UNPKG

framework7

Version:

Full featured mobile HTML framework for building iOS & Android apps

13 lines (12 loc) 194 kB
/** * Framework7 6.3.1 * Full featured mobile HTML framework for building iOS & Android apps * https://framework7.io/ * * Copyright 2014-2021 Vladimir Kharlampidi * * Released under the MIT License * * Released on: August 23, 2021 */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Framework7=t()}(this,(function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(r,a){void 0===r&&(r={}),void 0===a&&(a={}),Object.keys(a).forEach((function(n){void 0===r[n]?r[n]=a[n]:e(a[n])&&e(r[n])&&Object.keys(a[n]).length>0&&t(r[n],a[n])}))}var r={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){var e="undefined"!=typeof document?document:{};return t(e,r),e}var n={document:r,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function o(){var e="undefined"!=typeof window?window:{};return t(e,n),e}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,r){return(u=l()?Reflect.construct:function(e,t,r){var a=[null];a.push.apply(a,t);var n=new(Function.bind.apply(e,a));return r&&s(n,r.prototype),n}).apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return u(e,arguments,i(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s(a,e)})(e)}var p=function(e){var t,r;function a(t){var r,a,n;return r=e.call.apply(e,[this].concat(t))||this,a=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r),n=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return n},set:function(e){n.__proto__=e}}),r}return r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,a}(c(Array));function f(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,f(e)):t.push(e)})),t}function d(e,t){return Array.prototype.filter.call(e,t)}function h(e,t){var r=o(),n=a(),i=[];if(!t&&e instanceof p)return e;if(!e)return new p(i);if("string"==typeof e){var s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){var l="div";0===s.indexOf("<li")&&(l="ul"),0===s.indexOf("<tr")&&(l="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(l="tr"),0===s.indexOf("<tbody")&&(l="table"),0===s.indexOf("<option")&&(l="select");var u=n.createElement(l);u.innerHTML=s;for(var c=0;c<u.childNodes.length;c+=1)i.push(u.childNodes[c])}else i=function(e,t){if("string"!=typeof e)return[e];for(var r=[],a=t.querySelectorAll(e),n=0;n<a.length;n+=1)r.push(a[n]);return r}(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)i.push(e);else if(Array.isArray(e)){if(e instanceof p)return e;i=e}return new p(function(e){for(var t=[],r=0;r<e.length;r+=1)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(i))}h.fn=p.prototype;var v="resize scroll".split(" ");function m(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];if(void 0===r[0]){for(var n=0;n<this.length;n+=1)v.indexOf(e)<0&&(e in this[n]?this[n][e]():h(this[n]).trigger(e));return this}return this.on.apply(this,[e].concat(r))}}var g=m("click"),b=m("blur"),y=m("focus"),w=m("focusin"),C=m("focusout"),k=m("keyup"),E=m("keydown"),x=m("keypress"),P=m("submit"),O=m("change"),R=m("mousedown"),T=m("mousemove"),S=m("mouseup"),A=m("mouseenter"),$=m("mouseleave"),L=m("mouseout"),M=m("mouseover"),N=m("touchstart"),B=m("touchend"),H=m("touchmove"),_=m("resize"),D=m("scroll"),j=Object.freeze({__proto__:null,default:h,$:h,add:function(){for(var e,t,r=this,a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];for(e=0;e<n.length;e+=1){var i=h(n[e]);for(t=0;t<i.length;t+=1)r.push(i[t])}return r},addClass:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=f(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,a)})),this},animate:function(e,t){var r,a=o(),n=this,i={props:Object.assign({},e),params:Object.assign({duration:300,easing:"swing"},t),elements:n,animating:!1,que:[],easingProgress:function(e,t){return"swing"===e?.5-Math.cos(t*Math.PI)/2:"function"==typeof e?e(t):t},stop:function(){i.frameId&&a.cancelAnimationFrame(i.frameId),i.animating=!1,i.elements.each((function(e){delete e.dom7AnimateInstance})),i.que=[]},done:function(e){if(i.animating=!1,i.elements.each((function(e){delete e.dom7AnimateInstance})),e&&e(n),i.que.length>0){var t=i.que.shift();i.animate(t[0],t[1])}},animate:function(e,t){if(i.animating)return i.que.push([e,t]),i;var r=[];i.elements.each((function(t,n){var o,s,l,u,c;t.dom7AnimateInstance||(i.elements[n].dom7AnimateInstance=i),r[n]={container:t},Object.keys(e).forEach((function(i){o=a.getComputedStyle(t,null).getPropertyValue(i).replace(",","."),s=parseFloat(o),l=o.replace(s,""),u=parseFloat(e[i]),c=e[i]+l,r[n][i]={initialFullValue:o,initialValue:s,unit:l,finalValue:u,finalFullValue:c,currentValue:s}}))}));var o,s,l=null,u=0,c=0,p=!1;return i.animating=!0,i.frameId=a.requestAnimationFrame((function f(){var d,h;o=(new Date).getTime(),p||(p=!0,t.begin&&t.begin(n)),null===l&&(l=o),t.progress&&t.progress(n,Math.max(Math.min((o-l)/t.duration,1),0),l+t.duration-o<0?0:l+t.duration-o,l),r.forEach((function(a){var n=a;s||n.done||Object.keys(e).forEach((function(a){if(!s&&!n.done){d=Math.max(Math.min((o-l)/t.duration,1),0),h=i.easingProgress(t.easing,d);var p=n[a],f=p.initialValue,v=p.finalValue,m=p.unit;n[a].currentValue=f+h*(v-f);var g=n[a].currentValue;(v>f&&g>=v||v<f&&g<=v)&&(n.container.style[a]=v+m,(c+=1)===Object.keys(e).length&&(n.done=!0,u+=1),u===r.length&&(s=!0)),s?i.done(t.complete):n.container.style[a]=g+m}}))})),s||(i.frameId=a.requestAnimationFrame(f))})),i}};if(0===i.elements.length)return n;for(var s=0;s<i.elements.length;s+=1)i.elements[s].dom7AnimateInstance?r=i.elements[s].dom7AnimateInstance:i.elements[s].dom7AnimateInstance=i;return r||(r=i),"stop"===e?r.stop():r.animate(i.props,i.params),n},animationEnd:function(e){var t=this;return e&&t.on("animationend",(function r(a){a.target===this&&(e.call(this,a),t.off("animationend",r))})),this},append:function(){for(var e,t=a(),r=0;r<arguments.length;r+=1){e=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[n].appendChild(o.firstChild)}else if(e instanceof p)for(var i=0;i<e.length;i+=1)this[n].appendChild(e[i]);else this[n].appendChild(e)}return this},appendTo:function(e){return h(e).append(this),this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var r=0;r<this.length;r+=1)if(2===arguments.length)this[r].setAttribute(e,t);else for(var a in e)this[r][a]=e[a],this[r].setAttribute(a,e[a]);return this},blur:b,change:O,children:function(e){for(var t=[],r=0;r<this.length;r+=1)for(var a=this[r].children,n=0;n<a.length;n+=1)e&&!h(a[n]).is(e)||t.push(a[n]);return h(t)},click:g,closest:function(e){var t=this;return void 0===e?h([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},css:function(e,t){var r,a=o();if(1===arguments.length){if("string"!=typeof e){for(r=0;r<this.length;r+=1)for(var n in e)this[r].style[n]=e[n];return this}if(this[0])return a.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this},data:function(e,t){var r;if(void 0===t){if(!(r=this[0]))return;if(r.dom7ElementDataStorage&&e in r.dom7ElementDataStorage)return r.dom7ElementDataStorage[e];var a=r.getAttribute("data-"+e);return a||void 0}for(var n=0;n<this.length;n+=1)(r=this[n]).dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[e]=t;return this},dataset:function(){var e=this[0];if(e){var t,r={};if(e.dataset)for(var a in e.dataset)r[a]=e.dataset[a];else for(var n=0;n<e.attributes.length;n+=1){var o=e.attributes[n];o.name.indexOf("data-")>=0&&(r[(t=o.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o.value)}for(var i in r)"false"===r[i]?r[i]=!1:"true"===r[i]?r[i]=!0:parseFloat(r[i])===1*r[i]&&(r[i]*=1);return r}},detach:function(){return this.remove()},each:function(e){return e?(this.forEach((function(t,r){e.apply(t,[t,r])})),this):this},empty:function(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var r=0;r<t.childNodes.length;r+=1)t.childNodes[r].parentNode&&t.childNodes[r].parentNode.removeChild(t.childNodes[r]);t.textContent=""}}return this},eq:function(e){if(void 0===e)return this;var t=this.length;if(e>t-1)return h([]);if(e<0){var r=t+e;return h(r<0?[]:[this[r]])}return h([this[e]])},filter:function(e){return h(d(this,e))},find:function(e){for(var t=[],r=0;r<this.length;r+=1)for(var a=this[r].querySelectorAll(e),n=0;n<a.length;n+=1)t.push(a[n]);return h(t)},focus:y,focusin:w,focusout:C,hasClass:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=f(t.map((function(e){return e.split(" ")})));return d(this,(function(e){return a.filter((function(t){return e.classList.contains(t)})).length>0})).length>0},height:function(){var e=o();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null},hide:function(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},insertAfter:function(e){for(var t=h(e),r=0;r<this.length;r+=1)if(1===t.length)t[0].parentNode.insertBefore(this[r],t[0].nextSibling);else if(t.length>1)for(var a=0;a<t.length;a+=1)t[a].parentNode.insertBefore(this[r].cloneNode(!0),t[a].nextSibling)},insertBefore:function(e){for(var t=h(e),r=0;r<this.length;r+=1)if(1===t.length)t[0].parentNode.insertBefore(this[r],t[0]);else if(t.length>1)for(var a=0;a<t.length;a+=1)t[a].parentNode.insertBefore(this[r].cloneNode(!0),t[a])},is:function(e){var t,r,n=o(),i=a(),s=this[0];if(!s||void 0===e)return!1;if("string"==typeof e){if(s.matches)return s.matches(e);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(e);if(s.msMatchesSelector)return s.msMatchesSelector(e);for(t=h(e),r=0;r<t.length;r+=1)if(t[r]===s)return!0;return!1}if(e===i)return s===i;if(e===n)return s===n;if(e.nodeType||e instanceof p){for(t=e.nodeType?[e]:e,r=0;r<t.length;r+=1)if(t[r]===s)return!0;return!1}return!1},keydown:E,keypress:x,keyup:k,mousedown:R,mouseenter:A,mouseleave:$,mousemove:T,mouseout:L,mouseover:M,mouseup:S,next:function(e){return this.length>0?e?this[0].nextElementSibling&&h(this[0].nextElementSibling).is(e)?h([this[0].nextElementSibling]):h([]):this[0].nextElementSibling?h([this[0].nextElementSibling]):h([]):h([])},nextAll:function(e){var t=[],r=this[0];if(!r)return h([]);for(;r.nextElementSibling;){var a=r.nextElementSibling;e?h(a).is(e)&&t.push(a):t.push(a),r=a}return h(t)},off:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=t[0],n=t[1],o=t[2],i=t[3];"function"==typeof t[1]&&(a=t[0],o=t[1],i=t[2],n=void 0),i||(i=!1);for(var s=a.split(" "),l=0;l<s.length;l+=1)for(var u=s[l],c=0;c<this.length;c+=1){var p=this[c],f=void 0;if(!n&&p.dom7Listeners?f=p.dom7Listeners[u]:n&&p.dom7LiveListeners&&(f=p.dom7LiveListeners[u]),f&&f.length)for(var d=f.length-1;d>=0;d-=1){var h=f[d];o&&h.listener===o||o&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===o?(p.removeEventListener(u,h.proxyListener,i),f.splice(d,1)):o||(p.removeEventListener(u,h.proxyListener,i),f.splice(d,1))}}return this},offset:function(){if(this.length>0){var e=o(),t=a(),r=this[0],n=r.getBoundingClientRect(),i=t.body,s=r.clientTop||i.clientTop||0,l=r.clientLeft||i.clientLeft||0,u=r===e?e.scrollY:r.scrollTop,c=r===e?e.scrollX:r.scrollLeft;return{top:n.top+u-s,left:n.left+c-l}}return null},on:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=t[0],n=t[1],o=t[2],i=t[3];function s(e){var t=e.target;if(t){var r=e.target.dom7EventData||[];if(r.indexOf(e)<0&&r.unshift(e),h(t).is(n))o.apply(t,r);else for(var a=h(t).parents(),i=0;i<a.length;i+=1)h(a[i]).is(n)&&o.apply(a[i],r)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),o.apply(this,t)}"function"==typeof t[1]&&(a=t[0],o=t[1],i=t[2],n=void 0),i||(i=!1);for(var u,c=a.split(" "),p=0;p<this.length;p+=1){var f=this[p];if(n)for(u=0;u<c.length;u+=1){var d=c[u];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[d]||(f.dom7LiveListeners[d]=[]),f.dom7LiveListeners[d].push({listener:o,proxyListener:s}),f.addEventListener(d,s,i)}else for(u=0;u<c.length;u+=1){var v=c[u];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[v]||(f.dom7Listeners[v]=[]),f.dom7Listeners[v].push({listener:o,proxyListener:l}),f.addEventListener(v,l,i)}}return this},once:function(){for(var e=this,t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];var n=r[0],o=r[1],i=r[2],s=r[3];function l(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];i.apply(this,r),e.off(n,o,l,s),l.dom7proxy&&delete l.dom7proxy}return"function"==typeof r[1]&&(n=r[0],i=r[1],s=r[2],o=void 0),l.dom7proxy=i,e.on(n,o,l,s)},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},parent:function(e){for(var t=[],r=0;r<this.length;r+=1)null!==this[r].parentNode&&(e?h(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return h(t)},parents:function(e){for(var t=[],r=0;r<this.length;r+=1)for(var a=this[r].parentNode;a;)e?h(a).is(e)&&t.push(a):t.push(a),a=a.parentNode;return h(t)},prepend:function(e){var t,r,n=a();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=n.createElement("div");for(o.innerHTML=e,r=o.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(o.childNodes[r],this[t].childNodes[0])}else if(e instanceof p)for(r=0;r<e.length;r+=1)this[t].insertBefore(e[r],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},prependTo:function(e){return h(e).prepend(this),this},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&h(t.previousElementSibling).is(e)?h([t.previousElementSibling]):h([]):t.previousElementSibling?h([t.previousElementSibling]):h([])}return h([])},prevAll:function(e){var t=[],r=this[0];if(!r)return h([]);for(;r.previousElementSibling;){var a=r.previousElementSibling;e?h(a).is(e)&&t.push(a):t.push(a),r=a}return h(t)},prop:function(e,t){if(1!==arguments.length||"string"!=typeof e){for(var r=0;r<this.length;r+=1)if(2===arguments.length)this[r][e]=t;else for(var a in e)this[r][a]=e[a];return this}return this[0]?this[0][e]:this},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},removeClass:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=f(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,a)})),this},removeData:function(e){for(var t=0;t<this.length;t+=1){var r=this[t];r.dom7ElementDataStorage&&r.dom7ElementDataStorage[e]&&(r.dom7ElementDataStorage[e]=null,delete r.dom7ElementDataStorage[e])}},resize:_,scroll:D,scrollLeft:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=t[0],n=t[1],o=t[2],i=t[3];3===t.length&&"function"==typeof o&&(a=t[0],n=t[1],i=t[2],o=t[3]);var s=this;return void 0===a?s.length>0?s[0].scrollLeft:null:s.scrollTo(a,void 0,n,o,i)},scrollTo:function(){for(var e=o(),t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];var n=r[0],i=r[1],s=r[2],l=r[3],u=r[4];return 4===r.length&&"function"==typeof l&&(u=l,n=r[0],i=r[1],s=r[2],u=r[3],l=r[4]),void 0===l&&(l="swing"),this.each((function(){var t,r,a,o,c,p,f,d,h=this,v=i>0||0===i,m=n>0||0===n;if(void 0===l&&(l="swing"),v&&(t=h.scrollTop,s||(h.scrollTop=i)),m&&(r=h.scrollLeft,s||(h.scrollLeft=n)),s){v&&(a=h.scrollHeight-h.offsetHeight,c=Math.max(Math.min(i,a),0)),m&&(o=h.scrollWidth-h.offsetWidth,p=Math.max(Math.min(n,o),0));var g=null;v&&c===t&&(v=!1),m&&p===r&&(m=!1),e.requestAnimationFrame((function a(n){void 0===n&&(n=(new Date).getTime()),null===g&&(g=n);var o,i=Math.max(Math.min((n-g)/s,1),0),b="linear"===l?i:.5-Math.cos(i*Math.PI)/2;v&&(f=t+b*(c-t)),m&&(d=r+b*(p-r)),v&&c>t&&f>=c&&(h.scrollTop=c,o=!0),v&&c<t&&f<=c&&(h.scrollTop=c,o=!0),m&&p>r&&d>=p&&(h.scrollLeft=p,o=!0),m&&p<r&&d<=p&&(h.scrollLeft=p,o=!0),o?u&&u():(v&&(h.scrollTop=f),m&&(h.scrollLeft=d),e.requestAnimationFrame(a))}))}}))},scrollTop:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=t[0],n=t[1],o=t[2],i=t[3];3===t.length&&"function"==typeof o&&(a=t[0],n=t[1],i=t[2],o=t[3]);var s=this;return void 0===a?s.length>0?s[0].scrollTop:null:s.scrollTo(void 0,a,n,o,i)},show:function(){for(var e=o(),t=0;t<this.length;t+=1){var r=this[t];"none"===r.style.display&&(r.style.display=""),"none"===e.getComputedStyle(r,null).getPropertyValue("display")&&(r.style.display="block")}return this},siblings:function(e){return this.nextAll(e).add(this.prevAll(e))},stop:function(){for(var e=this,t=0;t<e.length;t+=1)e[t].dom7AnimateInstance&&e[t].dom7AnimateInstance.stop()},styles:function(){var e=o();return this[0]?e.getComputedStyle(this[0],null):{}},submit:P,text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},toggleClass:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=f(t.map((function(e){return e.split(" ")})));this.forEach((function(e){a.forEach((function(t){e.classList.toggle(t)}))}))},touchend:B,touchmove:H,touchstart:N,transform:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?e+"ms":e;return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",(function r(a){a.target===this&&(e.call(this,a),t.off("transitionend",r))})),this},trigger:function(){for(var e=o(),t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];for(var n=r[0].split(" "),i=r[1],s=0;s<n.length;s+=1)for(var l=n[s],u=0;u<this.length;u+=1){var c=this[u];if(e.CustomEvent){var p=new e.CustomEvent(l,{detail:i,bubbles:!0,cancelable:!0});c.dom7EventData=r.filter((function(e,t){return t>0})),c.dispatchEvent(p),c.dom7EventData=[],delete c.dom7EventData}}return this},val:function(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var r=[],a=0;a<t.selectedOptions.length;a+=1)r.push(t.selectedOptions[a].value);return r}return t.value}for(var n=0;n<this.length;n+=1){var o=this[n];if(Array.isArray(e)&&o.multiple&&"select"===o.nodeName.toLowerCase())for(var i=0;i<o.options.length;i+=1)o.options[i].selected=e.indexOf(o.options[i].value)>=0;else o.value=e}return this},value:function(e){return this.val(e)},width:function(){var e=o();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}});Object.keys(j).forEach((function(e){"$"!==e&&(h.fn[e]=j[e])}));var q=h;function I(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function U(e,t,r){return t&&I(e.prototype,t),r&&I(e,r),e}function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function F(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,W(e,t)}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function X(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Q(e,t,r){return(Q=X()?Reflect.construct:function(e,t,r){var a=[null];a.push.apply(a,t);var n=new(Function.bind.apply(e,a));return r&&W(n,r.prototype),n}).apply(null,arguments)}function Y(e){var t="function"==typeof Map?new Map:void 0;return(Y=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return Q(e,arguments,V(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),W(a,e)})(e)}function J(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var G=0;function K(e,t){void 0===e&&(e="xxxxxxxxxx"),void 0===t&&(t="0123456789abcdef");var r=t.length;return e.replace(/x/g,(function(){return t[Math.floor(Math.random()*r)]}))}var Z='\n <span class="preloader-inner">\n <svg viewBox="0 0 36 36">\n <circle cx="18" cy="18" r="16"></circle>\n </svg>\n </span>\n'.trim(),ee=('\n <span class="preloader-inner">\n '+[0,1,2,3,4,5,6,7].map((function(){return'<span class="preloader-inner-line"></span>'})).join("")+"\n </span>\n").trim();function te(e){var t;return e.split("").map((function(e,r){return e.match(/[A-Z]/)&&0!==r&&!t?(t=!0,":"+e.toLowerCase()):e.toLowerCase()})).join("")}function re(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}function ae(e){return o().requestAnimationFrame(e)}function ne(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function oe(e){return ae((function(){ae(e)}))}function ie(){return Date.now()}function se(e){var t,r,a,n,i=o(),s={},l=e||i.location.href;if("string"==typeof l&&l.length)for(n=(r=(l=l.indexOf("?")>-1?l.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,t=0;t<n;t+=1)a=r[t].replace(/#\S+/g,"").split("="),s[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a.slice(1).join("="))||"";return s}function le(e,t){if(void 0===t&&(t=[]),"string"==typeof e)return e;var r,a=[];function n(e){if(t.length>0){for(var r="",a=0;a<t.length;a+=1)r+=0===a?t[a]:"["+encodeURIComponent(t[a])+"]";return r+"["+encodeURIComponent(e)+"]"}return encodeURIComponent(e)}function o(e){return encodeURIComponent(e)}return Object.keys(e).forEach((function(i){var s;if(Array.isArray(e[i])){s=[];for(var l=0;l<e[i].length;l+=1)Array.isArray(e[i][l])||"object"!=typeof e[i][l]?s.push(n(i)+"[]="+o(e[i][l])):((r=t.slice()).push(i),r.push(String(l)),s.push(le(e[i][l],r)));s.length>0&&a.push(s.join("&"))}else null===e[i]||""===e[i]?a.push(n(i)+"="):"object"==typeof e[i]?((r=t.slice()).push(i),""!==(s=le(e[i],r))&&a.push(s)):void 0!==e[i]&&""!==e[i]?a.push(n(i)+"="+o(e[i])):""===e[i]&&a.push(n(i))})),a.join("&")}function ue(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object}function ce(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=t[0];t.splice(0,1);for(var n=t,o=0;o<n.length;o+=1){var i=t[o];if(null!=i)for(var s=Object.keys(Object(i)),l=0,u=s.length;l<u;l+=1){var c=s[l],p=Object.getOwnPropertyDescriptor(i,c);void 0!==p&&p.enumerable&&(a[c]=i[c])}}return a}function pe(){for(var e,t,r=!0,a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];"boolean"==typeof n[0]?(r=n[0],e=n[1],n.splice(0,2),t=n):(e=n[0],n.splice(0,1),t=n);for(var i=0;i<t.length;i+=1){var s=n[i];if(null!=s)for(var l=Object.keys(Object(s)),u=0,c=l.length;u<c;u+=1){var p=l[u],f=Object.getOwnPropertyDescriptor(s,p);void 0!==f&&f.enumerable&&(r?ue(e[p])&&ue(s[p])?pe(e[p],s[p]):!ue(e[p])&&ue(s[p])?(e[p]={},pe(e[p],s[p])):e[p]=s[p]:e[p]=s[p])}}return e}function fe(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,r,a){return t+t+r+r+a+a})),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return r?r.slice(1).map((function(e){return parseInt(e,16)})):null}function de(e,t,r){return"#"+[e,t,r].map((function(e){var t=e.toString(16);return 1===t.length?"0"+t:t})).join("")}function he(e,t,r){e/=255,t/=255,r/=255;var a,n=Math.max(e,t,r),o=Math.min(e,t,r),i=n-o;0===i?a=0:n===e?a=(t-r)/i%6:n===t?a=(r-e)/i+2:n===r&&(a=(e-t)/i+4);var s=(o+n)/2;return a<0&&(a=6+a),[60*a,0===i?0:i/(1-Math.abs(2*s-1)),s]}function ve(e,t,r){var a,n=(1-Math.abs(2*r-1))*t,o=e/60,i=n*(1-Math.abs(o%2-1));Number.isNaN(e)||void 0===e?a=[0,0,0]:o<=1?a=[n,i,0]:o<=2?a=[i,n,0]:o<=3?a=[0,n,i]:o<=4?a=[0,i,n]:o<=5?a=[i,0,n]:o<=6&&(a=[n,0,i]);var s=r-n/2;return a.map((function(e){return Math.max(0,Math.min(255,Math.round(255*(e+s))))}))}function me(e,t){Object.keys(t).forEach((function(r){ue(t[r])&&Object.keys(t[r]).forEach((function(a){"function"==typeof t[r][a]&&(t[r][a]=t[r][a].bind(e))})),e[r]=t[r]}))}function ge(){for(var e=[],t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return r.forEach((function(t){Array.isArray(t)?e.push.apply(e,ge.apply(void 0,t)):e.push(t)})),e}var be,ye,we=Object.freeze({__proto__:null,uniqueNumber:function(){return G+=1},id:K,mdPreloaderContent:Z,iosPreloaderContent:ee,auroraPreloaderContent:'\n <span class="preloader-inner">\n <span class="preloader-inner-circle"></span>\n </span>\n',eventNameToColonCase:te,deleteProps:re,requestAnimationFrame:ae,cancelAnimationFrame:function(e){return o().cancelAnimationFrame(e)},nextTick:ne,nextFrame:oe,now:ie,parseUrlQuery:se,getTranslate:function(e,t){void 0===t&&(t="x");var r,a,n,i=o(),s=i.getComputedStyle(e,null);return i.WebKitCSSMatrix?((a=s.transform||s.webkitTransform).split(",").length>6&&(a=a.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),n=new i.WebKitCSSMatrix("none"===a?"":a)):r=(n=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(a=i.WebKitCSSMatrix?n.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(a=i.WebKitCSSMatrix?n.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),a||0},serializeObject:le,isObject:ue,merge:ce,extend:pe,colorHexToRgb:fe,colorRgbToHex:de,colorRgbToHsl:he,colorHslToRgb:ve,colorHsbToHsl:function(e,t,r){var a={h:e,s:0,l:0},n=t,o=r;return a.l=(2-n)*o/2,a.s=a.l&&a.l<1?n*o/(a.l<.5?2*a.l:2-2*a.l):a.s,[a.h,a.s,a.l]},colorHslToHsb:function(e,t,r){var a={h:e,s:0,b:0},n=r,o=t*(n<.5?n:1-n);return a.b=n+o,a.s=n>0?2*o/a.b:a.s,[a.h,a.s,a.b]},colorThemeCSSProperties:function(){for(var e,t,r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];if(1===a.length?t=fe(e=a[0]):3===a.length&&(t=a,e=de.apply(void 0,t)),!t)return{};var o=he.apply(void 0,t),i=[o[0],o[1],Math.max(0,o[2]-.08)],s=[o[0],o[1],Math.max(0,o[2]+.08)],l=de.apply(void 0,ve.apply(void 0,i)),u=de.apply(void 0,ve.apply(void 0,s));return{"--f7-theme-color":e,"--f7-theme-color-rgb":t.join(", "),"--f7-theme-color-shade":l,"--f7-theme-color-tint":u}},bindMethods:me,flattenArray:ge});function Ce(){return be||(be=function(){var e=o(),t=a();return{touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),pointerEvents:!!e.PointerEvent&&"maxTouchPoints"in e.navigator&&e.navigator.maxTouchPoints>=0,passiveListener:function(){var t=!1;try{var r=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,r)}catch(e){}return t}(),intersectionObserver:"IntersectionObserver"in e}}()),be}function ke(e,t){return void 0===e&&(e={}),ye&&!t||(ye=function(e){var t=(void 0===e?{}:e).userAgent,r=Ce(),a=o(),n=a.navigator.platform,i=t||a.navigator.userAgent,s={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!a.cordova&&!a.phonegap),phonegap:!(!a.cordova&&!a.phonegap),electron:!1,capacitor:!!a.Capacitor,nwjs:!1},l=a.screen.width,u=a.screen.height,c=i.match(/(Android);?[\s\/]+([\d.]+)?/),p=i.match(/(iPad).*OS\s([\d_]+)/),f=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!p&&i.match(/(iPhone\sOS|iOS|iPhone;\sCPU\sOS)\s([\d_]+)/),h=i.indexOf("MSIE ")>=0||i.indexOf("Trident/")>=0,v=i.indexOf("Edge/")>=0,m=i.indexOf("Gecko/")>=0&&i.indexOf("Firefox/")>=0,g="Win32"===n,b=i.toLowerCase().indexOf("electron")>=0,y="undefined"!=typeof nw&&"undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.nw,w="MacIntel"===n;return!p&&w&&r.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(l+"x"+u)>=0&&((p=i.match(/(Version)\/([\d.]+)/))||(p=[0,1,"13_0_0"]),w=!1),s.ie=h,s.edge=v,s.firefox=m,c&&(s.os="android",s.osVersion=c[2],s.android=!0,s.androidChrome=i.toLowerCase().indexOf("chrome")>=0),(p||d||f)&&(s.os="ios",s.ios=!0),d&&!f&&(s.osVersion=d[2].replace(/_/g,"."),s.iphone=!0),p&&(s.osVersion=p[2].replace(/_/g,"."),s.ipad=!0),f&&(s.osVersion=f[3]?f[3].replace(/_/g,"."):null,s.ipod=!0),s.ios&&s.osVersion&&i.indexOf("Version/")>=0&&"10"===s.osVersion.split(".")[0]&&(s.osVersion=i.toLowerCase().split("version/")[1].split(" ")[0]),s.webView=!(!(d||p||f)||!i.match(/.*AppleWebKit(?!.*Safari)/i)&&!a.navigator.standalone)||a.matchMedia&&a.matchMedia("(display-mode: standalone)").matches,s.webview=s.webView,s.standalone=s.webView,s.desktop=!(s.ios||s.android)||b||y,s.desktop&&(s.electron=b,s.nwjs=y,s.macos=w,s.windows=g,s.macos&&(s.os="macos"),s.windows&&(s.os="windows")),s.pixelRatio=a.devicePixelRatio||1,s.prefersColorScheme=function(){var e;return a.matchMedia&&a.matchMedia("(prefers-color-scheme: light)").matches&&(e="light"),a.matchMedia&&a.matchMedia("(prefers-color-scheme: dark)").matches&&(e="dark"),e},s}(e)),ye}var Ee=function(){function e(e){void 0===e&&(e=[]);this.eventsParents=e,this.eventsListeners={}}var t=e.prototype;return t.on=function(e,t,r){var a=this;if("function"!=typeof t)return a;var n=r?"unshift":"push";return e.split(" ").forEach((function(e){a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][n](t)})),a},t.once=function(e,t,r){var a=this;if("function"!=typeof t)return a;function n(){a.off(e,n),n.f7proxy&&delete n.f7proxy;for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t.apply(a,o)}return n.f7proxy=t,a.on(e,n,r)},t.off=function(e,t){var r=this;return r.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?r.eventsListeners[e]=[]:r.eventsListeners[e]&&r.eventsListeners[e].forEach((function(a,n){(a===t||a.f7proxy&&a.f7proxy===t)&&r.eventsListeners[e].splice(n,1)}))})),r):r},t.emit=function(){var e,t,r,a,n=this;if(!n.eventsListeners)return n;for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];"string"==typeof i[0]||Array.isArray(i[0])?(e=i[0],t=i.slice(1,i.length),r=n,a=n.eventsParents):(e=i[0].events,t=i[0].data,r=i[0].context||n,a=i[0].local?[]:i[0].parents||n.eventsParents);var l=Array.isArray(e)?e:e.split(" "),u=l.map((function(e){return e.replace("local::","")})),c=l.filter((function(e){return e.indexOf("local::")<0}));return u.forEach((function(e){if(n.eventsListeners&&n.eventsListeners[e]){var a=[];n.eventsListeners[e].forEach((function(e){a.push(e)})),a.forEach((function(e){e.apply(r,t)}))}})),a&&a.length>0&&a.forEach((function(e){e.emit.apply(e,[c].concat(t))})),n},e}(),xe=function(e){function t(t,r){var a;void 0===t&&(t={}),void 0===r&&(r=[]);var n=J(a=e.call(this,r)||this);return n.params=t,n.params&&n.params.on&&Object.keys(n.params.on).forEach((function(e){n.on(e,n.params.on[e])})),a}F(t,e);var r=t.prototype;return r.useModuleParams=function(e,t){if(e.params){var r={};Object.keys(e.params).forEach((function(e){void 0!==t[e]&&(r[e]=pe({},t[e]))})),pe(t,e.params),Object.keys(r).forEach((function(e){pe(t[e],r[e])}))}},r.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(r){var a=t.modules[r];a.params&&pe(e,a.params)}))},r.useModule=function(e,t){void 0===e&&(e=""),void 0===t&&(t={});var r=this;if(r.modules){var a="string"==typeof e?r.modules[e]:e;a&&(a.instance&&Object.keys(a.instance).forEach((function(e){var t=a.instance[e];r[e]="function"==typeof t?t.bind(r):t})),a.on&&r.on&&Object.keys(a.on).forEach((function(e){r.on(e,a.on[e])})),a.vnode&&(r.vnodeHooks||(r.vnodeHooks={}),Object.keys(a.vnode).forEach((function(e){Object.keys(a.vnode[e]).forEach((function(t){var n=a.vnode[e][t];r.vnodeHooks[t]||(r.vnodeHooks[t]={}),r.vnodeHooks[t][e]||(r.vnodeHooks[t][e]=[]),r.vnodeHooks[t][e].push(n.bind(r))}))}))),a.create&&a.create.bind(r)(t))}},r.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(r){var a=e[r]||{};t.useModule(r,a)}))},t.installModule=function(e){var t=this;t.prototype.modules||(t.prototype.modules={});var r=e.name||Object.keys(t.prototype.modules).length+"_"+ie();if(t.prototype.modules[r]=e,e.proto&&Object.keys(e.proto).forEach((function(r){t.prototype[r]=e.proto[r]})),e.static&&Object.keys(e.static).forEach((function(r){t[r]=e.static[r]})),e.install){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o<a;o++)n[o-1]=arguments[o];e.install.apply(t,n)}return t},t.use=function(e){var t=this;if(Array.isArray(e))return e.forEach((function(e){return t.installModule(e)})),t;for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];return t.installModule.apply(t,[e].concat(a))},U(t,null,[{key:"components",set:function(e){this.use&&this.use(e)}}]),t}(Ee);function Pe(e){void 0===e&&(e={});var t=e,r=t.defaultSelector,a=t.constructor,n=t.domProp,o=t.app,i=t.addMethods,s={create:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Q(a,o?[o].concat(t):t)},get:function(e){if(void 0===e&&(e=r),e instanceof a)return e;var t=q(e);return 0!==t.length?t[0][n]:void 0},destroy:function(e){var t=s.get(e);if(t&&t.destroy)return t.destroy()}};return i&&Array.isArray(i)&&i.forEach((function(e){s[e]=function(t){void 0===t&&(t=r);for(var a=s.get(t),n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];if(a&&a[e])return a[e].apply(a,o)}})),s}var Oe=[];var Re=function(e){function t(r){var n;if(void 0===r&&(r={}),n=e.call(this,r)||this,t.instance&&"undefined"!=typeof window)throw new Error("Framework7 is already initialized and can't be initialized more than once");var i=ke({userAgent:r.userAgent||void 0}),s=Ce(),l=pe({},r),u=J(n);u.device=i,u.support=s;var c=o(),p=a();t.instance=u;var f={version:"1.0.0",id:"io.framework7.myapp",el:"body",theme:"auto",language:c.navigator.language,routes:[],name:"Framework7",lazyModulesPath:null,initOnDeviceReady:!0,init:!0,autoDarkTheme:!1,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0,userAgent:null,url:null};return u.useModulesParams(f),u.params=pe(f,r),pe(u,{id:u.params.id,name:u.params.name,version:u.params.version,routes:u.params.routes,language:u.params.language,theme:"auto"===u.params.theme?i.ios?"ios":i.desktop&&i.electron?"aurora":"md":u.params.theme,passedParams:l,online:c.navigator.onLine}),r.store&&(u.params.store=r.store),u.$el&&u.$el[0]&&(u.$el[0].f7=u),u.useModules(),u.initStore(),u.params.init&&(i.cordova&&u.params.initOnDeviceReady?q(p).on("deviceready",(function(){u.init()})):u.init()),u||J(n)}F(t,e);var r=t.prototype;return r.mount=function(e){var t=this,r=o(),n=a(),i=q(e||t.params.el).eq(0);t.$el=i,t.$el&&t.$el[0]&&(t.el=t.$el[0],t.el.f7=t,t.rtl="rtl"===i.css("direction"));var s="(prefers-color-scheme: dark)",l="(prefers-color-scheme: light)";t.mq={},r.matchMedia&&(t.mq.dark=r.matchMedia(s),t.mq.light=r.matchMedia(l)),t.colorSchemeListener=function(e){var r=e.matches,a=e.media;if(r){var o=n.querySelector("html");a===s?(o.classList.add("theme-dark"),t.darkTheme=!0,t.emit("darkThemeChange",!0)):a===l&&(o.classList.remove("theme-dark"),t.darkTheme=!1,t.emit("darkThemeChange",!1))}},t.emit("mount")},r.initStore=function(){var e=this;void 0!==e.params.store&&e.params.store.__store?e.store=e.params.store:e.store=e.createStore(e.params.store)},r.enableAutoDarkTheme=function(){var e=o(),t=a();if(e.matchMedia){var r=this,n=t.querySelector("html");r.mq.dark&&r.mq.light&&(r.mq.dark.addListener(r.colorSchemeListener),r.mq.light.addListener(r.colorSchemeListener)),r.mq.dark&&r.mq.dark.matches?(n.classList.add("theme-dark"),r.darkTheme=!0,r.emit("darkThemeChange",!0)):r.mq.light&&r.mq.light.matches&&(n.classList.remove("theme-dark"),r.darkTheme=!1,r.emit("darkThemeChange",!1))}},r.disableAutoDarkTheme=function(){if(o().matchMedia){var e=this;e.mq.dark&&e.mq.dark.removeListener(e.colorSchemeListener),e.mq.light&&e.mq.light.removeListener(e.colorSchemeListener)}},r.initAppComponent=function(e){var t=this;t.router.componentLoader(t.params.component,t.params.componentUrl,{componentOptions:{el:t.$el[0]}},(function(r){t.$el=q(r),t.$el[0].f7=t,t.$elComponent=r.f7Component,t.el=t.$el[0],e&&e()}),(function(){}))},r.init=function(e){var t=this;t.mount(e);var r=function(){if(!t.initialized){t.$el.addClass("framework7-initializing"),t.rtl&&q("html").attr("dir","rtl"),t.params.autoDarkTheme&&t.enableAutoDarkTheme();var e=o();e.addEventListener("offline",(function(){t.online=!1,t.emit("offline"),t.emit("connection",!1)})),e.addEventListener("online",(function(){t.online=!0,t.emit("online"),t.emit("connection",!0)})),t.$el.addClass("framework7-root"),q("html").removeClass("ios md aurora").addClass(t.theme);var r=t.device;t.params.iosTranslucentBars&&"ios"===t.theme&&r.ios&&q("html").addClass("ios-translucent-bars"),t.params.iosTranslucentModals&&"ios"===t.theme&&r.ios&&q("html").addClass("ios-translucent-modals"),oe((function(){t.$el.removeClass("framework7-initializing")})),t.initialized=!0,t.emit("init")}};return t.params.component||t.params.componentUrl?t.initAppComponent((function(){r()})):r(),t},r.loadModule=function(){return t.loadModule.apply(t,arguments)},r.loadModules=function(){return t.loadModules.apply(t,arguments)},r.getVnodeHooks=function(e,t){var r=this;return r.vnodeHooks&&r.vnodeHooks[e]&&r.vnodeHooks[e][t]||[]},U(t,[{key:"$",get:function(){return q}}],[{key:"Dom7",get:function(){return q}},{key:"$",get:function(){return q}},{key:"device",get:function(){return ke()}},{key:"support",get:function(){return Ce()}},{key:"Class",get:function(){return xe}},{key:"Events",get:function(){return Ee}}]),t}(xe);Re.ModalMethods=function(e){void 0===e&&(e={});var t=e,r=t.defaultSelector,a=t.constructor,n=t.app;return pe(Pe({defaultSelector:r,constructor:a,app:n,domProp:"f7Modal"}),{open:function(e,t,r){var o=q(e);if(o.length>1&&r){var i=q(r).parents(".page");i.length&&o.each((function(e){var t=q(e);t.parents(i)[0]===i[0]&&(o=t)}))}if(o.length>1&&(o=o.eq(o.length-1)),o.length){var s=o[0].f7Modal;if(!s){var l=o.dataset();s=new a(n,z({el:o},l))}return s.open(t)}},close:function(e,t,o){void 0===e&&(e=r);var i=q(e);if(i.length){if(i.length>1){var s;if(o){var l=q(o);l.length&&(s=l.parents(i))}i=s&&s.length>0?s:i.eq(i.length-1)}var u=i[0].f7Modal;if(!u){var c=i.dataset();u=new a(n,z({el:i},c))}return u.close(t)}}})},Re.ConstructorMethods=Pe,Re.loadModule=function(e){var t=this,r=o(),n=a();return new Promise((function(a,o){var i,s,l,u=t.instance;if(e){if("string"==typeof e){var c=e.match(/([a-z0-9-]*)/i);if(e.indexOf(".")<0&&c&&c[0].length===e.length){if(!u||u&&!u.params.lazyModulesPath)return void o(new Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));i=u.params.lazyModulesPath+"/"+e+"/"+e+".js"}else i=e}else"function"==typeof e?l=e:s=e;if(l){var p=l(t,!1);if(!p)return void o(new Error("Framework7: Can't find Framework7 component in specified component function"));if(t.prototype.modules&&t.prototype.modules[p.name])return void a();v(p),a()}if(s){var f=s;if(!f)return void o(new Error("Framework7: Can't find Framework7 component in specified component"));if(t.prototype.modules&&t.prototype.modules[f.name])return void a();v(f),a()}if(i){if(Oe.indexOf(i)>=0)return void a();Oe.push(i);var d=new Promise((function(e,a){t.request.get(i,(function(o){var s="f7_component_loader_callback_"+K(),l=n.createElement("script");l.innerHTML="window."+s+" = function (Framework7, Framework7AutoInstallComponent) {return "+o.trim()+"}",q("head").append(l);var u=r[s];delete r[s],q(l).remove();var c=u(t,!1);c?(t.prototype.modules&&t.prototype.modules[c.name]||v(c),e()):a(new Error("Framework7: Can't find Framework7 component in "+i+" file"))}),(function(e,t){a(e,t)}))})),h=new Promise((function(e){t.request.get(i.replace(".js",u.rtl?".rtl.css":".css"),(function(t){var r=n.createElement("style");r.innerHTML=t,q("head").append(r),e()}),(function(){e()}))}));Promise.all([d,h]).then((function(){a()})).catch((function(e){o(e)}))}}else o(new Error("Framework7: Lazy module must be specified"));function v(e){t.use(e),u&&(u.useModuleParams(e,u.params),u.useModule(e))}}))},Re.loadModules=function(e){return Promise.all(e.map((function(e){return Re.loadModule(e)})))};var Te={name:"device",static:{getDevice:ke},on:{init:function(){var e=a(),t=ke(),r=[],n=e.querySelector("html"),o=e.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');n&&(t.standalone&&t.ios&&o&&"black-translucent"===o.content&&r.push("device-full-viewport"),r.push("device-pixel-ratio-"+Math.floor(t.pixelRatio)),t.os&&!t.desktop?r.push("device-"+t.os):t.desktop&&(r.push("device-desktop"),t.os&&r.push("device-"+t.os)),(t.cordova||t.phonegap)&&r.push("device-cordova"),t.capacitor&&r.push("device-capacitor"),r.forEach((function(e){n.classList.add(e)})))}}},Se={name:"support",static:{getSupport:Ce}},Ae={name:"utils",proto:{utils:we},static:{utils:we}},$e={name:"resize",create:function(){var e=this;e.getSize=function(){if(!e.el)return{width:0,height:0,left:0,top:0};var t=e.$el.offset(),r=[e.el.offsetWidth,e.el.offsetHeight,t.left,t.top],a=r[0],n=r[1],o=r[2],i=r[3];return e.width=a,e.height=n,e.left=o,e.top=i,{width:a,height:n,left:o,top:i}}},on:{init:function(){var e=this,t=o();e.getSize(),t.addEventListener("resize",(function(){e.emit("resize")}),!1),t.addEventListener("orientationchange",(function(){e.emit("orientationchange")}))},orientationchange:function(){var e=a();ke().ipad&&(e.body.scrollLeft=0,setTimeout((function(){e.body.scrollLeft=0}),0))},resize:function(){this.getSize()}}},Le={},Me=0,Ne=function(e){Object.assign(this,e)},Be=function(e){function t(t){var r;return r=e.call(this)||this,Object.assign(J(r),t),r}return F(t,e),t}(Y(Error)),He=function(e){return new Promise((function(t,r){var n=o(),i=a(),s=pe({},Le);"beforeCreate beforeOpen beforeSend error complete success statusCode".split(" ").forEach((function(e){delete s[e]}));var l=pe({url:n.location.toString(),method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},s),u=pe({},l,e);if(e.abortController&&(u.abortController=e.abortController),u.abortController&&u.abortController.canceled)r(new Be({options:u,status:"canceled",message:"canceled"}));else if(!1!==O("beforeCreate",u)){u.type&&(u.method=u.type);var c,p=u.url.indexOf("?")>=0?"&":"?",f=u.method.toUpperCase();if(("GET"===f||"HEAD"===f||"OPTIONS"===f||"DELETE"===f)&&u.data)(c="string"==typeof u.data?u.data.indexOf("?")>=0?u.data.split("?")[1]:u.data:le(u.data)).length&&(u.url+=p+c,"?"===p&&(p="&"));if("json"===u.dataType&&u.url.indexOf("callback=")>=0){var d,h="f7jsonp_"+(Date.now()+(Me+=1)),v=u.url.split("callback="),m=v[0]+"callback="+h;if(v[1].indexOf("&")>=0){var g=v[1].split("&").filter((function(e){return e.indexOf("=")>0})).join("&");g.length>0&&(m+="&"+g)}var b=i.createElement("script");return b.type="text/javascript",b.onerror=function(){clearTimeout(d),O("error",null,"scripterror","scripterror"),r(new Be({options:u,status:"scripterror",message:"scripterror"})),O("complete",null,"scripterror")},b.src=m,n[h]=function(e){clearTimeout(d),O("success",e),b.parentNode.removeChild(b),b=null,delete n[h],t(new Ne({options:u,data:e}))},i.querySelector("head").appendChild(b),void(u.timeout>0&&(d=setTimeout((function(){b.parentNode.removeChild(b),b=null,O("error",null,"timeout","timeout"),r(new Be({options:u,status:"timeout",message:"timeout"}))}),u.timeout)))}"GET"!==f&&"HEAD"!==f&&"OPTIONS"!==f&&"DELETE"!==f||!1===u.cache&&(u.url+=p+"_nocache"+Date.now());var y=new XMLHttpRequest;if(u.abortController){var w=!1;u.abortController.onAbort=function(){w||(w=!0,y.abort(),r(new Be({options:u,xhr:y,status:"canceled",message:"canceled"})))}}if(y.requestUrl=u.url,y.requestParameters=u,!1!==O("beforeOpen",y,u)){y.open(f,u.url,u.async,u.user,u.password);var C=null;if(("POST"===f||"PUT"===f||"PATCH"===f)&&u.data)if(u.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(u.data.constructor)>=0)C=u.data;else{var k="---------------------------"+Date.now().toString(16);"multipart/form-data"===u.contentType?y.setRequestHeader("Content-Type","multipart/form-data; boundary="+k):y.setRequestHeader("Content-Type",u.contentType),C="";var E=le(u.data);if("multipart/form-data"===u.contentType){E=E.split("&");for(var x=[],P=0;P<E.length;P+=1)x.push('Content-Disposition: form-data; name="'+E[P].split("=")[0]+'"\r\n\r\n'+E[P].split("=")[1]+"\r\n");C="--"+k+"\r\n"+x.join("--"+k+"\r\n")+"--"+k+"--\r\n"}else C="application/json"===u.contentType?JSON.stringify(u.data):E}else C=u.data,y.setRequestHeader("Content-Type",u.contentType);"json"!==u.dataType||u.headers&&u.headers.Accept||y.setRequestHeader("Accept","application/json"),u.headers&&Object.keys(u.headers).forEach((function(e){void 0!==u.headers[e]&&y.setRequestHeader(e,u.headers[e])})),void 0===u.crossDomain&&(u.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(u.url)&&RegExp.$2!==n.location.host),u.crossDomain||y.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.xhrFields&&pe(y,u.xhrFields),y.onload=function(){var e;if(y.status>=200&&y.status<300||0===y.status)if("json"===u.dataType){var a;try{e=JSON.parse(y.responseText)}catch(e){a=!0}a?(O("error",y,"parseerror","parseerror"),r(new Be({options:u,xhr:y,status:"parseerror",message:"parseerror"}))):(O("success",e,y.status,y),t(new Ne({options:u,data:e,status:y.status,xhr:y})))}else O("success",e="text"===y.responseType||""===y.responseType?y.responseText:y.response,y.status,y),t(new Ne({options:u,data:e,status:y.status,xhr:y}));else O("error",y,y.status,y.statusText),r(new Be({options:u,xhr:y,status:y.status,message:y.statusText}));u.statusCode&&(Le.statusCode&&Le.statusCode[y.status]&&Le.statusCode[y.status](y),u.statusCode[y.status]&&u.statusCode[y.status](y)),O("complete",y,y.status)},y.onerror=function(){O("error",y,y.status,y.status),r(new Be({options:u,xhr:y,status:y.status,message:y.statusText})),O("complete",y,"error")},u.timeout>0&&(y.timeout=u.timeout,y.ontimeout=function(){O("error",y,"timeout","timeout"),r(new Be({options:u,xhr:y,status:"timeout",message:"timeout"})),O("complete",y,"timeout")}),!1!==O("beforeSend",y,u)?y.send(C):r(new Be({options:u,xhr:y,status:"canceled",message:"canceled"}))}else r(new Be({options:u,xhr:y,status:"canceled",message:"canceled"}))}else r(new Be({options:u,status:"canceled",message:"canceled"}));function O(e){for(var t,r,a=arguments.length,n=new Array(a>1?a-1:0),o=1;o<a;o++)n[o-1]=arguments[o];return Le[e]&&(t=Le[e].apply(Le,n)),u[e]&&(r=u[e].apply(u,n