Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

onsenui

Package Overview
Dependencies
Maintainers
4
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onsenui - npm Package Compare versions

Comparing version 2.8.2 to 2.8.3

4

esm/elements/ons-carousel.js

@@ -281,3 +281,5 @@ import _Promise from 'babel-runtime/core-js/promise';

refreshHook: this._onRefresh.bind(this),
scrollHook: this._onSwipe
scrollHook: function scrollHook() {
return _this2._onSwipe && _this2._onSwipe.apply(_this2, arguments);
}
});

@@ -284,0 +286,0 @@

@@ -123,3 +123,3 @@ import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of';

* @description
* [en]Makes the element react to taps.[/en]
* [en]Makes the element react to taps. `prevent-tap` attribute can be added to child elements like buttons or inputs to prevent this effect. `ons-*` elements are ignored by default.[/en]
* [ja][/ja]

@@ -249,4 +249,20 @@ */

}, {
key: 'isExcludedTarget',
value: function isExcludedTarget(target) {
if (target.tagName.indexOf('ONS-') === 0) {
return true;
}
if (target.hasAttribute('prevent-tap')) {
return true;
}
if (target.parentElement !== this) {
return this.isExcludedTarget(target.parentElement);
}
return false;
}
}, {
key: '_onTouch',
value: function _onTouch() {
value: function _onTouch(e) {
if (this.tapped) {

@@ -256,2 +272,6 @@ return;

if (this !== e.target && this.isExcludedTarget(e.target)) {
return;
}
this.tapped = true;

@@ -258,0 +278,0 @@ var touchStyle = { transition: 'background-color 0.0s linear 0.02s, box-shadow 0.0s linear 0.02s' };

@@ -515,3 +515,3 @@ import _typeof from 'babel-runtime/helpers/typeof';

var callback = function callback() {
var done = function done() {
update().then(function () {

@@ -523,5 +523,3 @@ _this4._isRunning = false;

if (typeof options.callback === 'function') {
options.callback();
}
options.callback && options.callback(enterPage);

@@ -534,3 +532,3 @@ resolve(enterPage);

var animator = options.animator || _this4._animatorFactory.newAnimator(options);
animator.pop(_this4.pages[length - 2], _this4.pages[length - 1], callback);
animator.pop(_this4.pages[length - 2], _this4.pages[length - 1], done);
}).catch(function () {

@@ -672,5 +670,3 @@ return _this4._isRunning = false;

if (typeof options.callback === 'function') {
options.callback();
}
options.callback && options.callback(enterPage);

@@ -827,2 +823,5 @@ resolve(enterPage);

* [ja]新しいトップページを解決するPromiseを返します。[/ja]
* @param {Boolean} [options.pop]
* [en]Performs 'pop' effect if `true` instead of 'push' or none. This also sets `options.animation` value to `default` instead of `none`.[/en]
* [ja][/ja]
* @description

@@ -846,21 +845,33 @@ * [en]Clears page stack and adds the specified page to the stack. Extends `pushPage()` parameters.[/en]

if (!options.animator && !options.animation) {
if (!options.animator && !options.animation && !options.pop) {
options.animation = 'none';
}
var callback = options.callback;
if (!options.page && !options.pageHTML && this._getPageTarget()) {
page = options.page = this._getPageTarget();
}
options.callback = function () {
while (_this10.pages.length > 1) {
_this10._pageLoader.unload(_this10.pages[0]);
var reset = function reset() {
var pages = _this10.pages;
for (var i = pages.length - 2; i >= 0; i--) {
_this10._pageMap.delete(pages[i]);
_this10._pageLoader.unload(pages[i]);
}
_this10.pages[0].updateBackButton(false);
callback && callback();
};
if (!options.page && !options.pageHTML && this._getPageTarget()) {
page = options.page = this._getPageTarget();
if (options.pop) {
reset();
return this.insertPage(0, page, { data: options.data }).then(function () {
return _this10.popPage(options);
});
}
// Tip: callback runs before resolved promise
var callback = options.callback;
options.callback = function (newPage) {
reset();
newPage.updateBackButton(false);
callback && callback(newPage);
};
return this.pushPage(page, options);

@@ -867,0 +878,0 @@ }

@@ -437,2 +437,3 @@ import _Object$defineProperty from 'babel-runtime/core-js/object/define-property';

_Object$defineProperty(_this7, key, {
configurable: true,
enumerable: true,

@@ -439,0 +440,0 @@ get: function get() {

@@ -37,3 +37,3 @@ import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of';

var template = util.createElement('\n <svg class="progress-circular">\n <circle class="progress-circular__background" />\n <circle class="progress-circular__secondary" />\n <circle class="progress-circular__primary" />\n </svg>\n');
var template = util.createElement('\n <svg class="progress-circular">\n <circle class="progress-circular__background" />\n <circle class="progress-circular__secondary" cx="50%" cy="50%" r="40%" />\n <circle class="progress-circular__primary" cx="50%" cy="50%" r="40%" />\n </svg>\n');

@@ -40,0 +40,0 @@ var INDET = 'indeterminate';

@@ -100,3 +100,3 @@ import _setImmediate from 'babel-runtime/core-js/set-immediate';

* @description
* [en]Specify the threshold height. The component automatically switches to the "action" state when pulled further than this value. The default value is "96px". A negative value or a value less than the height will disable this property.[/en]
* [en]Specify the threshold height. The component automatically switches to the "action" state when pulled further than this value. The default value is "96px". A negative value will disable this property. If this value is lower than the height, it will skip "preaction" state.[/en]
* [ja]閾値となる高さを指定します。この値で指定した高さよりもpull downすると、このコンポーネントは自動的に"action"状態に移行します。[/ja]

@@ -205,3 +205,5 @@ */

if (scroll !== this._currentTranslation) {
if (this._thresholdHeightEnabled() && scroll >= this.thresholdHeight) {
var th = this.thresholdHeight;
if (th > 0 && scroll >= th) {
event.gesture.stopDetect();

@@ -281,8 +283,2 @@ _setImmediate(function () {

}, {
key: '_thresholdHeightEnabled',
value: function _thresholdHeightEnabled() {
var th = this.thresholdHeight;
return th > 0 && th >= this.height;
}
}, {
key: '_setState',

@@ -289,0 +285,0 @@ value: function _setState(state, noEvent) {

@@ -120,2 +120,7 @@ import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of';

_this._onTap = _this._onTap.bind(_this);
_this._onHold = _this._onHold.bind(_this);
_this._onDragStart = _this._onDragStart.bind(_this);
_this._onRelease = _this._onRelease.bind(_this);
contentReady(_this, function () {

@@ -251,3 +256,4 @@ return _this._compile();

if (!this.disabled) {
if (!this.disabled && !e.ripple) {
e.ripple = true;
this._updateParent();

@@ -263,6 +269,7 @@ this._rippleAnimation(e.gesture.srcEvent).then(function () {

value: function _onHold(e) {
if (!this.disabled) {
if (!this.disabled && !e.ripple) {
e.ripple = true;
this._updateParent();
this._holding = this._rippleAnimation(e.gesture.srcEvent, 2000);
document.addEventListener('release', this._boundOnRelease);
document.addEventListener('release', this._onRelease);
}

@@ -275,3 +282,4 @@ }

if (this._holding) {
if (this._holding && !e.ripple) {
e.ripple = true;
this._holding.speed(300).then(function () {

@@ -286,3 +294,3 @@ _this3._animator.stopAll({ stopNext: true });

document.removeEventListener('release', this._boundOnRelease);
document.removeEventListener('release', this._onRelease);
}

@@ -303,6 +311,2 @@ }, {

this._parentNode = this.parentNode;
this._boundOnTap = this._onTap.bind(this);
this._boundOnHold = this._onHold.bind(this);
this._boundOnDragStart = this._onDragStart.bind(this);
this._boundOnRelease = this._onRelease.bind(this);

@@ -312,5 +316,5 @@ if (internal.config.animationsDisabled) {

} else {
this._parentNode.addEventListener('tap', this._boundOnTap);
this._parentNode.addEventListener('hold', this._boundOnHold);
this._parentNode.addEventListener('dragstart', this._boundOnDragStart);
this._parentNode.addEventListener('tap', this._onTap);
this._parentNode.addEventListener('hold', this._onHold);
this._parentNode.addEventListener('dragstart', this._onDragStart);
}

@@ -322,5 +326,5 @@ }

var pn = this._parentNode || this.parentNode;
pn.removeEventListener('tap', this._boundOnTap);
pn.removeEventListener('hold', this._boundOnHold);
pn.removeEventListener('dragstart', this._boundOnDragStart);
pn.removeEventListener('tap', this._onTap);
pn.removeEventListener('hold', this._onHold);
pn.removeEventListener('dragstart', this._onDragStart);
}

@@ -327,0 +331,0 @@ }, {

@@ -243,2 +243,3 @@ import _Object$defineProperty from 'babel-runtime/core-js/object/define-property';

_Object$defineProperty(_this4, key, {
configurable: true,
enumerable: true,

@@ -245,0 +246,0 @@ get: function get() {

@@ -19,5 +19,6 @@ import _setImmediate from "babel-runtime/core-js/set-immediate";

*/
var readyMap = new _WeakMap();
var queueMap = new _WeakMap();
var readyMap = void 0,
queueMap = void 0;
function isContentReady(element) {

@@ -52,2 +53,7 @@ if (element.childNodes.length > 0) {

if (readyMap === undefined) {
readyMap = new _WeakMap();
queueMap = new _WeakMap();
}
addCallback(element, fn);

@@ -54,0 +60,0 @@

@@ -205,2 +205,6 @@ import _Promise from 'babel-runtime/core-js/promise';

if (this.itemNumSize === 0 || !util.isInteger(scroll)) {
return this._lastActiveIndex;
}
if (scroll <= 0) {

@@ -455,4 +459,8 @@ return 0;

var scroll = this._normalizeScroll(this._scroll);
scroll !== this._scroll ? this._killOverScroll(scroll) : this._changeTo(scroll);
if (util.isInteger(this._scroll)) {
var scroll = this._normalizeScroll(this._scroll);
scroll !== this._scroll ? this._killOverScroll(scroll) : this._changeTo(scroll);
} else {
this._setupInitialIndex();
}

@@ -459,0 +467,0 @@ this.refreshHook();

@@ -13,2 +13,3 @@ // Caution:

import 'core-js/fn/map';
import 'core-js/fn/weak-map';

@@ -15,0 +16,0 @@ // Polyfill Custom Elements v1 with global namespace pollution

@@ -1,2 +0,1 @@

import _Object$defineProperty from "babel-runtime/core-js/object/define-property";
import _WeakMap from "babel-runtime/core-js/weak-map";

@@ -13,37 +12,2 @@ /**

// @version 0.7.22
if (typeof _WeakMap === "undefined") {
(function () {
var defineProperty = _Object$defineProperty;
var counter = Date.now() % 1e9;
var WeakMap = function WeakMap() {
this.name = "__st" + (Math.random() * 1e9 >>> 0) + (counter++ + "__");
};
WeakMap.prototype = {
set: function set(key, value) {
var entry = key[this.name];
if (entry && entry[0] === key) entry[1] = value;else defineProperty(key, this.name, {
value: [key, value],
writable: true
});
return this;
},
get: function get(key) {
var entry;
return (entry = key[this.name]) && entry[0] === key ? entry[1] : undefined;
},
"delete": function _delete(key) {
var entry = key[this.name];
if (!entry || entry[0] !== key) return false;
entry[0] = entry[1] = undefined;
return true;
},
has: function has(key) {
var entry = key[this.name];
if (!entry) return false;
return entry[0] === key;
}
};
window.WeakMap = WeakMap;
})();
}

@@ -50,0 +14,0 @@ (function (global) {

@@ -1,2 +0,2 @@

/* angular-onsenui v2.8.2 - 2017-11-22 */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";!function(){function e(){}var t=/xyz/.test(function(){})?/\b_super\b/:/.*/;e.extend=function(n){var o=this.prototype,i=Object.create(o);for(var r in n)i[r]="function"==typeof n[r]&&"function"==typeof o[r]&&t.test(n[r])?function(e,t){return function(){var n=this._super;this._super=o[e];var i=t.apply(this,arguments);return this._super=n,i}}(r,n[r]):n[r];var s="function"==typeof i.init?i.hasOwnProperty("init")?i.init:function(){o.init.apply(this,arguments)}:function(){};return s.prototype=i,i.constructor=s,s.extend=e.extend,s},window.Class=e}();var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};!function(t){var n=angular.module("onsen",[]);angular.module("onsen.directives",["onsen"]),function(){t._onsenService=null,t.componentBase=window,t.bootstrap=function(e,t){angular.isArray(e)&&(t=e,e=void 0),e||(e="myOnsenApp"),t=["onsen"].concat(angular.isArray(t)?t:[]);var n=angular.module(e,t),o=window.document;if("loading"==o.readyState||"uninitialized"==o.readyState||"interactive"==o.readyState)o.addEventListener("DOMContentLoaded",function(){angular.bootstrap(o.documentElement,[e])},!1);else{if(!o.documentElement)throw new Error("Invalid state");angular.bootstrap(o.documentElement,[e])}return n},t.findParentComponentUntil=function(e,t){var n;return t instanceof HTMLElement?n=angular.element(t):t instanceof angular.element?n=t:t.target&&(n=angular.element(t.target)),n.inheritedData(e)},t.findComponent=function(e,t){var n=(t||document).querySelector(e);return n?angular.element(n).data(n.nodeName.toLowerCase())||null:null},t.compile=function(e){if(!t.$compile)throw new Error("ons.$compile() is not ready. Wait for initialization with ons.ready().");if(!(e instanceof HTMLElement))throw new Error("First argument must be an instance of HTMLElement.");var n=angular.element(e).scope();if(!n)throw new Error("AngularJS Scope is null. Argument DOM element must be attached in DOM document.");t.$compile(e)(n)},t._getOnsenService=function(){if(!this._onsenService)throw new Error("$onsen is not loaded, wait for ons.ready().");return this._onsenService},t._waitDiretiveInit=function(e,t){return function(n,o){angular.element(n).data(e)?t(n,o):n.addEventListener(e+":init",function i(){t(n,o),n.removeEventListener(e+":init",i,!1)},!1)}};var n=t.createElement;t.createElement=function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(e){return angular.element(e).data(e.tagName.toLowerCase())||e},s=n(o,e({append:!!i.parentScope,link:function(e){i.parentScope?(t.$compile(angular.element(e))(i.parentScope.$new()),i.parentScope.$evalAsync()):t.compile(e)}},i));return s instanceof Promise?s.then(r):r(s)},t.resolveLoadingPlaceHolder,t.resolveLoadingPlaceholder=function(e){return resolveLoadingPlaceholderOriginal(e,function(e,n){t.compile(e),angular.element(e).scope().$evalAsync(function(){return setImmediate(n)})})},t._setupLoadingPlaceHolders=function(){}}(),function(){var e=t._readyLock.lock();n.run(["$compile","$rootScope",function(t,n){if("loading"===document.readyState||"uninitialized"==document.readyState)window.addEventListener("DOMContentLoaded",function(){document.body.appendChild(document.createElement("ons-dummy-for-init"))});else{if(!document.body)throw new Error("Invalid initialization state.");document.body.appendChild(document.createElement("ons-dummy-for-init"))}n.$on("$ons-ready",e)}])}(),n.value("$onsGlobal",t),n.run(["$compile","$rootScope","$onsen","$q",function(e,n,o,i){t._onsenService=o,t._qService=i,n.ons=window.ons,n.console=window.console,n.alert=window.alert,t.$compile=e}]),n.run(["$templateCache",function(e){var n=t._internal.getTemplateHTMLAsync;t._internal.getTemplateHTMLAsync=function(t){var o=e.get(t);return o?Promise.resolve(o):n(t)}}])}(window.ons=window.ons||{}),angular.module("onsen").factory("ActionSheetView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._scope=t,this._element=n,this._attrs=o,this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["show","hide","toggle"]),this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["preshow","postshow","prehide","posthide","cancel"],function(e){return e.actionSheet&&(e.actionSheet=this),e}.bind(this)),this._scope.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._element.remove(),this._clearDerivingMethods(),this._clearDerivingEvents(),this._scope=this._attrs=this._element=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["disabled","cancelable","visible","onDeviceBackButton"]),t}]),angular.module("onsen").factory("AlertDialogView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._scope=t,this._element=n,this._attrs=o,this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["show","hide"]),this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["preshow","postshow","prehide","posthide","cancel"],function(e){return e.alertDialog&&(e.alertDialog=this),e}.bind(this)),this._scope.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._element.remove(),this._clearDerivingMethods(),this._clearDerivingEvents(),this._scope=this._attrs=this._element=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["disabled","cancelable","visible","onDeviceBackButton"]),t}]),angular.module("onsen").factory("CarouselView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._element=n,this._scope=t,this._attrs=o,this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingMethods=e.deriveMethods(this,n[0],["setActiveIndex","getActiveIndex","next","prev","refresh","first","last"]),this._clearDerivingEvents=e.deriveEvents(this,n[0],["refresh","postchange","overscroll"],function(e){return e.carousel&&(e.carousel=this),e}.bind(this))},_destroy:function(){this.emit("destroy"),this._clearDerivingEvents(),this._clearDerivingMethods(),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["centered","overscrollable","disabled","autoScroll","swipeable","autoScrollRatio","itemCount"]),t}]),angular.module("onsen").factory("DialogView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._scope=t,this._element=n,this._attrs=o,this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["show","hide"]),this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["preshow","postshow","prehide","posthide","cancel"],function(e){return e.dialog&&(e.dialog=this),e}.bind(this)),this._scope.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._element.remove(),this._clearDerivingMethods(),this._clearDerivingEvents(),this._scope=this._attrs=this._element=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["disabled","cancelable","visible","onDeviceBackButton"]),t}]),angular.module("onsen").factory("FabView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._element=n,this._scope=t,this._attrs=o,this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingMethods=e.deriveMethods(this,n[0],["show","hide","toggle"])},_destroy:function(){this.emit("destroy"),this._clearDerivingMethods(),this._element=this._scope=this._attrs=null}});return e.derivePropertiesFromElement(t,["disabled","visible"]),MicroEvent.mixin(t),t}]),angular.module("onsen").factory("GenericView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o,i){var r=this;if(i={},this._element=n,this._scope=t,this._attrs=o,i.directiveOnly){if(!i.modifierTemplate)throw new Error("options.modifierTemplate is undefined.");e.addModifierMethods(this,i.modifierTemplate,n)}else e.addModifierMethodsForCustomElements(this,n);e.cleaner.onDestroy(t,function(){r._events=void 0,e.removeModifierMethods(r),i.onDestroy&&i.onDestroy(r),e.clearComponent({scope:t,attrs:o,element:n}),r=n=r._element=r._scope=t=r._attrs=o=i=null})}});return t.register=function(n,o,i,r){var s=new t(n,o,i,r);if(!r.viewKey)throw new Error("options.viewKey is required.");e.declareVarAttribute(i,s),o.data(r.viewKey,s);var a=r.onDestroy||angular.noop;return r.onDestroy=function(e){a(e),o.data(r.viewKey,null)},s},MicroEvent.mixin(t),t}]);var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),n=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)};angular.module("onsen").factory("AngularLazyRepeatDelegate",["$compile",function(e){var o=["ons-lazy-repeat","ons:lazy:repeat","ons_lazy_repeat","data-ons-lazy-repeat","x-ons-lazy-repeat"];return function(i){function r(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,t,n));return s._parentScope=i,o.forEach(function(e){return n.removeAttribute(e)}),s._linker=e(n?n.cloneNode(!0):null),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,ons._internal.LazyRepeatDelegate),t(r,[{key:"configureItemScope",value:function(e,t){this._userDelegate.configureItemScope instanceof Function&&this._userDelegate.configureItemScope(e,t)}},{key:"destroyItemScope",value:function(e,t){this._userDelegate.destroyItemScope instanceof Function&&this._userDelegate.destroyItemScope(e,t)}},{key:"_usingBinding",value:function(){if(this._userDelegate.configureItemScope)return!0;if(this._userDelegate.createItemContent)return!1;throw new Error("`lazy-repeat` delegate object is vague.")}},{key:"loadItemElement",value:function(e,t){this._prepareItemElement(e,function(e){var n=e.element,o=e.scope;t({element:n,scope:o})})}},{key:"_prepareItemElement",value:function(t,n){var o=this,i=this._parentScope.$new();this._addSpecialProperties(t,i),this._usingBinding()&&this.configureItemScope(t,i),this._linker(i,function(r){var s=r[0];o._usingBinding()||(s=o._userDelegate.createItemContent(t,s),e(s)(i)),n({element:s,scope:i})})}},{key:"_addSpecialProperties",value:function(e,t){var n=this.countItems()-1;angular.extend(t,{$index:e,$first:0===e,$last:e===n,$middle:0!==e&&e!==n,$even:e%2==0,$odd:e%2==1})}},{key:"updateItem",value:function(e,t){var o=this;this._usingBinding()?t.scope.$evalAsync(function(){return o.configureItemScope(e,t.scope)}):n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"updateItem",this).call(this,e,t)}},{key:"destroyItem",value:function(e,t){this._usingBinding()?this.destroyItemScope(e,t.scope):n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"destroyItem",this).call(this,e,t.element),t.scope.$destroy()}},{key:"destroy",value:function(){n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"destroy",this).call(this),this._scope=null}}]),r}()}]),angular.module("onsen").factory("LazyRepeatView",["AngularLazyRepeatDelegate",function(e){return Class.extend({init:function(t,n,o,i){var r=this;this._element=n,this._scope=t,this._attrs=o,this._linker=i;var s=this._scope.$eval(this._attrs.onsLazyRepeat),a=new e(s,n[0],t||n.scope());this._provider=new ons._internal.LazyRepeatProvider(n[0].parentNode,a),s.refresh=this._provider.refresh.bind(this._provider),n.remove(),this._scope.$watch(a.countItems.bind(a),this._provider._onChange.bind(this._provider)),this._scope.$on("$destroy",function(){r._element=r._scope=r._attrs=r._linker=null})}})}]),angular.module("onsen").factory("ModalView",["$onsen","$parse",function(e,t){var n=Class.extend({_element:void 0,_scope:void 0,init:function(t,n,o){this._scope=t,this._element=n,this._attrs=o,this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["show","hide","toggle"]),this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["preshow","postshow","prehide","posthide"],function(e){return e.modal&&(e.modal=this),e}.bind(this))},_destroy:function(){this.emit("destroy",{page:this}),this._element.remove(),this._clearDerivingMethods(),this._clearDerivingEvents(),this._events=this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(n),e.derivePropertiesFromElement(n,["onDeviceBackButton"]),n}]),angular.module("onsen").factory("NavigatorView",["$compile","$onsen",function(e,t){var n=Class.extend({_element:void 0,_attrs:void 0,_scope:void 0,init:function(e,n,o){this._element=n||angular.element(window.document.body),this._scope=e||this._element.scope(),this._attrs=o,this._previousPageScope=null,this._boundOnPrepop=this._onPrepop.bind(this),this._element.on("prepop",this._boundOnPrepop),this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingEvents=t.deriveEvents(this,n[0],["prepush","postpush","prepop","postpop","init","show","hide","destroy"],function(e){return e.navigator&&(e.navigator=this),e}.bind(this)),this._clearDerivingMethods=t.deriveMethods(this,n[0],["insertPage","removePage","pushPage","bringPageTop","popPage","replacePage","resetToPage","canPopPage"])},_onPrepop:function(e){var t=e.detail.navigator.pages;angular.element(t[t.length-2]).data("_scope").$evalAsync()},_destroy:function(){this.emit("destroy"),this._clearDerivingEvents(),this._clearDerivingMethods(),this._element.off("prepop",this._boundOnPrepop),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(n),t.derivePropertiesFromElement(n,["pages","topPage"]),n}]),angular.module("onsen").factory("PageView",["$onsen","$parse",function(e,t){var n=Class.extend({init:function(n,o,i){var r=this;this._scope=n,this._element=o,this._attrs=i,this._clearListener=n.$on("$destroy",this._destroy.bind(this)),this._clearDerivingEvents=e.deriveEvents(this,o[0],["init","show","hide","destroy"]),Object.defineProperty(this,"onDeviceBackButton",{get:function(){return r._element[0].onDeviceBackButton},set:function(e){r._userBackButtonHandler||r._enableBackButtonHandler(),r._userBackButtonHandler=e}}),(this._attrs.ngDeviceBackButton||this._attrs.onDeviceBackButton)&&this._enableBackButtonHandler(),this._attrs.ngInfiniteScroll&&(this._element[0].onInfiniteScroll=function(e){t(r._attrs.ngInfiniteScroll)(r._scope)(e)})},_enableBackButtonHandler:function(){this._userBackButtonHandler=angular.noop,this._element[0].onDeviceBackButton=this._onDeviceBackButton.bind(this)},_onDeviceBackButton:function(e){if(this._userBackButtonHandler(e),this._attrs.ngDeviceBackButton&&t(this._attrs.ngDeviceBackButton)(this._scope,{$event:e}),this._attrs.onDeviceBackButton){var n=window.$event;window.$event=e,new Function(this._attrs.onDeviceBackButton)(),window.$event=n}},_destroy:function(){this._clearDerivingEvents(),this._element=null,this._scope=null,this._clearListener()}});return MicroEvent.mixin(n),n}]),angular.module("onsen").factory("PopoverView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._element=n,this._scope=t,this._attrs=o,this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["show","hide"]),this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["preshow","postshow","prehide","posthide"],function(e){return e.popover&&(e.popover=this),e}.bind(this))},_destroy:function(){this.emit("destroy"),this._clearDerivingMethods(),this._clearDerivingEvents(),this._element.remove(),this._element=this._scope=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["cancelable","disabled","onDeviceBackButton"]),t}]),angular.module("onsen").factory("PullHookView",["$onsen","$parse",function(e,t){var n=Class.extend({init:function(t,n,o){var i=this;this._element=n,this._scope=t,this._attrs=o,this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["changestate"],function(e){return e.pullHook&&(e.pullHook=i),e}),this.on("changestate",function(){return i._scope.$evalAsync()}),this._element[0].onAction=function(e){i._attrs.ngAction?i._scope.$eval(i._attrs.ngAction,{$done:e}):i.onAction?i.onAction(e):e()},this._scope.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._clearDerivingEvents(),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(n),e.derivePropertiesFromElement(n,["state","pullDistance","height","thresholdHeight","disabled"]),n}]),angular.module("onsen").factory("SpeedDialView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._element=n,this._scope=t,this._attrs=o,this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingMethods=e.deriveMethods(this,n[0],["show","hide","showItems","hideItems","isOpen","toggle","toggleItems"]),this._clearDerivingEvents=e.deriveEvents(this,n[0],["open","close"]).bind(this)},_destroy:function(){this.emit("destroy"),this._clearDerivingEvents(),this._clearDerivingMethods(),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["disabled","visible","inline"]),t}]),angular.module("onsen").factory("SplitterContent",["$onsen","$compile",function(e,t){var n=Class.extend({init:function(e,t,n){this._element=t,this._scope=e,this._attrs=n,this.load=this._element[0].load.bind(this._element[0]),e.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._element=this._scope=this._attrs=this.load=this._pageScope=null}});return MicroEvent.mixin(n),e.derivePropertiesFromElement(n,["page"]),n}]),angular.module("onsen").factory("SplitterSide",["$onsen","$compile",function(e,t){var n=Class.extend({init:function(t,n,o){var i=this;this._element=n,this._scope=t,this._attrs=o,this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["open","close","toggle","load"]),this._clearDerivingEvents=e.deriveEvents(this,n[0],["modechange","preopen","preclose","postopen","postclose"],function(e){return e.side?angular.extend(e,{side:i}):e}),t.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._clearDerivingMethods(),this._clearDerivingEvents(),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(n),e.derivePropertiesFromElement(n,["page","mode","isOpen"]),n}]),angular.module("onsen").factory("Splitter",["$onsen",function(e){var t=Class.extend({init:function(e,t,n){this._element=t,this._scope=e,this._attrs=n,e.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["onDeviceBackButton"]),["left","right","content","mask"].forEach(function(e,n){Object.defineProperty(t.prototype,e,{get:function(){var t="ons-splitter-"+(n<2?"side":e);return angular.element(this._element[0][e]).data(t)}})}),t}]),angular.module("onsen").factory("SwitchView",["$parse","$onsen",function(e,t){var n=Class.extend({init:function(e,t,n){var o=this;this._element=e,this._checkbox=angular.element(e[0].querySelector("input[type=checkbox]")),this._scope=t,this._prepareNgModel(e,t,n),this._scope.$on("$destroy",function(){o.emit("destroy"),o._element=o._checkbox=o._scope=null})},_prepareNgModel:function(t,n,o){var i=this;if(o.ngModel){var r=e(o.ngModel).assign;n.$parent.$watch(o.ngModel,function(e){i.checked=!!e}),this._element.on("change",function(e){r(n.$parent,i.checked),o.ngChange&&n.$eval(o.ngChange),n.$parent.$evalAsync()})}}});return MicroEvent.mixin(n),t.derivePropertiesFromElement(n,["disabled","checked","checkbox"]),n}]),angular.module("onsen").factory("TabbarView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){if("ons-tabbar"!==n[0].nodeName.toLowerCase())throw new Error('"element" parameter must be a "ons-tabbar" element.');this._scope=t,this._element=n,this._attrs=o,this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingEvents=e.deriveEvents(this,n[0],["reactive","postchange","prechange","init","show","hide","destroy"]),this._clearDerivingMethods=e.deriveMethods(this,n[0],["setActiveTab","show","hide","setTabbarVisibility","getActiveTabIndex"])},_destroy:function(){this.emit("destroy"),this._clearDerivingEvents(),this._clearDerivingMethods(),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(t),t}]),angular.module("onsen").factory("ToastView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._scope=t,this._element=n,this._attrs=o,this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["show","hide","toggle"]),this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["preshow","postshow","prehide","posthide"],function(e){return e.toast&&(e.toast=this),e}.bind(this)),this._scope.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._element.remove(),this._clearDerivingMethods(),this._clearDerivingEvents(),this._scope=this._attrs=this._element=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["visible","onDeviceBackButton"]),t}]),angular.module("onsen").directive("onsActionSheetButton",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-action-sheet-button"}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsActionSheet",["$onsen","ActionSheetView",function(e,t){return{restrict:"E",replace:!1,scope:!0,transclude:!1,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"preshow prehide postshow posthide destroy"),e.addModifierMethodsForCustomElements(r,o),o.data("ons-action-sheet",r),n.$on("$destroy",function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-action-sheet",void 0),o=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsAlertDialog",["$onsen","AlertDialogView",function(e,t){return{restrict:"E",replace:!1,scope:!0,transclude:!1,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"preshow prehide postshow posthide destroy"),e.addModifierMethodsForCustomElements(r,o),o.data("ons-alert-dialog",r),o.data("_scope",n),n.$on("$destroy",function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-alert-dialog",void 0),o=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsBackButton",["$onsen","$compile","GenericView","ComponentCleaner",function(e,t,n,o){return{restrict:"E",replace:!1,compile:function(t,i){return{pre:function(t,i,r,s,a){var c=n.register(t,i,r,{viewKey:"ons-back-button"});r.ngClick&&(i[0].onClick=angular.noop),t.$on("$destroy",function(){c._events=void 0,e.removeModifierMethods(c),i=null}),o.onDestroy(t,function(){o.destroyScope(t),o.destroyAttributes(r),i=t=r=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsBottomToolbar",["$onsen","GenericView",function(e,t){return{restrict:"E",link:{pre:function(e,n,o){t.register(e,n,o,{viewKey:"ons-bottomToolbar"})},post:function(t,n,o){e.fireComponentEvent(n[0],"init")}}}}]),angular.module("onsen").directive("onsButton",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){var r=t.register(n,o,i,{viewKey:"ons-button"});Object.defineProperty(r,"disabled",{get:function(){return this._element[0].disabled},set:function(e){return this._element[0].disabled=e}}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsCard",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-card"}),e.fireComponentEvent(o[0],"init")}}}]),function(){var e=angular.module("onsen");e.directive("onsCarousel",["$onsen","CarouselView",function(e,t){return{restrict:"E",replace:!1,scope:!1,transclude:!1,compile:function(n,o){return function(n,o,i){var r=new t(n,o,i);o.data("ons-carousel",r),e.registerEventHandlers(r,"postchange refresh overscroll destroy"),e.declareVarAttribute(i,r),n.$on("$destroy",function(){r._events=void 0,o.data("ons-carousel",void 0),o=null}),e.fireComponentEvent(o[0],"init")}}}}]),e.directive("onsCarouselItem",["$onsen",function(e){return{restrict:"E",compile:function(t,n){return function(t,n,o){if(t.$last){var i=e.util.findParent(n[0],"ons-carousel");i._swiper.init({swipeable:i.hasAttribute("swipeable"),autoRefresh:i.hasAttribute("auto-refresh")})}}}}}])}(),angular.module("onsen").directive("onsCheckbox",["$parse",function(e){return{restrict:"E",replace:!1,scope:!1,link:function(t,n,o){var i=n[0],r=function(){e(o.ngModel).assign(t,i.checked),o.ngChange&&t.$eval(o.ngChange),t.$parent.$evalAsync()};o.ngModel&&(t.$watch(o.ngModel,function(e){return i.checked=e}),n.on("change",r)),t.$on("$destroy",function(){n.off("change",r),t=n=o=i=null})}}}]),angular.module("onsen").directive("onsDialog",["$onsen","DialogView",function(e,t){return{restrict:"E",scope:!0,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"preshow prehide postshow posthide destroy"),e.addModifierMethodsForCustomElements(r,o),o.data("ons-dialog",r),n.$on("$destroy",function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-dialog",void 0),o=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsDummyForInit",["$rootScope",function(e){var t=!1;return{restrict:"E",replace:!1,link:{post:function(n,o){t||(t=!0,e.$broadcast("$ons-ready")),o.remove()}}}}]),angular.module("onsen").directive("onsFab",["$onsen","FabView",function(e,t){return{restrict:"E",replace:!1,scope:!1,transclude:!1,compile:function(n,o){return function(n,o,i){var r=new t(n,o,i);o.data("ons-fab",r),e.declareVarAttribute(i,r),n.$on("$destroy",function(){o.data("ons-fab",void 0),o=null}),e.fireComponentEvent(o[0],"init")}}}}]),function(){var e="drag dragleft dragright dragup dragdown hold release swipe swipeleft swiperight swipeup swipedown tap doubletap touch transform pinch pinchin pinchout rotate".split(/ +/);angular.module("onsen").directive("onsGestureDetector",["$onsen",function(t){function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}var o=e.reduce(function(e,t){return e["ng"+n(t)]="&",e},{});return{restrict:"E",scope:o,replace:!1,transclude:!0,compile:function(i,r){return function(i,r,s,a,c){c(i.$parent,function(e){r.append(e)});var l,u=function(e){var t="ng"+n(e.type);t in o&&i[t]({$event:e})};setImmediate(function(){(l=r[0]._gestureDetector).on(e.join(" "),u)}),t.cleaner.onDestroy(i,function(){l.off(e.join(" "),u),t.clearComponent({scope:i,element:r,attrs:s}),l.element=i=r=s=null}),t.fireComponentEvent(r[0],"init")}}}}])}(),angular.module("onsen").directive("onsIcon",["$onsen","GenericView",function(e,t){return{restrict:"E",compile:function(e,n){return-1!==n.icon.indexOf("{{")&&n.$observe("icon",function(){setImmediate(function(){return e[0]._update()})}),function(e,n,o){t.register(e,n,o,{viewKey:"ons-icon"})}}}}]),angular.module("onsen").directive("onsIfOrientation",["$onsen","$onsGlobal",function(e,t){return{restrict:"A",replace:!1,transclude:!1,scope:!1,compile:function(n){return n.css("display","none"),function(n,o,i){function r(){var e=(""+i.onsIfOrientation).toLowerCase(),n=t.orientation.isPortrait()?"portrait":"landscape";"portrait"!==e&&"landscape"!==e||(e===n?o.css("display",""):o.css("display","none"))}i.$observe("onsIfOrientation",r),t.orientation.on("change",r),r(),e.cleaner.onDestroy(n,function(){t.orientation.off("change",r),e.clearComponent({element:o,scope:n,attrs:i}),o=n=i=null})}}}}]),angular.module("onsen").directive("onsIfPlatform",["$onsen",function(e){return{restrict:"A",replace:!1,transclude:!1,scope:!1,compile:function(t){t.css("display","none");var n=function(){if(navigator.userAgent.match(/Android/i))return"android";if(navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/RIM Tablet OS/i)||navigator.userAgent.match(/BB10/i))return"blackberry";if(navigator.userAgent.match(/iPhone|iPad|iPod/i))return"ios";if(navigator.userAgent.match(/Windows Phone|IEMobile|WPDesktop/i))return"wp";var e=!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0;if(e)return"opera";if("undefined"!=typeof InstallTrigger)return"firefox";if(Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0)return"safari";var t=navigator.userAgent.indexOf(" Edge/")>=0;return t?"edge":!window.chrome||e||t?document.documentMode?"ie":"unknown":"chrome"}();return function(t,o,i){function r(){i.onsIfPlatform.toLowerCase().trim().split(/\s+/).indexOf(n.toLowerCase())>=0?o.css("display","block"):o.css("display","none")}i.$observe("onsIfPlatform",function(e){e&&r()}),r(),e.cleaner.onDestroy(t,function(){e.clearComponent({element:o,scope:t,attrs:i}),o=t=i=null})}}}}]),angular.module("onsen").directive("onsInput",["$parse",function(e){return{restrict:"E",replace:!1,scope:!1,link:function(t,n,o){var i=n[0],r=function(){e(o.ngModel).assign(t,"number"===i.type?Number(i.value):i.value),o.ngChange&&t.$eval(o.ngChange),t.$parent.$evalAsync()};o.ngModel&&(t.$watch(o.ngModel,function(e){void 0!==e&&e!==i.value&&(i.value=e)}),n.on("input",r)),t.$on("$destroy",function(){n.off("input",r),t=n=o=i=null})}}}]),function(){var e=angular.module("onsen"),t=function(e,t){return function(n){return function(n,o,i){var r=e?"block":"none",s=e?"none":"block",a=function(){o.css("display",r)},c=function(){o.css("display",s)},l=function(e){e.visible?a():c()};ons.softwareKeyboard.on("show",a),ons.softwareKeyboard.on("hide",c),ons.softwareKeyboard.on("init",l),ons.softwareKeyboard._visible?a():c(),t.cleaner.onDestroy(n,function(){ons.softwareKeyboard.off("show",a),ons.softwareKeyboard.off("hide",c),ons.softwareKeyboard.off("init",l),t.clearComponent({element:o,scope:n,attrs:i}),o=n=i=null})}}};e.directive("onsKeyboardActive",["$onsen",function(e){return{restrict:"A",replace:!1,transclude:!1,scope:!1,compile:t(!0,e)}}]),e.directive("onsKeyboardInactive",["$onsen",function(e){return{restrict:"A",replace:!1,transclude:!1,scope:!1,compile:t(!1,e)}}])}(),angular.module("onsen").directive("onsLazyRepeat",["$onsen","LazyRepeatView",function(e,t){return{restrict:"A",replace:!1,priority:1e3,terminal:!0,compile:function(e,n){return function(e,n,o){var i=new t(e,n,o);e.$on("$destroy",function(){e=n=o=i=null})}}}}]),angular.module("onsen").directive("onsListHeader",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-list-header"}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsListItem",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-list-item"}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsList",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-list"}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsListTitle",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-list-title"}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsLoadingPlaceholder",function(){return{restrict:"A",link:function(e,t,n){n.onsLoadingPlaceholder&&ons._resolveLoadingPlaceholder(t[0],n.onsLoadingPlaceholder,function(t,n){ons.compile(t),e.$evalAsync(function(){setImmediate(n)})})}}}),angular.module("onsen").directive("onsModal",["$onsen","ModalView",function(e,t){return{restrict:"E",replace:!1,scope:!1,transclude:!1,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.addModifierMethodsForCustomElements(r,o),e.declareVarAttribute(i,r),e.registerEventHandlers(r,"preshow prehide postshow posthide destroy"),o.data("ons-modal",r),n.$on("$destroy",function(){e.removeModifierMethods(r),o.data("ons-modal",void 0),r=o=n=i=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),function(){var e=window.ons.elements.Navigator.rewritables.ready;window.ons.elements.Navigator.rewritables.ready=ons._waitDiretiveInit("ons-navigator",e),angular.module("onsen").directive("onsNavigator",["NavigatorView","$onsen",function(e,t){return{restrict:"E",transclude:!1,scope:!0,compile:function(n){return{pre:function(n,o,i,r){var s=new e(n,o,i);t.declareVarAttribute(i,s),t.registerEventHandlers(s,"prepush prepop postpush postpop init show hide destroy"),o.data("ons-navigator",s),o[0].pageLoader=t.createPageLoader(s),n.$on("$destroy",function(){s._events=void 0,o.data("ons-navigator",void 0),n=o=null})},post:function(e,n,o){t.fireComponentEvent(n[0],"init")}}}}}])}(),angular.module("onsen").directive("onsPage",["$onsen","PageView",function(e,t){function n(e){return document.documentElement===e||!!e.parentNode&&n(e.parentNode)}return{restrict:"E",transclude:!1,scope:!0,compile:function(o,i){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"init show hide destroy"),o.data("ons-page",r),e.addModifierMethodsForCustomElements(r,o),o.data("_scope",n),e.cleaner.onDestroy(n,function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-page",void 0),o.data("_scope",void 0),e.clearComponent({element:o,scope:n,attrs:i}),n=o=i=null})},post:function(t,o,i){!function(t){var o=0;!function i(){if(!(o++<15))throw new Error('Fail to fire "pageinit" event. Attach "ons-page" element to the document after initialization.');n(t)?(e.fireComponentEvent(t,"init"),function(e){var t=document.createEvent("HTMLEvents");t.initEvent("pageinit",!0,!0),e.dispatchEvent(t)}(t)):o>10?setTimeout(i,1e3/60):setImmediate(i)}()}(o[0])}}}}}]),angular.module("onsen").directive("onsPopover",["$onsen","PopoverView",function(e,t){return{restrict:"E",replace:!1,scope:!0,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"preshow prehide postshow posthide destroy"),e.addModifierMethodsForCustomElements(r,o),o.data("ons-popover",r),n.$on("$destroy",function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-popover",void 0),o=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsPullHook",["$onsen","PullHookView",function(e,t){return{restrict:"E",replace:!1,scope:!0,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"changestate destroy"),o.data("ons-pull-hook",r),n.$on("$destroy",function(){r._events=void 0,o.data("ons-pull-hook",void 0),n=o=i=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsRadio",["$parse",function(e){return{restrict:"E",replace:!1,scope:!1,link:function(t,n,o){var i=n[0],r=function(){e(o.ngModel).assign(t,i.value),o.ngChange&&t.$eval(o.ngChange),t.$parent.$evalAsync()};o.ngModel&&(t.$watch(o.ngModel,function(e){return i.checked=e===i.value}),n.on("change",r)),t.$on("$destroy",function(){n.off("change",r),t=n=o=i=null})}}}]),angular.module("onsen").directive("onsRange",["$parse",function(e){return{restrict:"E",replace:!1,scope:!1,link:function(t,n,o){var i=function(){(0,e(o.ngModel).assign)(t,n[0].value),o.ngChange&&t.$eval(o.ngChange),t.$parent.$evalAsync()};o.ngModel&&(t.$watch(o.ngModel,function(e){n[0].value=e}),n.on("input",i)),t.$on("$destroy",function(){n.off("input",i),t=n=o=null})}}}]),angular.module("onsen").directive("onsRipple",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-ripple"}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsScope",["$onsen",function(e){return{restrict:"A",replace:!1,transclude:!1,scope:!1,link:function(e,t){t.data("_scope",e),e.$on("$destroy",function(){t.data("_scope",void 0)})}}}]),angular.module("onsen").directive("onsSearchInput",["$parse",function(e){return{restrict:"E",replace:!1,scope:!1,link:function(t,n,o){var i=n[0],r=function(){e(o.ngModel).assign(t,"number"===i.type?Number(i.value):i.value),o.ngChange&&t.$eval(o.ngChange),t.$parent.$evalAsync()};o.ngModel&&(t.$watch(o.ngModel,function(e){void 0!==e&&e!==i.value&&(i.value=e)}),n.on("input",r)),t.$on("$destroy",function(){n.off("input",r),t=n=o=i=null})}}}]),angular.module("onsen").directive("onsSegment",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){var r=t.register(n,o,i,{viewKey:"ons-segment"});e.fireComponentEvent(o[0],"init"),e.registerEventHandlers(r,"postchange")}}}]),angular.module("onsen").directive("onsSelect",["$parse","$onsen","GenericView",function(e,t,n){return{restrict:"E",replace:!1,scope:!1,link:function(o,i,r){var s=function(){(0,e(r.ngModel).assign)(o,i[0].value),r.ngChange&&o.$eval(r.ngChange),o.$parent.$evalAsync()};r.ngModel&&(o.$watch(r.ngModel,function(e){i[0].value=e}),i.on("input",s)),o.$on("$destroy",function(){i.off("input",s),o=i=r=null}),n.register(o,i,r,{viewKey:"ons-select"}),t.fireComponentEvent(i[0],"init")}}}]),angular.module("onsen").directive("onsSpeedDial",["$onsen","SpeedDialView",function(e,t){return{restrict:"E",replace:!1,scope:!1,transclude:!1,compile:function(n,o){return function(n,o,i){var r=new t(n,o,i);o.data("ons-speed-dial",r),e.registerEventHandlers(r,"open close"),e.declareVarAttribute(i,r),n.$on("$destroy",function(){r._events=void 0,o.data("ons-speed-dial",void 0),o=null}),e.fireComponentEvent(o[0],"init")}}}}]),function(){var e=window.ons.elements.SplitterContent.rewritables.ready;window.ons.elements.SplitterContent.rewritables.ready=ons._waitDiretiveInit("ons-splitter-content",e),angular.module("onsen").directive("onsSplitterContent",["$compile","SplitterContent","$onsen",function(e,t,n){return{restrict:"E",compile:function(e,o){return function(e,o,i){var r=new t(e,o,i);n.declareVarAttribute(i,r),n.registerEventHandlers(r,"destroy"),o.data("ons-splitter-content",r),o[0].pageLoader=n.createPageLoader(r),e.$on("$destroy",function(){r._events=void 0,o.data("ons-splitter-content",void 0)}),n.fireComponentEvent(o[0],"init")}}}}])}(),function(){var e=window.ons.elements.SplitterSide.rewritables.ready;window.ons.elements.SplitterSide.rewritables.ready=ons._waitDiretiveInit("ons-splitter-side",e),angular.module("onsen").directive("onsSplitterSide",["$compile","SplitterSide","$onsen",function(e,t,n){return{restrict:"E",compile:function(e,o){return function(e,o,i){var r=new t(e,o,i);n.declareVarAttribute(i,r),n.registerEventHandlers(r,"destroy preopen preclose postopen postclose modechange"),o.data("ons-splitter-side",r),o[0].pageLoader=n.createPageLoader(r),e.$on("$destroy",function(){r._events=void 0,o.data("ons-splitter-side",void 0)}),n.fireComponentEvent(o[0],"init")}}}}])}(),angular.module("onsen").directive("onsSplitter",["$compile","Splitter","$onsen",function(e,t,n){return{restrict:"E",scope:!0,compile:function(e,o){return function(e,o,i){var r=new t(e,o,i);n.declareVarAttribute(i,r),n.registerEventHandlers(r,"destroy"),o.data("ons-splitter",r),e.$on("$destroy",function(){r._events=void 0,o.data("ons-splitter",void 0)}),n.fireComponentEvent(o[0],"init")}}}}]),angular.module("onsen").directive("onsSwitch",["$onsen","SwitchView",function(e,t){return{restrict:"E",replace:!1,scope:!0,link:function(n,o,i){if(i.ngController)throw new Error("This element can't accept ng-controller directive.");var r=new t(o,n,i);e.addModifierMethodsForCustomElements(r,o),e.declareVarAttribute(i,r),o.data("ons-switch",r),e.cleaner.onDestroy(n,function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-switch",void 0),e.clearComponent({element:o,scope:n,attrs:i}),o=i=n=null}),e.fireComponentEvent(o[0],"init")}}}]),function(){var e=window.ons.elements.Tabbar.rewritables.ready;window.ons.elements.Tabbar.rewritables.ready=ons._waitDiretiveInit("ons-tabbar",e),angular.module("onsen").directive("onsTabbar",["$onsen","$compile","$parse","TabbarView",function(e,t,n,o){return{restrict:"E",replace:!1,scope:!0,link:function(t,n,i,r){var s=new o(t,n,i);e.addModifierMethodsForCustomElements(s,n),e.registerEventHandlers(s,"reactive prechange postchange init show hide destroy"),n.data("ons-tabbar",s),e.declareVarAttribute(i,s),t.$on("$destroy",function(){s._events=void 0,e.removeModifierMethods(s),n.data("ons-tabbar",void 0)}),e.fireComponentEvent(n[0],"init")}}}])}(),function(){function e(e,t){return{restrict:"E",link:function(n,o,i){var r=t.register(n,o,i,{viewKey:"ons-tab"});o[0].pageLoader=e.createPageLoader(r),e.fireComponentEvent(o[0],"init")}}}e.$inject=["$onsen","GenericView"],angular.module("onsen").directive("onsTab",e).directive("onsTabbarItem",e)}(),angular.module("onsen").directive("onsTemplate",["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t){var n=t[0].template||t.html();e.put(t.attr("id"),n)}}}]),angular.module("onsen").directive("onsToast",["$onsen","ToastView",function(e,t){return{restrict:"E",replace:!1,scope:!0,transclude:!1,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"preshow prehide postshow posthide destroy"),e.addModifierMethodsForCustomElements(r,o),o.data("ons-toast",r),o.data("_scope",n),n.$on("$destroy",function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-toast",void 0),o=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsToolbarButton",["$onsen","GenericView",function(e,t){return{restrict:"E",scope:!1,link:{pre:function(n,o,i){var r=new t(n,o,i);o.data("ons-toolbar-button",r),e.declareVarAttribute(i,r),e.addModifierMethodsForCustomElements(r,o),e.cleaner.onDestroy(n,function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-toolbar-button",void 0),o=null,e.clearComponent({scope:n,attrs:i,element:o}),n=o=i=null})},post:function(t,n,o){e.fireComponentEvent(n[0],"init")}}}}]),angular.module("onsen").directive("onsToolbar",["$onsen","GenericView",function(e,t){return{restrict:"E",scope:!1,transclude:!1,compile:function(n){return{pre:function(e,n,o){"ons-toolbar"===n[0].nodeName&&t.register(e,n,o,{viewKey:"ons-toolbar"})},post:function(t,n,o){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").factory("$onsen",["$rootScope","$window","$cacheFactory","$document","$templateCache","$http","$q","$compile","$onsGlobal","ComponentCleaner",function(e,t,n,o,i,r,s,a,c,l){var u={DIRECTIVE_TEMPLATE_URL:"templates",cleaner:l,util:c._util,DeviceBackButtonHandler:c._internal.dbbDispatcher,_defaultDeviceBackButtonHandler:c._defaultDeviceBackButtonHandler,getDefaultDeviceBackButtonHandler:function(){return this._defaultDeviceBackButtonHandler},deriveMethods:function(e,t,n){return n.forEach(function(n){e[n]=function(){return t[n].apply(t,arguments)}}),function(){n.forEach(function(t){e[t]=null}),e=t=null}},derivePropertiesFromElement:function(e,t){t.forEach(function(t){Object.defineProperty(e.prototype,t,{get:function(){return this._element[0][t]},set:function(e){return this._element[0][t]=e}})})},deriveEvents:function(e,t,n,o){o=o||function(e){return e};var i=[];return(n=[].concat(n)).forEach(function(n){var r=function(t){o(t.detail||{}),e.emit(n,t)};i.push(r),t.addEventListener(n,r,!1)}),function(){n.forEach(function(e,n){t.removeEventListener(e,i[n],!1)}),e=t=i=o=null}},isEnabledAutoStatusBarFill:function(){return!!c._config.autoStatusBarFill},shouldFillStatusBar:c.shouldFillStatusBar,autoStatusBarFill:c.autoStatusBarFill,compileAndLink:function(e,t,n){var o=a(t),i=e._scope.$new();angular.element(t).data("_scope",i),i.$evalAsync(function(){n(t),o(i)})},createPageLoader:function(e){var t=this;return new c.PageLoader(function(n,o){var i=n.page,r=n.parent;c._internal.getPageHTMLAsync(i).then(function(n){t.compileAndLink(e,c._util.createElement(n),function(e){return o(r.appendChild(e))})})},function(e){e._destroy(),angular.element(e).data("_scope")&&angular.element(e).data("_scope").$destroy()})},clearComponent:function(e){e.scope&&l.destroyScope(e.scope),e.attrs&&l.destroyAttributes(e.attrs),e.element&&l.destroyElement(e.element),e.elements&&e.elements.forEach(function(e){l.destroyElement(e)})},findElementeObject:function(e,t){return e.inheritedData(t)},getPageHTMLAsync:function(e){var t=i.get(e);if(t){var n=s.defer(),o="string"==typeof t?t:t[1];return n.resolve(this.normalizePageHTML(o)),n.promise}return r({url:e,method:"GET"}).then(function(e){var t=e.data;return this.normalizePageHTML(t)}.bind(this))},normalizePageHTML:function(e){return(e=(""+e).trim()).match(/^<ons-page/)||(e="<ons-page _muted>"+e+"</ons-page>"),e},generateModifierTemplater:function(e,t){var n=e&&"string"==typeof e.modifier?e.modifier.trim().split(/ +/):[];return t=angular.isArray(t)?n.concat(t):n,function(e){return t.map(function(t){return e.replace("*",t)}).join(" ")}},addModifierMethodsForCustomElements:function(e,t){var n={hasModifier:function(e){var n=d.split(t.attr("modifier"));return e="string"==typeof e?e.trim():"",d.split(e).some(function(e){return-1!=n.indexOf(e)})},removeModifier:function(e){e="string"==typeof e?e.trim():"";var n=d.split(t.attr("modifier")).filter(function(t){return t!==e}).join(" ");t.attr("modifier",n)},addModifier:function(e){t.attr("modifier",t.attr("modifier")+" "+e)},setModifier:function(e){t.attr("modifier",e)},toggleModifier:function(e){this.hasModifier(e)?this.removeModifier(e):this.addModifier(e)}};for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])},addModifierMethods:function(e,t,n){var o=function(e){return t.replace("*",e)},i={hasModifier:function(e){return n.hasClass(o(e))},removeModifier:function(e){n.removeClass(o(e))},addModifier:function(e){n.addClass(o(e))},setModifier:function(e){for(var i=n.attr("class").split(/\s+/),r=t.replace("*","."),s=0;s<i.length;s++){var a=i[s];a.match(r)&&n.removeClass(a)}n.addClass(o(e))},toggleModifier:function(e){var t=o(e);n.hasClass(t)?n.removeClass(t):n.addClass(t)}},r=function(e,t){return void 0!==e?function(){return e.apply(null,arguments)||t.apply(null,arguments)}:t};e.hasModifier=r(e.hasModifier,i.hasModifier),e.removeModifier=r(e.removeModifier,i.removeModifier),e.addModifier=r(e.addModifier,i.addModifier),e.setModifier=r(e.setModifier,i.setModifier),e.toggleModifier=r(e.toggleModifier,i.toggleModifier)},removeModifierMethods:function(e){e.hasModifier=e.removeModifier=e.addModifier=e.setModifier=e.toggleModifier=void 0},declareVarAttribute:function(e,t){if("string"==typeof e.var){var n=e.var;this._defineVar(n,t)}},_registerEventHandler:function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);e.on(t,function(o){u.fireComponentEvent(e._element[0],t,o&&o.detail);var i=e._attrs["ons"+n];i&&(e._scope.$eval(i,{$event:o}),e._scope.$evalAsync())})},registerEventHandlers:function(e,t){for(var n=0,o=(t=t.trim().split(/\s+/)).length;n<o;n++){var i=t[n];this._registerEventHandler(e,i)}},isAndroid:function(){return!!t.navigator.userAgent.match(/android/i)},isIOS:function(){return!!t.navigator.userAgent.match(/(ipad|iphone|ipod touch)/i)},isWebView:function(){return c.isWebView()},isIOS7above:function(){var e=t.navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS (\d+)_(\d+)/i),n=!!e&&parseFloat(e[2]+"."+e[3])>=7;return function(){return n}}(),fireComponentEvent:function(e,t,n){n=n||{};var o=document.createEvent("HTMLEvents");for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);o.component=e?angular.element(e).data(e.nodeName.toLowerCase())||null:null,o.initEvent(e.nodeName.toLowerCase()+":"+t,!0,!0),e.dispatchEvent(o)},_defineVar:function(t,n){function o(e,t,n){for(var o,i=0;i<t.length-1;i++)void 0!==e[o=t[i]]&&null!==e[o]||(e[o]={}),e=e[o];if(e[t[t.length-1]]=n,e[t[t.length-1]]!==n)throw new Error('Cannot set var="'+n._attrs.var+'" because it will overwrite a read-only variable.')}var i=t.split(/\./);ons.componentBase&&o(ons.componentBase,i,n);for(var r=n._element[0];r.parentNode;){if(r.hasAttribute("ons-scope"))return o(angular.element(r).data("_scope"),i,n),void(r=null);r=r.parentNode}r=null,o(e,i,n)}},d=c._internal.ModifierUtil;return u}]),function(){var e=angular.module("onsen"),t={decomposeNode:function(e){for(var n=e.remove().children(),o=0;o<n.length;o++)t.decomposeNode(angular.element(n[o]))},destroyAttributes:function(e){e.$$element=null,e.$$observers=null},destroyElement:function(e){e.remove()},destroyScope:function(e){e.$$listeners={},e.$$watchers=null,e=null},onDestroy:function(e,t){var n=e.$on("$destroy",function(){n(),t.apply(null,arguments)})}};e.factory("ComponentCleaner",function(){return t}),function(){var n={};"click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" ").forEach(function(e){var o=function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}("ng-"+e);n[o]=["$parse",function(n){return{compile:function(i,r){var s=n(r[o]);return function(n,o,i){var r=function(e){n.$apply(function(){s(n,{$event:e})})};o.on(e,r),t.onDestroy(n,function(){o.off(e,r),o=null,t.destroyScope(n),n=null,t.destroyAttributes(i),i=null})}}}}]}),e.config(["$provide",function(e){Object.keys(n).forEach(function(t){e.decorator(t+"Directive",["$delegate",function(e){return e.shift(),e}])})}]),Object.keys(n).forEach(function(t){e.directive(t,n[t])})}()}(),window.jQuery&&angular.element===window.jQuery&&console.warn("Onsen UI require jqLite. Load jQuery after loading AngularJS to fix this error. jQuery may break Onsen UI behavior."),Object.keys(ons.notification).filter(function(e){return!/^_/.test(e)}).forEach(function(e){var t=ons.notification[e];ons.notification[e]=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e?n.message=e:n=e;var o=n.compile,i=void 0;return n.compile=function(e){return i=angular.element(o?o(e):e),ons.$compile(i)(i.injector().get("$rootScope"))},n.destroy=function(){i.data("_scope").$destroy(),i=null},t(n)}}),angular.module("onsen").run(["$templateCache",function(e){for(var t=window.document.querySelectorAll('script[type="text/ons-template"]'),n=0;n<t.length;n++){var o=angular.element(t[n]),i=o.attr("id");"string"==typeof i&&e.put(i,o.text())}}])});
/* angular-onsenui v2.8.3 - 2017-12-14 */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";!function(){function e(){}var t=/xyz/.test(function(){})?/\b_super\b/:/.*/;e.extend=function(n){var o=this.prototype,i=Object.create(o);for(var r in n)i[r]="function"==typeof n[r]&&"function"==typeof o[r]&&t.test(n[r])?function(e,t){return function(){var n=this._super;this._super=o[e];var i=t.apply(this,arguments);return this._super=n,i}}(r,n[r]):n[r];var s="function"==typeof i.init?i.hasOwnProperty("init")?i.init:function(){o.init.apply(this,arguments)}:function(){};return s.prototype=i,i.constructor=s,s.extend=e.extend,s},window.Class=e}();var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};!function(t){var n=angular.module("onsen",[]);angular.module("onsen.directives",["onsen"]),function(){t._onsenService=null,t.componentBase=window,t.bootstrap=function(e,t){angular.isArray(e)&&(t=e,e=void 0),e||(e="myOnsenApp"),t=["onsen"].concat(angular.isArray(t)?t:[]);var n=angular.module(e,t),o=window.document;if("loading"==o.readyState||"uninitialized"==o.readyState||"interactive"==o.readyState)o.addEventListener("DOMContentLoaded",function(){angular.bootstrap(o.documentElement,[e])},!1);else{if(!o.documentElement)throw new Error("Invalid state");angular.bootstrap(o.documentElement,[e])}return n},t.findParentComponentUntil=function(e,t){var n;return t instanceof HTMLElement?n=angular.element(t):t instanceof angular.element?n=t:t.target&&(n=angular.element(t.target)),n.inheritedData(e)},t.findComponent=function(e,t){var n=(t||document).querySelector(e);return n?angular.element(n).data(n.nodeName.toLowerCase())||null:null},t.compile=function(e){if(!t.$compile)throw new Error("ons.$compile() is not ready. Wait for initialization with ons.ready().");if(!(e instanceof HTMLElement))throw new Error("First argument must be an instance of HTMLElement.");var n=angular.element(e).scope();if(!n)throw new Error("AngularJS Scope is null. Argument DOM element must be attached in DOM document.");t.$compile(e)(n)},t._getOnsenService=function(){if(!this._onsenService)throw new Error("$onsen is not loaded, wait for ons.ready().");return this._onsenService},t._waitDiretiveInit=function(e,t){return function(n,o){angular.element(n).data(e)?t(n,o):n.addEventListener(e+":init",function i(){t(n,o),n.removeEventListener(e+":init",i,!1)},!1)}};var n=t.createElement;t.createElement=function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(e){return angular.element(e).data(e.tagName.toLowerCase())||e},s=n(o,e({append:!!i.parentScope,link:function(e){i.parentScope?(t.$compile(angular.element(e))(i.parentScope.$new()),i.parentScope.$evalAsync()):t.compile(e)}},i));return s instanceof Promise?s.then(r):r(s)},t.resolveLoadingPlaceHolder,t.resolveLoadingPlaceholder=function(e){return resolveLoadingPlaceholderOriginal(e,function(e,n){t.compile(e),angular.element(e).scope().$evalAsync(function(){return setImmediate(n)})})},t._setupLoadingPlaceHolders=function(){}}(),function(){var e=t._readyLock.lock();n.run(["$compile","$rootScope",function(t,n){if("loading"===document.readyState||"uninitialized"==document.readyState)window.addEventListener("DOMContentLoaded",function(){document.body.appendChild(document.createElement("ons-dummy-for-init"))});else{if(!document.body)throw new Error("Invalid initialization state.");document.body.appendChild(document.createElement("ons-dummy-for-init"))}n.$on("$ons-ready",e)}])}(),n.value("$onsGlobal",t),n.run(["$compile","$rootScope","$onsen","$q",function(e,n,o,i){t._onsenService=o,t._qService=i,n.ons=window.ons,n.console=window.console,n.alert=window.alert,t.$compile=e}]),n.run(["$templateCache",function(e){var n=t._internal.getTemplateHTMLAsync;t._internal.getTemplateHTMLAsync=function(t){var o=e.get(t);return o?Promise.resolve(o):n(t)}}])}(window.ons=window.ons||{}),angular.module("onsen").factory("ActionSheetView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._scope=t,this._element=n,this._attrs=o,this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["show","hide","toggle"]),this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["preshow","postshow","prehide","posthide","cancel"],function(e){return e.actionSheet&&(e.actionSheet=this),e}.bind(this)),this._scope.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._element.remove(),this._clearDerivingMethods(),this._clearDerivingEvents(),this._scope=this._attrs=this._element=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["disabled","cancelable","visible","onDeviceBackButton"]),t}]),angular.module("onsen").factory("AlertDialogView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._scope=t,this._element=n,this._attrs=o,this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["show","hide"]),this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["preshow","postshow","prehide","posthide","cancel"],function(e){return e.alertDialog&&(e.alertDialog=this),e}.bind(this)),this._scope.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._element.remove(),this._clearDerivingMethods(),this._clearDerivingEvents(),this._scope=this._attrs=this._element=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["disabled","cancelable","visible","onDeviceBackButton"]),t}]),angular.module("onsen").factory("CarouselView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._element=n,this._scope=t,this._attrs=o,this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingMethods=e.deriveMethods(this,n[0],["setActiveIndex","getActiveIndex","next","prev","refresh","first","last"]),this._clearDerivingEvents=e.deriveEvents(this,n[0],["refresh","postchange","overscroll"],function(e){return e.carousel&&(e.carousel=this),e}.bind(this))},_destroy:function(){this.emit("destroy"),this._clearDerivingEvents(),this._clearDerivingMethods(),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["centered","overscrollable","disabled","autoScroll","swipeable","autoScrollRatio","itemCount","onSwipe"]),t}]),angular.module("onsen").factory("DialogView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._scope=t,this._element=n,this._attrs=o,this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["show","hide"]),this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["preshow","postshow","prehide","posthide","cancel"],function(e){return e.dialog&&(e.dialog=this),e}.bind(this)),this._scope.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._element.remove(),this._clearDerivingMethods(),this._clearDerivingEvents(),this._scope=this._attrs=this._element=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["disabled","cancelable","visible","onDeviceBackButton"]),t}]),angular.module("onsen").factory("FabView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._element=n,this._scope=t,this._attrs=o,this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingMethods=e.deriveMethods(this,n[0],["show","hide","toggle"])},_destroy:function(){this.emit("destroy"),this._clearDerivingMethods(),this._element=this._scope=this._attrs=null}});return e.derivePropertiesFromElement(t,["disabled","visible"]),MicroEvent.mixin(t),t}]),angular.module("onsen").factory("GenericView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o,i){var r=this;if(i={},this._element=n,this._scope=t,this._attrs=o,i.directiveOnly){if(!i.modifierTemplate)throw new Error("options.modifierTemplate is undefined.");e.addModifierMethods(this,i.modifierTemplate,n)}else e.addModifierMethodsForCustomElements(this,n);e.cleaner.onDestroy(t,function(){r._events=void 0,e.removeModifierMethods(r),i.onDestroy&&i.onDestroy(r),e.clearComponent({scope:t,attrs:o,element:n}),r=n=r._element=r._scope=t=r._attrs=o=i=null})}});return t.register=function(n,o,i,r){var s=new t(n,o,i,r);if(!r.viewKey)throw new Error("options.viewKey is required.");e.declareVarAttribute(i,s),o.data(r.viewKey,s);var a=r.onDestroy||angular.noop;return r.onDestroy=function(e){a(e),o.data(r.viewKey,null)},s},MicroEvent.mixin(t),t}]);var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),n=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(o)};angular.module("onsen").factory("AngularLazyRepeatDelegate",["$compile",function(e){var o=["ons-lazy-repeat","ons:lazy:repeat","ons_lazy_repeat","data-ons-lazy-repeat","x-ons-lazy-repeat"];return function(i){function r(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,t,n));return s._parentScope=i,o.forEach(function(e){return n.removeAttribute(e)}),s._linker=e(n?n.cloneNode(!0):null),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,ons._internal.LazyRepeatDelegate),t(r,[{key:"configureItemScope",value:function(e,t){this._userDelegate.configureItemScope instanceof Function&&this._userDelegate.configureItemScope(e,t)}},{key:"destroyItemScope",value:function(e,t){this._userDelegate.destroyItemScope instanceof Function&&this._userDelegate.destroyItemScope(e,t)}},{key:"_usingBinding",value:function(){if(this._userDelegate.configureItemScope)return!0;if(this._userDelegate.createItemContent)return!1;throw new Error("`lazy-repeat` delegate object is vague.")}},{key:"loadItemElement",value:function(e,t){this._prepareItemElement(e,function(e){var n=e.element,o=e.scope;t({element:n,scope:o})})}},{key:"_prepareItemElement",value:function(t,n){var o=this,i=this._parentScope.$new();this._addSpecialProperties(t,i),this._usingBinding()&&this.configureItemScope(t,i),this._linker(i,function(r){var s=r[0];o._usingBinding()||(s=o._userDelegate.createItemContent(t,s),e(s)(i)),n({element:s,scope:i})})}},{key:"_addSpecialProperties",value:function(e,t){var n=this.countItems()-1;angular.extend(t,{$index:e,$first:0===e,$last:e===n,$middle:0!==e&&e!==n,$even:e%2==0,$odd:e%2==1})}},{key:"updateItem",value:function(e,t){var o=this;this._usingBinding()?t.scope.$evalAsync(function(){return o.configureItemScope(e,t.scope)}):n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"updateItem",this).call(this,e,t)}},{key:"destroyItem",value:function(e,t){this._usingBinding()?this.destroyItemScope(e,t.scope):n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"destroyItem",this).call(this,e,t.element),t.scope.$destroy()}},{key:"destroy",value:function(){n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"destroy",this).call(this),this._scope=null}}]),r}()}]),angular.module("onsen").factory("LazyRepeatView",["AngularLazyRepeatDelegate",function(e){return Class.extend({init:function(t,n,o,i){var r=this;this._element=n,this._scope=t,this._attrs=o,this._linker=i;var s=this._scope.$eval(this._attrs.onsLazyRepeat),a=new e(s,n[0],t||n.scope());this._provider=new ons._internal.LazyRepeatProvider(n[0].parentNode,a),s.refresh=this._provider.refresh.bind(this._provider),n.remove(),this._scope.$watch(a.countItems.bind(a),this._provider._onChange.bind(this._provider)),this._scope.$on("$destroy",function(){r._element=r._scope=r._attrs=r._linker=null})}})}]),angular.module("onsen").factory("ModalView",["$onsen","$parse",function(e,t){var n=Class.extend({_element:void 0,_scope:void 0,init:function(t,n,o){this._scope=t,this._element=n,this._attrs=o,this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["show","hide","toggle"]),this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["preshow","postshow","prehide","posthide"],function(e){return e.modal&&(e.modal=this),e}.bind(this))},_destroy:function(){this.emit("destroy",{page:this}),this._element.remove(),this._clearDerivingMethods(),this._clearDerivingEvents(),this._events=this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(n),e.derivePropertiesFromElement(n,["onDeviceBackButton","visible"]),n}]),angular.module("onsen").factory("NavigatorView",["$compile","$onsen",function(e,t){var n=Class.extend({_element:void 0,_attrs:void 0,_scope:void 0,init:function(e,n,o){this._element=n||angular.element(window.document.body),this._scope=e||this._element.scope(),this._attrs=o,this._previousPageScope=null,this._boundOnPrepop=this._onPrepop.bind(this),this._element.on("prepop",this._boundOnPrepop),this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingEvents=t.deriveEvents(this,n[0],["prepush","postpush","prepop","postpop","init","show","hide","destroy"],function(e){return e.navigator&&(e.navigator=this),e}.bind(this)),this._clearDerivingMethods=t.deriveMethods(this,n[0],["insertPage","removePage","pushPage","bringPageTop","popPage","replacePage","resetToPage","canPopPage"])},_onPrepop:function(e){var t=e.detail.navigator.pages;angular.element(t[t.length-2]).data("_scope").$evalAsync()},_destroy:function(){this.emit("destroy"),this._clearDerivingEvents(),this._clearDerivingMethods(),this._element.off("prepop",this._boundOnPrepop),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(n),t.derivePropertiesFromElement(n,["pages","topPage","onSwipe","options","onDeviceBackButton","pageLoader"]),n}]),angular.module("onsen").factory("PageView",["$onsen","$parse",function(e,t){var n=Class.extend({init:function(n,o,i){var r=this;this._scope=n,this._element=o,this._attrs=i,this._clearListener=n.$on("$destroy",this._destroy.bind(this)),this._clearDerivingEvents=e.deriveEvents(this,o[0],["init","show","hide","destroy"]),Object.defineProperty(this,"onDeviceBackButton",{get:function(){return r._element[0].onDeviceBackButton},set:function(e){r._userBackButtonHandler||r._enableBackButtonHandler(),r._userBackButtonHandler=e}}),(this._attrs.ngDeviceBackButton||this._attrs.onDeviceBackButton)&&this._enableBackButtonHandler(),this._attrs.ngInfiniteScroll&&(this._element[0].onInfiniteScroll=function(e){t(r._attrs.ngInfiniteScroll)(r._scope)(e)})},_enableBackButtonHandler:function(){this._userBackButtonHandler=angular.noop,this._element[0].onDeviceBackButton=this._onDeviceBackButton.bind(this)},_onDeviceBackButton:function(e){if(this._userBackButtonHandler(e),this._attrs.ngDeviceBackButton&&t(this._attrs.ngDeviceBackButton)(this._scope,{$event:e}),this._attrs.onDeviceBackButton){var n=window.$event;window.$event=e,new Function(this._attrs.onDeviceBackButton)(),window.$event=n}},_destroy:function(){this._clearDerivingEvents(),this._element=null,this._scope=null,this._clearListener()}});return MicroEvent.mixin(n),n}]),angular.module("onsen").factory("PopoverView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._element=n,this._scope=t,this._attrs=o,this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["show","hide"]),this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["preshow","postshow","prehide","posthide"],function(e){return e.popover&&(e.popover=this),e}.bind(this))},_destroy:function(){this.emit("destroy"),this._clearDerivingMethods(),this._clearDerivingEvents(),this._element.remove(),this._element=this._scope=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["cancelable","disabled","onDeviceBackButton","visible"]),t}]),angular.module("onsen").factory("PullHookView",["$onsen","$parse",function(e,t){var n=Class.extend({init:function(t,n,o){var i=this;this._element=n,this._scope=t,this._attrs=o,this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["changestate"],function(e){return e.pullHook&&(e.pullHook=i),e}),this.on("changestate",function(){return i._scope.$evalAsync()}),this._element[0].onAction=function(e){i._attrs.ngAction?i._scope.$eval(i._attrs.ngAction,{$done:e}):i.onAction?i.onAction(e):e()},this._scope.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._clearDerivingEvents(),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(n),e.derivePropertiesFromElement(n,["state","onPull","pullDistance","height","thresholdHeight","disabled"]),n}]),angular.module("onsen").factory("SpeedDialView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._element=n,this._scope=t,this._attrs=o,this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingMethods=e.deriveMethods(this,n[0],["show","hide","showItems","hideItems","isOpen","toggle","toggleItems"]),this._clearDerivingEvents=e.deriveEvents(this,n[0],["open","close"]).bind(this)},_destroy:function(){this.emit("destroy"),this._clearDerivingEvents(),this._clearDerivingMethods(),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["disabled","visible","inline"]),t}]),angular.module("onsen").factory("SplitterContent",["$onsen","$compile",function(e,t){var n=Class.extend({init:function(e,t,n){this._element=t,this._scope=e,this._attrs=n,this.load=this._element[0].load.bind(this._element[0]),e.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._element=this._scope=this._attrs=this.load=this._pageScope=null}});return MicroEvent.mixin(n),e.derivePropertiesFromElement(n,["page"]),n}]),angular.module("onsen").factory("SplitterSide",["$onsen","$compile",function(e,t){var n=Class.extend({init:function(t,n,o){var i=this;this._element=n,this._scope=t,this._attrs=o,this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["open","close","toggle","load"]),this._clearDerivingEvents=e.deriveEvents(this,n[0],["modechange","preopen","preclose","postopen","postclose"],function(e){return e.side?angular.extend(e,{side:i}):e}),t.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._clearDerivingMethods(),this._clearDerivingEvents(),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(n),e.derivePropertiesFromElement(n,["page","mode","isOpen","onSwipe","pageLoader"]),n}]),angular.module("onsen").factory("Splitter",["$onsen",function(e){var t=Class.extend({init:function(e,t,n){this._element=t,this._scope=e,this._attrs=n,e.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["onDeviceBackButton"]),["left","right","side","content","mask"].forEach(function(e,n){Object.defineProperty(t.prototype,e,{get:function(){var t="ons-splitter-"+(n<3?"side":e);return angular.element(this._element[0][e]).data(t)}})}),t}]),angular.module("onsen").factory("SwitchView",["$parse","$onsen",function(e,t){var n=Class.extend({init:function(e,t,n){var o=this;this._element=e,this._checkbox=angular.element(e[0].querySelector("input[type=checkbox]")),this._scope=t,this._prepareNgModel(e,t,n),this._scope.$on("$destroy",function(){o.emit("destroy"),o._element=o._checkbox=o._scope=null})},_prepareNgModel:function(t,n,o){var i=this;if(o.ngModel){var r=e(o.ngModel).assign;n.$parent.$watch(o.ngModel,function(e){i.checked=!!e}),this._element.on("change",function(e){r(n.$parent,i.checked),o.ngChange&&n.$eval(o.ngChange),n.$parent.$evalAsync()})}}});return MicroEvent.mixin(n),t.derivePropertiesFromElement(n,["disabled","checked","checkbox","value"]),n}]),angular.module("onsen").factory("TabbarView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){if("ons-tabbar"!==n[0].nodeName.toLowerCase())throw new Error('"element" parameter must be a "ons-tabbar" element.');this._scope=t,this._element=n,this._attrs=o,this._scope.$on("$destroy",this._destroy.bind(this)),this._clearDerivingEvents=e.deriveEvents(this,n[0],["reactive","postchange","prechange","init","show","hide","destroy"]),this._clearDerivingMethods=e.deriveMethods(this,n[0],["setActiveTab","show","hide","setTabbarVisibility","getActiveTabIndex"])},_destroy:function(){this.emit("destroy"),this._clearDerivingEvents(),this._clearDerivingMethods(),this._element=this._scope=this._attrs=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["visible","swipeable","onSwipe"]),t}]),angular.module("onsen").factory("ToastView",["$onsen",function(e){var t=Class.extend({init:function(t,n,o){this._scope=t,this._element=n,this._attrs=o,this._clearDerivingMethods=e.deriveMethods(this,this._element[0],["show","hide","toggle"]),this._clearDerivingEvents=e.deriveEvents(this,this._element[0],["preshow","postshow","prehide","posthide"],function(e){return e.toast&&(e.toast=this),e}.bind(this)),this._scope.$on("$destroy",this._destroy.bind(this))},_destroy:function(){this.emit("destroy"),this._element.remove(),this._clearDerivingMethods(),this._clearDerivingEvents(),this._scope=this._attrs=this._element=null}});return MicroEvent.mixin(t),e.derivePropertiesFromElement(t,["visible","onDeviceBackButton"]),t}]),angular.module("onsen").directive("onsActionSheetButton",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-action-sheet-button"}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsActionSheet",["$onsen","ActionSheetView",function(e,t){return{restrict:"E",replace:!1,scope:!0,transclude:!1,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"preshow prehide postshow posthide destroy"),e.addModifierMethodsForCustomElements(r,o),o.data("ons-action-sheet",r),n.$on("$destroy",function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-action-sheet",void 0),o=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsAlertDialog",["$onsen","AlertDialogView",function(e,t){return{restrict:"E",replace:!1,scope:!0,transclude:!1,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"preshow prehide postshow posthide destroy"),e.addModifierMethodsForCustomElements(r,o),o.data("ons-alert-dialog",r),o.data("_scope",n),n.$on("$destroy",function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-alert-dialog",void 0),o=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsBackButton",["$onsen","$compile","GenericView","ComponentCleaner",function(e,t,n,o){return{restrict:"E",replace:!1,compile:function(t,i){return{pre:function(t,i,r,s,a){var c=n.register(t,i,r,{viewKey:"ons-back-button"});r.ngClick&&(i[0].onClick=angular.noop),t.$on("$destroy",function(){c._events=void 0,e.removeModifierMethods(c),i=null}),o.onDestroy(t,function(){o.destroyScope(t),o.destroyAttributes(r),i=t=r=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsBottomToolbar",["$onsen","GenericView",function(e,t){return{restrict:"E",link:{pre:function(e,n,o){t.register(e,n,o,{viewKey:"ons-bottomToolbar"})},post:function(t,n,o){e.fireComponentEvent(n[0],"init")}}}}]),angular.module("onsen").directive("onsButton",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){var r=t.register(n,o,i,{viewKey:"ons-button"});Object.defineProperty(r,"disabled",{get:function(){return this._element[0].disabled},set:function(e){return this._element[0].disabled=e}}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsCard",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-card"}),e.fireComponentEvent(o[0],"init")}}}]),function(){var e=angular.module("onsen");e.directive("onsCarousel",["$onsen","CarouselView",function(e,t){return{restrict:"E",replace:!1,scope:!1,transclude:!1,compile:function(n,o){return function(n,o,i){var r=new t(n,o,i);o.data("ons-carousel",r),e.registerEventHandlers(r,"postchange refresh overscroll destroy"),e.declareVarAttribute(i,r),n.$on("$destroy",function(){r._events=void 0,o.data("ons-carousel",void 0),o=null}),e.fireComponentEvent(o[0],"init")}}}}]),e.directive("onsCarouselItem",["$onsen",function(e){return{restrict:"E",compile:function(t,n){return function(t,n,o){if(t.$last){var i=e.util.findParent(n[0],"ons-carousel");i._swiper.init({swipeable:i.hasAttribute("swipeable"),autoRefresh:i.hasAttribute("auto-refresh")})}}}}}])}(),angular.module("onsen").directive("onsCheckbox",["$parse",function(e){return{restrict:"E",replace:!1,scope:!1,link:function(t,n,o){var i=n[0],r=function(){e(o.ngModel).assign(t,i.checked),o.ngChange&&t.$eval(o.ngChange),t.$parent.$evalAsync()};o.ngModel&&(t.$watch(o.ngModel,function(e){return i.checked=e}),n.on("change",r)),t.$on("$destroy",function(){n.off("change",r),t=n=o=i=null})}}}]),angular.module("onsen").directive("onsDialog",["$onsen","DialogView",function(e,t){return{restrict:"E",scope:!0,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"preshow prehide postshow posthide destroy"),e.addModifierMethodsForCustomElements(r,o),o.data("ons-dialog",r),n.$on("$destroy",function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-dialog",void 0),o=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsDummyForInit",["$rootScope",function(e){var t=!1;return{restrict:"E",replace:!1,link:{post:function(n,o){t||(t=!0,e.$broadcast("$ons-ready")),o.remove()}}}}]),angular.module("onsen").directive("onsFab",["$onsen","FabView",function(e,t){return{restrict:"E",replace:!1,scope:!1,transclude:!1,compile:function(n,o){return function(n,o,i){var r=new t(n,o,i);o.data("ons-fab",r),e.declareVarAttribute(i,r),n.$on("$destroy",function(){o.data("ons-fab",void 0),o=null}),e.fireComponentEvent(o[0],"init")}}}}]),function(){var e="drag dragleft dragright dragup dragdown hold release swipe swipeleft swiperight swipeup swipedown tap doubletap touch transform pinch pinchin pinchout rotate".split(/ +/);angular.module("onsen").directive("onsGestureDetector",["$onsen",function(t){function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}var o=e.reduce(function(e,t){return e["ng"+n(t)]="&",e},{});return{restrict:"E",scope:o,replace:!1,transclude:!0,compile:function(i,r){return function(i,r,s,a,c){c(i.$parent,function(e){r.append(e)});var l,u=function(e){var t="ng"+n(e.type);t in o&&i[t]({$event:e})};setImmediate(function(){(l=r[0]._gestureDetector).on(e.join(" "),u)}),t.cleaner.onDestroy(i,function(){l.off(e.join(" "),u),t.clearComponent({scope:i,element:r,attrs:s}),l.element=i=r=s=null}),t.fireComponentEvent(r[0],"init")}}}}])}(),angular.module("onsen").directive("onsIcon",["$onsen","GenericView",function(e,t){return{restrict:"E",compile:function(e,n){return-1!==n.icon.indexOf("{{")&&n.$observe("icon",function(){setImmediate(function(){return e[0]._update()})}),function(e,n,o){t.register(e,n,o,{viewKey:"ons-icon"})}}}}]),angular.module("onsen").directive("onsIfOrientation",["$onsen","$onsGlobal",function(e,t){return{restrict:"A",replace:!1,transclude:!1,scope:!1,compile:function(n){return n.css("display","none"),function(n,o,i){function r(){var e=(""+i.onsIfOrientation).toLowerCase(),n=t.orientation.isPortrait()?"portrait":"landscape";"portrait"!==e&&"landscape"!==e||(e===n?o.css("display",""):o.css("display","none"))}i.$observe("onsIfOrientation",r),t.orientation.on("change",r),r(),e.cleaner.onDestroy(n,function(){t.orientation.off("change",r),e.clearComponent({element:o,scope:n,attrs:i}),o=n=i=null})}}}}]),angular.module("onsen").directive("onsIfPlatform",["$onsen",function(e){return{restrict:"A",replace:!1,transclude:!1,scope:!1,compile:function(t){t.css("display","none");var n=function(){if(navigator.userAgent.match(/Android/i))return"android";if(navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/RIM Tablet OS/i)||navigator.userAgent.match(/BB10/i))return"blackberry";if(navigator.userAgent.match(/iPhone|iPad|iPod/i))return"ios";if(navigator.userAgent.match(/Windows Phone|IEMobile|WPDesktop/i))return"wp";var e=!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0;if(e)return"opera";if("undefined"!=typeof InstallTrigger)return"firefox";if(Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0)return"safari";var t=navigator.userAgent.indexOf(" Edge/")>=0;return t?"edge":!window.chrome||e||t?document.documentMode?"ie":"unknown":"chrome"}();return function(t,o,i){function r(){i.onsIfPlatform.toLowerCase().trim().split(/\s+/).indexOf(n.toLowerCase())>=0?o.css("display","block"):o.css("display","none")}i.$observe("onsIfPlatform",function(e){e&&r()}),r(),e.cleaner.onDestroy(t,function(){e.clearComponent({element:o,scope:t,attrs:i}),o=t=i=null})}}}}]),angular.module("onsen").directive("onsInput",["$parse",function(e){return{restrict:"E",replace:!1,scope:!1,link:function(t,n,o){var i=n[0],r=function(){e(o.ngModel).assign(t,"number"===i.type?Number(i.value):i.value),o.ngChange&&t.$eval(o.ngChange),t.$parent.$evalAsync()};o.ngModel&&(t.$watch(o.ngModel,function(e){void 0!==e&&e!==i.value&&(i.value=e)}),n.on("input",r)),t.$on("$destroy",function(){n.off("input",r),t=n=o=i=null})}}}]),function(){var e=angular.module("onsen"),t=function(e,t){return function(n){return function(n,o,i){var r=e?"block":"none",s=e?"none":"block",a=function(){o.css("display",r)},c=function(){o.css("display",s)},l=function(e){e.visible?a():c()};ons.softwareKeyboard.on("show",a),ons.softwareKeyboard.on("hide",c),ons.softwareKeyboard.on("init",l),ons.softwareKeyboard._visible?a():c(),t.cleaner.onDestroy(n,function(){ons.softwareKeyboard.off("show",a),ons.softwareKeyboard.off("hide",c),ons.softwareKeyboard.off("init",l),t.clearComponent({element:o,scope:n,attrs:i}),o=n=i=null})}}};e.directive("onsKeyboardActive",["$onsen",function(e){return{restrict:"A",replace:!1,transclude:!1,scope:!1,compile:t(!0,e)}}]),e.directive("onsKeyboardInactive",["$onsen",function(e){return{restrict:"A",replace:!1,transclude:!1,scope:!1,compile:t(!1,e)}}])}(),angular.module("onsen").directive("onsLazyRepeat",["$onsen","LazyRepeatView",function(e,t){return{restrict:"A",replace:!1,priority:1e3,terminal:!0,compile:function(e,n){return function(e,n,o){var i=new t(e,n,o);e.$on("$destroy",function(){e=n=o=i=null})}}}}]),angular.module("onsen").directive("onsListHeader",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-list-header"}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsListItem",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-list-item"}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsList",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-list"}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsListTitle",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-list-title"}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsLoadingPlaceholder",function(){return{restrict:"A",link:function(e,t,n){n.onsLoadingPlaceholder&&ons._resolveLoadingPlaceholder(t[0],n.onsLoadingPlaceholder,function(t,n){ons.compile(t),e.$evalAsync(function(){setImmediate(n)})})}}}),angular.module("onsen").directive("onsModal",["$onsen","ModalView",function(e,t){return{restrict:"E",replace:!1,scope:!1,transclude:!1,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.addModifierMethodsForCustomElements(r,o),e.declareVarAttribute(i,r),e.registerEventHandlers(r,"preshow prehide postshow posthide destroy"),o.data("ons-modal",r),n.$on("$destroy",function(){e.removeModifierMethods(r),o.data("ons-modal",void 0),r=o=n=i=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),function(){var e=window.ons.elements.Navigator.rewritables.ready;window.ons.elements.Navigator.rewritables.ready=ons._waitDiretiveInit("ons-navigator",e),angular.module("onsen").directive("onsNavigator",["NavigatorView","$onsen",function(e,t){return{restrict:"E",transclude:!1,scope:!0,compile:function(n){return{pre:function(n,o,i,r){var s=new e(n,o,i);t.declareVarAttribute(i,s),t.registerEventHandlers(s,"prepush prepop postpush postpop init show hide destroy"),o.data("ons-navigator",s),o[0].pageLoader=t.createPageLoader(s),n.$on("$destroy",function(){s._events=void 0,o.data("ons-navigator",void 0),n=o=null})},post:function(e,n,o){t.fireComponentEvent(n[0],"init")}}}}}])}(),angular.module("onsen").directive("onsPage",["$onsen","PageView",function(e,t){function n(e){return document.documentElement===e||!!e.parentNode&&n(e.parentNode)}return{restrict:"E",transclude:!1,scope:!0,compile:function(o,i){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"init show hide destroy"),o.data("ons-page",r),e.addModifierMethodsForCustomElements(r,o),o.data("_scope",n),e.cleaner.onDestroy(n,function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-page",void 0),o.data("_scope",void 0),e.clearComponent({element:o,scope:n,attrs:i}),n=o=i=null})},post:function(t,o,i){!function(t){var o=0;!function i(){if(!(o++<15))throw new Error('Fail to fire "pageinit" event. Attach "ons-page" element to the document after initialization.');n(t)?(e.fireComponentEvent(t,"init"),function(e){var t=document.createEvent("HTMLEvents");t.initEvent("pageinit",!0,!0),e.dispatchEvent(t)}(t)):o>10?setTimeout(i,1e3/60):setImmediate(i)}()}(o[0])}}}}}]),angular.module("onsen").directive("onsPopover",["$onsen","PopoverView",function(e,t){return{restrict:"E",replace:!1,scope:!0,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"preshow prehide postshow posthide destroy"),e.addModifierMethodsForCustomElements(r,o),o.data("ons-popover",r),n.$on("$destroy",function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-popover",void 0),o=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsPullHook",["$onsen","PullHookView",function(e,t){return{restrict:"E",replace:!1,scope:!0,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"changestate destroy"),o.data("ons-pull-hook",r),n.$on("$destroy",function(){r._events=void 0,o.data("ons-pull-hook",void 0),n=o=i=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsRadio",["$parse",function(e){return{restrict:"E",replace:!1,scope:!1,link:function(t,n,o){var i=n[0],r=function(){e(o.ngModel).assign(t,i.value),o.ngChange&&t.$eval(o.ngChange),t.$parent.$evalAsync()};o.ngModel&&(t.$watch(o.ngModel,function(e){return i.checked=e===i.value}),n.on("change",r)),t.$on("$destroy",function(){n.off("change",r),t=n=o=i=null})}}}]),angular.module("onsen").directive("onsRange",["$parse",function(e){return{restrict:"E",replace:!1,scope:!1,link:function(t,n,o){var i=function(){(0,e(o.ngModel).assign)(t,n[0].value),o.ngChange&&t.$eval(o.ngChange),t.$parent.$evalAsync()};o.ngModel&&(t.$watch(o.ngModel,function(e){n[0].value=e}),n.on("input",i)),t.$on("$destroy",function(){n.off("input",i),t=n=o=null})}}}]),angular.module("onsen").directive("onsRipple",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){t.register(n,o,i,{viewKey:"ons-ripple"}),e.fireComponentEvent(o[0],"init")}}}]),angular.module("onsen").directive("onsScope",["$onsen",function(e){return{restrict:"A",replace:!1,transclude:!1,scope:!1,link:function(e,t){t.data("_scope",e),e.$on("$destroy",function(){t.data("_scope",void 0)})}}}]),angular.module("onsen").directive("onsSearchInput",["$parse",function(e){return{restrict:"E",replace:!1,scope:!1,link:function(t,n,o){var i=n[0],r=function(){e(o.ngModel).assign(t,"number"===i.type?Number(i.value):i.value),o.ngChange&&t.$eval(o.ngChange),t.$parent.$evalAsync()};o.ngModel&&(t.$watch(o.ngModel,function(e){void 0!==e&&e!==i.value&&(i.value=e)}),n.on("input",r)),t.$on("$destroy",function(){n.off("input",r),t=n=o=i=null})}}}]),angular.module("onsen").directive("onsSegment",["$onsen","GenericView",function(e,t){return{restrict:"E",link:function(n,o,i){var r=t.register(n,o,i,{viewKey:"ons-segment"});e.fireComponentEvent(o[0],"init"),e.registerEventHandlers(r,"postchange")}}}]),angular.module("onsen").directive("onsSelect",["$parse","$onsen","GenericView",function(e,t,n){return{restrict:"E",replace:!1,scope:!1,link:function(o,i,r){var s=function(){(0,e(r.ngModel).assign)(o,i[0].value),r.ngChange&&o.$eval(r.ngChange),o.$parent.$evalAsync()};r.ngModel&&(o.$watch(r.ngModel,function(e){i[0].value=e}),i.on("input",s)),o.$on("$destroy",function(){i.off("input",s),o=i=r=null}),n.register(o,i,r,{viewKey:"ons-select"}),t.fireComponentEvent(i[0],"init")}}}]),angular.module("onsen").directive("onsSpeedDial",["$onsen","SpeedDialView",function(e,t){return{restrict:"E",replace:!1,scope:!1,transclude:!1,compile:function(n,o){return function(n,o,i){var r=new t(n,o,i);o.data("ons-speed-dial",r),e.registerEventHandlers(r,"open close"),e.declareVarAttribute(i,r),n.$on("$destroy",function(){r._events=void 0,o.data("ons-speed-dial",void 0),o=null}),e.fireComponentEvent(o[0],"init")}}}}]),function(){var e=window.ons.elements.SplitterContent.rewritables.ready;window.ons.elements.SplitterContent.rewritables.ready=ons._waitDiretiveInit("ons-splitter-content",e),angular.module("onsen").directive("onsSplitterContent",["$compile","SplitterContent","$onsen",function(e,t,n){return{restrict:"E",compile:function(e,o){return function(e,o,i){var r=new t(e,o,i);n.declareVarAttribute(i,r),n.registerEventHandlers(r,"destroy"),o.data("ons-splitter-content",r),o[0].pageLoader=n.createPageLoader(r),e.$on("$destroy",function(){r._events=void 0,o.data("ons-splitter-content",void 0)}),n.fireComponentEvent(o[0],"init")}}}}])}(),function(){var e=window.ons.elements.SplitterSide.rewritables.ready;window.ons.elements.SplitterSide.rewritables.ready=ons._waitDiretiveInit("ons-splitter-side",e),angular.module("onsen").directive("onsSplitterSide",["$compile","SplitterSide","$onsen",function(e,t,n){return{restrict:"E",compile:function(e,o){return function(e,o,i){var r=new t(e,o,i);n.declareVarAttribute(i,r),n.registerEventHandlers(r,"destroy preopen preclose postopen postclose modechange"),o.data("ons-splitter-side",r),o[0].pageLoader=n.createPageLoader(r),e.$on("$destroy",function(){r._events=void 0,o.data("ons-splitter-side",void 0)}),n.fireComponentEvent(o[0],"init")}}}}])}(),angular.module("onsen").directive("onsSplitter",["$compile","Splitter","$onsen",function(e,t,n){return{restrict:"E",scope:!0,compile:function(e,o){return function(e,o,i){var r=new t(e,o,i);n.declareVarAttribute(i,r),n.registerEventHandlers(r,"destroy"),o.data("ons-splitter",r),e.$on("$destroy",function(){r._events=void 0,o.data("ons-splitter",void 0)}),n.fireComponentEvent(o[0],"init")}}}}]),angular.module("onsen").directive("onsSwitch",["$onsen","SwitchView",function(e,t){return{restrict:"E",replace:!1,scope:!0,link:function(n,o,i){if(i.ngController)throw new Error("This element can't accept ng-controller directive.");var r=new t(o,n,i);e.addModifierMethodsForCustomElements(r,o),e.declareVarAttribute(i,r),o.data("ons-switch",r),e.cleaner.onDestroy(n,function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-switch",void 0),e.clearComponent({element:o,scope:n,attrs:i}),o=i=n=null}),e.fireComponentEvent(o[0],"init")}}}]),function(){var e=window.ons.elements.Tabbar.rewritables.ready;window.ons.elements.Tabbar.rewritables.ready=ons._waitDiretiveInit("ons-tabbar",e),angular.module("onsen").directive("onsTabbar",["$onsen","$compile","$parse","TabbarView",function(e,t,n,o){return{restrict:"E",replace:!1,scope:!0,link:function(t,n,i,r){var s=new o(t,n,i);e.addModifierMethodsForCustomElements(s,n),e.registerEventHandlers(s,"reactive prechange postchange init show hide destroy"),n.data("ons-tabbar",s),e.declareVarAttribute(i,s),t.$on("$destroy",function(){s._events=void 0,e.removeModifierMethods(s),n.data("ons-tabbar",void 0)}),e.fireComponentEvent(n[0],"init")}}}])}(),function(){function e(e,t){return{restrict:"E",link:function(n,o,i){var r=t.register(n,o,i,{viewKey:"ons-tab"});o[0].pageLoader=e.createPageLoader(r),e.fireComponentEvent(o[0],"init")}}}e.$inject=["$onsen","GenericView"],angular.module("onsen").directive("onsTab",e).directive("onsTabbarItem",e)}(),angular.module("onsen").directive("onsTemplate",["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t){var n=t[0].template||t.html();e.put(t.attr("id"),n)}}}]),angular.module("onsen").directive("onsToast",["$onsen","ToastView",function(e,t){return{restrict:"E",replace:!1,scope:!0,transclude:!1,compile:function(n,o){return{pre:function(n,o,i){var r=new t(n,o,i);e.declareVarAttribute(i,r),e.registerEventHandlers(r,"preshow prehide postshow posthide destroy"),e.addModifierMethodsForCustomElements(r,o),o.data("ons-toast",r),o.data("_scope",n),n.$on("$destroy",function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-toast",void 0),o=null})},post:function(t,n){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").directive("onsToolbarButton",["$onsen","GenericView",function(e,t){return{restrict:"E",scope:!1,link:{pre:function(n,o,i){var r=new t(n,o,i);o.data("ons-toolbar-button",r),e.declareVarAttribute(i,r),e.addModifierMethodsForCustomElements(r,o),e.cleaner.onDestroy(n,function(){r._events=void 0,e.removeModifierMethods(r),o.data("ons-toolbar-button",void 0),o=null,e.clearComponent({scope:n,attrs:i,element:o}),n=o=i=null})},post:function(t,n,o){e.fireComponentEvent(n[0],"init")}}}}]),angular.module("onsen").directive("onsToolbar",["$onsen","GenericView",function(e,t){return{restrict:"E",scope:!1,transclude:!1,compile:function(n){return{pre:function(e,n,o){"ons-toolbar"===n[0].nodeName&&t.register(e,n,o,{viewKey:"ons-toolbar"})},post:function(t,n,o){e.fireComponentEvent(n[0],"init")}}}}}]),angular.module("onsen").factory("$onsen",["$rootScope","$window","$cacheFactory","$document","$templateCache","$http","$q","$compile","$onsGlobal","ComponentCleaner",function(e,t,n,o,i,r,s,a,c,l){var u={DIRECTIVE_TEMPLATE_URL:"templates",cleaner:l,util:c._util,DeviceBackButtonHandler:c._internal.dbbDispatcher,_defaultDeviceBackButtonHandler:c._defaultDeviceBackButtonHandler,getDefaultDeviceBackButtonHandler:function(){return this._defaultDeviceBackButtonHandler},deriveMethods:function(e,t,n){return n.forEach(function(n){e[n]=function(){return t[n].apply(t,arguments)}}),function(){n.forEach(function(t){e[t]=null}),e=t=null}},derivePropertiesFromElement:function(e,t){t.forEach(function(t){Object.defineProperty(e.prototype,t,{get:function(){return this._element[0][t]},set:function(e){return this._element[0][t]=e}})})},deriveEvents:function(e,t,n,o){o=o||function(e){return e};var i=[];return(n=[].concat(n)).forEach(function(n){var r=function(t){o(t.detail||{}),e.emit(n,t)};i.push(r),t.addEventListener(n,r,!1)}),function(){n.forEach(function(e,n){t.removeEventListener(e,i[n],!1)}),e=t=i=o=null}},isEnabledAutoStatusBarFill:function(){return!!c._config.autoStatusBarFill},shouldFillStatusBar:c.shouldFillStatusBar,autoStatusBarFill:c.autoStatusBarFill,compileAndLink:function(e,t,n){var o=a(t),i=e._scope.$new();angular.element(t).data("_scope",i),i.$evalAsync(function(){n(t),o(i)})},createPageLoader:function(e){var t=this;return new c.PageLoader(function(n,o){var i=n.page,r=n.parent;c._internal.getPageHTMLAsync(i).then(function(n){t.compileAndLink(e,c._util.createElement(n),function(e){return o(r.appendChild(e))})})},function(e){e._destroy(),angular.element(e).data("_scope")&&angular.element(e).data("_scope").$destroy()})},clearComponent:function(e){e.scope&&l.destroyScope(e.scope),e.attrs&&l.destroyAttributes(e.attrs),e.element&&l.destroyElement(e.element),e.elements&&e.elements.forEach(function(e){l.destroyElement(e)})},findElementeObject:function(e,t){return e.inheritedData(t)},getPageHTMLAsync:function(e){var t=i.get(e);if(t){var n=s.defer(),o="string"==typeof t?t:t[1];return n.resolve(this.normalizePageHTML(o)),n.promise}return r({url:e,method:"GET"}).then(function(e){var t=e.data;return this.normalizePageHTML(t)}.bind(this))},normalizePageHTML:function(e){return(e=(""+e).trim()).match(/^<ons-page/)||(e="<ons-page _muted>"+e+"</ons-page>"),e},generateModifierTemplater:function(e,t){var n=e&&"string"==typeof e.modifier?e.modifier.trim().split(/ +/):[];return t=angular.isArray(t)?n.concat(t):n,function(e){return t.map(function(t){return e.replace("*",t)}).join(" ")}},addModifierMethodsForCustomElements:function(e,t){var n={hasModifier:function(e){var n=d.split(t.attr("modifier"));return e="string"==typeof e?e.trim():"",d.split(e).some(function(e){return-1!=n.indexOf(e)})},removeModifier:function(e){e="string"==typeof e?e.trim():"";var n=d.split(t.attr("modifier")).filter(function(t){return t!==e}).join(" ");t.attr("modifier",n)},addModifier:function(e){t.attr("modifier",t.attr("modifier")+" "+e)},setModifier:function(e){t.attr("modifier",e)},toggleModifier:function(e){this.hasModifier(e)?this.removeModifier(e):this.addModifier(e)}};for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])},addModifierMethods:function(e,t,n){var o=function(e){return t.replace("*",e)},i={hasModifier:function(e){return n.hasClass(o(e))},removeModifier:function(e){n.removeClass(o(e))},addModifier:function(e){n.addClass(o(e))},setModifier:function(e){for(var i=n.attr("class").split(/\s+/),r=t.replace("*","."),s=0;s<i.length;s++){var a=i[s];a.match(r)&&n.removeClass(a)}n.addClass(o(e))},toggleModifier:function(e){var t=o(e);n.hasClass(t)?n.removeClass(t):n.addClass(t)}},r=function(e,t){return void 0!==e?function(){return e.apply(null,arguments)||t.apply(null,arguments)}:t};e.hasModifier=r(e.hasModifier,i.hasModifier),e.removeModifier=r(e.removeModifier,i.removeModifier),e.addModifier=r(e.addModifier,i.addModifier),e.setModifier=r(e.setModifier,i.setModifier),e.toggleModifier=r(e.toggleModifier,i.toggleModifier)},removeModifierMethods:function(e){e.hasModifier=e.removeModifier=e.addModifier=e.setModifier=e.toggleModifier=void 0},declareVarAttribute:function(e,t){if("string"==typeof e.var){var n=e.var;this._defineVar(n,t)}},_registerEventHandler:function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);e.on(t,function(o){u.fireComponentEvent(e._element[0],t,o&&o.detail);var i=e._attrs["ons"+n];i&&(e._scope.$eval(i,{$event:o}),e._scope.$evalAsync())})},registerEventHandlers:function(e,t){for(var n=0,o=(t=t.trim().split(/\s+/)).length;n<o;n++){var i=t[n];this._registerEventHandler(e,i)}},isAndroid:function(){return!!t.navigator.userAgent.match(/android/i)},isIOS:function(){return!!t.navigator.userAgent.match(/(ipad|iphone|ipod touch)/i)},isWebView:function(){return c.isWebView()},isIOS7above:function(){var e=t.navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS (\d+)_(\d+)/i),n=!!e&&parseFloat(e[2]+"."+e[3])>=7;return function(){return n}}(),fireComponentEvent:function(e,t,n){n=n||{};var o=document.createEvent("HTMLEvents");for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);o.component=e?angular.element(e).data(e.nodeName.toLowerCase())||null:null,o.initEvent(e.nodeName.toLowerCase()+":"+t,!0,!0),e.dispatchEvent(o)},_defineVar:function(t,n){function o(e,t,n){for(var o,i=0;i<t.length-1;i++)void 0!==e[o=t[i]]&&null!==e[o]||(e[o]={}),e=e[o];if(e[t[t.length-1]]=n,e[t[t.length-1]]!==n)throw new Error('Cannot set var="'+n._attrs.var+'" because it will overwrite a read-only variable.')}var i=t.split(/\./);ons.componentBase&&o(ons.componentBase,i,n);var r=function(e){return angular.element(e).data("_scope")},s=n._element[0];if(s.hasAttribute("ons-scope"))return o(r(s)||n._scope,i,n),void(s=null);for(;s.parentElement;)if((s=s.parentElement).hasAttribute("ons-scope"))return o(r(s),i,n),void(s=null);s=null,o(e,i,n)}},d=c._internal.ModifierUtil;return u}]),function(){var e=angular.module("onsen"),t={decomposeNode:function(e){for(var n=e.remove().children(),o=0;o<n.length;o++)t.decomposeNode(angular.element(n[o]))},destroyAttributes:function(e){e.$$element=null,e.$$observers=null},destroyElement:function(e){e.remove()},destroyScope:function(e){e.$$listeners={},e.$$watchers=null,e=null},onDestroy:function(e,t){var n=e.$on("$destroy",function(){n(),t.apply(null,arguments)})}};e.factory("ComponentCleaner",function(){return t}),function(){var n={};"click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" ").forEach(function(e){var o=function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}("ng-"+e);n[o]=["$parse",function(n){return{compile:function(i,r){var s=n(r[o]);return function(n,o,i){var r=function(e){n.$apply(function(){s(n,{$event:e})})};o.on(e,r),t.onDestroy(n,function(){o.off(e,r),o=null,t.destroyScope(n),n=null,t.destroyAttributes(i),i=null})}}}}]}),e.config(["$provide",function(e){Object.keys(n).forEach(function(t){e.decorator(t+"Directive",["$delegate",function(e){return e.shift(),e}])})}]),Object.keys(n).forEach(function(t){e.directive(t,n[t])})}()}(),window.jQuery&&angular.element===window.jQuery&&console.warn("Onsen UI require jqLite. Load jQuery after loading AngularJS to fix this error. jQuery may break Onsen UI behavior."),Object.keys(ons.notification).filter(function(e){return!/^_/.test(e)}).forEach(function(e){var t=ons.notification[e];ons.notification[e]=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e?n.message=e:n=e;var o=n.compile,i=void 0;return n.compile=function(e){return i=angular.element(o?o(e):e),ons.$compile(i)(i.injector().get("$rootScope"))},n.destroy=function(){i.data("_scope").$destroy(),i=null},t(n)}}),angular.module("onsen").run(["$templateCache",function(e){for(var t=window.document.querySelectorAll('script[type="text/ons-template"]'),n=0;n<t.length;n++){var o=angular.element(t[n]),i=o.attr("id");"string"==typeof i&&e.put(i,o.text())}}])});
{
"name": "onsenui",
"version": "2.8.2",
"version": "2.8.3",
"description": "HTML5 Mobile Framework & UI Components",

@@ -5,0 +5,0 @@ "private": false,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc