UNPKG

framework7

Version:

Full featured mobile HTML framework for building iOS & Android apps

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