From 19ba2a8cdc94d58816fc1c043dd179a300701759 Mon Sep 17 00:00:00 2001 From: electrikmilk Date: Fri, 31 May 2024 03:35:00 +0000 Subject: [PATCH] deploy: 207115eef94efac57d6e40370131962d86da1165 --- CNAME | 1 - .../{index-CYzvKMmc.js => index-rB0NVLXm.js} | 52 +++++++++---------- index.html | 2 +- 3 files changed, 27 insertions(+), 28 deletions(-) delete mode 100644 CNAME rename assets/{index-CYzvKMmc.js => index-rB0NVLXm.js} (96%) diff --git a/CNAME b/CNAME deleted file mode 100644 index 4c94c3d..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -glyphs.cherrilang.org \ No newline at end of file diff --git a/assets/index-CYzvKMmc.js b/assets/index-rB0NVLXm.js similarity index 96% rename from assets/index-CYzvKMmc.js rename to assets/index-rB0NVLXm.js index c8b3ae8..d22cbfa 100644 --- a/assets/index-CYzvKMmc.js +++ b/assets/index-rB0NVLXm.js @@ -2,15 +2,15 @@ * @vue/shared v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Ds(t,e){const n=new Set(t.split(","));return a=>n.has(a)}const qe={},Qn=[],Vt=()=>{},Wc=()=>!1,yr=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ls=t=>t.startsWith("onUpdate:"),ft=Object.assign,Rs=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Yc=Object.prototype.hasOwnProperty,Oe=(t,e)=>Yc.call(t,e),$e=Array.isArray,Jn=t=>Er(t)==="[object Map]",Xo=t=>Er(t)==="[object Set]",Pe=t=>typeof t=="function",Je=t=>typeof t=="string",Vn=t=>typeof t=="symbol",Ye=t=>t!==null&&typeof t=="object",Uo=t=>(Ye(t)||Pe(t))&&Pe(t.then)&&Pe(t.catch),Go=Object.prototype.toString,Er=t=>Go.call(t),Xc=t=>Er(t).slice(8,-1),Ko=t=>Er(t)==="[object Object]",Hs=t=>Je(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ea=Ds(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cr=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Uc=/-(\w)/g,Zt=Cr(t=>t.replace(Uc,(e,n)=>n?n.toUpperCase():"")),Gc=/\B([A-Z])/g,oa=Cr(t=>t.replace(Gc,"-$1").toLowerCase()),kr=Cr(t=>t.charAt(0).toUpperCase()+t.slice(1)),Hr=Cr(t=>t?`on${kr(t)}`:""),$n=(t,e)=>!Object.is(t,e),Fr=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:a,value:n})},Kc=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let yi;const Jo=()=>yi||(yi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xn(t){if($e(t)){const e={};for(let n=0;n{if(n){const a=n.split(Jc);a.length>1&&(e[a[0].trim()]=a[1].trim())}}),e}function Le(t){let e="";if(Je(t))e=t;else if($e(t))for(let n=0;nJe(t)?t:t==null?"":$e(t)||Ye(t)&&(t.toString===Go||!Pe(t.toString))?JSON.stringify(t,el,2):String(t),el=(t,e)=>e&&e.__v_isRef?el(t,e.value):Jn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[a,r],s)=>(n[zr(a,s)+" =>"]=r,n),{})}:Xo(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>zr(n))}:Vn(e)?zr(e):Ye(e)&&!$e(e)&&!Ko(e)?String(e):e,zr=(t,e="")=>{var n;return Vn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** +**//*! #__NO_SIDE_EFFECTS__ */function Ds(t,e){const n=new Set(t.split(","));return a=>n.has(a)}const qe={},Qn=[],Vt=()=>{},Wc=()=>!1,yr=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ls=t=>t.startsWith("onUpdate:"),ft=Object.assign,Rs=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Yc=Object.prototype.hasOwnProperty,Oe=(t,e)=>Yc.call(t,e),$e=Array.isArray,Jn=t=>Er(t)==="[object Map]",Xo=t=>Er(t)==="[object Set]",Pe=t=>typeof t=="function",Je=t=>typeof t=="string",Vn=t=>typeof t=="symbol",Ye=t=>t!==null&&typeof t=="object",Uo=t=>(Ye(t)||Pe(t))&&Pe(t.then)&&Pe(t.catch),Go=Object.prototype.toString,Er=t=>Go.call(t),Xc=t=>Er(t).slice(8,-1),Ko=t=>Er(t)==="[object Object]",Hs=t=>Je(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ea=Ds(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cr=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Uc=/-(\w)/g,Zt=Cr(t=>t.replace(Uc,(e,n)=>n?n.toUpperCase():"")),Gc=/\B([A-Z])/g,oa=Cr(t=>t.replace(Gc,"-$1").toLowerCase()),kr=Cr(t=>t.charAt(0).toUpperCase()+t.slice(1)),Hr=Cr(t=>t?`on${kr(t)}`:""),$n=(t,e)=>!Object.is(t,e),Fr=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:a,value:n})},Kc=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let yi;const Jo=()=>yi||(yi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xn(t){if($e(t)){const e={};for(let n=0;n{if(n){const a=n.split(Jc);a.length>1&&(e[a[0].trim()]=a[1].trim())}}),e}function Le(t){let e="";if(Je(t))e=t;else if($e(t))for(let n=0;nJe(t)?t:t==null?"":$e(t)||Ye(t)&&(t.toString===Go||!Pe(t.toString))?JSON.stringify(t,el,2):String(t),el=(t,e)=>e&&e.__v_isRef?el(t,e.value):Jn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[a,r],s)=>(n[zr(a,s)+" =>"]=r,n),{})}:Xo(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>zr(n))}:Vn(e)?zr(e):Ye(e)&&!$e(e)&&!Ko(e)?String(e):e,zr=(t,e="")=>{var n;return Vn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** * @vue/reactivity v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let jt;class ad{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=jt,!e&&jt&&(this.index=(jt.scopes||(jt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=jt;try{return jt=this,e()}finally{jt=n}}}on(){jt=this}off(){jt=this.parent}stop(e){if(this._active){let n,a;for(n=0,a=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Pn()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Cn,n=An;try{return Cn=!0,An=this,this._runnings++,Ci(this),this.fn()}finally{ki(this),this._runnings--,An=n,Cn=e}}stop(){this.active&&(Ci(this),ki(this),this.onStop&&this.onStop(),this.active=!1)}}function id(t){return t.value}function Ci(t){t._trackId++,t._depsLength=0}function ki(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e{const n=new Map;return n.cleanup=t,n.computed=e,n},us=new WeakMap,Dn=Symbol(""),ps=Symbol("");function Bt(t,e,n){if(Cn&&An){let a=us.get(t);a||us.set(t,a=new Map);let r=a.get(n);r||a.set(n,r=sl(()=>a.delete(n))),al(An,r)}}function ln(t,e,n,a,r,s){const i=us.get(t);if(!i)return;let o=[];if(e==="clear")o=[...i.values()];else if(n==="length"&&$e(t)){const l=Number(a);i.forEach((c,d)=>{(d==="length"||!Vn(d)&&d>=l)&&o.push(c)})}else switch(n!==void 0&&o.push(i.get(n)),e){case"add":$e(t)?Hs(n)&&o.push(i.get("length")):(o.push(i.get(Dn)),Jn(t)&&o.push(i.get(ps)));break;case"delete":$e(t)||(o.push(i.get(Dn)),Jn(t)&&o.push(i.get(ps)));break;case"set":Jn(t)&&o.push(i.get(Dn));break}zs();for(const l of o)l&&rl(l,4);Ns()}const od=Ds("__proto__,__v_isRef,__isVue"),il=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Vn)),$i=ld();function ld(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const a=Me(this);for(let s=0,i=this.length;s{t[e]=function(...n){Tn(),zs();const a=Me(this)[e].apply(this,n);return Ns(),Pn(),a}}),t}function cd(t){Vn(t)||(t=String(t));const e=Me(this);return Bt(e,"has",t),e.hasOwnProperty(t)}class ol{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,a){const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return a===(r?s?Cd:ul:s?dl:cl).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(a)?e:void 0;const i=$e(e);if(!r){if(i&&Oe($i,n))return Reflect.get($i,n,a);if(n==="hasOwnProperty")return cd}const o=Reflect.get(e,n,a);return(Vn(n)?il.has(n):od(n))||(r||Bt(e,"get",n),s)?o:It(o)?i&&Hs(n)?o:o.value:Ye(o)?r?pl(o):js(o):o}}class ll extends ol{constructor(e=!1){super(!1,e)}set(e,n,a,r){let s=e[n];if(!this._isShallow){const l=Ma(s);if(!cr(a)&&!Ma(a)&&(s=Me(s),a=Me(a)),!$e(e)&&It(s)&&!It(a))return l?!1:(s.value=a,!0)}const i=$e(e)&&Hs(n)?Number(n)t,$r=t=>Reflect.getPrototypeOf(t);function qa(t,e,n=!1,a=!1){t=t.__v_raw;const r=Me(t),s=Me(e);n||($n(e,s)&&Bt(r,"get",e),Bt(r,"get",s));const{has:i}=$r(r),o=a?Vs:n?Ws:Ba;if(i.call(r,e))return o(t.get(e));if(i.call(r,s))return o(t.get(s));t!==r&&t.get(e)}function Wa(t,e=!1){const n=this.__v_raw,a=Me(n),r=Me(t);return e||($n(t,r)&&Bt(a,"has",t),Bt(a,"has",r)),t===r?n.has(t):n.has(t)||n.has(r)}function Ya(t,e=!1){return t=t.__v_raw,!e&&Bt(Me(t),"iterate",Dn),Reflect.get(t,"size",t)}function xi(t){t=Me(t);const e=Me(this);return $r(e).has.call(e,t)||(e.add(t),ln(e,"add",t,t)),this}function Si(t,e){e=Me(e);const n=Me(this),{has:a,get:r}=$r(n);let s=a.call(n,t);s||(t=Me(t),s=a.call(n,t));const i=r.call(n,t);return n.set(t,e),s?$n(e,i)&&ln(n,"set",t,e):ln(n,"add",t,e),this}function Ti(t){const e=Me(this),{has:n,get:a}=$r(e);let r=n.call(e,t);r||(t=Me(t),r=n.call(e,t)),a&&a.call(e,t);const s=e.delete(t);return r&&ln(e,"delete",t,void 0),s}function Pi(){const t=Me(this),e=t.size!==0,n=t.clear();return e&&ln(t,"clear",void 0,void 0),n}function Xa(t,e){return function(a,r){const s=this,i=s.__v_raw,o=Me(i),l=e?Vs:t?Ws:Ba;return!t&&Bt(o,"iterate",Dn),i.forEach((c,d)=>a.call(r,l(c),l(d),s))}}function Ua(t,e,n){return function(...a){const r=this.__v_raw,s=Me(r),i=Jn(s),o=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,c=r[t](...a),d=n?Vs:e?Ws:Ba;return!e&&Bt(s,"iterate",l?ps:Dn),{next(){const{value:u,done:p}=c.next();return p?{value:u,done:p}:{value:o?[d(u[0]),d(u[1])]:d(u),done:p}},[Symbol.iterator](){return this}}}}function fn(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function hd(){const t={get(s){return qa(this,s)},get size(){return Ya(this)},has:Wa,add:xi,set:Si,delete:Ti,clear:Pi,forEach:Xa(!1,!1)},e={get(s){return qa(this,s,!1,!0)},get size(){return Ya(this)},has:Wa,add:xi,set:Si,delete:Ti,clear:Pi,forEach:Xa(!1,!0)},n={get(s){return qa(this,s,!0)},get size(){return Ya(this,!0)},has(s){return Wa.call(this,s,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:Xa(!0,!1)},a={get(s){return qa(this,s,!0,!0)},get size(){return Ya(this,!0)},has(s){return Wa.call(this,s,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:Xa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=Ua(s,!1,!1),n[s]=Ua(s,!0,!1),e[s]=Ua(s,!1,!0),a[s]=Ua(s,!0,!0)}),[t,n,e,a]}const[md,gd,bd,vd]=hd();function _s(t,e){const n=e?t?vd:bd:t?gd:md;return(a,r,s)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?a:Reflect.get(Oe(n,r)&&r in a?n:a,r,s)}const wd={get:_s(!1,!1)},yd={get:_s(!1,!0)},Ed={get:_s(!0,!1)};const cl=new WeakMap,dl=new WeakMap,ul=new WeakMap,Cd=new WeakMap;function kd(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $d(t){return t.__v_skip||!Object.isExtensible(t)?0:kd(Xc(t))}function js(t){return Ma(t)?t:qs(t,!1,ud,wd,cl)}function xd(t){return qs(t,!1,fd,yd,dl)}function pl(t){return qs(t,!0,pd,Ed,ul)}function qs(t,e,n,a,r){if(!Ye(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=r.get(t);if(s)return s;const i=$d(t);if(i===0)return t;const o=new Proxy(t,i===2?a:n);return r.set(t,o),o}function Ca(t){return Ma(t)?Ca(t.__v_raw):!!(t&&t.__v_isReactive)}function Ma(t){return!!(t&&t.__v_isReadonly)}function cr(t){return!!(t&&t.__v_isShallow)}function fl(t){return t?!!t.__v_raw:!1}function Me(t){const e=t&&t.__v_raw;return e?Me(e):t}function Sd(t){return Object.isExtensible(t)&&Qo(t,"__v_skip",!0),t}const Ba=t=>Ye(t)?js(t):t,Ws=t=>Ye(t)?pl(t):t;class hl{constructor(e,n,a,r){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Fs(()=>e(this._value),()=>tr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=a}get value(){const e=Me(this);return(!e._cacheable||e.effect.dirty)&&$n(e._value,e._value=e.effect.run())&&tr(e,4),ml(e),e.effect._dirtyLevel>=2&&tr(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Td(t,e,n=!1){let a,r;const s=Pe(t);return s?(a=t,r=Vt):(a=t.get,r=t.set),new hl(a,r,s||!r,n)}function ml(t){var e;Cn&&An&&(t=Me(t),al(An,(e=t.dep)!=null?e:t.dep=sl(()=>t.dep=void 0,t instanceof hl?t:void 0)))}function tr(t,e=4,n){t=Me(t);const a=t.dep;a&&rl(a,e)}function It(t){return!!(t&&t.__v_isRef===!0)}function He(t){return Pd(t,!1)}function Pd(t,e){return It(t)?t:new Md(t,e)}class Md{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Me(e),this._value=n?e:Ba(e)}get value(){return ml(this),this._value}set value(e){const n=this.__v_isShallow||cr(e)||Ma(e);e=n?e:Me(e),$n(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Ba(e),tr(this,4))}}function Bd(t){return It(t)?t.value:t}const Id={get:(t,e,n)=>Bd(Reflect.get(t,e,n)),set:(t,e,n,a)=>{const r=t[e];return It(r)&&!It(n)?(r.value=n,!0):Reflect.set(t,e,n,a)}};function gl(t){return Ca(t)?t:new Proxy(t,Id)}/** +**/let jt;class ad{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=jt,!e&&jt&&(this.index=(jt.scopes||(jt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=jt;try{return jt=this,e()}finally{jt=n}}}on(){jt=this}off(){jt=this.parent}stop(e){if(this._active){let n,a;for(n=0,a=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Pn()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Cn,n=An;try{return Cn=!0,An=this,this._runnings++,Ci(this),this.fn()}finally{ki(this),this._runnings--,An=n,Cn=e}}stop(){this.active&&(Ci(this),ki(this),this.onStop&&this.onStop(),this.active=!1)}}function id(t){return t.value}function Ci(t){t._trackId++,t._depsLength=0}function ki(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e{const n=new Map;return n.cleanup=t,n.computed=e,n},us=new WeakMap,Dn=Symbol(""),ps=Symbol("");function Mt(t,e,n){if(Cn&&An){let a=us.get(t);a||us.set(t,a=new Map);let r=a.get(n);r||a.set(n,r=sl(()=>a.delete(n))),al(An,r)}}function ln(t,e,n,a,r,s){const i=us.get(t);if(!i)return;let o=[];if(e==="clear")o=[...i.values()];else if(n==="length"&&$e(t)){const l=Number(a);i.forEach((c,d)=>{(d==="length"||!Vn(d)&&d>=l)&&o.push(c)})}else switch(n!==void 0&&o.push(i.get(n)),e){case"add":$e(t)?Hs(n)&&o.push(i.get("length")):(o.push(i.get(Dn)),Jn(t)&&o.push(i.get(ps)));break;case"delete":$e(t)||(o.push(i.get(Dn)),Jn(t)&&o.push(i.get(ps)));break;case"set":Jn(t)&&o.push(i.get(Dn));break}zs();for(const l of o)l&&rl(l,4);Ns()}const od=Ds("__proto__,__v_isRef,__isVue"),il=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Vn)),$i=ld();function ld(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const a=Me(this);for(let s=0,i=this.length;s{t[e]=function(...n){Tn(),zs();const a=Me(this)[e].apply(this,n);return Ns(),Pn(),a}}),t}function cd(t){Vn(t)||(t=String(t));const e=Me(this);return Mt(e,"has",t),e.hasOwnProperty(t)}class ol{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,a){const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return a===(r?s?Cd:ul:s?dl:cl).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(a)?e:void 0;const i=$e(e);if(!r){if(i&&Oe($i,n))return Reflect.get($i,n,a);if(n==="hasOwnProperty")return cd}const o=Reflect.get(e,n,a);return(Vn(n)?il.has(n):od(n))||(r||Mt(e,"get",n),s)?o:Bt(o)?i&&Hs(n)?o:o.value:Ye(o)?r?pl(o):js(o):o}}class ll extends ol{constructor(e=!1){super(!1,e)}set(e,n,a,r){let s=e[n];if(!this._isShallow){const l=Ma(s);if(!cr(a)&&!Ma(a)&&(s=Me(s),a=Me(a)),!$e(e)&&Bt(s)&&!Bt(a))return l?!1:(s.value=a,!0)}const i=$e(e)&&Hs(n)?Number(n)t,$r=t=>Reflect.getPrototypeOf(t);function qa(t,e,n=!1,a=!1){t=t.__v_raw;const r=Me(t),s=Me(e);n||($n(e,s)&&Mt(r,"get",e),Mt(r,"get",s));const{has:i}=$r(r),o=a?Vs:n?Ws:Ba;if(i.call(r,e))return o(t.get(e));if(i.call(r,s))return o(t.get(s));t!==r&&t.get(e)}function Wa(t,e=!1){const n=this.__v_raw,a=Me(n),r=Me(t);return e||($n(t,r)&&Mt(a,"has",t),Mt(a,"has",r)),t===r?n.has(t):n.has(t)||n.has(r)}function Ya(t,e=!1){return t=t.__v_raw,!e&&Mt(Me(t),"iterate",Dn),Reflect.get(t,"size",t)}function xi(t){t=Me(t);const e=Me(this);return $r(e).has.call(e,t)||(e.add(t),ln(e,"add",t,t)),this}function Si(t,e){e=Me(e);const n=Me(this),{has:a,get:r}=$r(n);let s=a.call(n,t);s||(t=Me(t),s=a.call(n,t));const i=r.call(n,t);return n.set(t,e),s?$n(e,i)&&ln(n,"set",t,e):ln(n,"add",t,e),this}function Ti(t){const e=Me(this),{has:n,get:a}=$r(e);let r=n.call(e,t);r||(t=Me(t),r=n.call(e,t)),a&&a.call(e,t);const s=e.delete(t);return r&&ln(e,"delete",t,void 0),s}function Pi(){const t=Me(this),e=t.size!==0,n=t.clear();return e&&ln(t,"clear",void 0,void 0),n}function Xa(t,e){return function(a,r){const s=this,i=s.__v_raw,o=Me(i),l=e?Vs:t?Ws:Ba;return!t&&Mt(o,"iterate",Dn),i.forEach((c,d)=>a.call(r,l(c),l(d),s))}}function Ua(t,e,n){return function(...a){const r=this.__v_raw,s=Me(r),i=Jn(s),o=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,c=r[t](...a),d=n?Vs:e?Ws:Ba;return!e&&Mt(s,"iterate",l?ps:Dn),{next(){const{value:u,done:p}=c.next();return p?{value:u,done:p}:{value:o?[d(u[0]),d(u[1])]:d(u),done:p}},[Symbol.iterator](){return this}}}}function fn(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function hd(){const t={get(s){return qa(this,s)},get size(){return Ya(this)},has:Wa,add:xi,set:Si,delete:Ti,clear:Pi,forEach:Xa(!1,!1)},e={get(s){return qa(this,s,!1,!0)},get size(){return Ya(this)},has:Wa,add:xi,set:Si,delete:Ti,clear:Pi,forEach:Xa(!1,!0)},n={get(s){return qa(this,s,!0)},get size(){return Ya(this,!0)},has(s){return Wa.call(this,s,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:Xa(!0,!1)},a={get(s){return qa(this,s,!0,!0)},get size(){return Ya(this,!0)},has(s){return Wa.call(this,s,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:Xa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=Ua(s,!1,!1),n[s]=Ua(s,!0,!1),e[s]=Ua(s,!1,!0),a[s]=Ua(s,!0,!0)}),[t,n,e,a]}const[md,gd,bd,vd]=hd();function _s(t,e){const n=e?t?vd:bd:t?gd:md;return(a,r,s)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?a:Reflect.get(Oe(n,r)&&r in a?n:a,r,s)}const wd={get:_s(!1,!1)},yd={get:_s(!1,!0)},Ed={get:_s(!0,!1)};const cl=new WeakMap,dl=new WeakMap,ul=new WeakMap,Cd=new WeakMap;function kd(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $d(t){return t.__v_skip||!Object.isExtensible(t)?0:kd(Xc(t))}function js(t){return Ma(t)?t:qs(t,!1,ud,wd,cl)}function xd(t){return qs(t,!1,fd,yd,dl)}function pl(t){return qs(t,!0,pd,Ed,ul)}function qs(t,e,n,a,r){if(!Ye(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=r.get(t);if(s)return s;const i=$d(t);if(i===0)return t;const o=new Proxy(t,i===2?a:n);return r.set(t,o),o}function Ca(t){return Ma(t)?Ca(t.__v_raw):!!(t&&t.__v_isReactive)}function Ma(t){return!!(t&&t.__v_isReadonly)}function cr(t){return!!(t&&t.__v_isShallow)}function fl(t){return t?!!t.__v_raw:!1}function Me(t){const e=t&&t.__v_raw;return e?Me(e):t}function Sd(t){return Object.isExtensible(t)&&Qo(t,"__v_skip",!0),t}const Ba=t=>Ye(t)?js(t):t,Ws=t=>Ye(t)?pl(t):t;class hl{constructor(e,n,a,r){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Fs(()=>e(this._value),()=>tr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=a}get value(){const e=Me(this);return(!e._cacheable||e.effect.dirty)&&$n(e._value,e._value=e.effect.run())&&tr(e,4),ml(e),e.effect._dirtyLevel>=2&&tr(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Td(t,e,n=!1){let a,r;const s=Pe(t);return s?(a=t,r=Vt):(a=t.get,r=t.set),new hl(a,r,s||!r,n)}function ml(t){var e;Cn&&An&&(t=Me(t),al(An,(e=t.dep)!=null?e:t.dep=sl(()=>t.dep=void 0,t instanceof hl?t:void 0)))}function tr(t,e=4,n){t=Me(t);const a=t.dep;a&&rl(a,e)}function Bt(t){return!!(t&&t.__v_isRef===!0)}function He(t){return Pd(t,!1)}function Pd(t,e){return Bt(t)?t:new Md(t,e)}class Md{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Me(e),this._value=n?e:Ba(e)}get value(){return ml(this),this._value}set value(e){const n=this.__v_isShallow||cr(e)||Ma(e);e=n?e:Me(e),$n(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Ba(e),tr(this,4))}}function Bd(t){return Bt(t)?t.value:t}const Id={get:(t,e,n)=>Bd(Reflect.get(t,e,n)),set:(t,e,n,a)=>{const r=t[e];return Bt(r)&&!Bt(n)?(r.value=n,!0):Reflect.set(t,e,n,a)}};function gl(t){return Ca(t)?t:new Proxy(t,Id)}/** * @vue/runtime-core v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function kn(t,e,n,a){try{return a?t(...a):t()}catch(r){xr(r,e,n)}}function Xt(t,e,n,a){if(Pe(t)){const r=kn(t,e,n,a);return r&&Uo(r)&&r.catch(s=>{xr(s,e,n)}),r}if($e(t)){const r=[];for(let s=0;s>>1,r=gt[a],s=Oa(r);sJt&>.splice(e,1)}function Rd(t){$e(t)?Zn.push(...t):(!hn||!hn.includes(t,t.allowRecurse?On+1:On))&&Zn.push(t),vl()}function Mi(t,e,n=Ia?Jt+1:0){for(;nOa(n)-Oa(a));if(Zn.length=0,hn){hn.push(...e);return}for(hn=e,On=0;Ont.id==null?1/0:t.id,Hd=(t,e)=>{const n=Oa(t)-Oa(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function yl(t){fs=!1,Ia=!0,gt.sort(Hd);try{for(Jt=0;JtJe(f)?f.trim():f)),u&&(r=n.map(Kc))}let o,l=a[o=Hr(e)]||a[o=Hr(Zt(e))];!l&&s&&(l=a[o=Hr(oa(e))]),l&&Xt(l,t,6,r);const c=a[o+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Xt(c,t,6,r)}}function El(t,e,n=!1){const a=e.emitsCache,r=a.get(t);if(r!==void 0)return r;const s=t.emits;let i={},o=!1;if(!Pe(t)){const l=c=>{const d=El(c,e,!0);d&&(o=!0,ft(i,d))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!o?(Ye(t)&&a.set(t,null),null):($e(s)?s.forEach(l=>i[l]=null):ft(i,s),Ye(t)&&a.set(t,i),i)}function Sr(t,e){return!t||!yr(e)?!1:(e=e.slice(2).replace(/Once$/,""),Oe(t,e[0].toLowerCase()+e.slice(1))||Oe(t,oa(e))||Oe(t,e))}let Et=null,Cl=null;function dr(t){const e=Et;return Et=t,Cl=t&&t.type.__scopeId||null,e}function De(t,e=Et,n){if(!e||t._n)return t;const a=(...r)=>{a._d&&Ni(-1);const s=dr(e);let i;try{i=t(...r)}finally{dr(s),a._d&&Ni(1)}return i};return a._n=!0,a._c=!0,a._d=!0,a}function Nr(t){const{type:e,vnode:n,proxy:a,withProxy:r,propsOptions:[s],slots:i,attrs:o,emit:l,render:c,renderCache:d,props:u,data:p,setupState:f,ctx:h,inheritAttrs:m}=t,b=dr(t);let w,g;try{if(n.shapeFlag&4){const y=r||a,E=y;w=Qt(c.call(E,y,d,u,f,p,h)),g=o}else{const y=e;w=Qt(y.length>1?y(u,{attrs:o,slots:i,emit:l}):y(u,null)),g=e.props?o:zd(o)}}catch(y){Sa.length=0,xr(y,t,1),w=Se(Sn)}let v=w;if(g&&m!==!1){const y=Object.keys(g),{shapeFlag:E}=v;y.length&&E&7&&(s&&y.some(Ls)&&(g=Nd(g,s)),v=aa(v,g,!1,!0))}return n.dirs&&(v=aa(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),w=v,dr(b),w}const zd=t=>{let e;for(const n in t)(n==="class"||n==="style"||yr(n))&&((e||(e={}))[n]=t[n]);return e},Nd=(t,e)=>{const n={};for(const a in t)(!Ls(a)||!(a.slice(9)in e))&&(n[a]=t[a]);return n};function Vd(t,e,n){const{props:a,children:r,component:s}=t,{props:i,children:o,patchFlag:l}=e,c=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return a?Bi(a,i,c):!!i;if(l&8){const d=e.dynamicProps;for(let u=0;ut.__isSuspense;function qd(t,e){e&&e.pendingBranch?$e(t)?e.effects.push(...t):e.effects.push(t):Rd(t)}const Wd=Symbol.for("v-scx"),Yd=()=>ea(Wd),Ga={};function Ht(t,e,n){return Sl(t,e,n)}function Sl(t,e,{immediate:n,deep:a,flush:r,once:s,onTrack:i,onTrigger:o}=qe){if(e&&s){const k=e;e=(...$)=>{k(...$),E()}}const l=bt,c=k=>a===!0?k:Un(k,a===!1?1:void 0);let d,u=!1,p=!1;if(It(t)?(d=()=>t.value,u=cr(t)):Ca(t)?(d=()=>c(t),u=!0):$e(t)?(p=!0,u=t.some(k=>Ca(k)||cr(k)),d=()=>t.map(k=>{if(It(k))return k.value;if(Ca(k))return c(k);if(Pe(k))return kn(k,l,2)})):Pe(t)?e?d=()=>kn(t,l,2):d=()=>(f&&f(),Xt(t,l,3,[h])):d=Vt,e&&a){const k=d;d=()=>Un(k())}let f,h=k=>{f=v.onStop=()=>{kn(k,l,4),f=v.onStop=void 0}},m;if(Br)if(h=Vt,e?n&&Xt(e,l,3,[d(),p?[]:void 0,h]):d(),r==="sync"){const k=Yd();m=k.__watcherHandles||(k.__watcherHandles=[])}else return Vt;let b=p?new Array(t.length).fill(Ga):Ga;const w=()=>{if(!(!v.active||!v.dirty))if(e){const k=v.run();(a||u||(p?k.some(($,M)=>$n($,b[M])):$n(k,b)))&&(f&&f(),Xt(e,l,3,[k,b===Ga?void 0:p&&b[0]===Ga?[]:b,h]),b=k)}else v.run()};w.allowRecurse=!!e;let g;r==="sync"?g=w:r==="post"?g=()=>xt(w,l&&l.suspense):(w.pre=!0,l&&(w.id=l.uid),g=()=>Xs(w));const v=new Fs(d,Vt,g),y=sd(),E=()=>{v.stop(),y&&Rs(y.effects,v)};return e?n?w():b=v.run():r==="post"?xt(v.run.bind(v),l&&l.suspense):v.run(),m&&m.push(E),E}function Xd(t,e,n){const a=this.proxy,r=Je(t)?t.includes(".")?Tl(a,t):()=>a[t]:t.bind(a,a);let s;Pe(e)?s=e:(s=e.handler,n=e);const i=za(this),o=Sl(r,s.bind(a),n);return i(),o}function Tl(t,e){const n=e.split(".");return()=>{let a=t;for(let r=0;r{Un(a,e,n)});else if(Ko(t))for(const a in t)Un(t[a],e,n);return t}function Mn(t,e,n,a){const r=t.dirs,s=e&&e.dirs;for(let i=0;i!!t.type.__asyncLoader,Pl=t=>t.type.__isKeepAlive;function Ud(t,e){Ml(t,"a",e)}function Gd(t,e){Ml(t,"da",e)}function Ml(t,e,n=bt){const a=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(Tr(e,a,n),n){let r=n.parent;for(;r&&r.parent;)Pl(r.parent.vnode)&&Kd(a,e,n,r),r=r.parent}}function Kd(t,e,n,a){const r=Tr(e,t,a,!0);Bl(()=>{Rs(a[e],r)},n)}function Tr(t,e,n=bt,a=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...i)=>{if(n.isUnmounted)return;Tn();const o=za(n),l=Xt(e,n,t,i);return o(),Pn(),l});return a?r.unshift(s):r.push(s),s}}const un=t=>(e,n=bt)=>(!Br||t==="sp")&&Tr(t,(...a)=>e(...a),n),Qd=un("bm"),tt=un("m"),Jd=un("bu"),Pr=un("u"),ct=un("bum"),Bl=un("um"),Zd=un("sp"),eu=un("rtg"),tu=un("rtc");function nu(t,e=bt){Tr("ec",t,e)}function Ka(t,e,n,a){let r;const s=n;if($e(t)||Je(t)){r=new Array(t.length);for(let i=0,o=t.length;ie(i,o,void 0,s));else{const i=Object.keys(t);r=new Array(i.length);for(let o=0,l=i.length;opr(e)?!(e.type===Sn||e.type===ut&&!Il(e.children)):!0)?t:null}const hs=t=>t?Xl(t)?Zs(t)||t.proxy:hs(t.parent):null,$a=ft(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>hs(t.parent),$root:t=>hs(t.root),$emit:t=>t.emit,$options:t=>Gs(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,Xs(t.update)}),$nextTick:t=>t.n||(t.n=Ad.bind(t.proxy)),$watch:t=>Xd.bind(t)}),Vr=(t,e)=>t!==qe&&!t.__isScriptSetup&&Oe(t,e),au={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:a,data:r,props:s,accessCache:i,type:o,appContext:l}=t;let c;if(e[0]!=="$"){const f=i[e];if(f!==void 0)switch(f){case 1:return a[e];case 2:return r[e];case 4:return n[e];case 3:return s[e]}else{if(Vr(a,e))return i[e]=1,a[e];if(r!==qe&&Oe(r,e))return i[e]=2,r[e];if((c=t.propsOptions[0])&&Oe(c,e))return i[e]=3,s[e];if(n!==qe&&Oe(n,e))return i[e]=4,n[e];ms&&(i[e]=0)}}const d=$a[e];let u,p;if(d)return e==="$attrs"&&Bt(t.attrs,"get",""),d(t);if((u=o.__cssModules)&&(u=u[e]))return u;if(n!==qe&&Oe(n,e))return i[e]=4,n[e];if(p=l.config.globalProperties,Oe(p,e))return p[e]},set({_:t},e,n){const{data:a,setupState:r,ctx:s}=t;return Vr(r,e)?(r[e]=n,!0):a!==qe&&Oe(a,e)?(a[e]=n,!0):Oe(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:a,appContext:r,propsOptions:s}},i){let o;return!!n[i]||t!==qe&&Oe(t,i)||Vr(e,i)||(o=s[0])&&Oe(o,i)||Oe(a,i)||Oe($a,i)||Oe(r.config.globalProperties,i)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Oe(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Oi(t){return $e(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let ms=!0;function ru(t){const e=Gs(t),n=t.proxy,a=t.ctx;ms=!1,e.beforeCreate&&Ai(e.beforeCreate,t,"bc");const{data:r,computed:s,methods:i,watch:o,provide:l,inject:c,created:d,beforeMount:u,mounted:p,beforeUpdate:f,updated:h,activated:m,deactivated:b,beforeDestroy:w,beforeUnmount:g,destroyed:v,unmounted:y,render:E,renderTracked:k,renderTriggered:$,errorCaptured:M,serverPrefetch:x,expose:F,inheritAttrs:S,components:I,directives:B,filters:P}=e;if(c&&su(c,a,null),i)for(const H in i){const D=i[H];Pe(D)&&(a[H]=D.bind(n))}if(r){const H=r.call(n,n);Ye(H)&&(t.data=js(H))}if(ms=!0,s)for(const H in s){const D=s[H],O=Pe(D)?D.bind(n,n):Pe(D.get)?D.get.bind(n,n):Vt,_=!Pe(D)&&Pe(D.set)?D.set.bind(n):Vt,N=me({get:O,set:_});Object.defineProperty(a,H,{enumerable:!0,configurable:!0,get:()=>N.value,set:G=>N.value=G})}if(o)for(const H in o)Ol(o[H],a,n,H);if(l){const H=Pe(l)?l.call(n):l;Reflect.ownKeys(H).forEach(D=>{Ks(D,H[D])})}d&&Ai(d,t,"c");function V(H,D){$e(D)?D.forEach(O=>H(O.bind(n))):D&&H(D.bind(n))}if(V(Qd,u),V(tt,p),V(Jd,f),V(Pr,h),V(Ud,m),V(Gd,b),V(nu,M),V(tu,k),V(eu,$),V(ct,g),V(Bl,y),V(Zd,x),$e(F))if(F.length){const H=t.exposed||(t.exposed={});F.forEach(D=>{Object.defineProperty(H,D,{get:()=>n[D],set:O=>n[D]=O})})}else t.exposed||(t.exposed={});E&&t.render===Vt&&(t.render=E),S!=null&&(t.inheritAttrs=S),I&&(t.components=I),B&&(t.directives=B)}function su(t,e,n=Vt){$e(t)&&(t=gs(t));for(const a in t){const r=t[a];let s;Ye(r)?"default"in r?s=ea(r.from||a,r.default,!0):s=ea(r.from||a):s=ea(r),It(s)?Object.defineProperty(e,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):e[a]=s}}function Ai(t,e,n){Xt($e(t)?t.map(a=>a.bind(e.proxy)):t.bind(e.proxy),e,n)}function Ol(t,e,n,a){const r=a.includes(".")?Tl(n,a):()=>n[a];if(Je(t)){const s=e[t];Pe(s)&&Ht(r,s)}else if(Pe(t))Ht(r,t.bind(n));else if(Ye(t))if($e(t))t.forEach(s=>Ol(s,e,n,a));else{const s=Pe(t.handler)?t.handler.bind(n):e[t.handler];Pe(s)&&Ht(r,s,t)}}function Gs(t){const e=t.type,{mixins:n,extends:a}=e,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=t.appContext,o=s.get(e);let l;return o?l=o:!r.length&&!n&&!a?l=e:(l={},r.length&&r.forEach(c=>ur(l,c,i,!0)),ur(l,e,i)),Ye(e)&&s.set(e,l),l}function ur(t,e,n,a=!1){const{mixins:r,extends:s}=e;s&&ur(t,s,n,!0),r&&r.forEach(i=>ur(t,i,n,!0));for(const i in e)if(!(a&&i==="expose")){const o=iu[i]||n&&n[i];t[i]=o?o(t[i],e[i]):e[i]}return t}const iu={data:Di,props:Li,emits:Li,methods:ma,computed:ma,beforeCreate:wt,created:wt,beforeMount:wt,mounted:wt,beforeUpdate:wt,updated:wt,beforeDestroy:wt,beforeUnmount:wt,destroyed:wt,unmounted:wt,activated:wt,deactivated:wt,errorCaptured:wt,serverPrefetch:wt,components:ma,directives:ma,watch:lu,provide:Di,inject:ou};function Di(t,e){return e?t?function(){return ft(Pe(t)?t.call(this,this):t,Pe(e)?e.call(this,this):e)}:e:t}function ou(t,e){return ma(gs(t),gs(e))}function gs(t){if($e(t)){const e={};for(let n=0;n1)return n&&Pe(e)?e.call(a&&a.proxy):e}}const Dl={},Ll=()=>Object.create(Dl),Rl=t=>Object.getPrototypeOf(t)===Dl;function uu(t,e,n,a=!1){const r={},s=Ll();t.propsDefaults=Object.create(null),Hl(t,e,r,s);for(const i in t.propsOptions[0])i in r||(r[i]=void 0);n?t.props=a?r:xd(r):t.type.props?t.props=r:t.props=s,t.attrs=s}function pu(t,e,n,a){const{props:r,attrs:s,vnode:{patchFlag:i}}=t,o=Me(r),[l]=t.propsOptions;let c=!1;if((a||i>0)&&!(i&16)){if(i&8){const d=t.vnode.dynamicProps;for(let u=0;u{l=!0;const[p,f]=Fl(u,e,!0);ft(i,p),f&&o.push(...f)};!n&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!s&&!l)return Ye(t)&&a.set(t,Qn),Qn;if($e(s))for(let d=0;d-1,f[1]=m<0||h-1||Oe(f,"default"))&&o.push(u)}}}const c=[i,o];return Ye(t)&&a.set(t,c),c}function Ri(t){return t[0]!=="$"&&!Ea(t)}function Hi(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function Fi(t,e){return Hi(t)===Hi(e)}function zi(t,e){return $e(e)?e.findIndex(n=>Fi(n,t)):Pe(e)&&Fi(e,t)?0:-1}const zl=t=>t[0]==="_"||t==="$stable",Qs=t=>$e(t)?t.map(Qt):[Qt(t)],fu=(t,e,n)=>{if(e._n)return e;const a=De((...r)=>Qs(e(...r)),n);return a._c=!1,a},Nl=(t,e,n)=>{const a=t._ctx;for(const r in t){if(zl(r))continue;const s=t[r];if(Pe(s))e[r]=fu(r,s,a);else if(s!=null){const i=Qs(s);e[r]=()=>i}}},Vl=(t,e)=>{const n=Qs(e);t.slots.default=()=>n},hu=(t,e)=>{const n=t.slots=Ll();if(t.vnode.shapeFlag&32){const a=e._;a?(ft(n,e),Qo(n,"_",a,!0)):Nl(e,n)}else e&&Vl(t,e)},mu=(t,e,n)=>{const{vnode:a,slots:r}=t;let s=!0,i=qe;if(a.shapeFlag&32){const o=e._;o?n&&o===1?s=!1:(ft(r,e),!n&&o===1&&delete r._):(s=!e.$stable,Nl(e,r)),i=e}else e&&(Vl(t,e),i={default:1});if(s)for(const o in r)!zl(o)&&i[o]==null&&delete r[o]};function vs(t,e,n,a,r=!1){if($e(t)){t.forEach((p,f)=>vs(p,e&&($e(e)?e[f]:e),n,a,r));return}if(ka(a)&&!r)return;const s=a.shapeFlag&4?Zs(a.component)||a.component.proxy:a.el,i=r?null:s,{i:o,r:l}=t,c=e&&e.r,d=o.refs===qe?o.refs={}:o.refs,u=o.setupState;if(c!=null&&c!==l&&(Je(c)?(d[c]=null,Oe(u,c)&&(u[c]=null)):It(c)&&(c.value=null)),Pe(l))kn(l,o,12,[i,d]);else{const p=Je(l),f=It(l);if(p||f){const h=()=>{if(t.f){const m=p?Oe(u,l)?u[l]:d[l]:l.value;r?$e(m)&&Rs(m,s):$e(m)?m.includes(s)||m.push(s):p?(d[l]=[s],Oe(u,l)&&(u[l]=d[l])):(l.value=[s],t.k&&(d[t.k]=l.value))}else p?(d[l]=i,Oe(u,l)&&(u[l]=i)):f&&(l.value=i,t.k&&(d[t.k]=i))};i?(h.id=-1,xt(h,n)):h()}}}const xt=qd;function gu(t){return bu(t)}function bu(t,e){const n=Jo();n.__VUE__=!0;const{insert:a,remove:r,patchProp:s,createElement:i,createText:o,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:p,setScopeId:f=Vt,insertStaticContent:h}=t,m=(R,A,z,q=null,U=null,K=null,j=void 0,Q=null,ae=!!A.dynamicChildren)=>{if(R===A)return;R&&!ua(R,A)&&(q=ie(R),G(R,U,K,!0),R=null),A.patchFlag===-2&&(ae=!1,A.dynamicChildren=null);const{type:Z,ref:te,shapeFlag:he}=A;switch(Z){case Mr:b(R,A,z,q);break;case Sn:w(R,A,z,q);break;case nr:R==null&&g(A,z,q,j);break;case ut:I(R,A,z,q,U,K,j,Q,ae);break;default:he&1?E(R,A,z,q,U,K,j,Q,ae):he&6?B(R,A,z,q,U,K,j,Q,ae):(he&64||he&128)&&Z.process(R,A,z,q,U,K,j,Q,ae,oe)}te!=null&&U&&vs(te,R&&R.ref,K,A||R,!A)},b=(R,A,z,q)=>{if(R==null)a(A.el=o(A.children),z,q);else{const U=A.el=R.el;A.children!==R.children&&c(U,A.children)}},w=(R,A,z,q)=>{R==null?a(A.el=l(A.children||""),z,q):A.el=R.el},g=(R,A,z,q)=>{[R.el,R.anchor]=h(R.children,A,z,q,R.el,R.anchor)},v=({el:R,anchor:A},z,q)=>{let U;for(;R&&R!==A;)U=p(R),a(R,z,q),R=U;a(A,z,q)},y=({el:R,anchor:A})=>{let z;for(;R&&R!==A;)z=p(R),r(R),R=z;r(A)},E=(R,A,z,q,U,K,j,Q,ae)=>{A.type==="svg"?j="svg":A.type==="math"&&(j="mathml"),R==null?k(A,z,q,U,K,j,Q,ae):x(R,A,U,K,j,Q,ae)},k=(R,A,z,q,U,K,j,Q)=>{let ae,Z;const{props:te,shapeFlag:he,transition:re,dirs:de}=R;if(ae=R.el=i(R.type,K,te&&te.is,te),he&8?d(ae,R.children):he&16&&M(R.children,ae,null,q,U,_r(R,K),j,Q),de&&Mn(R,null,q,"created"),$(ae,R,R.scopeId,j,q),te){for(const Fe in te)Fe!=="value"&&!Ea(Fe)&&s(ae,Fe,null,te[Fe],K,R.children,q,U,ne);"value"in te&&s(ae,"value",null,te.value,K),(Z=te.onVnodeBeforeMount)&&Kt(Z,q,R)}de&&Mn(R,null,q,"beforeMount");const Ee=vu(U,re);Ee&&re.beforeEnter(ae),a(ae,A,z),((Z=te&&te.onVnodeMounted)||Ee||de)&&xt(()=>{Z&&Kt(Z,q,R),Ee&&re.enter(ae),de&&Mn(R,null,q,"mounted")},U)},$=(R,A,z,q,U)=>{if(z&&f(R,z),q)for(let K=0;K{for(let Z=ae;Z{const Q=A.el=R.el;let{patchFlag:ae,dynamicChildren:Z,dirs:te}=A;ae|=R.patchFlag&16;const he=R.props||qe,re=A.props||qe;let de;if(z&&Bn(z,!1),(de=re.onVnodeBeforeUpdate)&&Kt(de,z,A,R),te&&Mn(A,R,z,"beforeUpdate"),z&&Bn(z,!0),Z?F(R.dynamicChildren,Z,Q,z,q,_r(A,U),K):j||D(R,A,Q,null,z,q,_r(A,U),K,!1),ae>0){if(ae&16)S(Q,A,he,re,z,q,U);else if(ae&2&&he.class!==re.class&&s(Q,"class",null,re.class,U),ae&4&&s(Q,"style",he.style,re.style,U),ae&8){const Ee=A.dynamicProps;for(let Fe=0;Fe{de&&Kt(de,z,A,R),te&&Mn(A,R,z,"updated")},q)},F=(R,A,z,q,U,K,j)=>{for(let Q=0;Q{if(z!==q){if(z!==qe)for(const Q in z)!Ea(Q)&&!(Q in q)&&s(R,Q,z[Q],null,j,A.children,U,K,ne);for(const Q in q){if(Ea(Q))continue;const ae=q[Q],Z=z[Q];ae!==Z&&Q!=="value"&&s(R,Q,Z,ae,j,A.children,U,K,ne)}"value"in q&&s(R,"value",z.value,q.value,j)}},I=(R,A,z,q,U,K,j,Q,ae)=>{const Z=A.el=R?R.el:o(""),te=A.anchor=R?R.anchor:o("");let{patchFlag:he,dynamicChildren:re,slotScopeIds:de}=A;de&&(Q=Q?Q.concat(de):de),R==null?(a(Z,z,q),a(te,z,q),M(A.children||[],z,te,U,K,j,Q,ae)):he>0&&he&64&&re&&R.dynamicChildren?(F(R.dynamicChildren,re,z,U,K,j,Q),(A.key!=null||U&&A===U.subTree)&&_l(R,A,!0)):D(R,A,z,te,U,K,j,Q,ae)},B=(R,A,z,q,U,K,j,Q,ae)=>{A.slotScopeIds=Q,R==null?A.shapeFlag&512?U.ctx.activate(A,z,q,j,ae):P(A,z,q,U,K,j,ae):L(R,A,ae)},P=(R,A,z,q,U,K,j)=>{const Q=R.component=Su(R,q,U);if(Pl(R)&&(Q.ctx.renderer=oe),Tu(Q),Q.asyncDep){if(U&&U.registerDep(Q,V),!R.el){const ae=Q.subTree=Se(Sn);w(null,ae,A,z)}}else V(Q,R,A,z,U,K,j)},L=(R,A,z)=>{const q=A.component=R.component;if(Vd(R,A,z))if(q.asyncDep&&!q.asyncResolved){H(q,A,z);return}else q.next=A,Ld(q.update),q.effect.dirty=!0,q.update();else A.el=R.el,q.vnode=A},V=(R,A,z,q,U,K,j)=>{const Q=()=>{if(R.isMounted){let{next:te,bu:he,u:re,parent:de,vnode:Ee}=R;{const jn=jl(R);if(jn){te&&(te.el=Ee.el,H(R,te,j)),jn.asyncDep.then(()=>{R.isUnmounted||Q()});return}}let Fe=te,je;Bn(R,!1),te?(te.el=Ee.el,H(R,te,j)):te=Ee,he&&Fr(he),(je=te.props&&te.props.onVnodeBeforeUpdate)&&Kt(je,de,te,Ee),Bn(R,!0);const rt=Nr(R),_t=R.subTree;R.subTree=rt,m(_t,rt,u(_t.el),ie(_t),R,U,K),te.el=rt.el,Fe===null&&_d(R,rt.el),re&&xt(re,U),(je=te.props&&te.props.onVnodeUpdated)&&xt(()=>Kt(je,de,te,Ee),U)}else{let te;const{el:he,props:re}=A,{bm:de,m:Ee,parent:Fe}=R,je=ka(A);if(Bn(R,!1),de&&Fr(de),!je&&(te=re&&re.onVnodeBeforeMount)&&Kt(te,Fe,A),Bn(R,!0),he&&pe){const rt=()=>{R.subTree=Nr(R),pe(he,R.subTree,R,U,null)};je?A.type.__asyncLoader().then(()=>!R.isUnmounted&&rt()):rt()}else{const rt=R.subTree=Nr(R);m(null,rt,z,q,R,U,K),A.el=rt.el}if(Ee&&xt(Ee,U),!je&&(te=re&&re.onVnodeMounted)){const rt=A;xt(()=>Kt(te,Fe,rt),U)}(A.shapeFlag&256||Fe&&ka(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&R.a&&xt(R.a,U),R.isMounted=!0,A=z=q=null}},ae=R.effect=new Fs(Q,Vt,()=>Xs(Z),R.scope),Z=R.update=()=>{ae.dirty&&ae.run()};Z.id=R.uid,Bn(R,!0),Z()},H=(R,A,z)=>{A.component=R;const q=R.vnode.props;R.vnode=A,R.next=null,pu(R,A.props,q,z),mu(R,A.children,z),Tn(),Mi(R),Pn()},D=(R,A,z,q,U,K,j,Q,ae=!1)=>{const Z=R&&R.children,te=R?R.shapeFlag:0,he=A.children,{patchFlag:re,shapeFlag:de}=A;if(re>0){if(re&128){_(Z,he,z,q,U,K,j,Q,ae);return}else if(re&256){O(Z,he,z,q,U,K,j,Q,ae);return}}de&8?(te&16&&ne(Z,U,K),he!==Z&&d(z,he)):te&16?de&16?_(Z,he,z,q,U,K,j,Q,ae):ne(Z,U,K,!0):(te&8&&d(z,""),de&16&&M(he,z,q,U,K,j,Q,ae))},O=(R,A,z,q,U,K,j,Q,ae)=>{R=R||Qn,A=A||Qn;const Z=R.length,te=A.length,he=Math.min(Z,te);let re;for(re=0;rete?ne(R,U,K,!0,!1,he):M(A,z,q,U,K,j,Q,ae,he)},_=(R,A,z,q,U,K,j,Q,ae)=>{let Z=0;const te=A.length;let he=R.length-1,re=te-1;for(;Z<=he&&Z<=re;){const de=R[Z],Ee=A[Z]=ae?mn(A[Z]):Qt(A[Z]);if(ua(de,Ee))m(de,Ee,z,null,U,K,j,Q,ae);else break;Z++}for(;Z<=he&&Z<=re;){const de=R[he],Ee=A[re]=ae?mn(A[re]):Qt(A[re]);if(ua(de,Ee))m(de,Ee,z,null,U,K,j,Q,ae);else break;he--,re--}if(Z>he){if(Z<=re){const de=re+1,Ee=dere)for(;Z<=he;)G(R[Z],U,K,!0),Z++;else{const de=Z,Ee=Z,Fe=new Map;for(Z=Ee;Z<=re;Z++){const At=A[Z]=ae?mn(A[Z]):Qt(A[Z]);At.key!=null&&Fe.set(At.key,Z)}let je,rt=0;const _t=re-Ee+1;let jn=!1,bi=0;const da=new Array(_t);for(Z=0;Z<_t;Z++)da[Z]=0;for(Z=de;Z<=he;Z++){const At=R[Z];if(rt>=_t){G(At,U,K,!0);continue}let Gt;if(At.key!=null)Gt=Fe.get(At.key);else for(je=Ee;je<=re;je++)if(da[je-Ee]===0&&ua(At,A[je])){Gt=je;break}Gt===void 0?G(At,U,K,!0):(da[Gt-Ee]=Z+1,Gt>=bi?bi=Gt:jn=!0,m(At,A[Gt],z,null,U,K,j,Q,ae),rt++)}const vi=jn?wu(da):Qn;for(je=vi.length-1,Z=_t-1;Z>=0;Z--){const At=Ee+Z,Gt=A[At],wi=At+1{const{el:K,type:j,transition:Q,children:ae,shapeFlag:Z}=R;if(Z&6){N(R.component.subTree,A,z,q);return}if(Z&128){R.suspense.move(A,z,q);return}if(Z&64){j.move(R,A,z,oe);return}if(j===ut){a(K,A,z);for(let he=0;heQ.enter(K),U);else{const{leave:he,delayLeave:re,afterLeave:de}=Q,Ee=()=>a(K,A,z),Fe=()=>{he(K,()=>{Ee(),de&&de()})};re?re(K,Ee,Fe):Fe()}else a(K,A,z)},G=(R,A,z,q=!1,U=!1)=>{const{type:K,props:j,ref:Q,children:ae,dynamicChildren:Z,shapeFlag:te,patchFlag:he,dirs:re}=R;if(Q!=null&&vs(Q,null,z,R,!0),te&256){A.ctx.deactivate(R);return}const de=te&1&&re,Ee=!ka(R);let Fe;if(Ee&&(Fe=j&&j.onVnodeBeforeUnmount)&&Kt(Fe,A,R),te&6)se(R.component,z,q);else{if(te&128){R.suspense.unmount(z,q);return}de&&Mn(R,null,A,"beforeUnmount"),te&64?R.type.remove(R,A,z,U,oe,q):Z&&(K!==ut||he>0&&he&64)?ne(Z,A,z,!1,!0):(K===ut&&he&384||!U&&te&16)&&ne(ae,A,z),q&&ee(R)}(Ee&&(Fe=j&&j.onVnodeUnmounted)||de)&&xt(()=>{Fe&&Kt(Fe,A,R),de&&Mn(R,null,A,"unmounted")},z)},ee=R=>{const{type:A,el:z,anchor:q,transition:U}=R;if(A===ut){X(z,q);return}if(A===nr){y(R);return}const K=()=>{r(z),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(R.shapeFlag&1&&U&&!U.persisted){const{leave:j,delayLeave:Q}=U,ae=()=>j(z,K);Q?Q(R.el,K,ae):ae()}else K()},X=(R,A)=>{let z;for(;R!==A;)z=p(R),r(R),R=z;r(A)},se=(R,A,z)=>{const{bum:q,scope:U,update:K,subTree:j,um:Q}=R;q&&Fr(q),U.stop(),K&&(K.active=!1,G(j,R,A,z)),Q&&xt(Q,A),xt(()=>{R.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},ne=(R,A,z,q=!1,U=!1,K=0)=>{for(let j=K;jR.shapeFlag&6?ie(R.component.subTree):R.shapeFlag&128?R.suspense.next():p(R.anchor||R.el);let le=!1;const be=(R,A,z)=>{R==null?A._vnode&&G(A._vnode,null,null,!0):m(A._vnode||null,R,A,null,null,null,z),le||(le=!0,Mi(),wl(),le=!1),A._vnode=R},oe={p:m,um:G,m:N,r:ee,mt:P,mc:M,pc:D,pbc:F,n:ie,o:t};let ce,pe;return{render:be,hydrate:ce,createApp:du(be,ce)}}function _r({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Bn({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function vu(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function _l(t,e,n=!1){const a=t.children,r=e.children;if($e(a)&&$e(r))for(let s=0;s>1,t[n[o]]0&&(e[a]=n[s-1]),n[s]=a)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=e[i];return n}function jl(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:jl(e)}const yu=t=>t.__isTeleport,ut=Symbol.for("v-fgt"),Mr=Symbol.for("v-txt"),Sn=Symbol.for("v-cmt"),nr=Symbol.for("v-stc"),Sa=[];let qt=null;function ge(t=!1){Sa.push(qt=t?null:[])}function Eu(){Sa.pop(),qt=Sa[Sa.length-1]||null}let Aa=1;function Ni(t){Aa+=t}function ql(t){return t.dynamicChildren=Aa>0?qt||Qn:null,Eu(),Aa>0&&qt&&qt.push(t),t}function ke(t,e,n,a,r,s){return ql(Ne(t,e,n,a,r,s,!0))}function at(t,e,n,a,r){return ql(Se(t,e,n,a,r,!0))}function pr(t){return t?t.__v_isVNode===!0:!1}function ua(t,e){return t.type===e.type&&t.key===e.key}const Wl=({key:t})=>t??null,ar=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Je(t)||It(t)||Pe(t)?{i:Et,r:t,k:e,f:!!n}:t:null);function Ne(t,e=null,n=null,a=0,r=null,s=t===ut?0:1,i=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Wl(e),ref:e&&ar(e),scopeId:Cl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:a,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Et};return o?(Js(l,n),s&128&&t.normalize(l)):n&&(l.shapeFlag|=Je(n)?8:16),Aa>0&&!i&&qt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&qt.push(l),l}const Se=Cu;function Cu(t,e=null,n=null,a=0,r=null,s=!1){if((!t||t===kl)&&(t=Sn),pr(t)){const o=aa(t,e,!0);return n&&Js(o,n),Aa>0&&!s&&qt&&(o.shapeFlag&6?qt[qt.indexOf(t)]=o:qt.push(o)),o.patchFlag|=-2,o}if(Ou(t)&&(t=t.__vccOpts),e){e=Yl(e);let{class:o,style:l}=e;o&&!Je(o)&&(e.class=Le(o)),Ye(l)&&(fl(l)&&!$e(l)&&(l=ft({},l)),e.style=xn(l))}const i=Je(t)?1:jd(t)?128:yu(t)?64:Ye(t)?4:Pe(t)?2:0;return Ne(t,e,n,a,r,i,s,!0)}function Yl(t){return t?fl(t)||Rl(t)?ft({},t):t:null}function aa(t,e,n=!1,a=!1){const{props:r,ref:s,patchFlag:i,children:o,transition:l}=t,c=e?Fa(r||{},e):r,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Wl(c),ref:e&&e.ref?n&&s?$e(s)?s.concat(ar(e)):[s,ar(e)]:ar(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ut?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&aa(t.ssContent),ssFallback:t.ssFallback&&aa(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&a&&(d.transition=l.clone(d)),d}function St(t=" ",e=0){return Se(Mr,null,t,e)}function ku(t,e){const n=Se(nr,null,t);return n.staticCount=e,n}function We(t="",e=!1){return e?(ge(),at(Sn,null,t)):Se(Sn,null,t)}function Qt(t){return t==null||typeof t=="boolean"?Se(Sn):$e(t)?Se(ut,null,t.slice()):typeof t=="object"?mn(t):Se(Mr,null,String(t))}function mn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:aa(t)}function Js(t,e){let n=0;const{shapeFlag:a}=t;if(e==null)e=null;else if($e(e))n=16;else if(typeof e=="object")if(a&65){const r=e.default;r&&(r._c&&(r._d=!1),Js(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!Rl(e)?e._ctx=Et:r===3&&Et&&(Et.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Pe(e)?(e={default:e,_ctx:Et},n=32):(e=String(e),a&64?(n=16,e=[St(e)]):n=8);t.children=e,t.shapeFlag|=n}function Fa(...t){const e={};for(let n=0;n{let r;return(r=t[n])||(r=t[n]=[]),r.push(a),s=>{r.length>1?r.forEach(i=>i(s)):r[0](s)}};fr=e("__VUE_INSTANCE_SETTERS__",n=>bt=n),ws=e("__VUE_SSR_SETTERS__",n=>Br=n)}const za=t=>{const e=bt;return fr(t),t.scope.on(),()=>{t.scope.off(),fr(e)}},Vi=()=>{bt&&bt.scope.off(),fr(null)};function Xl(t){return t.vnode.shapeFlag&4}let Br=!1;function Tu(t,e=!1){e&&ws(e);const{props:n,children:a}=t.vnode,r=Xl(t);uu(t,n,r,e),hu(t,a);const s=r?Pu(t,e):void 0;return e&&ws(!1),s}function Pu(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,au);const{setup:a}=n;if(a){const r=t.setupContext=a.length>1?Bu(t):null,s=za(t);Tn();const i=kn(a,t,0,[t.props,r]);if(Pn(),s(),Uo(i)){if(i.then(Vi,Vi),e)return i.then(o=>{_i(t,o,e)}).catch(o=>{xr(o,t,0)});t.asyncDep=i}else _i(t,i,e)}else Ul(t,e)}function _i(t,e,n){Pe(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ye(e)&&(t.setupState=gl(e)),Ul(t,n)}let ji;function Ul(t,e,n){const a=t.type;if(!t.render){if(!e&&ji&&!a.render){const r=a.template||Gs(t).template;if(r){const{isCustomElement:s,compilerOptions:i}=t.appContext.config,{delimiters:o,compilerOptions:l}=a,c=ft(ft({isCustomElement:s,delimiters:o},i),l);a.render=ji(r,c)}}t.render=a.render||Vt}{const r=za(t);Tn();try{ru(t)}finally{Pn(),r()}}}const Mu={get(t,e){return Bt(t,"get",""),t[e]}};function Bu(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Mu),slots:t.slots,emit:t.emit,expose:e}}function Zs(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(gl(Sd(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in $a)return $a[n](t)},has(e,n){return n in e||n in $a}}))}function Iu(t,e=!0){return Pe(t)?t.displayName||t.name:t.name||e&&t.__name}function Ou(t){return Pe(t)&&"__vccOpts"in t}const me=(t,e)=>Td(t,e,Br);function xe(t,e,n){const a=arguments.length;return a===2?Ye(e)&&!$e(e)?pr(e)?Se(t,null,[e]):Se(t,e):Se(t,null,e):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&pr(n)&&(n=[n]),Se(t,e,n))}const Au="3.4.27";/** +**/function kn(t,e,n,a){try{return a?t(...a):t()}catch(r){xr(r,e,n)}}function Xt(t,e,n,a){if(Pe(t)){const r=kn(t,e,n,a);return r&&Uo(r)&&r.catch(s=>{xr(s,e,n)}),r}if($e(t)){const r=[];for(let s=0;s>>1,r=gt[a],s=Oa(r);sJt&>.splice(e,1)}function Rd(t){$e(t)?Zn.push(...t):(!hn||!hn.includes(t,t.allowRecurse?On+1:On))&&Zn.push(t),vl()}function Mi(t,e,n=Ia?Jt+1:0){for(;nOa(n)-Oa(a));if(Zn.length=0,hn){hn.push(...e);return}for(hn=e,On=0;Ont.id==null?1/0:t.id,Hd=(t,e)=>{const n=Oa(t)-Oa(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function yl(t){fs=!1,Ia=!0,gt.sort(Hd);try{for(Jt=0;JtJe(f)?f.trim():f)),u&&(r=n.map(Kc))}let o,l=a[o=Hr(e)]||a[o=Hr(Zt(e))];!l&&s&&(l=a[o=Hr(oa(e))]),l&&Xt(l,t,6,r);const c=a[o+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Xt(c,t,6,r)}}function El(t,e,n=!1){const a=e.emitsCache,r=a.get(t);if(r!==void 0)return r;const s=t.emits;let i={},o=!1;if(!Pe(t)){const l=c=>{const d=El(c,e,!0);d&&(o=!0,ft(i,d))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!o?(Ye(t)&&a.set(t,null),null):($e(s)?s.forEach(l=>i[l]=null):ft(i,s),Ye(t)&&a.set(t,i),i)}function Sr(t,e){return!t||!yr(e)?!1:(e=e.slice(2).replace(/Once$/,""),Oe(t,e[0].toLowerCase()+e.slice(1))||Oe(t,oa(e))||Oe(t,e))}let Et=null,Cl=null;function dr(t){const e=Et;return Et=t,Cl=t&&t.type.__scopeId||null,e}function Ae(t,e=Et,n){if(!e||t._n)return t;const a=(...r)=>{a._d&&Ni(-1);const s=dr(e);let i;try{i=t(...r)}finally{dr(s),a._d&&Ni(1)}return i};return a._n=!0,a._c=!0,a._d=!0,a}function Nr(t){const{type:e,vnode:n,proxy:a,withProxy:r,propsOptions:[s],slots:i,attrs:o,emit:l,render:c,renderCache:d,props:u,data:p,setupState:f,ctx:h,inheritAttrs:m}=t,b=dr(t);let w,g;try{if(n.shapeFlag&4){const y=r||a,E=y;w=Qt(c.call(E,y,d,u,f,p,h)),g=o}else{const y=e;w=Qt(y.length>1?y(u,{attrs:o,slots:i,emit:l}):y(u,null)),g=e.props?o:zd(o)}}catch(y){Sa.length=0,xr(y,t,1),w=xe(Sn)}let v=w;if(g&&m!==!1){const y=Object.keys(g),{shapeFlag:E}=v;y.length&&E&7&&(s&&y.some(Ls)&&(g=Nd(g,s)),v=aa(v,g,!1,!0))}return n.dirs&&(v=aa(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),w=v,dr(b),w}const zd=t=>{let e;for(const n in t)(n==="class"||n==="style"||yr(n))&&((e||(e={}))[n]=t[n]);return e},Nd=(t,e)=>{const n={};for(const a in t)(!Ls(a)||!(a.slice(9)in e))&&(n[a]=t[a]);return n};function Vd(t,e,n){const{props:a,children:r,component:s}=t,{props:i,children:o,patchFlag:l}=e,c=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return a?Bi(a,i,c):!!i;if(l&8){const d=e.dynamicProps;for(let u=0;ut.__isSuspense;function qd(t,e){e&&e.pendingBranch?$e(t)?e.effects.push(...t):e.effects.push(t):Rd(t)}const Wd=Symbol.for("v-scx"),Yd=()=>ea(Wd),Ga={};function Rt(t,e,n){return Sl(t,e,n)}function Sl(t,e,{immediate:n,deep:a,flush:r,once:s,onTrack:i,onTrigger:o}=qe){if(e&&s){const k=e;e=(...$)=>{k(...$),E()}}const l=bt,c=k=>a===!0?k:Un(k,a===!1?1:void 0);let d,u=!1,p=!1;if(Bt(t)?(d=()=>t.value,u=cr(t)):Ca(t)?(d=()=>c(t),u=!0):$e(t)?(p=!0,u=t.some(k=>Ca(k)||cr(k)),d=()=>t.map(k=>{if(Bt(k))return k.value;if(Ca(k))return c(k);if(Pe(k))return kn(k,l,2)})):Pe(t)?e?d=()=>kn(t,l,2):d=()=>(f&&f(),Xt(t,l,3,[h])):d=Vt,e&&a){const k=d;d=()=>Un(k())}let f,h=k=>{f=v.onStop=()=>{kn(k,l,4),f=v.onStop=void 0}},m;if(Br)if(h=Vt,e?n&&Xt(e,l,3,[d(),p?[]:void 0,h]):d(),r==="sync"){const k=Yd();m=k.__watcherHandles||(k.__watcherHandles=[])}else return Vt;let b=p?new Array(t.length).fill(Ga):Ga;const w=()=>{if(!(!v.active||!v.dirty))if(e){const k=v.run();(a||u||(p?k.some(($,M)=>$n($,b[M])):$n(k,b)))&&(f&&f(),Xt(e,l,3,[k,b===Ga?void 0:p&&b[0]===Ga?[]:b,h]),b=k)}else v.run()};w.allowRecurse=!!e;let g;r==="sync"?g=w:r==="post"?g=()=>xt(w,l&&l.suspense):(w.pre=!0,l&&(w.id=l.uid),g=()=>Xs(w));const v=new Fs(d,Vt,g),y=sd(),E=()=>{v.stop(),y&&Rs(y.effects,v)};return e?n?w():b=v.run():r==="post"?xt(v.run.bind(v),l&&l.suspense):v.run(),m&&m.push(E),E}function Xd(t,e,n){const a=this.proxy,r=Je(t)?t.includes(".")?Tl(a,t):()=>a[t]:t.bind(a,a);let s;Pe(e)?s=e:(s=e.handler,n=e);const i=za(this),o=Sl(r,s.bind(a),n);return i(),o}function Tl(t,e){const n=e.split(".");return()=>{let a=t;for(let r=0;r{Un(a,e,n)});else if(Ko(t))for(const a in t)Un(t[a],e,n);return t}function Mn(t,e,n,a){const r=t.dirs,s=e&&e.dirs;for(let i=0;i!!t.type.__asyncLoader,Pl=t=>t.type.__isKeepAlive;function Ud(t,e){Ml(t,"a",e)}function Gd(t,e){Ml(t,"da",e)}function Ml(t,e,n=bt){const a=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(Tr(e,a,n),n){let r=n.parent;for(;r&&r.parent;)Pl(r.parent.vnode)&&Kd(a,e,n,r),r=r.parent}}function Kd(t,e,n,a){const r=Tr(e,t,a,!0);Bl(()=>{Rs(a[e],r)},n)}function Tr(t,e,n=bt,a=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...i)=>{if(n.isUnmounted)return;Tn();const o=za(n),l=Xt(e,n,t,i);return o(),Pn(),l});return a?r.unshift(s):r.push(s),s}}const un=t=>(e,n=bt)=>(!Br||t==="sp")&&Tr(t,(...a)=>e(...a),n),Qd=un("bm"),tt=un("m"),Jd=un("bu"),Pr=un("u"),ct=un("bum"),Bl=un("um"),Zd=un("sp"),eu=un("rtg"),tu=un("rtc");function nu(t,e=bt){Tr("ec",t,e)}function Ka(t,e,n,a){let r;const s=n;if($e(t)||Je(t)){r=new Array(t.length);for(let i=0,o=t.length;ie(i,o,void 0,s));else{const i=Object.keys(t);r=new Array(i.length);for(let o=0,l=i.length;opr(e)?!(e.type===Sn||e.type===ut&&!Il(e.children)):!0)?t:null}const hs=t=>t?Xl(t)?Zs(t)||t.proxy:hs(t.parent):null,$a=ft(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>hs(t.parent),$root:t=>hs(t.root),$emit:t=>t.emit,$options:t=>Gs(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,Xs(t.update)}),$nextTick:t=>t.n||(t.n=Ad.bind(t.proxy)),$watch:t=>Xd.bind(t)}),Vr=(t,e)=>t!==qe&&!t.__isScriptSetup&&Oe(t,e),au={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:a,data:r,props:s,accessCache:i,type:o,appContext:l}=t;let c;if(e[0]!=="$"){const f=i[e];if(f!==void 0)switch(f){case 1:return a[e];case 2:return r[e];case 4:return n[e];case 3:return s[e]}else{if(Vr(a,e))return i[e]=1,a[e];if(r!==qe&&Oe(r,e))return i[e]=2,r[e];if((c=t.propsOptions[0])&&Oe(c,e))return i[e]=3,s[e];if(n!==qe&&Oe(n,e))return i[e]=4,n[e];ms&&(i[e]=0)}}const d=$a[e];let u,p;if(d)return e==="$attrs"&&Mt(t.attrs,"get",""),d(t);if((u=o.__cssModules)&&(u=u[e]))return u;if(n!==qe&&Oe(n,e))return i[e]=4,n[e];if(p=l.config.globalProperties,Oe(p,e))return p[e]},set({_:t},e,n){const{data:a,setupState:r,ctx:s}=t;return Vr(r,e)?(r[e]=n,!0):a!==qe&&Oe(a,e)?(a[e]=n,!0):Oe(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:a,appContext:r,propsOptions:s}},i){let o;return!!n[i]||t!==qe&&Oe(t,i)||Vr(e,i)||(o=s[0])&&Oe(o,i)||Oe(a,i)||Oe($a,i)||Oe(r.config.globalProperties,i)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Oe(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Oi(t){return $e(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let ms=!0;function ru(t){const e=Gs(t),n=t.proxy,a=t.ctx;ms=!1,e.beforeCreate&&Ai(e.beforeCreate,t,"bc");const{data:r,computed:s,methods:i,watch:o,provide:l,inject:c,created:d,beforeMount:u,mounted:p,beforeUpdate:f,updated:h,activated:m,deactivated:b,beforeDestroy:w,beforeUnmount:g,destroyed:v,unmounted:y,render:E,renderTracked:k,renderTriggered:$,errorCaptured:M,serverPrefetch:x,expose:F,inheritAttrs:S,components:I,directives:B,filters:P}=e;if(c&&su(c,a,null),i)for(const H in i){const D=i[H];Pe(D)&&(a[H]=D.bind(n))}if(r){const H=r.call(n,n);Ye(H)&&(t.data=js(H))}if(ms=!0,s)for(const H in s){const D=s[H],O=Pe(D)?D.bind(n,n):Pe(D.get)?D.get.bind(n,n):Vt,_=!Pe(D)&&Pe(D.set)?D.set.bind(n):Vt,N=me({get:O,set:_});Object.defineProperty(a,H,{enumerable:!0,configurable:!0,get:()=>N.value,set:G=>N.value=G})}if(o)for(const H in o)Ol(o[H],a,n,H);if(l){const H=Pe(l)?l.call(n):l;Reflect.ownKeys(H).forEach(D=>{Ks(D,H[D])})}d&&Ai(d,t,"c");function V(H,D){$e(D)?D.forEach(O=>H(O.bind(n))):D&&H(D.bind(n))}if(V(Qd,u),V(tt,p),V(Jd,f),V(Pr,h),V(Ud,m),V(Gd,b),V(nu,M),V(tu,k),V(eu,$),V(ct,g),V(Bl,y),V(Zd,x),$e(F))if(F.length){const H=t.exposed||(t.exposed={});F.forEach(D=>{Object.defineProperty(H,D,{get:()=>n[D],set:O=>n[D]=O})})}else t.exposed||(t.exposed={});E&&t.render===Vt&&(t.render=E),S!=null&&(t.inheritAttrs=S),I&&(t.components=I),B&&(t.directives=B)}function su(t,e,n=Vt){$e(t)&&(t=gs(t));for(const a in t){const r=t[a];let s;Ye(r)?"default"in r?s=ea(r.from||a,r.default,!0):s=ea(r.from||a):s=ea(r),Bt(s)?Object.defineProperty(e,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):e[a]=s}}function Ai(t,e,n){Xt($e(t)?t.map(a=>a.bind(e.proxy)):t.bind(e.proxy),e,n)}function Ol(t,e,n,a){const r=a.includes(".")?Tl(n,a):()=>n[a];if(Je(t)){const s=e[t];Pe(s)&&Rt(r,s)}else if(Pe(t))Rt(r,t.bind(n));else if(Ye(t))if($e(t))t.forEach(s=>Ol(s,e,n,a));else{const s=Pe(t.handler)?t.handler.bind(n):e[t.handler];Pe(s)&&Rt(r,s,t)}}function Gs(t){const e=t.type,{mixins:n,extends:a}=e,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=t.appContext,o=s.get(e);let l;return o?l=o:!r.length&&!n&&!a?l=e:(l={},r.length&&r.forEach(c=>ur(l,c,i,!0)),ur(l,e,i)),Ye(e)&&s.set(e,l),l}function ur(t,e,n,a=!1){const{mixins:r,extends:s}=e;s&&ur(t,s,n,!0),r&&r.forEach(i=>ur(t,i,n,!0));for(const i in e)if(!(a&&i==="expose")){const o=iu[i]||n&&n[i];t[i]=o?o(t[i],e[i]):e[i]}return t}const iu={data:Di,props:Li,emits:Li,methods:ma,computed:ma,beforeCreate:wt,created:wt,beforeMount:wt,mounted:wt,beforeUpdate:wt,updated:wt,beforeDestroy:wt,beforeUnmount:wt,destroyed:wt,unmounted:wt,activated:wt,deactivated:wt,errorCaptured:wt,serverPrefetch:wt,components:ma,directives:ma,watch:lu,provide:Di,inject:ou};function Di(t,e){return e?t?function(){return ft(Pe(t)?t.call(this,this):t,Pe(e)?e.call(this,this):e)}:e:t}function ou(t,e){return ma(gs(t),gs(e))}function gs(t){if($e(t)){const e={};for(let n=0;n1)return n&&Pe(e)?e.call(a&&a.proxy):e}}const Dl={},Ll=()=>Object.create(Dl),Rl=t=>Object.getPrototypeOf(t)===Dl;function uu(t,e,n,a=!1){const r={},s=Ll();t.propsDefaults=Object.create(null),Hl(t,e,r,s);for(const i in t.propsOptions[0])i in r||(r[i]=void 0);n?t.props=a?r:xd(r):t.type.props?t.props=r:t.props=s,t.attrs=s}function pu(t,e,n,a){const{props:r,attrs:s,vnode:{patchFlag:i}}=t,o=Me(r),[l]=t.propsOptions;let c=!1;if((a||i>0)&&!(i&16)){if(i&8){const d=t.vnode.dynamicProps;for(let u=0;u{l=!0;const[p,f]=Fl(u,e,!0);ft(i,p),f&&o.push(...f)};!n&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!s&&!l)return Ye(t)&&a.set(t,Qn),Qn;if($e(s))for(let d=0;d-1,f[1]=m<0||h-1||Oe(f,"default"))&&o.push(u)}}}const c=[i,o];return Ye(t)&&a.set(t,c),c}function Ri(t){return t[0]!=="$"&&!Ea(t)}function Hi(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function Fi(t,e){return Hi(t)===Hi(e)}function zi(t,e){return $e(e)?e.findIndex(n=>Fi(n,t)):Pe(e)&&Fi(e,t)?0:-1}const zl=t=>t[0]==="_"||t==="$stable",Qs=t=>$e(t)?t.map(Qt):[Qt(t)],fu=(t,e,n)=>{if(e._n)return e;const a=Ae((...r)=>Qs(e(...r)),n);return a._c=!1,a},Nl=(t,e,n)=>{const a=t._ctx;for(const r in t){if(zl(r))continue;const s=t[r];if(Pe(s))e[r]=fu(r,s,a);else if(s!=null){const i=Qs(s);e[r]=()=>i}}},Vl=(t,e)=>{const n=Qs(e);t.slots.default=()=>n},hu=(t,e)=>{const n=t.slots=Ll();if(t.vnode.shapeFlag&32){const a=e._;a?(ft(n,e),Qo(n,"_",a,!0)):Nl(e,n)}else e&&Vl(t,e)},mu=(t,e,n)=>{const{vnode:a,slots:r}=t;let s=!0,i=qe;if(a.shapeFlag&32){const o=e._;o?n&&o===1?s=!1:(ft(r,e),!n&&o===1&&delete r._):(s=!e.$stable,Nl(e,r)),i=e}else e&&(Vl(t,e),i={default:1});if(s)for(const o in r)!zl(o)&&i[o]==null&&delete r[o]};function vs(t,e,n,a,r=!1){if($e(t)){t.forEach((p,f)=>vs(p,e&&($e(e)?e[f]:e),n,a,r));return}if(ka(a)&&!r)return;const s=a.shapeFlag&4?Zs(a.component)||a.component.proxy:a.el,i=r?null:s,{i:o,r:l}=t,c=e&&e.r,d=o.refs===qe?o.refs={}:o.refs,u=o.setupState;if(c!=null&&c!==l&&(Je(c)?(d[c]=null,Oe(u,c)&&(u[c]=null)):Bt(c)&&(c.value=null)),Pe(l))kn(l,o,12,[i,d]);else{const p=Je(l),f=Bt(l);if(p||f){const h=()=>{if(t.f){const m=p?Oe(u,l)?u[l]:d[l]:l.value;r?$e(m)&&Rs(m,s):$e(m)?m.includes(s)||m.push(s):p?(d[l]=[s],Oe(u,l)&&(u[l]=d[l])):(l.value=[s],t.k&&(d[t.k]=l.value))}else p?(d[l]=i,Oe(u,l)&&(u[l]=i)):f&&(l.value=i,t.k&&(d[t.k]=i))};i?(h.id=-1,xt(h,n)):h()}}}const xt=qd;function gu(t){return bu(t)}function bu(t,e){const n=Jo();n.__VUE__=!0;const{insert:a,remove:r,patchProp:s,createElement:i,createText:o,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:p,setScopeId:f=Vt,insertStaticContent:h}=t,m=(R,A,z,q=null,U=null,K=null,j=void 0,Q=null,ae=!!A.dynamicChildren)=>{if(R===A)return;R&&!ua(R,A)&&(q=ie(R),G(R,U,K,!0),R=null),A.patchFlag===-2&&(ae=!1,A.dynamicChildren=null);const{type:Z,ref:te,shapeFlag:he}=A;switch(Z){case Mr:b(R,A,z,q);break;case Sn:w(R,A,z,q);break;case nr:R==null&&g(A,z,q,j);break;case ut:I(R,A,z,q,U,K,j,Q,ae);break;default:he&1?E(R,A,z,q,U,K,j,Q,ae):he&6?B(R,A,z,q,U,K,j,Q,ae):(he&64||he&128)&&Z.process(R,A,z,q,U,K,j,Q,ae,oe)}te!=null&&U&&vs(te,R&&R.ref,K,A||R,!A)},b=(R,A,z,q)=>{if(R==null)a(A.el=o(A.children),z,q);else{const U=A.el=R.el;A.children!==R.children&&c(U,A.children)}},w=(R,A,z,q)=>{R==null?a(A.el=l(A.children||""),z,q):A.el=R.el},g=(R,A,z,q)=>{[R.el,R.anchor]=h(R.children,A,z,q,R.el,R.anchor)},v=({el:R,anchor:A},z,q)=>{let U;for(;R&&R!==A;)U=p(R),a(R,z,q),R=U;a(A,z,q)},y=({el:R,anchor:A})=>{let z;for(;R&&R!==A;)z=p(R),r(R),R=z;r(A)},E=(R,A,z,q,U,K,j,Q,ae)=>{A.type==="svg"?j="svg":A.type==="math"&&(j="mathml"),R==null?k(A,z,q,U,K,j,Q,ae):x(R,A,U,K,j,Q,ae)},k=(R,A,z,q,U,K,j,Q)=>{let ae,Z;const{props:te,shapeFlag:he,transition:re,dirs:de}=R;if(ae=R.el=i(R.type,K,te&&te.is,te),he&8?d(ae,R.children):he&16&&M(R.children,ae,null,q,U,_r(R,K),j,Q),de&&Mn(R,null,q,"created"),$(ae,R,R.scopeId,j,q),te){for(const Fe in te)Fe!=="value"&&!Ea(Fe)&&s(ae,Fe,null,te[Fe],K,R.children,q,U,ne);"value"in te&&s(ae,"value",null,te.value,K),(Z=te.onVnodeBeforeMount)&&Kt(Z,q,R)}de&&Mn(R,null,q,"beforeMount");const Ee=vu(U,re);Ee&&re.beforeEnter(ae),a(ae,A,z),((Z=te&&te.onVnodeMounted)||Ee||de)&&xt(()=>{Z&&Kt(Z,q,R),Ee&&re.enter(ae),de&&Mn(R,null,q,"mounted")},U)},$=(R,A,z,q,U)=>{if(z&&f(R,z),q)for(let K=0;K{for(let Z=ae;Z{const Q=A.el=R.el;let{patchFlag:ae,dynamicChildren:Z,dirs:te}=A;ae|=R.patchFlag&16;const he=R.props||qe,re=A.props||qe;let de;if(z&&Bn(z,!1),(de=re.onVnodeBeforeUpdate)&&Kt(de,z,A,R),te&&Mn(A,R,z,"beforeUpdate"),z&&Bn(z,!0),Z?F(R.dynamicChildren,Z,Q,z,q,_r(A,U),K):j||D(R,A,Q,null,z,q,_r(A,U),K,!1),ae>0){if(ae&16)S(Q,A,he,re,z,q,U);else if(ae&2&&he.class!==re.class&&s(Q,"class",null,re.class,U),ae&4&&s(Q,"style",he.style,re.style,U),ae&8){const Ee=A.dynamicProps;for(let Fe=0;Fe{de&&Kt(de,z,A,R),te&&Mn(A,R,z,"updated")},q)},F=(R,A,z,q,U,K,j)=>{for(let Q=0;Q{if(z!==q){if(z!==qe)for(const Q in z)!Ea(Q)&&!(Q in q)&&s(R,Q,z[Q],null,j,A.children,U,K,ne);for(const Q in q){if(Ea(Q))continue;const ae=q[Q],Z=z[Q];ae!==Z&&Q!=="value"&&s(R,Q,Z,ae,j,A.children,U,K,ne)}"value"in q&&s(R,"value",z.value,q.value,j)}},I=(R,A,z,q,U,K,j,Q,ae)=>{const Z=A.el=R?R.el:o(""),te=A.anchor=R?R.anchor:o("");let{patchFlag:he,dynamicChildren:re,slotScopeIds:de}=A;de&&(Q=Q?Q.concat(de):de),R==null?(a(Z,z,q),a(te,z,q),M(A.children||[],z,te,U,K,j,Q,ae)):he>0&&he&64&&re&&R.dynamicChildren?(F(R.dynamicChildren,re,z,U,K,j,Q),(A.key!=null||U&&A===U.subTree)&&_l(R,A,!0)):D(R,A,z,te,U,K,j,Q,ae)},B=(R,A,z,q,U,K,j,Q,ae)=>{A.slotScopeIds=Q,R==null?A.shapeFlag&512?U.ctx.activate(A,z,q,j,ae):P(A,z,q,U,K,j,ae):L(R,A,ae)},P=(R,A,z,q,U,K,j)=>{const Q=R.component=Su(R,q,U);if(Pl(R)&&(Q.ctx.renderer=oe),Tu(Q),Q.asyncDep){if(U&&U.registerDep(Q,V),!R.el){const ae=Q.subTree=xe(Sn);w(null,ae,A,z)}}else V(Q,R,A,z,U,K,j)},L=(R,A,z)=>{const q=A.component=R.component;if(Vd(R,A,z))if(q.asyncDep&&!q.asyncResolved){H(q,A,z);return}else q.next=A,Ld(q.update),q.effect.dirty=!0,q.update();else A.el=R.el,q.vnode=A},V=(R,A,z,q,U,K,j)=>{const Q=()=>{if(R.isMounted){let{next:te,bu:he,u:re,parent:de,vnode:Ee}=R;{const jn=jl(R);if(jn){te&&(te.el=Ee.el,H(R,te,j)),jn.asyncDep.then(()=>{R.isUnmounted||Q()});return}}let Fe=te,je;Bn(R,!1),te?(te.el=Ee.el,H(R,te,j)):te=Ee,he&&Fr(he),(je=te.props&&te.props.onVnodeBeforeUpdate)&&Kt(je,de,te,Ee),Bn(R,!0);const rt=Nr(R),_t=R.subTree;R.subTree=rt,m(_t,rt,u(_t.el),ie(_t),R,U,K),te.el=rt.el,Fe===null&&_d(R,rt.el),re&&xt(re,U),(je=te.props&&te.props.onVnodeUpdated)&&xt(()=>Kt(je,de,te,Ee),U)}else{let te;const{el:he,props:re}=A,{bm:de,m:Ee,parent:Fe}=R,je=ka(A);if(Bn(R,!1),de&&Fr(de),!je&&(te=re&&re.onVnodeBeforeMount)&&Kt(te,Fe,A),Bn(R,!0),he&&pe){const rt=()=>{R.subTree=Nr(R),pe(he,R.subTree,R,U,null)};je?A.type.__asyncLoader().then(()=>!R.isUnmounted&&rt()):rt()}else{const rt=R.subTree=Nr(R);m(null,rt,z,q,R,U,K),A.el=rt.el}if(Ee&&xt(Ee,U),!je&&(te=re&&re.onVnodeMounted)){const rt=A;xt(()=>Kt(te,Fe,rt),U)}(A.shapeFlag&256||Fe&&ka(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&R.a&&xt(R.a,U),R.isMounted=!0,A=z=q=null}},ae=R.effect=new Fs(Q,Vt,()=>Xs(Z),R.scope),Z=R.update=()=>{ae.dirty&&ae.run()};Z.id=R.uid,Bn(R,!0),Z()},H=(R,A,z)=>{A.component=R;const q=R.vnode.props;R.vnode=A,R.next=null,pu(R,A.props,q,z),mu(R,A.children,z),Tn(),Mi(R),Pn()},D=(R,A,z,q,U,K,j,Q,ae=!1)=>{const Z=R&&R.children,te=R?R.shapeFlag:0,he=A.children,{patchFlag:re,shapeFlag:de}=A;if(re>0){if(re&128){_(Z,he,z,q,U,K,j,Q,ae);return}else if(re&256){O(Z,he,z,q,U,K,j,Q,ae);return}}de&8?(te&16&&ne(Z,U,K),he!==Z&&d(z,he)):te&16?de&16?_(Z,he,z,q,U,K,j,Q,ae):ne(Z,U,K,!0):(te&8&&d(z,""),de&16&&M(he,z,q,U,K,j,Q,ae))},O=(R,A,z,q,U,K,j,Q,ae)=>{R=R||Qn,A=A||Qn;const Z=R.length,te=A.length,he=Math.min(Z,te);let re;for(re=0;rete?ne(R,U,K,!0,!1,he):M(A,z,q,U,K,j,Q,ae,he)},_=(R,A,z,q,U,K,j,Q,ae)=>{let Z=0;const te=A.length;let he=R.length-1,re=te-1;for(;Z<=he&&Z<=re;){const de=R[Z],Ee=A[Z]=ae?mn(A[Z]):Qt(A[Z]);if(ua(de,Ee))m(de,Ee,z,null,U,K,j,Q,ae);else break;Z++}for(;Z<=he&&Z<=re;){const de=R[he],Ee=A[re]=ae?mn(A[re]):Qt(A[re]);if(ua(de,Ee))m(de,Ee,z,null,U,K,j,Q,ae);else break;he--,re--}if(Z>he){if(Z<=re){const de=re+1,Ee=dere)for(;Z<=he;)G(R[Z],U,K,!0),Z++;else{const de=Z,Ee=Z,Fe=new Map;for(Z=Ee;Z<=re;Z++){const Ot=A[Z]=ae?mn(A[Z]):Qt(A[Z]);Ot.key!=null&&Fe.set(Ot.key,Z)}let je,rt=0;const _t=re-Ee+1;let jn=!1,bi=0;const da=new Array(_t);for(Z=0;Z<_t;Z++)da[Z]=0;for(Z=de;Z<=he;Z++){const Ot=R[Z];if(rt>=_t){G(Ot,U,K,!0);continue}let Gt;if(Ot.key!=null)Gt=Fe.get(Ot.key);else for(je=Ee;je<=re;je++)if(da[je-Ee]===0&&ua(Ot,A[je])){Gt=je;break}Gt===void 0?G(Ot,U,K,!0):(da[Gt-Ee]=Z+1,Gt>=bi?bi=Gt:jn=!0,m(Ot,A[Gt],z,null,U,K,j,Q,ae),rt++)}const vi=jn?wu(da):Qn;for(je=vi.length-1,Z=_t-1;Z>=0;Z--){const Ot=Ee+Z,Gt=A[Ot],wi=Ot+1{const{el:K,type:j,transition:Q,children:ae,shapeFlag:Z}=R;if(Z&6){N(R.component.subTree,A,z,q);return}if(Z&128){R.suspense.move(A,z,q);return}if(Z&64){j.move(R,A,z,oe);return}if(j===ut){a(K,A,z);for(let he=0;heQ.enter(K),U);else{const{leave:he,delayLeave:re,afterLeave:de}=Q,Ee=()=>a(K,A,z),Fe=()=>{he(K,()=>{Ee(),de&&de()})};re?re(K,Ee,Fe):Fe()}else a(K,A,z)},G=(R,A,z,q=!1,U=!1)=>{const{type:K,props:j,ref:Q,children:ae,dynamicChildren:Z,shapeFlag:te,patchFlag:he,dirs:re}=R;if(Q!=null&&vs(Q,null,z,R,!0),te&256){A.ctx.deactivate(R);return}const de=te&1&&re,Ee=!ka(R);let Fe;if(Ee&&(Fe=j&&j.onVnodeBeforeUnmount)&&Kt(Fe,A,R),te&6)se(R.component,z,q);else{if(te&128){R.suspense.unmount(z,q);return}de&&Mn(R,null,A,"beforeUnmount"),te&64?R.type.remove(R,A,z,U,oe,q):Z&&(K!==ut||he>0&&he&64)?ne(Z,A,z,!1,!0):(K===ut&&he&384||!U&&te&16)&&ne(ae,A,z),q&&ee(R)}(Ee&&(Fe=j&&j.onVnodeUnmounted)||de)&&xt(()=>{Fe&&Kt(Fe,A,R),de&&Mn(R,null,A,"unmounted")},z)},ee=R=>{const{type:A,el:z,anchor:q,transition:U}=R;if(A===ut){X(z,q);return}if(A===nr){y(R);return}const K=()=>{r(z),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(R.shapeFlag&1&&U&&!U.persisted){const{leave:j,delayLeave:Q}=U,ae=()=>j(z,K);Q?Q(R.el,K,ae):ae()}else K()},X=(R,A)=>{let z;for(;R!==A;)z=p(R),r(R),R=z;r(A)},se=(R,A,z)=>{const{bum:q,scope:U,update:K,subTree:j,um:Q}=R;q&&Fr(q),U.stop(),K&&(K.active=!1,G(j,R,A,z)),Q&&xt(Q,A),xt(()=>{R.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},ne=(R,A,z,q=!1,U=!1,K=0)=>{for(let j=K;jR.shapeFlag&6?ie(R.component.subTree):R.shapeFlag&128?R.suspense.next():p(R.anchor||R.el);let le=!1;const be=(R,A,z)=>{R==null?A._vnode&&G(A._vnode,null,null,!0):m(A._vnode||null,R,A,null,null,null,z),le||(le=!0,Mi(),wl(),le=!1),A._vnode=R},oe={p:m,um:G,m:N,r:ee,mt:P,mc:M,pc:D,pbc:F,n:ie,o:t};let ce,pe;return{render:be,hydrate:ce,createApp:du(be,ce)}}function _r({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Bn({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function vu(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function _l(t,e,n=!1){const a=t.children,r=e.children;if($e(a)&&$e(r))for(let s=0;s>1,t[n[o]]0&&(e[a]=n[s-1]),n[s]=a)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=e[i];return n}function jl(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:jl(e)}const yu=t=>t.__isTeleport,ut=Symbol.for("v-fgt"),Mr=Symbol.for("v-txt"),Sn=Symbol.for("v-cmt"),nr=Symbol.for("v-stc"),Sa=[];let qt=null;function ge(t=!1){Sa.push(qt=t?null:[])}function Eu(){Sa.pop(),qt=Sa[Sa.length-1]||null}let Aa=1;function Ni(t){Aa+=t}function ql(t){return t.dynamicChildren=Aa>0?qt||Qn:null,Eu(),Aa>0&&qt&&qt.push(t),t}function ke(t,e,n,a,r,s){return ql(Ne(t,e,n,a,r,s,!0))}function at(t,e,n,a,r){return ql(xe(t,e,n,a,r,!0))}function pr(t){return t?t.__v_isVNode===!0:!1}function ua(t,e){return t.type===e.type&&t.key===e.key}const Wl=({key:t})=>t??null,ar=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Je(t)||Bt(t)||Pe(t)?{i:Et,r:t,k:e,f:!!n}:t:null);function Ne(t,e=null,n=null,a=0,r=null,s=t===ut?0:1,i=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Wl(e),ref:e&&ar(e),scopeId:Cl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:a,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Et};return o?(Js(l,n),s&128&&t.normalize(l)):n&&(l.shapeFlag|=Je(n)?8:16),Aa>0&&!i&&qt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&qt.push(l),l}const xe=Cu;function Cu(t,e=null,n=null,a=0,r=null,s=!1){if((!t||t===kl)&&(t=Sn),pr(t)){const o=aa(t,e,!0);return n&&Js(o,n),Aa>0&&!s&&qt&&(o.shapeFlag&6?qt[qt.indexOf(t)]=o:qt.push(o)),o.patchFlag|=-2,o}if(Ou(t)&&(t=t.__vccOpts),e){e=Yl(e);let{class:o,style:l}=e;o&&!Je(o)&&(e.class=Le(o)),Ye(l)&&(fl(l)&&!$e(l)&&(l=ft({},l)),e.style=xn(l))}const i=Je(t)?1:jd(t)?128:yu(t)?64:Ye(t)?4:Pe(t)?2:0;return Ne(t,e,n,a,r,i,s,!0)}function Yl(t){return t?fl(t)||Rl(t)?ft({},t):t:null}function aa(t,e,n=!1,a=!1){const{props:r,ref:s,patchFlag:i,children:o,transition:l}=t,c=e?Fa(r||{},e):r,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Wl(c),ref:e&&e.ref?n&&s?$e(s)?s.concat(ar(e)):[s,ar(e)]:ar(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ut?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&aa(t.ssContent),ssFallback:t.ssFallback&&aa(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&a&&(d.transition=l.clone(d)),d}function zt(t=" ",e=0){return xe(Mr,null,t,e)}function ku(t,e){const n=xe(nr,null,t);return n.staticCount=e,n}function We(t="",e=!1){return e?(ge(),at(Sn,null,t)):xe(Sn,null,t)}function Qt(t){return t==null||typeof t=="boolean"?xe(Sn):$e(t)?xe(ut,null,t.slice()):typeof t=="object"?mn(t):xe(Mr,null,String(t))}function mn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:aa(t)}function Js(t,e){let n=0;const{shapeFlag:a}=t;if(e==null)e=null;else if($e(e))n=16;else if(typeof e=="object")if(a&65){const r=e.default;r&&(r._c&&(r._d=!1),Js(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!Rl(e)?e._ctx=Et:r===3&&Et&&(Et.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Pe(e)?(e={default:e,_ctx:Et},n=32):(e=String(e),a&64?(n=16,e=[zt(e)]):n=8);t.children=e,t.shapeFlag|=n}function Fa(...t){const e={};for(let n=0;n{let r;return(r=t[n])||(r=t[n]=[]),r.push(a),s=>{r.length>1?r.forEach(i=>i(s)):r[0](s)}};fr=e("__VUE_INSTANCE_SETTERS__",n=>bt=n),ws=e("__VUE_SSR_SETTERS__",n=>Br=n)}const za=t=>{const e=bt;return fr(t),t.scope.on(),()=>{t.scope.off(),fr(e)}},Vi=()=>{bt&&bt.scope.off(),fr(null)};function Xl(t){return t.vnode.shapeFlag&4}let Br=!1;function Tu(t,e=!1){e&&ws(e);const{props:n,children:a}=t.vnode,r=Xl(t);uu(t,n,r,e),hu(t,a);const s=r?Pu(t,e):void 0;return e&&ws(!1),s}function Pu(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,au);const{setup:a}=n;if(a){const r=t.setupContext=a.length>1?Bu(t):null,s=za(t);Tn();const i=kn(a,t,0,[t.props,r]);if(Pn(),s(),Uo(i)){if(i.then(Vi,Vi),e)return i.then(o=>{_i(t,o,e)}).catch(o=>{xr(o,t,0)});t.asyncDep=i}else _i(t,i,e)}else Ul(t,e)}function _i(t,e,n){Pe(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ye(e)&&(t.setupState=gl(e)),Ul(t,n)}let ji;function Ul(t,e,n){const a=t.type;if(!t.render){if(!e&&ji&&!a.render){const r=a.template||Gs(t).template;if(r){const{isCustomElement:s,compilerOptions:i}=t.appContext.config,{delimiters:o,compilerOptions:l}=a,c=ft(ft({isCustomElement:s,delimiters:o},i),l);a.render=ji(r,c)}}t.render=a.render||Vt}{const r=za(t);Tn();try{ru(t)}finally{Pn(),r()}}}const Mu={get(t,e){return Mt(t,"get",""),t[e]}};function Bu(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Mu),slots:t.slots,emit:t.emit,expose:e}}function Zs(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(gl(Sd(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in $a)return $a[n](t)},has(e,n){return n in e||n in $a}}))}function Iu(t,e=!0){return Pe(t)?t.displayName||t.name:t.name||e&&t.__name}function Ou(t){return Pe(t)&&"__vccOpts"in t}const me=(t,e)=>Td(t,e,Br);function Se(t,e,n){const a=arguments.length;return a===2?Ye(e)&&!$e(e)?pr(e)?xe(t,null,[e]):xe(t,e):xe(t,null,e):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&pr(n)&&(n=[n]),xe(t,e,n))}const Au="3.4.27";/** * @vue/runtime-dom v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT @@ -24,7 +24,7 @@ ${[0,1,2,3,4,5,6,7].map(()=>'').join("")} -`.trim();function ga(t){let e;return t.split("").map((n,a)=>n.match(/[A-Z]/)&&a!==0&&!e?(e=!0,`:${n.toLowerCase()}`):n.toLowerCase()).join("")}function Ze(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function ks(t){return fe().requestAnimationFrame(t)}function Dy(t){return fe().cancelAnimationFrame(t)}function lt(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Mt(t){return ks(()=>{ks(t)})}function Ot(){return Date.now()}function La(t){const e=fe(),n={};let a=t||e.location.href,r,s,i,o;if(typeof a=="string"&&a.length)for(a=a.indexOf("?")>-1?a.replace(/\S*\?/,""):"",s=a.split("&").filter(l=>l!==""),o=s.length,r=0;r6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(r==="none"?"":r)):(s=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=s.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?r=s.m41:a.length===16?r=parseFloat(a[12]):r=parseFloat(a[4])),e==="y"&&(n.WebKitCSSMatrix?r=s.m42:a.length===16?r=parseFloat(a[13]):r=parseFloat(a[5])),r||0}function Fn(t,e){if(e===void 0&&(e=[]),typeof t=="string")return t;const n=[],a="&";let r;function s(o){if(e.length>0){let l="";for(let c=0;c{let l;if(Array.isArray(t[o])){l=[];for(let c=0;c0&&n.push(l.join(a))}else t[o]===null||t[o]===""?n.push(`${s(o)}=`):typeof t[o]=="object"?(r=e.slice(),r.push(o),l=Fn(t[o],r),l!==""&&n.push(l)):typeof t[o]<"u"&&t[o]!==""?n.push(`${s(o)}=${i(t[o])}`):t[o]===""&&n.push(s(o))}),n.join(a)}function Gn(t){return typeof t=="object"&&t!==null&&t.constructor&&t.constructor===Object}function Ly(){for(var t=arguments.length,e=new Array(t),n=0;nr+r+s+s+i+i),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?n.slice(1).map(a=>parseInt(a,16)):null}function on(t,e,n){return`#${[t,e,n].map(r=>{const s=r.toString(16);return s.length===1?`0${s}`:s}).join("")}`}function gr(t,e,n){t/=255,e/=255,n/=255;const a=Math.max(t,e,n),r=Math.min(t,e,n),s=a-r;let i;s===0?i=0:a===t?i=(e-n)/s%6:a===e?i=(n-t)/s+2:a===n&&(i=(t-e)/s+4);const o=(r+a)/2,l=s===0?0:s/(1-Math.abs(2*o-1));return i<0&&(i=360/60+i),[i*60,l,o]}function na(t,e,n){const a=(1-Math.abs(2*n-1))*e,r=t/60,s=a*(1-Math.abs(r%2-1));let i;Number.isNaN(t)||typeof t>"u"?i=[0,0,0]:r<=1?i=[a,s,0]:r<=2?i=[s,a,0]:r<=3?i=[0,a,s]:r<=4?i=[0,s,a]:r<=5?i=[s,0,a]:r<=6&&(i=[a,0,s]);const o=n-a/2;return i.map(l=>Math.max(0,Math.min(255,Math.round(255*(l+o)))))}function cn(t,e,n){const a={h:t,s:0,l:0},r={h:t,s:e,b:n};return a.l=(2-r.s)*r.b/2,a.s=a.l&&a.l<1?r.s*r.b/(a.l<.5?a.l*2:2-a.l*2):a.s,[a.h,a.s,a.l]}function ba(t,e,n){const a={h:t,s:0,b:0},r={h:t,s:e,l:n},s=r.s*(r.l<.5?r.l:1-r.l);return a.b=r.l+s,a.s=r.l>0?2*s/a.b:a.s,[a.h,a.s,a.b]}const Xr=t=>{const e=gr(...t),n=[e[0],e[1],Math.max(0,e[2]-.08)],a=[e[0],e[1],Math.max(0,e[2]+.08)],r=on(...na(...n)),s=on(...na(...a));return{shade:r,tint:s}};function $s(){let t,e;for(var n=arguments.length,a=new Array(n),r=0;r{d.includes("surface-")&&(s[`${d}-rgb`]=rn(s[d]))}),Object.keys(i).forEach(d=>{d.includes("surface-")&&(i[`${d}-rgb`]=rn(i[d]))}),{ios:{"--f7-theme-color":"var(--f7-ios-primary)","--f7-theme-color-rgb":"var(--f7-ios-primary-rgb)","--f7-theme-color-shade":"var(--f7-ios-primary-shade)","--f7-theme-color-tint":"var(--f7-ios-primary-tint)"},md:{"--f7-theme-color":"var(--f7-md-primary)","--f7-theme-color-rgb":"var(--f7-md-primary-rgb)","--f7-theme-color-shade":"var(--f7-md-primary-shade)","--f7-theme-color-tint":"var(--f7-md-primary-tint)"},light:{"--f7-ios-primary":t,"--f7-ios-primary-shade":o.shade,"--f7-ios-primary-tint":o.tint,"--f7-ios-primary-rgb":e.join(", "),"--f7-md-primary-shade":l.shade,"--f7-md-primary-tint":l.tint,"--f7-md-primary-rgb":rn(s["--f7-md-primary"]).join(", "),...s},dark:{"--f7-md-primary-shade":c.shade,"--f7-md-primary-tint":c.tint,"--f7-md-primary-rgb":rn(i["--f7-md-primary"]).join(", "),...i}}}function Ct(t,e){Object.keys(e).forEach(n=>{Gn(e[n])&&Object.keys(e[n]).forEach(a=>{typeof e[n][a]=="function"&&(e[n][a]=e[n][a].bind(t))}),t[n]=e[n]})}function tc(){const t=[];for(var e=arguments.length,n=new Array(e),a=0;a{Array.isArray(r)?t.push(...tc(...r)):t.push(r)}),t}function Ry(t){t===void 0&&(t={});const e=i=>{let o="";return Object.keys(i).forEach(l=>{o+=`${l}:${i[l]};`}),o},n=$s(t.primary),a=[":root{",e(n.light),"--swiper-theme-color:var(--f7-theme-color);",...Object.keys(t).map(i=>`--f7-color-${i}: ${t[i]};`),"}",".dark{",e(n.dark),"}",".ios, .ios .dark{",e(n.ios),"}",".md, .md .dark{",e(n.md),"}"].join(""),r={};Object.keys(t).forEach(i=>{const o=t[i];r[i]=$s(o)});let s="";return Object.keys(t).forEach(i=>{const{light:o,dark:l,ios:c,md:d}=r[i],u=` +`.trim();function ga(t){let e;return t.split("").map((n,a)=>n.match(/[A-Z]/)&&a!==0&&!e?(e=!0,`:${n.toLowerCase()}`):n.toLowerCase()).join("")}function Ze(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function ks(t){return fe().requestAnimationFrame(t)}function Dy(t){return fe().cancelAnimationFrame(t)}function lt(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Pt(t){return ks(()=>{ks(t)})}function It(){return Date.now()}function La(t){const e=fe(),n={};let a=t||e.location.href,r,s,i,o;if(typeof a=="string"&&a.length)for(a=a.indexOf("?")>-1?a.replace(/\S*\?/,""):"",s=a.split("&").filter(l=>l!==""),o=s.length,r=0;r6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(r==="none"?"":r)):(s=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=s.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?r=s.m41:a.length===16?r=parseFloat(a[12]):r=parseFloat(a[4])),e==="y"&&(n.WebKitCSSMatrix?r=s.m42:a.length===16?r=parseFloat(a[13]):r=parseFloat(a[5])),r||0}function Fn(t,e){if(e===void 0&&(e=[]),typeof t=="string")return t;const n=[],a="&";let r;function s(o){if(e.length>0){let l="";for(let c=0;c{let l;if(Array.isArray(t[o])){l=[];for(let c=0;c0&&n.push(l.join(a))}else t[o]===null||t[o]===""?n.push(`${s(o)}=`):typeof t[o]=="object"?(r=e.slice(),r.push(o),l=Fn(t[o],r),l!==""&&n.push(l)):typeof t[o]<"u"&&t[o]!==""?n.push(`${s(o)}=${i(t[o])}`):t[o]===""&&n.push(s(o))}),n.join(a)}function Gn(t){return typeof t=="object"&&t!==null&&t.constructor&&t.constructor===Object}function Ly(){for(var t=arguments.length,e=new Array(t),n=0;nr+r+s+s+i+i),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?n.slice(1).map(a=>parseInt(a,16)):null}function on(t,e,n){return`#${[t,e,n].map(r=>{const s=r.toString(16);return s.length===1?`0${s}`:s}).join("")}`}function gr(t,e,n){t/=255,e/=255,n/=255;const a=Math.max(t,e,n),r=Math.min(t,e,n),s=a-r;let i;s===0?i=0:a===t?i=(e-n)/s%6:a===e?i=(n-t)/s+2:a===n&&(i=(t-e)/s+4);const o=(r+a)/2,l=s===0?0:s/(1-Math.abs(2*o-1));return i<0&&(i=360/60+i),[i*60,l,o]}function na(t,e,n){const a=(1-Math.abs(2*n-1))*e,r=t/60,s=a*(1-Math.abs(r%2-1));let i;Number.isNaN(t)||typeof t>"u"?i=[0,0,0]:r<=1?i=[a,s,0]:r<=2?i=[s,a,0]:r<=3?i=[0,a,s]:r<=4?i=[0,s,a]:r<=5?i=[s,0,a]:r<=6&&(i=[a,0,s]);const o=n-a/2;return i.map(l=>Math.max(0,Math.min(255,Math.round(255*(l+o)))))}function cn(t,e,n){const a={h:t,s:0,l:0},r={h:t,s:e,b:n};return a.l=(2-r.s)*r.b/2,a.s=a.l&&a.l<1?r.s*r.b/(a.l<.5?a.l*2:2-a.l*2):a.s,[a.h,a.s,a.l]}function ba(t,e,n){const a={h:t,s:0,b:0},r={h:t,s:e,l:n},s=r.s*(r.l<.5?r.l:1-r.l);return a.b=r.l+s,a.s=r.l>0?2*s/a.b:a.s,[a.h,a.s,a.b]}const Xr=t=>{const e=gr(...t),n=[e[0],e[1],Math.max(0,e[2]-.08)],a=[e[0],e[1],Math.max(0,e[2]+.08)],r=on(...na(...n)),s=on(...na(...a));return{shade:r,tint:s}};function $s(){let t,e;for(var n=arguments.length,a=new Array(n),r=0;r{d.includes("surface-")&&(s[`${d}-rgb`]=rn(s[d]))}),Object.keys(i).forEach(d=>{d.includes("surface-")&&(i[`${d}-rgb`]=rn(i[d]))}),{ios:{"--f7-theme-color":"var(--f7-ios-primary)","--f7-theme-color-rgb":"var(--f7-ios-primary-rgb)","--f7-theme-color-shade":"var(--f7-ios-primary-shade)","--f7-theme-color-tint":"var(--f7-ios-primary-tint)"},md:{"--f7-theme-color":"var(--f7-md-primary)","--f7-theme-color-rgb":"var(--f7-md-primary-rgb)","--f7-theme-color-shade":"var(--f7-md-primary-shade)","--f7-theme-color-tint":"var(--f7-md-primary-tint)"},light:{"--f7-ios-primary":t,"--f7-ios-primary-shade":o.shade,"--f7-ios-primary-tint":o.tint,"--f7-ios-primary-rgb":e.join(", "),"--f7-md-primary-shade":l.shade,"--f7-md-primary-tint":l.tint,"--f7-md-primary-rgb":rn(s["--f7-md-primary"]).join(", "),...s},dark:{"--f7-md-primary-shade":c.shade,"--f7-md-primary-tint":c.tint,"--f7-md-primary-rgb":rn(i["--f7-md-primary"]).join(", "),...i}}}function Ct(t,e){Object.keys(e).forEach(n=>{Gn(e[n])&&Object.keys(e[n]).forEach(a=>{typeof e[n][a]=="function"&&(e[n][a]=e[n][a].bind(t))}),t[n]=e[n]})}function tc(){const t=[];for(var e=arguments.length,n=new Array(e),a=0;a{Array.isArray(r)?t.push(...tc(...r)):t.push(r)}),t}function Ry(t){t===void 0&&(t={});const e=i=>{let o="";return Object.keys(i).forEach(l=>{o+=`${l}:${i[l]};`}),o},n=$s(t.primary),a=[":root{",e(n.light),"--swiper-theme-color:var(--f7-theme-color);",...Object.keys(t).map(i=>`--f7-color-${i}: ${t[i]};`),"}",".dark{",e(n.dark),"}",".ios, .ios .dark{",e(n.ios),"}",".md, .md .dark{",e(n.md),"}"].join(""),r={};Object.keys(t).forEach(i=>{const o=t[i];r[i]=$s(o)});let s="";return Object.keys(t).forEach(i=>{const{light:o,dark:l,ios:c,md:d}=r[i],u=` --f7-ios-primary: #ffffff; --f7-ios-primary-shade: #ebebeb; --f7-ios-primary-tint: #ffffff; @@ -98,10 +98,10 @@ --f7-md-surface-3-rgb: 35, 35, 35; --f7-md-surface-4-rgb: 48, 48, 48; --f7-md-surface-5-rgb: 55, 55, 55; - `,f=i==="white"?u:i==="black"?p:e(o),h=i==="white"?u:i==="black"?p:e(l);s+=[`.color-${i} {`,f,"--swiper-theme-color: var(--f7-theme-color);","}",`.color-${i}.dark, .color-${i} .dark, .dark .color-${i} {`,h,"--swiper-theme-color: var(--f7-theme-color);","}",`.ios .color-${i}, .ios.color-${i}, .ios .dark .color-${i}, .ios .dark.color-${i} {`,e(c),"}",`.md .color-${i}, .md.color-${i}, .md .dark .color-${i}, .md .dark.color-${i} {`,e(d),"}",`.text-color-${i} {`,`--f7-theme-color-text-color: ${t[i]};`,"}",`.bg-color-${i} {`,`--f7-theme-color-bg-color: ${t[i]};`,"}",`.border-color-${i} {`,`--f7-theme-color-border-color: ${t[i]};`,"}",`.ripple-color-${i} {`,`--f7-theme-color-ripple-color: rgba(${o["--f7-ios-primary-rgb"]}, 0.3);`,"}"].join("")}),`${a}${s}`}const so=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Ct,cancelAnimationFrame:Dy,colorHexToRgb:rn,colorHsbToHsl:cn,colorHslToHsb:ba,colorHslToRgb:na,colorRgbToHex:on,colorRgbToHsl:gr,colorThemeCSSProperties:$s,colorThemeCSSStyles:Ry,deleteProps:Ze,eventNameToColonCase:ga,extend:W,flattenArray:tc,getTranslate:mr,id:Ir,iosPreloaderContent:Hn,isObject:Gn,mdPreloaderContent:Rn,merge:Ly,nextFrame:Mt,nextTick:lt,now:Ot,parseUrlQuery:La,requestAnimationFrame:ks,serializeObject:Fn,uniqueNumber:Ay},Symbol.toStringTag,{value:"Module"}));let Ur;function Hy(){const t=fe(),e=ye();return{touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!t.PointerEvent&&"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>=0,passiveListener:function(){let a=!1;try{const r=Object.defineProperty({},"passive",{get(){a=!0}});t.addEventListener("testPassiveListener",null,r)}catch{}return a}(),intersectionObserver:function(){return"IntersectionObserver"in t}()}}function Xe(){return Ur||(Ur=Hy()),Ur}let Gr;function Fy(t){let{userAgent:e}=t===void 0?{}:t;const n=Xe(),a=fe(),r=a.navigator.platform,s=e||a.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:!!a.cordova,electron:!1,capacitor:!!a.Capacitor,nwjs:!1},o=a.screen.width,l=a.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const u=s.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&s.match(/(iPhone\sOS|iOS|iPhone;\sCPU\sOS)\s([\d_]+)/),f=s.indexOf("MSIE ")>=0||s.indexOf("Trident/")>=0,h=s.indexOf("Edge/")>=0,m=s.indexOf("Gecko/")>=0&&s.indexOf("Firefox/")>=0,b=r==="Win32",w=s.toLowerCase().indexOf("electron")>=0,g=typeof nw<"u"&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.nw<"u";let v=r==="MacIntel";const y=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];!d&&v&&n.touch&&y.indexOf(`${o}x${l}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),v=!1),i.ie=f,i.edge=h,i.firefox=m,c&&(i.os="android",i.osVersion=c[2],i.android=!0,i.androidChrome=s.toLowerCase().indexOf("chrome")>=0),(d||p||u)&&(i.os="ios",i.ios=!0),p&&!u&&(i.osVersion=p[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&&s.indexOf("Version/")>=0&&i.osVersion.split(".")[0]==="10"&&(i.osVersion=s.toLowerCase().split("version/")[1].split(" ")[0]),i.webView=!!((p||d||u)&&(s.match(/.*AppleWebKit(?!.*Safari)/i)||a.navigator.standalone))||a.matchMedia&&a.matchMedia("(display-mode: standalone)").matches,i.webview=i.webView,i.standalone=i.webView,i.desktop=!(i.ios||i.android)||w||g,i.desktop&&(i.electron=w,i.nwjs=g,i.macos=v,i.windows=b,i.macos&&(i.os="macos"),i.windows&&(i.os="windows")),i.pixelRatio=a.devicePixelRatio||1;const E="(prefers-color-scheme: dark)",k="(prefers-color-scheme: light)";return i.prefersColorScheme=function(){let M;return a.matchMedia&&a.matchMedia(k).matches&&(M="light"),a.matchMedia&&a.matchMedia(E).matches&&(M="dark"),M},i}const zy=(()=>{const t=ye();try{return!!(t&&t.body&&t.body.getBoundingClientRect&&t.body.getBoundingClientRect().width>0)}catch{return!1}})();function Ie(t,e){return t===void 0&&(t={}),e===void 0&&(e=zy),(!Gr||e)&&(Gr=Fy(t)),Gr}class nc{constructor(e){e===void 0&&(e=[]);const n=this;n.eventsParents=e,n.eventsListeners={}}on(e,n,a){const r=this;if(typeof n!="function")return r;const s=a?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][s](n)}),r}once(e,n,a){const r=this;if(typeof n!="function")return r;function s(){r.off(e,s),s.f7proxy&&delete s.f7proxy;for(var i=arguments.length,o=new Array(i),l=0;l{typeof n>"u"?a.eventsListeners[r]=[]:a.eventsListeners[r]&&a.eventsListeners[r].forEach((s,i)=>{(s===n||s.f7proxy&&s.f7proxy===n)&&a.eventsListeners[r].splice(i,1)})}),a}emit(){const e=this;if(!e.eventsListeners)return e;let n,a,r,s;for(var i=arguments.length,o=new Array(i),l=0;lp.replace("local::","")),u=c.filter(p=>p.indexOf("local::")<0);return d.forEach(p=>{if(e.eventsListeners&&e.eventsListeners[p]){const f=[];e.eventsListeners[p].forEach(h=>{f.push(h)}),f.forEach(h=>{h.apply(r,a)})}}),s&&s.length>0&&s.forEach(p=>{p.emit(u,...a)}),e}}class Ue extends nc{constructor(e,n){e===void 0&&(e={}),n===void 0&&(n=[]),super(n);const a=this;a.params=e,a.params&&a.params.on&&Object.keys(a.params.on).forEach(r=>{a.on(r,a.params.on[r])})}useModuleParams(e,n){if(e.params){const a={};Object.keys(e.params).forEach(r=>{typeof n[r]>"u"||(a[r]=W({},n[r]))}),W(n,e.params),Object.keys(a).forEach(r=>{W(n[r],a[r])})}}useModulesParams(e){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const r=n.modules[a];r.params&&W(e,r.params)})}useModule(e,n){e===void 0&&(e=""),n===void 0&&(n={});const a=this;if(!a.modules)return;const r=typeof e=="string"?a.modules[e]:e;r&&(r.instance&&Object.keys(r.instance).forEach(s=>{const i=r.instance[s];typeof i=="function"?a[s]=i.bind(a):a[s]=i}),r.on&&a.on&&Object.keys(r.on).forEach(s=>{a.on(s,r.on[s])}),r.vnode&&(a.vnodeHooks||(a.vnodeHooks={}),Object.keys(r.vnode).forEach(s=>{Object.keys(r.vnode[s]).forEach(i=>{const o=r.vnode[s][i];a.vnodeHooks[i]||(a.vnodeHooks[i]={}),a.vnodeHooks[i][s]||(a.vnodeHooks[i][s]=[]),a.vnodeHooks[i][s].push(o.bind(a))})})),r.create&&r.create.bind(a)(n))}useModules(e){e===void 0&&(e={});const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const r=e[a]||{};n.useModule(a,r)})}static set components(e){const n=this;n.use&&n.use(e)}static installModule(e){const n=this;n.prototype.modules||(n.prototype.modules={});const a=e.name||`${Object.keys(n.prototype.modules).length}_${Ot()}`;if(n.prototype.modules[a]=e,e.proto&&Object.keys(e.proto).forEach(o=>{n.prototype[o]=e.proto[o]}),e.static&&Object.keys(e.static).forEach(o=>{n[o]=e.static[o]}),e.install){for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;in.installModule(i)),n;for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s{i[o]=function(l){l===void 0&&(l=e);const c=i.get(l);for(var d=arguments.length,u=new Array(d>1?d-1:0),p=1;p1&&o){const d=C(o).parents(".page");d.length&&l.each(u=>{const p=C(u);p.parents(d)[0]===d[0]&&(l=p)})}if(l.length>1&&(l=l.eq(l.length-1)),!l.length)return;let c=l[0].f7Modal;if(!c){const d=l.dataset();c=new n(a,{el:l,...d})}return c.open(i)},close(s,i,o){s===void 0&&(s=e);let l=C(s);if(!l.length)return;if(l.length>1){let d;if(o){const u=C(o);u.length&&(d=u.parents(l))}d&&d.length>0?l=d:l=l.eq(l.length-1)}let c=l[0].f7Modal;if(!c){const d=l.dataset();c=new n(a,{el:l,...d})}return c.close(i)}})}const io=[];function Ny(t){const e=this,n=fe(),a=ye();return new Promise((r,s)=>{const i=e.instance;let o,l,c;if(!t){s(new Error("Framework7: Lazy module must be specified"));return}function d(u){e.use(u),i&&(i.useModuleParams(u,i.params),i.useModule(u))}if(typeof t=="string"){const u=t.match(/([a-z0-9-]*)/i);if(t.indexOf(".")<0&&u&&u[0].length===t.length){if(!i||i&&!i.params.lazyModulesPath){s(new Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));return}o=`${i.params.lazyModulesPath}/${t}/${t}.lazy.js`}else o=t}else typeof t=="function"?c=t:l=t;if(c){const u=c(e,!1);if(!u){s(new Error("Framework7: Can't find Framework7 component in specified component function"));return}if(e.prototype.modules&&e.prototype.modules[u.name]){r();return}d(u),r()}if(l){const u=l;if(!u){s(new Error("Framework7: Can't find Framework7 component in specified component"));return}if(e.prototype.modules&&e.prototype.modules[u.name]){r();return}d(u),r()}if(o){if(io.indexOf(o)>=0){r();return}io.push(o);const u=new Promise((f,h)=>{fetch(o).then(m=>m.text()).then(m=>{const w=`f7_component_loader_callback_${Ir()}`,g=a.createElement("script");g.innerHTML=`window.${w} = function (Framework7, Framework7AutoInstallComponent) {return ${m.trim()}}`,C("head").append(g);const v=n[w];delete n[w],C(g).remove();const y=v(e,!1);if(!y){h(new Error(`Framework7: Can't find Framework7 component in ${o} file`));return}if(e.prototype.modules&&e.prototype.modules[y.name]){f();return}d(y),f()}).catch(m=>{h(m)})}),p=new Promise(f=>{fetch(o.replace(".lazy.js",i.rtl?".rtl.css":".css").replace(".js",i.rtl?".rtl.css":".css")).then(h=>h.text()).then(h=>{const m=a.createElement("style");m.innerHTML=h,C("head").append(m),f()}).catch(()=>{f()})});Promise.all([u,p]).then(()=>{r()}).catch(f=>{s(f)})}})}const T=function(t,e){const n=e||{};for(var a=arguments.length,r=new Array(a>2?a-2:0),s=2;sc[0]==="_"?n[c]?c.replace("_",""):"":`${c}="${n[c]}"`).filter(c=>!!c).join(" ");if(["path","img","circle","polygon","line","input"].indexOf(t)>=0)return`<${t} ${o} />`.trim();const l=i.filter(c=>!!c).map(c=>Array.isArray(c)?c.join(""):c).join("");return`<${t} ${o}>${l}`.trim()};class nt extends Ue{constructor(e){if(e===void 0&&(e={}),super(e),nt.instance&&typeof window<"u")throw new Error("Framework7 is already initialized and can't be initialized more than once");const n=Ie({userAgent:e.userAgent||void 0}),a=Xe(),r=W({},e),s=this;s.device=n,s.support=a;const i=fe(),o=ye();nt.instance=s;const l={el:"body",theme:"auto",routes:[],name:"Framework7",lazyModulesPath:null,initOnDeviceReady:!0,init:!0,darkMode:void 0,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0,userAgent:null,url:null,colors:{primary:"#007aff",red:"#ff3b30",green:"#4cd964",blue:"#2196f3",pink:"#ff2d55",yellow:"#ffcc00",orange:"#ff9500",purple:"#9c27b0",deeppurple:"#673ab7",lightblue:"#5ac8fa",teal:"#009688",lime:"#cddc39",deeporange:"#ff6b22",white:"#ffffff",black:"#000000"}};return s.useModulesParams(l),s.params=W(l,e),W(s,{name:s.params.name,routes:s.params.routes,theme:function(){return s.params.theme==="auto"?n.ios?"ios":"md":s.params.theme}(),passedParams:r,online:i.navigator.onLine,colors:s.params.colors,darkMode:s.params.darkMode}),e.store&&(s.params.store=e.store),s.$el&&s.$el[0]&&(s.$el[0].f7=s),s.useModules(),s.initStore(),s.params.init&&(n.cordova&&s.params.initOnDeviceReady?C(o).on("deviceready",()=>{s.init()}):s.init()),s}setColorTheme(e){if(!e)return;const n=this;n.colors.primary=e,n.setColors()}setColors(){const e=this,n=ye();e.colorsStyleEl||(e.colorsStyleEl=n.createElement("style"),n.head.prepend(e.colorsStyleEl)),e.colorsStyleEl.textContent=e.utils.colorThemeCSSStyles(e.colors)}mount(e){const n=this,a=fe(),r=ye(),s=C(e||n.params.el).eq(0);n.$el=s,n.$el&&n.$el[0]&&(n.el=n.$el[0],n.el.f7=n,n.rtl=s.css("direction")==="rtl");const i="(prefers-color-scheme: dark)",o="(prefers-color-scheme: light)";n.mq={},a.matchMedia&&(n.mq.dark=a.matchMedia(i),n.mq.light=a.matchMedia(o)),n.colorSchemeListener=function(c){let{matches:d,media:u}=c;if(!d)return;const p=r.querySelector("html");u===i?(p.classList.add("dark"),n.darkMode=!0,n.emit("darkModeChange",!0)):u===o&&(p.classList.remove("dark"),n.darkMode=!1,n.emit("darkModeChange",!1))},n.emit("mount")}initStore(){const e=this;typeof e.params.store<"u"&&e.params.store.__store?e.store=e.params.store:e.store=e.createStore(e.params.store)}enableAutoDarkMode(){const e=fe(),n=ye();if(!e.matchMedia)return;const a=this,r=n.querySelector("html");a.mq.dark&&a.mq.light&&(a.mq.dark.addEventListener("change",a.colorSchemeListener),a.mq.light.addEventListener("change",a.colorSchemeListener)),a.mq.dark&&a.mq.dark.matches?(r.classList.add("dark"),a.darkMode=!0,a.emit("darkModeChange",!0)):a.mq.light&&a.mq.light.matches&&(r.classList.remove("dark"),a.darkMode=!1,a.emit("darkModeChange",!1))}disableAutoDarkMode(){if(!fe().matchMedia)return;const n=this;n.mq.dark&&n.mq.dark.removeEventListener("change",n.colorSchemeListener),n.mq.light&&n.mq.light.removeEventListener("change",n.colorSchemeListener)}setDarkMode(e){const n=this;e==="auto"?n.enableAutoDarkMode():(n.disableAutoDarkMode(),C("html")[e?"addClass":"removeClass"]("dark"),n.darkMode=e)}initAppComponent(e){const n=this;n.router.componentLoader(n.params.component,n.params.componentUrl,{componentOptions:{el:n.$el[0]}},a=>{n.$el=C(a),n.$el[0].f7=n,n.$elComponent=a.f7Component,n.el=n.$el[0],e&&e()},()=>{})}init(e){const n=this;n.setColors(),n.mount(e);const a=()=>{if(n.initialized)return;n.$el.addClass("framework7-initializing"),n.rtl&&C("html").attr("dir","rtl"),typeof n.params.darkMode>"u"?n.darkMode=C("html").hasClass("dark"):n.setDarkMode(n.params.darkMode);const r=fe();r.addEventListener("offline",()=>{n.online=!1,n.emit("offline"),n.emit("connection",!1)}),r.addEventListener("online",()=>{n.online=!0,n.emit("online"),n.emit("connection",!0)}),n.$el.addClass("framework7-root"),C("html").removeClass("ios md").addClass(n.theme),n.params.iosTranslucentBars&&n.theme==="ios"&&C("html").addClass("ios-translucent-bars"),n.params.iosTranslucentModals&&n.theme==="ios"&&C("html").addClass("ios-translucent-modals"),Mt(()=>{n.$el.removeClass("framework7-initializing")}),n.initialized=!0,n.emit("init")};return n.params.component||n.params.componentUrl?n.initAppComponent(()=>{a()}):a(),n}loadModule(){return nt.loadModule(...arguments)}loadModules(){return nt.loadModules(...arguments)}getVnodeHooks(e,n){const a=this;return!a.vnodeHooks||!a.vnodeHooks[e]?[]:a.vnodeHooks[e][n]||[]}get $(){return C}static get Dom7(){return C}static get $(){return C}static get device(){return Ie()}static get support(){return Xe()}static get Class(){return Ue}static get Events(){return nc}}nt.$jsx=T;nt.ModalMethods=pn;nt.ConstructorMethods=et;nt.loadModule=Ny;nt.loadModules=function(e){return Promise.all(e.map(n=>nt.loadModule(n)))};const ac={name:"device",static:{getDevice:Ie},on:{init(){const t=ye(),e=Ie(),n=[],a=t.querySelector("html"),r=t.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');a&&(e.standalone&&e.ios&&r&&r.content==="black-translucent"&&n.push("device-full-viewport"),n.push(`device-pixel-ratio-${Math.floor(e.pixelRatio)}`),e.os&&!e.desktop?n.push(`device-${e.os}`):e.desktop&&(n.push("device-desktop"),e.os&&n.push(`device-${e.os}`)),e.cordova&&n.push("device-cordova"),e.capacitor&&n.push("device-capacitor"),n.forEach(s=>{a.classList.add(s)}))}}},rc={name:"support",static:{getSupport:Xe}},sc={name:"utils",proto:{utils:so},static:{utils:so}},ic={name:"resize",create(){const t=this;t.getSize=()=>{if(!t.el)return{width:0,height:0,left:0,top:0};const e=t.$el.offset(),[n,a,r,s]=[t.el.offsetWidth,t.el.offsetHeight,e.left,e.top];return t.width=n,t.height=a,t.left=r,t.top=s,{width:n,height:a,left:r,top:s}}},on:{init(){const t=this,e=fe();t.getSize(),e.addEventListener("resize",()=>{t.emit("resize")},!1),e.addEventListener("orientationchange",()=>{t.emit("orientationchange")})},orientationchange(){const t=ye();Ie().ipad&&(t.body.scrollLeft=0,setTimeout(()=>{t.body.scrollLeft=0},0))},resize(){this.getSize()}}};function Vy(){const t=this,e=Ie(),n=Xe(),a=fe(),r=ye(),s=t.params.touch,i=s[`${t.theme}TouchRipple`];e.ios&&e.webView&&a.addEventListener("touchstart",()=>{});let o,l,c,d,u,p,f,h,m,b,w,g;function v(j){const Q=C(j),ae=Q.parents(s.activeStateElements);if(Q.closest(".no-active-state").length)return null;let Z;if(Q.is(s.activeStateElements)&&(Z=Q),ae.length>0&&(Z=Z?Z.add(ae):ae),Z&&Z.length>1){const te=[];let he;for(let re=0;re0}function E(){h&&h.addClass("active-state")}function k(){h&&(h.removeClass("active-state"),h=null)}function $(j){const Q=s.touchRippleElements,ae=C(j);if(ae.is(Q))return ae.hasClass("no-ripple")?!1:ae;if(ae.parents(Q).length>0){const Z=ae.parents(Q).eq(0);return Z.hasClass("no-ripple")?!1:Z}return!1}function M(j,Q,ae){j&&(b=t.touchRipple.create(t,j,Q,ae))}function x(){b&&(b.remove(),b=void 0,w=void 0)}function F(j){if(w=$(j),!w||w.length===0){w=void 0;return}y(w)?(clearTimeout(g),g=setTimeout(()=>{x(),M(w,o,l)},80)):(x(),M(w,o,l))}function S(){clearTimeout(g),x()}function I(){!b&&w&&!d?(clearTimeout(g),M(w,o,l),setTimeout(x,0)):x()}function B(j){const Q=v(j.target);Q&&(Q.addClass("active-state"),"which"in j&&j.which===3&&setTimeout(()=>{C(".active-state").removeClass("active-state")},0)),i&&(o=j.pageX,l=j.pageY,F(j.target,j.pageX,j.pageY))}function P(){s.activeStateOnMouseMove||C(".active-state").removeClass("active-state"),i&&S()}function L(){C(".active-state").removeClass("active-state"),i&&I()}function V(){c=null,clearTimeout(m),clearTimeout(p),s.activeState&&k(),i&&I()}let H,D=!1,O=null;const _=".dialog-button, .actions-button";let N=!1,G=null;function ee(j){return j.isTrusted?(d=!1,u=!1,f=!1,H=void 0,j.targetTouches.length>1?(h&&k(),!0):(j.touches.length>1&&h&&k(),s.tapHold&&(p&&clearTimeout(p),p=setTimeout(()=>{j&&j.touches&&j.touches.length>1||(u=!0,j.preventDefault(),f=!0,C(j.target).trigger("taphold",j),t.emit("taphold",j))},s.tapHoldDelay)),c=j.target,o=j.targetTouches[0].pageX,l=j.targetTouches[0].pageY,D=j.target.closest(".segmented-strong .button-active, .segmented-strong .tab-link-active"),N=t.theme==="ios"&&j.target.closest(_),D&&(O=D.closest(".segmented-strong")),s.activeState&&(h=v(c),h&&!y(h)?E():h&&(m=setTimeout(E,80))),i&&F(c),!0)):!0}function X(j){if(!j.isTrusted)return;let Q,ae,Z=!0;j.type==="touchmove"&&(Q=j.targetTouches[0],ae=s.touchClicksDistanceThreshold);const te=j.targetTouches[0].pageX,he=j.targetTouches[0].pageY;if(typeof H>"u"&&(H=!!(H||Math.abs(he-l)>Math.abs(te-o))),(N||!H&&D&&O)&&j.cancelable&&j.preventDefault(),!H&&D&&O){const de=r.elementFromPoint(j.targetTouches[0].clientX,j.targetTouches[0].clientY).closest(".segmented-strong .button:not(.button-active):not(.tab-link-active)");de&&O.contains(de)&&(C(de).trigger("click","f7Segmented"),c=de)}if(ae&&Q){const re=Q.pageX,de=Q.pageY;(Math.abs(re-o)>ae||Math.abs(de-l)>ae)&&(d=!0)}else d=!0;d&&(f=!0,N&&(G=r.elementFromPoint(j.targetTouches[0].clientX,j.targetTouches[0].clientY).closest(_),G&&h&&h[0]===G?Z=!1:G&&setTimeout(()=>{h=v(G),E()})),s.tapHold&&clearTimeout(p),s.activeState&&Z&&(clearTimeout(m),k()),i&&S())}function se(j){return j.isTrusted?(H=void 0,D=!1,O=null,N=!1,clearTimeout(m),clearTimeout(p),G&&(C(G).trigger("click","f7TouchMoveActivable"),G=null),r.activeElement===j.target?(s.activeState&&k(),i&&I(),!0):(s.activeState&&(E(),setTimeout(k,0)),i&&I(),s.tapHoldPreventClicks&&u||f?(j.cancelable&&j.preventDefault(),f=!0,!1):!0)):!0}function ne(j){const Q=j&&j.detail&&j.detail==="f7Overswipe",ae=j&&j.detail&&j.detail==="f7Segmented",Z=j&&j.detail&&j.detail==="f7TouchMoveActivable";let te=f;return c&&j.target!==c?Q||ae||Z?te=!1:te=!0:Z&&(te=!1),s.tapHold&&s.tapHoldPreventClicks&&u&&(te=!0),te&&(j.stopImmediatePropagation(),j.stopPropagation(),j.preventDefault()),s.tapHold&&(p=setTimeout(()=>{u=!1},e.ios||e.androidChrome?100:400)),f=!1,c=null,!te}function ie(j,Q){t.emit({events:j,data:[Q]})}function le(j){ie("click",j)}function be(j){ie("touchstart touchstart:active",j)}function oe(j){ie("touchmove touchmove:active",j)}function ce(j){ie("touchend touchend:active",j)}function pe(j){ie("touchstart:passive",j)}function R(j){ie("touchmove:passive",j)}function A(j){ie("touchend:passive",j)}const z=n.passiveListener?{passive:!0}:!1,q=n.passiveListener?{passive:!0,capture:!0}:!0,U=n.passiveListener?{passive:!1}:!1,K=n.passiveListener?{passive:!1,capture:!0}:!0;r.addEventListener("click",le,!0),n.passiveListener?(r.addEventListener(t.touchEvents.start,be,K),r.addEventListener(t.touchEvents.move,oe,U),r.addEventListener(t.touchEvents.end,ce,U),r.addEventListener(t.touchEvents.start,pe,q),r.addEventListener(t.touchEvents.move,R,z),r.addEventListener(t.touchEvents.end,A,z)):(r.addEventListener(t.touchEvents.start,j=>{be(j),pe(j)},!0),r.addEventListener(t.touchEvents.move,j=>{oe(j),R(j)},!1),r.addEventListener(t.touchEvents.end,j=>{ce(j),A(j)},!1)),n.touch?(t.on("click",ne),t.on("touchstart",ee),t.on("touchmove",X),t.on("touchend",se),r.addEventListener("touchcancel",V,{passive:!0})):s.activeState&&(t.on("touchstart",B),t.on("touchmove",P),t.on("touchend",L),r.addEventListener("pointercancel",L,{passive:!0})),r.addEventListener("contextmenu",j=>{s.disableContextMenu&&(e.ios||e.android||e.cordova||a.Capacitor&&a.Capacitor.isNative)&&j.preventDefault(),i&&(h&&k(),I())})}const oc={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, .link, .item-link, .accordion-item-toggle",activeStateOnMouseMove:!1,mdTouchRipple:!0,iosTouchRipple:!1,touchRippleElements:".ripple, .link, .item-link, .list label.item-content, .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, .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 t=this,e=Xe();W(t,{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:Vy}};function _y(t){for(var e=[],n=0;n=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===95){r+=t[s++];continue}break}if(!r)throw new TypeError("Missing parameter name at ".concat(n));e.push({type:"NAME",index:n,value:r}),n=s;continue}if(a==="("){var o=1,l="",s=n+1;if(t[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s)?(?!\?)/g,a=0,r=n.exec(t.source);r;)e.push({name:r[1]||a++,prefix:"",suffix:"",modifier:"",pattern:""}),r=n.exec(t.source);return t}function Yy(t,e,n){var a=t.map(function(r){return cc(r,e,n).source});return new RegExp("(?:".concat(a.join("|"),")"),si(n))}function Xy(t,e,n){return Uy(lc(t,n),e,n)}function Uy(t,e,n){n===void 0&&(n={});for(var a=n.strict,r=a===void 0?!1:a,s=n.start,i=s===void 0?!0:s,o=n.end,l=o===void 0?!0:o,c=n.encode,d=c===void 0?function(F){return F}:c,u=n.delimiter,p=u===void 0?"/#?":u,f=n.endsWith,h=f===void 0?"":f,m="[".concat(Yn(h),"]|$"),b="[".concat(Yn(p),"]"),w=i?"^":"",g=0,v=t;g-1:M===void 0;r||(w+="(?:".concat(b,"(?=").concat(m,"))?")),x||(w+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(w,si(n))}function cc(t,e,n){return t instanceof RegExp?Wy(t,e):Array.isArray(t)?Yy(t,e,n):Xy(t,e,n)}const ve={queue:[],clearQueue(){if(ve.queue.length===0)return;ve.queue.shift()()},routerQueue:[],clearRouterQueue(){if(ve.routerQueue.length===0)return;const t=ve.routerQueue.pop(),{router:e,stateUrl:n,action:a}=t;let r=e.params.animate;e.params.browserHistoryAnimate===!1&&(r=!1),a==="back"&&e.back({animate:r,browserHistory:!1}),a==="load"&&e.navigate(n,{animate:r,browserHistory:!1})},handle(t){if(ve.blockPopstate)return;const e=this;let n=t.state;ve.previousState=ve.state,ve.state=n,ve.allowChange=!0,ve.clearQueue(),n=ve.state,n||(n={}),e.views.forEach(a=>{const r=a.router;let s=n[a.id];if(!s&&a.params.browserHistory&&(s={url:a.router.history[0]}),!s)return;const i=s.url||void 0;let o=r.params.animate;r.params.browserHistoryAnimate===!1&&(o=!1),i!==r.url&&(r.history.indexOf(i)>=0?r.allowPageChange?r.back({animate:o,browserHistory:!1}):ve.routerQueue.push({action:"back",router:r}):r.allowPageChange?r.navigate(i,{animate:o,browserHistory:!1}):ve.routerQueue.unshift({action:"load",stateUrl:i,router:r}))})},initViewState(t,e){const n=fe(),a=W({},ve.state||{},{[t]:e});ve.state=a,n.history.replaceState(a,"")},push(t,e,n){const a=fe(),r=ye();if(n.substr(-3)==="#!/"&&(n=n.replace("#!/",""),n===""&&(n=r.location.href,n.includes("#!/")&&(n=r.location.href.split("#!/")[0]))),!ve.allowChange){ve.queue.push(()=>{ve.push(t,e,n)});return}ve.previousState=ve.state;const s=W({},ve.previousState||{},{[t]:e});ve.state=s,a.history.pushState(s,"",n)},replace(t,e,n){const a=fe();if(n.substr(-3)==="#!/"&&(n=n.replace("#!/","")),!ve.allowChange){ve.queue.push(()=>{ve.replace(t,e,n)});return}ve.previousState=ve.state;const r=W({},ve.previousState||{},{[t]:e});ve.state=r,a.history.replaceState(r,"",n)},go(t){const e=fe();ve.allowChange=!1,e.history.go(t)},back(){const t=fe();ve.allowChange=!1,t.history.back()},allowChange:!0,previousState:{},state:{},blockPopstate:!0,init(t){const e=fe(),n=ye();ve.state=e.history.state,C(e).on("load",()=>{setTimeout(()=>{ve.blockPopstate=!1},0)}),n.readyState&&n.readyState==="complete"&&(ve.blockPopstate=!1),C(e).on("popstate",ve.handle.bind(t))}};function Gy(t){const e=t,{$el:n,$navbarsEl:a,app:r,params:s}=e,i=Xe(),o=Ie();let l=!1,c=!1;const d={};let u,p=[],f=[],h,m,b=!0,w,g=[],v=[],y,E,k,$;const M=s[`${r.theme}SwipeBackAnimateShadow`],x=s[`${r.theme}SwipeBackAnimateOpacity`],F=s[`${r.theme}SwipeBackActiveArea`],S=s[`${r.theme}SwipeBackThreshold`],I=r.rtl?"right center":"left center",B=r.rtl?"calc(100% - var(--f7-navbar-large-title-padding-left) - var(--f7-safe-area-left)) center":"calc(var(--f7-navbar-large-title-padding-left) + var(--f7-safe-area-left)) center";function P(){const N=[],G=r.rtl?-1:1,ee=g.hasClass("navbar-transparent")&&!g.hasClass("navbar-large")&&!g.hasClass("navbar-transparent-visible"),X=g.hasClass("navbar-large"),se=g.hasClass("navbar-large-collapsed"),ne=g.hasClass("navbar-large-transparent")||g.hasClass("navbar-large")&&g.hasClass("navbar-transparent"),ie=v.hasClass("navbar-transparent")&&!v.hasClass("navbar-large")&&!v.hasClass("navbar-transparent-visible"),le=v.hasClass("navbar-large"),be=v.hasClass("navbar-large-collapsed"),oe=v.hasClass("navbar-large-transparent")||v.hasClass("navbar-large")&&v.hasClass("navbar-transparent"),ce=X&&!se,pe=le&&!be,R=g.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg"),A=v.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg");let z,q;return s.iosAnimateNavbarBackIcon&&(g.hasClass("sliding")||g.find(".navbar-inner.sliding").length?z=g.find(".left").find(".back .icon + span").eq(0):z=g.find(".left.sliding").find(".back .icon + span").eq(0),v.hasClass("sliding")||v.find(".navbar-inner.sliding").length?q=v.find(".left").find(".back .icon + span").eq(0):q=v.find(".left.sliding").find(".back .icon + span").eq(0),z.length&&A.each(U=>{C(U).hasClass("title")&&(U.f7NavbarLeftOffset+=z.prev(".icon")[0].offsetWidth)})),R.each(U=>{const K=C(U),j=K.hasClass("subnavbar"),Q=K.hasClass("left"),ae=K.hasClass("title"),Z=K.hasClass("navbar-bg");if((ae||Z)&&ee||!ce&&K.hasClass(".title-large"))return;const te={el:U};if(ce){if(ae)return;if(K.hasClass("title-large")){N.indexOf(te)<0&&N.push(te),te.overflow="visible",K.find(".title-large-text").each(re=>{N.push({el:re,transform:de=>`translateX(${de*100*G}%)`})});return}}if(pe&&(ce||K.hasClass("title-large")&&(N.indexOf(te)<0&&N.push(te),te.opacity=0),Q)){N.indexOf(te)<0&&N.push(te),te.opacity=re=>1-re**.33,K.find(".back span").each(re=>{N.push({el:re,"transform-origin":I,transform:de=>`translateX(calc(${de} * (var(--f7-navbarTitleLargeOffset) - var(--f7-navbarLeftTextOffset)))) translateY(calc(${de} * (var(--f7-navbar-large-title-height) - var(--f7-navbar-large-title-padding-vertical) / 2))) scale(${1+1*de})`})});return}if(Z){N.indexOf(te)<0&&N.push(te),!ce&&!pe&&(se?(ne&&(te.className="ios-swipeback-navbar-bg-large"),te.transform=re=>`translateX(${100*re*G}%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))`):te.transform=re=>`translateX(${100*re*G}%)`),!ce&&pe&&(te.className="ios-swipeback-navbar-bg-large",te.transform=re=>`translateX(${100*re*G}%) translateY(calc(-1 * ${1-re} * var(--f7-navbar-large-title-height)))`),ce&&pe&&(te.transform=re=>`translateX(${100*re*G}%)`),ce&&!pe&&(te.transform=re=>`translateX(${100*re*G}%) translateY(calc(-${re} * var(--f7-navbar-large-title-height)))`);return}if(K.hasClass("title-large"))return;const he=K.hasClass("sliding")||K.parents(".navbar-inner.sliding").length;if(N.indexOf(te)<0&&N.push(te),(!j||j&&!he)&&(te.opacity=re=>1-re**.33),he){let re=te;if(Q&&z.length&&s.iosAnimateNavbarBackIcon){const de={el:z[0]};re=de,N.push(de)}re.transform=de=>{let Ee=de*re.el.f7NavbarRightOffset;return o.pixelRatio===1&&(Ee=Math.round(Ee)),j&&X?`translate3d(${Ee}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`:`translate3d(${Ee}px,0,0)`}}}),A.each(U=>{const K=C(U),j=K.hasClass("subnavbar"),Q=K.hasClass("left"),ae=K.hasClass("title"),Z=K.hasClass("navbar-bg");if((ae||Z)&&ie)return;const te={el:U};if(pe){if(ae)return;if(N.indexOf(te)<0&&N.push(te),K.hasClass("title-large")){te.opacity=1,te.overflow="visible",K.find(".title-large-text").each(re=>{N.push({el:re,"transform-origin":B,opacity:de=>de**3,transform:de=>`translateX(calc(${1-de} * (var(--f7-navbarLeftTextOffset) - var(--f7-navbarTitleLargeOffset)))) translateY(calc(${de-1} * var(--f7-navbar-large-title-height) + ${1-de} * var(--f7-navbar-large-title-padding-vertical))) scale(${.5+de*.5})`})});return}}if(Z){N.indexOf(te)<0&&N.push(te),!ce&&!pe&&(be?(oe&&(te.className="ios-swipeback-navbar-bg-large"),te.transform=re=>`translateX(${(-100+100*re)*G}%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))`):te.transform=re=>`translateX(${(-100+100*re)*G}%)`),!ce&&pe&&(te.transform=re=>`translateX(${(-100+100*re)*G}%) translateY(calc(-1 * ${1-re} * var(--f7-navbar-large-title-height)))`),ce&&!pe&&(te.className="ios-swipeback-navbar-bg-large",te.transform=re=>`translateX(${(-100+100*re)*G}%) translateY(calc(-${re} * var(--f7-navbar-large-title-height)))`),ce&&pe&&(te.transform=re=>`translateX(${(-100+100*re)*G}%)`);return}if(K.hasClass("title-large"))return;const he=K.hasClass("sliding")||v.children(".navbar-inner.sliding").length;if(N.indexOf(te)<0&&N.push(te),(!j||j&&!he)&&(te.opacity=re=>re**3),he){let re=te;if(Q&&q.length&&s.iosAnimateNavbarBackIcon){const de={el:q[0]};re=de,N.push(de)}re.transform=de=>{let Ee=re.el.f7NavbarLeftOffset*(1-de);return o.pixelRatio===1&&(Ee=Math.round(Ee)),j&&le?`translate3d(${Ee}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`:`translate3d(${Ee}px,0,0)`}}}),N}function L(N){let{progress:G,reset:ee,transition:X,reflow:se}=N===void 0?{}:N;const ne=["overflow","transform","transform-origin","opacity"];if(X===!0||X===!1)for(let ie=0;ie<$.length;ie+=1){const le=$[ie];le&&le.el&&(X===!0&&le.el.classList.add("navbar-page-transitioning"),X===!1&&le.el.classList.remove("navbar-page-transitioning"))}se&&$.length&&$[0]&&$[0].el&&($[0].el._clientLeft=$[0].el.clientLeft);for(let ie=0;ie<$.length;ie+=1){const le=$[ie];if(le&&le.el){le.className&&!le.classNameSet&&!ee&&(le.el.classList.add(le.className),le.classNameSet=!0),le.className&&ee&&le.el.classList.remove(le.className);for(let be=0;be0||C(N.target).closest(".page-master, .page-master-detail").length>0&&s.masterDetailBreakpoint>0&&r.width>=s.masterDetailBreakpoint||(c=!1,l=!0,u=void 0,d.x=N.type==="touchstart"?N.targetTouches[0].pageX:N.pageX,d.y=N.type==="touchstart"?N.targetTouches[0].pageY:N.pageY,w=Ot(),y=e.dynamicNavbar)}function H(N){if(!N.isTrusted||!l)return;const G=N.type==="touchmove"?N.targetTouches[0].pageX:N.pageX,ee=N.type==="touchmove"?N.targetTouches[0].pageY:N.pageY;if(typeof u>"u"&&(u=!!(u||Math.abs(ee-d.y)>Math.abs(G-d.x))||Gd.x&&r.rtl),u||N.f7PreventSwipeBack||r.preventSwipeBack){l=!1;return}if(!c){let be=!1;const oe=C(N.target),ce=oe.closest(".swipeout");ce.length>0&&(!r.rtl&&ce.find(".swipeout-actions-left").length>0&&(be=!0),r.rtl&&ce.find(".swipeout-actions-right").length>0&&(be=!0)),p=oe.closest(".page"),(p.hasClass("no-swipeback")||oe.closest(".no-swipeback, .card-opened").length>0)&&(be=!0),f=n.find(".page-previous"),f.length>1&&(f=f.eq(f.length-1));let pe=d.x-n.offset().left>F;if(h=n.width(),r.rtl?pe=d.xF,pe&&(be=!0),(f.length===0||p.length===0)&&(be=!0),be){l=!1;return}M&&(E=p.find(".page-shadow-effect"),E.length===0&&(E=C('
'),p.append(E))),x&&(k=f.find(".page-opacity-effect"),k.length===0&&(k=C('
'),f.append(k))),y&&(g=a.find(".navbar-current"),v=a.find(".navbar-previous"),v.length>1&&(v=v.eq(v.length-1)),$=P()),C(".sheet.modal-in").length>0&&r.sheet&&r.sheet.close(C(".sheet.modal-in"))}N.f7PreventSwipePanel=!0,c=!0,r.preventSwipePanelBySwipeBack=!0,N.preventDefault();const X=r.rtl?-1:1;m=(G-d.x-S)*X,m<0&&(m=0);const se=Math.min(Math.max(m/h,0),1),ne={percentage:se,progress:se,currentPageEl:p[0],previousPageEl:f[0],currentNavbarEl:g[0],previousNavbarEl:v[0]};n.trigger("swipeback:move",ne),e.emit("swipebackMove",ne);let ie=m*X,le=(m/5-h/5)*X;r.rtl?(ie=Math.max(ie,-h),le=Math.max(le,0)):(ie=Math.min(ie,h),le=Math.min(le,0)),o.pixelRatio===1&&(ie=Math.round(ie),le=Math.round(le)),e.swipeBackActive=!0,C([p[0],f[0]]).addClass("page-swipeback-active"),p.transform(`translate3d(${ie}px,0,0)`),M&&(E[0].style.opacity=1-1*se),r.theme==="ios"&&f.transform(`translate3d(${le}px,0,0)`),x&&(k[0].style.opacity=1-1*se),y&&L({progress:se})}function D(N){if(!N.isTrusted)return;if(r.preventSwipePanelBySwipeBack=!1,!l||!c){l=!1,c=!1;return}l=!1,c=!1,e.swipeBackActive=!1;const G=C([p[0],f[0]]);if(G.removeClass("page-swipeback-active"),m===0){G.transform(""),E&&E.length>0&&E.remove(),k&&k.length>0&&k.remove(),y&&L({reset:!0});return}const ee=Ot()-w;let X=!1;(ee<300&&m>10||ee>=300&&m>h/2)&&(p.removeClass("page-current").addClass(`page-next${r.theme!=="ios"?" page-next-on-right":""}`),f.removeClass("page-previous").addClass("page-current").removeAttr("aria-hidden"),E&&(E[0].style.opacity=""),k&&(k[0].style.opacity=""),y&&(e.setNavbarPosition(g,"next"),e.setNavbarPosition(v,"current",!1)),X=!0),G.addClass("page-transitioning page-transitioning-swipeback"),o.ios&&(p[0]._clientLeft=p[0].clientLeft),G.transform(""),y&&L({progress:X?1:0,transition:!0,reflow:!!o.ios}),b=!1,e.allowPageChange=!1;const se={currentPageEl:p[0],previousPageEl:f[0],currentNavbarEl:g[0],previousNavbarEl:v[0]};X?(e.currentRoute=f[0].f7Page.route,e.currentPage=f[0],e.pageCallback("beforeOut",p,g,"current","next",{route:p[0].f7Page.route,swipeBack:!0}),e.pageCallback("beforeIn",f,v,"previous","current",{route:f[0].f7Page.route,swipeBack:!0},p[0]),n.trigger("swipeback:beforechange",se),e.emit("swipebackBeforeChange",se)):(n.trigger("swipeback:beforereset",se),e.emit("swipebackBeforeReset",se)),p.transitionEnd(()=>{G.removeClass("page-transitioning page-transitioning-swipeback"),y&&L({reset:!0,transition:!1}),b=!0,e.allowPageChange=!0,X?(e.history.length===1&&e.history.unshift(e.url),e.history.pop(),e.saveHistory(),s.browserHistory&&ve.back(),e.pageCallback("afterOut",p,g,"current","next",{route:p[0].f7Page.route,swipeBack:!0}),e.pageCallback("afterIn",f,v,"previous","current",{route:f[0].f7Page.route,swipeBack:!0}),e.pageCallback("beforeRemove",p,g,"next",{swipeBack:!0}),e.removePage(p),y&&e.removeNavbar(g),n.trigger("swipeback:afterchange",se),e.emit("swipebackAfterChange",se),e.emit("routeChanged",e.currentRoute,e.previousRoute,e),s.preloadPreviousPage&&e.back(e.history[e.history.length-2],{preload:!0})):(n.trigger("swipeback:afterreset",se),e.emit("swipebackAfterReset",se)),E&&E.length>0&&E.remove(),k&&k.length>0&&k.remove()})}function O(){const N=r.touchEvents.start==="touchstart"&&i.passiveListener?{passive:!0,capture:!1}:!1;n.on(r.touchEvents.start,V,N),r.on("touchmove:active",H),r.on("touchend:passive",D)}function _(){const N=r.touchEvents.start==="touchstart"&&i.passiveListener?{passive:!0,capture:!1}:!1;n.off(r.touchEvents.start,V,N),r.off("touchmove:active",H),r.off("touchend:passive",D)}O(),e.on("routerDestroy",_)}function dc(t,e,n){const a=this,r=e.route.redirect,s=t==="forward"?"navigate":"back";n.initial&&a.params.browserHistory&&(n.replaceState=!0,n.history=!0);function i(l,c){c===void 0&&(c={}),a.allowPageChange=!0,a[s](l,W({},n,c))}function o(){a.allowPageChange=!0}if(typeof r=="function"){a.allowPageChange=!1;const l=r.call(a,{router:a,to:e,resolve:i,reject:o,direction:t,app:a.app});return l&&typeof l=="string"?(a.allowPageChange=!0,a[s](l,n)):a}return a[s](r,n)}function oo(t,e,n,a,r,s,i,o){const l=[];Array.isArray(n)?l.push(...n):n&&typeof n=="function"&&l.push(n),e&&(Array.isArray(e)?l.push(...e):l.push(e));function c(){if(l.length===0){s();return}l.shift().call(t,{router:t,to:a,from:r,resolve(){c()},reject(){i()},direction:o,app:t.app})}c()}function xs(t,e,n,a,r){const s=this;function i(){t&&t.route&&(s.params.routesBeforeEnter||t.route.beforeEnter)?(s.allowPageChange=!1,oo(s,s.params.routesBeforeEnter,t.route.beforeEnter,t,e,()=>{s.allowPageChange=!0,n()},()=>{a()},r)):n()}function o(){e&&e.route&&(s.params.routesBeforeLeave||e.route.beforeLeave)?(s.allowPageChange=!1,oo(s,s.params.routesBeforeLeave,e.route.beforeLeave,t,e,()=>{s.allowPageChange=!0,i()},()=>{a()},r)):i()}o()}function la(t,e){if(!t.view)throw new Error(`Framework7: it is not allowed to use router methods on global app router. Use router methods only on related View, e.g. app.views.main.router.${e}(...)`)}function Or(t,e,n,a){function r(i){i.then(o=>{n({component:o.default||o._default||o})}).catch(o=>{throw a(),new Error(o,{cause:o})})}if(e instanceof Promise){r(e);return}const s=e.call(t);s instanceof Promise?r(s):n({component:s})}function Ky(t){t===void 0&&(t={});const e=this;return la(e,"refreshPage"),e.navigate(e.currentRoute.url,{ignoreCache:!0,reloadCurrent:!0,props:t})}function pa(t,e,n){n===void 0&&(n={});const a=ye(),r=C(e),s=t.app,i=t.view,o=W(!1,{animate:t.params.animate,browserHistory:!0,replaceState:!1,history:!0,reloadCurrent:t.params.reloadPages,reloadPrevious:!1,reloadAll:!1,clearPreviousHistory:!1,reloadDetail:t.params.reloadDetail,on:{}},n),l=t.params.masterDetailBreakpoint>0,c=l&&o.route&&o.route.route&&(o.route.route.master===!0||typeof o.route.route.master=="function"&&o.route.route.master(s,t));let d,u,p=0,f=t.currentRoute.modal,h;if(f||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(D=>{t.currentRoute&&t.currentRoute.route&&t.currentRoute.route[D]&&(f=!0,h=D)}),f){const D=t.currentRoute.modal||t.currentRoute.route.modalInstance||s[h].get(),O=t.history[t.history.length-2];let _=t.findMatchingRoute(O);!_&&O&&(_={url:O,path:O.split("?")[0],query:La(O),route:{path:O.split("?")[0],url:O}}),t.modalRemove(D)}const m=t.dynamicNavbar,b=t.$el,w=r,g=o.reloadPrevious||o.reloadCurrent||o.reloadAll;let v,y,E,k;if(t.allowPageChange=!1,w.length===0)return t.allowPageChange=!0,t;w.length&&t.removeThemeElements(w),m&&(E=w.children(".navbar"),y=t.$navbarsEl,E.length===0&&w[0]&&w[0].f7Page&&(E=w[0].f7Page.$navbarEl)),o.route&&o.route.route&&o.route.route.keepAlive&&!o.route.route.keepAliveData&&(o.route.route.keepAliveData={pageEl:r[0]});const $=b.children(".page").filter(D=>D!==w[0]);let M;if(m&&(M=y.children(".navbar").filter(D=>D!==E[0])),o.reloadPrevious&&$.length<2)return t.allowPageChange=!0,t;let x,F,S;if(l&&!o.reloadAll){for(let D=0;D<$.length;D+=1)if(!d&&$[D].classList.contains("page-master")){d=$[D];continue}if(x=!c&&d,x&&d){for(let D=0;D<$.length;D+=1)if($[D].classList.contains("page-master-detail")){u=$[D];continue}}F=x&&o.reloadDetail&&s.width>=t.params.masterDetailBreakpoint&&d}x&&(S=!u||F||o.reloadAll||o.reloadCurrent);let I="next";if(o.reloadCurrent||o.reloadAll||F?I="current":o.reloadPrevious&&(I="previous"),w.removeClass("page-previous page-current page-next").addClass(`page-${I}${c?" page-master":""}${x?" page-master-detail":""}${S?" page-master-detail-root":""}`).trigger("page:unstack").trigger("page:position",{position:I}),t.emit("pageUnstack",w[0]),t.emit("pagePosition",w[0],I),(c||x)&&(w.trigger("page:role",{role:c?"master":"detail",root:!!S}),t.emit("pageRole",w[0],{role:c?"master":"detail",detailRoot:!!S})),m&&E.length&&(E.removeClass("navbar-previous navbar-current navbar-next").addClass(`navbar-${I}${c?" navbar-master":""}${x?" navbar-master-detail":""}${S?" navbar-master-detail-root":""}`),E.trigger("navbar:position",{position:I}),t.emit("navbarPosition",E[0],I),(c||x)&&t.emit("navbarRole",E[0],{role:c?"master":"detail",detailRoot:!!S})),o.reloadCurrent||F)F?(v=$.filter(D=>!D.classList.contains("page-master")),m&&(k=C(v.map(D=>s.navbar.getElByPage(D)))),v.length>1&&d&&(p=v.length-1,C(d).removeClass("page-master-stacked").trigger("page:masterunstack"),t.emit("pageMasterUnstack",d),m&&(C(s.navbar.getElByPage(d)).removeClass("navbar-master-stacked"),t.emit("navbarMasterUnstack",s.navbar.getElByPage(d))))):(v=$.eq($.length-1),m&&(k=C(s.navbar.getElByPage(v))));else if(o.reloadPrevious)v=$.eq($.length-2),m&&(k=C(s.navbar.getElByPage(v)));else if(o.reloadAll)v=$.filter(D=>D!==w[0]),m&&(k=M.filter(D=>D!==E[0]));else{let D=[],O=[];if($.length>1){let _=0;for(_=0;_<$.length-1;_+=1){if(d&&$[_]===d){$.eq(_).addClass("page-master-stacked"),$.eq(_).trigger("page:masterstack"),t.emit("pageMasterStack",$[_]),m&&(C(s.navbar.getElByPage(d)).addClass("navbar-master-stacked"),t.emit("navbarMasterStack",s.navbar.getElByPage(d)));continue}const N=s.navbar.getElByPage($.eq(_));D.push($[_]),t.pageCallback("beforeRemove",$[_],M&&M[_],"previous",void 0,o),t.removePage($[_]),m&&N&&(O.push(N),t.removeNavbar(N))}}v=b.children(".page").filter(_=>_!==w[0]&&D.indexOf(_)<0),m&&(k=y.children(".navbar").filter(_=>_!==E[0]&&O.indexOf(O)<0)),D=[],O=[]}if(x&&!o.reloadAll&&((v.length>1||F)&&(v=v.filter(D=>!D.classList.contains("page-master"))),k&&(k.length>1||F)&&(k=k.filter(D=>!D.classList.contains("navbar-master")))),t.params.browserHistory&&(o.browserHistory||o.replaceState)&&!o.reloadPrevious){const D=t.params.browserHistoryRoot||"";ve[o.reloadCurrent||F&&u||o.reloadAll||o.replaceState?"replace":"push"](i.id,{url:o.route.url},D+t.params.browserHistorySeparator+o.route.url)}o.reloadPrevious||(t.currentPageEl=w[0],m&&E.length?t.currentNavbarEl=E[0]:delete t.currentNavbarEl,t.currentRoute=o.route);const B=o.route.url;o.history&&(((o.reloadCurrent||F&&u)&&t.history.length)>0||o.replaceState?(F&&p>0&&(t.history=t.history.slice(0,t.history.length-p),t.propsHistory=t.propsHistory.slice(0,t.propsHistory.length-p)),t.history[t.history.length-(o.reloadPrevious?2:1)]=B,t.propsHistory[t.propsHistory.length-(o.reloadPrevious?2:1)]=o.props||{}):o.reloadPrevious?(t.history[t.history.length-2]=B,t.propsHistory[t.propsHistory.length-2]=o.props||{}):o.reloadAll?(t.history=[B],t.propsHistory=[o.props||{}]):(t.history.push(B),t.propsHistory.push(o.props||{}))),t.saveHistory();const P=w.parents(a).length>0,L=w[0].f7Component;if(o.reloadPrevious?(L&&!P?L.mount(D=>{C(D).insertBefore(v)}):w.insertBefore(v),m&&E.length&&(E.find(".title-large").length&&E.addClass("navbar-large"),k.length?E.insertBefore(k):(t.$navbarsEl.parents(a).length||t.$el.prepend(t.$navbarsEl),y.append(E)))):(v.next(".page")[0]!==w[0]&&(L&&!P?L.mount(D=>{b.append(D)}):b.append(w[0])),m&&E.length&&(E.find(".title-large").length&&E.addClass("navbar-large"),t.$navbarsEl.parents(a).length||t.$el.prepend(t.$navbarsEl),y.append(E[0]))),P?o.route&&o.route.route&&o.route.route.keepAlive&&!w[0].f7PageMounted&&(w[0].f7PageMounted=!0,t.pageCallback("mounted",w,E,I,g?I:"current",o,v)):t.pageCallback("mounted",w,E,I,g?I:"current",o,v),(o.reloadCurrent||F)&&v.length>0?(t.pageCallback("beforeOut",v,k,"current",void 0,o),t.pageCallback("afterOut",v,k,"current",void 0,o),t.pageCallback("beforeRemove",v,k,"current",void 0,o),t.removePage(v),m&&k&&k.length&&t.removeNavbar(k)):o.reloadAll?v.each((D,O)=>{const _=C(D),N=C(s.navbar.getElByPage(_));_.hasClass("page-current")&&(t.pageCallback("beforeOut",v,k,"current",void 0,o),t.pageCallback("afterOut",v,k,"current",void 0,o)),t.pageCallback("beforeRemove",_,k&&k.eq(O),"previous",void 0,o),t.removePage(_),m&&N.length&&t.removeNavbar(N)}):o.reloadPrevious&&(t.pageCallback("beforeRemove",v,k,"previous",void 0,o),t.removePage(v),m&&k&&k.length&&t.removeNavbar(k)),o.route.route.tab&&t.tabLoad(o.route.route.tab,W({},o,{history:!1,browserHistory:!1})),l&&i.checkMasterDetailBreakpoint(),t.pageCallback("init",w,E,I,g?I:"current",o,v),o.reloadCurrent||o.reloadAll||F)return t.allowPageChange=!0,t.pageCallback("beforeIn",w,E,I,"current",o),w.removeAttr("aria-hidden"),m&&E&&E.removeAttr("aria-hidden"),t.pageCallback("afterIn",w,E,I,"current",o),o.reloadCurrent&&o.clearPreviousHistory&&t.clearPreviousHistory(),F&&(t.setPagePosition(C(d),"previous"),d.f7Page&&d.f7Page.navbarEl&&t.setNavbarPosition(C(d.f7Page.navbarEl),"previous")),t;if(o.reloadPrevious)return t.allowPageChange=!0,t;t.pageCallback("beforeOut",v,k,"current","previous",o),t.pageCallback("beforeIn",w,E,"next","current",o);function V(){t.setPagePosition(w,"current",!1),t.setPagePosition(v,"previous",!v.hasClass("page-master")),m&&(t.setNavbarPosition(E,"current",!1),t.setNavbarPosition(k,"previous",!k.hasClass("navbar-master"))),t.allowPageChange=!0,t.pageCallback("afterOut",v,k,"current","previous",o),t.pageCallback("afterIn",w,E,"next","current",o);let D=(t.params.preloadPreviousPage||t.params[`${s.theme}SwipeBack`])&&!c;D||(w.hasClass("smart-select-page")||w.hasClass("photo-browser-page")||w.hasClass("autocomplete-page")||w.hasClass("color-picker-page"))&&(D=!0),D||w.attr("data-name")&&w.attr("data-name")==="smart-select-page"||(t.pageCallback("beforeRemove",v,k,"previous",void 0,o),t.removePage(v),m&&k.length&&t.removeNavbar(k)),o.clearPreviousHistory&&t.clearPreviousHistory(),t.emit("routeChanged",t.currentRoute,t.previousRoute,t),t.params.browserHistory&&ve.clearRouterQueue()}function H(){t.setPagePosition(v,"current",!1),t.setPagePosition(w,"next",!1),m&&(t.setNavbarPosition(k,"current",!1),t.setNavbarPosition(E,"next",!1))}if(o.animate&&!(c&&s.width>=t.params.masterDetailBreakpoint)){const D=t.params[`${t.app.theme}PageLoadDelay`];let O=t.params.transition;o.transition&&(O=o.transition),!O&&t.currentRoute&&t.currentRoute.route&&(O=t.currentRoute.route.transition),!O&&t.currentRoute&&t.currentRoute.route.options&&(O=t.currentRoute.route.options.transition),O&&(w[0].f7PageTransition=O),D?setTimeout(()=>{H(),t.animate(v,w,k,E,"forward",O,()=>{V()})},D):(H(),t.animate(v,w,k,E,"forward",O,()=>{V()}))}else V();return t}function Kr(t,e,n,a){if(e===void 0&&(e={}),n===void 0&&(n={}),!t.allowPageChange&&!a)return t;const r=e,s=n,{url:i,content:o,el:l,pageName:c,component:d,componentUrl:u}=r;if(!s.reloadCurrent&&s.route&&s.route.route&&s.route.route.parentPath&&t.currentRoute.route&&t.currentRoute.route.parentPath===s.route.route.parentPath){if(s.route.url===t.url)return t.allowPageChange=!0,!1;let h=Object.keys(s.route.params).length===Object.keys(t.currentRoute.params).length;if(h&&Object.keys(s.route.params).forEach(m=>{(!(m in t.currentRoute.params)||t.currentRoute.params[m]!==s.route.params[m])&&(h=!1)}),h)return s.route.route.tab?t.tabLoad(s.route.route.tab,s):!1;if(!h&&s.route.route.tab&&t.currentRoute.route.tab&&t.currentRoute.parentPath===s.route.parentPath)return t.tabLoad(s.route.route.tab,s)}if(s.route&&s.route.url&&t.url===s.route.url&&!(s.reloadCurrent||s.reloadPrevious)&&!t.params.allowDuplicateUrls)return t.allowPageChange=!0,!1;!s.route&&i&&(s.route=t.parseRouteUrl(i),W(s.route,{route:{url:i,path:i}}));function p(h,m){return pa(t,h,W(s,m))}function f(){return t.allowPageChange=!0,t}if((i||u||d)&&(t.allowPageChange=!1),o)pa(t,t.getPageEl(o),s);else if(l)pa(t,t.getPageEl(l),s);else if(c)pa(t,t.$el.children(`.page[data-name="${c}"]`).eq(0),s);else if(d||u)try{t.pageComponentLoader({routerEl:t.el,component:d,componentUrl:u,options:s,resolve:p,reject:f})}catch(h){throw t.allowPageChange=!0,h}else i&&(t.xhrAbortController&&(t.xhrAbortController.abort(),t.xhrAbortController=!1),t.xhrRequest(i,s).then(h=>{pa(t,t.getPageEl(h),s)}).catch(()=>{t.allowPageChange=!0}));return t}function Qy(t,e){e===void 0&&(e={});const n=this;if(n.swipeBackActive)return n;let a,r,s,i,o,l,c;if(typeof t=="string"?a=t:(a=t.url,r=t.route,s=t.name,i=t.path,o=t.query,l=t.params),s||i)return a=n.generateUrl({path:i,name:s,params:l,query:o}),a?n.navigate(a,e):n;const d=n.app;if(la(n,"navigate"),a==="#"||a==="")return n;let u=a.replace("./","");if(u[0]!=="/"&&u.indexOf("#")!==0){const m=n.currentRoute.parentPath||n.currentRoute.path;u=((m?`${m}/`:"/")+u).replace("///","/").replace("//","/")}if(r?c=W(n.parseRouteUrl(u),{route:W({},r)}):c=n.findMatchingRoute(u),!c)return n;if(c.route&&c.route.viewName){const m=c.route.viewName,b=d.views[m];if(!b)throw new Error(`Framework7: There is no View with "${m}" name that was specified in this route`);if(b!==n.view)return b.router.navigate(t,e)}if(c.route.redirect)return dc.call(n,"forward",c,e);const p={};if(c.route.options?W(p,c.route.options,e):W(p,e),p.openIn&&(!n.params.ignoreOpenIn||n.params.ignoreOpenIn&&n.history.length>0))return n.openIn(n,u,p);p.route=c;function f(){let m=!1;if("popup popover sheet loginScreen actions customModal panel".split(" ").forEach(g=>{c.route[g]&&!m&&(m=!0,n.modalLoad(g,c,p,"forward"))}),c.route.keepAlive&&c.route.keepAliveData&&(Kr(n,{el:c.route.keepAliveData.pageEl},p,!1),m=!0),"url content component pageName el componentUrl".split(" ").forEach(g=>{c.route[g]&&!m&&(m=!0,Kr(n,{[g]:c.route[g]},p,!1))}),m)return;function b(g,v){n.allowPageChange=!1;let y=!1;"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(E=>{if(g[E]){y=!0;const k=W({},c,{route:g});n.allowPageChange=!0,n.modalLoad(E,k,W(p,v),"forward")}}),!y&&Kr(n,g,W(p,v),!0)}function w(){n.allowPageChange=!0}c.route.async&&(n.allowPageChange=!1,c.route.async.call(n,{router:n,to:p.route,from:n.currentRoute,resolve:b,reject:w,direction:"forward",app:d})),c.route.asyncComponent&&Or(n,c.route.asyncComponent,b,w)}function h(){n.allowPageChange=!0}if(n.params.masterDetailBreakpoint>0&&c.route.masterRoute){let m=!0,b=!1;if(n.currentRoute&&n.currentRoute.route&&((n.currentRoute.route.master===!0||typeof n.currentRoute.route.master=="function"&&n.currentRoute.route.master(d,n))&&(n.currentRoute.route===c.route.masterRoute||n.currentRoute.route.path===c.route.masterRoute.path)&&(m=!1),n.currentRoute.route.masterRoute&&(n.currentRoute.route.masterRoute===c.route.masterRoute||n.currentRoute.route.masterRoute.path===c.route.masterRoute.path)&&(m=!1,b=!0)),m||b&&e.reloadAll)return n.navigate({path:c.route.masterRoute.path,params:c.params||{}},{animate:!1,reloadAll:e.reloadAll,reloadCurrent:e.reloadCurrent,reloadPrevious:e.reloadPrevious,browserHistory:!e.initial,history:!e.initial,once:{pageAfterIn(){n.navigate(t,W({},e,{animate:!1,reloadAll:!1,reloadCurrent:!1,reloadPrevious:!1,history:!e.initial,browserHistory:!e.initial}))}}}),n}return xs.call(n,c,n.currentRoute,()=>{c.route.modules?d.loadModules(Array.isArray(c.route.modules)?c.route.modules:[c.route.modules]).then(()=>{f()}).catch(()=>{h()}):f()},()=>{h()},"forward"),n}function Jy(t,e){e===void 0&&(e={});const n=this,a=W({animate:n.params.animate,browserHistory:!0,history:!0,parentPageEl:null,preload:!1,on:{}},e);let r,s;a.route&&(!a.preload&&a.route!==n.currentRoute&&(s=n.previousRoute,n.currentRoute=a.route),a.preload?(r=a.route,s=n.currentRoute):(r=n.currentRoute,s||(s=n.previousRoute)),n.params.browserHistory&&a.browserHistory&&!a.reloadPrevious&&ve[n.params.browserHistoryTabs](n.view.id,{url:a.route.url},(n.params.browserHistoryRoot||"")+n.params.browserHistorySeparator+a.route.url),a.history&&(n.history[Math.max(n.history.length-1,0)]=a.route.url,n.saveHistory()));const i=C(a.parentPageEl||n.currentPageEl);let o;i.length&&i.find(`#${t.id}`).length?o=i.find(`#${t.id}`).eq(0):n.view.selector?o=`${n.view.selector} #${t.id}`:o=`#${t.id}`;const l=n.app.tab.show({tabEl:o,animate:a.animate,tabRoute:a.route}),{$newTabEl:c,$oldTabEl:d,animated:u,onTabsChanged:p}=l;if(c&&c.parents(".page").length>0&&a.route){const g=c.parents(".page")[0].f7Page;g&&a.route&&(g.route=a.route)}function f(g){n.removeThemeElements(c);let v=c;typeof g!="string"&&(v=C(g)),v.trigger("tab:init tab:mounted",t),n.emit("tabInit tabMounted",c[0],t),d&&d.length&&(u?p(()=>{n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n.params.unloadTabContent&&n.tabRemove(d,c,t)}):(n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n.params.unloadTabContent&&n.tabRemove(d,c,t)))}if(c[0].f7RouterTabLoaded)return!d||!d.length||(u?p(()=>{n.emit("routeChanged",n.currentRoute,n.previousRoute,n)}):n.emit("routeChanged",n.currentRoute,n.previousRoute,n)),n;function h(g,v){const{url:y,content:E,el:k,component:$,componentUrl:M}=g;function x(S){n.allowPageChange=!0,S&&(typeof S=="string"?c.html(S):(c.html(""),S.f7Component?S.f7Component.mount(I=>{c.append(I)}):c.append(S)),c[0].f7RouterTabLoaded=!0,f(S))}function F(){return n.allowPageChange=!0,n}if(E)x(E);else if(k)x(k);else if($||M)try{n.tabComponentLoader({tabEl:c[0],component:$,componentUrl:M,options:v,resolve:x,reject:F})}catch(S){throw n.allowPageChange=!0,S}else y&&(n.xhrAbortController&&(n.xhrAbortController.abort(),n.xhrAbortController=!1),n.xhrRequest(y,v).then(S=>{x(S)}).catch(()=>{n.allowPageChange=!0}))}let m;"url content component el componentUrl".split(" ").forEach(g=>{t[g]&&(m=!0,h({[g]:t[g]},a))});function b(g,v){h(g,W(a,v))}function w(){n.allowPageChange=!0}return t.async?t.async.call(n,{router:n,to:r,from:s,resolve:b,reject:w,app:n.app}):t.asyncComponent?Or(n,t.asyncComponent,b,w):m||(n.allowPageChange=!0),n}function Zy(t,e,n){const a=this;let r;t[0]&&(t[0].f7RouterTabLoaded=!1,delete t[0].f7RouterTabLoaded),t.children().each(s=>{s.f7Component&&(r=!0,C(s).trigger("tab:beforeremove",n),s.f7Component.destroy())}),r||t.trigger("tab:beforeremove",n),a.emit("tabBeforeRemove",t[0],e[0],n),a.removeTabContent(t[0],n)}function e1(t,e,n,a){n===void 0&&(n={});const r=this,s=r.app,i=t==="panel",o=i?"panel":"modal",l=W({animate:r.params.animate,browserHistory:!0,history:!0,on:{},once:{}},n),c=W({},e.route[t]),d=e.route,u=(w,g)=>{const{on:v,once:y}=l;let E;g==="open"&&(E=v.modalOpen||y.modalOpen||v.panelOpen||y.panelOpen),g==="close"&&(E=v.modalClose||y.modalClose||v.panelClose||y.panelClose),g==="closed"&&(E=v.modalClosed||y.modalClosed||v.panelClosed||y.panelClosed),E&&E(w)};function p(){const w=s[t].create(c);d.modalInstance=w;const g=w.el;function v(){w.close()}w.on(`${o}Open`,()=>{g||(r.removeThemeElements(w.el),w.$el.trigger(`${t.toLowerCase()}:init ${t.toLowerCase()}:mounted`,e,w),r.emit(`${i?"":"modalInit"} ${t}Init ${t}Mounted`,w.el,e,w)),r.once("swipeBackMove",v),u(w,"open")}),w.on(`${o}Close`,()=>{r.off("swipeBackMove",v),w.closeByRouter||r.back(),u(w,"close")}),w.on(`${o}Closed`,()=>{w.$el.trigger(`${t.toLowerCase()}:beforeremove`,e,w),w.emit(`${i?"":"modalBeforeRemove "}${t}BeforeRemove`,w.el,e,w);const y=w.el.f7Component;u(w,"closed"),y&&y.destroy(),lt(()=>{(y||c.component||c.asyncComponent||c.async)&&r.removeModal(w.el),w.destroy(),delete w.route,delete d.modalInstance})}),l.route&&(r.params.browserHistory&&l.browserHistory&&ve.push(r.view.id,{url:l.route.url,modal:t},(r.params.browserHistoryRoot||"")+r.params.browserHistorySeparator+l.route.url),l.route!==r.currentRoute&&(w.route=W(l.route,{modal:w}),r.currentRoute=w.route),l.history&&!l.reloadCurrent&&(r.history.push(l.route.url),r.saveHistory())),g&&(r.removeThemeElements(w.el),w.$el.trigger(`${t.toLowerCase()}:init ${t.toLowerCase()}:mounted`,e,w),r.emit(`${o}Init ${t}Init ${t}Mounted`,w.el,e,w)),w.open(l.animate===!1||l.animate===!0?l.animate:void 0)}function f(w,g){const{url:v,content:y,component:E,componentUrl:k}=w;function $(x){x&&(typeof x=="string"?c.content=x:x.f7Component?x.f7Component.mount(F=>{c.el=F,s.$el.append(F)}):c.el=x,p())}function M(){return r.allowPageChange=!0,r}if(y)$(y);else if(E||k)try{r.modalComponentLoader({rootEl:s.el,component:E,componentUrl:k,options:g,resolve:$,reject:M})}catch(x){throw r.allowPageChange=!0,x}else v?(r.xhrAbortController&&(r.xhrAbortController.abort(),r.xhrAbortController=!1),r.xhrRequest(v,g).then(x=>{c.content=x,p()}).catch(()=>{r.allowPageChange=!0})):p()}let h;"url content component el componentUrl template".split(" ").forEach(w=>{c[w]&&!h&&(h=!0,f({[w]:c[w]},l))}),!h&&t==="actions"&&p();function m(w,g){f(w,W(l,g))}function b(){r.allowPageChange=!0}return c.async&&c.async.call(r,{router:r,to:l.route,from:r.currentRoute,resolve:m,reject:b,direction:a,app:s}),c.asyncComponent&&Or(r,c.asyncComponent,m,b),r}function t1(t){W(t,{closeByRouter:!0}),t.close()}function fa(t,e,n){const a=Ie(),r=ye(),s=C(e),i=t.app,o=t.view,l=W(!1,{animate:t.params.animate,browserHistory:!0,replaceState:!1},n),c=t.params.masterDetailBreakpoint>0,d=c&&l.route&&l.route.route&&(l.route.route.master===!0||typeof l.route.route.master=="function"&&l.route.route.master(i,t));let u,p;const f=t.dynamicNavbar,h=s,m=t.$el.children(".page-current"),b=m.length===0&&l.preload,w=c&&m.hasClass("page-master");h.length&&t.removeThemeElements(h);let g,v,y;if(f&&(v=h.children(".navbar"),g=t.$navbarsEl,v.length===0&&h[0]&&h[0].f7Page&&(v=h[0].f7Page.$navbarEl),y=g.find(".navbar-current")),t.allowPageChange=!1,h.length===0||m.length===0&&!l.preload)return t.allowPageChange=!0,t;t.removeThemeElements(h),l.route&&l.route.route&&l.route.route.keepAlive&&!l.route.route.keepAliveData&&(l.route.route.keepAliveData={pageEl:s[0]});let E,k;if(c){const B=t.$el.children(".page").filter(P=>P!==h[0]);for(let P=0;Pt.history.indexOf(u.f7Page.route.url),!E&&!d&&u&&u.f7Page&&l.route.route.masterRoute&&(E=l.route.route.masterRoute.path===u.f7Page.route.route.path)}E&&u&&u.f7Page&&(k=t.history.indexOf(l.route.url)-t.history.indexOf(u.f7Page.route.url)===1),h.addClass(`page-${b?"current":"previous"}${d?" page-master":""}${E?" page-master-detail":""}${k?" page-master-detail-root":""}`).removeAttr("aria-hidden").trigger("page:unstack").trigger("page:position",{position:b?"current":"previous"}),t.emit("pageUnstack",h[0]),t.emit("pagePosition",h[0],b?"current":"previous"),(d||E)&&(h.trigger("page:role",{role:d?"master":"detail",root:!!k}),t.emit("pageRole",h[0],{role:d?"master":"detail",detailRoot:!!k})),f&&v.length>0&&(v.addClass(`navbar-${b?"current":"previous"}${d?" navbar-master":""}${E?" navbar-master-detail":""}${k?" navbar-master-detail-root":""}`).removeAttr("aria-hidden"),v.trigger("navbar:position",{position:b?"current":"previous"}),t.emit("navbarPosition",v[0],b?"current":"previous"),(d||k)&&t.emit("navbarRole",v[0],{role:d?"master":"detail",detailRoot:!!k}));let $;if(l.force&&m.prev(".page-previous").length>=0){t.history.indexOf(l.route.url)>=0?($=t.history.length-t.history.indexOf(l.route.url)-1,t.history=t.history.slice(0,t.history.indexOf(l.route.url)+2),t.propsHistory=t.propsHistory.slice(0,t.history.indexOf(l.route.url)+2),o.history=t.history):t.history[[t.history.length-2]]?t.propsHistory[t.propsHistory.length-2]=l.props||{}:(t.history.unshift(t.url),t.propsHistory.unshift(l.props||{}));const B=m.prev(".page-previous");let P;f&&(P=C(i.navbar.getElByPage(B))),B.length>0&&(t.pageCallback("beforeRemove",B,P,"previous",void 0,l),B[0]===u&&(p=!0),t.removePage(B),f&&P.length&&t.removeNavbar(P))}const M=h.parents(r).length>0,x=h[0].f7Component;function F(){b&&(!M&&x?x.mount(B=>{t.$el.append(B)}):t.$el.append(h)),h.next(m).length===0&&(!M&&x?x.mount(B=>{C(B).insertBefore(m)}):h.insertBefore(m)),f&&v.length&&(v.find(".title-large").length&&v.addClass("navbar-large"),v.insertBefore(y),y.length>0?v.insertBefore(y):(t.$navbarsEl.parents(r).length||t.$el.prepend(t.$navbarsEl),g.append(v))),M?l.route&&l.route.route&&l.route.route.keepAlive&&!h[0].f7PageMounted&&(h[0].f7PageMounted=!0,t.pageCallback("mounted",h,v,"previous","current",l,m)):t.pageCallback("mounted",h,v,"previous","current",l,m)}if(l.preload){F(),l.route.route.tab&&t.tabLoad(l.route.route.tab,W({},l,{history:!1,browserHistory:!1,preload:!0})),d&&(h.removeClass("page-master-stacked").trigger("page:masterunstack"),t.emit("pageMasterUnstack",h[0]),f&&(C(i.navbar.getElByPage(h)).removeClass("navbar-master-stacked"),t.emit("navbarMasterUnstack",i.navbar.getElByPage(h)))),t.pageCallback("init",h,v,"previous","current",l,m),b&&(t.pageCallback("beforeIn",h,v,"current",void 0,l),t.pageCallback("afterIn",h,v,"current",void 0,l));const B=h.prevAll(".page-previous:not(.page-master)");return B.length>0&&B.each(P=>{const L=C(P);let V;f&&(V=C(i.navbar.getElByPage(L))),t.pageCallback("beforeRemove",L,V,"previous",void 0),t.removePage(L),f&&V.length&&t.removeNavbar(V)}),t.allowPageChange=!0,t}if(!(a.ie||a.edge||a.firefox&&!a.ios)&&t.params.browserHistory&&l.browserHistory)if(l.replaceState){const B=t.params.browserHistoryRoot||"";ve.replace(o.id,{url:l.route.url},B+t.params.browserHistorySeparator+l.route.url)}else $?ve.go(-$):ve.back();if(l.replaceState?(t.history[t.history.length-1]=l.route.url,t.propsHistory[t.propsHistory.length-1]=l.props||{}):(t.history.length===1&&(t.history.unshift(t.url),t.propsHistory.unshift(l.props||{})),t.history.pop(),t.propsHistory.pop()),t.saveHistory(),t.currentPageEl=h[0],f&&v.length?t.currentNavbarEl=v[0]:delete t.currentNavbarEl,t.currentRoute=l.route,(a.ie||a.edge||a.firefox&&!a.ios)&&t.params.browserHistory&&l.browserHistory)if(l.replaceState){const B=t.params.browserHistoryRoot||"";ve.replace(o.id,{url:l.route.url},B+t.params.browserHistorySeparator+l.route.url)}else $?ve.go(-$):ve.back();F(),l.route.route.tab&&t.tabLoad(l.route.route.tab,W({},l,{history:!1,browserHistory:!1})),c&&(w||p)&&o.checkMasterDetailBreakpoint(!1),t.pageCallback("init",h,v,"previous","current",l,m),t.pageCallback("beforeOut",m,y,"current","next",l),t.pageCallback("beforeIn",h,v,"previous","current",l);function S(){t.setPagePosition(h,"current",!1),t.setPagePosition(m,"next",!0),f&&(t.setNavbarPosition(v,"current",!1),t.setNavbarPosition(y,"next",!0)),t.pageCallback("afterOut",m,y,"current","next",l),t.pageCallback("afterIn",h,v,"previous","current",l),t.pageCallback("beforeRemove",m,y,"next",void 0,l),t.removePage(m),f&&y.length&&t.removeNavbar(y),t.allowPageChange=!0,t.emit("routeChanged",t.currentRoute,t.previousRoute,t),(t.params.preloadPreviousPage||t.params[`${i.theme}SwipeBack`])&&t.history[t.history.length-2]&&!d&&t.back(t.history[t.history.length-2],{preload:!0,props:t.propsHistory[t.propsHistory.length-2]||{}}),t.params.browserHistory&&ve.clearRouterQueue()}function I(){t.setPagePosition(m,"current"),t.setPagePosition(h,"previous",!1),f&&(t.setNavbarPosition(y,"current"),t.setNavbarPosition(v,"previous",!1))}if(l.animate&&!(w&&i.width>=t.params.masterDetailBreakpoint)){let B=t.params.transition;m[0]&&m[0].f7PageTransition&&(B=m[0].f7PageTransition,delete m[0].f7PageTransition),l.transition&&(B=l.transition),!B&&t.previousRoute&&t.previousRoute.route&&(B=t.previousRoute.route.transition),!B&&t.previousRoute&&t.previousRoute.route&&t.previousRoute.route.options&&(B=t.previousRoute.route.options.transition),I(),t.animate(m,h,y,v,"backward",B,()=>{S()})}else S();return t}function Qa(t,e,n,a){if(!t.allowPageChange&&!a)return t;const r=e,s=n,{url:i,content:o,el:l,pageName:c,component:d,componentUrl:u}=r;if(s.route.url&&t.url===s.route.url&&!(s.reloadCurrent||s.reloadPrevious)&&!t.params.allowDuplicateUrls)return t.allowPageChange=!0,!1;!s.route&&i&&(s.route=t.parseRouteUrl(i));function p(h,m){return fa(t,h,W(s,m))}function f(){return t.allowPageChange=!0,t}if((i||u||d)&&(t.allowPageChange=!1),o)fa(t,t.getPageEl(o),s);else if(l)fa(t,t.getPageEl(l),s);else if(c)fa(t,t.$el.children(`.page[data-name="${c}"]`).eq(0),s);else if(d||u)try{t.pageComponentLoader({routerEl:t.el,component:d,componentUrl:u,options:s,resolve:p,reject:f})}catch(h){throw t.allowPageChange=!0,h}else i&&(t.xhrAbortController&&(t.xhrAbortController.abort(),t.xhrAbortController=!1),t.xhrRequest(i,s).then(h=>{fa(t,t.getPageEl(h),s)}).catch(()=>{t.allowPageChange=!0}));return t}function n1(){const t=this,e=Ie();if(t.swipeBackActive)return t;let n,a,r,s;typeof(arguments.length<=0?void 0:arguments[0])=="object"?a=(arguments.length<=0?void 0:arguments[0])||{}:(n=arguments.length<=0?void 0:arguments[0],a=(arguments.length<=1?void 0:arguments[1])||{});const{name:i,params:o,query:l}=a;if(i)return n=t.generateUrl({name:i,params:o,query:l}),n?t.back(n,W({},a,{name:null,params:null,query:null})):t;const c=t.app;la(t,"back");let d=t.currentRoute.modal,u;if(d||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(w=>{t.currentRoute.route[w]&&(d=!0,u=w)}),d&&!a.preload){const w=t.currentRoute.modal||t.currentRoute.route.modalInstance||c[u].get(),g=t.history[t.history.length-2];let v;if(w&&w.$el){const E=w.$el.prevAll(".modal-in");if(E.length&&E[0].f7Modal){const k=E[0];t.$el.parents(k).length||(v=k.f7Modal.route)}}if(v||(v=t.findMatchingRoute(g)),!v&&g&&(v={url:g,path:g.split("?")[0],query:La(g),route:{path:g.split("?")[0],url:g}}),(!n||n.replace(/[# ]/g,"").trim().length===0)&&(!v||!w))return t;const y=a.force&&v&&n;if(v&&w){const E=e.ie||e.edge||e.firefox&&!e.ios,k=t.params.browserHistory&&a.browserHistory!==!1,$=t.currentRoute&&t.currentRoute.route&&t.currentRoute.route.options&&t.currentRoute.route.options.browserHistory===!1;k&&!E&&!$&&ve.back(),t.currentRoute=v,t.history.pop(),t.propsHistory.pop(),t.saveHistory(),k&&E&&!$&&ve.back(),t.modalRemove(w),y&&t.navigate(n,{reloadCurrent:!0})}else w&&(t.modalRemove(w),n&&t.navigate(n,{reloadCurrent:!0}));return t}let p=t.$el.children(".page-current").prevAll(".page-previous:not(.page-master)").eq(0),f;if(t.params.masterDetailBreakpoint>0){const w=[];t.$el.children(".page").each(v=>{w.push(v.className)});const g=t.$el.children(".page-current").prevAll(".page-master").eq(0);if(g.length){const v=t.history[t.history.length-2],y=t.findMatchingRoute(v);y&&g[0].f7Page&&y.route===g[0].f7Page.route.route&&(p=g,a.preload||(f=c.width>=t.params.masterDetailBreakpoint))}}if(!a.force&&p.length&&!f){const w=p[0].f7Page;if(t.params.browserHistory&&w&&t.history[t.history.length-2]!==w.route.url)return t.back(t.history[t.history.length-2],W(a,{force:!0,props:t.propsHistory[t.propsHistory.length-2]||{}})),t;if(w){const g=w.route;return xs.call(t,g,t.currentRoute,()=>{Qa(t,{el:p},W(a,{route:g}))},()=>{},"backward"),t}}if(n==="#"&&(n=void 0),n&&n[0]!=="/"&&n.indexOf("#")!==0&&(n=((t.path||"/")+n).replace("//","/")),!n&&t.history.length>1&&(n=t.history[t.history.length-2],r=t.propsHistory[t.propsHistory.length-2]||{}),f&&!a.force&&t.history[t.history.length-3])return t.back(t.history[t.history.length-3],W({},a||{},{force:!0,animate:!1,props:t.propsHistory[t.propsHistory.length-3]||{}}));if(f&&!a.force||(s=t.findMatchingRoute(n),s||n&&(s={url:n,path:n.split("?")[0],query:La(n),route:{path:n.split("?")[0],url:n}}),!s))return t;if(s.route.redirect)return dc.call(t,"backward",s,a);const h={};s.route.options?W(h,s.route.options,a,{props:r||{}}):W(h,a,{props:r||{}}),h.route=s;function m(){let w=!1;if(s.route.keepAlive&&s.route.keepAliveData&&(Qa(t,{el:s.route.keepAliveData.pageEl},h),w=!0),"url content component pageName el componentUrl".split(" ").forEach(y=>{s.route[y]&&!w&&(w=!0,Qa(t,{[y]:s.route[y]},h))}),w)return;function g(y,E){t.allowPageChange=!1,Qa(t,y,W(h,E),!0)}function v(){t.allowPageChange=!0}s.route.async&&(t.allowPageChange=!1,s.route.async.call(t,{router:t,to:s,from:t.currentRoute,resolve:g,reject:v,direction:"backward",app:c})),s.route.asyncComponent&&Or(t,s.route.asyncComponent,g,v)}function b(){t.allowPageChange=!0}return h.preload?m():xs.call(t,s,t.currentRoute,()=>{s.route.modules?c.loadModules(Array.isArray(s.route.modules)?s.route.modules:[s.route.modules]).then(()=>{m()}).catch(()=>{b()}):m()},()=>{b()},"backward"),t}function a1(t){la(t,"clearPreviousPages");const e=t.app,n=t.dynamicNavbar;t.$el.children(".page").filter(r=>t.currentRoute&&(t.currentRoute.modal||t.currentRoute.panel)?!0:r!==t.currentPageEl).each(r=>{const s=C(r),i=C(e.navbar.getElByPage(s));t.pageCallback("beforeRemove",s,i,"previous",void 0,{}),t.removePage(s),n&&i.length&&t.removeNavbar(i)})}function r1(){const t=this;la(t,"clearPreviousHistory");const e=t.history[t.history.length-1];a1(t),t.history=[e],t.view.history=[e],t.saveHistory()}class Ut extends Ue{constructor(e,n){super({},[typeof n>"u"?e:n]);const a=this;a.isAppRouter=typeof n>"u",a.isAppRouter?W(!1,a,{app:e,params:e.params.view,routes:e.routes||[],cache:e.cache}):W(!1,a,{app:e,view:n,viewId:n.id,id:n.params.routerId,params:n.params,routes:n.routes,history:n.history,propsHistory:[],scrollHistory:n.scrollHistory,cache:e.cache,dynamicNavbar:e.theme==="ios"&&n.params.iosDynamicNavbar,initialPages:[],initialNavbars:[]}),a.useModules(),a.allowPageChange=!0;let r={},s={};return Object.defineProperty(a,"currentRoute",{enumerable:!0,configurable:!0,set(i){i===void 0&&(i={}),s=W({},r),r=i,r&&(a.url=r.url,a.emit("routeChange",i,s,a))},get(){return r}}),Object.defineProperty(a,"previousRoute",{enumerable:!0,configurable:!0,get(){return s},set(i){s=i}}),a}mount(){const e=this,n=e.view,a=ye();W(!1,e,{tempDom:a.createElement("div"),$el:n.$el,el:n.el,$navbarsEl:n.$navbarsEl,navbarsEl:n.navbarsEl}),e.emit("local::mount routerMount",e)}animatableNavElements(e,n,a,r,s){const i=this,o=i.dynamicNavbar,l=i.params.iosAnimateNavbarBackIcon;let c,d;function u(p,f){const h=p.hasClass("sliding")||f.hasClass("sliding"),m=p.hasClass("subnavbar"),b=h?!m:!0,w=p.find(".back .icon");let g;return h&&l&&p.hasClass("left")&&w.length>0&&w.next("span").length&&(p=w.next("span"),g=!0),{$el:p,isIconLabel:g,leftOffset:p[0].f7NavbarLeftOffset,rightOffset:p[0].f7NavbarRightOffset,isSliding:h,isSubnavbar:m,needsOpacityTransition:b}}return o&&(c=[],d=[],e.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each(p=>{const f=C(p);f.hasClass("left")&&r&&s==="forward"||f.hasClass("title")&&a||c.push(u(f,e.children(".navbar-inner")))}),n.hasClass("navbar-master")&&i.params.masterDetailBreakpoint>0&&i.app.width>=i.params.masterDetailBreakpoint||n.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each(p=>{const f=C(p);f.hasClass("left")&&a&&!r&&s==="forward"||f.hasClass("left")&&a&&s==="backward"||f.hasClass("title")&&r||d.push(u(f,n.children(".navbar-inner")))}),[d,c].forEach(p=>{p.forEach(f=>{const h=f,{isSliding:m,$el:b}=f,w=p===d?c:d;m&&b.hasClass("title")&&w&&w.forEach(g=>{if(g.isIconLabel){const v=g.$el[0];h.leftOffset+=v&&v.offsetLeft||0}})})})),{newNavEls:c,oldNavEls:d}}animate(e,n,a,r,s,i,o){const l=this;if(l.params.animateCustom){l.params.animateCustom.apply(l,[e,n,a,r,s,o]);return}const c=l.dynamicNavbar,d=l.app.theme==="ios";if(i){const E=`router-transition-custom router-transition-${i}-${s}`,k=()=>{l.$el.removeClass(E),c&&l.$navbarsEl.length&&(r&&l.$navbarsEl.prepend(r),a&&l.$navbarsEl.prepend(a)),o&&o()};(s==="forward"?n:e).animationEnd(k),c&&(r&&n&&(l.setNavbarPosition(r,""),r.removeClass("navbar-next navbar-previous navbar-current"),n.prepend(r)),a&&e&&(l.setNavbarPosition(a,""),a.removeClass("navbar-next navbar-previous navbar-current"),e.prepend(a))),l.$el.addClass(E);return}const u=`router-transition-${s} router-transition`;let p,f,h,m,b,w,g;if(d&&c){l.params.masterDetailBreakpoint>0&&l.app.width>=l.params.masterDetailBreakpoint&&(a.hasClass("navbar-master")&&r.hasClass("navbar-master-detail")||a.hasClass("navbar-master-detail")&&r.hasClass("navbar-master"))||(w=a&&a.hasClass("navbar-large"),g=r&&r.hasClass("navbar-large"),h=w&&!a.hasClass("navbar-large-collapsed"),m=g&&!r.hasClass("navbar-large-collapsed"),b=h&&!m||m&&!h);const k=l.animatableNavElements(r,a,m,h,s);p=k.newNavEls,f=k.oldNavEls}function v(E){d&&c&&(E===1&&(m&&(r.addClass("router-navbar-transition-to-large"),a.addClass("router-navbar-transition-to-large")),h&&(r.addClass("router-navbar-transition-from-large"),a.addClass("router-navbar-transition-from-large"))),p.forEach(k=>{const $=k.$el,M=s==="forward"?k.rightOffset:k.leftOffset;k.isSliding&&(k.isSubnavbar&&g?$[0].style.setProperty("transform",`translate3d(${M*(1-E)}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`,"important"):$.transform(`translate3d(${M*(1-E)}px,0,0)`))}),f.forEach(k=>{const $=k.$el,M=s==="forward"?k.leftOffset:k.rightOffset;k.isSliding&&(k.isSubnavbar&&w?$.transform(`translate3d(${M*E}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`):$.transform(`translate3d(${M*E}px,0,0)`))}))}function y(){l.dynamicNavbar&&(r&&(r.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.addClass("navbar-no-title-large-transition"),Mt(()=>{r.removeClass("navbar-no-title-large-transition")})),a&&a.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.hasClass("sliding")||r.children(".navbar-inner.sliding").length?r.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):r.find(".sliding").transform(""),a.hasClass("sliding")||a.children(".navbar-inner.sliding").length?a.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):a.find(".sliding").transform("")),l.$el.removeClass(u),o&&o()}(s==="forward"?n:d?e:n).animationEnd(()=>{y()}),c?(v(0),Mt(()=>{l.$el.addClass(u),b&&(l.el._clientLeft=l.el.clientLeft),v(1)})):l.$el.addClass(u)}removeModal(e){this.removeEl(e)}removeTabContent(e){C(e).html("")}removeNavbar(e){this.removeEl(e)}removePage(e){const n=C(e),a=n&&n[0]&&n[0].f7Page,r=this;if(a&&a.route&&a.route.route&&a.route.route.keepAlive){n.remove();return}r.removeEl(e)}removeEl(e){if(!e)return;const n=this,a=C(e);a.length!==0&&(a.find(".tab").each(r=>{C(r).children().each(s=>{s.f7Component&&(C(s).trigger("tab:beforeremove"),s.f7Component.destroy())})}),a[0].f7Component&&a[0].f7Component.destroy&&a[0].f7Component.destroy(),n.params.removeElements&&(n.params.removeElementsWithTimeout?setTimeout(()=>{a.remove()},n.params.removeElementsTimeout):a.remove()))}getPageEl(e){const n=this;if(typeof e=="string")n.tempDom.innerHTML=e;else{if(C(e).hasClass("page"))return e;n.tempDom.innerHTML="",C(n.tempDom).append(e)}return n.findElement(".page",n.tempDom)}findElement(e,n){const a=this,r=a.view,s=a.app,i=".popup, .dialog, .popover, .actions-modal, .sheet-modal, .login-screen, .page",o=C(n),l=e;let c=o.find(l).filter(d=>C(d).parents(i).length===0);if(c.length>1&&(typeof r.selector=="string"&&(c=o.find(`${r.selector} ${l}`)),c.length>1&&(c=o.find(`.${s.params.viewMainClass} ${l}`))),c.length===1||(c=a.findElement(l,o),c&&c.length===1))return c;if(c&&c.length>1)return C(c[0])}flattenRoutes(e){e===void 0&&(e=this.routes);const n=this;let a=[];return e.forEach(r=>{let s=!1;if("tabs"in r&&r.tabs){const i=r.tabs.map(o=>{const l=W({},r,{path:`${r.path}/${o.path}`.replace("///","/").replace("//","/"),parentPath:r.path,tab:o});return delete l.tabs,delete l.routes,l});s=!0,a=a.concat(n.flattenRoutes(i))}if("detailRoutes"in r){const i=r.detailRoutes.map(o=>{const l=W({},o);return l.masterRoute=r,l.masterRoutePath=r.path,l});a=a.concat(r,n.flattenRoutes(i))}if("routes"in r){const i=r.routes.map(o=>{const l=W({},o);return l.path=`${r.path}/${l.path}`.replace("///","/").replace("//","/"),l});s?a=a.concat(n.flattenRoutes(i)):a=a.concat(r,n.flattenRoutes(i))}!("routes"in r)&&!("tabs"in r&&r.tabs)&&!("detailRoutes"in r)&&a.push(r)}),a}parseRouteUrl(e){if(!e)return{};const n=La(e),a=e.split("#")[1],r={},s=e.split("#")[0].split("?")[0];return{query:n,hash:a,params:r,url:e,path:s}}generateUrl(e){if(e===void 0&&(e={}),typeof e=="string")return e;const{name:n,path:a,params:r,query:s}=e;if(!n&&!a)throw new Error('Framework7: "name" or "path" parameter is required');const i=this,o=n?i.findRouteByKey("name",n):i.findRouteByKey("path",a);if(!o)throw n?new Error(`Framework7: route with name "${n}" not found`):new Error(`Framework7: route with path "${a}" not found`);const l=i.constructRouteUrl(o,{params:r,query:s});if(l==="")return"/";if(!l)throw new Error(`Framework7: can't construct URL for route with name "${n}"`);return l}constructRouteUrl(e,n){let{params:a,query:r}=n===void 0?{}:n;const{path:s}=e,i=jy(s);let o;try{o=i(a||{})}catch(l){throw new Error(`Framework7: error constructing route URL from passed params: + `,f=i==="white"?u:i==="black"?p:e(o),h=i==="white"?u:i==="black"?p:e(l);s+=[`.color-${i} {`,f,"--swiper-theme-color: var(--f7-theme-color);","}",`.color-${i}.dark, .color-${i} .dark, .dark .color-${i} {`,h,"--swiper-theme-color: var(--f7-theme-color);","}",`.ios .color-${i}, .ios.color-${i}, .ios .dark .color-${i}, .ios .dark.color-${i} {`,e(c),"}",`.md .color-${i}, .md.color-${i}, .md .dark .color-${i}, .md .dark.color-${i} {`,e(d),"}",`.text-color-${i} {`,`--f7-theme-color-text-color: ${t[i]};`,"}",`.bg-color-${i} {`,`--f7-theme-color-bg-color: ${t[i]};`,"}",`.border-color-${i} {`,`--f7-theme-color-border-color: ${t[i]};`,"}",`.ripple-color-${i} {`,`--f7-theme-color-ripple-color: rgba(${o["--f7-ios-primary-rgb"]}, 0.3);`,"}"].join("")}),`${a}${s}`}const so=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Ct,cancelAnimationFrame:Dy,colorHexToRgb:rn,colorHsbToHsl:cn,colorHslToHsb:ba,colorHslToRgb:na,colorRgbToHex:on,colorRgbToHsl:gr,colorThemeCSSProperties:$s,colorThemeCSSStyles:Ry,deleteProps:Ze,eventNameToColonCase:ga,extend:W,flattenArray:tc,getTranslate:mr,id:Ir,iosPreloaderContent:Hn,isObject:Gn,mdPreloaderContent:Rn,merge:Ly,nextFrame:Pt,nextTick:lt,now:It,parseUrlQuery:La,requestAnimationFrame:ks,serializeObject:Fn,uniqueNumber:Ay},Symbol.toStringTag,{value:"Module"}));let Ur;function Hy(){const t=fe(),e=ye();return{touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!t.PointerEvent&&"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>=0,passiveListener:function(){let a=!1;try{const r=Object.defineProperty({},"passive",{get(){a=!0}});t.addEventListener("testPassiveListener",null,r)}catch{}return a}(),intersectionObserver:function(){return"IntersectionObserver"in t}()}}function Xe(){return Ur||(Ur=Hy()),Ur}let Gr;function Fy(t){let{userAgent:e}=t===void 0?{}:t;const n=Xe(),a=fe(),r=a.navigator.platform,s=e||a.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:!!a.cordova,electron:!1,capacitor:!!a.Capacitor,nwjs:!1},o=a.screen.width,l=a.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const u=s.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&s.match(/(iPhone\sOS|iOS|iPhone;\sCPU\sOS)\s([\d_]+)/),f=s.indexOf("MSIE ")>=0||s.indexOf("Trident/")>=0,h=s.indexOf("Edge/")>=0,m=s.indexOf("Gecko/")>=0&&s.indexOf("Firefox/")>=0,b=r==="Win32",w=s.toLowerCase().indexOf("electron")>=0,g=typeof nw<"u"&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.nw<"u";let v=r==="MacIntel";const y=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];!d&&v&&n.touch&&y.indexOf(`${o}x${l}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),v=!1),i.ie=f,i.edge=h,i.firefox=m,c&&(i.os="android",i.osVersion=c[2],i.android=!0,i.androidChrome=s.toLowerCase().indexOf("chrome")>=0),(d||p||u)&&(i.os="ios",i.ios=!0),p&&!u&&(i.osVersion=p[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&&s.indexOf("Version/")>=0&&i.osVersion.split(".")[0]==="10"&&(i.osVersion=s.toLowerCase().split("version/")[1].split(" ")[0]),i.webView=!!((p||d||u)&&(s.match(/.*AppleWebKit(?!.*Safari)/i)||a.navigator.standalone))||a.matchMedia&&a.matchMedia("(display-mode: standalone)").matches,i.webview=i.webView,i.standalone=i.webView,i.desktop=!(i.ios||i.android)||w||g,i.desktop&&(i.electron=w,i.nwjs=g,i.macos=v,i.windows=b,i.macos&&(i.os="macos"),i.windows&&(i.os="windows")),i.pixelRatio=a.devicePixelRatio||1;const E="(prefers-color-scheme: dark)",k="(prefers-color-scheme: light)";return i.prefersColorScheme=function(){let M;return a.matchMedia&&a.matchMedia(k).matches&&(M="light"),a.matchMedia&&a.matchMedia(E).matches&&(M="dark"),M},i}const zy=(()=>{const t=ye();try{return!!(t&&t.body&&t.body.getBoundingClientRect&&t.body.getBoundingClientRect().width>0)}catch{return!1}})();function Ie(t,e){return t===void 0&&(t={}),e===void 0&&(e=zy),(!Gr||e)&&(Gr=Fy(t)),Gr}class nc{constructor(e){e===void 0&&(e=[]);const n=this;n.eventsParents=e,n.eventsListeners={}}on(e,n,a){const r=this;if(typeof n!="function")return r;const s=a?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][s](n)}),r}once(e,n,a){const r=this;if(typeof n!="function")return r;function s(){r.off(e,s),s.f7proxy&&delete s.f7proxy;for(var i=arguments.length,o=new Array(i),l=0;l{typeof n>"u"?a.eventsListeners[r]=[]:a.eventsListeners[r]&&a.eventsListeners[r].forEach((s,i)=>{(s===n||s.f7proxy&&s.f7proxy===n)&&a.eventsListeners[r].splice(i,1)})}),a}emit(){const e=this;if(!e.eventsListeners)return e;let n,a,r,s;for(var i=arguments.length,o=new Array(i),l=0;lp.replace("local::","")),u=c.filter(p=>p.indexOf("local::")<0);return d.forEach(p=>{if(e.eventsListeners&&e.eventsListeners[p]){const f=[];e.eventsListeners[p].forEach(h=>{f.push(h)}),f.forEach(h=>{h.apply(r,a)})}}),s&&s.length>0&&s.forEach(p=>{p.emit(u,...a)}),e}}class Ue extends nc{constructor(e,n){e===void 0&&(e={}),n===void 0&&(n=[]),super(n);const a=this;a.params=e,a.params&&a.params.on&&Object.keys(a.params.on).forEach(r=>{a.on(r,a.params.on[r])})}useModuleParams(e,n){if(e.params){const a={};Object.keys(e.params).forEach(r=>{typeof n[r]>"u"||(a[r]=W({},n[r]))}),W(n,e.params),Object.keys(a).forEach(r=>{W(n[r],a[r])})}}useModulesParams(e){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const r=n.modules[a];r.params&&W(e,r.params)})}useModule(e,n){e===void 0&&(e=""),n===void 0&&(n={});const a=this;if(!a.modules)return;const r=typeof e=="string"?a.modules[e]:e;r&&(r.instance&&Object.keys(r.instance).forEach(s=>{const i=r.instance[s];typeof i=="function"?a[s]=i.bind(a):a[s]=i}),r.on&&a.on&&Object.keys(r.on).forEach(s=>{a.on(s,r.on[s])}),r.vnode&&(a.vnodeHooks||(a.vnodeHooks={}),Object.keys(r.vnode).forEach(s=>{Object.keys(r.vnode[s]).forEach(i=>{const o=r.vnode[s][i];a.vnodeHooks[i]||(a.vnodeHooks[i]={}),a.vnodeHooks[i][s]||(a.vnodeHooks[i][s]=[]),a.vnodeHooks[i][s].push(o.bind(a))})})),r.create&&r.create.bind(a)(n))}useModules(e){e===void 0&&(e={});const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const r=e[a]||{};n.useModule(a,r)})}static set components(e){const n=this;n.use&&n.use(e)}static installModule(e){const n=this;n.prototype.modules||(n.prototype.modules={});const a=e.name||`${Object.keys(n.prototype.modules).length}_${It()}`;if(n.prototype.modules[a]=e,e.proto&&Object.keys(e.proto).forEach(o=>{n.prototype[o]=e.proto[o]}),e.static&&Object.keys(e.static).forEach(o=>{n[o]=e.static[o]}),e.install){for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;in.installModule(i)),n;for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s{i[o]=function(l){l===void 0&&(l=e);const c=i.get(l);for(var d=arguments.length,u=new Array(d>1?d-1:0),p=1;p1&&o){const d=C(o).parents(".page");d.length&&l.each(u=>{const p=C(u);p.parents(d)[0]===d[0]&&(l=p)})}if(l.length>1&&(l=l.eq(l.length-1)),!l.length)return;let c=l[0].f7Modal;if(!c){const d=l.dataset();c=new n(a,{el:l,...d})}return c.open(i)},close(s,i,o){s===void 0&&(s=e);let l=C(s);if(!l.length)return;if(l.length>1){let d;if(o){const u=C(o);u.length&&(d=u.parents(l))}d&&d.length>0?l=d:l=l.eq(l.length-1)}let c=l[0].f7Modal;if(!c){const d=l.dataset();c=new n(a,{el:l,...d})}return c.close(i)}})}const io=[];function Ny(t){const e=this,n=fe(),a=ye();return new Promise((r,s)=>{const i=e.instance;let o,l,c;if(!t){s(new Error("Framework7: Lazy module must be specified"));return}function d(u){e.use(u),i&&(i.useModuleParams(u,i.params),i.useModule(u))}if(typeof t=="string"){const u=t.match(/([a-z0-9-]*)/i);if(t.indexOf(".")<0&&u&&u[0].length===t.length){if(!i||i&&!i.params.lazyModulesPath){s(new Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));return}o=`${i.params.lazyModulesPath}/${t}/${t}.lazy.js`}else o=t}else typeof t=="function"?c=t:l=t;if(c){const u=c(e,!1);if(!u){s(new Error("Framework7: Can't find Framework7 component in specified component function"));return}if(e.prototype.modules&&e.prototype.modules[u.name]){r();return}d(u),r()}if(l){const u=l;if(!u){s(new Error("Framework7: Can't find Framework7 component in specified component"));return}if(e.prototype.modules&&e.prototype.modules[u.name]){r();return}d(u),r()}if(o){if(io.indexOf(o)>=0){r();return}io.push(o);const u=new Promise((f,h)=>{fetch(o).then(m=>m.text()).then(m=>{const w=`f7_component_loader_callback_${Ir()}`,g=a.createElement("script");g.innerHTML=`window.${w} = function (Framework7, Framework7AutoInstallComponent) {return ${m.trim()}}`,C("head").append(g);const v=n[w];delete n[w],C(g).remove();const y=v(e,!1);if(!y){h(new Error(`Framework7: Can't find Framework7 component in ${o} file`));return}if(e.prototype.modules&&e.prototype.modules[y.name]){f();return}d(y),f()}).catch(m=>{h(m)})}),p=new Promise(f=>{fetch(o.replace(".lazy.js",i.rtl?".rtl.css":".css").replace(".js",i.rtl?".rtl.css":".css")).then(h=>h.text()).then(h=>{const m=a.createElement("style");m.innerHTML=h,C("head").append(m),f()}).catch(()=>{f()})});Promise.all([u,p]).then(()=>{r()}).catch(f=>{s(f)})}})}const T=function(t,e){const n=e||{};for(var a=arguments.length,r=new Array(a>2?a-2:0),s=2;sc[0]==="_"?n[c]?c.replace("_",""):"":`${c}="${n[c]}"`).filter(c=>!!c).join(" ");if(["path","img","circle","polygon","line","input"].indexOf(t)>=0)return`<${t} ${o} />`.trim();const l=i.filter(c=>!!c).map(c=>Array.isArray(c)?c.join(""):c).join("");return`<${t} ${o}>${l}`.trim()};class nt extends Ue{constructor(e){if(e===void 0&&(e={}),super(e),nt.instance&&typeof window<"u")throw new Error("Framework7 is already initialized and can't be initialized more than once");const n=Ie({userAgent:e.userAgent||void 0}),a=Xe(),r=W({},e),s=this;s.device=n,s.support=a;const i=fe(),o=ye();nt.instance=s;const l={el:"body",theme:"auto",routes:[],name:"Framework7",lazyModulesPath:null,initOnDeviceReady:!0,init:!0,darkMode:void 0,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0,userAgent:null,url:null,colors:{primary:"#007aff",red:"#ff3b30",green:"#4cd964",blue:"#2196f3",pink:"#ff2d55",yellow:"#ffcc00",orange:"#ff9500",purple:"#9c27b0",deeppurple:"#673ab7",lightblue:"#5ac8fa",teal:"#009688",lime:"#cddc39",deeporange:"#ff6b22",white:"#ffffff",black:"#000000"}};return s.useModulesParams(l),s.params=W(l,e),W(s,{name:s.params.name,routes:s.params.routes,theme:function(){return s.params.theme==="auto"?n.ios?"ios":"md":s.params.theme}(),passedParams:r,online:i.navigator.onLine,colors:s.params.colors,darkMode:s.params.darkMode}),e.store&&(s.params.store=e.store),s.$el&&s.$el[0]&&(s.$el[0].f7=s),s.useModules(),s.initStore(),s.params.init&&(n.cordova&&s.params.initOnDeviceReady?C(o).on("deviceready",()=>{s.init()}):s.init()),s}setColorTheme(e){if(!e)return;const n=this;n.colors.primary=e,n.setColors()}setColors(){const e=this,n=ye();e.colorsStyleEl||(e.colorsStyleEl=n.createElement("style"),n.head.prepend(e.colorsStyleEl)),e.colorsStyleEl.textContent=e.utils.colorThemeCSSStyles(e.colors)}mount(e){const n=this,a=fe(),r=ye(),s=C(e||n.params.el).eq(0);n.$el=s,n.$el&&n.$el[0]&&(n.el=n.$el[0],n.el.f7=n,n.rtl=s.css("direction")==="rtl");const i="(prefers-color-scheme: dark)",o="(prefers-color-scheme: light)";n.mq={},a.matchMedia&&(n.mq.dark=a.matchMedia(i),n.mq.light=a.matchMedia(o)),n.colorSchemeListener=function(c){let{matches:d,media:u}=c;if(!d)return;const p=r.querySelector("html");u===i?(p.classList.add("dark"),n.darkMode=!0,n.emit("darkModeChange",!0)):u===o&&(p.classList.remove("dark"),n.darkMode=!1,n.emit("darkModeChange",!1))},n.emit("mount")}initStore(){const e=this;typeof e.params.store<"u"&&e.params.store.__store?e.store=e.params.store:e.store=e.createStore(e.params.store)}enableAutoDarkMode(){const e=fe(),n=ye();if(!e.matchMedia)return;const a=this,r=n.querySelector("html");a.mq.dark&&a.mq.light&&(a.mq.dark.addEventListener("change",a.colorSchemeListener),a.mq.light.addEventListener("change",a.colorSchemeListener)),a.mq.dark&&a.mq.dark.matches?(r.classList.add("dark"),a.darkMode=!0,a.emit("darkModeChange",!0)):a.mq.light&&a.mq.light.matches&&(r.classList.remove("dark"),a.darkMode=!1,a.emit("darkModeChange",!1))}disableAutoDarkMode(){if(!fe().matchMedia)return;const n=this;n.mq.dark&&n.mq.dark.removeEventListener("change",n.colorSchemeListener),n.mq.light&&n.mq.light.removeEventListener("change",n.colorSchemeListener)}setDarkMode(e){const n=this;e==="auto"?n.enableAutoDarkMode():(n.disableAutoDarkMode(),C("html")[e?"addClass":"removeClass"]("dark"),n.darkMode=e)}initAppComponent(e){const n=this;n.router.componentLoader(n.params.component,n.params.componentUrl,{componentOptions:{el:n.$el[0]}},a=>{n.$el=C(a),n.$el[0].f7=n,n.$elComponent=a.f7Component,n.el=n.$el[0],e&&e()},()=>{})}init(e){const n=this;n.setColors(),n.mount(e);const a=()=>{if(n.initialized)return;n.$el.addClass("framework7-initializing"),n.rtl&&C("html").attr("dir","rtl"),typeof n.params.darkMode>"u"?n.darkMode=C("html").hasClass("dark"):n.setDarkMode(n.params.darkMode);const r=fe();r.addEventListener("offline",()=>{n.online=!1,n.emit("offline"),n.emit("connection",!1)}),r.addEventListener("online",()=>{n.online=!0,n.emit("online"),n.emit("connection",!0)}),n.$el.addClass("framework7-root"),C("html").removeClass("ios md").addClass(n.theme),n.params.iosTranslucentBars&&n.theme==="ios"&&C("html").addClass("ios-translucent-bars"),n.params.iosTranslucentModals&&n.theme==="ios"&&C("html").addClass("ios-translucent-modals"),Pt(()=>{n.$el.removeClass("framework7-initializing")}),n.initialized=!0,n.emit("init")};return n.params.component||n.params.componentUrl?n.initAppComponent(()=>{a()}):a(),n}loadModule(){return nt.loadModule(...arguments)}loadModules(){return nt.loadModules(...arguments)}getVnodeHooks(e,n){const a=this;return!a.vnodeHooks||!a.vnodeHooks[e]?[]:a.vnodeHooks[e][n]||[]}get $(){return C}static get Dom7(){return C}static get $(){return C}static get device(){return Ie()}static get support(){return Xe()}static get Class(){return Ue}static get Events(){return nc}}nt.$jsx=T;nt.ModalMethods=pn;nt.ConstructorMethods=et;nt.loadModule=Ny;nt.loadModules=function(e){return Promise.all(e.map(n=>nt.loadModule(n)))};const ac={name:"device",static:{getDevice:Ie},on:{init(){const t=ye(),e=Ie(),n=[],a=t.querySelector("html"),r=t.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');a&&(e.standalone&&e.ios&&r&&r.content==="black-translucent"&&n.push("device-full-viewport"),n.push(`device-pixel-ratio-${Math.floor(e.pixelRatio)}`),e.os&&!e.desktop?n.push(`device-${e.os}`):e.desktop&&(n.push("device-desktop"),e.os&&n.push(`device-${e.os}`)),e.cordova&&n.push("device-cordova"),e.capacitor&&n.push("device-capacitor"),n.forEach(s=>{a.classList.add(s)}))}}},rc={name:"support",static:{getSupport:Xe}},sc={name:"utils",proto:{utils:so},static:{utils:so}},ic={name:"resize",create(){const t=this;t.getSize=()=>{if(!t.el)return{width:0,height:0,left:0,top:0};const e=t.$el.offset(),[n,a,r,s]=[t.el.offsetWidth,t.el.offsetHeight,e.left,e.top];return t.width=n,t.height=a,t.left=r,t.top=s,{width:n,height:a,left:r,top:s}}},on:{init(){const t=this,e=fe();t.getSize(),e.addEventListener("resize",()=>{t.emit("resize")},!1),e.addEventListener("orientationchange",()=>{t.emit("orientationchange")})},orientationchange(){const t=ye();Ie().ipad&&(t.body.scrollLeft=0,setTimeout(()=>{t.body.scrollLeft=0},0))},resize(){this.getSize()}}};function Vy(){const t=this,e=Ie(),n=Xe(),a=fe(),r=ye(),s=t.params.touch,i=s[`${t.theme}TouchRipple`];e.ios&&e.webView&&a.addEventListener("touchstart",()=>{});let o,l,c,d,u,p,f,h,m,b,w,g;function v(j){const Q=C(j),ae=Q.parents(s.activeStateElements);if(Q.closest(".no-active-state").length)return null;let Z;if(Q.is(s.activeStateElements)&&(Z=Q),ae.length>0&&(Z=Z?Z.add(ae):ae),Z&&Z.length>1){const te=[];let he;for(let re=0;re0}function E(){h&&h.addClass("active-state")}function k(){h&&(h.removeClass("active-state"),h=null)}function $(j){const Q=s.touchRippleElements,ae=C(j);if(ae.is(Q))return ae.hasClass("no-ripple")?!1:ae;if(ae.parents(Q).length>0){const Z=ae.parents(Q).eq(0);return Z.hasClass("no-ripple")?!1:Z}return!1}function M(j,Q,ae){j&&(b=t.touchRipple.create(t,j,Q,ae))}function x(){b&&(b.remove(),b=void 0,w=void 0)}function F(j){if(w=$(j),!w||w.length===0){w=void 0;return}y(w)?(clearTimeout(g),g=setTimeout(()=>{x(),M(w,o,l)},80)):(x(),M(w,o,l))}function S(){clearTimeout(g),x()}function I(){!b&&w&&!d?(clearTimeout(g),M(w,o,l),setTimeout(x,0)):x()}function B(j){const Q=v(j.target);Q&&(Q.addClass("active-state"),"which"in j&&j.which===3&&setTimeout(()=>{C(".active-state").removeClass("active-state")},0)),i&&(o=j.pageX,l=j.pageY,F(j.target,j.pageX,j.pageY))}function P(){s.activeStateOnMouseMove||C(".active-state").removeClass("active-state"),i&&S()}function L(){C(".active-state").removeClass("active-state"),i&&I()}function V(){c=null,clearTimeout(m),clearTimeout(p),s.activeState&&k(),i&&I()}let H,D=!1,O=null;const _=".dialog-button, .actions-button";let N=!1,G=null;function ee(j){return j.isTrusted?(d=!1,u=!1,f=!1,H=void 0,j.targetTouches.length>1?(h&&k(),!0):(j.touches.length>1&&h&&k(),s.tapHold&&(p&&clearTimeout(p),p=setTimeout(()=>{j&&j.touches&&j.touches.length>1||(u=!0,j.preventDefault(),f=!0,C(j.target).trigger("taphold",j),t.emit("taphold",j))},s.tapHoldDelay)),c=j.target,o=j.targetTouches[0].pageX,l=j.targetTouches[0].pageY,D=j.target.closest(".segmented-strong .button-active, .segmented-strong .tab-link-active"),N=t.theme==="ios"&&j.target.closest(_),D&&(O=D.closest(".segmented-strong")),s.activeState&&(h=v(c),h&&!y(h)?E():h&&(m=setTimeout(E,80))),i&&F(c),!0)):!0}function X(j){if(!j.isTrusted)return;let Q,ae,Z=!0;j.type==="touchmove"&&(Q=j.targetTouches[0],ae=s.touchClicksDistanceThreshold);const te=j.targetTouches[0].pageX,he=j.targetTouches[0].pageY;if(typeof H>"u"&&(H=!!(H||Math.abs(he-l)>Math.abs(te-o))),(N||!H&&D&&O)&&j.cancelable&&j.preventDefault(),!H&&D&&O){const de=r.elementFromPoint(j.targetTouches[0].clientX,j.targetTouches[0].clientY).closest(".segmented-strong .button:not(.button-active):not(.tab-link-active)");de&&O.contains(de)&&(C(de).trigger("click","f7Segmented"),c=de)}if(ae&&Q){const re=Q.pageX,de=Q.pageY;(Math.abs(re-o)>ae||Math.abs(de-l)>ae)&&(d=!0)}else d=!0;d&&(f=!0,N&&(G=r.elementFromPoint(j.targetTouches[0].clientX,j.targetTouches[0].clientY).closest(_),G&&h&&h[0]===G?Z=!1:G&&setTimeout(()=>{h=v(G),E()})),s.tapHold&&clearTimeout(p),s.activeState&&Z&&(clearTimeout(m),k()),i&&S())}function se(j){return j.isTrusted?(H=void 0,D=!1,O=null,N=!1,clearTimeout(m),clearTimeout(p),G&&(C(G).trigger("click","f7TouchMoveActivable"),G=null),r.activeElement===j.target?(s.activeState&&k(),i&&I(),!0):(s.activeState&&(E(),setTimeout(k,0)),i&&I(),s.tapHoldPreventClicks&&u||f?(j.cancelable&&j.preventDefault(),f=!0,!1):!0)):!0}function ne(j){const Q=j&&j.detail&&j.detail==="f7Overswipe",ae=j&&j.detail&&j.detail==="f7Segmented",Z=j&&j.detail&&j.detail==="f7TouchMoveActivable";let te=f;return c&&j.target!==c?Q||ae||Z?te=!1:te=!0:Z&&(te=!1),s.tapHold&&s.tapHoldPreventClicks&&u&&(te=!0),te&&(j.stopImmediatePropagation(),j.stopPropagation(),j.preventDefault()),s.tapHold&&(p=setTimeout(()=>{u=!1},e.ios||e.androidChrome?100:400)),f=!1,c=null,!te}function ie(j,Q){t.emit({events:j,data:[Q]})}function le(j){ie("click",j)}function be(j){ie("touchstart touchstart:active",j)}function oe(j){ie("touchmove touchmove:active",j)}function ce(j){ie("touchend touchend:active",j)}function pe(j){ie("touchstart:passive",j)}function R(j){ie("touchmove:passive",j)}function A(j){ie("touchend:passive",j)}const z=n.passiveListener?{passive:!0}:!1,q=n.passiveListener?{passive:!0,capture:!0}:!0,U=n.passiveListener?{passive:!1}:!1,K=n.passiveListener?{passive:!1,capture:!0}:!0;r.addEventListener("click",le,!0),n.passiveListener?(r.addEventListener(t.touchEvents.start,be,K),r.addEventListener(t.touchEvents.move,oe,U),r.addEventListener(t.touchEvents.end,ce,U),r.addEventListener(t.touchEvents.start,pe,q),r.addEventListener(t.touchEvents.move,R,z),r.addEventListener(t.touchEvents.end,A,z)):(r.addEventListener(t.touchEvents.start,j=>{be(j),pe(j)},!0),r.addEventListener(t.touchEvents.move,j=>{oe(j),R(j)},!1),r.addEventListener(t.touchEvents.end,j=>{ce(j),A(j)},!1)),n.touch?(t.on("click",ne),t.on("touchstart",ee),t.on("touchmove",X),t.on("touchend",se),r.addEventListener("touchcancel",V,{passive:!0})):s.activeState&&(t.on("touchstart",B),t.on("touchmove",P),t.on("touchend",L),r.addEventListener("pointercancel",L,{passive:!0})),r.addEventListener("contextmenu",j=>{s.disableContextMenu&&(e.ios||e.android||e.cordova||a.Capacitor&&a.Capacitor.isNative)&&j.preventDefault(),i&&(h&&k(),I())})}const oc={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, .link, .item-link, .accordion-item-toggle",activeStateOnMouseMove:!1,mdTouchRipple:!0,iosTouchRipple:!1,touchRippleElements:".ripple, .link, .item-link, .list label.item-content, .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, .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 t=this,e=Xe();W(t,{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:Vy}};function _y(t){for(var e=[],n=0;n=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===95){r+=t[s++];continue}break}if(!r)throw new TypeError("Missing parameter name at ".concat(n));e.push({type:"NAME",index:n,value:r}),n=s;continue}if(a==="("){var o=1,l="",s=n+1;if(t[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s)?(?!\?)/g,a=0,r=n.exec(t.source);r;)e.push({name:r[1]||a++,prefix:"",suffix:"",modifier:"",pattern:""}),r=n.exec(t.source);return t}function Yy(t,e,n){var a=t.map(function(r){return cc(r,e,n).source});return new RegExp("(?:".concat(a.join("|"),")"),si(n))}function Xy(t,e,n){return Uy(lc(t,n),e,n)}function Uy(t,e,n){n===void 0&&(n={});for(var a=n.strict,r=a===void 0?!1:a,s=n.start,i=s===void 0?!0:s,o=n.end,l=o===void 0?!0:o,c=n.encode,d=c===void 0?function(F){return F}:c,u=n.delimiter,p=u===void 0?"/#?":u,f=n.endsWith,h=f===void 0?"":f,m="[".concat(Yn(h),"]|$"),b="[".concat(Yn(p),"]"),w=i?"^":"",g=0,v=t;g-1:M===void 0;r||(w+="(?:".concat(b,"(?=").concat(m,"))?")),x||(w+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(w,si(n))}function cc(t,e,n){return t instanceof RegExp?Wy(t,e):Array.isArray(t)?Yy(t,e,n):Xy(t,e,n)}const ve={queue:[],clearQueue(){if(ve.queue.length===0)return;ve.queue.shift()()},routerQueue:[],clearRouterQueue(){if(ve.routerQueue.length===0)return;const t=ve.routerQueue.pop(),{router:e,stateUrl:n,action:a}=t;let r=e.params.animate;e.params.browserHistoryAnimate===!1&&(r=!1),a==="back"&&e.back({animate:r,browserHistory:!1}),a==="load"&&e.navigate(n,{animate:r,browserHistory:!1})},handle(t){if(ve.blockPopstate)return;const e=this;let n=t.state;ve.previousState=ve.state,ve.state=n,ve.allowChange=!0,ve.clearQueue(),n=ve.state,n||(n={}),e.views.forEach(a=>{const r=a.router;let s=n[a.id];if(!s&&a.params.browserHistory&&(s={url:a.router.history[0]}),!s)return;const i=s.url||void 0;let o=r.params.animate;r.params.browserHistoryAnimate===!1&&(o=!1),i!==r.url&&(r.history.indexOf(i)>=0?r.allowPageChange?r.back({animate:o,browserHistory:!1}):ve.routerQueue.push({action:"back",router:r}):r.allowPageChange?r.navigate(i,{animate:o,browserHistory:!1}):ve.routerQueue.unshift({action:"load",stateUrl:i,router:r}))})},initViewState(t,e){const n=fe(),a=W({},ve.state||{},{[t]:e});ve.state=a,n.history.replaceState(a,"")},push(t,e,n){const a=fe(),r=ye();if(n.substr(-3)==="#!/"&&(n=n.replace("#!/",""),n===""&&(n=r.location.href,n.includes("#!/")&&(n=r.location.href.split("#!/")[0]))),!ve.allowChange){ve.queue.push(()=>{ve.push(t,e,n)});return}ve.previousState=ve.state;const s=W({},ve.previousState||{},{[t]:e});ve.state=s,a.history.pushState(s,"",n)},replace(t,e,n){const a=fe();if(n.substr(-3)==="#!/"&&(n=n.replace("#!/","")),!ve.allowChange){ve.queue.push(()=>{ve.replace(t,e,n)});return}ve.previousState=ve.state;const r=W({},ve.previousState||{},{[t]:e});ve.state=r,a.history.replaceState(r,"",n)},go(t){const e=fe();ve.allowChange=!1,e.history.go(t)},back(){const t=fe();ve.allowChange=!1,t.history.back()},allowChange:!0,previousState:{},state:{},blockPopstate:!0,init(t){const e=fe(),n=ye();ve.state=e.history.state,C(e).on("load",()=>{setTimeout(()=>{ve.blockPopstate=!1},0)}),n.readyState&&n.readyState==="complete"&&(ve.blockPopstate=!1),C(e).on("popstate",ve.handle.bind(t))}};function Gy(t){const e=t,{$el:n,$navbarsEl:a,app:r,params:s}=e,i=Xe(),o=Ie();let l=!1,c=!1;const d={};let u,p=[],f=[],h,m,b=!0,w,g=[],v=[],y,E,k,$;const M=s[`${r.theme}SwipeBackAnimateShadow`],x=s[`${r.theme}SwipeBackAnimateOpacity`],F=s[`${r.theme}SwipeBackActiveArea`],S=s[`${r.theme}SwipeBackThreshold`],I=r.rtl?"right center":"left center",B=r.rtl?"calc(100% - var(--f7-navbar-large-title-padding-left) - var(--f7-safe-area-left)) center":"calc(var(--f7-navbar-large-title-padding-left) + var(--f7-safe-area-left)) center";function P(){const N=[],G=r.rtl?-1:1,ee=g.hasClass("navbar-transparent")&&!g.hasClass("navbar-large")&&!g.hasClass("navbar-transparent-visible"),X=g.hasClass("navbar-large"),se=g.hasClass("navbar-large-collapsed"),ne=g.hasClass("navbar-large-transparent")||g.hasClass("navbar-large")&&g.hasClass("navbar-transparent"),ie=v.hasClass("navbar-transparent")&&!v.hasClass("navbar-large")&&!v.hasClass("navbar-transparent-visible"),le=v.hasClass("navbar-large"),be=v.hasClass("navbar-large-collapsed"),oe=v.hasClass("navbar-large-transparent")||v.hasClass("navbar-large")&&v.hasClass("navbar-transparent"),ce=X&&!se,pe=le&&!be,R=g.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg"),A=v.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg");let z,q;return s.iosAnimateNavbarBackIcon&&(g.hasClass("sliding")||g.find(".navbar-inner.sliding").length?z=g.find(".left").find(".back .icon + span").eq(0):z=g.find(".left.sliding").find(".back .icon + span").eq(0),v.hasClass("sliding")||v.find(".navbar-inner.sliding").length?q=v.find(".left").find(".back .icon + span").eq(0):q=v.find(".left.sliding").find(".back .icon + span").eq(0),z.length&&A.each(U=>{C(U).hasClass("title")&&(U.f7NavbarLeftOffset+=z.prev(".icon")[0].offsetWidth)})),R.each(U=>{const K=C(U),j=K.hasClass("subnavbar"),Q=K.hasClass("left"),ae=K.hasClass("title"),Z=K.hasClass("navbar-bg");if((ae||Z)&&ee||!ce&&K.hasClass(".title-large"))return;const te={el:U};if(ce){if(ae)return;if(K.hasClass("title-large")){N.indexOf(te)<0&&N.push(te),te.overflow="visible",K.find(".title-large-text").each(re=>{N.push({el:re,transform:de=>`translateX(${de*100*G}%)`})});return}}if(pe&&(ce||K.hasClass("title-large")&&(N.indexOf(te)<0&&N.push(te),te.opacity=0),Q)){N.indexOf(te)<0&&N.push(te),te.opacity=re=>1-re**.33,K.find(".back span").each(re=>{N.push({el:re,"transform-origin":I,transform:de=>`translateX(calc(${de} * (var(--f7-navbarTitleLargeOffset) - var(--f7-navbarLeftTextOffset)))) translateY(calc(${de} * (var(--f7-navbar-large-title-height) - var(--f7-navbar-large-title-padding-vertical) / 2))) scale(${1+1*de})`})});return}if(Z){N.indexOf(te)<0&&N.push(te),!ce&&!pe&&(se?(ne&&(te.className="ios-swipeback-navbar-bg-large"),te.transform=re=>`translateX(${100*re*G}%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))`):te.transform=re=>`translateX(${100*re*G}%)`),!ce&&pe&&(te.className="ios-swipeback-navbar-bg-large",te.transform=re=>`translateX(${100*re*G}%) translateY(calc(-1 * ${1-re} * var(--f7-navbar-large-title-height)))`),ce&&pe&&(te.transform=re=>`translateX(${100*re*G}%)`),ce&&!pe&&(te.transform=re=>`translateX(${100*re*G}%) translateY(calc(-${re} * var(--f7-navbar-large-title-height)))`);return}if(K.hasClass("title-large"))return;const he=K.hasClass("sliding")||K.parents(".navbar-inner.sliding").length;if(N.indexOf(te)<0&&N.push(te),(!j||j&&!he)&&(te.opacity=re=>1-re**.33),he){let re=te;if(Q&&z.length&&s.iosAnimateNavbarBackIcon){const de={el:z[0]};re=de,N.push(de)}re.transform=de=>{let Ee=de*re.el.f7NavbarRightOffset;return o.pixelRatio===1&&(Ee=Math.round(Ee)),j&&X?`translate3d(${Ee}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`:`translate3d(${Ee}px,0,0)`}}}),A.each(U=>{const K=C(U),j=K.hasClass("subnavbar"),Q=K.hasClass("left"),ae=K.hasClass("title"),Z=K.hasClass("navbar-bg");if((ae||Z)&&ie)return;const te={el:U};if(pe){if(ae)return;if(N.indexOf(te)<0&&N.push(te),K.hasClass("title-large")){te.opacity=1,te.overflow="visible",K.find(".title-large-text").each(re=>{N.push({el:re,"transform-origin":B,opacity:de=>de**3,transform:de=>`translateX(calc(${1-de} * (var(--f7-navbarLeftTextOffset) - var(--f7-navbarTitleLargeOffset)))) translateY(calc(${de-1} * var(--f7-navbar-large-title-height) + ${1-de} * var(--f7-navbar-large-title-padding-vertical))) scale(${.5+de*.5})`})});return}}if(Z){N.indexOf(te)<0&&N.push(te),!ce&&!pe&&(be?(oe&&(te.className="ios-swipeback-navbar-bg-large"),te.transform=re=>`translateX(${(-100+100*re)*G}%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))`):te.transform=re=>`translateX(${(-100+100*re)*G}%)`),!ce&&pe&&(te.transform=re=>`translateX(${(-100+100*re)*G}%) translateY(calc(-1 * ${1-re} * var(--f7-navbar-large-title-height)))`),ce&&!pe&&(te.className="ios-swipeback-navbar-bg-large",te.transform=re=>`translateX(${(-100+100*re)*G}%) translateY(calc(-${re} * var(--f7-navbar-large-title-height)))`),ce&&pe&&(te.transform=re=>`translateX(${(-100+100*re)*G}%)`);return}if(K.hasClass("title-large"))return;const he=K.hasClass("sliding")||v.children(".navbar-inner.sliding").length;if(N.indexOf(te)<0&&N.push(te),(!j||j&&!he)&&(te.opacity=re=>re**3),he){let re=te;if(Q&&q.length&&s.iosAnimateNavbarBackIcon){const de={el:q[0]};re=de,N.push(de)}re.transform=de=>{let Ee=re.el.f7NavbarLeftOffset*(1-de);return o.pixelRatio===1&&(Ee=Math.round(Ee)),j&&le?`translate3d(${Ee}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`:`translate3d(${Ee}px,0,0)`}}}),N}function L(N){let{progress:G,reset:ee,transition:X,reflow:se}=N===void 0?{}:N;const ne=["overflow","transform","transform-origin","opacity"];if(X===!0||X===!1)for(let ie=0;ie<$.length;ie+=1){const le=$[ie];le&&le.el&&(X===!0&&le.el.classList.add("navbar-page-transitioning"),X===!1&&le.el.classList.remove("navbar-page-transitioning"))}se&&$.length&&$[0]&&$[0].el&&($[0].el._clientLeft=$[0].el.clientLeft);for(let ie=0;ie<$.length;ie+=1){const le=$[ie];if(le&&le.el){le.className&&!le.classNameSet&&!ee&&(le.el.classList.add(le.className),le.classNameSet=!0),le.className&&ee&&le.el.classList.remove(le.className);for(let be=0;be0||C(N.target).closest(".page-master, .page-master-detail").length>0&&s.masterDetailBreakpoint>0&&r.width>=s.masterDetailBreakpoint||(c=!1,l=!0,u=void 0,d.x=N.type==="touchstart"?N.targetTouches[0].pageX:N.pageX,d.y=N.type==="touchstart"?N.targetTouches[0].pageY:N.pageY,w=It(),y=e.dynamicNavbar)}function H(N){if(!N.isTrusted||!l)return;const G=N.type==="touchmove"?N.targetTouches[0].pageX:N.pageX,ee=N.type==="touchmove"?N.targetTouches[0].pageY:N.pageY;if(typeof u>"u"&&(u=!!(u||Math.abs(ee-d.y)>Math.abs(G-d.x))||Gd.x&&r.rtl),u||N.f7PreventSwipeBack||r.preventSwipeBack){l=!1;return}if(!c){let be=!1;const oe=C(N.target),ce=oe.closest(".swipeout");ce.length>0&&(!r.rtl&&ce.find(".swipeout-actions-left").length>0&&(be=!0),r.rtl&&ce.find(".swipeout-actions-right").length>0&&(be=!0)),p=oe.closest(".page"),(p.hasClass("no-swipeback")||oe.closest(".no-swipeback, .card-opened").length>0)&&(be=!0),f=n.find(".page-previous"),f.length>1&&(f=f.eq(f.length-1));let pe=d.x-n.offset().left>F;if(h=n.width(),r.rtl?pe=d.xF,pe&&(be=!0),(f.length===0||p.length===0)&&(be=!0),be){l=!1;return}M&&(E=p.find(".page-shadow-effect"),E.length===0&&(E=C('
'),p.append(E))),x&&(k=f.find(".page-opacity-effect"),k.length===0&&(k=C('
'),f.append(k))),y&&(g=a.find(".navbar-current"),v=a.find(".navbar-previous"),v.length>1&&(v=v.eq(v.length-1)),$=P()),C(".sheet.modal-in").length>0&&r.sheet&&r.sheet.close(C(".sheet.modal-in"))}N.f7PreventSwipePanel=!0,c=!0,r.preventSwipePanelBySwipeBack=!0,N.preventDefault();const X=r.rtl?-1:1;m=(G-d.x-S)*X,m<0&&(m=0);const se=Math.min(Math.max(m/h,0),1),ne={percentage:se,progress:se,currentPageEl:p[0],previousPageEl:f[0],currentNavbarEl:g[0],previousNavbarEl:v[0]};n.trigger("swipeback:move",ne),e.emit("swipebackMove",ne);let ie=m*X,le=(m/5-h/5)*X;r.rtl?(ie=Math.max(ie,-h),le=Math.max(le,0)):(ie=Math.min(ie,h),le=Math.min(le,0)),o.pixelRatio===1&&(ie=Math.round(ie),le=Math.round(le)),e.swipeBackActive=!0,C([p[0],f[0]]).addClass("page-swipeback-active"),p.transform(`translate3d(${ie}px,0,0)`),M&&(E[0].style.opacity=1-1*se),r.theme==="ios"&&f.transform(`translate3d(${le}px,0,0)`),x&&(k[0].style.opacity=1-1*se),y&&L({progress:se})}function D(N){if(!N.isTrusted)return;if(r.preventSwipePanelBySwipeBack=!1,!l||!c){l=!1,c=!1;return}l=!1,c=!1,e.swipeBackActive=!1;const G=C([p[0],f[0]]);if(G.removeClass("page-swipeback-active"),m===0){G.transform(""),E&&E.length>0&&E.remove(),k&&k.length>0&&k.remove(),y&&L({reset:!0});return}const ee=It()-w;let X=!1;(ee<300&&m>10||ee>=300&&m>h/2)&&(p.removeClass("page-current").addClass(`page-next${r.theme!=="ios"?" page-next-on-right":""}`),f.removeClass("page-previous").addClass("page-current").removeAttr("aria-hidden"),E&&(E[0].style.opacity=""),k&&(k[0].style.opacity=""),y&&(e.setNavbarPosition(g,"next"),e.setNavbarPosition(v,"current",!1)),X=!0),G.addClass("page-transitioning page-transitioning-swipeback"),o.ios&&(p[0]._clientLeft=p[0].clientLeft),G.transform(""),y&&L({progress:X?1:0,transition:!0,reflow:!!o.ios}),b=!1,e.allowPageChange=!1;const se={currentPageEl:p[0],previousPageEl:f[0],currentNavbarEl:g[0],previousNavbarEl:v[0]};X?(e.currentRoute=f[0].f7Page.route,e.currentPage=f[0],e.pageCallback("beforeOut",p,g,"current","next",{route:p[0].f7Page.route,swipeBack:!0}),e.pageCallback("beforeIn",f,v,"previous","current",{route:f[0].f7Page.route,swipeBack:!0},p[0]),n.trigger("swipeback:beforechange",se),e.emit("swipebackBeforeChange",se)):(n.trigger("swipeback:beforereset",se),e.emit("swipebackBeforeReset",se)),p.transitionEnd(()=>{G.removeClass("page-transitioning page-transitioning-swipeback"),y&&L({reset:!0,transition:!1}),b=!0,e.allowPageChange=!0,X?(e.history.length===1&&e.history.unshift(e.url),e.history.pop(),e.saveHistory(),s.browserHistory&&ve.back(),e.pageCallback("afterOut",p,g,"current","next",{route:p[0].f7Page.route,swipeBack:!0}),e.pageCallback("afterIn",f,v,"previous","current",{route:f[0].f7Page.route,swipeBack:!0}),e.pageCallback("beforeRemove",p,g,"next",{swipeBack:!0}),e.removePage(p),y&&e.removeNavbar(g),n.trigger("swipeback:afterchange",se),e.emit("swipebackAfterChange",se),e.emit("routeChanged",e.currentRoute,e.previousRoute,e),s.preloadPreviousPage&&e.back(e.history[e.history.length-2],{preload:!0})):(n.trigger("swipeback:afterreset",se),e.emit("swipebackAfterReset",se)),E&&E.length>0&&E.remove(),k&&k.length>0&&k.remove()})}function O(){const N=r.touchEvents.start==="touchstart"&&i.passiveListener?{passive:!0,capture:!1}:!1;n.on(r.touchEvents.start,V,N),r.on("touchmove:active",H),r.on("touchend:passive",D)}function _(){const N=r.touchEvents.start==="touchstart"&&i.passiveListener?{passive:!0,capture:!1}:!1;n.off(r.touchEvents.start,V,N),r.off("touchmove:active",H),r.off("touchend:passive",D)}O(),e.on("routerDestroy",_)}function dc(t,e,n){const a=this,r=e.route.redirect,s=t==="forward"?"navigate":"back";n.initial&&a.params.browserHistory&&(n.replaceState=!0,n.history=!0);function i(l,c){c===void 0&&(c={}),a.allowPageChange=!0,a[s](l,W({},n,c))}function o(){a.allowPageChange=!0}if(typeof r=="function"){a.allowPageChange=!1;const l=r.call(a,{router:a,to:e,resolve:i,reject:o,direction:t,app:a.app});return l&&typeof l=="string"?(a.allowPageChange=!0,a[s](l,n)):a}return a[s](r,n)}function oo(t,e,n,a,r,s,i,o){const l=[];Array.isArray(n)?l.push(...n):n&&typeof n=="function"&&l.push(n),e&&(Array.isArray(e)?l.push(...e):l.push(e));function c(){if(l.length===0){s();return}l.shift().call(t,{router:t,to:a,from:r,resolve(){c()},reject(){i()},direction:o,app:t.app})}c()}function xs(t,e,n,a,r){const s=this;function i(){t&&t.route&&(s.params.routesBeforeEnter||t.route.beforeEnter)?(s.allowPageChange=!1,oo(s,s.params.routesBeforeEnter,t.route.beforeEnter,t,e,()=>{s.allowPageChange=!0,n()},()=>{a()},r)):n()}function o(){e&&e.route&&(s.params.routesBeforeLeave||e.route.beforeLeave)?(s.allowPageChange=!1,oo(s,s.params.routesBeforeLeave,e.route.beforeLeave,t,e,()=>{s.allowPageChange=!0,i()},()=>{a()},r)):i()}o()}function la(t,e){if(!t.view)throw new Error(`Framework7: it is not allowed to use router methods on global app router. Use router methods only on related View, e.g. app.views.main.router.${e}(...)`)}function Or(t,e,n,a){function r(i){i.then(o=>{n({component:o.default||o._default||o})}).catch(o=>{throw a(),new Error(o,{cause:o})})}if(e instanceof Promise){r(e);return}const s=e.call(t);s instanceof Promise?r(s):n({component:s})}function Ky(t){t===void 0&&(t={});const e=this;return la(e,"refreshPage"),e.navigate(e.currentRoute.url,{ignoreCache:!0,reloadCurrent:!0,props:t})}function pa(t,e,n){n===void 0&&(n={});const a=ye(),r=C(e),s=t.app,i=t.view,o=W(!1,{animate:t.params.animate,browserHistory:!0,replaceState:!1,history:!0,reloadCurrent:t.params.reloadPages,reloadPrevious:!1,reloadAll:!1,clearPreviousHistory:!1,reloadDetail:t.params.reloadDetail,on:{}},n),l=t.params.masterDetailBreakpoint>0,c=l&&o.route&&o.route.route&&(o.route.route.master===!0||typeof o.route.route.master=="function"&&o.route.route.master(s,t));let d,u,p=0,f=t.currentRoute.modal,h;if(f||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(D=>{t.currentRoute&&t.currentRoute.route&&t.currentRoute.route[D]&&(f=!0,h=D)}),f){const D=t.currentRoute.modal||t.currentRoute.route.modalInstance||s[h].get(),O=t.history[t.history.length-2];let _=t.findMatchingRoute(O);!_&&O&&(_={url:O,path:O.split("?")[0],query:La(O),route:{path:O.split("?")[0],url:O}}),t.modalRemove(D)}const m=t.dynamicNavbar,b=t.$el,w=r,g=o.reloadPrevious||o.reloadCurrent||o.reloadAll;let v,y,E,k;if(t.allowPageChange=!1,w.length===0)return t.allowPageChange=!0,t;w.length&&t.removeThemeElements(w),m&&(E=w.children(".navbar"),y=t.$navbarsEl,E.length===0&&w[0]&&w[0].f7Page&&(E=w[0].f7Page.$navbarEl)),o.route&&o.route.route&&o.route.route.keepAlive&&!o.route.route.keepAliveData&&(o.route.route.keepAliveData={pageEl:r[0]});const $=b.children(".page").filter(D=>D!==w[0]);let M;if(m&&(M=y.children(".navbar").filter(D=>D!==E[0])),o.reloadPrevious&&$.length<2)return t.allowPageChange=!0,t;let x,F,S;if(l&&!o.reloadAll){for(let D=0;D<$.length;D+=1)if(!d&&$[D].classList.contains("page-master")){d=$[D];continue}if(x=!c&&d,x&&d){for(let D=0;D<$.length;D+=1)if($[D].classList.contains("page-master-detail")){u=$[D];continue}}F=x&&o.reloadDetail&&s.width>=t.params.masterDetailBreakpoint&&d}x&&(S=!u||F||o.reloadAll||o.reloadCurrent);let I="next";if(o.reloadCurrent||o.reloadAll||F?I="current":o.reloadPrevious&&(I="previous"),w.removeClass("page-previous page-current page-next").addClass(`page-${I}${c?" page-master":""}${x?" page-master-detail":""}${S?" page-master-detail-root":""}`).trigger("page:unstack").trigger("page:position",{position:I}),t.emit("pageUnstack",w[0]),t.emit("pagePosition",w[0],I),(c||x)&&(w.trigger("page:role",{role:c?"master":"detail",root:!!S}),t.emit("pageRole",w[0],{role:c?"master":"detail",detailRoot:!!S})),m&&E.length&&(E.removeClass("navbar-previous navbar-current navbar-next").addClass(`navbar-${I}${c?" navbar-master":""}${x?" navbar-master-detail":""}${S?" navbar-master-detail-root":""}`),E.trigger("navbar:position",{position:I}),t.emit("navbarPosition",E[0],I),(c||x)&&t.emit("navbarRole",E[0],{role:c?"master":"detail",detailRoot:!!S})),o.reloadCurrent||F)F?(v=$.filter(D=>!D.classList.contains("page-master")),m&&(k=C(v.map(D=>s.navbar.getElByPage(D)))),v.length>1&&d&&(p=v.length-1,C(d).removeClass("page-master-stacked").trigger("page:masterunstack"),t.emit("pageMasterUnstack",d),m&&(C(s.navbar.getElByPage(d)).removeClass("navbar-master-stacked"),t.emit("navbarMasterUnstack",s.navbar.getElByPage(d))))):(v=$.eq($.length-1),m&&(k=C(s.navbar.getElByPage(v))));else if(o.reloadPrevious)v=$.eq($.length-2),m&&(k=C(s.navbar.getElByPage(v)));else if(o.reloadAll)v=$.filter(D=>D!==w[0]),m&&(k=M.filter(D=>D!==E[0]));else{let D=[],O=[];if($.length>1){let _=0;for(_=0;_<$.length-1;_+=1){if(d&&$[_]===d){$.eq(_).addClass("page-master-stacked"),$.eq(_).trigger("page:masterstack"),t.emit("pageMasterStack",$[_]),m&&(C(s.navbar.getElByPage(d)).addClass("navbar-master-stacked"),t.emit("navbarMasterStack",s.navbar.getElByPage(d)));continue}const N=s.navbar.getElByPage($.eq(_));D.push($[_]),t.pageCallback("beforeRemove",$[_],M&&M[_],"previous",void 0,o),t.removePage($[_]),m&&N&&(O.push(N),t.removeNavbar(N))}}v=b.children(".page").filter(_=>_!==w[0]&&D.indexOf(_)<0),m&&(k=y.children(".navbar").filter(_=>_!==E[0]&&O.indexOf(O)<0)),D=[],O=[]}if(x&&!o.reloadAll&&((v.length>1||F)&&(v=v.filter(D=>!D.classList.contains("page-master"))),k&&(k.length>1||F)&&(k=k.filter(D=>!D.classList.contains("navbar-master")))),t.params.browserHistory&&(o.browserHistory||o.replaceState)&&!o.reloadPrevious){const D=t.params.browserHistoryRoot||"";ve[o.reloadCurrent||F&&u||o.reloadAll||o.replaceState?"replace":"push"](i.id,{url:o.route.url},D+t.params.browserHistorySeparator+o.route.url)}o.reloadPrevious||(t.currentPageEl=w[0],m&&E.length?t.currentNavbarEl=E[0]:delete t.currentNavbarEl,t.currentRoute=o.route);const B=o.route.url;o.history&&(((o.reloadCurrent||F&&u)&&t.history.length)>0||o.replaceState?(F&&p>0&&(t.history=t.history.slice(0,t.history.length-p),t.propsHistory=t.propsHistory.slice(0,t.propsHistory.length-p)),t.history[t.history.length-(o.reloadPrevious?2:1)]=B,t.propsHistory[t.propsHistory.length-(o.reloadPrevious?2:1)]=o.props||{}):o.reloadPrevious?(t.history[t.history.length-2]=B,t.propsHistory[t.propsHistory.length-2]=o.props||{}):o.reloadAll?(t.history=[B],t.propsHistory=[o.props||{}]):(t.history.push(B),t.propsHistory.push(o.props||{}))),t.saveHistory();const P=w.parents(a).length>0,L=w[0].f7Component;if(o.reloadPrevious?(L&&!P?L.mount(D=>{C(D).insertBefore(v)}):w.insertBefore(v),m&&E.length&&(E.find(".title-large").length&&E.addClass("navbar-large"),k.length?E.insertBefore(k):(t.$navbarsEl.parents(a).length||t.$el.prepend(t.$navbarsEl),y.append(E)))):(v.next(".page")[0]!==w[0]&&(L&&!P?L.mount(D=>{b.append(D)}):b.append(w[0])),m&&E.length&&(E.find(".title-large").length&&E.addClass("navbar-large"),t.$navbarsEl.parents(a).length||t.$el.prepend(t.$navbarsEl),y.append(E[0]))),P?o.route&&o.route.route&&o.route.route.keepAlive&&!w[0].f7PageMounted&&(w[0].f7PageMounted=!0,t.pageCallback("mounted",w,E,I,g?I:"current",o,v)):t.pageCallback("mounted",w,E,I,g?I:"current",o,v),(o.reloadCurrent||F)&&v.length>0?(t.pageCallback("beforeOut",v,k,"current",void 0,o),t.pageCallback("afterOut",v,k,"current",void 0,o),t.pageCallback("beforeRemove",v,k,"current",void 0,o),t.removePage(v),m&&k&&k.length&&t.removeNavbar(k)):o.reloadAll?v.each((D,O)=>{const _=C(D),N=C(s.navbar.getElByPage(_));_.hasClass("page-current")&&(t.pageCallback("beforeOut",v,k,"current",void 0,o),t.pageCallback("afterOut",v,k,"current",void 0,o)),t.pageCallback("beforeRemove",_,k&&k.eq(O),"previous",void 0,o),t.removePage(_),m&&N.length&&t.removeNavbar(N)}):o.reloadPrevious&&(t.pageCallback("beforeRemove",v,k,"previous",void 0,o),t.removePage(v),m&&k&&k.length&&t.removeNavbar(k)),o.route.route.tab&&t.tabLoad(o.route.route.tab,W({},o,{history:!1,browserHistory:!1})),l&&i.checkMasterDetailBreakpoint(),t.pageCallback("init",w,E,I,g?I:"current",o,v),o.reloadCurrent||o.reloadAll||F)return t.allowPageChange=!0,t.pageCallback("beforeIn",w,E,I,"current",o),w.removeAttr("aria-hidden"),m&&E&&E.removeAttr("aria-hidden"),t.pageCallback("afterIn",w,E,I,"current",o),o.reloadCurrent&&o.clearPreviousHistory&&t.clearPreviousHistory(),F&&(t.setPagePosition(C(d),"previous"),d.f7Page&&d.f7Page.navbarEl&&t.setNavbarPosition(C(d.f7Page.navbarEl),"previous")),t;if(o.reloadPrevious)return t.allowPageChange=!0,t;t.pageCallback("beforeOut",v,k,"current","previous",o),t.pageCallback("beforeIn",w,E,"next","current",o);function V(){t.setPagePosition(w,"current",!1),t.setPagePosition(v,"previous",!v.hasClass("page-master")),m&&(t.setNavbarPosition(E,"current",!1),t.setNavbarPosition(k,"previous",!k.hasClass("navbar-master"))),t.allowPageChange=!0,t.pageCallback("afterOut",v,k,"current","previous",o),t.pageCallback("afterIn",w,E,"next","current",o);let D=(t.params.preloadPreviousPage||t.params[`${s.theme}SwipeBack`])&&!c;D||(w.hasClass("smart-select-page")||w.hasClass("photo-browser-page")||w.hasClass("autocomplete-page")||w.hasClass("color-picker-page"))&&(D=!0),D||w.attr("data-name")&&w.attr("data-name")==="smart-select-page"||(t.pageCallback("beforeRemove",v,k,"previous",void 0,o),t.removePage(v),m&&k.length&&t.removeNavbar(k)),o.clearPreviousHistory&&t.clearPreviousHistory(),t.emit("routeChanged",t.currentRoute,t.previousRoute,t),t.params.browserHistory&&ve.clearRouterQueue()}function H(){t.setPagePosition(v,"current",!1),t.setPagePosition(w,"next",!1),m&&(t.setNavbarPosition(k,"current",!1),t.setNavbarPosition(E,"next",!1))}if(o.animate&&!(c&&s.width>=t.params.masterDetailBreakpoint)){const D=t.params[`${t.app.theme}PageLoadDelay`];let O=t.params.transition;o.transition&&(O=o.transition),!O&&t.currentRoute&&t.currentRoute.route&&(O=t.currentRoute.route.transition),!O&&t.currentRoute&&t.currentRoute.route.options&&(O=t.currentRoute.route.options.transition),O&&(w[0].f7PageTransition=O),D?setTimeout(()=>{H(),t.animate(v,w,k,E,"forward",O,()=>{V()})},D):(H(),t.animate(v,w,k,E,"forward",O,()=>{V()}))}else V();return t}function Kr(t,e,n,a){if(e===void 0&&(e={}),n===void 0&&(n={}),!t.allowPageChange&&!a)return t;const r=e,s=n,{url:i,content:o,el:l,pageName:c,component:d,componentUrl:u}=r;if(!s.reloadCurrent&&s.route&&s.route.route&&s.route.route.parentPath&&t.currentRoute.route&&t.currentRoute.route.parentPath===s.route.route.parentPath){if(s.route.url===t.url)return t.allowPageChange=!0,!1;let h=Object.keys(s.route.params).length===Object.keys(t.currentRoute.params).length;if(h&&Object.keys(s.route.params).forEach(m=>{(!(m in t.currentRoute.params)||t.currentRoute.params[m]!==s.route.params[m])&&(h=!1)}),h)return s.route.route.tab?t.tabLoad(s.route.route.tab,s):!1;if(!h&&s.route.route.tab&&t.currentRoute.route.tab&&t.currentRoute.parentPath===s.route.parentPath)return t.tabLoad(s.route.route.tab,s)}if(s.route&&s.route.url&&t.url===s.route.url&&!(s.reloadCurrent||s.reloadPrevious)&&!t.params.allowDuplicateUrls)return t.allowPageChange=!0,!1;!s.route&&i&&(s.route=t.parseRouteUrl(i),W(s.route,{route:{url:i,path:i}}));function p(h,m){return pa(t,h,W(s,m))}function f(){return t.allowPageChange=!0,t}if((i||u||d)&&(t.allowPageChange=!1),o)pa(t,t.getPageEl(o),s);else if(l)pa(t,t.getPageEl(l),s);else if(c)pa(t,t.$el.children(`.page[data-name="${c}"]`).eq(0),s);else if(d||u)try{t.pageComponentLoader({routerEl:t.el,component:d,componentUrl:u,options:s,resolve:p,reject:f})}catch(h){throw t.allowPageChange=!0,h}else i&&(t.xhrAbortController&&(t.xhrAbortController.abort(),t.xhrAbortController=!1),t.xhrRequest(i,s).then(h=>{pa(t,t.getPageEl(h),s)}).catch(()=>{t.allowPageChange=!0}));return t}function Qy(t,e){e===void 0&&(e={});const n=this;if(n.swipeBackActive)return n;let a,r,s,i,o,l,c;if(typeof t=="string"?a=t:(a=t.url,r=t.route,s=t.name,i=t.path,o=t.query,l=t.params),s||i)return a=n.generateUrl({path:i,name:s,params:l,query:o}),a?n.navigate(a,e):n;const d=n.app;if(la(n,"navigate"),a==="#"||a==="")return n;let u=a.replace("./","");if(u[0]!=="/"&&u.indexOf("#")!==0){const m=n.currentRoute.parentPath||n.currentRoute.path;u=((m?`${m}/`:"/")+u).replace("///","/").replace("//","/")}if(r?c=W(n.parseRouteUrl(u),{route:W({},r)}):c=n.findMatchingRoute(u),!c)return n;if(c.route&&c.route.viewName){const m=c.route.viewName,b=d.views[m];if(!b)throw new Error(`Framework7: There is no View with "${m}" name that was specified in this route`);if(b!==n.view)return b.router.navigate(t,e)}if(c.route.redirect)return dc.call(n,"forward",c,e);const p={};if(c.route.options?W(p,c.route.options,e):W(p,e),p.openIn&&(!n.params.ignoreOpenIn||n.params.ignoreOpenIn&&n.history.length>0))return n.openIn(n,u,p);p.route=c;function f(){let m=!1;if("popup popover sheet loginScreen actions customModal panel".split(" ").forEach(g=>{c.route[g]&&!m&&(m=!0,n.modalLoad(g,c,p,"forward"))}),c.route.keepAlive&&c.route.keepAliveData&&(Kr(n,{el:c.route.keepAliveData.pageEl},p,!1),m=!0),"url content component pageName el componentUrl".split(" ").forEach(g=>{c.route[g]&&!m&&(m=!0,Kr(n,{[g]:c.route[g]},p,!1))}),m)return;function b(g,v){n.allowPageChange=!1;let y=!1;"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(E=>{if(g[E]){y=!0;const k=W({},c,{route:g});n.allowPageChange=!0,n.modalLoad(E,k,W(p,v),"forward")}}),!y&&Kr(n,g,W(p,v),!0)}function w(){n.allowPageChange=!0}c.route.async&&(n.allowPageChange=!1,c.route.async.call(n,{router:n,to:p.route,from:n.currentRoute,resolve:b,reject:w,direction:"forward",app:d})),c.route.asyncComponent&&Or(n,c.route.asyncComponent,b,w)}function h(){n.allowPageChange=!0}if(n.params.masterDetailBreakpoint>0&&c.route.masterRoute){let m=!0,b=!1;if(n.currentRoute&&n.currentRoute.route&&((n.currentRoute.route.master===!0||typeof n.currentRoute.route.master=="function"&&n.currentRoute.route.master(d,n))&&(n.currentRoute.route===c.route.masterRoute||n.currentRoute.route.path===c.route.masterRoute.path)&&(m=!1),n.currentRoute.route.masterRoute&&(n.currentRoute.route.masterRoute===c.route.masterRoute||n.currentRoute.route.masterRoute.path===c.route.masterRoute.path)&&(m=!1,b=!0)),m||b&&e.reloadAll)return n.navigate({path:c.route.masterRoute.path,params:c.params||{}},{animate:!1,reloadAll:e.reloadAll,reloadCurrent:e.reloadCurrent,reloadPrevious:e.reloadPrevious,browserHistory:!e.initial,history:!e.initial,once:{pageAfterIn(){n.navigate(t,W({},e,{animate:!1,reloadAll:!1,reloadCurrent:!1,reloadPrevious:!1,history:!e.initial,browserHistory:!e.initial}))}}}),n}return xs.call(n,c,n.currentRoute,()=>{c.route.modules?d.loadModules(Array.isArray(c.route.modules)?c.route.modules:[c.route.modules]).then(()=>{f()}).catch(()=>{h()}):f()},()=>{h()},"forward"),n}function Jy(t,e){e===void 0&&(e={});const n=this,a=W({animate:n.params.animate,browserHistory:!0,history:!0,parentPageEl:null,preload:!1,on:{}},e);let r,s;a.route&&(!a.preload&&a.route!==n.currentRoute&&(s=n.previousRoute,n.currentRoute=a.route),a.preload?(r=a.route,s=n.currentRoute):(r=n.currentRoute,s||(s=n.previousRoute)),n.params.browserHistory&&a.browserHistory&&!a.reloadPrevious&&ve[n.params.browserHistoryTabs](n.view.id,{url:a.route.url},(n.params.browserHistoryRoot||"")+n.params.browserHistorySeparator+a.route.url),a.history&&(n.history[Math.max(n.history.length-1,0)]=a.route.url,n.saveHistory()));const i=C(a.parentPageEl||n.currentPageEl);let o;i.length&&i.find(`#${t.id}`).length?o=i.find(`#${t.id}`).eq(0):n.view.selector?o=`${n.view.selector} #${t.id}`:o=`#${t.id}`;const l=n.app.tab.show({tabEl:o,animate:a.animate,tabRoute:a.route}),{$newTabEl:c,$oldTabEl:d,animated:u,onTabsChanged:p}=l;if(c&&c.parents(".page").length>0&&a.route){const g=c.parents(".page")[0].f7Page;g&&a.route&&(g.route=a.route)}function f(g){n.removeThemeElements(c);let v=c;typeof g!="string"&&(v=C(g)),v.trigger("tab:init tab:mounted",t),n.emit("tabInit tabMounted",c[0],t),d&&d.length&&(u?p(()=>{n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n.params.unloadTabContent&&n.tabRemove(d,c,t)}):(n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n.params.unloadTabContent&&n.tabRemove(d,c,t)))}if(c[0].f7RouterTabLoaded)return!d||!d.length||(u?p(()=>{n.emit("routeChanged",n.currentRoute,n.previousRoute,n)}):n.emit("routeChanged",n.currentRoute,n.previousRoute,n)),n;function h(g,v){const{url:y,content:E,el:k,component:$,componentUrl:M}=g;function x(S){n.allowPageChange=!0,S&&(typeof S=="string"?c.html(S):(c.html(""),S.f7Component?S.f7Component.mount(I=>{c.append(I)}):c.append(S)),c[0].f7RouterTabLoaded=!0,f(S))}function F(){return n.allowPageChange=!0,n}if(E)x(E);else if(k)x(k);else if($||M)try{n.tabComponentLoader({tabEl:c[0],component:$,componentUrl:M,options:v,resolve:x,reject:F})}catch(S){throw n.allowPageChange=!0,S}else y&&(n.xhrAbortController&&(n.xhrAbortController.abort(),n.xhrAbortController=!1),n.xhrRequest(y,v).then(S=>{x(S)}).catch(()=>{n.allowPageChange=!0}))}let m;"url content component el componentUrl".split(" ").forEach(g=>{t[g]&&(m=!0,h({[g]:t[g]},a))});function b(g,v){h(g,W(a,v))}function w(){n.allowPageChange=!0}return t.async?t.async.call(n,{router:n,to:r,from:s,resolve:b,reject:w,app:n.app}):t.asyncComponent?Or(n,t.asyncComponent,b,w):m||(n.allowPageChange=!0),n}function Zy(t,e,n){const a=this;let r;t[0]&&(t[0].f7RouterTabLoaded=!1,delete t[0].f7RouterTabLoaded),t.children().each(s=>{s.f7Component&&(r=!0,C(s).trigger("tab:beforeremove",n),s.f7Component.destroy())}),r||t.trigger("tab:beforeremove",n),a.emit("tabBeforeRemove",t[0],e[0],n),a.removeTabContent(t[0],n)}function e1(t,e,n,a){n===void 0&&(n={});const r=this,s=r.app,i=t==="panel",o=i?"panel":"modal",l=W({animate:r.params.animate,browserHistory:!0,history:!0,on:{},once:{}},n),c=W({},e.route[t]),d=e.route,u=(w,g)=>{const{on:v,once:y}=l;let E;g==="open"&&(E=v.modalOpen||y.modalOpen||v.panelOpen||y.panelOpen),g==="close"&&(E=v.modalClose||y.modalClose||v.panelClose||y.panelClose),g==="closed"&&(E=v.modalClosed||y.modalClosed||v.panelClosed||y.panelClosed),E&&E(w)};function p(){const w=s[t].create(c);d.modalInstance=w;const g=w.el;function v(){w.close()}w.on(`${o}Open`,()=>{g||(r.removeThemeElements(w.el),w.$el.trigger(`${t.toLowerCase()}:init ${t.toLowerCase()}:mounted`,e,w),r.emit(`${i?"":"modalInit"} ${t}Init ${t}Mounted`,w.el,e,w)),r.once("swipeBackMove",v),u(w,"open")}),w.on(`${o}Close`,()=>{r.off("swipeBackMove",v),w.closeByRouter||r.back(),u(w,"close")}),w.on(`${o}Closed`,()=>{w.$el.trigger(`${t.toLowerCase()}:beforeremove`,e,w),w.emit(`${i?"":"modalBeforeRemove "}${t}BeforeRemove`,w.el,e,w);const y=w.el.f7Component;u(w,"closed"),y&&y.destroy(),lt(()=>{(y||c.component||c.asyncComponent||c.async)&&r.removeModal(w.el),w.destroy(),delete w.route,delete d.modalInstance})}),l.route&&(r.params.browserHistory&&l.browserHistory&&ve.push(r.view.id,{url:l.route.url,modal:t},(r.params.browserHistoryRoot||"")+r.params.browserHistorySeparator+l.route.url),l.route!==r.currentRoute&&(w.route=W(l.route,{modal:w}),r.currentRoute=w.route),l.history&&!l.reloadCurrent&&(r.history.push(l.route.url),r.saveHistory())),g&&(r.removeThemeElements(w.el),w.$el.trigger(`${t.toLowerCase()}:init ${t.toLowerCase()}:mounted`,e,w),r.emit(`${o}Init ${t}Init ${t}Mounted`,w.el,e,w)),w.open(l.animate===!1||l.animate===!0?l.animate:void 0)}function f(w,g){const{url:v,content:y,component:E,componentUrl:k}=w;function $(x){x&&(typeof x=="string"?c.content=x:x.f7Component?x.f7Component.mount(F=>{c.el=F,s.$el.append(F)}):c.el=x,p())}function M(){return r.allowPageChange=!0,r}if(y)$(y);else if(E||k)try{r.modalComponentLoader({rootEl:s.el,component:E,componentUrl:k,options:g,resolve:$,reject:M})}catch(x){throw r.allowPageChange=!0,x}else v?(r.xhrAbortController&&(r.xhrAbortController.abort(),r.xhrAbortController=!1),r.xhrRequest(v,g).then(x=>{c.content=x,p()}).catch(()=>{r.allowPageChange=!0})):p()}let h;"url content component el componentUrl template".split(" ").forEach(w=>{c[w]&&!h&&(h=!0,f({[w]:c[w]},l))}),!h&&t==="actions"&&p();function m(w,g){f(w,W(l,g))}function b(){r.allowPageChange=!0}return c.async&&c.async.call(r,{router:r,to:l.route,from:r.currentRoute,resolve:m,reject:b,direction:a,app:s}),c.asyncComponent&&Or(r,c.asyncComponent,m,b),r}function t1(t){W(t,{closeByRouter:!0}),t.close()}function fa(t,e,n){const a=Ie(),r=ye(),s=C(e),i=t.app,o=t.view,l=W(!1,{animate:t.params.animate,browserHistory:!0,replaceState:!1},n),c=t.params.masterDetailBreakpoint>0,d=c&&l.route&&l.route.route&&(l.route.route.master===!0||typeof l.route.route.master=="function"&&l.route.route.master(i,t));let u,p;const f=t.dynamicNavbar,h=s,m=t.$el.children(".page-current"),b=m.length===0&&l.preload,w=c&&m.hasClass("page-master");h.length&&t.removeThemeElements(h);let g,v,y;if(f&&(v=h.children(".navbar"),g=t.$navbarsEl,v.length===0&&h[0]&&h[0].f7Page&&(v=h[0].f7Page.$navbarEl),y=g.find(".navbar-current")),t.allowPageChange=!1,h.length===0||m.length===0&&!l.preload)return t.allowPageChange=!0,t;t.removeThemeElements(h),l.route&&l.route.route&&l.route.route.keepAlive&&!l.route.route.keepAliveData&&(l.route.route.keepAliveData={pageEl:s[0]});let E,k;if(c){const B=t.$el.children(".page").filter(P=>P!==h[0]);for(let P=0;Pt.history.indexOf(u.f7Page.route.url),!E&&!d&&u&&u.f7Page&&l.route.route.masterRoute&&(E=l.route.route.masterRoute.path===u.f7Page.route.route.path)}E&&u&&u.f7Page&&(k=t.history.indexOf(l.route.url)-t.history.indexOf(u.f7Page.route.url)===1),h.addClass(`page-${b?"current":"previous"}${d?" page-master":""}${E?" page-master-detail":""}${k?" page-master-detail-root":""}`).removeAttr("aria-hidden").trigger("page:unstack").trigger("page:position",{position:b?"current":"previous"}),t.emit("pageUnstack",h[0]),t.emit("pagePosition",h[0],b?"current":"previous"),(d||E)&&(h.trigger("page:role",{role:d?"master":"detail",root:!!k}),t.emit("pageRole",h[0],{role:d?"master":"detail",detailRoot:!!k})),f&&v.length>0&&(v.addClass(`navbar-${b?"current":"previous"}${d?" navbar-master":""}${E?" navbar-master-detail":""}${k?" navbar-master-detail-root":""}`).removeAttr("aria-hidden"),v.trigger("navbar:position",{position:b?"current":"previous"}),t.emit("navbarPosition",v[0],b?"current":"previous"),(d||k)&&t.emit("navbarRole",v[0],{role:d?"master":"detail",detailRoot:!!k}));let $;if(l.force&&m.prev(".page-previous").length>=0){t.history.indexOf(l.route.url)>=0?($=t.history.length-t.history.indexOf(l.route.url)-1,t.history=t.history.slice(0,t.history.indexOf(l.route.url)+2),t.propsHistory=t.propsHistory.slice(0,t.history.indexOf(l.route.url)+2),o.history=t.history):t.history[[t.history.length-2]]?t.propsHistory[t.propsHistory.length-2]=l.props||{}:(t.history.unshift(t.url),t.propsHistory.unshift(l.props||{}));const B=m.prev(".page-previous");let P;f&&(P=C(i.navbar.getElByPage(B))),B.length>0&&(t.pageCallback("beforeRemove",B,P,"previous",void 0,l),B[0]===u&&(p=!0),t.removePage(B),f&&P.length&&t.removeNavbar(P))}const M=h.parents(r).length>0,x=h[0].f7Component;function F(){b&&(!M&&x?x.mount(B=>{t.$el.append(B)}):t.$el.append(h)),h.next(m).length===0&&(!M&&x?x.mount(B=>{C(B).insertBefore(m)}):h.insertBefore(m)),f&&v.length&&(v.find(".title-large").length&&v.addClass("navbar-large"),v.insertBefore(y),y.length>0?v.insertBefore(y):(t.$navbarsEl.parents(r).length||t.$el.prepend(t.$navbarsEl),g.append(v))),M?l.route&&l.route.route&&l.route.route.keepAlive&&!h[0].f7PageMounted&&(h[0].f7PageMounted=!0,t.pageCallback("mounted",h,v,"previous","current",l,m)):t.pageCallback("mounted",h,v,"previous","current",l,m)}if(l.preload){F(),l.route.route.tab&&t.tabLoad(l.route.route.tab,W({},l,{history:!1,browserHistory:!1,preload:!0})),d&&(h.removeClass("page-master-stacked").trigger("page:masterunstack"),t.emit("pageMasterUnstack",h[0]),f&&(C(i.navbar.getElByPage(h)).removeClass("navbar-master-stacked"),t.emit("navbarMasterUnstack",i.navbar.getElByPage(h)))),t.pageCallback("init",h,v,"previous","current",l,m),b&&(t.pageCallback("beforeIn",h,v,"current",void 0,l),t.pageCallback("afterIn",h,v,"current",void 0,l));const B=h.prevAll(".page-previous:not(.page-master)");return B.length>0&&B.each(P=>{const L=C(P);let V;f&&(V=C(i.navbar.getElByPage(L))),t.pageCallback("beforeRemove",L,V,"previous",void 0),t.removePage(L),f&&V.length&&t.removeNavbar(V)}),t.allowPageChange=!0,t}if(!(a.ie||a.edge||a.firefox&&!a.ios)&&t.params.browserHistory&&l.browserHistory)if(l.replaceState){const B=t.params.browserHistoryRoot||"";ve.replace(o.id,{url:l.route.url},B+t.params.browserHistorySeparator+l.route.url)}else $?ve.go(-$):ve.back();if(l.replaceState?(t.history[t.history.length-1]=l.route.url,t.propsHistory[t.propsHistory.length-1]=l.props||{}):(t.history.length===1&&(t.history.unshift(t.url),t.propsHistory.unshift(l.props||{})),t.history.pop(),t.propsHistory.pop()),t.saveHistory(),t.currentPageEl=h[0],f&&v.length?t.currentNavbarEl=v[0]:delete t.currentNavbarEl,t.currentRoute=l.route,(a.ie||a.edge||a.firefox&&!a.ios)&&t.params.browserHistory&&l.browserHistory)if(l.replaceState){const B=t.params.browserHistoryRoot||"";ve.replace(o.id,{url:l.route.url},B+t.params.browserHistorySeparator+l.route.url)}else $?ve.go(-$):ve.back();F(),l.route.route.tab&&t.tabLoad(l.route.route.tab,W({},l,{history:!1,browserHistory:!1})),c&&(w||p)&&o.checkMasterDetailBreakpoint(!1),t.pageCallback("init",h,v,"previous","current",l,m),t.pageCallback("beforeOut",m,y,"current","next",l),t.pageCallback("beforeIn",h,v,"previous","current",l);function S(){t.setPagePosition(h,"current",!1),t.setPagePosition(m,"next",!0),f&&(t.setNavbarPosition(v,"current",!1),t.setNavbarPosition(y,"next",!0)),t.pageCallback("afterOut",m,y,"current","next",l),t.pageCallback("afterIn",h,v,"previous","current",l),t.pageCallback("beforeRemove",m,y,"next",void 0,l),t.removePage(m),f&&y.length&&t.removeNavbar(y),t.allowPageChange=!0,t.emit("routeChanged",t.currentRoute,t.previousRoute,t),(t.params.preloadPreviousPage||t.params[`${i.theme}SwipeBack`])&&t.history[t.history.length-2]&&!d&&t.back(t.history[t.history.length-2],{preload:!0,props:t.propsHistory[t.propsHistory.length-2]||{}}),t.params.browserHistory&&ve.clearRouterQueue()}function I(){t.setPagePosition(m,"current"),t.setPagePosition(h,"previous",!1),f&&(t.setNavbarPosition(y,"current"),t.setNavbarPosition(v,"previous",!1))}if(l.animate&&!(w&&i.width>=t.params.masterDetailBreakpoint)){let B=t.params.transition;m[0]&&m[0].f7PageTransition&&(B=m[0].f7PageTransition,delete m[0].f7PageTransition),l.transition&&(B=l.transition),!B&&t.previousRoute&&t.previousRoute.route&&(B=t.previousRoute.route.transition),!B&&t.previousRoute&&t.previousRoute.route&&t.previousRoute.route.options&&(B=t.previousRoute.route.options.transition),I(),t.animate(m,h,y,v,"backward",B,()=>{S()})}else S();return t}function Qa(t,e,n,a){if(!t.allowPageChange&&!a)return t;const r=e,s=n,{url:i,content:o,el:l,pageName:c,component:d,componentUrl:u}=r;if(s.route.url&&t.url===s.route.url&&!(s.reloadCurrent||s.reloadPrevious)&&!t.params.allowDuplicateUrls)return t.allowPageChange=!0,!1;!s.route&&i&&(s.route=t.parseRouteUrl(i));function p(h,m){return fa(t,h,W(s,m))}function f(){return t.allowPageChange=!0,t}if((i||u||d)&&(t.allowPageChange=!1),o)fa(t,t.getPageEl(o),s);else if(l)fa(t,t.getPageEl(l),s);else if(c)fa(t,t.$el.children(`.page[data-name="${c}"]`).eq(0),s);else if(d||u)try{t.pageComponentLoader({routerEl:t.el,component:d,componentUrl:u,options:s,resolve:p,reject:f})}catch(h){throw t.allowPageChange=!0,h}else i&&(t.xhrAbortController&&(t.xhrAbortController.abort(),t.xhrAbortController=!1),t.xhrRequest(i,s).then(h=>{fa(t,t.getPageEl(h),s)}).catch(()=>{t.allowPageChange=!0}));return t}function n1(){const t=this,e=Ie();if(t.swipeBackActive)return t;let n,a,r,s;typeof(arguments.length<=0?void 0:arguments[0])=="object"?a=(arguments.length<=0?void 0:arguments[0])||{}:(n=arguments.length<=0?void 0:arguments[0],a=(arguments.length<=1?void 0:arguments[1])||{});const{name:i,params:o,query:l}=a;if(i)return n=t.generateUrl({name:i,params:o,query:l}),n?t.back(n,W({},a,{name:null,params:null,query:null})):t;const c=t.app;la(t,"back");let d=t.currentRoute.modal,u;if(d||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(w=>{t.currentRoute.route[w]&&(d=!0,u=w)}),d&&!a.preload){const w=t.currentRoute.modal||t.currentRoute.route.modalInstance||c[u].get(),g=t.history[t.history.length-2];let v;if(w&&w.$el){const E=w.$el.prevAll(".modal-in");if(E.length&&E[0].f7Modal){const k=E[0];t.$el.parents(k).length||(v=k.f7Modal.route)}}if(v||(v=t.findMatchingRoute(g)),!v&&g&&(v={url:g,path:g.split("?")[0],query:La(g),route:{path:g.split("?")[0],url:g}}),(!n||n.replace(/[# ]/g,"").trim().length===0)&&(!v||!w))return t;const y=a.force&&v&&n;if(v&&w){const E=e.ie||e.edge||e.firefox&&!e.ios,k=t.params.browserHistory&&a.browserHistory!==!1,$=t.currentRoute&&t.currentRoute.route&&t.currentRoute.route.options&&t.currentRoute.route.options.browserHistory===!1;k&&!E&&!$&&ve.back(),t.currentRoute=v,t.history.pop(),t.propsHistory.pop(),t.saveHistory(),k&&E&&!$&&ve.back(),t.modalRemove(w),y&&t.navigate(n,{reloadCurrent:!0})}else w&&(t.modalRemove(w),n&&t.navigate(n,{reloadCurrent:!0}));return t}let p=t.$el.children(".page-current").prevAll(".page-previous:not(.page-master)").eq(0),f;if(t.params.masterDetailBreakpoint>0){const w=[];t.$el.children(".page").each(v=>{w.push(v.className)});const g=t.$el.children(".page-current").prevAll(".page-master").eq(0);if(g.length){const v=t.history[t.history.length-2],y=t.findMatchingRoute(v);y&&g[0].f7Page&&y.route===g[0].f7Page.route.route&&(p=g,a.preload||(f=c.width>=t.params.masterDetailBreakpoint))}}if(!a.force&&p.length&&!f){const w=p[0].f7Page;if(t.params.browserHistory&&w&&t.history[t.history.length-2]!==w.route.url)return t.back(t.history[t.history.length-2],W(a,{force:!0,props:t.propsHistory[t.propsHistory.length-2]||{}})),t;if(w){const g=w.route;return xs.call(t,g,t.currentRoute,()=>{Qa(t,{el:p},W(a,{route:g}))},()=>{},"backward"),t}}if(n==="#"&&(n=void 0),n&&n[0]!=="/"&&n.indexOf("#")!==0&&(n=((t.path||"/")+n).replace("//","/")),!n&&t.history.length>1&&(n=t.history[t.history.length-2],r=t.propsHistory[t.propsHistory.length-2]||{}),f&&!a.force&&t.history[t.history.length-3])return t.back(t.history[t.history.length-3],W({},a||{},{force:!0,animate:!1,props:t.propsHistory[t.propsHistory.length-3]||{}}));if(f&&!a.force||(s=t.findMatchingRoute(n),s||n&&(s={url:n,path:n.split("?")[0],query:La(n),route:{path:n.split("?")[0],url:n}}),!s))return t;if(s.route.redirect)return dc.call(t,"backward",s,a);const h={};s.route.options?W(h,s.route.options,a,{props:r||{}}):W(h,a,{props:r||{}}),h.route=s;function m(){let w=!1;if(s.route.keepAlive&&s.route.keepAliveData&&(Qa(t,{el:s.route.keepAliveData.pageEl},h),w=!0),"url content component pageName el componentUrl".split(" ").forEach(y=>{s.route[y]&&!w&&(w=!0,Qa(t,{[y]:s.route[y]},h))}),w)return;function g(y,E){t.allowPageChange=!1,Qa(t,y,W(h,E),!0)}function v(){t.allowPageChange=!0}s.route.async&&(t.allowPageChange=!1,s.route.async.call(t,{router:t,to:s,from:t.currentRoute,resolve:g,reject:v,direction:"backward",app:c})),s.route.asyncComponent&&Or(t,s.route.asyncComponent,g,v)}function b(){t.allowPageChange=!0}return h.preload?m():xs.call(t,s,t.currentRoute,()=>{s.route.modules?c.loadModules(Array.isArray(s.route.modules)?s.route.modules:[s.route.modules]).then(()=>{m()}).catch(()=>{b()}):m()},()=>{b()},"backward"),t}function a1(t){la(t,"clearPreviousPages");const e=t.app,n=t.dynamicNavbar;t.$el.children(".page").filter(r=>t.currentRoute&&(t.currentRoute.modal||t.currentRoute.panel)?!0:r!==t.currentPageEl).each(r=>{const s=C(r),i=C(e.navbar.getElByPage(s));t.pageCallback("beforeRemove",s,i,"previous",void 0,{}),t.removePage(s),n&&i.length&&t.removeNavbar(i)})}function r1(){const t=this;la(t,"clearPreviousHistory");const e=t.history[t.history.length-1];a1(t),t.history=[e],t.view.history=[e],t.saveHistory()}class Ut extends Ue{constructor(e,n){super({},[typeof n>"u"?e:n]);const a=this;a.isAppRouter=typeof n>"u",a.isAppRouter?W(!1,a,{app:e,params:e.params.view,routes:e.routes||[],cache:e.cache}):W(!1,a,{app:e,view:n,viewId:n.id,id:n.params.routerId,params:n.params,routes:n.routes,history:n.history,propsHistory:[],scrollHistory:n.scrollHistory,cache:e.cache,dynamicNavbar:e.theme==="ios"&&n.params.iosDynamicNavbar,initialPages:[],initialNavbars:[]}),a.useModules(),a.allowPageChange=!0;let r={},s={};return Object.defineProperty(a,"currentRoute",{enumerable:!0,configurable:!0,set(i){i===void 0&&(i={}),s=W({},r),r=i,r&&(a.url=r.url,a.emit("routeChange",i,s,a))},get(){return r}}),Object.defineProperty(a,"previousRoute",{enumerable:!0,configurable:!0,get(){return s},set(i){s=i}}),a}mount(){const e=this,n=e.view,a=ye();W(!1,e,{tempDom:a.createElement("div"),$el:n.$el,el:n.el,$navbarsEl:n.$navbarsEl,navbarsEl:n.navbarsEl}),e.emit("local::mount routerMount",e)}animatableNavElements(e,n,a,r,s){const i=this,o=i.dynamicNavbar,l=i.params.iosAnimateNavbarBackIcon;let c,d;function u(p,f){const h=p.hasClass("sliding")||f.hasClass("sliding"),m=p.hasClass("subnavbar"),b=h?!m:!0,w=p.find(".back .icon");let g;return h&&l&&p.hasClass("left")&&w.length>0&&w.next("span").length&&(p=w.next("span"),g=!0),{$el:p,isIconLabel:g,leftOffset:p[0].f7NavbarLeftOffset,rightOffset:p[0].f7NavbarRightOffset,isSliding:h,isSubnavbar:m,needsOpacityTransition:b}}return o&&(c=[],d=[],e.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each(p=>{const f=C(p);f.hasClass("left")&&r&&s==="forward"||f.hasClass("title")&&a||c.push(u(f,e.children(".navbar-inner")))}),n.hasClass("navbar-master")&&i.params.masterDetailBreakpoint>0&&i.app.width>=i.params.masterDetailBreakpoint||n.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each(p=>{const f=C(p);f.hasClass("left")&&a&&!r&&s==="forward"||f.hasClass("left")&&a&&s==="backward"||f.hasClass("title")&&r||d.push(u(f,n.children(".navbar-inner")))}),[d,c].forEach(p=>{p.forEach(f=>{const h=f,{isSliding:m,$el:b}=f,w=p===d?c:d;m&&b.hasClass("title")&&w&&w.forEach(g=>{if(g.isIconLabel){const v=g.$el[0];h.leftOffset+=v&&v.offsetLeft||0}})})})),{newNavEls:c,oldNavEls:d}}animate(e,n,a,r,s,i,o){const l=this;if(l.params.animateCustom){l.params.animateCustom.apply(l,[e,n,a,r,s,o]);return}const c=l.dynamicNavbar,d=l.app.theme==="ios";if(i){const E=`router-transition-custom router-transition-${i}-${s}`,k=()=>{l.$el.removeClass(E),c&&l.$navbarsEl.length&&(r&&l.$navbarsEl.prepend(r),a&&l.$navbarsEl.prepend(a)),o&&o()};(s==="forward"?n:e).animationEnd(k),c&&(r&&n&&(l.setNavbarPosition(r,""),r.removeClass("navbar-next navbar-previous navbar-current"),n.prepend(r)),a&&e&&(l.setNavbarPosition(a,""),a.removeClass("navbar-next navbar-previous navbar-current"),e.prepend(a))),l.$el.addClass(E);return}const u=`router-transition-${s} router-transition`;let p,f,h,m,b,w,g;if(d&&c){l.params.masterDetailBreakpoint>0&&l.app.width>=l.params.masterDetailBreakpoint&&(a.hasClass("navbar-master")&&r.hasClass("navbar-master-detail")||a.hasClass("navbar-master-detail")&&r.hasClass("navbar-master"))||(w=a&&a.hasClass("navbar-large"),g=r&&r.hasClass("navbar-large"),h=w&&!a.hasClass("navbar-large-collapsed"),m=g&&!r.hasClass("navbar-large-collapsed"),b=h&&!m||m&&!h);const k=l.animatableNavElements(r,a,m,h,s);p=k.newNavEls,f=k.oldNavEls}function v(E){d&&c&&(E===1&&(m&&(r.addClass("router-navbar-transition-to-large"),a.addClass("router-navbar-transition-to-large")),h&&(r.addClass("router-navbar-transition-from-large"),a.addClass("router-navbar-transition-from-large"))),p.forEach(k=>{const $=k.$el,M=s==="forward"?k.rightOffset:k.leftOffset;k.isSliding&&(k.isSubnavbar&&g?$[0].style.setProperty("transform",`translate3d(${M*(1-E)}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`,"important"):$.transform(`translate3d(${M*(1-E)}px,0,0)`))}),f.forEach(k=>{const $=k.$el,M=s==="forward"?k.leftOffset:k.rightOffset;k.isSliding&&(k.isSubnavbar&&w?$.transform(`translate3d(${M*E}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`):$.transform(`translate3d(${M*E}px,0,0)`))}))}function y(){l.dynamicNavbar&&(r&&(r.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.addClass("navbar-no-title-large-transition"),Pt(()=>{r.removeClass("navbar-no-title-large-transition")})),a&&a.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.hasClass("sliding")||r.children(".navbar-inner.sliding").length?r.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):r.find(".sliding").transform(""),a.hasClass("sliding")||a.children(".navbar-inner.sliding").length?a.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):a.find(".sliding").transform("")),l.$el.removeClass(u),o&&o()}(s==="forward"?n:d?e:n).animationEnd(()=>{y()}),c?(v(0),Pt(()=>{l.$el.addClass(u),b&&(l.el._clientLeft=l.el.clientLeft),v(1)})):l.$el.addClass(u)}removeModal(e){this.removeEl(e)}removeTabContent(e){C(e).html("")}removeNavbar(e){this.removeEl(e)}removePage(e){const n=C(e),a=n&&n[0]&&n[0].f7Page,r=this;if(a&&a.route&&a.route.route&&a.route.route.keepAlive){n.remove();return}r.removeEl(e)}removeEl(e){if(!e)return;const n=this,a=C(e);a.length!==0&&(a.find(".tab").each(r=>{C(r).children().each(s=>{s.f7Component&&(C(s).trigger("tab:beforeremove"),s.f7Component.destroy())})}),a[0].f7Component&&a[0].f7Component.destroy&&a[0].f7Component.destroy(),n.params.removeElements&&(n.params.removeElementsWithTimeout?setTimeout(()=>{a.remove()},n.params.removeElementsTimeout):a.remove()))}getPageEl(e){const n=this;if(typeof e=="string")n.tempDom.innerHTML=e;else{if(C(e).hasClass("page"))return e;n.tempDom.innerHTML="",C(n.tempDom).append(e)}return n.findElement(".page",n.tempDom)}findElement(e,n){const a=this,r=a.view,s=a.app,i=".popup, .dialog, .popover, .actions-modal, .sheet-modal, .login-screen, .page",o=C(n),l=e;let c=o.find(l).filter(d=>C(d).parents(i).length===0);if(c.length>1&&(typeof r.selector=="string"&&(c=o.find(`${r.selector} ${l}`)),c.length>1&&(c=o.find(`.${s.params.viewMainClass} ${l}`))),c.length===1||(c=a.findElement(l,o),c&&c.length===1))return c;if(c&&c.length>1)return C(c[0])}flattenRoutes(e){e===void 0&&(e=this.routes);const n=this;let a=[];return e.forEach(r=>{let s=!1;if("tabs"in r&&r.tabs){const i=r.tabs.map(o=>{const l=W({},r,{path:`${r.path}/${o.path}`.replace("///","/").replace("//","/"),parentPath:r.path,tab:o});return delete l.tabs,delete l.routes,l});s=!0,a=a.concat(n.flattenRoutes(i))}if("detailRoutes"in r){const i=r.detailRoutes.map(o=>{const l=W({},o);return l.masterRoute=r,l.masterRoutePath=r.path,l});a=a.concat(r,n.flattenRoutes(i))}if("routes"in r){const i=r.routes.map(o=>{const l=W({},o);return l.path=`${r.path}/${l.path}`.replace("///","/").replace("//","/"),l});s?a=a.concat(n.flattenRoutes(i)):a=a.concat(r,n.flattenRoutes(i))}!("routes"in r)&&!("tabs"in r&&r.tabs)&&!("detailRoutes"in r)&&a.push(r)}),a}parseRouteUrl(e){if(!e)return{};const n=La(e),a=e.split("#")[1],r={},s=e.split("#")[0].split("?")[0];return{query:n,hash:a,params:r,url:e,path:s}}generateUrl(e){if(e===void 0&&(e={}),typeof e=="string")return e;const{name:n,path:a,params:r,query:s}=e;if(!n&&!a)throw new Error('Framework7: "name" or "path" parameter is required');const i=this,o=n?i.findRouteByKey("name",n):i.findRouteByKey("path",a);if(!o)throw n?new Error(`Framework7: route with name "${n}" not found`):new Error(`Framework7: route with path "${a}" not found`);const l=i.constructRouteUrl(o,{params:r,query:s});if(l==="")return"/";if(!l)throw new Error(`Framework7: can't construct URL for route with name "${n}"`);return l}constructRouteUrl(e,n){let{params:a,query:r}=n===void 0?{}:n;const{path:s}=e,i=jy(s);let o;try{o=i(a||{})}catch(l){throw new Error(`Framework7: error constructing route URL from passed params: Route: ${s} -${l.toString()}`)}return r&&(typeof r=="string"?o+=`?${r}`:Object.keys(r).length&&(o+=`?${Fn(r)}`)),o}findTabRouteUrl(e){const n=this,a=C(e),r=n.currentRoute.route.parentPath,s=a.attr("id"),i=n.flattenRoutes(n.routes);let o;return i.forEach(l=>{l.parentPath===r&&l.tab&&l.tab.id===s&&(n.currentRoute.params&&Object.keys(n.currentRoute.params).length>0?o=n.constructRouteUrl(l,{params:n.currentRoute.params,query:n.currentRoute.query}):o=l.path)}),o}findRouteByKey(e,n){const a=this,r=a.routes,s=a.flattenRoutes(r);let i;return s.forEach(o=>{i||o[e]===n&&(i=o)}),i}findMatchingRoute(e){if(!e)return;const n=this,a=n.routes,r=n.flattenRoutes(a),{path:s,query:i,hash:o,params:l}=n.parseRouteUrl(e);let c;return r.forEach(d=>{if(c)return;const u=[],p=[d.path||"/"];d.alias&&(typeof d.alias=="string"?p.push(d.alias):Array.isArray(d.alias)&&d.alias.forEach(h=>{p.push(h)}));let f;if(p.forEach(h=>{f||(f=cc(h,u).exec(s||"/"))}),f){u.forEach((m,b)=>{if(typeof m.name=="number")return;const w=f[b+1];typeof w>"u"||w===null?l[m.name]=w:l[m.name]=decodeURIComponent(w)});let h;d.parentPath&&(h=(s||"/").split("/").slice(0,d.parentPath.split("/").length-1).join("/")),c={query:i,hash:o,params:l,url:e,path:s||"/",parentPath:h,route:d,name:d.name}}}),c}replaceRequestUrlParams(e,n){e===void 0&&(e=""),n===void 0&&(n={});let a=e;return typeof a=="string"&&a.indexOf("{{")>=0&&n&&n.route&&n.route.params&&Object.keys(n.route.params).length&&Object.keys(n.route.params).forEach(r=>{const s=new RegExp(`{{${r}}}`,"g");a=a.replace(s,n.route.params[r]||"")}),a}removeFromXhrCache(e){const a=this.cache.xhr;let r=!1;for(let s=0;s=0;return r.passRouteQueryToRequest&&n&&n.route&&n.route.query&&Object.keys(n.route.query).length&&(i+=`${o?"&":"?"}${Fn(n.route.query)}`,o=!0),r.passRouteParamsToRequest&&n&&n.route&&n.route.params&&Object.keys(n.route.params).length&&(i+=`${o?"&":"?"}${Fn(n.route.params)}`,o=!0),i.indexOf("{{")>=0&&(i=a.replaceRequestUrlParams(i,n)),r.xhrCacheIgnoreGetParameters&&i.indexOf("?")>=0&&(i=i.split("?")[0]),new Promise((l,c)=>{if(r.xhrCache&&!s&&i.indexOf("nocache")<0&&r.xhrCacheIgnore.indexOf(i)<0)for(let u=0;u(d=u,u.text())).then(u=>{const{status:p}=d;a.emit("routerAjaxComplete",d),p!=="error"&&p!=="timeout"&&p>=200&&p<300||p===0?(r.xhrCache&&u!==""&&(a.removeFromXhrCache(i),a.cache.xhr.push({url:i,time:Ot(),content:u})),a.emit("routerAjaxSuccess",d,n),l(u)):(a.emit("routerAjaxError",d,n),c(d))}).catch(u=>{c(u)})})}setNavbarPosition(e,n,a){const r=this;e.removeClass("navbar-previous navbar-current navbar-next"),n&&e.addClass(`navbar-${n}`),a===!1?e.removeAttr("aria-hidden"):a===!0&&e.attr("aria-hidden","true"),e.trigger("navbar:position",{position:n}),r.emit("navbarPosition",e[0],n)}setPagePosition(e,n,a){const r=this;e.removeClass("page-previous page-current page-next"),e.addClass(`page-${n}`),a===!1?e.removeAttr("aria-hidden"):a===!0&&e.attr("aria-hidden","true"),e.trigger("page:position",{position:n}),r.emit("pagePosition",e[0],n)}removeThemeElements(e){const a=this.app.theme;let r;a==="ios"?r=".md-only, .if-md, .if-not-ios, .not-ios":a==="md"&&(r=".ios-only, .if-ios, .if-not-md, .not-md"),C(e).find(r).remove()}getPageData(e,n,a,r,s,i){s===void 0&&(s={});const o=this,l=C(e).eq(0),c=C(n).eq(0),d=l[0].f7Page||{};let u,p;if((a==="next"&&r==="current"||a==="current"&&r==="previous")&&(u="forward"),(a==="current"&&r==="next"||a==="previous"&&r==="current")&&(u="backward"),d&&!d.fromPage){const h=C(i);h.length&&(p=h[0].f7Page)}p=d.pageFrom||p,p&&p.pageFrom&&(p.pageFrom=null);const f={app:o.app,view:o.view,router:o,$el:l,el:l[0],$pageEl:l,pageEl:l[0],$navbarEl:c,navbarEl:c[0],name:l.attr("data-name"),position:a,from:a,to:r,direction:u,route:d.route?d.route:s,pageFrom:p};return l[0].f7Page=f,f}pageCallback(e,n,a,r,s,i,o){if(i===void 0&&(i={}),!n)return;const l=this,c=C(n);if(!c.length)return;const d=C(a),{route:u}=i,p=l.params.restoreScrollTopOnBack&&!(l.params.masterDetailBreakpoint>0&&c.hasClass("page-master")&&l.app.width>=l.params.masterDetailBreakpoint),f=c[0].f7Page&&c[0].f7Page.route&&c[0].f7Page.route.route&&c[0].f7Page.route.route.keepAlive;e==="beforeRemove"&&f&&(e="beforeUnmount");const h=`page${e[0].toUpperCase()+e.slice(1,e.length)}`,m=`page:${e.toLowerCase()}`;let b={};e==="beforeRemove"&&c[0].f7Page?b=W(c[0].f7Page,{from:r,to:s,position:r}):b=l.getPageData(c[0],d[0],r,s,u,o),b.swipeBack=!!i.swipeBack;const{on:w={},once:g={}}=i.route?i.route.route:{};i.on&&W(w,i.on),i.once&&W(g,i.once);function v(){c[0].f7RouteEventsAttached||(c[0].f7RouteEventsAttached=!0,w&&Object.keys(w).length>0&&(c[0].f7RouteEventsOn=w,Object.keys(w).forEach(E=>{w[E]=w[E].bind(l),c.on(ga(E),w[E])})),g&&Object.keys(g).length>0&&(c[0].f7RouteEventsOnce=g,Object.keys(g).forEach(E=>{g[E]=g[E].bind(l),c.once(ga(E),g[E])})))}function y(){c[0].f7RouteEventsAttached&&(c[0].f7RouteEventsOn&&Object.keys(c[0].f7RouteEventsOn).forEach(E=>{c.off(ga(E),c[0].f7RouteEventsOn[E])}),c[0].f7RouteEventsOnce&&Object.keys(c[0].f7RouteEventsOnce).forEach(E=>{c.off(ga(E),c[0].f7RouteEventsOnce[E])}),c[0].f7RouteEventsAttached=null,c[0].f7RouteEventsOn=null,c[0].f7RouteEventsOnce=null,delete c[0].f7RouteEventsAttached,delete c[0].f7RouteEventsOn,delete c[0].f7RouteEventsOnce)}if(e==="mounted"&&v(),e==="init"){if(p&&(r==="previous"||!r)&&s==="current"&&l.scrollHistory[b.route.url]&&!c.hasClass("no-restore-scroll")){let E=c.find(".page-content");E.length>0&&(E=E.filter(k=>C(k).parents(".tab:not(.tab-active)").length===0&&!C(k).is(".tab:not(.tab-active)"))),E.scrollTop(l.scrollHistory[b.route.url])}if(v(),c[0].f7PageInitialized){c.trigger("page:reinit",b),l.emit("pageReinit",b);return}c[0].f7PageInitialized=!0}if(p&&e==="beforeOut"&&r==="current"&&s==="previous"){let E=c.find(".page-content");E.length>0&&(E=E.filter(k=>C(k).parents(".tab:not(.tab-active)").length===0&&!C(k).is(".tab:not(.tab-active)"))),l.scrollHistory[b.route.url]=E.scrollTop()}p&&e==="beforeOut"&&r==="current"&&s==="next"&&delete l.scrollHistory[b.route.url],c.trigger(m,b),l.emit(h,b),(e==="beforeRemove"||e==="beforeUnmount")&&(y(),f||(c[0].f7Page&&c[0].f7Page.navbarEl&&delete c[0].f7Page.navbarEl.f7Page,c[0].f7Page=null))}saveHistory(){const e=this,n=fe();e.view.history=e.history,e.params.browserHistory&&e.params.browserHistoryStoreHistory&&n.localStorage&&(n.localStorage[`f7router-${e.view.id}-history`]=JSON.stringify(e.history))}restoreHistory(){const e=this,n=fe();e.params.browserHistory&&e.params.browserHistoryStoreHistory&&n.localStorage&&n.localStorage[`f7router-${e.view.id}-history`]&&(e.history=JSON.parse(n.localStorage[`f7router-${e.view.id}-history`]),e.view.history=e.history)}clearHistory(){const e=this;e.history=[],e.view&&(e.view.history=[]),e.saveHistory()}updateCurrentUrl(e){const n=this;la(n,"updateCurrentUrl"),n.history.length?n.history[n.history.length-1]=e:n.history.push(e);const{query:a,hash:r,params:s,url:i,path:o}=n.parseRouteUrl(e);if(n.currentRoute&&W(n.currentRoute,{query:a,hash:r,params:s,url:i,path:o}),n.params.browserHistory){const l=n.params.browserHistoryRoot||"";ve.replace(n.view.id,{url:e},l+n.params.browserHistorySeparator+e)}n.saveHistory(),n.emit("routeUrlUpdate",n.currentRoute,n)}getInitialUrl(){const e=this;if(e.initialUrl)return{initialUrl:e.initialUrl,historyRestored:e.historyRestored};const{app:n,view:a}=e,r=ye(),s=fe(),i=n.params.url&&typeof n.params.url=="string"&&typeof URL<"u"?new URL(n.params.url):r.location;let o=e.params.url,l=i.href.split(i.origin)[1],c;const{browserHistory:d,browserHistoryOnLoad:u,browserHistorySeparator:p}=e.params;let{browserHistoryRoot:f}=e.params;return(s.cordova||s.Capacitor&&s.Capacitor.isNative)&&d&&!p&&!f&&i.pathname.indexOf("index.html")&&(console.warn("Framework7: wrong or not complete browserHistory configuration, trying to guess browserHistoryRoot"),f=i.pathname.split("index.html")[0]),!d||!u?(o||(o=l),i.search&&o.indexOf("?")<0&&(o+=i.search),i.hash&&o.indexOf("#")<0&&(o+=i.hash)):(f&&l.indexOf(f)>=0&&(l=l.substring(l.indexOf(f)+f.length),l===""&&(l="/")),p.length>0&&l.indexOf(p)>=0?o=l.substring(l.indexOf(p)+p.length):o=l,e.restoreHistory(),e.history.indexOf(o)>=0?e.history=e.history.slice(0,e.history.indexOf(o)+1):e.params.url===o?e.history=[o]:ve.state&&ve.state[a.id]&&ve.state[a.id].url===e.history[e.history.length-1]?o=e.history[e.history.length-1]:e.history=[l.split(p)[0]||"/",o],e.history.length>1?c=!0:e.history=[],e.saveHistory()),e.initialUrl=o,e.historyRestored=c,{initialUrl:o,historyRestored:c}}init(){const e=this,{app:n,view:a}=e,r=ye();e.mount();const{initialUrl:s,historyRestored:i}=e.getInitialUrl();(a&&e.params.iosSwipeBack&&n.theme==="ios"||a&&e.params.mdSwipeBack&&n.theme==="md")&&Gy(e);const{browserHistory:o,browserHistoryOnLoad:l,browserHistoryAnimateOnLoad:c,browserHistoryInitialMatch:d}=e.params;let u;if(e.history.length>1){const p=d?s:e.history[0];u=e.findMatchingRoute(p),u||(u=W(e.parseRouteUrl(p),{route:{url:p,path:p.split("?")[0]}}))}else u=e.findMatchingRoute(s),u||(u=W(e.parseRouteUrl(s),{route:{url:s,path:s.split("?")[0]}}));if(e.$el.children(".page").length===0&&s&&e.params.loadInitialPage)e.navigate(s,{initial:!0,reloadCurrent:!0,browserHistory:!1,animate:!1,once:{modalOpen(){if(!i)return;(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0})},pageAfterIn(){if(!i)return;(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0})}}});else if(e.$el.children(".page").length){let p;e.currentRoute=u,e.$el.children(".page").each(f=>{const h=C(f);let m;e.setPagePosition(h,"current"),e.dynamicNavbar&&(m=h.children(".navbar"),m.length>0?(e.$navbarsEl.parents(r).length||e.$el.prepend(e.$navbarsEl),e.setNavbarPosition(m,"current"),e.$navbarsEl.append(m),m.children(".title-large").length&&m.addClass("navbar-large"),h.children(".navbar").remove()):(e.$navbarsEl.addClass("navbar-hidden"),m.children(".title-large").length&&e.$navbarsEl.addClass("navbar-hidden navbar-large-hidden"))),e.currentRoute&&e.currentRoute.route&&(e.currentRoute.route.master===!0||typeof e.currentRoute.route.master=="function"&&e.currentRoute.route.master(n,e))&&e.params.masterDetailBreakpoint>0&&(h.addClass("page-master"),h.trigger("page:role",{role:"master"}),m&&m.length&&m.addClass("navbar-master"),a.checkMasterDetailBreakpoint());const b={route:e.currentRoute};e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.options&&W(b,e.currentRoute.route.options),e.currentPageEl=h[0],e.dynamicNavbar&&m.length&&(e.currentNavbarEl=m[0]),e.removeThemeElements(h),e.dynamicNavbar&&m.length&&e.removeThemeElements(m),b.route.route.tab&&(p=!0,e.tabLoad(b.route.route.tab,W({},b))),e.pageCallback("init",h,m,"current",void 0,b),e.pageCallback("beforeIn",h,m,"current",void 0,b),e.pageCallback("afterIn",h,m,"current",void 0,b)}),i&&(d?(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0}):e.navigate(s,{initial:!0,browserHistory:!1,history:!1,animate:c,once:{pageAfterIn(){(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>2&&e.back({preload:!0})}}})),!i&&!p&&(e.history.push(s),e.saveHistory())}s&&o&&l&&(!ve.state||!ve.state[a.id])&&ve.initViewState(a.id,{url:s}),e.emit("local::init routerInit",e)}destroy(){let e=this;e.emit("local::destroy routerDestroy",e),Object.keys(e).forEach(n=>{e[n]=null,delete e[n]}),e=null}}Ut.prototype.navigate=Qy;Ut.prototype.refreshPage=Ky;Ut.prototype.tabLoad=Jy;Ut.prototype.tabRemove=Zy;Ut.prototype.modalLoad=e1;Ut.prototype.modalRemove=t1;Ut.prototype.back=n1;Ut.prototype.clearPreviousHistory=r1;const ii={name:"router",static:{Router:Ut},instance:{cache:{xhr:[],templates:[],components:[]}},create(){const t=this;t.app?t.params.router&&(t.router=new Ut(t.app,t)):t.router=new Ut(t)}};function s1(t){const e=t.app,n=Xe();if(t.resizableInitialized)return;W(t,{resizable:!0,resizableWidth:null,resizableInitialized:!0});const a=C("html"),{$el:r}=t;if(!r)return;let s,i,o;const l={};let c,d,u,p;function f(y){if(!y)return null;if(y.indexOf("%")>=0||y.indexOf("vw")>=0)return parseInt(y,10)/100*e.width;const E=parseInt(y,10);return Number.isNaN(E)?null:E}function h(){return t.resizable&&r.hasClass("view-resizable")&&r.hasClass("view-master-detail")}function m(y){if(!h())return;l.x=y.type==="touchstart"?y.targetTouches[0].pageX:y.pageX,l.y=y.type==="touchstart"?y.targetTouches[0].pageY:y.pageY,o=!1,i=!0;const E=r.children(".page-master");u=f(E.css("min-width")),p=f(E.css("max-width"))}function b(y){if(!i)return;y.f7PreventSwipePanel=!0;const E=y.type==="touchmove"?y.targetTouches[0].pageX:y.pageX;o||(d=s[0].offsetLeft+s[0].offsetWidth,r.addClass("view-resizing"),a.css("cursor","col-resize")),o=!0,y.preventDefault(),c=E-l.x;let k=d+c;u&&!Number.isNaN(u)&&(k=Math.max(k,u)),p&&!Number.isNaN(p)&&(k=Math.min(k,p)),k=Math.min(Math.max(k,0),e.width),t.resizableWidth=k,a[0].style.setProperty("--f7-page-master-width",`${k}px`),r.trigger("view:resize",k),t.emit("local::resize viewResize",t,k)}function w(){if(C("html").css("cursor",""),!i||!o){i=!1,o=!1;return}i=!1,o=!1,a[0].style.setProperty("--f7-page-master-width",`${t.resizableWidth}px`),r.removeClass("view-resizing")}function g(){t.resizableWidth&&(u=f(s.css("min-width")),p=f(s.css("max-width")),u&&!Number.isNaN(u)&&t.resizableWidthp&&(t.resizableWidth=Math.min(t.resizableWidth,p)),t.resizableWidth=Math.min(Math.max(t.resizableWidth,0),e.width),a[0].style.setProperty("--f7-page-master-width",`${t.resizableWidth}px`))}s=t.$el.children(".view-resize-handler"),s.length||(t.$el.append('
'),s=t.$el.children(".view-resize-handler")),t.$resizeHandlerEl=s,r.addClass("view-resizable");const v=n.passiveListener?{passive:!0}:!1;t.$el.on(e.touchEvents.start,".view-resize-handler",m,v),e.on("touchmove:active",b),e.on("touchend:passive",w),e.on("resize",g),t.on("beforeOpen",g),t.once("viewDestroy",()=>{r.removeClass("view-resizable"),t.$resizeHandlerEl.remove(),t.$el.off(e.touchEvents.start,".view-resize-handler",m,v),e.off("touchmove:active",b),e.off("touchend:passive",w),e.off("resize",g),t.off("beforeOpen",g)})}let br=class extends Ue{constructor(e,n,a){a===void 0&&(a={}),super(a,[e]);const r=this,s=r.params.routerId,i={routes:[],routesAdd:[]};if(!s&&!C(n).length){let c="Framework7: can't create a View instance because ";throw c+=typeof n=="string"?`the selector "${n}" didn't match any element`:"el must be an HTMLElement or Dom7 object",new Error(c)}r.params=W({el:n},i,e.params.view,a),r.params.routes.length>0?r.routes=r.params.routes:r.routes=[].concat(e.routes,r.params.routesAdd),W(!1,r,{app:e,name:r.params.name,main:r.params.main,history:[],scrollHistory:{}}),r.useModules(),e.views.push(r),r.main&&(e.views.main=r),r.name&&(e.views[r.name]=r),r.index=e.views.indexOf(r);let o;return r.name?o=`view_${r.name}`:r.main?o="view_main":o=`view_${r.index}`,r.id=o,r.params.init&&(e.initialized?r.init():e.on("init",()=>{r.init()})),r}destroy(){let e=this;const n=e.app;e.$el.trigger("view:beforedestroy"),e.emit("local::beforeDestroy viewBeforeDestroy",e),n.off("resize",e.checkMasterDetailBreakpoint),e.main?(n.views.main=null,delete n.views.main):e.name&&(n.views[e.name]=null,delete n.views[e.name]),e.$el[0].f7View=null,delete e.$el[0].f7View,n.views.splice(n.views.indexOf(e),1),e.params.router&&e.router&&e.router.destroy(),e.emit("local::destroy viewDestroy",e),Object.keys(e).forEach(a=>{e[a]=null,delete e[a]}),e=null}checkMasterDetailBreakpoint(e){const n=this,a=n.app,r=n.$el.hasClass("view-master-detail"),s=a.width>=n.params.masterDetailBreakpoint&&n.$el.children(".page-master").length;typeof e>"u"&&s||e===!0?(n.$el.addClass("view-master-detail"),r||(n.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",n),n.$el.trigger("view:masterDetailBreakpoint"))):(n.$el.removeClass("view-master-detail"),r&&(n.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",n),n.$el.trigger("view:masterDetailBreakpoint")))}initMasterDetail(){const e=this,n=e.app;e.checkMasterDetailBreakpoint=e.checkMasterDetailBreakpoint.bind(e),e.checkMasterDetailBreakpoint(),e.params.masterDetailResizable&&s1(e),n.on("resize",e.checkMasterDetailBreakpoint)}mount(e){const n=this,a=n.app,r=n.params.el||e,s=C(r);let i;typeof r=="string"?i=r:i=(s.attr("id")?`#${s.attr("id")}`:"")+(s.attr("class")?`.${s.attr("class").replace(/ /g,".").replace(".active","")}`:"");let o;a.theme==="ios"&&n.params.iosDynamicNavbar&&(o=s.children(".navbars").eq(0),o.length===0&&(o=C(''))),W(n,{$el:s,el:s[0],main:n.main||s.hasClass("view-main"),$navbarsEl:o,navbarsEl:o?o[0]:void 0,selector:i}),n.main&&(a.views.main=n),s&&s[0]&&(s[0].f7View=n),n.emit("local::mount viewMount",n)}init(e){const n=this;n.mount(e),n.params.router&&(n.params.masterDetailBreakpoint>0&&n.initMasterDetail(),n.params.initRouterOnTabShow&&n.$el.hasClass("tab")&&!n.$el.hasClass("tab-active")?n.$el.once("tab:show",()=>{n.router.init()}):n.router.init(),n.$el.trigger("view:init"),n.emit("local::init viewInit",n))}};br.use(ii);function i1(t){function e(n){const a=fe(),r=C(n.target),s=r.closest("a"),i=s.length>0,o=i&&s.attr("href");if(i&&(s.is(t.params.clicks.externalLinks)||o&&o.indexOf("javascript:")>=0)){const d=s.attr("target");o&&a.cordova&&a.cordova.InAppBrowser&&(d==="_system"||d==="_blank")?(n.preventDefault(),a.cordova.InAppBrowser.open(o,d)):o&&a.Capacitor&&a.Capacitor.Plugins&&a.Capacitor.Plugins.Browser&&(d==="_system"||d==="_blank")&&(n.preventDefault(),a.Capacitor.Plugins.Browser.open({url:o}));return}Object.keys(t.modules).forEach(d=>{const u=t.modules[d].clicks;u&&(n.preventF7Router||Object.keys(u).forEach(p=>{const f=r.closest(p).eq(0);f.length>0&&u[p].call(t,f,f.dataset(),n)}))});let l={};if(i&&(n.preventDefault(),l=s.dataset()),l.clickedEl=s[0],n.preventF7Router||s.hasClass("prevent-router")||s.hasClass("router-prevent"))return;if(o&&o.length>0&&o[0]!=="#"||s.hasClass("back")){let d;if(l.view&&l.view==="current"?d=t.views.current:l.view?d=C(l.view)[0].f7View:(d=r.parents(".view")[0]&&r.parents(".view")[0].f7View,d&&d.params.linksView&&(!s.hasClass("back")||s.hasClass("back")&&d.router.history.length===1)&&(typeof d.params.linksView=="string"?d=C(d.params.linksView)[0].f7View:d.params.linksView instanceof br&&(d=d.params.linksView))),d||t.views.main&&(d=t.views.main),!d||!d.router)return;s[0].f7RouteProps&&(l.props=s[0].f7RouteProps),s.hasClass("back")?d.router.back(o,l):d.router.navigate(o,l)}}t.on("click",e)}const uc={name:"clicks",params:{clicks:{externalLinks:".external"}},on:{init(){i1(this)}}},pc={name:"history",static:{history:ve},on:{init(){ve.init(this)}}},bn={registrations:[],register(t,e){const n=this;return!("serviceWorker"in fe().navigator)||!n.serviceWorker.container?new Promise((r,s)=>{s(new Error("Service worker is not supported"))}):new Promise((r,s)=>{n.serviceWorker.container.register(t,e?{scope:e}:{}).then(i=>{bn.registrations.push(i),n.emit("serviceWorkerRegisterSuccess",i),r(i)}).catch(i=>{n.emit("serviceWorkerRegisterError",i),s(i)})})},unregister(t){const e=this;if(!("serviceWorker"in fe().navigator)||!e.serviceWorker.container)return new Promise((r,s)=>{s(new Error("Service worker is not supported"))});let a;return t?Array.isArray(t)?a=t:a=[t]:a=bn.registrations,Promise.all(a.map(r=>new Promise((s,i)=>{r.unregister().then(()=>{bn.registrations.indexOf(r)>=0&&bn.registrations.splice(bn.registrations.indexOf(r),1),e.emit("serviceWorkerUnregisterSuccess",r),s()}).catch(o=>{e.emit("serviceWorkerUnregisterError",r,o),i(o)})})))}},fc={name:"sw",params:{serviceWorker:{path:void 0,scope:void 0}},create(){const t=this,e=fe();W(t,{serviceWorker:{container:"serviceWorker"in e.navigator?e.navigator.serviceWorker:void 0,registrations:bn.registrations,register:bn.register.bind(t),unregister:bn.unregister.bind(t)}})},on:{init(){const t=fe();if(!("serviceWorker"in t.navigator))return;const e=this;if(e.device.cordova||t.Capacitor&&t.Capacitor.isNative||!e.serviceWorker.container)return;const n=e.params.serviceWorker.path,a=e.params.serviceWorker.scope;if(!n||Array.isArray(n)&&!n.length)return;(Array.isArray(n)?n:[n]).forEach(s=>{e.serviceWorker.register(s,a)})}}};function lo(t){t===void 0&&(t={});const e={__store:!0},n={...t.state||{}},a={...t.actions||{}},r={...t.getters||{}},s=W({},n);let i=[];const o={},l={};Object.keys(r).forEach(m=>{o[m]=[],l[m]=[]});const c=m=>r[m]({state:e.state}),d=(m,b)=>{o[m]||(o[m]=[]),b.forEach(w=>{o[m].indexOf(w)<0&&o[m].push(w)})},u=(m,b)=>{l[m]||(l[m]=[]),l[m].push(b)},p=m=>{Object.keys(o).filter(w=>o[w].indexOf(m)>=0).forEach(w=>{!l[w]||!l[w].length||l[w].forEach(g=>{g(c(w))})})},f=m=>{Object.keys(l).forEach(b=>{const w=l[b];w.indexOf(m)>=0&&w.splice(w.indexOf(m),1)})};e.__removeCallback=m=>{f(m)};const h=function(m,b){if(b===void 0&&(b=!0),m==="constructor")return;i=[];const w=c(m);d(m,i);const v={value:w,onUpdated:E=>{u(m,E)}};if(!b)return v;const y=E=>{v.value=E};return v.__callback=y,u(m,y),v};return e.state=new Proxy(s,{set:(m,b,w)=>(m[b]=w,p(b),!0),get:(m,b)=>(i.push(b),m[b])}),e.getters=new Proxy(r,{set:()=>!1,get:(m,b)=>{if(m[b])return h(b,!0)}}),e._gettersPlain=new Proxy(r,{set:()=>!1,get:(m,b)=>{if(m[b])return h(b,!1)}}),e.dispatch=(m,b)=>new Promise((w,g)=>{if(!a[m])throw g(),new Error(`Framework7: Store action "${m}" is not found`);const v=a[m]({state:e.state,dispatch:e.dispatch},b);w(v)}),e}const hc={name:"store",static:{createStore:lo},proto:{createStore:lo}},In=()=>{const t=fe();return t.Capacitor&&t.Capacitor.isNative&&t.Capacitor.Plugins&&t.Capacitor.Plugins.StatusBar},Dt={hide(){const t=fe();Ie().cordova&&t.StatusBar&&t.StatusBar.hide(),In()&&t.Capacitor.Plugins.StatusBar.hide()},show(){const t=fe();Ie().cordova&&t.StatusBar&&t.StatusBar.show(),In()&&t.Capacitor.Plugins.StatusBar.show()},onClick(){const t=this;let e;C(".popup.modal-in").length>0?e=C(".popup.modal-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):C(".panel.panel-in").length>0?e=C(".panel.panel-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):C(".views > .view.tab-active").length>0?e=C(".views > .view.tab-active").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):C(".views").length>0?e=C(".views").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):e=t.$el.children(".view").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"),e&&e.length>0&&(e.hasClass("tab")&&(e=e.parent(".tabs").children(".page-content.tab-active")),e.length>0&&e.scrollTop(0,300))},setTextColor(t){const e=fe();Ie().cordova&&e.StatusBar&&(t==="white"?e.StatusBar.styleLightContent():e.StatusBar.styleDefault()),In()&&(t==="white"?e.Capacitor.Plugins.StatusBar.setStyle({style:"DARK"}):e.Capacitor.Plugins.StatusBar.setStyle({style:"LIGHT"}))},setBackgroundColor(t){const e=fe();Ie().cordova&&e.StatusBar&&e.StatusBar.backgroundColorByHexString(t),In()&&e.Capacitor.Plugins.StatusBar.setBackgroundColor({color:t})},isVisible(){const t=fe(),e=Ie();return new Promise(n=>{e.cordova&&t.StatusBar&&n(t.StatusBar.isVisible),In()&&t.Capacitor.Plugins.StatusBar.getInfo().then(a=>{n(a.visible)}),n(!1)})},overlaysWebView(t){t===void 0&&(t=!0);const e=fe();Ie().cordova&&e.StatusBar&&e.StatusBar.overlaysWebView(t),In()&&e.Capacitor.Plugins.StatusBar.setOverlaysWebView({overlay:t})},init(){const t=this,e=fe(),n=Ie(),a=t.params.statusbar;if(!a.enabled)return;const r=n.cordova&&e.StatusBar,s=In();(r||s)&&(a.scrollTopOnClick&&C(e).on("statusTap",Dt.onClick.bind(t)),n.ios&&(a.iosOverlaysWebView?Dt.overlaysWebView(!0):Dt.overlaysWebView(!1),a.iosTextColor==="white"?Dt.setTextColor("white"):Dt.setTextColor("black")),n.android&&(a.androidOverlaysWebView?Dt.overlaysWebView(!0):Dt.overlaysWebView(!1),a.androidTextColor==="white"?Dt.setTextColor("white"):Dt.setTextColor("black"))),a.iosBackgroundColor&&n.ios&&Dt.setBackgroundColor(a.iosBackgroundColor),a.androidBackgroundColor&&n.android&&Dt.setBackgroundColor(a.androidBackgroundColor)}},mc={name:"statusbar",params:{statusbar:{enabled:!0,scrollTopOnClick:!0,iosOverlaysWebView:!0,iosTextColor:"black",iosBackgroundColor:null,androidOverlaysWebView:!1,androidTextColor:"black",androidBackgroundColor:null}},create(){Ct(this,{statusbar:Dt})},on:{init(){const t=this;Dt.init.call(t)}}};function o1(t){const e=C(".popover.modal-in .view"),n=C(".popup.modal-in .view"),a=C(".panel.panel-in .view");let r=C(".views");r.length===0&&(r=t.$el);let s=r.children(".view");if(s.length===0&&(s=r.children(".tabs").children(".view")),s.length>1&&s.hasClass("tab")&&(s=r.children(".view.tab-active"),s.length===0&&(s=r.children(".tabs").children(".view.tab-active"))),e.length>0&&e[0].f7View)return e[0].f7View;if(n.length>0&&n[0].f7View)return n[0].f7View;if(a.length>0&&a[0].f7View)return a[0].f7View;if(s.length>0){if(s.length===1&&s[0].f7View)return s[0].f7View;if(s.length>1)return t.views.main}}const gc={name:"view",params:{view:{init:!0,initRouterOnTabShow:!1,name:void 0,main:!1,router:!0,linksView:null,xhrCache:!0,xhrCacheIgnore:[],xhrCacheIgnoreGetParameters:!1,xhrCacheDuration:1e3*60*10,componentCache:!0,preloadPreviousPage:!0,allowDuplicateUrls:!1,reloadPages:!1,reloadDetail:!1,masterDetailBreakpoint:0,masterDetailResizable:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,restoreScrollTopOnBack:!0,unloadTabContent:!0,passRouteQueryToRequest:!0,passRouteParamsToRequest:!1,loadInitialPage:!0,iosSwipeBack:!0,iosSwipeBackAnimateShadow:!0,iosSwipeBackAnimateOpacity:!0,iosSwipeBackActiveArea:30,iosSwipeBackThreshold:0,mdSwipeBack:!1,mdSwipeBackAnimateShadow:!0,mdSwipeBackAnimateOpacity:!1,mdSwipeBackActiveArea:30,mdSwipeBackThreshold:0,browserHistory:!1,browserHistoryRoot:void 0,browserHistoryAnimate:!0,browserHistoryAnimateOnLoad:!1,browserHistorySeparator:"#!",browserHistoryOnLoad:!0,browserHistoryInitialMatch:!1,browserHistoryStoreHistory:!0,browserHistoryTabs:"replace",animate:!0,iosDynamicNavbar:!0,iosAnimateNavbarBackIcon:!0,iosPageLoadDelay:0,mdPageLoadDelay:0,routesBeforeEnter:null,routesBeforeLeave:null}},static:{View:br},create(){const t=this;W(t,{views:W([],{create(e,n){return new br(t,e,n)},get(e){const n=C(e);if(n.length&&n[0].f7View)return n[0].f7View}})}),Object.defineProperty(t.views,"current",{enumerable:!0,configurable:!0,get(){return o1(t)}}),t.view=t.views},on:{init(){const t=this;C(".view-init").each(e=>{if(e.f7View)return;const n=C(e).dataset();t.views.create(e,n)})},"modalOpen panelOpen":function(e){const n=this;e.$el.find(".view-init").each(a=>{if(a.f7View)return;const r=C(a).dataset();n.views.create(a,r)})},"modalBeforeDestroy panelBeforeDestroy":function(e){!e||!e.$el||e.$el.find(".view-init").each(n=>{const a=n.f7View;a&&a.destroy()})}},vnode:{"view-init":{insert(t){const e=this,n=t.elm;if(n.f7View)return;const a=C(n).dataset();e.views.create(n,a)},destroy(t){const n=t.elm.f7View;n&&n.destroy()}}}},l1={size(t){const e=this;let n=C(t);if(n.hasClass("navbars")){n=n.children(".navbar").each(S=>{e.navbar.size(S)});return}const a=n.children(".navbar-inner");if(!a.length)return;const r=a.hasClass("navbar-inner-centered-title")||e.params.navbar[`${e.theme}CenterTitle`],s=e.theme==="ios"&&!e.params.navbar[`${e.theme}CenterTitle`];if(!r&&!s||n.parents(".tab:not(.tab-active)").length>0||n.parents(".popup:not(.modal-in)").length>0)return;e.theme!=="ios"&&e.params.navbar[`${e.theme}CenterTitle`]&&a.addClass("navbar-inner-centered-title"),e.theme==="ios"&&!e.params.navbar.iosCenterTitle&&a.addClass("navbar-inner-left-title");const i=n.parents(".view").eq(0),o=e.rtl?a.children(".right"):a.children(".left"),l=e.rtl?a.children(".left"):a.children(".right"),c=a.children(".title"),d=a.children(".subnavbar"),u=o.length===0,p=l.length===0,f=u?0:o.outerWidth(!0),h=p?0:l.outerWidth(!0),m=c.outerWidth(!0),b=a.styles(),g=a[0].offsetWidth-parseInt(b.paddingLeft,10)-parseInt(b.paddingRight,10),v=n.hasClass("navbar-previous"),y=a.hasClass("sliding");let E,k;i.length>0&&i[0].f7View&&(E=i[0].f7View.router,k=E&&E.dynamicNavbar);let $,M;p&&($=g-m),u&&($=0),!u&&!p&&($=(g-h-m+f)/2);let x=(g-m)/2;g-f-h>m?(xg-h&&(x=g-h-m),M=x-$):M=0;const F=e.rtl?-1:1;if(k&&e.theme==="ios"){if(c.hasClass("sliding")||c.length>0&&y){let S=-($+M)*F;const I=(g-$-M-m)*F;if(v&&E&&E.params.iosAnimateNavbarBackIcon){const B=n.parent().find(".navbar-current").children(".left.sliding").find(".back .icon ~ span");B.length>0&&(S+=B[0].offsetLeft)}c[0].f7NavbarLeftOffset=S,c[0].f7NavbarRightOffset=I}if(!u&&(o.hasClass("sliding")||y)){if(e.rtl)o[0].f7NavbarLeftOffset=-(g-o[0].offsetWidth)/2*F,o[0].f7NavbarRightOffset=f*F;else if(o[0].f7NavbarLeftOffset=-f,o[0].f7NavbarRightOffset=(g-o[0].offsetWidth)/2,E&&E.params.iosAnimateNavbarBackIcon&&o.find(".back .icon").length>0&&o.find(".back .icon ~ span").length){const S=o[0].f7NavbarLeftOffset,I=o[0].f7NavbarRightOffset;o[0].f7NavbarLeftOffset=0,o[0].f7NavbarRightOffset=0,o.find(".back .icon ~ span")[0].f7NavbarLeftOffset=S,o.find(".back .icon ~ span")[0].f7NavbarRightOffset=I-o.find(".back .icon")[0].offsetWidth}}!p&&(l.hasClass("sliding")||y)&&(e.rtl?(l[0].f7NavbarLeftOffset=-h*F,l[0].f7NavbarRightOffset=(g-l[0].offsetWidth)/2*F):(l[0].f7NavbarLeftOffset=-(g-l[0].offsetWidth)/2,l[0].f7NavbarRightOffset=h)),d.length&&(d.hasClass("sliding")||y)&&(d[0].f7NavbarLeftOffset=e.rtl?d[0].offsetWidth:-d[0].offsetWidth,d[0].f7NavbarRightOffset=-d[0].f7NavbarLeftOffset)}if(r){let S=M;e.rtl&&u&&p&&c.length>0&&(S=-S),c.css({left:`${S}px`})}},hide(t,e,n,a){e===void 0&&(e=!0),n===void 0&&(n=!1),a===void 0&&(a=!1);const r=this;let s=C(t);const i=s.hasClass("navbar")&&s.parent(".navbars").length&&!a;if(i&&(s=s.parents(".navbars")),!s.length||s.hasClass("navbar-hidden"))return;let o=`navbar-hidden${e?" navbar-transitioning":""}`;(i?s.find(".navbar-current .title-large").length:s.find(".title-large").length)&&(o+=" navbar-large-hidden"),n&&(o+=" navbar-hidden-statusbar"),s.transitionEnd(()=>{s.removeClass("navbar-transitioning")}),s.addClass(o),i?s.children(".navbar").each(c=>{C(c).trigger("navbar:hide"),r.emit("navbarHide",c)}):(s.trigger("navbar:hide"),r.emit("navbarHide",s[0]))},show(t,e,n){t===void 0&&(t=".navbar-hidden"),e===void 0&&(e=!0),n===void 0&&(n=!1);const a=this;let r=C(t);const s=r.hasClass("navbar")&&r.parent(".navbars").length&&!n;s&&(r=r.parents(".navbars")),r.length&&r.hasClass("navbar-hidden")&&(e&&(r.addClass("navbar-transitioning"),r.transitionEnd(()=>{r.removeClass("navbar-transitioning")})),r.removeClass("navbar-hidden navbar-large-hidden navbar-hidden-statusbar"),s?r.children(".navbar").each(i=>{C(i).trigger("navbar:show"),a.emit("navbarShow",i)}):(r.trigger("navbar:show"),a.emit("navbarShow",r[0])))},getElByPage(t){let e,n,a;if(t.$navbarEl||t.$el?(a=t,e=t.$el):(e=C(t),e.length>0&&(a=e[0].f7Page)),a&&a.$navbarEl&&a.$navbarEl.length>0?n=a.$navbarEl:e&&(n=e.children(".navbar")),!(!n||n&&n.length===0))return n[0]},getPageByEl(t){const e=C(t);if(e.parents(".page").length)return e.parents(".page")[0];let n;return e.parents(".view").find(".page").each(a=>{a&&a.f7Page&&a.f7Page.navbarEl&&e[0]===a.f7Page.navbarEl&&(n=a)}),n},collapseLargeTitle(t){const e=this;let n=C(t);if(n.hasClass("navbars")&&(n=n.find(".navbar"),n.length>1&&(n=C(t).find(".navbar-large.navbar-current")),n.length>1||!n.length))return;const a=C(e.navbar.getPageByEl(n));n.addClass("navbar-large-collapsed"),a.eq(0).addClass("page-with-navbar-large-collapsed").trigger("page:navbarlargecollapsed"),e.emit("pageNavbarLargeCollapsed",a[0]),n.trigger("navbar:collapse"),e.emit("navbarCollapse",n[0])},expandLargeTitle(t){const e=this;let n=C(t);if(n.hasClass("navbars")&&(n=n.find(".navbar-large"),n.length>1&&(n=C(t).find(".navbar-large.navbar-current")),n.length>1||!n.length))return;const a=C(e.navbar.getPageByEl(n));n.removeClass("navbar-large-collapsed"),a.eq(0).removeClass("page-with-navbar-large-collapsed").trigger("page:navbarlargeexpanded"),e.emit("pageNavbarLargeExpanded",a[0]),n.trigger("navbar:expand"),e.emit("navbarExpand",n[0])},toggleLargeTitle(t){const e=this;let n=C(t);n.hasClass("navbars")&&(n=n.find(".navbar-large"),n.length>1&&(n=C(t).find(".navbar-large.navbar-current")),n.length>1||!n.length)||(n.hasClass("navbar-large-collapsed")?e.navbar.expandLargeTitle(n):e.navbar.collapseLargeTitle(n))},initNavbarOnScroll(t,e,n,a,r){const s=this,i=Xe(),o=C(t),l=C(e),c=l.find(".title-large"),d=c.length||l.hasClass(".navbar-large");let u=44;const p=s.params.navbar.snapPageScrollToLargeTitle,f=s.params.navbar.snapPageScrollToTransparentNavbar;let h,m,b,w,g,v,y,E,k,$;(a||n&&d)&&(k=l.css("--f7-navbar-large-title-height"),k&&k.indexOf("px")>=0?(k=parseInt(k,10),Number.isNaN(k)&&c.length?k=c[0].offsetHeight:Number.isNaN(k)&&(s.theme==="ios"?k=52:s.theme==="md"&&(k=88))):c.length?k=c[0].offsetHeight:s.theme==="ios"?k=52:s.theme==="md"&&(k=88)),n&&d&&(u+=k);let M,x,F,S;const I=70,B=300;function P(){o.find(".page-content").each(se=>{se.f7ScrollableDistance=se.scrollHeight-se.offsetHeight})}function L(){l.hasClass("with-searchbar-expandable-enabled")||!x||m<0||(m>=k/2&&m=$/2&&m<$?C(x).scrollTop($,100):m<$&&C(x).scrollTop(0,200))}function H(){const se=l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden");if(l.hasClass("with-searchbar-expandable-enabled")||se)return;$||($=e.offsetHeight);let ie=m/$;const le=l.hasClass("navbar-transparent-visible");if(ie=Math.max(Math.min(ie,1),0),le&&ie===1||!le&&ie===0){l.find(".navbar-bg, .title").css("opacity","");return}if(le&&ie===0){l.trigger("navbar:transparenthide"),s.emit("navbarTransparentHide",l[0]),l.removeClass("navbar-transparent-visible"),l.find(".navbar-bg, .title").css("opacity","");return}if(!le&&ie===1){l.trigger("navbar:transparentshow"),s.emit("navbarTransparentShow",l[0]),l.addClass("navbar-transparent-visible"),l.find(".navbar-bg, .title").css("opacity","");return}l.find(".navbar-bg, .title").css("opacity",ie),f&&(i.touch?S&&(clearTimeout(S),S=null,S=setTimeout(()=>{V(),clearTimeout(S),S=null},I)):(clearTimeout(F),F=setTimeout(()=>{V()},B)))}let D=null,O=null;function _(se){if(l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden"))return;const ie=l.hasClass("navbar-large-transparent")||l.hasClass("navbar-large")&&l.hasClass("navbar-transparent");D=O;const le=Math.min(k,se.f7ScrollableDistance||k);O=Math.min(Math.max(m/le,0),1);const be=D>0&&D<1;if(l.hasClass("with-searchbar-expandable-enabled"))return;E=l.hasClass("navbar-large-collapsed");const ce=l.find(".navbar-bg");O===0&&E?s.navbar.expandLargeTitle(l[0]):O===1&&!E&&s.navbar.collapseLargeTitle(l[0]),O===0&&E||O===0&&be||O===1&&!E||O===1&&be?(s.theme==="md"&&l.find(".navbar-inner").css("overflow",""),l.find(".title").css("opacity",""),l.find(".title-large-text, .subnavbar").css("transform",""),l.find(".title-large-text").css("opacity",""),ie&&ce.css("opacity",""),ce.css("transform","")):O>0&&O<1&&(s.theme==="md"&&l.find(".navbar-inner").css("overflow","visible"),l.find(".title").css("opacity",-.5+O*1.5),l.find(".title-large-text, .subnavbar").css("transform",`translate3d(0px, ${-1*O*k}px, 0)`),l.find(".title-large-text").css("opacity",1-O*2),ie&&ce.css("opacity",O),ce.css("transform",`translate3d(0px, ${-1*O*k}px, 0)`)),p&&(i.touch?S&&(clearTimeout(S),S=null,S=setTimeout(()=>{L(),clearTimeout(S),S=null},I)):(clearTimeout(F),F=setTimeout(()=>{L()},B)))}function N(){o.hasClass("page-with-card-opened")||(b=x.scrollHeight,w=x.offsetHeight,g=m+w>=b,y=l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden"),g?s.params.navbar.showOnPageScrollEnd&&(v="show"):h>m?s.params.navbar.showOnPageScrollTop||m<=u?v="show":v="hide":m>u?v="hide":v="show",v==="show"&&y?(s.navbar.show(l,!0,!0),y=!1):v==="hide"&&!y&&(s.navbar.hide(l,!0,!1,!0),y=!0),h=m)}function G(se){x=this,!(se&&se.target&&se.target!==x)&&(m=x.scrollTop,M=m,a?_(x):r&&H(),!o.hasClass("page-previous")&&n&&N())}function ee(){M=!1}function X(){clearTimeout(S),S=null,S=setTimeout(()=>{M!==!1&&(r&&!a?V():L(),clearTimeout(S),S=null)},I)}o.on("scroll",".page-content",G,!0),i.touch&&(a&&p||r&&f)&&(s.on("touchstart:passive",ee),s.on("touchend:passive",X)),P(),(a||r)&&o.find(".page-content").each(se=>{se.scrollTop>0&&G.call(se)}),s.on("resize",P),o[0].f7DetachNavbarScrollHandlers=function(){s.off("resize",P),delete o[0].f7DetachNavbarScrollHandlers,o.off("scroll",".page-content",G,!0),i.touch&&(a&&p||r&&f)&&(s.off("touchstart:passive",ee),s.off("touchend:passive",X))}}},bc={name:"navbar",create(){Ct(this,{navbar:l1})},params:{navbar:{scrollTopOnTitleClick:!0,iosCenterTitle:!0,mdCenterTitle:!1,hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0,collapseLargeTitleOnScroll:!0,snapPageScrollToLargeTitle:!0,snapPageScrollToTransparentNavbar:!0}},on:{"panelBreakpoint panelCollapsedBreakpoint panelResize viewResize resize viewMasterDetailBreakpoint":function(){const e=this;C(".navbar").each(n=>{e.navbar.size(n)})},pageBeforeRemove(t){t.$el[0].f7DetachNavbarScrollHandlers&&t.$el[0].f7DetachNavbarScrollHandlers()},pageBeforeIn(t){const e=this;if(e.theme!=="ios")return;let n;const a=t.$el.parents(".view")[0].f7View,r=e.navbar.getElByPage(t);if(r?n=C(r).parents(".navbars"):n=t.$el.parents(".view").children(".navbars"),t.$el.hasClass("no-navbar")||a.router.dynamicNavbar&&!r){const s=!!(t.pageFrom&&t.router.history.length>0);e.navbar.hide(n,s)}else e.navbar.show(n)},pageReinit(t){const e=this,n=C(e.navbar.getElByPage(t));!n||n.length===0||e.navbar.size(n)},pageInit(t){const e=this,n=C(e.navbar.getElByPage(t));if(!n||n.length===0)return;e.navbar.size(n);let a;n.find(".title-large").length>0&&n.addClass("navbar-large"),n.hasClass("navbar-large")&&(e.params.navbar.collapseLargeTitleOnScroll&&(a=!0),t.$el.addClass("page-with-navbar-large"));let r;!a&&n.hasClass("navbar-transparent")&&(r=!0);let s;(e.params.navbar.hideOnPageScroll||t.$el.find(".hide-navbar-on-scroll").length||t.$el.hasClass("hide-navbar-on-scroll")||t.$el.find(".hide-bars-on-scroll").length||t.$el.hasClass("hide-bars-on-scroll"))&&(t.$el.find(".keep-navbar-on-scroll").length||t.$el.hasClass("keep-navbar-on-scroll")||t.$el.find(".keep-bars-on-scroll").length||t.$el.hasClass("keep-bars-on-scroll")?s=!1:s=!0),(a||s||r)&&e.navbar.initNavbarOnScroll(t.el,n[0],s,a,r)},"panelOpen panelSwipeOpen modalOpen":function(e){const n=this;e.$el.find(".navbar:not(.navbar-previous)").each(a=>{n.navbar.size(a)})},tabShow(t){const e=this;C(t).find(".navbar:not(.navbar-previous)").each(n=>{e.navbar.size(n)})}},clicks:{".navbar .title":function(e,n,a){if(!this.params.navbar.scrollTopOnTitleClick||C(a.target).closest("a, button").length>0)return;let s;const i=e.parents(".navbar"),o=i.parents(".navbars");s=i.parents(".page-content"),s.length===0&&(i.parents(".page").length>0&&(s=i.parents(".page").find(".page-content")),s.length===0&&o.length&&o.nextAll(".page-current").length>0&&(s=o.nextAll(".page-current").find(".page-content")),s.length===0&&i.nextAll(".page-current").length>0&&(s=i.nextAll(".page-current").find(".page-content"))),s&&s.length>0&&(s.hasClass("tab")&&(s=s.parent(".tabs").children(".page-content.tab-active")),s.length>0&&s.scrollTop(0,300))}},vnode:{navbar:{postpatch(t){this.navbar.size(t.elm)}}}},c1={setHighlight(t){const e=this,n=C(t);if(e.theme==="ios"&&!n.hasClass("tabbar-highlight")||n.length===0||!(n.hasClass("tabbar")||n.hasClass("tabbar-icons")))return;let a=n.find(".tab-link-highlight");const r=n.find(".tab-link").length;if(r===0){a.remove();return}a.length===0?(n.children(".toolbar-inner").append(''),a=n.find(".tab-link-highlight")):a.next().length&&n.children(".toolbar-inner").append(a);const s=n.find(".tab-link-active");let i,o;if(n.hasClass("tabbar-scrollable")&&s&&s[0])i=`${s[0].offsetWidth}px`,o=`${s[0].offsetLeft}px`;else{const l=s.index();i=`${100/r}%`,o=`${(e.rtl?-l:l)*100}%`}Mt(()=>{a.css("width",i).transform(`translate3d(${o},0,0)`)})},init(t){this.toolbar.setHighlight(t)},hide(t,e){e===void 0&&(e=!0);const n=this,a=C(t);if(a.hasClass("toolbar-hidden"))return;const r=`toolbar-hidden${e?" toolbar-transitioning":""}`;a.transitionEnd(()=>{a.removeClass("toolbar-transitioning")}),a.addClass(r),a.trigger("toolbar:hide"),n.emit("toolbarHide",a[0])},show(t,e){e===void 0&&(e=!0);const n=this,a=C(t);a.hasClass("toolbar-hidden")&&(e&&(a.addClass("toolbar-transitioning"),a.transitionEnd(()=>{a.removeClass("toolbar-transitioning")})),a.removeClass("toolbar-hidden"),a.trigger("toolbar:show"),n.emit("toolbarShow",a[0]))},initToolbarOnScroll(t){const e=this,n=C(t);let a=n.parents(".view").children(".toolbar");if(a.length===0&&(a=n.find(".toolbar")),a.length===0&&(a=n.parents(".views").children(".tabbar, .tabbar-icons")),a.length===0)return;let r,s,i,o,l,c,d;function u(p){if(n.hasClass("page-with-card-opened")||n.hasClass("page-previous"))return;const f=this;p&&p.target&&p.target!==f||(s=f.scrollTop,i=f.scrollHeight,o=f.offsetHeight,l=s+o>=i,d=a.hasClass("toolbar-hidden"),l?e.params.toolbar.showOnPageScrollEnd&&(c="show"):r>s?e.params.toolbar.showOnPageScrollTop||s<=44?c="show":c="hide":s>44?c="hide":c="show",c==="show"&&d?(e.toolbar.show(a),d=!1):c==="hide"&&!d&&(e.toolbar.hide(a),d=!0),r=s)}n.on("scroll",".page-content",u,!0),n[0].f7ScrollToolbarHandler=u}},vc={name:"toolbar",create(){Ct(this,{toolbar:c1})},params:{toolbar:{hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0}},on:{pageBeforeRemove(t){t.$el[0].f7ScrollToolbarHandler&&t.$el.off("scroll",".page-content",t.$el[0].f7ScrollToolbarHandler,!0)},pageBeforeIn(t){const e=this;let n=t.$el.parents(".view").children(".toolbar");n.length===0&&(n=t.$el.parents(".views").children(".tabbar, .tabbar-icons")),n.length===0&&(n=t.$el.find(".toolbar")),n.length!==0&&(t.$el.hasClass("no-toolbar")?e.toolbar.hide(n):e.toolbar.show(n))},pageInit(t){const e=this;if(t.$el.find(".tabbar, .tabbar-icons").each(n=>{e.toolbar.init(n)}),e.params.toolbar.hideOnPageScroll||t.$el.find(".hide-toolbar-on-scroll").length||t.$el.hasClass("hide-toolbar-on-scroll")||t.$el.find(".hide-bars-on-scroll").length||t.$el.hasClass("hide-bars-on-scroll")){if(t.$el.find(".keep-toolbar-on-scroll").length||t.$el.hasClass("keep-toolbar-on-scroll")||t.$el.find(".keep-bars-on-scroll").length||t.$el.hasClass("keep-bars-on-scroll"))return;e.toolbar.initToolbarOnScroll(t.el)}},init(){const t=this;t.$el.find(".tabbar, .tabbar-icons").each(e=>{t.toolbar.init(e)})}},vnode:{tabbar:{insert(t){this.toolbar.init(t.elm)}}}},wc={name:"subnavbar",on:{pageInit(t){t.$navbarEl&&t.$navbarEl.length&&t.$navbarEl.find(".subnavbar").length&&t.$el.addClass("page-with-subnavbar"),t.$el.find(".subnavbar").filter(n=>C(n).parents(".page")[0]===t.$el[0]).length&&t.$el.addClass("page-with-subnavbar")}}};let co=class{constructor(e,n,a,r){const s=this;if(!n)return;const{left:i,top:o,width:l,height:c}=n[0].getBoundingClientRect(),d={x:a-i,y:r-o};let u=Math.max((c**2+l**2)**.5,48),p=!1;const f=e.params.touch.touchRippleInsetElements||"";if(f&&n.is(f)&&(p=!0),p&&(u=Math.max(Math.min(l,c),48)),!p&&n.css("overflow")==="hidden"){const h=((d.x-l/2)**2+(d.y-c/2)**2)**.5,m=(u/2+h)/(u/2);s.rippleTransform=`translate3d(0px, 0px, 0) scale(${m*2})`}else s.rippleTransform=`translate3d(${-d.x+l/2}px, ${-d.y+c/2}px, 0) scale(1)`;return p&&n.addClass("ripple-inset"),s.$rippleWaveEl=C(`
`),n.prepend(s.$rippleWaveEl),s.$rippleWaveEl.animationEnd(()=>{s.$rippleWaveEl&&(s.$rippleWaveEl.hasClass("ripple-wave-out")||(s.$rippleWaveEl.addClass("ripple-wave-in"),s.shouldBeRemoved&&s.out()))}),s}destroy(){let e=this;e.$rippleWaveEl&&e.$rippleWaveEl.remove(),Object.keys(e).forEach(n=>{e[n]=null,delete e[n]}),e=null}out(){const e=this,{$rippleWaveEl:n}=this;clearTimeout(e.removeTimeout),n.addClass("ripple-wave-out"),e.removeTimeout=setTimeout(()=>{e.destroy()},300),n.animationEnd(()=>{clearTimeout(e.removeTimeout),e.destroy()})}remove(){const e=this;e.shouldBeRemoved||(e.removeTimeout=setTimeout(()=>{e.destroy()},400),e.shouldBeRemoved=!0,e.$rippleWaveEl.hasClass("ripple-wave-in")&&e.out())}};const yc={name:"touch-ripple",static:{TouchRipple:co},create(){const t=this;t.touchRipple={create(){for(var e=arguments.length,n=new Array(e),a=0;a0?f=!0:ha.length>0&&ha.forEach(h=>{h.type==="dialog"&&(f=!0)}),f)return Kn.push(a),a}const d=i.parent(),u=i.parents(r).length>0;d.is(a.$containerEl)||(a.$containerEl.append(i),a.once(`${l}Closed`,()=>{u?d.append(i):i.remove()})),i.show(),a.params.backdrop&&(a.params.backdropUnique||a.forceBackdropUnique)&&a.$backdropEl&&a.$backdropEl.insertBefore(i),a._clientLeft=i[0].clientLeft;function p(){i.hasClass("modal-out")?a.onClosed():i.hasClass("modal-in")&&a.onOpened()}return c?(o&&(o.removeClass("not-animated"),o.addClass("backdrop-in")),i.animationEnd(()=>{p()}),i.transitionEnd(()=>{p()}),i.removeClass("modal-out not-animated").addClass("modal-in"),a.onOpen()):(o&&o.addClass("backdrop-in not-animated"),i.removeClass("modal-out").addClass("modal-in not-animated"),a.onOpen(),a.onOpened()),a}close(e){const n=this,a=n.$el,r=n.$backdropEl;let s=!0;if(typeof e<"u"?s=e:typeof n.params.animate<"u"&&(s=n.params.animate),!a||!a.hasClass("modal-in"))return Kn.indexOf(n)>=0&&Kn.splice(Kn.indexOf(n),1),n;if(r){let o=!0;n.type==="popup"&&n.$el.prevAll(".popup.modal-in").add(n.$el.nextAll(".popup.modal-in")).each(l=>{const c=l.f7Modal;c&&c.params.closeByBackdropClick&&c.params.backdrop&&c.backdropEl===n.backdropEl&&(o=!1)}),o&&(r[s?"removeClass":"addClass"]("not-animated"),r.removeClass("backdrop-in"))}a[s?"removeClass":"addClass"]("not-animated");function i(){a.hasClass("modal-out")?n.onClosed():a.hasClass("modal-in")&&n.onOpened()}return s?(a.animationEnd(()=>{i()}),a.transitionEnd(()=>{i()}),a.removeClass("modal-in").addClass("modal-out"),n.onClose()):(a.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),n.onClose(),n.onClosed()),n.type==="dialog"&&d1(),n}destroy(){const e=this;e.destroyed||(e.emit(`local::beforeDestroy modalBeforeDestroy ${e.type}BeforeDestroy`,e),e.$el&&(e.$el.trigger(`modal:beforedestroy ${e.type.toLowerCase()}:beforedestroy`),e.$el.length&&e.$el[0].f7Modal&&delete e.$el[0].f7Modal),Ze(e),e.destroyed=!0)}};class uo extends en{constructor(e,n){const a=W({backdrop:!0,closeByBackdropClick:!0,on:{}},n);super(e,a);const r=this;r.params=a;let s;if(r.params.el?s=C(r.params.el):s=C(r.params.content),s&&s.length>0&&s[0].f7Modal)return s[0].f7Modal;if(s.length===0)return r.destroy();let i;r.params.backdrop&&(i=e.$el.children(".custom-modal-backdrop"),i.length===0&&(i=C('
'),e.$el.append(i)));function o(l){!r||r.destroyed||i&&l.target===i[0]&&r.close()}return r.on("customModalOpened",()=>{r.params.closeByBackdropClick&&r.params.backdrop&&e.on("click",o)}),r.on("customModalClose",()=>{r.params.closeByBackdropClick&&r.params.backdrop&&e.off("click",o)}),W(r,{app:e,$el:s,el:s[0],$backdropEl:i,backdropEl:i&&i[0],type:"customModal"}),s[0].f7Modal=r,r}}const Ec={name:"modal",static:{Modal:en,CustomModal:uo},create(){const t=this;t.customModal={create(e){return new uo(t,e)}}},params:{modal:{queueDialogs:!0}}};nt.use([ac,rc,sc,ic,oc,uc,ii,pc,fc,hc,mc,gc,bc,vc,wc,yc,Ec]);function Ra(t){const e={};return Object.keys(t).forEach(n=>{typeof t[n]<"u"&&(e[n]=t[n])}),e}function ze(t){return typeof t=="string"&&t!==""}function Ja(t){return typeof t=="object"&&t!==null&&t.constructor&&t.constructor===Object}function Cc(){return Date.now()}function dn(){let t=!0,e,n;for(var a=arguments.length,r=new Array(a),s=0;s{typeof s=="object"&&s.constructor===Object?Object.keys(s).forEach(i=>{s[i]&&t.push(i)}):s&&t.push(s)});const r=[];return t.forEach(s=>{r.indexOf(s)<0&&r.push(s)}),r.join(" ")}let Ss=0,Ts=0;function u1(){Ss=0,Ts=0}function po(){return Ss+=1,`${Cc()}_${Ss}`}function sr(){return Ts+=1,`${Cc()}_${Ts}`}let Y,zt;const Tt={},yt={views:[],tabs:[],modals:null},kc=()=>{Y&&(Tt.ios=Y.theme==="ios",Tt.md=Y.theme==="md")},p1=()=>{u1(),delete Tt.ios,delete Tt.md,yt.views=[],yt.tabs=[],yt.modals=null},f1=()=>{zt=new nt.Events},fo=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n=!0);const a=dn({},e,{el:t,init:n});if(typeof e.store<"u"&&(a.store=e.store),a.routes||(a.routes=[]),a.userAgent&&(a.theme==="auto"||!a.theme)){const s=nt.getDevice({userAgent:a.userAgent},!0);Tt.ios=!!s.ios,Tt.md=!Tt.ios}if(Y&&typeof window<"u")return;typeof window>"u"&&p1();const r=new nt(a);Y=r,kc(),r.initialized?(Y=r,zt.emit("ready",Y)):r.on("init",()=>{Y=r,zt.emit("ready",Y)})},ht=t=>{t&&(Y&&Y.initialized?t(Y):zt.once("ready",t))};function Ve(t){const{color:e,textColor:n,bgColor:a,borderColor:r,rippleColor:s,dark:i}=t;return{dark:i,[`color-${e}`]:e,[`text-color-${n}`]:n,[`bg-color-${a}`]:a,[`border-color-${r}`]:r,[`ripple-color-${s}`]:s}}const _e={color:String,colorTheme:String,textColor:String,bgColor:String,borderColor:String,rippleColor:String,dark:Boolean},$c={icon:String,iconMaterial:String,iconF7:String,iconIos:String,iconMd:String,iconColor:String,iconSize:[String,Number],iconBadge:[String,Number],iconBadgeColor:String},oi={back:Boolean,external:Boolean,force:Boolean,animate:{type:Boolean,default:void 0},ignoreCache:Boolean,reloadCurrent:Boolean,reloadAll:Boolean,reloadPrevious:Boolean,reloadDetail:{type:Boolean,default:void 0},routeTabId:String,view:String,routeProps:Object,preventRouter:Boolean,transition:String,openIn:String};function li(t){const{force:e,reloadCurrent:n,reloadPrevious:a,reloadAll:r,reloadDetail:s,animate:i,ignoreCache:o,routeTabId:l,view:c,transition:d,openIn:u}=t;let p;"animate"in t&&typeof i<"u"&&(p=i.toString());let f;return"reloadDetail"in t&&typeof s<"u"&&(f=s.toString()),{"data-force":e||void 0,"data-reload-current":n||void 0,"data-reload-all":r||void 0,"data-reload-previous":a||void 0,"data-reload-detail":f,"data-animate":p,"data-ignore-cache":o||void 0,"data-route-tab-id":l||void 0,"data-view":ze(c)?c:void 0,"data-transition":ze(d)?d:void 0,"data-open-in":ze(u)?u:void 0}}function ci(t){const{back:e,linkBack:n,external:a,preventRouter:r}=t;return{back:e||n,external:a,"prevent-router":r}}const di={searchbarEnable:[Boolean,String],searchbarDisable:[Boolean,String],searchbarClear:[Boolean,String],searchbarToggle:[Boolean,String],panelOpen:[Boolean,String],panelClose:[Boolean,String],panelToggle:[Boolean,String],popupOpen:[Boolean,String],popupClose:[Boolean,String],actionsOpen:[Boolean,String],actionsClose:[Boolean,String],popoverOpen:[Boolean,String],popoverClose:[Boolean,String],loginScreenOpen:[Boolean,String],loginScreenClose:[Boolean,String],sheetOpen:[Boolean,String],sheetClose:[Boolean,String],sortableEnable:[Boolean,String],sortableDisable:[Boolean,String],sortableToggle:[Boolean,String],cardOpen:[Boolean,String],cardPreventOpen:[Boolean,String],cardClose:[Boolean,String]};function ui(t){const{searchbarEnable:e,searchbarDisable:n,searchbarClear:a,searchbarToggle:r,panelOpen:s,panelClose:i,panelToggle:o,popupOpen:l,popupClose:c,actionsOpen:d,actionsClose:u,popoverOpen:p,popoverClose:f,loginScreenOpen:h,loginScreenClose:m,sheetOpen:b,sheetClose:w,sortableEnable:g,sortableDisable:v,sortableToggle:y,cardOpen:E,cardClose:k}=t;return{"data-searchbar":ze(e)&&e||ze(n)&&n||ze(a)&&a||ze(r)&&r||void 0,"data-panel":ze(s)&&s||ze(i)&&i||ze(o)&&o||void 0,"data-popup":ze(l)&&l||ze(c)&&c||void 0,"data-actions":ze(d)&&d||ze(u)&&u||void 0,"data-popover":ze(p)&&p||ze(f)&&f||void 0,"data-sheet":ze(b)&&b||ze(w)&&w||void 0,"data-login-screen":ze(h)&&h||ze(m)&&m||void 0,"data-sortable":ze(g)&&g||ze(v)&&v||ze(y)&&y||void 0,"data-card":ze(E)&&E||ze(k)&&k||void 0}}function pi(t){const{searchbarEnable:e,searchbarDisable:n,searchbarClear:a,searchbarToggle:r,panelOpen:s,panelClose:i,panelToggle:o,popupOpen:l,popupClose:c,actionsClose:d,actionsOpen:u,popoverOpen:p,popoverClose:f,loginScreenOpen:h,loginScreenClose:m,sheetOpen:b,sheetClose:w,sortableEnable:g,sortableDisable:v,sortableToggle:y,cardOpen:E,cardPreventOpen:k,cardClose:$}=t;return{"searchbar-enable":e||e==="","searchbar-disable":n||n==="","searchbar-clear":a||a==="","searchbar-toggle":r||r==="","panel-close":i||i==="","panel-open":s||s==="","panel-toggle":o||o==="","popup-close":c||c==="","popup-open":l||l==="","actions-close":d||d==="","actions-open":u||u==="","popover-close":f||f==="","popover-open":p||p==="","sheet-close":w||w==="","sheet-open":b||b==="","login-screen-close":m||m==="","login-screen-open":h||h==="","sortable-enable":g||g==="","sortable-disable":v||v==="","sortable-toggle":y||y==="","card-close":$||$==="","card-open":E||E==="","card-prevent-open":k||k===""}}const Ar=function(t){let{isOpened:e,isClosing:n}=t===void 0?{}:t;return{"modal-in":e&&!n,"modal-out":n}};function h1(t,e){return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"default")],2)}const m1={name:"f7-popup",render:h1,props:{tabletFullscreen:Boolean,opened:Boolean,animate:{type:Boolean,default:void 0},backdrop:{type:Boolean,default:void 0},backdropEl:{type:[String,Object],default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},closeOnEscape:{type:Boolean,default:void 0},swipeToClose:{type:[Boolean,String],default:!1},swipeHandler:{type:[String,Object],default:void 0},push:Boolean,containerEl:{type:[String,Object],default:void 0},..._e},emits:["popup:swipestart","popup:swipemove","popup:swipeend","popup:swipeclose","popup:open","popup:opened","popup:close","popup:closed","update:opened"],setup(t,e){let{emit:n}=e;const a=He(null);let r=t.opened,s=!1;const i=He(null),o=b=>{n("popup:swipestart",b)},l=b=>{n("popup:swipemove",b)},c=b=>{n("popup:swipeend",b)},d=b=>{n("popup:swipeclose",b)},u=b=>{r=!0,s=!1,n("popup:open",b),n("update:opened",!0)},p=b=>{n("popup:opened",b)},f=b=>{r=!1,s=!0,n("popup:close",b)},h=b=>{s=!1,n("popup:closed",b),n("update:opened",!1)};Ht(()=>t.opened,b=>{a.value&&(b?a.value.open():a.value.close())}),tt(()=>{if(!i.value)return;const b={el:i.value,on:{swipeStart:o,swipeMove:l,swipeEnd:c,swipeClose:d,open:u,opened:p,close:f,closed:h}},{closeByBackdropClick:w,closeOnEscape:g,animate:v,backdrop:y,backdropEl:E,swipeToClose:k,swipeHandler:$,containerEl:M}=t;typeof w<"u"&&(b.closeByBackdropClick=w),typeof g<"u"&&(b.closeOnEscape=g),typeof v<"u"&&(b.animate=v),typeof y<"u"&&(b.backdrop=y),typeof E<"u"&&(b.backdropEl=E),typeof k<"u"&&(b.swipeToClose=k),typeof $<"u"&&(b.swipeHandler=$),typeof M<"u"&&(b.containerEl=M),ht(()=>{a.value=Y.popup.create(b),t.opened&&a.value.open(!1,!0)})}),ct(()=>{a.value&&a.value.destroy(),a.value=null});const m=me(()=>Re("popup",{"popup-tablet-fullscreen":t.tabletFullscreen,"popup-push":t.push},Ar({isOpened:r,isClosing:s}),Ve(t)));return{elRef:i,classes:m}}},Dr=(t,e)=>{const n=r=>{t.value===r&&e("tab:show",r)},a=r=>{t.value===r&&e("tab:hide",r)};tt(()=>{t.value&&ht(()=>{Y.on("tabShow",n),Y.on("tabHide",a)})}),ct(()=>{Y&&(Y.off("tabShow",n),Y.off("tabHide",a))})},g1=(t,e)=>{let n;const{initialUrl:a}=t.getInitialUrl(),r=t.findMatchingRoute(a);let s={};r&&r.route&&r.route.options&&(s=r.route.options.props);const i=o=>o.master===!0?!0:typeof o.master=="function"?o.master(t.app):!1;return r&&r.route&&(r.route.component||r.route.asyncComponent)&&!i(r.route)&&(n={component:r.route.component||r.route.asyncComponent,initialComponent:e,id:sr(),isAsync:!!r.route.asyncComponent,props:{f7route:r,f7router:t,...s,...r.params}}),{initialPage:n,initialRoute:r}},Xn={name:"f7-view",props:{tab:Boolean,tabActive:Boolean,name:String,initRouterOnTabShow:{type:Boolean,default:void 0},router:{type:Boolean,default:!0},linksView:[Object,String],url:String,main:{type:Boolean,default:void 0},xhrCache:{type:Boolean,default:void 0},xhrCacheIgnore:Array,xhrCacheIgnoreGetParameters:{type:Boolean,default:void 0},xhrCacheDuration:Number,preloadPreviousPage:{type:Boolean,default:void 0},allowDuplicateUrls:{type:Boolean,default:void 0},reloadPages:{type:Boolean,default:void 0},reloadDetail:{type:Boolean,default:void 0},masterDetailResizable:{type:Boolean,default:void 0},masterDetailBreakpoint:Number,removeElements:{type:Boolean,default:void 0},removeElementsWithTimeout:{type:Boolean,default:void 0},removeElementsTimeout:Number,restoreScrollTopOnBack:{type:Boolean,default:void 0},loadInitialPage:{type:Boolean,default:void 0},iosSwipeBack:{type:Boolean,default:void 0},iosSwipeBackAnimateShadow:{type:Boolean,default:void 0},iosSwipeBackAnimateOpacity:{type:Boolean,default:void 0},iosSwipeBackActiveArea:Number,iosSwipeBackThreshold:Number,mdSwipeBack:{type:Boolean,default:void 0},mdSwipeBackAnimateShadow:{type:Boolean,default:void 0},mdSwipeBackAnimateOpacity:{type:Boolean,default:void 0},mdSwipeBackActiveArea:Number,mdSwipeBackThreshold:Number,browserHistory:{type:Boolean,default:void 0},browserHistoryRoot:String,browserHistoryAnimate:{type:Boolean,default:void 0},browserHistoryAnimateOnLoad:{type:Boolean,default:void 0},browserHistorySeparator:String,browserHistoryOnLoad:{type:Boolean,default:void 0},browserHistoryInitialMatch:{type:Boolean,default:!0},browserHistoryStoreHistory:{type:Boolean,default:void 0},animate:{type:Boolean,default:void 0},transition:String,iosDynamicNavbar:{type:Boolean,default:void 0},iosAnimateNavbarBackIcon:{type:Boolean,default:void 0},materialPageLoadDelay:Number,passRouteQueryToRequest:{type:Boolean,default:void 0},passRouteParamsToRequest:{type:Boolean,default:void 0},routes:Array,routesAdd:Array,routesBeforeEnter:[Function,Array],routesBeforeLeave:[Function,Array],unloadTabContent:{type:Boolean,default:void 0},init:{type:Boolean,default:!0},..._e},emits:["view:init","view:resize","swipeback:move","swipeback:beforechange","swipeback:afterchange","swipeback:beforereset","swipeback:afterreset","tab:hide","tab:show"],setup(t,e){let{emit:n,slots:a}=e;const r=null,s=!(t.initRouterOnTabShow&&t.tab&&!t.tabActive);let i=null;const o=He(null);let l=null,c,d;const u=M=>{n("view:init",M),t.init||(l.instance=M,i=l.instance)},p=()=>{const M=Me(t.routes||[]),x=Me(t.routesAdd||[]);return Ra({...t,routes:M,routesAdd:x})};if(Y&&!i&&t.init){const M=po();if(i=Y.views.create(o.value,{...p(),routerId:M,init:!1,on:{init:u}}),l={routerId:M,instance:i},yt.views.push(l),s&&i&&i.router&&(t.url||t.main)){const x=g1(i.router,r);c=x.initialPage,d=x.initialRoute,d&&d.route&&d.route.masterRoute&&(c=void 0,d=void 0)}}const f=He(c?[c]:[]),h=M=>{M.forEach(x=>{x.component=Me(x.component)}),f.value=M},m=(M,x)=>{n("view:resize",x)},b=M=>{n("swipeback:move",M)},w=M=>{n("swipeback:beforechange",M)},g=M=>{n("swipeback:afterchange",M)},v=M=>{n("swipeback:beforereset",M)},y=M=>{n("swipeback:afterreset",M)};tt(()=>{ht(()=>{if(i)l.el=o.value,l.pages=f.value,l.setPages=M=>{h([...M])},c&&c.isAsync&&!c.initialComponent?c.component().then(()=>{setTimeout(()=>{i.init(o.value),c&&(c.el=i.router.currentPageEl,d&&d.route&&d.route.keepAlive&&(d.route.keepAliveData={pageEl:c.el}))},100)}):(i.init(o.value),c&&(c.el=i.router.currentPageEl,d&&d.route&&d.route.keepAlive&&(d.route.keepAliveData={pageEl:c.el})));else{const M=po();l={el:o.value,routerId:M,pages:f.value,instance:i,setPages(x){h([...x])}},yt.views.push(l),l.instance=Y.views.create(o.value,{routerId:M,...p(),on:{init:u}}),i=l.instance}t.init&&(i.on("resize",m),i.on("swipebackMove",b),i.on("swipebackBeforeChange",w),i.on("swipebackAfterChange",g),i.on("swipebackBeforeReset",v),i.on("swipebackAfterReset",y))})}),ct(()=>{i&&(i.off("resize",m),i.off("swipebackMove",b),i.off("swipebackBeforeChange",w),i.off("swipebackAfterChange",g),i.off("swipebackBeforeReset",v),i.off("swipebackAfterReset",y),i.destroy&&i.destroy(),i=null),yt.views.splice(yt.views.indexOf(l),1),l=null}),Pr(()=>{!l||!Y||zt.emit("viewRouterDidUpdate",l)}),Dr(o,n);const E=me(()=>Re("view",{"view-main":t.main,"tab-active":t.tabActive,tab:t.tab},Ve(t))),k=M=>Me(M.component),$=M=>{const{component:x,props:F}=M;let S=[];const I={};return x&&x.props&&(Array.isArray(x.props)?S=x.props.filter(B=>typeof B=="string"):S=Object.keys(x.props)),S.forEach(B=>{B in F&&(I[B]=F[B])}),I};return()=>xe("div",{ref:o,class:E.value},[a.default&&a.default(),...f.value.map(M=>xe(k(M),{key:M.id,...$(M)}))])}};function b1(t,e){return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"default")],2)}const v1={name:"f7-login-screen",render:b1,props:{opened:Boolean,animate:{type:Boolean,default:void 0},containerEl:{type:[String,Object],default:void 0},..._e},emits:["loginscreen:open","loginscreen:opened","loginscreen:close","loginscreen:closed","update:opened"],setup(t,e){let{emit:n}=e;const a=He(null);let r=t.opened,s=!1;const i=He(null),o=p=>{r=!0,s=!1,n("loginscreen:open",p),n("update:opened",!0)},l=p=>{n("loginscreen:opened",p)},c=p=>{r=!1,s=!0,n("loginscreen:close",p)},d=p=>{s=!1,n("loginscreen:closed",p),n("update:opened",!1)};Ht(()=>t.opened,p=>{a.value&&(p?a.value.open():a.value.close())}),tt(()=>{i.value&&ht(()=>{const p={el:i.value,on:{open:o,opened:l,close:c,closed:d}};typeof t.animate<"u"&&(p.animate=t.animate),typeof t.containerEl<"u"&&(p.containerEl=t.containerEl),a.value=Y.loginScreen.create(p),t.opened&&a.value.open(!1)})}),ct(()=>{a.value&&a.value.destroy(),a.value=null});const u=me(()=>Re("login-screen",Ar({isOpened:r,isClosing:s}),Ve(t)));return{elRef:i,classes:u}}},w1={name:"f7-sheet",props:{opened:Boolean,animate:{type:Boolean,default:void 0},top:Boolean,bottom:Boolean,position:String,backdrop:{type:Boolean,default:void 0},backdropEl:{type:[String,Object],default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},closeByOutsideClick:{type:Boolean,default:void 0},closeOnEscape:{type:Boolean,default:void 0},push:Boolean,swipeToClose:{type:Boolean,default:void 0},swipeToStep:{type:Boolean,default:void 0},swipeHandler:{type:[String,Object],default:void 0},containerEl:{type:[String,Object],default:void 0},breakpoints:{type:Array,default:()=>{}},backdropBreakpoint:{type:Number,default:void 0},pushBreakpoint:{type:Number,default:void 0},..._e},emits:["sheet:stepprogress","sheet:stepopen","sheet:stepclose","sheet:open","sheet:opened","sheet:close","sheet:closed","sheet:breakpoint","update:opened"],setup(t,e){let{emit:n,slots:a}=e,r=null,s=t.opened,i=!1;const o=He(null),l=(g,v)=>{n("sheet:breakpoint",g,v)},c=(g,v)=>{n("sheet:stepprogress",g,v)},d=g=>{n("sheet:stepopen",g)},u=g=>{n("sheet:stepclose",g)},p=g=>{s=!0,i=!1,n("sheet:open",g),n("update:opened",!0)},f=g=>{n("sheet:opened",g)},h=g=>{s=!1,i=!0,n("sheet:close",g)},m=g=>{i=!1,n("sheet:closed",g),n("update:opened",!1)};tt(()=>{if(!o.value)return;const g={el:o.value,on:{open:p,opened:f,close:h,closed:m,stepOpen:d,stepClose:u,stepProgress:c,breakpoint:l}},{animate:v,backdrop:y,backdropEl:E,closeByBackdropClick:k,closeByOutsideClick:$,closeOnEscape:M,swipeToClose:x,swipeToStep:F,swipeHandler:S,containerEl:I,breakpoints:B,backdropBreakpoint:P,pushBreakpoint:L}=t;typeof v<"u"&&(g.animate=v),typeof y<"u"&&(g.backdrop=y),typeof E<"u"&&(g.backdropEl=E),typeof k<"u"&&(g.closeByBackdropClick=k),typeof $<"u"&&(g.closeByOutsideClick=$),typeof M<"u"&&(g.closeOnEscape=M),typeof x<"u"&&(g.swipeToClose=x),typeof F<"u"&&(g.swipeToStep=F),typeof S<"u"&&(g.swipeHandler=S),typeof I<"u"&&(g.containerEl=I),typeof B<"u"&&(g.breakpoints=B),typeof P<"u"&&(g.backdropBreakpoint=P),typeof L<"u"&&(g.pushBreakpoint=L),ht(()=>{r=Y.sheet.create(g),t.opened&&r.open(!1)})}),ct(()=>{r&&r.destroy(),r=null}),Ht(()=>t.opened,g=>{r&&(g?r.open():r.close())}),["closeByBackdropClick","closeByOutsideClick","closeOnEscape","swipeToClose"].forEach(g=>{Ht(()=>t[g],v=>{r&&(r.params[g]=v)})});const b=me(()=>{let g="bottom";return t.position?g=t.position:t.top?g="top":t.bottom&&(g="bottom"),Re("sheet-modal",`sheet-modal-${g}`,{"sheet-modal-push":t.push},Ar({isOpened:s,isClosing:i}),Ve(t))}),w="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index panel".split(" ").map(g=>`f7-${g}`);return()=>{const g=[],v=[];return a.default&&a.default().forEach(y=>{if(typeof y>"u")return;const E=y.type&&y.type.name?y.type.name:y.type;w.indexOf(E)>=0?g.push(y):v.push(y)}),xe("div",{class:b.value,ref:o},[g,a.fixed&&a.fixed(),xe("div",{class:"sheet-modal-inner"},[v,a.static&&a.static()])])}}},y1={key:0,class:"popover-arrow"},E1={class:"popover-inner"};function C1(t,e){return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[t.arrow!==!1?(ge(),ke("div",y1)):We("",!0),Ne("div",E1,[Te(t.$slots,"default")])],2)}const xc={name:"f7-popover",render:C1,props:{opened:Boolean,animate:{type:Boolean,default:void 0},targetEl:{type:[String,Object],default:void 0},arrow:{type:Boolean,default:void 0},backdrop:{type:Boolean,default:void 0},backdropEl:{type:[String,Object],default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},closeByOutsideClick:{type:Boolean,default:void 0},closeOnEscape:{type:Boolean,default:void 0},containerEl:{type:[String,Object],default:void 0},verticalPosition:{type:String,default:void 0},..._e},emits:["popover:open","popover:opened","popover:close","popover:closed","update:opened"],setup(t,e){let{emit:n}=e;const a=He(null);let r=t.opened,s=!1;const i=He(null),o=p=>{r=!0,s=!1,n("popover:open",p),n("update:opened",!0)},l=p=>{n("popover:opened",p)},c=p=>{r=!1,s=!0,n("popover:close",p)},d=p=>{s=!1,n("popover:closed",p),n("update:opened",!1)};Ht(()=>t.opened,p=>{a.value&&(p?a.value.open():a.value.close())}),tt(()=>{if(!i.value)return;const p={el:i.value,on:{open:o,opened:l,close:c,closed:d}},{targetEl:f,closeByBackdropClick:h,closeByOutsideClick:m,closeOnEscape:b,arrow:w,backdrop:g,backdropEl:v,containerEl:y,verticalPosition:E}=t;typeof f<"u"&&(p.targetEl=f),typeof h<"u"&&(p.closeByBackdropClick=h),typeof m<"u"&&(p.closeByOutsideClick=m),typeof b<"u"&&(p.closeOnEscape=b),typeof w<"u"&&(p.arrow=w),typeof g<"u"&&(p.backdrop=g),typeof v<"u"&&(p.backdropEl=v),typeof y<"u"&&(p.containerEl=y),typeof E<"u"&&(p.verticalPosition=E),ht(()=>{a.value=Y.popover.create(p),t.opened&&a.value.open(f,!1)})}),ct(()=>{a.value&&a.value.destroy(),a.value=null});const u=me(()=>Re("popover",Ar({isOpened:r,isClosing:s}),Ve(t)));return{elRef:i,classes:u}}},k1={key:0,class:"panel-resize-handler"};function $1(t,e){return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"default"),t.resizable?(ge(),ke("div",k1)):We("",!0)],2)}const x1={name:"f7-panel",render:$1,props:{side:String,effect:String,cover:Boolean,reveal:Boolean,push:Boolean,floating:Boolean,left:Boolean,right:Boolean,opened:Boolean,resizable:Boolean,backdrop:{type:Boolean,default:!0},backdropEl:{type:String,default:void 0},containerEl:{type:String,default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},visibleBreakpoint:{type:Number,default:void 0},collapsedBreakpoint:{type:Number,default:void 0},swipe:Boolean,swipeNoFollow:Boolean,swipeOnlyClose:Boolean,swipeActiveArea:{type:Number,default:0},swipeThreshold:{type:Number,default:0},..._e},emits:["panel:open","panel:opened","panel:close","panel:closed","click","panel:backdropclick","panel:swipe","panel:swipeopen","panel:breakpoint","panel:collapsedbreakpoint","panel:resize","update:opened"],setup(t,e){let{emit:n}=e,a=null;const r=He(null);let s=!1,i=!1,o=!1,l=!1;const c=y=>{s=!0,i=!1,n("panel:open",y),n("update:opened",!0)},d=y=>{n("panel:opened",y)},u=y=>{s=!1,i=!0,n("panel:close",y)},p=y=>{i=!1,n("panel:closed",y),n("update:opened",!1)},f=y=>{n("click",y),n("panel:backdropclick",y)},h=y=>{n("panel:swipe",y)},m=y=>{n("panel:swipeopen",y)},b=y=>{l=!0,o=!1,n("panel:breakpoint",y)},w=y=>{l=!1,o=!0,n("panel:collapsedbreakpoint",y)},g=function(){for(var y=arguments.length,E=new Array(y),k=0;kt.resizable,y=>{a&&(y?a.enableResizable():a.disableResizable())}),Ht(()=>t.opened,y=>{a&&(y?a.open():a.close())}),tt(()=>{ht(()=>{const y=Y.$;if(!y)return;y(".panel-backdrop").length===0&&y('
').insertBefore(r.value);const E=Ra({el:r.value,resizable:t.resizable,backdrop:t.backdrop,backdropEl:t.backdropEl,containerEl:t.containerEl,closeByBackdropClick:t.containerEl,visibleBreakpoint:t.visibleBreakpoint,collapsedBreakpoint:t.collapsedBreakpoint,swipe:t.swipe,swipeNoFollow:t.swipeNoFollow,swipeOnlyClose:t.swipeOnlyClose,swipeActiveArea:t.swipeActiveArea,swipeThreshold:t.swipeThreshold,on:{open:c,opened:d,close:u,closed:p,backdropClick:f,swipe:h,swipeOpen:m,collapsedBreakpoint:w,breakpoint:b,resize:g}});a=Y.panel.create(E),t.opened&&a.open(!1)})}),ct(()=>{a&&a.destroy&&a.destroy(),a=null});const v=me(()=>{const y=t.side||(t.left?"left":"right"),E=t.effect||(t.reveal?"reveal":t.push?"push":t.floating?"floating":"cover");return Re("panel",{"panel-in":s&&!i&&!l,"panel-in-breakpoint":l,"panel-in-collapsed":o,"panel-resizable":t.resizable,[`panel-${y}`]:y,[`panel-${E}`]:E},Ve(t))});return{elRef:r,classes:v}}},S1=(t,e,n)=>{const a={url:e,route:{path:e,options:{...n,openIn:void 0}}},r={...n};if(n.openIn==="popup"&&(r.component={setup(){return()=>xe(m1,{class:"popup-router-open-in","data-url":e},[xe(Xn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.popup=r),n.openIn==="loginScreen"&&(r.component={setup(){return()=>xe(v1,{class:"login-screen-router-open-in","data-url":e},[xe(Xn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.loginScreen=r),n.openIn==="sheet"&&(r.component={setup(){return()=>xe(w1,{class:"sheet-modal-router-open-in","data-url":e},[xe(Xn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.sheet=r),n.openIn==="popover"&&(r.targetEl=n.clickedEl||n.targetEl,r.component={setup(){return()=>xe(xc,{class:"popover-router-open-in","data-url":e,targetEl:n.clickedEl||n.targetEl},[xe(Xn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.popover=r),n.openIn.indexOf("panel")>=0){const s=n.openIn.split(":"),i=s[1]||"left",o=s[2]||"cover";r.component={setup(){return()=>xe(x1,{class:"panel-router-open-in","data-url":e,side:i,effect:o},[xe(Xn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.panel=r}return t.navigate(a)},ho=t=>{const e=[];for(let n=0;nt.length!==e.length?!1:new Set([...t,...e]).size===t.length,P1={proto:{openIn(t,e,n){return S1(t,e,n)},pageComponentLoader(t){let{routerEl:e,component:n,options:a,resolve:r,reject:s}=t;const i=this,o=i.id,l=e;let c;if(yt.views.forEach(h=>{(h.el&&h.el===e||h.routerId&&h.routerId===o)&&(c=h)}),!c){s();return}const d={component:n,id:sr(),props:dn({f7route:a.route,f7router:i},a.route.params,a.props||{})};let u;const p=ho(l);function f(h){if(h!==c||u)return;const m=ho(l);if(T1(p,m))return;zt.off("viewRouterDidUpdate",f);const b=l.children[l.children.length-1];d.el=b,r(b),u=!0}zt.on("viewRouterDidUpdate",f),c.pages.push(d),c.setPages(c.pages)},removePage(t){if(!t)return;const e=this;let n;if("length"in t&&t[0]?n=t[0].f7Page:n=t.f7Page,n&&n.route&&n.route.route&&n.route.route.keepAlive){e.app.$(t).remove();return}let a;yt.views.forEach(i=>{i.el&&i.el===e.el&&(a=i)});let r;if("length"in t){if(t.length===0)return;r=t[0]}else r=t;if(!r)return;let s;a.pages.forEach((i,o)=>{i.el===r&&(s=!0,a.pages.splice(o,1),a.setPages(a.pages))}),s||r.parentNode.removeChild(r)},tabComponentLoader(t){let{tabEl:e,component:n,options:a,resolve:r,reject:s}=t===void 0?{}:t;const i=this;e||s();let o;if(yt.tabs.forEach(p=>{p.el&&p.el===e&&(o=p)}),!o){s();return}const c={id:sr(),component:n,props:dn({f7route:a.route,f7router:i},a.route.route&&a.route.route.tab&&a.route.route.tab.options&&a.route.route.tab.options.props||{},a.route.params,a.props||{})};let d;function u(p){if(p!==o||d)return;zt.off("tabRouterDidUpdate",u);const f=e.children[0];r(f),d=!0}zt.on("tabRouterDidUpdate",u),o.setTabContent(c)},removeTabContent(t){if(!t)return;let e;if(yt.tabs.forEach(n=>{n.el&&n.el===t&&(e=n)}),!e){t.innerHTML="";return}e.setTabContent(null)},modalComponentLoader(t){let{component:e,options:n,resolve:a,reject:r}=t===void 0?{}:t;const s=this,i=yt.modals;if(!i){r();return}const o={component:e,id:sr(),props:dn({f7route:n.route,f7router:s},n.route.params,n.props||{})};let l;function c(){if(l)return;zt.off("modalsRouterDidUpdate",c);const d=i.el.children[i.el.children.length-1];o.el=d,a(d),l=!0}zt.on("modalsRouterDidUpdate",c),i.modals.push(o),i.setModals(i.modals)},removeModal(t){const e=yt.modals;if(!e)return;let n;e.modals.forEach(a=>{a.el===t&&(n=a)}),e.modals.splice(e.modals.indexOf(n),1),e.setModals(e.modals)}}},Ps={name:"vuePlugin",installed:!1,install(t){if(t===void 0&&(t={}),Ps.installed)return;Ps.installed=!0,f1();const{theme:e,userAgent:n}=t;if(e==="md"&&(Tt.md=!0),e==="ios"&&(Tt.ios=!0),(typeof window>"u"?!!n:!0)&&(!e||e==="auto")){const r=nt.getDevice({userAgent:n},!0);Tt.ios=!!r.ios,Tt.md=!Tt.ios}ht(()=>{kc()}),nt.Router.use(P1)}};function M1(t,e){return ge(),ke("div",{class:Le(t.classes)},[Te(t.$slots,"default")],2)}const B1={name:"f7-accordion-content",render:M1,props:{..._e},setup(t){return{classes:me(()=>Re("accordion-item-content",Ve(t)))}}},I1={name:"f7-routable-modals",setup(){const t=He(null),e=He([]),n=He(null);tt(()=>{n.value={modals:e,el:t.value,setModals(s){s.forEach(i=>{i.component=Me(i.component)}),e.value=[...s]}},yt.modals=n.value}),Pr(()=>{!n.value||!Y||zt.emit("modalsRouterDidUpdate",n.value)}),ct(()=>{n.value&&(yt.modals=null,n.value=null)});const a=s=>Me(s.component),r=s=>{const{component:i,props:o}=s;let l=[];const c={};return i&&i.props&&(l=Object.keys(i.props)),l.forEach(d=>{d in o&&(c[d]=o[d])}),c};return()=>xe("div",{ref:t,class:"framework7-modals"},[...e.value.map(s=>xe(a(s),{key:s.id,...r(s)}))])}};function O1(t,e){const n=Ae("routable-modals");return ge(),ke("div",{id:"framework7-root",ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"default"),Se(n)],2)}const A1={name:"f7-app",render:O1,components:{RoutableModals:I1},inheritAttrs:!1,props:{name:{type:String,default:void 0},theme:{type:String,default:void 0},routes:{type:Array,default:()=>[]},store:Object,darkMode:{type:[Boolean,String],default:!1},colors:{type:Object,default:()=>{}},lazyModulesPath:{type:String,default:void 0},initOnDeviceReady:{type:Boolean,default:void 0},iosTranslucentBars:{type:Boolean,default:void 0},iosTranslucentModals:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},accordion:{type:Object,default:()=>{}},actions:{type:Object,default:()=>{}},areaChart:{type:Object,default:()=>{}},autocomplete:{type:Object,default:()=>{}},calendar:{type:Object,default:()=>{}},card:{type:Object,default:()=>{}},colorPicker:{type:Object,default:()=>{}},dialog:{type:Object,default:()=>{}},form:{type:Object,default:()=>{}},gauge:{type:Object,default:()=>{}},infiniteScroll:{type:Object,default:()=>{}},input:{type:Object,default:()=>{}},listIndex:{type:Object,default:()=>{}},loginScreen:{type:Object,default:()=>{}},messagebar:{type:Object,default:()=>{}},messages:{type:Object,default:()=>{}},navbar:{type:Object,default:()=>{}},notification:{type:Object,default:()=>{}},panel:{type:Object,default:()=>{}},photoBrowser:{type:Object,default:()=>{}},picker:{type:Object,default:()=>{}},pieChart:{type:Object,default:()=>{}},popover:{type:Object,default:()=>{}},popup:{type:Object,default:()=>{}},range:{type:Object,default:()=>{}},searchbar:{type:Object,default:()=>{}},sheet:{type:Object,default:()=>{}},smartSelect:{type:Object,default:()=>{}},sortable:{type:Object,default:()=>{}},statusbar:{type:Object,default:()=>{}},stepper:{type:Object,default:()=>{}},swipeout:{type:Object,default:()=>{}},textEditor:{type:Object,default:()=>{}},toast:{type:Object,default:()=>{}},toolbar:{type:Object,default:()=>{}},tooltip:{type:Object,default:()=>{}},view:{type:Object,default:()=>{}},virtualList:{type:Object,default:()=>{}},clicks:{type:Object,default:()=>{}},serviceWorker:{type:Object,default:()=>{}},touch:{type:Object,default:()=>{}},..._e},setup(t){const e=He(null),n=Me(t.routes);return(!Y||typeof window>"u")&&fo(e.value,Ra({...t,routes:n}),!1),tt(()=>{const r=e.value&&e.value.parentNode;if(typeof document<"u"&&r&&r!==document.body&&r.parentNode===document.body&&(r.style.height="100%"),Y){Y.init(e.value);return}fo(e.value,Ra({...t,routes:n}),!0)}),{classes:me(()=>Re("framework7-root",Ve(t))),elRef:e}}},Va=(t,e)=>{let n=null;const{tooltip:a,tooltipTrigger:r}=e;tt(()=>{t.value&&a&&ht(()=>{n=Y.tooltip.create({targetEl:t.value,text:a,trigger:r})})}),ct(()=>{n&&n.destroy&&(n.destroy(),n=null)}),Ht(()=>e.tooltip,s=>{if(!s&&n){n.destroy(),n=null;return}if(s&&!n&&Y){n=Y.tooltip.create({targetEl:t.value,text:s,trigger:r});return}!s||!n||n.setText(s)})};function D1(t,e){return ge(),ke("span",{ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"default")],2)}const fi={name:"f7-badge",render:D1,props:{tooltip:String,tooltipTrigger:String,..._e},setup(t){const e=He(null);Va(e,t);const n=me(()=>Re("badge",Ve(t)));return{elRef:e,classes:n}}};function L1(t,e){return ge(),ke("div",{class:Le(t.classes)},[Te(t.$slots,"default")],2)}const R1={name:"f7-block-header",render:L1,props:{..._e},setup(t){return{classes:me(()=>Re("block-header",Ve(t)))}}};function H1(t,e){return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"default")],2)}const F1={name:"f7-block",render:H1,props:{inset:Boolean,insetIos:Boolean,insetMd:Boolean,xsmallInset:Boolean,xsmallInsetIos:Boolean,xsmallInsetMd:Boolean,smallInset:Boolean,smallInsetIos:Boolean,smallInsetMd:Boolean,mediumInset:Boolean,mediumInsetIos:Boolean,mediumInsetMd:Boolean,largeInset:Boolean,largeInsetIos:Boolean,largeInsetMd:Boolean,xlargeInset:Boolean,xlargeInsetIos:Boolean,xlargeInsetMd:Boolean,strong:Boolean,strongIos:Boolean,strongMd:Boolean,outline:Boolean,outlineIos:Boolean,outlineMd:Boolean,tabs:Boolean,tab:Boolean,tabActive:Boolean,accordionList:Boolean,accordionOpposite:Boolean,..._e},emits:["tab:hide","tab:show"],setup(t,e){let{emit:n}=e;const a=He(null);Dr(a,n);const r=me(()=>{const{inset:s,insetIos:i,insetMd:o,xsmallInset:l,xsmallInsetIos:c,xsmallInsetMd:d,smallInset:u,smallInsetIos:p,smallInsetMd:f,mediumInset:h,mediumInsetIos:m,mediumInsetMd:b,largeInset:w,largeInsetIos:g,largeInsetMd:v,xlargeInset:y,xlargeInsetIos:E,xlargeInsetMd:k,strong:$,strongIos:M,strongMd:x,outline:F,outlineIos:S,outlineMd:I,accordionList:B,accordionOpposite:P,tabs:L,tab:V,tabActive:H}=t;return Re("block",{inset:s,"inset-ios":i,"inset-md":o,"xsmall-inset":l,"xsmall-inset-ios":c,"xsmall-inset-md":d,"small-inset":u,"small-inset-ios":p,"small-inset-md":f,"medium-inset":h,"medium-inset-ios":m,"medium-inset-md":b,"large-inset":w,"large-inset-ios":g,"large-inset-md":v,"xlarge-inset":y,"xlarge-inset-ios":E,"xlarge-inset-md":k,"block-strong":$,"block-strong-ios":M,"block-strong-md":x,"accordion-list":B,"accordion-opposite":P,tabs:L,tab:V,"tab-active":H,"block-outline":F,"block-outline-md":I,"block-outline-ios":S},Ve(t))});return{elRef:a,classes:r}}},Sc=function(t){t===void 0&&(t={});const{icon:e,iconMaterial:n,iconF7:a,iconMd:r,iconIos:s,iconColor:i,iconSize:o,iconBadge:l,badgeColor:c,iconBadgeColor:d}=t;return e||n||a||r||s?{props:{material:n,f7:a,icon:e,md:r,ios:s,color:i,size:o},badge:l||l===0?{props:{color:c||d},content:l}:null}:null},hi=function(t,e){let{routeProps:n}=e===void 0?{}:e;tt(()=>{t.value&&n&&(t.value.f7RouteProps=n)}),Pr(()=>{t.value&&n?t.value.f7RouteProps=n:t.value&&t.value.f7RouteProps&&delete t.value.f7RouteProps})},_a=()=>{const t=He(Y?Tt:null);return Y||ht(()=>{t.value=Tt}),t},z1={key:0,class:"preloader-inner"},N1=Ne("svg",{viewBox:"0 0 36 36"},[Ne("circle",{cx:"18",cy:"18",r:"16"})],-1),V1=[N1],_1={key:1,class:"preloader-inner"},j1=ku('',8),q1=[j1],W1={key:2,class:"preloader-inner"};function Y1(t,e){return ge(),ke("div",{class:Le(t.classes),style:xn(t.style)},[t.theme&&t.theme.md?(ge(),ke("span",z1,V1)):t.theme&&t.theme.ios?(ge(),ke("span",_1,q1)):t.theme?We("",!0):(ge(),ke("span",W1))],6)}const Tc={name:"f7-preloader",render:Y1,props:{size:[Number,String],..._e},setup(t){const e=_a(),n=me(()=>Re("preloader",{preloader:!0},Ve(t))),a=me(()=>{const r={};let s=t.size;return s&&typeof s=="string"&&s.indexOf("px")>=0&&(s=s.replace("px","")),s&&(r.width=`${s}px`,r.height=`${s}px`,r["--f7-preloader-size"]=`${s}px`),r});return{classes:n,style:a,theme:e}}};function X1(t,e){return ge(),ke("i",{ref:"elRef",style:xn({fontSize:t.sizeComputed,width:t.sizeComputed,height:t.sizeComputed}),class:Le(t.classesComputed)},[St(Pt(t.iconText)+" ",1),Te(t.$slots,"default")],6)}const Pc={name:"f7-icon",render:X1,props:{material:String,f7:String,icon:String,ios:String,md:String,tooltip:String,tooltipTrigger:String,size:[String,Number],..._e},setup(t){const e=He(null),n=_a();Va(e,t);const a=me(()=>{const{ios:i,md:o,f7:l,material:c,icon:d}=t;let u={icon:!0},p;if(n.value&&n.value.ios?p=i:n.value&&n.value.md&&(p=o),p){const f=p.split(":"),h=f[0],m=f[1];(h==="material"||h==="f7")&&(u["material-icons"]=h==="material",u["f7-icons"]=h==="f7"),h==="icon"&&(u[m]=!0),d&&(u[d]=!0)}else u={icon:!0,"material-icons":c,"f7-icons":l},d&&(u[d]=!0);return Re(u,Ve(t))}),r=me(()=>{let i=t.size;return(typeof t.size=="number"||parseFloat(t.size)===t.size*1)&&(i=`${t.size}px`),i}),s=me(()=>{const{ios:i,md:o,f7:l,material:c}=t;let d=c||l;return o&&n.value&&n.value.md&&(o.indexOf("material:")>=0||o.indexOf("f7:")>=0)?d=o.split(":")[1]:i&&n.value&&n.value.ios&&(i.indexOf("material:")>=0||i.indexOf("f7:")>=0)&&(d=i.split(":")[1]),d});return{elRef:e,sizeComputed:r,classesComputed:a,iconText:s}}};function U1(t,e){const n=Ae("f7-badge"),a=Ae("f7-icon");return ge(),at(a,Ei(Yl(t.icon.props)),{default:De(()=>[t.icon.badge?(ge(),at(n,Ei(Fa({key:0},t.icon.badge.props)),{default:De(()=>[St(Pt(t.icon.badge.content),1)]),_:1},16)):We("",!0)]),_:1},16)}const Mc={name:"f7-use-icon",render:U1,components:{f7Icon:Pc,f7Badge:fi},props:{icon:Object}},G1={key:1},K1={key:1};function Q1(t,e){const n=Ae("f7-preloader"),a=Ae("f7-use-icon");return ge(),at($l(t.tag),Fa({ref:"elRef",class:t.classesComputed},t.attrs),{default:De(()=>[t.preloader?(ge(),ke(ut,{key:0},[Se(n,{size:t.preloaderSize,color:t.preloaderColor},null,8,["size","color"]),Ne("span",null,[t.icon?(ge(),at(a,{key:0,icon:t.icon},null,8,["icon"])):We("",!0),t.text?(ge(),ke("span",G1,Pt(t.text),1)):We("",!0),Te(t.$slots,"default")])],64)):(ge(),ke(ut,{key:1},[t.icon?(ge(),at(a,{key:0,icon:t.icon},null,8,["icon"])):We("",!0),t.text?(ge(),ke("span",K1,Pt(t.text),1)):We("",!0),Te(t.$slots,"default")],64))]),_:3},16,["class"])}const J1={name:"f7-button",render:Q1,components:{f7Preloader:Tc,f7UseIcon:Mc},props:{text:String,tabLink:[Boolean,String],tabLinkActive:Boolean,type:String,href:{type:[String,Boolean],default:"#"},target:String,round:Boolean,roundMd:Boolean,roundIos:Boolean,fill:Boolean,fillMd:Boolean,fillIos:Boolean,tonal:Boolean,tonalMd:Boolean,tonalIos:Boolean,large:Boolean,largeMd:Boolean,largeIos:Boolean,small:Boolean,smallMd:Boolean,smallIos:Boolean,raised:Boolean,raisedMd:Boolean,raisedIos:Boolean,outline:Boolean,outlineMd:Boolean,outlineIos:Boolean,active:Boolean,disabled:Boolean,tooltip:String,tooltipTrigger:String,preloader:Boolean,preloaderSize:[Number,String],preloaderColor:String,loading:Boolean,...$c,..._e,...di,...oi},setup(t){const e=He(null);Va(e,t),hi(e,t);const n=me(()=>Sc(t)),a=me(()=>t.type==="submit"||t.type==="reset"||t.type==="button"?"button":"a"),r=me(()=>{const{href:i,tabLink:o,target:l,type:c}=t;let d=i;return i===!0&&(d="#"),(i===!1||a.value==="button")&&(d=void 0),dn({href:d,target:l,type:c,"data-tab":ze(o)&&o||void 0},li(t),ui(t))}),s=me(()=>{const{tabLink:i,tabLinkActive:o,round:l,roundMd:c,roundIos:d,fill:u,fillMd:p,fillIos:f,tonal:h,tonalMd:m,tonalIos:b,large:w,largeMd:g,largeIos:v,small:y,smallMd:E,smallIos:k,raised:$,raisedMd:M,raisedIos:x,outline:F,outlineMd:S,outlineIos:I,active:B,disabled:P,preloader:L,loading:V}=t;return Re("button",{"tab-link":i||i==="","tab-link-active":o,"button-round":l,"button-round-ios":d,"button-round-md":c,"button-fill":u,"button-fill-ios":f,"button-fill-md":p,"button-tonal":h,"button-tonal-ios":b,"button-tonal-md":m,"button-large":w,"button-large-ios":v,"button-large-md":g,"button-small":y,"button-small-ios":k,"button-small-md":E,"button-raised":$,"button-raised-ios":x,"button-raised-md":M,"button-active":B,"button-outline":F,"button-outline-ios":I,"button-outline-md":S,"button-preloader":L,"button-loading":V,disabled:P},Ve(t),ci(t),pi(t))});return{tag:a,elRef:e,attrs:r,classesComputed:s,icon:n}}},Bc=(t,e,n)=>{let a;tt(()=>{ht(()=>{if(t.smartSelect){const r=dn({el:n()},t.smartSelectParams||{});a=Y.smartSelect.create(r),e(a)}})}),ct(()=>{a&&a.destroy&&a.destroy(),a=null,e(a)})};function Z1(t,e){const n=Ae("f7-use-icon"),a=Ae("f7-badge");return ge(),ke("a",Fa({ref:"elRef",class:t.classes},t.attrs),[t.icon?(ge(),at(n,{key:0,icon:t.icon},null,8,["icon"])):We("",!0),t.text?(ge(),ke("span",{key:1,class:Le(t.isTabbarIcons?"tabbar-label":"")},[St(Pt(t.text)+" ",1),t.badge?(ge(),at(a,{key:0,color:t.badgeColor},{default:De(()=>[St(Pt(t.badge),1)]),_:1},8,["color"])):We("",!0)],2)):We("",!0),Te(t.$slots,"default")],16)}const Ic={name:"f7-link",render:Z1,components:{f7Badge:fi,f7UseIcon:Mc},props:{noLinkClass:Boolean,text:String,tabLink:[Boolean,String],tabLinkActive:Boolean,tabbarLabel:Boolean,iconOnly:Boolean,badge:[String,Number],badgeColor:[String],href:{type:[String,Boolean],default:"#"},target:String,tooltip:String,tooltipTrigger:String,smartSelect:Boolean,smartSelectParams:Object,...$c,..._e,...di,...oi},setup(t,e){let{slots:n}=e;const a=He(null);let r=null;Va(a,t),hi(a,t),Bc(t,d=>{r=d},()=>a.value);const s=ea("TabbarContext",{value:{}}),i=me(()=>t.tabbarLabel||s.value.tabbarHasIcons),o=me(()=>{const{href:d,tabLink:u,target:p}=t;let f=d;return d===!0&&(f="#"),d===!1&&(f=void 0),{href:f,target:p,"data-tab":ze(u)&&u||void 0,...li(t),...ui(t)}}),l=me(()=>{const{iconOnly:d,text:u,noLinkClass:p,tabLink:f,tabLinkActive:h,smartSelect:m}=t;let b;const w=n&&n.default;return d||!u&&!w?b=!0:b=!1,Re({link:!(p||i.value),"icon-only":b,"tab-link":f||f==="","tab-link-active":h,"smart-select":m},Ve(t),ci(t),pi(t))}),c=me(()=>Sc(t));return{elRef:a,icon:c,isTabbarIcons:i,attrs:o,classes:l,f7SmartSelect:r}}},eE=function(t){let{props:e,slots:n,inputElRef:a,onChange:r,onClick:s,isMediaComputed:i,isSortableComputed:o,isSortableOppositeComputed:l,itemContentClasses:c}=t===void 0?{}:t;const{radio:d,checkbox:u,value:p,name:f,readonly:h,disabled:m,checked:b,required:w,media:g,header:v,footer:y,title:E,subtitle:k,text:$,after:M,badge:x,badgeColor:F,swipeout:S,sortable:I,accordionItem:B}=e;let P,L,V,H,D,O,_,N,G,ee,X,se,ne;if((d||u)&&(ee=xe("input",{ref:a,value:p,name:f,checked:b,readonly:h,disabled:m,required:w,type:d?"radio":"checkbox",onChange:r}),X=xe("i",{class:`icon icon-${d?"radio":"checkbox"}`})),g||n.media){let le;g&&(le=xe("img",{src:g})),G=xe("div",{class:"item-media"},[le,n.media&&n.media()])}return(v||n.header)&&(se=xe("div",{class:"item-header"},[v,n.header&&n.header()])),(y||n.footer)&&(ne=xe("div",{class:"item-footer"},[y,n.footer&&n.footer()])),(E||n.title||!i.value&&se||!i.value&&ne)&&(P=xe("div",{class:"item-title"},[!i.value&&se,E,n.title&&n.title(),!i.value&&ne])),(k||n.subtitle)&&(_=xe("div",{class:"item-subtitle"},[k,n.subtitle&&n.subtitle()])),($||n.text)&&(N=xe("div",{class:"item-text"},[$,n.text&&n.text()])),(M||x||n.after)&&(M&&(V=xe("span",[M])),x&&(H=xe(fi,{color:F},()=>x)),L=xe("div",{class:"item-after"},[n["after-start"]&&n["after-start"](),V,H,n.after&&n.after(),n["after-end"]&&n["after-end"]()])),i.value?(O=xe("div",{class:"item-title-row"},[n["before-title"]&&n["before-title"](),P,n["after-title"]&&n["after-title"](),L]),D=xe("div",{class:"item-inner"},[n["inner-start"]&&n["inner-start"],se,O,_,N,S||B?null:n.default&&n.default(),n.inner&&n.inner(),ne,n["inner-end"]&&n["inner-end"]])):D=xe("div",{class:"item-inner"},[n["inner-start"]&&n["inner-start"](),n["before-title"]&&n["before-title"](),P,n["after-title"]&&n["after-title"](),L,S||B?null:n.default&&n.default(),n.inner&&n.inner(),n["inner-end"]&&n["inner-end"]()]),xe(u||d?"label":"div",{class:c.value,onClick:s},[o.value&&I!==!1&&l.value&&xe("div",{class:"sortable-handler"}),n["content-start"]&&n["content-start"](),ee,X,G,D,n.content&&n.content(),n["content-end"]&&n["content-end"]()])},tE={name:"f7-list-item",props:{title:[String,Number],text:[String,Number],media:String,subtitle:[String,Number],header:[String,Number],footer:[String,Number],tooltip:String,tooltipTrigger:String,link:[Boolean,String],target:String,tabLink:[Boolean,String],tabLinkActive:Boolean,selected:Boolean,after:[String,Number],badge:[String,Number],badgeColor:String,mediaItem:Boolean,mediaList:Boolean,groupTitle:Boolean,swipeout:Boolean,swipeoutOpened:Boolean,sortable:{type:Boolean,default:void 0},sortableOpposite:{type:Boolean,default:void 0},accordionItem:Boolean,accordionItemOpened:Boolean,smartSelect:Boolean,smartSelectParams:Object,noChevron:Boolean,chevronCenter:Boolean,checkbox:Boolean,radio:Boolean,radioIcon:String,checkboxIcon:String,checked:Boolean,indeterminate:Boolean,name:String,value:{type:[String,Number,Array],default:void 0},readonly:Boolean,required:Boolean,disabled:Boolean,virtualListIndex:Number,..._e,...di,...oi},emits:["click","swipeout","swipeout:overswipeenter","swipeout:overswipeexit","swipeout:deleted","swipeout:delete","swipeout:close","swipeout:closed","swipeout:open","swipeout:opened","accordion:beforeclose","accordion:close","accordion:closed","accordion:beforeopen","accordion:open","accordion:opened","change","update:checked"],setup(t,e){let{slots:n,emit:a}=e;const r=ea("ListContext",{value:{listIsMedia:!1,listIsSortable:!1,listIsSortableOpposite:!1,listIsSimple:!1}}),s=me(()=>r.value.listIsMedia||!1),i=me(()=>r.value.listIsSortable||!1),o=me(()=>r.value.listIsSortableOpposite||!1),l=me(()=>r.value.listIsSimple||!1),c=He(null),d=He(null),u=He(null),p=_=>{_.target.tagName.toLowerCase()!=="input"&&a("click",_)},f=_=>{c.value===_&&a("swipeout:overswipeenter")},h=_=>{c.value===_&&a("swipeout:overswipeexit")},m=_=>{c.value===_&&a("swipeout:deleted")},b=_=>{c.value===_&&a("swipeout:delete")},w=_=>{c.value===_&&a("swipeout:close")},g=_=>{c.value===_&&a("swipeout:closed")},v=_=>{c.value===_&&a("swipeout:open")},y=_=>{c.value===_&&a("swipeout:opened")},E=(_,N)=>{c.value===_&&a("swipeout",N)},k=(_,N)=>{c.value===_&&a("accordion:beforeclose",N)},$=_=>{c.value===_&&a("accordion:close")},M=_=>{c.value===_&&a("accordion:closed")},x=(_,N)=>{c.value===_&&a("accordion:beforeopen",N)},F=_=>{c.value===_&&a("accordion:open")},S=_=>{c.value===_&&a("accordion:opened")},I=_=>{a("change",_),a("update:checked",_.target.checked)};Va(c,t),hi(d,t),Bc(t,()=>{},()=>c.value.querySelector("a.smart-select")),Ht(()=>t.swipeoutOpened,_=>{!t.swipeout||!c.value||!Y||(_?Y.swipeout.open(c.value):Y.swipeout.close(c.value))}),tt(()=>{ht(()=>{t.swipeout&&(Y.on("swipeoutOpen",v),Y.on("swipeoutOpened",y),Y.on("swipeoutClose",w),Y.on("swipeoutClosed",g),Y.on("swipeoutDelete",b),Y.on("swipeoutDeleted",m),Y.on("swipeoutOverswipeEnter",f),Y.on("swipeoutOverswipeExit",h),Y.on("swipeout",E)),t.accordionItem&&(Y.on("accordionBeforeOpen",x),Y.on("accordionOpen",F),Y.on("accordionOpened",S),Y.on("accordionBeforeClose",k),Y.on("accordionClose",$),Y.on("accordionClosed",M)),t.swipeout&&t.swipeoutOpened&&Y.swipeout.open(c.value)}),t.checkbox&&u.value&&(u.value.indeterminate=!!t.indeterminate)}),ct(()=>{Y&&(Y.off("swipeoutOpen",v),Y.off("swipeoutOpened",y),Y.off("swipeoutClose",w),Y.off("swipeoutClosed",g),Y.off("swipeoutDelete",b),Y.off("swipeoutDeleted",m),Y.off("swipeoutOverswipeEnter",f),Y.off("swipeoutOverswipeExit",h),Y.off("swipeout",E),Y.off("accordionBeforeOpen",x),Y.off("accordionOpen",F),Y.off("accordionOpened",S),Y.off("accordionBeforeClose",k),Y.off("accordionClose",$),Y.off("accordionClosed",M))}),Ht(()=>t.indeterminate,_=>{u.value&&(u.value.indeterminate=!!_)});const B=me(()=>t.mediaItem||t.mediaList||s.value),P=me(()=>t.sortable===!0||t.sortable===!1?t.sortable:i.value),L=me(()=>P.value&&(t.sortableOpposite||o.value)),V=me(()=>({href:t.link===!0?"":t.link||t.href,target:t.target,"data-tab":ze(t.tabLink)&&t.tabLink||void 0,...li(t),...ui(t)})),H=me(()=>Re({"item-link":!0,"smart-select":t.smartSelect,"tab-link":t.tabLink||t.tabLink==="","tab-link-active":t.tabLinkActive,"item-selected":t.selected},ci(t),pi(t))),D=me(()=>Re("item-content",{"item-checkbox":t.checkbox,"item-radio":t.radio,"item-checkbox-icon-start":t.checkbox&&t.checkboxIcon==="start","item-checkbox-icon-end":t.checkbox&&t.checkboxIcon==="end","item-radio-icon-start":t.radio&&t.radioIcon==="start","item-radio-icon-end":t.radio&&t.radioIcon==="end"},Ve(t))),O=me(()=>Re({"list-group-title":t.groupTitle,"media-item":B.value,swipeout:t.swipeout,"accordion-item":t.accordionItem,"accordion-item-opened":t.accordionItemOpened,disabled:t.disabled&&!(t.radio||t.checkbox),"no-chevron":t.noChevron,"chevron-center":t.chevronCenter,"disallow-sorting":t.sortable===!1},Ve(t)));return()=>{let _,N;if(l.value||(N=eE({props:t,slots:n,inputElRef:u,onChange:I,onClick:t.link||t.href||t.accordionItem||t.smartSelect?void 0:p,isMediaComputed:B,isSortableComputed:P,isSortableOppositeComputed:L,itemContentClasses:D}),(t.link||t.href||t.accordionItem||t.smartSelect)&&(_=xe("a",{ref:d,class:H.value,...V.value,onClick:p},[N]))),t.groupTitle)return xe("li",{ref:c,class:O.value,"data-virtual-list-index":t.virtualListIndex,onClick:p},[t.title,n.default&&n.default()]);if(l.value)return xe("li",{ref:c,class:O.value,onClick:p,"data-virtual-list-index":t.virtualListIndex},[t.title,n.default&&n.default()]);const G=t.link||t.href||t.smartSelect||t.accordionItem?_:N;return xe("li",{ref:c,class:O.value,"data-virtual-list-index":t.virtualListIndex},[n["root-start"]&&n["root-start"](),t.swipeout?xe("div",{class:"swipeout-content"},[G]):G,P.value&&t.sortable!==!1&&!L.value&&xe("div",{class:"sortable-handler"}),(t.swipeout||t.accordionItem)&&n.default(),n.root&&n.root(),n["root-end"]&&n["root-end"]()])}}},nE={name:"f7-list",props:{inset:Boolean,insetIos:Boolean,insetMd:Boolean,xsmallInset:Boolean,xsmallInsetIos:Boolean,xsmallInsetMd:Boolean,smallInset:Boolean,smallInsetIos:Boolean,smallInsetMd:Boolean,mediumInset:Boolean,mediumInsetIos:Boolean,mediumInsetMd:Boolean,largeInset:Boolean,largeInsetIos:Boolean,largeInsetMd:Boolean,xlargeInset:Boolean,xlargeInsetIos:Boolean,xlargeInsetMd:Boolean,strong:Boolean,strongIos:Boolean,strongMd:Boolean,outline:Boolean,outlineIos:Boolean,outlineMd:Boolean,dividers:Boolean,dividersIos:Boolean,dividersMd:Boolean,mediaList:Boolean,sortable:Boolean,sortableTapHold:Boolean,sortableEnabled:Boolean,sortableMoveElements:{type:Boolean,default:void 0},sortableOpposite:Boolean,accordionList:Boolean,accordionOpposite:Boolean,contactsList:Boolean,simpleList:Boolean,linksList:Boolean,menuList:Boolean,noChevron:Boolean,chevronCenter:Boolean,tab:Boolean,tabActive:Boolean,form:Boolean,formStoreData:Boolean,virtualList:Boolean,virtualListParams:Object,..._e},emits:["submit","sortable:enable","sortable:disable","sortable:sort","sortable:move","virtual:itembeforeinsert","virtual:beforeclear","virtual:itemsbeforeinsert","virtual:itemsafterinsert","tab:hide","tab:show"],setup(t,e){let{emit:n,slots:a}=e,r=null;const s=He(null),i=h=>{n("submit",h)},o=h=>{s.value===h&&n("sortable:enable")},l=h=>{s.value===h&&n("sortable:disable")},c=(h,m,b)=>{s.value===b&&n("sortable:sort",m)},d=(h,m)=>{s.value===m&&n("sortable:move",h,m)};Dr(s,n),tt(()=>{ht(()=>{if(Y.on("sortableEnable",o),Y.on("sortableDisable",l),Y.on("sortableSort",c),Y.on("sortableMove",d),!t.virtualList)return;const h=t.virtualListParams||{};!h.renderItem&&!h.renderExternal||(h.items&&(h.items=Me(h.items)),r=Y.virtualList.create(dn({el:s.value,on:{itemBeforeInsert(m,b){n("virtual:itembeforeinsert",this,m,b)},beforeClear(m){n("virtual:beforeclear",this,m)},itemsBeforeInsert(m){n("virtual:itemsbeforeinsert",this,m)},itemsAfterInsert(m){n("virtual:itemsafterinsert",this,m)}}},h)))})}),ct(()=>{Y&&(Y.off("sortableEnable",o),Y.off("sortableDisable",l),Y.off("sortableSort",c),Y.off("sortableMove",d),t.virtualList&&r&&(r.destroy&&r.destroy(),r=null))});const u=me(()=>Re("list",{inset:t.inset,"inset-ios":t.insetIos,"inset-md":t.insetMd,"xsmall-inset":t.xsmallInset,"xsmall-inset-ios":t.xsmallInsetIos,"xsmall-inset-md":t.xsmallInsetMd,"small-inset":t.smallInset,"small-inset-ios":t.smallInsetIos,"small-inset-md":t.smallInsetMd,"medium-inset":t.mediumInset,"medium-inset-ios":t.mediumInsetIos,"medium-inset-md":t.mediumInsetMd,"large-inset":t.largeInset,"large-inset-ios":t.largeInsetIos,"large-inset-md":t.largeInsetMd,"xlarge-inset":t.xlargeInset,"xlarge-inset-ios":t.xlargeInsetIos,"xlarge-inset-md":t.xlargeInsetMd,"list-strong":t.strong,"list-strong-ios":t.strongIos,"list-strong-md":t.strongMd,"list-outline":t.outline,"list-outline-ios":t.outlineIos,"list-outline-md":t.outlineMd,"list-dividers":t.dividers,"list-dividers-ios":t.dividersIos,"list-dividers-md":t.dividersMd,"media-list":t.mediaList,"simple-list":t.simpleList,"links-list":t.linksList,"menu-list":t.menuList,sortable:t.sortable,"sortable-tap-hold":t.sortableTapHold,"sortable-enabled":t.sortableEnabled,"sortable-opposite":t.sortableOpposite,"accordion-list":t.accordionList,"accordion-opposite":t.accordionOpposite,"contacts-list":t.contactsList,"virtual-list":t.virtualList,tab:t.tab,"tab-active":t.tabActive,"form-store-data":t.formStoreData,"no-chevron":t.noChevron,"chevron-center":t.chevronCenter},Ve(t))),p=me(()=>t.form?"form":"div"),f=me(()=>({listIsMedia:t.mediaList,listIsSimple:t.simpleList,listIsSortable:t.sortable,listIsSortableOpposite:t.sortableOpposite}));return Ks("ListContext",f),()=>{const{list:h,default:m}=a,b=[],w=[],g=h&&typeof h=="function"?[h()]:[];let v=!1;return m&&m().forEach(y=>{if(typeof y>"u")return;const E=y.type&&y.type.name?y.type.name:y.type;E&&typeof E=="symbol"?(v=!0,g.push(y)):!E||E&&!(E==="li"||E.indexOf("f7-list-item")>=0||E.indexOf("f7-list-button")>=0||E.indexOf("f7-list-input")>=0)?v?w.push(y):b.push(y):E&&(v=!0,g.push(y))}),xe(p.value,{ref:s,class:u.value,"data-sortable-move-elements":typeof t.sortableMoveElements<"u"?t.sortableMoveElements.toString():void 0,onSubmit:i},[a["before-list"]&&a["before-list"](),b,g.length>0&&xe("ul",g),a["after-list"]&&a["after-list"](),w])}}};function aE(t,e){const n=Ae("f7-link");return ge(),ke("div",{class:Le(t.classes)},[t.backLink?(ge(),at(n,{key:0,href:t.backLinkUrl||"#",back:"",icon:"icon-back",force:t.backLinkForce||void 0,class:Le(t.text?void 0:"icon-only"),text:t.text,onClick:t.onBackClick},null,8,["href","force","class","text","onClick"])):We("",!0),Te(t.$slots,"default")],2)}const Oc={name:"f7-nav-left",render:aE,components:{f7Link:Ic},props:{backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:Boolean,..._e},emits:["back:click","click:back"],setup(t,e){let{emit:n}=e;const a=o=>{n("back:click",o),n("click:back",o)},r=_a(),s=me(()=>{let o=t.backLinkShowText;if(typeof o>"u"&&(o=!r.value.md),t.backLink)return t.backLink!==!0&&o?t.backLink:void 0});return{classes:me(()=>Re("left",{sliding:t.sliding},Ve(t))),onBackClick:a,text:s}}};function rE(t,e){return ge(),ke("div",{class:Le(t.classes)},[Te(t.$slots,"default")],2)}const Ac={name:"f7-nav-right",render:rE,props:{sliding:Boolean,..._e},setup(t){return{classes:me(()=>Re("right",{sliding:t.sliding},Ve(t)))}}},sE={class:"title-large-text"};function iE(t,e){return ge(),ke("div",{class:Le(t.classes)},[Ne("div",sE,[Te(t.$slots,"default")])],2)}const oE={name:"f7-nav-title-large",render:iE,props:{..._e},setup(t){return{classes:me(()=>Re("title-large",Ve(t)))}}},lE={key:0,class:"subtitle"};function cE(t,e){return ge(),ke("div",{class:Le(t.classes)},[Te(t.$slots,"default"),St(" "+Pt(t.title)+" ",1),t.subtitle?(ge(),ke("span",lE,Pt(t.subtitle),1)):We("",!0)],2)}const Dc={name:"f7-nav-title",render:cE,props:{title:String,subtitle:String,sliding:Boolean,..._e},setup(t){return{classes:me(()=>Re("title",{sliding:t.sliding},Ve(t)))}}},dE=Ne("div",{class:"navbar-bg"},null,-1),uE={key:3,className:"title-large"},pE={className:"title-large-text"};function fE(t,e){const n=Ae("f7-nav-left"),a=Ae("f7-nav-title"),r=Ae("f7-nav-right");return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[dE,Te(t.$slots,"before-inner"),Ne("div",{class:Le(t.innerClasses)},[t.hasLeft?(ge(),at(n,{key:0,"back-link":t.backLink,"back-link-url":t.backLinkUrl,"back-link-force":t.backLinkForce,"back-link-show-text":t.backLinkShowText,"onBack:click":t.onBackClick},{default:De(()=>[Te(t.$slots,"nav-left"),Te(t.$slots,"left")]),_:3},8,["back-link","back-link-url","back-link-force","back-link-show-text","onBack:click"])):We("",!0),t.hasTitle?(ge(),at(a,{key:1,title:t.title,subtitle:t.subtitle},{default:De(()=>[Te(t.$slots,"title")]),_:3},8,["title","subtitle"])):We("",!0),t.hasRight?(ge(),at(r,{key:2},{default:De(()=>[Te(t.$slots,"nav-right"),Te(t.$slots,"right")]),_:3})):We("",!0),t.hasLargeTitle?(ge(),ke("div",uE,[Ne("div",pE,[St(Pt(t.largeTitle)+" ",1),Te(t.$slots,"title-large")])])):We("",!0),Te(t.$slots,"default")],2),Te(t.$slots,"after-inner")],2)}const hE={name:"f7-navbar",render:fE,components:{f7NavLeft:Oc,f7NavTitle:Dc,f7NavRight:Ac},props:{backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:{type:Boolean,default:!0},title:String,subtitle:String,hidden:Boolean,outline:{type:Boolean,default:!0},innerClass:String,innerClassName:String,large:Boolean,largeTransparent:Boolean,transparent:Boolean,titleLarge:String,..._e},emits:["navbar:hide","navbar:show","navbar:expand","navbar:collapse","navbar:transparentshow","navbar:transparenthide","click:back","back:click"],setup(t,e){let{emit:n,slots:a}=e,r="",s=!1,i=null,o=!1,l=!1,c=!1;const d=He(null),u=_a(),p=G=>{d.value===G&&n("navbar:hide")},f=G=>{d.value===G&&n("navbar:show")},h=G=>{d.value===G&&(s=!1,n("navbar:expand"))},m=G=>{d.value===G&&(s=!0,n("navbar:collapse"))},b=G=>{d.value===G&&(c=!0,n("navbar:transparentshow"))},w=G=>{d.value===G&&(c=!1,n("navbar:transparenthide"))},g=(G,ee)=>{d.value===G&&(r=ee?`navbar-${ee}`:"")},v=(G,ee)=>{d.value===G&&(i=ee.role,o=ee.detailRoot)},y=G=>{d.value===G&&(l=!0)},E=G=>{d.value===G&&(l=!1)},k=G=>{Y&&Y.navbar.hide(d.value,G)},$=G=>{Y&&Y.navbar.show(d.value,G)},M=()=>{Y&&Y.navbar.size(d.value)},x=G=>{n("back:click",G),n("click:back",G)};tt(()=>{d.value&&ht(()=>{Y.navbar.size(d.value),Y.on("navbarShow",f),Y.on("navbarHide",p),Y.on("navbarCollapse",m),Y.on("navbarExpand",h),Y.on("navbarPosition",g),Y.on("navbarRole",v),Y.on("navbarMasterStack",y),Y.on("navbarMasterUnstack",E),Y.on("navbarTransparentShow",b),Y.on("navbarTransparentHide",w)})}),ct(()=>{Y&&(Y.off("navbarShow",f),Y.off("navbarHide",p),Y.off("navbarCollapse",m),Y.off("navbarExpand",h),Y.off("navbarPosition",g),Y.off("navbarRole",v),Y.off("navbarMasterStack",y),Y.off("navbarMasterUnstack",E),Y.off("navbarTransparentShow",b),Y.off("navbarTransparentHide",w))});const F=me(()=>u.value&&u.value.ios&&Y&&!Y.params.navbar.iosCenterTitle),S=me(()=>u.value&&u.value.md&&Y&&Y.params.navbar.mdCenterTitle),I=me(()=>t.large||t.largeTransparent),B=me(()=>t.transparent||I.value&&t.largeTransparent),P=me(()=>B.value&&c),L=me(()=>Re("navbar",r,{"navbar-hidden":t.hidden,"navbar-large":I.value,"navbar-large-collapsed":I.value&&s,"navbar-transparent":B.value,"navbar-transparent-visible":P.value,"navbar-master":i==="master","navbar-master-detail":i==="detail","navbar-master-detail-root":o===!0,"navbar-master-stacked":l===!0,"no-outline":!t.outline},Ve(t))),V=me(()=>{let G=t.titleLarge;return!G&&t.large&&t.title&&(G=t.title),G}),H=me(()=>t.backLink||a["nav-left"]||a.left),D=me(()=>t.title||t.subtitle||a.title),O=me(()=>a["nav-right"]||a.right),_=me(()=>V.value||a["title-large"]),N=me(()=>Re("navbar-inner",t.innerClass,t.innerClassName,{sliding:t.sliding,"navbar-inner-left-title":F.value,"navbar-inner-centered-title":S.value}));return{elRef:d,classes:L,innerClasses:N,hide:k,show:$,size:M,largeTitle:V,hasLeft:H,hasTitle:D,hasRight:O,hasLargeTitle:_,onBackClick:x}}},mE=["data-ptr-distance","data-ptr-mousewheel","data-infinite-distance"],gE={key:0,class:"ptr-preloader"},bE=Ne("div",{class:"ptr-arrow"},null,-1),vE={key:3,class:"ptr-preloader"},wE=Ne("div",{class:"ptr-arrow"},null,-1);function yE(t,e){const n=Ae("f7-preloader");return ge(),ke("div",{ref:"elRef",class:Le(t.classes),"data-ptr-distance":t.ptrDistance||void 0,"data-ptr-mousewheel":t.ptrMousewheel||void 0,"data-infinite-distance":t.infiniteDistance||void 0},[t.ptr&&t.ptrPreloader&&!t.ptrBottom?(ge(),ke("div",gE,[Se(n),bE])):We("",!0),t.infinite&&t.infinitePreloader&&t.infiniteTop?(ge(),at(n,{key:1,class:"infinite-scroll-preloader"})):We("",!0),Te(t.$slots,"default"),t.infinite&&t.infinitePreloader&&!t.infiniteTop?(ge(),at(n,{key:2,class:"infinite-scroll-preloader"})):We("",!0),t.ptr&&t.ptrPreloader&&t.ptrBottom?(ge(),ke("div",vE,[Se(n),wE])):We("",!0)],10,mE)}const Lc={name:"f7-page-content",render:yE,components:{f7Preloader:Tc},props:{tab:Boolean,tabActive:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean,..._e},emits:["ptr:pullstart","ptr:pullmove","ptr:pullend","ptr:refresh","ptr:done","infinite","ptrPullStart","ptrPullMove","ptrPullEnd","ptrRefresh","ptrDone","tab:hide","tab:show"],setup(t,e){let{emit:n}=e;const a=He(null),r=u=>{a.value===u&&(n("ptr:pullstart"),n("ptrPullStart"))},s=u=>{a.value===u&&(n("ptr:pullmove"),n("ptrPullMove"))},i=u=>{a.value===u&&(n("ptr:pullend"),n("ptrPullEnd"))},o=(u,p)=>{a.value===u&&(n("ptr:refresh",p),n("ptrRefresh",p))},l=u=>{a.value===u&&(n("ptr:done"),n("ptrDone"))},c=u=>{a.value===u&&n("infinite")};Dr(a,n),tt(()=>{ht(()=>{t.ptr&&(Y.on("ptrPullStart",r),Y.on("ptrPullMove",s),Y.on("ptrPullEnd",i),Y.on("ptrRefresh",o),Y.on("ptrDone",l)),t.infinite&&Y.on("infinite",c)})}),ct(()=>{Y&&(Y.off("ptrPullStart",r),Y.off("ptrPullMove",s),Y.off("ptrPullEnd",i),Y.off("ptrRefresh",o),Y.off("ptrDone",l),Y.off("infinite",c))});const d=me(()=>Re("page-content",{tab:t.tab,"tab-active":t.tabActive,"ptr-content":t.ptr,"ptr-bottom":t.ptrBottom,"infinite-scroll-content":t.infinite,"infinite-scroll-top":t.infiniteTop,"hide-bars-on-scroll":t.hideBarsOnScroll,"hide-navbar-on-scroll":t.hideNavbarOnScroll,"hide-toolbar-on-scroll":t.hideToolbarOnScroll,"messages-content":t.messagesContent,"login-screen-content":t.loginScreen},Ve(t)));return{elRef:a,classes:d}}},EE={name:"f7-page",props:{name:String,withSubnavbar:{type:Boolean,default:void 0},subnavbar:{type:Boolean,default:void 0},withNavbarLarge:{type:Boolean,default:void 0},navbarLarge:{type:Boolean,default:void 0},noNavbar:Boolean,noToolbar:Boolean,tabs:Boolean,pageContent:{type:Boolean,default:!0},noSwipeback:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean,..._e},emits:["page:mounted","page:init","page:reinit","page:beforein","page:beforeout","page:afterout","page:afterin","page:beforeremove","page:beforeunmount","page:tabshow","page:tabhide","ptr:pullstart","ptr:pullmove","ptr:pullend","ptr:refresh","ptr:done","infinite"],setup(t,e){let{emit:n,slots:a}=e,r=!1,s=!1,i=!1,o=!1,l="",c=null,d=!1,u=!1;const p=He(null),f=X=>{p.value===X.el&&n("page:mounted",X)},h=X=>{p.value===X.el&&(typeof t.withSubnavbar>"u"&&typeof t.subnavbar>"u"&&(X.$navbarEl&&X.$navbarEl.length&&X.$navbarEl.find(".subnavbar").length||X.$el.children(".navbar").find(".subnavbar").length)&&(r=!0),typeof t.withNavbarLarge>"u"&&typeof t.navbarLarge>"u"&&X.$navbarEl&&X.$navbarEl.hasClass("navbar-large")&&(s=!0),n("page:init",X))},m=X=>{p.value===X.el&&n("page:reinit",X)},b=X=>{p.value===X.el&&(X.swipeBack||(X.from==="next"&&(l="page-next"),X.from==="previous"&&(l="page-previous")),n("page:beforein",X))},w=X=>{p.value===X.el&&n("page:beforeout",X)},g=X=>{p.value===X.el&&(X.to==="next"&&(l="page-next"),X.to==="previous"&&(l="page-previous"),n("page:afterout",X))},v=X=>{p.value===X.el&&(l="page-current",n("page:afterin",X))},y=X=>{p.value===X.el&&n("page:beforeremove",X)},E=X=>{p.value===X.el&&n("page:beforeunmount",X)},k=(X,se)=>{p.value===X&&(l=`page-${se}`)},$=(X,se)=>{p.value===X&&(c=se.role,d=se.detailRoot)},M=X=>{p.value===X&&(u=!0)},x=X=>{p.value===X&&(u=!1)},F=X=>{p.value===X&&(i=!0)},S=X=>{p.value===X&&(i=!1)},I=(X,se)=>{p.value===se&&(o=!0)},B=(X,se)=>{p.value===se&&(o=!1)},P=X=>{p.value===X&&n("page:tabshow")},L=X=>{p.value===X&&n("page:tabhide")},V=()=>{n("ptr:pullstart")},H=()=>{n("ptr:pullmove")},D=()=>{n("ptr:pullend")},O=X=>{n("ptr:refresh",X)},_=()=>{n("ptr:done")},N=()=>{n("infinite")};tt(()=>{ht(()=>{Y.on("pageMounted",f),Y.on("pageInit",h),Y.on("pageReinit",m),Y.on("pageBeforeIn",b),Y.on("pageBeforeOut",w),Y.on("pageAfterOut",g),Y.on("pageAfterIn",v),Y.on("pageBeforeRemove",y),Y.on("pageBeforeUnmount",E),Y.on("pagePosition",k),Y.on("pageRole",$),Y.on("pageMasterStack",M),Y.on("pageMasterUnstack",x),Y.on("pageNavbarLargeCollapsed",F),Y.on("pageNavbarLargeExpanded",S),Y.on("cardOpened",I),Y.on("cardClose",B),Y.on("pageTabShow",P),Y.on("pageTabHide",L)})}),ct(()=>{Y&&(Y.off("pageMounted",f),Y.off("pageInit",h),Y.off("pageReinit",m),Y.off("pageBeforeIn",b),Y.off("pageBeforeOut",w),Y.off("pageAfterOut",g),Y.off("pageAfterIn",v),Y.off("pageBeforeRemove",y),Y.off("pageBeforeUnmount",E),Y.off("pagePosition",k),Y.off("pageRole",$),Y.off("pageMasterStack",M),Y.off("pageMasterUnstack",x),Y.off("pageNavbarLargeCollapsed",F),Y.off("pageNavbarLargeExpanded",S),Y.off("cardOpened",I),Y.off("cardClose",B),Y.off("pageTabShow",P),Y.off("pageTabHide",L))});const G=me(()=>Re("page",l,{tabs:t.tabs,"page-with-subnavbar":t.subnavbar||t.withSubnavbar,"page-with-navbar-large":t.navbarLarge||t.withNavbarLarge,"no-navbar":t.noNavbar,"no-toolbar":t.noToolbar,"no-swipeback":t.noSwipeback,"page-master":c==="master","page-master-detail":c==="detail","page-master-detail-root":d===!0,"page-master-stacked":u===!0,"page-with-navbar-large-collapsed":i===!0,"page-with-card-opened":o===!0,"login-screen-page":t.loginScreen},Ve(t))),ee="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index panel".split(" ").map(X=>`f7-${X}`);return()=>{const X=[],se=[],{static:ne,fixed:ie,default:le}=a;let be=!1,oe=!1,ce=t.messagesContent;const pe=le&&le();pe&&pe.forEach(A=>{if(typeof A>"u")return;const z=A.type&&A.type.name?A.type.name:A.type;let q=!1;if(!z){(t.pageContent||t.pageContent==="")&&se.push(A);return}z==="f7-subnavbar"&&(be=!0),z==="f7-navbar"&&A.props&&(A.props.large||A.props.large==="")&&(oe=!0),typeof ce>"u"&&z==="f7-messages"&&(ce=!0),ee.indexOf(z)>=0&&(q=!0),t.pageContent&&(q?X.push(A):se.push(A))});let R=G.value;return(be||r)&&typeof t.subnavbar>"u"&&typeof t.withSubnavbar>"u"&&R.indexOf("page-with-subnavbar")<0&&(R+=" page-with-subnavbar"),(oe||s)&&typeof t.navbarLarge>"u"&&typeof t.withNavbarLarge>"u"&&R.indexOf("page-with-navbar-large")<0&&(R+=" page-with-navbar-large"),t.pageContent?xe("div",{class:R,ref:p,"data-name":t.name},[X,ie&&ie(),xe(Lc,{ptr:t.ptr,ptrDistance:t.ptrDistance,ptrPreloader:t.ptrPreloader,ptrBottom:t.ptrBottom,ptrMousewheel:t.ptrMousewheel,infinite:t.infinite,infiniteTop:t.infiniteTop,infiniteDistance:t.infiniteDistance,infinitePreloader:t.infinitePreloader,hideBarsOnScroll:t.hideBarsOnScroll,hideNavbarOnScroll:t.hideNavbarOnScroll,hideToolbarOnScroll:t.hideToolbarOnScroll,messagesContent:t.messagesContent||ce,loginScreen:t.loginScreen,onPtrPullStart:V,onPtrPullMove:H,onPtrPullEnd:D,onPtrRefresh:O,onPtrDone:_,onInfinite:N},()=>[ne&&ne(),se])]):xe("div",{class:R,ref:p,"data-name":t.name},[ie&&ie(),ne&&ne(),le&&pe])}}},CE={class:"searchbar-inner"},kE={class:"searchbar-input-wrap"},$E=["value","placeholder","spellcheck"],xE=Ne("i",{class:"searchbar-icon"},null,-1);function SE(t,e){return ge(),at($l(t.tag),{ref:"elRef",class:Le(t.classes),onSubmit:t.onSubmit},{default:De(()=>[Te(t.$slots,"before-inner"),Ne("div",CE,[Te(t.$slots,"inner-start"),Ne("div",kE,[Te(t.$slots,"input-wrap-start"),Ne("input",{value:t.value,placeholder:t.placeholder,spellcheck:t.spellcheck,type:"search",onInput:e[0]||(e[0]=function(){return t.onInput&&t.onInput(...arguments)}),onChange:e[1]||(e[1]=function(){return t.onChange&&t.onChange(...arguments)}),onFocus:e[2]||(e[2]=function(){return t.onFocus&&t.onFocus(...arguments)}),onBlur:e[3]||(e[3]=function(){return t.onBlur&&t.onBlur(...arguments)})},null,40,$E),xE,t.clearButton?(ge(),ke("span",{key:0,class:"input-clear-button",onClick:e[4]||(e[4]=function(){return t.onClearButtonClick&&t.onClearButtonClick(...arguments)})})):We("",!0),Te(t.$slots,"input-wrap-end")]),t.disableButton?(ge(),ke("span",{key:0,class:"searchbar-disable-button",onClick:e[5]||(e[5]=function(){return t.onDisableButtonClick&&t.onDisableButtonClick(...arguments)})},Pt(t.disableButtonText),1)):We("",!0),Te(t.$slots,"inner-end"),Te(t.$slots,"default")]),Te(t.$slots,"after-inner")]),_:3},40,["class","onSubmit"])}const TE={name:"f7-searchbar",render:SE,props:{outline:{type:Boolean,default:!0},form:{type:Boolean,default:!0},placeholder:{type:String,default:"Search"},spellcheck:{type:Boolean,default:void 0},disableButton:{type:Boolean,default:!0},disableButtonText:{type:String,default:"Cancel"},clearButton:{type:Boolean,default:!0},value:[String,Number,Array],inputEvents:{type:String,default:"change input compositionend"},expandable:Boolean,inline:Boolean,searchContainer:[String,Object],searchIn:{type:String,default:".item-title"},searchItem:{type:String,default:"li"},searchGroup:{type:String,default:".list-group"},searchGroupTitle:{type:String,default:".list-group-title"},foundEl:{type:[String,Object],default:".searchbar-found"},notFoundEl:{type:[String,Object],default:".searchbar-not-found"},backdrop:{type:Boolean,default:void 0},backdropEl:[String,Object],hideOnEnableEl:{type:[String,Object],default:".searchbar-hide-on-enable"},hideOnSearchEl:{type:[String,Object],default:".searchbar-hide-on-search"},ignore:{type:String,default:".searchbar-ignore"},customSearch:{type:Boolean,default:!1},removeDiacritics:{type:Boolean,default:!1},hideGroupTitles:{type:Boolean,default:!0},hideGroups:{type:Boolean,default:!0},init:{type:Boolean,default:!0},..._e},emits:["change","input","focus","blur","submit","click:clear","click:disable","searchbar:search","searchbar:clear","searchbar:enable","searchbar:disable","update:value"],setup(t,e){let{emit:n}=e,a=null;const r=He(null),s=v=>{if(a)return a.search(v)},i=()=>{if(a)return a.enable()},o=()=>{if(a)return a.disable()},l=()=>{if(a)return a.toggle()},c=()=>{if(a)return a.clear()},d=v=>{n("change",v)},u=v=>{n("input",v),n("update:value",v.target.value)},p=v=>{n("focus",v)},f=v=>{n("blur",v)},h=v=>{n("submit",v)},m=v=>{n("click:clear",v)},b=v=>{n("click:disable",v)};tt(()=>{t.init&&ht(()=>{const v=Ra({el:r.value,inputEvents:t.inputEvents,searchContainer:t.searchContainer,searchIn:t.searchIn,searchItem:t.searchItem,searchGroup:t.searchGroup,searchGroupTitle:t.searchGroupTitle,hideOnEnableEl:t.hideOnEnableEl,hideOnSearchEl:t.hideOnSearchEl,foundEl:t.foundEl,notFoundEl:t.notFoundEl,backdrop:t.backdrop,backdropEl:t.backdropEl,disableButton:t.disableButton,ignore:t.ignore,customSearch:t.customSearch,removeDiacritics:t.removeDiacritics,hideGroupTitles:t.hideGroupTitles,hideGroups:t.hideGroups,expandable:t.expandable,inline:t.inline,on:{search(y,E,k){n("searchbar:search",y,E,k)},clear(y,E){n("searchbar:clear",y,E)},enable(y){n("searchbar:enable",y)},disable(y){n("searchbar:disable",y)}}});Object.keys(v).forEach(y=>{v[y]===""&&delete v[y]}),a=Y.searchbar.create(v)})}),ct(()=>{a&&a.destroy&&a.destroy(),a=null});const w=me(()=>Re("searchbar",{"searchbar-inline":t.inline,"no-outline":!t.outline,"searchbar-expandable":t.expandable},Ve(t))),g=me(()=>t.form?"form":"div");return{elRef:r,tag:g,classes:w,search:s,enable:i,disable:o,toggle:l,clear:c,onChange:d,onInput:u,onFocus:p,onBlur:f,onSubmit:h,onClearButtonClick:m,onDisableButtonClick:b}}},PE={key:0,class:"subnavbar-inner"},ME={key:0,class:"subnavbar-title"};function BE(t,e){return ge(),ke("div",{class:Le(t.classes)},[t.inner?(ge(),ke("div",PE,[t.title?(ge(),ke("div",ME,Pt(t.title),1)):We("",!0),Te(t.$slots,"default")])):Te(t.$slots,"default",{key:1})],2)}const IE={name:"f7-subnavbar",render:BE,props:{sliding:Boolean,title:String,inner:{type:Boolean,default:!0},..._e},setup(t){return{classes:me(()=>Re("subnavbar",{sliding:t.sliding},Ve(t)))}}},OE={key:0,className:"toolbar-inner"};function AE(t,e){return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"before-inner"),t.inner?(ge(),ke("div",OE,[Te(t.$slots,"default")])):Te(t.$slots,"default",{key:1}),Te(t.$slots,"after-inner")],2)}const DE={name:"f7-toolbar",render:AE,props:{tabbar:Boolean,icons:Boolean,scrollable:Boolean,hidden:Boolean,outline:{type:Boolean,default:!0},position:{type:String,default:void 0},topMd:{type:Boolean,default:void 0},topIos:{type:Boolean,default:void 0},top:{type:Boolean,default:void 0},bottomMd:{type:Boolean,default:void 0},bottomIos:{type:Boolean,default:void 0},bottom:{type:Boolean,default:void 0},inner:{type:Boolean,default:!0},..._e},emits:["toolbar:hide","toolbar:show"],setup(t,e){let{emit:n}=e;const a=He(null),r=_a(),s=u=>{a.value===u&&n("toolbar:hide")},i=u=>{a.value===u&&n("toolbar:show")},o=u=>{Y&&Y.toolbar.hide(a.value,u)},l=u=>{Y&&Y.toolbar.show(a.value,u)};tt(()=>{t.tabbar&&Y&&a.value&&Y.toolbar.setHighlight(a.value),Y.on("toolbarShow",i),Y.on("toolbarHide",s)}),ct(()=>{Y.off("toolbarShow",i),Y.off("toolbarHide",s)});const c=me(()=>({tabbarHasIcons:t.icons}));return Ks("TabbarContext",c),{classes:me(()=>{const{tabbar:u,bottomMd:p,bottomIos:f,bottom:h,position:m,topMd:b,topIos:w,top:g,icons:v,scrollable:y,hidden:E,outline:k}=t;return Re("toolbar",{tabbar:u,"toolbar-bottom":r.value&&r.value.md&&p||r.value&&r.value.ios&&f||h||m==="bottom","toolbar-top":r.value&&r.value.md&&b||r.value&&r.value.ios&&w||g||m==="top","tabbar-icons":v,"tabbar-scrollable":y,"toolbar-hidden":E,"no-outline":!k},Ve(t))}),elRef:a,hide:o,show:l}}},LE=(t,e)=>{const n=t.__vccOpts||t;for(const[a,r]of e)n[a]=r;return n},RE={name:"App",components:{f7App:A1,f7View:Xn,f7Navbar:hE,f7Page:EE,f7Searchbar:TE,f7Subnavbar:IE,f7Toolbar:DE,f7Link:Ic,f7List:nE,f7ListItem:tE,f7NavTitleLarge:oE,f7NavTitle:Dc,f7NavLeft:Oc,f7NavRight:Ac,f7Icon:Pc,f7BlockHeader:R1,f7AccordionContent:B1,f7Block:F1,f7Popover:xc,f7Button:J1,f7PageContent:Lc},setup(){return{colors:A0,glyphs:b0}},data(){return{blue:null,f7params:{name:"Shortcuts Glyphs",theme:"ios",darkMode:"auto"},glyph:{identifier:"identifier",code:null},color:{identifier:null,code:null},compilers:{Cherri:{icon:"🍒",url:"https://cherrilang.org/"},Jelly:{icon:"🪼",url:"https://jellycuts.com/"}},cherriCode:me(()=>{let t=`#define glyph ${this.glyph.identifier}`;return this.color.identifier&&(t+=`
#define color ${this.color.identifier}`),t}),jellyCode:me(()=>{let t=`#Icon: ${this.glyph.identifier}`;return this.color.identifier&&(t+=`, #Color: ${this.jellyColorName()}`),t}),githubCredits:["atnbueno","actuallytaylor","electrikmilk","chrisjmendez"]}},mounted(){this.blue=Y.colors.blue;const t=new URL(window.location.href).searchParams;t.has("q")&&this.$refs.searchbar.search(t.get("q"))},methods:{alert(t,e){Y.dialog.alert(t,e)},copyToClipboard(t){navigator.clipboard.writeText(t),Y.toast.create({icon:'doc_on_clipboard_fill',text:"Copied to Clipboard",position:"center",closeTimeout:2e3}).open()},stripTags(t){return t.replace(/<\/?[^>]+(>|$)/gi,"")},iconClass(t){let e={};return e[`g${t}`]=!0,this.color.code&&(e[`c${this.color.code}`]=!0),e},glyphTitle(t){switch(t){case"airPods":return"AirPods";case"airPodsPro":return"AirPods Pro";case"QRCode":return"QR Code";case"QRViewFinder":return"QR View Finder"}let e=[],n="";for(let a=0;a1&&e.push(n),e=e.map(a=>{if(!a)return;let r=a.split("");const s=a[0].toUpperCase();return r.splice(0,1),s+r.join("")}),e.join(" ")},jellyColorName(){switch(this.color.identifier){case"darkorange":return"orange";case"orange":return"tangerine";case"lightblue":return"lightBlue";case"darkblue":return"navy";case"violet":return"grape";case"taupe":return"grayBrown";case"gray":return"grayGreen";case"darkgray":return"grayBlue";default:return this.color.identifier}}}},HE=Ne("h3",null,"Credits ❤️",-1),FE={style:{all:"initial"}},zE={class:"shortcut-icon-color-picker"},NE=["onClick"],VE={class:"width-100",style:{display:"flex","align-items":"center","justify-content":"center",gap:"1rem"}},_E=["innerHTML"],jE=Ne("br",null,null,-1),qE=Ne("br",null,null,-1),WE=Ne("br",null,null,-1),YE=Ne("br",null,null,-1);function XE(t,e,n,a,r,s){const i=Ae("f7-link"),o=Ae("f7-block"),l=Ae("f7-list-item"),c=Ae("f7-list"),d=Ae("f7-popover"),u=Ae("f7-nav-left"),p=Ae("f7-nav-title"),f=Ae("f7-nav-right"),h=Ae("f7-searchbar"),m=Ae("f7-subnavbar"),b=Ae("f7-navbar"),w=Ae("f7-button"),g=Ae("f7-toolbar"),v=Ae("f7-icon"),y=Ae("f7-block-header"),E=Ae("f7-page-content"),k=Ae("f7-page"),$=Ae("f7-view"),M=Ae("f7-app");return ge(),at(M,Fa(r.f7params,{theme:"ios"}),{default:De(()=>[Se($,{main:""},{default:De(()=>[Se(k,null,{default:De(()=>[Se(d,{class:"credits"},{default:De(()=>[Se(o,null,{default:De(()=>[HE,Ne("p",null,[St(" Glyph data sourced from "),Se(i,{href:"https://github.com/OpenJelly/Open-Jellycore",external:"",target:"_blank"},{default:De(()=>[St(" github.com/OpenJelly/Open-Jellycore ")]),_:1})]),Ne("p",null,[St(" Icons rendered using "),Se(i,{href:"https://github.com/atnbueno/shortcut-icons",external:"",target:"_blank"},{default:De(()=>[St(" github.com/atnbueno/shortcut-icons ")]),_:1})])]),_:1}),Se(c,{dividers:""},{default:De(()=>[(ge(!0),ke(ut,null,Ka(r.githubCredits,x=>(ge(),at(l,{link:"https://github.com/"+x,target:"_blank",style:xn("color:"+r.blue),external:""},{default:De(()=>[St(" @"+Pt(x),1)]),_:2},1032,["link","style"]))),256))]),_:1})]),_:1}),Se(b,{sliding:"",class:"text-align-center",style:{"padding-top":"5rem",height:"10rem"}},{default:De(()=>[Se(u,{style:{"z-index":"999"}},{default:De(()=>[Se(i,{"icon-f7":"info_circle",tooltip:"Credits","popover-open":".credits"})]),_:1}),Se(p,{style:{position:"fixed",left:"0",right:"0",margin:"1.5rem 0 auto"}},{default:De(()=>[Ne("div",FE,[Ne("div",{class:Le(["shortcut-icon s86",s.iconClass(r.glyph.code)]),style:{position:"relative"}},null,2),Ne("div",zE,[(ge(!0),ke(ut,null,Ka(a.colors,(x,F)=>(ge(),ke("div",{class:Le(["shortcut-icon-color","c"+x]),onClick:S=>r.color={identifier:F,code:x}},null,10,NE))),256))])])]),_:1}),Se(f,null,{default:De(()=>[Se(i,{href:"https://github.com/electrikmilk/shortcuts-glyph-search",external:"",tooltip:"View Repo on GitHub","icon-f7":"logo_github",target:"_blank"})]),_:1}),Se(m,null,{default:De(()=>[Se(h,{"search-container":".search-list",ref:"searchbar",class:"searchbar",outline:!1,"search-in":".item-title"},null,512)]),_:1})]),_:1}),Se(g,{position:"bottom",style:xn(r.color.identifier?"height: 9rem":"height: 8rem")},{default:De(()=>[(ge(!0),ke(ut,null,Ka(r.compilers,(x,F)=>(ge(),ke("div",VE,[Se(i,{href:x.url,external:"",style:{"font-weight":"600","font-size":"1rem"},target:"_blank"},{default:De(()=>[St(Pt(x.icon)+" "+Pt(F),1)]),_:2},1032,["href"]),Ne("code",{innerHTML:F==="Cherri"?r.cherriCode:r.jellyCode},null,8,_E),Se(w,{"icon-f7":"doc_on_clipboard_fill","icon-size":"1.3rem",onClick:S=>s.copyToClipboard(s.stripTags((F==="Cherri"?r.cherriCode:r.jellyCode).replace("
",` -`)))},null,8,["onClick"])]))),256))]),_:1},8,["style"]),Se(E,null,{default:De(()=>[Se(y,null,{default:De(()=>[Se(v,{f7:"doc_on_clipboard_fill",size:"1rem"}),St(" Choose one of the glyphs in the list below to copy the identifier and generate code. ")]),_:1}),Se(c,{strong:"",inset:"",class:"searchbar-not-found"},{default:De(()=>[Se(l,{title:"No glyphs found!"})]),_:1}),Se(c,{strong:"",dividers:"",inset:"","media-list":"",class:"search-list searchbar-found"},{default:De(()=>[(ge(!0),ke(ut,null,Ka(a.glyphs,(x,F)=>(ge(),at(l,{title:s.glyphTitle(F),text:F,link:"#",onClick:S=>{s.copyToClipboard(F),r.glyph={identifier:F,code:x}}},{media:De(()=>[Ne("div",{class:Le(["shortcut-icon s43",s.iconClass(x)])},null,2)]),_:2},1032,["title","text","onClick"]))),256))]),_:1}),jE,qE,WE,YE]),_:1})]),_:1})]),_:1})]),_:1},16)}const UE=LE(RE,[["render",XE]]);let nn=class extends en{constructor(e,n){const a=W({title:e.params.dialog.title,text:void 0,content:"",buttons:[],verticalButtons:!1,onClick:void 0,cssClass:void 0,destroyOnClose:!1,on:{}},n);typeof a.closeByBackdropClick>"u"&&(a.closeByBackdropClick=e.params.dialog.closeByBackdropClick),typeof a.backdrop>"u"&&(a.backdrop=e.params.dialog.backdrop),super(e,a);const r=this,s=Ie(),i=ye(),{title:o,text:l,content:c,buttons:d,verticalButtons:u,cssClass:p,backdrop:f}=a;r.params=a;let h;if(r.params.el)h=C(r.params.el);else{const y=["dialog"];d.length===0&&y.push("dialog-no-buttons"),d.length>0&&y.push(`dialog-buttons-${d.length}`),u&&y.push("dialog-buttons-vertical"),p&&y.push(p);let E="";d.length>0&&(E=T("div",{class:"dialog-buttons"},d.map($=>T("span",{class:`dialog-button${$.strong?" dialog-button-strong":""}${$.color?` color-${$.color}`:""}${$.cssClass?` ${$.cssClass}`:""}`},$.text))));const k=T("div",{class:y.join(" ")},T("div",{class:"dialog-inner"},o&&T("div",{class:"dialog-title"},o),l&&T("div",{class:"dialog-text"},l),c),E);h=C(k)}if(h&&h.length>0&&h[0].f7Modal)return h[0].f7Modal;if(h.length===0)return r.destroy();let m;f&&(m=e.$el.children(".dialog-backdrop"),m.length===0&&(m=C('
'),e.$el.append(m)));function b(y){const k=C(this).index(),$=d[k];$.onClick&&$.onClick(r,y),r.params.onClick&&r.params.onClick(r,k),$.close!==!1&&r.close()}let w;function g(y){const E=y.keyCode;d.forEach((k,$)=>{k.keyCodes&&k.keyCodes.indexOf(E)>=0&&(i.activeElement&&i.activeElement.blur(),k.onClick&&k.onClick(r,y),r.params.onClick&&r.params.onClick(r,$),k.close!==!1&&r.close())})}d&&d.length>0&&(r.on("open",()=>{h.find(".dialog-button").each((y,E)=>{d[E].keyCodes&&(w=!0),C(y).on("click",b)}),w&&!s.ios&&!s.android&&!s.cordova&&!s.capacitor&&C(i).on("keydown",g)}),r.on("close",()=>{h.find(".dialog-button").each(y=>{C(y).off("click",b)}),w&&!s.ios&&!s.android&&!s.cordova&&!s.capacitor&&C(i).off("keydown",g),w=!1})),W(r,{app:e,$el:h,el:h[0],$backdropEl:m,backdropEl:m&&m[0],type:"dialog",setProgress(y,E){return e.progressbar.set(h.find(".progressbar"),y,E),r},setText(y){let E=h.find(".dialog-text");return E.length===0&&(E=C('
'),typeof o<"u"?E.insertAfter(h.find(".dialog-title")):h.find(".dialog-inner").prepend(E)),E.html(y),r.params.text=y,r},setTitle(y){let E=h.find(".dialog-title");return E.length===0&&(E=C('
'),h.find(".dialog-inner").prepend(E)),E.html(y),r.params.title=y,r}});function v(y){const E=y.target;C(E).closest(r.el).length===0&&r.params.closeByBackdropClick&&r.backdropEl&&r.backdropEl===E&&r.close()}return r.on("opened",()=>{r.params.closeByBackdropClick&&e.on("click",v)}),r.on("close",()=>{r.params.closeByBackdropClick&&e.off("click",v)}),h[0].f7Modal=r,r.params.destroyOnClose&&r.once("closed",()=>{setTimeout(()=>{r.destroy()},0)}),r}};const GE={name:"dialog",params:{dialog:{title:void 0,buttonOk:"OK",buttonCancel:"Cancel",usernamePlaceholder:"Username",passwordPlaceholder:"Password",preloaderTitle:"Loading... ",progressTitle:"Loading... ",backdrop:!0,closeByBackdropClick:!1,destroyPredefinedDialogs:!0,keyboardActions:!0,autoFocus:!0}},static:{Dialog:nn},create(){const t=this;function e(){return t.params.dialog.title||t.name}const n=t.params.dialog.destroyPredefinedDialogs,a=t.params.dialog.keyboardActions,s=t.params.dialog.autoFocus?{on:{opened(o){o.$el.find("input").eq(0).focus()}}}:{},i=t.theme==="ios";t.dialog=W(pn({app:t,constructor:nn,defaultSelector:".dialog.modal-in"}),{alert(){for(var o=arguments.length,l=new Array(o),c=0;c"u"?e():u,text:d,buttons:[{text:t.params.dialog.buttonOk,strong:i,onClick:p,keyCodes:a?[13,27]:null}],destroyOnClose:n}).open()},prompt(){for(var o=arguments.length,l=new Array(o),c=0;c"u"||h===null?"":h,new nn(t,{title:typeof u>"u"?e():u,text:d,content:`
`,buttons:[{text:t.params.dialog.buttonCancel,keyCodes:a?[27]:null,color:null},{text:t.params.dialog.buttonOk,strong:i,keyCodes:a?[13]:null}],onClick(m,b){const w=m.$el.find(".dialog-input").val();b===0&&f&&f(w),b===1&&p&&p(w)},destroyOnClose:n,...s}).open()},confirm(){for(var o=arguments.length,l=new Array(o),c=0;c"u"?e():u,text:d,buttons:[{text:t.params.dialog.buttonCancel,onClick:f,keyCodes:a?[27]:null,color:null},{text:t.params.dialog.buttonOk,strong:i,onClick:p,keyCodes:a?[13]:null}],destroyOnClose:n}).open()},login(){for(var o=arguments.length,l=new Array(o),c=0;c"u"?e():u,text:d,content:` +${l.toString()}`)}return r&&(typeof r=="string"?o+=`?${r}`:Object.keys(r).length&&(o+=`?${Fn(r)}`)),o}findTabRouteUrl(e){const n=this,a=C(e),r=n.currentRoute.route.parentPath,s=a.attr("id"),i=n.flattenRoutes(n.routes);let o;return i.forEach(l=>{l.parentPath===r&&l.tab&&l.tab.id===s&&(n.currentRoute.params&&Object.keys(n.currentRoute.params).length>0?o=n.constructRouteUrl(l,{params:n.currentRoute.params,query:n.currentRoute.query}):o=l.path)}),o}findRouteByKey(e,n){const a=this,r=a.routes,s=a.flattenRoutes(r);let i;return s.forEach(o=>{i||o[e]===n&&(i=o)}),i}findMatchingRoute(e){if(!e)return;const n=this,a=n.routes,r=n.flattenRoutes(a),{path:s,query:i,hash:o,params:l}=n.parseRouteUrl(e);let c;return r.forEach(d=>{if(c)return;const u=[],p=[d.path||"/"];d.alias&&(typeof d.alias=="string"?p.push(d.alias):Array.isArray(d.alias)&&d.alias.forEach(h=>{p.push(h)}));let f;if(p.forEach(h=>{f||(f=cc(h,u).exec(s||"/"))}),f){u.forEach((m,b)=>{if(typeof m.name=="number")return;const w=f[b+1];typeof w>"u"||w===null?l[m.name]=w:l[m.name]=decodeURIComponent(w)});let h;d.parentPath&&(h=(s||"/").split("/").slice(0,d.parentPath.split("/").length-1).join("/")),c={query:i,hash:o,params:l,url:e,path:s||"/",parentPath:h,route:d,name:d.name}}}),c}replaceRequestUrlParams(e,n){e===void 0&&(e=""),n===void 0&&(n={});let a=e;return typeof a=="string"&&a.indexOf("{{")>=0&&n&&n.route&&n.route.params&&Object.keys(n.route.params).length&&Object.keys(n.route.params).forEach(r=>{const s=new RegExp(`{{${r}}}`,"g");a=a.replace(s,n.route.params[r]||"")}),a}removeFromXhrCache(e){const a=this.cache.xhr;let r=!1;for(let s=0;s=0;return r.passRouteQueryToRequest&&n&&n.route&&n.route.query&&Object.keys(n.route.query).length&&(i+=`${o?"&":"?"}${Fn(n.route.query)}`,o=!0),r.passRouteParamsToRequest&&n&&n.route&&n.route.params&&Object.keys(n.route.params).length&&(i+=`${o?"&":"?"}${Fn(n.route.params)}`,o=!0),i.indexOf("{{")>=0&&(i=a.replaceRequestUrlParams(i,n)),r.xhrCacheIgnoreGetParameters&&i.indexOf("?")>=0&&(i=i.split("?")[0]),new Promise((l,c)=>{if(r.xhrCache&&!s&&i.indexOf("nocache")<0&&r.xhrCacheIgnore.indexOf(i)<0)for(let u=0;u(d=u,u.text())).then(u=>{const{status:p}=d;a.emit("routerAjaxComplete",d),p!=="error"&&p!=="timeout"&&p>=200&&p<300||p===0?(r.xhrCache&&u!==""&&(a.removeFromXhrCache(i),a.cache.xhr.push({url:i,time:It(),content:u})),a.emit("routerAjaxSuccess",d,n),l(u)):(a.emit("routerAjaxError",d,n),c(d))}).catch(u=>{c(u)})})}setNavbarPosition(e,n,a){const r=this;e.removeClass("navbar-previous navbar-current navbar-next"),n&&e.addClass(`navbar-${n}`),a===!1?e.removeAttr("aria-hidden"):a===!0&&e.attr("aria-hidden","true"),e.trigger("navbar:position",{position:n}),r.emit("navbarPosition",e[0],n)}setPagePosition(e,n,a){const r=this;e.removeClass("page-previous page-current page-next"),e.addClass(`page-${n}`),a===!1?e.removeAttr("aria-hidden"):a===!0&&e.attr("aria-hidden","true"),e.trigger("page:position",{position:n}),r.emit("pagePosition",e[0],n)}removeThemeElements(e){const a=this.app.theme;let r;a==="ios"?r=".md-only, .if-md, .if-not-ios, .not-ios":a==="md"&&(r=".ios-only, .if-ios, .if-not-md, .not-md"),C(e).find(r).remove()}getPageData(e,n,a,r,s,i){s===void 0&&(s={});const o=this,l=C(e).eq(0),c=C(n).eq(0),d=l[0].f7Page||{};let u,p;if((a==="next"&&r==="current"||a==="current"&&r==="previous")&&(u="forward"),(a==="current"&&r==="next"||a==="previous"&&r==="current")&&(u="backward"),d&&!d.fromPage){const h=C(i);h.length&&(p=h[0].f7Page)}p=d.pageFrom||p,p&&p.pageFrom&&(p.pageFrom=null);const f={app:o.app,view:o.view,router:o,$el:l,el:l[0],$pageEl:l,pageEl:l[0],$navbarEl:c,navbarEl:c[0],name:l.attr("data-name"),position:a,from:a,to:r,direction:u,route:d.route?d.route:s,pageFrom:p};return l[0].f7Page=f,f}pageCallback(e,n,a,r,s,i,o){if(i===void 0&&(i={}),!n)return;const l=this,c=C(n);if(!c.length)return;const d=C(a),{route:u}=i,p=l.params.restoreScrollTopOnBack&&!(l.params.masterDetailBreakpoint>0&&c.hasClass("page-master")&&l.app.width>=l.params.masterDetailBreakpoint),f=c[0].f7Page&&c[0].f7Page.route&&c[0].f7Page.route.route&&c[0].f7Page.route.route.keepAlive;e==="beforeRemove"&&f&&(e="beforeUnmount");const h=`page${e[0].toUpperCase()+e.slice(1,e.length)}`,m=`page:${e.toLowerCase()}`;let b={};e==="beforeRemove"&&c[0].f7Page?b=W(c[0].f7Page,{from:r,to:s,position:r}):b=l.getPageData(c[0],d[0],r,s,u,o),b.swipeBack=!!i.swipeBack;const{on:w={},once:g={}}=i.route?i.route.route:{};i.on&&W(w,i.on),i.once&&W(g,i.once);function v(){c[0].f7RouteEventsAttached||(c[0].f7RouteEventsAttached=!0,w&&Object.keys(w).length>0&&(c[0].f7RouteEventsOn=w,Object.keys(w).forEach(E=>{w[E]=w[E].bind(l),c.on(ga(E),w[E])})),g&&Object.keys(g).length>0&&(c[0].f7RouteEventsOnce=g,Object.keys(g).forEach(E=>{g[E]=g[E].bind(l),c.once(ga(E),g[E])})))}function y(){c[0].f7RouteEventsAttached&&(c[0].f7RouteEventsOn&&Object.keys(c[0].f7RouteEventsOn).forEach(E=>{c.off(ga(E),c[0].f7RouteEventsOn[E])}),c[0].f7RouteEventsOnce&&Object.keys(c[0].f7RouteEventsOnce).forEach(E=>{c.off(ga(E),c[0].f7RouteEventsOnce[E])}),c[0].f7RouteEventsAttached=null,c[0].f7RouteEventsOn=null,c[0].f7RouteEventsOnce=null,delete c[0].f7RouteEventsAttached,delete c[0].f7RouteEventsOn,delete c[0].f7RouteEventsOnce)}if(e==="mounted"&&v(),e==="init"){if(p&&(r==="previous"||!r)&&s==="current"&&l.scrollHistory[b.route.url]&&!c.hasClass("no-restore-scroll")){let E=c.find(".page-content");E.length>0&&(E=E.filter(k=>C(k).parents(".tab:not(.tab-active)").length===0&&!C(k).is(".tab:not(.tab-active)"))),E.scrollTop(l.scrollHistory[b.route.url])}if(v(),c[0].f7PageInitialized){c.trigger("page:reinit",b),l.emit("pageReinit",b);return}c[0].f7PageInitialized=!0}if(p&&e==="beforeOut"&&r==="current"&&s==="previous"){let E=c.find(".page-content");E.length>0&&(E=E.filter(k=>C(k).parents(".tab:not(.tab-active)").length===0&&!C(k).is(".tab:not(.tab-active)"))),l.scrollHistory[b.route.url]=E.scrollTop()}p&&e==="beforeOut"&&r==="current"&&s==="next"&&delete l.scrollHistory[b.route.url],c.trigger(m,b),l.emit(h,b),(e==="beforeRemove"||e==="beforeUnmount")&&(y(),f||(c[0].f7Page&&c[0].f7Page.navbarEl&&delete c[0].f7Page.navbarEl.f7Page,c[0].f7Page=null))}saveHistory(){const e=this,n=fe();e.view.history=e.history,e.params.browserHistory&&e.params.browserHistoryStoreHistory&&n.localStorage&&(n.localStorage[`f7router-${e.view.id}-history`]=JSON.stringify(e.history))}restoreHistory(){const e=this,n=fe();e.params.browserHistory&&e.params.browserHistoryStoreHistory&&n.localStorage&&n.localStorage[`f7router-${e.view.id}-history`]&&(e.history=JSON.parse(n.localStorage[`f7router-${e.view.id}-history`]),e.view.history=e.history)}clearHistory(){const e=this;e.history=[],e.view&&(e.view.history=[]),e.saveHistory()}updateCurrentUrl(e){const n=this;la(n,"updateCurrentUrl"),n.history.length?n.history[n.history.length-1]=e:n.history.push(e);const{query:a,hash:r,params:s,url:i,path:o}=n.parseRouteUrl(e);if(n.currentRoute&&W(n.currentRoute,{query:a,hash:r,params:s,url:i,path:o}),n.params.browserHistory){const l=n.params.browserHistoryRoot||"";ve.replace(n.view.id,{url:e},l+n.params.browserHistorySeparator+e)}n.saveHistory(),n.emit("routeUrlUpdate",n.currentRoute,n)}getInitialUrl(){const e=this;if(e.initialUrl)return{initialUrl:e.initialUrl,historyRestored:e.historyRestored};const{app:n,view:a}=e,r=ye(),s=fe(),i=n.params.url&&typeof n.params.url=="string"&&typeof URL<"u"?new URL(n.params.url):r.location;let o=e.params.url,l=i.href.split(i.origin)[1],c;const{browserHistory:d,browserHistoryOnLoad:u,browserHistorySeparator:p}=e.params;let{browserHistoryRoot:f}=e.params;return(s.cordova||s.Capacitor&&s.Capacitor.isNative)&&d&&!p&&!f&&i.pathname.indexOf("index.html")&&(console.warn("Framework7: wrong or not complete browserHistory configuration, trying to guess browserHistoryRoot"),f=i.pathname.split("index.html")[0]),!d||!u?(o||(o=l),i.search&&o.indexOf("?")<0&&(o+=i.search),i.hash&&o.indexOf("#")<0&&(o+=i.hash)):(f&&l.indexOf(f)>=0&&(l=l.substring(l.indexOf(f)+f.length),l===""&&(l="/")),p.length>0&&l.indexOf(p)>=0?o=l.substring(l.indexOf(p)+p.length):o=l,e.restoreHistory(),e.history.indexOf(o)>=0?e.history=e.history.slice(0,e.history.indexOf(o)+1):e.params.url===o?e.history=[o]:ve.state&&ve.state[a.id]&&ve.state[a.id].url===e.history[e.history.length-1]?o=e.history[e.history.length-1]:e.history=[l.split(p)[0]||"/",o],e.history.length>1?c=!0:e.history=[],e.saveHistory()),e.initialUrl=o,e.historyRestored=c,{initialUrl:o,historyRestored:c}}init(){const e=this,{app:n,view:a}=e,r=ye();e.mount();const{initialUrl:s,historyRestored:i}=e.getInitialUrl();(a&&e.params.iosSwipeBack&&n.theme==="ios"||a&&e.params.mdSwipeBack&&n.theme==="md")&&Gy(e);const{browserHistory:o,browserHistoryOnLoad:l,browserHistoryAnimateOnLoad:c,browserHistoryInitialMatch:d}=e.params;let u;if(e.history.length>1){const p=d?s:e.history[0];u=e.findMatchingRoute(p),u||(u=W(e.parseRouteUrl(p),{route:{url:p,path:p.split("?")[0]}}))}else u=e.findMatchingRoute(s),u||(u=W(e.parseRouteUrl(s),{route:{url:s,path:s.split("?")[0]}}));if(e.$el.children(".page").length===0&&s&&e.params.loadInitialPage)e.navigate(s,{initial:!0,reloadCurrent:!0,browserHistory:!1,animate:!1,once:{modalOpen(){if(!i)return;(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0})},pageAfterIn(){if(!i)return;(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0})}}});else if(e.$el.children(".page").length){let p;e.currentRoute=u,e.$el.children(".page").each(f=>{const h=C(f);let m;e.setPagePosition(h,"current"),e.dynamicNavbar&&(m=h.children(".navbar"),m.length>0?(e.$navbarsEl.parents(r).length||e.$el.prepend(e.$navbarsEl),e.setNavbarPosition(m,"current"),e.$navbarsEl.append(m),m.children(".title-large").length&&m.addClass("navbar-large"),h.children(".navbar").remove()):(e.$navbarsEl.addClass("navbar-hidden"),m.children(".title-large").length&&e.$navbarsEl.addClass("navbar-hidden navbar-large-hidden"))),e.currentRoute&&e.currentRoute.route&&(e.currentRoute.route.master===!0||typeof e.currentRoute.route.master=="function"&&e.currentRoute.route.master(n,e))&&e.params.masterDetailBreakpoint>0&&(h.addClass("page-master"),h.trigger("page:role",{role:"master"}),m&&m.length&&m.addClass("navbar-master"),a.checkMasterDetailBreakpoint());const b={route:e.currentRoute};e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.options&&W(b,e.currentRoute.route.options),e.currentPageEl=h[0],e.dynamicNavbar&&m.length&&(e.currentNavbarEl=m[0]),e.removeThemeElements(h),e.dynamicNavbar&&m.length&&e.removeThemeElements(m),b.route.route.tab&&(p=!0,e.tabLoad(b.route.route.tab,W({},b))),e.pageCallback("init",h,m,"current",void 0,b),e.pageCallback("beforeIn",h,m,"current",void 0,b),e.pageCallback("afterIn",h,m,"current",void 0,b)}),i&&(d?(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0}):e.navigate(s,{initial:!0,browserHistory:!1,history:!1,animate:c,once:{pageAfterIn(){(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>2&&e.back({preload:!0})}}})),!i&&!p&&(e.history.push(s),e.saveHistory())}s&&o&&l&&(!ve.state||!ve.state[a.id])&&ve.initViewState(a.id,{url:s}),e.emit("local::init routerInit",e)}destroy(){let e=this;e.emit("local::destroy routerDestroy",e),Object.keys(e).forEach(n=>{e[n]=null,delete e[n]}),e=null}}Ut.prototype.navigate=Qy;Ut.prototype.refreshPage=Ky;Ut.prototype.tabLoad=Jy;Ut.prototype.tabRemove=Zy;Ut.prototype.modalLoad=e1;Ut.prototype.modalRemove=t1;Ut.prototype.back=n1;Ut.prototype.clearPreviousHistory=r1;const ii={name:"router",static:{Router:Ut},instance:{cache:{xhr:[],templates:[],components:[]}},create(){const t=this;t.app?t.params.router&&(t.router=new Ut(t.app,t)):t.router=new Ut(t)}};function s1(t){const e=t.app,n=Xe();if(t.resizableInitialized)return;W(t,{resizable:!0,resizableWidth:null,resizableInitialized:!0});const a=C("html"),{$el:r}=t;if(!r)return;let s,i,o;const l={};let c,d,u,p;function f(y){if(!y)return null;if(y.indexOf("%")>=0||y.indexOf("vw")>=0)return parseInt(y,10)/100*e.width;const E=parseInt(y,10);return Number.isNaN(E)?null:E}function h(){return t.resizable&&r.hasClass("view-resizable")&&r.hasClass("view-master-detail")}function m(y){if(!h())return;l.x=y.type==="touchstart"?y.targetTouches[0].pageX:y.pageX,l.y=y.type==="touchstart"?y.targetTouches[0].pageY:y.pageY,o=!1,i=!0;const E=r.children(".page-master");u=f(E.css("min-width")),p=f(E.css("max-width"))}function b(y){if(!i)return;y.f7PreventSwipePanel=!0;const E=y.type==="touchmove"?y.targetTouches[0].pageX:y.pageX;o||(d=s[0].offsetLeft+s[0].offsetWidth,r.addClass("view-resizing"),a.css("cursor","col-resize")),o=!0,y.preventDefault(),c=E-l.x;let k=d+c;u&&!Number.isNaN(u)&&(k=Math.max(k,u)),p&&!Number.isNaN(p)&&(k=Math.min(k,p)),k=Math.min(Math.max(k,0),e.width),t.resizableWidth=k,a[0].style.setProperty("--f7-page-master-width",`${k}px`),r.trigger("view:resize",k),t.emit("local::resize viewResize",t,k)}function w(){if(C("html").css("cursor",""),!i||!o){i=!1,o=!1;return}i=!1,o=!1,a[0].style.setProperty("--f7-page-master-width",`${t.resizableWidth}px`),r.removeClass("view-resizing")}function g(){t.resizableWidth&&(u=f(s.css("min-width")),p=f(s.css("max-width")),u&&!Number.isNaN(u)&&t.resizableWidthp&&(t.resizableWidth=Math.min(t.resizableWidth,p)),t.resizableWidth=Math.min(Math.max(t.resizableWidth,0),e.width),a[0].style.setProperty("--f7-page-master-width",`${t.resizableWidth}px`))}s=t.$el.children(".view-resize-handler"),s.length||(t.$el.append('
'),s=t.$el.children(".view-resize-handler")),t.$resizeHandlerEl=s,r.addClass("view-resizable");const v=n.passiveListener?{passive:!0}:!1;t.$el.on(e.touchEvents.start,".view-resize-handler",m,v),e.on("touchmove:active",b),e.on("touchend:passive",w),e.on("resize",g),t.on("beforeOpen",g),t.once("viewDestroy",()=>{r.removeClass("view-resizable"),t.$resizeHandlerEl.remove(),t.$el.off(e.touchEvents.start,".view-resize-handler",m,v),e.off("touchmove:active",b),e.off("touchend:passive",w),e.off("resize",g),t.off("beforeOpen",g)})}let br=class extends Ue{constructor(e,n,a){a===void 0&&(a={}),super(a,[e]);const r=this,s=r.params.routerId,i={routes:[],routesAdd:[]};if(!s&&!C(n).length){let c="Framework7: can't create a View instance because ";throw c+=typeof n=="string"?`the selector "${n}" didn't match any element`:"el must be an HTMLElement or Dom7 object",new Error(c)}r.params=W({el:n},i,e.params.view,a),r.params.routes.length>0?r.routes=r.params.routes:r.routes=[].concat(e.routes,r.params.routesAdd),W(!1,r,{app:e,name:r.params.name,main:r.params.main,history:[],scrollHistory:{}}),r.useModules(),e.views.push(r),r.main&&(e.views.main=r),r.name&&(e.views[r.name]=r),r.index=e.views.indexOf(r);let o;return r.name?o=`view_${r.name}`:r.main?o="view_main":o=`view_${r.index}`,r.id=o,r.params.init&&(e.initialized?r.init():e.on("init",()=>{r.init()})),r}destroy(){let e=this;const n=e.app;e.$el.trigger("view:beforedestroy"),e.emit("local::beforeDestroy viewBeforeDestroy",e),n.off("resize",e.checkMasterDetailBreakpoint),e.main?(n.views.main=null,delete n.views.main):e.name&&(n.views[e.name]=null,delete n.views[e.name]),e.$el[0].f7View=null,delete e.$el[0].f7View,n.views.splice(n.views.indexOf(e),1),e.params.router&&e.router&&e.router.destroy(),e.emit("local::destroy viewDestroy",e),Object.keys(e).forEach(a=>{e[a]=null,delete e[a]}),e=null}checkMasterDetailBreakpoint(e){const n=this,a=n.app,r=n.$el.hasClass("view-master-detail"),s=a.width>=n.params.masterDetailBreakpoint&&n.$el.children(".page-master").length;typeof e>"u"&&s||e===!0?(n.$el.addClass("view-master-detail"),r||(n.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",n),n.$el.trigger("view:masterDetailBreakpoint"))):(n.$el.removeClass("view-master-detail"),r&&(n.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",n),n.$el.trigger("view:masterDetailBreakpoint")))}initMasterDetail(){const e=this,n=e.app;e.checkMasterDetailBreakpoint=e.checkMasterDetailBreakpoint.bind(e),e.checkMasterDetailBreakpoint(),e.params.masterDetailResizable&&s1(e),n.on("resize",e.checkMasterDetailBreakpoint)}mount(e){const n=this,a=n.app,r=n.params.el||e,s=C(r);let i;typeof r=="string"?i=r:i=(s.attr("id")?`#${s.attr("id")}`:"")+(s.attr("class")?`.${s.attr("class").replace(/ /g,".").replace(".active","")}`:"");let o;a.theme==="ios"&&n.params.iosDynamicNavbar&&(o=s.children(".navbars").eq(0),o.length===0&&(o=C(''))),W(n,{$el:s,el:s[0],main:n.main||s.hasClass("view-main"),$navbarsEl:o,navbarsEl:o?o[0]:void 0,selector:i}),n.main&&(a.views.main=n),s&&s[0]&&(s[0].f7View=n),n.emit("local::mount viewMount",n)}init(e){const n=this;n.mount(e),n.params.router&&(n.params.masterDetailBreakpoint>0&&n.initMasterDetail(),n.params.initRouterOnTabShow&&n.$el.hasClass("tab")&&!n.$el.hasClass("tab-active")?n.$el.once("tab:show",()=>{n.router.init()}):n.router.init(),n.$el.trigger("view:init"),n.emit("local::init viewInit",n))}};br.use(ii);function i1(t){function e(n){const a=fe(),r=C(n.target),s=r.closest("a"),i=s.length>0,o=i&&s.attr("href");if(i&&(s.is(t.params.clicks.externalLinks)||o&&o.indexOf("javascript:")>=0)){const d=s.attr("target");o&&a.cordova&&a.cordova.InAppBrowser&&(d==="_system"||d==="_blank")?(n.preventDefault(),a.cordova.InAppBrowser.open(o,d)):o&&a.Capacitor&&a.Capacitor.Plugins&&a.Capacitor.Plugins.Browser&&(d==="_system"||d==="_blank")&&(n.preventDefault(),a.Capacitor.Plugins.Browser.open({url:o}));return}Object.keys(t.modules).forEach(d=>{const u=t.modules[d].clicks;u&&(n.preventF7Router||Object.keys(u).forEach(p=>{const f=r.closest(p).eq(0);f.length>0&&u[p].call(t,f,f.dataset(),n)}))});let l={};if(i&&(n.preventDefault(),l=s.dataset()),l.clickedEl=s[0],n.preventF7Router||s.hasClass("prevent-router")||s.hasClass("router-prevent"))return;if(o&&o.length>0&&o[0]!=="#"||s.hasClass("back")){let d;if(l.view&&l.view==="current"?d=t.views.current:l.view?d=C(l.view)[0].f7View:(d=r.parents(".view")[0]&&r.parents(".view")[0].f7View,d&&d.params.linksView&&(!s.hasClass("back")||s.hasClass("back")&&d.router.history.length===1)&&(typeof d.params.linksView=="string"?d=C(d.params.linksView)[0].f7View:d.params.linksView instanceof br&&(d=d.params.linksView))),d||t.views.main&&(d=t.views.main),!d||!d.router)return;s[0].f7RouteProps&&(l.props=s[0].f7RouteProps),s.hasClass("back")?d.router.back(o,l):d.router.navigate(o,l)}}t.on("click",e)}const uc={name:"clicks",params:{clicks:{externalLinks:".external"}},on:{init(){i1(this)}}},pc={name:"history",static:{history:ve},on:{init(){ve.init(this)}}},bn={registrations:[],register(t,e){const n=this;return!("serviceWorker"in fe().navigator)||!n.serviceWorker.container?new Promise((r,s)=>{s(new Error("Service worker is not supported"))}):new Promise((r,s)=>{n.serviceWorker.container.register(t,e?{scope:e}:{}).then(i=>{bn.registrations.push(i),n.emit("serviceWorkerRegisterSuccess",i),r(i)}).catch(i=>{n.emit("serviceWorkerRegisterError",i),s(i)})})},unregister(t){const e=this;if(!("serviceWorker"in fe().navigator)||!e.serviceWorker.container)return new Promise((r,s)=>{s(new Error("Service worker is not supported"))});let a;return t?Array.isArray(t)?a=t:a=[t]:a=bn.registrations,Promise.all(a.map(r=>new Promise((s,i)=>{r.unregister().then(()=>{bn.registrations.indexOf(r)>=0&&bn.registrations.splice(bn.registrations.indexOf(r),1),e.emit("serviceWorkerUnregisterSuccess",r),s()}).catch(o=>{e.emit("serviceWorkerUnregisterError",r,o),i(o)})})))}},fc={name:"sw",params:{serviceWorker:{path:void 0,scope:void 0}},create(){const t=this,e=fe();W(t,{serviceWorker:{container:"serviceWorker"in e.navigator?e.navigator.serviceWorker:void 0,registrations:bn.registrations,register:bn.register.bind(t),unregister:bn.unregister.bind(t)}})},on:{init(){const t=fe();if(!("serviceWorker"in t.navigator))return;const e=this;if(e.device.cordova||t.Capacitor&&t.Capacitor.isNative||!e.serviceWorker.container)return;const n=e.params.serviceWorker.path,a=e.params.serviceWorker.scope;if(!n||Array.isArray(n)&&!n.length)return;(Array.isArray(n)?n:[n]).forEach(s=>{e.serviceWorker.register(s,a)})}}};function lo(t){t===void 0&&(t={});const e={__store:!0},n={...t.state||{}},a={...t.actions||{}},r={...t.getters||{}},s=W({},n);let i=[];const o={},l={};Object.keys(r).forEach(m=>{o[m]=[],l[m]=[]});const c=m=>r[m]({state:e.state}),d=(m,b)=>{o[m]||(o[m]=[]),b.forEach(w=>{o[m].indexOf(w)<0&&o[m].push(w)})},u=(m,b)=>{l[m]||(l[m]=[]),l[m].push(b)},p=m=>{Object.keys(o).filter(w=>o[w].indexOf(m)>=0).forEach(w=>{!l[w]||!l[w].length||l[w].forEach(g=>{g(c(w))})})},f=m=>{Object.keys(l).forEach(b=>{const w=l[b];w.indexOf(m)>=0&&w.splice(w.indexOf(m),1)})};e.__removeCallback=m=>{f(m)};const h=function(m,b){if(b===void 0&&(b=!0),m==="constructor")return;i=[];const w=c(m);d(m,i);const v={value:w,onUpdated:E=>{u(m,E)}};if(!b)return v;const y=E=>{v.value=E};return v.__callback=y,u(m,y),v};return e.state=new Proxy(s,{set:(m,b,w)=>(m[b]=w,p(b),!0),get:(m,b)=>(i.push(b),m[b])}),e.getters=new Proxy(r,{set:()=>!1,get:(m,b)=>{if(m[b])return h(b,!0)}}),e._gettersPlain=new Proxy(r,{set:()=>!1,get:(m,b)=>{if(m[b])return h(b,!1)}}),e.dispatch=(m,b)=>new Promise((w,g)=>{if(!a[m])throw g(),new Error(`Framework7: Store action "${m}" is not found`);const v=a[m]({state:e.state,dispatch:e.dispatch},b);w(v)}),e}const hc={name:"store",static:{createStore:lo},proto:{createStore:lo}},In=()=>{const t=fe();return t.Capacitor&&t.Capacitor.isNative&&t.Capacitor.Plugins&&t.Capacitor.Plugins.StatusBar},At={hide(){const t=fe();Ie().cordova&&t.StatusBar&&t.StatusBar.hide(),In()&&t.Capacitor.Plugins.StatusBar.hide()},show(){const t=fe();Ie().cordova&&t.StatusBar&&t.StatusBar.show(),In()&&t.Capacitor.Plugins.StatusBar.show()},onClick(){const t=this;let e;C(".popup.modal-in").length>0?e=C(".popup.modal-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):C(".panel.panel-in").length>0?e=C(".panel.panel-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):C(".views > .view.tab-active").length>0?e=C(".views > .view.tab-active").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):C(".views").length>0?e=C(".views").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):e=t.$el.children(".view").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"),e&&e.length>0&&(e.hasClass("tab")&&(e=e.parent(".tabs").children(".page-content.tab-active")),e.length>0&&e.scrollTop(0,300))},setTextColor(t){const e=fe();Ie().cordova&&e.StatusBar&&(t==="white"?e.StatusBar.styleLightContent():e.StatusBar.styleDefault()),In()&&(t==="white"?e.Capacitor.Plugins.StatusBar.setStyle({style:"DARK"}):e.Capacitor.Plugins.StatusBar.setStyle({style:"LIGHT"}))},setBackgroundColor(t){const e=fe();Ie().cordova&&e.StatusBar&&e.StatusBar.backgroundColorByHexString(t),In()&&e.Capacitor.Plugins.StatusBar.setBackgroundColor({color:t})},isVisible(){const t=fe(),e=Ie();return new Promise(n=>{e.cordova&&t.StatusBar&&n(t.StatusBar.isVisible),In()&&t.Capacitor.Plugins.StatusBar.getInfo().then(a=>{n(a.visible)}),n(!1)})},overlaysWebView(t){t===void 0&&(t=!0);const e=fe();Ie().cordova&&e.StatusBar&&e.StatusBar.overlaysWebView(t),In()&&e.Capacitor.Plugins.StatusBar.setOverlaysWebView({overlay:t})},init(){const t=this,e=fe(),n=Ie(),a=t.params.statusbar;if(!a.enabled)return;const r=n.cordova&&e.StatusBar,s=In();(r||s)&&(a.scrollTopOnClick&&C(e).on("statusTap",At.onClick.bind(t)),n.ios&&(a.iosOverlaysWebView?At.overlaysWebView(!0):At.overlaysWebView(!1),a.iosTextColor==="white"?At.setTextColor("white"):At.setTextColor("black")),n.android&&(a.androidOverlaysWebView?At.overlaysWebView(!0):At.overlaysWebView(!1),a.androidTextColor==="white"?At.setTextColor("white"):At.setTextColor("black"))),a.iosBackgroundColor&&n.ios&&At.setBackgroundColor(a.iosBackgroundColor),a.androidBackgroundColor&&n.android&&At.setBackgroundColor(a.androidBackgroundColor)}},mc={name:"statusbar",params:{statusbar:{enabled:!0,scrollTopOnClick:!0,iosOverlaysWebView:!0,iosTextColor:"black",iosBackgroundColor:null,androidOverlaysWebView:!1,androidTextColor:"black",androidBackgroundColor:null}},create(){Ct(this,{statusbar:At})},on:{init(){const t=this;At.init.call(t)}}};function o1(t){const e=C(".popover.modal-in .view"),n=C(".popup.modal-in .view"),a=C(".panel.panel-in .view");let r=C(".views");r.length===0&&(r=t.$el);let s=r.children(".view");if(s.length===0&&(s=r.children(".tabs").children(".view")),s.length>1&&s.hasClass("tab")&&(s=r.children(".view.tab-active"),s.length===0&&(s=r.children(".tabs").children(".view.tab-active"))),e.length>0&&e[0].f7View)return e[0].f7View;if(n.length>0&&n[0].f7View)return n[0].f7View;if(a.length>0&&a[0].f7View)return a[0].f7View;if(s.length>0){if(s.length===1&&s[0].f7View)return s[0].f7View;if(s.length>1)return t.views.main}}const gc={name:"view",params:{view:{init:!0,initRouterOnTabShow:!1,name:void 0,main:!1,router:!0,linksView:null,xhrCache:!0,xhrCacheIgnore:[],xhrCacheIgnoreGetParameters:!1,xhrCacheDuration:1e3*60*10,componentCache:!0,preloadPreviousPage:!0,allowDuplicateUrls:!1,reloadPages:!1,reloadDetail:!1,masterDetailBreakpoint:0,masterDetailResizable:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,restoreScrollTopOnBack:!0,unloadTabContent:!0,passRouteQueryToRequest:!0,passRouteParamsToRequest:!1,loadInitialPage:!0,iosSwipeBack:!0,iosSwipeBackAnimateShadow:!0,iosSwipeBackAnimateOpacity:!0,iosSwipeBackActiveArea:30,iosSwipeBackThreshold:0,mdSwipeBack:!1,mdSwipeBackAnimateShadow:!0,mdSwipeBackAnimateOpacity:!1,mdSwipeBackActiveArea:30,mdSwipeBackThreshold:0,browserHistory:!1,browserHistoryRoot:void 0,browserHistoryAnimate:!0,browserHistoryAnimateOnLoad:!1,browserHistorySeparator:"#!",browserHistoryOnLoad:!0,browserHistoryInitialMatch:!1,browserHistoryStoreHistory:!0,browserHistoryTabs:"replace",animate:!0,iosDynamicNavbar:!0,iosAnimateNavbarBackIcon:!0,iosPageLoadDelay:0,mdPageLoadDelay:0,routesBeforeEnter:null,routesBeforeLeave:null}},static:{View:br},create(){const t=this;W(t,{views:W([],{create(e,n){return new br(t,e,n)},get(e){const n=C(e);if(n.length&&n[0].f7View)return n[0].f7View}})}),Object.defineProperty(t.views,"current",{enumerable:!0,configurable:!0,get(){return o1(t)}}),t.view=t.views},on:{init(){const t=this;C(".view-init").each(e=>{if(e.f7View)return;const n=C(e).dataset();t.views.create(e,n)})},"modalOpen panelOpen":function(e){const n=this;e.$el.find(".view-init").each(a=>{if(a.f7View)return;const r=C(a).dataset();n.views.create(a,r)})},"modalBeforeDestroy panelBeforeDestroy":function(e){!e||!e.$el||e.$el.find(".view-init").each(n=>{const a=n.f7View;a&&a.destroy()})}},vnode:{"view-init":{insert(t){const e=this,n=t.elm;if(n.f7View)return;const a=C(n).dataset();e.views.create(n,a)},destroy(t){const n=t.elm.f7View;n&&n.destroy()}}}},l1={size(t){const e=this;let n=C(t);if(n.hasClass("navbars")){n=n.children(".navbar").each(S=>{e.navbar.size(S)});return}const a=n.children(".navbar-inner");if(!a.length)return;const r=a.hasClass("navbar-inner-centered-title")||e.params.navbar[`${e.theme}CenterTitle`],s=e.theme==="ios"&&!e.params.navbar[`${e.theme}CenterTitle`];if(!r&&!s||n.parents(".tab:not(.tab-active)").length>0||n.parents(".popup:not(.modal-in)").length>0)return;e.theme!=="ios"&&e.params.navbar[`${e.theme}CenterTitle`]&&a.addClass("navbar-inner-centered-title"),e.theme==="ios"&&!e.params.navbar.iosCenterTitle&&a.addClass("navbar-inner-left-title");const i=n.parents(".view").eq(0),o=e.rtl?a.children(".right"):a.children(".left"),l=e.rtl?a.children(".left"):a.children(".right"),c=a.children(".title"),d=a.children(".subnavbar"),u=o.length===0,p=l.length===0,f=u?0:o.outerWidth(!0),h=p?0:l.outerWidth(!0),m=c.outerWidth(!0),b=a.styles(),g=a[0].offsetWidth-parseInt(b.paddingLeft,10)-parseInt(b.paddingRight,10),v=n.hasClass("navbar-previous"),y=a.hasClass("sliding");let E,k;i.length>0&&i[0].f7View&&(E=i[0].f7View.router,k=E&&E.dynamicNavbar);let $,M;p&&($=g-m),u&&($=0),!u&&!p&&($=(g-h-m+f)/2);let x=(g-m)/2;g-f-h>m?(xg-h&&(x=g-h-m),M=x-$):M=0;const F=e.rtl?-1:1;if(k&&e.theme==="ios"){if(c.hasClass("sliding")||c.length>0&&y){let S=-($+M)*F;const I=(g-$-M-m)*F;if(v&&E&&E.params.iosAnimateNavbarBackIcon){const B=n.parent().find(".navbar-current").children(".left.sliding").find(".back .icon ~ span");B.length>0&&(S+=B[0].offsetLeft)}c[0].f7NavbarLeftOffset=S,c[0].f7NavbarRightOffset=I}if(!u&&(o.hasClass("sliding")||y)){if(e.rtl)o[0].f7NavbarLeftOffset=-(g-o[0].offsetWidth)/2*F,o[0].f7NavbarRightOffset=f*F;else if(o[0].f7NavbarLeftOffset=-f,o[0].f7NavbarRightOffset=(g-o[0].offsetWidth)/2,E&&E.params.iosAnimateNavbarBackIcon&&o.find(".back .icon").length>0&&o.find(".back .icon ~ span").length){const S=o[0].f7NavbarLeftOffset,I=o[0].f7NavbarRightOffset;o[0].f7NavbarLeftOffset=0,o[0].f7NavbarRightOffset=0,o.find(".back .icon ~ span")[0].f7NavbarLeftOffset=S,o.find(".back .icon ~ span")[0].f7NavbarRightOffset=I-o.find(".back .icon")[0].offsetWidth}}!p&&(l.hasClass("sliding")||y)&&(e.rtl?(l[0].f7NavbarLeftOffset=-h*F,l[0].f7NavbarRightOffset=(g-l[0].offsetWidth)/2*F):(l[0].f7NavbarLeftOffset=-(g-l[0].offsetWidth)/2,l[0].f7NavbarRightOffset=h)),d.length&&(d.hasClass("sliding")||y)&&(d[0].f7NavbarLeftOffset=e.rtl?d[0].offsetWidth:-d[0].offsetWidth,d[0].f7NavbarRightOffset=-d[0].f7NavbarLeftOffset)}if(r){let S=M;e.rtl&&u&&p&&c.length>0&&(S=-S),c.css({left:`${S}px`})}},hide(t,e,n,a){e===void 0&&(e=!0),n===void 0&&(n=!1),a===void 0&&(a=!1);const r=this;let s=C(t);const i=s.hasClass("navbar")&&s.parent(".navbars").length&&!a;if(i&&(s=s.parents(".navbars")),!s.length||s.hasClass("navbar-hidden"))return;let o=`navbar-hidden${e?" navbar-transitioning":""}`;(i?s.find(".navbar-current .title-large").length:s.find(".title-large").length)&&(o+=" navbar-large-hidden"),n&&(o+=" navbar-hidden-statusbar"),s.transitionEnd(()=>{s.removeClass("navbar-transitioning")}),s.addClass(o),i?s.children(".navbar").each(c=>{C(c).trigger("navbar:hide"),r.emit("navbarHide",c)}):(s.trigger("navbar:hide"),r.emit("navbarHide",s[0]))},show(t,e,n){t===void 0&&(t=".navbar-hidden"),e===void 0&&(e=!0),n===void 0&&(n=!1);const a=this;let r=C(t);const s=r.hasClass("navbar")&&r.parent(".navbars").length&&!n;s&&(r=r.parents(".navbars")),r.length&&r.hasClass("navbar-hidden")&&(e&&(r.addClass("navbar-transitioning"),r.transitionEnd(()=>{r.removeClass("navbar-transitioning")})),r.removeClass("navbar-hidden navbar-large-hidden navbar-hidden-statusbar"),s?r.children(".navbar").each(i=>{C(i).trigger("navbar:show"),a.emit("navbarShow",i)}):(r.trigger("navbar:show"),a.emit("navbarShow",r[0])))},getElByPage(t){let e,n,a;if(t.$navbarEl||t.$el?(a=t,e=t.$el):(e=C(t),e.length>0&&(a=e[0].f7Page)),a&&a.$navbarEl&&a.$navbarEl.length>0?n=a.$navbarEl:e&&(n=e.children(".navbar")),!(!n||n&&n.length===0))return n[0]},getPageByEl(t){const e=C(t);if(e.parents(".page").length)return e.parents(".page")[0];let n;return e.parents(".view").find(".page").each(a=>{a&&a.f7Page&&a.f7Page.navbarEl&&e[0]===a.f7Page.navbarEl&&(n=a)}),n},collapseLargeTitle(t){const e=this;let n=C(t);if(n.hasClass("navbars")&&(n=n.find(".navbar"),n.length>1&&(n=C(t).find(".navbar-large.navbar-current")),n.length>1||!n.length))return;const a=C(e.navbar.getPageByEl(n));n.addClass("navbar-large-collapsed"),a.eq(0).addClass("page-with-navbar-large-collapsed").trigger("page:navbarlargecollapsed"),e.emit("pageNavbarLargeCollapsed",a[0]),n.trigger("navbar:collapse"),e.emit("navbarCollapse",n[0])},expandLargeTitle(t){const e=this;let n=C(t);if(n.hasClass("navbars")&&(n=n.find(".navbar-large"),n.length>1&&(n=C(t).find(".navbar-large.navbar-current")),n.length>1||!n.length))return;const a=C(e.navbar.getPageByEl(n));n.removeClass("navbar-large-collapsed"),a.eq(0).removeClass("page-with-navbar-large-collapsed").trigger("page:navbarlargeexpanded"),e.emit("pageNavbarLargeExpanded",a[0]),n.trigger("navbar:expand"),e.emit("navbarExpand",n[0])},toggleLargeTitle(t){const e=this;let n=C(t);n.hasClass("navbars")&&(n=n.find(".navbar-large"),n.length>1&&(n=C(t).find(".navbar-large.navbar-current")),n.length>1||!n.length)||(n.hasClass("navbar-large-collapsed")?e.navbar.expandLargeTitle(n):e.navbar.collapseLargeTitle(n))},initNavbarOnScroll(t,e,n,a,r){const s=this,i=Xe(),o=C(t),l=C(e),c=l.find(".title-large"),d=c.length||l.hasClass(".navbar-large");let u=44;const p=s.params.navbar.snapPageScrollToLargeTitle,f=s.params.navbar.snapPageScrollToTransparentNavbar;let h,m,b,w,g,v,y,E,k,$;(a||n&&d)&&(k=l.css("--f7-navbar-large-title-height"),k&&k.indexOf("px")>=0?(k=parseInt(k,10),Number.isNaN(k)&&c.length?k=c[0].offsetHeight:Number.isNaN(k)&&(s.theme==="ios"?k=52:s.theme==="md"&&(k=88))):c.length?k=c[0].offsetHeight:s.theme==="ios"?k=52:s.theme==="md"&&(k=88)),n&&d&&(u+=k);let M,x,F,S;const I=70,B=300;function P(){o.find(".page-content").each(se=>{se.f7ScrollableDistance=se.scrollHeight-se.offsetHeight})}function L(){l.hasClass("with-searchbar-expandable-enabled")||!x||m<0||(m>=k/2&&m=$/2&&m<$?C(x).scrollTop($,100):m<$&&C(x).scrollTop(0,200))}function H(){const se=l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden");if(l.hasClass("with-searchbar-expandable-enabled")||se)return;$||($=e.offsetHeight);let ie=m/$;const le=l.hasClass("navbar-transparent-visible");if(ie=Math.max(Math.min(ie,1),0),le&&ie===1||!le&&ie===0){l.find(".navbar-bg, .title").css("opacity","");return}if(le&&ie===0){l.trigger("navbar:transparenthide"),s.emit("navbarTransparentHide",l[0]),l.removeClass("navbar-transparent-visible"),l.find(".navbar-bg, .title").css("opacity","");return}if(!le&&ie===1){l.trigger("navbar:transparentshow"),s.emit("navbarTransparentShow",l[0]),l.addClass("navbar-transparent-visible"),l.find(".navbar-bg, .title").css("opacity","");return}l.find(".navbar-bg, .title").css("opacity",ie),f&&(i.touch?S&&(clearTimeout(S),S=null,S=setTimeout(()=>{V(),clearTimeout(S),S=null},I)):(clearTimeout(F),F=setTimeout(()=>{V()},B)))}let D=null,O=null;function _(se){if(l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden"))return;const ie=l.hasClass("navbar-large-transparent")||l.hasClass("navbar-large")&&l.hasClass("navbar-transparent");D=O;const le=Math.min(k,se.f7ScrollableDistance||k);O=Math.min(Math.max(m/le,0),1);const be=D>0&&D<1;if(l.hasClass("with-searchbar-expandable-enabled"))return;E=l.hasClass("navbar-large-collapsed");const ce=l.find(".navbar-bg");O===0&&E?s.navbar.expandLargeTitle(l[0]):O===1&&!E&&s.navbar.collapseLargeTitle(l[0]),O===0&&E||O===0&&be||O===1&&!E||O===1&&be?(s.theme==="md"&&l.find(".navbar-inner").css("overflow",""),l.find(".title").css("opacity",""),l.find(".title-large-text, .subnavbar").css("transform",""),l.find(".title-large-text").css("opacity",""),ie&&ce.css("opacity",""),ce.css("transform","")):O>0&&O<1&&(s.theme==="md"&&l.find(".navbar-inner").css("overflow","visible"),l.find(".title").css("opacity",-.5+O*1.5),l.find(".title-large-text, .subnavbar").css("transform",`translate3d(0px, ${-1*O*k}px, 0)`),l.find(".title-large-text").css("opacity",1-O*2),ie&&ce.css("opacity",O),ce.css("transform",`translate3d(0px, ${-1*O*k}px, 0)`)),p&&(i.touch?S&&(clearTimeout(S),S=null,S=setTimeout(()=>{L(),clearTimeout(S),S=null},I)):(clearTimeout(F),F=setTimeout(()=>{L()},B)))}function N(){o.hasClass("page-with-card-opened")||(b=x.scrollHeight,w=x.offsetHeight,g=m+w>=b,y=l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden"),g?s.params.navbar.showOnPageScrollEnd&&(v="show"):h>m?s.params.navbar.showOnPageScrollTop||m<=u?v="show":v="hide":m>u?v="hide":v="show",v==="show"&&y?(s.navbar.show(l,!0,!0),y=!1):v==="hide"&&!y&&(s.navbar.hide(l,!0,!1,!0),y=!0),h=m)}function G(se){x=this,!(se&&se.target&&se.target!==x)&&(m=x.scrollTop,M=m,a?_(x):r&&H(),!o.hasClass("page-previous")&&n&&N())}function ee(){M=!1}function X(){clearTimeout(S),S=null,S=setTimeout(()=>{M!==!1&&(r&&!a?V():L(),clearTimeout(S),S=null)},I)}o.on("scroll",".page-content",G,!0),i.touch&&(a&&p||r&&f)&&(s.on("touchstart:passive",ee),s.on("touchend:passive",X)),P(),(a||r)&&o.find(".page-content").each(se=>{se.scrollTop>0&&G.call(se)}),s.on("resize",P),o[0].f7DetachNavbarScrollHandlers=function(){s.off("resize",P),delete o[0].f7DetachNavbarScrollHandlers,o.off("scroll",".page-content",G,!0),i.touch&&(a&&p||r&&f)&&(s.off("touchstart:passive",ee),s.off("touchend:passive",X))}}},bc={name:"navbar",create(){Ct(this,{navbar:l1})},params:{navbar:{scrollTopOnTitleClick:!0,iosCenterTitle:!0,mdCenterTitle:!1,hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0,collapseLargeTitleOnScroll:!0,snapPageScrollToLargeTitle:!0,snapPageScrollToTransparentNavbar:!0}},on:{"panelBreakpoint panelCollapsedBreakpoint panelResize viewResize resize viewMasterDetailBreakpoint":function(){const e=this;C(".navbar").each(n=>{e.navbar.size(n)})},pageBeforeRemove(t){t.$el[0].f7DetachNavbarScrollHandlers&&t.$el[0].f7DetachNavbarScrollHandlers()},pageBeforeIn(t){const e=this;if(e.theme!=="ios")return;let n;const a=t.$el.parents(".view")[0].f7View,r=e.navbar.getElByPage(t);if(r?n=C(r).parents(".navbars"):n=t.$el.parents(".view").children(".navbars"),t.$el.hasClass("no-navbar")||a.router.dynamicNavbar&&!r){const s=!!(t.pageFrom&&t.router.history.length>0);e.navbar.hide(n,s)}else e.navbar.show(n)},pageReinit(t){const e=this,n=C(e.navbar.getElByPage(t));!n||n.length===0||e.navbar.size(n)},pageInit(t){const e=this,n=C(e.navbar.getElByPage(t));if(!n||n.length===0)return;e.navbar.size(n);let a;n.find(".title-large").length>0&&n.addClass("navbar-large"),n.hasClass("navbar-large")&&(e.params.navbar.collapseLargeTitleOnScroll&&(a=!0),t.$el.addClass("page-with-navbar-large"));let r;!a&&n.hasClass("navbar-transparent")&&(r=!0);let s;(e.params.navbar.hideOnPageScroll||t.$el.find(".hide-navbar-on-scroll").length||t.$el.hasClass("hide-navbar-on-scroll")||t.$el.find(".hide-bars-on-scroll").length||t.$el.hasClass("hide-bars-on-scroll"))&&(t.$el.find(".keep-navbar-on-scroll").length||t.$el.hasClass("keep-navbar-on-scroll")||t.$el.find(".keep-bars-on-scroll").length||t.$el.hasClass("keep-bars-on-scroll")?s=!1:s=!0),(a||s||r)&&e.navbar.initNavbarOnScroll(t.el,n[0],s,a,r)},"panelOpen panelSwipeOpen modalOpen":function(e){const n=this;e.$el.find(".navbar:not(.navbar-previous)").each(a=>{n.navbar.size(a)})},tabShow(t){const e=this;C(t).find(".navbar:not(.navbar-previous)").each(n=>{e.navbar.size(n)})}},clicks:{".navbar .title":function(e,n,a){if(!this.params.navbar.scrollTopOnTitleClick||C(a.target).closest("a, button").length>0)return;let s;const i=e.parents(".navbar"),o=i.parents(".navbars");s=i.parents(".page-content"),s.length===0&&(i.parents(".page").length>0&&(s=i.parents(".page").find(".page-content")),s.length===0&&o.length&&o.nextAll(".page-current").length>0&&(s=o.nextAll(".page-current").find(".page-content")),s.length===0&&i.nextAll(".page-current").length>0&&(s=i.nextAll(".page-current").find(".page-content"))),s&&s.length>0&&(s.hasClass("tab")&&(s=s.parent(".tabs").children(".page-content.tab-active")),s.length>0&&s.scrollTop(0,300))}},vnode:{navbar:{postpatch(t){this.navbar.size(t.elm)}}}},c1={setHighlight(t){const e=this,n=C(t);if(e.theme==="ios"&&!n.hasClass("tabbar-highlight")||n.length===0||!(n.hasClass("tabbar")||n.hasClass("tabbar-icons")))return;let a=n.find(".tab-link-highlight");const r=n.find(".tab-link").length;if(r===0){a.remove();return}a.length===0?(n.children(".toolbar-inner").append(''),a=n.find(".tab-link-highlight")):a.next().length&&n.children(".toolbar-inner").append(a);const s=n.find(".tab-link-active");let i,o;if(n.hasClass("tabbar-scrollable")&&s&&s[0])i=`${s[0].offsetWidth}px`,o=`${s[0].offsetLeft}px`;else{const l=s.index();i=`${100/r}%`,o=`${(e.rtl?-l:l)*100}%`}Pt(()=>{a.css("width",i).transform(`translate3d(${o},0,0)`)})},init(t){this.toolbar.setHighlight(t)},hide(t,e){e===void 0&&(e=!0);const n=this,a=C(t);if(a.hasClass("toolbar-hidden"))return;const r=`toolbar-hidden${e?" toolbar-transitioning":""}`;a.transitionEnd(()=>{a.removeClass("toolbar-transitioning")}),a.addClass(r),a.trigger("toolbar:hide"),n.emit("toolbarHide",a[0])},show(t,e){e===void 0&&(e=!0);const n=this,a=C(t);a.hasClass("toolbar-hidden")&&(e&&(a.addClass("toolbar-transitioning"),a.transitionEnd(()=>{a.removeClass("toolbar-transitioning")})),a.removeClass("toolbar-hidden"),a.trigger("toolbar:show"),n.emit("toolbarShow",a[0]))},initToolbarOnScroll(t){const e=this,n=C(t);let a=n.parents(".view").children(".toolbar");if(a.length===0&&(a=n.find(".toolbar")),a.length===0&&(a=n.parents(".views").children(".tabbar, .tabbar-icons")),a.length===0)return;let r,s,i,o,l,c,d;function u(p){if(n.hasClass("page-with-card-opened")||n.hasClass("page-previous"))return;const f=this;p&&p.target&&p.target!==f||(s=f.scrollTop,i=f.scrollHeight,o=f.offsetHeight,l=s+o>=i,d=a.hasClass("toolbar-hidden"),l?e.params.toolbar.showOnPageScrollEnd&&(c="show"):r>s?e.params.toolbar.showOnPageScrollTop||s<=44?c="show":c="hide":s>44?c="hide":c="show",c==="show"&&d?(e.toolbar.show(a),d=!1):c==="hide"&&!d&&(e.toolbar.hide(a),d=!0),r=s)}n.on("scroll",".page-content",u,!0),n[0].f7ScrollToolbarHandler=u}},vc={name:"toolbar",create(){Ct(this,{toolbar:c1})},params:{toolbar:{hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0}},on:{pageBeforeRemove(t){t.$el[0].f7ScrollToolbarHandler&&t.$el.off("scroll",".page-content",t.$el[0].f7ScrollToolbarHandler,!0)},pageBeforeIn(t){const e=this;let n=t.$el.parents(".view").children(".toolbar");n.length===0&&(n=t.$el.parents(".views").children(".tabbar, .tabbar-icons")),n.length===0&&(n=t.$el.find(".toolbar")),n.length!==0&&(t.$el.hasClass("no-toolbar")?e.toolbar.hide(n):e.toolbar.show(n))},pageInit(t){const e=this;if(t.$el.find(".tabbar, .tabbar-icons").each(n=>{e.toolbar.init(n)}),e.params.toolbar.hideOnPageScroll||t.$el.find(".hide-toolbar-on-scroll").length||t.$el.hasClass("hide-toolbar-on-scroll")||t.$el.find(".hide-bars-on-scroll").length||t.$el.hasClass("hide-bars-on-scroll")){if(t.$el.find(".keep-toolbar-on-scroll").length||t.$el.hasClass("keep-toolbar-on-scroll")||t.$el.find(".keep-bars-on-scroll").length||t.$el.hasClass("keep-bars-on-scroll"))return;e.toolbar.initToolbarOnScroll(t.el)}},init(){const t=this;t.$el.find(".tabbar, .tabbar-icons").each(e=>{t.toolbar.init(e)})}},vnode:{tabbar:{insert(t){this.toolbar.init(t.elm)}}}},wc={name:"subnavbar",on:{pageInit(t){t.$navbarEl&&t.$navbarEl.length&&t.$navbarEl.find(".subnavbar").length&&t.$el.addClass("page-with-subnavbar"),t.$el.find(".subnavbar").filter(n=>C(n).parents(".page")[0]===t.$el[0]).length&&t.$el.addClass("page-with-subnavbar")}}};let co=class{constructor(e,n,a,r){const s=this;if(!n)return;const{left:i,top:o,width:l,height:c}=n[0].getBoundingClientRect(),d={x:a-i,y:r-o};let u=Math.max((c**2+l**2)**.5,48),p=!1;const f=e.params.touch.touchRippleInsetElements||"";if(f&&n.is(f)&&(p=!0),p&&(u=Math.max(Math.min(l,c),48)),!p&&n.css("overflow")==="hidden"){const h=((d.x-l/2)**2+(d.y-c/2)**2)**.5,m=(u/2+h)/(u/2);s.rippleTransform=`translate3d(0px, 0px, 0) scale(${m*2})`}else s.rippleTransform=`translate3d(${-d.x+l/2}px, ${-d.y+c/2}px, 0) scale(1)`;return p&&n.addClass("ripple-inset"),s.$rippleWaveEl=C(`
`),n.prepend(s.$rippleWaveEl),s.$rippleWaveEl.animationEnd(()=>{s.$rippleWaveEl&&(s.$rippleWaveEl.hasClass("ripple-wave-out")||(s.$rippleWaveEl.addClass("ripple-wave-in"),s.shouldBeRemoved&&s.out()))}),s}destroy(){let e=this;e.$rippleWaveEl&&e.$rippleWaveEl.remove(),Object.keys(e).forEach(n=>{e[n]=null,delete e[n]}),e=null}out(){const e=this,{$rippleWaveEl:n}=this;clearTimeout(e.removeTimeout),n.addClass("ripple-wave-out"),e.removeTimeout=setTimeout(()=>{e.destroy()},300),n.animationEnd(()=>{clearTimeout(e.removeTimeout),e.destroy()})}remove(){const e=this;e.shouldBeRemoved||(e.removeTimeout=setTimeout(()=>{e.destroy()},400),e.shouldBeRemoved=!0,e.$rippleWaveEl.hasClass("ripple-wave-in")&&e.out())}};const yc={name:"touch-ripple",static:{TouchRipple:co},create(){const t=this;t.touchRipple={create(){for(var e=arguments.length,n=new Array(e),a=0;a0?f=!0:ha.length>0&&ha.forEach(h=>{h.type==="dialog"&&(f=!0)}),f)return Kn.push(a),a}const d=i.parent(),u=i.parents(r).length>0;d.is(a.$containerEl)||(a.$containerEl.append(i),a.once(`${l}Closed`,()=>{u?d.append(i):i.remove()})),i.show(),a.params.backdrop&&(a.params.backdropUnique||a.forceBackdropUnique)&&a.$backdropEl&&a.$backdropEl.insertBefore(i),a._clientLeft=i[0].clientLeft;function p(){i.hasClass("modal-out")?a.onClosed():i.hasClass("modal-in")&&a.onOpened()}return c?(o&&(o.removeClass("not-animated"),o.addClass("backdrop-in")),i.animationEnd(()=>{p()}),i.transitionEnd(()=>{p()}),i.removeClass("modal-out not-animated").addClass("modal-in"),a.onOpen()):(o&&o.addClass("backdrop-in not-animated"),i.removeClass("modal-out").addClass("modal-in not-animated"),a.onOpen(),a.onOpened()),a}close(e){const n=this,a=n.$el,r=n.$backdropEl;let s=!0;if(typeof e<"u"?s=e:typeof n.params.animate<"u"&&(s=n.params.animate),!a||!a.hasClass("modal-in"))return Kn.indexOf(n)>=0&&Kn.splice(Kn.indexOf(n),1),n;if(r){let o=!0;n.type==="popup"&&n.$el.prevAll(".popup.modal-in").add(n.$el.nextAll(".popup.modal-in")).each(l=>{const c=l.f7Modal;c&&c.params.closeByBackdropClick&&c.params.backdrop&&c.backdropEl===n.backdropEl&&(o=!1)}),o&&(r[s?"removeClass":"addClass"]("not-animated"),r.removeClass("backdrop-in"))}a[s?"removeClass":"addClass"]("not-animated");function i(){a.hasClass("modal-out")?n.onClosed():a.hasClass("modal-in")&&n.onOpened()}return s?(a.animationEnd(()=>{i()}),a.transitionEnd(()=>{i()}),a.removeClass("modal-in").addClass("modal-out"),n.onClose()):(a.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),n.onClose(),n.onClosed()),n.type==="dialog"&&d1(),n}destroy(){const e=this;e.destroyed||(e.emit(`local::beforeDestroy modalBeforeDestroy ${e.type}BeforeDestroy`,e),e.$el&&(e.$el.trigger(`modal:beforedestroy ${e.type.toLowerCase()}:beforedestroy`),e.$el.length&&e.$el[0].f7Modal&&delete e.$el[0].f7Modal),Ze(e),e.destroyed=!0)}};class uo extends en{constructor(e,n){const a=W({backdrop:!0,closeByBackdropClick:!0,on:{}},n);super(e,a);const r=this;r.params=a;let s;if(r.params.el?s=C(r.params.el):s=C(r.params.content),s&&s.length>0&&s[0].f7Modal)return s[0].f7Modal;if(s.length===0)return r.destroy();let i;r.params.backdrop&&(i=e.$el.children(".custom-modal-backdrop"),i.length===0&&(i=C('
'),e.$el.append(i)));function o(l){!r||r.destroyed||i&&l.target===i[0]&&r.close()}return r.on("customModalOpened",()=>{r.params.closeByBackdropClick&&r.params.backdrop&&e.on("click",o)}),r.on("customModalClose",()=>{r.params.closeByBackdropClick&&r.params.backdrop&&e.off("click",o)}),W(r,{app:e,$el:s,el:s[0],$backdropEl:i,backdropEl:i&&i[0],type:"customModal"}),s[0].f7Modal=r,r}}const Ec={name:"modal",static:{Modal:en,CustomModal:uo},create(){const t=this;t.customModal={create(e){return new uo(t,e)}}},params:{modal:{queueDialogs:!0}}};nt.use([ac,rc,sc,ic,oc,uc,ii,pc,fc,hc,mc,gc,bc,vc,wc,yc,Ec]);function Ra(t){const e={};return Object.keys(t).forEach(n=>{typeof t[n]<"u"&&(e[n]=t[n])}),e}function ze(t){return typeof t=="string"&&t!==""}function Ja(t){return typeof t=="object"&&t!==null&&t.constructor&&t.constructor===Object}function Cc(){return Date.now()}function dn(){let t=!0,e,n;for(var a=arguments.length,r=new Array(a),s=0;s{typeof s=="object"&&s.constructor===Object?Object.keys(s).forEach(i=>{s[i]&&t.push(i)}):s&&t.push(s)});const r=[];return t.forEach(s=>{r.indexOf(s)<0&&r.push(s)}),r.join(" ")}let Ss=0,Ts=0;function u1(){Ss=0,Ts=0}function po(){return Ss+=1,`${Cc()}_${Ss}`}function sr(){return Ts+=1,`${Cc()}_${Ts}`}let Y,Ft;const St={},yt={views:[],tabs:[],modals:null},kc=()=>{Y&&(St.ios=Y.theme==="ios",St.md=Y.theme==="md")},p1=()=>{u1(),delete St.ios,delete St.md,yt.views=[],yt.tabs=[],yt.modals=null},f1=()=>{Ft=new nt.Events},fo=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n=!0);const a=dn({},e,{el:t,init:n});if(typeof e.store<"u"&&(a.store=e.store),a.routes||(a.routes=[]),a.userAgent&&(a.theme==="auto"||!a.theme)){const s=nt.getDevice({userAgent:a.userAgent},!0);St.ios=!!s.ios,St.md=!St.ios}if(Y&&typeof window<"u")return;typeof window>"u"&&p1();const r=new nt(a);Y=r,kc(),r.initialized?(Y=r,Ft.emit("ready",Y)):r.on("init",()=>{Y=r,Ft.emit("ready",Y)})},ht=t=>{t&&(Y&&Y.initialized?t(Y):Ft.once("ready",t))};function Ve(t){const{color:e,textColor:n,bgColor:a,borderColor:r,rippleColor:s,dark:i}=t;return{dark:i,[`color-${e}`]:e,[`text-color-${n}`]:n,[`bg-color-${a}`]:a,[`border-color-${r}`]:r,[`ripple-color-${s}`]:s}}const _e={color:String,colorTheme:String,textColor:String,bgColor:String,borderColor:String,rippleColor:String,dark:Boolean},$c={icon:String,iconMaterial:String,iconF7:String,iconIos:String,iconMd:String,iconColor:String,iconSize:[String,Number],iconBadge:[String,Number],iconBadgeColor:String},oi={back:Boolean,external:Boolean,force:Boolean,animate:{type:Boolean,default:void 0},ignoreCache:Boolean,reloadCurrent:Boolean,reloadAll:Boolean,reloadPrevious:Boolean,reloadDetail:{type:Boolean,default:void 0},routeTabId:String,view:String,routeProps:Object,preventRouter:Boolean,transition:String,openIn:String};function li(t){const{force:e,reloadCurrent:n,reloadPrevious:a,reloadAll:r,reloadDetail:s,animate:i,ignoreCache:o,routeTabId:l,view:c,transition:d,openIn:u}=t;let p;"animate"in t&&typeof i<"u"&&(p=i.toString());let f;return"reloadDetail"in t&&typeof s<"u"&&(f=s.toString()),{"data-force":e||void 0,"data-reload-current":n||void 0,"data-reload-all":r||void 0,"data-reload-previous":a||void 0,"data-reload-detail":f,"data-animate":p,"data-ignore-cache":o||void 0,"data-route-tab-id":l||void 0,"data-view":ze(c)?c:void 0,"data-transition":ze(d)?d:void 0,"data-open-in":ze(u)?u:void 0}}function ci(t){const{back:e,linkBack:n,external:a,preventRouter:r}=t;return{back:e||n,external:a,"prevent-router":r}}const di={searchbarEnable:[Boolean,String],searchbarDisable:[Boolean,String],searchbarClear:[Boolean,String],searchbarToggle:[Boolean,String],panelOpen:[Boolean,String],panelClose:[Boolean,String],panelToggle:[Boolean,String],popupOpen:[Boolean,String],popupClose:[Boolean,String],actionsOpen:[Boolean,String],actionsClose:[Boolean,String],popoverOpen:[Boolean,String],popoverClose:[Boolean,String],loginScreenOpen:[Boolean,String],loginScreenClose:[Boolean,String],sheetOpen:[Boolean,String],sheetClose:[Boolean,String],sortableEnable:[Boolean,String],sortableDisable:[Boolean,String],sortableToggle:[Boolean,String],cardOpen:[Boolean,String],cardPreventOpen:[Boolean,String],cardClose:[Boolean,String]};function ui(t){const{searchbarEnable:e,searchbarDisable:n,searchbarClear:a,searchbarToggle:r,panelOpen:s,panelClose:i,panelToggle:o,popupOpen:l,popupClose:c,actionsOpen:d,actionsClose:u,popoverOpen:p,popoverClose:f,loginScreenOpen:h,loginScreenClose:m,sheetOpen:b,sheetClose:w,sortableEnable:g,sortableDisable:v,sortableToggle:y,cardOpen:E,cardClose:k}=t;return{"data-searchbar":ze(e)&&e||ze(n)&&n||ze(a)&&a||ze(r)&&r||void 0,"data-panel":ze(s)&&s||ze(i)&&i||ze(o)&&o||void 0,"data-popup":ze(l)&&l||ze(c)&&c||void 0,"data-actions":ze(d)&&d||ze(u)&&u||void 0,"data-popover":ze(p)&&p||ze(f)&&f||void 0,"data-sheet":ze(b)&&b||ze(w)&&w||void 0,"data-login-screen":ze(h)&&h||ze(m)&&m||void 0,"data-sortable":ze(g)&&g||ze(v)&&v||ze(y)&&y||void 0,"data-card":ze(E)&&E||ze(k)&&k||void 0}}function pi(t){const{searchbarEnable:e,searchbarDisable:n,searchbarClear:a,searchbarToggle:r,panelOpen:s,panelClose:i,panelToggle:o,popupOpen:l,popupClose:c,actionsClose:d,actionsOpen:u,popoverOpen:p,popoverClose:f,loginScreenOpen:h,loginScreenClose:m,sheetOpen:b,sheetClose:w,sortableEnable:g,sortableDisable:v,sortableToggle:y,cardOpen:E,cardPreventOpen:k,cardClose:$}=t;return{"searchbar-enable":e||e==="","searchbar-disable":n||n==="","searchbar-clear":a||a==="","searchbar-toggle":r||r==="","panel-close":i||i==="","panel-open":s||s==="","panel-toggle":o||o==="","popup-close":c||c==="","popup-open":l||l==="","actions-close":d||d==="","actions-open":u||u==="","popover-close":f||f==="","popover-open":p||p==="","sheet-close":w||w==="","sheet-open":b||b==="","login-screen-close":m||m==="","login-screen-open":h||h==="","sortable-enable":g||g==="","sortable-disable":v||v==="","sortable-toggle":y||y==="","card-close":$||$==="","card-open":E||E==="","card-prevent-open":k||k===""}}const Ar=function(t){let{isOpened:e,isClosing:n}=t===void 0?{}:t;return{"modal-in":e&&!n,"modal-out":n}};function h1(t,e){return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"default")],2)}const m1={name:"f7-popup",render:h1,props:{tabletFullscreen:Boolean,opened:Boolean,animate:{type:Boolean,default:void 0},backdrop:{type:Boolean,default:void 0},backdropEl:{type:[String,Object],default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},closeOnEscape:{type:Boolean,default:void 0},swipeToClose:{type:[Boolean,String],default:!1},swipeHandler:{type:[String,Object],default:void 0},push:Boolean,containerEl:{type:[String,Object],default:void 0},..._e},emits:["popup:swipestart","popup:swipemove","popup:swipeend","popup:swipeclose","popup:open","popup:opened","popup:close","popup:closed","update:opened"],setup(t,e){let{emit:n}=e;const a=He(null);let r=t.opened,s=!1;const i=He(null),o=b=>{n("popup:swipestart",b)},l=b=>{n("popup:swipemove",b)},c=b=>{n("popup:swipeend",b)},d=b=>{n("popup:swipeclose",b)},u=b=>{r=!0,s=!1,n("popup:open",b),n("update:opened",!0)},p=b=>{n("popup:opened",b)},f=b=>{r=!1,s=!0,n("popup:close",b)},h=b=>{s=!1,n("popup:closed",b),n("update:opened",!1)};Rt(()=>t.opened,b=>{a.value&&(b?a.value.open():a.value.close())}),tt(()=>{if(!i.value)return;const b={el:i.value,on:{swipeStart:o,swipeMove:l,swipeEnd:c,swipeClose:d,open:u,opened:p,close:f,closed:h}},{closeByBackdropClick:w,closeOnEscape:g,animate:v,backdrop:y,backdropEl:E,swipeToClose:k,swipeHandler:$,containerEl:M}=t;typeof w<"u"&&(b.closeByBackdropClick=w),typeof g<"u"&&(b.closeOnEscape=g),typeof v<"u"&&(b.animate=v),typeof y<"u"&&(b.backdrop=y),typeof E<"u"&&(b.backdropEl=E),typeof k<"u"&&(b.swipeToClose=k),typeof $<"u"&&(b.swipeHandler=$),typeof M<"u"&&(b.containerEl=M),ht(()=>{a.value=Y.popup.create(b),t.opened&&a.value.open(!1,!0)})}),ct(()=>{a.value&&a.value.destroy(),a.value=null});const m=me(()=>Re("popup",{"popup-tablet-fullscreen":t.tabletFullscreen,"popup-push":t.push},Ar({isOpened:r,isClosing:s}),Ve(t)));return{elRef:i,classes:m}}},Dr=(t,e)=>{const n=r=>{t.value===r&&e("tab:show",r)},a=r=>{t.value===r&&e("tab:hide",r)};tt(()=>{t.value&&ht(()=>{Y.on("tabShow",n),Y.on("tabHide",a)})}),ct(()=>{Y&&(Y.off("tabShow",n),Y.off("tabHide",a))})},g1=(t,e)=>{let n;const{initialUrl:a}=t.getInitialUrl(),r=t.findMatchingRoute(a);let s={};r&&r.route&&r.route.options&&(s=r.route.options.props);const i=o=>o.master===!0?!0:typeof o.master=="function"?o.master(t.app):!1;return r&&r.route&&(r.route.component||r.route.asyncComponent)&&!i(r.route)&&(n={component:r.route.component||r.route.asyncComponent,initialComponent:e,id:sr(),isAsync:!!r.route.asyncComponent,props:{f7route:r,f7router:t,...s,...r.params}}),{initialPage:n,initialRoute:r}},Xn={name:"f7-view",props:{tab:Boolean,tabActive:Boolean,name:String,initRouterOnTabShow:{type:Boolean,default:void 0},router:{type:Boolean,default:!0},linksView:[Object,String],url:String,main:{type:Boolean,default:void 0},xhrCache:{type:Boolean,default:void 0},xhrCacheIgnore:Array,xhrCacheIgnoreGetParameters:{type:Boolean,default:void 0},xhrCacheDuration:Number,preloadPreviousPage:{type:Boolean,default:void 0},allowDuplicateUrls:{type:Boolean,default:void 0},reloadPages:{type:Boolean,default:void 0},reloadDetail:{type:Boolean,default:void 0},masterDetailResizable:{type:Boolean,default:void 0},masterDetailBreakpoint:Number,removeElements:{type:Boolean,default:void 0},removeElementsWithTimeout:{type:Boolean,default:void 0},removeElementsTimeout:Number,restoreScrollTopOnBack:{type:Boolean,default:void 0},loadInitialPage:{type:Boolean,default:void 0},iosSwipeBack:{type:Boolean,default:void 0},iosSwipeBackAnimateShadow:{type:Boolean,default:void 0},iosSwipeBackAnimateOpacity:{type:Boolean,default:void 0},iosSwipeBackActiveArea:Number,iosSwipeBackThreshold:Number,mdSwipeBack:{type:Boolean,default:void 0},mdSwipeBackAnimateShadow:{type:Boolean,default:void 0},mdSwipeBackAnimateOpacity:{type:Boolean,default:void 0},mdSwipeBackActiveArea:Number,mdSwipeBackThreshold:Number,browserHistory:{type:Boolean,default:void 0},browserHistoryRoot:String,browserHistoryAnimate:{type:Boolean,default:void 0},browserHistoryAnimateOnLoad:{type:Boolean,default:void 0},browserHistorySeparator:String,browserHistoryOnLoad:{type:Boolean,default:void 0},browserHistoryInitialMatch:{type:Boolean,default:!0},browserHistoryStoreHistory:{type:Boolean,default:void 0},animate:{type:Boolean,default:void 0},transition:String,iosDynamicNavbar:{type:Boolean,default:void 0},iosAnimateNavbarBackIcon:{type:Boolean,default:void 0},materialPageLoadDelay:Number,passRouteQueryToRequest:{type:Boolean,default:void 0},passRouteParamsToRequest:{type:Boolean,default:void 0},routes:Array,routesAdd:Array,routesBeforeEnter:[Function,Array],routesBeforeLeave:[Function,Array],unloadTabContent:{type:Boolean,default:void 0},init:{type:Boolean,default:!0},..._e},emits:["view:init","view:resize","swipeback:move","swipeback:beforechange","swipeback:afterchange","swipeback:beforereset","swipeback:afterreset","tab:hide","tab:show"],setup(t,e){let{emit:n,slots:a}=e;const r=null,s=!(t.initRouterOnTabShow&&t.tab&&!t.tabActive);let i=null;const o=He(null);let l=null,c,d;const u=M=>{n("view:init",M),t.init||(l.instance=M,i=l.instance)},p=()=>{const M=Me(t.routes||[]),x=Me(t.routesAdd||[]);return Ra({...t,routes:M,routesAdd:x})};if(Y&&!i&&t.init){const M=po();if(i=Y.views.create(o.value,{...p(),routerId:M,init:!1,on:{init:u}}),l={routerId:M,instance:i},yt.views.push(l),s&&i&&i.router&&(t.url||t.main)){const x=g1(i.router,r);c=x.initialPage,d=x.initialRoute,d&&d.route&&d.route.masterRoute&&(c=void 0,d=void 0)}}const f=He(c?[c]:[]),h=M=>{M.forEach(x=>{x.component=Me(x.component)}),f.value=M},m=(M,x)=>{n("view:resize",x)},b=M=>{n("swipeback:move",M)},w=M=>{n("swipeback:beforechange",M)},g=M=>{n("swipeback:afterchange",M)},v=M=>{n("swipeback:beforereset",M)},y=M=>{n("swipeback:afterreset",M)};tt(()=>{ht(()=>{if(i)l.el=o.value,l.pages=f.value,l.setPages=M=>{h([...M])},c&&c.isAsync&&!c.initialComponent?c.component().then(()=>{setTimeout(()=>{i.init(o.value),c&&(c.el=i.router.currentPageEl,d&&d.route&&d.route.keepAlive&&(d.route.keepAliveData={pageEl:c.el}))},100)}):(i.init(o.value),c&&(c.el=i.router.currentPageEl,d&&d.route&&d.route.keepAlive&&(d.route.keepAliveData={pageEl:c.el})));else{const M=po();l={el:o.value,routerId:M,pages:f.value,instance:i,setPages(x){h([...x])}},yt.views.push(l),l.instance=Y.views.create(o.value,{routerId:M,...p(),on:{init:u}}),i=l.instance}t.init&&(i.on("resize",m),i.on("swipebackMove",b),i.on("swipebackBeforeChange",w),i.on("swipebackAfterChange",g),i.on("swipebackBeforeReset",v),i.on("swipebackAfterReset",y))})}),ct(()=>{i&&(i.off("resize",m),i.off("swipebackMove",b),i.off("swipebackBeforeChange",w),i.off("swipebackAfterChange",g),i.off("swipebackBeforeReset",v),i.off("swipebackAfterReset",y),i.destroy&&i.destroy(),i=null),yt.views.splice(yt.views.indexOf(l),1),l=null}),Pr(()=>{!l||!Y||Ft.emit("viewRouterDidUpdate",l)}),Dr(o,n);const E=me(()=>Re("view",{"view-main":t.main,"tab-active":t.tabActive,tab:t.tab},Ve(t))),k=M=>Me(M.component),$=M=>{const{component:x,props:F}=M;let S=[];const I={};return x&&x.props&&(Array.isArray(x.props)?S=x.props.filter(B=>typeof B=="string"):S=Object.keys(x.props)),S.forEach(B=>{B in F&&(I[B]=F[B])}),I};return()=>Se("div",{ref:o,class:E.value},[a.default&&a.default(),...f.value.map(M=>Se(k(M),{key:M.id,...$(M)}))])}};function b1(t,e){return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"default")],2)}const v1={name:"f7-login-screen",render:b1,props:{opened:Boolean,animate:{type:Boolean,default:void 0},containerEl:{type:[String,Object],default:void 0},..._e},emits:["loginscreen:open","loginscreen:opened","loginscreen:close","loginscreen:closed","update:opened"],setup(t,e){let{emit:n}=e;const a=He(null);let r=t.opened,s=!1;const i=He(null),o=p=>{r=!0,s=!1,n("loginscreen:open",p),n("update:opened",!0)},l=p=>{n("loginscreen:opened",p)},c=p=>{r=!1,s=!0,n("loginscreen:close",p)},d=p=>{s=!1,n("loginscreen:closed",p),n("update:opened",!1)};Rt(()=>t.opened,p=>{a.value&&(p?a.value.open():a.value.close())}),tt(()=>{i.value&&ht(()=>{const p={el:i.value,on:{open:o,opened:l,close:c,closed:d}};typeof t.animate<"u"&&(p.animate=t.animate),typeof t.containerEl<"u"&&(p.containerEl=t.containerEl),a.value=Y.loginScreen.create(p),t.opened&&a.value.open(!1)})}),ct(()=>{a.value&&a.value.destroy(),a.value=null});const u=me(()=>Re("login-screen",Ar({isOpened:r,isClosing:s}),Ve(t)));return{elRef:i,classes:u}}},w1={name:"f7-sheet",props:{opened:Boolean,animate:{type:Boolean,default:void 0},top:Boolean,bottom:Boolean,position:String,backdrop:{type:Boolean,default:void 0},backdropEl:{type:[String,Object],default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},closeByOutsideClick:{type:Boolean,default:void 0},closeOnEscape:{type:Boolean,default:void 0},push:Boolean,swipeToClose:{type:Boolean,default:void 0},swipeToStep:{type:Boolean,default:void 0},swipeHandler:{type:[String,Object],default:void 0},containerEl:{type:[String,Object],default:void 0},breakpoints:{type:Array,default:()=>{}},backdropBreakpoint:{type:Number,default:void 0},pushBreakpoint:{type:Number,default:void 0},..._e},emits:["sheet:stepprogress","sheet:stepopen","sheet:stepclose","sheet:open","sheet:opened","sheet:close","sheet:closed","sheet:breakpoint","update:opened"],setup(t,e){let{emit:n,slots:a}=e,r=null,s=t.opened,i=!1;const o=He(null),l=(g,v)=>{n("sheet:breakpoint",g,v)},c=(g,v)=>{n("sheet:stepprogress",g,v)},d=g=>{n("sheet:stepopen",g)},u=g=>{n("sheet:stepclose",g)},p=g=>{s=!0,i=!1,n("sheet:open",g),n("update:opened",!0)},f=g=>{n("sheet:opened",g)},h=g=>{s=!1,i=!0,n("sheet:close",g)},m=g=>{i=!1,n("sheet:closed",g),n("update:opened",!1)};tt(()=>{if(!o.value)return;const g={el:o.value,on:{open:p,opened:f,close:h,closed:m,stepOpen:d,stepClose:u,stepProgress:c,breakpoint:l}},{animate:v,backdrop:y,backdropEl:E,closeByBackdropClick:k,closeByOutsideClick:$,closeOnEscape:M,swipeToClose:x,swipeToStep:F,swipeHandler:S,containerEl:I,breakpoints:B,backdropBreakpoint:P,pushBreakpoint:L}=t;typeof v<"u"&&(g.animate=v),typeof y<"u"&&(g.backdrop=y),typeof E<"u"&&(g.backdropEl=E),typeof k<"u"&&(g.closeByBackdropClick=k),typeof $<"u"&&(g.closeByOutsideClick=$),typeof M<"u"&&(g.closeOnEscape=M),typeof x<"u"&&(g.swipeToClose=x),typeof F<"u"&&(g.swipeToStep=F),typeof S<"u"&&(g.swipeHandler=S),typeof I<"u"&&(g.containerEl=I),typeof B<"u"&&(g.breakpoints=B),typeof P<"u"&&(g.backdropBreakpoint=P),typeof L<"u"&&(g.pushBreakpoint=L),ht(()=>{r=Y.sheet.create(g),t.opened&&r.open(!1)})}),ct(()=>{r&&r.destroy(),r=null}),Rt(()=>t.opened,g=>{r&&(g?r.open():r.close())}),["closeByBackdropClick","closeByOutsideClick","closeOnEscape","swipeToClose"].forEach(g=>{Rt(()=>t[g],v=>{r&&(r.params[g]=v)})});const b=me(()=>{let g="bottom";return t.position?g=t.position:t.top?g="top":t.bottom&&(g="bottom"),Re("sheet-modal",`sheet-modal-${g}`,{"sheet-modal-push":t.push},Ar({isOpened:s,isClosing:i}),Ve(t))}),w="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index panel".split(" ").map(g=>`f7-${g}`);return()=>{const g=[],v=[];return a.default&&a.default().forEach(y=>{if(typeof y>"u")return;const E=y.type&&y.type.name?y.type.name:y.type;w.indexOf(E)>=0?g.push(y):v.push(y)}),Se("div",{class:b.value,ref:o},[g,a.fixed&&a.fixed(),Se("div",{class:"sheet-modal-inner"},[v,a.static&&a.static()])])}}},y1={key:0,class:"popover-arrow"},E1={class:"popover-inner"};function C1(t,e){return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[t.arrow!==!1?(ge(),ke("div",y1)):We("",!0),Ne("div",E1,[Te(t.$slots,"default")])],2)}const xc={name:"f7-popover",render:C1,props:{opened:Boolean,animate:{type:Boolean,default:void 0},targetEl:{type:[String,Object],default:void 0},arrow:{type:Boolean,default:void 0},backdrop:{type:Boolean,default:void 0},backdropEl:{type:[String,Object],default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},closeByOutsideClick:{type:Boolean,default:void 0},closeOnEscape:{type:Boolean,default:void 0},containerEl:{type:[String,Object],default:void 0},verticalPosition:{type:String,default:void 0},..._e},emits:["popover:open","popover:opened","popover:close","popover:closed","update:opened"],setup(t,e){let{emit:n}=e;const a=He(null);let r=t.opened,s=!1;const i=He(null),o=p=>{r=!0,s=!1,n("popover:open",p),n("update:opened",!0)},l=p=>{n("popover:opened",p)},c=p=>{r=!1,s=!0,n("popover:close",p)},d=p=>{s=!1,n("popover:closed",p),n("update:opened",!1)};Rt(()=>t.opened,p=>{a.value&&(p?a.value.open():a.value.close())}),tt(()=>{if(!i.value)return;const p={el:i.value,on:{open:o,opened:l,close:c,closed:d}},{targetEl:f,closeByBackdropClick:h,closeByOutsideClick:m,closeOnEscape:b,arrow:w,backdrop:g,backdropEl:v,containerEl:y,verticalPosition:E}=t;typeof f<"u"&&(p.targetEl=f),typeof h<"u"&&(p.closeByBackdropClick=h),typeof m<"u"&&(p.closeByOutsideClick=m),typeof b<"u"&&(p.closeOnEscape=b),typeof w<"u"&&(p.arrow=w),typeof g<"u"&&(p.backdrop=g),typeof v<"u"&&(p.backdropEl=v),typeof y<"u"&&(p.containerEl=y),typeof E<"u"&&(p.verticalPosition=E),ht(()=>{a.value=Y.popover.create(p),t.opened&&a.value.open(f,!1)})}),ct(()=>{a.value&&a.value.destroy(),a.value=null});const u=me(()=>Re("popover",Ar({isOpened:r,isClosing:s}),Ve(t)));return{elRef:i,classes:u}}},k1={key:0,class:"panel-resize-handler"};function $1(t,e){return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"default"),t.resizable?(ge(),ke("div",k1)):We("",!0)],2)}const x1={name:"f7-panel",render:$1,props:{side:String,effect:String,cover:Boolean,reveal:Boolean,push:Boolean,floating:Boolean,left:Boolean,right:Boolean,opened:Boolean,resizable:Boolean,backdrop:{type:Boolean,default:!0},backdropEl:{type:String,default:void 0},containerEl:{type:String,default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},visibleBreakpoint:{type:Number,default:void 0},collapsedBreakpoint:{type:Number,default:void 0},swipe:Boolean,swipeNoFollow:Boolean,swipeOnlyClose:Boolean,swipeActiveArea:{type:Number,default:0},swipeThreshold:{type:Number,default:0},..._e},emits:["panel:open","panel:opened","panel:close","panel:closed","click","panel:backdropclick","panel:swipe","panel:swipeopen","panel:breakpoint","panel:collapsedbreakpoint","panel:resize","update:opened"],setup(t,e){let{emit:n}=e,a=null;const r=He(null);let s=!1,i=!1,o=!1,l=!1;const c=y=>{s=!0,i=!1,n("panel:open",y),n("update:opened",!0)},d=y=>{n("panel:opened",y)},u=y=>{s=!1,i=!0,n("panel:close",y)},p=y=>{i=!1,n("panel:closed",y),n("update:opened",!1)},f=y=>{n("click",y),n("panel:backdropclick",y)},h=y=>{n("panel:swipe",y)},m=y=>{n("panel:swipeopen",y)},b=y=>{l=!0,o=!1,n("panel:breakpoint",y)},w=y=>{l=!1,o=!0,n("panel:collapsedbreakpoint",y)},g=function(){for(var y=arguments.length,E=new Array(y),k=0;kt.resizable,y=>{a&&(y?a.enableResizable():a.disableResizable())}),Rt(()=>t.opened,y=>{a&&(y?a.open():a.close())}),tt(()=>{ht(()=>{const y=Y.$;if(!y)return;y(".panel-backdrop").length===0&&y('
').insertBefore(r.value);const E=Ra({el:r.value,resizable:t.resizable,backdrop:t.backdrop,backdropEl:t.backdropEl,containerEl:t.containerEl,closeByBackdropClick:t.containerEl,visibleBreakpoint:t.visibleBreakpoint,collapsedBreakpoint:t.collapsedBreakpoint,swipe:t.swipe,swipeNoFollow:t.swipeNoFollow,swipeOnlyClose:t.swipeOnlyClose,swipeActiveArea:t.swipeActiveArea,swipeThreshold:t.swipeThreshold,on:{open:c,opened:d,close:u,closed:p,backdropClick:f,swipe:h,swipeOpen:m,collapsedBreakpoint:w,breakpoint:b,resize:g}});a=Y.panel.create(E),t.opened&&a.open(!1)})}),ct(()=>{a&&a.destroy&&a.destroy(),a=null});const v=me(()=>{const y=t.side||(t.left?"left":"right"),E=t.effect||(t.reveal?"reveal":t.push?"push":t.floating?"floating":"cover");return Re("panel",{"panel-in":s&&!i&&!l,"panel-in-breakpoint":l,"panel-in-collapsed":o,"panel-resizable":t.resizable,[`panel-${y}`]:y,[`panel-${E}`]:E},Ve(t))});return{elRef:r,classes:v}}},S1=(t,e,n)=>{const a={url:e,route:{path:e,options:{...n,openIn:void 0}}},r={...n};if(n.openIn==="popup"&&(r.component={setup(){return()=>Se(m1,{class:"popup-router-open-in","data-url":e},[Se(Xn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.popup=r),n.openIn==="loginScreen"&&(r.component={setup(){return()=>Se(v1,{class:"login-screen-router-open-in","data-url":e},[Se(Xn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.loginScreen=r),n.openIn==="sheet"&&(r.component={setup(){return()=>Se(w1,{class:"sheet-modal-router-open-in","data-url":e},[Se(Xn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.sheet=r),n.openIn==="popover"&&(r.targetEl=n.clickedEl||n.targetEl,r.component={setup(){return()=>Se(xc,{class:"popover-router-open-in","data-url":e,targetEl:n.clickedEl||n.targetEl},[Se(Xn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.popover=r),n.openIn.indexOf("panel")>=0){const s=n.openIn.split(":"),i=s[1]||"left",o=s[2]||"cover";r.component={setup(){return()=>Se(x1,{class:"panel-router-open-in","data-url":e,side:i,effect:o},[Se(Xn,{linksView:t.view.selector,url:e,ignoreOpenIn:!0})])}},a.route.panel=r}return t.navigate(a)},ho=t=>{const e=[];for(let n=0;nt.length!==e.length?!1:new Set([...t,...e]).size===t.length,P1={proto:{openIn(t,e,n){return S1(t,e,n)},pageComponentLoader(t){let{routerEl:e,component:n,options:a,resolve:r,reject:s}=t;const i=this,o=i.id,l=e;let c;if(yt.views.forEach(h=>{(h.el&&h.el===e||h.routerId&&h.routerId===o)&&(c=h)}),!c){s();return}const d={component:n,id:sr(),props:dn({f7route:a.route,f7router:i},a.route.params,a.props||{})};let u;const p=ho(l);function f(h){if(h!==c||u)return;const m=ho(l);if(T1(p,m))return;Ft.off("viewRouterDidUpdate",f);const b=l.children[l.children.length-1];d.el=b,r(b),u=!0}Ft.on("viewRouterDidUpdate",f),c.pages.push(d),c.setPages(c.pages)},removePage(t){if(!t)return;const e=this;let n;if("length"in t&&t[0]?n=t[0].f7Page:n=t.f7Page,n&&n.route&&n.route.route&&n.route.route.keepAlive){e.app.$(t).remove();return}let a;yt.views.forEach(i=>{i.el&&i.el===e.el&&(a=i)});let r;if("length"in t){if(t.length===0)return;r=t[0]}else r=t;if(!r)return;let s;a.pages.forEach((i,o)=>{i.el===r&&(s=!0,a.pages.splice(o,1),a.setPages(a.pages))}),s||r.parentNode.removeChild(r)},tabComponentLoader(t){let{tabEl:e,component:n,options:a,resolve:r,reject:s}=t===void 0?{}:t;const i=this;e||s();let o;if(yt.tabs.forEach(p=>{p.el&&p.el===e&&(o=p)}),!o){s();return}const c={id:sr(),component:n,props:dn({f7route:a.route,f7router:i},a.route.route&&a.route.route.tab&&a.route.route.tab.options&&a.route.route.tab.options.props||{},a.route.params,a.props||{})};let d;function u(p){if(p!==o||d)return;Ft.off("tabRouterDidUpdate",u);const f=e.children[0];r(f),d=!0}Ft.on("tabRouterDidUpdate",u),o.setTabContent(c)},removeTabContent(t){if(!t)return;let e;if(yt.tabs.forEach(n=>{n.el&&n.el===t&&(e=n)}),!e){t.innerHTML="";return}e.setTabContent(null)},modalComponentLoader(t){let{component:e,options:n,resolve:a,reject:r}=t===void 0?{}:t;const s=this,i=yt.modals;if(!i){r();return}const o={component:e,id:sr(),props:dn({f7route:n.route,f7router:s},n.route.params,n.props||{})};let l;function c(){if(l)return;Ft.off("modalsRouterDidUpdate",c);const d=i.el.children[i.el.children.length-1];o.el=d,a(d),l=!0}Ft.on("modalsRouterDidUpdate",c),i.modals.push(o),i.setModals(i.modals)},removeModal(t){const e=yt.modals;if(!e)return;let n;e.modals.forEach(a=>{a.el===t&&(n=a)}),e.modals.splice(e.modals.indexOf(n),1),e.setModals(e.modals)}}},Ps={name:"vuePlugin",installed:!1,install(t){if(t===void 0&&(t={}),Ps.installed)return;Ps.installed=!0,f1();const{theme:e,userAgent:n}=t;if(e==="md"&&(St.md=!0),e==="ios"&&(St.ios=!0),(typeof window>"u"?!!n:!0)&&(!e||e==="auto")){const r=nt.getDevice({userAgent:n},!0);St.ios=!!r.ios,St.md=!St.ios}ht(()=>{kc()}),nt.Router.use(P1)}};function M1(t,e){return ge(),ke("div",{class:Le(t.classes)},[Te(t.$slots,"default")],2)}const B1={name:"f7-accordion-content",render:M1,props:{..._e},setup(t){return{classes:me(()=>Re("accordion-item-content",Ve(t)))}}},I1={name:"f7-routable-modals",setup(){const t=He(null),e=He([]),n=He(null);tt(()=>{n.value={modals:e,el:t.value,setModals(s){s.forEach(i=>{i.component=Me(i.component)}),e.value=[...s]}},yt.modals=n.value}),Pr(()=>{!n.value||!Y||Ft.emit("modalsRouterDidUpdate",n.value)}),ct(()=>{n.value&&(yt.modals=null,n.value=null)});const a=s=>Me(s.component),r=s=>{const{component:i,props:o}=s;let l=[];const c={};return i&&i.props&&(l=Object.keys(i.props)),l.forEach(d=>{d in o&&(c[d]=o[d])}),c};return()=>Se("div",{ref:t,class:"framework7-modals"},[...e.value.map(s=>Se(a(s),{key:s.id,...r(s)}))])}};function O1(t,e){const n=De("routable-modals");return ge(),ke("div",{id:"framework7-root",ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"default"),xe(n)],2)}const A1={name:"f7-app",render:O1,components:{RoutableModals:I1},inheritAttrs:!1,props:{name:{type:String,default:void 0},theme:{type:String,default:void 0},routes:{type:Array,default:()=>[]},store:Object,darkMode:{type:[Boolean,String],default:!1},colors:{type:Object,default:()=>{}},lazyModulesPath:{type:String,default:void 0},initOnDeviceReady:{type:Boolean,default:void 0},iosTranslucentBars:{type:Boolean,default:void 0},iosTranslucentModals:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},accordion:{type:Object,default:()=>{}},actions:{type:Object,default:()=>{}},areaChart:{type:Object,default:()=>{}},autocomplete:{type:Object,default:()=>{}},calendar:{type:Object,default:()=>{}},card:{type:Object,default:()=>{}},colorPicker:{type:Object,default:()=>{}},dialog:{type:Object,default:()=>{}},form:{type:Object,default:()=>{}},gauge:{type:Object,default:()=>{}},infiniteScroll:{type:Object,default:()=>{}},input:{type:Object,default:()=>{}},listIndex:{type:Object,default:()=>{}},loginScreen:{type:Object,default:()=>{}},messagebar:{type:Object,default:()=>{}},messages:{type:Object,default:()=>{}},navbar:{type:Object,default:()=>{}},notification:{type:Object,default:()=>{}},panel:{type:Object,default:()=>{}},photoBrowser:{type:Object,default:()=>{}},picker:{type:Object,default:()=>{}},pieChart:{type:Object,default:()=>{}},popover:{type:Object,default:()=>{}},popup:{type:Object,default:()=>{}},range:{type:Object,default:()=>{}},searchbar:{type:Object,default:()=>{}},sheet:{type:Object,default:()=>{}},smartSelect:{type:Object,default:()=>{}},sortable:{type:Object,default:()=>{}},statusbar:{type:Object,default:()=>{}},stepper:{type:Object,default:()=>{}},swipeout:{type:Object,default:()=>{}},textEditor:{type:Object,default:()=>{}},toast:{type:Object,default:()=>{}},toolbar:{type:Object,default:()=>{}},tooltip:{type:Object,default:()=>{}},view:{type:Object,default:()=>{}},virtualList:{type:Object,default:()=>{}},clicks:{type:Object,default:()=>{}},serviceWorker:{type:Object,default:()=>{}},touch:{type:Object,default:()=>{}},..._e},setup(t){const e=He(null),n=Me(t.routes);return(!Y||typeof window>"u")&&fo(e.value,Ra({...t,routes:n}),!1),tt(()=>{const r=e.value&&e.value.parentNode;if(typeof document<"u"&&r&&r!==document.body&&r.parentNode===document.body&&(r.style.height="100%"),Y){Y.init(e.value);return}fo(e.value,Ra({...t,routes:n}),!0)}),{classes:me(()=>Re("framework7-root",Ve(t))),elRef:e}}},Va=(t,e)=>{let n=null;const{tooltip:a,tooltipTrigger:r}=e;tt(()=>{t.value&&a&&ht(()=>{n=Y.tooltip.create({targetEl:t.value,text:a,trigger:r})})}),ct(()=>{n&&n.destroy&&(n.destroy(),n=null)}),Rt(()=>e.tooltip,s=>{if(!s&&n){n.destroy(),n=null;return}if(s&&!n&&Y){n=Y.tooltip.create({targetEl:t.value,text:s,trigger:r});return}!s||!n||n.setText(s)})};function D1(t,e){return ge(),ke("span",{ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"default")],2)}const fi={name:"f7-badge",render:D1,props:{tooltip:String,tooltipTrigger:String,..._e},setup(t){const e=He(null);Va(e,t);const n=me(()=>Re("badge",Ve(t)));return{elRef:e,classes:n}}};function L1(t,e){return ge(),ke("div",{class:Le(t.classes)},[Te(t.$slots,"default")],2)}const R1={name:"f7-block-header",render:L1,props:{..._e},setup(t){return{classes:me(()=>Re("block-header",Ve(t)))}}};function H1(t,e){return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"default")],2)}const F1={name:"f7-block",render:H1,props:{inset:Boolean,insetIos:Boolean,insetMd:Boolean,xsmallInset:Boolean,xsmallInsetIos:Boolean,xsmallInsetMd:Boolean,smallInset:Boolean,smallInsetIos:Boolean,smallInsetMd:Boolean,mediumInset:Boolean,mediumInsetIos:Boolean,mediumInsetMd:Boolean,largeInset:Boolean,largeInsetIos:Boolean,largeInsetMd:Boolean,xlargeInset:Boolean,xlargeInsetIos:Boolean,xlargeInsetMd:Boolean,strong:Boolean,strongIos:Boolean,strongMd:Boolean,outline:Boolean,outlineIos:Boolean,outlineMd:Boolean,tabs:Boolean,tab:Boolean,tabActive:Boolean,accordionList:Boolean,accordionOpposite:Boolean,..._e},emits:["tab:hide","tab:show"],setup(t,e){let{emit:n}=e;const a=He(null);Dr(a,n);const r=me(()=>{const{inset:s,insetIos:i,insetMd:o,xsmallInset:l,xsmallInsetIos:c,xsmallInsetMd:d,smallInset:u,smallInsetIos:p,smallInsetMd:f,mediumInset:h,mediumInsetIos:m,mediumInsetMd:b,largeInset:w,largeInsetIos:g,largeInsetMd:v,xlargeInset:y,xlargeInsetIos:E,xlargeInsetMd:k,strong:$,strongIos:M,strongMd:x,outline:F,outlineIos:S,outlineMd:I,accordionList:B,accordionOpposite:P,tabs:L,tab:V,tabActive:H}=t;return Re("block",{inset:s,"inset-ios":i,"inset-md":o,"xsmall-inset":l,"xsmall-inset-ios":c,"xsmall-inset-md":d,"small-inset":u,"small-inset-ios":p,"small-inset-md":f,"medium-inset":h,"medium-inset-ios":m,"medium-inset-md":b,"large-inset":w,"large-inset-ios":g,"large-inset-md":v,"xlarge-inset":y,"xlarge-inset-ios":E,"xlarge-inset-md":k,"block-strong":$,"block-strong-ios":M,"block-strong-md":x,"accordion-list":B,"accordion-opposite":P,tabs:L,tab:V,"tab-active":H,"block-outline":F,"block-outline-md":I,"block-outline-ios":S},Ve(t))});return{elRef:a,classes:r}}},Sc=function(t){t===void 0&&(t={});const{icon:e,iconMaterial:n,iconF7:a,iconMd:r,iconIos:s,iconColor:i,iconSize:o,iconBadge:l,badgeColor:c,iconBadgeColor:d}=t;return e||n||a||r||s?{props:{material:n,f7:a,icon:e,md:r,ios:s,color:i,size:o},badge:l||l===0?{props:{color:c||d},content:l}:null}:null},hi=function(t,e){let{routeProps:n}=e===void 0?{}:e;tt(()=>{t.value&&n&&(t.value.f7RouteProps=n)}),Pr(()=>{t.value&&n?t.value.f7RouteProps=n:t.value&&t.value.f7RouteProps&&delete t.value.f7RouteProps})},_a=()=>{const t=He(Y?St:null);return Y||ht(()=>{t.value=St}),t},z1={key:0,class:"preloader-inner"},N1=Ne("svg",{viewBox:"0 0 36 36"},[Ne("circle",{cx:"18",cy:"18",r:"16"})],-1),V1=[N1],_1={key:1,class:"preloader-inner"},j1=ku('',8),q1=[j1],W1={key:2,class:"preloader-inner"};function Y1(t,e){return ge(),ke("div",{class:Le(t.classes),style:xn(t.style)},[t.theme&&t.theme.md?(ge(),ke("span",z1,V1)):t.theme&&t.theme.ios?(ge(),ke("span",_1,q1)):t.theme?We("",!0):(ge(),ke("span",W1))],6)}const Tc={name:"f7-preloader",render:Y1,props:{size:[Number,String],..._e},setup(t){const e=_a(),n=me(()=>Re("preloader",{preloader:!0},Ve(t))),a=me(()=>{const r={};let s=t.size;return s&&typeof s=="string"&&s.indexOf("px")>=0&&(s=s.replace("px","")),s&&(r.width=`${s}px`,r.height=`${s}px`,r["--f7-preloader-size"]=`${s}px`),r});return{classes:n,style:a,theme:e}}};function X1(t,e){return ge(),ke("i",{ref:"elRef",style:xn({fontSize:t.sizeComputed,width:t.sizeComputed,height:t.sizeComputed}),class:Le(t.classesComputed)},[zt(Tt(t.iconText)+" ",1),Te(t.$slots,"default")],6)}const Pc={name:"f7-icon",render:X1,props:{material:String,f7:String,icon:String,ios:String,md:String,tooltip:String,tooltipTrigger:String,size:[String,Number],..._e},setup(t){const e=He(null),n=_a();Va(e,t);const a=me(()=>{const{ios:i,md:o,f7:l,material:c,icon:d}=t;let u={icon:!0},p;if(n.value&&n.value.ios?p=i:n.value&&n.value.md&&(p=o),p){const f=p.split(":"),h=f[0],m=f[1];(h==="material"||h==="f7")&&(u["material-icons"]=h==="material",u["f7-icons"]=h==="f7"),h==="icon"&&(u[m]=!0),d&&(u[d]=!0)}else u={icon:!0,"material-icons":c,"f7-icons":l},d&&(u[d]=!0);return Re(u,Ve(t))}),r=me(()=>{let i=t.size;return(typeof t.size=="number"||parseFloat(t.size)===t.size*1)&&(i=`${t.size}px`),i}),s=me(()=>{const{ios:i,md:o,f7:l,material:c}=t;let d=c||l;return o&&n.value&&n.value.md&&(o.indexOf("material:")>=0||o.indexOf("f7:")>=0)?d=o.split(":")[1]:i&&n.value&&n.value.ios&&(i.indexOf("material:")>=0||i.indexOf("f7:")>=0)&&(d=i.split(":")[1]),d});return{elRef:e,sizeComputed:r,classesComputed:a,iconText:s}}};function U1(t,e){const n=De("f7-badge"),a=De("f7-icon");return ge(),at(a,Ei(Yl(t.icon.props)),{default:Ae(()=>[t.icon.badge?(ge(),at(n,Ei(Fa({key:0},t.icon.badge.props)),{default:Ae(()=>[zt(Tt(t.icon.badge.content),1)]),_:1},16)):We("",!0)]),_:1},16)}const Mc={name:"f7-use-icon",render:U1,components:{f7Icon:Pc,f7Badge:fi},props:{icon:Object}},G1={key:1},K1={key:1};function Q1(t,e){const n=De("f7-preloader"),a=De("f7-use-icon");return ge(),at($l(t.tag),Fa({ref:"elRef",class:t.classesComputed},t.attrs),{default:Ae(()=>[t.preloader?(ge(),ke(ut,{key:0},[xe(n,{size:t.preloaderSize,color:t.preloaderColor},null,8,["size","color"]),Ne("span",null,[t.icon?(ge(),at(a,{key:0,icon:t.icon},null,8,["icon"])):We("",!0),t.text?(ge(),ke("span",G1,Tt(t.text),1)):We("",!0),Te(t.$slots,"default")])],64)):(ge(),ke(ut,{key:1},[t.icon?(ge(),at(a,{key:0,icon:t.icon},null,8,["icon"])):We("",!0),t.text?(ge(),ke("span",K1,Tt(t.text),1)):We("",!0),Te(t.$slots,"default")],64))]),_:3},16,["class"])}const J1={name:"f7-button",render:Q1,components:{f7Preloader:Tc,f7UseIcon:Mc},props:{text:String,tabLink:[Boolean,String],tabLinkActive:Boolean,type:String,href:{type:[String,Boolean],default:"#"},target:String,round:Boolean,roundMd:Boolean,roundIos:Boolean,fill:Boolean,fillMd:Boolean,fillIos:Boolean,tonal:Boolean,tonalMd:Boolean,tonalIos:Boolean,large:Boolean,largeMd:Boolean,largeIos:Boolean,small:Boolean,smallMd:Boolean,smallIos:Boolean,raised:Boolean,raisedMd:Boolean,raisedIos:Boolean,outline:Boolean,outlineMd:Boolean,outlineIos:Boolean,active:Boolean,disabled:Boolean,tooltip:String,tooltipTrigger:String,preloader:Boolean,preloaderSize:[Number,String],preloaderColor:String,loading:Boolean,...$c,..._e,...di,...oi},setup(t){const e=He(null);Va(e,t),hi(e,t);const n=me(()=>Sc(t)),a=me(()=>t.type==="submit"||t.type==="reset"||t.type==="button"?"button":"a"),r=me(()=>{const{href:i,tabLink:o,target:l,type:c}=t;let d=i;return i===!0&&(d="#"),(i===!1||a.value==="button")&&(d=void 0),dn({href:d,target:l,type:c,"data-tab":ze(o)&&o||void 0},li(t),ui(t))}),s=me(()=>{const{tabLink:i,tabLinkActive:o,round:l,roundMd:c,roundIos:d,fill:u,fillMd:p,fillIos:f,tonal:h,tonalMd:m,tonalIos:b,large:w,largeMd:g,largeIos:v,small:y,smallMd:E,smallIos:k,raised:$,raisedMd:M,raisedIos:x,outline:F,outlineMd:S,outlineIos:I,active:B,disabled:P,preloader:L,loading:V}=t;return Re("button",{"tab-link":i||i==="","tab-link-active":o,"button-round":l,"button-round-ios":d,"button-round-md":c,"button-fill":u,"button-fill-ios":f,"button-fill-md":p,"button-tonal":h,"button-tonal-ios":b,"button-tonal-md":m,"button-large":w,"button-large-ios":v,"button-large-md":g,"button-small":y,"button-small-ios":k,"button-small-md":E,"button-raised":$,"button-raised-ios":x,"button-raised-md":M,"button-active":B,"button-outline":F,"button-outline-ios":I,"button-outline-md":S,"button-preloader":L,"button-loading":V,disabled:P},Ve(t),ci(t),pi(t))});return{tag:a,elRef:e,attrs:r,classesComputed:s,icon:n}}},Bc=(t,e,n)=>{let a;tt(()=>{ht(()=>{if(t.smartSelect){const r=dn({el:n()},t.smartSelectParams||{});a=Y.smartSelect.create(r),e(a)}})}),ct(()=>{a&&a.destroy&&a.destroy(),a=null,e(a)})};function Z1(t,e){const n=De("f7-use-icon"),a=De("f7-badge");return ge(),ke("a",Fa({ref:"elRef",class:t.classes},t.attrs),[t.icon?(ge(),at(n,{key:0,icon:t.icon},null,8,["icon"])):We("",!0),t.text?(ge(),ke("span",{key:1,class:Le(t.isTabbarIcons?"tabbar-label":"")},[zt(Tt(t.text)+" ",1),t.badge?(ge(),at(a,{key:0,color:t.badgeColor},{default:Ae(()=>[zt(Tt(t.badge),1)]),_:1},8,["color"])):We("",!0)],2)):We("",!0),Te(t.$slots,"default")],16)}const Ic={name:"f7-link",render:Z1,components:{f7Badge:fi,f7UseIcon:Mc},props:{noLinkClass:Boolean,text:String,tabLink:[Boolean,String],tabLinkActive:Boolean,tabbarLabel:Boolean,iconOnly:Boolean,badge:[String,Number],badgeColor:[String],href:{type:[String,Boolean],default:"#"},target:String,tooltip:String,tooltipTrigger:String,smartSelect:Boolean,smartSelectParams:Object,...$c,..._e,...di,...oi},setup(t,e){let{slots:n}=e;const a=He(null);let r=null;Va(a,t),hi(a,t),Bc(t,d=>{r=d},()=>a.value);const s=ea("TabbarContext",{value:{}}),i=me(()=>t.tabbarLabel||s.value.tabbarHasIcons),o=me(()=>{const{href:d,tabLink:u,target:p}=t;let f=d;return d===!0&&(f="#"),d===!1&&(f=void 0),{href:f,target:p,"data-tab":ze(u)&&u||void 0,...li(t),...ui(t)}}),l=me(()=>{const{iconOnly:d,text:u,noLinkClass:p,tabLink:f,tabLinkActive:h,smartSelect:m}=t;let b;const w=n&&n.default;return d||!u&&!w?b=!0:b=!1,Re({link:!(p||i.value),"icon-only":b,"tab-link":f||f==="","tab-link-active":h,"smart-select":m},Ve(t),ci(t),pi(t))}),c=me(()=>Sc(t));return{elRef:a,icon:c,isTabbarIcons:i,attrs:o,classes:l,f7SmartSelect:r}}},eE=function(t){let{props:e,slots:n,inputElRef:a,onChange:r,onClick:s,isMediaComputed:i,isSortableComputed:o,isSortableOppositeComputed:l,itemContentClasses:c}=t===void 0?{}:t;const{radio:d,checkbox:u,value:p,name:f,readonly:h,disabled:m,checked:b,required:w,media:g,header:v,footer:y,title:E,subtitle:k,text:$,after:M,badge:x,badgeColor:F,swipeout:S,sortable:I,accordionItem:B}=e;let P,L,V,H,D,O,_,N,G,ee,X,se,ne;if((d||u)&&(ee=Se("input",{ref:a,value:p,name:f,checked:b,readonly:h,disabled:m,required:w,type:d?"radio":"checkbox",onChange:r}),X=Se("i",{class:`icon icon-${d?"radio":"checkbox"}`})),g||n.media){let le;g&&(le=Se("img",{src:g})),G=Se("div",{class:"item-media"},[le,n.media&&n.media()])}return(v||n.header)&&(se=Se("div",{class:"item-header"},[v,n.header&&n.header()])),(y||n.footer)&&(ne=Se("div",{class:"item-footer"},[y,n.footer&&n.footer()])),(E||n.title||!i.value&&se||!i.value&&ne)&&(P=Se("div",{class:"item-title"},[!i.value&&se,E,n.title&&n.title(),!i.value&&ne])),(k||n.subtitle)&&(_=Se("div",{class:"item-subtitle"},[k,n.subtitle&&n.subtitle()])),($||n.text)&&(N=Se("div",{class:"item-text"},[$,n.text&&n.text()])),(M||x||n.after)&&(M&&(V=Se("span",[M])),x&&(H=Se(fi,{color:F},()=>x)),L=Se("div",{class:"item-after"},[n["after-start"]&&n["after-start"](),V,H,n.after&&n.after(),n["after-end"]&&n["after-end"]()])),i.value?(O=Se("div",{class:"item-title-row"},[n["before-title"]&&n["before-title"](),P,n["after-title"]&&n["after-title"](),L]),D=Se("div",{class:"item-inner"},[n["inner-start"]&&n["inner-start"],se,O,_,N,S||B?null:n.default&&n.default(),n.inner&&n.inner(),ne,n["inner-end"]&&n["inner-end"]])):D=Se("div",{class:"item-inner"},[n["inner-start"]&&n["inner-start"](),n["before-title"]&&n["before-title"](),P,n["after-title"]&&n["after-title"](),L,S||B?null:n.default&&n.default(),n.inner&&n.inner(),n["inner-end"]&&n["inner-end"]()]),Se(u||d?"label":"div",{class:c.value,onClick:s},[o.value&&I!==!1&&l.value&&Se("div",{class:"sortable-handler"}),n["content-start"]&&n["content-start"](),ee,X,G,D,n.content&&n.content(),n["content-end"]&&n["content-end"]()])},tE={name:"f7-list-item",props:{title:[String,Number],text:[String,Number],media:String,subtitle:[String,Number],header:[String,Number],footer:[String,Number],tooltip:String,tooltipTrigger:String,link:[Boolean,String],target:String,tabLink:[Boolean,String],tabLinkActive:Boolean,selected:Boolean,after:[String,Number],badge:[String,Number],badgeColor:String,mediaItem:Boolean,mediaList:Boolean,groupTitle:Boolean,swipeout:Boolean,swipeoutOpened:Boolean,sortable:{type:Boolean,default:void 0},sortableOpposite:{type:Boolean,default:void 0},accordionItem:Boolean,accordionItemOpened:Boolean,smartSelect:Boolean,smartSelectParams:Object,noChevron:Boolean,chevronCenter:Boolean,checkbox:Boolean,radio:Boolean,radioIcon:String,checkboxIcon:String,checked:Boolean,indeterminate:Boolean,name:String,value:{type:[String,Number,Array],default:void 0},readonly:Boolean,required:Boolean,disabled:Boolean,virtualListIndex:Number,..._e,...di,...oi},emits:["click","swipeout","swipeout:overswipeenter","swipeout:overswipeexit","swipeout:deleted","swipeout:delete","swipeout:close","swipeout:closed","swipeout:open","swipeout:opened","accordion:beforeclose","accordion:close","accordion:closed","accordion:beforeopen","accordion:open","accordion:opened","change","update:checked"],setup(t,e){let{slots:n,emit:a}=e;const r=ea("ListContext",{value:{listIsMedia:!1,listIsSortable:!1,listIsSortableOpposite:!1,listIsSimple:!1}}),s=me(()=>r.value.listIsMedia||!1),i=me(()=>r.value.listIsSortable||!1),o=me(()=>r.value.listIsSortableOpposite||!1),l=me(()=>r.value.listIsSimple||!1),c=He(null),d=He(null),u=He(null),p=_=>{_.target.tagName.toLowerCase()!=="input"&&a("click",_)},f=_=>{c.value===_&&a("swipeout:overswipeenter")},h=_=>{c.value===_&&a("swipeout:overswipeexit")},m=_=>{c.value===_&&a("swipeout:deleted")},b=_=>{c.value===_&&a("swipeout:delete")},w=_=>{c.value===_&&a("swipeout:close")},g=_=>{c.value===_&&a("swipeout:closed")},v=_=>{c.value===_&&a("swipeout:open")},y=_=>{c.value===_&&a("swipeout:opened")},E=(_,N)=>{c.value===_&&a("swipeout",N)},k=(_,N)=>{c.value===_&&a("accordion:beforeclose",N)},$=_=>{c.value===_&&a("accordion:close")},M=_=>{c.value===_&&a("accordion:closed")},x=(_,N)=>{c.value===_&&a("accordion:beforeopen",N)},F=_=>{c.value===_&&a("accordion:open")},S=_=>{c.value===_&&a("accordion:opened")},I=_=>{a("change",_),a("update:checked",_.target.checked)};Va(c,t),hi(d,t),Bc(t,()=>{},()=>c.value.querySelector("a.smart-select")),Rt(()=>t.swipeoutOpened,_=>{!t.swipeout||!c.value||!Y||(_?Y.swipeout.open(c.value):Y.swipeout.close(c.value))}),tt(()=>{ht(()=>{t.swipeout&&(Y.on("swipeoutOpen",v),Y.on("swipeoutOpened",y),Y.on("swipeoutClose",w),Y.on("swipeoutClosed",g),Y.on("swipeoutDelete",b),Y.on("swipeoutDeleted",m),Y.on("swipeoutOverswipeEnter",f),Y.on("swipeoutOverswipeExit",h),Y.on("swipeout",E)),t.accordionItem&&(Y.on("accordionBeforeOpen",x),Y.on("accordionOpen",F),Y.on("accordionOpened",S),Y.on("accordionBeforeClose",k),Y.on("accordionClose",$),Y.on("accordionClosed",M)),t.swipeout&&t.swipeoutOpened&&Y.swipeout.open(c.value)}),t.checkbox&&u.value&&(u.value.indeterminate=!!t.indeterminate)}),ct(()=>{Y&&(Y.off("swipeoutOpen",v),Y.off("swipeoutOpened",y),Y.off("swipeoutClose",w),Y.off("swipeoutClosed",g),Y.off("swipeoutDelete",b),Y.off("swipeoutDeleted",m),Y.off("swipeoutOverswipeEnter",f),Y.off("swipeoutOverswipeExit",h),Y.off("swipeout",E),Y.off("accordionBeforeOpen",x),Y.off("accordionOpen",F),Y.off("accordionOpened",S),Y.off("accordionBeforeClose",k),Y.off("accordionClose",$),Y.off("accordionClosed",M))}),Rt(()=>t.indeterminate,_=>{u.value&&(u.value.indeterminate=!!_)});const B=me(()=>t.mediaItem||t.mediaList||s.value),P=me(()=>t.sortable===!0||t.sortable===!1?t.sortable:i.value),L=me(()=>P.value&&(t.sortableOpposite||o.value)),V=me(()=>({href:t.link===!0?"":t.link||t.href,target:t.target,"data-tab":ze(t.tabLink)&&t.tabLink||void 0,...li(t),...ui(t)})),H=me(()=>Re({"item-link":!0,"smart-select":t.smartSelect,"tab-link":t.tabLink||t.tabLink==="","tab-link-active":t.tabLinkActive,"item-selected":t.selected},ci(t),pi(t))),D=me(()=>Re("item-content",{"item-checkbox":t.checkbox,"item-radio":t.radio,"item-checkbox-icon-start":t.checkbox&&t.checkboxIcon==="start","item-checkbox-icon-end":t.checkbox&&t.checkboxIcon==="end","item-radio-icon-start":t.radio&&t.radioIcon==="start","item-radio-icon-end":t.radio&&t.radioIcon==="end"},Ve(t))),O=me(()=>Re({"list-group-title":t.groupTitle,"media-item":B.value,swipeout:t.swipeout,"accordion-item":t.accordionItem,"accordion-item-opened":t.accordionItemOpened,disabled:t.disabled&&!(t.radio||t.checkbox),"no-chevron":t.noChevron,"chevron-center":t.chevronCenter,"disallow-sorting":t.sortable===!1},Ve(t)));return()=>{let _,N;if(l.value||(N=eE({props:t,slots:n,inputElRef:u,onChange:I,onClick:t.link||t.href||t.accordionItem||t.smartSelect?void 0:p,isMediaComputed:B,isSortableComputed:P,isSortableOppositeComputed:L,itemContentClasses:D}),(t.link||t.href||t.accordionItem||t.smartSelect)&&(_=Se("a",{ref:d,class:H.value,...V.value,onClick:p},[N]))),t.groupTitle)return Se("li",{ref:c,class:O.value,"data-virtual-list-index":t.virtualListIndex,onClick:p},[t.title,n.default&&n.default()]);if(l.value)return Se("li",{ref:c,class:O.value,onClick:p,"data-virtual-list-index":t.virtualListIndex},[t.title,n.default&&n.default()]);const G=t.link||t.href||t.smartSelect||t.accordionItem?_:N;return Se("li",{ref:c,class:O.value,"data-virtual-list-index":t.virtualListIndex},[n["root-start"]&&n["root-start"](),t.swipeout?Se("div",{class:"swipeout-content"},[G]):G,P.value&&t.sortable!==!1&&!L.value&&Se("div",{class:"sortable-handler"}),(t.swipeout||t.accordionItem)&&n.default(),n.root&&n.root(),n["root-end"]&&n["root-end"]()])}}},nE={name:"f7-list",props:{inset:Boolean,insetIos:Boolean,insetMd:Boolean,xsmallInset:Boolean,xsmallInsetIos:Boolean,xsmallInsetMd:Boolean,smallInset:Boolean,smallInsetIos:Boolean,smallInsetMd:Boolean,mediumInset:Boolean,mediumInsetIos:Boolean,mediumInsetMd:Boolean,largeInset:Boolean,largeInsetIos:Boolean,largeInsetMd:Boolean,xlargeInset:Boolean,xlargeInsetIos:Boolean,xlargeInsetMd:Boolean,strong:Boolean,strongIos:Boolean,strongMd:Boolean,outline:Boolean,outlineIos:Boolean,outlineMd:Boolean,dividers:Boolean,dividersIos:Boolean,dividersMd:Boolean,mediaList:Boolean,sortable:Boolean,sortableTapHold:Boolean,sortableEnabled:Boolean,sortableMoveElements:{type:Boolean,default:void 0},sortableOpposite:Boolean,accordionList:Boolean,accordionOpposite:Boolean,contactsList:Boolean,simpleList:Boolean,linksList:Boolean,menuList:Boolean,noChevron:Boolean,chevronCenter:Boolean,tab:Boolean,tabActive:Boolean,form:Boolean,formStoreData:Boolean,virtualList:Boolean,virtualListParams:Object,..._e},emits:["submit","sortable:enable","sortable:disable","sortable:sort","sortable:move","virtual:itembeforeinsert","virtual:beforeclear","virtual:itemsbeforeinsert","virtual:itemsafterinsert","tab:hide","tab:show"],setup(t,e){let{emit:n,slots:a}=e,r=null;const s=He(null),i=h=>{n("submit",h)},o=h=>{s.value===h&&n("sortable:enable")},l=h=>{s.value===h&&n("sortable:disable")},c=(h,m,b)=>{s.value===b&&n("sortable:sort",m)},d=(h,m)=>{s.value===m&&n("sortable:move",h,m)};Dr(s,n),tt(()=>{ht(()=>{if(Y.on("sortableEnable",o),Y.on("sortableDisable",l),Y.on("sortableSort",c),Y.on("sortableMove",d),!t.virtualList)return;const h=t.virtualListParams||{};!h.renderItem&&!h.renderExternal||(h.items&&(h.items=Me(h.items)),r=Y.virtualList.create(dn({el:s.value,on:{itemBeforeInsert(m,b){n("virtual:itembeforeinsert",this,m,b)},beforeClear(m){n("virtual:beforeclear",this,m)},itemsBeforeInsert(m){n("virtual:itemsbeforeinsert",this,m)},itemsAfterInsert(m){n("virtual:itemsafterinsert",this,m)}}},h)))})}),ct(()=>{Y&&(Y.off("sortableEnable",o),Y.off("sortableDisable",l),Y.off("sortableSort",c),Y.off("sortableMove",d),t.virtualList&&r&&(r.destroy&&r.destroy(),r=null))});const u=me(()=>Re("list",{inset:t.inset,"inset-ios":t.insetIos,"inset-md":t.insetMd,"xsmall-inset":t.xsmallInset,"xsmall-inset-ios":t.xsmallInsetIos,"xsmall-inset-md":t.xsmallInsetMd,"small-inset":t.smallInset,"small-inset-ios":t.smallInsetIos,"small-inset-md":t.smallInsetMd,"medium-inset":t.mediumInset,"medium-inset-ios":t.mediumInsetIos,"medium-inset-md":t.mediumInsetMd,"large-inset":t.largeInset,"large-inset-ios":t.largeInsetIos,"large-inset-md":t.largeInsetMd,"xlarge-inset":t.xlargeInset,"xlarge-inset-ios":t.xlargeInsetIos,"xlarge-inset-md":t.xlargeInsetMd,"list-strong":t.strong,"list-strong-ios":t.strongIos,"list-strong-md":t.strongMd,"list-outline":t.outline,"list-outline-ios":t.outlineIos,"list-outline-md":t.outlineMd,"list-dividers":t.dividers,"list-dividers-ios":t.dividersIos,"list-dividers-md":t.dividersMd,"media-list":t.mediaList,"simple-list":t.simpleList,"links-list":t.linksList,"menu-list":t.menuList,sortable:t.sortable,"sortable-tap-hold":t.sortableTapHold,"sortable-enabled":t.sortableEnabled,"sortable-opposite":t.sortableOpposite,"accordion-list":t.accordionList,"accordion-opposite":t.accordionOpposite,"contacts-list":t.contactsList,"virtual-list":t.virtualList,tab:t.tab,"tab-active":t.tabActive,"form-store-data":t.formStoreData,"no-chevron":t.noChevron,"chevron-center":t.chevronCenter},Ve(t))),p=me(()=>t.form?"form":"div"),f=me(()=>({listIsMedia:t.mediaList,listIsSimple:t.simpleList,listIsSortable:t.sortable,listIsSortableOpposite:t.sortableOpposite}));return Ks("ListContext",f),()=>{const{list:h,default:m}=a,b=[],w=[],g=h&&typeof h=="function"?[h()]:[];let v=!1;return m&&m().forEach(y=>{if(typeof y>"u")return;const E=y.type&&y.type.name?y.type.name:y.type;E&&typeof E=="symbol"?(v=!0,g.push(y)):!E||E&&!(E==="li"||E.indexOf("f7-list-item")>=0||E.indexOf("f7-list-button")>=0||E.indexOf("f7-list-input")>=0)?v?w.push(y):b.push(y):E&&(v=!0,g.push(y))}),Se(p.value,{ref:s,class:u.value,"data-sortable-move-elements":typeof t.sortableMoveElements<"u"?t.sortableMoveElements.toString():void 0,onSubmit:i},[a["before-list"]&&a["before-list"](),b,g.length>0&&Se("ul",g),a["after-list"]&&a["after-list"](),w])}}};function aE(t,e){const n=De("f7-link");return ge(),ke("div",{class:Le(t.classes)},[t.backLink?(ge(),at(n,{key:0,href:t.backLinkUrl||"#",back:"",icon:"icon-back",force:t.backLinkForce||void 0,class:Le(t.text?void 0:"icon-only"),text:t.text,onClick:t.onBackClick},null,8,["href","force","class","text","onClick"])):We("",!0),Te(t.$slots,"default")],2)}const Oc={name:"f7-nav-left",render:aE,components:{f7Link:Ic},props:{backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:Boolean,..._e},emits:["back:click","click:back"],setup(t,e){let{emit:n}=e;const a=o=>{n("back:click",o),n("click:back",o)},r=_a(),s=me(()=>{let o=t.backLinkShowText;if(typeof o>"u"&&(o=!r.value.md),t.backLink)return t.backLink!==!0&&o?t.backLink:void 0});return{classes:me(()=>Re("left",{sliding:t.sliding},Ve(t))),onBackClick:a,text:s}}};function rE(t,e){return ge(),ke("div",{class:Le(t.classes)},[Te(t.$slots,"default")],2)}const Ac={name:"f7-nav-right",render:rE,props:{sliding:Boolean,..._e},setup(t){return{classes:me(()=>Re("right",{sliding:t.sliding},Ve(t)))}}},sE={class:"title-large-text"};function iE(t,e){return ge(),ke("div",{class:Le(t.classes)},[Ne("div",sE,[Te(t.$slots,"default")])],2)}const oE={name:"f7-nav-title-large",render:iE,props:{..._e},setup(t){return{classes:me(()=>Re("title-large",Ve(t)))}}},lE={key:0,class:"subtitle"};function cE(t,e){return ge(),ke("div",{class:Le(t.classes)},[Te(t.$slots,"default"),zt(" "+Tt(t.title)+" ",1),t.subtitle?(ge(),ke("span",lE,Tt(t.subtitle),1)):We("",!0)],2)}const Dc={name:"f7-nav-title",render:cE,props:{title:String,subtitle:String,sliding:Boolean,..._e},setup(t){return{classes:me(()=>Re("title",{sliding:t.sliding},Ve(t)))}}},dE=Ne("div",{class:"navbar-bg"},null,-1),uE={key:3,className:"title-large"},pE={className:"title-large-text"};function fE(t,e){const n=De("f7-nav-left"),a=De("f7-nav-title"),r=De("f7-nav-right");return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[dE,Te(t.$slots,"before-inner"),Ne("div",{class:Le(t.innerClasses)},[t.hasLeft?(ge(),at(n,{key:0,"back-link":t.backLink,"back-link-url":t.backLinkUrl,"back-link-force":t.backLinkForce,"back-link-show-text":t.backLinkShowText,"onBack:click":t.onBackClick},{default:Ae(()=>[Te(t.$slots,"nav-left"),Te(t.$slots,"left")]),_:3},8,["back-link","back-link-url","back-link-force","back-link-show-text","onBack:click"])):We("",!0),t.hasTitle?(ge(),at(a,{key:1,title:t.title,subtitle:t.subtitle},{default:Ae(()=>[Te(t.$slots,"title")]),_:3},8,["title","subtitle"])):We("",!0),t.hasRight?(ge(),at(r,{key:2},{default:Ae(()=>[Te(t.$slots,"nav-right"),Te(t.$slots,"right")]),_:3})):We("",!0),t.hasLargeTitle?(ge(),ke("div",uE,[Ne("div",pE,[zt(Tt(t.largeTitle)+" ",1),Te(t.$slots,"title-large")])])):We("",!0),Te(t.$slots,"default")],2),Te(t.$slots,"after-inner")],2)}const hE={name:"f7-navbar",render:fE,components:{f7NavLeft:Oc,f7NavTitle:Dc,f7NavRight:Ac},props:{backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:{type:Boolean,default:!0},title:String,subtitle:String,hidden:Boolean,outline:{type:Boolean,default:!0},innerClass:String,innerClassName:String,large:Boolean,largeTransparent:Boolean,transparent:Boolean,titleLarge:String,..._e},emits:["navbar:hide","navbar:show","navbar:expand","navbar:collapse","navbar:transparentshow","navbar:transparenthide","click:back","back:click"],setup(t,e){let{emit:n,slots:a}=e,r="",s=!1,i=null,o=!1,l=!1,c=!1;const d=He(null),u=_a(),p=G=>{d.value===G&&n("navbar:hide")},f=G=>{d.value===G&&n("navbar:show")},h=G=>{d.value===G&&(s=!1,n("navbar:expand"))},m=G=>{d.value===G&&(s=!0,n("navbar:collapse"))},b=G=>{d.value===G&&(c=!0,n("navbar:transparentshow"))},w=G=>{d.value===G&&(c=!1,n("navbar:transparenthide"))},g=(G,ee)=>{d.value===G&&(r=ee?`navbar-${ee}`:"")},v=(G,ee)=>{d.value===G&&(i=ee.role,o=ee.detailRoot)},y=G=>{d.value===G&&(l=!0)},E=G=>{d.value===G&&(l=!1)},k=G=>{Y&&Y.navbar.hide(d.value,G)},$=G=>{Y&&Y.navbar.show(d.value,G)},M=()=>{Y&&Y.navbar.size(d.value)},x=G=>{n("back:click",G),n("click:back",G)};tt(()=>{d.value&&ht(()=>{Y.navbar.size(d.value),Y.on("navbarShow",f),Y.on("navbarHide",p),Y.on("navbarCollapse",m),Y.on("navbarExpand",h),Y.on("navbarPosition",g),Y.on("navbarRole",v),Y.on("navbarMasterStack",y),Y.on("navbarMasterUnstack",E),Y.on("navbarTransparentShow",b),Y.on("navbarTransparentHide",w)})}),ct(()=>{Y&&(Y.off("navbarShow",f),Y.off("navbarHide",p),Y.off("navbarCollapse",m),Y.off("navbarExpand",h),Y.off("navbarPosition",g),Y.off("navbarRole",v),Y.off("navbarMasterStack",y),Y.off("navbarMasterUnstack",E),Y.off("navbarTransparentShow",b),Y.off("navbarTransparentHide",w))});const F=me(()=>u.value&&u.value.ios&&Y&&!Y.params.navbar.iosCenterTitle),S=me(()=>u.value&&u.value.md&&Y&&Y.params.navbar.mdCenterTitle),I=me(()=>t.large||t.largeTransparent),B=me(()=>t.transparent||I.value&&t.largeTransparent),P=me(()=>B.value&&c),L=me(()=>Re("navbar",r,{"navbar-hidden":t.hidden,"navbar-large":I.value,"navbar-large-collapsed":I.value&&s,"navbar-transparent":B.value,"navbar-transparent-visible":P.value,"navbar-master":i==="master","navbar-master-detail":i==="detail","navbar-master-detail-root":o===!0,"navbar-master-stacked":l===!0,"no-outline":!t.outline},Ve(t))),V=me(()=>{let G=t.titleLarge;return!G&&t.large&&t.title&&(G=t.title),G}),H=me(()=>t.backLink||a["nav-left"]||a.left),D=me(()=>t.title||t.subtitle||a.title),O=me(()=>a["nav-right"]||a.right),_=me(()=>V.value||a["title-large"]),N=me(()=>Re("navbar-inner",t.innerClass,t.innerClassName,{sliding:t.sliding,"navbar-inner-left-title":F.value,"navbar-inner-centered-title":S.value}));return{elRef:d,classes:L,innerClasses:N,hide:k,show:$,size:M,largeTitle:V,hasLeft:H,hasTitle:D,hasRight:O,hasLargeTitle:_,onBackClick:x}}},mE=["data-ptr-distance","data-ptr-mousewheel","data-infinite-distance"],gE={key:0,class:"ptr-preloader"},bE=Ne("div",{class:"ptr-arrow"},null,-1),vE={key:3,class:"ptr-preloader"},wE=Ne("div",{class:"ptr-arrow"},null,-1);function yE(t,e){const n=De("f7-preloader");return ge(),ke("div",{ref:"elRef",class:Le(t.classes),"data-ptr-distance":t.ptrDistance||void 0,"data-ptr-mousewheel":t.ptrMousewheel||void 0,"data-infinite-distance":t.infiniteDistance||void 0},[t.ptr&&t.ptrPreloader&&!t.ptrBottom?(ge(),ke("div",gE,[xe(n),bE])):We("",!0),t.infinite&&t.infinitePreloader&&t.infiniteTop?(ge(),at(n,{key:1,class:"infinite-scroll-preloader"})):We("",!0),Te(t.$slots,"default"),t.infinite&&t.infinitePreloader&&!t.infiniteTop?(ge(),at(n,{key:2,class:"infinite-scroll-preloader"})):We("",!0),t.ptr&&t.ptrPreloader&&t.ptrBottom?(ge(),ke("div",vE,[xe(n),wE])):We("",!0)],10,mE)}const Lc={name:"f7-page-content",render:yE,components:{f7Preloader:Tc},props:{tab:Boolean,tabActive:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean,..._e},emits:["ptr:pullstart","ptr:pullmove","ptr:pullend","ptr:refresh","ptr:done","infinite","ptrPullStart","ptrPullMove","ptrPullEnd","ptrRefresh","ptrDone","tab:hide","tab:show"],setup(t,e){let{emit:n}=e;const a=He(null),r=u=>{a.value===u&&(n("ptr:pullstart"),n("ptrPullStart"))},s=u=>{a.value===u&&(n("ptr:pullmove"),n("ptrPullMove"))},i=u=>{a.value===u&&(n("ptr:pullend"),n("ptrPullEnd"))},o=(u,p)=>{a.value===u&&(n("ptr:refresh",p),n("ptrRefresh",p))},l=u=>{a.value===u&&(n("ptr:done"),n("ptrDone"))},c=u=>{a.value===u&&n("infinite")};Dr(a,n),tt(()=>{ht(()=>{t.ptr&&(Y.on("ptrPullStart",r),Y.on("ptrPullMove",s),Y.on("ptrPullEnd",i),Y.on("ptrRefresh",o),Y.on("ptrDone",l)),t.infinite&&Y.on("infinite",c)})}),ct(()=>{Y&&(Y.off("ptrPullStart",r),Y.off("ptrPullMove",s),Y.off("ptrPullEnd",i),Y.off("ptrRefresh",o),Y.off("ptrDone",l),Y.off("infinite",c))});const d=me(()=>Re("page-content",{tab:t.tab,"tab-active":t.tabActive,"ptr-content":t.ptr,"ptr-bottom":t.ptrBottom,"infinite-scroll-content":t.infinite,"infinite-scroll-top":t.infiniteTop,"hide-bars-on-scroll":t.hideBarsOnScroll,"hide-navbar-on-scroll":t.hideNavbarOnScroll,"hide-toolbar-on-scroll":t.hideToolbarOnScroll,"messages-content":t.messagesContent,"login-screen-content":t.loginScreen},Ve(t)));return{elRef:a,classes:d}}},EE={name:"f7-page",props:{name:String,withSubnavbar:{type:Boolean,default:void 0},subnavbar:{type:Boolean,default:void 0},withNavbarLarge:{type:Boolean,default:void 0},navbarLarge:{type:Boolean,default:void 0},noNavbar:Boolean,noToolbar:Boolean,tabs:Boolean,pageContent:{type:Boolean,default:!0},noSwipeback:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean,..._e},emits:["page:mounted","page:init","page:reinit","page:beforein","page:beforeout","page:afterout","page:afterin","page:beforeremove","page:beforeunmount","page:tabshow","page:tabhide","ptr:pullstart","ptr:pullmove","ptr:pullend","ptr:refresh","ptr:done","infinite"],setup(t,e){let{emit:n,slots:a}=e,r=!1,s=!1,i=!1,o=!1,l="",c=null,d=!1,u=!1;const p=He(null),f=X=>{p.value===X.el&&n("page:mounted",X)},h=X=>{p.value===X.el&&(typeof t.withSubnavbar>"u"&&typeof t.subnavbar>"u"&&(X.$navbarEl&&X.$navbarEl.length&&X.$navbarEl.find(".subnavbar").length||X.$el.children(".navbar").find(".subnavbar").length)&&(r=!0),typeof t.withNavbarLarge>"u"&&typeof t.navbarLarge>"u"&&X.$navbarEl&&X.$navbarEl.hasClass("navbar-large")&&(s=!0),n("page:init",X))},m=X=>{p.value===X.el&&n("page:reinit",X)},b=X=>{p.value===X.el&&(X.swipeBack||(X.from==="next"&&(l="page-next"),X.from==="previous"&&(l="page-previous")),n("page:beforein",X))},w=X=>{p.value===X.el&&n("page:beforeout",X)},g=X=>{p.value===X.el&&(X.to==="next"&&(l="page-next"),X.to==="previous"&&(l="page-previous"),n("page:afterout",X))},v=X=>{p.value===X.el&&(l="page-current",n("page:afterin",X))},y=X=>{p.value===X.el&&n("page:beforeremove",X)},E=X=>{p.value===X.el&&n("page:beforeunmount",X)},k=(X,se)=>{p.value===X&&(l=`page-${se}`)},$=(X,se)=>{p.value===X&&(c=se.role,d=se.detailRoot)},M=X=>{p.value===X&&(u=!0)},x=X=>{p.value===X&&(u=!1)},F=X=>{p.value===X&&(i=!0)},S=X=>{p.value===X&&(i=!1)},I=(X,se)=>{p.value===se&&(o=!0)},B=(X,se)=>{p.value===se&&(o=!1)},P=X=>{p.value===X&&n("page:tabshow")},L=X=>{p.value===X&&n("page:tabhide")},V=()=>{n("ptr:pullstart")},H=()=>{n("ptr:pullmove")},D=()=>{n("ptr:pullend")},O=X=>{n("ptr:refresh",X)},_=()=>{n("ptr:done")},N=()=>{n("infinite")};tt(()=>{ht(()=>{Y.on("pageMounted",f),Y.on("pageInit",h),Y.on("pageReinit",m),Y.on("pageBeforeIn",b),Y.on("pageBeforeOut",w),Y.on("pageAfterOut",g),Y.on("pageAfterIn",v),Y.on("pageBeforeRemove",y),Y.on("pageBeforeUnmount",E),Y.on("pagePosition",k),Y.on("pageRole",$),Y.on("pageMasterStack",M),Y.on("pageMasterUnstack",x),Y.on("pageNavbarLargeCollapsed",F),Y.on("pageNavbarLargeExpanded",S),Y.on("cardOpened",I),Y.on("cardClose",B),Y.on("pageTabShow",P),Y.on("pageTabHide",L)})}),ct(()=>{Y&&(Y.off("pageMounted",f),Y.off("pageInit",h),Y.off("pageReinit",m),Y.off("pageBeforeIn",b),Y.off("pageBeforeOut",w),Y.off("pageAfterOut",g),Y.off("pageAfterIn",v),Y.off("pageBeforeRemove",y),Y.off("pageBeforeUnmount",E),Y.off("pagePosition",k),Y.off("pageRole",$),Y.off("pageMasterStack",M),Y.off("pageMasterUnstack",x),Y.off("pageNavbarLargeCollapsed",F),Y.off("pageNavbarLargeExpanded",S),Y.off("cardOpened",I),Y.off("cardClose",B),Y.off("pageTabShow",P),Y.off("pageTabHide",L))});const G=me(()=>Re("page",l,{tabs:t.tabs,"page-with-subnavbar":t.subnavbar||t.withSubnavbar,"page-with-navbar-large":t.navbarLarge||t.withNavbarLarge,"no-navbar":t.noNavbar,"no-toolbar":t.noToolbar,"no-swipeback":t.noSwipeback,"page-master":c==="master","page-master-detail":c==="detail","page-master-detail-root":d===!0,"page-master-stacked":u===!0,"page-with-navbar-large-collapsed":i===!0,"page-with-card-opened":o===!0,"login-screen-page":t.loginScreen},Ve(t))),ee="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index panel".split(" ").map(X=>`f7-${X}`);return()=>{const X=[],se=[],{static:ne,fixed:ie,default:le}=a;let be=!1,oe=!1,ce=t.messagesContent;const pe=le&&le();pe&&pe.forEach(A=>{if(typeof A>"u")return;const z=A.type&&A.type.name?A.type.name:A.type;let q=!1;if(!z){(t.pageContent||t.pageContent==="")&&se.push(A);return}z==="f7-subnavbar"&&(be=!0),z==="f7-navbar"&&A.props&&(A.props.large||A.props.large==="")&&(oe=!0),typeof ce>"u"&&z==="f7-messages"&&(ce=!0),ee.indexOf(z)>=0&&(q=!0),t.pageContent&&(q?X.push(A):se.push(A))});let R=G.value;return(be||r)&&typeof t.subnavbar>"u"&&typeof t.withSubnavbar>"u"&&R.indexOf("page-with-subnavbar")<0&&(R+=" page-with-subnavbar"),(oe||s)&&typeof t.navbarLarge>"u"&&typeof t.withNavbarLarge>"u"&&R.indexOf("page-with-navbar-large")<0&&(R+=" page-with-navbar-large"),t.pageContent?Se("div",{class:R,ref:p,"data-name":t.name},[X,ie&&ie(),Se(Lc,{ptr:t.ptr,ptrDistance:t.ptrDistance,ptrPreloader:t.ptrPreloader,ptrBottom:t.ptrBottom,ptrMousewheel:t.ptrMousewheel,infinite:t.infinite,infiniteTop:t.infiniteTop,infiniteDistance:t.infiniteDistance,infinitePreloader:t.infinitePreloader,hideBarsOnScroll:t.hideBarsOnScroll,hideNavbarOnScroll:t.hideNavbarOnScroll,hideToolbarOnScroll:t.hideToolbarOnScroll,messagesContent:t.messagesContent||ce,loginScreen:t.loginScreen,onPtrPullStart:V,onPtrPullMove:H,onPtrPullEnd:D,onPtrRefresh:O,onPtrDone:_,onInfinite:N},()=>[ne&&ne(),se])]):Se("div",{class:R,ref:p,"data-name":t.name},[ie&&ie(),ne&&ne(),le&&pe])}}},CE={class:"searchbar-inner"},kE={class:"searchbar-input-wrap"},$E=["value","placeholder","spellcheck"],xE=Ne("i",{class:"searchbar-icon"},null,-1);function SE(t,e){return ge(),at($l(t.tag),{ref:"elRef",class:Le(t.classes),onSubmit:t.onSubmit},{default:Ae(()=>[Te(t.$slots,"before-inner"),Ne("div",CE,[Te(t.$slots,"inner-start"),Ne("div",kE,[Te(t.$slots,"input-wrap-start"),Ne("input",{value:t.value,placeholder:t.placeholder,spellcheck:t.spellcheck,type:"search",onInput:e[0]||(e[0]=function(){return t.onInput&&t.onInput(...arguments)}),onChange:e[1]||(e[1]=function(){return t.onChange&&t.onChange(...arguments)}),onFocus:e[2]||(e[2]=function(){return t.onFocus&&t.onFocus(...arguments)}),onBlur:e[3]||(e[3]=function(){return t.onBlur&&t.onBlur(...arguments)})},null,40,$E),xE,t.clearButton?(ge(),ke("span",{key:0,class:"input-clear-button",onClick:e[4]||(e[4]=function(){return t.onClearButtonClick&&t.onClearButtonClick(...arguments)})})):We("",!0),Te(t.$slots,"input-wrap-end")]),t.disableButton?(ge(),ke("span",{key:0,class:"searchbar-disable-button",onClick:e[5]||(e[5]=function(){return t.onDisableButtonClick&&t.onDisableButtonClick(...arguments)})},Tt(t.disableButtonText),1)):We("",!0),Te(t.$slots,"inner-end"),Te(t.$slots,"default")]),Te(t.$slots,"after-inner")]),_:3},40,["class","onSubmit"])}const TE={name:"f7-searchbar",render:SE,props:{outline:{type:Boolean,default:!0},form:{type:Boolean,default:!0},placeholder:{type:String,default:"Search"},spellcheck:{type:Boolean,default:void 0},disableButton:{type:Boolean,default:!0},disableButtonText:{type:String,default:"Cancel"},clearButton:{type:Boolean,default:!0},value:[String,Number,Array],inputEvents:{type:String,default:"change input compositionend"},expandable:Boolean,inline:Boolean,searchContainer:[String,Object],searchIn:{type:String,default:".item-title"},searchItem:{type:String,default:"li"},searchGroup:{type:String,default:".list-group"},searchGroupTitle:{type:String,default:".list-group-title"},foundEl:{type:[String,Object],default:".searchbar-found"},notFoundEl:{type:[String,Object],default:".searchbar-not-found"},backdrop:{type:Boolean,default:void 0},backdropEl:[String,Object],hideOnEnableEl:{type:[String,Object],default:".searchbar-hide-on-enable"},hideOnSearchEl:{type:[String,Object],default:".searchbar-hide-on-search"},ignore:{type:String,default:".searchbar-ignore"},customSearch:{type:Boolean,default:!1},removeDiacritics:{type:Boolean,default:!1},hideGroupTitles:{type:Boolean,default:!0},hideGroups:{type:Boolean,default:!0},init:{type:Boolean,default:!0},..._e},emits:["change","input","focus","blur","submit","click:clear","click:disable","searchbar:search","searchbar:clear","searchbar:enable","searchbar:disable","update:value"],setup(t,e){let{emit:n}=e,a=null;const r=He(null),s=v=>{if(a)return a.search(v)},i=()=>{if(a)return a.enable()},o=()=>{if(a)return a.disable()},l=()=>{if(a)return a.toggle()},c=()=>{if(a)return a.clear()},d=v=>{n("change",v)},u=v=>{n("input",v),n("update:value",v.target.value)},p=v=>{n("focus",v)},f=v=>{n("blur",v)},h=v=>{n("submit",v)},m=v=>{n("click:clear",v)},b=v=>{n("click:disable",v)};tt(()=>{t.init&&ht(()=>{const v=Ra({el:r.value,inputEvents:t.inputEvents,searchContainer:t.searchContainer,searchIn:t.searchIn,searchItem:t.searchItem,searchGroup:t.searchGroup,searchGroupTitle:t.searchGroupTitle,hideOnEnableEl:t.hideOnEnableEl,hideOnSearchEl:t.hideOnSearchEl,foundEl:t.foundEl,notFoundEl:t.notFoundEl,backdrop:t.backdrop,backdropEl:t.backdropEl,disableButton:t.disableButton,ignore:t.ignore,customSearch:t.customSearch,removeDiacritics:t.removeDiacritics,hideGroupTitles:t.hideGroupTitles,hideGroups:t.hideGroups,expandable:t.expandable,inline:t.inline,on:{search(y,E,k){n("searchbar:search",y,E,k)},clear(y,E){n("searchbar:clear",y,E)},enable(y){n("searchbar:enable",y)},disable(y){n("searchbar:disable",y)}}});Object.keys(v).forEach(y=>{v[y]===""&&delete v[y]}),a=Y.searchbar.create(v)})}),ct(()=>{a&&a.destroy&&a.destroy(),a=null});const w=me(()=>Re("searchbar",{"searchbar-inline":t.inline,"no-outline":!t.outline,"searchbar-expandable":t.expandable},Ve(t))),g=me(()=>t.form?"form":"div");return{elRef:r,tag:g,classes:w,search:s,enable:i,disable:o,toggle:l,clear:c,onChange:d,onInput:u,onFocus:p,onBlur:f,onSubmit:h,onClearButtonClick:m,onDisableButtonClick:b}}},PE={key:0,class:"subnavbar-inner"},ME={key:0,class:"subnavbar-title"};function BE(t,e){return ge(),ke("div",{class:Le(t.classes)},[t.inner?(ge(),ke("div",PE,[t.title?(ge(),ke("div",ME,Tt(t.title),1)):We("",!0),Te(t.$slots,"default")])):Te(t.$slots,"default",{key:1})],2)}const IE={name:"f7-subnavbar",render:BE,props:{sliding:Boolean,title:String,inner:{type:Boolean,default:!0},..._e},setup(t){return{classes:me(()=>Re("subnavbar",{sliding:t.sliding},Ve(t)))}}},OE={key:0,className:"toolbar-inner"};function AE(t,e){return ge(),ke("div",{ref:"elRef",class:Le(t.classes)},[Te(t.$slots,"before-inner"),t.inner?(ge(),ke("div",OE,[Te(t.$slots,"default")])):Te(t.$slots,"default",{key:1}),Te(t.$slots,"after-inner")],2)}const DE={name:"f7-toolbar",render:AE,props:{tabbar:Boolean,icons:Boolean,scrollable:Boolean,hidden:Boolean,outline:{type:Boolean,default:!0},position:{type:String,default:void 0},topMd:{type:Boolean,default:void 0},topIos:{type:Boolean,default:void 0},top:{type:Boolean,default:void 0},bottomMd:{type:Boolean,default:void 0},bottomIos:{type:Boolean,default:void 0},bottom:{type:Boolean,default:void 0},inner:{type:Boolean,default:!0},..._e},emits:["toolbar:hide","toolbar:show"],setup(t,e){let{emit:n}=e;const a=He(null),r=_a(),s=u=>{a.value===u&&n("toolbar:hide")},i=u=>{a.value===u&&n("toolbar:show")},o=u=>{Y&&Y.toolbar.hide(a.value,u)},l=u=>{Y&&Y.toolbar.show(a.value,u)};tt(()=>{t.tabbar&&Y&&a.value&&Y.toolbar.setHighlight(a.value),Y.on("toolbarShow",i),Y.on("toolbarHide",s)}),ct(()=>{Y.off("toolbarShow",i),Y.off("toolbarHide",s)});const c=me(()=>({tabbarHasIcons:t.icons}));return Ks("TabbarContext",c),{classes:me(()=>{const{tabbar:u,bottomMd:p,bottomIos:f,bottom:h,position:m,topMd:b,topIos:w,top:g,icons:v,scrollable:y,hidden:E,outline:k}=t;return Re("toolbar",{tabbar:u,"toolbar-bottom":r.value&&r.value.md&&p||r.value&&r.value.ios&&f||h||m==="bottom","toolbar-top":r.value&&r.value.md&&b||r.value&&r.value.ios&&w||g||m==="top","tabbar-icons":v,"tabbar-scrollable":y,"toolbar-hidden":E,"no-outline":!k},Ve(t))}),elRef:a,hide:o,show:l}}},LE=(t,e)=>{const n=t.__vccOpts||t;for(const[a,r]of e)n[a]=r;return n},RE={name:"App",components:{f7App:A1,f7View:Xn,f7Navbar:hE,f7Page:EE,f7Searchbar:TE,f7Subnavbar:IE,f7Toolbar:DE,f7Link:Ic,f7List:nE,f7ListItem:tE,f7NavTitleLarge:oE,f7NavTitle:Dc,f7NavLeft:Oc,f7NavRight:Ac,f7Icon:Pc,f7BlockHeader:R1,f7AccordionContent:B1,f7Block:F1,f7Popover:xc,f7Button:J1,f7PageContent:Lc},setup(){return{colors:A0,glyphs:b0}},data(){return{blue:null,f7params:{name:"Shortcuts Glyphs",theme:"ios",darkMode:"auto"},glyph:{identifier:"identifier",code:null},color:{identifier:null,code:null},compilers:{Cherri:{icon:"🍒",url:"https://cherrilang.org/"},Jelly:{icon:"🪼",url:"https://jellycuts.com/"}},cherriCode:me(()=>{let t=`#define glyph ${this.glyph.identifier}`;return this.color.identifier&&(t+=`
#define color ${this.color.identifier}`),t}),jellyCode:me(()=>{let t=`#Icon: ${this.glyph.identifier}`;return this.color.identifier&&(t+=`, #Color: ${this.jellyColorName()}`),t}),githubCredits:["atnbueno","actuallytaylor","electrikmilk","chrisjmendez"]}},mounted(){this.blue=Y.colors.blue;const t=new URL(window.location.href).searchParams;t.has("q")&&this.$refs.searchbar.search(t.get("q"))},methods:{alert(t,e){Y.dialog.alert(t,e)},copyToClipboard(t){navigator.clipboard.writeText(t),Y.toast.create({icon:'doc_on_clipboard_fill',text:"Copied to Clipboard",position:"center",closeTimeout:2e3}).open()},stripTags(t){return t.replace(/<\/?[^>]+(>|$)/gi,"")},iconClass(t){let e={};return e[`g${t}`]=!0,this.color.code&&(e[`c${this.color.code}`]=!0),e},glyphTitle(t){switch(t){case"airPods":return"AirPods";case"airPodsPro":return"AirPods Pro";case"QRCode":return"QR Code";case"QRViewFinder":return"QR View Finder"}let e=[],n="";for(let a=0;a1&&e.push(n),e=e.map(a=>{if(!a)return;let r=a.split("");const s=a[0].toUpperCase();return r.splice(0,1),s+r.join("")}),e.join(" ")},jellyColorName(){switch(this.color.identifier){case"darkorange":return"orange";case"orange":return"tangerine";case"lightblue":return"lightBlue";case"darkblue":return"navy";case"violet":return"grape";case"taupe":return"grayBrown";case"gray":return"grayGreen";case"darkgray":return"grayBlue";default:return this.color.identifier}}}},HE=Ne("h3",null,"Credits ❤️",-1),FE=Ne("p",null," Glyphs data ",-1),zE=Ne("p",null," Icons rendering ",-1),NE={style:{all:"initial"}},VE={class:"shortcut-icon-color-picker"},_E=["onClick"],jE={class:"width-100",style:{display:"flex","align-items":"center","justify-content":"center",gap:"1rem"}},qE=["innerHTML"],WE=Ne("br",null,null,-1),YE=Ne("br",null,null,-1),XE=Ne("br",null,null,-1),UE=Ne("br",null,null,-1);function GE(t,e,n,a,r,s){const i=De("f7-link"),o=De("f7-block"),l=De("f7-icon"),c=De("f7-list-item"),d=De("f7-list"),u=De("f7-popover"),p=De("f7-nav-left"),f=De("f7-nav-title"),h=De("f7-nav-right"),m=De("f7-searchbar"),b=De("f7-subnavbar"),w=De("f7-navbar"),g=De("f7-button"),v=De("f7-toolbar"),y=De("f7-block-header"),E=De("f7-page-content"),k=De("f7-page"),$=De("f7-view"),M=De("f7-app");return ge(),at(M,Fa(r.f7params,{theme:"ios"}),{default:Ae(()=>[xe($,{main:""},{default:Ae(()=>[xe(k,null,{default:Ae(()=>[xe(u,{class:"credits"},{default:Ae(()=>[xe(o,null,{default:Ae(()=>[HE,FE,xe(i,{href:"https://github.com/OpenJelly/Open-Jellycore",external:"","icon-f7":"logo_github",target:"_blank"},{default:Ae(()=>[zt("   Open-Jellycore ")]),_:1}),zE,xe(i,{href:"https://github.com/atnbueno/shortcut-icons",external:"","icon-f7":"logo_github",target:"_blank"},{default:Ae(()=>[zt("   shortcut-icons ")]),_:1})]),_:1}),xe(d,{dividers:""},{default:Ae(()=>[(ge(!0),ke(ut,null,Ka(r.githubCredits,x=>(ge(),at(c,{link:"https://github.com/"+x,style:xn("color:"+r.blue),target:"_blank",external:""},{media:Ae(()=>[xe(l,{f7:"logo_github"})]),default:Ae(()=>[zt(" @"+Tt(x),1)]),_:2},1032,["link","style"]))),256))]),_:1})]),_:1}),xe(w,{sliding:"",class:"text-align-center",style:{"padding-top":"5rem",height:"10rem"}},{default:Ae(()=>[xe(p,{style:{"z-index":"999"}},{default:Ae(()=>[xe(i,{"icon-f7":"info_circle",tooltip:"Credits","popover-open":".credits"})]),_:1}),xe(f,{style:{position:"fixed",left:"0",right:"0",margin:"1.5rem 0 auto"}},{default:Ae(()=>[Ne("div",NE,[Ne("div",{class:Le(["shortcut-icon s86",s.iconClass(r.glyph.code)]),style:{position:"relative"}},null,2),Ne("div",VE,[(ge(!0),ke(ut,null,Ka(a.colors,(x,F)=>(ge(),ke("div",{class:Le(["shortcut-icon-color","c"+x]),onClick:S=>r.color={identifier:F,code:x}},null,10,_E))),256))])])]),_:1}),xe(h,null,{default:Ae(()=>[xe(i,{href:"https://github.com/electrikmilk/shortcuts-glyph-search",external:"",tooltip:"View Repo on GitHub","icon-f7":"logo_github",target:"_blank"})]),_:1}),xe(b,null,{default:Ae(()=>[xe(m,{"search-container":".search-list",ref:"searchbar",class:"searchbar",outline:!1,"search-in":".item-title"},null,512)]),_:1})]),_:1}),xe(v,{position:"bottom",style:xn(r.color.identifier?"height: 9rem":"height: 8rem")},{default:Ae(()=>[(ge(!0),ke(ut,null,Ka(r.compilers,(x,F)=>(ge(),ke("div",jE,[xe(i,{href:x.url,external:"",style:{"font-weight":"600","font-size":"1rem"},target:"_blank"},{default:Ae(()=>[zt(Tt(x.icon)+" "+Tt(F),1)]),_:2},1032,["href"]),Ne("code",{innerHTML:F==="Cherri"?r.cherriCode:r.jellyCode},null,8,qE),xe(g,{"icon-f7":"doc_on_clipboard_fill","icon-size":"1.3rem",onClick:S=>s.copyToClipboard(s.stripTags((F==="Cherri"?r.cherriCode:r.jellyCode).replace("
",` +`)))},null,8,["onClick"])]))),256))]),_:1},8,["style"]),xe(E,null,{default:Ae(()=>[xe(y,null,{default:Ae(()=>[xe(l,{f7:"doc_on_clipboard_fill",size:"1rem"}),zt(" Choose one of the glyphs in the list below to copy the identifier and generate code. ")]),_:1}),xe(d,{strong:"",inset:"",class:"searchbar-not-found"},{default:Ae(()=>[xe(c,{title:"No glyphs found!"})]),_:1}),xe(d,{strong:"",dividers:"",inset:"","media-list":"",class:"search-list searchbar-found"},{default:Ae(()=>[(ge(!0),ke(ut,null,Ka(a.glyphs,(x,F)=>(ge(),at(c,{title:s.glyphTitle(F),text:F,link:"#",onClick:S=>{s.copyToClipboard(F),r.glyph={identifier:F,code:x}}},{media:Ae(()=>[Ne("div",{class:Le(["shortcut-icon s43",s.iconClass(x)])},null,2)]),_:2},1032,["title","text","onClick"]))),256))]),_:1}),WE,YE,XE,UE]),_:1})]),_:1})]),_:1})]),_:1},16)}const KE=LE(RE,[["render",GE]]);let nn=class extends en{constructor(e,n){const a=W({title:e.params.dialog.title,text:void 0,content:"",buttons:[],verticalButtons:!1,onClick:void 0,cssClass:void 0,destroyOnClose:!1,on:{}},n);typeof a.closeByBackdropClick>"u"&&(a.closeByBackdropClick=e.params.dialog.closeByBackdropClick),typeof a.backdrop>"u"&&(a.backdrop=e.params.dialog.backdrop),super(e,a);const r=this,s=Ie(),i=ye(),{title:o,text:l,content:c,buttons:d,verticalButtons:u,cssClass:p,backdrop:f}=a;r.params=a;let h;if(r.params.el)h=C(r.params.el);else{const y=["dialog"];d.length===0&&y.push("dialog-no-buttons"),d.length>0&&y.push(`dialog-buttons-${d.length}`),u&&y.push("dialog-buttons-vertical"),p&&y.push(p);let E="";d.length>0&&(E=T("div",{class:"dialog-buttons"},d.map($=>T("span",{class:`dialog-button${$.strong?" dialog-button-strong":""}${$.color?` color-${$.color}`:""}${$.cssClass?` ${$.cssClass}`:""}`},$.text))));const k=T("div",{class:y.join(" ")},T("div",{class:"dialog-inner"},o&&T("div",{class:"dialog-title"},o),l&&T("div",{class:"dialog-text"},l),c),E);h=C(k)}if(h&&h.length>0&&h[0].f7Modal)return h[0].f7Modal;if(h.length===0)return r.destroy();let m;f&&(m=e.$el.children(".dialog-backdrop"),m.length===0&&(m=C('
'),e.$el.append(m)));function b(y){const k=C(this).index(),$=d[k];$.onClick&&$.onClick(r,y),r.params.onClick&&r.params.onClick(r,k),$.close!==!1&&r.close()}let w;function g(y){const E=y.keyCode;d.forEach((k,$)=>{k.keyCodes&&k.keyCodes.indexOf(E)>=0&&(i.activeElement&&i.activeElement.blur(),k.onClick&&k.onClick(r,y),r.params.onClick&&r.params.onClick(r,$),k.close!==!1&&r.close())})}d&&d.length>0&&(r.on("open",()=>{h.find(".dialog-button").each((y,E)=>{d[E].keyCodes&&(w=!0),C(y).on("click",b)}),w&&!s.ios&&!s.android&&!s.cordova&&!s.capacitor&&C(i).on("keydown",g)}),r.on("close",()=>{h.find(".dialog-button").each(y=>{C(y).off("click",b)}),w&&!s.ios&&!s.android&&!s.cordova&&!s.capacitor&&C(i).off("keydown",g),w=!1})),W(r,{app:e,$el:h,el:h[0],$backdropEl:m,backdropEl:m&&m[0],type:"dialog",setProgress(y,E){return e.progressbar.set(h.find(".progressbar"),y,E),r},setText(y){let E=h.find(".dialog-text");return E.length===0&&(E=C('
'),typeof o<"u"?E.insertAfter(h.find(".dialog-title")):h.find(".dialog-inner").prepend(E)),E.html(y),r.params.text=y,r},setTitle(y){let E=h.find(".dialog-title");return E.length===0&&(E=C('
'),h.find(".dialog-inner").prepend(E)),E.html(y),r.params.title=y,r}});function v(y){const E=y.target;C(E).closest(r.el).length===0&&r.params.closeByBackdropClick&&r.backdropEl&&r.backdropEl===E&&r.close()}return r.on("opened",()=>{r.params.closeByBackdropClick&&e.on("click",v)}),r.on("close",()=>{r.params.closeByBackdropClick&&e.off("click",v)}),h[0].f7Modal=r,r.params.destroyOnClose&&r.once("closed",()=>{setTimeout(()=>{r.destroy()},0)}),r}};const QE={name:"dialog",params:{dialog:{title:void 0,buttonOk:"OK",buttonCancel:"Cancel",usernamePlaceholder:"Username",passwordPlaceholder:"Password",preloaderTitle:"Loading... ",progressTitle:"Loading... ",backdrop:!0,closeByBackdropClick:!1,destroyPredefinedDialogs:!0,keyboardActions:!0,autoFocus:!0}},static:{Dialog:nn},create(){const t=this;function e(){return t.params.dialog.title||t.name}const n=t.params.dialog.destroyPredefinedDialogs,a=t.params.dialog.keyboardActions,s=t.params.dialog.autoFocus?{on:{opened(o){o.$el.find("input").eq(0).focus()}}}:{},i=t.theme==="ios";t.dialog=W(pn({app:t,constructor:nn,defaultSelector:".dialog.modal-in"}),{alert(){for(var o=arguments.length,l=new Array(o),c=0;c"u"?e():u,text:d,buttons:[{text:t.params.dialog.buttonOk,strong:i,onClick:p,keyCodes:a?[13,27]:null}],destroyOnClose:n}).open()},prompt(){for(var o=arguments.length,l=new Array(o),c=0;c"u"||h===null?"":h,new nn(t,{title:typeof u>"u"?e():u,text:d,content:`
`,buttons:[{text:t.params.dialog.buttonCancel,keyCodes:a?[27]:null,color:null},{text:t.params.dialog.buttonOk,strong:i,keyCodes:a?[13]:null}],onClick(m,b){const w=m.$el.find(".dialog-input").val();b===0&&f&&f(w),b===1&&p&&p(w)},destroyOnClose:n,...s}).open()},confirm(){for(var o=arguments.length,l=new Array(o),c=0;c"u"?e():u,text:d,buttons:[{text:t.params.dialog.buttonCancel,onClick:f,keyCodes:a?[27]:null,color:null},{text:t.params.dialog.buttonOk,strong:i,onClick:p,keyCodes:a?[13]:null}],destroyOnClose:n}).open()},login(){for(var o=arguments.length,l=new Array(o),c=0;c"u"?e():u,text:d,content:`
@@ -114,7 +114,7 @@ ${l.toString()}`)}return r&&(typeof r=="string"?o+=`?${r}`:Object.keys(r).length
${f?"":""}
- `,destroyOnClose:n});return f||h.setProgress(u),h.open()}})}};let mo=class extends en{constructor(e,n){const a=W({on:{}},e.params.popup,n);super(e,a);const r=this,s=fe(),i=ye(),o=Xe(),l=Ie();r.params=a;let c;if(r.params.el?c=C(r.params.el).eq(0):c=C(r.params.content).filter(N=>N.nodeType===1).eq(0),c&&c.length>0&&c[0].f7Modal)return c[0].f7Modal;if(c.length===0)return r.destroy();let d;r.params.backdrop&&r.params.backdropEl?d=C(r.params.backdropEl):r.params.backdrop&&(r.params.backdropUnique?(d=C(''),r.$containerEl.append(d)):d=r.$containerEl.children(".popup-backdrop"),d.length===0&&(d=C(''),r.$containerEl.append(d))),W(r,{app:e,push:c.hasClass("popup-push")||r.params.push,$el:c,el:c[0],$backdropEl:d,backdropEl:d&&d[0],type:"popup",$htmlEl:C("html")}),r.params.push&&c.addClass("popup-push");function u(N){const G=N.target,ee=C(G);if(!(!l.desktop&&l.cordova&&(s.Keyboard&&s.Keyboard.isVisible||s.cordova.plugins&&s.cordova.plugins.Keyboard&&s.cordova.plugins.Keyboard.isVisible))&&ee.closest(r.el).length===0&&r.params&&r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl&&r.backdropEl===G){let se=!0;r.$el.nextAll(".popup.modal-in").each(ne=>{const ie=ne.f7Modal;ie&&ie.params.closeByBackdropClick&&ie.params.backdrop&&ie.backdropEl===r.backdropEl&&(se=!1)}),se&&r.close()}}function p(N){N.keyCode===27&&r.params.closeOnEscape&&r.close()}let f,h;function m(N){return(e.height-N*2)/e.height}let b=!0,w=!1,g,v,y,E,k,$=!1,M,x,F,S,I,B;function P(N){w||!b||!r.params.swipeToClose||!N.isTrusted||r.params.swipeHandler&&C(N.target).closest(r.params.swipeHandler).length===0||C(N.target).closest(".sortable-handler").length>0||(w=!0,$=!1,g={x:N.type==="touchstart"?N.targetTouches[0].pageX:N.pageX,y:N.type==="touchstart"?N.targetTouches[0].pageY:N.pageY},E=Ot(),y=void 0,!r.params.swipeHandler&&N.type==="touchstart"&&(M=C(N.target).closest(".page-content")[0]))}function L(N){if(!w||!N.isTrusted)return;if(v={x:N.type==="touchmove"?N.targetTouches[0].pageX:N.pageX,y:N.type==="touchmove"?N.targetTouches[0].pageY:N.pageY},typeof y>"u"&&(y=!!(y||Math.abs(v.x-g.x)>Math.abs(v.y-g.y))),y){w=!1,$=!1;return}k=g.y-v.y,h&&f&&k>0&&(k=0);const G=k<0?"to-bottom":"to-top";if(c.transition(0),typeof r.params.swipeToClose=="string"&&G!==r.params.swipeToClose){c.transform(""),c.transition("");return}if($)r.emit("local::swipeMove popupSwipeMove",r),r.$el.trigger("popup:swipemove");else{if(h&&f&&(I=c[0].offsetHeight,B=c.prevAll(".popup.modal-in").eq(0),B.length===0&&(B=e.$el.children(".view, .views"))),M&&(x=M.scrollTop,S=M.scrollHeight,F=M.offsetHeight,S!==F&&!(G==="to-bottom"&&x===0)&&!(G==="to-top"&&x===S-F))){c.transform(""),c.transition(""),w=!1,$=!1;return}$=!0,r.emit("local::swipeStart popupSwipeStart",r),r.$el.trigger("popup:swipestart")}if(N.preventDefault(),h&&f){const ee=1-Math.abs(k/I),X=1-(1-m(f))*ee;B.hasClass("popup")?B.hasClass("popup-push")?B.transition(0).forEach(se=>{se.style.setProperty("transform",`translate3d(0, calc(-1 * ${ee} * (var(--f7-popup-push-offset) + 10px)) , 0px) scale(${X})`,"important")}):B.transition(0).forEach(se=>{se.style.setProperty("transform",`translate3d(0, 0px , 0px) scale(${X})`,"important")}):B.transition(0).forEach(se=>{se.style.setProperty("transform",`translate3d(0,0,0) scale(${X})`,"important")})}c.transition(0).transform(`translate3d(0,${-k}px,0)`)}function V(N){if(!N.isTrusted||(w=!1,!$))return;r.emit("local::swipeEnd popupSwipeEnd",r),r.$el.trigger("popup:swipeend"),$=!1,b=!1,c.transition(""),h&&f&&B.transition("").transform("");const G=k<=0?"to-bottom":"to-top";if(typeof r.params.swipeToClose=="string"&&G!==r.params.swipeToClose){c.transform(""),b=!0;return}const ee=Math.abs(k),X=new Date().getTime()-E;if(X<300&&ee>20||X>=300&&ee>100){lt(()=>{G==="to-bottom"?c.addClass("swipe-close-to-bottom"):c.addClass("swipe-close-to-top"),c.transform(""),r.emit("local::swipeclose popupSwipeClose",r),r.$el.trigger("popup:swipeclose"),r.close(),b=!0});return}b=!0,c.transform("")}const H=o.passiveListener?{passive:!0}:!1;r.params.swipeToClose&&(c.on(e.touchEvents.start,P,H),e.on("touchmove",L),e.on("touchend:passive",V),r.once("popupDestroy",()=>{c.off(e.touchEvents.start,P,H),e.off("touchmove",L),e.off("touchend:passive",V)}));let D;const O=()=>{const N=h;r.push&&(h=r.push&&(e.width<630||e.height<630||c.hasClass("popup-tablet-fullscreen"))),h&&!N?_():h&&N?r.$htmlEl[0].style.setProperty("--f7-popup-push-scale",m(f)):!h&&N&&(r.$htmlEl.removeClass("with-modal-popup-push"),r.$htmlEl[0].style.removeProperty("--f7-popup-push-scale"))},_=()=>{e.off("resize",O),r.push&&(h=r.push&&(e.width<630||e.height<630||c.hasClass("popup-tablet-fullscreen"))),h&&(f=parseInt(c.css("--f7-popup-push-offset"),10),Number.isNaN(f)&&(f=0),f||(f=e.theme==="ios"?44:48),r.$htmlEl[0].style.setProperty("--f7-popup-push-offset",`${f}px`),c.addClass("popup-push"),r.$htmlEl.addClass("with-modal-popup-push"),r.$htmlEl[0].style.setProperty("--f7-popup-push-scale",m(f))),e.on("resize",O)};return r.on("open",()=>{D=!1,r.params.closeOnEscape&&C(i).on("keydown",p),c.prevAll(".popup.modal-in").addClass("popup-behind"),_()}),r.on("opened",()=>{c.removeClass("swipe-close-to-bottom swipe-close-to-top"),r.params.closeByBackdropClick&&e.on("click",u)}),r.on("close",()=>{D=r.$el.prevAll(".popup-push.modal-in").length>0,r.params.closeOnEscape&&C(i).off("keydown",p),r.params.closeByBackdropClick&&e.off("click",u),c.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),h&&f&&!D&&(r.$htmlEl.removeClass("with-modal-popup-push"),r.$htmlEl.addClass("with-modal-popup-push-closing")),e.off("resize",O)}),r.on("closed",()=>{c.removeClass("popup-behind"),h&&f&&!D&&(r.$htmlEl.removeClass("with-modal-popup-push-closing"),r.$htmlEl[0].style.removeProperty("--f7-popup-push-scale"),r.$htmlEl[0].style.removeProperty("--f7-popup-push-offset"))}),c[0].f7Modal=r,r}};const KE={name:"popup",params:{popup:{backdrop:!0,backdropEl:void 0,backdropUnique:!1,closeByBackdropClick:!0,closeOnEscape:!1,swipeToClose:!1,swipeHandler:null,push:!1,containerEl:null}},static:{Popup:mo},create(){const t=this;t.popup=pn({app:t,constructor:mo,defaultSelector:".popup.modal-in",parentSelector:".popup"})},clicks:{".popup-open":function(e,n){n===void 0&&(n={}),this.popup.open(n.popup,n.animate,e)},".popup-close":function(e,n){n===void 0&&(n={}),this.popup.close(n.popup,n.animate,e)}}};let go=class extends en{constructor(e,n){const a=W({on:{}},n);super(e,a);const r=this;r.params=a;let s;return r.params.el?s=C(r.params.el).eq(0):s=C(r.params.content).filter(i=>i.nodeType===1).eq(0),s&&s.length>0&&s[0].f7Modal?s[0].f7Modal:s.length===0?r.destroy():(W(r,{app:e,$el:s,el:s[0],type:"loginScreen"}),s[0].f7Modal=r,r)}};const QE={name:"loginScreen",static:{LoginScreen:go},create(){const t=this;t.loginScreen=pn({app:t,constructor:go,defaultSelector:".login-screen.modal-in"})},clicks:{".login-screen-open":function(e,n){n===void 0&&(n={}),this.loginScreen.open(n.loginScreen,n.animate,e)},".login-screen-close":function(e,n){n===void 0&&(n={}),this.loginScreen.close(n.loginScreen,n.animate,e)}}};let Qr=class extends en{constructor(e,n){const a=W({on:{}},e.params.popover,n);super(e,a);const r=this,s=Ie(),i=fe(),o=ye();r.params=a;let l;if(r.params.el?l=C(r.params.el).eq(0):l=C(r.params.content).filter(v=>v.nodeType===1).eq(0),l&&l.length>0&&l[0].f7Modal)return l[0].f7Modal;const c=C(r.params.targetEl).eq(0);if(l.length===0)return r.destroy();let d;const u=r.params.backdrop&&e.$el.find(".popover.modal-in").filter(v=>v!==l[0]).length>0;r.params.backdrop&&r.params.backdropEl?d=C(r.params.backdropEl):r.params.backdrop&&(r.params.backdropUnique||u?(d=C('
'),d[0].f7PopoverRef=r,r.$containerEl.append(d)):d=r.$containerEl.children(".popover-backdrop"),d.length===0&&(d=C('
'),r.$containerEl.append(d)));let p;l.find(".popover-arrow").length===0&&r.params.arrow?(p=C('
'),l.prepend(p)):p=l.find(".popover-arrow");const f=r.open;W(r,{app:e,$el:l,el:l[0],$targetEl:c,targetEl:c[0],$arrowEl:p,arrowEl:p[0],$backdropEl:d,backdropEl:d&&d[0],type:"popover",forceBackdropUnique:u,open(){for(var v=arguments.length,y=new Array(v),E=0;E{r.resize(),e.on("resize",h),C(i).on("keyboardDidShow keyboardDidHide",h),r.on("popoverClose popoverBeforeDestroy",()=>{e.off("resize",h),C(i).off("keyboardDidShow keyboardDidHide",h)})});let m=null;function b(v){m=v.target}function w(v){const y=v.target,E=C(y);if(!(!s.desktop&&s.cordova&&(i.Keyboard&&i.Keyboard.isVisible||i.cordova.plugins&&i.cordova.plugins.Keyboard&&i.cordova.plugins.Keyboard.isVisible))&&E.closest(r.el).length===0){if(r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl&&r.backdropEl===y&&m===y)r.close();else if(r.params.closeByOutsideClick&&m===y){const $=E.hasClass("popover-backdrop-unique")&&y.f7PopoverRef!==r||E.hasClass("popover-backdrop")&&y!==r.backdropEl,M=y.closest(".popover")&&y.closest(".popover")!==r.$el[0];!$&&!M&&r.close()}}}function g(v){v.keyCode===27&&r.params.closeOnEscape&&r.close()}return r.params.closeOnEscape&&(r.on("popoverOpen",()=>{C(o).on("keydown",g)}),r.on("popoverClose",()=>{C(o).off("keydown",g)})),r.on("popoverOpened",()=>{(r.params.closeByOutsideClick||r.params.closeByBackdropClick)&&(e.on("touchstart",b),e.on("click",w))}),r.on("popoverClose",()=>{(r.params.closeByOutsideClick||r.params.closeByBackdropClick)&&(e.off("touchstart",b),e.off("click",w))}),l[0].f7Modal=r,r}resize(){const e=this,{app:n,$el:a,$targetEl:r,$arrowEl:s}=e,{targetX:i,targetY:o,verticalPosition:l}=e.params;a.css({left:"",top:""});const[c,d]=[a.width(),a.height()];let u=0,p,f;const h=s.length>0,m=n.theme==="ios"?13:24;h&&(s.removeClass("on-left on-right on-top on-bottom").css({left:"",top:""}),u=s.width()/2),a.removeClass("popover-on-left popover-on-right popover-on-top popover-on-bottom popover-on-middle").css({left:"",top:""});let b,w,g,v,y=parseInt(C("html").css("--f7-safe-area-top"),10),E=parseInt(C("html").css("--f7-safe-area-left"),10),k=parseInt(C("html").css("--f7-safe-area-right"),10);if(Number.isNaN(y)&&(y=0),Number.isNaN(E)&&(E=0),Number.isNaN(k)&&(k=0),r&&r.length>0){b=r.outerWidth(),w=r.outerHeight();const B=r.offset();g=B.left-n.left,v=B.top-n.top;const P=r.parents(".page");P.length>0&&(v-=P[0].scrollTop)}else typeof i<"u"&&o!=="undefined"&&(g=i,v=o,b=e.params.targetWidth||0,w=e.params.targetHeight||0);let[$,M,x]=[0,0,0];const F=l==="auto"?!1:l;let S=F||"top";F==="top"||!F&&d+un.width-5-k&&($=n.width-5-k-c),x-=$,h&&(S==="top"&&s.addClass("on-bottom"),S==="bottom"&&s.addClass("on-top"),p=c/2-u+x,p=Math.max(Math.min(p,c-u*2-m),m),s.css({left:`${p}px`}))):S==="middle"&&($=g-c-u,h&&s.addClass("on-right"),($<5||$+c+k>n.width||$n.width&&($=n.width-c-5-k),$1){const o=C(n).parents(".page");o.length&&r.each(l=>{const c=C(l);c.parents(o)[0]===o[0]&&(r=c)})}r.length>1&&(r=r.eq(r.length-1));let s=r[0].f7Modal;const i=r.dataset();return s||(s=new Qr(t,Object.assign({el:r,targetEl:n},i))),s.open(n,a)}})},clicks:{".popover-open":function(e,n){n===void 0&&(n={}),this.popover.open(n.popover,e,n.animate)},".popover-close":function(e,n){n===void 0&&(n={}),this.popover.close(n.popover,n.animate,e)}}};let bo=class extends en{constructor(e,n){const a=W({on:{}},e.params.actions,n);super(e,a);const r=this,s=Ie(),i=fe(),o=ye();r.params=a;let l;r.params.buttons&&(l=r.params.buttons,Array.isArray(l[0])||(l=[l])),r.groups=l;let c;if(r.params.el?c=C(r.params.el).eq(0):r.params.content?c=C(r.params.content).filter(w=>w.nodeType===1).eq(0):r.params.buttons&&(r.params.convertToPopover&&(r.popoverHtml=r.renderPopover()),r.actionsHtml=r.render()),c&&c.length>0&&c[0].f7Modal)return c[0].f7Modal;if(c&&c.length===0&&!(r.actionsHtml||r.popoverHtml))return r.destroy();let d;r.params.backdrop&&r.params.backdropEl?d=C(r.params.backdropEl):r.params.backdrop&&(r.params.backdropUnique?(d=C(''),r.$containerEl.append(d)):d=r.$containerEl.children(".actions-backdrop"),d.length===0&&(d=C('
'),r.$containerEl.append(d)));const u=r.open,p=r.close;let f;function h(w){const g=C(this);let v,y;if(g.hasClass("list-button")||g.hasClass("item-link")?(v=g.parents("li").index(),y=g.parents(".list").index()):(v=g.index(),y=g.parents(".actions-group").index()),typeof l<"u"){const E=l[y][v];E.onClick&&E.onClick(r,w),r.params.onClick&&r.params.onClick(r,w),E.close!==!1&&r.close()}}r.open=function(g){let v=!1;const{targetEl:y,targetX:E,targetY:k,targetWidth:$,targetHeight:M}=r.params;return r.params.convertToPopover&&(y||E!==void 0&&k!==void 0)&&(r.params.forceToPopover||s.ios&&s.ipad||e.width>=768||s.desktop)&&(v=!0),v&&r.popoverHtml?(f=e.popover.create({containerEl:r.params.containerEl,content:r.popoverHtml,backdrop:r.params.backdrop,targetEl:y,targetX:E,targetY:k,targetWidth:$,targetHeight:M,on:{open(){r.$el||(r.$el=f.$el),r.$el.trigger(`modal:open ${r.type.toLowerCase()}:open`),r.emit(`local::open modalOpen ${r.type}Open`,r)},opened(){r.$el||(r.$el=f.$el),r.$el.trigger(`modal:opened ${r.type.toLowerCase()}:opened`),r.emit(`local::opened modalOpened ${r.type}Opened`,r)},close(){r.$el||(r.$el=f.$el),r.$el.trigger(`modal:close ${r.type.toLowerCase()}:close`),r.emit(`local::close modalClose ${r.type}Close`,r)},closed(){r.$el||(r.$el=f.$el),r.$el.trigger(`modal:closed ${r.type.toLowerCase()}:closed`),r.emit(`local::closed modalClosed ${r.type}Closed`,r)}}}),f.open(g),f.once("popoverOpened",()=>{f.$el.find(".list-button, .item-link").each(x=>{C(x).on("click",h)})}),f.once("popoverClosed",()=>{f.$el.find(".list-button, .item-link").each(x=>{C(x).off("click",h)}),lt(()=>{f.destroy(),f=void 0})})):(r.$el=r.actionsHtml?C(r.actionsHtml):r.$el,r.$el[0].f7Modal=r,r.groups&&(r.$el.find(".actions-button").each(x=>{C(x).on("click",h)}),r.once("actionsClosed",()=>{r.$el.find(".actions-button").each(x=>{C(x).off("click",h)})})),r.el=r.$el[0],u.call(r,g)),r},r.close=function(g){return f?f.close(g):p.call(r,g),r},W(r,{app:e,$el:c,el:c?c[0]:void 0,$backdropEl:d,backdropEl:d&&d[0],type:"actions"});function m(w){const g=w.target,v=C(g);!s.desktop&&s.cordova&&(i.Keyboard&&i.Keyboard.isVisible||i.cordova.plugins&&i.cordova.plugins.Keyboard&&i.cordova.plugins.Keyboard.isVisible)||v.closest(r.el).length===0&&(r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl&&r.backdropEl===g||r.params.closeByOutsideClick)&&r.close()}function b(w){w.keyCode===27&&r.params.closeOnEscape&&r.close()}return r.params.closeOnEscape&&(r.on("open",()=>{C(o).on("keydown",b)}),r.on("close",()=>{C(o).off("keydown",b)})),r.on("opened",()=>{(r.params.closeByBackdropClick||r.params.closeByOutsideClick)&&e.on("click",m)}),r.on("close",()=>{(r.params.closeByBackdropClick||r.params.closeByOutsideClick)&&e.off("click",m)}),c&&(c[0].f7Modal=r),r}render(){const e=this;if(e.params.render)return e.params.render.call(e,e);const{groups:n}=e,a=e.params.cssClass;return T("div",{class:`actions-modal${e.params.grid?" actions-grid":""} ${a||""}`},n.map(r=>T("div",{class:"actions-group"},r.map(s=>{const i=[`actions-${s.label?"label":"button"}`],{color:o,bg:l,strong:c,disabled:d,label:u,text:p,icon:f}=s;return o&&i.push(`color-${o}`),l&&i.push(`bg-color-${l}`),c&&i.push("actions-button-strong"),d&&i.push("disabled"),u?T("div",{class:i.join(" ")},p):T("div",{class:i.join(" ")},f&&T("div",{class:"actions-button-media"},f),T("div",{class:"actions-button-text"},p))}))))}renderPopover(){const e=this;if(e.params.renderPopover)return e.params.renderPopover.call(e,e);const{groups:n}=e,a=e.params.cssClass;return T("div",{class:`popover popover-from-actions ${a||""}`},T("div",{class:"popover-inner"},n.map(r=>T("div",{class:"list"},T("ul",null,r.map(s=>{const i=[],{color:o,bg:l,strong:c,disabled:d,label:u,text:p,icon:f}=s;return o&&i.push(`color-${o}`),l&&i.push(`bg-color-${l}`),c&&i.push("popover-from-actions-strong"),d&&i.push("disabled"),u?(i.push("popover-from-actions-label"),`
  • ${p}
  • `):f?(i.push("item-link item-content"),T("li",null,T("a",{class:i.join(" ")},T("div",{class:"item-media"},f),T("div",{class:"item-inner"},T("div",{class:"item-title"},p))))):(i.push("list-button"),T("li",null,T("a",{class:i.join(" ")},p)))}))))))}};const ZE={name:"actions",params:{actions:{convertToPopover:!0,forceToPopover:!1,backdrop:!0,backdropEl:void 0,backdropUnique:!1,cssClass:null,closeByBackdropClick:!0,closeOnEscape:!1,render:null,renderPopover:null,containerEl:null}},static:{Actions:bo},create(){const t=this;t.actions=pn({app:t,constructor:bo,defaultSelector:".actions-modal.modal-in"})},clicks:{".actions-open":function(e,n){n===void 0&&(n={}),this.actions.open(n.actions,n.animate,e)},".actions-close":function(e,n){n===void 0&&(n={}),this.actions.close(n.actions,n.animate,e)}}};let vo=class extends en{constructor(e,n){const a=W({on:{}},e.params.sheet,n);super(e,a);const r=this,s=fe(),i=ye(),o=Xe(),l=Ie();r.params=a,typeof r.params.backdrop>"u"&&(r.params.backdrop=e.theme!=="ios");let c;if(r.params.el?c=C(r.params.el).eq(0):c=C(r.params.content).filter(A=>A.nodeType===1).eq(0),c&&c.length>0&&c[0].f7Modal)return c[0].f7Modal;if(c.length===0)return r.destroy();let d;r.params.backdrop&&r.params.backdropEl?d=C(r.params.backdropEl):r.params.backdrop&&(r.params.backdropUnique?(d=C('
    '),r.$containerEl.append(d)):d=r.$containerEl.children(".sheet-backdrop"),d.length===0&&(d=C('
    '),r.$containerEl.append(d))),W(r,{app:e,push:c.hasClass("sheet-modal-push")||r.params.push,$el:c,el:c[0],$backdropEl:d,backdropEl:d&&d[0],type:"sheet",$htmlEl:C("html")}),r.params.push&&c.addClass("sheet-modal-push");let u;function p(){const A=C(r.params.scrollToEl).eq(0);if(A.length===0||(u=A.parents(".page-content"),u.length===0))return;const z=parseInt(u.css("padding-top"),10),q=parseInt(u.css("padding-bottom"),10),U=u[0].offsetHeight-z-c.height(),K=u[0].scrollHeight-z-c.height(),j=u.scrollTop();let Q;const ae=A.offset().top-z+A[0].offsetHeight;if(ae>U){const Z=j+ae-U;Z+U>K&&(Q=Z+U-K+q,U===K&&(Q=c.height()),u.css({"padding-bottom":`${Q}px`})),u.scrollTop(Z,300)}}function f(){u&&u.length>0&&u.css({"padding-bottom":""})}function h(A){const z=A.target,q=C(z);!l.desktop&&l.cordova&&(s.Keyboard&&s.Keyboard.isVisible||s.cordova.plugins&&s.cordova.plugins.Keyboard&&s.cordova.plugins.Keyboard.isVisible)||q.closest(r.el).length===0&&(r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl&&r.backdropEl===z||r.params.closeByOutsideClick)&&r.close()}function m(A){A.keyCode===27&&r.params.closeOnEscape&&r.close()}let b;function w(A){return(e.height-A*2)/e.height}const g=r.params.breakpoints&&r.params.breakpoints.length>0;let v=!1,y,E,k,$,M,x=!1,F,S,I,B,P,L,V,H,D,O,_,N,G,ee=[],X,se=!0;function ne(A){v||!(r.params.swipeToClose||r.params.swipeToStep)||!A.isTrusted||r.params.swipeHandler&&C(A.target).closest(r.params.swipeHandler).length===0||C(A.target).closest(".sortable-handler").length>0||(v=!0,x=!1,y={x:A.type==="touchstart"?A.targetTouches[0].pageX:A.pageX,y:A.type==="touchstart"?A.targetTouches[0].pageY:A.pageY},$=Ot(),k=void 0,F=c.hasClass("sheet-modal-top"),!r.params.swipeHandler&&A.type==="touchstart"&&(O=C(A.target).closest(".page-content")[0]))}function ie(A){if(!v||!A.isTrusted)return;if(E={x:A.type==="touchmove"?A.targetTouches[0].pageX:A.pageX,y:A.type==="touchmove"?A.targetTouches[0].pageY:A.pageY},typeof k>"u"&&(k=!!(k||Math.abs(E.x-y.x)>Math.abs(E.y-y.y))),k){v=!1,x=!1;return}M=y.y-E.y;const z=M<0?"to-bottom":"to-top";if(!x){if(O&&!c.hasClass("modal-in-swipe-step")&&(_=O.scrollTop,N=O.scrollHeight,G=O.offsetHeight,N!==G&&!(z==="to-bottom"&&_===0)&&!(z==="to-top"&&_===N-G))){c.transform(""),v=!1,x=!1;return}r.push&&b&&(H=e.$el.children(".view, .views")),P=c[0].offsetHeight,I=mr(c[0],"y"),F?(L=r.params.swipeToClose?-P:-S,V=0):(L=0,V=r.params.swipeToClose?P:g?ee[0]:S),x=!0}if(B=I-M,B=Math.min(Math.max(B,L),V),A.preventDefault(),g){let q=F?1+B/P:1-B/P;q=Math.abs(q),q=Math.min(Math.max(q,0),1),oe(q),be(q)}if(r.push&&b&&!g){let q=(B-I)/P;r.params.swipeToStep&&(F?q=B/S:q=1-(S-B)/S),q=Math.abs(q),q=Math.min(Math.max(q,0),1);const U=1-q,K=1-(1-w(b))*U;H.transition(0).forEach(j=>{j.style.setProperty("transform",`translate3d(0,0,0) scale(${K})`,"important")}),r.params.swipeToStep&&H.css("border-radius",`${D*U}px`)}if(c.transition(0).transform(`translate3d(0,${B}px,0)`),r.params.swipeToStep){let q;F?q=1-B/S:q=(S-B)/S,q=Math.min(Math.max(q,0),1),c.trigger("sheet:stepprogress",q),r.emit("local::stepProgress sheetStepProgress",r,q)}}function le(){if(v=!1,!x)return;x=!1,c.transform("").transition(""),r.push&&b&&(H.transition(""),g||(H.transform(""),H.css("border-radius","")));const A=M<0?"to-bottom":"to-top",z=Math.abs(M);if(z===0||B===I)return;const q=new Date().getTime()-$;if(!r.params.swipeToStep&&!g){if(A!==(F?"to-top":"to-bottom"))return;(q<300&&z>20||q>=300&&z>P/2)&&r.close();return}const U=F?"to-bottom":"to-top",K=F?"to-top":"to-bottom",j=Math.abs(B),Q=Math.abs(S);if(q<300&&z>10&&g)A===U&&typeof X<"u"&&(X===n.breakpoints.length-1?r.setBreakpoint(1):(X=Math.min(ee.length-1,X+1),r.setBreakpoint(n.breakpoints[X]))),A===K&&(X===0?r.close():(typeof X>"u"?X=n.breakpoints.length-1:X=Math.max(0,X-1),r.setBreakpoint(n.breakpoints[X])));else if(q<300&&z>10){A===U&&jQ&&(r.params.swipeToClose?r.close():(c.addClass("modal-in-swipe-step"),c.trigger("sheet:stepprogress",0),r.emit("local::stepProgress sheetStepProgress",r,0),r.emit("local::_swipeStep",!0),c.trigger("sheet:stepclose"),r.emit("local::stepClose sheetStepClose",r),r.push&&b&&(r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),H.css("border-radius","0px")))),A===K&&j<=Q&&(c.addClass("modal-in-swipe-step"),c.trigger("sheet:stepprogress",0),r.emit("local::stepProgress sheetStepProgress",r,0),r.emit("local::_swipeStep",!0),c.trigger("sheet:stepclose"),r.emit("local::stepClose sheetStepClose",r),r.push&&b&&(r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),H.css("border-radius","0px")));return}if(q>=300&&g){const ae=[P,...ee,0],Z=ae.reduce((he,re)=>Math.abs(re-B)=300){const ae=!c.hasClass("modal-in-swipe-step");ae?ae&&(j>Q+(P-Q)/2?r.params.swipeToClose&&r.close():j>Q/2&&(c.addClass("modal-in-swipe-step"),c.trigger("sheet:stepprogress",0),r.emit("local::stepProgress sheetStepProgress",r,0),r.emit("local::_swipeStep",!0),c.trigger("sheet:stepclose"),r.emit("local::stepClose sheetStepClose",r),r.push&&b&&(r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),H.css("border-radius","0px")))):j(P-Q)/2&&r.params.swipeToClose&&r.close()}}const be=A=>{const{pushBreakpoint:z}=n;if(!(z===null||typeof z>"u"||!r.push||!b))if(A>=z)r.$htmlEl.addClass("with-modal-sheet-push").removeClass("with-modal-sheet-push-closing"),H.transition("").forEach(q=>{q.style.setProperty("transform",`translate3d(0,0,0) scale(${w(b)})`,"important")}),H.css("border-radius",`${D*1}px`);else{const q=[0,...n.breakpoints,1],U=q[q.indexOf(z)-1];if(A<=U)H.transition("").css("transform",""),H.css("border-radius",""),r.$htmlEl.removeClass("with-modal-sheet-push"),A===U&&r.$htmlEl.addClass("with-modal-sheet-push-closing");else{const K=(A-U)/(z-U);r.$htmlEl.addClass("with-modal-sheet-push").removeClass("with-modal-sheet-push-closing"),H.transition(0).forEach(j=>{j.style.setProperty("transform",`translate3d(0,0,0) scale(${1-(1-w(b))*K})`,"important")}),H.css("border-radius",`${D*K}px`)}}},oe=A=>{const{backdrop:z,backdropBreakpoint:q}=n;if(!(!q||!z||!d.length))if(A>=q)se||d.transition("").css({opacity:"",pointerEvents:""}),se=!0;else{const U=[0,...n.breakpoints,1],K=U[U.indexOf(q)-1];if(A<=K)se&&d.transition("").css({opacity:0,pointerEvents:"none"}),se=!1;else{const j=(A-K)/(q-K);d.transition(0).css({opacity:j,pointerEvents:"auto"})}}};r.calcBreakpoints=()=>{if(!g)return;const A=c[0].offsetHeight,z=c.hasClass("sheet-modal-top");ee=[],r.params.breakpoints.forEach(q=>{ee.push((A-A*q)*(z?-1:1))})},r.setBreakpoint=A=>{if(!g)return r;if(A===1)r.opened||r.open(),c.removeClass("modal-in-breakpoint"),X=void 0,oe(A),be(A),c.trigger("sheet:breakpoint",A),r.emit("local::breakpoint sheetBreakpoint",r,A);else if(A===0)c.trigger("sheet:breakpoint",A),r.emit("local::breakpoint sheetBreakpoint",r,A),r.close();else{const z=n.breakpoints.indexOf(A);if(z<0)return r;r.opened||r.open(),oe(A),be(A),c.trigger("sheet:breakpoint",A),r.emit("local::breakpoint sheetBreakpoint",r,A),X=z,c[0].style.setProperty("--f7-sheet-breakpoint",`${ee[z]}px`),c.addClass("modal-in-breakpoint")}return r};const ce=()=>{r.calcBreakpoints(),typeof X<"u"&&r.setBreakpoint(n.breakpoints[X])};r.setSwipeStep=function(z){z===void 0&&(z=!0);const q=c.find(".sheet-modal-swipe-step").eq(0);q.length&&(c.hasClass("sheet-modal-top")?S=-(q.offset().top-c.offset().top+q[0].offsetHeight):S=c[0].offsetHeight-(q.offset().top-c.offset().top+q[0].offsetHeight),c[0].style.setProperty("--f7-sheet-swipe-step",`${S}px`),z||(c.addClass("modal-in-swipe-step"),r.emit("local::_swipeStep",!0)))};function pe(){g?ce():r.setSwipeStep(!0)}const R=o.passiveListener?{passive:!0}:!1;return(r.params.swipeToClose||r.params.swipeToStep||g)&&(c.on(e.touchEvents.start,ne,R),e.on("touchmove",ie),e.on("touchend:passive",le),r.once("sheetDestroy",()=>{c.off(e.touchEvents.start,ne,R),e.off("touchmove",ie),e.off("touchend:passive",le)})),r.on("open",()=>{r.params.closeOnEscape&&C(i).on("keydown",m),c.prevAll(".popup.modal-in").addClass("popup-behind"),e.on("resize",pe),r.params.scrollToEl&&p(),r.push&&(b=parseInt(c.css("--f7-sheet-push-offset"),10),Number.isNaN(b)&&(b=0),b||(b=e.theme==="ios"?44:48),r.$htmlEl[0].style.setProperty("--f7-sheet-push-offset",`${b}px`),c.addClass("sheet-modal-push"),g||r.$htmlEl.addClass("with-modal-sheet-push"),!r.params.swipeToStep&&!g?r.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",w(b)):(H=e.$el.children(".view, .views"),D=e.theme==="ios"?10:16,H.css("border-radius","0px"))),g?(r.calcBreakpoints(),r.setBreakpoint(n.breakpoints[0])):r.params.swipeToStep&&r.setSwipeStep(!1)}),r.on("opened",()=>{(r.params.closeByOutsideClick||r.params.closeByBackdropClick)&&e.on("click",h)}),r.on("close",()=>{X=void 0,(r.params.swipeToStep||g)&&(c.removeClass("modal-in-swipe-step modal-in-breakpoint"),r.emit("local::_swipeStep",!1)),e.off("resize",pe),r.params.closeOnEscape&&C(i).off("keydown",m),r.params.scrollToEl&&f(),(r.params.closeByOutsideClick||r.params.closeByBackdropClick)&&e.off("click",h),c.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),r.push&&b&&(r.$htmlEl.removeClass("with-modal-sheet-push"),r.$htmlEl.addClass("with-modal-sheet-push-closing"),H&&(H.transform(""),H.css("border-radius","")))}),r.on("closed",()=>{r.push&&b&&(r.$htmlEl.removeClass("with-modal-sheet-push-closing"),r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),r.$htmlEl[0].style.removeProperty("--f7-sheet-push-offset"))}),r.stepOpen=function(){c.removeClass("modal-in-swipe-step"),r.emit("local::_swipeStep",!1),r.push&&(b||(b=parseInt(c.css("--f7-sheet-push-offset"),10),Number.isNaN(b)&&(b=0)),b&&r.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",w(b)))},r.stepClose=function(){c.addClass("modal-in-swipe-step"),r.emit("local::_swipeStep",!0),r.push&&r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale")},r.stepToggle=function(){c.toggleClass("modal-in-swipe-step"),r.emit("local::_swipeStep",c.hasClass("modal-in-swipe-step"))},c[0].f7Modal=r,r}};const eC={name:"sheet",params:{sheet:{push:!1,backdrop:void 0,backdropEl:void 0,backdropUnique:!1,closeByBackdropClick:!0,closeByOutsideClick:!1,closeOnEscape:!1,swipeToClose:!1,swipeToStep:!1,breakpoints:[],backdropBreakpoint:0,pushBreakpoint:0,swipeHandler:null,containerEl:null}},static:{Sheet:vo},create(){const t=this;t.sheet=W({},pn({app:t,constructor:vo,defaultSelector:".sheet-modal.modal-in"}),{stepOpen(e){const n=t.sheet.get(e);if(n&&n.stepOpen)return n.stepOpen()},stepClose(e){const n=t.sheet.get(e);if(n&&n.stepClose)return n.stepClose()},stepToggle(e){const n=t.sheet.get(e);if(n&&n.stepToggle)return n.stepToggle()},setBreakpoint(e,n){const a=t.sheet.get(e);if(a&&a.setBreakpoint)return a.setBreakpoint(n)}})},clicks:{".sheet-open":function(e,n){n===void 0&&(n={});const a=this;C(".sheet-modal.modal-in").length>0&&n.sheet&&C(n.sheet)[0]!==C(".sheet-modal.modal-in")[0]&&a.sheet.close(".sheet-modal.modal-in"),a.sheet.open(n.sheet,n.animate,e)},".sheet-close":function(e,n){n===void 0&&(n={}),this.sheet.close(n.sheet,n.animate,e)}}};let Jr=class extends en{constructor(e,n){const a=W({on:{}},e.params.toast,n);super(e,a);const r=this,s=fe();r.app=e,r.params=a;const{closeButton:i,closeTimeout:o}=r.params;let l;if(r.params.el)l=C(r.params.el);else{const d=r.render();l=C(d)}if(l&&l.length>0&&l[0].f7Modal)return l[0].f7Modal;if(l.length===0)return r.destroy();W(r,{$el:l,el:l[0],type:"toast"}),l[0].f7Modal=r,i&&(l.find(".toast-button").on("click",()=>{r.emit("local::closeButtonClick toastCloseButtonClick",r),r.close()}),r.on("beforeDestroy",()=>{l.find(".toast-button").off("click")}));let c;return r.on("open",()=>{C(".toast.modal-in").each(d=>{const u=e.toast.get(d);d!==r.el&&u&&u.close()}),o&&(c=lt(()=>{r.close()},o))}),r.on("close",()=>{s.clearTimeout(c)}),r.params.destroyOnClose&&r.once("closed",()=>{setTimeout(()=>{r.destroy()},0)}),r}render(){const e=this;if(e.params.render)return e.params.render.call(e,e);const{position:n,horizontalPosition:a,cssClass:r,icon:s,text:i,closeButton:o,closeButtonColor:l,closeButtonText:c}=e.params,d=n==="top"||n==="bottom"?`toast-horizontal-${a}`:"";return T("div",{class:`toast toast-${n} ${d} ${r||""} ${s?"toast-with-icon":""}`},T("div",{class:"toast-content"},s&&T("div",{class:"toast-icon"},s),T("div",{class:"toast-text"},i),o&&!s&&T("a",{class:`toast-button button ${l?`color-${l}`:""}`},c)))}};const tC={name:"toast",static:{Toast:Jr},create(){const t=this;t.toast=W({},pn({app:t,constructor:Jr,defaultSelector:".toast.modal-in"}),{show(e){return W(e,{destroyOnClose:!0}),new Jr(t,e).open()}})},params:{toast:{icon:null,text:null,position:"bottom",horizontalPosition:"left",closeButton:!1,closeButtonColor:null,closeButtonText:"Ok",closeTimeout:null,cssClass:null,render:null,containerEl:null}}},va={init(t){const e=this,n={iosPreloaderContent:Hn,mdPreloaderContent:Rn},a=C(t);a.length===0||a.children(".preloader-inner").length>0||a.children(".preloader-inner-line").length>0||a.append(n[`${e.theme}PreloaderContent`])},visible:!1,show(t){t===void 0&&(t="white");const e=this;if(va.visible)return;const a={iosPreloaderContent:Hn,mdPreloaderContent:Rn}[`${e.theme}PreloaderContent`]||"";C("html").addClass("with-modal-preloader"),e.$el.append(` + `,destroyOnClose:n});return f||h.setProgress(u),h.open()}})}};let mo=class extends en{constructor(e,n){const a=W({on:{}},e.params.popup,n);super(e,a);const r=this,s=fe(),i=ye(),o=Xe(),l=Ie();r.params=a;let c;if(r.params.el?c=C(r.params.el).eq(0):c=C(r.params.content).filter(N=>N.nodeType===1).eq(0),c&&c.length>0&&c[0].f7Modal)return c[0].f7Modal;if(c.length===0)return r.destroy();let d;r.params.backdrop&&r.params.backdropEl?d=C(r.params.backdropEl):r.params.backdrop&&(r.params.backdropUnique?(d=C(''),r.$containerEl.append(d)):d=r.$containerEl.children(".popup-backdrop"),d.length===0&&(d=C(''),r.$containerEl.append(d))),W(r,{app:e,push:c.hasClass("popup-push")||r.params.push,$el:c,el:c[0],$backdropEl:d,backdropEl:d&&d[0],type:"popup",$htmlEl:C("html")}),r.params.push&&c.addClass("popup-push");function u(N){const G=N.target,ee=C(G);if(!(!l.desktop&&l.cordova&&(s.Keyboard&&s.Keyboard.isVisible||s.cordova.plugins&&s.cordova.plugins.Keyboard&&s.cordova.plugins.Keyboard.isVisible))&&ee.closest(r.el).length===0&&r.params&&r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl&&r.backdropEl===G){let se=!0;r.$el.nextAll(".popup.modal-in").each(ne=>{const ie=ne.f7Modal;ie&&ie.params.closeByBackdropClick&&ie.params.backdrop&&ie.backdropEl===r.backdropEl&&(se=!1)}),se&&r.close()}}function p(N){N.keyCode===27&&r.params.closeOnEscape&&r.close()}let f,h;function m(N){return(e.height-N*2)/e.height}let b=!0,w=!1,g,v,y,E,k,$=!1,M,x,F,S,I,B;function P(N){w||!b||!r.params.swipeToClose||!N.isTrusted||r.params.swipeHandler&&C(N.target).closest(r.params.swipeHandler).length===0||C(N.target).closest(".sortable-handler").length>0||(w=!0,$=!1,g={x:N.type==="touchstart"?N.targetTouches[0].pageX:N.pageX,y:N.type==="touchstart"?N.targetTouches[0].pageY:N.pageY},E=It(),y=void 0,!r.params.swipeHandler&&N.type==="touchstart"&&(M=C(N.target).closest(".page-content")[0]))}function L(N){if(!w||!N.isTrusted)return;if(v={x:N.type==="touchmove"?N.targetTouches[0].pageX:N.pageX,y:N.type==="touchmove"?N.targetTouches[0].pageY:N.pageY},typeof y>"u"&&(y=!!(y||Math.abs(v.x-g.x)>Math.abs(v.y-g.y))),y){w=!1,$=!1;return}k=g.y-v.y,h&&f&&k>0&&(k=0);const G=k<0?"to-bottom":"to-top";if(c.transition(0),typeof r.params.swipeToClose=="string"&&G!==r.params.swipeToClose){c.transform(""),c.transition("");return}if($)r.emit("local::swipeMove popupSwipeMove",r),r.$el.trigger("popup:swipemove");else{if(h&&f&&(I=c[0].offsetHeight,B=c.prevAll(".popup.modal-in").eq(0),B.length===0&&(B=e.$el.children(".view, .views"))),M&&(x=M.scrollTop,S=M.scrollHeight,F=M.offsetHeight,S!==F&&!(G==="to-bottom"&&x===0)&&!(G==="to-top"&&x===S-F))){c.transform(""),c.transition(""),w=!1,$=!1;return}$=!0,r.emit("local::swipeStart popupSwipeStart",r),r.$el.trigger("popup:swipestart")}if(N.preventDefault(),h&&f){const ee=1-Math.abs(k/I),X=1-(1-m(f))*ee;B.hasClass("popup")?B.hasClass("popup-push")?B.transition(0).forEach(se=>{se.style.setProperty("transform",`translate3d(0, calc(-1 * ${ee} * (var(--f7-popup-push-offset) + 10px)) , 0px) scale(${X})`,"important")}):B.transition(0).forEach(se=>{se.style.setProperty("transform",`translate3d(0, 0px , 0px) scale(${X})`,"important")}):B.transition(0).forEach(se=>{se.style.setProperty("transform",`translate3d(0,0,0) scale(${X})`,"important")})}c.transition(0).transform(`translate3d(0,${-k}px,0)`)}function V(N){if(!N.isTrusted||(w=!1,!$))return;r.emit("local::swipeEnd popupSwipeEnd",r),r.$el.trigger("popup:swipeend"),$=!1,b=!1,c.transition(""),h&&f&&B.transition("").transform("");const G=k<=0?"to-bottom":"to-top";if(typeof r.params.swipeToClose=="string"&&G!==r.params.swipeToClose){c.transform(""),b=!0;return}const ee=Math.abs(k),X=new Date().getTime()-E;if(X<300&&ee>20||X>=300&&ee>100){lt(()=>{G==="to-bottom"?c.addClass("swipe-close-to-bottom"):c.addClass("swipe-close-to-top"),c.transform(""),r.emit("local::swipeclose popupSwipeClose",r),r.$el.trigger("popup:swipeclose"),r.close(),b=!0});return}b=!0,c.transform("")}const H=o.passiveListener?{passive:!0}:!1;r.params.swipeToClose&&(c.on(e.touchEvents.start,P,H),e.on("touchmove",L),e.on("touchend:passive",V),r.once("popupDestroy",()=>{c.off(e.touchEvents.start,P,H),e.off("touchmove",L),e.off("touchend:passive",V)}));let D;const O=()=>{const N=h;r.push&&(h=r.push&&(e.width<630||e.height<630||c.hasClass("popup-tablet-fullscreen"))),h&&!N?_():h&&N?r.$htmlEl[0].style.setProperty("--f7-popup-push-scale",m(f)):!h&&N&&(r.$htmlEl.removeClass("with-modal-popup-push"),r.$htmlEl[0].style.removeProperty("--f7-popup-push-scale"))},_=()=>{e.off("resize",O),r.push&&(h=r.push&&(e.width<630||e.height<630||c.hasClass("popup-tablet-fullscreen"))),h&&(f=parseInt(c.css("--f7-popup-push-offset"),10),Number.isNaN(f)&&(f=0),f||(f=e.theme==="ios"?44:48),r.$htmlEl[0].style.setProperty("--f7-popup-push-offset",`${f}px`),c.addClass("popup-push"),r.$htmlEl.addClass("with-modal-popup-push"),r.$htmlEl[0].style.setProperty("--f7-popup-push-scale",m(f))),e.on("resize",O)};return r.on("open",()=>{D=!1,r.params.closeOnEscape&&C(i).on("keydown",p),c.prevAll(".popup.modal-in").addClass("popup-behind"),_()}),r.on("opened",()=>{c.removeClass("swipe-close-to-bottom swipe-close-to-top"),r.params.closeByBackdropClick&&e.on("click",u)}),r.on("close",()=>{D=r.$el.prevAll(".popup-push.modal-in").length>0,r.params.closeOnEscape&&C(i).off("keydown",p),r.params.closeByBackdropClick&&e.off("click",u),c.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),h&&f&&!D&&(r.$htmlEl.removeClass("with-modal-popup-push"),r.$htmlEl.addClass("with-modal-popup-push-closing")),e.off("resize",O)}),r.on("closed",()=>{c.removeClass("popup-behind"),h&&f&&!D&&(r.$htmlEl.removeClass("with-modal-popup-push-closing"),r.$htmlEl[0].style.removeProperty("--f7-popup-push-scale"),r.$htmlEl[0].style.removeProperty("--f7-popup-push-offset"))}),c[0].f7Modal=r,r}};const JE={name:"popup",params:{popup:{backdrop:!0,backdropEl:void 0,backdropUnique:!1,closeByBackdropClick:!0,closeOnEscape:!1,swipeToClose:!1,swipeHandler:null,push:!1,containerEl:null}},static:{Popup:mo},create(){const t=this;t.popup=pn({app:t,constructor:mo,defaultSelector:".popup.modal-in",parentSelector:".popup"})},clicks:{".popup-open":function(e,n){n===void 0&&(n={}),this.popup.open(n.popup,n.animate,e)},".popup-close":function(e,n){n===void 0&&(n={}),this.popup.close(n.popup,n.animate,e)}}};let go=class extends en{constructor(e,n){const a=W({on:{}},n);super(e,a);const r=this;r.params=a;let s;return r.params.el?s=C(r.params.el).eq(0):s=C(r.params.content).filter(i=>i.nodeType===1).eq(0),s&&s.length>0&&s[0].f7Modal?s[0].f7Modal:s.length===0?r.destroy():(W(r,{app:e,$el:s,el:s[0],type:"loginScreen"}),s[0].f7Modal=r,r)}};const ZE={name:"loginScreen",static:{LoginScreen:go},create(){const t=this;t.loginScreen=pn({app:t,constructor:go,defaultSelector:".login-screen.modal-in"})},clicks:{".login-screen-open":function(e,n){n===void 0&&(n={}),this.loginScreen.open(n.loginScreen,n.animate,e)},".login-screen-close":function(e,n){n===void 0&&(n={}),this.loginScreen.close(n.loginScreen,n.animate,e)}}};let Qr=class extends en{constructor(e,n){const a=W({on:{}},e.params.popover,n);super(e,a);const r=this,s=Ie(),i=fe(),o=ye();r.params=a;let l;if(r.params.el?l=C(r.params.el).eq(0):l=C(r.params.content).filter(v=>v.nodeType===1).eq(0),l&&l.length>0&&l[0].f7Modal)return l[0].f7Modal;const c=C(r.params.targetEl).eq(0);if(l.length===0)return r.destroy();let d;const u=r.params.backdrop&&e.$el.find(".popover.modal-in").filter(v=>v!==l[0]).length>0;r.params.backdrop&&r.params.backdropEl?d=C(r.params.backdropEl):r.params.backdrop&&(r.params.backdropUnique||u?(d=C('
    '),d[0].f7PopoverRef=r,r.$containerEl.append(d)):d=r.$containerEl.children(".popover-backdrop"),d.length===0&&(d=C('
    '),r.$containerEl.append(d)));let p;l.find(".popover-arrow").length===0&&r.params.arrow?(p=C('
    '),l.prepend(p)):p=l.find(".popover-arrow");const f=r.open;W(r,{app:e,$el:l,el:l[0],$targetEl:c,targetEl:c[0],$arrowEl:p,arrowEl:p[0],$backdropEl:d,backdropEl:d&&d[0],type:"popover",forceBackdropUnique:u,open(){for(var v=arguments.length,y=new Array(v),E=0;E{r.resize(),e.on("resize",h),C(i).on("keyboardDidShow keyboardDidHide",h),r.on("popoverClose popoverBeforeDestroy",()=>{e.off("resize",h),C(i).off("keyboardDidShow keyboardDidHide",h)})});let m=null;function b(v){m=v.target}function w(v){const y=v.target,E=C(y);if(!(!s.desktop&&s.cordova&&(i.Keyboard&&i.Keyboard.isVisible||i.cordova.plugins&&i.cordova.plugins.Keyboard&&i.cordova.plugins.Keyboard.isVisible))&&E.closest(r.el).length===0){if(r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl&&r.backdropEl===y&&m===y)r.close();else if(r.params.closeByOutsideClick&&m===y){const $=E.hasClass("popover-backdrop-unique")&&y.f7PopoverRef!==r||E.hasClass("popover-backdrop")&&y!==r.backdropEl,M=y.closest(".popover")&&y.closest(".popover")!==r.$el[0];!$&&!M&&r.close()}}}function g(v){v.keyCode===27&&r.params.closeOnEscape&&r.close()}return r.params.closeOnEscape&&(r.on("popoverOpen",()=>{C(o).on("keydown",g)}),r.on("popoverClose",()=>{C(o).off("keydown",g)})),r.on("popoverOpened",()=>{(r.params.closeByOutsideClick||r.params.closeByBackdropClick)&&(e.on("touchstart",b),e.on("click",w))}),r.on("popoverClose",()=>{(r.params.closeByOutsideClick||r.params.closeByBackdropClick)&&(e.off("touchstart",b),e.off("click",w))}),l[0].f7Modal=r,r}resize(){const e=this,{app:n,$el:a,$targetEl:r,$arrowEl:s}=e,{targetX:i,targetY:o,verticalPosition:l}=e.params;a.css({left:"",top:""});const[c,d]=[a.width(),a.height()];let u=0,p,f;const h=s.length>0,m=n.theme==="ios"?13:24;h&&(s.removeClass("on-left on-right on-top on-bottom").css({left:"",top:""}),u=s.width()/2),a.removeClass("popover-on-left popover-on-right popover-on-top popover-on-bottom popover-on-middle").css({left:"",top:""});let b,w,g,v,y=parseInt(C("html").css("--f7-safe-area-top"),10),E=parseInt(C("html").css("--f7-safe-area-left"),10),k=parseInt(C("html").css("--f7-safe-area-right"),10);if(Number.isNaN(y)&&(y=0),Number.isNaN(E)&&(E=0),Number.isNaN(k)&&(k=0),r&&r.length>0){b=r.outerWidth(),w=r.outerHeight();const B=r.offset();g=B.left-n.left,v=B.top-n.top;const P=r.parents(".page");P.length>0&&(v-=P[0].scrollTop)}else typeof i<"u"&&o!=="undefined"&&(g=i,v=o,b=e.params.targetWidth||0,w=e.params.targetHeight||0);let[$,M,x]=[0,0,0];const F=l==="auto"?!1:l;let S=F||"top";F==="top"||!F&&d+un.width-5-k&&($=n.width-5-k-c),x-=$,h&&(S==="top"&&s.addClass("on-bottom"),S==="bottom"&&s.addClass("on-top"),p=c/2-u+x,p=Math.max(Math.min(p,c-u*2-m),m),s.css({left:`${p}px`}))):S==="middle"&&($=g-c-u,h&&s.addClass("on-right"),($<5||$+c+k>n.width||$n.width&&($=n.width-c-5-k),$1){const o=C(n).parents(".page");o.length&&r.each(l=>{const c=C(l);c.parents(o)[0]===o[0]&&(r=c)})}r.length>1&&(r=r.eq(r.length-1));let s=r[0].f7Modal;const i=r.dataset();return s||(s=new Qr(t,Object.assign({el:r,targetEl:n},i))),s.open(n,a)}})},clicks:{".popover-open":function(e,n){n===void 0&&(n={}),this.popover.open(n.popover,e,n.animate)},".popover-close":function(e,n){n===void 0&&(n={}),this.popover.close(n.popover,n.animate,e)}}};let bo=class extends en{constructor(e,n){const a=W({on:{}},e.params.actions,n);super(e,a);const r=this,s=Ie(),i=fe(),o=ye();r.params=a;let l;r.params.buttons&&(l=r.params.buttons,Array.isArray(l[0])||(l=[l])),r.groups=l;let c;if(r.params.el?c=C(r.params.el).eq(0):r.params.content?c=C(r.params.content).filter(w=>w.nodeType===1).eq(0):r.params.buttons&&(r.params.convertToPopover&&(r.popoverHtml=r.renderPopover()),r.actionsHtml=r.render()),c&&c.length>0&&c[0].f7Modal)return c[0].f7Modal;if(c&&c.length===0&&!(r.actionsHtml||r.popoverHtml))return r.destroy();let d;r.params.backdrop&&r.params.backdropEl?d=C(r.params.backdropEl):r.params.backdrop&&(r.params.backdropUnique?(d=C(''),r.$containerEl.append(d)):d=r.$containerEl.children(".actions-backdrop"),d.length===0&&(d=C('
    '),r.$containerEl.append(d)));const u=r.open,p=r.close;let f;function h(w){const g=C(this);let v,y;if(g.hasClass("list-button")||g.hasClass("item-link")?(v=g.parents("li").index(),y=g.parents(".list").index()):(v=g.index(),y=g.parents(".actions-group").index()),typeof l<"u"){const E=l[y][v];E.onClick&&E.onClick(r,w),r.params.onClick&&r.params.onClick(r,w),E.close!==!1&&r.close()}}r.open=function(g){let v=!1;const{targetEl:y,targetX:E,targetY:k,targetWidth:$,targetHeight:M}=r.params;return r.params.convertToPopover&&(y||E!==void 0&&k!==void 0)&&(r.params.forceToPopover||s.ios&&s.ipad||e.width>=768||s.desktop)&&(v=!0),v&&r.popoverHtml?(f=e.popover.create({containerEl:r.params.containerEl,content:r.popoverHtml,backdrop:r.params.backdrop,targetEl:y,targetX:E,targetY:k,targetWidth:$,targetHeight:M,on:{open(){r.$el||(r.$el=f.$el),r.$el.trigger(`modal:open ${r.type.toLowerCase()}:open`),r.emit(`local::open modalOpen ${r.type}Open`,r)},opened(){r.$el||(r.$el=f.$el),r.$el.trigger(`modal:opened ${r.type.toLowerCase()}:opened`),r.emit(`local::opened modalOpened ${r.type}Opened`,r)},close(){r.$el||(r.$el=f.$el),r.$el.trigger(`modal:close ${r.type.toLowerCase()}:close`),r.emit(`local::close modalClose ${r.type}Close`,r)},closed(){r.$el||(r.$el=f.$el),r.$el.trigger(`modal:closed ${r.type.toLowerCase()}:closed`),r.emit(`local::closed modalClosed ${r.type}Closed`,r)}}}),f.open(g),f.once("popoverOpened",()=>{f.$el.find(".list-button, .item-link").each(x=>{C(x).on("click",h)})}),f.once("popoverClosed",()=>{f.$el.find(".list-button, .item-link").each(x=>{C(x).off("click",h)}),lt(()=>{f.destroy(),f=void 0})})):(r.$el=r.actionsHtml?C(r.actionsHtml):r.$el,r.$el[0].f7Modal=r,r.groups&&(r.$el.find(".actions-button").each(x=>{C(x).on("click",h)}),r.once("actionsClosed",()=>{r.$el.find(".actions-button").each(x=>{C(x).off("click",h)})})),r.el=r.$el[0],u.call(r,g)),r},r.close=function(g){return f?f.close(g):p.call(r,g),r},W(r,{app:e,$el:c,el:c?c[0]:void 0,$backdropEl:d,backdropEl:d&&d[0],type:"actions"});function m(w){const g=w.target,v=C(g);!s.desktop&&s.cordova&&(i.Keyboard&&i.Keyboard.isVisible||i.cordova.plugins&&i.cordova.plugins.Keyboard&&i.cordova.plugins.Keyboard.isVisible)||v.closest(r.el).length===0&&(r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl&&r.backdropEl===g||r.params.closeByOutsideClick)&&r.close()}function b(w){w.keyCode===27&&r.params.closeOnEscape&&r.close()}return r.params.closeOnEscape&&(r.on("open",()=>{C(o).on("keydown",b)}),r.on("close",()=>{C(o).off("keydown",b)})),r.on("opened",()=>{(r.params.closeByBackdropClick||r.params.closeByOutsideClick)&&e.on("click",m)}),r.on("close",()=>{(r.params.closeByBackdropClick||r.params.closeByOutsideClick)&&e.off("click",m)}),c&&(c[0].f7Modal=r),r}render(){const e=this;if(e.params.render)return e.params.render.call(e,e);const{groups:n}=e,a=e.params.cssClass;return T("div",{class:`actions-modal${e.params.grid?" actions-grid":""} ${a||""}`},n.map(r=>T("div",{class:"actions-group"},r.map(s=>{const i=[`actions-${s.label?"label":"button"}`],{color:o,bg:l,strong:c,disabled:d,label:u,text:p,icon:f}=s;return o&&i.push(`color-${o}`),l&&i.push(`bg-color-${l}`),c&&i.push("actions-button-strong"),d&&i.push("disabled"),u?T("div",{class:i.join(" ")},p):T("div",{class:i.join(" ")},f&&T("div",{class:"actions-button-media"},f),T("div",{class:"actions-button-text"},p))}))))}renderPopover(){const e=this;if(e.params.renderPopover)return e.params.renderPopover.call(e,e);const{groups:n}=e,a=e.params.cssClass;return T("div",{class:`popover popover-from-actions ${a||""}`},T("div",{class:"popover-inner"},n.map(r=>T("div",{class:"list"},T("ul",null,r.map(s=>{const i=[],{color:o,bg:l,strong:c,disabled:d,label:u,text:p,icon:f}=s;return o&&i.push(`color-${o}`),l&&i.push(`bg-color-${l}`),c&&i.push("popover-from-actions-strong"),d&&i.push("disabled"),u?(i.push("popover-from-actions-label"),`
  • ${p}
  • `):f?(i.push("item-link item-content"),T("li",null,T("a",{class:i.join(" ")},T("div",{class:"item-media"},f),T("div",{class:"item-inner"},T("div",{class:"item-title"},p))))):(i.push("list-button"),T("li",null,T("a",{class:i.join(" ")},p)))}))))))}};const tC={name:"actions",params:{actions:{convertToPopover:!0,forceToPopover:!1,backdrop:!0,backdropEl:void 0,backdropUnique:!1,cssClass:null,closeByBackdropClick:!0,closeOnEscape:!1,render:null,renderPopover:null,containerEl:null}},static:{Actions:bo},create(){const t=this;t.actions=pn({app:t,constructor:bo,defaultSelector:".actions-modal.modal-in"})},clicks:{".actions-open":function(e,n){n===void 0&&(n={}),this.actions.open(n.actions,n.animate,e)},".actions-close":function(e,n){n===void 0&&(n={}),this.actions.close(n.actions,n.animate,e)}}};let vo=class extends en{constructor(e,n){const a=W({on:{}},e.params.sheet,n);super(e,a);const r=this,s=fe(),i=ye(),o=Xe(),l=Ie();r.params=a,typeof r.params.backdrop>"u"&&(r.params.backdrop=e.theme!=="ios");let c;if(r.params.el?c=C(r.params.el).eq(0):c=C(r.params.content).filter(A=>A.nodeType===1).eq(0),c&&c.length>0&&c[0].f7Modal)return c[0].f7Modal;if(c.length===0)return r.destroy();let d;r.params.backdrop&&r.params.backdropEl?d=C(r.params.backdropEl):r.params.backdrop&&(r.params.backdropUnique?(d=C('
    '),r.$containerEl.append(d)):d=r.$containerEl.children(".sheet-backdrop"),d.length===0&&(d=C('
    '),r.$containerEl.append(d))),W(r,{app:e,push:c.hasClass("sheet-modal-push")||r.params.push,$el:c,el:c[0],$backdropEl:d,backdropEl:d&&d[0],type:"sheet",$htmlEl:C("html")}),r.params.push&&c.addClass("sheet-modal-push");let u;function p(){const A=C(r.params.scrollToEl).eq(0);if(A.length===0||(u=A.parents(".page-content"),u.length===0))return;const z=parseInt(u.css("padding-top"),10),q=parseInt(u.css("padding-bottom"),10),U=u[0].offsetHeight-z-c.height(),K=u[0].scrollHeight-z-c.height(),j=u.scrollTop();let Q;const ae=A.offset().top-z+A[0].offsetHeight;if(ae>U){const Z=j+ae-U;Z+U>K&&(Q=Z+U-K+q,U===K&&(Q=c.height()),u.css({"padding-bottom":`${Q}px`})),u.scrollTop(Z,300)}}function f(){u&&u.length>0&&u.css({"padding-bottom":""})}function h(A){const z=A.target,q=C(z);!l.desktop&&l.cordova&&(s.Keyboard&&s.Keyboard.isVisible||s.cordova.plugins&&s.cordova.plugins.Keyboard&&s.cordova.plugins.Keyboard.isVisible)||q.closest(r.el).length===0&&(r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl&&r.backdropEl===z||r.params.closeByOutsideClick)&&r.close()}function m(A){A.keyCode===27&&r.params.closeOnEscape&&r.close()}let b;function w(A){return(e.height-A*2)/e.height}const g=r.params.breakpoints&&r.params.breakpoints.length>0;let v=!1,y,E,k,$,M,x=!1,F,S,I,B,P,L,V,H,D,O,_,N,G,ee=[],X,se=!0;function ne(A){v||!(r.params.swipeToClose||r.params.swipeToStep)||!A.isTrusted||r.params.swipeHandler&&C(A.target).closest(r.params.swipeHandler).length===0||C(A.target).closest(".sortable-handler").length>0||(v=!0,x=!1,y={x:A.type==="touchstart"?A.targetTouches[0].pageX:A.pageX,y:A.type==="touchstart"?A.targetTouches[0].pageY:A.pageY},$=It(),k=void 0,F=c.hasClass("sheet-modal-top"),!r.params.swipeHandler&&A.type==="touchstart"&&(O=C(A.target).closest(".page-content")[0]))}function ie(A){if(!v||!A.isTrusted)return;if(E={x:A.type==="touchmove"?A.targetTouches[0].pageX:A.pageX,y:A.type==="touchmove"?A.targetTouches[0].pageY:A.pageY},typeof k>"u"&&(k=!!(k||Math.abs(E.x-y.x)>Math.abs(E.y-y.y))),k){v=!1,x=!1;return}M=y.y-E.y;const z=M<0?"to-bottom":"to-top";if(!x){if(O&&!c.hasClass("modal-in-swipe-step")&&(_=O.scrollTop,N=O.scrollHeight,G=O.offsetHeight,N!==G&&!(z==="to-bottom"&&_===0)&&!(z==="to-top"&&_===N-G))){c.transform(""),v=!1,x=!1;return}r.push&&b&&(H=e.$el.children(".view, .views")),P=c[0].offsetHeight,I=mr(c[0],"y"),F?(L=r.params.swipeToClose?-P:-S,V=0):(L=0,V=r.params.swipeToClose?P:g?ee[0]:S),x=!0}if(B=I-M,B=Math.min(Math.max(B,L),V),A.preventDefault(),g){let q=F?1+B/P:1-B/P;q=Math.abs(q),q=Math.min(Math.max(q,0),1),oe(q),be(q)}if(r.push&&b&&!g){let q=(B-I)/P;r.params.swipeToStep&&(F?q=B/S:q=1-(S-B)/S),q=Math.abs(q),q=Math.min(Math.max(q,0),1);const U=1-q,K=1-(1-w(b))*U;H.transition(0).forEach(j=>{j.style.setProperty("transform",`translate3d(0,0,0) scale(${K})`,"important")}),r.params.swipeToStep&&H.css("border-radius",`${D*U}px`)}if(c.transition(0).transform(`translate3d(0,${B}px,0)`),r.params.swipeToStep){let q;F?q=1-B/S:q=(S-B)/S,q=Math.min(Math.max(q,0),1),c.trigger("sheet:stepprogress",q),r.emit("local::stepProgress sheetStepProgress",r,q)}}function le(){if(v=!1,!x)return;x=!1,c.transform("").transition(""),r.push&&b&&(H.transition(""),g||(H.transform(""),H.css("border-radius","")));const A=M<0?"to-bottom":"to-top",z=Math.abs(M);if(z===0||B===I)return;const q=new Date().getTime()-$;if(!r.params.swipeToStep&&!g){if(A!==(F?"to-top":"to-bottom"))return;(q<300&&z>20||q>=300&&z>P/2)&&r.close();return}const U=F?"to-bottom":"to-top",K=F?"to-top":"to-bottom",j=Math.abs(B),Q=Math.abs(S);if(q<300&&z>10&&g)A===U&&typeof X<"u"&&(X===n.breakpoints.length-1?r.setBreakpoint(1):(X=Math.min(ee.length-1,X+1),r.setBreakpoint(n.breakpoints[X]))),A===K&&(X===0?r.close():(typeof X>"u"?X=n.breakpoints.length-1:X=Math.max(0,X-1),r.setBreakpoint(n.breakpoints[X])));else if(q<300&&z>10){A===U&&jQ&&(r.params.swipeToClose?r.close():(c.addClass("modal-in-swipe-step"),c.trigger("sheet:stepprogress",0),r.emit("local::stepProgress sheetStepProgress",r,0),r.emit("local::_swipeStep",!0),c.trigger("sheet:stepclose"),r.emit("local::stepClose sheetStepClose",r),r.push&&b&&(r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),H.css("border-radius","0px")))),A===K&&j<=Q&&(c.addClass("modal-in-swipe-step"),c.trigger("sheet:stepprogress",0),r.emit("local::stepProgress sheetStepProgress",r,0),r.emit("local::_swipeStep",!0),c.trigger("sheet:stepclose"),r.emit("local::stepClose sheetStepClose",r),r.push&&b&&(r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),H.css("border-radius","0px")));return}if(q>=300&&g){const ae=[P,...ee,0],Z=ae.reduce((he,re)=>Math.abs(re-B)=300){const ae=!c.hasClass("modal-in-swipe-step");ae?ae&&(j>Q+(P-Q)/2?r.params.swipeToClose&&r.close():j>Q/2&&(c.addClass("modal-in-swipe-step"),c.trigger("sheet:stepprogress",0),r.emit("local::stepProgress sheetStepProgress",r,0),r.emit("local::_swipeStep",!0),c.trigger("sheet:stepclose"),r.emit("local::stepClose sheetStepClose",r),r.push&&b&&(r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),H.css("border-radius","0px")))):j(P-Q)/2&&r.params.swipeToClose&&r.close()}}const be=A=>{const{pushBreakpoint:z}=n;if(!(z===null||typeof z>"u"||!r.push||!b))if(A>=z)r.$htmlEl.addClass("with-modal-sheet-push").removeClass("with-modal-sheet-push-closing"),H.transition("").forEach(q=>{q.style.setProperty("transform",`translate3d(0,0,0) scale(${w(b)})`,"important")}),H.css("border-radius",`${D*1}px`);else{const q=[0,...n.breakpoints,1],U=q[q.indexOf(z)-1];if(A<=U)H.transition("").css("transform",""),H.css("border-radius",""),r.$htmlEl.removeClass("with-modal-sheet-push"),A===U&&r.$htmlEl.addClass("with-modal-sheet-push-closing");else{const K=(A-U)/(z-U);r.$htmlEl.addClass("with-modal-sheet-push").removeClass("with-modal-sheet-push-closing"),H.transition(0).forEach(j=>{j.style.setProperty("transform",`translate3d(0,0,0) scale(${1-(1-w(b))*K})`,"important")}),H.css("border-radius",`${D*K}px`)}}},oe=A=>{const{backdrop:z,backdropBreakpoint:q}=n;if(!(!q||!z||!d.length))if(A>=q)se||d.transition("").css({opacity:"",pointerEvents:""}),se=!0;else{const U=[0,...n.breakpoints,1],K=U[U.indexOf(q)-1];if(A<=K)se&&d.transition("").css({opacity:0,pointerEvents:"none"}),se=!1;else{const j=(A-K)/(q-K);d.transition(0).css({opacity:j,pointerEvents:"auto"})}}};r.calcBreakpoints=()=>{if(!g)return;const A=c[0].offsetHeight,z=c.hasClass("sheet-modal-top");ee=[],r.params.breakpoints.forEach(q=>{ee.push((A-A*q)*(z?-1:1))})},r.setBreakpoint=A=>{if(!g)return r;if(A===1)r.opened||r.open(),c.removeClass("modal-in-breakpoint"),X=void 0,oe(A),be(A),c.trigger("sheet:breakpoint",A),r.emit("local::breakpoint sheetBreakpoint",r,A);else if(A===0)c.trigger("sheet:breakpoint",A),r.emit("local::breakpoint sheetBreakpoint",r,A),r.close();else{const z=n.breakpoints.indexOf(A);if(z<0)return r;r.opened||r.open(),oe(A),be(A),c.trigger("sheet:breakpoint",A),r.emit("local::breakpoint sheetBreakpoint",r,A),X=z,c[0].style.setProperty("--f7-sheet-breakpoint",`${ee[z]}px`),c.addClass("modal-in-breakpoint")}return r};const ce=()=>{r.calcBreakpoints(),typeof X<"u"&&r.setBreakpoint(n.breakpoints[X])};r.setSwipeStep=function(z){z===void 0&&(z=!0);const q=c.find(".sheet-modal-swipe-step").eq(0);q.length&&(c.hasClass("sheet-modal-top")?S=-(q.offset().top-c.offset().top+q[0].offsetHeight):S=c[0].offsetHeight-(q.offset().top-c.offset().top+q[0].offsetHeight),c[0].style.setProperty("--f7-sheet-swipe-step",`${S}px`),z||(c.addClass("modal-in-swipe-step"),r.emit("local::_swipeStep",!0)))};function pe(){g?ce():r.setSwipeStep(!0)}const R=o.passiveListener?{passive:!0}:!1;return(r.params.swipeToClose||r.params.swipeToStep||g)&&(c.on(e.touchEvents.start,ne,R),e.on("touchmove",ie),e.on("touchend:passive",le),r.once("sheetDestroy",()=>{c.off(e.touchEvents.start,ne,R),e.off("touchmove",ie),e.off("touchend:passive",le)})),r.on("open",()=>{r.params.closeOnEscape&&C(i).on("keydown",m),c.prevAll(".popup.modal-in").addClass("popup-behind"),e.on("resize",pe),r.params.scrollToEl&&p(),r.push&&(b=parseInt(c.css("--f7-sheet-push-offset"),10),Number.isNaN(b)&&(b=0),b||(b=e.theme==="ios"?44:48),r.$htmlEl[0].style.setProperty("--f7-sheet-push-offset",`${b}px`),c.addClass("sheet-modal-push"),g||r.$htmlEl.addClass("with-modal-sheet-push"),!r.params.swipeToStep&&!g?r.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",w(b)):(H=e.$el.children(".view, .views"),D=e.theme==="ios"?10:16,H.css("border-radius","0px"))),g?(r.calcBreakpoints(),r.setBreakpoint(n.breakpoints[0])):r.params.swipeToStep&&r.setSwipeStep(!1)}),r.on("opened",()=>{(r.params.closeByOutsideClick||r.params.closeByBackdropClick)&&e.on("click",h)}),r.on("close",()=>{X=void 0,(r.params.swipeToStep||g)&&(c.removeClass("modal-in-swipe-step modal-in-breakpoint"),r.emit("local::_swipeStep",!1)),e.off("resize",pe),r.params.closeOnEscape&&C(i).off("keydown",m),r.params.scrollToEl&&f(),(r.params.closeByOutsideClick||r.params.closeByBackdropClick)&&e.off("click",h),c.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),r.push&&b&&(r.$htmlEl.removeClass("with-modal-sheet-push"),r.$htmlEl.addClass("with-modal-sheet-push-closing"),H&&(H.transform(""),H.css("border-radius","")))}),r.on("closed",()=>{r.push&&b&&(r.$htmlEl.removeClass("with-modal-sheet-push-closing"),r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),r.$htmlEl[0].style.removeProperty("--f7-sheet-push-offset"))}),r.stepOpen=function(){c.removeClass("modal-in-swipe-step"),r.emit("local::_swipeStep",!1),r.push&&(b||(b=parseInt(c.css("--f7-sheet-push-offset"),10),Number.isNaN(b)&&(b=0)),b&&r.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",w(b)))},r.stepClose=function(){c.addClass("modal-in-swipe-step"),r.emit("local::_swipeStep",!0),r.push&&r.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale")},r.stepToggle=function(){c.toggleClass("modal-in-swipe-step"),r.emit("local::_swipeStep",c.hasClass("modal-in-swipe-step"))},c[0].f7Modal=r,r}};const nC={name:"sheet",params:{sheet:{push:!1,backdrop:void 0,backdropEl:void 0,backdropUnique:!1,closeByBackdropClick:!0,closeByOutsideClick:!1,closeOnEscape:!1,swipeToClose:!1,swipeToStep:!1,breakpoints:[],backdropBreakpoint:0,pushBreakpoint:0,swipeHandler:null,containerEl:null}},static:{Sheet:vo},create(){const t=this;t.sheet=W({},pn({app:t,constructor:vo,defaultSelector:".sheet-modal.modal-in"}),{stepOpen(e){const n=t.sheet.get(e);if(n&&n.stepOpen)return n.stepOpen()},stepClose(e){const n=t.sheet.get(e);if(n&&n.stepClose)return n.stepClose()},stepToggle(e){const n=t.sheet.get(e);if(n&&n.stepToggle)return n.stepToggle()},setBreakpoint(e,n){const a=t.sheet.get(e);if(a&&a.setBreakpoint)return a.setBreakpoint(n)}})},clicks:{".sheet-open":function(e,n){n===void 0&&(n={});const a=this;C(".sheet-modal.modal-in").length>0&&n.sheet&&C(n.sheet)[0]!==C(".sheet-modal.modal-in")[0]&&a.sheet.close(".sheet-modal.modal-in"),a.sheet.open(n.sheet,n.animate,e)},".sheet-close":function(e,n){n===void 0&&(n={}),this.sheet.close(n.sheet,n.animate,e)}}};let Jr=class extends en{constructor(e,n){const a=W({on:{}},e.params.toast,n);super(e,a);const r=this,s=fe();r.app=e,r.params=a;const{closeButton:i,closeTimeout:o}=r.params;let l;if(r.params.el)l=C(r.params.el);else{const d=r.render();l=C(d)}if(l&&l.length>0&&l[0].f7Modal)return l[0].f7Modal;if(l.length===0)return r.destroy();W(r,{$el:l,el:l[0],type:"toast"}),l[0].f7Modal=r,i&&(l.find(".toast-button").on("click",()=>{r.emit("local::closeButtonClick toastCloseButtonClick",r),r.close()}),r.on("beforeDestroy",()=>{l.find(".toast-button").off("click")}));let c;return r.on("open",()=>{C(".toast.modal-in").each(d=>{const u=e.toast.get(d);d!==r.el&&u&&u.close()}),o&&(c=lt(()=>{r.close()},o))}),r.on("close",()=>{s.clearTimeout(c)}),r.params.destroyOnClose&&r.once("closed",()=>{setTimeout(()=>{r.destroy()},0)}),r}render(){const e=this;if(e.params.render)return e.params.render.call(e,e);const{position:n,horizontalPosition:a,cssClass:r,icon:s,text:i,closeButton:o,closeButtonColor:l,closeButtonText:c}=e.params,d=n==="top"||n==="bottom"?`toast-horizontal-${a}`:"";return T("div",{class:`toast toast-${n} ${d} ${r||""} ${s?"toast-with-icon":""}`},T("div",{class:"toast-content"},s&&T("div",{class:"toast-icon"},s),T("div",{class:"toast-text"},i),o&&!s&&T("a",{class:`toast-button button ${l?`color-${l}`:""}`},c)))}};const aC={name:"toast",static:{Toast:Jr},create(){const t=this;t.toast=W({},pn({app:t,constructor:Jr,defaultSelector:".toast.modal-in"}),{show(e){return W(e,{destroyOnClose:!0}),new Jr(t,e).open()}})},params:{toast:{icon:null,text:null,position:"bottom",horizontalPosition:"left",closeButton:!1,closeButtonColor:null,closeButtonText:"Ok",closeTimeout:null,cssClass:null,render:null,containerEl:null}}},va={init(t){const e=this,n={iosPreloaderContent:Hn,mdPreloaderContent:Rn},a=C(t);a.length===0||a.children(".preloader-inner").length>0||a.children(".preloader-inner-line").length>0||a.append(n[`${e.theme}PreloaderContent`])},visible:!1,show(t){t===void 0&&(t="white");const e=this;if(va.visible)return;const a={iosPreloaderContent:Hn,mdPreloaderContent:Rn}[`${e.theme}PreloaderContent`]||"";C("html").addClass("with-modal-preloader"),e.$el.append(`
    ${a}
    @@ -124,10 +124,10 @@ ${l.toString()}`)}return r&&(typeof r=="string"?o+=`?${r}`:Object.keys(r).length
    ${r}
    - `)},hide(){const t=this;va.visible&&(C("html").removeClass("with-modal-preloader"),t.$el.find(".preloader-backdrop, .preloader-modal").remove(),va.visible=!1)},hideIn(t){const e=this;C(t||"html").removeClass("with-modal-preloader"),C(t||e.$el).find(".preloader-backdrop, .preloader-modal").remove()}},nC={name:"preloader",create(){Ct(this,{preloader:va})},on:{photoBrowserOpen(t){const e=this;t.$el.find(".preloader").each(n=>{e.preloader.init(n)})},tabMounted(t){const e=this;C(t).find(".preloader").each(n=>{e.preloader.init(n)})},pageInit(t){const e=this;t.$el.find(".preloader").each(n=>{e.preloader.init(n)})}},vnode:{preloader:{insert(t){const e=this,n=t.elm;e.preloader.init(n)}}}},aC={set(){const t=this;for(var e=arguments.length,n=new Array(e),a=0;a"u"||s===null)return r;s||(s=0);const o=C(r||t.$el);if(o.length===0)return r;const l=Math.min(Math.max(s,0),100);let c;if(o.hasClass("progressbar")?c=o.eq(0):c=o.children(".progressbar"),c.length===0||c.hasClass("progressbar-infinite"))return c;let d=c.children("span");return d.length===0&&(d=C(""),c.append(d)),d.transition(typeof i<"u"?i:"").transform(`translate3d(${(-100+l)*(t.rtl?-1:1)}%,0,0)`),c[0]},show(){const t=this;for(var e=arguments.length,n=new Array(e),a=0;a{e.preloader.init(n)})},tabMounted(t){const e=this;C(t).find(".preloader").each(n=>{e.preloader.init(n)})},pageInit(t){const e=this;t.$el.find(".preloader").each(n=>{e.preloader.init(n)})}},vnode:{preloader:{insert(t){const e=this,n=t.elm;e.preloader.init(n)}}}},sC={set(){const t=this;for(var e=arguments.length,n=new Array(e),a=0;a"u"||s===null)return r;s||(s=0);const o=C(r||t.$el);if(o.length===0)return r;const l=Math.min(Math.max(s,0),100);let c;if(o.hasClass("progressbar")?c=o.eq(0):c=o.children(".progressbar"),c.length===0||c.hasClass("progressbar-infinite"))return c;let d=c.children("span");return d.length===0&&(d=C(""),c.append(d)),d.transition(typeof i<"u"?i:"").transform(`translate3d(${(-100+l)*(t.rtl?-1:1)}%,0,0)`),c[0]},show(){const t=this;for(var e=arguments.length,n=new Array(e),a=0;a ${o==="infinite"?"":""} - `),l.append(c))),typeof s<"u"&&t.progressbar.set(c,s),c[0]},hide(t,e){e===void 0&&(e=!0);const a=C(t||this.$el);if(a.length===0)return;let r;return a.hasClass("progressbar")||a.hasClass("progressbar-infinite")?r=a:r=a.children(".progressbar, .progressbar-infinite"),r.length===0||!r.hasClass("progressbar-in")||r.hasClass("progressbar-out")||r.removeClass("progressbar-in").addClass("progressbar-out").animationEnd(()=>{e&&r.remove()}),r}},rC={name:"progressbar",create(){Ct(this,{progressbar:aC})},on:{tabMounted(t){const e=this;C(t).find(".progressbar").each(n=>{const a=C(n);e.progressbar.set(a,a.attr("data-progress"))})},pageInit(t){const e=this;t.$el.find(".progressbar").each(n=>{const a=C(n);e.progressbar.set(a,a.attr("data-progress"))})}},vnode:{progressbar:{insert(t){const e=this,n=t.elm;e.progressbar.set(n,n.getAttribute("data-progress"))},update(t){const e=this,n=t.elm;e.progressbar.set(n,n.getAttribute("data-progress"))}}}},sC={init(){const t=this,e=ye();let n,a,r,s,i,o,l,c,d,u,p,f,h,m,b,w,g,v,y,E,k;function $(S,I){a=!1,n=!0,k=!1,r=S.type==="touchstart"?S.targetTouches[0].pageY:S.pageY,i=C(S.target).closest("li").eq(0),h=i.index(),l=i.parents(".sortable");const B=i.parents(".list-group");B.length&&B.parents(l).length&&(l=B),o=l.children("ul").children("li:not(.disallow-sorting):not(.no-sorting)"),t.panel&&(t.panel.allowOpen=!1),t.swipeout&&(t.swipeout.allow=!1),I&&(i.addClass("sorting"),l.addClass("sortable-sorting"),k=!0)}function M(S){if(!n||!i)return;const I=S.type==="touchmove"?S.targetTouches[0].pageY:S.pageY;if(!a){m=i.parents(".page"),b=i.parents(".page-content");const D=parseInt(b.css("padding-top"),10),O=parseInt(b.css("padding-bottom"),10);E=b[0].scrollTop,g=m.offset().top+D,w=m.height()-D-O,i.addClass("sorting"),l.addClass("sortable-sorting"),v=i[0].offsetTop,d=i[0].offsetTop,u=i.parent().height()-v-i.height(),c=i[0].offsetHeight,y=i.offset().top}a=!0,S.preventDefault(),S.f7PreventSwipePanel=!0,s=I-r;const B=b[0].scrollTop-E,P=Math.min(Math.max(s+B,-d),u);i.transform(`translate3d(0,${P}px,0)`);const L=44;let V=!0;s+B+L<-d&&(V=!1),s+B-L>u&&(V=!1),f=void 0,p=void 0;let H;V&&(y+s+c+L>g+w&&(H=y+s+c+L-(g+w)),y+s{const O=C(D);if(O[0]===i[0])return;const _=O[0].offsetTop,N=O.height(),G=v+P;let ee;const X=O[0].f7Translate;G>=_-N/2&&i.index()O.index()?(ee=c,O[0].f7Translate=ee,O.transform(`translate3d(0, ${ee}px,0)`),p=void 0,f||(f=O)):(ee=void 0,O.transform("translate3d(0, 0%,0)")),X!==ee&&(O.trigger("sortable:move"),t.emit("sortableMove",O[0],l[0])),O[0].f7Translate=ee})}function x(){if(!n||!a){n&&!a&&(t.panel&&(t.panel.allowOpen=!0),t.swipeout&&(t.swipeout.allow=!0),k&&(i.removeClass("sorting"),l.removeClass("sortable-sorting"))),n=!1,a=!1;return}t.panel&&(t.panel.allowOpen=!0),t.swipeout&&(t.swipeout.allow=!0),o.transform(""),i.removeClass("sorting"),l.removeClass("sortable-sorting");let S;p?S=p.index():f&&(S=f.index());let I=l.dataset().sortableMoveElements;if(typeof I>"u"&&(I=t.params.sortable.moveElements),I&&(p&&i.insertAfter(p),f&&i.insertBefore(f)),(p||f)&&l.hasClass("virtual-list")){h=i[0].f7VirtualListIndex,typeof h>"u"&&(h=i.attr("data-virtual-list-index")),f?(S=f[0].f7VirtualListIndex,typeof S>"u"&&(S=f.attr("data-virtual-list-index"))):(S=p[0].f7VirtualListIndex,typeof S>"u"&&(S=p.attr("data-virtual-list-index"))),S!==null?S=parseInt(S,10):S=void 0;const B=l[0].f7VirtualList;h&&(h=parseInt(h,10)),S&&(S=parseInt(S,10)),B&&B.moveItem(h,S)}typeof S<"u"&&!Number.isNaN(S)&&S!==h&&(i.trigger("sortable:sort",{from:h,to:S}),t.emit("sortableSort",i[0],{from:h,to:S,el:i[0]},l[0])),f=void 0,p=void 0,n=!1,a=!1}const F=Xe().passiveListener?{passive:!1,capture:!1}:!1;C(e).on(t.touchEvents.start,".list.sortable .sortable-handler",$,F),t.on("touchmove:active",M),t.on("touchend:passive",x),C(e).on("taphold",".sortable-tap-hold",(S,I)=>{$(I,!0)})},enable(t){t===void 0&&(t=".list.sortable");const e=this,n=C(t);n.length!==0&&(n.addClass("sortable-enabled"),n.trigger("sortable:enable"),e.emit("sortableEnable",n[0]))},disable(t){t===void 0&&(t=".list.sortable");const e=this,n=C(t);n.length!==0&&(n.removeClass("sortable-enabled"),n.trigger("sortable:disable"),e.emit("sortableDisable",n[0]))},toggle(t){t===void 0&&(t=".list.sortable");const e=this,n=C(t);n.length!==0&&(n.hasClass("sortable-enabled")?e.sortable.disable(n):e.sortable.enable(n))}},iC={name:"sortable",params:{sortable:{moveElements:!0}},create(){Ct(this,{sortable:sC})},on:{init(){const t=this;t.params.sortable&&t.sortable.init()}},clicks:{".sortable-enable":function(e,n){n===void 0&&(n={}),this.sortable.enable(n.sortable)},".sortable-disable":function(e,n){n===void 0&&(n={}),this.sortable.disable(n.sortable)},".sortable-toggle":function(e,n){n===void 0&&(n={}),this.sortable.toggle(n.sortable)}}},Ft={init(){const t=this,e=ye(),n={};let a,r,s,i,o,l,c,d,u,p,f,h,m,b,w,g,v,y,E,k,$;function M(I){t.swipeout.allow&&(r=!1,a=!0,s=void 0,n.x=I.type==="touchstart"?I.targetTouches[0].pageX:I.pageX,n.y=I.type==="touchstart"?I.targetTouches[0].pageY:I.pageY,i=new Date().getTime(),l=C(this))}function x(I){if(!a)return;const B=I.type==="touchmove"?I.targetTouches[0].pageX:I.pageX,P=I.type==="touchmove"?I.targetTouches[0].pageY:I.pageY;if(typeof s>"u"&&(s=!!(s||Math.abs(P-n.y)>Math.abs(B-n.x))),s){a=!1;return}if(!r){if(C(".list.sortable-opened").length>0)return;c=l.find(".swipeout-content"),d=l.find(".swipeout-actions-right"),u=l.find(".swipeout-actions-left"),p=null,f=null,w=null,g=null,E=null,y=null,u.length>0&&(p=u.outerWidth(),w=u.children("a"),y=u.find(".swipeout-overswipe")),d.length>0&&(f=d.outerWidth(),g=d.children("a"),E=d.find(".swipeout-overswipe")),m=l.hasClass("swipeout-opened"),m&&(b=l.find(".swipeout-actions-left.swipeout-actions-opened").length>0?"left":"right"),l.removeClass("swipeout-transitioning"),t.params.swipeout.noFollow||(l.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),l.removeClass("swipeout-opened"))}if(r=!0,I.cancelable&&I.preventDefault(),o=B-n.x,h=o,m&&(b==="right"?h-=f:h+=p),h>0&&u.length===0||h<0&&d.length===0){if(!m){a=!1,r=!1,c.transform(""),g&&g.length>0&&g.transform(""),w&&w.length>0&&w.transform("");return}h=0}h<0?v="to-left":h>0?v="to-right":v||(v="to-left");let L,V;if(I.f7PreventSwipePanel=!0,t.params.swipeout.noFollow){m?(b==="right"&&o>0&&t.swipeout.close(l),b==="left"&&o<0&&t.swipeout.close(l)):(o<0&&d.length>0&&t.swipeout.open(l,"right"),o>0&&u.length>0&&t.swipeout.open(l,"left")),a=!1,r=!1;return}if(k=!1,$=!1,d.length>0){let H=h;if(V=H/f,H<-f){const D=H/-f;H=-f-(-H-f)**.8,h=H,E.length>0&&D>t.params.swipeout.overswipeRatio&&($=!0)}v!=="to-left"&&(V=0,H=0),g.each(D=>{const O=C(D);typeof D.f7SwipeoutButtonOffset>"u"&&(O[0].f7SwipeoutButtonOffset=D.offsetLeft),L=D.f7SwipeoutButtonOffset,E.length>0&&O.hasClass("swipeout-overswipe")&&v==="to-left"&&(O.css({left:`${$?-L:0}px`}),$?(O.hasClass("swipeout-overswipe-active")||(l.trigger("swipeout:overswipeenter"),t.emit("swipeoutOverswipeEnter",l[0])),O.addClass("swipeout-overswipe-active")):(O.hasClass("swipeout-overswipe-active")&&(l.trigger("swipeout:overswipeexit"),t.emit("swipeoutOverswipeExit",l[0])),O.removeClass("swipeout-overswipe-active"))),O.transform(`translate3d(${H-L*(1+Math.max(V,-1))}px,0,0)`)})}if(u.length>0){let H=h;if(V=H/p,H>p){const D=H/f;H=p+(H-p)**.8,h=H,y.length>0&&D>t.params.swipeout.overswipeRatio&&(k=!0)}v!=="to-right"&&(H=0,V=0),w.each((D,O)=>{const _=C(D);typeof D.f7SwipeoutButtonOffset>"u"&&(_[0].f7SwipeoutButtonOffset=p-D.offsetLeft-D.offsetWidth),L=D.f7SwipeoutButtonOffset,y.length>0&&_.hasClass("swipeout-overswipe")&&v==="to-right"&&(_.css({left:`${k?L:0}px`}),k?(_.hasClass("swipeout-overswipe-active")||(l.trigger("swipeout:overswipeenter"),t.emit("swipeoutOverswipeEnter",l[0])),_.addClass("swipeout-overswipe-active")):(_.hasClass("swipeout-overswipe-active")&&(l.trigger("swipeout:overswipeexit"),t.emit("swipeoutOverswipeExit",l[0])),_.removeClass("swipeout-overswipe-active"))),w.length>1&&_.css("z-index",w.length-O),_.transform(`translate3d(${H+L*(1-Math.min(V,1))}px,0,0)`)})}l.trigger("swipeout",V),t.emit("swipeout",l[0],V),c.transform(`translate3d(${h}px,0,0)`)}function F(){if(!a||!r){a=!1,r=!1;return}a=!1,r=!1;const I=new Date().getTime()-i,B=v==="to-left"?d:u,P=v==="to-left"?f:p;let L,V,H;if(I<300&&(o<-10&&v==="to-left"||o>10&&v==="to-right")||I>=300&&Math.abs(h)>P/2?L="open":L="close",I<300&&(Math.abs(h)===0&&(L="close"),Math.abs(h)===P&&(L="open")),L==="open"){Ft.el=l[0],l.trigger("swipeout:open"),t.emit("swipeoutOpen",l[0]),l.addClass("swipeout-opened swipeout-transitioning");const O=v==="to-left"?-P:P;if(c.transform(`translate3d(${O}px,0,0)`),B.addClass("swipeout-actions-opened"),V=v==="to-left"?g:w,V)for(H=0;H0&&w!==V&&w.each(O=>{const _=C(O);D=O.f7SwipeoutButtonOffset,typeof D>"u"&&(_[0].f7SwipeoutButtonOffset=p-O.offsetLeft-O.offsetWidth),_.transform(`translate3d(${D}px,0,0)`)}),g&&g.length>0&&g!==V&&g.each(O=>{const _=C(O);D=O.f7SwipeoutButtonOffset,typeof D>"u"&&(_[0].f7SwipeoutButtonOffset=O.offsetLeft),_.transform(`translate3d(${-D}px,0,0)`)}),c.transitionEnd(()=>{m&&L==="open"||!m&&L==="close"||(l.trigger(L==="open"?"swipeout:opened":"swipeout:closed"),t.emit(L==="open"?"swipeoutOpened":"swipeoutClosed",l[0]),l.removeClass("swipeout-transitioning"),m&&L==="close"&&(d.length>0&&g.transform(""),u.length>0&&w.transform("")))})}const S=Xe().passiveListener?{passive:!0}:!1;t.on("touchstart",I=>{if(Ft.el){const B=C(I.target);C(Ft.el).is(B[0])||B.parents(".swipeout").is(Ft.el)||B.hasClass("modal-in")||(B.attr("class")||"").indexOf("-backdrop")>0||B.hasClass("actions-modal")||B.parents(".actions-modal.modal-in, .dialog.modal-in").length>0||t.swipeout.close(Ft.el)}}),C(e).on(t.touchEvents.start,"li.swipeout",M,S),t.on("touchmove:active",x),t.on("touchend:passive",F)},allow:!0,el:void 0,open(){const t=this;for(var e=arguments.length,n=new Array(e),a=0;a0?s="right":s="left");const l=o.find(`.swipeout-actions-${s}`),c=o.find(".swipeout-content");if(l.length===0)return;o.trigger("swipeout:open").addClass("swipeout-opened").removeClass("swipeout-transitioning"),t.emit("swipeoutOpen",o[0]),l.addClass("swipeout-actions-opened");const d=l.children("a"),u=l.outerWidth(),p=s==="right"?-u:u;d.length>1&&d.each((f,h)=>{const m=C(f);s==="right"?m.transform(`translate3d(${-f.offsetLeft}px,0,0)`):m.css("z-index",d.length-h).transform(`translate3d(${u-f.offsetWidth-f.offsetLeft}px,0,0)`)}),o.addClass("swipeout-transitioning"),c.transitionEnd(()=>{o.trigger("swipeout:opened"),t.emit("swipeoutOpened",o[0]),i&&i.call(o[0])}),Mt(()=>{d.transform(`translate3d(${p}px,0,0)`),c.transform(`translate3d(${p}px,0,0)`)}),Ft.el=o[0]},close(t,e){const n=this,a=C(t).eq(0);if(a.length===0||!a.hasClass("swipeout-opened"))return;const r=a.find(".swipeout-actions-opened").hasClass("swipeout-actions-right")?"right":"left",s=a.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),i=s.children("a"),o=s.outerWidth();n.swipeout.allow=!1,a.trigger("swipeout:close"),n.emit("swipeoutClose",a[0]),a.removeClass("swipeout-opened").addClass("swipeout-transitioning");let l;function c(){n.swipeout.allow=!0,!a.hasClass("swipeout-opened")&&(a.removeClass("swipeout-transitioning"),i.transform(""),a.trigger("swipeout:closed"),n.emit("swipeoutClosed",a[0]),e&&e.call(a[0]),l&&clearTimeout(l))}a.find(".swipeout-content").transform("").transitionEnd(c),l=setTimeout(c,500),i.each(d=>{const u=C(d);r==="right"?u.transform(`translate3d(${-d.offsetLeft}px,0,0)`):u.transform(`translate3d(${o-d.offsetWidth-d.offsetLeft}px,0,0)`),u.css({left:"0px"}).removeClass("swipeout-overswipe-active")}),Ft.el&&Ft.el===a[0]&&(Ft.el=void 0)},delete(t,e){const n=this,a=C(t).eq(0);a.length!==0&&(Ft.el=void 0,a.trigger("swipeout:delete"),n.emit("swipeoutDelete",a[0]),a.css({height:`${a.outerHeight()}px`}),a.transitionEnd(()=>{if(a.trigger("swipeout:deleted"),n.emit("swipeoutDeleted",a[0]),e&&e.call(a[0]),a.parents(".virtual-list").length>0){const r=a.parents(".virtual-list")[0].f7VirtualList,s=a[0].f7VirtualListIndex;r&&typeof s<"u"&&r.deleteItem(s)}else n.params.swipeout.removeElements?n.params.swipeout.removeElementsWithTimeout?setTimeout(()=>{a.remove()},n.params.swipeout.removeElementsTimeout):a.remove():a.removeClass("swipeout-deleting swipeout-transitioning")}),Mt(()=>{a.addClass("swipeout-deleting swipeout-transitioning").css({height:"0px"}).find(".swipeout-content").transform("translate3d(-100%,0,0)")}))}},oC={name:"swipeout",params:{swipeout:{actionsNoFold:!1,noFollow:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,overswipeRatio:1.2}},create(){Ct(this,{swipeout:Ft})},clicks:{".swipeout-open":function(e,n){n===void 0&&(n={}),this.swipeout.open(n.swipeout,n.side)},".swipeout-close":function(e){const n=this,a=e.closest(".swipeout");a.length!==0&&n.swipeout.close(a)},".swipeout-delete":function(e,n){n===void 0&&(n={});const a=this,r=e.closest(".swipeout");if(r.length===0)return;const{confirm:s,confirmTitle:i}=n;n.confirm?a.dialog.confirm(s,i,()=>{a.swipeout.delete(r)}):a.swipeout.delete(r)}},on:{init(){const t=this;t.params.swipeout&&t.swipeout.init()}}},wo={toggleClicked(t){const e=this;let n=t.closest(".accordion-item").eq(0);n.length||(n=t.parents("li").eq(0));const a=t.parents(".accordion-item-content").eq(0);a.length&&a.parents(n).length||t.parents("li").length>1&&t.parents("li")[0]!==n[0]||e.accordion.toggle(n)},open(t){const e=this,n=C(t);let a=!1;function r(){a=!0}if(n.trigger("accordion:beforeopen",{prevent:r},r),e.emit("accordionBeforeOpen",n[0],r),a)return;const s=n.parents(".accordion-list").eq(0);let i=n.children(".accordion-item-content");if(i.removeAttr("aria-hidden"),i.length===0&&(i=n.find(".accordion-item-content")),i.length===0)return;const o=s.length>0&&n.parent().children(".accordion-item-opened");o.length>0&&e.accordion.close(o),i.transitionEnd(()=>{n.hasClass("accordion-item-opened")?(i.transition(0),i.css("height","auto"),Mt(()=>{i.transition(""),n.trigger("accordion:opened"),e.emit("accordionOpened",n[0])})):(i.css("height",""),n.trigger("accordion:closed"),e.emit("accordionClosed",n[0]))}),i.css("height",`${i[0].scrollHeight}px`),n.trigger("accordion:open"),n.addClass("accordion-item-opened"),e.emit("accordionOpen",n[0])},close(t){const e=this,n=C(t);let a=!1;function r(){a=!0}if(n.trigger("accordion:beforeclose",{prevent:r},r),e.emit("accordionBeforeClose",n[0],r),a)return;let s=n.children(".accordion-item-content");s.length===0&&(s=n.find(".accordion-item-content")),n.removeClass("accordion-item-opened"),s.attr("aria-hidden",!0),s.transition(0),s.css("height",`${s[0].scrollHeight}px`),s.transitionEnd(()=>{n.hasClass("accordion-item-opened")?(s.transition(0),s.css("height","auto"),Mt(()=>{s.transition(""),n.trigger("accordion:opened"),e.emit("accordionOpened",n[0])})):(s.css("height",""),n.trigger("accordion:closed"),e.emit("accordionClosed",n[0]))}),Mt(()=>{s.transition(""),s.css("height",""),n.trigger("accordion:close"),e.emit("accordionClose",n[0])})},toggle(t){const e=this,n=C(t);n.length!==0&&(n.hasClass("accordion-item-opened")?e.accordion.close(t):e.accordion.open(t))}},lC={name:"accordion",create(){Ct(this,{accordion:wo})},clicks:{".accordion-item .item-link, .accordion-item-toggle, .links-list.accordion-list > ul > li > a":function(e){const n=this;wo.toggleClicked.call(n,e)}}},cC={name:"contactsList"};let yo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r=Ie(),s=ye();let i;e.theme==="md"?i=48:e.theme==="ios"&&(i=44);const o={cols:1,height:i,cache:!0,dynamicHeightBufferSize:1,showFilteredItemsOnly:!1,renderExternal:void 0,setListHeight:!0,searchByItem:void 0,searchAll:void 0,ul:null,createUl:!0,scrollableParentEl:void 0,renderItem(b){return` + `),l.append(c))),typeof s<"u"&&t.progressbar.set(c,s),c[0]},hide(t,e){e===void 0&&(e=!0);const a=C(t||this.$el);if(a.length===0)return;let r;return a.hasClass("progressbar")||a.hasClass("progressbar-infinite")?r=a:r=a.children(".progressbar, .progressbar-infinite"),r.length===0||!r.hasClass("progressbar-in")||r.hasClass("progressbar-out")||r.removeClass("progressbar-in").addClass("progressbar-out").animationEnd(()=>{e&&r.remove()}),r}},iC={name:"progressbar",create(){Ct(this,{progressbar:sC})},on:{tabMounted(t){const e=this;C(t).find(".progressbar").each(n=>{const a=C(n);e.progressbar.set(a,a.attr("data-progress"))})},pageInit(t){const e=this;t.$el.find(".progressbar").each(n=>{const a=C(n);e.progressbar.set(a,a.attr("data-progress"))})}},vnode:{progressbar:{insert(t){const e=this,n=t.elm;e.progressbar.set(n,n.getAttribute("data-progress"))},update(t){const e=this,n=t.elm;e.progressbar.set(n,n.getAttribute("data-progress"))}}}},oC={init(){const t=this,e=ye();let n,a,r,s,i,o,l,c,d,u,p,f,h,m,b,w,g,v,y,E,k;function $(S,I){a=!1,n=!0,k=!1,r=S.type==="touchstart"?S.targetTouches[0].pageY:S.pageY,i=C(S.target).closest("li").eq(0),h=i.index(),l=i.parents(".sortable");const B=i.parents(".list-group");B.length&&B.parents(l).length&&(l=B),o=l.children("ul").children("li:not(.disallow-sorting):not(.no-sorting)"),t.panel&&(t.panel.allowOpen=!1),t.swipeout&&(t.swipeout.allow=!1),I&&(i.addClass("sorting"),l.addClass("sortable-sorting"),k=!0)}function M(S){if(!n||!i)return;const I=S.type==="touchmove"?S.targetTouches[0].pageY:S.pageY;if(!a){m=i.parents(".page"),b=i.parents(".page-content");const D=parseInt(b.css("padding-top"),10),O=parseInt(b.css("padding-bottom"),10);E=b[0].scrollTop,g=m.offset().top+D,w=m.height()-D-O,i.addClass("sorting"),l.addClass("sortable-sorting"),v=i[0].offsetTop,d=i[0].offsetTop,u=i.parent().height()-v-i.height(),c=i[0].offsetHeight,y=i.offset().top}a=!0,S.preventDefault(),S.f7PreventSwipePanel=!0,s=I-r;const B=b[0].scrollTop-E,P=Math.min(Math.max(s+B,-d),u);i.transform(`translate3d(0,${P}px,0)`);const L=44;let V=!0;s+B+L<-d&&(V=!1),s+B-L>u&&(V=!1),f=void 0,p=void 0;let H;V&&(y+s+c+L>g+w&&(H=y+s+c+L-(g+w)),y+s{const O=C(D);if(O[0]===i[0])return;const _=O[0].offsetTop,N=O.height(),G=v+P;let ee;const X=O[0].f7Translate;G>=_-N/2&&i.index()O.index()?(ee=c,O[0].f7Translate=ee,O.transform(`translate3d(0, ${ee}px,0)`),p=void 0,f||(f=O)):(ee=void 0,O.transform("translate3d(0, 0%,0)")),X!==ee&&(O.trigger("sortable:move"),t.emit("sortableMove",O[0],l[0])),O[0].f7Translate=ee})}function x(){if(!n||!a){n&&!a&&(t.panel&&(t.panel.allowOpen=!0),t.swipeout&&(t.swipeout.allow=!0),k&&(i.removeClass("sorting"),l.removeClass("sortable-sorting"))),n=!1,a=!1;return}t.panel&&(t.panel.allowOpen=!0),t.swipeout&&(t.swipeout.allow=!0),o.transform(""),i.removeClass("sorting"),l.removeClass("sortable-sorting");let S;p?S=p.index():f&&(S=f.index());let I=l.dataset().sortableMoveElements;if(typeof I>"u"&&(I=t.params.sortable.moveElements),I&&(p&&i.insertAfter(p),f&&i.insertBefore(f)),(p||f)&&l.hasClass("virtual-list")){h=i[0].f7VirtualListIndex,typeof h>"u"&&(h=i.attr("data-virtual-list-index")),f?(S=f[0].f7VirtualListIndex,typeof S>"u"&&(S=f.attr("data-virtual-list-index"))):(S=p[0].f7VirtualListIndex,typeof S>"u"&&(S=p.attr("data-virtual-list-index"))),S!==null?S=parseInt(S,10):S=void 0;const B=l[0].f7VirtualList;h&&(h=parseInt(h,10)),S&&(S=parseInt(S,10)),B&&B.moveItem(h,S)}typeof S<"u"&&!Number.isNaN(S)&&S!==h&&(i.trigger("sortable:sort",{from:h,to:S}),t.emit("sortableSort",i[0],{from:h,to:S,el:i[0]},l[0])),f=void 0,p=void 0,n=!1,a=!1}const F=Xe().passiveListener?{passive:!1,capture:!1}:!1;C(e).on(t.touchEvents.start,".list.sortable .sortable-handler",$,F),t.on("touchmove:active",M),t.on("touchend:passive",x),C(e).on("taphold",".sortable-tap-hold",(S,I)=>{$(I,!0)})},enable(t){t===void 0&&(t=".list.sortable");const e=this,n=C(t);n.length!==0&&(n.addClass("sortable-enabled"),n.trigger("sortable:enable"),e.emit("sortableEnable",n[0]))},disable(t){t===void 0&&(t=".list.sortable");const e=this,n=C(t);n.length!==0&&(n.removeClass("sortable-enabled"),n.trigger("sortable:disable"),e.emit("sortableDisable",n[0]))},toggle(t){t===void 0&&(t=".list.sortable");const e=this,n=C(t);n.length!==0&&(n.hasClass("sortable-enabled")?e.sortable.disable(n):e.sortable.enable(n))}},lC={name:"sortable",params:{sortable:{moveElements:!0}},create(){Ct(this,{sortable:oC})},on:{init(){const t=this;t.params.sortable&&t.sortable.init()}},clicks:{".sortable-enable":function(e,n){n===void 0&&(n={}),this.sortable.enable(n.sortable)},".sortable-disable":function(e,n){n===void 0&&(n={}),this.sortable.disable(n.sortable)},".sortable-toggle":function(e,n){n===void 0&&(n={}),this.sortable.toggle(n.sortable)}}},Ht={init(){const t=this,e=ye(),n={};let a,r,s,i,o,l,c,d,u,p,f,h,m,b,w,g,v,y,E,k,$;function M(I){t.swipeout.allow&&(r=!1,a=!0,s=void 0,n.x=I.type==="touchstart"?I.targetTouches[0].pageX:I.pageX,n.y=I.type==="touchstart"?I.targetTouches[0].pageY:I.pageY,i=new Date().getTime(),l=C(this))}function x(I){if(!a)return;const B=I.type==="touchmove"?I.targetTouches[0].pageX:I.pageX,P=I.type==="touchmove"?I.targetTouches[0].pageY:I.pageY;if(typeof s>"u"&&(s=!!(s||Math.abs(P-n.y)>Math.abs(B-n.x))),s){a=!1;return}if(!r){if(C(".list.sortable-opened").length>0)return;c=l.find(".swipeout-content"),d=l.find(".swipeout-actions-right"),u=l.find(".swipeout-actions-left"),p=null,f=null,w=null,g=null,E=null,y=null,u.length>0&&(p=u.outerWidth(),w=u.children("a"),y=u.find(".swipeout-overswipe")),d.length>0&&(f=d.outerWidth(),g=d.children("a"),E=d.find(".swipeout-overswipe")),m=l.hasClass("swipeout-opened"),m&&(b=l.find(".swipeout-actions-left.swipeout-actions-opened").length>0?"left":"right"),l.removeClass("swipeout-transitioning"),t.params.swipeout.noFollow||(l.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),l.removeClass("swipeout-opened"))}if(r=!0,I.cancelable&&I.preventDefault(),o=B-n.x,h=o,m&&(b==="right"?h-=f:h+=p),h>0&&u.length===0||h<0&&d.length===0){if(!m){a=!1,r=!1,c.transform(""),g&&g.length>0&&g.transform(""),w&&w.length>0&&w.transform("");return}h=0}h<0?v="to-left":h>0?v="to-right":v||(v="to-left");let L,V;if(I.f7PreventSwipePanel=!0,t.params.swipeout.noFollow){m?(b==="right"&&o>0&&t.swipeout.close(l),b==="left"&&o<0&&t.swipeout.close(l)):(o<0&&d.length>0&&t.swipeout.open(l,"right"),o>0&&u.length>0&&t.swipeout.open(l,"left")),a=!1,r=!1;return}if(k=!1,$=!1,d.length>0){let H=h;if(V=H/f,H<-f){const D=H/-f;H=-f-(-H-f)**.8,h=H,E.length>0&&D>t.params.swipeout.overswipeRatio&&($=!0)}v!=="to-left"&&(V=0,H=0),g.each(D=>{const O=C(D);typeof D.f7SwipeoutButtonOffset>"u"&&(O[0].f7SwipeoutButtonOffset=D.offsetLeft),L=D.f7SwipeoutButtonOffset,E.length>0&&O.hasClass("swipeout-overswipe")&&v==="to-left"&&(O.css({left:`${$?-L:0}px`}),$?(O.hasClass("swipeout-overswipe-active")||(l.trigger("swipeout:overswipeenter"),t.emit("swipeoutOverswipeEnter",l[0])),O.addClass("swipeout-overswipe-active")):(O.hasClass("swipeout-overswipe-active")&&(l.trigger("swipeout:overswipeexit"),t.emit("swipeoutOverswipeExit",l[0])),O.removeClass("swipeout-overswipe-active"))),O.transform(`translate3d(${H-L*(1+Math.max(V,-1))}px,0,0)`)})}if(u.length>0){let H=h;if(V=H/p,H>p){const D=H/f;H=p+(H-p)**.8,h=H,y.length>0&&D>t.params.swipeout.overswipeRatio&&(k=!0)}v!=="to-right"&&(H=0,V=0),w.each((D,O)=>{const _=C(D);typeof D.f7SwipeoutButtonOffset>"u"&&(_[0].f7SwipeoutButtonOffset=p-D.offsetLeft-D.offsetWidth),L=D.f7SwipeoutButtonOffset,y.length>0&&_.hasClass("swipeout-overswipe")&&v==="to-right"&&(_.css({left:`${k?L:0}px`}),k?(_.hasClass("swipeout-overswipe-active")||(l.trigger("swipeout:overswipeenter"),t.emit("swipeoutOverswipeEnter",l[0])),_.addClass("swipeout-overswipe-active")):(_.hasClass("swipeout-overswipe-active")&&(l.trigger("swipeout:overswipeexit"),t.emit("swipeoutOverswipeExit",l[0])),_.removeClass("swipeout-overswipe-active"))),w.length>1&&_.css("z-index",w.length-O),_.transform(`translate3d(${H+L*(1-Math.min(V,1))}px,0,0)`)})}l.trigger("swipeout",V),t.emit("swipeout",l[0],V),c.transform(`translate3d(${h}px,0,0)`)}function F(){if(!a||!r){a=!1,r=!1;return}a=!1,r=!1;const I=new Date().getTime()-i,B=v==="to-left"?d:u,P=v==="to-left"?f:p;let L,V,H;if(I<300&&(o<-10&&v==="to-left"||o>10&&v==="to-right")||I>=300&&Math.abs(h)>P/2?L="open":L="close",I<300&&(Math.abs(h)===0&&(L="close"),Math.abs(h)===P&&(L="open")),L==="open"){Ht.el=l[0],l.trigger("swipeout:open"),t.emit("swipeoutOpen",l[0]),l.addClass("swipeout-opened swipeout-transitioning");const O=v==="to-left"?-P:P;if(c.transform(`translate3d(${O}px,0,0)`),B.addClass("swipeout-actions-opened"),V=v==="to-left"?g:w,V)for(H=0;H0&&w!==V&&w.each(O=>{const _=C(O);D=O.f7SwipeoutButtonOffset,typeof D>"u"&&(_[0].f7SwipeoutButtonOffset=p-O.offsetLeft-O.offsetWidth),_.transform(`translate3d(${D}px,0,0)`)}),g&&g.length>0&&g!==V&&g.each(O=>{const _=C(O);D=O.f7SwipeoutButtonOffset,typeof D>"u"&&(_[0].f7SwipeoutButtonOffset=O.offsetLeft),_.transform(`translate3d(${-D}px,0,0)`)}),c.transitionEnd(()=>{m&&L==="open"||!m&&L==="close"||(l.trigger(L==="open"?"swipeout:opened":"swipeout:closed"),t.emit(L==="open"?"swipeoutOpened":"swipeoutClosed",l[0]),l.removeClass("swipeout-transitioning"),m&&L==="close"&&(d.length>0&&g.transform(""),u.length>0&&w.transform("")))})}const S=Xe().passiveListener?{passive:!0}:!1;t.on("touchstart",I=>{if(Ht.el){const B=C(I.target);C(Ht.el).is(B[0])||B.parents(".swipeout").is(Ht.el)||B.hasClass("modal-in")||(B.attr("class")||"").indexOf("-backdrop")>0||B.hasClass("actions-modal")||B.parents(".actions-modal.modal-in, .dialog.modal-in").length>0||t.swipeout.close(Ht.el)}}),C(e).on(t.touchEvents.start,"li.swipeout",M,S),t.on("touchmove:active",x),t.on("touchend:passive",F)},allow:!0,el:void 0,open(){const t=this;for(var e=arguments.length,n=new Array(e),a=0;a0?s="right":s="left");const l=o.find(`.swipeout-actions-${s}`),c=o.find(".swipeout-content");if(l.length===0)return;o.trigger("swipeout:open").addClass("swipeout-opened").removeClass("swipeout-transitioning"),t.emit("swipeoutOpen",o[0]),l.addClass("swipeout-actions-opened");const d=l.children("a"),u=l.outerWidth(),p=s==="right"?-u:u;d.length>1&&d.each((f,h)=>{const m=C(f);s==="right"?m.transform(`translate3d(${-f.offsetLeft}px,0,0)`):m.css("z-index",d.length-h).transform(`translate3d(${u-f.offsetWidth-f.offsetLeft}px,0,0)`)}),o.addClass("swipeout-transitioning"),c.transitionEnd(()=>{o.trigger("swipeout:opened"),t.emit("swipeoutOpened",o[0]),i&&i.call(o[0])}),Pt(()=>{d.transform(`translate3d(${p}px,0,0)`),c.transform(`translate3d(${p}px,0,0)`)}),Ht.el=o[0]},close(t,e){const n=this,a=C(t).eq(0);if(a.length===0||!a.hasClass("swipeout-opened"))return;const r=a.find(".swipeout-actions-opened").hasClass("swipeout-actions-right")?"right":"left",s=a.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),i=s.children("a"),o=s.outerWidth();n.swipeout.allow=!1,a.trigger("swipeout:close"),n.emit("swipeoutClose",a[0]),a.removeClass("swipeout-opened").addClass("swipeout-transitioning");let l;function c(){n.swipeout.allow=!0,!a.hasClass("swipeout-opened")&&(a.removeClass("swipeout-transitioning"),i.transform(""),a.trigger("swipeout:closed"),n.emit("swipeoutClosed",a[0]),e&&e.call(a[0]),l&&clearTimeout(l))}a.find(".swipeout-content").transform("").transitionEnd(c),l=setTimeout(c,500),i.each(d=>{const u=C(d);r==="right"?u.transform(`translate3d(${-d.offsetLeft}px,0,0)`):u.transform(`translate3d(${o-d.offsetWidth-d.offsetLeft}px,0,0)`),u.css({left:"0px"}).removeClass("swipeout-overswipe-active")}),Ht.el&&Ht.el===a[0]&&(Ht.el=void 0)},delete(t,e){const n=this,a=C(t).eq(0);a.length!==0&&(Ht.el=void 0,a.trigger("swipeout:delete"),n.emit("swipeoutDelete",a[0]),a.css({height:`${a.outerHeight()}px`}),a.transitionEnd(()=>{if(a.trigger("swipeout:deleted"),n.emit("swipeoutDeleted",a[0]),e&&e.call(a[0]),a.parents(".virtual-list").length>0){const r=a.parents(".virtual-list")[0].f7VirtualList,s=a[0].f7VirtualListIndex;r&&typeof s<"u"&&r.deleteItem(s)}else n.params.swipeout.removeElements?n.params.swipeout.removeElementsWithTimeout?setTimeout(()=>{a.remove()},n.params.swipeout.removeElementsTimeout):a.remove():a.removeClass("swipeout-deleting swipeout-transitioning")}),Pt(()=>{a.addClass("swipeout-deleting swipeout-transitioning").css({height:"0px"}).find(".swipeout-content").transform("translate3d(-100%,0,0)")}))}},cC={name:"swipeout",params:{swipeout:{actionsNoFold:!1,noFollow:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,overswipeRatio:1.2}},create(){Ct(this,{swipeout:Ht})},clicks:{".swipeout-open":function(e,n){n===void 0&&(n={}),this.swipeout.open(n.swipeout,n.side)},".swipeout-close":function(e){const n=this,a=e.closest(".swipeout");a.length!==0&&n.swipeout.close(a)},".swipeout-delete":function(e,n){n===void 0&&(n={});const a=this,r=e.closest(".swipeout");if(r.length===0)return;const{confirm:s,confirmTitle:i}=n;n.confirm?a.dialog.confirm(s,i,()=>{a.swipeout.delete(r)}):a.swipeout.delete(r)}},on:{init(){const t=this;t.params.swipeout&&t.swipeout.init()}}},wo={toggleClicked(t){const e=this;let n=t.closest(".accordion-item").eq(0);n.length||(n=t.parents("li").eq(0));const a=t.parents(".accordion-item-content").eq(0);a.length&&a.parents(n).length||t.parents("li").length>1&&t.parents("li")[0]!==n[0]||e.accordion.toggle(n)},open(t){const e=this,n=C(t);let a=!1;function r(){a=!0}if(n.trigger("accordion:beforeopen",{prevent:r},r),e.emit("accordionBeforeOpen",n[0],r),a)return;const s=n.parents(".accordion-list").eq(0);let i=n.children(".accordion-item-content");if(i.removeAttr("aria-hidden"),i.length===0&&(i=n.find(".accordion-item-content")),i.length===0)return;const o=s.length>0&&n.parent().children(".accordion-item-opened");o.length>0&&e.accordion.close(o),i.transitionEnd(()=>{n.hasClass("accordion-item-opened")?(i.transition(0),i.css("height","auto"),Pt(()=>{i.transition(""),n.trigger("accordion:opened"),e.emit("accordionOpened",n[0])})):(i.css("height",""),n.trigger("accordion:closed"),e.emit("accordionClosed",n[0]))}),i.css("height",`${i[0].scrollHeight}px`),n.trigger("accordion:open"),n.addClass("accordion-item-opened"),e.emit("accordionOpen",n[0])},close(t){const e=this,n=C(t);let a=!1;function r(){a=!0}if(n.trigger("accordion:beforeclose",{prevent:r},r),e.emit("accordionBeforeClose",n[0],r),a)return;let s=n.children(".accordion-item-content");s.length===0&&(s=n.find(".accordion-item-content")),n.removeClass("accordion-item-opened"),s.attr("aria-hidden",!0),s.transition(0),s.css("height",`${s[0].scrollHeight}px`),s.transitionEnd(()=>{n.hasClass("accordion-item-opened")?(s.transition(0),s.css("height","auto"),Pt(()=>{s.transition(""),n.trigger("accordion:opened"),e.emit("accordionOpened",n[0])})):(s.css("height",""),n.trigger("accordion:closed"),e.emit("accordionClosed",n[0]))}),Pt(()=>{s.transition(""),s.css("height",""),n.trigger("accordion:close"),e.emit("accordionClose",n[0])})},toggle(t){const e=this,n=C(t);n.length!==0&&(n.hasClass("accordion-item-opened")?e.accordion.close(t):e.accordion.open(t))}},dC={name:"accordion",create(){Ct(this,{accordion:wo})},clicks:{".accordion-item .item-link, .accordion-item-toggle, .links-list.accordion-list > ul > li > a":function(e){const n=this;wo.toggleClicked.call(n,e)}}},uC={name:"contactsList"};let yo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r=Ie(),s=ye();let i;e.theme==="md"?i=48:e.theme==="ios"&&(i=44);const o={cols:1,height:i,cache:!0,dynamicHeightBufferSize:1,showFilteredItemsOnly:!1,renderExternal:void 0,setListHeight:!0,searchByItem:void 0,searchAll:void 0,ul:null,createUl:!0,scrollableParentEl:void 0,renderItem(b){return`
  • @@ -135,9 +135,9 @@ ${l.toString()}`)}return r&&(typeof r=="string"?o+=`?${r}`:Object.keys(r).length
  • - `.trim()},on:{}};if(a.useModulesParams(o),a.params=W(o,n),(a.params.height===void 0||!a.params.height)&&(a.params.height=i),a.$el=C(n.el),a.el=a.$el[0],a.$el.length===0)return;a.$el[0].f7VirtualList=a,a.items=a.params.items,a.params.showFilteredItemsOnly&&(a.filteredItems=[]),a.params.renderItem&&(a.renderItem=a.params.renderItem),a.$pageContentEl=a.$el.parents(".page-content"),a.pageContentEl=a.$pageContentEl[0],a.$scrollableParentEl=a.params.scrollableParentEl?C(a.params.scrollableParentEl).eq(0):a.$pageContentEl,!a.$scrollableParentEl.length&&a.$pageContentEl.length&&(a.$scrollableParentEl=a.$pageContentEl),a.scrollableParentEl=a.$scrollableParentEl[0],typeof a.params.updatableScroll<"u"?a.updatableScroll=a.params.updatableScroll:(a.updatableScroll=!0,r.ios&&r.osVersion.split(".")[0]<8&&(a.updatableScroll=!1));const l=a.params.ul;a.$ul=l?C(a.params.ul):a.$el.children("ul"),a.$ul.length===0&&a.params.createUl&&(a.$el.append("
      "),a.$ul=a.$el.children("ul")),a.ul=a.$ul[0];let c;!a.ul&&!a.params.createUl?c=a.$el:c=a.$ul,W(a,{$itemsWrapEl:c,itemsWrapEl:c[0],domCache:{},tempDomElement:s.createElement("ul"),lastRepaintY:null,fragment:s.createDocumentFragment(),pageHeight:void 0,rowsPerScreen:void 0,rowsBefore:void 0,rowsAfter:void 0,rowsToRender:void 0,maxBufferHeight:0,listHeight:void 0,dynamicHeight:typeof a.params.height=="function",autoHeight:a.params.height==="auto"}),a.useModules();const d=a.handleScroll.bind(a),u=a.handleResize.bind(a);let p,f,h,m;return a.attachEvents=function(){p=a.$el.parents(".page").eq(0),f=a.$el.parents(".tab").filter(w=>C(w).parent(".tabs").parent(".tabs-animated-wrap, swiper-container.tabs").length===0).eq(0),h=a.$el.parents(".panel").eq(0),m=a.$el.parents(".popup").eq(0),a.$scrollableParentEl.on("scroll",d),p.length&&p.on("page:reinit",u),f.length&&f.on("tab:show",u),h.length&&h.on("panel:open",u),m.length&&m.on("popup:open",u),e.on("resize",u)},a.detachEvents=function(){a.$scrollableParentEl.off("scroll",d),p.length&&p.off("page:reinit",u),f.length&&f.off("tab:show",u),h.length&&h.off("panel:open",u),m.length&&m.off("popup:open",u),e.off("resize",u)},a.init(),a}setListSize(e){const n=this,a=n.filteredItems||n.items;if(e||(n.pageHeight=n.$scrollableParentEl[0].offsetHeight),n.dynamicHeight){n.listHeight=0,n.heights=[];for(let r=0;r{r[parseInt(s.getAttribute("data-virtual-list-index"),10)]=s});for(let s=0;s"u"&&(n.heights[i]=40),n.listHeight+=n.heights[i]}}else n.listHeight=Math.ceil(a.length/n.params.cols)*n.params.height,n.rowsPerScreen=Math.ceil(n.pageHeight/n.params.height),n.rowsBefore=n.params.rowsBefore||n.rowsPerScreen*2,n.rowsAfter=n.params.rowsAfter||n.rowsPerScreen,n.rowsToRender=n.rowsPerScreen+n.rowsBefore+n.rowsAfter,n.maxBufferHeight=n.rowsBefore/2*n.params.height;(n.updatableScroll||n.params.setListHeight)&&n.$itemsWrapEl.css({height:`${n.listHeight}px`})}render(e,n){const a=this;e&&(a.lastRepaintY=null);let r=-(a.$el[0].getBoundingClientRect().top-a.$scrollableParentEl[0].getBoundingClientRect().top);if(typeof n<"u"&&(r=n),a.lastRepaintY===null||Math.abs(r-a.lastRepaintY)>a.maxBufferHeight||!a.updatableScroll&&a.$scrollableParentEl[0].scrollTop+a.pageHeight>=a.$scrollableParentEl[0].scrollHeight)a.lastRepaintY=r;else return;const s=a.filteredItems||a.items;let i,o,l=0,c=0;if(a.dynamicHeight||a.autoHeight){let f=0,h;a.maxBufferHeight=a.pageHeight;for(let m=0;m"u"&&(f+h>=r-a.pageHeight*2*a.params.dynamicHeightBufferSize?i=m:l+=h),typeof o>"u"&&((f+h>=r+a.pageHeight*2*a.params.dynamicHeightBufferSize||m===a.heights.length-1)&&(o=m+1),c+=h),f+=h;o=Math.min(o,s.length)}else i=(parseInt(r/a.params.height,10)-a.rowsBefore)*a.params.cols,i<0&&(i=0),o=Math.min(i+a.rowsToRender*a.params.cols,s.length);let d;const u=[];a.reachEnd=!1;let p;for(p=i;p{a.setListSize(!0)})}filterItems(e,n){n===void 0&&(n=!0);const a=this;a.filteredItems=[];for(let r=0;rn.items.length)return!1;let a=0;if(n.dynamicHeight||n.autoHeight)for(let s=0;s=0;a-=1)n.items.unshift(e[a]);if(n.params.cache){const a={};Object.keys(n.domCache).forEach(r=>{a[parseInt(r,10)+e.length]=n.domCache[r]}),n.domCache=a}n.update()}prependItem(e){this.prependItems([e])}moveItem(e,n){const a=this,r=e;let s=n;if(r===s)return;const i=a.items.splice(r,1)[0];if(s>=a.items.length?(a.items.push(i),s=a.items.length-1):a.items.splice(s,0,i),a.params.cache){const o={};Object.keys(a.domCache).forEach(l=>{const c=parseInt(l,10),d=ru)&&(o[c]=a.domCache[c]),c===d&&(o[u]=a.domCache[c]),c>d&&c<=u&&(o[c+p]=a.domCache[c])}),a.domCache=o}a.update()}insertItemBefore(e,n){const a=this;if(e===0){a.prependItem(n);return}if(e>=a.items.length){a.appendItem(n);return}if(a.items.splice(e,0,n),a.params.cache){const r={};Object.keys(a.domCache).forEach(s=>{const i=parseInt(s,10);i>=e&&(r[i+1]=a.domCache[i])}),a.domCache=r}a.update()}deleteItems(e){const n=this;let a,r=0;for(let s=0;sa&&(r=-s),i+=r,a=e[s];const o=n.items.splice(i,1)[0];if(n.filteredItems&&n.filteredItems.indexOf(o)>=0&&n.filteredItems.splice(n.filteredItems.indexOf(o),1),n.params.cache){const l={};Object.keys(n.domCache).forEach(c=>{const d=parseInt(c,10);d===i?delete n.domCache[i]:parseInt(c,10)>i?l[d-1]=n.domCache[c]:l[d]=n.domCache[c]}),n.domCache=l}}n.update()}deleteAllItems(){const e=this;e.items=[],delete e.filteredItems,e.params.cache&&(e.domCache={}),e.update()}deleteItem(e){this.deleteItems([e])}clearCache(){const e=this;e.domCache={}}update(e){const n=this;e&&n.params.cache&&(n.domCache={}),n.heightsCalculated=[],n.setListSize(),n.render(!0)}init(){const e=this;e.attachEvents(),e.setListSize(),e.render()}destroy(){let e=this;e.detachEvents(),e.$el[0].f7VirtualList=null,delete e.$el[0].f7VirtualList,Ze(e),e=null}};const dC={name:"virtualList",static:{VirtualList:yo},create(){const t=this;t.virtualList=et({defaultSelector:".virtual-list",constructor:yo,app:t,domProp:"f7VirtualList"})}};let Eo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r={el:null,listEl:null,indexes:"auto",iosItemHeight:14,mdItemHeight:14,scrollList:!0,label:!1,renderItem(E,k){return` + `.trim()},on:{}};if(a.useModulesParams(o),a.params=W(o,n),(a.params.height===void 0||!a.params.height)&&(a.params.height=i),a.$el=C(n.el),a.el=a.$el[0],a.$el.length===0)return;a.$el[0].f7VirtualList=a,a.items=a.params.items,a.params.showFilteredItemsOnly&&(a.filteredItems=[]),a.params.renderItem&&(a.renderItem=a.params.renderItem),a.$pageContentEl=a.$el.parents(".page-content"),a.pageContentEl=a.$pageContentEl[0],a.$scrollableParentEl=a.params.scrollableParentEl?C(a.params.scrollableParentEl).eq(0):a.$pageContentEl,!a.$scrollableParentEl.length&&a.$pageContentEl.length&&(a.$scrollableParentEl=a.$pageContentEl),a.scrollableParentEl=a.$scrollableParentEl[0],typeof a.params.updatableScroll<"u"?a.updatableScroll=a.params.updatableScroll:(a.updatableScroll=!0,r.ios&&r.osVersion.split(".")[0]<8&&(a.updatableScroll=!1));const l=a.params.ul;a.$ul=l?C(a.params.ul):a.$el.children("ul"),a.$ul.length===0&&a.params.createUl&&(a.$el.append("
        "),a.$ul=a.$el.children("ul")),a.ul=a.$ul[0];let c;!a.ul&&!a.params.createUl?c=a.$el:c=a.$ul,W(a,{$itemsWrapEl:c,itemsWrapEl:c[0],domCache:{},tempDomElement:s.createElement("ul"),lastRepaintY:null,fragment:s.createDocumentFragment(),pageHeight:void 0,rowsPerScreen:void 0,rowsBefore:void 0,rowsAfter:void 0,rowsToRender:void 0,maxBufferHeight:0,listHeight:void 0,dynamicHeight:typeof a.params.height=="function",autoHeight:a.params.height==="auto"}),a.useModules();const d=a.handleScroll.bind(a),u=a.handleResize.bind(a);let p,f,h,m;return a.attachEvents=function(){p=a.$el.parents(".page").eq(0),f=a.$el.parents(".tab").filter(w=>C(w).parent(".tabs").parent(".tabs-animated-wrap, swiper-container.tabs").length===0).eq(0),h=a.$el.parents(".panel").eq(0),m=a.$el.parents(".popup").eq(0),a.$scrollableParentEl.on("scroll",d),p.length&&p.on("page:reinit",u),f.length&&f.on("tab:show",u),h.length&&h.on("panel:open",u),m.length&&m.on("popup:open",u),e.on("resize",u)},a.detachEvents=function(){a.$scrollableParentEl.off("scroll",d),p.length&&p.off("page:reinit",u),f.length&&f.off("tab:show",u),h.length&&h.off("panel:open",u),m.length&&m.off("popup:open",u),e.off("resize",u)},a.init(),a}setListSize(e){const n=this,a=n.filteredItems||n.items;if(e||(n.pageHeight=n.$scrollableParentEl[0].offsetHeight),n.dynamicHeight){n.listHeight=0,n.heights=[];for(let r=0;r{r[parseInt(s.getAttribute("data-virtual-list-index"),10)]=s});for(let s=0;s"u"&&(n.heights[i]=40),n.listHeight+=n.heights[i]}}else n.listHeight=Math.ceil(a.length/n.params.cols)*n.params.height,n.rowsPerScreen=Math.ceil(n.pageHeight/n.params.height),n.rowsBefore=n.params.rowsBefore||n.rowsPerScreen*2,n.rowsAfter=n.params.rowsAfter||n.rowsPerScreen,n.rowsToRender=n.rowsPerScreen+n.rowsBefore+n.rowsAfter,n.maxBufferHeight=n.rowsBefore/2*n.params.height;(n.updatableScroll||n.params.setListHeight)&&n.$itemsWrapEl.css({height:`${n.listHeight}px`})}render(e,n){const a=this;e&&(a.lastRepaintY=null);let r=-(a.$el[0].getBoundingClientRect().top-a.$scrollableParentEl[0].getBoundingClientRect().top);if(typeof n<"u"&&(r=n),a.lastRepaintY===null||Math.abs(r-a.lastRepaintY)>a.maxBufferHeight||!a.updatableScroll&&a.$scrollableParentEl[0].scrollTop+a.pageHeight>=a.$scrollableParentEl[0].scrollHeight)a.lastRepaintY=r;else return;const s=a.filteredItems||a.items;let i,o,l=0,c=0;if(a.dynamicHeight||a.autoHeight){let f=0,h;a.maxBufferHeight=a.pageHeight;for(let m=0;m"u"&&(f+h>=r-a.pageHeight*2*a.params.dynamicHeightBufferSize?i=m:l+=h),typeof o>"u"&&((f+h>=r+a.pageHeight*2*a.params.dynamicHeightBufferSize||m===a.heights.length-1)&&(o=m+1),c+=h),f+=h;o=Math.min(o,s.length)}else i=(parseInt(r/a.params.height,10)-a.rowsBefore)*a.params.cols,i<0&&(i=0),o=Math.min(i+a.rowsToRender*a.params.cols,s.length);let d;const u=[];a.reachEnd=!1;let p;for(p=i;p{a.setListSize(!0)})}filterItems(e,n){n===void 0&&(n=!0);const a=this;a.filteredItems=[];for(let r=0;rn.items.length)return!1;let a=0;if(n.dynamicHeight||n.autoHeight)for(let s=0;s=0;a-=1)n.items.unshift(e[a]);if(n.params.cache){const a={};Object.keys(n.domCache).forEach(r=>{a[parseInt(r,10)+e.length]=n.domCache[r]}),n.domCache=a}n.update()}prependItem(e){this.prependItems([e])}moveItem(e,n){const a=this,r=e;let s=n;if(r===s)return;const i=a.items.splice(r,1)[0];if(s>=a.items.length?(a.items.push(i),s=a.items.length-1):a.items.splice(s,0,i),a.params.cache){const o={};Object.keys(a.domCache).forEach(l=>{const c=parseInt(l,10),d=ru)&&(o[c]=a.domCache[c]),c===d&&(o[u]=a.domCache[c]),c>d&&c<=u&&(o[c+p]=a.domCache[c])}),a.domCache=o}a.update()}insertItemBefore(e,n){const a=this;if(e===0){a.prependItem(n);return}if(e>=a.items.length){a.appendItem(n);return}if(a.items.splice(e,0,n),a.params.cache){const r={};Object.keys(a.domCache).forEach(s=>{const i=parseInt(s,10);i>=e&&(r[i+1]=a.domCache[i])}),a.domCache=r}a.update()}deleteItems(e){const n=this;let a,r=0;for(let s=0;sa&&(r=-s),i+=r,a=e[s];const o=n.items.splice(i,1)[0];if(n.filteredItems&&n.filteredItems.indexOf(o)>=0&&n.filteredItems.splice(n.filteredItems.indexOf(o),1),n.params.cache){const l={};Object.keys(n.domCache).forEach(c=>{const d=parseInt(c,10);d===i?delete n.domCache[i]:parseInt(c,10)>i?l[d-1]=n.domCache[c]:l[d]=n.domCache[c]}),n.domCache=l}}n.update()}deleteAllItems(){const e=this;e.items=[],delete e.filteredItems,e.params.cache&&(e.domCache={}),e.update()}deleteItem(e){this.deleteItems([e])}clearCache(){const e=this;e.domCache={}}update(e){const n=this;e&&n.params.cache&&(n.domCache={}),n.heightsCalculated=[],n.setListSize(),n.render(!0)}init(){const e=this;e.attachEvents(),e.setListSize(),e.render()}destroy(){let e=this;e.detachEvents(),e.$el[0].f7VirtualList=null,delete e.$el[0].f7VirtualList,Ze(e),e=null}};const pC={name:"virtualList",static:{VirtualList:yo},create(){const t=this;t.virtualList=et({defaultSelector:".virtual-list",constructor:yo,app:t,domProp:"f7VirtualList"})}};let Eo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r={el:null,listEl:null,indexes:"auto",iosItemHeight:14,mdItemHeight:14,scrollList:!0,label:!1,renderItem(E,k){return`
      • ${E}
      • - `.trim()},renderSkipPlaceholder(){return'
      • '},on:{}};a.useModulesParams(r),a.params=W(r,n);let s,i,o,l;if(a.params.el)s=C(a.params.el);else return a;if(s[0].f7ListIndex)return s[0].f7ListIndex;if(l=s.find("ul"),l.length===0&&(l=C("
          "),s.append(l)),a.params.listEl&&(i=C(a.params.listEl)),a.params.indexes==="auto"&&!i)return a;i?o=i.parents(".page-content").eq(0):(o=s.siblings(".page-content").eq(0),o.length===0&&(o=s.parents(".page").eq(0).find(".page-content").eq(0))),s[0].f7ListIndex=a,W(a,{app:e,$el:s,el:s&&s[0],$ul:l,ul:l&&l[0],$listEl:i,listEl:i&&i[0],$pageContentEl:o,pageContentEl:o&&o[0],indexes:n.indexes,height:0,skipRate:0}),a.useModules();function c(){const E={index:a};a.calcSize(),E!==a.height&&a.render()}function d(E){const k=C(E.target).closest("li");if(!k.length)return;let $=k.index();if(a.skipRate>0){const x=$/(k.siblings("li").length-1);$=Math.round((a.indexes.length-1)*x)}const M=a.indexes[$];a.$el.trigger("listindex:click",{content:M,index:$}),a.emit("local::click listIndexClick",a,M,$),a.$el.trigger("listindex:select",{content:M,index:$}),a.emit("local::select listIndexSelect",a,M,$),a.$listEl&&a.params.scrollList&&a.scrollListToIndex(M,$)}let u,p,f,h,m,b=null;function w(E){const k=l.children();k.length&&(f=k[0].getBoundingClientRect().top,h=k[k.length-1].getBoundingClientRect().top+k[0].offsetHeight,E.type==="touchstart"?E.targetTouches[0].pageX:E.pageX,E.type==="touchstart"?E.targetTouches[0].pageY:E.pageY,u=!0,p=!1,b=null)}function g(E){if(!u)return;!p&&a.params.label&&(m=C(''),s.append(m)),p=!0;const k=E.type==="touchmove"?E.targetTouches[0].pageY:E.pageY;E.preventDefault();let $=(k-f)/(h-f);$=Math.min(Math.max($,0),1);const M=Math.round((a.indexes.length-1)*$),x=a.indexes[M],F=h-f,S=(a.height-F)/2+(1-$)*F;M!==b&&(a.params.label&&m.html(x).transform(`translateY(-${S}px)`),a.$listEl&&a.params.scrollList&&a.scrollListToIndex(x,M)),b=M,a.$el.trigger("listindex:select"),a.emit("local::select listIndexSelect",a,x,M)}function v(){u&&(u=!1,p=!1,a.params.label&&(m&&m.remove(),m=void 0))}const y=Xe().passiveListener?{passive:!0}:!1;return a.attachEvents=function(){s.parents(".tab").on("tab:show",c),s.parents(".page").on("page:reinit",c),s.parents(".panel").on("panel:open",c),s.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast").on("modal:open",c),e.on("resize",c),s.on("click",d),s.on(e.touchEvents.start,w,y),e.on("touchmove:active",g),e.on("touchend:passive",v)},a.detachEvents=function(){s.parents(".tab").off("tab:show",c),s.parents(".page").off("page:reinit",c),s.parents(".panel").off("panel:open",c),s.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast").off("modal:open",c),e.off("resize",c),s.off("click",d),s.off(e.touchEvents.start,w,y),e.off("touchmove:active",g),e.off("touchend:passive",v)},a.init(),a}scrollListToIndex(e,n){const a=this,{$listEl:r,$pageContentEl:s,app:i}=a;if(!r||!s||s.length===0)return a;let o;if(r.find(".list-group-title").each(p=>{if(o)return;const f=C(p);f.text()===e&&(o=f)}),!o||o.length===0)return a;const l=o.parent().offset().top;let c=parseInt(s.css("padding-top"),10);const d=s[0].scrollTop,u=o.offset().top;if(s.parents(".page-with-navbar-large").length){const p=i.navbar.getElByPage(s.parents(".page-with-navbar-large").eq(0)),f=C(p).find(".title-large");f.length&&(c-=f[0].offsetHeight||0)}return l<=c?s.scrollTop(l+d-c):s.scrollTop(u+d-c),a}renderSkipPlaceholder(){const e=this;return e.params.renderSkipPlaceholder.call(e)}renderItem(e,n){const a=this;return a.params.renderItem.call(a,e,n)}render(){const e=this,{$ul:n,indexes:a,skipRate:r}=e;let s;const i=a.map((o,l)=>{if(l%r!==0&&r>0)return s=!0,"";let c=e.renderItem(o,l);return s&&(c=e.renderSkipPlaceholder()+c),s=!1,c}).join("");return n.html(i),e}calcSize(){const e=this,{app:n,params:a,el:r,indexes:s}=e,i=r.offsetHeight,o=a[`${n.theme}ItemHeight`],l=Math.floor(i/o),c=s.length;let d=0;return c>l&&(d=Math.ceil((c*2-1)/l)),e.height=i,e.skipRate=d,e}calcIndexes(){const e=this;return e.params.indexes==="auto"?(e.indexes=[],e.$listEl.find(".list-group-title").each(n=>{const a=C(n).text();e.indexes.indexOf(a)<0&&e.indexes.push(a)})):e.indexes=e.params.indexes,e}update(){const e=this;return e.calcIndexes(),e.calcSize(),e.render(),e}init(){const e=this;e.calcIndexes(),e.calcSize(),e.render(),e.attachEvents()}destroy(){let e=this;e.$el.trigger("listindex:beforedestroy",e),e.emit("local::beforeDestroy listIndexBeforeDestroy"),e.detachEvents(),e.$el[0]&&(e.$el[0].f7ListIndex=null,delete e.$el[0].f7ListIndex),Ze(e),e=null}};const uC={name:"listIndex",static:{ListIndex:Eo},create(){const t=this;t.listIndex=et({defaultSelector:".list-index",constructor:Eo,app:t,domProp:"f7ListIndex"})},on:{tabMounted(t){const e=this;C(t).find(".list-index-init").each(n=>{const a=W(C(n).dataset(),{el:n});e.listIndex.create(a)})},tabBeforeRemove(t){C(t).find(".list-index-init").each(e=>{e.f7ListIndex&&e.f7ListIndex.destroy()})},pageInit(t){const e=this;t.$el.find(".list-index-init").each(n=>{const a=W(C(n).dataset(),{el:n});e.listIndex.create(a)})},pageBeforeRemove(t){t.$el.find(".list-index-init").each(e=>{e.f7ListIndex&&e.f7ListIndex.destroy()})}},vnode:{"list-index-init":{insert(t){const e=this,n=t.elm,a=W(C(n).dataset(),{el:n});e.listIndex.create(a)},destroy(t){const e=t.elm;e.f7ListIndex&&e.f7ListIndex.destroy()}}}},pC={name:"timeline"},fC={show(){const t=this;let e,n,a,r,s;for(var i=arguments.length,o=new Array(i),l=0;l2&&n.constructor===Object&&([e,a,r,n]=o))),typeof a>"u"&&(a=!0);const c=C(e);if(r&&c[0]&&(c[0].f7TabRoute=r),!s&&(c.length===0||c.hasClass("tab-active")))return{$newTabEl:c,newTabEl:c[0]};let d;n&&(d=C(n));const u=c.parent(".tabs");if(u.length===0)return{$newTabEl:c,newTabEl:c[0]};t.swipeout&&(t.swipeout.allowOpen=!0);const p=[];function f(g){p.push(g)}function h(){p.forEach(g=>{g()})}let m=!1;if(u.parent().hasClass("tabs-animated-wrap")){u.parent()[a?"removeClass":"addClass"]("not-animated");const g=parseFloat(u.css("transition-duration").replace(",","."));a&&g&&(u.transitionEnd(h),m=!0);const v=(t.rtl?c.index():-c.index())*100;u.transform(`translate3d(${v}%,0,0)`)}let b;if(u[0].nodeName.toLowerCase()==="swiper-container"&&t.swiper){b=u[0].swiper;const g=b.slides.indexOf(c[0]);b&&b.activeIndex!==g?(m=!0,b.once("slideChangeTransitionEnd",()=>{h()}).slideTo(g,a?void 0:0)):b&&b.animating&&(m=!0,b.once("slideChangeTransitionEnd",()=>{h()}))}const w=u.children(".tab-active");if(w.removeClass("tab-active"),!s&&(!b||b&&!b.animating||b&&r)&&(w.hasClass("view")&&w.children(".page").length&&w.children(".page").each(g=>{C(g).trigger("page:tabhide"),t.emit("pageTabHide",g)}),w.trigger("tab:hide"),t.emit("tabHide",w[0])),c.addClass("tab-active"),!s&&(!b||b&&!b.animating||b&&r)&&(c.hasClass("view")&&c.children(".page").length&&c.children(".page").each(g=>{C(g).trigger("page:tabshow"),t.emit("pageTabShow",g)}),c.trigger("tab:show"),t.emit("tabShow",c[0])),!d&&(typeof e=="string"?d=C(`.tab-link[href="${e}"]`):d=C(`.tab-link[href="#${c.attr("id")}"]`),(!d||d&&d.length===0)&&C("[data-tab]").each(g=>{c.is(C(g).attr("data-tab"))&&(d=C(g))}),r&&(!d||d&&d.length===0)&&(d=C(`[data-route-tab-id="${r.route.tab.id}"]`),d.length===0&&(d=C(`.tab-link[href="${r.url}"]`))),d.length>1&&c.parents(".page").length&&(d=d.filter(g=>C(g).parents(".page")[0]===c.parents(".page")[0]),t.theme==="ios"&&d.length===0&&r))){const g=c.parents(".page"),v=C(t.navbar.getElByPage(g));d=v.find(`[data-route-tab-id="${r.route.tab.id}"]`),d.length===0&&(d=v.find(`.tab-link[href="${r.url}"]`))}if(d.length>0){let g;if(w&&w.length>0){const v=w.attr("id");v&&(g=C(`.tab-link[href="#${v}"]`),(!g||g&&g.length===0)&&(g=C(`.tab-link[data-route-tab-id="${v}"]`))),(!g||g&&g.length===0)&&C("[data-tab]").each(y=>{w.is(C(y).attr("data-tab"))&&(g=C(y))}),(!g||g&&g.length===0)&&(g=d.siblings(".tab-link-active"))}else r&&(g=d.siblings(".tab-link-active"));if(g&&g.length>1&&w&&w.parents(".page").length&&(g=g.filter(v=>C(v).parents(".page")[0]===w.parents(".page")[0])),g&&g.length>0&&g.removeClass("tab-link-active"),d&&d.length>0){d.addClass("tab-link-active");const v=d.parents(".tabbar, .tabbar-icons");t.toolbar&&v.length>0&&(v.hasClass("tabbar-highlight")||t.theme!=="ios")&&t.toolbar.setHighlight(v)}}return{$newTabEl:c,newTabEl:c[0],$oldTabEl:w,oldTabEl:w[0],onTabsChanged:f,animated:m}}},hC={name:"tabs",create(){const t=this;W(t,{tab:{show:fC.show.bind(t)}})},on:{"pageInit tabMounted":function(e){const a=C(e.el||e).find(".tabs-animated-wrap > .tabs > .tab-active")[0];if(!a)return;this.tab.show({tabEl:a,animatedInit:!0,animate:!1})}},clicks:{".tab-link":function(e,n){n===void 0&&(n={}),(e.attr("href")&&e.attr("href").indexOf("#")===0||e.attr("data-tab"))&&this.tab.show({tabEl:n.tab||e.attr("href"),tabLinkEl:e,animate:n.animate})}}};function mC(t){const e=t.app;if(t.swipeInitialized)return;W(t,{swipeable:!0,swipeInitialized:!0});const n=t.params,{$el:a,$backdropEl:r,side:s,effect:i}=t;let o,l,c,d,u,p;const f={};let h,m,b,w,g,v,y,E=0;function k(S){if(!t.swipeable||c||!e.panel.allowOpen||!n.swipe&&!n.swipeOnlyClose||l||C(".modal-in:not(.toast):not(.notification), .photo-browser-in").length>0)return;o=e.panel.get(s==="left"?"right":"left")||{};const I=o.opened&&o.$el&&!o.$el.hasClass("panel-in-breakpoint");!t.opened&&I||!n.swipeOnlyClose&&I||S.target&&S.target.nodeName.toLowerCase()==="input"&&S.target.type==="range"||C(S.target).closest(".range-slider, swiper-container.tabs, .calendar-months, .no-swipe-panel, .card-opened").length>0||(f.x=S.type==="touchstart"?S.targetTouches[0].pageX:S.pageX,f.y=S.type==="touchstart"?S.targetTouches[0].pageY:S.pageY,!(n.swipeOnlyClose&&!t.opened)&&(n.swipeActiveArea&&!t.opened&&(s==="left"&&f.x>n.swipeActiveArea||s==="right"&&f.x"u"&&(u=!!(u||Math.abs(B-f.y)>Math.abs(I-f.x))),u){l=!1;return}if(!v){if(I>f.x?v="to-right":v="to-left",n.swipeActiveArea>0&&!t.opened){if(s==="left"&&f.x>n.swipeActiveArea){l=!1;return}if(s==="right"&&f.xg&&(b=g)):(b=m-(t.opened?g:0),b>0&&(b=0),b<-g&&(b=-g)):(b=m+(t.opened?g:L),b<0&&(b=0),b>g+L&&(b=g+L));const V=Math.abs(b/g);if(i==="reveal")n.swipeNoFollow||(y.transform(`translate3d(${b}px,0,0)`).transition(0),r&&r.transform(`translate3d(${b}px,0,0)`).transition(0)),a.trigger("panel:swipe",Math.abs(b/g)),t.emit("local::swipe panelSwipe",t,Math.abs(b/g));else{if(s==="left"&&(b-=g),!n.swipeNoFollow&&(w=1-Math.abs(b/g),r&&(r.transition(0),r.css({opacity:w})),a.transform(`translate3d(${b}px,0,0)`).transition(0),i==="push")){const H=s==="left"?b+g:b-g;y.transform(`translate3d(${H}px,0,0)`).transition(0),r&&r.transform(`translate3d(${H}px,0,0)`).transition(0)}a.trigger("panel:swipe",Math.abs(b/g)),t.emit("local::swipe panelSwipe",t,Math.abs(b/g))}n.swipeNoFollow&&(t.opened&&V===0||!t.opened&&V===1)&&(p=!0,M(S))}function M(S){if(!l||!d){l=!1,d=!1;return}const I=S.type==="gesturestart"||c;l=!1,d=!1;const B=new Date().getTime()-h;let P;const L=i==="floating"?s==="left"?8:-8:0,V=(b===L||Math.abs(b)===g)&&!n.swipeNoFollow,H=n.swipeThreshold||0;I?P="reset":t.opened?i==="cover"||i==="push"||i==="floating"?b===0?P="reset":B<300&&Math.abs(b)>0?P="swap":B>=300&&Math.abs(b)=0||B>=300&&Math.abs(b)<=g/2?s==="left"&&b===g?P="reset":P="swap":P="reset":Math.abs(m)0||B>=300&&Math.abs(b)0||B>=300&&Math.abs(b)>=g/2?P="swap":P="reset",P==="swap"&&(t.opened?t.close(!V):t.open(!V));let D=!0;if(P==="reset"&&!t.opened)if(V)a.removeClass("panel-in-swipe");else{D=!1;const O=i==="reveal"?y:a;t.setStateClasses("before-closing"),O.transitionEnd(()=>{a.hasClass("panel-in")||(a.removeClass("panel-in-swipe"),t.setStateClasses("after-closing"))})}(i==="reveal"||i==="push")&&Mt(()=>{y.transition(""),y.transform("")}),D&&a.removeClass("panel-in-swipe"),a.transition("").transform(""),r&&r.transform("").transition("").css({opacity:"",visibility:""})}function x(S){c=!0,M(S)}function F(){c=!1}e.on("touchstart:passive",k),e.on("touchmove:active",$),e.on("touchend:passive",M),e.on("gesturestart",x),e.on("gestureend",F),t.on("panelDestroy",()=>{e.off("touchstart:passive",k),e.off("touchmove:active",$),e.off("touchend:passive",M),e.off("gesturestart",x),e.off("gestureend",F)})}function gC(t){const e=t.app,n=Xe();if(t.resizableInitialized)return;W(t,{resizable:!0,resizableWidth:null,resizableInitialized:!0});const a=C("html"),{$el:r,$backdropEl:s,side:i,effect:o}=t;if(!r)return;let l,c;const d={};let u,p,f,h,m,b;const w=o!=="cover"&&o!=="floating";function g(x){if(!x)return null;if(x.indexOf("%")>=0||x.indexOf("vw")>=0)return parseInt(x,10)/100*e.width;const F=parseInt(x,10);return Number.isNaN(F)?null:F}function v(){return t.resizable&&r.hasClass("panel-resizable")}function y(x){v()&&(d.x=x.type==="touchstart"?x.targetTouches[0].pageX:x.pageX,d.y=x.type==="touchstart"?x.targetTouches[0].pageY:x.pageY,c=!1,l=!0,h=g(r.css("min-width")),m=g(r.css("max-width")),b=r.hasClass("panel-in-breakpoint"))}function E(x){if(!l)return;const F=x.type==="touchmove"?x.targetTouches[0].pageX:x.pageX;c||(p=r[0].offsetWidth,r.transition(0),r.addClass("panel-resizing"),a.css("cursor","col-resize"),(w||b)&&(f=C(t.getViewEl()),t.$containerEl&&t.$containerEl.hasClass("page")&&f.add(t.$containerEl.children(".page-content, .tabs, .fab"))),w&&!b&&(s.transition(0),f.transition(0))),c=!0,x.preventDefault(),u=F-d.x;let S=i==="left"?p+u:p-u;h&&!Number.isNaN(h)&&(S=Math.max(S,h)),m&&!Number.isNaN(m)&&(S=Math.min(S,m)),S=Math.min(Math.max(S,0),e.width),t.resizableWidth=S,r[0].style.width=`${S}px`,w&&!b?(f&&f.transform(`translate3d(${i==="left"?S:-S}px, 0, 0)`),s&&s.transform(`translate3d(${i==="left"?S:-S}px, 0, 0)`)):b&&f&&f.css(`margin-${i}`,`${S}px`),r.trigger("panel:resize",S),t.emit("local::resize panelResize",t,S)}function k(){if(C("html").css("cursor",""),!l||!c){l=!1,c=!1;return}l=!1,c=!1,a[0].style.setProperty(`--f7-panel-${i}-width`,`${t.resizableWidth}px`),r[0].style.width="",w&&!b&&(f.transform(""),s.transform("")),r.removeClass("panel-resizing"),Mt(()=>{r.transition(""),w&&(s.transition(""),f&&f.transition(""))})}function $(){!t.opened||!t.resizableWidth||(h=g(r.css("min-width")),m=g(r.css("max-width")),h&&!Number.isNaN(h)&&t.resizableWidthm&&(t.resizableWidth=Math.min(t.resizableWidth,m)),t.resizableWidth=Math.min(Math.max(t.resizableWidth,0),e.width),a[0].style.setProperty(`--f7-panel-${i}-width`,`${t.resizableWidth}px`))}t.$el.find(".panel-resize-handler").length===0&&t.$el.append('
          '),t.$resizeHandlerEl=t.$el.children(".panel-resize-handler"),r.addClass("panel-resizable");const M=n.passiveListener?{passive:!0}:!1;t.$el.on(e.touchEvents.start,".panel-resize-handler",y,M),e.on("touchmove:active",E),e.on("touchend:passive",k),e.on("resize",$),t.on("beforeOpen",$),t.once("panelDestroy",()=>{r.removeClass("panel-resizable"),t.$resizeHandlerEl.remove(),t.$el.off(e.touchEvents.start,".panel-resize-handler",y,M),e.off("touchmove:active",E),e.off("touchend:passive",k),e.off("resize",$),t.off("beforeOpen",$)})}let Zr=class extends Ue{constructor(e,n){n===void 0&&(n={});const a=W({on:{}},e.params.panel,n);super(a,[e]);const r=this;r.params=a,r.$containerEl=r.params.containerEl?C(r.params.containerEl).eq(0):e.$el,r.containerEl=r.$containerEl[0],r.containerEl||(r.$containerEl=e.$el,r.containerEl=e.$el[0]);let s;if(r.params.el?s=C(r.params.el).eq(0):r.params.content&&(s=C(r.params.content).filter(d=>d.nodeType===1).eq(0)),s.length===0)return r;if(s[0].f7Panel)return s[0].f7Panel;s[0].f7Panel=r;let{side:i,effect:o,resizable:l}=r.params;typeof i>"u"&&(i=s.hasClass("panel-left")?"left":"right"),typeof o>"u"&&(o=s.hasClass("panel-cover")?"cover":s.hasClass("panel-push")?"push":s.hasClass("panel-floating")?"floating":"reveal"),typeof l>"u"&&(l=s.hasClass("panel-resizable"));let c;return r.params.backdrop&&r.params.backdropEl?c=C(r.params.backdropEl):r.params.backdrop&&(c=r.$containerEl.children(".panel-backdrop"),c.length===0&&(c=C('
          '),r.$containerEl.prepend(c))),W(r,{app:e,side:i,effect:o,resizable:l,$el:s,el:s[0],opened:!1,$backdropEl:c,backdropEl:c&&c[0]}),r.useModules(),r.init(),r}getViewEl(){const e=this;let n;return e.$containerEl.children(".views").length>0?n=e.$containerEl.children(".views")[0]:n=e.$containerEl.children(".view")[0],n}setStateClasses(e){const n=this,{side:a,el:r,effect:s}=n,i=n.getViewEl(),o=i&&i.contains(r),l=!i||o?n.$containerEl:C("html");e==="open"&&l.addClass(`with-panel with-panel-${n.side}-${n.effect}`),e==="before-closing"&&l.addClass("with-panel-closing"),e==="closing"&&(l.addClass("with-panel-closing"),l.removeClass(`with-panel with-panel-${n.side}-${n.effect}`)),e==="after-closing"&&l.removeClass("with-panel-closing"),e==="closed"&&l.removeClass(`with-panel-${a}-${s}`)}enableVisibleBreakpoint(){const e=this;return e.visibleBreakpointDisabled=!1,e.setVisibleBreakpoint(),e}disableVisibleBreakpoint(){const e=this;return e.visibleBreakpointDisabled=!0,e.setVisibleBreakpoint(),e}toggleVisibleBreakpoint(){const e=this;return e.visibleBreakpointDisabled=!e.visibleBreakpointDisabled,e.setVisibleBreakpoint(),e}setVisibleBreakpoint(e){e===void 0&&(e=!0);const n=this,a=n.app;n.visibleBreakpointResizeHandler||(n.visibleBreakpointResizeHandler=function(){n.setVisibleBreakpoint()},a.on("resize",n.visibleBreakpointResizeHandler));const{side:r,$el:s,$containerEl:i,params:o,visibleBreakpointDisabled:l}=n,c=o.visibleBreakpoint,d=C(n.getViewEl()),u=s.hasClass("panel-in-breakpoint");i&&i.hasClass("page")&&d.add(i.children(".page-content, .tabs, .fab")),a.width>=c&&typeof c<"u"&&c!==null&&!l?u?d.css({[`margin-${r}`]:`${s.width()}px`}):(n.setStateClasses("closed"),s.addClass("panel-in-breakpoint").removeClass("panel-in panel-in-collapsed"),n.onOpen(!1),n.onOpened(),d.css({[`margin-${r}`]:`${s.width()}px`}),a.allowPanelOpen=!0,e&&(n.emit("local::breakpoint panelBreakpoint",n),n.$el.trigger("panel:breakpoint"))):u&&(s.removeClass("panel-in-breakpoint panel-in"),n.onClose(),n.onClosed(),d.css({[`margin-${r}`]:""}),e&&(n.emit("local::breakpoint panelBreakpoint",n),n.$el.trigger("panel:breakpoint")))}enableCollapsedBreakpoint(){const e=this;return e.collapsedBreakpointDisabled=!1,e.setCollapsedBreakpoint(),e}disableCollapsedBreakpoint(){const e=this;return e.collapsedBreakpointDisabled=!0,e.setCollapsedBreakpoint(),e}toggleCollapsedBreakpoint(){const e=this;return e.collapsedBreakpointDisabled=!e.collapsedBreakpointDisabled,e.setCollapsedBreakpoint(),e}setCollapsedBreakpoint(e){e===void 0&&(e=!0);const n=this,a=n.app;n.collapsedBreakpointResizeHandler||(n.collapsedBreakpointResizeHandler=function(){n.setCollapsedBreakpoint()},a.on("resize",n.collapsedBreakpointResizeHandler));const{$el:r,params:s,collapsedBreakpointDisabled:i}=n;if(r.hasClass("panel-in-breakpoint"))return;const o=s.collapsedBreakpoint,l=r.hasClass("panel-in-collapsed");a.width>=o&&typeof o<"u"&&o!==null&&!i?l||(n.setStateClasses("closed"),r.addClass("panel-in-collapsed").removeClass("panel-in"),n.collapsed=!0,a.allowPanelOpen=!0,e&&(n.emit("local::collapsedBreakpoint panelCollapsedBreakpoint",n),n.$el.trigger("panel:collapsedbreakpoint"))):l&&(r.removeClass("panel-in-collapsed panel-in"),n.collapsed=!1,e&&(n.emit("local::collapsedBreakpoint panelCollapsedBreakpoint",n),n.$el.trigger("panel:collapsedbreakpoint")))}enableResizable(){const e=this;return e.resizableInitialized?(e.resizable=!0,e.$el.addClass("panel-resizable")):gC(e),e}disableResizable(){const e=this;return e.resizable=!1,e.$el.removeClass("panel-resizable"),e}enableSwipe(){const e=this;return e.swipeInitialized?e.swipeable=!0:mC(e),e}disableSwipe(){const e=this;return e.swipeable=!1,e}onOpen(e){e===void 0&&(e=!0);const n=this;n._openTransitionStarted=!1;const a=n.app;n.opened=!0,a.panel.allowOpen=!1,n.$el.trigger("panel:beforeopen"),n.emit("local::beforeOpen panelBeforeOpen",n),e&&n.setStateClasses("open"),n.$el.trigger("panel:open"),n.emit("local::open panelOpen",n)}onOpened(){const e=this,n=e.app;n.panel.allowOpen=!0,e.$el.trigger("panel:opened"),e.emit("local::opened panelOpened",e)}onClose(){const e=this,n=e.app;e.opened=!1,n.panel.allowOpen=!1,e.$el.trigger("panel:beforeclose"),e.emit("local::beforeClose panelBeforeClose",e),e.setStateClasses("closing"),e.$el.trigger("panel:close"),e.emit("local::close panelClose",e)}onClosed(){const e=this,n=e.app;if(n.panel.allowOpen=!0,e.setStateClasses("after-closing"),e.$el.removeClass("panel-out"),e.$backdropEl){const a=n.panel.get(".panel-in");(!a||a&&!a.$backdropEl)&&e.$backdropEl.removeClass("panel-backdrop-in")}e.$el.trigger("panel:closed"),e.emit("local::closed panelClosed",e)}toggle(e){e===void 0&&(e=!0);const n=this,a=n.params.visibleBreakpoint;return n.app.width>=a&&typeof a<"u"&&a!==null?n.toggleVisibleBreakpoint():(n.opened?n.close(e):n.open(e),n)}insertToRoot(){const e=this,n=ye(),{$el:a,$backdropEl:r,$containerEl:s}=e,i=a.parent(),o=a.parents(n).length>0;if(!i.is(s)||a.prevAll(".views, .view").length){const l=s.children(".panel, .views, .view").eq(0),c=s.children(".panel-backdrop").eq(0);l.length?a.insertBefore(l):c?a.insertBefore(c):s.prepend(a),r&&r.length&&(!r.parent().is(s)&&r.nextAll(".panel").length===0||r.parent().is(s)&&r.nextAll(".panel").length===0)&&r.insertBefore(a),e.once("panelClosed",()=>{o?i.append(a):a.remove()})}}open(e){e===void 0&&(e=!0);const n=this,a=n.app;if(!a.panel.allowOpen)return!1;const{effect:r,$el:s,$backdropEl:i,opened:o,$containerEl:l}=n;if(!s||s.hasClass("panel-in"))return n;if(n.insertToRoot(),o||s.hasClass("panel-in-breakpoint")||s.hasClass("panel-in"))return!1;const c=a.panel.get(".panel-in");c&&c!==n&&c.close(e),s[e?"removeClass":"addClass"]("not-animated"),s.addClass("panel-in"),i&&(i.addClass("panel-backdrop-in"),i[e?"removeClass":"addClass"]("not-animated")),["cover","push","floating"].includes(n.effect)&&(n._clientLeft=s[0].clientLeft);const d=C(n.getViewEl());l&&l.hasClass("page")&&d.add(l.children(".page-content, .tabs"));const u=r==="reveal"?d:s;function p(){u.transitionStart(()=>{n._openTransitionStarted=!0})}function f(){u.transitionEnd(h=>{C(h.target).is(u)?s.hasClass("panel-out")?n.onClosed():n.onOpened():f()})}return e?(i&&i.removeClass("not-animated"),p(),f(),s.removeClass("panel-out not-animated").addClass("panel-in"),n.onOpen()):(i&&i.addClass("not-animated"),s.removeClass("panel-out").addClass("panel-in not-animated"),n.onOpen(),n.onOpened(),n._openTransitionStarted=!0),!0}close(e){e===void 0&&(e=!0);const n=this,{effect:a,$el:r,$backdropEl:s,opened:i,$containerEl:o}=n;if(!i||r.hasClass("panel-in-breakpoint")||!r.hasClass("panel-in"))return n;r[e?"removeClass":"addClass"]("not-animated"),s&&s[e?"removeClass":"addClass"]("not-animated");const l=C(n.getViewEl());o&&o.hasClass("page")&&l.add(o.children(".page-content, .tabs"));const c=a==="reveal"?l:r;n._openTransitionStarted||(e=!1);function d(){r.hasClass("panel-out")?n.onClosed():r.hasClass("panel-in")&&n.onOpened(),n.setStateClasses("after-closing")}return e?(c.transitionEnd(()=>{d()}),r.removeClass("panel-in").addClass("panel-out"),n.onClose()):(r.addClass("not-animated").removeClass("panel-in").addClass("panel-out"),n.onClose(),n.onClosed()),n}init(){const e=this;typeof e.params.visibleBreakpoint<"u"&&e.setVisibleBreakpoint(),typeof e.params.collapsedBreakpoint<"u"&&e.setCollapsedBreakpoint(),e.params.swipe&&e.enableSwipe(),e.resizable&&e.enableResizable()}destroy(){let e=this;const n=e.app,{$containerEl:a}=e;if(e.$el){if(e.emit("local::beforeDestroy panelBeforeDestroy",e),e.$el.trigger("panel:beforedestroy"),e.visibleBreakpointResizeHandler&&n.off("resize",e.visibleBreakpointResizeHandler),e.collapsedBreakpointResizeHandler&&n.off("resize",e.collapsedBreakpointResizeHandler),e.$el.hasClass("panel-in-breakpoint")||e.$el.hasClass("panel-in-collapsed")){const r=C(e.getViewEl());a&&a.hasClass("page")&&r.add(a.children(".page-content, .tabs")),e.$el.removeClass("panel-in-breakpoint panel-in-collapsed panel-in"),r.css({[`margin-${e.side}`]:""}),e.emit("local::breakpoint panelBreakpoint",e),e.$el.trigger("panel:breakpoint")}e.$el.trigger("panel:destroy"),e.emit("local::destroy panelDestroy",e),e.el&&(e.el.f7Panel=null,delete e.el.f7Panel),Ze(e),e=null}}};const bC={name:"panel",params:{panel:{opened:void 0,side:void 0,effect:void 0,resizable:void 0,backdrop:!0,backdropEl:void 0,visibleBreakpoint:void 0,collapsedBreakpoint:void 0,swipe:!1,swipeNoFollow:!1,swipeOnlyClose:!1,swipeActiveArea:0,swipeThreshold:0,closeByBackdropClick:!0,containerEl:void 0}},static:{Panel:Zr},create(){const t=this;W(t,{panel:{allowOpen:!0,create(e){return new Zr(t,e)},get(e){if(e===void 0&&(e=".panel"),e instanceof Zr)return e;(e==="left"||e==="right")&&(e=`.panel-${e}`);const n=C(e);if(!(n.length===0||n.length>1))return n[0].f7Panel},destroy(e){e===void 0&&(e=".panel");const n=t.panel.get(e);if(n&&n.destroy)return n.destroy()},open(e,n){e===void 0&&(e=".panel"),(e==="left"||e==="right")&&(e=`.panel-${e}`);let a=t.panel.get(e);if(a&&a.open)return a.open(n);if(!a)return a=t.panel.create({el:e}),a.open(n)},close(e,n){e===void 0&&(e=".panel-in"),(e==="left"||e==="right")&&(e=`.panel-${e}`);let a=t.panel.get(e);if(a&&a.open)return a.close(n);if(!a)return a=t.panel.create({el:e}),a.close(n)},toggle(e,n){e===void 0&&(e=".panel"),(e==="left"||e==="right")&&(e=`.panel-${e}`);let a=t.panel.get(e);if(a&&a.toggle)return a.toggle(n);if(!a)return a=t.panel.create({el:e}),a.toggle(n)}}})},on:{init(){const t=this;C(".panel-init").each(e=>{const n=Object.assign({el:e},C(e).dataset()||{});t.panel.create(n)})},pageInit(t){const e=this;t.$el.find(".panel-init").each(n=>{const a=Object.assign({el:n},C(n).dataset()||{});e.panel.create(a)})},pageBeforeRemove(t){const e=this;t.$el.find(".panel-init").each(n=>{const a=e.panel.get(n);a&&a.destroy&&a.destroy()})}},vnode:{"panel-init":{insert(t){const e=this,n=t.elm,a=Object.assign({el:n},C(n).dataset()||{});e.panel.create(a)},destroy(t){const e=this,n=t.elm,a=e.panel.get(n);a&&a.destroy&&a.destroy()}}},clicks:{".panel-open":function(e,n){n===void 0&&(n={}),this.panel.open(n.panel,n.animate)},".panel-close":function(e,n){n===void 0&&(n={}),this.panel.close(n.panel,n.animate)},".panel-toggle":function(e,n){n===void 0&&(n={}),this.panel.toggle(n.panel,n.animate)},".panel-backdrop":function(){const e=this,n=C(".panel-in:not(.panel-out)");if(!n.length)return;const a=n[0]&&n[0].f7Panel;n.trigger("panel:backdrop-click"),a&&a.emit("backdropClick",a),e.emit("panelBackdropClick",a||n[0]),!(a&&a.params.closeByBackdropClick===!1)&&e.params.panel.closeByBackdropClick&&e.panel.close()}}},vC={open(t,e){t===void 0&&(t=".card-expandable"),e===void 0&&(e=!0);const n=this,a=Ie(),r=ye(),s=Xe(),i=C(t).eq(0);if(!i||!i.length||i.hasClass("card-opened")||i.hasClass("card-opening")||i.hasClass("card-closing"))return;const o=i.parents(".page").eq(0);if(!o.length||o.find(".card-opened").length)return;let l;function c(){l=!0}if(i.trigger("card:beforeopen",{prevent:c}),n.emit("cardBeforeOpen",i[0],c),l)return;const d=Object.assign({animate:e},n.params.card,i.dataset()),u=i.parents(".page-content");let p;i.attr("data-backdrop-el")&&(p=C(i.attr("data-backdrop-el"))),!p&&d.backdrop&&(p=u.find(".card-backdrop"),p.length||(p=C('
          '),u.append(p)));let f,h;d.hideNavbarOnOpen&&(f=o.children(".navbar"),f.length||o[0].f7Page&&(f=o[0].f7Page.$navbarEl)),d.hideToolbarOnOpen&&(h=o.children(".toolbar"),h.length||(h=o.parents(".view").children(".toolbar")),h.length||(h=o.parents(".views").children(".toolbar")));const m=i.css("transform");let b;m&&m.match(/[2-9]/)&&(b=!0);const w=i.children(".card-content"),g=C(r.createElement("div")).addClass("card-expandable-size");i.append(g);let v=i[0].offsetWidth,y=i[0].offsetHeight,E=o[0].offsetWidth,k=o[0].offsetHeight,$=g[0].offsetWidth||E,M=g[0].offsetHeight||k,x;f&&!d.hideStatusbarOnOpen&&M===k&&(x=parseInt(f.css("--f7-safe-area-top"),10),Number.isNaN(x)&&(x=0)),x&&(M-=x);let F=$/v,S=M/y,I=i.offset(),B=o.offset();x&&(B.top+=x/2),I.left-=B.left;let P,L;if(b){const U=m.replace(/matrix\(|\)/g,"").split(",").map(K=>K.trim());if(U&&U.length>1){const K=parseFloat(U[0]);P=I.left-v*(1-K)/2,L=I.top-B.top-y*(1-K)/2,n.rtl&&(P-=i[0].scrollLeft)}else P=i[0].offsetLeft,L=i[0].offsetTop-(u.length?u[0].scrollTop:0)}else P=I.left,L=I.top-B.top,n.rtl&&(P-=i[0].scrollLeft);P-=(E-$)/2,L-=(k-M)/2;let V=$-v-P;n.rtl&&([P,V]=[V,P]);let H=M-y-L,D=(V-P)/2,O=(H-L)/2;d.hideNavbarOnOpen&&f&&f.length&&(f.closest(".navbar-hidden").length?i[0].f7KeepNavbarOnClose=!0:(delete i[0].f7KeepNavbarOnClose,n.navbar.hide(f,d.animate,d.hideStatusbarOnOpen,!0))),d.hideToolbarOnOpen&&h&&h.length&&(h.closest(".toolbar-hidden").length?i[0].f7KeepToolbarOnClose=!0:(delete i[0].f7KeepToolbarOnClose,n.toolbar.hide(h,d.animate))),p&&p.removeClass("card-backdrop-out").addClass("card-backdrop-in"),i.removeClass("card-transitioning"),d.animate&&i.addClass("card-opening"),i.trigger("card:open"),n.emit("cardOpen",i[0]);function _(){o.addClass("page-with-card-opened"),a.ios&&u.length&&(u.css("height",`${u[0].offsetHeight+1}px`),setTimeout(()=>{u.css("height","")})),i.addClass("card-opened"),i.removeClass("card-opening"),i.trigger("card:opened"),n.emit("cardOpened",i[0],o[0])}w.css({width:`${$}px`,height:`${M}px`}).transform(`translate3d(${n.rtl?P+D:-P-D}px, 0px, 0) scale(${1/F}, ${1/S})`),i.transform(`translate3d(${n.rtl?-D:D}px, ${O}px, 0) scale(${F}, ${S})`),d.animate?i.transitionEnd(()=>{_()}):_();function N(){i.removeClass("card-transitioning"),v=i[0].offsetWidth,y=i[0].offsetHeight,E=o[0].offsetWidth,k=o[0].offsetHeight,$=g[0].offsetWidth||E,M=g[0].offsetHeight||k,x=0,f&&!d.hideStatusbarOnOpen&&M===k&&(x=parseInt(f.css("--f7-safe-area-top"),10),Number.isNaN(x)&&(x=0)),x&&(M-=x),F=$/v,S=M/y,i.transform("translate3d(0px, 0px, 0) scale(1)"),I=i.offset(),B=o.offset(),x&&(B.top+=x/2),I.left-=B.left,I.top-=B.top,P=I.left-(E-$)/2,n.rtl&&(P-=i[0].scrollLeft),L=I.top-(k-M)/2,V=$-v-P,H=M-y-L,n.rtl&&([P,V]=[V,P]),D=(V-P)/2,O=(H-L)/2,i.transform(`translate3d(${n.rtl?-D:D}px, ${O}px, 0) scale(${F}, ${S})`),w.css({width:`${$}px`,height:`${M}px`}).transform(`translate3d(${n.rtl?P+D:-P-D}px, 0px, 0) scale(${1/F}, ${1/S})`)}let G,ee,X,se,ne,ie,le,be,oe,ce,pe,R;function A(U){!C(U.target).closest(i).length||!U.isTrusted||i.hasClass("card-opened")&&(R=i.find(d.scrollableEl),R[0]&&R[0]!==w[0]&&!R[0].contains(U.target)?G=0:G=R.scrollTop(),ee=!0,se=U.targetTouches[0].pageX,ne=U.targetTouches[0].pageY,be=void 0,ce=!1,pe=!1)}function z(U){if(!(!ee||!U.isTrusted)){if(ie=U.targetTouches[0].pageX,le=U.targetTouches[0].pageY,typeof be>"u"&&(be=!!(be||Math.abs(le-ne)>Math.abs(ie-se))),!pe&&!ce&&(!be&&U.targetTouches[0].clientX<=50?pe=!0:ce=!0),!(pe||ce)||ce&&G!==0){ee=!0,X=!0;return}X||i.removeClass("card-transitioning"),X=!0,oe=Math.max(ce?(le-ne)/150:(ie-se)/(v/2),0),(oe>0&&ce||pe)&&(ce&&a.ios&&R[0]===w[0]&&(R.css("-webkit-overflow-scrolling","auto"),R.scrollTop(0)),U.preventDefault()),oe>1&&(oe**=.3),oe>(ce?1.3:1.1)?(ee=!1,X=!1,n.card.close(i)):i.transform(`translate3d(${n.rtl?-D:D}px, ${O}px, 0) scale(${F*(1-oe*.2)}, ${S*(1-oe*.2)})`)}}function q(U){!ee||!X||!U.isTrusted||(ee=!1,X=!1,a.ios&&R.css("-webkit-overflow-scrolling",""),oe>=.8?n.card.close(i):i.addClass("card-transitioning").transform(`translate3d(${n.rtl?-D:D}px, ${O}px, 0) scale(${F}, ${S})`))}i[0].detachEventHandlers=function(){n.off("resize",N),s.touch&&d.swipeToClose&&(n.off("touchstart:passive",A),n.off("touchmove:active",z),n.off("touchend:passive",q))},n.on("resize",N),s.touch&&d.swipeToClose&&(n.on("touchstart:passive",A),n.on("touchmove:active",z),n.on("touchend:passive",q))},close(t,e){t===void 0&&(t=".card-expandable.card-opened"),e===void 0&&(e=!0);const n=this,a=Ie(),r=C(t).eq(0);if(!r||!r.length||!r.hasClass("card-opened")||r.hasClass("card-opening")||r.hasClass("card-closing"))return;const s=r.children(".card-content"),i=r.parents(".page-content"),o=r.parents(".page").eq(0);if(!o.length)return;const l=Object.assign({animate:e},n.params.card,r.dataset()),c=r.find(l.scrollableEl);let d,u,p;r.attr("data-backdrop-el")&&(p=C(r.attr("data-backdrop-el"))),l.backdrop&&(p=r.parents(".page-content").find(".card-backdrop")),l.hideNavbarOnOpen&&(d=o.children(".navbar"),d.length||o[0].f7Page&&(d=o[0].f7Page.$navbarEl),d&&d.length&&!r[0].f7KeepNavbarOnClose&&n.navbar.show(d,l.animate,!0)),l.hideToolbarOnOpen&&(u=o.children(".toolbar"),u.length||(u=o.parents(".view").children(".toolbar")),u.length||(u=o.parents(".views").children(".toolbar")),u&&u.length&&!r[0].f7KeepToolbarOnClose&&n.toolbar.show(u,l.animate)),o.removeClass("page-with-card-opened"),a.ios&&i.length&&(i.css("height",`${i[0].offsetHeight+1}px`),setTimeout(()=>{i.css("height","")})),p&&p.length&&p.removeClass("card-backdrop-in").addClass("card-backdrop-out"),r.removeClass("card-opened card-transitioning"),l.animate?r.addClass("card-closing"):r.addClass("card-no-transition"),r.transform(""),r.trigger("card:close"),n.emit("cardClose",r[0],o[0]);const f=r.hasClass("card-expandable-animate-width");function h(){f||s.css({width:"",height:""}),p&&p.length&&p.removeClass("card-backdrop-in card-backdrop-out"),r.removeClass("card-closing card-no-transition"),r.trigger("card:closed"),r.find(".card-expandable-size").remove(),n.emit("cardClosed",r[0],o[0])}f&&s.css({width:"",height:""}),s.transform("").scrollTop(0,e?300:0),c.length&&c[0]!==s[0]&&c.scrollTop(0,e?300:0),e?s.transitionEnd(()=>{h()}):h(),r[0].detachEventHandlers&&(r[0].detachEventHandlers(),delete r[0].detachEventHandlers)},toggle(t,e){t===void 0&&(t=".card-expandable");const n=this,a=C(t).eq(0);a.length&&(a.hasClass("card-opened")?n.card.close(a,e):n.card.open(a,e))}},wC={name:"card",params:{card:{hideNavbarOnOpen:!0,hideStatusbarOnOpen:!0,hideToolbarOnOpen:!0,scrollableEl:".card-content",swipeToClose:!0,closeByBackdropClick:!0,backdrop:!0}},create(){Ct(this,{card:vC})},on:{pageBeforeIn(t){const e=this;if(e.params.card.hideNavbarOnOpen&&t.navbarEl&&t.$el.find(".card-opened.card-expandable").length&&e.navbar.hide(t.navbarEl,!0,e.params.card.hideStatusbarOnOpen,!0),e.params.card.hideToolbarOnOpen&&t.$el.find(".card-opened.card-expandable").length){let n=t.$el.children(".toolbar");n.length||(n=t.$el.parents(".view").children(".toolbar")),n.length||(n=t.$el.parents(".views").children(".toolbar")),n&&n.length&&e.toolbar.hide(n)}}},clicks:{".card-close":function(e,n){this.card.close(n.card,n.animate)},".card-open":function(e,n){this.card.open(n.card,n.animate)},".card-expandable":function(e,n,a){const r=this;e.hasClass("card-opened")||e.hasClass("card-opening")||e.hasClass("card-closing")||C(a.target).closest(".card-prevent-open, .card-close").length||r.card.open(e)},".card-backdrop-in":function(){const e=this;let n=!1;e.params.card.closeByBackdropClick&&(n=!0);const a=C(".card-opened");a.length&&(a.attr("data-close-by-backdrop-click")==="true"?n=!0:a.attr("data-close-by-backdrop-click")==="false"&&(n=!1),n&&e.card.close(a))}}},yC={name:"chip"},es={store(t,e){const n=this,a=fe();let r=t;const s=C(t);s.length&&s.is("form")&&s.attr("id")&&(r=s.attr("id")),n.form.data[`form-${r}`]=e,a.localStorage[`f7form-${r}`]=JSON.stringify(e)},get(t){const e=this,n=fe();let a=t;const r=C(t);if(r.length&&r.is("form")&&r.attr("id")&&(a=r.attr("id")),n.localStorage[`f7form-${a}`])return JSON.parse(n.localStorage[`f7form-${a}`]);if(e.form.data[`form-${a}`])return e.form.data[`form-${a}`]},remove(t){const e=this,n=fe();let a=t;const r=C(t);r.length&&r.is("form")&&r.attr("id")&&(a=r.attr("id")),e.form.data[`form-${a}`]&&(e.form.data[`form-${a}`]="",delete e.form.data[`form-${a}`]),n.localStorage[`f7form-${a}`]&&(n.localStorage[`f7form-${a}`]="",n.localStorage.removeItem(`f7form-${a}`))}},Co={init(t){const e=this,n=C(t),a=n.attr("id");if(!a)return;const r=e.form.getFormData(a);r&&e.form.fillFromData(n,r);function s(){const i=e.form.convertToData(n);i&&(e.form.storeFormData(a,i),n.trigger("form:storedata",i),e.emit("formStoreData",n[0],i))}n.on("change submit",s)},destroy(t){C(t).off("change submit")}};function EC(t){const e=this,n=C(t).eq(0);if(n.length===0)return;const a={},r=["submit","image","button","file"],s=[];return n.find("input, select, textarea").each(i=>{const o=C(i);if(o.hasClass("ignore-store-data")||o.hasClass("no-store-data"))return;const l=o.attr("name"),c=o.attr("type"),d=i.nodeName.toLowerCase();if(!(r.indexOf(c)>=0)&&!(s.indexOf(l)>=0||!l))if(d==="select"&&o.prop("multiple"))s.push(l),a[l]=[],n.find(`select[name="${l}"] option`).each(u=>{u.selected&&a[l].push(u.value)});else switch(c){case"checkbox":s.push(l),a[l]=[],n.find(`input[name="${l}"]`).each(u=>{u.checked&&a[l].push(u.value)});break;case"radio":s.push(l),n.find(`input[name="${l}"]`).each(u=>{u.checked&&(a[l]=u.value)});break;default:a[l]=o.val();break}}),n.trigger("form:todata",a),e.emit("formToData",n[0],a),a}function CC(t,e){const n=this,a=C(t).eq(0);if(!a.length)return;let r=e;const s=a.attr("id");if(!r&&s&&(r=n.form.getFormData(s)),!r)return;const i=["submit","image","button","file"],o=[];a.find("input, select, textarea").each(l=>{const c=C(l);if(c.hasClass("ignore-store-data")||c.hasClass("no-store-data"))return;const d=c.attr("name"),u=c.attr("type"),p=l.nodeName.toLowerCase();if(!(typeof r[d]>"u"||r[d]===null)&&!(i.indexOf(u)>=0)&&!(o.indexOf(d)>=0||!d)){if(p==="select"&&c.prop("multiple"))o.push(d),a.find(`select[name="${d}"] option`).each(f=>{const h=f;r[d].indexOf(f.value)>=0?h.selected=!0:h.selected=!1});else switch(u){case"checkbox":o.push(d),a.find(`input[name="${d}"]`).each(f=>{const h=f;r[d].indexOf(f.value)>=0?h.checked=!0:h.checked=!1});break;case"radio":o.push(d),a.find(`input[name="${d}"]`).each(f=>{const h=f;r[d]===f.value?h.checked=!0:h.checked=!1});break;default:c.val(r[d]);break}(p==="select"||p==="input"||p==="textarea")&&c.trigger("change","fromdata")}}),a.trigger("form:fromdata",r),n.emit("formFromData",a[0],r)}function kC(){const t=this,e=fe(),n=ye();function a(r,s){const i=C(this);if(r.type==="change"&&!i.hasClass("form-ajax-submit-onchange")||(r.type==="submit"&&r.preventDefault(),r.type==="change"&&s==="fromdata"))return;const o=(i.attr("method")||"GET").toUpperCase(),l=i.attr("enctype")||i.prop("enctype");let c=i.attr("action");if(!c)return;let d;o==="POST"?l==="application/x-www-form-urlencoded"||l==="application/json"?(d=t.form.convertToData(i[0]),l==="application/json"&&(d=JSON.stringify(d))):d=new e.FormData(i[0]):(d=Fn(t.form.convertToData(i[0])),c.includes("?")?c+=`&${d}`:c+=`?${d}`),i.trigger("formajax:beforesend",{data:d}),t.emit("formAjaxBeforeSend",i[0],d),fetch(c,{method:o,headers:{"Content-Type":l||"application/x-www-form-urlencoded"},...o==="POST"||o==="PUT"?{body:d}:{}}).then(u=>{i.trigger("formajax:complete",{data:d,response:u}),t.emit("formAjaxComplete",i[0],d,u),i.trigger("formajax:success",{data:d,response:u}),t.emit("formAjaxSuccess",i[0],d,u)}).catch(u=>{i.trigger("formajax:error",{data:d,error:u}),t.emit("formAjaxError",i[0],d,u)})}C(n).on("submit change","form.form-ajax-submit, form.form-ajax-submit-onchange",a)}const $C={name:"form",create(){const t=this;W(t,{form:{data:{},storeFormData:es.store.bind(t),getFormData:es.get.bind(t),removeFormData:es.remove.bind(t),convertToData:EC.bind(t),fillFromData:CC.bind(t),storage:{init:Co.init.bind(t),destroy:Co.destroy.bind(t)}}})},on:{init(){const t=this;kC.call(t)},tabBeforeRemove(t){const e=this;C(t).find(".form-store-data").each(n=>{e.form.storage.destroy(n)})},tabMounted(t){const e=this;C(t).find(".form-store-data").each(n=>{e.form.storage.init(n)})},pageBeforeRemove(t){const e=this;t.$el.find(".form-store-data").each(n=>{e.form.storage.destroy(n)})},pageInit(t){const e=this;t.$el.find(".form-store-data").each(n=>{e.form.storage.init(n)})}}},Lt={ignoreTypes:["checkbox","button","submit","range","radio","image"],createTextareaResizableShadow(){const t=ye(),e=C(t.createElement("textarea"));e.addClass("textarea-resizable-shadow"),e.prop({disabled:!0,readonly:!0}),Lt.textareaResizableShadow=e},textareaResizableShadow:void 0,resizeTextarea(t){const e=this,n=fe(),a=C(t);Lt.textareaResizableShadow||Lt.createTextareaResizableShadow();const r=Lt.textareaResizableShadow;if(!a.length||!a.hasClass("resizable"))return;Lt.textareaResizableShadow.parents().length===0&&e.$el.append(r);const s=n.getComputedStyle(a[0]);"padding-top padding-bottom padding-left padding-right margin-left margin-right margin-top margin-bottom width font-size font-family font-style font-weight line-height font-variant text-transform letter-spacing border box-sizing display".split(" ").forEach(c=>{let d=s[c];"font-size line-height letter-spacing width".split(" ").indexOf(c)>=0&&(d=d.replace(",",".")),r.css(c,d)});const i=a[0].clientHeight;r.val("");const o=r[0].scrollHeight;r.val(a.val()),r.css("height",0);const l=r[0].scrollHeight;i!==l&&(l>o?a.css("height",`${l}px`):lo||l
          `),l.insertAfter(e)),l.text(o)),l.length>0&&(n.addClass("item-input-with-error-message"),a.addClass("input-with-error-message")),n.addClass("item-input-invalid"),a.addClass("input-invalid"),e.addClass("input-invalid"),s(),!1}return n.removeClass("item-input-invalid item-input-with-error-message"),a.removeClass("input-invalid input-with-error-message"),e.removeClass("input-invalid"),s(),!0},validateInputs(t){const e=this;return C(t).find("input, textarea, select").map(a=>e.input.validate(a)).indexOf(!1)<0},focus(t){const e=C(t),n=e.attr("type");Lt.ignoreTypes.indexOf(n)>=0||(e.parents(".item-input").addClass("item-input-focused"),e.parents(".input").addClass("input-focused"),e.addClass("input-focused"))},blur(t){const e=C(t);e.parents(".item-input").removeClass("item-input-focused"),e.parents(".input").removeClass("input-focused"),e.removeClass("input-focused")},checkEmptyState(t){const e=this;let n=C(t);if(n.is("input, select, textarea, .item-input [contenteditable]")||(n=n.find("input, select, textarea, .item-input [contenteditable]").eq(0)),!n.length)return;const a=n[0].hasAttribute("contenteditable");let r;a?n.find(".text-editor-placeholder").length?r="":r=n.html():r=n.val();const s=n.parents(".item-input"),i=n.parents(".input");r&&typeof r=="string"&&r.trim()!==""||Array.isArray(r)&&r.length>0?(s.addClass("item-input-with-value"),i.addClass("input-with-value"),n.addClass("input-with-value"),n.trigger("input:notempty"),e.emit("inputNotEmpty",n[0])):(s.removeClass("item-input-with-value"),i.removeClass("input-with-value"),n.removeClass("input-with-value"),n.trigger("input:empty"),e.emit("inputEmpty",n[0]))},scrollIntoView(t,e,n,a){e===void 0&&(e=0);const r=C(t),s=r.parents(".page-content, .panel, .card-expandable .card-content").eq(0);if(!s.length)return!1;const i=s[0].offsetHeight,o=s[0].scrollTop,l=parseInt(s.css("padding-top"),10),c=parseInt(s.css("padding-bottom"),10),d=s.offset().top-o,u=r.offset().top-d,p=r[0].offsetHeight,f=u+o-l,h=u+o-i+c+p,m=f+(h-f)/2;return o>f?(s.scrollTop(n?m:f,e),!0):o{a&&a.activeElement===d&&t.input.scrollIntoView(d,t.params.input.scrollIntoViewDuration,t.params.input.scrollIntoViewCentered,t.params.input.scrollIntoViewAlways)}):t.input.scrollIntoView(d,t.params.input.scrollIntoViewDuration,t.params.input.scrollIntoViewCentered,t.params.input.scrollIntoViewAlways)),t.input.focus(d)}function s(){const d=C(this),u=d[0].nodeName.toLowerCase();t.input.blur(d),(d.dataset().validate||d.attr("validate")!==null||d.attr("data-validate-on-blur")!==null)&&t.input.validate(d),u==="textarea"&&d.hasClass("resizable")&&Lt.textareaResizableShadow&&Lt.textareaResizableShadow.remove()}function i(){const d=C(this),u=d.attr("type"),p=d[0].nodeName.toLowerCase(),f=d[0].hasAttribute("contenteditable");Lt.ignoreTypes.indexOf(u)>=0||(t.input.checkEmptyState(d),!f&&(d.attr("data-validate-on-blur")===null&&(d.dataset().validate||d.attr("validate")!==null)&&t.input.validate(d),p==="textarea"&&d.hasClass("resizable")&&t.input.resizeTextarea(d)))}function o(d){const u=C(this);u.attr("data-validate-on-blur")===null&&(u.dataset().validate||u.attr("validate")!==null)&&(d.preventDefault(),t.input.validate(u))}function l(){const u=C(this).siblings("input, textarea").eq(0),p=u.val();u.val("").trigger("input change").focus().trigger("input:clear",p),t.emit("inputClear",p)}function c(d){d.preventDefault()}C(a).on("click",".input-clear-button",l),C(a).on("mousedown",".input-clear-button",c),C(a).on("change input","input, textarea, select, .item-input [contenteditable]",i,!0),C(a).on("focus","input, textarea, select, .item-input [contenteditable]",r,!0),C(a).on("blur","input, textarea, select, .item-input [contenteditable]",s,!0),C(a).on("invalid","input, textarea, select",o,!0)}},xC={name:"input",params:{input:{scrollIntoViewOnFocus:void 0,scrollIntoViewCentered:!1,scrollIntoViewDuration:0,scrollIntoViewAlways:!1}},create(){const t=this;typeof t.params.input.scrollIntoViewOnFocus>"u"&&(t.params.input.scrollIntoViewOnFocus=Ie().android),Ct(t,{input:Lt})},on:{init(){this.input.init()},tabMounted(t){const e=this,n=C(t);n.find(".item-input, .input").each(a=>{C(a).find("input, select, textarea, [contenteditable]").each(s=>{const i=C(s);Lt.ignoreTypes.indexOf(i.attr("type"))>=0||e.input.checkEmptyState(i)})}),n.find("textarea.resizable").each(a=>{e.input.resizeTextarea(a)})},pageInit(t){const e=this,n=t.$el;n.find(".item-input, .input").each(a=>{C(a).find("input, select, textarea, [contenteditable]").each(s=>{const i=C(s);Lt.ignoreTypes.indexOf(i.attr("type"))>=0||e.input.checkEmptyState(i)})}),n.find("textarea.resizable").each(a=>{e.input.resizeTextarea(a)})},"panelBreakpoint panelCollapsedBreakpoint panelResize panelOpen panelSwipeOpen resize viewMasterDetailBreakpoint":function(e){const n=this;e&&e.$el?e.$el.find("textarea.resizable").each(a=>{n.input.resizeTextarea(a)}):C("textarea.resizable").each(a=>{n.input.resizeTextarea(a)})}}},SC={name:"checkbox"},TC={name:"radio"};let ko=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r=Xe(),s={};a.useModulesParams(s),a.params=W(s,n);const i=a.params.el;if(!i)return a;const o=C(i);if(o.length===0)return a;if(o[0].f7Toggle)return o[0].f7Toggle;const l=o.children('input[type="checkbox"]');W(a,{app:e,$el:o,el:o[0],$inputEl:l,inputEl:l[0],disabled:o.hasClass("disabled")||l.hasClass("disabled")||l.attr("disabled")||l[0].disabled}),Object.defineProperty(a,"checked",{enumerable:!0,configurable:!0,set(y){!a||typeof a.$inputEl>"u"||a.checked!==y&&(l[0].checked=y,a.$inputEl.trigger("change"))},get(){return l[0].checked}}),o[0].f7Toggle=a;let c;const d={};let u,p,f,h,m;function b(y){c||a.disabled||(d.x=y.type==="touchstart"?y.targetTouches[0].pageX:y.pageX,d.y=y.type==="touchstart"?y.targetTouches[0].pageY:y.pageY,p=0,c=!0,u=void 0,h=Ot(),m=a.checked,f=o[0].offsetWidth,lt(()=>{c&&o.addClass("toggle-active-state")}))}function w(y){if(!c||a.disabled)return;const E=y.type==="touchmove"?y.targetTouches[0].pageX:y.pageX,k=y.type==="touchmove"?y.targetTouches[0].pageY:y.pageY,$=e.rtl?-1:1;if(typeof u>"u"&&(u=!!(u||Math.abs(k-d.y)>Math.abs(E-d.x))),u){c=!1;return}y.preventDefault(),p=E-d.x;let M;p*$<0&&Math.abs(p)>f/3&&m&&(M=!0),p*$>0&&Math.abs(p)>f/3&&!m&&(M=!0),M&&(d.x=E,a.checked=!m,m=!m)}function g(){if(!c||a.disabled){u&&o.removeClass("toggle-active-state"),c=!1;return}const y=e.rtl?-1:1;c=!1,o.removeClass("toggle-active-state");let E;Ot()-h<300&&(p*y<0&&m&&(E=!0),p*y>0&&!m&&(E=!0),E&&(a.checked=!m))}function v(){a.$el.trigger("toggle:change"),a.emit("local::change toggleChange",a)}a.attachEvents=function(){const E=r.passiveListener?{passive:!0}:!1;o.on(e.touchEvents.start,b,E),e.on("touchmove",w),e.on("touchend:passive",g),a.$inputEl.on("change",v)},a.detachEvents=function(){const E=r.passiveListener?{passive:!0}:!1;o.off(e.touchEvents.start,b,E),e.off("touchmove",w),e.off("touchend:passive",g),a.$inputEl.off("change",v)},a.useModules(),a.init()}toggle(){const e=this;e.checked=!e.checked}init(){this.attachEvents()}destroy(){let e=this;e.$el.trigger("toggle:beforedestroy"),e.emit("local::beforeDestroy toggleBeforeDestroy",e),delete e.$el[0].f7Toggle,e.detachEvents(),Ze(e),e=null}};const PC={name:"toggle",create(){const t=this;t.toggle=et({defaultSelector:".toggle",constructor:ko,app:t,domProp:"f7Toggle"})},static:{Toggle:ko},on:{tabMounted(t){const e=this;C(t).find(".toggle-init").each(n=>e.toggle.create({el:n}))},tabBeforeRemove(t){C(t).find(".toggle-init").each(e=>{e.f7Toggle&&e.f7Toggle.destroy()})},pageInit(t){const e=this;t.$el.find(".toggle-init").each(n=>e.toggle.create({el:n}))},pageBeforeRemove(t){t.$el.find(".toggle-init").each(e=>{e.f7Toggle&&e.f7Toggle.destroy()})}},vnode:{"toggle-init":{insert(t){const e=this,n=t.elm;e.toggle.create({el:n})},destroy(t){const e=t.elm;e.f7Toggle&&e.f7Toggle.destroy()}}}};let Za=class extends Ue{constructor(e,n){super(n,[e]);const a=this,r=Xe(),s={el:null,inputEl:null,dual:!1,step:1,label:!1,min:0,max:100,value:0,draggableBar:!0,vertical:!1,verticalReversed:!1,formatLabel:null,scale:!1,scaleSteps:5,scaleSubSteps:0,formatScaleLabel:null,limitKnobPosition:e.theme==="ios"};a.useModulesParams(s),a.params=W(s,n);const i=a.params.el;if(!i)return a;const o=C(i);if(o.length===0)return a;if(o[0].f7Range)return o[0].f7Range;const l=o.dataset();"step min max value scaleSteps scaleSubSteps".split(" ").forEach(oe=>{typeof n[oe]>"u"&&typeof l[oe]<"u"&&(a.params[oe]=parseFloat(l[oe]))}),"dual label vertical verticalReversed scale".split(" ").forEach(oe=>{typeof n[oe]>"u"&&typeof l[oe]<"u"&&(a.params[oe]=l[oe])}),a.params.value||(typeof l.value<"u"&&(a.params.value=l.value),typeof l.valueLeft<"u"&&typeof l.valueRight<"u"&&(a.params.value=[parseFloat(l.valueLeft),parseFloat(l.valueRight)]));let c;a.params.dual||(a.params.inputEl?c=C(a.params.inputEl):o.find('input[type="range"]').length&&(c=o.find('input[type="range"]').eq(0)));const{dual:d,step:u,label:p,min:f,max:h,value:m,vertical:b,verticalReversed:w,scale:g,scaleSteps:v,scaleSubSteps:y,limitKnobPosition:E}=a.params;W(a,{app:e,$el:o,el:o[0],$inputEl:c,inputEl:c?c[0]:void 0,dual:d,step:u,label:p,min:f,max:h,value:m,previousValue:m,vertical:b,verticalReversed:w,scale:g,scaleSteps:v,scaleSubSteps:y,limitKnobPosition:E}),c&&("step min max".split(" ").forEach(oe=>{!n[oe]&&c.attr(oe)&&(a.params[oe]=parseFloat(c.attr(oe)),a[oe]=parseFloat(c.attr(oe)))}),typeof c.val()<"u"&&(a.params.value=parseFloat(c.val()),a.value=parseFloat(c.val()))),a.dual&&o.addClass("range-slider-dual"),a.label&&o.addClass("range-slider-label"),a.vertical?(o.addClass("range-slider-vertical"),a.verticalReversed&&o.addClass("range-slider-vertical-reversed")):o.addClass("range-slider-horizontal");const k=C('
          '),$=C('
          ');k.append($);const M=` + `.trim()},renderSkipPlaceholder(){return'
        • '},on:{}};a.useModulesParams(r),a.params=W(r,n);let s,i,o,l;if(a.params.el)s=C(a.params.el);else return a;if(s[0].f7ListIndex)return s[0].f7ListIndex;if(l=s.find("ul"),l.length===0&&(l=C("
            "),s.append(l)),a.params.listEl&&(i=C(a.params.listEl)),a.params.indexes==="auto"&&!i)return a;i?o=i.parents(".page-content").eq(0):(o=s.siblings(".page-content").eq(0),o.length===0&&(o=s.parents(".page").eq(0).find(".page-content").eq(0))),s[0].f7ListIndex=a,W(a,{app:e,$el:s,el:s&&s[0],$ul:l,ul:l&&l[0],$listEl:i,listEl:i&&i[0],$pageContentEl:o,pageContentEl:o&&o[0],indexes:n.indexes,height:0,skipRate:0}),a.useModules();function c(){const E={index:a};a.calcSize(),E!==a.height&&a.render()}function d(E){const k=C(E.target).closest("li");if(!k.length)return;let $=k.index();if(a.skipRate>0){const x=$/(k.siblings("li").length-1);$=Math.round((a.indexes.length-1)*x)}const M=a.indexes[$];a.$el.trigger("listindex:click",{content:M,index:$}),a.emit("local::click listIndexClick",a,M,$),a.$el.trigger("listindex:select",{content:M,index:$}),a.emit("local::select listIndexSelect",a,M,$),a.$listEl&&a.params.scrollList&&a.scrollListToIndex(M,$)}let u,p,f,h,m,b=null;function w(E){const k=l.children();k.length&&(f=k[0].getBoundingClientRect().top,h=k[k.length-1].getBoundingClientRect().top+k[0].offsetHeight,E.type==="touchstart"?E.targetTouches[0].pageX:E.pageX,E.type==="touchstart"?E.targetTouches[0].pageY:E.pageY,u=!0,p=!1,b=null)}function g(E){if(!u)return;!p&&a.params.label&&(m=C(''),s.append(m)),p=!0;const k=E.type==="touchmove"?E.targetTouches[0].pageY:E.pageY;E.preventDefault();let $=(k-f)/(h-f);$=Math.min(Math.max($,0),1);const M=Math.round((a.indexes.length-1)*$),x=a.indexes[M],F=h-f,S=(a.height-F)/2+(1-$)*F;M!==b&&(a.params.label&&m.html(x).transform(`translateY(-${S}px)`),a.$listEl&&a.params.scrollList&&a.scrollListToIndex(x,M)),b=M,a.$el.trigger("listindex:select"),a.emit("local::select listIndexSelect",a,x,M)}function v(){u&&(u=!1,p=!1,a.params.label&&(m&&m.remove(),m=void 0))}const y=Xe().passiveListener?{passive:!0}:!1;return a.attachEvents=function(){s.parents(".tab").on("tab:show",c),s.parents(".page").on("page:reinit",c),s.parents(".panel").on("panel:open",c),s.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast").on("modal:open",c),e.on("resize",c),s.on("click",d),s.on(e.touchEvents.start,w,y),e.on("touchmove:active",g),e.on("touchend:passive",v)},a.detachEvents=function(){s.parents(".tab").off("tab:show",c),s.parents(".page").off("page:reinit",c),s.parents(".panel").off("panel:open",c),s.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast").off("modal:open",c),e.off("resize",c),s.off("click",d),s.off(e.touchEvents.start,w,y),e.off("touchmove:active",g),e.off("touchend:passive",v)},a.init(),a}scrollListToIndex(e,n){const a=this,{$listEl:r,$pageContentEl:s,app:i}=a;if(!r||!s||s.length===0)return a;let o;if(r.find(".list-group-title").each(p=>{if(o)return;const f=C(p);f.text()===e&&(o=f)}),!o||o.length===0)return a;const l=o.parent().offset().top;let c=parseInt(s.css("padding-top"),10);const d=s[0].scrollTop,u=o.offset().top;if(s.parents(".page-with-navbar-large").length){const p=i.navbar.getElByPage(s.parents(".page-with-navbar-large").eq(0)),f=C(p).find(".title-large");f.length&&(c-=f[0].offsetHeight||0)}return l<=c?s.scrollTop(l+d-c):s.scrollTop(u+d-c),a}renderSkipPlaceholder(){const e=this;return e.params.renderSkipPlaceholder.call(e)}renderItem(e,n){const a=this;return a.params.renderItem.call(a,e,n)}render(){const e=this,{$ul:n,indexes:a,skipRate:r}=e;let s;const i=a.map((o,l)=>{if(l%r!==0&&r>0)return s=!0,"";let c=e.renderItem(o,l);return s&&(c=e.renderSkipPlaceholder()+c),s=!1,c}).join("");return n.html(i),e}calcSize(){const e=this,{app:n,params:a,el:r,indexes:s}=e,i=r.offsetHeight,o=a[`${n.theme}ItemHeight`],l=Math.floor(i/o),c=s.length;let d=0;return c>l&&(d=Math.ceil((c*2-1)/l)),e.height=i,e.skipRate=d,e}calcIndexes(){const e=this;return e.params.indexes==="auto"?(e.indexes=[],e.$listEl.find(".list-group-title").each(n=>{const a=C(n).text();e.indexes.indexOf(a)<0&&e.indexes.push(a)})):e.indexes=e.params.indexes,e}update(){const e=this;return e.calcIndexes(),e.calcSize(),e.render(),e}init(){const e=this;e.calcIndexes(),e.calcSize(),e.render(),e.attachEvents()}destroy(){let e=this;e.$el.trigger("listindex:beforedestroy",e),e.emit("local::beforeDestroy listIndexBeforeDestroy"),e.detachEvents(),e.$el[0]&&(e.$el[0].f7ListIndex=null,delete e.$el[0].f7ListIndex),Ze(e),e=null}};const fC={name:"listIndex",static:{ListIndex:Eo},create(){const t=this;t.listIndex=et({defaultSelector:".list-index",constructor:Eo,app:t,domProp:"f7ListIndex"})},on:{tabMounted(t){const e=this;C(t).find(".list-index-init").each(n=>{const a=W(C(n).dataset(),{el:n});e.listIndex.create(a)})},tabBeforeRemove(t){C(t).find(".list-index-init").each(e=>{e.f7ListIndex&&e.f7ListIndex.destroy()})},pageInit(t){const e=this;t.$el.find(".list-index-init").each(n=>{const a=W(C(n).dataset(),{el:n});e.listIndex.create(a)})},pageBeforeRemove(t){t.$el.find(".list-index-init").each(e=>{e.f7ListIndex&&e.f7ListIndex.destroy()})}},vnode:{"list-index-init":{insert(t){const e=this,n=t.elm,a=W(C(n).dataset(),{el:n});e.listIndex.create(a)},destroy(t){const e=t.elm;e.f7ListIndex&&e.f7ListIndex.destroy()}}}},hC={name:"timeline"},mC={show(){const t=this;let e,n,a,r,s;for(var i=arguments.length,o=new Array(i),l=0;l2&&n.constructor===Object&&([e,a,r,n]=o))),typeof a>"u"&&(a=!0);const c=C(e);if(r&&c[0]&&(c[0].f7TabRoute=r),!s&&(c.length===0||c.hasClass("tab-active")))return{$newTabEl:c,newTabEl:c[0]};let d;n&&(d=C(n));const u=c.parent(".tabs");if(u.length===0)return{$newTabEl:c,newTabEl:c[0]};t.swipeout&&(t.swipeout.allowOpen=!0);const p=[];function f(g){p.push(g)}function h(){p.forEach(g=>{g()})}let m=!1;if(u.parent().hasClass("tabs-animated-wrap")){u.parent()[a?"removeClass":"addClass"]("not-animated");const g=parseFloat(u.css("transition-duration").replace(",","."));a&&g&&(u.transitionEnd(h),m=!0);const v=(t.rtl?c.index():-c.index())*100;u.transform(`translate3d(${v}%,0,0)`)}let b;if(u[0].nodeName.toLowerCase()==="swiper-container"&&t.swiper){b=u[0].swiper;const g=b.slides.indexOf(c[0]);b&&b.activeIndex!==g?(m=!0,b.once("slideChangeTransitionEnd",()=>{h()}).slideTo(g,a?void 0:0)):b&&b.animating&&(m=!0,b.once("slideChangeTransitionEnd",()=>{h()}))}const w=u.children(".tab-active");if(w.removeClass("tab-active"),!s&&(!b||b&&!b.animating||b&&r)&&(w.hasClass("view")&&w.children(".page").length&&w.children(".page").each(g=>{C(g).trigger("page:tabhide"),t.emit("pageTabHide",g)}),w.trigger("tab:hide"),t.emit("tabHide",w[0])),c.addClass("tab-active"),!s&&(!b||b&&!b.animating||b&&r)&&(c.hasClass("view")&&c.children(".page").length&&c.children(".page").each(g=>{C(g).trigger("page:tabshow"),t.emit("pageTabShow",g)}),c.trigger("tab:show"),t.emit("tabShow",c[0])),!d&&(typeof e=="string"?d=C(`.tab-link[href="${e}"]`):d=C(`.tab-link[href="#${c.attr("id")}"]`),(!d||d&&d.length===0)&&C("[data-tab]").each(g=>{c.is(C(g).attr("data-tab"))&&(d=C(g))}),r&&(!d||d&&d.length===0)&&(d=C(`[data-route-tab-id="${r.route.tab.id}"]`),d.length===0&&(d=C(`.tab-link[href="${r.url}"]`))),d.length>1&&c.parents(".page").length&&(d=d.filter(g=>C(g).parents(".page")[0]===c.parents(".page")[0]),t.theme==="ios"&&d.length===0&&r))){const g=c.parents(".page"),v=C(t.navbar.getElByPage(g));d=v.find(`[data-route-tab-id="${r.route.tab.id}"]`),d.length===0&&(d=v.find(`.tab-link[href="${r.url}"]`))}if(d.length>0){let g;if(w&&w.length>0){const v=w.attr("id");v&&(g=C(`.tab-link[href="#${v}"]`),(!g||g&&g.length===0)&&(g=C(`.tab-link[data-route-tab-id="${v}"]`))),(!g||g&&g.length===0)&&C("[data-tab]").each(y=>{w.is(C(y).attr("data-tab"))&&(g=C(y))}),(!g||g&&g.length===0)&&(g=d.siblings(".tab-link-active"))}else r&&(g=d.siblings(".tab-link-active"));if(g&&g.length>1&&w&&w.parents(".page").length&&(g=g.filter(v=>C(v).parents(".page")[0]===w.parents(".page")[0])),g&&g.length>0&&g.removeClass("tab-link-active"),d&&d.length>0){d.addClass("tab-link-active");const v=d.parents(".tabbar, .tabbar-icons");t.toolbar&&v.length>0&&(v.hasClass("tabbar-highlight")||t.theme!=="ios")&&t.toolbar.setHighlight(v)}}return{$newTabEl:c,newTabEl:c[0],$oldTabEl:w,oldTabEl:w[0],onTabsChanged:f,animated:m}}},gC={name:"tabs",create(){const t=this;W(t,{tab:{show:mC.show.bind(t)}})},on:{"pageInit tabMounted":function(e){const a=C(e.el||e).find(".tabs-animated-wrap > .tabs > .tab-active")[0];if(!a)return;this.tab.show({tabEl:a,animatedInit:!0,animate:!1})}},clicks:{".tab-link":function(e,n){n===void 0&&(n={}),(e.attr("href")&&e.attr("href").indexOf("#")===0||e.attr("data-tab"))&&this.tab.show({tabEl:n.tab||e.attr("href"),tabLinkEl:e,animate:n.animate})}}};function bC(t){const e=t.app;if(t.swipeInitialized)return;W(t,{swipeable:!0,swipeInitialized:!0});const n=t.params,{$el:a,$backdropEl:r,side:s,effect:i}=t;let o,l,c,d,u,p;const f={};let h,m,b,w,g,v,y,E=0;function k(S){if(!t.swipeable||c||!e.panel.allowOpen||!n.swipe&&!n.swipeOnlyClose||l||C(".modal-in:not(.toast):not(.notification), .photo-browser-in").length>0)return;o=e.panel.get(s==="left"?"right":"left")||{};const I=o.opened&&o.$el&&!o.$el.hasClass("panel-in-breakpoint");!t.opened&&I||!n.swipeOnlyClose&&I||S.target&&S.target.nodeName.toLowerCase()==="input"&&S.target.type==="range"||C(S.target).closest(".range-slider, swiper-container.tabs, .calendar-months, .no-swipe-panel, .card-opened").length>0||(f.x=S.type==="touchstart"?S.targetTouches[0].pageX:S.pageX,f.y=S.type==="touchstart"?S.targetTouches[0].pageY:S.pageY,!(n.swipeOnlyClose&&!t.opened)&&(n.swipeActiveArea&&!t.opened&&(s==="left"&&f.x>n.swipeActiveArea||s==="right"&&f.x"u"&&(u=!!(u||Math.abs(B-f.y)>Math.abs(I-f.x))),u){l=!1;return}if(!v){if(I>f.x?v="to-right":v="to-left",n.swipeActiveArea>0&&!t.opened){if(s==="left"&&f.x>n.swipeActiveArea){l=!1;return}if(s==="right"&&f.xg&&(b=g)):(b=m-(t.opened?g:0),b>0&&(b=0),b<-g&&(b=-g)):(b=m+(t.opened?g:L),b<0&&(b=0),b>g+L&&(b=g+L));const V=Math.abs(b/g);if(i==="reveal")n.swipeNoFollow||(y.transform(`translate3d(${b}px,0,0)`).transition(0),r&&r.transform(`translate3d(${b}px,0,0)`).transition(0)),a.trigger("panel:swipe",Math.abs(b/g)),t.emit("local::swipe panelSwipe",t,Math.abs(b/g));else{if(s==="left"&&(b-=g),!n.swipeNoFollow&&(w=1-Math.abs(b/g),r&&(r.transition(0),r.css({opacity:w})),a.transform(`translate3d(${b}px,0,0)`).transition(0),i==="push")){const H=s==="left"?b+g:b-g;y.transform(`translate3d(${H}px,0,0)`).transition(0),r&&r.transform(`translate3d(${H}px,0,0)`).transition(0)}a.trigger("panel:swipe",Math.abs(b/g)),t.emit("local::swipe panelSwipe",t,Math.abs(b/g))}n.swipeNoFollow&&(t.opened&&V===0||!t.opened&&V===1)&&(p=!0,M(S))}function M(S){if(!l||!d){l=!1,d=!1;return}const I=S.type==="gesturestart"||c;l=!1,d=!1;const B=new Date().getTime()-h;let P;const L=i==="floating"?s==="left"?8:-8:0,V=(b===L||Math.abs(b)===g)&&!n.swipeNoFollow,H=n.swipeThreshold||0;I?P="reset":t.opened?i==="cover"||i==="push"||i==="floating"?b===0?P="reset":B<300&&Math.abs(b)>0?P="swap":B>=300&&Math.abs(b)=0||B>=300&&Math.abs(b)<=g/2?s==="left"&&b===g?P="reset":P="swap":P="reset":Math.abs(m)0||B>=300&&Math.abs(b)0||B>=300&&Math.abs(b)>=g/2?P="swap":P="reset",P==="swap"&&(t.opened?t.close(!V):t.open(!V));let D=!0;if(P==="reset"&&!t.opened)if(V)a.removeClass("panel-in-swipe");else{D=!1;const O=i==="reveal"?y:a;t.setStateClasses("before-closing"),O.transitionEnd(()=>{a.hasClass("panel-in")||(a.removeClass("panel-in-swipe"),t.setStateClasses("after-closing"))})}(i==="reveal"||i==="push")&&Pt(()=>{y.transition(""),y.transform("")}),D&&a.removeClass("panel-in-swipe"),a.transition("").transform(""),r&&r.transform("").transition("").css({opacity:"",visibility:""})}function x(S){c=!0,M(S)}function F(){c=!1}e.on("touchstart:passive",k),e.on("touchmove:active",$),e.on("touchend:passive",M),e.on("gesturestart",x),e.on("gestureend",F),t.on("panelDestroy",()=>{e.off("touchstart:passive",k),e.off("touchmove:active",$),e.off("touchend:passive",M),e.off("gesturestart",x),e.off("gestureend",F)})}function vC(t){const e=t.app,n=Xe();if(t.resizableInitialized)return;W(t,{resizable:!0,resizableWidth:null,resizableInitialized:!0});const a=C("html"),{$el:r,$backdropEl:s,side:i,effect:o}=t;if(!r)return;let l,c;const d={};let u,p,f,h,m,b;const w=o!=="cover"&&o!=="floating";function g(x){if(!x)return null;if(x.indexOf("%")>=0||x.indexOf("vw")>=0)return parseInt(x,10)/100*e.width;const F=parseInt(x,10);return Number.isNaN(F)?null:F}function v(){return t.resizable&&r.hasClass("panel-resizable")}function y(x){v()&&(d.x=x.type==="touchstart"?x.targetTouches[0].pageX:x.pageX,d.y=x.type==="touchstart"?x.targetTouches[0].pageY:x.pageY,c=!1,l=!0,h=g(r.css("min-width")),m=g(r.css("max-width")),b=r.hasClass("panel-in-breakpoint"))}function E(x){if(!l)return;const F=x.type==="touchmove"?x.targetTouches[0].pageX:x.pageX;c||(p=r[0].offsetWidth,r.transition(0),r.addClass("panel-resizing"),a.css("cursor","col-resize"),(w||b)&&(f=C(t.getViewEl()),t.$containerEl&&t.$containerEl.hasClass("page")&&f.add(t.$containerEl.children(".page-content, .tabs, .fab"))),w&&!b&&(s.transition(0),f.transition(0))),c=!0,x.preventDefault(),u=F-d.x;let S=i==="left"?p+u:p-u;h&&!Number.isNaN(h)&&(S=Math.max(S,h)),m&&!Number.isNaN(m)&&(S=Math.min(S,m)),S=Math.min(Math.max(S,0),e.width),t.resizableWidth=S,r[0].style.width=`${S}px`,w&&!b?(f&&f.transform(`translate3d(${i==="left"?S:-S}px, 0, 0)`),s&&s.transform(`translate3d(${i==="left"?S:-S}px, 0, 0)`)):b&&f&&f.css(`margin-${i}`,`${S}px`),r.trigger("panel:resize",S),t.emit("local::resize panelResize",t,S)}function k(){if(C("html").css("cursor",""),!l||!c){l=!1,c=!1;return}l=!1,c=!1,a[0].style.setProperty(`--f7-panel-${i}-width`,`${t.resizableWidth}px`),r[0].style.width="",w&&!b&&(f.transform(""),s.transform("")),r.removeClass("panel-resizing"),Pt(()=>{r.transition(""),w&&(s.transition(""),f&&f.transition(""))})}function $(){!t.opened||!t.resizableWidth||(h=g(r.css("min-width")),m=g(r.css("max-width")),h&&!Number.isNaN(h)&&t.resizableWidthm&&(t.resizableWidth=Math.min(t.resizableWidth,m)),t.resizableWidth=Math.min(Math.max(t.resizableWidth,0),e.width),a[0].style.setProperty(`--f7-panel-${i}-width`,`${t.resizableWidth}px`))}t.$el.find(".panel-resize-handler").length===0&&t.$el.append('
            '),t.$resizeHandlerEl=t.$el.children(".panel-resize-handler"),r.addClass("panel-resizable");const M=n.passiveListener?{passive:!0}:!1;t.$el.on(e.touchEvents.start,".panel-resize-handler",y,M),e.on("touchmove:active",E),e.on("touchend:passive",k),e.on("resize",$),t.on("beforeOpen",$),t.once("panelDestroy",()=>{r.removeClass("panel-resizable"),t.$resizeHandlerEl.remove(),t.$el.off(e.touchEvents.start,".panel-resize-handler",y,M),e.off("touchmove:active",E),e.off("touchend:passive",k),e.off("resize",$),t.off("beforeOpen",$)})}let Zr=class extends Ue{constructor(e,n){n===void 0&&(n={});const a=W({on:{}},e.params.panel,n);super(a,[e]);const r=this;r.params=a,r.$containerEl=r.params.containerEl?C(r.params.containerEl).eq(0):e.$el,r.containerEl=r.$containerEl[0],r.containerEl||(r.$containerEl=e.$el,r.containerEl=e.$el[0]);let s;if(r.params.el?s=C(r.params.el).eq(0):r.params.content&&(s=C(r.params.content).filter(d=>d.nodeType===1).eq(0)),s.length===0)return r;if(s[0].f7Panel)return s[0].f7Panel;s[0].f7Panel=r;let{side:i,effect:o,resizable:l}=r.params;typeof i>"u"&&(i=s.hasClass("panel-left")?"left":"right"),typeof o>"u"&&(o=s.hasClass("panel-cover")?"cover":s.hasClass("panel-push")?"push":s.hasClass("panel-floating")?"floating":"reveal"),typeof l>"u"&&(l=s.hasClass("panel-resizable"));let c;return r.params.backdrop&&r.params.backdropEl?c=C(r.params.backdropEl):r.params.backdrop&&(c=r.$containerEl.children(".panel-backdrop"),c.length===0&&(c=C('
            '),r.$containerEl.prepend(c))),W(r,{app:e,side:i,effect:o,resizable:l,$el:s,el:s[0],opened:!1,$backdropEl:c,backdropEl:c&&c[0]}),r.useModules(),r.init(),r}getViewEl(){const e=this;let n;return e.$containerEl.children(".views").length>0?n=e.$containerEl.children(".views")[0]:n=e.$containerEl.children(".view")[0],n}setStateClasses(e){const n=this,{side:a,el:r,effect:s}=n,i=n.getViewEl(),o=i&&i.contains(r),l=!i||o?n.$containerEl:C("html");e==="open"&&l.addClass(`with-panel with-panel-${n.side}-${n.effect}`),e==="before-closing"&&l.addClass("with-panel-closing"),e==="closing"&&(l.addClass("with-panel-closing"),l.removeClass(`with-panel with-panel-${n.side}-${n.effect}`)),e==="after-closing"&&l.removeClass("with-panel-closing"),e==="closed"&&l.removeClass(`with-panel-${a}-${s}`)}enableVisibleBreakpoint(){const e=this;return e.visibleBreakpointDisabled=!1,e.setVisibleBreakpoint(),e}disableVisibleBreakpoint(){const e=this;return e.visibleBreakpointDisabled=!0,e.setVisibleBreakpoint(),e}toggleVisibleBreakpoint(){const e=this;return e.visibleBreakpointDisabled=!e.visibleBreakpointDisabled,e.setVisibleBreakpoint(),e}setVisibleBreakpoint(e){e===void 0&&(e=!0);const n=this,a=n.app;n.visibleBreakpointResizeHandler||(n.visibleBreakpointResizeHandler=function(){n.setVisibleBreakpoint()},a.on("resize",n.visibleBreakpointResizeHandler));const{side:r,$el:s,$containerEl:i,params:o,visibleBreakpointDisabled:l}=n,c=o.visibleBreakpoint,d=C(n.getViewEl()),u=s.hasClass("panel-in-breakpoint");i&&i.hasClass("page")&&d.add(i.children(".page-content, .tabs, .fab")),a.width>=c&&typeof c<"u"&&c!==null&&!l?u?d.css({[`margin-${r}`]:`${s.width()}px`}):(n.setStateClasses("closed"),s.addClass("panel-in-breakpoint").removeClass("panel-in panel-in-collapsed"),n.onOpen(!1),n.onOpened(),d.css({[`margin-${r}`]:`${s.width()}px`}),a.allowPanelOpen=!0,e&&(n.emit("local::breakpoint panelBreakpoint",n),n.$el.trigger("panel:breakpoint"))):u&&(s.removeClass("panel-in-breakpoint panel-in"),n.onClose(),n.onClosed(),d.css({[`margin-${r}`]:""}),e&&(n.emit("local::breakpoint panelBreakpoint",n),n.$el.trigger("panel:breakpoint")))}enableCollapsedBreakpoint(){const e=this;return e.collapsedBreakpointDisabled=!1,e.setCollapsedBreakpoint(),e}disableCollapsedBreakpoint(){const e=this;return e.collapsedBreakpointDisabled=!0,e.setCollapsedBreakpoint(),e}toggleCollapsedBreakpoint(){const e=this;return e.collapsedBreakpointDisabled=!e.collapsedBreakpointDisabled,e.setCollapsedBreakpoint(),e}setCollapsedBreakpoint(e){e===void 0&&(e=!0);const n=this,a=n.app;n.collapsedBreakpointResizeHandler||(n.collapsedBreakpointResizeHandler=function(){n.setCollapsedBreakpoint()},a.on("resize",n.collapsedBreakpointResizeHandler));const{$el:r,params:s,collapsedBreakpointDisabled:i}=n;if(r.hasClass("panel-in-breakpoint"))return;const o=s.collapsedBreakpoint,l=r.hasClass("panel-in-collapsed");a.width>=o&&typeof o<"u"&&o!==null&&!i?l||(n.setStateClasses("closed"),r.addClass("panel-in-collapsed").removeClass("panel-in"),n.collapsed=!0,a.allowPanelOpen=!0,e&&(n.emit("local::collapsedBreakpoint panelCollapsedBreakpoint",n),n.$el.trigger("panel:collapsedbreakpoint"))):l&&(r.removeClass("panel-in-collapsed panel-in"),n.collapsed=!1,e&&(n.emit("local::collapsedBreakpoint panelCollapsedBreakpoint",n),n.$el.trigger("panel:collapsedbreakpoint")))}enableResizable(){const e=this;return e.resizableInitialized?(e.resizable=!0,e.$el.addClass("panel-resizable")):vC(e),e}disableResizable(){const e=this;return e.resizable=!1,e.$el.removeClass("panel-resizable"),e}enableSwipe(){const e=this;return e.swipeInitialized?e.swipeable=!0:bC(e),e}disableSwipe(){const e=this;return e.swipeable=!1,e}onOpen(e){e===void 0&&(e=!0);const n=this;n._openTransitionStarted=!1;const a=n.app;n.opened=!0,a.panel.allowOpen=!1,n.$el.trigger("panel:beforeopen"),n.emit("local::beforeOpen panelBeforeOpen",n),e&&n.setStateClasses("open"),n.$el.trigger("panel:open"),n.emit("local::open panelOpen",n)}onOpened(){const e=this,n=e.app;n.panel.allowOpen=!0,e.$el.trigger("panel:opened"),e.emit("local::opened panelOpened",e)}onClose(){const e=this,n=e.app;e.opened=!1,n.panel.allowOpen=!1,e.$el.trigger("panel:beforeclose"),e.emit("local::beforeClose panelBeforeClose",e),e.setStateClasses("closing"),e.$el.trigger("panel:close"),e.emit("local::close panelClose",e)}onClosed(){const e=this,n=e.app;if(n.panel.allowOpen=!0,e.setStateClasses("after-closing"),e.$el.removeClass("panel-out"),e.$backdropEl){const a=n.panel.get(".panel-in");(!a||a&&!a.$backdropEl)&&e.$backdropEl.removeClass("panel-backdrop-in")}e.$el.trigger("panel:closed"),e.emit("local::closed panelClosed",e)}toggle(e){e===void 0&&(e=!0);const n=this,a=n.params.visibleBreakpoint;return n.app.width>=a&&typeof a<"u"&&a!==null?n.toggleVisibleBreakpoint():(n.opened?n.close(e):n.open(e),n)}insertToRoot(){const e=this,n=ye(),{$el:a,$backdropEl:r,$containerEl:s}=e,i=a.parent(),o=a.parents(n).length>0;if(!i.is(s)||a.prevAll(".views, .view").length){const l=s.children(".panel, .views, .view").eq(0),c=s.children(".panel-backdrop").eq(0);l.length?a.insertBefore(l):c?a.insertBefore(c):s.prepend(a),r&&r.length&&(!r.parent().is(s)&&r.nextAll(".panel").length===0||r.parent().is(s)&&r.nextAll(".panel").length===0)&&r.insertBefore(a),e.once("panelClosed",()=>{o?i.append(a):a.remove()})}}open(e){e===void 0&&(e=!0);const n=this,a=n.app;if(!a.panel.allowOpen)return!1;const{effect:r,$el:s,$backdropEl:i,opened:o,$containerEl:l}=n;if(!s||s.hasClass("panel-in"))return n;if(n.insertToRoot(),o||s.hasClass("panel-in-breakpoint")||s.hasClass("panel-in"))return!1;const c=a.panel.get(".panel-in");c&&c!==n&&c.close(e),s[e?"removeClass":"addClass"]("not-animated"),s.addClass("panel-in"),i&&(i.addClass("panel-backdrop-in"),i[e?"removeClass":"addClass"]("not-animated")),["cover","push","floating"].includes(n.effect)&&(n._clientLeft=s[0].clientLeft);const d=C(n.getViewEl());l&&l.hasClass("page")&&d.add(l.children(".page-content, .tabs"));const u=r==="reveal"?d:s;function p(){u.transitionStart(()=>{n._openTransitionStarted=!0})}function f(){u.transitionEnd(h=>{C(h.target).is(u)?s.hasClass("panel-out")?n.onClosed():n.onOpened():f()})}return e?(i&&i.removeClass("not-animated"),p(),f(),s.removeClass("panel-out not-animated").addClass("panel-in"),n.onOpen()):(i&&i.addClass("not-animated"),s.removeClass("panel-out").addClass("panel-in not-animated"),n.onOpen(),n.onOpened(),n._openTransitionStarted=!0),!0}close(e){e===void 0&&(e=!0);const n=this,{effect:a,$el:r,$backdropEl:s,opened:i,$containerEl:o}=n;if(!i||r.hasClass("panel-in-breakpoint")||!r.hasClass("panel-in"))return n;r[e?"removeClass":"addClass"]("not-animated"),s&&s[e?"removeClass":"addClass"]("not-animated");const l=C(n.getViewEl());o&&o.hasClass("page")&&l.add(o.children(".page-content, .tabs"));const c=a==="reveal"?l:r;n._openTransitionStarted||(e=!1);function d(){r.hasClass("panel-out")?n.onClosed():r.hasClass("panel-in")&&n.onOpened(),n.setStateClasses("after-closing")}return e?(c.transitionEnd(()=>{d()}),r.removeClass("panel-in").addClass("panel-out"),n.onClose()):(r.addClass("not-animated").removeClass("panel-in").addClass("panel-out"),n.onClose(),n.onClosed()),n}init(){const e=this;typeof e.params.visibleBreakpoint<"u"&&e.setVisibleBreakpoint(),typeof e.params.collapsedBreakpoint<"u"&&e.setCollapsedBreakpoint(),e.params.swipe&&e.enableSwipe(),e.resizable&&e.enableResizable()}destroy(){let e=this;const n=e.app,{$containerEl:a}=e;if(e.$el){if(e.emit("local::beforeDestroy panelBeforeDestroy",e),e.$el.trigger("panel:beforedestroy"),e.visibleBreakpointResizeHandler&&n.off("resize",e.visibleBreakpointResizeHandler),e.collapsedBreakpointResizeHandler&&n.off("resize",e.collapsedBreakpointResizeHandler),e.$el.hasClass("panel-in-breakpoint")||e.$el.hasClass("panel-in-collapsed")){const r=C(e.getViewEl());a&&a.hasClass("page")&&r.add(a.children(".page-content, .tabs")),e.$el.removeClass("panel-in-breakpoint panel-in-collapsed panel-in"),r.css({[`margin-${e.side}`]:""}),e.emit("local::breakpoint panelBreakpoint",e),e.$el.trigger("panel:breakpoint")}e.$el.trigger("panel:destroy"),e.emit("local::destroy panelDestroy",e),e.el&&(e.el.f7Panel=null,delete e.el.f7Panel),Ze(e),e=null}}};const wC={name:"panel",params:{panel:{opened:void 0,side:void 0,effect:void 0,resizable:void 0,backdrop:!0,backdropEl:void 0,visibleBreakpoint:void 0,collapsedBreakpoint:void 0,swipe:!1,swipeNoFollow:!1,swipeOnlyClose:!1,swipeActiveArea:0,swipeThreshold:0,closeByBackdropClick:!0,containerEl:void 0}},static:{Panel:Zr},create(){const t=this;W(t,{panel:{allowOpen:!0,create(e){return new Zr(t,e)},get(e){if(e===void 0&&(e=".panel"),e instanceof Zr)return e;(e==="left"||e==="right")&&(e=`.panel-${e}`);const n=C(e);if(!(n.length===0||n.length>1))return n[0].f7Panel},destroy(e){e===void 0&&(e=".panel");const n=t.panel.get(e);if(n&&n.destroy)return n.destroy()},open(e,n){e===void 0&&(e=".panel"),(e==="left"||e==="right")&&(e=`.panel-${e}`);let a=t.panel.get(e);if(a&&a.open)return a.open(n);if(!a)return a=t.panel.create({el:e}),a.open(n)},close(e,n){e===void 0&&(e=".panel-in"),(e==="left"||e==="right")&&(e=`.panel-${e}`);let a=t.panel.get(e);if(a&&a.open)return a.close(n);if(!a)return a=t.panel.create({el:e}),a.close(n)},toggle(e,n){e===void 0&&(e=".panel"),(e==="left"||e==="right")&&(e=`.panel-${e}`);let a=t.panel.get(e);if(a&&a.toggle)return a.toggle(n);if(!a)return a=t.panel.create({el:e}),a.toggle(n)}}})},on:{init(){const t=this;C(".panel-init").each(e=>{const n=Object.assign({el:e},C(e).dataset()||{});t.panel.create(n)})},pageInit(t){const e=this;t.$el.find(".panel-init").each(n=>{const a=Object.assign({el:n},C(n).dataset()||{});e.panel.create(a)})},pageBeforeRemove(t){const e=this;t.$el.find(".panel-init").each(n=>{const a=e.panel.get(n);a&&a.destroy&&a.destroy()})}},vnode:{"panel-init":{insert(t){const e=this,n=t.elm,a=Object.assign({el:n},C(n).dataset()||{});e.panel.create(a)},destroy(t){const e=this,n=t.elm,a=e.panel.get(n);a&&a.destroy&&a.destroy()}}},clicks:{".panel-open":function(e,n){n===void 0&&(n={}),this.panel.open(n.panel,n.animate)},".panel-close":function(e,n){n===void 0&&(n={}),this.panel.close(n.panel,n.animate)},".panel-toggle":function(e,n){n===void 0&&(n={}),this.panel.toggle(n.panel,n.animate)},".panel-backdrop":function(){const e=this,n=C(".panel-in:not(.panel-out)");if(!n.length)return;const a=n[0]&&n[0].f7Panel;n.trigger("panel:backdrop-click"),a&&a.emit("backdropClick",a),e.emit("panelBackdropClick",a||n[0]),!(a&&a.params.closeByBackdropClick===!1)&&e.params.panel.closeByBackdropClick&&e.panel.close()}}},yC={open(t,e){t===void 0&&(t=".card-expandable"),e===void 0&&(e=!0);const n=this,a=Ie(),r=ye(),s=Xe(),i=C(t).eq(0);if(!i||!i.length||i.hasClass("card-opened")||i.hasClass("card-opening")||i.hasClass("card-closing"))return;const o=i.parents(".page").eq(0);if(!o.length||o.find(".card-opened").length)return;let l;function c(){l=!0}if(i.trigger("card:beforeopen",{prevent:c}),n.emit("cardBeforeOpen",i[0],c),l)return;const d=Object.assign({animate:e},n.params.card,i.dataset()),u=i.parents(".page-content");let p;i.attr("data-backdrop-el")&&(p=C(i.attr("data-backdrop-el"))),!p&&d.backdrop&&(p=u.find(".card-backdrop"),p.length||(p=C('
            '),u.append(p)));let f,h;d.hideNavbarOnOpen&&(f=o.children(".navbar"),f.length||o[0].f7Page&&(f=o[0].f7Page.$navbarEl)),d.hideToolbarOnOpen&&(h=o.children(".toolbar"),h.length||(h=o.parents(".view").children(".toolbar")),h.length||(h=o.parents(".views").children(".toolbar")));const m=i.css("transform");let b;m&&m.match(/[2-9]/)&&(b=!0);const w=i.children(".card-content"),g=C(r.createElement("div")).addClass("card-expandable-size");i.append(g);let v=i[0].offsetWidth,y=i[0].offsetHeight,E=o[0].offsetWidth,k=o[0].offsetHeight,$=g[0].offsetWidth||E,M=g[0].offsetHeight||k,x;f&&!d.hideStatusbarOnOpen&&M===k&&(x=parseInt(f.css("--f7-safe-area-top"),10),Number.isNaN(x)&&(x=0)),x&&(M-=x);let F=$/v,S=M/y,I=i.offset(),B=o.offset();x&&(B.top+=x/2),I.left-=B.left;let P,L;if(b){const U=m.replace(/matrix\(|\)/g,"").split(",").map(K=>K.trim());if(U&&U.length>1){const K=parseFloat(U[0]);P=I.left-v*(1-K)/2,L=I.top-B.top-y*(1-K)/2,n.rtl&&(P-=i[0].scrollLeft)}else P=i[0].offsetLeft,L=i[0].offsetTop-(u.length?u[0].scrollTop:0)}else P=I.left,L=I.top-B.top,n.rtl&&(P-=i[0].scrollLeft);P-=(E-$)/2,L-=(k-M)/2;let V=$-v-P;n.rtl&&([P,V]=[V,P]);let H=M-y-L,D=(V-P)/2,O=(H-L)/2;d.hideNavbarOnOpen&&f&&f.length&&(f.closest(".navbar-hidden").length?i[0].f7KeepNavbarOnClose=!0:(delete i[0].f7KeepNavbarOnClose,n.navbar.hide(f,d.animate,d.hideStatusbarOnOpen,!0))),d.hideToolbarOnOpen&&h&&h.length&&(h.closest(".toolbar-hidden").length?i[0].f7KeepToolbarOnClose=!0:(delete i[0].f7KeepToolbarOnClose,n.toolbar.hide(h,d.animate))),p&&p.removeClass("card-backdrop-out").addClass("card-backdrop-in"),i.removeClass("card-transitioning"),d.animate&&i.addClass("card-opening"),i.trigger("card:open"),n.emit("cardOpen",i[0]);function _(){o.addClass("page-with-card-opened"),a.ios&&u.length&&(u.css("height",`${u[0].offsetHeight+1}px`),setTimeout(()=>{u.css("height","")})),i.addClass("card-opened"),i.removeClass("card-opening"),i.trigger("card:opened"),n.emit("cardOpened",i[0],o[0])}w.css({width:`${$}px`,height:`${M}px`}).transform(`translate3d(${n.rtl?P+D:-P-D}px, 0px, 0) scale(${1/F}, ${1/S})`),i.transform(`translate3d(${n.rtl?-D:D}px, ${O}px, 0) scale(${F}, ${S})`),d.animate?i.transitionEnd(()=>{_()}):_();function N(){i.removeClass("card-transitioning"),v=i[0].offsetWidth,y=i[0].offsetHeight,E=o[0].offsetWidth,k=o[0].offsetHeight,$=g[0].offsetWidth||E,M=g[0].offsetHeight||k,x=0,f&&!d.hideStatusbarOnOpen&&M===k&&(x=parseInt(f.css("--f7-safe-area-top"),10),Number.isNaN(x)&&(x=0)),x&&(M-=x),F=$/v,S=M/y,i.transform("translate3d(0px, 0px, 0) scale(1)"),I=i.offset(),B=o.offset(),x&&(B.top+=x/2),I.left-=B.left,I.top-=B.top,P=I.left-(E-$)/2,n.rtl&&(P-=i[0].scrollLeft),L=I.top-(k-M)/2,V=$-v-P,H=M-y-L,n.rtl&&([P,V]=[V,P]),D=(V-P)/2,O=(H-L)/2,i.transform(`translate3d(${n.rtl?-D:D}px, ${O}px, 0) scale(${F}, ${S})`),w.css({width:`${$}px`,height:`${M}px`}).transform(`translate3d(${n.rtl?P+D:-P-D}px, 0px, 0) scale(${1/F}, ${1/S})`)}let G,ee,X,se,ne,ie,le,be,oe,ce,pe,R;function A(U){!C(U.target).closest(i).length||!U.isTrusted||i.hasClass("card-opened")&&(R=i.find(d.scrollableEl),R[0]&&R[0]!==w[0]&&!R[0].contains(U.target)?G=0:G=R.scrollTop(),ee=!0,se=U.targetTouches[0].pageX,ne=U.targetTouches[0].pageY,be=void 0,ce=!1,pe=!1)}function z(U){if(!(!ee||!U.isTrusted)){if(ie=U.targetTouches[0].pageX,le=U.targetTouches[0].pageY,typeof be>"u"&&(be=!!(be||Math.abs(le-ne)>Math.abs(ie-se))),!pe&&!ce&&(!be&&U.targetTouches[0].clientX<=50?pe=!0:ce=!0),!(pe||ce)||ce&&G!==0){ee=!0,X=!0;return}X||i.removeClass("card-transitioning"),X=!0,oe=Math.max(ce?(le-ne)/150:(ie-se)/(v/2),0),(oe>0&&ce||pe)&&(ce&&a.ios&&R[0]===w[0]&&(R.css("-webkit-overflow-scrolling","auto"),R.scrollTop(0)),U.preventDefault()),oe>1&&(oe**=.3),oe>(ce?1.3:1.1)?(ee=!1,X=!1,n.card.close(i)):i.transform(`translate3d(${n.rtl?-D:D}px, ${O}px, 0) scale(${F*(1-oe*.2)}, ${S*(1-oe*.2)})`)}}function q(U){!ee||!X||!U.isTrusted||(ee=!1,X=!1,a.ios&&R.css("-webkit-overflow-scrolling",""),oe>=.8?n.card.close(i):i.addClass("card-transitioning").transform(`translate3d(${n.rtl?-D:D}px, ${O}px, 0) scale(${F}, ${S})`))}i[0].detachEventHandlers=function(){n.off("resize",N),s.touch&&d.swipeToClose&&(n.off("touchstart:passive",A),n.off("touchmove:active",z),n.off("touchend:passive",q))},n.on("resize",N),s.touch&&d.swipeToClose&&(n.on("touchstart:passive",A),n.on("touchmove:active",z),n.on("touchend:passive",q))},close(t,e){t===void 0&&(t=".card-expandable.card-opened"),e===void 0&&(e=!0);const n=this,a=Ie(),r=C(t).eq(0);if(!r||!r.length||!r.hasClass("card-opened")||r.hasClass("card-opening")||r.hasClass("card-closing"))return;const s=r.children(".card-content"),i=r.parents(".page-content"),o=r.parents(".page").eq(0);if(!o.length)return;const l=Object.assign({animate:e},n.params.card,r.dataset()),c=r.find(l.scrollableEl);let d,u,p;r.attr("data-backdrop-el")&&(p=C(r.attr("data-backdrop-el"))),l.backdrop&&(p=r.parents(".page-content").find(".card-backdrop")),l.hideNavbarOnOpen&&(d=o.children(".navbar"),d.length||o[0].f7Page&&(d=o[0].f7Page.$navbarEl),d&&d.length&&!r[0].f7KeepNavbarOnClose&&n.navbar.show(d,l.animate,!0)),l.hideToolbarOnOpen&&(u=o.children(".toolbar"),u.length||(u=o.parents(".view").children(".toolbar")),u.length||(u=o.parents(".views").children(".toolbar")),u&&u.length&&!r[0].f7KeepToolbarOnClose&&n.toolbar.show(u,l.animate)),o.removeClass("page-with-card-opened"),a.ios&&i.length&&(i.css("height",`${i[0].offsetHeight+1}px`),setTimeout(()=>{i.css("height","")})),p&&p.length&&p.removeClass("card-backdrop-in").addClass("card-backdrop-out"),r.removeClass("card-opened card-transitioning"),l.animate?r.addClass("card-closing"):r.addClass("card-no-transition"),r.transform(""),r.trigger("card:close"),n.emit("cardClose",r[0],o[0]);const f=r.hasClass("card-expandable-animate-width");function h(){f||s.css({width:"",height:""}),p&&p.length&&p.removeClass("card-backdrop-in card-backdrop-out"),r.removeClass("card-closing card-no-transition"),r.trigger("card:closed"),r.find(".card-expandable-size").remove(),n.emit("cardClosed",r[0],o[0])}f&&s.css({width:"",height:""}),s.transform("").scrollTop(0,e?300:0),c.length&&c[0]!==s[0]&&c.scrollTop(0,e?300:0),e?s.transitionEnd(()=>{h()}):h(),r[0].detachEventHandlers&&(r[0].detachEventHandlers(),delete r[0].detachEventHandlers)},toggle(t,e){t===void 0&&(t=".card-expandable");const n=this,a=C(t).eq(0);a.length&&(a.hasClass("card-opened")?n.card.close(a,e):n.card.open(a,e))}},EC={name:"card",params:{card:{hideNavbarOnOpen:!0,hideStatusbarOnOpen:!0,hideToolbarOnOpen:!0,scrollableEl:".card-content",swipeToClose:!0,closeByBackdropClick:!0,backdrop:!0}},create(){Ct(this,{card:yC})},on:{pageBeforeIn(t){const e=this;if(e.params.card.hideNavbarOnOpen&&t.navbarEl&&t.$el.find(".card-opened.card-expandable").length&&e.navbar.hide(t.navbarEl,!0,e.params.card.hideStatusbarOnOpen,!0),e.params.card.hideToolbarOnOpen&&t.$el.find(".card-opened.card-expandable").length){let n=t.$el.children(".toolbar");n.length||(n=t.$el.parents(".view").children(".toolbar")),n.length||(n=t.$el.parents(".views").children(".toolbar")),n&&n.length&&e.toolbar.hide(n)}}},clicks:{".card-close":function(e,n){this.card.close(n.card,n.animate)},".card-open":function(e,n){this.card.open(n.card,n.animate)},".card-expandable":function(e,n,a){const r=this;e.hasClass("card-opened")||e.hasClass("card-opening")||e.hasClass("card-closing")||C(a.target).closest(".card-prevent-open, .card-close").length||r.card.open(e)},".card-backdrop-in":function(){const e=this;let n=!1;e.params.card.closeByBackdropClick&&(n=!0);const a=C(".card-opened");a.length&&(a.attr("data-close-by-backdrop-click")==="true"?n=!0:a.attr("data-close-by-backdrop-click")==="false"&&(n=!1),n&&e.card.close(a))}}},CC={name:"chip"},es={store(t,e){const n=this,a=fe();let r=t;const s=C(t);s.length&&s.is("form")&&s.attr("id")&&(r=s.attr("id")),n.form.data[`form-${r}`]=e,a.localStorage[`f7form-${r}`]=JSON.stringify(e)},get(t){const e=this,n=fe();let a=t;const r=C(t);if(r.length&&r.is("form")&&r.attr("id")&&(a=r.attr("id")),n.localStorage[`f7form-${a}`])return JSON.parse(n.localStorage[`f7form-${a}`]);if(e.form.data[`form-${a}`])return e.form.data[`form-${a}`]},remove(t){const e=this,n=fe();let a=t;const r=C(t);r.length&&r.is("form")&&r.attr("id")&&(a=r.attr("id")),e.form.data[`form-${a}`]&&(e.form.data[`form-${a}`]="",delete e.form.data[`form-${a}`]),n.localStorage[`f7form-${a}`]&&(n.localStorage[`f7form-${a}`]="",n.localStorage.removeItem(`f7form-${a}`))}},Co={init(t){const e=this,n=C(t),a=n.attr("id");if(!a)return;const r=e.form.getFormData(a);r&&e.form.fillFromData(n,r);function s(){const i=e.form.convertToData(n);i&&(e.form.storeFormData(a,i),n.trigger("form:storedata",i),e.emit("formStoreData",n[0],i))}n.on("change submit",s)},destroy(t){C(t).off("change submit")}};function kC(t){const e=this,n=C(t).eq(0);if(n.length===0)return;const a={},r=["submit","image","button","file"],s=[];return n.find("input, select, textarea").each(i=>{const o=C(i);if(o.hasClass("ignore-store-data")||o.hasClass("no-store-data"))return;const l=o.attr("name"),c=o.attr("type"),d=i.nodeName.toLowerCase();if(!(r.indexOf(c)>=0)&&!(s.indexOf(l)>=0||!l))if(d==="select"&&o.prop("multiple"))s.push(l),a[l]=[],n.find(`select[name="${l}"] option`).each(u=>{u.selected&&a[l].push(u.value)});else switch(c){case"checkbox":s.push(l),a[l]=[],n.find(`input[name="${l}"]`).each(u=>{u.checked&&a[l].push(u.value)});break;case"radio":s.push(l),n.find(`input[name="${l}"]`).each(u=>{u.checked&&(a[l]=u.value)});break;default:a[l]=o.val();break}}),n.trigger("form:todata",a),e.emit("formToData",n[0],a),a}function $C(t,e){const n=this,a=C(t).eq(0);if(!a.length)return;let r=e;const s=a.attr("id");if(!r&&s&&(r=n.form.getFormData(s)),!r)return;const i=["submit","image","button","file"],o=[];a.find("input, select, textarea").each(l=>{const c=C(l);if(c.hasClass("ignore-store-data")||c.hasClass("no-store-data"))return;const d=c.attr("name"),u=c.attr("type"),p=l.nodeName.toLowerCase();if(!(typeof r[d]>"u"||r[d]===null)&&!(i.indexOf(u)>=0)&&!(o.indexOf(d)>=0||!d)){if(p==="select"&&c.prop("multiple"))o.push(d),a.find(`select[name="${d}"] option`).each(f=>{const h=f;r[d].indexOf(f.value)>=0?h.selected=!0:h.selected=!1});else switch(u){case"checkbox":o.push(d),a.find(`input[name="${d}"]`).each(f=>{const h=f;r[d].indexOf(f.value)>=0?h.checked=!0:h.checked=!1});break;case"radio":o.push(d),a.find(`input[name="${d}"]`).each(f=>{const h=f;r[d]===f.value?h.checked=!0:h.checked=!1});break;default:c.val(r[d]);break}(p==="select"||p==="input"||p==="textarea")&&c.trigger("change","fromdata")}}),a.trigger("form:fromdata",r),n.emit("formFromData",a[0],r)}function xC(){const t=this,e=fe(),n=ye();function a(r,s){const i=C(this);if(r.type==="change"&&!i.hasClass("form-ajax-submit-onchange")||(r.type==="submit"&&r.preventDefault(),r.type==="change"&&s==="fromdata"))return;const o=(i.attr("method")||"GET").toUpperCase(),l=i.attr("enctype")||i.prop("enctype");let c=i.attr("action");if(!c)return;let d;o==="POST"?l==="application/x-www-form-urlencoded"||l==="application/json"?(d=t.form.convertToData(i[0]),l==="application/json"&&(d=JSON.stringify(d))):d=new e.FormData(i[0]):(d=Fn(t.form.convertToData(i[0])),c.includes("?")?c+=`&${d}`:c+=`?${d}`),i.trigger("formajax:beforesend",{data:d}),t.emit("formAjaxBeforeSend",i[0],d),fetch(c,{method:o,headers:{"Content-Type":l||"application/x-www-form-urlencoded"},...o==="POST"||o==="PUT"?{body:d}:{}}).then(u=>{i.trigger("formajax:complete",{data:d,response:u}),t.emit("formAjaxComplete",i[0],d,u),i.trigger("formajax:success",{data:d,response:u}),t.emit("formAjaxSuccess",i[0],d,u)}).catch(u=>{i.trigger("formajax:error",{data:d,error:u}),t.emit("formAjaxError",i[0],d,u)})}C(n).on("submit change","form.form-ajax-submit, form.form-ajax-submit-onchange",a)}const SC={name:"form",create(){const t=this;W(t,{form:{data:{},storeFormData:es.store.bind(t),getFormData:es.get.bind(t),removeFormData:es.remove.bind(t),convertToData:kC.bind(t),fillFromData:$C.bind(t),storage:{init:Co.init.bind(t),destroy:Co.destroy.bind(t)}}})},on:{init(){const t=this;xC.call(t)},tabBeforeRemove(t){const e=this;C(t).find(".form-store-data").each(n=>{e.form.storage.destroy(n)})},tabMounted(t){const e=this;C(t).find(".form-store-data").each(n=>{e.form.storage.init(n)})},pageBeforeRemove(t){const e=this;t.$el.find(".form-store-data").each(n=>{e.form.storage.destroy(n)})},pageInit(t){const e=this;t.$el.find(".form-store-data").each(n=>{e.form.storage.init(n)})}}},Dt={ignoreTypes:["checkbox","button","submit","range","radio","image"],createTextareaResizableShadow(){const t=ye(),e=C(t.createElement("textarea"));e.addClass("textarea-resizable-shadow"),e.prop({disabled:!0,readonly:!0}),Dt.textareaResizableShadow=e},textareaResizableShadow:void 0,resizeTextarea(t){const e=this,n=fe(),a=C(t);Dt.textareaResizableShadow||Dt.createTextareaResizableShadow();const r=Dt.textareaResizableShadow;if(!a.length||!a.hasClass("resizable"))return;Dt.textareaResizableShadow.parents().length===0&&e.$el.append(r);const s=n.getComputedStyle(a[0]);"padding-top padding-bottom padding-left padding-right margin-left margin-right margin-top margin-bottom width font-size font-family font-style font-weight line-height font-variant text-transform letter-spacing border box-sizing display".split(" ").forEach(c=>{let d=s[c];"font-size line-height letter-spacing width".split(" ").indexOf(c)>=0&&(d=d.replace(",",".")),r.css(c,d)});const i=a[0].clientHeight;r.val("");const o=r[0].scrollHeight;r.val(a.val()),r.css("height",0);const l=r[0].scrollHeight;i!==l&&(l>o?a.css("height",`${l}px`):lo||l`),l.insertAfter(e)),l.text(o)),l.length>0&&(n.addClass("item-input-with-error-message"),a.addClass("input-with-error-message")),n.addClass("item-input-invalid"),a.addClass("input-invalid"),e.addClass("input-invalid"),s(),!1}return n.removeClass("item-input-invalid item-input-with-error-message"),a.removeClass("input-invalid input-with-error-message"),e.removeClass("input-invalid"),s(),!0},validateInputs(t){const e=this;return C(t).find("input, textarea, select").map(a=>e.input.validate(a)).indexOf(!1)<0},focus(t){const e=C(t),n=e.attr("type");Dt.ignoreTypes.indexOf(n)>=0||(e.parents(".item-input").addClass("item-input-focused"),e.parents(".input").addClass("input-focused"),e.addClass("input-focused"))},blur(t){const e=C(t);e.parents(".item-input").removeClass("item-input-focused"),e.parents(".input").removeClass("input-focused"),e.removeClass("input-focused")},checkEmptyState(t){const e=this;let n=C(t);if(n.is("input, select, textarea, .item-input [contenteditable]")||(n=n.find("input, select, textarea, .item-input [contenteditable]").eq(0)),!n.length)return;const a=n[0].hasAttribute("contenteditable");let r;a?n.find(".text-editor-placeholder").length?r="":r=n.html():r=n.val();const s=n.parents(".item-input"),i=n.parents(".input");r&&typeof r=="string"&&r.trim()!==""||Array.isArray(r)&&r.length>0?(s.addClass("item-input-with-value"),i.addClass("input-with-value"),n.addClass("input-with-value"),n.trigger("input:notempty"),e.emit("inputNotEmpty",n[0])):(s.removeClass("item-input-with-value"),i.removeClass("input-with-value"),n.removeClass("input-with-value"),n.trigger("input:empty"),e.emit("inputEmpty",n[0]))},scrollIntoView(t,e,n,a){e===void 0&&(e=0);const r=C(t),s=r.parents(".page-content, .panel, .card-expandable .card-content").eq(0);if(!s.length)return!1;const i=s[0].offsetHeight,o=s[0].scrollTop,l=parseInt(s.css("padding-top"),10),c=parseInt(s.css("padding-bottom"),10),d=s.offset().top-o,u=r.offset().top-d,p=r[0].offsetHeight,f=u+o-l,h=u+o-i+c+p,m=f+(h-f)/2;return o>f?(s.scrollTop(n?m:f,e),!0):o{a&&a.activeElement===d&&t.input.scrollIntoView(d,t.params.input.scrollIntoViewDuration,t.params.input.scrollIntoViewCentered,t.params.input.scrollIntoViewAlways)}):t.input.scrollIntoView(d,t.params.input.scrollIntoViewDuration,t.params.input.scrollIntoViewCentered,t.params.input.scrollIntoViewAlways)),t.input.focus(d)}function s(){const d=C(this),u=d[0].nodeName.toLowerCase();t.input.blur(d),(d.dataset().validate||d.attr("validate")!==null||d.attr("data-validate-on-blur")!==null)&&t.input.validate(d),u==="textarea"&&d.hasClass("resizable")&&Dt.textareaResizableShadow&&Dt.textareaResizableShadow.remove()}function i(){const d=C(this),u=d.attr("type"),p=d[0].nodeName.toLowerCase(),f=d[0].hasAttribute("contenteditable");Dt.ignoreTypes.indexOf(u)>=0||(t.input.checkEmptyState(d),!f&&(d.attr("data-validate-on-blur")===null&&(d.dataset().validate||d.attr("validate")!==null)&&t.input.validate(d),p==="textarea"&&d.hasClass("resizable")&&t.input.resizeTextarea(d)))}function o(d){const u=C(this);u.attr("data-validate-on-blur")===null&&(u.dataset().validate||u.attr("validate")!==null)&&(d.preventDefault(),t.input.validate(u))}function l(){const u=C(this).siblings("input, textarea").eq(0),p=u.val();u.val("").trigger("input change").focus().trigger("input:clear",p),t.emit("inputClear",p)}function c(d){d.preventDefault()}C(a).on("click",".input-clear-button",l),C(a).on("mousedown",".input-clear-button",c),C(a).on("change input","input, textarea, select, .item-input [contenteditable]",i,!0),C(a).on("focus","input, textarea, select, .item-input [contenteditable]",r,!0),C(a).on("blur","input, textarea, select, .item-input [contenteditable]",s,!0),C(a).on("invalid","input, textarea, select",o,!0)}},TC={name:"input",params:{input:{scrollIntoViewOnFocus:void 0,scrollIntoViewCentered:!1,scrollIntoViewDuration:0,scrollIntoViewAlways:!1}},create(){const t=this;typeof t.params.input.scrollIntoViewOnFocus>"u"&&(t.params.input.scrollIntoViewOnFocus=Ie().android),Ct(t,{input:Dt})},on:{init(){this.input.init()},tabMounted(t){const e=this,n=C(t);n.find(".item-input, .input").each(a=>{C(a).find("input, select, textarea, [contenteditable]").each(s=>{const i=C(s);Dt.ignoreTypes.indexOf(i.attr("type"))>=0||e.input.checkEmptyState(i)})}),n.find("textarea.resizable").each(a=>{e.input.resizeTextarea(a)})},pageInit(t){const e=this,n=t.$el;n.find(".item-input, .input").each(a=>{C(a).find("input, select, textarea, [contenteditable]").each(s=>{const i=C(s);Dt.ignoreTypes.indexOf(i.attr("type"))>=0||e.input.checkEmptyState(i)})}),n.find("textarea.resizable").each(a=>{e.input.resizeTextarea(a)})},"panelBreakpoint panelCollapsedBreakpoint panelResize panelOpen panelSwipeOpen resize viewMasterDetailBreakpoint":function(e){const n=this;e&&e.$el?e.$el.find("textarea.resizable").each(a=>{n.input.resizeTextarea(a)}):C("textarea.resizable").each(a=>{n.input.resizeTextarea(a)})}}},PC={name:"checkbox"},MC={name:"radio"};let ko=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r=Xe(),s={};a.useModulesParams(s),a.params=W(s,n);const i=a.params.el;if(!i)return a;const o=C(i);if(o.length===0)return a;if(o[0].f7Toggle)return o[0].f7Toggle;const l=o.children('input[type="checkbox"]');W(a,{app:e,$el:o,el:o[0],$inputEl:l,inputEl:l[0],disabled:o.hasClass("disabled")||l.hasClass("disabled")||l.attr("disabled")||l[0].disabled}),Object.defineProperty(a,"checked",{enumerable:!0,configurable:!0,set(y){!a||typeof a.$inputEl>"u"||a.checked!==y&&(l[0].checked=y,a.$inputEl.trigger("change"))},get(){return l[0].checked}}),o[0].f7Toggle=a;let c;const d={};let u,p,f,h,m;function b(y){c||a.disabled||(d.x=y.type==="touchstart"?y.targetTouches[0].pageX:y.pageX,d.y=y.type==="touchstart"?y.targetTouches[0].pageY:y.pageY,p=0,c=!0,u=void 0,h=It(),m=a.checked,f=o[0].offsetWidth,lt(()=>{c&&o.addClass("toggle-active-state")}))}function w(y){if(!c||a.disabled)return;const E=y.type==="touchmove"?y.targetTouches[0].pageX:y.pageX,k=y.type==="touchmove"?y.targetTouches[0].pageY:y.pageY,$=e.rtl?-1:1;if(typeof u>"u"&&(u=!!(u||Math.abs(k-d.y)>Math.abs(E-d.x))),u){c=!1;return}y.preventDefault(),p=E-d.x;let M;p*$<0&&Math.abs(p)>f/3&&m&&(M=!0),p*$>0&&Math.abs(p)>f/3&&!m&&(M=!0),M&&(d.x=E,a.checked=!m,m=!m)}function g(){if(!c||a.disabled){u&&o.removeClass("toggle-active-state"),c=!1;return}const y=e.rtl?-1:1;c=!1,o.removeClass("toggle-active-state");let E;It()-h<300&&(p*y<0&&m&&(E=!0),p*y>0&&!m&&(E=!0),E&&(a.checked=!m))}function v(){a.$el.trigger("toggle:change"),a.emit("local::change toggleChange",a)}a.attachEvents=function(){const E=r.passiveListener?{passive:!0}:!1;o.on(e.touchEvents.start,b,E),e.on("touchmove",w),e.on("touchend:passive",g),a.$inputEl.on("change",v)},a.detachEvents=function(){const E=r.passiveListener?{passive:!0}:!1;o.off(e.touchEvents.start,b,E),e.off("touchmove",w),e.off("touchend:passive",g),a.$inputEl.off("change",v)},a.useModules(),a.init()}toggle(){const e=this;e.checked=!e.checked}init(){this.attachEvents()}destroy(){let e=this;e.$el.trigger("toggle:beforedestroy"),e.emit("local::beforeDestroy toggleBeforeDestroy",e),delete e.$el[0].f7Toggle,e.detachEvents(),Ze(e),e=null}};const BC={name:"toggle",create(){const t=this;t.toggle=et({defaultSelector:".toggle",constructor:ko,app:t,domProp:"f7Toggle"})},static:{Toggle:ko},on:{tabMounted(t){const e=this;C(t).find(".toggle-init").each(n=>e.toggle.create({el:n}))},tabBeforeRemove(t){C(t).find(".toggle-init").each(e=>{e.f7Toggle&&e.f7Toggle.destroy()})},pageInit(t){const e=this;t.$el.find(".toggle-init").each(n=>e.toggle.create({el:n}))},pageBeforeRemove(t){t.$el.find(".toggle-init").each(e=>{e.f7Toggle&&e.f7Toggle.destroy()})}},vnode:{"toggle-init":{insert(t){const e=this,n=t.elm;e.toggle.create({el:n})},destroy(t){const e=t.elm;e.f7Toggle&&e.f7Toggle.destroy()}}}};let Za=class extends Ue{constructor(e,n){super(n,[e]);const a=this,r=Xe(),s={el:null,inputEl:null,dual:!1,step:1,label:!1,min:0,max:100,value:0,draggableBar:!0,vertical:!1,verticalReversed:!1,formatLabel:null,scale:!1,scaleSteps:5,scaleSubSteps:0,formatScaleLabel:null,limitKnobPosition:e.theme==="ios"};a.useModulesParams(s),a.params=W(s,n);const i=a.params.el;if(!i)return a;const o=C(i);if(o.length===0)return a;if(o[0].f7Range)return o[0].f7Range;const l=o.dataset();"step min max value scaleSteps scaleSubSteps".split(" ").forEach(oe=>{typeof n[oe]>"u"&&typeof l[oe]<"u"&&(a.params[oe]=parseFloat(l[oe]))}),"dual label vertical verticalReversed scale".split(" ").forEach(oe=>{typeof n[oe]>"u"&&typeof l[oe]<"u"&&(a.params[oe]=l[oe])}),a.params.value||(typeof l.value<"u"&&(a.params.value=l.value),typeof l.valueLeft<"u"&&typeof l.valueRight<"u"&&(a.params.value=[parseFloat(l.valueLeft),parseFloat(l.valueRight)]));let c;a.params.dual||(a.params.inputEl?c=C(a.params.inputEl):o.find('input[type="range"]').length&&(c=o.find('input[type="range"]').eq(0)));const{dual:d,step:u,label:p,min:f,max:h,value:m,vertical:b,verticalReversed:w,scale:g,scaleSteps:v,scaleSubSteps:y,limitKnobPosition:E}=a.params;W(a,{app:e,$el:o,el:o[0],$inputEl:c,inputEl:c?c[0]:void 0,dual:d,step:u,label:p,min:f,max:h,value:m,previousValue:m,vertical:b,verticalReversed:w,scale:g,scaleSteps:v,scaleSubSteps:y,limitKnobPosition:E}),c&&("step min max".split(" ").forEach(oe=>{!n[oe]&&c.attr(oe)&&(a.params[oe]=parseFloat(c.attr(oe)),a[oe]=parseFloat(c.attr(oe)))}),typeof c.val()<"u"&&(a.params.value=parseFloat(c.val()),a.value=parseFloat(c.val()))),a.dual&&o.addClass("range-slider-dual"),a.label&&o.addClass("range-slider-label"),a.vertical?(o.addClass("range-slider-vertical"),a.verticalReversed&&o.addClass("range-slider-vertical-reversed")):o.addClass("range-slider-horizontal");const k=C('
            '),$=C('
            ');k.append($);const M=`
            ${a.label?'
            ':""} @@ -146,9 +146,9 @@ ${l.toString()}`)}return r&&(typeof r=="string"?o+=`?${r}`:Object.keys(r).length
            ${a.renderScale()}
            - `),o.append(S)),W(a,{knobs:x,labels:F,$barEl:k,$barActiveEl:$,$scaleEl:S}),o[0].f7Range=a;let I;const B={};let P,L,V,H,D,O,_,N;function G(){_=!0}function ee(oe){if(I||!a.params.draggableBar&&C(oe.target).closest(".range-knob").length===0)return;_=!1,B.x=oe.type==="touchstart"?oe.targetTouches[0].pageX:oe.pageX,B.y=oe.type==="touchstart"?oe.targetTouches[0].pageY:oe.pageY,oe.type==="touchstart"&&(N=oe.targetTouches[0].identifier),I=!0,P=void 0,L=o.offset(),V=L.left,H=L.top;let ce;a.vertical?(ce=(B.y-H)/a.rangeHeight,a.verticalReversed||(ce=1-ce)):a.app.rtl?ce=(V+a.rangeWidth-B.x)/a.rangeWidth:ce=(B.x-V)/a.rangeWidth;let pe=ce*(a.max-a.min)+a.min;a.dual?Math.abs(a.value[0]-pe){I&&D.addClass("range-knob-active-state")},70),a.on("change",G),a.setValue(pe,!0)}function X(oe){if(!I)return;let ce,pe;if(oe.type==="touchmove")for(let z=0;z"u"&&typeof pe>"u")return;if(typeof P>"u"&&!a.vertical&&(P=!!(P||Math.abs(pe-B.y)>Math.abs(ce-B.x))),P){I=!1;return}oe.preventDefault();let R;a.vertical?(R=(pe-H)/a.rangeHeight,a.verticalReversed||(R=1-R)):a.app.rtl?R=(V+a.rangeWidth-ce)/a.rangeWidth:R=(ce-V)/a.rangeWidth;let A=R*(a.max-a.min)+a.min;if(a.dual){let z,q;O===0?(z=A,q=a.value[1],z>q&&(q=z)):(z=a.value[0],q=A,q{let $=g*y[k];if(b){const M=g*y[k]-w/2;M<0&&($=w/2),M+w>g&&($=g-w/2)}E.css(v,`${$}px`),p&&f[k].text(e.formatLabel(u[k],f[k][0]))})}else{const y=(u-o)/(l-o);d.css(h?"height":"width",`${y*100}%`);let E=g*y;if(b){const k=g*y-w/2;k<0&&(E=w/2),k+w>g&&(E=g-w/2)}c[0].css(v,`${E}px`),p&&f[0].text(e.formatLabel(u,f[0][0]))}e.dual&&u.indexOf(o)>=0||!e.dual&&u===o?e.$el.addClass("range-slider-min"):e.$el.removeClass("range-slider-min"),e.dual&&u.indexOf(l)>=0||!e.dual&&u===l?e.$el.addClass("range-slider-max"):e.$el.removeClass("range-slider-max")}setValue(e,n){const a=this,{step:r,min:s,max:i}=a;let o,l;if(a.dual){l=[a.value[0],a.value[1]];let c=e;if(Array.isArray(c)||(c=[e,e]),e[0]>e[1]&&(c=[c[0],c[0]]),c=c.map(d=>Math.max(Math.min(Math.round(d/r)*r,i),s)),c[0]===a.value[0]&&c[1]===a.value[1])return a;c.forEach((d,u)=>{a.value[u]=d}),o=l[0]!==c[0]||l[1]!==c[1],a.layout()}else{l=a.value;const c=Math.max(Math.min(Math.round(e/r)*r,i),s);a.value=c,a.layout(),o=l!==c}return o&&(a.previousValue=l),o&&(a.$el.trigger("range:change",a.value),a.$inputEl&&!a.dual&&(a.$inputEl.val(a.value),n?a.$inputEl.trigger("input"):a.$inputEl.trigger("input change")),n||(a.$el.trigger("range:changed",a.value),a.emit("local::changed rangeChanged",a,a.value)),a.emit("local::change rangeChange",a,a.value)),a}getValue(){return this.value}formatLabel(e,n){const a=this;return a.params.formatLabel?a.params.formatLabel.call(a,e,n):e}formatScaleLabel(e){const n=this;return n.params.formatScaleLabel?n.params.formatScaleLabel.call(n,e):e}renderScale(){const e=this,{app:n,verticalReversed:a,vertical:r}=e,s=r?a?"top":"bottom":n.rtl?"right":"left";let i="";return Array.from({length:e.scaleSteps+1}).forEach((o,l)=>{const c=(e.max-e.min)/e.scaleSteps,d=e.min+c*l,u=(d-e.min)/(e.max-e.min);i+=`
            ${e.formatScaleLabel(d)}
            `,e.scaleSubSteps&&e.scaleSubSteps>1&&l{const h=c/e.scaleSubSteps,b=(d+h*(f+1)-e.min)/(e.max-e.min);i+=`
            `})}),i}updateScale(){const e=this;if(!e.scale||e.scaleSteps<1){e.$scaleEl&&e.$scaleEl.remove(),delete e.$scaleEl;return}e.$scaleEl||(e.$scaleEl=C('
            '),e.$el.append(e.$scaleEl)),e.$scaleEl.html(e.renderScale())}init(){const e=this;return e.calcSize(),e.layout(),e.attachEvents(),e}destroy(){let e=this;e.$el.trigger("range:beforedestroy"),e.emit("local::beforeDestroy rangeBeforeDestroy",e),delete e.$el[0].f7Range,e.detachEvents(),Ze(e),e=null}};const MC={name:"range",create(){const t=this;t.range=W(et({defaultSelector:".range-slider",constructor:Za,app:t,domProp:"f7Range"}),{getValue(e){e===void 0&&(e=".range-slider");const n=t.range.get(e);if(n)return n.getValue()},setValue(e,n){e===void 0&&(e=".range-slider");const a=t.range.get(e);if(a)return a.setValue(n)}})},static:{Range:Za},on:{tabMounted(t){const e=this;C(t).find(".range-slider-init").each(n=>new Za(e,{el:n}))},tabBeforeRemove(t){C(t).find(".range-slider-init").each(e=>{e.f7Range&&e.f7Range.destroy()})},pageInit(t){const e=this;t.$el.find(".range-slider-init").each(n=>new Za(e,{el:n}))},pageBeforeRemove(t){t.$el.find(".range-slider-init").each(e=>{e.f7Range&&e.f7Range.destroy()})}},vnode:{"range-slider-init":{insert(t){const e=t.elm;this.range.create({el:e})},destroy(t){const e=t.elm;e.f7Range&&e.f7Range.destroy()}}}};let $o=class extends Ue{constructor(e,n){super(n,[e]);const a=this,r={el:null,inputEl:null,valueEl:null,value:0,formatValue:null,step:1,min:0,max:100,watchInput:!0,autorepeat:!1,autorepeatDynamic:!1,wraps:!1,manualInputMode:!1,decimalPoint:4,buttonsEndInputMode:!0};a.useModulesParams(r),a.params=W(r,n),a.params.valuea.params.max&&(a.params.value=a.params.max);const s=a.params.el;if(!s)return a;const i=C(s);if(i.length===0)return a;if(i[0].f7Stepper)return i[0].f7Stepper;let o;if(a.params.inputEl?o=C(a.params.inputEl):i.find(".stepper-input-wrap").find("input, textarea").length&&(o=i.find(".stepper-input-wrap").find("input, textarea").eq(0)),o&&o.length){"step min max".split(" ").forEach(N=>{!n[N]&&o.attr(N)&&(a.params[N]=parseFloat(o.attr(N)))});const O=parseInt(a.params.decimalPoint,10);Number.isNaN(O)?a.params.decimalPoint=0:a.params.decimalPoint=O;const _=parseFloat(o.val());typeof n.value>"u"&&!Number.isNaN(_)&&(_||_===0)&&(a.params.value=_)}let l;a.params.valueEl?l=C(a.params.valueEl):i.find(".stepper-value").length&&(l=i.find(".stepper-value").eq(0));const c=i.find(".stepper-button-plus"),d=i.find(".stepper-button-minus"),{step:u,min:p,max:f,value:h,decimalPoint:m}=a.params;W(a,{app:e,$el:i,el:i[0],$buttonPlusEl:c,buttonPlusEl:c[0],$buttonMinusEl:d,buttonMinusEl:d[0],$inputEl:o,inputEl:o?o[0]:void 0,$valueEl:l,valueEl:l?l[0]:void 0,step:u,min:p,max:f,value:h,decimalPoint:m,typeModeChanged:!1}),i[0].f7Stepper=a;const b={};let w,g,v,y,E,k=null,$=!1,M=!1;function x(O,_,N,G,ee,X){clearTimeout(E),E=setTimeout(()=>{O===1&&(v=!0,$=!0),clearInterval(y),X(),y=setInterval(()=>{X()},ee),O<_&&x(O+1,_,N,G,ee/2,X)},O===1?N:G)}function F(O){if(w||M||(C(O.target).closest(c).length?k="increment":C(O.target).closest(d).length&&(k="decrement"),!k))return;b.x=O.type==="touchstart"?O.targetTouches[0].pageX:O.pageX,b.y=O.type==="touchstart"?O.targetTouches[0].pageY:O.pageY,w=!0,g=void 0;const _=a.params.autorepeatDynamic?4:1;x(1,_,500,1e3,300,()=>{a[k]()})}function S(O){if(!w||M)return;const _=O.type==="touchmove"?O.targetTouches[0].pageX:O.pageX,N=O.type==="touchmove"?O.targetTouches[0].pageY:O.pageY;typeof g>"u"&&!$&&(g=!!(g||Math.abs(N-b.y)>Math.abs(_-b.x)));const G=((_-b.x)**2+(N-b.y)**2)**.5;(g||G>20)&&(w=!1,clearTimeout(E),clearInterval(y))}function I(){clearTimeout(E),clearInterval(y),k=null,$=!1,w=!1}function B(){if(M){a.params.buttonsEndInputMode&&(M=!1,a.endTypeMode(!0));return}if(v){v=!1;return}a.decrement(!0)}function P(){if(M){a.params.buttonsEndInputMode&&(M=!1,a.endTypeMode(!0));return}if(v){v=!1;return}a.increment(!0)}function L(O){!O.target.readOnly&&a.params.manualInputMode&&(M=!0,typeof O.target.selectionStart=="number"&&(O.target.selectionStart=O.target.value.length,O.target.selectionEnd=O.target.value.length))}function V(O){(O.keyCode===13||O.which===13)&&(O.preventDefault(),M=!1,a.endTypeMode())}function H(){M=!1,a.endTypeMode(!0)}function D(O){if(M){a.typeValue(O.target.value);return}O.detail&&O.detail.sentByF7Stepper||a.setValue(O.target.value,!0)}return a.attachEvents=function(){d.on("click",B),c.on("click",P),a.params.watchInput&&o&&o.length&&(o.on("input",D),o.on("click",L),o.on("blur",H),o.on("keyup",V)),a.params.autorepeat&&(e.on("touchstart:passive",F),e.on("touchmove:active",S),e.on("touchend:passive",I))},a.detachEvents=function(){d.off("click",B),c.off("click",P),a.params.watchInput&&o&&o.length&&(o.off("input",D),o.off("click",L),o.off("blur",H),o.off("keyup",V))},a.useModules(),a.init(),a}minus(){return this.decrement()}plus(){return this.increment()}decrement(){const e=this;return e.setValue(e.value-e.step,!1,!0)}increment(){const e=this;return e.setValue(e.value+e.step,!1,!0)}setValue(e,n,a){const r=this,{step:s,min:i,max:o}=r,l=r.value;let c=Math.round(e/s)*s;if(r.params.wraps&&a?(c>o&&(c=i),c{const a=C(n).dataset();e.stepper.create(W({el:n},a||{}))})},tabBeforeRemove(t){C(t).find(".stepper-init").each(e=>{e.f7Stepper&&e.f7Stepper.destroy()})},pageInit(t){const e=this;t.$el.find(".stepper-init").each(n=>{const a=C(n).dataset();e.stepper.create(W({el:n},a||{}))})},pageBeforeRemove(t){t.$el.find(".stepper-init").each(e=>{e.f7Stepper&&e.f7Stepper.destroy()})}},vnode:{"stepper-init":{insert(t){const e=this,n=t.elm,a=C(n).dataset();e.stepper.create(W({el:n},a||{}))},destroy(t){const e=t.elm;e.f7Stepper&&e.f7Stepper.destroy()}}}},ts=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"ŒŒ"},{base:"oe",letters:"œœ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Rc={};for(let t=0;tRc[e]||e)}let xo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r=W({on:{}},e.params.smartSelect);a.useModulesParams(r),a.params=W({},r,n),a.app=e;const s=C(a.params.el).eq(0);if(s.length===0)return a;if(s[0].f7SmartSelect)return s[0].f7SmartSelect;const i=s.find("select").eq(0);if(i.length===0)return a;let o;a.params.setValueText&&(o=C(a.params.valueEl),o.length===0&&(o=s.find(".item-after")),o.length===0&&(o=C('
            '),o.insertAfter(s.find(".item-title"))));let l=n.url;l||(s.attr("href")&&s.attr("href")!=="#"?l=s.attr("href"):i.attr("name")&&(l=`${i.attr("name").toLowerCase()}-select/`)),l||(l=a.params.url);const c=i[0].multiple,d=c?"checkbox":"radio",u=Ir();W(a,{$el:s,el:s[0],$selectEl:i,selectEl:i[0],$valueEl:o,valueEl:o&&o[0],url:l,multiple:c,inputType:d,id:u,inputName:`${d}-${u}`,selectName:i.attr("name"),maxLength:i.attr("maxlength")||n.maxLength}),s[0].f7SmartSelect=a;function p(){a.open()}function f(){const m=a.$selectEl.val();a.$el.trigger("smartselect:change",m),a.emit("local::change smartSelectChange",a,m),a.vl&&a.vl.clearCache(),a.setValueText()}a.attachEvents=function(){s.on("click",p),s.on("change","select",f)},a.detachEvents=function(){s.off("click",p),s.off("change","select",f)};function h(){let m,b;const w=this,g=w.value;let v=[],y;if(w.type==="checkbox"){for(let E=0;EE.value===g)[0]),y=m.dataset?m.dataset.displayAs:C(m).data("display-as"),b=y&&typeof y<"u"?y:m.textContent,v=[b],a.selectEl.value=g;a.$selectEl.trigger("change"),a.params.setValueText&&a.formatValueTextContent(v),a.params.closeOnSelect&&a.inputType==="radio"&&a.close()}return a.attachInputsEvents=function(){a.$containerEl.on("change",'input[type="checkbox"], input[type="radio"]',h)},a.detachInputsEvents=function(){a.$containerEl.off("change",'input[type="checkbox"], input[type="radio"]',h)},a.useModules(),a.init(),a}setValue(e){const n=this;let a=e,r=[],s,i,o;if(n.multiple){Array.isArray(a)||(a=[a]);for(let l=0;l=0?s.selected=!0:s.selected=!1,s.selected&&(i=s.dataset?s.dataset.displayAs:C(s).data("display-value-as"),o=i&&typeof i<"u"?i:s.textContent,r.push(o.trim()))}else s=n.$selectEl.find(`option[value="${a}"]`)[0],s&&(i=s.dataset?s.dataset.displayAs:C(s).data("display-as"),o=i&&typeof i<"u"?i:s.textContent,r=[o]),n.selectEl.value=a;return n.params.setValueText&&n.formatValueTextContent(r),n.$selectEl.trigger("change"),n}unsetValue(){const e=this;e.params.setValueText&&e.formatValueTextContent([]),e.$selectEl.find("option").each(n=>{n.selected=!1,n.checked=!1}),e.$selectEl[0].value=null,e.$containerEl&&e.$containerEl.find(`input[name="${e.inputName}"][type="checkbox"], input[name="${e.inputName}"][type="radio"]`).prop("checked",!1),e.$selectEl.trigger("change")}getValue(){return this.$selectEl.val()}get view(){const{params:e,$el:n}=this;let a;if(e.view&&(a=e.view),a||(a=n.parents(".view").length&&n.parents(".view")[0].f7View),!a&&e.openIn==="page")throw Error("Smart Select requires initialized View");return a}checkMaxLength(){const e=this,n=e.$containerEl;e.selectEl.selectedOptions.length>=e.maxLength?n.find('input[type="checkbox"]').each(a=>{a.checked?C(a).parents("li").removeClass("disabled"):C(a).parents("li").addClass("disabled")}):n.find(".disabled").removeClass("disabled")}formatValueTextContent(e){const n=this,a=n.formatValueText(e);a.includes("<")&&a.includes(">")?n.$valueEl.html(a):n.$valueEl.text(a)}formatValueText(e){const n=this;let a;return n.params.formatValueText?a=n.params.formatValueText.call(n,e,n):a=e.join(", "),a}setValueText(e){const n=this;let a=[];typeof e<"u"?Array.isArray(e)?a=e:a=[e]:n.$selectEl.find("option").each(r=>{const s=C(r);if(r.selected){const i=r.dataset?r.dataset.displayAs:s.data("display-value-as");i&&typeof i<"u"?a.push(i):a.push(r.textContent.trim())}}),n.params.setValueText&&n.formatValueTextContent(a)}getItemsData(){const e=this,n=e.app.theme,a=[];let r;return e.$selectEl.find("option").each(s=>{const i=C(s),o=i.dataset(),l=o.optionImage||e.params.optionImage,c=o.optionIcon||e.params.optionIcon,d=n==="ios"&&(o.optionIconIos||e.params.optionIconIos),u=n==="md"&&(o.optionIconMd||e.params.optionIconMd),p=o.inputIconPosition||e.params.inputIconPosition||"",f=l||c||d||u,h=o.optionColor;let m=o.optionClass||"";i[0].disabled&&(m+=" disabled");const b=i.parent("optgroup")[0],w=b&&b.label;let g=!1;b&&b!==r&&(g=!0,r=b,a.push({groupLabel:w,isLabel:g})),a.push({value:i[0].value,text:i[0].textContent.trim(),selected:i[0].selected,groupEl:b,groupLabel:w,image:l,icon:c,iconIos:d,iconMd:u,inputIconPosition:p,color:h,className:m,disabled:i[0].disabled,id:e.id,hasMedia:f,checkbox:e.inputType==="checkbox",radio:e.inputType==="radio",inputName:e.inputName,inputType:e.inputType})}),e.items=a,a}renderSearchbar(){const e=this;return e.params.renderSearchbar?e.params.renderSearchbar.call(e):T("form",{class:"searchbar"},T("div",{class:"searchbar-inner"},T("div",{class:"searchbar-input-wrap"},T("input",{type:"search",spellcheck:e.params.searchbarSpellcheck||"false",placeholder:e.params.searchbarPlaceholder}),T("i",{class:"searchbar-icon"}),T("span",{class:"input-clear-button"})),e.params.searchbarDisableButton&&T("span",{class:"searchbar-disable-button"},e.params.searchbarDisableText)))}renderItem(e,n){const a=this;if(a.params.renderItem)return a.params.renderItem.call(a,e,n);function r(o){return o===void 0&&(o=""),o.indexOf(":")>=0?o.split(":")[1]:""}function s(o){if(o===void 0&&(o=""),o.indexOf(":")>=0){let l=o.split(":")[0];return l==="f7"&&(l="f7-icons"),l==="material"&&(l="material-icons"),l}return o}let i;if(e.isLabel)i=`
          • ${e.groupLabel}
          • `;else{let o=e.selected,l;if(a.params.virtualList){const m=a.getValue();o=a.multiple?m.indexOf(e.value)>=0:m===e.value,a.multiple&&(l=a.multiple&&!o&&m.length===parseInt(a.maxLength,10))}const{icon:c,iconIos:d,iconMd:u}=e,p=c||d||u,f=r(c||d||u||""),h=s(c||d||u||"");i=T("li",{class:`${e.className||""}${l?" disabled":""}`},T("label",{class:`item-${e.inputType} ${e.inputIconPosition?`item-${e.inputType}-icon-${e.inputIconPosition}`:""} item-content`},T("input",{type:e.inputType,name:e.inputName,value:e.value,_checked:o}),T("i",{class:`icon icon-${e.inputType}`}),e.hasMedia&&T("div",{class:"item-media"},p&&T("i",{class:`icon ${h}`},f),e.image&&T("img",{src:e.image})),T("div",{class:"item-inner"},T("div",{class:`item-title${e.color?` text-color-${e.color}`:""}`},e.text))))}return i}renderItems(){const e=this;return e.params.renderItems?e.params.renderItems.call(e,e.items):` + `),o.append(S)),W(a,{knobs:x,labels:F,$barEl:k,$barActiveEl:$,$scaleEl:S}),o[0].f7Range=a;let I;const B={};let P,L,V,H,D,O,_,N;function G(){_=!0}function ee(oe){if(I||!a.params.draggableBar&&C(oe.target).closest(".range-knob").length===0)return;_=!1,B.x=oe.type==="touchstart"?oe.targetTouches[0].pageX:oe.pageX,B.y=oe.type==="touchstart"?oe.targetTouches[0].pageY:oe.pageY,oe.type==="touchstart"&&(N=oe.targetTouches[0].identifier),I=!0,P=void 0,L=o.offset(),V=L.left,H=L.top;let ce;a.vertical?(ce=(B.y-H)/a.rangeHeight,a.verticalReversed||(ce=1-ce)):a.app.rtl?ce=(V+a.rangeWidth-B.x)/a.rangeWidth:ce=(B.x-V)/a.rangeWidth;let pe=ce*(a.max-a.min)+a.min;a.dual?Math.abs(a.value[0]-pe){I&&D.addClass("range-knob-active-state")},70),a.on("change",G),a.setValue(pe,!0)}function X(oe){if(!I)return;let ce,pe;if(oe.type==="touchmove")for(let z=0;z"u"&&typeof pe>"u")return;if(typeof P>"u"&&!a.vertical&&(P=!!(P||Math.abs(pe-B.y)>Math.abs(ce-B.x))),P){I=!1;return}oe.preventDefault();let R;a.vertical?(R=(pe-H)/a.rangeHeight,a.verticalReversed||(R=1-R)):a.app.rtl?R=(V+a.rangeWidth-ce)/a.rangeWidth:R=(ce-V)/a.rangeWidth;let A=R*(a.max-a.min)+a.min;if(a.dual){let z,q;O===0?(z=A,q=a.value[1],z>q&&(q=z)):(z=a.value[0],q=A,q{let $=g*y[k];if(b){const M=g*y[k]-w/2;M<0&&($=w/2),M+w>g&&($=g-w/2)}E.css(v,`${$}px`),p&&f[k].text(e.formatLabel(u[k],f[k][0]))})}else{const y=(u-o)/(l-o);d.css(h?"height":"width",`${y*100}%`);let E=g*y;if(b){const k=g*y-w/2;k<0&&(E=w/2),k+w>g&&(E=g-w/2)}c[0].css(v,`${E}px`),p&&f[0].text(e.formatLabel(u,f[0][0]))}e.dual&&u.indexOf(o)>=0||!e.dual&&u===o?e.$el.addClass("range-slider-min"):e.$el.removeClass("range-slider-min"),e.dual&&u.indexOf(l)>=0||!e.dual&&u===l?e.$el.addClass("range-slider-max"):e.$el.removeClass("range-slider-max")}setValue(e,n){const a=this,{step:r,min:s,max:i}=a;let o,l;if(a.dual){l=[a.value[0],a.value[1]];let c=e;if(Array.isArray(c)||(c=[e,e]),e[0]>e[1]&&(c=[c[0],c[0]]),c=c.map(d=>Math.max(Math.min(Math.round(d/r)*r,i),s)),c[0]===a.value[0]&&c[1]===a.value[1])return a;c.forEach((d,u)=>{a.value[u]=d}),o=l[0]!==c[0]||l[1]!==c[1],a.layout()}else{l=a.value;const c=Math.max(Math.min(Math.round(e/r)*r,i),s);a.value=c,a.layout(),o=l!==c}return o&&(a.previousValue=l),o&&(a.$el.trigger("range:change",a.value),a.$inputEl&&!a.dual&&(a.$inputEl.val(a.value),n?a.$inputEl.trigger("input"):a.$inputEl.trigger("input change")),n||(a.$el.trigger("range:changed",a.value),a.emit("local::changed rangeChanged",a,a.value)),a.emit("local::change rangeChange",a,a.value)),a}getValue(){return this.value}formatLabel(e,n){const a=this;return a.params.formatLabel?a.params.formatLabel.call(a,e,n):e}formatScaleLabel(e){const n=this;return n.params.formatScaleLabel?n.params.formatScaleLabel.call(n,e):e}renderScale(){const e=this,{app:n,verticalReversed:a,vertical:r}=e,s=r?a?"top":"bottom":n.rtl?"right":"left";let i="";return Array.from({length:e.scaleSteps+1}).forEach((o,l)=>{const c=(e.max-e.min)/e.scaleSteps,d=e.min+c*l,u=(d-e.min)/(e.max-e.min);i+=`
            ${e.formatScaleLabel(d)}
            `,e.scaleSubSteps&&e.scaleSubSteps>1&&l{const h=c/e.scaleSubSteps,b=(d+h*(f+1)-e.min)/(e.max-e.min);i+=`
            `})}),i}updateScale(){const e=this;if(!e.scale||e.scaleSteps<1){e.$scaleEl&&e.$scaleEl.remove(),delete e.$scaleEl;return}e.$scaleEl||(e.$scaleEl=C('
            '),e.$el.append(e.$scaleEl)),e.$scaleEl.html(e.renderScale())}init(){const e=this;return e.calcSize(),e.layout(),e.attachEvents(),e}destroy(){let e=this;e.$el.trigger("range:beforedestroy"),e.emit("local::beforeDestroy rangeBeforeDestroy",e),delete e.$el[0].f7Range,e.detachEvents(),Ze(e),e=null}};const IC={name:"range",create(){const t=this;t.range=W(et({defaultSelector:".range-slider",constructor:Za,app:t,domProp:"f7Range"}),{getValue(e){e===void 0&&(e=".range-slider");const n=t.range.get(e);if(n)return n.getValue()},setValue(e,n){e===void 0&&(e=".range-slider");const a=t.range.get(e);if(a)return a.setValue(n)}})},static:{Range:Za},on:{tabMounted(t){const e=this;C(t).find(".range-slider-init").each(n=>new Za(e,{el:n}))},tabBeforeRemove(t){C(t).find(".range-slider-init").each(e=>{e.f7Range&&e.f7Range.destroy()})},pageInit(t){const e=this;t.$el.find(".range-slider-init").each(n=>new Za(e,{el:n}))},pageBeforeRemove(t){t.$el.find(".range-slider-init").each(e=>{e.f7Range&&e.f7Range.destroy()})}},vnode:{"range-slider-init":{insert(t){const e=t.elm;this.range.create({el:e})},destroy(t){const e=t.elm;e.f7Range&&e.f7Range.destroy()}}}};let $o=class extends Ue{constructor(e,n){super(n,[e]);const a=this,r={el:null,inputEl:null,valueEl:null,value:0,formatValue:null,step:1,min:0,max:100,watchInput:!0,autorepeat:!1,autorepeatDynamic:!1,wraps:!1,manualInputMode:!1,decimalPoint:4,buttonsEndInputMode:!0};a.useModulesParams(r),a.params=W(r,n),a.params.valuea.params.max&&(a.params.value=a.params.max);const s=a.params.el;if(!s)return a;const i=C(s);if(i.length===0)return a;if(i[0].f7Stepper)return i[0].f7Stepper;let o;if(a.params.inputEl?o=C(a.params.inputEl):i.find(".stepper-input-wrap").find("input, textarea").length&&(o=i.find(".stepper-input-wrap").find("input, textarea").eq(0)),o&&o.length){"step min max".split(" ").forEach(N=>{!n[N]&&o.attr(N)&&(a.params[N]=parseFloat(o.attr(N)))});const O=parseInt(a.params.decimalPoint,10);Number.isNaN(O)?a.params.decimalPoint=0:a.params.decimalPoint=O;const _=parseFloat(o.val());typeof n.value>"u"&&!Number.isNaN(_)&&(_||_===0)&&(a.params.value=_)}let l;a.params.valueEl?l=C(a.params.valueEl):i.find(".stepper-value").length&&(l=i.find(".stepper-value").eq(0));const c=i.find(".stepper-button-plus"),d=i.find(".stepper-button-minus"),{step:u,min:p,max:f,value:h,decimalPoint:m}=a.params;W(a,{app:e,$el:i,el:i[0],$buttonPlusEl:c,buttonPlusEl:c[0],$buttonMinusEl:d,buttonMinusEl:d[0],$inputEl:o,inputEl:o?o[0]:void 0,$valueEl:l,valueEl:l?l[0]:void 0,step:u,min:p,max:f,value:h,decimalPoint:m,typeModeChanged:!1}),i[0].f7Stepper=a;const b={};let w,g,v,y,E,k=null,$=!1,M=!1;function x(O,_,N,G,ee,X){clearTimeout(E),E=setTimeout(()=>{O===1&&(v=!0,$=!0),clearInterval(y),X(),y=setInterval(()=>{X()},ee),O<_&&x(O+1,_,N,G,ee/2,X)},O===1?N:G)}function F(O){if(w||M||(C(O.target).closest(c).length?k="increment":C(O.target).closest(d).length&&(k="decrement"),!k))return;b.x=O.type==="touchstart"?O.targetTouches[0].pageX:O.pageX,b.y=O.type==="touchstart"?O.targetTouches[0].pageY:O.pageY,w=!0,g=void 0;const _=a.params.autorepeatDynamic?4:1;x(1,_,500,1e3,300,()=>{a[k]()})}function S(O){if(!w||M)return;const _=O.type==="touchmove"?O.targetTouches[0].pageX:O.pageX,N=O.type==="touchmove"?O.targetTouches[0].pageY:O.pageY;typeof g>"u"&&!$&&(g=!!(g||Math.abs(N-b.y)>Math.abs(_-b.x)));const G=((_-b.x)**2+(N-b.y)**2)**.5;(g||G>20)&&(w=!1,clearTimeout(E),clearInterval(y))}function I(){clearTimeout(E),clearInterval(y),k=null,$=!1,w=!1}function B(){if(M){a.params.buttonsEndInputMode&&(M=!1,a.endTypeMode(!0));return}if(v){v=!1;return}a.decrement(!0)}function P(){if(M){a.params.buttonsEndInputMode&&(M=!1,a.endTypeMode(!0));return}if(v){v=!1;return}a.increment(!0)}function L(O){!O.target.readOnly&&a.params.manualInputMode&&(M=!0,typeof O.target.selectionStart=="number"&&(O.target.selectionStart=O.target.value.length,O.target.selectionEnd=O.target.value.length))}function V(O){(O.keyCode===13||O.which===13)&&(O.preventDefault(),M=!1,a.endTypeMode())}function H(){M=!1,a.endTypeMode(!0)}function D(O){if(M){a.typeValue(O.target.value);return}O.detail&&O.detail.sentByF7Stepper||a.setValue(O.target.value,!0)}return a.attachEvents=function(){d.on("click",B),c.on("click",P),a.params.watchInput&&o&&o.length&&(o.on("input",D),o.on("click",L),o.on("blur",H),o.on("keyup",V)),a.params.autorepeat&&(e.on("touchstart:passive",F),e.on("touchmove:active",S),e.on("touchend:passive",I))},a.detachEvents=function(){d.off("click",B),c.off("click",P),a.params.watchInput&&o&&o.length&&(o.off("input",D),o.off("click",L),o.off("blur",H),o.off("keyup",V))},a.useModules(),a.init(),a}minus(){return this.decrement()}plus(){return this.increment()}decrement(){const e=this;return e.setValue(e.value-e.step,!1,!0)}increment(){const e=this;return e.setValue(e.value+e.step,!1,!0)}setValue(e,n,a){const r=this,{step:s,min:i,max:o}=r,l=r.value;let c=Math.round(e/s)*s;if(r.params.wraps&&a?(c>o&&(c=i),c{const a=C(n).dataset();e.stepper.create(W({el:n},a||{}))})},tabBeforeRemove(t){C(t).find(".stepper-init").each(e=>{e.f7Stepper&&e.f7Stepper.destroy()})},pageInit(t){const e=this;t.$el.find(".stepper-init").each(n=>{const a=C(n).dataset();e.stepper.create(W({el:n},a||{}))})},pageBeforeRemove(t){t.$el.find(".stepper-init").each(e=>{e.f7Stepper&&e.f7Stepper.destroy()})}},vnode:{"stepper-init":{insert(t){const e=this,n=t.elm,a=C(n).dataset();e.stepper.create(W({el:n},a||{}))},destroy(t){const e=t.elm;e.f7Stepper&&e.f7Stepper.destroy()}}}},ts=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"ŒŒ"},{base:"oe",letters:"œœ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Rc={};for(let t=0;tRc[e]||e)}let xo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r=W({on:{}},e.params.smartSelect);a.useModulesParams(r),a.params=W({},r,n),a.app=e;const s=C(a.params.el).eq(0);if(s.length===0)return a;if(s[0].f7SmartSelect)return s[0].f7SmartSelect;const i=s.find("select").eq(0);if(i.length===0)return a;let o;a.params.setValueText&&(o=C(a.params.valueEl),o.length===0&&(o=s.find(".item-after")),o.length===0&&(o=C('
            '),o.insertAfter(s.find(".item-title"))));let l=n.url;l||(s.attr("href")&&s.attr("href")!=="#"?l=s.attr("href"):i.attr("name")&&(l=`${i.attr("name").toLowerCase()}-select/`)),l||(l=a.params.url);const c=i[0].multiple,d=c?"checkbox":"radio",u=Ir();W(a,{$el:s,el:s[0],$selectEl:i,selectEl:i[0],$valueEl:o,valueEl:o&&o[0],url:l,multiple:c,inputType:d,id:u,inputName:`${d}-${u}`,selectName:i.attr("name"),maxLength:i.attr("maxlength")||n.maxLength}),s[0].f7SmartSelect=a;function p(){a.open()}function f(){const m=a.$selectEl.val();a.$el.trigger("smartselect:change",m),a.emit("local::change smartSelectChange",a,m),a.vl&&a.vl.clearCache(),a.setValueText()}a.attachEvents=function(){s.on("click",p),s.on("change","select",f)},a.detachEvents=function(){s.off("click",p),s.off("change","select",f)};function h(){let m,b;const w=this,g=w.value;let v=[],y;if(w.type==="checkbox"){for(let E=0;EE.value===g)[0]),y=m.dataset?m.dataset.displayAs:C(m).data("display-as"),b=y&&typeof y<"u"?y:m.textContent,v=[b],a.selectEl.value=g;a.$selectEl.trigger("change"),a.params.setValueText&&a.formatValueTextContent(v),a.params.closeOnSelect&&a.inputType==="radio"&&a.close()}return a.attachInputsEvents=function(){a.$containerEl.on("change",'input[type="checkbox"], input[type="radio"]',h)},a.detachInputsEvents=function(){a.$containerEl.off("change",'input[type="checkbox"], input[type="radio"]',h)},a.useModules(),a.init(),a}setValue(e){const n=this;let a=e,r=[],s,i,o;if(n.multiple){Array.isArray(a)||(a=[a]);for(let l=0;l=0?s.selected=!0:s.selected=!1,s.selected&&(i=s.dataset?s.dataset.displayAs:C(s).data("display-value-as"),o=i&&typeof i<"u"?i:s.textContent,r.push(o.trim()))}else s=n.$selectEl.find(`option[value="${a}"]`)[0],s&&(i=s.dataset?s.dataset.displayAs:C(s).data("display-as"),o=i&&typeof i<"u"?i:s.textContent,r=[o]),n.selectEl.value=a;return n.params.setValueText&&n.formatValueTextContent(r),n.$selectEl.trigger("change"),n}unsetValue(){const e=this;e.params.setValueText&&e.formatValueTextContent([]),e.$selectEl.find("option").each(n=>{n.selected=!1,n.checked=!1}),e.$selectEl[0].value=null,e.$containerEl&&e.$containerEl.find(`input[name="${e.inputName}"][type="checkbox"], input[name="${e.inputName}"][type="radio"]`).prop("checked",!1),e.$selectEl.trigger("change")}getValue(){return this.$selectEl.val()}get view(){const{params:e,$el:n}=this;let a;if(e.view&&(a=e.view),a||(a=n.parents(".view").length&&n.parents(".view")[0].f7View),!a&&e.openIn==="page")throw Error("Smart Select requires initialized View");return a}checkMaxLength(){const e=this,n=e.$containerEl;e.selectEl.selectedOptions.length>=e.maxLength?n.find('input[type="checkbox"]').each(a=>{a.checked?C(a).parents("li").removeClass("disabled"):C(a).parents("li").addClass("disabled")}):n.find(".disabled").removeClass("disabled")}formatValueTextContent(e){const n=this,a=n.formatValueText(e);a.includes("<")&&a.includes(">")?n.$valueEl.html(a):n.$valueEl.text(a)}formatValueText(e){const n=this;let a;return n.params.formatValueText?a=n.params.formatValueText.call(n,e,n):a=e.join(", "),a}setValueText(e){const n=this;let a=[];typeof e<"u"?Array.isArray(e)?a=e:a=[e]:n.$selectEl.find("option").each(r=>{const s=C(r);if(r.selected){const i=r.dataset?r.dataset.displayAs:s.data("display-value-as");i&&typeof i<"u"?a.push(i):a.push(r.textContent.trim())}}),n.params.setValueText&&n.formatValueTextContent(a)}getItemsData(){const e=this,n=e.app.theme,a=[];let r;return e.$selectEl.find("option").each(s=>{const i=C(s),o=i.dataset(),l=o.optionImage||e.params.optionImage,c=o.optionIcon||e.params.optionIcon,d=n==="ios"&&(o.optionIconIos||e.params.optionIconIos),u=n==="md"&&(o.optionIconMd||e.params.optionIconMd),p=o.inputIconPosition||e.params.inputIconPosition||"",f=l||c||d||u,h=o.optionColor;let m=o.optionClass||"";i[0].disabled&&(m+=" disabled");const b=i.parent("optgroup")[0],w=b&&b.label;let g=!1;b&&b!==r&&(g=!0,r=b,a.push({groupLabel:w,isLabel:g})),a.push({value:i[0].value,text:i[0].textContent.trim(),selected:i[0].selected,groupEl:b,groupLabel:w,image:l,icon:c,iconIos:d,iconMd:u,inputIconPosition:p,color:h,className:m,disabled:i[0].disabled,id:e.id,hasMedia:f,checkbox:e.inputType==="checkbox",radio:e.inputType==="radio",inputName:e.inputName,inputType:e.inputType})}),e.items=a,a}renderSearchbar(){const e=this;return e.params.renderSearchbar?e.params.renderSearchbar.call(e):T("form",{class:"searchbar"},T("div",{class:"searchbar-inner"},T("div",{class:"searchbar-input-wrap"},T("input",{type:"search",spellcheck:e.params.searchbarSpellcheck||"false",placeholder:e.params.searchbarPlaceholder}),T("i",{class:"searchbar-icon"}),T("span",{class:"input-clear-button"})),e.params.searchbarDisableButton&&T("span",{class:"searchbar-disable-button"},e.params.searchbarDisableText)))}renderItem(e,n){const a=this;if(a.params.renderItem)return a.params.renderItem.call(a,e,n);function r(o){return o===void 0&&(o=""),o.indexOf(":")>=0?o.split(":")[1]:""}function s(o){if(o===void 0&&(o=""),o.indexOf(":")>=0){let l=o.split(":")[0];return l==="f7"&&(l="f7-icons"),l==="material"&&(l="material-icons"),l}return o}let i;if(e.isLabel)i=`
          • ${e.groupLabel}
          • `;else{let o=e.selected,l;if(a.params.virtualList){const m=a.getValue();o=a.multiple?m.indexOf(e.value)>=0:m===e.value,a.multiple&&(l=a.multiple&&!o&&m.length===parseInt(a.maxLength,10))}const{icon:c,iconIos:d,iconMd:u}=e,p=c||d||u,f=r(c||d||u||""),h=s(c||d||u||"");i=T("li",{class:`${e.className||""}${l?" disabled":""}`},T("label",{class:`item-${e.inputType} ${e.inputIconPosition?`item-${e.inputType}-icon-${e.inputIconPosition}`:""} item-content`},T("input",{type:e.inputType,name:e.inputName,value:e.value,_checked:o}),T("i",{class:`icon icon-${e.inputType}`}),e.hasMedia&&T("div",{class:"item-media"},p&&T("i",{class:`icon ${h}`},f),e.image&&T("img",{src:e.image})),T("div",{class:"item-inner"},T("div",{class:`item-title${e.color?` text-color-${e.color}`:""}`},e.text))))}return i}renderItems(){const e=this;return e.params.renderItems?e.params.renderItems.call(e,e.items):` ${e.items.map((a,r)=>`${e.renderItem(a,r)}`).join("")} - `}renderPage(){const e=this;if(e.params.renderPage)return e.params.renderPage.call(e,e.items);let n=e.params.pageTitle;if(typeof n>"u"){const r=e.$el.find(".item-title");n=r.length?r.text().trim():""}const a=e.params.cssClass;return T("div",{class:`page smart-select-page ${a}`,"data-name":"smart-select-page","data-select-name":e.selectName},T("div",{class:`navbar ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},T("div",{class:"navbar-bg"}),T("div",{class:`navbar-inner sliding ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},T("div",{class:"left"},T("a",{class:"link back"},T("i",{class:"icon icon-back"}),T("span",{class:"if-not-md"},e.params.pageBackLinkText))),n&&T("div",{class:"title"},n),e.params.searchbar&&T("div",{class:"subnavbar"},e.renderSearchbar()))),e.params.searchbar&&T("div",{class:"searchbar-backdrop"}),T("div",{class:"page-content"},T("div",{class:`list list-outline-ios list-strong-ios list-dividers-ios smart-select-list-${e.id} ${e.params.virtualList?" virtual-list":""} ${e.params.formColorTheme?`color-${e.params.formColorTheme}`:""}`},T("ul",null,!e.params.virtualList&&e.renderItems(e.items)))))}renderPopup(){const e=this;if(e.params.renderPopup)return e.params.renderPopup.call(e,e.items);let n=e.params.pageTitle;if(typeof n>"u"){const r=e.$el.find(".item-title");n=r.length?r.text().trim():""}const a=e.params.cssClass||"";return T("div",{class:`popup smart-select-popup ${a} ${e.params.popupTabletFullscreen?"popup-tablet-fullscreen":""}`,"data-select-name":e.selectName},T("div",{class:"view"},T("div",{class:`page smart-select-page ${e.params.searchbar?"page-with-subnavbar":""}`,"data-name":"smart-select-page"},T("div",{class:`navbar ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},T("div",{class:"navbar-bg"}),T("div",{class:"navbar-inner sliding"},n&&T("div",{class:"title"},n),T("div",{class:"right"},T("a",{class:"link popup-close","data-popup":`.smart-select-popup[data-select-name='${e.selectName}']`},e.params.popupCloseLinkText)),e.params.searchbar&&T("div",{class:"subnavbar"},e.renderSearchbar()))),e.params.searchbar&&T("div",{class:"searchbar-backdrop"}),T("div",{class:"page-content"},T("div",{class:`list list-outline-ios list-strong-ios list-dividers-ios smart-select-list-${e.id} ${e.params.virtualList?" virtual-list":""} ${e.params.formColorTheme?`color-${e.params.formColorTheme}`:""}`},T("ul",null,!e.params.virtualList&&e.renderItems(e.items)))))))}renderSheet(){const e=this;if(e.params.renderSheet)return e.params.renderSheet.call(e,e.items);const n=e.params.cssClass;return T("div",{class:`sheet-modal smart-select-sheet ${n}`,"data-select-name":e.selectName},T("div",{class:`toolbar toolbar-top ${e.params.toolbarColorTheme?`color-${e.params.toolbarColorTheme}`:""}`},T("div",{class:"toolbar-inner"},T("div",{class:"left"}),T("div",{class:"right"},T("a",{class:"link sheet-close"},e.params.sheetCloseLinkText)))),T("div",{class:"sheet-modal-inner"},T("div",{class:"page-content"},T("div",{class:`list list-strong-ios list-dividers-ios smart-select-list-${e.id} ${e.params.virtualList?" virtual-list":""} ${e.params.formColorTheme?`color-${e.params.formColorTheme}`:""}`},T("ul",null,!e.params.virtualList&&e.renderItems(e.items))))))}renderPopover(){const e=this;if(e.params.renderPopover)return e.params.renderPopover.call(e,e.items);const n=e.params.cssClass;return T("div",{class:`popover smart-select-popover ${n}`,"data-select-name":e.selectName},T("div",{class:"popover-inner"},T("div",{class:`list list-strong-ios list-dividers-ios smart-select-list-${e.id} ${e.params.virtualList?" virtual-list":""} ${e.params.formColorTheme?`color-${e.params.formColorTheme}`:""}`},T("ul",null,!e.params.virtualList&&e.renderItems(e.items)))))}scrollToSelectedItem(){const e=this,{params:n,$containerEl:a}=e;if(!e.opened)return e;if(n.virtualList){let r;e.vl.items.forEach((s,i)=>{typeof r>"u"&&s.selected&&(r=i)}),typeof r<"u"&&e.vl.scrollToItem(r)}else{const r=a.find("input:checked").parents("li");if(!r.length)return e;const s=a.find(".page-content, .popover-inner");if(!s.length)return e;s.scrollTop(r.offset().top-s.offset().top-parseInt(s.css("padding-top"),10))}return e}onOpen(e,n){const a=this,r=a.app,s=C(n);if(a.$containerEl=s,a.openedIn=e,a.opened=!0,a.params.virtualList&&(a.vl=r.virtualList.create({el:s.find(".virtual-list"),items:a.items,renderItem:a.renderItem.bind(a),height:a.params.virtualListHeight,searchByItem(i,o){return!!(o.text&&ir(o.text).toLowerCase().indexOf(i.trim().toLowerCase())>=0)}})),a.params.scrollToSelectedItem&&a.scrollToSelectedItem(),a.params.searchbar){let i=s.find(".searchbar");if(e==="page"&&r.theme==="ios"&&(i=C(r.navbar.getElByPage(s)).find(".searchbar")),a.params.appendSearchbarNotFound&&(e==="page"||e==="popup")){let l=null;typeof a.params.appendSearchbarNotFound=="string"?l=C(`
            ${a.params.appendSearchbarNotFound}
            `):typeof a.params.appendSearchbarNotFound=="boolean"?l=C('
            Nothing found
            '):l=a.params.appendSearchbarNotFound,l&&s.find(".page-content").append(l[0])}const o=W({el:i,backdropEl:s.find(".searchbar-backdrop"),searchContainer:`.smart-select-list-${a.id}`,searchIn:".item-title"},typeof a.params.searchbar=="object"?a.params.searchbar:{});a.searchbar=r.searchbar.create(o)}a.maxLength&&a.checkMaxLength(),a.params.closeOnSelect&&a.$containerEl.find(`input[type="radio"][name="${a.inputName}"]:checked`).parents("label").once("click",()=>{a.close()}),a.attachInputsEvents(),a.$el.trigger("smartselect:open"),a.emit("local::open smartSelectOpen",a)}onOpened(){const e=this;e.$el.trigger("smartselect:opened"),e.emit("local::opened smartSelectOpened",e)}onClose(){const e=this;e.destroyed||(e.vl&&e.vl.destroy&&(e.vl.destroy(),e.vl=null,delete e.vl),e.searchbar&&e.searchbar.destroy&&(e.searchbar.destroy(),e.searchbar=null,delete e.searchbar),e.detachInputsEvents(),e.$el.trigger("smartselect:close"),e.emit("local::close smartSelectClose",e))}onClosed(){const e=this;e.destroyed||(e.opened=!1,e.$containerEl=null,delete e.$containerEl,e.$el.trigger("smartselect:closed"),e.emit("local::closed smartSelectClosed",e))}openPage(){const e=this;if(e.opened)return e;e.getItemsData();const n=e.renderPage(e.items);return e.view.router.navigate({url:e.url,route:{content:n,path:e.url,on:{pageBeforeIn(a,r){e.onOpen("page",r.el)},pageAfterIn(a,r){e.onOpened("page",r.el)},pageBeforeOut(a,r){e.onClose("page",r.el)},pageAfterOut(a,r){e.onClosed("page",r.el)}}}}),e}openPopup(){const e=this;if(e.opened)return e;e.getItemsData();const a={content:e.renderPopup(e.items),push:e.params.popupPush,swipeToClose:e.params.popupSwipeToClose,closeByBackdropClick:e.params.closeByBackdropClick,on:{popupOpen(r){e.onOpen("popup",r.el)},popupOpened(r){e.onOpened("popup",r.el)},popupClose(r){e.onClose("popup",r.el)},popupClosed(r){e.onClosed("popup",r.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:a}}):e.modal=e.app.popup.create(a).open(),e}openSheet(){const e=this;if(e.opened)return e;e.getItemsData();const a={content:e.renderSheet(e.items),backdrop:e.params.sheetBackdrop,scrollToEl:e.$el,closeByOutsideClick:!0,push:e.params.sheetPush,swipeToClose:e.params.sheetSwipeToClose,closeByBackdropClick:e.params.closeByBackdropClick,on:{sheetOpen(r){e.onOpen("sheet",r.el)},sheetOpened(r){e.onOpened("sheet",r.el)},sheetClose(r){e.onClose("sheet",r.el)},sheetClosed(r){e.onClosed("sheet",r.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,sheet:a}}):e.modal=e.app.sheet.create(a).open(),e}openPopover(){const e=this;if(e.opened)return e;e.getItemsData();const a={content:e.renderPopover(e.items),targetEl:e.$el,closeByBackdropClick:e.params.closeByBackdropClick,on:{popoverOpen(r){e.onOpen("popover",r.el)},popoverOpened(r){e.onOpened("popover",r.el)},popoverClose(r){e.onClose("popover",r.el)},popoverClosed(r){e.onClosed("popover",r.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popover:a}}):e.modal=e.app.popover.create(a).open(),e}open(e){const n=this;if(n.opened)return n;let a=!1;function r(){a=!0}if(n.$el&&n.$el.trigger("smartselect:beforeopen",{prevent:r}),n.emit("local::beforeOpen smartSelectBeforeOpen",n,r),a)return n;const s=e||n.params.openIn;return n[`open${s.split("").map((i,o)=>o===0?i.toUpperCase():i).join("")}`](),n}close(){const e=this;return e.opened&&(e.params.routableModals&&e.view||e.openedIn==="page"?e.view.router.back():(e.modal.once("modalClosed",()=>{lt(()=>{e.destroyed||(e.modal.destroy(),delete e.modal)})}),e.modal.close())),e}init(){const e=this;e.attachEvents(),e.setValueText()}destroy(){const e=this;e.emit("local::beforeDestroy smartSelectBeforeDestroy",e),e.$el.trigger("smartselect:beforedestroy"),e.detachEvents(),delete e.$el[0].f7SmartSelect,Ze(e),e.destroyed=!0}};const IC={name:"smartSelect",params:{smartSelect:{el:void 0,valueEl:void 0,setValueText:!0,formatValueText:null,openIn:"page",popupPush:!1,popupSwipeToClose:void 0,sheetPush:!1,sheetSwipeToClose:void 0,sheetBackdrop:!1,pageTitle:void 0,pageBackLinkText:"Back",popupCloseLinkText:"Close",popupTabletFullscreen:!1,closeByBackdropClick:!0,sheetCloseLinkText:"Done",searchbar:!1,searchbarPlaceholder:"Search",searchbarDisableText:"Cancel",searchbarDisableButton:!0,searchbarSpellcheck:!1,closeOnSelect:!1,virtualList:!1,virtualListHeight:void 0,scrollToSelectedItem:!1,formColorTheme:void 0,navbarColorTheme:void 0,routableModals:!1,url:"select/",inputIconPosition:"start",cssClass:"",renderPage:void 0,renderPopup:void 0,renderSheet:void 0,renderPopover:void 0,renderItems:void 0,renderItem:void 0,renderSearchbar:void 0}},static:{SmartSelect:xo},create(){const t=this;t.smartSelect=W(et({defaultSelector:".smart-select",constructor:xo,app:t,domProp:"f7SmartSelect"}),{open(e){const n=t.smartSelect.get(e);if(n&&n.open)return n.open()},close(e){const n=t.smartSelect.get(e);if(n&&n.close)return n.close()}})},on:{tabMounted(t){const e=this;C(t).find(".smart-select-init").each(n=>{e.smartSelect.create(W({el:n},C(n).dataset()))})},tabBeforeRemove(t){C(t).find(".smart-select-init").each(e=>{e.f7SmartSelect&&e.f7SmartSelect.destroy&&e.f7SmartSelect.destroy()})},pageInit(t){const e=this;t.$el.find(".smart-select-init").each(n=>{e.smartSelect.create(W({el:n},C(n).dataset()))})},pageBeforeRemove(t){t.$el.find(".smart-select-init").each(e=>{e.f7SmartSelect&&e.f7SmartSelect.destroy&&e.f7SmartSelect.destroy()})}},clicks:{".smart-select":function(e,n){const a=this;e[0].f7SmartSelect||a.smartSelect.create(W({el:e},n)).open()}},vnode:{"smart-select-init":{insert(t){const e=this,n=t.elm;e.smartSelect.create(W({el:n},C(n).dataset()))},destroy(t){const e=t.elm;e.f7SmartSelect&&e.f7SmartSelect.destroy&&e.f7SmartSelect.destroy()}}}},OC={name:"grid"};let So=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this;a.params=W({},e.params.calendar,n);let r;if(a.params.containerEl&&(r=C(a.params.containerEl),r.length===0))return a;let s;a.params.inputEl&&(s=C(a.params.inputEl));const i=a.params.direction==="horizontal";let o=1;i&&(o=e.rtl?-1:1),W(a,{app:e,$containerEl:r,containerEl:r&&r[0],inline:r&&r.length>0,$inputEl:s,inputEl:s&&s[0],initialized:!1,opened:!1,url:a.params.url,isHorizontal:i,inverter:o,animating:!1,allowTouchMove:!0,hasTimePicker:a.params.timePicker&&!a.params.rangePicker&&!a.params.multiple}),a.dayFormatter=E=>new Intl.DateTimeFormat(a.params.locale,{day:"numeric"}).format(E).replace(/日/,""),a.monthFormatter=E=>new Intl.DateTimeFormat(a.params.locale,{month:"long"}).format(E),a.yearFormatter=E=>new Intl.DateTimeFormat(a.params.locale,{year:"numeric"}).format(E),a.timeSelectorFormatter=E=>new Intl.DateTimeFormat(a.params.locale,a.params.timePickerFormat).format(E);const l=a.timeSelectorFormatter(new Date).toLowerCase();a.is12HoursFormat=l.indexOf("pm")>=0||l.indexOf("am")>=0;let{monthNames:c,monthNamesShort:d,dayNames:u,dayNamesShort:p}=a.params;const{monthNamesIntl:f,monthNamesShortIntl:h,dayNamesIntl:m,dayNamesShortIntl:b}=a.getIntlNames();c==="auto"&&(c=f),d==="auto"&&(d=h),u==="auto"&&(u=m),p==="auto"&&(p=b),W(a,{monthNames:c,monthNamesShort:d,dayNames:u,dayNamesShort:p});function w(){a.open()}function g(E){E.preventDefault()}function v(){a.setValue([]),a.opened&&a.update()}function y(E){const k=C(E.target);a.destroyed||!a.params||a.isPopover()||!a.opened||a.closing||k.closest('[class*="backdrop"]').length||a.monthPickerPopover||a.yearPickerPopover||a.timePickerPopover||(s&&s.length>0?k[0]!==s[0]&&k.closest(".sheet-modal, .calendar-modal").length===0&&a.close():C(E.target).closest(".sheet-modal, .calendar-modal").length===0&&a.close())}return W(a,{attachInputEvents(){a.$inputEl.on("click",w),a.$inputEl.on("input:clear",v),a.params.inputReadOnly&&(a.$inputEl.on("focus mousedown",g),a.$inputEl[0]&&(a.$inputEl[0].f7ValidateReadonly=!0))},detachInputEvents(){a.$inputEl.off("click",w),a.$inputEl.off("input:clear",v),a.params.inputReadOnly&&(a.$inputEl.off("focus mousedown",g),a.$inputEl[0]&&delete a.$inputEl[0].f7ValidateReadonly)},attachHtmlEvents(){e.on("click",y)},detachHtmlEvents(){e.off("click",y)}}),a.attachCalendarEvents=function(){let k=!0,$,M,x,F,S,I,B,P,L,V,H,D,O,_;const{$el:N,$wrapperEl:G}=a;function ee(z){M||$||!z.isTrusted||($=!0,x=z.type==="touchstart"?z.targetTouches[0].pageX:z.pageX,S=x,F=z.type==="touchstart"?z.targetTouches[0].pageY:z.pageY,I=F,B=new Date().getTime(),D=0,k=!0,_=void 0,L=a.monthsTranslate)}function X(z){if(!$||!z.isTrusted)return;const{isHorizontal:q}=a;if(S=z.type==="touchmove"?z.targetTouches[0].pageX:z.pageX,I=z.type==="touchmove"?z.targetTouches[0].pageY:z.pageY,typeof _>"u"&&(_=!!(_||Math.abs(I-F)>Math.abs(S-x))),q&&_||!a.allowTouchMove){$=!1;return}if(z.preventDefault(),a.animating){$=!1;return}k=!1,M||(M=!0,V=G[0].offsetWidth,H=G[0].offsetHeight,G.transition(0)),O=q?S-x:I-F,D=O/(q?V:H),L=(a.monthsTranslate*a.inverter+D)*100,G.transform(`translate3d(${q?L:0}%, ${q?0:L}%, 0)`)}function se(z){if(!$||!M||!z.isTrusted){$=!1,M=!1;return}$=!1,M=!1,P=new Date().getTime(),P-B<300?Math.abs(O)<10?a.resetMonth():O>=10?e.rtl?a.nextMonth():a.prevMonth():e.rtl?a.prevMonth():a.nextMonth():D<=-.5?e.rtl?a.prevMonth():a.nextMonth():D>=.5?e.rtl?a.nextMonth():a.prevMonth():a.resetMonth(),setTimeout(()=>{k=!0},100)}function ne(z){if(!k)return;let q=C(z.target).parents(".calendar-day");if(q.length===0&&C(z.target).hasClass("calendar-day")&&(q=C(z.target)),q.length===0||q.hasClass("calendar-day-disabled"))return;a.params.rangePicker||(q.hasClass("calendar-day-next")&&a.nextMonth(),q.hasClass("calendar-day-prev")&&a.prevMonth());const U=parseInt(q.attr("data-year"),10),K=parseInt(q.attr("data-month"),10),j=parseInt(q.attr("data-day"),10);if(a.emit("local::dayClick calendarDayClick",a,q[0],U,K,j),!q.hasClass("calendar-day-selected")||a.params.multiple||a.params.rangePicker){const Q=new Date(U,K,j,0,0,0);a.hasTimePicker&&(a.value&&a.value[0]?Q.setHours(a.value[0].getHours(),a.value[0].getMinutes()):Q.setHours(new Date().getHours(),new Date().getMinutes())),a.addValue(Q)}a.params.closeOnSelect&&(a.params.rangePicker&&a.value.length===2||!a.params.rangePicker)&&a.close()}function ie(){a.nextMonth()}function le(){a.prevMonth()}function be(){a.nextYear()}function oe(){a.prevYear()}function ce(){a.openMonthPicker()}function pe(){a.openYearPicker()}function R(){a.openTimePicker()}const A=e.touchEvents.start==="touchstart"&&Xe().passiveListener?{passive:!0,capture:!1}:!1;N.find(".calendar-prev-month-button").on("click",le),N.find(".calendar-next-month-button").on("click",ie),N.find(".calendar-prev-year-button").on("click",oe),N.find(".calendar-next-year-button").on("click",be),a.params.monthPicker&&N.find(".current-month-value").on("click",ce),a.params.yearPicker&&N.find(".current-year-value").on("click",pe),a.hasTimePicker&&N.find(".calendar-time-selector a").on("click",R),G.on("click",ne),a.params.touchMove&&(G.on(e.touchEvents.start,ee,A),e.on("touchmove:active",X),e.on("touchend:passive",se)),a.detachCalendarEvents=function(){N.find(".calendar-prev-month-button").off("click",le),N.find(".calendar-next-month-button").off("click",ie),N.find(".calendar-prev-year-button").off("click",oe),N.find(".calendar-next-year-button").off("click",be),a.params.monthPicker&&N.find(".current-month-value").off("click",ce),a.params.yearPicker&&N.find(".current-year-value").off("click",pe),a.hasTimePicker&&N.find(".calendar-time-selector a").off("click",R),G.off("click",ne),a.params.touchMove&&(G.off(e.touchEvents.start,ee,A),e.off("touchmove:active",X),e.off("touchend:passive",se))}},a.init(),a}get view(){const{$inputEl:e,app:n,params:a}=this;let r;return a.view?r=a.view:e&&(r=e.parents(".view").length&&e.parents(".view")[0].f7View),r||(r=n.views.main),r}getIntlNames(){const e=this,n=e.params.locale,a=[],r=[],s=[],i=[],o=new Intl.DateTimeFormat(n,{month:"long"}),l=new Intl.DateTimeFormat(n,{month:"short"}),c=new Intl.DateTimeFormat(n,{weekday:"long"}),d=new Intl.DateTimeFormat(n,{weekday:"short"});let u,p,f;for(let m=0;m<24;m+=1){const b=new Date().setMonth(m,1),w=e.yearFormatter(b);u&&w!==u&&(p&&(f=!0),p=!0,u=w),u||(u=w),p&&u===w&&!f&&(a.push(o.format(b)),r.push(l.format(b)))}const h=new Date().getDay();for(let m=0;m<7;m+=1){const b=new Date().getTime()+(m-h)*24*60*60*1e3;s.push(c.format(b)),i.push(d.format(b))}return{monthNamesIntl:a,monthNamesShortIntl:r,dayNamesIntl:s,dayNamesShortIntl:i}}normalizeDate(e){const n=this,a=new Date(e);return n.hasTimePicker?new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes()):new Date(a.getFullYear(),a.getMonth(),a.getDate())}normalizeValues(e){const n=this;let a=[];return e&&Array.isArray(e)&&(a=e.map(r=>n.normalizeDate(r))),a}initInput(){const e=this;e.$inputEl&&e.params.inputReadOnly&&e.$inputEl.prop("readOnly",!0)}isPopover(){const e=this,{app:n,modal:a,params:r}=e,s=Ie();if(r.openIn==="sheet"||a&&a.type!=="popover")return!1;if(!e.inline&&e.inputEl){if(r.openIn==="popover")return!0;if(s.ios)return!!s.ipad;if(n.width>=768)return!0}return!1}formatDate(e){const n=this,a=new Date(e),r=a.getFullYear(),s=a.getMonth(),i=s+1,o=a.getDate(),l=a.getDay(),{monthNames:c,monthNamesShort:d,dayNames:u,dayNamesShort:p}=n,{dateFormat:f,locale:h}=n.params;function m(w){return w<10?`0${w}`:w}if(typeof f=="string"){const w={yyyy:r,yy:String(r).substring(2),mm:m(i),m:i,MM:c[s],M:d[s],dd:m(o),d:o,DD:u[l],D:p[l]};if(n.params.timePicker){const v=a.getHours(),y=a.getMinutes(),E=a.getSeconds();let k=v;v>12&&(k=v-12),v===0&&(k=12);const $=v>=12&&v!==0?"pm":"am";Object.assign(w,{HH:m(v),H:v,hh:m(k),h:k,ss:m(E),s:E,":mm":m(y),":m":y,a:$,A:$.toUpperCase()})}const g=new RegExp(Object.keys(w).map(v=>`(${v})`).join("|"),"g");return f.replace(g,v=>v in w?w[v]:v)}return typeof f=="function"?f(a):new Intl.DateTimeFormat(h,f).format(a)}formatValue(){const e=this,{value:n}=e;return e.params.formatValue?e.params.formatValue.call(e,n):n.map(a=>e.formatDate(a)).join(e.params.rangePicker?" - ":", ")}addValue(e){const n=this,{multiple:a,rangePicker:r,rangePickerMinDays:s,rangePickerMaxDays:i}=n.params;if(a){n.value||(n.value=[]);let o;for(let l=0;l"u"?n.value.push(e):n.value.splice(o,1),n.updateValue()}else r?(n.value||(n.value=[]),(n.value.length===2||n.value.length===0)&&(n.value=[]),n.value.length===0||Math.abs(n.value[0].getTime()-e.getTime())>=(s-1)*60*60*24*1e3&&(i===0||Math.abs(n.value[0].getTime()-e.getTime())<=(i-1)*60*60*24*1e3)?n.value.push(e):n.value=[],n.value.sort((o,l)=>o-l),n.updateValue()):(n.value=[e],n.updateValue())}setValue(e){const n=this,a=n.value;if(Array.isArray(a)&&Array.isArray(e)&&a.length===e.length){let r=!0;if(a.forEach((s,i)=>{s!==e[i]&&(r=!1)}),r)return}n.value=e,n.updateValue()}getValue(){return this.value}updateValue(e){const n=this,{$el:a,$wrapperEl:r,$inputEl:s,value:i,params:o}=n;let l;if(a&&a.length>0){r.find(".calendar-day-selected").removeClass("calendar-day-selected calendar-day-selected-range calendar-day-selected-left calendar-day-selected-right");let c;if(o.rangePicker&&i.length===2){const d=new Date(i[0]).getTime(),u=new Date(i[1]).getTime();for(l=d;l<=u;l+=24*60*60*1e3){c=new Date(l);let p="calendar-day-selected";d!==u&&(l!==d&&l!==u&&(p+=" calendar-day-selected-range"),l===d&&(p+=" calendar-day-selected-left"),l===u&&(p+=" calendar-day-selected-right")),r.find(`.calendar-day[data-date="${c.getFullYear()}-${c.getMonth()}-${c.getDate()}"]`).addClass(p)}c=new Date(d),r.find(`.calendar-day[data-date="${c.getFullYear()}-${c.getMonth()}-${c.getDate()}"]`).removeClass("calendar-day-selected-range").addClass("calendar-day-selected calendar-day-selected-left"),c=new Date(u),r.find(`.calendar-day[data-date="${c.getFullYear()}-${c.getMonth()}-${c.getDate()}"]`).removeClass("calendar-day-selected-range").addClass("calendar-day-selected calendar-day-selected-right")}else for(l=0;l0&&n.hasTimePicker&&a.find(".calendar-time-selector a").text(i&&i.length?n.timeSelectorFormatter(i[0]):n.params.timePickerPlaceholder),s&&s.length||o.header){const c=n.formatValue(i);o.header&&a&&a.length&&a.find(".calendar-selected-date").text(c),s&&s.length&&!e&&(s.val(c),s.trigger("change"))}}updateCurrentMonthYear(e){const n=this,{$months:a,$el:r,monthNames:s}=n;let i,o;typeof e>"u"?(n.currentMonth=parseInt(a.eq(1).attr("data-month"),10),n.currentYear=parseInt(a.eq(1).attr("data-year"),10),i=a.eq(1).attr("data-locale-month"),o=a.eq(1).attr("data-locale-year")):(n.currentMonth=parseInt(a.eq(e==="next"?a.length-1:0).attr("data-month"),10),n.currentYear=parseInt(a.eq(e==="next"?a.length-1:0).attr("data-year"),10),i=a.eq(e==="next"?a.length-1:0).attr("data-locale-month"),o=a.eq(e==="next"?a.length-1:0).attr("data-locale-year")),r.find(".current-month-value").text(s[i]),r.find(".current-year-value").text(o)}update(){const e=this,{currentYear:n,currentMonth:a,$wrapperEl:r}=e,s=new Date(n,a),i=e.renderMonth(s,"prev"),o=e.renderMonth(s),l=e.renderMonth(s,"next");r.transition(0).html(`${i}${o}${l}`).transform("translate3d(0,0,0)"),e.$months=r.find(".calendar-month"),e.monthsTranslate=0,e.setMonthsTranslate(),e.$months.each(c=>{e.emit("local::monthAdd calendarMonthAdd",c)})}onMonthChangeStart(e){const n=this,{$months:a,currentYear:r,currentMonth:s}=n;n.updateCurrentMonthYear(e),a.removeClass("calendar-month-current calendar-month-prev calendar-month-next");const i=e==="next"?a.length-1:0;a.eq(i).addClass("calendar-month-current"),a.eq(e==="next"?i-1:i+1).addClass(e==="next"?"calendar-month-prev":"calendar-month-next"),n.emit("local::monthYearChangeStart calendarMonthYearChangeStart",n,r,s)}onMonthChangeEnd(e,n){const a=this,{currentYear:r,currentMonth:s,$wrapperEl:i,monthsTranslate:o}=a;a.animating=!1;let l,c,d;i.find(".calendar-month:not(.calendar-month-prev):not(.calendar-month-current):not(.calendar-month-next)").remove(),typeof e>"u"&&(e="next",n=!0),n?(i.find(".calendar-month-next, .calendar-month-prev").remove(),c=a.renderMonth(new Date(r,s),"prev"),l=a.renderMonth(new Date(r,s),"next")):d=a.renderMonth(new Date(r,s),e),(e==="next"||n)&&i.append(d||l),(e==="prev"||n)&&i.prepend(d||c);const u=i.find(".calendar-month");a.$months=u,a.setMonthsTranslate(o),a.emit("local::monthAdd calendarMonthAdd",a,e==="next"?u.eq(u.length-1)[0]:u.eq(0)[0]),a.emit("local::monthYearChangeEnd calendarMonthYearChangeEnd",a,r,s)}setMonthsTranslate(e){const n=this,{$months:a,isHorizontal:r,inverter:s}=n;e=e||n.monthsTranslate||0,typeof n.monthsTranslate>"u"&&(n.monthsTranslate=e),a.removeClass("calendar-month-current calendar-month-prev calendar-month-next");const i=-(e+1)*100*s,o=-e*100*s,l=-(e-1)*100*s;a.eq(0).transform(`translate3d(${r?i:0}%, ${r?0:i}%, 0)`).addClass("calendar-month-prev"),a.eq(1).transform(`translate3d(${r?o:0}%, ${r?0:o}%, 0)`).addClass("calendar-month-current"),a.eq(2).transform(`translate3d(${r?l:0}%, ${r?0:l}%, 0)`).addClass("calendar-month-next")}nextMonth(e){const n=this,{params:a,$wrapperEl:r,inverter:s,isHorizontal:i}=n;(typeof e>"u"||typeof e=="object")&&(e="",a.animate||(e=0));const o=parseInt(n.$months.eq(n.$months.length-1).attr("data-month"),10),l=parseInt(n.$months.eq(n.$months.length-1).attr("data-year"),10),d=new Date(l,o).getTime(),u=!n.animating;if(a.maxDate&&d>new Date(a.maxDate).getTime()){n.resetMonth();return}if(n.monthsTranslate-=1,o===n.currentMonth){const f=-n.monthsTranslate*100*s,h=C(n.renderMonth(d,"next")).transform(`translate3d(${i?f:0}%, ${i?0:f}%, 0)`).addClass("calendar-month-next");r.append(h[0]),n.$months=r.find(".calendar-month"),n.emit("local::monthAdd calendarMonthAdd",n.$months.eq(n.$months.length-1)[0])}n.animating=!0,n.onMonthChangeStart("next");const p=n.monthsTranslate*100*s;r.transition(e).transform(`translate3d(${i?p:0}%, ${i?0:p}%, 0)`),u&&r.transitionEnd(()=>{n.onMonthChangeEnd("next")}),a.animate||n.onMonthChangeEnd("next")}prevMonth(e){const n=this,{params:a,$wrapperEl:r,inverter:s,isHorizontal:i}=n;(typeof e>"u"||typeof e=="object")&&(e="",a.animate||(e=0));const o=parseInt(n.$months.eq(0).attr("data-month"),10),l=parseInt(n.$months.eq(0).attr("data-year"),10),d=new Date(l,o+1,-1).getTime(),u=!n.animating;if(a.minDate){let f=new Date(a.minDate);if(f=new Date(f.getFullYear(),f.getMonth(),1),d{n.onMonthChangeEnd("prev")}),a.animate||n.onMonthChangeEnd("prev")}resetMonth(e){e===void 0&&(e="");const n=this,{$wrapperEl:a,inverter:r,isHorizontal:s,monthsTranslate:i}=n,o=i*100*r;a.transition(e).transform(`translate3d(${s?o:0}%, ${s?0:o}%, 0)`)}setYearMonth(e,n,a){const r=this,{params:s,isHorizontal:i,$wrapperEl:o,inverter:l}=r;typeof e>"u"&&(e=r.currentYear),typeof n>"u"&&(n=r.currentMonth),(typeof a>"u"||typeof a=="object")&&(a="",s.animate||(a=0));let c;if(enew Date(s.maxDate).getTime())return!1;if(s.minDate){let w=new Date(s.minDate);if(w=new Date(w.getFullYear(),w.getMonth(),1),cd?"next":"prev",p=r.renderMonth(new Date(e,n));r.monthsTranslate=r.monthsTranslate||0;const f=r.monthsTranslate;let h;const m=!r.animating&&a!==0;c>d?(r.monthsTranslate-=1,r.animating||r.$months.eq(r.$months.length-1).remove(),o.append(p),r.$months=o.find(".calendar-month"),h=-(f-1)*100*l,r.$months.eq(r.$months.length-1).transform(`translate3d(${i?h:0}%, ${i?0:h}%, 0)`).addClass("calendar-month-next")):(r.monthsTranslate+=1,r.animating||r.$months.eq(0).remove(),o.prepend(p),r.$months=o.find(".calendar-month"),h=-(f+1)*100*l,r.$months.eq(0).transform(`translate3d(${i?h:0}%, ${i?0:h}%, 0)`).addClass("calendar-month-prev")),r.emit("local::monthAdd calendarMonthAdd",u==="next"?r.$months.eq(r.$months.length-1)[0]:r.$months.eq(0)[0]),r.animating=!0,r.onMonthChangeStart(u);const b=r.monthsTranslate*100*l;o.transition(a).transform(`translate3d(${i?b:0}%, ${i?0:b}%, 0)`),m&&o.transitionEnd(()=>{r.onMonthChangeEnd(u,!0)}),(!s.animate||a===0)&&r.onMonthChangeEnd(u,!0)}nextYear(){const e=this;e.setYearMonth(e.currentYear+1)}prevYear(){const e=this;e.setYearMonth(e.currentYear-1)}dateInRange(e,n){let a=!1,r;if(!n)return!1;if(Array.isArray(n))for(r=0;r=new Date(n[r].from).getTime()&&(a=!0):n[r].from?e>=new Date(n[r].from).getTime()&&(a=!0):n[r].to&&e<=new Date(n[r].to).getTime()&&(a=!0):n[r].date?e===new Date(n[r].date).getTime()&&(a=!0):e===new Date(n[r]).getTime()&&(a=!0);else n.from||n.to?n.from&&n.to?e<=new Date(n.to).getTime()&&e>=new Date(n.from).getTime()&&(a=!0):n.from?e>=new Date(n.from).getTime()&&(a=!0):n.to&&e<=new Date(n.to).getTime()&&(a=!0):n.date?a=e===new Date(n.date).getTime():typeof n=="function"&&(a=n(new Date(e)));return a}daysInMonth(e){const n=new Date(e);return new Date(n.getFullYear(),n.getMonth()+1,0).getDate()}renderMonths(e){const n=this;return n.params.renderMonths?n.params.renderMonths.call(n,e):T("div",{class:"calendar-months-wrapper"},n.renderMonth(e,"prev"),n.renderMonth(e),n.renderMonth(e,"next"))}renderMonth(e,n){const a=this,{params:r,value:s}=a;if(r.renderMonth)return r.renderMonth.call(a,e,n);let i=new Date(e),o=i.getFullYear(),l=i.getMonth(),c=a.monthNames.indexOf(a.monthFormatter(i));c<0&&(c=l);let d=a.yearFormatter(i);n==="next"&&(l===11?i=new Date(o+1,0):i=new Date(o,l+1,1)),n==="prev"&&(l===0?i=new Date(o-1,11):i=new Date(o,l-1,1)),(n==="next"||n==="prev")&&(l=i.getMonth(),o=i.getFullYear(),c=a.monthNames.indexOf(a.monthFormatter(i)),c<0&&(c=l),d=a.yearFormatter(i));const u=[],p=new Date().setHours(0,0,0,0),f=r.minDate?new Date(r.minDate).getTime():null,h=r.maxDate?new Date(r.maxDate).getTime():null,m=6,b=7,w=a.daysInMonth(new Date(i.getFullYear(),i.getMonth()).getTime()-10*24*60*60*1e3),g=a.daysInMonth(i),v=r.firstDay===6?0:1;let y="",E=0+(r.firstDay-1),k,$,M=new Date(i.getFullYear(),i.getMonth()).getDay();if(M===0&&(M=7),s&&s.length)for(let x=0;xv&&r.firstDay!==1&&(E-=7,B=E-M);const L=S-1+r.firstDay>6?S-1-7+r.firstDay:S-1+r.firstDay;B<0?(B=w+B+1,P+=" calendar-day-prev",I=new Date(l-1<0?o-1:o,l-1<0?11:l-1,B).getTime()):(B+=1,B>g?(B-=g,P+=" calendar-day-next",I=new Date(l+1>11?o+1:o,l+1>11?0:l+1,B).getTime()):I=new Date(o,l,B).getTime()),I===p&&(P+=" calendar-day-today"),r.rangePicker&&u.length===2?(I>=u[0]&&I<=u[1]&&(P+=" calendar-day-selected"),u[0]!==u[1]&&(I>u[0]&&I=0&&(P+=" calendar-day-selected"),r.weekendDays.indexOf(L)>=0&&(P+=" calendar-day-weekend");let V="";if($=!1,r.events&&a.dateInRange(I,r.events)&&($=!0),$&&(P+=" calendar-day-has-events",V=` + `}renderPage(){const e=this;if(e.params.renderPage)return e.params.renderPage.call(e,e.items);let n=e.params.pageTitle;if(typeof n>"u"){const r=e.$el.find(".item-title");n=r.length?r.text().trim():""}const a=e.params.cssClass;return T("div",{class:`page smart-select-page ${a}`,"data-name":"smart-select-page","data-select-name":e.selectName},T("div",{class:`navbar ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},T("div",{class:"navbar-bg"}),T("div",{class:`navbar-inner sliding ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},T("div",{class:"left"},T("a",{class:"link back"},T("i",{class:"icon icon-back"}),T("span",{class:"if-not-md"},e.params.pageBackLinkText))),n&&T("div",{class:"title"},n),e.params.searchbar&&T("div",{class:"subnavbar"},e.renderSearchbar()))),e.params.searchbar&&T("div",{class:"searchbar-backdrop"}),T("div",{class:"page-content"},T("div",{class:`list list-outline-ios list-strong-ios list-dividers-ios smart-select-list-${e.id} ${e.params.virtualList?" virtual-list":""} ${e.params.formColorTheme?`color-${e.params.formColorTheme}`:""}`},T("ul",null,!e.params.virtualList&&e.renderItems(e.items)))))}renderPopup(){const e=this;if(e.params.renderPopup)return e.params.renderPopup.call(e,e.items);let n=e.params.pageTitle;if(typeof n>"u"){const r=e.$el.find(".item-title");n=r.length?r.text().trim():""}const a=e.params.cssClass||"";return T("div",{class:`popup smart-select-popup ${a} ${e.params.popupTabletFullscreen?"popup-tablet-fullscreen":""}`,"data-select-name":e.selectName},T("div",{class:"view"},T("div",{class:`page smart-select-page ${e.params.searchbar?"page-with-subnavbar":""}`,"data-name":"smart-select-page"},T("div",{class:`navbar ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},T("div",{class:"navbar-bg"}),T("div",{class:"navbar-inner sliding"},n&&T("div",{class:"title"},n),T("div",{class:"right"},T("a",{class:"link popup-close","data-popup":`.smart-select-popup[data-select-name='${e.selectName}']`},e.params.popupCloseLinkText)),e.params.searchbar&&T("div",{class:"subnavbar"},e.renderSearchbar()))),e.params.searchbar&&T("div",{class:"searchbar-backdrop"}),T("div",{class:"page-content"},T("div",{class:`list list-outline-ios list-strong-ios list-dividers-ios smart-select-list-${e.id} ${e.params.virtualList?" virtual-list":""} ${e.params.formColorTheme?`color-${e.params.formColorTheme}`:""}`},T("ul",null,!e.params.virtualList&&e.renderItems(e.items)))))))}renderSheet(){const e=this;if(e.params.renderSheet)return e.params.renderSheet.call(e,e.items);const n=e.params.cssClass;return T("div",{class:`sheet-modal smart-select-sheet ${n}`,"data-select-name":e.selectName},T("div",{class:`toolbar toolbar-top ${e.params.toolbarColorTheme?`color-${e.params.toolbarColorTheme}`:""}`},T("div",{class:"toolbar-inner"},T("div",{class:"left"}),T("div",{class:"right"},T("a",{class:"link sheet-close"},e.params.sheetCloseLinkText)))),T("div",{class:"sheet-modal-inner"},T("div",{class:"page-content"},T("div",{class:`list list-strong-ios list-dividers-ios smart-select-list-${e.id} ${e.params.virtualList?" virtual-list":""} ${e.params.formColorTheme?`color-${e.params.formColorTheme}`:""}`},T("ul",null,!e.params.virtualList&&e.renderItems(e.items))))))}renderPopover(){const e=this;if(e.params.renderPopover)return e.params.renderPopover.call(e,e.items);const n=e.params.cssClass;return T("div",{class:`popover smart-select-popover ${n}`,"data-select-name":e.selectName},T("div",{class:"popover-inner"},T("div",{class:`list list-strong-ios list-dividers-ios smart-select-list-${e.id} ${e.params.virtualList?" virtual-list":""} ${e.params.formColorTheme?`color-${e.params.formColorTheme}`:""}`},T("ul",null,!e.params.virtualList&&e.renderItems(e.items)))))}scrollToSelectedItem(){const e=this,{params:n,$containerEl:a}=e;if(!e.opened)return e;if(n.virtualList){let r;e.vl.items.forEach((s,i)=>{typeof r>"u"&&s.selected&&(r=i)}),typeof r<"u"&&e.vl.scrollToItem(r)}else{const r=a.find("input:checked").parents("li");if(!r.length)return e;const s=a.find(".page-content, .popover-inner");if(!s.length)return e;s.scrollTop(r.offset().top-s.offset().top-parseInt(s.css("padding-top"),10))}return e}onOpen(e,n){const a=this,r=a.app,s=C(n);if(a.$containerEl=s,a.openedIn=e,a.opened=!0,a.params.virtualList&&(a.vl=r.virtualList.create({el:s.find(".virtual-list"),items:a.items,renderItem:a.renderItem.bind(a),height:a.params.virtualListHeight,searchByItem(i,o){return!!(o.text&&ir(o.text).toLowerCase().indexOf(i.trim().toLowerCase())>=0)}})),a.params.scrollToSelectedItem&&a.scrollToSelectedItem(),a.params.searchbar){let i=s.find(".searchbar");if(e==="page"&&r.theme==="ios"&&(i=C(r.navbar.getElByPage(s)).find(".searchbar")),a.params.appendSearchbarNotFound&&(e==="page"||e==="popup")){let l=null;typeof a.params.appendSearchbarNotFound=="string"?l=C(`
            ${a.params.appendSearchbarNotFound}
            `):typeof a.params.appendSearchbarNotFound=="boolean"?l=C('
            Nothing found
            '):l=a.params.appendSearchbarNotFound,l&&s.find(".page-content").append(l[0])}const o=W({el:i,backdropEl:s.find(".searchbar-backdrop"),searchContainer:`.smart-select-list-${a.id}`,searchIn:".item-title"},typeof a.params.searchbar=="object"?a.params.searchbar:{});a.searchbar=r.searchbar.create(o)}a.maxLength&&a.checkMaxLength(),a.params.closeOnSelect&&a.$containerEl.find(`input[type="radio"][name="${a.inputName}"]:checked`).parents("label").once("click",()=>{a.close()}),a.attachInputsEvents(),a.$el.trigger("smartselect:open"),a.emit("local::open smartSelectOpen",a)}onOpened(){const e=this;e.$el.trigger("smartselect:opened"),e.emit("local::opened smartSelectOpened",e)}onClose(){const e=this;e.destroyed||(e.vl&&e.vl.destroy&&(e.vl.destroy(),e.vl=null,delete e.vl),e.searchbar&&e.searchbar.destroy&&(e.searchbar.destroy(),e.searchbar=null,delete e.searchbar),e.detachInputsEvents(),e.$el.trigger("smartselect:close"),e.emit("local::close smartSelectClose",e))}onClosed(){const e=this;e.destroyed||(e.opened=!1,e.$containerEl=null,delete e.$containerEl,e.$el.trigger("smartselect:closed"),e.emit("local::closed smartSelectClosed",e))}openPage(){const e=this;if(e.opened)return e;e.getItemsData();const n=e.renderPage(e.items);return e.view.router.navigate({url:e.url,route:{content:n,path:e.url,on:{pageBeforeIn(a,r){e.onOpen("page",r.el)},pageAfterIn(a,r){e.onOpened("page",r.el)},pageBeforeOut(a,r){e.onClose("page",r.el)},pageAfterOut(a,r){e.onClosed("page",r.el)}}}}),e}openPopup(){const e=this;if(e.opened)return e;e.getItemsData();const a={content:e.renderPopup(e.items),push:e.params.popupPush,swipeToClose:e.params.popupSwipeToClose,closeByBackdropClick:e.params.closeByBackdropClick,on:{popupOpen(r){e.onOpen("popup",r.el)},popupOpened(r){e.onOpened("popup",r.el)},popupClose(r){e.onClose("popup",r.el)},popupClosed(r){e.onClosed("popup",r.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:a}}):e.modal=e.app.popup.create(a).open(),e}openSheet(){const e=this;if(e.opened)return e;e.getItemsData();const a={content:e.renderSheet(e.items),backdrop:e.params.sheetBackdrop,scrollToEl:e.$el,closeByOutsideClick:!0,push:e.params.sheetPush,swipeToClose:e.params.sheetSwipeToClose,closeByBackdropClick:e.params.closeByBackdropClick,on:{sheetOpen(r){e.onOpen("sheet",r.el)},sheetOpened(r){e.onOpened("sheet",r.el)},sheetClose(r){e.onClose("sheet",r.el)},sheetClosed(r){e.onClosed("sheet",r.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,sheet:a}}):e.modal=e.app.sheet.create(a).open(),e}openPopover(){const e=this;if(e.opened)return e;e.getItemsData();const a={content:e.renderPopover(e.items),targetEl:e.$el,closeByBackdropClick:e.params.closeByBackdropClick,on:{popoverOpen(r){e.onOpen("popover",r.el)},popoverOpened(r){e.onOpened("popover",r.el)},popoverClose(r){e.onClose("popover",r.el)},popoverClosed(r){e.onClosed("popover",r.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popover:a}}):e.modal=e.app.popover.create(a).open(),e}open(e){const n=this;if(n.opened)return n;let a=!1;function r(){a=!0}if(n.$el&&n.$el.trigger("smartselect:beforeopen",{prevent:r}),n.emit("local::beforeOpen smartSelectBeforeOpen",n,r),a)return n;const s=e||n.params.openIn;return n[`open${s.split("").map((i,o)=>o===0?i.toUpperCase():i).join("")}`](),n}close(){const e=this;return e.opened&&(e.params.routableModals&&e.view||e.openedIn==="page"?e.view.router.back():(e.modal.once("modalClosed",()=>{lt(()=>{e.destroyed||(e.modal.destroy(),delete e.modal)})}),e.modal.close())),e}init(){const e=this;e.attachEvents(),e.setValueText()}destroy(){const e=this;e.emit("local::beforeDestroy smartSelectBeforeDestroy",e),e.$el.trigger("smartselect:beforedestroy"),e.detachEvents(),delete e.$el[0].f7SmartSelect,Ze(e),e.destroyed=!0}};const AC={name:"smartSelect",params:{smartSelect:{el:void 0,valueEl:void 0,setValueText:!0,formatValueText:null,openIn:"page",popupPush:!1,popupSwipeToClose:void 0,sheetPush:!1,sheetSwipeToClose:void 0,sheetBackdrop:!1,pageTitle:void 0,pageBackLinkText:"Back",popupCloseLinkText:"Close",popupTabletFullscreen:!1,closeByBackdropClick:!0,sheetCloseLinkText:"Done",searchbar:!1,searchbarPlaceholder:"Search",searchbarDisableText:"Cancel",searchbarDisableButton:!0,searchbarSpellcheck:!1,closeOnSelect:!1,virtualList:!1,virtualListHeight:void 0,scrollToSelectedItem:!1,formColorTheme:void 0,navbarColorTheme:void 0,routableModals:!1,url:"select/",inputIconPosition:"start",cssClass:"",renderPage:void 0,renderPopup:void 0,renderSheet:void 0,renderPopover:void 0,renderItems:void 0,renderItem:void 0,renderSearchbar:void 0}},static:{SmartSelect:xo},create(){const t=this;t.smartSelect=W(et({defaultSelector:".smart-select",constructor:xo,app:t,domProp:"f7SmartSelect"}),{open(e){const n=t.smartSelect.get(e);if(n&&n.open)return n.open()},close(e){const n=t.smartSelect.get(e);if(n&&n.close)return n.close()}})},on:{tabMounted(t){const e=this;C(t).find(".smart-select-init").each(n=>{e.smartSelect.create(W({el:n},C(n).dataset()))})},tabBeforeRemove(t){C(t).find(".smart-select-init").each(e=>{e.f7SmartSelect&&e.f7SmartSelect.destroy&&e.f7SmartSelect.destroy()})},pageInit(t){const e=this;t.$el.find(".smart-select-init").each(n=>{e.smartSelect.create(W({el:n},C(n).dataset()))})},pageBeforeRemove(t){t.$el.find(".smart-select-init").each(e=>{e.f7SmartSelect&&e.f7SmartSelect.destroy&&e.f7SmartSelect.destroy()})}},clicks:{".smart-select":function(e,n){const a=this;e[0].f7SmartSelect||a.smartSelect.create(W({el:e},n)).open()}},vnode:{"smart-select-init":{insert(t){const e=this,n=t.elm;e.smartSelect.create(W({el:n},C(n).dataset()))},destroy(t){const e=t.elm;e.f7SmartSelect&&e.f7SmartSelect.destroy&&e.f7SmartSelect.destroy()}}}},DC={name:"grid"};let So=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this;a.params=W({},e.params.calendar,n);let r;if(a.params.containerEl&&(r=C(a.params.containerEl),r.length===0))return a;let s;a.params.inputEl&&(s=C(a.params.inputEl));const i=a.params.direction==="horizontal";let o=1;i&&(o=e.rtl?-1:1),W(a,{app:e,$containerEl:r,containerEl:r&&r[0],inline:r&&r.length>0,$inputEl:s,inputEl:s&&s[0],initialized:!1,opened:!1,url:a.params.url,isHorizontal:i,inverter:o,animating:!1,allowTouchMove:!0,hasTimePicker:a.params.timePicker&&!a.params.rangePicker&&!a.params.multiple}),a.dayFormatter=E=>new Intl.DateTimeFormat(a.params.locale,{day:"numeric"}).format(E).replace(/日/,""),a.monthFormatter=E=>new Intl.DateTimeFormat(a.params.locale,{month:"long"}).format(E),a.yearFormatter=E=>new Intl.DateTimeFormat(a.params.locale,{year:"numeric"}).format(E),a.timeSelectorFormatter=E=>new Intl.DateTimeFormat(a.params.locale,a.params.timePickerFormat).format(E);const l=a.timeSelectorFormatter(new Date).toLowerCase();a.is12HoursFormat=l.indexOf("pm")>=0||l.indexOf("am")>=0;let{monthNames:c,monthNamesShort:d,dayNames:u,dayNamesShort:p}=a.params;const{monthNamesIntl:f,monthNamesShortIntl:h,dayNamesIntl:m,dayNamesShortIntl:b}=a.getIntlNames();c==="auto"&&(c=f),d==="auto"&&(d=h),u==="auto"&&(u=m),p==="auto"&&(p=b),W(a,{monthNames:c,monthNamesShort:d,dayNames:u,dayNamesShort:p});function w(){a.open()}function g(E){E.preventDefault()}function v(){a.setValue([]),a.opened&&a.update()}function y(E){const k=C(E.target);a.destroyed||!a.params||a.isPopover()||!a.opened||a.closing||k.closest('[class*="backdrop"]').length||a.monthPickerPopover||a.yearPickerPopover||a.timePickerPopover||(s&&s.length>0?k[0]!==s[0]&&k.closest(".sheet-modal, .calendar-modal").length===0&&a.close():C(E.target).closest(".sheet-modal, .calendar-modal").length===0&&a.close())}return W(a,{attachInputEvents(){a.$inputEl.on("click",w),a.$inputEl.on("input:clear",v),a.params.inputReadOnly&&(a.$inputEl.on("focus mousedown",g),a.$inputEl[0]&&(a.$inputEl[0].f7ValidateReadonly=!0))},detachInputEvents(){a.$inputEl.off("click",w),a.$inputEl.off("input:clear",v),a.params.inputReadOnly&&(a.$inputEl.off("focus mousedown",g),a.$inputEl[0]&&delete a.$inputEl[0].f7ValidateReadonly)},attachHtmlEvents(){e.on("click",y)},detachHtmlEvents(){e.off("click",y)}}),a.attachCalendarEvents=function(){let k=!0,$,M,x,F,S,I,B,P,L,V,H,D,O,_;const{$el:N,$wrapperEl:G}=a;function ee(z){M||$||!z.isTrusted||($=!0,x=z.type==="touchstart"?z.targetTouches[0].pageX:z.pageX,S=x,F=z.type==="touchstart"?z.targetTouches[0].pageY:z.pageY,I=F,B=new Date().getTime(),D=0,k=!0,_=void 0,L=a.monthsTranslate)}function X(z){if(!$||!z.isTrusted)return;const{isHorizontal:q}=a;if(S=z.type==="touchmove"?z.targetTouches[0].pageX:z.pageX,I=z.type==="touchmove"?z.targetTouches[0].pageY:z.pageY,typeof _>"u"&&(_=!!(_||Math.abs(I-F)>Math.abs(S-x))),q&&_||!a.allowTouchMove){$=!1;return}if(z.preventDefault(),a.animating){$=!1;return}k=!1,M||(M=!0,V=G[0].offsetWidth,H=G[0].offsetHeight,G.transition(0)),O=q?S-x:I-F,D=O/(q?V:H),L=(a.monthsTranslate*a.inverter+D)*100,G.transform(`translate3d(${q?L:0}%, ${q?0:L}%, 0)`)}function se(z){if(!$||!M||!z.isTrusted){$=!1,M=!1;return}$=!1,M=!1,P=new Date().getTime(),P-B<300?Math.abs(O)<10?a.resetMonth():O>=10?e.rtl?a.nextMonth():a.prevMonth():e.rtl?a.prevMonth():a.nextMonth():D<=-.5?e.rtl?a.prevMonth():a.nextMonth():D>=.5?e.rtl?a.nextMonth():a.prevMonth():a.resetMonth(),setTimeout(()=>{k=!0},100)}function ne(z){if(!k)return;let q=C(z.target).parents(".calendar-day");if(q.length===0&&C(z.target).hasClass("calendar-day")&&(q=C(z.target)),q.length===0||q.hasClass("calendar-day-disabled"))return;a.params.rangePicker||(q.hasClass("calendar-day-next")&&a.nextMonth(),q.hasClass("calendar-day-prev")&&a.prevMonth());const U=parseInt(q.attr("data-year"),10),K=parseInt(q.attr("data-month"),10),j=parseInt(q.attr("data-day"),10);if(a.emit("local::dayClick calendarDayClick",a,q[0],U,K,j),!q.hasClass("calendar-day-selected")||a.params.multiple||a.params.rangePicker){const Q=new Date(U,K,j,0,0,0);a.hasTimePicker&&(a.value&&a.value[0]?Q.setHours(a.value[0].getHours(),a.value[0].getMinutes()):Q.setHours(new Date().getHours(),new Date().getMinutes())),a.addValue(Q)}a.params.closeOnSelect&&(a.params.rangePicker&&a.value.length===2||!a.params.rangePicker)&&a.close()}function ie(){a.nextMonth()}function le(){a.prevMonth()}function be(){a.nextYear()}function oe(){a.prevYear()}function ce(){a.openMonthPicker()}function pe(){a.openYearPicker()}function R(){a.openTimePicker()}const A=e.touchEvents.start==="touchstart"&&Xe().passiveListener?{passive:!0,capture:!1}:!1;N.find(".calendar-prev-month-button").on("click",le),N.find(".calendar-next-month-button").on("click",ie),N.find(".calendar-prev-year-button").on("click",oe),N.find(".calendar-next-year-button").on("click",be),a.params.monthPicker&&N.find(".current-month-value").on("click",ce),a.params.yearPicker&&N.find(".current-year-value").on("click",pe),a.hasTimePicker&&N.find(".calendar-time-selector a").on("click",R),G.on("click",ne),a.params.touchMove&&(G.on(e.touchEvents.start,ee,A),e.on("touchmove:active",X),e.on("touchend:passive",se)),a.detachCalendarEvents=function(){N.find(".calendar-prev-month-button").off("click",le),N.find(".calendar-next-month-button").off("click",ie),N.find(".calendar-prev-year-button").off("click",oe),N.find(".calendar-next-year-button").off("click",be),a.params.monthPicker&&N.find(".current-month-value").off("click",ce),a.params.yearPicker&&N.find(".current-year-value").off("click",pe),a.hasTimePicker&&N.find(".calendar-time-selector a").off("click",R),G.off("click",ne),a.params.touchMove&&(G.off(e.touchEvents.start,ee,A),e.off("touchmove:active",X),e.off("touchend:passive",se))}},a.init(),a}get view(){const{$inputEl:e,app:n,params:a}=this;let r;return a.view?r=a.view:e&&(r=e.parents(".view").length&&e.parents(".view")[0].f7View),r||(r=n.views.main),r}getIntlNames(){const e=this,n=e.params.locale,a=[],r=[],s=[],i=[],o=new Intl.DateTimeFormat(n,{month:"long"}),l=new Intl.DateTimeFormat(n,{month:"short"}),c=new Intl.DateTimeFormat(n,{weekday:"long"}),d=new Intl.DateTimeFormat(n,{weekday:"short"});let u,p,f;for(let m=0;m<24;m+=1){const b=new Date().setMonth(m,1),w=e.yearFormatter(b);u&&w!==u&&(p&&(f=!0),p=!0,u=w),u||(u=w),p&&u===w&&!f&&(a.push(o.format(b)),r.push(l.format(b)))}const h=new Date().getDay();for(let m=0;m<7;m+=1){const b=new Date().getTime()+(m-h)*24*60*60*1e3;s.push(c.format(b)),i.push(d.format(b))}return{monthNamesIntl:a,monthNamesShortIntl:r,dayNamesIntl:s,dayNamesShortIntl:i}}normalizeDate(e){const n=this,a=new Date(e);return n.hasTimePicker?new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes()):new Date(a.getFullYear(),a.getMonth(),a.getDate())}normalizeValues(e){const n=this;let a=[];return e&&Array.isArray(e)&&(a=e.map(r=>n.normalizeDate(r))),a}initInput(){const e=this;e.$inputEl&&e.params.inputReadOnly&&e.$inputEl.prop("readOnly",!0)}isPopover(){const e=this,{app:n,modal:a,params:r}=e,s=Ie();if(r.openIn==="sheet"||a&&a.type!=="popover")return!1;if(!e.inline&&e.inputEl){if(r.openIn==="popover")return!0;if(s.ios)return!!s.ipad;if(n.width>=768)return!0}return!1}formatDate(e){const n=this,a=new Date(e),r=a.getFullYear(),s=a.getMonth(),i=s+1,o=a.getDate(),l=a.getDay(),{monthNames:c,monthNamesShort:d,dayNames:u,dayNamesShort:p}=n,{dateFormat:f,locale:h}=n.params;function m(w){return w<10?`0${w}`:w}if(typeof f=="string"){const w={yyyy:r,yy:String(r).substring(2),mm:m(i),m:i,MM:c[s],M:d[s],dd:m(o),d:o,DD:u[l],D:p[l]};if(n.params.timePicker){const v=a.getHours(),y=a.getMinutes(),E=a.getSeconds();let k=v;v>12&&(k=v-12),v===0&&(k=12);const $=v>=12&&v!==0?"pm":"am";Object.assign(w,{HH:m(v),H:v,hh:m(k),h:k,ss:m(E),s:E,":mm":m(y),":m":y,a:$,A:$.toUpperCase()})}const g=new RegExp(Object.keys(w).map(v=>`(${v})`).join("|"),"g");return f.replace(g,v=>v in w?w[v]:v)}return typeof f=="function"?f(a):new Intl.DateTimeFormat(h,f).format(a)}formatValue(){const e=this,{value:n}=e;return e.params.formatValue?e.params.formatValue.call(e,n):n.map(a=>e.formatDate(a)).join(e.params.rangePicker?" - ":", ")}addValue(e){const n=this,{multiple:a,rangePicker:r,rangePickerMinDays:s,rangePickerMaxDays:i}=n.params;if(a){n.value||(n.value=[]);let o;for(let l=0;l"u"?n.value.push(e):n.value.splice(o,1),n.updateValue()}else r?(n.value||(n.value=[]),(n.value.length===2||n.value.length===0)&&(n.value=[]),n.value.length===0||Math.abs(n.value[0].getTime()-e.getTime())>=(s-1)*60*60*24*1e3&&(i===0||Math.abs(n.value[0].getTime()-e.getTime())<=(i-1)*60*60*24*1e3)?n.value.push(e):n.value=[],n.value.sort((o,l)=>o-l),n.updateValue()):(n.value=[e],n.updateValue())}setValue(e){const n=this,a=n.value;if(Array.isArray(a)&&Array.isArray(e)&&a.length===e.length){let r=!0;if(a.forEach((s,i)=>{s!==e[i]&&(r=!1)}),r)return}n.value=e,n.updateValue()}getValue(){return this.value}updateValue(e){const n=this,{$el:a,$wrapperEl:r,$inputEl:s,value:i,params:o}=n;let l;if(a&&a.length>0){r.find(".calendar-day-selected").removeClass("calendar-day-selected calendar-day-selected-range calendar-day-selected-left calendar-day-selected-right");let c;if(o.rangePicker&&i.length===2){const d=new Date(i[0]).getTime(),u=new Date(i[1]).getTime();for(l=d;l<=u;l+=24*60*60*1e3){c=new Date(l);let p="calendar-day-selected";d!==u&&(l!==d&&l!==u&&(p+=" calendar-day-selected-range"),l===d&&(p+=" calendar-day-selected-left"),l===u&&(p+=" calendar-day-selected-right")),r.find(`.calendar-day[data-date="${c.getFullYear()}-${c.getMonth()}-${c.getDate()}"]`).addClass(p)}c=new Date(d),r.find(`.calendar-day[data-date="${c.getFullYear()}-${c.getMonth()}-${c.getDate()}"]`).removeClass("calendar-day-selected-range").addClass("calendar-day-selected calendar-day-selected-left"),c=new Date(u),r.find(`.calendar-day[data-date="${c.getFullYear()}-${c.getMonth()}-${c.getDate()}"]`).removeClass("calendar-day-selected-range").addClass("calendar-day-selected calendar-day-selected-right")}else for(l=0;l0&&n.hasTimePicker&&a.find(".calendar-time-selector a").text(i&&i.length?n.timeSelectorFormatter(i[0]):n.params.timePickerPlaceholder),s&&s.length||o.header){const c=n.formatValue(i);o.header&&a&&a.length&&a.find(".calendar-selected-date").text(c),s&&s.length&&!e&&(s.val(c),s.trigger("change"))}}updateCurrentMonthYear(e){const n=this,{$months:a,$el:r,monthNames:s}=n;let i,o;typeof e>"u"?(n.currentMonth=parseInt(a.eq(1).attr("data-month"),10),n.currentYear=parseInt(a.eq(1).attr("data-year"),10),i=a.eq(1).attr("data-locale-month"),o=a.eq(1).attr("data-locale-year")):(n.currentMonth=parseInt(a.eq(e==="next"?a.length-1:0).attr("data-month"),10),n.currentYear=parseInt(a.eq(e==="next"?a.length-1:0).attr("data-year"),10),i=a.eq(e==="next"?a.length-1:0).attr("data-locale-month"),o=a.eq(e==="next"?a.length-1:0).attr("data-locale-year")),r.find(".current-month-value").text(s[i]),r.find(".current-year-value").text(o)}update(){const e=this,{currentYear:n,currentMonth:a,$wrapperEl:r}=e,s=new Date(n,a),i=e.renderMonth(s,"prev"),o=e.renderMonth(s),l=e.renderMonth(s,"next");r.transition(0).html(`${i}${o}${l}`).transform("translate3d(0,0,0)"),e.$months=r.find(".calendar-month"),e.monthsTranslate=0,e.setMonthsTranslate(),e.$months.each(c=>{e.emit("local::monthAdd calendarMonthAdd",c)})}onMonthChangeStart(e){const n=this,{$months:a,currentYear:r,currentMonth:s}=n;n.updateCurrentMonthYear(e),a.removeClass("calendar-month-current calendar-month-prev calendar-month-next");const i=e==="next"?a.length-1:0;a.eq(i).addClass("calendar-month-current"),a.eq(e==="next"?i-1:i+1).addClass(e==="next"?"calendar-month-prev":"calendar-month-next"),n.emit("local::monthYearChangeStart calendarMonthYearChangeStart",n,r,s)}onMonthChangeEnd(e,n){const a=this,{currentYear:r,currentMonth:s,$wrapperEl:i,monthsTranslate:o}=a;a.animating=!1;let l,c,d;i.find(".calendar-month:not(.calendar-month-prev):not(.calendar-month-current):not(.calendar-month-next)").remove(),typeof e>"u"&&(e="next",n=!0),n?(i.find(".calendar-month-next, .calendar-month-prev").remove(),c=a.renderMonth(new Date(r,s),"prev"),l=a.renderMonth(new Date(r,s),"next")):d=a.renderMonth(new Date(r,s),e),(e==="next"||n)&&i.append(d||l),(e==="prev"||n)&&i.prepend(d||c);const u=i.find(".calendar-month");a.$months=u,a.setMonthsTranslate(o),a.emit("local::monthAdd calendarMonthAdd",a,e==="next"?u.eq(u.length-1)[0]:u.eq(0)[0]),a.emit("local::monthYearChangeEnd calendarMonthYearChangeEnd",a,r,s)}setMonthsTranslate(e){const n=this,{$months:a,isHorizontal:r,inverter:s}=n;e=e||n.monthsTranslate||0,typeof n.monthsTranslate>"u"&&(n.monthsTranslate=e),a.removeClass("calendar-month-current calendar-month-prev calendar-month-next");const i=-(e+1)*100*s,o=-e*100*s,l=-(e-1)*100*s;a.eq(0).transform(`translate3d(${r?i:0}%, ${r?0:i}%, 0)`).addClass("calendar-month-prev"),a.eq(1).transform(`translate3d(${r?o:0}%, ${r?0:o}%, 0)`).addClass("calendar-month-current"),a.eq(2).transform(`translate3d(${r?l:0}%, ${r?0:l}%, 0)`).addClass("calendar-month-next")}nextMonth(e){const n=this,{params:a,$wrapperEl:r,inverter:s,isHorizontal:i}=n;(typeof e>"u"||typeof e=="object")&&(e="",a.animate||(e=0));const o=parseInt(n.$months.eq(n.$months.length-1).attr("data-month"),10),l=parseInt(n.$months.eq(n.$months.length-1).attr("data-year"),10),d=new Date(l,o).getTime(),u=!n.animating;if(a.maxDate&&d>new Date(a.maxDate).getTime()){n.resetMonth();return}if(n.monthsTranslate-=1,o===n.currentMonth){const f=-n.monthsTranslate*100*s,h=C(n.renderMonth(d,"next")).transform(`translate3d(${i?f:0}%, ${i?0:f}%, 0)`).addClass("calendar-month-next");r.append(h[0]),n.$months=r.find(".calendar-month"),n.emit("local::monthAdd calendarMonthAdd",n.$months.eq(n.$months.length-1)[0])}n.animating=!0,n.onMonthChangeStart("next");const p=n.monthsTranslate*100*s;r.transition(e).transform(`translate3d(${i?p:0}%, ${i?0:p}%, 0)`),u&&r.transitionEnd(()=>{n.onMonthChangeEnd("next")}),a.animate||n.onMonthChangeEnd("next")}prevMonth(e){const n=this,{params:a,$wrapperEl:r,inverter:s,isHorizontal:i}=n;(typeof e>"u"||typeof e=="object")&&(e="",a.animate||(e=0));const o=parseInt(n.$months.eq(0).attr("data-month"),10),l=parseInt(n.$months.eq(0).attr("data-year"),10),d=new Date(l,o+1,-1).getTime(),u=!n.animating;if(a.minDate){let f=new Date(a.minDate);if(f=new Date(f.getFullYear(),f.getMonth(),1),d{n.onMonthChangeEnd("prev")}),a.animate||n.onMonthChangeEnd("prev")}resetMonth(e){e===void 0&&(e="");const n=this,{$wrapperEl:a,inverter:r,isHorizontal:s,monthsTranslate:i}=n,o=i*100*r;a.transition(e).transform(`translate3d(${s?o:0}%, ${s?0:o}%, 0)`)}setYearMonth(e,n,a){const r=this,{params:s,isHorizontal:i,$wrapperEl:o,inverter:l}=r;typeof e>"u"&&(e=r.currentYear),typeof n>"u"&&(n=r.currentMonth),(typeof a>"u"||typeof a=="object")&&(a="",s.animate||(a=0));let c;if(enew Date(s.maxDate).getTime())return!1;if(s.minDate){let w=new Date(s.minDate);if(w=new Date(w.getFullYear(),w.getMonth(),1),cd?"next":"prev",p=r.renderMonth(new Date(e,n));r.monthsTranslate=r.monthsTranslate||0;const f=r.monthsTranslate;let h;const m=!r.animating&&a!==0;c>d?(r.monthsTranslate-=1,r.animating||r.$months.eq(r.$months.length-1).remove(),o.append(p),r.$months=o.find(".calendar-month"),h=-(f-1)*100*l,r.$months.eq(r.$months.length-1).transform(`translate3d(${i?h:0}%, ${i?0:h}%, 0)`).addClass("calendar-month-next")):(r.monthsTranslate+=1,r.animating||r.$months.eq(0).remove(),o.prepend(p),r.$months=o.find(".calendar-month"),h=-(f+1)*100*l,r.$months.eq(0).transform(`translate3d(${i?h:0}%, ${i?0:h}%, 0)`).addClass("calendar-month-prev")),r.emit("local::monthAdd calendarMonthAdd",u==="next"?r.$months.eq(r.$months.length-1)[0]:r.$months.eq(0)[0]),r.animating=!0,r.onMonthChangeStart(u);const b=r.monthsTranslate*100*l;o.transition(a).transform(`translate3d(${i?b:0}%, ${i?0:b}%, 0)`),m&&o.transitionEnd(()=>{r.onMonthChangeEnd(u,!0)}),(!s.animate||a===0)&&r.onMonthChangeEnd(u,!0)}nextYear(){const e=this;e.setYearMonth(e.currentYear+1)}prevYear(){const e=this;e.setYearMonth(e.currentYear-1)}dateInRange(e,n){let a=!1,r;if(!n)return!1;if(Array.isArray(n))for(r=0;r=new Date(n[r].from).getTime()&&(a=!0):n[r].from?e>=new Date(n[r].from).getTime()&&(a=!0):n[r].to&&e<=new Date(n[r].to).getTime()&&(a=!0):n[r].date?e===new Date(n[r].date).getTime()&&(a=!0):e===new Date(n[r]).getTime()&&(a=!0);else n.from||n.to?n.from&&n.to?e<=new Date(n.to).getTime()&&e>=new Date(n.from).getTime()&&(a=!0):n.from?e>=new Date(n.from).getTime()&&(a=!0):n.to&&e<=new Date(n.to).getTime()&&(a=!0):n.date?a=e===new Date(n.date).getTime():typeof n=="function"&&(a=n(new Date(e)));return a}daysInMonth(e){const n=new Date(e);return new Date(n.getFullYear(),n.getMonth()+1,0).getDate()}renderMonths(e){const n=this;return n.params.renderMonths?n.params.renderMonths.call(n,e):T("div",{class:"calendar-months-wrapper"},n.renderMonth(e,"prev"),n.renderMonth(e),n.renderMonth(e,"next"))}renderMonth(e,n){const a=this,{params:r,value:s}=a;if(r.renderMonth)return r.renderMonth.call(a,e,n);let i=new Date(e),o=i.getFullYear(),l=i.getMonth(),c=a.monthNames.indexOf(a.monthFormatter(i));c<0&&(c=l);let d=a.yearFormatter(i);n==="next"&&(l===11?i=new Date(o+1,0):i=new Date(o,l+1,1)),n==="prev"&&(l===0?i=new Date(o-1,11):i=new Date(o,l-1,1)),(n==="next"||n==="prev")&&(l=i.getMonth(),o=i.getFullYear(),c=a.monthNames.indexOf(a.monthFormatter(i)),c<0&&(c=l),d=a.yearFormatter(i));const u=[],p=new Date().setHours(0,0,0,0),f=r.minDate?new Date(r.minDate).getTime():null,h=r.maxDate?new Date(r.maxDate).getTime():null,m=6,b=7,w=a.daysInMonth(new Date(i.getFullYear(),i.getMonth()).getTime()-10*24*60*60*1e3),g=a.daysInMonth(i),v=r.firstDay===6?0:1;let y="",E=0+(r.firstDay-1),k,$,M=new Date(i.getFullYear(),i.getMonth()).getDay();if(M===0&&(M=7),s&&s.length)for(let x=0;xv&&r.firstDay!==1&&(E-=7,B=E-M);const L=S-1+r.firstDay>6?S-1-7+r.firstDay:S-1+r.firstDay;B<0?(B=w+B+1,P+=" calendar-day-prev",I=new Date(l-1<0?o-1:o,l-1<0?11:l-1,B).getTime()):(B+=1,B>g?(B-=g,P+=" calendar-day-next",I=new Date(l+1>11?o+1:o,l+1>11?0:l+1,B).getTime()):I=new Date(o,l,B).getTime()),I===p&&(P+=" calendar-day-today"),r.rangePicker&&u.length===2?(I>=u[0]&&I<=u[1]&&(P+=" calendar-day-selected"),u[0]!==u[1]&&(I>u[0]&&I=0&&(P+=" calendar-day-selected"),r.weekendDays.indexOf(L)>=0&&(P+=" calendar-day-weekend");let V="";if($=!1,r.events&&a.dateInRange(I,r.events)&&($=!0),$&&(P+=" calendar-day-has-events",V=` @@ -161,7 +161,7 @@ ${l.toString()}`)}return r&&(typeof r=="string"?o+=`?${r}`:Object.keys(r).length `}if(r.rangesClasses)for(let _=0;_h)&&(k=!0),r.disabled&&a.dateInRange(I,r.disabled)&&(k=!0),k&&(P+=" calendar-day-disabled"),I=new Date(I);const H=I.getFullYear(),D=I.getMonth(),O=a.dayFormatter(I);F+=`
            ${O}${V} -
            `.trim()}y+=`
            ${F}
            `}return y=`
            ${y}
            `,y}renderWeekHeader(){const e=this;if(e.params.renderWeekHeader)return e.params.renderWeekHeader.call(e);const{params:n}=e;let a="";for(let r=0;r<7;r+=1){const s=r+n.firstDay>6?r-7+n.firstDay:r+n.firstDay,i=e.dayNamesShort[s];a+=`
            ${i}
            `}return T("div",{class:"calendar-week-header"},a)}renderMonthSelector(){const e=this;return e.params.renderMonthSelector?e.params.renderMonthSelector.call(e):T("div",{class:"calendar-month-selector"},T("a",{class:"link icon-only calendar-prev-month-button"},T("i",{class:"icon icon-prev"})),e.params.monthPicker?T("a",{class:"current-month-value link"}):T("span",{class:"current-month-value"}),T("a",{class:"link icon-only calendar-next-month-button"},T("i",{class:"icon icon-next"})))}renderYearSelector(){const e=this;return e.params.renderYearSelector?e.params.renderYearSelector.call(e):T("div",{class:"calendar-year-selector"},T("a",{class:"link icon-only calendar-prev-year-button"},T("i",{class:"icon icon-prev"})),e.params.yearPicker?T("a",{class:"current-year-value link"}):T("span",{class:"current-year-value"}),T("a",{class:"link icon-only calendar-next-year-button"},T("i",{class:"icon icon-next"})))}renderTimeSelector(){const e=this,n=e.value&&e.value[0];let a;return n&&(a=e.timeSelectorFormatter(n)),T("div",{class:"calendar-time-selector"},T("span",null,e.params.timePickerLabel),T("a",{class:"link"},a||e.params.timePickerPlaceholder))}renderHeader(){const e=this;return e.params.renderHeader?e.params.renderHeader.call(e):T("div",{class:"calendar-header"},T("div",{class:"calendar-selected-date"},e.params.headerPlaceholder))}renderFooter(){const e=this,n=e.app;return e.params.renderFooter?e.params.renderFooter.call(e):T("div",{class:"calendar-footer"},T("a",{class:`${n.theme==="md"?"button button-round":"link"} calendar-close sheet-close popover-close`},e.params.toolbarCloseText))}renderToolbar(){const e=this;return e.params.renderToolbar?e.params.renderToolbar.call(e,e):T("div",{class:"toolbar toolbar-top"},T("div",{class:"toolbar-inner"},e.params.monthSelector?e.renderMonthSelector():"",e.params.yearSelector?e.renderYearSelector():""))}renderInline(){const e=this,{cssClass:n,toolbar:a,header:r,footer:s,rangePicker:i,weekHeader:o}=e.params,{value:l,hasTimePicker:c}=e,d=l&&l.length?l[0]:new Date().setHours(0,0,0);return T("div",{class:`calendar calendar-inline ${i?"calendar-range":""} ${n||""}`},r&&e.renderHeader(),a&&e.renderToolbar(),o&&e.renderWeekHeader(),T("div",{class:"calendar-months"},e.renderMonths(d)),c&&e.renderTimeSelector(),s&&e.renderFooter())}renderCustomModal(){const e=this,{cssClass:n,toolbar:a,header:r,footer:s,rangePicker:i,weekHeader:o}=e.params,{value:l,hasTimePicker:c}=e,d=l&&l.length?l[0]:new Date().setHours(0,0,0);return T("div",{class:`calendar calendar-modal ${i?"calendar-range":""} ${n||""}`},r&&e.renderHeader(),a&&e.renderToolbar(),o&&e.renderWeekHeader(),T("div",{class:"calendar-months"},e.renderMonths(d)),c&&e.renderTimeSelector(),s&&e.renderFooter())}renderSheet(){const e=this,{cssClass:n,toolbar:a,header:r,footer:s,rangePicker:i,weekHeader:o}=e.params,{value:l,hasTimePicker:c}=e,d=l&&l.length?l[0]:new Date().setHours(0,0,0);return T("div",{class:`sheet-modal calendar calendar-sheet ${i?"calendar-range":""} ${n||""}`},r&&e.renderHeader(),a&&e.renderToolbar(),o&&e.renderWeekHeader(),T("div",{class:"sheet-modal-inner calendar-months"},e.renderMonths(d)),c&&e.renderTimeSelector(),s&&e.renderFooter())}renderPopover(){const e=this,{cssClass:n,toolbar:a,header:r,footer:s,rangePicker:i,weekHeader:o}=e.params,{value:l,hasTimePicker:c}=e,d=l&&l.length?l[0]:new Date().setHours(0,0,0);return T("div",{class:"popover calendar-popover"},T("div",{class:"popover-inner"},T("div",{class:`calendar ${i?"calendar-range":""} ${n||""}`},r&&e.renderHeader(),a&&e.renderToolbar(),o&&e.renderWeekHeader(),T("div",{class:"calendar-months"},e.renderMonths(d)),c&&e.renderTimeSelector(),s&&e.renderFooter())))}render(){const e=this,{params:n}=e;if(n.render)return n.render.call(e);if(!e.inline){let a=n.openIn;return a==="auto"&&(a=e.isPopover()?"popover":"sheet"),a==="popover"?e.renderPopover():a==="sheet"?e.renderSheet():e.renderCustomModal()}return e.renderInline()}openMonthPicker(){const e=this,{$el:n,app:a}=e;if(!n||!n.length)return;n.append('
            '),e.monthPickerPopover=a.popover.create({el:n.find(".calendar-month-picker-popover"),targetEl:n.find(".calendar-month-selector"),backdrop:!0,backdropUnique:!0,on:{close(){e.closeMonthPicker()},closed(){e.monthPickerPopover.$el&&e.monthPickerPopover.$el.remove(),e.monthPickerPopover.destroy(),e.monthPickerInstance&&(e.monthPickerInstance.close(),e.monthPickerInstance.destroy()),delete e.monthPickerInstance,delete e.monthPickerPopover}}}),e.monthPickerPopover.open();const r=parseInt(e.$el.find(".calendar-month-current").attr("data-locale-month"),10),s=[],i=[];e.monthNames.forEach((o,l)=>{s.push(l),i.push(o)}),e.monthPickerInstance=a.picker.create({containerEl:e.monthPickerPopover.$el.find(".calendar-month-picker"),value:[r],toolbar:e.params.monthPickerToolbar,rotateEffect:!1,toolbarCloseText:e.params.monthPickerCloseText,cols:[{values:s,displayValues:i}]})}closeMonthPicker(){const e=this;e.monthPickerPopover&&e.monthPickerPopover.opened&&e.monthPickerPopover.close();const n=e.monthPickerInstance.value[0],a=parseInt(e.$el.find(".calendar-month-current").attr("data-locale-month"),10),r=e.currentMonth,s=a-r,i=n-s;e.setYearMonth(e.currentYear,i,0)}openYearPicker(){const e=this,{$el:n,app:a}=e;if(!n||!n.length)return;n.append('
            '),e.yearPickerPopover=a.popover.create({el:n.find(".calendar-year-picker-popover"),targetEl:n.find(".calendar-year-selector"),backdrop:!0,backdropUnique:!0,on:{close(){e.closeYearPicker()},closed(){e.yearPickerPopover.$el&&e.yearPickerPopover.$el.remove(),e.yearPickerPopover.destroy(),e.yearPickerInstance&&(e.yearPickerInstance.close(),e.yearPickerInstance.destroy()),delete e.yearPickerInstance,delete e.yearPickerPopover}}}),e.yearPickerPopover.open();const r=e.currentYear;let s=e.params.yearPickerMin||new Date().getFullYear()-100;e.params.minDate&&(s=Math.max(s,new Date(e.params.minDate).getFullYear()));let i=e.params.yearPickerMax||new Date().getFullYear()+100;e.params.maxDate&&(i=Math.min(i,new Date(e.params.maxDate).getFullYear()));const o=[];for(let l=s;l<=i;l+=1)o.push(l);e.yearPickerInstance=a.picker.create({containerEl:e.yearPickerPopover.$el.find(".calendar-year-picker"),value:[r],toolbar:e.params.yearPickerToolbar,rotateEffect:!1,toolbarCloseText:e.params.yearPickerCloseText,cols:[{values:o}]})}closeYearPicker(){const e=this;e.yearPickerPopover&&e.yearPickerPopover.opened&&e.yearPickerPopover.close(),e.setYearMonth(e.yearPickerInstance.value[0],void 0,0)}openTimePicker(){const e=this,{$el:n,app:a,is12HoursFormat:r}=e;if(!n||!n.length)return;n.append('
            ');const s=[],i=[],o=r?1:0,l=r?12:23;for(let d=o;d<=l;d+=1)s.push(d);for(let d=0;d<=59;d+=1)i.push(d);let c;e.value&&e.value.length?c=[e.value[0].getHours(),e.value[0].getMinutes()]:c=[new Date().getHours(),new Date().getMinutes()],r&&(c.push(c[0]<12?"AM":"PM"),c[0]>12&&(c[0]-=12),c[0]===0&&(c[0]=12)),e.timePickerPopover=a.popover.create({el:n.find(".calendar-time-picker-popover"),targetEl:n.find(".calendar-time-selector .link"),backdrop:!0,backdropUnique:!0,on:{close(){e.closeTimePicker()},closed(){e.timePickerPopover.$el&&e.timePickerPopover.$el.remove(),e.timePickerPopover.destroy(),e.timePickerInstance&&(e.timePickerInstance.close(),e.timePickerInstance.destroy()),delete e.timePickerInstance,delete e.timePickerPopover}}}),e.timePickerPopover.open(),e.timePickerInstance=a.picker.create({containerEl:e.timePickerPopover.$el.find(".calendar-time-picker"),value:c,toolbar:e.params.timePickerToolbar,rotateEffect:!1,toolbarCloseText:e.params.timePickerCloseText,cols:[{values:s},{divider:!0,content:":"},{values:i,displayValues:i.map(d=>d<10?`0${d}`:d)},...r?[{values:["AM","PM"]}]:[]]})}closeTimePicker(){const e=this,{is12HoursFormat:n}=e;if(e.timePickerInstance){const a=e.timePickerInstance.value;let r=parseInt(a[0],10);const s=parseInt(a[1],10),i=e.timePickerInstance.value[2];n&&(i==="AM"&&r===12?r=0:i==="PM"&&r!==12&&(r+=12));let o=e.value&&e.value.length&&e.value[0];o?(o=new Date(o),o.setHours(r,s)):(o=new Date,o.setHours(r,s,0,0)),e.setValue([o]),e.timePickerPopover&&e.timePickerPopover.opened&&e.timePickerPopover.close()}}onOpen(){const e=this,{initialized:n,$el:a,app:r,$inputEl:s,inline:i,value:o,params:l}=e;e.closing=!1,e.opened=!0,e.opening=!0,e.attachCalendarEvents();const c=!o&&l.value;n?o&&e.setValue(o,0):o?e.setValue(o,0):l.value&&e.setValue(e.normalizeValues(l.value),0),e.updateCurrentMonthYear(),e.monthsTranslate=0,e.setMonthsTranslate(),c?e.updateValue():l.header&&o&&e.updateValue(!0),!i&&s&&s.length&&r.theme==="md"&&s.trigger("focus"),e.initialized=!0,e.$months.each(d=>{e.emit("local::monthAdd calendarMonthAdd",d)}),a&&a.trigger("calendar:open"),s&&s.trigger("calendar:open"),e.emit("local::open calendarOpen",e)}onOpened(){const e=this;e.opening=!1,e.$el&&e.$el.trigger("calendar:opened"),e.$inputEl&&e.$inputEl.trigger("calendar:opened"),e.emit("local::opened calendarOpened",e)}onClose(){const e=this,n=e.app;if(e.opening=!1,e.closing=!0,e.$inputEl)if(n.theme==="md")e.$inputEl.trigger("blur");else{const a=e.$inputEl.attr("validate"),r=e.$inputEl.attr("required");a&&r&&n.input.validate(e.$inputEl)}e.detachCalendarEvents&&e.detachCalendarEvents(),e.$el&&e.$el.trigger("calendar:close"),e.$inputEl&&e.$inputEl.trigger("calendar:close"),e.emit("local::close calendarClose",e)}onClosed(){const e=this;e.opened=!1,e.closing=!1,e.inline||lt(()=>{e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal}),e.timePickerInstance&&(e.timePickerInstance.destroy&&e.timePickerInstance.destroy(),delete e.timePickerInstance),e.$el&&e.$el.trigger("calendar:closed"),e.$inputEl&&e.$inputEl.trigger("calendar:closed"),e.emit("local::closed calendarClosed",e)}open(){const e=this,{app:n,opened:a,inline:r,$inputEl:s,params:i}=e;if(a)return;if(r){e.$el=C(e.render()),e.$el[0].f7Calendar=e,e.$wrapperEl=e.$el.find(".calendar-months-wrapper"),e.$months=e.$wrapperEl.find(".calendar-month"),e.$containerEl.append(e.$el),e.onOpen(),e.onOpened();return}let o=i.openIn;o==="auto"&&(o=e.isPopover()?"popover":"sheet");const l=e.render(),c={targetEl:s,scrollToEl:i.scrollToInput?s:void 0,content:l,backdrop:i.backdrop===!0||(o==="popover"||o==="customModal")&&n.params.popover.backdrop!==!1&&i.backdrop!==!1,closeByBackdropClick:i.closeByBackdropClick,on:{open(){const d=this;e.modal=d,e.$el=o==="popover"?d.$el.find(".calendar"):d.$el,e.$wrapperEl=e.$el.find(".calendar-months-wrapper"),e.$months=e.$wrapperEl.find(".calendar-month"),e.$el[0].f7Calendar=e,o==="customModal"&&C(e.$el).find(".calendar-close").once("click",()=>{e.close()}),e.onOpen()},opened(){e.onOpened()},close(){e.onClose()},closed(){e.onClosed()}}};o==="sheet"&&(c.push=i.sheetPush,c.swipeToClose=i.sheetSwipeToClose),i.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,[o]:c}}):(e.modal=n[o].create(c),e.modal.open())}close(){const e=this,{opened:n,inline:a}=e;if(n){if(a){e.onClose(),e.onClosed();return}e.params.routableModals&&e.view?e.view.router.back():e.modal.close()}}init(){const e=this;if(e.initInput(),e.inline){e.open(),e.emit("local::init calendarInit",e);return}!e.initialized&&e.params.value&&e.setValue(e.normalizeValues(e.params.value)),e.$inputEl&&e.attachInputEvents(),e.params.closeByOutsideClick&&e.attachHtmlEvents(),e.emit("local::init calendarInit",e)}destroy(){const e=this;if(e.destroyed)return;const{$el:n}=e;e.emit("local::beforeDestroy calendarBeforeDestroy",e),n&&n.trigger("calendar:beforedestroy"),e.close(),e.$inputEl&&e.detachInputEvents(),e.params.closeByOutsideClick&&e.detachHtmlEvents(),e.timePickerInstance&&(e.timePickerInstance.destroy&&e.timePickerInstance.destroy(),delete e.timePickerInstance),n&&n.length&&delete e.$el[0].f7Calendar,Ze(e),e.destroyed=!0}};const AC={name:"calendar",static:{Calendar:So},create(){const t=this;t.calendar=et({defaultSelector:".calendar",constructor:So,app:t,domProp:"f7Calendar"}),t.calendar.close=function(n){n===void 0&&(n=".calendar");const a=C(n);if(a.length===0)return;const r=a[0].f7Calendar;!r||r&&!r.opened||r.close()}},params:{calendar:{dateFormat:void 0,monthNames:"auto",monthNamesShort:"auto",dayNames:"auto",dayNamesShort:"auto",locale:void 0,firstDay:1,weekendDays:[0,6],multiple:!1,rangePicker:!1,rangePickerMinDays:1,rangePickerMaxDays:0,direction:"horizontal",minDate:null,maxDate:null,disabled:null,events:null,rangesClasses:null,touchMove:!0,animate:!0,closeOnSelect:!1,monthSelector:!0,monthPicker:!0,monthPickerToolbar:!0,monthPickerCloseText:"Done",yearSelector:!0,yearPicker:!0,yearPickerToolbar:!0,yearPickerMin:void 0,yearPickerMax:void 0,yearPickerCloseText:"Done",timePicker:!1,timePickerToolbar:!0,timePickerLabel:"Time",timePickerFormat:{hour:"numeric",minute:"numeric"},timePickerPlaceholder:"Select time",timePickerCloseText:"Done",weekHeader:!0,value:null,containerEl:null,openIn:"auto",sheetPush:!1,sheetSwipeToClose:void 0,formatValue:null,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,header:!1,headerPlaceholder:"Select date",toolbar:!0,toolbarCloseText:"Done",footer:!1,cssClass:null,routableModals:!1,view:null,url:"date/",backdrop:null,closeByBackdropClick:!0,renderWeekHeader:null,renderMonths:null,renderMonth:null,renderMonthSelector:null,renderYearSelector:null,renderHeader:null,renderFooter:null,renderToolbar:null,renderInline:null,renderPopover:null,renderSheet:null,render:null}}};function DC(t,e){const n=this,a=C(t),r=a.index(),s=n.cols[r];if(s.divider)return;s.$el=a,s.el=a[0],s.$itemsEl=s.$el.find(".picker-items"),s.items=s.$itemsEl.find(".picker-item");let i,o;s.replaceValues=function(u,p){s.detachEvents(),s.values=u,s.displayValues=p,s.$itemsEl.html(n.renderColumn(s,!0)),s.items=s.$itemsEl.find(".picker-item"),s.calcSize(),s.setValue(s.values[0],!0),s.attachEvents()},s.calcSize=function(){o=s.$el[0].offsetHeight,i=s.items[0].offsetHeight;const u=s.el.style.getPropertyValue("--f7-picker-scroll-padding");s.el.style.setProperty("--f7-picker-scroll-padding",`${(o-i)/2}px`),u||(s.$itemsEl[0].scrollTop=0)},s.setValue=function(u,p){const f=s.$itemsEl.find(`.picker-item[data-picker-value="${u}"]`).index();if(typeof f>"u"||f===-1)return;const h=f*i;s.$itemsEl[0].scrollTop=h,s.updateItems(f,h,p)},s.updateItems=function(u,p,f){typeof p>"u"&&(p=s.$itemsEl[0].scrollTop),typeof u>"u"&&(u=Math.round(p/i)),u<0&&(u=0),u>=s.items.length&&(u=s.items.length-1);const h=s.activeIndex;s.activeIndex=u,s.$itemsEl.find(".picker-item-selected").removeClass("picker-item-selected");const m=s.items.eq(u);m.addClass("picker-item-selected").children().transform(""),n.params.rotateEffect&&s.items.each(b=>{const w=C(b),v=(b.offsetTop-(o-i)/2-p)/i,y=Math.ceil(s.height/i/2)+1;let E=-24*v;E>180&&(E=180),E<-180&&(E=-180),Math.abs(v)>y?w.addClass("picker-item-far"):w.removeClass("picker-item-far"),w.children("span").transform(`translate3d(0, ${-v*i}px, -100px) rotateX(${E}deg)`)}),(f||typeof f>"u")&&(s.value=m.attr("data-picker-value"),s.displayValue=s.displayValues?s.displayValues[u]:s.value,h!==u&&(s.onChange&&s.onChange(n,s.value,s.displayValue),n.updateValue()))};function l(){s.updateItems()}function c(){const d=C(this).attr("data-picker-value");s.setValue(d)}s.attachEvents=function(){s.$itemsEl.on("scroll",l),s.items.on("click",c)},s.detachEvents=function(){s.items.off("click",c)},s.init=function(){s.calcSize(),r===0&&s.$el.addClass("picker-column-first"),r===n.cols.length-1&&s.$el.addClass("picker-column-last"),n.params.freeMode&&s.$el.addClass("picker-column-free-mode"),e&&s.updateItems(0),s.attachEvents()},s.destroy=function(){s.detachEvents()},s.init()}let To=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r=Ie(),s=fe();a.params=W({},e.params.picker,n);let i;if(a.params.containerEl&&(i=C(a.params.containerEl),i.length===0))return a;let o;a.params.inputEl&&(o=C(a.params.inputEl));let l=a.params.scrollToInput?o:void 0;if(a.params.scrollToEl){const m=C(a.params.scrollToEl);m.length>0&&(l=m)}W(a,{app:e,$containerEl:i,containerEl:i&&i[0],inline:i&&i.length>0,needsOriginFix:r.ios||s.navigator.userAgent.toLowerCase().indexOf("safari")>=0&&s.navigator.userAgent.toLowerCase().indexOf("chrome")<0&&!r.android,cols:[],$inputEl:o,inputEl:o&&o[0],$scrollToEl:l,initialized:!1,opened:!1,url:a.params.url});function c(){a.resizeCols()}function d(){a.open()}function u(m){m.preventDefault()}let p=null;function f(m){p=m.target}function h(m){if(a.destroyed||!a.params)return;const b=C(m.target);a.isPopover()||!a.opened||a.closing||b.closest('[class*="backdrop"]').length||(o&&o.length>0?p===m.target&&b[0]!==o[0]&&b.closest(".sheet-modal").length===0&&a.close():C(m.target).closest(".sheet-modal").length===0&&a.close())}return W(a,{attachResizeEvent(){e.on("resize",c)},detachResizeEvent(){e.off("resize",c)},attachInputEvents(){a.$inputEl.on("click",d),a.params.inputReadOnly&&(a.$inputEl.on("focus mousedown",u),a.$inputEl[0]&&(a.$inputEl[0].f7ValidateReadonly=!0))},detachInputEvents(){a.$inputEl.off("click",d),a.params.inputReadOnly&&(a.$inputEl.off("focus mousedown",u),a.$inputEl[0]&&delete a.$inputEl[0].f7ValidateReadonly)},attachHtmlEvents(){e.on("click",h),e.on("touchstart",f)},detachHtmlEvents(){e.off("click",h),e.off("touchstart",f)}}),a.init(),a}get view(){const{app:e,params:n,$inputEl:a}=this;let r;return n.view?r=n.view:a&&(r=a.parents(".view").length&&a.parents(".view")[0].f7View),r||(r=e.views.main),r}initInput(){const e=this;e.$inputEl&&e.params.inputReadOnly&&e.$inputEl.prop("readOnly",!0)}resizeCols(){const e=this;if(e.opened)for(let n=0;n=768)return!0}return!1}formatValue(){const e=this,{value:n,displayValue:a}=e;return e.params.formatValue?e.params.formatValue.call(e,n,a):n.join(" ")}setValue(e){const n=this;let a=0;if(n.cols.length===0){n.value=e,n.updateValue(e);return}for(let r=0;r!o.divider);for(let o=0;o=0||(n.value=a,n.displayValue=r,n.emit("local::change pickerChange",n,n.value,n.displayValue),n.inputEl&&(n.$inputEl.val(n.formatValue()),n.$inputEl.trigger("change")))}initColumn(e,n){const a=this;DC.call(a,e,n)}destroyColumn(e){const n=this,r=C(e).index();n.cols[r]&&n.cols[r].destroy&&n.cols[r].destroy()}renderToolbar(){const e=this;return e.params.renderToolbar?e.params.renderToolbar.call(e,e):T("div",{class:"toolbar toolbar-top"},T("div",{class:"toolbar-inner"},T("div",{class:"left"}),T("div",{class:"right"},T("a",{class:"link sheet-close popover-close"},e.params.toolbarCloseText))))}renderColumn(e,n){const a=`picker-column ${e.textAlign?`picker-column-${e.textAlign}`:""} ${e.cssClass||""}`;let r,s;return e.divider?r=` +
            `.trim()}y+=`
            ${F}
            `}return y=`
            ${y}
            `,y}renderWeekHeader(){const e=this;if(e.params.renderWeekHeader)return e.params.renderWeekHeader.call(e);const{params:n}=e;let a="";for(let r=0;r<7;r+=1){const s=r+n.firstDay>6?r-7+n.firstDay:r+n.firstDay,i=e.dayNamesShort[s];a+=`
            ${i}
            `}return T("div",{class:"calendar-week-header"},a)}renderMonthSelector(){const e=this;return e.params.renderMonthSelector?e.params.renderMonthSelector.call(e):T("div",{class:"calendar-month-selector"},T("a",{class:"link icon-only calendar-prev-month-button"},T("i",{class:"icon icon-prev"})),e.params.monthPicker?T("a",{class:"current-month-value link"}):T("span",{class:"current-month-value"}),T("a",{class:"link icon-only calendar-next-month-button"},T("i",{class:"icon icon-next"})))}renderYearSelector(){const e=this;return e.params.renderYearSelector?e.params.renderYearSelector.call(e):T("div",{class:"calendar-year-selector"},T("a",{class:"link icon-only calendar-prev-year-button"},T("i",{class:"icon icon-prev"})),e.params.yearPicker?T("a",{class:"current-year-value link"}):T("span",{class:"current-year-value"}),T("a",{class:"link icon-only calendar-next-year-button"},T("i",{class:"icon icon-next"})))}renderTimeSelector(){const e=this,n=e.value&&e.value[0];let a;return n&&(a=e.timeSelectorFormatter(n)),T("div",{class:"calendar-time-selector"},T("span",null,e.params.timePickerLabel),T("a",{class:"link"},a||e.params.timePickerPlaceholder))}renderHeader(){const e=this;return e.params.renderHeader?e.params.renderHeader.call(e):T("div",{class:"calendar-header"},T("div",{class:"calendar-selected-date"},e.params.headerPlaceholder))}renderFooter(){const e=this,n=e.app;return e.params.renderFooter?e.params.renderFooter.call(e):T("div",{class:"calendar-footer"},T("a",{class:`${n.theme==="md"?"button button-round":"link"} calendar-close sheet-close popover-close`},e.params.toolbarCloseText))}renderToolbar(){const e=this;return e.params.renderToolbar?e.params.renderToolbar.call(e,e):T("div",{class:"toolbar toolbar-top"},T("div",{class:"toolbar-inner"},e.params.monthSelector?e.renderMonthSelector():"",e.params.yearSelector?e.renderYearSelector():""))}renderInline(){const e=this,{cssClass:n,toolbar:a,header:r,footer:s,rangePicker:i,weekHeader:o}=e.params,{value:l,hasTimePicker:c}=e,d=l&&l.length?l[0]:new Date().setHours(0,0,0);return T("div",{class:`calendar calendar-inline ${i?"calendar-range":""} ${n||""}`},r&&e.renderHeader(),a&&e.renderToolbar(),o&&e.renderWeekHeader(),T("div",{class:"calendar-months"},e.renderMonths(d)),c&&e.renderTimeSelector(),s&&e.renderFooter())}renderCustomModal(){const e=this,{cssClass:n,toolbar:a,header:r,footer:s,rangePicker:i,weekHeader:o}=e.params,{value:l,hasTimePicker:c}=e,d=l&&l.length?l[0]:new Date().setHours(0,0,0);return T("div",{class:`calendar calendar-modal ${i?"calendar-range":""} ${n||""}`},r&&e.renderHeader(),a&&e.renderToolbar(),o&&e.renderWeekHeader(),T("div",{class:"calendar-months"},e.renderMonths(d)),c&&e.renderTimeSelector(),s&&e.renderFooter())}renderSheet(){const e=this,{cssClass:n,toolbar:a,header:r,footer:s,rangePicker:i,weekHeader:o}=e.params,{value:l,hasTimePicker:c}=e,d=l&&l.length?l[0]:new Date().setHours(0,0,0);return T("div",{class:`sheet-modal calendar calendar-sheet ${i?"calendar-range":""} ${n||""}`},r&&e.renderHeader(),a&&e.renderToolbar(),o&&e.renderWeekHeader(),T("div",{class:"sheet-modal-inner calendar-months"},e.renderMonths(d)),c&&e.renderTimeSelector(),s&&e.renderFooter())}renderPopover(){const e=this,{cssClass:n,toolbar:a,header:r,footer:s,rangePicker:i,weekHeader:o}=e.params,{value:l,hasTimePicker:c}=e,d=l&&l.length?l[0]:new Date().setHours(0,0,0);return T("div",{class:"popover calendar-popover"},T("div",{class:"popover-inner"},T("div",{class:`calendar ${i?"calendar-range":""} ${n||""}`},r&&e.renderHeader(),a&&e.renderToolbar(),o&&e.renderWeekHeader(),T("div",{class:"calendar-months"},e.renderMonths(d)),c&&e.renderTimeSelector(),s&&e.renderFooter())))}render(){const e=this,{params:n}=e;if(n.render)return n.render.call(e);if(!e.inline){let a=n.openIn;return a==="auto"&&(a=e.isPopover()?"popover":"sheet"),a==="popover"?e.renderPopover():a==="sheet"?e.renderSheet():e.renderCustomModal()}return e.renderInline()}openMonthPicker(){const e=this,{$el:n,app:a}=e;if(!n||!n.length)return;n.append('
            '),e.monthPickerPopover=a.popover.create({el:n.find(".calendar-month-picker-popover"),targetEl:n.find(".calendar-month-selector"),backdrop:!0,backdropUnique:!0,on:{close(){e.closeMonthPicker()},closed(){e.monthPickerPopover.$el&&e.monthPickerPopover.$el.remove(),e.monthPickerPopover.destroy(),e.monthPickerInstance&&(e.monthPickerInstance.close(),e.monthPickerInstance.destroy()),delete e.monthPickerInstance,delete e.monthPickerPopover}}}),e.monthPickerPopover.open();const r=parseInt(e.$el.find(".calendar-month-current").attr("data-locale-month"),10),s=[],i=[];e.monthNames.forEach((o,l)=>{s.push(l),i.push(o)}),e.monthPickerInstance=a.picker.create({containerEl:e.monthPickerPopover.$el.find(".calendar-month-picker"),value:[r],toolbar:e.params.monthPickerToolbar,rotateEffect:!1,toolbarCloseText:e.params.monthPickerCloseText,cols:[{values:s,displayValues:i}]})}closeMonthPicker(){const e=this;e.monthPickerPopover&&e.monthPickerPopover.opened&&e.monthPickerPopover.close();const n=e.monthPickerInstance.value[0],a=parseInt(e.$el.find(".calendar-month-current").attr("data-locale-month"),10),r=e.currentMonth,s=a-r,i=n-s;e.setYearMonth(e.currentYear,i,0)}openYearPicker(){const e=this,{$el:n,app:a}=e;if(!n||!n.length)return;n.append('
            '),e.yearPickerPopover=a.popover.create({el:n.find(".calendar-year-picker-popover"),targetEl:n.find(".calendar-year-selector"),backdrop:!0,backdropUnique:!0,on:{close(){e.closeYearPicker()},closed(){e.yearPickerPopover.$el&&e.yearPickerPopover.$el.remove(),e.yearPickerPopover.destroy(),e.yearPickerInstance&&(e.yearPickerInstance.close(),e.yearPickerInstance.destroy()),delete e.yearPickerInstance,delete e.yearPickerPopover}}}),e.yearPickerPopover.open();const r=e.currentYear;let s=e.params.yearPickerMin||new Date().getFullYear()-100;e.params.minDate&&(s=Math.max(s,new Date(e.params.minDate).getFullYear()));let i=e.params.yearPickerMax||new Date().getFullYear()+100;e.params.maxDate&&(i=Math.min(i,new Date(e.params.maxDate).getFullYear()));const o=[];for(let l=s;l<=i;l+=1)o.push(l);e.yearPickerInstance=a.picker.create({containerEl:e.yearPickerPopover.$el.find(".calendar-year-picker"),value:[r],toolbar:e.params.yearPickerToolbar,rotateEffect:!1,toolbarCloseText:e.params.yearPickerCloseText,cols:[{values:o}]})}closeYearPicker(){const e=this;e.yearPickerPopover&&e.yearPickerPopover.opened&&e.yearPickerPopover.close(),e.setYearMonth(e.yearPickerInstance.value[0],void 0,0)}openTimePicker(){const e=this,{$el:n,app:a,is12HoursFormat:r}=e;if(!n||!n.length)return;n.append('
            ');const s=[],i=[],o=r?1:0,l=r?12:23;for(let d=o;d<=l;d+=1)s.push(d);for(let d=0;d<=59;d+=1)i.push(d);let c;e.value&&e.value.length?c=[e.value[0].getHours(),e.value[0].getMinutes()]:c=[new Date().getHours(),new Date().getMinutes()],r&&(c.push(c[0]<12?"AM":"PM"),c[0]>12&&(c[0]-=12),c[0]===0&&(c[0]=12)),e.timePickerPopover=a.popover.create({el:n.find(".calendar-time-picker-popover"),targetEl:n.find(".calendar-time-selector .link"),backdrop:!0,backdropUnique:!0,on:{close(){e.closeTimePicker()},closed(){e.timePickerPopover.$el&&e.timePickerPopover.$el.remove(),e.timePickerPopover.destroy(),e.timePickerInstance&&(e.timePickerInstance.close(),e.timePickerInstance.destroy()),delete e.timePickerInstance,delete e.timePickerPopover}}}),e.timePickerPopover.open(),e.timePickerInstance=a.picker.create({containerEl:e.timePickerPopover.$el.find(".calendar-time-picker"),value:c,toolbar:e.params.timePickerToolbar,rotateEffect:!1,toolbarCloseText:e.params.timePickerCloseText,cols:[{values:s},{divider:!0,content:":"},{values:i,displayValues:i.map(d=>d<10?`0${d}`:d)},...r?[{values:["AM","PM"]}]:[]]})}closeTimePicker(){const e=this,{is12HoursFormat:n}=e;if(e.timePickerInstance){const a=e.timePickerInstance.value;let r=parseInt(a[0],10);const s=parseInt(a[1],10),i=e.timePickerInstance.value[2];n&&(i==="AM"&&r===12?r=0:i==="PM"&&r!==12&&(r+=12));let o=e.value&&e.value.length&&e.value[0];o?(o=new Date(o),o.setHours(r,s)):(o=new Date,o.setHours(r,s,0,0)),e.setValue([o]),e.timePickerPopover&&e.timePickerPopover.opened&&e.timePickerPopover.close()}}onOpen(){const e=this,{initialized:n,$el:a,app:r,$inputEl:s,inline:i,value:o,params:l}=e;e.closing=!1,e.opened=!0,e.opening=!0,e.attachCalendarEvents();const c=!o&&l.value;n?o&&e.setValue(o,0):o?e.setValue(o,0):l.value&&e.setValue(e.normalizeValues(l.value),0),e.updateCurrentMonthYear(),e.monthsTranslate=0,e.setMonthsTranslate(),c?e.updateValue():l.header&&o&&e.updateValue(!0),!i&&s&&s.length&&r.theme==="md"&&s.trigger("focus"),e.initialized=!0,e.$months.each(d=>{e.emit("local::monthAdd calendarMonthAdd",d)}),a&&a.trigger("calendar:open"),s&&s.trigger("calendar:open"),e.emit("local::open calendarOpen",e)}onOpened(){const e=this;e.opening=!1,e.$el&&e.$el.trigger("calendar:opened"),e.$inputEl&&e.$inputEl.trigger("calendar:opened"),e.emit("local::opened calendarOpened",e)}onClose(){const e=this,n=e.app;if(e.opening=!1,e.closing=!0,e.$inputEl)if(n.theme==="md")e.$inputEl.trigger("blur");else{const a=e.$inputEl.attr("validate"),r=e.$inputEl.attr("required");a&&r&&n.input.validate(e.$inputEl)}e.detachCalendarEvents&&e.detachCalendarEvents(),e.$el&&e.$el.trigger("calendar:close"),e.$inputEl&&e.$inputEl.trigger("calendar:close"),e.emit("local::close calendarClose",e)}onClosed(){const e=this;e.opened=!1,e.closing=!1,e.inline||lt(()=>{e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal}),e.timePickerInstance&&(e.timePickerInstance.destroy&&e.timePickerInstance.destroy(),delete e.timePickerInstance),e.$el&&e.$el.trigger("calendar:closed"),e.$inputEl&&e.$inputEl.trigger("calendar:closed"),e.emit("local::closed calendarClosed",e)}open(){const e=this,{app:n,opened:a,inline:r,$inputEl:s,params:i}=e;if(a)return;if(r){e.$el=C(e.render()),e.$el[0].f7Calendar=e,e.$wrapperEl=e.$el.find(".calendar-months-wrapper"),e.$months=e.$wrapperEl.find(".calendar-month"),e.$containerEl.append(e.$el),e.onOpen(),e.onOpened();return}let o=i.openIn;o==="auto"&&(o=e.isPopover()?"popover":"sheet");const l=e.render(),c={targetEl:s,scrollToEl:i.scrollToInput?s:void 0,content:l,backdrop:i.backdrop===!0||(o==="popover"||o==="customModal")&&n.params.popover.backdrop!==!1&&i.backdrop!==!1,closeByBackdropClick:i.closeByBackdropClick,on:{open(){const d=this;e.modal=d,e.$el=o==="popover"?d.$el.find(".calendar"):d.$el,e.$wrapperEl=e.$el.find(".calendar-months-wrapper"),e.$months=e.$wrapperEl.find(".calendar-month"),e.$el[0].f7Calendar=e,o==="customModal"&&C(e.$el).find(".calendar-close").once("click",()=>{e.close()}),e.onOpen()},opened(){e.onOpened()},close(){e.onClose()},closed(){e.onClosed()}}};o==="sheet"&&(c.push=i.sheetPush,c.swipeToClose=i.sheetSwipeToClose),i.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,[o]:c}}):(e.modal=n[o].create(c),e.modal.open())}close(){const e=this,{opened:n,inline:a}=e;if(n){if(a){e.onClose(),e.onClosed();return}e.params.routableModals&&e.view?e.view.router.back():e.modal.close()}}init(){const e=this;if(e.initInput(),e.inline){e.open(),e.emit("local::init calendarInit",e);return}!e.initialized&&e.params.value&&e.setValue(e.normalizeValues(e.params.value)),e.$inputEl&&e.attachInputEvents(),e.params.closeByOutsideClick&&e.attachHtmlEvents(),e.emit("local::init calendarInit",e)}destroy(){const e=this;if(e.destroyed)return;const{$el:n}=e;e.emit("local::beforeDestroy calendarBeforeDestroy",e),n&&n.trigger("calendar:beforedestroy"),e.close(),e.$inputEl&&e.detachInputEvents(),e.params.closeByOutsideClick&&e.detachHtmlEvents(),e.timePickerInstance&&(e.timePickerInstance.destroy&&e.timePickerInstance.destroy(),delete e.timePickerInstance),n&&n.length&&delete e.$el[0].f7Calendar,Ze(e),e.destroyed=!0}};const LC={name:"calendar",static:{Calendar:So},create(){const t=this;t.calendar=et({defaultSelector:".calendar",constructor:So,app:t,domProp:"f7Calendar"}),t.calendar.close=function(n){n===void 0&&(n=".calendar");const a=C(n);if(a.length===0)return;const r=a[0].f7Calendar;!r||r&&!r.opened||r.close()}},params:{calendar:{dateFormat:void 0,monthNames:"auto",monthNamesShort:"auto",dayNames:"auto",dayNamesShort:"auto",locale:void 0,firstDay:1,weekendDays:[0,6],multiple:!1,rangePicker:!1,rangePickerMinDays:1,rangePickerMaxDays:0,direction:"horizontal",minDate:null,maxDate:null,disabled:null,events:null,rangesClasses:null,touchMove:!0,animate:!0,closeOnSelect:!1,monthSelector:!0,monthPicker:!0,monthPickerToolbar:!0,monthPickerCloseText:"Done",yearSelector:!0,yearPicker:!0,yearPickerToolbar:!0,yearPickerMin:void 0,yearPickerMax:void 0,yearPickerCloseText:"Done",timePicker:!1,timePickerToolbar:!0,timePickerLabel:"Time",timePickerFormat:{hour:"numeric",minute:"numeric"},timePickerPlaceholder:"Select time",timePickerCloseText:"Done",weekHeader:!0,value:null,containerEl:null,openIn:"auto",sheetPush:!1,sheetSwipeToClose:void 0,formatValue:null,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,header:!1,headerPlaceholder:"Select date",toolbar:!0,toolbarCloseText:"Done",footer:!1,cssClass:null,routableModals:!1,view:null,url:"date/",backdrop:null,closeByBackdropClick:!0,renderWeekHeader:null,renderMonths:null,renderMonth:null,renderMonthSelector:null,renderYearSelector:null,renderHeader:null,renderFooter:null,renderToolbar:null,renderInline:null,renderPopover:null,renderSheet:null,render:null}}};function RC(t,e){const n=this,a=C(t),r=a.index(),s=n.cols[r];if(s.divider)return;s.$el=a,s.el=a[0],s.$itemsEl=s.$el.find(".picker-items"),s.items=s.$itemsEl.find(".picker-item");let i,o;s.replaceValues=function(u,p){s.detachEvents(),s.values=u,s.displayValues=p,s.$itemsEl.html(n.renderColumn(s,!0)),s.items=s.$itemsEl.find(".picker-item"),s.calcSize(),s.setValue(s.values[0],!0),s.attachEvents()},s.calcSize=function(){o=s.$el[0].offsetHeight,i=s.items[0].offsetHeight;const u=s.el.style.getPropertyValue("--f7-picker-scroll-padding");s.el.style.setProperty("--f7-picker-scroll-padding",`${(o-i)/2}px`),u||(s.$itemsEl[0].scrollTop=0)},s.setValue=function(u,p){const f=s.$itemsEl.find(`.picker-item[data-picker-value="${u}"]`).index();if(typeof f>"u"||f===-1)return;const h=f*i;s.$itemsEl[0].scrollTop=h,s.updateItems(f,h,p)},s.updateItems=function(u,p,f){typeof p>"u"&&(p=s.$itemsEl[0].scrollTop),typeof u>"u"&&(u=Math.round(p/i)),u<0&&(u=0),u>=s.items.length&&(u=s.items.length-1);const h=s.activeIndex;s.activeIndex=u,s.$itemsEl.find(".picker-item-selected").removeClass("picker-item-selected");const m=s.items.eq(u);m.addClass("picker-item-selected").children().transform(""),n.params.rotateEffect&&s.items.each(b=>{const w=C(b),v=(b.offsetTop-(o-i)/2-p)/i,y=Math.ceil(s.height/i/2)+1;let E=-24*v;E>180&&(E=180),E<-180&&(E=-180),Math.abs(v)>y?w.addClass("picker-item-far"):w.removeClass("picker-item-far"),w.children("span").transform(`translate3d(0, ${-v*i}px, -100px) rotateX(${E}deg)`)}),(f||typeof f>"u")&&(s.value=m.attr("data-picker-value"),s.displayValue=s.displayValues?s.displayValues[u]:s.value,h!==u&&(s.onChange&&s.onChange(n,s.value,s.displayValue),n.updateValue()))};function l(){s.updateItems()}function c(){const d=C(this).attr("data-picker-value");s.setValue(d)}s.attachEvents=function(){s.$itemsEl.on("scroll",l),s.items.on("click",c)},s.detachEvents=function(){s.items.off("click",c)},s.init=function(){s.calcSize(),r===0&&s.$el.addClass("picker-column-first"),r===n.cols.length-1&&s.$el.addClass("picker-column-last"),n.params.freeMode&&s.$el.addClass("picker-column-free-mode"),e&&s.updateItems(0),s.attachEvents()},s.destroy=function(){s.detachEvents()},s.init()}let To=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r=Ie(),s=fe();a.params=W({},e.params.picker,n);let i;if(a.params.containerEl&&(i=C(a.params.containerEl),i.length===0))return a;let o;a.params.inputEl&&(o=C(a.params.inputEl));let l=a.params.scrollToInput?o:void 0;if(a.params.scrollToEl){const m=C(a.params.scrollToEl);m.length>0&&(l=m)}W(a,{app:e,$containerEl:i,containerEl:i&&i[0],inline:i&&i.length>0,needsOriginFix:r.ios||s.navigator.userAgent.toLowerCase().indexOf("safari")>=0&&s.navigator.userAgent.toLowerCase().indexOf("chrome")<0&&!r.android,cols:[],$inputEl:o,inputEl:o&&o[0],$scrollToEl:l,initialized:!1,opened:!1,url:a.params.url});function c(){a.resizeCols()}function d(){a.open()}function u(m){m.preventDefault()}let p=null;function f(m){p=m.target}function h(m){if(a.destroyed||!a.params)return;const b=C(m.target);a.isPopover()||!a.opened||a.closing||b.closest('[class*="backdrop"]').length||(o&&o.length>0?p===m.target&&b[0]!==o[0]&&b.closest(".sheet-modal").length===0&&a.close():C(m.target).closest(".sheet-modal").length===0&&a.close())}return W(a,{attachResizeEvent(){e.on("resize",c)},detachResizeEvent(){e.off("resize",c)},attachInputEvents(){a.$inputEl.on("click",d),a.params.inputReadOnly&&(a.$inputEl.on("focus mousedown",u),a.$inputEl[0]&&(a.$inputEl[0].f7ValidateReadonly=!0))},detachInputEvents(){a.$inputEl.off("click",d),a.params.inputReadOnly&&(a.$inputEl.off("focus mousedown",u),a.$inputEl[0]&&delete a.$inputEl[0].f7ValidateReadonly)},attachHtmlEvents(){e.on("click",h),e.on("touchstart",f)},detachHtmlEvents(){e.off("click",h),e.off("touchstart",f)}}),a.init(),a}get view(){const{app:e,params:n,$inputEl:a}=this;let r;return n.view?r=n.view:a&&(r=a.parents(".view").length&&a.parents(".view")[0].f7View),r||(r=e.views.main),r}initInput(){const e=this;e.$inputEl&&e.params.inputReadOnly&&e.$inputEl.prop("readOnly",!0)}resizeCols(){const e=this;if(e.opened)for(let n=0;n=768)return!0}return!1}formatValue(){const e=this,{value:n,displayValue:a}=e;return e.params.formatValue?e.params.formatValue.call(e,n,a):n.join(" ")}setValue(e){const n=this;let a=0;if(n.cols.length===0){n.value=e,n.updateValue(e);return}for(let r=0;r!o.divider);for(let o=0;o=0||(n.value=a,n.displayValue=r,n.emit("local::change pickerChange",n,n.value,n.displayValue),n.inputEl&&(n.$inputEl.val(n.formatValue()),n.$inputEl.trigger("change")))}initColumn(e,n){const a=this;RC.call(a,e,n)}destroyColumn(e){const n=this,r=C(e).index();n.cols[r]&&n.cols[r].destroy&&n.cols[r].destroy()}renderToolbar(){const e=this;return e.params.renderToolbar?e.params.renderToolbar.call(e,e):T("div",{class:"toolbar toolbar-top"},T("div",{class:"toolbar-inner"},T("div",{class:"left"}),T("div",{class:"right"},T("a",{class:"link sheet-close popover-close"},e.params.toolbarCloseText))))}renderColumn(e,n){const a=`picker-column ${e.textAlign?`picker-column-${e.textAlign}`:""} ${e.cssClass||""}`;let r,s;return e.divider?r=`
            ${e.content}
            `:(s=e.values.map((i,o)=>`
            @@ -171,17 +171,17 @@ ${l.toString()}`)}return r&&(typeof r=="string"?o+=`?${r}`:Object.keys(r).length
            ${s}
            - `),n?s.trim():r.trim()}renderInline(){const e=this,{rotateEffect:n,cssClass:a,toolbar:r}=e.params;return T("div",{class:`picker picker-inline ${n?"picker-3d":""} ${a||""}`},r&&e.renderToolbar(),T("div",{class:"picker-columns"},e.cols.map(i=>e.renderColumn(i)),T("div",{class:"picker-center-highlight"})))}renderSheet(){const e=this,{rotateEffect:n,cssClass:a,toolbar:r}=e.params;return T("div",{class:`sheet-modal picker picker-sheet ${n?"picker-3d":""} ${a||""}`},r&&e.renderToolbar(),T("div",{class:"sheet-modal-inner picker-columns"},e.cols.map(i=>e.renderColumn(i)),T("div",{class:"picker-center-highlight"})))}renderPopover(){const e=this,{rotateEffect:n,cssClass:a,toolbar:r}=e.params;return T("div",{class:"popover picker-popover"},T("div",{class:"popover-inner"},T("div",{class:`picker ${n?"picker-3d":""} ${a||""}`},r&&e.renderToolbar(),T("div",{class:"picker-columns"},e.cols.map(i=>e.renderColumn(i)),T("div",{class:"picker-center-highlight"})))))}render(){const e=this;return e.params.render?e.params.render.call(e):e.inline?e.renderInline():e.isPopover()?e.renderPopover():e.renderSheet()}onOpen(){const e=this,{initialized:n,$el:a,app:r,$inputEl:s,inline:i,value:o,params:l}=e;e.opened=!0,e.closing=!1,e.opening=!0,e.attachResizeEvent(),a.find(".picker-column").each(c=>{let d=!0;(!n&&l.value||n&&o)&&(d=!1),e.initColumn(c,d)}),n?o&&e.setValue(o):o?e.setValue(o):l.value&&e.setValue(l.value),!i&&s&&s.length&&r.theme==="md"&&s.trigger("focus"),e.initialized=!0,a&&a.trigger("picker:open"),s&&s.trigger("picker:open"),e.emit("local::open pickerOpen",e)}onOpened(){const e=this;e.opening=!1,e.$el&&e.$el.trigger("picker:opened"),e.$inputEl&&e.$inputEl.trigger("picker:opened"),e.emit("local::opened pickerOpened",e)}onClose(){const e=this,n=e.app;if(e.opening=!1,e.closing=!0,e.detachResizeEvent(),e.cols.forEach(a=>{a.destroy&&a.destroy()}),e.$inputEl)if(n.theme==="md")e.$inputEl.trigger("blur");else{const a=e.$inputEl.attr("validate"),r=e.$inputEl.attr("required");a&&r&&n.input.validate(e.$inputEl)}e.$el&&e.$el.trigger("picker:close"),e.$inputEl&&e.$inputEl.trigger("picker:close"),e.emit("local::close pickerClose",e)}onClosed(){const e=this;e.opened=!1,e.closing=!1,e.inline||lt(()=>{e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal}),e.$el&&e.$el.trigger("picker:closed"),e.$inputEl&&e.$inputEl.trigger("picker:closed"),e.emit("local::closed pickerClosed",e)}open(){const e=this,{app:n,opened:a,inline:r,$inputEl:s,$scrollToEl:i,params:o}=e;if(a)return;if(e.cols.length===0&&o.cols.length&&o.cols.forEach(u=>{e.cols.push(u)}),r){e.$el=C(e.render()),e.$el[0].f7Picker=e,e.$containerEl.append(e.$el),e.onOpen(),e.onOpened();return}const l=e.isPopover(),c=l?"popover":"sheet",d={targetEl:s,scrollToEl:i,content:e.render(),backdrop:typeof o.backdrop<"u"?o.backdrop:l,on:{open(){const u=this;e.modal=u,e.$el=l?u.$el.find(".picker"):u.$el,e.$el[0].f7Picker=e,e.onOpen()},opened(){e.onOpened()},close(){e.onClose()},closed(){e.onClosed()}}};c==="sheet"&&(d.push=o.sheetPush,d.swipeToClose=o.sheetSwipeToClose),o.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,[c]:d}}):(e.modal=n[c].create(d),e.modal.open())}close(){const e=this,{opened:n,inline:a}=e;if(n){if(a){e.onClose(),e.onClosed();return}e.params.routableModals&&e.view?e.view.router.back():e.modal.close()}}init(){const e=this;if(e.initInput(),e.inline){e.open(),e.emit("local::init pickerInit",e);return}!e.initialized&&e.params.value&&e.setValue(e.params.value),e.$inputEl&&e.attachInputEvents(),e.params.closeByOutsideClick&&e.attachHtmlEvents(),e.emit("local::init pickerInit",e)}destroy(){const e=this;if(e.destroyed)return;const{$el:n}=e;e.emit("local::beforeDestroy pickerBeforeDestroy",e),n&&n.trigger("picker:beforedestroy"),e.close(),e.$inputEl&&e.detachInputEvents(),e.params.closeByOutsideClick&&e.detachHtmlEvents(),n&&n.length&&delete e.$el[0].f7Picker,Ze(e),e.destroyed=!0}};const LC={name:"picker",static:{Picker:To},create(){const t=this;t.picker=et({defaultSelector:".picker",constructor:To,app:t,domProp:"f7Picker"}),t.picker.close=function(n){n===void 0&&(n=".picker");const a=C(n);if(a.length===0)return;const r=a[0].f7Picker;!r||r&&!r.opened||r.close()}},params:{picker:{rotateEffect:!1,freeMode:!1,cols:[],containerEl:null,openIn:"auto",sheetPush:!1,sheetSwipeToClose:void 0,backdrop:void 0,formatValue:null,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,scrollToEl:void 0,toolbar:!0,toolbarCloseText:"Done",cssClass:null,routableModals:!1,view:null,url:"select/",renderToolbar:null,render:null}}},RC={handle(t,e){const n=this,a=C(t),r=a[0].scrollTop,s=a[0].scrollHeight,i=a[0].offsetHeight;let o=a[0].getAttribute("data-infinite-distance");const l=a.find(".virtual-list");let c;const d=a.hasClass("infinite-scroll-top");if(o||(o=50),typeof o=="string"&&o.indexOf("%")>=0&&(o=parseInt(o,10)/100*i),o>i&&(o=i),d)r=s-o){if(l.length>0&&(c=l.eq(-1)[0].f7VirtualList,c&&!c.reachEnd&&!c.params.updatableScroll))return;a.trigger("infinite",e),n.emit("infinite",a[0],e)}},create(t){const e=C(t),n=this;function a(r){n.infiniteScroll.handle(this,r)}e.each(r=>{r.f7InfiniteScrollHandler=a,r.addEventListener("scroll",r.f7InfiniteScrollHandler)})},destroy(t){C(t).each(n=>{n.removeEventListener("scroll",n.f7InfiniteScrollHandler),delete n.f7InfiniteScrollHandler})}},HC={name:"infiniteScroll",create(){Ct(this,{infiniteScroll:RC})},on:{tabMounted(t){const e=this,n=C(t),a=n.find(".infinite-scroll-content");n.is(".infinite-scroll-content")&&a.add(n),a.each(r=>{e.infiniteScroll.create(r)})},tabBeforeRemove(t){const e=C(t),n=this,a=e.find(".infinite-scroll-content");e.is(".infinite-scroll-content")&&a.add(e),a.each(r=>{n.infiniteScroll.destroy(r)})},pageInit(t){const e=this;t.$el.find(".infinite-scroll-content").each(n=>{e.infiniteScroll.create(n)})},pageBeforeRemove(t){const e=this;t.$el.find(".infinite-scroll-content").each(n=>{e.infiniteScroll.destroy(n)})}}};let Po=class extends Ue{constructor(e,n){super({},[e]);const a=this,r=Ie(),s=Xe(),i=C(n),o=i.find(".ptr-preloader");a.$el=i,a.el=i[0],a.app=e,a.bottom=a.$el.hasClass("ptr-bottom"),a.useModulesParams({});const l=e.theme==="md",c=e.theme==="ios";a.done=function(){const ie=l?o:i,le=be=>{C(be.target).closest(o).length||(i.removeClass("ptr-transitioning ptr-pull-up ptr-pull-down ptr-closing"),i.trigger("ptr:done"),a.emit("local::done ptrDone",i[0]),ie.off("transitionend",le))};return ie.on("transitionend",le),i.removeClass("ptr-refreshing").addClass("ptr-transitioning ptr-closing"),a},a.refresh=function(){return i.hasClass("ptr-refreshing")||(i.addClass("ptr-transitioning ptr-refreshing"),i.trigger("ptr:refresh",a.done),a.emit("local::refresh ptrRefresh",i[0],a.done)),a},a.mousewheel=i.attr("data-ptr-mousewheel")==="true";let d,u,p;const f={};let h,m,b=!1,w=!1,g=!1,v=0,y,E,k,$,M,x,F=!1,S,I,B;const P=i.parents(".page");if((P.find(".navbar").length>0||P.parents(".view").children(".navbars").length>0)&&(F=!0),P.hasClass("no-navbar")&&(F=!1),!a.bottom){const ne=e.navbar.getElByPage(P[0]);if(ne){const ie=C(ne),le=ie.hasClass("navbar-large-transparent")||ie.hasClass("navbar-large")&&ie.hasClass("navbar-transparent"),be=ie.hasClass("navbar-transparent")&&!ie.hasClass("navbar-large");le?i.addClass("ptr-with-navbar-large-transparent"):be&&i.addClass("ptr-with-navbar-transparent")}}!F&&!a.bottom&&i.addClass("ptr-no-navbar"),i.attr("data-ptr-distance")?M=!0:l?$=66:c&&($=44);function L(ne){ne===void 0&&(ne=0);const ie=o.find(".preloader-inner-line"),le=1/ie.length;ie.forEach((be,oe)=>{const ce=(ne-oe*le)/le;be.style.opacity=Math.max(Math.min(ce,1),0)*.27})}function V(){o.find(".preloader-inner-line").css("opacity","")}function H(ne){if(ne.isTrusted){if(u)if(r.os==="android"){if("targetTouches"in ne&&ne.targetTouches.length>1)return}else return;i.hasClass("ptr-refreshing")||C(ne.target).closest(".sortable-handler, .ptr-ignore, .card-expandable.card-opened").length||(p=!1,x=!1,u=!0,h=void 0,k=void 0,ne.type==="touchstart"&&(d=ne.targetTouches[0].identifier),f.x=ne.type==="touchstart"?ne.targetTouches[0].pageX:ne.pageX,f.y=ne.type==="touchstart"?ne.targetTouches[0].pageY:ne.pageY)}}function D(ne){if(!u||!ne.isTrusted)return;let ie,le,be;if(ne.type==="touchmove"){if(d&&ne.touches)for(let ce=0;ce"u"&&(h=!!(h||Math.abs(le-f.y)>Math.abs(ie-f.x))),!h){u=!1;return}if(E=i[0].scrollTop,!p){i.removeClass("ptr-transitioning"),c&&L(0);let ce;if(S=i[0].scrollHeight,I=i[0].offsetHeight,a.bottom&&(B=S-I),E>S){u=!1;return}const pe=C(ne.target).closest(".ptr-watch-scroll");if(pe.length&&pe.each(R=>{R!==n&&R.scrollHeight>R.offsetHeight&&C(R).css("overflow")==="auto"&&(!a.bottom&&R.scrollTop>0||a.bottom&&R.scrollTop=0&&($=S*parseInt($,10)/100)),v=i.hasClass("ptr-refreshing")?$:0,S===I||r.os!=="ios"||l?w=!0:w=!1,g=!1}if(p=!0,m=le-f.y,typeof k>"u"&&(a.bottom?E!==B:E!==0)&&(k=!0),a.bottom?m<0&&E>=B||E>B:m>0&&E<=0||E<0){r.os==="ios"&&parseInt(r.osVersion.split(".")[0],10)>7&&(!a.bottom&&E===0&&!k&&(w=!0),a.bottom&&E===B&&!k&&(w=!0)),!w&&a.bottom&&!l&&(i.css("-webkit-overflow-scrolling","auto"),i.scrollTop(B),g=!0),w||g?(ne.cancelable&&ne.preventDefault(),y=(a.bottom?-1*Math.abs(m)**.85:m**.85)+v,l?o.transform(`translate3d(0,${y}px,0)`).find(".ptr-arrow").transform(`rotate(${180*(Math.abs(m)/66)+100}deg)`):(a.bottom||c?i.children().transform(`translate3d(0,${y}px,0)`):i.transform(`translate3d(0,${y}px,0)`),c&&o.transform("translate3d(0,0px,0)"))):c&&!a.bottom&&o.transform(`translate3d(0,${E}px,0)`);let ce;c&&!b&&(ce=w||g?Math.abs(m)**.85/$:Math.abs(m)/($*2),L(ce)),(w||g)&&Math.abs(m)**.85>$||!w&&Math.abs(m)>=$*2?(b=!0,i.addClass("ptr-pull-up").removeClass("ptr-pull-down"),V()):(b=!1,i.removeClass("ptr-pull-up").addClass("ptr-pull-down")),x||(i.trigger("ptr:pullstart"),a.emit("local::pullStart ptrPullStart",i[0]),x=!0),i.trigger("ptr:pullmove",{event:ne,scrollTop:E,translate:y,touchesDiff:m}),a.emit("local::pullMove ptrPullMove",i[0],{event:ne,scrollTop:E,translate:y,touchesDiff:m})}else x=!1,i.removeClass("ptr-pull-up ptr-pull-down"),b=!1}function O(ne){if(ne.isTrusted){if(ne.type==="touchend"&&ne.changedTouches&&ne.changedTouches.length>0&&d&&ne.changedTouches[0].identifier!==d){u=!1,h=!1,p=!1,d=null;return}if(!u||!p){u=!1,p=!1;return}y&&(i.addClass("ptr-transitioning"),y=0),l?o.transform("").find(".ptr-arrow").transform(""):(o.transform(""),a.bottom||c?i.children().transform(""):i.transform("")),!w&&a.bottom&&!l&&i.css("-webkit-overflow-scrolling",""),b?(i.addClass("ptr-refreshing"),i.trigger("ptr:refresh",a.done),a.emit("local::refresh ptrRefresh",i[0],a.done)):i.removeClass("ptr-pull-down"),u=!1,p=!1,x&&(i.trigger("ptr:pullend"),a.emit("local::pullEnd ptrPullEnd",i[0]))}}let _,N,G=!0,ee=0;function X(){G=!0,N=!1,ee=0,y&&(i.addClass("ptr-transitioning"),y=0),l?o.transform("").find(".ptr-arrow").transform(""):(o.transform(""),a.bottom?i.children().transform(""):i.transform("")),b?(i.addClass("ptr-refreshing"),i.trigger("ptr:refresh",a.done),a.emit("local::refresh ptrRefresh",i[0],a.done)):i.removeClass("ptr-pull-down"),x&&(i.trigger("ptr:pullend"),a.emit("local::pullEnd ptrPullEnd",i[0]))}function se(ne){if(!G)return;const{deltaX:ie,deltaY:le}=ne;if(Math.abs(ie)>Math.abs(le)||i.hasClass("ptr-refreshing")||C(ne.target).closest(".sortable-handler, .ptr-ignore, .card-expandable.card-opened").length)return;if(clearTimeout(_),E=i[0].scrollTop,!N){i.removeClass("ptr-transitioning"),c&&L(0);let oe;if(S=i[0].scrollHeight,I=i[0].offsetHeight,a.bottom&&(B=S-I),E>S){G=!1;return}const ce=C(ne.target).closest(".ptr-watch-scroll");if(ce.length&&ce.each(pe=>{pe!==n&&pe.scrollHeight>pe.offsetHeight&&C(pe).css("overflow")==="auto"&&(!a.bottom&&pe.scrollTop>0||a.bottom&&pe.scrollTop=0&&($=S*parseInt($,10)/100))}if(p=!0,ee-=le,m=ee,typeof k>"u"&&(a.bottom?E!==B:E!==0)&&(k=!0),a.bottom?m<0&&E>=B||E>B:m>0&&E<=0||E<0){ne.cancelable&&ne.preventDefault(),y=m,Math.abs(y)>$&&(y=$+(Math.abs(y)-$)**.7,a.bottom&&(y=-y)),l?o.transform(`translate3d(0,${y}px,0)`).find(".ptr-arrow").transform(`rotate(${180*(Math.abs(m)/66)+100}deg)`):a.bottom?i.children().transform(`translate3d(0,${y}px,0)`):(i.transform(`translate3d(0,${y}px,0)`),c&&o.transform(`translate3d(0,${-y}px,0)`));let oe;c&&!b&&(oe=Math.abs(y)/$,L(oe)),Math.abs(y)>$?(b=!0,i.addClass("ptr-pull-up").removeClass("ptr-pull-down"),V()):(b=!1,i.removeClass("ptr-pull-up").addClass("ptr-pull-down")),x||(i.trigger("ptr:pullstart"),a.emit("local::pullStart ptrPullStart",i[0]),x=!0),i.trigger("ptr:pullmove",{event:ne,scrollTop:E,translate:y,touchesDiff:m}),a.emit("local::pullMove ptrPullMove",i[0],{event:ne,scrollTop:E,translate:y,touchesDiff:m})}else x=!1,i.removeClass("ptr-pull-up ptr-pull-down"),b=!1;_=setTimeout(X,300)}return!P.length||!i.length||(i[0].f7PullToRefresh=a,a.attachEvents=function(){const ie=s.passiveListener?{passive:!0}:!1;i.on(e.touchEvents.start,H,ie),e.on("touchmove:active",D),e.on("touchend:passive",O),a.mousewheel&&!a.bottom&&i.on("wheel",se)},a.detachEvents=function(){const ie=s.passiveListener?{passive:!0}:!1;i.off(e.touchEvents.start,H,ie),e.off("touchmove:active",D),e.off("touchend:passive",O),a.mousewheel&&!a.bottom&&i.off("wheel",se)},a.useModules(),a.init()),a}init(){this.attachEvents()}destroy(){let e=this;e.emit("local::beforeDestroy ptrBeforeDestroy",e),e.$el.trigger("ptr:beforedestroy"),delete e.el.f7PullToRefresh,e.detachEvents(),Ze(e),e=null}};const FC={name:"pullToRefresh",create(){const t=this;t.ptr=W(et({defaultSelector:".ptr-content",constructor:Po,app:t,domProp:"f7PullToRefresh"}),{done(e){const n=t.ptr.get(e);if(n)return n.done()},refresh(e){const n=t.ptr.get(e);if(n)return n.refresh()}})},static:{PullToRefresh:Po},on:{tabMounted(t){const e=this,n=C(t),a=n.find(".ptr-content");n.is(".ptr-content")&&a.add(n),a.each(r=>{e.ptr.create(r)})},tabBeforeRemove(t){const e=C(t),n=this,a=e.find(".ptr-content");e.is(".ptr-content")&&a.add(e),a.each(r=>{n.ptr.destroy(r)})},pageInit(t){const e=this;t.$el.find(".ptr-content").each(n=>{e.ptr.create(n)})},pageBeforeRemove(t){const e=this;t.$el.find(".ptr-content").each(n=>{e.ptr.destroy(n)})}}};let Mo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r={};a.useModulesParams(r),a.params=W(r,n);const s=C(a.params.el);if(s.length===0)return;if(a.$el=s,a.el=s[0],a.$el[0].f7DataTable){const l=a.$el[0].f7DataTable;return a.destroy(),l}a.$el[0].f7DataTable=a,W(a,{collapsible:s.hasClass("data-table-collapsible"),$headerEl:s.find(".data-table-header"),$headerSelectedEl:s.find(".data-table-header-selected")});function i(l){if(l.detail&&l.detail.sentByF7DataTable)return;const c=C(this),d=c[0].checked,u=c.parents("td,th").index();if(c.parents("thead").length>0)u===0&&s.find("tbody tr")[d?"addClass":"removeClass"]("data-table-row-selected"),s.find(`tbody tr td:nth-child(${u+1}) input`).prop("checked",d).trigger("change",{sentByF7DataTable:!0}),c.prop("indeterminate",!1);else{u===0&&c.parents("tr")[d?"addClass":"removeClass"]("data-table-row-selected");const p=s.find(`tbody .checkbox-cell:nth-child(${u+1}) input[type="checkbox"]:checked`).length,f=s.find("tbody tr").length,h=s.find(`thead .checkbox-cell:nth-child(${u+1}) input[type="checkbox"]`);d?p===f&&h.prop("checked",!0).trigger("change",{sentByF7DataTable:!0}):h.prop("checked",!1),h.prop("indeterminate",p>0&&p{const a=C(n),r=a.index(),s=a.attr("data-collapsible-title");!s&&s!==""&&a.attr("data-collapsible-title",e.$el.find("thead th").eq(r).text())})}checkSelectedHeader(){const e=this;if(e.$headerEl.length>0&&e.$headerSelectedEl.length>0){const n=e.$el.find("tbody .checkbox-cell input:checked").length;e.$el[n>0?"addClass":"removeClass"]("data-table-has-checked"),e.$headerSelectedEl.find(".data-table-selected-count").text(n)}}init(){const e=this;e.attachEvents(),e.setCollapsibleLabels(),e.checkSelectedHeader()}destroy(){let e=this;e.$el.trigger("datatable:beforedestroy"),e.emit("local::beforeDestroy dataTableBeforeDestroy",e),e.detachEvents(),e.$el[0]&&(e.$el[0].f7DataTable=null,delete e.$el[0].f7DataTable),Ze(e),e=null}};const zC={name:"dataTable",static:{DataTable:Mo},create(){const t=this;t.dataTable=et({defaultSelector:".data-table",constructor:Mo,app:t,domProp:"f7DataTable"})},on:{tabBeforeRemove(t){const e=this;C(t).find(".data-table-init").each(n=>{e.dataTable.destroy(n)})},tabMounted(t){const e=this;C(t).find(".data-table-init").each(n=>{e.dataTable.create({el:n})})},pageBeforeRemove(t){const e=this;t.$el.find(".data-table-init").each(n=>{e.dataTable.destroy(n)})},pageInit(t){const e=this;t.$el.find(".data-table-init").each(n=>{e.dataTable.create({el:n})})}},vnode:{"data-table-init":{insert(t){const e=this,n=t.elm;e.dataTable.create({el:n})},destroy(t){const e=this,n=t.elm;e.dataTable.destroy(n)}}}},NC={morphOpen(t,e){const n=this,a=C(t),r=C(e);if(r.length===0)return;r.transition(0).addClass("fab-morph-target-visible");const s={width:r[0].offsetWidth,height:r[0].offsetHeight,offset:r.offset(),borderRadius:r.css("border-radius"),zIndex:r.css("z-index")},i={width:a[0].offsetWidth,height:a[0].offsetHeight,offset:a.offset(),translateX:mr(a[0],"x"),translateY:mr(a[0],"y")};a[0].f7FabMorphData={$targetEl:r,target:s,fab:i};const o=i.offset.left+i.width/2-(s.offset.left+s.width/2)-i.translateX,l=i.offset.top+i.height/2-(s.offset.top+s.height/2)-i.translateY,c=s.width/i.width,d=s.height/i.height;let u=Math.ceil(parseInt(s.borderRadius,10)/Math.max(c,d));u>0&&(u+=2),a[0].f7FabMorphResizeHandler=function(){a.transition(0).transform(""),r.transition(0),s.width=r[0].offsetWidth,s.height=r[0].offsetHeight,s.offset=r.offset(),i.offset=a.offset();const f=i.offset.left+i.width/2-(s.offset.left+s.width/2)-i.translateX,h=i.offset.top+i.height/2-(s.offset.top+s.height/2)-i.translateY,m=s.width/i.width,b=s.height/i.height;a.transform(`translate3d(${-f}px, ${-h}px, 0) scale(${m}, ${b})`)},r.css("opacity",0).transform(`scale(${1/c}, ${1/d})`),a.addClass("fab-opened").css("z-index",s.zIndex-1).transform(`translate3d(${-o}px, ${-l}px, 0)`),a.transitionEnd(()=>{r.transition(""),Mt(()=>{r.css("opacity",1).transform("scale(1,1)"),a.transform(`translate3d(${-o}px, ${-l}px, 0) scale(${c}, ${d})`).css("border-radius",`${u}px`).css("box-shadow","none").css("opacity","0")}),n.on("resize",a[0].f7FabMorphResizeHandler),r.parents(".page-content").length>0&&r.parents(".page-content").on("scroll",a[0].f7FabMorphResizeHandler)})},morphClose(t){const e=this,n=C(t),a=n[0].f7FabMorphData;if(!a)return;const{$targetEl:r,target:s,fab:i}=a;if(r.length===0)return;const o=i.offset.left+i.width/2-(s.offset.left+s.width/2)-i.translateX,l=i.offset.top+i.height/2-(s.offset.top+s.height/2)-i.translateY,c=s.width/i.width,d=s.height/i.height;e.off("resize",n[0].f7FabMorphResizeHandler),r.parents(".page-content").length>0&&r.parents(".page-content").off("scroll",n[0].f7FabMorphResizeHandler),r.css("opacity",0).transform(`scale(${1/c}, ${1/d})`),n.transition("").css("box-shadow","").css("border-radius","").css("opacity","1").transform(`translate3d(${-o}px, ${-l}px, 0)`),n.transitionEnd(()=>{n.css("z-index","").removeClass("fab-opened").transform(""),Mt(()=>{n.transitionEnd(()=>{r.removeClass("fab-morph-target-visible").css("opacity","").transform("").transition("")})})})},open(t,e){const n=this,a=C(t).eq(0),r=a.find(".fab-buttons");if(a.length&&!a.hasClass("fab-opened")&&!(!r.length&&!a.hasClass("fab-morph"))){if(n.fab.openedEl){if(n.fab.openedEl===a[0])return;n.fab.close(n.fab.openedEl)}n.fab.openedEl=a[0],a.hasClass("fab-morph")?n.fab.morphOpen(a,e||a.attr("data-morph-to")):a.addClass("fab-opened"),a.siblings(".fab-backdrop").addClass("backdrop-in"),a.trigger("fab:open")}},close(t){t===void 0&&(t=".fab-opened");const e=this,n=C(t).eq(0),a=n.find(".fab-buttons");n.length&&n.hasClass("fab-opened")&&(!a.length&&!n.hasClass("fab-morph")||(e.fab.openedEl=null,n.hasClass("fab-morph")?e.fab.morphClose(n):n.removeClass("fab-opened"),n.siblings(".fab-backdrop").removeClass("backdrop-in"),n.trigger("fab:close")))},toggle(t){const e=this;C(t).hasClass("fab-opened")?e.fab.close(t):e.fab.open(t)}},VC={name:"fab",create(){Ct(this,{fab:{openedEl:null,...NC}})},clicks:{".fab > a":function(e){this.fab.toggle(e.parents(".fab"))},".fab-open":function(e,n){n===void 0&&(n={}),this.fab.open(n.fab)},".fab-close":function(e,n){n===void 0&&(n={}),this.fab.close(n.fab)},".fab-backdrop":function(){this.fab.close()}}};let Bo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r={el:void 0,inputEl:void 0,inputEvents:"change input compositionend",disableButton:!0,disableButtonEl:void 0,backdropEl:void 0,searchContainer:void 0,searchItem:"li",searchIn:void 0,searchGroup:".list-group",searchGroupTitle:".list-group-title",ignore:".searchbar-ignore",foundEl:".searchbar-found",notFoundEl:".searchbar-not-found",hideOnEnableEl:".searchbar-hide-on-enable",hideOnSearchEl:".searchbar-hide-on-search",backdrop:!0,removeDiacritics:!0,customSearch:!1,hideGroupTitles:!0,hideGroups:!0,disableOnBackdropClick:!0,expandable:!1,inline:!1};a.useModulesParams(r),a.params=W(r,n);const s=C(a.params.el);if(s.length===0)return a;if(s[0].f7Searchbar)return s[0].f7Searchbar;s[0].f7Searchbar=a;let i;const o=s.parents(".navbar");if(s.parents(".page").length>0)i=s.parents(".page");else if(o.length>0&&(i=C(e.navbar.getPageByEl(o[0])),!i.length)){const F=s.parents(".view").find(".page-current");F[0]&&F[0].f7Page&&F[0].f7Page.navbarEl===o[0]&&(i=F)}let l;n.foundEl?l=C(n.foundEl):typeof a.params.foundEl=="string"&&i&&(l=i.find(a.params.foundEl));let c;n.notFoundEl?c=C(n.notFoundEl):typeof a.params.notFoundEl=="string"&&i&&(c=i.find(a.params.notFoundEl));let d;n.hideOnEnableEl?d=C(n.hideOnEnableEl):typeof a.params.hideOnEnableEl=="string"&&i&&(d=i.find(a.params.hideOnEnableEl));let u;n.hideOnSearchEl?u=C(n.hideOnSearchEl):typeof a.params.hideOnSearchEl=="string"&&i&&(u=i.find(a.params.hideOnSearchEl));const p=a.params.expandable||s.hasClass("searchbar-expandable"),f=a.params.inline||s.hasClass("searchbar-inline");typeof a.params.backdrop>"u"&&(a.params.backdrop=!f);let h;a.params.backdrop&&(a.params.backdropEl?h=C(a.params.backdropEl):i&&i.length>0?h=i.find(".searchbar-backdrop"):h=s.siblings(".searchbar-backdrop"),h.length===0&&(h=C('
            '),i&&i.length?s.parents(i).length>0&&o&&s.parents(o).length===0?h.insertBefore(s):h.insertBefore(i.find(".page-content").eq(0)):h.insertBefore(s)));let m;a.params.searchContainer&&(m=C(a.params.searchContainer));let b;a.params.inputEl?b=C(a.params.inputEl):b=s.find('input[type="search"]').eq(0);let w;a.params.disableButton&&(a.params.disableButtonEl?w=C(a.params.disableButtonEl):w=s.find(".searchbar-disable-button")),W(a,{app:e,view:e.views.get(s.parents(".view")),$el:s,el:s[0],$backdropEl:h,backdropEl:h&&h[0],$searchContainer:m,searchContainer:m&&m[0],$inputEl:b,inputEl:b[0],$disableButtonEl:w,disableButtonEl:w&&w[0],disableButtonHasMargin:!1,$pageEl:i,pageEl:i&&i[0],$navbarEl:o,navbarEl:o&&o[0],$foundEl:l,foundEl:l&&l[0],$notFoundEl:c,notFoundEl:c&&c[0],$hideOnEnableEl:d,hideOnEnableEl:d&&d[0],$hideOnSearchEl:u,hideOnSearchEl:u&&u[0],previousQuery:"",query:"",isVirtualList:m&&m.hasClass("virtual-list"),virtualList:void 0,enabled:!1,expandable:p,inline:f});function g(F){F.preventDefault()}function v(F){a.enable(F),a.$el.addClass("searchbar-focused")}function y(){a.$el.removeClass("searchbar-focused")}function E(){const F=a.$inputEl.val().trim();(a.$searchContainer&&a.$searchContainer.length>0&&(a.params.searchIn||a.isVirtualList||a.params.searchIn===a.params.searchItem)||a.params.customSearch)&&a.search(F,!0)}function k(F,S){a.$el.trigger("searchbar:clear",S),a.emit("local::clear searchbarClear",a,S)}function $(F){a.disable(F)}function M(){!a||a&&!a.$el||a.enabled&&(a.$el.removeClass("searchbar-enabled"),a.expandable&&a.$el.parents(".navbar").removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition"))}function x(){!a||a&&!a.$el||a.enabled&&(a.$el.addClass("searchbar-enabled"),a.expandable&&a.$el.parents(".navbar").addClass("with-searchbar-expandable-enabled-no-transition"))}return a.attachEvents=function(){s.on("submit",g),a.params.disableButton&&a.$disableButtonEl.on("click",$),a.params.disableOnBackdropClick&&a.$backdropEl&&a.$backdropEl.on("click",$),a.expandable&&e.theme==="ios"&&a.view&&o.length&&a.$pageEl&&(a.$pageEl.on("page:beforeout",M),a.$pageEl.on("page:beforein",x)),a.$inputEl.on("focus",v),a.$inputEl.on("blur",y),a.$inputEl.on(a.params.inputEvents,E),a.$inputEl.on("input:clear",k)},a.detachEvents=function(){s.off("submit",g),a.params.disableButton&&a.$disableButtonEl.off("click",$),a.params.disableOnBackdropClick&&a.$backdropEl&&a.$backdropEl.off("click",$),a.expandable&&e.theme==="ios"&&a.view&&o.length&&a.$pageEl&&(a.$pageEl.off("page:beforeout",M),a.$pageEl.off("page:beforein",x)),a.$inputEl.off("focus",v),a.$inputEl.off("blur",y),a.$inputEl.off(a.params.inputEvents,E),a.$inputEl.off("input:clear",k)},a.useModules(),a.init(),a}clear(e){const n=this;if(!n.query&&e&&C(e.target).hasClass("searchbar-clear"))return n.disable(),n;const a=n.value;return n.$inputEl.val("").trigger("change").focus(),n.$el.trigger("searchbar:clear",a),n.emit("local::clear searchbarClear",n,a),n}setDisableButtonMargin(){const e=this;if(e.expandable)return;const n=e.app;e.$disableButtonEl.transition(0).show(),e.$disableButtonEl.css(`margin-${n.rtl?"left":"right"}`,`${-e.disableButtonEl.offsetWidth}px`),e._clientLeft=e.$disableButtonEl[0].clientLeft,e.$disableButtonEl.transition(""),e.disableButtonHasMargin=!0}enable(e){const n=this;if(n.enabled)return n;const a=n.app,r=ye(),s=Ie();n.enabled=!0;function i(){if(n.$backdropEl&&(n.$searchContainer&&n.$searchContainer.length||n.params.customSearch)&&!n.$el.hasClass("searchbar-enabled")&&!n.query&&n.backdropShow(),n.$el.addClass("searchbar-enabled"),(!n.$disableButtonEl||n.$disableButtonEl&&n.$disableButtonEl.length===0)&&n.$el.addClass("searchbar-enabled-no-disable-button"),!n.expandable&&n.$disableButtonEl&&n.$disableButtonEl.length>0&&a.theme!=="md"&&(n.disableButtonHasMargin||n.setDisableButtonMargin(),n.$disableButtonEl.css(`margin-${a.rtl?"left":"right"}`,"0px")),n.expandable){const c=n.$el.parents(".navbar");if(c.hasClass("navbar-large")&&n.$pageEl){const d=n.$pageEl.find(".page-content"),u=c.find(".title-large");d.addClass("with-searchbar-expandable-enabled"),c.hasClass("navbar-large")&&c.hasClass("navbar-large-collapsed")&&u.length&&d.length&&(d.transition(0),d[0].scrollTop-=u[0].offsetHeight,setTimeout(()=>{d.transition("")},200))}a.theme==="md"&&c.length?c.addClass("with-searchbar-expandable-enabled"):(c.addClass("with-searchbar-expandable-enabled"),c.hasClass("navbar-large")&&c.addClass("navbar-large-collapsed"))}n.$hideOnEnableEl&&n.$hideOnEnableEl.addClass("hidden-by-searchbar"),n.$el.trigger("searchbar:enable"),n.emit("local::enable searchbarEnable",n)}let o=!1;return e===!0&&r.activeElement!==n.inputEl&&(o=!0),s.ios&&a.theme==="ios"?n.expandable?(o&&n.$inputEl.focus(),i()):(o&&n.$inputEl.focus(),e&&(e.type==="focus"||e===!0)?lt(()=>{i()},400):i()):(o&&n.$inputEl.focus(),a.theme==="md"&&n.expandable&&n.$el.parents(".page, .view, .navbar-inner, .navbar").scrollLeft(a.rtl?100:0),i()),n}disable(){const e=this;if(!e.enabled)return e;const n=e.app;if(e.$inputEl.val("").trigger("change"),e.$el.removeClass("searchbar-enabled searchbar-focused searchbar-enabled-no-disable-button"),e.expandable){const a=e.$el.parents(".navbar"),r=e.$pageEl&&e.$pageEl.find(".page-content");if(a.hasClass("navbar-large")&&r.length){const s=a.find(".title-large");if(e.$el.transitionEnd(()=>{r.removeClass("with-searchbar-expandable-closing")}),a.hasClass("navbar-large")&&a.hasClass("navbar-large-collapsed")&&s.length){const i=r[0].scrollTop,o=s[0].offsetHeight;i>o&&(r.transition(0),r[0].scrollTop=i+o,setTimeout(()=>{r.transition("")},200))}r.removeClass("with-searchbar-expandable-enabled").addClass("with-searchbar-expandable-closing")}n.theme==="md"&&a.length?(a.removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd(()=>{a.removeClass("with-searchbar-expandable-closing")})):(a.removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd(()=>{a.removeClass("with-searchbar-expandable-closing")}),e.$pageEl&&e.$pageEl.find(".page-content").trigger("scroll"))}return!e.expandable&&e.$disableButtonEl&&e.$disableButtonEl.length>0&&n.theme!=="md"&&e.$disableButtonEl.css(`margin-${n.rtl?"left":"right"}`,`${-e.disableButtonEl.offsetWidth}px`),e.$backdropEl&&(e.$searchContainer&&e.$searchContainer.length||e.params.customSearch)&&e.backdropHide(),e.enabled=!1,e.$inputEl.blur(),e.$hideOnEnableEl&&e.$hideOnEnableEl.removeClass("hidden-by-searchbar"),e.$el.trigger("searchbar:disable"),e.emit("local::disable searchbarDisable",e),e}toggle(){const e=this;return e.enabled?e.disable():e.enable(!0),e}backdropShow(){const e=this;return e.$backdropEl&&e.$backdropEl.addClass("searchbar-backdrop-in"),e}backdropHide(){const e=this;return e.$backdropEl&&e.$backdropEl.removeClass("searchbar-backdrop-in"),e}search(e,n){const a=this;if(a.previousQuery=a.query||"",e===a.previousQuery)return a;n||(a.enabled||a.enable(),a.$inputEl.val(e),a.$inputEl.trigger("input")),a.query=e,a.value=e;const{$searchContainer:r,$el:s,$foundEl:i,$notFoundEl:o,$hideOnSearchEl:l,isVirtualList:c}=a;if(e.length>0&&l?l.addClass("hidden-by-searchbar"):l&&l.removeClass("hidden-by-searchbar"),(r&&r.length&&s.hasClass("searchbar-enabled")||a.params.customSearch&&s.hasClass("searchbar-enabled"))&&(e.length===0?a.backdropShow():a.backdropHide()),a.params.customSearch)return s.trigger("searchbar:search",{query:e,previousQuery:a.previousQuery}),a.emit("local::search searchbarSearch",a,e,a.previousQuery),a;let d=[],u;if(c){if(a.virtualList=r[0].f7VirtualList,e.trim()==="")return a.virtualList.resetFilter(),o&&o.hide(),i&&i.show(),s.trigger("searchbar:search",{query:e,previousQuery:a.previousQuery}),a.emit("local::search searchbarSearch",a,e,a.previousQuery),a;if(u=a.params.removeDiacritics?ir(e):e,a.virtualList.params.searchAll)d=a.virtualList.params.searchAll(u,a.virtualList.items)||[];else if(a.virtualList.params.searchByItem)for(let p=0;p{const h=C(f);let m=[],b=a.params.searchIn?h.find(a.params.searchIn):h;a.params.searchIn===a.params.searchItem&&(b=h),b.each(g=>{let v=C(g).text().trim().toLowerCase();a.params.removeDiacritics&&(v=ir(v)),m.push(v)}),m=m.join(" ");let w=0;for(let g=0;g=0&&(w+=1);w!==p.length&&!(a.params.ignore&&h.is(a.params.ignore))?h.addClass("hidden-by-searchbar"):d.push(h[0])}),a.params.hideGroupTitles&&r.find(a.params.searchGroupTitle).each(f=>{const h=C(f),m=h.nextAll(a.params.searchItem);let b=!0;for(let g=0;g{const h=C(f),m=a.params.ignore&&h.is(a.params.ignore);h.find(a.params.searchItem).filter(w=>!C(w).hasClass("hidden-by-searchbar")).length===0&&!m?h.addClass("hidden-by-searchbar"):h.removeClass("hidden-by-searchbar")})}return d.length===0?(o&&o.show(),i&&i.hide()):(o&&o.hide(),i&&i.show()),c&&a.virtualList&&a.virtualList.filterItems(d),s.trigger("searchbar:search",{query:e,previousQuery:a.previousQuery,foundItems:d}),a.emit("local::search searchbarSearch",a,e,a.previousQuery,d),a}init(){const e=this;e.expandable&&e.$el&&e.$el.addClass("searchbar-expandable"),e.inline&&e.$el&&e.$el.addClass("searchbar-inline"),e.attachEvents()}destroy(){const e=this;e.emit("local::beforeDestroy searchbarBeforeDestroy",e),e.$el.trigger("searchbar:beforedestroy"),e.detachEvents(),e.$el[0]&&(e.$el[0].f7Searchbar=null,delete e.$el[0].f7Searchbar),Ze(e)}};const _C={name:"searchbar",static:{Searchbar:Bo},create(){const t=this;t.searchbar=et({defaultSelector:".searchbar",constructor:Bo,app:t,domProp:"f7Searchbar",addMethods:"clear enable disable toggle search".split(" ")})},on:{tabMounted(t){const e=this;C(t).find(".searchbar-init").each(n=>{const a=C(n);e.searchbar.create(W(a.dataset(),{el:n}))})},tabBeforeRemove(t){C(t).find(".searchbar-init").each(e=>{e.f7Searchbar&&e.f7Searchbar.destroy&&e.f7Searchbar.destroy()})},pageInit(t){const e=this;t.$el.find(".searchbar-init").each(n=>{const a=C(n);e.searchbar.create(W(a.dataset(),{el:n}))}),e.theme==="ios"&&t.view&&t.view.router.dynamicNavbar&&t.$navbarEl&&t.$navbarEl.length>0&&t.$navbarEl.find(".searchbar-init").each(n=>{const a=C(n);e.searchbar.create(W(a.dataset(),{el:n}))})},pageBeforeRemove(t){const e=this;t.$el.find(".searchbar-init").each(n=>{n.f7Searchbar&&n.f7Searchbar.destroy&&n.f7Searchbar.destroy()}),e.theme==="ios"&&t.view&&t.view.router.dynamicNavbar&&t.$navbarEl&&t.$navbarEl.length>0&&t.$navbarEl.find(".searchbar-init").each(n=>{n.f7Searchbar&&n.f7Searchbar.destroy&&n.f7Searchbar.destroy()})}},clicks:{".searchbar-clear":function(e,n){n===void 0&&(n={});const r=this.searchbar.get(n.searchbar);r&&r.clear()},".searchbar-enable":function(e,n){n===void 0&&(n={});const r=this.searchbar.get(n.searchbar);r&&r.enable(!0)},".searchbar-disable":function(e,n){n===void 0&&(n={});const r=this.searchbar.get(n.searchbar);r&&r.disable()},".searchbar-toggle":function(e,n){n===void 0&&(n={});const r=this.searchbar.get(n.searchbar);r&&r.toggle()}},vnode:{"searchbar-init":{insert(t){const e=this,n=t.elm,a=C(n);e.searchbar.create(W(a.dataset(),{el:n}))},destroy(t){const e=t.elm;e.f7Searchbar&&e.f7Searchbar.destroy&&e.f7Searchbar.destroy()}}}};function Ms(){return Ms=Object.assign?Object.assign.bind():function(t){for(var e=1;e${a.textHeader}
            `,"")),a.text&&a.textFooter&&(a.text=a.text.replace(``,""));let r=n.find(".message-avatar").css("background-image");return(r==="none"||r==="")&&(r=void 0),r&&typeof r=="string"?r=r.replace("url(","").replace(")","").replace(/"/g,"").replace(/'/g,""):r=void 0,a.avatar=r,a}getMessagesData(){const e=this,n=[];return e.$el.find(".message, .messages-title").each(a=>{n.push(e.getMessageData(a))}),n}renderMessage(e){const n=this,a=W({type:"sent",attrs:{}},e);return n.params.renderMessage?n.params.renderMessage.call(n,a):a.isTitle?`
            ${a.text}
            `:T("div",Ms({class:`message message-${a.type} ${a.isTyping?"message-typing":""} ${a.cssClass||""}`},a.attrs),a.avatar&&T("div",{class:"message-avatar",style:`background-image:url(${a.avatar})`}),T("div",{class:"message-content"},a.name&&T("div",{class:"message-name"},a.name),a.header&&T("div",{class:"message-header"},a.header),T("div",{class:"message-bubble"},a.textHeader&&T("div",{class:"message-text-header"},a.textHeader),a.image&&T("div",{class:"message-image"},a.image),a.imageSrc&&!a.image&&T("div",{class:"message-image"},T("img",{src:a.imageSrc})),(a.text||a.isTyping)&&T("div",{class:"message-text"},a.text||"",a.isTyping&&T("div",{class:"message-typing-indicator"},T("div",null),T("div",null),T("div",null))),a.textFooter&&T("div",{class:"message-text-footer"},a.textFooter)),a.footer&&T("div",{class:"message-footer"},a.footer)))}renderMessages(e,n){e===void 0&&(e=this.messages),n===void 0&&(n=this.params.newMessagesFirst?"prepend":"append");const a=this,r=e.map(s=>a.renderMessage(s)).join("");a.$el[n](r)}isFirstMessage(){const e=this;return e.params.firstMessageRule?e.params.firstMessageRule(...arguments):!1}isLastMessage(){const e=this;return e.params.lastMessageRule?e.params.lastMessageRule(...arguments):!1}isTailMessage(){const e=this;return e.params.tailMessageRule?e.params.tailMessageRule(...arguments):!1}isSameNameMessage(){const e=this;return e.params.sameNameMessageRule?e.params.sameNameMessageRule(...arguments):!1}isSameHeaderMessage(){const e=this;return e.params.sameHeaderMessageRule?e.params.sameHeaderMessageRule(...arguments):!1}isSameFooterMessage(){const e=this;return e.params.sameFooterMessageRule?e.params.sameFooterMessageRule(...arguments):!1}isSameAvatarMessage(){const e=this;return e.params.sameAvatarMessageRule?e.params.sameAvatarMessageRule(...arguments):!1}isCustomClassMessage(){const e=this;if(e.params.customClassMessageRule)return e.params.customClassMessageRule(...arguments)}layout(){const e=this;e.$el.find(".message, .messages-title").each((n,a)=>{const r=C(n);e.messages||(e.messages=e.getMessagesData());const s=[],i=e.messages[a],o=e.messages[a-1],l=e.messages[a+1];e.isFirstMessage(i,o,l)&&s.push("message-first"),e.isLastMessage(i,o,l)&&s.push("message-last"),e.isTailMessage(i,o,l)&&s.push("message-tail"),e.isSameNameMessage(i,o,l)&&s.push("message-same-name"),e.isSameHeaderMessage(i,o,l)&&s.push("message-same-header"),e.isSameFooterMessage(i,o,l)&&s.push("message-same-footer"),e.isSameAvatarMessage(i,o,l)&&s.push("message-same-avatar");let c=e.isCustomClassMessage(i,o,l);c&&c.length&&(typeof c=="string"&&(c=c.split(" ")),c.forEach(d=>{s.push(d)})),r.removeClass("message-first message-last message-tail message-same-name message-same-header message-same-footer message-same-avatar"),s.forEach(d=>{r.addClass(d)})})}clear(){const e=this;e.messages=[],e.$el.html("")}removeMessage(e,n){n===void 0&&(n=!0);const a=this;let r,s;return typeof e=="number"?(r=e,s=a.$el.find(".message, .messages-title").eq(r)):a.messages&&a.messages.indexOf(e)>=0?(r=a.messages.indexOf(e),s=a.$el.children().eq(r)):(s=C(e),r=s.index()),s.length===0||(s.remove(),a.messages.splice(r,1),a.params.autoLayout&&n&&a.layout()),a}removeMessages(e,n){n===void 0&&(n=!0);const a=this;if(Array.isArray(e)){const r=[];e.forEach(s=>{r.push(a.$el.find(".message, .messages-title").eq(s))}),r.forEach(s=>{a.removeMessage(s,!1)})}else C(e).each(r=>{a.removeMessage(r,!1)});return a.params.autoLayout&&n&&a.layout(),a}addMessage(){const e=this;let n,a,r;for(var s=arguments.length,i=new Array(s),o=0;o"u"&&(a=!0),typeof r>"u"&&(r=e.params.newMessagesFirst?"prepend":"append"),e.addMessages([n],a,r)}setScrollData(){const e=this,n=e.pageContentEl.scrollHeight,a=e.pageContentEl.offsetHeight,r=e.pageContentEl.scrollTop;return e.scrollData={scrollHeightBefore:n,heightBefore:a,scrollBefore:r},{scrollHeightBefore:n,heightBefore:a,scrollBefore:r}}addMessages(){const e=this;let n,a,r;for(var s=arguments.length,i=new Array(s),o=0;o"u"&&(a=!0),typeof r>"u"&&(r=e.params.newMessagesFirst?"prepend":"append");const{scrollHeightBefore:l,scrollBefore:c}=e.setScrollData();let d="";const u=e.messages.filter(f=>f.isTyping)[0];n.forEach(f=>{u?r==="append"?e.messages.splice(e.messages.indexOf(u),0,f):e.messages.splice(e.messages.indexOf(u)+1,0,f):e.messages[r==="append"?"push":"unshift"](f),d+=e.renderMessage(f)});const p=C(d);return a&&(r==="append"&&!e.params.newMessagesFirst&&p.addClass("message-appear-from-bottom"),r==="prepend"&&e.params.newMessagesFirst&&p.addClass("message-appear-from-top")),u?r==="append"?p.insertBefore(e.$el.find(".message-typing")):p.insertAfter(e.$el.find(".message-typing")):e.$el[r](p),e.params.autoLayout&&e.layout(),r==="prepend"&&!u&&(e.pageContentEl.scrollTop=c+(e.pageContentEl.scrollHeight-l)),e.params.scrollMessages&&(r==="append"&&!e.params.newMessagesFirst||r==="prepend"&&e.params.newMessagesFirst&&!u)&&e.scrollWithEdgeCheck(a),e}showTyping(e){e===void 0&&(e={});const n=this,a=n.messages.filter(r=>r.isTyping)[0];return a&&n.removeMessage(n.messages.indexOf(a)),n.addMessage(W({type:"received",isTyping:!0},e)),n}hideTyping(){const e=this;let n,a;if(e.messages.forEach((r,s)=>{r.isTyping&&(n=s)}),typeof n<"u"&&e.$el.find(".message").eq(n).hasClass("message-typing")&&(a=!0,e.removeMessage(n)),!a){const r=e.$el.find(".message-typing");r.length&&e.removeMessage(r)}return e}scrollWithEdgeCheck(e){const n=this,{scrollBefore:a,scrollHeightBefore:r,heightBefore:s}=n.scrollData;if(n.params.scrollMessagesOnEdge){let i=!1;n.params.newMessagesFirst&&a===0&&(i=!0),!n.params.newMessagesFirst&&a-(r-s)>=-10&&(i=!0),i&&n.scroll(e?void 0:0)}else n.scroll(e?void 0:0)}scroll(e,n){e===void 0&&(e=300);const a=this,r=a.pageContentEl.scrollTop;let s;if(typeof n<"u")s=n;else if(s=a.params.newMessagesFirst?0:a.pageContentEl.scrollHeight-a.pageContentEl.offsetHeight,s===r)return a;return a.$pageContentEl.scrollTop(s,e),a}init(){const e=this;(!e.messages||e.messages.length===0)&&(e.messages=e.getMessagesData()),e.params.messages&&e.params.messages.length&&e.renderMessages(),e.params.autoLayout&&e.layout(),e.params.scrollMessages&&e.scroll(0)}destroy(){const e=this;e.emit("local::beforeDestroy messagesBeforeDestroy",e),e.$el.trigger("messages:beforedestroy"),e.$el[0]&&(e.$el[0].f7Messages=null,delete e.$el[0].f7Messages),Ze(e)}};const jC={name:"messages",static:{Messages:Io},create(){const t=this;t.messages=et({defaultSelector:".messages",constructor:Io,app:t,domProp:"f7Messages",addMethods:"renderMessages layout scroll clear removeMessage removeMessages addMessage addMessages".split(" ")})},on:{tabBeforeRemove(t){const e=this;C(t).find(".messages-init").each(n=>{e.messages.destroy(n)})},tabMounted(t){const e=this;C(t).find(".messages-init").each(n=>{e.messages.create({el:n})})},pageBeforeRemove(t){const e=this;t.$el.find(".messages-init").each(n=>{e.messages.destroy(n)})},pageInit(t){const e=this;t.$el.find(".messages-init").each(n=>{e.messages.create({el:n})})}},vnode:{"messages-init":{insert(t){const e=this,n=t.elm;e.messages.create({el:n})},destroy(t){const e=this,n=t.elm;e.messages.destroy(n)}}}};let Oo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r={top:!1,topOffset:0,bottomOffset:0,attachments:[],renderAttachments:void 0,renderAttachment:void 0,maxHeight:null,resizePage:!0};a.useModulesParams(r),a.params=W(r,n);const s=C(a.params.el);if(s.length===0)return a;if(s[0].f7Messagebar)return s[0].f7Messagebar;s[0].f7Messagebar=a;const i=s.parents(".page").eq(0),o=i.find(".page-content").eq(0),l=s.find(".messagebar-area");let c;a.params.textareaEl?c=C(a.params.textareaEl):c=s.find("textarea");const d=s.find(".messagebar-attachments"),u=s.find(".messagebar-sheet");a.params.top&&s.addClass("messagebar-top"),W(a,{$el:s,el:s[0],$areaEl:l,areaEl:l[0],$textareaEl:c,textareaEl:c[0],$attachmentsEl:d,attachmentsEl:d[0],attachmentsVisible:d.hasClass("messagebar-attachments-visible"),$sheetEl:u,sheetEl:u[0],sheetVisible:u.hasClass("messagebar-sheet-visible"),$pageEl:i,pageEl:i[0],$pageContentEl:o,pageContentEl:o,top:s.hasClass("messagebar-top")||a.params.top,attachments:[]});function p(){a.params.resizePage&&a.resizePage()}function f(g){g.preventDefault()}function h(g){const v=C(this).index();C(g.target).closest(".messagebar-attachment-delete").length?(C(this).trigger("messagebar:attachmentdelete",v),a.emit("local::attachmentDelete messagebarAttachmentDelete",a,this,v)):(C(this).trigger("messagebar:attachmentclick",v),a.emit("local::attachmentClick messagebarAttachmentClick",a,this,v))}function m(){a.checkEmptyState(),a.$el.trigger("messagebar:change"),a.emit("local::change messagebarChange",a)}function b(){a.sheetHide(),a.$el.addClass("messagebar-focused"),a.$el.trigger("messagebar:focus"),a.emit("local::focus messagebarFocus",a)}function w(){a.$el.removeClass("messagebar-focused"),a.$el.trigger("messagebar:blur"),a.emit("local::blur messagebarBlur",a)}return a.attachEvents=function(){s.on("textarea:resize",p),s.on("submit",f),s.on("click",".messagebar-attachment",h),c.on("change input",m),c.on("focus",b),c.on("blur",w),e.on("resize",p)},a.detachEvents=function(){s.off("textarea:resize",p),s.off("submit",f),s.off("click",".messagebar-attachment",h),c.off("change input",m),c.off("focus",b),c.off("blur",w),e.off("resize",p)},a.useModules(),a.init(),a}focus(){const e=this;return e.$textareaEl.focus(),e}blur(){const e=this;return e.$textareaEl.blur(),e}clear(){const e=this;return e.$textareaEl.val("").trigger("change"),e}getValue(){return this.$textareaEl.val().trim()}setValue(e){const n=this;return n.$textareaEl.val(e).trigger("change"),n}setPlaceholder(e){const n=this;return n.$textareaEl.attr("placeholder",e),n}resizePage(){const e=this,{params:n,$el:a,top:r,$pageEl:s,$pageContentEl:i,$areaEl:o,$textareaEl:l,$sheetEl:c,$attachmentsEl:d}=e,u=a[0].offsetHeight;let p=n.maxHeight;if(!r){const f=parseInt(i.css("padding-bottom"),10),h=u+n.bottomOffset;if(h!==f&&i.length){const m=parseInt(i.css("padding-top"),10),b=i[0].scrollHeight,w=i[0].offsetHeight,v=i[0].scrollTop===b-w;p||(p=s[0].offsetHeight-m-c.outerHeight()-d.outerHeight()-parseInt(o.css("margin-top"),10)-parseInt(o.css("margin-bottom"),10)),l.css("max-height",`${p}px`),i.css("padding-bottom",`${h}px`),v&&i.scrollTop(i[0].scrollHeight-w),a.trigger("messagebar:resizepage"),e.emit("local::resizePage messagebarResizePage",e)}}}checkEmptyState(){const e=this,{$el:n,$textareaEl:a}=e,r=a.val().trim();r&&r.length?n.addClass("messagebar-with-value"):n.removeClass("messagebar-with-value")}attachmentsCreate(e){e===void 0&&(e="");const n=this,a=C(`
            ${e}
            `);return a.insertBefore(n.$textareaEl),W(n,{$attachmentsEl:a,attachmentsEl:a[0]}),n}attachmentsShow(e){e===void 0&&(e="");const n=this;return n.$attachmentsEl=n.$el.find(".messagebar-attachments"),n.$attachmentsEl.length===0&&n.attachmentsCreate(e),n.$el.addClass("messagebar-attachments-visible"),n.attachmentsVisible=!0,n.params.resizePage&&n.resizePage(),n}attachmentsHide(){const e=this;return e.$el.removeClass("messagebar-attachments-visible"),e.attachmentsVisible=!1,e.params.resizePage&&e.resizePage(),e}attachmentsToggle(){const e=this;return e.attachmentsVisible?e.attachmentsHide():e.attachmentsShow(),e}renderAttachment(e){const n=this;return n.params.renderAttachment?n.params.renderAttachment.call(n,e):` + `),n?s.trim():r.trim()}renderInline(){const e=this,{rotateEffect:n,cssClass:a,toolbar:r}=e.params;return T("div",{class:`picker picker-inline ${n?"picker-3d":""} ${a||""}`},r&&e.renderToolbar(),T("div",{class:"picker-columns"},e.cols.map(i=>e.renderColumn(i)),T("div",{class:"picker-center-highlight"})))}renderSheet(){const e=this,{rotateEffect:n,cssClass:a,toolbar:r}=e.params;return T("div",{class:`sheet-modal picker picker-sheet ${n?"picker-3d":""} ${a||""}`},r&&e.renderToolbar(),T("div",{class:"sheet-modal-inner picker-columns"},e.cols.map(i=>e.renderColumn(i)),T("div",{class:"picker-center-highlight"})))}renderPopover(){const e=this,{rotateEffect:n,cssClass:a,toolbar:r}=e.params;return T("div",{class:"popover picker-popover"},T("div",{class:"popover-inner"},T("div",{class:`picker ${n?"picker-3d":""} ${a||""}`},r&&e.renderToolbar(),T("div",{class:"picker-columns"},e.cols.map(i=>e.renderColumn(i)),T("div",{class:"picker-center-highlight"})))))}render(){const e=this;return e.params.render?e.params.render.call(e):e.inline?e.renderInline():e.isPopover()?e.renderPopover():e.renderSheet()}onOpen(){const e=this,{initialized:n,$el:a,app:r,$inputEl:s,inline:i,value:o,params:l}=e;e.opened=!0,e.closing=!1,e.opening=!0,e.attachResizeEvent(),a.find(".picker-column").each(c=>{let d=!0;(!n&&l.value||n&&o)&&(d=!1),e.initColumn(c,d)}),n?o&&e.setValue(o):o?e.setValue(o):l.value&&e.setValue(l.value),!i&&s&&s.length&&r.theme==="md"&&s.trigger("focus"),e.initialized=!0,a&&a.trigger("picker:open"),s&&s.trigger("picker:open"),e.emit("local::open pickerOpen",e)}onOpened(){const e=this;e.opening=!1,e.$el&&e.$el.trigger("picker:opened"),e.$inputEl&&e.$inputEl.trigger("picker:opened"),e.emit("local::opened pickerOpened",e)}onClose(){const e=this,n=e.app;if(e.opening=!1,e.closing=!0,e.detachResizeEvent(),e.cols.forEach(a=>{a.destroy&&a.destroy()}),e.$inputEl)if(n.theme==="md")e.$inputEl.trigger("blur");else{const a=e.$inputEl.attr("validate"),r=e.$inputEl.attr("required");a&&r&&n.input.validate(e.$inputEl)}e.$el&&e.$el.trigger("picker:close"),e.$inputEl&&e.$inputEl.trigger("picker:close"),e.emit("local::close pickerClose",e)}onClosed(){const e=this;e.opened=!1,e.closing=!1,e.inline||lt(()=>{e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal}),e.$el&&e.$el.trigger("picker:closed"),e.$inputEl&&e.$inputEl.trigger("picker:closed"),e.emit("local::closed pickerClosed",e)}open(){const e=this,{app:n,opened:a,inline:r,$inputEl:s,$scrollToEl:i,params:o}=e;if(a)return;if(e.cols.length===0&&o.cols.length&&o.cols.forEach(u=>{e.cols.push(u)}),r){e.$el=C(e.render()),e.$el[0].f7Picker=e,e.$containerEl.append(e.$el),e.onOpen(),e.onOpened();return}const l=e.isPopover(),c=l?"popover":"sheet",d={targetEl:s,scrollToEl:i,content:e.render(),backdrop:typeof o.backdrop<"u"?o.backdrop:l,on:{open(){const u=this;e.modal=u,e.$el=l?u.$el.find(".picker"):u.$el,e.$el[0].f7Picker=e,e.onOpen()},opened(){e.onOpened()},close(){e.onClose()},closed(){e.onClosed()}}};c==="sheet"&&(d.push=o.sheetPush,d.swipeToClose=o.sheetSwipeToClose),o.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,[c]:d}}):(e.modal=n[c].create(d),e.modal.open())}close(){const e=this,{opened:n,inline:a}=e;if(n){if(a){e.onClose(),e.onClosed();return}e.params.routableModals&&e.view?e.view.router.back():e.modal.close()}}init(){const e=this;if(e.initInput(),e.inline){e.open(),e.emit("local::init pickerInit",e);return}!e.initialized&&e.params.value&&e.setValue(e.params.value),e.$inputEl&&e.attachInputEvents(),e.params.closeByOutsideClick&&e.attachHtmlEvents(),e.emit("local::init pickerInit",e)}destroy(){const e=this;if(e.destroyed)return;const{$el:n}=e;e.emit("local::beforeDestroy pickerBeforeDestroy",e),n&&n.trigger("picker:beforedestroy"),e.close(),e.$inputEl&&e.detachInputEvents(),e.params.closeByOutsideClick&&e.detachHtmlEvents(),n&&n.length&&delete e.$el[0].f7Picker,Ze(e),e.destroyed=!0}};const HC={name:"picker",static:{Picker:To},create(){const t=this;t.picker=et({defaultSelector:".picker",constructor:To,app:t,domProp:"f7Picker"}),t.picker.close=function(n){n===void 0&&(n=".picker");const a=C(n);if(a.length===0)return;const r=a[0].f7Picker;!r||r&&!r.opened||r.close()}},params:{picker:{rotateEffect:!1,freeMode:!1,cols:[],containerEl:null,openIn:"auto",sheetPush:!1,sheetSwipeToClose:void 0,backdrop:void 0,formatValue:null,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,scrollToEl:void 0,toolbar:!0,toolbarCloseText:"Done",cssClass:null,routableModals:!1,view:null,url:"select/",renderToolbar:null,render:null}}},FC={handle(t,e){const n=this,a=C(t),r=a[0].scrollTop,s=a[0].scrollHeight,i=a[0].offsetHeight;let o=a[0].getAttribute("data-infinite-distance");const l=a.find(".virtual-list");let c;const d=a.hasClass("infinite-scroll-top");if(o||(o=50),typeof o=="string"&&o.indexOf("%")>=0&&(o=parseInt(o,10)/100*i),o>i&&(o=i),d)r=s-o){if(l.length>0&&(c=l.eq(-1)[0].f7VirtualList,c&&!c.reachEnd&&!c.params.updatableScroll))return;a.trigger("infinite",e),n.emit("infinite",a[0],e)}},create(t){const e=C(t),n=this;function a(r){n.infiniteScroll.handle(this,r)}e.each(r=>{r.f7InfiniteScrollHandler=a,r.addEventListener("scroll",r.f7InfiniteScrollHandler)})},destroy(t){C(t).each(n=>{n.removeEventListener("scroll",n.f7InfiniteScrollHandler),delete n.f7InfiniteScrollHandler})}},zC={name:"infiniteScroll",create(){Ct(this,{infiniteScroll:FC})},on:{tabMounted(t){const e=this,n=C(t),a=n.find(".infinite-scroll-content");n.is(".infinite-scroll-content")&&a.add(n),a.each(r=>{e.infiniteScroll.create(r)})},tabBeforeRemove(t){const e=C(t),n=this,a=e.find(".infinite-scroll-content");e.is(".infinite-scroll-content")&&a.add(e),a.each(r=>{n.infiniteScroll.destroy(r)})},pageInit(t){const e=this;t.$el.find(".infinite-scroll-content").each(n=>{e.infiniteScroll.create(n)})},pageBeforeRemove(t){const e=this;t.$el.find(".infinite-scroll-content").each(n=>{e.infiniteScroll.destroy(n)})}}};let Po=class extends Ue{constructor(e,n){super({},[e]);const a=this,r=Ie(),s=Xe(),i=C(n),o=i.find(".ptr-preloader");a.$el=i,a.el=i[0],a.app=e,a.bottom=a.$el.hasClass("ptr-bottom"),a.useModulesParams({});const l=e.theme==="md",c=e.theme==="ios";a.done=function(){const ie=l?o:i,le=be=>{C(be.target).closest(o).length||(i.removeClass("ptr-transitioning ptr-pull-up ptr-pull-down ptr-closing"),i.trigger("ptr:done"),a.emit("local::done ptrDone",i[0]),ie.off("transitionend",le))};return ie.on("transitionend",le),i.removeClass("ptr-refreshing").addClass("ptr-transitioning ptr-closing"),a},a.refresh=function(){return i.hasClass("ptr-refreshing")||(i.addClass("ptr-transitioning ptr-refreshing"),i.trigger("ptr:refresh",a.done),a.emit("local::refresh ptrRefresh",i[0],a.done)),a},a.mousewheel=i.attr("data-ptr-mousewheel")==="true";let d,u,p;const f={};let h,m,b=!1,w=!1,g=!1,v=0,y,E,k,$,M,x,F=!1,S,I,B;const P=i.parents(".page");if((P.find(".navbar").length>0||P.parents(".view").children(".navbars").length>0)&&(F=!0),P.hasClass("no-navbar")&&(F=!1),!a.bottom){const ne=e.navbar.getElByPage(P[0]);if(ne){const ie=C(ne),le=ie.hasClass("navbar-large-transparent")||ie.hasClass("navbar-large")&&ie.hasClass("navbar-transparent"),be=ie.hasClass("navbar-transparent")&&!ie.hasClass("navbar-large");le?i.addClass("ptr-with-navbar-large-transparent"):be&&i.addClass("ptr-with-navbar-transparent")}}!F&&!a.bottom&&i.addClass("ptr-no-navbar"),i.attr("data-ptr-distance")?M=!0:l?$=66:c&&($=44);function L(ne){ne===void 0&&(ne=0);const ie=o.find(".preloader-inner-line"),le=1/ie.length;ie.forEach((be,oe)=>{const ce=(ne-oe*le)/le;be.style.opacity=Math.max(Math.min(ce,1),0)*.27})}function V(){o.find(".preloader-inner-line").css("opacity","")}function H(ne){if(ne.isTrusted){if(u)if(r.os==="android"){if("targetTouches"in ne&&ne.targetTouches.length>1)return}else return;i.hasClass("ptr-refreshing")||C(ne.target).closest(".sortable-handler, .ptr-ignore, .card-expandable.card-opened").length||(p=!1,x=!1,u=!0,h=void 0,k=void 0,ne.type==="touchstart"&&(d=ne.targetTouches[0].identifier),f.x=ne.type==="touchstart"?ne.targetTouches[0].pageX:ne.pageX,f.y=ne.type==="touchstart"?ne.targetTouches[0].pageY:ne.pageY)}}function D(ne){if(!u||!ne.isTrusted)return;let ie,le,be;if(ne.type==="touchmove"){if(d&&ne.touches)for(let ce=0;ce"u"&&(h=!!(h||Math.abs(le-f.y)>Math.abs(ie-f.x))),!h){u=!1;return}if(E=i[0].scrollTop,!p){i.removeClass("ptr-transitioning"),c&&L(0);let ce;if(S=i[0].scrollHeight,I=i[0].offsetHeight,a.bottom&&(B=S-I),E>S){u=!1;return}const pe=C(ne.target).closest(".ptr-watch-scroll");if(pe.length&&pe.each(R=>{R!==n&&R.scrollHeight>R.offsetHeight&&C(R).css("overflow")==="auto"&&(!a.bottom&&R.scrollTop>0||a.bottom&&R.scrollTop=0&&($=S*parseInt($,10)/100)),v=i.hasClass("ptr-refreshing")?$:0,S===I||r.os!=="ios"||l?w=!0:w=!1,g=!1}if(p=!0,m=le-f.y,typeof k>"u"&&(a.bottom?E!==B:E!==0)&&(k=!0),a.bottom?m<0&&E>=B||E>B:m>0&&E<=0||E<0){r.os==="ios"&&parseInt(r.osVersion.split(".")[0],10)>7&&(!a.bottom&&E===0&&!k&&(w=!0),a.bottom&&E===B&&!k&&(w=!0)),!w&&a.bottom&&!l&&(i.css("-webkit-overflow-scrolling","auto"),i.scrollTop(B),g=!0),w||g?(ne.cancelable&&ne.preventDefault(),y=(a.bottom?-1*Math.abs(m)**.85:m**.85)+v,l?o.transform(`translate3d(0,${y}px,0)`).find(".ptr-arrow").transform(`rotate(${180*(Math.abs(m)/66)+100}deg)`):(a.bottom||c?i.children().transform(`translate3d(0,${y}px,0)`):i.transform(`translate3d(0,${y}px,0)`),c&&o.transform("translate3d(0,0px,0)"))):c&&!a.bottom&&o.transform(`translate3d(0,${E}px,0)`);let ce;c&&!b&&(ce=w||g?Math.abs(m)**.85/$:Math.abs(m)/($*2),L(ce)),(w||g)&&Math.abs(m)**.85>$||!w&&Math.abs(m)>=$*2?(b=!0,i.addClass("ptr-pull-up").removeClass("ptr-pull-down"),V()):(b=!1,i.removeClass("ptr-pull-up").addClass("ptr-pull-down")),x||(i.trigger("ptr:pullstart"),a.emit("local::pullStart ptrPullStart",i[0]),x=!0),i.trigger("ptr:pullmove",{event:ne,scrollTop:E,translate:y,touchesDiff:m}),a.emit("local::pullMove ptrPullMove",i[0],{event:ne,scrollTop:E,translate:y,touchesDiff:m})}else x=!1,i.removeClass("ptr-pull-up ptr-pull-down"),b=!1}function O(ne){if(ne.isTrusted){if(ne.type==="touchend"&&ne.changedTouches&&ne.changedTouches.length>0&&d&&ne.changedTouches[0].identifier!==d){u=!1,h=!1,p=!1,d=null;return}if(!u||!p){u=!1,p=!1;return}y&&(i.addClass("ptr-transitioning"),y=0),l?o.transform("").find(".ptr-arrow").transform(""):(o.transform(""),a.bottom||c?i.children().transform(""):i.transform("")),!w&&a.bottom&&!l&&i.css("-webkit-overflow-scrolling",""),b?(i.addClass("ptr-refreshing"),i.trigger("ptr:refresh",a.done),a.emit("local::refresh ptrRefresh",i[0],a.done)):i.removeClass("ptr-pull-down"),u=!1,p=!1,x&&(i.trigger("ptr:pullend"),a.emit("local::pullEnd ptrPullEnd",i[0]))}}let _,N,G=!0,ee=0;function X(){G=!0,N=!1,ee=0,y&&(i.addClass("ptr-transitioning"),y=0),l?o.transform("").find(".ptr-arrow").transform(""):(o.transform(""),a.bottom?i.children().transform(""):i.transform("")),b?(i.addClass("ptr-refreshing"),i.trigger("ptr:refresh",a.done),a.emit("local::refresh ptrRefresh",i[0],a.done)):i.removeClass("ptr-pull-down"),x&&(i.trigger("ptr:pullend"),a.emit("local::pullEnd ptrPullEnd",i[0]))}function se(ne){if(!G)return;const{deltaX:ie,deltaY:le}=ne;if(Math.abs(ie)>Math.abs(le)||i.hasClass("ptr-refreshing")||C(ne.target).closest(".sortable-handler, .ptr-ignore, .card-expandable.card-opened").length)return;if(clearTimeout(_),E=i[0].scrollTop,!N){i.removeClass("ptr-transitioning"),c&&L(0);let oe;if(S=i[0].scrollHeight,I=i[0].offsetHeight,a.bottom&&(B=S-I),E>S){G=!1;return}const ce=C(ne.target).closest(".ptr-watch-scroll");if(ce.length&&ce.each(pe=>{pe!==n&&pe.scrollHeight>pe.offsetHeight&&C(pe).css("overflow")==="auto"&&(!a.bottom&&pe.scrollTop>0||a.bottom&&pe.scrollTop=0&&($=S*parseInt($,10)/100))}if(p=!0,ee-=le,m=ee,typeof k>"u"&&(a.bottom?E!==B:E!==0)&&(k=!0),a.bottom?m<0&&E>=B||E>B:m>0&&E<=0||E<0){ne.cancelable&&ne.preventDefault(),y=m,Math.abs(y)>$&&(y=$+(Math.abs(y)-$)**.7,a.bottom&&(y=-y)),l?o.transform(`translate3d(0,${y}px,0)`).find(".ptr-arrow").transform(`rotate(${180*(Math.abs(m)/66)+100}deg)`):a.bottom?i.children().transform(`translate3d(0,${y}px,0)`):(i.transform(`translate3d(0,${y}px,0)`),c&&o.transform(`translate3d(0,${-y}px,0)`));let oe;c&&!b&&(oe=Math.abs(y)/$,L(oe)),Math.abs(y)>$?(b=!0,i.addClass("ptr-pull-up").removeClass("ptr-pull-down"),V()):(b=!1,i.removeClass("ptr-pull-up").addClass("ptr-pull-down")),x||(i.trigger("ptr:pullstart"),a.emit("local::pullStart ptrPullStart",i[0]),x=!0),i.trigger("ptr:pullmove",{event:ne,scrollTop:E,translate:y,touchesDiff:m}),a.emit("local::pullMove ptrPullMove",i[0],{event:ne,scrollTop:E,translate:y,touchesDiff:m})}else x=!1,i.removeClass("ptr-pull-up ptr-pull-down"),b=!1;_=setTimeout(X,300)}return!P.length||!i.length||(i[0].f7PullToRefresh=a,a.attachEvents=function(){const ie=s.passiveListener?{passive:!0}:!1;i.on(e.touchEvents.start,H,ie),e.on("touchmove:active",D),e.on("touchend:passive",O),a.mousewheel&&!a.bottom&&i.on("wheel",se)},a.detachEvents=function(){const ie=s.passiveListener?{passive:!0}:!1;i.off(e.touchEvents.start,H,ie),e.off("touchmove:active",D),e.off("touchend:passive",O),a.mousewheel&&!a.bottom&&i.off("wheel",se)},a.useModules(),a.init()),a}init(){this.attachEvents()}destroy(){let e=this;e.emit("local::beforeDestroy ptrBeforeDestroy",e),e.$el.trigger("ptr:beforedestroy"),delete e.el.f7PullToRefresh,e.detachEvents(),Ze(e),e=null}};const NC={name:"pullToRefresh",create(){const t=this;t.ptr=W(et({defaultSelector:".ptr-content",constructor:Po,app:t,domProp:"f7PullToRefresh"}),{done(e){const n=t.ptr.get(e);if(n)return n.done()},refresh(e){const n=t.ptr.get(e);if(n)return n.refresh()}})},static:{PullToRefresh:Po},on:{tabMounted(t){const e=this,n=C(t),a=n.find(".ptr-content");n.is(".ptr-content")&&a.add(n),a.each(r=>{e.ptr.create(r)})},tabBeforeRemove(t){const e=C(t),n=this,a=e.find(".ptr-content");e.is(".ptr-content")&&a.add(e),a.each(r=>{n.ptr.destroy(r)})},pageInit(t){const e=this;t.$el.find(".ptr-content").each(n=>{e.ptr.create(n)})},pageBeforeRemove(t){const e=this;t.$el.find(".ptr-content").each(n=>{e.ptr.destroy(n)})}}};let Mo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r={};a.useModulesParams(r),a.params=W(r,n);const s=C(a.params.el);if(s.length===0)return;if(a.$el=s,a.el=s[0],a.$el[0].f7DataTable){const l=a.$el[0].f7DataTable;return a.destroy(),l}a.$el[0].f7DataTable=a,W(a,{collapsible:s.hasClass("data-table-collapsible"),$headerEl:s.find(".data-table-header"),$headerSelectedEl:s.find(".data-table-header-selected")});function i(l){if(l.detail&&l.detail.sentByF7DataTable)return;const c=C(this),d=c[0].checked,u=c.parents("td,th").index();if(c.parents("thead").length>0)u===0&&s.find("tbody tr")[d?"addClass":"removeClass"]("data-table-row-selected"),s.find(`tbody tr td:nth-child(${u+1}) input`).prop("checked",d).trigger("change",{sentByF7DataTable:!0}),c.prop("indeterminate",!1);else{u===0&&c.parents("tr")[d?"addClass":"removeClass"]("data-table-row-selected");const p=s.find(`tbody .checkbox-cell:nth-child(${u+1}) input[type="checkbox"]:checked`).length,f=s.find("tbody tr").length,h=s.find(`thead .checkbox-cell:nth-child(${u+1}) input[type="checkbox"]`);d?p===f&&h.prop("checked",!0).trigger("change",{sentByF7DataTable:!0}):h.prop("checked",!1),h.prop("indeterminate",p>0&&p{const a=C(n),r=a.index(),s=a.attr("data-collapsible-title");!s&&s!==""&&a.attr("data-collapsible-title",e.$el.find("thead th").eq(r).text())})}checkSelectedHeader(){const e=this;if(e.$headerEl.length>0&&e.$headerSelectedEl.length>0){const n=e.$el.find("tbody .checkbox-cell input:checked").length;e.$el[n>0?"addClass":"removeClass"]("data-table-has-checked"),e.$headerSelectedEl.find(".data-table-selected-count").text(n)}}init(){const e=this;e.attachEvents(),e.setCollapsibleLabels(),e.checkSelectedHeader()}destroy(){let e=this;e.$el.trigger("datatable:beforedestroy"),e.emit("local::beforeDestroy dataTableBeforeDestroy",e),e.detachEvents(),e.$el[0]&&(e.$el[0].f7DataTable=null,delete e.$el[0].f7DataTable),Ze(e),e=null}};const VC={name:"dataTable",static:{DataTable:Mo},create(){const t=this;t.dataTable=et({defaultSelector:".data-table",constructor:Mo,app:t,domProp:"f7DataTable"})},on:{tabBeforeRemove(t){const e=this;C(t).find(".data-table-init").each(n=>{e.dataTable.destroy(n)})},tabMounted(t){const e=this;C(t).find(".data-table-init").each(n=>{e.dataTable.create({el:n})})},pageBeforeRemove(t){const e=this;t.$el.find(".data-table-init").each(n=>{e.dataTable.destroy(n)})},pageInit(t){const e=this;t.$el.find(".data-table-init").each(n=>{e.dataTable.create({el:n})})}},vnode:{"data-table-init":{insert(t){const e=this,n=t.elm;e.dataTable.create({el:n})},destroy(t){const e=this,n=t.elm;e.dataTable.destroy(n)}}}},_C={morphOpen(t,e){const n=this,a=C(t),r=C(e);if(r.length===0)return;r.transition(0).addClass("fab-morph-target-visible");const s={width:r[0].offsetWidth,height:r[0].offsetHeight,offset:r.offset(),borderRadius:r.css("border-radius"),zIndex:r.css("z-index")},i={width:a[0].offsetWidth,height:a[0].offsetHeight,offset:a.offset(),translateX:mr(a[0],"x"),translateY:mr(a[0],"y")};a[0].f7FabMorphData={$targetEl:r,target:s,fab:i};const o=i.offset.left+i.width/2-(s.offset.left+s.width/2)-i.translateX,l=i.offset.top+i.height/2-(s.offset.top+s.height/2)-i.translateY,c=s.width/i.width,d=s.height/i.height;let u=Math.ceil(parseInt(s.borderRadius,10)/Math.max(c,d));u>0&&(u+=2),a[0].f7FabMorphResizeHandler=function(){a.transition(0).transform(""),r.transition(0),s.width=r[0].offsetWidth,s.height=r[0].offsetHeight,s.offset=r.offset(),i.offset=a.offset();const f=i.offset.left+i.width/2-(s.offset.left+s.width/2)-i.translateX,h=i.offset.top+i.height/2-(s.offset.top+s.height/2)-i.translateY,m=s.width/i.width,b=s.height/i.height;a.transform(`translate3d(${-f}px, ${-h}px, 0) scale(${m}, ${b})`)},r.css("opacity",0).transform(`scale(${1/c}, ${1/d})`),a.addClass("fab-opened").css("z-index",s.zIndex-1).transform(`translate3d(${-o}px, ${-l}px, 0)`),a.transitionEnd(()=>{r.transition(""),Pt(()=>{r.css("opacity",1).transform("scale(1,1)"),a.transform(`translate3d(${-o}px, ${-l}px, 0) scale(${c}, ${d})`).css("border-radius",`${u}px`).css("box-shadow","none").css("opacity","0")}),n.on("resize",a[0].f7FabMorphResizeHandler),r.parents(".page-content").length>0&&r.parents(".page-content").on("scroll",a[0].f7FabMorphResizeHandler)})},morphClose(t){const e=this,n=C(t),a=n[0].f7FabMorphData;if(!a)return;const{$targetEl:r,target:s,fab:i}=a;if(r.length===0)return;const o=i.offset.left+i.width/2-(s.offset.left+s.width/2)-i.translateX,l=i.offset.top+i.height/2-(s.offset.top+s.height/2)-i.translateY,c=s.width/i.width,d=s.height/i.height;e.off("resize",n[0].f7FabMorphResizeHandler),r.parents(".page-content").length>0&&r.parents(".page-content").off("scroll",n[0].f7FabMorphResizeHandler),r.css("opacity",0).transform(`scale(${1/c}, ${1/d})`),n.transition("").css("box-shadow","").css("border-radius","").css("opacity","1").transform(`translate3d(${-o}px, ${-l}px, 0)`),n.transitionEnd(()=>{n.css("z-index","").removeClass("fab-opened").transform(""),Pt(()=>{n.transitionEnd(()=>{r.removeClass("fab-morph-target-visible").css("opacity","").transform("").transition("")})})})},open(t,e){const n=this,a=C(t).eq(0),r=a.find(".fab-buttons");if(a.length&&!a.hasClass("fab-opened")&&!(!r.length&&!a.hasClass("fab-morph"))){if(n.fab.openedEl){if(n.fab.openedEl===a[0])return;n.fab.close(n.fab.openedEl)}n.fab.openedEl=a[0],a.hasClass("fab-morph")?n.fab.morphOpen(a,e||a.attr("data-morph-to")):a.addClass("fab-opened"),a.siblings(".fab-backdrop").addClass("backdrop-in"),a.trigger("fab:open")}},close(t){t===void 0&&(t=".fab-opened");const e=this,n=C(t).eq(0),a=n.find(".fab-buttons");n.length&&n.hasClass("fab-opened")&&(!a.length&&!n.hasClass("fab-morph")||(e.fab.openedEl=null,n.hasClass("fab-morph")?e.fab.morphClose(n):n.removeClass("fab-opened"),n.siblings(".fab-backdrop").removeClass("backdrop-in"),n.trigger("fab:close")))},toggle(t){const e=this;C(t).hasClass("fab-opened")?e.fab.close(t):e.fab.open(t)}},jC={name:"fab",create(){Ct(this,{fab:{openedEl:null,..._C}})},clicks:{".fab > a":function(e){this.fab.toggle(e.parents(".fab"))},".fab-open":function(e,n){n===void 0&&(n={}),this.fab.open(n.fab)},".fab-close":function(e,n){n===void 0&&(n={}),this.fab.close(n.fab)},".fab-backdrop":function(){this.fab.close()}}};let Bo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r={el:void 0,inputEl:void 0,inputEvents:"change input compositionend",disableButton:!0,disableButtonEl:void 0,backdropEl:void 0,searchContainer:void 0,searchItem:"li",searchIn:void 0,searchGroup:".list-group",searchGroupTitle:".list-group-title",ignore:".searchbar-ignore",foundEl:".searchbar-found",notFoundEl:".searchbar-not-found",hideOnEnableEl:".searchbar-hide-on-enable",hideOnSearchEl:".searchbar-hide-on-search",backdrop:!0,removeDiacritics:!0,customSearch:!1,hideGroupTitles:!0,hideGroups:!0,disableOnBackdropClick:!0,expandable:!1,inline:!1};a.useModulesParams(r),a.params=W(r,n);const s=C(a.params.el);if(s.length===0)return a;if(s[0].f7Searchbar)return s[0].f7Searchbar;s[0].f7Searchbar=a;let i;const o=s.parents(".navbar");if(s.parents(".page").length>0)i=s.parents(".page");else if(o.length>0&&(i=C(e.navbar.getPageByEl(o[0])),!i.length)){const F=s.parents(".view").find(".page-current");F[0]&&F[0].f7Page&&F[0].f7Page.navbarEl===o[0]&&(i=F)}let l;n.foundEl?l=C(n.foundEl):typeof a.params.foundEl=="string"&&i&&(l=i.find(a.params.foundEl));let c;n.notFoundEl?c=C(n.notFoundEl):typeof a.params.notFoundEl=="string"&&i&&(c=i.find(a.params.notFoundEl));let d;n.hideOnEnableEl?d=C(n.hideOnEnableEl):typeof a.params.hideOnEnableEl=="string"&&i&&(d=i.find(a.params.hideOnEnableEl));let u;n.hideOnSearchEl?u=C(n.hideOnSearchEl):typeof a.params.hideOnSearchEl=="string"&&i&&(u=i.find(a.params.hideOnSearchEl));const p=a.params.expandable||s.hasClass("searchbar-expandable"),f=a.params.inline||s.hasClass("searchbar-inline");typeof a.params.backdrop>"u"&&(a.params.backdrop=!f);let h;a.params.backdrop&&(a.params.backdropEl?h=C(a.params.backdropEl):i&&i.length>0?h=i.find(".searchbar-backdrop"):h=s.siblings(".searchbar-backdrop"),h.length===0&&(h=C('
            '),i&&i.length?s.parents(i).length>0&&o&&s.parents(o).length===0?h.insertBefore(s):h.insertBefore(i.find(".page-content").eq(0)):h.insertBefore(s)));let m;a.params.searchContainer&&(m=C(a.params.searchContainer));let b;a.params.inputEl?b=C(a.params.inputEl):b=s.find('input[type="search"]').eq(0);let w;a.params.disableButton&&(a.params.disableButtonEl?w=C(a.params.disableButtonEl):w=s.find(".searchbar-disable-button")),W(a,{app:e,view:e.views.get(s.parents(".view")),$el:s,el:s[0],$backdropEl:h,backdropEl:h&&h[0],$searchContainer:m,searchContainer:m&&m[0],$inputEl:b,inputEl:b[0],$disableButtonEl:w,disableButtonEl:w&&w[0],disableButtonHasMargin:!1,$pageEl:i,pageEl:i&&i[0],$navbarEl:o,navbarEl:o&&o[0],$foundEl:l,foundEl:l&&l[0],$notFoundEl:c,notFoundEl:c&&c[0],$hideOnEnableEl:d,hideOnEnableEl:d&&d[0],$hideOnSearchEl:u,hideOnSearchEl:u&&u[0],previousQuery:"",query:"",isVirtualList:m&&m.hasClass("virtual-list"),virtualList:void 0,enabled:!1,expandable:p,inline:f});function g(F){F.preventDefault()}function v(F){a.enable(F),a.$el.addClass("searchbar-focused")}function y(){a.$el.removeClass("searchbar-focused")}function E(){const F=a.$inputEl.val().trim();(a.$searchContainer&&a.$searchContainer.length>0&&(a.params.searchIn||a.isVirtualList||a.params.searchIn===a.params.searchItem)||a.params.customSearch)&&a.search(F,!0)}function k(F,S){a.$el.trigger("searchbar:clear",S),a.emit("local::clear searchbarClear",a,S)}function $(F){a.disable(F)}function M(){!a||a&&!a.$el||a.enabled&&(a.$el.removeClass("searchbar-enabled"),a.expandable&&a.$el.parents(".navbar").removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition"))}function x(){!a||a&&!a.$el||a.enabled&&(a.$el.addClass("searchbar-enabled"),a.expandable&&a.$el.parents(".navbar").addClass("with-searchbar-expandable-enabled-no-transition"))}return a.attachEvents=function(){s.on("submit",g),a.params.disableButton&&a.$disableButtonEl.on("click",$),a.params.disableOnBackdropClick&&a.$backdropEl&&a.$backdropEl.on("click",$),a.expandable&&e.theme==="ios"&&a.view&&o.length&&a.$pageEl&&(a.$pageEl.on("page:beforeout",M),a.$pageEl.on("page:beforein",x)),a.$inputEl.on("focus",v),a.$inputEl.on("blur",y),a.$inputEl.on(a.params.inputEvents,E),a.$inputEl.on("input:clear",k)},a.detachEvents=function(){s.off("submit",g),a.params.disableButton&&a.$disableButtonEl.off("click",$),a.params.disableOnBackdropClick&&a.$backdropEl&&a.$backdropEl.off("click",$),a.expandable&&e.theme==="ios"&&a.view&&o.length&&a.$pageEl&&(a.$pageEl.off("page:beforeout",M),a.$pageEl.off("page:beforein",x)),a.$inputEl.off("focus",v),a.$inputEl.off("blur",y),a.$inputEl.off(a.params.inputEvents,E),a.$inputEl.off("input:clear",k)},a.useModules(),a.init(),a}clear(e){const n=this;if(!n.query&&e&&C(e.target).hasClass("searchbar-clear"))return n.disable(),n;const a=n.value;return n.$inputEl.val("").trigger("change").focus(),n.$el.trigger("searchbar:clear",a),n.emit("local::clear searchbarClear",n,a),n}setDisableButtonMargin(){const e=this;if(e.expandable)return;const n=e.app;e.$disableButtonEl.transition(0).show(),e.$disableButtonEl.css(`margin-${n.rtl?"left":"right"}`,`${-e.disableButtonEl.offsetWidth}px`),e._clientLeft=e.$disableButtonEl[0].clientLeft,e.$disableButtonEl.transition(""),e.disableButtonHasMargin=!0}enable(e){const n=this;if(n.enabled)return n;const a=n.app,r=ye(),s=Ie();n.enabled=!0;function i(){if(n.$backdropEl&&(n.$searchContainer&&n.$searchContainer.length||n.params.customSearch)&&!n.$el.hasClass("searchbar-enabled")&&!n.query&&n.backdropShow(),n.$el.addClass("searchbar-enabled"),(!n.$disableButtonEl||n.$disableButtonEl&&n.$disableButtonEl.length===0)&&n.$el.addClass("searchbar-enabled-no-disable-button"),!n.expandable&&n.$disableButtonEl&&n.$disableButtonEl.length>0&&a.theme!=="md"&&(n.disableButtonHasMargin||n.setDisableButtonMargin(),n.$disableButtonEl.css(`margin-${a.rtl?"left":"right"}`,"0px")),n.expandable){const c=n.$el.parents(".navbar");if(c.hasClass("navbar-large")&&n.$pageEl){const d=n.$pageEl.find(".page-content"),u=c.find(".title-large");d.addClass("with-searchbar-expandable-enabled"),c.hasClass("navbar-large")&&c.hasClass("navbar-large-collapsed")&&u.length&&d.length&&(d.transition(0),d[0].scrollTop-=u[0].offsetHeight,setTimeout(()=>{d.transition("")},200))}a.theme==="md"&&c.length?c.addClass("with-searchbar-expandable-enabled"):(c.addClass("with-searchbar-expandable-enabled"),c.hasClass("navbar-large")&&c.addClass("navbar-large-collapsed"))}n.$hideOnEnableEl&&n.$hideOnEnableEl.addClass("hidden-by-searchbar"),n.$el.trigger("searchbar:enable"),n.emit("local::enable searchbarEnable",n)}let o=!1;return e===!0&&r.activeElement!==n.inputEl&&(o=!0),s.ios&&a.theme==="ios"?n.expandable?(o&&n.$inputEl.focus(),i()):(o&&n.$inputEl.focus(),e&&(e.type==="focus"||e===!0)?lt(()=>{i()},400):i()):(o&&n.$inputEl.focus(),a.theme==="md"&&n.expandable&&n.$el.parents(".page, .view, .navbar-inner, .navbar").scrollLeft(a.rtl?100:0),i()),n}disable(){const e=this;if(!e.enabled)return e;const n=e.app;if(e.$inputEl.val("").trigger("change"),e.$el.removeClass("searchbar-enabled searchbar-focused searchbar-enabled-no-disable-button"),e.expandable){const a=e.$el.parents(".navbar"),r=e.$pageEl&&e.$pageEl.find(".page-content");if(a.hasClass("navbar-large")&&r.length){const s=a.find(".title-large");if(e.$el.transitionEnd(()=>{r.removeClass("with-searchbar-expandable-closing")}),a.hasClass("navbar-large")&&a.hasClass("navbar-large-collapsed")&&s.length){const i=r[0].scrollTop,o=s[0].offsetHeight;i>o&&(r.transition(0),r[0].scrollTop=i+o,setTimeout(()=>{r.transition("")},200))}r.removeClass("with-searchbar-expandable-enabled").addClass("with-searchbar-expandable-closing")}n.theme==="md"&&a.length?(a.removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd(()=>{a.removeClass("with-searchbar-expandable-closing")})):(a.removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd(()=>{a.removeClass("with-searchbar-expandable-closing")}),e.$pageEl&&e.$pageEl.find(".page-content").trigger("scroll"))}return!e.expandable&&e.$disableButtonEl&&e.$disableButtonEl.length>0&&n.theme!=="md"&&e.$disableButtonEl.css(`margin-${n.rtl?"left":"right"}`,`${-e.disableButtonEl.offsetWidth}px`),e.$backdropEl&&(e.$searchContainer&&e.$searchContainer.length||e.params.customSearch)&&e.backdropHide(),e.enabled=!1,e.$inputEl.blur(),e.$hideOnEnableEl&&e.$hideOnEnableEl.removeClass("hidden-by-searchbar"),e.$el.trigger("searchbar:disable"),e.emit("local::disable searchbarDisable",e),e}toggle(){const e=this;return e.enabled?e.disable():e.enable(!0),e}backdropShow(){const e=this;return e.$backdropEl&&e.$backdropEl.addClass("searchbar-backdrop-in"),e}backdropHide(){const e=this;return e.$backdropEl&&e.$backdropEl.removeClass("searchbar-backdrop-in"),e}search(e,n){const a=this;if(a.previousQuery=a.query||"",e===a.previousQuery)return a;n||(a.enabled||a.enable(),a.$inputEl.val(e),a.$inputEl.trigger("input")),a.query=e,a.value=e;const{$searchContainer:r,$el:s,$foundEl:i,$notFoundEl:o,$hideOnSearchEl:l,isVirtualList:c}=a;if(e.length>0&&l?l.addClass("hidden-by-searchbar"):l&&l.removeClass("hidden-by-searchbar"),(r&&r.length&&s.hasClass("searchbar-enabled")||a.params.customSearch&&s.hasClass("searchbar-enabled"))&&(e.length===0?a.backdropShow():a.backdropHide()),a.params.customSearch)return s.trigger("searchbar:search",{query:e,previousQuery:a.previousQuery}),a.emit("local::search searchbarSearch",a,e,a.previousQuery),a;let d=[],u;if(c){if(a.virtualList=r[0].f7VirtualList,e.trim()==="")return a.virtualList.resetFilter(),o&&o.hide(),i&&i.show(),s.trigger("searchbar:search",{query:e,previousQuery:a.previousQuery}),a.emit("local::search searchbarSearch",a,e,a.previousQuery),a;if(u=a.params.removeDiacritics?ir(e):e,a.virtualList.params.searchAll)d=a.virtualList.params.searchAll(u,a.virtualList.items)||[];else if(a.virtualList.params.searchByItem)for(let p=0;p{const h=C(f);let m=[],b=a.params.searchIn?h.find(a.params.searchIn):h;a.params.searchIn===a.params.searchItem&&(b=h),b.each(g=>{let v=C(g).text().trim().toLowerCase();a.params.removeDiacritics&&(v=ir(v)),m.push(v)}),m=m.join(" ");let w=0;for(let g=0;g=0&&(w+=1);w!==p.length&&!(a.params.ignore&&h.is(a.params.ignore))?h.addClass("hidden-by-searchbar"):d.push(h[0])}),a.params.hideGroupTitles&&r.find(a.params.searchGroupTitle).each(f=>{const h=C(f),m=h.nextAll(a.params.searchItem);let b=!0;for(let g=0;g{const h=C(f),m=a.params.ignore&&h.is(a.params.ignore);h.find(a.params.searchItem).filter(w=>!C(w).hasClass("hidden-by-searchbar")).length===0&&!m?h.addClass("hidden-by-searchbar"):h.removeClass("hidden-by-searchbar")})}return d.length===0?(o&&o.show(),i&&i.hide()):(o&&o.hide(),i&&i.show()),c&&a.virtualList&&a.virtualList.filterItems(d),s.trigger("searchbar:search",{query:e,previousQuery:a.previousQuery,foundItems:d}),a.emit("local::search searchbarSearch",a,e,a.previousQuery,d),a}init(){const e=this;e.expandable&&e.$el&&e.$el.addClass("searchbar-expandable"),e.inline&&e.$el&&e.$el.addClass("searchbar-inline"),e.attachEvents()}destroy(){const e=this;e.emit("local::beforeDestroy searchbarBeforeDestroy",e),e.$el.trigger("searchbar:beforedestroy"),e.detachEvents(),e.$el[0]&&(e.$el[0].f7Searchbar=null,delete e.$el[0].f7Searchbar),Ze(e)}};const qC={name:"searchbar",static:{Searchbar:Bo},create(){const t=this;t.searchbar=et({defaultSelector:".searchbar",constructor:Bo,app:t,domProp:"f7Searchbar",addMethods:"clear enable disable toggle search".split(" ")})},on:{tabMounted(t){const e=this;C(t).find(".searchbar-init").each(n=>{const a=C(n);e.searchbar.create(W(a.dataset(),{el:n}))})},tabBeforeRemove(t){C(t).find(".searchbar-init").each(e=>{e.f7Searchbar&&e.f7Searchbar.destroy&&e.f7Searchbar.destroy()})},pageInit(t){const e=this;t.$el.find(".searchbar-init").each(n=>{const a=C(n);e.searchbar.create(W(a.dataset(),{el:n}))}),e.theme==="ios"&&t.view&&t.view.router.dynamicNavbar&&t.$navbarEl&&t.$navbarEl.length>0&&t.$navbarEl.find(".searchbar-init").each(n=>{const a=C(n);e.searchbar.create(W(a.dataset(),{el:n}))})},pageBeforeRemove(t){const e=this;t.$el.find(".searchbar-init").each(n=>{n.f7Searchbar&&n.f7Searchbar.destroy&&n.f7Searchbar.destroy()}),e.theme==="ios"&&t.view&&t.view.router.dynamicNavbar&&t.$navbarEl&&t.$navbarEl.length>0&&t.$navbarEl.find(".searchbar-init").each(n=>{n.f7Searchbar&&n.f7Searchbar.destroy&&n.f7Searchbar.destroy()})}},clicks:{".searchbar-clear":function(e,n){n===void 0&&(n={});const r=this.searchbar.get(n.searchbar);r&&r.clear()},".searchbar-enable":function(e,n){n===void 0&&(n={});const r=this.searchbar.get(n.searchbar);r&&r.enable(!0)},".searchbar-disable":function(e,n){n===void 0&&(n={});const r=this.searchbar.get(n.searchbar);r&&r.disable()},".searchbar-toggle":function(e,n){n===void 0&&(n={});const r=this.searchbar.get(n.searchbar);r&&r.toggle()}},vnode:{"searchbar-init":{insert(t){const e=this,n=t.elm,a=C(n);e.searchbar.create(W(a.dataset(),{el:n}))},destroy(t){const e=t.elm;e.f7Searchbar&&e.f7Searchbar.destroy&&e.f7Searchbar.destroy()}}}};function Ms(){return Ms=Object.assign?Object.assign.bind():function(t){for(var e=1;e${a.textHeader}`,"")),a.text&&a.textFooter&&(a.text=a.text.replace(``,""));let r=n.find(".message-avatar").css("background-image");return(r==="none"||r==="")&&(r=void 0),r&&typeof r=="string"?r=r.replace("url(","").replace(")","").replace(/"/g,"").replace(/'/g,""):r=void 0,a.avatar=r,a}getMessagesData(){const e=this,n=[];return e.$el.find(".message, .messages-title").each(a=>{n.push(e.getMessageData(a))}),n}renderMessage(e){const n=this,a=W({type:"sent",attrs:{}},e);return n.params.renderMessage?n.params.renderMessage.call(n,a):a.isTitle?`
            ${a.text}
            `:T("div",Ms({class:`message message-${a.type} ${a.isTyping?"message-typing":""} ${a.cssClass||""}`},a.attrs),a.avatar&&T("div",{class:"message-avatar",style:`background-image:url(${a.avatar})`}),T("div",{class:"message-content"},a.name&&T("div",{class:"message-name"},a.name),a.header&&T("div",{class:"message-header"},a.header),T("div",{class:"message-bubble"},a.textHeader&&T("div",{class:"message-text-header"},a.textHeader),a.image&&T("div",{class:"message-image"},a.image),a.imageSrc&&!a.image&&T("div",{class:"message-image"},T("img",{src:a.imageSrc})),(a.text||a.isTyping)&&T("div",{class:"message-text"},a.text||"",a.isTyping&&T("div",{class:"message-typing-indicator"},T("div",null),T("div",null),T("div",null))),a.textFooter&&T("div",{class:"message-text-footer"},a.textFooter)),a.footer&&T("div",{class:"message-footer"},a.footer)))}renderMessages(e,n){e===void 0&&(e=this.messages),n===void 0&&(n=this.params.newMessagesFirst?"prepend":"append");const a=this,r=e.map(s=>a.renderMessage(s)).join("");a.$el[n](r)}isFirstMessage(){const e=this;return e.params.firstMessageRule?e.params.firstMessageRule(...arguments):!1}isLastMessage(){const e=this;return e.params.lastMessageRule?e.params.lastMessageRule(...arguments):!1}isTailMessage(){const e=this;return e.params.tailMessageRule?e.params.tailMessageRule(...arguments):!1}isSameNameMessage(){const e=this;return e.params.sameNameMessageRule?e.params.sameNameMessageRule(...arguments):!1}isSameHeaderMessage(){const e=this;return e.params.sameHeaderMessageRule?e.params.sameHeaderMessageRule(...arguments):!1}isSameFooterMessage(){const e=this;return e.params.sameFooterMessageRule?e.params.sameFooterMessageRule(...arguments):!1}isSameAvatarMessage(){const e=this;return e.params.sameAvatarMessageRule?e.params.sameAvatarMessageRule(...arguments):!1}isCustomClassMessage(){const e=this;if(e.params.customClassMessageRule)return e.params.customClassMessageRule(...arguments)}layout(){const e=this;e.$el.find(".message, .messages-title").each((n,a)=>{const r=C(n);e.messages||(e.messages=e.getMessagesData());const s=[],i=e.messages[a],o=e.messages[a-1],l=e.messages[a+1];e.isFirstMessage(i,o,l)&&s.push("message-first"),e.isLastMessage(i,o,l)&&s.push("message-last"),e.isTailMessage(i,o,l)&&s.push("message-tail"),e.isSameNameMessage(i,o,l)&&s.push("message-same-name"),e.isSameHeaderMessage(i,o,l)&&s.push("message-same-header"),e.isSameFooterMessage(i,o,l)&&s.push("message-same-footer"),e.isSameAvatarMessage(i,o,l)&&s.push("message-same-avatar");let c=e.isCustomClassMessage(i,o,l);c&&c.length&&(typeof c=="string"&&(c=c.split(" ")),c.forEach(d=>{s.push(d)})),r.removeClass("message-first message-last message-tail message-same-name message-same-header message-same-footer message-same-avatar"),s.forEach(d=>{r.addClass(d)})})}clear(){const e=this;e.messages=[],e.$el.html("")}removeMessage(e,n){n===void 0&&(n=!0);const a=this;let r,s;return typeof e=="number"?(r=e,s=a.$el.find(".message, .messages-title").eq(r)):a.messages&&a.messages.indexOf(e)>=0?(r=a.messages.indexOf(e),s=a.$el.children().eq(r)):(s=C(e),r=s.index()),s.length===0||(s.remove(),a.messages.splice(r,1),a.params.autoLayout&&n&&a.layout()),a}removeMessages(e,n){n===void 0&&(n=!0);const a=this;if(Array.isArray(e)){const r=[];e.forEach(s=>{r.push(a.$el.find(".message, .messages-title").eq(s))}),r.forEach(s=>{a.removeMessage(s,!1)})}else C(e).each(r=>{a.removeMessage(r,!1)});return a.params.autoLayout&&n&&a.layout(),a}addMessage(){const e=this;let n,a,r;for(var s=arguments.length,i=new Array(s),o=0;o"u"&&(a=!0),typeof r>"u"&&(r=e.params.newMessagesFirst?"prepend":"append"),e.addMessages([n],a,r)}setScrollData(){const e=this,n=e.pageContentEl.scrollHeight,a=e.pageContentEl.offsetHeight,r=e.pageContentEl.scrollTop;return e.scrollData={scrollHeightBefore:n,heightBefore:a,scrollBefore:r},{scrollHeightBefore:n,heightBefore:a,scrollBefore:r}}addMessages(){const e=this;let n,a,r;for(var s=arguments.length,i=new Array(s),o=0;o"u"&&(a=!0),typeof r>"u"&&(r=e.params.newMessagesFirst?"prepend":"append");const{scrollHeightBefore:l,scrollBefore:c}=e.setScrollData();let d="";const u=e.messages.filter(f=>f.isTyping)[0];n.forEach(f=>{u?r==="append"?e.messages.splice(e.messages.indexOf(u),0,f):e.messages.splice(e.messages.indexOf(u)+1,0,f):e.messages[r==="append"?"push":"unshift"](f),d+=e.renderMessage(f)});const p=C(d);return a&&(r==="append"&&!e.params.newMessagesFirst&&p.addClass("message-appear-from-bottom"),r==="prepend"&&e.params.newMessagesFirst&&p.addClass("message-appear-from-top")),u?r==="append"?p.insertBefore(e.$el.find(".message-typing")):p.insertAfter(e.$el.find(".message-typing")):e.$el[r](p),e.params.autoLayout&&e.layout(),r==="prepend"&&!u&&(e.pageContentEl.scrollTop=c+(e.pageContentEl.scrollHeight-l)),e.params.scrollMessages&&(r==="append"&&!e.params.newMessagesFirst||r==="prepend"&&e.params.newMessagesFirst&&!u)&&e.scrollWithEdgeCheck(a),e}showTyping(e){e===void 0&&(e={});const n=this,a=n.messages.filter(r=>r.isTyping)[0];return a&&n.removeMessage(n.messages.indexOf(a)),n.addMessage(W({type:"received",isTyping:!0},e)),n}hideTyping(){const e=this;let n,a;if(e.messages.forEach((r,s)=>{r.isTyping&&(n=s)}),typeof n<"u"&&e.$el.find(".message").eq(n).hasClass("message-typing")&&(a=!0,e.removeMessage(n)),!a){const r=e.$el.find(".message-typing");r.length&&e.removeMessage(r)}return e}scrollWithEdgeCheck(e){const n=this,{scrollBefore:a,scrollHeightBefore:r,heightBefore:s}=n.scrollData;if(n.params.scrollMessagesOnEdge){let i=!1;n.params.newMessagesFirst&&a===0&&(i=!0),!n.params.newMessagesFirst&&a-(r-s)>=-10&&(i=!0),i&&n.scroll(e?void 0:0)}else n.scroll(e?void 0:0)}scroll(e,n){e===void 0&&(e=300);const a=this,r=a.pageContentEl.scrollTop;let s;if(typeof n<"u")s=n;else if(s=a.params.newMessagesFirst?0:a.pageContentEl.scrollHeight-a.pageContentEl.offsetHeight,s===r)return a;return a.$pageContentEl.scrollTop(s,e),a}init(){const e=this;(!e.messages||e.messages.length===0)&&(e.messages=e.getMessagesData()),e.params.messages&&e.params.messages.length&&e.renderMessages(),e.params.autoLayout&&e.layout(),e.params.scrollMessages&&e.scroll(0)}destroy(){const e=this;e.emit("local::beforeDestroy messagesBeforeDestroy",e),e.$el.trigger("messages:beforedestroy"),e.$el[0]&&(e.$el[0].f7Messages=null,delete e.$el[0].f7Messages),Ze(e)}};const WC={name:"messages",static:{Messages:Io},create(){const t=this;t.messages=et({defaultSelector:".messages",constructor:Io,app:t,domProp:"f7Messages",addMethods:"renderMessages layout scroll clear removeMessage removeMessages addMessage addMessages".split(" ")})},on:{tabBeforeRemove(t){const e=this;C(t).find(".messages-init").each(n=>{e.messages.destroy(n)})},tabMounted(t){const e=this;C(t).find(".messages-init").each(n=>{e.messages.create({el:n})})},pageBeforeRemove(t){const e=this;t.$el.find(".messages-init").each(n=>{e.messages.destroy(n)})},pageInit(t){const e=this;t.$el.find(".messages-init").each(n=>{e.messages.create({el:n})})}},vnode:{"messages-init":{insert(t){const e=this,n=t.elm;e.messages.create({el:n})},destroy(t){const e=this,n=t.elm;e.messages.destroy(n)}}}};let Oo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r={top:!1,topOffset:0,bottomOffset:0,attachments:[],renderAttachments:void 0,renderAttachment:void 0,maxHeight:null,resizePage:!0};a.useModulesParams(r),a.params=W(r,n);const s=C(a.params.el);if(s.length===0)return a;if(s[0].f7Messagebar)return s[0].f7Messagebar;s[0].f7Messagebar=a;const i=s.parents(".page").eq(0),o=i.find(".page-content").eq(0),l=s.find(".messagebar-area");let c;a.params.textareaEl?c=C(a.params.textareaEl):c=s.find("textarea");const d=s.find(".messagebar-attachments"),u=s.find(".messagebar-sheet");a.params.top&&s.addClass("messagebar-top"),W(a,{$el:s,el:s[0],$areaEl:l,areaEl:l[0],$textareaEl:c,textareaEl:c[0],$attachmentsEl:d,attachmentsEl:d[0],attachmentsVisible:d.hasClass("messagebar-attachments-visible"),$sheetEl:u,sheetEl:u[0],sheetVisible:u.hasClass("messagebar-sheet-visible"),$pageEl:i,pageEl:i[0],$pageContentEl:o,pageContentEl:o,top:s.hasClass("messagebar-top")||a.params.top,attachments:[]});function p(){a.params.resizePage&&a.resizePage()}function f(g){g.preventDefault()}function h(g){const v=C(this).index();C(g.target).closest(".messagebar-attachment-delete").length?(C(this).trigger("messagebar:attachmentdelete",v),a.emit("local::attachmentDelete messagebarAttachmentDelete",a,this,v)):(C(this).trigger("messagebar:attachmentclick",v),a.emit("local::attachmentClick messagebarAttachmentClick",a,this,v))}function m(){a.checkEmptyState(),a.$el.trigger("messagebar:change"),a.emit("local::change messagebarChange",a)}function b(){a.sheetHide(),a.$el.addClass("messagebar-focused"),a.$el.trigger("messagebar:focus"),a.emit("local::focus messagebarFocus",a)}function w(){a.$el.removeClass("messagebar-focused"),a.$el.trigger("messagebar:blur"),a.emit("local::blur messagebarBlur",a)}return a.attachEvents=function(){s.on("textarea:resize",p),s.on("submit",f),s.on("click",".messagebar-attachment",h),c.on("change input",m),c.on("focus",b),c.on("blur",w),e.on("resize",p)},a.detachEvents=function(){s.off("textarea:resize",p),s.off("submit",f),s.off("click",".messagebar-attachment",h),c.off("change input",m),c.off("focus",b),c.off("blur",w),e.off("resize",p)},a.useModules(),a.init(),a}focus(){const e=this;return e.$textareaEl.focus(),e}blur(){const e=this;return e.$textareaEl.blur(),e}clear(){const e=this;return e.$textareaEl.val("").trigger("change"),e}getValue(){return this.$textareaEl.val().trim()}setValue(e){const n=this;return n.$textareaEl.val(e).trigger("change"),n}setPlaceholder(e){const n=this;return n.$textareaEl.attr("placeholder",e),n}resizePage(){const e=this,{params:n,$el:a,top:r,$pageEl:s,$pageContentEl:i,$areaEl:o,$textareaEl:l,$sheetEl:c,$attachmentsEl:d}=e,u=a[0].offsetHeight;let p=n.maxHeight;if(!r){const f=parseInt(i.css("padding-bottom"),10),h=u+n.bottomOffset;if(h!==f&&i.length){const m=parseInt(i.css("padding-top"),10),b=i[0].scrollHeight,w=i[0].offsetHeight,v=i[0].scrollTop===b-w;p||(p=s[0].offsetHeight-m-c.outerHeight()-d.outerHeight()-parseInt(o.css("margin-top"),10)-parseInt(o.css("margin-bottom"),10)),l.css("max-height",`${p}px`),i.css("padding-bottom",`${h}px`),v&&i.scrollTop(i[0].scrollHeight-w),a.trigger("messagebar:resizepage"),e.emit("local::resizePage messagebarResizePage",e)}}}checkEmptyState(){const e=this,{$el:n,$textareaEl:a}=e,r=a.val().trim();r&&r.length?n.addClass("messagebar-with-value"):n.removeClass("messagebar-with-value")}attachmentsCreate(e){e===void 0&&(e="");const n=this,a=C(`
            ${e}
            `);return a.insertBefore(n.$textareaEl),W(n,{$attachmentsEl:a,attachmentsEl:a[0]}),n}attachmentsShow(e){e===void 0&&(e="");const n=this;return n.$attachmentsEl=n.$el.find(".messagebar-attachments"),n.$attachmentsEl.length===0&&n.attachmentsCreate(e),n.$el.addClass("messagebar-attachments-visible"),n.attachmentsVisible=!0,n.params.resizePage&&n.resizePage(),n}attachmentsHide(){const e=this;return e.$el.removeClass("messagebar-attachments-visible"),e.attachmentsVisible=!1,e.params.resizePage&&e.resizePage(),e}attachmentsToggle(){const e=this;return e.attachmentsVisible?e.attachmentsHide():e.attachmentsShow(),e}renderAttachment(e){const n=this;return n.params.renderAttachment?n.params.renderAttachment.call(n,e):`
            - `}renderAttachments(){const e=this;let n;e.params.renderAttachments?n=e.params.renderAttachments.call(e,e.attachments):n=`${e.attachments.map(a=>e.renderAttachment(a)).join("")}`,e.$attachmentsEl.length===0?e.attachmentsCreate(n):e.$attachmentsEl.html(n)}sheetCreate(e){e===void 0&&(e="");const n=this,a=C(`
            ${e}
            `);return n.$el.append(a),W(n,{$sheetEl:a,sheetEl:a[0]}),n}sheetShow(e){e===void 0&&(e="");const n=this;return n.$sheetEl=n.$el.find(".messagebar-sheet"),n.$sheetEl.length===0&&n.sheetCreate(e),n.$el.addClass("messagebar-sheet-visible"),n.sheetVisible=!0,n.params.resizePage&&n.resizePage(),n}sheetHide(){const e=this;return e.$el.removeClass("messagebar-sheet-visible"),e.sheetVisible=!1,e.params.resizePage&&e.resizePage(),e}sheetToggle(){const e=this;return e.sheetVisible?e.sheetHide():e.sheetShow(),e}init(){const e=this;return e.attachEvents(),e.checkEmptyState(),e}destroy(){const e=this;e.emit("local::beforeDestroy messagebarBeforeDestroy",e),e.$el.trigger("messagebar:beforedestroy"),e.detachEvents(),e.$el[0]&&(e.$el[0].f7Messagebar=null,delete e.$el[0].f7Messagebar),Ze(e)}};const qC={name:"messagebar",static:{Messagebar:Oo},create(){const t=this;t.messagebar=et({defaultSelector:".messagebar",constructor:Oo,app:t,domProp:"f7Messagebar",addMethods:"clear getValue setValue setPlaceholder resizePage focus blur attachmentsCreate attachmentsShow attachmentsHide attachmentsToggle renderAttachments sheetCreate sheetShow sheetHide sheetToggle".split(" ")})},on:{tabBeforeRemove(t){const e=this;C(t).find(".messagebar-init").each(n=>{e.messagebar.destroy(n)})},tabMounted(t){const e=this;C(t).find(".messagebar-init").each(n=>{e.messagebar.create(W({el:n},C(n).dataset()))})},pageBeforeRemove(t){const e=this;t.$el.find(".messagebar-init").each(n=>{e.messagebar.destroy(n)})},pageInit(t){const e=this;t.$el.find(".messagebar-init").each(n=>{e.messagebar.create(W({el:n},C(n).dataset()))})}},vnode:{"messagebar-init":{insert(t){const e=this,n=t.elm;e.messagebar.create(W({el:n},C(n).dataset()))},destroy(t){const e=this,n=t.elm;e.messagebar.destroy(n)}}}};function Ao(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function mi(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:Ao(e[n])&&Ao(t[n])&&Object.keys(e[n]).length>0&&mi(t[n],e[n])})}const Hc={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function vt(){const t=typeof document<"u"?document:{};return mi(t,Hc),t}const WC={document:Hc,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Ge(){const t=typeof window<"u"?window:{};return mi(t,WC),t}function YC(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function Nn(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Nt(){return Date.now()}function XC(t){const e=Ge();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function Bs(t,e){e===void 0&&(e="x");const n=Ge();let a,r,s;const i=XC(t);return n.WebKitCSSMatrix?(r=i.transform||i.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(r==="none"?"":r)):(s=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=s.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?r=s.m41:a.length===16?r=parseFloat(a[12]):r=parseFloat(a[4])),e==="y"&&(n.WebKitCSSMatrix?r=s.m42:a.length===16?r=parseFloat(a[13]):r=parseFloat(a[5])),r||0}function wa(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function UC(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Rt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let n=1;ne.indexOf(s)<0);for(let s=0,i=r.length;ss?"next":"prev",d=(p,f)=>c==="next"&&p>=f||c==="prev"&&p<=f,u=()=>{o=new Date().getTime(),i===null&&(i=o);const p=Math.max(Math.min((o-i)/l,1),0),f=.5-Math.cos(p*Math.PI)/2;let h=s+f*(n-s);if(d(h,n)&&(h=n),e.wrapperEl.scrollTo({[a]:h}),d(h,n)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[a]:h})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function _n(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function pt(t,e){return e===void 0&&(e=""),[...t.children].filter(n=>n.matches(e))}function Yt(t,e){e===void 0&&(e=[]);const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:[e]),n}function vr(t){const e=Ge(),n=vt(),a=t.getBoundingClientRect(),r=n.body,s=t.clientTop||r.clientTop||0,i=t.clientLeft||r.clientLeft||0,o=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:a.top+o-s,left:a.left+l-i}}function GC(t,e){const n=[];for(;t.previousElementSibling;){const a=t.previousElementSibling;e?a.matches(e)&&n.push(a):n.push(a),t=a}return n}function KC(t,e){const n=[];for(;t.nextElementSibling;){const a=t.nextElementSibling;e?a.matches(e)&&n.push(a):n.push(a),t=a}return n}function En(t,e){return Ge().getComputedStyle(t,null).getPropertyValue(e)}function Ha(t){let e=t,n;if(e){for(n=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(n+=1);return n}}function zn(t,e){const n=[];let a=t.parentElement;for(;a;)e?a.matches(e)&&n.push(a):n.push(a),a=a.parentElement;return n}function Pa(t,e){function n(a){a.target===t&&(e.call(t,a),t.removeEventListener("transitionend",n))}e&&t.addEventListener("transitionend",n)}function Is(t,e,n){const a=Ge();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(a.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(a.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}let ns;function QC(){const t=Ge(),e=vt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function zc(){return ns||(ns=QC()),ns}let as;function JC(t){let{userAgent:e}=t===void 0?{}:t;const n=zc(),a=Ge(),r=a.navigator.platform,s=e||a.navigator.userAgent,i={ios:!1,android:!1},o=a.screen.width,l=a.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const u=s.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r==="Win32";let h=r==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&h&&n.touch&&m.indexOf(`${o}x${l}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),h=!1),c&&!f&&(i.os="android",i.android=!0),(d||p||u)&&(i.os="ios",i.ios=!0),i}function ZC(t){return t===void 0&&(t={}),as||(as=JC(t)),as}let rs;function ek(){const t=Ge();let e=!1;function n(){const a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(n()){const a=String(t.navigator.userAgent);if(a.includes("Version/")){const[r,s]=a.split("Version/")[1].split(" ")[0].split(".").map(i=>Number(i));e=r<16||r===16&&s<2}}return{isSafari:e||n(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function tk(){return rs||(rs=ek()),rs}function nk(t){let{swiper:e,on:n,emit:a}=t;const r=Ge();let s=null,i=null;const o=()=>{!e||e.destroyed||!e.initialized||(a("beforeResize"),a("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(u=>{i=r.requestAnimationFrame(()=>{const{width:p,height:f}=e;let h=p,m=f;u.forEach(b=>{let{contentBoxSize:w,contentRect:g,target:v}=b;v&&v!==e.el||(h=g?g.width:(w[0]||w).inlineSize,m=g?g.height:(w[0]||w).blockSize)}),(h!==p||m!==f)&&o()})}),s.observe(e.el))},c=()=>{i&&r.cancelAnimationFrame(i),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},d=()=>{!e||e.destroyed||!e.initialized||a("orientationchange")};n("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){l();return}r.addEventListener("resize",o),r.addEventListener("orientationchange",d)}),n("destroy",()=>{c(),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",d)})}function ak(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;const s=[],i=Ge(),o=function(d,u){u===void 0&&(u={});const p=i.MutationObserver||i.WebkitMutationObserver,f=new p(h=>{if(e.__preventObserver__)return;if(h.length===1){r("observerUpdate",h[0]);return}const m=function(){r("observerUpdate",h[0])};i.requestAnimationFrame?i.requestAnimationFrame(m):i.setTimeout(m,0)});f.observe(d,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:typeof u.childList>"u"?!0:u.childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),s.push(f)},l=()=>{if(e.params.observer){if(e.params.observeParents){const d=zn(e.hostEl);for(let u=0;u{s.forEach(d=>{d.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",l),a("destroy",c)}var rk={on(t,e,n){const a=this;if(!a.eventsListeners||a.destroyed||typeof e!="function")return a;const r=n?"unshift":"push";return t.split(" ").forEach(s=>{a.eventsListeners[s]||(a.eventsListeners[s]=[]),a.eventsListeners[s][r](e)}),a},once(t,e,n){const a=this;if(!a.eventsListeners||a.destroyed||typeof e!="function")return a;function r(){a.off(t,r),r.__emitterProxy&&delete r.__emitterProxy;for(var s=arguments.length,i=new Array(s),o=0;o=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(a=>{typeof e>"u"?n.eventsListeners[a]=[]:n.eventsListeners[a]&&n.eventsListeners[a].forEach((r,s)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&n.eventsListeners[a].splice(s,1)})}),n},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,n,a;for(var r=arguments.length,s=new Array(r),i=0;i{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(a,[l,...n])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(a,n)})}),t}};function sk(){const t=this;let e,n;const a=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=a.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=a.clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(En(a,"padding-left")||0,10)-parseInt(En(a,"padding-right")||0,10),n=n-parseInt(En(a,"padding-top")||0,10)-parseInt(En(a,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function ik(){const t=this;function e(S){return t.isHorizontal()?S:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[S]}function n(S,I){return parseFloat(S.getPropertyValue(e(I))||0)}const a=t.params,{wrapperEl:r,slidesEl:s,size:i,rtlTranslate:o,wrongRTL:l}=t,c=t.virtual&&a.virtual.enabled,d=c?t.virtual.slides.length:t.slides.length,u=pt(s,`.${t.params.slideClass}, swiper-slide`),p=c?t.virtual.slides.length:u.length;let f=[];const h=[],m=[];let b=a.slidesOffsetBefore;typeof b=="function"&&(b=a.slidesOffsetBefore.call(t));let w=a.slidesOffsetAfter;typeof w=="function"&&(w=a.slidesOffsetAfter.call(t));const g=t.snapGrid.length,v=t.slidesGrid.length;let y=a.spaceBetween,E=-b,k=0,$=0;if(typeof i>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*i:typeof y=="string"&&(y=parseFloat(y)),t.virtualSize=-y,u.forEach(S=>{o?S.style.marginLeft="":S.style.marginRight="",S.style.marginBottom="",S.style.marginTop=""}),a.centeredSlides&&a.cssMode&&(ya(r,"--swiper-centered-offset-before",""),ya(r,"--swiper-centered-offset-after",""));const M=a.grid&&a.grid.rows>1&&t.grid;M&&t.grid.initSlides(p);let x;const F=a.slidesPerView==="auto"&&a.breakpoints&&Object.keys(a.breakpoints).filter(S=>typeof a.breakpoints[S].slidesPerView<"u").length>0;for(let S=0;S1&&f.push(t.virtualSize-i)}if(c&&a.loop){const S=m[0]+y;if(a.slidesPerGroup>1){const I=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/a.slidesPerGroup),B=S*a.slidesPerGroup;for(let P=0;P!a.cssMode||a.loop?!0:B!==u.length-1).forEach(I=>{I.style[S]=`${y}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let S=0;m.forEach(B=>{S+=B+(y||0)}),S-=y;const I=S-i;f=f.map(B=>B<=0?-b:B>I?I+w:B)}if(a.centerInsufficientSlides){let S=0;if(m.forEach(I=>{S+=I+(y||0)}),S-=y,S{f[P]=B-I}),h.forEach((B,P)=>{h[P]=B+I})}}if(Object.assign(t,{slides:u,snapGrid:f,slidesGrid:h,slidesSizesGrid:m}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){ya(r,"--swiper-centered-offset-before",`${-f[0]}px`),ya(r,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const S=-t.snapGrid[0],I=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(B=>B+S),t.slidesGrid=t.slidesGrid.map(B=>B+I)}if(p!==d&&t.emit("slidesLengthChange"),f.length!==g&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),h.length!==v&&t.emit("slidesGridLengthChange"),a.watchSlidesProgress&&t.updateSlidesOffset(),!c&&!a.cssMode&&(a.effect==="slide"||a.effect==="fade")){const S=`${a.containerModifierClass}backface-hidden`,I=t.el.classList.contains(S);p<=a.maxBackfaceHiddenSlides?I||t.el.classList.add(S):I&&t.el.classList.remove(S)}}function ok(t){const e=this,n=[],a=e.virtual&&e.params.virtual.enabled;let r=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const i=o=>a?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{n.push(o)});else for(s=0;se.slides.length&&!a)break;n.push(i(o))}else n.push(i(e.activeIndex));for(s=0;sr?o:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function lk(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let a=0;a"u"&&e.updateSlidesOffset();let i=-t;r&&(i=t),a.forEach(l=>{l.classList.remove(n.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=n.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l=0&&f1&&h<=e.size||f<=0&&h>=e.size)&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l),a[l].classList.add(n.slideVisibleClass)),c.progress=r?-u:u,c.originalProgress=r?-p:p}}function dk(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const n=e.params,a=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:s,isEnd:i,progressLoop:o}=e;const l=s,c=i;if(a===0)r=0,s=!0,i=!0;else{r=(t-e.minTranslate())/a;const d=Math.abs(t-e.minTranslate())<1,u=Math.abs(t-e.maxTranslate())<1;s=d||r<=0,i=u||r>=1,d&&(r=0),u&&(r=1)}if(n.loop){const d=e.getSlideIndexByData(0),u=e.getSlideIndexByData(e.slides.length-1),p=e.slidesGrid[d],f=e.slidesGrid[u],h=e.slidesGrid[e.slidesGrid.length-1],m=Math.abs(t);m>=p?o=(m-p)/h:o=(m+h-f)/h,o>1&&(o-=1)}Object.assign(e,{progress:r,progressLoop:o,isBeginning:s,isEnd:i}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),s&&!l&&e.emit("reachBeginning toEdge"),i&&!c&&e.emit("reachEnd toEdge"),(l&&!s||c&&!i)&&e.emit("fromEdge"),e.emit("progress",r)}function uk(){const t=this,{slides:e,params:n,slidesEl:a,activeIndex:r}=t,s=t.virtual&&n.virtual.enabled,i=l=>pt(a,`.${n.slideClass}${l}, swiper-slide${l}`)[0];e.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let o;if(s)if(n.loop){let l=r-t.virtual.slidesBefore;l<0&&(l=t.virtual.slides.length+l),l>=t.virtual.slides.length&&(l-=t.virtual.slides.length),o=i(`[data-swiper-slide-index="${l}"]`)}else o=i(`[data-swiper-slide-index="${r}"]`);else o=e[r];if(o){o.classList.add(n.slideActiveClass);let l=KC(o,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=e[0]),l&&l.classList.add(n.slideNextClass);let c=GC(o,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c===0&&(c=e[e.length-1]),c&&c.classList.add(n.slidePrevClass)}t.emitSlidesClasses()}const or=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,a=e.closest(n());if(a){let r=a.querySelector(`.${t.params.lazyPreloaderClass}`);!r&&t.isElement&&(a.shadowRoot?r=a.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{a.shadowRoot&&(r=a.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},ss=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Os=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const a=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),r=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const i=r,o=[i-e];o.push(...Array.from({length:e}).map((l,c)=>i+a+c)),t.slides.forEach((l,c)=>{o.includes(l.column)&&ss(t,c)});return}const s=r+a-1;if(t.params.rewind||t.params.loop)for(let i=r-e;i<=s+e;i+=1){const o=(i%n+n)%n;(os)&&ss(t,o)}else for(let i=Math.max(r-e,0);i<=Math.min(s+e,n-1);i+=1)i!==r&&(i>s||i=e[s]&&a=e[s]&&a=e[s]&&(r=s);return n.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function fk(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:a,params:r,activeIndex:s,realIndex:i,snapIndex:o}=e;let l=t,c;const d=p=>{let f=p-e.virtual.slidesBefore;return f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),f};if(typeof l>"u"&&(l=pk(e)),a.indexOf(n)>=0)c=a.indexOf(n);else{const p=Math.min(r.slidesPerGroupSkip,l);c=p+Math.floor((l-p)/r.slidesPerGroup)}if(c>=a.length&&(c=a.length-1),l===s){c!==o&&(e.snapIndex=c,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=d(l));return}let u;e.virtual&&r.virtual.enabled&&r.loop?u=d(l):e.slides[l]?u=parseInt(e.slides[l].getAttribute("data-swiper-slide-index")||l,10):u=l,Object.assign(e,{previousSnapIndex:o,snapIndex:c,previousRealIndex:i,realIndex:u,previousIndex:s,activeIndex:l}),e.initialized&&Os(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(i!==u&&e.emit("realIndexChange"),e.emit("slideChange"))}function hk(t,e){const n=this,a=n.params;let r=t.closest(`.${a.slideClass}, swiper-slide`);!r&&n.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!r&&o.matches&&o.matches(`.${a.slideClass}, swiper-slide`)&&(r=o)});let s=!1,i;if(r){for(let o=0;ol?d=l:a&&ti?o="next":s=l.length&&(b=l.length-1);const w=-l[b];if(o.normalizeSlideIndex)for(let v=0;v=E&&y=E&&y=E&&(i=v)}if(s.initialized&&i!==u&&(!s.allowSlideNext&&(p?w>s.translate&&w>s.minTranslate():ws.translate&&w>s.maxTranslate()&&(u||0)!==i))return!1;i!==(d||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(w);let g;if(i>u?g="next":i0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[v?"scrollLeft":"scrollTop"]=y})):f[v?"scrollLeft":"scrollTop"]=y,E&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return Fc({swiper:s,targetPosition:y,side:v?"left":"top"}),!0;f.scrollTo({[v?"left":"top"]:y,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(w),s.updateActiveIndex(i),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,a),s.transitionStart(n,g),e===0?s.transitionEnd(n,g):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(y){!s||s.destroyed||y.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,g))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function Tk(t,e,n,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const r=this;let s=t;return r.params.loop&&(r.virtual&&r.params.virtual.enabled?s=s+r.virtual.slidesBefore:s=r.getSlideIndexByData(s)),r.slideTo(s,e,n,a)}function Pk(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const a=this,{enabled:r,params:s,animating:i}=a;if(!r)return a;let o=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(o=Math.max(a.slidesPerViewDynamic("current",!0),1));const l=a.activeIndex{a.slideTo(a.activeIndex+l,t,e,n)}),!0}return s.rewind&&a.isEnd?a.slideTo(0,t,e,n):a.slideTo(a.activeIndex+l,t,e,n)}function Mk(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const a=this,{params:r,snapGrid:s,slidesGrid:i,rtlTranslate:o,enabled:l,animating:c}=a;if(!l)return a;const d=a.virtual&&r.virtual.enabled;if(r.loop){if(c&&!d&&r.loopPreventsSliding)return!1;a.loopFix({direction:"prev"}),a._clientLeft=a.wrapperEl.clientLeft}const u=o?a.translate:-a.translate;function p(w){return w<0?-Math.floor(Math.abs(w)):Math.floor(w)}const f=p(u),h=s.map(w=>p(w));let m=s[h.indexOf(f)-1];if(typeof m>"u"&&r.cssMode){let w;s.forEach((g,v)=>{f>=g&&(w=v)}),typeof w<"u"&&(m=s[w>0?w-1:w])}let b=0;if(typeof m<"u"&&(b=i.indexOf(m),b<0&&(b=a.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(b=b-a.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),r.rewind&&a.isBeginning){const w=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(w,t,e,n)}else if(r.loop&&a.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{a.slideTo(b,t,e,n)}),!0;return a.slideTo(b,t,e,n)}function Bk(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const a=this;return a.slideTo(a.activeIndex,t,e,n)}function Ik(t,e,n,a){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),a===void 0&&(a=.5);const r=this;let s=r.activeIndex;const i=Math.min(r.params.slidesPerGroupSkip,s),o=i+Math.floor((s-i)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const c=r.snapGrid[o],d=r.snapGrid[o+1];l-c>(d-c)*a&&(s+=r.params.slidesPerGroup)}else{const c=r.snapGrid[o-1],d=r.snapGrid[o];l-c<=(d-c)*a&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,t,e,n)}function Ok(){const t=this,{params:e,slidesEl:n}=t,a=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let r=t.clickedIndex,s;const i=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?rt.slides.length-t.loopedSlides+a/2?(t.loopFix(),r=t.getSlideIndex(pt(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),Nn(()=>{t.slideTo(r)})):t.slideTo(r):r>t.slides.length-a?(t.loopFix(),r=t.getSlideIndex(pt(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),Nn(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}var Ak={slideTo:Sk,slideToLoop:Tk,slideNext:Pk,slidePrev:Mk,slideReset:Bk,slideToClosest:Ik,slideToClickedSlide:Ok};function Dk(t){const e=this,{params:n,slidesEl:a}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;pt(a,`.${n.slideClass}, swiper-slide`).forEach((s,i)=>{s.setAttribute("data-swiper-slide-index",i)}),e.loopFix({slideRealIndex:t,direction:n.centeredSlides?void 0:"next"})}function Lk(t){let{slideRealIndex:e,slideTo:n=!0,direction:a,setTranslate:r,activeSlideIndex:s,byController:i,byMousewheel:o}=t===void 0?{}:t;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:u,slidesEl:p,params:f}=l;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&f.virtual.enabled){n&&(!f.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):f.centeredSlides&&l.snapIndex"u"?s=l.getSlideIndex(l.slides.filter($=>$.classList.contains(f.slideActiveClass))[0]):g=s;const v=a==="next"||!a,y=a==="prev"||!a;let E=0,k=0;if(sl.slides.length-m*2){k=Math.max(s-(l.slides.length-m*2),f.slidesPerGroup);for(let $=0;${l.slides[$].swiperLoopMoveDOM=!0,p.prepend(l.slides[$]),l.slides[$].swiperLoopMoveDOM=!1}),v&&w.forEach($=>{l.slides[$].swiperLoopMoveDOM=!0,p.append(l.slides[$]),l.slides[$].swiperLoopMoveDOM=!1}),l.recalcSlides(),f.slidesPerView==="auto"&&l.updateSlides(),f.watchSlidesProgress&&l.updateSlidesOffset(),n){if(b.length>0&&y)if(typeof e>"u"){const $=l.slidesGrid[g],x=l.slidesGrid[g+E]-$;o?l.setTranslate(l.translate-x):(l.slideTo(g+E,0,!1,!0),r&&(l.touches[l.isHorizontal()?"startX":"startY"]+=x,l.touchEventsData.currentTranslate=l.translate))}else r&&(l.slideToLoop(e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate);else if(w.length>0&&v)if(typeof e>"u"){const $=l.slidesGrid[g],x=l.slidesGrid[g-k]-$;o?l.setTranslate(l.translate-x):(l.slideTo(g-k,0,!1,!0),r&&(l.touches[l.isHorizontal()?"startX":"startY"]+=x,l.touchEventsData.currentTranslate=l.translate))}else l.slideToLoop(e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!i){const $={slideRealIndex:e,direction:a,setTranslate:r,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(M=>{!M.destroyed&&M.params.loop&&M.loopFix({...$,slideTo:M.params.slidesPerView===f.slidesPerView?n:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...$,slideTo:l.controller.control.params.slidesPerView===f.slidesPerView?n:!1})}l.emit("loopFix")}function Rk(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const a=[];t.slides.forEach(r=>{const s=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;a[s]=r}),t.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),a.forEach(r=>{n.append(r)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Hk={loopCreate:Dk,loopFix:Lk,loopDestroy:Rk};function Fk(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function zk(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Nk={setGrabCursor:Fk,unsetGrabCursor:zk};function Vk(t,e){e===void 0&&(e=this);function n(a){if(!a||a===vt()||a===Ge())return null;a.assignedSlot&&(a=a.assignedSlot);const r=a.closest(t);return!r&&!a.getRootNode?null:r||n(a.getRootNode().host)}return n(e)}function _k(t){const e=this,n=vt(),a=Ge(),r=e.touchEventsData;r.evCache.push(t);const{params:s,touches:i,enabled:o}=e;if(!o||!s.simulateTouch&&t.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=t;l.originalEvent&&(l=l.originalEvent);let c=l.target;if(s.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(c)||"which"in l&&l.which===3||"button"in l&&l.button>0||r.isTouched&&r.isMoved)return;const d=!!s.noSwipingClass&&s.noSwipingClass!=="",u=t.composedPath?t.composedPath():t.path;d&&l.target&&l.target.shadowRoot&&u&&(c=u[0]);const p=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,f=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(f?Vk(p,c):c.closest(p))){e.allowClick=!0;return}if(s.swipeHandler&&!c.closest(s.swipeHandler))return;i.currentX=l.pageX,i.currentY=l.pageY;const h=i.currentX,m=i.currentY,b=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,w=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(b&&(h<=w||h>=a.innerWidth-w))if(b==="prevent")t.preventDefault();else return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=h,i.startY=m,r.touchStartTime=Nt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1);let g=!0;c.matches(r.focusableElements)&&(g=!1,c.nodeName==="SELECT"&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const v=g&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||v)&&!c.isContentEditable&&l.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function jk(t){const e=vt(),n=this,a=n.touchEventsData,{params:r,touches:s,rtlTranslate:i,enabled:o}=n;if(!o||!r.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),!a.isTouched){a.startMoving&&a.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=a.evCache.findIndex($=>$.pointerId===l.pointerId);c>=0&&(a.evCache[c]=l);const d=a.evCache.length>1?a.evCache[0]:l,u=d.pageX,p=d.pageY;if(l.preventedByNestedSwiper){s.startX=u,s.startY=p;return}if(!n.allowTouchMove){l.target.matches(a.focusableElements)||(n.allowClick=!1),a.isTouched&&(Object.assign(s,{startX:u,startY:p,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:u,currentY:p}),a.touchStartTime=Nt());return}if(r.touchReleaseOnEdges&&!r.loop){if(n.isVertical()){if(ps.startY&&n.translate>=n.minTranslate()){a.isTouched=!1,a.isMoved=!1;return}}else if(us.startX&&n.translate>=n.minTranslate())return}if(e.activeElement&&l.target===e.activeElement&&l.target.matches(a.focusableElements)){a.isMoved=!0,n.allowClick=!1;return}if(a.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;s.currentX=u,s.currentY=p;const f=s.currentX-s.startX,h=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(f**2+h**2)"u"){let $;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?a.isScrolling=!1:f*f+h*h>=25&&($=Math.atan2(Math.abs(h),Math.abs(f))*180/Math.PI,a.isScrolling=n.isHorizontal()?$>r.touchAngle:90-$>r.touchAngle)}if(a.isScrolling&&n.emit("touchMoveOpposite",l),typeof a.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(a.startMoving=!0),a.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&a.evCache.length>1){a.isTouched=!1;return}if(!a.startMoving)return;n.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let m=n.isHorizontal()?f:h,b=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;r.oneWayMovement&&(m=Math.abs(m)*(i?1:-1),b=Math.abs(b)*(i?1:-1)),s.diff=m,m*=r.touchRatio,i&&(m=-m,b=-b);const w=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=b>0?"prev":"next";const g=n.params.loop&&!r.cssMode,v=n.swipeDirection==="next"&&n.allowSlideNext||n.swipeDirection==="prev"&&n.allowSlidePrev;if(!a.isMoved){if(g&&v&&n.loopFix({direction:n.swipeDirection}),a.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const $=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent($)}a.allowMomentumBounce=!1,r.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let y;a.isMoved&&w!==n.touchesDirection&&g&&v&&Math.abs(m)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),y=!0),n.emit("sliderMove",l),a.isMoved=!0,a.currentTranslate=m+a.startTranslate;let E=!0,k=r.resistanceRatio;if(r.touchReleaseOnEdges&&(k=0),m>0?(g&&v&&!y&&a.currentTranslate>(r.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),a.currentTranslate>n.minTranslate()&&(E=!1,r.resistance&&(a.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+a.startTranslate+m)**k))):m<0&&(g&&v&&!y&&a.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(r.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),a.currentTranslatea.startTranslate&&(a.currentTranslate=a.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(a.currentTranslate=a.startTranslate),r.threshold>0)if(Math.abs(m)>r.threshold||a.allowThresholdMove){if(!a.allowThresholdMove){a.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,a.currentTranslate=a.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{a.currentTranslate=a.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(a.currentTranslate),n.setTranslate(a.currentTranslate))}function qk(t){const e=this,n=e.touchEventsData,a=n.evCache.findIndex(v=>v.pointerId===t.pointerId);if(a>=0&&n.evCache.splice(a,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(t.type)&&!(["pointercancel","contextmenu"].includes(t.type)&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:r,touches:s,rtlTranslate:i,slidesGrid:o,enabled:l}=e;if(!l||!r.simulateTouch&&t.pointerType==="mouse")return;let c=t;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&r.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}r.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const d=Nt(),u=d-n.touchStartTime;if(e.allowClick){const v=c.path||c.composedPath&&c.composedPath();e.updateClickedSlide(v&&v[0]||c.target,v),e.emit("tap click",c),u<300&&d-n.lastClickTime<300&&e.emit("doubleTap doubleClick",c)}if(n.lastClickTime=Nt(),Nn(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||s.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(r.followFinger?p=i?e.translate:-e.translate:p=-n.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}let f=0,h=e.slidesSizesGrid[0];for(let v=0;v=o[v]&&p=o[v]&&(f=v,h=o[o.length-1]-o[o.length-2])}let m=null,b=null;r.rewind&&(e.isBeginning?b=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(m=0));const w=(p-o[f])/h,g=fr.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(w>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?m:f+g):e.slideTo(f)),e.swipeDirection==="prev"&&(w>1-r.longSwipesRatio?e.slideTo(f+g):b!==null&&w<0&&Math.abs(w)>r.longSwipesRatio?e.slideTo(b):e.slideTo(f))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(c.target===e.navigation.nextEl||c.target===e.navigation.prevEl)?c.target===e.navigation.nextEl?e.slideTo(f+g):e.slideTo(f):(e.swipeDirection==="next"&&e.slideTo(m!==null?m:f+g),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:f))}}function Do(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:r,snapGrid:s}=t,i=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=i&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!i?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=r,t.allowSlideNext=a,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function Wk(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Yk(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:a}=t;if(!a)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let r;const s=t.maxTranslate()-t.minTranslate();s===0?r=0:r=(t.translate-t.minTranslate())/s,r!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Xk(t){const e=this;or(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let Lo=!1;function Uk(){}const Vc=(t,e)=>{const n=vt(),{params:a,el:r,wrapperEl:s,device:i}=t,o=!!a.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;r[l]("pointerdown",t.onTouchStart,{passive:!1}),n[l]("pointermove",t.onTouchMove,{passive:!1,capture:o}),n[l]("pointerup",t.onTouchEnd,{passive:!0}),n[l]("pointercancel",t.onTouchEnd,{passive:!0}),n[l]("pointerout",t.onTouchEnd,{passive:!0}),n[l]("pointerleave",t.onTouchEnd,{passive:!0}),n[l]("contextmenu",t.onTouchEnd,{passive:!0}),(a.preventClicks||a.preventClicksPropagation)&&r[l]("click",t.onClick,!0),a.cssMode&&s[l]("scroll",t.onScroll),a.updateOnWindowResize?t[c](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",Do,!0):t[c]("observerUpdate",Do,!0),r[l]("load",t.onLoad,{capture:!0})};function Gk(){const t=this,e=vt(),{params:n}=t;t.onTouchStart=_k.bind(t),t.onTouchMove=jk.bind(t),t.onTouchEnd=qk.bind(t),n.cssMode&&(t.onScroll=Yk.bind(t)),t.onClick=Wk.bind(t),t.onLoad=Xk.bind(t),Lo||(e.addEventListener("touchstart",Uk),Lo=!0),Vc(t,"on")}function Kk(){Vc(this,"off")}var Qk={attachEvents:Gk,detachEvents:Kk};const Ro=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Jk(){const t=this,{realIndex:e,initialized:n,params:a,el:r}=t,s=a.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const i=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!i||t.currentBreakpoint===i)return;const l=(i in s?s[i]:void 0)||t.originalParams,c=Ro(t,a),d=Ro(t,l),u=a.enabled;c&&!d?(r.classList.remove(`${a.containerModifierClass}grid`,`${a.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(r.classList.add(`${a.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&a.grid.fill==="column")&&r.classList.add(`${a.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(w=>{if(typeof l[w]>"u")return;const g=a[w]&&a[w].enabled,v=l[w]&&l[w].enabled;g&&!v&&t[w].disable(),!g&&v&&t[w].enable()});const p=l.direction&&l.direction!==a.direction,f=a.loop&&(l.slidesPerView!==a.slidesPerView||p),h=a.loop;p&&n&&t.changeDirection(),Rt(t.params,l);const m=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),u&&!m?t.disable():!u&&m&&t.enable(),t.currentBreakpoint=i,t.emit("_beforeBreakpoint",l),n&&(f?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!h&&b?(t.loopCreate(e),t.updateSlides()):h&&!b&&t.loopDestroy()),t.emit("breakpoint",l)}function Zk(t,e,n){if(e===void 0&&(e="window"),!t||e==="container"&&!n)return;let a=!1;const r=Ge(),s=e==="window"?r.innerHeight:n.clientHeight,i=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:s*l,point:o}}return{value:o,point:o}});i.sort((o,l)=>parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o{typeof a=="object"?Object.keys(a).forEach(r=>{a[r]&&n.push(e+r)}):typeof a=="string"&&n.push(e+a)}),n}function n$(){const t=this,{classNames:e,params:n,rtl:a,el:r,device:s}=t,i=t$(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:a},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...i),r.classList.add(...e),t.emitContainerClasses()}function a$(){const t=this,{el:e,classNames:n}=t;e.classList.remove(...n),t.emitContainerClasses()}var r$={addClasses:n$,removeClasses:a$};function s$(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:a}=n;if(a){const r=t.slides.length-1,s=t.slidesGrid[r]+t.slidesSizesGrid[r]+a*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;n.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),n.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var i$={checkOverflow:s$},As={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function o$(t,e){return function(a){a===void 0&&(a={});const r=Object.keys(a)[0],s=a[r];if(typeof s!="object"||s===null){Rt(e,a);return}if(t[r]===!0&&(t[r]={enabled:!0}),r==="navigation"&&t[r]&&t[r].enabled&&!t[r].prevEl&&!t[r].nextEl&&(t[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&t[r]&&t[r].enabled&&!t[r].el&&(t[r].auto=!0),!(r in t&&"enabled"in s)){Rt(e,a);return}typeof t[r]=="object"&&!("enabled"in t[r])&&(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),Rt(e,a)}}const is={eventsEmitter:rk,update:mk,translate:Ek,transition:xk,slide:Ak,loop:Hk,grabCursor:Nk,events:Qk,breakpoints:e$,checkOverflow:i$,classes:r$},os={};let ra=class an{constructor(){let e,n;for(var a=arguments.length,r=new Array(a),s=0;s1){const d=[];return i.querySelectorAll(n.el).forEach(u=>{const p=Rt({},n,{el:u});d.push(new an(p))}),d}const o=this;o.__swiper__=!0,o.support=zc(),o.device=ZC({userAgent:n.userAgent}),o.browser=tk(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],n.modules&&Array.isArray(n.modules)&&o.modules.push(...n.modules);const l={};o.modules.forEach(d=>{d({params:n,swiper:o,extendParams:o$(n,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const c=Rt({},As,l);return o.params=Rt({},c,os,n),o.originalParams=Rt({},o.params),o.passedParams=Rt({},n),o.params&&o.params.on&&Object.keys(o.params.on).forEach(d=>{o.on(d,o.params.on[d])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getSlideIndex(e){const{slidesEl:n,params:a}=this,r=pt(n,`.${a.slideClass}, swiper-slide`),s=Ha(r[0]);return Ha(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:n,params:a}=e;e.slides=pt(n,`.${a.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,n){const a=this;e=Math.min(Math.max(e,0),1);const r=a.minTranslate(),i=(a.maxTranslate()-r)*e+r;a.translateTo(i,typeof n>"u"?0:n),a.updateActiveIndex(),a.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(a=>a.indexOf("swiper")===0||a.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return n.destroyed?"":e.className.split(" ").filter(a=>a.indexOf("swiper-slide")===0||a.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.forEach(a=>{const r=e.getSlideClasses(a);n.push({slideEl:a,classNames:r}),e.emit("_slideClass",a,r)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e,n){e===void 0&&(e="current"),n===void 0&&(n=!1);const a=this,{params:r,slides:s,slidesGrid:i,slidesSizesGrid:o,size:l,activeIndex:c}=a;let d=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let u=s[c]?s[c].swiperSlideSize:0,p;for(let f=c+1;fl&&(p=!0));for(let f=c-1;f>=0;f-=1)s[f]&&!p&&(u+=s[f].swiperSlideSize,d+=1,u>l&&(p=!0))}else if(e==="current")for(let u=c+1;u=0;u-=1)i[c]-i[u]{i.complete&&or(e,i)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const i=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(i,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(a.freeMode&&a.freeMode.enabled&&!a.cssMode)r(),a.autoHeight&&e.updateAutoHeight();else{if((a.slidesPerView==="auto"||a.slidesPerView>1)&&e.isEnd&&!a.centeredSlides){const i=e.virtual&&a.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(i.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||r()}a.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n){n===void 0&&(n=!0);const a=this,r=a.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(a.el.classList.remove(`${a.params.containerModifierClass}${r}`),a.el.classList.add(`${a.params.containerModifierClass}${e}`),a.emitContainerClasses(),a.params.direction=e,a.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),a.emit("changeDirection"),n&&a.update()),a}changeLanguageDirection(e){const n=this;n.rtl&&e==="rtl"||!n.rtl&&e==="ltr"||(n.rtl=e==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(e){const n=this;if(n.mounted)return!0;let a=e||n.params.el;if(typeof a=="string"&&(a=document.querySelector(a)),!a)return!1;a.swiper=n,a.parentNode&&a.parentNode.host&&a.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(n.isElement=!0);const r=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=a&&a.shadowRoot&&a.shadowRoot.querySelector?a.shadowRoot.querySelector(r()):pt(a,r())[0];return!i&&n.params.createElements&&(i=Yt("div",n.params.wrapperClass),a.append(i),pt(a,`.${n.params.slideClass}`).forEach(o=>{i.append(o)})),Object.assign(n,{el:a,wrapperEl:i,slidesEl:n.isElement&&!a.parentNode.host.slideSlots?a.parentNode.host:i,hostEl:n.isElement?a.parentNode.host:a,mounted:!0,rtl:a.dir.toLowerCase()==="rtl"||En(a,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(a.dir.toLowerCase()==="rtl"||En(a,"direction")==="rtl"),wrongRTL:En(i,"display")==="-webkit-box"}),!0}init(e){const n=this;if(n.initialized||n.mount(e)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const r=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&r.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(s=>{s.complete?or(n,s):s.addEventListener("load",i=>{or(n,i.target)})}),Os(n),n.initialized=!0,Os(n),n.emit("init"),n.emit("afterInit"),n}destroy(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0);const a=this,{params:r,el:s,wrapperEl:i,slides:o}=a;return typeof a.params>"u"||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),r.loop&&a.loopDestroy(),n&&(a.removeClasses(),s.removeAttribute("style"),i.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(l=>{a.off(l)}),e!==!1&&(a.el.swiper=null,YC(a)),a.destroyed=!0),null}static extendDefaults(e){Rt(os,e)}static get extendedDefaults(){return os}static get defaults(){return As}static installModule(e){an.prototype.__modules__||(an.prototype.__modules__=[]);const n=an.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>an.installModule(n)),an):(an.installModule(e),an)}};Object.keys(is).forEach(t=>{Object.keys(is[t]).forEach(e=>{ra.prototype[e]=is[t][e]})});ra.use([nk,ak]);function l$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;n({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let s;const i=vt();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=i.createElement("div");function l(h,m){const b=e.params.virtual;if(b.cache&&e.virtual.cache[m])return e.virtual.cache[m];let w;return b.renderSlide?(w=b.renderSlide.call(e,h,m),typeof w=="string"&&(o.innerHTML=w,w=o.children[0])):e.isElement?w=Yt("swiper-slide"):w=Yt("div",e.params.slideClass),w.setAttribute("data-swiper-slide-index",m),b.renderSlide||(w.innerHTML=h),b.cache&&(e.virtual.cache[m]=w),w}function c(h){const{slidesPerView:m,slidesPerGroup:b,centeredSlides:w,loop:g}=e.params,{addSlidesBefore:v,addSlidesAfter:y}=e.params.virtual,{from:E,to:k,slides:$,slidesGrid:M,offset:x}=e.virtual;e.params.cssMode||e.updateActiveIndex();const F=e.activeIndex||0;let S;e.rtlTranslate?S="right":S=e.isHorizontal()?"left":"top";let I,B;w?(I=Math.floor(m/2)+b+y,B=Math.floor(m/2)+b+v):(I=m+(b-1)+y,B=(g?m:b)+v);let P=F-B,L=F+I;g||(P=Math.max(P,0),L=Math.min(L,$.length-1));let V=(e.slidesGrid[P]||0)-(e.slidesGrid[0]||0);g&&F>=B?(P-=B,w||(V+=e.slidesGrid[0])):g&&F{ee.style[S]=`${V-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),r("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:V,from:P,to:L,slides:function(){const X=[];for(let se=P;se<=L;se+=1)X.push($[se]);return X}()}),e.params.virtual.renderExternalUpdate?H():r("virtualUpdate");return}const D=[],O=[],_=ee=>{let X=ee;return ee<0?X=$.length+ee:X>=$.length&&(X=X-$.length),X};if(h)e.slides.filter(ee=>ee.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(ee=>{ee.remove()});else for(let ee=E;ee<=k;ee+=1)if(eeL){const X=_(ee);e.slides.filter(se=>se.matches(`.${e.params.slideClass}[data-swiper-slide-index="${X}"], swiper-slide[data-swiper-slide-index="${X}"]`)).forEach(se=>{se.remove()})}const N=g?-$.length:0,G=g?$.length*2:$.length;for(let ee=N;ee=P&&ee<=L){const X=_(ee);typeof k>"u"||h?O.push(X):(ee>k&&O.push(X),ee{e.slidesEl.append(l($[ee],ee))}),g)for(let ee=D.length-1;ee>=0;ee-=1){const X=D[ee];e.slidesEl.prepend(l($[X],X))}else D.sort((ee,X)=>X-ee),D.forEach(ee=>{e.slidesEl.prepend(l($[ee],ee))});pt(e.slidesEl,".swiper-slide, swiper-slide").forEach(ee=>{ee.style[S]=`${V-Math.abs(e.cssOverflowAdjustment())}px`}),H()}function d(h){if(typeof h=="object"&&"length"in h)for(let m=0;m{const E=g[y],k=E.getAttribute("data-swiper-slide-index");k&&E.setAttribute("data-swiper-slide-index",parseInt(k,10)+w),v[parseInt(y,10)+w]=E}),e.virtual.cache=v}c(!0),e.slideTo(b,0)}function p(h){if(typeof h>"u"||h===null)return;let m=e.activeIndex;if(Array.isArray(h))for(let b=h.length-1;b>=0;b-=1)e.params.virtual.cache&&(delete e.virtual.cache[h[b]],Object.keys(e.virtual.cache).forEach(w=>{w>h&&(e.virtual.cache[w-1]=e.virtual.cache[w],e.virtual.cache[w-1].setAttribute("data-swiper-slide-index",w-1),delete e.virtual.cache[w])})),e.virtual.slides.splice(h[b],1),h[b]{b>h&&(e.virtual.cache[b-1]=e.virtual.cache[b],e.virtual.cache[b-1].setAttribute("data-swiper-slide-index",b-1),delete e.virtual.cache[b])})),e.virtual.slides.splice(h,1),h{if(!e.params.virtual.enabled)return;let h;if(typeof e.passedParams.virtual.slides>"u"){const m=[...e.slidesEl.children].filter(b=>b.matches(`.${e.params.slideClass}, swiper-slide`));m&&m.length&&(e.virtual.slides=[...m],h=!0,m.forEach((b,w)=>{b.setAttribute("data-swiper-slide-index",w),e.virtual.cache[w]=b,b.remove()}))}h||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,c()}),a("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(s),s=setTimeout(()=>{c()},100)):c())}),a("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&ya(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:d,prependSlide:u,removeSlide:p,removeAllSlides:f,update:c})}function c$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;const s=vt(),i=Ge();e.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function o(d){if(!e.enabled)return;const{rtlTranslate:u}=e;let p=d;p.originalEvent&&(p=p.originalEvent);const f=p.keyCode||p.charCode,h=e.params.keyboard.pageUpDown,m=h&&f===33,b=h&&f===34,w=f===37,g=f===39,v=f===38,y=f===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&y||b)||!e.allowSlidePrev&&(e.isHorizontal()&&w||e.isVertical()&&v||m))return!1;if(!(p.shiftKey||p.altKey||p.ctrlKey||p.metaKey)&&!(s.activeElement&&s.activeElement.nodeName&&(s.activeElement.nodeName.toLowerCase()==="input"||s.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(m||b||w||g||v||y)){let E=!1;if(zn(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&zn(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,$=k.clientWidth,M=k.clientHeight,x=i.innerWidth,F=i.innerHeight,S=vr(k);u&&(S.left-=k.scrollLeft);const I=[[S.left,S.top],[S.left+$,S.top],[S.left,S.top+M],[S.left+$,S.top+M]];for(let B=0;B=0&&P[0]<=x&&P[1]>=0&&P[1]<=F){if(P[0]===0&&P[1]===0)continue;E=!0}}if(!E)return}e.isHorizontal()?((m||b||w||g)&&(p.preventDefault?p.preventDefault():p.returnValue=!1),((b||g)&&!u||(m||w)&&u)&&e.slideNext(),((m||w)&&!u||(b||g)&&u)&&e.slidePrev()):((m||b||v||y)&&(p.preventDefault?p.preventDefault():p.returnValue=!1),(b||y)&&e.slideNext(),(m||v)&&e.slidePrev()),r("keyPress",f)}}function l(){e.keyboard.enabled||(s.addEventListener("keydown",o),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(s.removeEventListener("keydown",o),e.keyboard.enabled=!1)}a("init",()=>{e.params.keyboard.enabled&&l()}),a("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:l,disable:c})}function d$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;const s=Ge();n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let i,o=Nt(),l;const c=[];function d(v){let $=0,M=0,x=0,F=0;return"detail"in v&&(M=v.detail),"wheelDelta"in v&&(M=-v.wheelDelta/120),"wheelDeltaY"in v&&(M=-v.wheelDeltaY/120),"wheelDeltaX"in v&&($=-v.wheelDeltaX/120),"axis"in v&&v.axis===v.HORIZONTAL_AXIS&&($=M,M=0),x=$*10,F=M*10,"deltaY"in v&&(F=v.deltaY),"deltaX"in v&&(x=v.deltaX),v.shiftKey&&!x&&(x=F,F=0),(x||F)&&v.deltaMode&&(v.deltaMode===1?(x*=40,F*=40):(x*=800,F*=800)),x&&!$&&($=x<1?-1:1),F&&!M&&(M=F<1?-1:1),{spinX:$,spinY:M,pixelX:x,pixelY:F}}function u(){e.enabled&&(e.mouseEntered=!0)}function p(){e.enabled&&(e.mouseEntered=!1)}function f(v){return e.params.mousewheel.thresholdDelta&&v.delta=6&&Nt()-o<60?!0:(v.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),r("scroll",v.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),r("scroll",v.raw)),o=new s.Date().getTime(),!1)}function h(v){const y=e.params.mousewheel;if(v.direction<0){if(e.isEnd&&!e.params.loop&&y.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&y.releaseOnEdges)return!0;return!1}function m(v){let y=v,E=!0;if(!e.enabled||v.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const k=e.params.mousewheel;e.params.cssMode&&y.preventDefault();let $=e.el;e.params.mousewheel.eventsTarget!=="container"&&($=document.querySelector(e.params.mousewheel.eventsTarget));const M=$&&$.contains(y.target);if(!e.mouseEntered&&!M&&!k.releaseOnEdges)return!0;y.originalEvent&&(y=y.originalEvent);let x=0;const F=e.rtlTranslate?-1:1,S=d(y);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(S.pixelX)>Math.abs(S.pixelY))x=-S.pixelX*F;else return!0;else if(Math.abs(S.pixelY)>Math.abs(S.pixelX))x=-S.pixelY;else return!0;else x=Math.abs(S.pixelX)>Math.abs(S.pixelY)?-S.pixelX*F:-S.pixelY;if(x===0)return!0;k.invert&&(x=-x);let I=e.getTranslate()+x*k.sensitivity;if(I>=e.minTranslate()&&(I=e.minTranslate()),I<=e.maxTranslate()&&(I=e.maxTranslate()),E=e.params.loop?!0:!(I===e.minTranslate()||I===e.maxTranslate()),E&&e.params.nested&&y.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const B={time:Nt(),delta:Math.abs(x),direction:Math.sign(x),raw:v};c.length>=2&&c.shift();const P=c.length?c[c.length-1]:void 0;if(c.push(B),P?(B.direction!==P.direction||B.delta>P.delta||B.time>P.time+150)&&f(B):f(B),h(B))return!0}else{const B={time:Nt(),delta:Math.abs(x),direction:Math.sign(x)},P=l&&B.time=e.minTranslate()&&(L=e.minTranslate()),L<=e.maxTranslate()&&(L=e.maxTranslate()),e.setTransition(0),e.setTranslate(L),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!V&&e.isBeginning||!H&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:B.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(i),i=void 0,c.length>=15&&c.shift();const D=c.length?c[c.length-1]:void 0,O=c[0];if(c.push(B),D&&(B.delta>D.delta||B.direction!==D.direction))c.splice(0);else if(c.length>=15&&B.time-O.time<500&&O.delta-B.delta>=1&&B.delta<=6){const _=x>0?.8:.2;l=B,c.splice(0),i=Nn(()=>{e.slideToClosest(e.params.speed,!0,void 0,_)},0)}i||(i=Nn(()=>{l=B,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(P||r("scroll",y),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),k.releaseOnEdges&&(L===e.minTranslate()||L===e.maxTranslate()))return!0}}return y.preventDefault?y.preventDefault():y.returnValue=!1,!1}function b(v){let y=e.el;e.params.mousewheel.eventsTarget!=="container"&&(y=document.querySelector(e.params.mousewheel.eventsTarget)),y[v]("mouseenter",u),y[v]("mouseleave",p),y[v]("wheel",m)}function w(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",m),!0):e.mousewheel.enabled?!1:(b("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,m),!0):e.mousewheel.enabled?(b("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}a("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&w()}),a("destroy",()=>{e.params.cssMode&&w(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:w,disable:g})}function gi(t,e,n,a){return t.params.createElements&&Object.keys(a).forEach(r=>{if(!n[r]&&n.auto===!0){let s=pt(t.el,`.${a[r]}`)[0];s||(s=Yt("div",a[r]),s.className=a[r],t.el.append(s)),n[r]=s,e[r]=s}}),n}function u$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const s=m=>(Array.isArray(m)?m:[m]).filter(b=>!!b);function i(m){let b;return m&&typeof m=="string"&&e.isElement&&(b=e.el.querySelector(m),b)?b:(m&&(typeof m=="string"&&(b=[...document.querySelectorAll(m)]),e.params.uniqueNavElements&&typeof m=="string"&&b.length>1&&e.el.querySelectorAll(m).length===1&&(b=e.el.querySelector(m))),m&&!b?m:b)}function o(m,b){const w=e.params.navigation;m=s(m),m.forEach(g=>{g&&(g.classList[b?"add":"remove"](...w.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=b),e.params.watchOverflow&&e.enabled&&g.classList[e.isLocked?"add":"remove"](w.lockClass))})}function l(){const{nextEl:m,prevEl:b}=e.navigation;if(e.params.loop){o(b,!1),o(m,!1);return}o(b,e.isBeginning&&!e.params.rewind),o(m,e.isEnd&&!e.params.rewind)}function c(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function d(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function u(){const m=e.params.navigation;if(e.params.navigation=gi(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(m.nextEl||m.prevEl))return;let b=i(m.nextEl),w=i(m.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:w}),b=s(b),w=s(w);const g=(v,y)=>{v&&v.addEventListener("click",y==="next"?d:c),!e.enabled&&v&&v.classList.add(...m.lockClass.split(" "))};b.forEach(v=>g(v,"next")),w.forEach(v=>g(v,"prev"))}function p(){let{nextEl:m,prevEl:b}=e.navigation;m=s(m),b=s(b);const w=(g,v)=>{g.removeEventListener("click",v==="next"?d:c),g.classList.remove(...e.params.navigation.disabledClass.split(" "))};m.forEach(g=>w(g,"next")),b.forEach(g=>w(g,"prev"))}a("init",()=>{e.params.navigation.enabled===!1?h():(u(),l())}),a("toEdge fromEdge lock unlock",()=>{l()}),a("destroy",()=>{p()}),a("enable disable",()=>{let{nextEl:m,prevEl:b}=e.navigation;if(m=s(m),b=s(b),e.enabled){l();return}[...m,...b].filter(w=>!!w).forEach(w=>w.classList.add(e.params.navigation.lockClass))}),a("click",(m,b)=>{let{nextEl:w,prevEl:g}=e.navigation;w=s(w),g=s(g);const v=b.target;if(e.params.navigation.hideOnClick&&!g.includes(v)&&!w.includes(v)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===v||e.pagination.el.contains(v)))return;let y;w.length?y=w[0].classList.contains(e.params.navigation.hiddenClass):g.length&&(y=g[0].classList.contains(e.params.navigation.hiddenClass)),r(y===!0?"navigationShow":"navigationHide"),[...w,...g].filter(E=>!!E).forEach(E=>E.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),l()},h=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(e.navigation,{enable:f,disable:h,update:l,init:u,destroy:p})}function vn(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function p$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;const s="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:g=>g,formatFractionTotal:g=>g,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let i,o=0;const l=g=>(Array.isArray(g)?g:[g]).filter(v=>!!v);function c(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function d(g,v){const{bulletActiveClass:y}=e.params.pagination;g&&(g=g[`${v==="prev"?"previous":"next"}ElementSibling`],g&&(g.classList.add(`${y}-${v}`),g=g[`${v==="prev"?"previous":"next"}ElementSibling`],g&&g.classList.add(`${y}-${v}-${v}`)))}function u(g){const v=g.target.closest(vn(e.params.pagination.bulletClass));if(!v)return;g.preventDefault();const y=Ha(v)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===y)return;const E=e.realIndex,k=e.getSlideIndexByData(y),$=e.getSlideIndexByData(e.realIndex),M=x=>{const F=e.activeIndex;e.loopFix({direction:x,activeSlideIndex:k,slideTo:!1});const S=e.activeIndex;F===S&&e.slideToLoop(E,0,!1,!0)};if(k>e.slides.length-e.loopedSlides)M(k>$?"next":"prev");else if(e.params.centeredSlides){const x=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(parseFloat(e.params.slidesPerView,10));k1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(E=e.snapIndex,k=e.previousSnapIndex):(k=e.previousIndex||0,E=e.activeIndex||0),v.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const x=e.pagination.bullets;let F,S,I;if(v.dynamicBullets&&(i=Is(x[0],e.isHorizontal()?"width":"height"),y.forEach(B=>{B.style[e.isHorizontal()?"width":"height"]=`${i*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&k!==void 0&&(o+=E-(k||0),o>v.dynamicMainBullets-1?o=v.dynamicMainBullets-1:o<0&&(o=0)),F=Math.max(E-o,0),S=F+(Math.min(x.length,v.dynamicMainBullets)-1),I=(S+F)/2),x.forEach(B=>{const P=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(L=>`${v.bulletActiveClass}${L}`)].map(L=>typeof L=="string"&&L.includes(" ")?L.split(" "):L).flat();B.classList.remove(...P)}),y.length>1)x.forEach(B=>{const P=Ha(B);P===E?B.classList.add(...v.bulletActiveClass.split(" ")):e.isElement&&B.setAttribute("part","bullet"),v.dynamicBullets&&(P>=F&&P<=S&&B.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),P===F&&d(B,"prev"),P===S&&d(B,"next"))});else{const B=x[E];if(B&&B.classList.add(...v.bulletActiveClass.split(" ")),e.isElement&&x.forEach((P,L)=>{P.setAttribute("part",L===E?"bullet-active":"bullet")}),v.dynamicBullets){const P=x[F],L=x[S];for(let V=F;V<=S;V+=1)x[V]&&x[V].classList.add(...`${v.bulletActiveClass}-main`.split(" "));d(P,"prev"),d(L,"next")}}if(v.dynamicBullets){const B=Math.min(x.length,v.dynamicMainBullets+4),P=(i*B-i)/2-I*i,L=g?"right":"left";x.forEach(V=>{V.style[e.isHorizontal()?L:"top"]=`${P}px`})}}y.forEach((x,F)=>{if(v.type==="fraction"&&(x.querySelectorAll(vn(v.currentClass)).forEach(S=>{S.textContent=v.formatFractionCurrent(E+1)}),x.querySelectorAll(vn(v.totalClass)).forEach(S=>{S.textContent=v.formatFractionTotal(M)})),v.type==="progressbar"){let S;v.progressbarOpposite?S=e.isHorizontal()?"vertical":"horizontal":S=e.isHorizontal()?"horizontal":"vertical";const I=(E+1)/M;let B=1,P=1;S==="horizontal"?B=I:P=I,x.querySelectorAll(vn(v.progressbarFillClass)).forEach(L=>{L.style.transform=`translate3d(0,0,0) scaleX(${B}) scaleY(${P})`,L.style.transitionDuration=`${e.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(x.innerHTML=v.renderCustom(e,E+1,M),F===0&&r("paginationRender",x)):(F===0&&r("paginationRender",x),r("paginationUpdate",x)),e.params.watchOverflow&&e.enabled&&x.classList[e.isLocked?"add":"remove"](v.lockClass)})}function f(){const g=e.params.pagination;if(c())return;const v=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let y=e.pagination.el;y=l(y);let E="";if(g.type==="bullets"){let k=e.params.loop?Math.ceil(v/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&k>v&&(k=v);for(let $=0;$`}g.type==="fraction"&&(g.renderFraction?E=g.renderFraction.call(e,g.currentClass,g.totalClass):E=` / `),g.type==="progressbar"&&(g.renderProgressbar?E=g.renderProgressbar.call(e,g.progressbarFillClass):E=``),e.pagination.bullets=[],y.forEach(k=>{g.type!=="custom"&&(k.innerHTML=E||""),g.type==="bullets"&&e.pagination.bullets.push(...k.querySelectorAll(vn(g.bulletClass)))}),g.type!=="custom"&&r("paginationRender",y[0])}function h(){e.params.pagination=gi(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const g=e.params.pagination;if(!g.el)return;let v;typeof g.el=="string"&&e.isElement&&(v=e.el.querySelector(g.el)),!v&&typeof g.el=="string"&&(v=[...document.querySelectorAll(g.el)]),v||(v=g.el),!(!v||v.length===0)&&(e.params.uniqueNavElements&&typeof g.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...e.el.querySelectorAll(g.el)],v.length>1&&(v=v.filter(y=>zn(y,".swiper")[0]===e.el)[0])),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(e.pagination,{el:v}),v=l(v),v.forEach(y=>{g.type==="bullets"&&g.clickable&&y.classList.add(...(g.clickableClass||"").split(" ")),y.classList.add(g.modifierClass+g.type),y.classList.add(e.isHorizontal()?g.horizontalClass:g.verticalClass),g.type==="bullets"&&g.dynamicBullets&&(y.classList.add(`${g.modifierClass}${g.type}-dynamic`),o=0,g.dynamicMainBullets<1&&(g.dynamicMainBullets=1)),g.type==="progressbar"&&g.progressbarOpposite&&y.classList.add(g.progressbarOppositeClass),g.clickable&&y.addEventListener("click",u),e.enabled||y.classList.add(g.lockClass)}))}function m(){const g=e.params.pagination;if(c())return;let v=e.pagination.el;v&&(v=l(v),v.forEach(y=>{y.classList.remove(g.hiddenClass),y.classList.remove(g.modifierClass+g.type),y.classList.remove(e.isHorizontal()?g.horizontalClass:g.verticalClass),g.clickable&&(y.classList.remove(...(g.clickableClass||"").split(" ")),y.removeEventListener("click",u))})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.classList.remove(...g.bulletActiveClass.split(" ")))}a("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const g=e.params.pagination;let{el:v}=e.pagination;v=l(v),v.forEach(y=>{y.classList.remove(g.horizontalClass,g.verticalClass),y.classList.add(e.isHorizontal()?g.horizontalClass:g.verticalClass)})}),a("init",()=>{e.params.pagination.enabled===!1?w():(h(),f(),p())}),a("activeIndexChange",()=>{typeof e.snapIndex>"u"&&p()}),a("snapIndexChange",()=>{p()}),a("snapGridLengthChange",()=>{f(),p()}),a("destroy",()=>{m()}),a("enable disable",()=>{let{el:g}=e.pagination;g&&(g=l(g),g.forEach(v=>v.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),a("lock unlock",()=>{p()}),a("click",(g,v)=>{const y=v.target,E=l(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&E&&E.length>0&&!y.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&y===e.navigation.nextEl||e.navigation.prevEl&&y===e.navigation.prevEl))return;const k=E[0].classList.contains(e.params.pagination.hiddenClass);r(k===!0?"paginationShow":"paginationHide"),E.forEach($=>$.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:g}=e.pagination;g&&(g=l(g),g.forEach(v=>v.classList.remove(e.params.pagination.paginationDisabledClass))),h(),f(),p()},w=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:g}=e.pagination;g&&(g=l(g),g.forEach(v=>v.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:b,disable:w,render:f,update:p,init:h,destroy:m})}function f$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;const s=vt();let i=!1,o=null,l=null,c,d,u,p;n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I,rtlTranslate:B}=e,{dragEl:P,el:L}=I,V=e.params.scrollbar,H=e.params.loop?e.progressLoop:e.progress;let D=d,O=(u-d)*H;B?(O=-O,O>0?(D=d-O,O=0):-O+d>u&&(D=u+O)):O<0?(D=d+O,O=0):O+d>u&&(D=u-O),e.isHorizontal()?(P.style.transform=`translate3d(${O}px, 0, 0)`,P.style.width=`${D}px`):(P.style.transform=`translate3d(0px, ${O}px, 0)`,P.style.height=`${D}px`),V.hide&&(clearTimeout(o),L.style.opacity=1,o=setTimeout(()=>{L.style.opacity=0,L.style.transitionDuration="400ms"},1e3))}function h(I){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${I}ms`)}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I}=e,{dragEl:B,el:P}=I;B.style.width="",B.style.height="",u=e.isHorizontal()?P.offsetWidth:P.offsetHeight,p=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=u*p:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?B.style.width=`${d}px`:B.style.height=`${d}px`,p>=1?P.style.display="none":P.style.display="",e.params.scrollbar.hide&&(P.style.opacity=0),e.params.watchOverflow&&e.enabled&&I.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function b(I){return e.isHorizontal()?I.clientX:I.clientY}function w(I){const{scrollbar:B,rtlTranslate:P}=e,{el:L}=B;let V;V=(b(I)-vr(L)[e.isHorizontal()?"left":"top"]-(c!==null?c:d/2))/(u-d),V=Math.max(Math.min(V,1),0),P&&(V=1-V);const H=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*V;e.updateProgress(H),e.setTranslate(H),e.updateActiveIndex(),e.updateSlidesClasses()}function g(I){const B=e.params.scrollbar,{scrollbar:P,wrapperEl:L}=e,{el:V,dragEl:H}=P;i=!0,c=I.target===H?b(I)-I.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,I.preventDefault(),I.stopPropagation(),L.style.transitionDuration="100ms",H.style.transitionDuration="100ms",w(I),clearTimeout(l),V.style.transitionDuration="0ms",B.hide&&(V.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",I)}function v(I){const{scrollbar:B,wrapperEl:P}=e,{el:L,dragEl:V}=B;i&&(I.preventDefault?I.preventDefault():I.returnValue=!1,w(I),P.style.transitionDuration="0ms",L.style.transitionDuration="0ms",V.style.transitionDuration="0ms",r("scrollbarDragMove",I))}function y(I){const B=e.params.scrollbar,{scrollbar:P,wrapperEl:L}=e,{el:V}=P;i&&(i=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",L.style.transitionDuration=""),B.hide&&(clearTimeout(l),l=Nn(()=>{V.style.opacity=0,V.style.transitionDuration="400ms"},1e3)),r("scrollbarDragEnd",I),B.snapOnRelease&&e.slideToClosest())}function E(I){const{scrollbar:B,params:P}=e,L=B.el;if(!L)return;const V=L,H=P.passiveListeners?{passive:!1,capture:!1}:!1,D=P.passiveListeners?{passive:!0,capture:!1}:!1;if(!V)return;const O=I==="on"?"addEventListener":"removeEventListener";V[O]("pointerdown",g,H),s[O]("pointermove",v,H),s[O]("pointerup",y,D)}function k(){!e.params.scrollbar.el||!e.scrollbar.el||E("on")}function $(){!e.params.scrollbar.el||!e.scrollbar.el||E("off")}function M(){const{scrollbar:I,el:B}=e;e.params.scrollbar=gi(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const P=e.params.scrollbar;if(!P.el)return;let L;typeof P.el=="string"&&e.isElement&&(L=e.el.querySelector(P.el)),!L&&typeof P.el=="string"?L=s.querySelectorAll(P.el):L||(L=P.el),e.params.uniqueNavElements&&typeof P.el=="string"&&L.length>1&&B.querySelectorAll(P.el).length===1&&(L=B.querySelector(P.el)),L.length>0&&(L=L[0]),L.classList.add(e.isHorizontal()?P.horizontalClass:P.verticalClass);let V;L&&(V=L.querySelector(`.${e.params.scrollbar.dragClass}`),V||(V=Yt("div",e.params.scrollbar.dragClass),L.append(V))),Object.assign(I,{el:L,dragEl:V}),P.draggable&&k(),L&&L.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}function x(){const I=e.params.scrollbar,B=e.scrollbar.el;B&&B.classList.remove(e.isHorizontal()?I.horizontalClass:I.verticalClass),$()}a("init",()=>{e.params.scrollbar.enabled===!1?S():(M(),m(),f())}),a("update resize observerUpdate lock unlock",()=>{m()}),a("setTranslate",()=>{f()}),a("setTransition",(I,B)=>{h(B)}),a("enable disable",()=>{const{el:I}=e.scrollbar;I&&I.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}),a("destroy",()=>{x()});const F=()=>{e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),M(),m(),f()},S=()=>{e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),x()};Object.assign(e.scrollbar,{enable:F,disable:S,updateSize:m,setTranslate:f,init:M,destroy:x})}function h$(t){let{swiper:e,extendParams:n,on:a}=t;n({parallax:{enabled:!1}});const r="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",s=(l,c)=>{const{rtl:d}=e,u=d?-1:1,p=l.getAttribute("data-swiper-parallax")||"0";let f=l.getAttribute("data-swiper-parallax-x"),h=l.getAttribute("data-swiper-parallax-y");const m=l.getAttribute("data-swiper-parallax-scale"),b=l.getAttribute("data-swiper-parallax-opacity"),w=l.getAttribute("data-swiper-parallax-rotate");if(f||h?(f=f||"0",h=h||"0"):e.isHorizontal()?(f=p,h="0"):(h=p,f="0"),f.indexOf("%")>=0?f=`${parseInt(f,10)*c*u}%`:f=`${f*c*u}px`,h.indexOf("%")>=0?h=`${parseInt(h,10)*c}%`:h=`${h*c}px`,typeof b<"u"&&b!==null){const v=b-(b-1)*(1-Math.abs(c));l.style.opacity=v}let g=`translate3d(${f}, ${h}, 0px)`;if(typeof m<"u"&&m!==null){const v=m-(m-1)*(1-Math.abs(c));g+=` scale(${v})`}if(w&&typeof w<"u"&&w!==null){const v=w*c*-1;g+=` rotate(${v}deg)`}l.style.transform=g},i=()=>{const{el:l,slides:c,progress:d,snapGrid:u,isElement:p}=e,f=pt(l,r);e.isElement&&f.push(...pt(e.hostEl,r)),f.forEach(h=>{s(h,d)}),c.forEach((h,m)=>{let b=h.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(b+=Math.ceil(m/2)-d*(u.length-1)),b=Math.min(Math.max(b,-1),1),h.querySelectorAll(`${r}, [data-swiper-parallax-rotate]`).forEach(w=>{s(w,b)})})},o=function(l){l===void 0&&(l=e.params.speed);const{el:c,hostEl:d}=e,u=[...c.querySelectorAll(r)];e.isElement&&u.push(...d.querySelectorAll(r)),u.forEach(p=>{let f=parseInt(p.getAttribute("data-swiper-parallax-duration"),10)||l;l===0&&(f=0),p.style.transitionDuration=`${f}ms`})};a("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),a("init",()=>{e.params.parallax.enabled&&i()}),a("setTranslate",()=>{e.params.parallax.enabled&&i()}),a("setTransition",(l,c)=>{e.params.parallax.enabled&&o(c)})}function m$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;const s=Ge();n({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let i=1,o=!1,l,c;const d=[],u={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},p={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},f={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let h=1;Object.defineProperty(e.zoom,"scale",{get(){return h},set(H){if(h!==H){const D=u.imageEl,O=u.slideEl;r("zoomChange",H,D,O)}h=H}});function m(){if(d.length<2)return 1;const H=d[0].pageX,D=d[0].pageY,O=d[1].pageX,_=d[1].pageY;return Math.sqrt((O-H)**2+(_-D)**2)}function b(){if(d.length<2)return{x:null,y:null};const H=u.imageEl.getBoundingClientRect();return[(d[0].pageX+(d[1].pageX-d[0].pageX)/2-H.x-s.scrollX)/i,(d[0].pageY+(d[1].pageY-d[0].pageY)/2-H.y-s.scrollY)/i]}function w(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function g(H){const D=w();return!!(H.target.matches(D)||e.slides.filter(O=>O.contains(H.target)).length>0)}function v(H){const D=`.${e.params.zoom.containerClass}`;return!!(H.target.matches(D)||[...e.hostEl.querySelectorAll(D)].filter(O=>O.contains(H.target)).length>0)}function y(H){if(H.pointerType==="mouse"&&d.splice(0,d.length),!g(H))return;const D=e.params.zoom;if(l=!1,c=!1,d.push(H),!(d.length<2)){if(l=!0,u.scaleStart=m(),!u.slideEl){u.slideEl=H.target.closest(`.${e.params.slideClass}, swiper-slide`),u.slideEl||(u.slideEl=e.slides[e.activeIndex]);let O=u.slideEl.querySelector(`.${D.containerClass}`);if(O&&(O=O.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=O,O?u.imageWrapEl=zn(u.imageEl,`.${D.containerClass}`)[0]:u.imageWrapEl=void 0,!u.imageWrapEl){u.imageEl=void 0;return}u.maxRatio=u.imageWrapEl.getAttribute("data-swiper-zoom")||D.maxRatio}if(u.imageEl){const[O,_]=b();u.originX=O,u.originY=_,u.imageEl.style.transitionDuration="0ms"}o=!0}}function E(H){if(!g(H))return;const D=e.params.zoom,O=e.zoom,_=d.findIndex(N=>N.pointerId===H.pointerId);_>=0&&(d[_]=H),!(d.length<2)&&(c=!0,u.scaleMove=m(),u.imageEl&&(O.scale=u.scaleMove/u.scaleStart*i,O.scale>u.maxRatio&&(O.scale=u.maxRatio-1+(O.scale-u.maxRatio+1)**.5),O.scaleN.pointerId===H.pointerId);_>=0&&d.splice(_,1),!(!l||!c)&&(l=!1,c=!1,u.imageEl&&(O.scale=Math.max(Math.min(O.scale,u.maxRatio),D.minRatio),u.imageEl.style.transitionDuration=`${e.params.speed}ms`,u.imageEl.style.transform=`translate3d(0,0,0) scale(${O.scale})`,i=O.scale,o=!1,O.scale>1&&u.slideEl?u.slideEl.classList.add(`${D.zoomedSlideClass}`):O.scale<=1&&u.slideEl&&u.slideEl.classList.remove(`${D.zoomedSlideClass}`),O.scale===1&&(u.originX=0,u.originY=0,u.slideEl=void 0)))}function $(H){const D=e.device;if(!u.imageEl||p.isTouched)return;D.android&&H.cancelable&&H.preventDefault(),p.isTouched=!0;const O=d.length>0?d[0]:H;p.touchesStart.x=O.pageX,p.touchesStart.y=O.pageY}function M(H){if(!g(H)||!v(H))return;const D=e.zoom;if(!u.imageEl||!p.isTouched||!u.slideEl)return;p.isMoved||(p.width=u.imageEl.offsetWidth,p.height=u.imageEl.offsetHeight,p.startX=Bs(u.imageWrapEl,"x")||0,p.startY=Bs(u.imageWrapEl,"y")||0,u.slideWidth=u.slideEl.offsetWidth,u.slideHeight=u.slideEl.offsetHeight,u.imageWrapEl.style.transitionDuration="0ms");const O=p.width*D.scale,_=p.height*D.scale;if(O0?d[0].pageX:H.pageX,p.touchesCurrent.y=d.length>0?d[0].pageY:H.pageY,Math.max(Math.abs(p.touchesCurrent.x-p.touchesStart.x),Math.abs(p.touchesCurrent.y-p.touchesStart.y))>5&&(e.allowClick=!1),!p.isMoved&&!o){if(e.isHorizontal()&&(Math.floor(p.minX)===Math.floor(p.startX)&&p.touchesCurrent.xp.touchesStart.x)){p.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor(p.minY)===Math.floor(p.startY)&&p.touchesCurrent.yp.touchesStart.y)){p.isTouched=!1;return}}H.cancelable&&H.preventDefault(),H.stopPropagation(),p.isMoved=!0;const G=(D.scale-i)/(u.maxRatio-e.params.zoom.minRatio),{originX:ee,originY:X}=u;p.currentX=p.touchesCurrent.x-p.touchesStart.x+p.startX+G*(p.width-ee*2),p.currentY=p.touchesCurrent.y-p.touchesStart.y+p.startY+G*(p.height-X*2),p.currentXp.maxX&&(p.currentX=p.maxX-1+(p.currentX-p.maxX+1)**.8),p.currentYp.maxY&&(p.currentY=p.maxY-1+(p.currentY-p.maxY+1)**.8),f.prevPositionX||(f.prevPositionX=p.touchesCurrent.x),f.prevPositionY||(f.prevPositionY=p.touchesCurrent.y),f.prevTime||(f.prevTime=Date.now()),f.x=(p.touchesCurrent.x-f.prevPositionX)/(Date.now()-f.prevTime)/2,f.y=(p.touchesCurrent.y-f.prevPositionY)/(Date.now()-f.prevTime)/2,Math.abs(p.touchesCurrent.x-f.prevPositionX)<2&&(f.x=0),Math.abs(p.touchesCurrent.y-f.prevPositionY)<2&&(f.y=0),f.prevPositionX=p.touchesCurrent.x,f.prevPositionY=p.touchesCurrent.y,f.prevTime=Date.now(),u.imageWrapEl.style.transform=`translate3d(${p.currentX}px, ${p.currentY}px,0)`}function x(){const H=e.zoom;if(!u.imageEl)return;if(!p.isTouched||!p.isMoved){p.isTouched=!1,p.isMoved=!1;return}p.isTouched=!1,p.isMoved=!1;let D=300,O=300;const _=f.x*D,N=p.currentX+_,G=f.y*O,ee=p.currentY+G;f.x!==0&&(D=Math.abs((N-p.currentX)/f.x)),f.y!==0&&(O=Math.abs((ee-p.currentY)/f.y));const X=Math.max(D,O);p.currentX=N,p.currentY=ee;const se=p.width*H.scale,ne=p.height*H.scale;p.minX=Math.min(u.slideWidth/2-se/2,0),p.maxX=-p.minX,p.minY=Math.min(u.slideHeight/2-ne/2,0),p.maxY=-p.minY,p.currentX=Math.max(Math.min(p.currentX,p.maxX),p.minX),p.currentY=Math.max(Math.min(p.currentY,p.maxY),p.minY),u.imageWrapEl.style.transitionDuration=`${X}ms`,u.imageWrapEl.style.transform=`translate3d(${p.currentX}px, ${p.currentY}px,0)`}function F(){const H=e.zoom;u.slideEl&&e.activeIndex!==e.slides.indexOf(u.slideEl)&&(u.imageEl&&(u.imageEl.style.transform="translate3d(0,0,0) scale(1)"),u.imageWrapEl&&(u.imageWrapEl.style.transform="translate3d(0,0,0)"),u.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),H.scale=1,i=1,u.slideEl=void 0,u.imageEl=void 0,u.imageWrapEl=void 0,u.originX=0,u.originY=0)}function S(H){const D=e.zoom,O=e.params.zoom;if(!u.slideEl){H&&H.target&&(u.slideEl=H.target.closest(`.${e.params.slideClass}, swiper-slide`)),u.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.slideEl=pt(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:u.slideEl=e.slides[e.activeIndex]);let j=u.slideEl.querySelector(`.${O.containerClass}`);j&&(j=j.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=j,j?u.imageWrapEl=zn(u.imageEl,`.${O.containerClass}`)[0]:u.imageWrapEl=void 0}if(!u.imageEl||!u.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),u.slideEl.classList.add(`${O.zoomedSlideClass}`);let _,N,G,ee,X,se,ne,ie,le,be,oe,ce,pe,R,A,z,q,U;typeof p.touchesStart.x>"u"&&H?(_=H.pageX,N=H.pageY):(_=p.touchesStart.x,N=p.touchesStart.y);const K=typeof H=="number"?H:null;i===1&&K&&(_=void 0,N=void 0),D.scale=K||u.imageWrapEl.getAttribute("data-swiper-zoom")||O.maxRatio,i=K||u.imageWrapEl.getAttribute("data-swiper-zoom")||O.maxRatio,H&&!(i===1&&K)?(q=u.slideEl.offsetWidth,U=u.slideEl.offsetHeight,G=vr(u.slideEl).left+s.scrollX,ee=vr(u.slideEl).top+s.scrollY,X=G+q/2-_,se=ee+U/2-N,le=u.imageEl.offsetWidth,be=u.imageEl.offsetHeight,oe=le*D.scale,ce=be*D.scale,pe=Math.min(q/2-oe/2,0),R=Math.min(U/2-ce/2,0),A=-pe,z=-R,ne=X*D.scale,ie=se*D.scale,neA&&(ne=A),iez&&(ie=z)):(ne=0,ie=0),K&&D.scale===1&&(u.originX=0,u.originY=0),u.imageWrapEl.style.transitionDuration="300ms",u.imageWrapEl.style.transform=`translate3d(${ne}px, ${ie}px,0)`,u.imageEl.style.transitionDuration="300ms",u.imageEl.style.transform=`translate3d(0,0,0) scale(${D.scale})`}function I(){const H=e.zoom,D=e.params.zoom;if(!u.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.slideEl=pt(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:u.slideEl=e.slides[e.activeIndex];let O=u.slideEl.querySelector(`.${D.containerClass}`);O&&(O=O.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=O,O?u.imageWrapEl=zn(u.imageEl,`.${D.containerClass}`)[0]:u.imageWrapEl=void 0}!u.imageEl||!u.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),H.scale=1,i=1,u.imageWrapEl.style.transitionDuration="300ms",u.imageWrapEl.style.transform="translate3d(0,0,0)",u.imageEl.style.transitionDuration="300ms",u.imageEl.style.transform="translate3d(0,0,0) scale(1)",u.slideEl.classList.remove(`${D.zoomedSlideClass}`),u.slideEl=void 0,u.originX=0,u.originY=0)}function B(H){const D=e.zoom;D.scale&&D.scale!==1?I():S(H)}function P(){const H=e.params.passiveListeners?{passive:!0,capture:!1}:!1,D=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:H,activeListenerWithCapture:D}}function L(){const H=e.zoom;if(H.enabled)return;H.enabled=!0;const{passiveListener:D,activeListenerWithCapture:O}=P();e.wrapperEl.addEventListener("pointerdown",y,D),e.wrapperEl.addEventListener("pointermove",E,O),["pointerup","pointercancel","pointerout"].forEach(_=>{e.wrapperEl.addEventListener(_,k,D)}),e.wrapperEl.addEventListener("pointermove",M,O)}function V(){const H=e.zoom;if(!H.enabled)return;H.enabled=!1;const{passiveListener:D,activeListenerWithCapture:O}=P();e.wrapperEl.removeEventListener("pointerdown",y,D),e.wrapperEl.removeEventListener("pointermove",E,O),["pointerup","pointercancel","pointerout"].forEach(_=>{e.wrapperEl.removeEventListener(_,k,D)}),e.wrapperEl.removeEventListener("pointermove",M,O)}a("init",()=>{e.params.zoom.enabled&&L()}),a("destroy",()=>{V()}),a("touchStart",(H,D)=>{e.zoom.enabled&&$(D)}),a("touchEnd",(H,D)=>{e.zoom.enabled&&x()}),a("doubleTap",(H,D)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&B(D)}),a("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&F()}),a("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&F()}),Object.assign(e.zoom,{enable:L,disable:V,in:S,out:I,toggle:B})}function g$(t){let{swiper:e,extendParams:n,on:a}=t;n({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function r(c,d){const u=function(){let m,b,w;return(g,v)=>{for(b=-1,m=g.length;m-b>1;)w=m+b>>1,g[w]<=v?b=w:m=w;return m}}();this.x=c,this.y=d,this.lastIndex=c.length-1;let p,f;return this.interpolate=function(m){return m?(f=u(this.x,m),p=f-1,(m-this.x[p])*(this.y[f]-this.y[p])/(this.x[f]-this.x[p])+this.y[p]):0},this}function s(c){e.controller.spline=e.params.loop?new r(e.slidesGrid,c.slidesGrid):new r(e.snapGrid,c.snapGrid)}function i(c,d){const u=e.controller.control;let p,f;const h=e.constructor;function m(b){if(b.destroyed)return;const w=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(s(b),f=-e.controller.spline.interpolate(-w)),(!f||e.params.controller.by==="container")&&(p=(b.maxTranslate()-b.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(p)||!Number.isFinite(p))&&(p=1),f=(w-e.minTranslate())*p+b.minTranslate()),e.params.controller.inverse&&(f=b.maxTranslate()-f),b.updateProgress(f),b.setTranslate(f,e),b.updateActiveIndex(),b.updateSlidesClasses()}if(Array.isArray(u))for(let b=0;b{m.updateAutoHeight()}),Pa(m.wrapperEl,()=>{p&&m.transitionEnd()})))}if(Array.isArray(p))for(f=0;f{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){const c=document.querySelector(e.params.controller.control);if(c&&c.swiper)e.controller.control=c.swiper;else if(c){const d=u=>{e.controller.control=u.detail[0],e.update(),c.removeEventListener("init",d)};c.addEventListener("init",d)}return}e.controller.control=e.params.controller.control}),a("update",()=>{l()}),a("resize",()=>{l()}),a("observerUpdate",()=>{l()}),a("setTranslate",(c,d,u)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(d,u)}),a("setTransition",(c,d,u)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(d,u)}),Object.assign(e.controller,{setTranslate:i,setTransition:o})}function b$(t){let{swiper:e,extendParams:n,on:a}=t;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let r=null;function s(P){const L=r;L.length!==0&&(L.innerHTML="",L.innerHTML=P)}const i=P=>(Array.isArray(P)?P:[P]).filter(L=>!!L);function o(P){const L=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(P).replace(/x/g,L)}function l(P){P=i(P),P.forEach(L=>{L.setAttribute("tabIndex","0")})}function c(P){P=i(P),P.forEach(L=>{L.setAttribute("tabIndex","-1")})}function d(P,L){P=i(P),P.forEach(V=>{V.setAttribute("role",L)})}function u(P,L){P=i(P),P.forEach(V=>{V.setAttribute("aria-roledescription",L)})}function p(P,L){P=i(P),P.forEach(V=>{V.setAttribute("aria-controls",L)})}function f(P,L){P=i(P),P.forEach(V=>{V.setAttribute("aria-label",L)})}function h(P,L){P=i(P),P.forEach(V=>{V.setAttribute("id",L)})}function m(P,L){P=i(P),P.forEach(V=>{V.setAttribute("aria-live",L)})}function b(P){P=i(P),P.forEach(L=>{L.setAttribute("aria-disabled",!0)})}function w(P){P=i(P),P.forEach(L=>{L.setAttribute("aria-disabled",!1)})}function g(P){if(P.keyCode!==13&&P.keyCode!==32)return;const L=e.params.a11y,V=P.target;e.pagination&&e.pagination.el&&(V===e.pagination.el||e.pagination.el.contains(P.target))&&!P.target.matches(vn(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&V===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(L.lastSlideMessage):s(L.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&V===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(L.firstSlideMessage):s(L.prevSlideMessage)),e.pagination&&V.matches(vn(e.params.pagination.bulletClass))&&V.click())}function v(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:P,prevEl:L}=e.navigation;L&&(e.isBeginning?(b(L),c(L)):(w(L),l(L))),P&&(e.isEnd?(b(P),c(P)):(w(P),l(P)))}function y(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function E(){return y()&&e.params.pagination.clickable}function k(){const P=e.params.a11y;y()&&e.pagination.bullets.forEach(L=>{e.params.pagination.clickable&&(l(L),e.params.pagination.renderBullet||(d(L,"button"),f(L,P.paginationBulletMessage.replace(/\{\{index\}\}/,Ha(L)+1)))),L.matches(vn(e.params.pagination.bulletActiveClass))?L.setAttribute("aria-current","true"):L.removeAttribute("aria-current")})}const $=(P,L,V)=>{l(P),P.tagName!=="BUTTON"&&(d(P,"button"),P.addEventListener("keydown",g)),f(P,V),p(P,L)},M=()=>{e.a11y.clicked=!0},x=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},F=P=>{if(e.a11y.clicked)return;const L=P.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!L||!e.slides.includes(L))return;const V=e.slides.indexOf(L)===e.activeIndex,H=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(L);V||H||P.sourceCapabilities&&P.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(L),0))},S=()=>{const P=e.params.a11y;P.itemRoleDescriptionMessage&&u(e.slides,P.itemRoleDescriptionMessage),P.slideRole&&d(e.slides,P.slideRole);const L=e.slides.length;P.slideLabelMessage&&e.slides.forEach((V,H)=>{const D=e.params.loop?parseInt(V.getAttribute("data-swiper-slide-index"),10):H,O=P.slideLabelMessage.replace(/\{\{index\}\}/,D+1).replace(/\{\{slidesLength\}\}/,L);f(V,O)})},I=()=>{const P=e.params.a11y;e.el.append(r);const L=e.el;P.containerRoleDescriptionMessage&&u(L,P.containerRoleDescriptionMessage),P.containerMessage&&f(L,P.containerMessage);const V=e.wrapperEl,H=P.id||V.getAttribute("id")||`swiper-wrapper-${o(16)}`,D=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";h(V,H),m(V,D),S();let{nextEl:O,prevEl:_}=e.navigation?e.navigation:{};O=i(O),_=i(_),O&&O.forEach(N=>$(N,H,P.nextSlideMessage)),_&&_.forEach(N=>$(N,H,P.prevSlideMessage)),E()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(G=>{G.addEventListener("keydown",g)}),e.el.addEventListener("focus",F,!0),e.el.addEventListener("pointerdown",M,!0),e.el.addEventListener("pointerup",x,!0)};function B(){r&&r.remove();let{nextEl:P,prevEl:L}=e.navigation?e.navigation:{};P=i(P),L=i(L),P&&P.forEach(V=>V.removeEventListener("keydown",g)),L&&L.forEach(V=>V.removeEventListener("keydown",g)),E()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(H=>{H.removeEventListener("keydown",g)}),e.el.removeEventListener("focus",F,!0),e.el.removeEventListener("pointerdown",M,!0),e.el.removeEventListener("pointerup",x,!0)}a("beforeInit",()=>{r=Yt("span",e.params.a11y.notificationClass),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true")}),a("afterInit",()=>{e.params.a11y.enabled&&I()}),a("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&S()}),a("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&v()}),a("paginationUpdate",()=>{e.params.a11y.enabled&&k()}),a("destroy",()=>{e.params.a11y.enabled&&B()})}function v$(t){let{swiper:e,extendParams:n,on:a}=t;n({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let r=!1,s={};const i=f=>f.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=f=>{const h=Ge();let m;f?m=new URL(f):m=h.location;const b=m.pathname.slice(1).split("/").filter(y=>y!==""),w=b.length,g=b[w-2],v=b[w-1];return{key:g,value:v}},l=(f,h)=>{const m=Ge();if(!r||!e.params.history.enabled)return;let b;e.params.url?b=new URL(e.params.url):b=m.location;const w=e.slides[h];let g=i(w.getAttribute("data-history"));if(e.params.history.root.length>0){let y=e.params.history.root;y[y.length-1]==="/"&&(y=y.slice(0,y.length-1)),g=`${y}/${f?`${f}/`:""}${g}`}else b.pathname.includes(f)||(g=`${f?`${f}/`:""}${g}`);e.params.history.keepQuery&&(g+=b.search);const v=m.history.state;v&&v.value===g||(e.params.history.replaceState?m.history.replaceState({value:g},null,g):m.history.pushState({value:g},null,g))},c=(f,h,m)=>{if(h)for(let b=0,w=e.slides.length;b{s=o(e.params.url),c(e.params.speed,s.value,!1)},u=()=>{const f=Ge();if(e.params.history){if(!f.history||!f.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(r=!0,s=o(e.params.url),!s.key&&!s.value){e.params.history.replaceState||f.addEventListener("popstate",d);return}c(0,s.value,e.params.runCallbacksOnInit),e.params.history.replaceState||f.addEventListener("popstate",d)}},p=()=>{const f=Ge();e.params.history.replaceState||f.removeEventListener("popstate",d)};a("init",()=>{e.params.history.enabled&&u()}),a("destroy",()=>{e.params.history.enabled&&p()}),a("transitionEnd _freeModeNoMomentumRelease",()=>{r&&l(e.params.history.key,e.activeIndex)}),a("slideChange",()=>{r&&e.params.cssMode&&l(e.params.history.key,e.activeIndex)})}function w$(t){let{swiper:e,extendParams:n,emit:a,on:r}=t,s=!1;const i=vt(),o=Ge();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(p,f){if(e.virtual&&e.params.virtual.enabled){const h=e.slides.filter(b=>b.getAttribute("data-hash")===f)[0];return h?parseInt(h.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(pt(e.slidesEl,`.${e.params.slideClass}[data-hash="${f}"], swiper-slide[data-hash="${f}"]`)[0])}}});const l=()=>{a("hashChange");const p=i.location.hash.replace("#",""),f=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],h=f?f.getAttribute("data-hash"):"";if(p!==h){const m=e.params.hashNavigation.getSlideIndex(e,p);if(typeof m>"u"||Number.isNaN(m))return;e.slideTo(m)}},c=()=>{if(!s||!e.params.hashNavigation.enabled)return;const p=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],f=p?p.getAttribute("data-hash")||p.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&o.history&&o.history.replaceState?(o.history.replaceState(null,null,`#${f}`||""),a("hashSet")):(i.location.hash=f||"",a("hashSet"))},d=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;s=!0;const p=i.location.hash.replace("#","");if(p){const h=e.params.hashNavigation.getSlideIndex(e,p);e.slideTo(h||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&o.addEventListener("hashchange",l)},u=()=>{e.params.hashNavigation.watchState&&o.removeEventListener("hashchange",l)};r("init",()=>{e.params.hashNavigation.enabled&&d()}),r("destroy",()=>{e.params.hashNavigation.enabled&&u()}),r("transitionEnd _freeModeNoMomentumRelease",()=>{s&&c()}),r("slideChange",()=>{s&&e.params.cssMode&&c()})}function y$(t){let{swiper:e,extendParams:n,on:a,emit:r,params:s}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let i,o,l=s&&s.autoplay?s.autoplay.delay:3e3,c=s&&s.autoplay?s.autoplay.delay:3e3,d,u=new Date().getTime,p,f,h,m,b,w;function g(H){!e||e.destroyed||!e.wrapperEl||H.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",g),x())}const v=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?p=!0:p&&(c=d,p=!1);const H=e.autoplay.paused?d:u+c-new Date().getTime();e.autoplay.timeLeft=H,r("autoplayTimeLeft",H,H/l),o=requestAnimationFrame(()=>{v()})},y=()=>{let H;return e.virtual&&e.params.virtual.enabled?H=e.slides.filter(O=>O.classList.contains("swiper-slide-active"))[0]:H=e.slides[e.activeIndex],H?parseInt(H.getAttribute("data-swiper-autoplay"),10):void 0},E=H=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),v();let D=typeof H>"u"?e.params.autoplay.delay:H;l=e.params.autoplay.delay,c=e.params.autoplay.delay;const O=y();!Number.isNaN(O)&&O>0&&typeof H>"u"&&(D=O,l=O,c=O),d=D;const _=e.params.speed,N=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(_,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,_,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(_,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,_,!0,!0),r("autoplay")),e.params.cssMode&&(u=new Date().getTime(),requestAnimationFrame(()=>{E()})))};return D>0?(clearTimeout(i),i=setTimeout(()=>{N()},D)):requestAnimationFrame(()=>{N()}),D},k=()=>{e.autoplay.running=!0,E(),r("autoplayStart")},$=()=>{e.autoplay.running=!1,clearTimeout(i),cancelAnimationFrame(o),r("autoplayStop")},M=(H,D)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(i),H||(w=!0);const O=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",g):x()};if(e.autoplay.paused=!0,D){b&&(d=e.params.autoplay.delay),b=!1,O();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-u),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),O())},x=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(u=new Date().getTime(),w?(w=!1,E(d)):E(),e.autoplay.paused=!1,r("autoplayResume"))},F=()=>{if(e.destroyed||!e.autoplay.running)return;const H=vt();H.visibilityState==="hidden"&&(w=!0,M(!0)),H.visibilityState==="visible"&&x()},S=H=>{H.pointerType==="mouse"&&(w=!0,!(e.animating||e.autoplay.paused)&&M(!0))},I=H=>{H.pointerType==="mouse"&&e.autoplay.paused&&x()},B=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",S),e.el.addEventListener("pointerleave",I))},P=()=>{e.el.removeEventListener("pointerenter",S),e.el.removeEventListener("pointerleave",I)},L=()=>{vt().addEventListener("visibilitychange",F)},V=()=>{vt().removeEventListener("visibilitychange",F)};a("init",()=>{e.params.autoplay.enabled&&(B(),L(),u=new Date().getTime(),k())}),a("destroy",()=>{P(),V(),e.autoplay.running&&$()}),a("beforeTransitionStart",(H,D,O)=>{e.destroyed||!e.autoplay.running||(O||!e.params.autoplay.disableOnInteraction?M(!0,!0):$())}),a("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){$();return}f=!0,h=!1,w=!1,m=setTimeout(()=>{w=!0,h=!0,M(!0)},200)}}),a("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!f)){if(clearTimeout(m),clearTimeout(i),e.params.autoplay.disableOnInteraction){h=!1,f=!1;return}h&&e.params.cssMode&&x(),h=!1,f=!1}}),a("slideChange",()=>{e.destroyed||!e.autoplay.running||(b=!0)}),Object.assign(e.autoplay,{start:k,stop:$,pause:M,resume:x})}function E$(t){let{swiper:e,extendParams:n,on:a}=t;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,s=!1;e.thumbs={swiper:null};function i(){const c=e.thumbs.swiper;if(!c||c.destroyed)return;const d=c.clickedIndex,u=c.clickedSlide;if(u&&u.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof d>"u"||d===null)return;let p;c.params.loop?p=parseInt(c.clickedSlide.getAttribute("data-swiper-slide-index"),10):p=d,e.params.loop?e.slideToLoop(p):e.slideTo(p)}function o(){const{thumbs:c}=e.params;if(r)return!1;r=!0;const d=e.constructor;if(c.swiper instanceof d)e.thumbs.swiper=c.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(wa(c.swiper)){const u=Object.assign({},c.swiper);Object.assign(u,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new d(u),s=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",i),!0}function l(c){const d=e.thumbs.swiper;if(!d||d.destroyed)return;const u=d.params.slidesPerView==="auto"?d.slidesPerViewDynamic():d.params.slidesPerView;let p=1;const f=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(p=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(p=1),p=Math.floor(p),d.slides.forEach(b=>b.classList.remove(f)),d.params.loop||d.params.virtual&&d.params.virtual.enabled)for(let b=0;b{w.classList.add(f)});else for(let b=0;by.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];w=d.slides.indexOf(v),g=e.activeIndex>e.previousIndex?"next":"prev"}else w=e.realIndex,g=w>e.previousIndex?"next":"prev";m&&(w+=g==="next"?h:-1*h),d.visibleSlidesIndexes&&d.visibleSlidesIndexes.indexOf(w)<0&&(d.params.centeredSlides?w>b?w=w-Math.floor(u/2)+1:w=w+Math.floor(u/2)-1:w>b&&d.params.slidesPerGroup,d.slideTo(w,c?0:void 0))}}a("beforeInit",()=>{const{thumbs:c}=e.params;if(!(!c||!c.swiper))if(typeof c.swiper=="string"||c.swiper instanceof HTMLElement){const d=vt(),u=()=>{const f=typeof c.swiper=="string"?d.querySelector(c.swiper):c.swiper;if(f&&f.swiper)c.swiper=f.swiper,o(),l(!0);else if(f){const h=m=>{c.swiper=m.detail[0],f.removeEventListener("init",h),o(),l(!0),c.swiper.update(),e.update()};f.addEventListener("init",h)}return f},p=()=>{if(e.destroyed)return;u()||requestAnimationFrame(p)};requestAnimationFrame(p)}else o(),l(!0)}),a("slideChange update resize observerUpdate",()=>{l()}),a("setTransition",(c,d)=>{const u=e.thumbs.swiper;!u||u.destroyed||u.setTransition(d)}),a("beforeDestroy",()=>{const c=e.thumbs.swiper;!c||c.destroyed||s&&c.destroy()}),Object.assign(e.thumbs,{init:o,update:l})}function C$(t){let{swiper:e,extendParams:n,emit:a,once:r}=t;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function s(){if(e.params.cssMode)return;const l=e.getTranslate();e.setTranslate(l),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function i(){if(e.params.cssMode)return;const{touchEventsData:l,touches:c}=e;l.velocities.length===0&&l.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:l.touchStartTime}),l.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Nt()})}function o(l){let{currentPos:c}=l;if(e.params.cssMode)return;const{params:d,wrapperEl:u,rtlTranslate:p,snapGrid:f,touchEventsData:h}=e,b=Nt()-h.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length1){const M=h.velocities.pop(),x=h.velocities.pop(),F=M.position-x.position,S=M.time-x.time;e.velocity=F/S,e.velocity/=2,Math.abs(e.velocity)150||Nt()-M.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,h.velocities.length=0;let w=1e3*d.freeMode.momentumRatio;const g=e.velocity*w;let v=e.translate+g;p&&(v=-v);let y=!1,E;const k=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let $;if(ve.minTranslate())d.freeMode.momentumBounce?(v-e.minTranslate()>k&&(v=e.minTranslate()+k),E=e.minTranslate(),y=!0,h.allowMomentumBounce=!0):v=e.minTranslate(),d.loop&&d.centeredSlides&&($=!0);else if(d.freeMode.sticky){let M;for(let x=0;x-v){M=x;break}Math.abs(f[M]-v){e.loopFix()}),e.velocity!==0){if(p?w=Math.abs((-v-e.translate)/e.velocity):w=Math.abs((v-e.translate)/e.velocity),d.freeMode.sticky){const M=Math.abs((p?-v:v)-e.translate),x=e.slidesSizesGrid[e.activeIndex];M{!e||e.destroyed||!h.allowMomentumBounce||(a("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(E),Pa(u,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(a("_freeModeNoMomentumRelease"),e.updateProgress(v),e.setTransition(w),e.setTranslate(v),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Pa(u,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(v),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&a("_freeModeNoMomentumRelease");(!d.freeMode.momentum||b>=d.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:s,onTouchMove:i,onTouchEnd:o}})}function k$(t){let{swiper:e,extendParams:n,on:a}=t;n({grid:{rows:1,fill:"column"}});let r,s,i,o;const l=()=>{let h=e.params.spaceBetween;return typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*e.size:typeof h=="string"&&(h=parseFloat(h)),h},c=h=>{const{slidesPerView:m}=e.params,{rows:b,fill:w}=e.params.grid;i=Math.floor(h/b),Math.floor(h/b)===h/b?r=h:r=Math.ceil(h/b)*b,m!=="auto"&&w==="row"&&(r=Math.max(r,m*b)),s=r/b},d=(h,m,b,w)=>{const{slidesPerGroup:g}=e.params,v=l(),{rows:y,fill:E}=e.params.grid;let k,$,M;if(E==="row"&&g>1){const x=Math.floor(h/(g*y)),F=h-y*g*x,S=x===0?g:Math.min(Math.ceil((b-x*y*g)/y),g);M=Math.floor(F/S),$=F-M*S+x*g,k=$+M*r/y,m.style.order=k}else E==="column"?($=Math.floor(h/y),M=h-$*y,($>i||$===i&&M===y-1)&&(M+=1,M>=y&&(M=0,$+=1))):(M=Math.floor(h/s),$=h-M*s);m.row=M,m.column=$,m.style[w("margin-top")]=M!==0?v&&`${v}px`:""},u=(h,m,b)=>{const{centeredSlides:w,roundLengths:g}=e.params,v=l(),{rows:y}=e.params.grid;if(e.virtualSize=(h+v)*r,e.virtualSize=Math.ceil(e.virtualSize/y)-v,e.wrapperEl.style[b("width")]=`${e.virtualSize+v}px`,w){const E=[];for(let k=0;k{o=e.params.grid&&e.params.grid.rows>1},f=()=>{const{params:h,el:m}=e,b=h.grid&&h.grid.rows>1;o&&!b?(m.classList.remove(`${h.containerModifierClass}grid`,`${h.containerModifierClass}grid-column`),i=1,e.emitContainerClasses()):!o&&b&&(m.classList.add(`${h.containerModifierClass}grid`),h.grid.fill==="column"&&m.classList.add(`${h.containerModifierClass}grid-column`),e.emitContainerClasses()),o=b};a("init",p),a("update",f),e.grid={initSlides:c,updateSlide:d,updateWrapperSize:u}}function $$(t){const e=this,{params:n,slidesEl:a}=e;n.loop&&e.loopDestroy();const r=s=>{if(typeof s=="string"){const i=document.createElement("div");i.innerHTML=s,a.append(i.children[0]),i.innerHTML=""}else a.append(s)};if(typeof t=="object"&&"length"in t)for(let s=0;s{if(typeof o=="string"){const l=document.createElement("div");l.innerHTML=o,r.prepend(l.children[0]),l.innerHTML=""}else r.prepend(o)};if(typeof t=="object"&&"length"in t){for(let o=0;o=o){n.appendSlide(e);return}let l=i>t?i+1:i;const c=[];for(let d=o-1;d>=t;d-=1){const u=n.slides[d];u.remove(),c.unshift(u)}if(typeof e=="object"&&"length"in e){for(let d=0;dt?i+e.length:i}else s.append(e);for(let d=0;d{if(n.params.effect!==e)return;n.classNames.push(`${n.params.containerModifierClass}${e}`),o&&o()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const u=i?i():{};Object.assign(n.params,u),Object.assign(n.originalParams,u)}),a("setTranslate",()=>{n.params.effect===e&&r()}),a("setTransition",(u,p)=>{n.params.effect===e&&s(p)}),a("transitionEnd",()=>{if(n.params.effect===e&&l){if(!c||!c().slideShadows)return;n.slides.forEach(u=>{u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(p=>p.remove())}),l()}});let d;a("virtualUpdate",()=>{n.params.effect===e&&(n.slides.length||(d=!0),requestAnimationFrame(()=>{d&&n.slides&&n.slides.length&&(r(),d=!1)}))})}function ja(t,e){const n=_n(e);return n!==e&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function Lr(t){let{swiper:e,duration:n,transformElements:a,allSlides:r}=t;const{activeIndex:s}=e,i=o=>o.parentElement?o.parentElement:e.slides.filter(c=>c.shadowRoot&&c.shadowRoot===o.parentNode)[0];if(e.params.virtualTranslate&&n!==0){let o=!1,l;r?l=a:l=a.filter(c=>{const d=c.classList.contains("swiper-slide-transform")?i(c):c;return e.getSlideIndex(d)===s}),l.forEach(c=>{Pa(c,()=>{if(o||!e||e.destroyed)return;o=!0,e.animating=!1;const d=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(d)})})}}function B$(t){let{swiper:e,extendParams:n,on:a}=t;n({fadeEffect:{crossFade:!1}}),ca({effect:"fade",swiper:e,on:a,setTranslate:()=>{const{slides:i}=e,o=e.params.fadeEffect;for(let l=0;l{const o=e.slides.map(l=>_n(l));o.forEach(l=>{l.style.transitionDuration=`${i}ms`}),Lr({swiper:e,duration:i,transformElements:o,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function I$(t){let{swiper:e,extendParams:n,on:a}=t;n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const r=(l,c,d)=>{let u=d?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),p=d?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");u||(u=Yt("div",`swiper-slide-shadow-cube swiper-slide-shadow-${d?"left":"top"}`.split(" ")),l.append(u)),p||(p=Yt("div",`swiper-slide-shadow-cube swiper-slide-shadow-${d?"right":"bottom"}`.split(" ")),l.append(p)),u&&(u.style.opacity=Math.max(-c,0)),p&&(p.style.opacity=Math.max(c,0))};ca({effect:"cube",swiper:e,on:a,setTranslate:()=>{const{el:l,wrapperEl:c,slides:d,width:u,height:p,rtlTranslate:f,size:h,browser:m}=e,b=e.params.cubeEffect,w=e.isHorizontal(),g=e.virtual&&e.params.virtual.enabled;let v=0,y;b.shadow&&(w?(y=e.wrapperEl.querySelector(".swiper-cube-shadow"),y||(y=Yt("div","swiper-cube-shadow"),e.wrapperEl.append(y)),y.style.height=`${u}px`):(y=l.querySelector(".swiper-cube-shadow"),y||(y=Yt("div","swiper-cube-shadow"),l.append(y))));for(let k=0;k-1&&(v=M*90+S*90,f&&(v=-M*90-S*90)),$.style.transform=L,b.slideShadows&&r($,S,w)}if(c.style.transformOrigin=`50% 50% -${h/2}px`,c.style["-webkit-transform-origin"]=`50% 50% -${h/2}px`,b.shadow)if(w)y.style.transform=`translate3d(0px, ${u/2+b.shadowOffset}px, ${-u/2}px) rotateX(90deg) rotateZ(0deg) scale(${b.shadowScale})`;else{const k=Math.abs(v)-Math.floor(Math.abs(v)/90)*90,$=1.5-(Math.sin(k*2*Math.PI/360)/2+Math.cos(k*2*Math.PI/360)/2),M=b.shadowScale,x=b.shadowScale/$,F=b.shadowOffset;y.style.transform=`scale3d(${M}, 1, ${x}) translate3d(0px, ${p/2+F}px, ${-p/2/x}px) rotateX(-90deg)`}const E=(m.isSafari||m.isWebView)&&m.needPerspectiveFix?-h/2:0;c.style.transform=`translate3d(0px,0,${E}px) rotateX(${e.isHorizontal()?0:v}deg) rotateY(${e.isHorizontal()?-v:0}deg)`,c.style.setProperty("--swiper-cube-translate-z",`${E}px`)},setTransition:l=>{const{el:c,slides:d}=e;if(d.forEach(u=>{u.style.transitionDuration=`${l}ms`,u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(p=>{p.style.transitionDuration=`${l}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const u=c.querySelector(".swiper-cube-shadow");u&&(u.style.transitionDuration=`${l}ms`)}},recreateShadows:()=>{const l=e.isHorizontal();e.slides.forEach(c=>{const d=Math.max(Math.min(c.progress,1),-1);r(c,d,l)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function sa(t,e,n){const a=`swiper-slide-shadow${n?`-${n}`:""}${t?` swiper-slide-shadow-${t}`:""}`,r=_n(e);let s=r.querySelector(`.${a.split(" ").join(".")}`);return s||(s=Yt("div",a.split(" ")),r.append(s)),s}function O$(t){let{swiper:e,extendParams:n,on:a}=t;n({flipEffect:{slideShadows:!0,limitRotation:!0}});const r=(l,c)=>{let d=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),u=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");d||(d=sa("flip",l,e.isHorizontal()?"left":"top")),u||(u=sa("flip",l,e.isHorizontal()?"right":"bottom")),d&&(d.style.opacity=Math.max(-c,0)),u&&(u.style.opacity=Math.max(c,0))};ca({effect:"flip",swiper:e,on:a,setTranslate:()=>{const{slides:l,rtlTranslate:c}=e,d=e.params.flipEffect;for(let u=0;u{const c=e.slides.map(d=>_n(d));c.forEach(d=>{d.style.transitionDuration=`${l}ms`,d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${l}ms`})}),Lr({swiper:e,duration:l,transformElements:c})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(l=>{let c=l.progress;e.params.flipEffect.limitRotation&&(c=Math.max(Math.min(l.progress,1),-1)),r(l,c)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function A$(t){let{swiper:e,extendParams:n,on:a}=t;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),ca({effect:"coverflow",swiper:e,on:a,setTranslate:()=>{const{width:i,height:o,slides:l,slidesSizesGrid:c}=e,d=e.params.coverflowEffect,u=e.isHorizontal(),p=e.translate,f=u?-p+i/2:-p+o/2,h=u?d.rotate:-d.rotate,m=d.depth;for(let b=0,w=l.length;b0?k:0),H&&(H.style.opacity=-k>0?-k:0)}}},setTransition:i=>{e.slides.map(l=>_n(l)).forEach(l=>{l.style.transitionDuration=`${i}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(c=>{c.style.transitionDuration=`${i}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function D$(t){let{swiper:e,extendParams:n,on:a}=t;n({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const r=o=>typeof o=="string"?o:`${o}px`;ca({effect:"creative",swiper:e,on:a,setTranslate:()=>{const{slides:o,wrapperEl:l,slidesSizesGrid:c}=e,d=e.params.creativeEffect,{progressMultiplier:u}=d,p=e.params.centeredSlides;if(p){const f=c[0]/2-e.params.slidesOffsetBefore||0;l.style.transform=`translateX(calc(50% - ${f}px))`}for(let f=0;f0&&(k=d.prev,E=!0),v.forEach((B,P)=>{v[P]=`calc(${B}px + (${r(k.translate[P])} * ${Math.abs(b*u)}))`}),y.forEach((B,P)=>{y[P]=k.rotate[P]*Math.abs(b*u)}),h.style.zIndex=-Math.abs(Math.round(m))+o.length;const $=v.join(", "),M=`rotateX(${y[0]}deg) rotateY(${y[1]}deg) rotateZ(${y[2]}deg)`,x=w<0?`scale(${1+(1-k.scale)*w*u})`:`scale(${1-(1-k.scale)*w*u})`,F=w<0?1+(1-k.opacity)*w*u:1-(1-k.opacity)*w*u,S=`translate3d(${$}) ${M} ${x}`;if(E&&k.shadow||!E){let B=h.querySelector(".swiper-slide-shadow");if(!B&&k.shadow&&(B=sa("creative",h)),B){const P=d.shadowPerProgress?b*(1/d.limitProgress):b;B.style.opacity=Math.min(Math.max(Math.abs(P),0),1)}}const I=ja(d,h);I.style.transform=S,I.style.opacity=F,k.origin&&(I.style.transformOrigin=k.origin)}},setTransition:o=>{const l=e.slides.map(c=>_n(c));l.forEach(c=>{c.style.transitionDuration=`${o}ms`,c.querySelectorAll(".swiper-slide-shadow").forEach(d=>{d.style.transitionDuration=`${o}ms`})}),Lr({swiper:e,duration:o,transformElements:l,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function L$(t){let{swiper:e,extendParams:n,on:a}=t;n({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),ca({effect:"cards",swiper:e,on:a,setTranslate:()=>{const{slides:i,activeIndex:o,rtlTranslate:l}=e,c=e.params.cardsEffect,{startTranslate:d,isTouched:u}=e.touchEventsData,p=l?-e.translate:e.translate;for(let f=0;f0&&b<1&&(u||e.params.cssMode)&&p-1&&(u||e.params.cssMode)&&p>d;if(x||F){const P=(1-Math.abs((Math.abs(b)-.5)/.5))**.5;k+=-28*b*P,E+=-.5*P,$+=96*P,v=`${-25*P*Math.abs(b)}%`}if(b<0?g=`calc(${g}px ${l?"-":"+"} (${$*Math.abs(b)}%))`:b>0?g=`calc(${g}px ${l?"-":"+"} (-${$*Math.abs(b)}%))`:g=`${g}px`,!e.isHorizontal()){const P=v;v=g,g=P}const S=b<0?`${1+(1-E)*b}`:`${1-(1-E)*b}`,I=` + `}renderAttachments(){const e=this;let n;e.params.renderAttachments?n=e.params.renderAttachments.call(e,e.attachments):n=`${e.attachments.map(a=>e.renderAttachment(a)).join("")}`,e.$attachmentsEl.length===0?e.attachmentsCreate(n):e.$attachmentsEl.html(n)}sheetCreate(e){e===void 0&&(e="");const n=this,a=C(`
            ${e}
            `);return n.$el.append(a),W(n,{$sheetEl:a,sheetEl:a[0]}),n}sheetShow(e){e===void 0&&(e="");const n=this;return n.$sheetEl=n.$el.find(".messagebar-sheet"),n.$sheetEl.length===0&&n.sheetCreate(e),n.$el.addClass("messagebar-sheet-visible"),n.sheetVisible=!0,n.params.resizePage&&n.resizePage(),n}sheetHide(){const e=this;return e.$el.removeClass("messagebar-sheet-visible"),e.sheetVisible=!1,e.params.resizePage&&e.resizePage(),e}sheetToggle(){const e=this;return e.sheetVisible?e.sheetHide():e.sheetShow(),e}init(){const e=this;return e.attachEvents(),e.checkEmptyState(),e}destroy(){const e=this;e.emit("local::beforeDestroy messagebarBeforeDestroy",e),e.$el.trigger("messagebar:beforedestroy"),e.detachEvents(),e.$el[0]&&(e.$el[0].f7Messagebar=null,delete e.$el[0].f7Messagebar),Ze(e)}};const YC={name:"messagebar",static:{Messagebar:Oo},create(){const t=this;t.messagebar=et({defaultSelector:".messagebar",constructor:Oo,app:t,domProp:"f7Messagebar",addMethods:"clear getValue setValue setPlaceholder resizePage focus blur attachmentsCreate attachmentsShow attachmentsHide attachmentsToggle renderAttachments sheetCreate sheetShow sheetHide sheetToggle".split(" ")})},on:{tabBeforeRemove(t){const e=this;C(t).find(".messagebar-init").each(n=>{e.messagebar.destroy(n)})},tabMounted(t){const e=this;C(t).find(".messagebar-init").each(n=>{e.messagebar.create(W({el:n},C(n).dataset()))})},pageBeforeRemove(t){const e=this;t.$el.find(".messagebar-init").each(n=>{e.messagebar.destroy(n)})},pageInit(t){const e=this;t.$el.find(".messagebar-init").each(n=>{e.messagebar.create(W({el:n},C(n).dataset()))})}},vnode:{"messagebar-init":{insert(t){const e=this,n=t.elm;e.messagebar.create(W({el:n},C(n).dataset()))},destroy(t){const e=this,n=t.elm;e.messagebar.destroy(n)}}}};function Ao(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function mi(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:Ao(e[n])&&Ao(t[n])&&Object.keys(e[n]).length>0&&mi(t[n],e[n])})}const Hc={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function vt(){const t=typeof document<"u"?document:{};return mi(t,Hc),t}const XC={document:Hc,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Ge(){const t=typeof window<"u"?window:{};return mi(t,XC),t}function UC(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function Nn(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Nt(){return Date.now()}function GC(t){const e=Ge();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function Bs(t,e){e===void 0&&(e="x");const n=Ge();let a,r,s;const i=GC(t);return n.WebKitCSSMatrix?(r=i.transform||i.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(r==="none"?"":r)):(s=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=s.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?r=s.m41:a.length===16?r=parseFloat(a[12]):r=parseFloat(a[4])),e==="y"&&(n.WebKitCSSMatrix?r=s.m42:a.length===16?r=parseFloat(a[13]):r=parseFloat(a[5])),r||0}function wa(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function KC(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Lt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let n=1;ne.indexOf(s)<0);for(let s=0,i=r.length;ss?"next":"prev",d=(p,f)=>c==="next"&&p>=f||c==="prev"&&p<=f,u=()=>{o=new Date().getTime(),i===null&&(i=o);const p=Math.max(Math.min((o-i)/l,1),0),f=.5-Math.cos(p*Math.PI)/2;let h=s+f*(n-s);if(d(h,n)&&(h=n),e.wrapperEl.scrollTo({[a]:h}),d(h,n)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[a]:h})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function _n(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function pt(t,e){return e===void 0&&(e=""),[...t.children].filter(n=>n.matches(e))}function Yt(t,e){e===void 0&&(e=[]);const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:[e]),n}function vr(t){const e=Ge(),n=vt(),a=t.getBoundingClientRect(),r=n.body,s=t.clientTop||r.clientTop||0,i=t.clientLeft||r.clientLeft||0,o=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:a.top+o-s,left:a.left+l-i}}function QC(t,e){const n=[];for(;t.previousElementSibling;){const a=t.previousElementSibling;e?a.matches(e)&&n.push(a):n.push(a),t=a}return n}function JC(t,e){const n=[];for(;t.nextElementSibling;){const a=t.nextElementSibling;e?a.matches(e)&&n.push(a):n.push(a),t=a}return n}function En(t,e){return Ge().getComputedStyle(t,null).getPropertyValue(e)}function Ha(t){let e=t,n;if(e){for(n=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(n+=1);return n}}function zn(t,e){const n=[];let a=t.parentElement;for(;a;)e?a.matches(e)&&n.push(a):n.push(a),a=a.parentElement;return n}function Pa(t,e){function n(a){a.target===t&&(e.call(t,a),t.removeEventListener("transitionend",n))}e&&t.addEventListener("transitionend",n)}function Is(t,e,n){const a=Ge();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(a.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(a.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}let ns;function ZC(){const t=Ge(),e=vt();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function zc(){return ns||(ns=ZC()),ns}let as;function ek(t){let{userAgent:e}=t===void 0?{}:t;const n=zc(),a=Ge(),r=a.navigator.platform,s=e||a.navigator.userAgent,i={ios:!1,android:!1},o=a.screen.width,l=a.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const u=s.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r==="Win32";let h=r==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&h&&n.touch&&m.indexOf(`${o}x${l}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),h=!1),c&&!f&&(i.os="android",i.android=!0),(d||p||u)&&(i.os="ios",i.ios=!0),i}function tk(t){return t===void 0&&(t={}),as||(as=ek(t)),as}let rs;function nk(){const t=Ge();let e=!1;function n(){const a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(n()){const a=String(t.navigator.userAgent);if(a.includes("Version/")){const[r,s]=a.split("Version/")[1].split(" ")[0].split(".").map(i=>Number(i));e=r<16||r===16&&s<2}}return{isSafari:e||n(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function ak(){return rs||(rs=nk()),rs}function rk(t){let{swiper:e,on:n,emit:a}=t;const r=Ge();let s=null,i=null;const o=()=>{!e||e.destroyed||!e.initialized||(a("beforeResize"),a("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(u=>{i=r.requestAnimationFrame(()=>{const{width:p,height:f}=e;let h=p,m=f;u.forEach(b=>{let{contentBoxSize:w,contentRect:g,target:v}=b;v&&v!==e.el||(h=g?g.width:(w[0]||w).inlineSize,m=g?g.height:(w[0]||w).blockSize)}),(h!==p||m!==f)&&o()})}),s.observe(e.el))},c=()=>{i&&r.cancelAnimationFrame(i),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},d=()=>{!e||e.destroyed||!e.initialized||a("orientationchange")};n("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){l();return}r.addEventListener("resize",o),r.addEventListener("orientationchange",d)}),n("destroy",()=>{c(),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",d)})}function sk(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;const s=[],i=Ge(),o=function(d,u){u===void 0&&(u={});const p=i.MutationObserver||i.WebkitMutationObserver,f=new p(h=>{if(e.__preventObserver__)return;if(h.length===1){r("observerUpdate",h[0]);return}const m=function(){r("observerUpdate",h[0])};i.requestAnimationFrame?i.requestAnimationFrame(m):i.setTimeout(m,0)});f.observe(d,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:typeof u.childList>"u"?!0:u.childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),s.push(f)},l=()=>{if(e.params.observer){if(e.params.observeParents){const d=zn(e.hostEl);for(let u=0;u{s.forEach(d=>{d.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",l),a("destroy",c)}var ik={on(t,e,n){const a=this;if(!a.eventsListeners||a.destroyed||typeof e!="function")return a;const r=n?"unshift":"push";return t.split(" ").forEach(s=>{a.eventsListeners[s]||(a.eventsListeners[s]=[]),a.eventsListeners[s][r](e)}),a},once(t,e,n){const a=this;if(!a.eventsListeners||a.destroyed||typeof e!="function")return a;function r(){a.off(t,r),r.__emitterProxy&&delete r.__emitterProxy;for(var s=arguments.length,i=new Array(s),o=0;o=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(a=>{typeof e>"u"?n.eventsListeners[a]=[]:n.eventsListeners[a]&&n.eventsListeners[a].forEach((r,s)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&n.eventsListeners[a].splice(s,1)})}),n},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,n,a;for(var r=arguments.length,s=new Array(r),i=0;i{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(a,[l,...n])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(a,n)})}),t}};function ok(){const t=this;let e,n;const a=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=a.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=a.clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(En(a,"padding-left")||0,10)-parseInt(En(a,"padding-right")||0,10),n=n-parseInt(En(a,"padding-top")||0,10)-parseInt(En(a,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function lk(){const t=this;function e(S){return t.isHorizontal()?S:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[S]}function n(S,I){return parseFloat(S.getPropertyValue(e(I))||0)}const a=t.params,{wrapperEl:r,slidesEl:s,size:i,rtlTranslate:o,wrongRTL:l}=t,c=t.virtual&&a.virtual.enabled,d=c?t.virtual.slides.length:t.slides.length,u=pt(s,`.${t.params.slideClass}, swiper-slide`),p=c?t.virtual.slides.length:u.length;let f=[];const h=[],m=[];let b=a.slidesOffsetBefore;typeof b=="function"&&(b=a.slidesOffsetBefore.call(t));let w=a.slidesOffsetAfter;typeof w=="function"&&(w=a.slidesOffsetAfter.call(t));const g=t.snapGrid.length,v=t.slidesGrid.length;let y=a.spaceBetween,E=-b,k=0,$=0;if(typeof i>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*i:typeof y=="string"&&(y=parseFloat(y)),t.virtualSize=-y,u.forEach(S=>{o?S.style.marginLeft="":S.style.marginRight="",S.style.marginBottom="",S.style.marginTop=""}),a.centeredSlides&&a.cssMode&&(ya(r,"--swiper-centered-offset-before",""),ya(r,"--swiper-centered-offset-after",""));const M=a.grid&&a.grid.rows>1&&t.grid;M&&t.grid.initSlides(p);let x;const F=a.slidesPerView==="auto"&&a.breakpoints&&Object.keys(a.breakpoints).filter(S=>typeof a.breakpoints[S].slidesPerView<"u").length>0;for(let S=0;S1&&f.push(t.virtualSize-i)}if(c&&a.loop){const S=m[0]+y;if(a.slidesPerGroup>1){const I=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/a.slidesPerGroup),B=S*a.slidesPerGroup;for(let P=0;P!a.cssMode||a.loop?!0:B!==u.length-1).forEach(I=>{I.style[S]=`${y}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let S=0;m.forEach(B=>{S+=B+(y||0)}),S-=y;const I=S-i;f=f.map(B=>B<=0?-b:B>I?I+w:B)}if(a.centerInsufficientSlides){let S=0;if(m.forEach(I=>{S+=I+(y||0)}),S-=y,S{f[P]=B-I}),h.forEach((B,P)=>{h[P]=B+I})}}if(Object.assign(t,{slides:u,snapGrid:f,slidesGrid:h,slidesSizesGrid:m}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){ya(r,"--swiper-centered-offset-before",`${-f[0]}px`),ya(r,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const S=-t.snapGrid[0],I=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(B=>B+S),t.slidesGrid=t.slidesGrid.map(B=>B+I)}if(p!==d&&t.emit("slidesLengthChange"),f.length!==g&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),h.length!==v&&t.emit("slidesGridLengthChange"),a.watchSlidesProgress&&t.updateSlidesOffset(),!c&&!a.cssMode&&(a.effect==="slide"||a.effect==="fade")){const S=`${a.containerModifierClass}backface-hidden`,I=t.el.classList.contains(S);p<=a.maxBackfaceHiddenSlides?I||t.el.classList.add(S):I&&t.el.classList.remove(S)}}function ck(t){const e=this,n=[],a=e.virtual&&e.params.virtual.enabled;let r=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const i=o=>a?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{n.push(o)});else for(s=0;se.slides.length&&!a)break;n.push(i(o))}else n.push(i(e.activeIndex));for(s=0;sr?o:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function dk(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let a=0;a"u"&&e.updateSlidesOffset();let i=-t;r&&(i=t),a.forEach(l=>{l.classList.remove(n.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=n.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l=0&&f1&&h<=e.size||f<=0&&h>=e.size)&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l),a[l].classList.add(n.slideVisibleClass)),c.progress=r?-u:u,c.originalProgress=r?-p:p}}function pk(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const n=e.params,a=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:s,isEnd:i,progressLoop:o}=e;const l=s,c=i;if(a===0)r=0,s=!0,i=!0;else{r=(t-e.minTranslate())/a;const d=Math.abs(t-e.minTranslate())<1,u=Math.abs(t-e.maxTranslate())<1;s=d||r<=0,i=u||r>=1,d&&(r=0),u&&(r=1)}if(n.loop){const d=e.getSlideIndexByData(0),u=e.getSlideIndexByData(e.slides.length-1),p=e.slidesGrid[d],f=e.slidesGrid[u],h=e.slidesGrid[e.slidesGrid.length-1],m=Math.abs(t);m>=p?o=(m-p)/h:o=(m+h-f)/h,o>1&&(o-=1)}Object.assign(e,{progress:r,progressLoop:o,isBeginning:s,isEnd:i}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),s&&!l&&e.emit("reachBeginning toEdge"),i&&!c&&e.emit("reachEnd toEdge"),(l&&!s||c&&!i)&&e.emit("fromEdge"),e.emit("progress",r)}function fk(){const t=this,{slides:e,params:n,slidesEl:a,activeIndex:r}=t,s=t.virtual&&n.virtual.enabled,i=l=>pt(a,`.${n.slideClass}${l}, swiper-slide${l}`)[0];e.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let o;if(s)if(n.loop){let l=r-t.virtual.slidesBefore;l<0&&(l=t.virtual.slides.length+l),l>=t.virtual.slides.length&&(l-=t.virtual.slides.length),o=i(`[data-swiper-slide-index="${l}"]`)}else o=i(`[data-swiper-slide-index="${r}"]`);else o=e[r];if(o){o.classList.add(n.slideActiveClass);let l=JC(o,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=e[0]),l&&l.classList.add(n.slideNextClass);let c=QC(o,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c===0&&(c=e[e.length-1]),c&&c.classList.add(n.slidePrevClass)}t.emitSlidesClasses()}const or=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,a=e.closest(n());if(a){let r=a.querySelector(`.${t.params.lazyPreloaderClass}`);!r&&t.isElement&&(a.shadowRoot?r=a.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{a.shadowRoot&&(r=a.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},ss=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Os=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const a=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),r=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const i=r,o=[i-e];o.push(...Array.from({length:e}).map((l,c)=>i+a+c)),t.slides.forEach((l,c)=>{o.includes(l.column)&&ss(t,c)});return}const s=r+a-1;if(t.params.rewind||t.params.loop)for(let i=r-e;i<=s+e;i+=1){const o=(i%n+n)%n;(os)&&ss(t,o)}else for(let i=Math.max(r-e,0);i<=Math.min(s+e,n-1);i+=1)i!==r&&(i>s||i=e[s]&&a=e[s]&&a=e[s]&&(r=s);return n.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function mk(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:a,params:r,activeIndex:s,realIndex:i,snapIndex:o}=e;let l=t,c;const d=p=>{let f=p-e.virtual.slidesBefore;return f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),f};if(typeof l>"u"&&(l=hk(e)),a.indexOf(n)>=0)c=a.indexOf(n);else{const p=Math.min(r.slidesPerGroupSkip,l);c=p+Math.floor((l-p)/r.slidesPerGroup)}if(c>=a.length&&(c=a.length-1),l===s){c!==o&&(e.snapIndex=c,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=d(l));return}let u;e.virtual&&r.virtual.enabled&&r.loop?u=d(l):e.slides[l]?u=parseInt(e.slides[l].getAttribute("data-swiper-slide-index")||l,10):u=l,Object.assign(e,{previousSnapIndex:o,snapIndex:c,previousRealIndex:i,realIndex:u,previousIndex:s,activeIndex:l}),e.initialized&&Os(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(i!==u&&e.emit("realIndexChange"),e.emit("slideChange"))}function gk(t,e){const n=this,a=n.params;let r=t.closest(`.${a.slideClass}, swiper-slide`);!r&&n.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!r&&o.matches&&o.matches(`.${a.slideClass}, swiper-slide`)&&(r=o)});let s=!1,i;if(r){for(let o=0;ol?d=l:a&&ti?o="next":s=l.length&&(b=l.length-1);const w=-l[b];if(o.normalizeSlideIndex)for(let v=0;v=E&&y=E&&y=E&&(i=v)}if(s.initialized&&i!==u&&(!s.allowSlideNext&&(p?w>s.translate&&w>s.minTranslate():ws.translate&&w>s.maxTranslate()&&(u||0)!==i))return!1;i!==(d||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(w);let g;if(i>u?g="next":i0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[v?"scrollLeft":"scrollTop"]=y})):f[v?"scrollLeft":"scrollTop"]=y,E&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return Fc({swiper:s,targetPosition:y,side:v?"left":"top"}),!0;f.scrollTo({[v?"left":"top"]:y,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(w),s.updateActiveIndex(i),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,a),s.transitionStart(n,g),e===0?s.transitionEnd(n,g):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(y){!s||s.destroyed||y.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,g))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function Mk(t,e,n,a){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const r=this;let s=t;return r.params.loop&&(r.virtual&&r.params.virtual.enabled?s=s+r.virtual.slidesBefore:s=r.getSlideIndexByData(s)),r.slideTo(s,e,n,a)}function Bk(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const a=this,{enabled:r,params:s,animating:i}=a;if(!r)return a;let o=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(o=Math.max(a.slidesPerViewDynamic("current",!0),1));const l=a.activeIndex{a.slideTo(a.activeIndex+l,t,e,n)}),!0}return s.rewind&&a.isEnd?a.slideTo(0,t,e,n):a.slideTo(a.activeIndex+l,t,e,n)}function Ik(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const a=this,{params:r,snapGrid:s,slidesGrid:i,rtlTranslate:o,enabled:l,animating:c}=a;if(!l)return a;const d=a.virtual&&r.virtual.enabled;if(r.loop){if(c&&!d&&r.loopPreventsSliding)return!1;a.loopFix({direction:"prev"}),a._clientLeft=a.wrapperEl.clientLeft}const u=o?a.translate:-a.translate;function p(w){return w<0?-Math.floor(Math.abs(w)):Math.floor(w)}const f=p(u),h=s.map(w=>p(w));let m=s[h.indexOf(f)-1];if(typeof m>"u"&&r.cssMode){let w;s.forEach((g,v)=>{f>=g&&(w=v)}),typeof w<"u"&&(m=s[w>0?w-1:w])}let b=0;if(typeof m<"u"&&(b=i.indexOf(m),b<0&&(b=a.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(b=b-a.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),r.rewind&&a.isBeginning){const w=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(w,t,e,n)}else if(r.loop&&a.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{a.slideTo(b,t,e,n)}),!0;return a.slideTo(b,t,e,n)}function Ok(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const a=this;return a.slideTo(a.activeIndex,t,e,n)}function Ak(t,e,n,a){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),a===void 0&&(a=.5);const r=this;let s=r.activeIndex;const i=Math.min(r.params.slidesPerGroupSkip,s),o=i+Math.floor((s-i)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const c=r.snapGrid[o],d=r.snapGrid[o+1];l-c>(d-c)*a&&(s+=r.params.slidesPerGroup)}else{const c=r.snapGrid[o-1],d=r.snapGrid[o];l-c<=(d-c)*a&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,t,e,n)}function Dk(){const t=this,{params:e,slidesEl:n}=t,a=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let r=t.clickedIndex,s;const i=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?rt.slides.length-t.loopedSlides+a/2?(t.loopFix(),r=t.getSlideIndex(pt(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),Nn(()=>{t.slideTo(r)})):t.slideTo(r):r>t.slides.length-a?(t.loopFix(),r=t.getSlideIndex(pt(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),Nn(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}var Lk={slideTo:Pk,slideToLoop:Mk,slideNext:Bk,slidePrev:Ik,slideReset:Ok,slideToClosest:Ak,slideToClickedSlide:Dk};function Rk(t){const e=this,{params:n,slidesEl:a}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;pt(a,`.${n.slideClass}, swiper-slide`).forEach((s,i)=>{s.setAttribute("data-swiper-slide-index",i)}),e.loopFix({slideRealIndex:t,direction:n.centeredSlides?void 0:"next"})}function Hk(t){let{slideRealIndex:e,slideTo:n=!0,direction:a,setTranslate:r,activeSlideIndex:s,byController:i,byMousewheel:o}=t===void 0?{}:t;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:u,slidesEl:p,params:f}=l;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&f.virtual.enabled){n&&(!f.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):f.centeredSlides&&l.snapIndex"u"?s=l.getSlideIndex(l.slides.filter($=>$.classList.contains(f.slideActiveClass))[0]):g=s;const v=a==="next"||!a,y=a==="prev"||!a;let E=0,k=0;if(sl.slides.length-m*2){k=Math.max(s-(l.slides.length-m*2),f.slidesPerGroup);for(let $=0;${l.slides[$].swiperLoopMoveDOM=!0,p.prepend(l.slides[$]),l.slides[$].swiperLoopMoveDOM=!1}),v&&w.forEach($=>{l.slides[$].swiperLoopMoveDOM=!0,p.append(l.slides[$]),l.slides[$].swiperLoopMoveDOM=!1}),l.recalcSlides(),f.slidesPerView==="auto"&&l.updateSlides(),f.watchSlidesProgress&&l.updateSlidesOffset(),n){if(b.length>0&&y)if(typeof e>"u"){const $=l.slidesGrid[g],x=l.slidesGrid[g+E]-$;o?l.setTranslate(l.translate-x):(l.slideTo(g+E,0,!1,!0),r&&(l.touches[l.isHorizontal()?"startX":"startY"]+=x,l.touchEventsData.currentTranslate=l.translate))}else r&&(l.slideToLoop(e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate);else if(w.length>0&&v)if(typeof e>"u"){const $=l.slidesGrid[g],x=l.slidesGrid[g-k]-$;o?l.setTranslate(l.translate-x):(l.slideTo(g-k,0,!1,!0),r&&(l.touches[l.isHorizontal()?"startX":"startY"]+=x,l.touchEventsData.currentTranslate=l.translate))}else l.slideToLoop(e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!i){const $={slideRealIndex:e,direction:a,setTranslate:r,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(M=>{!M.destroyed&&M.params.loop&&M.loopFix({...$,slideTo:M.params.slidesPerView===f.slidesPerView?n:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...$,slideTo:l.controller.control.params.slidesPerView===f.slidesPerView?n:!1})}l.emit("loopFix")}function Fk(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const a=[];t.slides.forEach(r=>{const s=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;a[s]=r}),t.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),a.forEach(r=>{n.append(r)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var zk={loopCreate:Rk,loopFix:Hk,loopDestroy:Fk};function Nk(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Vk(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var _k={setGrabCursor:Nk,unsetGrabCursor:Vk};function jk(t,e){e===void 0&&(e=this);function n(a){if(!a||a===vt()||a===Ge())return null;a.assignedSlot&&(a=a.assignedSlot);const r=a.closest(t);return!r&&!a.getRootNode?null:r||n(a.getRootNode().host)}return n(e)}function qk(t){const e=this,n=vt(),a=Ge(),r=e.touchEventsData;r.evCache.push(t);const{params:s,touches:i,enabled:o}=e;if(!o||!s.simulateTouch&&t.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=t;l.originalEvent&&(l=l.originalEvent);let c=l.target;if(s.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(c)||"which"in l&&l.which===3||"button"in l&&l.button>0||r.isTouched&&r.isMoved)return;const d=!!s.noSwipingClass&&s.noSwipingClass!=="",u=t.composedPath?t.composedPath():t.path;d&&l.target&&l.target.shadowRoot&&u&&(c=u[0]);const p=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,f=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(f?jk(p,c):c.closest(p))){e.allowClick=!0;return}if(s.swipeHandler&&!c.closest(s.swipeHandler))return;i.currentX=l.pageX,i.currentY=l.pageY;const h=i.currentX,m=i.currentY,b=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,w=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(b&&(h<=w||h>=a.innerWidth-w))if(b==="prevent")t.preventDefault();else return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=h,i.startY=m,r.touchStartTime=Nt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1);let g=!0;c.matches(r.focusableElements)&&(g=!1,c.nodeName==="SELECT"&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const v=g&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||v)&&!c.isContentEditable&&l.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function Wk(t){const e=vt(),n=this,a=n.touchEventsData,{params:r,touches:s,rtlTranslate:i,enabled:o}=n;if(!o||!r.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),!a.isTouched){a.startMoving&&a.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=a.evCache.findIndex($=>$.pointerId===l.pointerId);c>=0&&(a.evCache[c]=l);const d=a.evCache.length>1?a.evCache[0]:l,u=d.pageX,p=d.pageY;if(l.preventedByNestedSwiper){s.startX=u,s.startY=p;return}if(!n.allowTouchMove){l.target.matches(a.focusableElements)||(n.allowClick=!1),a.isTouched&&(Object.assign(s,{startX:u,startY:p,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:u,currentY:p}),a.touchStartTime=Nt());return}if(r.touchReleaseOnEdges&&!r.loop){if(n.isVertical()){if(ps.startY&&n.translate>=n.minTranslate()){a.isTouched=!1,a.isMoved=!1;return}}else if(us.startX&&n.translate>=n.minTranslate())return}if(e.activeElement&&l.target===e.activeElement&&l.target.matches(a.focusableElements)){a.isMoved=!0,n.allowClick=!1;return}if(a.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;s.currentX=u,s.currentY=p;const f=s.currentX-s.startX,h=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(f**2+h**2)"u"){let $;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?a.isScrolling=!1:f*f+h*h>=25&&($=Math.atan2(Math.abs(h),Math.abs(f))*180/Math.PI,a.isScrolling=n.isHorizontal()?$>r.touchAngle:90-$>r.touchAngle)}if(a.isScrolling&&n.emit("touchMoveOpposite",l),typeof a.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(a.startMoving=!0),a.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&a.evCache.length>1){a.isTouched=!1;return}if(!a.startMoving)return;n.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let m=n.isHorizontal()?f:h,b=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;r.oneWayMovement&&(m=Math.abs(m)*(i?1:-1),b=Math.abs(b)*(i?1:-1)),s.diff=m,m*=r.touchRatio,i&&(m=-m,b=-b);const w=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=b>0?"prev":"next";const g=n.params.loop&&!r.cssMode,v=n.swipeDirection==="next"&&n.allowSlideNext||n.swipeDirection==="prev"&&n.allowSlidePrev;if(!a.isMoved){if(g&&v&&n.loopFix({direction:n.swipeDirection}),a.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const $=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent($)}a.allowMomentumBounce=!1,r.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let y;a.isMoved&&w!==n.touchesDirection&&g&&v&&Math.abs(m)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),y=!0),n.emit("sliderMove",l),a.isMoved=!0,a.currentTranslate=m+a.startTranslate;let E=!0,k=r.resistanceRatio;if(r.touchReleaseOnEdges&&(k=0),m>0?(g&&v&&!y&&a.currentTranslate>(r.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),a.currentTranslate>n.minTranslate()&&(E=!1,r.resistance&&(a.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+a.startTranslate+m)**k))):m<0&&(g&&v&&!y&&a.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(r.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),a.currentTranslatea.startTranslate&&(a.currentTranslate=a.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(a.currentTranslate=a.startTranslate),r.threshold>0)if(Math.abs(m)>r.threshold||a.allowThresholdMove){if(!a.allowThresholdMove){a.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,a.currentTranslate=a.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{a.currentTranslate=a.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(a.currentTranslate),n.setTranslate(a.currentTranslate))}function Yk(t){const e=this,n=e.touchEventsData,a=n.evCache.findIndex(v=>v.pointerId===t.pointerId);if(a>=0&&n.evCache.splice(a,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(t.type)&&!(["pointercancel","contextmenu"].includes(t.type)&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:r,touches:s,rtlTranslate:i,slidesGrid:o,enabled:l}=e;if(!l||!r.simulateTouch&&t.pointerType==="mouse")return;let c=t;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&r.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}r.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const d=Nt(),u=d-n.touchStartTime;if(e.allowClick){const v=c.path||c.composedPath&&c.composedPath();e.updateClickedSlide(v&&v[0]||c.target,v),e.emit("tap click",c),u<300&&d-n.lastClickTime<300&&e.emit("doubleTap doubleClick",c)}if(n.lastClickTime=Nt(),Nn(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||s.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(r.followFinger?p=i?e.translate:-e.translate:p=-n.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}let f=0,h=e.slidesSizesGrid[0];for(let v=0;v=o[v]&&p=o[v]&&(f=v,h=o[o.length-1]-o[o.length-2])}let m=null,b=null;r.rewind&&(e.isBeginning?b=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(m=0));const w=(p-o[f])/h,g=fr.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(w>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?m:f+g):e.slideTo(f)),e.swipeDirection==="prev"&&(w>1-r.longSwipesRatio?e.slideTo(f+g):b!==null&&w<0&&Math.abs(w)>r.longSwipesRatio?e.slideTo(b):e.slideTo(f))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(c.target===e.navigation.nextEl||c.target===e.navigation.prevEl)?c.target===e.navigation.nextEl?e.slideTo(f+g):e.slideTo(f):(e.swipeDirection==="next"&&e.slideTo(m!==null?m:f+g),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:f))}}function Do(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:r,snapGrid:s}=t,i=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=i&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!i?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=r,t.allowSlideNext=a,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function Xk(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Uk(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:a}=t;if(!a)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let r;const s=t.maxTranslate()-t.minTranslate();s===0?r=0:r=(t.translate-t.minTranslate())/s,r!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Gk(t){const e=this;or(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let Lo=!1;function Kk(){}const Vc=(t,e)=>{const n=vt(),{params:a,el:r,wrapperEl:s,device:i}=t,o=!!a.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;r[l]("pointerdown",t.onTouchStart,{passive:!1}),n[l]("pointermove",t.onTouchMove,{passive:!1,capture:o}),n[l]("pointerup",t.onTouchEnd,{passive:!0}),n[l]("pointercancel",t.onTouchEnd,{passive:!0}),n[l]("pointerout",t.onTouchEnd,{passive:!0}),n[l]("pointerleave",t.onTouchEnd,{passive:!0}),n[l]("contextmenu",t.onTouchEnd,{passive:!0}),(a.preventClicks||a.preventClicksPropagation)&&r[l]("click",t.onClick,!0),a.cssMode&&s[l]("scroll",t.onScroll),a.updateOnWindowResize?t[c](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",Do,!0):t[c]("observerUpdate",Do,!0),r[l]("load",t.onLoad,{capture:!0})};function Qk(){const t=this,e=vt(),{params:n}=t;t.onTouchStart=qk.bind(t),t.onTouchMove=Wk.bind(t),t.onTouchEnd=Yk.bind(t),n.cssMode&&(t.onScroll=Uk.bind(t)),t.onClick=Xk.bind(t),t.onLoad=Gk.bind(t),Lo||(e.addEventListener("touchstart",Kk),Lo=!0),Vc(t,"on")}function Jk(){Vc(this,"off")}var Zk={attachEvents:Qk,detachEvents:Jk};const Ro=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function e$(){const t=this,{realIndex:e,initialized:n,params:a,el:r}=t,s=a.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const i=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!i||t.currentBreakpoint===i)return;const l=(i in s?s[i]:void 0)||t.originalParams,c=Ro(t,a),d=Ro(t,l),u=a.enabled;c&&!d?(r.classList.remove(`${a.containerModifierClass}grid`,`${a.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(r.classList.add(`${a.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&a.grid.fill==="column")&&r.classList.add(`${a.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(w=>{if(typeof l[w]>"u")return;const g=a[w]&&a[w].enabled,v=l[w]&&l[w].enabled;g&&!v&&t[w].disable(),!g&&v&&t[w].enable()});const p=l.direction&&l.direction!==a.direction,f=a.loop&&(l.slidesPerView!==a.slidesPerView||p),h=a.loop;p&&n&&t.changeDirection(),Lt(t.params,l);const m=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),u&&!m?t.disable():!u&&m&&t.enable(),t.currentBreakpoint=i,t.emit("_beforeBreakpoint",l),n&&(f?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!h&&b?(t.loopCreate(e),t.updateSlides()):h&&!b&&t.loopDestroy()),t.emit("breakpoint",l)}function t$(t,e,n){if(e===void 0&&(e="window"),!t||e==="container"&&!n)return;let a=!1;const r=Ge(),s=e==="window"?r.innerHeight:n.clientHeight,i=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:s*l,point:o}}return{value:o,point:o}});i.sort((o,l)=>parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o{typeof a=="object"?Object.keys(a).forEach(r=>{a[r]&&n.push(e+r)}):typeof a=="string"&&n.push(e+a)}),n}function r$(){const t=this,{classNames:e,params:n,rtl:a,el:r,device:s}=t,i=a$(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:a},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...i),r.classList.add(...e),t.emitContainerClasses()}function s$(){const t=this,{el:e,classNames:n}=t;e.classList.remove(...n),t.emitContainerClasses()}var i$={addClasses:r$,removeClasses:s$};function o$(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:a}=n;if(a){const r=t.slides.length-1,s=t.slidesGrid[r]+t.slidesSizesGrid[r]+a*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;n.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),n.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var l$={checkOverflow:o$},As={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function c$(t,e){return function(a){a===void 0&&(a={});const r=Object.keys(a)[0],s=a[r];if(typeof s!="object"||s===null){Lt(e,a);return}if(t[r]===!0&&(t[r]={enabled:!0}),r==="navigation"&&t[r]&&t[r].enabled&&!t[r].prevEl&&!t[r].nextEl&&(t[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&t[r]&&t[r].enabled&&!t[r].el&&(t[r].auto=!0),!(r in t&&"enabled"in s)){Lt(e,a);return}typeof t[r]=="object"&&!("enabled"in t[r])&&(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),Lt(e,a)}}const is={eventsEmitter:ik,update:bk,translate:kk,transition:Tk,slide:Lk,loop:zk,grabCursor:_k,events:Zk,breakpoints:n$,checkOverflow:l$,classes:i$},os={};let ra=class an{constructor(){let e,n;for(var a=arguments.length,r=new Array(a),s=0;s1){const d=[];return i.querySelectorAll(n.el).forEach(u=>{const p=Lt({},n,{el:u});d.push(new an(p))}),d}const o=this;o.__swiper__=!0,o.support=zc(),o.device=tk({userAgent:n.userAgent}),o.browser=ak(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],n.modules&&Array.isArray(n.modules)&&o.modules.push(...n.modules);const l={};o.modules.forEach(d=>{d({params:n,swiper:o,extendParams:c$(n,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const c=Lt({},As,l);return o.params=Lt({},c,os,n),o.originalParams=Lt({},o.params),o.passedParams=Lt({},n),o.params&&o.params.on&&Object.keys(o.params.on).forEach(d=>{o.on(d,o.params.on[d])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getSlideIndex(e){const{slidesEl:n,params:a}=this,r=pt(n,`.${a.slideClass}, swiper-slide`),s=Ha(r[0]);return Ha(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:n,params:a}=e;e.slides=pt(n,`.${a.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,n){const a=this;e=Math.min(Math.max(e,0),1);const r=a.minTranslate(),i=(a.maxTranslate()-r)*e+r;a.translateTo(i,typeof n>"u"?0:n),a.updateActiveIndex(),a.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(a=>a.indexOf("swiper")===0||a.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return n.destroyed?"":e.className.split(" ").filter(a=>a.indexOf("swiper-slide")===0||a.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.forEach(a=>{const r=e.getSlideClasses(a);n.push({slideEl:a,classNames:r}),e.emit("_slideClass",a,r)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e,n){e===void 0&&(e="current"),n===void 0&&(n=!1);const a=this,{params:r,slides:s,slidesGrid:i,slidesSizesGrid:o,size:l,activeIndex:c}=a;let d=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let u=s[c]?s[c].swiperSlideSize:0,p;for(let f=c+1;fl&&(p=!0));for(let f=c-1;f>=0;f-=1)s[f]&&!p&&(u+=s[f].swiperSlideSize,d+=1,u>l&&(p=!0))}else if(e==="current")for(let u=c+1;u=0;u-=1)i[c]-i[u]{i.complete&&or(e,i)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const i=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(i,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(a.freeMode&&a.freeMode.enabled&&!a.cssMode)r(),a.autoHeight&&e.updateAutoHeight();else{if((a.slidesPerView==="auto"||a.slidesPerView>1)&&e.isEnd&&!a.centeredSlides){const i=e.virtual&&a.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(i.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||r()}a.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n){n===void 0&&(n=!0);const a=this,r=a.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(a.el.classList.remove(`${a.params.containerModifierClass}${r}`),a.el.classList.add(`${a.params.containerModifierClass}${e}`),a.emitContainerClasses(),a.params.direction=e,a.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),a.emit("changeDirection"),n&&a.update()),a}changeLanguageDirection(e){const n=this;n.rtl&&e==="rtl"||!n.rtl&&e==="ltr"||(n.rtl=e==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(e){const n=this;if(n.mounted)return!0;let a=e||n.params.el;if(typeof a=="string"&&(a=document.querySelector(a)),!a)return!1;a.swiper=n,a.parentNode&&a.parentNode.host&&a.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(n.isElement=!0);const r=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=a&&a.shadowRoot&&a.shadowRoot.querySelector?a.shadowRoot.querySelector(r()):pt(a,r())[0];return!i&&n.params.createElements&&(i=Yt("div",n.params.wrapperClass),a.append(i),pt(a,`.${n.params.slideClass}`).forEach(o=>{i.append(o)})),Object.assign(n,{el:a,wrapperEl:i,slidesEl:n.isElement&&!a.parentNode.host.slideSlots?a.parentNode.host:i,hostEl:n.isElement?a.parentNode.host:a,mounted:!0,rtl:a.dir.toLowerCase()==="rtl"||En(a,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(a.dir.toLowerCase()==="rtl"||En(a,"direction")==="rtl"),wrongRTL:En(i,"display")==="-webkit-box"}),!0}init(e){const n=this;if(n.initialized||n.mount(e)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const r=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&r.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(s=>{s.complete?or(n,s):s.addEventListener("load",i=>{or(n,i.target)})}),Os(n),n.initialized=!0,Os(n),n.emit("init"),n.emit("afterInit"),n}destroy(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0);const a=this,{params:r,el:s,wrapperEl:i,slides:o}=a;return typeof a.params>"u"||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),r.loop&&a.loopDestroy(),n&&(a.removeClasses(),s.removeAttribute("style"),i.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(l=>{a.off(l)}),e!==!1&&(a.el.swiper=null,UC(a)),a.destroyed=!0),null}static extendDefaults(e){Lt(os,e)}static get extendedDefaults(){return os}static get defaults(){return As}static installModule(e){an.prototype.__modules__||(an.prototype.__modules__=[]);const n=an.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>an.installModule(n)),an):(an.installModule(e),an)}};Object.keys(is).forEach(t=>{Object.keys(is[t]).forEach(e=>{ra.prototype[e]=is[t][e]})});ra.use([rk,sk]);function d$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;n({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let s;const i=vt();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=i.createElement("div");function l(h,m){const b=e.params.virtual;if(b.cache&&e.virtual.cache[m])return e.virtual.cache[m];let w;return b.renderSlide?(w=b.renderSlide.call(e,h,m),typeof w=="string"&&(o.innerHTML=w,w=o.children[0])):e.isElement?w=Yt("swiper-slide"):w=Yt("div",e.params.slideClass),w.setAttribute("data-swiper-slide-index",m),b.renderSlide||(w.innerHTML=h),b.cache&&(e.virtual.cache[m]=w),w}function c(h){const{slidesPerView:m,slidesPerGroup:b,centeredSlides:w,loop:g}=e.params,{addSlidesBefore:v,addSlidesAfter:y}=e.params.virtual,{from:E,to:k,slides:$,slidesGrid:M,offset:x}=e.virtual;e.params.cssMode||e.updateActiveIndex();const F=e.activeIndex||0;let S;e.rtlTranslate?S="right":S=e.isHorizontal()?"left":"top";let I,B;w?(I=Math.floor(m/2)+b+y,B=Math.floor(m/2)+b+v):(I=m+(b-1)+y,B=(g?m:b)+v);let P=F-B,L=F+I;g||(P=Math.max(P,0),L=Math.min(L,$.length-1));let V=(e.slidesGrid[P]||0)-(e.slidesGrid[0]||0);g&&F>=B?(P-=B,w||(V+=e.slidesGrid[0])):g&&F{ee.style[S]=`${V-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),r("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:V,from:P,to:L,slides:function(){const X=[];for(let se=P;se<=L;se+=1)X.push($[se]);return X}()}),e.params.virtual.renderExternalUpdate?H():r("virtualUpdate");return}const D=[],O=[],_=ee=>{let X=ee;return ee<0?X=$.length+ee:X>=$.length&&(X=X-$.length),X};if(h)e.slides.filter(ee=>ee.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(ee=>{ee.remove()});else for(let ee=E;ee<=k;ee+=1)if(eeL){const X=_(ee);e.slides.filter(se=>se.matches(`.${e.params.slideClass}[data-swiper-slide-index="${X}"], swiper-slide[data-swiper-slide-index="${X}"]`)).forEach(se=>{se.remove()})}const N=g?-$.length:0,G=g?$.length*2:$.length;for(let ee=N;ee=P&&ee<=L){const X=_(ee);typeof k>"u"||h?O.push(X):(ee>k&&O.push(X),ee{e.slidesEl.append(l($[ee],ee))}),g)for(let ee=D.length-1;ee>=0;ee-=1){const X=D[ee];e.slidesEl.prepend(l($[X],X))}else D.sort((ee,X)=>X-ee),D.forEach(ee=>{e.slidesEl.prepend(l($[ee],ee))});pt(e.slidesEl,".swiper-slide, swiper-slide").forEach(ee=>{ee.style[S]=`${V-Math.abs(e.cssOverflowAdjustment())}px`}),H()}function d(h){if(typeof h=="object"&&"length"in h)for(let m=0;m{const E=g[y],k=E.getAttribute("data-swiper-slide-index");k&&E.setAttribute("data-swiper-slide-index",parseInt(k,10)+w),v[parseInt(y,10)+w]=E}),e.virtual.cache=v}c(!0),e.slideTo(b,0)}function p(h){if(typeof h>"u"||h===null)return;let m=e.activeIndex;if(Array.isArray(h))for(let b=h.length-1;b>=0;b-=1)e.params.virtual.cache&&(delete e.virtual.cache[h[b]],Object.keys(e.virtual.cache).forEach(w=>{w>h&&(e.virtual.cache[w-1]=e.virtual.cache[w],e.virtual.cache[w-1].setAttribute("data-swiper-slide-index",w-1),delete e.virtual.cache[w])})),e.virtual.slides.splice(h[b],1),h[b]{b>h&&(e.virtual.cache[b-1]=e.virtual.cache[b],e.virtual.cache[b-1].setAttribute("data-swiper-slide-index",b-1),delete e.virtual.cache[b])})),e.virtual.slides.splice(h,1),h{if(!e.params.virtual.enabled)return;let h;if(typeof e.passedParams.virtual.slides>"u"){const m=[...e.slidesEl.children].filter(b=>b.matches(`.${e.params.slideClass}, swiper-slide`));m&&m.length&&(e.virtual.slides=[...m],h=!0,m.forEach((b,w)=>{b.setAttribute("data-swiper-slide-index",w),e.virtual.cache[w]=b,b.remove()}))}h||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,c()}),a("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(s),s=setTimeout(()=>{c()},100)):c())}),a("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&ya(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:d,prependSlide:u,removeSlide:p,removeAllSlides:f,update:c})}function u$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;const s=vt(),i=Ge();e.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function o(d){if(!e.enabled)return;const{rtlTranslate:u}=e;let p=d;p.originalEvent&&(p=p.originalEvent);const f=p.keyCode||p.charCode,h=e.params.keyboard.pageUpDown,m=h&&f===33,b=h&&f===34,w=f===37,g=f===39,v=f===38,y=f===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&y||b)||!e.allowSlidePrev&&(e.isHorizontal()&&w||e.isVertical()&&v||m))return!1;if(!(p.shiftKey||p.altKey||p.ctrlKey||p.metaKey)&&!(s.activeElement&&s.activeElement.nodeName&&(s.activeElement.nodeName.toLowerCase()==="input"||s.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(m||b||w||g||v||y)){let E=!1;if(zn(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&zn(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,$=k.clientWidth,M=k.clientHeight,x=i.innerWidth,F=i.innerHeight,S=vr(k);u&&(S.left-=k.scrollLeft);const I=[[S.left,S.top],[S.left+$,S.top],[S.left,S.top+M],[S.left+$,S.top+M]];for(let B=0;B=0&&P[0]<=x&&P[1]>=0&&P[1]<=F){if(P[0]===0&&P[1]===0)continue;E=!0}}if(!E)return}e.isHorizontal()?((m||b||w||g)&&(p.preventDefault?p.preventDefault():p.returnValue=!1),((b||g)&&!u||(m||w)&&u)&&e.slideNext(),((m||w)&&!u||(b||g)&&u)&&e.slidePrev()):((m||b||v||y)&&(p.preventDefault?p.preventDefault():p.returnValue=!1),(b||y)&&e.slideNext(),(m||v)&&e.slidePrev()),r("keyPress",f)}}function l(){e.keyboard.enabled||(s.addEventListener("keydown",o),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(s.removeEventListener("keydown",o),e.keyboard.enabled=!1)}a("init",()=>{e.params.keyboard.enabled&&l()}),a("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:l,disable:c})}function p$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;const s=Ge();n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let i,o=Nt(),l;const c=[];function d(v){let $=0,M=0,x=0,F=0;return"detail"in v&&(M=v.detail),"wheelDelta"in v&&(M=-v.wheelDelta/120),"wheelDeltaY"in v&&(M=-v.wheelDeltaY/120),"wheelDeltaX"in v&&($=-v.wheelDeltaX/120),"axis"in v&&v.axis===v.HORIZONTAL_AXIS&&($=M,M=0),x=$*10,F=M*10,"deltaY"in v&&(F=v.deltaY),"deltaX"in v&&(x=v.deltaX),v.shiftKey&&!x&&(x=F,F=0),(x||F)&&v.deltaMode&&(v.deltaMode===1?(x*=40,F*=40):(x*=800,F*=800)),x&&!$&&($=x<1?-1:1),F&&!M&&(M=F<1?-1:1),{spinX:$,spinY:M,pixelX:x,pixelY:F}}function u(){e.enabled&&(e.mouseEntered=!0)}function p(){e.enabled&&(e.mouseEntered=!1)}function f(v){return e.params.mousewheel.thresholdDelta&&v.delta=6&&Nt()-o<60?!0:(v.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),r("scroll",v.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),r("scroll",v.raw)),o=new s.Date().getTime(),!1)}function h(v){const y=e.params.mousewheel;if(v.direction<0){if(e.isEnd&&!e.params.loop&&y.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&y.releaseOnEdges)return!0;return!1}function m(v){let y=v,E=!0;if(!e.enabled||v.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const k=e.params.mousewheel;e.params.cssMode&&y.preventDefault();let $=e.el;e.params.mousewheel.eventsTarget!=="container"&&($=document.querySelector(e.params.mousewheel.eventsTarget));const M=$&&$.contains(y.target);if(!e.mouseEntered&&!M&&!k.releaseOnEdges)return!0;y.originalEvent&&(y=y.originalEvent);let x=0;const F=e.rtlTranslate?-1:1,S=d(y);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(S.pixelX)>Math.abs(S.pixelY))x=-S.pixelX*F;else return!0;else if(Math.abs(S.pixelY)>Math.abs(S.pixelX))x=-S.pixelY;else return!0;else x=Math.abs(S.pixelX)>Math.abs(S.pixelY)?-S.pixelX*F:-S.pixelY;if(x===0)return!0;k.invert&&(x=-x);let I=e.getTranslate()+x*k.sensitivity;if(I>=e.minTranslate()&&(I=e.minTranslate()),I<=e.maxTranslate()&&(I=e.maxTranslate()),E=e.params.loop?!0:!(I===e.minTranslate()||I===e.maxTranslate()),E&&e.params.nested&&y.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const B={time:Nt(),delta:Math.abs(x),direction:Math.sign(x),raw:v};c.length>=2&&c.shift();const P=c.length?c[c.length-1]:void 0;if(c.push(B),P?(B.direction!==P.direction||B.delta>P.delta||B.time>P.time+150)&&f(B):f(B),h(B))return!0}else{const B={time:Nt(),delta:Math.abs(x),direction:Math.sign(x)},P=l&&B.time=e.minTranslate()&&(L=e.minTranslate()),L<=e.maxTranslate()&&(L=e.maxTranslate()),e.setTransition(0),e.setTranslate(L),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!V&&e.isBeginning||!H&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:B.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(i),i=void 0,c.length>=15&&c.shift();const D=c.length?c[c.length-1]:void 0,O=c[0];if(c.push(B),D&&(B.delta>D.delta||B.direction!==D.direction))c.splice(0);else if(c.length>=15&&B.time-O.time<500&&O.delta-B.delta>=1&&B.delta<=6){const _=x>0?.8:.2;l=B,c.splice(0),i=Nn(()=>{e.slideToClosest(e.params.speed,!0,void 0,_)},0)}i||(i=Nn(()=>{l=B,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(P||r("scroll",y),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),k.releaseOnEdges&&(L===e.minTranslate()||L===e.maxTranslate()))return!0}}return y.preventDefault?y.preventDefault():y.returnValue=!1,!1}function b(v){let y=e.el;e.params.mousewheel.eventsTarget!=="container"&&(y=document.querySelector(e.params.mousewheel.eventsTarget)),y[v]("mouseenter",u),y[v]("mouseleave",p),y[v]("wheel",m)}function w(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",m),!0):e.mousewheel.enabled?!1:(b("addEventListener"),e.mousewheel.enabled=!0,!0)}function g(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,m),!0):e.mousewheel.enabled?(b("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}a("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&g(),e.params.mousewheel.enabled&&w()}),a("destroy",()=>{e.params.cssMode&&w(),e.mousewheel.enabled&&g()}),Object.assign(e.mousewheel,{enable:w,disable:g})}function gi(t,e,n,a){return t.params.createElements&&Object.keys(a).forEach(r=>{if(!n[r]&&n.auto===!0){let s=pt(t.el,`.${a[r]}`)[0];s||(s=Yt("div",a[r]),s.className=a[r],t.el.append(s)),n[r]=s,e[r]=s}}),n}function f$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const s=m=>(Array.isArray(m)?m:[m]).filter(b=>!!b);function i(m){let b;return m&&typeof m=="string"&&e.isElement&&(b=e.el.querySelector(m),b)?b:(m&&(typeof m=="string"&&(b=[...document.querySelectorAll(m)]),e.params.uniqueNavElements&&typeof m=="string"&&b.length>1&&e.el.querySelectorAll(m).length===1&&(b=e.el.querySelector(m))),m&&!b?m:b)}function o(m,b){const w=e.params.navigation;m=s(m),m.forEach(g=>{g&&(g.classList[b?"add":"remove"](...w.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=b),e.params.watchOverflow&&e.enabled&&g.classList[e.isLocked?"add":"remove"](w.lockClass))})}function l(){const{nextEl:m,prevEl:b}=e.navigation;if(e.params.loop){o(b,!1),o(m,!1);return}o(b,e.isBeginning&&!e.params.rewind),o(m,e.isEnd&&!e.params.rewind)}function c(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function d(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function u(){const m=e.params.navigation;if(e.params.navigation=gi(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(m.nextEl||m.prevEl))return;let b=i(m.nextEl),w=i(m.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:w}),b=s(b),w=s(w);const g=(v,y)=>{v&&v.addEventListener("click",y==="next"?d:c),!e.enabled&&v&&v.classList.add(...m.lockClass.split(" "))};b.forEach(v=>g(v,"next")),w.forEach(v=>g(v,"prev"))}function p(){let{nextEl:m,prevEl:b}=e.navigation;m=s(m),b=s(b);const w=(g,v)=>{g.removeEventListener("click",v==="next"?d:c),g.classList.remove(...e.params.navigation.disabledClass.split(" "))};m.forEach(g=>w(g,"next")),b.forEach(g=>w(g,"prev"))}a("init",()=>{e.params.navigation.enabled===!1?h():(u(),l())}),a("toEdge fromEdge lock unlock",()=>{l()}),a("destroy",()=>{p()}),a("enable disable",()=>{let{nextEl:m,prevEl:b}=e.navigation;if(m=s(m),b=s(b),e.enabled){l();return}[...m,...b].filter(w=>!!w).forEach(w=>w.classList.add(e.params.navigation.lockClass))}),a("click",(m,b)=>{let{nextEl:w,prevEl:g}=e.navigation;w=s(w),g=s(g);const v=b.target;if(e.params.navigation.hideOnClick&&!g.includes(v)&&!w.includes(v)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===v||e.pagination.el.contains(v)))return;let y;w.length?y=w[0].classList.contains(e.params.navigation.hiddenClass):g.length&&(y=g[0].classList.contains(e.params.navigation.hiddenClass)),r(y===!0?"navigationShow":"navigationHide"),[...w,...g].filter(E=>!!E).forEach(E=>E.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),l()},h=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(e.navigation,{enable:f,disable:h,update:l,init:u,destroy:p})}function vn(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function h$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;const s="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:g=>g,formatFractionTotal:g=>g,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let i,o=0;const l=g=>(Array.isArray(g)?g:[g]).filter(v=>!!v);function c(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function d(g,v){const{bulletActiveClass:y}=e.params.pagination;g&&(g=g[`${v==="prev"?"previous":"next"}ElementSibling`],g&&(g.classList.add(`${y}-${v}`),g=g[`${v==="prev"?"previous":"next"}ElementSibling`],g&&g.classList.add(`${y}-${v}-${v}`)))}function u(g){const v=g.target.closest(vn(e.params.pagination.bulletClass));if(!v)return;g.preventDefault();const y=Ha(v)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===y)return;const E=e.realIndex,k=e.getSlideIndexByData(y),$=e.getSlideIndexByData(e.realIndex),M=x=>{const F=e.activeIndex;e.loopFix({direction:x,activeSlideIndex:k,slideTo:!1});const S=e.activeIndex;F===S&&e.slideToLoop(E,0,!1,!0)};if(k>e.slides.length-e.loopedSlides)M(k>$?"next":"prev");else if(e.params.centeredSlides){const x=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(parseFloat(e.params.slidesPerView,10));k1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(E=e.snapIndex,k=e.previousSnapIndex):(k=e.previousIndex||0,E=e.activeIndex||0),v.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const x=e.pagination.bullets;let F,S,I;if(v.dynamicBullets&&(i=Is(x[0],e.isHorizontal()?"width":"height"),y.forEach(B=>{B.style[e.isHorizontal()?"width":"height"]=`${i*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&k!==void 0&&(o+=E-(k||0),o>v.dynamicMainBullets-1?o=v.dynamicMainBullets-1:o<0&&(o=0)),F=Math.max(E-o,0),S=F+(Math.min(x.length,v.dynamicMainBullets)-1),I=(S+F)/2),x.forEach(B=>{const P=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(L=>`${v.bulletActiveClass}${L}`)].map(L=>typeof L=="string"&&L.includes(" ")?L.split(" "):L).flat();B.classList.remove(...P)}),y.length>1)x.forEach(B=>{const P=Ha(B);P===E?B.classList.add(...v.bulletActiveClass.split(" ")):e.isElement&&B.setAttribute("part","bullet"),v.dynamicBullets&&(P>=F&&P<=S&&B.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),P===F&&d(B,"prev"),P===S&&d(B,"next"))});else{const B=x[E];if(B&&B.classList.add(...v.bulletActiveClass.split(" ")),e.isElement&&x.forEach((P,L)=>{P.setAttribute("part",L===E?"bullet-active":"bullet")}),v.dynamicBullets){const P=x[F],L=x[S];for(let V=F;V<=S;V+=1)x[V]&&x[V].classList.add(...`${v.bulletActiveClass}-main`.split(" "));d(P,"prev"),d(L,"next")}}if(v.dynamicBullets){const B=Math.min(x.length,v.dynamicMainBullets+4),P=(i*B-i)/2-I*i,L=g?"right":"left";x.forEach(V=>{V.style[e.isHorizontal()?L:"top"]=`${P}px`})}}y.forEach((x,F)=>{if(v.type==="fraction"&&(x.querySelectorAll(vn(v.currentClass)).forEach(S=>{S.textContent=v.formatFractionCurrent(E+1)}),x.querySelectorAll(vn(v.totalClass)).forEach(S=>{S.textContent=v.formatFractionTotal(M)})),v.type==="progressbar"){let S;v.progressbarOpposite?S=e.isHorizontal()?"vertical":"horizontal":S=e.isHorizontal()?"horizontal":"vertical";const I=(E+1)/M;let B=1,P=1;S==="horizontal"?B=I:P=I,x.querySelectorAll(vn(v.progressbarFillClass)).forEach(L=>{L.style.transform=`translate3d(0,0,0) scaleX(${B}) scaleY(${P})`,L.style.transitionDuration=`${e.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(x.innerHTML=v.renderCustom(e,E+1,M),F===0&&r("paginationRender",x)):(F===0&&r("paginationRender",x),r("paginationUpdate",x)),e.params.watchOverflow&&e.enabled&&x.classList[e.isLocked?"add":"remove"](v.lockClass)})}function f(){const g=e.params.pagination;if(c())return;const v=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let y=e.pagination.el;y=l(y);let E="";if(g.type==="bullets"){let k=e.params.loop?Math.ceil(v/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&k>v&&(k=v);for(let $=0;$`}g.type==="fraction"&&(g.renderFraction?E=g.renderFraction.call(e,g.currentClass,g.totalClass):E=` / `),g.type==="progressbar"&&(g.renderProgressbar?E=g.renderProgressbar.call(e,g.progressbarFillClass):E=``),e.pagination.bullets=[],y.forEach(k=>{g.type!=="custom"&&(k.innerHTML=E||""),g.type==="bullets"&&e.pagination.bullets.push(...k.querySelectorAll(vn(g.bulletClass)))}),g.type!=="custom"&&r("paginationRender",y[0])}function h(){e.params.pagination=gi(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const g=e.params.pagination;if(!g.el)return;let v;typeof g.el=="string"&&e.isElement&&(v=e.el.querySelector(g.el)),!v&&typeof g.el=="string"&&(v=[...document.querySelectorAll(g.el)]),v||(v=g.el),!(!v||v.length===0)&&(e.params.uniqueNavElements&&typeof g.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...e.el.querySelectorAll(g.el)],v.length>1&&(v=v.filter(y=>zn(y,".swiper")[0]===e.el)[0])),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(e.pagination,{el:v}),v=l(v),v.forEach(y=>{g.type==="bullets"&&g.clickable&&y.classList.add(...(g.clickableClass||"").split(" ")),y.classList.add(g.modifierClass+g.type),y.classList.add(e.isHorizontal()?g.horizontalClass:g.verticalClass),g.type==="bullets"&&g.dynamicBullets&&(y.classList.add(`${g.modifierClass}${g.type}-dynamic`),o=0,g.dynamicMainBullets<1&&(g.dynamicMainBullets=1)),g.type==="progressbar"&&g.progressbarOpposite&&y.classList.add(g.progressbarOppositeClass),g.clickable&&y.addEventListener("click",u),e.enabled||y.classList.add(g.lockClass)}))}function m(){const g=e.params.pagination;if(c())return;let v=e.pagination.el;v&&(v=l(v),v.forEach(y=>{y.classList.remove(g.hiddenClass),y.classList.remove(g.modifierClass+g.type),y.classList.remove(e.isHorizontal()?g.horizontalClass:g.verticalClass),g.clickable&&(y.classList.remove(...(g.clickableClass||"").split(" ")),y.removeEventListener("click",u))})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.classList.remove(...g.bulletActiveClass.split(" ")))}a("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const g=e.params.pagination;let{el:v}=e.pagination;v=l(v),v.forEach(y=>{y.classList.remove(g.horizontalClass,g.verticalClass),y.classList.add(e.isHorizontal()?g.horizontalClass:g.verticalClass)})}),a("init",()=>{e.params.pagination.enabled===!1?w():(h(),f(),p())}),a("activeIndexChange",()=>{typeof e.snapIndex>"u"&&p()}),a("snapIndexChange",()=>{p()}),a("snapGridLengthChange",()=>{f(),p()}),a("destroy",()=>{m()}),a("enable disable",()=>{let{el:g}=e.pagination;g&&(g=l(g),g.forEach(v=>v.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),a("lock unlock",()=>{p()}),a("click",(g,v)=>{const y=v.target,E=l(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&E&&E.length>0&&!y.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&y===e.navigation.nextEl||e.navigation.prevEl&&y===e.navigation.prevEl))return;const k=E[0].classList.contains(e.params.pagination.hiddenClass);r(k===!0?"paginationShow":"paginationHide"),E.forEach($=>$.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:g}=e.pagination;g&&(g=l(g),g.forEach(v=>v.classList.remove(e.params.pagination.paginationDisabledClass))),h(),f(),p()},w=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:g}=e.pagination;g&&(g=l(g),g.forEach(v=>v.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:b,disable:w,render:f,update:p,init:h,destroy:m})}function m$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;const s=vt();let i=!1,o=null,l=null,c,d,u,p;n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I,rtlTranslate:B}=e,{dragEl:P,el:L}=I,V=e.params.scrollbar,H=e.params.loop?e.progressLoop:e.progress;let D=d,O=(u-d)*H;B?(O=-O,O>0?(D=d-O,O=0):-O+d>u&&(D=u+O)):O<0?(D=d+O,O=0):O+d>u&&(D=u-O),e.isHorizontal()?(P.style.transform=`translate3d(${O}px, 0, 0)`,P.style.width=`${D}px`):(P.style.transform=`translate3d(0px, ${O}px, 0)`,P.style.height=`${D}px`),V.hide&&(clearTimeout(o),L.style.opacity=1,o=setTimeout(()=>{L.style.opacity=0,L.style.transitionDuration="400ms"},1e3))}function h(I){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${I}ms`)}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:I}=e,{dragEl:B,el:P}=I;B.style.width="",B.style.height="",u=e.isHorizontal()?P.offsetWidth:P.offsetHeight,p=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=u*p:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?B.style.width=`${d}px`:B.style.height=`${d}px`,p>=1?P.style.display="none":P.style.display="",e.params.scrollbar.hide&&(P.style.opacity=0),e.params.watchOverflow&&e.enabled&&I.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function b(I){return e.isHorizontal()?I.clientX:I.clientY}function w(I){const{scrollbar:B,rtlTranslate:P}=e,{el:L}=B;let V;V=(b(I)-vr(L)[e.isHorizontal()?"left":"top"]-(c!==null?c:d/2))/(u-d),V=Math.max(Math.min(V,1),0),P&&(V=1-V);const H=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*V;e.updateProgress(H),e.setTranslate(H),e.updateActiveIndex(),e.updateSlidesClasses()}function g(I){const B=e.params.scrollbar,{scrollbar:P,wrapperEl:L}=e,{el:V,dragEl:H}=P;i=!0,c=I.target===H?b(I)-I.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,I.preventDefault(),I.stopPropagation(),L.style.transitionDuration="100ms",H.style.transitionDuration="100ms",w(I),clearTimeout(l),V.style.transitionDuration="0ms",B.hide&&(V.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",I)}function v(I){const{scrollbar:B,wrapperEl:P}=e,{el:L,dragEl:V}=B;i&&(I.preventDefault?I.preventDefault():I.returnValue=!1,w(I),P.style.transitionDuration="0ms",L.style.transitionDuration="0ms",V.style.transitionDuration="0ms",r("scrollbarDragMove",I))}function y(I){const B=e.params.scrollbar,{scrollbar:P,wrapperEl:L}=e,{el:V}=P;i&&(i=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",L.style.transitionDuration=""),B.hide&&(clearTimeout(l),l=Nn(()=>{V.style.opacity=0,V.style.transitionDuration="400ms"},1e3)),r("scrollbarDragEnd",I),B.snapOnRelease&&e.slideToClosest())}function E(I){const{scrollbar:B,params:P}=e,L=B.el;if(!L)return;const V=L,H=P.passiveListeners?{passive:!1,capture:!1}:!1,D=P.passiveListeners?{passive:!0,capture:!1}:!1;if(!V)return;const O=I==="on"?"addEventListener":"removeEventListener";V[O]("pointerdown",g,H),s[O]("pointermove",v,H),s[O]("pointerup",y,D)}function k(){!e.params.scrollbar.el||!e.scrollbar.el||E("on")}function $(){!e.params.scrollbar.el||!e.scrollbar.el||E("off")}function M(){const{scrollbar:I,el:B}=e;e.params.scrollbar=gi(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const P=e.params.scrollbar;if(!P.el)return;let L;typeof P.el=="string"&&e.isElement&&(L=e.el.querySelector(P.el)),!L&&typeof P.el=="string"?L=s.querySelectorAll(P.el):L||(L=P.el),e.params.uniqueNavElements&&typeof P.el=="string"&&L.length>1&&B.querySelectorAll(P.el).length===1&&(L=B.querySelector(P.el)),L.length>0&&(L=L[0]),L.classList.add(e.isHorizontal()?P.horizontalClass:P.verticalClass);let V;L&&(V=L.querySelector(`.${e.params.scrollbar.dragClass}`),V||(V=Yt("div",e.params.scrollbar.dragClass),L.append(V))),Object.assign(I,{el:L,dragEl:V}),P.draggable&&k(),L&&L.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}function x(){const I=e.params.scrollbar,B=e.scrollbar.el;B&&B.classList.remove(e.isHorizontal()?I.horizontalClass:I.verticalClass),$()}a("init",()=>{e.params.scrollbar.enabled===!1?S():(M(),m(),f())}),a("update resize observerUpdate lock unlock",()=>{m()}),a("setTranslate",()=>{f()}),a("setTransition",(I,B)=>{h(B)}),a("enable disable",()=>{const{el:I}=e.scrollbar;I&&I.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}),a("destroy",()=>{x()});const F=()=>{e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),M(),m(),f()},S=()=>{e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),x()};Object.assign(e.scrollbar,{enable:F,disable:S,updateSize:m,setTranslate:f,init:M,destroy:x})}function g$(t){let{swiper:e,extendParams:n,on:a}=t;n({parallax:{enabled:!1}});const r="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",s=(l,c)=>{const{rtl:d}=e,u=d?-1:1,p=l.getAttribute("data-swiper-parallax")||"0";let f=l.getAttribute("data-swiper-parallax-x"),h=l.getAttribute("data-swiper-parallax-y");const m=l.getAttribute("data-swiper-parallax-scale"),b=l.getAttribute("data-swiper-parallax-opacity"),w=l.getAttribute("data-swiper-parallax-rotate");if(f||h?(f=f||"0",h=h||"0"):e.isHorizontal()?(f=p,h="0"):(h=p,f="0"),f.indexOf("%")>=0?f=`${parseInt(f,10)*c*u}%`:f=`${f*c*u}px`,h.indexOf("%")>=0?h=`${parseInt(h,10)*c}%`:h=`${h*c}px`,typeof b<"u"&&b!==null){const v=b-(b-1)*(1-Math.abs(c));l.style.opacity=v}let g=`translate3d(${f}, ${h}, 0px)`;if(typeof m<"u"&&m!==null){const v=m-(m-1)*(1-Math.abs(c));g+=` scale(${v})`}if(w&&typeof w<"u"&&w!==null){const v=w*c*-1;g+=` rotate(${v}deg)`}l.style.transform=g},i=()=>{const{el:l,slides:c,progress:d,snapGrid:u,isElement:p}=e,f=pt(l,r);e.isElement&&f.push(...pt(e.hostEl,r)),f.forEach(h=>{s(h,d)}),c.forEach((h,m)=>{let b=h.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(b+=Math.ceil(m/2)-d*(u.length-1)),b=Math.min(Math.max(b,-1),1),h.querySelectorAll(`${r}, [data-swiper-parallax-rotate]`).forEach(w=>{s(w,b)})})},o=function(l){l===void 0&&(l=e.params.speed);const{el:c,hostEl:d}=e,u=[...c.querySelectorAll(r)];e.isElement&&u.push(...d.querySelectorAll(r)),u.forEach(p=>{let f=parseInt(p.getAttribute("data-swiper-parallax-duration"),10)||l;l===0&&(f=0),p.style.transitionDuration=`${f}ms`})};a("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),a("init",()=>{e.params.parallax.enabled&&i()}),a("setTranslate",()=>{e.params.parallax.enabled&&i()}),a("setTransition",(l,c)=>{e.params.parallax.enabled&&o(c)})}function b$(t){let{swiper:e,extendParams:n,on:a,emit:r}=t;const s=Ge();n({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let i=1,o=!1,l,c;const d=[],u={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},p={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},f={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let h=1;Object.defineProperty(e.zoom,"scale",{get(){return h},set(H){if(h!==H){const D=u.imageEl,O=u.slideEl;r("zoomChange",H,D,O)}h=H}});function m(){if(d.length<2)return 1;const H=d[0].pageX,D=d[0].pageY,O=d[1].pageX,_=d[1].pageY;return Math.sqrt((O-H)**2+(_-D)**2)}function b(){if(d.length<2)return{x:null,y:null};const H=u.imageEl.getBoundingClientRect();return[(d[0].pageX+(d[1].pageX-d[0].pageX)/2-H.x-s.scrollX)/i,(d[0].pageY+(d[1].pageY-d[0].pageY)/2-H.y-s.scrollY)/i]}function w(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function g(H){const D=w();return!!(H.target.matches(D)||e.slides.filter(O=>O.contains(H.target)).length>0)}function v(H){const D=`.${e.params.zoom.containerClass}`;return!!(H.target.matches(D)||[...e.hostEl.querySelectorAll(D)].filter(O=>O.contains(H.target)).length>0)}function y(H){if(H.pointerType==="mouse"&&d.splice(0,d.length),!g(H))return;const D=e.params.zoom;if(l=!1,c=!1,d.push(H),!(d.length<2)){if(l=!0,u.scaleStart=m(),!u.slideEl){u.slideEl=H.target.closest(`.${e.params.slideClass}, swiper-slide`),u.slideEl||(u.slideEl=e.slides[e.activeIndex]);let O=u.slideEl.querySelector(`.${D.containerClass}`);if(O&&(O=O.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=O,O?u.imageWrapEl=zn(u.imageEl,`.${D.containerClass}`)[0]:u.imageWrapEl=void 0,!u.imageWrapEl){u.imageEl=void 0;return}u.maxRatio=u.imageWrapEl.getAttribute("data-swiper-zoom")||D.maxRatio}if(u.imageEl){const[O,_]=b();u.originX=O,u.originY=_,u.imageEl.style.transitionDuration="0ms"}o=!0}}function E(H){if(!g(H))return;const D=e.params.zoom,O=e.zoom,_=d.findIndex(N=>N.pointerId===H.pointerId);_>=0&&(d[_]=H),!(d.length<2)&&(c=!0,u.scaleMove=m(),u.imageEl&&(O.scale=u.scaleMove/u.scaleStart*i,O.scale>u.maxRatio&&(O.scale=u.maxRatio-1+(O.scale-u.maxRatio+1)**.5),O.scaleN.pointerId===H.pointerId);_>=0&&d.splice(_,1),!(!l||!c)&&(l=!1,c=!1,u.imageEl&&(O.scale=Math.max(Math.min(O.scale,u.maxRatio),D.minRatio),u.imageEl.style.transitionDuration=`${e.params.speed}ms`,u.imageEl.style.transform=`translate3d(0,0,0) scale(${O.scale})`,i=O.scale,o=!1,O.scale>1&&u.slideEl?u.slideEl.classList.add(`${D.zoomedSlideClass}`):O.scale<=1&&u.slideEl&&u.slideEl.classList.remove(`${D.zoomedSlideClass}`),O.scale===1&&(u.originX=0,u.originY=0,u.slideEl=void 0)))}function $(H){const D=e.device;if(!u.imageEl||p.isTouched)return;D.android&&H.cancelable&&H.preventDefault(),p.isTouched=!0;const O=d.length>0?d[0]:H;p.touchesStart.x=O.pageX,p.touchesStart.y=O.pageY}function M(H){if(!g(H)||!v(H))return;const D=e.zoom;if(!u.imageEl||!p.isTouched||!u.slideEl)return;p.isMoved||(p.width=u.imageEl.offsetWidth,p.height=u.imageEl.offsetHeight,p.startX=Bs(u.imageWrapEl,"x")||0,p.startY=Bs(u.imageWrapEl,"y")||0,u.slideWidth=u.slideEl.offsetWidth,u.slideHeight=u.slideEl.offsetHeight,u.imageWrapEl.style.transitionDuration="0ms");const O=p.width*D.scale,_=p.height*D.scale;if(O0?d[0].pageX:H.pageX,p.touchesCurrent.y=d.length>0?d[0].pageY:H.pageY,Math.max(Math.abs(p.touchesCurrent.x-p.touchesStart.x),Math.abs(p.touchesCurrent.y-p.touchesStart.y))>5&&(e.allowClick=!1),!p.isMoved&&!o){if(e.isHorizontal()&&(Math.floor(p.minX)===Math.floor(p.startX)&&p.touchesCurrent.xp.touchesStart.x)){p.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor(p.minY)===Math.floor(p.startY)&&p.touchesCurrent.yp.touchesStart.y)){p.isTouched=!1;return}}H.cancelable&&H.preventDefault(),H.stopPropagation(),p.isMoved=!0;const G=(D.scale-i)/(u.maxRatio-e.params.zoom.minRatio),{originX:ee,originY:X}=u;p.currentX=p.touchesCurrent.x-p.touchesStart.x+p.startX+G*(p.width-ee*2),p.currentY=p.touchesCurrent.y-p.touchesStart.y+p.startY+G*(p.height-X*2),p.currentXp.maxX&&(p.currentX=p.maxX-1+(p.currentX-p.maxX+1)**.8),p.currentYp.maxY&&(p.currentY=p.maxY-1+(p.currentY-p.maxY+1)**.8),f.prevPositionX||(f.prevPositionX=p.touchesCurrent.x),f.prevPositionY||(f.prevPositionY=p.touchesCurrent.y),f.prevTime||(f.prevTime=Date.now()),f.x=(p.touchesCurrent.x-f.prevPositionX)/(Date.now()-f.prevTime)/2,f.y=(p.touchesCurrent.y-f.prevPositionY)/(Date.now()-f.prevTime)/2,Math.abs(p.touchesCurrent.x-f.prevPositionX)<2&&(f.x=0),Math.abs(p.touchesCurrent.y-f.prevPositionY)<2&&(f.y=0),f.prevPositionX=p.touchesCurrent.x,f.prevPositionY=p.touchesCurrent.y,f.prevTime=Date.now(),u.imageWrapEl.style.transform=`translate3d(${p.currentX}px, ${p.currentY}px,0)`}function x(){const H=e.zoom;if(!u.imageEl)return;if(!p.isTouched||!p.isMoved){p.isTouched=!1,p.isMoved=!1;return}p.isTouched=!1,p.isMoved=!1;let D=300,O=300;const _=f.x*D,N=p.currentX+_,G=f.y*O,ee=p.currentY+G;f.x!==0&&(D=Math.abs((N-p.currentX)/f.x)),f.y!==0&&(O=Math.abs((ee-p.currentY)/f.y));const X=Math.max(D,O);p.currentX=N,p.currentY=ee;const se=p.width*H.scale,ne=p.height*H.scale;p.minX=Math.min(u.slideWidth/2-se/2,0),p.maxX=-p.minX,p.minY=Math.min(u.slideHeight/2-ne/2,0),p.maxY=-p.minY,p.currentX=Math.max(Math.min(p.currentX,p.maxX),p.minX),p.currentY=Math.max(Math.min(p.currentY,p.maxY),p.minY),u.imageWrapEl.style.transitionDuration=`${X}ms`,u.imageWrapEl.style.transform=`translate3d(${p.currentX}px, ${p.currentY}px,0)`}function F(){const H=e.zoom;u.slideEl&&e.activeIndex!==e.slides.indexOf(u.slideEl)&&(u.imageEl&&(u.imageEl.style.transform="translate3d(0,0,0) scale(1)"),u.imageWrapEl&&(u.imageWrapEl.style.transform="translate3d(0,0,0)"),u.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),H.scale=1,i=1,u.slideEl=void 0,u.imageEl=void 0,u.imageWrapEl=void 0,u.originX=0,u.originY=0)}function S(H){const D=e.zoom,O=e.params.zoom;if(!u.slideEl){H&&H.target&&(u.slideEl=H.target.closest(`.${e.params.slideClass}, swiper-slide`)),u.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.slideEl=pt(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:u.slideEl=e.slides[e.activeIndex]);let j=u.slideEl.querySelector(`.${O.containerClass}`);j&&(j=j.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=j,j?u.imageWrapEl=zn(u.imageEl,`.${O.containerClass}`)[0]:u.imageWrapEl=void 0}if(!u.imageEl||!u.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),u.slideEl.classList.add(`${O.zoomedSlideClass}`);let _,N,G,ee,X,se,ne,ie,le,be,oe,ce,pe,R,A,z,q,U;typeof p.touchesStart.x>"u"&&H?(_=H.pageX,N=H.pageY):(_=p.touchesStart.x,N=p.touchesStart.y);const K=typeof H=="number"?H:null;i===1&&K&&(_=void 0,N=void 0),D.scale=K||u.imageWrapEl.getAttribute("data-swiper-zoom")||O.maxRatio,i=K||u.imageWrapEl.getAttribute("data-swiper-zoom")||O.maxRatio,H&&!(i===1&&K)?(q=u.slideEl.offsetWidth,U=u.slideEl.offsetHeight,G=vr(u.slideEl).left+s.scrollX,ee=vr(u.slideEl).top+s.scrollY,X=G+q/2-_,se=ee+U/2-N,le=u.imageEl.offsetWidth,be=u.imageEl.offsetHeight,oe=le*D.scale,ce=be*D.scale,pe=Math.min(q/2-oe/2,0),R=Math.min(U/2-ce/2,0),A=-pe,z=-R,ne=X*D.scale,ie=se*D.scale,neA&&(ne=A),iez&&(ie=z)):(ne=0,ie=0),K&&D.scale===1&&(u.originX=0,u.originY=0),u.imageWrapEl.style.transitionDuration="300ms",u.imageWrapEl.style.transform=`translate3d(${ne}px, ${ie}px,0)`,u.imageEl.style.transitionDuration="300ms",u.imageEl.style.transform=`translate3d(0,0,0) scale(${D.scale})`}function I(){const H=e.zoom,D=e.params.zoom;if(!u.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.slideEl=pt(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:u.slideEl=e.slides[e.activeIndex];let O=u.slideEl.querySelector(`.${D.containerClass}`);O&&(O=O.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=O,O?u.imageWrapEl=zn(u.imageEl,`.${D.containerClass}`)[0]:u.imageWrapEl=void 0}!u.imageEl||!u.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),H.scale=1,i=1,u.imageWrapEl.style.transitionDuration="300ms",u.imageWrapEl.style.transform="translate3d(0,0,0)",u.imageEl.style.transitionDuration="300ms",u.imageEl.style.transform="translate3d(0,0,0) scale(1)",u.slideEl.classList.remove(`${D.zoomedSlideClass}`),u.slideEl=void 0,u.originX=0,u.originY=0)}function B(H){const D=e.zoom;D.scale&&D.scale!==1?I():S(H)}function P(){const H=e.params.passiveListeners?{passive:!0,capture:!1}:!1,D=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:H,activeListenerWithCapture:D}}function L(){const H=e.zoom;if(H.enabled)return;H.enabled=!0;const{passiveListener:D,activeListenerWithCapture:O}=P();e.wrapperEl.addEventListener("pointerdown",y,D),e.wrapperEl.addEventListener("pointermove",E,O),["pointerup","pointercancel","pointerout"].forEach(_=>{e.wrapperEl.addEventListener(_,k,D)}),e.wrapperEl.addEventListener("pointermove",M,O)}function V(){const H=e.zoom;if(!H.enabled)return;H.enabled=!1;const{passiveListener:D,activeListenerWithCapture:O}=P();e.wrapperEl.removeEventListener("pointerdown",y,D),e.wrapperEl.removeEventListener("pointermove",E,O),["pointerup","pointercancel","pointerout"].forEach(_=>{e.wrapperEl.removeEventListener(_,k,D)}),e.wrapperEl.removeEventListener("pointermove",M,O)}a("init",()=>{e.params.zoom.enabled&&L()}),a("destroy",()=>{V()}),a("touchStart",(H,D)=>{e.zoom.enabled&&$(D)}),a("touchEnd",(H,D)=>{e.zoom.enabled&&x()}),a("doubleTap",(H,D)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&B(D)}),a("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&F()}),a("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&F()}),Object.assign(e.zoom,{enable:L,disable:V,in:S,out:I,toggle:B})}function v$(t){let{swiper:e,extendParams:n,on:a}=t;n({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function r(c,d){const u=function(){let m,b,w;return(g,v)=>{for(b=-1,m=g.length;m-b>1;)w=m+b>>1,g[w]<=v?b=w:m=w;return m}}();this.x=c,this.y=d,this.lastIndex=c.length-1;let p,f;return this.interpolate=function(m){return m?(f=u(this.x,m),p=f-1,(m-this.x[p])*(this.y[f]-this.y[p])/(this.x[f]-this.x[p])+this.y[p]):0},this}function s(c){e.controller.spline=e.params.loop?new r(e.slidesGrid,c.slidesGrid):new r(e.snapGrid,c.snapGrid)}function i(c,d){const u=e.controller.control;let p,f;const h=e.constructor;function m(b){if(b.destroyed)return;const w=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(s(b),f=-e.controller.spline.interpolate(-w)),(!f||e.params.controller.by==="container")&&(p=(b.maxTranslate()-b.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(p)||!Number.isFinite(p))&&(p=1),f=(w-e.minTranslate())*p+b.minTranslate()),e.params.controller.inverse&&(f=b.maxTranslate()-f),b.updateProgress(f),b.setTranslate(f,e),b.updateActiveIndex(),b.updateSlidesClasses()}if(Array.isArray(u))for(let b=0;b{m.updateAutoHeight()}),Pa(m.wrapperEl,()=>{p&&m.transitionEnd()})))}if(Array.isArray(p))for(f=0;f{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){const c=document.querySelector(e.params.controller.control);if(c&&c.swiper)e.controller.control=c.swiper;else if(c){const d=u=>{e.controller.control=u.detail[0],e.update(),c.removeEventListener("init",d)};c.addEventListener("init",d)}return}e.controller.control=e.params.controller.control}),a("update",()=>{l()}),a("resize",()=>{l()}),a("observerUpdate",()=>{l()}),a("setTranslate",(c,d,u)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(d,u)}),a("setTransition",(c,d,u)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(d,u)}),Object.assign(e.controller,{setTranslate:i,setTransition:o})}function w$(t){let{swiper:e,extendParams:n,on:a}=t;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let r=null;function s(P){const L=r;L.length!==0&&(L.innerHTML="",L.innerHTML=P)}const i=P=>(Array.isArray(P)?P:[P]).filter(L=>!!L);function o(P){const L=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(P).replace(/x/g,L)}function l(P){P=i(P),P.forEach(L=>{L.setAttribute("tabIndex","0")})}function c(P){P=i(P),P.forEach(L=>{L.setAttribute("tabIndex","-1")})}function d(P,L){P=i(P),P.forEach(V=>{V.setAttribute("role",L)})}function u(P,L){P=i(P),P.forEach(V=>{V.setAttribute("aria-roledescription",L)})}function p(P,L){P=i(P),P.forEach(V=>{V.setAttribute("aria-controls",L)})}function f(P,L){P=i(P),P.forEach(V=>{V.setAttribute("aria-label",L)})}function h(P,L){P=i(P),P.forEach(V=>{V.setAttribute("id",L)})}function m(P,L){P=i(P),P.forEach(V=>{V.setAttribute("aria-live",L)})}function b(P){P=i(P),P.forEach(L=>{L.setAttribute("aria-disabled",!0)})}function w(P){P=i(P),P.forEach(L=>{L.setAttribute("aria-disabled",!1)})}function g(P){if(P.keyCode!==13&&P.keyCode!==32)return;const L=e.params.a11y,V=P.target;e.pagination&&e.pagination.el&&(V===e.pagination.el||e.pagination.el.contains(P.target))&&!P.target.matches(vn(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&V===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(L.lastSlideMessage):s(L.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&V===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(L.firstSlideMessage):s(L.prevSlideMessage)),e.pagination&&V.matches(vn(e.params.pagination.bulletClass))&&V.click())}function v(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:P,prevEl:L}=e.navigation;L&&(e.isBeginning?(b(L),c(L)):(w(L),l(L))),P&&(e.isEnd?(b(P),c(P)):(w(P),l(P)))}function y(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function E(){return y()&&e.params.pagination.clickable}function k(){const P=e.params.a11y;y()&&e.pagination.bullets.forEach(L=>{e.params.pagination.clickable&&(l(L),e.params.pagination.renderBullet||(d(L,"button"),f(L,P.paginationBulletMessage.replace(/\{\{index\}\}/,Ha(L)+1)))),L.matches(vn(e.params.pagination.bulletActiveClass))?L.setAttribute("aria-current","true"):L.removeAttribute("aria-current")})}const $=(P,L,V)=>{l(P),P.tagName!=="BUTTON"&&(d(P,"button"),P.addEventListener("keydown",g)),f(P,V),p(P,L)},M=()=>{e.a11y.clicked=!0},x=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},F=P=>{if(e.a11y.clicked)return;const L=P.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!L||!e.slides.includes(L))return;const V=e.slides.indexOf(L)===e.activeIndex,H=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(L);V||H||P.sourceCapabilities&&P.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(L),0))},S=()=>{const P=e.params.a11y;P.itemRoleDescriptionMessage&&u(e.slides,P.itemRoleDescriptionMessage),P.slideRole&&d(e.slides,P.slideRole);const L=e.slides.length;P.slideLabelMessage&&e.slides.forEach((V,H)=>{const D=e.params.loop?parseInt(V.getAttribute("data-swiper-slide-index"),10):H,O=P.slideLabelMessage.replace(/\{\{index\}\}/,D+1).replace(/\{\{slidesLength\}\}/,L);f(V,O)})},I=()=>{const P=e.params.a11y;e.el.append(r);const L=e.el;P.containerRoleDescriptionMessage&&u(L,P.containerRoleDescriptionMessage),P.containerMessage&&f(L,P.containerMessage);const V=e.wrapperEl,H=P.id||V.getAttribute("id")||`swiper-wrapper-${o(16)}`,D=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";h(V,H),m(V,D),S();let{nextEl:O,prevEl:_}=e.navigation?e.navigation:{};O=i(O),_=i(_),O&&O.forEach(N=>$(N,H,P.nextSlideMessage)),_&&_.forEach(N=>$(N,H,P.prevSlideMessage)),E()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(G=>{G.addEventListener("keydown",g)}),e.el.addEventListener("focus",F,!0),e.el.addEventListener("pointerdown",M,!0),e.el.addEventListener("pointerup",x,!0)};function B(){r&&r.remove();let{nextEl:P,prevEl:L}=e.navigation?e.navigation:{};P=i(P),L=i(L),P&&P.forEach(V=>V.removeEventListener("keydown",g)),L&&L.forEach(V=>V.removeEventListener("keydown",g)),E()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(H=>{H.removeEventListener("keydown",g)}),e.el.removeEventListener("focus",F,!0),e.el.removeEventListener("pointerdown",M,!0),e.el.removeEventListener("pointerup",x,!0)}a("beforeInit",()=>{r=Yt("span",e.params.a11y.notificationClass),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true")}),a("afterInit",()=>{e.params.a11y.enabled&&I()}),a("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&S()}),a("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&v()}),a("paginationUpdate",()=>{e.params.a11y.enabled&&k()}),a("destroy",()=>{e.params.a11y.enabled&&B()})}function y$(t){let{swiper:e,extendParams:n,on:a}=t;n({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let r=!1,s={};const i=f=>f.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=f=>{const h=Ge();let m;f?m=new URL(f):m=h.location;const b=m.pathname.slice(1).split("/").filter(y=>y!==""),w=b.length,g=b[w-2],v=b[w-1];return{key:g,value:v}},l=(f,h)=>{const m=Ge();if(!r||!e.params.history.enabled)return;let b;e.params.url?b=new URL(e.params.url):b=m.location;const w=e.slides[h];let g=i(w.getAttribute("data-history"));if(e.params.history.root.length>0){let y=e.params.history.root;y[y.length-1]==="/"&&(y=y.slice(0,y.length-1)),g=`${y}/${f?`${f}/`:""}${g}`}else b.pathname.includes(f)||(g=`${f?`${f}/`:""}${g}`);e.params.history.keepQuery&&(g+=b.search);const v=m.history.state;v&&v.value===g||(e.params.history.replaceState?m.history.replaceState({value:g},null,g):m.history.pushState({value:g},null,g))},c=(f,h,m)=>{if(h)for(let b=0,w=e.slides.length;b{s=o(e.params.url),c(e.params.speed,s.value,!1)},u=()=>{const f=Ge();if(e.params.history){if(!f.history||!f.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(r=!0,s=o(e.params.url),!s.key&&!s.value){e.params.history.replaceState||f.addEventListener("popstate",d);return}c(0,s.value,e.params.runCallbacksOnInit),e.params.history.replaceState||f.addEventListener("popstate",d)}},p=()=>{const f=Ge();e.params.history.replaceState||f.removeEventListener("popstate",d)};a("init",()=>{e.params.history.enabled&&u()}),a("destroy",()=>{e.params.history.enabled&&p()}),a("transitionEnd _freeModeNoMomentumRelease",()=>{r&&l(e.params.history.key,e.activeIndex)}),a("slideChange",()=>{r&&e.params.cssMode&&l(e.params.history.key,e.activeIndex)})}function E$(t){let{swiper:e,extendParams:n,emit:a,on:r}=t,s=!1;const i=vt(),o=Ge();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(p,f){if(e.virtual&&e.params.virtual.enabled){const h=e.slides.filter(b=>b.getAttribute("data-hash")===f)[0];return h?parseInt(h.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(pt(e.slidesEl,`.${e.params.slideClass}[data-hash="${f}"], swiper-slide[data-hash="${f}"]`)[0])}}});const l=()=>{a("hashChange");const p=i.location.hash.replace("#",""),f=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],h=f?f.getAttribute("data-hash"):"";if(p!==h){const m=e.params.hashNavigation.getSlideIndex(e,p);if(typeof m>"u"||Number.isNaN(m))return;e.slideTo(m)}},c=()=>{if(!s||!e.params.hashNavigation.enabled)return;const p=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],f=p?p.getAttribute("data-hash")||p.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&o.history&&o.history.replaceState?(o.history.replaceState(null,null,`#${f}`||""),a("hashSet")):(i.location.hash=f||"",a("hashSet"))},d=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;s=!0;const p=i.location.hash.replace("#","");if(p){const h=e.params.hashNavigation.getSlideIndex(e,p);e.slideTo(h||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&o.addEventListener("hashchange",l)},u=()=>{e.params.hashNavigation.watchState&&o.removeEventListener("hashchange",l)};r("init",()=>{e.params.hashNavigation.enabled&&d()}),r("destroy",()=>{e.params.hashNavigation.enabled&&u()}),r("transitionEnd _freeModeNoMomentumRelease",()=>{s&&c()}),r("slideChange",()=>{s&&e.params.cssMode&&c()})}function C$(t){let{swiper:e,extendParams:n,on:a,emit:r,params:s}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let i,o,l=s&&s.autoplay?s.autoplay.delay:3e3,c=s&&s.autoplay?s.autoplay.delay:3e3,d,u=new Date().getTime,p,f,h,m,b,w;function g(H){!e||e.destroyed||!e.wrapperEl||H.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",g),x())}const v=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?p=!0:p&&(c=d,p=!1);const H=e.autoplay.paused?d:u+c-new Date().getTime();e.autoplay.timeLeft=H,r("autoplayTimeLeft",H,H/l),o=requestAnimationFrame(()=>{v()})},y=()=>{let H;return e.virtual&&e.params.virtual.enabled?H=e.slides.filter(O=>O.classList.contains("swiper-slide-active"))[0]:H=e.slides[e.activeIndex],H?parseInt(H.getAttribute("data-swiper-autoplay"),10):void 0},E=H=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),v();let D=typeof H>"u"?e.params.autoplay.delay:H;l=e.params.autoplay.delay,c=e.params.autoplay.delay;const O=y();!Number.isNaN(O)&&O>0&&typeof H>"u"&&(D=O,l=O,c=O),d=D;const _=e.params.speed,N=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(_,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,_,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(_,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,_,!0,!0),r("autoplay")),e.params.cssMode&&(u=new Date().getTime(),requestAnimationFrame(()=>{E()})))};return D>0?(clearTimeout(i),i=setTimeout(()=>{N()},D)):requestAnimationFrame(()=>{N()}),D},k=()=>{e.autoplay.running=!0,E(),r("autoplayStart")},$=()=>{e.autoplay.running=!1,clearTimeout(i),cancelAnimationFrame(o),r("autoplayStop")},M=(H,D)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(i),H||(w=!0);const O=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",g):x()};if(e.autoplay.paused=!0,D){b&&(d=e.params.autoplay.delay),b=!1,O();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-u),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),O())},x=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(u=new Date().getTime(),w?(w=!1,E(d)):E(),e.autoplay.paused=!1,r("autoplayResume"))},F=()=>{if(e.destroyed||!e.autoplay.running)return;const H=vt();H.visibilityState==="hidden"&&(w=!0,M(!0)),H.visibilityState==="visible"&&x()},S=H=>{H.pointerType==="mouse"&&(w=!0,!(e.animating||e.autoplay.paused)&&M(!0))},I=H=>{H.pointerType==="mouse"&&e.autoplay.paused&&x()},B=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",S),e.el.addEventListener("pointerleave",I))},P=()=>{e.el.removeEventListener("pointerenter",S),e.el.removeEventListener("pointerleave",I)},L=()=>{vt().addEventListener("visibilitychange",F)},V=()=>{vt().removeEventListener("visibilitychange",F)};a("init",()=>{e.params.autoplay.enabled&&(B(),L(),u=new Date().getTime(),k())}),a("destroy",()=>{P(),V(),e.autoplay.running&&$()}),a("beforeTransitionStart",(H,D,O)=>{e.destroyed||!e.autoplay.running||(O||!e.params.autoplay.disableOnInteraction?M(!0,!0):$())}),a("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){$();return}f=!0,h=!1,w=!1,m=setTimeout(()=>{w=!0,h=!0,M(!0)},200)}}),a("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!f)){if(clearTimeout(m),clearTimeout(i),e.params.autoplay.disableOnInteraction){h=!1,f=!1;return}h&&e.params.cssMode&&x(),h=!1,f=!1}}),a("slideChange",()=>{e.destroyed||!e.autoplay.running||(b=!0)}),Object.assign(e.autoplay,{start:k,stop:$,pause:M,resume:x})}function k$(t){let{swiper:e,extendParams:n,on:a}=t;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,s=!1;e.thumbs={swiper:null};function i(){const c=e.thumbs.swiper;if(!c||c.destroyed)return;const d=c.clickedIndex,u=c.clickedSlide;if(u&&u.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof d>"u"||d===null)return;let p;c.params.loop?p=parseInt(c.clickedSlide.getAttribute("data-swiper-slide-index"),10):p=d,e.params.loop?e.slideToLoop(p):e.slideTo(p)}function o(){const{thumbs:c}=e.params;if(r)return!1;r=!0;const d=e.constructor;if(c.swiper instanceof d)e.thumbs.swiper=c.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(wa(c.swiper)){const u=Object.assign({},c.swiper);Object.assign(u,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new d(u),s=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",i),!0}function l(c){const d=e.thumbs.swiper;if(!d||d.destroyed)return;const u=d.params.slidesPerView==="auto"?d.slidesPerViewDynamic():d.params.slidesPerView;let p=1;const f=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(p=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(p=1),p=Math.floor(p),d.slides.forEach(b=>b.classList.remove(f)),d.params.loop||d.params.virtual&&d.params.virtual.enabled)for(let b=0;b{w.classList.add(f)});else for(let b=0;by.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];w=d.slides.indexOf(v),g=e.activeIndex>e.previousIndex?"next":"prev"}else w=e.realIndex,g=w>e.previousIndex?"next":"prev";m&&(w+=g==="next"?h:-1*h),d.visibleSlidesIndexes&&d.visibleSlidesIndexes.indexOf(w)<0&&(d.params.centeredSlides?w>b?w=w-Math.floor(u/2)+1:w=w+Math.floor(u/2)-1:w>b&&d.params.slidesPerGroup,d.slideTo(w,c?0:void 0))}}a("beforeInit",()=>{const{thumbs:c}=e.params;if(!(!c||!c.swiper))if(typeof c.swiper=="string"||c.swiper instanceof HTMLElement){const d=vt(),u=()=>{const f=typeof c.swiper=="string"?d.querySelector(c.swiper):c.swiper;if(f&&f.swiper)c.swiper=f.swiper,o(),l(!0);else if(f){const h=m=>{c.swiper=m.detail[0],f.removeEventListener("init",h),o(),l(!0),c.swiper.update(),e.update()};f.addEventListener("init",h)}return f},p=()=>{if(e.destroyed)return;u()||requestAnimationFrame(p)};requestAnimationFrame(p)}else o(),l(!0)}),a("slideChange update resize observerUpdate",()=>{l()}),a("setTransition",(c,d)=>{const u=e.thumbs.swiper;!u||u.destroyed||u.setTransition(d)}),a("beforeDestroy",()=>{const c=e.thumbs.swiper;!c||c.destroyed||s&&c.destroy()}),Object.assign(e.thumbs,{init:o,update:l})}function $$(t){let{swiper:e,extendParams:n,emit:a,once:r}=t;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function s(){if(e.params.cssMode)return;const l=e.getTranslate();e.setTranslate(l),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function i(){if(e.params.cssMode)return;const{touchEventsData:l,touches:c}=e;l.velocities.length===0&&l.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:l.touchStartTime}),l.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Nt()})}function o(l){let{currentPos:c}=l;if(e.params.cssMode)return;const{params:d,wrapperEl:u,rtlTranslate:p,snapGrid:f,touchEventsData:h}=e,b=Nt()-h.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length1){const M=h.velocities.pop(),x=h.velocities.pop(),F=M.position-x.position,S=M.time-x.time;e.velocity=F/S,e.velocity/=2,Math.abs(e.velocity)150||Nt()-M.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,h.velocities.length=0;let w=1e3*d.freeMode.momentumRatio;const g=e.velocity*w;let v=e.translate+g;p&&(v=-v);let y=!1,E;const k=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let $;if(ve.minTranslate())d.freeMode.momentumBounce?(v-e.minTranslate()>k&&(v=e.minTranslate()+k),E=e.minTranslate(),y=!0,h.allowMomentumBounce=!0):v=e.minTranslate(),d.loop&&d.centeredSlides&&($=!0);else if(d.freeMode.sticky){let M;for(let x=0;x-v){M=x;break}Math.abs(f[M]-v){e.loopFix()}),e.velocity!==0){if(p?w=Math.abs((-v-e.translate)/e.velocity):w=Math.abs((v-e.translate)/e.velocity),d.freeMode.sticky){const M=Math.abs((p?-v:v)-e.translate),x=e.slidesSizesGrid[e.activeIndex];M{!e||e.destroyed||!h.allowMomentumBounce||(a("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(E),Pa(u,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(a("_freeModeNoMomentumRelease"),e.updateProgress(v),e.setTransition(w),e.setTranslate(v),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Pa(u,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(v),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&a("_freeModeNoMomentumRelease");(!d.freeMode.momentum||b>=d.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:s,onTouchMove:i,onTouchEnd:o}})}function x$(t){let{swiper:e,extendParams:n,on:a}=t;n({grid:{rows:1,fill:"column"}});let r,s,i,o;const l=()=>{let h=e.params.spaceBetween;return typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*e.size:typeof h=="string"&&(h=parseFloat(h)),h},c=h=>{const{slidesPerView:m}=e.params,{rows:b,fill:w}=e.params.grid;i=Math.floor(h/b),Math.floor(h/b)===h/b?r=h:r=Math.ceil(h/b)*b,m!=="auto"&&w==="row"&&(r=Math.max(r,m*b)),s=r/b},d=(h,m,b,w)=>{const{slidesPerGroup:g}=e.params,v=l(),{rows:y,fill:E}=e.params.grid;let k,$,M;if(E==="row"&&g>1){const x=Math.floor(h/(g*y)),F=h-y*g*x,S=x===0?g:Math.min(Math.ceil((b-x*y*g)/y),g);M=Math.floor(F/S),$=F-M*S+x*g,k=$+M*r/y,m.style.order=k}else E==="column"?($=Math.floor(h/y),M=h-$*y,($>i||$===i&&M===y-1)&&(M+=1,M>=y&&(M=0,$+=1))):(M=Math.floor(h/s),$=h-M*s);m.row=M,m.column=$,m.style[w("margin-top")]=M!==0?v&&`${v}px`:""},u=(h,m,b)=>{const{centeredSlides:w,roundLengths:g}=e.params,v=l(),{rows:y}=e.params.grid;if(e.virtualSize=(h+v)*r,e.virtualSize=Math.ceil(e.virtualSize/y)-v,e.wrapperEl.style[b("width")]=`${e.virtualSize+v}px`,w){const E=[];for(let k=0;k{o=e.params.grid&&e.params.grid.rows>1},f=()=>{const{params:h,el:m}=e,b=h.grid&&h.grid.rows>1;o&&!b?(m.classList.remove(`${h.containerModifierClass}grid`,`${h.containerModifierClass}grid-column`),i=1,e.emitContainerClasses()):!o&&b&&(m.classList.add(`${h.containerModifierClass}grid`),h.grid.fill==="column"&&m.classList.add(`${h.containerModifierClass}grid-column`),e.emitContainerClasses()),o=b};a("init",p),a("update",f),e.grid={initSlides:c,updateSlide:d,updateWrapperSize:u}}function S$(t){const e=this,{params:n,slidesEl:a}=e;n.loop&&e.loopDestroy();const r=s=>{if(typeof s=="string"){const i=document.createElement("div");i.innerHTML=s,a.append(i.children[0]),i.innerHTML=""}else a.append(s)};if(typeof t=="object"&&"length"in t)for(let s=0;s{if(typeof o=="string"){const l=document.createElement("div");l.innerHTML=o,r.prepend(l.children[0]),l.innerHTML=""}else r.prepend(o)};if(typeof t=="object"&&"length"in t){for(let o=0;o=o){n.appendSlide(e);return}let l=i>t?i+1:i;const c=[];for(let d=o-1;d>=t;d-=1){const u=n.slides[d];u.remove(),c.unshift(u)}if(typeof e=="object"&&"length"in e){for(let d=0;dt?i+e.length:i}else s.append(e);for(let d=0;d{if(n.params.effect!==e)return;n.classNames.push(`${n.params.containerModifierClass}${e}`),o&&o()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const u=i?i():{};Object.assign(n.params,u),Object.assign(n.originalParams,u)}),a("setTranslate",()=>{n.params.effect===e&&r()}),a("setTransition",(u,p)=>{n.params.effect===e&&s(p)}),a("transitionEnd",()=>{if(n.params.effect===e&&l){if(!c||!c().slideShadows)return;n.slides.forEach(u=>{u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(p=>p.remove())}),l()}});let d;a("virtualUpdate",()=>{n.params.effect===e&&(n.slides.length||(d=!0),requestAnimationFrame(()=>{d&&n.slides&&n.slides.length&&(r(),d=!1)}))})}function ja(t,e){const n=_n(e);return n!==e&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function Lr(t){let{swiper:e,duration:n,transformElements:a,allSlides:r}=t;const{activeIndex:s}=e,i=o=>o.parentElement?o.parentElement:e.slides.filter(c=>c.shadowRoot&&c.shadowRoot===o.parentNode)[0];if(e.params.virtualTranslate&&n!==0){let o=!1,l;r?l=a:l=a.filter(c=>{const d=c.classList.contains("swiper-slide-transform")?i(c):c;return e.getSlideIndex(d)===s}),l.forEach(c=>{Pa(c,()=>{if(o||!e||e.destroyed)return;o=!0,e.animating=!1;const d=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(d)})})}}function O$(t){let{swiper:e,extendParams:n,on:a}=t;n({fadeEffect:{crossFade:!1}}),ca({effect:"fade",swiper:e,on:a,setTranslate:()=>{const{slides:i}=e,o=e.params.fadeEffect;for(let l=0;l{const o=e.slides.map(l=>_n(l));o.forEach(l=>{l.style.transitionDuration=`${i}ms`}),Lr({swiper:e,duration:i,transformElements:o,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function A$(t){let{swiper:e,extendParams:n,on:a}=t;n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const r=(l,c,d)=>{let u=d?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),p=d?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");u||(u=Yt("div",`swiper-slide-shadow-cube swiper-slide-shadow-${d?"left":"top"}`.split(" ")),l.append(u)),p||(p=Yt("div",`swiper-slide-shadow-cube swiper-slide-shadow-${d?"right":"bottom"}`.split(" ")),l.append(p)),u&&(u.style.opacity=Math.max(-c,0)),p&&(p.style.opacity=Math.max(c,0))};ca({effect:"cube",swiper:e,on:a,setTranslate:()=>{const{el:l,wrapperEl:c,slides:d,width:u,height:p,rtlTranslate:f,size:h,browser:m}=e,b=e.params.cubeEffect,w=e.isHorizontal(),g=e.virtual&&e.params.virtual.enabled;let v=0,y;b.shadow&&(w?(y=e.wrapperEl.querySelector(".swiper-cube-shadow"),y||(y=Yt("div","swiper-cube-shadow"),e.wrapperEl.append(y)),y.style.height=`${u}px`):(y=l.querySelector(".swiper-cube-shadow"),y||(y=Yt("div","swiper-cube-shadow"),l.append(y))));for(let k=0;k-1&&(v=M*90+S*90,f&&(v=-M*90-S*90)),$.style.transform=L,b.slideShadows&&r($,S,w)}if(c.style.transformOrigin=`50% 50% -${h/2}px`,c.style["-webkit-transform-origin"]=`50% 50% -${h/2}px`,b.shadow)if(w)y.style.transform=`translate3d(0px, ${u/2+b.shadowOffset}px, ${-u/2}px) rotateX(90deg) rotateZ(0deg) scale(${b.shadowScale})`;else{const k=Math.abs(v)-Math.floor(Math.abs(v)/90)*90,$=1.5-(Math.sin(k*2*Math.PI/360)/2+Math.cos(k*2*Math.PI/360)/2),M=b.shadowScale,x=b.shadowScale/$,F=b.shadowOffset;y.style.transform=`scale3d(${M}, 1, ${x}) translate3d(0px, ${p/2+F}px, ${-p/2/x}px) rotateX(-90deg)`}const E=(m.isSafari||m.isWebView)&&m.needPerspectiveFix?-h/2:0;c.style.transform=`translate3d(0px,0,${E}px) rotateX(${e.isHorizontal()?0:v}deg) rotateY(${e.isHorizontal()?-v:0}deg)`,c.style.setProperty("--swiper-cube-translate-z",`${E}px`)},setTransition:l=>{const{el:c,slides:d}=e;if(d.forEach(u=>{u.style.transitionDuration=`${l}ms`,u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(p=>{p.style.transitionDuration=`${l}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const u=c.querySelector(".swiper-cube-shadow");u&&(u.style.transitionDuration=`${l}ms`)}},recreateShadows:()=>{const l=e.isHorizontal();e.slides.forEach(c=>{const d=Math.max(Math.min(c.progress,1),-1);r(c,d,l)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function sa(t,e,n){const a=`swiper-slide-shadow${n?`-${n}`:""}${t?` swiper-slide-shadow-${t}`:""}`,r=_n(e);let s=r.querySelector(`.${a.split(" ").join(".")}`);return s||(s=Yt("div",a.split(" ")),r.append(s)),s}function D$(t){let{swiper:e,extendParams:n,on:a}=t;n({flipEffect:{slideShadows:!0,limitRotation:!0}});const r=(l,c)=>{let d=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),u=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");d||(d=sa("flip",l,e.isHorizontal()?"left":"top")),u||(u=sa("flip",l,e.isHorizontal()?"right":"bottom")),d&&(d.style.opacity=Math.max(-c,0)),u&&(u.style.opacity=Math.max(c,0))};ca({effect:"flip",swiper:e,on:a,setTranslate:()=>{const{slides:l,rtlTranslate:c}=e,d=e.params.flipEffect;for(let u=0;u{const c=e.slides.map(d=>_n(d));c.forEach(d=>{d.style.transitionDuration=`${l}ms`,d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${l}ms`})}),Lr({swiper:e,duration:l,transformElements:c})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(l=>{let c=l.progress;e.params.flipEffect.limitRotation&&(c=Math.max(Math.min(l.progress,1),-1)),r(l,c)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function L$(t){let{swiper:e,extendParams:n,on:a}=t;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),ca({effect:"coverflow",swiper:e,on:a,setTranslate:()=>{const{width:i,height:o,slides:l,slidesSizesGrid:c}=e,d=e.params.coverflowEffect,u=e.isHorizontal(),p=e.translate,f=u?-p+i/2:-p+o/2,h=u?d.rotate:-d.rotate,m=d.depth;for(let b=0,w=l.length;b0?k:0),H&&(H.style.opacity=-k>0?-k:0)}}},setTransition:i=>{e.slides.map(l=>_n(l)).forEach(l=>{l.style.transitionDuration=`${i}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(c=>{c.style.transitionDuration=`${i}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function R$(t){let{swiper:e,extendParams:n,on:a}=t;n({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const r=o=>typeof o=="string"?o:`${o}px`;ca({effect:"creative",swiper:e,on:a,setTranslate:()=>{const{slides:o,wrapperEl:l,slidesSizesGrid:c}=e,d=e.params.creativeEffect,{progressMultiplier:u}=d,p=e.params.centeredSlides;if(p){const f=c[0]/2-e.params.slidesOffsetBefore||0;l.style.transform=`translateX(calc(50% - ${f}px))`}for(let f=0;f0&&(k=d.prev,E=!0),v.forEach((B,P)=>{v[P]=`calc(${B}px + (${r(k.translate[P])} * ${Math.abs(b*u)}))`}),y.forEach((B,P)=>{y[P]=k.rotate[P]*Math.abs(b*u)}),h.style.zIndex=-Math.abs(Math.round(m))+o.length;const $=v.join(", "),M=`rotateX(${y[0]}deg) rotateY(${y[1]}deg) rotateZ(${y[2]}deg)`,x=w<0?`scale(${1+(1-k.scale)*w*u})`:`scale(${1-(1-k.scale)*w*u})`,F=w<0?1+(1-k.opacity)*w*u:1-(1-k.opacity)*w*u,S=`translate3d(${$}) ${M} ${x}`;if(E&&k.shadow||!E){let B=h.querySelector(".swiper-slide-shadow");if(!B&&k.shadow&&(B=sa("creative",h)),B){const P=d.shadowPerProgress?b*(1/d.limitProgress):b;B.style.opacity=Math.min(Math.max(Math.abs(P),0),1)}}const I=ja(d,h);I.style.transform=S,I.style.opacity=F,k.origin&&(I.style.transformOrigin=k.origin)}},setTransition:o=>{const l=e.slides.map(c=>_n(c));l.forEach(c=>{c.style.transitionDuration=`${o}ms`,c.querySelectorAll(".swiper-slide-shadow").forEach(d=>{d.style.transitionDuration=`${o}ms`})}),Lr({swiper:e,duration:o,transformElements:l,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function H$(t){let{swiper:e,extendParams:n,on:a}=t;n({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),ca({effect:"cards",swiper:e,on:a,setTranslate:()=>{const{slides:i,activeIndex:o,rtlTranslate:l}=e,c=e.params.cardsEffect,{startTranslate:d,isTouched:u}=e.touchEventsData,p=l?-e.translate:e.translate;for(let f=0;f0&&b<1&&(u||e.params.cssMode)&&p-1&&(u||e.params.cssMode)&&p>d;if(x||F){const P=(1-Math.abs((Math.abs(b)-.5)/.5))**.5;k+=-28*b*P,E+=-.5*P,$+=96*P,v=`${-25*P*Math.abs(b)}%`}if(b<0?g=`calc(${g}px ${l?"-":"+"} (${$*Math.abs(b)}%))`:b>0?g=`calc(${g}px ${l?"-":"+"} (-${$*Math.abs(b)}%))`:g=`${g}px`,!e.isHorizontal()){const P=v;v=g,g=P}const S=b<0?`${1+(1-E)*b}`:`${1-(1-E)*b}`,I=` translate3d(${g}, ${v}, ${y}px) rotateZ(${c.rotate?l?-k:k:0}deg) scale(${S}) - `;if(c.slideShadows){let P=h.querySelector(".swiper-slide-shadow");P||(P=sa("cards",h)),P&&(P.style.opacity=Math.min(Math.max((Math.abs(b)-.5)/.5,0),1))}h.style.zIndex=-Math.abs(Math.round(m))+i.length;const B=ja(c,h);B.style.transform=I}},setTransition:i=>{const o=e.slides.map(l=>_n(l));o.forEach(l=>{l.style.transitionDuration=`${i}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${i}ms`})}),Lr({swiper:e,duration:i,transformElements:o})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}const R$=[l$,c$,d$,u$,p$,f$,h$,m$,g$,b$,v$,w$,y$,E$,C$,k$,M$,B$,I$,O$,A$,D$,L$];ra.use(R$);const Rr=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ia(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function wr(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(a=>n.indexOf(a)<0).forEach(a=>{typeof t[a]>"u"?t[a]=e[a]:ia(e[a])&&ia(t[a])&&Object.keys(e[a]).length>0?e[a].__swiper__?t[a]=e[a]:wr(t[a],e[a]):t[a]=e[a]})}function H$(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function F$(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function z$(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function lr(t){return t===void 0&&(t=""),t.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}function N$(t){let{swiper:e,slides:n,passedParams:a,changedParams:r,nextEl:s,prevEl:i,scrollbarEl:o,paginationEl:l}=t;const c=r.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:d,pagination:u,navigation:p,scrollbar:f,virtual:h,thumbs:m}=e;let b,w,g,v,y,E,k,$;r.includes("thumbs")&&a.thumbs&&a.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(b=!0),r.includes("controller")&&a.controller&&a.controller.control&&d.controller&&!d.controller.control&&(w=!0),r.includes("pagination")&&a.pagination&&(a.pagination.el||l)&&(d.pagination||d.pagination===!1)&&u&&!u.el&&(g=!0),r.includes("scrollbar")&&a.scrollbar&&(a.scrollbar.el||o)&&(d.scrollbar||d.scrollbar===!1)&&f&&!f.el&&(v=!0),r.includes("navigation")&&a.navigation&&(a.navigation.prevEl||i)&&(a.navigation.nextEl||s)&&(d.navigation||d.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(y=!0);const M=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),d[x].prevEl=void 0,d[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),d[x].el=void 0,e[x].el=void 0))};r.includes("loop")&&e.isElement&&(d.loop&&!a.loop?E=!0:!d.loop&&a.loop?k=!0:$=!0),c.forEach(x=>{if(ia(d[x])&&ia(a[x]))wr(d[x],a[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in a[x]&&!a[x].enabled&&M(x);else{const F=a[x];(F===!0||F===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?F===!1&&M(x):d[x]=a[x]}}),c.includes("controller")&&!w&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),r.includes("children")&&n&&h&&d.virtual.enabled&&(h.slides=n,h.update(!0)),r.includes("children")&&n&&d.loop&&($=!0),b&&m.init()&&m.update(!0),w&&(e.controller.control=d.controller.control),g&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(d.pagination.el=l),u.init(),u.render(),u.update()),v&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(d.scrollbar.el=o),f.init(),f.updateSize(),f.setTranslate()),y&&(e.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=e.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),e.el.appendChild(s)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),i.innerHTML=e.hostEl.constructor.prevButtonSvg,i.part.add("button-prev"),e.el.appendChild(i))),s&&(d.navigation.nextEl=s),i&&(d.navigation.prevEl=i),p.init(),p.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=a.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=a.allowSlidePrev),r.includes("direction")&&e.changeDirection(a.direction,!1),(E||$)&&e.loopDestroy(),(k||$)&&e.loopCreate(),e.update()}const Ho=t=>{if(parseFloat(t)===Number(t))return Number(t);if(t==="true"||t==="")return!0;if(t==="false")return!1;if(t==="null")return null;if(t!=="undefined"){if(typeof t=="string"&&t.includes("{")&&t.includes("}")&&t.includes('"')){let e;try{e=JSON.parse(t)}catch{e=t}return e}return t}},Fo=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function zo(t,e,n){const a={},r={};wr(a,As);const s=[...Rr,"on"],i=s.map(l=>l.replace(/_/,""));s.forEach(l=>{l=l.replace("_",""),typeof t[l]<"u"&&(r[l]=t[l])});const o=[...t.attributes];return typeof e=="string"&&typeof n<"u"&&o.push({name:e,value:ia(n)?{...n}:n}),o.forEach(l=>{const c=Fo.filter(d=>l.name.indexOf(`${d}-`)===0)[0];if(c){const d=lr(c),u=lr(l.name.split(`${c}-`)[1]);typeof r[d]>"u"&&(r[d]={}),r[d]===!0&&(r[d]={enabled:!0}),r[d][u]=Ho(l.value)}else{const d=lr(l.name);if(!i.includes(d))return;const u=Ho(l.value);r[d]&&Fo.includes(l.name)&&!ia(u)?(r[d].constructor!==Object&&(r[d]={}),r[d].enabled=!!u):r[d]=u}}),wr(a,r),a.navigation?a.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...a.navigation!==!0?a.navigation:{}}:a.navigation===!1&&delete a.navigation,a.scrollbar?a.scrollbar={el:".swiper-scrollbar",...a.scrollbar!==!0?a.scrollbar:{}}:a.scrollbar===!1&&delete a.scrollbar,a.pagination?a.pagination={el:".swiper-pagination",...a.pagination!==!0?a.pagination:{}}:a.pagination===!1&&delete a.pagination,{params:a,passedParams:r}}const V$=":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;overflow:clip;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",_$="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}";class j${}const _c=typeof window>"u"||typeof HTMLElement>"u"?j$:HTMLElement,No=` - `,jc=(t,e)=>{if(typeof CSSStyleSheet<"u"&&t.adoptedStyleSheets){const n=new CSSStyleSheet;n.replaceSync(e),t.adoptedStyleSheets=[n]}else{const n=document.createElement("style");n.rel="stylesheet",n.textContent=e,t.appendChild(n)}};class qc extends _c{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return No}static get prevButtonSvg(){return No.replace("/>",' transform-origin="center" transform="rotate(180)"/>')}cssStyles(){return[V$,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(` + `;if(c.slideShadows){let P=h.querySelector(".swiper-slide-shadow");P||(P=sa("cards",h)),P&&(P.style.opacity=Math.min(Math.max((Math.abs(b)-.5)/.5,0),1))}h.style.zIndex=-Math.abs(Math.round(m))+i.length;const B=ja(c,h);B.style.transform=I}},setTransition:i=>{const o=e.slides.map(l=>_n(l));o.forEach(l=>{l.style.transitionDuration=`${i}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${i}ms`})}),Lr({swiper:e,duration:i,transformElements:o})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}const F$=[d$,u$,p$,f$,h$,m$,g$,b$,v$,w$,y$,E$,C$,k$,$$,x$,I$,O$,A$,D$,L$,R$,H$];ra.use(F$);const Rr=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ia(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function wr(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(a=>n.indexOf(a)<0).forEach(a=>{typeof t[a]>"u"?t[a]=e[a]:ia(e[a])&&ia(t[a])&&Object.keys(e[a]).length>0?e[a].__swiper__?t[a]=e[a]:wr(t[a],e[a]):t[a]=e[a]})}function z$(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function N$(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function V$(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function lr(t){return t===void 0&&(t=""),t.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}function _$(t){let{swiper:e,slides:n,passedParams:a,changedParams:r,nextEl:s,prevEl:i,scrollbarEl:o,paginationEl:l}=t;const c=r.filter(x=>x!=="children"&&x!=="direction"&&x!=="wrapperClass"),{params:d,pagination:u,navigation:p,scrollbar:f,virtual:h,thumbs:m}=e;let b,w,g,v,y,E,k,$;r.includes("thumbs")&&a.thumbs&&a.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(b=!0),r.includes("controller")&&a.controller&&a.controller.control&&d.controller&&!d.controller.control&&(w=!0),r.includes("pagination")&&a.pagination&&(a.pagination.el||l)&&(d.pagination||d.pagination===!1)&&u&&!u.el&&(g=!0),r.includes("scrollbar")&&a.scrollbar&&(a.scrollbar.el||o)&&(d.scrollbar||d.scrollbar===!1)&&f&&!f.el&&(v=!0),r.includes("navigation")&&a.navigation&&(a.navigation.prevEl||i)&&(a.navigation.nextEl||s)&&(d.navigation||d.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(y=!0);const M=x=>{e[x]&&(e[x].destroy(),x==="navigation"?(e.isElement&&(e[x].prevEl.remove(),e[x].nextEl.remove()),d[x].prevEl=void 0,d[x].nextEl=void 0,e[x].prevEl=void 0,e[x].nextEl=void 0):(e.isElement&&e[x].el.remove(),d[x].el=void 0,e[x].el=void 0))};r.includes("loop")&&e.isElement&&(d.loop&&!a.loop?E=!0:!d.loop&&a.loop?k=!0:$=!0),c.forEach(x=>{if(ia(d[x])&&ia(a[x]))wr(d[x],a[x]),(x==="navigation"||x==="pagination"||x==="scrollbar")&&"enabled"in a[x]&&!a[x].enabled&&M(x);else{const F=a[x];(F===!0||F===!1)&&(x==="navigation"||x==="pagination"||x==="scrollbar")?F===!1&&M(x):d[x]=a[x]}}),c.includes("controller")&&!w&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),r.includes("children")&&n&&h&&d.virtual.enabled&&(h.slides=n,h.update(!0)),r.includes("children")&&n&&d.loop&&($=!0),b&&m.init()&&m.update(!0),w&&(e.controller.control=d.controller.control),g&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(d.pagination.el=l),u.init(),u.render(),u.update()),v&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(d.scrollbar.el=o),f.init(),f.updateSize(),f.setTranslate()),y&&(e.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=e.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),e.el.appendChild(s)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),i.innerHTML=e.hostEl.constructor.prevButtonSvg,i.part.add("button-prev"),e.el.appendChild(i))),s&&(d.navigation.nextEl=s),i&&(d.navigation.prevEl=i),p.init(),p.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=a.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=a.allowSlidePrev),r.includes("direction")&&e.changeDirection(a.direction,!1),(E||$)&&e.loopDestroy(),(k||$)&&e.loopCreate(),e.update()}const Ho=t=>{if(parseFloat(t)===Number(t))return Number(t);if(t==="true"||t==="")return!0;if(t==="false")return!1;if(t==="null")return null;if(t!=="undefined"){if(typeof t=="string"&&t.includes("{")&&t.includes("}")&&t.includes('"')){let e;try{e=JSON.parse(t)}catch{e=t}return e}return t}},Fo=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function zo(t,e,n){const a={},r={};wr(a,As);const s=[...Rr,"on"],i=s.map(l=>l.replace(/_/,""));s.forEach(l=>{l=l.replace("_",""),typeof t[l]<"u"&&(r[l]=t[l])});const o=[...t.attributes];return typeof e=="string"&&typeof n<"u"&&o.push({name:e,value:ia(n)?{...n}:n}),o.forEach(l=>{const c=Fo.filter(d=>l.name.indexOf(`${d}-`)===0)[0];if(c){const d=lr(c),u=lr(l.name.split(`${c}-`)[1]);typeof r[d]>"u"&&(r[d]={}),r[d]===!0&&(r[d]={enabled:!0}),r[d][u]=Ho(l.value)}else{const d=lr(l.name);if(!i.includes(d))return;const u=Ho(l.value);r[d]&&Fo.includes(l.name)&&!ia(u)?(r[d].constructor!==Object&&(r[d]={}),r[d].enabled=!!u):r[d]=u}}),wr(a,r),a.navigation?a.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...a.navigation!==!0?a.navigation:{}}:a.navigation===!1&&delete a.navigation,a.scrollbar?a.scrollbar={el:".swiper-scrollbar",...a.scrollbar!==!0?a.scrollbar:{}}:a.scrollbar===!1&&delete a.scrollbar,a.pagination?a.pagination={el:".swiper-pagination",...a.pagination!==!0?a.pagination:{}}:a.pagination===!1&&delete a.pagination,{params:a,passedParams:r}}const j$=":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;overflow:clip;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",q$="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}";class W${}const _c=typeof window>"u"||typeof HTMLElement>"u"?W$:HTMLElement,No=` + `,jc=(t,e)=>{if(typeof CSSStyleSheet<"u"&&t.adoptedStyleSheets){const n=new CSSStyleSheet;n.replaceSync(e),t.adoptedStyleSheets=[n]}else{const n=document.createElement("style");n.rel="stylesheet",n.textContent=e,t.appendChild(n)}};class qc extends _c{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return No}static get prevButtonSvg(){return No.replace("/>",' transform-origin="center" transform="rotate(180)"/>')}cssStyles(){return[j$,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(` `)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const e=this.slideSlots||0,n=[...this.querySelectorAll("[slot^=slide-]")].map(a=>parseInt(a.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=n.length?Math.max(...n)+1:0,!!this.rendered){if(this.slideSlots>e)for(let a=e;a=0;r-=1)r>this.slideSlots&&a[r].remove()}}}render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&jc(this.shadowRoot,e),this.cssLinks().forEach(a=>{if(this.shadowRoot.querySelector(`link[href="${a}"]`))return;const s=document.createElement("link");s.rel="stylesheet",s.href=a,this.shadowRoot.appendChild(s)});const n=document.createElement("div");n.classList.add("swiper"),n.part="container",n.innerHTML=`
            @@ -193,24 +193,24 @@ ${l.toString()}`)}return r&&(typeof r=="string"?o+=`?${r}`:Object.keys(r).length `).join("")}
            - ${H$(this.passedParams)?` + ${z$(this.passedParams)?`
            ${this.constructor.prevButtonSvg}
            ${this.constructor.nextButtonSvg}
            `:""} - ${F$(this.passedParams)?` + ${N$(this.passedParams)?`
            `:""} - ${z$(this.passedParams)?` + ${V$(this.passedParams)?`
            `:""} - `,this.shadowRoot.appendChild(n),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0;const{params:n,passedParams:a}=zo(this);this.swiperParams=n,this.passedParams=a,delete this.swiperParams.init,this.render(),this.swiper=new ra(this.shadowRoot.querySelector(".swiper"),{...n.virtual?{}:{observer:!0,observeSlideChildren:this.slideSlots>0},...n,touchEventsTarget:"container",onAny:function(r){r==="observerUpdate"&&e.calcSlideSlots();const s=n.eventsPrefix?`${n.eventsPrefix}${r.toLowerCase()}`:r.toLowerCase();for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;ln.includes("_")).map(n=>n.replace(/[A-Z]/g,a=>`-${a}`).replace("_","").toLowerCase())}}Rr.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(qc.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class q$ extends _c{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(jc(this.shadowRoot,_$),this.shadowRoot.appendChild(document.createElement("slot")),e){const n=document.createElement("div");n.classList.add("swiper-lazy-preloader"),n.part.add("preloader"),this.shadowRoot.appendChild(n)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const W$=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",qc),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",q$))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Rr.push(...t)});W$();function ls(t){const e=this,n=C(t);if(n.length===0)return;const a=n[0].swiper&&n[0].swiper.isElement;if(n[0].swiper&&!n[0].swiper.isElement)return;let r,s={},i,o;n.hasClass("tabs")&&(r=n.children("swiper-slide").indexOf(n.children(".tab-active")[0]),i=!0,o=n.find(".tabs-routable").length>0),n.attr("data-swiper")?s=JSON.parse(n.attr("data-swiper")):n[0].f7SwiperParams?s=n[0].f7SwiperParams:(s=n.dataset(),Object.keys(s).forEach(u=>{const p=s[u];if(typeof p=="string"&&p.indexOf("{")===0&&p.indexOf("}")>0)try{s[u]=JSON.parse(p)}catch{}})),typeof s.initialSlide>"u"&&typeof r<"u"&&(s.initialSlide=r);const l=a?n[0].swiper:e.swiper.create(n[0],s);a&&l.slideTo(r,0);function c(){l.update()}const d=n.parents(".tab").filter(u=>C(u).parent(".tabs").parent(".tabs-animated-wrap, swiper-container.tabs").length===0).eq(0);n.parents(".popup, .login-screen, .sheet-modal, .popover").on("modal:open",c),n.parents(".panel").on("panel:open",c),d&&d.length&&d.on("tab:show",c),l.on("beforeDestroy",()=>{n.parents(".popup, .login-screen, .sheet-modal, .popover").off("modal:open",c),n.parents(".panel").off("panel:open",c),d&&d.length&&d.off("tab:show",c)}),i&&l.on("slideChange",()=>{if(o){let u=e.views.get(n.parents(".view"));u||(u=e.views.main);const p=u.router,f=p.findTabRouteUrl(C(l.slides).eq(l.activeIndex)[0]);f&&setTimeout(()=>{p.navigate(f)},0)}else e.tab.show({tabEl:C(l.slides).eq(l.activeIndex)})})}const Y$={name:"swiper",static:{Swiper:ra},create(){const t=this;t.swiper=et({defaultSelector:".swiper",constructor:ra,domProp:"swiper"})},on:{pageMounted(t){const e=this;t.$el.find("swiper-container.tabs").each(n=>{ls.call(e,n)})},pageInit(t){const e=this;t.$el.find("swiper-container.tabs").each(n=>{ls.call(e,n)})},pageReinit(t){const e=this;t.$el.find("swiper-container.tabs").each(n=>{const a=e.swiper.get(n);a&&a.update&&a.update()})},tabMounted(t){const e=this;C(t).find("swiper-container.tabs").each(n=>{ls.call(e,n)})},tabShow(t){const e=this;C(t).find("swiper-container.tabs").each(n=>{const a=e.swiper.get(n);a&&a.update&&a.update()})},tabBeforeRemove(t){const e=this;C(t).find("swiper-container.tabs").each(n=>{e.swiper.destroy(n)})}}};let Vo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this;a.app=e;const r=W({on:{}},e.params.photoBrowser);a.useModulesParams(r),a.params=W(r,n),W(a,{exposed:!1,opened:!1,activeIndex:a.params.swiper.initialSlide,url:a.params.url,swipeToClose:{allow:!0,isTouched:!1,diff:void 0,start:void 0,current:void 0,started:!1,activeSlide:void 0,timeStart:void 0}}),a.useModules(),a.init()}get view(){const{params:e,app:n}=this;return e.view||n.views.main}onSlideChange(e){const n=this;n.activeIndex=e.activeIndex;let a=e.activeIndex+1,r=n.params.virtualSlides?n.params.photos.length:e.slides.length;e.params.loop&&(r-=2,a-=e.loopedSlides,a<1&&(a=r+a),a>r&&(a-=r));const s=n.params.virtualSlides?C(e.wrapperEl).find(`.swiper-slide[data-swiper-slide-index="${e.activeIndex}"]`):C(e.slides).eq(e.activeIndex),i=n.params.virtualSlides?C(e.wrapperEl).find(`.swiper-slide[data-swiper-slide-index="${e.previousIndex}"]`):C(e.slides).eq(e.previousIndex);let o=n.$el.find(".photo-browser-current"),l=n.$el.find(".photo-browser-total"),c;if(n.params.type==="page"&&n.params.navbar&&o.length===0&&n.app.theme==="ios"&&(c=n.app.navbar.getElByPage(n.$el),c&&(o=C(c).find(".photo-browser-current"),l=C(c).find(".photo-browser-total"))),o.length&&l.length&&(o.text(a),l.text(r),c||(c=o.parents(".navbar")[0]),c&&n.app.navbar.size(c)),n.captions.length>0){const u=e.params.loop?s.attr("data-swiper-slide-index"):n.activeIndex;n.$captionsContainerEl.find(".photo-browser-caption-active").removeClass("photo-browser-caption-active"),n.$captionsContainerEl.find(`[data-caption-index="${u}"]`).addClass("photo-browser-caption-active")}const d=i.find("video");d.length>0&&"pause"in d[0]&&d[0].pause()}onTouchStart(){const n=this.swipeToClose;n.allow&&(n.isTouched=!0)}onTouchMove(e){const n=this,a=n.swipeToClose;a.isTouched&&(a.started||(a.started=!0,a.start=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY,n.params.virtualSlides?a.activeSlide=C(n.swiper.wrapperEl).children(".swiper-slide-active"):a.activeSlide=C(n.swiper.slides).eq(n.swiper.activeIndex),a.timeStart=Ot()),e.preventDefault(),a.current=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY,a.diff=a.start-a.current,n.$el.transition(0).transform(`translate3d(0,${-a.diff}px,0)`))}onTouchEnd(){const e=this,n=e.swipeToClose;if(n.isTouched=!1,!n.started){n.started=!1;return}n.started=!1,n.allow=!1;const a=Math.abs(n.diff),r=new Date().getTime()-n.timeStart;if(r<300&&a>20||r>=300&&a>100){lt(()=>{e.$el&&(n.diff<0?e.$el.addClass("swipe-close-to-bottom"):e.$el.addClass("swipe-close-to-top")),e.emit("local::swipeToClose",e),e.$el.transform("").transition(""),e.close(),n.allow=!0});return}a!==0?e.$el.addClass("photo-browser-transitioning").transitionEnd(()=>{n.allow=!0,e.$el.removeClass("photo-browser-transitioning")}):n.allow=!0,lt(()=>{e.$el.transform("").transition("")})}renderNavbar(){const e=this;if(e.params.renderNavbar)return e.params.renderNavbar.call(e);const n=e.params.iconsColor,a=e.app.theme==="ios"&&e.params.pageBackLinkText?e.params.pageBackLinkText:"",r=typeof e.params.navbarShowCount>"u"?e.params.photos.length>1:e.params.navbarShowCount,s=e.params.type!=="page";return T("div",{class:`navbar navbar-photo-browser ${e.params.theme==="dark"?"navbar-photo-browser-dark":""}`},T("div",{class:"navbar-bg"}),T("div",{class:"navbar-inner navbar-inner-centered-title sliding"},!s&&T("div",{class:"left"},T("a",{class:`link ${a?"":"icon-only"} back`},T("i",{class:`icon icon-back ${n?`color-${n}`:""}`}),a&&T("span",null,a))),r&&T("div",{class:"title"},T("span",{class:"photo-browser-current"}),T("span",{class:"photo-browser-of"},e.params.navbarOfText),T("span",{class:"photo-browser-total"})),s&&(e.params.popupCloseLinkText||e.params.popupCloseLinkIcon)&&T("div",{class:"right"},T("a",{class:"link popup-close","data-popup":".photo-browser-popup"},e.params.popupCloseLinkIcon&&e.app.theme==="ios"&&T("i",null,T("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",viewBox:"0 0 56 56"},T("path",{fill:"currentColor",d:"M 10.0234 43.0234 C 9.2266 43.8203 9.2031 45.1797 10.0234 45.9766 C 10.8438 46.7734 12.1797 46.7734 13.0000 45.9766 L 28.0000 30.9766 L 43.0000 45.9766 C 43.7969 46.7734 45.1563 46.7969 45.9766 45.9766 C 46.7734 45.1562 46.7734 43.8203 45.9766 43.0234 L 30.9531 28.0000 L 45.9766 13.0000 C 46.7734 12.2031 46.7969 10.8437 45.9766 10.0469 C 45.1328 9.2266 43.7969 9.2266 43.0000 10.0469 L 28.0000 25.0469 L 13.0000 10.0469 C 12.1797 9.2266 10.8203 9.2031 10.0234 10.0469 C 9.2266 10.8672 9.2266 12.2031 10.0234 13.0000 L 25.0234 28.0000 Z"}))),e.params.popupCloseLinkIcon&&e.app.theme==="md"&&T("i",null,T("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor"},T("path",{d:"M0 0h24v24H0V0z",fill:"none"}),T("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))),e.params.popupCloseLinkText&&T("span",null,e.params.popupCloseLinkText)))))}renderToolbar(){const e=this;if(e.params.renderToolbar)return e.params.renderToolbar.call(e);const n=e.params.iconsColor;return T("div",{class:"toolbar toolbar-bottom tabbar"},T("div",{class:"toolbar-inner"},T("a",{class:"link photo-browser-prev"},T("i",{class:`icon icon-back ${n?`color-${n}`:""}`})),T("a",{class:"link photo-browser-next"},T("i",{class:`icon icon-forward ${n?`color-${n}`:""}`}))))}renderThumbs(){const e=this;return T("div",{class:"toolbar toolbar-bottom photo-browser-thumbs"},T("div",{class:"swiper"},T("div",{class:"swiper-wrapper"},e.params.thumbs.map((n,a)=>e.renderThumb(n,a)))))}renderCaption(e,n){const a=this;return a.params.renderCaption?a.params.renderCaption.call(a,e,n):T("div",{class:"photo-browser-caption","data-caption-index":n},e)}renderObject(e,n){const a=this;return a.params.renderObject?a.params.renderObject.call(a,e,n):T("div",{class:"photo-browser-slide photo-browser-object-slide swiper-slide","data-swiper-slide-index":n},e.html?e.html:e)}renderLazyPhoto(e,n){const a=this;return a.params.renderLazyPhoto?a.params.renderLazyPhoto.call(a,e,n):T("div",{class:"photo-browser-slide photo-browser-slide-lazy swiper-slide","data-swiper-slide-index":n},T("div",{class:"swiper-lazy-preloader"}),T("span",{class:"swiper-zoom-container"},T("img",{loading:"lazy",src:e.url?e.url:e})))}renderPhoto(e,n){const a=this;return a.params.renderPhoto?a.params.renderPhoto.call(a,e,n):T("div",{class:"photo-browser-slide swiper-slide","data-swiper-slide-index":n},T("span",{class:"swiper-zoom-container"},T("img",{src:e.url?e.url:e})))}renderThumb(e,n){const a=this,r=typeof e=="string"?e:e.url;return a.params.renderThumb?a.params.renderThumb.call(a,e,n):T("div",{class:"photo-browser-thumbs-slide swiper-slide","data-swiper-slide-index":n},r&&T("img",{src:r,loading:"lazy"}))}render(){const e=this;return e.params.render?e.params.render.call(e,e.params):T("div",{class:`photo-browser photo-browser-${e.params.theme}`},T("div",{class:"view"},T("div",{class:`page photo-browser-page photo-browser-page-${e.params.theme} no-toolbar ${e.params.navbar?"":"no-navbar"}`,"data-name":"photo-browser-page"},e.params.navbar&&e.renderNavbar(),e.params.toolbar&&e.renderToolbar(),e.params.thumbs&&e.params.thumbs.length&&e.renderThumbs(),T("div",{class:`photo-browser-captions photo-browser-captions-${e.params.captionsTheme||e.params.theme}`},e.params.photos.map((n,a)=>n.caption?e.renderCaption(n.caption,a):"")),T("div",{class:"photo-browser-swiper-container swiper"},T("div",{class:"photo-browser-swiper-wrapper swiper-wrapper"},!e.params.virtualSlides&&e.params.photos.map((n,a)=>n.html||(typeof n=="string"||n instanceof String)&&n.indexOf("<")>=0&&n.indexOf(">")>=0?e.renderObject(n,a):e.params.lazy===!0?e.renderLazyPhoto(n,a):e.renderPhoto(n,a)))))))}renderStandalone(){const e=this;return e.params.renderStandalone?e.params.renderStandalone.call(e):``}renderPage(){const e=this;return e.params.renderPage?e.params.renderPage.call(e):e.render()}renderPopup(){const e=this;return e.params.renderPopup?e.params.renderPopup.call(e):``}onOpen(e,n){const a=this,r=a.app,s=C(n);s[0].f7PhotoBrowser=a,a.$el=s,a.el=s[0],a.openedIn=e,a.opened=!0,a.$swiperContainerEl=a.$el.find(".photo-browser-swiper-container"),a.$swiperWrapperEl=a.$el.find(".photo-browser-swiper-wrapper"),a.slides=a.$el.find(".photo-browser-slide"),a.$captionsContainerEl=a.$el.find(".photo-browser-captions"),a.captions=a.$el.find(".photo-browser-caption");const i=a.params.thumbs&&a.params.thumbs.length>0;let o,l,c;const d=a.activeIndex,u=W({},a.params.swiper,{initialSlide:d,on:{click(f){clearTimeout(o),a.params.exposition&&(o=setTimeout(()=>{a.expositionToggle()},350)),a.emit("local::tap",f),a.emit("local::click",f)},doubleClick(f){clearTimeout(o),a.emit("local::doubleTap",f),a.emit("local::doubleClick",f)},slideChange(){const f=this;i&&a.thumbsSwiper&&!c&&(l=!0,a.thumbsSwiper.slideTo(a.swiper.activeIndex),setTimeout(()=>{l=!1})),a.onSlideChange(f);for(var h=arguments.length,m=new Array(h),b=0;b=0&&f.indexOf(">")>=0?a.renderObject(f,h):a.params.lazy===!0?a.renderLazyPhoto(f,h):a.renderPhoto(f,h)}}});const p=fe();if(a.swiper=r.swiper?r.swiper.create(a.$swiperContainerEl[0],u):new p.Swiper(a.$swiperContainerEl[0],u),(a.activeIndex===0||a.params.virtualSlides)&&a.onSlideChange(a.swiper),i){const f={el:a.$el.find(".photo-browser-thumbs .swiper")[0],slidesPerView:"auto",centeredSlides:!0,spaceBetween:4,watchSlidesProgress:!0,initialSlide:d,on:{touchMove(){c=!0},touchEnd(){c=!1},slideChange(h){l||a.swiper.slideTo(h.activeIndex,0)},click(h){if(!h.clickedSlide)return;const m=parseInt(C(h.clickedSlide).attr("data-swiper-slide-index"),10);h.slideTo(m,0)}}};a.thumbsSwiper=r.swiper?r.swiper.create(f):new p.Swiper(f)}a.$el&&a.$el.trigger("photobrowser:open"),a.emit("local::open photoBrowserOpen",a)}onOpened(){const e=this;e.$el&&e.params.type==="standalone"&&e.$el.css("animation","none"),e.$el&&e.$el.trigger("photobrowser:opened"),e.emit("local::opened photoBrowserOpened",e)}onClose(){const e=this;e.destroyed||(e.swiper&&e.swiper.destroy&&(e.swiper.destroy(!0,!1),e.swiper=null,delete e.swiper),e.thumbsSwiper&&e.thumbsSwiper.destroy&&(e.thumbsSwiper.destroy(!0,!1),e.thumbsSwiper=null,delete e.thumbsSwiper),e.$el&&e.$el.trigger("photobrowser:close"),e.emit("local::close photoBrowserClose",e))}onClosed(){const e=this;e.destroyed||(e.opened=!1,e.$el=null,e.el=null,delete e.$el,delete e.el,e.$el&&e.$el.trigger("photobrowser:closed"),e.emit("local::closed photoBrowserClosed",e))}openPage(){const e=this;if(e.opened)return e;const n=e.renderPage();return e.view.router.navigate({url:e.url,route:{content:n,path:e.url,on:{pageBeforeIn(a,r){e.view.$el.addClass(`with-photo-browser-page with-photo-browser-page-${e.params.theme}`),e.onOpen("page",r.el)},pageAfterIn(a,r){e.onOpened("page",r.el)},pageBeforeOut(a,r){e.view.$el.removeClass(`with-photo-browser-page with-photo-browser-page-exposed with-photo-browser-page-${e.params.theme}`),e.onClose("page",r.el)},pageAfterOut(a,r){e.onClosed("page",r.el)}}}}),e}openStandalone(){const e=this;if(e.opened)return e;const a={backdrop:!1,content:e.renderStandalone(),on:{popupOpen(r){e.onOpen("popup",r.el)},popupOpened(r){e.onOpened("popup",r.el)},popupClose(r){e.onClose("popup",r.el)},popupClosed(r){e.onClosed("popup",r.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:a}}):e.modal=e.app.popup.create(a).open(),e}openPopup(){const e=this;if(e.opened)return e;const a={content:e.renderPopup(),push:e.params.popupPush,closeByBackdropClick:e.params.closeByBackdropClick,on:{popupOpen(r){e.onOpen("popup",r.el)},popupOpened(r){e.onOpened("popup",r.el)},popupClose(r){e.onClose("popup",r.el)},popupClosed(r){e.onClosed("popup",r.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:a}}):e.modal=e.app.popup.create(a).open(),e}expositionEnable(){const e=this;return e.params.type==="page"&&e.view.$el.addClass("with-photo-browser-page-exposed"),e.$el&&e.$el.addClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.addClass("photo-browser-captions-exposed"),e.exposed=!0,e}expositionDisable(){const e=this;return e.params.type==="page"&&e.view.$el.removeClass("with-photo-browser-page-exposed"),e.$el&&e.$el.removeClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.removeClass("photo-browser-captions-exposed"),e.exposed=!1,e}expositionToggle(){const e=this;return e.params.type==="page"&&e.view.$el.toggleClass("with-photo-browser-page-exposed"),e.$el&&e.$el.toggleClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.toggleClass("photo-browser-captions-exposed"),e.exposed=!e.exposed,e}open(e){const n=this,a=n.params.type;return n.opened?(n.swiper&&typeof e<"u"&&n.swiper.slideTo(parseInt(e,10)),n):(typeof e<"u"&&(n.activeIndex=e),a==="standalone"&&n.openStandalone(),a==="page"&&n.openPage(),a==="popup"&&n.openPopup(),n)}close(){const e=this;return e.opened&&(e.params.routableModals&&e.view||e.openedIn==="page"?e.view.router.back():(e.modal.once("modalClosed",()=>{lt(()=>{e.destroyed||(e.modal.destroy(),delete e.modal)})}),e.modal.close())),e}init(){}destroy(){let e=this;e.emit("local::beforeDestroy photoBrowserBeforeDestroy",e),e.$el&&(e.$el.trigger("photobrowser:beforedestroy"),e.$el[0].f7PhotoBrowser=null,delete e.$el[0].f7PhotoBrowser),Ze(e),e.destroyed=!0,e=null}};const X$={name:"photoBrowser",params:{photoBrowser:{photos:[],thumbs:[],exposition:!0,expositionHideCaptions:!1,type:"standalone",navbar:!0,toolbar:!0,theme:"light",captionsTheme:void 0,iconsColor:void 0,popupPush:!1,swipeToClose:!0,pageBackLinkText:"Back",popupCloseLinkText:void 0,popupCloseLinkIcon:!0,navbarOfText:"of",navbarShowCount:void 0,view:void 0,url:"photos/",routableModals:!1,virtualSlides:!0,lazy:!0,closeByBackdropClick:!0,renderNavbar:void 0,renderToolbar:void 0,renderCaption:void 0,renderObject:void 0,renderLazyPhoto:void 0,renderPhoto:void 0,renderThumb:void 0,renderPage:void 0,renderPopup:void 0,renderStandalone:void 0,swiper:{cssMode:!1,initialSlide:0,spaceBetween:20,speed:300,loop:!1,keyboard:{enabled:!0},navigation:{nextEl:".photo-browser-next",prevEl:".photo-browser-prev"},zoom:{enabled:!0,maxRatio:3,minRatio:1}}}},create(){const t=this;t.photoBrowser=et({defaultSelector:".photo-browser-popup, .photo-browser-page",constructor:Vo,app:t,domProp:"f7PhotoBrowser"})},static:{PhotoBrowser:Vo}};let _o=class extends en{constructor(e,n){const a=W({on:{}},e.params.notification,n);super(e,a);const r=this;r.app=e,r.params=a;const{icon:s,title:i,titleRightText:o,subtitle:l,text:c,closeButton:d,closeTimeout:u,cssClass:p,closeOnClick:f}=r.params;let h;if(r.params.el)h=C(r.params.el);else{const B=r.render({icon:s,title:i,titleRightText:o,subtitle:l,text:c,closeButton:d,cssClass:p});h=C(B)}if(h&&h.length>0&&h[0].f7Modal)return h[0].f7Modal;if(h.length===0)return r.destroy();W(r,{$el:h,el:h[0],type:"notification"}),h[0].f7Modal=r,d&&h.find(".notification-close-button").on("click",()=>{r.close()}),h.on("click",B=>{d&&C(B.target).closest(".notification-close-button").length||(r.emit("local::click notificationClick",r),f&&r.close())}),r.on("beforeDestroy",()=>{h.off("click")});let m,b,w,g,v,y;const E={};function k(B){m||(m=!0,b=!1,w=void 0,v=Ot(),E.x=B.type==="touchstart"?B.targetTouches[0].pageX:B.pageX,E.y=B.type==="touchstart"?B.targetTouches[0].pageY:B.pageY)}function $(B){if(!m)return;const P=B.type==="touchmove"?B.targetTouches[0].pageX:B.pageX,L=B.type==="touchmove"?B.targetTouches[0].pageY:B.pageY;if(typeof w>"u"&&(w=!!(w||Math.abs(L-E.y)0&&(V=g**.8),r.$el.transform(`translate3d(0, ${V}px, 0)`)}function M(){if(!m||!b){m=!1,b=!1;return}if(m=!1,b=!1,g===0)return;const B=Ot()-v;r.$el.transition(""),r.$el.addClass("notification-transitioning"),r.$el.transform(""),(g<-10&&B<300||-g>=y/1)&&r.close()}function x(){r.$el.on(e.touchEvents.start,k,{passive:!0}),e.on("touchmove:active",$),e.on("touchend:passive",M)}function F(){r.$el.off(e.touchEvents.start,k,{passive:!0}),e.off("touchmove:active",$),e.off("touchend:passive",M)}let S;function I(){S=lt(()=>{if(m&&b){I();return}r.close()},u)}return r.on("open",()=>{r.params.swipeToClose&&x(),C(".notification.modal-in").each(B=>{const P=e.notification.get(B);B!==r.el&&P&&P.close()}),u&&I()}),r.on("close beforeDestroy",()=>{r.params.swipeToClose&&F(),clearTimeout(S)}),r}render(){const e=this;if(e.params.render)return e.params.render.call(e,e);const{icon:n,title:a,titleRightText:r,subtitle:s,text:i,closeButton:o,cssClass:l}=e.params;return T("div",{class:`notification ${n?"notification-with-icon":""} ${l||""}`},T("div",{class:"notification-header"},n&&T("div",{class:"notification-icon"},n),a&&T("div",{class:"notification-title"},a),r&&T("div",{class:"notification-title-right-text"},r),o&&T("span",{class:"notification-close-button"})),T("div",{class:"notification-content"},s&&T("div",{class:"notification-subtitle"},s),i&&T("div",{class:"notification-text"},i)))}};const U$={name:"notification",static:{Notification:_o},create(){const t=this;t.notification=W({},pn({app:t,constructor:_o,defaultSelector:".notification.modal-in"}))},params:{notification:{icon:null,title:null,titleRightText:null,subtitle:null,text:null,closeButton:!1,closeTimeout:null,closeOnClick:!1,swipeToClose:!0,cssClass:null,render:null,containerEl:null}}};let jo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this;a.app=e;const r=Ie(),s=W({on:{}},e.params.autocomplete);a.useModulesParams(s),a.params=W(s,n);let i;a.params.openerEl&&(i=C(a.params.openerEl),i.length&&(i[0].f7Autocomplete=a));let o;a.params.inputEl&&(o=C(a.params.inputEl),o.length&&(o[0].f7Autocomplete=a));const l=Ir();let c=n.url;!c&&i&&i.length&&(i.attr("href")?c=i.attr("href"):i.find("a").length>0&&(c=i.find("a").attr("href"))),(!c||c==="#"||c==="")&&(c=a.params.url);const d=a.params.multiple?"checkbox":"radio";W(a,{$openerEl:i,openerEl:i&&i[0],$inputEl:o,inputEl:o&&o[0],id:l,url:c,value:a.params.value||[],inputType:d,inputName:`${d}-${l}`,$modalEl:void 0,$dropdownEl:void 0});let u="";function p(){let E=a.$inputEl.val().trim();a.params.source&&a.params.source.call(a,E,k=>{let $="";const M=a.params.limit?Math.min(a.params.limit,k.length):k.length;a.items=k;let x;a.params.highlightMatches&&(E=E.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),x=new RegExp(`(${E})`,"i"));let F,S;for(let I=0;I$1"):P},I)}if($===""&&E===""&&a.params.dropdownPlaceholderText&&($+=a.renderItem({placeholder:!0,text:a.params.dropdownPlaceholderText})),a.$dropdownEl.find("ul").html($),a.params.typeahead){if(!F||!S||F.toLowerCase().indexOf(E.toLowerCase())!==0)return;if(u.toLowerCase()===E.toLowerCase()){a.value=[];return}if(u.toLowerCase().indexOf(E.toLowerCase())===0){u=E,a.value=[];return}o.val(F),o[0].setSelectionRange(E.length,F.length);const I=typeof a.value[0]=="object"?a.value[0][a.params.valueProperty]:a.value[0];(!I||F.toLowerCase()!==I.toLowerCase())&&(a.value=[S],a.emit("local::change autocompleteChange",[S]))}u=E})}function f(){const E=this,k=E.value,$=C(E).parents(".autocomplete-values").length>0;let M,x,F;if($){if(a.inputType==="checkbox"&&!E.checked){for(let S=0;S0||setTimeout(()=>{a.close()},0)}function g(){a.positionDropdown()}function v(E){if(!a.opened)return;if(E.keyCode===27){E.preventDefault(),a.$inputEl.blur();return}if(E.keyCode===13){const M=a.$dropdownEl.find(".autocomplete-dropdown-selected label");if(M.length){E.preventDefault(),M.trigger("click"),a.$inputEl.blur();return}a.params.typeahead&&(E.preventDefault(),a.$inputEl.blur());return}if(E.keyCode!==40&&E.keyCode!==38)return;E.preventDefault();const k=a.$dropdownEl.find(".autocomplete-dropdown-selected");let $;k.length?($=k[E.keyCode===40?"next":"prev"]("li"),$.length||($=a.$dropdownEl.find("li").eq(E.keyCode===40?0:a.$dropdownEl.find("li").length-1))):$=a.$dropdownEl.find("li").eq(E.keyCode===40?0:a.$dropdownEl.find("li").length-1),!$.hasClass("autocomplete-dropdown-placeholder")&&(k.removeClass("autocomplete-dropdown-selected"),$.addClass("autocomplete-dropdown-selected"))}function y(){const E=C(this);let k;for(let $=0;${lt(()=>{a.close()})})},a.detachPageEvents=function(){a.$el.off("change",'input[type="radio"], input[type="checkbox"]',f)},a.useModules(),a.init(),a}get view(){const e=this,{$openerEl:n,$inputEl:a,app:r}=e;let s;if(e.params.view)s=e.params.view;else if(n||a){const i=n||a;s=i.closest(".view").length&&i.closest(".view")[0].f7View}return s||(s=r.views.main),s}positionDropdown(){const e=this,{$inputEl:n,app:a,$dropdownEl:r}=e,s=n.parents(".page-content");if(s.length===0)return;const i=n.offset(),o=n[0].offsetWidth,l=n[0].offsetHeight,c=n.parents(".list");let d;c.parents().each(v=>{if(d)return;const y=C(v);y.parent(s).length&&(d=y)});const u=c.offset(),p=parseInt(s.css("padding-bottom"),10),f=c.length>0?u.left-s.offset().left:0,h=i.left-(c.length>0?u.left:0)-(a.rtl,0),m=i.top-(s.offset().top-s[0].scrollTop),b=s[0].scrollHeight-p-(m+s[0].scrollTop)-n[0].offsetHeight,w=a.rtl?"padding-right":"padding-left";let g;c.length&&(g=(a.rtl?c[0].offsetWidth-h-o:h)-(a.theme==="md"?16:15)),r.css({left:`${c.length>0?f:h}px`,top:`${m+s[0].scrollTop+l}px`,width:`${c.length>0?c[0].offsetWidth:o}px`}),r.children(".autocomplete-dropdown-inner").css({maxHeight:`${b}px`,[w]:c.length>0?`${g}px`:""})}focus(){this.$el.find("input[type=search]").focus()}source(e){const n=this;if(!n.params.source)return;const{$el:a}=n;n.params.source.call(n,e,r=>{let s="";const i=n.params.limit?Math.min(n.params.limit,r.length):r.length;n.items=r;for(let o=0;o"u"&&e.$openerEl&&e.$openerEl.length&&(n=e.$openerEl.find(".item-title").text().trim());const a=e.params.openIn==="popup",r=a?e.params.preloader&&T("div",{class:"left"},e.renderPreloader()):T("div",{class:"left sliding"},T("a",{class:"link back"},T("i",{class:"icon icon-back"}),T("span",{class:"if-not-md"},e.params.pageBackLinkText))),s=a?T("div",{class:"right"},T("a",{class:"link popup-close","data-popup":".autocomplete-popup"},e.params.popupCloseLinkText)):e.params.preloader&&T("div",{class:"right"},e.renderPreloader());return T("div",{class:`navbar ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},T("div",{class:"navbar-bg"}),T("div",{class:`navbar-inner ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},r,n&&T("div",{class:"title sliding"},n),s,T("div",{class:"subnavbar sliding"},e.renderSearchbar())))}renderDropdown(){const e=this;return e.params.renderDropdown?e.params.renderDropdown.call(e,e.items):T("div",{class:"autocomplete-dropdown"},T("div",{class:"autocomplete-dropdown-inner"},T("div",{class:"list no-safe-areas"},T("ul",null))),e.params.preloader&&e.renderPreloader())}renderPage(e){const n=this;return n.params.renderPage?n.params.renderPage.call(n,n.items):T("div",{class:"page page-with-subnavbar autocomplete-page","data-name":"autocomplete-page"},n.renderNavbar(e),T("div",{class:"searchbar-backdrop"}),T("div",{class:"page-content"},T("div",{class:`list autocomplete-list autocomplete-found autocomplete-list-${n.id} ${n.params.formColorTheme?`color-${n.params.formColorTheme}`:""}`},T("ul",null)),T("div",{class:"list autocomplete-not-found"},T("ul",null,T("li",{class:"item-content"},T("div",{class:"item-inner"},T("div",{class:"item-title"},n.params.notFoundText))))),T("div",{class:"list autocomplete-values"},T("ul",null))))}renderPopup(){const e=this;return e.params.renderPopup?e.params.renderPopup.call(e,e.items):T("div",{class:"popup autocomplete-popup"},T("div",{class:"view"},e.renderPage(!0),";"))}onOpen(e,n){const a=this,r=a.app,s=C(n);if(a.$el=s,a.el=s[0],a.openedIn=e,a.opened=!0,a.params.openIn==="dropdown")a.attachDropdownEvents(),a.$dropdownEl.addClass("autocomplete-dropdown-in"),a.$inputEl.trigger("input");else{let i=s.find(".searchbar");a.params.openIn==="page"&&r.theme==="ios"&&i.length===0&&(i=C(r.navbar.getElByPage(s)).find(".searchbar")),a.searchbar=r.searchbar.create({el:i,backdropEl:s.find(".searchbar-backdrop"),customSearch:!0,on:{search(o,l){l.length===0&&a.searchbar.enabled?a.searchbar.backdropShow():a.searchbar.backdropHide(),a.source(l)}}}),a.attachPageEvents(),a.updateValues(),a.params.requestSourceOnOpen&&a.source("")}a.emit("local::open autocompleteOpen",a)}autoFocus(){const e=this;return e.searchbar&&e.searchbar.$inputEl&&e.searchbar.$inputEl.focus(),e}onOpened(){const e=this;e.params.openIn!=="dropdown"&&e.params.autoFocus&&e.autoFocus(),e.emit("local::opened autocompleteOpened",e)}onClose(){const e=this;e.destroyed||(e.searchbar&&e.searchbar.destroy&&(e.searchbar.destroy(),e.searchbar=null,delete e.searchbar),e.params.openIn==="dropdown"?(e.detachDropdownEvents(),e.$dropdownEl.removeClass("autocomplete-dropdown-in").remove()):e.detachPageEvents(),e.emit("local::close autocompleteClose",e))}onClosed(){const e=this;e.destroyed||(e.opened=!1,e.$el=null,e.el=null,delete e.$el,delete e.el,e.emit("local::closed autocompleteClosed",e))}openPage(){const e=this;if(e.opened)return e;const n=e.renderPage();return e.view.router.navigate({url:e.url,route:{content:n,path:e.url,on:{pageBeforeIn(a,r){e.onOpen("page",r.el)},pageAfterIn(a,r){e.onOpened("page",r.el)},pageBeforeOut(a,r){e.onClose("page",r.el)},pageAfterOut(a,r){e.onClosed("page",r.el)}},options:{animate:e.params.animate}}}),e}openPopup(){const e=this;if(e.opened)return e;const a={content:e.renderPopup(),animate:e.params.animate,push:e.params.popupPush,swipeToClose:e.params.popupSwipeToClose,on:{popupOpen(r){e.onOpen("popup",r.el)},popupOpened(r){e.onOpened("popup",r.el)},popupClose(r){e.onClose("popup",r.el)},popupClosed(r){e.onClosed("popup",r.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:a}}):e.modal=e.app.popup.create(a).open(e.params.animate),e}openDropdown(){const e=this;e.$dropdownEl||(e.$dropdownEl=C(e.renderDropdown()));const n=e.$inputEl.parents(".page-content");e.params.dropdownContainerEl?C(e.params.dropdownContainerEl).append(e.$dropdownEl):n.length===0?e.$dropdownEl.insertAfter(e.$inputEl):(e.positionDropdown(),n.append(e.$dropdownEl)),e.onOpen("dropdown",e.$dropdownEl),e.onOpened("dropdown",e.$dropdownEl)}open(){const e=this;if(e.opened)return e;const n=e.params.openIn;return e[`open${n.split("").map((a,r)=>r===0?a.toUpperCase():a).join("")}`](),e}close(){const e=this;return e.opened&&(e.params.openIn==="dropdown"?(e.onClose(),e.onClosed()):e.params.routableModals&&e.view||e.openedIn==="page"?e.view.router.back({animate:e.params.animate}):(e.modal.once("modalClosed",()=>{lt(()=>{e.destroyed||(e.modal.destroy(),delete e.modal)})}),e.modal.close())),e}init(){this.attachEvents()}destroy(){const e=this;e.emit("local::beforeDestroy autocompleteBeforeDestroy",e),e.detachEvents(),e.$inputEl&&e.$inputEl[0]&&delete e.$inputEl[0].f7Autocomplete,e.$openerEl&&e.$openerEl[0]&&delete e.$openerEl[0].f7Autocomplete,Ze(e),e.destroyed=!0}};const G$={name:"autocomplete",params:{autocomplete:{openerEl:void 0,inputEl:void 0,view:void 0,dropdownContainerEl:void 0,dropdownPlaceholderText:void 0,typeahead:!1,highlightMatches:!0,updateInputValueOnSelect:!0,inputEvents:"input",value:void 0,multiple:!1,source:void 0,limit:void 0,valueProperty:"id",textProperty:"text",openIn:"page",pageBackLinkText:"Back",popupCloseLinkText:"Close",pageTitle:void 0,searchbarPlaceholder:"Search...",searchbarDisableText:"Cancel",searchbarDisableButton:!0,searchbarSpellcheck:!1,popupPush:!1,popupSwipeToClose:void 0,animate:!0,autoFocus:!1,closeOnSelect:!1,notFoundText:"Nothing found",requestSourceOnOpen:!1,preloaderColor:void 0,preloader:!1,formColorTheme:void 0,navbarColorTheme:void 0,routableModals:!1,url:"select/",renderDropdown:void 0,renderPage:void 0,renderPopup:void 0,renderItem:void 0,renderSearchbar:void 0,renderNavbar:void 0}},static:{Autocomplete:jo},create(){const t=this;t.autocomplete=W(et({defaultSelector:void 0,constructor:jo,app:t,domProp:"f7Autocomplete"}),{open(e){const n=t.autocomplete.get(e);if(n&&n.open)return n.open()},close(e){const n=t.autocomplete.get(e);if(n&&n.close)return n.close()}})}};let qo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r=Xe(),s=W({},e.params.tooltip),i=ye();a.useModulesParams(s),a.params=W(s,n),typeof n.offset>"u"&&r.touch&&a.params.trigger==="hover"&&(a.params.offset=10);const{targetEl:o,containerEl:l}=a.params;if(!o&&!a.params.delegated)return a;const c=C(o);if(c.length===0&&!a.params.delegated)return a;if(c[0]&&c[0].f7Tooltip&&!a.params.delegated)return c[0].f7Tooltip;let d=C(l||e.$el).eq(0);d.length===0&&(d=e.$el);const u=C(a.render()).eq(0);W(a,{app:e,$targetEl:c,targetEl:c&&c[0],$containerEl:d,containerEl:d&&d[0],$el:u,el:u&&u[0],text:a.params.text||"",visible:!1,opened:!1}),c[0]&&(c[0].f7Tooltip=a);const p={};let f;function h(){a.opened?a.hide():a.show(this)}function m(k){a.opened&&(C(k.target).closest(c).length||C(k.target).closest(a.$el).length)||a.hide()}function b(k){f||(f=!0,p.x=k.type==="touchstart"?k.targetTouches[0].pageX:k.pageX,p.y=k.type==="touchstart"?k.targetTouches[0].pageY:k.pageY,a.show(this))}function w(k){if(!f)return;const $=k.type==="touchmove"?k.targetTouches[0].pageX:k.pageX,M=k.type==="touchmove"?k.targetTouches[0].pageY:k.pageY;(($-p.x)**2+(M-p.y)**2)**.5>50&&(f=!1,a.hide())}function g(){f&&(f=!1,a.hide())}function v(){a.show(this)}function y(){a.hide()}function E(){u.hasClass("tooltip-in")||u.removeClass("tooltip-out").remove()}return a.attachEvents=function(){if(u.on("transitionend",E),a.params.trigger==="click"){a.params.delegated?C(i).on("click",a.params.targetEl,h):a.$targetEl.on("click",h),C("html").on("click",m);return}if(a.params.trigger!=="manual")if(r.touch){const $=r.passiveListener?{passive:!0}:!1;a.params.delegated?C(i).on(e.touchEvents.start,a.params.targetEl,b,$):a.$targetEl.on(e.touchEvents.start,b,$),e.on("touchmove",w),e.on("touchend:passive",g)}else a.params.delegated?(C(i).on(r.pointerEvents?"pointerenter":"mouseenter",a.params.targetEl,v,!0),C(i).on(r.pointerEvents?"pointerleave":"mouseleave",a.params.targetEl,y,!0)):(a.$targetEl.on(r.pointerEvents?"pointerenter":"mouseenter",v),a.$targetEl.on(r.pointerEvents?"pointerleave":"mouseleave",y))},a.detachEvents=function(){if(u.off("transitionend",E),a.params.trigger==="click"){a.params.delegated?C(i).on("click",a.params.targetEl,h):a.$targetEl.off("click",h),C("html").off("click",m);return}if(a.params.trigger!=="manual")if(r.touch){const $=r.passiveListener?{passive:!0}:!1;a.params.delegated?C(i).off(e.touchEvents.start,a.params.targetEl,b,$):a.$targetEl.off(e.touchEvents.start,b,$),e.off("touchmove",w),e.off("touchend:passive",g)}else a.params.delegated?(C(i).off(r.pointerEvents?"pointerenter":"mouseenter",a.params.targetEl,v,!0),C(i).off(r.pointerEvents?"pointerleave":"mouseleave",a.params.targetEl,y,!0)):(a.$targetEl.off(r.pointerEvents?"pointerenter":"mouseenter",v),a.$targetEl.off(r.pointerEvents?"pointerleave":"mouseleave",y))},a.useModules(),a.init(),a}setTargetEl(e){const n=this;return n.detachEvents(),n.$targetEl=C(e),n.targetEl=n.$targetEl[0],n.attachEvents(),n}position(e){const n=this,{$el:a,app:r,$containerEl:s}=n,i=!!n.params.containerEl,o=n.params.offset||0;a.css({left:"",top:""});const l=C(e||n.targetEl),[c,d]=[a.width(),a.height()];a.css({left:"",top:""});let u,p,f,h;const m=i&&s.length?s[0].getBoundingClientRect():r;if(l&&l.length>0){if(u=l.outerWidth(),p=l.outerHeight(),typeof u>"u"&&typeof p>"u"){const E=l[0].getBoundingClientRect();u=E.width,p=E.height}const v=l.offset();f=v.left-m.left,h=v.top-m.top;const y=l.parents(".page");y.length>0&&(h-=y[0].scrollTop)}let[b,w]=[0,0,0],g="top";d+o=m.height&&(w=m.height-d-8)),g==="top"||g==="bottom"?(b=u/2+f-c/2,b<8&&(b=8),b+c>m.width&&(b=m.width-c-8),b<0&&(b=0)):g==="middle"&&(b=f-c,(b<8||b+c>m.width)&&(b<8&&(b=f+u),b+c>m.width&&(b=m.width-c-8))),a.css({top:`${w}px`,left:`${b}px`})}show(e){const n=this,{$el:a,$targetEl:r,$containerEl:s}=n;s[0]&&a[0]&&!s[0].contains(a[0])&&s.append(a),n.position(e);const i=C(e);return n.visible=!0,n.opened=!0,r.trigger("tooltip:show"),a.trigger("tooltip:show"),i.length&&i[0]!==r[0]&&i.trigger("tooltip:show"),n.emit("local::show tooltipShow",n),a.removeClass("tooltip-out").addClass("tooltip-in"),n}hide(){const e=this,{$el:n,$targetEl:a}=e;return e.visible=!1,e.opened=!1,a.trigger("tooltip:hide"),n.trigger("tooltip:hide"),e.emit("local::hide tooltipHide",e),n.addClass("tooltip-out").removeClass("tooltip-in"),e}render(){const e=this;if(e.params.render)return e.params.render.call(e,e);const{cssClass:n,text:a}=e.params;return` + `,this.shadowRoot.appendChild(n),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0;const{params:n,passedParams:a}=zo(this);this.swiperParams=n,this.passedParams=a,delete this.swiperParams.init,this.render(),this.swiper=new ra(this.shadowRoot.querySelector(".swiper"),{...n.virtual?{}:{observer:!0,observeSlideChildren:this.slideSlots>0},...n,touchEventsTarget:"container",onAny:function(r){r==="observerUpdate"&&e.calcSlideSlots();const s=n.eventsPrefix?`${n.eventsPrefix}${r.toLowerCase()}`:r.toLowerCase();for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;ln.includes("_")).map(n=>n.replace(/[A-Z]/g,a=>`-${a}`).replace("_","").toLowerCase())}}Rr.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(qc.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class Y$ extends _c{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(jc(this.shadowRoot,q$),this.shadowRoot.appendChild(document.createElement("slot")),e){const n=document.createElement("div");n.classList.add("swiper-lazy-preloader"),n.part.add("preloader"),this.shadowRoot.appendChild(n)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const X$=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",qc),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",Y$))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Rr.push(...t)});X$();function ls(t){const e=this,n=C(t);if(n.length===0)return;const a=n[0].swiper&&n[0].swiper.isElement;if(n[0].swiper&&!n[0].swiper.isElement)return;let r,s={},i,o;n.hasClass("tabs")&&(r=n.children("swiper-slide").indexOf(n.children(".tab-active")[0]),i=!0,o=n.find(".tabs-routable").length>0),n.attr("data-swiper")?s=JSON.parse(n.attr("data-swiper")):n[0].f7SwiperParams?s=n[0].f7SwiperParams:(s=n.dataset(),Object.keys(s).forEach(u=>{const p=s[u];if(typeof p=="string"&&p.indexOf("{")===0&&p.indexOf("}")>0)try{s[u]=JSON.parse(p)}catch{}})),typeof s.initialSlide>"u"&&typeof r<"u"&&(s.initialSlide=r);const l=a?n[0].swiper:e.swiper.create(n[0],s);a&&l.slideTo(r,0);function c(){l.update()}const d=n.parents(".tab").filter(u=>C(u).parent(".tabs").parent(".tabs-animated-wrap, swiper-container.tabs").length===0).eq(0);n.parents(".popup, .login-screen, .sheet-modal, .popover").on("modal:open",c),n.parents(".panel").on("panel:open",c),d&&d.length&&d.on("tab:show",c),l.on("beforeDestroy",()=>{n.parents(".popup, .login-screen, .sheet-modal, .popover").off("modal:open",c),n.parents(".panel").off("panel:open",c),d&&d.length&&d.off("tab:show",c)}),i&&l.on("slideChange",()=>{if(o){let u=e.views.get(n.parents(".view"));u||(u=e.views.main);const p=u.router,f=p.findTabRouteUrl(C(l.slides).eq(l.activeIndex)[0]);f&&setTimeout(()=>{p.navigate(f)},0)}else e.tab.show({tabEl:C(l.slides).eq(l.activeIndex)})})}const U$={name:"swiper",static:{Swiper:ra},create(){const t=this;t.swiper=et({defaultSelector:".swiper",constructor:ra,domProp:"swiper"})},on:{pageMounted(t){const e=this;t.$el.find("swiper-container.tabs").each(n=>{ls.call(e,n)})},pageInit(t){const e=this;t.$el.find("swiper-container.tabs").each(n=>{ls.call(e,n)})},pageReinit(t){const e=this;t.$el.find("swiper-container.tabs").each(n=>{const a=e.swiper.get(n);a&&a.update&&a.update()})},tabMounted(t){const e=this;C(t).find("swiper-container.tabs").each(n=>{ls.call(e,n)})},tabShow(t){const e=this;C(t).find("swiper-container.tabs").each(n=>{const a=e.swiper.get(n);a&&a.update&&a.update()})},tabBeforeRemove(t){const e=this;C(t).find("swiper-container.tabs").each(n=>{e.swiper.destroy(n)})}}};let Vo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this;a.app=e;const r=W({on:{}},e.params.photoBrowser);a.useModulesParams(r),a.params=W(r,n),W(a,{exposed:!1,opened:!1,activeIndex:a.params.swiper.initialSlide,url:a.params.url,swipeToClose:{allow:!0,isTouched:!1,diff:void 0,start:void 0,current:void 0,started:!1,activeSlide:void 0,timeStart:void 0}}),a.useModules(),a.init()}get view(){const{params:e,app:n}=this;return e.view||n.views.main}onSlideChange(e){const n=this;n.activeIndex=e.activeIndex;let a=e.activeIndex+1,r=n.params.virtualSlides?n.params.photos.length:e.slides.length;e.params.loop&&(r-=2,a-=e.loopedSlides,a<1&&(a=r+a),a>r&&(a-=r));const s=n.params.virtualSlides?C(e.wrapperEl).find(`.swiper-slide[data-swiper-slide-index="${e.activeIndex}"]`):C(e.slides).eq(e.activeIndex),i=n.params.virtualSlides?C(e.wrapperEl).find(`.swiper-slide[data-swiper-slide-index="${e.previousIndex}"]`):C(e.slides).eq(e.previousIndex);let o=n.$el.find(".photo-browser-current"),l=n.$el.find(".photo-browser-total"),c;if(n.params.type==="page"&&n.params.navbar&&o.length===0&&n.app.theme==="ios"&&(c=n.app.navbar.getElByPage(n.$el),c&&(o=C(c).find(".photo-browser-current"),l=C(c).find(".photo-browser-total"))),o.length&&l.length&&(o.text(a),l.text(r),c||(c=o.parents(".navbar")[0]),c&&n.app.navbar.size(c)),n.captions.length>0){const u=e.params.loop?s.attr("data-swiper-slide-index"):n.activeIndex;n.$captionsContainerEl.find(".photo-browser-caption-active").removeClass("photo-browser-caption-active"),n.$captionsContainerEl.find(`[data-caption-index="${u}"]`).addClass("photo-browser-caption-active")}const d=i.find("video");d.length>0&&"pause"in d[0]&&d[0].pause()}onTouchStart(){const n=this.swipeToClose;n.allow&&(n.isTouched=!0)}onTouchMove(e){const n=this,a=n.swipeToClose;a.isTouched&&(a.started||(a.started=!0,a.start=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY,n.params.virtualSlides?a.activeSlide=C(n.swiper.wrapperEl).children(".swiper-slide-active"):a.activeSlide=C(n.swiper.slides).eq(n.swiper.activeIndex),a.timeStart=It()),e.preventDefault(),a.current=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY,a.diff=a.start-a.current,n.$el.transition(0).transform(`translate3d(0,${-a.diff}px,0)`))}onTouchEnd(){const e=this,n=e.swipeToClose;if(n.isTouched=!1,!n.started){n.started=!1;return}n.started=!1,n.allow=!1;const a=Math.abs(n.diff),r=new Date().getTime()-n.timeStart;if(r<300&&a>20||r>=300&&a>100){lt(()=>{e.$el&&(n.diff<0?e.$el.addClass("swipe-close-to-bottom"):e.$el.addClass("swipe-close-to-top")),e.emit("local::swipeToClose",e),e.$el.transform("").transition(""),e.close(),n.allow=!0});return}a!==0?e.$el.addClass("photo-browser-transitioning").transitionEnd(()=>{n.allow=!0,e.$el.removeClass("photo-browser-transitioning")}):n.allow=!0,lt(()=>{e.$el.transform("").transition("")})}renderNavbar(){const e=this;if(e.params.renderNavbar)return e.params.renderNavbar.call(e);const n=e.params.iconsColor,a=e.app.theme==="ios"&&e.params.pageBackLinkText?e.params.pageBackLinkText:"",r=typeof e.params.navbarShowCount>"u"?e.params.photos.length>1:e.params.navbarShowCount,s=e.params.type!=="page";return T("div",{class:`navbar navbar-photo-browser ${e.params.theme==="dark"?"navbar-photo-browser-dark":""}`},T("div",{class:"navbar-bg"}),T("div",{class:"navbar-inner navbar-inner-centered-title sliding"},!s&&T("div",{class:"left"},T("a",{class:`link ${a?"":"icon-only"} back`},T("i",{class:`icon icon-back ${n?`color-${n}`:""}`}),a&&T("span",null,a))),r&&T("div",{class:"title"},T("span",{class:"photo-browser-current"}),T("span",{class:"photo-browser-of"},e.params.navbarOfText),T("span",{class:"photo-browser-total"})),s&&(e.params.popupCloseLinkText||e.params.popupCloseLinkIcon)&&T("div",{class:"right"},T("a",{class:"link popup-close","data-popup":".photo-browser-popup"},e.params.popupCloseLinkIcon&&e.app.theme==="ios"&&T("i",null,T("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",viewBox:"0 0 56 56"},T("path",{fill:"currentColor",d:"M 10.0234 43.0234 C 9.2266 43.8203 9.2031 45.1797 10.0234 45.9766 C 10.8438 46.7734 12.1797 46.7734 13.0000 45.9766 L 28.0000 30.9766 L 43.0000 45.9766 C 43.7969 46.7734 45.1563 46.7969 45.9766 45.9766 C 46.7734 45.1562 46.7734 43.8203 45.9766 43.0234 L 30.9531 28.0000 L 45.9766 13.0000 C 46.7734 12.2031 46.7969 10.8437 45.9766 10.0469 C 45.1328 9.2266 43.7969 9.2266 43.0000 10.0469 L 28.0000 25.0469 L 13.0000 10.0469 C 12.1797 9.2266 10.8203 9.2031 10.0234 10.0469 C 9.2266 10.8672 9.2266 12.2031 10.0234 13.0000 L 25.0234 28.0000 Z"}))),e.params.popupCloseLinkIcon&&e.app.theme==="md"&&T("i",null,T("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor"},T("path",{d:"M0 0h24v24H0V0z",fill:"none"}),T("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))),e.params.popupCloseLinkText&&T("span",null,e.params.popupCloseLinkText)))))}renderToolbar(){const e=this;if(e.params.renderToolbar)return e.params.renderToolbar.call(e);const n=e.params.iconsColor;return T("div",{class:"toolbar toolbar-bottom tabbar"},T("div",{class:"toolbar-inner"},T("a",{class:"link photo-browser-prev"},T("i",{class:`icon icon-back ${n?`color-${n}`:""}`})),T("a",{class:"link photo-browser-next"},T("i",{class:`icon icon-forward ${n?`color-${n}`:""}`}))))}renderThumbs(){const e=this;return T("div",{class:"toolbar toolbar-bottom photo-browser-thumbs"},T("div",{class:"swiper"},T("div",{class:"swiper-wrapper"},e.params.thumbs.map((n,a)=>e.renderThumb(n,a)))))}renderCaption(e,n){const a=this;return a.params.renderCaption?a.params.renderCaption.call(a,e,n):T("div",{class:"photo-browser-caption","data-caption-index":n},e)}renderObject(e,n){const a=this;return a.params.renderObject?a.params.renderObject.call(a,e,n):T("div",{class:"photo-browser-slide photo-browser-object-slide swiper-slide","data-swiper-slide-index":n},e.html?e.html:e)}renderLazyPhoto(e,n){const a=this;return a.params.renderLazyPhoto?a.params.renderLazyPhoto.call(a,e,n):T("div",{class:"photo-browser-slide photo-browser-slide-lazy swiper-slide","data-swiper-slide-index":n},T("div",{class:"swiper-lazy-preloader"}),T("span",{class:"swiper-zoom-container"},T("img",{loading:"lazy",src:e.url?e.url:e})))}renderPhoto(e,n){const a=this;return a.params.renderPhoto?a.params.renderPhoto.call(a,e,n):T("div",{class:"photo-browser-slide swiper-slide","data-swiper-slide-index":n},T("span",{class:"swiper-zoom-container"},T("img",{src:e.url?e.url:e})))}renderThumb(e,n){const a=this,r=typeof e=="string"?e:e.url;return a.params.renderThumb?a.params.renderThumb.call(a,e,n):T("div",{class:"photo-browser-thumbs-slide swiper-slide","data-swiper-slide-index":n},r&&T("img",{src:r,loading:"lazy"}))}render(){const e=this;return e.params.render?e.params.render.call(e,e.params):T("div",{class:`photo-browser photo-browser-${e.params.theme}`},T("div",{class:"view"},T("div",{class:`page photo-browser-page photo-browser-page-${e.params.theme} no-toolbar ${e.params.navbar?"":"no-navbar"}`,"data-name":"photo-browser-page"},e.params.navbar&&e.renderNavbar(),e.params.toolbar&&e.renderToolbar(),e.params.thumbs&&e.params.thumbs.length&&e.renderThumbs(),T("div",{class:`photo-browser-captions photo-browser-captions-${e.params.captionsTheme||e.params.theme}`},e.params.photos.map((n,a)=>n.caption?e.renderCaption(n.caption,a):"")),T("div",{class:"photo-browser-swiper-container swiper"},T("div",{class:"photo-browser-swiper-wrapper swiper-wrapper"},!e.params.virtualSlides&&e.params.photos.map((n,a)=>n.html||(typeof n=="string"||n instanceof String)&&n.indexOf("<")>=0&&n.indexOf(">")>=0?e.renderObject(n,a):e.params.lazy===!0?e.renderLazyPhoto(n,a):e.renderPhoto(n,a)))))))}renderStandalone(){const e=this;return e.params.renderStandalone?e.params.renderStandalone.call(e):``}renderPage(){const e=this;return e.params.renderPage?e.params.renderPage.call(e):e.render()}renderPopup(){const e=this;return e.params.renderPopup?e.params.renderPopup.call(e):``}onOpen(e,n){const a=this,r=a.app,s=C(n);s[0].f7PhotoBrowser=a,a.$el=s,a.el=s[0],a.openedIn=e,a.opened=!0,a.$swiperContainerEl=a.$el.find(".photo-browser-swiper-container"),a.$swiperWrapperEl=a.$el.find(".photo-browser-swiper-wrapper"),a.slides=a.$el.find(".photo-browser-slide"),a.$captionsContainerEl=a.$el.find(".photo-browser-captions"),a.captions=a.$el.find(".photo-browser-caption");const i=a.params.thumbs&&a.params.thumbs.length>0;let o,l,c;const d=a.activeIndex,u=W({},a.params.swiper,{initialSlide:d,on:{click(f){clearTimeout(o),a.params.exposition&&(o=setTimeout(()=>{a.expositionToggle()},350)),a.emit("local::tap",f),a.emit("local::click",f)},doubleClick(f){clearTimeout(o),a.emit("local::doubleTap",f),a.emit("local::doubleClick",f)},slideChange(){const f=this;i&&a.thumbsSwiper&&!c&&(l=!0,a.thumbsSwiper.slideTo(a.swiper.activeIndex),setTimeout(()=>{l=!1})),a.onSlideChange(f);for(var h=arguments.length,m=new Array(h),b=0;b=0&&f.indexOf(">")>=0?a.renderObject(f,h):a.params.lazy===!0?a.renderLazyPhoto(f,h):a.renderPhoto(f,h)}}});const p=fe();if(a.swiper=r.swiper?r.swiper.create(a.$swiperContainerEl[0],u):new p.Swiper(a.$swiperContainerEl[0],u),(a.activeIndex===0||a.params.virtualSlides)&&a.onSlideChange(a.swiper),i){const f={el:a.$el.find(".photo-browser-thumbs .swiper")[0],slidesPerView:"auto",centeredSlides:!0,spaceBetween:4,watchSlidesProgress:!0,initialSlide:d,on:{touchMove(){c=!0},touchEnd(){c=!1},slideChange(h){l||a.swiper.slideTo(h.activeIndex,0)},click(h){if(!h.clickedSlide)return;const m=parseInt(C(h.clickedSlide).attr("data-swiper-slide-index"),10);h.slideTo(m,0)}}};a.thumbsSwiper=r.swiper?r.swiper.create(f):new p.Swiper(f)}a.$el&&a.$el.trigger("photobrowser:open"),a.emit("local::open photoBrowserOpen",a)}onOpened(){const e=this;e.$el&&e.params.type==="standalone"&&e.$el.css("animation","none"),e.$el&&e.$el.trigger("photobrowser:opened"),e.emit("local::opened photoBrowserOpened",e)}onClose(){const e=this;e.destroyed||(e.swiper&&e.swiper.destroy&&(e.swiper.destroy(!0,!1),e.swiper=null,delete e.swiper),e.thumbsSwiper&&e.thumbsSwiper.destroy&&(e.thumbsSwiper.destroy(!0,!1),e.thumbsSwiper=null,delete e.thumbsSwiper),e.$el&&e.$el.trigger("photobrowser:close"),e.emit("local::close photoBrowserClose",e))}onClosed(){const e=this;e.destroyed||(e.opened=!1,e.$el=null,e.el=null,delete e.$el,delete e.el,e.$el&&e.$el.trigger("photobrowser:closed"),e.emit("local::closed photoBrowserClosed",e))}openPage(){const e=this;if(e.opened)return e;const n=e.renderPage();return e.view.router.navigate({url:e.url,route:{content:n,path:e.url,on:{pageBeforeIn(a,r){e.view.$el.addClass(`with-photo-browser-page with-photo-browser-page-${e.params.theme}`),e.onOpen("page",r.el)},pageAfterIn(a,r){e.onOpened("page",r.el)},pageBeforeOut(a,r){e.view.$el.removeClass(`with-photo-browser-page with-photo-browser-page-exposed with-photo-browser-page-${e.params.theme}`),e.onClose("page",r.el)},pageAfterOut(a,r){e.onClosed("page",r.el)}}}}),e}openStandalone(){const e=this;if(e.opened)return e;const a={backdrop:!1,content:e.renderStandalone(),on:{popupOpen(r){e.onOpen("popup",r.el)},popupOpened(r){e.onOpened("popup",r.el)},popupClose(r){e.onClose("popup",r.el)},popupClosed(r){e.onClosed("popup",r.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:a}}):e.modal=e.app.popup.create(a).open(),e}openPopup(){const e=this;if(e.opened)return e;const a={content:e.renderPopup(),push:e.params.popupPush,closeByBackdropClick:e.params.closeByBackdropClick,on:{popupOpen(r){e.onOpen("popup",r.el)},popupOpened(r){e.onOpened("popup",r.el)},popupClose(r){e.onClose("popup",r.el)},popupClosed(r){e.onClosed("popup",r.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:a}}):e.modal=e.app.popup.create(a).open(),e}expositionEnable(){const e=this;return e.params.type==="page"&&e.view.$el.addClass("with-photo-browser-page-exposed"),e.$el&&e.$el.addClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.addClass("photo-browser-captions-exposed"),e.exposed=!0,e}expositionDisable(){const e=this;return e.params.type==="page"&&e.view.$el.removeClass("with-photo-browser-page-exposed"),e.$el&&e.$el.removeClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.removeClass("photo-browser-captions-exposed"),e.exposed=!1,e}expositionToggle(){const e=this;return e.params.type==="page"&&e.view.$el.toggleClass("with-photo-browser-page-exposed"),e.$el&&e.$el.toggleClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.toggleClass("photo-browser-captions-exposed"),e.exposed=!e.exposed,e}open(e){const n=this,a=n.params.type;return n.opened?(n.swiper&&typeof e<"u"&&n.swiper.slideTo(parseInt(e,10)),n):(typeof e<"u"&&(n.activeIndex=e),a==="standalone"&&n.openStandalone(),a==="page"&&n.openPage(),a==="popup"&&n.openPopup(),n)}close(){const e=this;return e.opened&&(e.params.routableModals&&e.view||e.openedIn==="page"?e.view.router.back():(e.modal.once("modalClosed",()=>{lt(()=>{e.destroyed||(e.modal.destroy(),delete e.modal)})}),e.modal.close())),e}init(){}destroy(){let e=this;e.emit("local::beforeDestroy photoBrowserBeforeDestroy",e),e.$el&&(e.$el.trigger("photobrowser:beforedestroy"),e.$el[0].f7PhotoBrowser=null,delete e.$el[0].f7PhotoBrowser),Ze(e),e.destroyed=!0,e=null}};const G$={name:"photoBrowser",params:{photoBrowser:{photos:[],thumbs:[],exposition:!0,expositionHideCaptions:!1,type:"standalone",navbar:!0,toolbar:!0,theme:"light",captionsTheme:void 0,iconsColor:void 0,popupPush:!1,swipeToClose:!0,pageBackLinkText:"Back",popupCloseLinkText:void 0,popupCloseLinkIcon:!0,navbarOfText:"of",navbarShowCount:void 0,view:void 0,url:"photos/",routableModals:!1,virtualSlides:!0,lazy:!0,closeByBackdropClick:!0,renderNavbar:void 0,renderToolbar:void 0,renderCaption:void 0,renderObject:void 0,renderLazyPhoto:void 0,renderPhoto:void 0,renderThumb:void 0,renderPage:void 0,renderPopup:void 0,renderStandalone:void 0,swiper:{cssMode:!1,initialSlide:0,spaceBetween:20,speed:300,loop:!1,keyboard:{enabled:!0},navigation:{nextEl:".photo-browser-next",prevEl:".photo-browser-prev"},zoom:{enabled:!0,maxRatio:3,minRatio:1}}}},create(){const t=this;t.photoBrowser=et({defaultSelector:".photo-browser-popup, .photo-browser-page",constructor:Vo,app:t,domProp:"f7PhotoBrowser"})},static:{PhotoBrowser:Vo}};let _o=class extends en{constructor(e,n){const a=W({on:{}},e.params.notification,n);super(e,a);const r=this;r.app=e,r.params=a;const{icon:s,title:i,titleRightText:o,subtitle:l,text:c,closeButton:d,closeTimeout:u,cssClass:p,closeOnClick:f}=r.params;let h;if(r.params.el)h=C(r.params.el);else{const B=r.render({icon:s,title:i,titleRightText:o,subtitle:l,text:c,closeButton:d,cssClass:p});h=C(B)}if(h&&h.length>0&&h[0].f7Modal)return h[0].f7Modal;if(h.length===0)return r.destroy();W(r,{$el:h,el:h[0],type:"notification"}),h[0].f7Modal=r,d&&h.find(".notification-close-button").on("click",()=>{r.close()}),h.on("click",B=>{d&&C(B.target).closest(".notification-close-button").length||(r.emit("local::click notificationClick",r),f&&r.close())}),r.on("beforeDestroy",()=>{h.off("click")});let m,b,w,g,v,y;const E={};function k(B){m||(m=!0,b=!1,w=void 0,v=It(),E.x=B.type==="touchstart"?B.targetTouches[0].pageX:B.pageX,E.y=B.type==="touchstart"?B.targetTouches[0].pageY:B.pageY)}function $(B){if(!m)return;const P=B.type==="touchmove"?B.targetTouches[0].pageX:B.pageX,L=B.type==="touchmove"?B.targetTouches[0].pageY:B.pageY;if(typeof w>"u"&&(w=!!(w||Math.abs(L-E.y)0&&(V=g**.8),r.$el.transform(`translate3d(0, ${V}px, 0)`)}function M(){if(!m||!b){m=!1,b=!1;return}if(m=!1,b=!1,g===0)return;const B=It()-v;r.$el.transition(""),r.$el.addClass("notification-transitioning"),r.$el.transform(""),(g<-10&&B<300||-g>=y/1)&&r.close()}function x(){r.$el.on(e.touchEvents.start,k,{passive:!0}),e.on("touchmove:active",$),e.on("touchend:passive",M)}function F(){r.$el.off(e.touchEvents.start,k,{passive:!0}),e.off("touchmove:active",$),e.off("touchend:passive",M)}let S;function I(){S=lt(()=>{if(m&&b){I();return}r.close()},u)}return r.on("open",()=>{r.params.swipeToClose&&x(),C(".notification.modal-in").each(B=>{const P=e.notification.get(B);B!==r.el&&P&&P.close()}),u&&I()}),r.on("close beforeDestroy",()=>{r.params.swipeToClose&&F(),clearTimeout(S)}),r}render(){const e=this;if(e.params.render)return e.params.render.call(e,e);const{icon:n,title:a,titleRightText:r,subtitle:s,text:i,closeButton:o,cssClass:l}=e.params;return T("div",{class:`notification ${n?"notification-with-icon":""} ${l||""}`},T("div",{class:"notification-header"},n&&T("div",{class:"notification-icon"},n),a&&T("div",{class:"notification-title"},a),r&&T("div",{class:"notification-title-right-text"},r),o&&T("span",{class:"notification-close-button"})),T("div",{class:"notification-content"},s&&T("div",{class:"notification-subtitle"},s),i&&T("div",{class:"notification-text"},i)))}};const K$={name:"notification",static:{Notification:_o},create(){const t=this;t.notification=W({},pn({app:t,constructor:_o,defaultSelector:".notification.modal-in"}))},params:{notification:{icon:null,title:null,titleRightText:null,subtitle:null,text:null,closeButton:!1,closeTimeout:null,closeOnClick:!1,swipeToClose:!0,cssClass:null,render:null,containerEl:null}}};let jo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this;a.app=e;const r=Ie(),s=W({on:{}},e.params.autocomplete);a.useModulesParams(s),a.params=W(s,n);let i;a.params.openerEl&&(i=C(a.params.openerEl),i.length&&(i[0].f7Autocomplete=a));let o;a.params.inputEl&&(o=C(a.params.inputEl),o.length&&(o[0].f7Autocomplete=a));const l=Ir();let c=n.url;!c&&i&&i.length&&(i.attr("href")?c=i.attr("href"):i.find("a").length>0&&(c=i.find("a").attr("href"))),(!c||c==="#"||c==="")&&(c=a.params.url);const d=a.params.multiple?"checkbox":"radio";W(a,{$openerEl:i,openerEl:i&&i[0],$inputEl:o,inputEl:o&&o[0],id:l,url:c,value:a.params.value||[],inputType:d,inputName:`${d}-${l}`,$modalEl:void 0,$dropdownEl:void 0});let u="";function p(){let E=a.$inputEl.val().trim();a.params.source&&a.params.source.call(a,E,k=>{let $="";const M=a.params.limit?Math.min(a.params.limit,k.length):k.length;a.items=k;let x;a.params.highlightMatches&&(E=E.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),x=new RegExp(`(${E})`,"i"));let F,S;for(let I=0;I$1"):P},I)}if($===""&&E===""&&a.params.dropdownPlaceholderText&&($+=a.renderItem({placeholder:!0,text:a.params.dropdownPlaceholderText})),a.$dropdownEl.find("ul").html($),a.params.typeahead){if(!F||!S||F.toLowerCase().indexOf(E.toLowerCase())!==0)return;if(u.toLowerCase()===E.toLowerCase()){a.value=[];return}if(u.toLowerCase().indexOf(E.toLowerCase())===0){u=E,a.value=[];return}o.val(F),o[0].setSelectionRange(E.length,F.length);const I=typeof a.value[0]=="object"?a.value[0][a.params.valueProperty]:a.value[0];(!I||F.toLowerCase()!==I.toLowerCase())&&(a.value=[S],a.emit("local::change autocompleteChange",[S]))}u=E})}function f(){const E=this,k=E.value,$=C(E).parents(".autocomplete-values").length>0;let M,x,F;if($){if(a.inputType==="checkbox"&&!E.checked){for(let S=0;S0||setTimeout(()=>{a.close()},0)}function g(){a.positionDropdown()}function v(E){if(!a.opened)return;if(E.keyCode===27){E.preventDefault(),a.$inputEl.blur();return}if(E.keyCode===13){const M=a.$dropdownEl.find(".autocomplete-dropdown-selected label");if(M.length){E.preventDefault(),M.trigger("click"),a.$inputEl.blur();return}a.params.typeahead&&(E.preventDefault(),a.$inputEl.blur());return}if(E.keyCode!==40&&E.keyCode!==38)return;E.preventDefault();const k=a.$dropdownEl.find(".autocomplete-dropdown-selected");let $;k.length?($=k[E.keyCode===40?"next":"prev"]("li"),$.length||($=a.$dropdownEl.find("li").eq(E.keyCode===40?0:a.$dropdownEl.find("li").length-1))):$=a.$dropdownEl.find("li").eq(E.keyCode===40?0:a.$dropdownEl.find("li").length-1),!$.hasClass("autocomplete-dropdown-placeholder")&&(k.removeClass("autocomplete-dropdown-selected"),$.addClass("autocomplete-dropdown-selected"))}function y(){const E=C(this);let k;for(let $=0;${lt(()=>{a.close()})})},a.detachPageEvents=function(){a.$el.off("change",'input[type="radio"], input[type="checkbox"]',f)},a.useModules(),a.init(),a}get view(){const e=this,{$openerEl:n,$inputEl:a,app:r}=e;let s;if(e.params.view)s=e.params.view;else if(n||a){const i=n||a;s=i.closest(".view").length&&i.closest(".view")[0].f7View}return s||(s=r.views.main),s}positionDropdown(){const e=this,{$inputEl:n,app:a,$dropdownEl:r}=e,s=n.parents(".page-content");if(s.length===0)return;const i=n.offset(),o=n[0].offsetWidth,l=n[0].offsetHeight,c=n.parents(".list");let d;c.parents().each(v=>{if(d)return;const y=C(v);y.parent(s).length&&(d=y)});const u=c.offset(),p=parseInt(s.css("padding-bottom"),10),f=c.length>0?u.left-s.offset().left:0,h=i.left-(c.length>0?u.left:0)-(a.rtl,0),m=i.top-(s.offset().top-s[0].scrollTop),b=s[0].scrollHeight-p-(m+s[0].scrollTop)-n[0].offsetHeight,w=a.rtl?"padding-right":"padding-left";let g;c.length&&(g=(a.rtl?c[0].offsetWidth-h-o:h)-(a.theme==="md"?16:15)),r.css({left:`${c.length>0?f:h}px`,top:`${m+s[0].scrollTop+l}px`,width:`${c.length>0?c[0].offsetWidth:o}px`}),r.children(".autocomplete-dropdown-inner").css({maxHeight:`${b}px`,[w]:c.length>0?`${g}px`:""})}focus(){this.$el.find("input[type=search]").focus()}source(e){const n=this;if(!n.params.source)return;const{$el:a}=n;n.params.source.call(n,e,r=>{let s="";const i=n.params.limit?Math.min(n.params.limit,r.length):r.length;n.items=r;for(let o=0;o"u"&&e.$openerEl&&e.$openerEl.length&&(n=e.$openerEl.find(".item-title").text().trim());const a=e.params.openIn==="popup",r=a?e.params.preloader&&T("div",{class:"left"},e.renderPreloader()):T("div",{class:"left sliding"},T("a",{class:"link back"},T("i",{class:"icon icon-back"}),T("span",{class:"if-not-md"},e.params.pageBackLinkText))),s=a?T("div",{class:"right"},T("a",{class:"link popup-close","data-popup":".autocomplete-popup"},e.params.popupCloseLinkText)):e.params.preloader&&T("div",{class:"right"},e.renderPreloader());return T("div",{class:`navbar ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},T("div",{class:"navbar-bg"}),T("div",{class:`navbar-inner ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},r,n&&T("div",{class:"title sliding"},n),s,T("div",{class:"subnavbar sliding"},e.renderSearchbar())))}renderDropdown(){const e=this;return e.params.renderDropdown?e.params.renderDropdown.call(e,e.items):T("div",{class:"autocomplete-dropdown"},T("div",{class:"autocomplete-dropdown-inner"},T("div",{class:"list no-safe-areas"},T("ul",null))),e.params.preloader&&e.renderPreloader())}renderPage(e){const n=this;return n.params.renderPage?n.params.renderPage.call(n,n.items):T("div",{class:"page page-with-subnavbar autocomplete-page","data-name":"autocomplete-page"},n.renderNavbar(e),T("div",{class:"searchbar-backdrop"}),T("div",{class:"page-content"},T("div",{class:`list autocomplete-list autocomplete-found autocomplete-list-${n.id} ${n.params.formColorTheme?`color-${n.params.formColorTheme}`:""}`},T("ul",null)),T("div",{class:"list autocomplete-not-found"},T("ul",null,T("li",{class:"item-content"},T("div",{class:"item-inner"},T("div",{class:"item-title"},n.params.notFoundText))))),T("div",{class:"list autocomplete-values"},T("ul",null))))}renderPopup(){const e=this;return e.params.renderPopup?e.params.renderPopup.call(e,e.items):T("div",{class:"popup autocomplete-popup"},T("div",{class:"view"},e.renderPage(!0),";"))}onOpen(e,n){const a=this,r=a.app,s=C(n);if(a.$el=s,a.el=s[0],a.openedIn=e,a.opened=!0,a.params.openIn==="dropdown")a.attachDropdownEvents(),a.$dropdownEl.addClass("autocomplete-dropdown-in"),a.$inputEl.trigger("input");else{let i=s.find(".searchbar");a.params.openIn==="page"&&r.theme==="ios"&&i.length===0&&(i=C(r.navbar.getElByPage(s)).find(".searchbar")),a.searchbar=r.searchbar.create({el:i,backdropEl:s.find(".searchbar-backdrop"),customSearch:!0,on:{search(o,l){l.length===0&&a.searchbar.enabled?a.searchbar.backdropShow():a.searchbar.backdropHide(),a.source(l)}}}),a.attachPageEvents(),a.updateValues(),a.params.requestSourceOnOpen&&a.source("")}a.emit("local::open autocompleteOpen",a)}autoFocus(){const e=this;return e.searchbar&&e.searchbar.$inputEl&&e.searchbar.$inputEl.focus(),e}onOpened(){const e=this;e.params.openIn!=="dropdown"&&e.params.autoFocus&&e.autoFocus(),e.emit("local::opened autocompleteOpened",e)}onClose(){const e=this;e.destroyed||(e.searchbar&&e.searchbar.destroy&&(e.searchbar.destroy(),e.searchbar=null,delete e.searchbar),e.params.openIn==="dropdown"?(e.detachDropdownEvents(),e.$dropdownEl.removeClass("autocomplete-dropdown-in").remove()):e.detachPageEvents(),e.emit("local::close autocompleteClose",e))}onClosed(){const e=this;e.destroyed||(e.opened=!1,e.$el=null,e.el=null,delete e.$el,delete e.el,e.emit("local::closed autocompleteClosed",e))}openPage(){const e=this;if(e.opened)return e;const n=e.renderPage();return e.view.router.navigate({url:e.url,route:{content:n,path:e.url,on:{pageBeforeIn(a,r){e.onOpen("page",r.el)},pageAfterIn(a,r){e.onOpened("page",r.el)},pageBeforeOut(a,r){e.onClose("page",r.el)},pageAfterOut(a,r){e.onClosed("page",r.el)}},options:{animate:e.params.animate}}}),e}openPopup(){const e=this;if(e.opened)return e;const a={content:e.renderPopup(),animate:e.params.animate,push:e.params.popupPush,swipeToClose:e.params.popupSwipeToClose,on:{popupOpen(r){e.onOpen("popup",r.el)},popupOpened(r){e.onOpened("popup",r.el)},popupClose(r){e.onClose("popup",r.el)},popupClosed(r){e.onClosed("popup",r.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:a}}):e.modal=e.app.popup.create(a).open(e.params.animate),e}openDropdown(){const e=this;e.$dropdownEl||(e.$dropdownEl=C(e.renderDropdown()));const n=e.$inputEl.parents(".page-content");e.params.dropdownContainerEl?C(e.params.dropdownContainerEl).append(e.$dropdownEl):n.length===0?e.$dropdownEl.insertAfter(e.$inputEl):(e.positionDropdown(),n.append(e.$dropdownEl)),e.onOpen("dropdown",e.$dropdownEl),e.onOpened("dropdown",e.$dropdownEl)}open(){const e=this;if(e.opened)return e;const n=e.params.openIn;return e[`open${n.split("").map((a,r)=>r===0?a.toUpperCase():a).join("")}`](),e}close(){const e=this;return e.opened&&(e.params.openIn==="dropdown"?(e.onClose(),e.onClosed()):e.params.routableModals&&e.view||e.openedIn==="page"?e.view.router.back({animate:e.params.animate}):(e.modal.once("modalClosed",()=>{lt(()=>{e.destroyed||(e.modal.destroy(),delete e.modal)})}),e.modal.close())),e}init(){this.attachEvents()}destroy(){const e=this;e.emit("local::beforeDestroy autocompleteBeforeDestroy",e),e.detachEvents(),e.$inputEl&&e.$inputEl[0]&&delete e.$inputEl[0].f7Autocomplete,e.$openerEl&&e.$openerEl[0]&&delete e.$openerEl[0].f7Autocomplete,Ze(e),e.destroyed=!0}};const Q$={name:"autocomplete",params:{autocomplete:{openerEl:void 0,inputEl:void 0,view:void 0,dropdownContainerEl:void 0,dropdownPlaceholderText:void 0,typeahead:!1,highlightMatches:!0,updateInputValueOnSelect:!0,inputEvents:"input",value:void 0,multiple:!1,source:void 0,limit:void 0,valueProperty:"id",textProperty:"text",openIn:"page",pageBackLinkText:"Back",popupCloseLinkText:"Close",pageTitle:void 0,searchbarPlaceholder:"Search...",searchbarDisableText:"Cancel",searchbarDisableButton:!0,searchbarSpellcheck:!1,popupPush:!1,popupSwipeToClose:void 0,animate:!0,autoFocus:!1,closeOnSelect:!1,notFoundText:"Nothing found",requestSourceOnOpen:!1,preloaderColor:void 0,preloader:!1,formColorTheme:void 0,navbarColorTheme:void 0,routableModals:!1,url:"select/",renderDropdown:void 0,renderPage:void 0,renderPopup:void 0,renderItem:void 0,renderSearchbar:void 0,renderNavbar:void 0}},static:{Autocomplete:jo},create(){const t=this;t.autocomplete=W(et({defaultSelector:void 0,constructor:jo,app:t,domProp:"f7Autocomplete"}),{open(e){const n=t.autocomplete.get(e);if(n&&n.open)return n.open()},close(e){const n=t.autocomplete.get(e);if(n&&n.close)return n.close()}})}};let qo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this,r=Xe(),s=W({},e.params.tooltip),i=ye();a.useModulesParams(s),a.params=W(s,n),typeof n.offset>"u"&&r.touch&&a.params.trigger==="hover"&&(a.params.offset=10);const{targetEl:o,containerEl:l}=a.params;if(!o&&!a.params.delegated)return a;const c=C(o);if(c.length===0&&!a.params.delegated)return a;if(c[0]&&c[0].f7Tooltip&&!a.params.delegated)return c[0].f7Tooltip;let d=C(l||e.$el).eq(0);d.length===0&&(d=e.$el);const u=C(a.render()).eq(0);W(a,{app:e,$targetEl:c,targetEl:c&&c[0],$containerEl:d,containerEl:d&&d[0],$el:u,el:u&&u[0],text:a.params.text||"",visible:!1,opened:!1}),c[0]&&(c[0].f7Tooltip=a);const p={};let f;function h(){a.opened?a.hide():a.show(this)}function m(k){a.opened&&(C(k.target).closest(c).length||C(k.target).closest(a.$el).length)||a.hide()}function b(k){f||(f=!0,p.x=k.type==="touchstart"?k.targetTouches[0].pageX:k.pageX,p.y=k.type==="touchstart"?k.targetTouches[0].pageY:k.pageY,a.show(this))}function w(k){if(!f)return;const $=k.type==="touchmove"?k.targetTouches[0].pageX:k.pageX,M=k.type==="touchmove"?k.targetTouches[0].pageY:k.pageY;(($-p.x)**2+(M-p.y)**2)**.5>50&&(f=!1,a.hide())}function g(){f&&(f=!1,a.hide())}function v(){a.show(this)}function y(){a.hide()}function E(){u.hasClass("tooltip-in")||u.removeClass("tooltip-out").remove()}return a.attachEvents=function(){if(u.on("transitionend",E),a.params.trigger==="click"){a.params.delegated?C(i).on("click",a.params.targetEl,h):a.$targetEl.on("click",h),C("html").on("click",m);return}if(a.params.trigger!=="manual")if(r.touch){const $=r.passiveListener?{passive:!0}:!1;a.params.delegated?C(i).on(e.touchEvents.start,a.params.targetEl,b,$):a.$targetEl.on(e.touchEvents.start,b,$),e.on("touchmove",w),e.on("touchend:passive",g)}else a.params.delegated?(C(i).on(r.pointerEvents?"pointerenter":"mouseenter",a.params.targetEl,v,!0),C(i).on(r.pointerEvents?"pointerleave":"mouseleave",a.params.targetEl,y,!0)):(a.$targetEl.on(r.pointerEvents?"pointerenter":"mouseenter",v),a.$targetEl.on(r.pointerEvents?"pointerleave":"mouseleave",y))},a.detachEvents=function(){if(u.off("transitionend",E),a.params.trigger==="click"){a.params.delegated?C(i).on("click",a.params.targetEl,h):a.$targetEl.off("click",h),C("html").off("click",m);return}if(a.params.trigger!=="manual")if(r.touch){const $=r.passiveListener?{passive:!0}:!1;a.params.delegated?C(i).off(e.touchEvents.start,a.params.targetEl,b,$):a.$targetEl.off(e.touchEvents.start,b,$),e.off("touchmove",w),e.off("touchend:passive",g)}else a.params.delegated?(C(i).off(r.pointerEvents?"pointerenter":"mouseenter",a.params.targetEl,v,!0),C(i).off(r.pointerEvents?"pointerleave":"mouseleave",a.params.targetEl,y,!0)):(a.$targetEl.off(r.pointerEvents?"pointerenter":"mouseenter",v),a.$targetEl.off(r.pointerEvents?"pointerleave":"mouseleave",y))},a.useModules(),a.init(),a}setTargetEl(e){const n=this;return n.detachEvents(),n.$targetEl=C(e),n.targetEl=n.$targetEl[0],n.attachEvents(),n}position(e){const n=this,{$el:a,app:r,$containerEl:s}=n,i=!!n.params.containerEl,o=n.params.offset||0;a.css({left:"",top:""});const l=C(e||n.targetEl),[c,d]=[a.width(),a.height()];a.css({left:"",top:""});let u,p,f,h;const m=i&&s.length?s[0].getBoundingClientRect():r;if(l&&l.length>0){if(u=l.outerWidth(),p=l.outerHeight(),typeof u>"u"&&typeof p>"u"){const E=l[0].getBoundingClientRect();u=E.width,p=E.height}const v=l.offset();f=v.left-m.left,h=v.top-m.top;const y=l.parents(".page");y.length>0&&(h-=y[0].scrollTop)}let[b,w]=[0,0,0],g="top";d+o=m.height&&(w=m.height-d-8)),g==="top"||g==="bottom"?(b=u/2+f-c/2,b<8&&(b=8),b+c>m.width&&(b=m.width-c-8),b<0&&(b=0)):g==="middle"&&(b=f-c,(b<8||b+c>m.width)&&(b<8&&(b=f+u),b+c>m.width&&(b=m.width-c-8))),a.css({top:`${w}px`,left:`${b}px`})}show(e){const n=this,{$el:a,$targetEl:r,$containerEl:s}=n;s[0]&&a[0]&&!s[0].contains(a[0])&&s.append(a),n.position(e);const i=C(e);return n.visible=!0,n.opened=!0,r.trigger("tooltip:show"),a.trigger("tooltip:show"),i.length&&i[0]!==r[0]&&i.trigger("tooltip:show"),n.emit("local::show tooltipShow",n),a.removeClass("tooltip-out").addClass("tooltip-in"),n}hide(){const e=this,{$el:n,$targetEl:a}=e;return e.visible=!1,e.opened=!1,a.trigger("tooltip:hide"),n.trigger("tooltip:hide"),e.emit("local::hide tooltipHide",e),n.addClass("tooltip-out").removeClass("tooltip-in"),e}render(){const e=this;if(e.params.render)return e.params.render.call(e,e);const{cssClass:n,text:a}=e.params;return`
            ${a||""}
            - `.trim()}setText(e){const n=this;return typeof e>"u"||(n.params.text=e,n.text=e,n.$el&&n.$el.children(".tooltip-content").html(e),n.opened&&n.position()),n}init(){this.attachEvents()}destroy(){const e=this;!e.$targetEl||e.destroyed||(e.$targetEl.trigger("tooltip:beforedestroy"),e.emit("local::beforeDestroy tooltipBeforeDestroy",e),e.$el.remove(),e.$targetEl[0]&&delete e.$targetEl[0].f7Tooltip,e.detachEvents(),Ze(e),e.destroyed=!0)}};const K$={name:"tooltip",static:{Tooltip:qo},create(){const t=this;t.tooltip=et({defaultSelector:".tooltip",constructor:qo,app:t,domProp:"f7Tooltip"}),t.tooltip.show=function(n){const a=C(n);if(a.length===0)return;const r=a[0].f7Tooltip;if(r)return r.show(a[0]),r},t.tooltip.hide=function(n){const a=C(n);if(a.length===0)return;const r=a[0].f7Tooltip;if(r)return r.hide(),r},t.tooltip.setText=function(n,a){const r=C(n);if(r.length===0)return;const s=r[0].f7Tooltip;if(s)return s.setText(a),s}},params:{tooltip:{targetEl:null,delegated:!1,text:null,cssClass:null,render:null,offset:0,trigger:"hover",containerEl:void 0}},on:{tabMounted(t){const e=this;C(t).find(".tooltip-init").each(n=>{const a=C(n).attr("data-tooltip");a&&e.tooltip.create({targetEl:n,text:a})})},tabBeforeRemove(t){C(t).find(".tooltip-init").each(e=>{e.f7Tooltip&&e.f7Tooltip.destroy()})},pageInit(t){const e=this;t.$el.find(".tooltip-init").each(n=>{const a=C(n).attr("data-tooltip");a&&e.tooltip.create({targetEl:n,text:a})}),e.theme==="ios"&&t.view&&t.view.router.dynamicNavbar&&t.$navbarEl&&t.$navbarEl.length>0&&t.$navbarEl.find(".tooltip-init").each(n=>{const a=C(n).attr("data-tooltip");a&&e.tooltip.create({targetEl:n,text:a})})},pageBeforeRemove(t){const e=this;t.$el.find(".tooltip-init").each(n=>{n.f7Tooltip&&n.f7Tooltip.destroy()}),e.theme==="ios"&&t.view&&t.view.router.dynamicNavbar&&t.$navbarEl&&t.$navbarEl.length>0&&t.$navbarEl.find(".tooltip-init").each(n=>{n.f7Tooltip&&n.f7Tooltip.destroy()})}},vnode:{"tooltip-init":{insert(t){const e=this,n=t.elm,a=C(n).attr("data-tooltip");a&&e.tooltip.create({targetEl:n,text:a})},update(t){const e=t.elm;e.f7Tooltip&&t&&t.data&&t.data.attrs&&t.data.attrs["data-tooltip"]&&e.f7Tooltip.setText(t.data.attrs["data-tooltip"])},destroy(t){const e=t.elm;e.f7Tooltip&&e.f7Tooltip.destroy()}}}},Q$={name:"skeleton"},J$={render(t){const{sliderLabel:e,sliderValue:n,sliderValueEditable:a,alphaLabelText:r}=t.params;return T("div",{class:"color-picker-module color-picker-module-alpha-slider"},T("div",{class:"color-picker-slider-wrap"},e&&T("div",{class:"color-picker-slider-label"},r),T("div",{class:"range-slider color-picker-slider color-picker-slider-alpha"}),n&&T("div",{class:"color-picker-slider-value"},a?T("input",{type:"number",step:"0.01",min:"0",max:"1",class:"color-picker-value-alpha"}):T("span",{class:"color-picker-value-alpha"}))))},init(t){t.alphaRangeSlider=t.app.range.create({el:t.$el.find(".color-picker-slider-alpha"),min:0,max:1,step:.01,value:1,on:{change(n,a){const r=Math.floor(a*100)/100;t.setValue({alpha:r})}}});function e(n){const a=t.value.alpha;let r=parseFloat(n.target.value);if(Number.isNaN(r)){n.target.value=a;return}r=Math.max(0,Math.min(1,r)),t.setValue({alpha:r})}t.$el.on("change",".color-picker-module-alpha-slider input",e),t.destroyAlphaSliderEvents=function(){t.$el.off("change",".color-picker-module-alpha-slider input",e)}},update(t){const{value:e}=t,{sliderValue:n,sliderValueEditable:a}=t.params,{alpha:r}=e;t.alphaRangeSlider.value=r,t.alphaRangeSlider.layout(),n&&a?t.$el.find("input.color-picker-value-alpha").val(r):t.$el.find("span.color-picker-value-alpha").text(r)},destroy(t){t.alphaRangeSlider&&t.alphaRangeSlider.destroy&&t.alphaRangeSlider.destroy(),delete t.alphaRangeSlider,t.destroyAlphaSliderEvents&&t.destroyAlphaSliderEvents(),delete t.destroyAlphaSliderEvents}},Z$={render(){return T("div",{class:"color-picker-module color-picker-module-current-color"},T("div",{class:"color-picker-current-color"}))},update(t){t.$el.find(".color-picker-module-current-color .color-picker-current-color").css("background-color",t.value.hex)}},ex={render(t){const{hexLabel:e,hexLabelText:n,hexValueEditable:a}=t.params;return T("div",{class:"color-picker-module color-picker-module-hex"},T("div",{class:"color-picker-hex-wrap"},e&&T("div",{class:"color-picker-hex-label"},n),T("div",{class:"color-picker-hex-value"},a?T("input",{type:"text",class:"color-picker-value-hex"}):T("span",{class:"color-picker-value-hex"}))))},init(t){function e(n){const a=t.value.hex;let r=n.target.value.replace(/#/g,"");if(Number.isNaN(r)||!r||r.length!==3&&r.length!==6){n.target.value=a;return}const s=0,i=parseInt(r,16),o=parseInt("ffffff",16);i>o&&(r="fff"),i{if(Array.isArray(e)){let n='
            ';return n+=e.map(a=>` + `.trim()}setText(e){const n=this;return typeof e>"u"||(n.params.text=e,n.text=e,n.$el&&n.$el.children(".tooltip-content").html(e),n.opened&&n.position()),n}init(){this.attachEvents()}destroy(){const e=this;!e.$targetEl||e.destroyed||(e.$targetEl.trigger("tooltip:beforedestroy"),e.emit("local::beforeDestroy tooltipBeforeDestroy",e),e.$el.remove(),e.$targetEl[0]&&delete e.$targetEl[0].f7Tooltip,e.detachEvents(),Ze(e),e.destroyed=!0)}};const J$={name:"tooltip",static:{Tooltip:qo},create(){const t=this;t.tooltip=et({defaultSelector:".tooltip",constructor:qo,app:t,domProp:"f7Tooltip"}),t.tooltip.show=function(n){const a=C(n);if(a.length===0)return;const r=a[0].f7Tooltip;if(r)return r.show(a[0]),r},t.tooltip.hide=function(n){const a=C(n);if(a.length===0)return;const r=a[0].f7Tooltip;if(r)return r.hide(),r},t.tooltip.setText=function(n,a){const r=C(n);if(r.length===0)return;const s=r[0].f7Tooltip;if(s)return s.setText(a),s}},params:{tooltip:{targetEl:null,delegated:!1,text:null,cssClass:null,render:null,offset:0,trigger:"hover",containerEl:void 0}},on:{tabMounted(t){const e=this;C(t).find(".tooltip-init").each(n=>{const a=C(n).attr("data-tooltip");a&&e.tooltip.create({targetEl:n,text:a})})},tabBeforeRemove(t){C(t).find(".tooltip-init").each(e=>{e.f7Tooltip&&e.f7Tooltip.destroy()})},pageInit(t){const e=this;t.$el.find(".tooltip-init").each(n=>{const a=C(n).attr("data-tooltip");a&&e.tooltip.create({targetEl:n,text:a})}),e.theme==="ios"&&t.view&&t.view.router.dynamicNavbar&&t.$navbarEl&&t.$navbarEl.length>0&&t.$navbarEl.find(".tooltip-init").each(n=>{const a=C(n).attr("data-tooltip");a&&e.tooltip.create({targetEl:n,text:a})})},pageBeforeRemove(t){const e=this;t.$el.find(".tooltip-init").each(n=>{n.f7Tooltip&&n.f7Tooltip.destroy()}),e.theme==="ios"&&t.view&&t.view.router.dynamicNavbar&&t.$navbarEl&&t.$navbarEl.length>0&&t.$navbarEl.find(".tooltip-init").each(n=>{n.f7Tooltip&&n.f7Tooltip.destroy()})}},vnode:{"tooltip-init":{insert(t){const e=this,n=t.elm,a=C(n).attr("data-tooltip");a&&e.tooltip.create({targetEl:n,text:a})},update(t){const e=t.elm;e.f7Tooltip&&t&&t.data&&t.data.attrs&&t.data.attrs["data-tooltip"]&&e.f7Tooltip.setText(t.data.attrs["data-tooltip"])},destroy(t){const e=t.elm;e.f7Tooltip&&e.f7Tooltip.destroy()}}}},Z$={name:"skeleton"},ex={render(t){const{sliderLabel:e,sliderValue:n,sliderValueEditable:a,alphaLabelText:r}=t.params;return T("div",{class:"color-picker-module color-picker-module-alpha-slider"},T("div",{class:"color-picker-slider-wrap"},e&&T("div",{class:"color-picker-slider-label"},r),T("div",{class:"range-slider color-picker-slider color-picker-slider-alpha"}),n&&T("div",{class:"color-picker-slider-value"},a?T("input",{type:"number",step:"0.01",min:"0",max:"1",class:"color-picker-value-alpha"}):T("span",{class:"color-picker-value-alpha"}))))},init(t){t.alphaRangeSlider=t.app.range.create({el:t.$el.find(".color-picker-slider-alpha"),min:0,max:1,step:.01,value:1,on:{change(n,a){const r=Math.floor(a*100)/100;t.setValue({alpha:r})}}});function e(n){const a=t.value.alpha;let r=parseFloat(n.target.value);if(Number.isNaN(r)){n.target.value=a;return}r=Math.max(0,Math.min(1,r)),t.setValue({alpha:r})}t.$el.on("change",".color-picker-module-alpha-slider input",e),t.destroyAlphaSliderEvents=function(){t.$el.off("change",".color-picker-module-alpha-slider input",e)}},update(t){const{value:e}=t,{sliderValue:n,sliderValueEditable:a}=t.params,{alpha:r}=e;t.alphaRangeSlider.value=r,t.alphaRangeSlider.layout(),n&&a?t.$el.find("input.color-picker-value-alpha").val(r):t.$el.find("span.color-picker-value-alpha").text(r)},destroy(t){t.alphaRangeSlider&&t.alphaRangeSlider.destroy&&t.alphaRangeSlider.destroy(),delete t.alphaRangeSlider,t.destroyAlphaSliderEvents&&t.destroyAlphaSliderEvents(),delete t.destroyAlphaSliderEvents}},tx={render(){return T("div",{class:"color-picker-module color-picker-module-current-color"},T("div",{class:"color-picker-current-color"}))},update(t){t.$el.find(".color-picker-module-current-color .color-picker-current-color").css("background-color",t.value.hex)}},nx={render(t){const{hexLabel:e,hexLabelText:n,hexValueEditable:a}=t.params;return T("div",{class:"color-picker-module color-picker-module-hex"},T("div",{class:"color-picker-hex-wrap"},e&&T("div",{class:"color-picker-hex-label"},n),T("div",{class:"color-picker-hex-value"},a?T("input",{type:"text",class:"color-picker-value-hex"}):T("span",{class:"color-picker-value-hex"}))))},init(t){function e(n){const a=t.value.hex;let r=n.target.value.replace(/#/g,"");if(Number.isNaN(r)||!r||r.length!==3&&r.length!==6){n.target.value=a;return}const s=0,i=parseInt(r,16),o=parseInt("ffffff",16);i>o&&(r="fff"),i{if(Array.isArray(e)){let n='
            ';return n+=e.map(a=>`
            - `).join(""),n+="
            ",n}return T("div",{class:"color-picker-palette-value","data-palette-color":e,style:`background-color: ${e}`})})))},init(t){function e(n){const a=C(n.target).attr("data-palette-color");t.setValue({hex:a})}t.$el.on("click",".color-picker-module-palette .color-picker-palette-value",e),t.destroyPaletteEvents=function(){t.$el.off("click",".color-picker-module-hex input",e)}},destroy(t){t.destroyPaletteEvents&&t.destroyPaletteEvents(),delete t.destroyPaletteEvents}},sx={render(){return T("div",{class:"color-picker-module color-picker-module-initial-current-colors"},T("div",{class:"color-picker-initial-current-colors"},T("div",{class:"color-picker-initial-color"}),T("div",{class:"color-picker-current-color"})))},init(t){function e(){if(t.initialValue){const{hex:n,alpha:a}=t.initialValue;t.setValue({hex:n,alpha:a})}}t.$el.on("click",".color-picker-initial-color",e),t.destroyInitialCurrentEvents=function(){t.$el.off("click",".color-picker-initial-color",e)}},update(t){t.$el.find(".color-picker-module-initial-current-colors .color-picker-initial-color").css("background-color",t.initialValue.hex),t.$el.find(".color-picker-module-initial-current-colors .color-picker-current-color").css("background-color",t.value.hex)},destroy(t){t.destroyInitialCurrentEvents&&t.destroyInitialCurrentEvents(),delete t.destroyInitialCurrentEvents}},ix={render(t){const{barLabel:e,barValue:n,barValueEditable:a,redLabelText:r,greenLabelText:s,blueLabelText:i}=t.params;return T("div",{class:"color-picker-module color-picker-module-rgb-bars"},T("div",{class:"color-picker-bar-wrap"},e&&T("div",{class:"color-picker-bar-label"},r),T("div",{class:"range-slider color-picker-bar color-picker-bar-red"}),n&&T("div",{class:"color-picker-bar-value"},a?T("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-bar-red","data-color-index":"0"}):T("span",{class:"color-picker-value-bar-red"}))),T("div",{class:"color-picker-bar-wrap"},e&&T("div",{class:"color-picker-bar-label"},s),T("div",{class:"range-slider color-picker-bar color-picker-bar-green"}),n&&T("div",{class:"color-picker-bar-value"},a?T("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-bar-green","data-color-index":"1"}):T("span",{class:"color-picker-value-bar-green"}))),T("div",{class:"color-picker-bar-wrap"},e&&T("div",{class:"color-picker-bar-label"},i),T("div",{class:"range-slider color-picker-bar color-picker-bar-blue"}),n&&T("div",{class:"color-picker-bar-value"},a?T("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-bar-blue","data-color-index":"2"}):T("span",{class:"color-picker-value-bar-blue"}))))},init(t){t.redBar=t.app.range.create({el:t.$el.find(".color-picker-bar-red"),min:0,max:255,step:1,value:0,vertical:!0,on:{change(n,a){t.setValue({rgb:[a,t.value.rgb[1],t.value.rgb[2]]})}}}),t.greenBar=t.app.range.create({el:t.$el.find(".color-picker-bar-green"),min:0,max:255,step:1,value:0,vertical:!0,on:{change(n,a){t.setValue({rgb:[t.value.rgb[0],a,t.value.rgb[2]]})}}}),t.blueBar=t.app.range.create({el:t.$el.find(".color-picker-bar-blue"),min:0,max:255,step:1,value:0,vertical:!0,on:{change(n,a){t.setValue({rgb:[t.value.rgb[0],t.value.rgb[1],a]})}}});function e(n){const a=[...t.value.rgb],r=parseInt(C(n.target).attr("data-color-index"),10);let s=parseInt(n.target.value,10);if(Number.isNaN(s)){n.target.value=a[r];return}s=Math.max(0,Math.min(255,s)),a[r]=s,t.setValue({rgb:a})}t.$el.on("change",".color-picker-module-rgb-bars input",e),t.destroyRgbBarsEvents=function(){t.$el.off("change",".color-picker-module-rgb-bars input",e)}},update(t){const{value:e,redBar:n,greenBar:a,blueBar:r}=t,{barValue:s,barValueEditable:i}=t.params,{rgb:o}=e;n.value=o[0],a.value=o[1],r.value=o[2],n.layout(),a.layout(),r.layout(),n.$el.find(".range-bar").css("background-image",`linear-gradient(to top, rgb(0, ${o[1]}, ${o[2]}), rgb(255, ${o[1]}, ${o[2]}))`),a.$el.find(".range-bar").css("background-image",`linear-gradient(to top, rgb(${o[0]}, 0, ${o[2]}), rgb(${o[0]}, 255, ${o[2]}))`),r.$el.find(".range-bar").css("background-image",`linear-gradient(to top, rgb(${o[0]}, ${o[1]}, 0), rgb(${o[0]}, ${o[1]}, 255))`),s&&i?(t.$el.find("input.color-picker-value-bar-red").val(o[0]),t.$el.find("input.color-picker-value-bar-green").val(o[1]),t.$el.find("input.color-picker-value-bar-blue").val(o[2])):s&&(t.$el.find("span.color-picker-value-bar-red").text(o[0]),t.$el.find("span.color-picker-value-bar-green").text(o[1]),t.$el.find("span.color-picker-value-bar-blue").text(o[2]))},destroy(t){t.redBar&&t.redBar.destroy&&t.redBar.destroy(),t.greenBar&&t.greenBar.destroy&&t.greenBar.destroy(),t.blueBar&&t.blueBar.destroy&&t.blueBar.destroy(),delete t.redBar,delete t.greenBar,delete t.blueBar,t.destroyRgbBarsEvents&&t.destroyRgbBarsEvents(),delete t.destroyRgbBarsEvents}},ox={render(t){const{sliderLabel:e,sliderValue:n,sliderValueEditable:a,redLabelText:r,greenLabelText:s,blueLabelText:i}=t.params;return T("div",{class:"color-picker-module color-picker-module-rgb-sliders"},T("div",{class:"color-picker-slider-wrap"},e&&T("div",{class:"color-picker-slider-label"},r),T("div",{class:"range-slider color-picker-slider color-picker-slider-red"}),n&&T("div",{class:"color-picker-slider-value"},a?T("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-red","data-color-index":"0"}):T("span",{class:"color-picker-value-red"}))),T("div",{class:"color-picker-slider-wrap"},e&&T("div",{class:"color-picker-slider-label"},s),T("div",{class:"range-slider color-picker-slider color-picker-slider-green"}),n&&T("div",{class:"color-picker-slider-value"},a?T("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-green","data-color-index":"1"}):T("span",{class:"color-picker-value-green"}))),T("div",{class:"color-picker-slider-wrap"},e&&T("div",{class:"color-picker-slider-label"},i),T("div",{class:"range-slider color-picker-slider color-picker-slider-blue"}),n&&T("div",{class:"color-picker-slider-value"},a?T("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-blue","data-color-index":"2"}):T("span",{class:"color-picker-value-blue"}))))},init(t){t.redRangeSlider=t.app.range.create({el:t.$el.find(".color-picker-slider-red"),min:0,max:255,step:1,value:0,on:{change(n,a){t.setValue({rgb:[a,t.value.rgb[1],t.value.rgb[2]]})}}}),t.greenRangeSlider=t.app.range.create({el:t.$el.find(".color-picker-slider-green"),min:0,max:255,step:1,value:0,on:{change(n,a){t.setValue({rgb:[t.value.rgb[0],a,t.value.rgb[2]]})}}}),t.blueRangeSlider=t.app.range.create({el:t.$el.find(".color-picker-slider-blue"),min:0,max:255,step:1,value:0,on:{change(n,a){t.setValue({rgb:[t.value.rgb[0],t.value.rgb[1],a]})}}});function e(n){const a=[...t.value.rgb],r=parseInt(C(n.target).attr("data-color-index"),10);let s=parseInt(n.target.value,10);if(Number.isNaN(s)){n.target.value=a[r];return}s=Math.max(0,Math.min(255,s)),a[r]=s,t.setValue({rgb:a})}t.$el.on("change",".color-picker-module-rgb-sliders input",e),t.destroyRgbSlidersEvents=function(){t.$el.off("change",".color-picker-module-rgb-sliders input",e)}},update(t){const{app:e,value:n,redRangeSlider:a,greenRangeSlider:r,blueRangeSlider:s}=t,{sliderValue:i,sliderValueEditable:o}=t.params,{rgb:l}=n;a.value=l[0],r.value=l[1],s.value=l[2],a.layout(),r.layout(),s.layout(),a.$el[0].style.setProperty("--f7-range-knob-color",`rgb(${l[0]}, ${l[1]}, ${l[2]})`),r.$el[0].style.setProperty("--f7-range-knob-color",`rgb(${l[0]}, ${l[1]}, ${l[2]})`),s.$el[0].style.setProperty("--f7-range-knob-color",`rgb(${l[0]}, ${l[1]}, ${l[2]})`);const c=e.rtl?"to left":"to right";a.$el.find(".range-bar").css("background-image",`linear-gradient(${c}, rgb(0, ${l[1]}, ${l[2]}), rgb(255, ${l[1]}, ${l[2]}))`),r.$el.find(".range-bar").css("background-image",`linear-gradient(${c}, rgb(${l[0]}, 0, ${l[2]}), rgb(${l[0]}, 255, ${l[2]}))`),s.$el.find(".range-bar").css("background-image",`linear-gradient(${c}, rgb(${l[0]}, ${l[1]}, 0), rgb(${l[0]}, ${l[1]}, 255))`),i&&o?(t.$el.find("input.color-picker-value-red").val(l[0]),t.$el.find("input.color-picker-value-green").val(l[1]),t.$el.find("input.color-picker-value-blue").val(l[2])):i&&(t.$el.find("span.color-picker-value-red").text(l[0]),t.$el.find("span.color-picker-value-green").text(l[1]),t.$el.find("span.color-picker-value-blue").text(l[2]))},destroy(t){t.redRangeSlider&&t.redRangeSlider.destroy&&t.redRangeSlider.destroy(),t.greenRangeSlider&&t.greenRangeSlider.destroy&&t.greenRangeSlider.destroy(),t.blueRangeSlider&&t.blueRangeSlider.destroy&&t.blueRangeSlider.destroy(),delete t.redRangeSlider,delete t.greenRangeSlider,delete t.blueRangeSlider,t.destroyRgbSlidersEvents&&t.destroyRgbSlidersEvents(),delete t.destroyRgbSlidersEvents}},lx={render(){return T("div",{class:"color-picker-module color-picker-module-sb-spectrum"},T("div",{class:"color-picker-sb-spectrum",style:"background-color: hsl(0, 100%, 50%)"},T("div",{class:"color-picker-sb-spectrum-handle"})))},init(t){const{app:e}=t;let n,a,r,s,i,o,l,c,d;const{$el:u}=t;function p(g,v){let y=(g-l.left)/l.width,E=(v-l.top)/l.height;y=Math.max(0,Math.min(1,y)),E=1-Math.max(0,Math.min(1,E)),t.setValue({hsb:[t.value.hue,y,E]})}function f(g){if(a||n)return;r=g.type==="touchstart"?g.targetTouches[0].pageX:g.pageX,i=r,s=g.type==="touchstart"?g.targetTouches[0].pageY:g.pageY,o=s;const v=C(g.target);d=v.closest(".color-picker-sb-spectrum-handle").length>0,d||(c=v.closest(".color-picker-sb-spectrum").length>0),c&&(l=u.find(".color-picker-sb-spectrum")[0].getBoundingClientRect(),p(r,s)),(d||c)&&u.find(".color-picker-sb-spectrum-handle").addClass("color-picker-sb-spectrum-handle-pressed")}function h(g){(c||d)&&(i=g.type==="touchmove"?g.targetTouches[0].pageX:g.pageX,o=g.type==="touchmove"?g.targetTouches[0].pageY:g.pageY,g.preventDefault(),a||(a=!0,d&&(l=u.find(".color-picker-sb-spectrum")[0].getBoundingClientRect())),(c||d)&&p(i,o))}function m(){a=!1,(c||d)&&u.find(".color-picker-sb-spectrum-handle").removeClass("color-picker-sb-spectrum-handle-pressed"),c=!1,d=!1}function b(){t.modules["sb-spectrum"].update(t)}const w=e.touchEvents.start==="touchstart"&&Xe().passiveListener?{passive:!0,capture:!1}:!1;t.$el.on(e.touchEvents.start,f,w),e.on("touchmove:active",h),e.on("touchend:passive",m),e.on("resize",b),t.destroySpectrumEvents=function(){t.$el.off(e.touchEvents.start,f,w),e.off("touchmove:active",h),e.off("touchend:passive",m),e.off("resize",b)}},update(t){const{value:e}=t,{hsl:n,hsb:a}=e,r=t.$el.find(".color-picker-sb-spectrum")[0].offsetWidth,s=t.$el.find(".color-picker-sb-spectrum")[0].offsetHeight;t.$el.find(".color-picker-sb-spectrum").css("background-color",`hsl(${n[0]}, 100%, 50%)`),t.$el.find(".color-picker-sb-spectrum-handle").css("background-color",`hsl(${n[0]}, ${n[1]*100}%, ${n[2]*100}%)`).transform(`translate(${r*a[1]}px, ${s*(1-a[2])}px)`)},destroy(t){t.destroySpectrumEvents&&t.destroySpectrumEvents(),delete t.destroySpectrumEvents}},cx={render(){return T("div",{class:"color-picker-module color-picker-module-hs-spectrum"},T("div",{class:"color-picker-hs-spectrum"},T("div",{class:"color-picker-hs-spectrum-handle"})))},init(t){const{app:e}=t;let n,a,r,s,i,o,l,c,d;const{$el:u}=t;function p(g,v){let y=(g-l.left)/l.width*360,E=(v-l.top)/l.height;y=Math.max(0,Math.min(360,y)),E=1-Math.max(0,Math.min(1,E)),t.setValue({hsb:[y,E,t.value.hsb[2]]})}function f(g){if(a||n)return;r=g.type==="touchstart"?g.targetTouches[0].pageX:g.pageX,i=r,s=g.type==="touchstart"?g.targetTouches[0].pageY:g.pageY,o=s;const v=C(g.target);d=v.closest(".color-picker-hs-spectrum-handle").length>0,d||(c=v.closest(".color-picker-hs-spectrum").length>0),c&&(l=u.find(".color-picker-hs-spectrum")[0].getBoundingClientRect(),p(r,s)),(d||c)&&u.find(".color-picker-hs-spectrum-handle").addClass("color-picker-hs-spectrum-handle-pressed")}function h(g){(c||d)&&(i=g.type==="touchmove"?g.targetTouches[0].pageX:g.pageX,o=g.type==="touchmove"?g.targetTouches[0].pageY:g.pageY,g.preventDefault(),a||(a=!0,d&&(l=u.find(".color-picker-hs-spectrum")[0].getBoundingClientRect())),(c||d)&&p(i,o))}function m(){a=!1,(c||d)&&u.find(".color-picker-hs-spectrum-handle").removeClass("color-picker-hs-spectrum-handle-pressed"),c=!1,d=!1}function b(){t.modules["hs-spectrum"].update(t)}const w=e.touchEvents.start==="touchstart"&&Xe().passiveListener?{passive:!0,capture:!1}:!1;t.$el.on(e.touchEvents.start,f,w),e.on("touchmove:active",h),e.on("touchend:passive",m),e.on("resize",b),t.destroySpectrumEvents=function(){t.$el.off(e.touchEvents.start,f,w),e.off("touchmove:active",h),e.off("touchend:passive",m),e.off("resize",b)}},update(t){const{value:e}=t,{hsb:n}=e,a=t.$el.find(".color-picker-hs-spectrum")[0].offsetWidth,r=t.$el.find(".color-picker-hs-spectrum")[0].offsetHeight,s=cn(n[0],n[1],1);t.$el.find(".color-picker-hs-spectrum-handle").css("background-color",`hsl(${s[0]}, ${s[1]*100}%, ${s[2]*100}%)`).transform(`translate(${a*(n[0]/360)}px, ${r*(1-n[1])}px)`)},destroy(t){t.destroySpectrumEvents&&t.destroySpectrumEvents(),delete t.destroySpectrumEvents}};function dx(){let e="";for(let n=256;n>0;n-=1){const a=n*Math.PI/128,r=360/256*n;e+=``}return e}const ux={render(){return T("div",{class:"color-picker-module color-picker-module-wheel"},T("div",{class:"color-picker-wheel"},T("svg",{viewBox:"0 0 300 300",width:"300",height:"300"},dx()),T("div",{class:"color-picker-wheel-handle"}),T("div",{class:"color-picker-sb-spectrum",style:"background-color: hsl(0, 100%, 50%)"},T("div",{class:"color-picker-sb-spectrum-handle"}))))},init(t){const{app:e}=t;let n,a,r,s,i,o,l,c,d,u,p,f;const{$el:h}=t;function m(k,$){const M=l.left+l.width/2,x=l.top+l.height/2;let S=Math.atan2($-x,k-M)*180/Math.PI+90;S<0&&(S+=360),S=360-S,t.setValue({hue:S})}function b(k,$){let M=(k-u.left)/u.width,x=($-u.top)/u.height;M=Math.max(0,Math.min(1,M)),x=1-Math.max(0,Math.min(1,x)),t.setValue({hsb:[t.value.hue,M,x]})}function w(k){if(a||n)return;r=k.type==="touchstart"?k.targetTouches[0].pageX:k.pageX,i=r,s=k.type==="touchstart"?k.targetTouches[0].pageY:k.pageY,o=s;const $=C(k.target);d=$.closest(".color-picker-wheel-handle").length>0,c=$.closest("circle").length>0,f=$.closest(".color-picker-sb-spectrum-handle").length>0,f||(p=$.closest(".color-picker-sb-spectrum").length>0),c&&(l=h.find(".color-picker-wheel")[0].getBoundingClientRect(),m(r,s)),p&&(u=h.find(".color-picker-sb-spectrum")[0].getBoundingClientRect(),b(r,s)),(f||p)&&h.find(".color-picker-sb-spectrum-handle").addClass("color-picker-sb-spectrum-handle-pressed")}function g(k){!(c||d)&&!(p||f)||(i=k.type==="touchmove"?k.targetTouches[0].pageX:k.pageX,o=k.type==="touchmove"?k.targetTouches[0].pageY:k.pageY,k.preventDefault(),a||(a=!0,d&&(l=h.find(".color-picker-wheel")[0].getBoundingClientRect()),f&&(u=h.find(".color-picker-sb-spectrum")[0].getBoundingClientRect())),(c||d)&&m(i,o),(p||f)&&b(i,o))}function v(){a=!1,(p||f)&&h.find(".color-picker-sb-spectrum-handle").removeClass("color-picker-sb-spectrum-handle-pressed"),c=!1,d=!1,p=!1,f=!1}function y(){t.modules.wheel.update(t)}const E=e.touchEvents.start==="touchstart"&&Xe().passiveListener?{passive:!0,capture:!1}:!1;t.$el.on(e.touchEvents.start,w,E),e.on("touchmove:active",g),e.on("touchend:passive",v),e.on("resize",y),t.destroyWheelEvents=function(){t.$el.off(e.touchEvents.start,w,E),e.off("touchmove:active",g),e.off("touchend:passive",v),e.off("resize",y)}},update(t){const{value:e}=t,{hsl:n,hsb:a}=e,r=t.$el.find(".color-picker-sb-spectrum")[0].offsetWidth,s=t.$el.find(".color-picker-sb-spectrum")[0].offsetHeight,i=t.$el.find(".color-picker-wheel")[0].offsetWidth,o=i/2,l=e.hue*Math.PI/180,d=i/6/2,u=o-Math.sin(l)*(o-d)-d,p=o-Math.cos(l)*(o-d)-d;t.$el.find(".color-picker-wheel-handle").css("background-color",`hsl(${n[0]}, 100%, 50%)`).transform(`translate(${u}px, ${p}px)`),t.$el.find(".color-picker-sb-spectrum").css("background-color",`hsl(${n[0]}, 100%, 50%)`),t.$el.find(".color-picker-sb-spectrum-handle").css("background-color",`hsl(${n[0]}, ${n[1]*100}%, ${n[2]*100}%)`).transform(`translate(${r*a[1]}px, ${s*(1-a[2])}px)`)},destroy(t){t.destroyWheelEvents&&t.destroyWheelEvents(),delete t.destroyWheelEvents}};let Wo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this;a.params=W({},e.params.colorPicker,n);let r;if(a.params.containerEl&&(r=C(a.params.containerEl),r.length===0))return a;let s;a.params.inputEl&&(s=C(a.params.inputEl));let i;a.params.targetEl&&(i=C(a.params.targetEl)),W(a,{app:e,$containerEl:r,containerEl:r&&r[0],inline:r&&r.length>0,$inputEl:s,inputEl:s&&s[0],$targetEl:i,targetEl:i&&i[0],initialized:!1,opened:!1,url:a.params.url,modules:{"alpha-slider":J$,"current-color":Z$,hex:ex,"hsb-sliders":tx,"hue-slider":nx,"brightness-slider":ax,palette:rx,"initial-current-colors":sx,"rgb-bars":ix,"rgb-sliders":ox,"sb-spectrum":lx,"hs-spectrum":cx,wheel:ux}});function o(){a.open()}function l(u){u.preventDefault()}function c(){a.open()}function d(u){if(a.destroyed||!a.params||a.params.openIn==="page")return;const p=C(u.target);!a.opened||a.closing||p.closest('[class*="backdrop"]').length||p.closest(".color-picker-popup, .color-picker-popover").length||(s&&s.length>0?p[0]!==s[0]&&p.closest(".sheet-modal").length===0&&a.close():C(u.target).closest(".sheet-modal").length===0&&a.close())}return W(a,{attachInputEvents(){a.$inputEl.on("click",o),a.params.inputReadOnly&&(a.$inputEl.on("focus mousedown",l),a.$inputEl[0]&&(a.$inputEl[0].f7ValidateReadonly=!0))},detachInputEvents(){a.$inputEl.off("click",o),a.params.inputReadOnly&&(a.$inputEl.off("focus mousedown",l),a.$inputEl[0]&&delete a.$inputEl[0].f7ValidateReadonly)},attachTargetEvents(){a.$targetEl.on("click",c)},detachTargetEvents(){a.$targetEl.off("click",c)},attachHtmlEvents(){e.on("click",d)},detachHtmlEvents(){e.off("click",d)}}),a.init(),a}get view(){const{$inputEl:e,$targetEl:n,app:a,params:r}=this;let s;return r.view?s=r.view:(e&&(s=e.parents(".view").length&&e.parents(".view")[0].f7View),!s&&n&&(s=n.parents(".view").length&&n.parents(".view")[0].f7View)),s||(s=a.views.main),s}attachEvents(){const e=this;e.centerModules=e.centerModules.bind(e),e.params.centerModules&&e.app.on("resize",e.centerModules)}detachEvents(){const e=this;e.params.centerModules&&e.app.off("resize",e.centerModules)}centerModules(){const e=this;if(!e.opened||!e.$el||e.inline)return;const n=e.$el.find(".page-content");if(!n.length)return;const{scrollHeight:a,offsetHeight:r}=n[0];a<=r?n.addClass("justify-content-center"):n.removeClass("justify-content-center")}initInput(){const e=this;e.$inputEl&&e.params.inputReadOnly&&e.$inputEl.prop("readOnly",!0)}getModalType(){const e=this,{app:n,modal:a,params:r}=e,{openIn:s,openInPhone:i}=r,o=Ie();return a&&a.type?a.type:s!=="auto"?s:e.inline?null:o.ios?o.ipad?"popover":i:n.width>=768?"popover":i}formatValue(){const e=this,{value:n}=e;return e.params.formatValue?e.params.formatValue.call(e,n):n.hex}normalizeHsValues(e){return[Math.floor(e[0]*10)/10,Math.floor(e[1]*1e3)/1e3,Math.floor(e[2]*1e3)/1e3]}setValue(e,n){e===void 0&&(e={}),n===void 0&&(n=!0);const a=this;if(typeof e>"u")return;let{hex:r,rgb:s,hsl:i,hsb:o,alpha:l=1,hue:c,rgba:d,hsla:u}=a.value||{};const p=a.value||!a.value&&!a.params.value;let f;if(Object.keys(e).forEach(h=>{if(!a.value||typeof a.value[h]>"u"){f=!0;return}const m=e[h];Array.isArray(m)?m.forEach((b,w)=>{b!==a.value[h][w]&&(f=!0)}):m!==a.value[h]&&(f=!0)}),!!f){if(e.rgb||e.rgba){const[h,m,b,w=l]=e.rgb||e.rgba;s=[h,m,b],r=on(...s),i=gr(...s),o=ba(...i),i=a.normalizeHsValues(i),o=a.normalizeHsValues(o),c=o[0],l=w,d=[s[0],s[1],s[2],w],u=[i[0],i[1],i[2],w]}if(e.hsl||e.hsla){const[h,m,b,w=l]=e.hsl||e.hsla;i=[h,m,b],s=na(...i),r=on(...s),o=ba(...i),i=a.normalizeHsValues(i),o=a.normalizeHsValues(o),c=o[0],l=w,d=[s[0],s[1],s[2],w],u=[i[0],i[1],i[2],w]}if(e.hsb){const[h,m,b,w=l]=e.hsb;o=[h,m,b],i=cn(...o),s=na(...i),r=on(...s),i=a.normalizeHsValues(i),o=a.normalizeHsValues(o),c=o[0],l=w,d=[s[0],s[1],s[2],w],u=[i[0],i[1],i[2],w]}if(e.hex&&(s=rn(e.hex),r=on(...s),i=gr(...s),o=ba(...i),i=a.normalizeHsValues(i),o=a.normalizeHsValues(o),c=o[0],d=[s[0],s[1],s[2],l],u=[i[0],i[1],i[2],l]),typeof e.alpha<"u"&&(l=e.alpha,typeof s<"u"&&(d=[s[0],s[1],s[2],l]),typeof i<"u"&&(u=[i[0],i[1],i[2],l])),typeof e.hue<"u"){const[h,m,b]=i;i=[e.hue,m,b],o=ba(...i),s=na(...i),r=on(...s),i=a.normalizeHsValues(i),o=a.normalizeHsValues(o),c=o[0],d=[s[0],s[1],s[2],l],u=[i[0],i[1],i[2],l]}a.value={hex:r,alpha:l,hue:c,rgb:s,hsl:i,hsb:o,rgba:d,hsla:u},a.initialValue||(a.initialValue=W({},a.value)),a.updateValue(p),a.opened&&n&&a.updateModules()}}getValue(){return this.value}updateValue(e){e===void 0&&(e=!0);const n=this,{$inputEl:a,value:r,$targetEl:s}=n;if(s&&n.params.targetElSetBackgroundColor){const{rgba:i}=r;s.css("background-color",`rgba(${i.join(", ")})`)}if(e&&n.emit("local::change colorPickerChange",n,r),a&&a.length){const i=n.formatValue(r);a&&a.length&&(a.val(i),e&&a.trigger("change"))}}updateModules(){const e=this,{modules:n}=e;e.params.modules.forEach(a=>{typeof a=="string"&&n[a]&&n[a].update?n[a].update(e):a&&a.update&&a.update(e)})}update(){this.updateModules()}renderPicker(){const e=this,{params:n,modules:a}=e;let r="";return n.modules.forEach(s=>{typeof s=="string"&&a[s]&&a[s].render?r+=a[s].render(e):s&&s.render&&(r+=s.render(e))}),r}renderNavbar(){const e=this;if(e.params.renderNavbar)return e.params.renderNavbar.call(e,e);const{openIn:n,navbarTitleText:a,navbarBackLinkText:r,navbarCloseText:s}=e.params;return T("div",{class:"navbar"},T("div",{class:"navbar-bg"}),T("div",{class:"navbar-inner sliding"},n==="page"&&T("div",{class:"left"},T("a",{class:"link back"},T("i",{class:"icon icon-back"}),T("span",{class:"if-not-md"},r))),T("div",{class:"title"},a),n!=="page"&&T("div",{class:"right"},T("a",{class:"link popup-close","data-popup":".color-picker-popup"},s))))}renderToolbar(){const e=this;return e.params.renderToolbar?e.params.renderToolbar.call(e,e):T("div",{class:"toolbar toolbar-top"},T("div",{class:"toolbar-inner"},T("div",{class:"left"}),T("div",{class:"right"},T("a",{class:"link sheet-close popover-close","data-sheet":".color-picker-sheet-modal","data-popover":".color-picker-popover"},e.params.toolbarCloseText))))}renderInline(){const e=this,{cssClass:n,groupedModules:a}=e.params;return T("div",{class:`color-picker color-picker-inline ${a?"color-picker-grouped-modules":""} ${n||""}`},e.renderPicker())}renderSheet(){const e=this,{cssClass:n,toolbarSheet:a,groupedModules:r}=e.params;return T("div",{class:`sheet-modal color-picker color-picker-sheet-modal ${r?"color-picker-grouped-modules":""} ${n||""}`},a&&e.renderToolbar(),T("div",{class:"sheet-modal-inner"},T("div",{class:"page-content"},e.renderPicker())))}renderPopover(){const e=this,{cssClass:n,toolbarPopover:a,groupedModules:r}=e.params;return T("div",{class:`popover color-picker-popover ${n||""}`},T("div",{class:"popover-inner"},T("div",{class:`color-picker ${r?"color-picker-grouped-modules":""}`},a&&e.renderToolbar(),T("div",{class:"page-content"},e.renderPicker()))))}renderPopup(){const e=this,{cssClass:n,navbarPopup:a,groupedModules:r}=e.params;return T("div",{class:`popup color-picker-popup ${n||""}`},T("div",{class:"page"},a&&e.renderNavbar(),T("div",{class:`color-picker ${r?"color-picker-grouped-modules":""}`},T("div",{class:"page-content"},e.renderPicker()))))}renderPage(){const e=this,{cssClass:n,groupedModules:a}=e.params;return T("div",{class:`page color-picker-page ${n||""}`,"data-name":"color-picker-page"},e.renderNavbar(),T("div",{class:`color-picker ${a?"color-picker-grouped-modules":""}`},T("div",{class:"page-content"},e.renderPicker())))}render(){const e=this,{params:n}=e;if(n.render)return n.render.call(e);if(e.inline)return e.renderInline();if(n.openIn==="page")return e.renderPage();const a=e.getModalType();if(a==="popover")return e.renderPopover();if(a==="sheet")return e.renderSheet();if(a==="popup")return e.renderPopup()}onOpen(){const e=this,{initialized:n,$el:a,app:r,$inputEl:s,inline:i,value:o,params:l,modules:c}=e;e.closing=!1,e.opened=!0,e.opening=!0,e.attachEvents(),l.modules.forEach(u=>{typeof u=="string"&&c[u]&&c[u].init?c[u].init(e):u&&u.init&&u.init(e)});const d=!o&&l.value;n?o&&(e.initialValue=W({},o),e.setValue(o,!1)):o?e.setValue(o):l.value?e.setValue(l.value,!1):l.value||e.setValue({hex:"#ff0000"},!1),d&&e.updateValue(),e.updateModules(),l.centerModules&&e.centerModules(),!i&&s&&s.length&&r.theme==="md"&&s.trigger("focus"),e.initialized=!0,a&&a.trigger("colorpicker:open"),s&&s.trigger("colorpicker:open"),e.emit("local::open colorPickerOpen",e)}onOpened(){const e=this;e.opening=!1,e.$el&&e.$el.trigger("colorpicker:opened"),e.$inputEl&&e.$inputEl.trigger("colorpicker:opened"),e.emit("local::opened colorPickerOpened",e)}onClose(){const e=this,{app:n,params:a,modules:r}=e;if(e.opening=!1,e.closing=!0,e.detachEvents(),e.$inputEl)if(n.theme==="md")e.$inputEl.trigger("blur");else{const s=e.$inputEl.attr("validate"),i=e.$inputEl.attr("required");s&&i&&n.input.validate(e.$inputEl)}a.modules.forEach(s=>{typeof s=="string"&&r[s]&&r[s].destroy?r[s].destroy(e):s&&s.destroy&&s.destroy(e)}),e.$el&&e.$el.trigger("colorpicker:close"),e.$inputEl&&e.$inputEl.trigger("colorpicker:close"),e.emit("local::close colorPickerClose",e)}onClosed(){const e=this;e.opened=!1,e.closing=!1,e.inline||lt(()=>{e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal}),e.$el&&e.$el.trigger("colorpicker:closed"),e.$inputEl&&e.$inputEl.trigger("colorpicker:closed"),e.emit("local::closed colorPickerClosed",e)}open(){const e=this,{app:n,opened:a,inline:r,$inputEl:s,$targetEl:i,params:o}=e;if(a)return;if(r){e.$el=C(e.render()),e.$el[0].f7ColorPicker=e,e.$containerEl.append(e.$el),e.onOpen(),e.onOpened();return}const l=e.render();if(o.openIn==="page")e.view.router.navigate({url:e.url,route:{content:l,path:e.url,on:{pageBeforeIn(c,d){e.$el=d.$el.find(".color-picker"),e.$el[0].f7ColorPicker=e,e.onOpen()},pageAfterIn(){e.onOpened()},pageBeforeOut(){e.onClose()},pageAfterOut(){e.onClosed(),e.$el&&e.$el[0]&&(e.$el[0].f7ColorPicker=null,delete e.$el[0].f7ColorPicker)}}}});else{const c=e.getModalType();let d=o.backdrop;(d===null||typeof d>"u")&&(c==="popover"&&n.params.popover.backdrop!==!1&&(d=!0),c==="popup"&&(d=!0));const u={targetEl:i||s,scrollToEl:o.scrollToInput?i||s:void 0,content:l,backdrop:d,closeByBackdropClick:o.closeByBackdropClick,on:{open(){const p=this;e.modal=p,e.$el=c==="popover"||c==="popup"?p.$el.find(".color-picker"):p.$el,e.$el[0].f7ColorPicker=e,e.onOpen()},opened(){e.onOpened()},close(){e.onClose()},closed(){e.onClosed(),e.$el&&e.$el[0]&&(e.$el[0].f7ColorPicker=null,delete e.$el[0].f7ColorPicker)}}};c==="popup"&&(u.push=o.popupPush,u.swipeToClose=o.popupSwipeToClose),c==="sheet"&&(u.push=o.sheetPush,u.swipeToClose=o.sheetSwipeToClose),o.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,[c]:u}}):(e.modal=n[c].create(u),e.modal.open())}}close(){const e=this,{opened:n,inline:a}=e;if(n){if(a){e.onClose(),e.onClosed();return}e.params.routableModals&&e.view||e.params.openIn==="page"?e.view.router.back():e.modal.close()}}init(){const e=this;if(e.initInput(),e.inline){e.open(),e.emit("local::init colorPickerInit",e);return}!e.initialized&&e.params.value&&e.setValue(e.params.value),e.$inputEl&&e.attachInputEvents(),e.$targetEl&&e.attachTargetEvents(),e.params.closeByOutsideClick&&e.attachHtmlEvents(),e.emit("local::init colorPickerInit",e)}destroy(){const e=this;if(e.destroyed)return;const{$el:n}=e;e.emit("local::beforeDestroy colorPickerBeforeDestroy",e),n&&n.trigger("colorpicker:beforedestroy"),e.close(),e.detachEvents(),e.$inputEl&&e.detachInputEvents(),e.$targetEl&&e.detachTargetEvents(),e.params.closeByOutsideClick&&e.detachHtmlEvents(),n&&n.length&&delete e.$el[0].f7ColorPicker,Ze(e),e.destroyed=!0}};const px={name:"colorPicker",static:{ColorPicker:Wo},create(){const t=this;t.colorPicker=et({defaultSelector:".color-picker",constructor:Wo,app:t,domProp:"f7ColorPicker"}),t.colorPicker.close=function(n){n===void 0&&(n=".color-picker");const a=C(n);if(a.length===0)return;const r=a[0].f7ColorPicker;!r||r&&!r.opened||r.close()}},params:{colorPicker:{value:null,modules:["wheel"],palette:[["#FFEBEE","#FFCDD2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#F3E5F5","#E1BEE7","#CE93D8","#BA68C8","#AB47BC","#9C27B0","#8E24AA","#7B1FA2","#6A1B9A","#4A148C"],["#E8EAF6","#C5CAE9","#9FA8DA","#7986CB","#5C6BC0","#3F51B5","#3949AB","#303F9F","#283593","#1A237E"],["#E1F5FE","#B3E5FC","#81D4FA","#4FC3F7","#29B6F6","#03A9F4","#039BE5","#0288D1","#0277BD","#01579B"],["#E0F2F1","#B2DFDB","#80CBC4","#4DB6AC","#26A69A","#009688","#00897B","#00796B","#00695C","#004D40"],["#F1F8E9","#DCEDC8","#C5E1A5","#AED581","#9CCC65","#8BC34A","#7CB342","#689F38","#558B2F","#33691E"],["#FFFDE7","#FFF9C4","#FFF59D","#FFF176","#FFEE58","#FFEB3B","#FDD835","#FBC02D","#F9A825","#F57F17"],["#FFF3E0","#FFE0B2","#FFCC80","#FFB74D","#FFA726","#FF9800","#FB8C00","#F57C00","#EF6C00","#E65100"]],groupedModules:!1,centerModules:!0,sliderLabel:!1,sliderValue:!1,sliderValueEdiable:!1,barLabel:!1,barValue:!1,barValueEdiable:!1,hexLabel:!1,hexValueEditable:!1,redLabelText:"R",greenLabelText:"G",blueLabelText:"B",hueLabelText:"H",saturationLabelText:"S",brightnessLabelText:"B",hexLabelText:"HEX",alphaLabelText:"A",containerEl:null,openIn:"popover",openInPhone:"popup",popupPush:!1,popupSwipeToClose:void 0,sheetPush:!1,sheetSwipeToClose:void 0,formatValue:null,targetEl:null,targetElSetBackgroundColor:!1,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,toolbarSheet:!0,toolbarPopover:!1,toolbarCloseText:"Done",navbarPopup:!0,navbarCloseText:"Done",navbarTitleText:"Color",navbarBackLinkText:"Back",cssClass:null,routableModals:!1,view:null,url:"color/",backdrop:null,closeByBackdropClick:!0,renderToolbar:null,renderNavbar:null,renderInline:null,renderPopover:null,renderSheet:null,renderPopup:null,render:null}}},fx={open(t){const e=this,n=C(t).eq(0);if(!n.length)return;n.addClass("treeview-item-opened"),n.trigger("treeview:open"),e.emit("treeviewOpen",n[0]);function a(r){r?(n.removeClass("treeview-item-opened"),n.trigger("treeview:close"),e.emit("treeviewClose",n[0])):n[0].f7TreeviewChildrenLoaded=!0,n.find(".treeview-toggle").removeClass("treeview-toggle-hidden"),n.find(".treeview-preloader").remove()}if(n.hasClass("treeview-load-children")&&!n[0].f7TreeviewChildrenLoaded){const r={iosPreloaderContent:Hn,mdPreloaderContent:Rn};n.trigger("treeview:loadchildren",a),e.emit("treeviewLoadChildren",n[0],a),n.find(".treeview-toggle").addClass("treeview-toggle-hidden"),n.find(".treeview-item-root").prepend(`
            ${r[`${e.theme}PreloaderContent`]}
            `)}},close(t){const e=this,n=C(t).eq(0);n.length&&(n.removeClass("treeview-item-opened"),n.trigger("treeview:close"),e.emit("treeviewClose",n[0]))},toggle(t){const e=this,n=C(t).eq(0);if(!n.length)return;const a=n.hasClass("treeview-item-opened");e.treeview[a?"close":"open"](n)}},hx={name:"treeview",create(){Ct(this,{treeview:fx})},clicks:{".treeview-toggle":function(e,n,a){const r=this;if(e.parents(".treeview-item-toggle").length)return;const s=e.parents(".treeview-item").eq(0);s.length&&(a.preventF7Router=!0,r.treeview.toggle(s[0]))},".treeview-item-toggle":function(e,n,a){const r=this,s=e.closest(".treeview-item").eq(0);s.length&&(a.preventF7Router=!0,r.treeview.toggle(s[0]))}}},er={bold:["bold","format_bold","bold"],italic:["italic","format_italic","italic"],underline:["underline","format_underlined","underline"],strikeThrough:["strikethrough","strikethrough_s","strikeThrough"],orderedList:["list_number","format_list_numbered","insertOrderedList"],unorderedList:["list_bullet","format_list_bulleted","insertUnorderedList"],link:["link","link","createLink"],image:["photo","image","insertImage"],paragraph:["paragraph",'',"formatBlock.P"],h1:['H1','H1',"formatBlock.H1"],h2:['H2','H2',"formatBlock.H2"],h3:['H3','H3',"formatBlock.H3"],alignLeft:["text_alignleft","format_align_left","justifyLeft"],alignCenter:["text_aligncenter","format_align_center","justifyCenter"],alignRight:["text_alignright","format_align_right","justifyRight"],alignJustify:["text_justify","format_align_justify","justifyFull"],subscript:["textformat_subscript",'A1',"subscript"],superscript:["textformat_superscript",'A1',"superscript"],indent:["increase_indent","format_indent_increase","indent"],outdent:["decrease_indent","format_indent_decrease","outdent"]};let Yo=class extends Ue{constructor(e,n){super(n,[e]);const a=this,r=ye(),s=Ie(),i=W({},e.params.textEditor);a.useModulesParams(i),a.params=W(i,n);const o=a.params.el;if(!o)return a;const l=C(o);if(l.length===0)return a;if(l[0].f7TextEditor)return l[0].f7TextEditor;let c=l.children(".text-editor-content");if(c.length||(l.append('
            '),c=l.children(".text-editor-content")),W(a,{app:e,$el:l,el:l[0],$contentEl:c,contentEl:c[0]}),"value"in n&&(a.value=a.params.value),a.params.mode==="keyboard-toolbar"&&!(s.cordova||s.capacitor)&&!s.android&&(a.params.mode="popover"),typeof a.params.buttons=="string")try{a.params.buttons=JSON.parse(a.params.buttons)}catch{throw new Error('Framework7: TextEditor: wrong "buttons" parameter format')}return l[0].f7TextEditor=a,a.onButtonClick=a.onButtonClick.bind(a),a.onFocus=a.onFocus.bind(a),a.onBlur=a.onBlur.bind(a),a.onInput=a.onInput.bind(a),a.onPaste=a.onPaste.bind(a),a.onSelectionChange=a.onSelectionChange.bind(a),a.closeKeyboardToolbar=a.closeKeyboardToolbar.bind(a),a.attachEvents=function(){a.params.mode==="toolbar"&&a.$el.find(".text-editor-toolbar").on("click","button",a.onButtonClick),a.params.mode==="keyboard-toolbar"&&(a.$keyboardToolbarEl.on("click","button",a.onButtonClick),a.$el.parents(".page").on("page:beforeout",a.closeKeyboardToolbar)),a.params.mode==="popover"&&a.popover&&a.popover.$el.on("click","button",a.onButtonClick),a.$contentEl.on("paste",a.onPaste),a.$contentEl.on("focus",a.onFocus),a.$contentEl.on("blur",a.onBlur),a.$contentEl.on("input",a.onInput,!0),C(r).on("selectionchange",a.onSelectionChange)},a.detachEvents=function(){a.params.mode==="toolbar"&&a.$el.find(".text-editor-toolbar").off("click","button",a.onButtonClick),a.params.mode==="keyboard-toolbar"&&(a.$keyboardToolbarEl.off("click","button",a.onButtonClick),a.$el.parents(".page").off("page:beforeout",a.closeKeyboardToolbar)),a.params.mode==="popover"&&a.popover&&a.popover.$el.off("click","button",a.onButtonClick),a.$contentEl.off("paste",a.onPaste),a.$contentEl.off("focus",a.onFocus),a.$contentEl.off("blur",a.onBlur),a.$contentEl.off("input",a.onInput,!0),C(r).off("selectionchange",a.onSelectionChange)},a.useModules(),a.init(),a}setValue(e){const n=this;return n.value===e||(n.value=e,n.$contentEl.html(e),n.$el.trigger("texteditor:change",n.value),n.emit("local::change textEditorChange",n,n.value)),n}getValue(){return this.value}clearValue(){const e=this;return e.setValue(""),e.params.placeholder&&!e.$contentEl.html()&&e.insertPlaceholder(),e}createLink(){const e=this,n=fe(),a=ye(),r=n.getSelection(),s=[];let i;if(r&&r.anchorNode&&C(r.anchorNode).parents(e.$el).length){let c=r.anchorNode;for(;c;)s.push(c),(!c.nextSibling||c===r.focusNode)&&(c=null),c&&(c=c.nextSibling);const d=[],u=C(s);for(let p=0;p{const d=n.getSelection(),u=a.createRange();u.selectNodeContents(c),d.removeAllRanges(),d.addRange(u),a.execCommand("unlink",!1),d.removeAllRanges()}),e;const o=e.getSelectionRange();return o&&e.app.dialog.prompt("",e.params.linkUrlText,c=>{c&&c.trim().length&&(e.setSelectionRange(o),a.execCommand("createLink",!1,c.trim()),e.$el.trigger("texteditor:insertlink",{url:c.trim()}),e.emit("local:insertLink textEditorInsertLink",e,c.trim()))}).$el.find("input").focus(),e}insertImage(){const e=this,n=ye(),a=e.getSelectionRange();return a&&e.app.dialog.prompt("",e.params.imageUrlText,s=>{s&&s.trim().length&&(e.setSelectionRange(a),n.execCommand("insertImage",!1,s.trim()),e.$el.trigger("texteditor:insertimage",{url:s.trim()}),e.emit("local:insertImage textEditorInsertImage",e,s.trim()))}).$el.find("input").focus(),e}removePlaceholder(){this.$contentEl.find(".text-editor-placeholder").remove()}insertPlaceholder(){const e=this;e.$contentEl.append(`
            ${e.params.placeholder}
            `)}onSelectionChange(){const e=this,n=fe(),a=ye();if(e.params.mode==="toolbar")return;const r=n.getSelection(),s=C(r.anchorNode).parents(e.contentEl).length||r.anchorNode===e.contentEl;if(e.params.mode==="keyboard-toolbar"){s?e.openKeyboardToolbar():e.closeKeyboardToolbar();return}if(e.params.mode==="popover"){const i=C(r.anchorNode).parents(e.popover.el).length||r.anchorNode===e.popover.el;if(!s&&!i){e.closePopover();return}if(!r.isCollapsed&&r.rangeCount){const l=r.getRangeAt(0).getBoundingClientRect(),c=e.app.$el[0]||a.body;e.openPopover(l.x+(n.scrollX||0)-c.offsetLeft,l.y+(n.scrollY||0)-c.offsetTop,l.width,l.height)}else r.isCollapsed&&e.closePopover()}}onPaste(e){const n=this,a=ye();if(n.params.clearFormattingOnPaste&&e.clipboardData&&e.clipboardData.getData){const r=e.clipboardData.getData("text/plain");e.preventDefault(),a.execCommand("insertText",!1,r)}}onInput(){const e=this,n=e.$contentEl.html();e.value=n,e.$el.trigger("texteditor:input"),e.emit("local:input textEditorInput",e,e.value),e.$el.trigger("texteditor:change",e.value),e.emit("local::change textEditorChange",e,e.value)}onFocus(){const e=this;e.removePlaceholder(),e.$contentEl.focus(),e.$el.trigger("texteditor:focus"),e.emit("local::focus textEditorFocus",e)}onBlur(){const e=this,n=fe(),a=ye();if(e.params.placeholder&&e.$contentEl.html()===""&&e.insertPlaceholder(),e.params.mode==="popover"){const r=n.getSelection(),s=C(r.anchorNode).parents(e.contentEl).length||r.anchorNode===e.contentEl;!(a.activeElement&&e.popover&&C(a.activeElement).closest(e.popover.$el).length)&&!s&&e.closePopover()}if(e.params.mode==="keyboard-toolbar"){const r=n.getSelection();C(r.anchorNode).parents(e.contentEl).length||r.anchorNode===e.contentEl||e.closeKeyboardToolbar()}e.$el.trigger("texteditor:blur"),e.emit("local::blur textEditorBlur",e)}onButtonClick(e){const n=this,a=fe(),r=ye(),s=a.getSelection();if(!(C(s.anchorNode).parents(n.contentEl).length||s.anchorNode===n.contentEl))return;const o=C(e.target).closest("button");o.parents("form").length&&e.preventDefault();const l=o.attr("data-button"),c=n.params.customButtons&&n.params.customButtons[l];if(!l||!(er[l]||c))return;if(o.trigger("texteditor:buttonclick",l),n.emit("local::buttonClick textEditorButtonClick",n,l),c){c.onClick&&c.onClick(n,o[0]);return}const d=er[l][2];if(d==="createLink"){n.createLink();return}if(d==="insertImage"){n.insertImage();return}if(d.indexOf("formatBlock")===0){const u=d.split(".")[1],p=C(s.anchorNode);p.parents(u.toLowerCase()).length||p.is(u)?r.execCommand("formatBlock",!1,"div"):r.execCommand("formatBlock",!1,u);return}r.execCommand(d,!1)}getSelectionRange(){const e=fe(),n=ye();if(e.getSelection){const a=e.getSelection();if(a.getRangeAt&&a.rangeCount)return a.getRangeAt(0)}else if(n.selection&&n.selection.createRange)return n.selection.createRange();return null}setSelectionRange(e){const n=fe(),a=ye();if(e)if(n.getSelection){const r=n.getSelection();r.removeAllRanges(),r.addRange(e)}else a.selection&&e.select&&e.select()}renderButtons(){const e=this;let n="";function a(r){const s=e.app.theme==="md"?"material-icons":"f7-icons";if(e.params.customButtons&&e.params.customButtons[r]){const o=e.params.customButtons[r];return``}if(!er[r])return"";const i=er[r][e.app.theme==="md"?1:0];return``.trim()}return e.params.buttons.forEach((r,s)=>{Array.isArray(r)?(r.forEach(i=>{n+=a(i)}),s
            ')):n+=a(r)}),n}createToolbar(){const e=this;e.$el.prepend(`
            ${e.renderButtons()}
            `)}createKeyboardToolbar(){const e=this;e.$keyboardToolbarEl=C(`
            ${e.renderButtons()}
            `)}createPopover(){const e=this;e.popover=e.app.popover.create({content:` + `).join(""),n+="",n}return T("div",{class:"color-picker-palette-value","data-palette-color":e,style:`background-color: ${e}`})})))},init(t){function e(n){const a=C(n.target).attr("data-palette-color");t.setValue({hex:a})}t.$el.on("click",".color-picker-module-palette .color-picker-palette-value",e),t.destroyPaletteEvents=function(){t.$el.off("click",".color-picker-module-hex input",e)}},destroy(t){t.destroyPaletteEvents&&t.destroyPaletteEvents(),delete t.destroyPaletteEvents}},ox={render(){return T("div",{class:"color-picker-module color-picker-module-initial-current-colors"},T("div",{class:"color-picker-initial-current-colors"},T("div",{class:"color-picker-initial-color"}),T("div",{class:"color-picker-current-color"})))},init(t){function e(){if(t.initialValue){const{hex:n,alpha:a}=t.initialValue;t.setValue({hex:n,alpha:a})}}t.$el.on("click",".color-picker-initial-color",e),t.destroyInitialCurrentEvents=function(){t.$el.off("click",".color-picker-initial-color",e)}},update(t){t.$el.find(".color-picker-module-initial-current-colors .color-picker-initial-color").css("background-color",t.initialValue.hex),t.$el.find(".color-picker-module-initial-current-colors .color-picker-current-color").css("background-color",t.value.hex)},destroy(t){t.destroyInitialCurrentEvents&&t.destroyInitialCurrentEvents(),delete t.destroyInitialCurrentEvents}},lx={render(t){const{barLabel:e,barValue:n,barValueEditable:a,redLabelText:r,greenLabelText:s,blueLabelText:i}=t.params;return T("div",{class:"color-picker-module color-picker-module-rgb-bars"},T("div",{class:"color-picker-bar-wrap"},e&&T("div",{class:"color-picker-bar-label"},r),T("div",{class:"range-slider color-picker-bar color-picker-bar-red"}),n&&T("div",{class:"color-picker-bar-value"},a?T("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-bar-red","data-color-index":"0"}):T("span",{class:"color-picker-value-bar-red"}))),T("div",{class:"color-picker-bar-wrap"},e&&T("div",{class:"color-picker-bar-label"},s),T("div",{class:"range-slider color-picker-bar color-picker-bar-green"}),n&&T("div",{class:"color-picker-bar-value"},a?T("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-bar-green","data-color-index":"1"}):T("span",{class:"color-picker-value-bar-green"}))),T("div",{class:"color-picker-bar-wrap"},e&&T("div",{class:"color-picker-bar-label"},i),T("div",{class:"range-slider color-picker-bar color-picker-bar-blue"}),n&&T("div",{class:"color-picker-bar-value"},a?T("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-bar-blue","data-color-index":"2"}):T("span",{class:"color-picker-value-bar-blue"}))))},init(t){t.redBar=t.app.range.create({el:t.$el.find(".color-picker-bar-red"),min:0,max:255,step:1,value:0,vertical:!0,on:{change(n,a){t.setValue({rgb:[a,t.value.rgb[1],t.value.rgb[2]]})}}}),t.greenBar=t.app.range.create({el:t.$el.find(".color-picker-bar-green"),min:0,max:255,step:1,value:0,vertical:!0,on:{change(n,a){t.setValue({rgb:[t.value.rgb[0],a,t.value.rgb[2]]})}}}),t.blueBar=t.app.range.create({el:t.$el.find(".color-picker-bar-blue"),min:0,max:255,step:1,value:0,vertical:!0,on:{change(n,a){t.setValue({rgb:[t.value.rgb[0],t.value.rgb[1],a]})}}});function e(n){const a=[...t.value.rgb],r=parseInt(C(n.target).attr("data-color-index"),10);let s=parseInt(n.target.value,10);if(Number.isNaN(s)){n.target.value=a[r];return}s=Math.max(0,Math.min(255,s)),a[r]=s,t.setValue({rgb:a})}t.$el.on("change",".color-picker-module-rgb-bars input",e),t.destroyRgbBarsEvents=function(){t.$el.off("change",".color-picker-module-rgb-bars input",e)}},update(t){const{value:e,redBar:n,greenBar:a,blueBar:r}=t,{barValue:s,barValueEditable:i}=t.params,{rgb:o}=e;n.value=o[0],a.value=o[1],r.value=o[2],n.layout(),a.layout(),r.layout(),n.$el.find(".range-bar").css("background-image",`linear-gradient(to top, rgb(0, ${o[1]}, ${o[2]}), rgb(255, ${o[1]}, ${o[2]}))`),a.$el.find(".range-bar").css("background-image",`linear-gradient(to top, rgb(${o[0]}, 0, ${o[2]}), rgb(${o[0]}, 255, ${o[2]}))`),r.$el.find(".range-bar").css("background-image",`linear-gradient(to top, rgb(${o[0]}, ${o[1]}, 0), rgb(${o[0]}, ${o[1]}, 255))`),s&&i?(t.$el.find("input.color-picker-value-bar-red").val(o[0]),t.$el.find("input.color-picker-value-bar-green").val(o[1]),t.$el.find("input.color-picker-value-bar-blue").val(o[2])):s&&(t.$el.find("span.color-picker-value-bar-red").text(o[0]),t.$el.find("span.color-picker-value-bar-green").text(o[1]),t.$el.find("span.color-picker-value-bar-blue").text(o[2]))},destroy(t){t.redBar&&t.redBar.destroy&&t.redBar.destroy(),t.greenBar&&t.greenBar.destroy&&t.greenBar.destroy(),t.blueBar&&t.blueBar.destroy&&t.blueBar.destroy(),delete t.redBar,delete t.greenBar,delete t.blueBar,t.destroyRgbBarsEvents&&t.destroyRgbBarsEvents(),delete t.destroyRgbBarsEvents}},cx={render(t){const{sliderLabel:e,sliderValue:n,sliderValueEditable:a,redLabelText:r,greenLabelText:s,blueLabelText:i}=t.params;return T("div",{class:"color-picker-module color-picker-module-rgb-sliders"},T("div",{class:"color-picker-slider-wrap"},e&&T("div",{class:"color-picker-slider-label"},r),T("div",{class:"range-slider color-picker-slider color-picker-slider-red"}),n&&T("div",{class:"color-picker-slider-value"},a?T("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-red","data-color-index":"0"}):T("span",{class:"color-picker-value-red"}))),T("div",{class:"color-picker-slider-wrap"},e&&T("div",{class:"color-picker-slider-label"},s),T("div",{class:"range-slider color-picker-slider color-picker-slider-green"}),n&&T("div",{class:"color-picker-slider-value"},a?T("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-green","data-color-index":"1"}):T("span",{class:"color-picker-value-green"}))),T("div",{class:"color-picker-slider-wrap"},e&&T("div",{class:"color-picker-slider-label"},i),T("div",{class:"range-slider color-picker-slider color-picker-slider-blue"}),n&&T("div",{class:"color-picker-slider-value"},a?T("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-blue","data-color-index":"2"}):T("span",{class:"color-picker-value-blue"}))))},init(t){t.redRangeSlider=t.app.range.create({el:t.$el.find(".color-picker-slider-red"),min:0,max:255,step:1,value:0,on:{change(n,a){t.setValue({rgb:[a,t.value.rgb[1],t.value.rgb[2]]})}}}),t.greenRangeSlider=t.app.range.create({el:t.$el.find(".color-picker-slider-green"),min:0,max:255,step:1,value:0,on:{change(n,a){t.setValue({rgb:[t.value.rgb[0],a,t.value.rgb[2]]})}}}),t.blueRangeSlider=t.app.range.create({el:t.$el.find(".color-picker-slider-blue"),min:0,max:255,step:1,value:0,on:{change(n,a){t.setValue({rgb:[t.value.rgb[0],t.value.rgb[1],a]})}}});function e(n){const a=[...t.value.rgb],r=parseInt(C(n.target).attr("data-color-index"),10);let s=parseInt(n.target.value,10);if(Number.isNaN(s)){n.target.value=a[r];return}s=Math.max(0,Math.min(255,s)),a[r]=s,t.setValue({rgb:a})}t.$el.on("change",".color-picker-module-rgb-sliders input",e),t.destroyRgbSlidersEvents=function(){t.$el.off("change",".color-picker-module-rgb-sliders input",e)}},update(t){const{app:e,value:n,redRangeSlider:a,greenRangeSlider:r,blueRangeSlider:s}=t,{sliderValue:i,sliderValueEditable:o}=t.params,{rgb:l}=n;a.value=l[0],r.value=l[1],s.value=l[2],a.layout(),r.layout(),s.layout(),a.$el[0].style.setProperty("--f7-range-knob-color",`rgb(${l[0]}, ${l[1]}, ${l[2]})`),r.$el[0].style.setProperty("--f7-range-knob-color",`rgb(${l[0]}, ${l[1]}, ${l[2]})`),s.$el[0].style.setProperty("--f7-range-knob-color",`rgb(${l[0]}, ${l[1]}, ${l[2]})`);const c=e.rtl?"to left":"to right";a.$el.find(".range-bar").css("background-image",`linear-gradient(${c}, rgb(0, ${l[1]}, ${l[2]}), rgb(255, ${l[1]}, ${l[2]}))`),r.$el.find(".range-bar").css("background-image",`linear-gradient(${c}, rgb(${l[0]}, 0, ${l[2]}), rgb(${l[0]}, 255, ${l[2]}))`),s.$el.find(".range-bar").css("background-image",`linear-gradient(${c}, rgb(${l[0]}, ${l[1]}, 0), rgb(${l[0]}, ${l[1]}, 255))`),i&&o?(t.$el.find("input.color-picker-value-red").val(l[0]),t.$el.find("input.color-picker-value-green").val(l[1]),t.$el.find("input.color-picker-value-blue").val(l[2])):i&&(t.$el.find("span.color-picker-value-red").text(l[0]),t.$el.find("span.color-picker-value-green").text(l[1]),t.$el.find("span.color-picker-value-blue").text(l[2]))},destroy(t){t.redRangeSlider&&t.redRangeSlider.destroy&&t.redRangeSlider.destroy(),t.greenRangeSlider&&t.greenRangeSlider.destroy&&t.greenRangeSlider.destroy(),t.blueRangeSlider&&t.blueRangeSlider.destroy&&t.blueRangeSlider.destroy(),delete t.redRangeSlider,delete t.greenRangeSlider,delete t.blueRangeSlider,t.destroyRgbSlidersEvents&&t.destroyRgbSlidersEvents(),delete t.destroyRgbSlidersEvents}},dx={render(){return T("div",{class:"color-picker-module color-picker-module-sb-spectrum"},T("div",{class:"color-picker-sb-spectrum",style:"background-color: hsl(0, 100%, 50%)"},T("div",{class:"color-picker-sb-spectrum-handle"})))},init(t){const{app:e}=t;let n,a,r,s,i,o,l,c,d;const{$el:u}=t;function p(g,v){let y=(g-l.left)/l.width,E=(v-l.top)/l.height;y=Math.max(0,Math.min(1,y)),E=1-Math.max(0,Math.min(1,E)),t.setValue({hsb:[t.value.hue,y,E]})}function f(g){if(a||n)return;r=g.type==="touchstart"?g.targetTouches[0].pageX:g.pageX,i=r,s=g.type==="touchstart"?g.targetTouches[0].pageY:g.pageY,o=s;const v=C(g.target);d=v.closest(".color-picker-sb-spectrum-handle").length>0,d||(c=v.closest(".color-picker-sb-spectrum").length>0),c&&(l=u.find(".color-picker-sb-spectrum")[0].getBoundingClientRect(),p(r,s)),(d||c)&&u.find(".color-picker-sb-spectrum-handle").addClass("color-picker-sb-spectrum-handle-pressed")}function h(g){(c||d)&&(i=g.type==="touchmove"?g.targetTouches[0].pageX:g.pageX,o=g.type==="touchmove"?g.targetTouches[0].pageY:g.pageY,g.preventDefault(),a||(a=!0,d&&(l=u.find(".color-picker-sb-spectrum")[0].getBoundingClientRect())),(c||d)&&p(i,o))}function m(){a=!1,(c||d)&&u.find(".color-picker-sb-spectrum-handle").removeClass("color-picker-sb-spectrum-handle-pressed"),c=!1,d=!1}function b(){t.modules["sb-spectrum"].update(t)}const w=e.touchEvents.start==="touchstart"&&Xe().passiveListener?{passive:!0,capture:!1}:!1;t.$el.on(e.touchEvents.start,f,w),e.on("touchmove:active",h),e.on("touchend:passive",m),e.on("resize",b),t.destroySpectrumEvents=function(){t.$el.off(e.touchEvents.start,f,w),e.off("touchmove:active",h),e.off("touchend:passive",m),e.off("resize",b)}},update(t){const{value:e}=t,{hsl:n,hsb:a}=e,r=t.$el.find(".color-picker-sb-spectrum")[0].offsetWidth,s=t.$el.find(".color-picker-sb-spectrum")[0].offsetHeight;t.$el.find(".color-picker-sb-spectrum").css("background-color",`hsl(${n[0]}, 100%, 50%)`),t.$el.find(".color-picker-sb-spectrum-handle").css("background-color",`hsl(${n[0]}, ${n[1]*100}%, ${n[2]*100}%)`).transform(`translate(${r*a[1]}px, ${s*(1-a[2])}px)`)},destroy(t){t.destroySpectrumEvents&&t.destroySpectrumEvents(),delete t.destroySpectrumEvents}},ux={render(){return T("div",{class:"color-picker-module color-picker-module-hs-spectrum"},T("div",{class:"color-picker-hs-spectrum"},T("div",{class:"color-picker-hs-spectrum-handle"})))},init(t){const{app:e}=t;let n,a,r,s,i,o,l,c,d;const{$el:u}=t;function p(g,v){let y=(g-l.left)/l.width*360,E=(v-l.top)/l.height;y=Math.max(0,Math.min(360,y)),E=1-Math.max(0,Math.min(1,E)),t.setValue({hsb:[y,E,t.value.hsb[2]]})}function f(g){if(a||n)return;r=g.type==="touchstart"?g.targetTouches[0].pageX:g.pageX,i=r,s=g.type==="touchstart"?g.targetTouches[0].pageY:g.pageY,o=s;const v=C(g.target);d=v.closest(".color-picker-hs-spectrum-handle").length>0,d||(c=v.closest(".color-picker-hs-spectrum").length>0),c&&(l=u.find(".color-picker-hs-spectrum")[0].getBoundingClientRect(),p(r,s)),(d||c)&&u.find(".color-picker-hs-spectrum-handle").addClass("color-picker-hs-spectrum-handle-pressed")}function h(g){(c||d)&&(i=g.type==="touchmove"?g.targetTouches[0].pageX:g.pageX,o=g.type==="touchmove"?g.targetTouches[0].pageY:g.pageY,g.preventDefault(),a||(a=!0,d&&(l=u.find(".color-picker-hs-spectrum")[0].getBoundingClientRect())),(c||d)&&p(i,o))}function m(){a=!1,(c||d)&&u.find(".color-picker-hs-spectrum-handle").removeClass("color-picker-hs-spectrum-handle-pressed"),c=!1,d=!1}function b(){t.modules["hs-spectrum"].update(t)}const w=e.touchEvents.start==="touchstart"&&Xe().passiveListener?{passive:!0,capture:!1}:!1;t.$el.on(e.touchEvents.start,f,w),e.on("touchmove:active",h),e.on("touchend:passive",m),e.on("resize",b),t.destroySpectrumEvents=function(){t.$el.off(e.touchEvents.start,f,w),e.off("touchmove:active",h),e.off("touchend:passive",m),e.off("resize",b)}},update(t){const{value:e}=t,{hsb:n}=e,a=t.$el.find(".color-picker-hs-spectrum")[0].offsetWidth,r=t.$el.find(".color-picker-hs-spectrum")[0].offsetHeight,s=cn(n[0],n[1],1);t.$el.find(".color-picker-hs-spectrum-handle").css("background-color",`hsl(${s[0]}, ${s[1]*100}%, ${s[2]*100}%)`).transform(`translate(${a*(n[0]/360)}px, ${r*(1-n[1])}px)`)},destroy(t){t.destroySpectrumEvents&&t.destroySpectrumEvents(),delete t.destroySpectrumEvents}};function px(){let e="";for(let n=256;n>0;n-=1){const a=n*Math.PI/128,r=360/256*n;e+=``}return e}const fx={render(){return T("div",{class:"color-picker-module color-picker-module-wheel"},T("div",{class:"color-picker-wheel"},T("svg",{viewBox:"0 0 300 300",width:"300",height:"300"},px()),T("div",{class:"color-picker-wheel-handle"}),T("div",{class:"color-picker-sb-spectrum",style:"background-color: hsl(0, 100%, 50%)"},T("div",{class:"color-picker-sb-spectrum-handle"}))))},init(t){const{app:e}=t;let n,a,r,s,i,o,l,c,d,u,p,f;const{$el:h}=t;function m(k,$){const M=l.left+l.width/2,x=l.top+l.height/2;let S=Math.atan2($-x,k-M)*180/Math.PI+90;S<0&&(S+=360),S=360-S,t.setValue({hue:S})}function b(k,$){let M=(k-u.left)/u.width,x=($-u.top)/u.height;M=Math.max(0,Math.min(1,M)),x=1-Math.max(0,Math.min(1,x)),t.setValue({hsb:[t.value.hue,M,x]})}function w(k){if(a||n)return;r=k.type==="touchstart"?k.targetTouches[0].pageX:k.pageX,i=r,s=k.type==="touchstart"?k.targetTouches[0].pageY:k.pageY,o=s;const $=C(k.target);d=$.closest(".color-picker-wheel-handle").length>0,c=$.closest("circle").length>0,f=$.closest(".color-picker-sb-spectrum-handle").length>0,f||(p=$.closest(".color-picker-sb-spectrum").length>0),c&&(l=h.find(".color-picker-wheel")[0].getBoundingClientRect(),m(r,s)),p&&(u=h.find(".color-picker-sb-spectrum")[0].getBoundingClientRect(),b(r,s)),(f||p)&&h.find(".color-picker-sb-spectrum-handle").addClass("color-picker-sb-spectrum-handle-pressed")}function g(k){!(c||d)&&!(p||f)||(i=k.type==="touchmove"?k.targetTouches[0].pageX:k.pageX,o=k.type==="touchmove"?k.targetTouches[0].pageY:k.pageY,k.preventDefault(),a||(a=!0,d&&(l=h.find(".color-picker-wheel")[0].getBoundingClientRect()),f&&(u=h.find(".color-picker-sb-spectrum")[0].getBoundingClientRect())),(c||d)&&m(i,o),(p||f)&&b(i,o))}function v(){a=!1,(p||f)&&h.find(".color-picker-sb-spectrum-handle").removeClass("color-picker-sb-spectrum-handle-pressed"),c=!1,d=!1,p=!1,f=!1}function y(){t.modules.wheel.update(t)}const E=e.touchEvents.start==="touchstart"&&Xe().passiveListener?{passive:!0,capture:!1}:!1;t.$el.on(e.touchEvents.start,w,E),e.on("touchmove:active",g),e.on("touchend:passive",v),e.on("resize",y),t.destroyWheelEvents=function(){t.$el.off(e.touchEvents.start,w,E),e.off("touchmove:active",g),e.off("touchend:passive",v),e.off("resize",y)}},update(t){const{value:e}=t,{hsl:n,hsb:a}=e,r=t.$el.find(".color-picker-sb-spectrum")[0].offsetWidth,s=t.$el.find(".color-picker-sb-spectrum")[0].offsetHeight,i=t.$el.find(".color-picker-wheel")[0].offsetWidth,o=i/2,l=e.hue*Math.PI/180,d=i/6/2,u=o-Math.sin(l)*(o-d)-d,p=o-Math.cos(l)*(o-d)-d;t.$el.find(".color-picker-wheel-handle").css("background-color",`hsl(${n[0]}, 100%, 50%)`).transform(`translate(${u}px, ${p}px)`),t.$el.find(".color-picker-sb-spectrum").css("background-color",`hsl(${n[0]}, 100%, 50%)`),t.$el.find(".color-picker-sb-spectrum-handle").css("background-color",`hsl(${n[0]}, ${n[1]*100}%, ${n[2]*100}%)`).transform(`translate(${r*a[1]}px, ${s*(1-a[2])}px)`)},destroy(t){t.destroyWheelEvents&&t.destroyWheelEvents(),delete t.destroyWheelEvents}};let Wo=class extends Ue{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const a=this;a.params=W({},e.params.colorPicker,n);let r;if(a.params.containerEl&&(r=C(a.params.containerEl),r.length===0))return a;let s;a.params.inputEl&&(s=C(a.params.inputEl));let i;a.params.targetEl&&(i=C(a.params.targetEl)),W(a,{app:e,$containerEl:r,containerEl:r&&r[0],inline:r&&r.length>0,$inputEl:s,inputEl:s&&s[0],$targetEl:i,targetEl:i&&i[0],initialized:!1,opened:!1,url:a.params.url,modules:{"alpha-slider":ex,"current-color":tx,hex:nx,"hsb-sliders":ax,"hue-slider":rx,"brightness-slider":sx,palette:ix,"initial-current-colors":ox,"rgb-bars":lx,"rgb-sliders":cx,"sb-spectrum":dx,"hs-spectrum":ux,wheel:fx}});function o(){a.open()}function l(u){u.preventDefault()}function c(){a.open()}function d(u){if(a.destroyed||!a.params||a.params.openIn==="page")return;const p=C(u.target);!a.opened||a.closing||p.closest('[class*="backdrop"]').length||p.closest(".color-picker-popup, .color-picker-popover").length||(s&&s.length>0?p[0]!==s[0]&&p.closest(".sheet-modal").length===0&&a.close():C(u.target).closest(".sheet-modal").length===0&&a.close())}return W(a,{attachInputEvents(){a.$inputEl.on("click",o),a.params.inputReadOnly&&(a.$inputEl.on("focus mousedown",l),a.$inputEl[0]&&(a.$inputEl[0].f7ValidateReadonly=!0))},detachInputEvents(){a.$inputEl.off("click",o),a.params.inputReadOnly&&(a.$inputEl.off("focus mousedown",l),a.$inputEl[0]&&delete a.$inputEl[0].f7ValidateReadonly)},attachTargetEvents(){a.$targetEl.on("click",c)},detachTargetEvents(){a.$targetEl.off("click",c)},attachHtmlEvents(){e.on("click",d)},detachHtmlEvents(){e.off("click",d)}}),a.init(),a}get view(){const{$inputEl:e,$targetEl:n,app:a,params:r}=this;let s;return r.view?s=r.view:(e&&(s=e.parents(".view").length&&e.parents(".view")[0].f7View),!s&&n&&(s=n.parents(".view").length&&n.parents(".view")[0].f7View)),s||(s=a.views.main),s}attachEvents(){const e=this;e.centerModules=e.centerModules.bind(e),e.params.centerModules&&e.app.on("resize",e.centerModules)}detachEvents(){const e=this;e.params.centerModules&&e.app.off("resize",e.centerModules)}centerModules(){const e=this;if(!e.opened||!e.$el||e.inline)return;const n=e.$el.find(".page-content");if(!n.length)return;const{scrollHeight:a,offsetHeight:r}=n[0];a<=r?n.addClass("justify-content-center"):n.removeClass("justify-content-center")}initInput(){const e=this;e.$inputEl&&e.params.inputReadOnly&&e.$inputEl.prop("readOnly",!0)}getModalType(){const e=this,{app:n,modal:a,params:r}=e,{openIn:s,openInPhone:i}=r,o=Ie();return a&&a.type?a.type:s!=="auto"?s:e.inline?null:o.ios?o.ipad?"popover":i:n.width>=768?"popover":i}formatValue(){const e=this,{value:n}=e;return e.params.formatValue?e.params.formatValue.call(e,n):n.hex}normalizeHsValues(e){return[Math.floor(e[0]*10)/10,Math.floor(e[1]*1e3)/1e3,Math.floor(e[2]*1e3)/1e3]}setValue(e,n){e===void 0&&(e={}),n===void 0&&(n=!0);const a=this;if(typeof e>"u")return;let{hex:r,rgb:s,hsl:i,hsb:o,alpha:l=1,hue:c,rgba:d,hsla:u}=a.value||{};const p=a.value||!a.value&&!a.params.value;let f;if(Object.keys(e).forEach(h=>{if(!a.value||typeof a.value[h]>"u"){f=!0;return}const m=e[h];Array.isArray(m)?m.forEach((b,w)=>{b!==a.value[h][w]&&(f=!0)}):m!==a.value[h]&&(f=!0)}),!!f){if(e.rgb||e.rgba){const[h,m,b,w=l]=e.rgb||e.rgba;s=[h,m,b],r=on(...s),i=gr(...s),o=ba(...i),i=a.normalizeHsValues(i),o=a.normalizeHsValues(o),c=o[0],l=w,d=[s[0],s[1],s[2],w],u=[i[0],i[1],i[2],w]}if(e.hsl||e.hsla){const[h,m,b,w=l]=e.hsl||e.hsla;i=[h,m,b],s=na(...i),r=on(...s),o=ba(...i),i=a.normalizeHsValues(i),o=a.normalizeHsValues(o),c=o[0],l=w,d=[s[0],s[1],s[2],w],u=[i[0],i[1],i[2],w]}if(e.hsb){const[h,m,b,w=l]=e.hsb;o=[h,m,b],i=cn(...o),s=na(...i),r=on(...s),i=a.normalizeHsValues(i),o=a.normalizeHsValues(o),c=o[0],l=w,d=[s[0],s[1],s[2],w],u=[i[0],i[1],i[2],w]}if(e.hex&&(s=rn(e.hex),r=on(...s),i=gr(...s),o=ba(...i),i=a.normalizeHsValues(i),o=a.normalizeHsValues(o),c=o[0],d=[s[0],s[1],s[2],l],u=[i[0],i[1],i[2],l]),typeof e.alpha<"u"&&(l=e.alpha,typeof s<"u"&&(d=[s[0],s[1],s[2],l]),typeof i<"u"&&(u=[i[0],i[1],i[2],l])),typeof e.hue<"u"){const[h,m,b]=i;i=[e.hue,m,b],o=ba(...i),s=na(...i),r=on(...s),i=a.normalizeHsValues(i),o=a.normalizeHsValues(o),c=o[0],d=[s[0],s[1],s[2],l],u=[i[0],i[1],i[2],l]}a.value={hex:r,alpha:l,hue:c,rgb:s,hsl:i,hsb:o,rgba:d,hsla:u},a.initialValue||(a.initialValue=W({},a.value)),a.updateValue(p),a.opened&&n&&a.updateModules()}}getValue(){return this.value}updateValue(e){e===void 0&&(e=!0);const n=this,{$inputEl:a,value:r,$targetEl:s}=n;if(s&&n.params.targetElSetBackgroundColor){const{rgba:i}=r;s.css("background-color",`rgba(${i.join(", ")})`)}if(e&&n.emit("local::change colorPickerChange",n,r),a&&a.length){const i=n.formatValue(r);a&&a.length&&(a.val(i),e&&a.trigger("change"))}}updateModules(){const e=this,{modules:n}=e;e.params.modules.forEach(a=>{typeof a=="string"&&n[a]&&n[a].update?n[a].update(e):a&&a.update&&a.update(e)})}update(){this.updateModules()}renderPicker(){const e=this,{params:n,modules:a}=e;let r="";return n.modules.forEach(s=>{typeof s=="string"&&a[s]&&a[s].render?r+=a[s].render(e):s&&s.render&&(r+=s.render(e))}),r}renderNavbar(){const e=this;if(e.params.renderNavbar)return e.params.renderNavbar.call(e,e);const{openIn:n,navbarTitleText:a,navbarBackLinkText:r,navbarCloseText:s}=e.params;return T("div",{class:"navbar"},T("div",{class:"navbar-bg"}),T("div",{class:"navbar-inner sliding"},n==="page"&&T("div",{class:"left"},T("a",{class:"link back"},T("i",{class:"icon icon-back"}),T("span",{class:"if-not-md"},r))),T("div",{class:"title"},a),n!=="page"&&T("div",{class:"right"},T("a",{class:"link popup-close","data-popup":".color-picker-popup"},s))))}renderToolbar(){const e=this;return e.params.renderToolbar?e.params.renderToolbar.call(e,e):T("div",{class:"toolbar toolbar-top"},T("div",{class:"toolbar-inner"},T("div",{class:"left"}),T("div",{class:"right"},T("a",{class:"link sheet-close popover-close","data-sheet":".color-picker-sheet-modal","data-popover":".color-picker-popover"},e.params.toolbarCloseText))))}renderInline(){const e=this,{cssClass:n,groupedModules:a}=e.params;return T("div",{class:`color-picker color-picker-inline ${a?"color-picker-grouped-modules":""} ${n||""}`},e.renderPicker())}renderSheet(){const e=this,{cssClass:n,toolbarSheet:a,groupedModules:r}=e.params;return T("div",{class:`sheet-modal color-picker color-picker-sheet-modal ${r?"color-picker-grouped-modules":""} ${n||""}`},a&&e.renderToolbar(),T("div",{class:"sheet-modal-inner"},T("div",{class:"page-content"},e.renderPicker())))}renderPopover(){const e=this,{cssClass:n,toolbarPopover:a,groupedModules:r}=e.params;return T("div",{class:`popover color-picker-popover ${n||""}`},T("div",{class:"popover-inner"},T("div",{class:`color-picker ${r?"color-picker-grouped-modules":""}`},a&&e.renderToolbar(),T("div",{class:"page-content"},e.renderPicker()))))}renderPopup(){const e=this,{cssClass:n,navbarPopup:a,groupedModules:r}=e.params;return T("div",{class:`popup color-picker-popup ${n||""}`},T("div",{class:"page"},a&&e.renderNavbar(),T("div",{class:`color-picker ${r?"color-picker-grouped-modules":""}`},T("div",{class:"page-content"},e.renderPicker()))))}renderPage(){const e=this,{cssClass:n,groupedModules:a}=e.params;return T("div",{class:`page color-picker-page ${n||""}`,"data-name":"color-picker-page"},e.renderNavbar(),T("div",{class:`color-picker ${a?"color-picker-grouped-modules":""}`},T("div",{class:"page-content"},e.renderPicker())))}render(){const e=this,{params:n}=e;if(n.render)return n.render.call(e);if(e.inline)return e.renderInline();if(n.openIn==="page")return e.renderPage();const a=e.getModalType();if(a==="popover")return e.renderPopover();if(a==="sheet")return e.renderSheet();if(a==="popup")return e.renderPopup()}onOpen(){const e=this,{initialized:n,$el:a,app:r,$inputEl:s,inline:i,value:o,params:l,modules:c}=e;e.closing=!1,e.opened=!0,e.opening=!0,e.attachEvents(),l.modules.forEach(u=>{typeof u=="string"&&c[u]&&c[u].init?c[u].init(e):u&&u.init&&u.init(e)});const d=!o&&l.value;n?o&&(e.initialValue=W({},o),e.setValue(o,!1)):o?e.setValue(o):l.value?e.setValue(l.value,!1):l.value||e.setValue({hex:"#ff0000"},!1),d&&e.updateValue(),e.updateModules(),l.centerModules&&e.centerModules(),!i&&s&&s.length&&r.theme==="md"&&s.trigger("focus"),e.initialized=!0,a&&a.trigger("colorpicker:open"),s&&s.trigger("colorpicker:open"),e.emit("local::open colorPickerOpen",e)}onOpened(){const e=this;e.opening=!1,e.$el&&e.$el.trigger("colorpicker:opened"),e.$inputEl&&e.$inputEl.trigger("colorpicker:opened"),e.emit("local::opened colorPickerOpened",e)}onClose(){const e=this,{app:n,params:a,modules:r}=e;if(e.opening=!1,e.closing=!0,e.detachEvents(),e.$inputEl)if(n.theme==="md")e.$inputEl.trigger("blur");else{const s=e.$inputEl.attr("validate"),i=e.$inputEl.attr("required");s&&i&&n.input.validate(e.$inputEl)}a.modules.forEach(s=>{typeof s=="string"&&r[s]&&r[s].destroy?r[s].destroy(e):s&&s.destroy&&s.destroy(e)}),e.$el&&e.$el.trigger("colorpicker:close"),e.$inputEl&&e.$inputEl.trigger("colorpicker:close"),e.emit("local::close colorPickerClose",e)}onClosed(){const e=this;e.opened=!1,e.closing=!1,e.inline||lt(()=>{e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal}),e.$el&&e.$el.trigger("colorpicker:closed"),e.$inputEl&&e.$inputEl.trigger("colorpicker:closed"),e.emit("local::closed colorPickerClosed",e)}open(){const e=this,{app:n,opened:a,inline:r,$inputEl:s,$targetEl:i,params:o}=e;if(a)return;if(r){e.$el=C(e.render()),e.$el[0].f7ColorPicker=e,e.$containerEl.append(e.$el),e.onOpen(),e.onOpened();return}const l=e.render();if(o.openIn==="page")e.view.router.navigate({url:e.url,route:{content:l,path:e.url,on:{pageBeforeIn(c,d){e.$el=d.$el.find(".color-picker"),e.$el[0].f7ColorPicker=e,e.onOpen()},pageAfterIn(){e.onOpened()},pageBeforeOut(){e.onClose()},pageAfterOut(){e.onClosed(),e.$el&&e.$el[0]&&(e.$el[0].f7ColorPicker=null,delete e.$el[0].f7ColorPicker)}}}});else{const c=e.getModalType();let d=o.backdrop;(d===null||typeof d>"u")&&(c==="popover"&&n.params.popover.backdrop!==!1&&(d=!0),c==="popup"&&(d=!0));const u={targetEl:i||s,scrollToEl:o.scrollToInput?i||s:void 0,content:l,backdrop:d,closeByBackdropClick:o.closeByBackdropClick,on:{open(){const p=this;e.modal=p,e.$el=c==="popover"||c==="popup"?p.$el.find(".color-picker"):p.$el,e.$el[0].f7ColorPicker=e,e.onOpen()},opened(){e.onOpened()},close(){e.onClose()},closed(){e.onClosed(),e.$el&&e.$el[0]&&(e.$el[0].f7ColorPicker=null,delete e.$el[0].f7ColorPicker)}}};c==="popup"&&(u.push=o.popupPush,u.swipeToClose=o.popupSwipeToClose),c==="sheet"&&(u.push=o.sheetPush,u.swipeToClose=o.sheetSwipeToClose),o.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,[c]:u}}):(e.modal=n[c].create(u),e.modal.open())}}close(){const e=this,{opened:n,inline:a}=e;if(n){if(a){e.onClose(),e.onClosed();return}e.params.routableModals&&e.view||e.params.openIn==="page"?e.view.router.back():e.modal.close()}}init(){const e=this;if(e.initInput(),e.inline){e.open(),e.emit("local::init colorPickerInit",e);return}!e.initialized&&e.params.value&&e.setValue(e.params.value),e.$inputEl&&e.attachInputEvents(),e.$targetEl&&e.attachTargetEvents(),e.params.closeByOutsideClick&&e.attachHtmlEvents(),e.emit("local::init colorPickerInit",e)}destroy(){const e=this;if(e.destroyed)return;const{$el:n}=e;e.emit("local::beforeDestroy colorPickerBeforeDestroy",e),n&&n.trigger("colorpicker:beforedestroy"),e.close(),e.detachEvents(),e.$inputEl&&e.detachInputEvents(),e.$targetEl&&e.detachTargetEvents(),e.params.closeByOutsideClick&&e.detachHtmlEvents(),n&&n.length&&delete e.$el[0].f7ColorPicker,Ze(e),e.destroyed=!0}};const hx={name:"colorPicker",static:{ColorPicker:Wo},create(){const t=this;t.colorPicker=et({defaultSelector:".color-picker",constructor:Wo,app:t,domProp:"f7ColorPicker"}),t.colorPicker.close=function(n){n===void 0&&(n=".color-picker");const a=C(n);if(a.length===0)return;const r=a[0].f7ColorPicker;!r||r&&!r.opened||r.close()}},params:{colorPicker:{value:null,modules:["wheel"],palette:[["#FFEBEE","#FFCDD2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#F3E5F5","#E1BEE7","#CE93D8","#BA68C8","#AB47BC","#9C27B0","#8E24AA","#7B1FA2","#6A1B9A","#4A148C"],["#E8EAF6","#C5CAE9","#9FA8DA","#7986CB","#5C6BC0","#3F51B5","#3949AB","#303F9F","#283593","#1A237E"],["#E1F5FE","#B3E5FC","#81D4FA","#4FC3F7","#29B6F6","#03A9F4","#039BE5","#0288D1","#0277BD","#01579B"],["#E0F2F1","#B2DFDB","#80CBC4","#4DB6AC","#26A69A","#009688","#00897B","#00796B","#00695C","#004D40"],["#F1F8E9","#DCEDC8","#C5E1A5","#AED581","#9CCC65","#8BC34A","#7CB342","#689F38","#558B2F","#33691E"],["#FFFDE7","#FFF9C4","#FFF59D","#FFF176","#FFEE58","#FFEB3B","#FDD835","#FBC02D","#F9A825","#F57F17"],["#FFF3E0","#FFE0B2","#FFCC80","#FFB74D","#FFA726","#FF9800","#FB8C00","#F57C00","#EF6C00","#E65100"]],groupedModules:!1,centerModules:!0,sliderLabel:!1,sliderValue:!1,sliderValueEdiable:!1,barLabel:!1,barValue:!1,barValueEdiable:!1,hexLabel:!1,hexValueEditable:!1,redLabelText:"R",greenLabelText:"G",blueLabelText:"B",hueLabelText:"H",saturationLabelText:"S",brightnessLabelText:"B",hexLabelText:"HEX",alphaLabelText:"A",containerEl:null,openIn:"popover",openInPhone:"popup",popupPush:!1,popupSwipeToClose:void 0,sheetPush:!1,sheetSwipeToClose:void 0,formatValue:null,targetEl:null,targetElSetBackgroundColor:!1,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,toolbarSheet:!0,toolbarPopover:!1,toolbarCloseText:"Done",navbarPopup:!0,navbarCloseText:"Done",navbarTitleText:"Color",navbarBackLinkText:"Back",cssClass:null,routableModals:!1,view:null,url:"color/",backdrop:null,closeByBackdropClick:!0,renderToolbar:null,renderNavbar:null,renderInline:null,renderPopover:null,renderSheet:null,renderPopup:null,render:null}}},mx={open(t){const e=this,n=C(t).eq(0);if(!n.length)return;n.addClass("treeview-item-opened"),n.trigger("treeview:open"),e.emit("treeviewOpen",n[0]);function a(r){r?(n.removeClass("treeview-item-opened"),n.trigger("treeview:close"),e.emit("treeviewClose",n[0])):n[0].f7TreeviewChildrenLoaded=!0,n.find(".treeview-toggle").removeClass("treeview-toggle-hidden"),n.find(".treeview-preloader").remove()}if(n.hasClass("treeview-load-children")&&!n[0].f7TreeviewChildrenLoaded){const r={iosPreloaderContent:Hn,mdPreloaderContent:Rn};n.trigger("treeview:loadchildren",a),e.emit("treeviewLoadChildren",n[0],a),n.find(".treeview-toggle").addClass("treeview-toggle-hidden"),n.find(".treeview-item-root").prepend(`
            ${r[`${e.theme}PreloaderContent`]}
            `)}},close(t){const e=this,n=C(t).eq(0);n.length&&(n.removeClass("treeview-item-opened"),n.trigger("treeview:close"),e.emit("treeviewClose",n[0]))},toggle(t){const e=this,n=C(t).eq(0);if(!n.length)return;const a=n.hasClass("treeview-item-opened");e.treeview[a?"close":"open"](n)}},gx={name:"treeview",create(){Ct(this,{treeview:mx})},clicks:{".treeview-toggle":function(e,n,a){const r=this;if(e.parents(".treeview-item-toggle").length)return;const s=e.parents(".treeview-item").eq(0);s.length&&(a.preventF7Router=!0,r.treeview.toggle(s[0]))},".treeview-item-toggle":function(e,n,a){const r=this,s=e.closest(".treeview-item").eq(0);s.length&&(a.preventF7Router=!0,r.treeview.toggle(s[0]))}}},er={bold:["bold","format_bold","bold"],italic:["italic","format_italic","italic"],underline:["underline","format_underlined","underline"],strikeThrough:["strikethrough","strikethrough_s","strikeThrough"],orderedList:["list_number","format_list_numbered","insertOrderedList"],unorderedList:["list_bullet","format_list_bulleted","insertUnorderedList"],link:["link","link","createLink"],image:["photo","image","insertImage"],paragraph:["paragraph",'',"formatBlock.P"],h1:['H1','H1',"formatBlock.H1"],h2:['H2','H2',"formatBlock.H2"],h3:['H3','H3',"formatBlock.H3"],alignLeft:["text_alignleft","format_align_left","justifyLeft"],alignCenter:["text_aligncenter","format_align_center","justifyCenter"],alignRight:["text_alignright","format_align_right","justifyRight"],alignJustify:["text_justify","format_align_justify","justifyFull"],subscript:["textformat_subscript",'A1',"subscript"],superscript:["textformat_superscript",'A1',"superscript"],indent:["increase_indent","format_indent_increase","indent"],outdent:["decrease_indent","format_indent_decrease","outdent"]};let Yo=class extends Ue{constructor(e,n){super(n,[e]);const a=this,r=ye(),s=Ie(),i=W({},e.params.textEditor);a.useModulesParams(i),a.params=W(i,n);const o=a.params.el;if(!o)return a;const l=C(o);if(l.length===0)return a;if(l[0].f7TextEditor)return l[0].f7TextEditor;let c=l.children(".text-editor-content");if(c.length||(l.append('
            '),c=l.children(".text-editor-content")),W(a,{app:e,$el:l,el:l[0],$contentEl:c,contentEl:c[0]}),"value"in n&&(a.value=a.params.value),a.params.mode==="keyboard-toolbar"&&!(s.cordova||s.capacitor)&&!s.android&&(a.params.mode="popover"),typeof a.params.buttons=="string")try{a.params.buttons=JSON.parse(a.params.buttons)}catch{throw new Error('Framework7: TextEditor: wrong "buttons" parameter format')}return l[0].f7TextEditor=a,a.onButtonClick=a.onButtonClick.bind(a),a.onFocus=a.onFocus.bind(a),a.onBlur=a.onBlur.bind(a),a.onInput=a.onInput.bind(a),a.onPaste=a.onPaste.bind(a),a.onSelectionChange=a.onSelectionChange.bind(a),a.closeKeyboardToolbar=a.closeKeyboardToolbar.bind(a),a.attachEvents=function(){a.params.mode==="toolbar"&&a.$el.find(".text-editor-toolbar").on("click","button",a.onButtonClick),a.params.mode==="keyboard-toolbar"&&(a.$keyboardToolbarEl.on("click","button",a.onButtonClick),a.$el.parents(".page").on("page:beforeout",a.closeKeyboardToolbar)),a.params.mode==="popover"&&a.popover&&a.popover.$el.on("click","button",a.onButtonClick),a.$contentEl.on("paste",a.onPaste),a.$contentEl.on("focus",a.onFocus),a.$contentEl.on("blur",a.onBlur),a.$contentEl.on("input",a.onInput,!0),C(r).on("selectionchange",a.onSelectionChange)},a.detachEvents=function(){a.params.mode==="toolbar"&&a.$el.find(".text-editor-toolbar").off("click","button",a.onButtonClick),a.params.mode==="keyboard-toolbar"&&(a.$keyboardToolbarEl.off("click","button",a.onButtonClick),a.$el.parents(".page").off("page:beforeout",a.closeKeyboardToolbar)),a.params.mode==="popover"&&a.popover&&a.popover.$el.off("click","button",a.onButtonClick),a.$contentEl.off("paste",a.onPaste),a.$contentEl.off("focus",a.onFocus),a.$contentEl.off("blur",a.onBlur),a.$contentEl.off("input",a.onInput,!0),C(r).off("selectionchange",a.onSelectionChange)},a.useModules(),a.init(),a}setValue(e){const n=this;return n.value===e||(n.value=e,n.$contentEl.html(e),n.$el.trigger("texteditor:change",n.value),n.emit("local::change textEditorChange",n,n.value)),n}getValue(){return this.value}clearValue(){const e=this;return e.setValue(""),e.params.placeholder&&!e.$contentEl.html()&&e.insertPlaceholder(),e}createLink(){const e=this,n=fe(),a=ye(),r=n.getSelection(),s=[];let i;if(r&&r.anchorNode&&C(r.anchorNode).parents(e.$el).length){let c=r.anchorNode;for(;c;)s.push(c),(!c.nextSibling||c===r.focusNode)&&(c=null),c&&(c=c.nextSibling);const d=[],u=C(s);for(let p=0;p{const d=n.getSelection(),u=a.createRange();u.selectNodeContents(c),d.removeAllRanges(),d.addRange(u),a.execCommand("unlink",!1),d.removeAllRanges()}),e;const o=e.getSelectionRange();return o&&e.app.dialog.prompt("",e.params.linkUrlText,c=>{c&&c.trim().length&&(e.setSelectionRange(o),a.execCommand("createLink",!1,c.trim()),e.$el.trigger("texteditor:insertlink",{url:c.trim()}),e.emit("local:insertLink textEditorInsertLink",e,c.trim()))}).$el.find("input").focus(),e}insertImage(){const e=this,n=ye(),a=e.getSelectionRange();return a&&e.app.dialog.prompt("",e.params.imageUrlText,s=>{s&&s.trim().length&&(e.setSelectionRange(a),n.execCommand("insertImage",!1,s.trim()),e.$el.trigger("texteditor:insertimage",{url:s.trim()}),e.emit("local:insertImage textEditorInsertImage",e,s.trim()))}).$el.find("input").focus(),e}removePlaceholder(){this.$contentEl.find(".text-editor-placeholder").remove()}insertPlaceholder(){const e=this;e.$contentEl.append(`
            ${e.params.placeholder}
            `)}onSelectionChange(){const e=this,n=fe(),a=ye();if(e.params.mode==="toolbar")return;const r=n.getSelection(),s=C(r.anchorNode).parents(e.contentEl).length||r.anchorNode===e.contentEl;if(e.params.mode==="keyboard-toolbar"){s?e.openKeyboardToolbar():e.closeKeyboardToolbar();return}if(e.params.mode==="popover"){const i=C(r.anchorNode).parents(e.popover.el).length||r.anchorNode===e.popover.el;if(!s&&!i){e.closePopover();return}if(!r.isCollapsed&&r.rangeCount){const l=r.getRangeAt(0).getBoundingClientRect(),c=e.app.$el[0]||a.body;e.openPopover(l.x+(n.scrollX||0)-c.offsetLeft,l.y+(n.scrollY||0)-c.offsetTop,l.width,l.height)}else r.isCollapsed&&e.closePopover()}}onPaste(e){const n=this,a=ye();if(n.params.clearFormattingOnPaste&&e.clipboardData&&e.clipboardData.getData){const r=e.clipboardData.getData("text/plain");e.preventDefault(),a.execCommand("insertText",!1,r)}}onInput(){const e=this,n=e.$contentEl.html();e.value=n,e.$el.trigger("texteditor:input"),e.emit("local:input textEditorInput",e,e.value),e.$el.trigger("texteditor:change",e.value),e.emit("local::change textEditorChange",e,e.value)}onFocus(){const e=this;e.removePlaceholder(),e.$contentEl.focus(),e.$el.trigger("texteditor:focus"),e.emit("local::focus textEditorFocus",e)}onBlur(){const e=this,n=fe(),a=ye();if(e.params.placeholder&&e.$contentEl.html()===""&&e.insertPlaceholder(),e.params.mode==="popover"){const r=n.getSelection(),s=C(r.anchorNode).parents(e.contentEl).length||r.anchorNode===e.contentEl;!(a.activeElement&&e.popover&&C(a.activeElement).closest(e.popover.$el).length)&&!s&&e.closePopover()}if(e.params.mode==="keyboard-toolbar"){const r=n.getSelection();C(r.anchorNode).parents(e.contentEl).length||r.anchorNode===e.contentEl||e.closeKeyboardToolbar()}e.$el.trigger("texteditor:blur"),e.emit("local::blur textEditorBlur",e)}onButtonClick(e){const n=this,a=fe(),r=ye(),s=a.getSelection();if(!(C(s.anchorNode).parents(n.contentEl).length||s.anchorNode===n.contentEl))return;const o=C(e.target).closest("button");o.parents("form").length&&e.preventDefault();const l=o.attr("data-button"),c=n.params.customButtons&&n.params.customButtons[l];if(!l||!(er[l]||c))return;if(o.trigger("texteditor:buttonclick",l),n.emit("local::buttonClick textEditorButtonClick",n,l),c){c.onClick&&c.onClick(n,o[0]);return}const d=er[l][2];if(d==="createLink"){n.createLink();return}if(d==="insertImage"){n.insertImage();return}if(d.indexOf("formatBlock")===0){const u=d.split(".")[1],p=C(s.anchorNode);p.parents(u.toLowerCase()).length||p.is(u)?r.execCommand("formatBlock",!1,"div"):r.execCommand("formatBlock",!1,u);return}r.execCommand(d,!1)}getSelectionRange(){const e=fe(),n=ye();if(e.getSelection){const a=e.getSelection();if(a.getRangeAt&&a.rangeCount)return a.getRangeAt(0)}else if(n.selection&&n.selection.createRange)return n.selection.createRange();return null}setSelectionRange(e){const n=fe(),a=ye();if(e)if(n.getSelection){const r=n.getSelection();r.removeAllRanges(),r.addRange(e)}else a.selection&&e.select&&e.select()}renderButtons(){const e=this;let n="";function a(r){const s=e.app.theme==="md"?"material-icons":"f7-icons";if(e.params.customButtons&&e.params.customButtons[r]){const o=e.params.customButtons[r];return``}if(!er[r])return"";const i=er[r][e.app.theme==="md"?1:0];return``.trim()}return e.params.buttons.forEach((r,s)=>{Array.isArray(r)?(r.forEach(i=>{n+=a(i)}),s')):n+=a(r)}),n}createToolbar(){const e=this;e.$el.prepend(`
            ${e.renderButtons()}
            `)}createKeyboardToolbar(){const e=this;e.$keyboardToolbarEl=C(`
            ${e.renderButtons()}
            `)}createPopover(){const e=this;e.popover=e.app.popover.create({content:`
            ${e.renderButtons()}
            - `,closeByOutsideClick:!1,backdrop:!1})}openKeyboardToolbar(){const e=this;e.$keyboardToolbarEl.parent(e.app.$el).length||(e.$el.trigger("texteditor:keyboardopen"),e.emit("local::keyboardOpen textEditorKeyboardOpen",e),e.app.$el.append(e.$keyboardToolbarEl))}closeKeyboardToolbar(){const e=this;e.$keyboardToolbarEl.remove(),e.$el.trigger("texteditor:keyboardclose"),e.emit("local::keyboardClose textEditorKeyboardClose",e)}openPopover(e,n,a,r){const s=this;s.popover&&(Object.assign(s.popover.params,{targetX:e,targetY:n,targetWidth:a,targetHeight:r}),clearTimeout(s.popoverTimeout),s.popoverTimeout=setTimeout(()=>{s.popover&&(s.popover.opened?s.popover.resize():(s.$el.trigger("texteditor:popoveropen"),s.emit("local::popoverOpen textEditorPopoverOpen",s),s.popover.open()))},400))}closePopover(){const e=this;clearTimeout(e.popoverTimeout),!(!e.popover||!e.popover.opened)&&(e.popoverTimeout=setTimeout(()=>{e.popover&&(e.$el.trigger("texteditor:popoverclose"),e.emit("local::popoverClose textEditorPopoverClose",e),e.popover.close())},400))}init(){const e=this;return e.value?e.$contentEl.html(e.value):e.value=e.$contentEl.html(),e.params.placeholder&&e.value===""&&e.insertPlaceholder(),e.params.mode==="toolbar"?e.createToolbar():e.params.mode==="popover"?e.createPopover():e.params.mode==="keyboard-toolbar"&&e.createKeyboardToolbar(),e.attachEvents(),e.$el.trigger("texteditor:init"),e.emit("local::init textEditorInit",e),e}destroy(){let e=this;e.$el.trigger("texteditor:beforedestroy"),e.emit("local::beforeDestroy textEditorBeforeDestroy",e),e.detachEvents(),e.params.mode==="keyboard-toolbar"&&e.$keyboardToolbarEl&&e.$keyboardToolbarEl.remove(),e.popover&&(e.popover.close(!1),e.popover.destroy()),delete e.$el[0].f7TextEditor,Ze(e),e=null}};const mx={name:"textEditor",params:{textEditor:{el:null,mode:"toolbar",value:void 0,customButtons:null,buttons:[["bold","italic","underline","strikeThrough"],["orderedList","unorderedList"],["link","image"],["paragraph","h1","h2","h3"],["alignLeft","alignCenter","alignRight","alignJustify"],["subscript","superscript"],["indent","outdent"]],dividers:!0,imageUrlText:"Insert image URL",linkUrlText:"Insert link URL",placeholder:null,clearFormattingOnPaste:!0}},create(){const t=this;t.textEditor=W(et({defaultSelector:".text-editor",constructor:Yo,app:t,domProp:"f7TextEditor"}))},static:{TextEditor:Yo},on:{tabMounted(t){const e=this;C(t).find(".text-editor-init").each(n=>{const a=C(n).dataset();e.textEditor.create(W({el:n},a||{}))})},tabBeforeRemove(t){C(t).find(".text-editor-init").each(e=>{e.f7TextEditor&&e.f7TextEditor.destroy()})},pageInit(t){const e=this;t.$el.find(".text-editor-init").each(n=>{const a=C(n).dataset();e.textEditor.create(W({el:n},a||{}))})},pageBeforeRemove(t){t.$el.find(".text-editor-init").each(e=>{e.f7TextEditor&&e.f7TextEditor.destroy()})}},vnode:{"text-editor-init":{insert(t){const e=this,n=t.elm,a=C(n).dataset();e.textEditor.create(W({el:n},a||{}))},destroy(t){const e=t.elm;e.f7TextEditor&&e.f7TextEditor.destroy()}}}},gx={},bx={name:"breadrumbs",create(){Ct(this,{breadrumbs:gx})}},vx={name:"typography"};nt.use([ac,rc,sc,ic,oc,uc,ii,pc,fc,hc,mc,gc,bc,vc,wc,yc,Ec,GE,KE,QE,JE,ZE,eC,tC,nC,rC,iC,oC,lC,cC,dC,uC,pC,hC,bC,wC,yC,$C,xC,SC,TC,PC,MC,BC,IC,OC,AC,LC,HC,FC,zC,VC,_C,jC,qC,Y$,X$,U$,G$,K$,Q$,px,hx,mx,bx,vx]);nt.use(Ps);rp(UE).mount("#app"); + `,closeByOutsideClick:!1,backdrop:!1})}openKeyboardToolbar(){const e=this;e.$keyboardToolbarEl.parent(e.app.$el).length||(e.$el.trigger("texteditor:keyboardopen"),e.emit("local::keyboardOpen textEditorKeyboardOpen",e),e.app.$el.append(e.$keyboardToolbarEl))}closeKeyboardToolbar(){const e=this;e.$keyboardToolbarEl.remove(),e.$el.trigger("texteditor:keyboardclose"),e.emit("local::keyboardClose textEditorKeyboardClose",e)}openPopover(e,n,a,r){const s=this;s.popover&&(Object.assign(s.popover.params,{targetX:e,targetY:n,targetWidth:a,targetHeight:r}),clearTimeout(s.popoverTimeout),s.popoverTimeout=setTimeout(()=>{s.popover&&(s.popover.opened?s.popover.resize():(s.$el.trigger("texteditor:popoveropen"),s.emit("local::popoverOpen textEditorPopoverOpen",s),s.popover.open()))},400))}closePopover(){const e=this;clearTimeout(e.popoverTimeout),!(!e.popover||!e.popover.opened)&&(e.popoverTimeout=setTimeout(()=>{e.popover&&(e.$el.trigger("texteditor:popoverclose"),e.emit("local::popoverClose textEditorPopoverClose",e),e.popover.close())},400))}init(){const e=this;return e.value?e.$contentEl.html(e.value):e.value=e.$contentEl.html(),e.params.placeholder&&e.value===""&&e.insertPlaceholder(),e.params.mode==="toolbar"?e.createToolbar():e.params.mode==="popover"?e.createPopover():e.params.mode==="keyboard-toolbar"&&e.createKeyboardToolbar(),e.attachEvents(),e.$el.trigger("texteditor:init"),e.emit("local::init textEditorInit",e),e}destroy(){let e=this;e.$el.trigger("texteditor:beforedestroy"),e.emit("local::beforeDestroy textEditorBeforeDestroy",e),e.detachEvents(),e.params.mode==="keyboard-toolbar"&&e.$keyboardToolbarEl&&e.$keyboardToolbarEl.remove(),e.popover&&(e.popover.close(!1),e.popover.destroy()),delete e.$el[0].f7TextEditor,Ze(e),e=null}};const bx={name:"textEditor",params:{textEditor:{el:null,mode:"toolbar",value:void 0,customButtons:null,buttons:[["bold","italic","underline","strikeThrough"],["orderedList","unorderedList"],["link","image"],["paragraph","h1","h2","h3"],["alignLeft","alignCenter","alignRight","alignJustify"],["subscript","superscript"],["indent","outdent"]],dividers:!0,imageUrlText:"Insert image URL",linkUrlText:"Insert link URL",placeholder:null,clearFormattingOnPaste:!0}},create(){const t=this;t.textEditor=W(et({defaultSelector:".text-editor",constructor:Yo,app:t,domProp:"f7TextEditor"}))},static:{TextEditor:Yo},on:{tabMounted(t){const e=this;C(t).find(".text-editor-init").each(n=>{const a=C(n).dataset();e.textEditor.create(W({el:n},a||{}))})},tabBeforeRemove(t){C(t).find(".text-editor-init").each(e=>{e.f7TextEditor&&e.f7TextEditor.destroy()})},pageInit(t){const e=this;t.$el.find(".text-editor-init").each(n=>{const a=C(n).dataset();e.textEditor.create(W({el:n},a||{}))})},pageBeforeRemove(t){t.$el.find(".text-editor-init").each(e=>{e.f7TextEditor&&e.f7TextEditor.destroy()})}},vnode:{"text-editor-init":{insert(t){const e=this,n=t.elm,a=C(n).dataset();e.textEditor.create(W({el:n},a||{}))},destroy(t){const e=t.elm;e.f7TextEditor&&e.f7TextEditor.destroy()}}}},vx={},wx={name:"breadrumbs",create(){Ct(this,{breadrumbs:vx})}},yx={name:"typography"};nt.use([ac,rc,sc,ic,oc,uc,ii,pc,fc,hc,mc,gc,bc,vc,wc,yc,Ec,QE,JE,ZE,eC,tC,nC,aC,rC,iC,lC,cC,dC,uC,pC,fC,hC,gC,wC,EC,CC,SC,TC,PC,MC,BC,IC,OC,AC,DC,LC,HC,zC,NC,VC,jC,qC,WC,YC,U$,G$,K$,Q$,J$,Z$,hx,gx,bx,wx,yx]);nt.use(Ps);rp(KE).mount("#app"); diff --git a/index.html b/index.html index 384c163..3e5466e 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Shortcuts Glyph Search - +