webpackJsonp([0],[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}n(1);var r=n(4),o=i(r),a=n(5),u=i(a),s=n(6),l=i(s);n(41),n(49),o["default"].use(u["default"]),new o["default"]({el:"#app",template:"<app></app>",components:{App:l["default"]}})},function(t,e,n){(function(e,n,i){/*! onsenui v2.7.2 - 2017-11-13 */
!function(e,n){t.exports=n()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=161)}([function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(14),a=i(o),u=n(7),s=i(u),l=n(4),c=i(l),f=n(3),d=i(f),h=n(58),p=i(h),v={};v.globals={fabOffset:0},v.prepareQuery=function(t){return t instanceof Function?t:function(e){return v.match(e,t)}},v.match=function(t,e){return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector).call(t,e)},v.findChild=function(t,e){for(var n=v.prepareQuery(e),i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];if(r.nodeType===Node.ELEMENT_NODE&&n(r))return r}return null},v.findParent=function(t,e,n){for(var i=v.prepareQuery(e),r=t.parentNode;;){if(!r||r===document||r instanceof DocumentFragment||n&&n(r))return null;if(i(r))return r;r=r.parentNode}},v.isAttached=function(t){return document.body.contains(t)},v.hasAnyComponentAsParent=function(t){for(;t&&document.documentElement!==t;)if(t=t.parentNode,t&&t.nodeName.toLowerCase().match(/(ons-navigator|ons-tabbar|ons-modal)/))return!0;return!1},v.isPageControl=function(t){return t.nodeName.match(/^ons-(navigator|splitter|tabbar|page)$/i)},v.propagateAction=function(t,e){for(var n=0;n<t.childNodes.length;n++){var i=t.childNodes[n];i[e]instanceof Function?i[e]():v.propagateAction(i,e)}},v.camelize=function(t){return t.toLowerCase().replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})},v.hyphenate=function(t){return t.replace(/([a-zA-Z])([A-Z])/g,"$1-$2").toLowerCase()},v.create=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.split("."),i=document.createElement(n.shift()||"div");return n.length&&(i.className=n.join(" ")),(0,a["default"])(i,e),i},v.createElement=function(t){var e=document.createElement("div");if(t instanceof DocumentFragment?e.appendChild(document.importNode(t,!0)):e.innerHTML=t.trim(),e.children.length>1)throw new Error('"html" must be one wrapper element.');var n=e.children[0];return e.children[0].remove(),n},v.createFragment=function(t){var e=document.createElement("template");return e.innerHTML=t,document.importNode(e.content,!0)},v.extend=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];for(var r=0;r<n.length;r++)if(n[r])for(var o=Object.keys(n[r]),a=0;a<o.length;a++){var u=o[a];t[u]=n[r][u]}return t},v.arrayFrom=function(t){return Array.prototype.slice.apply(t)},v.parseJSONObjectSafely=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var n=JSON.parse(""+t);if("object"===("undefined"==typeof n?"undefined":r(n))&&null!==n)return n}catch(i){return e}return e},v.findFromPath=function(t){t=t.split(".");for(var e,n=window;e=t.shift();)n=n[e];return n},v.getTopPage=function(t){return t&&("ons-page"===t.tagName.toLowerCase()?t:t.topPage)||null},v.findToolbarPage=function(t){var e=v.getTopPage(t);if(e){if(e._canAnimateToolbar())return e;for(var n=0;n<e._contentElement.children.length;n++){var i=v.getTopPage(e._contentElement.children[n]);if(i&&!/ons-tabbar/i.test(e._contentElement.children[n].tagName))return v.findToolbarPage(i)}}return null},v.triggerElementEvent=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});return Object.keys(n).forEach(function(t){i[t]=n[t]}),t.dispatchEvent(i),i},v.hasModifier=function(t,e){return!!t.hasAttribute("modifier")&&RegExp("(^|\\s+)"+e+"($|\\s+)","i").test(t.getAttribute("modifier"))},v.addModifier=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.autoStyle&&(e=c["default"].mapModifier(e,t,n.forceAutoStyle)),!v.hasModifier(t,e)&&(t.setAttribute("modifier",((t.getAttribute("modifier")||"")+" "+e).trim()),!0)},v.removeModifier=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n.autoStyle&&(e=c["default"].mapModifier(e,t,n.forceAutoStyle)),!t.getAttribute("modifier")||!v.hasModifier(t,e))return!1;var i=t.getAttribute("modifier").split(/\s+/).filter(function(t){return t&&t!==e});return i.length?t.setAttribute("modifier",i.join(" ")):t.removeAttribute("modifier"),!0},v.toggleModifier=function(){var t=arguments.length>2?arguments.length<=2?void 0:arguments[2]:{},e="boolean"==typeof t?t:t.force,n="boolean"==typeof e?e:!v.hasModifier.apply(v,arguments);n?v.addModifier.apply(v,arguments):v.removeModifier.apply(v,arguments)},v.restoreClass=function(t,e,n){e.split(/\s+/).forEach(function(e){return""!==e&&!t.classList.contains(e)&&t.classList.add(e)}),t.hasAttribute("modifier")&&d["default"].refresh(t,n)},v.updateParentPosition=function(t){!t._parentUpdated&&t.parentElement&&("static"===window.getComputedStyle(t.parentElement).getPropertyValue("position")&&(t.parentElement.style.position="relative"),t._parentUpdated=!0)},v.toggleAttribute=function(t,e,n){n?t.setAttribute(e,"boolean"==typeof n?"":n):t.removeAttribute(e)},v.bindListeners=function(t,e){e.forEach(function(e){var n=e.replace(/^_[a-z]/,"_bound"+e[1].toUpperCase());t[n]=t[n]||t[e].bind(t)})},v.each=function(t,e){return Object.keys(t).forEach(function(n){return e(n,t[n])})},v.updateRipple=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};void 0===e&&(e=t.hasAttribute("ripple"));var i=v.findChild(t,"ons-ripple");if(e){if(!i){var r=document.createElement("ons-ripple");Object.keys(n).forEach(function(t){return r.setAttribute(t,n[t])}),t.insertBefore(r,t.firstChild)}}else i&&i.remove()},v.animationOptionsParse=p["default"],v.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},v.defer=function(){var t={};return t.promise=new Promise(function(e,n){t.resolve=e,t.reject=n}),t},v.warn=function(){if(!s["default"].config.warningsDisabled){var t;(t=console).warn.apply(t,arguments)}},v.preventScroll=function(t){var e=function(t){return t.cancelable&&t.preventDefault()},n=function i(n){t.off("touchmove",e),t.off("dragend",i)};t.on("touchmove",e),t.on("dragend",n)},v.isValidGesture=function(t){return void 0!==t.gesture&&(t.gesture.distance<=15||t.gesture.deltaTime<=100)},e["default"]=v,t.exports=e["default"]},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(){if("function"!=typeof HTMLElement){var t=function(){};return t.prototype=document.createElement("div"),t}return HTMLElement}Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){function e(){return i(this,e),r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this))}return o(e,t),e}(a());e["default"]=u,t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t.childNodes.length>0&&o(t),l.has(t)}function o(t){l.set(t,!0)}function a(t,e){c.has(t)||c.set(t,[]),c.get(t).push(e)}function u(t){var e=c.get(t,[])||[];c["delete"](t),e.forEach(function(t){return t()})}function s(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if(a(t,n),r(t))return void u(t);var i=new MutationObserver(function(e){o(t),u(t)});i.observe(t,{childList:!0,characterData:!0}),e(function(){o(t),u(t)})}Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=s;var l=new WeakMap,c=new WeakMap;t.exports=n["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(0),u=i(a),s=n(4),l=i(s),c=function(){function t(){r(this,t)}return o(t,null,[{key:"diff",value:function(e,n){function i(e){var n={};return t.split(e).forEach(function(t){return n[t]=t}),n}e=i((""+e).trim()),n=i((""+n).trim());var r=Object.keys(e).reduce(function(t,e){return n[e]||t.push(e),t},[]),o=Object.keys(n).reduce(function(t,n){return e[n]||t.push(n),t},[]);return{added:o,removed:r}}},{key:"applyDiffToClassList",value:function(t,e,n){t.added.map(function(t){return n.replace(/\*/g,t)}).forEach(function(t){return t.split(/\s+/).forEach(function(t){return e.add(t)})}),t.removed.map(function(t){return n.replace(/\*/g,t)}).forEach(function(t){return t.split(/\s+/).forEach(function(t){return e.remove(t)})})}},{key:"applyDiffToElement",value:function(e,n,i){Object.keys(i).forEach(function(r){for(var o=!r||u["default"].match(n,r)?[n]:n.querySelectorAll(r),a=0;a<o.length;a++)t.applyDiffToClassList(e,o[a].classList,i[r])})}},{key:"onModifierChanged",value:function(e,n,i,r){t.applyDiffToElement(t.diff(e,n),i,r),l["default"].restoreModifier(i)}},{key:"refresh",value:function(e,n){t.applyDiffToElement(t.diff("",e.getAttribute("modifier")||""),e,n)}},{key:"initModifier",value:function(e,n){var i=e.getAttribute("modifier");"string"==typeof i&&t.applyDiffToElement({removed:[],added:t.split(i)},e,n)}},{key:"split",value:function(t){return"string"!=typeof t?[]:t.trim().split(/ +/).filter(function(t){return""!==t})}},{key:"addModifier",value:function(e,n){if(e.hasAttribute("modifier")){var i=t.split(e.getAttribute("modifier"));i.indexOf(n)==-1&&(i.push(n),e.setAttribute("modifier",i.join(" ")))}else e.setAttribute("modifier",n)}},{key:"removeModifier",value:function(e,n){if(e.hasAttribute("modifier")){var i=t.split(e.getAttribute("modifier")),r=i.indexOf(n);r!==-1&&(i.splice(r,1),e.setAttribute("modifier",i.join(" ")))}}}]),t}();e["default"]=c,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),o=i(r),a=n(0),u=i(a),s=!0,l={quiet:"material--flat",light:"material--flat",outline:"material--flat",cta:"","large--quiet":"material--flat large","large--cta":"large",noborder:"",tappable:""},c={};c.android=function(t){var e=t.tagName.toLowerCase();if(!u["default"].hasModifier(t,"material")){var n=t.getAttribute("modifier")||"",i=n.trim().split(/\s+/).map(function(t){return l.hasOwnProperty(t)?l[t]:t});i.unshift("material"),t.setAttribute("modifier",i.join(" ").trim())}var r=["ons-alert-dialog-button","ons-toolbar-button","ons-back-button","ons-button","ons-list-item","ons-fab","ons-speed-dial","ons-speed-dial-item","ons-tab"];r.indexOf(e)===-1||t.hasAttribute("ripple")||t.querySelector("ons-ripple")||("ons-list-item"===e?t.hasAttribute("tappable")&&(t.setAttribute("ripple",""),t.removeAttribute("tappable")):t.setAttribute("ripple",""))},c.ios=function(t){u["default"].removeModifier(t,"material")&&(u["default"].removeModifier(t,"material--flat")&&u["default"].addModifier(t,u["default"].removeModifier(t,"large")?"large--quiet":"quiet"),t.getAttribute("modifier")||t.removeAttribute("modifier")),t.hasAttribute("ripple")&&("ons-list-item"===t.tagName.toLowerCase()&&t.setAttribute("tappable",""),t.removeAttribute("ripple"))};var f={android:!0},d=function(t,e){if(s&&!t.hasAttribute("disable-auto-styling")){var n=o["default"].getMobileOS();if(c.hasOwnProperty(n)&&(f.hasOwnProperty(n)||e))return n}return null},h=function(t,e){var n=d(t,e);n&&c[n](t)},p=function(t,e,n){return d(e,n)?t.split(/\s+/).map(function(t){return l.hasOwnProperty(t)?l[t]:t}).join(" "):t},v=function(t){if("android"===d(t)){var e=t.getAttribute("modifier")||"",n=p(e,t);if(/(^|\s+)material($|\s+)/i.test(e)||(n="material "+n),n!==e)return t.setAttribute("modifier",n.trim()),!0}return!1};e["default"]={isEnabled:function(){return s},enable:function(){return s=!0},disable:function(){return s=!1},prepare:h,mapModifier:p,getPlatform:d,restoreModifier:v},t.exports=e["default"]},function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=1.4,o={};o.capitalize=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},o.buildTransitionValue=function(t){t.property=t.property||"all",t.duration=t.duration||.4,t.timing=t.timing||"linear";var e=t.property.split(/ +/);return e.map(function(e){return e+" "+t.duration+"s "+t.timing}).join(", ")},o.onceOnTransitionEnd=function(t,e){if(!t)return function(){};var n=function(n){t==n.target&&(n.stopPropagation(),i(),e())},i=function(){o._transitionEndEvents.forEach(function(e){t.removeEventListener(e,n,!1)})};return o._transitionEndEvents.forEach(function(e){t.addEventListener(e,n,!1)}),i},o._transitionEndEvents=function(){return"ontransitionend"in window?["transitionend"]:"onwebkittransitionend"in window?["webkitTransitionEnd"]:"webkit"===o.vendorPrefix||"o"===o.vendorPrefix||"moz"===o.vendorPrefix||"ms"===o.vendorPrefix?[o.vendorPrefix+"TransitionEnd","transitionend"]:[]}(),o._cssPropertyDict=function(){for(var t=window.getComputedStyle(document.documentElement,""),e={},n="A".charCodeAt(0),i="z".charCodeAt(0),r=function(t){return t.substr(1).toUpperCase()},o=0;o<t.length;o++){var a=t[o].replace(/^[\-]+/,"").replace(/[\-][a-z]/g,r).replace(/^moz/,"Moz");n<=a.charCodeAt(0)&&i>=a.charCodeAt(0)&&"cssText"!==a&&"parentText"!==a&&(e[a]=!0)}return e}(),o.hasCssProperty=function(t){return t in o._cssPropertyDict},o.vendorPrefix=function(){var t=window.getComputedStyle(document.documentElement,""),e=(Array.prototype.slice.call(t).join("").match(/-(moz|webkit|ms)-/)||""===t.OLink&&["","o"])[1];return e}(),o.forceLayoutAtOnce=function(t,e){this.batchImmediate(function(){t.forEach(function(t){t.offsetHeight}),e()})},o.batchImmediate=function(){var t=[];return function(n){0===t.length&&e(function(){var e=t.slice(0);t=[],e.forEach(function(t){t()})}),t.push(n)}}(),o.batchAnimationFrame=function(){var t=[],e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,1e3/60)};return function(n){0===t.length&&e(function(){var e=t.slice(0);t=[],e.forEach(function(t){t()})}),t.push(n)}}(),o.transitionPropertyName=function(){if(o.hasCssProperty("transitionDuration"))return"transition";if(o.hasCssProperty(o.vendorPrefix+"TransitionDuration"))return o.vendorPrefix+"Transition";throw new Error("Invalid state")}();var a=function u(t){if(!(this instanceof u))return new u(t);if(t instanceof HTMLElement)this.elements=[t];else{if("[object Array]"!==Object.prototype.toString.call(t))throw new Error("First argument must be an array or an instance of HTMLElement.");this.elements=t}this.transitionQueue=[],this.lastStyleAttributeDict=[]};a.prototype={transitionQueue:void 0,elements:void 0,play:function(t){return"function"==typeof t&&this.transitionQueue.push(function(e){t(),e()}),this.startAnimation(),this},queue:function s(t,e){var s=this.transitionQueue;if(t&&e&&(e.css=t,t=new a.Transition(e)),t instanceof Function||t instanceof a.Transition||(t=t.css?new a.Transition(t):new a.Transition({css:t})),t instanceof Function)s.push(t);else{if(!(t instanceof a.Transition))throw new Error("Invalid arguments");s.push(t.build())}return this},wait:function(t){return t>0&&this.transitionQueue.push(function(e){setTimeout(e,1e3*t)}),this},saveStyle:function(){return this.transitionQueue.push(function(t){this.elements.forEach(function(t,e){for(var n=this.lastStyleAttributeDict[e]={},i=0;i<t.style.length;i++)n[t.style[i]]=t.style[t.style[i]]}.bind(this)),t()}.bind(this)),this},restoreStyle:function(t){function e(){n.elements.forEach(function(t,e){t.style[i]="none";var r=n.lastStyleAttributeDict[e];if(!r)throw new Error("restoreStyle(): The style is not saved. Invoke saveStyle() before.");n.lastStyleAttributeDict[e]=void 0;for(var o=0,a="";o<t.style.length;o++)a=t.style[o],"undefined"==typeof r[t.style[o]]&&(r[t.style[o]]="");Object.keys(r).forEach(function(e){t.style[e]=r[e]})})}t=t||{};var n=this;if(t.transition&&!t.duration)throw new Error('"options.duration" is required when "options.transition" is enabled.');var i=o.transitionPropertyName;if(t.transition||t.duration&&t.duration>0){var a=t.transition||"all "+t.duration+"s "+(t.timing||"linear");this.transitionQueue.push(function(e){var u,s=this.elements,l=function(){s.forEach(function(t){t.style[i]=""})},c=o.onceOnTransitionEnd(s[0],function(){clearTimeout(u),l(),e()});u=setTimeout(function(){c(),l(),e()},1e3*t.duration*r),s.forEach(function(t,e){var r=n.lastStyleAttributeDict[e];if(!r)throw new Error("restoreStyle(): The style is not saved. Invoke saveStyle() before.");n.lastStyleAttributeDict[e]=void 0;for(var o,u=0,s=t.style.length;u<s;u++)o=t.style[u],void 0===r[o]&&(r[o]="");t.style[i]=a,Object.keys(r).forEach(function(e){e!==i&&(t.style[e]=r[e])}),t.style[i]=a})})}else this.transitionQueue.push(function(t){e(),t()});return this},startAnimation:function(){return this._dequeueTransition(),this},_dequeueTransition:function(){var t=this.transitionQueue.shift();if(this._currentTransition)throw new Error("Current transition exists.");this._currentTransition=t;var e=this,n=!1,i=function(){if(n)throw new Error("Invalid state: This callback is called twice.");n=!0,e._currentTransition=void 0,e._dequeueTransition()};t&&t.call(this,i)}},a.runAll=function(){for(var t=0;t<arguments.length;t++)arguments[t].play()},a.Transition=function(t){this.options=t||{},this.options.duration=this.options.duration||0,this.options.timing=this.options.timing||"linear",this.options.css=this.options.css||{},this.options.property=this.options.property||"all"},a.Transition.prototype={build:function(){function t(t){var e={};return Object.keys(t).forEach(function(n){var i=t[n];if(o.hasCssProperty(n))return void(e[n]=i);var r=o.vendorPrefix+o.capitalize(n);o.hasCssProperty(r)?e[r]=i:(e[r]=i,e[n]=i)}),e}if(0===Object.keys(this.options.css).length)throw new Error("options.css is required.");var e=t(this.options.css);if(this.options.duration>0){var n=o.buildTransitionValue(this.options),i=this;return function(t){var a,u=this.elements,s=1e3*i.options.duration*r,l=o.onceOnTransitionEnd(u[0],function(){clearTimeout(a),t()});a=setTimeout(function(){l(),t()},s),u.forEach(function(t){t.style[o.transitionPropertyName]=n,Object.keys(e).forEach(function(n){t.style[n]=e[n]})})}}if(this.options.duration<=0)return function(t){var n=this.elements;n.forEach(function(t){t.style[o.transitionPropertyName]="",Object.keys(e).forEach(function(n){t.style[n]=e[n]})}),n.length>0?o.forceLayoutAtOnce(n,function(){o.batchAnimationFrame(t)}):o.batchAnimationFrame(t)}}},n["default"]=a,t.exports=n["default"]},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=window.HTMLElement,u=function(){function t(){i(this,t),this._selectedPlatform=null,this._ignorePlatformSelect=!1}return o(t,[{key:"select",value:function(t){"string"==typeof t&&(this._selectedPlatform=t.trim().toLowerCase())}},{key:"_getSelectedPlatform",value:function(){return this._ignorePlatformSelect?null:this._selectedPlatform}},{key:"_runOnActualPlatform",value:function(t){this._ignorePlatformSelect=!0;var e=t();return this._ignorePlatformSelect=!1,e}},{key:"isWebView",value:function(){if("loading"===document.readyState||"uninitialized"==document.readyState)throw new Error("isWebView() method is available after dom contents loaded.");return!!(window.cordova||window.phonegap||window.PhoneGap)}},{key:"isIPhone",value:function(){return/iPhone/i.test(navigator.userAgent)}},{key:"isIPhoneX",value:function(){return this.isIPhone()&&375===window.screen.width&&812===window.screen.height}},{key:"isIPad",value:function(){return/iPad/i.test(navigator.userAgent)}},{key:"isIPod",value:function(){return/iPod/i.test(navigator.userAgent)}},{key:"isIOS",value:function(){return this._getSelectedPlatform()?"ios"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":r(device))||/browser/i.test(device.platform)?/iPhone|iPad|iPod/i.test(navigator.userAgent):/iOS/i.test(device.platform)}},{key:"isIOS7above",value:function(){if("object"===("undefined"==typeof device?"undefined":r(device))&&!/browser/i.test(device.platform))return/iOS/i.test(device.platform)&&parseInt(device.version.split(".")[0])>=7;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){var t=(navigator.userAgent.match(/\b[0-9]+_[0-9]+(?:_[0-9]+)?\b/)||[""])[0].replace(/_/g,".");return parseInt(t.split(".")[0])>=7}return!1}},{key:"isIOSSafari",value:function(){var t=window.navigator,e=t.userAgent;return!(!this.isIOS()||e.indexOf("Safari")===-1||e.indexOf("Version")===-1||t.standalone)}},{key:"isWKWebView",value:function(){var t=/constructor/i.test(a);return!(!(this.isIOS()&&window.webkit&&window.webkit.messageHandlers&&window.indexedDB)||t)}},{key:"isUIWebView",value:function(){return!(!this.isIOS()||this.isIOSSafari()||this.isWKWebView())}},{key:"isAndroidPhone",value:function(){return/Android/i.test(navigator.userAgent)&&/Mobile/i.test(navigator.userAgent)}},{key:"isAndroidTablet",value:function(){return/Android/i.test(navigator.userAgent)&&!/Mobile/i.test(navigator.userAgent)}},{key:"isAndroid",value:function(){return this._getSelectedPlatform()?"android"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":r(device))||/browser/i.test(device.platform)?/Android/i.test(navigator.userAgent):/Android/i.test(device.platform)}},{key:"isWP",value:function(){return this._getSelectedPlatform()?"wp"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":r(device))||/browser/i.test(device.platform)?/Windows Phone|IEMobile|WPDesktop/i.test(navigator.userAgent):/Win32NT|WinCE/i.test(device.platform)}},{key:"isBlackBerry",value:function(){return this._getSelectedPlatform()?"blackberry"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":r(device))||/browser/i.test(device.platform)?/BlackBerry|RIM Tablet OS|BB10/i.test(navigator.userAgent):/BlackBerry/i.test(device.platform)}},{key:"isOpera",value:function(){return this._getSelectedPlatform()?"opera"===this._getSelectedPlatform():!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0}},{key:"isFirefox",value:function(){return this._getSelectedPlatform()?"firefox"===this._getSelectedPlatform():"undefined"!=typeof InstallTrigger}},{key:"isSafari",value:function(){return this._getSelectedPlatform()?"safari"===this._getSelectedPlatform():Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||function(t){return"[object SafariRemoteNotification]"===t.toString()}(!window.safari||safari.pushNotification)}},{key:"isChrome",value:function(){return this._getSelectedPlatform()?"chrome"===this._getSelectedPlatform():!(!window.chrome||window.opera||navigator.userAgent.indexOf(" OPR/")>=0||navigator.userAgent.indexOf(" Edge/")>=0)}},{key:"isIE",value:function(){return this._getSelectedPlatform()?"ie"===this._getSelectedPlatform():!!document.documentMode}},{key:"isEdge",value:function(){return this._getSelectedPlatform()?"edge"===this._getSelectedPlatform():navigator.userAgent.indexOf(" Edge/")>=0}},{key:"getMobileOS",value:function(){return this.isAndroid()?"android":this.isIOS()?"ios":this.isWP()?"wp":"other"}},{key:"getIOSDevice",value:function(){return this.isIPhone()?"iphone":this.isIPad()?"ipad":this.isIPod()?"ipod":"na"}}]),t}();e["default"]=new u,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(154),o=i(r),a=n(8),u=i(a),s=n(3),l=i(s),c=n(61),f=i(c),d=n(59);o["default"].AnimatorFactory=u["default"],o["default"].ModifierUtil=l["default"],o["default"].ToastQueue=f["default"],o["default"].LazyRepeatProvider=d.LazyRepeatProvider,o["default"].LazyRepeatDelegate=d.LazyRepeatDelegate,e["default"]=o["default"],t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),u=n(0),s=i(u),l=n(7),c=i(l),f=function(){function t(e){if(r(this,t),this._animators=e.animators,this._baseClass=e.baseClass,this._baseClassName=e.baseClassName||e.baseClass.name,this._animation=e.defaultAnimation||"default",this._animationOptions=e.defaultAnimationOptions||{},!this._animators[this._animation])throw new Error("No such animation: "+this._animation)}return a(t,[{key:"setAnimationOptions",value:function(t){this._animationOptions=t}},{key:"newAnimator",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],n=null;if(t.animation instanceof this._baseClass)return t.animation;var i=null;if("string"==typeof t.animation&&(i=this._animators[t.animation]),!i&&e)n=e;else{i=i||this._animators[this._animation];var r=s["default"].extend({},this._animationOptions,t.animationOptions||{},c["default"].config.animationsDisabled?{duration:0,delay:0}:{});n=new i(r),"function"==typeof n&&(n=new n(r))}if(!(n instanceof this._baseClass))throw new Error('"animator" is not an instance of '+this._baseClassName+".");return n}}],[{key:"parseAnimationOptionsString",value:function(t){try{if("string"==typeof t){var e=s["default"].animationOptionsParse(t);if("object"===("undefined"==typeof e?"undefined":o(e))&&null!==e)return e;console.error('"animation-options" attribute must be a JSON object string: '+t)}return{}}catch(n){return console.error('"animation-options" attribute must be a JSON object string: '+t),{}}}}]),t}();e["default"]=f,t.exports=e["default"]},function(t,e,n){"use strict";var i=n(77)("wks"),r=n(39),o=n(12).Symbol,a="function"==typeof o,u=t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))};u.store=i},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(0),u=i(a),s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t),this.timing=e.timing||"linear",this.duration=e.duration||0,this.delay=e.delay||0}return o(t,null,[{key:"extend",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,n=function(){e.apply(this,arguments),u["default"].extend(this,t)};return n.prototype=this.prototype,n}}]),t}();e["default"]=s,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),u=n(16),s=r(u),l=n(45),c=i(l),f=function(){function t(){o(this,t),this._localNameToDefinition=new Map,this._constructorToDefinition=new Map,this._patches=[],this._hasPatches=!1}return a(t,[{key:"setDefinition",value:function(t,e){this._localNameToDefinition.set(t,e),this._constructorToDefinition.set(e.constructor,e)}},{key:"localNameToDefinition",value:function(t){return this._localNameToDefinition.get(t)}},{key:"constructorToDefinition",value:function(t){return this._constructorToDefinition.get(t)}},{key:"addPatch",value:function(t){this._hasPatches=!0,this._patches.push(t)}},{key:"patchTree",value:function(t){var e=this;this._hasPatches&&s.walkDeepDescendantElements(t,function(t){return e.patch(t)})}},{key:"patch",value:function(t){if(this._hasPatches&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this._patches.length;e++)this._patches[e](t)}}},{key:"connectTree",value:function(t){var e=[];s.walkDeepDescendantElements(t,function(t){return e.push(t)});for(var n=0;n<e.length;n++){var i=e[n];i.__CE_state===c["default"].custom?s.isConnected(i)&&this.connectedCallback(i):this.upgradeElement(i)}}},{key:"disconnectTree",value:function(t){var e=[];s.walkDeepDescendantElements(t,function(t){return e.push(t)});for(var n=0;n<e.length;n++){var i=e[n];i.__CE_state===c["default"].custom&&this.disconnectedCallback(i)}}},{key:"patchAndUpgradeTree",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,i=[],r=function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var r=t["import"];r instanceof Node&&"complete"===r.readyState?(r.__CE_isImportDocument=!0,r.__CE_hasRegistry=!0):t.addEventListener("load",function(){var i=t["import"];if(!i.__CE_documentLoadHandled){i.__CE_documentLoadHandled=!0,i.__CE_isImportDocument=!0,i.__CE_hasRegistry=!0;new Set(n);n["delete"](i),e.patchAndUpgradeTree(i,n)}})}else i.push(t)};if(s.walkDeepDescendantElements(t,r,n),this._hasPatches)for(var o=0;o<i.length;o++)this.patch(i[o]);for(var a=0;a<i.length;a++)this.upgradeElement(i[a])}},{key:"upgradeElement",value:function(t){var e=t.__CE_state;if(void 0===e){var n=this.localNameToDefinition(t.localName);if(n){n.constructionStack.push(t);var i=n.constructor;try{try{var r=new i;if(r!==t)throw new Error("The custom element constructor did not produce the element being upgraded.")}finally{n.constructionStack.pop()}}catch(o){throw t.__CE_state=c["default"].failed,o}if(t.__CE_state=c["default"].custom,t.__CE_definition=n,n.attributeChangedCallback)for(var a=n.observedAttributes,u=0;u<a.length;u++){var l=a[u],f=t.getAttribute(l);null!==f&&this.attributeChangedCallback(t,l,null,f,null)}s.isConnected(t)&&this.connectedCallback(t);
}}}},{key:"connectedCallback",value:function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t),t.__CE_isConnectedCallbackCalled=!0}},{key:"disconnectedCallback",value:function(t){t.__CE_isConnectedCallbackCalled||this.connectedCallback(t);var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t),t.__CE_isConnectedCallbackCalled=void 0}},{key:"attributeChangedCallback",value:function(t,e,n,i,r){var o=t.__CE_definition;o.attributeChangedCallback&&o.observedAttributes.indexOf(e)>-1&&o.attributeChangedCallback.call(t,e,n,i,r)}}]),t}();e["default"]=f,t.exports=e["default"]},function(t,e,n){"use strict";var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(10),f=i(c),d=function(t){function e(t){return r(this,e),t=l["default"].extend({timing:"linear",duration:"0.4",delay:"0"},t||{}),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return a(e,t),u(e,[{key:"push",value:function(t,e,n){n()}},{key:"pop",value:function(t,e,n){n()}},{key:"block",value:function(t){var e=l["default"].createElement('\n      <div style="position: absolute; background-color: transparent; width: 100%; height: 100%; z-index: 100000"></div>\n    ');return t.parentNode.appendChild(e),function(){return e.remove()}}}]),e}(f["default"]);e["default"]=d,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=i(r),a=function(){var t=window.getComputedStyle(document.documentElement,""),e=(Array.prototype.slice.call(t).join("").match(/-(moz|webkit|ms)-/)||""===t.OLink&&["","o"])[1];return function(t){return"-"+e+"-"+o["default"].hyphenate(t)}}(),u=function(t,e){return Object.keys(e).forEach(function(n){n in t.style?t.style[n]=e[n]:a(n)in t.style?t.style[a(n)]=e[n]:o["default"].warn("No such style property: "+n)}),t};u.clear=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split(/\s+/).reduce(function(t,e){return t.concat([o["default"].hyphenate(e),a(e)])},[]),i=[],r=function(e){var r=t.style[e];(0===n.length||n.some(function(t){return 0===r.indexOf(t)}))&&i.push(r)},u=t.style.length-1;u>=0;u--)r(u);i.forEach(function(e){return t.style[e]=""}),""===t.getAttribute("style")&&t.removeAttribute("style")},e["default"]=u,t.exports=e["default"]},function(t,e,n){"use strict";function i(){s.READY||(r.determineEventTypes(),o.each(s.gestures,function(t){a.register(t)}),r.onTouch(s.DOCUMENT,y,a.detect),r.onTouch(s.DOCUMENT,_,a.detect),s.READY=!0)}Object.defineProperty(e,"__esModule",{value:!0});var r,o,a,u,s=function k(t,e){return new k.Instance(t,e||{})};s.defaults={behavior:{touchAction:"pan-y",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},s.DOCUMENT=document,s.HAS_POINTEREVENTS=navigator.pointerEnabled||navigator.msPointerEnabled,s.HAS_TOUCHEVENTS="ontouchstart"in window,s.IS_MOBILE=/mobile|tablet|ip(ad|hone|od)|android|silk/i.test(navigator.userAgent),s.NO_MOUSEEVENTS=s.HAS_TOUCHEVENTS&&s.IS_MOBILE||s.HAS_POINTEREVENTS,s.CALCULATE_INTERVAL=25;var l={},c=s.DIRECTION_DOWN="down",f=s.DIRECTION_LEFT="left",d=s.DIRECTION_UP="up",h=s.DIRECTION_RIGHT="right",p=s.POINTER_MOUSE="mouse",v=s.POINTER_TOUCH="touch",m=s.POINTER_PEN="pen",b=s.EVENT_START="start",y=s.EVENT_MOVE="move",_=s.EVENT_END="end",g=s.EVENT_RELEASE="release",w=s.EVENT_TOUCH="touch";s.READY=!1,s.plugins=s.plugins||{},s.gestures=s.gestures||{},o=s.utils={extend:function(t,e,n){for(var i in e)!e.hasOwnProperty(i)||void 0!==t[i]&&n||(t[i]=e[i]);return t},on:function(t,e,n){t.addEventListener(e,n,!1)},off:function(t,e,n){t.removeEventListener(e,n,!1)},each:function(t,e,n){var i,r;if("forEach"in t)t.forEach(e,n);else if(void 0!==t.length){for(i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t)===!1)return}else for(i in t)if(t.hasOwnProperty(i)&&e.call(n,t[i],i,t)===!1)return},inStr:function(t,e){return t.indexOf(e)>-1},inArray:function(t,e,n){if(n){for(var i=0,r=t.length;i<r;i++)if(Object.keys(e).every(function(n){return t[i][n]===e[n]}))return i;return-1}if(t.indexOf)return t.indexOf(e);for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1},toArray:function(t){return Array.prototype.slice.call(t,0)},hasParent:function(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1},getCenter:function(t){var e=[],n=[],i=[],r=[],a=Math.min,u=Math.max;return 1===t.length?{pageX:t[0].pageX,pageY:t[0].pageY,clientX:t[0].clientX,clientY:t[0].clientY}:(o.each(t,function(t){e.push(t.pageX),n.push(t.pageY),i.push(t.clientX),r.push(t.clientY)}),{pageX:(a.apply(Math,e)+u.apply(Math,e))/2,pageY:(a.apply(Math,n)+u.apply(Math,n))/2,clientX:(a.apply(Math,i)+u.apply(Math,i))/2,clientY:(a.apply(Math,r)+u.apply(Math,r))/2})},getVelocity:function(t,e,n){return{x:Math.abs(e/t)||0,y:Math.abs(n/t)||0}},getAngle:function(t,e){var n=e.clientX-t.clientX,i=e.clientY-t.clientY;return 180*Math.atan2(i,n)/Math.PI},getDirection:function(t,e){var n=Math.abs(t.clientX-e.clientX),i=Math.abs(t.clientY-e.clientY);return n>=i?t.clientX-e.clientX>0?f:h:t.clientY-e.clientY>0?d:c},getDistance:function(t,e){var n=e.clientX-t.clientX,i=e.clientY-t.clientY;return Math.sqrt(n*n+i*i)},getScale:function(t,e){return t.length>=2&&e.length>=2?this.getDistance(e[0],e[1])/this.getDistance(t[0],t[1]):1},getRotation:function(t,e){return t.length>=2&&e.length>=2?this.getAngle(e[1],e[0])-this.getAngle(t[1],t[0]):0},isVertical:function(t){return t==d||t==c},setPrefixedCss:function(t,e,n,i){var r=["","Webkit","Moz","O","ms"];e=o.toCamelCase(e);for(var a=0;a<r.length;a++){var u=e;if(r[a]&&(u=r[a]+u.slice(0,1).toUpperCase()+u.slice(1)),u in t.style){t.style[u]=(null===i||i)&&n||"";break}}},toggleBehavior:function(t,e,n){if(e&&t&&t.style){o.each(e,function(e,i){o.setPrefixedCss(t,i,e,n)});var i=n&&function(){return!1};"none"==e.userSelect&&(t.onselectstart=i),"none"==e.userDrag&&(t.ondragstart=i)}},toCamelCase:function(t){return t.replace(/[_-]([a-z])/g,function(t){return t[1].toUpperCase()})}},r=s.event={preventMouseEvents:!1,started:!1,shouldDetect:!1,on:function(t,e,n,i){var r=e.split(" ");o.each(r,function(e){o.on(t,e,n),i&&i(e)})},off:function(t,e,n,i){var r=e.split(" ");o.each(r,function(e){o.off(t,e,n),i&&i(e)})},onTouch:function(t,e,n){var i=this,r=function(r){var a,l=r.type.toLowerCase(),c=s.HAS_POINTEREVENTS,f=o.inStr(l,"mouse");f&&i.preventMouseEvents||(f&&e==b&&0===r.button?(i.preventMouseEvents=!1,i.shouldDetect=!0):c&&e==b?i.shouldDetect=1===r.buttons||u.matchType(v,r):f||e!=b||(i.preventMouseEvents=!0,i.shouldDetect=!0),c&&e!=_&&u.updatePointer(e,r),i.shouldDetect&&(a=i.doDetect.call(i,r,e,t,n)),a==_&&(i.preventMouseEvents=!1,i.shouldDetect=!1,u.reset()),c&&e==_&&u.updatePointer(e,r))};return this.on(t,l[e],r),r},doDetect:function(t,e,n,i){var r=this.getTouchList(t,e),o=r.length,u=e,s=r.trigger,l=o;e==b?s=w:e==_&&(s=g,l=r.length-(t.changedTouches?t.changedTouches.length:1)),l>0&&this.started&&(u=y),this.started=!0;var c=this.collectEventData(n,u,r,t);return e!=_&&i.call(a,c),s&&(c.changedLength=l,c.eventType=s,i.call(a,c),c.eventType=u,delete c.changedLength),u==_&&(i.call(a,c),this.started=!1),u},determineEventTypes:function(){var t;return t=s.HAS_POINTEREVENTS?window.PointerEvent?["pointerdown","pointermove","pointerup pointercancel lostpointercapture"]:["MSPointerDown","MSPointerMove","MSPointerUp MSPointerCancel MSLostPointerCapture"]:s.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],l[b]=t[0],l[y]=t[1],l[_]=t[2],l},getTouchList:function(t,e){if(s.HAS_POINTEREVENTS)return u.getTouchList();if(t.touches){if(e==y)return t.touches;var n=[],i=[].concat(o.toArray(t.touches),o.toArray(t.changedTouches)),r=[];return o.each(i,function(t){o.inArray(n,t.identifier)===-1&&r.push(t),n.push(t.identifier)}),r}return t.identifier=1,[t]},collectEventData:function(t,e,n,i){var r=v;return o.inStr(i.type,"mouse")||u.matchType(p,i)?r=p:u.matchType(m,i)&&(r=m),{center:o.getCenter(n),timeStamp:Date.now(),target:i.target,touches:n,eventType:e,pointerType:r,srcEvent:i,preventDefault:function(){var t=this.srcEvent;t.preventManipulation&&t.preventManipulation(),t.preventDefault&&t.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return a.stopDetect()}}}},u=s.PointerEvent={pointers:{},getTouchList:function(){var t=[];return o.each(this.pointers,function(e){t.push(e)}),t},updatePointer:function(t,e){t==_||t!=_&&1!==e.buttons?delete this.pointers[e.pointerId]:(e.identifier=e.pointerId,this.pointers[e.pointerId]=e)},matchType:function(t,e){if(!e.pointerType)return!1;var n=e.pointerType,i={};return i[p]=n===(e.MSPOINTER_TYPE_MOUSE||p),i[v]=n===(e.MSPOINTER_TYPE_TOUCH||v),i[m]=n===(e.MSPOINTER_TYPE_PEN||m),i[t]},reset:function(){this.pointers={}}},a=s.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(t,e){this.current||(this.stopped=!1,this.current={inst:t,startEvent:o.extend({},e),lastEvent:!1,lastCalcEvent:!1,futureCalcEvent:!1,lastCalcData:{},name:""},this.detect(e))},detect:function(t){if(this.current&&!this.stopped){t=this.extendEventData(t);var e=this.current.inst,n=e.options;return o.each(this.gestures,function(i){!this.stopped&&e.enabled&&n[i.name]&&i.handler.call(i,t,e)},this),this.current&&(this.current.lastEvent=t),t.eventType==_&&this.stopDetect(),t}},stopDetect:function(){this.previous=o.extend({},this.current),this.current=null,this.stopped=!0},getCalculatedData:function(t,e,n,i,r){var a=this.current,u=!1,l=a.lastCalcEvent,c=a.lastCalcData;l&&t.timeStamp-l.timeStamp>s.CALCULATE_INTERVAL&&(e=l.center,n=t.timeStamp-l.timeStamp,i=t.center.clientX-l.center.clientX,r=t.center.clientY-l.center.clientY,u=!0),t.eventType!=w&&t.eventType!=g||(a.futureCalcEvent=t),a.lastCalcEvent&&!u||(c.velocity=o.getVelocity(n,i,r),c.angle=o.getAngle(e,t.center),c.direction=o.getDirection(e,t.center),a.lastCalcEvent=a.futureCalcEvent||t,a.futureCalcEvent=t),t.velocityX=c.velocity.x,t.velocityY=c.velocity.y,t.interimAngle=c.angle,t.interimDirection=c.direction},extendEventData:function(t){var e=this.current,n=e.startEvent,i=e.lastEvent||n;t.eventType!=w&&t.eventType!=g||(n.touches=[],o.each(t.touches,function(t){n.touches.push({clientX:t.clientX,clientY:t.clientY})}));var r=t.timeStamp-n.timeStamp,a=t.center.clientX-n.center.clientX,u=t.center.clientY-n.center.clientY;return this.getCalculatedData(t,i.center,r,a,u),o.extend(t,{startEvent:n,deltaTime:r,deltaX:a,deltaY:u,distance:o.getDistance(n.center,t.center),angle:o.getAngle(n.center,t.center),direction:o.getDirection(n.center,t.center),scale:o.getScale(n.touches,t.touches),rotation:o.getRotation(n.touches,t.touches)}),t},register:function(t){var e=t.defaults||{};return void 0===e[t.name]&&(e[t.name]=!0),o.extend(s.defaults,e,!0),t.index=t.index||1e3,this.gestures.push(t),this.gestures.sort(function(t,e){return t.index<e.index?-1:t.index>e.index?1:0}),this.gestures}},s.Instance=function(t,e){var n=this;i(),this.element=t,this.enabled=!0,o.each(e,function(t,n){delete e[n],e[o.toCamelCase(n)]=t}),this.options=o.extend(o.extend({},s.defaults),e||{}),this.options.behavior&&o.toggleBehavior(this.element,this.options.behavior,!0),this.eventStartHandler=r.onTouch(t,b,function(t){n.enabled&&t.eventType==b?a.startDetect(n,t):t.eventType==w&&a.detect(t)}),this.eventHandlers=[]},s.Instance.prototype={on:function(t,e){var n=this;return r.on(n.element,t,e,function(t){n.eventHandlers.push({gesture:t,handler:e})}),n},off:function(t,e){var n=this;return r.off(n.element,t,e,function(t){var i=o.inArray(n.eventHandlers,{gesture:t,handler:e},!0);i>=0&&n.eventHandlers.splice(i,1)}),n},trigger:function(t,e){e||(e={});var n=s.DOCUMENT.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e;var i=this.element;return o.hasParent(e.target,i)&&(i=e.target),i.dispatchEvent(n),this},enable:function(t){return this.enabled=t,this},dispose:function(){var t,e;for(o.toggleBehavior(this.element,this.options.behavior,!1),t=-1;e=this.eventHandlers[++t];)o.off(this.element,e.gesture,e.handler);return this.eventHandlers=[],r.off(this.element,l[b],this.eventStartHandler),null}},function(t){function e(e,i){var r=a.current;if(!(i.options.dragMaxTouches>0&&e.touches.length>i.options.dragMaxTouches))switch(e.eventType){case b:n=!1;break;case y:if(e.distance<i.options.dragMinDistance&&r.name!=t)return;var u=r.startEvent.center;if(r.name!=t&&(r.name=t,i.options.dragDistanceCorrection&&e.distance>0)){var s=Math.abs(i.options.dragMinDistance/e.distance);u.pageX+=e.deltaX*s,u.pageY+=e.deltaY*s,u.clientX+=e.deltaX*s,u.clientY+=e.deltaY*s,e=a.extendEventData(e)}(r.lastEvent.dragLockToAxis||i.options.dragLockToAxis&&i.options.dragLockMinDistance<=e.distance)&&(e.dragLockToAxis=!0);var l=r.lastEvent.direction;e.dragLockToAxis&&l!==e.direction&&(o.isVertical(l)?e.direction=e.deltaY<0?d:c:e.direction=e.deltaX<0?f:h),n||(i.trigger(t+"start",e),n=!0),i.trigger(t,e),i.trigger(t+e.direction,e);var p=o.isVertical(e.direction);(i.options.dragBlockVertical&&p||i.options.dragBlockHorizontal&&!p)&&e.preventDefault();break;case g:n&&e.changedLength<=i.options.dragMaxTouches&&(i.trigger(t+"end",e),n=!1);break;case _:n=!1}}var n=!1;s.gestures.Drag={name:t,index:50,handler:e,defaults:{dragMinDistance:10,dragDistanceCorrection:!0,dragMaxTouches:1,dragBlockHorizontal:!1,dragBlockVertical:!1,dragLockToAxis:!1,dragLockMinDistance:25}}}("drag"),s.gestures.Gesture={name:"gesture",index:1337,handler:function(t,e){e.trigger(this.name,t)}},function(t){function e(e,i){var r=i.options,o=a.current;switch(e.eventType){case b:clearTimeout(n),o.name=t,n=setTimeout(function(){o&&o.name==t&&i.trigger(t,e)},r.holdTimeout);break;case y:e.distance>r.holdThreshold&&clearTimeout(n);break;case g:clearTimeout(n)}}var n;s.gestures.Hold={name:t,index:10,defaults:{holdTimeout:500,holdThreshold:2},handler:e}}("hold"),s.gestures.Release={name:"release",index:1/0,handler:function(t,e){t.eventType==g&&e.trigger(this.name,t)}},s.gestures.Swipe={name:"swipe",index:40,defaults:{swipeMinTouches:1,swipeMaxTouches:1,swipeVelocityX:.6,swipeVelocityY:.6},handler:function(t,e){if(t.eventType==g){var n=t.touches.length,i=e.options;if(n<i.swipeMinTouches||n>i.swipeMaxTouches)return;(t.velocityX>i.swipeVelocityX||t.velocityY>i.swipeVelocityY)&&(e.trigger(this.name,t),e.trigger(this.name+t.direction,t))}}},function(t){function e(e,i){var r,u,s=i.options,l=a.current,c=a.previous;switch(e.eventType){case b:n=!1;break;case y:n=n||e.distance>s.tapMaxDistance;break;case _:!o.inStr(e.srcEvent.type,"cancel")&&e.deltaTime<s.tapMaxTime&&!n&&(r=c&&c.lastEvent&&e.timeStamp-c.lastEvent.timeStamp,u=!1,c&&c.name==t&&r&&r<s.doubleTapInterval&&e.distance<s.doubleTapDistance&&(i.trigger("doubletap",e),u=!0),u&&!s.tapAlways||(l.name=t,i.trigger(l.name,e)))}}var n=!1;s.gestures.Tap={name:t,index:100,handler:e,defaults:{tapMaxTime:250,tapMaxDistance:10,tapAlways:!0,doubleTapDistance:20,doubleTapInterval:300}}}("tap"),s.gestures.Touch={name:"touch",index:-(1/0),defaults:{preventDefault:!1,preventMouse:!1},handler:function(t,e){return e.options.preventMouse&&t.pointerType==p?void t.stopDetect():(e.options.preventDefault&&t.preventDefault(),void(t.eventType==w&&e.trigger("touch",t)))}},function(t){function e(e,i){switch(e.eventType){case b:n=!1;break;case y:if(e.touches.length<2)return;var r=Math.abs(1-e.scale),o=Math.abs(e.rotation);if(r<i.options.transformMinScale&&o<i.options.transformMinRotation)return;a.current.name=t,n||(i.trigger(t+"start",e),n=!0),i.trigger(t,e),o>i.options.transformMinRotation&&i.trigger("rotate",e),r>i.options.transformMinScale&&(i.trigger("pinch",e),i.trigger("pinch"+(e.scale<1?"in":"out"),e));break;case g:n&&e.changedLength<2&&(i.trigger(t+"end",e),n=!1)}}var n=!1;s.gestures.Transform={name:t,index:45,defaults:{transformMinScale:.01,transformMinRotation:1},handler:e}}("transform"),e["default"]=s,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){var e=l.has(t),n=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t);return!e&&n}function r(t){var e=t.isConnected;if(void 0!==e)return e;for(var n=t;n&&!(n.__CE_isImportDocument||n instanceof Document);)n=n.parentNode||(window.ShadowRoot&&n instanceof ShadowRoot?n.host:void 0);return!(!n||!(n.__CE_isImportDocument||n instanceof Document))}function o(t,e){for(var n=e;n&&n!==t&&!n.nextSibling;)n=n.parentNode;return n&&n!==t?n.nextSibling:null}function a(t,e){return e.firstChild?e.firstChild:o(t,e)}function u(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,i=t;i;){if(i.nodeType===Node.ELEMENT_NODE){var r=i;e(r);var s=r.localName;if("link"===s&&"import"===r.getAttribute("rel")){var l=r["import"];if(l instanceof Node&&!n.has(l)){n.add(l);for(var c=l.firstChild;c;c=c.nextSibling)u(c,e,n)}i=o(t,r);continue}if("template"===s){i=o(t,r);continue}var f=r.__CE_shadowRoot;if(f)for(var d=f.firstChild;d;d=d.nextSibling)u(d,e,n)}i=a(t,i)}}function s(t,e,n){t[e]=n}Object.defineProperty(e,"__esModule",{value:!0}),e.isValidCustomElementName=i,e.isConnected=r,e.walkDeepDescendantElements=u,e.setPropertyUnchecked=s;var l=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"])},function(t,e,n){"use strict";t.exports=!n(37)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return"object"===("undefined"==typeof t?"undefined":i(t))?null!==t:"function"==typeof t}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=n(0),f=i(c),d=n(1),h=i(d),p=n(3),v=i(p),m=n(8),b=i(m),y=n(42),_=i(y),g=n(27),w=i(g),k=n(2),O=i(k),E=function(t){function e(){o(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._visible=!1,t._doorLock=new _["default"],t._cancel=t._cancel.bind(t),t._selfCamelName=f["default"].camelize(t.tagName.slice(4)),t._defaultDBB=function(e){return t.cancelable?t._cancel():e.callParentHandler()},t._animatorFactory=t._updateAnimatorFactory(),t}return u(e,t),l(e,[{key:"_updateAnimatorFactory",value:function(){throw new Error("_updateAnimatorFactory method must be implemented.")}},{key:"_toggleStyle",value:function(t){this.style.display=t?"block":"none"}},{key:"_scheme",get:function(){throw new Error("_scheme getter must be implemented.")}}]),l(e,[{key:"_cancel",value:function(){var t=this;this.cancelable&&!this._running&&(this._running=!0,this.hide().then(function(){t._running=!1,f["default"].triggerElementEvent(t,"dialog-cancel")},function(){return t._running=!1}))}},{key:"_preventScroll",value:function(t){t.cancelable&&t.preventDefault()}},{key:"show",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._setVisible.apply(this,[!0].concat(e))}},{key:"hide",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._setVisible.apply(this,[!1].concat(e))}},{key:"toggle",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._setVisible.apply(this,[!this.visible].concat(e))}},{key:"_setVisible",value:function(t){var e,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t?"show":"hide";i=s({},i),i.animationOptions=f["default"].extend(i.animationOptions||{},b["default"].parseAnimationOptionsString(this.getAttribute("animation-options")));var a=!1;return f["default"].triggerElementEvent(this,"pre"+o,(e={},r(e,this._selfCamelName,this),r(e,"cancel",function(){return a=!0}),e)),a?Promise.reject("Canceled in pre"+o+" event."):new Promise(function(e){n._doorLock.waitUnlock(function(){var a=n._doorLock.lock(),u=n._animatorFactory.newAnimator(i);t&&n._toggleStyle(!0,i),(0,O["default"])(n,function(){u[o](n,function(){!t&&n._toggleStyle(!1,i),n._visible=t,a(),f["default"].propagateAction(n,"_"+o),f["default"].triggerElementEvent(n,"post"+o,r({},n._selfCamelName,n)),i.callback instanceof Function&&i.callback(n),e(n)})})})})}},{key:"_updateMask",value:function(){var t=this;(0,O["default"])(this,function(){t._mask&&t.getAttribute("mask-color")&&(t._mask.style.backgroundColor=t.getAttribute("mask-color"))})}},{key:"connectedCallback",value:function(){var t=this;this.onDeviceBackButton=this._defaultDBB.bind(this),(0,O["default"])(this,function(){t._mask&&(t._mask.addEventListener("click",t._cancel,!1),t._mask.addEventListener("touchmove",t._preventScroll,!1))})}},{key:"disconnectedCallback",value:function(){this._backButtonHandler.destroy(),this._backButtonHandler=null,this._mask&&(this._mask.removeEventListener("click",this._cancel,!1),this._mask.removeEventListener("touchmove",this._preventScroll,!1))}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"modifier":v["default"].onModifierChanged(e,n,this,this._scheme);break;case"animation":this._animatorFactory=this._updateAnimatorFactory();break;case"mask-color":this._updateMask()}}},{key:"onDeviceBackButton",get:function(){return this._backButtonHandler},set:function(t){this._backButtonHandler&&this._backButtonHandler.destroy(),this._backButtonHandler=w["default"].createHandler(this,t)}},{key:"visible",get:function(){return this._visible}},{key:"disabled",set:function(t){return f["default"].toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}},{key:"cancelable",set:function(t){return f["default"].toggleAttribute(this,"cancelable",t)},get:function(){return this.hasAttribute("cancelable")}}],[{key:"observedAttributes",get:function(){return["modifier","animation","mask-color"]}},{key:"events",get:function(){return["preshow","postshow","prehide","posthide","dialog-cancel"]}}]),e}(h["default"]);e["default"]=E,t.exports=e["default"]},function(t,e,n){"use strict";var i=n(19);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){"use strict";var i=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=i)},function(t,e,n){"use strict";var i=n(24),r=n(49);t.exports=n(17)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";var i=n(21),r=n(71),o=n(79),a=Object.defineProperty;e.f=n(17)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";var i=n(12),r=n(23),o=n(18),a=n(39)("src"),u="toString",s=Function[u],l=(""+s).split(u);n(22).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,u){var s="function"==typeof n;s&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(s&&(o(n,a)||r(n,a,t[e]?""+t[e]:l.join(String(e)))),t===i?t[e]=n:u?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,u,function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(10),l=i(s),c=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"linear":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.2:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}))}return a(e,t),u(e,[{key:"show",value:function(t,e){e()}},{key:"hide",value:function(t,e){e()}}]),e}(l["default"]);e["default"]=c,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(6),u=i(a),s={_ready:!1,_domContentLoaded:!1,_onDOMContentLoaded:function(){s._domContentLoaded=!0,u["default"].isWebView()?window.document.addEventListener("deviceready",function(){s._ready=!0},!1):s._ready=!0},addBackButtonListener:function(t){if(!this._domContentLoaded)throw new Error("This method is available after DOMContentLoaded");this._ready?window.document.addEventListener("backbutton",t,!1):window.document.addEventListener("deviceready",function(){window.document.addEventListener("backbutton",t,!1)})},removeBackButtonListener:function(t){if(!this._domContentLoaded)throw new Error("This method is available after DOMContentLoaded");this._ready?window.document.removeEventListener("backbutton",t,!1):window.document.addEventListener("deviceready",function(){window.document.removeEventListener("backbutton",t,!1)})}};window.addEventListener("DOMContentLoaded",function(){return s._onDOMContentLoaded()},!1);var l={_store:{},_genId:function(){var t=0;return function(){return t++}}(),set:function(t,e){t.dataset.deviceBackButtonHandlerId&&this.remove(t);var n=t.dataset.deviceBackButtonHandlerId=l._genId();this._store[n]=e},remove:function(t){t.dataset.deviceBackButtonHandlerId&&(delete this._store[t.dataset.deviceBackButtonHandlerId],delete t.dataset.deviceBackButtonHandlerId)},get:function(t){if(t.dataset.deviceBackButtonHandlerId){var e=t.dataset.deviceBackButtonHandlerId;if(!this._store[e])throw new Error;return this._store[e]}},has:function(t){if(!t.dataset)return!1;var e=t.dataset.deviceBackButtonHandlerId;return!!this._store[e]}},c=function(){function t(){r(this,t),this._isEnabled=!1,this._boundCallback=this._callback.bind(this)}return o(t,[{key:"enable",value:function(){this._isEnabled||(s.addBackButtonListener(this._boundCallback),this._isEnabled=!0)}},{key:"disable",value:function(){this._isEnabled&&(s.removeBackButtonListener(this._boundCallback),this._isEnabled=!1)}},{key:"fireDeviceBackButtonEvent",value:function(){var t=document.createEvent("Event");t.initEvent("backbutton",!0,!0),document.dispatchEvent(t)}},{key:"_callback",value:function(){this._dispatchDeviceBackButtonEvent()}},{key:"createHandler",value:function(t,e){if(!(t instanceof HTMLElement))throw new Error("element must be an instance of HTMLElement");if(!(e instanceof Function))throw new Error("callback must be an instance of Function");var n={_callback:e,_element:t,disable:function(){l.remove(t)},setListener:function(t){this._callback=t},enable:function(){l.set(t,this)},isEnabled:function(){return l.get(t)===this},destroy:function(){l.remove(t),this._callback=this._element=null}};return n.enable(),n}},{key:"_dispatchDeviceBackButtonEvent",value:function(){function t(e){return{_element:e,callParentHandler:function(){for(var e=this._element.parentNode;e;){if(i=l.get(e))return i._callback(t(e));e=e.parentNode}}}}var e=this._captureTree(),n=this._findHandlerLeafElement(e),i=l.get(n);i._callback(t(n))}},{key:"_captureTree",value:function(){function t(n){var i={element:n,children:Array.prototype.concat.apply([],e(n.children).map(function(e){if("none"===e.style.display||e._isShown===!1)return[];if(0===e.children.length&&!l.has(e))return[];var n=t(e);return 0!==n.children.length||l.has(n.element)?[n]:[]}))};if(!l.has(i.element))for(var r=0;r<i.children.length;r++){var o=i.children[r];if(l.has(o.element))return o}return i}function e(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e}return t(document.body)}},{key:"_findHandlerLeafElement",value:function(t){function e(t){return 0===t.children.length?t.element:1===t.children.length?e(t.children[0]):t.children.map(function(t){return t.element}).reduce(function(t,e){if(!t)return e;var n=parseInt(window.getComputedStyle(t,"").zIndex,10),i=parseInt(window.getComputedStyle(e,"").zIndex,10);if(!isNaN(n)&&!isNaN(i))return n>i?t:e;throw new Error("Capturing backbutton-handler is failure.")},null)}return e(t)}}]),t}();e["default"]=new c,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){var n=t.page,i=t.parent;t.params;f["default"].getPageHTMLAsync(n).then(function(t){var n=l["default"].createElement(t);i.appendChild(n),e(n)})}function a(t){t._destroy instanceof Function?t._destroy():t.remove()}Object.defineProperty(e,"__esModule",{value:!0}),e.instantPageLoader=e.defaultPageLoader=e.PageLoader=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(7),f=i(c),d=e.PageLoader=function(){
function t(e,n){r(this,t),this._loader=e instanceof Function?e:o,this._unloader=n instanceof Function?n:a}return u(t,[{key:"load",value:function(t,e){var n=t.page,i=t.parent,r=t.params,o=void 0===r?{}:r;this._loader({page:n,parent:i,params:o},function(t){if(!(t instanceof Element))throw Error("pageElement must be an instance of Element.");e(t)})}},{key:"unload",value:function(t){if(!(t instanceof Element))throw Error("pageElement must be an instance of Element.");this._unloader(t)}},{key:"internalLoader",set:function(t){if(!(t instanceof Function))throw Error("First parameter must be an instance of Function");this._loader=t},get:function(){return this._loader}}]),t}();e.defaultPageLoader=new d,e.instantPageLoader=new d(function(t,e){var n=t.page,i=t.parent,r=(t.params,l["default"].createElement(n.trim()));i.appendChild(r),e(r)},a)},function(t,e,n){"use strict";var i=n(12),r=n(22),o=n(23),a=n(25),u=n(35),s="prototype",l=function c(t,e,n){var l,f,d,h,p=t&c.F,v=t&c.G,m=t&c.S,b=t&c.P,y=t&c.B,_=v?i:m?i[e]||(i[e]={}):(i[e]||{})[s],g=v?r:r[e]||(r[e]={}),w=g[s]||(g[s]={});v&&(n=e);for(l in n)f=!p&&_&&void 0!==_[l],d=(f?_:n)[l],h=y&&f?u(d,i):b&&"function"==typeof d?u(Function.call,d):d,_&&a(_,l,d,t&c.U),g[l]!=d&&o(g,l,h),b&&w[l]!=d&&(w[l]=d)};i.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){"use strict";t.exports={}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(1),f=i(c),d=n(4),h=i(d),p=n(3),v=i(p),m=n(2),b=i(m),y=["autocapitalize","autocomplete","autocorrect","autofocus","disabled","inputmode","max","maxlength","min","minlength","name","pattern","placeholder","readonly","required","size","step","validator","value"],_=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,b["default"])(t,function(){return t._compile()}),t._boundDelegateEvent=t._delegateEvent.bind(t),t}return a(e,t),u(e,[{key:"_update",value:function(){}},{key:"_scheme",get:function(){throw new Error("_scheme getter must be implemented.")}},{key:"_template",get:function(){throw new Error("_template getter must be implemented.")}},{key:"type",get:function(){throw new Error("type getter must be implemented.")}}]),u(e,[{key:"_compile",value:function(){h["default"].prepare(this),this._defaultClassName&&this.classList.add(this._defaultClassName),0===this.children.length&&(this.appendChild(l["default"].createFragment(this._template)),this._setInputId(),this._updateBoundAttributes(),v["default"].initModifier(this,this._scheme))}},{key:"_updateBoundAttributes",value:function(){var t=this;y.forEach(function(e){t.hasAttribute(e)?t._input.setAttribute(e,t.getAttribute(e)):t._input.removeAttribute(e)}),this._update()}},{key:"_delegateEvent",value:function(t){var e=new CustomEvent(t.type,{bubbles:!1,cancelable:!0});return this.dispatchEvent(e)}},{key:"_setInputId",value:function(){this.hasAttribute("input-id")&&(this._input.id=this.getAttribute("input-id"))}},{key:"connectedCallback",value:function(){var t=this;(0,b["default"])(this,function(){t._input.addEventListener("focus",t._boundDelegateEvent),t._input.addEventListener("blur",t._boundDelegateEvent)})}},{key:"disconnectedCallback",value:function(){var t=this;(0,b["default"])(this,function(){t._input.removeEventListener("focus",t._boundDelegateEvent),t._input.removeEventListener("blur",t._boundDelegateEvent)})}},{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"modifier":(0,b["default"])(this,function(){return v["default"].onModifierChanged(e,n,i,i._scheme)});break;case"input-id":(0,b["default"])(this,function(){return i._setInputId()});break;case"class":l["default"].restoreClass(this,this._defaultClassName,this._scheme)}y.indexOf(t)>=0&&(0,b["default"])(this,function(){return i._updateBoundAttributes()})}},{key:"_defaultClassName",get:function(){return""}},{key:"_input",get:function(){return this.querySelector("input")}},{key:"value",get:function(){return null===this._input?this.getAttribute("value"):this._input.value},set:function(t){var e=this;(0,b["default"])(this,function(){t instanceof Date&&(t=t.toISOString().substring(0,10)),e._input.value=t,e._update()})}},{key:"disabled",set:function(t){return l["default"].toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}}],[{key:"observedAttributes",get:function(){return["modifier","input-id","class"].concat(y)}}]),e}(f["default"]);e["default"]=_,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(14),f=i(c),d=n(2),h=i(d),p=n(5),v=(i(p),n(10)),m=i(v),b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"cubic-bezier(.1, .7, .1, 1)":n,a=t.duration,u=void 0===a?.3:a,s=t.delay,l=void 0===s?0:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,duration:u,delay:l}))}return a(e,t),u(e,[{key:"updateOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l["default"].extend(this,{timing:this.timing,duration:this.duration,delay:this.delay},t)}},{key:"activate",value:function(t){var e=this,n=t.parentNode;(0,h["default"])(n,function(){e._side=t,e._oppositeSide=n.right!==t&&n.right||n.left!==t&&n.left,e._content=n.content,e._mask=n.mask})}},{key:"deactivate",value:function(){this.clearTransition(),this._mask&&this.clearMask(),this._content=this._side=this._oppositeSide=this._mask=null}},{key:"clearTransition",value:function(){var t=this;"side mask content".split(/\s+/).forEach(function(e){return t["_"+e]&&f["default"].clear(t["_"+e],"transform transition")})}},{key:"clearMask",value:function(){this._oppositeSide&&"split"!==this._oppositeSide.mode&&this._oppositeSide.isOpen||(this._mask.style.opacity="",this._mask.style.display="none")}},{key:"translate",value:function(t){}},{key:"open",value:function(t){t()}},{key:"close",value:function(t){t()}},{key:"minus",get:function(){return"right"===this._side.side?"-":""}}]),e}(m["default"]);e["default"]=b,t.exports=e["default"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r={};r.isIPhoneXPortraitPatchActive=function(){return null!=document.documentElement.getAttribute("onsflag-iphonex-portrait")&&window.innerWidth<window.innerHeight},r.isIPhoneXLandscapePatchActive=function(){return null!=document.documentElement.getAttribute("onsflag-iphonex-landscape")&&window.innerWidth>=window.innerHeight},r.getSafeAreaLengths=function(){var t=void 0;return t=r.isIPhoneXPortraitPatchActive()?{top:44,right:0,bottom:34,left:0}:r.isIPhoneXLandscapePatchActive()?{top:0,right:44,bottom:21,left:44}:{top:0,right:0,bottom:0,left:0}},r.getSafeAreaDOMRect=function(){var t=void 0;return t=r.isIPhoneXPortraitPatchActive()?{x:0,y:44,width:window.innerWidth,height:window.innerHeight-78}:r.isIPhoneXLandscapePatchActive()?{x:44,y:0,width:window.innerWidth-88,height:window.innerHeight-21}:{x:0,y:0,width:window.innerWidth,height:window.innerHeight},i({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})},e["default"]=r,t.exports=e["default"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={Document_createElement:window.Document.prototype.createElement,Document_createElementNS:window.Document.prototype.createElementNS,Document_importNode:window.Document.prototype.importNode,Document_prepend:window.Document.prototype.prepend,Document_append:window.Document.prototype.append,Node_cloneNode:window.Node.prototype.cloneNode,Node_appendChild:window.Node.prototype.appendChild,Node_insertBefore:window.Node.prototype.insertBefore,Node_removeChild:window.Node.prototype.removeChild,Node_replaceChild:window.Node.prototype.replaceChild,Node_textContent:Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),Element_attachShadow:window.Element.prototype.attachShadow,Element_innerHTML:Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Element_getAttribute:window.Element.prototype.getAttribute,Element_setAttribute:window.Element.prototype.setAttribute,Element_removeAttribute:window.Element.prototype.removeAttribute,Element_getAttributeNS:window.Element.prototype.getAttributeNS,Element_setAttributeNS:window.Element.prototype.setAttributeNS,Element_removeAttributeNS:window.Element.prototype.removeAttributeNS,Element_insertAdjacentElement:window.Element.prototype.insertAdjacentElement,Element_prepend:window.Element.prototype.prepend,Element_append:window.Element.prototype.append,Element_before:window.Element.prototype.before,Element_after:window.Element.prototype.after,Element_replaceWith:window.Element.prototype.replaceWith,Element_remove:window.Element.prototype.remove,HTMLElement:window.HTMLElement,HTMLElement_innerHTML:Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),HTMLElement_insertAdjacentElement:window.HTMLElement.prototype.insertAdjacentElement},t.exports=e["default"]},function(t,e,n){"use strict";var i=n(178);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){"use strict";var i=n(184),r=n(36);t.exports=function(t){return i(r(t))}},function(t,e,n){"use strict";var i=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+r).toString(36))}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=function v(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:v(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},c=n(31),f=i(c),d=n(2),h=i(d),p=function(t){function e(){o(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,h["default"])(t,function(){t.attributeChangedCallback("checked",null,t.getAttribute("checked"))}),t}return u(e,t),s(e,[{key:"attributeChangedCallback",value:function(t,n,i){switch(t){case"checked":this.checked=null!==i;break;default:l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attributeChangedCallback",this).call(this,t,n,i)}}},{key:"_template",get:function(){return'\n      <input type="'+this.type+'" class="'+this._defaultClassName+'__input">\n      <span class="'+this._defaultClassName+'__checkmark"></span>\n    '}},{key:"_helper",get:function(){return this.querySelector("span")}},{key:"checked",get:function(){return this._input.checked},set:function(t){var e=this;(0,h["default"])(this,function(){e._input.checked=t})}}],[{key:"observedAttributes",get:function(){return[].concat(r(l(e.__proto__||Object.getPrototypeOf(e),"observedAttributes",this)),["checked"])}}]),e}(f["default"]);e["default"]=p,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(10),l=i(s),c=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"linear":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.2:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}))}return a(e,t),u(e,[{key:"show",value:function(t,e){e()}},{key:"hide",value:function(t,e){e()}}]),e}(l["default"]);e["default"]=c,t.exports=e["default"]},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(){var t=0;return function(){return t++}}(),a=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,t),this._lockList=[],this._waitList=[],this._log=e.log||function(){}}return r(t,[{key:"lock",value:function(){var t=this,e=function n(){t._unlock(n)};return e.id=o(),this._lockList.push(e),this._log("lock: "+e.id),e}},{key:"_unlock",value:function(t){var e=this._lockList.indexOf(t);if(e===-1)throw new Error("This function is not registered in the lock list.");this._lockList.splice(e,1),this._log("unlock: "+t.id),this._tryToFreeWaitList()}},{key:"_tryToFreeWaitList",value:function(){for(;!this.isLocked()&&this._waitList.length>0;)this._waitList.shift()()}},{key:"waitUnlock",value:function(t){if(!(t instanceof Function))throw new Error("The callback param must be a function.");this.isLocked()?this._waitList.push(t):t()}},{key:"isLocked",value:function(){return this._lockList.length>0}}]),t}();e["default"]=a,t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),u=i(0),s=r(u),l=i(6),c=r(l),f=i(5),d=r(f),h=i(15),p=r(h),v={vertical:{axis:"Y",size:"Height",dir:["up","down"],t3d:["0px, ","px, 0px"]},horizontal:{axis:"X",size:"Width",dir:["left","right"],t3d:["","px, 0px, 0px"]}},m=function(){function t(e){var n=this;o(this,t);var i=function(){return!1};"getInitialIndex getBubbleWidth isVertical isOverScrollable isCentered\n    isAutoScrollable refreshHook preChangeHook postChangeHook overScrollHook".split(/\s+/).forEach(function(t){return n[t]=e[t]||i}),this.getElement=e.getElement,this.scrollHook=e.scrollHook,this.itemSize=e.itemSize||"100%",this.getAutoScrollRatio=function(){var t=e.getAutoScrollRatio&&e.getAutoScrollRatio.apply(e,arguments);if(t="number"==typeof t&&t===t?t:.5,t<0||t>1)throw new Error("Invalid auto-scroll-ratio "+t+". Must be between 0 and 1");return t},this.onDragStart=this.onDragStart.bind(this),this.onDrag=this.onDrag.bind(this),this.onDragEnd=this.onDragEnd.bind(this),this.onResize=this.onResize.bind(this)}return a(t,[{key:"init",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.swipeable,r=n.autoRefresh;if(this.initialized=!0,this.target=this.getElement().children[0],this.blocker=this.getElement().children[1],!this.target||!this.blocker)throw new Error('Expected "target" and "blocker" elements to exist before initializing Swiper.');this.getElement().classList.add("ons-swiper"),this.target.classList.add("ons-swiper-target"),this.blocker.classList.add("ons-swiper-blocker"),this._gestureDetector=new p["default"](this.getElement(),{dragMinDistance:1,dragLockToAxis:!0}),this._mutationObserver=new MutationObserver(function(){return t.refresh()}),this.updateSwipeable(i),this.updateAutoRefresh(r),this._scroll=this._offset=this._lastActiveIndex=0,this._updateLayout(),this._setupInitialIndex(),e(function(){return t.initialized&&t._setupInitialIndex()}),0===this.offsetHeight&&e(function(){return t.refresh()})}},{key:"dispose",value:function(){this.initialized=!1,this.updateSwipeable(!1),this.updateAutoRefresh(!1),this._gestureDetector&&this._gestureDetector.dispose(),this.target=this.blocker=this._gestureDetector=this._mutationObserver=null,this.setupResize(!1)}},{key:"onResize",value:function(){var t=this._scroll/this.targetSize;this._reset(),this.setActiveIndex(t),this.refresh()}},{key:"_calculateItemSize",value:function(){var t=this.itemSize.match(/^(\d+)(px|%)/);if(!t)throw new Error("Invalid state: swiper's size unit must be '%' or 'px'");var e=parseInt(t[1],10);return"%"===t[2]?Math.round(e/100*this.targetSize):e}},{key:"_setupInitialIndex",value:function(){this._reset(),this._lastActiveIndex=Math.max(Math.min(Number(this.getInitialIndex()),this.itemCount),0),this._scroll=this._offset+this.itemNumSize*this._lastActiveIndex,this._scrollTo(this._scroll)}},{key:"setActiveIndex",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Math.max(0,Math.min(t,this.itemCount-1));var i=Math.max(0,Math.min(this.maxScroll,this._offset+this.itemNumSize*t));if(c["default"].isUIWebView()){var r=function(t){return Array.prototype.concat.apply([],t)},o=r(s["default"].arrayFrom(this.target.children).map(function(t){return s["default"].arrayFrom(t.children).filter(function(t){return t.classList.contains("page__content")})})),a=new Map;return new Promise(function(t){o.forEach(function(t){a.set(t,t.getAttribute("class")),t.classList.add("page__content--suppress-layer-creation")}),requestAnimationFrame(t)}).then(function(){return e._changeTo(i,n)}).then(function(){return new Promise(function(t){o.forEach(function(t){t.setAttribute("class",a.get(t))}),requestAnimationFrame(t)})})}return this._changeTo(i,n)}},{key:"getActiveIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._scroll;t-=this._offset;var e=this.itemCount,n=this.itemNumSize;if(t<=0)return 0;for(var i=0;i<e;i++)if(n*i<=t&&n*(i+1)>t)return i;return e-1}},{key:"setupResize",value:function(t){window[(t?"add":"remove")+"EventListener"]("resize",this.onResize,!0)}},{key:"show",value:function(){this.setupResize(!0),this.onResize()}},{key:"hide",value:function(){this.setupResize(!1)}},{key:"updateSwipeable",value:function(t){if(this._gestureDetector){var e=t?"on":"off";this._gestureDetector[e]("drag",this.onDrag),this._gestureDetector[e]("dragstart",this.onDragStart),this._gestureDetector[e]("dragend",this.onDragEnd)}}},{key:"updateAutoRefresh",value:function(t){this._mutationObserver&&(t?this._mutationObserver.observe(this.target,{childList:!0}):this._mutationObserver.disconnect())}},{key:"updateItemSize",value:function(t){this.itemSize=t||"100%",this.refresh()}},{key:"toggleBlocker",value:function(t){this.blocker.style.pointerEvents=t?"auto":"none"}},{key:"_canConsumeGesture",value:function(t){var e=t.direction,n=0===this._scroll&&!this.isOverScrollable(),i=this._scroll===this.maxScroll&&!this.isOverScrollable();return this.isVertical()?"down"===e&&!n||"up"===e&&!i:"right"===e&&!n||"left"===e&&!i}},{key:"onDragStart",value:function(t){var n=this;if(this._ignoreDrag=t.consumed||!s["default"].isValidGesture(t),!this._ignoreDrag){var i=t.consume;if(t.consume=function(){i&&i(),n._ignoreDrag=!0},this._canConsumeGesture(t.gesture)){var r=t.gesture.center&&t.gesture.center.clientX||0,o=this.getBubbleWidth()||0,a=function(){i&&i(),t.consumed=!0,n._started=!0,n.toggleBlocker(!0),s["default"].preventScroll(n._gestureDetector)};r<o||r>this.targetSize-o?e(function(){return!n._ignoreDrag&&a()}):a()}}}},{key:"onDrag",value:function(t){t.gesture&&!this._ignoreDrag&&this._started&&(this._continued=!0,t.stopPropagation(),this._scrollTo(this._scroll-this._getDelta(t),{throttle:!0}))}},{key:"onDragEnd",value:function(t){if(this._started=!1,!t.gesture||this._ignoreDrag||!this._continued)return void(this._ignoreDrag=!0);this._continued=!1,t.stopPropagation();var e=this._scroll-this._getDelta(t),n=this._normalizeScroll(e);e===n?this._startMomentumScroll(e,t):this._killOverScroll(n),this.toggleBlocker(!1)}},{key:"_startMomentumScroll",value:function(t,e){var n=this._getVelocity(e),i=e.gesture.interimDirection===this.dM.dir[this._getDelta(e)<0?0:1],r=this._getAutoScroll(t,n,i),o=Math.abs(r-t)/(n+.01)/1e3;o=Math.min(.25,Math.max(.1,o)),this._changeTo(r,{swipe:!0,animationOptions:{duration:o,timing:"cubic-bezier(.4, .7, .5, 1)"}})}},{key:"_killOverScroll",value:function(t){var e=this;this._scroll=t;var n=this.dM.dir[Number(t>0)],i=function(){return e._changeTo(t,{animationOptions:{duration:.4,timing:"cubic-bezier(.1, .4, .1, 1)"}})};this.overScrollHook({direction:n,killOverScroll:i})||i()}},{key:"_changeTo",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={activeIndex:this.getActiveIndex(t),lastActiveIndex:this._lastActiveIndex,swipe:n.swipe||!1},r=i.activeIndex!==i.lastActiveIndex,o=!!r&&this.preChangeHook(i);return this._scroll=o?this._offset+i.lastActiveIndex*this.itemNumSize:t,this._lastActiveIndex=o?i.lastActiveIndex:i.activeIndex,this._scrollTo(this._scroll,n).then(function(){if(t!==e._scroll||o){if(n.reject)return Promise.reject("Canceled")}else r&&e.postChangeHook(i)})}},{key:"_scrollTo",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.throttle){var i=.35;if(t<0)t=this.isOverScrollable()?Math.round(t*i):0;else{var r=this.maxScroll;r<t&&(t=this.isOverScrollable()?r+Math.round((t-r)*i):r)}}var o="none"===n.animation?{}:n.animationOptions;return this.scrollHook&&this.itemNumSize>0&&this.scrollHook((t/this.itemNumSize).toFixed(2),n.animationOptions||{}),new Promise(function(n){return(0,d["default"])(e.target).queue({transform:e._getTransform(t)},o).play(n)})}},{key:"_getAutoScroll",value:function(t,e,n){var i=this.maxScroll,r=this._offset,o=this.itemNumSize;if(!this.isAutoScrollable())return Math.max(0,Math.min(i,t));for(var a=[],u=r;u<i;u+=o)a.push(u);a.push(i),a=a.sort(function(e,n){return Math.abs(e-t)-Math.abs(n-t)}).filter(function(t,e){return!e||t!==a[e-1]});var s=a[0],l=this._lastActiveIndex*o+r,c=Math.abs(t-l)/o;return c<=this.getAutoScrollRatio(n,e,o)?s=l:c<1&&a[0]===l&&a.length>1&&(s=a[1]),Math.max(0,Math.min(i,s))}},{key:"_reset",value:function(){this._targetSize=this._itemNumSize=void 0}},{key:"_normalizeScroll",value:function(t){return Math.max(Math.min(t,this.maxScroll),0)}},{key:"refresh",value:function(){this._reset(),this._updateLayout();var t=this._normalizeScroll(this._scroll);t!==this._scroll?this._killOverScroll(t):this._changeTo(t),this.refreshHook()}},{key:"_getDelta",value:function(t){return t.gesture["delta"+this.dM.axis]}},{key:"_getVelocity",value:function(t){return t.gesture["velocity"+this.dM.axis]}},{key:"_getTransform",value:function(t){return"translate3d("+this.dM.t3d[0]+-t+this.dM.t3d[1]+")"}},{key:"_updateLayout",value:function(){this.dM=v[this.isVertical()?"vertical":"horizontal"],this.target.classList.toggle("ons-swiper-target--vertical",this.isVertical());for(var t=this.target.children[0];t;t=t.nextElementSibling)t.style[this.dM.size.toLowerCase()]=this.itemSize;this.isCentered()&&(this._offset=(this.targetSize-this.itemNumSize)/-2||0)}},{key:"itemCount",get:function(){return this.target.children.length}},{key:"itemNumSize",get:function(){return"number"==typeof this._itemNumSize&&this._itemNumSize===this._itemNumSize||(this._itemNumSize=this._calculateItemSize()),this._itemNumSize}},{key:"maxScroll",get:function(){var t=this.itemCount*this.itemNumSize-this.targetSize;return Math.ceil(t<0?0:t)}},{key:"targetSize",get:function(){return this._targetSize||(this._targetSize=this.target["offset"+this.dM.size]),this._targetSize}}]),t}();n["default"]=m,t.exports=n["default"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){var t={_isPortrait:!1,isPortrait:function(){return this._isPortrait()},isLandscape:function(){return!this.isPortrait()},_init:function(){return document.addEventListener("DOMContentLoaded",this._onDOMContentLoaded.bind(this),!1),"orientation"in window?window.addEventListener("orientationchange",this._onOrientationChange.bind(this),!1):window.addEventListener("resize",this._onResize.bind(this),!1),this._isPortrait=function(){return window.innerHeight>window.innerWidth},this},_onDOMContentLoaded:function(){this._installIsPortraitImplementation(),this.emit("change",{isPortrait:this.isPortrait()})},_installIsPortraitImplementation:function(){var t=window.innerWidth<window.innerHeight;"orientation"in window?window.orientation%180===0?this._isPortrait=function(){return 0===Math.abs(window.orientation%180)?t:!t}:this._isPortrait=function(){return 90===Math.abs(window.orientation%180)?t:!t}:this._isPortrait=function(){return window.innerHeight>window.innerWidth}},_onOrientationChange:function(){var t=this,e=this._isPortrait(),n=0,i=setInterval(function(){n++;var r=window.innerWidth,o=window.innerHeight;e&&r<=o||!e&&r>=o?(t.emit("change",{isPortrait:e}),clearInterval(i)):50===n&&(t.emit("change",{isPortrait:e}),clearInterval(i))},20)},_onResize:function(){this.emit("change",{isPortrait:this.isPortrait()})}};return MicroEvent.mixin(t),t};e["default"]=i()._init(),t.exports=e["default"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={custom:1,failed:2};e["default"]=i,t.exports=e["default"]},function(t,e,n){"use strict";var i=n(65),r=n(9)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(u=i(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){"use strict";var i=n(35),r=n(186),o=n(185),a=n(21),u=n(78),s=n(200),l={},c={},f=t.exports=function(t,e,n,f,d){var h,p,v,m,b=d?function(){return t}:s(t),y=i(n,f,e?2:1),_=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(o(b)){for(h=u(t.length);h>_;_++)if(m=e?y(a(p=t[_])[0],p[1]):y(t[_]),m===l||m===c)return m}else for(v=b.call(t);!(p=v.next()).done;)if(m=r(v,y,p.value,e),m===l||m===c)return m};f.BREAK=l,f.RETURN=c},function(t,e,n){"use strict";var i=n(189),r=n(29),o=n(25),a=n(23),u=n(18),s=n(30),l=n(187),c=n(50),f=n(192),d=n(9)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",m="values",b=function(){return this};t.exports=function(t,e,n,y,_,g,w){l(n,e,y);var k,O,E,P=function(t){if(!h&&t in S)return S[t];switch(t){case v:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",x=_==m,A=!1,S=t.prototype,j=S[d]||S[p]||_&&S[_],T=j||P(_),M=_?x?P("entries"):T:void 0,L="Array"==e?S.entries||j:j;if(L&&(E=f(L.call(new t)),E!==Object.prototype&&(c(E,C,!0),i||u(E,d)||a(E,d,b))),x&&j&&j.name!==m&&(A=!0,T=function(){return j.call(this)}),i&&!w||!h&&!A&&S[d]||a(S,d,T),s[e]=T,s[C]=b,_)if(k={values:x?T:P(m),keys:g?T:P(v),entries:M},w)for(O in k)O in S||o(S,O,k[O]);else r(r.P+r.F*(h||A),e,k);return k}},function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var i=n(24).f,r=n(18),o=n(9)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){"use strict";var i=n(77)("keys"),r=n(39);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){"use strict";var i=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:i)(t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(3),f=(i(c),n(8)),d=(i(f),n(146)),h=i(d),p=n(147),v=i(p),m=n(148),b=i(m),y=n(1),_=i(y),g=n(27),w=i(g),k=n(2),O=i(k),E={"default":h["default"],overlay:h["default"],
push:v["default"],reveal:b["default"]},P=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._onModeChange=t._onModeChange.bind(t),(0,O["default"])(t,function(){!t.mask&&t.appendChild(document.createElement("ons-splitter-mask")),t._layout()}),t}return a(e,t),u(e,[{key:"_getSide",value:function(t){var e=l["default"].findChild(this,function(e){return l["default"].match(e,"ons-splitter-side")&&e.getAttribute("side")===t});return e}},{key:"_onDeviceBackButton",value:function(t){this._sides.some(function(t){return!!t.isOpen&&t.close()})||t.callParentHandler()}},{key:"_onModeChange",value:function(t){var e=this;t.target.parentNode&&(0,O["default"])(this,function(){e._layout()})}},{key:"_layout",value:function(){var t=this;this._sides.forEach(function(e){t.content&&(t.content.style[e.side]="split"===e.mode?e.style.width:0)})}},{key:"left",get:function(){return this._getSide("left")}},{key:"right",get:function(){return this._getSide("right")}},{key:"side",get:function(){return l["default"].findChild(this,"ons-splitter-side")}},{key:"_sides",get:function(){return[this.left,this.right].filter(function(t){return t})}},{key:"content",get:function(){return l["default"].findChild(this,"ons-splitter-content")}},{key:"topPage",get:function(){return this.content._content}},{key:"mask",get:function(){return l["default"].findChild(this,"ons-splitter-mask")}},{key:"onDeviceBackButton",get:function(){return this._backButtonHandler},set:function(t){this._backButtonHandler&&this._backButtonHandler.destroy(),this._backButtonHandler=w["default"].createHandler(this,t)}}]),u(e,[{key:"connectedCallback",value:function(){this.onDeviceBackButton=this._onDeviceBackButton.bind(this),this.addEventListener("modechange",this._onModeChange,!1)}},{key:"disconnectedCallback",value:function(){this._backButtonHandler.destroy(),this._backButtonHandler=null,this.removeEventListener("modechange",this._onModeChange,!1)}},{key:"attributeChangedCallback",value:function(t,e,n){}},{key:"_show",value:function(){l["default"].propagateAction(this,"_show")}},{key:"_hide",value:function(){l["default"].propagateAction(this,"_hide")}},{key:"_destroy",value:function(){l["default"].propagateAction(this,"_destroy"),this.remove()}}],[{key:"registerAnimator",value:function(t,e){if(!(e instanceof SplitterAnimator))throw new Error("Animator parameter must be an instance of SplitterAnimator.");E[t]=e}},{key:"SplitterAnimator",get:function(){return SplitterAnimator}},{key:"animators",get:function(){return E}}]),e}(_["default"]);e["default"]=P,customElements.define("ons-splitter",P),t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=i(0),c=r(l),f=i(4),d=r(f),h=i(3),p=r(h),v=i(1),m=r(v),b=i(55),y=r(b),_=i(2),g=r(_),w=i(28),k="tabbar__item",O={"":"tabbar--*__item",".tabbar__button":"tabbar--*__button"},E=function(t){function n(){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return["label","icon","badge"].some(t.hasAttribute.bind(t))?t._compile():(0,g["default"])(t,function(){return t._compile()}),t._pageLoader=w.defaultPageLoader,t._boundOnClick=t._onClick.bind(t),t}return u(n,t),s(n,[{key:"_compile",value:function(){if(d["default"].prepare(this),this.classList.add(k),!this._button){for(var t=c["default"].create("button.tabbar__button");this.childNodes[0];)t.appendChild(this.childNodes[0]);var e=c["default"].create("input",{display:"none"});e.type="radio",this.appendChild(e),this.appendChild(t),this._updateButtonContent(),p["default"].initModifier(this,O),this._updateRipple()}}},{key:"_updateRipple",value:function(){this._button&&c["default"].updateRipple(this._button,this.hasAttribute("ripple"))}},{key:"_updateButtonContent",value:function(){var t=this,e=this._button,n=this._icon;if(this.hasAttribute("icon")){n=n||c["default"].createElement('<div class="tabbar__icon"><ons-icon></ons-icon></div>');var i=n.children[0],r=i.getAttribute("icon");i.setAttribute("icon",this.getAttribute("icon")),n.parentElement!==e&&e.insertBefore(n,e.firstChild),i.attributeChangedCallback("icon",r,this.getAttribute("icon"))}else n&&n.remove();["label","badge"].forEach(function(n,i){var r=t.querySelector(".tabbar__"+n);t.hasAttribute(n)?(r=r||c["default"].create(".tabbar__"+n+("badge"===n?" notification":"")),r.textContent=t.getAttribute(n),r.parentElement!==e&&e.appendChild(r)):r&&r.remove()})}},{key:"_onClick",value:function(){this.onClick instanceof Function?this.onClick():this._tabbar.setActiveTab(this.index,{reject:!1})}},{key:"setActive",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._input.checked=t,this.classList.toggle("active",t),c["default"].toggleAttribute(this,"active",t),this.hasAttribute("icon")&&this.hasAttribute("active-icon")&&this._icon.children[0].setAttribute("icon",this.getAttribute(t?"active-icon":"icon"))}},{key:"_loadPageElement",value:function(t,e){var n=this;return this._hasLoaded=!0,new Promise(function(i){n._pageLoader.load({parent:t,page:e},function(e){t.replaceChild(e,t.children[n.index]),n._loadedPage=e,i(e)})})}},{key:"isActive",value:function(){return this.classList.contains("active")}},{key:"disconnectedCallback",value:function(){this.loaded=null,this.removeEventListener("click",this._boundOnClick,!1),this._loadedPage&&(this._pageLoader.unload(this._loadedPage),this._loadedPage=null,this._hasLoaded=!1)}},{key:"connectedCallback",value:function(){var t=this;if(c["default"].isAttached(this)&&!this.loaded){var n=c["default"].defer();this.loaded=n.promise,(0,g["default"])(this,function(){var i=t.index,r=t._tabbar;if(!r)throw new Error("This ons-tab element must be child of ons-tabbar element.");r.hasAttribute("modifier")&&c["default"].addModifier(t,r.getAttribute("modifier")),t._hasLoaded||(t.hasAttribute("active")&&(t.setActive(!0),r.setAttribute("activeIndex",i)),i===r.tabs.length-1&&(r._onRefresh(),e(function(){return r._onRefresh()})),y["default"].rewritables.ready(r,function(){var e=t.page||t.getAttribute("page");if(!t.pageElement&&e){var o=r._targetElement,a=c["default"].create("div",{height:"100%",width:"100%",backgroundColor:"transparent"});return o.insertBefore(a,o.children[i]),t._loadPageElement(o,e).then(n.resolve)}return n.resolve(t.pageElement)})),t.addEventListener("click",t._boundOnClick,!1)})}}},{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"class":c["default"].restoreClass(this,k,O);break;case"modifier":(0,g["default"])(this,function(){return p["default"].onModifierChanged(e,n,i,O)});break;case"ripple":(0,g["default"])(this,function(){return i._updateRipple()});break;case"icon":case"label":case"badge":(0,g["default"])(this,function(){return i._updateButtonContent()});break;case"page":this.page=n||""}}},{key:"pageLoader",set:function(t){if(!(t instanceof w.PageLoader))throw Error("First parameter must be an instance of PageLoader.");this._pageLoader=t},get:function(){return this._pageLoader}},{key:"_input",get:function(){return c["default"].findChild(this,"input")}},{key:"_button",get:function(){return c["default"].findChild(this,".tabbar__button")}},{key:"_icon",get:function(){return this.querySelector(".tabbar__icon")}},{key:"_tabbar",get:function(){return c["default"].findParent(this,"ons-tabbar")}},{key:"index",get:function(){return Array.prototype.indexOf.call(this.parentElement.children,this)}},{key:"pageElement",get:function(){if(this._loadedPage)return this._loadedPage;var t=this._tabbar;return t.pages.length===t.tabs.length?t.pages[this.index]:null}}],[{key:"observedAttributes",get:function(){return["modifier","ripple","icon","label","page","badge","class"]}}]),n}(m["default"]);n["default"]=E,customElements.define("ons-tab",E),t.exports=n["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=i(0),f=r(c),d=i(6),h=r(d),p=i(7),v=r(p),m=i(4),b=r(m),y=i(43),_=r(y),g=i(3),w=r(g),k=i(1),O=r(k),E=i(54),P=r(E),C=i(2),x=r(C),A={".tabbar__content":"tabbar--*__content",".tabbar__border":"tabbar--*__border",".tabbar":"tabbar--*"},S={ready:function(t,e){e()}},j=(v["default"].nullElement,function(t,e,n){return(1-n)*t+n*e}),T=function(t){function n(){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return(0,x["default"])(t,function(){return t._compile()}),t}return u(n,t),l(n,[{key:"connectedCallback",value:function(){var t=this;this._swiper||(this._swiper=new _["default"]({getElement:function(){return t._contentElement},getInitialIndex:function(){return t.getAttribute("activeIndex")||t.getAttribute("active-index")},getAutoScrollRatio:this._getAutoScrollRatio.bind(this),getBubbleWidth:function(){return parseInt(t.getAttribute("ignore-edge-width")||25,10)},isAutoScrollable:function(){return!0},preChangeHook:this._onPreChange.bind(this),postChangeHook:this._onPostChange.bind(this),refreshHook:this._onRefresh.bind(this),scrollHook:this._onScroll.bind(this)}),(0,x["default"])(this,function(){t._tabbarBorder=f["default"].findChild(t._tabbarElement,".tabbar__border"),t._swiper.init({swipeable:t.hasAttribute("swipeable")})})),(0,x["default"])(this,function(){return t._updatePosition()})}},{key:"disconnectedCallback",value:function(){this._swiper&&this._swiper.initialized&&(this._swiper.dispose(),this._swiper=null,this._tabbarBorder=null,this._tabsRect=null)}},{key:"_normalizeEvent",value:function(t){return s({},t,{index:t.activeIndex,tabItem:this.tabs[t.activeIndex]})}},{key:"_onPostChange",value:function(t){t=this._normalizeEvent(t),f["default"].triggerElementEvent(this,"postchange",t);var e=t.tabItem.pageElement;e&&e._show()}},{key:"_onPreChange",value:function(t){if(t=this._normalizeEvent(t),t.cancel=function(){return t.canceled=!0},f["default"].triggerElementEvent(this,"prechange",t),!t.canceled){var e=t,n=e.activeIndex,i=e.lastActiveIndex,r=this.tabs;if(r[n].setActive(!0),i>=0){var o=r[i];o.setActive(!1),o.pageElement&&o.pageElement._hide()}}return t.canceled}},{key:"_onScroll",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._tabbarBorder)if(this._tabbarBorder.style.transition="all "+(e.duration||0)+"s "+(e.timing||""),this._autogrow&&this._tabsRect.length>0){var n=Math.floor(t),i=Math.ceil(t),r=t%1;this._tabbarBorder.style.width=j(this._tabsRect[n].width,this._tabsRect[i].width,r)+"px",this._tabbarBorder.style.transform="translate3d("+j(this._tabsRect[n].left,this._tabsRect[i].left,r)+"px, 0, 0)"}else this._tabbarBorder.style.transform="translate3d("+100*t+"%, 0, 0)";this._onSwipe&&this._onSwipe(t,e)}},{key:"_onRefresh",value:function(){if(this._autogrow=f["default"].hasModifier(this,"autogrow"),this._tabsRect=this.tabs.map(function(t){return t.getBoundingClientRect()}),this._tabbarBorder){this._tabbarBorder.style.display=this.hasAttribute("tab-border")||h["default"].isAndroid()?"block":"none";var t=this.getActiveTabIndex();this._tabsRect.length>0&&t>=0&&(this._tabbarBorder.style.width=this._tabsRect[t].width+"px")}}},{key:"_getAutoScrollRatio",value:function(t,e,n){var i=.6,r=n/300*(t?-1:1);return Math.min(1,Math.max(0,i+e*r))}},{key:"_compile",value:function(){b["default"].prepare(this);var t=this._contentElement||f["default"].create(".tabbar__content");t.classList.add("ons-tabbar__content");var e=this._tabbarElement||f["default"].create(".tabbar");if(e.classList.add("ons-tabbar__footer"),!e.parentNode)for(;this.firstChild;)e.appendChild(this.firstChild);var n=Number(this.getAttribute("activeIndex"));e.children.length>n&&!f["default"].findChild(e,"[active]")&&e.children[n].setAttribute("active",""),this._tabbarBorder=f["default"].findChild(e,".tabbar__border")||f["default"].create(".tabbar__border"),e.appendChild(this._tabbarBorder),e.classList.add("ons-swiper-tabbar"),!t.children[0]&&t.appendChild(document.createElement("div")),!t.children[1]&&t.appendChild(document.createElement("div")),t.appendChild=t.appendChild.bind(t.children[0]),t.insertBefore=t.insertBefore.bind(t.children[0]),this.appendChild(t),this.appendChild(e),w["default"].initModifier(this,A)}},{key:"_updatePosition",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAttribute("position"),n=this._top="top"===e||"auto"===e&&h["default"].isAndroid(),i=n?f["default"].addModifier:f["default"].removeModifier;i(this,"top");var r=f["default"].findParent(this,"ons-page");r&&(0,x["default"])(r,function(){var e=0;r.children[0]&&f["default"].match(r.children[0],"ons-toolbar")&&(i(r.children[0],"noshadow"),e=1);var o=r._getContentElement(),a=window.getComputedStyle(r._getContentElement(),null);t.style.top=n?parseInt(a.getPropertyValue("padding-top"),10)-e+"px":"",o.style.top=a.top,o.style.top=""}),v["default"].autoStatusBarFill(function(){var e=f["default"].findParent(t,function(t){return t.hasAttribute("status-bar-fill")});f["default"].toggleAttribute(t,"status-bar-fill",n&&!e)})}},{key:"setActiveTab",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getActiveTabIndex(),r=this.tabs[i],o=this.tabs[t];if(!o)return Promise.reject("Specified index does not match any tab.");if(t===i)return f["default"].triggerElementEvent(this,"reactive",{index:t,activeIndex:t,tabItem:o}),Promise.resolve(o.pageElement);var a=o.pageElement;return(a?Promise.resolve(a):o.loaded).then(function(i){return e._swiper.setActiveIndex(t,s({reject:!0},n,{animation:r&&i?n.animation||e.getAttribute("animation"):"none",animationOptions:f["default"].extend({duration:.3,timing:"cubic-bezier(.4, .7, .5, 1)"},e.hasAttribute("animation-options")?f["default"].animationOptionsParse(e.getAttribute("animation-options")):{},n.animationOptions||{})})).then(function(){return n.callback instanceof Function&&n.callback(i),i})})}},{key:"setTabbarVisibility",value:function(t){var e=this;(0,x["default"])(this,function(){e._contentElement.style[e._top?"top":"bottom"]=t?"":"0px",e._tabbarElement.style.display=t?"":"none"})}},{key:"show",value:function(){this.setTabbarVisibility(!0)}},{key:"hide",value:function(){this.setTabbarVisibility(!1)}},{key:"getActiveTabIndex",value:function(){for(var t=this.tabs,e=0;e<t.length;e++)if(t[e]instanceof P["default"]&&t[e].isActive())return e;return-1}},{key:"_show",value:function(){var t=this;this._swiper.show(),e(function(){return t.tabs[t.getActiveTabIndex()].loaded.then(function(t){return t&&e(function(){return t._show()})})})}},{key:"_hide",value:function(){this._swiper.hide();var t=this.topPage;t&&t._hide()}},{key:"_destroy",value:function(){this.tabs.forEach(function(t){return t.remove()}),this.remove()}},{key:"attributeChangedCallback",value:function(t,e,n){if("modifier"===t){w["default"].onModifierChanged(e,n,this,A);var i=function(t){return/(^|\s+)top($|\s+)/i.test(t)};i(e)!==i(n)&&this._updatePosition()}else"position"===t?f["default"].isAttached(this)&&this._updatePosition():"swipeable"===t?this._swiper&&this._swiper.updateSwipeable(this.hasAttribute("swipeable")):"hide-tabs"===t&&this.setTabbarVisibility(!this.hasAttribute("hide-tabs")||"false"===n)}},{key:"_tabbarElement",get:function(){return f["default"].findChild(this,".tabbar")}},{key:"_contentElement",get:function(){return f["default"].findChild(this,".tabbar__content")}},{key:"_targetElement",get:function(){var t=this._contentElement;return t&&t.children[0]||null}},{key:"topPage",get:function(){var t=this.tabs,e=this.getActiveTabIndex();return t[e]?t[e].pageElement||this.pages[0]||null:null}},{key:"pages",get:function(){return f["default"].arrayFrom(this._targetElement.children)}},{key:"tabs",get:function(){return Array.prototype.filter.call(this._tabbarElement.children,function(t){return"ONS-TAB"===t.tagName})}},{key:"visible",get:function(){return"none"!==this._tabbarElement.style.display}},{key:"swipeable",get:function(){return this.hasAttribute("swipeable")},set:function(t){return f["default"].toggleAttribute(this,"swipeable",t)}},{key:"onSwipe",get:function(){return this._onSwipe},set:function(t){if(t&&!(t instanceof Function))throw new Error("'onSwipe' must be a function.");this._onSwipe=t}}],[{key:"observedAttributes",get:function(){return["modifier","position","swipeable","tab-border","hide-tabs"]}},{key:"rewritables",get:function(){return S}},{key:"events",get:function(){return["prechange","postchange","reactive"]}}]),n}(O["default"]);n["default"]=T,customElements.define("ons-tabbar",T),t.exports=n["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(7),f=i(c),d=n(4),h=i(d),p=n(3),v=i(p),m=n(1),b=i(m),y=n(2),_=i(y),g="toolbar",w={"":"toolbar--*",".toolbar__left":"toolbar--*__left",".toolbar__center":"toolbar--*__center",".toolbar__right":"toolbar--*__right"},k=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,_["default"])(t,function(){t._compile()}),t}return a(e,t),u(e,[{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":l["default"].restoreClass(this,g,w);break;case"modifier":v["default"].onModifierChanged(e,n,this,w)}}},{key:"_getToolbarLeftItemsElement",value:function(){return this.querySelector(".left")||f["default"].nullElement}},{key:"_getToolbarCenterItemsElement",value:function(){return this.querySelector(".center")||f["default"].nullElement}},{key:"_getToolbarRightItemsElement",value:function(){return this.querySelector(".right")||f["default"].nullElement}},{key:"_getToolbarBackButtonLabelElement",value:function(){return this.querySelector("ons-back-button .back-button__label")||f["default"].nullElement}},{key:"_getToolbarBackButtonIconElement",value:function(){return this.querySelector("ons-back-button .back-button__icon")||f["default"].nullElement}},{key:"_compile",value:function(){h["default"].prepare(this),this.classList.add(g),this._ensureToolbarItemElements(),v["default"].initModifier(this,w)}},{key:"_ensureToolbarItemElements",value:function(){for(var t=this.childNodes.length-1;t>=0;t--)1!=this.childNodes[t].nodeType&&this.removeChild(this.childNodes[t]);var e=this._ensureToolbarElement("center");if(e.classList.add("toolbar__title"),1!==this.children.length||!this.children[0].classList.contains("center")){var n=this._ensureToolbarElement("left"),i=this._ensureToolbarElement("right");this.children[0]===n&&this.children[1]===e&&this.children[2]===i||(this.appendChild(n),this.appendChild(e),this.appendChild(i))}}},{key:"_ensureToolbarElement",value:function(t){if(l["default"].findChild(this,".toolbar__"+t)){var e=l["default"].findChild(this,".toolbar__"+t);return e.classList.add(t),e}var n=l["default"].findChild(this,"."+t)||l["default"].create("."+t);return n.classList.add("toolbar__"+t),n}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}(b["default"]);e["default"]=k,customElements.define("ons-toolbar",k),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function y(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:y(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=n(13),c=i(l),f=n(0),d=i(f),h=n(5),p=i(h),v=n(2),m=i(v),b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"cubic-bezier(0.3, .4, 0, .9)":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.4:s;r(this,e);var c=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}));return c.backgroundMask=d["default"].createElement('\n      <div style="position: absolute; width: 100%; height: 100%;\n        background-color: black; z-index: 2"></div>\n    '),c}return a(e,t),u(e,[{key:"_decompose",value:function(t){var e=t._getToolbarElement(),n=e._getToolbarLeftItemsElement(),i=e._getToolbarRightItemsElement(),r=function(t){for(var e=[],n=0;n<t.length;n++)"ons-back-button"!==t[n].nodeName.toLowerCase()&&e.push(t[n]);return e},o=[].concat(0===n.children.length?n:r(n.children)).concat(0===i.children.length?i:r(i.children));return{toolbarCenter:e._getToolbarCenterItemsElement(),backButtonIcon:e._getToolbarBackButtonIconElement(),backButtonLabel:e._getToolbarBackButtonLabelElement(),other:o,content:t._getContentElement(),background:t._getBackgroundElement(),toolbar:e,bottomToolbar:t._getBottomToolbarElement()}}},{key:"_shouldAnimateToolbar",value:function(t,e){var n=t._getToolbarElement(),i=e._getToolbarElement(),r=t._canAnimateToolbar()&&e._canAnimateToolbar(),o=d["default"].hasModifier(n,"material")||d["default"].hasModifier(i,"material"),a=d["default"].hasModifier(n,"transparent")||d["default"].hasModifier(i,"transparent");return r&&!o&&!a}},{key:"_calculateDelta",value:function(t,e){var n=void 0,i=void 0,r=t.getBoundingClientRect();if(e.backButtonLabel.classList.contains("back-button__label")){var o=e.backButtonLabel.getBoundingClientRect();n=Math.round(r.width/2-o.width/2-o.left)}else n=Math.round(r.width/2*.6);return e.backButtonIcon.classList.contains("back-button__icon")&&(i=e.backButtonIcon.getBoundingClientRect().right-2),{title:n,label:i}}},{key:"push",value:function(t,n,i){var r=this;this.backgroundMask.remove(),n.parentNode.insertBefore(this.backgroundMask,n);var o=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,t);(0,m["default"])(t,function(){var e=d["default"].findToolbarPage(t)||t,a=d["default"].findToolbarPage(n)||n,u=r._decompose(e),s=r._decompose(a),l=r._calculateDelta(n,u),c=r._shouldAnimateToolbar(e,a);c?p["default"].runAll((0,p["default"])([u.content,u.bottomToolbar,u.background]).saveStyle().queue({css:{transform:"translate3D(100%, 0px, 0px)"},duration:0}).wait(r.delay).queue({css:{transform:"translate3D(0px, 0px, 0px)"},duration:r.duration,timing:r.timing}).restoreStyle(),(0,p["default"])(u.toolbar).saveStyle().queue({css:{opacity:0},duration:0}).queue({css:{opacity:1},duration:r.duration,timing:r.timing}).restoreStyle(),(0,p["default"])(u.toolbarCenter).saveStyle().queue({css:{transform:"translate3d(125%, 0, 0)",opacity:1},duration:0}).wait(r.delay).queue({css:{transform:"translate3d(0, 0, 0)",opacity:1},duration:r.duration,timing:r.timing}).restoreStyle(),(0,p["default"])(u.backButtonLabel).saveStyle().queue({css:{transform:"translate3d("+l.title+"px, 0, 0)",opacity:0},duration:0}).wait(r.delay).queue({css:{transform:"translate3d(0, 0, 0)",opacity:1,transition:"opacity "+r.duration+"s linear, transform "+r.duration+"s "+r.timing},duration:r.duration}).restoreStyle(),(0,p["default"])(u.other).saveStyle().queue({css:{opacity:0},duration:0}).wait(r.delay).queue({css:{opacity:1},duration:r.duration,timing:"linear"}).restoreStyle(),(0,p["default"])([s.content,s.bottomToolbar,s.background]).saveStyle().queue({css:{transform:"translate3D(0, 0, 0)",opacity:1},duration:0}).wait(r.delay).queue({css:{transform:"translate3D(-25%, 0px, 0px)",opacity:.9},duration:r.duration,timing:r.timing}).restoreStyle().queue(function(t){r.backgroundMask.remove(),o(),i(),t()}),(0,p["default"])(s.toolbarCenter).saveStyle().queue({css:{transform:"translate3d(0, 0, 0)",opacity:1},duration:0}).wait(r.delay).queue({css:{transform:"translate3d(-"+l.title+"px, 0, 0)",opacity:0,transition:"opacity "+r.duration+"s linear, transform "+r.duration+"s "+r.timing},duration:r.duration}).restoreStyle(),(0,p["default"])(s.backButtonLabel).saveStyle().queue({css:{transform:"translate3d(0, 0, 0)",opacity:1},duration:0}).wait(r.delay).queue({css:{transform:"translate3d(-"+l.label+"px, 0, 0)",opacity:0},duration:r.duration,timing:r.timing}).restoreStyle(),(0,p["default"])(s.other).saveStyle().queue({css:{opacity:1},duration:0}).wait(r.delay).queue({css:{opacity:0},duration:r.duration,timing:"linear"}).restoreStyle()):p["default"].runAll((0,p["default"])(t).saveStyle().queue({css:{transform:"translate3D(100%, 0px, 0px)"},duration:0}).wait(r.delay).queue({css:{transform:"translate3D(0px, 0px, 0px)"},duration:r.duration,timing:r.timing}).restoreStyle(),(0,p["default"])(n).saveStyle().queue({css:{transform:"translate3D(0, 0, 0)",opacity:1},duration:0}).wait(r.delay).queue({css:{transform:"translate3D(-25%, 0px, 0px)",opacity:.9},duration:r.duration,timing:r.timing}).restoreStyle().queue(function(t){r.backgroundMask.remove(),o(),i(),t()}))})}},{key:"pop",value:function(t,n,i){var r=this;this.backgroundMask.remove(),t.parentNode.insertBefore(this.backgroundMask,t);var o=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,t),a=d["default"].findToolbarPage(t)||t,u=d["default"].findToolbarPage(n)||n,l=this._decompose(a),c=this._decompose(u),f=this._calculateDelta(n,c),h=this._shouldAnimateToolbar(a,u);h?p["default"].runAll((0,p["default"])([l.content,l.bottomToolbar,l.background]).saveStyle().queue({css:{transform:"translate3D(-25%, 0px, 0px)",opacity:.9},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0px, 0px, 0px)",opacity:1},duration:this.duration,timing:this.timing}).restoreStyle(),(0,p["default"])(l.toolbarCenter).saveStyle().queue({css:{transform:"translate3d(-"+f.title+"px, 0, 0)",opacity:0},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(0, 0, 0)",opacity:1,transition:"opacity "+this.duration+"s linear, transform "+this.duration+"s "+this.timing},duration:this.duration}).restoreStyle(),(0,p["default"])(l.backButtonLabel).saveStyle().queue({css:{transform:"translate3d(-"+f.label+"px, 0, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(0, 0, 0)"},duration:this.duration,timing:this.timing}).restoreStyle(),(0,p["default"])(l.other).saveStyle().queue({css:{opacity:0},duration:0}).wait(this.delay).queue({css:{opacity:1},duration:this.duration,timing:"linear"}).restoreStyle(),(0,p["default"])([c.content,c.bottomToolbar,c.background]).queue({css:{transform:"translate3D(0px, 0px, 0px)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(100%, 0px, 0px)"},duration:this.duration,timing:this.timing}).wait(0).queue(function(t){r.backgroundMask.remove(),o(),i(),t()}),(0,p["default"])(c.toolbar).queue({css:{opacity:1},duration:0}).queue({css:{opacity:0},duration:this.duration,timing:this.timing}),(0,p["default"])(c.toolbarCenter).queue({css:{transform:"translate3d(0, 0, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(125%, 0, 0)"},duration:this.duration,timing:this.timing}),(0,p["default"])(c.backButtonLabel).queue({css:{transform:"translate3d(0, 0, 0)",opacity:1},duration:0}).wait(this.delay).queue({css:{transform:"translate3d("+f.title+"px, 0, 0)",opacity:0,transition:"opacity "+this.duration+"s linear, transform "+this.duration+"s "+this.timing},duration:this.duration})):p["default"].runAll((0,p["default"])(t).saveStyle().queue({css:{transform:"translate3D(-25%, 0px, 0px)",opacity:.9},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0px, 0px, 0px)",opacity:1},duration:this.duration,timing:this.timing}).restoreStyle(),(0,p["default"])(n).queue({css:{transform:"translate3D(0px, 0px, 0px)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(100%, 0px, 0px)"},duration:this.duration,timing:this.timing}).queue(function(t){r.backgroundMask.remove(),o(),i(),t()}))}}]),e}(c["default"]);e["default"]=b,t.exports=e["default"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t.slice(1,-1)},r=function(t){return t.startsWith("{")&&t.endsWith("}")},o=function(t){return t.startsWith("[")&&t.endsWith("]")},a=function(t){return t.startsWith("'")&&t.endsWith("'")||t.startsWith('"')&&t.endsWith('"')},u=function(t,e,n){throw new Error("Unexpected token '"+t+"' at position "+(n.length-e.length-1)+" in string: '"+n+"'")},s=function(t,e,n){return"true"===t||"false"===t?"true"===t:a(t)?i(t):isNaN(t)?r(t)?c(i(t)):o(t)?f(i(t)):void u(t,e,n):+t},l=function(t){t=t.trimLeft();var e=t.length;if(":"===t[0]||","===t[0])e=1;else if("{"===t[0]||"["===t[0]){for(var n=t.charCodeAt(0),i=1,r=1;r<t.length;r++)if(t.charCodeAt(r)===n)i++;else if(t.charCodeAt(r)===n+2&&(i--,0===i)){e=r+1;break}}else if("'"===t[0]||'"'===t[0]){for(var o=1;o<t.length;o++)if(t[o]===t[0]){e=o+1;break}}else for(var a=1;a<t.length;a++)if([" ",",",":"].indexOf(t[a])!==-1){e=a;break}return t.slice(0,e)},c=function(t){var e=function(t){return/^[A-Z_\$][A-Z0-9_\$]*$/i.test(t)};t=t.trim();for(var n=t,r={},o=!0,c=void 0,f=void 0,d=void 0;t.length>0;)if(f=d,
d=l(t),t=t.slice(d.length,t.length).trimLeft(),":"===d&&(!o||!f||","===f)||","===d&&o||":"!==d&&","!==d&&f&&","!==f&&":"!==f)u(d,t,n);else if(":"===d&&o&&f){if(f=a(f)?i(f):f,!e(f))throw new Error("Invalid key token '"+f+"' at position 0 in string: '"+n+"'");c=f,o=!1}else","===d&&!o&&f&&(r[c]=s(f,t,n),o=!0);return d&&(r[c]=s(d,t,n)),r},f=function(t){t=t.trim();for(var e=t,n=[],i=void 0,r=void 0;t.length>0;)i=r,r=l(t),t=t.slice(r.length,t.length).trimLeft(),","!==r||i&&","!==i?","===r&&n.push(s(i,t,e)):u(r,t,e);return r&&(","!==r?n.push(s(r,t,e)):u(r,t,e)),n},d=function(t){if(t=t.trim(),r(t))return c(i(t));if(o(t))return f(i(t));throw new Error("Provided string must be object or array like: "+t)};e["default"]=d,t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0}),n.LazyRepeatProvider=n.LazyRepeatDelegate=void 0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=i(0),c=r(l),f=i(6),d=r(f),h=n.LazyRepeatDelegate=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(a(this,t),"object"!==("undefined"==typeof e?"undefined":u(e))||null===e)throw Error('"delegate" parameter must be an object.');if(this._userDelegate=e,!(n instanceof Element)&&null!==n)throw Error('"templateElement" parameter must be an instance of Element or null.');this._templateElement=n}return s(t,[{key:"hasRenderFunction",value:function(){return this._userDelegate._render instanceof Function}},{key:"_render",value:function(){this._userDelegate._render.apply(this._userDelegate,arguments)}},{key:"loadItemElement",value:function(t,e){if(this._userDelegate.loadItemElement instanceof Function)this._userDelegate.loadItemElement(t,e);else{var n=this._userDelegate.createItemContent(t,this._templateElement);if(!(n instanceof Element))throw Error("createItemContent() must return an instance of Element.");e({element:n})}}},{key:"countItems",value:function(){var t=this._userDelegate.countItems();if("number"!=typeof t)throw Error("countItems() must return a number.");return t}},{key:"updateItem",value:function(t,e){this._userDelegate.updateItemContent instanceof Function&&this._userDelegate.updateItemContent(t,e)}},{key:"calculateItemHeight",value:function(t){if(this._userDelegate.calculateItemHeight instanceof Function){var e=this._userDelegate.calculateItemHeight(t);if("number"!=typeof e)throw Error("calculateItemHeight() must return a number.");return e}return 0}},{key:"destroyItem",value:function(t,e){this._userDelegate.destroyItem instanceof Function&&this._userDelegate.destroyItem(t,e)}},{key:"destroy",value:function(){this._userDelegate.destroy instanceof Function&&this._userDelegate.destroy(),this._userDelegate=this._templateElement=null}},{key:"itemHeight",get:function(){return this._userDelegate.itemHeight}}]),t}();n.LazyRepeatProvider=function(){function t(e,n){if(a(this,t),!(n instanceof h))throw Error('"delegate" parameter must be an instance of LazyRepeatDelegate.');if(this._wrapperElement=e,this._delegate=n,this._insertIndex=this._wrapperElement.children[0]&&"ONS-LAZY-REPEAT"===this._wrapperElement.children[0].tagName?1:0,"ons-list"===e.tagName.toLowerCase()&&e.classList.add("lazy-list"),this._pageContent=this._findPageContentElement(e),!this._pageContent)throw new Error("ons-lazy-repeat must be a descendant of an <ons-page> or an element.");this.lastScrollTop=this._pageContent.scrollTop,this.padding=0,this._topPositions=[0],this._renderedItems={},this._delegate.itemHeight||this._delegate.calculateItemHeight(0)||(this._unknownItemHeight=!0),this._addEventListeners(),this._onChange()}return s(t,[{key:"_findPageContentElement",value:function(t){var e=c["default"].findParent(t,".page__content");if(e)return e;var n=c["default"].findParent(t,"ons-page");if(n){var i=c["default"].findChild(n,".content");if(i)return i}return null}},{key:"_checkItemHeight",value:function(t){var n=this;this._delegate.loadItemElement(0,function(i){if(!n._unknownItemHeight)throw Error("Invalid state");n._wrapperElement.appendChild(i.element);var r=function(){n._delegate.destroyItem(0,i),i.element&&i.element.remove(),delete n._unknownItemHeight,t()};if(n._itemHeight=i.element.offsetHeight,n._itemHeight>0)return void r();var o=n._wrapperElement.style.visibility;n._wrapperElement.style.visibility="hidden",i.element.style.visibility="hidden",e(function(){if(n._itemHeight=i.element.offsetHeight,0==n._itemHeight)throw Error("Invalid state: this._itemHeight must be greater than zero.");n._wrapperElement.style.visibility=o,r()})})}},{key:"_countItems",value:function(){return this._delegate.countItems()}},{key:"_getItemHeight",value:function(t){return this._renderedItems.hasOwnProperty(t)?(this._renderedItems[t].hasOwnProperty("height")||(this._renderedItems[t].height=this._renderedItems[t].element.offsetHeight),this._renderedItems[t].height):this._topPositions[t+1]&&this._topPositions[t]?this._topPositions[t+1]-this._topPositions[t]:this.staticItemHeight||this._delegate.calculateItemHeight(t)}},{key:"_calculateRenderedHeight",value:function(){var t=this;return Object.keys(this._renderedItems).reduce(function(e,n){return e+t._getItemHeight(+n)},0)}},{key:"_onChange",value:function(){this._render()}},{key:"_lastItemRendered",value:function(){return Math.max.apply(Math,o(Object.keys(this._renderedItems)))}},{key:"_firstItemRendered",value:function(){return Math.min.apply(Math,o(Object.keys(this._renderedItems)))}},{key:"refresh",value:function(){var t=Math.min(this._lastItemRendered(),this._countItems()-1),e=this._firstItemRendered();this._wrapperElement.style.height=this._topPositions[e]+this._calculateRenderedHeight()+"px",this.padding=this._topPositions[e],this._removeAllElements(),this._render({forceScrollDown:!0,forceFirstIndex:e,forceLastIndex:t}),this._wrapperElement.style.height="inherit"}},{key:"_render",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.forceScrollDown,i=void 0!==n&&n,r=e.forceFirstIndex,a=e.forceLastIndex;if(this._unknownItemHeight)return this._checkItemHeight(this._render.bind(this,arguments[0]));var u=!i&&this.lastScrollTop>this._pageContent.scrollTop;this.lastScrollTop=this._pageContent.scrollTop;for(var s={},l=this._wrapperElement.getBoundingClientRect().top,c=4*window.innerHeight-l,f=this._countItems(),d=r||Math.max(0,this._calculateStartIndex(l)-30),h=d,p=this._topPositions[h];h<f&&p<c;h++)h>=this._topPositions.length&&(this._topPositions.length+=100),this._topPositions[h]=p,p+=this._getItemHeight(h);if(this._delegate.hasRenderFunction&&this._delegate.hasRenderFunction())return this._delegate._render(d,h,function(){t.padding=t._topPositions[d]});if(u)for(var v=h-1;v>=d;v--)s[v]=!0,this._renderElement(v,u);else for(var m=a||Math.max.apply(Math,[h-1].concat(o(Object.keys(this._renderedItems)))),b=d;b<=m;b++)s[b]=!0,this._renderElement(b,u);Object.keys(this._renderedItems).forEach(function(e){return s[e]||t._removeElement(e,u)})}},{key:"_renderElement",value:function(t,e){var n=this,i=this._renderedItems[t];return i?void this._delegate.updateItem(t,i):void this._delegate.loadItemElement(t,function(i){e?(n._wrapperElement.insertBefore(i.element,n._wrapperElement.children[n._insertIndex]),n.padding=n._topPositions[t],i.height=n._topPositions[t+1]-n._topPositions[t]):n._wrapperElement.appendChild(i.element),n._renderedItems[t]=i})}},{key:"_removeElement",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t=+t;var n=this._renderedItems[t];this._delegate.destroyItem(t,n),e?this._topPositions[t+1]=void 0:this.padding=this.padding+this._getItemHeight(t),n.element.parentElement&&n.element.parentElement.removeChild(n.element),delete this._renderedItems[t]}},{key:"_removeAllElements",value:function(){var t=this;Object.keys(this._renderedItems).forEach(function(e){return t._removeElement(e)})}},{key:"_recalculateTopPositions",value:function(t,e){for(var n=t;n<=e;n++)this._topPositions[n+1]=this._topPositions[n]+this._getItemHeight(n)}},{key:"_calculateStartIndex",value:function(t){var e=this._firstItemRendered(),n=this._lastItemRendered();this._recalculateTopPositions(e,n);for(var i=0,r=this._countItems()-1;;){var o=Math.floor((i+r)/2),a=t+this._topPositions[o];if(r<i)return 0;if(a<=0&&a+this._getItemHeight(o)>0)return o;isNaN(a)||a>=0?r=o-1:i=o+1}}},{key:"_debounce",value:function(t,e,n){var i=void 0;return function(){var r=this,o=arguments,a=n&&!i;clearTimeout(i),a?t.apply(this,arguments):i=setTimeout(function(){i=null,t.apply(r,o)},e)}}},{key:"_doubleFireOnTouchend",value:function(){this._render(),this._debounce(this._render.bind(this),100)}},{key:"_addEventListeners",value:function(){c["default"].bindListeners(this,["_onChange","_doubleFireOnTouchend"]),d["default"].isIOS()&&(this._boundOnChange=this._debounce(this._boundOnChange,30)),this._pageContent.addEventListener("scroll",this._boundOnChange,!0),d["default"].isIOS()&&(this._pageContent.addEventListener("touchmove",this._boundOnChange,!0),this._pageContent.addEventListener("touchend",this._boundDoubleFireOnTouchend,!0)),window.document.addEventListener("resize",this._boundOnChange,!0)}},{key:"_removeEventListeners",value:function(){this._pageContent.removeEventListener("scroll",this._boundOnChange,!0),d["default"].isIOS()&&(this._pageContent.removeEventListener("touchmove",this._boundOnChange,!0),this._pageContent.removeEventListener("touchend",this._boundDoubleFireOnTouchend,!0)),window.document.removeEventListener("resize",this._boundOnChange,!0)}},{key:"destroy",value:function(){this._removeAllElements(),this._delegate.destroy(),this._parentElement=this._delegate=this._renderedItems=null,this._removeEventListeners()}},{key:"padding",get:function(){return parseInt(this._wrapperElement.style.paddingTop,10)},set:function(t){this._wrapperElement.style.paddingTop=t+"px"}},{key:"staticItemHeight",get:function(){return this._delegate.itemHeight||this._itemHeight}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(0),u=i(a),s=n(15),l=i(s),c=function(t){var e=[parseInt(t,10),/px/.test(t)],n=e[0],i=e[1];return i?n:Math.round(document.body.offsetWidth*n/100)},f=function(){function t(e){var n=this;r(this,t),"element ignoreSwipe isInitialState onDragCallback swipeMax swipeMin swipeMid".split(/\s+/).forEach(function(t){return n[t]=e[t]}),this.elementHandler=e.elementHandler||e.element,this.getThreshold=e.getThreshold||function(){return.5},this.getSide=e.getSide||function(){return"left"},this.handleGesture=this.handleGesture.bind(this)}return o(t,[{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element.hasAttribute("swipeable");this.gestureDetector||(this.gestureDetector=new l["default"](this.elementHandler,{dragMinDistance:1}));var e=t?"on":"off";this.gestureDetector[e]("drag dragstart dragend",this.handleGesture)}},{key:"handleGesture",value:function(t){t.gesture&&("dragstart"===t.type?this.onDragStart(t):this._ignoreDrag||("dragend"===t.type?this.onDragEnd(t):this.onDrag(t)))}},{key:"onDragStart",value:function(t){var e=this,n=function(){return"left"===e.getSide()?t.gesture.center.clientX:window.innerWidth-t.gesture.center.clientX};this._ignoreDrag=t.consumed||!u["default"].isValidGesture(t)||this.ignoreSwipe(t,n()),this._ignoreDrag||(t.consume&&t.consume(),t.consumed=!0,this._width=c(this.element.style.width||"100%"),this._startDistance=this._distance=this.isInitialState instanceof Function&&!this.isInitialState()?this._width:0,u["default"].preventScroll(this.gestureDetector))}},{key:"onDrag",value:function(t){t.stopPropagation(),t.gesture.preventDefault();var e="left"===this.getSide()?t.gesture.deltaX:-t.gesture.deltaX,n=Math.max(0,Math.min(this._width,this._startDistance+e));n!==this._distance&&(this._distance=n,this.swipeMid(this._distance,this._width))}},{key:"onDragEnd",value:function(t){t.stopPropagation();var e=t.gesture.interimDirection,n=this.getSide()!==e&&this._distance>this._width*this.getThreshold();n?this.swipeMax():this.swipeMin()}},{key:"dispose",value:function(){this.gestureDetector&&this.gestureDetector.dispose(),this.gestureDetector=this.element=this.elementHandler=null}}]),t}();e["default"]=f,t.exports=e["default"]},function(t,n,i){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=function(){function t(){r(this,t),this.queue=[]}return o(t,[{key:"add",value:function(t,n){var i=this;this.queue.push(t),1===this.queue.length&&e(this.queue[0]),n.then(function(){i.queue.shift(),i.queue.length>0&&setTimeout(i.queue[0],1e3/30)})}}]),t}();n["default"]=new a,t.exports=n["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),o=i(r),a={_variables:{},defineVariable:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t)throw new Error("Variable name must be a string.");if("string"!=typeof e&&"function"!=typeof e)throw new Error("Variable value must be a string or a function.");if(this._variables.hasOwnProperty(t)&&!n)throw new Error('"'+t+'" is already defined.');this._variables[t]=e},getVariable:function(t){return this._variables.hasOwnProperty(t)?this._variables[t]:null},removeVariable:function(t){delete this._variables[t]},getAllVariables:function(){return this._variables},_parsePart:function(t){var e=void 0,n=!1,i=0,r=[];if(0===t.length)throw new Error("Unable to parse empty string.");for(var o=0;o<t.length;o++)if(e=t.charAt(o),"$"===e&&"{"===t.charAt(o+1)){if(n)throw new Error("Nested interpolation not supported.");var a=t.substring(i,o);a.length>0&&r.push(t.substring(i,o)),i=o,n=!0}else if("}"===e){if(!n)throw new Error("} must be preceeded by ${");var u=t.substring(i,o+1);u.length>0&&r.push(t.substring(i,o+1)),i=o+1,n=!1}if(n)throw new Error("Unterminated interpolation.");return r.push(t.substring(i,t.length)),r},_replaceToken:function(t){var e=/^\${(.*?)}$/,n=t.match(e);if(n){var i=n[1].trim(),r=this.getVariable(i);if(null===r)throw new Error('Variable "'+i+'" does not exist.');if("string"==typeof r)return r;var o=r();if("string"!=typeof o)throw new Error("Must return a string.");return o}return t},_replaceTokens:function(t){return t.map(this._replaceToken.bind(this))},_parseExpression:function(t){return t.split(",").map(function(t){return t.trim()}).map(this._parsePart.bind(this)).map(this._replaceTokens.bind(this)).map(function(t){return t.join("")})},evaluate:function(t){return t?this._parseExpression(t):[]}};a.defineVariable("mobileOS",o["default"].getMobileOS()),a.defineVariable("iOSDevice",o["default"].getIOSDevice()),a.defineVariable("runtime",function(){return o["default"].isWebView()?"cordova":"browser"}),e["default"]=a,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t,e,n){e.prepend=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];var o=i.filter(function(t){return t instanceof Node&&u.isConnected(t)});n.prepend.apply(this,i);for(var a=0;a<o.length;a++)t.disconnectTree(o[a]);if(u.isConnected(this))for(var s=0;s<i.length;s++){var l=i[s];l instanceof Element&&t.connectTree(l)}},e.append=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];var o=i.filter(function(t){return t instanceof Node&&u.isConnected(t)});n.append.apply(this,i);for(var a=0;a<o.length;a++)t.disconnectTree(o[a]);if(u.isConnected(this))for(var s=0;s<i.length;s++){var l=i[s];l instanceof Element&&t.connectTree(l)}}};var o=n(11),a=(r(o),n(16)),u=i(a);t.exports=e["default"]},function(t,e,n){"use strict";t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){"use strict";var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e,n){"use strict";var i=n(24).f,r=n(74),o=n(75),a=n(35),u=n(64),s=n(36),l=n(47),c=n(48),f=n(72),d=n(196),h=n(17),p=n(73).fastKey,v=h?"_s":"size",m=function(t,e){var n,i=p(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var f=t(function(t,i){u(t,f,e,"_i"),t._i=r(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=i&&l(i,n,t[c],t)});return o(f.prototype,{clear:function(){for(var t=this,e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[v]=0},"delete":function(t){var e=this,n=m(e,t);if(n){var i=n.n,r=n.p;delete e._i[n.i],n.r=!0,r&&(r.n=i),i&&(i.p=r),e._f==n&&(e._f=i),e._l==n&&(e._l=r),e[v]--}return!!n},forEach:function(t){u(this,f,"forEach");for(var e,n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!m(this,t)}}),h&&i(f.prototype,"size",{get:function(){return s(this[v])}}),f},def:function(t,e,n){var i,r,o=m(t,e);return o?o.v=n:(t._l=o={i:r=p(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=o),i&&(i.n=o),t[v]++,"F"!==r&&(t._i[r]=o)),t},getEntry:m,setStrong:function(t,e,n){c(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?f(0,n.k):"values"==e?f(0,n.v):f(0,[n.k,n.v]):(t._t=void 0,f(1))},n?"entries":"values",!n,!0),d(e)}}},function(t,e,n){"use strict";var i=n(46),r=n(180);t.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},function(t,e,n){"use strict";var i=n(12),r=n(29),o=n(25),a=n(75),u=n(73),s=n(47),l=n(64),c=n(19),f=n(37),d=n(188),h=n(50),p=n(183);t.exports=function(t,e,n,v,m,b){var y=i[t],_=y,g=m?"set":"add",w=_&&_.prototype,k={},O=function(t){var e=w[t];o(w,t,"delete"==t?function(t){return!(b&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return b&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(b||w.forEach&&!f(function(){(new _).entries().next()}))){var E=new _,P=E[g](b?{}:-0,1)!=E,C=f(function(){E.has(1)}),x=d(function(t){new _(t)}),A=!b&&f(function(){for(var t=new _,e=5;e--;)t[g](e,e);return!t.has(-0)});x||(_=e(function(e,n){l(e,_,t);var i=p(new y,e,_);return void 0!=n&&s(n,m,i[g],i),i}),_.prototype=w,w.constructor=_),(C||A)&&(O("delete"),O("has"),m&&O("get")),(A||P)&&O(g),b&&w.clear&&delete w.clear}else _=v.getConstructor(e,t,m,g),a(_.prototype,n),u.NEED=!0;return h(_,t),k[t]=_,r(r.G+r.W+r.F*(_!=y),k),b||v.setStrong(_,t,m),_}},function(t,e,n){"use strict";var i=n(19),r=n(12).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){"use strict";t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){"use strict";t.exports=!n(17)&&!n(37)(function(){return 7!=Object.defineProperty(n(69)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=n(39)("meta"),o=n(19),a=n(18),u=n(24).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(37)(function(){return l(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++s,w:{}}})},d=function(t,e){if(!o(t))return"symbol"==("undefined"==typeof t?"undefined":i(t))?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!l(t))return"F";if(!e)return"E";f(t)}return t[r].i},h=function(t,e){if(!a(t,r)){if(!l(t))return!0;if(!e)return!1;f(t)}return t[r].w},p=function(t){return c&&v.NEED&&l(t)&&!a(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:d,getWeak:h,onFreeze:p}},function(t,e,n){"use strict";var i=n(21),r=n(190),o=n(70),a=n(51)("IE_PROTO"),u=function(){},s="prototype",l=function(){var t,e=n(69)("iframe"),i=o.length,r="<",a=">";for(e.style.display="none",n(182).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),l=t.F;i--;)delete l[s][o[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[s]=i(t),n=new u,u[s]=null,n[a]=t):n=l(),void 0===e?n:r(n,e)}},function(t,e,n){"use strict";var i=n(25);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},function(t,e,n){"use strict";var i=n(19),r=n(21),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n(35)(Function.call,n(191).f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(r){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){"use strict";var i=n(12),r="__core-js_shared__",o=i[r]||(i[r]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){"use strict";var i=n(52),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){"use strict";var i=n(19);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){"use strict";var i=n(46),r={};r[n(9)("toStringTag")]="z",r+""!="[object z]"&&n(25)(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},function(t,e,n){"use strict";var i=n(197)(!0);n(48)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";for(var i=n(201),r=n(25),o=n(12),a=n(23),u=n(30),s=n(9),l=s("iterator"),c=s("toStringTag"),f=u.Array,d=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],h=0;h<5;h++){var p,v=d[h],m=o[v],b=m&&m.prototype;if(b){b[l]||a(b,l,f),b[c]||a(b,c,v),u[v]=f;for(p in i)b[p]||r(b,p,i[p],!0)}}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(2),h=i(d),p=n(3),v=i(p),m=n(1),b=i(m),y="action-sheet-button",_={"":"action-sheet-button--*",".action-sheet-icon":"action-sheet-icon--*"},g=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,h["default"])(t,function(){return t._compile()}),t}return a(e,t),u(e,[{key:"_compile",value:function(){if(f["default"].prepare(this),this.classList.add(y),!this._icon&&this.hasAttribute("icon")){var t=l["default"].createElement('<ons-icon icon="'+this.getAttribute("icon")+'"></ons-icon>');t.classList.add("action-sheet-icon"),this.insertBefore(t,this.firstChild)}v["default"].initModifier(this,_)}},{key:"_updateIcon",value:function(){this._icon&&this._icon.setAttribute("icon",this.getAttribute("icon"))}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":l["default"].restoreClass(this,y,_);break;case"modifier":v["default"].onModifierChanged(e,n,this,_);break;case"icon":this._updateIcon()}}},{key:"_icon",get:function(){return l["default"].findChild(this,".action-sheet-icon")}}],[{key:"observedAttributes",get:function(){return["modifier","class","icon"]}}]),e}(b["default"]);e["default"]=g,customElements.define("ons-action-sheet-button",g),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=function A(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:A(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},c=n(0),f=i(c),d=n(4),h=i(d),p=n(3),v=i(p),m=n(8),b=i(m),y=n(132),_=n(6),g=i(_),w=n(20),k=i(w),O=n(2),E=i(O),P={".action-sheet":"action-sheet--*",".action-sheet-mask":"action-sheet-mask--*",".action-sheet-title":"action-sheet-title--*"},C={"default":function(){return g["default"].isAndroid()?y.MDActionSheetAnimator:y.IOSActionSheetAnimator},none:y.ActionSheetAnimator},x=function(t){function e(){o(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,E["default"])(t,function(){return t._compile()}),t}return u(e,t),s(e,[{key:"_updateAnimatorFactory",value:function(){return new b["default"]({animators:C,baseClass:y.ActionSheetAnimator,baseClassName:"ActionSheetAnimator",defaultAnimation:this.getAttribute("animation")})}},{key:"_compile",value:function(){if(h["default"].prepare(this),this.style.display="none",this.style.zIndex=10001,!this._sheet){var t=document.createElement("div");for(t.classList.add("action-sheet");this.firstChild;)t.appendChild(this.firstChild);this.appendChild(t)}if(!this._title&&this.hasAttribute("title")){var e=document.createElement("div");e.innerHTML=this.getAttribute("title"),e.classList.add("action-sheet-title"),this._sheet.insertBefore(e,this._sheet.firstChild)}if(!this._mask){var n=document.createElement("div");n.classList.add("action-sheet-mask"),this.insertBefore(n,this.firstChild)}this._sheet.style.zIndex=20001,this._mask.style.zIndex=2e4,v["default"].initModifier(this,this._scheme)}},{key:"_updateTitle",value:function(){this._title&&(this._title.innerHTML=this.getAttribute("title"))}},{key:"attributeChangedCallback",value:function(t,n,i){"title"===t?this._updateTitle():l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attributeChangedCallback",this).call(this,t,n,i)}},{key:"_scheme",get:function(){return P}},{key:"_mask",get:function(){return f["default"].findChild(this,".action-sheet-mask")}},{key:"_sheet",get:function(){return f["default"].findChild(this,".action-sheet")}},{key:"_title",get:function(){return this.querySelector(".action-sheet-title")}}],[{key:"registerAnimator",value:function(t,e){if(!(e.prototype instanceof y.ActionSheetAnimator))throw new Error('"Animator" param must inherit OnsActionSheetElement.ActionSheetAnimator');C[t]=e}},{key:"observedAttributes",get:function(){return[].concat(r(l(e.__proto__||Object.getPrototypeOf(e),"observedAttributes",this)),["title"])}},{key:"animators",get:function(){return C}},{key:"ActionSheetAnimator",get:function(){return y.ActionSheetAnimator}}]),e}(k["default"]);e["default"]=x,customElements.define("ons-action-sheet",x),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(1),v=i(p),m="alert-dialog-button",b={"":"alert-dialog-button--*"},y=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t}return a(e,t),u(e,[{key:"_compile",value:function(){f["default"].prepare(this),this.classList.add(m),l["default"].updateRipple(this,void 0,{modifier:"light-gray"}),h["default"].initModifier(this,b)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":l["default"].restoreClass(this,m,b);break;case"modifier":h["default"].onModifierChanged(e,n,this,b)}}},{key:"disabled",set:function(t){return l["default"].toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}(v["default"]);e["default"]=y,customElements.define("ons-alert-dialog-button",y),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(8),v=i(p),m=n(133),b=n(6),y=i(b),_=n(20),g=i(_),w=n(2),k=i(w),O={".alert-dialog":"alert-dialog--*",".alert-dialog-container":"alert-dialog-container--*",".alert-dialog-title":"alert-dialog-title--*",".alert-dialog-content":"alert-dialog-content--*",".alert-dialog-footer":"alert-dialog-footer--*",".alert-dialog-footer--rowfooter":"alert-dialog-footer--rowfooter--*",".alert-dialog-button--rowfooter":"alert-dialog-button--rowfooter--*",".alert-dialog-button--primal":"alert-dialog-button--primal--*",".alert-dialog-button":"alert-dialog-button--*","ons-alert-dialog-button":"alert-dialog-button--*",".alert-dialog-mask":"alert-dialog-mask--*",".text-input":"text-input--*"},E={none:m.AlertDialogAnimator,"default":function(){return y["default"].isAndroid()?m.AndroidAlertDialogAnimator:m.IOSAlertDialogAnimator},fade:function(){return y["default"].isAndroid()?m.AndroidAlertDialogAnimator:m.IOSAlertDialogAnimator}},P=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,k["default"])(t,function(){return t._compile()}),t}return a(e,t),u(e,[{key:"_updateAnimatorFactory",value:function(){return new v["default"]({animators:E,baseClass:m.AlertDialogAnimator,baseClassName:"AlertDialogAnimator",defaultAnimation:this.getAttribute("animation")})}},{key:"_compile",value:function(){f["default"].prepare(this),this.style.display="none",this.style.zIndex=10001;var t=document.createDocumentFragment();if(!this._mask&&!this._dialog)for(;this.firstChild;)t.appendChild(this.firstChild);if(!this._mask){var e=document.createElement("div");e.classList.add("alert-dialog-mask"),this.insertBefore(e,this.children[0])}if(!this._dialog){var n=document.createElement("div");n.classList.add("alert-dialog"),this.insertBefore(n,null)}if(!l["default"].findChild(this._dialog,".alert-dialog-container")){var i=document.createElement("div");i.classList.add("alert-dialog-container"),this._dialog.appendChild(i)}this._dialog.children[0].appendChild(t),this._dialog.style.zIndex=20001,this._mask.style.zIndex=2e4,h["default"].initModifier(this,this._scheme)}},{key:"_scheme",get:function(){return O}},{key:"_mask",get:function(){return l["default"].findChild(this,".alert-dialog-mask")}},{key:"_dialog",get:function(){return l["default"].findChild(this,".alert-dialog")}},{key:"_titleElement",get:function(){return l["default"].findChild(this._dialog.children[0],".alert-dialog-title")}},{key:"_contentElement",get:function(){return l["default"].findChild(this._dialog.children[0],".alert-dialog-content")}}],[{key:"registerAnimator",value:function(t,e){if(!(e.prototype instanceof m.AlertDialogAnimator))throw new Error('"Animator" param must inherit OnsAlertDialogElement.AlertDialogAnimator');E[t]=e}},{key:"animators",get:function(){return E}},{key:"AlertDialogAnimator",get:function(){return m.AlertDialogAnimator}}]),e}(g["default"]);e["default"]=P,customElements.define("ons-alert-dialog",P),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(1),v=i(p),m=n(2),b=i(m),y=n(208),_=i(y),g=n(209),w=i(g),k="back-button",O={"":"back-button--*",".back-button__icon":"back-button--*__icon",".back-button__label":"back-button--*__label"},E=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,b["default"])(t,function(){t._compile()}),t._options={},t._boundOnClick=t._onClick.bind(t),t}return a(e,t),u(e,[{key:"_updateIcon",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l["default"].findChild(this,".back-button__icon");t.innerHTML="android"===f["default"].getPlatform(this)||l["default"].hasModifier(this,"material")?w["default"]:_["default"]}},{key:"_compile",value:function(){if(f["default"].prepare(this),this.classList.add(k),!l["default"].findChild(this,".back-button__label")){for(var t=l["default"].create("span.back-button__label");this.childNodes[0];)t.appendChild(this.childNodes[0]);this.appendChild(t)}if(!l["default"].findChild(this,".back-button__icon")){var e=l["default"].create("span.back-button__icon");this._updateIcon(e),this.insertBefore(e,this.children[0])}l["default"].updateRipple(this,void 0,{center:"",size:"contain",background:"transparent"}),h["default"].initModifier(this,O)}},{key:"_onClick",value:function(){if(this.onClick)this.onClick.apply(this);else{var t=l["default"].findParent(this,"ons-navigator");t&&t.popPage(this.options)}}},{key:"connectedCallback",value:function(){this.addEventListener("click",this._boundOnClick,!1)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":l["default"].restoreClass(this,k,O);break;case"modifier":h["default"].onModifierChanged(e,n,this,O)&&this._updateIcon()}}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",this._boundOnClick,!1)}},{key:"show",value:function(){this.style.display="inline-block"}},{key:"hide",value:function(){this.style.display="none"}},{key:"options",get:function(){return this._options},set:function(t){this._options=t}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}(v["default"]);e["default"]=E,customElements.define("ons-back-button",E),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=(i(c),n(3)),d=i(f),h=n(1),p=i(h),v="bottom-bar",m={"":"bottom-bar--*"},b=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.classList.add(v),d["default"].initModifier(t,m),t}return a(e,t),u(e,[{key:"connectedCallback",value:function(){l["default"].match(this.parentNode,"ons-page")&&this.parentNode.classList.add("page-with-bottom-toolbar")}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":l["default"].restoreClass(this,v,m);break;case"modifier":d["default"].onModifierChanged(e,n,this,m)}}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}(p["default"]);e["default"]=b,customElements.define("ons-bottom-toolbar",b),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(1),v=i(p),m={"":"button--*"},b="button",y=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t}return a(e,t),u(e,[{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":l["default"].restoreClass(this,b,m);break;case"modifier":h["default"].onModifierChanged(e,n,this,m);break;case"ripple":this._updateRipple()}}},{key:"_compile",value:function(){f["default"].prepare(this),this.classList.add(b),this._updateRipple(),h["default"].initModifier(this,m)}},{key:"_updateRipple",value:function(){l["default"].updateRipple(this)}},{key:"disabled",set:function(t){return l["default"].toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}}],[{key:"observedAttributes",get:function(){return["modifier","ripple","class"]}}]),e}(v["default"]);e["default"]=y,customElements.define("ons-button",y),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(1),v=i(p),m=n(2),b=i(m),y="card",_={"":"card--*",".card__title":"card--*__title",".card__content":"card--*__content"},g=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,b["default"])(t,function(){t._compile()}),t}return a(e,t),u(e,[{key:"_compile",value:function(){for(var t=void 0,e=void 0,n=0;n<this.children.length;n++){var i=this.children[n];i.classList.contains("title")?(i.classList.add("card__title"),t=i):i.classList.contains("content")&&(i.classList.add("card__content"),e=i)}f["default"].prepare(this),this.classList.add(y),h["default"].initModifier(this,_)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":l["default"].restoreClass(this,y,_);break;case"modifier":h["default"].onModifierChanged(e,n,this,_)}}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}(v["default"]);e["default"]=g,customElements.define("ons-card",g),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=(i(s),n(1)),c=i(l),f=n(3),d=i(f),h={"":"carousel-item--*"},p=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.style.width="100%",d["default"].initModifier(t,h),t}return a(e,t),u(e,[{key:"attributeChangedCallback",value:function(t,e,n){if("modifier"===t)return d["default"].onModifierChanged(e,n,this,h)}}],[{key:"observedAttributes",get:function(){return["modifier"]}}]),e}(c["default"]);e["default"]=p,customElements.define("ons-carousel-item",p),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=n(0),c=i(l),f=n(1),d=i(f),h=n(2),p=i(h),v=n(43),m=i(v),b=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,p["default"])(t,function(){return t._compile()}),t}return a(e,t),s(e,[{key:"_compile",value:function(){var t=this.children[0]&&"ONS-CAROUSEL-ITEM"!==this.children[0].tagName&&this.children[0]||document.createElement("div");if(!t.parentNode){for(;this.firstChild;)t.appendChild(this.firstChild);this.appendChild(t)}!this.children[1]&&this.appendChild(document.createElement("div")),this.appendChild=this.appendChild.bind(t),this.insertBefore=this.insertBefore.bind(t)}},{key:"connectedCallback",value:function(){var t=this;this._swiper||(this._swiper=new m["default"]({getElement:function(){return t},getInitialIndex:function(){return t.getAttribute("initial-index")},getAutoScrollRatio:function(){return t.autoScrollRatio},isVertical:function(){return t.vertical},isOverScrollable:function(){return t.overscrollable},isCentered:function(){return t.centered},isAutoScrollable:function(){return t.autoScroll},itemSize:this.itemSize,overScrollHook:this._onOverScroll.bind(this),preChangeHook:this._onChange.bind(this,"prechange"),postChangeHook:this._onChange.bind(this,"postchange"),refreshHook:this._onRefresh.bind(this),scrollHook:this._onSwipe}),(0,p["default"])(this,function(){return t._swiper.init({swipeable:t.hasAttribute("swipeable"),autoRefresh:t.hasAttribute("auto-refresh")})}))}},{key:"disconnectedCallback",value:function(){this._swiper&&this._swiper.initialized&&(this._swiper.dispose(),this._swiper=null)}},{key:"attributeChangedCallback",value:function(t,e,n){if(this._swiper)switch(t){case"swipeable":this._swiper.updateSwipeable(this.hasAttribute("swipeable"));break;case"auto-refresh":this._swiper.updateAutoRefresh(this.hasAttribute("auto-refresh"));break;case"item-height":this.vertical&&this._swiper.updateItemSize(this.itemSize);break;case"item-width":this.vertical||this._swiper.updateItemSize(this.itemSize);break;case"direction":this._swiper.refresh()}}},{key:"_show",value:function(){this._swiper.show()}},{key:"_hide",value:function(){this._swiper.hide()}},{key:"_onOverScroll",value:function(t){var e=t.direction,n=t.killOverScroll,i=!1;return c["default"].triggerElementEvent(this,"overscroll",{carousel:this,activeIndex:this.getActiveIndex(),direction:e,waitToReturn:function(t){i=!0,t.then(n)}}),i}},{key:"_onChange",value:function(t,e){var n=e.activeIndex,i=e.lastActiveIndex;c["default"].triggerElementEvent(this,t,{carousel:this,activeIndex:n,lastActiveIndex:i})}},{key:"_onRefresh",value:function(){c["default"].triggerElementEvent(this,"refresh",{carousel:this})}},{key:"setActiveIndex",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n&&"object"!=("undefined"==typeof n?"undefined":u(n)))throw new Error("options must be an object. You supplied "+n);return n.animation=n.animation||this.getAttribute("animation"),n.animationOptions=c["default"].extend({duration:.3,timing:"cubic-bezier(.4, .7, .5, 1)"},n.animationOptions||{},this.hasAttribute("animation-options")?c["default"].animationOptionsParse(this.getAttribute("animation-options")):{}),this._swiper.setActiveIndex(t,n).then(function(){return n.callback instanceof Function&&n.callback(e),Promise.resolve(e)})}},{key:"getActiveIndex",value:function(){return this._swiper.getActiveIndex()}},{key:"next",value:function(t){return this.setActiveIndex(this.getActiveIndex()+1,t)}},{key:"prev",value:function(t){return this.setActiveIndex(this.getActiveIndex()-1,t)}},{key:"first",value:function(t){return this.setActiveIndex(0,t)}},{key:"last",value:function(t){this.setActiveIndex(Math.max(this.itemCount-1,0),t)}},{key:"refresh",value:function(){this._swiper.refresh()}},{key:"itemCount",get:function(){return this._swiper.itemCount}},{key:"swipeable",get:function(){return this.hasAttribute("swipeable")},set:function(t){return c["default"].toggleAttribute(this,"swipeable",t)}},{key:"onSwipe",get:function(){return this._onSwipe},set:function(t){if(t&&!(t instanceof Function))throw new Error("'onSwipe' must be a function.");this._onSwipe=t}},{key:"autoScroll",get:function(){return this.hasAttribute("auto-scroll")},set:function(t){return c["default"].toggleAttribute(this,"auto-scroll",t)}},{key:"vertical",get:function(){return"vertical"===this.getAttribute("direction")}},{key:"itemSize",get:function(){var t=(this.getAttribute("item-"+(this.vertical?"height":"width"))||"").trim();return t.match(/^\d+(px|%)$/)?t:"100%"}},{key:"autoScrollRatio",get:function(){return parseFloat(this.getAttribute("auto-scroll-ratio"))},set:function(t){this.setAttribute("auto-scroll-ratio",t)}},{key:"disabled",get:function(){return this.hasAttribute("disabled")},set:function(t){return c["default"].toggleAttribute(this,"disabled",t)}},{key:"overscrollable",get:function(){return this.hasAttribute("overscrollable")},set:function(t){return c["default"].toggleAttribute(this,"overscrollable",t)}},{key:"centered",get:function(){return this.hasAttribute("centered")},set:function(t){return c["default"].toggleAttribute(this,"centered",t)}}],[{key:"observedAttributes",get:function(){return["swipeable","auto-refresh","direction","item-height","item-width"]}},{key:"events",get:function(){return["postchange","refresh","overscroll"]}}]),e}(d["default"]);e["default"]=b,customElements.define("ons-carousel",b),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(40),l=i(s),c={".checkbox":"checkbox--*",".checkbox__input":"checkbox--*__input",".checkbox__checkmark":"checkbox--*__checkmark"},f=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"_scheme",get:function(){return c}},{key:"_defaultClassName",get:function(){return"checkbox"}},{key:"type",get:function(){return"checkbox"}}]),e}(l["default"]);e["default"]=f,customElements.define("ons-checkbox",f),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(14),l=i(s),c=n(1),f=i(c),d=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.getAttribute("width")&&t._updateWidth(),t}return a(e,t),u(e,[{key:"attributeChangedCallback",value:function(t,e,n){"width"===t&&this._updateWidth()}},{key:"_updateWidth",value:function(){var t=this.getAttribute("width");t?(t=t.trim().match(/^\d+$/)?t+"%":t,(0,l["default"])(this,{flex:"0 0 "+t,maxWidth:t})):l["default"].clear(this,"flex maxWidth")}}],[{key:"observedAttributes",get:function(){return["width"]}}]),e}(f["default"]);e["default"]=d,customElements.define("ons-col",d),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(8),v=i(p),m=n(134),b=n(6),y=i(b),_=n(20),g=i(_),w=n(2),k=i(w),O={".dialog":"dialog--*",".dialog-container":"dialog-container--*",".dialog-mask":"dialog-mask--*"},E={"default":function(){return y["default"].isAndroid()?m.AndroidDialogAnimator:m.IOSDialogAnimator},slide:m.SlideDialogAnimator,none:m.DialogAnimator},P=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,k["default"])(t,function(){return t._compile()}),t}return a(e,t),u(e,[{key:"_updateAnimatorFactory",value:function(){return new v["default"]({animators:E,baseClass:m.DialogAnimator,baseClassName:"DialogAnimator",defaultAnimation:this.getAttribute("animation")})}},{key:"_compile",value:function(){if(f["default"].prepare(this),this.style.display="none",this.style.zIndex=10001,!this._dialog){var t=document.createElement("div");t.classList.add("dialog");var e=document.createElement("div");for(e.classList.add("dialog-container");this.firstChild;)e.appendChild(this.firstChild);t.appendChild(e),this.appendChild(t)}if(!this._mask){var n=document.createElement("div");n.classList.add("dialog-mask"),this.insertBefore(n,this.firstChild)}this._dialog.style.zIndex=20001,this._mask.style.zIndex=2e4,this.setAttribute("status-bar-fill",""),h["default"].initModifier(this,this._scheme)}},{key:"_scheme",get:function(){return O}},{key:"_mask",get:function(){return l["default"].findChild(this,".dialog-mask")}},{key:"_dialog",get:function(){return l["default"].findChild(this,".dialog")}}],[{key:"registerAnimator",value:function(t,e){if(!(e.prototype instanceof m.DialogAnimator))throw new Error('"Animator" param must inherit OnsDialogElement.DialogAnimator');E[t]=e}},{key:"animators",get:function(){return E}},{key:"DialogAnimator",get:function(){return m.DialogAnimator}}]),e}(g["default"]);e["default"]=P,customElements.define("ons-dialog",P),t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=i(0),c=r(l),f=i(14),d=r(f),h=i(4),p=r(h),v=i(3),m=r(v),b=i(1),y=r(b),_=i(2),g=r(_),w="fab",k={"":"fab--*",".fab__icon":"fab--*__icon"},O=function(t){function n(){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.hide(),t.classList.add(w),(0,g["default"])(t,function(){t._compile()}),t}return u(n,t),s(n,[{key:"_compile",value:function(){if(p["default"].prepare(this),!c["default"].findChild(this,".fab__icon")){var t=document.createElement("span");t.classList.add("fab__icon"),c["default"].arrayFrom(this.childNodes).forEach(function(e){e.tagName&&"ons-ripple"===e.tagName.toLowerCase()||t.appendChild(e)}),this.appendChild(t)}this._updateRipple(),m["default"].initModifier(this,k),this._updatePosition()}},{key:"connectedCallback",value:function(){var t=this;e(function(){return t.show()})}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":c["default"].restoreClass(this,w,k);break;case"modifier":m["default"].onModifierChanged(e,n,this,k);break;case"ripple":this._updateRipple();break;case"position":this._updatePosition()}}},{key:"_show",value:function(){this.show()}},{key:"_hide",value:function(){var t=this;e(function(){return t.hide()})}},{key:"_updateRipple",value:function(){c["default"].updateRipple(this)}},{key:"_updatePosition",value:function(){var t=this.getAttribute("position");switch(this.classList.remove("fab--top__left","fab--bottom__right","fab--bottom__left","fab--top__right","fab--top__center","fab--bottom__center"),t){case"top right":case"right top":this.classList.add("fab--top__right");break;case"top left":case"left top":this.classList.add("fab--top__left");break;case"bottom right":case"right bottom":this.classList.add("fab--bottom__right");break;case"bottom left":case"left bottom":this.classList.add("fab--bottom__left");break;case"center top":case"top center":this.classList.add("fab--top__center");break;case"center bottom":case"bottom center":this.classList.add("fab--bottom__center")}}},{key:"show",value:function(){this.toggle(!0)}},{key:"hide",value:function(){this.toggle(!1)}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.visible,e=(this.getAttribute("position")||"").indexOf("bottom")>=0,n=e?"translate3d(0px, -"+(c["default"].globals.fabOffset||0)+"px, 0px)":"";(0,d["default"])(this,{transform:n+" scale("+Number(t)+")"})}},{key:"disabled",set:function(t){return c["default"].toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}},{key:"visible",get:function(){return this.style.transform.indexOf("scale(0)")===-1&&"none"!==this.style.display}}],[{key:"observedAttributes",get:function(){return["modifier","ripple","position","class"]}}]),n}(y["default"]);n["default"]=O,customElements.define("ons-fab",O),t.exports=n["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(1),s=i(u),l=n(15),c=i(l),f=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._gestureDetector=new c["default"](t),t}return a(e,t),e}(s["default"]);e["default"]=f,customElements.define("ons-gesture-detector",f),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{
value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(1),h=i(d),p=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t}return a(e,t),u(e,[{key:"attributeChangedCallback",value:function(t,e,n){this._update()}},{key:"_compile",value:function(){f["default"].prepare(this),this._update()}},{key:"_update",value:function(){var t=this;this._cleanClassAttribute();var e=this._buildClassAndStyle(this._getAttribute("icon"),this._getAttribute("size")),n=e.classList,i=e.style;l["default"].extend(this.style,i),n.forEach(function(e){return t.classList.add(e)})}},{key:"_getAttribute",value:function(t){var e=(this.getAttribute(t)||"").split(/\s*,\s*/),n=e[0],i=e[1];return i=(i||"").split(/\s*:\s*/),(l["default"].hasModifier(this,i[0])?i[1]:n)||""}},{key:"_cleanClassAttribute",value:function(){var t=this;l["default"].arrayFrom(this.classList).filter(function(t){return/^(fa$|fa-|ion-|zmdi-)/.test(t)}).forEach(function(e){return t.classList.remove(e)}),this.classList.remove("zmdi"),this.classList.remove("ons-icon--ion")}},{key:"_buildClassAndStyle",value:function(t,e){var n=["ons-icon"],i={};return 0===t.indexOf("ion-")?(n.push(t),n.push("ons-icon--ion")):0===t.indexOf("fa-")?(n.push(t),n.push("fa")):0===t.indexOf("md-")?(n.push("zmdi"),n.push("zmdi-"+t.split(/\-(.+)?/)[1])):(n.push("fa"),n.push("fa-"+t)),e.match(/^[1-5]x|lg$/)?(n.push("fa-"+e),this.style.removeProperty("font-size")):i.fontSize=e,{classList:n,style:i}}}],[{key:"observedAttributes",get:function(){return["icon","size","modifier","class"]}}]),e}(h["default"]);e["default"]=p,customElements.define("ons-icon",p),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(44),l=i(s),c=n(6),f=i(c),d=n(1),h=i(d),p=n(2),v=i(p),m=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,v["default"])(t,function(){if(null!==f["default"]._getSelectedPlatform())t._platformUpdate();else if(!t._isAllowedPlatform()){for(;t.childNodes[0];)t.childNodes[0].remove();t._platformUpdate()}}),t._onOrientationChange(),t}return a(e,t),u(e,[{key:"connectedCallback",value:function(){l["default"].on("change",this._onOrientationChange.bind(this))}},{key:"attributeChangedCallback",value:function(t){"orientation"===t&&this._onOrientationChange()}},{key:"disconnectedCallback",value:function(){l["default"].off("change",this._onOrientationChange)}},{key:"_platformUpdate",value:function(){this.style.display=this._isAllowedPlatform()?"":"none"}},{key:"_isAllowedPlatform",value:function(){return!this.getAttribute("platform")||this.getAttribute("platform").split(/\s+/).indexOf(f["default"].getMobileOS())>=0}},{key:"_onOrientationChange",value:function(){if(this.hasAttribute("orientation")&&this._isAllowedPlatform()){var t=this.getAttribute("orientation").toLowerCase(),e=l["default"].isPortrait()?"portrait":"landscape";this.style.display=t===e?"":"none"}}}],[{key:"observedAttributes",get:function(){return["orientation"]}}]),e}(h["default"]);e["default"]=m,customElements.define("ons-if",m),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=function y(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:y(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},c=n(31),f=i(c),d=n(2),h=i(d),p=n(0),v=i(p),m={".text-input":"text-input--*",".text-input__label":"text-input--*__label"},b=function(t){function e(){o(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._boundOnInput=t._update.bind(t),t._boundOnFocusin=t._update.bind(t),t}return u(e,t),s(e,[{key:"_update",value:function(){this._updateLabel(),this._updateLabelClass()}},{key:"_updateLabel",value:function(){var t=this.getAttribute("placeholder")||"";"undefined"!=typeof this._helper.textContent?this._helper.textContent=t:this._helper.innerText=t}},{key:"_updateLabelClass",value:function(){""===this.value?this._helper.classList.remove("text-input--material__label--active"):this._helper.classList.add("text-input--material__label--active")}},{key:"connectedCallback",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"connectedCallback",this).call(this),(0,h["default"])(this,function(){t._input.addEventListener("input",t._boundOnInput),t._input.addEventListener("focusin",t._boundOnFocusin)});var n=this.getAttribute("type");["checkbox","radio"].indexOf(n)>=0&&v["default"].warn('Warn: <ons-input type="'+n+'"> is deprecated since v2.4.0. Use <ons-'+n+"> instead.")}},{key:"disconnectedCallback",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"disconnectedCallback",this).call(this),(0,h["default"])(this,function(){t._input.removeEventListener("input",t._boundOnInput),t._input.removeEventListener("focusin",t._boundOnFocusin)})}},{key:"attributeChangedCallback",value:function(t,n,i){var r=this;switch(t){case"type":(0,h["default"])(this,function(){return r._input.setAttribute("type",r.type)});break;default:l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attributeChangedCallback",this).call(this,t,n,i)}}},{key:"_scheme",get:function(){return m}},{key:"_template",get:function(){return'\n      <input type="'+this.type+'" class="text-input">\n      <span class="text-input__label"></span>\n    '}},{key:"type",get:function(){var t=this.getAttribute("type");return["checkbox","radio"].indexOf(t)<0&&t||"text"}},{key:"_helper",get:function(){return this.querySelector("span")}}],[{key:"observedAttributes",get:function(){return[].concat(r(l(e.__proto__||Object.getPrototypeOf(e),"observedAttributes",this)),["type"])}}]),e}(f["default"]);e["default"]=b,customElements.define("ons-input",b),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(1),l=i(s),c=n(0),f=(i(c),n(59)),d=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"connectedCallback",value:function(){this.hasAttribute("delegate")&&(this.delegate=window[this.getAttribute("delegate")])}},{key:"refresh",value:function(){this._lazyRepeatProvider&&this._lazyRepeatProvider.refresh()}},{key:"attributeChangedCallback",value:function(t,e,n){}},{key:"disconnectedCallback",value:function(){this._lazyRepeatProvider&&(this._lazyRepeatProvider.destroy(),this._lazyRepeatProvider=null)}},{key:"delegate",set:function(t){this._lazyRepeatProvider&&this._lazyRepeatProvider.destroy(),!this._templateElement&&this.children[0]&&(this._templateElement=this.removeChild(this.children[0]));var e=new f.LazyRepeatDelegate(t,this._templateElement||null);this._lazyRepeatProvider=new f.LazyRepeatProvider(this.parentElement,e)},get:function(){throw new Error("This property can only be used to set the delegate object.")}}]),e}(l["default"]);e["default"]=d,customElements.define("ons-lazy-repeat",d),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(1),v=i(p),m="list-header",b={"":"list-header--*"},y=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t}return a(e,t),u(e,[{key:"_compile",value:function(){f["default"].prepare(this),this.classList.add(m),h["default"].initModifier(this,b)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":l["default"].restoreClass(this,m,b);break;case"modifier":h["default"].onModifierChanged(e,n,this,b)}}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}(v["default"]);e["default"]=y,customElements.define("ons-list-header",y),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(14),f=i(c),d=n(4),h=i(d),p=n(3),v=i(p),m=n(1),b=i(m),y=n(2),_=i(y),g="list-item",w={".list-item":"list-item--*",".list-item__left":"list-item--*__left",".list-item__center":"list-item--*__center",".list-item__right":"list-item--*__right",".list-item__label":"list-item--*__label",".list-item__title":"list-item--*__title",".list-item__subtitle":"list-item--*__subtitle",".list-item__thumbnail":"list-item--*__thumbnail",".list-item__icon":"list-item--*__icon"},k=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,_["default"])(t,function(){t._compile()}),t}return a(e,t),u(e,[{key:"_compile",value:function(){h["default"].prepare(this),this.classList.add(g);for(var t=void 0,e=void 0,n=void 0,i=0;i<this.children.length;i++){var r=this.children[i];r.classList.contains("left")?(r.classList.add("list-item__left"),t=r):r.classList.contains("center")?e=r:r.classList.contains("right")&&(r.classList.add("list-item__right"),n=r)}if(!e){if(e=document.createElement("div"),t||n)for(var o=this.childNodes.length-1;o>=0;o--){var a=this.childNodes[o];a!==t&&a!==n&&e.insertBefore(a,e.firstChild)}else for(;this.childNodes[0];)e.appendChild(this.childNodes[0]);this.insertBefore(e,n||null)}e.classList.add("center"),e.classList.add("list-item__center"),l["default"].updateRipple(this),v["default"].initModifier(this,w)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":l["default"].restoreClass(this,g,w);break;case"modifier":v["default"].onModifierChanged(e,n,this,w);break;case"ripple":l["default"].updateRipple(this)}}},{key:"connectedCallback",value:function(){this._setupListeners(!0),this._originalBackgroundColor=this.style.backgroundColor,this.tapped=!1}},{key:"disconnectedCallback",value:function(){this._setupListeners(!1)}},{key:"_setupListeners",value:function(t){var e=(t?"add":"remove")+"EventListener";this[e]("drag",this._onDrag),this[e]("touchstart",this._onTouch),this[e]("mousedown",this._onTouch),this[e]("touchend",this._onRelease),this[e]("touchmove",this._onRelease),this[e]("touchcancel",this._onRelease),this[e]("mouseup",this._onRelease),this[e]("mouseout",this._onRelease),this[e]("touchleave",this._onRelease)}},{key:"_onDrag",value:function(t){var e=t.gesture;this.hasAttribute("lock-on-drag")&&["left","right"].indexOf(e.direction)>-1&&e.preventDefault()}},{key:"_onTouch",value:function(){if(!this.tapped){this.tapped=!0;var t={transition:"background-color 0.0s linear 0.02s, box-shadow 0.0s linear 0.02s"};this.hasAttribute("tappable")&&(this.style.backgroundColor&&(this._originalBackgroundColor=this.style.backgroundColor),t.backgroundColor=this.getAttribute("tap-background-color")||"#d9d9d9",t.boxShadow="0px -1px 0px 0px "+t.backgroundColor),(0,f["default"])(this,t)}}},{key:"_onRelease",value:function(){this.tapped=!1,this.style.backgroundColor=this._originalBackgroundColor||"",f["default"].clear(this,"transition boxShadow")}}],[{key:"observedAttributes",get:function(){return["modifier","class","ripple"]}}]),e}(b["default"]);e["default"]=k,customElements.define("ons-list-item",k),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(1),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(0),v=i(p),m="list-title",b={"":"list-title--*"},y=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t}return a(e,t),u(e,[{key:"_compile",value:function(){f["default"].prepare(this),this.classList.add(m),h["default"].initModifier(this,b)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":v["default"].restoreClass(this,m,b);break;case"modifier":h["default"].onModifierChanged(e,n,this,b)}}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}(l["default"]);e["default"]=y,customElements.define("ons-list-title",y),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(1),v=i(p),m="list",b={"":"list--*"},y=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t}return a(e,t),u(e,[{key:"_compile",value:function(){f["default"].prepare(this),this.classList.add(m),h["default"].initModifier(this,b)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":l["default"].restoreClass(this,m,b);break;case"modifier":h["default"].onModifierChanged(e,n,this,b)}}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}(v["default"]);e["default"]=y,customElements.define("ons-list",y),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=function T(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:T(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},c=n(0),f=i(c),d=n(3),h=i(d),p=n(8),v=i(p),m=n(41),b=i(m),y=n(135),_=i(y),g=n(136),w=i(g),k=n(6),O=(i(k),n(20)),E=i(O),P=n(2),C=i(P),x={"":"modal--*",modal__content:"modal--*__content"},A="modal",S={"default":b["default"],fade:_["default"],lift:w["default"],none:b["default"]},j=function(t){function e(){o(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._defaultDBB=function(){},(0,C["default"])(t,function(){return t._compile()}),t}return u(e,t),s(e,[{key:"_updateAnimatorFactory",value:function(){return new v["default"]({animators:S,baseClass:b["default"],baseClassName:"ModalAnimator",defaultAnimation:this.getAttribute("animation")})}},{key:"_compile",value:function(){if(this.style.display="none",this.style.zIndex=10001,this.classList.add(A),!f["default"].findChild(this,".modal__content")){var t=document.createElement("div");for(t.classList.add("modal__content");this.childNodes[0];){var e=this.childNodes[0];this.removeChild(e),t.insertBefore(e,null)}this.appendChild(t)}h["default"].initModifier(this,this._scheme)}},{key:"_toggleStyle",value:function(t){this.style.display=t?"table":"none"}},{key:"connectedCallback",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"connectedCallback",this).call(this),this.addEventListener("touchmove",l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_preventScroll",this),!1)}},{key:"disconnectedCallback",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("touchmove",l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_preventScroll",this),!1)}},{key:"attributeChangedCallback",value:function(t,n,i){"class"===t?f["default"].restoreClass(this,A,x):l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attributeChangedCallback",this).call(this,t,n,i)}},{key:"_scheme",get:function(){return x}}],[{key:"registerAnimator",value:function(t,e){if(!(e.prototype instanceof b["default"]))throw new Error('"Animator" param must inherit OnsModalElement.ModalAnimator');S[t]=e}},{key:"observedAttributes",get:function(){return[].concat(r(l(e.__proto__||Object.getPrototypeOf(e),"observedAttributes",this)),["class"])}},{key:"animators",get:function(){return S}},{key:"ModalAnimator",get:function(){return b["default"]}}]),e}(E["default"]);e["default"]=j,customElements.define("ons-modal",j),t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=i(0),f=r(c),d=i(7),h=r(d),p=i(60),v=r(p),m=i(8),b=r(m),y=i(13),_=r(y),g=i(57),w=r(g),k=i(139),O=r(k),E=i(138),P=r(E),C=i(137),x=r(C),A=i(142),S=r(A),j=i(141),T=r(j),M=i(140),L=r(M),D=i(143),I=r(D),N=i(6),R=r(N),B=i(2),q=r(B),H=i(1),F=r(H),z=i(27),V=r(z),$=i(28),U={"default":function(){return R["default"].isAndroid()?L["default"]:w["default"]},slide:function(){return R["default"].isAndroid()?S["default"]:w["default"]},lift:function(){return R["default"].isAndroid()?T["default"]:P["default"]},fade:function(){return R["default"].isAndroid()?L["default"]:x["default"]},"slide-ios":w["default"],"slide-md":S["default"],"lift-ios":P["default"],"lift-md":T["default"],"fade-ios":x["default"],"fade-md":L["default"],none:I["default"]},W={ready:function(t,e){e()}},X=function(t){function n(){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t._isRunning=!1,t._initialized=!1,t._pageLoader=$.defaultPageLoader,t._pageMap=new WeakMap,t._updateAnimatorFactory(),t}return u(n,t),l(n,[{key:"animatorFactory",get:function(){return this._animatorFactory}}]),l(n,[{key:"_getPageTarget",value:function(){return this._page||this.getAttribute("page")}},{key:"connectedCallback",value:function(){var t=this;if(this.onDeviceBackButton=this._onDeviceBackButton.bind(this),R["default"].isAndroid()&&"force"!==this.getAttribute("swipeable")||(this._swipeAnimator=new O["default"],this._swipe=new v["default"]({element:this,swipeMax:function(){return t[t.swipeMax?"swipeMax":"popPage"]({animator:t._swipeAnimator})},swipeMid:function(e,n){return t._swipeAnimator.translate(e,n,t.topPage.previousElementSibling,t.topPage)},swipeMin:function(){return t._swipeAnimator.restore(t.topPage.previousElementSibling,t.topPage)},getThreshold:function(){return Math.max(.2,parseFloat(t.getAttribute("swipe-threshold"))||0)},ignoreSwipe:function(e,n){if(/ons-back-button/i.test(e.target.tagName)||f["default"].findParent(e.target,"ons-back-button",function(t){return/ons-page/i.test(t.tagName)}))return!0;var i=parseInt(t.getAttribute("swipe-target-width")||25,10);return"right"!==e.gesture.direction||i<=n||t._isRunning||t.children.length<=1}}),this.attributeChangedCallback("swipeable")),!this._initialized){this._initialized=!0;var e=f["default"].defer();this.loaded=e.promise,W.ready(this,function(){var n=!f["default"].hasAnyComponentAsParent(t),i={animation:"none",show:n};if(0===t.pages.length&&t._getPageTarget())t.pushPage(t._getPageTarget(),i).then(function(){return e.resolve()});else if(t.pages.length>0){for(var r=0;r<t.pages.length;r++)if("ONS-PAGE"!==t.pages[r].nodeName)throw new Error("The children of <ons-navigator> need to be of type <ons-page>");t.topPage&&(0,q["default"])(t.topPage,function(){return setTimeout(function(){e.resolve(),n&&t.topPage._show(),t._updateLastPageBackButton()},0)})}else(0,q["default"])(t,function(){0===t.pages.length&&t._getPageTarget()?t.pushPage(t._getPageTarget(),i).then(function(){return e.resolve()}):e.resolve()})})}}},{key:"_updateAnimatorFactory",value:function(){this._animatorFactory=new b["default"]({animators:U,baseClass:_["default"],baseClassName:"NavigatorTransitionAnimator",defaultAnimation:this.getAttribute("animation")})}},{key:"disconnectedCallback",value:function(){this._backButtonHandler.destroy(),this._backButtonHandler=null,this._swipe&&this._swipe.dispose(),this._swipe=this._swipeAnimator=null}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"animation":this._updateAnimatorFactory();break;case"swipeable":this._swipe&&this._swipe.update()}}},{key:"popPage",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._preparePageAndOptions(null,e);e=n.options;var i=function(){return new Promise(function(e){t._pageLoader.unload(t.pages[t.pages.length-1]),e()})};return this._popPage(e,i)}},{key:"_popPage",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return Promise.resolve()};if(this._isRunning)return Promise.reject("popPage is already running.");if(this.pages.length<=1)return Promise.reject("ons-navigator's page stack is empty.");if(this._emitPrePopEvent())return Promise.reject("Canceled in prepop event.");var i=this.pages.length;return this._isRunning=!0,this.pages[i-2].updateBackButton(i-2>0),new Promise(function(r){var o=e.pages[i-1],a=e.pages[i-2];t.animation=t.animation||(o.pushedOptions?o.pushedOptions.animation:void 0),t.animationOptions=f["default"].extend({},o.pushedOptions?o.pushedOptions.animationOptions:{},t.animationOptions||{}),t.data&&(a.data=f["default"].extend({},a.data||{},t.data||{}));var u=function(){n().then(function(){e._isRunning=!1,a._show(),f["default"].triggerElementEvent(e,"postpop",{leavePage:o,enterPage:a,navigator:e}),"function"==typeof t.callback&&t.callback(),r(a)})};o._hide();var s=t.animator||e._animatorFactory.newAnimator(t);s.pop(e.pages[i-2],e.pages[i-1],u)})["catch"](function(){return e._isRunning=!1})}},{key:"pushPage",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._preparePageAndOptions(t,n);t=i.page,n=i.options;var r=function(i){e._verifyPageElement(i),e._pageMap.set(i,t),i=f["default"].extend(i,{data:n.data}),i.style.visibility="hidden"};return n.pageHTML?this._pushPage(n,function(){return new Promise(function(t){$.instantPageLoader.load({page:n.pageHTML,parent:e,params:n.data},function(e){r(e),t()})})}):this._pushPage(n,function(){return new Promise(function(i){e._pageLoader.load({page:t,parent:e,params:n.data},function(t){r(t),i()})})})}},{key:"_pushPage",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return Promise.resolve()};if(this._isRunning)return Promise.reject("pushPage is already running.");if(this._emitPrePushEvent())return Promise.reject("Canceled in prepush event.");this._isRunning=!0;var r=b["default"].parseAnimationOptionsString(this.getAttribute("animation-options"));n=f["default"].extend({},this.options||{},{animationOptions:r},n);var o=this._animatorFactory.newAnimator(n);return i().then(function(){var i=t.pages.length,r=t.pages[i-1],a=n.leavePage||t.pages[i-2];if("ONS-PAGE"!==r.nodeName)throw new Error("Only elements of type <ons-page> can be pushed to the navigator");return r.updateBackButton(i>(n._replacePage?2:1)),r.pushedOptions=f["default"].extend({},r.pushedOptions||{},n||{}),r.data=f["default"].extend({},r.data||{},n.data||{}),r.unload=r.unload||n.unload,new Promise(function(i){var u=function(){t._isRunning=!1,n.show!==!1&&e(function(){return r._show()}),f["default"].triggerElementEvent(t,"postpush",{leavePage:a,enterPage:r,navigator:t}),"function"==typeof n.callback&&n.callback(),i(r)};r.style.visibility="",a?(a._hide(),o.push(r,a,u)):u()})})["catch"](function(e){throw t._isRunning=!1,e})}},{key:"replacePage",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.pushPage(t,n).then(function(t){return e.pages.length>1&&e._pageLoader.unload(e.pages[e.pages.length-2]),e._updateLastPageBackButton(),Promise.resolve(t)})}},{key:"insertPage",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._preparePageAndOptions(e,i);if(e=r.page,i=r.options,t=this._normalizeIndex(t),t>=this.pages.length)return this.pushPage(e,i);e="string"==typeof i.pageHTML?i.pageHTML:e;var o="string"==typeof i.pageHTML?$.instantPageLoader:this._pageLoader;return new Promise(function(r){o.load({page:e,parent:n},function(o){n._verifyPageElement(o),n._pageMap.set(o,e),o=f["default"].extend(o,{data:i.data,pushedOptions:i}),i.animationOptions=f["default"].extend({},b["default"].parseAnimationOptionsString(n.getAttribute("animation-options")),i.animationOptions||{}),
n.insertBefore(o,n.pages[t]),n.topPage.updateBackButton(!0),setTimeout(function(){o=null,r(n.pages[t])},1e3/60)})})}},{key:"removePage",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=this._normalizeIndex(t),t<this.pages.length-1?new Promise(function(n){var i=e.pages[t],r=e.topPage;e._pageMap["delete"](i),e._pageLoader.unload(i),1===e.pages.length&&e.topPage.updateBackButton(!1),n(r)}):this.popPage(n)}},{key:"resetToPage",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._preparePageAndOptions(t,n);t=i.page,n=i.options,n.animator||n.animation||(n.animation="none");var r=n.callback;return n.callback=function(){for(;e.pages.length>1;)e._pageLoader.unload(e.pages[0]);e.pages[0].updateBackButton(!1),r&&r()},n.page||n.pageHTML||!this._getPageTarget()||(t=n.page=this._getPageTarget()),this.pushPage(t,n)}},{key:"bringPageTop",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(["number","string"].indexOf("undefined"==typeof t?"undefined":s(t))===-1)throw new Error("First argument must be a page name or the index of an existing page. You supplied "+t);var n="number"==typeof t?this._normalizeIndex(t):this._lastIndexOfPage(t),i=this.pages[n];if(n<0)return this.pushPage(t,e);var r=this._preparePageAndOptions(i,e);if(e=r.options,n===this.pages.length-1)return Promise.resolve(i);if(!i)throw new Error("Failed to find item "+t);return this._isRunning?Promise.reject("pushPage is already running."):this._emitPrePushEvent()?Promise.reject("Canceled in prepush event."):(i.style.visibility="hidden",i.parentNode.appendChild(i),this._pushPage(e))}},{key:"_preparePageAndOptions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!=("undefined"==typeof e?"undefined":s(e)))throw new Error("options must be an object. You supplied "+e);return null!==t&&void 0!==t||!e.page||(t=e.page),e=f["default"].extend({},this.options||{},e,{page:t}),{page:t,options:e}}},{key:"_updateLastPageBackButton",value:function(){var t=this.pages.length-1;t>=0&&this.pages[t].updateBackButton(t>0)}},{key:"_normalizeIndex",value:function(t){return t>=0?t:Math.abs(this.pages.length+t)%this.pages.length}},{key:"_onDeviceBackButton",value:function(t){this.pages.length>1?this.popPage():t.callParentHandler()}},{key:"_lastIndexOfPage",value:function(t){var e=void 0;for(e=this.pages.length-1;e>=0;e--){if(!this._pageMap.has(this.pages[e]))throw Error("This is bug.");if(t===this._pageMap.get(this.pages[e]))break}return e}},{key:"_emitPreEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1;return f["default"].triggerElementEvent(this,"pre"+t,f["default"].extend({navigator:this,currentPage:this.pages[this.pages.length-1],cancel:function(){return n=!0}},e)),n}},{key:"_emitPrePushEvent",value:function(){return this._emitPreEvent("push")}},{key:"_emitPrePopEvent",value:function(){var t=this.pages.length;return this._emitPreEvent("pop",{leavePage:this.pages[t-1],enterPage:this.pages[t-2]})}},{key:"_createPageElement",value:function(t){var e=f["default"].createElement(h["default"].normalizePageHTML(t));return this._verifyPageElement(e),e}},{key:"_verifyPageElement",value:function(t){if("ons-page"!==t.nodeName.toLowerCase())throw new Error('You must supply an "ons-page" element to "ons-navigator".')}},{key:"_show",value:function(){var t=this;this.loaded.then(function(){return t.topPage&&t.topPage._show()})}},{key:"_hide",value:function(){this.topPage&&this.topPage._hide()}},{key:"_destroy",value:function(){for(var t=this.pages.length-1;t>=0;t--)this._pageLoader.unload(this.pages[t]);this.remove()}},{key:"pageLoader",get:function(){return this._pageLoader},set:function(t){if(!(t instanceof $.PageLoader))throw Error("First parameter must be an instance of PageLoader.");this._pageLoader=t}},{key:"page",get:function(){return this._page},set:function(t){this._page=t}},{key:"onDeviceBackButton",get:function(){return this._backButtonHandler},set:function(t){this._backButtonHandler&&this._backButtonHandler.destroy(),this._backButtonHandler=V["default"].createHandler(this,t)}},{key:"topPage",get:function(){for(var t=this.lastElementChild;t&&"ONS-PAGE"!==t.tagName;)t=t.previousElementSibling;return t}},{key:"pages",get:function(){return f["default"].arrayFrom(this.children).filter(function(t){return"ONS-PAGE"===t.tagName})}},{key:"options",get:function(){return this._options},set:function(t){this._options=t}},{key:"_isRunning",set:function(t){this.setAttribute("_is-running",t?"true":"false")},get:function(){return JSON.parse(this.getAttribute("_is-running"))}}],[{key:"registerAnimator",value:function(t,e){if(!(e.prototype instanceof _["default"]))throw new Error('"Animator" param must inherit NavigatorElement.NavigatorTransitionAnimator');U[t]=e}},{key:"observedAttributes",get:function(){return["animation","swipeable"]}},{key:"animators",get:function(){return U}},{key:"NavigatorTransitionAnimator",get:function(){return _["default"]}},{key:"events",get:function(){return["prepush","postpush","prepop","postpop"]}},{key:"rewritables",get:function(){return W}}]),n}(F["default"]);n["default"]=X,customElements.define("ons-navigator",X),t.exports=n["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=i(0),c=r(l),f=i(7),d=r(f),h=i(4),p=r(h),v=i(3),m=r(v),b=i(1),y=r(b),_=i(27),g=r(_),w=i(2),k=r(w);i(56);var O="page",E={"":"page--*",".page__content":"page--*__content",".page__background":"page--*__background"},P=function(t){function n(){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t._deriveHooks(),t.classList.add(O),t._initialized=!1,t._contentObserver=new MutationObserver(function(){t._tryToSuppressLayerCreation()}),(0,k["default"])(t,function(){t._compile(),t._isShown=!1,t._contentElement=t._getContentElement(),t._backgroundElement=t._getBackgroundElement(),t._contentObserver.observe(t._contentElement,{childList:!0}),t._tryToSuppressLayerCreation()}),t}return u(n,t),s(n,[{key:"_tryToSuppressLayerCreation",value:function(){if(this._contentElement){var t=this._contentElement,e=new Set(["ons-navigator","ons-page","ons-tabbar","ons-splitter"]),n=1===t.children.length&&e.has(t.children[0].nodeName.toLowerCase());n?t.classList.add("page__content--suppress-layer-creation"):t.classList.remove("page__content--suppress-layer-creation")}}},{key:"_compile",value:function(){var t=this;p["default"].prepare(this);var e=c["default"].findChild(this,"ons-toolbar"),n=c["default"].findChild(this,".page__background")||c["default"].findChild(this,".background")||document.createElement("div");n.classList.add("page__background"),this.insertBefore(n,!e&&this.firstChild||e&&e.nextSibling);var i=c["default"].findChild(this,".page__content")||c["default"].findChild(this,".content")||document.createElement("div");i.classList.add("page__content"),i.parentElement||c["default"].arrayFrom(this.childNodes).forEach(function(e){(1!==e.nodeType||t._elementShouldBeMoved(e))&&i.appendChild(e)}),this._tryToFillStatusBar(i),this.insertBefore(i,n.nextSibling),n.style.backgroundColor||e&&c["default"].hasModifier(e,"transparent")||1!==i.children.length||!c["default"].isPageControl(i.children[0])||(n.style.backgroundColor="transparent"),m["default"].initModifier(this,E)}},{key:"_elementShouldBeMoved",value:function(t){if(t.classList.contains("page__background"))return!1;var e=t.tagName.toLowerCase();if("ons-fab"===e)return!t.hasAttribute("position");var n=["script","ons-toolbar","ons-bottom-toolbar","ons-modal","ons-speed-dial","ons-dialog","ons-alert-dialog","ons-popover","ons-action-sheet"];return t.hasAttribute("inline")||n.indexOf(e)===-1}},{key:"_tryToFillStatusBar",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._contentElement;d["default"].autoStatusBarFill(function(){c["default"].toggleAttribute(t,"status-bar-fill",!c["default"].findParent(t,function(t){return t.hasAttribute("status-bar-fill")})&&(t._canAnimateToolbar(e)||!c["default"].findChild(e,c["default"].isPageControl)))})}},{key:"_canAnimateToolbar",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._contentElement;return!!c["default"].findChild(this,"ons-toolbar")||!!c["default"].findChild(t,function(t){return c["default"].match(t,"ons-toolbar")&&!t.hasAttribute("inline")})}},{key:"connectedCallback",value:function(){var t=this;c["default"].isAttached(this)&&(0,k["default"])(this,function(){t._tryToFillStatusBar(),t.hasAttribute("on-infinite-scroll")&&t.attributeChangedCallback("on-infinite-scroll",null,t.getAttribute("on-infinite-scroll")),t._initialized||(t._initialized=!0,e(function(){t.onInit&&t.onInit(),c["default"].triggerElementEvent(t,"init")}),c["default"].hasAnyComponentAsParent(t)||e(function(){return t._show()}))})}},{key:"updateBackButton",value:function(t){this.backButton&&(t?this.backButton.show():this.backButton.hide())}},{key:"_onScroll",value:function(){var t=this,e=this._contentElement,n=(e.scrollTop+e.clientHeight)/e.scrollHeight>=this._infiniteScrollLimit;this._onInfiniteScroll&&!this._loadingContent&&n&&(this._loadingContent=!0,this._onInfiniteScroll(function(){return t._loadingContent=!1}))}},{key:"_getContentElement",value:function(){var t=c["default"].findChild(this,".page__content");if(t)return t;throw Error('fail to get ".page__content" element.')}},{key:"_getBackgroundElement",value:function(){var t=c["default"].findChild(this,".page__background");if(t)return t;throw Error('fail to get ".page__background" element.')}},{key:"_getBottomToolbarElement",value:function(){return c["default"].findChild(this,"ons-bottom-toolbar")||d["default"].nullElement}},{key:"_getToolbarElement",value:function(){return c["default"].findChild(this,"ons-toolbar")||document.createElement("ons-toolbar")}},{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"class":c["default"].restoreClass(this,O,E);break;case"modifier":m["default"].onModifierChanged(e,n,this,E);break;case"on-infinite-scroll":null===n?this.onInfiniteScroll=null:this.onInfiniteScroll=function(t){var e=c["default"].findFromPath(n);i.onInfiniteScroll=e,e(t)}}}},{key:"_show",value:function(){!this._isShown&&c["default"].isAttached(this)&&(this._isShown=!0,this.onShow&&this.onShow(),c["default"].triggerElementEvent(this,"show"),c["default"].propagateAction(this,"_show"))}},{key:"_hide",value:function(){this._isShown&&(this._isShown=!1,this.onHide&&this.onHide(),c["default"].triggerElementEvent(this,"hide"),c["default"].propagateAction(this,"_hide"))}},{key:"_destroy",value:function(){this._hide(),this.onDestroy&&this.onDestroy(),c["default"].triggerElementEvent(this,"destroy"),this.onDeviceBackButton&&this.onDeviceBackButton.destroy(),c["default"].propagateAction(this,"_destroy"),this.remove()}},{key:"_deriveHooks",value:function(){var t=this;this.constructor.events.forEach(function(e){var n="on"+e.charAt(0).toUpperCase()+e.slice(1);Object.defineProperty(t,n,{enumerable:!0,get:function(){return t["_"+n]},set:function(e){if(!(e instanceof Function))throw new Error(n+" hook must be a function");t["_"+n]=e.bind(t)}})})}},{key:"name",set:function(t){this.setAttribute("name",t)},get:function(){return this.getAttribute("name")}},{key:"backButton",get:function(){return this.querySelector("ons-back-button")}},{key:"onInfiniteScroll",set:function(t){var n=this;if(t&&!(t instanceof Function))throw new Error("onInfiniteScroll must be a function or null");(0,k["default"])(this,function(){t?n._onInfiniteScroll||(n._infiniteScrollLimit=.9,n._boundOnScroll=n._onScroll.bind(n),e(function(){return n._contentElement.addEventListener("scroll",n._boundOnScroll)})):n._contentElement.removeEventListener("scroll",n._boundOnScroll),n._onInfiniteScroll=t})},get:function(){return this._onInfiniteScroll}},{key:"onDeviceBackButton",get:function(){return this._backButtonHandler},set:function(t){this._backButtonHandler&&this._backButtonHandler.destroy(),this._backButtonHandler=g["default"].createHandler(this,t)}},{key:"scrollTop",get:function(){return this._contentElement.scrollTop},set:function(t){this._contentElement.scrollTop=t}}],[{key:"observedAttributes",get:function(){return["modifier","on-infinite-scroll","class"]}},{key:"events",get:function(){return["init","show","hide","destroy"]}}]),n}(y["default"]);n["default"]=P,customElements.define("ons-page",P),t.exports=n["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),d=function D(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:D(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},h=i(0),p=r(h),v=i(4),m=r(v),b=i(3),y=r(b),_=i(8),g=r(_),w=i(144),k=i(6),O=r(k),E=i(33),P=r(E),C=i(20),x=r(C),A=i(2),S=r(A),j={".popover":"popover--*",".popover-mask":"popover-mask--*",".popover__content":"popover--*__content",".popover__arrow":"popover--*__arrow"},T={"default":function(){return O["default"].isAndroid()?w.MDFadePopoverAnimator:w.IOSFadePopoverAnimator},none:w.PopoverAnimator,"fade-ios":w.IOSFadePopoverAnimator,"fade-md":w.MDFadePopoverAnimator},M={up:"bottom",left:"right",down:"top",right:"left"},L=(Object.keys(M),function(t){function n(){a(this,n);var t=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t._boundOnChange=t._onChange.bind(t),(0,S["default"])(t,function(){t._compile(),t.style.display="none"}),t}return s(n,t),f(n,[{key:"_updateAnimatorFactory",value:function(){return new g["default"]({animators:T,baseClass:w.PopoverAnimator,baseClassName:"PopoverAnimator",defaultAnimation:this.getAttribute("animation")||"default"})}},{key:"_toggleStyle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?(this.style.display="block",this._currentTarget=e.target,this._positionPopover(e.target)):(this.style.display="none",this._clearStyles())}},{key:"_positionPopover",value:function(t){var e=this._radius,n=this._content,i=this._margin,r=P["default"].getSafeAreaLengths(),o=P["default"].getSafeAreaDOMRect(),a=t.getBoundingClientRect(),u=p["default"].hasModifier(this,"material"),s=u&&this.hasAttribute("cover-target"),l={top:a.top-(o.top+i),left:a.left-(o.left+i),bottom:o.bottom-i-a.bottom,right:o.right-i-a.right},c={top:a.top+Math.round(a.height/2)-(o.top+i),left:a.left+Math.round(a.width/2)-(o.left+i),bottom:o.bottom-i-a.bottom+Math.round(a.height/2),right:o.right-i-a.right+Math.round(a.width/2)},f=this._calculateDirections(l),d=f.vertical,h=f.primary,v=f.secondary;this._currentDirection=h,p["default"].addModifier(this,h);var m=d?"width":"height",b=function(t){return{width:parseInt(t.getPropertyValue("width"),10),height:parseInt(t.getPropertyValue("height"),10)}}(window.getComputedStyle(n)),y=s?0:(d?a.height:a.width)+(u?0:14),_=Math.max(r[h]+i,r[h]+i+l[h]+y),g=Math.max(r[v]+i,r[v]+i+c[v]-b[m]/2);this._popover.style[h]=_+"px",this._popover.style[v]=g+"px",this._arrow.style[v]=Math.max(e,r[v]+i+c[v]-g)+"px"}},{key:"_calculateDirections",value:function(t){var e=(this.getAttribute("direction")||"up down left right").split(/\s+/).map(function(t){return M[t]}),n=e.sort(function(e,n){return t[e]-t[n]})[0],i="top"==n||"bottom"==n,r=void 0;return r=i?t.left<t.right?"left":"right":t.top<t.bottom?"top":"bottom",{vertical:i,primary:n,secondary:r}}},{key:"_clearStyles",value:function(){var t=this;this._currentDirection=null,["top","bottom","left","right"].forEach(function(e){t._arrow.style[e]=t._content.style[e]=t._popover.style[e]="",p["default"].removeModifier(t,e)})}},{key:"_onChange",value:function(){var t=this;e(function(){t._currentTarget&&t._positionPopover(t._currentTarget)})}},{key:"_compile",value:function(){if(m["default"].prepare(this),!this._popover||!this._mask){var t=this._popover&&this._content;if(t){if(!this._mask){var e=document.createElement("div");e.classList.add("popover-mask"),this.insertBefore(e,this.firstChild)}if(!this._arrow){var n=document.createElement("div");n.classList.add("popover__arrow"),this._popover.appendChild(n)}}else{for(var i=p["default"].createFragment('\n        <div class="popover-mask"></div>\n        <div class="popover">\n          <div class="popover__content"></div>\n          <div class="popover__arrow"></div>\n        </div>\n      '),r=i.querySelector(".popover__content");this.childNodes[0];)r.appendChild(this.childNodes[0]);this.appendChild(i)}this.hasAttribute("style")&&(this._popover.setAttribute("style",this.getAttribute("style")),this.removeAttribute("style")),y["default"].initModifier(this,this._scheme)}}},{key:"show",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=!t||"object"!==("undefined"==typeof t?"undefined":c(t))||t instanceof Event||t instanceof HTMLElement?l({},e,{target:t}):l({},t),"string"==typeof e.target?e.target=document.querySelector(e.target):e.target instanceof Event&&(e.target=e.target.target),"undefined"==typeof e.target)throw new Error("A target or options.target argument must be defined for the popover.");if(!(e.target instanceof HTMLElement))throw new Error("Invalid target for popover.");return d(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"show",this).call(this,e)}},{key:"connectedCallback",value:function(){var t=this;d(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"connectedCallback",this).call(this),window.addEventListener("resize",this._boundOnChange,!1),this._margin=this._margin||parseInt(window.getComputedStyle(this).getPropertyValue("top")),this._margin=this._margin||6,(0,S["default"])(this,function(){t._radius=parseInt(window.getComputedStyle(t._content).getPropertyValue("border-top-left-radius"))})}},{key:"disconnectedCallback",value:function(){d(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"disconnectedCallback",this).call(this),window.removeEventListener("resize",this._boundOnChange,!1)}},{key:"attributeChangedCallback",value:function(t,e,i){return"direction"===t?this._boundOnChange():("modifier"===t&&this._currentDirection&&p["default"].addModifier(this,this._currentDirection),void d(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"attributeChangedCallback",this).call(this,t,e,i))}},{key:"_scheme",get:function(){return j}},{key:"_mask",get:function(){return p["default"].findChild(this,".popover-mask")}},{key:"_popover",get:function(){return p["default"].findChild(this,".popover")}},{key:"_content",get:function(){return p["default"].findChild(this._popover,".popover__content")}},{key:"_arrow",get:function(){return p["default"].findChild(this._popover,".popover__arrow")}}],[{key:"registerAnimator",value:function(t,e){if(!(e.prototype instanceof w.PopoverAnimator))throw new Error('"Animator" param must inherit PopoverAnimator');T[t]=e}},{key:"observedAttributes",get:function(){return[].concat(o(d(n.__proto__||Object.getPrototypeOf(n),"observedAttributes",this)),["direction"])}},{key:"animators",get:function(){return T}},{key:"PopoverAnimator",get:function(){return w.PopoverAnimator}}]),n}(x["default"]));n["default"]=L,customElements.define("ons-popover",L),t.exports=n["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(1),v=i(p),m=n(2),b=i(m),y={".progress-bar":"progress-bar--*",".progress-bar__primary":"progress-bar--*__primary",".progress-bar__secondary":"progress-bar--*__secondary"},_=l["default"].createElement('\n  <div class="progress-bar">\n    <div class="progress-bar__secondary"></div>\n    <div class="progress-bar__primary"></div>\n  </div>\n'),g="indeterminate",w=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,b["default"])(t,function(){return t._compile()}),t}return a(e,t),u(e,[{key:"_compile",value:function(){this._isCompiled()?this._template=l["default"].findChild(this,".progress-bar"):this._template=_.cloneNode(!0),this._primary=l["default"].findChild(this._template,".progress-bar__primary"),this._secondary=l["default"].findChild(this._template,".progress-bar__secondary"),this._updateDeterminate(),this._updateValue(),this.appendChild(this._template),f["default"].prepare(this),h["default"].initModifier(this,y)}},{key:"_isCompiled",value:function(){if(!l["default"].findChild(this,".progress-bar"))return!1;var t=l["default"].findChild(this,".progress-bar");return!!l["default"].findChild(t,".progress-bar__secondary")&&!!l["default"].findChild(t,".progress-bar__primary")}},{key:"attributeChangedCallback",value:function(t,e,n){"modifier"===t?(h["default"].onModifierChanged(e,n,this,y),this.hasAttribute(g)&&this._updateDeterminate()):"value"===t||"secondary-value"===t?this._updateValue():t===g&&this._updateDeterminate()}},{key:"_updateDeterminate",value:function(){var t=this;(0,b["default"])(this,function(){return l["default"].toggleModifier(t,g,{force:t.hasAttribute(g)})})}},{key:"_updateValue",value:function(){var t=this;(0,b["default"])(this,function(){t._primary.style.width=t.hasAttribute("value")?t.getAttribute("value")+"%":"0%",t._secondary.style.width=t.hasAttribute("secondary-value")?t.getAttribute("secondary-value")+"%":"0%"})}},{key:"value",set:function(t){if("number"!=typeof t||t<0||t>100)throw new Error("Invalid value");this.setAttribute("value",Math.floor(t))},get:function(){return parseInt(this.getAttribute("value")||"0")}},{key:"secondaryValue",set:function(t){if("number"!=typeof t||t<0||t>100)throw new Error("Invalid value");this.setAttribute("secondary-value",Math.floor(t))},get:function(){return parseInt(this.getAttribute("secondary-value")||"0")}},{key:"indeterminate",set:function(t){t?this.setAttribute(g,""):this.removeAttribute(g)},get:function(){return this.hasAttribute(g)}}],[{key:"observedAttributes",get:function(){return["modifier","value","secondary-value",g]}}]),e}(v["default"]);e["default"]=w,customElements.define("ons-progress-bar",w),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(1),v=i(p),m=n(2),b=i(m),y={".progress-circular":"progress-circular--*",".progress-circular__background":"progress-circular--*__background",".progress-circular__primary":"progress-circular--*__primary",".progress-circular__secondary":"progress-circular--*__secondary"},_=l["default"].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'),g="indeterminate",w=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,b["default"])(t,function(){return t._compile()}),t}return a(e,t),u(e,[{key:"attributeChangedCallback",value:function(t,e,n){"modifier"===t?(h["default"].onModifierChanged(e,n,this,y),this.hasAttribute(g)&&this._updateDeterminate()):"value"===t||"secondary-value"===t?this._updateValue():t===g&&this._updateDeterminate()}},{key:"_updateDeterminate",value:function(){var t=this;(0,b["default"])(this,function(){return l["default"].toggleModifier(t,g,{force:t.hasAttribute(g)})})}},{key:"_updateValue",value:function(){var t=this;this.hasAttribute("value")&&(0,b["default"])(this,function(){var e=Math.ceil(251.32*t.getAttribute("value")*.01);t._primary.style["stroke-dasharray"]=e+"%, 251.32%"}),this.hasAttribute("secondary-value")?(0,b["default"])(this,function(){var e=Math.ceil(251.32*t.getAttribute("secondary-value")*.01);t._secondary.style.display=null,t._secondary.style["stroke-dasharray"]=e+"%, 251.32%"}):(0,b["default"])(this,function(){t._secondary.style.display="none"})}},{key:"_compile",value:function(){this._isCompiled()?this._template=l["default"].findChild(this,".progress-circular"):this._template=_.cloneNode(!0),this._primary=l["default"].findChild(this._template,".progress-circular__primary"),this._secondary=l["default"].findChild(this._template,".progress-circular__secondary"),this._updateDeterminate(),this._updateValue(),this.appendChild(this._template),f["default"].prepare(this),h["default"].initModifier(this,y)}},{key:"_isCompiled",value:function(){if(!l["default"].findChild(this,".progress-circular"))return!1;var t=l["default"].findChild(this,".progress-circular");return!!l["default"].findChild(t,".progress-circular__secondary")&&!!l["default"].findChild(t,".progress-circular__primary")}},{key:"value",set:function(t){if("number"!=typeof t||t<0||t>100)throw new Error("Invalid value");this.setAttribute("value",Math.floor(t))},get:function(){return parseInt(this.getAttribute("value")||"0")}},{key:"secondaryValue",set:function(t){if("number"!=typeof t||t<0||t>100)throw new Error("Invalid value");this.setAttribute("secondary-value",Math.floor(t))},get:function(){return parseInt(this.getAttribute("secondary-value")||"0")}},{key:"indeterminate",set:function(t){t?this.setAttribute(g,""):this.removeAttribute(g)},get:function(){return this.hasAttribute(g)}}],[{key:"observedAttributes",get:function(){return["modifier","value","secondary-value",g]}}]),e}(v["default"]);e["default"]=w,customElements.define("ons-progress-circular",w),t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=i(0),c=r(l),f=i(14),d=r(f),h=i(6),p=(r(h),i(1)),v=r(p),m=i(15),b=r(m),y=i(5),_=r(y),g="initial",w="preaction",k="action",O=function(t){function n(){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t._onDrag=t._onDrag.bind(t),t._onDragStart=t._onDragStart.bind(t),t._onDragEnd=t._onDragEnd.bind(t),t._onScroll=t._onScroll.bind(t),t._preventScroll=t._preventScroll.bind(t),t._setState(g,!0),t._hide(),t}return u(n,t),s(n,[{key:"_setStyle",value:function(){var t=this.height+"px";(0,d["default"])(this,{height:t,lineHeight:t}),""===this.style.display&&this._show()}},{key:"_onScroll",value:function(t){var e=this._pageElement;e.scrollTop<0&&(e.scrollTop=0)}},{key:"_canConsumeGesture",value:function(t){return"up"===t.direction||"down"===t.direction}},{key:"_onDragStart",value:function(t){var e=this;if(t.gesture&&!this.disabled){if(this._ignoreDrag=t.consumed,!this._ignoreDrag){var n=t.consume;t.consume=function(){n&&n(),e._ignoreDrag=!0,e._hide()},this._canConsumeGesture(t.gesture)&&(n&&n(),t.consumed=!0,this._show())}this._startScroll=this._pageElement.scrollTop}}},{key:"_onDrag",value:function(t){var n=this;if(t.gesture&&!this.disabled&&!this._ignoreDrag&&this._canConsumeGesture(t.gesture)){"none"===this.style.display&&this._show(),t.stopPropagation(),this._pageElement.scrollTop=this._startScroll-t.gesture.deltaY,this._pageElement.scrollTop<window.innerHeight&&"up"!==t.gesture.direction&&t.gesture.preventDefault();var i=Math.max(t.gesture.deltaY-this._startScroll,0);i!==this._currentTranslation&&(this._thresholdHeightEnabled()&&i>=this.thresholdHeight?(t.gesture.stopDetect(),e(function(){return n._finish()})):i>=this.height?this._setState(w):this._setState(g),this._pulling=!0,this._translateTo(i))}}},{key:"_onDragEnd",value:function(t){
if(this._pulling=!1,t.gesture&&!this.disabled&&!this._ignoreDrag&&(t.stopPropagation(),this._currentTranslation>0)){var e=this._currentTranslation;e>this.height?this._finish():this._translateTo(0,{animate:!0})}}},{key:"_preventScroll",value:function(t){this._pulling&&t.cancelable&&t.preventDefault()}},{key:"_finish",value:function(){var t=this;this._setState(k),this._translateTo(this.height,{animate:!0});var e=this.onAction||function(t){return t()};e(function(){t._translateTo(0,{animate:!0}),t._setState(g)})}},{key:"_thresholdHeightEnabled",value:function(){var t=this.thresholdHeight;return t>0&&t>=this.height}},{key:"_setState",value:function(t,e){var n=this.state;this.setAttribute("state",t),e||n===this.state||c["default"].triggerElementEvent(this,"changestate",{pullHook:this,state:t,lastState:n})}},{key:"_show",value:function(){var t=this;e(function(){t.style.display="",t._pageElement&&(t._pageElement.style.marginTop="-"+t.height+"px")})}},{key:"_hide",value:function(){this.style.display="none",this._pageElement&&(this._pageElement.style.marginTop="")}},{key:"_translateTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0!=this._currentTranslation||0!=t){this._currentTranslation=t;var n=e.animate?{duration:.3,timing:"cubic-bezier(.1, .7, .1, 1)"}:{};this._onPull&&this._onPull((t/this.height).toFixed(2),n);var i=this.hasAttribute("fixed-content")?this:this._pageElement;(0,_["default"])(i).queue({transform:"translate3d(0px, "+t+"px, 0px)"},n).play(function(){0===t&&d["default"].clear(i,"transition transform"),e.callback instanceof Function&&e.callback()})}}},{key:"_disableDragLock",value:function(){this._dragLockDisabled=!0,this._setupListeners(!0)}},{key:"_setupListeners",value:function(t){var e=this,n=function(t){return e._pageElement[t+"EventListener"]("scroll",e._onScroll,!1)},i=function(t){e._gestureDetector[t]("drag",e._onDrag),e._gestureDetector[t]("dragstart",e._onDragStart),e._gestureDetector[t]("dragend",e._onDragEnd),e._gestureDetector[t]("touchmove",e._preventScroll)};this._gestureDetector&&(i("off"),this._gestureDetector.dispose(),this._gestureDetector=null),n("remove"),t&&(this._gestureDetector=new b["default"](this._pageElement,{dragMinDistance:1,dragDistanceCorrection:!1,dragLockToAxis:!this._dragLockDisabled}),i("on"),n("add"))}},{key:"connectedCallback",value:function(){this._currentTranslation=0,this._pageElement=this.parentNode,this._setupListeners(!0),this._setStyle()}},{key:"disconnectedCallback",value:function(){this._hide(),this._setupListeners(!1)}},{key:"attributeChangedCallback",value:function(t,e,n){"height"===t&&this._pageElement&&this._setStyle()}},{key:"onAction",get:function(){return this._onAction},set:function(t){if(!(t instanceof Function)&&null!==t)throw new Error("onAction must be a function or null");this._onAction=t}},{key:"onPull",get:function(){return this._onPull},set:function(t){if(t&&!(t instanceof Function))throw new Error("'onPull' must be a function.");this._onPull=t}},{key:"height",set:function(t){if(!c["default"].isInteger(t))throw new Error("The height must be an integer");this.setAttribute("height",t+"px")},get:function(){return parseInt(this.getAttribute("height")||"64",10)}},{key:"thresholdHeight",set:function(t){if(!c["default"].isInteger(t))throw new Error("The threshold height must be an integer");this.setAttribute("threshold-height",t+"px")},get:function(){return parseInt(this.getAttribute("threshold-height")||"96",10)}},{key:"state",get:function(){return this.getAttribute("state")}},{key:"pullDistance",get:function(){return this._currentTranslation}},{key:"disabled",set:function(t){return c["default"].toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}}],[{key:"observedAttributes",get:function(){return["height"]}},{key:"events",get:function(){return["changestate"]}}]),n}(v["default"]);n["default"]=O,customElements.define("ons-pull-hook",O),t.exports=n["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(40),l=i(s),c={".radio-button":"radio-button--*",".radio-button__input":"radio-button--*__input",".radio-button__checkmark":"radio-button--*__checkmark"},f=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"_scheme",get:function(){return c}},{key:"_defaultClassName",get:function(){return"radio-button"}},{key:"type",get:function(){return"radio"}}]),e}(l["default"]);e["default"]=f,customElements.define("ons-radio",f),t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function m(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:m(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},f=i(31),d=r(f),h={"":"range--*",".range__input":"range--*__input",".range__focus-ring":"range--*__focus-ring"},p="range__input--active",v=function(t){function n(){a(this,n);var t=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t._boundOnMouseDown=t._onMouseDown.bind(t),t._boundOnMouseUp=t._onMouseUp.bind(t),t._boundOnTouchStart=t._onTouchStart.bind(t),t._boundOnTouchEnd=t._onTouchEnd.bind(t),t._boundOnInput=t._update.bind(t),t._boundOnDragstart=t._onDragstart.bind(t),t._boundOnDragend=t._onDragend.bind(t),t}return s(n,t),l(n,[{key:"_compile",value:function(){c(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"_compile",this).call(this),this._updateDisabled(this.hasAttribute("disabled"))}},{key:"_update",value:function(){var t=this._input,e=this._focusRing;t.style.backgroundSize=100*this._ratio+"% 2px",e.value=this.value,""===t.min&&"0"===t.value||t.min===t.value?t.setAttribute("_zero",""):t.removeAttribute("_zero"),["min","max"].forEach(function(n){return e[n]=t[n]})}},{key:"_onMouseDown",value:function(t){var n=this;this._input.classList.add(p),e(function(){return n._input.focus()})}},{key:"_onTouchStart",value:function(t){this._onMouseDown()}},{key:"_onMouseUp",value:function(t){this._input.classList.remove(p)}},{key:"_onTouchEnd",value:function(t){this._onMouseUp(t)}},{key:"_onDragstart",value:function(t){t.consumed=!0,t.gesture.stopPropagation(),this._input.classList.add(p),this.addEventListener("drag",this._onDrag)}},{key:"_onDrag",value:function(t){t.stopPropagation()}},{key:"_onDragend",value:function(t){this._input.classList.remove(p),this.removeEventListener("drag",this._onDrag)}},{key:"attributeChangedCallback",value:function(t,e,i){"disabled"===t&&this._updateDisabled(i),c(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"attributeChangedCallback",this).call(this,t,e,i)}},{key:"_updateDisabled",value:function(t){t?this.classList.add("range--disabled"):this.classList.remove("range--disabled")}},{key:"connectedCallback",value:function(){this.addEventListener("mousedown",this._boundOnMouseDown),this.addEventListener("mouseup",this._boundOnMouseUp),this.addEventListener("touchstart",this._boundOnTouchStart),this.addEventListener("touchend",this._boundOnTouchEnd),this.addEventListener("dragstart",this._boundOnDragstart),this.addEventListener("dragend",this._boundOnDragend),this.addEventListener("input",this._boundOnInput)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("mousedown",this._boundOnMouseDown),this.removeEventListener("mouseup",this._boundOnMouseUp),this.removeEventListener("touchstart",this._boundOnTouchStart),this.removeEventListener("touchend",this._boundOnTouchEnd),this.removeEventListener("dragstart",this._boundOnDragstart),this.removeEventListener("dragend",this._boundOnDragend),this.removeEventListener("input",this._boundOnInput)}},{key:"_scheme",get:function(){return h}},{key:"_template",get:function(){return'\n      <input type="'+this.type+'" class="'+this._defaultClassName+'__input">\n      <input type="range" class="range__focus-ring" tabIndex="-1">\n    '}},{key:"_defaultClassName",get:function(){return"range"}},{key:"type",get:function(){return"range"}},{key:"_focusRing",get:function(){return this.children[1]}},{key:"_ratio",get:function(){var t=""===this._input.min?0:parseInt(this._input.min),e=""===this._input.max?100:parseInt(this._input.max);return(this.value-t)/(e-t)}}],[{key:"observedAttributes",get:function(){return["disabled"].concat(o(d["default"].observedAttributes))}}]),n}(d["default"]);n["default"]=v,customElements.define("ons-range",v),t.exports=n["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(7),f=i(c),d=n(1),h=i(d),p=n(145),v=i(p),m=n(2),b=i(m),y=n(3),_=i(y),g="ripple",w={"":"ripple--*",".ripple__wave":"ripple--*__wave",".ripple__background":"ripple--*__background"},k=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,b["default"])(t,function(){return t._compile()}),t._animator=new v["default"],["color","center","start-radius","background","modifier"].forEach(function(e){t.attributeChangedCallback(e,null,t.getAttribute(e))}),t}return a(e,t),u(e,[{key:"_compile",value:function(){this.classList.add(g),this._wave=this.getElementsByClassName("ripple__wave")[0],this._background=this.getElementsByClassName("ripple__background")[0],this._background&&this._wave||(this._wave=l["default"].create(".ripple__wave"),this._background=l["default"].create(".ripple__background"),this.appendChild(this._wave),this.appendChild(this._background)),_["default"].initModifier(this,w)}},{key:"_getEffectSize",value:function(){var t=["cover","contain"];if(this.hasAttribute("size")){var e=this.getAttribute("size");if(t.indexOf(e)!==-1)return e}return"cover"}},{key:"_calculateCoords",value:function(t){var e=void 0,n=void 0,i=void 0,r=void 0,o=void 0,a=this.getBoundingClientRect(),u=this._getEffectSize();if(this._center)if(e=a.width/2,n=a.height/2,"cover"===u)o=Math.sqrt(e*e+n*n);else{if("contain"!==u)throw Error("Invalid state. If this errors is shown, leport to GitHub issues.");o=Math.min(e,n)}else if(e=("number"==typeof t.clientX?t.clientX:t.changedTouches[0].clientX)-a.left,n=("number"==typeof t.clientY?t.clientY:t.changedTouches[0].clientY)-a.top,i=Math.max(n,a.height-n),r=Math.max(e,a.width-e),"cover"===u)o=Math.sqrt(i*i+r*r);else{if("contain"!==u)throw Error("Invalid state. If this errors is shown, leport to GitHub issues.");o=Math.min(Math.round(i/2),Math.round(r/2))}return{x:e,y:n,r:o}}},{key:"_rippleAnimation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=this._animator,i=this._wave,r=this._background,o=this._minR,a=this._calculateCoords(t),u=a.x,s=a.y,c=a.r;return n.stopAll({stopNext:1}),n.animate(r,{opacity:1},e),l["default"].extend(i.style,{opacity:1,top:s-o+"px",left:u-o+"px",width:2*o+"px",height:2*o+"px"}),n.animate(i,{top:s-c,left:u-c,height:2*c,width:2*c},e)}},{key:"_updateParent",value:function(){if(!this._parentUpdated&&this.parentNode){var t=window.getComputedStyle(this.parentNode);"static"===t.getPropertyValue("position")&&(this.parentNode.style.position="relative"),this._parentUpdated=!0}}},{key:"_onTap",value:function(t){var e=this;this.disabled||(this._updateParent(),this._rippleAnimation(t.gesture.srcEvent).then(function(){e._animator.fade(e._wave),e._animator.fade(e._background)}))}},{key:"_onHold",value:function(t){this.disabled||(this._updateParent(),this._holding=this._rippleAnimation(t.gesture.srcEvent,2e3),document.addEventListener("release",this._boundOnRelease))}},{key:"_onRelease",value:function(t){var e=this;this._holding&&(this._holding.speed(300).then(function(){e._animator.stopAll({stopNext:!0}),e._animator.fade(e._wave),e._animator.fade(e._background)}),this._holding=!1),document.removeEventListener("release",this._boundOnRelease)}},{key:"_onDragStart",value:function(t){return this._holding?this._onRelease(t):void(["left","right"].indexOf(t.gesture.direction)!=-1&&this._onTap(t))}},{key:"connectedCallback",value:function(){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),f["default"].config.animationsDisabled?this.disabled=!0:(this._parentNode.addEventListener("tap",this._boundOnTap),this._parentNode.addEventListener("hold",this._boundOnHold),this._parentNode.addEventListener("dragstart",this._boundOnDragStart))}},{key:"disconnectedCallback",value:function(){var t=this._parentNode||this.parentNode;t.removeEventListener("tap",this._boundOnTap),t.removeEventListener("hold",this._boundOnHold),t.removeEventListener("dragstart",this._boundOnDragStart)}},{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"class":l["default"].restoreClass(this,g,w);break;case"modifier":_["default"].onModifierChanged(e,n,this,w);break;case"start-radius":this._minR=Math.max(0,parseFloat(n)||0);break;case"color":n&&(0,b["default"])(this,function(){i._wave.style.background=n,i.hasAttribute("background")||(i._background.style.background=n)});break;case"background":(n||e)&&("none"===n?(0,b["default"])(this,function(){i._background.setAttribute("disabled","disabled"),i._background.style.background="transparent"}):(0,b["default"])(this,function(){i._background.hasAttribute("disabled")&&i._background.removeAttribute("disabled"),i._background.style.background=n}));break;case"center":"center"===t&&(this._center=null!=n&&"false"!=n)}}},{key:"disabled",set:function(t){return l["default"].toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}}],[{key:"observedAttributes",get:function(){return["start-radius","color","background","center","class","modifier"]}}]),e}(h["default"]);e["default"]=k,customElements.define("ons-ripple",k),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(1),s=i(u),l=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(s["default"]);e["default"]=l,customElements.define("ons-row",l),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(31),l=i(s),c={".search-input":"search-input--*"},f=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"_scheme",get:function(){return c}},{key:"_template",get:function(){return'\n      <input type="'+this.type+'" class="search-input">\n    '}},{key:"type",get:function(){return"search"}}]),e}(l["default"]);e["default"]=f,customElements.define("ons-search-input",f),t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=i(0),c=r(l),f=i(4),d=r(f),h=i(3),p=r(h),v=i(1),m=r(v),b=i(2),y=r(b),_="segment",g={"":"segment--*",".segment__item":"segment--*__item",".segment__input":"segment--*__input",".segment__button":"segment--*__button"},w=function(){var t=0;return function(){return"ons-segment-gen-"+t++}}(),k=function(t){function n(){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t._segmentId=w(),t._tabbar=null,t._onChange=t._onChange.bind(t),t._onTabbarPreChange=t._onTabbarPreChange.bind(t),(0,y["default"])(t,function(){t._compile(),e(function(){return t._lastActiveIndex=t._tabbar?t._tabbar.getActiveTabIndex():t.getActiveButtonIndex()})}),t}return u(n,t),s(n,[{key:"_compile",value:function(){d["default"].prepare(this),this.classList.add(_);for(var t=this.children.length-1;t>=0;t--){var e=this.children[t];e.classList.add("segment__item");var n=c["default"].findChild(e,".segment__input")||c["default"].create("input.segment__input");n.type="radio",n.value=t,n.name=n.name||this._segmentId,n.checked=!this.hasAttribute("tabbar-id")&&t===(parseInt(this.getAttribute("active-index"))||0);var i=c["default"].findChild(e,".segment__button")||c["default"].create(".segment__button");if(i.parentElement!==e)for(;e.firstChild;)i.appendChild(e.firstChild);e.appendChild(n),e.appendChild(i)}p["default"].initModifier(this,g)}},{key:"connectedCallback",value:function(){var t=this;this.hasAttribute("tabbar-id")&&(0,y["default"])(this,function(){var n=c["default"].findParent(t,"ons-page");if(t._tabbar=n&&n.querySelector("#"+t.getAttribute("tabbar-id")),!t._tabbar||"ONS-TABBAR"!==t._tabbar.tagName)throw new Error("<ons-segment> error: no tabbar with id "+t.getAttribute("tabbar-id")+" was found.");t._tabbar.hide(),e(function(){return t._setChecked(t._tabbar.getActiveTabIndex())}),t._tabbar.addEventListener("prechange",t._onTabbarPreChange)}),this.addEventListener("change",this._onChange)}},{key:"disconnectedCallback",value:function(){var t=this;(0,y["default"])(this,function(){t._tabbar&&(t._tabbar.removeEventListener("prechange",t._onTabbarPreChange),t._tabbar=null)}),this.removeEventListener("change",this._onChange)}},{key:"_setChecked",value:function(t){this.children[t].firstElementChild.checked=!0}},{key:"setActiveButton",value:function(t,e){return this._tabbar?this._tabbar.setActiveTab(t,e):(this._setChecked(t),this._postChange(t),Promise.resolve(t))}},{key:"getActiveButtonIndex",value:function(){for(var t=this.children.length-1;t>=0;t--)if(this.children[t].firstElementChild.checked)return t;return-1}},{key:"_onChange",value:function(t){t.stopPropagation(),this._tabbar?this._tabbar.setActiveTab(this.getActiveButtonIndex(),{reject:!1}):this._postChange(this.getActiveButtonIndex())}},{key:"_onTabbarPreChange",value:function(t){var n=this;e(function(){t.detail.canceled||(n._setChecked(t.index),n._postChange(t.index))})}},{key:"_postChange",value:function(t){c["default"].triggerElementEvent(this,"postchange",{index:t,activeIndex:t,lastActiveIndex:this._lastActiveIndex,segmentItem:this.children[t]}),this._lastActiveIndex=t}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":c["default"].restoreClass(this,_,g);break;case"modifier":p["default"].onModifierChanged(e,n,this,g)}}},{key:"disabled",set:function(t){return c["default"].toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}}],[{key:"observedAttributes",get:function(){return["class","modifier"]}},{key:"events",get:function(){return["postchange"]}}]),n}(m["default"]);n["default"]=k,customElements.define("ons-segment",k),t.exports=n["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(1),v=i(p),m=n(2),b=i(m),y={"":"select-*",".select-input":"select-input--*"},_="select",g=["autofocus","disabled","form","multiple","name","required","size"],w=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,b["default"])(t,function(){return t._compile()}),t._deriveGetters(),t}return a(e,t),u(e,[{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"class":l["default"].restoreClass(this,_,y);break;case"modifier":h["default"].onModifierChanged(e,n,this,y)}g.indexOf(t)>=0&&(0,b["default"])(this,function(){return i._updateBoundAttributes()})}},{key:"_updateBoundAttributes",value:function(){var t=this;g.forEach(function(e){t.hasAttribute(e)?t._select.setAttribute(e,t.getAttribute(e)):t._select.removeAttribute(e)})}},{key:"_compile",value:function(){f["default"].prepare(this),this.classList.add(_);var t=this._select||document.createElement("select");!t.id&&this.hasAttribute("select-id")&&(t.id=this.getAttribute("select-id")),t.classList.add("select-input"),this._select||(l["default"].arrayFrom(this.childNodes).forEach(function(e){return t.appendChild(e)}),this.appendChild(t)),h["default"].initModifier(this,y)}},{key:"_deriveGetters",value:function(){for(var t=this,e=function(e){t.__defineGetter__(e,function(){return t._select[e]}),t.__defineSetter__(e,function(n){t._select[e]=n})},n=["disabled","length","multiple","name","options","selectedIndex","size","value"],i=0;i<n.length;i++){var r=n[i];e(r)}this.__defineGetter__("form",function(){return t._select.form}),this.__defineGetter__("type",function(){return t._select.type})}},{key:"add",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this._select.add(t,e)}},{key:"remove",value:function(t){this._select.remove(t)}},{key:"_select",get:function(){return this.querySelector("select")}}],[{key:"observedAttributes",get:function(){return["modifier","class"].concat(g)}}]),e}(v["default"]);e["default"]=w,customElements.define("ons-select",w),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(1),v=i(p),m="fab fab--mini speed-dial__item",b={"":"fab--* speed-dial__item--*"},y=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t._boundOnClick=t._onClick.bind(t),t}return a(e,t),u(e,[{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":l["default"].restoreClass(this,m,b);break;case"modifier":h["default"].onModifierChanged(e,n,this,b),l["default"].addModifier(this,"mini");break;case"ripple":this._updateRipple()}}},{key:"connectedCallback",value:function(){this.addEventListener("click",this._boundOnClick,!1)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",this._boundOnClick,!1)}},{key:"_updateRipple",value:function(){l["default"].updateRipple(this)}},{key:"_onClick",value:function(t){t.stopPropagation()}},{key:"_compile",value:function(){var t=this;f["default"].prepare(this),m.split(/\s+/).forEach(function(e){return t.classList.add(e)}),l["default"].addModifier(this,"mini"),this._updateRipple(),h["default"].initModifier(this,b)}}],[{key:"observedAttributes",get:function(){return["modifier","ripple","class"]}}]),e}(v["default"]);e["default"]=y,customElements.define("ons-speed-dial-item",y),t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=i(0),c=r(l),f=i(4),d=r(f),h=i(3),p=r(h),v=i(1),m=r(v),b=i(2),y=r(b),_=i(14),g=r(_),w="speed-dial",k={"":"speed-dial--*"},O=function(t){function n(){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return(0,y["default"])(t,function(){t._compile()}),t._itemShown=!1,t._boundOnClick=t._onClick.bind(t),t}return u(n,t),s(n,[{key:"_compile",value:function(){this.classList.add(w),d["default"].prepare(this),this._updateRipple(),p["default"].initModifier(this,k),this.hasAttribute("direction")?this._updateDirection(this.getAttribute("direction")):this._updateDirection("up"),this._updatePosition()}},{key:"attributeChangedCallback",value:function(t,e,n){var i=this;switch(t){case"class":c["default"].restoreClass(this,w,k);break;case"modifier":p["default"].onModifierChanged(e,n,this,k);break;case"ripple":(0,y["default"])(this,function(){return i._updateRipple()});break;case"direction":(0,y["default"])(this,function(){return i._updateDirection(n)});break;case"position":(0,y["default"])(this,function(){return i._updatePosition()})}}},{key:"connectedCallback",value:function(){this.addEventListener("click",this._boundOnClick,!1)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",this._boundOnClick,!1)}},{key:"_onClick",value:function(t){return this.onClick?(this.onClick.apply(this),Promise.resolve()):!this.disabled&&this.visible?this.toggleItems():void 0}},{key:"_show",value:function(){return this.inline?Promise.resolve():this.show()}},{key:"_hide",value:function(){var t=this;return new Promise(function(n){t.inline?n():e(function(){return t.hide().then(n)})})}},{key:"_updateRipple",value:function(){this._fab&&(this.hasAttribute("ripple")?this._fab.setAttribute("ripple",""):this._fab.removeAttribute("ripple"))}},{key:"_updateDirection",value:function(t){for(var e=this.items,n=0;n<e.length;n++)(0,g["default"])(e[n],{transitionDelay:25*n+"ms",bottom:"auto",right:"auto",top:"auto",left:"auto"});switch(t){case"up":for(var i=0;i<e.length;i++)e[i].style.bottom=72+56*i+"px",e[i].style.right="8px";break;case"down":for(var r=0;r<e.length;r++)e[r].style.top=72+56*r+"px",e[r].style.left="8px";break;case"left":for(var o=0;o<e.length;o++)e[o].style.top="8px",
e[o].style.right=72+56*o+"px";break;case"right":for(var a=0;a<e.length;a++)e[a].style.top="8px",e[a].style.left=72+56*a+"px";break;default:throw new Error("Argument must be one of up, down, left or right.")}}},{key:"_updatePosition",value:function(){var t=this.getAttribute("position");switch(this.classList.remove("fab--top__left","fab--bottom__right","fab--bottom__left","fab--top__right","fab--top__center","fab--bottom__center"),t){case"top right":case"right top":this.classList.add("fab--top__right");break;case"top left":case"left top":this.classList.add("fab--top__left");break;case"bottom right":case"right bottom":this.classList.add("fab--bottom__right");break;case"bottom left":case"left bottom":this.classList.add("fab--bottom__left");break;case"center top":case"top center":this.classList.add("fab--top__center");break;case"center bottom":case"bottom center":this.classList.add("fab--bottom__center")}}},{key:"_getTranslate",value:function(){var t=(this.getAttribute("position")||"").indexOf("bottom")>=0,e=t?"translate3d(0px, -"+(c["default"].globals.fabOffset||0)+"px, 0px) ":"";return e}},{key:"show",value:function(){return this._fab.show(),(0,g["default"])(this,{transform:this._getTranslate}),Promise.resolve()}},{key:"hide",value:function(){var t=this;return this.hideItems().then(function(){return t._fab.hide()})}},{key:"showItems",value:function(){this.hasAttribute("direction")?this._updateDirection(this.getAttribute("direction")):this._updateDirection("up");var t=0;if(!this._itemShown){for(var e=this.items,n=0;n<e.length;n++){var i=25*n;t+=i,(0,g["default"])(e[n],{transform:"scale(1)",transitionDelay:i+"ms"})}t+=50,this._itemShown=!0,c["default"].triggerElementEvent(this,"open")}var r=c["default"].defer();return setTimeout(r.resolve,t),r.promise}},{key:"hideItems",value:function(){var t=0;if(this._itemShown){for(var e=this.items,n=0;n<e.length;n++){var i=25*(e.length-n);t+=i,(0,g["default"])(e[n],{transform:"scale(0)",transitionDelay:i+"ms"})}t+=50,this._itemShown=!1,c["default"].triggerElementEvent(this,"close")}var r=c["default"].defer();return setTimeout(r.resolve,t),r.promise}},{key:"isOpen",value:function(){return this._itemShown}},{key:"toggle",value:function(){return this.visible?this.hide():this.show()}},{key:"toggleItems",value:function(){return this.isOpen()?this.hideItems():this.showItems()}},{key:"items",get:function(){return c["default"].arrayFrom(this.querySelectorAll("ons-speed-dial-item"))}},{key:"_fab",get:function(){return c["default"].findChild(this,"ons-fab")}},{key:"disabled",set:function(t){return t&&this.hideItems(),c["default"].arrayFrom(this.children).forEach(function(e){c["default"].match(e,".fab")&&c["default"].toggleAttribute(e,"disabled",t)}),c["default"].toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}},{key:"inline",get:function(){return this.hasAttribute("inline")}},{key:"visible",get:function(){return this._fab.visible&&"none"!==this.style.display}}],[{key:"observedAttributes",get:function(){return["class","modifier","ripple","direction","position"]}},{key:"events",get:function(){return["open","close"]}}]),n}(m["default"]);n["default"]=O,customElements.define("ons-speed-dial",O),t.exports=n["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=i(0),c=r(l),f=i(7),d=(r(f),i(3)),h=(r(d),i(1)),p=r(h),v=i(28),m=i(2),b=r(m),y={ready:function(t,n){e(n)}},_=function(t){function n(){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t._page=null,t._pageLoader=v.defaultPageLoader,(0,b["default"])(t,function(){y.ready(t,function(){var e=t._getPageTarget();e&&t.load(e)})}),t}return u(n,t),s(n,[{key:"connectedCallback",value:function(){if(!c["default"].match(this.parentNode,"ons-splitter"))throw new Error('"ons-splitter-content" must have "ons-splitter" as parentNode.')}},{key:"_getPageTarget",value:function(){return this._page||this.getAttribute("page")}},{key:"disconnectedCallback",value:function(){}},{key:"attributeChangedCallback",value:function(t,e,n){}},{key:"load",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._page=t;var r=i.callback||function(){};return new Promise(function(i){var o=n._content||null;n._pageLoader.load({page:t,parent:n},function(t){o&&(n._pageLoader.unload(o),o=null),e(function(){return n._show()}),r(t),i(t)})})}},{key:"_show",value:function(){this._content&&this._content._show()}},{key:"_hide",value:function(){this._content&&this._content._hide()}},{key:"_destroy",value:function(){this._content&&this._pageLoader.unload(this._content),this.remove()}},{key:"page",get:function(){return this._page},set:function(t){this._page=t}},{key:"_content",get:function(){return this.children[0]}},{key:"pageLoader",get:function(){return this._pageLoader},set:function(t){if(!(t instanceof v.PageLoader))throw Error("First parameter must be an instance of PageLoader");this._pageLoader=t}}],[{key:"observedAttributes",get:function(){return[]}},{key:"rewritables",get:function(){return y}}]),n}(p["default"]);n["default"]=_,customElements.define("ons-splitter-content",_),t.exports=n["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(1),l=i(s),c=n(0),f=i(c),d=n(2),h=i(d),p=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._boundOnClick=t._onClick.bind(t),(0,h["default"])(t,function(){t.parentNode._sides.every(function(t){return"split"===t.mode})&&t.setAttribute("style","display: none !important")}),t}return a(e,t),u(e,[{key:"_onClick",value:function(t){this.onClick instanceof Function?this.onClick():f["default"].match(this.parentNode,"ons-splitter")&&this.parentNode._sides.forEach(function(t){return t.close("left")["catch"](function(){})}),t.stopPropagation()}},{key:"_preventScroll",value:function(t){t.cancelable&&t.preventDefault()}},{key:"attributeChangedCallback",value:function(t,e,n){}},{key:"connectedCallback",value:function(){this.addEventListener("click",this._boundOnClick),this.addEventListener("touchmove",this._preventScroll)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("click",this._boundOnClick),this.removeEventListener("touchmove",this._preventScroll)}}],[{key:"observedAttributes",get:function(){return[]}}]),e}(l["default"]);e["default"]=p,customElements.define("ons-splitter-mask",p),t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=i(0),c=r(l),f=i(8),d=r(f),h=i(44),p=r(h),v=i(7),m=(r(v),i(3)),b=(r(m),i(1)),y=r(b),_=i(32),g=r(_),w=i(15),k=(r(w),i(60)),O=r(k),E=i(42),P=r(E),C=i(2),x=r(C),A=i(28),S=i(53),j=r(S),T="split",M="collapse",L="closed",D="open",I="changing",N={ready:function(t,n){e(n)}},R=function(){function t(e,n){u(this,t),this._element=e,this._onChange=this._onChange.bind(this),n&&this.changeTarget(n)}return s(t,[{key:"changeTarget",value:function(t){this.disable(),this._target=t,t&&(this._orientation=["portrait","landscape"].indexOf(t)!==-1,this.activate())}},{key:"_match",value:function(t){return this._orientation?this._target===(t.isPortrait?"portrait":"landscape"):t.matches}},{key:"_onChange",value:function(t){this._element._updateMode(this._match(t)?M:T)}},{key:"activate",value:function(){this._orientation?(p["default"].on("change",this._onChange),this._onChange({isPortrait:p["default"].isPortrait()})):(this._queryResult=window.matchMedia(this._target),this._queryResult.addListener(this._onChange),this._onChange(this._queryResult))}},{key:"disable",value:function(){this._orientation?p["default"].off("change",this._onChange):this._queryResult&&(this._queryResult.removeListener(this._onChange),this._queryResult=null)}}]),t}(),B=function(t){function n(){u(this,n);var t=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t._page=null,t._state=L,t._lock=new P["default"],t._pageLoader=A.defaultPageLoader,t._collapseDetection=new R(t),t._animatorFactory=new d["default"]({animators:j["default"].animators,baseClass:g["default"],baseClassName:"SplitterAnimator",defaultAnimation:t.getAttribute("animation")}),(0,x["default"])(t,function(){t.attributeChangedCallback("width"),t.hasAttribute("side")||t.setAttribute("side","left"),N.ready(t,function(){var e=t._page||t.getAttribute("page");e&&t.load(e)})}),t}return a(n,t),s(n,[{key:"connectedCallback",value:function(){var t=this;if(!c["default"].match(this.parentNode,"ons-splitter"))throw new Error("Parent must be an ons-splitter element.");this._swipe=new O["default"]({element:this,elementHandler:this.parentElement,swipeMax:this.open.bind(this),swipeMid:function(e){return t._animator.translate(e)},swipeMin:this.close.bind(this),getThreshold:function(){return Math.max(0,Math.min(1,parseFloat(t.getAttribute("open-threshold"))||.3))},getSide:function(){return t.side},isInitialState:function(){var e=t._state===L;return t._state=I,e},ignoreSwipe:function(e,n){var i=t.isOpen,r=function(e){return"left"===t.side?"left"===e&&i||"right"===e&&!i:"left"===e&&!i||"right"===e&&i},o=Math.max(0,parseInt(t.getAttribute("swipe-target-width"),10)||0);return t._mode===T||t._lock.isLocked()||t._isOtherSideOpen()||!r(e.gesture.direction)||!i&&0!==o&&n>o}}),this.attributeChangedCallback("swipeable"),(0,x["default"])(this,function(){t.constructor.observedAttributes.forEach(function(e){return t.attributeChangedCallback(e,null,t.getAttribute(e))})})}},{key:"disconnectedCallback",value:function(){this._swipe&&this._swipe.dispose(),this._animator=this._swipe=null}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"swipeable":this._swipe&&this._swipe.update();break;case"width":this.style.width=/^\d+(px|%)$/.test(n)?n:"80%";break;default:this[c["default"].camelize("_update-"+t)](n)}}},{key:"_emitEvent",value:function(t){if("pre"!==t.slice(0,3))return c["default"].triggerElementEvent(this,t,{side:this});var e=!1;return c["default"].triggerElementEvent(this,t,{side:this,cancel:function(){return e=!0}}),e}},{key:"_isOtherSideOpen",value:function(){var t=this;return!!c["default"].findChild(this.parentElement,function(e){return e instanceof t.constructor&&e!==t&&e._mode===M&&e.isOpen})}},{key:"_updateCollapse",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAttribute("collapse");return null===t||"split"===t?(this._collapseDetection.disable(),this._updateMode(T)):""===t||"collapse"===t?(this._collapseDetection.disable(),this._updateMode(M)):void this._collapseDetection.changeTarget(t)}},{key:"_updateMode",value:function(t){t!==this._mode&&(this._mode=t,this.setAttribute("mode",t),t===T?(this._animator&&this._animator.deactivate(),this._state=L):(this._animator&&this._animator.activate(this),this._state===D&&this._animator.open()),c["default"].triggerElementEvent(this,"modechange",{side:this,mode:t}))}},{key:"_updateAnimation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAttribute("animation");this._animator&&this._animator.deactivate(),this._animator=this._animatorFactory.newAnimator({animation:t}),this._animator.activate(this)}},{key:"_updateAnimationOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAttribute("animation-options");this._animator.updateOptions(d["default"].parseAnimationOptionsString(t))}},{key:"open",value:function(t){return this.toggle(t,!0)}},{key:"close",value:function(t){return this.toggle(t,!1)}},{key:"toggle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],i="boolean"==typeof n?n:!this.isOpen,r=i?"open":"close",o=i?D:L;if(this._mode===T)return Promise.resolve(!1);if(this._state===o)return Promise.resolve(this);if(this._lock.isLocked())return Promise.reject("Another splitter-side action is already running.");if(i&&this._isOtherSideOpen())return Promise.reject("Another menu is already open.");if(this._emitEvent("pre"+r))return Promise.reject("Canceled in pre"+r+" event.");var a=this._lock.lock();return this._state=I,new Promise(function(n){t._animator[r](function(){t._state=o,a(),t._emitEvent("post"+r),e.callback instanceof Function&&e.callback(t),n(t)})})}},{key:"load",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._page=t;var r=i.callback||function(){};return new Promise(function(i){var o=n._content||null;n._pageLoader.load({page:t,parent:n},function(t){o&&(n._pageLoader.unload(o),o=null),e(function(){return n._show()}),r(t),i(t)})})}},{key:"_show",value:function(){this._content&&this._content._show()}},{key:"_hide",value:function(){this._content&&this._content._hide()}},{key:"_destroy",value:function(){this._content&&this._pageLoader.unload(this._content),this.remove()}},{key:"side",get:function(){return"right"===this.getAttribute("side")?"right":"left"}},{key:"page",get:function(){return this._page},set:function(t){this._page=t}},{key:"_content",get:function(){return this.children[0]}},{key:"pageLoader",get:function(){return this._pageLoader},set:function(t){if(!(t instanceof A.PageLoader))throw Error("First parameter must be an instance of PageLoader.");this._pageLoader=t}},{key:"mode",get:function(){return this._mode}},{key:"isOpen",get:function(){return this._mode===M&&this._state!==L}}],[{key:"observedAttributes",get:function(){return["animation","width","collapse","swipeable","animation-options"]}},{key:"events",get:function(){return["preopen","postopen","preclose","postclose","modechange"]}},{key:"rewritables",get:function(){return N}}]),n}(y["default"]);n["default"]=B,customElements.define("ons-splitter-side",B),t.exports=n["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=function E(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:E(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},c=n(0),f=i(c),d=n(4),h=(i(d),n(3)),p=i(h),v=n(40),m=i(v),b=n(2),y=i(b),_=n(15),g=i(_),w={"":"switch--*",".switch__input":"switch--*__input",".switch__handle":"switch--*__handle",".switch__toggle":"switch--*__toggle"},k={ios:[1,21],material:[0,16]},O=function(t){function e(){o(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return(0,y["default"])(t,function(){t.attributeChangedCallback("modifier",null,t.getAttribute("modifier"))}),t._boundOnChange=t._onChange.bind(t),t._boundOnRelease=t._onRelease.bind(t),t}return u(e,t),s(e,[{key:"_getPosition",value:function(t){var e=this._locations;return Math.min(e[1],Math.max(e[0],this._startX+t.gesture.deltaX))}},{key:"_emitChangeEvent",value:function(){f["default"].triggerElementEvent(this,"change",{value:this.checked,"switch":this,isInteractive:!0})}},{key:"_onChange",value:function(t){t&&t.stopPropagation&&t.stopPropagation(),this._emitChangeEvent()}},{key:"_onClick",value:function(t){t.target.classList.contains(this.defaultElementClass+"__touch")&&t.preventDefault()}},{key:"_onHold",value:function(t){this.disabled||(p["default"].addModifier(this,"active"),document.addEventListener("release",this._boundOnRelease))}},{key:"_onDragStart",value:function(t){return this.disabled||["left","right"].indexOf(t.gesture.direction)===-1?void p["default"].removeModifier(this,"active"):(t.consumed=!0,p["default"].addModifier(this,"active"),this._startX=this._locations[this.checked?1:0],this.addEventListener("drag",this._onDrag),void document.addEventListener("release",this._boundOnRelease))}},{key:"_onDrag",value:function(t){t.stopPropagation(),t.gesture.preventDefault(),this._handle.style.left=this._getPosition(t)+"px"}},{key:"_onRelease",value:function(t){var e=this._locations,n=this._getPosition(t),i=this.checked;this.checked=n>=(e[0]+e[1])/2,this.checked!==i&&this._emitChangeEvent(),this.removeEventListener("drag",this._onDrag),document.removeEventListener("release",this._boundOnRelease),this._handle.style.left="",p["default"].removeModifier(this,"active")}},{key:"click",value:function(){this.disabled||(this.checked=!this.checked,this._emitChangeEvent())}},{key:"connectedCallback",value:function(){var t=this;(0,y["default"])(this,function(){t._input.addEventListener("change",t._boundOnChange)}),this.addEventListener("dragstart",this._onDragStart),this.addEventListener("hold",this._onHold),this.addEventListener("tap",this.click),this.addEventListener("click",this._onClick),this._gestureDetector=new g["default"](this,{dragMinDistance:1,holdTimeout:251})}},{key:"disconnectedCallback",value:function(){var t=this;(0,y["default"])(this,function(){t._input.removeEventListener("change",t._boundOnChange)}),this.removeEventListener("dragstart",this._onDragStart),this.removeEventListener("hold",this._onHold),this.removeEventListener("tap",this.click),this.removeEventListener("click",this._onClick),this._gestureDetector&&this._gestureDetector.dispose()}},{key:"attributeChangedCallback",value:function(t,n,i){if("modifier"===t){var r=(i||"").indexOf("material")!==-1;this._locations=k[r?"material":"ios"]}l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attributeChangedCallback",this).call(this,t,n,i)}},{key:"_scheme",get:function(){return w}},{key:"_defaultClassName",get:function(){return"switch"}},{key:"_template",get:function(){return'\n      <input type="'+this.type+'" class="'+this._defaultClassName+'__input">\n      <div class="'+this._defaultClassName+'__toggle">\n        <div class="'+this._defaultClassName+'__handle">\n          <div class="'+this._defaultClassName+'__touch"></div>\n        </div>\n      </div>\n    '}},{key:"type",get:function(){return"checkbox"}},{key:"_handle",get:function(){return this.querySelector("."+this._defaultClassName+"__handle")}},{key:"checkbox",get:function(){return this._input}}],[{key:"observedAttributes",get:function(){return[].concat(r(l(e.__proto__||Object.getPrototypeOf(e),"observedAttributes",this)),["modifier"])}}]),e}(m["default"]);e["default"]=O,customElements.define("ons-switch",O),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(1),f=i(c),d=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));for(t.template=t.innerHTML;t.firstChild;)t.removeChild(t.firstChild);return t}return a(e,t),u(e,[{key:"connectedCallback",value:function(){this.parentNode&&this.parentNode!==document.body&&l["default"].warn("ons-template (id = "+this.getAttribute("id")+") must be located just under document.body"+(this.parentNode.outerHTML?":\n\n"+this.parentNode.outerHTML:"."));var t=new CustomEvent("_templateloaded",{bubbles:!0,cancelable:!0});t.template=this.template,t.templateId=this.getAttribute("id"),this.dispatchEvent(t)}}]),e}(f["default"]);e["default"]=d,customElements.define("ons-template",d),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(8),v=i(p),m=n(26),b=i(m),y=n(150),_=i(y),g=n(149),w=i(g),k=n(152),O=i(k),E=n(151),P=i(E),C=n(6),x=i(C),A=n(20),S=i(A),j=n(2),T=i(j),M={".toast":"toast--*",".toast__message":"toast--*__message",".toast__button":"toast--*__button"},L="toast",D={"default":x["default"].isAndroid()?w["default"]:O["default"],fade:_["default"],ascend:w["default"],lift:O["default"],fall:P["default"],none:b["default"]},I=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._defaultDBB=function(t){return t.callParentHandler()},(0,T["default"])(t,function(){return t._compile()}),t}return a(e,t),u(e,[{key:"_updateAnimatorFactory",value:function(){return this._toast&&(this._toast.style.top=this._toast.style.bottom=""),new v["default"]({animators:D,baseClass:b["default"],baseClassName:"ToastAnimator",defaultAnimation:this.getAttribute("animation")})}},{key:"_compile",value:function(){f["default"].prepare(this),this.style.display="none",this.style.zIndex=1e4;var t="toast__message",e="toast__button",n=l["default"].findChild(this,"."+L);if(!n)for(n=document.createElement("div"),n.classList.add(L);this.childNodes[0];)n.appendChild(this.childNodes[0]);var i=l["default"].findChild(n,"."+e);if(i||(i=l["default"].findChild(n,function(t){return l["default"].match(t,".button")||l["default"].match(t,"button")}),i&&(i.classList.remove("button"),i.classList.add(e),n.appendChild(i))),!l["default"].findChild(n,"."+t)){var r=l["default"].findChild(n,".message");if(!r){r=document.createElement("div");for(var o=n.childNodes.length-1;o>=0;o--)n.childNodes[o]!==i&&r.insertBefore(n.childNodes[o],r.firstChild)}r.classList.add(t),n.insertBefore(r,n.firstChild)}n.parentNode!==this&&this.appendChild(n),h["default"].initModifier(this,this._scheme)}},{key:"_scheme",get:function(){return M}},{key:"_toast",get:function(){return l["default"].findChild(this,"."+L)}}],[{key:"registerAnimator",value:function(t,e){if(!(e.prototype instanceof b["default"]))throw new Error('"Animator" param must inherit OnsToastElement.ToastAnimator');D[t]=e}},{key:"animators",get:function(){return D}},{key:"ToastAnimator",get:function(){return b["default"]}}]),e}(S["default"]);e["default"]=I,customElements.define("ons-toast",I),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(4),f=i(c),d=n(3),h=i(d),p=n(1),v=i(p),m="toolbar-button",b={"":"toolbar-button--*"},y=function(t){function e(){r(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._compile(),t}return a(e,t),u(e,[{key:"_compile",value:function(){f["default"].prepare(this),this.classList.add(m),l["default"].updateRipple(this,void 0,{center:"",size:"contain",background:"transparent"}),h["default"].initModifier(this,b)}},{key:"attributeChangedCallback",value:function(t,e,n){switch(t){case"class":l["default"].restoreClass(this,m,b);break;case"modifier":h["default"].onModifierChanged(e,n,this,b)}}},{key:"disabled",set:function(t){return l["default"].toggleAttribute(this,"disabled",t)},get:function(){return this.hasAttribute("disabled")}}],[{key:"observedAttributes",get:function(){return["modifier","class"]}}]),e}(v["default"]);e["default"]=y,customElements.define("ons-toolbar-button",y),t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(){var t=z._readyLock.lock();window.addEventListener("DOMContentLoaded",function(){z.isWebView()?window.document.addEventListener("deviceready",t,!1):t()},!1)}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=n(0),s=i(u),l=n(5),c=i(l),f=n(15),d=i(f),h=n(6),p=i(h),v=n(156),m=i(v),b=n(153),y=i(b),_=n(7),g=i(_),w=n(44),k=i(w),O=n(155),E=i(O),P=n(157),C=i(P),x=n(62),A=i(x),S=n(27),j=i(S),T=n(58),M=i(T),L=n(4),D=i(L),I=n(42),N=i(I),R=n(2),B=i(R),q=n(28),H=n(10),F=i(H),z={};z._util=s["default"],z.animit=c["default"],z._deviceBackButtonDispatcher=j["default"],z._internal=g["default"],z.GestureDetector=d["default"],z.platform=p["default"],z.softwareKeyboard=C["default"],z.pageAttributeExpression=A["default"],z.orientation=k["default"],z.notification=m["default"],z.modifier=E["default"],z._animationOptionsParser=M["default"],z._autoStyle=D["default"],z._DoorLock=N["default"],z._contentReady=B["default"],z.defaultPageLoader=q.defaultPageLoader,z.PageLoader=q.PageLoader,z._BaseAnimator=F["default"],z._readyLock=new N["default"],z.platform.select((window.location.search.match(/platform=([\w-]+)/)||[])[1]),r(),z.isReady=function(){return!z._readyLock.isLocked()},z.isWebView=z.platform.isWebView,z.ready=function(t){z.isReady()?t():z._readyLock.waitUnlock(t)},z.setDefaultDeviceBackButtonListener=function(t){if(!z.isReady())throw new Error("This method must be called after ons.isReady() is true.");z._defaultDeviceBackButtonHandler.setListener(t)},z.disableDeviceBackButtonHandler=function(){if(!z.isReady())throw new Error("This method must be called after ons.isReady() is true.");z._deviceBackButtonDispatcher.disable()},z.enableDeviceBackButtonHandler=function(){if(!z.isReady())throw new Error("This method must be called after ons.isReady() is true.");z._deviceBackButtonDispatcher.enable()},z.enableAutoStatusBarFill=function(){if(z.isReady())throw new Error("This method must be called before ons.isReady() is true.");g["default"].config.autoStatusBarFill=!0},z.disableAutoStatusBarFill=function(){if(z.isReady())throw new Error("This method must be called before ons.isReady() is true.");g["default"].config.autoStatusBarFill=!1},z.mockStatusBar=function(){if(z.isReady())throw new Error("This method must be called before ons.isReady() is true.");var t=function(){if(!document.body.children[0]||!document.body.children[0].classList.contains("ons-status-bar-mock")){var t=p["default"].isAndroid(),e=function(t){return'<i class="'+t.split("-")[0]+" "+t+'"></i>'},n=t?e("zmdi-twitter")+" "+e("zmdi-google-play"):"No SIM "+e("fa-wifi"),i=t?"":"12:28 PM",r=t?e("zmdi-network")+" "+e("zmdi-wifi")+" "+e("zmdi-battery")+" 12:28 PM":"80% "+e("fa-battery-three-quarters");document.body.insertBefore(s["default"].createElement('<div class="ons-status-bar-mock '+(t?"android":"ios")+'">'+("<div>"+n+"</div><div>"+i+"</div><div>"+r+"</div>")+"</div>"),document.body.firstChild)}};document.body?t():g["default"].waitDOMContentLoaded(t)},z.disableAnimations=function(){g["default"].config.animationsDisabled=!0;
},z.enableAnimations=function(){g["default"].config.animationsDisabled=!1},z._disableWarnings=function(){g["default"].config.warningsDisabled=!0},z._enableWarnings=function(){g["default"].config.warningsDisabled=!1},z.disableAutoStyling=z._autoStyle.disable,z.enableAutoStyling=z._autoStyle.enable,z.forcePlatformStyling=function(t){z.enableAutoStyling(),z.platform.select(t||"ios"),z._util.arrayFrom(document.querySelectorAll("*")).forEach(function(t){"ons-if"===t.tagName.toLowerCase()?t._platformUpdate():t.tagName.match(/^ons-/i)&&(z._autoStyle.prepare(t,!0),"ons-tabbar"===t.tagName.toLowerCase()&&t._updatePosition())})},z.preload=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Promise.all((t instanceof Array?t:[t]).map(function(t){if("string"!=typeof t)throw new Error("Expected string arguments but got "+("undefined"==typeof t?"undefined":a(t)));return z._internal.getTemplateHTMLAsync(t)}))},z.createElement=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=t.trim();var n=function(t){var n=z._util.createElement(t);if(n.remove(),e.append){var i=e.append instanceof HTMLElement?e.append:document.body;i.insertBefore(n,e.insertBefore||null),e.link instanceof Function&&e.link(n)}return n};return"<"===t.charAt(0)?n(t):z._internal.getPageHTMLAsync(t).then(n)},z.createPopover=z.createDialog=z.createAlertDialog=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return z.createElement(t,o({append:!0},e))},z.openActionSheet=y["default"],z.resolveLoadingPlaceholder=function(t,e){var n=z._util.arrayFrom(window.document.querySelectorAll("[ons-loading-placeholder]"));if(0===n.length)throw new Error("No ons-loading-placeholder exists.");n.filter(function(t){return!t.getAttribute("page")}).forEach(function(n){n.setAttribute("ons-loading-placeholder",t),z._resolveLoadingPlaceholder(n,t,e)})},z._setupLoadingPlaceHolders=function(){z.ready(function(){var t=z._util.arrayFrom(window.document.querySelectorAll("[ons-loading-placeholder]"));t.forEach(function(t){var e=t.getAttribute("ons-loading-placeholder");"string"==typeof e&&z._resolveLoadingPlaceholder(t,e)})})},z._resolveLoadingPlaceholder=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t,e){return e()};e&&z.createElement(e).then(function(e){e.style.display="none",t.appendChild(e),n(e,function(){for(;t.firstChild&&t.firstChild!==e;)t.removeChild(t.firstChild);e.style.display=""})})["catch"](function(t){return Promise.reject("Unabled to resolve placeholder: "+t)})};var V="currentScript"in document?function(){return document.currentScript}:function(){return document.scripts[document.scripts.length-1]};z.getScriptPage=function(){return V()&&/ons-page/i.test(V().parentElement.tagName)&&V().parentElement||null},window._superSecretOns=z,e["default"]=z,t.exports=e["default"]},function(t,e,n){"use strict";n(159),n(176),n(177),n(175),n(174),n(158),n(160)},function(t,e,n){"use strict";n(162),n(163),n(164)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.IOSActionSheetAnimator=e.MDActionSheetAnimator=e.ActionSheetAnimator=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(5),l=i(s),c=n(10),f=i(c),d=e.ActionSheetAnimator=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"linear":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.2:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}))}return a(e,t),u(e,[{key:"show",value:function(t,e){e()}},{key:"hide",value:function(t,e){e()}}]),e}(f["default"]);e.MDActionSheetAnimator=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"ease":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.4:s;r(this,e);var c=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}));return c.maskTiming="linear",c.maskDuration=.2,c}return a(e,t),u(e,[{key:"show",value:function(t,e){l["default"].runAll((0,l["default"])(t._mask).queue({opacity:0}).wait(this.delay).queue({opacity:1},{duration:this.maskDuration,timing:this.maskTiming}),(0,l["default"])(t._sheet).saveStyle().queue({css:{transform:"translate3d(0, 80%, 0)",opacity:0},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(0, 0, 0)",opacity:1},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e&&e(),t()}))}},{key:"hide",value:function(t,e){l["default"].runAll((0,l["default"])(t._mask).queue({opacity:1}).wait(this.delay).queue({opacity:0},{duration:this.maskDuration,timing:this.maskTiming}),(0,l["default"])(t._sheet).saveStyle().queue({css:{transform:"translate3d(0, 0, 0)",opacity:1},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(0, 80%, 0)",opacity:0},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e&&e(),t()}))}}]),e}(d),e.IOSActionSheetAnimator=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"ease":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.3:s;r(this,e);var c=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}));return c.maskTiming="linear",c.maskDuration=.2,c.bodyHeight=document.body.clientHeight,c}return a(e,t),u(e,[{key:"show",value:function(t,e){l["default"].runAll((0,l["default"])(t._mask).queue({opacity:0}).wait(this.delay).queue({opacity:1},{duration:this.maskDuration,timing:this.maskTiming}),(0,l["default"])(t._sheet).saveStyle().queue({css:{transform:"translate3d(0, "+(this.bodyHeight/2-1)+"px, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(0, 0, 0)"},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e&&e(),t()}))}},{key:"hide",value:function(t,e){l["default"].runAll((0,l["default"])(t._mask).queue({opacity:1}).wait(this.delay).queue({opacity:0},{duration:this.maskDuration,timing:this.maskTiming}),(0,l["default"])(t._sheet).saveStyle().queue({css:{transform:"translate3d(0, 0, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(0, 100%, 0)"},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e&&e(),t()}))}}]),e}(d)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.IOSAlertDialogAnimator=e.AndroidAlertDialogAnimator=e.AlertDialogAnimator=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(5),l=i(s),c=n(10),f=i(c),d=e.AlertDialogAnimator=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"linear":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.2:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}))}return a(e,t),u(e,[{key:"show",value:function(t,e){e()}},{key:"hide",value:function(t,e){e()}}]),e}(f["default"]);e.AndroidAlertDialogAnimator=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"cubic-bezier(.1, .7, .4, 1)":n,a=t.duration,u=void 0===a?.2:a,s=t.delay,l=void 0===s?0:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{duration:u,timing:i,delay:l}))}return a(e,t),u(e,[{key:"show",value:function(t,e){e=e?e:function(){},l["default"].runAll((0,l["default"])(t._mask).queue({opacity:0}).wait(this.delay).queue({opacity:1},{duration:this.duration,timing:this.timing}),(0,l["default"])(t._dialog).saveStyle().queue({css:{transform:"translate3d(-50%, -50%, 0) scale3d(0.9, 0.9, 1.0)",opacity:0},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(-50%, -50%, 0) scale3d(1.0, 1.0, 1.0)",opacity:1},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}))}},{key:"hide",value:function(t,e){e=e?e:function(){},l["default"].runAll((0,l["default"])(t._mask).queue({opacity:1}).wait(this.delay).queue({opacity:0},{duration:this.duration,timing:this.timing}),(0,l["default"])(t._dialog).saveStyle().queue({css:{transform:"translate3d(-50%, -50%, 0) scale3d(1.0, 1.0, 1.0)",opacity:1},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(-50%, -50%, 0) scale3d(0.9, 0.9, 1.0)",opacity:0},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}))}}]),e}(d),e.IOSAlertDialogAnimator=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"cubic-bezier(.1, .7, .4, 1)":n,a=t.duration,u=void 0===a?.2:a,s=t.delay,l=void 0===s?0:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{duration:u,timing:i,delay:l}))}return a(e,t),u(e,[{key:"show",value:function(t,e){e=e?e:function(){},l["default"].runAll((0,l["default"])(t._mask).queue({opacity:0}).wait(this.delay).queue({opacity:1},{duration:this.duration,timing:this.timing}),(0,l["default"])(t._dialog).saveStyle().queue({css:{transform:"translate3d(-50%, -50%, 0) scale3d(1.3, 1.3, 1.0)",opacity:0},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(-50%, -50%, 0) scale3d(1.0, 1.0, 1.0)",opacity:1},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}))}},{key:"hide",value:function(t,e){e=e?e:function(){},l["default"].runAll((0,l["default"])(t._mask).queue({opacity:1}).wait(this.delay).queue({opacity:0},{duration:this.duration,timing:this.timing}),(0,l["default"])(t._dialog).saveStyle().queue({css:{opacity:1},duration:0}).wait(this.delay).queue({css:{opacity:0},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}))}}]),e}(d)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.SlideDialogAnimator=e.IOSDialogAnimator=e.AndroidDialogAnimator=e.DialogAnimator=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(5),l=i(s),c=n(10),f=i(c),d=e.DialogAnimator=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"linear":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.2:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}))}return a(e,t),u(e,[{key:"show",value:function(t,e){e()}},{key:"hide",value:function(t,e){e()}}]),e}(f["default"]);e.AndroidDialogAnimator=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"ease-in-out":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.3:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}))}return a(e,t),u(e,[{key:"show",value:function(t,e){e=e?e:function(){},l["default"].runAll((0,l["default"])(t._mask).queue({opacity:0}).wait(this.delay).queue({opacity:1},{duration:this.duration,timing:this.timing}),(0,l["default"])(t._dialog).saveStyle().queue({css:{transform:"translate3d(-50%, -60%, 0)",opacity:0},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(-50%, -50%, 0)",opacity:1},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}))}},{key:"hide",value:function(t,e){e=e?e:function(){},l["default"].runAll((0,l["default"])(t._mask).queue({opacity:1}).wait(this.delay).queue({opacity:0},{duration:this.duration,timing:this.timing}),(0,l["default"])(t._dialog).saveStyle().queue({css:{transform:"translate3d(-50%, -50%, 0)",opacity:1},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(-50%, -60%, 0)",opacity:0},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}))}}]),e}(d),e.IOSDialogAnimator=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"ease-in-out":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.2:s;r(this,e);var c=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}));return c.bodyHeight=document.body.clientHeight,c}return a(e,t),u(e,[{key:"show",value:function(t,e){e=e?e:function(){},l["default"].runAll((0,l["default"])(t._mask).queue({opacity:0}).wait(this.delay).queue({opacity:1},{duration:this.duration,timing:this.timing}),(0,l["default"])(t._dialog).saveStyle().queue({css:{transform:"translate3d(-50%, "+(this.bodyHeight/2-1)+"px, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(-50%, -50%, 0)"},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}))}},{key:"hide",value:function(t,e){e=e?e:function(){},l["default"].runAll((0,l["default"])(t._mask).queue({opacity:1}).wait(this.delay).queue({opacity:0},{duration:this.duration,timing:this.timing}),(0,l["default"])(t._dialog).saveStyle().queue({css:{transform:"translate3d(-50%, -50%, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(-50%, "+(this.bodyHeight/2-1)+"px, 0)"},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}))}}]),e}(d),e.SlideDialogAnimator=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"cubic-bezier(.1, .7, .4, 1)":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.2:s;r(this,e);var c=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}));return c.bodyHeight=document.body.clientHeight,c}return a(e,t),u(e,[{key:"show",value:function(t,e){e=e?e:function(){},l["default"].runAll((0,l["default"])(t._mask).queue({opacity:0}).wait(this.delay).queue({opacity:1},{duration:this.duration,timing:this.timing}),(0,l["default"])(t._dialog).saveStyle().queue({css:{transform:"translate3d(-50%, "+(-(this.bodyHeight/2)+1-t._dialog.clientHeight)+"px, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(-50%, -50%, 0)"},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}))}},{key:"hide",value:function(t,e){e=e?e:function(){},l["default"].runAll((0,l["default"])(t._mask).queue({opacity:1}).wait(this.delay).queue({opacity:0},{duration:this.duration,timing:this.timing}),(0,l["default"])(t._dialog).saveStyle().queue({css:{transform:"translate3D(-50%, -50%, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3d(-50%, "+(-(this.bodyHeight/2)+1-t._dialog.clientHeight)+"px, 0)"},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}))}}]),e}(d)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(5),l=i(s),c=n(41),f=i(c),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"linear":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.3:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}))}return a(e,t),u(e,[{key:"show",value:function(t,e){e=e?e:function(){},(0,l["default"])(t).queue({opacity:0}).wait(this.delay).queue({opacity:1},{duration:this.duration,timing:this.timing}).queue(function(t){e(),t()}).play()}},{key:"hide",value:function(t,e){e=e?e:function(){},(0,l["default"])(t).queue({opacity:1}).wait(this.delay).queue({opacity:0},{duration:this.duration,timing:this.timing}).queue(function(t){e(),t()}).play()}}]),e}(f["default"]);e["default"]=d,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(5),l=i(s),c=n(41),f=i(c),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"cubic-bezier( .1, .7, .1, 1)":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.4:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}))}return a(e,t),u(e,[{key:"show",value:function(t,e){e=e?e:function(){},(0,l["default"])(t).saveStyle().queue({css:{transform:"translate3D(0, 100%, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 0, 0)"},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}).play()}},{key:"hide",value:function(t,e){e=e?e:function(){},(0,l["default"])(t).saveStyle().queue({css:{transform:"translate3D(0, 0, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 100%, 0)"},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}).play()}}]),e}(f["default"]);e["default"]=d,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function v(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:v(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=n(13),c=i(l),f=n(0),d=(i(f),n(5)),h=i(d),p=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"linear":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.4:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}))}return a(e,t),u(e,[{key:"push",value:function(t,n,i){var r=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,t);h["default"].runAll((0,h["default"])([t._getContentElement(),t._getBackgroundElement()]).saveStyle().queue({css:{transform:"translate3D(0, 0, 0)",opacity:0},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 0, 0)",opacity:1},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){r(),i(),t()}),(0,h["default"])(t._getToolbarElement()).saveStyle().queue({css:{transform:"translate3D(0, 0, 0)",opacity:0},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 0, 0)",opacity:1},duration:this.duration,timing:this.timing}).restoreStyle())}},{key:"pop",value:function(t,n,i){var r=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,t);h["default"].runAll((0,h["default"])([n._getContentElement(),n._getBackgroundElement()]).queue({css:{transform:"translate3D(0, 0, 0)",opacity:1},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 0, 0)",opacity:0},duration:this.duration,timing:this.timing}).queue(function(t){r(),i(),t()}),(0,h["default"])(n._getToolbarElement()).queue({css:{transform:"translate3D(0, 0, 0)",opacity:1},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 0, 0)",opacity:0},duration:this.duration,timing:this.timing}))}}]),e}(c["default"]);e["default"]=p,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function m(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:m(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=n(13),c=i(l),f=n(0),d=i(f),h=n(5),p=i(h),v=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"cubic-bezier(.1, .7, .1, 1)":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.4:s;r(this,e);var c=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}));return c.backgroundMask=d["default"].createElement('\n      <div style="position: absolute; width: 100%; height: 100%;\n        background: linear-gradient(black, white);"></div>\n    '),c}return a(e,t),u(e,[{key:"push",value:function(t,n,i){var r=this;this.backgroundMask.remove(),n.parentNode.insertBefore(this.backgroundMask,n);var o=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,t);p["default"].runAll((0,p["default"])(t).saveStyle().queue({css:{transform:"translate3D(0, 100%, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 0, 0)"},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){r.backgroundMask.remove(),o(),i(),t()}),(0,p["default"])(n).saveStyle().queue({css:{transform:"translate3D(0, 0, 0)",opacity:1},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, -10%, 0)",opacity:.9},duration:this.duration,timing:this.timing}).restoreStyle())}},{key:"pop",value:function(t,n,i){var r=this;this.backgroundMask.remove(),t.parentNode.insertBefore(this.backgroundMask,t);var o=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,t);p["default"].runAll((0,p["default"])(t).saveStyle().queue({css:{transform:"translate3D(0, -43px, 0)",opacity:.9},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 0, 0)",opacity:1},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){r.backgroundMask.remove(),o(),i(),t()}),(0,p["default"])(n).saveStyle().queue({css:{transform:"translate3D(0, 0, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 100%, 0)"},duration:this.duration,timing:this.timing}).restoreStyle())}}]),e}(c["default"]);e["default"]=v,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function m(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:m(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=n(57),c=i(l),f=n(0),d=i(f),h=n(5),p=i(h),v=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.duration,i=void 0===n?.15:n,a=t.timing,u=void 0===a?"linear":a,s=t.delay,l=void 0===s?0:s;r(this,e);var c=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{duration:i,timing:u,delay:l}));return c.durationRestore=.1,c.swipeShadow=d["default"].createElement('\n      <div style="position: absolute; height: 100%; width: 12px; right: 100%; top: 0; bottom: 0; z-index: -1;\n        background: linear-gradient(to right, transparent 0, rgba(0,0,0,.04) 40%, rgba(0,0,0,.12) 80%, rgba(0,0,0,.16) 100%);"></div>\n    '),c.isDragStart=!0,c}return a(e,t),u(e,[{key:"_dragStartSetup",value:function(t,n){this.isDragStart=!1,this.unblock=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,n),t.parentElement.insertBefore(this.backgroundMask,t),this.target={enter:d["default"].findToolbarPage(t)||t,leave:d["default"].findToolbarPage(n)||n},this.decomp={enter:this._decompose(this.target.enter),leave:this._decompose(this.target.leave)},this.delta=this._calculateDelta(n,this.decomp.leave),this.shouldAnimateToolbar=this._shouldAnimateToolbar(this.target.enter,this.target.leave),this.shouldAnimateToolbar?(this.swipeShadow.style.top=this.decomp.leave.toolbar.offsetHeight+"px",this.target.leave.appendChild(this.swipeShadow),this._saveStyle(this.target.enter,this.target.leave)):(n.appendChild(this.swipeShadow),this._saveStyle(t,n)),n.classList.add("overflow-visible"),this.overflowElement=n,this.decomp.leave.content.classList.add("content-swiping")}},{key:"translate",value:function(t,e,n,i){this.isDragStart&&(this.maxWidth=e,this._dragStartSetup(n,i));var r=(t-e)/e;this.shouldAnimateToolbar?p["default"].runAll((0,p["default"])([this.decomp.enter.content,this.decomp.enter.bottomToolbar,this.decomp.enter.background]).queue({transform:"translate3d("+25*r+"%, 0, 0)",opacity:1+10*r/100}),(0,p["default"])(this.decomp.enter.toolbarCenter).queue({transform:"translate3d("+this.delta.title*r+"px, 0, 0)",opacity:1+r}),(0,p["default"])(this.decomp.enter.backButtonLabel).queue({opacity:1+10*r/100,transform:"translate3d("+this.delta.label*r+"px, 0, 0)"}),(0,p["default"])(this.decomp.enter.other).queue({opacity:1+r}),(0,p["default"])([this.decomp.leave.content,this.decomp.leave.bottomToolbar,this.decomp.leave.background,this.swipeShadow]).queue({transform:"translate3d("+t+"px, 0px, 0px)"}),(0,p["default"])(this.decomp.leave.toolbar).queue({opacity:-1*r}),(0,p["default"])(this.decomp.leave.toolbarCenter).queue({transform:"translate3d("+125*(1+r)+"%, 0, 0)"}),(0,p["default"])(this.decomp.leave.backButtonLabel).queue({opacity:-1*r,transform:"translate3d("+this.delta.title*(1+r)+"px, 0, 0)"}),(0,p["default"])(this.swipeShadow).queue({opacity:-1*r})):p["default"].runAll((0,p["default"])(i).queue({transform:"translate3d("+t+"px, 0px, 0px)"}),(0,p["default"])(n).queue({transform:"translate3d("+25*r+"%, 0, 0)",opacity:1+10*r/100}),(0,p["default"])(this.swipeShadow).queue({opacity:-1*r}))}},{key:"restore",value:function(t,e,n){var i=this;this.isDragStart||(this.shouldAnimateToolbar?p["default"].runAll((0,p["default"])([this.decomp.enter.content,this.decomp.enter.bottomToolbar,this.decomp.enter.background]).queue({transform:"translate3d(-25%, 0, 0)",opacity:.9},{timing:this.timing,duration:this.durationRestore}),(0,p["default"])(this.decomp.enter.toolbarCenter).queue({transform:"translate3d(-"+this.delta.title+"px, 0, 0)",transition:"opacity "+this.durationRestore+"s linear, transform "+this.durationRestore+"s "+this.timing,opacity:0}),(0,p["default"])(this.decomp.enter.backButtonLabel).queue({transform:"translate3d(-"+this.delta.label+"px, 0, 0)"},{timing:this.timing,duration:this.durationRestore}),(0,p["default"])(this.decomp.enter.other).queue({opacity:0},{timing:this.timing,
duration:this.durationRestore}),(0,p["default"])([this.decomp.leave.content,this.decomp.leave.bottomToolbar,this.decomp.leave.background,this.swipeShadow]).queue({transform:"translate3d(0, 0px, 0px)"},{timing:this.timing,duration:this.durationRestore}),(0,p["default"])(this.decomp.leave.toolbar).queue({opacity:1},{timing:this.timing,duration:this.durationRestore}),(0,p["default"])(this.decomp.leave.toolbarCenter).queue({transform:"translate3d(0, 0, 0)"},{timing:this.timing,duration:this.durationRestore}),(0,p["default"])(this.decomp.leave.backButtonLabel).queue({opacity:1,transform:"translate3d(0, 0, 0)",transition:"opacity "+this.durationRestore+"s linear, transform "+this.durationRestore+"s "+this.timing}),(0,p["default"])(this.swipeShadow).queue({opacity:0},{timing:this.timing,duration:this.durationRestore}).queue(function(t){i._reset(i.target.enter,i.target.leave),n&&n(),t()})):p["default"].runAll((0,p["default"])(t).queue({css:{transform:"translate3D(-25%, 0px, 0px)",opacity:.9},timing:this.timing,duration:this.durationRestore}),(0,p["default"])(e).queue({css:{transform:"translate3D(0px, 0px, 0px)"},timing:this.timing,duration:this.durationRestore}).queue(function(r){i._reset(t,e),n&&n(),r()})))}},{key:"pop",value:function(t,e,n){var i=this;this.isDragStart||(this.shouldAnimateToolbar?p["default"].runAll((0,p["default"])([this.decomp.enter.content,this.decomp.enter.bottomToolbar,this.decomp.enter.background]).queue({transform:"translate3d(0, 0, 0)",opacity:1},{timing:this.timing,duration:this.duration}),(0,p["default"])(this.decomp.enter.toolbarCenter).queue({transform:"translate3d(0, 0, 0)",transition:"opacity "+this.duration+"s linear, transform "+this.duration+"s "+this.timing,opacity:1}),(0,p["default"])(this.decomp.enter.backButtonLabel).queue({transform:"translate3d(0, 0, 0)"},{timing:this.timing,duration:this.duration}),(0,p["default"])(this.decomp.enter.other).queue({opacity:1},{timing:this.timing,duration:this.duration}),(0,p["default"])([this.decomp.leave.content,this.decomp.leave.bottomToolbar,this.decomp.leave.background]).queue({transform:"translate3d(100%, 0px, 0px)"},{timing:this.timing,duration:this.duration}),(0,p["default"])(this.decomp.leave.toolbar).queue({opacity:0},{timing:this.timing,duration:this.duration}),(0,p["default"])(this.decomp.leave.toolbarCenter).queue({transform:"translate3d(125%, 0, 0)"},{timing:this.timing,duration:this.duration}),(0,p["default"])(this.decomp.leave.backButtonLabel).queue({opacity:0,transform:"translate3d("+this.delta.title+"px, 0, 0)",transition:"opacity "+this.duration+"s linear, transform "+this.duration+"s "+this.timing}),(0,p["default"])(this.swipeShadow).queue({opacity:0,transform:"translate3d("+this.maxWidth+"px, 0px, 0px)"},{timing:this.timing,duration:this.duration}).queue(function(t){i._reset(i.target.enter,i.target.leave),n&&n(),t()})):p["default"].runAll((0,p["default"])(t).queue({css:{transform:"translate3D(0px, 0px, 0px)",opacity:1},duration:this.duration,timing:this.timing}),(0,p["default"])(e).queue({css:{transform:"translate3D(100%, 0px, 0px)"},duration:this.duration,timing:this.timing}).queue(function(r){i._reset(t,e),n&&n(),r()})))}},{key:"_saveStyle",value:function(){var t=this;this._savedStyle=new WeakMap;for(var e=function(e){return t._savedStyle.set(e,e.getAttribute("style"))},n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];i.forEach(e),Object.keys(this.decomp).forEach(function(n){Object.keys(t.decomp[n]).forEach(function(i){(t.decomp[n][i]instanceof Array?t.decomp[n][i]:[t.decomp[n][i]]).forEach(e)})})}},{key:"_restoreStyle",value:function(){for(var t=this,e=function(e){null===t._savedStyle.get(e)?e.removeAttribute("style"):e.setAttribute("style",t._savedStyle.get(e)),t._savedStyle["delete"](e)},n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];i.forEach(e),Object.keys(this.decomp).forEach(function(n){Object.keys(t.decomp[n]).forEach(function(i){(t.decomp[n][i]instanceof Array?t.decomp[n][i]:[t.decomp[n][i]]).forEach(e)})})}},{key:"_reset",value:function(){this._savedStyle&&this._restoreStyle.apply(this,arguments),this.unblock&&this.unblock(),this.swipeShadow.remove(),this.backgroundMask.remove(),this.overflowElement.classList.remove("overflow-visible"),this.decomp.leave.content.classList.remove("content-swiping"),this.decomp=this.target=this.overflowElement=this._savedStyle=null,this.isDragStart=!0}}]),e}(c["default"]);e["default"]=v,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function v(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:v(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=n(13),c=i(l),f=n(0),d=(i(f),n(5)),h=i(d),p=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"cubic-bezier(0.4, 0.0, 0.2, 1)":n,a=t.timingOnPop,u=void 0===a?"cubic-bezier(0.4, 0.0, 1, 1)":a,s=t.delay,l=void 0===s?0:s,c=t.duration,f=void 0===c?.2:c;r(this,e);var d=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:l,duration:f}));return d.timingOnPop=u,d}return a(e,t),u(e,[{key:"push",value:function(t,n,i){var r=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,t);h["default"].runAll((0,h["default"])(t).saveStyle().queue({css:{transform:"translate3D(0, 42px, 0)",opacity:0},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 0, 0)",opacity:1},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){r(),i(),t()}))}},{key:"pop",value:function(t,n,i){var r=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,t);h["default"].runAll((0,h["default"])(n).queue({css:{transform:"translate3D(0, 0, 0)",opacity:1},duration:0}).wait(.15).queue({css:{transform:"translate3D(0, 38px, 0)",opacity:0},duration:this.duration,timing:this.timingOnPop}).queue(function(t){r(),i(),t()}))}}]),e}(c["default"]);e["default"]=p,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function m(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:m(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=n(13),c=i(l),f=n(0),d=i(f),h=n(5),p=i(h),v=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"cubic-bezier(.1, .7, .1, 1)":n,a=t.delay,u=void 0===a?.05:a,s=t.duration,l=void 0===s?.4:s;r(this,e);var c=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}));return c.backgroundMask=d["default"].createElement('\n      <div style="position: absolute; width: 100%; height: 100%;\n        background-color: black;"></div>\n    '),c}return a(e,t),u(e,[{key:"push",value:function(t,n,i){var r=this;this.backgroundMask.remove(),n.parentNode.insertBefore(this.backgroundMask,n);var o=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,t),a=(0,p["default"])(this.backgroundMask).wait(this.delay+this.duration).queue(function(t){r.backgroundMask.remove(),t()});p["default"].runAll(a,(0,p["default"])(t).saveStyle().queue({css:{transform:"translate3D(0, 100%, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 0, 0)"},duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){o(),i(),t()}),(0,p["default"])(n).queue({css:{opacity:1},duration:0}).queue({css:{opacity:.4},duration:this.duration,timing:this.timing}))}},{key:"pop",value:function(t,n,i){var r=this;this.backgroundMask.remove(),t.parentNode.insertBefore(this.backgroundMask,t);var o=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,t);p["default"].runAll((0,p["default"])(this.backgroundMask).wait(this.delay+this.duration).queue(function(t){r.backgroundMask.remove(),t()}),(0,p["default"])(t).queue({css:{transform:"translate3D(0, 0, 0)",opacity:.4},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 0, 0)",opacity:1},duration:this.duration,timing:this.timing}).queue(function(t){o(),i(),t()}),(0,p["default"])(n).queue({css:{transform:"translate3D(0, 0, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 100%, 0)"},duration:this.duration,timing:this.timing}))}}]),e}(c["default"]);e["default"]=v,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function m(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:m(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=n(0),c=i(l),f=n(13),d=i(f),h=n(5),p=i(h),v=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"cubic-bezier(.1, .7, .4, 1)":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.3:s;r(this,e);var f=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}));return f.backgroundMask=c["default"].createElement('\n      <div style="position: absolute; width: 100%; height: 100%; z-index: 2;\n        background-color: black; opacity: 0;"></div>\n    '),f.blackMaskOpacity=.4,f}return a(e,t),u(e,[{key:"push",value:function(t,n,i){var r=this;this.backgroundMask.remove(),n.parentElement.insertBefore(this.backgroundMask,n.nextSibling);var o=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,t);p["default"].runAll((0,p["default"])(this.backgroundMask).saveStyle().queue({opacity:0,transform:"translate3d(0, 0, 0)"}).wait(this.delay).queue({opacity:this.blackMaskOpacity},{duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){r.backgroundMask.remove(),t()}),(0,p["default"])(t).saveStyle().queue({css:{transform:"translate3D(100%, 0, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0, 0, 0)"},duration:this.duration,timing:this.timing}).restoreStyle(),(0,p["default"])(n).saveStyle().queue({css:{transform:"translate3D(0, 0, 0)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(-45%, 0px, 0px)"},duration:this.duration,timing:this.timing}).restoreStyle().wait(.2).queue(function(t){o(),i(),t()}))}},{key:"pop",value:function(t,n,i){var r=this;this.backgroundMask.remove(),t.parentNode.insertBefore(this.backgroundMask,t.nextSibling);var o=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"block",this).call(this,t);p["default"].runAll((0,p["default"])(this.backgroundMask).saveStyle().queue({opacity:this.blackMaskOpacity,transform:"translate3d(0, 0, 0)"}).wait(this.delay).queue({opacity:0},{duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){r.backgroundMask.remove(),t()}),(0,p["default"])(t).saveStyle().queue({css:{transform:"translate3D(-45%, 0px, 0px)",opacity:.9},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(0px, 0px, 0px)",opacity:1},duration:this.duration,timing:this.timing}).restoreStyle(),(0,p["default"])(n).queue({css:{transform:"translate3D(0px, 0px, 0px)"},duration:0}).wait(this.delay).queue({css:{transform:"translate3D(100%, 0px, 0px)"},duration:this.duration,timing:this.timing}).wait(.2).queue(function(t){o(),i(),t()}))}}]),e}(d["default"]);e["default"]=v,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(13),l=i(s),c=function(t){function e(t){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return a(e,t),u(e,[{key:"push",value:function(t,e,n){n()}},{key:"pop",value:function(t,e,n){n()}}]),e}(l["default"]);e["default"]=c,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.IOSFadePopoverAnimator=e.MDFadePopoverAnimator=e.PopoverAnimator=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(5),f=i(c),d=n(10),h=i(d),p=e.PopoverAnimator=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"cubic-bezier(.1, .7, .4, 1)":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.2:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}))}return a(e,t),u(e,[{key:"show",value:function(t,e){e()}},{key:"hide",value:function(t,e){e()}},{key:"_animate",value:function(t,e){var n=e.from,i=e.to,r=e.options,o=e.callback,a=e.restore,u=void 0!==a&&a,s=e.animation;return r=l["default"].extend({},this.options,r),s&&(n=s.from,i=s.to),s=(0,f["default"])(t),u&&(s=s.saveStyle()),s=s.queue(n).wait(this.delay).queue({css:i,duration:this.duration,timing:this.timing}),u&&(s=s.restoreStyle()),o&&(s=s.queue(function(t){o(),t()})),s}},{key:"_animateAll",value:function(t,e){var n=this;Object.keys(e).forEach(function(i){return n._animate(t[i],e[i]).play()})}}]),e}(h["default"]),v={out:{from:{opacity:1},to:{opacity:0}},"in":{from:{opacity:0},to:{opacity:1}}},m=e.MDFadePopoverAnimator=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"show",value:function(t,e){this._animateAll(t,{_mask:v["in"],_popover:{animation:v["in"],restore:!0,callback:e}})}},{key:"hide",value:function(t,e){this._animateAll(t,{_mask:v.out,_popover:{animation:v.out,restore:!0,callback:e}})}}]),e}(p);e.IOSFadePopoverAnimator=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"show",value:function(t,e){this._animateAll(t,{_mask:v["in"],_popover:{from:{transform:"scale3d(1.3, 1.3, 1.0)",opacity:0},to:{transform:"scale3d(1.0, 1.0,  1.0)",opacity:1},restore:!0,callback:e}})}}]),e}(m)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(7),u=i(a),s=function(){function t(){r(this,t),this._queue=[],this._index=0}return o(t,[{key:"animate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,i=(new Date).getTime(),r={},o=!1,a=!1,s=!1,l=Object.keys(e),c=function(){var e=window.getComputedStyle(t);l.forEach(e.getPropertyValue.bind(e)),e=t.offsetHeight},f={stop:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s&&clearTimeout(s);var c=Math.min(1,((new Date).getTime()-i)/n);return l.forEach(function(n){t.style[n]=(1-c)*r[n]+c*e[n]+("opacity"==n?"":"px")}),t.style.transitionDuration="0s",u.stopNext?a=!1:o||(o=!0,a&&a()),f},then:function(t){return a=t,o&&a&&a(),f},speed:function(a){if(u["default"].config.animationsDisabled&&(a=0),!o){s&&clearTimeout(s);var d=(new Date).getTime()-i,h=d/n,p=a*(1-h);l.forEach(function(n){t.style[n]=(1-h)*r[n]+h*e[n]+("opacity"==n?"":"px")}),c(),i=t.speedUpTime,n=p,t.style.transitionDuration=n/1e3+"s",l.forEach(function(n){t.style[n]=e[n]+("opacity"==n?"":"px")}),s=setTimeout(f.stop,p)}return f},finish:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,e=((new Date).getTime()-i)/n;return f.speed(t/(1-e)),f}};if(t.hasAttribute("disabled")||o||u["default"].config.animationsDisabled)return f;var d=window.getComputedStyle(t);return l.forEach(function(t){var e=parseFloat(d.getPropertyValue(t));r[t]=isNaN(e)?0:e}),o||(t.style.transitionProperty=l.join(","),t.style.transitionDuration=n/1e3+"s",l.forEach(function(n){t.style[n]=e[n]+("opacity"==n?"":"px")})),s=setTimeout(f.stop,n),this._onStopAnimations(t,f.stop),f}}]),o(t,[{key:"_onStopAnimations",value:function(t,e){var n=this._queue,i=this._index++;n[t]=n[t]||[],n[t][i]=function(r){return delete n[t][i],n[t]&&0==n[t].length&&delete n[t],e(r)}}},{key:"stopAnimations",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Array.isArray(t)?t.forEach(function(t){e.stopAnimations(t,n)}):void(this._queue[t]||[]).forEach(function(t){t(n||{})})}},{key:"stopAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.stopAnimations(Object.keys(this._queue),t)}},{key:"fade",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return this.animate(t,{opacity:0},e)}}]),t}();e["default"]=s,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(5),l=i(s),c=n(32),f=i(c),d=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"translate",value:function(t){this._mask.style.display="block",(0,l["default"])(this._side).queue({transform:"translate3d("+(this.minus+t)+"px, 0px, 0px)"}).play()}},{key:"open",value:function(t){l["default"].runAll((0,l["default"])(this._side).wait(this.delay).queue({transform:"translate3d("+this.minus+"100%, 0px, 0px)"},{duration:this.duration,timing:this.timing}).queue(function(e){e(),t&&t()}),(0,l["default"])(this._mask).wait(this.delay).queue({display:"block"}).queue({opacity:"1"},{duration:this.duration,timing:"linear"}))}},{key:"close",value:function(t){l["default"].runAll((0,l["default"])(this._side).wait(this.delay).queue({transform:"translate3d(0px, 0px, 0px)"},{duration:this.duration,timing:this.timing}).queue(function(e){t&&t(),e()}),(0,l["default"])(this._mask).wait(this.delay).queue({opacity:"0"},{duration:this.duration,timing:"linear"}).queue({display:"none"}))}}]),e}(f["default"]);e["default"]=d,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function p(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:p(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=n(5),c=i(l),f=n(32),d=i(f),h=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"_getSlidingElements",value:function(){var t=[this._side,this._content];return this._oppositeSide&&"split"===this._oppositeSide.mode&&t.push(this._oppositeSide),t}},{key:"translate",value:function(t){this._slidingElements||(this._slidingElements=this._getSlidingElements()),this._mask.style.display="block",(0,c["default"])(this._slidingElements).queue({transform:"translate3d("+(this.minus+t)+"px, 0px, 0px)"}).play()}},{key:"open",value:function(t){var e=this,n=this._side.offsetWidth;this._slidingElements=this._getSlidingElements(),c["default"].runAll((0,c["default"])(this._slidingElements).wait(this.delay).queue({transform:"translate3d("+(this.minus+n)+"px, 0px, 0px)"},{duration:this.duration,timing:this.timing}).queue(function(n){e._slidingElements=null,n(),t&&t()}),(0,c["default"])(this._mask).wait(this.delay).queue({display:"block"}))}},{key:"close",value:function(t){var n=this;this._slidingElements=this._getSlidingElements(),c["default"].runAll((0,c["default"])(this._slidingElements).wait(this.delay).queue({transform:"translate3d(0px, 0px, 0px)"},{duration:this.duration,timing:this.timing}).queue(function(i){n._slidingElements=null,s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"clearTransition",n).call(n),t&&t(),i()}),(0,c["default"])(this._mask).wait(this.delay).queue({display:"none"}))}}]),e}(d["default"]);e["default"]=h,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function y(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:y(r,e,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=n(2),c=i(l),f=n(14),d=i(f),h=n(5),p=i(h),v=n(32),m=i(v),b=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"_getSlidingElements",value:function(){var t=[this._content,this._mask];return this._oppositeSide&&"split"===this._oppositeSide.mode&&t.push(this._oppositeSide),t}},{key:"activate",value:function(t){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"activate",this).call(this,t),this.maxWidth=this._getMaxWidth(),"collapse"===t.mode&&this._setStyles(t)}},{key:"deactivate",value:function(){this._side&&this._unsetStyles(this._side),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deactivate",this).call(this)}},{key:"_setStyles",value:function(t){(0,d["default"])(t,{left:"right"===t.side?"auto":0,right:"right"===t.side?0:"auto",zIndex:0,backgroundColor:"black",transform:this._generateBehindPageStyle(0).container.transform,display:"none"});var e=t.parentElement;(0,c["default"])(e,function(){return e.content&&(0,d["default"])(e.content,{boxShadow:"0 0 12px 0 rgba(0, 0, 0, 0.2)"})})}},{key:"_unsetStyles",value:function(t){d["default"].clear(t,"left right zIndex backgroundColor display"),t._content&&(t._content.style.opacity=""),this._oppositeSide&&"split"!==this._oppositeSide.mode||t.parentElement.content&&d["default"].clear(t.parentElement.content,"boxShadow")}},{key:"_generateBehindPageStyle",value:function(t){var e=this.maxWidth,n=(t-e)/e*10;n=isNaN(n)?0:Math.max(Math.min(n,0),-10);var i="translate3d("+(this.minus?-1:1)*n+"%, 0, 0)",r=1+n/100;return{content:{opacity:r},container:{transform:i}}}},{key:"translate",value:function(t){this._side.style.display="",this._side.style.zIndex=1,this.maxWidth=this.maxWidth||this._getMaxWidth();var e=this._generateBehindPageStyle(Math.min(t,this.maxWidth));this._slidingElements||(this._slidingElements=this._getSlidingElements()),this._mask.style.display="block",p["default"].runAll((0,p["default"])(this._slidingElements).queue({transform:"translate3d("+(this.minus+t)+"px, 0px, 0px)"}),(0,p["default"])(this._side._content).queue(e.content),(0,p["default"])(this._side).queue(e.container))}},{key:"open",value:function(t){var e=this;this._side.style.display="",this._side.style.zIndex=1,this.maxWidth=this.maxWidth||this._getMaxWidth();var n=this._generateBehindPageStyle(this.maxWidth);this._slidingElements=this._getSlidingElements(),setTimeout(function(){p["default"].runAll((0,p["default"])(e._slidingElements).wait(e.delay).queue({transform:"translate3d("+(e.minus+e.maxWidth)+"px, 0px, 0px)"},{duration:e.duration,timing:e.timing}),(0,p["default"])(e._mask).wait(e.delay).queue({display:"block"}),(0,p["default"])(e._side._content).wait(e.delay).queue(n.content,{duration:e.duration,timing:e.timing}),(0,p["default"])(e._side).wait(e.delay).queue(n.container,{duration:e.duration,timing:e.timing}).queue(function(n){e._slidingElements=null,n(),t&&t()}))},0)}},{key:"close",value:function(t){var e=this,n=this._generateBehindPageStyle(0);this._slidingElements=this._getSlidingElements(),p["default"].runAll((0,p["default"])(this._slidingElements).wait(this.delay).queue({transform:"translate3d(0px, 0px, 0px)"},{duration:this.duration,timing:this.timing}),(0,p["default"])(this._mask).wait(this.delay).queue({display:"none"}),(0,p["default"])(this._side._content).wait(this.delay).queue(n.content,{duration:this.duration,timing:this.timing}),(0,p["default"])(this._side).wait(this.delay).queue(n.container,{duration:this.duration,timing:this.timing}).queue(function(n){e._slidingElements=null,e._side.style.zIndex=0,e._side.style.display="none",e._side._content.style.opacity="",t&&t(),n()}))}},{key:"_getMaxWidth",value:function(){return this._side.offsetWidth}}]),e}(m["default"]);e["default"]=b,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=i(s),c=n(5),f=i(c),d=n(6),h=i(d),p=n(33),v=i(p),m=n(26),b=i(m),y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"ease":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.25:s;
r(this,e);var c=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}));return c.messageDelay=.4*c.duration+c.delay,h["default"].isAndroid()?c.ascension=48:v["default"].isIPhoneXPortraitPatchActive()?c.ascension=98:v["default"].isIPhoneXLandscapePatchActive()?c.ascension=85:c.ascension=64,c}return a(e,t),u(e,[{key:"show",value:function(t,e){t=t._toast,l["default"].globals.fabOffset=this.ascension,f["default"].runAll((0,f["default"])(t).saveStyle().queue({transform:"translate3d(0, "+this.ascension+"px, 0)"}).wait(this.delay).queue({transform:"translate3d(0, 0, 0)"},{duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e&&e(),t()}),(0,f["default"])(this._getFabs()).wait(this.delay).queue({transform:"translate3d(0, -"+this.ascension+"px, 0) scale(1)"},{duration:this.duration,timing:this.timing}),(0,f["default"])(l["default"].arrayFrom(t.children)).saveStyle().queue({opacity:0}).wait(this.messageDelay).queue({opacity:1},{duration:this.duration,timing:this.timing}).restoreStyle())}},{key:"hide",value:function(t,e){t=t._toast,l["default"].globals.fabOffset=0,f["default"].runAll((0,f["default"])(t).saveStyle().queue({transform:"translate3d(0, 0, 0)"}).wait(this.delay).queue({transform:"translate3d(0, "+this.ascension+"px, 0)"},{duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e&&e(),t()}),(0,f["default"])(this._getFabs()).wait(this.delay).queue({transform:"translate3d(0, 0, 0) scale(1)"},{duration:this.duration,timing:this.timing}),(0,f["default"])(l["default"].arrayFrom(t.children)).saveStyle().queue({opacity:1}).wait(this.delay).queue({opacity:0},{duration:this.duration,timing:this.timing}).restoreStyle())}},{key:"_getFabs",value:function(){return l["default"].arrayFrom(document.querySelectorAll("ons-fab[position~=bottom], ons-speed-dial[position~=bottom]")).filter(function(t){return t.visible})}}]),e}(b["default"]);e["default"]=y,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(5),l=i(s),c=n(26),f=i(c),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"linear":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.3:s;return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}))}return a(e,t),u(e,[{key:"show",value:function(t,e){e=e?e:function(){},(0,l["default"])(t).saveStyle().queue({opacity:0}).wait(this.delay).queue({opacity:1},{duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}).play()}},{key:"hide",value:function(t,e){e=e?e:function(){},(0,l["default"])(t).saveStyle().queue({opacity:1}).wait(this.delay).queue({opacity:0},{duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e(),t()}).play()}}]),e}(f["default"]);e["default"]=d,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=(i(s),n(5)),c=i(l),f=n(33),d=i(f),h=n(26),p=i(h),v=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"ease":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.35:s;r(this,e);var c=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}));return d["default"].isIPhoneXPortraitPatchActive()?c.fallAmount="calc(-100% - 44px)":c.fallAmount="-100%",c}return a(e,t),u(e,[{key:"show",value:function(t,e){t=t._toast,this._updatePosition(t),c["default"].runAll((0,c["default"])(t).saveStyle().queue({transform:"translate3d(0, "+this.fallAmount+", 0)",opacity:0}).wait(this.delay).queue({transform:"translate3d(0, 0, 0)",opacity:1},{duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e&&e(),t()}))}},{key:"hide",value:function(t,e){var n=this;t=t._toast,this._updatePosition(t),c["default"].runAll((0,c["default"])(t).saveStyle().queue({transform:"translate3d(0, 0, 0)",opacity:1}).wait(this.delay).queue({transform:"translate3d(0, "+this.fallAmount+", 0)",opacity:0},{duration:this.duration,timing:this.timing}).restoreStyle().queue(function(i){n._updatePosition(t,!0),e&&e(),i()}))}},{key:"_updatePosition",value:function(t,e){var n=void 0;n=d["default"].isIPhoneXPortraitPatchActive()?"44px":"0",t.style.top!==n&&(t.style.top=n,t.style.bottom="initial")}}]),e}(p["default"]);e["default"]=v,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(0),l=(i(s),n(5)),c=i(l),f=n(33),d=i(f),h=n(26),p=i(h),v=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.timing,i=void 0===n?"ease":n,a=t.delay,u=void 0===a?0:a,s=t.duration,l=void 0===s?.35:s;r(this,e);var c=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,{timing:i,delay:u,duration:l}));return c.bodyHeight=document.body.clientHeight,d["default"].isIPhoneXPortraitPatchActive()?c.liftAmount="calc(100% + 34px)":d["default"].isIPhoneXLandscapePatchActive()?c.liftAmount="calc(100% + 21px)":c.liftAmount="100%",c}return a(e,t),u(e,[{key:"show",value:function(t,e){t=t._toast,c["default"].runAll((0,c["default"])(t).saveStyle().queue({transform:"translate3d(0, "+this.liftAmount+", 0)",opacity:0}).wait(this.delay).queue({transform:"translate3d(0, 0, 0)",opacity:1},{duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e&&e(),t()}))}},{key:"hide",value:function(t,e){t=t._toast,c["default"].runAll((0,c["default"])(t).saveStyle().queue({transform:"translate3d(0, 0, 0)",opacity:1}).wait(this.delay).queue({transform:"translate3d(0, "+this.liftAmount+", 0)",opacity:0},{duration:this.duration,timing:this.timing}).restoreStyle().queue(function(t){e&&e(),t()}))}},{key:"_updatePosition",value:function(t){0===parseInt(t.style.top,10)&&(t.style.top=t.style.bottom="")}}]),e}(p["default"]);e["default"]=v,t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a=i(0),u=r(a),s=function(t){if(!(Object.hasOwnProperty.call(t,"buttons")&&t.buttons instanceof Array))throw new Error('"options.buttons" must be an instance of Array.');if(Object.hasOwnProperty.call(t,"callback")&&!(t.callback instanceof Function))throw new Error('"options.callback" must be an instance of Function.');if(Object.hasOwnProperty.call(t,"compile")&&!(t.compile instanceof Function))throw new Error('"options.compile" must be an instance of Function.');if(Object.hasOwnProperty.call(t,"destroy")&&!(t.destroy instanceof Function))throw new Error('"options.destroy" must be an instance of Function.')};n["default"]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(t);var n=u["default"].createElement("\n    <ons-action-sheet\n      "+(t.title?'title="'+t.title+'"':"")+"\n      "+(t.cancelable?"cancelable":"")+"\n      "+(t.modifier?'modifier="'+t.modifier+'"':"")+"\n      "+(t.maskColor?'mask-color="'+t.maskColor+'"':"")+"\n      "+(t.id?'id="'+t.id+'"':"")+"\n      "+(t["class"]?'class="'+t["class"]+'"':"")+'\n    >\n      <div class="action-sheet"></div>\n    </ons-action-sheet>\n  '),i=u["default"].defer(),r=function l(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;n&&(t.destroy&&t.destroy(n),n.removeEventListener("dialog-cancel",l,!1),n.remove(),n=null,t.callback&&t.callback(r),i.resolve(r))};n.addEventListener("dialog-cancel",r,!1);var a=document.createDocumentFragment();return t.buttons.forEach(function(e,i){var s="string"==typeof e?{label:e}:o({},e);t.destructive===i&&(s.modifier=(s.modifier||"")+" destructive");var l=u["default"].createElement("\n      <ons-action-sheet-button\n        "+(s.icon?'icon="'+s.icon+'"':"")+"\n        "+(s.modifier?'modifier="'+s.modifier+'"':"")+"\n      >\n        "+s.label+"\n      </ons-action-sheet-button>\n    ");l.onclick=function(t){return n.hide().then(function(){return r(t,i)})},a.appendChild(l)}),u["default"].findChild(n,".action-sheet").appendChild(a),document.body.appendChild(n),t.compile&&t.compile(el.dialog),e(function(){return n.show({animation:t.animation,animationOptions:t.animationOptions})}),i.promise},t.exports=n["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=i(0),u=r(a),s=i(6),l=r(s),c=i(62),f=r(c),d=i(43),h=r(d),p={};p.config={autoStatusBarFill:!0,animationsDisabled:!1,warningsDisabled:!1},p.nullElement=window.document.createElement("div"),p.Swiper=h["default"],p.isEnabledAutoStatusBarFill=function(){return!!p.config.autoStatusBarFill},p.normalizePageHTML=function(t){return(""+t).trim()},p.waitDOMContentLoaded=function(t){if("loading"===window.document.readyState||"uninitialized"==window.document.readyState){var n=function i(){t(),window.document.removeEventListener("DOMContentLoaded",i)};window.document.addEventListener("DOMContentLoaded",n)}else e(t)},p.autoStatusBarFill=function(t){var e=function n(){p.shouldFillStatusBar()&&t(),document.removeEventListener("deviceready",n)};"object"===("undefined"==typeof device?"undefined":o(device))?document.addEventListener("deviceready",e):["complete","interactive"].indexOf(document.readyState)===-1?p.waitDOMContentLoaded(e):e()},p.shouldFillStatusBar=function(){return p.isEnabledAutoStatusBarFill()&&(l["default"].isWebView()&&l["default"].isIOS7above()&&!l["default"].isIPhoneX()||document.body.querySelector(".ons-status-bar-mock.ios"))},p.templateStore={_storage:{},get:function(t){return p.templateStore._storage[t]||null},set:function(t,e){p.templateStore._storage[t]=e}},window.document.addEventListener("_templateloaded",function(t){"ons-template"===t.target.nodeName.toLowerCase()&&p.templateStore.set(t.templateId,t.template)},!1),p.waitDOMContentLoaded(function(){function t(t){for(var e=window.document.querySelectorAll(t),n=0;n<e.length;n++)p.templateStore.set(e[n].getAttribute("id"),e[n].textContent||e[n].content)}t('script[type="text/ons-template"]'),t('script[type="text/template"]'),t('script[type="text/ng-template"]'),t("template")}),p.getTemplateHTMLAsync=function(t){return new Promise(function(e,n){p.waitDOMContentLoaded(function(){var i=p.templateStore.get(t);if(i){if(i instanceof DocumentFragment)return e(i);var r="string"==typeof i?i:i[1];return e(p.normalizePageHTML(r))}var o=window.document.getElementById(t);if(o){var a=o.textContent||o.content;return e(a)}var s=new XMLHttpRequest;s.open("GET",t,!0),s.onload=function(){var i=s.responseText;if(s.status>=400&&s.status<600)n(i);else{var r=u["default"].createFragment(i);u["default"].arrayFrom(r.querySelectorAll("script")).forEach(function(t){var e=document.createElement("script");e.type=t.type||"text/javascript",e.appendChild(document.createTextNode(t.text||t.textContent||t.innerHTML)),t.parentNode.replaceChild(e,t)}),p.templateStore.set(t,r),e(r)}},s.onerror=function(){throw new Error("The page is not found: "+t)},s.send(null)})})},p.getPageHTMLAsync=function(t){var e=f["default"].evaluate(t),n=function i(t){return"string"!=typeof t?Promise.reject("Must specify a page."):p.getTemplateHTMLAsync(t)["catch"](function(t){return 0===e.length?Promise.reject(t):i(e.shift())})};return n(e.shift())},n["default"]=p,t.exports=n["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=i(r);e["default"]={add:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return n.forEach(function(e){return o["default"].addModifier(t,e)})},remove:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return n.forEach(function(e){return o["default"].removeModifier(t,e)})},contains:o["default"].hasModifier,toggle:o["default"].toggleModifier},t.exports=e["default"]},function(t,n,i){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a=i(0),u=r(a),s=i(2),l=r(s),c=i(61),f=r(c),d=function(t,e){["id","class","animation"].forEach(function(n){return e.hasOwnProperty(n)&&t.setAttribute(n,e[n])}),e.modifier&&u["default"].addModifier(t,e.modifier)},h={};h._createAlertDialog=function(t){var n="";t.isPrompt&&(n='\n      <input\n        class="text-input text-input--underbar"\n        type="'+(t.inputType||"text")+'"\n        placeholder="'+(t.placeholder||"")+'"\n        value="'+(t.defaultValue||"")+'"\n        style="width: 100%; margin-top: 10px;"\n      />\n    ');var i="";t.buttonLabels.forEach(function(e,n){i+='\n      <ons-alert-dialog-button\n        class="\n          '+(n===t.primaryButtonIndex?" alert-dialog-button--primal":"")+"\n          "+(t.buttonLabels.length<=2?" alert-dialog-button--rowfooter":"")+'\n        " \n        style="position: relative;">\n        '+e+"\n      </ons-alert-dialog-button>\n    "});var r={},o=function(){r.dialog.onDialogCancel&&r.dialog.removeEventListener("dialog-cancel",r.dialog.onDialogCancel),Object.keys(r).forEach(function(t){return delete r[t]}),r=null,t.destroy instanceof Function&&t.destroy()};r.dialog=document.createElement("ons-alert-dialog"),r.dialog.innerHTML='\n    <div class="alert-dialog-mask"></div>\n    <div class="alert-dialog">\n      <div class="alert-dialog-container">\n        <div class="alert-dialog-title">\n          '+(t.title||"")+'\n        </div>\n        <div class="alert-dialog-content">\n          '+(t.message||t.messageHTML)+"\n          "+n+'\n        </div>\n        <div class="\n          alert-dialog-footer\n          '+(t.buttonLabels.length<=2?" alert-dialog-footer--rowfooter":"")+'\n        ">\n          '+i+"\n        </div>\n      </div>\n    </div>\n  ",(0,l["default"])(r.dialog),d(r.dialog,t);var a=u["default"].defer();return t.isPrompt&&t.submitOnEnter&&(r.input=r.dialog.querySelector(".text-input"),r.input.onkeypress=function(e){13===e.keyCode&&r.dialog.hide().then(function(){if(r){var e=r.input.value;o(),t.callback(e),a.resolve(e)}})}),r.footer=r.dialog.querySelector(".alert-dialog-footer"),u["default"].arrayFrom(r.dialog.querySelectorAll(".alert-dialog-button")).forEach(function(e,n){e.onclick=function(){r.dialog.hide().then(function(){if(r){var e=n;t.isPrompt&&(e=n===t.primaryButtonIndex?r.input.value:null),r.dialog.remove(),o(),t.callback(e),a.resolve(e)}})},r.footer.appendChild(e)}),t.cancelable&&(r.dialog.cancelable=!0,r.dialog.onDialogCancel=function(){e(function(){r.dialog.remove(),o()});var n=t.isPrompt?null:-1;t.callback(n),a.resolve(n)},r.dialog.addEventListener("dialog-cancel",r.dialog.onDialogCancel,!1)),document.body.appendChild(r.dialog),t.compile(r.dialog),e(function(){r.dialog.show().then(function(){r.input&&t.isPrompt&&t.autofocus&&r.input.focus()})}),a.promise};var p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e=o({},e),"string"==typeof t?e.message=t:e=t,!e.message&&!e.messageHTML)throw new Error("Notifications must contain a message.");return(e.hasOwnProperty("buttonLabels")||e.hasOwnProperty("buttonLabel"))&&(e.buttonLabels=e.buttonLabels||e.buttonLabel,Array.isArray(e.buttonLabels)||(e.buttonLabels=[e.buttonLabels||""])),u["default"].extend({compile:function(t){return t},callback:function(t){return t},animation:"default",cancelable:!1,primaryButtonIndex:(e.buttonLabels||n.buttonLabels||[]).length-1},n,e)};h.alert=function(t,e){return e=p(t,e,{buttonLabels:["OK"],title:"Alert"}),h._createAlertDialog(e)},h.confirm=function(t,e){return e=p(t,e,{buttonLabels:["Cancel","OK"],title:"Confirm"}),h._createAlertDialog(e)},h.prompt=function(t,e){return e=p(t,e,{buttonLabels:["OK"],title:"Alert",isPrompt:!0,autofocus:!0,submitOnEnter:!0}),h._createAlertDialog(e)},h.toast=function(t,e){e=p(t,e,{timeout:0,force:!1});var n=u["default"].createElement("\n    <ons-toast>\n      "+e.message+"\n      "+(e.buttonLabels?"<button>"+e.buttonLabels[0]+"</button>":"")+"\n    </ons-toast>\n  ");d(n,e);var i=u["default"].defer(),r=function(t){n&&n.hide().then(function(){n&&(n.remove(),n=null,e.callback(t),i.resolve(t))})};e.buttonLabels&&(u["default"].findChild(n._toast,"button").onclick=function(){return r(0)}),document.body.appendChild(n),e.compile(n);var o=function(){n.parentElement&&n.show(e).then(function(){e.timeout&&setTimeout(function(){return r(-1)},e.timeout)})};return e.force?o():f["default"].add(o,i.promise),i.promise},n["default"]=h,t.exports=n["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=i(r),a=new MicroEvent;a._visible=!1;var u=function(){a._visible=!0,a.emit("show")},s=function(){a._visible=!1,a.emit("hide")},l=function(){return"undefined"!=typeof Keyboard?(Keyboard.onshow=u,Keyboard.onhide=s,a.emit("init",{visible:Keyboard.isVisible}),!0):"undefined"!=typeof cordova.plugins&&"undefined"!=typeof cordova.plugins.Keyboard&&(window.addEventListener("native.keyboardshow",u),window.addEventListener("native.keyboardhide",s),a.emit("init",{visible:cordova.plugins.Keyboard.isVisible}),!0)},c=function(){o["default"].warn("ons-keyboard: Cordova Keyboard plugin is not present.")};document.addEventListener("deviceready",function(){l()||((document.querySelector("[ons-keyboard-active]")||document.querySelector("[ons-keyboard-inactive]"))&&c(),a.on=c)}),e["default"]=a,t.exports=e["default"]},function(t,e,n){"use strict";/**
	 * @license
	 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
	 * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
	 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
	 * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
	 * Code distributed by Google as part of the polymer project is also
	 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
	 */
"undefined"==typeof WeakMap&&!function(){var t=Object.defineProperty,e=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0)+(e++ +"__")};n.prototype={set:function(e,n){var i=e[this.name];return i&&i[0]===e?i[1]=n:t(e,this.name,{value:[e,n],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},"delete":function(t){var e=t[this.name];return!(!e||e[0]!==t)&&(e[0]=e[1]=void 0,!0)},has:function(t){var e=t[this.name];return!!e&&e[0]===t}},window.WeakMap=n}(),function(t){function e(t){g.push(t),_||(_=!0,v(i))}function n(t){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(t)||t}function i(){_=!1;var t=g;g=[],t.sort(function(t,e){return t.uid_-e.uid_});var e=!1;t.forEach(function(t){var n=t.takeRecords();r(t),n.length&&(t.callback_(n,t),e=!0)}),e&&i()}function r(t){t.nodes_.forEach(function(e){var n=m.get(e);n&&n.forEach(function(e){e.observer===t&&e.removeTransientObservers()})})}function o(t,e){for(var n=t;n;n=n.parentNode){var i=m.get(n);if(i)for(var r=0;r<i.length;r++){var o=i[r],a=o.options;if(n===t||a.subtree){var u=e(a);u&&o.enqueue(u)}}}}function a(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++w}function u(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function s(t){var e=new u(t.type,t.target);return e.addedNodes=t.addedNodes.slice(),e.removedNodes=t.removedNodes.slice(),e.previousSibling=t.previousSibling,e.nextSibling=t.nextSibling,e.attributeName=t.attributeName,e.attributeNamespace=t.attributeNamespace,e.oldValue=t.oldValue,e}function l(t,e){return k=new u(t,e)}function c(t){return O?O:(O=s(k),O.oldValue=t,O)}function f(){k=O=void 0}function d(t){return t===O||t===k}function h(t,e){return t===e?t:O&&d(t)?O:null}function p(t,e,n){this.observer=t,this.target=e,this.options=n,this.transientObservedNodes=[]}if(!t.JsMutationObserver){var v,m=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))v=setTimeout;else if(window.setImmediate)v=window.setImmediate;else{var b=[],y=String(Math.random());window.addEventListener("message",function(t){if(t.data===y){var e=b;b=[],e.forEach(function(t){t()})}}),v=function(t){b.push(t),window.postMessage(y,"*")}}var _=!1,g=[],w=0;a.prototype={observe:function(t,e){if(t=n(t),!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var i=m.get(t);i||m.set(t,i=[]);for(var r,o=0;o<i.length;o++)if(i[o].observer===this){r=i[o],r.removeListeners(),r.options=e;break}r||(r=new p(this,t,e),i.push(r),this.nodes_.push(t)),r.addListeners()},disconnect:function(){this.nodes_.forEach(function(t){for(var e=m.get(t),n=0;n<e.length;n++){var i=e[n];if(i.observer===this){i.removeListeners(),e.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}};var k,O;p.prototype={enqueue:function(t){var n=this.observer.records_,i=n.length;if(n.length>0){var r=n[i-1],o=h(r,t);if(o)return void(n[i-1]=o)}else e(this.observer);n[i]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=m.get(t);e||m.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var e=m.get(t),n=0;n<e.length;n++)if(e[n]===this){e.splice(n,1);break}},this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,n=t.relatedNode.namespaceURI,i=t.target,r=new l("attributes",i);r.attributeName=e,r.attributeNamespace=n;var a=t.attrChange===MutationEvent.ADDITION?null:t.prevValue;o(i,function(t){if(t.attributes&&(!t.attributeFilter||!t.attributeFilter.length||t.attributeFilter.indexOf(e)!==-1||t.attributeFilter.indexOf(n)!==-1))return t.attributeOldValue?c(a):r});break;case"DOMCharacterDataModified":var i=t.target,r=l("characterData",i),a=t.prevValue;o(i,function(t){if(t.characterData)return t.characterDataOldValue?c(a):r});break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":var u,s,d=t.target;"DOMNodeInserted"===t.type?(u=[d],s=[]):(u=[],s=[d]);var h=d.previousSibling,p=d.nextSibling,r=l("childList",t.target.parentNode);r.addedNodes=u,r.removedNodes=s,r.previousSibling=h,r.nextSibling=p,o(t.relatedNode,function(t){if(t.childList)return r})}f()}},t.JsMutationObserver=a,t.MutationObserver||(t.MutationObserver=a,a._isPolyfilled=!0)}}(self)},function(t,e,n){"use strict";window.customElements&&(window.customElements.forcePolyfill=!0)},function(t,e,n){"use strict";!function(t,e){function n(t){return v[p]=r.apply(e,t),p++}function r(t){var n=[].slice.call(arguments,1);return function(){"function"==typeof t?t.apply(e,n):new Function(""+t)()}}function o(t){if(m)setTimeout(r(o,t),0);else{var e=v[t];if(e){m=!0;try{e()}finally{a(t),m=!1}}}}function a(t){delete v[t]}function u(){h=function(){var t=n(arguments);return i.nextTick(r(o,t)),t}}function s(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}function l(){var e="setImmediate$"+Math.random()+"$",i=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&o(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",i,!1):t.attachEvent("onmessage",i),h=function(){var i=n(arguments);return t.postMessage(e+i,"*"),i}}function c(){var t=new MessageChannel;t.port1.onmessage=function(t){var e=t.data;o(e)},h=function(){var e=n(arguments);return t.port2.postMessage(e),e}}function f(){var t=b.documentElement;h=function(){var e=n(arguments),i=b.createElement("script");return i.onreadystatechange=function(){o(e),i.onreadystatechange=null,t.removeChild(i),i=null},t.appendChild(i),e}}function d(){h=function(){var t=n(arguments);return setTimeout(r(o,t),0),t}}if(!t.setImmediate){var h,p=1,v={},m=!1,b=t.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(t);y=y&&y.setTimeout?y:t,"[object process]"==={}.toString.call(t.process)?u():s()?l():t.MessageChannel?c():b&&"onreadystatechange"in b.createElement("script")?f():d(),y.setImmediate=h,y.clearImmediate=a}}(self)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),n(6),n(130),n(131);var r=n(129),o=i(r),a=n(126),u=i(a),s=n(99),l=i(s),c=n(84),f=i(c),d=n(83),h=i(d),p=n(86),v=i(p),m=n(85),b=i(m),y=n(87),_=i(y),g=n(88),w=i(g),k=n(89),O=i(k),E=n(90),P=i(E),C=n(91),x=i(C),A=n(92),S=i(A),j=n(94),T=i(j),M=n(95),L=i(M),D=n(96),I=i(D),N=n(97),R=i(N),B=n(98),q=i(B),H=n(101),F=i(H),z=n(102),V=i(z),$=n(104),U=i($),W=n(103),X=i(W),Y=n(105),G=i(Y),K=n(100),Q=i(K),J=n(93),Z=i(J),tt=n(113),et=i(tt),nt=n(117),it=i(nt),rt=n(106),ot=i(rt),at=n(107),ut=i(at),st=n(108),lt=i(st),ct=n(109),ft=i(ct),dt=n(110),ht=i(dt),pt=n(111),vt=i(pt),mt=n(112),bt=i(mt),yt=n(114),_t=i(yt),gt=n(115),wt=i(gt),kt=n(116),Ot=i(kt),Et=n(118),Pt=i(Et),Ct=n(119),xt=i(Ct),At=n(120),St=i(At),jt=n(121),Tt=i(jt),Mt=n(122),Lt=i(Mt),Dt=n(123),It=i(Dt),Nt=n(124),Rt=i(Nt),Bt=n(53),qt=i(Bt),Ht=n(125),Ft=i(Ht),zt=n(54),Vt=i(zt),$t=n(55),Ut=i($t),Wt=n(127),Xt=i(Wt),Yt=n(128),Gt=i(Yt),Kt=n(56),Qt=i(Kt);window.ons&&o["default"]._util.warn("Onsen UI is loaded more than once."),o["default"].TemplateElement=u["default"],o["default"].IfElement=l["default"],o["default"].ActionSheetElement=f["default"],o["default"].ActionSheetButtonElement=h["default"],o["default"].AlertDialogElement=v["default"],o["default"].AlertDialogButtonElement=b["default"],o["default"].BackButtonElement=_["default"],o["default"].BottomToolbarElement=w["default"],o["default"].ButtonElement=O["default"],o["default"].CardElement=P["default"],o["default"].CarouselItemElement=x["default"],o["default"].CarouselElement=S["default"],o["default"].ColElement=T["default"],o["default"].DialogElement=L["default"],o["default"].FabElement=I["default"],o["default"].GestureDetectorElement=R["default"],o["default"].IconElement=q["default"],o["default"].LazyRepeatElement=F["default"],o["default"].ListHeaderElement=V["default"],o["default"].ListTitleElement=U["default"],o["default"].ListItemElement=X["default"],o["default"].ListElement=G["default"],o["default"].InputElement=Q["default"],o["default"].CheckboxElement=Z["default"],o["default"].RadioElement=et["default"],o["default"].SearchInputElement=it["default"],o["default"].ModalElement=ot["default"],o["default"].NavigatorElement=ut["default"],o["default"].PageElement=lt["default"],o["default"].PopoverElement=ft["default"],o["default"].ProgressBarElement=ht["default"],o["default"].ProgressCircularElement=vt["default"],o["default"].PullHookElement=bt["default"],o["default"].RangeElement=_t["default"],o["default"].RippleElement=wt["default"],o["default"].RowElement=Ot["default"],o["default"].SegmentElement=Pt["default"],o["default"].SelectElement=xt["default"],o["default"].SpeedDialItemElement=St["default"],o["default"].SpeedDialElement=Tt["default"],o["default"].SplitterContentElement=Lt["default"],o["default"].SplitterMaskElement=It["default"],o["default"].SplitterSideElement=Rt["default"],o["default"].SplitterElement=qt["default"],o["default"].SwitchElement=Ft["default"],o["default"].TabElement=Vt["default"],o["default"].TabbarElement=Ut["default"],o["default"].ToastElement=Xt["default"],o["default"].ToolbarButtonElement=Gt["default"],o["default"].ToolbarElement=Qt["default"],o["default"].CardElement=P["default"],window.addEventListener("load",function(){o["default"].fastClick=FastClick.attach(document.body);var t="touch-action"in document.body.style;o["default"].platform._runOnActualPlatform(function(){o["default"].platform.isAndroid()?o["default"].fastClick.destroy():o["default"].platform.isIOS()&&t&&(o["default"].platform.isIOSSafari()||o["default"].platform.isWKWebView())&&o["default"].fastClick.destroy()})},!1),o["default"].ready(function(){o["default"]._deviceBackButtonDispatcher.enable(),o["default"]._defaultDeviceBackButtonHandler=o["default"]._deviceBackButtonDispatcher.createHandler(window.document.body,function(){Object.hasOwnProperty.call(navigator,"app")?navigator.app.exitApp():console.warn("Could not close the app. Is 'cordova.js' included?\nError: 'window.navigator.app' is undefined.")}),document.body._gestureDetector=new o["default"].GestureDetector(document.body),o["default"].platform.isWebView()||document.body.addEventListener("keydown",function(t){27===t.keyCode&&o["default"]._deviceBackButtonDispatcher.fireDeviceBackButtonEvent()}),o["default"]._setupLoadingPlaceHolders()}),Viewport.setup(),e["default"]=o["default"],t.exports=e["default"]},function(t,e,n){"use strict";!function(){/**
	  * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
	  *
	  * @codingstandard ftlabs-jsv2
	  * @copyright The Financial Times Limited [All Rights Reserved]
	  * @license MIT License (see LICENSE.txt)
	  */
function t(e,i){function r(t,e){return function(){return t.apply(e,arguments)}}var o;if(i=i||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=i.touchBoundary||10,this.layer=e,this.tapDelay=i.tapDelay||200,this.tapTimeout=i.tapTimeout||700,!t.notNeeded(e)){for(var a=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],u=this,s=0,l=a.length;s<l;s++)u[a[s]]=r(u[a[s]],u);n&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,i){var r=Node.prototype.removeEventListener;"click"===t?r.call(e,t,n.hijacked||n,i):r.call(e,t,n,i)},e.addEventListener=function(t,n,i){var r=Node.prototype.addEventListener;"click"===t?r.call(e,t,n.hijacked||(n.hijacked=function(t){t.propagationStopped||n(t)}),i):r.call(e,t,n,i)}),"function"==typeof e.onclick&&(o=e.onclick,e.addEventListener("click",function(t){o(t)},!1),e.onclick=null)}}var e=navigator.userAgent.indexOf("Windows Phone")>=0,n=navigator.userAgent.indexOf("Android")>0&&!e,i=/iP(ad|hone|od)/.test(navigator.userAgent)&&!e,r=i&&/OS 4_\d(_\d)?/.test(navigator.userAgent),o=i&&/OS [6-7]_\d/.test(navigator.userAgent),a=navigator.userAgent.indexOf("BB10")>0;t.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(i&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},t.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!n;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},t.prototype.sendClick=function(t,e){var n,i;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),i=e.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(t),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,t.dispatchEvent(n)},t.prototype.determineEventType=function(t){return n&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},t.prototype.focus=function(t){var e;i&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},t.prototype.updateScrollParent=function(t){var e,n;if(e=t.fastClickScrollParent,!e||!e.contains(t)){n=t;do{if(n.scrollHeight>n.offsetHeight){e=n,t.fastClickScrollParent=n;break}n=n.parentElement}while(n)}e&&(e.fastClickLastScrollTop=e.scrollTop)},t.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},t.prototype.onTouchStart=function(t){var e,n,o;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),n=t.targetTouches[0],e.isContentEditable)return!0;if(i){if(o=window.getSelection(),o.rangeCount&&!o.isCollapsed)return!0;if(!r){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=n.pageX,this.touchStartY=n.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&t.timeStamp-this.lastClickTime>-1&&t.preventDefault(),!0},t.prototype.touchHasMoved=function(t){var e=t.changedTouches[0],n=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>n||Math.abs(e.pageY-this.touchStartY)>n},t.prototype.onTouchMove=function(t){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0)},t.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},t.prototype.onTouchEnd=function(t){var e,a,u,s,l,c=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay&&t.timeStamp-this.lastClickTime>-1)return this.cancelNextClick=!0,!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,a=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,o&&(l=t.changedTouches[0],c=document.elementFromPoint(l.pageX-window.pageXOffset,l.pageY-window.pageYOffset)||c,c.fastClickScrollParent=this.targetElement.fastClickScrollParent),u=c.tagName.toLowerCase(),"label"===u){if(e=this.findControl(c)){if(this.focus(c),n)return!1;c=e}}else if(this.needsFocus(c))return t.timeStamp-a>100||i&&window.top!==window&&"input"===u?(this.targetElement=null,!1):(this.focus(c),this.sendClick(c,t),i&&"select"===u||(this.targetElement=null,t.preventDefault()),!1);return!(!i||r||(s=c.fastClickScrollParent,!s||s.fastClickLastScrollTop===s.scrollTop))||(this.needsClick(c)||(t.preventDefault(),this.sendClick(c,t)),!1)},t.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},t.prototype.onMouse=function(t){return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},t.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail||(e=this.onMouse(t),e||(this.targetElement=null),e)},t.prototype.destroy=function(){var t=this.layer;n&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},t.notNeeded=function(t){var e,i,r,o;if("undefined"==typeof window.ontouchstart)return!0;if(i=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!n)return!0;if(e=document.querySelector("meta[name=viewport]")){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(i>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(a&&(r=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),r[1]>=10&&r[2]>=3&&(e=document.querySelector("meta[name=viewport]")))){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||(o=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],!!(o>=27&&(e=document.querySelector("meta[name=viewport]"),e&&(e.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))||("none"===t.style.touchAction||"manipulation"===t.style.touchAction))},t.attach=function(e,n){return new t(e,n)},window.FastClick=t}()},function(t,e,n){"use strict";(function(t){var e=function(){};e.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},once:function(t,e){var n=this,i=function r(){return n.off(t,r),e.apply(null,arguments)};this.on(t,i)},off:function(t,e){this._events=this._events||{},t in this._events!=!1&&(this._events[t]=this._events[t].filter(function(t){return!!e&&e!==t}))},emit:function(t){if(this._events=this._events||{},t in this._events!=!1)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}},e.mixin=function(t){for(var n=["on","once","off","emit"],i=0;i<n.length;i++)"function"==typeof t?t.prototype[n[i]]=e.prototype[n[i]]:t[n[i]]=e.prototype[n[i]]},"undefined"!=typeof t&&"exports"in t&&(t.exports=e),window.MicroEvent=e}).call(e,n(207)(t))},function(t,e,n){"use strict";!function(){var t="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no",e={ensureViewportElement:function(){var t=document.querySelector("meta[name=viewport]");return t||(t=document.createElement("meta"),t.name="viewport",document.head.appendChild(t)),t},setup:function(){var n=e.ensureViewportElement();n&&(n.hasAttribute("content")||n.setAttribute("content",t))}};window.Viewport=e}()},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function o(){i(this,o)};e["default"]=new r,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),u=n(11),s=(r(u),n(168)),l=r(s),c=n(167),f=r(c),d=n(16),h=i(d),p=function(){function t(e){o(this,t),this._elementDefinitionIsRunning=!1,this._internals=e,this._whenDefinedDeferred=new Map,this._flushCallback=function(t){return t()},this._flushPending=!1,this._unflushedLocalNames=[],this._documentConstructionObserver=new l["default"](e,document)}return a(t,[{key:"define",value:function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!h.isValidCustomElementName(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this._internals.localNameToDefinition(t))throw new Error("A custom element with name '"+t+"' has already been defined.");if(this._elementDefinitionIsRunning)throw new Error("A custom element is already being defined.");this._elementDefinitionIsRunning=!0;var i=void 0,r=void 0,o=void 0,a=void 0,u=void 0;try{var s=function(t){var e=l[t];if(void 0!==e&&!(e instanceof Function))throw new Error("The '"+t+"' callback must be a function.");return e},l=e.prototype;if(!(l instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");i=s("connectedCallback"),r=s("disconnectedCallback"),o=s("adoptedCallback"),a=s("attributeChangedCallback"),u=e.observedAttributes||[]}catch(c){return}finally{this._elementDefinitionIsRunning=!1}var f={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:r,adoptedCallback:o,attributeChangedCallback:a,observedAttributes:u,constructionStack:[]};this._internals.setDefinition(t,f),this._unflushedLocalNames.push(t),this._flushPending||(this._flushPending=!0,this._flushCallback(function(){return n._flush()}))}},{key:"_flush",value:function(){if(this._flushPending!==!1)for(this._flushPending=!1,this._internals.patchAndUpgradeTree(document);this._unflushedLocalNames.length>0;){var t=this._unflushedLocalNames.shift(),e=this._whenDefinedDeferred.get(t);e&&e.resolve(void 0)}}},{key:"get",value:function(t){var e=this._internals.localNameToDefinition(t);if(e)return e.constructor}},{key:"whenDefined",value:function(t){if(!h.isValidCustomElementName(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this._whenDefinedDeferred.get(t);if(e)return e.toPromise();var n=new f["default"];this._whenDefinedDeferred.set(t,n);var i=this._internals.localNameToDefinition(t);return i&&this._unflushedLocalNames.indexOf(t)===-1&&n.resolve(void 0),n.toPromise()}},{key:"polyfillWrapFlushCallback",value:function(t){this._documentConstructionObserver.disconnect();var e=this._flushCallback;this._flushCallback=function(n){return t(function(){return e(n)})}}}]),t}();e["default"]=p,window.CustomElementRegistry=p,p.prototype.define=p.prototype.define,p.prototype.get=p.prototype.get,p.prototype.whenDefined=p.prototype.whenDefined,p.prototype.polyfillWrapFlushCallback=p.prototype.polyfillWrapFlushCallback,t.exports=e["default"]},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(){function t(){var e=this;i(this,t),this._value=void 0,this._resolve=void 0,this._promise=new Promise(function(t){e._resolve=t,e._value&&t(e._value)})}return r(t,[{key:"resolve",value:function(t){if(this._value)throw new Error("Already resolved.");this._value=t,this._resolve&&this._resolve(t)}},{key:"toPromise",value:function(){return this._promise}}]),t}();e["default"]=o,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(11),u=(i(a),function(){function t(e,n){r(this,t),this._internals=e,this._document=n,this._observer=void 0,this._internals.patchAndUpgradeTree(this._document),"loading"===this._document.readyState&&(this._observer=new MutationObserver(this._handleMutations.bind(this)),this._observer.observe(this._document,{childList:!0,subtree:!0}))}return o(t,[{key:"disconnect",value:function(){this._observer&&this._observer.disconnect()}},{key:"_handleMutations",value:function(t){var e=this._document.readyState;"interactive"!==e&&"complete"!==e||this.disconnect();for(var n=0;n<t.length;n++)for(var i=t[n].addedNodes,r=0;r<i.length;r++){var o=i[r];this._internals.patchAndUpgradeTree(o)}}}]),t}());e["default"]=u,t.exports=e["default"]},function(t,e,n){"use strict";function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){l.setPropertyUnchecked(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.localNameToDefinition(e);if(n)return new n.constructor}var i=a["default"].Document_createElement.call(this,e);return t.patch(i),i}),l.setPropertyUnchecked(Document.prototype,"importNode",function(e,n){var i=a["default"].Document_importNode.call(this,e,n);return this.__CE_hasRegistry?t.patchAndUpgradeTree(i):t.patchTree(i),i});var e="http://www.w3.org/1999/xhtml";l.setPropertyUnchecked(Document.prototype,"createElementNS",function(n,i){if(this.__CE_hasRegistry&&(null===n||n===e)){var r=t.localNameToDefinition(i);if(r)return new r.constructor}var o=a["default"].Document_createElementNS.call(this,n,i);return t.patch(o),o}),(0,f["default"])(t,Document.prototype,{prepend:a["default"].Document_prepend,append:a["default"].Document_append})};var o=n(34),a=r(o),u=n(11),s=(r(u),n(16)),l=i(s),c=n(63),f=r(c);t.exports=e["default"]},function(t,e,n){"use strict";function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){function e(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var i=this,r=f.isConnected(this),o=void 0;if(r&&(o=[],f.walkDeepDescendantElements(this,function(t){t!==i&&o.push(t)})),n.set.call(this,e),o)for(var a=0;a<o.length;a++){var u=o[a];u.__CE_state===l["default"].custom&&t.disconnectedCallback(u)}return this.ownerDocument.__CE_hasRegistry?t.patchAndUpgradeTree(this):t.patchTree(this),e}})}function n(e,n){f.setPropertyUnchecked(e,"insertAdjacentElement",function(e,i){var r=f.isConnected(i),o=n.call(this,e,i);return r&&t.disconnectTree(i),f.isConnected(o)&&t.connectTree(i),o})}if(a["default"].Element_attachShadow?f.setPropertyUnchecked(Element.prototype,"attachShadow",function(t){var e=a["default"].Element_attachShadow.call(this,t);return this.__CE_shadowRoot=e,e}):console.warn("Custom Elements: `Element#attachShadow` was not patched."),a["default"].Element_innerHTML&&a["default"].Element_innerHTML.get)e(Element.prototype,a["default"].Element_innerHTML);else if(a["default"].HTMLElement_innerHTML&&a["default"].HTMLElement_innerHTML.get)e(HTMLElement.prototype,a["default"].HTMLElement_innerHTML);else{var i=a["default"].Document_createElement.call(document,"div");t.addPatch(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return a["default"].Node_cloneNode.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(i.innerHTML=t;e.childNodes.length>0;)a["default"].Node_removeChild.call(e,e.childNodes[0]);for(;i.childNodes.length>0;)a["default"].Node_appendChild.call(e,i.childNodes[0])}})})}f.setPropertyUnchecked(Element.prototype,"setAttribute",function(e,n){if(this.__CE_state!==l["default"].custom)return a["default"].Element_setAttribute.call(this,e,n);var i=a["default"].Element_getAttribute.call(this,e);a["default"].Element_setAttribute.call(this,e,n),n=a["default"].Element_getAttribute.call(this,e),t.attributeChangedCallback(this,e,i,n,null)}),f.setPropertyUnchecked(Element.prototype,"setAttributeNS",function(e,n,i){if(this.__CE_state!==l["default"].custom)return a["default"].Element_setAttributeNS.call(this,e,n,i);var r=a["default"].Element_getAttributeNS.call(this,e,n);a["default"].Element_setAttributeNS.call(this,e,n,i),i=a["default"].Element_getAttributeNS.call(this,e,n),t.attributeChangedCallback(this,n,r,i,e)}),f.setPropertyUnchecked(Element.prototype,"removeAttribute",function(e){if(this.__CE_state!==l["default"].custom)return a["default"].Element_removeAttribute.call(this,e);var n=a["default"].Element_getAttribute.call(this,e);a["default"].Element_removeAttribute.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)}),f.setPropertyUnchecked(Element.prototype,"removeAttributeNS",function(e,n){if(this.__CE_state!==l["default"].custom)return a["default"].Element_removeAttributeNS.call(this,e,n);var i=a["default"].Element_getAttributeNS.call(this,e,n);a["default"].Element_removeAttributeNS.call(this,e,n);var r=a["default"].Element_getAttributeNS.call(this,e,n);i!==r&&t.attributeChangedCallback(this,n,i,r,e)}),a["default"].HTMLElement_insertAdjacentElement?n(HTMLElement.prototype,a["default"].HTMLElement_insertAdjacentElement):a["default"].Element_insertAdjacentElement?n(Element.prototype,a["default"].Element_insertAdjacentElement):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),(0,h["default"])(t,Element.prototype,{prepend:a["default"].Element_prepend,append:a["default"].Element_append}),(0,v["default"])(t,Element.prototype,{before:a["default"].Element_before,after:a["default"].Element_after,replaceWith:a["default"].Element_replaceWith,remove:a["default"].Element_remove})};var o=n(34),a=r(o),u=n(11),s=(r(u),n(45)),l=r(s),c=n(16),f=i(c),d=n(63),h=r(d),p=n(172),v=r(p);t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){window.HTMLElement=function(){function e(){var e=this.constructor,n=t.constructorToDefinition(e);if(!n)throw new Error("The custom element being constructed was not registered with `customElements`.");var i=n.constructionStack;if(0===i.length){var r=o["default"].Document_createElement.call(document,n.localName);return Object.setPrototypeOf(r,e.prototype),r.__CE_state=s["default"].custom,r.__CE_definition=n,t.patch(r),r}var a=i.length-1,u=i[a];if(u===c["default"])throw new Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return i[a]=c["default"],Object.setPrototypeOf(u,e.prototype),t.patch(u),u}return e.prototype=o["default"].HTMLElement.prototype,e}()};var r=n(34),o=i(r),a=n(11),u=(i(a),n(45)),s=i(u),l=n(165),c=i(l);t.exports=e["default"]},function(t,e,n){"use strict";function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t,e,n){e.before=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];var o=i.filter(function(t){return t instanceof Node&&u.isConnected(t)});n.before.apply(this,i);for(var a=0;a<o.length;a++)t.disconnectTree(o[a]);if(u.isConnected(this))for(var s=0;s<i.length;s++){var l=i[s];l instanceof Element&&t.connectTree(l)}},e.after=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];var o=i.filter(function(t){return t instanceof Node&&u.isConnected(t)});n.after.apply(this,i);for(var a=0;a<o.length;a++)t.disconnectTree(o[a]);if(u.isConnected(this))for(var s=0;s<i.length;s++){var l=i[s];l instanceof Element&&t.connectTree(l)}},e.replaceWith=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];var o=i.filter(function(t){return t instanceof Node&&u.isConnected(t)}),a=u.isConnected(this);n.replaceWith.apply(this,i);for(var s=0;s<o.length;s++)t.disconnectTree(o[s]);if(a){t.disconnectTree(this);for(var l=0;l<i.length;l++){var c=i[l];c instanceof Element&&t.connectTree(c)}}},e.remove=function(){var e=u.isConnected(this);n.remove.call(this),e&&t.disconnectTree(this)}};var o=n(11),a=(r(o),n(16)),u=i(a);t.exports=e["default"]},function(t,e,n){"use strict";function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)return void n.set.call(this,e);var i=void 0;if(this.firstChild){var r=this.childNodes,o=r.length;if(o>0&&l.isConnected(this)){i=new Array(o);for(var a=0;a<o;a++)i[a]=r[a]}}if(n.set.call(this,e),i)for(var u=0;u<i.length;u++)t.disconnectTree(i[u])}})}l.setPropertyUnchecked(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var i=Array.prototype.slice.apply(e.childNodes),r=a["default"].Node_insertBefore.call(this,e,n);if(l.isConnected(this))for(var o=0;o<i.length;o++)t.connectTree(i[o]);return r}var u=l.isConnected(e),s=a["default"].Node_insertBefore.call(this,e,n);return u&&t.disconnectTree(e),l.isConnected(this)&&t.connectTree(e),s}),l.setPropertyUnchecked(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes),i=a["default"].Node_appendChild.call(this,e);if(l.isConnected(this))for(var r=0;r<n.length;r++)t.connectTree(n[r]);return i}var o=l.isConnected(e),u=a["default"].Node_appendChild.call(this,e);return o&&t.disconnectTree(e),l.isConnected(this)&&t.connectTree(e),u}),l.setPropertyUnchecked(Node.prototype,"cloneNode",function(e){var n=a["default"].Node_cloneNode.call(this,e);return this.ownerDocument.__CE_hasRegistry?t.patchAndUpgradeTree(n):t.patchTree(n),n}),l.setPropertyUnchecked(Node.prototype,"removeChild",function(e){var n=l.isConnected(e),i=a["default"].Node_removeChild.call(this,e);return n&&t.disconnectTree(e),i}),l.setPropertyUnchecked(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){var i=Array.prototype.slice.apply(e.childNodes),r=a["default"].Node_replaceChild.call(this,e,n);if(l.isConnected(this)){t.disconnectTree(n);for(var o=0;o<i.length;o++)t.connectTree(i[o])}return r}var u=l.isConnected(e),s=a["default"].Node_replaceChild.call(this,e,n),c=l.isConnected(this);return c&&t.disconnectTree(n),u&&t.disconnectTree(e),c&&t.connectTree(e),s}),a["default"].Node_textContent&&a["default"].Node_textContent.get?e(Node.prototype,a["default"].Node_textContent):t.addPatch(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)a["default"].Node_removeChild.call(this,this.firstChild);a["default"].Node_appendChild.call(this,document.createTextNode(t))}})})};var o=n(34),a=r(o),u=n(11),s=(r(u),n(16)),l=i(s);t.exports=e["default"]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}var r=n(11),o=i(r),a=n(166),u=i(a),s=n(171),l=i(s),c=n(169),f=i(c),d=n(173),h=i(d),p=n(170),v=i(p),m=window.customElements;if(!m||m.forcePolyfill||"function"!=typeof m.define||"function"!=typeof m.get){var b=new o["default"];(0,l["default"])(b),(0,f["default"])(b),(0,h["default"])(b),(0,v["default"])(b),document.__CE_hasRegistry=!0;var y=new u["default"](b);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:y})}},function(t,e,n){"use strict";n(80),n(81),n(82),n(202),n(205),t.exports=n(22).Map},function(t,e,n){"use strict";n(203),t.exports=n(22).Object.setPrototypeOf},function(t,e,n){"use strict";n(80),n(81),n(82),n(204),n(206),t.exports=n(22).Set},function(t,e,n){"use strict";t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var i=n(9)("unscopables"),r=Array.prototype;void 0==r[i]&&n(23)(r,i,{}),t.exports=function(t){r[i][t]=!0}},function(t,e,n){"use strict";var i=n(47);t.exports=function(t,e){var n=[];return i(t,!1,n.push,n,e),n}},function(t,e,n){"use strict";var i=n(38),r=n(78),o=n(198);t.exports=function(t){return function(e,n,a){var u,s=i(e),l=r(s.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if(u=s[c++],u!=u)return!0}else for(;l>c;c++)if((t||c in s)&&s[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){"use strict";t.exports=n(12).document&&document.documentElement},function(t,e,n){"use strict";var i=n(19),r=n(76).set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&i(o)&&r&&r(t,o),t}},function(t,e,n){"use strict";var i=n(65);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var i=n(30),r=n(9)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},function(t,e,n){"use strict";var i=n(21);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(o){var a=t["return"];throw void 0!==a&&i(a.call(t)),o}}},function(t,e,n){"use strict";var i=n(74),r=n(49),o=n(50),a={};n(23)(a,n(9)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){"use strict";var i=n(9)("iterator"),r=!1;try{var o=[7][i]();o["return"]=function(){r=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(u){}return n}},function(t,e,n){"use strict";t.exports=!1},function(t,e,n){"use strict";var i=n(24),r=n(21),o=n(194);t.exports=n(17)?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),u=a.length,s=0;u>s;)i.f(t,n=a[s++],e[n]);return t}},function(t,e,n){"use strict";var i=n(195),r=n(49),o=n(38),a=n(79),u=n(18),s=n(71),l=Object.getOwnPropertyDescriptor;e.f=n(17)?l:function(t,e){if(t=o(t),e=a(e,!0),s)try{return l(t,e)}catch(n){}if(u(t,e))return r(!i.f.call(t,e),t[e])}},function(t,e,n){"use strict";var i=n(18),r=n(199),o=n(51)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){"use strict";var i=n(18),r=n(38),o=n(181)(!1),a=n(51)("IE_PROTO");t.exports=function(t,e){var n,u=r(t),s=0,l=[];for(n in u)n!=a&&i(u,n)&&l.push(n);for(;e.length>s;)i(u,n=e[s++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){"use strict";var i=n(193),r=n(70);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){"use strict";e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var i=n(12),r=n(24),o=n(17),a=n(9)("species");t.exports=function(t){var e=i[t];o&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var i=n(52),r=n(36);t.exports=function(t){return function(e,n){var o,a,u=String(r(e)),s=i(n),l=u.length;return s<0||s>=l?t?"":void 0:(o=u.charCodeAt(s),o<55296||o>56319||s+1===l||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):o:t?u.slice(s,s+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e,n){"use strict";var i=n(52),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},function(t,e,n){"use strict";var i=n(36);t.exports=function(t){return Object(i(t))}},function(t,e,n){"use strict";var i=n(46),r=n(9)("iterator"),o=n(30);t.exports=n(22).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,e,n){"use strict";var i=n(179),r=n(72),o=n(30),a=n(38);t.exports=n(48)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){"use strict";var i=n(66);t.exports=n(68)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=i.getEntry(this,t);return e&&e.v},set:function(t,e){return i.def(this,0===t?0:t,e)}},i,!0)},function(t,e,n){"use strict";var i=n(29);i(i.S,"Object",{setPrototypeOf:n(76).set})},function(t,e,n){"use strict";var i=n(66);t.exports=n(68)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return i.def(this,t=0===t?0:t,t)}},i)},function(t,e,n){"use strict";var i=n(29);i(i.P+i.R,"Map",{toJSON:n(67)("Map")})},function(t,e,n){"use strict";var i=n(29);i(i.P+i.R,"Set",{toJSON:n(67)("Set")})},function(t,e,n){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports='<svg width="13px" height="21px" viewBox="0 0 13 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>ios-back-button-icon</title><desc>Created with Sketch.</desc><defs></defs><g id="__3_inCE7__toolbar-back-button" stroke="none" stroke-width="1" fill-rule="evenodd"><g id="__3_inCE7__ios" transform="translate(-34.000000, -30.000000)"><polygon id="__3_inCE7__ios-back-button-icon" points="34 40.5 44.5 30 46.5 32 38 40.5 46.5 49 44.5 51"></polygon></g></g></svg>';
},function(t,e){t.exports='<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>md-back-button-icon</title><desc>Created with Sketch.</desc><defs></defs><g id="__1KDQIIe__toolbar-back-button" stroke="none" stroke-width="1" fill-rule="evenodd"><g id="__1KDQIIe__android" transform="translate(-32.000000, -32.000000)" fill-rule="nonzero"><polygon id="__1KDQIIe__md-back-button-icon" points="48 39 35.83 39 41.42 33.41 40 32 32 40 40 48 41.41 46.59 35.83 41 48 41"></polygon></g></g></svg>'}])})}).call(e,n(2).setImmediate,n(2).clearImmediate,n(3))},,,,function(t,e,n){/*! vue-onsenui v2.3.0 - Mon Oct 23 2017 13:20:27 GMT+0900 (JST) */
!function(e,i){t.exports=i(n(1))}(this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),a=r(o),u=n(36),s=i(u),l=n(53),c=n(55),f=r(c),d=function(t,e,n){(0,a["default"])(n).forEach(function(i){var r=n[i];i=(0,l.hyphenate)(i),t[e](i,r)})},h=function(t){arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d(t,"component",s),t.config.devtools&&!t.config.silent&&t.mixin({beforeCreate:function(){if(this.$options.template){var t=this.$options.template.match(/<(ons-[\w-]+)/im);if(t){var e=this.$options._componentTag?" in component <"+this.$options._componentTag+">":"";f["default"]._util.warn("[vue-onsenui] Vue templates must not contain <ons-*> elements directly.\n"+("<"+t[1]+"> element found near index "+t.index+e+". Please use <v-"+t[1]+"> instead:\n              "+this.$options.template))}}}}),t.prototype.$ons=(0,a["default"])(f["default"]).filter(function(t){return[/^is/,/^disable/,/^enable/,/^mock/,/^open/,/^set/,/animit/,/Element$/,/fastClick/,/GestureDetector/,/notification/,/orientation/,/platform/,/ready/].some(function(e){return t.match(e)})}).reduce(function(t,e){return t[e]=f["default"][e],t},{_ons:f["default"]})};"undefined"!=typeof window&&window.Vue&&window.Vue.use({install:h}),e["default"]=h},function(t,e,n){t.exports={"default":n(2),__esModule:!0}},function(t,e,n){n(3),t.exports=n(23).Object.keys},function(t,e,n){var i=n(4),r=n(6);n(21)("keys",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(5);t.exports=function(t){return Object(i(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){var i=n(7),r=n(20);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(8),r=n(9),o=n(12)(!1),a=n(16)("IE_PROTO");t.exports=function(t,e){var n,u=r(t),s=0,l=[];for(n in u)n!=a&&i(u,n)&&l.push(n);for(;e.length>s;)i(u,n=e[s++])&&(~o(l,n)||l.push(n));return l}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(10),r=n(5);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(9),r=n(13),o=n(15);t.exports=function(t){return function(e,n,a){var u,s=i(e),l=r(s.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if(u=s[c++],u!=u)return!0}else for(;l>c;c++)if((t||c in s)&&s[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var i=n(14),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(14),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},function(t,e,n){var i=n(17)("keys"),r=n(19);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){var i=n(18),r="__core-js_shared__",o=i[r]||(i[r]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(22),r=n(23),o=n(32);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){var i=n(18),r=n(23),o=n(24),a=n(26),u="prototype",s=function(t,e,n){var l,c,f,d=t&s.F,h=t&s.G,p=t&s.S,v=t&s.P,m=t&s.B,b=t&s.W,y=h?r:r[e]||(r[e]={}),_=y[u],g=h?i:p?i[e]:(i[e]||{})[u];h&&(n=e);for(l in n)c=!d&&g&&void 0!==g[l],c&&l in y||(f=c?g[l]:n[l],y[l]=h&&"function"!=typeof g[l]?n[l]:m&&c?o(f,i):b&&g[l]==f?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e[u]=t[u],e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[l]=f,t&s.R&&_&&!_[l]&&a(_,l,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(25);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(27),r=n(35);t.exports=n(31)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(28),r=n(30),o=n(34),a=Object.defineProperty;e.f=n(31)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(29);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(31)&&!n(32)(function(){return 7!=Object.defineProperty(n(33)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports=!n(32)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){var i=n(29),r=n(18).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){var i=n(29);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.VOnsToast=e.VOnsModal=e.VOnsActionSheetButton=e.VOnsActionSheet=e.VOnsDialog=e.VOnsPage=e.VOnsSpeedDialItem=e.VOnsFab=e.VOnsPullHook=e.VOnsRadio=e.VOnsRange=e.VOnsSearchInput=e.VOnsInput=e.VOnsCheckbox=e.VOnsSwitch=e.VOnsSplitter=e.VOnsSplitterContent=e.VOnsSplitterMask=e.VOnsCarouselItem=e.VOnsProgressCircular=e.VOnsProgressBar=e.VOnsCol=e.VOnsRow=e.VOnsRipple=e.VOnsListHeader=e.VOnsListTitle=e.VOnsListItem=e.VOnsList=e.VOnsCard=e.VOnsIcon=e.VOnsButton=e.VOnsAlertDialogButton=e.VOnsToolbarButton=e.VOnsBottomToolbar=e.VOnsToolbar=e.VOnsSegment=e.VOnsSelect=e.VOnsLazyRepeat=e.VOnsSplitterSide=e.VOnsNavigator=e.VOnsBackButton=e.VOnsTabbar=e.VOnsTab=e.VOnsCarousel=e.VOnsSpeedDial=e.VOnsAlertDialog=e.VOnsPopover=void 0;var r=n(37);Object.defineProperty(e,"VOnsPopover",{enumerable:!0,get:function(){return i(r)["default"]}});var o=n(81);Object.defineProperty(e,"VOnsAlertDialog",{enumerable:!0,get:function(){return i(o)["default"]}});var a=n(84);Object.defineProperty(e,"VOnsSpeedDial",{enumerable:!0,get:function(){return i(a)["default"]}});var u=n(87);Object.defineProperty(e,"VOnsCarousel",{enumerable:!0,get:function(){return i(u)["default"]}});var s=n(90);Object.defineProperty(e,"VOnsTab",{enumerable:!0,get:function(){return i(s)["default"]}});var l=n(93);Object.defineProperty(e,"VOnsTabbar",{enumerable:!0,get:function(){return i(l)["default"]}});var c=n(100);Object.defineProperty(e,"VOnsBackButton",{enumerable:!0,get:function(){return i(c)["default"]}});var f=n(103);Object.defineProperty(e,"VOnsNavigator",{enumerable:!0,get:function(){return i(f)["default"]}});var d=n(122);Object.defineProperty(e,"VOnsSplitterSide",{enumerable:!0,get:function(){return i(d)["default"]}});var h=n(125);Object.defineProperty(e,"VOnsLazyRepeat",{enumerable:!0,get:function(){return i(h)["default"]}});var p=n(128);Object.defineProperty(e,"VOnsSelect",{enumerable:!0,get:function(){return i(p)["default"]}});var v=n(131);Object.defineProperty(e,"VOnsSegment",{enumerable:!0,get:function(){return i(v)["default"]}});var m=n(134),b=i(m),y=n(47),_=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{name:"v-ons-"+t,mixins:e,"extends":b["default"]}};e.VOnsToolbar=_("toolbar"),e.VOnsBottomToolbar=_("bottom-toolbar"),e.VOnsToolbarButton=_("toolbar-button"),e.VOnsAlertDialogButton=_("alert-dialog-button"),e.VOnsButton=_("button"),e.VOnsIcon=_("icon"),e.VOnsCard=_("card"),e.VOnsList=_("list"),e.VOnsListItem=_("list-item"),e.VOnsListTitle=_("list-title"),e.VOnsListHeader=_("list-header"),e.VOnsRipple=_("ripple"),e.VOnsRow=_("row"),e.VOnsCol=_("col"),e.VOnsProgressBar=_("progress-bar"),e.VOnsProgressCircular=_("progress-circular"),e.VOnsCarouselItem=_("carousel-item"),e.VOnsSplitterMask=_("splitter-mask"),e.VOnsSplitterContent=_("splitter-content"),e.VOnsSplitter=_("splitter",[y.selfProvider,y.deriveDBB]),e.VOnsSwitch=_("switch",[y.modelCheckbox]),e.VOnsCheckbox=_("checkbox",[y.modelCheckbox]),e.VOnsInput=_("input",[y.modelInput]),e.VOnsSearchInput=_("search-input",[y.modelInput]),e.VOnsRange=_("range",[y.modelInput]),e.VOnsRadio=_("radio",[y.modelRadio]),e.VOnsPullHook=_("pull-hook",[(0,y.deriveHandler)("onAction"),(0,y.deriveHandler)("onPull",!0)]),e.VOnsFab=_("fab",[y.hidable]),e.VOnsSpeedDialItem=_("speed-dial-item"),e.VOnsPage=_("page",[y.deriveDBB,(0,y.deriveHandler)("onInfiniteScroll")]),e.VOnsDialog=_("dialog",[y.hidable,y.hasOptions,y.dialogCancel,y.deriveDBB,y.portal]),e.VOnsActionSheet=_("action-sheet",[y.hidable,y.hasOptions,y.dialogCancel,y.deriveDBB,y.portal]),e.VOnsActionSheetButton=_("action-sheet-button"),e.VOnsModal=_("modal",[y.hidable,y.hasOptions,y.deriveDBB,y.portal]),e.VOnsToast=_("toast",[y.hidable,y.hasOptions,y.deriveDBB,y.portal])},function(t,e,n){var i=n(38),r=n(39),o=n(80),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e){t.exports=function(t,e,n,i,r,o){var a,u=t=t||{},s=typeof t["default"];"object"!==s&&"function"!==s||(a=t,u=t["default"]);var l="function"==typeof u?u.options:u;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),r&&(l._scopeId=r);var c;if(o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=c):i&&(c=i),c){var f=l.functional,d=f?l.render:l.beforeCreate;f?(l._injectStyles=c,l.render=function(t,e){return c.call(e),d(t,e)}):l.beforeCreate=d?[].concat(d,c):[c]}return{esModule:a,exports:u,options:l}}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(40),o=i(r),a=n(47);e["default"]={mixins:[a.hidable,a.hasOptions,a.dialogCancel,a.deriveEvents,a.deriveDBB,a.portal],props:{target:{validator:function(t){return t._isVue||"string"==typeof t||t instanceof Event||t instanceof HTMLElement}}},computed:{normalizedTarget:function(){return this.target&&this.target._isVue?this.target.$el:this.target},normalizedOptions:function(){return this.target?(0,o["default"])({target:this.normalizedTarget},this.options):this.options}}}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=n(41),o=i(r);e["default"]=o["default"]||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(t,e,n){t.exports={"default":n(42),__esModule:!0}},function(t,e,n){n(43),t.exports=n(23).Object.assign},function(t,e,n){var i=n(22);i(i.S+i.F,"Object",{assign:n(44)})},function(t,e,n){"use strict";var i=n(6),r=n(45),o=n(46),a=n(4),u=n(10),s=Object.assign;t.exports=!s||n(32)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=i})?function(t,e){for(var n=a(t),s=arguments.length,l=1,c=r.f,f=o.f;s>l;)for(var d,h=u(arguments[l++]),p=c?i(h).concat(c(h)):i(h),v=p.length,m=0;v>m;)f.call(h,d=p[m++])&&(n[d]=h[d]);return n}:s},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(48);Object.defineProperty(e,"deriveDBB",{enumerable:!0,get:function(){return i.deriveDBB}}),Object.defineProperty(e,"deriveHandler",{enumerable:!0,get:function(){return i.deriveHandler}}),Object.defineProperty(e,"deriveEvents",{enumerable:!0,get:function(){return i.deriveEvents}});var r=n(54);Object.defineProperty(e,"hidable",{enumerable:!0,get:function(){return r.hidable}}),Object.defineProperty(e,"hasOptions",{enumerable:!0,get:function(){return r.hasOptions}}),Object.defineProperty(e,"selfProvider",{enumerable:!0,get:function(){return r.selfProvider}}),Object.defineProperty(e,"dialogCancel",{enumerable:!0,get:function(){return r.dialogCancel}}),Object.defineProperty(e,"portal",{enumerable:!0,get:function(){return r.portal}});var o=n(56);Object.defineProperty(e,"modelInput",{enumerable:!0,get:function(){return o.modelInput}}),Object.defineProperty(e,"modelCheckbox",{enumerable:!0,get:function(){return o.modelCheckbox}}),Object.defineProperty(e,"modelRadio",{enumerable:!0,get:function(){return o.modelRadio}})},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.deriveEvents=e.deriveHandler=e.deriveDBB=void 0;var r=n(1),o=i(r),a=n(49),u=i(a),s=n(40),l=i(s),c=n(53),f=function(t){var e="onDeviceBackButton",n=t[e]||t.$el[e]&&t.$el[e]._callback||function(t){return t.callParentHandler()};t.$el[e]=function(i){var r=!0;t.$emit((0,c.handlerToProp)(e),(0,l["default"])({},i,{preventDefault:function(){return r=!1}})),r&&n(i)},t._isDBBSetup=!0},d={mounted:function(){f(this)},activated:function(){this._isDBBSetup===!1&&f(this)},deactivated:function(){this._isDBBSetup===!0&&(this._isDBBSetup=!1)},destroyed:function(){this.$el.onDeviceBackButton&&this.$el.onDeviceBackButton.destroy()}},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e?t:(0,c.handlerToProp)(t);return{props:(0,u["default"])({},n,{type:Function,"default":null}),watch:(0,u["default"])({},n,function(){this.$el[t]=this[n]}),mounted:function(){this[n]&&(this.$el[t]=this[n])}}},p={computed:{unrecognizedListeners:function(){var t=this,e=(0,c.capitalize)((0,c.camelize)(this.$options._componentTag.slice(6)))+"Element";return(0,o["default"])(this.$listeners||{}).filter(function(n){return(t.$ons[e].events||[]).indexOf(n)===-1}).reduce(function(e,n){return e[n]=t.$listeners[n],e},{})}},mounted:function(){var t=this;this._handlers={},(this.$el.constructor.events||[]).forEach(function(e){t._handlers[(0,c.eventToHandler)(e)]=function(n){n.target!==t.$el&&/^ons-/i.test(n.target.tagName)||t.$emit(e,n)},t.$el.addEventListener(e,t._handlers[(0,c.eventToHandler)(e)])})},beforeDestroy:function(){var t=this;(0,o["default"])(this._handlers).forEach(function(e){t.$el.removeEventListener(e,t._handlers[e])}),this._handlers=null}};e.deriveDBB=d,e.deriveHandler=h,e.deriveEvents=p},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=n(50),o=i(r);e["default"]=function(t,e,n){return e in t?(0,o["default"])(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports={"default":n(51),__esModule:!0}},function(t,e,n){n(52);var i=n(23).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){var i=n(22);i(i.S+i.F*!n(31),"Object",{defineProperty:n(27).f})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(e.hyphenate=function(t){return t.replace(/([a-zA-Z])([A-Z])/g,"$1-$2").toLowerCase()},e.capitalize=function(t){return t.charAt(0).toUpperCase()+t.slice(1)});e.camelize=function(t){return t.toLowerCase().replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})},e.eventToHandler=function(t){return"_on"+n(t)},e.handlerToProp=function(t){return t.slice(2).charAt(0).toLowerCase()+t.slice(2).slice(1)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.portal=e.dialogCancel=e.selfProvider=e.hasOptions=e.hidable=void 0;var r=n(49),o=i(r),a=(n(55),function(){"boolean"==typeof this.visible&&this.visible!==this.$el.visible&&this.$el[this.visible?"show":"hide"].call(this.$el,this.normalizedOptions||this.options)}),u=function(){this._isDestroyed||this.$el.parentNode&&this.$el.parentNode===document.body||document.body.appendChild(this.$el)},s=function(){var t=this;this.$el.visible===!0?this.$el.hide().then(function(){return t.$el.remove()}):this.$el.remove()},l={props:{visible:{type:Boolean,"default":void 0}},watch:{visible:function(){a.call(this)}},mounted:function(){var t=this;this.$nextTick(function(){return a.call(t)})},activated:function(){var t=this;this.$nextTick(function(){return a.call(t)})}},c={props:{options:{type:Object,"default":function(){return{}}}}},f={provide:function(){return(0,o["default"])({},this.$options._componentTag.slice(6),this)}},d={mounted:function(){var t=this;this.$on("dialog-cancel",function(){return t.$emit("update:visible",!1)})}},h={mounted:function(){u.call(this)},updated:function(){u.call(this)},activated:function(){u.call(this)},deactivated:function(){s.call(this)},beforeDestroy:function(){s.call(this)}};e.hidable=l,e.hasOptions=c,e.selfProvider=f,e.dialogCancel=d,e.portal=h},function(e,n){e.exports=t},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.modelRadio=e.modelCheckbox=e.modelInput=void 0;var r,o,a=n(57),u=i(a),s=n(49),l=i(s),c={prop:"modelProp",event:"modelEvent"},f={model:c,props:(r={},(0,l["default"])(r,c.prop,[Number,String]),(0,l["default"])(r,c.event,{type:String,"default":"input"}),r),methods:{_updateValue:function(){void 0!==this[c.prop]&&this.$el.value!==this[c.prop]&&(this.$el.value=this[c.prop])},_onModelEvent:function(t){this.$emit(c.event,t.target.value)}},watch:(0,l["default"])({},c.prop,function(){this._updateValue()}),mounted:function(){this._updateValue(),this.$el.addEventListener(this[c.event],this._onModelEvent)},beforeDestroy:function(){this.$el.removeEventListener(this[c.event],this._onModelEvent)}},d={mixins:[f],props:(o={},(0,l["default"])(o,c.prop,[Array,Boolean]),(0,l["default"])(o,c.event,{type:String,"default":"change"}),o),methods:{_updateValue:function(){this[c.prop]instanceof Array?this.$el.checked=this[c.prop].indexOf(this.$el.value)>=0:this.$el.checked=this[c.prop]},_onModelEvent:function(t){var e=t.target,n=e.value,i=e.checked,r=void 0;if(this[c.prop]instanceof Array){var o=this[c.prop].indexOf(n),a=o>=0;a&&!i&&(r=[].concat((0,u["default"])(this[c.prop].slice(0,o)),(0,u["default"])(this[c.prop].slice(o+1,this[c.prop].length)))),!a&&i&&(r=[].concat((0,u["default"])(this[c.prop]),[n]))}else r=i;void 0!==r&&this.$emit(c.event,r)}}},h={mixins:[f],props:(0,l["default"])({},c.event,{type:String,"default":"change"}),methods:{_updateValue:function(){this.$el.checked=this[c.prop]===this.$el.value},_onModelEvent:function(t){var e=t.target,n=e.value,i=e.checked;i&&this.$emit(c.event,n)}}};e.modelInput=f,e.modelCheckbox=d,e.modelRadio=h},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=n(58),o=i(r);e["default"]=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o["default"])(t)}},function(t,e,n){t.exports={"default":n(59),__esModule:!0}},function(t,e,n){n(60),n(73),t.exports=n(23).Array.from},function(t,e,n){"use strict";var i=n(61)(!0);n(62)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var i=n(14),r=n(5);t.exports=function(t){return function(e,n){var o,a,u=String(r(e)),s=i(n),l=u.length;return s<0||s>=l?t?"":void 0:(o=u.charCodeAt(s),o<55296||o>56319||s+1===l||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):o:t?u.slice(s,s+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e,n){"use strict";var i=n(63),r=n(22),o=n(64),a=n(26),u=n(8),s=n(65),l=n(66),c=n(70),f=n(72),d=n(71)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",m="values",b=function(){return this};t.exports=function(t,e,n,y,_,g,w){l(n,e,y);var k,O,E,P=function(t){if(!h&&t in S)return S[t];switch(t){case v:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",x=_==m,A=!1,S=t.prototype,j=S[d]||S[p]||_&&S[_],T=j||P(_),M=_?x?P("entries"):T:void 0,L="Array"==e?S.entries||j:j;if(L&&(E=f(L.call(new t)),E!==Object.prototype&&(c(E,C,!0),i||u(E,d)||a(E,d,b))),x&&j&&j.name!==m&&(A=!0,T=function(){return j.call(this)}),i&&!w||!h&&!A&&S[d]||a(S,d,T),s[e]=T,s[C]=b,_)if(k={values:x?T:P(m),keys:g?T:P(v),entries:M},w)for(O in k)O in S||o(S,O,k[O]);else r(r.P+r.F*(h||A),e,k);return k}},function(t,e){t.exports=!0},function(t,e,n){t.exports=n(26)},function(t,e){t.exports={}},function(t,e,n){"use strict";var i=n(67),r=n(35),o=n(70),a={};n(26)(a,n(71)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var i=n(28),r=n(68),o=n(20),a=n(16)("IE_PROTO"),u=function(){},s="prototype",l=function(){var t,e=n(33)("iframe"),i=o.length,r="<",a=">";for(e.style.display="none",n(69).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),l=t.F;i--;)delete l[s][o[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[s]=i(t),n=new u,u[s]=null,n[a]=t):n=l(),void 0===e?n:r(n,e)}},function(t,e,n){var i=n(27),r=n(28),o=n(6);t.exports=n(31)?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),u=a.length,s=0;u>s;)i.f(t,n=a[s++],e[n]);return t}},function(t,e,n){t.exports=n(18).document&&document.documentElement},function(t,e,n){var i=n(27).f,r=n(8),o=n(71)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){var i=n(17)("wks"),r=n(19),o=n(18).Symbol,a="function"==typeof o,u=t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))};u.store=i},function(t,e,n){var i=n(8),r=n(4),o=n(16)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){"use strict";var i=n(24),r=n(22),o=n(4),a=n(74),u=n(75),s=n(13),l=n(76),c=n(77);r(r.S+r.F*!n(79)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,f,d=o(t),h="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v,b=0,y=c(d);if(m&&(v=i(v,p>2?arguments[2]:void 0,2)),void 0==y||h==Array&&u(y))for(e=s(d.length),n=new h(e);e>b;b++)l(n,b,m?v(d[b],b):d[b]);else for(f=y.call(d),n=new h;!(r=f.next()).done;b++)l(n,b,m?a(f,v,[r.value,b],!0):r.value);return n.length=b,n}})},function(t,e,n){var i=n(28);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(o){var a=t["return"];throw void 0!==a&&i(a.call(t)),o}}},function(t,e,n){var i=n(65),r=n(71)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},function(t,e,n){"use strict";var i=n(27),r=n(35);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){var i=n(78),r=n(71)("iterator"),o=n(65);t.exports=n(23).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,e,n){var i=n(11),r=n(71)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(u=i(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var i=n(71)("iterator"),r=!1;try{var o=[7][i]();o["return"]=function(){r=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(u){}return n}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ons-popover",t._g({},t.unrecognizedListeners),[t._t("default")],2)},i=[];t.exports={render:n,staticRenderFns:i}},function(t,e,n){var i=n(38),r=n(82),o=n(83),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(47);e["default"]={mixins:[a.hidable,a.hasOptions,a.dialogCancel,a.deriveEvents,a.deriveDBB,a.portal],props:{title:{type:String},footer:{type:Object,validator:function(t){return(0,o["default"])(t).every(function(e){return t[e]instanceof Function})}}}}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ons-alert-dialog",t._g({},t.unrecognizedListeners),[n("div",{staticClass:"alert-dialog-title"},[t._t("title",[t._v(t._s(t.title))])],2),t._v(" "),n("div",{staticClass:"alert-dialog-content"},[t._t("default")],2),t._v(" "),n("div",{staticClass:"alert-dialog-footer"},[t._t("footer",t._l(t.footer,function(e,i){return n("ons-alert-dialog-button",{key:i,on:{click:e}},[t._v(t._s(i))])}))],2)])},i=[];t.exports={render:n,staticRenderFns:i}},function(t,e,n){var i=n(38),r=n(85),o=n(86),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(47);e["default"]={mixins:[i.deriveEvents,i.hidable],props:{open:{type:Boolean,"default":void 0}},methods:{action:function(){var t=!0;this.$emit("click",{preventDefault:function(){return t=!1}}),t&&this.$el.toggleItems()},_shouldUpdate:function(){return void 0!==this.open&&this.open!==this.$el.isOpen()},_updateToggle:function(){this._shouldUpdate()&&this.$el[this.open?"showItems":"hideItems"].call(this.$el)}},watch:{open:function(){this._updateToggle()}},mounted:function(){var t=this;this.$on(["open","close"],function(){return t._shouldUpdate()&&t.$emit("update:open",t.$el.isOpen())}),this._updateToggle()}}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ons-speed-dial",{domProps:{onClick:t.action}},[t._t("default")],2)},i=[];t.exports={render:n,staticRenderFns:i}},function(t,e,n){var i=n(38),r=n(88),o=n(89),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(47);e["default"]={mixins:[i.hasOptions,i.deriveEvents],props:{index:{type:Number},onSwipe:{type:Function}},watch:{index:function(){this.index!==this.$el.getActiveIndex()&&this.$el.setActiveIndex(this.index,this.options)}}}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ons-carousel",t._g({attrs:{"initial-index":t.index},domProps:{onSwipe:t.onSwipe},on:{postchange:function(e){return e.target!==e.currentTarget?null:void t.$emit("update:index",e.activeIndex)}}},t.unrecognizedListeners),[n("div",[t._t("default")],2),t._v(" "),n("div")])},i=[];t.exports={render:n,staticRenderFns:i}},function(t,e,n){var i=n(38),r=n(91),o=n(92),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(40),o=i(r);e["default"]={inject:["tabbar"],props:{page:{},props:{},active:{type:Boolean}},methods:{action:function(){var t=!0;this.$emit("click",{preventDefault:function(){return t=!1}}),t&&this.tabbar.$el.setActiveTab(this.$el.index,(0,o["default"])({reject:!1},this.tabbar.options))}},watch:{active:function(){this.$el.setActive(this.active)}}}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ons-tab",{attrs:{active:t.active},domProps:{onClick:t.action}})},i=[];t.exports={render:n,staticRenderFns:i}},function(t,e,n){var i=n(38),r=n(94),o=n(99),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(40),o=i(r),a=n(95),u=i(a),s=n(47);e["default"]={mixins:[s.deriveEvents,s.hasOptions,s.hidable,s.selfProvider],props:{index:{type:Number},tabs:{type:Array,validator:function(t){return t.every(function(t){return["icon","label","page"].some(function(e){return!!(0,u["default"])(t,e)})})}},onSwipe:{type:Function},tabbarStyle:{type:null}},methods:{_tabKey:function(t){return t.key||t.label||t.icon}},watch:{index:function(){this.index!==this.$el.getActiveTabIndex()&&this.$el.setActiveTab(this.index,(0,o["default"])({reject:!1},this.options))}}}},function(t,e,n){t.exports={"default":n(96),__esModule:!0}},function(t,e,n){n(97);var i=n(23).Object;t.exports=function(t,e){return i.getOwnPropertyDescriptor(t,e)}},function(t,e,n){var i=n(9),r=n(98).f;n(21)("getOwnPropertyDescriptor",function(){return function(t,e){return r(i(t),e)}})},function(t,e,n){var i=n(46),r=n(35),o=n(9),a=n(34),u=n(8),s=n(30),l=Object.getOwnPropertyDescriptor;e.f=n(31)?l:function(t,e){if(t=o(t),e=a(e,!0),s)try{return l(t,e)}catch(n){}if(u(t,e))return r(!i.f.call(t,e),t[e])}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ons-tabbar",t._g({attrs:{activeIndex:t.index},domProps:{onSwipe:t.onSwipe},on:{prechange:function(e){return e.target!==e.currentTarget?null:void t.$nextTick(function(){return!e.detail.canceled&&t.$emit("update:index",e.index)})}}},t.unrecognizedListeners),[n("div",{staticClass:"tabbar__content"},[n("div",[t._t("pages",t._l(t.tabs,function(e){return n(e.page,t._g(t._b({key:e.page.key||e.page.name||t._tabKey(e),tag:"component"},"component",e.props,!1),t.unrecognizedListeners))}))],2),t._v(" "),n("div")]),t._v(" "),n("div",{staticClass:"tabbar",style:t.tabbarStyle},[t._t("default",t._l(t.tabs,function(e){return n("v-ons-tab",t._b({key:t._tabKey(e)},"v-ons-tab",e,!1))})),t._v(" "),n("div",{staticClass:"tabbar__border"})],2)])},i=[];t.exports={render:n,staticRenderFns:i}},function(t,e,n){var i=n(38),r=n(101),o=n(102),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={inject:["navigator"],methods:{action:function(){var t=!0;this.$emit("click",{preventDefault:function(){return t=!1}}),t&&this.navigator.pageStack.length>1&&this.navigator.popPage()}}}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ons-back-button",{domProps:{onClick:t.action}},[t._t("default")],2)},i=[];
t.exports={render:n,staticRenderFns:i}},function(t,e,n){var i=n(38),r=n(104),o=n(121),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(40),o=i(r),a=n(105),u=i(a),s=n(47);e["default"]={mixins:[s.hasOptions,s.selfProvider,s.deriveEvents,s.deriveDBB],props:{pageStack:{type:Array,required:!0},popPage:{type:Function,"default":function(){this.pageStack.pop()}}},methods:{isReady:function(){return this.hasOwnProperty("_ready")&&this._ready instanceof u["default"]?this._ready:u["default"].resolve()},onDeviceBackButton:function(t){this.pageStack.length>1?this.popPage():t.callParentHandler()},_findScrollPage:function(t){var e=1===t._contentElement.children.length&&this.$ons._ons._util.getTopPage(t._contentElement.children[0]);return e?this._findScrollPage(e):t},_setPagesVisibility:function(t,e,n){for(var i=t;i<e;i++)this.$children[i].$el.style.visibility=n},_reattachPage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2];this.$el.insertBefore(t,e),n instanceof Function&&n(),t._isShown=!0},_redetachPage:function(t){return t._destroy(),u["default"].resolve()},_animate:function(t){var e=this,n=t.lastLength,i=t.currentLength,r=t.lastTopPage,a=t.currentTopPage,u=t.restoreScroll;if(i>n){var s=!1;return r.parentElement!==this.$el&&(this._reattachPage(r,this.$el.children[n-1],u),s=!0,n--),this._setPagesVisibility(n,i,"hidden"),this.$el._pushPage((0,o["default"])({},this.options,{leavePage:r})).then(function(){e._setPagesVisibility(n,i,""),s&&e._redetachPage(r)})}return i<n?(this._reattachPage(r,null,u),this.$el._popPage((0,o["default"])({},this.options),function(){return e._redetachPage(r)})):(a.style.visibility="hidden",this._reattachPage(r,a,u),this.$el._pushPage((0,o["default"])({},this.options,{_replacePage:!0})).then(function(){return e._redetachPage(r)}))},_checkSwipe:function(t){this.$el.hasAttribute("swipeable")&&t.leavePage!==this.$el.lastChild&&t.leavePage===this.$children[this.$children.length-1].$el&&this.popPage()}},watch:{pageStack:function(t,e){if(!this.$el.hasAttribute("swipeable")||this.$children.length===this.$el.children.length){var n=t===e,i=this.$children[this.$children.length-1].$el,r=this._findScrollPage(i),o=r.scrollTop||0;this._pageStackUpdate={lastTopPage:i,lastLength:n?this.$children.length:e.length,currentLength:!n&&t.length,restoreScroll:function(){return r.scrollTop=o}}}}},updated:function(){if(this._pageStackUpdate){var t=this.$children[this.$children.length-1].$el,e=this._pageStackUpdate,n=e.lastLength,i=e.lastTopPage,r=e.currentLength,o=e.restoreScroll;r=r===!1?this.$children.length:r,t!==i?this._ready=this._animate({lastLength:n,currentLength:r,lastTopPage:i,currentTopPage:t,restoreScroll:o}):r!==n&&t.updateBackButton(r>1),i=t=this._pageStackUpdate=null}}}},function(t,e,n){t.exports={"default":n(106),__esModule:!0}},function(t,e,n){n(107),n(60),n(108),n(112),t.exports=n(23).Promise},function(t,e){},function(t,e,n){n(109);for(var i=n(18),r=n(26),o=n(65),a=n(71)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var l=u[s],c=i[l],f=c&&c.prototype;f&&!f[a]&&r(f,a,l),o[l]=o.Array}},function(t,e,n){"use strict";var i=n(110),r=n(111),o=n(65),a=n(9);t.exports=n(62)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var i,r,o,a=n(63),u=n(18),s=n(24),l=n(78),c=n(22),f=n(29),d=n(25),h=n(113),p=n(114),v=n(115),m=n(116).set,b=n(118)(),y="Promise",_=u.TypeError,g=u.process,w=u[y],g=u.process,k="process"==l(g),O=function(){},E=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[n(71)("species")]=function(t){t(O,O)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e}catch(i){}}(),P=function(t,e){return t===e||t===w&&e===o},C=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},x=function(t){return P(w,t)?new A(t):new r(t)},A=r=function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw _("Bad Promise constructor");e=t,n=i}),this.resolve=d(e),this.reject=d(n)},S=function(t){try{t()}catch(e){return{error:e}}},j=function(t,e){if(!t._n){t._n=!0;var n=t._c;b(function(){for(var i=t._v,r=1==t._s,o=0,a=function(e){var n,o,a=r?e.ok:e.fail,u=e.resolve,s=e.reject,l=e.domain;try{a?(r||(2==t._h&&L(t),t._h=1),a===!0?n=i:(l&&l.enter(),n=a(i),l&&l.exit()),n===e.promise?s(_("Promise-chain cycle")):(o=C(n))?o.call(n,u,s):u(n)):s(i)}catch(c){s(c)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&T(t)})}},T=function(t){m.call(u,function(){var e,n,i,r=t._v;if(M(t)&&(e=S(function(){k?g.emit("unhandledRejection",r,t):(n=u.onunhandledrejection)?n({promise:t,reason:r}):(i=u.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=k||M(t)?2:1),t._a=void 0,e)throw e.error})},M=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,i=0;n.length>i;)if(e=n[i++],e.fail||!M(e.promise))return!1;return!0},L=function(t){m.call(u,function(){var e;k?g.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},D=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),j(e,!0))},I=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw _("Promise can't be resolved itself");(e=C(t))?b(function(){var i={_w:n,_d:!1};try{e.call(t,s(I,i,1),s(D,i,1))}catch(r){D.call(i,r)}}):(n._v=t,n._s=1,j(n,!1))}catch(i){D.call({_w:n,_d:!1},i)}}};E||(w=function(t){h(this,w,y,"_h"),d(t),i.call(this);try{t(s(I,this,1),s(D,this,1))}catch(e){D.call(this,e)}},i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(119)(w.prototype,{then:function(t,e){var n=x(v(this,w));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=k?g.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},"catch":function(t){return this.then(void 0,t)}}),A=function(){var t=new i;this.promise=t,this.resolve=s(I,t,1),this.reject=s(D,t,1)}),c(c.G+c.W+c.F*!E,{Promise:w}),n(70)(w,y),n(120)(y),o=n(23)[y],c(c.S+c.F*!E,y,{reject:function(t){var e=x(this),n=e.reject;return n(t),e.promise}}),c(c.S+c.F*(a||!E),y,{resolve:function(t){if(t instanceof w&&P(t.constructor,this))return t;var e=x(this),n=e.resolve;return n(t),e.promise}}),c(c.S+c.F*!(E&&n(79)(function(t){w.all(t)["catch"](O)})),y,{all:function(t){var e=this,n=x(e),i=n.resolve,r=n.reject,o=S(function(){var n=[],o=0,a=1;p(t,!1,function(t){var u=o++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||i(n))},r)}),--a||i(n)});return o&&r(o.error),n.promise},race:function(t){var e=this,n=x(e),i=n.reject,r=S(function(){p(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r&&i(r.error),n.promise}})},function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var i=n(24),r=n(74),o=n(75),a=n(28),u=n(13),s=n(77),l={},c={},e=t.exports=function(t,e,n,f,d){var h,p,v,m,b=d?function(){return t}:s(t),y=i(n,f,e?2:1),_=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(o(b)){for(h=u(t.length);h>_;_++)if(m=e?y(a(p=t[_])[0],p[1]):y(t[_]),m===l||m===c)return m}else for(v=b.call(t);!(p=v.next()).done;)if(m=r(v,y,p.value,e),m===l||m===c)return m};e.BREAK=l,e.RETURN=c},function(t,e,n){var i=n(28),r=n(25),o=n(71)("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||void 0==(n=i(a)[o])?e:r(n)}},function(t,e,n){var i,r,o,a=n(24),u=n(117),s=n(69),l=n(33),c=n(18),f=c.process,d=c.setImmediate,h=c.clearImmediate,p=c.MessageChannel,v=0,m={},b="onreadystatechange",y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},_=function(t){y.call(t.data)};d&&h||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++v]=function(){u("function"==typeof t?t:Function(t),e)},i(v),v},h=function(t){delete m[t]},"process"==n(11)(f)?i=function(t){f.nextTick(a(y,t,1))}:p?(r=new p,o=r.port2,r.port1.onmessage=_,i=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+"","*")},c.addEventListener("message",_,!1)):i=b in l("script")?function(t){s.appendChild(l("script"))[b]=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:d,clear:h}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var i=n(18),r=n(116).set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,u=i.Promise,s="process"==n(11)(a);t.exports=function(){var t,e,n,l=function(){var i,r;for(s&&(i=a.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(o){throw t?n():e=void 0,o}}e=void 0,i&&i.enter()};if(s)n=function(){a.nextTick(l)};else if(o){var c=!0,f=document.createTextNode("");new o(l).observe(f,{characterData:!0}),n=function(){f.data=c=!c}}else if(u&&u.resolve){var d=u.resolve();n=function(){d.then(l)}}else n=function(){r.call(i,l)};return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},function(t,e,n){var i=n(26);t.exports=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:i(t,r,e[r]);return t}},function(t,e,n){"use strict";var i=n(18),r=n(23),o=n(27),a=n(31),u=n(71)("species");t.exports=function(t){var e="function"==typeof r[t]?r[t]:i[t];a&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ons-navigator",t._g({on:{postpop:function(e){return e.target!==e.currentTarget?null:void t._checkSwipe(e)}}},t.unrecognizedListeners),[t._t("default",t._l(t.pageStack,function(e){return n(e,t._g({key:e.key||e.name,tag:"component"},t.unrecognizedListeners))}))],2)},i=[];t.exports={render:n,staticRenderFns:i}},function(t,e,n){var i=n(38),r=n(123),o=n(124),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(47);e["default"]={mixins:[i.hasOptions,i.deriveEvents],props:{open:{type:Boolean,"default":void 0}},methods:{action:function(){this._shouldUpdate()&&this.$el[this.open?"open":"close"].call(this.$el,this.options)["catch"](function(){})},_shouldUpdate:function(){return void 0!==this.open&&this.open!==this.$el.isOpen}},watch:{open:function(){this.action()}},mounted:function(){var t=this;this.$on(["postopen","postclose","modechange"],function(){return t._shouldUpdate()&&t.$emit("update:open",t.$el.isOpen)}),this.action()}}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ons-splitter-side",t._g({},t.unrecognizedListeners),[t._t("default")],2)},i=[];t.exports={render:n,staticRenderFns:i}},function(t,e,n){var i=n(38),r=n(126),o=n(127),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={props:{renderItem:{type:Function,required:!0,validator:function(t){var e=t(0);return!(!e._isVue||e._isMounted)&&(e.$destroy(),!0)}},length:{type:Number,required:!0},calculateItemHeight:{type:Function,"default":void 0}},data:function(){return{provider:null}},methods:{_setup:function(){var t=this;this.provider&&this.provider.destroy();var e=new this.$ons._ons._internal.LazyRepeatDelegate({calculateItemHeight:this.calculateItemHeight,createItemContent:function(e){return t.renderItem(e).$mount().$el},destroyItem:function(t,e){var n=e.element;return n.__vue__.$destroy()},countItems:function(){return t.length}},null);this.provider=new this.$ons._ons._internal.LazyRepeatProvider(this.$parent.$el,e)},refresh:function(){return this.provider.refresh()}},watch:{renderItem:function(){this._setup()},length:function(){this._setup()},calculateItemHeight:function(){this._setup()}},mounted:function(){this._setup(),this.$vnode.context.$on("refresh",this.refresh)},beforeDestroy:function(){this.$vnode.context.$off("refresh",this.refresh),this.$el._lazyRepeatProvider=this.provider,this.provider=null}}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ons-lazy-repeat")},i=[];t.exports={render:n,staticRenderFns:i}},function(t,e,n){var i=n(38),r=n(129),o=n(130),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(47);e["default"]={mixins:[i.modelInput]}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ons-select",t._g({},t.$listeners),[n("select",[t._t("default")],2)])},i=[];t.exports={render:n,staticRenderFns:i}},function(t,e,n){var i=n(38),r=n(132),o=n(133),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(47);e["default"]={mixins:[i.deriveEvents],props:{index:{type:Number}},watch:{index:function(){this.index!==this.$el.getActiveButtonIndex()&&this.$el.setActiveButton(this.index,{reject:!1})}}}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ons-segment",{attrs:{"active-index":t.index},on:{postchange:function(e){return e.target!==e.currentTarget?null:void t.$emit("update:index",e.index)}}},[t._t("default")],2)},i=[];t.exports={render:n,staticRenderFns:i}},function(t,e,n){var i=n(38),r=n(135),o=n(136),a=!1,u=null,s=null,l=null,c=i(r,o,a,u,s,l);t.exports=c.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(47);e["default"]={mixins:[i.deriveEvents]}},function(t,e){var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.$options._componentTag.slice(2),t._g({tag:"component"},t.unrecognizedListeners),[t._t("default")],2)},i=[];t.exports={render:n,staticRenderFns:i}}])})},function(t,e,n){var i=n(7)(n(8),n(40),null,null);t.exports=i.exports},function(t,e){t.exports=function(t,e,n,i){var r,o=t=t||{},a=typeof t["default"];"object"!==a&&"function"!==a||(r=t,o=t["default"]);var u="function"==typeof o?o.options:o;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),n&&(u._scopeId=n),i){var s=u.computed||(u.computed={});Object.keys(i).forEach(function(t){var e=i[t];s[t]=function(){return e}})}return{esModule:r,exports:o,options:u}}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),o=i(r),a=n(38),u=i(a);e["default"]={data:function(){return{activeIndex:0,tabs:[{icon:this.md()?null:"ion-home",label:"Home",page:o["default"]},{icon:this.md()?null:"ion-location",label:"Explore",page:u["default"]}]}},methods:{md:function(){return this.$ons.platform.isAndroid()}},computed:{title:function(){return this.tabs[this.activeIndex].label}},components:{homePage:o["default"],explorePage:u["default"]}}},function(t,e,n){var i=n(7)(n(10),n(37),null,null);t.exports=i.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),o=i(r);e["default"]={data:function(){return{apiUrl:"https://api.thoughtful.kiwi/",posts:[]}},methods:{getPosts:function(){var t=this;o["default"].get(this.apiUrl+"post/").then(function(e){return t.posts=e.data})}},created:function(){this.getPosts()}}},function(t,e,n){t.exports=n(12)},function(t,e,n){"use strict";function i(t){var e=new a(t),n=o(a.prototype.request,e);return r.extend(n,a.prototype,e),r.extend(n,e),n}var r=n(13),o=n(14),a=n(16),u=n(17),s=i(u);s.Axios=a,s.create=function(t){return i(r.merge(u,t))},s.Cancel=n(34),s.CancelToken=n(35),s.isCancel=n(31),s.all=function(t){return Promise.all(t)},s.spread=n(36),t.exports=s,t.exports["default"]=s},function(t,e,n){"use strict";function i(t){return"[object Array]"===E.call(t)}function r(t){return"[object ArrayBuffer]"===E.call(t)}function o(t){return"undefined"!=typeof FormData&&t instanceof FormData}function a(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function u(t){return"string"==typeof t}function s(t){return"number"==typeof t}function l(t){return"undefined"==typeof t}function c(t){return null!==t&&"object"==typeof t}function f(t){return"[object Date]"===E.call(t)}function d(t){return"[object File]"===E.call(t)}function h(t){return"[object Blob]"===E.call(t)}function p(t){return"[object Function]"===E.call(t)}function v(t){return c(t)&&p(t.pipe)}function m(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function b(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function y(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function _(t,e){if(null!==t&&"undefined"!=typeof t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}function g(){function t(t,n){"object"==typeof e[n]&&"object"==typeof t?e[n]=g(e[n],t):e[n]=t}for(var e={},n=0,i=arguments.length;n<i;n++)_(arguments[n],t);return e}function w(t,e,n){return _(e,function(e,i){n&&"function"==typeof e?t[i]=k(e,n):t[i]=e}),t}var k=n(14),O=n(15),E=Object.prototype.toString;t.exports={isArray:i,isArrayBuffer:r,isBuffer:O,isFormData:o,isArrayBufferView:a,isString:u,isNumber:s,isObject:c,isUndefined:l,isDate:f,isFile:d,isBlob:h,isFunction:p,isStream:v,isURLSearchParams:m,isStandardBrowserEnv:y,forEach:_,merge:g,extend:w,trim:b}},function(t,e){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},function(t,e){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function i(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}/*!
	 * Determine if an object is a Buffer
	 *
	 * @author   Feross Aboukhadijeh <https://feross.org>
	 * @license  MIT
	 */
t.exports=function(t){return null!=t&&(n(t)||i(t)||!!t._isBuffer)}},function(t,e,n){"use strict";function i(t){this.defaults=t,this.interceptors={request:new a,response:new a}}var r=n(17),o=n(13),a=n(28),u=n(29);i.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),t=o.merge(r,this.defaults,{method:"get"},t),t.method=t.method.toLowerCase();var e=[u,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],function(t){i.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}}),o.forEach(["post","put","patch"],function(t){i.prototype[t]=function(e,n,i){return this.request(o.merge(i||{},{method:t,url:e,data:n}))}}),t.exports=i},function(t,e,n){(function(e){"use strict";function i(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function r(){var t;return"undefined"!=typeof XMLHttpRequest?t=n(19):"undefined"!=typeof e&&(t=n(19)),t}var o=n(13),a=n(18),u={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:r(),transformRequest:[function(t,e){return a(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){s.headers[t]={}}),o.forEach(["post","put","patch"],function(t){s.headers[t]=o.merge(u)}),t.exports=s}).call(e,n(3))},function(t,e,n){"use strict";var i=n(13);t.exports=function(t,e){i.forEach(t,function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])})}},function(t,e,n){"use strict";var i=n(13),r=n(20),o=n(23),a=n(24),u=n(25),s=n(21),l="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(26);t.exports=function(t){return new Promise(function(e,c){var f=t.data,d=t.headers;i.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest,p="onreadystatechange",v=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in h||u(t.url)||(h=new window.XDomainRequest,p="onload",v=!0,h.onprogress=function(){},h.ontimeout=function(){}),t.auth){var m=t.auth.username||"",b=t.auth.password||"";d.Authorization="Basic "+l(m+":"+b)}if(h.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h[p]=function(){if(h&&(4===h.readyState||v)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,i=t.responseType&&"text"!==t.responseType?h.response:h.responseText,o={data:i,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:n,config:t,request:h};r(e,c,o),h=null}},h.onerror=function(){c(s("Network Error",t,null,h)),h=null},h.ontimeout=function(){c(s("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",h)),h=null},i.isStandardBrowserEnv()){var y=n(27),_=(t.withCredentials||u(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;_&&(d[t.xsrfHeaderName]=_)}if("setRequestHeader"in h&&i.forEach(d,function(t,e){"undefined"==typeof f&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)}),t.withCredentials&&(h.withCredentials=!0),t.responseType)try{h.responseType=t.responseType}catch(g){if("json"!==t.responseType)throw g}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){h&&(h.abort(),c(t),h=null)}),void 0===f&&(f=null),h.send(f)})}},function(t,e,n){"use strict";var i=n(21);t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";var i=n(22);t.exports=function(t,e,n,r,o){var a=new Error(t);return i(a,e,n,r,o)}},function(t,e){"use strict";t.exports=function(t,e,n,i,r){return t.config=e,n&&(t.code=n),t.request=i,t.response=r,t}},function(t,e,n){"use strict";function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var r=n(13);t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(r.isArray(t)&&(e+="[]"),r.isArray(t)||(t=[t]),r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))}))}),o=a.join("&")}return o&&(t+=(t.indexOf("?")===-1?"?":"&")+o),t}},function(t,e,n){"use strict";var i=n(13),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(i.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(a[e]&&r.indexOf(e)>=0)return;"set-cookie"===e?a[e]=(a[e]?a[e]:[]).concat([n]):a[e]=a[e]?a[e]+", "+n:n}}),a):a}},function(t,e,n){"use strict";var i=n(13);t.exports=i.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(r.setAttribute("href",e),e=r.href),r.setAttribute("href",e),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");return e=t(window.location.href),function(n){var r=i.isString(n)?t(n):n;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}()},function(t,e){"use strict";function n(){this.message="String contains an invalid character"}function i(t){for(var e,i,o=String(t),a="",u=0,s=r;o.charAt(0|u)||(s="=",u%1);a+=s.charAt(63&e>>8-u%1*8)){if(i=o.charCodeAt(u+=.75),i>255)throw new n;e=e<<8|i}return a}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=i},function(t,e,n){"use strict";var i=n(13);t.exports=i.isStandardBrowserEnv()?function(){return{write:function(t,e,n,r,o,a){var u=[];u.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),i.isString(r)&&u.push("path="+r),i.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e,n){"use strict";function i(){this.handlers=[]}var r=n(13);i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},function(t,e,n){"use strict";function i(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var r=n(13),o=n(30),a=n(31),u=n(17),s=n(32),l=n(33);t.exports=function(t){i(t),t.baseURL&&!s(t.url)&&(t.url=l(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var e=t.adapter||u.adapter;return e(t).then(function(e){return i(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(i(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var i=n(13);t.exports=function(t,e,n){return i.forEach(n,function(n){t=n(t,e)}),t}},function(t,e){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t,e,n){"use strict";function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}var r=n(34);i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t,e=new i(function(e){t=e});return{token:e,cancel:t}},t.exports=i},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-ons-page",t._l(t.posts,function(e){return n("v-ons-card",{key:e.id},[n("div",{staticClass:"title"},[t._v("\n      "+t._s(e.title)+"\n    ")]),t._v(" "),n("div",{staticClass:"content"},[n("p",[t._v(t._s(e.body))])])])}))},staticRenderFns:[]}},function(t,e,n){var i=n(7)(null,n(39),null,null);t.exports=i.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-ons-page",[n("p",{staticStyle:{"text-align":"center"}},[t._v("\n    Some news here.\n  ")])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-ons-page",[n("v-ons-toolbar",[n("div",{staticClass:"center"},[t._v(t._s(t.title))])]),t._v(" "),n("v-ons-tabbar",{attrs:{position:"auto",tabs:t.tabs,visible:!0,index:t.activeIndex},on:{"update:index":function(e){t.activeIndex=e}}})],1)},staticRenderFns:[]}},function(t,e){},,,,,,,,41]);