diff --git "a/assets/mobile-fbc46914.js" "b/assets/mobile-fbc46914.js" deleted file mode 100644--- "a/assets/mobile-fbc46914.js" +++ /dev/null @@ -1,197 +0,0 @@ -import{bz as at,S as We,b as je,s as Xe,Y as U,a as Ee,e as Z,V as Ae,f as z,$ as x,a0 as $,a1 as Q,D as Ge,o as C,k as M,p as F,W as De,bA as pt,u as gt,bB as bt,bC as J,v as kt,X as Be,bD as Je,a4 as mt,ad as $e,bE as hs,bF as yt,a5 as Ld,G as Lt,c as V,d as se,g as N,j as le,I as Dd,a3 as Rd,m as oe,bG as es,ab as ia,ac as zn,z as Ze,B as be,C as ve,F as _e,bH as $a,A as _s,E as as,bI as kn,bJ as Rp,bK as Hp,h as ht,bL as Fn,bM as Qa,aO as Dt,aD as Yt,a7 as ge,bN as Hd,a8 as we,x as dt,r as ln,bO as ie,aa as zp,t as wt,bP as Fp,aH as Rt,Z as Kn,_ as ks,a9 as $t,q as Pt,a$ as Ct,aB as zd,am as ts,aK as Ka,bm as Np,bv as Vp,aJ as Yp,a6 as Gt,af as is,aI as Zn,bh as ra,aE as qp,ao as Fd,bQ as Wp,bR as jp,aq as Nd,ar as Vd,aL as Xp,aU as Gp,bu as Up,bn as Za,bo as xp,bx as $p,by as Qp}from"./global-b3b5b4db.js";function tt(t){const{color:e,textColor:n,bgColor:s,borderColor:a,rippleColor:i,dark:o}=t;return{dark:o,[`color-${e}`]:e,[`text-color-${n}`]:n,[`bg-color-${s}`]:s,[`border-color-${a}`]:a,[`ripple-color-${i}`]:i}}function ka(t){const{force:e,reloadCurrent:n,reloadPrevious:s,reloadAll:a,reloadDetail:i,animate:o,ignoreCache:r,routeTabId:l,view:f,transition:c,openIn:u}=t;let d;"animate"in t&&typeof o<"u"&&(d=o.toString());let m;return"reloadDetail"in t&&typeof i<"u"&&(m=i.toString()),{"data-force":e||void 0,"data-reload-current":n||void 0,"data-reload-all":a||void 0,"data-reload-previous":s||void 0,"data-reload-detail":m,"data-animate":d,"data-ignore-cache":r||void 0,"data-route-tab-id":l||void 0,"data-view":at(f)?f:void 0,"data-transition":at(c)?c:void 0,"data-open-in":at(u)?u:void 0}}function Ea(t){const{back:e,linkBack:n,external:s,preventRouter:a}=t;return{back:e||n,external:s,"prevent-router":a}}function Ca(t){const{searchbarEnable:e,searchbarDisable:n,searchbarClear:s,searchbarToggle:a,panelOpen:i,panelClose:o,panelToggle:r,popupOpen:l,popupClose:f,actionsOpen:c,actionsClose:u,popoverOpen:d,popoverClose:m,loginScreenOpen:h,loginScreenClose:p,sheetOpen:b,sheetClose:g,sortableEnable:v,sortableDisable:_,sortableToggle:k,cardOpen:E,cardClose:S}=t;return{"data-searchbar":at(e)&&e||at(n)&&n||at(s)&&s||at(a)&&a||void 0,"data-panel":at(i)&&i||at(o)&&o||at(r)&&r||void 0,"data-popup":at(l)&&l||at(f)&&f||void 0,"data-actions":at(c)&&c||at(u)&&u||void 0,"data-popover":at(d)&&d||at(m)&&m||void 0,"data-sheet":at(b)&&b||at(g)&&g||void 0,"data-login-screen":at(h)&&h||at(p)&&p||void 0,"data-sortable":at(v)&&v||at(_)&&_||at(k)&&k||void 0,"data-card":at(E)&&E||at(S)&&S||void 0}}function ya(t){const{searchbarEnable:e,searchbarDisable:n,searchbarClear:s,searchbarToggle:a,panelOpen:i,panelClose:o,panelToggle:r,popupOpen:l,popupClose:f,actionsClose:c,actionsOpen:u,popoverOpen:d,popoverClose:m,loginScreenOpen:h,loginScreenClose:p,sheetOpen:b,sheetClose:g,sortableEnable:v,sortableDisable:_,sortableToggle:k,cardOpen:E,cardPreventOpen:S,cardClose:I}=t;return{"searchbar-enable":e||e==="","searchbar-disable":n||n==="","searchbar-clear":s||s==="","searchbar-toggle":a||a==="","panel-close":o||o==="","panel-open":i||i==="","panel-toggle":r||r==="","popup-close":f||f==="","popup-open":l||l==="","actions-close":c||c==="","actions-open":u||u==="","popover-close":m||m==="","popover-open":d||d==="","sheet-close":g||g==="","sheet-open":b||b==="","login-screen-close":p||p==="","login-screen-open":h||h==="","sortable-enable":v||v==="","sortable-disable":_||_==="","sortable-toggle":k||k==="","card-close":I||I==="","card-open":E||E==="","card-prevent-open":S||S===""}}const Kp=["color","colorTheme","textColor","bgColor","borderColor","rippleColor","dark","force","reloadCurrent","reloadPrevious","reloadAll","reloadDetail","animate","ignoreCache","routeTabId","view","transition","openIn","back","linkBack","external","preventRouter","searchbarEnable","searchbarDisable","searchbarClear","searchbarToggle","panelOpen","panelClose","panelToggle","popupOpen","popupClose","actionsOpen","actionsClose","popoverOpen","popoverClose","loginScreenOpen","loginScreenClose","sheetOpen","sheetClose","sortableEnable","sortableDisable","sortableToggle","cardOpen","cardClose"];function Re(t){t===void 0&&(t={});const e={};return Object.keys(t).filter(n=>!Kp.includes(n)).forEach(n=>{n.indexOf("on")!==0&&(e[n]=t[n])}),e}const rs=function(t){let{isOpened:e,isClosing:n}=t===void 0?{}:t;return{"modal-in":e&&!n,"modal-out":n}},Zp=t=>({popup:t[0]&4}),Ja=t=>({popup:t[2]});function Jp(t){let e,n;const s=t[19].default,a=U(s,t,t[18],Ja);let i=[{class:t[3]},{style:t[0]},Re(t[4])],o={};for(let r=0;r{const H={el:S,on:{swipeStart:y,swipeMove:w,swipeEnd:D,swipeClose:O,open:L,opened:j,close:W,closed:Y}};typeof b<"u"&&(H.closeByBackdropClick=b),typeof g<"u"&&(H.closeOnEscape=g),typeof m<"u"&&(H.animate=m),typeof h<"u"&&(H.backdrop=h),typeof p<"u"&&(H.backdropEl=p),typeof v<"u"&&(H.swipeToClose=v),typeof _<"u"&&(H.swipeHandler=_),typeof E<"u"&&(H.containerEl=E),bt(()=>{n(2,I=J.f7.popup.create(H)),d&&I.open(!1,!0)})}),kt(()=>{I&&I.destroy(),n(2,I=null)});function X(H){$e[H?"unshift":"push"](()=>{S=H,n(1,S)})}return t.$$set=H=>{n(33,e=Ee(Ee({},e),Be(H))),n(4,i=De(e,a)),"class"in H&&n(6,f=H.class),"style"in H&&n(0,c=H.style),"tabletFullscreen"in H&&n(7,u=H.tabletFullscreen),"opened"in H&&n(5,d=H.opened),"animate"in H&&n(8,m=H.animate),"backdrop"in H&&n(9,h=H.backdrop),"backdropEl"in H&&n(10,p=H.backdropEl),"closeByBackdropClick"in H&&n(11,b=H.closeByBackdropClick),"closeOnEscape"in H&&n(12,g=H.closeOnEscape),"swipeToClose"in H&&n(13,v=H.swipeToClose),"swipeHandler"in H&&n(14,_=H.swipeHandler),"push"in H&&n(15,k=H.push),"containerEl"in H&&n(16,E=H.containerEl),"$$scope"in H&&n(18,r=H.$$scope)},t.$$.update=()=>{n(3,s=Je(f,"popup",{"popup-tablet-fullscreen":u,"popup-push":k},rs(T),tt(e))),t.$$.dirty[0]&32&&q(d)},e=Be(e),[c,S,I,s,i,d,f,u,m,h,p,b,g,v,_,k,E,A,r,o,X]}let tm=class extends We{constructor(e){super(),je(this,e,em,Jp,Xe,{class:6,style:0,tabletFullscreen:7,opened:5,animate:8,backdrop:9,backdropEl:10,closeByBackdropClick:11,closeOnEscape:12,swipeToClose:13,swipeHandler:14,push:15,containerEl:16,instance:17},null,[-1,-1])}get instance(){return this.$$.ctx[17]}};const nm=(t,e)=>{let n;const{initialUrl:s}=t.getInitialUrl(),a=t.findMatchingRoute(s);let i={};a&&a.route&&a.route.options&&(i=a.route.options.props);const o=r=>r.master===!0?!0:typeof r.master=="function"?r.master(t.app):!1;return a&&a.route&&(a.route.component||a.route.asyncComponent)&&!o(a.route)&&(n={component:a.route.component||a.route.asyncComponent,initialComponent:e,id:hs(),isAsync:!!a.route.asyncComponent,props:{f7route:a,f7router:t,...a.params,...i}}),{initialPage:n,initialRoute:a}},Is=(t,e)=>{const n=o=>{t()===o&&e("tabShow",[o])},s=o=>{t()===o&&e("tabHide",[o])},a=()=>{t()&&bt(()=>{yt.on("tabShow",n),yt.on("tabHide",s)})},i=()=>{yt&&(yt.off("tabShow",n),yt.off("tabHide",s))};gt(()=>{a()}),kt(()=>{i()})};function sm(t){let e;const n=t[3].default,s=U(n,t,t[2],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,[i]){s&&s.p&&(!e||i&4)&&x(s,n,a,a[2],e?Q(n,a[2],i,null):$(a[2]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function am(t,e,n){let{$$slots:s={},$$scope:a}=e,{route:i=void 0}=e,{router:o=void 0}=e;return Ld("RouterContext",{route:i,router:o}),t.$$set=r=>{"route"in r&&n(0,i=r.route),"router"in r&&n(1,o=r.router),"$$scope"in r&&n(2,a=r.$$scope)},[i,o,a,s]}class im extends We{constructor(e){super(),je(this,e,am,sm,Xe,{route:0,router:1})}}function ei(t,e,n){const s=t.slice();return s[31]=e[n],s}const rm=t=>({view:t[0]&8}),ti=t=>({view:t[3]});function lm(t){let e,n,s;const a=[t[31].props];var i=t[31].component;function o(r){let l={};for(let f=0;f{_e(c,1)}),oe()}i?(e=_s(i,o()),be(e.$$.fragment),C(e.$$.fragment,1),ve(e,n.parentNode,n)):e=null}else i&&e.$set(f)},i(r){s||(e&&C(e.$$.fragment,r),s=!0)},o(r){e&&M(e.$$.fragment,r),s=!1},d(r){r&&F(n),e&&_e(e,r)}}}function ni(t,e){let n,s,a;return s=new im({props:{route:e[31].props.f7route,router:e[31].props.f7router,$$slots:{default:[lm]},$$scope:{ctx:e}}}),{key:t,first:null,c(){n=Ze(),be(s.$$.fragment),this.first=n},m(i,o){z(i,n,o),ve(s,i,o),a=!0},p(i,o){e=i;const r={};o[0]&16&&(r.route=e[31].props.f7route),o[0]&16&&(r.router=e[31].props.f7router),o[0]&4112&&(r.$$scope={dirty:o,ctx:e}),s.$set(r)},i(i){a||(C(s.$$.fragment,i),a=!0)},o(i){M(s.$$.fragment,i),a=!1},d(i){i&&F(n),_e(s,i)}}}function om(t){let e,n,s=[],a=new Map,i;const o=t[10].default,r=U(o,t,t[12],ti);let l=Lt(t[4]);const f=c=>c[31].id;for(let c=0;ck,u),gt(()=>{bt(()=>{if(S)E.el=k,E.pages=A,E.setPages=Y=>{ia().then(()=>{n(4,A=Y)})},v&&v.isAsync&&!v.initialComponent?v.component().then(()=>{setTimeout(()=>{S.init(k),v&&(v.el=S.router.currentPageEl,_&&_.route&&_.route.keepAlive&&(_.route.keepAliveData={pageEl:v.el}))},100)}):(S.init(k),v&&(v.el=S.router.currentPageEl,_&&_.route&&_.route.keepAlive&&(_.route.keepAliveData={pageEl:v.el})));else{const Y=$a();E={el:k,routerId:Y,pages:A,instance:S,setPages(B){ia().then(()=>{n(4,A=B)})}},J.f7routers.views.push(E),E.instance=J.f7.views.create(k,{routerId:Y,...es(e),browserHistoryInitialMatch:p,on:{init:T}}),n(3,S=E.instance)}l&&(S.on("resize",y),S.on("swipebackMove",w),S.on("swipebackBeforeChange",D),S.on("swipebackAfterChange",O),S.on("swipebackBeforeReset",L),S.on("swipebackAfterReset",j))})}),zn(()=>{E&&J.f7events.emit("viewRouterDidUpdate",E)}),kt(()=>{S&&(S.off("resize",y),S.off("swipebackMove",w),S.off("swipebackBeforeChange",D),S.off("swipebackAfterChange",O),S.off("swipebackBeforeReset",L),S.off("swipebackAfterReset",j),S.destroy&&S.destroy(),n(3,S=null)),J.f7routers.views.splice(J.f7routers.views.indexOf(E),1),E=null});function W(Y){$e[Y?"unshift":"push"](()=>{k=Y,n(2,k)})}return t.$$set=Y=>{n(30,e=Ee(Ee({},e),Be(Y))),"id"in Y&&n(0,o=Y.id),"style"in Y&&n(1,r=Y.style),"init"in Y&&n(6,l=Y.init),"url"in Y&&n(7,f=Y.url),"class"in Y&&n(8,c=Y.class),"$$scope"in Y&&n(12,i=Y.$$scope)},t.$$.update=()=>{n(5,s=Je(c,"view",{"view-main":d,"tab-active":h,tab:m},tt(e)))},e=Be(e),[o,r,k,S,A,s,l,f,c,I,a,W,i]}let Nn=class extends We{constructor(e){super(),je(this,e,fm,om,Xe,{id:0,style:1,init:6,url:7,class:8,instance:9},null,[-1,-1])}get instance(){return this.$$.ctx[9]}};const cm=t=>({loginScreen:t&4}),si=t=>({loginScreen:t[2]});function um(t){let e,n;const s=t[11].default,a=U(s,t,t[10],si);let i=[{class:t[3]},{style:t[0]},Re(t[4])],o={};for(let r=0;r{const A={el:h,on:{open:v,opened:_,close:k,closed:E}};typeof d<"u"&&(A.animate=d),typeof m<"u"&&(A.containerEl=d),bt(()=>{n(2,p=J.f7.loginScreen.create(A)),u&&p.open(!1)})}),kt(()=>{p&&p.destroy(),n(2,p=null)});function T(A){$e[A?"unshift":"push"](()=>{h=A,n(1,h)})}return t.$$set=A=>{n(21,e=Ee(Ee({},e),Be(A))),n(4,i=De(e,a)),"class"in A&&n(6,f=A.class),"style"in A&&n(0,c=A.style),"opened"in A&&n(5,u=A.opened),"animate"in A&&n(7,d=A.animate),"containerEl"in A&&n(8,m=A.containerEl),"$$scope"in A&&n(10,r=A.$$scope)},t.$$.update=()=>{n(3,s=Je(f,"login-screen",rs(b),tt(e))),t.$$.dirty&32&&I(u)},e=Be(e),[c,h,p,s,i,u,f,d,m,g,r,o,T]}class pm extends We{constructor(e){super(),je(this,e,dm,um,Xe,{class:6,style:0,opened:5,animate:7,containerEl:8,instance:9})}get instance(){return this.$$.ctx[9]}}const mm=t=>({sheet:t[0]&8}),ai=t=>({sheet:t[3]}),hm=t=>({sheet:t[0]&8}),ii=t=>({sheet:t[3]}),gm=t=>({sheet:t[0]&8}),ri=t=>({sheet:t[3]});function bm(t){let e,n,s,a,i;const o=t[26].fixed,r=U(o,t,t[25],ri),l=t[26].default,f=U(l,t,t[25],ii),c=t[26].static,u=U(c,t,t[25],ai);let d=[{class:t[4]},{style:t[0]},Re(t[5])],m={};for(let h=0;h{const K={el:w,on:{open:W,opened:Y,close:B,closed:q,stepOpen:H,stepClose:G,stepProgress:X,_swipeStep(pe){n(23,L.swipeStep=pe,L)}}};typeof g<"u"&&(K.backdrop=g),typeof m<"u"&&(K.animate=m),typeof v<"u"&&(K.backdropEl=v),typeof _<"u"&&(K.closeByBackdropClick=_),typeof k<"u"&&(K.closeByOutsideClick=k),typeof E<"u"&&(K.closeOnEscape=E),typeof I<"u"&&(K.swipeToClose=I),typeof T<"u"&&(K.swipeToStep=T),typeof A<"u"&&(K.swipeHandler=A),typeof y<"u"&&(K.containerEl=y),bt(()=>{if(w&&D){const pe=J.f7.$,ke=pe(D).children(".navbar, .toolbar, .tabbar, .searchbar");ke.length&&pe(w).prepend(ke)}n(3,O=J.f7.sheet.create(K)),d&&O.open(!1)})}),kt(()=>{O&&O.destroy(),n(3,O=null)});function ne(K){$e[K?"unshift":"push"](()=>{D=K,n(2,D)})}function me(K){$e[K?"unshift":"push"](()=>{w=K,n(1,w)})}return t.$$set=K=>{n(39,e=Ee(Ee({},e),Be(K))),n(5,o=De(e,i)),"class"in K&&n(7,c=K.class),"style"in K&&n(0,u=K.style),"opened"in K&&n(6,d=K.opened),"animate"in K&&n(8,m=K.animate),"top"in K&&n(9,h=K.top),"bottom"in K&&n(10,p=K.bottom),"position"in K&&n(11,b=K.position),"backdrop"in K&&n(12,g=K.backdrop),"backdropEl"in K&&n(13,v=K.backdropEl),"closeByBackdropClick"in K&&n(14,_=K.closeByBackdropClick),"closeByOutsideClick"in K&&n(15,k=K.closeByOutsideClick),"closeOnEscape"in K&&n(16,E=K.closeOnEscape),"push"in K&&n(17,S=K.push),"swipeToClose"in K&&n(18,I=K.swipeToClose),"swipeToStep"in K&&n(19,T=K.swipeToStep),"swipeHandler"in K&&n(20,A=K.swipeHandler),"containerEl"in K&&n(21,y=K.containerEl),"$$scope"in K&&n(25,l=K.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&3584&&n(24,s=(()=>b||(h?"top":"bottom"))()),n(4,a=Je(c,"sheet-modal",`sheet-modal-${s}`,{"sheet-modal-push":S,"modal-in-swipe-step":L.swipeStep},rs(L),tt(e))),t.$$.dirty[0]&64&&ye(d)},e=Be(e),[u,w,D,O,a,o,d,c,m,h,p,b,g,v,_,k,E,S,I,T,A,y,j,L,s,l,r,ne,me]}let _m=class extends We{constructor(e){super(),je(this,e,vm,bm,Xe,{class:7,style:0,opened:6,animate:8,top:9,bottom:10,position:11,backdrop:12,backdropEl:13,closeByBackdropClick:14,closeByOutsideClick:15,closeOnEscape:16,push:17,swipeToClose:18,swipeToStep:19,swipeHandler:20,containerEl:21,instance:22},null,[-1,-1])}get instance(){return this.$$.ctx[22]}};const km=t=>({popover:t&8}),li=t=>({popover:t[3]});function oi(t){let e;return{c(){e=Z("div"),se(e,"class","popover-arrow")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function Em(t){let e,n,s,a,i=t[1]!==!1&&oi();const o=t[19].default,r=U(o,t,t[18],li);let l=[{class:t[4]},{style:t[0]},Re(t[5])],f={};for(let c=0;c{const Y={el:S,on:{open:y,opened:w,close:D,closed:O}};m&&(Y.targetEl=m),typeof d<"u"&&(Y.animate=d),typeof g<"u"&&(Y.closeByBackdropClick=g),typeof v<"u"&&(Y.closeByOutsideClick=v),typeof _<"u"&&(Y.closeOnEscape=_),typeof h<"u"&&(Y.arrow=h),typeof p<"u"&&(Y.backdrop=p),typeof b<"u"&&(Y.backdropEl=b),typeof k<"u"&&(Y.containerEl=k),typeof E<"u"&&(Y.verticalPosition=E),bt(()=>{n(3,I=J.f7.popover.create(Y)),u&&I.open(m,!1)})}),kt(()=>{I&&I.destroy(),n(3,I=null)});function W(Y){$e[Y?"unshift":"push"](()=>{S=Y,n(2,S)})}return t.$$set=Y=>{n(29,e=Ee(Ee({},e),Be(Y))),n(5,i=De(e,a)),"class"in Y&&n(7,f=Y.class),"style"in Y&&n(0,c=Y.style),"opened"in Y&&n(6,u=Y.opened),"animate"in Y&&n(8,d=Y.animate),"targetEl"in Y&&n(9,m=Y.targetEl),"arrow"in Y&&n(1,h=Y.arrow),"backdrop"in Y&&n(10,p=Y.backdrop),"backdropEl"in Y&&n(11,b=Y.backdropEl),"closeByBackdropClick"in Y&&n(12,g=Y.closeByBackdropClick),"closeByOutsideClick"in Y&&n(13,v=Y.closeByOutsideClick),"closeOnEscape"in Y&&n(14,_=Y.closeOnEscape),"containerEl"in Y&&n(15,k=Y.containerEl),"verticalPosition"in Y&&n(16,E=Y.verticalPosition),"$$scope"in Y&&n(18,r=Y.$$scope)},t.$$.update=()=>{n(4,s=Je(f,"popover",rs(T),tt(e))),t.$$.dirty&64&&j(u)},e=Be(e),[c,h,S,I,s,i,u,f,d,m,p,b,g,v,_,k,E,A,r,o,W]}let ym=class extends We{constructor(e){super(),je(this,e,Cm,Em,Xe,{class:7,style:0,opened:6,animate:8,targetEl:9,arrow:1,backdrop:10,backdropEl:11,closeByBackdropClick:12,closeByOutsideClick:13,closeOnEscape:14,containerEl:15,verticalPosition:16,instance:17})}get instance(){return this.$$.ctx[17]}};const wm=t=>({panel:t[0]&8}),fi=t=>({panel:t[3]});function ci(t){let e;return{c(){e=Z("div"),se(e,"class","panel-resize-handler")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function Sm(t){let e,n,s;const a=t[31].default,i=U(a,t,t[30],fi);let o=t[0]&&ci(),r=[{class:t[4]},{"data-f7-slot":t[1]},Re(t[5])],l={};for(let f=0;f{bt(()=>{const ee=J.f7.$;ee(".panel-backdrop").length===0&&ee('
').insertBefore(B);const Fe=es({el:B,resizable:E,backdrop:S,backdropEl:I,containerEl:T,closeByBackdropClick:A,visibleBreakpoint:y,collapsedBreakpoint:w,swipe:D,swipeNoFollow:O,swipeOnlyClose:L,swipeActiveArea:j,swipeThreshold:W,on:{open:pe,opened:ke,close:he,closed:re,backdropClick:Ce,swipe:Pe,swipeOpen:Ve,collapsedBreakpoint:He,breakpoint:Me,resize:ze}});n(3,q=J.f7.panel.create(Fe)),k&&q.open(!1)})}),kt(()=>{q&&q.destroy&&q.destroy(),n(3,q=null)});function fe(ee){$e[ee?"unshift":"push"](()=>{B=ee,n(2,B)})}return t.$$set=ee=>{n(51,e=Ee(Ee({},e),Be(ee))),n(5,r=De(e,o)),"class"in ee&&n(7,u=ee.class),"side"in ee&&n(8,d=ee.side),"effect"in ee&&n(9,m=ee.effect),"cover"in ee&&n(10,h=ee.cover),"reveal"in ee&&n(11,p=ee.reveal),"push"in ee&&n(12,b=ee.push),"floating"in ee&&n(13,g=ee.floating),"left"in ee&&n(14,v=ee.left),"right"in ee&&n(15,_=ee.right),"opened"in ee&&n(6,k=ee.opened),"resizable"in ee&&n(0,E=ee.resizable),"backdrop"in ee&&n(16,S=ee.backdrop),"backdropEl"in ee&&n(17,I=ee.backdropEl),"containerEl"in ee&&n(18,T=ee.containerEl),"closeByBackdropClick"in ee&&n(19,A=ee.closeByBackdropClick),"visibleBreakpoint"in ee&&n(20,y=ee.visibleBreakpoint),"collapsedBreakpoint"in ee&&n(21,w=ee.collapsedBreakpoint),"swipe"in ee&&n(22,D=ee.swipe),"swipeNoFollow"in ee&&n(23,O=ee.swipeNoFollow),"swipeOnlyClose"in ee&&n(24,L=ee.swipeOnlyClose),"swipeActiveArea"in ee&&n(25,j=ee.swipeActiveArea),"swipeThreshold"in ee&&n(26,W=ee.swipeThreshold),"f7Slot"in ee&&n(1,Y=ee.f7Slot),"$$scope"in ee&&n(30,f=ee.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&49408&&n(29,s=d||(v?"left":_?"right":"left")),t.$$.dirty[0]&14848&&n(28,a=m||(p?"reveal":b?"push":g?"floating":"cover")),n(4,i=Je(u,"panel",{"panel-in":X.isOpened&&!X.isClosing&&!X.isBreakpoint,"panel-in-breakpoint":X.isBreakpoint,"panel-in-collapsed":X.isCollapsed,"panel-resizable":E,[`panel-${s}`]:s,[`panel-${a}`]:a},tt(e))),t.$$.dirty[0]&1&&ye(E),t.$$.dirty[0]&64&&K(k)},e=Be(e),[E,Y,B,q,i,r,k,u,d,m,h,p,b,g,v,_,S,I,T,A,y,w,D,O,L,j,W,H,a,s,f,l,fe]}let Mm=class extends We{constructor(e){super(),je(this,e,Tm,Sm,Xe,{class:7,side:8,effect:9,cover:10,reveal:11,push:12,floating:13,left:14,right:15,opened:6,resizable:0,backdrop:16,backdropEl:17,containerEl:18,closeByBackdropClick:19,visibleBreakpoint:20,collapsedBreakpoint:21,swipe:22,swipeNoFollow:23,swipeOnlyClose:24,swipeActiveArea:25,swipeThreshold:26,f7Slot:1,instance:27},null,[-1,-1])}get instance(){return this.$$.ctx[27]}};function ui(t){let e,n;return e=new tm({props:{className:"popup-router-open-in","data-url":t[1],$$slots:{default:[Pm]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&2&&(i["data-url"]=s[1]),a&70&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Pm(t){let e,n;return e=new Nn({props:{linksView:t[2],url:t[1],ignoreOpenIn:!0}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&4&&(i.linksView=s[2]),a&2&&(i.url=s[1]),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function di(t){let e,n;return e=new pm({props:{className:"login-screen-router-open-in","data-url":t[1],$$slots:{default:[Im]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&2&&(i["data-url"]=s[1]),a&70&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Im(t){let e,n;return e=new Nn({props:{linksView:t[2],url:t[1],ignoreOpenIn:!0}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&4&&(i.linksView=s[2]),a&2&&(i.url=s[1]),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function pi(t){let e,n;return e=new _m({props:{className:"sheet-modal-router-open-in","data-url":t[1],$$slots:{default:[Am]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&2&&(i["data-url"]=s[1]),a&70&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Am(t){let e,n;return e=new Nn({props:{linksView:t[2],url:t[1],ignoreOpenIn:!0}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&4&&(i.linksView=s[2]),a&2&&(i.url=s[1]),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function mi(t){let e,n;return e=new ym({props:{className:"popover-router-open-in",targetEl:t[3],"data-url":t[1],$$slots:{default:[Om]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&8&&(i.targetEl=s[3]),a&2&&(i["data-url"]=s[1]),a&70&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Om(t){let e,n;return e=new Nn({props:{linksView:t[2],url:t[1],ignoreOpenIn:!0}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&4&&(i.linksView=s[2]),a&2&&(i.url=s[1]),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function hi(t){let e,n;return e=new Mm({props:{side:t[4],effect:t[5],className:"panel-router-open-in","data-url":t[1],$$slots:{default:[Bm]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&16&&(i.side=s[4]),a&32&&(i.effect=s[5]),a&2&&(i["data-url"]=s[1]),a&70&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Bm(t){let e,n;return e=new Nn({props:{linksView:t[2],url:t[1],ignoreOpenIn:!0}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&4&&(i.linksView=s[2]),a&2&&(i.url=s[1]),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Lm(t){let e,n,s,a,i=t[0].indexOf("panel")===0,o,r,l=t[0]==="popup"&&ui(t),f=t[0]==="loginScreen"&&di(t),c=t[0]==="sheet"&&pi(t),u=t[0]==="popover"&&mi(t),d=i&&hi(t);return{c(){l&&l.c(),e=V(),f&&f.c(),n=V(),c&&c.c(),s=V(),u&&u.c(),a=V(),d&&d.c(),o=Ze()},m(m,h){l&&l.m(m,h),z(m,e,h),f&&f.m(m,h),z(m,n,h),c&&c.m(m,h),z(m,s,h),u&&u.m(m,h),z(m,a,h),d&&d.m(m,h),z(m,o,h),r=!0},p(m,[h]){m[0]==="popup"?l?(l.p(m,h),h&1&&C(l,1)):(l=ui(m),l.c(),C(l,1),l.m(e.parentNode,e)):l&&(le(),M(l,1,1,()=>{l=null}),oe()),m[0]==="loginScreen"?f?(f.p(m,h),h&1&&C(f,1)):(f=di(m),f.c(),C(f,1),f.m(n.parentNode,n)):f&&(le(),M(f,1,1,()=>{f=null}),oe()),m[0]==="sheet"?c?(c.p(m,h),h&1&&C(c,1)):(c=pi(m),c.c(),C(c,1),c.m(s.parentNode,s)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),m[0]==="popover"?u?(u.p(m,h),h&1&&C(u,1)):(u=mi(m),u.c(),C(u,1),u.m(a.parentNode,a)):u&&(le(),M(u,1,1,()=>{u=null}),oe()),h&1&&(i=m[0].indexOf("panel")===0),i?d?(d.p(m,h),h&1&&C(d,1)):(d=hi(m),d.c(),C(d,1),d.m(o.parentNode,o)):d&&(le(),M(d,1,1,()=>{d=null}),oe())},i(m){r||(C(l),C(f),C(c),C(u),C(d),r=!0)},o(m){M(l),M(f),M(c),M(u),M(d),r=!1},d(m){m&&(F(e),F(n),F(s),F(a),F(o)),l&&l.d(m),f&&f.d(m),c&&c.d(m),u&&u.d(m),d&&d.d(m)}}}function Dm(t,e,n){let{openIn:s}=e,{url:a}=e,{viewSelector:i}=e,{targetEl:o}=e,{side:r}=e,{effect:l}=e;return t.$$set=f=>{"openIn"in f&&n(0,s=f.openIn),"url"in f&&n(1,a=f.url),"viewSelector"in f&&n(2,i=f.viewSelector),"targetEl"in f&&n(3,o=f.targetEl),"side"in f&&n(4,r=f.side),"effect"in f&&n(5,l=f.effect)},[s,a,i,o,r,l]}class Rm extends We{constructor(e){super(),je(this,e,Dm,Lm,Xe,{openIn:0,url:1,viewSelector:2,targetEl:3,side:4,effect:5})}}const Hm=(t,e,n)=>{const s={url:e,route:{path:e,options:{...n,openIn:void 0,props:{...n.props||{},url:e,openIn:n.openIn,viewSelector:t.view.selector}}}},a={...n};if(a.component=Rm,n.openIn==="popup"&&(s.route.popup=a),n.openIn==="loginScreen"&&(s.route.loginScreen=a),n.openIn==="sheet"&&(s.route.sheet=a),n.openIn==="popover"&&(a.targetEl=n.clickedEl||n.targetEl,s.route.popover=a,s.route.options.props.targetEl=a.targetEl),n.openIn.indexOf("panel")>=0){const i=n.openIn.split(":");s.route.options.props.side=i[1]||"left",s.route.options.props.effect=i[2]||"cover",s.route.panel=a}return t.navigate(s)},gi=t=>{const e=[];for(let n=0;nt.length!==e.length?!1:new Set([...t,...e]).size===t.length,Fm={proto:{openIn(t,e,n){return Hm(t,e,n)},pageComponentLoader(t){let{routerEl:e,component:n,options:s,resolve:a,reject:i}=t;const o=this,r=o.id,l=e;let f;if(J.f7routers.views.forEach(h=>{(h.el&&h.el===e||h.routerId&&h.routerId===r)&&(f=h)}),!f){i();return}const c={component:n,id:hs(),props:kn({f7route:s.route,f7router:o},s.route.params,s.props||{})};let u;const d=gi(l);function m(h){if(h!==f||u)return;const p=gi(l);if(zm(d,p))return;J.f7events.off("viewRouterDidUpdate",m);const b=l.children[l.children.length-1];c.el=b,a(b),u=!0}J.f7events.on("viewRouterDidUpdate",m),f.pages.push(c),f.setPages(f.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 s;J.f7routers.views.forEach(o=>{o.el&&o.el===e.el&&(s=o)});let a;if("length"in t){if(t.length===0)return;a=t[0]}else a=t;if(!a)return;let i;s.pages.forEach((o,r)=>{o.el===a&&(i=!0,s.pages.splice(r,1),s.setPages(s.pages))}),i||a.parentNode.removeChild(a)},tabComponentLoader(t){let{tabEl:e,component:n,options:s,resolve:a,reject:i}=t===void 0?{}:t;const o=this;e||i();let r;if(J.f7routers.tabs.forEach(d=>{d.el&&d.el===e&&(r=d)}),!r){i();return}const f={id:hs(),component:n,props:kn({f7route:s.route,f7router:o},s.route.route&&s.route.route.tab&&s.route.route.tab.options&&s.route.route.tab.options.props||{},s.route.params,s.props||{})};let c;function u(d){if(d!==r||c)return;J.f7events.off("tabRouterDidUpdate",u);const m=e.children[0];a(m),c=!0}J.f7events.on("tabRouterDidUpdate",u),r.setTabContent(f)},removeTabContent(t){if(!t)return;let e;if(J.f7routers.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:s,reject:a}=t===void 0?{}:t;const i=this,o=J.f7routers.modals;if(!o){a();return}const r={component:e,id:hs(),props:kn({f7route:n.route,f7router:i},n.route.params,n.props||{})};let l;function f(){if(l)return;J.f7events.off("modalsRouterDidUpdate",f);const c=o.el.children[o.el.children.length-1];r.el=c,s(c),l=!0}J.f7events.on("modalsRouterDidUpdate",f),o.modals.push(r),o.setModals(o.modals)},removeModal(t){const e=J.f7routers.modals;if(!e)return;let n;e.modals.forEach(s=>{s.el===t&&(n=s)}),e.modals.splice(e.modals.indexOf(n),1),e.setModals(e.modals)}}},la={name:"sveltePlugin",installed:!1,install(t){t===void 0&&(t={});const e=this;if(J.Framework7=e,la.installed)return;la.installed=!0,Rp();const{theme:n,userAgent:s}=t;if(n==="md"&&(J.theme.md=!0),n==="ios"&&(J.theme.md=!0),(typeof window>"u"?!!s:!0)&&(!n||n==="auto")){const i=e.getDevice({userAgent:s},!0);J.theme.ios=!!i.ios,J.theme.ios,J.theme.md=!J.theme.ios,J.theme.md}bt(()=>{Hp()}),e.Router.use(Fm)}},Nm=t=>({}),bi=t=>({});function vi(t){let e,n;const s=t[9].media,a=U(s,t,t[8],bi);return{c(){e=Z("div"),a&&a.c(),se(e,"class","actions-button-media")},m(i,o){z(i,e,o),a&&a.m(e,null),n=!0},p(i,o){a&&a.p&&(!n||o&256)&&x(a,s,i,i[8],n?Q(s,i[8],o,Nm):$(i[8]),bi)},i(i){n||(C(a,i),n=!0)},o(i){M(a,i),n=!1},d(i){i&&F(e),a&&a.d(i)}}}function Vm(t){let e,n,s,a,i,o,r=t[2]&&vi(t);const l=t[9].default,f=U(l,t,t[8],null);let c=[{class:t[1]},Re(t[4])],u={};for(let d=0;d{r=null}),oe()),f&&f.p&&(!a||m&256)&&x(f,l,d,d[8],a?Q(l,d[8],m,null):$(d[8]),null),Ae(e,u=Ge(c,[(!a||m&2)&&{class:d[1]},m&16&&Re(d[4])]))},i(d){a||(C(r),C(f,d),a=!0)},o(d){M(r),M(f,d),a=!1},d(d){d&&F(e),r&&r.d(),f&&f.d(d),t[10](null),i=!1,o()}}}function Ym(t,e,n){let s,a;const i=["class","strong","close"];let o=De(e,i),{$$slots:r={},$$scope:l}=e;const f=Fn(r),c=pt(mt,e);let{class:u=void 0}=e,{strong:d=!1}=e,{close:m=!0}=e,h;function p(){if(m&&J.f7){const g=J.f7.$;J.f7.actions.close(g(h).parents(".actions-modal"))}c("click")}function b(g){$e[g?"unshift":"push"](()=>{h=g,n(0,h)})}return t.$$set=g=>{n(12,e=Ee(Ee({},e),Be(g))),n(4,o=De(e,i)),"class"in g&&n(5,u=g.class),"strong"in g&&n(6,d=g.strong),"close"in g&&n(7,m=g.close),"$$scope"in g&&n(8,l=g.$$scope)},t.$$.update=()=>{n(1,a=Je(u,{"actions-button":!0,"actions-button-strong":d},tt(e)))},n(2,s=f.media),e=Be(e),[h,a,s,p,o,u,d,m,l,r,b]}class Ns extends We{constructor(e){super(),je(this,e,Ym,Vm,Xe,{class:5,strong:6,close:7})}}function qm(t){let e,n;const s=t[4].default,a=U(s,t,t[3],null);let i=[{class:t[0]},Re(t[1])],o={};for(let r=0;r{n(5,e=Ee(Ee({},e),Be(f))),n(1,i=De(e,a)),"class"in f&&n(2,l=f.class),"$$scope"in f&&n(3,r=f.$$scope)},t.$$.update=()=>{n(0,s=Je(l,"actions-group",tt(e)))},e=Be(e),[s,i,l,r,o]}class jm extends We{constructor(e){super(),je(this,e,Wm,qm,Xe,{class:2})}}function Xm(t){let e,n,s,a;const i=t[6].default,o=U(i,t,t[5],null);let r=[{class:t[0]},Re(t[2])],l={};for(let f=0;f{n(8,e=Ee(Ee({},e),Be(d))),n(2,i=De(e,a)),"class"in d&&n(3,f=d.class),"strong"in d&&n(4,c=d.strong),"$$scope"in d&&n(5,r=d.$$scope)},t.$$.update=()=>{n(0,s=Je(f,"actions-label",{"actions-button-strong":c},tt(e)))},e=Be(e),[s,u,i,f,c,r,o]}class Um extends We{constructor(e){super(),je(this,e,Gm,Xm,Xe,{class:3,strong:4})}}const xm=t=>({actions:t&4}),_i=t=>({actions:t[2]});function $m(t){let e,n;const s=t[20].default,a=U(s,t,t[19],_i);let i=[{class:t[3]},{style:t[0]},Re(t[4])],o={};for(let r=0;r{const B={el:I,on:{open:w,opened:D,close:O,closed:L}};b&&(B.targetEl=b),typeof h<"u"&&(B.convertToPopover=h),typeof p<"u"&&(B.forceToPopover=p),typeof g<"u"&&(B.backdrop=g),typeof v<"u"&&(B.backdropEl=v),typeof _<"u"&&(B.closeByBackdropClick=_),typeof k<"u"&&(B.closeByOutsideClick=k),typeof E<"u"&&(B.closeOnEscape=E),typeof d<"u"&&(B.animate=d),typeof S<"u"&&(B.containerEl=S),bt(()=>{n(2,T=J.f7.actions.create(B)),u&&T.open(!1)})}),kt(()=>{T&&T.destroy(),n(2,T=null)});function Y(B){$e[B?"unshift":"push"](()=>{I=B,n(1,I)})}return t.$$set=B=>{n(30,e=Ee(Ee({},e),Be(B))),n(4,i=De(e,a)),"class"in B&&n(6,f=B.class),"style"in B&&n(0,c=B.style),"opened"in B&&n(5,u=B.opened),"animate"in B&&n(7,d=B.animate),"grid"in B&&n(8,m=B.grid),"convertToPopover"in B&&n(9,h=B.convertToPopover),"forceToPopover"in B&&n(10,p=B.forceToPopover),"target"in B&&n(11,b=B.target),"backdrop"in B&&n(12,g=B.backdrop),"backdropEl"in B&&n(13,v=B.backdropEl),"closeByBackdropClick"in B&&n(14,_=B.closeByBackdropClick),"closeByOutsideClick"in B&&n(15,k=B.closeByOutsideClick),"closeOnEscape"in B&&n(16,E=B.closeOnEscape),"containerEl"in B&&n(17,S=B.containerEl),"$$scope"in B&&n(19,r=B.$$scope)},t.$$.update=()=>{n(3,s=Je(f,"actions-modal",{"actions-grid":m},rs(A),tt(e))),t.$$.dirty&32&&W(u)},e=Be(e),[c,I,T,s,i,u,f,d,m,h,p,b,g,v,_,k,E,S,y,r,o,Y]}let Km=class extends We{constructor(e){super(),je(this,e,Qm,$m,Xe,{class:6,style:0,opened:5,animate:7,grid:8,convertToPopover:9,forceToPopover:10,target:11,backdrop:12,backdropEl:13,closeByBackdropClick:14,closeByOutsideClick:15,closeOnEscape:16,containerEl:17,instance:18})}get instance(){return this.$$.ctx[18]}};function ki(t,e,n){const s=t.slice();return s[5]=e[n],s}function Ei(t,e){let n,s,a,i;const o=[e[5].props];var r=e[5].component;function l(f){let c={};for(let u=0;u{_e(d,1)}),oe()}r?(s=_s(r,l()),be(s.$$.fragment),C(s.$$.fragment,1),ve(s,a.parentNode,a)):s=null}else r&&s.$set(u)},i(f){i||(s&&C(s.$$.fragment,f),i=!0)},o(f){s&&M(s.$$.fragment,f),i=!1},d(f){f&&(F(n),F(a)),s&&_e(s,f)}}}function Zm(t){let e,n=[],s=new Map,a,i=Lt(t[0]);const o=r=>r[5].id;for(let r=0;r{i={el:a,modals:s,setModals(r){ia().then(()=>{n(0,s=r)})}},J.f7routers.modals=i}),zn(()=>{i&&J.f7events.emit("modalsRouterDidUpdate",i)}),kt(()=>{i&&(J.f7routers.modals=null,i=null)});function o(r){$e[r?"unshift":"push"](()=>{a=r,n(1,a)})}return[s,a,o]}class eh extends We{constructor(e){super(),je(this,e,Jm,Zm,Xe,{})}}function th(t){let e,n,s,a;const i=t[4].default,o=U(i,t,t[3],null);return s=new eh({}),{c(){e=Z("div"),o&&o.c(),n=V(),be(s.$$.fragment),se(e,"class",t[1])},m(r,l){z(r,e,l),o&&o.m(e,null),N(e,n),ve(s,e,null),t[5](e),a=!0},p(r,[l]){o&&o.p&&(!a||l&8)&&x(o,i,r,r[3],a?Q(i,r[3],l,null):$(r[3]),null),(!a||l&2)&&se(e,"class",r[1])},i(r){a||(C(o,r),C(s.$$.fragment,r),a=!0)},o(r){M(o,r),M(s.$$.fragment,r),a=!1},d(r){r&&F(e),o&&o.d(r),_e(s),t[5](null)}}}function nh(t,e,n){let s,{$$slots:a={},$$scope:i}=e,{class:o=void 0}=e,r;(!J.f7||typeof window>"u")&&Qa(r,es(e),!1),gt(()=>{const f=r.parentNode;if(f&&f!==document.body&&f.parentNode===document.body&&(f.style.height="100%"),J.f7){J.f7.init(r);return}Qa(r,es(e),!0)});function l(f){$e[f?"unshift":"push"](()=>{r=f,n(0,r)})}return t.$$set=f=>{n(6,e=Ee(Ee({},e),Be(f))),"class"in f&&n(2,o=f.class),"$$scope"in f&&n(3,i=f.$$scope)},t.$$.update=()=>{n(1,s=Je(o,"framework7-root",tt(e)))},e=Be(e),[r,s,o,i,a,l]}class sh extends We{constructor(e){super(),je(this,e,nh,th,Xe,{class:2})}}const bn=(t,e)=>{let n=null;const{tooltip:s,tooltipTrigger:a}=e;return t&&s&&bt(()=>{n=J.f7.tooltip.create({targetEl:t,text:s,trigger:a})}),{update(i){let{tooltip:o}=i===void 0?{}:i;if(!o&&n){n.destroy(),n=null;return}if(o&&!n&&J.f7){n=J.f7.tooltip.create({targetEl:t,text:o,trigger:a});return}!o||!n||n.setText(o)},destroy(){n&&n.destroy&&(n.destroy(),n=null)}}};function ah(t){let e,n,s,a,i;const o=t[6].default,r=U(o,t,t[5],null);let l=[{class:t[2]},Re(t[3])],f={};for(let c=0;c{n(7,e=Ee(Ee({},e),Be(u))),n(3,i=De(e,a)),"class"in u&&n(4,l=u.class),"tooltip"in u&&n(0,f=u.tooltip),"tooltipTrigger"in u&&n(1,c=u.tooltipTrigger),"$$scope"in u&&n(5,r=u.$$scope)},t.$$.update=()=>{n(2,s=Je(l,"badge",tt(e)))},e=Be(e),[f,c,s,i,l,r,o]}class zt extends We{constructor(e){super(),je(this,e,ih,ah,Xe,{class:4,tooltip:0,tooltipTrigger:1})}}function rh(t){let e,n;const s=t[34].default,a=U(s,t,t[33],null);let i=[{class:t[1]},Re(t[2])],o={};for(let r=0;rce,l);function ye(ne){$e[ne?"unshift":"push"](()=>{ce=ne,n(0,ce)})}return t.$$set=ne=>{n(37,e=Ee(Ee({},e),Be(ne))),n(2,i=De(e,a)),"inset"in ne&&n(3,f=ne.inset),"insetIos"in ne&&n(4,c=ne.insetIos),"insetMd"in ne&&n(5,u=ne.insetMd),"xsmallInset"in ne&&n(6,d=ne.xsmallInset),"xsmallInsetIos"in ne&&n(7,m=ne.xsmallInsetIos),"xsmallInsetMd"in ne&&n(8,h=ne.xsmallInsetMd),"smallInset"in ne&&n(9,p=ne.smallInset),"smallInsetIos"in ne&&n(10,b=ne.smallInsetIos),"smallInsetMd"in ne&&n(11,g=ne.smallInsetMd),"mediumInset"in ne&&n(12,v=ne.mediumInset),"mediumInsetIos"in ne&&n(13,_=ne.mediumInsetIos),"mediumInsetMd"in ne&&n(14,k=ne.mediumInsetMd),"largeInset"in ne&&n(15,E=ne.largeInset),"largeInsetIos"in ne&&n(16,S=ne.largeInsetIos),"largeInsetMd"in ne&&n(17,I=ne.largeInsetMd),"xlargeInset"in ne&&n(18,T=ne.xlargeInset),"xlargeInsetIos"in ne&&n(19,A=ne.xlargeInsetIos),"xlargeInsetMd"in ne&&n(20,y=ne.xlargeInsetMd),"strong"in ne&&n(21,w=ne.strong),"strongIos"in ne&&n(22,D=ne.strongIos),"strongMd"in ne&&n(23,O=ne.strongMd),"tabs"in ne&&n(24,L=ne.tabs),"tab"in ne&&n(25,j=ne.tab),"tabActive"in ne&&n(26,W=ne.tabActive),"accordionList"in ne&&n(27,Y=ne.accordionList),"accordionOpposite"in ne&&n(28,B=ne.accordionOpposite),"outline"in ne&&n(29,q=ne.outline),"outlineMd"in ne&&n(30,X=ne.outlineMd),"outlineIos"in ne&&n(31,H=ne.outlineIos),"class"in ne&&n(32,G=ne.class),"$$scope"in ne&&n(33,r=ne.$$scope)},t.$$.update=()=>{n(1,s=Je(G,"block",{inset:f,"inset-ios":c,"inset-md":u,"xsmall-inset":d,"xsmall-inset-ios":m,"xsmall-inset-md":h,"small-inset":p,"small-inset-ios":b,"small-inset-md":g,"medium-inset":v,"medium-inset-ios":_,"medium-inset-md":k,"large-inset":E,"large-inset-ios":S,"large-inset-md":I,"xlarge-inset":T,"xlarge-inset-ios":A,"xlarge-inset-md":y,"block-strong":w,"block-strong-ios":D,"block-strong-md":O,"accordion-list":Y,"accordion-opposite":B,tabs:L,tab:j,"tab-active":W,"block-outline":q,"block-outline-md":X,"block-outline-ios":H},tt(e)))},e=Be(e),[ce,s,i,f,c,u,d,m,h,p,b,g,v,_,k,E,S,I,T,A,y,w,D,O,L,j,W,Y,B,q,X,H,G,r,o,ye]}class wa extends We{constructor(e){super(),je(this,e,lh,rh,Xe,{inset:3,insetIos:4,insetMd:5,xsmallInset:6,xsmallInsetIos:7,xsmallInsetMd:8,smallInset:9,smallInsetIos:10,smallInsetMd:11,mediumInset:12,mediumInsetIos:13,mediumInsetMd:14,largeInset:15,largeInsetIos:16,largeInsetMd:17,xlargeInset:18,xlargeInsetIos:19,xlargeInsetMd:20,strong:21,strongIos:22,strongMd:23,tabs:24,tab:25,tabActive:26,accordionList:27,accordionOpposite:28,outline:29,outlineMd:30,outlineIos:31,class:32},null,[-1,-1])}}const ls=(t,e)=>(t&&e&&(t.f7RouteProps=e),{update(n){t&&t.f7RouteProps&&!n?delete t.f7RouteProps:t&&n&&(t.f7RouteProps=n)},destroy(){t&&e&&delete t.f7RouteProps}}),Yd=function(t){t===void 0&&(t={});const{icon:e,iconMaterial:n,iconF7:s,iconMd:a,iconIos:i,iconColor:o,iconSize:r,iconBadge:l,badgeColor:f,iconBadgeColor:c}=t;return e||n||s||a||i?{props:{material:n,f7:s,icon:e,md:a,ios:i,color:o,size:r},badge:l||l===0?{props:{color:f||c},content:l}:null}:null},os=t=>{const e=J.f7?J.theme:null;return J.f7||bt(()=>{t(J.theme)}),e};function oh(t){let e,n=(t[4]||"")+"",s,a,i,o,r,l;const f=t[20].default,c=U(f,t,t[19],null);let u=[{style:t[3]},{class:t[5]},Re(t[6])],d={};for(let m=0;m{n(15,S=w)}),I={icon:!0},T;function A(w){let D=m||h;return g&&w&&w.md&&(g.indexOf("material:")>=0||g.indexOf("f7:")>=0)?D=g.split(":")[1]:b&&w&&w.ios&&(b.indexOf("material:")>=0||b.indexOf("f7:")>=0)&&(D=b.split(":")[1]),D}function y(w){$e[w?"unshift":"push"](()=>{E=w,n(2,E)})}return t.$$set=w=>{n(23,e=Ee(Ee({},e),Be(w))),n(6,l=De(e,r)),"style"in w&&n(7,u=w.style),"class"in w&&n(8,d=w.class),"material"in w&&n(9,m=w.material),"f7"in w&&n(10,h=w.f7),"icon"in w&&n(11,p=w.icon),"ios"in w&&n(12,b=w.ios),"md"in w&&n(13,g=w.md),"tooltip"in w&&n(0,v=w.tooltip),"tooltipTrigger"in w&&n(1,_=w.tooltipTrigger),"size"in w&&n(14,k=w.size),"$$scope"in w&&n(19,c=w.$$scope)},t.$$.update=()=>{if(t.$$.dirty&45056&&S&&(S.ios&&n(17,T=b),S.md&&n(17,T=g)),t.$$.dirty&134656)if(T){n(16,I={icon:!0});const w=T.split(":"),D=w[0],O=w[1];D==="material"||D==="f7"?(n(16,I["material-icons"]=D==="material",I),n(16,I["f7-icons"]=D==="f7",I),D==="icon"&&n(16,I[O]=!0,I)):(T.includes(":")&&n(17,T=T.split(" ").map(L=>L.replace("icon:","")).join(" ")),n(16,I[T]=!0,I)),p&&n(16,I[p]=!0,I)}else n(16,I={icon:!0,"material-icons":m,"f7-icons":h}),p&&n(16,I[p]=!0,I);n(5,s=Je(d,I,tt(e))),t.$$.dirty&32768&&n(4,a=A(S)),t.$$.dirty&16384&&n(18,i=typeof k=="number"||parseFloat(k)===k*1?`${k}px`:k),t.$$.dirty&262272&&n(3,o=(u||"")+(i?`;font-size: ${i}; width: ${i}; height: ${i}`.replace(";;",""):""))},e=Be(e),[v,_,E,o,a,s,l,u,d,m,h,p,b,g,k,S,I,T,i,c,f,y]}class ch extends We{constructor(e){super(),je(this,e,fh,oh,Xe,{style:7,class:8,material:9,f7:10,icon:11,ios:12,md:13,tooltip:0,tooltipTrigger:1,size:14})}}function Ci(t){let e,n;const s=[t[0].badge.props];let a={$$slots:{default:[uh]},$$scope:{ctx:t}};for(let i=0;i{s=null}),oe())},i(a){n||(C(s),n=!0)},o(a){M(s),n=!1},d(a){a&&F(e),s&&s.d(a)}}}function ph(t){let e,n;const s=[t[0].props];let a={$$slots:{default:[dh]},$$scope:{ctx:t}};for(let i=0;i{"icon"in a&&n(0,s=a.icon)},[s]}class fs extends We{constructor(e){super(),je(this,e,mh,ph,Xe,{icon:0})}}function hh(t){let e;return{c(){e=Z("span"),se(e,"class","preloader-inner")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function gh(t){let e;return{c(){e=Z("span"),e.innerHTML=' ',se(e,"class","preloader-inner")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function bh(t){let e;return{c(){e=Z("span"),e.innerHTML='',se(e,"class","preloader-inner")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function vh(t){let e;function n(r,l){return r[0]&&r[0].md?bh:r[0]&&r[0].ios?gh:hh}let s=n(t),a=s(t),i=[{style:t[2]},{class:t[1]},Re(t[3])],o={};for(let r=0;r{n(0,u=d)});return t.$$set=d=>{n(8,e=Ee(Ee({},e),Be(d))),n(3,r=De(e,o)),"style"in d&&n(4,l=d.style),"class"in d&&n(5,f=d.class),"size"in d&&n(6,c=d.size)},t.$$.update=()=>{t.$$.dirty&64&&n(7,s=c&&typeof c=="string"&&c.indexOf("px")>=0?c.replace("px",""):c),t.$$.dirty&144&&n(2,a=((l||"")+(s?`;width: ${s}px; height: ${s}px; --f7-preloader-size: ${s}px`:"")).replace(";;",";")),n(1,i=Je(f,{preloader:!0},tt(e)))},e=Be(e),[u,i,a,r,l,f,c,s]}let Mn=class extends We{constructor(e){super(),je(this,e,_h,vh,Xe,{style:4,class:5,size:6})}};function kh(t){let e,n,s,a,i,o,r,l;const f=[yh,Ch],c=[];function u(h,p){return h[4]?0:1}n=u(t),s=c[n]=f[n](t);let d=[{class:t[10]},t[11]],m={};for(let h=0;h{c[b]=null}),oe(),s=c[n],s?s.p(h,p):(s=c[n]=f[n](h),s.c()),C(s,1),s.m(e,null)),Ae(e,m=Ge(d,[(!o||p[0]&1024)&&{class:h[10]},p[0]&2048&&h[11]])),a&&Yt(a.update)&&p[0]&8&&a.update.call(null,h[3]),i&&Yt(i.update)&&p[0]&6&&i.update.call(null,{tooltip:h[1],tooltipTrigger:h[2]})},i(h){o||(C(s),o=!0)},o(h){M(s),o=!1},d(h){h&&F(e),c[n].d(),t[47](null),r=!1,ln(l)}}}function Eh(t){let e,n,s,a,i,o,r,l;const f=[Sh,wh],c=[];function u(h,p){return h[4]?0:1}n=u(t),s=c[n]=f[n](t);let d=[{class:t[10]},t[11]],m={};for(let h=0;h{c[b]=null}),oe(),s=c[n],s?s.p(h,p):(s=c[n]=f[n](h),s.c()),C(s,1),s.m(e,null)),Ae(e,m=Ge(d,[(!o||p[0]&1024)&&{class:h[10]},p[0]&2048&&h[11]])),a&&Yt(a.update)&&p[0]&8&&a.update.call(null,h[3]),i&&Yt(i.update)&&p[0]&6&&i.update.call(null,{tooltip:h[1],tooltipTrigger:h[2]})},i(h){o||(C(s),o=!0)},o(h){M(s),o=!1},d(h){h&&F(e),c[n].d(),t[46](null),r=!1,ln(l)}}}function Ch(t){let e,n,s,a=t[8]&&yi(t),i=typeof t[0]<"u"&&wi(t);const o=t[45].default,r=U(o,t,t[44],null);return{c(){a&&a.c(),e=V(),i&&i.c(),n=V(),r&&r.c()},m(l,f){a&&a.m(l,f),z(l,e,f),i&&i.m(l,f),z(l,n,f),r&&r.m(l,f),s=!0},p(l,f){l[8]?a?(a.p(l,f),f[0]&256&&C(a,1)):(a=yi(l),a.c(),C(a,1),a.m(e.parentNode,e)):a&&(le(),M(a,1,1,()=>{a=null}),oe()),typeof l[0]<"u"?i?i.p(l,f):(i=wi(l),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),r&&r.p&&(!s||f[1]&8192)&&x(r,o,l,l[44],s?Q(o,l[44],f,null):$(l[44]),null)},i(l){s||(C(a),C(r,l),s=!0)},o(l){M(a),M(r,l),s=!1},d(l){l&&(F(e),F(n)),a&&a.d(l),i&&i.d(l),r&&r.d(l)}}}function yh(t){let e,n,s,a,i,o;e=new Mn({props:{size:t[5],color:t[6]}});let r=t[8]&&Si(t),l=typeof t[0]<"u"&&Ti(t);const f=t[45].default,c=U(f,t,t[44],null);return{c(){be(e.$$.fragment),n=V(),s=Z("span"),r&&r.c(),a=V(),l&&l.c(),i=V(),c&&c.c()},m(u,d){ve(e,u,d),z(u,n,d),z(u,s,d),r&&r.m(s,null),N(s,a),l&&l.m(s,null),N(s,i),c&&c.m(s,null),o=!0},p(u,d){const m={};d[0]&32&&(m.size=u[5]),d[0]&64&&(m.color=u[6]),e.$set(m),u[8]?r?(r.p(u,d),d[0]&256&&C(r,1)):(r=Si(u),r.c(),C(r,1),r.m(s,a)):r&&(le(),M(r,1,1,()=>{r=null}),oe()),typeof u[0]<"u"?l?l.p(u,d):(l=Ti(u),l.c(),l.m(s,i)):l&&(l.d(1),l=null),c&&c.p&&(!o||d[1]&8192)&&x(c,f,u,u[44],o?Q(f,u[44],d,null):$(u[44]),null)},i(u){o||(C(e.$$.fragment,u),C(r),C(c,u),o=!0)},o(u){M(e.$$.fragment,u),M(r),M(c,u),o=!1},d(u){u&&(F(n),F(s)),_e(e,u),r&&r.d(),l&&l.d(),c&&c.d(u)}}}function yi(t){let e,n;return e=new fs({props:{icon:t[8]}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&256&&(i.icon=s[8]),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function wi(t){let e,n=ie(t[0])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&1&&n!==(n=ie(a[0])+"")&&we(s,n)},d(a){a&&F(e)}}}function Si(t){let e,n;return e=new fs({props:{icon:t[8]}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&256&&(i.icon=s[8]),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Ti(t){let e,n=ie(t[0])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&1&&n!==(n=ie(a[0])+"")&&we(s,n)},d(a){a&&F(e)}}}function wh(t){let e,n,s,a=t[8]&&Mi(t),i=typeof t[0]<"u"&&Pi(t);const o=t[45].default,r=U(o,t,t[44],null);return{c(){a&&a.c(),e=V(),i&&i.c(),n=V(),r&&r.c()},m(l,f){a&&a.m(l,f),z(l,e,f),i&&i.m(l,f),z(l,n,f),r&&r.m(l,f),s=!0},p(l,f){l[8]?a?(a.p(l,f),f[0]&256&&C(a,1)):(a=Mi(l),a.c(),C(a,1),a.m(e.parentNode,e)):a&&(le(),M(a,1,1,()=>{a=null}),oe()),typeof l[0]<"u"?i?i.p(l,f):(i=Pi(l),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),r&&r.p&&(!s||f[1]&8192)&&x(r,o,l,l[44],s?Q(o,l[44],f,null):$(l[44]),null)},i(l){s||(C(a),C(r,l),s=!0)},o(l){M(a),M(r,l),s=!1},d(l){l&&(F(e),F(n)),a&&a.d(l),i&&i.d(l),r&&r.d(l)}}}function Sh(t){let e,n,s,a,i,o;e=new Mn({props:{size:t[5],color:t[6]}});let r=t[8]&&Ii(t),l=typeof t[0]<"u"&&Ai(t);const f=t[45].default,c=U(f,t,t[44],null);return{c(){be(e.$$.fragment),n=V(),s=Z("span"),r&&r.c(),a=V(),l&&l.c(),i=V(),c&&c.c()},m(u,d){ve(e,u,d),z(u,n,d),z(u,s,d),r&&r.m(s,null),N(s,a),l&&l.m(s,null),N(s,i),c&&c.m(s,null),o=!0},p(u,d){const m={};d[0]&32&&(m.size=u[5]),d[0]&64&&(m.color=u[6]),e.$set(m),u[8]?r?(r.p(u,d),d[0]&256&&C(r,1)):(r=Ii(u),r.c(),C(r,1),r.m(s,a)):r&&(le(),M(r,1,1,()=>{r=null}),oe()),typeof u[0]<"u"?l?l.p(u,d):(l=Ai(u),l.c(),l.m(s,i)):l&&(l.d(1),l=null),c&&c.p&&(!o||d[1]&8192)&&x(c,f,u,u[44],o?Q(f,u[44],d,null):$(u[44]),null)},i(u){o||(C(e.$$.fragment,u),C(r),C(c,u),o=!0)},o(u){M(e.$$.fragment,u),M(r),M(c,u),o=!1},d(u){u&&(F(n),F(s)),_e(e,u),r&&r.d(),l&&l.d(),c&&c.d(u)}}}function Mi(t){let e,n;return e=new fs({props:{icon:t[8]}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&256&&(i.icon=s[8]),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Pi(t){let e,n=ie(t[0])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&1&&n!==(n=ie(a[0])+"")&&we(s,n)},d(a){a&&F(e)}}}function Ii(t){let e,n;return e=new fs({props:{icon:t[8]}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&256&&(i.icon=s[8]),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Ai(t){let e,n=ie(t[0])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&1&&n!==(n=ie(a[0])+"")&&we(s,n)},d(a){a&&F(e)}}}function Th(t){let e,n,s,a;const i=[Eh,kh],o=[];function r(l,f){return l[9]==="button"?0:1}return e=r(t),n=o[e]=i[e](t),{c(){n.c(),s=Ze()},m(l,f){o[e].m(l,f),z(l,s,f),a=!0},p(l,f){let c=e;e=r(l),e===c?o[e].p(l,f):(le(),M(o[c],1,1,()=>{o[c]=null}),oe(),n=o[e],n?n.p(l,f):(n=o[e]=i[e](l),n.c()),C(n,1),n.m(s.parentNode,s))},i(l){a||(C(n),a=!0)},o(l){M(n),a=!1},d(l){l&&F(s),o[e].d(l)}}}function Mh(t,e,n){let s,a,i,o,r;const l=["class","text","tabLink","tabLinkActive","type","href","target","round","roundMd","roundIos","fill","fillMd","fillIos","tonal","tonalMd","tonalIos","large","largeMd","largeIos","small","smallMd","smallIos","raised","raisedMd","raisedIos","outline","outlineMd","outlineIos","active","disabled","tooltip","tooltipTrigger","routeProps","preloader","preloaderSize","preloaderColor","loading"];let f=De(e,l),{$$slots:c={},$$scope:u}=e;const d=pt(mt,e);let{class:m=void 0}=e,{text:h=void 0}=e,{tabLink:p=void 0}=e,{tabLinkActive:b=!1}=e,{type:g=void 0}=e,{href:v="#"}=e,{target:_=void 0}=e,{round:k=!1}=e,{roundMd:E=!1}=e,{roundIos:S=!1}=e,{fill:I=!1}=e,{fillMd:T=!1}=e,{fillIos:A=!1}=e,{tonal:y=!1}=e,{tonalMd:w=!1}=e,{tonalIos:D=!1}=e,{large:O=!1}=e,{largeMd:L=!1}=e,{largeIos:j=!1}=e,{small:W=!1}=e,{smallMd:Y=!1}=e,{smallIos:B=!1}=e,{raised:q=!1}=e,{raisedMd:X=!1}=e,{raisedIos:H=!1}=e,{outline:G=!1}=e,{outlineMd:ce=!1}=e,{outlineIos:ye=!1}=e,{active:ne=!1}=e,{disabled:me=!1}=e,{tooltip:K=void 0}=e,{tooltipTrigger:pe=void 0}=e,{routeProps:ke=void 0}=e,{preloader:he=!1}=e,{preloaderSize:re=void 0}=e,{preloaderColor:Ce=void 0}=e,{loading:Pe=!1}=e,Ve;function Me(){d("click")}function He(fe){$e[fe?"unshift":"push"](()=>{Ve=fe,n(7,Ve)})}function ze(fe){$e[fe?"unshift":"push"](()=>{Ve=fe,n(7,Ve)})}return t.$$set=fe=>{n(49,e=Ee(Ee({},e),Be(fe))),n(50,f=De(e,l)),"class"in fe&&n(13,m=fe.class),"text"in fe&&n(0,h=fe.text),"tabLink"in fe&&n(14,p=fe.tabLink),"tabLinkActive"in fe&&n(15,b=fe.tabLinkActive),"type"in fe&&n(16,g=fe.type),"href"in fe&&n(17,v=fe.href),"target"in fe&&n(18,_=fe.target),"round"in fe&&n(19,k=fe.round),"roundMd"in fe&&n(20,E=fe.roundMd),"roundIos"in fe&&n(21,S=fe.roundIos),"fill"in fe&&n(22,I=fe.fill),"fillMd"in fe&&n(23,T=fe.fillMd),"fillIos"in fe&&n(24,A=fe.fillIos),"tonal"in fe&&n(25,y=fe.tonal),"tonalMd"in fe&&n(26,w=fe.tonalMd),"tonalIos"in fe&&n(27,D=fe.tonalIos),"large"in fe&&n(28,O=fe.large),"largeMd"in fe&&n(29,L=fe.largeMd),"largeIos"in fe&&n(30,j=fe.largeIos),"small"in fe&&n(31,W=fe.small),"smallMd"in fe&&n(32,Y=fe.smallMd),"smallIos"in fe&&n(33,B=fe.smallIos),"raised"in fe&&n(34,q=fe.raised),"raisedMd"in fe&&n(35,X=fe.raisedMd),"raisedIos"in fe&&n(36,H=fe.raisedIos),"outline"in fe&&n(37,G=fe.outline),"outlineMd"in fe&&n(38,ce=fe.outlineMd),"outlineIos"in fe&&n(39,ye=fe.outlineIos),"active"in fe&&n(40,ne=fe.active),"disabled"in fe&&n(41,me=fe.disabled),"tooltip"in fe&&n(1,K=fe.tooltip),"tooltipTrigger"in fe&&n(2,pe=fe.tooltipTrigger),"routeProps"in fe&&n(3,ke=fe.routeProps),"preloader"in fe&&n(4,he=fe.preloader),"preloaderSize"in fe&&n(5,re=fe.preloaderSize),"preloaderColor"in fe&&n(6,Ce=fe.preloaderColor),"loading"in fe&&n(42,Pe=fe.loading),"$$scope"in fe&&n(44,u=fe.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&131072&&n(43,s=v===!0?"#":v||void 0),n(11,a=kn({href:s,target:_,type:g,"data-tab":at(p)&&p||void 0,...Re(f)},ka(e),Ca(e))),n(10,i=Je(m,"button",{"tab-link":p||p==="","tab-link-active":b,"button-round":k,"button-round-ios":S,"button-round-md":E,"button-fill":I,"button-fill-ios":A,"button-fill-md":T,"button-tonal":y,"button-tonal-ios":D,"button-tonal-md":w,"button-large":O,"button-large-ios":j,"button-large-md":L,"button-small":W,"button-small-ios":B,"button-small-md":Y,"button-raised":q,"button-raised-ios":H,"button-raised-md":X,"button-active":ne,"button-outline":G,"button-outline-ios":ye,"button-outline-md":ce,"button-preloader":he,"button-loading":Pe,disabled:me},tt(e),Ea(e),ya(e))),t.$$.dirty[0]&65536&&n(9,o=g==="submit"||g==="reset"||g==="button"?"button":"a"),n(8,r=Yd(e))},e=Be(e),[h,K,pe,ke,he,re,Ce,Ve,r,o,i,a,Me,m,p,b,g,v,_,k,E,S,I,T,A,y,w,D,O,L,j,W,Y,B,q,X,H,G,ce,ye,ne,me,Pe,s,u,c,He,ze]}class Oi extends We{constructor(e){super(),je(this,e,Mh,Th,Xe,{class:13,text:0,tabLink:14,tabLinkActive:15,type:16,href:17,target:18,round:19,roundMd:20,roundIos:21,fill:22,fillMd:23,fillIos:24,tonal:25,tonalMd:26,tonalIos:27,large:28,largeMd:29,largeIos:30,small:31,smallMd:32,smallIos:33,raised:34,raisedMd:35,raisedIos:36,outline:37,outlineMd:38,outlineIos:39,active:40,disabled:41,tooltip:1,tooltipTrigger:2,routeProps:3,preloader:4,preloaderSize:5,preloaderColor:6,loading:42},null,[-1,-1])}}function Ph(t){let e,n;const s=t[5].default,a=U(s,t,t[4],null);let i=[{class:t[0]},Re(t[1])],o={};for(let r=0;r{n(6,e=Ee(Ee({},e),Be(c))),n(1,i=De(e,a)),"class"in c&&n(2,l=c.class),"padding"in c&&n(3,f=c.padding),"$$scope"in c&&n(4,r=c.$$scope)},t.$$.update=()=>{n(0,s=Je(l,"card-content",{"card-content-padding":f},tt(e)))},e=Be(e),[s,i,l,f,r,o]}class qd extends We{constructor(e){super(),je(this,e,Ih,Ph,Xe,{class:2,padding:3})}}function Ah(t){let e,n;const s=t[4].default,a=U(s,t,t[3],null);let i=[{class:t[0]},Re(t[1])],o={};for(let r=0;r{n(5,e=Ee(Ee({},e),Be(f))),n(1,i=De(e,a)),"class"in f&&n(2,l=f.class),"$$scope"in f&&n(3,r=f.$$scope)},t.$$.update=()=>{n(0,s=Je(l,"card-footer",tt(e)))},e=Be(e),[s,i,l,r,o]}class Wd extends We{constructor(e){super(),je(this,e,Oh,Ah,Xe,{class:2})}}function Bh(t){let e,n;const s=t[4].default,a=U(s,t,t[3],null);let i=[{class:t[0]},Re(t[1])],o={};for(let r=0;r{n(5,e=Ee(Ee({},e),Be(f))),n(1,i=De(e,a)),"class"in f&&n(2,l=f.class),"$$scope"in f&&n(3,r=f.$$scope)},t.$$.update=()=>{n(0,s=Je(l,"card-header",tt(e)))},e=Be(e),[s,i,l,r,o]}class jd extends We{constructor(e){super(),je(this,e,Lh,Bh,Xe,{class:2})}}const Dh=t=>({}),Bi=t=>({}),Rh=t=>({}),Li=t=>({}),Hh=t=>({}),Di=t=>({});function Ri(t){let e,n;return e=new jd({props:{$$slots:{default:[zh]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&1|a[1]&1&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function zh(t){let e=ie(t[0])+"",n,s,a;const i=t[29].header,o=U(i,t,t[31],Di);return{c(){n=ge(e),s=V(),o&&o.c()},m(r,l){z(r,n,l),z(r,s,l),o&&o.m(r,l),a=!0},p(r,l){(!a||l[0]&1)&&e!==(e=ie(r[0])+"")&&we(n,e),o&&o.p&&(!a||l[1]&1)&&x(o,i,r,r[31],a?Q(i,r[31],l,Hh):$(r[31]),Di)},i(r){a||(C(o,r),a=!0)},o(r){M(o,r),a=!1},d(r){r&&(F(n),F(s)),o&&o.d(r)}}}function Hi(t){let e,n;return e=new qd({props:{padding:t[12],$$slots:{default:[Fh]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&4096&&(i.padding=s[12]),a[0]&2|a[1]&1&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Fh(t){let e=ie(t[1])+"",n,s,a;const i=t[29].content,o=U(i,t,t[31],Li);return{c(){n=ge(e),s=V(),o&&o.c()},m(r,l){z(r,n,l),z(r,s,l),o&&o.m(r,l),a=!0},p(r,l){(!a||l[0]&2)&&e!==(e=ie(r[1])+"")&&we(n,e),o&&o.p&&(!a||l[1]&1)&&x(o,i,r,r[31],a?Q(i,r[31],l,Rh):$(r[31]),Li)},i(r){a||(C(o,r),a=!0)},o(r){M(o,r),a=!1},d(r){r&&(F(n),F(s)),o&&o.d(r)}}}function zi(t){let e,n;return e=new Wd({props:{$$slots:{default:[Nh]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&4|a[1]&1&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Nh(t){let e=ie(t[2])+"",n,s,a;const i=t[29].footer,o=U(i,t,t[31],Bi);return{c(){n=ge(e),s=V(),o&&o.c()},m(r,l){z(r,n,l),z(r,s,l),o&&o.m(r,l),a=!0},p(r,l){(!a||l[0]&4)&&e!==(e=ie(r[2])+"")&&we(n,e),o&&o.p&&(!a||l[1]&1)&&x(o,i,r,r[31],a?Q(i,r[31],l,Dh):$(r[31]),Bi)},i(r){a||(C(o,r),a=!0)},o(r){M(o,r),a=!1},d(r){r&&(F(n),F(s)),o&&o.d(r)}}}function Vh(t){let e,n,s,a,i,o,r,l,f,c,u,d,m=(typeof t[0]<"u"||t[16])&&Ri(t),h=(typeof t[1]<"u"||t[15])&&Hi(t),p=(typeof t[2]<"u"||t[14])&&zi(t);const b=t[29].default,g=U(b,t,t[31],null);let v=[{class:t[17]},{"data-animate":i=typeof t[3]>"u"?t[3]:t[3].toString()},{"data-hide-navbar-on-open":o=typeof t[4]>"u"?t[4]:t[4].toString()},{"data-hide-toolbar-on-open":r=typeof t[5]>"u"?t[5]:t[5].toString()},{"data-hide-statusbar-on-open":l=typeof t[6]>"u"?t[6]:t[6].toString()},{"data-scrollable-el":t[7]},{"data-swipe-to-close":f=typeof t[8]>"u"?t[8]:t[8].toString()},{"data-close-by-backdrop-click":c=typeof t[9]>"u"?t[9]:t[9].toString()},{"data-backdrop":u=typeof t[10]>"u"?t[10]:t[10].toString()},{"data-backdrop-el":t[11]},Re(t[18])],_={};for(let k=0;k{m=null}),oe()),typeof k[1]<"u"||k[15]?h?(h.p(k,E),E[0]&32770&&C(h,1)):(h=Hi(k),h.c(),C(h,1),h.m(e,s)):h&&(le(),M(h,1,1,()=>{h=null}),oe()),typeof k[2]<"u"||k[14]?p?(p.p(k,E),E[0]&16388&&C(p,1)):(p=zi(k),p.c(),C(p,1),p.m(e,a)):p&&(le(),M(p,1,1,()=>{p=null}),oe()),g&&g.p&&(!d||E[1]&1)&&x(g,b,k,k[31],d?Q(b,k[31],E,null):$(k[31]),null),Ae(e,_=Ge(v,[(!d||E[0]&131072)&&{class:k[17]},(!d||E[0]&8&&i!==(i=typeof k[3]>"u"?k[3]:k[3].toString()))&&{"data-animate":i},(!d||E[0]&16&&o!==(o=typeof k[4]>"u"?k[4]:k[4].toString()))&&{"data-hide-navbar-on-open":o},(!d||E[0]&32&&r!==(r=typeof k[5]>"u"?k[5]:k[5].toString()))&&{"data-hide-toolbar-on-open":r},(!d||E[0]&64&&l!==(l=typeof k[6]>"u"?k[6]:k[6].toString()))&&{"data-hide-statusbar-on-open":l},(!d||E[0]&128)&&{"data-scrollable-el":k[7]},(!d||E[0]&256&&f!==(f=typeof k[8]>"u"?k[8]:k[8].toString()))&&{"data-swipe-to-close":f},(!d||E[0]&512&&c!==(c=typeof k[9]>"u"?k[9]:k[9].toString()))&&{"data-close-by-backdrop-click":c},(!d||E[0]&1024&&u!==(u=typeof k[10]>"u"?k[10]:k[10].toString()))&&{"data-backdrop":u},(!d||E[0]&2048)&&{"data-backdrop-el":k[11]},E[0]&262144&&Re(k[18])]))},i(k){d||(C(m),C(h),C(p),C(g,k),d=!0)},o(k){M(m),M(h),M(p),M(g,k),d=!1},d(k){k&&F(e),m&&m.d(),h&&h.d(),p&&p.d(),g&&g.d(k),t[30](null)}}}function Yh(t,e,n){let s,a,i,o;const r=["class","title","content","footer","raised","outline","outlineIos","outlineMd","headerDivider","footerDivider","expandable","expandableAnimateWidth","expandableOpened","animate","hideNavbarOnOpen","hideToolbarOnOpen","hideStatusbarOnOpen","scrollableEl","swipeToClose","closeByBackdropClick","backdrop","backdropEl","padding"];let l=De(e,r),{$$slots:f={},$$scope:c}=e;const u=Fn(f),d=pt(mt,e);let{class:m=void 0}=e,{title:h=void 0}=e,{content:p=void 0}=e,{footer:b=void 0}=e,{raised:g=!1}=e,{outline:v=!1}=e,{outlineIos:_=!1}=e,{outlineMd:k=!1}=e,{headerDivider:E=!1}=e,{footerDivider:S=!1}=e,{expandable:I=!1}=e,{expandableAnimateWidth:T=!1}=e,{expandableOpened:A=!1}=e,{animate:y=void 0}=e,{hideNavbarOnOpen:w=void 0}=e,{hideToolbarOnOpen:D=void 0}=e,{hideStatusbarOnOpen:O=void 0}=e,{scrollableEl:L=void 0}=e,{swipeToClose:j=void 0}=e,{closeByBackdropClick:W=void 0}=e,{backdrop:Y=void 0}=e,{backdropEl:B=void 0}=e,{padding:q=!0}=e,X;function H(){J.f7.card.open(X)}function G(){J.f7.card.close(X)}let ce=!1;function ye(re){if(!ce){ce=!0;return}re?H():G()}function ne(re,Ce){re===X&&d("cardBeforeOpen",[X,Ce])}function me(re){re===X&&(d("cardOpen",[X]),n(19,A=!0))}function K(re,Ce){re===X&&d("cardOpened",[X,Ce])}function pe(re){re===X&&d("cardClose",[X])}function ke(re,Ce){re===X&&(d("cardClosed",[X,Ce]),n(19,A=!1))}gt(()=>{I&&bt(()=>{J.f7.on("cardBeforeOpen",ne),J.f7.on("cardOpen",me),J.f7.on("cardOpened",K),J.f7.on("cardClose",pe),J.f7.on("cardClosed",ke),I&&A&&X&&J.f7.card.open(X,!1)})}),kt(()=>{I&&(!J.f7||!X||(J.f7.off("cardBeforeOpen",ne),J.f7.off("cardOpen",me),J.f7.off("cardOpened",K),J.f7.off("cardClose",pe),J.f7.off("cardClosed",ke)))});function he(re){$e[re?"unshift":"push"](()=>{X=re,n(13,X)})}return t.$$set=re=>{n(43,e=Ee(Ee({},e),Be(re))),n(18,l=De(e,r)),"class"in re&&n(20,m=re.class),"title"in re&&n(0,h=re.title),"content"in re&&n(1,p=re.content),"footer"in re&&n(2,b=re.footer),"raised"in re&&n(21,g=re.raised),"outline"in re&&n(22,v=re.outline),"outlineIos"in re&&n(23,_=re.outlineIos),"outlineMd"in re&&n(24,k=re.outlineMd),"headerDivider"in re&&n(25,E=re.headerDivider),"footerDivider"in re&&n(26,S=re.footerDivider),"expandable"in re&&n(27,I=re.expandable),"expandableAnimateWidth"in re&&n(28,T=re.expandableAnimateWidth),"expandableOpened"in re&&n(19,A=re.expandableOpened),"animate"in re&&n(3,y=re.animate),"hideNavbarOnOpen"in re&&n(4,w=re.hideNavbarOnOpen),"hideToolbarOnOpen"in re&&n(5,D=re.hideToolbarOnOpen),"hideStatusbarOnOpen"in re&&n(6,O=re.hideStatusbarOnOpen),"scrollableEl"in re&&n(7,L=re.scrollableEl),"swipeToClose"in re&&n(8,j=re.swipeToClose),"closeByBackdropClick"in re&&n(9,W=re.closeByBackdropClick),"backdrop"in re&&n(10,Y=re.backdrop),"backdropEl"in re&&n(11,B=re.backdropEl),"padding"in re&&n(12,q=re.padding),"$$scope"in re&&n(31,c=re.$$scope)},t.$$.update=()=>{n(17,s=Je(m,"card",{"card-outline":v,"card-outline-ios":_,"card-outline-md":k,"card-raised":g,"card-header-divider":E,"card-footer-divider":S,"card-expandable":I,"card-expandable-animate-width":T},tt(e))),t.$$.dirty[0]&524288&&ye(A)},n(16,a=u.header),n(15,i=u.content),n(14,o=u.footer),e=Be(e),[h,p,b,y,w,D,O,L,j,W,Y,B,q,X,o,i,a,s,l,A,m,g,v,_,k,E,S,I,T,f,he,c]}let qh=class extends We{constructor(e){super(),je(this,e,Yh,Vh,Xe,{class:20,title:0,content:1,footer:2,raised:21,outline:22,outlineIos:23,outlineMd:24,headerDivider:25,footerDivider:26,expandable:27,expandableAnimateWidth:28,expandableOpened:19,animate:3,hideNavbarOnOpen:4,hideToolbarOnOpen:5,hideStatusbarOnOpen:6,scrollableEl:7,swipeToClose:8,closeByBackdropClick:9,backdrop:10,backdropEl:11,padding:12},null,[-1,-1])}};const Xd=(t,e,n)=>{let s;gt(()=>{bt(()=>{if(t.smartSelect){const a=kn({el:n()},t.smartSelectParams||{});s=J.f7.smartSelect.create(a),e(s)}})}),kt(()=>{s&&s.destroy&&s.destroy(),s=null,e(s)})},Gd=(t,e)=>{const n=zp(t);if(!n)return;const{value:s,subscribe:a,unsubscribe:i}=n;return a(e),kt(()=>{i(e)}),s};function Fi(t){let e,n;return e=new fs({props:{icon:t[8]}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&256&&(i.icon=s[8]),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Ni(t){let e,n=ie(t[0])+"",s,a,i,o=typeof t[1]<"u"&&Vi(t);return{c(){e=Z("span"),s=ge(n),a=V(),o&&o.c(),wt(e,"tabbar-label",t[6])},m(r,l){z(r,e,l),N(e,s),N(e,a),o&&o.m(e,null),i=!0},p(r,l){(!i||l[0]&1)&&n!==(n=ie(r[0])+"")&&we(s,n),typeof r[1]<"u"?o?(o.p(r,l),l[0]&2&&C(o,1)):(o=Vi(r),o.c(),C(o,1),o.m(e,null)):o&&(le(),M(o,1,1,()=>{o=null}),oe()),(!i||l[0]&64)&&wt(e,"tabbar-label",r[6])},i(r){i||(C(o),i=!0)},o(r){M(o),i=!1},d(r){r&&F(e),o&&o.d()}}}function Vi(t){let e,n;return e=new zt({props:{color:t[2],$$slots:{default:[Wh]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&4&&(i.color=s[2]),a[0]&536870914&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Wh(t){let e=ie(t[1])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&2&&e!==(e=ie(s[1])+"")&&we(n,e)},d(s){s&&F(n)}}}function jh(t){let e,n,s,a,i,o,r,l,f=t[8]&&Fi(t);const c=t[27].default,u=U(c,t,t[29],null);let d=(typeof t[0]<"u"||typeof t[1]<"u")&&Ni(t),m=[{class:t[9]},t[10]],h={};for(let p=0;p{f=null}),oe()),u&&u.p&&(!o||b[0]&536870912)&&x(u,c,p,p[29],o?Q(c,p[29],b,null):$(p[29]),null),typeof p[0]<"u"||typeof p[1]<"u"?d?(d.p(p,b),b[0]&3&&C(d,1)):(d=Ni(p),d.c(),C(d,1),d.m(e,null)):d&&(le(),M(d,1,1,()=>{d=null}),oe()),Ae(e,h=Ge(m,[(!o||b[0]&512)&&{class:p[9]},b[0]&1024&&p[10]])),a&&Yt(a.update)&&b[0]&24&&a.update.call(null,{tooltip:p[3],tooltipTrigger:p[4]}),i&&Yt(i.update)&&b[0]&32&&i.update.call(null,p[5])},i(p){o||(C(f),C(u,p),C(d),o=!0)},o(p){M(f),M(u,p),M(d),o=!1},d(p){p&&F(e),f&&f.d(),u&&u.d(p),d&&d.d(),t[28](null),r=!1,ln(l)}}}function Xh(t,e,n){let s,a,i,o,r,l,f;const c=["class","noLinkClass","text","tabLink","tabLinkActive","tabbarLabel","iconOnly","badge","badgeColor","href","target","tooltip","tooltipTrigger","routeProps","smartSelect","smartSelectParams","smartSelectInstance"];let u=De(e,c),{$$slots:d={},$$scope:m}=e;const h=Fn(d),p=pt(mt,e);let{class:b=void 0}=e,{noLinkClass:g=!1}=e,{text:v=void 0}=e,{tabLink:_=void 0}=e,{tabLinkActive:k=!1}=e,{tabbarLabel:E=!1}=e,{iconOnly:S=!1}=e,{badge:I=void 0}=e,{badgeColor:T=void 0}=e,{href:A="#"}=e,{target:y=void 0}=e,{tooltip:w=void 0}=e,{tooltipTrigger:D=void 0}=e,{routeProps:O=void 0}=e,{smartSelect:L=!1}=e,{smartSelectParams:j=void 0}=e,W,Y;function B(){return Y}let q=Gd("TabbarContext",G=>{n(23,q=G)})||{};function X(){p("click")}Xd({smartSelect:L,smartSelectParams:j},G=>{Y=G},()=>W);function H(G){$e[G?"unshift":"push"](()=>{W=G,n(7,W)})}return t.$$set=G=>{n(32,e=Ee(Ee({},e),Be(G))),n(34,u=De(e,c)),"class"in G&&n(12,b=G.class),"noLinkClass"in G&&n(13,g=G.noLinkClass),"text"in G&&n(0,v=G.text),"tabLink"in G&&n(14,_=G.tabLink),"tabLinkActive"in G&&n(15,k=G.tabLinkActive),"tabbarLabel"in G&&n(16,E=G.tabbarLabel),"iconOnly"in G&&n(17,S=G.iconOnly),"badge"in G&&n(1,I=G.badge),"badgeColor"in G&&n(2,T=G.badgeColor),"href"in G&&n(18,A=G.href),"target"in G&&n(19,y=G.target),"tooltip"in G&&n(3,w=G.tooltip),"tooltipTrigger"in G&&n(4,D=G.tooltipTrigger),"routeProps"in G&&n(5,O=G.routeProps),"smartSelect"in G&&n(20,L=G.smartSelect),"smartSelectParams"in G&&n(21,j=G.smartSelectParams),"$$scope"in G&&n(29,m=G.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&8454144&&n(6,s=E||q.tabbarHasIcons),t.$$.dirty[0]&262144&&n(26,a=A===!0?"#":A||void 0),n(10,i=kn({href:a,target:y,"data-tab":at(_)&&_||void 0,...Re(u)},ka(e),Ca(e))),t.$$.dirty[0]&33685505&&n(24,r=S||!v&&!o),n(9,l=Je(b,{link:!(g||s),"icon-only":r,"tab-link":_||_==="","tab-link-active":k,"smart-select":L},tt(e),Ea(e),ya(e))),n(8,f=Yd(e))},n(25,o=h.default),e=Be(e),[v,I,T,w,D,O,s,W,f,l,i,X,b,g,_,k,E,S,A,y,L,j,B,q,r,o,a,d,H,m]}class xt extends We{constructor(e){super(),je(this,e,Xh,jh,Xe,{class:12,noLinkClass:13,text:0,tabLink:14,tabLinkActive:15,tabbarLabel:16,iconOnly:17,badge:1,badgeColor:2,href:18,target:19,tooltip:3,tooltipTrigger:4,routeProps:5,smartSelect:20,smartSelectParams:21,smartSelectInstance:22},null,[-1,-1])}get smartSelectInstance(){return this.$$.ctx[22]}}const Ud=(t,e)=>{const n=[],s=o=>{n.push(o)},a=o=>{n.indexOf(o)>=0&&n.splice(n.indexOf,o)},i=()=>{n.forEach(o=>{o(e())})};Ld(t,{value:e(),subscribe:s,unsubscribe:a}),Fp(()=>{i()})},Gh=t=>({}),Yi=t=>({}),Uh=t=>({}),qi=t=>({}),xh=t=>({}),Wi=t=>({}),$h=t=>({}),ji=t=>({}),Qh=t=>({}),Xi=t=>({}),Kh=t=>({}),Gi=t=>({}),Zh=t=>({}),Ui=t=>({}),Jh=t=>({}),xi=t=>({}),eg=t=>({}),$i=t=>({}),tg=t=>({}),Qi=t=>({}),ng=t=>({}),Ki=t=>({}),sg=t=>({}),Zi=t=>({}),ag=t=>({}),Ji=t=>({}),ig=t=>({}),er=t=>({}),rg=t=>({}),tr=t=>({}),lg=t=>({}),nr=t=>({}),og=t=>({}),sr=t=>({}),fg=t=>({}),ar=t=>({}),cg=t=>({}),ir=t=>({}),ug=t=>({}),rr=t=>({}),dg=t=>({}),lr=t=>({}),pg=t=>({}),or=t=>({}),mg=t=>({}),fr=t=>({}),hg=t=>({}),cr=t=>({}),gg=t=>({}),ur=t=>({}),bg=t=>({}),dr=t=>({}),vg=t=>({}),pr=t=>({}),_g=t=>({}),mr=t=>({}),kg=t=>({}),hr=t=>({}),Eg=t=>({}),gr=t=>({}),Cg=t=>({}),br=t=>({}),yg=t=>({}),vr=t=>({}),wg=t=>({}),_r=t=>({}),Sg=t=>({}),kr=t=>({}),Tg=t=>({}),Er=t=>({}),Mg=t=>({}),Cr=t=>({}),Pg=t=>({}),yr=t=>({}),Ig=t=>({}),wr=t=>({}),Ag=t=>({}),Sr=t=>({}),Og=t=>({}),Tr=t=>({}),Bg=t=>({}),Mr=t=>({}),Lg=t=>({}),Pr=t=>({}),Dg=t=>({}),Ir=t=>({}),Rg=t=>({}),Ar=t=>({}),Hg=t=>({}),Or=t=>({}),zg=t=>({}),Br=t=>({}),Fg=t=>({}),Lr=t=>({}),Ng=t=>({}),Dr=t=>({}),Vg=t=>({}),Rr=t=>({}),Yg=t=>({}),Hr=t=>({}),qg=t=>({}),zr=t=>({}),Wg=t=>({}),Fr=t=>({}),jg=t=>({}),Nr=t=>({}),Xg=t=>({}),Vr=t=>({}),Gg=t=>({}),Yr=t=>({}),Ug=t=>({}),qr=t=>({}),xg=t=>({}),Wr=t=>({}),$g=t=>({}),jr=t=>({}),Qg=t=>({}),Xr=t=>({}),Kg=t=>({}),Gr=t=>({}),Zg=t=>({}),Ur=t=>({}),Jg=t=>({}),xr=t=>({}),e0=t=>({}),$r=t=>({}),t0=t=>({}),Qr=t=>({}),n0=t=>({}),Kr=t=>({}),s0=t=>({}),Zr=t=>({}),a0=t=>({}),Jr=t=>({}),i0=t=>({}),el=t=>({}),r0=t=>({}),tl=t=>({}),l0=t=>({}),nl=t=>({}),o0=t=>({}),sl=t=>({}),f0=t=>({}),al=t=>({}),c0=t=>({}),il=t=>({}),u0=t=>({}),rl=t=>({}),d0=t=>({}),ll=t=>({}),p0=t=>({}),ol=t=>({}),m0=t=>({}),fl=t=>({}),h0=t=>({}),cl=t=>({}),g0=t=>({}),ul=t=>({}),b0=t=>({}),dl=t=>({}),v0=t=>({}),pl=t=>({}),_0=t=>({}),ml=t=>({}),k0=t=>({}),hl=t=>({}),E0=t=>({}),gl=t=>({}),C0=t=>({}),bl=t=>({}),y0=t=>({}),vl=t=>({}),w0=t=>({}),_l=t=>({}),S0=t=>({}),kl=t=>({}),T0=t=>({}),El=t=>({}),M0=t=>({}),Cl=t=>({}),P0=t=>({}),yl=t=>({}),I0=t=>({}),wl=t=>({}),A0=t=>({}),Sl=t=>({}),O0=t=>({}),Tl=t=>({}),B0=t=>({}),Ml=t=>({}),L0=t=>({}),Pl=t=>({}),D0=t=>({}),Il=t=>({}),R0=t=>({}),Al=t=>({}),H0=t=>({}),Ol=t=>({}),z0=t=>({}),Bl=t=>({}),F0=t=>({}),Ll=t=>({}),N0=t=>({}),Dl=t=>({}),V0=t=>({}),Rl=t=>({}),Y0=t=>({}),Hl=t=>({}),q0=t=>({}),zl=t=>({}),W0=t=>({}),Fl=t=>({}),j0=t=>({}),Nl=t=>({}),X0=t=>({}),Vl=t=>({}),G0=t=>({}),Yl=t=>({}),U0=t=>({}),ql=t=>({}),x0=t=>({}),Wl=t=>({}),$0=t=>({}),jl=t=>({}),Q0=t=>({}),Xl=t=>({}),K0=t=>({}),Gl=t=>({}),Z0=t=>({}),Ul=t=>({}),J0=t=>({}),xl=t=>({}),eb=t=>({}),$l=t=>({}),tb=t=>({}),Ql=t=>({}),nb=t=>({}),Kl=t=>({}),sb=t=>({}),Zl=t=>({}),ab=t=>({}),Jl=t=>({}),ib=t=>({}),eo=t=>({}),rb=t=>({}),to=t=>({}),lb=t=>({}),no=t=>({}),ob=t=>({}),so=t=>({}),fb=t=>({}),ao=t=>({}),cb=t=>({}),io=t=>({}),ub=t=>({}),ro=t=>({}),db=t=>({}),lo=t=>({}),pb=t=>({}),oo=t=>({}),mb=t=>({}),fo=t=>({}),hb=t=>({}),co=t=>({}),gb=t=>({}),uo=t=>({}),bb=t=>({}),po=t=>({}),vb=t=>({}),mo=t=>({}),_b=t=>({}),ho=t=>({}),kb=t=>({}),go=t=>({}),Eb=t=>({}),bo=t=>({}),Cb=t=>({}),vo=t=>({}),yb=t=>({}),_o=t=>({}),wb=t=>({}),ko=t=>({}),Sb=t=>({}),Eo=t=>({}),Tb=t=>({}),Co=t=>({}),Mb=t=>({}),yo=t=>({}),Pb=t=>({}),wo=t=>({}),Ib=t=>({}),So=t=>({}),Ab=t=>({}),To=t=>({}),Ob=t=>({}),Mo=t=>({}),Bb=t=>({}),Po=t=>({}),Lb=t=>({}),Io=t=>({}),Db=t=>({}),Ao=t=>({}),Rb=t=>({}),Oo=t=>({}),Hb=t=>({}),Bo=t=>({}),zb=t=>({}),Lo=t=>({}),Fb=t=>({}),Do=t=>({}),Nb=t=>({}),Ro=t=>({}),Vb=t=>({}),Ho=t=>({}),Yb=t=>({}),zo=t=>({}),qb=t=>({}),Fo=t=>({});function Wb(t){let e,n,s,a,i,o,r,l,f,c,u,d;const m=t[69]["root-start"],h=U(m,t,t[83],Fo),p=[xb,Ub,Gb],b=[];function g(y,w){return y[13]?0:y[37]?1:2}s=g(t),a=b[s]=p[s](t);let v=t[44]&&t[14]!==!1&&!t[43]&&Gc(),_=(t[13]||t[15])&&Uc(t);const k=t[69].root,E=U(k,t,t[83],qi),S=t[69]["root-end"],I=U(S,t,t[83],Yi);let T=[{class:t[41]},{"data-virtual-list-index":t[23]},Re(t[47])],A={};for(let y=0;y{b[D]=null}),oe(),a=b[s],a?a.p(y,w):(a=b[s]=p[s](y),a.c()),C(a,1),a.m(e,i)),y[44]&&y[14]!==!1&&!y[43]?v||(v=Gc(),v.c(),v.m(e,o)):v&&(v.d(1),v=null),y[13]||y[15]?_?(_.p(y,w),w[0]&40960&&C(_,1)):(_=Uc(y),_.c(),C(_,1),_.m(e,r)):_&&(le(),M(_,1,1,()=>{_=null}),oe()),E&&E.p&&(!c||w[2]&2097152)&&x(E,k,y,y[83],c?Q(k,y[83],w,Uh):$(y[83]),qi),I&&I.p&&(!c||w[2]&2097152)&&x(I,S,y,y[83],c?Q(S,y[83],w,Gh):$(y[83]),Yi),Ae(e,A=Ge(T,[(!c||w[1]&1024)&&{class:y[41]},(!c||w[0]&8388608)&&{"data-virtual-list-index":y[23]},w[1]&65536&&Re(y[47])])),f&&Yt(f.update)&&w[0]&384&&f.update.call(null,{tooltip:y[7],tooltipTrigger:y[8]})},i(y){c||(C(h,y),C(a),C(_),C(E,y),C(I,y),c=!0)},o(y){M(h,y),M(a),M(_),M(E,y),M(I,y),c=!1},d(y){y&&F(e),h&&h.d(y),b[s].d(),v&&v.d(),_&&_.d(),E&&E.d(y),I&&I.d(y),t[82](null),u=!1,d()}}}function jb(t){let e,n=ie(t[1])+"",s,a,i,o,r,l;const f=t[69].default,c=U(f,t,t[83],null);let u=[{class:t[41]},{"data-virtual-list-index":t[23]},Re(t[47])],d={};for(let m=0;m{o[c]=null}),oe(),n=o[e],n?n.p(l,f):(n=o[e]=i[e](l),n.c()),C(n,1),n.m(s.parentNode,s))},i(l){a||(C(n),a=!0)},o(l){M(n),a=!1},d(l){l&&F(s),o[e].d(l)}}}function Ub(t){let e,n,s,a,i,o,r,l,f,c,u,d,m,h,p,b;const g=t[69]["content-start"],v=U(g,t,t[83],dl);let _=t[44]&&t[14]!==!1&&t[43]&&wf(),k=t[36]&&Sf(t);const E=t[69]["inner-start"],S=U(E,t,t[83],cl),I=[rv,iv],T=[];function A(B,q){return B[25]?0:1}l=A(t),f=T[l]=I[l](t);const y=t[69]["inner-end"],w=U(y,t,t[83],Wr),D=t[69].content,O=U(D,t,t[83],qr),L=t[69]["content-end"],j=U(L,t,t[83],Yr);let W=[{class:t[39]},t[38]],Y={};for(let B=0;B{k=null}),oe()),S&&S.p&&(!h||q[2]&2097152)&&x(S,E,B,B[83],h?Q(E,B[83],q,h0):$(B[83]),cl);let X=l;l=A(B),l===X?T[l].p(B,q):(le(),M(T[X],1,1,()=>{T[X]=null}),oe(),f=T[l],f?f.p(B,q):(f=T[l]=I[l](B),f.c()),C(f,1),f.m(o,c)),w&&w.p&&(!h||q[2]&2097152)&&x(w,y,B,B[83],h?Q(y,B[83],q,xg):$(B[83]),Wr),O&&O.p&&(!h||q[2]&2097152)&&x(O,D,B,B[83],h?Q(D,B[83],q,Ug):$(B[83]),qr),j&&j.p&&(!h||q[2]&2097152)&&x(j,L,B,B[83],h?Q(L,B[83],q,Gg):$(B[83]),Yr),(!h||q[1]&512)&&se(n,"class",B[40]),Ae(e,Y=Ge(W,[(!h||q[1]&256)&&{class:B[39]},q[1]&128&&B[38]])),m&&Yt(m.update)&&q[0]&16777216&&m.update.call(null,B[24])},i(B){h||(C(v,B),C(k),C(S,B),C(f),C(w,B),C(O,B),C(j,B),h=!0)},o(B){M(v,B),M(k),M(S,B),M(f),M(w,B),M(O,B),M(j,B),h=!1},d(B){B&&F(e),v&&v.d(B),_&&_.d(),k&&k.d(),S&&S.d(B),T[l].d(),w&&w.d(B),t[77](null),O&&O.d(B),j&&j.d(B),t[78](null),p=!1,ln(b)}}}function xb(t){let e,n,s,a;const i=[cv,fv],o=[];function r(l,f){return l[37]?0:1}return n=r(t),s=o[n]=i[n](t),{c(){e=Z("div"),s.c(),se(e,"class","swipeout-content")},m(l,f){z(l,e,f),o[n].m(e,null),a=!0},p(l,f){let c=n;n=r(l),n===c?o[n].p(l,f):(le(),M(o[c],1,1,()=>{o[c]=null}),oe(),s=o[n],s?s.p(l,f):(s=o[n]=i[n](l),s.c()),C(s,1),s.m(e,null))},i(l){a||(C(s),a=!0)},o(l){M(s),a=!1},d(l){l&&F(e),o[n].d()}}}function $b(t){let e,n,s,a,i,o,r,l,f,c,u,d,m,h;const p=t[69]["content-start"],b=U(p,t,t[83],mr);let g=t[44]&&t[14]!==!1&&t[43]&&No(),v=t[36]&&Vo(t);const _=t[69]["inner-start"],k=U(_,t,t[83],dr),E=[Zb,Kb],S=[];function I(L,j){return L[25]?0:1}r=I(t),l=S[r]=E[r](t);const T=t[69]["inner-end"],A=U(T,t,t[83],Xi),y=t[69].content,w=U(y,t,t[83],ji),D=t[69]["content-end"],O=U(D,t,t[83],Wi);return{c(){e=Z("div"),b&&b.c(),n=V(),g&&g.c(),s=V(),v&&v.c(),a=V(),i=Z("div"),k&&k.c(),o=V(),l.c(),f=V(),A&&A.c(),c=V(),w&&w.c(),u=V(),O&&O.c(),se(i,"class","item-inner"),se(e,"class",t[40])},m(L,j){z(L,e,j),b&&b.m(e,null),N(e,n),g&&g.m(e,null),N(e,s),v&&v.m(e,null),N(e,a),N(e,i),k&&k.m(i,null),N(i,o),S[r].m(i,null),N(i,f),A&&A.m(i,null),t[81](i),N(e,c),w&&w.m(e,null),N(e,u),O&&O.m(e,null),d=!0,m||(h=ht(e,"click",t[45]),m=!0)},p(L,j){b&&b.p&&(!d||j[2]&2097152)&&x(b,p,L,L[83],d?Q(p,L[83],j,_g):$(L[83]),mr),L[44]&&L[14]!==!1&&L[43]?g||(g=No(),g.c(),g.m(e,s)):g&&(g.d(1),g=null),L[36]?v?(v.p(L,j),j[1]&32&&C(v,1)):(v=Vo(L),v.c(),C(v,1),v.m(e,a)):v&&(le(),M(v,1,1,()=>{v=null}),oe()),k&&k.p&&(!d||j[2]&2097152)&&x(k,_,L,L[83],d?Q(_,L[83],j,bg):$(L[83]),dr);let W=r;r=I(L),r===W?S[r].p(L,j):(le(),M(S[W],1,1,()=>{S[W]=null}),oe(),l=S[r],l?l.p(L,j):(l=S[r]=E[r](L),l.c()),C(l,1),l.m(i,f)),A&&A.p&&(!d||j[2]&2097152)&&x(A,T,L,L[83],d?Q(T,L[83],j,Qh):$(L[83]),Xi),w&&w.p&&(!d||j[2]&2097152)&&x(w,y,L,L[83],d?Q(y,L[83],j,$h):$(L[83]),ji),O&&O.p&&(!d||j[2]&2097152)&&x(O,D,L,L[83],d?Q(D,L[83],j,xh):$(L[83]),Wi),(!d||j[1]&512)&&se(e,"class",L[40])},i(L){d||(C(b,L),C(v),C(k,L),C(l),C(A,L),C(w,L),C(O,L),d=!0)},o(L){M(b,L),M(v),M(k,L),M(l),M(A,L),M(w,L),M(O,L),d=!1},d(L){L&&F(e),b&&b.d(L),g&&g.d(),v&&v.d(),k&&k.d(L),S[r].d(),A&&A.d(L),t[81](null),w&&w.d(L),O&&O.d(L),m=!1,h()}}}function Qb(t){let e,n,s,a,i,o,r,l,f,c,u,d,m,h,p,b,g,v,_,k,E;const S=t[69]["content-start"],I=U(S,t,t[83],Vr);let T=t[44]&&t[14]!==!1&&t[43]&&af(),A=t[36]&&rf(t);const y=t[69]["inner-start"],w=U(y,t,t[83],Fr),D=[nv,tv],O=[];function L(H,G){return H[25]?0:1}h=L(t),p=O[h]=D[h](t);const j=t[69]["inner-end"],W=U(j,t,t[83],br),Y=t[69].content,B=U(Y,t,t[83],gr),q=t[69]["content-end"],X=U(q,t,t[83],hr);return{c(){e=Z("label"),I&&I.c(),n=V(),T&&T.c(),s=V(),a=Z("input"),r=V(),l=Z("i"),c=V(),A&&A.c(),u=V(),d=Z("div"),w&&w.c(),m=V(),p.c(),b=V(),W&&W.c(),g=V(),B&&B.c(),v=V(),X&&X.c(),a.value=i=typeof t[19]>"u"?"":t[19],se(a,"name",t[18]),a.checked=t[0],a.readOnly=t[20],a.disabled=t[22],a.required=t[21],se(a,"type",o=t[17]?"radio":"checkbox"),se(l,"class",f=`icon icon-${t[17]?"radio":"checkbox"}`),se(d,"class","item-inner"),se(e,"class",t[40])},m(H,G){z(H,e,G),I&&I.m(e,null),N(e,n),T&&T.m(e,null),N(e,s),N(e,a),t[79](a),N(e,r),N(e,l),N(e,c),A&&A.m(e,null),N(e,u),N(e,d),w&&w.m(d,null),N(d,m),O[h].m(d,null),N(d,b),W&&W.m(d,null),t[80](d),N(e,g),B&&B.m(e,null),N(e,v),X&&X.m(e,null),_=!0,k||(E=[ht(a,"change",t[46]),ht(e,"click",t[45])],k=!0)},p(H,G){I&&I.p&&(!_||G[2]&2097152)&&x(I,S,H,H[83],_?Q(S,H[83],G,Xg):$(H[83]),Vr),H[44]&&H[14]!==!1&&H[43]?T||(T=af(),T.c(),T.m(e,s)):T&&(T.d(1),T=null),(!_||G[0]&524288&&i!==(i=typeof H[19]>"u"?"":H[19])&&a.value!==i)&&(a.value=i),(!_||G[0]&262144)&&se(a,"name",H[18]),(!_||G[0]&1)&&(a.checked=H[0]),(!_||G[0]&1048576)&&(a.readOnly=H[20]),(!_||G[0]&4194304)&&(a.disabled=H[22]),(!_||G[0]&2097152)&&(a.required=H[21]),(!_||G[0]&131072&&o!==(o=H[17]?"radio":"checkbox"))&&se(a,"type",o),(!_||G[0]&131072&&f!==(f=`icon icon-${H[17]?"radio":"checkbox"}`))&&se(l,"class",f),H[36]?A?(A.p(H,G),G[1]&32&&C(A,1)):(A=rf(H),A.c(),C(A,1),A.m(e,u)):A&&(le(),M(A,1,1,()=>{A=null}),oe()),w&&w.p&&(!_||G[2]&2097152)&&x(w,y,H,H[83],_?Q(y,H[83],G,Wg):$(H[83]),Fr);let ce=h;h=L(H),h===ce?O[h].p(H,G):(le(),M(O[ce],1,1,()=>{O[ce]=null}),oe(),p=O[h],p?p.p(H,G):(p=O[h]=D[h](H),p.c()),C(p,1),p.m(d,b)),W&&W.p&&(!_||G[2]&2097152)&&x(W,j,H,H[83],_?Q(j,H[83],G,Cg):$(H[83]),br),B&&B.p&&(!_||G[2]&2097152)&&x(B,Y,H,H[83],_?Q(Y,H[83],G,Eg):$(H[83]),gr),X&&X.p&&(!_||G[2]&2097152)&&x(X,q,H,H[83],_?Q(q,H[83],G,kg):$(H[83]),hr),(!_||G[1]&512)&&se(e,"class",H[40])},i(H){_||(C(I,H),C(A),C(w,H),C(p),C(W,H),C(B,H),C(X,H),_=!0)},o(H){M(I,H),M(A),M(w,H),M(p),M(W,H),M(B,H),M(X,H),_=!1},d(H){H&&F(e),I&&I.d(H),T&&T.d(),t[79](null),A&&A.d(),w&&w.d(H),O[h].d(),W&&W.d(H),t[80](null),B&&B.d(H),X&&X.d(H),k=!1,ln(E)}}}function No(t){let e;return{c(){e=Z("div"),se(e,"class","sortable-handler")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function Vo(t){let e,n,s,a=typeof t[3]<"u"&&Yo(t);const i=t[69].media,o=U(i,t,t[83],pr);return{c(){e=Z("div"),a&&a.c(),n=V(),o&&o.c(),se(e,"class","item-media")},m(r,l){z(r,e,l),a&&a.m(e,null),N(e,n),o&&o.m(e,null),s=!0},p(r,l){typeof r[3]<"u"?a?a.p(r,l):(a=Yo(r),a.c(),a.m(e,n)):a&&(a.d(1),a=null),o&&o.p&&(!s||l[2]&2097152)&&x(o,i,r,r[83],s?Q(i,r[83],l,vg):$(r[83]),pr)},i(r){s||(C(o,r),s=!0)},o(r){M(o,r),s=!1},d(r){r&&F(e),a&&a.d(),o&&o.d(r)}}}function Yo(t){let e,n;return{c(){e=Z("img"),Rt(e.src,n=t[3])||se(e,"src",n)},m(s,a){z(s,e,a)},p(s,a){a[0]&8&&!Rt(e.src,n=s[3])&&se(e,"src",n)},d(s){s&&F(e)}}}function Kb(t){let e,n,s,a,i,o,r;const l=t[69]["before-title"],f=U(l,t,t[83],er);let c=(t[35]||t[34]||t[33])&&qo(t);const u=t[69]["after-title"],d=U(u,t,t[83],Qi);let m=t[30]&&Xo(t);const h=t[69].inner,p=U(h,t,t[83],Gi);let b=!(t[13]||t[15])&&xo(t);return{c(){f&&f.c(),e=V(),c&&c.c(),n=V(),d&&d.c(),s=V(),m&&m.c(),a=V(),p&&p.c(),i=V(),b&&b.c(),o=Ze()},m(g,v){f&&f.m(g,v),z(g,e,v),c&&c.m(g,v),z(g,n,v),d&&d.m(g,v),z(g,s,v),m&&m.m(g,v),z(g,a,v),p&&p.m(g,v),z(g,i,v),b&&b.m(g,v),z(g,o,v),r=!0},p(g,v){f&&f.p&&(!r||v[2]&2097152)&&x(f,l,g,g[83],r?Q(l,g[83],v,ig):$(g[83]),er),g[35]||g[34]||g[33]?c?(c.p(g,v),v[1]&28&&C(c,1)):(c=qo(g),c.c(),C(c,1),c.m(n.parentNode,n)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!r||v[2]&2097152)&&x(d,u,g,g[83],r?Q(u,g[83],v,tg):$(g[83]),Qi),g[30]?m?(m.p(g,v),v[0]&1073741824&&C(m,1)):(m=Xo(g),m.c(),C(m,1),m.m(a.parentNode,a)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),p&&p.p&&(!r||v[2]&2097152)&&x(p,h,g,g[83],r?Q(h,g[83],v,Kh):$(g[83]),Gi),g[13]||g[15]?b&&(le(),M(b,1,1,()=>{b=null}),oe()):b?(b.p(g,v),v[0]&40960&&C(b,1)):(b=xo(g),b.c(),C(b,1),b.m(o.parentNode,o))},i(g){r||(C(f,g),C(c),C(d,g),C(m),C(p,g),C(b),r=!0)},o(g){M(f,g),M(c),M(d,g),M(m),M(p,g),M(b),r=!1},d(g){g&&(F(e),F(n),F(s),F(a),F(i),F(o)),f&&f.d(g),c&&c.d(g),d&&d.d(g),m&&m.d(g),p&&p.d(g),b&&b.d(g)}}}function Zb(t){let e,n,s,a,i,o,r,l,f,c,u,d,m=t[34]&&$o(t);const h=t[69]["before-title"],p=U(h,t,t[83],cr);let b=t[35]&&Qo(t);const g=t[69]["after-title"],v=U(g,t,t[83],or);let _=t[30]&&Ko(t),k=t[32]&&ef(t),E=t[31]&&tf(t);const S=t[69].inner,I=U(S,t,t[83],nr);let T=!(t[13]||t[15])&&nf(t),A=t[33]&&sf(t);return{c(){m&&m.c(),e=V(),n=Z("div"),p&&p.c(),s=V(),b&&b.c(),a=V(),v&&v.c(),i=V(),_&&_.c(),o=V(),k&&k.c(),r=V(),E&&E.c(),l=V(),I&&I.c(),f=V(),T&&T.c(),c=V(),A&&A.c(),u=Ze(),se(n,"class","item-title-row")},m(y,w){m&&m.m(y,w),z(y,e,w),z(y,n,w),p&&p.m(n,null),N(n,s),b&&b.m(n,null),N(n,a),v&&v.m(n,null),N(n,i),_&&_.m(n,null),z(y,o,w),k&&k.m(y,w),z(y,r,w),E&&E.m(y,w),z(y,l,w),I&&I.m(y,w),z(y,f,w),T&&T.m(y,w),z(y,c,w),A&&A.m(y,w),z(y,u,w),d=!0},p(y,w){y[34]?m?(m.p(y,w),w[1]&8&&C(m,1)):(m=$o(y),m.c(),C(m,1),m.m(e.parentNode,e)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),p&&p.p&&(!d||w[2]&2097152)&&x(p,h,y,y[83],d?Q(h,y[83],w,hg):$(y[83]),cr),y[35]?b?(b.p(y,w),w[1]&16&&C(b,1)):(b=Qo(y),b.c(),C(b,1),b.m(n,a)):b&&(le(),M(b,1,1,()=>{b=null}),oe()),v&&v.p&&(!d||w[2]&2097152)&&x(v,g,y,y[83],d?Q(g,y[83],w,pg):$(y[83]),or),y[30]?_?(_.p(y,w),w[0]&1073741824&&C(_,1)):(_=Ko(y),_.c(),C(_,1),_.m(n,null)):_&&(le(),M(_,1,1,()=>{_=null}),oe()),y[32]?k?(k.p(y,w),w[1]&2&&C(k,1)):(k=ef(y),k.c(),C(k,1),k.m(r.parentNode,r)):k&&(le(),M(k,1,1,()=>{k=null}),oe()),y[31]?E?(E.p(y,w),w[1]&1&&C(E,1)):(E=tf(y),E.c(),C(E,1),E.m(l.parentNode,l)):E&&(le(),M(E,1,1,()=>{E=null}),oe()),I&&I.p&&(!d||w[2]&2097152)&&x(I,S,y,y[83],d?Q(S,y[83],w,lg):$(y[83]),nr),y[13]||y[15]?T&&(le(),M(T,1,1,()=>{T=null}),oe()):T?(T.p(y,w),w[0]&40960&&C(T,1)):(T=nf(y),T.c(),C(T,1),T.m(c.parentNode,c)),y[33]?A?(A.p(y,w),w[1]&4&&C(A,1)):(A=sf(y),A.c(),C(A,1),A.m(u.parentNode,u)):A&&(le(),M(A,1,1,()=>{A=null}),oe())},i(y){d||(C(m),C(p,y),C(b),C(v,y),C(_),C(k),C(E),C(I,y),C(T),C(A),d=!0)},o(y){M(m),M(p,y),M(b),M(v,y),M(_),M(k),M(E),M(I,y),M(T),M(A),d=!1},d(y){y&&(F(e),F(n),F(o),F(r),F(l),F(f),F(c),F(u)),m&&m.d(y),p&&p.d(y),b&&b.d(),v&&v.d(y),_&&_.d(),k&&k.d(y),E&&E.d(y),I&&I.d(y),T&&T.d(y),A&&A.d(y)}}}function qo(t){let e,n,s=ie(t[1])+"",a,i,o,r,l=t[34]&&Wo(t);const f=t[69].title,c=U(f,t,t[83],Zi);let u=t[33]&&jo(t);return{c(){e=Z("div"),l&&l.c(),n=V(),a=ge(s),i=V(),c&&c.c(),o=V(),u&&u.c(),se(e,"class","item-title")},m(d,m){z(d,e,m),l&&l.m(e,null),N(e,n),N(e,a),N(e,i),c&&c.m(e,null),N(e,o),u&&u.m(e,null),r=!0},p(d,m){d[34]?l?(l.p(d,m),m[1]&8&&C(l,1)):(l=Wo(d),l.c(),C(l,1),l.m(e,n)):l&&(le(),M(l,1,1,()=>{l=null}),oe()),(!r||m[0]&2)&&s!==(s=ie(d[1])+"")&&we(a,s),c&&c.p&&(!r||m[2]&2097152)&&x(c,f,d,d[83],r?Q(f,d[83],m,sg):$(d[83]),Zi),d[33]?u?(u.p(d,m),m[1]&4&&C(u,1)):(u=jo(d),u.c(),C(u,1),u.m(e,null)):u&&(le(),M(u,1,1,()=>{u=null}),oe())},i(d){r||(C(l),C(c,d),C(u),r=!0)},o(d){M(l),M(c,d),M(u),r=!1},d(d){d&&F(e),l&&l.d(),c&&c.d(d),u&&u.d()}}}function Wo(t){let e,n=ie(t[5])+"",s,a,i;const o=t[69].header,r=U(o,t,t[83],Ji);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-header")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&32)&&n!==(n=ie(l[5])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,ag):$(l[83]),Ji)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function jo(t){let e,n=ie(t[6])+"",s,a,i;const o=t[69].footer,r=U(o,t,t[83],Ki);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-footer")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&64)&&n!==(n=ie(l[6])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,ng):$(l[83]),Ki)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Xo(t){let e,n,s,a,i,o;const r=t[69]["after-start"],l=U(r,t,t[83],$i);let f=typeof t[9]<"u"&&Go(t),c=typeof t[10]<"u"&&Uo(t);const u=t[69].after,d=U(u,t,t[83],xi),m=t[69]["after-end"],h=U(m,t,t[83],Ui);return{c(){e=Z("div"),l&&l.c(),n=V(),f&&f.c(),s=V(),c&&c.c(),a=V(),d&&d.c(),i=V(),h&&h.c(),se(e,"class","item-after")},m(p,b){z(p,e,b),l&&l.m(e,null),N(e,n),f&&f.m(e,null),N(e,s),c&&c.m(e,null),N(e,a),d&&d.m(e,null),N(e,i),h&&h.m(e,null),o=!0},p(p,b){l&&l.p&&(!o||b[2]&2097152)&&x(l,r,p,p[83],o?Q(r,p[83],b,eg):$(p[83]),$i),typeof p[9]<"u"?f?f.p(p,b):(f=Go(p),f.c(),f.m(e,s)):f&&(f.d(1),f=null),typeof p[10]<"u"?c?(c.p(p,b),b[0]&1024&&C(c,1)):(c=Uo(p),c.c(),C(c,1),c.m(e,a)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!o||b[2]&2097152)&&x(d,u,p,p[83],o?Q(u,p[83],b,Jh):$(p[83]),xi),h&&h.p&&(!o||b[2]&2097152)&&x(h,m,p,p[83],o?Q(m,p[83],b,Zh):$(p[83]),Ui)},i(p){o||(C(l,p),C(c),C(d,p),C(h,p),o=!0)},o(p){M(l,p),M(c),M(d,p),M(h,p),o=!1},d(p){p&&F(e),l&&l.d(p),f&&f.d(),c&&c.d(),d&&d.d(p),h&&h.d(p)}}}function Go(t){let e,n=ie(t[9])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&512&&n!==(n=ie(a[9])+"")&&we(s,n)},d(a){a&&F(e)}}}function Uo(t){let e,n;return e=new zt({props:{color:t[11],$$slots:{default:[Jb]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&2048&&(i.color=s[11]),a[0]&1024|a[2]&2097152&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Jb(t){let e=ie(t[10])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&1024&&e!==(e=ie(s[10])+"")&&we(n,e)},d(s){s&&F(n)}}}function xo(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function $o(t){let e,n=ie(t[5])+"",s,a,i;const o=t[69].header,r=U(o,t,t[83],ur);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-header")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&32)&&n!==(n=ie(l[5])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,gg):$(l[83]),ur)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Qo(t){let e,n=ie(t[1])+"",s,a,i;const o=t[69].title,r=U(o,t,t[83],fr);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-title")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&2)&&n!==(n=ie(l[1])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,mg):$(l[83]),fr)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Ko(t){let e,n,s,a,i,o;const r=t[69]["after-start"],l=U(r,t,t[83],lr);let f=typeof t[9]<"u"&&Zo(t),c=typeof t[10]<"u"&&Jo(t);const u=t[69].after,d=U(u,t,t[83],rr),m=t[69]["after-end"],h=U(m,t,t[83],ir);return{c(){e=Z("div"),l&&l.c(),n=V(),f&&f.c(),s=V(),c&&c.c(),a=V(),d&&d.c(),i=V(),h&&h.c(),se(e,"class","item-after")},m(p,b){z(p,e,b),l&&l.m(e,null),N(e,n),f&&f.m(e,null),N(e,s),c&&c.m(e,null),N(e,a),d&&d.m(e,null),N(e,i),h&&h.m(e,null),o=!0},p(p,b){l&&l.p&&(!o||b[2]&2097152)&&x(l,r,p,p[83],o?Q(r,p[83],b,dg):$(p[83]),lr),typeof p[9]<"u"?f?f.p(p,b):(f=Zo(p),f.c(),f.m(e,s)):f&&(f.d(1),f=null),typeof p[10]<"u"?c?(c.p(p,b),b[0]&1024&&C(c,1)):(c=Jo(p),c.c(),C(c,1),c.m(e,a)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!o||b[2]&2097152)&&x(d,u,p,p[83],o?Q(u,p[83],b,ug):$(p[83]),rr),h&&h.p&&(!o||b[2]&2097152)&&x(h,m,p,p[83],o?Q(m,p[83],b,cg):$(p[83]),ir)},i(p){o||(C(l,p),C(c),C(d,p),C(h,p),o=!0)},o(p){M(l,p),M(c),M(d,p),M(h,p),o=!1},d(p){p&&F(e),l&&l.d(p),f&&f.d(),c&&c.d(),d&&d.d(p),h&&h.d(p)}}}function Zo(t){let e,n=ie(t[9])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&512&&n!==(n=ie(a[9])+"")&&we(s,n)},d(a){a&&F(e)}}}function Jo(t){let e,n;return e=new zt({props:{color:t[11],$$slots:{default:[ev]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&2048&&(i.color=s[11]),a[0]&1024|a[2]&2097152&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function ev(t){let e=ie(t[10])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&1024&&e!==(e=ie(s[10])+"")&&we(n,e)},d(s){s&&F(n)}}}function ef(t){let e,n=ie(t[4])+"",s,a,i;const o=t[69].subtitle,r=U(o,t,t[83],ar);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-subtitle")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&16)&&n!==(n=ie(l[4])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,fg):$(l[83]),ar)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function tf(t){let e,n=ie(t[2])+"",s,a,i;const o=t[69].text,r=U(o,t,t[83],sr);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-text")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&4)&&n!==(n=ie(l[2])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,og):$(l[83]),sr)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function nf(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function sf(t){let e,n=ie(t[6])+"",s,a,i;const o=t[69].footer,r=U(o,t,t[83],tr);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-footer")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&64)&&n!==(n=ie(l[6])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,rg):$(l[83]),tr)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function af(t){let e;return{c(){e=Z("div"),se(e,"class","sortable-handler")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function rf(t){let e,n,s,a=typeof t[3]<"u"&&lf(t);const i=t[69].media,o=U(i,t,t[83],Nr);return{c(){e=Z("div"),a&&a.c(),n=V(),o&&o.c(),se(e,"class","item-media")},m(r,l){z(r,e,l),a&&a.m(e,null),N(e,n),o&&o.m(e,null),s=!0},p(r,l){typeof r[3]<"u"?a?a.p(r,l):(a=lf(r),a.c(),a.m(e,n)):a&&(a.d(1),a=null),o&&o.p&&(!s||l[2]&2097152)&&x(o,i,r,r[83],s?Q(i,r[83],l,jg):$(r[83]),Nr)},i(r){s||(C(o,r),s=!0)},o(r){M(o,r),s=!1},d(r){r&&F(e),a&&a.d(),o&&o.d(r)}}}function lf(t){let e,n;return{c(){e=Z("img"),Rt(e.src,n=t[3])||se(e,"src",n)},m(s,a){z(s,e,a)},p(s,a){a[0]&8&&!Rt(e.src,n=s[3])&&se(e,"src",n)},d(s){s&&F(e)}}}function tv(t){let e,n,s,a,i,o,r;const l=t[69]["before-title"],f=U(l,t,t[83],Tr);let c=(t[35]||t[34]||t[33])&&of(t);const u=t[69]["after-title"],d=U(u,t,t[83],Cr);let m=t[30]&&uf(t);const h=t[69].inner,p=U(h,t,t[83],vr);let b=!(t[13]||t[15])&&mf(t);return{c(){f&&f.c(),e=V(),c&&c.c(),n=V(),d&&d.c(),s=V(),m&&m.c(),a=V(),p&&p.c(),i=V(),b&&b.c(),o=Ze()},m(g,v){f&&f.m(g,v),z(g,e,v),c&&c.m(g,v),z(g,n,v),d&&d.m(g,v),z(g,s,v),m&&m.m(g,v),z(g,a,v),p&&p.m(g,v),z(g,i,v),b&&b.m(g,v),z(g,o,v),r=!0},p(g,v){f&&f.p&&(!r||v[2]&2097152)&&x(f,l,g,g[83],r?Q(l,g[83],v,Og):$(g[83]),Tr),g[35]||g[34]||g[33]?c?(c.p(g,v),v[1]&28&&C(c,1)):(c=of(g),c.c(),C(c,1),c.m(n.parentNode,n)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!r||v[2]&2097152)&&x(d,u,g,g[83],r?Q(u,g[83],v,Mg):$(g[83]),Cr),g[30]?m?(m.p(g,v),v[0]&1073741824&&C(m,1)):(m=uf(g),m.c(),C(m,1),m.m(a.parentNode,a)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),p&&p.p&&(!r||v[2]&2097152)&&x(p,h,g,g[83],r?Q(h,g[83],v,yg):$(g[83]),vr),g[13]||g[15]?b&&(le(),M(b,1,1,()=>{b=null}),oe()):b?(b.p(g,v),v[0]&40960&&C(b,1)):(b=mf(g),b.c(),C(b,1),b.m(o.parentNode,o))},i(g){r||(C(f,g),C(c),C(d,g),C(m),C(p,g),C(b),r=!0)},o(g){M(f,g),M(c),M(d,g),M(m),M(p,g),M(b),r=!1},d(g){g&&(F(e),F(n),F(s),F(a),F(i),F(o)),f&&f.d(g),c&&c.d(g),d&&d.d(g),m&&m.d(g),p&&p.d(g),b&&b.d(g)}}}function nv(t){let e,n,s,a,i,o,r,l,f,c,u,d,m=t[34]&&hf(t);const h=t[69]["before-title"],p=U(h,t,t[83],Hr);let b=t[35]&&gf(t);const g=t[69]["after-title"],v=U(g,t,t[83],Dr);let _=t[30]&&bf(t),k=t[32]&&kf(t),E=t[31]&&Ef(t);const S=t[69].inner,I=U(S,t,t[83],Pr);let T=!(t[13]||t[15])&&Cf(t),A=t[33]&&yf(t);return{c(){m&&m.c(),e=V(),n=Z("div"),p&&p.c(),s=V(),b&&b.c(),a=V(),v&&v.c(),i=V(),_&&_.c(),o=V(),k&&k.c(),r=V(),E&&E.c(),l=V(),I&&I.c(),f=V(),T&&T.c(),c=V(),A&&A.c(),u=Ze(),se(n,"class","item-title-row")},m(y,w){m&&m.m(y,w),z(y,e,w),z(y,n,w),p&&p.m(n,null),N(n,s),b&&b.m(n,null),N(n,a),v&&v.m(n,null),N(n,i),_&&_.m(n,null),z(y,o,w),k&&k.m(y,w),z(y,r,w),E&&E.m(y,w),z(y,l,w),I&&I.m(y,w),z(y,f,w),T&&T.m(y,w),z(y,c,w),A&&A.m(y,w),z(y,u,w),d=!0},p(y,w){y[34]?m?(m.p(y,w),w[1]&8&&C(m,1)):(m=hf(y),m.c(),C(m,1),m.m(e.parentNode,e)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),p&&p.p&&(!d||w[2]&2097152)&&x(p,h,y,y[83],d?Q(h,y[83],w,Yg):$(y[83]),Hr),y[35]?b?(b.p(y,w),w[1]&16&&C(b,1)):(b=gf(y),b.c(),C(b,1),b.m(n,a)):b&&(le(),M(b,1,1,()=>{b=null}),oe()),v&&v.p&&(!d||w[2]&2097152)&&x(v,g,y,y[83],d?Q(g,y[83],w,Ng):$(y[83]),Dr),y[30]?_?(_.p(y,w),w[0]&1073741824&&C(_,1)):(_=bf(y),_.c(),C(_,1),_.m(n,null)):_&&(le(),M(_,1,1,()=>{_=null}),oe()),y[32]?k?(k.p(y,w),w[1]&2&&C(k,1)):(k=kf(y),k.c(),C(k,1),k.m(r.parentNode,r)):k&&(le(),M(k,1,1,()=>{k=null}),oe()),y[31]?E?(E.p(y,w),w[1]&1&&C(E,1)):(E=Ef(y),E.c(),C(E,1),E.m(l.parentNode,l)):E&&(le(),M(E,1,1,()=>{E=null}),oe()),I&&I.p&&(!d||w[2]&2097152)&&x(I,S,y,y[83],d?Q(S,y[83],w,Lg):$(y[83]),Pr),y[13]||y[15]?T&&(le(),M(T,1,1,()=>{T=null}),oe()):T?(T.p(y,w),w[0]&40960&&C(T,1)):(T=Cf(y),T.c(),C(T,1),T.m(c.parentNode,c)),y[33]?A?(A.p(y,w),w[1]&4&&C(A,1)):(A=yf(y),A.c(),C(A,1),A.m(u.parentNode,u)):A&&(le(),M(A,1,1,()=>{A=null}),oe())},i(y){d||(C(m),C(p,y),C(b),C(v,y),C(_),C(k),C(E),C(I,y),C(T),C(A),d=!0)},o(y){M(m),M(p,y),M(b),M(v,y),M(_),M(k),M(E),M(I,y),M(T),M(A),d=!1},d(y){y&&(F(e),F(n),F(o),F(r),F(l),F(f),F(c),F(u)),m&&m.d(y),p&&p.d(y),b&&b.d(),v&&v.d(y),_&&_.d(),k&&k.d(y),E&&E.d(y),I&&I.d(y),T&&T.d(y),A&&A.d(y)}}}function of(t){let e,n,s=ie(t[1])+"",a,i,o,r,l=t[34]&&ff(t);const f=t[69].title,c=U(f,t,t[83],wr);let u=t[33]&&cf(t);return{c(){e=Z("div"),l&&l.c(),n=V(),a=ge(s),i=V(),c&&c.c(),o=V(),u&&u.c(),se(e,"class","item-title")},m(d,m){z(d,e,m),l&&l.m(e,null),N(e,n),N(e,a),N(e,i),c&&c.m(e,null),N(e,o),u&&u.m(e,null),r=!0},p(d,m){d[34]?l?(l.p(d,m),m[1]&8&&C(l,1)):(l=ff(d),l.c(),C(l,1),l.m(e,n)):l&&(le(),M(l,1,1,()=>{l=null}),oe()),(!r||m[0]&2)&&s!==(s=ie(d[1])+"")&&we(a,s),c&&c.p&&(!r||m[2]&2097152)&&x(c,f,d,d[83],r?Q(f,d[83],m,Ig):$(d[83]),wr),d[33]?u?(u.p(d,m),m[1]&4&&C(u,1)):(u=cf(d),u.c(),C(u,1),u.m(e,null)):u&&(le(),M(u,1,1,()=>{u=null}),oe())},i(d){r||(C(l),C(c,d),C(u),r=!0)},o(d){M(l),M(c,d),M(u),r=!1},d(d){d&&F(e),l&&l.d(),c&&c.d(d),u&&u.d()}}}function ff(t){let e,n=ie(t[5])+"",s,a,i;const o=t[69].header,r=U(o,t,t[83],Sr);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-header")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&32)&&n!==(n=ie(l[5])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Ag):$(l[83]),Sr)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function cf(t){let e,n=ie(t[6])+"",s,a,i;const o=t[69].footer,r=U(o,t,t[83],yr);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-footer")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&64)&&n!==(n=ie(l[6])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Pg):$(l[83]),yr)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function uf(t){let e,n,s,a,i,o;const r=t[69]["after-start"],l=U(r,t,t[83],Er);let f=typeof t[9]<"u"&&df(t),c=typeof t[10]<"u"&&pf(t);const u=t[69].after,d=U(u,t,t[83],kr),m=t[69]["after-end"],h=U(m,t,t[83],_r);return{c(){e=Z("div"),l&&l.c(),n=V(),f&&f.c(),s=V(),c&&c.c(),a=V(),d&&d.c(),i=V(),h&&h.c(),se(e,"class","item-after")},m(p,b){z(p,e,b),l&&l.m(e,null),N(e,n),f&&f.m(e,null),N(e,s),c&&c.m(e,null),N(e,a),d&&d.m(e,null),N(e,i),h&&h.m(e,null),o=!0},p(p,b){l&&l.p&&(!o||b[2]&2097152)&&x(l,r,p,p[83],o?Q(r,p[83],b,Tg):$(p[83]),Er),typeof p[9]<"u"?f?f.p(p,b):(f=df(p),f.c(),f.m(e,s)):f&&(f.d(1),f=null),typeof p[10]<"u"?c?(c.p(p,b),b[0]&1024&&C(c,1)):(c=pf(p),c.c(),C(c,1),c.m(e,a)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!o||b[2]&2097152)&&x(d,u,p,p[83],o?Q(u,p[83],b,Sg):$(p[83]),kr),h&&h.p&&(!o||b[2]&2097152)&&x(h,m,p,p[83],o?Q(m,p[83],b,wg):$(p[83]),_r)},i(p){o||(C(l,p),C(c),C(d,p),C(h,p),o=!0)},o(p){M(l,p),M(c),M(d,p),M(h,p),o=!1},d(p){p&&F(e),l&&l.d(p),f&&f.d(),c&&c.d(),d&&d.d(p),h&&h.d(p)}}}function df(t){let e,n=ie(t[9])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&512&&n!==(n=ie(a[9])+"")&&we(s,n)},d(a){a&&F(e)}}}function pf(t){let e,n;return e=new zt({props:{color:t[11],$$slots:{default:[sv]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&2048&&(i.color=s[11]),a[0]&1024|a[2]&2097152&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function sv(t){let e=ie(t[10])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&1024&&e!==(e=ie(s[10])+"")&&we(n,e)},d(s){s&&F(n)}}}function mf(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function hf(t){let e,n=ie(t[5])+"",s,a,i;const o=t[69].header,r=U(o,t,t[83],zr);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-header")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&32)&&n!==(n=ie(l[5])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,qg):$(l[83]),zr)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function gf(t){let e,n=ie(t[1])+"",s,a,i;const o=t[69].title,r=U(o,t,t[83],Rr);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-title")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&2)&&n!==(n=ie(l[1])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Vg):$(l[83]),Rr)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function bf(t){let e,n,s,a,i,o;const r=t[69]["after-start"],l=U(r,t,t[83],Lr);let f=typeof t[9]<"u"&&vf(t),c=typeof t[10]<"u"&&_f(t);const u=t[69].after,d=U(u,t,t[83],Br),m=t[69]["after-end"],h=U(m,t,t[83],Or);return{c(){e=Z("div"),l&&l.c(),n=V(),f&&f.c(),s=V(),c&&c.c(),a=V(),d&&d.c(),i=V(),h&&h.c(),se(e,"class","item-after")},m(p,b){z(p,e,b),l&&l.m(e,null),N(e,n),f&&f.m(e,null),N(e,s),c&&c.m(e,null),N(e,a),d&&d.m(e,null),N(e,i),h&&h.m(e,null),o=!0},p(p,b){l&&l.p&&(!o||b[2]&2097152)&&x(l,r,p,p[83],o?Q(r,p[83],b,Fg):$(p[83]),Lr),typeof p[9]<"u"?f?f.p(p,b):(f=vf(p),f.c(),f.m(e,s)):f&&(f.d(1),f=null),typeof p[10]<"u"?c?(c.p(p,b),b[0]&1024&&C(c,1)):(c=_f(p),c.c(),C(c,1),c.m(e,a)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!o||b[2]&2097152)&&x(d,u,p,p[83],o?Q(u,p[83],b,zg):$(p[83]),Br),h&&h.p&&(!o||b[2]&2097152)&&x(h,m,p,p[83],o?Q(m,p[83],b,Hg):$(p[83]),Or)},i(p){o||(C(l,p),C(c),C(d,p),C(h,p),o=!0)},o(p){M(l,p),M(c),M(d,p),M(h,p),o=!1},d(p){p&&F(e),l&&l.d(p),f&&f.d(),c&&c.d(),d&&d.d(p),h&&h.d(p)}}}function vf(t){let e,n=ie(t[9])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&512&&n!==(n=ie(a[9])+"")&&we(s,n)},d(a){a&&F(e)}}}function _f(t){let e,n;return e=new zt({props:{color:t[11],$$slots:{default:[av]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&2048&&(i.color=s[11]),a[0]&1024|a[2]&2097152&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function av(t){let e=ie(t[10])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&1024&&e!==(e=ie(s[10])+"")&&we(n,e)},d(s){s&&F(n)}}}function kf(t){let e,n=ie(t[4])+"",s,a,i;const o=t[69].subtitle,r=U(o,t,t[83],Ar);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-subtitle")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&16)&&n!==(n=ie(l[4])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Rg):$(l[83]),Ar)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Ef(t){let e,n=ie(t[2])+"",s,a,i;const o=t[69].text,r=U(o,t,t[83],Ir);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-text")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&4)&&n!==(n=ie(l[2])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Dg):$(l[83]),Ir)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Cf(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function yf(t){let e,n=ie(t[6])+"",s,a,i;const o=t[69].footer,r=U(o,t,t[83],Mr);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-footer")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&64)&&n!==(n=ie(l[6])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Bg):$(l[83]),Mr)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function wf(t){let e;return{c(){e=Z("div"),se(e,"class","sortable-handler")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function Sf(t){let e,n,s,a=typeof t[3]<"u"&&Tf(t);const i=t[69].media,o=U(i,t,t[83],ul);return{c(){e=Z("div"),a&&a.c(),n=V(),o&&o.c(),se(e,"class","item-media")},m(r,l){z(r,e,l),a&&a.m(e,null),N(e,n),o&&o.m(e,null),s=!0},p(r,l){typeof r[3]<"u"?a?a.p(r,l):(a=Tf(r),a.c(),a.m(e,n)):a&&(a.d(1),a=null),o&&o.p&&(!s||l[2]&2097152)&&x(o,i,r,r[83],s?Q(i,r[83],l,g0):$(r[83]),ul)},i(r){s||(C(o,r),s=!0)},o(r){M(o,r),s=!1},d(r){r&&F(e),a&&a.d(),o&&o.d(r)}}}function Tf(t){let e,n;return{c(){e=Z("img"),Rt(e.src,n=t[3])||se(e,"src",n)},m(s,a){z(s,e,a)},p(s,a){a[0]&8&&!Rt(e.src,n=s[3])&&se(e,"src",n)},d(s){s&&F(e)}}}function iv(t){let e,n,s,a,i,o,r;const l=t[69]["before-title"],f=U(l,t,t[83],Zr);let c=(t[35]||t[34]||t[33])&&Mf(t);const u=t[69]["after-title"],d=U(u,t,t[83],xr);let m=t[30]&&Af(t);const h=t[69].inner,p=U(h,t,t[83],jr);let b=!(t[13]||t[15])&&Lf(t);return{c(){f&&f.c(),e=V(),c&&c.c(),n=V(),d&&d.c(),s=V(),m&&m.c(),a=V(),p&&p.c(),i=V(),b&&b.c(),o=Ze()},m(g,v){f&&f.m(g,v),z(g,e,v),c&&c.m(g,v),z(g,n,v),d&&d.m(g,v),z(g,s,v),m&&m.m(g,v),z(g,a,v),p&&p.m(g,v),z(g,i,v),b&&b.m(g,v),z(g,o,v),r=!0},p(g,v){f&&f.p&&(!r||v[2]&2097152)&&x(f,l,g,g[83],r?Q(l,g[83],v,s0):$(g[83]),Zr),g[35]||g[34]||g[33]?c?(c.p(g,v),v[1]&28&&C(c,1)):(c=Mf(g),c.c(),C(c,1),c.m(n.parentNode,n)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!r||v[2]&2097152)&&x(d,u,g,g[83],r?Q(u,g[83],v,Jg):$(g[83]),xr),g[30]?m?(m.p(g,v),v[0]&1073741824&&C(m,1)):(m=Af(g),m.c(),C(m,1),m.m(a.parentNode,a)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),p&&p.p&&(!r||v[2]&2097152)&&x(p,h,g,g[83],r?Q(h,g[83],v,$g):$(g[83]),jr),g[13]||g[15]?b&&(le(),M(b,1,1,()=>{b=null}),oe()):b?(b.p(g,v),v[0]&40960&&C(b,1)):(b=Lf(g),b.c(),C(b,1),b.m(o.parentNode,o))},i(g){r||(C(f,g),C(c),C(d,g),C(m),C(p,g),C(b),r=!0)},o(g){M(f,g),M(c),M(d,g),M(m),M(p,g),M(b),r=!1},d(g){g&&(F(e),F(n),F(s),F(a),F(i),F(o)),f&&f.d(g),c&&c.d(g),d&&d.d(g),m&&m.d(g),p&&p.d(g),b&&b.d(g)}}}function rv(t){let e,n,s,a,i,o,r,l,f,c,u,d,m=t[34]&&Df(t);const h=t[69]["before-title"],p=U(h,t,t[83],ol);let b=t[35]&&Rf(t);const g=t[69]["after-title"],v=U(g,t,t[83],rl);let _=t[30]&&Hf(t),k=t[32]&&Nf(t),E=t[31]&&Vf(t);const S=t[69].inner,I=U(S,t,t[83],el);let T=!(t[13]||t[15])&&Yf(t),A=t[33]&&qf(t);return{c(){m&&m.c(),e=V(),n=Z("div"),p&&p.c(),s=V(),b&&b.c(),a=V(),v&&v.c(),i=V(),_&&_.c(),o=V(),k&&k.c(),r=V(),E&&E.c(),l=V(),I&&I.c(),f=V(),T&&T.c(),c=V(),A&&A.c(),u=Ze(),se(n,"class","item-title-row")},m(y,w){m&&m.m(y,w),z(y,e,w),z(y,n,w),p&&p.m(n,null),N(n,s),b&&b.m(n,null),N(n,a),v&&v.m(n,null),N(n,i),_&&_.m(n,null),z(y,o,w),k&&k.m(y,w),z(y,r,w),E&&E.m(y,w),z(y,l,w),I&&I.m(y,w),z(y,f,w),T&&T.m(y,w),z(y,c,w),A&&A.m(y,w),z(y,u,w),d=!0},p(y,w){y[34]?m?(m.p(y,w),w[1]&8&&C(m,1)):(m=Df(y),m.c(),C(m,1),m.m(e.parentNode,e)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),p&&p.p&&(!d||w[2]&2097152)&&x(p,h,y,y[83],d?Q(h,y[83],w,p0):$(y[83]),ol),y[35]?b?(b.p(y,w),w[1]&16&&C(b,1)):(b=Rf(y),b.c(),C(b,1),b.m(n,a)):b&&(le(),M(b,1,1,()=>{b=null}),oe()),v&&v.p&&(!d||w[2]&2097152)&&x(v,g,y,y[83],d?Q(g,y[83],w,u0):$(y[83]),rl),y[30]?_?(_.p(y,w),w[0]&1073741824&&C(_,1)):(_=Hf(y),_.c(),C(_,1),_.m(n,null)):_&&(le(),M(_,1,1,()=>{_=null}),oe()),y[32]?k?(k.p(y,w),w[1]&2&&C(k,1)):(k=Nf(y),k.c(),C(k,1),k.m(r.parentNode,r)):k&&(le(),M(k,1,1,()=>{k=null}),oe()),y[31]?E?(E.p(y,w),w[1]&1&&C(E,1)):(E=Vf(y),E.c(),C(E,1),E.m(l.parentNode,l)):E&&(le(),M(E,1,1,()=>{E=null}),oe()),I&&I.p&&(!d||w[2]&2097152)&&x(I,S,y,y[83],d?Q(S,y[83],w,i0):$(y[83]),el),y[13]||y[15]?T&&(le(),M(T,1,1,()=>{T=null}),oe()):T?(T.p(y,w),w[0]&40960&&C(T,1)):(T=Yf(y),T.c(),C(T,1),T.m(c.parentNode,c)),y[33]?A?(A.p(y,w),w[1]&4&&C(A,1)):(A=qf(y),A.c(),C(A,1),A.m(u.parentNode,u)):A&&(le(),M(A,1,1,()=>{A=null}),oe())},i(y){d||(C(m),C(p,y),C(b),C(v,y),C(_),C(k),C(E),C(I,y),C(T),C(A),d=!0)},o(y){M(m),M(p,y),M(b),M(v,y),M(_),M(k),M(E),M(I,y),M(T),M(A),d=!1},d(y){y&&(F(e),F(n),F(o),F(r),F(l),F(f),F(c),F(u)),m&&m.d(y),p&&p.d(y),b&&b.d(),v&&v.d(y),_&&_.d(),k&&k.d(y),E&&E.d(y),I&&I.d(y),T&&T.d(y),A&&A.d(y)}}}function Mf(t){let e,n,s=ie(t[1])+"",a,i,o,r,l=t[34]&&Pf(t);const f=t[69].title,c=U(f,t,t[83],Qr);let u=t[33]&&If(t);return{c(){e=Z("div"),l&&l.c(),n=V(),a=ge(s),i=V(),c&&c.c(),o=V(),u&&u.c(),se(e,"class","item-title")},m(d,m){z(d,e,m),l&&l.m(e,null),N(e,n),N(e,a),N(e,i),c&&c.m(e,null),N(e,o),u&&u.m(e,null),r=!0},p(d,m){d[34]?l?(l.p(d,m),m[1]&8&&C(l,1)):(l=Pf(d),l.c(),C(l,1),l.m(e,n)):l&&(le(),M(l,1,1,()=>{l=null}),oe()),(!r||m[0]&2)&&s!==(s=ie(d[1])+"")&&we(a,s),c&&c.p&&(!r||m[2]&2097152)&&x(c,f,d,d[83],r?Q(f,d[83],m,t0):$(d[83]),Qr),d[33]?u?(u.p(d,m),m[1]&4&&C(u,1)):(u=If(d),u.c(),C(u,1),u.m(e,null)):u&&(le(),M(u,1,1,()=>{u=null}),oe())},i(d){r||(C(l),C(c,d),C(u),r=!0)},o(d){M(l),M(c,d),M(u),r=!1},d(d){d&&F(e),l&&l.d(),c&&c.d(d),u&&u.d()}}}function Pf(t){let e,n=ie(t[5])+"",s,a,i;const o=t[69].header,r=U(o,t,t[83],Kr);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-header")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&32)&&n!==(n=ie(l[5])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,n0):$(l[83]),Kr)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function If(t){let e,n=ie(t[6])+"",s,a,i;const o=t[69].footer,r=U(o,t,t[83],$r);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-footer")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&64)&&n!==(n=ie(l[6])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,e0):$(l[83]),$r)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Af(t){let e,n,s,a,i,o;const r=t[69]["after-start"],l=U(r,t,t[83],Ur);let f=typeof t[9]<"u"&&Of(t),c=typeof t[10]<"u"&&Bf(t);const u=t[69].after,d=U(u,t,t[83],Gr),m=t[69]["after-end"],h=U(m,t,t[83],Xr);return{c(){e=Z("div"),l&&l.c(),n=V(),f&&f.c(),s=V(),c&&c.c(),a=V(),d&&d.c(),i=V(),h&&h.c(),se(e,"class","item-after")},m(p,b){z(p,e,b),l&&l.m(e,null),N(e,n),f&&f.m(e,null),N(e,s),c&&c.m(e,null),N(e,a),d&&d.m(e,null),N(e,i),h&&h.m(e,null),o=!0},p(p,b){l&&l.p&&(!o||b[2]&2097152)&&x(l,r,p,p[83],o?Q(r,p[83],b,Zg):$(p[83]),Ur),typeof p[9]<"u"?f?f.p(p,b):(f=Of(p),f.c(),f.m(e,s)):f&&(f.d(1),f=null),typeof p[10]<"u"?c?(c.p(p,b),b[0]&1024&&C(c,1)):(c=Bf(p),c.c(),C(c,1),c.m(e,a)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!o||b[2]&2097152)&&x(d,u,p,p[83],o?Q(u,p[83],b,Kg):$(p[83]),Gr),h&&h.p&&(!o||b[2]&2097152)&&x(h,m,p,p[83],o?Q(m,p[83],b,Qg):$(p[83]),Xr)},i(p){o||(C(l,p),C(c),C(d,p),C(h,p),o=!0)},o(p){M(l,p),M(c),M(d,p),M(h,p),o=!1},d(p){p&&F(e),l&&l.d(p),f&&f.d(),c&&c.d(),d&&d.d(p),h&&h.d(p)}}}function Of(t){let e,n=ie(t[9])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&512&&n!==(n=ie(a[9])+"")&&we(s,n)},d(a){a&&F(e)}}}function Bf(t){let e,n;return e=new zt({props:{color:t[11],$$slots:{default:[lv]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&2048&&(i.color=s[11]),a[0]&1024|a[2]&2097152&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function lv(t){let e=ie(t[10])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&1024&&e!==(e=ie(s[10])+"")&&we(n,e)},d(s){s&&F(n)}}}function Lf(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function Df(t){let e,n=ie(t[5])+"",s,a,i;const o=t[69].header,r=U(o,t,t[83],fl);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-header")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&32)&&n!==(n=ie(l[5])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,m0):$(l[83]),fl)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Rf(t){let e,n=ie(t[1])+"",s,a,i;const o=t[69].title,r=U(o,t,t[83],ll);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-title")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&2)&&n!==(n=ie(l[1])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,d0):$(l[83]),ll)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Hf(t){let e,n,s,a,i,o;const r=t[69]["after-start"],l=U(r,t,t[83],il);let f=typeof t[9]<"u"&&zf(t),c=typeof t[10]<"u"&&Ff(t);const u=t[69].after,d=U(u,t,t[83],al),m=t[69]["after-end"],h=U(m,t,t[83],sl);return{c(){e=Z("div"),l&&l.c(),n=V(),f&&f.c(),s=V(),c&&c.c(),a=V(),d&&d.c(),i=V(),h&&h.c(),se(e,"class","item-after")},m(p,b){z(p,e,b),l&&l.m(e,null),N(e,n),f&&f.m(e,null),N(e,s),c&&c.m(e,null),N(e,a),d&&d.m(e,null),N(e,i),h&&h.m(e,null),o=!0},p(p,b){l&&l.p&&(!o||b[2]&2097152)&&x(l,r,p,p[83],o?Q(r,p[83],b,c0):$(p[83]),il),typeof p[9]<"u"?f?f.p(p,b):(f=zf(p),f.c(),f.m(e,s)):f&&(f.d(1),f=null),typeof p[10]<"u"?c?(c.p(p,b),b[0]&1024&&C(c,1)):(c=Ff(p),c.c(),C(c,1),c.m(e,a)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!o||b[2]&2097152)&&x(d,u,p,p[83],o?Q(u,p[83],b,f0):$(p[83]),al),h&&h.p&&(!o||b[2]&2097152)&&x(h,m,p,p[83],o?Q(m,p[83],b,o0):$(p[83]),sl)},i(p){o||(C(l,p),C(c),C(d,p),C(h,p),o=!0)},o(p){M(l,p),M(c),M(d,p),M(h,p),o=!1},d(p){p&&F(e),l&&l.d(p),f&&f.d(),c&&c.d(),d&&d.d(p),h&&h.d(p)}}}function zf(t){let e,n=ie(t[9])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&512&&n!==(n=ie(a[9])+"")&&we(s,n)},d(a){a&&F(e)}}}function Ff(t){let e,n;return e=new zt({props:{color:t[11],$$slots:{default:[ov]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&2048&&(i.color=s[11]),a[0]&1024|a[2]&2097152&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function ov(t){let e=ie(t[10])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&1024&&e!==(e=ie(s[10])+"")&&we(n,e)},d(s){s&&F(n)}}}function Nf(t){let e,n=ie(t[4])+"",s,a,i;const o=t[69].subtitle,r=U(o,t,t[83],nl);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-subtitle")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&16)&&n!==(n=ie(l[4])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,l0):$(l[83]),nl)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Vf(t){let e,n=ie(t[2])+"",s,a,i;const o=t[69].text,r=U(o,t,t[83],tl);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-text")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&4)&&n!==(n=ie(l[2])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,r0):$(l[83]),tl)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Yf(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function qf(t){let e,n=ie(t[6])+"",s,a,i;const o=t[69].footer,r=U(o,t,t[83],Jr);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-footer")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&64)&&n!==(n=ie(l[6])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,a0):$(l[83]),Jr)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function fv(t){let e,n,s,a;const i=[dv,uv],o=[];function r(l,f){return l[16]||l[17]?0:1}return e=r(t),n=o[e]=i[e](t),{c(){n.c(),s=Ze()},m(l,f){o[e].m(l,f),z(l,s,f),a=!0},p(l,f){let c=e;e=r(l),e===c?o[e].p(l,f):(le(),M(o[c],1,1,()=>{o[c]=null}),oe(),n=o[e],n?n.p(l,f):(n=o[e]=i[e](l),n.c()),C(n,1),n.m(s.parentNode,s))},i(l){a||(C(n),a=!0)},o(l){M(n),a=!1},d(l){l&&F(s),o[e].d(l)}}}function cv(t){let e,n,s,a,i,o,r,l,f,c,u,d,m,h,p,b;const g=t[69]["content-start"],v=U(g,t,t[83],zo);let _=t[44]&&t[14]!==!1&&t[43]&&Mc(),k=t[36]&&Pc(t);const E=t[69]["inner-start"],S=U(E,t,t[83],Ro),I=[Cv,Ev],T=[];function A(B,q){return B[25]?0:1}l=A(t),f=T[l]=I[l](t);const y=t[69]["inner-end"],w=U(y,t,t[83],mo),D=t[69].content,O=U(D,t,t[83],po),L=t[69]["content-end"],j=U(L,t,t[83],uo);let W=[{class:t[39]},t[38]],Y={};for(let B=0;B{k=null}),oe()),S&&S.p&&(!h||q[2]&2097152)&&x(S,E,B,B[83],h?Q(E,B[83],q,Nb):$(B[83]),Ro);let X=l;l=A(B),l===X?T[l].p(B,q):(le(),M(T[X],1,1,()=>{T[X]=null}),oe(),f=T[l],f?f.p(B,q):(f=T[l]=I[l](B),f.c()),C(f,1),f.m(o,c)),w&&w.p&&(!h||q[2]&2097152)&&x(w,y,B,B[83],h?Q(y,B[83],q,vb):$(B[83]),mo),O&&O.p&&(!h||q[2]&2097152)&&x(O,D,B,B[83],h?Q(D,B[83],q,bb):$(B[83]),po),j&&j.p&&(!h||q[2]&2097152)&&x(j,L,B,B[83],h?Q(L,B[83],q,gb):$(B[83]),uo),(!h||q[1]&512)&&se(n,"class",B[40]),Ae(e,Y=Ge(W,[(!h||q[1]&256)&&{class:B[39]},q[1]&128&&B[38]])),m&&Yt(m.update)&&q[0]&16777216&&m.update.call(null,B[24])},i(B){h||(C(v,B),C(k),C(S,B),C(f),C(w,B),C(O,B),C(j,B),h=!0)},o(B){M(v,B),M(k),M(S,B),M(f),M(w,B),M(O,B),M(j,B),h=!1},d(B){B&&F(e),v&&v.d(B),_&&_.d(),k&&k.d(),S&&S.d(B),T[l].d(),w&&w.d(B),t[72](null),O&&O.d(B),j&&j.d(B),t[73](null),p=!1,ln(b)}}}function uv(t){let e,n,s,a,i,o,r,l,f,c,u,d,m,h;const p=t[69]["content-start"],b=U(p,t,t[83],Fl);let g=t[44]&&t[14]!==!1&&t[43]&&Wf(),v=t[36]&&jf(t);const _=t[69]["inner-start"],k=U(_,t,t[83],Hl),E=[mv,pv],S=[];function I(L,j){return L[25]?0:1}r=I(t),l=S[r]=E[r](t);const T=t[69]["inner-end"],A=U(T,t,t[83],hl),y=t[69].content,w=U(y,t,t[83],ml),D=t[69]["content-end"],O=U(D,t,t[83],pl);return{c(){e=Z("div"),b&&b.c(),n=V(),g&&g.c(),s=V(),v&&v.c(),a=V(),i=Z("div"),k&&k.c(),o=V(),l.c(),f=V(),A&&A.c(),c=V(),w&&w.c(),u=V(),O&&O.c(),se(i,"class","item-inner"),se(e,"class",t[40])},m(L,j){z(L,e,j),b&&b.m(e,null),N(e,n),g&&g.m(e,null),N(e,s),v&&v.m(e,null),N(e,a),N(e,i),k&&k.m(i,null),N(i,o),S[r].m(i,null),N(i,f),A&&A.m(i,null),t[76](i),N(e,c),w&&w.m(e,null),N(e,u),O&&O.m(e,null),d=!0,m||(h=ht(e,"click",t[45]),m=!0)},p(L,j){b&&b.p&&(!d||j[2]&2097152)&&x(b,p,L,L[83],d?Q(p,L[83],j,W0):$(L[83]),Fl),L[44]&&L[14]!==!1&&L[43]?g||(g=Wf(),g.c(),g.m(e,s)):g&&(g.d(1),g=null),L[36]?v?(v.p(L,j),j[1]&32&&C(v,1)):(v=jf(L),v.c(),C(v,1),v.m(e,a)):v&&(le(),M(v,1,1,()=>{v=null}),oe()),k&&k.p&&(!d||j[2]&2097152)&&x(k,_,L,L[83],d?Q(_,L[83],j,Y0):$(L[83]),Hl);let W=r;r=I(L),r===W?S[r].p(L,j):(le(),M(S[W],1,1,()=>{S[W]=null}),oe(),l=S[r],l?l.p(L,j):(l=S[r]=E[r](L),l.c()),C(l,1),l.m(i,f)),A&&A.p&&(!d||j[2]&2097152)&&x(A,T,L,L[83],d?Q(T,L[83],j,k0):$(L[83]),hl),w&&w.p&&(!d||j[2]&2097152)&&x(w,y,L,L[83],d?Q(y,L[83],j,_0):$(L[83]),ml),O&&O.p&&(!d||j[2]&2097152)&&x(O,D,L,L[83],d?Q(D,L[83],j,v0):$(L[83]),pl),(!d||j[1]&512)&&se(e,"class",L[40])},i(L){d||(C(b,L),C(v),C(k,L),C(l),C(A,L),C(w,L),C(O,L),d=!0)},o(L){M(b,L),M(v),M(k,L),M(l),M(A,L),M(w,L),M(O,L),d=!1},d(L){L&&F(e),b&&b.d(L),g&&g.d(),v&&v.d(),k&&k.d(L),S[r].d(),A&&A.d(L),t[76](null),w&&w.d(L),O&&O.d(L),m=!1,h()}}}function dv(t){let e,n,s,a,i,o,r,l,f,c,u,d,m,h,p,b,g,v,_,k,E;const S=t[69]["content-start"],I=U(S,t,t[83],co);let T=t[44]&&t[14]!==!1&&t[43]&&oc(),A=t[36]&&fc(t);const y=t[69]["inner-start"],w=U(y,t,t[83],oo),D=[vv,bv],O=[];function L(H,G){return H[25]?0:1}h=L(t),p=O[h]=D[h](t);const j=t[69]["inner-end"],W=U(j,t,t[83],Yl),Y=t[69].content,B=U(Y,t,t[83],Vl),q=t[69]["content-end"],X=U(q,t,t[83],Nl);return{c(){e=Z("label"),I&&I.c(),n=V(),T&&T.c(),s=V(),a=Z("input"),r=V(),l=Z("i"),c=V(),A&&A.c(),u=V(),d=Z("div"),w&&w.c(),m=V(),p.c(),b=V(),W&&W.c(),g=V(),B&&B.c(),v=V(),X&&X.c(),a.value=i=typeof t[19]>"u"?"":t[19],se(a,"name",t[18]),a.checked=t[0],a.readOnly=t[20],a.disabled=t[22],a.required=t[21],se(a,"type",o=t[17]?"radio":"checkbox"),se(l,"class",f=`icon icon-${t[17]?"radio":"checkbox"}`),se(d,"class","item-inner"),se(e,"class",t[40])},m(H,G){z(H,e,G),I&&I.m(e,null),N(e,n),T&&T.m(e,null),N(e,s),N(e,a),t[74](a),N(e,r),N(e,l),N(e,c),A&&A.m(e,null),N(e,u),N(e,d),w&&w.m(d,null),N(d,m),O[h].m(d,null),N(d,b),W&&W.m(d,null),t[75](d),N(e,g),B&&B.m(e,null),N(e,v),X&&X.m(e,null),_=!0,k||(E=[ht(a,"change",t[46]),ht(e,"click",t[45])],k=!0)},p(H,G){I&&I.p&&(!_||G[2]&2097152)&&x(I,S,H,H[83],_?Q(S,H[83],G,hb):$(H[83]),co),H[44]&&H[14]!==!1&&H[43]?T||(T=oc(),T.c(),T.m(e,s)):T&&(T.d(1),T=null),(!_||G[0]&524288&&i!==(i=typeof H[19]>"u"?"":H[19])&&a.value!==i)&&(a.value=i),(!_||G[0]&262144)&&se(a,"name",H[18]),(!_||G[0]&1)&&(a.checked=H[0]),(!_||G[0]&1048576)&&(a.readOnly=H[20]),(!_||G[0]&4194304)&&(a.disabled=H[22]),(!_||G[0]&2097152)&&(a.required=H[21]),(!_||G[0]&131072&&o!==(o=H[17]?"radio":"checkbox"))&&se(a,"type",o),(!_||G[0]&131072&&f!==(f=`icon icon-${H[17]?"radio":"checkbox"}`))&&se(l,"class",f),H[36]?A?(A.p(H,G),G[1]&32&&C(A,1)):(A=fc(H),A.c(),C(A,1),A.m(e,u)):A&&(le(),M(A,1,1,()=>{A=null}),oe()),w&&w.p&&(!_||G[2]&2097152)&&x(w,y,H,H[83],_?Q(y,H[83],G,pb):$(H[83]),oo);let ce=h;h=L(H),h===ce?O[h].p(H,G):(le(),M(O[ce],1,1,()=>{O[ce]=null}),oe(),p=O[h],p?p.p(H,G):(p=O[h]=D[h](H),p.c()),C(p,1),p.m(d,b)),W&&W.p&&(!_||G[2]&2097152)&&x(W,j,H,H[83],_?Q(j,H[83],G,G0):$(H[83]),Yl),B&&B.p&&(!_||G[2]&2097152)&&x(B,Y,H,H[83],_?Q(Y,H[83],G,X0):$(H[83]),Vl),X&&X.p&&(!_||G[2]&2097152)&&x(X,q,H,H[83],_?Q(q,H[83],G,j0):$(H[83]),Nl),(!_||G[1]&512)&&se(e,"class",H[40])},i(H){_||(C(I,H),C(A),C(w,H),C(p),C(W,H),C(B,H),C(X,H),_=!0)},o(H){M(I,H),M(A),M(w,H),M(p),M(W,H),M(B,H),M(X,H),_=!1},d(H){H&&F(e),I&&I.d(H),T&&T.d(),t[74](null),A&&A.d(),w&&w.d(H),O[h].d(),W&&W.d(H),t[75](null),B&&B.d(H),X&&X.d(H),k=!1,ln(E)}}}function Wf(t){let e;return{c(){e=Z("div"),se(e,"class","sortable-handler")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function jf(t){let e,n,s,a=typeof t[3]<"u"&&Xf(t);const i=t[69].media,o=U(i,t,t[83],zl);return{c(){e=Z("div"),a&&a.c(),n=V(),o&&o.c(),se(e,"class","item-media")},m(r,l){z(r,e,l),a&&a.m(e,null),N(e,n),o&&o.m(e,null),s=!0},p(r,l){typeof r[3]<"u"?a?a.p(r,l):(a=Xf(r),a.c(),a.m(e,n)):a&&(a.d(1),a=null),o&&o.p&&(!s||l[2]&2097152)&&x(o,i,r,r[83],s?Q(i,r[83],l,q0):$(r[83]),zl)},i(r){s||(C(o,r),s=!0)},o(r){M(o,r),s=!1},d(r){r&&F(e),a&&a.d(),o&&o.d(r)}}}function Xf(t){let e,n;return{c(){e=Z("img"),Rt(e.src,n=t[3])||se(e,"src",n)},m(s,a){z(s,e,a)},p(s,a){a[0]&8&&!Rt(e.src,n=s[3])&&se(e,"src",n)},d(s){s&&F(e)}}}function pv(t){let e,n,s,a,i,o,r;const l=t[69]["before-title"],f=U(l,t,t[83],wl);let c=(t[35]||t[34]||t[33])&&Gf(t);const u=t[69]["after-title"],d=U(u,t,t[83],kl);let m=t[30]&&$f(t);const h=t[69].inner,p=U(h,t,t[83],gl);let b=!(t[13]||t[15])&&Zf(t);return{c(){f&&f.c(),e=V(),c&&c.c(),n=V(),d&&d.c(),s=V(),m&&m.c(),a=V(),p&&p.c(),i=V(),b&&b.c(),o=Ze()},m(g,v){f&&f.m(g,v),z(g,e,v),c&&c.m(g,v),z(g,n,v),d&&d.m(g,v),z(g,s,v),m&&m.m(g,v),z(g,a,v),p&&p.m(g,v),z(g,i,v),b&&b.m(g,v),z(g,o,v),r=!0},p(g,v){f&&f.p&&(!r||v[2]&2097152)&&x(f,l,g,g[83],r?Q(l,g[83],v,I0):$(g[83]),wl),g[35]||g[34]||g[33]?c?(c.p(g,v),v[1]&28&&C(c,1)):(c=Gf(g),c.c(),C(c,1),c.m(n.parentNode,n)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!r||v[2]&2097152)&&x(d,u,g,g[83],r?Q(u,g[83],v,S0):$(g[83]),kl),g[30]?m?(m.p(g,v),v[0]&1073741824&&C(m,1)):(m=$f(g),m.c(),C(m,1),m.m(a.parentNode,a)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),p&&p.p&&(!r||v[2]&2097152)&&x(p,h,g,g[83],r?Q(h,g[83],v,E0):$(g[83]),gl),g[13]||g[15]?b&&(le(),M(b,1,1,()=>{b=null}),oe()):b?(b.p(g,v),v[0]&40960&&C(b,1)):(b=Zf(g),b.c(),C(b,1),b.m(o.parentNode,o))},i(g){r||(C(f,g),C(c),C(d,g),C(m),C(p,g),C(b),r=!0)},o(g){M(f,g),M(c),M(d,g),M(m),M(p,g),M(b),r=!1},d(g){g&&(F(e),F(n),F(s),F(a),F(i),F(o)),f&&f.d(g),c&&c.d(g),d&&d.d(g),m&&m.d(g),p&&p.d(g),b&&b.d(g)}}}function mv(t){let e,n,s,a,i,o,r,l,f,c,u,d,m=t[34]&&Jf(t);const h=t[69]["before-title"],p=U(h,t,t[83],Dl);let b=t[35]&&ec(t);const g=t[69]["after-title"],v=U(g,t,t[83],Bl);let _=t[30]&&tc(t),k=t[32]&&ac(t),E=t[31]&&ic(t);const S=t[69].inner,I=U(S,t,t[83],Tl);let T=!(t[13]||t[15])&&rc(t),A=t[33]&&lc(t);return{c(){m&&m.c(),e=V(),n=Z("div"),p&&p.c(),s=V(),b&&b.c(),a=V(),v&&v.c(),i=V(),_&&_.c(),o=V(),k&&k.c(),r=V(),E&&E.c(),l=V(),I&&I.c(),f=V(),T&&T.c(),c=V(),A&&A.c(),u=Ze(),se(n,"class","item-title-row")},m(y,w){m&&m.m(y,w),z(y,e,w),z(y,n,w),p&&p.m(n,null),N(n,s),b&&b.m(n,null),N(n,a),v&&v.m(n,null),N(n,i),_&&_.m(n,null),z(y,o,w),k&&k.m(y,w),z(y,r,w),E&&E.m(y,w),z(y,l,w),I&&I.m(y,w),z(y,f,w),T&&T.m(y,w),z(y,c,w),A&&A.m(y,w),z(y,u,w),d=!0},p(y,w){y[34]?m?(m.p(y,w),w[1]&8&&C(m,1)):(m=Jf(y),m.c(),C(m,1),m.m(e.parentNode,e)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),p&&p.p&&(!d||w[2]&2097152)&&x(p,h,y,y[83],d?Q(h,y[83],w,N0):$(y[83]),Dl),y[35]?b?(b.p(y,w),w[1]&16&&C(b,1)):(b=ec(y),b.c(),C(b,1),b.m(n,a)):b&&(le(),M(b,1,1,()=>{b=null}),oe()),v&&v.p&&(!d||w[2]&2097152)&&x(v,g,y,y[83],d?Q(g,y[83],w,z0):$(y[83]),Bl),y[30]?_?(_.p(y,w),w[0]&1073741824&&C(_,1)):(_=tc(y),_.c(),C(_,1),_.m(n,null)):_&&(le(),M(_,1,1,()=>{_=null}),oe()),y[32]?k?(k.p(y,w),w[1]&2&&C(k,1)):(k=ac(y),k.c(),C(k,1),k.m(r.parentNode,r)):k&&(le(),M(k,1,1,()=>{k=null}),oe()),y[31]?E?(E.p(y,w),w[1]&1&&C(E,1)):(E=ic(y),E.c(),C(E,1),E.m(l.parentNode,l)):E&&(le(),M(E,1,1,()=>{E=null}),oe()),I&&I.p&&(!d||w[2]&2097152)&&x(I,S,y,y[83],d?Q(S,y[83],w,O0):$(y[83]),Tl),y[13]||y[15]?T&&(le(),M(T,1,1,()=>{T=null}),oe()):T?(T.p(y,w),w[0]&40960&&C(T,1)):(T=rc(y),T.c(),C(T,1),T.m(c.parentNode,c)),y[33]?A?(A.p(y,w),w[1]&4&&C(A,1)):(A=lc(y),A.c(),C(A,1),A.m(u.parentNode,u)):A&&(le(),M(A,1,1,()=>{A=null}),oe())},i(y){d||(C(m),C(p,y),C(b),C(v,y),C(_),C(k),C(E),C(I,y),C(T),C(A),d=!0)},o(y){M(m),M(p,y),M(b),M(v,y),M(_),M(k),M(E),M(I,y),M(T),M(A),d=!1},d(y){y&&(F(e),F(n),F(o),F(r),F(l),F(f),F(c),F(u)),m&&m.d(y),p&&p.d(y),b&&b.d(),v&&v.d(y),_&&_.d(),k&&k.d(y),E&&E.d(y),I&&I.d(y),T&&T.d(y),A&&A.d(y)}}}function Gf(t){let e,n,s=ie(t[1])+"",a,i,o,r,l=t[34]&&Uf(t);const f=t[69].title,c=U(f,t,t[83],Cl);let u=t[33]&&xf(t);return{c(){e=Z("div"),l&&l.c(),n=V(),a=ge(s),i=V(),c&&c.c(),o=V(),u&&u.c(),se(e,"class","item-title")},m(d,m){z(d,e,m),l&&l.m(e,null),N(e,n),N(e,a),N(e,i),c&&c.m(e,null),N(e,o),u&&u.m(e,null),r=!0},p(d,m){d[34]?l?(l.p(d,m),m[1]&8&&C(l,1)):(l=Uf(d),l.c(),C(l,1),l.m(e,n)):l&&(le(),M(l,1,1,()=>{l=null}),oe()),(!r||m[0]&2)&&s!==(s=ie(d[1])+"")&&we(a,s),c&&c.p&&(!r||m[2]&2097152)&&x(c,f,d,d[83],r?Q(f,d[83],m,M0):$(d[83]),Cl),d[33]?u?(u.p(d,m),m[1]&4&&C(u,1)):(u=xf(d),u.c(),C(u,1),u.m(e,null)):u&&(le(),M(u,1,1,()=>{u=null}),oe())},i(d){r||(C(l),C(c,d),C(u),r=!0)},o(d){M(l),M(c,d),M(u),r=!1},d(d){d&&F(e),l&&l.d(),c&&c.d(d),u&&u.d()}}}function Uf(t){let e,n=ie(t[5])+"",s,a,i;const o=t[69].header,r=U(o,t,t[83],yl);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-header")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&32)&&n!==(n=ie(l[5])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,P0):$(l[83]),yl)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function xf(t){let e,n=ie(t[6])+"",s,a,i;const o=t[69].footer,r=U(o,t,t[83],El);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-footer")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&64)&&n!==(n=ie(l[6])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,T0):$(l[83]),El)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function $f(t){let e,n,s,a,i,o;const r=t[69]["after-start"],l=U(r,t,t[83],_l);let f=typeof t[9]<"u"&&Qf(t),c=typeof t[10]<"u"&&Kf(t);const u=t[69].after,d=U(u,t,t[83],vl),m=t[69]["after-end"],h=U(m,t,t[83],bl);return{c(){e=Z("div"),l&&l.c(),n=V(),f&&f.c(),s=V(),c&&c.c(),a=V(),d&&d.c(),i=V(),h&&h.c(),se(e,"class","item-after")},m(p,b){z(p,e,b),l&&l.m(e,null),N(e,n),f&&f.m(e,null),N(e,s),c&&c.m(e,null),N(e,a),d&&d.m(e,null),N(e,i),h&&h.m(e,null),o=!0},p(p,b){l&&l.p&&(!o||b[2]&2097152)&&x(l,r,p,p[83],o?Q(r,p[83],b,w0):$(p[83]),_l),typeof p[9]<"u"?f?f.p(p,b):(f=Qf(p),f.c(),f.m(e,s)):f&&(f.d(1),f=null),typeof p[10]<"u"?c?(c.p(p,b),b[0]&1024&&C(c,1)):(c=Kf(p),c.c(),C(c,1),c.m(e,a)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!o||b[2]&2097152)&&x(d,u,p,p[83],o?Q(u,p[83],b,y0):$(p[83]),vl),h&&h.p&&(!o||b[2]&2097152)&&x(h,m,p,p[83],o?Q(m,p[83],b,C0):$(p[83]),bl)},i(p){o||(C(l,p),C(c),C(d,p),C(h,p),o=!0)},o(p){M(l,p),M(c),M(d,p),M(h,p),o=!1},d(p){p&&F(e),l&&l.d(p),f&&f.d(),c&&c.d(),d&&d.d(p),h&&h.d(p)}}}function Qf(t){let e,n=ie(t[9])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&512&&n!==(n=ie(a[9])+"")&&we(s,n)},d(a){a&&F(e)}}}function Kf(t){let e,n;return e=new zt({props:{color:t[11],$$slots:{default:[hv]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&2048&&(i.color=s[11]),a[0]&1024|a[2]&2097152&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function hv(t){let e=ie(t[10])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&1024&&e!==(e=ie(s[10])+"")&&we(n,e)},d(s){s&&F(n)}}}function Zf(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function Jf(t){let e,n=ie(t[5])+"",s,a,i;const o=t[69].header,r=U(o,t,t[83],Rl);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-header")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&32)&&n!==(n=ie(l[5])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,V0):$(l[83]),Rl)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function ec(t){let e,n=ie(t[1])+"",s,a,i;const o=t[69].title,r=U(o,t,t[83],Ll);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-title")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&2)&&n!==(n=ie(l[1])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,F0):$(l[83]),Ll)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function tc(t){let e,n,s,a,i,o;const r=t[69]["after-start"],l=U(r,t,t[83],Ol);let f=typeof t[9]<"u"&&nc(t),c=typeof t[10]<"u"&&sc(t);const u=t[69].after,d=U(u,t,t[83],Al),m=t[69]["after-end"],h=U(m,t,t[83],Il);return{c(){e=Z("div"),l&&l.c(),n=V(),f&&f.c(),s=V(),c&&c.c(),a=V(),d&&d.c(),i=V(),h&&h.c(),se(e,"class","item-after")},m(p,b){z(p,e,b),l&&l.m(e,null),N(e,n),f&&f.m(e,null),N(e,s),c&&c.m(e,null),N(e,a),d&&d.m(e,null),N(e,i),h&&h.m(e,null),o=!0},p(p,b){l&&l.p&&(!o||b[2]&2097152)&&x(l,r,p,p[83],o?Q(r,p[83],b,H0):$(p[83]),Ol),typeof p[9]<"u"?f?f.p(p,b):(f=nc(p),f.c(),f.m(e,s)):f&&(f.d(1),f=null),typeof p[10]<"u"?c?(c.p(p,b),b[0]&1024&&C(c,1)):(c=sc(p),c.c(),C(c,1),c.m(e,a)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!o||b[2]&2097152)&&x(d,u,p,p[83],o?Q(u,p[83],b,R0):$(p[83]),Al),h&&h.p&&(!o||b[2]&2097152)&&x(h,m,p,p[83],o?Q(m,p[83],b,D0):$(p[83]),Il)},i(p){o||(C(l,p),C(c),C(d,p),C(h,p),o=!0)},o(p){M(l,p),M(c),M(d,p),M(h,p),o=!1},d(p){p&&F(e),l&&l.d(p),f&&f.d(),c&&c.d(),d&&d.d(p),h&&h.d(p)}}}function nc(t){let e,n=ie(t[9])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&512&&n!==(n=ie(a[9])+"")&&we(s,n)},d(a){a&&F(e)}}}function sc(t){let e,n;return e=new zt({props:{color:t[11],$$slots:{default:[gv]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&2048&&(i.color=s[11]),a[0]&1024|a[2]&2097152&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function gv(t){let e=ie(t[10])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&1024&&e!==(e=ie(s[10])+"")&&we(n,e)},d(s){s&&F(n)}}}function ac(t){let e,n=ie(t[4])+"",s,a,i;const o=t[69].subtitle,r=U(o,t,t[83],Pl);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-subtitle")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&16)&&n!==(n=ie(l[4])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,L0):$(l[83]),Pl)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function ic(t){let e,n=ie(t[2])+"",s,a,i;const o=t[69].text,r=U(o,t,t[83],Ml);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-text")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&4)&&n!==(n=ie(l[2])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,B0):$(l[83]),Ml)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function rc(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function lc(t){let e,n=ie(t[6])+"",s,a,i;const o=t[69].footer,r=U(o,t,t[83],Sl);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-footer")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&64)&&n!==(n=ie(l[6])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,A0):$(l[83]),Sl)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function oc(t){let e;return{c(){e=Z("div"),se(e,"class","sortable-handler")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function fc(t){let e,n,s,a=typeof t[3]<"u"&&cc(t);const i=t[69].media,o=U(i,t,t[83],fo);return{c(){e=Z("div"),a&&a.c(),n=V(),o&&o.c(),se(e,"class","item-media")},m(r,l){z(r,e,l),a&&a.m(e,null),N(e,n),o&&o.m(e,null),s=!0},p(r,l){typeof r[3]<"u"?a?a.p(r,l):(a=cc(r),a.c(),a.m(e,n)):a&&(a.d(1),a=null),o&&o.p&&(!s||l[2]&2097152)&&x(o,i,r,r[83],s?Q(i,r[83],l,mb):$(r[83]),fo)},i(r){s||(C(o,r),s=!0)},o(r){M(o,r),s=!1},d(r){r&&F(e),a&&a.d(),o&&o.d(r)}}}function cc(t){let e,n;return{c(){e=Z("img"),Rt(e.src,n=t[3])||se(e,"src",n)},m(s,a){z(s,e,a)},p(s,a){a[0]&8&&!Rt(e.src,n=s[3])&&se(e,"src",n)},d(s){s&&F(e)}}}function bv(t){let e,n,s,a,i,o,r;const l=t[69]["before-title"],f=U(l,t,t[83],Ql);let c=(t[35]||t[34]||t[33])&&uc(t);const u=t[69]["after-title"],d=U(u,t,t[83],Gl);let m=t[30]&&mc(t);const h=t[69].inner,p=U(h,t,t[83],ql);let b=!(t[13]||t[15])&&bc(t);return{c(){f&&f.c(),e=V(),c&&c.c(),n=V(),d&&d.c(),s=V(),m&&m.c(),a=V(),p&&p.c(),i=V(),b&&b.c(),o=Ze()},m(g,v){f&&f.m(g,v),z(g,e,v),c&&c.m(g,v),z(g,n,v),d&&d.m(g,v),z(g,s,v),m&&m.m(g,v),z(g,a,v),p&&p.m(g,v),z(g,i,v),b&&b.m(g,v),z(g,o,v),r=!0},p(g,v){f&&f.p&&(!r||v[2]&2097152)&&x(f,l,g,g[83],r?Q(l,g[83],v,tb):$(g[83]),Ql),g[35]||g[34]||g[33]?c?(c.p(g,v),v[1]&28&&C(c,1)):(c=uc(g),c.c(),C(c,1),c.m(n.parentNode,n)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!r||v[2]&2097152)&&x(d,u,g,g[83],r?Q(u,g[83],v,K0):$(g[83]),Gl),g[30]?m?(m.p(g,v),v[0]&1073741824&&C(m,1)):(m=mc(g),m.c(),C(m,1),m.m(a.parentNode,a)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),p&&p.p&&(!r||v[2]&2097152)&&x(p,h,g,g[83],r?Q(h,g[83],v,U0):$(g[83]),ql),g[13]||g[15]?b&&(le(),M(b,1,1,()=>{b=null}),oe()):b?(b.p(g,v),v[0]&40960&&C(b,1)):(b=bc(g),b.c(),C(b,1),b.m(o.parentNode,o))},i(g){r||(C(f,g),C(c),C(d,g),C(m),C(p,g),C(b),r=!0)},o(g){M(f,g),M(c),M(d,g),M(m),M(p,g),M(b),r=!1},d(g){g&&(F(e),F(n),F(s),F(a),F(i),F(o)),f&&f.d(g),c&&c.d(g),d&&d.d(g),m&&m.d(g),p&&p.d(g),b&&b.d(g)}}}function vv(t){let e,n,s,a,i,o,r,l,f,c,u,d,m=t[34]&&vc(t);const h=t[69]["before-title"],p=U(h,t,t[83],ro);let b=t[35]&&_c(t);const g=t[69]["after-title"],v=U(g,t,t[83],ao);let _=t[30]&&kc(t),k=t[32]&&yc(t),E=t[31]&&wc(t);const S=t[69].inner,I=U(S,t,t[83],Zl);let T=!(t[13]||t[15])&&Sc(t),A=t[33]&&Tc(t);return{c(){m&&m.c(),e=V(),n=Z("div"),p&&p.c(),s=V(),b&&b.c(),a=V(),v&&v.c(),i=V(),_&&_.c(),o=V(),k&&k.c(),r=V(),E&&E.c(),l=V(),I&&I.c(),f=V(),T&&T.c(),c=V(),A&&A.c(),u=Ze(),se(n,"class","item-title-row")},m(y,w){m&&m.m(y,w),z(y,e,w),z(y,n,w),p&&p.m(n,null),N(n,s),b&&b.m(n,null),N(n,a),v&&v.m(n,null),N(n,i),_&&_.m(n,null),z(y,o,w),k&&k.m(y,w),z(y,r,w),E&&E.m(y,w),z(y,l,w),I&&I.m(y,w),z(y,f,w),T&&T.m(y,w),z(y,c,w),A&&A.m(y,w),z(y,u,w),d=!0},p(y,w){y[34]?m?(m.p(y,w),w[1]&8&&C(m,1)):(m=vc(y),m.c(),C(m,1),m.m(e.parentNode,e)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),p&&p.p&&(!d||w[2]&2097152)&&x(p,h,y,y[83],d?Q(h,y[83],w,ub):$(y[83]),ro),y[35]?b?(b.p(y,w),w[1]&16&&C(b,1)):(b=_c(y),b.c(),C(b,1),b.m(n,a)):b&&(le(),M(b,1,1,()=>{b=null}),oe()),v&&v.p&&(!d||w[2]&2097152)&&x(v,g,y,y[83],d?Q(g,y[83],w,fb):$(y[83]),ao),y[30]?_?(_.p(y,w),w[0]&1073741824&&C(_,1)):(_=kc(y),_.c(),C(_,1),_.m(n,null)):_&&(le(),M(_,1,1,()=>{_=null}),oe()),y[32]?k?(k.p(y,w),w[1]&2&&C(k,1)):(k=yc(y),k.c(),C(k,1),k.m(r.parentNode,r)):k&&(le(),M(k,1,1,()=>{k=null}),oe()),y[31]?E?(E.p(y,w),w[1]&1&&C(E,1)):(E=wc(y),E.c(),C(E,1),E.m(l.parentNode,l)):E&&(le(),M(E,1,1,()=>{E=null}),oe()),I&&I.p&&(!d||w[2]&2097152)&&x(I,S,y,y[83],d?Q(S,y[83],w,sb):$(y[83]),Zl),y[13]||y[15]?T&&(le(),M(T,1,1,()=>{T=null}),oe()):T?(T.p(y,w),w[0]&40960&&C(T,1)):(T=Sc(y),T.c(),C(T,1),T.m(c.parentNode,c)),y[33]?A?(A.p(y,w),w[1]&4&&C(A,1)):(A=Tc(y),A.c(),C(A,1),A.m(u.parentNode,u)):A&&(le(),M(A,1,1,()=>{A=null}),oe())},i(y){d||(C(m),C(p,y),C(b),C(v,y),C(_),C(k),C(E),C(I,y),C(T),C(A),d=!0)},o(y){M(m),M(p,y),M(b),M(v,y),M(_),M(k),M(E),M(I,y),M(T),M(A),d=!1},d(y){y&&(F(e),F(n),F(o),F(r),F(l),F(f),F(c),F(u)),m&&m.d(y),p&&p.d(y),b&&b.d(),v&&v.d(y),_&&_.d(),k&&k.d(y),E&&E.d(y),I&&I.d(y),T&&T.d(y),A&&A.d(y)}}}function uc(t){let e,n,s=ie(t[1])+"",a,i,o,r,l=t[34]&&dc(t);const f=t[69].title,c=U(f,t,t[83],xl);let u=t[33]&&pc(t);return{c(){e=Z("div"),l&&l.c(),n=V(),a=ge(s),i=V(),c&&c.c(),o=V(),u&&u.c(),se(e,"class","item-title")},m(d,m){z(d,e,m),l&&l.m(e,null),N(e,n),N(e,a),N(e,i),c&&c.m(e,null),N(e,o),u&&u.m(e,null),r=!0},p(d,m){d[34]?l?(l.p(d,m),m[1]&8&&C(l,1)):(l=dc(d),l.c(),C(l,1),l.m(e,n)):l&&(le(),M(l,1,1,()=>{l=null}),oe()),(!r||m[0]&2)&&s!==(s=ie(d[1])+"")&&we(a,s),c&&c.p&&(!r||m[2]&2097152)&&x(c,f,d,d[83],r?Q(f,d[83],m,J0):$(d[83]),xl),d[33]?u?(u.p(d,m),m[1]&4&&C(u,1)):(u=pc(d),u.c(),C(u,1),u.m(e,null)):u&&(le(),M(u,1,1,()=>{u=null}),oe())},i(d){r||(C(l),C(c,d),C(u),r=!0)},o(d){M(l),M(c,d),M(u),r=!1},d(d){d&&F(e),l&&l.d(),c&&c.d(d),u&&u.d()}}}function dc(t){let e,n=ie(t[5])+"",s,a,i;const o=t[69].header,r=U(o,t,t[83],$l);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-header")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&32)&&n!==(n=ie(l[5])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,eb):$(l[83]),$l)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function pc(t){let e,n=ie(t[6])+"",s,a,i;const o=t[69].footer,r=U(o,t,t[83],Ul);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-footer")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&64)&&n!==(n=ie(l[6])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Z0):$(l[83]),Ul)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function mc(t){let e,n,s,a,i,o;const r=t[69]["after-start"],l=U(r,t,t[83],Xl);let f=typeof t[9]<"u"&&hc(t),c=typeof t[10]<"u"&&gc(t);const u=t[69].after,d=U(u,t,t[83],jl),m=t[69]["after-end"],h=U(m,t,t[83],Wl);return{c(){e=Z("div"),l&&l.c(),n=V(),f&&f.c(),s=V(),c&&c.c(),a=V(),d&&d.c(),i=V(),h&&h.c(),se(e,"class","item-after")},m(p,b){z(p,e,b),l&&l.m(e,null),N(e,n),f&&f.m(e,null),N(e,s),c&&c.m(e,null),N(e,a),d&&d.m(e,null),N(e,i),h&&h.m(e,null),o=!0},p(p,b){l&&l.p&&(!o||b[2]&2097152)&&x(l,r,p,p[83],o?Q(r,p[83],b,Q0):$(p[83]),Xl),typeof p[9]<"u"?f?f.p(p,b):(f=hc(p),f.c(),f.m(e,s)):f&&(f.d(1),f=null),typeof p[10]<"u"?c?(c.p(p,b),b[0]&1024&&C(c,1)):(c=gc(p),c.c(),C(c,1),c.m(e,a)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!o||b[2]&2097152)&&x(d,u,p,p[83],o?Q(u,p[83],b,$0):$(p[83]),jl),h&&h.p&&(!o||b[2]&2097152)&&x(h,m,p,p[83],o?Q(m,p[83],b,x0):$(p[83]),Wl)},i(p){o||(C(l,p),C(c),C(d,p),C(h,p),o=!0)},o(p){M(l,p),M(c),M(d,p),M(h,p),o=!1},d(p){p&&F(e),l&&l.d(p),f&&f.d(),c&&c.d(),d&&d.d(p),h&&h.d(p)}}}function hc(t){let e,n=ie(t[9])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&512&&n!==(n=ie(a[9])+"")&&we(s,n)},d(a){a&&F(e)}}}function gc(t){let e,n;return e=new zt({props:{color:t[11],$$slots:{default:[_v]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&2048&&(i.color=s[11]),a[0]&1024|a[2]&2097152&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function _v(t){let e=ie(t[10])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&1024&&e!==(e=ie(s[10])+"")&&we(n,e)},d(s){s&&F(n)}}}function bc(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function vc(t){let e,n=ie(t[5])+"",s,a,i;const o=t[69].header,r=U(o,t,t[83],lo);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-header")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&32)&&n!==(n=ie(l[5])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,db):$(l[83]),lo)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function _c(t){let e,n=ie(t[1])+"",s,a,i;const o=t[69].title,r=U(o,t,t[83],io);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-title")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&2)&&n!==(n=ie(l[1])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,cb):$(l[83]),io)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function kc(t){let e,n,s,a,i,o;const r=t[69]["after-start"],l=U(r,t,t[83],so);let f=typeof t[9]<"u"&&Ec(t),c=typeof t[10]<"u"&&Cc(t);const u=t[69].after,d=U(u,t,t[83],no),m=t[69]["after-end"],h=U(m,t,t[83],to);return{c(){e=Z("div"),l&&l.c(),n=V(),f&&f.c(),s=V(),c&&c.c(),a=V(),d&&d.c(),i=V(),h&&h.c(),se(e,"class","item-after")},m(p,b){z(p,e,b),l&&l.m(e,null),N(e,n),f&&f.m(e,null),N(e,s),c&&c.m(e,null),N(e,a),d&&d.m(e,null),N(e,i),h&&h.m(e,null),o=!0},p(p,b){l&&l.p&&(!o||b[2]&2097152)&&x(l,r,p,p[83],o?Q(r,p[83],b,ob):$(p[83]),so),typeof p[9]<"u"?f?f.p(p,b):(f=Ec(p),f.c(),f.m(e,s)):f&&(f.d(1),f=null),typeof p[10]<"u"?c?(c.p(p,b),b[0]&1024&&C(c,1)):(c=Cc(p),c.c(),C(c,1),c.m(e,a)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!o||b[2]&2097152)&&x(d,u,p,p[83],o?Q(u,p[83],b,lb):$(p[83]),no),h&&h.p&&(!o||b[2]&2097152)&&x(h,m,p,p[83],o?Q(m,p[83],b,rb):$(p[83]),to)},i(p){o||(C(l,p),C(c),C(d,p),C(h,p),o=!0)},o(p){M(l,p),M(c),M(d,p),M(h,p),o=!1},d(p){p&&F(e),l&&l.d(p),f&&f.d(),c&&c.d(),d&&d.d(p),h&&h.d(p)}}}function Ec(t){let e,n=ie(t[9])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&512&&n!==(n=ie(a[9])+"")&&we(s,n)},d(a){a&&F(e)}}}function Cc(t){let e,n;return e=new zt({props:{color:t[11],$$slots:{default:[kv]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&2048&&(i.color=s[11]),a[0]&1024|a[2]&2097152&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function kv(t){let e=ie(t[10])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&1024&&e!==(e=ie(s[10])+"")&&we(n,e)},d(s){s&&F(n)}}}function yc(t){let e,n=ie(t[4])+"",s,a,i;const o=t[69].subtitle,r=U(o,t,t[83],eo);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-subtitle")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&16)&&n!==(n=ie(l[4])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,ib):$(l[83]),eo)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function wc(t){let e,n=ie(t[2])+"",s,a,i;const o=t[69].text,r=U(o,t,t[83],Jl);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-text")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&4)&&n!==(n=ie(l[2])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,ab):$(l[83]),Jl)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Sc(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function Tc(t){let e,n=ie(t[6])+"",s,a,i;const o=t[69].footer,r=U(o,t,t[83],Kl);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-footer")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&64)&&n!==(n=ie(l[6])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,nb):$(l[83]),Kl)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Mc(t){let e;return{c(){e=Z("div"),se(e,"class","sortable-handler")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function Pc(t){let e,n,s,a=typeof t[3]<"u"&&Ic(t);const i=t[69].media,o=U(i,t,t[83],Ho);return{c(){e=Z("div"),a&&a.c(),n=V(),o&&o.c(),se(e,"class","item-media")},m(r,l){z(r,e,l),a&&a.m(e,null),N(e,n),o&&o.m(e,null),s=!0},p(r,l){typeof r[3]<"u"?a?a.p(r,l):(a=Ic(r),a.c(),a.m(e,n)):a&&(a.d(1),a=null),o&&o.p&&(!s||l[2]&2097152)&&x(o,i,r,r[83],s?Q(i,r[83],l,Vb):$(r[83]),Ho)},i(r){s||(C(o,r),s=!0)},o(r){M(o,r),s=!1},d(r){r&&F(e),a&&a.d(),o&&o.d(r)}}}function Ic(t){let e,n;return{c(){e=Z("img"),Rt(e.src,n=t[3])||se(e,"src",n)},m(s,a){z(s,e,a)},p(s,a){a[0]&8&&!Rt(e.src,n=s[3])&&se(e,"src",n)},d(s){s&&F(e)}}}function Ev(t){let e,n,s,a,i,o,r;const l=t[69]["before-title"],f=U(l,t,t[83],yo);let c=(t[35]||t[34]||t[33])&&Ac(t);const u=t[69]["after-title"],d=U(u,t,t[83],_o);let m=t[30]&&Lc(t);const h=t[69].inner,p=U(h,t,t[83],ho);let b=!(t[13]||t[15])&&Hc(t);return{c(){f&&f.c(),e=V(),c&&c.c(),n=V(),d&&d.c(),s=V(),m&&m.c(),a=V(),p&&p.c(),i=V(),b&&b.c(),o=Ze()},m(g,v){f&&f.m(g,v),z(g,e,v),c&&c.m(g,v),z(g,n,v),d&&d.m(g,v),z(g,s,v),m&&m.m(g,v),z(g,a,v),p&&p.m(g,v),z(g,i,v),b&&b.m(g,v),z(g,o,v),r=!0},p(g,v){f&&f.p&&(!r||v[2]&2097152)&&x(f,l,g,g[83],r?Q(l,g[83],v,Mb):$(g[83]),yo),g[35]||g[34]||g[33]?c?(c.p(g,v),v[1]&28&&C(c,1)):(c=Ac(g),c.c(),C(c,1),c.m(n.parentNode,n)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!r||v[2]&2097152)&&x(d,u,g,g[83],r?Q(u,g[83],v,yb):$(g[83]),_o),g[30]?m?(m.p(g,v),v[0]&1073741824&&C(m,1)):(m=Lc(g),m.c(),C(m,1),m.m(a.parentNode,a)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),p&&p.p&&(!r||v[2]&2097152)&&x(p,h,g,g[83],r?Q(h,g[83],v,_b):$(g[83]),ho),g[13]||g[15]?b&&(le(),M(b,1,1,()=>{b=null}),oe()):b?(b.p(g,v),v[0]&40960&&C(b,1)):(b=Hc(g),b.c(),C(b,1),b.m(o.parentNode,o))},i(g){r||(C(f,g),C(c),C(d,g),C(m),C(p,g),C(b),r=!0)},o(g){M(f,g),M(c),M(d,g),M(m),M(p,g),M(b),r=!1},d(g){g&&(F(e),F(n),F(s),F(a),F(i),F(o)),f&&f.d(g),c&&c.d(g),d&&d.d(g),m&&m.d(g),p&&p.d(g),b&&b.d(g)}}}function Cv(t){let e,n,s,a,i,o,r,l,f,c,u,d,m=t[34]&&zc(t);const h=t[69]["before-title"],p=U(h,t,t[83],Lo);let b=t[35]&&Fc(t);const g=t[69]["after-title"],v=U(g,t,t[83],Oo);let _=t[30]&&Nc(t),k=t[32]&&qc(t),E=t[31]&&Wc(t);const S=t[69].inner,I=U(S,t,t[83],So);let T=!(t[13]||t[15])&&jc(t),A=t[33]&&Xc(t);return{c(){m&&m.c(),e=V(),n=Z("div"),p&&p.c(),s=V(),b&&b.c(),a=V(),v&&v.c(),i=V(),_&&_.c(),o=V(),k&&k.c(),r=V(),E&&E.c(),l=V(),I&&I.c(),f=V(),T&&T.c(),c=V(),A&&A.c(),u=Ze(),se(n,"class","item-title-row")},m(y,w){m&&m.m(y,w),z(y,e,w),z(y,n,w),p&&p.m(n,null),N(n,s),b&&b.m(n,null),N(n,a),v&&v.m(n,null),N(n,i),_&&_.m(n,null),z(y,o,w),k&&k.m(y,w),z(y,r,w),E&&E.m(y,w),z(y,l,w),I&&I.m(y,w),z(y,f,w),T&&T.m(y,w),z(y,c,w),A&&A.m(y,w),z(y,u,w),d=!0},p(y,w){y[34]?m?(m.p(y,w),w[1]&8&&C(m,1)):(m=zc(y),m.c(),C(m,1),m.m(e.parentNode,e)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),p&&p.p&&(!d||w[2]&2097152)&&x(p,h,y,y[83],d?Q(h,y[83],w,zb):$(y[83]),Lo),y[35]?b?(b.p(y,w),w[1]&16&&C(b,1)):(b=Fc(y),b.c(),C(b,1),b.m(n,a)):b&&(le(),M(b,1,1,()=>{b=null}),oe()),v&&v.p&&(!d||w[2]&2097152)&&x(v,g,y,y[83],d?Q(g,y[83],w,Rb):$(y[83]),Oo),y[30]?_?(_.p(y,w),w[0]&1073741824&&C(_,1)):(_=Nc(y),_.c(),C(_,1),_.m(n,null)):_&&(le(),M(_,1,1,()=>{_=null}),oe()),y[32]?k?(k.p(y,w),w[1]&2&&C(k,1)):(k=qc(y),k.c(),C(k,1),k.m(r.parentNode,r)):k&&(le(),M(k,1,1,()=>{k=null}),oe()),y[31]?E?(E.p(y,w),w[1]&1&&C(E,1)):(E=Wc(y),E.c(),C(E,1),E.m(l.parentNode,l)):E&&(le(),M(E,1,1,()=>{E=null}),oe()),I&&I.p&&(!d||w[2]&2097152)&&x(I,S,y,y[83],d?Q(S,y[83],w,Ib):$(y[83]),So),y[13]||y[15]?T&&(le(),M(T,1,1,()=>{T=null}),oe()):T?(T.p(y,w),w[0]&40960&&C(T,1)):(T=jc(y),T.c(),C(T,1),T.m(c.parentNode,c)),y[33]?A?(A.p(y,w),w[1]&4&&C(A,1)):(A=Xc(y),A.c(),C(A,1),A.m(u.parentNode,u)):A&&(le(),M(A,1,1,()=>{A=null}),oe())},i(y){d||(C(m),C(p,y),C(b),C(v,y),C(_),C(k),C(E),C(I,y),C(T),C(A),d=!0)},o(y){M(m),M(p,y),M(b),M(v,y),M(_),M(k),M(E),M(I,y),M(T),M(A),d=!1},d(y){y&&(F(e),F(n),F(o),F(r),F(l),F(f),F(c),F(u)),m&&m.d(y),p&&p.d(y),b&&b.d(),v&&v.d(y),_&&_.d(),k&&k.d(y),E&&E.d(y),I&&I.d(y),T&&T.d(y),A&&A.d(y)}}}function Ac(t){let e,n,s=ie(t[1])+"",a,i,o,r,l=t[34]&&Oc(t);const f=t[69].title,c=U(f,t,t[83],Eo);let u=t[33]&&Bc(t);return{c(){e=Z("div"),l&&l.c(),n=V(),a=ge(s),i=V(),c&&c.c(),o=V(),u&&u.c(),se(e,"class","item-title")},m(d,m){z(d,e,m),l&&l.m(e,null),N(e,n),N(e,a),N(e,i),c&&c.m(e,null),N(e,o),u&&u.m(e,null),r=!0},p(d,m){d[34]?l?(l.p(d,m),m[1]&8&&C(l,1)):(l=Oc(d),l.c(),C(l,1),l.m(e,n)):l&&(le(),M(l,1,1,()=>{l=null}),oe()),(!r||m[0]&2)&&s!==(s=ie(d[1])+"")&&we(a,s),c&&c.p&&(!r||m[2]&2097152)&&x(c,f,d,d[83],r?Q(f,d[83],m,Sb):$(d[83]),Eo),d[33]?u?(u.p(d,m),m[1]&4&&C(u,1)):(u=Bc(d),u.c(),C(u,1),u.m(e,null)):u&&(le(),M(u,1,1,()=>{u=null}),oe())},i(d){r||(C(l),C(c,d),C(u),r=!0)},o(d){M(l),M(c,d),M(u),r=!1},d(d){d&&F(e),l&&l.d(),c&&c.d(d),u&&u.d()}}}function Oc(t){let e,n=ie(t[5])+"",s,a,i;const o=t[69].header,r=U(o,t,t[83],Co);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-header")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&32)&&n!==(n=ie(l[5])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Tb):$(l[83]),Co)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Bc(t){let e,n=ie(t[6])+"",s,a,i;const o=t[69].footer,r=U(o,t,t[83],ko);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-footer")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&64)&&n!==(n=ie(l[6])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,wb):$(l[83]),ko)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Lc(t){let e,n,s,a,i,o;const r=t[69]["after-start"],l=U(r,t,t[83],vo);let f=typeof t[9]<"u"&&Dc(t),c=typeof t[10]<"u"&&Rc(t);const u=t[69].after,d=U(u,t,t[83],bo),m=t[69]["after-end"],h=U(m,t,t[83],go);return{c(){e=Z("div"),l&&l.c(),n=V(),f&&f.c(),s=V(),c&&c.c(),a=V(),d&&d.c(),i=V(),h&&h.c(),se(e,"class","item-after")},m(p,b){z(p,e,b),l&&l.m(e,null),N(e,n),f&&f.m(e,null),N(e,s),c&&c.m(e,null),N(e,a),d&&d.m(e,null),N(e,i),h&&h.m(e,null),o=!0},p(p,b){l&&l.p&&(!o||b[2]&2097152)&&x(l,r,p,p[83],o?Q(r,p[83],b,Cb):$(p[83]),vo),typeof p[9]<"u"?f?f.p(p,b):(f=Dc(p),f.c(),f.m(e,s)):f&&(f.d(1),f=null),typeof p[10]<"u"?c?(c.p(p,b),b[0]&1024&&C(c,1)):(c=Rc(p),c.c(),C(c,1),c.m(e,a)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!o||b[2]&2097152)&&x(d,u,p,p[83],o?Q(u,p[83],b,Eb):$(p[83]),bo),h&&h.p&&(!o||b[2]&2097152)&&x(h,m,p,p[83],o?Q(m,p[83],b,kb):$(p[83]),go)},i(p){o||(C(l,p),C(c),C(d,p),C(h,p),o=!0)},o(p){M(l,p),M(c),M(d,p),M(h,p),o=!1},d(p){p&&F(e),l&&l.d(p),f&&f.d(),c&&c.d(),d&&d.d(p),h&&h.d(p)}}}function Dc(t){let e,n=ie(t[9])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&512&&n!==(n=ie(a[9])+"")&&we(s,n)},d(a){a&&F(e)}}}function Rc(t){let e,n;return e=new zt({props:{color:t[11],$$slots:{default:[yv]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&2048&&(i.color=s[11]),a[0]&1024|a[2]&2097152&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function yv(t){let e=ie(t[10])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&1024&&e!==(e=ie(s[10])+"")&&we(n,e)},d(s){s&&F(n)}}}function Hc(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function zc(t){let e,n=ie(t[5])+"",s,a,i;const o=t[69].header,r=U(o,t,t[83],Do);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-header")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&32)&&n!==(n=ie(l[5])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Fb):$(l[83]),Do)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Fc(t){let e,n=ie(t[1])+"",s,a,i;const o=t[69].title,r=U(o,t,t[83],Bo);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-title")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&2)&&n!==(n=ie(l[1])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Hb):$(l[83]),Bo)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Nc(t){let e,n,s,a,i,o;const r=t[69]["after-start"],l=U(r,t,t[83],Ao);let f=typeof t[9]<"u"&&Vc(t),c=typeof t[10]<"u"&&Yc(t);const u=t[69].after,d=U(u,t,t[83],Io),m=t[69]["after-end"],h=U(m,t,t[83],Po);return{c(){e=Z("div"),l&&l.c(),n=V(),f&&f.c(),s=V(),c&&c.c(),a=V(),d&&d.c(),i=V(),h&&h.c(),se(e,"class","item-after")},m(p,b){z(p,e,b),l&&l.m(e,null),N(e,n),f&&f.m(e,null),N(e,s),c&&c.m(e,null),N(e,a),d&&d.m(e,null),N(e,i),h&&h.m(e,null),o=!0},p(p,b){l&&l.p&&(!o||b[2]&2097152)&&x(l,r,p,p[83],o?Q(r,p[83],b,Db):$(p[83]),Ao),typeof p[9]<"u"?f?f.p(p,b):(f=Vc(p),f.c(),f.m(e,s)):f&&(f.d(1),f=null),typeof p[10]<"u"?c?(c.p(p,b),b[0]&1024&&C(c,1)):(c=Yc(p),c.c(),C(c,1),c.m(e,a)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!o||b[2]&2097152)&&x(d,u,p,p[83],o?Q(u,p[83],b,Lb):$(p[83]),Io),h&&h.p&&(!o||b[2]&2097152)&&x(h,m,p,p[83],o?Q(m,p[83],b,Bb):$(p[83]),Po)},i(p){o||(C(l,p),C(c),C(d,p),C(h,p),o=!0)},o(p){M(l,p),M(c),M(d,p),M(h,p),o=!1},d(p){p&&F(e),l&&l.d(p),f&&f.d(),c&&c.d(),d&&d.d(p),h&&h.d(p)}}}function Vc(t){let e,n=ie(t[9])+"",s;return{c(){e=Z("span"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i[0]&512&&n!==(n=ie(a[9])+"")&&we(s,n)},d(a){a&&F(e)}}}function Yc(t){let e,n;return e=new zt({props:{color:t[11],$$slots:{default:[wv]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&2048&&(i.color=s[11]),a[0]&1024|a[2]&2097152&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function wv(t){let e=ie(t[10])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&1024&&e!==(e=ie(s[10])+"")&&we(n,e)},d(s){s&&F(n)}}}function qc(t){let e,n=ie(t[4])+"",s,a,i;const o=t[69].subtitle,r=U(o,t,t[83],Mo);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-subtitle")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&16)&&n!==(n=ie(l[4])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Ob):$(l[83]),Mo)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Wc(t){let e,n=ie(t[2])+"",s,a,i;const o=t[69].text,r=U(o,t,t[83],To);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-text")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&4)&&n!==(n=ie(l[2])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Ab):$(l[83]),To)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function jc(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function Xc(t){let e,n=ie(t[6])+"",s,a,i;const o=t[69].footer,r=U(o,t,t[83],wo);return{c(){e=Z("div"),s=ge(n),a=V(),r&&r.c(),se(e,"class","item-footer")},m(l,f){z(l,e,f),N(e,s),N(e,a),r&&r.m(e,null),i=!0},p(l,f){(!i||f[0]&64)&&n!==(n=ie(l[6])+"")&&we(s,n),r&&r.p&&(!i||f[2]&2097152)&&x(r,o,l,l[83],i?Q(o,l[83],f,Pb):$(l[83]),wo)},i(l){i||(C(r,l),i=!0)},o(l){M(r,l),i=!1},d(l){l&&F(e),r&&r.d(l)}}}function Gc(t){let e;return{c(){e=Z("div"),se(e,"class","sortable-handler")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function Uc(t){let e;const n=t[69].default,s=U(n,t,t[83],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[2]&2097152)&&x(s,n,a,a[83],e?Q(n,a[83],i,null):$(a[83]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function Sv(t){let e=ie(t[1])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a[0]&2&&e!==(e=ie(s[1])+"")&&we(n,e)},d(s){s&&F(n)}}}function Tv(t){let e,n,s,a;const i=[Xb,jb,Wb],o=[];function r(l,f){return l[12]?0:l[42]?1:2}return e=r(t),n=o[e]=i[e](t),{c(){n.c(),s=Ze()},m(l,f){o[e].m(l,f),z(l,s,f),a=!0},p(l,f){let c=e;e=r(l),e===c?o[e].p(l,f):(le(),M(o[c],1,1,()=>{o[c]=null}),oe(),n=o[e],n?n.p(l,f):(n=o[e]=i[e](l),n.c()),C(n,1),n.m(s.parentNode,s))},i(l){a||(C(n),a=!0)},o(l){M(n),a=!1},d(l){l&&F(s),o[e].d(l)}}}function Mv(t,e,n){let s,a,i,o,r,l,f,c,u,d,m,h,p,b,g,v;const _=["class","title","text","media","subtitle","header","footer","tooltip","tooltipTrigger","link","tabLink","tabLinkActive","selected","href","target","after","badge","badgeColor","mediaItem","mediaList","groupTitle","swipeout","swipeoutOpened","sortable","sortableOpposite","accordionItem","accordionItemOpened","smartSelect","smartSelectParams","noChevron","chevronCenter","checkbox","checkboxIcon","radio","radioIcon","checked","indeterminate","name","value","readonly","required","disabled","virtualListIndex","routeProps","smartSelectInstance"];let k=De(e,_),{$$slots:E={},$$scope:S}=e;const I=Fn(E),T=pt(mt,e);let{class:A=void 0}=e,{title:y=void 0}=e,{text:w=void 0}=e,{media:D=void 0}=e,{subtitle:O=void 0}=e,{header:L=void 0}=e,{footer:j=void 0}=e,{tooltip:W=void 0}=e,{tooltipTrigger:Y=void 0}=e,{link:B=void 0}=e,{tabLink:q=void 0}=e,{tabLinkActive:X=!1}=e,{selected:H=!1}=e,{href:G=void 0}=e,{target:ce=void 0}=e,{after:ye=void 0}=e,{badge:ne=void 0}=e,{badgeColor:me=void 0}=e,{mediaItem:K=!1}=e,{mediaList:pe=!1}=e,{groupTitle:ke=!1}=e,{swipeout:he=!1}=e,{swipeoutOpened:re=!1}=e,{sortable:Ce=void 0}=e,{sortableOpposite:Pe=void 0}=e,{accordionItem:Ve=!1}=e,{accordionItemOpened:Me=!1}=e,{smartSelect:He=!1}=e,{smartSelectParams:ze=void 0}=e,{noChevron:fe=void 0}=e,{chevronCenter:ee=void 0}=e,{checkbox:Fe=void 0}=e,{checkboxIcon:Ue=void 0}=e,{radio:qe=void 0}=e,{radioIcon:Oe=void 0}=e,{checked:et=void 0}=e,{indeterminate:Ie=void 0}=e,{name:xe=void 0}=e,{value:Te=void 0}=e,{readonly:Tt=void 0}=e,{required:cn=void 0}=e,{disabled:Kt=void 0}=e,{virtualListIndex:un=void 0}=e,{routeProps:vn=void 0}=e,nt,de,st,ut,ue;function vt(){return ue}let At=Gd("ListContext",ae=>{n(68,At=ae||{})})||{},La=!1;function _p(ae){if(!La){La=!0;return}he&&(ae?J.f7.swipeout.open(nt):J.f7.swipeout.close(nt))}function kp(ae){ae.target.tagName.toLowerCase()!=="input"&&T("click",ae)}function Da(ae){ae===nt&&T("swipeoutOverswipeEnter")}function Ra(ae){ae===nt&&T("swipeoutOverswipeExit")}function Ha(ae){ae===nt&&T("swipeoutDeleted")}function za(ae){ae===nt&&T("swipeoutDelete")}function Fa(ae){ae===nt&&T("swipeoutClose")}function Na(ae){ae===nt&&T("swipeoutClosed")}function Va(ae){ae===nt&&T("swipeoutOpen")}function Ya(ae){ae===nt&&T("swipeoutOpened")}function qa(ae,qn){ae===nt&&T("swipeout",qn)}function Wa(ae,qn){ae===nt&&T("accordionBeforeClose",[qn])}function ja(ae){ae===nt&&T("accordionClose")}function Xa(ae){ae===nt&&T("accordionClosed")}function Ga(ae,qn){ae===nt&&T("accordionBeforeOpen",[qn])}function Ua(ae){ae===nt&&T("accordionOpen")}function xa(ae){ae===nt&&T("accordionOpened")}function Ep(ae){T("change",[ae]),n(0,et=ae.target.checked)}Xd({smartSelect:He,smartSelectParams:ze},ae=>{ue=ae},()=>de),gt(()=>{Ie&&ut&&n(29,ut.indeterminate=!0,ut),bt(()=>{he&&(J.f7.on("swipeoutOpen",Va),J.f7.on("swipeoutOpened",Ya),J.f7.on("swipeoutClose",Fa),J.f7.on("swipeoutClosed",Na),J.f7.on("swipeoutDelete",za),J.f7.on("swipeoutDeleted",Ha),J.f7.on("swipeoutOverswipeEnter",Da),J.f7.on("swipeoutOverswipeExit",Ra),J.f7.on("swipeout",qa)),Ve&&(J.f7.on("accordionBeforeOpen",Ga),J.f7.on("accordionOpen",Ua),J.f7.on("accordionOpened",xa),J.f7.on("accordionBeforeClose",Wa),J.f7.on("accordionClose",ja),J.f7.on("accordionClosed",Xa)),re&&J.f7.swipeout.open(nt)})}),zn(()=>{ut&&n(29,ut.indeterminate=Ie,ut)}),kt(()=>{J.f7&&(he&&(J.f7.off("swipeoutOpen",Va),J.f7.off("swipeoutOpened",Ya),J.f7.off("swipeoutClose",Fa),J.f7.off("swipeoutClosed",Na),J.f7.off("swipeoutDelete",za),J.f7.off("swipeoutDeleted",Ha),J.f7.off("swipeoutOverswipeEnter",Da),J.f7.off("swipeoutOverswipeExit",Ra),J.f7.off("swipeout",qa)),Ve&&(J.f7.off("accordionBeforeOpen",Ga),J.f7.off("accordionOpen",Ua),J.f7.off("accordionOpened",xa),J.f7.off("accordionBeforeClose",Wa),J.f7.off("accordionClose",ja),J.f7.off("accordionClosed",Xa)))});function Cp(ae){$e[ae?"unshift":"push"](()=>{nt=ae,n(26,nt)})}function yp(ae){$e[ae?"unshift":"push"](()=>{nt=ae,n(26,nt)})}function wp(ae){$e[ae?"unshift":"push"](()=>{st=ae,n(28,st)})}function Sp(ae){$e[ae?"unshift":"push"](()=>{de=ae,n(27,de)})}function Tp(ae){$e[ae?"unshift":"push"](()=>{ut=ae,n(29,ut)})}function Mp(ae){$e[ae?"unshift":"push"](()=>{st=ae,n(28,st)})}function Pp(ae){$e[ae?"unshift":"push"](()=>{st=ae,n(28,st)})}function Ip(ae){$e[ae?"unshift":"push"](()=>{st=ae,n(28,st)})}function Ap(ae){$e[ae?"unshift":"push"](()=>{de=ae,n(27,de)})}function Op(ae){$e[ae?"unshift":"push"](()=>{ut=ae,n(29,ut)})}function Bp(ae){$e[ae?"unshift":"push"](()=>{st=ae,n(28,st)})}function Lp(ae){$e[ae?"unshift":"push"](()=>{st=ae,n(28,st)})}function Dp(ae){$e[ae?"unshift":"push"](()=>{nt=ae,n(26,nt)})}return t.$$set=ae=>{n(104,e=Ee(Ee({},e),Be(ae))),n(47,k=De(e,_)),"class"in ae&&n(48,A=ae.class),"title"in ae&&n(1,y=ae.title),"text"in ae&&n(2,w=ae.text),"media"in ae&&n(3,D=ae.media),"subtitle"in ae&&n(4,O=ae.subtitle),"header"in ae&&n(5,L=ae.header),"footer"in ae&&n(6,j=ae.footer),"tooltip"in ae&&n(7,W=ae.tooltip),"tooltipTrigger"in ae&&n(8,Y=ae.tooltipTrigger),"link"in ae&&n(49,B=ae.link),"tabLink"in ae&&n(50,q=ae.tabLink),"tabLinkActive"in ae&&n(51,X=ae.tabLinkActive),"selected"in ae&&n(52,H=ae.selected),"href"in ae&&n(53,G=ae.href),"target"in ae&&n(54,ce=ae.target),"after"in ae&&n(9,ye=ae.after),"badge"in ae&&n(10,ne=ae.badge),"badgeColor"in ae&&n(11,me=ae.badgeColor),"mediaItem"in ae&&n(55,K=ae.mediaItem),"mediaList"in ae&&n(56,pe=ae.mediaList),"groupTitle"in ae&&n(12,ke=ae.groupTitle),"swipeout"in ae&&n(13,he=ae.swipeout),"swipeoutOpened"in ae&&n(57,re=ae.swipeoutOpened),"sortable"in ae&&n(14,Ce=ae.sortable),"sortableOpposite"in ae&&n(58,Pe=ae.sortableOpposite),"accordionItem"in ae&&n(15,Ve=ae.accordionItem),"accordionItemOpened"in ae&&n(59,Me=ae.accordionItemOpened),"smartSelect"in ae&&n(60,He=ae.smartSelect),"smartSelectParams"in ae&&n(61,ze=ae.smartSelectParams),"noChevron"in ae&&n(62,fe=ae.noChevron),"chevronCenter"in ae&&n(63,ee=ae.chevronCenter),"checkbox"in ae&&n(16,Fe=ae.checkbox),"checkboxIcon"in ae&&n(64,Ue=ae.checkboxIcon),"radio"in ae&&n(17,qe=ae.radio),"radioIcon"in ae&&n(65,Oe=ae.radioIcon),"checked"in ae&&n(0,et=ae.checked),"indeterminate"in ae&&n(66,Ie=ae.indeterminate),"name"in ae&&n(18,xe=ae.name),"value"in ae&&n(19,Te=ae.value),"readonly"in ae&&n(20,Tt=ae.readonly),"required"in ae&&n(21,cn=ae.required),"disabled"in ae&&n(22,Kt=ae.disabled),"virtualListIndex"in ae&&n(23,un=ae.virtualListIndex),"routeProps"in ae&&n(24,vn=ae.routeProps),"$$scope"in ae&&n(83,S=ae.$$scope)},t.$$.update=()=>{t.$$.dirty[1]&50331648|t.$$.dirty[2]&64&&n(25,s=pe||K||At.listIsMedia),t.$$.dirty[0]&16384|t.$$.dirty[2]&64&&n(44,a=Ce===!0||Ce===!1?Ce:At.listIsSortable),t.$$.dirty[1]&134217728|t.$$.dirty[2]&64&&n(43,i=Pe||At.listIsSortableOpposite),t.$$.dirty[2]&64&&n(42,o=At.listIsSimple),n(41,r=Je(A,{"list-group-title":ke,"media-item":s,swipeout:he,"accordion-item":Ve,"accordion-item-opened":Me,disabled:Kt&&!(qe||Fe),"no-chevron":fe,"chevron-center":ee,"disallow-sorting":Ce===!1},tt(e))),n(40,l=Je(A,"item-content",{"item-checkbox":Fe,"item-radio":qe,"item-checkbox-icon-start":Fe&&Ue==="start","item-checkbox-icon-end":Fe&&Ue==="end","item-radio-icon-start":qe&&Oe==="start","item-radio-icon-end":qe&&Oe==="end"},tt(e))),n(39,f=Je({"item-link":!0,"smart-select":He,"tab-link":q||q==="","tab-link-active":X,"item-selected":H},Ea(e),ya(e))),n(38,c={href:B===!0?"":B||G,target:ce,"data-tab":at(q)&&q||void 0,...ka(e),...Ca(e)}),t.$$.dirty[0]&32768|t.$$.dirty[1]&541327360&&n(37,u=B||G||He||Ve),t.$$.dirty[0]&8&&n(36,d=typeof D<"u"||I.media),t.$$.dirty[0]&2&&n(35,m=typeof y<"u"||I.title),t.$$.dirty[0]&32&&n(34,h=typeof L<"u"||I.header),t.$$.dirty[0]&64&&n(33,p=typeof j<"u"||I.footer),t.$$.dirty[0]&16&&n(32,b=typeof O<"u"||I.subtitle),t.$$.dirty[0]&4&&n(31,g=typeof w<"u"||I.text),t.$$.dirty[0]&1536&&n(30,v=typeof ye<"u"||typeof ne<"u"||I.after),t.$$.dirty[1]&67108864&&_p(re)},e=Be(e),[et,y,w,D,O,L,j,W,Y,ye,ne,me,ke,he,Ce,Ve,Fe,qe,xe,Te,Tt,cn,Kt,un,vn,s,nt,de,st,ut,v,g,b,p,h,m,d,u,c,f,l,r,o,i,a,kp,Ep,k,A,B,q,X,H,G,ce,K,pe,re,Pe,Me,He,ze,fe,ee,Ue,Oe,Ie,vt,At,E,Cp,yp,wp,Sp,Tp,Mp,Pp,Ip,Ap,Op,Bp,Lp,Dp,S]}class xd extends We{constructor(e){super(),je(this,e,Mv,Tv,Xe,{class:48,title:1,text:2,media:3,subtitle:4,header:5,footer:6,tooltip:7,tooltipTrigger:8,link:49,tabLink:50,tabLinkActive:51,selected:52,href:53,target:54,after:9,badge:10,badgeColor:11,mediaItem:55,mediaList:56,groupTitle:12,swipeout:13,swipeoutOpened:57,sortable:14,sortableOpposite:58,accordionItem:15,accordionItemOpened:59,smartSelect:60,smartSelectParams:61,noChevron:62,chevronCenter:63,checkbox:16,checkboxIcon:64,radio:17,radioIcon:65,checked:0,indeterminate:66,name:18,value:19,readonly:20,required:21,disabled:22,virtualListIndex:23,routeProps:24,smartSelectInstance:67},null,[-1,-1,-1,-1])}get smartSelectInstance(){return this.$$.ctx[67]}}const Pv=t=>({}),xc=t=>({}),Iv=t=>({}),$c=t=>({}),Av=t=>({}),Qc=t=>({}),Ov=t=>({}),Kc=t=>({}),Bv=t=>({}),Zc=t=>({}),Lv=t=>({}),Jc=t=>({});function Dv(t){let e,n,s,a,i,o,r;const l=t[56]["before-list"],f=U(l,t,t[55],Qc),c=[zv,Hv],u=[];function d(g,v){return g[5]&&g[0]?0:1}s=d(t),a=u[s]=c[s](t);const m=t[56]["after-list"],h=U(m,t,t[55],xc);let p=[{class:t[4]},{"data-sortable-move-elements":o=typeof t[1]<"u"?t[1].toString():void 0},Re(t[7])],b={};for(let g=0;g{u[_]=null}),oe(),a=u[s],a?a.p(g,v):(a=u[s]=c[s](g),a.c()),C(a,1),a.m(e,i)),h&&h.p&&(!r||v[1]&16777216)&&x(h,m,g,g[55],r?Q(m,g[55],v,Pv):$(g[55]),xc),Ae(e,b=Ge(p,[(!r||v[0]&16)&&{class:g[4]},(!r||v[0]&2&&o!==(o=typeof g[1]<"u"?g[1].toString():void 0))&&{"data-sortable-move-elements":o},v[0]&128&&Re(g[7])]))},i(g){r||(C(f,g),C(a),C(h,g),r=!0)},o(g){M(f,g),M(a),M(h,g),r=!1},d(g){g&&F(e),f&&f.d(g),u[s].d(),h&&h.d(g),t[58](null)}}}function Rv(t){let e,n,s,a,i,o,r,l,f;const c=t[56]["before-list"],u=U(c,t,t[55],Jc),d=[Nv,Fv],m=[];function h(_,k){return _[5]&&_[0]?0:1}s=h(t),a=m[s]=d[s](t);const p=t[56]["after-list"],b=U(p,t,t[55],Kc);let g=[{class:t[4]},{"data-sortable-move-elements":o=typeof t[1]<"u"?t[1].toString():void 0},Re(t[7])],v={};for(let _=0;_{m[E]=null}),oe(),a=m[s],a?a.p(_,k):(a=m[s]=d[s](_),a.c()),C(a,1),a.m(e,i)),b&&b.p&&(!r||k[1]&16777216)&&x(b,p,_,_[55],r?Q(p,_[55],k,Ov):$(_[55]),Kc),Ae(e,v=Ge(g,[(!r||k[0]&16)&&{class:_[4]},(!r||k[0]&2&&o!==(o=typeof _[1]<"u"?_[1].toString():void 0))&&{"data-sortable-move-elements":o},k[0]&128&&Re(_[7])]))},i(_){r||(C(u,_),C(a),C(b,_),r=!0)},o(_){M(u,_),M(a),M(b,_),r=!1},d(_){_&&F(e),u&&u.d(_),m[s].d(),b&&b.d(_),t[57](null),l=!1,f()}}}function Hv(t){let e;const n=t[56].default,s=U(n,t,t[55],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[1]&16777216)&&x(s,n,a,a[55],e?Q(n,a[55],i,null):$(a[55]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function zv(t){let e,n,s;const a=t[56].list,i=U(a,t,t[55],$c),o=t[56].default,r=U(o,t,t[55],null);return{c(){e=Z("ul"),i&&i.c(),n=V(),r&&r.c()},m(l,f){z(l,e,f),i&&i.m(e,null),N(e,n),r&&r.m(e,null),s=!0},p(l,f){i&&i.p&&(!s||f[1]&16777216)&&x(i,a,l,l[55],s?Q(a,l[55],f,Iv):$(l[55]),$c),r&&r.p&&(!s||f[1]&16777216)&&x(r,o,l,l[55],s?Q(o,l[55],f,null):$(l[55]),null)},i(l){s||(C(i,l),C(r,l),s=!0)},o(l){M(i,l),M(r,l),s=!1},d(l){l&&F(e),i&&i.d(l),r&&r.d(l)}}}function Fv(t){let e;const n=t[56].default,s=U(n,t,t[55],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[1]&16777216)&&x(s,n,a,a[55],e?Q(n,a[55],i,null):$(a[55]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function Nv(t){let e,n,s;const a=t[56].list,i=U(a,t,t[55],Zc),o=t[56].default,r=U(o,t,t[55],null);return{c(){e=Z("ul"),i&&i.c(),n=V(),r&&r.c()},m(l,f){z(l,e,f),i&&i.m(e,null),N(e,n),r&&r.m(e,null),s=!0},p(l,f){i&&i.p&&(!s||f[1]&16777216)&&x(i,a,l,l[55],s?Q(a,l[55],f,Bv):$(l[55]),Zc),r&&r.p&&(!s||f[1]&16777216)&&x(r,o,l,l[55],s?Q(o,l[55],f,null):$(l[55]),null)},i(l){s||(C(i,l),C(r,l),s=!0)},o(l){M(i,l),M(r,l),s=!1},d(l){l&&F(e),i&&i.d(l),r&&r.d(l)}}}function Vv(t){let e,n,s,a;const i=[Rv,Dv],o=[];function r(l,f){return l[2]?0:1}return e=r(t),n=o[e]=i[e](t),{c(){n.c(),s=Ze()},m(l,f){o[e].m(l,f),z(l,s,f),a=!0},p(l,f){let c=e;e=r(l),e===c?o[e].p(l,f):(le(),M(o[c],1,1,()=>{o[c]=null}),oe(),n=o[e],n?n.p(l,f):(n=o[e]=i[e](l),n.c()),C(n,1),n.m(s.parentNode,s))},i(l){a||(C(n),a=!0)},o(l){M(n),a=!1},d(l){l&&F(s),o[e].d(l)}}}function Yv(t,e,n){let s,a;const i=["class","ul","inset","insetIos","insetMd","xsmallInset","xsmallInsetIos","xsmallInsetMd","smallInset","smallInsetIos","smallInsetMd","mediumInset","mediumInsetIos","mediumInsetMd","largeInset","largeInsetIos","largeInsetMd","xlargeInset","xlargeInsetIos","xlargeInsetMd","strong","strongIos","strongMd","outline","outlineIos","outlineMd","dividers","dividersIos","dividersMd","mediaList","sortable","sortableTapHold","sortableEnabled","sortableMoveElements","sortableOpposite","accordionList","accordionOpposite","contactsList","simpleList","linksList","menuList","noChevron","chevronCenter","tab","tabActive","form","formStoreData","virtualList","virtualListParams","virtualListInstance"];let o=De(e,i),{$$slots:r={},$$scope:l}=e;const f=Fn(r),c=pt(mt,e);let{class:u=void 0}=e,{ul:d=!0}=e,{inset:m=!1}=e,{insetIos:h=!1}=e,{insetMd:p=!1}=e,{xsmallInset:b=!1}=e,{xsmallInsetIos:g=!1}=e,{xsmallInsetMd:v=!1}=e,{smallInset:_=!1}=e,{smallInsetIos:k=!1}=e,{smallInsetMd:E=!1}=e,{mediumInset:S=!1}=e,{mediumInsetIos:I=!1}=e,{mediumInsetMd:T=!1}=e,{largeInset:A=!1}=e,{largeInsetIos:y=!1}=e,{largeInsetMd:w=!1}=e,{xlargeInset:D=!1}=e,{xlargeInsetIos:O=!1}=e,{xlargeInsetMd:L=!1}=e,{strong:j=!1}=e,{strongIos:W=!1}=e,{strongMd:Y=!1}=e,{outline:B=!1}=e,{outlineIos:q=!1}=e,{outlineMd:X=!1}=e,{dividers:H=!1}=e,{dividersIos:G=!1}=e,{dividersMd:ce=!1}=e,{mediaList:ye=!1}=e,{sortable:ne=!1}=e,{sortableTapHold:me=!1}=e,{sortableEnabled:K=!1}=e,{sortableMoveElements:pe=void 0}=e,{sortableOpposite:ke=!1}=e,{accordionList:he=!1}=e,{accordionOpposite:re=!1}=e,{contactsList:Ce=!1}=e,{simpleList:Pe=!1}=e,{linksList:Ve=!1}=e,{menuList:Me=!1}=e,{noChevron:He=!1}=e,{chevronCenter:ze=!1}=e,{tab:fe=!1}=e,{tabActive:ee=!1}=e,{form:Fe=!1}=e,{formStoreData:Ue=!1}=e,{virtualList:qe=!1}=e,{virtualListParams:Oe=void 0}=e,et,Ie;function xe(){return Ie}Ud("ListContext",()=>({listIsMedia:ye,listIsSimple:Pe,listIsSortable:ne,listIsSortableOpposite:ke}));function Te(de){c("submit",[de])}function Tt(de){de===et&&c("sortableEnable")}function cn(de){de===et&&c("sortableDisable")}function Kt(de,st,ut){ut===et&&c("sortableSort",[st])}function un(de,st){st===et&&c("sortableMove",[de,st])}Is(()=>et,c),gt(()=>{bt(()=>{if(J.f7.on("sortableEnable",Tt),J.f7.on("sortableDisable",cn),J.f7.on("sortableSort",Kt),J.f7.on("sortableMove",un),!qe)return;const de=Oe||{};!de.renderItem&&!de.renderExternal||(Ie=J.f7.virtualList.create(kn({el:et,on:{itemBeforeInsert(st,ut){c("virtualItemBeforeInsert",[this,st,ut])},beforeClear(st){c("virtualBeforeClear",[this,st])},itemsBeforeInsert(st){c("virtualItemsBeforeInsert",[this,st])},itemsAfterInsert(st){c("virtualItemsAfterInsert",[this,st])}}},de)))})}),kt(()=>{J.f7&&(J.f7.off("sortableEnable",Tt),J.f7.off("sortableDisable",cn),J.f7.off("sortableSort",Kt),J.f7.off("sortableMove",un),Ie&&Ie.destroy&&(Ie.destroy(),Ie=null))});function vn(de){$e[de?"unshift":"push"](()=>{et=de,n(3,et)})}function nt(de){$e[de?"unshift":"push"](()=>{et=de,n(3,et)})}return t.$$set=de=>{n(65,e=Ee(Ee({},e),Be(de))),n(7,o=De(e,i)),"class"in de&&n(8,u=de.class),"ul"in de&&n(0,d=de.ul),"inset"in de&&n(9,m=de.inset),"insetIos"in de&&n(10,h=de.insetIos),"insetMd"in de&&n(11,p=de.insetMd),"xsmallInset"in de&&n(12,b=de.xsmallInset),"xsmallInsetIos"in de&&n(13,g=de.xsmallInsetIos),"xsmallInsetMd"in de&&n(14,v=de.xsmallInsetMd),"smallInset"in de&&n(15,_=de.smallInset),"smallInsetIos"in de&&n(16,k=de.smallInsetIos),"smallInsetMd"in de&&n(17,E=de.smallInsetMd),"mediumInset"in de&&n(18,S=de.mediumInset),"mediumInsetIos"in de&&n(19,I=de.mediumInsetIos),"mediumInsetMd"in de&&n(20,T=de.mediumInsetMd),"largeInset"in de&&n(21,A=de.largeInset),"largeInsetIos"in de&&n(22,y=de.largeInsetIos),"largeInsetMd"in de&&n(23,w=de.largeInsetMd),"xlargeInset"in de&&n(24,D=de.xlargeInset),"xlargeInsetIos"in de&&n(25,O=de.xlargeInsetIos),"xlargeInsetMd"in de&&n(26,L=de.xlargeInsetMd),"strong"in de&&n(27,j=de.strong),"strongIos"in de&&n(28,W=de.strongIos),"strongMd"in de&&n(29,Y=de.strongMd),"outline"in de&&n(30,B=de.outline),"outlineIos"in de&&n(31,q=de.outlineIos),"outlineMd"in de&&n(32,X=de.outlineMd),"dividers"in de&&n(33,H=de.dividers),"dividersIos"in de&&n(34,G=de.dividersIos),"dividersMd"in de&&n(35,ce=de.dividersMd),"mediaList"in de&&n(36,ye=de.mediaList),"sortable"in de&&n(37,ne=de.sortable),"sortableTapHold"in de&&n(38,me=de.sortableTapHold),"sortableEnabled"in de&&n(39,K=de.sortableEnabled),"sortableMoveElements"in de&&n(1,pe=de.sortableMoveElements),"sortableOpposite"in de&&n(40,ke=de.sortableOpposite),"accordionList"in de&&n(41,he=de.accordionList),"accordionOpposite"in de&&n(42,re=de.accordionOpposite),"contactsList"in de&&n(43,Ce=de.contactsList),"simpleList"in de&&n(44,Pe=de.simpleList),"linksList"in de&&n(45,Ve=de.linksList),"menuList"in de&&n(46,Me=de.menuList),"noChevron"in de&&n(47,He=de.noChevron),"chevronCenter"in de&&n(48,ze=de.chevronCenter),"tab"in de&&n(49,fe=de.tab),"tabActive"in de&&n(50,ee=de.tabActive),"form"in de&&n(2,Fe=de.form),"formStoreData"in de&&n(51,Ue=de.formStoreData),"virtualList"in de&&n(52,qe=de.virtualList),"virtualListParams"in de&&n(53,Oe=de.virtualListParams),"$$scope"in de&&n(55,l=de.$$scope)},t.$$.update=()=>{n(4,a=Je(u,"list",{inset:m,"inset-ios":h,"inset-md":p,"xsmall-inset":b,"xsmall-inset-ios":g,"xsmall-inset-md":v,"small-inset":_,"small-inset-ios":k,"small-inset-md":E,"medium-inset":S,"medium-inset-ios":I,"medium-inset-md":T,"large-inset":A,"large-inset-ios":y,"large-inset-md":w,"xlarge-inset":D,"xlarge-inset-ios":O,"xlarge-inset-md":L,"list-strong":j,"list-strong-ios":W,"list-strong-md":Y,"list-outline":B,"list-outline-ios":q,"list-outline-md":X,"list-dividers":H,"list-dividers-ios":G,"list-dividers-md":ce,"media-list":ye,"simple-list":Pe,"links-list":Ve,"menu-list":Me,sortable:ne,"sortable-tap-hold":me,"sortable-enabled":K,"sortable-opposite":ke,"accordion-list":he,"accordion-opposite":re,"contacts-list":Ce,"virtual-list":qe,tab:fe,"tab-active":ee,"form-store-data":Ue,"no-chevron":He,"chevron-center":ze},tt(e)))},n(5,s=f.default||f.list),e=Be(e),[d,pe,Fe,et,a,s,Te,o,u,m,h,p,b,g,v,_,k,E,S,I,T,A,y,w,D,O,L,j,W,Y,B,q,X,H,G,ce,ye,ne,me,K,ke,he,re,Ce,Pe,Ve,Me,He,ze,fe,ee,Ue,qe,Oe,xe,l,r,vn,nt]}class $d extends We{constructor(e){super(),je(this,e,Yv,Vv,Xe,{class:8,ul:0,inset:9,insetIos:10,insetMd:11,xsmallInset:12,xsmallInsetIos:13,xsmallInsetMd:14,smallInset:15,smallInsetIos:16,smallInsetMd:17,mediumInset:18,mediumInsetIos:19,mediumInsetMd:20,largeInset:21,largeInsetIos:22,largeInsetMd:23,xlargeInset:24,xlargeInsetIos:25,xlargeInsetMd:26,strong:27,strongIos:28,strongMd:29,outline:30,outlineIos:31,outlineMd:32,dividers:33,dividersIos:34,dividersMd:35,mediaList:36,sortable:37,sortableTapHold:38,sortableEnabled:39,sortableMoveElements:1,sortableOpposite:40,accordionList:41,accordionOpposite:42,contactsList:43,simpleList:44,linksList:45,menuList:46,noChevron:47,chevronCenter:48,tab:49,tabActive:50,form:2,formStoreData:51,virtualList:52,virtualListParams:53,virtualListInstance:54},null,[-1,-1,-1])}get virtualListInstance(){return this.$$.ctx[54]}}function eu(t){let e,n;return e=new xt({props:{href:t[1]||"#",back:!0,icon:"icon-back",force:t[2]||void 0,class:t[3]?void 0:"icon-only",text:t[3],onClick:t[5]}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&2&&(i.href=s[1]||"#"),a&4&&(i.force=s[2]||void 0),a&8&&(i.class=s[3]?void 0:"icon-only"),a&8&&(i.text=s[3]),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function qv(t){let e,n,s,a=t[0]&&eu(t);const i=t[13].default,o=U(i,t,t[12],null);let r=[{class:t[4]},Re(t[6])],l={};for(let f=0;f{a=null}),oe()),o&&o.p&&(!s||c&4096)&&x(o,i,f,f[12],s?Q(i,f[12],c,null):$(f[12]),null),Ae(e,l=Ge(r,[(!s||c&16)&&{class:f[4]},c&64&&Re(f[6])]))},i(f){s||(C(a),C(o,f),s=!0)},o(f){M(a),M(o,f),s=!1},d(f){f&&F(e),a&&a.d(),o&&o.d(f)}}}function Wv(t,e,n){let s,a,i;const o=["class","backLink","backLinkUrl","backLinkForce","backLinkShowText","sliding"];let r=De(e,o),{$$slots:l={},$$scope:f}=e;const c=pt(mt,e);let{class:u=void 0}=e,{backLink:d=void 0}=e,{backLinkUrl:m=void 0}=e,{backLinkForce:h=void 0}=e,{backLinkShowText:p=void 0}=e,{sliding:b=void 0}=e,g=os(_=>{n(10,g=_)});function v(){c("clickBack"),c("backClick")}return t.$$set=_=>{n(15,e=Ee(Ee({},e),Be(_))),n(6,r=De(e,o)),"class"in _&&n(7,u=_.class),"backLink"in _&&n(0,d=_.backLink),"backLinkUrl"in _&&n(1,m=_.backLinkUrl),"backLinkForce"in _&&n(2,h=_.backLinkForce),"backLinkShowText"in _&&n(8,p=_.backLinkShowText),"sliding"in _&&n(9,b=_.sliding),"$$scope"in _&&n(12,f=_.$$scope)},t.$$.update=()=>{n(4,s=Je(u,"left",{sliding:b},tt(e))),t.$$.dirty&256&&n(11,a=p),t.$$.dirty&3072&&typeof a>"u"&&n(11,a=g&&!g.md),t.$$.dirty&2049&&n(3,i=d!==!0&&a?d:void 0)},e=Be(e),[d,m,h,i,s,v,r,u,p,b,g,a,f,l]}class As extends We{constructor(e){super(),je(this,e,Wv,qv,Xe,{class:7,backLink:0,backLinkUrl:1,backLinkForce:2,backLinkShowText:8,sliding:9})}}function jv(t){let e,n;const s=t[5].default,a=U(s,t,t[4],null);let i=[{class:t[0]},Re(t[1])],o={};for(let r=0;r{n(6,e=Ee(Ee({},e),Be(c))),n(1,i=De(e,a)),"class"in c&&n(2,l=c.class),"sliding"in c&&n(3,f=c.sliding),"$$scope"in c&&n(4,r=c.$$scope)},t.$$.update=()=>{n(0,s=Je(l,"right",{sliding:f},tt(e)))},e=Be(e),[s,i,l,f,r,o]}class Os extends We{constructor(e){super(),je(this,e,Xv,jv,Xe,{class:2,sliding:3})}}function tu(t){let e=ie(t[0])+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a&1&&e!==(e=ie(s[0])+"")&&we(n,e)},d(s){s&&F(n)}}}function nu(t){let e,n=ie(t[1])+"",s;return{c(){e=Z("span"),s=ge(n),se(e,"class","subtitle")},m(a,i){z(a,e,i),N(e,s)},p(a,i){i&2&&n!==(n=ie(a[1])+"")&&we(s,n)},d(a){a&&F(e)}}}function Gv(t){let e,n,s,a,i=typeof t[0]<"u"&&tu(t),o=typeof t[1]<"u"&&nu(t);const r=t[7].default,l=U(r,t,t[6],null);let f=[{class:t[2]},Re(t[3])],c={};for(let u=0;u{n(8,e=Ee(Ee({},e),Be(d))),n(3,i=De(e,a)),"class"in d&&n(4,l=d.class),"title"in d&&n(0,f=d.title),"subtitle"in d&&n(1,c=d.subtitle),"sliding"in d&&n(5,u=d.sliding),"$$scope"in d&&n(6,r=d.$$scope)},t.$$.update=()=>{n(2,s=Je(l,"title",{sliding:u},tt(e)))},e=Be(e),[f,c,s,i,l,u,r,o]}class Bs extends We{constructor(e){super(),je(this,e,Uv,Gv,Xe,{class:4,title:0,subtitle:1,sliding:5})}}const xv=t=>({}),su=t=>({}),$v=t=>({}),au=t=>({}),Qv=t=>({}),iu=t=>({}),Kv=t=>({}),ru=t=>({}),Zv=t=>({}),lu=t=>({}),Jv=t=>({}),ou=t=>({}),e1=t=>({}),fu=t=>({}),t1=t=>({}),cu=t=>({});function uu(t){let e,n;return e=new As({props:{backLink:t[0],backLinkUrl:t[1],backLinkForce:t[2],backLinkShowText:t[3],onBackClick:t[15],$$slots:{default:[n1]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&1&&(i.backLink=s[0]),a[0]&2&&(i.backLinkUrl=s[1]),a[0]&4&&(i.backLinkForce=s[2]),a[0]&8&&(i.backLinkShowText=s[3]),a[1]&8192&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function n1(t){let e,n;const s=t[42]["nav-left"],a=U(s,t,t[44],fu),i=t[42].left,o=U(i,t,t[44],ou);return{c(){a&&a.c(),e=V(),o&&o.c()},m(r,l){a&&a.m(r,l),z(r,e,l),o&&o.m(r,l),n=!0},p(r,l){a&&a.p&&(!n||l[1]&8192)&&x(a,s,r,r[44],n?Q(s,r[44],l,e1):$(r[44]),fu),o&&o.p&&(!n||l[1]&8192)&&x(o,i,r,r[44],n?Q(i,r[44],l,Jv):$(r[44]),ou)},i(r){n||(C(a,r),C(o,r),n=!0)},o(r){M(a,r),M(o,r),n=!1},d(r){r&&F(e),a&&a.d(r),o&&o.d(r)}}}function du(t){let e,n;return e=new Bs({props:{title:t[4],subtitle:t[5],$$slots:{default:[s1]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&16&&(i.title=s[4]),a[0]&32&&(i.subtitle=s[5]),a[1]&8192&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function s1(t){let e;const n=t[42].title,s=U(n,t,t[44],lu);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i[1]&8192)&&x(s,n,a,a[44],e?Q(n,a[44],i,Zv):$(a[44]),lu)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function pu(t){let e,n;return e=new Os({props:{$$slots:{default:[a1]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[1]&8192&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function a1(t){let e,n;const s=t[42]["nav-right"],a=U(s,t,t[44],ru),i=t[42].right,o=U(i,t,t[44],iu);return{c(){a&&a.c(),e=V(),o&&o.c()},m(r,l){a&&a.m(r,l),z(r,e,l),o&&o.m(r,l),n=!0},p(r,l){a&&a.p&&(!n||l[1]&8192)&&x(a,s,r,r[44],n?Q(s,r[44],l,Kv):$(r[44]),ru),o&&o.p&&(!n||l[1]&8192)&&x(o,i,r,r[44],n?Q(i,r[44],l,Qv):$(r[44]),iu)},i(r){n||(C(a,r),C(o,r),n=!0)},o(r){M(a,r),M(o,r),n=!1},d(r){r&&F(e),a&&a.d(r),o&&o.d(r)}}}function mu(t){let e,n,s=ie(t[11])+"",a,i,o;const r=t[42]["title-large"],l=U(r,t,t[44],au);return{c(){e=Z("div"),n=Z("div"),a=ge(s),i=V(),l&&l.c(),se(n,"class","title-large-text"),se(e,"class","title-large")},m(f,c){z(f,e,c),N(e,n),N(n,a),N(n,i),l&&l.m(n,null),o=!0},p(f,c){(!o||c[0]&2048)&&s!==(s=ie(f[11])+"")&&we(a,s),l&&l.p&&(!o||c[1]&8192)&&x(l,r,f,f[44],o?Q(r,f[44],c,$v):$(f[44]),au)},i(f){o||(C(l,f),o=!0)},o(f){M(l,f),o=!1},d(f){f&&F(e),l&&l.d(f)}}}function i1(t){let e,n,s,a,i,o,r,l,f,c,u;const d=t[42]["before-inner"],m=U(d,t,t[44],cu);let h=(t[0]||t[14])&&uu(t),p=(t[4]||t[5]||t[12])&&du(t),b=t[13]&&pu(t),g=(t[11]||t[10])&&mu(t);const v=t[42].default,_=U(v,t,t[44],null),k=t[42]["after-inner"],E=U(k,t,t[44],su);let S=[{class:t[9]},{"data-f7-slot":t[6]},Re(t[16])],I={};for(let T=0;T{h=null}),oe()),T[4]||T[5]||T[12]?p?(p.p(T,A),A[0]&4144&&C(p,1)):(p=du(T),p.c(),C(p,1),p.m(i,r)):p&&(le(),M(p,1,1,()=>{p=null}),oe()),T[13]?b?(b.p(T,A),A[0]&8192&&C(b,1)):(b=pu(T),b.c(),C(b,1),b.m(i,l)):b&&(le(),M(b,1,1,()=>{b=null}),oe()),T[11]||T[10]?g?(g.p(T,A),A[0]&3072&&C(g,1)):(g=mu(T),g.c(),C(g,1),g.m(i,f)):g&&(le(),M(g,1,1,()=>{g=null}),oe()),_&&_.p&&(!u||A[1]&8192)&&x(_,v,T,T[44],u?Q(v,T[44],A,null):$(T[44]),null),(!u||A[0]&256)&&se(i,"class",T[8]),E&&E.p&&(!u||A[1]&8192)&&x(E,k,T,T[44],u?Q(k,T[44],A,xv):$(T[44]),su),Ae(e,I=Ge(S,[(!u||A[0]&512)&&{class:T[9]},(!u||A[0]&64)&&{"data-f7-slot":T[6]},A[0]&65536&&Re(T[16])]))},i(T){u||(C(m,T),C(h),C(p),C(b),C(g),C(_,T),C(E,T),u=!0)},o(T){M(m,T),M(h),M(p),M(b),M(g),M(_,T),M(E,T),u=!1},d(T){T&&F(e),m&&m.d(T),h&&h.d(),p&&p.d(),b&&b.d(),g&&g.d(),_&&_.d(T),E&&E.d(T),t[43](null)}}}function r1(t,e,n){let s,a,i,o,r,l,f,c,u,d,m,h;const p=["class","backLink","backLinkUrl","backLinkForce","backLinkShowText","sliding","title","subtitle","hidden","outline","innerClass","innerClassName","large","largeTransparent","transparent","titleLarge","f7Slot","hide","show","size"];let b=De(e,p),{$$slots:g={},$$scope:v}=e;const _=Fn(g),k=pt(mt,e);let{class:E=void 0}=e,{backLink:S=void 0}=e,{backLinkUrl:I=void 0}=e,{backLinkForce:T=!1}=e,{backLinkShowText:A=void 0}=e,{sliding:y=!0}=e,{title:w=void 0}=e,{subtitle:D=void 0}=e,{hidden:O=!1}=e,{outline:L=!0}=e,{innerClass:j=void 0}=e,{innerClassName:W=void 0}=e,{large:Y=!1}=e,{largeTransparent:B=!1}=e,{transparent:q=!1}=e,{titleLarge:X=void 0}=e,{f7Slot:H="fixed"}=e,G,ce=os(Te=>{n(30,ce=Te)}),ye="",ne=!1,me=null,K=!1,pe=!1,ke=!1;function he(Te){J.f7.navbar.hide(G,Te)}function re(Te){J.f7.navbar.show(G,Te)}function Ce(){J.f7.navbar.size(G)}function Pe(Te){G===Te&&k("navbarHide")}function Ve(Te){G===Te&&k("navbarShow")}function Me(Te){G===Te&&(n(36,ke=!0),k("navbarTransparentShow"))}function He(Te){G===Te&&(n(36,ke=!1),k("navbarTransparentHide"))}function ze(Te){G===Te&&(n(32,ne=!1),k("navbarExpand"))}function fe(Te){G===Te&&(n(32,ne=!0),k("navbarCollapse"))}function ee(Te,Tt){G===Te&&n(31,ye=Tt&&`navbar-${Tt}`)}function Fe(Te,Tt){G===Te&&(n(33,me=Tt.role),n(34,K=Tt.detailRoot))}function Ue(Te){G===Te&&n(35,pe=!0)}function qe(Te){G===Te&&n(35,pe=!1)}function Oe(){k("clickBack")}function et(){J.f7.on("navbarShow",Ve),J.f7.on("navbarHide",Pe),J.f7.on("navbarCollapse",fe),J.f7.on("navbarExpand",ze),J.f7.on("navbarPosition",ee),J.f7.on("navbarRole",Fe),J.f7.on("navbarMasterStack",Ue),J.f7.on("navbarMasterUnstack",qe),J.f7.on("navbarTransparentShow",Me),J.f7.on("navbarTransparentHide",He)}function Ie(){J.f7.off("navbarShow",Ve),J.f7.off("navbarHide",Pe),J.f7.off("navbarCollapse",fe),J.f7.off("navbarExpand",ze),J.f7.off("navbarPosition",ee),J.f7.off("navbarRole",Fe),J.f7.off("navbarMasterStack",Ue),J.f7.off("navbarMasterUnstack",qe),J.f7.off("navbarTransparentShow",Me),J.f7.off("navbarTransparentHide",He)}gt(()=>{bt(()=>{et()})}),zn(()=>{J.f7&&J.f7.navbar.size(G)}),kt(()=>{J.f7&&Ie()});function xe(Te){$e[Te?"unshift":"push"](()=>{G=Te,n(7,G)})}return t.$$set=Te=>{n(58,e=Ee(Ee({},e),Be(Te))),n(16,b=De(e,p)),"class"in Te&&n(17,E=Te.class),"backLink"in Te&&n(0,S=Te.backLink),"backLinkUrl"in Te&&n(1,I=Te.backLinkUrl),"backLinkForce"in Te&&n(2,T=Te.backLinkForce),"backLinkShowText"in Te&&n(3,A=Te.backLinkShowText),"sliding"in Te&&n(18,y=Te.sliding),"title"in Te&&n(4,w=Te.title),"subtitle"in Te&&n(5,D=Te.subtitle),"hidden"in Te&&n(19,O=Te.hidden),"outline"in Te&&n(20,L=Te.outline),"innerClass"in Te&&n(21,j=Te.innerClass),"innerClassName"in Te&&n(22,W=Te.innerClassName),"large"in Te&&n(23,Y=Te.large),"largeTransparent"in Te&&n(24,B=Te.largeTransparent),"transparent"in Te&&n(25,q=Te.transparent),"titleLarge"in Te&&n(26,X=Te.titleLarge),"f7Slot"in Te&&n(6,H=Te.f7Slot),"$$scope"in Te&&n(44,v=Te.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&75497488&&n(11,o=X||Y&&w),t.$$.dirty[0]&1073741824&&n(38,l=ce&&ce.ios&&J.f7&&!J.f7.params.navbar.iosCenterTitle),t.$$.dirty[0]&1073741824&&n(37,f=ce&&ce.md&&J.f7&&J.f7.params.navbar.mdCenterTitle),t.$$.dirty[0]&25165824&&n(41,c=Y||B),t.$$.dirty[0]&50331648|t.$$.dirty[1]&1024&&n(40,u=q||c&&B),t.$$.dirty[1]&544&&n(39,d=u&&ke),n(9,m=Je(E,"navbar",ye,{"navbar-hidden":O,"navbar-large":c,"navbar-large-collapsed":c&&ne,"navbar-transparent":u,"navbar-transparent-visible":d,"navbar-master":me==="master","navbar-master-detail":me==="detail","navbar-master-detail-root":K===!0,"navbar-master-stacked":pe===!0,"no-outline":!L},tt(e))),t.$$.dirty[0]&6553600|t.$$.dirty[1]&192&&n(8,h=Je("navbar-inner",j,W,{sliding:y,"navbar-inner-left-title":l,"navbar-inner-centered-title":f}))},n(14,s=_["nav-left"]||_.left),n(13,a=_["nav-right"]||_.right),n(12,i=_.title),n(10,r=_["title-large"]),e=Be(e),[S,I,T,A,w,D,H,G,h,m,r,o,i,a,s,Oe,b,E,y,O,L,j,W,Y,B,q,X,he,re,Ce,ce,ye,ne,me,K,pe,ke,f,l,d,u,c,g,xe,v]}let Ls=class extends We{constructor(e){super(),je(this,e,r1,i1,Xe,{class:17,backLink:0,backLinkUrl:1,backLinkForce:2,backLinkShowText:3,sliding:18,title:4,subtitle:5,hidden:19,outline:20,innerClass:21,innerClassName:22,large:23,largeTransparent:24,transparent:25,titleLarge:26,f7Slot:6,hide:27,show:28,size:29},null,[-1,-1])}get hide(){return this.$$.ctx[27]}get show(){return this.$$.ctx[28]}get size(){return this.$$.ctx[29]}};function hu(t){let e,n,s,a,i;return n=new Mn({}),{c(){e=Z("div"),be(n.$$.fragment),s=V(),a=Z("div"),se(a,"class","ptr-arrow"),se(e,"class","ptr-preloader")},m(o,r){z(o,e,r),ve(n,e,null),N(e,s),N(e,a),i=!0},i(o){i||(C(n.$$.fragment,o),i=!0)},o(o){M(n.$$.fragment,o),i=!1},d(o){o&&F(e),_e(n)}}}function gu(t){let e,n;return e=new Mn({props:{class:"infinite-scroll-preloader"}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function bu(t){let e,n;return e=new Mn({props:{class:"infinite-scroll-preloader"}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function vu(t){let e,n,s,a,i;return n=new Mn({}),{c(){e=Z("div"),be(n.$$.fragment),s=V(),a=Z("div"),se(a,"class","ptr-arrow"),se(e,"class","ptr-preloader")},m(o,r){z(o,e,r),ve(n,e,null),N(e,s),N(e,a),i=!0},i(o){i||(C(n.$$.fragment,o),i=!0)},o(o){M(n.$$.fragment,o),i=!1},d(o){o&&F(e),_e(n)}}}function l1(t){let e,n,s,a,i,o,r,l,f=t[0]&&t[2]&&!t[3]&&hu(),c=t[5]&&t[6]&&t[8]&&gu();const u=t[21].default,d=U(u,t,t[20],null);let m=t[5]&&!t[6]&&t[8]&&bu(),h=t[0]&&t[2]&&t[3]&&vu(),p=[{class:t[10]},{"data-ptr-distance":t[1]},{"data-ptr-mousewheel":o=t[4]||void 0},{"data-infinite-distance":r=t[7]||void 0},Re(t[11])],b={};for(let g=0;g{f=null}),oe()),g[5]&&g[6]&&g[8]?c?v[0]&352&&C(c,1):(c=gu(),c.c(),C(c,1),c.m(e,s)):c&&(le(),M(c,1,1,()=>{c=null}),oe()),d&&d.p&&(!l||v[0]&1048576)&&x(d,u,g,g[20],l?Q(u,g[20],v,null):$(g[20]),null),g[5]&&!g[6]&&g[8]?m?v[0]&352&&C(m,1):(m=bu(),m.c(),C(m,1),m.m(e,i)):m&&(le(),M(m,1,1,()=>{m=null}),oe()),g[0]&&g[2]&&g[3]?h?v[0]&13&&C(h,1):(h=vu(),h.c(),C(h,1),h.m(e,null)):h&&(le(),M(h,1,1,()=>{h=null}),oe()),Ae(e,b=Ge(p,[(!l||v[0]&1024)&&{class:g[10]},(!l||v[0]&2)&&{"data-ptr-distance":g[1]},(!l||v[0]&16&&o!==(o=g[4]||void 0))&&{"data-ptr-mousewheel":o},(!l||v[0]&128&&r!==(r=g[7]||void 0))&&{"data-infinite-distance":r},v[0]&2048&&Re(g[11])]))},i(g){l||(C(f),C(c),C(d,g),C(m),C(h),l=!0)},o(g){M(f),M(c),M(d,g),M(m),M(h),l=!1},d(g){g&&F(e),f&&f.d(),c&&c.d(),d&&d.d(g),m&&m.d(),h&&h.d(),t[22](null)}}}function o1(t,e,n){let s;const a=["tab","tabActive","ptr","ptrDistance","ptrPreloader","ptrBottom","ptrMousewheel","infinite","infiniteTop","infiniteDistance","infinitePreloader","hideBarsOnScroll","hideNavbarOnScroll","hideToolbarOnScroll","messagesContent","loginScreen","class"];let i=De(e,a),{$$slots:o={},$$scope:r}=e;const l=pt(mt,e);let{tab:f=!1}=e,{tabActive:c=!1}=e,{ptr:u=!1}=e,{ptrDistance:d=void 0}=e,{ptrPreloader:m=!0}=e,{ptrBottom:h=!1}=e,{ptrMousewheel:p=!1}=e,{infinite:b=!1}=e,{infiniteTop:g=!1}=e,{infiniteDistance:v=void 0}=e,{infinitePreloader:_=!0}=e,{hideBarsOnScroll:k=!1}=e,{hideNavbarOnScroll:E=!1}=e,{hideToolbarOnScroll:S=!1}=e,{messagesContent:I=!1}=e,{loginScreen:T=!1}=e,{class:A=void 0}=e,y;function w(X){X===y&&l("ptrPullStart")}function D(X){X===y&&l("ptrPullMove")}function O(X){X===y&&l("ptrPullEnd")}function L(X,H){X===y&&l("ptrRefresh",[H])}function j(X){X===y&&l("ptrDone")}function W(X){X===y&&l("infinite")}function Y(){u&&(J.f7.on("ptrPullStart",w),J.f7.on("ptrPullMove",D),J.f7.on("ptrPullEnd",O),J.f7.on("ptrRefresh",L),J.f7.on("ptrDone",j)),b&&J.f7.on("infinite",W)}function B(){u&&(J.f7.off("ptrPullStart",w),J.f7.off("ptrPullMove",D),J.f7.off("ptrPullEnd",O),J.f7.off("ptrRefresh",L),J.f7.off("ptrDone",j)),b&&J.f7.off("infinite",W)}Is(()=>y,l),gt(()=>{bt(()=>{Y()})}),kt(()=>{J.f7&&B()});function q(X){$e[X?"unshift":"push"](()=>{y=X,n(9,y)})}return t.$$set=X=>{n(32,e=Ee(Ee({},e),Be(X))),n(11,i=De(e,a)),"tab"in X&&n(12,f=X.tab),"tabActive"in X&&n(13,c=X.tabActive),"ptr"in X&&n(0,u=X.ptr),"ptrDistance"in X&&n(1,d=X.ptrDistance),"ptrPreloader"in X&&n(2,m=X.ptrPreloader),"ptrBottom"in X&&n(3,h=X.ptrBottom),"ptrMousewheel"in X&&n(4,p=X.ptrMousewheel),"infinite"in X&&n(5,b=X.infinite),"infiniteTop"in X&&n(6,g=X.infiniteTop),"infiniteDistance"in X&&n(7,v=X.infiniteDistance),"infinitePreloader"in X&&n(8,_=X.infinitePreloader),"hideBarsOnScroll"in X&&n(14,k=X.hideBarsOnScroll),"hideNavbarOnScroll"in X&&n(15,E=X.hideNavbarOnScroll),"hideToolbarOnScroll"in X&&n(16,S=X.hideToolbarOnScroll),"messagesContent"in X&&n(17,I=X.messagesContent),"loginScreen"in X&&n(18,T=X.loginScreen),"class"in X&&n(19,A=X.class),"$$scope"in X&&n(20,r=X.$$scope)},t.$$.update=()=>{n(10,s=Je(A,"page-content",{tab:f,"tab-active":c,"ptr-content":u,"ptr-bottom":h,"infinite-scroll-content":b,"infinite-scroll-top":g,"hide-bars-on-scroll":k,"hide-navbar-on-scroll":E,"hide-toolbar-on-scroll":S,"messages-content":I,"login-screen-content":T},tt(e)))},e=Be(e),[u,d,m,h,p,b,g,v,_,y,s,i,f,c,k,E,S,I,T,A,r,o,q]}class f1 extends We{constructor(e){super(),je(this,e,o1,l1,Xe,{tab:12,tabActive:13,ptr:0,ptrDistance:1,ptrPreloader:2,ptrBottom:3,ptrMousewheel:4,infinite:5,infiniteTop:6,infiniteDistance:7,infinitePreloader:8,hideBarsOnScroll:14,hideNavbarOnScroll:15,hideToolbarOnScroll:16,messagesContent:17,loginScreen:18,class:19},null,[-1,-1])}}const c1=t=>({}),_u=t=>({}),u1=t=>({}),ku=t=>({}),d1=t=>({}),Eu=t=>({});function p1(t){let e,n;const s=t[44].static,a=U(s,t,t[46],_u),i=t[44].default,o=U(i,t,t[46],null);return{c(){a&&a.c(),e=V(),o&&o.c()},m(r,l){a&&a.m(r,l),z(r,e,l),o&&o.m(r,l),n=!0},p(r,l){a&&a.p&&(!n||l[1]&32768)&&x(a,s,r,r[46],n?Q(s,r[46],l,c1):$(r[46]),_u),o&&o.p&&(!n||l[1]&32768)&&x(o,i,r,r[46],n?Q(i,r[46],l,null):$(r[46]),null)},i(r){n||(C(a,r),C(o,r),n=!0)},o(r){M(a,r),M(o,r),n=!1},d(r){r&&F(e),a&&a.d(r),o&&o.d(r)}}}function m1(t){let e,n;return e=new f1({props:{ptr:t[2],ptrDistance:t[3],ptrPreloader:t[4],ptrBottom:t[5],ptrMousewheel:t[6],infinite:t[7],infiniteTop:t[8],infiniteDistance:t[9],infinitePreloader:t[10],hideBarsOnScroll:t[11],hideNavbarOnScroll:t[12],hideToolbarOnScroll:t[13],messagesContent:t[14],loginScreen:t[15],onPtrPullStart:t[18],onPtrPullMove:t[19],onPtrPullEnd:t[20],onPtrRefresh:t[21],onPtrDone:t[22],onInfinite:t[23],$$slots:{default:[h1]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a[0]&4&&(i.ptr=s[2]),a[0]&8&&(i.ptrDistance=s[3]),a[0]&16&&(i.ptrPreloader=s[4]),a[0]&32&&(i.ptrBottom=s[5]),a[0]&64&&(i.ptrMousewheel=s[6]),a[0]&128&&(i.infinite=s[7]),a[0]&256&&(i.infiniteTop=s[8]),a[0]&512&&(i.infiniteDistance=s[9]),a[0]&1024&&(i.infinitePreloader=s[10]),a[0]&2048&&(i.hideBarsOnScroll=s[11]),a[0]&4096&&(i.hideNavbarOnScroll=s[12]),a[0]&8192&&(i.hideToolbarOnScroll=s[13]),a[0]&16384&&(i.messagesContent=s[14]),a[0]&32768&&(i.loginScreen=s[15]),a[1]&32768&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function h1(t){let e,n;const s=t[44].static,a=U(s,t,t[46],ku),i=t[44].default,o=U(i,t,t[46],null);return{c(){a&&a.c(),e=V(),o&&o.c()},m(r,l){a&&a.m(r,l),z(r,e,l),o&&o.m(r,l),n=!0},p(r,l){a&&a.p&&(!n||l[1]&32768)&&x(a,s,r,r[46],n?Q(s,r[46],l,u1):$(r[46]),ku),o&&o.p&&(!n||l[1]&32768)&&x(o,i,r,r[46],n?Q(i,r[46],l,null):$(r[46]),null)},i(r){n||(C(a,r),C(o,r),n=!0)},o(r){M(a,r),M(o,r),n=!1},d(r){r&&F(e),a&&a.d(r),o&&o.d(r)}}}function g1(t){let e,n,s,a,i;const o=t[44].fixed,r=U(o,t,t[46],Eu),l=[m1,p1],f=[];function c(m,h){return m[1]?0:1}s=c(t),a=f[s]=l[s](t);let u=[{class:t[17]},{"data-name":t[0]},Re(t[24])],d={};for(let m=0;m{f[p]=null}),oe(),a=f[s],a?a.p(m,h):(a=f[s]=l[s](m),a.c()),C(a,1),a.m(e,null)),Ae(e,d=Ge(u,[(!i||h[0]&131072)&&{class:m[17]},(!i||h[0]&1)&&{"data-name":m[0]},h[0]&16777216&&Re(m[24])]))},i(m){i||(C(r,m),C(a),i=!0)},o(m){M(r,m),M(a),i=!1},d(m){m&&F(e),r&&r.d(m),f[s].d(),t[45](null)}}}function b1(t,e,n){let s,a,i;const o=["name","withSubnavbar","subnavbar","withNavbarLarge","navbarLarge","noNavbar","noToolbar","tabs","pageContent","noSwipeback","ptr","ptrDistance","ptrPreloader","ptrBottom","ptrMousewheel","infinite","infiniteTop","infiniteDistance","infinitePreloader","hideBarsOnScroll","hideNavbarOnScroll","hideToolbarOnScroll","messagesContent","loginScreen","class"];let r=De(e,o),{$$slots:l={},$$scope:f}=e;const c=pt(mt,e);let{name:u=void 0}=e,{withSubnavbar:d=void 0}=e,{subnavbar:m=void 0}=e,{withNavbarLarge:h=void 0}=e,{navbarLarge:p=void 0}=e,{noNavbar:b=void 0}=e,{noToolbar:g=void 0}=e,{tabs:v=void 0}=e,{pageContent:_=!0}=e,{noSwipeback:k=void 0}=e,{ptr:E=void 0}=e,{ptrDistance:S=void 0}=e,{ptrPreloader:I=!0}=e,{ptrBottom:T=void 0}=e,{ptrMousewheel:A=void 0}=e,{infinite:y=void 0}=e,{infiniteTop:w=void 0}=e,{infiniteDistance:D=void 0}=e,{infinitePreloader:O=!0}=e,{hideBarsOnScroll:L=void 0}=e,{hideNavbarOnScroll:j=void 0}=e,{hideToolbarOnScroll:W=void 0}=e,{messagesContent:Y=void 0}=e,{loginScreen:B=void 0}=e,{class:q=void 0}=e,X,H=!1,G=!1,ce=!1,ye=!1,ne="",me=null,K=!1,pe=!1;function ke(){c("ptrPullStart")}function he(){c("ptrPullMove")}function re(){c("ptrPullEnd")}function Ce(ue){c("ptrRefresh",[ue])}function Pe(){c("ptrDone")}function Ve(){c("infinite")}function Me(ue){X===ue.el&&c("pageMounted",[ue])}function He(ue){X===ue.el&&(typeof d>"u"&&typeof m>"u"&&(ue.$navbarEl&&ue.$navbarEl.length&&ue.$navbarEl.find(".subnavbar").length||ue.$el.children(".navbar").find(".subnavbar").length)&&n(34,H=!0),typeof h>"u"&&typeof p>"u"&&(ue.$navbarEl&&ue.$navbarEl.hasClass("navbar-large")||ue.$el.children(".navbar-large").length)&&n(35,G=!0),c("pageInit",[ue]))}function ze(ue){X===ue.el&&c("pageReinit",[ue])}function fe(ue){X===ue.el&&(ue.swipeBack||(ue.from==="next"&&n(38,ne="page-next"),ue.from==="previous"&&n(38,ne="page-previous")),c("pageBeforeIn",[ue]))}function ee(ue){X===ue.el&&c("pageBeforeOut",[ue])}function Fe(ue){X===ue.el&&(ue.to==="next"&&n(38,ne="page-next"),ue.to==="previous"&&n(38,ne="page-previous"),c("pageAfterOut",[ue]))}function Ue(ue){X===ue.el&&(n(38,ne="page-current"),c("pageAfterIn",[ue]))}function qe(ue){X===ue.el&&(ue.$navbarEl&&ue.$navbarEl[0]&&ue.$navbarEl.parent()[0]&&ue.$navbarEl.parent()[0]!==X&&ue.$el.prepend(ue.$navbarEl),c("pageBeforeRemove",[ue]))}function Oe(ue){X===ue.el&&c("pageBeforeUnmount",[ue])}function et(ue,vt){X===ue&&n(38,ne=`page-${vt}`)}function Ie(ue,vt){X===ue&&(n(39,me=vt.role),n(40,K=vt.detailRoot))}function xe(ue){X===ue&&n(41,pe=!0)}function Te(ue){X===ue&&n(41,pe=!1)}function Tt(ue){X===ue&&n(36,ce=!0)}function cn(ue){X===ue&&n(36,ce=!1)}function Kt(ue,vt){X===vt&&n(37,ye=!0)}function un(ue,vt){X===vt&&n(37,ye=!1)}function vn(ue){X===ue&&c("pageTabShow")}function nt(ue){X===ue&&c("pageTabHide")}function de(){J.f7.on("pageMounted",Me),J.f7.on("pageInit",He),J.f7.on("pageReinit",ze),J.f7.on("pageBeforeIn",fe),J.f7.on("pageBeforeOut",ee),J.f7.on("pageAfterOut",Fe),J.f7.on("pageAfterIn",Ue),J.f7.on("pageBeforeRemove",qe),J.f7.on("pageBeforeUnmount",Oe),J.f7.on("pagePosition",et),J.f7.on("pageRole",Ie),J.f7.on("pageMasterStack",xe),J.f7.on("pageMasterUnstack",Te),J.f7.on("pageNavbarLargeCollapsed",Tt),J.f7.on("pageNavbarLargeExpanded",cn),J.f7.on("cardOpened",Kt),J.f7.on("cardClose",un),J.f7.on("pageTabShow",vn),J.f7.on("pageTabHide",nt)}function st(){J.f7.off("pageMounted",Me),J.f7.off("pageInit",He),J.f7.off("pageReinit",ze),J.f7.off("pageBeforeIn",fe),J.f7.off("pageBeforeOut",ee),J.f7.off("pageAfterOut",Fe),J.f7.off("pageAfterIn",Ue),J.f7.off("pageBeforeRemove",qe),J.f7.off("pageBeforeUnmount",Oe),J.f7.off("pagePosition",et),J.f7.off("pageRole",Ie),J.f7.off("pageMasterStack",xe),J.f7.off("pageMasterUnstack",Te),J.f7.off("pageNavbarLargeCollapsed",Tt),J.f7.off("pageNavbarLargeExpanded",cn),J.f7.off("cardOpened",Kt),J.f7.off("cardClose",un),J.f7.off("pageTabShow",vn),J.f7.off("pageTabHide",nt)}gt(()=>{bt(()=>{if(X){const ue=J.f7.$,vt=ue(X).children(".page-content").children('[data-f7-slot="fixed"]');if(vt.length)for(let At=vt.length-1;At>=0;At-=1)ue(X).prepend(vt[At])}de()})}),zn(()=>{if(X&&J.f7){const ue=J.f7.$,vt=ue(X).children(".page-content").children('[data-f7-slot="fixed"]');if(vt.length)for(let At=vt.length-1;At>=0;At-=1)ue(X).prepend(vt[At])}}),kt(()=>{J.f7&&st()});function ut(ue){$e[ue?"unshift":"push"](()=>{X=ue,n(16,X)})}return t.$$set=ue=>{n(69,e=Ee(Ee({},e),Be(ue))),n(24,r=De(e,o)),"name"in ue&&n(0,u=ue.name),"withSubnavbar"in ue&&n(25,d=ue.withSubnavbar),"subnavbar"in ue&&n(26,m=ue.subnavbar),"withNavbarLarge"in ue&&n(27,h=ue.withNavbarLarge),"navbarLarge"in ue&&n(28,p=ue.navbarLarge),"noNavbar"in ue&&n(29,b=ue.noNavbar),"noToolbar"in ue&&n(30,g=ue.noToolbar),"tabs"in ue&&n(31,v=ue.tabs),"pageContent"in ue&&n(1,_=ue.pageContent),"noSwipeback"in ue&&n(32,k=ue.noSwipeback),"ptr"in ue&&n(2,E=ue.ptr),"ptrDistance"in ue&&n(3,S=ue.ptrDistance),"ptrPreloader"in ue&&n(4,I=ue.ptrPreloader),"ptrBottom"in ue&&n(5,T=ue.ptrBottom),"ptrMousewheel"in ue&&n(6,A=ue.ptrMousewheel),"infinite"in ue&&n(7,y=ue.infinite),"infiniteTop"in ue&&n(8,w=ue.infiniteTop),"infiniteDistance"in ue&&n(9,D=ue.infiniteDistance),"infinitePreloader"in ue&&n(10,O=ue.infinitePreloader),"hideBarsOnScroll"in ue&&n(11,L=ue.hideBarsOnScroll),"hideNavbarOnScroll"in ue&&n(12,j=ue.hideNavbarOnScroll),"hideToolbarOnScroll"in ue&&n(13,W=ue.hideToolbarOnScroll),"messagesContent"in ue&&n(14,Y=ue.messagesContent),"loginScreen"in ue&&n(15,B=ue.loginScreen),"class"in ue&&n(33,q=ue.class),"$$scope"in ue&&n(46,f=ue.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&100663296|t.$$.dirty[1]&8&&n(43,s=typeof m>"u"&&typeof d>"u"?H:!1),t.$$.dirty[0]&402653184|t.$$.dirty[1]&16&&n(42,a=typeof p>"u"&&typeof h>"u"?G:!1),n(17,i=Je(q,"page",ne,{tabs:v,"page-with-subnavbar":m||d||s,"page-with-navbar-large":p||h||a,"no-navbar":b,"no-toolbar":g,"no-swipeback":k,"page-master":me==="master","page-master-detail":me==="detail","page-master-detail-root":K===!0,"page-master-stacked":pe===!0,"page-with-navbar-large-collapsed":ce===!0,"page-with-card-opened":ye===!0,"login-screen-page":B},tt(e)))},e=Be(e),[u,_,E,S,I,T,A,y,w,D,O,L,j,W,Y,B,X,i,ke,he,re,Ce,Pe,Ve,r,d,m,h,p,b,g,v,k,q,H,G,ce,ye,ne,me,K,pe,a,s,l,ut,f]}class Ds extends We{constructor(e){super(),je(this,e,b1,g1,Xe,{name:0,withSubnavbar:25,subnavbar:26,withNavbarLarge:27,navbarLarge:28,noNavbar:29,noToolbar:30,tabs:31,pageContent:1,noSwipeback:32,ptr:2,ptrDistance:3,ptrPreloader:4,ptrBottom:5,ptrMousewheel:6,infinite:7,infiniteTop:8,infiniteDistance:9,infinitePreloader:10,hideBarsOnScroll:11,hideNavbarOnScroll:12,hideToolbarOnScroll:13,messagesContent:14,loginScreen:15,class:33},null,[-1,-1,-1])}}const v1=t=>({}),Cu=t=>({}),_1=t=>({}),yu=t=>({});function k1(t){let e;const n=t[20].default,s=U(n,t,t[19],null);return{c(){s&&s.c()},m(a,i){s&&s.m(a,i),e=!0},p(a,i){s&&s.p&&(!e||i&524288)&&x(s,n,a,a[19],e?Q(n,a[19],i,null):$(a[19]),null)},i(a){e||(C(s,a),e=!0)},o(a){M(s,a),e=!1},d(a){s&&s.d(a)}}}function E1(t){let e,n;const s=t[20].default,a=U(s,t,t[19],null);return{c(){e=Z("div"),a&&a.c(),se(e,"class","toolbar-inner")},m(i,o){z(i,e,o),a&&a.m(e,null),n=!0},p(i,o){a&&a.p&&(!n||o&524288)&&x(a,s,i,i[19],n?Q(s,i[19],o,null):$(i[19]),null)},i(i){n||(C(a,i),n=!0)},o(i){M(a,i),n=!1},d(i){i&&F(e),a&&a.d(i)}}}function C1(t){let e,n,s,a,i,o;const r=t[20]["before-inner"],l=U(r,t,t[19],yu),f=[E1,k1],c=[];function u(b,g){return b[0]?0:1}s=u(t),a=c[s]=f[s](t);const d=t[20]["after-inner"],m=U(d,t,t[19],Cu);let h=[{class:t[3]},{"data-f7-slot":t[1]},Re(t[4])],p={};for(let b=0;b{c[v]=null}),oe(),a=c[s],a?a.p(b,g):(a=c[s]=f[s](b),a.c()),C(a,1),a.m(e,i)),m&&m.p&&(!o||g&524288)&&x(m,d,b,b[19],o?Q(d,b[19],g,v1):$(b[19]),Cu),Ae(e,p=Ge(h,[(!o||g&8)&&{class:b[3]},(!o||g&2)&&{"data-f7-slot":b[1]},g&16&&Re(b[4])]))},i(b){o||(C(l,b),C(a),C(m,b),o=!0)},o(b){M(l,b),M(a),M(m,b),o=!1},d(b){b&&F(e),l&&l.d(b),c[s].d(),m&&m.d(b),t[21](null)}}}function y1(t,e,n){let s;const a=["class","tabbar","icons","scrollable","hidden","outline","position","topMd","topIos","top","bottomMd","bottomIos","bottom","inner","f7Slot"];let i=De(e,a),{$$slots:o={},$$scope:r}=e;const l=pt(mt,e);let{class:f=void 0}=e,{tabbar:c=!1}=e,{icons:u=!1}=e,{scrollable:d=!1}=e,{hidden:m=!1}=e,{outline:h=!0}=e,{position:p=void 0}=e,{topMd:b=void 0}=e,{topIos:g=void 0}=e,{top:v=void 0}=e,{bottomMd:_=void 0}=e,{bottomIos:k=void 0}=e,{bottom:E=void 0}=e,{inner:S=!0}=e,{f7Slot:I="fixed"}=e,T,A=os(O=>{n(18,A=O)});Ud("TabbarContext",()=>({tabbarHasIcons:u}));function y(O){T===O&&l("toolbarShow")}function w(O){T===O&&l("toolbarHide")}gt(()=>{bt(()=>{c&&J.f7.toolbar.setHighlight(T),J.f7.on("toolbarShow",y),J.f7.on("toolbarHide",w)})}),zn(()=>{c&&J.f7&&T&&J.f7.toolbar.setHighlight(T)}),kt(()=>{J.f7&&(J.f7.off("toolbarShow",y),J.f7.off("toolbarHide",w))});function D(O){$e[O?"unshift":"push"](()=>{T=O,n(2,T)})}return t.$$set=O=>{n(25,e=Ee(Ee({},e),Be(O))),n(4,i=De(e,a)),"class"in O&&n(5,f=O.class),"tabbar"in O&&n(6,c=O.tabbar),"icons"in O&&n(7,u=O.icons),"scrollable"in O&&n(8,d=O.scrollable),"hidden"in O&&n(9,m=O.hidden),"outline"in O&&n(10,h=O.outline),"position"in O&&n(11,p=O.position),"topMd"in O&&n(12,b=O.topMd),"topIos"in O&&n(13,g=O.topIos),"top"in O&&n(14,v=O.top),"bottomMd"in O&&n(15,_=O.bottomMd),"bottomIos"in O&&n(16,k=O.bottomIos),"bottom"in O&&n(17,E=O.bottom),"inner"in O&&n(0,S=O.inner),"f7Slot"in O&&n(1,I=O.f7Slot),"$$scope"in O&&n(19,r=O.$$scope)},t.$$.update=()=>{n(3,s=Je(f,"toolbar",{tabbar:c,"toolbar-bottom":A&&A.md&&_||A&&A.ios&&k||E||p==="bottom","toolbar-top":A&&A.md&&b||A&&A.ios&&g||v||p==="top","tabbar-icons":u,"tabbar-scrollable":d,"toolbar-hidden":m,"no-outline":!h},tt(e)))},e=Be(e),[S,I,T,s,i,f,c,u,d,m,h,p,b,g,v,_,k,E,A,r,o,D]}let Qd=class extends We{constructor(e){super(),je(this,e,y1,C1,Xe,{class:5,tabbar:6,icons:7,scrollable:8,hidden:9,outline:10,position:11,topMd:12,topIos:13,top:14,bottomMd:15,bottomIos:16,bottom:17,inner:0,f7Slot:1})}};function w1(t){let e,n,s;const a=t[2].default,i=U(a,t,t[1],null);let o=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{fill:"currentColor"},{viewBox:"0 0 16 16"},t[0]],r={};for(let l=0;l{e=Ee(Ee({},e),Be(r)),n(0,a=De(e,s)),"$$scope"in r&&n(1,o=r.$$scope)},[a,o,i]}class T1 extends We{constructor(e){super(),je(this,e,S1,w1,Xe,{})}}function M1(t){let e,n,s,a;const i=t[2].default,o=U(i,t,t[1],null);let r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{fill:"currentColor"},{viewBox:"0 0 16 16"},t[0]],l={};for(let f=0;f{e=Ee(Ee({},e),Be(r)),n(0,a=De(e,s)),"$$scope"in r&&n(1,o=r.$$scope)},[a,o,i]}class I1 extends We{constructor(e){super(),je(this,e,P1,M1,Xe,{})}}function A1(t){let e,n;return{c(){e=Z("span"),n=Z("span"),$t(n,"transform",t[2]),se(e,"class",t[1]),se(e,"data-progress",t[0])},m(s,a){z(s,e,a),N(e,n)},p(s,[a]){a&4&&$t(n,"transform",s[2]),a&2&&se(e,"class",s[1]),a&1&&se(e,"data-progress",s[0])},i:dt,o:dt,d(s){s&&F(e)}}}function O1(t){const{color:e,textColor:n,bgColor:s,borderColor:a,rippleColor:i,dark:o}=t;return{dark:o,[`color-${e}`]:e,[`text-color-${n}`]:n,[`bg-color-${s}`]:s,[`border-color-${a}`]:a,[`ripple-color-${i}`]:i}}function B1(t,e,n){let{class:s=void 0}=e,{progress:a=0}=e,{infinite:i=!1}=e;function o(...f){const c=[];f.forEach(d=>{typeof d=="object"&&d.constructor===Object?Object.keys(d).forEach(m=>{d[m]&&c.push(m)}):d&&c.push(d)});const u=[];return c.forEach(d=>{u.indexOf(d)<0&&u.push(d)}),u.join(" ")}let r,l="";return t.$$set=f=>{n(6,e=Ee(Ee({},e),Be(f))),"class"in f&&n(3,s=f.class),"progress"in f&&n(0,a=f.progress),"infinite"in f&&n(4,i=f.infinite)},t.$$.update=()=>{n(1,r=o(s,"progressbar",{"progressbar-infinite":i},O1(e))),t.$$.dirty&1&&n(2,l=a?`translate3d(${-100+a}%, 0, 0)`:"")},e=Be(e),[a,r,l,s,i]}let Kd=class extends We{constructor(e){super(),je(this,e,B1,A1,Xe,{class:3,progress:0,infinite:4})}};function L1(t){let e,n,s,a;return{c(){e=Z("div"),n=Z("div"),s=Z("span"),a=ge(t[0]),se(n,"class","indicator svelte-600ugb"),wt(n,"top",!0),wt(n,"bottom",!1),wt(n,"left",!t[1].pointerNearLeft||!t[1].pointerNearTop),wt(n,"right",t[1].pointerNearLeft&&t[1].pointerNearTop),$t(e,"position","relative"),$t(e,"z-index","10")},m(i,o){z(i,e,o),N(e,n),N(n,s),N(s,a)},p(i,[o]){o&1&&we(a,i[0]),o&2&&wt(n,"left",!i[1].pointerNearLeft||!i[1].pointerNearTop),o&2&&wt(n,"right",i[1].pointerNearLeft&&i[1].pointerNearTop)},i:dt,o:dt,d(i){i&&F(e)}}}function D1(t,e,n){let s;Pt(t,Ct,i=>n(1,s=i));let{value:a=null}=e;return t.$$set=i=>{"value"in i&&n(0,a=i.value)},[a,s]}class R1 extends We{constructor(e){super(),je(this,e,D1,L1,Xe,{value:0})}}function wu(t){let e,n,s,a=Ka(t[3].runningNodeID)+"",i,o,r,l;return{c(){e=Z("div"),n=Z("span"),s=ge("Node: "),i=ge(a),o=ge(" ("),r=ge(t[6]),l=ge(")"),se(e,"class","node-name svelte-1bpr0w9")},m(f,c){z(f,e,c),N(e,n),N(n,s),N(n,i),N(n,o),N(n,r),N(n,l)},p(f,c){c&8&&a!==(a=Ka(f[3].runningNodeID)+"")&&we(i,a),c&64&&we(r,f[6])},d(f){f&&F(e)}}}function Su(t){let e,n,s,a;const i=[z1,H1],o=[];function r(l,f){return l[0]?0:l[5]?1:-1}return~(e=r(t))&&(n=o[e]=i[e](t)),{c(){n&&n.c(),s=Ze()},m(l,f){~e&&o[e].m(l,f),z(l,s,f),a=!0},p(l,f){let c=e;e=r(l),e===c?~e&&o[e].p(l,f):(n&&(le(),M(o[c],1,1,()=>{o[c]=null}),oe()),~e?(n=o[e],n?n.p(l,f):(n=o[e]=i[e](l),n.c()),C(n,1),n.m(s.parentNode,s)):n=null)},i(l){a||(C(n),a=!0)},o(l){M(n),a=!1},d(l){l&&F(s),~e&&o[e].d(l)}}}function H1(t){let e,n;return e=new Kd({props:{color:"blue",infinite:!0}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p:dt,i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function z1(t){let e,n;return e=new Kd({props:{color:"blue",progress:t[1]}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&2&&(i.progress=s[1]),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function F1(t){let e,n;return e=new Np({props:{width:Rn,height:Rn}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p:dt,i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function N1(t){let e,n;return e=new Vp({props:{width:Rn,height:Rn}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p:dt,i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function V1(t){let e,n;return e=new Yp({props:{width:Rn,height:Rn}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p:dt,i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Y1(t){let e,n,s,a,i,o;return e=new xt({props:{transition:"f7-dive",href:"/queue/",tabLinkActive:t[2].selectedTab===0,$$slots:{default:[F1]},$$scope:{ctx:t}}}),s=new xt({props:{transition:"f7-dive",href:t[7],tabLinkActive:t[2].selectedTab===1,$$slots:{default:[N1]},$$scope:{ctx:t}}}),i=new xt({props:{transition:"f7-dive",href:"/gallery/",tabLinkActive:t[2].selectedTab===2,$$slots:{default:[V1]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment),n=V(),be(s.$$.fragment),a=V(),be(i.$$.fragment)},m(r,l){ve(e,r,l),z(r,n,l),ve(s,r,l),z(r,a,l),ve(i,r,l),o=!0},p(r,l){const f={};l&4&&(f.tabLinkActive=r[2].selectedTab===0),l&1048576&&(f.$$scope={dirty:l,ctx:r}),e.$set(f);const c={};l&128&&(c.href=r[7]),l&4&&(c.tabLinkActive=r[2].selectedTab===1),l&1048576&&(c.$$scope={dirty:l,ctx:r}),s.$set(c);const u={};l&4&&(u.tabLinkActive=r[2].selectedTab===2),l&1048576&&(u.$$scope={dirty:l,ctx:r}),i.$set(u)},i(r){o||(C(e.$$.fragment,r),C(s.$$.fragment,r),C(i.$$.fragment,r),o=!0)},o(r){M(e.$$.fragment,r),M(s.$$.fragment,r),M(i.$$.fragment,r),o=!1},d(r){r&&(F(n),F(a)),_e(e,r),_e(s,r),_e(i,r)}}}function Tu(t){let e,n;return e=new R1({props:{value:t[2].indicatorValue}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&4&&(i.value=s[2].indicatorValue),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function q1(t){let e,n,s,a,i,o,r,l,f,c=t[4]&&wu(t),u=t[4]&&Su(t);o=new Qd({props:{bottom:!0,tabbar:!0,color:"blue",class:t[8]>1?"hasGenToolbar":"",$$slots:{default:[Y1]},$$scope:{ctx:t}}});let d=t[2].showIndicator&&Tu(t);return{c(){e=Z("div"),n=Z("div"),c&&c.c(),s=V(),a=Z("div"),u&&u.c(),i=V(),be(o.$$.fragment),r=V(),d&&d.c(),l=Ze(),se(n,"class","bars svelte-1bpr0w9"),se(a,"class","wrapper"),se(e,"class","bottom svelte-1bpr0w9"),$t(e,"--toolbarCount",t[8])},m(m,h){z(m,e,h),N(e,n),c&&c.m(n,null),N(e,s),N(e,a),u&&u.m(a,null),z(m,i,h),ve(o,m,h),z(m,r,h),d&&d.m(m,h),z(m,l,h),f=!0},p(m,[h]){m[4]?c?c.p(m,h):(c=wu(m),c.c(),c.m(n,null)):c&&(c.d(1),c=null),m[4]?u?(u.p(m,h),h&16&&C(u,1)):(u=Su(m),u.c(),C(u,1),u.m(a,null)):u&&(le(),M(u,1,1,()=>{u=null}),oe()),h&256&&$t(e,"--toolbarCount",m[8]);const p={};h&256&&(p.class=m[8]>1?"hasGenToolbar":""),h&1048708&&(p.$$scope={dirty:h,ctx:m}),o.$set(p),m[2].showIndicator?d?(d.p(m,h),h&4&&C(d,1)):(d=Tu(m),d.c(),C(d,1),d.m(l.parentNode,l)):d&&(le(),M(d,1,1,()=>{d=null}),oe())},i(m){f||(C(u),C(o.$$.fragment,m),C(d),f=!0)},o(m){M(u),M(o.$$.fragment,m),M(d),f=!1},d(m){m&&(F(e),F(i),F(r),F(l)),c&&c.d(),u&&u.d(),_e(o,m),d&&d.d(m)}}}const Rn="1.5rem";function W1(t,e,n){let s,a,i;Pt(t,Ct,p=>n(2,s=p)),Pt(t,zd,p=>n(3,a=p)),Pt(t,ts,p=>n(11,i=p));let{subworkflowID:o=-1}=e,{app:r=void 0}=e,l,f=!1,c,u=0,d="",m="/workflows/",h=0;return t.$$set=p=>{"subworkflowID"in p&&n(9,o=p.subworkflowID),"app"in p&&n(10,r=p.app)},t.$$.update=()=>{t.$$.dirty&2048&&i.activeWorkflow,t.$$.dirty&8&&n(4,l=!!(a.runningNodeID||a.progress)),t.$$.dirty&8&&n(5,f=typeof a.queueRemaining=="number"&&a.queueRemaining>0),t.$$.dirty&8&&n(0,c=a.progress),t.$$.dirty&3&&(c?(n(1,u=c.value/c.max*100),n(6,d=u.toFixed(1)+"%")):(n(1,u=0),n(6,d="??.?%"))),t.$$.dirty&4&&(s.selectedWorkflowIndex&&!s.showingWorkflow?n(7,m=`/workflows/${s.selectedWorkflowIndex}/`):n(7,m="/workflows/")),t.$$.dirty&4&&n(8,h=s.showingWorkflow?2:1)},[c,u,s,a,l,f,d,m,h,o,r,i]}class j1 extends We{constructor(e){super(),je(this,e,W1,q1,Xe,{subworkflowID:9,app:10})}}function Mu(t){let e,n,s;return n=new xt({props:{$$slots:{default:[X1]},$$scope:{ctx:t}}}),n.$on("click",t[1]),{c(){e=Z("div"),be(n.$$.fragment),$t(e,"width","100%")},m(a,i){z(a,e,i),ve(n,e,null),s=!0},p(a,i){const o={};i&33&&(o.$$scope={dirty:i,ctx:a}),n.$set(o)},i(a){s||(C(n.$$.fragment,a),s=!0)},o(a){M(n.$$.fragment,a),s=!1},d(a){a&&F(e),_e(n)}}}function X1(t){let e=t[0].attrs.queuePromptButtonName+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a&1&&e!==(e=s[0].attrs.queuePromptButtonName+"")&&we(n,e)},d(s){s&&F(n)}}}function G1(t){let e,n,s=t[0]!=null&&t[0].attrs.queuePromptButtonName!=""&&Mu(t);return{c(){s&&s.c(),e=Ze()},m(a,i){s&&s.m(a,i),z(a,e,i),n=!0},p(a,i){a[0]!=null&&a[0].attrs.queuePromptButtonName!=""?s?(s.p(a,i),i&1&&C(s,1)):(s=Mu(a),s.c(),C(s,1),s.m(e.parentNode,e)):s&&(le(),M(s,1,1,()=>{s=null}),oe())},i(a){n||(C(s),n=!0)},o(a){M(s),n=!1},d(a){a&&F(e),s&&s.d(a)}}}function U1(t){let e,n;return e=new Qd({props:{bottom:!0,color:"red",style:"bottom: calc(var(--f7-toolbar-height))",$$slots:{default:[G1]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,[a]){const i={};a&33&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function x1(t,e,n){let s;Pt(t,ts,l=>n(4,s=l));let{subworkflowID:a=-1}=e,{app:i=void 0}=e,o=null;function r(){navigator.vibrate(20),i.runDefaultQueueAction()}return t.$$set=l=>{"subworkflowID"in l&&n(2,a=l.subworkflowID),"app"in l&&n(3,i=l.app)},t.$$.update=()=>{t.$$.dirty&16&&n(0,o=s.activeWorkflow)},[o,r,a,i,s]}class $1 extends We{constructor(e){super(),je(this,e,x1,U1,Xe,{subworkflowID:2,app:3})}}function Pu(t,e,n){const s=t.slice();return s[11]=e[n],s[13]=n,s}function Q1(t){let e;return{c(){e=ge("(No workflows opened.)")},m(n,s){z(n,e,s)},p:dt,i:dt,o:dt,d(n){n&&F(e)}}}function K1(t){let e,n;return e=new $d({props:{strong:!0,inset:!0,dividersIos:!0,class:"components-list searchbar-found",$$slots:{default:[J1]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&16386&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function Z1(t){let e,n,s,a,i,o;n=new I1({props:{width:"1.5em",height:"1.5em"}});function r(...l){return t[8](t[11],...l)}return{c(){e=Z("div"),be(n.$$.fragment),s=V()},m(l,f){z(l,e,f),ve(n,e,null),z(l,s,f),a=!0,i||(o=ht(e,"pointerdown",r),i=!0)},p(l,f){t=l},i(l){a||(C(n.$$.fragment,l),a=!0)},o(l){M(n.$$.fragment,l),a=!1},d(l){l&&(F(e),F(s)),_e(n),i=!1,o()}}}function Iu(t){let e,n;return e=new xd({props:{link:"/workflows/"+(t[13]+1)+"/",transition:"f7-cover",title:t[11].attrs.title||`Workflow: ${t[11].id}`,$$slots:{media:[Z1]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&2&&(i.title=s[11].attrs.title||`Workflow: ${s[11].id}`),a&16386&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function J1(t){let e,n,s=Lt(t[1].openedWorkflows),a=[];for(let o=0;oM(a[o],1,1,()=>{a[o]=null});return{c(){for(let o=0;o{m[g]=null}),oe(),a=m[s],a?a.p(p,b):(a=m[s]=d[s](p),a.c()),C(a,1),a.m(i.parentNode,i));const v={};b&16384&&(v.$$scope={dirty:b,ctx:p}),o.$set(v)},i(p){f||(C(e.$$.fragment,p),C(a),C(o.$$.fragment,p),f=!0)},o(p){M(e.$$.fragment,p),M(a),M(o.$$.fragment,p),f=!1},d(p){p&&(F(n),F(i),F(r),F(l)),_e(e,p),m[s].d(p),_e(o,p),t[9](null),c=!1,u()}}}function a_(t){let e,n;return e=new Ds({props:{name:"home",$$slots:{default:[s_]},$$scope:{ctx:t}}}),e.$on("pageBeforeIn",t[6]),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,[a]){const i={};a&16387&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function i_(t,e,n){let s,a;Pt(t,Ct,h=>n(10,s=h)),Pt(t,ts,h=>n(1,a=h));let{app:i=null}=e,o;async function r(){yt.dialog.confirm("Would you like to load the default workflow in a new tab?",async()=>{await i.initDefaultWorkflow(),i.saveStateToLocalStorage(!1)})}function l(h,p){p.preventDefault(),p.stopImmediatePropagation(),yt.dialog.confirm("Are you sure you want to delete this workflow?",h.attrs.title||`Workflow: ${h.id}`,()=>{i.closeWorkflow(h.id),i.saveStateToLocalStorage(!1)})}function f(){o&&(navigator.vibrate(20),n(0,o.value=null,o),o.click())}function c(){i.handleFile(o.files[0])}function u(){Gt(Ct,s.selectedWorkflowIndex=null,s),Gt(Ct,s.selectedTab=1,s)}const d=(h,p)=>l(h,p);function m(h){$e[h?"unshift":"push"](()=>{o=h,n(0,o)})}return t.$$set=h=>{"app"in h&&n(7,i=h.app)},[o,a,r,l,f,c,u,i,d,m]}class Au extends We{constructor(e){super(),je(this,e,i_,a_,Xe,{app:7})}}function Ou(t,e,n){const s=t.slice();s[12]=e[n],s[15]=n;const a=s[4](s[12]);return s[13]=a,s}function r_(t){let e;return{c(){e=ge("Queue")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function l_(t){let e;return{c(){e=ge("🛑️")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function o_(t){let e;return{c(){e=ge("🗑️")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function f_(t){let e,n,s,a;return e=new xt({props:{$$slots:{default:[l_]},$$scope:{ctx:t}}}),e.$on("click",t[2]),s=new xt({props:{$$slots:{default:[o_]},$$scope:{ctx:t}}}),s.$on("click",t[3]),{c(){be(e.$$.fragment),n=V(),be(s.$$.fragment)},m(i,o){ve(e,i,o),z(i,n,o),ve(s,i,o),a=!0},p(i,o){const r={};o&65536&&(r.$$scope={dirty:o,ctx:i}),e.$set(r);const l={};o&65536&&(l.$$scope={dirty:o,ctx:i}),s.$set(l)},i(i){a||(C(e.$$.fragment,i),C(s.$$.fragment,i),a=!0)},o(i){M(e.$$.fragment,i),M(s.$$.fragment,i),a=!1},d(i){i&&F(n),_e(e,i),_e(s,i)}}}function c_(t){let e,n,s,a,i,o;return e=new As({}),s=new Bs({props:{$$slots:{default:[r_]},$$scope:{ctx:t}}}),i=new Os({props:{$$slots:{default:[f_]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment),n=V(),be(s.$$.fragment),a=V(),be(i.$$.fragment)},m(r,l){ve(e,r,l),z(r,n,l),ve(s,r,l),z(r,a,l),ve(i,r,l),o=!0},p(r,l){const f={};l&65536&&(f.$$scope={dirty:l,ctx:r}),s.$set(f);const c={};l&65536&&(c.$$scope={dirty:l,ctx:r}),i.$set(c)},i(r){o||(C(e.$$.fragment,r),C(s.$$.fragment,r),C(i.$$.fragment,r),o=!0)},o(r){M(e.$$.fragment,r),M(s.$$.fragment,r),M(i.$$.fragment,r),o=!1},d(r){r&&(F(n),F(a)),_e(e,r),_e(s,r),_e(i,r)}}}function u_(t){let e=t[12].message+"",n;return{c(){n=ge(e)},m(s,a){z(s,n,a)},p(s,a){a&1&&e!==(e=s[12].message+"")&&we(n,e)},d(s){s&&F(n)}}}function d_(t){let e,n=t[12].submessage+"",s,a,i,o=t[13]+"",r;return{c(){e=Z("p"),s=ge(n),a=V(),i=Z("p"),r=ge(o),se(e,"class","list-entry-message svelte-qf636e")},m(l,f){z(l,e,f),N(e,s),z(l,a,f),z(l,i,f),N(i,r)},p(l,f){f&1&&n!==(n=l[12].submessage+"")&&we(s,n),f&1&&o!==(o=l[13]+"")&&we(r,o)},d(l){l&&(F(e),F(a),F(i))}}}function p_(t){let e;return{c(){e=ge("Cancel")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function Bu(t){let e,n=t[12].date+"",s;return{c(){e=Z("p"),s=ge(n)},m(a,i){z(a,e,i),N(e,s)},p(a,i){i&1&&n!==(n=a[12].date+"")&&we(s,n)},d(a){a&&F(e)}}}function m_(t){let e,n,s,a;function i(){return t[9](t[12])}e=new xt({props:{$$slots:{default:[p_]},$$scope:{ctx:t}}}),e.$on("click",i);let o=t[12].date&&Bu(t);return{c(){be(e.$$.fragment),n=V(),o&&o.c(),s=Ze()},m(r,l){ve(e,r,l),z(r,n,l),o&&o.m(r,l),z(r,s,l),a=!0},p(r,l){t=r;const f={};l&65536&&(f.$$scope={dirty:l,ctx:t}),e.$set(f),t[12].date?o?o.p(t,l):(o=Bu(t),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i(r){a||(C(e.$$.fragment,r),a=!0)},o(r){M(e.$$.fragment,r),a=!1},d(r){r&&(F(n),F(s)),_e(e,r),o&&o.d(r)}}}function h_(t){let e,n,s,a,i,o;return e=new jd({props:{valign:"bottom",style:"background-image: url("+t[6](t[12])+")",$$slots:{default:[u_]},$$scope:{ctx:t}}}),s=new qd({props:{$$slots:{default:[d_]},$$scope:{ctx:t}}}),i=new Wd({props:{$$slots:{default:[m_]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment),n=V(),be(s.$$.fragment),a=V(),be(i.$$.fragment)},m(r,l){ve(e,r,l),z(r,n,l),ve(s,r,l),z(r,a,l),ve(i,r,l),o=!0},p(r,l){const f={};l&1&&(f.style="background-image: url("+r[6](r[12])+")"),l&65537&&(f.$$scope={dirty:l,ctx:r}),e.$set(f);const c={};l&65537&&(c.$$scope={dirty:l,ctx:r}),s.$set(c);const u={};l&65537&&(u.$$scope={dirty:l,ctx:r}),i.$set(u)},i(r){o||(C(e.$$.fragment,r),C(s.$$.fragment,r),C(i.$$.fragment,r),o=!0)},o(r){M(e.$$.fragment,r),M(s.$$.fragment,r),M(i.$$.fragment,r),o=!1},d(r){r&&(F(n),F(a)),_e(e,r),_e(s,r),_e(i,r)}}}function g_(t){let e,n,s;return e=new qh({props:{outlineMd:!0,class:"demo-card-header-pic",$$slots:{default:[h_]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment),n=V()},m(a,i){ve(e,a,i),z(a,n,i),s=!0},p(a,i){const o={};i&65537&&(o.$$scope={dirty:i,ctx:a}),e.$set(o)},i(a){s||(C(e.$$.fragment,a),s=!0)},o(a){M(e.$$.fragment,a),s=!1},d(a){a&&F(n),_e(e,a)}}}function Lu(t){let e,n;return e=new xd({props:{$$slots:{default:[g_]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&65537&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function b_(t){let e,n,s=Lt(t[0]),a=[];for(let o=0;oM(a[o],1,1,()=>{a[o]=null});return{c(){for(let o=0;on(10,s=p)),Pt(t,Ct,p=>n(11,a=p)),Pt(t,Zn,p=>n(8,i=p));let{app:o}=e,r=[];function l(){Gt(Ct,a.selectedTab=0,a)}async function f(){await o.interrupt()}async function c(){yt.dialog.confirm("Are you sure you want to clear the current queue?",async()=>{await o.clearQueue("queue"),Zn.updateEntries(!0),ra("Queue cleared!")})}function u(p){let b="";for(const g of Object.values(p.entry.prompt))if(g.class_type==="CLIPTextEncode")for(const[v,_]of Object.entries(g.inputs))v==="text"&&(b+=_+` -`);return qp(b,240)}async function d(p){s.isInterrupting||(p.status==="running"?await o.interrupt():await o.deleteQueueItem("queue",p.entry.promptID),ra("Queue item canceled."),Zn.updateEntries(!0))}function m(p){return p.images.length>0?Fd(p.images[0]):"https://cdn.framework7.io/placeholder/nature-1000x600-3.jpg"}const h=p=>d(p);return t.$$set=p=>{"app"in p&&n(7,o=p.app)},t.$$.update=()=>{t.$$.dirty&256&&n(0,r=i.queueUIEntries)},[r,l,f,c,u,d,m,o,i,h]}class C_ extends We{constructor(e){super(),je(this,e,E_,k_,Xe,{app:7})}}function Du(t,e,n){const s=t.slice();return s[11]=e[n],s[13]=n,s}function Ru(t,e,n){const s=t.slice();s[14]=e[n][0],s[15]=e[n][1],s[18]=n;const a=s[13]*Sa+s[18];return s[16]=a,s}function y_(t){let e;return{c(){e=ge("Gallery")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function w_(t){let e;return{c(){e=ge("🗑️")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function S_(t){let e,n;return e=new xt({props:{$$slots:{default:[w_]},$$scope:{ctx:t}}}),e.$on("click",t[3]),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&524288&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function T_(t){let e,n,s,a,i,o;return e=new As({}),s=new Bs({props:{$$slots:{default:[y_]},$$scope:{ctx:t}}}),i=new Os({props:{$$slots:{default:[S_]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment),n=V(),be(s.$$.fragment),a=V(),be(i.$$.fragment)},m(r,l){ve(e,r,l),z(r,n,l),ve(s,r,l),z(r,a,l),ve(i,r,l),o=!0},p(r,l){const f={};l&524288&&(f.$$scope={dirty:l,ctx:r}),s.$set(f);const c={};l&524288&&(c.$$scope={dirty:l,ctx:r}),i.$set(c)},i(r){o||(C(e.$$.fragment,r),C(s.$$.fragment,r),C(i.$$.fragment,r),o=!0)},o(r){M(e.$$.fragment,r),M(s.$$.fragment,r),M(i.$$.fragment,r),o=!1},d(r){r&&(F(n),F(a)),_e(e,r),_e(s,r),_e(i,r)}}}function Hu(t){let e,n,s,a,i;function o(...r){return t[7](t[14],t[16],...r)}return{c(){e=Z("div"),n=Z("img"),se(n,"class","grid-entry-image svelte-16dky85"),Rt(n.src,s=t[15])||se(n,"src",s),se(n,"loading","lazy"),se(n,"alt","thumbnail"),se(e,"class","grid-entry svelte-16dky85")},m(r,l){z(r,e,l),N(e,n),a||(i=ht(n,"click",o),a=!0)},p(r,l){t=r,l&1&&!Rt(n.src,s=t[15])&&se(n,"src",s)},d(r){r&&F(e),a=!1,i()}}}function zu(t){let e,n,s=Lt(t[11]),a=[];for(let i=0;in(9,s=h)),Pt(t,Zn,h=>n(6,a=h));let{app:i}=e,o=[],r=[],l=[];function f(){Gt(Ct,s.selectedTab=2,s)}function c(h){const p=[];for(const b of h)for(const g of b.images)p.push([b,Fd(g,!0)]);n(0,r=Wp(p,Sa)),l=p.map(b=>b[1])}function u(h,p,b){jp(l,b)}async function d(){yt.dialog.confirm("Are you sure you want to clear the current history?",async()=>{await i.clearQueue("history"),Zn.updateEntries(!0),ra("History cleared!")})}const m=(h,p,b)=>u(b,h,p);return t.$$set=h=>{"app"in h&&n(4,i=h.app)},t.$$.update=()=>{t.$$.dirty&64&&n(5,o=a.historyUIEntries),t.$$.dirty&32&&c(o)},[r,f,u,d,i,o,a,m]}class O_ extends We{constructor(e){super(),je(this,e,A_,I_,Xe,{app:4})}}function B_(t){let e;return{c(){e=ge(t[3])},m(n,s){z(n,e,s)},p(n,s){s&8&&we(e,n[3])},d(n){n&&F(e)}}}function L_(t){let e,n;return e=new T1({}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function D_(t){let e,n;return e=new xt({props:{icon:"icon-bars",$$slots:{default:[L_]},$$scope:{ctx:t}}}),e.$on("click",t[12]),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&131072&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function R_(t){let e,n,s,a,i,o;return e=new As({props:{backLink:"Back",backLinkUrl:"/workflows/",backLinkForce:!0}}),s=new Bs({props:{$$slots:{default:[B_]},$$scope:{ctx:t}}}),i=new Os({props:{$$slots:{default:[D_]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment),n=V(),be(s.$$.fragment),a=V(),be(i.$$.fragment)},m(r,l){ve(e,r,l),z(r,n,l),ve(s,r,l),z(r,a,l),ve(i,r,l),o=!0},p(r,l){const f={};l&131080&&(f.$$scope={dirty:l,ctx:r}),s.$set(f);const c={};l&131088&&(c.$$scope={dirty:l,ctx:r}),i.$set(c)},i(r){o||(C(e.$$.fragment,r),C(s.$$.fragment,r),C(i.$$.fragment,r),o=!0)},o(r){M(e.$$.fragment,r),M(s.$$.fragment,r),M(i.$$.fragment,r),o=!1},d(r){r&&(F(n),F(a)),_e(e,r),_e(s,r),_e(i,r)}}}function H_(t){let e;return{c(){e=Z("div"),e.textContent="Workflow not found."},m(n,s){z(n,e,s)},p:dt,i:dt,o:dt,d(n){n&&F(e)}}}function z_(t){let e,n,s=t[2]&&Fu(t);return{c(){s&&s.c(),e=Ze()},m(a,i){s&&s.m(a,i),z(a,e,i),n=!0},p(a,i){a[2]?s?(s.p(a,i),i&4&&C(s,1)):(s=Fu(a),s.c(),C(s,1),s.m(e.parentNode,e)):s&&(le(),M(s,1,1,()=>{s=null}),oe())},i(a){n||(C(s),n=!0)},o(a){M(s),n=!1},d(a){a&&F(e),s&&s.d(a)}}}function Fu(t){let e,n,s,a;function i(r){t[13](r)}let o={isMobile:!0,classes:["root-container"],layoutState:t[1]};return t[2]!==void 0&&(o.dragItem=t[2]),n=new Gp({props:o}),$e.push(()=>Nd(n,"dragItem",i)),{c(){e=Z("div"),be(n.$$.fragment),se(e,"class","container svelte-7qn3jc")},m(r,l){z(r,e,l),ve(n,e,null),a=!0},p(r,l){const f={};l&2&&(f.layoutState=r[1]),!s&&l&4&&(s=!0,f.dragItem=r[2],Vd(()=>s=!1)),n.$set(f)},i(r){a||(C(n.$$.fragment,r),a=!0)},o(r){M(n.$$.fragment,r),a=!1},d(r){r&&F(e),_e(n)}}}function F_(t){let e;return{c(){e=ge("Actions")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function N_(t){let e;return{c(){e=ge("Refresh Dropdowns")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function V_(t){let e;return{c(){e=ge("Save to Local Storage")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function Y_(t){let e;return{c(){e=ge("Cancel")},m(n,s){z(n,e,s)},d(n){n&&F(e)}}}function q_(t){let e,n,s,a,i,o,r,l;return e=new Um({props:{$$slots:{default:[F_]},$$scope:{ctx:t}}}),s=new Ns({props:{strong:!0,$$slots:{default:[N_]},$$scope:{ctx:t}}}),s.$on("click",t[7]),i=new Ns({props:{strong:!0,$$slots:{default:[V_]},$$scope:{ctx:t}}}),i.$on("click",t[8]),r=new Ns({props:{color:"red",$$slots:{default:[Y_]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment),n=V(),be(s.$$.fragment),a=V(),be(i.$$.fragment),o=V(),be(r.$$.fragment)},m(f,c){ve(e,f,c),z(f,n,c),ve(s,f,c),z(f,a,c),ve(i,f,c),z(f,o,c),ve(r,f,c),l=!0},p(f,c){const u={};c&131072&&(u.$$scope={dirty:c,ctx:f}),e.$set(u);const d={};c&131072&&(d.$$scope={dirty:c,ctx:f}),s.$set(d);const m={};c&131072&&(m.$$scope={dirty:c,ctx:f}),i.$set(m);const h={};c&131072&&(h.$$scope={dirty:c,ctx:f}),r.$set(h)},i(f){l||(C(e.$$.fragment,f),C(s.$$.fragment,f),C(i.$$.fragment,f),C(r.$$.fragment,f),l=!0)},o(f){M(e.$$.fragment,f),M(s.$$.fragment,f),M(i.$$.fragment,f),M(r.$$.fragment,f),l=!1},d(f){f&&(F(n),F(a),F(o)),_e(e,f),_e(s,f),_e(i,f),_e(r,f)}}}function W_(t){let e,n;return e=new jm({props:{$$slots:{default:[q_]},$$scope:{ctx:t}}}),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,a){const i={};a&131072&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function j_(t){let e,n,s,a,i,o,r,l;e=new Ls({props:{$$slots:{default:[R_]},$$scope:{ctx:t}}});const f=[z_,H_],c=[];function u(h,p){return h[0]?0:1}s=u(t),a=c[s]=f[s](t);function d(h){t[14](h)}let m={$$slots:{default:[W_]},$$scope:{ctx:t}};return t[4]!==void 0&&(m.opened=t[4]),o=new Km({props:m}),$e.push(()=>Nd(o,"opened",d)),{c(){be(e.$$.fragment),n=V(),a.c(),i=V(),be(o.$$.fragment)},m(h,p){ve(e,h,p),z(h,n,p),c[s].m(h,p),z(h,i,p),ve(o,h,p),l=!0},p(h,p){const b={};p&131096&&(b.$$scope={dirty:p,ctx:h}),e.$set(b);let g=s;s=u(h),s===g?c[s].p(h,p):(le(),M(c[g],1,1,()=>{c[g]=null}),oe(),a=c[s],a?a.p(h,p):(a=c[s]=f[s](h),a.c()),C(a,1),a.m(i.parentNode,i));const v={};p&131072&&(v.$$scope={dirty:p,ctx:h}),!r&&p&16&&(r=!0,v.opened=h[4],Vd(()=>r=!1)),o.$set(v)},i(h){l||(C(e.$$.fragment,h),C(a),C(o.$$.fragment,h),l=!0)},o(h){M(e.$$.fragment,h),M(a),M(o.$$.fragment,h),l=!1},d(h){h&&(F(n),F(i)),_e(e,h),c[s].d(h),_e(o,h)}}}function X_(t){let e,n;return e=new Ds({props:{name:"workflow",style:"--f7-page-toolbar-bottom-offset: calc(var(--f7-toolbar-height) * 2)",$$slots:{default:[j_]},$$scope:{ctx:t}}}),e.$on("pageBeforeIn",t[5]),e.$on("pageBeforeOut",t[6]),{c(){be(e.$$.fragment)},m(s,a){ve(e,s,a),n=!0},p(s,[a]){const i={};a&131103&&(i.$$scope={dirty:a,ctx:s}),e.$set(i)},i(s){n||(C(e.$$.fragment,s),n=!0)},o(s){M(e.$$.fragment,s),n=!1},d(s){_e(e,s)}}}function G_(t,e,n){let s,a,i=dt,o=()=>(i(),i=Xp(s,S=>n(11,a=S)),s),r,l;Pt(t,Ct,S=>n(15,r=S)),Pt(t,ts,S=>n(16,l=S)),t.$$.on_destroy.push(()=>i());let{workflowIndex:f}=e,{app:c}=e,u,d,m="",h=!1;function p(){n(0,u=l.openedWorkflows[f-1]),u&&ts.setActiveWorkflow(c.lCanvas,u.id),Gt(Ct,r.selectedWorkflowIndex=f,r),Gt(Ct,r.showingWorkflow=!0,r),Gt(Ct,r.selectedTab=1,r)}function b(){Gt(Ct,r.showingWorkflow=!1,r)}async function g(){navigator.vibrate(20),await c.refreshComboInNodes()}function v(){navigator.vibrate(20),c.saveStateToLocalStorage()}const _=()=>{n(4,h=!0)};function k(S){d=S,n(2,d),n(1,s),n(11,a),n(0,u)}function E(S){h=S,n(4,h)}return t.$$set=S=>{"workflowIndex"in S&&n(9,f=S.workflowIndex),"app"in S&&n(10,c=S.app)},t.$$.update=()=>{var S;t.$$.dirty&1&&o(n(1,s=u==null?void 0:u.layout)),t.$$.dirty&513&&n(3,m=((S=u==null?void 0:u.attrs)==null?void 0:S.title)||`Workflow: ${(u==null?void 0:u.id)||f}`),t.$$.dirty&2050&&(s&&a.root?n(2,d=a.root):n(2,d=null))},[u,s,d,m,h,p,b,g,v,f,c,a,_,k,E]}class U_ extends We{constructor(e){super(),je(this,e,G_,X_,Xe,{workflowIndex:9,app:10})}}const{document:x_}=Up;function Nu(t,e,n){const s=t.slice();return s[12]=e[n],s}function Vs(t){const e=t.slice(),n=e[10].stack.split(` -`);return e[11]=n,e}function Vu(t){let e,n,s,a={ctx:t,current:null,token:null,hasCatch:!0,pending:Z_,then:Q_,catch:$_,error:10,blocks:[,,,]};return Za(n=t[2],a),{c(){e=Ze(),a.block.c()},m(i,o){z(i,e,o),a.block.m(i,a.anchor=o),a.mount=()=>e.parentNode,a.anchor=e,s=!0},p(i,o){t=i,a.ctx=t,o&4&&n!==(n=t[2])&&Za(n,a)||xp(a,t,o)},i(i){s||(C(a.block),s=!0)},o(i){for(let o=0;o<3;o+=1){const r=a.blocks[o];M(r)}s=!1},d(i){i&&F(e),a.block.d(i),a.token=null,a=null}}}function $_(t){let e,n,s,a,i=t[10]+"",o,r,l=t[10]!=null&&t[10].stack&&Yu(Vs(t));return{c(){e=Z("div"),n=Z("div"),n.textContent="Error loading app",s=V(),a=Z("div"),o=ge(i),r=V(),l&&l.c(),se(e,"class","comfy-loading-error svelte-b2kj77")},m(f,c){z(f,e,c),N(e,n),N(e,s),N(e,a),N(a,o),N(e,r),l&&l.m(e,null)},p(f,c){c&4&&i!==(i=f[10]+"")&&we(o,i),f[10]!=null&&f[10].stack?l?l.p(Vs(f),c):(l=Yu(Vs(f)),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:dt,o:dt,d(f){f&&F(e),l&&l.d()}}}function Yu(t){let e,n=Lt(t[11]),s=[];for(let a=0;a{i=null}),oe())},i(o){a||(C(e.$$.fragment,o),C(i),a=!0)},o(o){M(e.$$.fragment,o),M(i),a=!1},d(o){o&&(F(n),F(s)),_e(e,o),i&&i.d(o)}}}function Z_(t){let e,n,s,a;return s=new Mn({props:{color:"blue",size:100}}),{c(){e=Z("div"),n=Z("div"),be(s.$$.fragment),se(e,"class","comfy-app-loading svelte-b2kj77")},m(i,o){z(i,e,o),N(e,n),ve(s,n,null),a=!0},p:dt,i(i){a||(C(s.$$.fragment,i),a=!0)},o(i){M(s.$$.fragment,i),a=!1},d(i){i&&F(e),_e(s)}}}function J_(t){let e,n,s=t[2]&&Vu(t);return{c(){s&&s.c(),e=Ze()},m(a,i){s&&s.m(a,i),z(a,e,i),n=!0},p(a,i){a[2]?s?(s.p(a,i),i&4&&C(s,1)):(s=Vu(a),s.c(),C(s,1),s.m(e.parentNode,e)):s&&(le(),M(s,1,1,()=>{s=null}),oe())},i(a){n||(C(s),n=!0)},o(a){M(s),n=!1},d(a){a&&F(e),s&&s.d(a)}}}function ek(t){let e,n,s,a,i,o,r;const l=[{theme:"auto"},{name:"ComfyBox"},t[3]];let f={$$slots:{default:[J_]},$$scope:{ctx:t}};for(let c=0;c',se(a,"class","canvas-wrapper pane-wrapper"),$t(a,"display","none")},m(c,u){z(c,e,u),ve(n,c,u),z(c,s,u),z(c,a,u),i=!0,o||(r=Dt(t[4].call(null,x_.body)),o=!0)},p(c,[u]){const d=u&8?Ge(l,[l[0],l[1],as(c[3])]):{};u&32775&&(d.$$scope={dirty:u,ctx:c}),n.$set(d)},i(c){i||(C(n.$$.fragment,c),i=!0)},o(c){M(n.$$.fragment,c),i=!1},d(c){c&&(F(e),F(s),F(a)),_e(n,c),o=!1,r()}}}function tk(t,e,n){let s;Pt(t,Ct,d=>n(1,s=d));let{app:a}=e;function i(d){if(yt.view.current.router.currentRoute.path=="/")d.preventDefault();else{const m=yt.$,h=m(".modal-in");if(h.length&&"f7Modal"in h[0]){h[0].f7Modal.close(!0),d.preventDefault();return}if(m(".panel-active").length){yt.panel.close(),d.preventDefault();return}const p=m(".photo-browser-page a.link.popup-close");if(p.length>0){p[0].click(),d.preventDefault();return}return yt.dialog.close(),yt.view.main.router.back(),!1}}let o=null,r=Number.POSITIVE_INFINITY;gt(async()=>{Gt(Ct,s.isDarkMode=!0,s),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",d=>{Gt(Ct,s.isDarkMode=d.matches,s)}),n(2,o=a.setup().then(()=>{setInterval(()=>a.saveStateToLocalStorage(!1),60*1e3)})),window.addEventListener("backbutton",i,!1),window.addEventListener("popstate",i,!1),window.visualViewport.addEventListener("resize",function(d){var m;d.target.height>r&&((m=document.activeElement)==null||m.blur()),r=d.target.height})});let l={routes:[{path:"/",component:Au,options:{props:{app:a}}},{path:"/workflows",component:Au,options:{props:{app:a}}},{path:"/queue/",component:C_,options:{props:{app:a}}},{path:"/gallery/",component:O_,options:{props:{app:a}}},{path:"/workflows/:workflowIndex/",component:U_,options:{props:{app:a}}}],popup:{closeOnEscape:!0},sheet:{closeOnEscape:!0},popover:{closeOnEscape:!0},actions:{closeOnEscape:!0},touch:{tapHold:!0}},f;const c=d=>f=d;function u(d){f&&(d?f.classList.add("dark"):f.classList.remove("dark"))}return t.$$set=d=>{"app"in d&&n(0,a=d.app)},t.$$.update=()=>{t.$$.dirty&2&&yt&&yt.setDarkMode(s.isDarkMode),t.$$.dirty&2&&u(s.isDarkMode)},[a,s,o,l,c]}class nk extends We{constructor(e){super(),je(this,e,tk,ek,Xe,{app:0})}}function ju(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Ta(t={},e={}){Object.keys(e).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:ju(e[n])&&ju(t[n])&&Object.keys(e[n]).length>0&&Ta(t[n],e[n])})}const Zd={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 Le(){const t=typeof document<"u"?document:{};return Ta(t,Zd),t}const sk={document:Zd,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 Se(){const t=typeof window<"u"?window:{};return Ta(t,sk),t}function ak(t){const e=t.__proto__;Object.defineProperty(t,"__proto__",{get(){return e},set(n){e.__proto__=n}})}class hn extends Array{constructor(e){typeof e=="number"?super(e):(super(...e||[]),ak(this))}}function cs(t=[]){const e=[];return t.forEach(n=>{Array.isArray(n)?e.push(...cs(n)):e.push(n)}),e}function Jd(t,e){return Array.prototype.filter.call(t,e)}function ik(t){const e=[];for(let n=0;nn.toUpperCase())}function lk(t,e){if(typeof t!="string")return[t];const n=[],s=e.querySelectorAll(t);for(let a=0;a=0&&i.indexOf(">")>=0){let o="div";i.indexOf("n.split(" ")));return this.forEach(n=>{n.classList.add(...e)}),this}function fk(...t){const e=cs(t.map(n=>n.split(" ")));return this.forEach(n=>{n.classList.remove(...e)}),this}function ck(...t){const e=cs(t.map(n=>n.split(" ")));this.forEach(n=>{e.forEach(s=>{n.classList.toggle(s)})})}function uk(...t){const e=cs(t.map(n=>n.split(" ")));return Jd(this,n=>e.filter(s=>n.classList.contains(s)).length>0).length>0}function dk(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(let n=0;n"u"){if(n=this[0],!n)return;if(n.dom7ElementDataStorage&&t in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[t];const s=n.getAttribute(`data-${t}`);return s||void 0}for(let s=0;s=0&&(e[rk(s.name.split("data-")[1])]=s.value)}for(const n in e)e[n]==="false"?e[n]=!1:e[n]==="true"?e[n]=!0:parseFloat(e[n])===e[n]*1&&(e[n]*=1);return e}function vk(t){if(typeof t>"u"){const e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){const n=[];for(let s=0;s=0;else n.value=t}return this}function _k(t){return this.val(t)}function kk(t){for(let e=0;e=0;u-=1){const d=c[u];s&&d.listener===s||s&&d.listener&&d.listener.dom7proxy&&d.listener.dom7proxy===s?(f.removeEventListener(r,d.proxyListener,a),c.splice(u,1)):s||(f.removeEventListener(r,d.proxyListener,a),c.splice(u,1))}}}return this}function wk(...t){const e=this;let[n,s,a,i]=t;typeof t[1]=="function"&&([n,a,i]=t,s=void 0);function o(...r){a.apply(this,r),e.off(n,s,o,i),o.dom7proxy&&delete o.dom7proxy}return o.dom7proxy=a,e.on(n,s,o,i)}function Sk(...t){const e=Se(),n=t[0].split(" "),s=t[1];for(let a=0;ac>0),r.dispatchEvent(l),r.dom7EventData=[],delete r.dom7EventData}}}return this}function Tk(t){const e=this;function n(s){s.target===this&&(t.call(this,s),e.off("transitionstart",n))}return t&&e.on("transitionstart",n),this}function Mk(t){const e=this;function n(s){s.target===this&&(t.call(this,s),e.off("transitionend",n))}return t&&e.on("transitionend",n),this}function Pk(t){const e=this;function n(s){s.target===this&&(t.call(this,s),e.off("animationend",n))}return t&&e.on("animationend",n),this}function Ik(){const t=Se();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Ak(t){if(this.length>0){if(t){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function Ok(){const t=Se();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Bk(t){if(this.length>0){if(t){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function Lk(){if(this.length>0){const t=Se(),e=Le(),n=this[0],s=n.getBoundingClientRect(),a=e.body,i=n.clientTop||a.clientTop||0,o=n.clientLeft||a.clientLeft||0,r=n===t?t.scrollY:n.scrollTop,l=n===t?t.scrollX:n.scrollLeft;return{top:s.top+r-i,left:s.left+l-o}}return null}function Dk(){for(let t=0;t{t.apply(e,[e,n])}),this):this}function Nk(t){const e=Jd(this,t);return Ye(e)}function Vk(t){if(typeof t>"u")return this[0]?this[0].innerHTML:null;for(let e=0;e"u")return this[0]?this[0].textContent.trim():null;for(let e=0;e"u")return!1;if(typeof t=="string"){if(s.matches)return s.matches(t);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(t);if(s.msMatchesSelector)return s.msMatchesSelector(t);for(a=Ye(t),i=0;i"u")return this;const e=this.length;if(t>e-1)return Ye([]);if(t<0){const n=e+t;return n<0?Ye([]):Ye([this[n]])}return Ye([this[t]])}function Xk(...t){let e;const n=Le();for(let s=0;s=0;s-=1)this[n].insertBefore(a.childNodes[s],this[n].childNodes[0])}else if(t instanceof hn)for(s=0;s1)for(let s=0;s1)for(let s=0;s0?t?this[0].nextElementSibling&&Ye(this[0].nextElementSibling).is(t)?Ye([this[0].nextElementSibling]):Ye([]):this[0].nextElementSibling?Ye([this[0].nextElementSibling]):Ye([]):Ye([])}function Zk(t){const e=[];let n=this[0];if(!n)return Ye([]);for(;n.nextElementSibling;){const s=n.nextElementSibling;t?Ye(s).is(t)&&e.push(s):e.push(s),n=s}return Ye(e)}function Jk(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&Ye(e.previousElementSibling).is(t)?Ye([e.previousElementSibling]):Ye([]):e.previousElementSibling?Ye([e.previousElementSibling]):Ye([])}return Ye([])}function eE(t){const e=[];let n=this[0];if(!n)return Ye([]);for(;n.previousElementSibling;){const s=n.previousElementSibling;t?Ye(s).is(t)&&e.push(s):e.push(s),n=s}return Ye(e)}function tE(t){return this.nextAll(t).add(this.prevAll(t))}function nE(t){const e=[];for(let n=0;n"u"?Ye([]):(e.is(t)||(e=e.parents(t).eq(0)),e)}function iE(t){const e=[];for(let n=0;n"u"&&(i="swing"),this.each(function(){const l=this;let f,c,u,d,m,h,p,b,g=s>0||s===0,v=n>0||n===0;if(typeof i>"u"&&(i="swing"),g&&(f=l.scrollTop,a||(l.scrollTop=s)),v&&(c=l.scrollLeft,a||(l.scrollLeft=n)),!a)return;g&&(u=l.scrollHeight-l.offsetHeight,m=Math.max(Math.min(s,u),0)),v&&(d=l.scrollWidth-l.offsetWidth,h=Math.max(Math.min(n,d),0));let _=null;g&&m===f&&(g=!1),v&&h===c&&(v=!1);function k(E=new Date().getTime()){_===null&&(_=E);const S=Math.max(Math.min((E-_)/a,1),0),I=i==="linear"?S:.5-Math.cos(S*Math.PI)/2;let T;if(g&&(p=f+I*(m-f)),v&&(b=c+I*(h-c)),g&&m>f&&p>=m&&(l.scrollTop=m,T=!0),g&&mc&&b>=h&&(l.scrollLeft=h,T=!0),v&&h"u"?i.length>0?i[0].scrollTop:null:i.scrollTo(void 0,e,n,s,a)}function pE(...t){let[e,n,s,a]=t;t.length===3&&typeof s=="function"&&([e,n,a,s]=t);const i=this;return typeof e>"u"?i.length>0?i[0].scrollLeft:null:i.scrollTo(e,void 0,n,s,a)}function mE(t,e){const n=Se(),s=this,a={props:Object.assign({},t),params:Object.assign({duration:300,easing:"swing"},e),elements:s,animating:!1,que:[],easingProgress(o,r){return o==="swing"?.5-Math.cos(r*Math.PI)/2:typeof o=="function"?o(r):r},stop(){a.frameId&&n.cancelAnimationFrame(a.frameId),a.animating=!1,a.elements.each(o=>{const r=o;delete r.dom7AnimateInstance}),a.que=[]},done(o){if(a.animating=!1,a.elements.each(r=>{const l=r;delete l.dom7AnimateInstance}),o&&o(s),a.que.length>0){const r=a.que.shift();a.animate(r[0],r[1])}},animate(o,r){if(a.animating)return a.que.push([o,r]),a;const l=[];a.elements.each((b,g)=>{let v,_,k,E,S;b.dom7AnimateInstance||(a.elements[g].dom7AnimateInstance=a),l[g]={container:b},Object.keys(o).forEach(I=>{v=n.getComputedStyle(b,null).getPropertyValue(I).replace(",","."),_=parseFloat(v),k=v.replace(_,""),E=parseFloat(o[I]),S=o[I]+k,l[g][I]={initialFullValue:v,initialValue:_,unit:k,finalValue:E,finalFullValue:S,currentValue:_}})});let f=null,c,u=0,d=0,m,h=!1;a.animating=!0;function p(){c=new Date().getTime();let b,g;h||(h=!0,r.begin&&r.begin(s)),f===null&&(f=c),r.progress&&r.progress(s,Math.max(Math.min((c-f)/r.duration,1),0),f+r.duration-c<0?0:f+r.duration-c,f),l.forEach(v=>{const _=v;m||_.done||Object.keys(o).forEach(k=>{if(m||_.done)return;b=Math.max(Math.min((c-f)/r.duration,1),0),g=a.easingProgress(r.easing,b);const{initialValue:E,finalValue:S,unit:I}=_[k];_[k].currentValue=E+g*(S-E);const T=_[k].currentValue;if((S>E&&T>=S||S"u"){for(let s=0;s{t!=="$"&&(Ye.fn[t]=Xu[t])});const P=Ye;function dn(t){return t<0?-1:t===0?0:1}function Gu(t,e,n){return(1-n)*t+n*e}function NE(t,e,n){return ne?e:n}function Ma(t){return(t%=360)<0&&(t+=360),t}function VE(t,e){return Ma(e-t)<=180?1:-1}function YE(t,e){return 180-Math.abs(Math.abs(t-e)-180)}function oa(t,e){return[t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2]]}const qE=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],WE=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],jE=[95.047,100,108.883];function Pa(t,e,n){return(255<<24|(255&t)<<16|(255&e)<<8|255&n)>>>0}function Uu(t){return Pa(En(t[0]),En(t[1]),En(t[2]))}function ep(t){return t>>16&255}function tp(t){return t>>8&255}function np(t){return 255&t}function XE(t,e,n){const s=WE,a=s[0][0]*t+s[0][1]*e+s[0][2]*n,i=s[1][0]*t+s[1][1]*e+s[1][2]*n,o=s[2][0]*t+s[2][1]*e+s[2][2]*n;return Pa(En(a),En(i),En(o))}function GE(t){return oa([Ln(ep(t)),Ln(tp(t)),Ln(np(t))],qE)}function UE(t){const e=En(Es(t));return Pa(e,e,e)}function fa(t){return 116*$E(GE(t)[1]/100)-16}function Es(t){return 100*QE((t+16)/116)}function Ln(t){const e=t/255;return e<=.040449936?e/12.92*100:100*Math.pow((e+.055)/1.055,2.4)}function En(t){const e=t/100;let n=0;return n=e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,NE(0,255,Math.round(255*n))}function xE(){return jE}function $E(t){return t>216/24389?Math.pow(t,1/3):(903.2962962962963*t+16)/116}function QE(t){const e=t*t*t;return e>216/24389?e:(116*t-16)/903.2962962962963}class an{static make(e,n,s,a,i){e===void 0&&(e=xE()),n===void 0&&(n=200/Math.PI*Es(50)/100),s===void 0&&(s=50),a===void 0&&(a=2),i===void 0&&(i=!1);const o=e,r=.401288*o[0]+.650173*o[1]+-.051461*o[2],l=-.250268*o[0]+1.204414*o[1]+.045854*o[2],f=-.002079*o[0]+.048952*o[1]+.953127*o[2],c=.8+a/10,u=c>=.9?Gu(.59,.69,10*(c-.9)):Gu(.525,.59,10*(c-.8));let d=i?1:c*(1-1/3.6*Math.exp((-n-42)/92));d=d>1?1:d<0?0:d;const m=c,h=[d*(100/r)+1-d,d*(100/l)+1-d,d*(100/f)+1-d],p=1/(5*n+1),b=p*p*p*p,g=1-b,v=b*n+.1*g*g*Math.cbrt(5*n),_=Es(s)/e[1],k=1.48+Math.sqrt(_),E=.725/Math.pow(_,.2),S=E,I=[Math.pow(v*h[0]*r/100,.42),Math.pow(v*h[1]*l/100,.42),Math.pow(v*h[2]*f/100,.42)],T=[400*I[0]/(I[0]+27.13),400*I[1]/(I[1]+27.13),400*I[2]/(I[2]+27.13)];return new an(_,(2*T[0]+T[1]+.05*T[2])*E,E,S,u,m,h,v,Math.pow(v,.25),k)}constructor(e,n,s,a,i,o,r,l,f,c){this.n=e,this.aw=n,this.nbb=s,this.ncb=a,this.c=i,this.nc=o,this.rgbD=r,this.fl=l,this.fLRoot=f,this.z=c}}an.DEFAULT=an.make();class Mt{constructor(e,n,s,a,i,o,r,l,f){this.hue=e,this.chroma=n,this.j=s,this.q=a,this.m=i,this.s=o,this.jstar=r,this.astar=l,this.bstar=f}distance(e){const n=this.jstar-e.jstar,s=this.astar-e.astar,a=this.bstar-e.bstar,i=Math.sqrt(n*n+s*s+a*a);return 1.41*Math.pow(i,.63)}static fromInt(e){return Mt.fromIntInViewingConditions(e,an.DEFAULT)}static fromIntInViewingConditions(e,n){const s=(65280&e)>>8,a=255&e,i=Ln((16711680&e)>>16),o=Ln(s),r=Ln(a),l=.41233895*i+.35762064*o+.18051042*r,f=.2126*i+.7152*o+.0722*r,c=.01932141*i+.11916382*o+.95034478*r,u=.401288*l+.650173*f-.051461*c,d=-.250268*l+1.204414*f+.045854*c,m=-.002079*l+.048952*f+.953127*c,h=n.rgbD[0]*u,p=n.rgbD[1]*d,b=n.rgbD[2]*m,g=Math.pow(n.fl*Math.abs(h)/100,.42),v=Math.pow(n.fl*Math.abs(p)/100,.42),_=Math.pow(n.fl*Math.abs(b)/100,.42),k=400*dn(h)*g/(g+27.13),E=400*dn(p)*v/(v+27.13),S=400*dn(b)*_/(_+27.13),I=(11*k+-12*E+S)/11,T=(k+E-2*S)/9,A=(20*k+20*E+21*S)/20,y=(40*k+20*E+S)/20,w=180*Math.atan2(T,I)/Math.PI,D=w<0?w+360:w>=360?w-360:w,O=D*Math.PI/180,L=y*n.nbb,j=100*Math.pow(L/n.aw,n.c*n.z),W=4/n.c*Math.sqrt(j/100)*(n.aw+4)*n.fLRoot,Y=D<20.14?D+360:D,B=5e4/13*(.25*(Math.cos(Y*Math.PI/180+2)+3.8))*n.nc*n.ncb*Math.sqrt(I*I+T*T)/(A+.305),q=Math.pow(B,.9)*Math.pow(1.64-Math.pow(.29,n.n),.73),X=q*Math.sqrt(j/100),H=X*n.fLRoot,G=50*Math.sqrt(q*n.c/(n.aw+4)),ce=(1+100*.007)*j/(1+.007*j),ye=1/.0228*Math.log(1+.0228*H),ne=ye*Math.cos(O),me=ye*Math.sin(O);return new Mt(D,X,j,W,H,G,ce,ne,me)}static fromJch(e,n,s){return Mt.fromJchInViewingConditions(e,n,s,an.DEFAULT)}static fromJchInViewingConditions(e,n,s,a){const i=4/a.c*Math.sqrt(e/100)*(a.aw+4)*a.fLRoot,o=n*a.fLRoot,r=n/Math.sqrt(e/100),l=50*Math.sqrt(r*a.c/(a.aw+4)),f=s*Math.PI/180,c=(1+100*.007)*e/(1+.007*e),u=1/.0228*Math.log(1+.0228*o),d=u*Math.cos(f),m=u*Math.sin(f);return new Mt(s,n,e,i,o,l,c,d,m)}static fromUcs(e,n,s){return Mt.fromUcsInViewingConditions(e,n,s,an.DEFAULT)}static fromUcsInViewingConditions(e,n,s,a){const i=n,o=s,r=Math.sqrt(i*i+o*o),l=(Math.exp(.0228*r)-1)/.0228/a.fLRoot;let f=Math.atan2(o,i)*(180/Math.PI);f<0&&(f+=360);const c=e/(1-.007*(e-100));return Mt.fromJchInViewingConditions(c,l,f,a)}toInt(){return this.viewed(an.DEFAULT)}viewed(e){const n=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),s=Math.pow(n/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),a=this.hue*Math.PI/180,i=.25*(Math.cos(a+2)+3.8),o=e.aw*Math.pow(this.j/100,1/e.c/e.z),r=i*(5e4/13)*e.nc*e.ncb,l=o/e.nbb,f=Math.sin(a),c=Math.cos(a),u=23*(l+.305)*s/(23*r+11*s*c+108*s*f),d=u*c,m=u*f,h=(460*l+451*d+288*m)/1403,p=(460*l-891*d-261*m)/1403,b=(460*l-220*d-6300*m)/1403,g=Math.max(0,27.13*Math.abs(h)/(400-Math.abs(h))),v=dn(h)*(100/e.fl)*Math.pow(g,1/.42),_=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),k=dn(p)*(100/e.fl)*Math.pow(_,1/.42),E=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),S=dn(b)*(100/e.fl)*Math.pow(E,1/.42),I=v/e.rgbD[0],T=k/e.rgbD[1],A=S/e.rgbD[2];return XE(1.86206786*I-1.01125463*T+.14918677*A,.38752654*I+.62144744*T-.00897398*A,-.0158415*I-.03412294*T+1.04996444*A)}}class Ne{static sanitizeRadians(e){return(e+8*Math.PI)%(2*Math.PI)}static trueDelinearized(e){const n=e/100;let s=0;return s=n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055,255*s}static chromaticAdaptation(e){const n=Math.pow(Math.abs(e),.42);return 400*dn(e)*n/(n+27.13)}static hueOf(e){const n=oa(e,Ne.SCALED_DISCOUNT_FROM_LINRGB),s=Ne.chromaticAdaptation(n[0]),a=Ne.chromaticAdaptation(n[1]),i=Ne.chromaticAdaptation(n[2]),o=(11*s+-12*a+i)/11,r=(s+a-2*i)/9;return Math.atan2(r,o)}static areInCyclicOrder(e,n,s){return Ne.sanitizeRadians(n-e)100.01||E[1]>100.01||E[2]>100.01?0:Uu(E);a-=(A-s)*a/(2*A)}return 0}static solveToInt(e,n,s){if(n<1e-4||s<1e-4||s>99.9999)return UE(s);const a=(e=Ma(e))/180*Math.PI,i=Es(s),o=Ne.findResultByJ(a,n,i);return o!==0?o:Uu(Ne.bisectToLimit(i,a))}static solveToCam(e,n,s){return Mt.fromInt(Ne.solveToInt(e,n,s))}}Ne.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],Ne.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],Ne.Y_FROM_LINRGB=[.2126,.7152,.0722],Ne.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];class Ut{static from(e,n,s){return new Ut(Ne.solveToInt(e,n,s))}static fromInt(e){return new Ut(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Ne.solveToInt(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Ne.solveToInt(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(Ne.solveToInt(this.internalHue,this.internalChroma,e))}constructor(e){this.argb=e;const n=Mt.fromInt(e);this.internalHue=n.hue,this.internalChroma=n.chroma,this.internalTone=fa(e),this.argb=e}setInternalState(e){const n=Mt.fromInt(e);this.internalHue=n.hue,this.internalChroma=n.chroma,this.internalTone=fa(e),this.argb=e}}class Ia{static harmonize(e,n){const s=Ut.fromInt(e),a=Ut.fromInt(n),i=YE(s.hue,a.hue),o=Math.min(.5*i,15),r=Ma(s.hue+o*VE(s.hue,a.hue));return Ut.from(r,s.chroma,s.tone).toInt()}static hctHue(e,n,s){const a=Ia.cam16Ucs(e,n,s),i=Mt.fromInt(a),o=Mt.fromInt(e);return Ut.from(i.hue,o.chroma,fa(e)).toInt()}static cam16Ucs(e,n,s){const a=Mt.fromInt(e),i=Mt.fromInt(n),o=a.jstar,r=a.astar,l=a.bstar,f=o+(i.jstar-o)*s,c=r+(i.astar-r)*s,u=l+(i.bstar-l)*s;return Mt.fromUcs(f,c,u).toInt()}}class Ot{static fromInt(e){const n=Ut.fromInt(e);return Ot.fromHueAndChroma(n.hue,n.chroma)}static fromHueAndChroma(e,n){return new Ot(e,n)}constructor(e,n){this.hue=e,this.chroma=n,this.cache=new Map}tone(e){let n=this.cache.get(e);return n===void 0&&(n=Ut.from(this.hue,this.chroma,e).toInt(),this.cache.set(e,n)),n}}class Et{static of(e){return new Et(e,!1)}static contentOf(e){return new Et(e,!0)}static fromColors(e){return Et.createPaletteFromColors(!1,e)}static contentFromColors(e){return Et.createPaletteFromColors(!0,e)}static createPaletteFromColors(e,n){const s=new Et(n.primary,e);if(n.secondary){const a=new Et(n.secondary,e);s.a2=a.a1}if(n.tertiary){const a=new Et(n.tertiary,e);s.a3=a.a1}if(n.error){const a=new Et(n.error,e);s.error=a.a1}if(n.neutral){const a=new Et(n.neutral,e);s.n1=a.n1}if(n.neutralVariant){const a=new Et(n.neutralVariant,e);s.n2=a.n2}return s}constructor(e,n){const s=Ut.fromInt(e),a=s.hue,i=s.chroma;n?(this.a1=Ot.fromHueAndChroma(a,i),this.a2=Ot.fromHueAndChroma(a,i/3),this.a3=Ot.fromHueAndChroma(a+60,i/2),this.n1=Ot.fromHueAndChroma(a,Math.min(i/12,4)),this.n2=Ot.fromHueAndChroma(a,Math.min(i/6,8))):(this.a1=Ot.fromHueAndChroma(a,Math.max(48,i)),this.a2=Ot.fromHueAndChroma(a,16),this.a3=Ot.fromHueAndChroma(a+60,24),this.n1=Ot.fromHueAndChroma(a,4),this.n2=Ot.fromHueAndChroma(a,8)),this.error=Ot.fromHueAndChroma(25,84)}}class nn{get primary(){return this.props.primary}get onPrimary(){return this.props.onPrimary}get primaryContainer(){return this.props.primaryContainer}get onPrimaryContainer(){return this.props.onPrimaryContainer}get secondary(){return this.props.secondary}get onSecondary(){return this.props.onSecondary}get secondaryContainer(){return this.props.secondaryContainer}get onSecondaryContainer(){return this.props.onSecondaryContainer}get tertiary(){return this.props.tertiary}get onTertiary(){return this.props.onTertiary}get tertiaryContainer(){return this.props.tertiaryContainer}get onTertiaryContainer(){return this.props.onTertiaryContainer}get error(){return this.props.error}get onError(){return this.props.onError}get errorContainer(){return this.props.errorContainer}get onErrorContainer(){return this.props.onErrorContainer}get background(){return this.props.background}get onBackground(){return this.props.onBackground}get surface(){return this.props.surface}get onSurface(){return this.props.onSurface}get surfaceVariant(){return this.props.surfaceVariant}get onSurfaceVariant(){return this.props.onSurfaceVariant}get outline(){return this.props.outline}get outlineVariant(){return this.props.outlineVariant}get shadow(){return this.props.shadow}get scrim(){return this.props.scrim}get inverseSurface(){return this.props.inverseSurface}get inverseOnSurface(){return this.props.inverseOnSurface}get inversePrimary(){return this.props.inversePrimary}static light(e){return nn.lightFromCorePalette(Et.of(e))}static dark(e){return nn.darkFromCorePalette(Et.of(e))}static lightContent(e){return nn.lightFromCorePalette(Et.contentOf(e))}static darkContent(e){return nn.darkFromCorePalette(Et.contentOf(e))}static lightFromCorePalette(e){return new nn({primary:e.a1.tone(40),onPrimary:e.a1.tone(100),primaryContainer:e.a1.tone(90),onPrimaryContainer:e.a1.tone(10),secondary:e.a2.tone(40),onSecondary:e.a2.tone(100),secondaryContainer:e.a2.tone(90),onSecondaryContainer:e.a2.tone(10),tertiary:e.a3.tone(40),onTertiary:e.a3.tone(100),tertiaryContainer:e.a3.tone(90),onTertiaryContainer:e.a3.tone(10),error:e.error.tone(40),onError:e.error.tone(100),errorContainer:e.error.tone(90),onErrorContainer:e.error.tone(10),background:e.n1.tone(99),onBackground:e.n1.tone(10),surface:e.n1.tone(99),onSurface:e.n1.tone(10),surfaceVariant:e.n2.tone(90),onSurfaceVariant:e.n2.tone(30),outline:e.n2.tone(50),outlineVariant:e.n2.tone(80),shadow:e.n1.tone(0),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(20),inverseOnSurface:e.n1.tone(95),inversePrimary:e.a1.tone(80)})}static darkFromCorePalette(e){return new nn({primary:e.a1.tone(80),onPrimary:e.a1.tone(20),primaryContainer:e.a1.tone(30),onPrimaryContainer:e.a1.tone(90),secondary:e.a2.tone(80),onSecondary:e.a2.tone(20),secondaryContainer:e.a2.tone(30),onSecondaryContainer:e.a2.tone(90),tertiary:e.a3.tone(80),onTertiary:e.a3.tone(20),tertiaryContainer:e.a3.tone(30),onTertiaryContainer:e.a3.tone(90),error:e.error.tone(80),onError:e.error.tone(20),errorContainer:e.error.tone(30),onErrorContainer:e.error.tone(80),background:e.n1.tone(10),onBackground:e.n1.tone(90),surface:e.n1.tone(10),onSurface:e.n1.tone(90),surfaceVariant:e.n2.tone(30),onSurfaceVariant:e.n2.tone(80),outline:e.n2.tone(60),outlineVariant:e.n2.tone(30),shadow:e.n1.tone(0),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(90),inverseOnSurface:e.n1.tone(20),inversePrimary:e.a1.tone(40)})}constructor(e){this.props=e}toJSON(){return{...this.props}}}function In(t){const e=ep(t),n=tp(t),s=np(t),a=[e.toString(16),n.toString(16),s.toString(16)];for(const[i,o]of a.entries())o.length===1&&(a[i]="0"+o);return"#"+a.join("")}function Ys(t){const e=(t=t.replace("#","")).length===3,n=t.length===6,s=t.length===8;if(!e&&!n&&!s)throw new Error("unexpected hex "+t);let a=0,i=0,o=0;return e?(a=Zt(t.slice(0,1).repeat(2)),i=Zt(t.slice(1,2).repeat(2)),o=Zt(t.slice(2,3).repeat(2))):n?(a=Zt(t.slice(0,2)),i=Zt(t.slice(2,4)),o=Zt(t.slice(4,6))):s&&(a=Zt(t.slice(2,4)),i=Zt(t.slice(4,6)),o=Zt(t.slice(6,8))),(255<<24|(255&a)<<16|(255&i)<<8|255&o)>>>0}function Zt(t){return parseInt(t,16)}function KE(t,e){e===void 0&&(e=[]);const n=Et.of(t);return{source:t,schemes:{light:nn.light(t),dark:nn.dark(t)},palettes:{primary:n.a1,secondary:n.a2,tertiary:n.a3,neutral:n.n1,neutralVariant:n.n2,error:n.error},customColors:e.map(s=>ZE(t,s))}}function ZE(t,e){let n=e.value;const s=n,a=t;e.blend&&(n=Ia.harmonize(s,a));const i=Et.of(n).a1;return{color:e,value:n,light:{color:i.tone(40),onColor:i.tone(100),colorContainer:i.tone(90),onColorContainer:i.tone(10)},dark:{color:i.tone(80),onColor:i.tone(20),colorContainer:i.tone(30),onColorContainer:i.tone(90)}}}function xu(t){const e=Math.round,n=t.length,s={};return t.slice(0,3).toLowerCase()==="rgb"?(t=t.replace(" ","").split(","),s[0]=parseInt(t[0].slice(t[3].toLowerCase()==="a"?5:4),10),s[1]=parseInt(t[1],10),s[2]=parseInt(t[2],10),s[3]=t[3]?parseFloat(t[3]):-1):(n<6?t=parseInt(String(t[1])+t[1]+t[2]+t[2]+t[3]+t[3]+(n>4?String(t[4])+t[4]:""),16):t=parseInt(t.slice(1),16),s[0]=t>>16&255,s[1]=t>>8&255,s[2]=t&255,s[3]=n===9||n===5?e((t>>24&255)/255*1e4)/1e4:-1),s}function $u(t,e,n){n===void 0&&(n=.5);const s=Math.round;t=t.trim(),e=e.trim(),n=n<0?n*-1:n;const i=xu(t),o=xu(e);return e[0]==="r"?"rgb"+(e[3]==="a"?"a(":"(")+s((o[0]-i[0])*n+i[0])+","+s((o[1]-i[1])*n+i[1])+","+s((o[2]-i[2])*n+i[2])+(i[3]<0&&o[3]<0?"":","+(i[3]>-1&&o[3]>-1?s(((o[3]-i[3])*n+i[3])*1e4)/1e4:o[3]<0?i[3]:o[3]))+")":"#"+(4294967296+(i[3]>-1&&o[3]>-1?s(((o[3]-i[3])*n+i[3])*255):o[3]>-1?s(o[3]*255):i[3]>-1?s(i[3]*255):255)*16777216+s((o[0]-i[0])*n+i[0])*65536+s((o[1]-i[1])*n+i[1])*256+s((o[2]-i[2])*n+i[2])).toString(16).slice(i[3]>-1||o[3]>-1?1:3)}const JE=function(t){t===void 0&&(t="");const e=KE(Ys(`#${t.replace("#","")}`));[.05,.08,.11,.12,.14].forEach((o,r)=>{e.schemes.light.props[`surface${r+1}`]=Ys($u(In(e.schemes.light.props.surface),In(e.schemes.light.props.primary),o)),e.schemes.dark.props[`surface${r+1}`]=Ys($u(In(e.schemes.dark.props.surface),In(e.schemes.dark.props.primary),o))});const n=o=>o.split("").map(r=>r.toUpperCase()===r&&r!=="-"&&r!=="7"?`-${r.toLowerCase()}`:r).join(""),s=o=>["tertiary","shadow","scrim","error","background"].filter(l=>o.toLowerCase().includes(l)).length>0,a={},i={};return Object.keys(e.schemes.light.props).forEach(o=>{s(o)||(a[n(`--f7-md-${o}`)]=In(e.schemes.light.props[o]))}),Object.keys(e.schemes.dark.props).forEach(o=>{s(o)||(i[n(`--f7-md-${o}`)]=In(e.schemes.dark.props[o]))}),{light:a,dark:i}};let Qu=0;function e2(){return Qu+=1,Qu}function Rs(t,e){t===void 0&&(t="xxxxxxxxxx"),e===void 0&&(e="0123456789abcdef");const n=e.length;return t.replace(/x/g,()=>e[Math.floor(Math.random()*n)])}const Cn=` - - - - - -`.trim(),yn=` - - ${[0,1,2,3,4,5,6,7].map(()=>'').join("")} - -`.trim();function Gn(t){let e;return t.split("").map((n,s)=>n.match(/[A-Z]/)&&s!==0&&!e?(e=!0,`:${n.toLowerCase()}`):n.toLowerCase()).join("")}function ft(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function ca(t){return Se().requestAnimationFrame(t)}function t2(t){return Se().cancelAnimationFrame(t)}function _t(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Bt(t){return ca(()=>{ca(t)})}function Ht(){return Date.now()}function ns(t){const e=Se(),n={};let s=t||e.location.href,a,i,o,r;if(typeof s=="string"&&s.length)for(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"",i=s.split("&").filter(l=>l!==""),r=i.length,a=0;a6&&(a=a.split(", ").map(r=>r.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(a==="none"?"":a)):(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=i.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?a=i.m41:s.length===16?a=parseFloat(s[12]):a=parseFloat(s[4])),e==="y"&&(n.WebKitCSSMatrix?a=i.m42:s.length===16?a=parseFloat(s[13]):a=parseFloat(s[5])),a||0}function wn(t,e){if(e===void 0&&(e=[]),typeof t=="string")return t;const n=[],s="&";let a;function i(r){if(e.length>0){let l="";for(let f=0;f{let l;if(Array.isArray(t[r])){l=[];for(let f=0;f0&&n.push(l.join(s))}else t[r]===null||t[r]===""?n.push(`${i(r)}=`):typeof t[r]=="object"?(a=e.slice(),a.push(r),l=wn(t[r],a),l!==""&&n.push(l)):typeof t[r]<"u"&&t[r]!==""?n.push(`${i(r)}=${o(t[r])}`):t[r]===""&&n.push(i(r))}),n.join(s)}function On(t){return typeof t=="object"&&t!==null&&t.constructor&&t.constructor===Object}function n2(){for(var t=arguments.length,e=new Array(t),n=0;na+a+i+i+o+o),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?n.slice(1).map(s=>parseInt(s,16)):null}function sn(t,e,n){return`#${[t,e,n].map(a=>{const i=a.toString(16);return i.length===1?`0${i}`:i}).join("")}`}function ys(t,e,n){t/=255,e/=255,n/=255;const s=Math.max(t,e,n),a=Math.min(t,e,n),i=s-a;let o;i===0?o=0:s===t?o=(e-n)/i%6:s===e?o=(n-t)/i+2:s===n&&(o=(t-e)/i+4);const r=(a+s)/2,l=i===0?0:i/(1-Math.abs(2*r-1));return o<0&&(o=360/60+o),[o*60,l,r]}function Dn(t,e,n){const s=(1-Math.abs(2*n-1))*e,a=t/60,i=s*(1-Math.abs(a%2-1));let o;Number.isNaN(t)||typeof t>"u"?o=[0,0,0]:a<=1?o=[s,i,0]:a<=2?o=[i,s,0]:a<=3?o=[0,s,i]:a<=4?o=[0,i,s]:a<=5?o=[i,0,s]:a<=6&&(o=[s,0,i]);const r=n-s/2;return o.map(l=>Math.max(0,Math.min(255,Math.round(255*(l+r)))))}function rn(t,e,n){const s={h:t,s:0,l:0},a={h:t,s:e,b:n};return s.l=(2-a.s)*a.b/2,s.s=s.l&&s.l<1?a.s*a.b/(s.l<.5?s.l*2:2-s.l*2):s.s,[s.h,s.s,s.l]}function Un(t,e,n){const s={h:t,s:0,b:0},a={h:t,s:e,l:n},i=a.s*(a.l<.5?a.l:1-a.l);return s.b=a.l+i,s.s=a.l>0?2*i/s.b:s.s,[s.h,s.s,s.b]}const qs=t=>{const e=ys(...t),n=[e[0],e[1],Math.max(0,e[2]-.08)],s=[e[0],e[1],Math.max(0,e[2]+.08)],a=sn(...Dn(...n)),i=sn(...Dn(...s));return{shade:a,tint:i}};function ua(){let t,e;for(var n=arguments.length,s=new Array(n),a=0;a{c.includes("surface-")&&(i[`${c}-rgb`]=tn(i[c]))}),Object.keys(o).forEach(c=>{c.includes("surface-")&&(o[`${c}-rgb`]=tn(o[c]))}),{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":r.shade,"--f7-ios-primary-tint":r.tint,"--f7-ios-primary-rgb":e.join(", "),"--f7-md-primary-shade":l.shade,"--f7-md-primary-tint":l.tint,"--f7-md-primary-rgb":tn(i["--f7-md-primary"]).join(", "),...i},dark:{"--f7-md-primary-shade":f.shade,"--f7-md-primary-tint":f.tint,"--f7-md-primary-rgb":tn(o["--f7-md-primary"]).join(", "),...o}}}function It(t,e){Object.keys(e).forEach(n=>{On(e[n])&&Object.keys(e[n]).forEach(s=>{typeof e[n][s]=="function"&&(e[n][s]=e[n][s].bind(t))}),t[n]=e[n]})}function sp(){const t=[];for(var e=arguments.length,n=new Array(e),s=0;s{Array.isArray(a)?t.push(...sp(...a)):t.push(a)}),t}function s2(t){t===void 0&&(t={});const e=o=>{let r="";return Object.keys(o).forEach(l=>{r+=`${l}:${o[l]};`}),r},n=ua(t.primary),s=[":root{",e(n.light),"--swiper-theme-color:var(--f7-theme-color);",...Object.keys(t).map(o=>`--f7-color-${o}: ${t[o]};`),"}",".dark{",e(n.dark),"}",".ios, .ios .dark{",e(n.ios),"}",".md, .md .dark{",e(n.md),"}"].join(""),a={};Object.keys(t).forEach(o=>{const r=t[o];a[o]=ua(r)});let i="";return Object.keys(t).forEach(o=>{const{light:r,dark:l,ios:f,md:c}=a[o],u=` - --f7-ios-primary: #ffffff; - --f7-ios-primary-shade: #ebebeb; - --f7-ios-primary-tint: #ffffff; - --f7-ios-primary-rgb: 255, 255, 255; - --f7-md-primary-shade: #eee; - --f7-md-primary-tint: #fff; - --f7-md-primary-rgb: 255, 255, 255; - --f7-md-primary: #fff; - --f7-md-on-primary: #000; - --f7-md-primary-container: #fff; - --f7-md-on-primary-container: #000; - --f7-md-secondary: #fff; - --f7-md-on-secondary: #000; - --f7-md-secondary-container: #555; - --f7-md-on-secondary-container: #fff; - --f7-md-surface: #fff; - --f7-md-on-surface: #000; - --f7-md-surface-variant: #333; - --f7-md-on-surface-variant: #fff; - --f7-md-outline: #fff; - --f7-md-outline-variant: #fff; - --f7-md-inverse-surface: #000; - --f7-md-inverse-on-surface: #fff; - --f7-md-inverse-primary: #000; - --f7-md-surface-1: #f8f8f8; - --f7-md-surface-2: #f1f1f1; - --f7-md-surface-3: #e7e7e7; - --f7-md-surface-4: #e1e1e1; - --f7-md-surface-5: #d7d7d7; - --f7-md-surface-variant-rgb: 51, 51, 51; - --f7-md-on-surface-variant-rgb: 255, 255, 255; - --f7-md-surface-1-rgb: 248, 248, 248; - --f7-md-surface-2-rgb: 241, 241, 241; - --f7-md-surface-3-rgb: 231, 231, 231; - --f7-md-surface-4-rgb: 225, 225, 225; - --f7-md-surface-5-rgb: 215, 215, 215; - `,d=` - --f7-ios-primary: #000; - --f7-ios-primary-shade: #000; - --f7-ios-primary-tint: #232323; - --f7-ios-primary-rgb: 0, 0, 0; - --f7-md-primary-shade: #000; - --f7-md-primary-tint: #232323; - --f7-md-primary-rgb: 0, 0, 0; - --f7-md-primary: #000; - --f7-md-on-primary: #fff; - --f7-md-primary-container: #000; - --f7-md-on-primary-container: #fff; - --f7-md-secondary: #000; - --f7-md-on-secondary: #fff; - --f7-md-secondary-container: #aaa; - --f7-md-on-secondary-container: #000; - --f7-md-surface: #000; - --f7-md-on-surface: #fff; - --f7-md-surface-variant: #ccc; - --f7-md-on-surface-variant: #000; - --f7-md-outline: #000; - --f7-md-outline-variant: #000; - --f7-md-inverse-surface: #fff; - --f7-md-inverse-on-surface: #000; - --f7-md-inverse-primary: #fff; - --f7-md-surface-1: #070707; - --f7-md-surface-2: #161616; - --f7-md-surface-3: #232323; - --f7-md-surface-4: #303030; - --f7-md-surface-5: #373737; - --f7-md-surface-variant-rgb: 204, 204, 204; - --f7-md-on-surface-variant-rgb: 0, 0, 0; - --f7-md-surface-1-rgb: 7, 7, 7; - --f7-md-surface-2-rgb: 22, 22, 22; - --f7-md-surface-3-rgb: 35, 35, 35; - --f7-md-surface-4-rgb: 48, 48, 48; - --f7-md-surface-5-rgb: 55, 55, 55; - `,m=o==="white"?u:o==="black"?d:e(r),h=o==="white"?u:o==="black"?d:e(l);i+=[`.color-${o} {`,m,"--swiper-theme-color: var(--f7-theme-color);","}",`.color-${o}.dark, .color-${o} .dark, .dark .color-${o} {`,h,"--swiper-theme-color: var(--f7-theme-color);","}",`.ios .color-${o}, .ios.color-${o}, .ios .dark .color-${o}, .ios .dark.color-${o} {`,e(f),"}",`.md .color-${o}, .md.color-${o}, .md .dark .color-${o}, .md .dark.color-${o} {`,e(c),"}",`.text-color-${o} {`,`--f7-theme-color-text-color: ${t[o]};`,"}",`.bg-color-${o} {`,`--f7-theme-color-bg-color: ${t[o]};`,"}",`.border-color-${o} {`,`--f7-theme-color-border-color: ${t[o]};`,"}",`.ripple-color-${o} {`,`--f7-theme-color-ripple-color: rgba(${r["--f7-ios-primary-rgb"]}, 0.3);`,"}"].join("")}),`${s}${i}`}const Ku=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:It,cancelAnimationFrame:t2,colorHexToRgb:tn,colorHsbToHsl:rn,colorHslToHsb:Un,colorHslToRgb:Dn,colorRgbToHex:sn,colorRgbToHsl:ys,colorThemeCSSProperties:ua,colorThemeCSSStyles:s2,deleteProps:ft,eventNameToColonCase:Gn,extend:te,flattenArray:sp,getTranslate:Cs,id:Rs,iosPreloaderContent:yn,isObject:On,mdPreloaderContent:Cn,merge:n2,nextFrame:Bt,nextTick:_t,now:Ht,parseUrlQuery:ns,requestAnimationFrame:ca,serializeObject:wn,uniqueNumber:e2},Symbol.toStringTag,{value:"Module"}));let Ws;function a2(){const t=Se(),e=Le();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 s=!1;try{const a=Object.defineProperty({},"passive",{get(){s=!0}});t.addEventListener("testPassiveListener",null,a)}catch{}return s}(),intersectionObserver:function(){return"IntersectionObserver"in t}()}}function it(){return Ws||(Ws=a2()),Ws}let js;function i2(t){let{userAgent:e}=t===void 0?{}:t;const n=it(),s=Se(),a=s.navigator.platform,i=e||s.navigator.userAgent,o={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:!!s.cordova,electron:!1,capacitor:!!s.Capacitor,nwjs:!1},r=s.screen.width,l=s.screen.height,f=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS|iPhone;\sCPU\sOS)\s([\d_]+)/),m=i.indexOf("MSIE ")>=0||i.indexOf("Trident/")>=0,h=i.indexOf("Edge/")>=0,p=i.indexOf("Gecko/")>=0&&i.indexOf("Firefox/")>=0,b=a==="Win32",g=i.toLowerCase().indexOf("electron")>=0,v=typeof nw<"u"&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.nw<"u";let _=a==="MacIntel";const k=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];!c&&_&&n.touch&&k.indexOf(`${r}x${l}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),_=!1),o.ie=m,o.edge=h,o.firefox=p,f&&(o.os="android",o.osVersion=f[2],o.android=!0,o.androidChrome=i.toLowerCase().indexOf("chrome")>=0),(c||d||u)&&(o.os="ios",o.ios=!0),d&&!u&&(o.osVersion=d[2].replace(/_/g,"."),o.iphone=!0),c&&(o.osVersion=c[2].replace(/_/g,"."),o.ipad=!0),u&&(o.osVersion=u[3]?u[3].replace(/_/g,"."):null,o.ipod=!0),o.ios&&o.osVersion&&i.indexOf("Version/")>=0&&o.osVersion.split(".")[0]==="10"&&(o.osVersion=i.toLowerCase().split("version/")[1].split(" ")[0]),o.webView=!!((d||c||u)&&(i.match(/.*AppleWebKit(?!.*Safari)/i)||s.navigator.standalone))||s.matchMedia&&s.matchMedia("(display-mode: standalone)").matches,o.webview=o.webView,o.standalone=o.webView,o.desktop=!(o.ios||o.android)||g||v,o.desktop&&(o.electron=g,o.nwjs=v,o.macos=_,o.windows=b,o.macos&&(o.os="macos"),o.windows&&(o.os="windows")),o.pixelRatio=s.devicePixelRatio||1;const E="(prefers-color-scheme: dark)",S="(prefers-color-scheme: light)";return o.prefersColorScheme=function(){let T;return s.matchMedia&&s.matchMedia(S).matches&&(T="light"),s.matchMedia&&s.matchMedia(E).matches&&(T="dark"),T},o}function Ke(t,e){return t===void 0&&(t={}),(!js||e)&&(js=i2(t)),js}class r2{constructor(e){e===void 0&&(e=[]);const n=this;n.eventsParents=e,n.eventsListeners={}}on(e,n,s){const a=this;if(typeof n!="function")return a;const i=s?"unshift":"push";return e.split(" ").forEach(o=>{a.eventsListeners[o]||(a.eventsListeners[o]=[]),a.eventsListeners[o][i](n)}),a}once(e,n,s){const a=this;if(typeof n!="function")return a;function i(){a.off(e,i),i.f7proxy&&delete i.f7proxy;for(var o=arguments.length,r=new Array(o),l=0;l{typeof n>"u"?s.eventsListeners[a]=[]:s.eventsListeners[a]&&s.eventsListeners[a].forEach((i,o)=>{(i===n||i.f7proxy&&i.f7proxy===n)&&s.eventsListeners[a].splice(o,1)})}),s}emit(){const e=this;if(!e.eventsListeners)return e;let n,s,a,i;for(var o=arguments.length,r=new Array(o),l=0;ld.replace("local::","")),u=f.filter(d=>d.indexOf("local::")<0);return c.forEach(d=>{if(e.eventsListeners&&e.eventsListeners[d]){const m=[];e.eventsListeners[d].forEach(h=>{m.push(h)}),m.forEach(h=>{h.apply(a,s)})}}),i&&i.length>0&&i.forEach(d=>{d.emit(u,...s)}),e}}const ap=r2;class l2 extends ap{constructor(e,n){e===void 0&&(e={}),n===void 0&&(n=[]),super(n);const s=this;s.params=e,s.params&&s.params.on&&Object.keys(s.params.on).forEach(a=>{s.on(a,s.params.on[a])})}useModuleParams(e,n){if(e.params){const s={};Object.keys(e.params).forEach(a=>{typeof n[a]>"u"||(s[a]=te({},n[a]))}),te(n,e.params),Object.keys(s).forEach(a=>{te(n[a],s[a])})}}useModulesParams(e){const n=this;n.modules&&Object.keys(n.modules).forEach(s=>{const a=n.modules[s];a.params&&te(e,a.params)})}useModule(e,n){e===void 0&&(e=""),n===void 0&&(n={});const s=this;if(!s.modules)return;const a=typeof e=="string"?s.modules[e]:e;a&&(a.instance&&Object.keys(a.instance).forEach(i=>{const o=a.instance[i];typeof o=="function"?s[i]=o.bind(s):s[i]=o}),a.on&&s.on&&Object.keys(a.on).forEach(i=>{s.on(i,a.on[i])}),a.vnode&&(s.vnodeHooks||(s.vnodeHooks={}),Object.keys(a.vnode).forEach(i=>{Object.keys(a.vnode[i]).forEach(o=>{const r=a.vnode[i][o];s.vnodeHooks[o]||(s.vnodeHooks[o]={}),s.vnodeHooks[o][i]||(s.vnodeHooks[o][i]=[]),s.vnodeHooks[o][i].push(r.bind(s))})})),a.create&&a.create.bind(s)(n))}useModules(e){e===void 0&&(e={});const n=this;n.modules&&Object.keys(n.modules).forEach(s=>{const a=e[s]||{};n.useModule(s,a)})}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 s=e.name||`${Object.keys(n.prototype.modules).length}_${Ht()}`;if(n.prototype.modules[s]=e,e.proto&&Object.keys(e.proto).forEach(r=>{n.prototype[r]=e.proto[r]}),e.static&&Object.keys(e.static).forEach(r=>{n[r]=e.static[r]}),e.install){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;on.installModule(o)),n;for(var s=arguments.length,a=new Array(s>1?s-1:0),i=1;i{o[r]=function(l){l===void 0&&(l=e);const f=o.get(l);for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d1&&r){const c=P(r).parents(".page");c.length&&l.each(u=>{const d=P(u);d.parents(c)[0]===c[0]&&(l=d)})}if(l.length>1&&(l=l.eq(l.length-1)),!l.length)return;let f=l[0].f7Modal;if(!f){const c=l.dataset();f=new n(s,{el:l,...c})}return f.open(o)},close(i,o,r){i===void 0&&(i=e);let l=P(i);if(!l.length)return;if(l.length>1){let c;if(r){const u=P(r);u.length&&(c=u.parents(l))}c&&c.length>0?l=c:l=l.eq(l.length-1)}let f=l[0].f7Modal;if(!f){const c=l.dataset();f=new n(s,{el:l,...c})}return f.close(o)}})}const Zu=[];function o2(t){const e=this,n=Se(),s=Le();return new Promise((a,i)=>{const o=e.instance;let r,l,f;if(!t){i(new Error("Framework7: Lazy module must be specified"));return}function c(u){e.use(u),o&&(o.useModuleParams(u,o.params),o.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(!o||o&&!o.params.lazyModulesPath){i(new Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));return}r=`${o.params.lazyModulesPath}/${t}/${t}.lazy.js`}else r=t}else typeof t=="function"?f=t:l=t;if(f){const u=f(e,!1);if(!u){i(new Error("Framework7: Can't find Framework7 component in specified component function"));return}if(e.prototype.modules&&e.prototype.modules[u.name]){a();return}c(u),a()}if(l){const u=l;if(!u){i(new Error("Framework7: Can't find Framework7 component in specified component"));return}if(e.prototype.modules&&e.prototype.modules[u.name]){a();return}c(u),a()}if(r){if(Zu.indexOf(r)>=0){a();return}Zu.push(r);const u=new Promise((m,h)=>{fetch(r).then(p=>p.text()).then(p=>{const g=`f7_component_loader_callback_${Rs()}`,v=s.createElement("script");v.innerHTML=`window.${g} = function (Framework7, Framework7AutoInstallComponent) {return ${p.trim()}}`,P("head").append(v);const _=n[g];delete n[g],P(v).remove();const k=_(e,!1);if(!k){h(new Error(`Framework7: Can't find Framework7 component in ${r} file`));return}if(e.prototype.modules&&e.prototype.modules[k.name]){m();return}c(k),m()}).catch(p=>{h(p)})}),d=new Promise(m=>{fetch(r.replace(".lazy.js",o.rtl?".rtl.css":".css").replace(".js",o.rtl?".rtl.css":".css")).then(h=>h.text()).then(h=>{const p=s.createElement("style");p.innerHTML=h,P("head").append(p),m()}).catch(()=>{m()})});Promise.all([u,d]).then(()=>{a()}).catch(m=>{i(m)})}})}const f2=function(t,e){const n=e||{};for(var s=arguments.length,a=new Array(s>2?s-2:0),i=2;if[0]==="_"?n[f]?f.replace("_",""):"":`${f}="${n[f]}"`).filter(f=>!!f).join(" ");if(["path","img","circle","polygon","line","input"].indexOf(t)>=0)return`<${t} ${r} />`.trim();const l=o.filter(f=>!!f).map(f=>Array.isArray(f)?f.join(""):f).join("");return`<${t} ${r}>${l}`.trim()},R=f2;class jt extends rt{constructor(e){if(e===void 0&&(e={}),super(e),jt.instance&&typeof window<"u")throw new Error("Framework7 is already initialized and can't be initialized more than once");const n=Ke({userAgent:e.userAgent||void 0}),s=it(),a=te({},e),i=this;i.device=n,i.support=s;const o=Se(),r=Le();jt.instance=i;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 i.useModulesParams(l),i.params=te(l,e),te(i,{name:i.params.name,routes:i.params.routes,theme:function(){return i.params.theme==="auto"?n.ios?"ios":"md":i.params.theme}(),passedParams:a,online:o.navigator.onLine,colors:i.params.colors,darkMode:i.params.darkMode}),e.store&&(i.params.store=e.store),i.$el&&i.$el[0]&&(i.$el[0].f7=i),i.useModules(),i.initStore(),i.params.init&&(n.cordova&&i.params.initOnDeviceReady?P(r).on("deviceready",()=>{i.init()}):i.init()),i}setColorTheme(e){if(!e)return;const n=this;n.colors.primary=e,n.setColors()}setColors(){const e=this,n=Le();e.colorsStyleEl||(e.colorsStyleEl=n.createElement("style"),n.head.appendChild(e.colorsStyleEl)),e.colorsStyleEl.textContent=e.utils.colorThemeCSSStyles(e.colors)}mount(e){const n=this,s=Se(),a=Le(),i=P(e||n.params.el).eq(0);n.$el=i,n.$el&&n.$el[0]&&(n.el=n.$el[0],n.el.f7=n,n.rtl=i.css("direction")==="rtl");const o="(prefers-color-scheme: dark)",r="(prefers-color-scheme: light)";n.mq={},s.matchMedia&&(n.mq.dark=s.matchMedia(o),n.mq.light=s.matchMedia(r)),n.colorSchemeListener=function(f){let{matches:c,media:u}=f;if(!c)return;const d=a.querySelector("html");u===o?(d.classList.add("dark"),n.darkMode=!0,n.emit("darkModeChange",!0)):u===r&&(d.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=Se(),n=Le();if(!e.matchMedia)return;const s=this,a=n.querySelector("html");s.mq.dark&&s.mq.light&&(s.mq.dark.addListener(s.colorSchemeListener),s.mq.light.addListener(s.colorSchemeListener)),s.mq.dark&&s.mq.dark.matches?(a.classList.add("dark"),s.darkMode=!0,s.emit("darkModeChange",!0)):s.mq.light&&s.mq.light.matches&&(a.classList.remove("dark"),s.darkMode=!1,s.emit("darkModeChange",!1))}disableAutoDarkMode(){if(!Se().matchMedia)return;const n=this;n.mq.dark&&n.mq.dark.removeListener(n.colorSchemeListener),n.mq.light&&n.mq.light.removeListener(n.colorSchemeListener)}setDarkMode(e){const n=this;e==="auto"?n.enableAutoDarkMode():(n.disableAutoDarkMode(),P("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]}},s=>{n.$el=P(s),n.$el[0].f7=n,n.$elComponent=s.f7Component,n.el=n.$el[0],e&&e()},()=>{})}init(e){const n=this;n.setColors(),n.mount(e);const s=()=>{if(n.initialized)return;n.$el.addClass("framework7-initializing"),n.rtl&&P("html").attr("dir","rtl"),typeof n.params.darkMode>"u"?n.darkMode=P("html").hasClass("dark"):n.setDarkMode(n.params.darkMode);const a=Se();a.addEventListener("offline",()=>{n.online=!1,n.emit("offline"),n.emit("connection",!1)}),a.addEventListener("online",()=>{n.online=!0,n.emit("online"),n.emit("connection",!0)}),n.$el.addClass("framework7-root"),P("html").removeClass("ios md").addClass(n.theme),n.params.iosTranslucentBars&&n.theme==="ios"&&P("html").addClass("ios-translucent-bars"),n.params.iosTranslucentModals&&n.theme==="ios"&&P("html").addClass("ios-translucent-modals"),Bt(()=>{n.$el.removeClass("framework7-initializing")}),n.initialized=!0,n.emit("init")};return n.params.component||n.params.componentUrl?n.initAppComponent(()=>{s()}):s(),n}loadModule(){return jt.loadModule(...arguments)}loadModules(){return jt.loadModules(...arguments)}getVnodeHooks(e,n){const s=this;return!s.vnodeHooks||!s.vnodeHooks[e]?[]:s.vnodeHooks[e][n]||[]}get $(){return P}static get Dom7(){return P}static get $(){return P}static get device(){return Ke()}static get support(){return it()}static get Class(){return rt}static get Events(){return ap}}jt.$jsx=R;jt.ModalMethods=on;jt.ConstructorMethods=ct;jt.loadModule=o2;jt.loadModules=function(e){return Promise.all(e.map(n=>jt.loadModule(n)))};const ip=jt,c2={name:"device",static:{getDevice:Ke},on:{init(){const t=Le(),e=Ke(),n=[],s=t.querySelector("html"),a=t.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');s&&(e.standalone&&e.ios&&a&&a.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(i=>{s.classList.add(i)}))}}},u2={name:"support",static:{getSupport:it}},d2={name:"utils",proto:{utils:Ku},static:{utils:Ku}},p2={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,s,a,i]=[t.el.offsetWidth,t.el.offsetHeight,e.left,e.top];return t.width=n,t.height=s,t.left=a,t.top=i,{width:n,height:s,left:a,top:i}}},on:{init(){const t=this,e=Se();t.getSize(),e.addEventListener("resize",()=>{t.emit("resize")},!1),e.addEventListener("orientationchange",()=>{t.emit("orientationchange")})},orientationchange(){const t=Le();Ke().ipad&&(t.body.scrollLeft=0,setTimeout(()=>{t.body.scrollLeft=0},0))},resize(){this.getSize()}}};function m2(){const t=this,e=Ke(),n=it(),s=Se(),a=Le(),i=t.params.touch,o=i[`${t.theme}TouchRipple`];e.ios&&e.webView&&s.addEventListener("touchstart",()=>{});let r,l,f,c,u,d,m,h,p,b,g,v;function _(ee){const Fe=P(ee),Ue=Fe.parents(i.activeStateElements);if(Fe.closest(".no-active-state").length)return null;let qe;if(Fe.is(i.activeStateElements)&&(qe=Fe),Ue.length>0&&(qe=qe?qe.add(Ue):Ue),qe&&qe.length>1){const Oe=[];let et;for(let Ie=0;Ie0}function E(){h&&h.addClass("active-state")}function S(){h&&(h.removeClass("active-state"),h=null)}function I(ee){const Fe=i.touchRippleElements,Ue=P(ee);if(Ue.is(Fe))return Ue.hasClass("no-ripple")?!1:Ue;if(Ue.parents(Fe).length>0){const qe=Ue.parents(Fe).eq(0);return qe.hasClass("no-ripple")?!1:qe}return!1}function T(ee,Fe,Ue){ee&&(b=t.touchRipple.create(t,ee,Fe,Ue))}function A(){b&&(b.remove(),b=void 0,g=void 0)}function y(ee){if(g=I(ee),!g||g.length===0){g=void 0;return}k(g)?(clearTimeout(v),v=setTimeout(()=>{A(),T(g,r,l)},80)):(A(),T(g,r,l))}function w(){clearTimeout(v),A()}function D(){!b&&g&&!c?(clearTimeout(v),T(g,r,l),setTimeout(A,0)):A()}function O(ee){const Fe=_(ee.target);Fe&&(Fe.addClass("active-state"),"which"in ee&&ee.which===3&&setTimeout(()=>{P(".active-state").removeClass("active-state")},0)),o&&(r=ee.pageX,l=ee.pageY,y(ee.target,ee.pageX,ee.pageY))}function L(){i.activeStateOnMouseMove||P(".active-state").removeClass("active-state"),o&&w()}function j(){P(".active-state").removeClass("active-state"),o&&D()}function W(){f=null,clearTimeout(p),clearTimeout(d),i.activeState&&S(),o&&D()}let Y,B=!1,q=null;const X=".dialog-button, .actions-button";let H=!1,G=null;function ce(ee){return ee.isTrusted?(c=!1,u=!1,m=!1,Y=void 0,ee.targetTouches.length>1?(h&&S(),!0):(ee.touches.length>1&&h&&S(),i.tapHold&&(d&&clearTimeout(d),d=setTimeout(()=>{ee&&ee.touches&&ee.touches.length>1||(u=!0,ee.preventDefault(),m=!0,P(ee.target).trigger("taphold",ee),t.emit("taphold",ee))},i.tapHoldDelay)),f=ee.target,r=ee.targetTouches[0].pageX,l=ee.targetTouches[0].pageY,B=ee.target.closest(".segmented-strong .button-active, .segmented-strong .tab-link-active"),H=t.theme==="ios"&&ee.target.closest(X),B&&(q=B.closest(".segmented-strong")),i.activeState&&(h=_(f),h&&!k(h)?E():h&&(p=setTimeout(E,80))),o&&y(f),!0)):!0}function ye(ee){if(!ee.isTrusted)return;let Fe,Ue,qe=!0;ee.type==="touchmove"&&(Fe=ee.targetTouches[0],Ue=i.touchClicksDistanceThreshold);const Oe=ee.targetTouches[0].pageX,et=ee.targetTouches[0].pageY;if(typeof Y>"u"&&(Y=!!(Y||Math.abs(et-l)>Math.abs(Oe-r))),(H||!Y&&B&&q)&&ee.cancelable&&ee.preventDefault(),!Y&&B&&q){const xe=a.elementFromPoint(ee.targetTouches[0].clientX,ee.targetTouches[0].clientY).closest(".segmented-strong .button:not(.button-active):not(.tab-link-active)");xe&&q.contains(xe)&&(P(xe).trigger("click","f7Segmented"),f=xe)}if(Ue&&Fe){const Ie=Fe.pageX,xe=Fe.pageY;(Math.abs(Ie-r)>Ue||Math.abs(xe-l)>Ue)&&(c=!0)}else c=!0;c&&(m=!0,H&&(G=a.elementFromPoint(ee.targetTouches[0].clientX,ee.targetTouches[0].clientY).closest(X),G&&h&&h[0]===G?qe=!1:G&&setTimeout(()=>{h=_(G),E()})),i.tapHold&&clearTimeout(d),i.activeState&&qe&&(clearTimeout(p),S()),o&&w())}function ne(ee){return ee.isTrusted?(Y=void 0,B=!1,q=null,H=!1,clearTimeout(p),clearTimeout(d),G&&(P(G).trigger("click","f7TouchMoveActivable"),G=null),a.activeElement===ee.target?(i.activeState&&S(),o&&D(),!0):(i.activeState&&(E(),setTimeout(S,0)),o&&D(),i.tapHoldPreventClicks&&u||m?(ee.cancelable&&ee.preventDefault(),m=!0,!1):!0)):!0}function me(ee){const Fe=ee&&ee.detail&&ee.detail==="f7Overswipe",Ue=ee&&ee.detail&&ee.detail==="f7Segmented",qe=ee&&ee.detail&&ee.detail==="f7TouchMoveActivable";let Oe=m;return f&&ee.target!==f?Fe||Ue||qe?Oe=!1:Oe=!0:qe&&(Oe=!1),i.tapHold&&i.tapHoldPreventClicks&&u&&(Oe=!0),Oe&&(ee.stopImmediatePropagation(),ee.stopPropagation(),ee.preventDefault()),i.tapHold&&(d=setTimeout(()=>{u=!1},e.ios||e.androidChrome?100:400)),m=!1,f=null,!Oe}function K(ee,Fe){t.emit({events:ee,data:[Fe]})}function pe(ee){K("click",ee)}function ke(ee){K("touchstart touchstart:active",ee)}function he(ee){K("touchmove touchmove:active",ee)}function re(ee){K("touchend touchend:active",ee)}function Ce(ee){K("touchstart:passive",ee)}function Pe(ee){K("touchmove:passive",ee)}function Ve(ee){K("touchend:passive",ee)}const Me=n.passiveListener?{passive:!0}:!1,He=n.passiveListener?{passive:!0,capture:!0}:!0,ze=n.passiveListener?{passive:!1}:!1,fe=n.passiveListener?{passive:!1,capture:!0}:!0;a.addEventListener("click",pe,!0),n.passiveListener?(a.addEventListener(t.touchEvents.start,ke,fe),a.addEventListener(t.touchEvents.move,he,ze),a.addEventListener(t.touchEvents.end,re,ze),a.addEventListener(t.touchEvents.start,Ce,He),a.addEventListener(t.touchEvents.move,Pe,Me),a.addEventListener(t.touchEvents.end,Ve,Me)):(a.addEventListener(t.touchEvents.start,ee=>{ke(ee),Ce(ee)},!0),a.addEventListener(t.touchEvents.move,ee=>{he(ee),Pe(ee)},!1),a.addEventListener(t.touchEvents.end,ee=>{re(ee),Ve(ee)},!1)),n.touch?(t.on("click",me),t.on("touchstart",ce),t.on("touchmove",ye),t.on("touchend",ne),a.addEventListener("touchcancel",W,{passive:!0})):i.activeState&&(t.on("touchstart",O),t.on("touchmove",L),t.on("touchend",j),a.addEventListener("pointercancel",j,{passive:!0})),a.addEventListener("contextmenu",ee=>{i.disableContextMenu&&(e.ios||e.android||e.cordova||s.Capacitor&&s.Capacitor.isNative)&&ee.preventDefault(),o&&(h&&S(),D())})}const h2={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=it();te(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:m2}};function g2(t){for(var e=[],n=0;n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){a+=t[i++];continue}break}if(!a)throw new TypeError("Missing parameter name at ".concat(n));e.push({type:"NAME",index:n,value:a}),n=i;continue}if(s==="("){var r=1,l="",i=n+1;if(t[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i)?(?!\?)/g,s=0,a=n.exec(t.source);a;)e.push({name:a[1]||s++,prefix:"",suffix:"",modifier:"",pattern:""}),a=n.exec(t.source);return t}function k2(t,e,n){var s=t.map(function(a){return lp(a,e,n).source});return new RegExp("(?:".concat(s.join("|"),")"),Aa(n))}function E2(t,e,n){return C2(rp(t,n),e,n)}function C2(t,e,n){n===void 0&&(n={});for(var s=n.strict,a=s===void 0?!1:s,i=n.start,o=i===void 0?!0:i,r=n.end,l=r===void 0?!0:r,f=n.encode,c=f===void 0?function(y){return y}:f,u=n.delimiter,d=u===void 0?"/#?":u,m=n.endsWith,h=m===void 0?"":m,p="[".concat(An(h),"]|$"),b="[".concat(An(d),"]"),g=o?"^":"",v=0,_=t;v<_.length;v++){var k=_[v];if(typeof k=="string")g+=An(c(k));else{var E=An(c(k.prefix)),S=An(c(k.suffix));if(k.pattern)if(e&&e.push(k),E||S)if(k.modifier==="+"||k.modifier==="*"){var I=k.modifier==="*"?"?":"";g+="(?:".concat(E,"((?:").concat(k.pattern,")(?:").concat(S).concat(E,"(?:").concat(k.pattern,"))*)").concat(S,")").concat(I)}else g+="(?:".concat(E,"(").concat(k.pattern,")").concat(S,")").concat(k.modifier);else k.modifier==="+"||k.modifier==="*"?g+="((?:".concat(k.pattern,")").concat(k.modifier,")"):g+="(".concat(k.pattern,")").concat(k.modifier);else g+="(?:".concat(E).concat(S,")").concat(k.modifier)}}if(l)a||(g+="".concat(b,"?")),g+=n.endsWith?"(?=".concat(p,")"):"$";else{var T=t[t.length-1],A=typeof T=="string"?b.indexOf(T[T.length-1])>-1:T===void 0;a||(g+="(?:".concat(b,"(?=").concat(p,"))?")),A||(g+="(?=".concat(b,"|").concat(p,")"))}return new RegExp(g,Aa(n))}function lp(t,e,n){return t instanceof RegExp?_2(t,e):Array.isArray(t)?k2(t,e,n):E2(t,e,n)}const Qe={queue:[],clearQueue(){if(Qe.queue.length===0)return;Qe.queue.shift()()},routerQueue:[],clearRouterQueue(){if(Qe.routerQueue.length===0)return;const t=Qe.routerQueue.pop(),{router:e,stateUrl:n,action:s}=t;let a=e.params.animate;e.params.browserHistoryAnimate===!1&&(a=!1),s==="back"&&e.back({animate:a,browserHistory:!1}),s==="load"&&e.navigate(n,{animate:a,browserHistory:!1})},handle(t){if(Qe.blockPopstate)return;const e=this;let n=t.state;Qe.previousState=Qe.state,Qe.state=n,Qe.allowChange=!0,Qe.clearQueue(),n=Qe.state,n||(n={}),e.views.forEach(s=>{const a=s.router;let i=n[s.id];if(!i&&s.params.browserHistory&&(i={url:s.router.history[0]}),!i)return;const o=i.url||void 0;let r=a.params.animate;a.params.browserHistoryAnimate===!1&&(r=!1),o!==a.url&&(a.history.indexOf(o)>=0?a.allowPageChange?a.back({animate:r,browserHistory:!1}):Qe.routerQueue.push({action:"back",router:a}):a.allowPageChange?a.navigate(o,{animate:r,browserHistory:!1}):Qe.routerQueue.unshift({action:"load",stateUrl:o,router:a}))})},initViewState(t,e){const n=Se(),s=te({},Qe.state||{},{[t]:e});Qe.state=s,n.history.replaceState(s,"")},push(t,e,n){const s=Se(),a=Le();if(n.substr(-3)==="#!/"&&(n=n.replace("#!/",""),n===""&&(n=a.location.href,n.includes("#!/")&&(n=a.location.href.split("#!/")[0]))),!Qe.allowChange){Qe.queue.push(()=>{Qe.push(t,e,n)});return}Qe.previousState=Qe.state;const i=te({},Qe.previousState||{},{[t]:e});Qe.state=i,s.history.pushState(i,"",n)},replace(t,e,n){const s=Se();if(n.substr(-3)==="#!/"&&(n=n.replace("#!/","")),!Qe.allowChange){Qe.queue.push(()=>{Qe.replace(t,e,n)});return}Qe.previousState=Qe.state;const a=te({},Qe.previousState||{},{[t]:e});Qe.state=a,s.history.replaceState(a,"",n)},go(t){const e=Se();Qe.allowChange=!1,e.history.go(t)},back(){const t=Se();Qe.allowChange=!1,t.history.back()},allowChange:!0,previousState:{},state:{},blockPopstate:!0,init(t){const e=Se(),n=Le();Qe.state=e.history.state,P(e).on("load",()=>{setTimeout(()=>{Qe.blockPopstate=!1},0)}),n.readyState&&n.readyState==="complete"&&(Qe.blockPopstate=!1),P(e).on("popstate",Qe.handle.bind(t))}},lt=Qe;function y2(t){const e=t,{$el:n,$navbarsEl:s,app:a,params:i}=e,o=it(),r=Ke();let l=!1,f=!1;const c={};let u,d=[],m=[],h,p,b=!0,g,v=[],_=[],k,E,S,I;const T=i[`${a.theme}SwipeBackAnimateShadow`],A=i[`${a.theme}SwipeBackAnimateOpacity`],y=i[`${a.theme}SwipeBackActiveArea`],w=i[`${a.theme}SwipeBackThreshold`],D=a.rtl?"right center":"left center",O=a.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 L(){const H=[],G=a.rtl?-1:1,ce=v.hasClass("navbar-transparent")&&!v.hasClass("navbar-large")&&!v.hasClass("navbar-transparent-visible"),ye=v.hasClass("navbar-large"),ne=v.hasClass("navbar-large-collapsed"),me=v.hasClass("navbar-large-transparent")||v.hasClass("navbar-large")&&v.hasClass("navbar-transparent"),K=_.hasClass("navbar-transparent")&&!_.hasClass("navbar-large")&&!_.hasClass("navbar-transparent-visible"),pe=_.hasClass("navbar-large"),ke=_.hasClass("navbar-large-collapsed"),he=_.hasClass("navbar-large-transparent")||_.hasClass("navbar-large")&&_.hasClass("navbar-transparent"),re=ye&&!ne,Ce=pe&&!ke,Pe=v.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg"),Ve=_.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg");let Me,He;return i.iosAnimateNavbarBackIcon&&(v.hasClass("sliding")||v.find(".navbar-inner.sliding").length?Me=v.find(".left").find(".back .icon + span").eq(0):Me=v.find(".left.sliding").find(".back .icon + span").eq(0),_.hasClass("sliding")||_.find(".navbar-inner.sliding").length?He=_.find(".left").find(".back .icon + span").eq(0):He=_.find(".left.sliding").find(".back .icon + span").eq(0),Me.length&&Ve.each(ze=>{P(ze).hasClass("title")&&(ze.f7NavbarLeftOffset+=Me.prev(".icon")[0].offsetWidth)})),Pe.each(ze=>{const fe=P(ze),ee=fe.hasClass("subnavbar"),Fe=fe.hasClass("left"),Ue=fe.hasClass("title"),qe=fe.hasClass("navbar-bg");if((Ue||qe)&&ce||!re&&fe.hasClass(".title-large"))return;const Oe={el:ze};if(re){if(Ue)return;if(fe.hasClass("title-large")){H.indexOf(Oe)<0&&H.push(Oe),Oe.overflow="visible",fe.find(".title-large-text").each(Ie=>{H.push({el:Ie,transform:xe=>`translateX(${xe*100*G}%)`})});return}}if(Ce&&(re||fe.hasClass("title-large")&&(H.indexOf(Oe)<0&&H.push(Oe),Oe.opacity=0),Fe)){H.indexOf(Oe)<0&&H.push(Oe),Oe.opacity=Ie=>1-Ie**.33,fe.find(".back span").each(Ie=>{H.push({el:Ie,"transform-origin":D,transform:xe=>`translateX(calc(${xe} * (var(--f7-navbarTitleLargeOffset) - var(--f7-navbarLeftTextOffset)))) translateY(calc(${xe} * (var(--f7-navbar-large-title-height) - var(--f7-navbar-large-title-padding-vertical) / 2))) scale(${1+1*xe})`})});return}if(qe){H.indexOf(Oe)<0&&H.push(Oe),!re&&!Ce&&(ne?(me&&(Oe.className="ios-swipeback-navbar-bg-large"),Oe.transform=Ie=>`translateX(${100*Ie*G}%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))`):Oe.transform=Ie=>`translateX(${100*Ie*G}%)`),!re&&Ce&&(Oe.className="ios-swipeback-navbar-bg-large",Oe.transform=Ie=>`translateX(${100*Ie*G}%) translateY(calc(-1 * ${1-Ie} * var(--f7-navbar-large-title-height)))`),re&&Ce&&(Oe.transform=Ie=>`translateX(${100*Ie*G}%)`),re&&!Ce&&(Oe.transform=Ie=>`translateX(${100*Ie*G}%) translateY(calc(-${Ie} * var(--f7-navbar-large-title-height)))`);return}if(fe.hasClass("title-large"))return;const et=fe.hasClass("sliding")||fe.parents(".navbar-inner.sliding").length;if(H.indexOf(Oe)<0&&H.push(Oe),(!ee||ee&&!et)&&(Oe.opacity=Ie=>1-Ie**.33),et){let Ie=Oe;if(Fe&&Me.length&&i.iosAnimateNavbarBackIcon){const xe={el:Me[0]};Ie=xe,H.push(xe)}Ie.transform=xe=>{let Te=xe*Ie.el.f7NavbarRightOffset;return r.pixelRatio===1&&(Te=Math.round(Te)),ee&&ye?`translate3d(${Te}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`:`translate3d(${Te}px,0,0)`}}}),Ve.each(ze=>{const fe=P(ze),ee=fe.hasClass("subnavbar"),Fe=fe.hasClass("left"),Ue=fe.hasClass("title"),qe=fe.hasClass("navbar-bg");if((Ue||qe)&&K)return;const Oe={el:ze};if(Ce){if(Ue)return;if(H.indexOf(Oe)<0&&H.push(Oe),fe.hasClass("title-large")){Oe.opacity=1,Oe.overflow="visible",fe.find(".title-large-text").each(Ie=>{H.push({el:Ie,"transform-origin":O,opacity:xe=>xe**3,transform:xe=>`translateX(calc(${1-xe} * (var(--f7-navbarLeftTextOffset) - var(--f7-navbarTitleLargeOffset)))) translateY(calc(${xe-1} * var(--f7-navbar-large-title-height) + ${1-xe} * var(--f7-navbar-large-title-padding-vertical))) scale(${.5+xe*.5})`})});return}}if(qe){H.indexOf(Oe)<0&&H.push(Oe),!re&&!Ce&&(ke?(he&&(Oe.className="ios-swipeback-navbar-bg-large"),Oe.transform=Ie=>`translateX(${(-100+100*Ie)*G}%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))`):Oe.transform=Ie=>`translateX(${(-100+100*Ie)*G}%)`),!re&&Ce&&(Oe.transform=Ie=>`translateX(${(-100+100*Ie)*G}%) translateY(calc(-1 * ${1-Ie} * var(--f7-navbar-large-title-height)))`),re&&!Ce&&(Oe.className="ios-swipeback-navbar-bg-large",Oe.transform=Ie=>`translateX(${(-100+100*Ie)*G}%) translateY(calc(-${Ie} * var(--f7-navbar-large-title-height)))`),re&&Ce&&(Oe.transform=Ie=>`translateX(${(-100+100*Ie)*G}%)`);return}if(fe.hasClass("title-large"))return;const et=fe.hasClass("sliding")||_.children(".navbar-inner.sliding").length;if(H.indexOf(Oe)<0&&H.push(Oe),(!ee||ee&&!et)&&(Oe.opacity=Ie=>Ie**3),et){let Ie=Oe;if(Fe&&He.length&&i.iosAnimateNavbarBackIcon){const xe={el:He[0]};Ie=xe,H.push(xe)}Ie.transform=xe=>{let Te=Ie.el.f7NavbarLeftOffset*(1-xe);return r.pixelRatio===1&&(Te=Math.round(Te)),ee&&pe?`translate3d(${Te}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`:`translate3d(${Te}px,0,0)`}}}),H}function j(H){let{progress:G,reset:ce,transition:ye,reflow:ne}=H===void 0?{}:H;const me=["overflow","transform","transform-origin","opacity"];if(ye===!0||ye===!1)for(let K=0;K0||P(H.target).closest(".page-master, .page-master-detail").length>0&&i.masterDetailBreakpoint>0&&a.width>=i.masterDetailBreakpoint||(f=!1,l=!0,u=void 0,c.x=H.type==="touchstart"?H.targetTouches[0].pageX:H.pageX,c.y=H.type==="touchstart"?H.targetTouches[0].pageY:H.pageY,g=Ht(),k=e.dynamicNavbar)}function Y(H){if(!H.isTrusted||!l)return;const G=H.type==="touchmove"?H.targetTouches[0].pageX:H.pageX,ce=H.type==="touchmove"?H.targetTouches[0].pageY:H.pageY;if(typeof u>"u"&&(u=!!(u||Math.abs(ce-c.y)>Math.abs(G-c.x))||Gc.x&&a.rtl),u||H.f7PreventSwipeBack||a.preventSwipeBack){l=!1;return}if(!f){let ke=!1;const he=P(H.target),re=he.closest(".swipeout");re.length>0&&(!a.rtl&&re.find(".swipeout-actions-left").length>0&&(ke=!0),a.rtl&&re.find(".swipeout-actions-right").length>0&&(ke=!0)),d=he.closest(".page"),(d.hasClass("no-swipeback")||he.closest(".no-swipeback, .card-opened").length>0)&&(ke=!0),m=n.find(".page-previous"),m.length>1&&(m=m.eq(m.length-1));let Ce=c.x-n.offset().left>y;if(h=n.width(),a.rtl?Ce=c.xy,Ce&&(ke=!0),(m.length===0||d.length===0)&&(ke=!0),ke){l=!1;return}T&&(E=d.find(".page-shadow-effect"),E.length===0&&(E=P('
'),d.append(E))),A&&(S=m.find(".page-opacity-effect"),S.length===0&&(S=P('
'),m.append(S))),k&&(v=s.find(".navbar-current"),_=s.find(".navbar-previous"),_.length>1&&(_=_.eq(_.length-1)),I=L()),P(".sheet.modal-in").length>0&&a.sheet&&a.sheet.close(P(".sheet.modal-in"))}H.f7PreventSwipePanel=!0,f=!0,a.preventSwipePanelBySwipeBack=!0,H.preventDefault();const ye=a.rtl?-1:1;p=(G-c.x-w)*ye,p<0&&(p=0);const ne=Math.min(Math.max(p/h,0),1),me={percentage:ne,progress:ne,currentPageEl:d[0],previousPageEl:m[0],currentNavbarEl:v[0],previousNavbarEl:_[0]};n.trigger("swipeback:move",me),e.emit("swipebackMove",me);let K=p*ye,pe=(p/5-h/5)*ye;a.rtl?(K=Math.max(K,-h),pe=Math.max(pe,0)):(K=Math.min(K,h),pe=Math.min(pe,0)),r.pixelRatio===1&&(K=Math.round(K),pe=Math.round(pe)),e.swipeBackActive=!0,P([d[0],m[0]]).addClass("page-swipeback-active"),d.transform(`translate3d(${K}px,0,0)`),T&&(E[0].style.opacity=1-1*ne),a.theme==="ios"&&m.transform(`translate3d(${pe}px,0,0)`),A&&(S[0].style.opacity=1-1*ne),k&&j({progress:ne})}function B(H){if(!H.isTrusted)return;if(a.preventSwipePanelBySwipeBack=!1,!l||!f){l=!1,f=!1;return}l=!1,f=!1,e.swipeBackActive=!1;const G=P([d[0],m[0]]);if(G.removeClass("page-swipeback-active"),p===0){G.transform(""),E&&E.length>0&&E.remove(),S&&S.length>0&&S.remove(),k&&j({reset:!0});return}const ce=Ht()-g;let ye=!1;(ce<300&&p>10||ce>=300&&p>h/2)&&(d.removeClass("page-current").addClass(`page-next${a.theme!=="ios"?" page-next-on-right":""}`),m.removeClass("page-previous").addClass("page-current").removeAttr("aria-hidden"),E&&(E[0].style.opacity=""),S&&(S[0].style.opacity=""),k&&(e.setNavbarPosition(v,"next"),e.setNavbarPosition(_,"current",!1)),ye=!0),G.addClass("page-transitioning page-transitioning-swipeback"),r.ios&&(d[0]._clientLeft=d[0].clientLeft),G.transform(""),k&&j({progress:ye?1:0,transition:!0,reflow:!!r.ios}),b=!1,e.allowPageChange=!1;const ne={currentPageEl:d[0],previousPageEl:m[0],currentNavbarEl:v[0],previousNavbarEl:_[0]};ye?(e.currentRoute=m[0].f7Page.route,e.currentPage=m[0],e.pageCallback("beforeOut",d,v,"current","next",{route:d[0].f7Page.route,swipeBack:!0}),e.pageCallback("beforeIn",m,_,"previous","current",{route:m[0].f7Page.route,swipeBack:!0},d[0]),n.trigger("swipeback:beforechange",ne),e.emit("swipebackBeforeChange",ne)):(n.trigger("swipeback:beforereset",ne),e.emit("swipebackBeforeReset",ne)),d.transitionEnd(()=>{G.removeClass("page-transitioning page-transitioning-swipeback"),k&&j({reset:!0,transition:!1}),b=!0,e.allowPageChange=!0,ye?(e.history.length===1&&e.history.unshift(e.url),e.history.pop(),e.saveHistory(),i.browserHistory&<.back(),e.pageCallback("afterOut",d,v,"current","next",{route:d[0].f7Page.route,swipeBack:!0}),e.pageCallback("afterIn",m,_,"previous","current",{route:m[0].f7Page.route,swipeBack:!0}),e.pageCallback("beforeRemove",d,v,"next",{swipeBack:!0}),e.removePage(d),k&&e.removeNavbar(v),n.trigger("swipeback:afterchange",ne),e.emit("swipebackAfterChange",ne),e.emit("routeChanged",e.currentRoute,e.previousRoute,e),i.preloadPreviousPage&&e.back(e.history[e.history.length-2],{preload:!0})):(n.trigger("swipeback:afterreset",ne),e.emit("swipebackAfterReset",ne)),E&&E.length>0&&E.remove(),S&&S.length>0&&S.remove()})}function q(){const H=a.touchEvents.start==="touchstart"&&o.passiveListener?{passive:!0,capture:!1}:!1;n.on(a.touchEvents.start,W,H),a.on("touchmove:active",Y),a.on("touchend:passive",B)}function X(){const H=a.touchEvents.start==="touchstart"&&o.passiveListener?{passive:!0,capture:!1}:!1;n.off(a.touchEvents.start,W,H),a.off("touchmove:active",Y),a.off("touchend:passive",B)}q(),e.on("routerDestroy",X)}function op(t,e,n){const s=this,a=e.route.redirect,i=t==="forward"?"navigate":"back";n.initial&&s.params.browserHistory&&(n.replaceState=!0,n.history=!0);function o(l,f){f===void 0&&(f={}),s.allowPageChange=!0,s[i](l,te({},n,f))}function r(){s.allowPageChange=!0}if(typeof a=="function"){s.allowPageChange=!1;const l=a.call(s,{router:s,to:e,resolve:o,reject:r,direction:t,app:s.app});return l&&typeof l=="string"?(s.allowPageChange=!0,s[i](l,n)):s}return s[i](a,n)}function Ju(t,e,n,s,a,i,o,r){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 f(){if(l.length===0){i();return}l.shift().call(t,{router:t,to:s,from:a,resolve(){f()},reject(){o()},direction:r,app:t.app})}f()}function da(t,e,n,s,a){const i=this;function o(){t&&t.route&&(i.params.routesBeforeEnter||t.route.beforeEnter)?(i.allowPageChange=!1,Ju(i,i.params.routesBeforeEnter,t.route.beforeEnter,t,e,()=>{i.allowPageChange=!0,n()},()=>{s()},a)):n()}function r(){e&&e.route&&(i.params.routesBeforeLeave||e.route.beforeLeave)?(i.allowPageChange=!1,Ju(i,i.params.routesBeforeLeave,e.route.beforeLeave,t,e,()=>{i.allowPageChange=!0,o()},()=>{s()},a)):o()}r()}function Vn(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 Hs(t,e,n,s){function a(o){o.then(r=>{n({component:r.default||r._default||r})}).catch(r=>{throw s(),new Error(r)})}if(e instanceof Promise){a(e);return}const i=e.call(t);i instanceof Promise?a(i):n({component:i})}function w2(t){t===void 0&&(t={});const e=this;return Vn(e,"refreshPage"),e.navigate(e.currentRoute.url,{ignoreCache:!0,reloadCurrent:!0,props:t})}function Wn(t,e,n){n===void 0&&(n={});const s=Le(),a=P(e),i=t.app,o=t.view,r=te(!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,f=l&&r.route&&r.route.route&&(r.route.route.master===!0||typeof r.route.route.master=="function"&&r.route.route.master(i,t));let c,u,d=0,m=t.currentRoute.modal,h;if(m||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(B=>{t.currentRoute&&t.currentRoute.route&&t.currentRoute.route[B]&&(m=!0,h=B)}),m){const B=t.currentRoute.modal||t.currentRoute.route.modalInstance||i[h].get(),q=t.history[t.history.length-2];let X=t.findMatchingRoute(q);!X&&q&&(X={url:q,path:q.split("?")[0],query:ns(q),route:{path:q.split("?")[0],url:q}}),t.modalRemove(B)}const p=t.dynamicNavbar,b=t.$el,g=a,v=r.reloadPrevious||r.reloadCurrent||r.reloadAll;let _,k,E,S;if(t.allowPageChange=!1,g.length===0)return t.allowPageChange=!0,t;g.length&&t.removeThemeElements(g),p&&(E=g.children(".navbar"),k=t.$navbarsEl,E.length===0&&g[0]&&g[0].f7Page&&(E=g[0].f7Page.$navbarEl)),r.route&&r.route.route&&r.route.route.keepAlive&&!r.route.route.keepAliveData&&(r.route.route.keepAliveData={pageEl:a[0]});const I=b.children(".page").filter(B=>B!==g[0]);let T;if(p&&(T=k.children(".navbar").filter(B=>B!==E[0])),r.reloadPrevious&&I.length<2)return t.allowPageChange=!0,t;let A,y,w;if(l&&!r.reloadAll){for(let B=0;B=t.params.masterDetailBreakpoint&&c}A&&(w=!u||y||r.reloadAll||r.reloadCurrent);let D="next";if(r.reloadCurrent||r.reloadAll||y?D="current":r.reloadPrevious&&(D="previous"),g.removeClass("page-previous page-current page-next").addClass(`page-${D}${f?" page-master":""}${A?" page-master-detail":""}${w?" page-master-detail-root":""}`).trigger("page:unstack").trigger("page:position",{position:D}),t.emit("pageUnstack",g[0]),t.emit("pagePosition",g[0],D),(f||A)&&(g.trigger("page:role",{role:f?"master":"detail",root:!!w}),t.emit("pageRole",g[0],{role:f?"master":"detail",detailRoot:!!w})),p&&E.length&&(E.removeClass("navbar-previous navbar-current navbar-next").addClass(`navbar-${D}${f?" navbar-master":""}${A?" navbar-master-detail":""}${w?" navbar-master-detail-root":""}`),E.trigger("navbar:position",{position:D}),t.emit("navbarPosition",E[0],D),(f||A)&&t.emit("navbarRole",E[0],{role:f?"master":"detail",detailRoot:!!w})),r.reloadCurrent||y)y?(_=I.filter(B=>!B.classList.contains("page-master")),p&&(S=P(_.map(B=>i.navbar.getElByPage(B)))),_.length>1&&c&&(d=_.length-1,P(c).removeClass("page-master-stacked").trigger("page:masterunstack"),t.emit("pageMasterUnstack",c),p&&(P(i.navbar.getElByPage(c)).removeClass("navbar-master-stacked"),t.emit("navbarMasterUnstack",i.navbar.getElByPage(c))))):(_=I.eq(I.length-1),p&&(S=P(i.navbar.getElByPage(_))));else if(r.reloadPrevious)_=I.eq(I.length-2),p&&(S=P(i.navbar.getElByPage(_)));else if(r.reloadAll)_=I.filter(B=>B!==g[0]),p&&(S=T.filter(B=>B!==E[0]));else{let B=[],q=[];if(I.length>1){let X=0;for(X=0;XX!==g[0]&&B.indexOf(X)<0),p&&(S=k.children(".navbar").filter(X=>X!==E[0]&&q.indexOf(q)<0)),B=[],q=[]}if(A&&!r.reloadAll&&((_.length>1||y)&&(_=_.filter(B=>!B.classList.contains("page-master"))),S&&(S.length>1||y)&&(S=S.filter(B=>!B.classList.contains("navbar-master")))),t.params.browserHistory&&(r.browserHistory||r.replaceState)&&!r.reloadPrevious){const B=t.params.browserHistoryRoot||"";lt[r.reloadCurrent||y&&u||r.reloadAll||r.replaceState?"replace":"push"](o.id,{url:r.route.url},B+t.params.browserHistorySeparator+r.route.url)}r.reloadPrevious||(t.currentPageEl=g[0],p&&E.length?t.currentNavbarEl=E[0]:delete t.currentNavbarEl,t.currentRoute=r.route);const O=r.route.url;r.history&&(((r.reloadCurrent||y&&u)&&t.history.length)>0||r.replaceState?(y&&d>0&&(t.history=t.history.slice(0,t.history.length-d),t.propsHistory=t.propsHistory.slice(0,t.propsHistory.length-d)),t.history[t.history.length-(r.reloadPrevious?2:1)]=O,t.propsHistory[t.propsHistory.length-(r.reloadPrevious?2:1)]=r.props||{}):r.reloadPrevious?(t.history[t.history.length-2]=O,t.propsHistory[t.propsHistory.length-2]=r.props||{}):r.reloadAll?(t.history=[O],t.propsHistory=[r.props||{}]):(t.history.push(O),t.propsHistory.push(r.props||{}))),t.saveHistory();const L=g.parents(s).length>0,j=g[0].f7Component;if(r.reloadPrevious?(j&&!L?j.mount(B=>{P(B).insertBefore(_)}):g.insertBefore(_),p&&E.length&&(E.find(".title-large").length&&E.addClass("navbar-large"),S.length?E.insertBefore(S):(t.$navbarsEl.parents(s).length||t.$el.prepend(t.$navbarsEl),k.append(E)))):(_.next(".page")[0]!==g[0]&&(j&&!L?j.mount(B=>{b.append(B)}):b.append(g[0])),p&&E.length&&(E.find(".title-large").length&&E.addClass("navbar-large"),t.$navbarsEl.parents(s).length||t.$el.prepend(t.$navbarsEl),k.append(E[0]))),L?r.route&&r.route.route&&r.route.route.keepAlive&&!g[0].f7PageMounted&&(g[0].f7PageMounted=!0,t.pageCallback("mounted",g,E,D,v?D:"current",r,_)):t.pageCallback("mounted",g,E,D,v?D:"current",r,_),(r.reloadCurrent||y)&&_.length>0?(t.pageCallback("beforeOut",_,S,"current",void 0,r),t.pageCallback("afterOut",_,S,"current",void 0,r),t.pageCallback("beforeRemove",_,S,"current",void 0,r),t.removePage(_),p&&S&&S.length&&t.removeNavbar(S)):r.reloadAll?_.each((B,q)=>{const X=P(B),H=P(i.navbar.getElByPage(X));X.hasClass("page-current")&&(t.pageCallback("beforeOut",_,S,"current",void 0,r),t.pageCallback("afterOut",_,S,"current",void 0,r)),t.pageCallback("beforeRemove",X,S&&S.eq(q),"previous",void 0,r),t.removePage(X),p&&H.length&&t.removeNavbar(H)}):r.reloadPrevious&&(t.pageCallback("beforeRemove",_,S,"previous",void 0,r),t.removePage(_),p&&S&&S.length&&t.removeNavbar(S)),r.route.route.tab&&t.tabLoad(r.route.route.tab,te({},r,{history:!1,browserHistory:!1})),l&&o.checkMasterDetailBreakpoint(),t.pageCallback("init",g,E,D,v?D:"current",r,_),r.reloadCurrent||r.reloadAll||y)return t.allowPageChange=!0,t.pageCallback("beforeIn",g,E,D,"current",r),g.removeAttr("aria-hidden"),p&&E&&E.removeAttr("aria-hidden"),t.pageCallback("afterIn",g,E,D,"current",r),r.reloadCurrent&&r.clearPreviousHistory&&t.clearPreviousHistory(),y&&(t.setPagePosition(P(c),"previous"),c.f7Page&&c.f7Page.navbarEl&&t.setNavbarPosition(P(c.f7Page.navbarEl),"previous")),t;if(r.reloadPrevious)return t.allowPageChange=!0,t;t.pageCallback("beforeOut",_,S,"current","previous",r),t.pageCallback("beforeIn",g,E,"next","current",r);function W(){t.setPagePosition(g,"current",!1),t.setPagePosition(_,"previous",!_.hasClass("page-master")),p&&(t.setNavbarPosition(E,"current",!1),t.setNavbarPosition(S,"previous",!S.hasClass("navbar-master"))),t.allowPageChange=!0,t.pageCallback("afterOut",_,S,"current","previous",r),t.pageCallback("afterIn",g,E,"next","current",r);let B=(t.params.preloadPreviousPage||t.params[`${i.theme}SwipeBack`])&&!f;B||(g.hasClass("smart-select-page")||g.hasClass("photo-browser-page")||g.hasClass("autocomplete-page")||g.hasClass("color-picker-page"))&&(B=!0),B||g.attr("data-name")&&g.attr("data-name")==="smart-select-page"||(t.pageCallback("beforeRemove",_,S,"previous",void 0,r),t.removePage(_),p&&S.length&&t.removeNavbar(S)),r.clearPreviousHistory&&t.clearPreviousHistory(),t.emit("routeChanged",t.currentRoute,t.previousRoute,t),t.params.browserHistory&<.clearRouterQueue()}function Y(){t.setPagePosition(_,"current",!1),t.setPagePosition(g,"next",!1),p&&(t.setNavbarPosition(S,"current",!1),t.setNavbarPosition(E,"next",!1))}if(r.animate&&!(f&&i.width>=t.params.masterDetailBreakpoint)){const B=t.params[`${t.app.theme}PageLoadDelay`];let q=t.params.transition;r.transition&&(q=r.transition),!q&&t.currentRoute&&t.currentRoute.route&&(q=t.currentRoute.route.transition),!q&&t.currentRoute&&t.currentRoute.route.options&&(q=t.currentRoute.route.options.transition),q&&(g[0].f7PageTransition=q),B?setTimeout(()=>{Y(),t.animate(_,g,S,E,"forward",q,()=>{W()})},B):(Y(),t.animate(_,g,S,E,"forward",q,()=>{W()}))}else W();return t}function Xs(t,e,n,s){if(e===void 0&&(e={}),n===void 0&&(n={}),!t.allowPageChange&&!s)return t;const a=e,i=n,{url:o,content:r,el:l,pageName:f,component:c,componentUrl:u}=a;if(!i.reloadCurrent&&i.route&&i.route.route&&i.route.route.parentPath&&t.currentRoute.route&&t.currentRoute.route.parentPath===i.route.route.parentPath){if(i.route.url===t.url)return t.allowPageChange=!0,!1;let h=Object.keys(i.route.params).length===Object.keys(t.currentRoute.params).length;if(h&&Object.keys(i.route.params).forEach(p=>{(!(p in t.currentRoute.params)||t.currentRoute.params[p]!==i.route.params[p])&&(h=!1)}),h)return i.route.route.tab?t.tabLoad(i.route.route.tab,i):!1;if(!h&&i.route.route.tab&&t.currentRoute.route.tab&&t.currentRoute.parentPath===i.route.parentPath)return t.tabLoad(i.route.route.tab,i)}if(i.route&&i.route.url&&t.url===i.route.url&&!(i.reloadCurrent||i.reloadPrevious)&&!t.params.allowDuplicateUrls)return t.allowPageChange=!0,!1;!i.route&&o&&(i.route=t.parseRouteUrl(o),te(i.route,{route:{url:o,path:o}}));function d(h,p){return Wn(t,h,te(i,p))}function m(){return t.allowPageChange=!0,t}if((o||u||c)&&(t.allowPageChange=!1),r)Wn(t,t.getPageEl(r),i);else if(l)Wn(t,t.getPageEl(l),i);else if(f)Wn(t,t.$el.children(`.page[data-name="${f}"]`).eq(0),i);else if(c||u)try{t.pageComponentLoader({routerEl:t.el,component:c,componentUrl:u,options:i,resolve:d,reject:m})}catch(h){throw t.allowPageChange=!0,h}else o&&(t.xhrAbortController&&(t.xhrAbortController.abort(),t.xhrAbortController=!1),t.xhrRequest(o,i).then(h=>{Wn(t,t.getPageEl(h),i)}).catch(()=>{t.allowPageChange=!0}));return t}function S2(t,e){e===void 0&&(e={});const n=this;if(n.swipeBackActive)return n;let s,a,i,o,r,l,f;if(typeof t=="string"?s=t:(s=t.url,a=t.route,i=t.name,o=t.path,r=t.query,l=t.params),i||o)return s=n.generateUrl({path:o,name:i,params:l,query:r}),s?n.navigate(s,e):n;const c=n.app;if(Vn(n,"navigate"),s==="#"||s==="")return n;let u=s.replace("./","");if(u[0]!=="/"&&u.indexOf("#")!==0){const p=n.currentRoute.parentPath||n.currentRoute.path;u=((p?`${p}/`:"/")+u).replace("///","/").replace("//","/")}if(a?f=te(n.parseRouteUrl(u),{route:te({},a)}):f=n.findMatchingRoute(u),!f)return n;if(f.route&&f.route.viewName){const p=f.route.viewName,b=c.views[p];if(!b)throw new Error(`Framework7: There is no View with "${p}" name that was specified in this route`);if(b!==n.view)return b.router.navigate(t,e)}if(f.route.redirect)return op.call(n,"forward",f,e);const d={};if(f.route.options?te(d,f.route.options,e):te(d,e),d.openIn&&(!n.params.ignoreOpenIn||n.params.ignoreOpenIn&&n.history.length>0))return n.openIn(n,u,d);d.route=f;function m(){let p=!1;if("popup popover sheet loginScreen actions customModal panel".split(" ").forEach(v=>{f.route[v]&&!p&&(p=!0,n.modalLoad(v,f,d,"forward"))}),f.route.keepAlive&&f.route.keepAliveData&&(Xs(n,{el:f.route.keepAliveData.pageEl},d,!1),p=!0),"url content component pageName el componentUrl".split(" ").forEach(v=>{f.route[v]&&!p&&(p=!0,Xs(n,{[v]:f.route[v]},d,!1))}),p)return;function b(v,_){n.allowPageChange=!1;let k=!1;"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(E=>{if(v[E]){k=!0;const S=te({},f,{route:v});n.allowPageChange=!0,n.modalLoad(E,S,te(d,_),"forward")}}),!k&&Xs(n,v,te(d,_),!0)}function g(){n.allowPageChange=!0}f.route.async&&(n.allowPageChange=!1,f.route.async.call(n,{router:n,to:d.route,from:n.currentRoute,resolve:b,reject:g,direction:"forward",app:c})),f.route.asyncComponent&&Hs(n,f.route.asyncComponent,b,g)}function h(){n.allowPageChange=!0}if(n.params.masterDetailBreakpoint>0&&f.route.masterRoute){let p=!0,b=!1;if(n.currentRoute&&n.currentRoute.route&&((n.currentRoute.route.master===!0||typeof n.currentRoute.route.master=="function"&&n.currentRoute.route.master(c,n))&&(n.currentRoute.route===f.route.masterRoute||n.currentRoute.route.path===f.route.masterRoute.path)&&(p=!1),n.currentRoute.route.masterRoute&&(n.currentRoute.route.masterRoute===f.route.masterRoute||n.currentRoute.route.masterRoute.path===f.route.masterRoute.path)&&(p=!1,b=!0)),p||b&&e.reloadAll)return n.navigate({path:f.route.masterRoute.path,params:f.params||{}},{animate:!1,reloadAll:e.reloadAll,reloadCurrent:e.reloadCurrent,reloadPrevious:e.reloadPrevious,browserHistory:!e.initial,history:!e.initial,once:{pageAfterIn(){n.navigate(t,te({},e,{animate:!1,reloadAll:!1,reloadCurrent:!1,reloadPrevious:!1,history:!e.initial,browserHistory:!e.initial}))}}}),n}return da.call(n,f,n.currentRoute,()=>{f.route.modules?c.loadModules(Array.isArray(f.route.modules)?f.route.modules:[f.route.modules]).then(()=>{m()}).catch(()=>{h()}):m()},()=>{h()},"forward"),n}function T2(t,e){e===void 0&&(e={});const n=this,s=te({animate:n.params.animate,browserHistory:!0,history:!0,parentPageEl:null,preload:!1,on:{}},e);let a,i;s.route&&(!s.preload&&s.route!==n.currentRoute&&(i=n.previousRoute,n.currentRoute=s.route),s.preload?(a=s.route,i=n.currentRoute):(a=n.currentRoute,i||(i=n.previousRoute)),n.params.browserHistory&&s.browserHistory&&!s.reloadPrevious&<[n.params.browserHistoryTabs](n.view.id,{url:s.route.url},(n.params.browserHistoryRoot||"")+n.params.browserHistorySeparator+s.route.url),s.history&&(n.history[Math.max(n.history.length-1,0)]=s.route.url,n.saveHistory()));const o=P(s.parentPageEl||n.currentPageEl);let r;o.length&&o.find(`#${t.id}`).length?r=o.find(`#${t.id}`).eq(0):n.view.selector?r=`${n.view.selector} #${t.id}`:r=`#${t.id}`;const l=n.app.tab.show({tabEl:r,animate:s.animate,tabRoute:s.route}),{$newTabEl:f,$oldTabEl:c,animated:u,onTabsChanged:d}=l;if(f&&f.parents(".page").length>0&&s.route){const v=f.parents(".page")[0].f7Page;v&&s.route&&(v.route=s.route)}function m(v){n.removeThemeElements(f);let _=f;typeof v!="string"&&(_=P(v)),_.trigger("tab:init tab:mounted",t),n.emit("tabInit tabMounted",f[0],t),c&&c.length&&(u?d(()=>{n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n.params.unloadTabContent&&n.tabRemove(c,f,t)}):(n.emit("routeChanged",n.currentRoute,n.previousRoute,n),n.params.unloadTabContent&&n.tabRemove(c,f,t)))}if(f[0].f7RouterTabLoaded)return!c||!c.length||(u?d(()=>{n.emit("routeChanged",n.currentRoute,n.previousRoute,n)}):n.emit("routeChanged",n.currentRoute,n.previousRoute,n)),n;function h(v,_){const{url:k,content:E,el:S,component:I,componentUrl:T}=v;function A(w){n.allowPageChange=!0,w&&(typeof w=="string"?f.html(w):(f.html(""),w.f7Component?w.f7Component.mount(D=>{f.append(D)}):f.append(w)),f[0].f7RouterTabLoaded=!0,m(w))}function y(){return n.allowPageChange=!0,n}if(E)A(E);else if(S)A(S);else if(I||T)try{n.tabComponentLoader({tabEl:f[0],component:I,componentUrl:T,options:_,resolve:A,reject:y})}catch(w){throw n.allowPageChange=!0,w}else k&&(n.xhrAbortController&&(n.xhrAbortController.abort(),n.xhrAbortController=!1),n.xhrRequest(k,_).then(w=>{A(w)}).catch(()=>{n.allowPageChange=!0}))}let p;"url content component el componentUrl".split(" ").forEach(v=>{t[v]&&(p=!0,h({[v]:t[v]},s))});function b(v,_){h(v,te(s,_))}function g(){n.allowPageChange=!0}return t.async?t.async.call(n,{router:n,to:a,from:i,resolve:b,reject:g,app:n.app}):t.asyncComponent?Hs(n,t.asyncComponent,b,g):p||(n.allowPageChange=!0),n}function M2(t,e,n){const s=this;let a;t[0]&&(t[0].f7RouterTabLoaded=!1,delete t[0].f7RouterTabLoaded),t.children().each(i=>{i.f7Component&&(a=!0,P(i).trigger("tab:beforeremove",n),i.f7Component.destroy())}),a||t.trigger("tab:beforeremove",n),s.emit("tabBeforeRemove",t[0],e[0],n),s.removeTabContent(t[0],n)}function P2(t,e,n,s){n===void 0&&(n={});const a=this,i=a.app,o=t==="panel",r=o?"panel":"modal",l=te({animate:a.params.animate,browserHistory:!0,history:!0,on:{},once:{}},n),f=te({},e.route[t]),c=e.route,u=(g,v)=>{const{on:_,once:k}=l;let E;v==="open"&&(E=_.modalOpen||k.modalOpen||_.panelOpen||k.panelOpen),v==="close"&&(E=_.modalClose||k.modalClose||_.panelClose||k.panelClose),v==="closed"&&(E=_.modalClosed||k.modalClosed||_.panelClosed||k.panelClosed),E&&E(g)};function d(){const g=i[t].create(f);c.modalInstance=g;const v=g.el;function _(){g.close()}g.on(`${r}Open`,()=>{v||(a.removeThemeElements(g.el),g.$el.trigger(`${t.toLowerCase()}:init ${t.toLowerCase()}:mounted`,e,g),a.emit(`${o?"":"modalInit"} ${t}Init ${t}Mounted`,g.el,e,g)),a.once("swipeBackMove",_),u(g,"open")}),g.on(`${r}Close`,()=>{a.off("swipeBackMove",_),g.closeByRouter||a.back(),u(g,"close")}),g.on(`${r}Closed`,()=>{g.$el.trigger(`${t.toLowerCase()}:beforeremove`,e,g),g.emit(`${o?"":"modalBeforeRemove "}${t}BeforeRemove`,g.el,e,g);const k=g.el.f7Component;u(g,"closed"),k&&k.destroy(),_t(()=>{(k||f.component||f.asyncComponent||f.async)&&a.removeModal(g.el),g.destroy(),delete g.route,delete c.modalInstance})}),l.route&&(a.params.browserHistory&&l.browserHistory&<.push(a.view.id,{url:l.route.url,modal:t},(a.params.browserHistoryRoot||"")+a.params.browserHistorySeparator+l.route.url),l.route!==a.currentRoute&&(g.route=te(l.route,{modal:g}),a.currentRoute=g.route),l.history&&!l.reloadCurrent&&(a.history.push(l.route.url),a.saveHistory())),v&&(a.removeThemeElements(g.el),g.$el.trigger(`${t.toLowerCase()}:init ${t.toLowerCase()}:mounted`,e,g),a.emit(`${r}Init ${t}Init ${t}Mounted`,g.el,e,g)),g.open(l.animate===!1||l.animate===!0?l.animate:void 0)}function m(g,v){const{url:_,content:k,component:E,componentUrl:S}=g;function I(A){A&&(typeof A=="string"?f.content=A:A.f7Component?A.f7Component.mount(y=>{f.el=y,i.$el.append(y)}):f.el=A,d())}function T(){return a.allowPageChange=!0,a}if(k)I(k);else if(E||S)try{a.modalComponentLoader({rootEl:i.el,component:E,componentUrl:S,options:v,resolve:I,reject:T})}catch(A){throw a.allowPageChange=!0,A}else _?(a.xhrAbortController&&(a.xhrAbortController.abort(),a.xhrAbortController=!1),a.xhrRequest(_,v).then(A=>{f.content=A,d()}).catch(()=>{a.allowPageChange=!0})):d()}let h;"url content component el componentUrl template".split(" ").forEach(g=>{f[g]&&!h&&(h=!0,m({[g]:f[g]},l))}),!h&&t==="actions"&&d();function p(g,v){m(g,te(l,v))}function b(){a.allowPageChange=!0}return f.async&&f.async.call(a,{router:a,to:l.route,from:a.currentRoute,resolve:p,reject:b,direction:s,app:i}),f.asyncComponent&&Hs(a,f.asyncComponent,p,b),a}function I2(t){te(t,{closeByRouter:!0}),t.close()}function jn(t,e,n){const s=Ke(),a=Le(),i=P(e),o=t.app,r=t.view,l=te(!1,{animate:t.params.animate,browserHistory:!0,replaceState:!1},n),f=t.params.masterDetailBreakpoint>0,c=f&&l.route&&l.route.route&&(l.route.route.master===!0||typeof l.route.route.master=="function"&&l.route.route.master(o,t));let u,d;const m=t.dynamicNavbar,h=i,p=t.$el.children(".page-current"),b=p.length===0&&l.preload,g=f&&p.hasClass("page-master");h.length&&t.removeThemeElements(h);let v,_,k;if(m&&(_=h.children(".navbar"),v=t.$navbarsEl,_.length===0&&h[0]&&h[0].f7Page&&(_=h[0].f7Page.$navbarEl),k=v.find(".navbar-current")),t.allowPageChange=!1,h.length===0||p.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:i[0]});let E,S;if(f){const O=t.$el.children(".page").filter(L=>L!==h[0]);for(let L=0;Lt.history.indexOf(u.f7Page.route.url),!E&&!c&&u&&u.f7Page&&l.route.route.masterRoute&&(E=l.route.route.masterRoute.path===u.f7Page.route.route.path)}E&&u&&u.f7Page&&(S=t.history.indexOf(l.route.url)-t.history.indexOf(u.f7Page.route.url)===1),h.addClass(`page-${b?"current":"previous"}${c?" page-master":""}${E?" page-master-detail":""}${S?" 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"),(c||E)&&(h.trigger("page:role",{role:c?"master":"detail",root:!!S}),t.emit("pageRole",h[0],{role:c?"master":"detail",detailRoot:!!S})),m&&_.length>0&&(_.addClass(`navbar-${b?"current":"previous"}${c?" navbar-master":""}${E?" navbar-master-detail":""}${S?" navbar-master-detail-root":""}`).removeAttr("aria-hidden"),_.trigger("navbar:position",{position:b?"current":"previous"}),t.emit("navbarPosition",_[0],b?"current":"previous"),(c||S)&&t.emit("navbarRole",_[0],{role:c?"master":"detail",detailRoot:!!S}));let I;if(l.force&&p.prev(".page-previous").length>=0){t.history.indexOf(l.route.url)>=0?(I=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),r.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 O=p.prev(".page-previous");let L;m&&(L=P(o.navbar.getElByPage(O))),O.length>0&&(t.pageCallback("beforeRemove",O,L,"previous",void 0,l),O[0]===u&&(d=!0),t.removePage(O),m&&L.length&&t.removeNavbar(L))}const T=h.parents(a).length>0,A=h[0].f7Component;function y(){b&&(!T&&A?A.mount(O=>{t.$el.append(O)}):t.$el.append(h)),h.next(p).length===0&&(!T&&A?A.mount(O=>{P(O).insertBefore(p)}):h.insertBefore(p)),m&&_.length&&(_.find(".title-large").length&&_.addClass("navbar-large"),_.insertBefore(k),k.length>0?_.insertBefore(k):(t.$navbarsEl.parents(a).length||t.$el.prepend(t.$navbarsEl),v.append(_))),T?l.route&&l.route.route&&l.route.route.keepAlive&&!h[0].f7PageMounted&&(h[0].f7PageMounted=!0,t.pageCallback("mounted",h,_,"previous","current",l,p)):t.pageCallback("mounted",h,_,"previous","current",l,p)}if(l.preload){y(),l.route.route.tab&&t.tabLoad(l.route.route.tab,te({},l,{history:!1,browserHistory:!1,preload:!0})),c&&(h.removeClass("page-master-stacked").trigger("page:masterunstack"),t.emit("pageMasterUnstack",h[0]),m&&(P(o.navbar.getElByPage(h)).removeClass("navbar-master-stacked"),t.emit("navbarMasterUnstack",o.navbar.getElByPage(h)))),t.pageCallback("init",h,_,"previous","current",l,p),b&&(t.pageCallback("beforeIn",h,_,"current",void 0,l),t.pageCallback("afterIn",h,_,"current",void 0,l));const O=h.prevAll(".page-previous:not(.page-master)");return O.length>0&&O.each(L=>{const j=P(L);let W;m&&(W=P(o.navbar.getElByPage(j))),t.pageCallback("beforeRemove",j,W,"previous",void 0),t.removePage(j),m&&W.length&&t.removeNavbar(W)}),t.allowPageChange=!0,t}if(!(s.ie||s.edge||s.firefox&&!s.ios)&&t.params.browserHistory&&l.browserHistory)if(l.replaceState){const O=t.params.browserHistoryRoot||"";lt.replace(r.id,{url:l.route.url},O+t.params.browserHistorySeparator+l.route.url)}else I?lt.go(-I):lt.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],m&&_.length?t.currentNavbarEl=_[0]:delete t.currentNavbarEl,t.currentRoute=l.route,(s.ie||s.edge||s.firefox&&!s.ios)&&t.params.browserHistory&&l.browserHistory)if(l.replaceState){const O=t.params.browserHistoryRoot||"";lt.replace(r.id,{url:l.route.url},O+t.params.browserHistorySeparator+l.route.url)}else I?lt.go(-I):lt.back();y(),l.route.route.tab&&t.tabLoad(l.route.route.tab,te({},l,{history:!1,browserHistory:!1})),f&&(g||d)&&r.checkMasterDetailBreakpoint(!1),t.pageCallback("init",h,_,"previous","current",l,p),t.pageCallback("beforeOut",p,k,"current","next",l),t.pageCallback("beforeIn",h,_,"previous","current",l);function w(){t.setPagePosition(h,"current",!1),t.setPagePosition(p,"next",!0),m&&(t.setNavbarPosition(_,"current",!1),t.setNavbarPosition(k,"next",!0)),t.pageCallback("afterOut",p,k,"current","next",l),t.pageCallback("afterIn",h,_,"previous","current",l),t.pageCallback("beforeRemove",p,k,"next",void 0,l),t.removePage(p),m&&k.length&&t.removeNavbar(k),t.allowPageChange=!0,t.emit("routeChanged",t.currentRoute,t.previousRoute,t),(t.params.preloadPreviousPage||t.params[`${o.theme}SwipeBack`])&&t.history[t.history.length-2]&&!c&&t.back(t.history[t.history.length-2],{preload:!0,props:t.propsHistory[t.propsHistory.length-2]||{}}),t.params.browserHistory&<.clearRouterQueue()}function D(){t.setPagePosition(p,"current"),t.setPagePosition(h,"previous",!1),m&&(t.setNavbarPosition(k,"current"),t.setNavbarPosition(_,"previous",!1))}if(l.animate&&!(g&&o.width>=t.params.masterDetailBreakpoint)){let O=t.params.transition;p[0]&&p[0].f7PageTransition&&(O=p[0].f7PageTransition,delete p[0].f7PageTransition),l.transition&&(O=l.transition),!O&&t.previousRoute&&t.previousRoute.route&&(O=t.previousRoute.route.transition),!O&&t.previousRoute&&t.previousRoute.route&&t.previousRoute.route.options&&(O=t.previousRoute.route.options.transition),D(),t.animate(p,h,k,_,"backward",O,()=>{w()})}else w();return t}function ds(t,e,n,s){if(!t.allowPageChange&&!s)return t;const a=e,i=n,{url:o,content:r,el:l,pageName:f,component:c,componentUrl:u}=a;if(i.route.url&&t.url===i.route.url&&!(i.reloadCurrent||i.reloadPrevious)&&!t.params.allowDuplicateUrls)return t.allowPageChange=!0,!1;!i.route&&o&&(i.route=t.parseRouteUrl(o));function d(h,p){return jn(t,h,te(i,p))}function m(){return t.allowPageChange=!0,t}if((o||u||c)&&(t.allowPageChange=!1),r)jn(t,t.getPageEl(r),i);else if(l)jn(t,t.getPageEl(l),i);else if(f)jn(t,t.$el.children(`.page[data-name="${f}"]`).eq(0),i);else if(c||u)try{t.pageComponentLoader({routerEl:t.el,component:c,componentUrl:u,options:i,resolve:d,reject:m})}catch(h){throw t.allowPageChange=!0,h}else o&&(t.xhrAbortController&&(t.xhrAbortController.abort(),t.xhrAbortController=!1),t.xhrRequest(o,i).then(h=>{jn(t,t.getPageEl(h),i)}).catch(()=>{t.allowPageChange=!0}));return t}function A2(){const t=this,e=Ke();if(t.swipeBackActive)return t;let n,s,a,i;typeof(arguments.length<=0?void 0:arguments[0])=="object"?s=(arguments.length<=0?void 0:arguments[0])||{}:(n=arguments.length<=0?void 0:arguments[0],s=(arguments.length<=1?void 0:arguments[1])||{});const{name:o,params:r,query:l}=s;if(o)return n=t.generateUrl({name:o,params:r,query:l}),n?t.back(n,te({},s,{name:null,params:null,query:null})):t;const f=t.app;Vn(t,"back");let c=t.currentRoute.modal,u;if(c||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(g=>{t.currentRoute.route[g]&&(c=!0,u=g)}),c&&!s.preload){const g=t.currentRoute.modal||t.currentRoute.route.modalInstance||f[u].get(),v=t.history[t.history.length-2];let _;if(g&&g.$el){const E=g.$el.prevAll(".modal-in");if(E.length&&E[0].f7Modal){const S=E[0];t.$el.parents(S).length||(_=S.f7Modal.route)}}if(_||(_=t.findMatchingRoute(v)),!_&&v&&(_={url:v,path:v.split("?")[0],query:ns(v),route:{path:v.split("?")[0],url:v}}),(!n||n.replace(/[# ]/g,"").trim().length===0)&&(!_||!g))return t;const k=s.force&&_&&n;if(_&&g){const E=e.ie||e.edge||e.firefox&&!e.ios,S=t.params.browserHistory&&s.browserHistory!==!1,I=t.currentRoute&&t.currentRoute.route&&t.currentRoute.route.options&&t.currentRoute.route.options.browserHistory===!1;S&&!E&&!I&<.back(),t.currentRoute=_,t.history.pop(),t.propsHistory.pop(),t.saveHistory(),S&&E&&!I&<.back(),t.modalRemove(g),k&&t.navigate(n,{reloadCurrent:!0})}else g&&(t.modalRemove(g),n&&t.navigate(n,{reloadCurrent:!0}));return t}let d=t.$el.children(".page-current").prevAll(".page-previous:not(.page-master)").eq(0),m;if(t.params.masterDetailBreakpoint>0){const g=[];t.$el.children(".page").each(_=>{g.push(_.className)});const v=t.$el.children(".page-current").prevAll(".page-master").eq(0);if(v.length){const _=t.history[t.history.length-2],k=t.findMatchingRoute(_);k&&v[0].f7Page&&k.route===v[0].f7Page.route.route&&(d=v,s.preload||(m=f.width>=t.params.masterDetailBreakpoint))}}if(!s.force&&d.length&&!m){if(t.params.browserHistory&&d[0].f7Page&&t.history[t.history.length-2]!==d[0].f7Page.route.url)return t.back(t.history[t.history.length-2],te(s,{force:!0,props:t.propsHistory[t.propsHistory.length-2]||{}})),t;const g=d[0].f7Page.route;return da.call(t,g,t.currentRoute,()=>{ds(t,{el:d},te(s,{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],a=t.propsHistory[t.propsHistory.length-2]||{}),m&&!s.force&&t.history[t.history.length-3])return t.back(t.history[t.history.length-3],te({},s||{},{force:!0,animate:!1,props:t.propsHistory[t.propsHistory.length-3]||{}}));if(m&&!s.force||(i=t.findMatchingRoute(n),i||n&&(i={url:n,path:n.split("?")[0],query:ns(n),route:{path:n.split("?")[0],url:n}}),!i))return t;if(i.route.redirect)return op.call(t,"backward",i,s);const h={};i.route.options?te(h,i.route.options,s,{props:a||{}}):te(h,s,{props:a||{}}),h.route=i;function p(){let g=!1;if(i.route.keepAlive&&i.route.keepAliveData&&(ds(t,{el:i.route.keepAliveData.pageEl},h),g=!0),"url content component pageName el componentUrl".split(" ").forEach(k=>{i.route[k]&&!g&&(g=!0,ds(t,{[k]:i.route[k]},h))}),g)return;function v(k,E){t.allowPageChange=!1,ds(t,k,te(h,E),!0)}function _(){t.allowPageChange=!0}i.route.async&&(t.allowPageChange=!1,i.route.async.call(t,{router:t,to:i,from:t.currentRoute,resolve:v,reject:_,direction:"backward",app:f})),i.route.asyncComponent&&Hs(t,i.route.asyncComponent,v,_)}function b(){t.allowPageChange=!0}return h.preload?p():da.call(t,i,t.currentRoute,()=>{i.route.modules?f.loadModules(Array.isArray(i.route.modules)?i.route.modules:[i.route.modules]).then(()=>{p()}).catch(()=>{b()}):p()},()=>{b()},"backward"),t}function O2(t){Vn(t,"clearPreviousPages");const e=t.app,n=t.dynamicNavbar;t.$el.children(".page").filter(a=>t.currentRoute&&(t.currentRoute.modal||t.currentRoute.panel)?!0:a!==t.currentPageEl).each(a=>{const i=P(a),o=P(e.navbar.getElByPage(i));t.pageCallback("beforeRemove",i,o,"previous",void 0,{}),t.removePage(i),n&&o.length&&t.removeNavbar(o)})}function B2(){const t=this;Vn(t,"clearPreviousHistory");const e=t.history[t.history.length-1];O2(t),t.history=[e],t.view.history=[e],t.saveHistory()}class fn extends rt{constructor(e,n){super({},[typeof n>"u"?e:n]);const s=this;s.isAppRouter=typeof n>"u",s.isAppRouter?te(!1,s,{app:e,params:e.params.view,routes:e.routes||[],cache:e.cache}):te(!1,s,{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:[]}),s.useModules(),s.allowPageChange=!0;let a={},i={};return Object.defineProperty(s,"currentRoute",{enumerable:!0,configurable:!0,set(o){o===void 0&&(o={}),i=te({},a),a=o,a&&(s.url=a.url,s.emit("routeChange",o,i,s))},get(){return a}}),Object.defineProperty(s,"previousRoute",{enumerable:!0,configurable:!0,get(){return i},set(o){i=o}}),s}mount(){const e=this,n=e.view,s=Le();te(!1,e,{tempDom:s.createElement("div"),$el:n.$el,el:n.el,$navbarsEl:n.$navbarsEl,navbarsEl:n.navbarsEl}),e.emit("local::mount routerMount",e)}animatableNavElements(e,n,s,a,i){const o=this,r=o.dynamicNavbar,l=o.params.iosAnimateNavbarBackIcon;let f,c;function u(d,m){const h=d.hasClass("sliding")||m.hasClass("sliding"),p=d.hasClass("subnavbar"),b=h?!p:!0,g=d.find(".back .icon");let v;return h&&l&&d.hasClass("left")&&g.length>0&&g.next("span").length&&(d=g.next("span"),v=!0),{$el:d,isIconLabel:v,leftOffset:d[0].f7NavbarLeftOffset,rightOffset:d[0].f7NavbarRightOffset,isSliding:h,isSubnavbar:p,needsOpacityTransition:b}}return r&&(f=[],c=[],e.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each(d=>{const m=P(d);m.hasClass("left")&&a&&i==="forward"||m.hasClass("title")&&s||f.push(u(m,e.children(".navbar-inner")))}),n.hasClass("navbar-master")&&o.params.masterDetailBreakpoint>0&&o.app.width>=o.params.masterDetailBreakpoint||n.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each(d=>{const m=P(d);m.hasClass("left")&&s&&!a&&i==="forward"||m.hasClass("left")&&s&&i==="backward"||m.hasClass("title")&&a||c.push(u(m,n.children(".navbar-inner")))}),[c,f].forEach(d=>{d.forEach(m=>{const h=m,{isSliding:p,$el:b}=m,g=d===c?f:c;p&&b.hasClass("title")&&g&&g.forEach(v=>{if(v.isIconLabel){const _=v.$el[0];h.leftOffset+=_&&_.offsetLeft||0}})})})),{newNavEls:f,oldNavEls:c}}animate(e,n,s,a,i,o,r){const l=this;if(l.params.animateCustom){l.params.animateCustom.apply(l,[e,n,s,a,i,r]);return}const f=l.dynamicNavbar,c=l.app.theme==="ios";if(o){const E=`router-transition-custom router-transition-${o}-${i}`,S=()=>{l.$el.removeClass(E),f&&l.$navbarsEl.length&&(a&&l.$navbarsEl.prepend(a),s&&l.$navbarsEl.prepend(s)),r&&r()};(i==="forward"?n:e).animationEnd(S),f&&(a&&n&&(l.setNavbarPosition(a,""),a.removeClass("navbar-next navbar-previous navbar-current"),n.prepend(a)),s&&e&&(l.setNavbarPosition(s,""),s.removeClass("navbar-next navbar-previous navbar-current"),e.prepend(s))),l.$el.addClass(E);return}const u=`router-transition-${i} router-transition`;let d,m,h,p,b,g,v;if(c&&f){l.params.masterDetailBreakpoint>0&&l.app.width>=l.params.masterDetailBreakpoint&&(s.hasClass("navbar-master")&&a.hasClass("navbar-master-detail")||s.hasClass("navbar-master-detail")&&a.hasClass("navbar-master"))||(g=s&&s.hasClass("navbar-large"),v=a&&a.hasClass("navbar-large"),h=g&&!s.hasClass("navbar-large-collapsed"),p=v&&!a.hasClass("navbar-large-collapsed"),b=h&&!p||p&&!h);const S=l.animatableNavElements(a,s,p,h,i);d=S.newNavEls,m=S.oldNavEls}function _(E){c&&f&&(E===1&&(p&&(a.addClass("router-navbar-transition-to-large"),s.addClass("router-navbar-transition-to-large")),h&&(a.addClass("router-navbar-transition-from-large"),s.addClass("router-navbar-transition-from-large"))),d.forEach(S=>{const I=S.$el,T=i==="forward"?S.rightOffset:S.leftOffset;S.isSliding&&(S.isSubnavbar&&v?I[0].style.setProperty("transform",`translate3d(${T*(1-E)}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`,"important"):I.transform(`translate3d(${T*(1-E)}px,0,0)`))}),m.forEach(S=>{const I=S.$el,T=i==="forward"?S.leftOffset:S.rightOffset;S.isSliding&&(S.isSubnavbar&&g?I.transform(`translate3d(${T*E}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`):I.transform(`translate3d(${T*E}px,0,0)`))}))}function k(){l.dynamicNavbar&&(a&&(a.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),a.addClass("navbar-no-title-large-transition"),Bt(()=>{a.removeClass("navbar-no-title-large-transition")})),s&&s.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),a.hasClass("sliding")||a.children(".navbar-inner.sliding").length?a.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):a.find(".sliding").transform(""),s.hasClass("sliding")||s.children(".navbar-inner.sliding").length?s.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):s.find(".sliding").transform("")),l.$el.removeClass(u),r&&r()}(i==="forward"?n:c?e:n).animationEnd(()=>{k()}),f?(_(0),Bt(()=>{l.$el.addClass(u),b&&(l.el._clientLeft=l.el.clientLeft),_(1)})):l.$el.addClass(u)}removeModal(e){this.removeEl(e)}removeTabContent(e){P(e).html("")}removeNavbar(e){this.removeEl(e)}removePage(e){const n=P(e),s=n&&n[0]&&n[0].f7Page,a=this;if(s&&s.route&&s.route.route&&s.route.route.keepAlive){n.remove();return}a.removeEl(e)}removeEl(e){if(!e)return;const n=this,s=P(e);s.length!==0&&(s.find(".tab").each(a=>{P(a).children().each(i=>{i.f7Component&&(P(i).trigger("tab:beforeremove"),i.f7Component.destroy())})}),s[0].f7Component&&s[0].f7Component.destroy&&s[0].f7Component.destroy(),n.params.removeElements&&(n.params.removeElementsWithTimeout?setTimeout(()=>{s.remove()},n.params.removeElementsTimeout):s.remove()))}getPageEl(e){const n=this;if(typeof e=="string")n.tempDom.innerHTML=e;else{if(P(e).hasClass("page"))return e;n.tempDom.innerHTML="",P(n.tempDom).append(e)}return n.findElement(".page",n.tempDom)}findElement(e,n){const s=this,a=s.view,i=s.app,o=".popup, .dialog, .popover, .actions-modal, .sheet-modal, .login-screen, .page",r=P(n),l=e;let f=r.find(l).filter(c=>P(c).parents(o).length===0);if(f.length>1&&(typeof a.selector=="string"&&(f=r.find(`${a.selector} ${l}`)),f.length>1&&(f=r.find(`.${i.params.viewMainClass} ${l}`))),f.length===1||(f=s.findElement(l,r),f&&f.length===1))return f;if(f&&f.length>1)return P(f[0])}flattenRoutes(e){e===void 0&&(e=this.routes);const n=this;let s=[];return e.forEach(a=>{let i=!1;if("tabs"in a&&a.tabs){const o=a.tabs.map(r=>{const l=te({},a,{path:`${a.path}/${r.path}`.replace("///","/").replace("//","/"),parentPath:a.path,tab:r});return delete l.tabs,delete l.routes,l});i=!0,s=s.concat(n.flattenRoutes(o))}if("detailRoutes"in a){const o=a.detailRoutes.map(r=>{const l=te({},r);return l.masterRoute=a,l.masterRoutePath=a.path,l});s=s.concat(a,n.flattenRoutes(o))}if("routes"in a){const o=a.routes.map(r=>{const l=te({},r);return l.path=`${a.path}/${l.path}`.replace("///","/").replace("//","/"),l});i?s=s.concat(n.flattenRoutes(o)):s=s.concat(a,n.flattenRoutes(o))}!("routes"in a)&&!("tabs"in a&&a.tabs)&&!("detailRoutes"in a)&&s.push(a)}),s}parseRouteUrl(e){if(!e)return{};const n=ns(e),s=e.split("#")[1],a={},i=e.split("#")[0].split("?")[0];return{query:n,hash:s,params:a,url:e,path:i}}generateUrl(e){if(e===void 0&&(e={}),typeof e=="string")return e;const{name:n,path:s,params:a,query:i}=e;if(!n&&!s)throw new Error('Framework7: "name" or "path" parameter is required');const o=this,r=n?o.findRouteByKey("name",n):o.findRouteByKey("path",s);if(!r)throw n?new Error(`Framework7: route with name "${n}" not found`):new Error(`Framework7: route with path "${s}" not found`);const l=o.constructRouteUrl(r,{params:a,query:i});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:s,query:a}=n===void 0?{}:n;const{path:i}=e,o=b2(i);let r;try{r=o(s||{})}catch(l){throw new Error(`Framework7: error constructing route URL from passed params: -Route: ${i} -${l.toString()}`)}return a&&(typeof a=="string"?r+=`?${a}`:Object.keys(a).length&&(r+=`?${wn(a)}`)),r}findTabRouteUrl(e){const n=this,s=P(e),a=n.currentRoute.route.parentPath,i=s.attr("id"),o=n.flattenRoutes(n.routes);let r;return o.forEach(l=>{l.parentPath===a&&l.tab&&l.tab.id===i&&(n.currentRoute.params&&Object.keys(n.currentRoute.params).length>0?r=n.constructRouteUrl(l,{params:n.currentRoute.params,query:n.currentRoute.query}):r=l.path)}),r}findRouteByKey(e,n){const s=this,a=s.routes,i=s.flattenRoutes(a);let o;return i.forEach(r=>{o||r[e]===n&&(o=r)}),o}findMatchingRoute(e){if(!e)return;const n=this,s=n.routes,a=n.flattenRoutes(s),{path:i,query:o,hash:r,params:l}=n.parseRouteUrl(e);let f;return a.forEach(c=>{if(f)return;const u=[],d=[c.path||"/"];c.alias&&(typeof c.alias=="string"?d.push(c.alias):Array.isArray(c.alias)&&c.alias.forEach(h=>{d.push(h)}));let m;if(d.forEach(h=>{m||(m=lp(h,u).exec(i||"/"))}),m){u.forEach((p,b)=>{if(typeof p.name=="number")return;const g=m[b+1];typeof g>"u"||g===null?l[p.name]=g:l[p.name]=decodeURIComponent(g)});let h;c.parentPath&&(h=(i||"/").split("/").slice(0,c.parentPath.split("/").length-1).join("/")),f={query:o,hash:r,params:l,url:e,path:i||"/",parentPath:h,route:c,name:c.name}}}),f}replaceRequestUrlParams(e,n){e===void 0&&(e=""),n===void 0&&(n={});let s=e;return typeof s=="string"&&s.indexOf("{{")>=0&&n&&n.route&&n.route.params&&Object.keys(n.route.params).length&&Object.keys(n.route.params).forEach(a=>{const i=new RegExp(`{{${a}}}`,"g");s=s.replace(i,n.route.params[a]||"")}),s}removeFromXhrCache(e){const s=this.cache.xhr;let a=!1;for(let i=0;i=0;return a.passRouteQueryToRequest&&n&&n.route&&n.route.query&&Object.keys(n.route.query).length&&(o+=`${r?"&":"?"}${wn(n.route.query)}`,r=!0),a.passRouteParamsToRequest&&n&&n.route&&n.route.params&&Object.keys(n.route.params).length&&(o+=`${r?"&":"?"}${wn(n.route.params)}`,r=!0),o.indexOf("{{")>=0&&(o=s.replaceRequestUrlParams(o,n)),a.xhrCacheIgnoreGetParameters&&o.indexOf("?")>=0&&(o=o.split("?")[0]),new Promise((l,f)=>{if(a.xhrCache&&!i&&o.indexOf("nocache")<0&&a.xhrCacheIgnore.indexOf(o)<0)for(let u=0;u(c=u,u.text())).then(u=>{const{status:d}=c;s.emit("routerAjaxComplete",c),d!=="error"&&d!=="timeout"&&d>=200&&d<300||d===0?(a.xhrCache&&u!==""&&(s.removeFromXhrCache(o),s.cache.xhr.push({url:o,time:Ht(),content:u})),s.emit("routerAjaxSuccess",c,n),l(u)):(s.emit("routerAjaxError",c,n),f(c))}).catch(u=>{f(u)})})}setNavbarPosition(e,n,s){const a=this;e.removeClass("navbar-previous navbar-current navbar-next"),n&&e.addClass(`navbar-${n}`),s===!1?e.removeAttr("aria-hidden"):s===!0&&e.attr("aria-hidden","true"),e.trigger("navbar:position",{position:n}),a.emit("navbarPosition",e[0],n)}setPagePosition(e,n,s){const a=this;e.removeClass("page-previous page-current page-next"),e.addClass(`page-${n}`),s===!1?e.removeAttr("aria-hidden"):s===!0&&e.attr("aria-hidden","true"),e.trigger("page:position",{position:n}),a.emit("pagePosition",e[0],n)}removeThemeElements(e){const s=this.app.theme;let a;s==="ios"?a=".md-only, .if-md, .if-not-ios, .not-ios":s==="md"&&(a=".ios-only, .if-ios, .if-not-md, .not-md"),P(e).find(a).remove()}getPageData(e,n,s,a,i,o){i===void 0&&(i={});const r=this,l=P(e).eq(0),f=P(n).eq(0),c=l[0].f7Page||{};let u,d;if((s==="next"&&a==="current"||s==="current"&&a==="previous")&&(u="forward"),(s==="current"&&a==="next"||s==="previous"&&a==="current")&&(u="backward"),c&&!c.fromPage){const h=P(o);h.length&&(d=h[0].f7Page)}d=c.pageFrom||d,d&&d.pageFrom&&(d.pageFrom=null);const m={app:r.app,view:r.view,router:r,$el:l,el:l[0],$pageEl:l,pageEl:l[0],$navbarEl:f,navbarEl:f[0],name:l.attr("data-name"),position:s,from:s,to:a,direction:u,route:c.route?c.route:i,pageFrom:d};return l[0].f7Page=m,m}pageCallback(e,n,s,a,i,o,r){if(o===void 0&&(o={}),!n)return;const l=this,f=P(n);if(!f.length)return;const c=P(s),{route:u}=o,d=l.params.restoreScrollTopOnBack&&!(l.params.masterDetailBreakpoint>0&&f.hasClass("page-master")&&l.app.width>=l.params.masterDetailBreakpoint),m=f[0].f7Page&&f[0].f7Page.route&&f[0].f7Page.route.route&&f[0].f7Page.route.route.keepAlive;e==="beforeRemove"&&m&&(e="beforeUnmount");const h=`page${e[0].toUpperCase()+e.slice(1,e.length)}`,p=`page:${e.toLowerCase()}`;let b={};e==="beforeRemove"&&f[0].f7Page?b=te(f[0].f7Page,{from:a,to:i,position:a}):b=l.getPageData(f[0],c[0],a,i,u,r),b.swipeBack=!!o.swipeBack;const{on:g={},once:v={}}=o.route?o.route.route:{};o.on&&te(g,o.on),o.once&&te(v,o.once);function _(){f[0].f7RouteEventsAttached||(f[0].f7RouteEventsAttached=!0,g&&Object.keys(g).length>0&&(f[0].f7RouteEventsOn=g,Object.keys(g).forEach(E=>{g[E]=g[E].bind(l),f.on(Gn(E),g[E])})),v&&Object.keys(v).length>0&&(f[0].f7RouteEventsOnce=v,Object.keys(v).forEach(E=>{v[E]=v[E].bind(l),f.once(Gn(E),v[E])})))}function k(){f[0].f7RouteEventsAttached&&(f[0].f7RouteEventsOn&&Object.keys(f[0].f7RouteEventsOn).forEach(E=>{f.off(Gn(E),f[0].f7RouteEventsOn[E])}),f[0].f7RouteEventsOnce&&Object.keys(f[0].f7RouteEventsOnce).forEach(E=>{f.off(Gn(E),f[0].f7RouteEventsOnce[E])}),f[0].f7RouteEventsAttached=null,f[0].f7RouteEventsOn=null,f[0].f7RouteEventsOnce=null,delete f[0].f7RouteEventsAttached,delete f[0].f7RouteEventsOn,delete f[0].f7RouteEventsOnce)}if(e==="mounted"&&_(),e==="init"){if(d&&(a==="previous"||!a)&&i==="current"&&l.scrollHistory[b.route.url]&&!f.hasClass("no-restore-scroll")){let E=f.find(".page-content");E.length>0&&(E=E.filter(S=>P(S).parents(".tab:not(.tab-active)").length===0&&!P(S).is(".tab:not(.tab-active)"))),E.scrollTop(l.scrollHistory[b.route.url])}if(_(),f[0].f7PageInitialized){f.trigger("page:reinit",b),l.emit("pageReinit",b);return}f[0].f7PageInitialized=!0}if(d&&e==="beforeOut"&&a==="current"&&i==="previous"){let E=f.find(".page-content");E.length>0&&(E=E.filter(S=>P(S).parents(".tab:not(.tab-active)").length===0&&!P(S).is(".tab:not(.tab-active)"))),l.scrollHistory[b.route.url]=E.scrollTop()}d&&e==="beforeOut"&&a==="current"&&i==="next"&&delete l.scrollHistory[b.route.url],f.trigger(p,b),l.emit(h,b),(e==="beforeRemove"||e==="beforeUnmount")&&(k(),m||(f[0].f7Page&&f[0].f7Page.navbarEl&&delete f[0].f7Page.navbarEl.f7Page,f[0].f7Page=null))}saveHistory(){const e=this,n=Se();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=Se();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;Vn(n,"updateCurrentUrl"),n.history.length?n.history[n.history.length-1]=e:n.history.push(e);const{query:s,hash:a,params:i,url:o,path:r}=n.parseRouteUrl(e);if(n.currentRoute&&te(n.currentRoute,{query:s,hash:a,params:i,url:o,path:r}),n.params.browserHistory){const l=n.params.browserHistoryRoot||"";lt.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:s}=e,a=Le(),i=Se(),o=n.params.url&&typeof n.params.url=="string"&&typeof URL<"u"?new URL(n.params.url):a.location;let r=e.params.url,l=o.href.split(o.origin)[1],f;const{browserHistory:c,browserHistoryOnLoad:u,browserHistorySeparator:d}=e.params;let{browserHistoryRoot:m}=e.params;return(i.cordova||i.Capacitor&&i.Capacitor.isNative)&&c&&!d&&!m&&o.pathname.indexOf("index.html")&&(m=o.pathname.split("index.html")[0]),!c||!u?(r||(r=l),o.search&&r.indexOf("?")<0&&(r+=o.search),o.hash&&r.indexOf("#")<0&&(r+=o.hash)):(m&&l.indexOf(m)>=0&&(l=l.substring(l.indexOf(m)+m.length),l===""&&(l="/")),d.length>0&&l.indexOf(d)>=0?r=l.substring(l.indexOf(d)+d.length):r=l,e.restoreHistory(),e.history.indexOf(r)>=0?e.history=e.history.slice(0,e.history.indexOf(r)+1):e.params.url===r?e.history=[r]:lt.state&<.state[s.id]&<.state[s.id].url===e.history[e.history.length-1]?r=e.history[e.history.length-1]:e.history=[l.split(d)[0]||"/",r],e.history.length>1?f=!0:e.history=[],e.saveHistory()),e.initialUrl=r,e.historyRestored=f,{initialUrl:r,historyRestored:f}}init(){const e=this,{app:n,view:s}=e,a=Le();e.mount();const{initialUrl:i,historyRestored:o}=e.getInitialUrl();(s&&e.params.iosSwipeBack&&n.theme==="ios"||s&&e.params.mdSwipeBack&&n.theme==="md")&&y2(e);const{browserHistory:r,browserHistoryOnLoad:l,browserHistoryAnimateOnLoad:f,browserHistoryInitialMatch:c}=e.params;let u;if(e.history.length>1){const d=c?i:e.history[0];u=e.findMatchingRoute(d),u||(u=te(e.parseRouteUrl(d),{route:{url:d,path:d.split("?")[0]}}))}else u=e.findMatchingRoute(i),u||(u=te(e.parseRouteUrl(i),{route:{url:i,path:i.split("?")[0]}}));if(e.$el.children(".page").length===0&&i&&e.params.loadInitialPage)e.navigate(i,{initial:!0,reloadCurrent:!0,browserHistory:!1,animate:!1,once:{modalOpen(){if(!o)return;(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0})},pageAfterIn(){if(!o)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 d;e.currentRoute=u,e.$el.children(".page").each(m=>{const h=P(m);let p;e.setPagePosition(h,"current"),e.dynamicNavbar&&(p=h.children(".navbar"),p.length>0?(e.$navbarsEl.parents(a).length||e.$el.prepend(e.$navbarsEl),e.setNavbarPosition(p,"current"),e.$navbarsEl.append(p),p.children(".title-large").length&&p.addClass("navbar-large"),h.children(".navbar").remove()):(e.$navbarsEl.addClass("navbar-hidden"),p.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"}),p&&p.length&&p.addClass("navbar-master"),s.checkMasterDetailBreakpoint());const b={route:e.currentRoute};e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.options&&te(b,e.currentRoute.route.options),e.currentPageEl=h[0],e.dynamicNavbar&&p.length&&(e.currentNavbarEl=p[0]),e.removeThemeElements(h),e.dynamicNavbar&&p.length&&e.removeThemeElements(p),b.route.route.tab&&(d=!0,e.tabLoad(b.route.route.tab,te({},b))),e.pageCallback("init",h,p,"current",void 0,b),e.pageCallback("beforeIn",h,p,"current",void 0,b),e.pageCallback("afterIn",h,p,"current",void 0,b)}),o&&(c?(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>1&&e.back({preload:!0}):e.navigate(i,{initial:!0,browserHistory:!1,history:!1,animate:f,once:{pageAfterIn(){(e.params.preloadPreviousPage||e.params[`${n.theme}SwipeBack`])&&e.history.length>2&&e.back({preload:!0})}}})),!o&&!d&&(e.history.push(i),e.saveHistory())}i&&r&&l&&(!lt.state||!lt.state[s.id])&<.initViewState(s.id,{url:i}),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}}fn.prototype.navigate=S2;fn.prototype.refreshPage=w2;fn.prototype.tabLoad=T2;fn.prototype.tabRemove=M2;fn.prototype.modalLoad=P2;fn.prototype.modalRemove=I2;fn.prototype.back=A2;fn.prototype.clearPreviousHistory=B2;const Gs=fn,fp={name:"router",static:{Router:Gs},instance:{cache:{xhr:[],templates:[],components:[]}},create(){const t=this;t.app?t.params.router&&(t.router=new Gs(t.app,t)):t.router=new Gs(t)}};function L2(t){const e=t.app,n=it();if(t.resizableInitialized)return;te(t,{resizable:!0,resizableWidth:null,resizableInitialized:!0});const s=P("html"),{$el:a}=t;if(!a)return;let i,o,r;const l={};let f,c,u,d;function m(k){if(!k)return null;if(k.indexOf("%")>=0||k.indexOf("vw")>=0)return parseInt(k,10)/100*e.width;const E=parseInt(k,10);return Number.isNaN(E)?null:E}function h(){return t.resizable&&a.hasClass("view-resizable")&&a.hasClass("view-master-detail")}function p(k){if(!h())return;l.x=k.type==="touchstart"?k.targetTouches[0].pageX:k.pageX,l.y=k.type==="touchstart"?k.targetTouches[0].pageY:k.pageY,r=!1,o=!0;const E=a.children(".page-master");u=m(E.css("min-width")),d=m(E.css("max-width"))}function b(k){if(!o)return;k.f7PreventSwipePanel=!0;const E=k.type==="touchmove"?k.targetTouches[0].pageX:k.pageX;r||(c=i[0].offsetLeft+i[0].offsetWidth,a.addClass("view-resizing"),s.css("cursor","col-resize")),r=!0,k.preventDefault(),f=E-l.x;let S=c+f;u&&!Number.isNaN(u)&&(S=Math.max(S,u)),d&&!Number.isNaN(d)&&(S=Math.min(S,d)),S=Math.min(Math.max(S,0),e.width),t.resizableWidth=S,s[0].style.setProperty("--f7-page-master-width",`${S}px`),a.trigger("view:resize",S),t.emit("local::resize viewResize",t,S)}function g(){if(P("html").css("cursor",""),!o||!r){o=!1,r=!1;return}o=!1,r=!1,s[0].style.setProperty("--f7-page-master-width",`${t.resizableWidth}px`),a.removeClass("view-resizing")}function v(){t.resizableWidth&&(u=m(i.css("min-width")),d=m(i.css("max-width")),u&&!Number.isNaN(u)&&t.resizableWidthd&&(t.resizableWidth=Math.min(t.resizableWidth,d)),t.resizableWidth=Math.min(Math.max(t.resizableWidth,0),e.width),s[0].style.setProperty("--f7-page-master-width",`${t.resizableWidth}px`))}i=t.$el.children(".view-resize-handler"),i.length||(t.$el.append('
'),i=t.$el.children(".view-resize-handler")),t.$resizeHandlerEl=i,a.addClass("view-resizable");const _=n.passiveListener?{passive:!0}:!1;t.$el.on(e.touchEvents.start,".view-resize-handler",p,_),e.on("touchmove:active",b),e.on("touchend:passive",g),e.on("resize",v),t.on("beforeOpen",v),t.once("viewDestroy",()=>{a.removeClass("view-resizable"),t.$resizeHandlerEl.remove(),t.$el.off(e.touchEvents.start,".view-resize-handler",p,_),e.off("touchmove:active",b),e.off("touchend:passive",g),e.off("resize",v),t.off("beforeOpen",v)})}let cp=class extends rt{constructor(e,n,s){s===void 0&&(s={}),super(s,[e]);const a=this,i=a.params.routerId,o={routes:[],routesAdd:[]};if(!i&&!P(n).length){let f="Framework7: can't create a View instance because ";throw f+=typeof n=="string"?`the selector "${n}" didn't match any element`:"el must be an HTMLElement or Dom7 object",new Error(f)}a.params=te({el:n},o,e.params.view,s),a.params.routes.length>0?a.routes=a.params.routes:a.routes=[].concat(e.routes,a.params.routesAdd),te(!1,a,{app:e,name:a.params.name,main:a.params.main,history:[],scrollHistory:{}}),a.useModules(),e.views.push(a),a.main&&(e.views.main=a),a.name&&(e.views[a.name]=a),a.index=e.views.indexOf(a);let r;return a.name?r=`view_${a.name}`:a.main?r="view_main":r=`view_${a.index}`,a.id=r,a.params.init&&(e.initialized?a.init():e.on("init",()=>{a.init()})),a}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(s=>{e[s]=null,delete e[s]}),e=null}checkMasterDetailBreakpoint(e){const n=this,s=n.app,a=n.$el.hasClass("view-master-detail"),i=s.width>=n.params.masterDetailBreakpoint&&n.$el.children(".page-master").length;typeof e>"u"&&i||e===!0?(n.$el.addClass("view-master-detail"),a||(n.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",n),n.$el.trigger("view:masterDetailBreakpoint"))):(n.$el.removeClass("view-master-detail"),a&&(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&&L2(e),n.on("resize",e.checkMasterDetailBreakpoint)}mount(e){const n=this,s=n.app,a=n.params.el||e,i=P(a);let o;typeof a=="string"?o=a:o=(i.attr("id")?`#${i.attr("id")}`:"")+(i.attr("class")?`.${i.attr("class").replace(/ /g,".").replace(".active","")}`:"");let r;s.theme==="ios"&&n.params.iosDynamicNavbar&&(r=i.children(".navbars").eq(0),r.length===0&&(r=P(''))),te(n,{$el:i,el:i[0],main:n.main||i.hasClass("view-main"),$navbarsEl:r,navbarsEl:r?r[0]:void 0,selector:o}),n.main&&(s.views.main=n),i&&i[0]&&(i[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))}};cp.use(fp);const pa=cp;function D2(t){function e(n){const s=Se(),a=P(n.target),i=a.closest("a"),o=i.length>0,r=o&&i.attr("href");if(o&&(i.is(t.params.clicks.externalLinks)||r&&r.indexOf("javascript:")>=0)){const c=i.attr("target");r&&s.cordova&&s.cordova.InAppBrowser&&(c==="_system"||c==="_blank")?(n.preventDefault(),s.cordova.InAppBrowser.open(r,c)):r&&s.Capacitor&&s.Capacitor.Plugins&&s.Capacitor.Plugins.Browser&&(c==="_system"||c==="_blank")&&(n.preventDefault(),s.Capacitor.Plugins.Browser.open({url:r}));return}Object.keys(t.modules).forEach(c=>{const u=t.modules[c].clicks;u&&(n.preventF7Router||Object.keys(u).forEach(d=>{const m=a.closest(d).eq(0);m.length>0&&u[d].call(t,m,m.dataset(),n)}))});let l={};if(o&&(n.preventDefault(),l=i.dataset()),l.clickedEl=i[0],n.preventF7Router||i.hasClass("prevent-router")||i.hasClass("router-prevent"))return;if(r&&r.length>0&&r[0]!=="#"||i.hasClass("back")){let c;if(l.view&&l.view==="current"?c=t.views.current:l.view?c=P(l.view)[0].f7View:(c=a.parents(".view")[0]&&a.parents(".view")[0].f7View,!i.hasClass("back")&&c&&c.params.linksView&&(typeof c.params.linksView=="string"?c=P(c.params.linksView)[0].f7View:c.params.linksView instanceof pa&&(c=c.params.linksView))),c||t.views.main&&(c=t.views.main),!c||!c.router)return;i[0].f7RouteProps&&(l.props=i[0].f7RouteProps),i.hasClass("back")?c.router.back(r,l):c.router.navigate(r,l)}}t.on("click",e)}const R2={name:"clicks",params:{clicks:{externalLinks:".external"}},on:{init(){D2(this)}}},H2={name:"history",static:{history:lt},on:{init(){lt.init(this)}}},pn={registrations:[],register(t,e){const n=this;return!("serviceWorker"in Se().navigator)||!n.serviceWorker.container?new Promise((a,i)=>{i(new Error("Service worker is not supported"))}):new Promise((a,i)=>{n.serviceWorker.container.register(t,e?{scope:e}:{}).then(o=>{pn.registrations.push(o),n.emit("serviceWorkerRegisterSuccess",o),a(o)}).catch(o=>{n.emit("serviceWorkerRegisterError",o),i(o)})})},unregister(t){const e=this;if(!("serviceWorker"in Se().navigator)||!e.serviceWorker.container)return new Promise((a,i)=>{i(new Error("Service worker is not supported"))});let s;return t?Array.isArray(t)?s=t:s=[t]:s=pn.registrations,Promise.all(s.map(a=>new Promise((i,o)=>{a.unregister().then(()=>{pn.registrations.indexOf(a)>=0&&pn.registrations.splice(pn.registrations.indexOf(a),1),e.emit("serviceWorkerUnregisterSuccess",a),i()}).catch(r=>{e.emit("serviceWorkerUnregisterError",a,r),o(r)})})))}},z2={name:"sw",params:{serviceWorker:{path:void 0,scope:void 0}},create(){const t=this,e=Se();te(t,{serviceWorker:{container:"serviceWorker"in e.navigator?e.navigator.serviceWorker:void 0,registrations:pn.registrations,register:pn.register.bind(t),unregister:pn.unregister.bind(t)}})},on:{init(){const t=Se();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,s=e.params.serviceWorker.scope;if(!n||Array.isArray(n)&&!n.length)return;(Array.isArray(n)?n:[n]).forEach(i=>{e.serviceWorker.register(i,s)})}}};function ed(t){t===void 0&&(t={});const e={__store:!0},n={...t.state||{}},s={...t.actions||{}},a={...t.getters||{}},i=te({},n);let o=[];const r={},l={};Object.keys(a).forEach(p=>{r[p]=[],l[p]=[]});const f=p=>a[p]({state:e.state}),c=(p,b)=>{r[p]||(r[p]=[]),b.forEach(g=>{r[p].indexOf(g)<0&&r[p].push(g)})},u=(p,b)=>{l[p]||(l[p]=[]),l[p].push(b)},d=p=>{Object.keys(r).filter(g=>r[g].indexOf(p)>=0).forEach(g=>{!l[g]||!l[g].length||l[g].forEach(v=>{v(f(g))})})},m=p=>{Object.keys(l).forEach(b=>{const g=l[b];g.indexOf(p)>=0&&g.splice(g.indexOf(p),1)})};e.__removeCallback=p=>{m(p)};const h=function(p,b){if(b===void 0&&(b=!0),p==="constructor")return;o=[];const g=f(p);c(p,o);const _={value:g,onUpdated:E=>{u(p,E)}};if(!b)return _;const k=E=>{_.value=E};return _.__callback=k,u(p,k),_};return e.state=new Proxy(i,{set:(p,b,g)=>(p[b]=g,d(b),!0),get:(p,b)=>(o.push(b),p[b])}),e.getters=new Proxy(a,{set:()=>!1,get:(p,b)=>{if(p[b])return h(b,!0)}}),e._gettersPlain=new Proxy(a,{set:()=>!1,get:(p,b)=>{if(p[b])return h(b,!1)}}),e.dispatch=(p,b)=>new Promise((g,v)=>{if(!s[p])throw v(),new Error(`Framework7: Store action "${p}" is not found`);const _=s[p]({state:e.state,dispatch:e.dispatch},b);g(_)}),e}const F2={name:"store",static:{createStore:ed},proto:{createStore:ed}},_n=()=>{const t=Se();return t.Capacitor&&t.Capacitor.isNative&&t.Capacitor.Plugins&&t.Capacitor.Plugins.StatusBar},Ft={hide(){const t=Se();Ke().cordova&&t.StatusBar&&t.StatusBar.hide(),_n()&&t.Capacitor.Plugins.StatusBar.hide()},show(){const t=Se();Ke().cordova&&t.StatusBar&&t.StatusBar.show(),_n()&&t.Capacitor.Plugins.StatusBar.show()},onClick(){const t=this;let e;P(".popup.modal-in").length>0?e=P(".popup.modal-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):P(".panel.panel-in").length>0?e=P(".panel.panel-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):P(".views > .view.tab-active").length>0?e=P(".views > .view.tab-active").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):P(".views").length>0?e=P(".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=Se();Ke().cordova&&e.StatusBar&&(t==="white"?e.StatusBar.styleLightContent():e.StatusBar.styleDefault()),_n()&&(t==="white"?e.Capacitor.Plugins.StatusBar.setStyle({style:"DARK"}):e.Capacitor.Plugins.StatusBar.setStyle({style:"LIGHT"}))},setBackgroundColor(t){const e=Se();Ke().cordova&&e.StatusBar&&e.StatusBar.backgroundColorByHexString(t),_n()&&e.Capacitor.Plugins.StatusBar.setBackgroundColor({color:t})},isVisible(){const t=Se(),e=Ke();return new Promise(n=>{e.cordova&&t.StatusBar&&n(t.StatusBar.isVisible),_n()&&t.Capacitor.Plugins.StatusBar.getInfo().then(s=>{n(s.visible)}),n(!1)})},overlaysWebView(t){t===void 0&&(t=!0);const e=Se();Ke().cordova&&e.StatusBar&&e.StatusBar.overlaysWebView(t),_n()&&e.Capacitor.Plugins.StatusBar.setOverlaysWebView({overlay:t})},init(){const t=this,e=Se(),n=Ke(),s=t.params.statusbar;if(!s.enabled)return;const a=n.cordova&&e.StatusBar,i=_n();(a||i)&&(s.scrollTopOnClick&&P(e).on("statusTap",Ft.onClick.bind(t)),n.ios&&(s.iosOverlaysWebView?Ft.overlaysWebView(!0):Ft.overlaysWebView(!1),s.iosTextColor==="white"?Ft.setTextColor("white"):Ft.setTextColor("black")),n.android&&(s.androidOverlaysWebView?Ft.overlaysWebView(!0):Ft.overlaysWebView(!1),s.androidTextColor==="white"?Ft.setTextColor("white"):Ft.setTextColor("black"))),s.iosBackgroundColor&&n.ios&&Ft.setBackgroundColor(s.iosBackgroundColor),s.androidBackgroundColor&&n.android&&Ft.setBackgroundColor(s.androidBackgroundColor)}},N2={name:"statusbar",params:{statusbar:{enabled:!0,scrollTopOnClick:!0,iosOverlaysWebView:!0,iosTextColor:"black",iosBackgroundColor:null,androidOverlaysWebView:!1,androidTextColor:"black",androidBackgroundColor:null}},create(){It(this,{statusbar:Ft})},on:{init(){const t=this;Ft.init.call(t)}}};function V2(t){const e=P(".popover.modal-in .view"),n=P(".popup.modal-in .view"),s=P(".panel.panel-in .view");let a=P(".views");a.length===0&&(a=t.$el);let i=a.children(".view");if(i.length===0&&(i=a.children(".tabs").children(".view")),i.length>1&&i.hasClass("tab")&&(i=a.children(".view.tab-active"),i.length===0&&(i=a.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(s.length>0&&s[0].f7View)return s[0].f7View;if(i.length>0){if(i.length===1&&i[0].f7View)return i[0].f7View;if(i.length>1)return t.views.main}}const Y2={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:pa},create(){const t=this;te(t,{views:te([],{create(e,n){return new pa(t,e,n)},get(e){const n=P(e);if(n.length&&n[0].f7View)return n[0].f7View}})}),Object.defineProperty(t.views,"current",{enumerable:!0,configurable:!0,get(){return V2(t)}}),t.view=t.views},on:{init(){const t=this;P(".view-init").each(e=>{if(e.f7View)return;const n=P(e).dataset();t.views.create(e,n)})},"modalOpen panelOpen":function(e){const n=this;e.$el.find(".view-init").each(s=>{if(s.f7View)return;const a=P(s).dataset();n.views.create(s,a)})},"modalBeforeDestroy panelBeforeDestroy":function(e){!e||!e.$el||e.$el.find(".view-init").each(n=>{const s=n.f7View;s&&s.destroy()})}},vnode:{"view-init":{insert(t){const e=this,n=t.elm;if(n.f7View)return;const s=P(n).dataset();e.views.create(n,s)},destroy(t){const n=t.elm.f7View;n&&n.destroy()}}}},q2={size(t){const e=this;let n=P(t);if(n.hasClass("navbars")){n=n.children(".navbar").each(w=>{e.navbar.size(w)});return}const s=n.children(".navbar-inner");if(!s.length)return;const a=s.hasClass("navbar-inner-centered-title")||e.params.navbar[`${e.theme}CenterTitle`],i=e.theme==="ios"&&!e.params.navbar[`${e.theme}CenterTitle`];if(!a&&!i||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`]&&s.addClass("navbar-inner-centered-title"),e.theme==="ios"&&!e.params.navbar.iosCenterTitle&&s.addClass("navbar-inner-left-title");const o=n.parents(".view").eq(0),r=e.rtl?s.children(".right"):s.children(".left"),l=e.rtl?s.children(".left"):s.children(".right"),f=s.children(".title"),c=s.children(".subnavbar"),u=r.length===0,d=l.length===0,m=u?0:r.outerWidth(!0),h=d?0:l.outerWidth(!0),p=f.outerWidth(!0),b=s.styles(),v=s[0].offsetWidth-parseInt(b.paddingLeft,10)-parseInt(b.paddingRight,10),_=n.hasClass("navbar-previous"),k=s.hasClass("sliding");let E,S;o.length>0&&o[0].f7View&&(E=o[0].f7View.router,S=E&&E.dynamicNavbar);let I,T;d&&(I=v-p),u&&(I=0),!u&&!d&&(I=(v-h-p+m)/2);let A=(v-p)/2;v-m-h>p?(Av-h&&(A=v-h-p),T=A-I):T=0;const y=e.rtl?-1:1;if(S&&e.theme==="ios"){if(f.hasClass("sliding")||f.length>0&&k){let w=-(I+T)*y;const D=(v-I-T-p)*y;if(_&&E&&E.params.iosAnimateNavbarBackIcon){const O=n.parent().find(".navbar-current").children(".left.sliding").find(".back .icon ~ span");O.length>0&&(w+=O[0].offsetLeft)}f[0].f7NavbarLeftOffset=w,f[0].f7NavbarRightOffset=D}if(!u&&(r.hasClass("sliding")||k)){if(e.rtl)r[0].f7NavbarLeftOffset=-(v-r[0].offsetWidth)/2*y,r[0].f7NavbarRightOffset=m*y;else if(r[0].f7NavbarLeftOffset=-m,r[0].f7NavbarRightOffset=(v-r[0].offsetWidth)/2,E&&E.params.iosAnimateNavbarBackIcon&&r.find(".back .icon").length>0&&r.find(".back .icon ~ span").length){const w=r[0].f7NavbarLeftOffset,D=r[0].f7NavbarRightOffset;r[0].f7NavbarLeftOffset=0,r[0].f7NavbarRightOffset=0,r.find(".back .icon ~ span")[0].f7NavbarLeftOffset=w,r.find(".back .icon ~ span")[0].f7NavbarRightOffset=D-r.find(".back .icon")[0].offsetWidth}}!d&&(l.hasClass("sliding")||k)&&(e.rtl?(l[0].f7NavbarLeftOffset=-h*y,l[0].f7NavbarRightOffset=(v-l[0].offsetWidth)/2*y):(l[0].f7NavbarLeftOffset=-(v-l[0].offsetWidth)/2,l[0].f7NavbarRightOffset=h)),c.length&&(c.hasClass("sliding")||k)&&(c[0].f7NavbarLeftOffset=e.rtl?c[0].offsetWidth:-c[0].offsetWidth,c[0].f7NavbarRightOffset=-c[0].f7NavbarLeftOffset)}if(a){let w=T;e.rtl&&u&&d&&f.length>0&&(w=-w),f.css({left:`${w}px`})}},hide(t,e,n,s){e===void 0&&(e=!0),n===void 0&&(n=!1),s===void 0&&(s=!1);const a=this;let i=P(t);const o=i.hasClass("navbar")&&i.parent(".navbars").length&&!s;if(o&&(i=i.parents(".navbars")),!i.length||i.hasClass("navbar-hidden"))return;let r=`navbar-hidden${e?" navbar-transitioning":""}`;(o?i.find(".navbar-current .title-large").length:i.find(".title-large").length)&&(r+=" navbar-large-hidden"),n&&(r+=" navbar-hidden-statusbar"),i.transitionEnd(()=>{i.removeClass("navbar-transitioning")}),i.addClass(r),o?i.children(".navbar").each(f=>{P(f).trigger("navbar:hide"),a.emit("navbarHide",f)}):(i.trigger("navbar:hide"),a.emit("navbarHide",i[0]))},show(t,e,n){t===void 0&&(t=".navbar-hidden"),e===void 0&&(e=!0),n===void 0&&(n=!1);const s=this;let a=P(t);const i=a.hasClass("navbar")&&a.parent(".navbars").length&&!n;i&&(a=a.parents(".navbars")),a.length&&a.hasClass("navbar-hidden")&&(e&&(a.addClass("navbar-transitioning"),a.transitionEnd(()=>{a.removeClass("navbar-transitioning")})),a.removeClass("navbar-hidden navbar-large-hidden navbar-hidden-statusbar"),i?a.children(".navbar").each(o=>{P(o).trigger("navbar:show"),s.emit("navbarShow",o)}):(a.trigger("navbar:show"),s.emit("navbarShow",a[0])))},getElByPage(t){let e,n,s;if(t.$navbarEl||t.$el?(s=t,e=t.$el):(e=P(t),e.length>0&&(s=e[0].f7Page)),s&&s.$navbarEl&&s.$navbarEl.length>0?n=s.$navbarEl:e&&(n=e.children(".navbar")),!(!n||n&&n.length===0))return n[0]},getPageByEl(t){const e=P(t);if(e.parents(".page").length)return e.parents(".page")[0];let n;return e.parents(".view").find(".page").each(s=>{s&&s.f7Page&&s.f7Page.navbarEl&&e[0]===s.f7Page.navbarEl&&(n=s)}),n},collapseLargeTitle(t){const e=this;let n=P(t);if(n.hasClass("navbars")&&(n=n.find(".navbar"),n.length>1&&(n=P(t).find(".navbar-large.navbar-current")),n.length>1||!n.length))return;const s=P(e.navbar.getPageByEl(n));n.addClass("navbar-large-collapsed"),s.eq(0).addClass("page-with-navbar-large-collapsed").trigger("page:navbarlargecollapsed"),e.emit("pageNavbarLargeCollapsed",s[0]),n.trigger("navbar:collapse"),e.emit("navbarCollapse",n[0])},expandLargeTitle(t){const e=this;let n=P(t);if(n.hasClass("navbars")&&(n=n.find(".navbar-large"),n.length>1&&(n=P(t).find(".navbar-large.navbar-current")),n.length>1||!n.length))return;const s=P(e.navbar.getPageByEl(n));n.removeClass("navbar-large-collapsed"),s.eq(0).removeClass("page-with-navbar-large-collapsed").trigger("page:navbarlargeexpanded"),e.emit("pageNavbarLargeExpanded",s[0]),n.trigger("navbar:expand"),e.emit("navbarExpand",n[0])},toggleLargeTitle(t){const e=this;let n=P(t);n.hasClass("navbars")&&(n=n.find(".navbar-large"),n.length>1&&(n=P(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,s,a){const i=this,o=it(),r=P(t),l=P(e),f=l.find(".title-large"),c=f.length||l.hasClass(".navbar-large");let u=44;const d=i.params.navbar.snapPageScrollToLargeTitle,m=i.params.navbar.snapPageScrollToTransparentNavbar;let h,p,b,g,v,_,k,E,S,I;(s||n&&c)&&(S=l.css("--f7-navbar-large-title-height"),S&&S.indexOf("px")>=0?(S=parseInt(S,10),Number.isNaN(S)&&f.length?S=f[0].offsetHeight:Number.isNaN(S)&&(i.theme==="ios"?S=52:i.theme==="md"&&(S=88))):f.length?S=f[0].offsetHeight:i.theme==="ios"?S=52:i.theme==="md"&&(S=88)),n&&c&&(u+=S);let T,A,y,w;const D=70,O=300;function L(){r.find(".page-content").each(ne=>{ne.f7ScrollableDistance=ne.scrollHeight-ne.offsetHeight})}function j(){l.hasClass("with-searchbar-expandable-enabled")||!A||p<0||(p>=S/2&&p=I/2&&p{W(),clearTimeout(w),w=null},D)):(clearTimeout(y),y=setTimeout(()=>{W()},O)))}let B=null,q=null;function X(ne){if(l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden"))return;const K=l.hasClass("navbar-large-transparent")||l.hasClass("navbar-large")&&l.hasClass("navbar-transparent");B=q;const pe=Math.min(S,ne.f7ScrollableDistance||S);q=Math.min(Math.max(p/pe,0),1);const ke=B>0&&B<1;if(l.hasClass("with-searchbar-expandable-enabled"))return;E=l.hasClass("navbar-large-collapsed");const re=l.find(".navbar-bg");q===0&&E?i.navbar.expandLargeTitle(l[0]):q===1&&!E&&i.navbar.collapseLargeTitle(l[0]),q===0&&E||q===0&&ke||q===1&&!E||q===1&&ke?(i.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",""),K&&re.css("opacity",""),re.css("transform","")):q>0&&q<1&&(i.theme==="md"&&l.find(".navbar-inner").css("overflow","visible"),l.find(".title").css("opacity",-.5+q*1.5),l.find(".title-large-text, .subnavbar").css("transform",`translate3d(0px, ${-1*q*S}px, 0)`),l.find(".title-large-text").css("opacity",1-q*2),K&&re.css("opacity",q),re.css("transform",`translate3d(0px, ${-1*q*S}px, 0)`)),d&&(o.touch?w&&(clearTimeout(w),w=null,w=setTimeout(()=>{j(),clearTimeout(w),w=null},D)):(clearTimeout(y),y=setTimeout(()=>{j()},O)))}function H(){r.hasClass("page-with-card-opened")||(b=A.scrollHeight,g=A.offsetHeight,v=p+g>=b,k=l.hasClass("navbar-hidden")||l.parent(".navbars").hasClass("navbar-hidden"),v?i.params.navbar.showOnPageScrollEnd&&(_="show"):h>p?i.params.navbar.showOnPageScrollTop||p<=u?_="show":_="hide":p>u?_="hide":_="show",_==="show"&&k?(i.navbar.show(l,!0,!0),k=!1):_==="hide"&&!k&&(i.navbar.hide(l,!0,!1,!0),k=!0),h=p)}function G(ne){A=this,!(ne&&ne.target&&ne.target!==A)&&(p=A.scrollTop,T=p,s?X(A):a&&Y(),!r.hasClass("page-previous")&&n&&H())}function ce(){T=!1}function ye(){clearTimeout(w),w=null,w=setTimeout(()=>{T!==!1&&(a&&!s?W():j(),clearTimeout(w),w=null)},D)}r.on("scroll",".page-content",G,!0),o.touch&&(s&&d||a&&m)&&(i.on("touchstart:passive",ce),i.on("touchend:passive",ye)),L(),(s||a)&&r.find(".page-content").each(ne=>{ne.scrollTop>0&&G.call(ne)}),i.on("resize",L),r[0].f7DetachNavbarScrollHandlers=function(){i.off("resize",L),delete r[0].f7DetachNavbarScrollHandlers,r.off("scroll",".page-content",G,!0),o.touch&&(s&&d||a&&m)&&(i.off("touchstart:passive",ce),i.off("touchend:passive",ye))}}},W2={name:"navbar",create(){It(this,{navbar:q2})},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;P(".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 s=t.$el.parents(".view")[0].f7View,a=e.navbar.getElByPage(t);if(a?n=P(a).parents(".navbars"):n=t.$el.parents(".view").children(".navbars"),t.$el.hasClass("no-navbar")||s.router.dynamicNavbar&&!a){const i=!!(t.pageFrom&&t.router.history.length>0);e.navbar.hide(n,i)}else e.navbar.show(n)},pageReinit(t){const e=this,n=P(e.navbar.getElByPage(t));!n||n.length===0||e.navbar.size(n)},pageInit(t){const e=this,n=P(e.navbar.getElByPage(t));if(!n||n.length===0)return;e.navbar.size(n);let s;n.find(".title-large").length>0&&n.addClass("navbar-large"),n.hasClass("navbar-large")&&(e.params.navbar.collapseLargeTitleOnScroll&&(s=!0),t.$el.addClass("page-with-navbar-large"));let a;!s&&n.hasClass("navbar-transparent")&&(a=!0);let i;(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")?i=!1:i=!0),(s||i||a)&&e.navbar.initNavbarOnScroll(t.el,n[0],i,s,a)},"panelOpen panelSwipeOpen modalOpen":function(e){const n=this;e.$el.find(".navbar:not(.navbar-previous)").each(s=>{n.navbar.size(s)})},tabShow(t){const e=this;P(t).find(".navbar:not(.navbar-previous)").each(n=>{e.navbar.size(n)})}},clicks:{".navbar .title":function(e,n,s){if(!this.params.navbar.scrollTopOnTitleClick||P(s.target).closest("a, button").length>0)return;let i;const o=e.parents(".navbar"),r=o.parents(".navbars");i=o.parents(".page-content"),i.length===0&&(o.parents(".page").length>0&&(i=o.parents(".page").find(".page-content")),i.length===0&&r.length&&r.nextAll(".page-current").length>0&&(i=r.nextAll(".page-current").find(".page-content")),i.length===0&&o.nextAll(".page-current").length>0&&(i=o.nextAll(".page-current").find(".page-content"))),i&&i.length>0&&(i.hasClass("tab")&&(i=i.parent(".tabs").children(".page-content.tab-active")),i.length>0&&i.scrollTop(0,300))}},vnode:{navbar:{postpatch(t){this.navbar.size(t.elm)}}}},j2={setHighlight(t){const e=this,n=P(t);if(e.theme==="ios"&&!n.hasClass("tabbar-highlight")||n.length===0||!(n.hasClass("tabbar")||n.hasClass("tabbar-icons")))return;let s=n.find(".tab-link-highlight");const a=n.find(".tab-link").length;if(a===0){s.remove();return}s.length===0?(n.children(".toolbar-inner").append(''),s=n.find(".tab-link-highlight")):s.next().length&&n.children(".toolbar-inner").append(s);const i=n.find(".tab-link-active");let o,r;if(n.hasClass("tabbar-scrollable")&&i&&i[0])o=`${i[0].offsetWidth}px`,r=`${i[0].offsetLeft}px`;else{const l=i.index();o=`${100/a}%`,r=`${(e.rtl?-l:l)*100}%`}Bt(()=>{s.css("width",o).transform(`translate3d(${r},0,0)`)})},init(t){this.toolbar.setHighlight(t)},hide(t,e){e===void 0&&(e=!0);const n=this,s=P(t);if(s.hasClass("toolbar-hidden"))return;const a=`toolbar-hidden${e?" toolbar-transitioning":""}`;s.transitionEnd(()=>{s.removeClass("toolbar-transitioning")}),s.addClass(a),s.trigger("toolbar:hide"),n.emit("toolbarHide",s[0])},show(t,e){e===void 0&&(e=!0);const n=this,s=P(t);s.hasClass("toolbar-hidden")&&(e&&(s.addClass("toolbar-transitioning"),s.transitionEnd(()=>{s.removeClass("toolbar-transitioning")})),s.removeClass("toolbar-hidden"),s.trigger("toolbar:show"),n.emit("toolbarShow",s[0]))},initToolbarOnScroll(t){const e=this,n=P(t);let s=n.parents(".view").children(".toolbar");if(s.length===0&&(s=n.find(".toolbar")),s.length===0&&(s=n.parents(".views").children(".tabbar, .tabbar-icons")),s.length===0)return;let a,i,o,r,l,f,c;function u(d){if(n.hasClass("page-with-card-opened")||n.hasClass("page-previous"))return;const m=this;d&&d.target&&d.target!==m||(i=m.scrollTop,o=m.scrollHeight,r=m.offsetHeight,l=i+r>=o,c=s.hasClass("toolbar-hidden"),l?e.params.toolbar.showOnPageScrollEnd&&(f="show"):a>i?e.params.toolbar.showOnPageScrollTop||i<=44?f="show":f="hide":i>44?f="hide":f="show",f==="show"&&c?(e.toolbar.show(s),c=!1):f==="hide"&&!c&&(e.toolbar.hide(s),c=!0),a=i)}n.on("scroll",".page-content",u,!0),n[0].f7ScrollToolbarHandler=u}},X2={name:"toolbar",create(){It(this,{toolbar:j2})},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)}}}},G2={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=>P(n).parents(".page")[0]===t.$el[0]).length&&t.$el.addClass("page-with-subnavbar")}}};let td=class{constructor(e,n,s,a){const i=this;if(!n)return;const{left:o,top:r,width:l,height:f}=n[0].getBoundingClientRect(),c={x:s-o,y:a-r};let u=Math.max((f**2+l**2)**.5,48),d=!1;const m=e.params.touch.touchRippleInsetElements||"";if(m&&n.is(m)&&(d=!0),d&&(u=Math.max(Math.min(l,f),48)),!d&&n.css("overflow")==="hidden"){const h=((c.x-l/2)**2+(c.y-f/2)**2)**.5,p=(u/2+h)/(u/2);i.rippleTransform=`translate3d(0px, 0px, 0) scale(${p*2})`}else i.rippleTransform=`translate3d(${-c.x+l/2}px, ${-c.y+f/2}px, 0) scale(1)`;return d&&n.addClass("ripple-inset"),i.$rippleWaveEl=P(`
`),n.prepend(i.$rippleWaveEl),i.$rippleWaveEl.animationEnd(()=>{i.$rippleWaveEl&&(i.$rippleWaveEl.hasClass("ripple-wave-out")||(i.$rippleWaveEl.addClass("ripple-wave-in"),i.shouldBeRemoved&&i.out()))}),i}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 U2={name:"touch-ripple",static:{TouchRipple:td},create(){const t=this;t.touchRipple={create(){for(var e=arguments.length,n=new Array(e),s=0;s0?m=!0:Xn.length>0&&Xn.forEach(h=>{h.type==="dialog"&&(m=!0)}),m)return Bn.push(s),s}const c=o.parent(),u=o.parents(a).length>0;c.is(s.$containerEl)||(s.$containerEl.append(o),s.once(`${l}Closed`,()=>{u?c.append(o):o.remove()})),o.show(),s.params.backdrop&&(s.params.backdropUnique||s.forceBackdropUnique)&&s.$backdropEl&&s.$backdropEl.insertBefore(o),s._clientLeft=o[0].clientLeft;function d(){o.hasClass("modal-out")?s.onClosed():o.hasClass("modal-in")&&s.onOpened()}return f?(r&&(r.removeClass("not-animated"),r.addClass("backdrop-in")),o.animationEnd(()=>{d()}),o.transitionEnd(()=>{d()}),o.removeClass("modal-out not-animated").addClass("modal-in"),s.onOpen()):(r&&r.addClass("backdrop-in not-animated"),o.removeClass("modal-out").addClass("modal-in not-animated"),s.onOpen(),s.onOpened()),s}close(e){const n=this,s=n.$el,a=n.$backdropEl;let i=!0;if(typeof e<"u"?i=e:typeof n.params.animate<"u"&&(i=n.params.animate),!s||!s.hasClass("modal-in"))return Bn.indexOf(n)>=0&&Bn.splice(Bn.indexOf(n),1),n;if(a){let r=!0;n.type==="popup"&&n.$el.prevAll(".popup.modal-in").add(n.$el.nextAll(".popup.modal-in")).each(l=>{const f=l.f7Modal;f&&f.params.closeByBackdropClick&&f.params.backdrop&&f.backdropEl===n.backdropEl&&(r=!1)}),r&&(a[i?"removeClass":"addClass"]("not-animated"),a.removeClass("backdrop-in"))}s[i?"removeClass":"addClass"]("not-animated");function o(){s.hasClass("modal-out")?n.onClosed():s.hasClass("modal-in")&&n.onOpened()}return i?(s.animationEnd(()=>{o()}),s.transitionEnd(()=>{o()}),s.removeClass("modal-in").addClass("modal-out"),n.onClose()):(s.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),n.onClose(),n.onClosed()),n.type==="dialog"&&x2(),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),ft(e),e.destroyed=!0)}};const Qt=$2;class Q2 extends Qt{constructor(e,n){const s=te({backdrop:!0,closeByBackdropClick:!0,on:{}},n);super(e,s);const a=this;a.params=s;let i;if(a.params.el?i=P(a.params.el):i=P(a.params.content),i&&i.length>0&&i[0].f7Modal)return i[0].f7Modal;if(i.length===0)return a.destroy();let o;a.params.backdrop&&(o=e.$el.children(".custom-modal-backdrop"),o.length===0&&(o=P('
'),e.$el.append(o)));function r(l){!a||a.destroyed||o&&l.target===o[0]&&a.close()}return a.on("customModalOpened",()=>{a.params.closeByBackdropClick&&a.params.backdrop&&e.on("click",r)}),a.on("customModalClose",()=>{a.params.closeByBackdropClick&&a.params.backdrop&&e.off("click",r)}),te(a,{app:e,$el:i,el:i[0],$backdropEl:o,backdropEl:o&&o[0],type:"customModal"}),i[0].f7Modal=a,a}}const nd=Q2,K2={name:"modal",static:{Modal:Qt,CustomModal:nd},create(){const t=this;t.customModal={create(e){return new nd(t,e)}}},params:{modal:{queueDialogs:!0}}};let Z2=class extends Qt{constructor(e,n){const s=te({title:e.params.dialog.title,text:void 0,content:"",buttons:[],verticalButtons:!1,onClick:void 0,cssClass:void 0,destroyOnClose:!1,on:{}},n);typeof s.closeByBackdropClick>"u"&&(s.closeByBackdropClick=e.params.dialog.closeByBackdropClick),typeof s.backdrop>"u"&&(s.backdrop=e.params.dialog.backdrop),super(e,s);const a=this,i=Ke(),o=Le(),{title:r,text:l,content:f,buttons:c,verticalButtons:u,cssClass:d,backdrop:m}=s;a.params=s;let h;if(a.params.el)h=P(a.params.el);else{const k=["dialog"];c.length===0&&k.push("dialog-no-buttons"),c.length>0&&k.push(`dialog-buttons-${c.length}`),u&&k.push("dialog-buttons-vertical"),d&&k.push(d);let E="";c.length>0&&(E=R("div",{class:"dialog-buttons"},c.map(I=>R("span",{class:`dialog-button${I.strong?" dialog-button-strong":""}${I.color?` color-${I.color}`:""}${I.cssClass?` ${I.cssClass}`:""}`},I.text))));const S=R("div",{class:k.join(" ")},R("div",{class:"dialog-inner"},r&&R("div",{class:"dialog-title"},r),l&&R("div",{class:"dialog-text"},l),f),E);h=P(S)}if(h&&h.length>0&&h[0].f7Modal)return h[0].f7Modal;if(h.length===0)return a.destroy();let p;m&&(p=e.$el.children(".dialog-backdrop"),p.length===0&&(p=P('
'),e.$el.append(p)));function b(k){const S=P(this).index(),I=c[S];I.onClick&&I.onClick(a,k),a.params.onClick&&a.params.onClick(a,S),I.close!==!1&&a.close()}let g;function v(k){const E=k.keyCode;c.forEach((S,I)=>{S.keyCodes&&S.keyCodes.indexOf(E)>=0&&(o.activeElement&&o.activeElement.blur(),S.onClick&&S.onClick(a,k),a.params.onClick&&a.params.onClick(a,I),S.close!==!1&&a.close())})}c&&c.length>0&&(a.on("open",()=>{h.find(".dialog-button").each((k,E)=>{c[E].keyCodes&&(g=!0),P(k).on("click",b)}),g&&!i.ios&&!i.android&&!i.cordova&&!i.capacitor&&P(o).on("keydown",v)}),a.on("close",()=>{h.find(".dialog-button").each(k=>{P(k).off("click",b)}),g&&!i.ios&&!i.android&&!i.cordova&&!i.capacitor&&P(o).off("keydown",v),g=!1})),te(a,{app:e,$el:h,el:h[0],$backdropEl:p,backdropEl:p&&p[0],type:"dialog",setProgress(k,E){return e.progressbar.set(h.find(".progressbar"),k,E),a},setText(k){let E=h.find(".dialog-text");return E.length===0&&(E=P('
'),typeof r<"u"?E.insertAfter(h.find(".dialog-title")):h.find(".dialog-inner").prepend(E)),E.html(k),a.params.text=k,a},setTitle(k){let E=h.find(".dialog-title");return E.length===0&&(E=P('
'),h.find(".dialog-inner").prepend(E)),E.html(k),a.params.title=k,a}});function _(k){const E=k.target;P(E).closest(a.el).length===0&&a.params.closeByBackdropClick&&a.backdropEl&&a.backdropEl===E&&a.close()}return a.on("opened",()=>{a.params.closeByBackdropClick&&e.on("click",_)}),a.on("close",()=>{a.params.closeByBackdropClick&&e.off("click",_)}),h[0].f7Modal=a,a.params.destroyOnClose&&a.once("closed",()=>{setTimeout(()=>{a.destroy()},0)}),a}};const Jt=Z2,J2={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:Jt},create(){const t=this;function e(){return t.params.dialog.title||t.name}const n=t.params.dialog.destroyPredefinedDialogs,s=t.params.dialog.keyboardActions,i=t.params.dialog.autoFocus?{on:{opened(r){r.$el.find("input").eq(0).focus()}}}:{},o=t.theme==="ios";t.dialog=te(on({app:t,constructor:Jt,defaultSelector:".dialog.modal-in"}),{alert(){for(var r=arguments.length,l=new Array(r),f=0;f"u"?e():u,text:c,buttons:[{text:t.params.dialog.buttonOk,strong:o,onClick:d,keyCodes:s?[13,27]:null}],destroyOnClose:n}).open()},prompt(){for(var r=arguments.length,l=new Array(r),f=0;f"u"||h===null?"":h,new Jt(t,{title:typeof u>"u"?e():u,text:c,content:`
`,buttons:[{text:t.params.dialog.buttonCancel,keyCodes:s?[27]:null,color:null},{text:t.params.dialog.buttonOk,strong:o,keyCodes:s?[13]:null}],onClick(p,b){const g=p.$el.find(".dialog-input").val();b===0&&m&&m(g),b===1&&d&&d(g)},destroyOnClose:n,...i}).open()},confirm(){for(var r=arguments.length,l=new Array(r),f=0;f"u"?e():u,text:c,buttons:[{text:t.params.dialog.buttonCancel,onClick:m,keyCodes:s?[27]:null,color:null},{text:t.params.dialog.buttonOk,strong:o,onClick:d,keyCodes:s?[13]:null}],destroyOnClose:n}).open()},login(){for(var r=arguments.length,l=new Array(r),f=0;f"u"?e():u,text:c,content:` -
- -
-
- -
`,buttons:[{text:t.params.dialog.buttonCancel,keyCodes:s?[27]:null,color:null},{text:t.params.dialog.buttonOk,strong:o,keyCodes:s?[13]:null}],onClick(h,p){const b=h.$el.find('[name="dialog-username"]').val(),g=h.$el.find('[name="dialog-password"]').val();p===0&&m&&m(b,g),p===1&&d&&d(b,g)},destroyOnClose:n,...i}).open()},password(){for(var r=arguments.length,l=new Array(r),f=0;f"u"?e():u,text:c,content:` -
- -
`,buttons:[{text:t.params.dialog.buttonCancel,keyCodes:s?[27]:null,color:null},{text:t.params.dialog.buttonOk,strong:o,keyCodes:s?[13]:null}],onClick(h,p){const b=h.$el.find('[name="dialog-password"]').val();p===0&&m&&m(b),p===1&&d&&d(b)},destroyOnClose:n,...i}).open()},preloader(r,l){const c={iosPreloaderContent:yn,mdPreloaderContent:Cn}[`${t.theme}PreloaderContent`]||"";return new Jt(t,{title:typeof r>"u"||r===null?t.params.dialog.preloaderTitle:r,content:`
${c}
`,cssClass:"dialog-preloader",destroyOnClose:n}).open()},progress(){for(var r=arguments.length,l=new Array(r),f=0;f"u",h=new Jt(t,{title:typeof c>"u"?t.params.dialog.progressTitle:c,cssClass:"dialog-progress",content:` -
- ${m?"":""} -
- `,destroyOnClose:n});return m||h.setProgress(u),h.open()}})}};let eC=class extends Qt{constructor(e,n){const s=te({on:{}},e.params.popup,n);super(e,s);const a=this,i=Se(),o=Le(),r=it(),l=Ke();a.params=s;let f;if(a.params.el?f=P(a.params.el).eq(0):f=P(a.params.content).filter(H=>H.nodeType===1).eq(0),f&&f.length>0&&f[0].f7Modal)return f[0].f7Modal;if(f.length===0)return a.destroy();let c;a.params.backdrop&&a.params.backdropEl?c=P(a.params.backdropEl):a.params.backdrop&&(a.params.backdropUnique?(c=P(''),a.$containerEl.append(c)):c=a.$containerEl.children(".popup-backdrop"),c.length===0&&(c=P(''),a.$containerEl.append(c))),te(a,{app:e,push:f.hasClass("popup-push")||a.params.push,$el:f,el:f[0],$backdropEl:c,backdropEl:c&&c[0],type:"popup",$htmlEl:P("html")}),a.params.push&&f.addClass("popup-push");function u(H){const G=H.target,ce=P(G);if(!(!l.desktop&&l.cordova&&(i.Keyboard&&i.Keyboard.isVisible||i.cordova.plugins&&i.cordova.plugins.Keyboard&&i.cordova.plugins.Keyboard.isVisible))&&ce.closest(a.el).length===0&&a.params&&a.params.closeByBackdropClick&&a.params.backdrop&&a.backdropEl&&a.backdropEl===G){let ne=!0;a.$el.nextAll(".popup.modal-in").each(me=>{const K=me.f7Modal;K&&K.params.closeByBackdropClick&&K.params.backdrop&&K.backdropEl===a.backdropEl&&(ne=!1)}),ne&&a.close()}}function d(H){H.keyCode===27&&a.params.closeOnEscape&&a.close()}let m,h;function p(H){return(e.height-H*2)/e.height}let b=!0,g=!1,v,_,k,E,S,I=!1,T,A,y,w,D,O;function L(H){g||!b||!a.params.swipeToClose||!H.isTrusted||a.params.swipeHandler&&P(H.target).closest(a.params.swipeHandler).length===0||(g=!0,I=!1,v={x:H.type==="touchstart"?H.targetTouches[0].pageX:H.pageX,y:H.type==="touchstart"?H.targetTouches[0].pageY:H.pageY},E=Ht(),k=void 0,!a.params.swipeHandler&&H.type==="touchstart"&&(T=P(H.target).closest(".page-content")[0]))}function j(H){if(!g||!H.isTrusted)return;if(_={x:H.type==="touchmove"?H.targetTouches[0].pageX:H.pageX,y:H.type==="touchmove"?H.targetTouches[0].pageY:H.pageY},typeof k>"u"&&(k=!!(k||Math.abs(_.x-v.x)>Math.abs(_.y-v.y))),k){g=!1,I=!1;return}S=v.y-_.y,h&&m&&S>0&&(S=0);const G=S<0?"to-bottom":"to-top";if(f.transition(0),typeof a.params.swipeToClose=="string"&&G!==a.params.swipeToClose){f.transform(""),f.transition("");return}if(I)a.emit("local::swipeMove popupSwipeMove",a),a.$el.trigger("popup:swipemove");else{if(h&&m&&(D=f[0].offsetHeight,O=f.prevAll(".popup.modal-in").eq(0),O.length===0&&(O=e.$el.children(".view, .views"))),T&&(A=T.scrollTop,w=T.scrollHeight,y=T.offsetHeight,w!==y&&!(G==="to-bottom"&&A===0)&&!(G==="to-top"&&A===w-y))){f.transform(""),f.transition(""),g=!1,I=!1;return}I=!0,a.emit("local::swipeStart popupSwipeStart",a),a.$el.trigger("popup:swipestart")}if(H.preventDefault(),h&&m){const ce=1-Math.abs(S/D),ye=1-(1-p(m))*ce;O.hasClass("popup")?O.hasClass("popup-push")?O.transition(0).forEach(ne=>{ne.style.setProperty("transform",`translate3d(0, calc(-1 * ${ce} * (var(--f7-popup-push-offset) + 10px)) , 0px) scale(${ye})`,"important")}):O.transition(0).forEach(ne=>{ne.style.setProperty("transform",`translate3d(0, 0px , 0px) scale(${ye})`,"important")}):O.transition(0).forEach(ne=>{ne.style.setProperty("transform",`translate3d(0,0,0) scale(${ye})`,"important")})}f.transition(0).transform(`translate3d(0,${-S}px,0)`)}function W(H){if(!H.isTrusted||(g=!1,!I))return;a.emit("local::swipeEnd popupSwipeEnd",a),a.$el.trigger("popup:swipeend"),I=!1,b=!1,f.transition(""),h&&m&&O.transition("").transform("");const G=S<=0?"to-bottom":"to-top";if(typeof a.params.swipeToClose=="string"&&G!==a.params.swipeToClose){f.transform(""),b=!0;return}const ce=Math.abs(S),ye=new Date().getTime()-E;if(ye<300&&ce>20||ye>=300&&ce>100){_t(()=>{G==="to-bottom"?f.addClass("swipe-close-to-bottom"):f.addClass("swipe-close-to-top"),f.transform(""),a.emit("local::swipeclose popupSwipeClose",a),a.$el.trigger("popup:swipeclose"),a.close(),b=!0});return}b=!0,f.transform("")}const Y=r.passiveListener?{passive:!0}:!1;a.params.swipeToClose&&(f.on(e.touchEvents.start,L,Y),e.on("touchmove",j),e.on("touchend:passive",W),a.once("popupDestroy",()=>{f.off(e.touchEvents.start,L,Y),e.off("touchmove",j),e.off("touchend:passive",W)}));let B;const q=()=>{const H=h;a.push&&(h=a.push&&(e.width<630||e.height<630||f.hasClass("popup-tablet-fullscreen"))),h&&!H?X():h&&H?a.$htmlEl[0].style.setProperty("--f7-popup-push-scale",p(m)):!h&&H&&(a.$htmlEl.removeClass("with-modal-popup-push"),a.$htmlEl[0].style.removeProperty("--f7-popup-push-scale"))},X=()=>{e.off("resize",q),a.push&&(h=a.push&&(e.width<630||e.height<630||f.hasClass("popup-tablet-fullscreen"))),h&&(m=parseInt(f.css("--f7-popup-push-offset"),10),Number.isNaN(m)&&(m=0),m||(m=e.theme==="ios"?44:48),a.$htmlEl[0].style.setProperty("--f7-popup-push-offset",`${m}px`),f.addClass("popup-push"),a.$htmlEl.addClass("with-modal-popup-push"),a.$htmlEl[0].style.setProperty("--f7-popup-push-scale",p(m))),e.on("resize",q)};return a.on("open",()=>{B=!1,a.params.closeOnEscape&&P(o).on("keydown",d),f.prevAll(".popup.modal-in").addClass("popup-behind"),X()}),a.on("opened",()=>{f.removeClass("swipe-close-to-bottom swipe-close-to-top"),a.params.closeByBackdropClick&&e.on("click",u)}),a.on("close",()=>{B=a.$el.prevAll(".popup-push.modal-in").length>0,a.params.closeOnEscape&&P(o).off("keydown",d),a.params.closeByBackdropClick&&e.off("click",u),f.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),h&&m&&!B&&(a.$htmlEl.removeClass("with-modal-popup-push"),a.$htmlEl.addClass("with-modal-popup-push-closing")),e.off("resize",q)}),a.on("closed",()=>{f.removeClass("popup-behind"),h&&m&&!B&&(a.$htmlEl.removeClass("with-modal-popup-push-closing"),a.$htmlEl[0].style.removeProperty("--f7-popup-push-scale"),a.$htmlEl[0].style.removeProperty("--f7-popup-push-offset"))}),f[0].f7Modal=a,a}};const sd=eC,tC={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:sd},create(){const t=this;t.popup=on({app:t,constructor:sd,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 nC=class extends Qt{constructor(e,n){const s=te({on:{}},n);super(e,s);const a=this;a.params=s;let i;return a.params.el?i=P(a.params.el).eq(0):i=P(a.params.content).filter(o=>o.nodeType===1).eq(0),i&&i.length>0&&i[0].f7Modal?i[0].f7Modal:i.length===0?a.destroy():(te(a,{app:e,$el:i,el:i[0],type:"loginScreen"}),i[0].f7Modal=a,a)}};const ad=nC,sC={name:"loginScreen",static:{LoginScreen:ad},create(){const t=this;t.loginScreen=on({app:t,constructor:ad,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 aC=class extends Qt{constructor(e,n){const s=te({on:{}},e.params.popover,n);super(e,s);const a=this,i=Ke(),o=Se(),r=Le();a.params=s;let l;if(a.params.el?l=P(a.params.el).eq(0):l=P(a.params.content).filter(_=>_.nodeType===1).eq(0),l&&l.length>0&&l[0].f7Modal)return l[0].f7Modal;const f=P(a.params.targetEl).eq(0);if(l.length===0)return a.destroy();let c;const u=a.params.backdrop&&e.$el.find(".popover.modal-in").filter(_=>_!==l[0]).length>0;a.params.backdrop&&a.params.backdropEl?c=P(a.params.backdropEl):a.params.backdrop&&(a.params.backdropUnique||u?(c=P('
'),c[0].f7PopoverRef=a,a.$containerEl.append(c)):c=a.$containerEl.children(".popover-backdrop"),c.length===0&&(c=P('
'),a.$containerEl.append(c)));let d;l.find(".popover-arrow").length===0&&a.params.arrow?(d=P('
'),l.prepend(d)):d=l.find(".popover-arrow");const m=a.open;te(a,{app:e,$el:l,el:l[0],$targetEl:f,targetEl:f[0],$arrowEl:d,arrowEl:d[0],$backdropEl:c,backdropEl:c&&c[0],type:"popover",forceBackdropUnique:u,open(){for(var _=arguments.length,k=new Array(_),E=0;E<_;E++)k[E]=arguments[E];let[S,I]=k;return typeof k[0]=="boolean"&&([I,S]=k),S&&(a.$targetEl=P(S),a.targetEl=a.$targetEl[0]),m.call(a,I)}});function h(){a.resize()}a.on("popoverOpen",()=>{a.resize(),e.on("resize",h),P(o).on("keyboardDidShow keyboardDidHide",h),a.on("popoverClose popoverBeforeDestroy",()=>{e.off("resize",h),P(o).off("keyboardDidShow keyboardDidHide",h)})});let p=null;function b(_){p=_.target}function g(_){const k=_.target,E=P(k);if(!(!i.desktop&&i.cordova&&(o.Keyboard&&o.Keyboard.isVisible||o.cordova.plugins&&o.cordova.plugins.Keyboard&&o.cordova.plugins.Keyboard.isVisible))&&E.closest(a.el).length===0){if(a.params.closeByBackdropClick&&a.params.backdrop&&a.backdropEl&&a.backdropEl===k&&p===k)a.close();else if(a.params.closeByOutsideClick&&p===k){const I=E.hasClass("popover-backdrop-unique")&&k.f7PopoverRef!==a||E.hasClass("popover-backdrop")&&k!==a.backdropEl,T=k.closest(".popover")&&k.closest(".popover")!==a.$el[0];!I&&!T&&a.close()}}}function v(_){_.keyCode===27&&a.params.closeOnEscape&&a.close()}return a.params.closeOnEscape&&(a.on("popoverOpen",()=>{P(r).on("keydown",v)}),a.on("popoverClose",()=>{P(r).off("keydown",v)})),a.on("popoverOpened",()=>{(a.params.closeByOutsideClick||a.params.closeByBackdropClick)&&(e.on("touchstart",b),e.on("click",g))}),a.on("popoverClose",()=>{(a.params.closeByOutsideClick||a.params.closeByBackdropClick)&&(e.off("touchstart",b),e.off("click",g))}),l[0].f7Modal=a,a}resize(){const e=this,{app:n,$el:s,$targetEl:a,$arrowEl:i}=e,{targetX:o,targetY:r,verticalPosition:l}=e.params;s.css({left:"",top:""});const[f,c]=[s.width(),s.height()];let u=0,d,m;const h=i.length>0,p=n.theme==="ios"?13:24;h&&(i.removeClass("on-left on-right on-top on-bottom").css({left:"",top:""}),u=i.width()/2),s.removeClass("popover-on-left popover-on-right popover-on-top popover-on-bottom popover-on-middle").css({left:"",top:""});let b,g,v,_,k=parseInt(P("html").css("--f7-safe-area-top"),10),E=parseInt(P("html").css("--f7-safe-area-left"),10),S=parseInt(P("html").css("--f7-safe-area-right"),10);if(Number.isNaN(k)&&(k=0),Number.isNaN(E)&&(E=0),Number.isNaN(S)&&(S=0),a&&a.length>0){b=a.outerWidth(),g=a.outerHeight();const O=a.offset();v=O.left-n.left,_=O.top-n.top;const L=a.parents(".page");L.length>0&&(_-=L[0].scrollTop)}else typeof o<"u"&&r!=="undefined"&&(v=o,_=r,b=e.params.targetWidth||0,g=e.params.targetHeight||0);let[I,T,A]=[0,0,0];const y=l==="auto"?!1:l;let w=y||"top";y==="top"||!y&&c+u<_-k?T=_-c-u:y==="bottom"||!y&&c+un.width-5-S&&(I=n.width-5-S-f),A-=I,h&&(w==="top"&&i.addClass("on-bottom"),w==="bottom"&&i.addClass("on-top"),d=f/2-u+A,d=Math.max(Math.min(d,f-u*2-p),p),i.css({left:`${d}px`}))):w==="middle"&&(I=v-f-u,h&&i.addClass("on-right"),(I<5||I+f+S>n.width||In.width&&(I=n.width-f-5-S),I1){const r=P(n).parents(".page");r.length&&a.each(l=>{const f=P(l);f.parents(r)[0]===r[0]&&(a=f)})}a.length>1&&(a=a.eq(a.length-1));let i=a[0].f7Modal;const o=a.dataset();return i||(i=new Us(t,Object.assign({el:a,targetEl:n},o))),i.open(n,s)}})},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 rC=class extends Qt{constructor(e,n){const s=te({on:{}},e.params.actions,n);super(e,s);const a=this,i=Ke(),o=Se(),r=Le();a.params=s;let l;a.params.buttons&&(l=a.params.buttons,Array.isArray(l[0])||(l=[l])),a.groups=l;let f;if(a.params.el?f=P(a.params.el).eq(0):a.params.content?f=P(a.params.content).filter(g=>g.nodeType===1).eq(0):a.params.buttons&&(a.params.convertToPopover&&(a.popoverHtml=a.renderPopover()),a.actionsHtml=a.render()),f&&f.length>0&&f[0].f7Modal)return f[0].f7Modal;if(f&&f.length===0&&!(a.actionsHtml||a.popoverHtml))return a.destroy();let c;a.params.backdrop&&a.params.backdropEl?c=P(a.params.backdropEl):a.params.backdrop&&(a.params.backdropUnique?(c=P(''),a.$containerEl.append(c)):c=a.$containerEl.children(".actions-backdrop"),c.length===0&&(c=P('
'),a.$containerEl.append(c)));const u=a.open,d=a.close;let m;function h(g){const v=P(this);let _,k;if(v.hasClass("list-button")||v.hasClass("item-link")?(_=v.parents("li").index(),k=v.parents(".list").index()):(_=v.index(),k=v.parents(".actions-group").index()),typeof l<"u"){const E=l[k][_];E.onClick&&E.onClick(a,g),a.params.onClick&&a.params.onClick(a,g),E.close!==!1&&a.close()}}a.open=function(v){let _=!1;const{targetEl:k,targetX:E,targetY:S,targetWidth:I,targetHeight:T}=a.params;return a.params.convertToPopover&&(k||E!==void 0&&S!==void 0)&&(a.params.forceToPopover||i.ios&&i.ipad||e.width>=768||i.desktop)&&(_=!0),_&&a.popoverHtml?(m=e.popover.create({containerEl:a.params.containerEl,content:a.popoverHtml,backdrop:a.params.backdrop,targetEl:k,targetX:E,targetY:S,targetWidth:I,targetHeight:T,on:{open(){a.$el||(a.$el=m.$el),a.$el.trigger(`modal:open ${a.type.toLowerCase()}:open`),a.emit(`local::open modalOpen ${a.type}Open`,a)},opened(){a.$el||(a.$el=m.$el),a.$el.trigger(`modal:opened ${a.type.toLowerCase()}:opened`),a.emit(`local::opened modalOpened ${a.type}Opened`,a)},close(){a.$el||(a.$el=m.$el),a.$el.trigger(`modal:close ${a.type.toLowerCase()}:close`),a.emit(`local::close modalClose ${a.type}Close`,a)},closed(){a.$el||(a.$el=m.$el),a.$el.trigger(`modal:closed ${a.type.toLowerCase()}:closed`),a.emit(`local::closed modalClosed ${a.type}Closed`,a)}}}),m.open(v),m.once("popoverOpened",()=>{m.$el.find(".list-button, .item-link").each(A=>{P(A).on("click",h)})}),m.once("popoverClosed",()=>{m.$el.find(".list-button, .item-link").each(A=>{P(A).off("click",h)}),_t(()=>{m.destroy(),m=void 0})})):(a.$el=a.actionsHtml?P(a.actionsHtml):a.$el,a.$el[0].f7Modal=a,a.groups&&(a.$el.find(".actions-button").each(A=>{P(A).on("click",h)}),a.once("actionsClosed",()=>{a.$el.find(".actions-button").each(A=>{P(A).off("click",h)})})),a.el=a.$el[0],u.call(a,v)),a},a.close=function(v){return m?m.close(v):d.call(a,v),a},te(a,{app:e,$el:f,el:f?f[0]:void 0,$backdropEl:c,backdropEl:c&&c[0],type:"actions"});function p(g){const v=g.target,_=P(v);!i.desktop&&i.cordova&&(o.Keyboard&&o.Keyboard.isVisible||o.cordova.plugins&&o.cordova.plugins.Keyboard&&o.cordova.plugins.Keyboard.isVisible)||_.closest(a.el).length===0&&(a.params.closeByBackdropClick&&a.params.backdrop&&a.backdropEl&&a.backdropEl===v||a.params.closeByOutsideClick)&&a.close()}function b(g){g.keyCode===27&&a.params.closeOnEscape&&a.close()}return a.params.closeOnEscape&&(a.on("open",()=>{P(r).on("keydown",b)}),a.on("close",()=>{P(r).off("keydown",b)})),a.on("opened",()=>{(a.params.closeByBackdropClick||a.params.closeByOutsideClick)&&e.on("click",p)}),a.on("close",()=>{(a.params.closeByBackdropClick||a.params.closeByOutsideClick)&&e.off("click",p)}),f&&(f[0].f7Modal=a),a}render(){const e=this;if(e.params.render)return e.params.render.call(e,e);const{groups:n}=e,s=e.params.cssClass;return R("div",{class:`actions-modal${e.params.grid?" actions-grid":""} ${s||""}`},n.map(a=>R("div",{class:"actions-group"},a.map(i=>{const o=[`actions-${i.label?"label":"button"}`],{color:r,bg:l,strong:f,disabled:c,label:u,text:d,icon:m}=i;return r&&o.push(`color-${r}`),l&&o.push(`bg-color-${l}`),f&&o.push("actions-button-strong"),c&&o.push("disabled"),u?R("div",{class:o.join(" ")},d):R("div",{class:o.join(" ")},m&&R("div",{class:"actions-button-media"},m),R("div",{class:"actions-button-text"},d))}))))}renderPopover(){const e=this;if(e.params.renderPopover)return e.params.renderPopover.call(e,e);const{groups:n}=e,s=e.params.cssClass;return R("div",{class:`popover popover-from-actions ${s||""}`},R("div",{class:"popover-inner"},n.map(a=>R("div",{class:"list"},R("ul",null,a.map(i=>{const o=[],{color:r,bg:l,strong:f,disabled:c,label:u,text:d,icon:m}=i;return r&&o.push(`color-${r}`),l&&o.push(`bg-color-${l}`),f&&o.push("popover-from-actions-strong"),c&&o.push("disabled"),u?(o.push("popover-from-actions-label"),`
  • ${d}
  • `):m?(o.push("item-link item-content"),R("li",null,R("a",{class:o.join(" ")},R("div",{class:"item-media"},m),R("div",{class:"item-inner"},R("div",{class:"item-title"},d))))):(o.push("list-button"),R("li",null,R("a",{class:o.join(" ")},d)))}))))))}};const id=rC,lC={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:id},create(){const t=this;t.actions=on({app:t,constructor:id,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 oC=class extends Qt{constructor(e,n){const s=te({on:{}},e.params.sheet,n);super(e,s);const a=this,i=Se(),o=Le(),r=it(),l=Ke();a.params=s,typeof a.params.backdrop>"u"&&(a.params.backdrop=e.theme!=="ios");let f;if(a.params.el?f=P(a.params.el).eq(0):f=P(a.params.content).filter(K=>K.nodeType===1).eq(0),f&&f.length>0&&f[0].f7Modal)return f[0].f7Modal;if(f.length===0)return a.destroy();let c;a.params.backdrop&&a.params.backdropEl?c=P(a.params.backdropEl):a.params.backdrop&&(a.params.backdropUnique?(c=P('
    '),a.$containerEl.append(c)):c=a.$containerEl.children(".sheet-backdrop"),c.length===0&&(c=P('
    '),a.$containerEl.append(c))),te(a,{app:e,push:f.hasClass("sheet-modal-push")||a.params.push,$el:f,el:f[0],$backdropEl:c,backdropEl:c&&c[0],type:"sheet",$htmlEl:P("html")}),a.params.push&&f.addClass("sheet-modal-push");let u;function d(){const K=P(a.params.scrollToEl).eq(0);if(K.length===0||(u=K.parents(".page-content"),u.length===0))return;const pe=parseInt(u.css("padding-top"),10),ke=parseInt(u.css("padding-bottom"),10),he=u[0].offsetHeight-pe-f.height(),re=u[0].scrollHeight-pe-f.height(),Ce=u.scrollTop();let Pe;const Ve=K.offset().top-pe+K[0].offsetHeight;if(Ve>he){const Me=Ce+Ve-he;Me+he>re&&(Pe=Me+he-re+ke,he===re&&(Pe=f.height()),u.css({"padding-bottom":`${Pe}px`})),u.scrollTop(Me,300)}}function m(){u&&u.length>0&&u.css({"padding-bottom":""})}function h(K){const pe=K.target,ke=P(pe);!l.desktop&&l.cordova&&(i.Keyboard&&i.Keyboard.isVisible||i.cordova.plugins&&i.cordova.plugins.Keyboard&&i.cordova.plugins.Keyboard.isVisible)||ke.closest(a.el).length===0&&(a.params.closeByBackdropClick&&a.params.backdrop&&a.backdropEl&&a.backdropEl===pe||a.params.closeByOutsideClick)&&a.close()}function p(K){K.keyCode===27&&a.params.closeOnEscape&&a.close()}let b;function g(K){return(e.height-K*2)/e.height}let v=!1,_,k,E,S,I,T=!1,A,y,w,D,O,L,j,W,Y,B,q,X,H;function G(K){v||!(a.params.swipeToClose||a.params.swipeToStep)||!K.isTrusted||a.params.swipeHandler&&P(K.target).closest(a.params.swipeHandler).length===0||(v=!0,T=!1,_={x:K.type==="touchstart"?K.targetTouches[0].pageX:K.pageX,y:K.type==="touchstart"?K.targetTouches[0].pageY:K.pageY},S=Ht(),E=void 0,A=f.hasClass("sheet-modal-top"),!a.params.swipeHandler&&K.type==="touchstart"&&(B=P(K.target).closest(".page-content")[0]))}function ce(K){if(!v||!K.isTrusted)return;if(k={x:K.type==="touchmove"?K.targetTouches[0].pageX:K.pageX,y:K.type==="touchmove"?K.targetTouches[0].pageY:K.pageY},typeof E>"u"&&(E=!!(E||Math.abs(k.x-_.x)>Math.abs(k.y-_.y))),E){v=!1,T=!1;return}I=_.y-k.y;const pe=I<0?"to-bottom":"to-top";if(!T){if(B&&!f.hasClass("modal-in-swipe-step")&&(q=B.scrollTop,X=B.scrollHeight,H=B.offsetHeight,X!==H&&!(pe==="to-bottom"&&q===0)&&!(pe==="to-top"&&q===X-H))){f.transform(""),v=!1,T=!1;return}a.push&&b&&(W=e.$el.children(".view, .views")),O=f[0].offsetHeight,w=Cs(f[0],"y"),A?(L=a.params.swipeToClose?-O:-y,j=0):(L=0,j=a.params.swipeToClose?O:y),T=!0}if(D=w-I,D=Math.min(Math.max(D,L),j),K.preventDefault(),a.push&&b){let ke=(D-w)/O;a.params.swipeToStep&&(A?ke=D/y:ke=1-(y-D)/y),ke=Math.abs(ke),ke=Math.min(Math.max(ke,0),1);const he=1-ke,re=1-(1-g(b))*he;W.transition(0).forEach(Ce=>{Ce.style.setProperty("transform",`translate3d(0,0,0) scale(${re})`,"important")}),a.params.swipeToStep&&W.css("border-radius",`${Y*he}px`)}if(f.transition(0).transform(`translate3d(0,${D}px,0)`),a.params.swipeToStep){let ke;A?ke=1-D/y:ke=(y-D)/y,ke=Math.min(Math.max(ke,0),1),f.trigger("sheet:stepprogress",ke),a.emit("local::stepProgress sheetStepProgress",a,ke)}}function ye(){if(v=!1,!T)return;T=!1,f.transform("").transition(""),a.push&&b&&(W.transition("").transform(""),W.css("border-radius",""));const K=I<0?"to-bottom":"to-top",pe=Math.abs(I);if(pe===0||D===w)return;const ke=new Date().getTime()-S;if(!a.params.swipeToStep){if(K!==(A?"to-top":"to-bottom"))return;(ke<300&&pe>20||ke>=300&&pe>O/2)&&a.close();return}const he=A?"to-bottom":"to-top",re=A?"to-top":"to-bottom",Ce=Math.abs(D),Pe=Math.abs(y);if(ke<300&&pe>10){K===he&&CePe&&(a.params.swipeToClose?a.close():(f.addClass("modal-in-swipe-step"),f.trigger("sheet:stepprogress",0),a.emit("local::stepProgress sheetStepProgress",a,0),a.emit("local::_swipeStep",!0),f.trigger("sheet:stepclose"),a.emit("local::stepClose sheetStepClose",a),a.push&&b&&(a.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),W.css("border-radius","0px")))),K===re&&Ce<=Pe&&(f.addClass("modal-in-swipe-step"),f.trigger("sheet:stepprogress",0),a.emit("local::stepProgress sheetStepProgress",a,0),a.emit("local::_swipeStep",!0),f.trigger("sheet:stepclose"),a.emit("local::stepClose sheetStepClose",a),a.push&&b&&(a.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),W.css("border-radius","0px")));return}if(ke>=300){const Ve=!f.hasClass("modal-in-swipe-step");Ve?Ve&&(Ce>Pe+(O-Pe)/2?a.params.swipeToClose&&a.close():Ce>Pe/2&&(f.addClass("modal-in-swipe-step"),f.trigger("sheet:stepprogress",0),a.emit("local::stepProgress sheetStepProgress",a,0),a.emit("local::_swipeStep",!0),f.trigger("sheet:stepclose"),a.emit("local::stepClose sheetStepClose",a),a.push&&b&&(a.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),W.css("border-radius","0px")))):Ce(O-Pe)/2&&a.params.swipeToClose&&a.close()}}a.setSwipeStep=function(pe){pe===void 0&&(pe=!0);const ke=f.find(".sheet-modal-swipe-step").eq(0);ke.length&&(f.hasClass("sheet-modal-top")?y=-(ke.offset().top-f.offset().top+ke[0].offsetHeight):y=f[0].offsetHeight-(ke.offset().top-f.offset().top+ke[0].offsetHeight),f[0].style.setProperty("--f7-sheet-swipe-step",`${y}px`),pe||(f.addClass("modal-in-swipe-step"),a.emit("local::_swipeStep",!0)))};function ne(){a.setSwipeStep(!0)}const me=r.passiveListener?{passive:!0}:!1;return(a.params.swipeToClose||a.params.swipeToStep)&&(f.on(e.touchEvents.start,G,me),e.on("touchmove",ce),e.on("touchend:passive",ye),a.once("sheetDestroy",()=>{f.off(e.touchEvents.start,G,me),e.off("touchmove",ce),e.off("touchend:passive",ye)})),a.on("open",()=>{a.params.closeOnEscape&&P(o).on("keydown",p),f.prevAll(".popup.modal-in").addClass("popup-behind"),a.params.swipeToStep&&(a.setSwipeStep(!1),e.on("resize",ne)),a.params.scrollToEl&&d(),a.push&&(b=parseInt(f.css("--f7-sheet-push-offset"),10),Number.isNaN(b)&&(b=0),b||(b=e.theme==="ios"?44:48),a.$htmlEl[0].style.setProperty("--f7-sheet-push-offset",`${b}px`),f.addClass("sheet-modal-push"),a.$htmlEl.addClass("with-modal-sheet-push"),a.params.swipeToStep?(W=e.$el.children(".view, .views"),Y=parseFloat(f.css(`border-${A?"bottom":"top"}-left-radius`)),W.css("border-radius","0px")):a.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",g(b)))}),a.on("opened",()=>{(a.params.closeByOutsideClick||a.params.closeByBackdropClick)&&e.on("click",h)}),a.on("close",()=>{a.params.swipeToStep&&(f.removeClass("modal-in-swipe-step"),a.emit("local::_swipeStep",!1),e.off("resize",ne)),a.params.closeOnEscape&&P(o).off("keydown",p),a.params.scrollToEl&&m(),(a.params.closeByOutsideClick||a.params.closeByBackdropClick)&&e.off("click",h),f.prevAll(".popup.modal-in").eq(0).removeClass("popup-behind"),a.push&&b&&(a.$htmlEl.removeClass("with-modal-sheet-push"),a.$htmlEl.addClass("with-modal-sheet-push-closing"))}),a.on("closed",()=>{a.push&&b&&(a.$htmlEl.removeClass("with-modal-sheet-push-closing"),a.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),a.$htmlEl[0].style.removeProperty("--f7-sheet-push-offset"))}),a.stepOpen=function(){f.removeClass("modal-in-swipe-step"),a.emit("local::_swipeStep",!1),a.push&&(b||(b=parseInt(f.css("--f7-sheet-push-offset"),10),Number.isNaN(b)&&(b=0)),b&&a.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",g(b)))},a.stepClose=function(){f.addClass("modal-in-swipe-step"),a.emit("local::_swipeStep",!0),a.push&&a.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale")},a.stepToggle=function(){f.toggleClass("modal-in-swipe-step"),a.emit("local::_swipeStep",f.hasClass("modal-in-swipe-step"))},f[0].f7Modal=a,a}};const rd=oC,fC={name:"sheet",params:{sheet:{push:!1,backdrop:void 0,backdropEl:void 0,backdropUnique:!1,closeByBackdropClick:!0,closeByOutsideClick:!1,closeOnEscape:!1,swipeToClose:!1,swipeToStep:!1,swipeHandler:null,containerEl:null}},static:{Sheet:rd},create(){const t=this;t.sheet=te({},on({app:t,constructor:rd,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()}})},clicks:{".sheet-open":function(e,n){n===void 0&&(n={});const s=this;P(".sheet-modal.modal-in").length>0&&n.sheet&&P(n.sheet)[0]!==P(".sheet-modal.modal-in")[0]&&s.sheet.close(".sheet-modal.modal-in"),s.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 cC=class extends Qt{constructor(e,n){const s=te({on:{}},e.params.toast,n);super(e,s);const a=this,i=Se();a.app=e,a.params=s;const{closeButton:o,closeTimeout:r}=a.params;let l;if(a.params.el)l=P(a.params.el);else{const c=a.render();l=P(c)}if(l&&l.length>0&&l[0].f7Modal)return l[0].f7Modal;if(l.length===0)return a.destroy();te(a,{$el:l,el:l[0],type:"toast"}),l[0].f7Modal=a,o&&(l.find(".toast-button").on("click",()=>{a.emit("local::closeButtonClick toastCloseButtonClick",a),a.close()}),a.on("beforeDestroy",()=>{l.find(".toast-button").off("click")}));let f;return a.on("open",()=>{P(".toast.modal-in").each(c=>{const u=e.toast.get(c);c!==a.el&&u&&u.close()}),r&&(f=_t(()=>{a.close()},r))}),a.on("close",()=>{i.clearTimeout(f)}),a.params.destroyOnClose&&a.once("closed",()=>{setTimeout(()=>{a.destroy()},0)}),a}render(){const e=this;if(e.params.render)return e.params.render.call(e,e);const{position:n,horizontalPosition:s,cssClass:a,icon:i,text:o,closeButton:r,closeButtonColor:l,closeButtonText:f}=e.params,c=n==="top"||n==="bottom"?`toast-horizontal-${s}`:"";return R("div",{class:`toast toast-${n} ${c} ${a||""} ${i?"toast-with-icon":""}`},R("div",{class:"toast-content"},i&&R("div",{class:"toast-icon"},i),R("div",{class:"toast-text"},o),r&&!i&&R("a",{class:`toast-button button ${l?`color-${l}`:""}`},f)))}};const xs=cC,uC={name:"toast",static:{Toast:xs},create(){const t=this;t.toast=te({},on({app:t,constructor:xs,defaultSelector:".toast.modal-in"}),{show(e){return te(e,{destroyOnClose:!0}),new xs(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}}},xn={init(t){const e=this,n={iosPreloaderContent:yn,mdPreloaderContent:Cn},s=P(t);s.length===0||s.children(".preloader-inner").length>0||s.children(".preloader-inner-line").length>0||s.append(n[`${e.theme}PreloaderContent`])},visible:!1,show(t){t===void 0&&(t="white");const e=this;if(xn.visible)return;const s={iosPreloaderContent:yn,mdPreloaderContent:Cn}[`${e.theme}PreloaderContent`]||"";P("html").addClass("with-modal-preloader"),e.$el.append(` -
    -
    -
    ${s}
    -
    - `),xn.visible=!0},showIn(t,e){e===void 0&&(e="white");const n=this,a={iosPreloaderContent:yn,mdPreloaderContent:Cn}[`${n.theme}PreloaderContent`]||"";P(t||"html").addClass("with-modal-preloader"),P(t||n.$el).append(` -
    -
    -
    ${a}
    -
    - `)},hide(){const t=this;xn.visible&&(P("html").removeClass("with-modal-preloader"),t.$el.find(".preloader-backdrop, .preloader-modal").remove(),xn.visible=!1)},hideIn(t){const e=this;P(t||"html").removeClass("with-modal-preloader"),P(t||e.$el).find(".preloader-backdrop, .preloader-modal").remove()}},dC={name:"preloader",create(){It(this,{preloader:xn})},on:{photoBrowserOpen(t){const e=this;t.$el.find(".preloader").each(n=>{e.preloader.init(n)})},tabMounted(t){const e=this;P(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)}}}},pC={set(){const t=this;for(var e=arguments.length,n=new Array(e),s=0;s"u"||i===null)return a;i||(i=0);const r=P(a||t.$el);if(r.length===0)return a;const l=Math.min(Math.max(i,0),100);let f;if(r.hasClass("progressbar")?f=r.eq(0):f=r.children(".progressbar"),f.length===0||f.hasClass("progressbar-infinite"))return f;let c=f.children("span");return c.length===0&&(c=P(""),f.append(c)),c.transition(typeof o<"u"?o:"").transform(`translate3d(${(-100+l)*(t.rtl?-1:1)}%,0,0)`),f[0]},show(){const t=this;for(var e=arguments.length,n=new Array(e),s=0;s - ${r==="infinite"?"":""} - `),l.append(f))),typeof i<"u"&&t.progressbar.set(f,i),f[0]},hide(t,e){e===void 0&&(e=!0);const s=P(t||this.$el);if(s.length===0)return;let a;return s.hasClass("progressbar")||s.hasClass("progressbar-infinite")?a=s:a=s.children(".progressbar, .progressbar-infinite"),a.length===0||!a.hasClass("progressbar-in")||a.hasClass("progressbar-out")||a.removeClass("progressbar-in").addClass("progressbar-out").animationEnd(()=>{e&&a.remove()}),a}},mC={name:"progressbar",create(){It(this,{progressbar:pC})},on:{tabMounted(t){const e=this;P(t).find(".progressbar").each(n=>{const s=P(n);e.progressbar.set(s,s.attr("data-progress"))})},pageInit(t){const e=this;t.$el.find(".progressbar").each(n=>{const s=P(n);e.progressbar.set(s,s.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"))}}}},hC={init(){const t=this,e=Le();let n,s,a,i,o,r,l,f,c,u,d,m,h,p,b,g,v,_,k,E,S;function I(w,D){s=!1,n=!0,S=!1,a=w.type==="touchstart"?w.targetTouches[0].pageY:w.pageY,o=P(w.target).closest("li").eq(0),h=o.index(),l=o.parents(".sortable");const O=o.parents(".list-group");O.length&&O.parents(l).length&&(l=O),r=l.children("ul").children("li:not(.disallow-sorting):not(.no-sorting)"),t.panel&&(t.panel.allowOpen=!1),t.swipeout&&(t.swipeout.allow=!1),D&&(o.addClass("sorting"),l.addClass("sortable-sorting"),S=!0)}function T(w){if(!n||!o)return;const D=w.type==="touchmove"?w.targetTouches[0].pageY:w.pageY;if(!s){p=o.parents(".page"),b=o.parents(".page-content");const B=parseInt(b.css("padding-top"),10),q=parseInt(b.css("padding-bottom"),10);E=b[0].scrollTop,v=p.offset().top+B,g=p.height()-B-q,o.addClass("sorting"),l.addClass("sortable-sorting"),_=o[0].offsetTop,c=o[0].offsetTop,u=o.parent().height()-_-o.height(),f=o[0].offsetHeight,k=o.offset().top}s=!0,w.preventDefault(),w.f7PreventSwipePanel=!0,i=D-a;const O=b[0].scrollTop-E,L=Math.min(Math.max(i+O,-c),u);o.transform(`translate3d(0,${L}px,0)`);const j=44;let W=!0;i+O+j<-c&&(W=!1),i+O-j>u&&(W=!1),m=void 0,d=void 0;let Y;W&&(k+i+f+j>v+g&&(Y=k+i+f+j-(v+g)),k+i{const q=P(B);if(q[0]===o[0])return;const X=q[0].offsetTop,H=q.height(),G=_+L;let ce;const ye=q[0].f7Translate;G>=X-H/2&&o.index()q.index()?(ce=f,q[0].f7Translate=ce,q.transform(`translate3d(0, ${ce}px,0)`),d=void 0,m||(m=q)):(ce=void 0,q.transform("translate3d(0, 0%,0)")),ye!==ce&&(q.trigger("sortable:move"),t.emit("sortableMove",q[0],l[0])),q[0].f7Translate=ce})}function A(){if(!n||!s){n&&!s&&(t.panel&&(t.panel.allowOpen=!0),t.swipeout&&(t.swipeout.allow=!0),S&&(o.removeClass("sorting"),l.removeClass("sortable-sorting"))),n=!1,s=!1;return}t.panel&&(t.panel.allowOpen=!0),t.swipeout&&(t.swipeout.allow=!0),r.transform(""),o.removeClass("sorting"),l.removeClass("sortable-sorting");let w;d?w=d.index():m&&(w=m.index());let D=l.dataset().sortableMoveElements;if(typeof D>"u"&&(D=t.params.sortable.moveElements),D&&(d&&o.insertAfter(d),m&&o.insertBefore(m)),(d||m)&&l.hasClass("virtual-list")){h=o[0].f7VirtualListIndex,typeof h>"u"&&(h=o.attr("data-virtual-list-index")),m?(w=m[0].f7VirtualListIndex,typeof w>"u"&&(w=m.attr("data-virtual-list-index"))):(w=d[0].f7VirtualListIndex,typeof w>"u"&&(w=d.attr("data-virtual-list-index"))),w!==null?w=parseInt(w,10):w=void 0;const O=l[0].f7VirtualList;h&&(h=parseInt(h,10)),w&&(w=parseInt(w,10)),O&&O.moveItem(h,w)}typeof w<"u"&&!Number.isNaN(w)&&w!==h&&(o.trigger("sortable:sort",{from:h,to:w}),t.emit("sortableSort",o[0],{from:h,to:w,el:o[0]},l[0])),m=void 0,d=void 0,n=!1,s=!1}const y=it().passiveListener?{passive:!1,capture:!1}:!1;P(e).on(t.touchEvents.start,".list.sortable .sortable-handler",I,y),t.on("touchmove:active",T),t.on("touchend:passive",A),P(e).on("taphold",".sortable-tap-hold",(w,D)=>{I(D,!0)})},enable(t){t===void 0&&(t=".list.sortable");const e=this,n=P(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=P(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=P(t);n.length!==0&&(n.hasClass("sortable-enabled")?e.sortable.disable(n):e.sortable.enable(n))}},gC={name:"sortable",params:{sortable:{moveElements:!0}},create(){It(this,{sortable:hC})},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)}}},qt={init(){const t=this,e=Le(),n={};let s,a,i,o,r,l,f,c,u,d,m,h,p,b,g,v,_,k,E,S,I;function T(D){t.swipeout.allow&&(a=!1,s=!0,i=void 0,n.x=D.type==="touchstart"?D.targetTouches[0].pageX:D.pageX,n.y=D.type==="touchstart"?D.targetTouches[0].pageY:D.pageY,o=new Date().getTime(),l=P(this))}function A(D){if(!s)return;const O=D.type==="touchmove"?D.targetTouches[0].pageX:D.pageX,L=D.type==="touchmove"?D.targetTouches[0].pageY:D.pageY;if(typeof i>"u"&&(i=!!(i||Math.abs(L-n.y)>Math.abs(O-n.x))),i){s=!1;return}if(!a){if(P(".list.sortable-opened").length>0)return;f=l.find(".swipeout-content"),c=l.find(".swipeout-actions-right"),u=l.find(".swipeout-actions-left"),d=null,m=null,g=null,v=null,E=null,k=null,u.length>0&&(d=u.outerWidth(),g=u.children("a"),k=u.find(".swipeout-overswipe")),c.length>0&&(m=c.outerWidth(),v=c.children("a"),E=c.find(".swipeout-overswipe")),p=l.hasClass("swipeout-opened"),p&&(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(a=!0,D.cancelable&&D.preventDefault(),r=O-n.x,h=r,p&&(b==="right"?h-=m:h+=d),h>0&&u.length===0||h<0&&c.length===0){if(!p){s=!1,a=!1,f.transform(""),v&&v.length>0&&v.transform(""),g&&g.length>0&&g.transform("");return}h=0}h<0?_="to-left":h>0?_="to-right":_||(_="to-left");let j,W;if(D.f7PreventSwipePanel=!0,t.params.swipeout.noFollow){p?(b==="right"&&r>0&&t.swipeout.close(l),b==="left"&&r<0&&t.swipeout.close(l)):(r<0&&c.length>0&&t.swipeout.open(l,"right"),r>0&&u.length>0&&t.swipeout.open(l,"left")),s=!1,a=!1;return}if(S=!1,I=!1,c.length>0){let Y=h;if(W=Y/m,Y<-m){const B=Y/-m;Y=-m-(-Y-m)**.8,h=Y,E.length>0&&B>t.params.swipeout.overswipeRatio&&(I=!0)}_!=="to-left"&&(W=0,Y=0),v.each(B=>{const q=P(B);typeof B.f7SwipeoutButtonOffset>"u"&&(q[0].f7SwipeoutButtonOffset=B.offsetLeft),j=B.f7SwipeoutButtonOffset,E.length>0&&q.hasClass("swipeout-overswipe")&&_==="to-left"&&(q.css({left:`${I?-j:0}px`}),I?(q.hasClass("swipeout-overswipe-active")||(l.trigger("swipeout:overswipeenter"),t.emit("swipeoutOverswipeEnter",l[0])),q.addClass("swipeout-overswipe-active")):(q.hasClass("swipeout-overswipe-active")&&(l.trigger("swipeout:overswipeexit"),t.emit("swipeoutOverswipeExit",l[0])),q.removeClass("swipeout-overswipe-active"))),q.transform(`translate3d(${Y-j*(1+Math.max(W,-1))}px,0,0)`)})}if(u.length>0){let Y=h;if(W=Y/d,Y>d){const B=Y/m;Y=d+(Y-d)**.8,h=Y,k.length>0&&B>t.params.swipeout.overswipeRatio&&(S=!0)}_!=="to-right"&&(Y=0,W=0),g.each((B,q)=>{const X=P(B);typeof B.f7SwipeoutButtonOffset>"u"&&(X[0].f7SwipeoutButtonOffset=d-B.offsetLeft-B.offsetWidth),j=B.f7SwipeoutButtonOffset,k.length>0&&X.hasClass("swipeout-overswipe")&&_==="to-right"&&(X.css({left:`${S?j:0}px`}),S?(X.hasClass("swipeout-overswipe-active")||(l.trigger("swipeout:overswipeenter"),t.emit("swipeoutOverswipeEnter",l[0])),X.addClass("swipeout-overswipe-active")):(X.hasClass("swipeout-overswipe-active")&&(l.trigger("swipeout:overswipeexit"),t.emit("swipeoutOverswipeExit",l[0])),X.removeClass("swipeout-overswipe-active"))),g.length>1&&X.css("z-index",g.length-q),X.transform(`translate3d(${Y+j*(1-Math.min(W,1))}px,0,0)`)})}l.trigger("swipeout",W),t.emit("swipeout",l[0],W),f.transform(`translate3d(${h}px,0,0)`)}function y(){if(!s||!a){s=!1,a=!1;return}s=!1,a=!1;const D=new Date().getTime()-o,O=_==="to-left"?c:u,L=_==="to-left"?m:d;let j,W,Y;if(D<300&&(r<-10&&_==="to-left"||r>10&&_==="to-right")||D>=300&&Math.abs(h)>L/2?j="open":j="close",D<300&&(Math.abs(h)===0&&(j="close"),Math.abs(h)===L&&(j="open")),j==="open"){qt.el=l[0],l.trigger("swipeout:open"),t.emit("swipeoutOpen",l[0]),l.addClass("swipeout-opened swipeout-transitioning");const q=_==="to-left"?-L:L;if(f.transform(`translate3d(${q}px,0,0)`),O.addClass("swipeout-actions-opened"),W=_==="to-left"?v:g,W)for(Y=0;Y0&&g!==W&&g.each(q=>{const X=P(q);B=q.f7SwipeoutButtonOffset,typeof B>"u"&&(X[0].f7SwipeoutButtonOffset=d-q.offsetLeft-q.offsetWidth),X.transform(`translate3d(${B}px,0,0)`)}),v&&v.length>0&&v!==W&&v.each(q=>{const X=P(q);B=q.f7SwipeoutButtonOffset,typeof B>"u"&&(X[0].f7SwipeoutButtonOffset=q.offsetLeft),X.transform(`translate3d(${-B}px,0,0)`)}),f.transitionEnd(()=>{p&&j==="open"||!p&&j==="close"||(l.trigger(j==="open"?"swipeout:opened":"swipeout:closed"),t.emit(j==="open"?"swipeoutOpened":"swipeoutClosed",l[0]),l.removeClass("swipeout-transitioning"),p&&j==="close"&&(c.length>0&&v.transform(""),u.length>0&&g.transform("")))})}const w=it().passiveListener?{passive:!0}:!1;t.on("touchstart",D=>{if(qt.el){const O=P(D.target);P(qt.el).is(O[0])||O.parents(".swipeout").is(qt.el)||O.hasClass("modal-in")||(O.attr("class")||"").indexOf("-backdrop")>0||O.hasClass("actions-modal")||O.parents(".actions-modal.modal-in, .dialog.modal-in").length>0||t.swipeout.close(qt.el)}}),P(e).on(t.touchEvents.start,"li.swipeout",T,w),t.on("touchmove:active",A),t.on("touchend:passive",y)},allow:!0,el:void 0,open(){const t=this;for(var e=arguments.length,n=new Array(e),s=0;s0?i="right":i="left");const l=r.find(`.swipeout-actions-${i}`),f=r.find(".swipeout-content");if(l.length===0)return;r.trigger("swipeout:open").addClass("swipeout-opened").removeClass("swipeout-transitioning"),t.emit("swipeoutOpen",r[0]),l.addClass("swipeout-actions-opened");const c=l.children("a"),u=l.outerWidth(),d=i==="right"?-u:u;c.length>1&&c.each((m,h)=>{const p=P(m);i==="right"?p.transform(`translate3d(${-m.offsetLeft}px,0,0)`):p.css("z-index",c.length-h).transform(`translate3d(${u-m.offsetWidth-m.offsetLeft}px,0,0)`)}),r.addClass("swipeout-transitioning"),f.transitionEnd(()=>{r.trigger("swipeout:opened"),t.emit("swipeoutOpened",r[0]),o&&o.call(r[0])}),Bt(()=>{c.transform(`translate3d(${d}px,0,0)`),f.transform(`translate3d(${d}px,0,0)`)}),qt.el=r[0]},close(t,e){const n=this,s=P(t).eq(0);if(s.length===0||!s.hasClass("swipeout-opened"))return;const a=s.find(".swipeout-actions-opened").hasClass("swipeout-actions-right")?"right":"left",i=s.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),o=i.children("a"),r=i.outerWidth();n.swipeout.allow=!1,s.trigger("swipeout:close"),n.emit("swipeoutClose",s[0]),s.removeClass("swipeout-opened").addClass("swipeout-transitioning");let l;function f(){n.swipeout.allow=!0,!s.hasClass("swipeout-opened")&&(s.removeClass("swipeout-transitioning"),o.transform(""),s.trigger("swipeout:closed"),n.emit("swipeoutClosed",s[0]),e&&e.call(s[0]),l&&clearTimeout(l))}s.find(".swipeout-content").transform("").transitionEnd(f),l=setTimeout(f,500),o.each(c=>{const u=P(c);a==="right"?u.transform(`translate3d(${-c.offsetLeft}px,0,0)`):u.transform(`translate3d(${r-c.offsetWidth-c.offsetLeft}px,0,0)`),u.css({left:"0px"}).removeClass("swipeout-overswipe-active")}),qt.el&&qt.el===s[0]&&(qt.el=void 0)},delete(t,e){const n=this,s=P(t).eq(0);s.length!==0&&(qt.el=void 0,s.trigger("swipeout:delete"),n.emit("swipeoutDelete",s[0]),s.css({height:`${s.outerHeight()}px`}),s.transitionEnd(()=>{if(s.trigger("swipeout:deleted"),n.emit("swipeoutDeleted",s[0]),e&&e.call(s[0]),s.parents(".virtual-list").length>0){const a=s.parents(".virtual-list")[0].f7VirtualList,i=s[0].f7VirtualListIndex;a&&typeof i<"u"&&a.deleteItem(i)}else n.params.swipeout.removeElements?n.params.swipeout.removeElementsWithTimeout?setTimeout(()=>{s.remove()},n.params.swipeout.removeElementsTimeout):s.remove():s.removeClass("swipeout-deleting swipeout-transitioning")}),Bt(()=>{s.addClass("swipeout-deleting swipeout-transitioning").css({height:"0px"}).find(".swipeout-content").transform("translate3d(-100%,0,0)")}))}},bC={name:"swipeout",params:{swipeout:{actionsNoFold:!1,noFollow:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,overswipeRatio:1.2}},create(){It(this,{swipeout:qt})},clicks:{".swipeout-open":function(e,n){n===void 0&&(n={}),this.swipeout.open(n.swipeout,n.side)},".swipeout-close":function(e){const n=this,s=e.closest(".swipeout");s.length!==0&&n.swipeout.close(s)},".swipeout-delete":function(e,n){n===void 0&&(n={});const s=this,a=e.closest(".swipeout");if(a.length===0)return;const{confirm:i,confirmTitle:o}=n;n.confirm?s.dialog.confirm(i,o,()=>{s.swipeout.delete(a)}):s.swipeout.delete(a)}},on:{init(){const t=this;t.params.swipeout&&t.swipeout.init()}}},ld={toggleClicked(t){const e=this;let n=t.closest(".accordion-item").eq(0);n.length||(n=t.parents("li").eq(0));const s=t.parents(".accordion-item-content").eq(0);s.length&&s.parents(n).length||t.parents("li").length>1&&t.parents("li")[0]!==n[0]||e.accordion.toggle(n)},open(t){const e=this,n=P(t);let s=!1;function a(){s=!0}if(n.trigger("accordion:beforeopen",{prevent:a},a),e.emit("accordionBeforeOpen",n[0],a),s)return;const i=n.parents(".accordion-list").eq(0);let o=n.children(".accordion-item-content");if(o.removeAttr("aria-hidden"),o.length===0&&(o=n.find(".accordion-item-content")),o.length===0)return;const r=i.length>0&&n.parent().children(".accordion-item-opened");r.length>0&&e.accordion.close(r),o.transitionEnd(()=>{n.hasClass("accordion-item-opened")?(o.transition(0),o.css("height","auto"),Bt(()=>{o.transition(""),n.trigger("accordion:opened"),e.emit("accordionOpened",n[0])})):(o.css("height",""),n.trigger("accordion:closed"),e.emit("accordionClosed",n[0]))}),o.css("height",`${o[0].scrollHeight}px`),n.trigger("accordion:open"),n.addClass("accordion-item-opened"),e.emit("accordionOpen",n[0])},close(t){const e=this,n=P(t);let s=!1;function a(){s=!0}if(n.trigger("accordion:beforeclose",{prevent:a},a),e.emit("accordionBeforeClose",n[0],a),s)return;let i=n.children(".accordion-item-content");i.length===0&&(i=n.find(".accordion-item-content")),n.removeClass("accordion-item-opened"),i.attr("aria-hidden",!0),i.transition(0),i.css("height",`${i[0].scrollHeight}px`),i.transitionEnd(()=>{n.hasClass("accordion-item-opened")?(i.transition(0),i.css("height","auto"),Bt(()=>{i.transition(""),n.trigger("accordion:opened"),e.emit("accordionOpened",n[0])})):(i.css("height",""),n.trigger("accordion:closed"),e.emit("accordionClosed",n[0]))}),Bt(()=>{i.transition(""),i.css("height",""),n.trigger("accordion:close"),e.emit("accordionClose",n[0])})},toggle(t){const e=this,n=P(t);n.length!==0&&(n.hasClass("accordion-item-opened")?e.accordion.close(t):e.accordion.open(t))}},vC={name:"accordion",create(){It(this,{accordion:ld})},clicks:{".accordion-item .item-link, .accordion-item-toggle, .links-list.accordion-list > ul > li > a":function(e){const n=this;ld.toggleClicked.call(n,e)}}},_C={name:"contactsList"};let kC=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this,a=Ke(),i=Le();let o;e.theme==="md"?o=48:e.theme==="ios"&&(o=44);const r={cols:1,height:o,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` -
  • -
    -
    -
    ${b}
    -
    -
    -
  • - `.trim()},on:{}};if(s.useModulesParams(r),s.params=te(r,n),(s.params.height===void 0||!s.params.height)&&(s.params.height=o),s.$el=P(n.el),s.el=s.$el[0],s.$el.length===0)return;s.$el[0].f7VirtualList=s,s.items=s.params.items,s.params.showFilteredItemsOnly&&(s.filteredItems=[]),s.params.renderItem&&(s.renderItem=s.params.renderItem),s.$pageContentEl=s.$el.parents(".page-content"),s.pageContentEl=s.$pageContentEl[0],s.$scrollableParentEl=s.params.scrollableParentEl?P(s.params.scrollableParentEl).eq(0):s.$pageContentEl,!s.$scrollableParentEl.length&&s.$pageContentEl.length&&(s.$scrollableParentEl=s.$pageContentEl),s.scrollableParentEl=s.$scrollableParentEl[0],typeof s.params.updatableScroll<"u"?s.updatableScroll=s.params.updatableScroll:(s.updatableScroll=!0,a.ios&&a.osVersion.split(".")[0]<8&&(s.updatableScroll=!1));const l=s.params.ul;s.$ul=l?P(s.params.ul):s.$el.children("ul"),s.$ul.length===0&&s.params.createUl&&(s.$el.append("
      "),s.$ul=s.$el.children("ul")),s.ul=s.$ul[0];let f;!s.ul&&!s.params.createUl?f=s.$el:f=s.$ul,te(s,{$itemsWrapEl:f,itemsWrapEl:f[0],domCache:{},tempDomElement:i.createElement("ul"),lastRepaintY:null,fragment:i.createDocumentFragment(),pageHeight:void 0,rowsPerScreen:void 0,rowsBefore:void 0,rowsAfter:void 0,rowsToRender:void 0,maxBufferHeight:0,listHeight:void 0,dynamicHeight:typeof s.params.height=="function",autoHeight:s.params.height==="auto"}),s.useModules();const c=s.handleScroll.bind(s),u=s.handleResize.bind(s);let d,m,h,p;return s.attachEvents=function(){d=s.$el.parents(".page").eq(0),m=s.$el.parents(".tab").filter(g=>P(g).parent(".tabs").parent(".tabs-animated-wrap, swiper-container.tabs").length===0).eq(0),h=s.$el.parents(".panel").eq(0),p=s.$el.parents(".popup").eq(0),s.$scrollableParentEl.on("scroll",c),d.length&&d.on("page:reinit",u),m.length&&m.on("tab:show",u),h.length&&h.on("panel:open",u),p.length&&p.on("popup:open",u),e.on("resize",u)},s.detachEvents=function(){s.$scrollableParentEl.off("scroll",c),d.length&&d.off("page:reinit",u),m.length&&m.off("tab:show",u),h.length&&h.off("panel:open",u),p.length&&p.off("popup:open",u),e.off("resize",u)},s.init(),s}setListSize(e){const n=this,s=n.filteredItems||n.items;if(e||(n.pageHeight=n.$scrollableParentEl[0].offsetHeight),n.dynamicHeight){n.listHeight=0,n.heights=[];for(let a=0;a{a[parseInt(i.getAttribute("data-virtual-list-index"),10)]=i});for(let i=0;i"u"&&(n.heights[o]=40),n.listHeight+=n.heights[o]}}else n.listHeight=Math.ceil(s.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 s=this;e&&(s.lastRepaintY=null);let a=-(s.$el[0].getBoundingClientRect().top-s.$scrollableParentEl[0].getBoundingClientRect().top);if(typeof n<"u"&&(a=n),s.lastRepaintY===null||Math.abs(a-s.lastRepaintY)>s.maxBufferHeight||!s.updatableScroll&&s.$scrollableParentEl[0].scrollTop+s.pageHeight>=s.$scrollableParentEl[0].scrollHeight)s.lastRepaintY=a;else return;const i=s.filteredItems||s.items;let o,r,l=0,f=0;if(s.dynamicHeight||s.autoHeight){let m=0,h;s.maxBufferHeight=s.pageHeight;for(let p=0;p"u"&&(m+h>=a-s.pageHeight*2*s.params.dynamicHeightBufferSize?o=p:l+=h),typeof r>"u"&&((m+h>=a+s.pageHeight*2*s.params.dynamicHeightBufferSize||p===s.heights.length-1)&&(r=p+1),f+=h),m+=h;r=Math.min(r,i.length)}else o=(parseInt(a/s.params.height,10)-s.rowsBefore)*s.params.cols,o<0&&(o=0),r=Math.min(o+s.rowsToRender*s.params.cols,i.length);let c;const u=[];s.reachEnd=!1;let d;for(d=o;d{s.setListSize(!0)})}filterItems(e,n){n===void 0&&(n=!0);const s=this;s.filteredItems=[];for(let a=0;an.items.length)return!1;let s=0;if(n.dynamicHeight||n.autoHeight)for(let i=0;i=0;s-=1)n.items.unshift(e[s]);if(n.params.cache){const s={};Object.keys(n.domCache).forEach(a=>{s[parseInt(a,10)+e.length]=n.domCache[a]}),n.domCache=s}n.update()}prependItem(e){this.prependItems([e])}moveItem(e,n){const s=this,a=e;let i=n;if(a===i)return;const o=s.items.splice(a,1)[0];if(i>=s.items.length?(s.items.push(o),i=s.items.length-1):s.items.splice(i,0,o),s.params.cache){const r={};Object.keys(s.domCache).forEach(l=>{const f=parseInt(l,10),c=au)&&(r[f]=s.domCache[f]),f===c&&(r[u]=s.domCache[f]),f>c&&f<=u&&(r[f+d]=s.domCache[f])}),s.domCache=r}s.update()}insertItemBefore(e,n){const s=this;if(e===0){s.prependItem(n);return}if(e>=s.items.length){s.appendItem(n);return}if(s.items.splice(e,0,n),s.params.cache){const a={};Object.keys(s.domCache).forEach(i=>{const o=parseInt(i,10);o>=e&&(a[o+1]=s.domCache[o])}),s.domCache=a}s.update()}deleteItems(e){const n=this;let s,a=0;for(let i=0;is&&(a=-i),o+=a,s=e[i];const r=n.items.splice(o,1)[0];if(n.filteredItems&&n.filteredItems.indexOf(r)>=0&&n.filteredItems.splice(n.filteredItems.indexOf(r),1),n.params.cache){const l={};Object.keys(n.domCache).forEach(f=>{const c=parseInt(f,10);c===o?delete n.domCache[o]:parseInt(f,10)>o?l[c-1]=n.domCache[f]:l[c]=n.domCache[f]}),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,ft(e),e=null}};const od=kC,EC={name:"virtualList",static:{VirtualList:od},create(){const t=this;t.virtualList=ct({defaultSelector:".virtual-list",constructor:od,app:t,domProp:"f7VirtualList"})}};let CC=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this,a={el:null,listEl:null,indexes:"auto",iosItemHeight:14,mdItemHeight:14,scrollList:!0,label:!1,renderItem(E,S){return` -
    • ${E}
    • - `.trim()},renderSkipPlaceholder(){return'
    • '},on:{}};s.useModulesParams(a),s.params=te(a,n);let i,o,r,l;if(s.params.el)i=P(s.params.el);else return s;if(i[0].f7ListIndex)return i[0].f7ListIndex;if(l=i.find("ul"),l.length===0&&(l=P("
        "),i.append(l)),s.params.listEl&&(o=P(s.params.listEl)),s.params.indexes==="auto"&&!o)return s;o?r=o.parents(".page-content").eq(0):(r=i.siblings(".page-content").eq(0),r.length===0&&(r=i.parents(".page").eq(0).find(".page-content").eq(0))),i[0].f7ListIndex=s,te(s,{app:e,$el:i,el:i&&i[0],$ul:l,ul:l&&l[0],$listEl:o,listEl:o&&o[0],$pageContentEl:r,pageContentEl:r&&r[0],indexes:n.indexes,height:0,skipRate:0}),s.useModules();function f(){const E={index:s};s.calcSize(),E!==s.height&&s.render()}function c(E){const S=P(E.target).closest("li");if(!S.length)return;let I=S.index();if(s.skipRate>0){const A=I/(S.siblings("li").length-1);I=Math.round((s.indexes.length-1)*A)}const T=s.indexes[I];s.$el.trigger("listindex:click",{content:T,index:I}),s.emit("local::click listIndexClick",s,T,I),s.$el.trigger("listindex:select",{content:T,index:I}),s.emit("local::select listIndexSelect",s,T,I),s.$listEl&&s.params.scrollList&&s.scrollListToIndex(T,I)}let u,d,m,h,p,b=null;function g(E){const S=l.children();S.length&&(m=S[0].getBoundingClientRect().top,h=S[S.length-1].getBoundingClientRect().top+S[0].offsetHeight,E.type==="touchstart"?E.targetTouches[0].pageX:E.pageX,E.type==="touchstart"?E.targetTouches[0].pageY:E.pageY,u=!0,d=!1,b=null)}function v(E){if(!u)return;!d&&s.params.label&&(p=P(''),i.append(p)),d=!0;const S=E.type==="touchmove"?E.targetTouches[0].pageY:E.pageY;E.preventDefault();let I=(S-m)/(h-m);I=Math.min(Math.max(I,0),1);const T=Math.round((s.indexes.length-1)*I),A=s.indexes[T],y=h-m,w=(s.height-y)/2+(1-I)*y;T!==b&&(s.params.label&&p.html(A).transform(`translateY(-${w}px)`),s.$listEl&&s.params.scrollList&&s.scrollListToIndex(A,T)),b=T,s.$el.trigger("listindex:select"),s.emit("local::select listIndexSelect",s,A,T)}function _(){u&&(u=!1,d=!1,s.params.label&&(p&&p.remove(),p=void 0))}const k=it().passiveListener?{passive:!0}:!1;return s.attachEvents=function(){i.parents(".tab").on("tab:show",f),i.parents(".page").on("page:reinit",f),i.parents(".panel").on("panel:open",f),i.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast").on("modal:open",f),e.on("resize",f),i.on("click",c),i.on(e.touchEvents.start,g,k),e.on("touchmove:active",v),e.on("touchend:passive",_)},s.detachEvents=function(){i.parents(".tab").off("tab:show",f),i.parents(".page").off("page:reinit",f),i.parents(".panel").off("panel:open",f),i.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast").off("modal:open",f),e.off("resize",f),i.off("click",c),i.off(e.touchEvents.start,g,k),e.off("touchmove:active",v),e.off("touchend:passive",_)},s.init(),s}scrollListToIndex(e,n){const s=this,{$listEl:a,$pageContentEl:i,app:o}=s;if(!a||!i||i.length===0)return s;let r;if(a.find(".list-group-title").each(d=>{if(r)return;const m=P(d);m.text()===e&&(r=m)}),!r||r.length===0)return s;const l=r.parent().offset().top;let f=parseInt(i.css("padding-top"),10);const c=i[0].scrollTop,u=r.offset().top;if(i.parents(".page-with-navbar-large").length){const d=o.navbar.getElByPage(i.parents(".page-with-navbar-large").eq(0)),m=P(d).find(".title-large");m.length&&(f-=m[0].offsetHeight||0)}return l<=f?i.scrollTop(l+c-f):i.scrollTop(u+c-f),s}renderSkipPlaceholder(){const e=this;return e.params.renderSkipPlaceholder.call(e)}renderItem(e,n){const s=this;return s.params.renderItem.call(s,e,n)}render(){const e=this,{$ul:n,indexes:s,skipRate:a}=e;let i;const o=s.map((r,l)=>{if(l%a!==0&&a>0)return i=!0,"";let f=e.renderItem(r,l);return i&&(f=e.renderSkipPlaceholder()+f),i=!1,f}).join("");return n.html(o),e}calcSize(){const e=this,{app:n,params:s,el:a,indexes:i}=e,o=a.offsetHeight,r=s[`${n.theme}ItemHeight`],l=Math.floor(o/r),f=i.length;let c=0;return f>l&&(c=Math.ceil((f*2-1)/l)),e.height=o,e.skipRate=c,e}calcIndexes(){const e=this;return e.params.indexes==="auto"?(e.indexes=[],e.$listEl.find(".list-group-title").each(n=>{const s=P(n).text();e.indexes.indexOf(s)<0&&e.indexes.push(s)})):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),ft(e),e=null}};const fd=CC,yC={name:"listIndex",static:{ListIndex:fd},create(){const t=this;t.listIndex=ct({defaultSelector:".list-index",constructor:fd,app:t,domProp:"f7ListIndex"})},on:{tabMounted(t){const e=this;P(t).find(".list-index-init").each(n=>{const s=te(P(n).dataset(),{el:n});e.listIndex.create(s)})},tabBeforeRemove(t){P(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 s=te(P(n).dataset(),{el:n});e.listIndex.create(s)})},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,s=te(P(n).dataset(),{el:n});e.listIndex.create(s)},destroy(t){const e=t.elm;e.f7ListIndex&&e.f7ListIndex.destroy()}}}},wC={name:"timeline"},SC={show(){const t=this;let e,n,s,a,i;for(var o=arguments.length,r=new Array(o),l=0;l2&&n.constructor===Object&&([e,s,a,n]=r))),typeof s>"u"&&(s=!0);const f=P(e);if(a&&f[0]&&(f[0].f7TabRoute=a),!i&&(f.length===0||f.hasClass("tab-active")))return{$newTabEl:f,newTabEl:f[0]};let c;n&&(c=P(n));const u=f.parent(".tabs");if(u.length===0)return{$newTabEl:f,newTabEl:f[0]};t.swipeout&&(t.swipeout.allowOpen=!0);const d=[];function m(v){d.push(v)}function h(){d.forEach(v=>{v()})}let p=!1;if(u.parent().hasClass("tabs-animated-wrap")){u.parent()[s?"removeClass":"addClass"]("not-animated");const v=parseFloat(u.css("transition-duration").replace(",","."));s&&v&&(u.transitionEnd(h),p=!0);const _=(t.rtl?f.index():-f.index())*100;u.transform(`translate3d(${_}%,0,0)`)}let b;if(u[0].nodeName.toLowerCase()==="swiper-container"&&t.swiper){b=u[0].swiper;const v=b.slides.indexOf(f[0]);b&&b.activeIndex!==v?(p=!0,b.once("slideChangeTransitionEnd",()=>{h()}).slideTo(v,s?void 0:0)):b&&b.animating&&(p=!0,b.once("slideChangeTransitionEnd",()=>{h()}))}const g=u.children(".tab-active");if(g.removeClass("tab-active"),!i&&(!b||b&&!b.animating||b&&a)&&(g.hasClass("view")&&g.children(".page").length&&g.children(".page").each(v=>{P(v).trigger("page:tabhide"),t.emit("pageTabHide",v)}),g.trigger("tab:hide"),t.emit("tabHide",g[0])),f.addClass("tab-active"),!i&&(!b||b&&!b.animating||b&&a)&&(f.hasClass("view")&&f.children(".page").length&&f.children(".page").each(v=>{P(v).trigger("page:tabshow"),t.emit("pageTabShow",v)}),f.trigger("tab:show"),t.emit("tabShow",f[0])),!c&&(typeof e=="string"?c=P(`.tab-link[href="${e}"]`):c=P(`.tab-link[href="#${f.attr("id")}"]`),(!c||c&&c.length===0)&&P("[data-tab]").each(v=>{f.is(P(v).attr("data-tab"))&&(c=P(v))}),a&&(!c||c&&c.length===0)&&(c=P(`[data-route-tab-id="${a.route.tab.id}"]`),c.length===0&&(c=P(`.tab-link[href="${a.url}"]`))),c.length>1&&f.parents(".page").length&&(c=c.filter(v=>P(v).parents(".page")[0]===f.parents(".page")[0]),t.theme==="ios"&&c.length===0&&a))){const v=f.parents(".page"),_=P(t.navbar.getElByPage(v));c=_.find(`[data-route-tab-id="${a.route.tab.id}"]`),c.length===0&&(c=_.find(`.tab-link[href="${a.url}"]`))}if(c.length>0){let v;if(g&&g.length>0){const _=g.attr("id");_&&(v=P(`.tab-link[href="#${_}"]`),(!v||v&&v.length===0)&&(v=P(`.tab-link[data-route-tab-id="${_}"]`))),(!v||v&&v.length===0)&&P("[data-tab]").each(k=>{g.is(P(k).attr("data-tab"))&&(v=P(k))}),(!v||v&&v.length===0)&&(v=c.siblings(".tab-link-active"))}else a&&(v=c.siblings(".tab-link-active"));if(v&&v.length>1&&g&&g.parents(".page").length&&(v=v.filter(_=>P(_).parents(".page")[0]===g.parents(".page")[0])),v&&v.length>0&&v.removeClass("tab-link-active"),c&&c.length>0){c.addClass("tab-link-active");const _=c.parents(".tabbar, .tabbar-icons");t.toolbar&&_.length>0&&(_.hasClass("tabbar-highlight")||t.theme!=="ios")&&t.toolbar.setHighlight(_)}}return{$newTabEl:f,newTabEl:f[0],$oldTabEl:g,oldTabEl:g[0],onTabsChanged:m,animated:p}}},TC={name:"tabs",create(){const t=this;te(t,{tab:{show:SC.show.bind(t)}})},on:{"pageInit tabMounted":function(e){const s=P(e.el||e).find(".tabs-animated-wrap > .tabs > .tab-active")[0];if(!s)return;this.tab.show({tabEl:s,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;te(t,{swipeable:!0,swipeInitialized:!0});const n=t.params,{$el:s,$backdropEl:a,side:i,effect:o}=t;let r,l,f,c,u,d;const m={};let h,p,b,g,v,_,k,E=0;function S(w){if(!t.swipeable||f||!e.panel.allowOpen||!n.swipe&&!n.swipeOnlyClose||l||P(".modal-in:not(.toast):not(.notification), .photo-browser-in").length>0)return;r=e.panel.get(i==="left"?"right":"left")||{};const D=r.opened&&r.$el&&!r.$el.hasClass("panel-in-breakpoint");!t.opened&&D||!n.swipeOnlyClose&&D||w.target&&w.target.nodeName.toLowerCase()==="input"&&w.target.type==="range"||P(w.target).closest(".range-slider, swiper-container.tabs, .calendar-months, .no-swipe-panel, .card-opened").length>0||(m.x=w.type==="touchstart"?w.targetTouches[0].pageX:w.pageX,m.y=w.type==="touchstart"?w.targetTouches[0].pageY:w.pageY,!(n.swipeOnlyClose&&!t.opened)&&(n.swipeActiveArea&&!t.opened&&(i==="left"&&m.x>n.swipeActiveArea||i==="right"&&m.x"u"&&(u=!!(u||Math.abs(O-m.y)>Math.abs(D-m.x))),u){l=!1;return}if(!_){if(D>m.x?_="to-right":_="to-left",n.swipeActiveArea>0&&!t.opened){if(i==="left"&&m.x>n.swipeActiveArea){l=!1;return}if(i==="right"&&m.xv&&(b=v)):(b=p-(t.opened?v:0),b>0&&(b=0),b<-v&&(b=-v)):(b=p+(t.opened?v:j),b<0&&(b=0),b>v+j&&(b=v+j));const W=Math.abs(b/v);if(o==="reveal")n.swipeNoFollow||(k.transform(`translate3d(${b}px,0,0)`).transition(0),a&&a.transform(`translate3d(${b}px,0,0)`).transition(0)),s.trigger("panel:swipe",Math.abs(b/v)),t.emit("local::swipe panelSwipe",t,Math.abs(b/v));else{if(i==="left"&&(b-=v),!n.swipeNoFollow&&(g=1-Math.abs(b/v),a&&(a.transition(0),a.css({opacity:g})),s.transform(`translate3d(${b}px,0,0)`).transition(0),o==="push")){const Y=i==="left"?b+v:b-v;k.transform(`translate3d(${Y}px,0,0)`).transition(0),a&&a.transform(`translate3d(${Y}px,0,0)`).transition(0)}s.trigger("panel:swipe",Math.abs(b/v)),t.emit("local::swipe panelSwipe",t,Math.abs(b/v))}n.swipeNoFollow&&(t.opened&&W===0||!t.opened&&W===1)&&(d=!0,T(w))}function T(w){if(!l||!c){l=!1,c=!1;return}const D=w.type==="gesturestart"||f;l=!1,c=!1;const O=new Date().getTime()-h;let L;const j=o==="floating"?i==="left"?8:-8:0,W=(b===j||Math.abs(b)===v)&&!n.swipeNoFollow,Y=n.swipeThreshold||0;D?L="reset":t.opened?o==="cover"||o==="push"||o==="floating"?b===0?L="reset":O<300&&Math.abs(b)>0?L="swap":O>=300&&Math.abs(b)=0||O>=300&&Math.abs(b)<=v/2?i==="left"&&b===v?L="reset":L="swap":L="reset":Math.abs(p)0||O>=300&&Math.abs(b)0||O>=300&&Math.abs(b)>=v/2?L="swap":L="reset",L==="swap"&&(t.opened?t.close(!W):t.open(!W));let B=!0;if(L==="reset"&&!t.opened)if(W)s.removeClass("panel-in-swipe");else{B=!1;const q=o==="reveal"?k:s;t.setStateClasses("before-closing"),q.transitionEnd(()=>{s.hasClass("panel-in")||(s.removeClass("panel-in-swipe"),t.setStateClasses("after-closing"))})}(o==="reveal"||o==="push")&&Bt(()=>{k.transition(""),k.transform("")}),B&&s.removeClass("panel-in-swipe"),s.transition("").transform(""),a&&a.transform("").transition("").css({opacity:"",visibility:""})}function A(w){f=!0,T(w)}function y(){f=!1}e.on("touchstart:passive",S),e.on("touchmove:active",I),e.on("touchend:passive",T),e.on("gesturestart",A),e.on("gestureend",y),t.on("panelDestroy",()=>{e.off("touchstart:passive",S),e.off("touchmove:active",I),e.off("touchend:passive",T),e.off("gesturestart",A),e.off("gestureend",y)})}function PC(t){const e=t.app,n=it();if(t.resizableInitialized)return;te(t,{resizable:!0,resizableWidth:null,resizableInitialized:!0});const s=P("html"),{$el:a,$backdropEl:i,side:o,effect:r}=t;if(!a)return;let l,f;const c={};let u,d,m,h,p,b;function g(T){if(!T)return null;if(T.indexOf("%")>=0||T.indexOf("vw")>=0)return parseInt(T,10)/100*e.width;const A=parseInt(T,10);return Number.isNaN(A)?null:A}function v(){return t.resizable&&a.hasClass("panel-resizable")}function _(T){v()&&(c.x=T.type==="touchstart"?T.targetTouches[0].pageX:T.pageX,c.y=T.type==="touchstart"?T.targetTouches[0].pageY:T.pageY,f=!1,l=!0,h=g(a.css("min-width")),p=g(a.css("max-width")),b=a.hasClass("panel-in-breakpoint"))}function k(T){if(!l)return;const A=T.type==="touchmove"?T.targetTouches[0].pageX:T.pageX;f||(d=a[0].offsetWidth,a.transition(0),a.addClass("panel-resizing"),s.css("cursor","col-resize"),(r!=="cover"||b)&&(m=P(t.getViewEl()),t.$containerEl&&t.$containerEl.hasClass("page")&&m.add(t.$containerEl.children(".page-content, .tabs, .fab"))),r!=="cover"&&!b&&(i.transition(0),m.transition(0))),f=!0,T.preventDefault(),u=A-c.x;let y=o==="left"?d+u:d-u;h&&!Number.isNaN(h)&&(y=Math.max(y,h)),p&&!Number.isNaN(p)&&(y=Math.min(y,p)),y=Math.min(Math.max(y,0),e.width),t.resizableWidth=y,a[0].style.width=`${y}px`,r!=="cover"&&!b?(m&&m.transform(`translate3d(${o==="left"?y:-y}px, 0, 0)`),i&&i.transform(`translate3d(${o==="left"?y:-y}px, 0, 0)`)):b&&m&&m.css(`margin-${o}`,`${y}px`),a.trigger("panel:resize",y),t.emit("local::resize panelResize",t,y)}function E(){if(P("html").css("cursor",""),!l||!f){l=!1,f=!1;return}l=!1,f=!1,s[0].style.setProperty(`--f7-panel-${o}-width`,`${t.resizableWidth}px`),a[0].style.width="",r!=="cover"&&!b&&(m.transform(""),i.transform("")),a.removeClass("panel-resizing"),Bt(()=>{a.transition(""),r!=="cover"&&(i.transition(""),m&&m.transition(""))})}function S(){!t.opened||!t.resizableWidth||(h=g(a.css("min-width")),p=g(a.css("max-width")),h&&!Number.isNaN(h)&&t.resizableWidthp&&(t.resizableWidth=Math.min(t.resizableWidth,p)),t.resizableWidth=Math.min(Math.max(t.resizableWidth,0),e.width),s[0].style.setProperty(`--f7-panel-${o}-width`,`${t.resizableWidth}px`))}t.$el.find(".panel-resize-handler").length===0&&t.$el.append('
        '),t.$resizeHandlerEl=t.$el.children(".panel-resize-handler"),a.addClass("panel-resizable");const I=n.passiveListener?{passive:!0}:!1;t.$el.on(e.touchEvents.start,".panel-resize-handler",_,I),e.on("touchmove:active",k),e.on("touchend:passive",E),e.on("resize",S),t.on("beforeOpen",S),t.once("panelDestroy",()=>{a.removeClass("panel-resizable"),t.$resizeHandlerEl.remove(),t.$el.off(e.touchEvents.start,".panel-resize-handler",_,I),e.off("touchmove:active",k),e.off("touchend:passive",E),e.off("resize",S),t.off("beforeOpen",S)})}let IC=class extends rt{constructor(e,n){n===void 0&&(n={});const s=te({on:{}},e.params.panel,n);super(s,[e]);const a=this;a.params=s,a.$containerEl=a.params.containerEl?P(a.params.containerEl).eq(0):e.$el,a.containerEl=a.$containerEl[0],a.containerEl||(a.$containerEl=e.$el,a.containerEl=e.$el[0]);let i;if(a.params.el?i=P(a.params.el).eq(0):a.params.content&&(i=P(a.params.content).filter(c=>c.nodeType===1).eq(0)),i.length===0)return a;if(i[0].f7Panel)return i[0].f7Panel;i[0].f7Panel=a;let{side:o,effect:r,resizable:l}=a.params;typeof o>"u"&&(o=i.hasClass("panel-left")?"left":"right"),typeof r>"u"&&(r=i.hasClass("panel-cover")?"cover":i.hasClass("panel-push")?"push":i.hasClass("panel-floating")?"floating":"reveal"),typeof l>"u"&&(l=i.hasClass("panel-resizable"));let f;return a.params.backdrop&&a.params.backdropEl?f=P(a.params.backdropEl):a.params.backdrop&&(f=a.$containerEl.children(".panel-backdrop"),f.length===0&&(f=P('
        '),a.$containerEl.prepend(f))),te(a,{app:e,side:o,effect:r,resizable:l,$el:i,el:i[0],opened:!1,$backdropEl:f,backdropEl:f&&f[0]}),a.useModules(),a.init(),a}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:s,el:a,effect:i}=n,o=n.getViewEl(),r=o&&o.contains(a),l=!o||r?n.$containerEl:P("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-${s}-${i}`)}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,s=n.app;n.visibleBreakpointResizeHandler||(n.visibleBreakpointResizeHandler=function(){n.setVisibleBreakpoint()},s.on("resize",n.visibleBreakpointResizeHandler));const{side:a,$el:i,$containerEl:o,params:r,visibleBreakpointDisabled:l}=n,f=r.visibleBreakpoint,c=P(n.getViewEl()),u=i.hasClass("panel-in-breakpoint");o&&o.hasClass("page")&&c.add(o.children(".page-content, .tabs, .fab")),s.width>=f&&typeof f<"u"&&f!==null&&!l?u?c.css({[`margin-${a}`]:`${i.width()}px`}):(n.setStateClasses("closed"),i.addClass("panel-in-breakpoint").removeClass("panel-in panel-in-collapsed"),n.onOpen(!1),n.onOpened(),c.css({[`margin-${a}`]:`${i.width()}px`}),s.allowPanelOpen=!0,e&&(n.emit("local::breakpoint panelBreakpoint",n),n.$el.trigger("panel:breakpoint"))):u&&(i.removeClass("panel-in-breakpoint panel-in"),n.onClose(),n.onClosed(),c.css({[`margin-${a}`]:""}),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,s=n.app;n.collapsedBreakpointResizeHandler||(n.collapsedBreakpointResizeHandler=function(){n.setCollapsedBreakpoint()},s.on("resize",n.collapsedBreakpointResizeHandler));const{$el:a,params:i,collapsedBreakpointDisabled:o}=n;if(a.hasClass("panel-in-breakpoint"))return;const r=i.collapsedBreakpoint,l=a.hasClass("panel-in-collapsed");s.width>=r&&typeof r<"u"&&r!==null&&!o?l||(n.setStateClasses("closed"),a.addClass("panel-in-collapsed").removeClass("panel-in"),n.collapsed=!0,s.allowPanelOpen=!0,e&&(n.emit("local::collapsedBreakpoint panelCollapsedBreakpoint",n),n.$el.trigger("panel:collapsedbreakpoint"))):l&&(a.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")):PC(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 s=n.app;n.opened=!0,s.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 s=n.panel.get(".panel-in");(!s||s&&!s.$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,s=n.params.visibleBreakpoint;return n.app.width>=s&&typeof s<"u"&&s!==null?n.toggleVisibleBreakpoint():(n.opened?n.close(e):n.open(e),n)}insertToRoot(){const e=this,n=Le(),{$el:s,$backdropEl:a,$containerEl:i}=e,o=s.parent(),r=s.parents(n).length>0;if(!o.is(i)||s.prevAll(".views, .view").length){const l=i.children(".panel, .views, .view").eq(0),f=i.children(".panel-backdrop").eq(0);l.length?s.insertBefore(l):f?s.insertBefore(f):i.prepend(s),a&&a.length&&(!a.parent().is(i)&&a.nextAll(".panel").length===0||a.parent().is(i)&&a.nextAll(".panel").length===0)&&a.insertBefore(s),e.once("panelClosed",()=>{r?o.append(s):s.remove()})}}open(e){e===void 0&&(e=!0);const n=this,s=n.app;if(!s.panel.allowOpen)return!1;const{effect:a,$el:i,$backdropEl:o,opened:r,$containerEl:l}=n;if(!i||i.hasClass("panel-in"))return n;if(n.insertToRoot(),r||i.hasClass("panel-in-breakpoint")||i.hasClass("panel-in"))return!1;const f=s.panel.get(".panel-in");f&&f!==n&&f.close(e),i[e?"removeClass":"addClass"]("not-animated"),i.addClass("panel-in"),o&&(o.addClass("panel-backdrop-in"),o[e?"removeClass":"addClass"]("not-animated")),["cover","push","floating"].includes(n.effect)&&(n._clientLeft=i[0].clientLeft);const c=P(n.getViewEl());l&&l.hasClass("page")&&c.add(l.children(".page-content, .tabs"));const u=a==="reveal"?c:i;function d(){u.transitionStart(()=>{n._openTransitionStarted=!0})}function m(){u.transitionEnd(h=>{P(h.target).is(u)?i.hasClass("panel-out")?n.onClosed():n.onOpened():m()})}return e?(o&&o.removeClass("not-animated"),d(),m(),i.removeClass("panel-out not-animated").addClass("panel-in"),n.onOpen()):(o&&o.addClass("not-animated"),i.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:s,$el:a,$backdropEl:i,opened:o,$containerEl:r}=n;if(!o||a.hasClass("panel-in-breakpoint")||!a.hasClass("panel-in"))return n;a[e?"removeClass":"addClass"]("not-animated"),i&&i[e?"removeClass":"addClass"]("not-animated");const l=P(n.getViewEl());r&&r.hasClass("page")&&l.add(r.children(".page-content, .tabs"));const f=s==="reveal"?l:a;n._openTransitionStarted||(e=!1);function c(){a.hasClass("panel-out")?n.onClosed():a.hasClass("panel-in")&&n.onOpened(),n.setStateClasses("after-closing")}return e?(f.transitionEnd(()=>{c()}),a.removeClass("panel-in").addClass("panel-out"),n.onClose()):(a.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:s}=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 a=P(e.getViewEl());s&&s.hasClass("page")&&a.add(s.children(".page-content, .tabs")),e.$el.removeClass("panel-in-breakpoint panel-in-collapsed panel-in"),a.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),ft(e),e=null}}};const $s=IC,AC={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:$s},create(){const t=this;te(t,{panel:{allowOpen:!0,create(e){return new $s(t,e)},get(e){if(e===void 0&&(e=".panel"),e instanceof $s)return e;(e==="left"||e==="right")&&(e=`.panel-${e}`);const n=P(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 s=t.panel.get(e);if(s&&s.open)return s.open(n);if(!s)return s=t.panel.create({el:e}),s.open(n)},close(e,n){e===void 0&&(e=".panel-in"),(e==="left"||e==="right")&&(e=`.panel-${e}`);let s=t.panel.get(e);if(s&&s.open)return s.close(n);if(!s)return s=t.panel.create({el:e}),s.close(n)},toggle(e,n){e===void 0&&(e=".panel"),(e==="left"||e==="right")&&(e=`.panel-${e}`);let s=t.panel.get(e);if(s&&s.toggle)return s.toggle(n);if(!s)return s=t.panel.create({el:e}),s.toggle(n)}}})},on:{init(){const t=this;P(".panel-init").each(e=>{const n=Object.assign({el:e},P(e).dataset()||{});t.panel.create(n)})},pageInit(t){const e=this;t.$el.find(".panel-init").each(n=>{const s=Object.assign({el:n},P(n).dataset()||{});e.panel.create(s)})},pageBeforeRemove(t){const e=this;t.$el.find(".panel-init").each(n=>{const s=e.panel.get(n);s&&s.destroy&&s.destroy()})}},vnode:{"panel-init":{insert(t){const e=this,n=t.elm,s=Object.assign({el:n},P(n).dataset()||{});e.panel.create(s)},destroy(t){const e=this,n=t.elm,s=e.panel.get(n);s&&s.destroy&&s.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=P(".panel-in:not(.panel-out)");if(!n.length)return;const s=n[0]&&n[0].f7Panel;n.trigger("panel:backdrop-click"),s&&s.emit("backdropClick",s),e.emit("panelBackdropClick",s||n[0]),!(s&&s.params.closeByBackdropClick===!1)&&e.params.panel.closeByBackdropClick&&e.panel.close()}}},OC={open(t,e){t===void 0&&(t=".card-expandable"),e===void 0&&(e=!0);const n=this,s=Ke(),a=Le(),i=it(),o=P(t).eq(0);if(!o||!o.length||o.hasClass("card-opened")||o.hasClass("card-opening")||o.hasClass("card-closing"))return;const r=o.parents(".page").eq(0);if(!r.length||r.find(".card-opened").length)return;let l;function f(){l=!0}if(o.trigger("card:beforeopen",{prevent:f}),n.emit("cardBeforeOpen",o[0],f),l)return;const c=Object.assign({animate:e},n.params.card,o.dataset()),u=o.parents(".page-content");let d;o.attr("data-backdrop-el")&&(d=P(o.attr("data-backdrop-el"))),!d&&c.backdrop&&(d=u.find(".card-backdrop"),d.length||(d=P('
        '),u.append(d)));let m,h;c.hideNavbarOnOpen&&(m=r.children(".navbar"),m.length||r[0].f7Page&&(m=r[0].f7Page.$navbarEl)),c.hideToolbarOnOpen&&(h=r.children(".toolbar"),h.length||(h=r.parents(".view").children(".toolbar")),h.length||(h=r.parents(".views").children(".toolbar")));const p=o.css("transform");let b;p&&p.match(/[2-9]/)&&(b=!0);const g=o.children(".card-content"),v=P(a.createElement("div")).addClass("card-expandable-size");o.append(v);let _=o[0].offsetWidth,k=o[0].offsetHeight,E=r[0].offsetWidth,S=r[0].offsetHeight,I=v[0].offsetWidth||E,T=v[0].offsetHeight||S,A;m&&!c.hideStatusbarOnOpen&&T===S&&(A=parseInt(m.css("--f7-safe-area-top"),10),Number.isNaN(A)&&(A=0)),A&&(T-=A);let y=I/_,w=T/k,D=o.offset(),O=r.offset();A&&(O.top+=A/2),D.left-=O.left;let L,j;if(b){const ze=p.replace(/matrix\(|\)/g,"").split(",").map(fe=>fe.trim());if(ze&&ze.length>1){const fe=parseFloat(ze[0]);L=D.left-_*(1-fe)/2,j=D.top-O.top-k*(1-fe)/2,n.rtl&&(L-=o[0].scrollLeft)}else L=o[0].offsetLeft,j=o[0].offsetTop-(u.length?u[0].scrollTop:0)}else L=D.left,j=D.top-O.top,n.rtl&&(L-=o[0].scrollLeft);L-=(E-I)/2,j-=(S-T)/2;let W=I-_-L;n.rtl&&([L,W]=[W,L]);let Y=T-k-j,B=(W-L)/2,q=(Y-j)/2;c.hideNavbarOnOpen&&m&&m.length&&(m.closest(".navbar-hidden").length?o[0].f7KeepNavbarOnClose=!0:(delete o[0].f7KeepNavbarOnClose,n.navbar.hide(m,c.animate,c.hideStatusbarOnOpen,!0))),c.hideToolbarOnOpen&&h&&h.length&&(h.closest(".toolbar-hidden").length?o[0].f7KeepToolbarOnClose=!0:(delete o[0].f7KeepToolbarOnClose,n.toolbar.hide(h,c.animate))),d&&d.removeClass("card-backdrop-out").addClass("card-backdrop-in"),o.removeClass("card-transitioning"),c.animate&&o.addClass("card-opening"),o.trigger("card:open"),n.emit("cardOpen",o[0]);function X(){r.addClass("page-with-card-opened"),s.ios&&u.length&&(u.css("height",`${u[0].offsetHeight+1}px`),setTimeout(()=>{u.css("height","")})),o.addClass("card-opened"),o.removeClass("card-opening"),o.trigger("card:opened"),n.emit("cardOpened",o[0],r[0])}g.css({width:`${I}px`,height:`${T}px`}).transform(`translate3d(${n.rtl?L+B:-L-B}px, 0px, 0) scale(${1/y}, ${1/w})`),o.transform(`translate3d(${n.rtl?-B:B}px, ${q}px, 0) scale(${y}, ${w})`),c.animate?o.transitionEnd(()=>{X()}):X();function H(){o.removeClass("card-transitioning"),_=o[0].offsetWidth,k=o[0].offsetHeight,E=r[0].offsetWidth,S=r[0].offsetHeight,I=v[0].offsetWidth||E,T=v[0].offsetHeight||S,A=0,m&&!c.hideStatusbarOnOpen&&T===S&&(A=parseInt(m.css("--f7-safe-area-top"),10),Number.isNaN(A)&&(A=0)),A&&(T-=A),y=I/_,w=T/k,o.transform("translate3d(0px, 0px, 0) scale(1)"),D=o.offset(),O=r.offset(),A&&(O.top+=A/2),D.left-=O.left,D.top-=O.top,L=D.left-(E-I)/2,n.rtl&&(L-=o[0].scrollLeft),j=D.top-(S-T)/2,W=I-_-L,Y=T-k-j,n.rtl&&([L,W]=[W,L]),B=(W-L)/2,q=(Y-j)/2,o.transform(`translate3d(${n.rtl?-B:B}px, ${q}px, 0) scale(${y}, ${w})`),g.css({width:`${I}px`,height:`${T}px`}).transform(`translate3d(${n.rtl?L+B:-L-B}px, 0px, 0) scale(${1/y}, ${1/w})`)}let G,ce,ye,ne,me,K,pe,ke,he,re,Ce,Pe;function Ve(ze){!P(ze.target).closest(o).length||!ze.isTrusted||o.hasClass("card-opened")&&(Pe=o.find(c.scrollableEl),Pe[0]&&Pe[0]!==g[0]&&!Pe[0].contains(ze.target)?G=0:G=Pe.scrollTop(),ce=!0,ne=ze.targetTouches[0].pageX,me=ze.targetTouches[0].pageY,ke=void 0,re=!1,Ce=!1)}function Me(ze){if(!(!ce||!ze.isTrusted)){if(K=ze.targetTouches[0].pageX,pe=ze.targetTouches[0].pageY,typeof ke>"u"&&(ke=!!(ke||Math.abs(pe-me)>Math.abs(K-ne))),!Ce&&!re&&(!ke&&ze.targetTouches[0].clientX<=50?Ce=!0:re=!0),!(Ce||re)||re&&G!==0){ce=!0,ye=!0;return}ye||o.removeClass("card-transitioning"),ye=!0,he=Math.max(re?(pe-me)/150:(K-ne)/(_/2),0),(he>0&&re||Ce)&&(re&&s.ios&&Pe[0]===g[0]&&(Pe.css("-webkit-overflow-scrolling","auto"),Pe.scrollTop(0)),ze.preventDefault()),he>1&&(he**=.3),he>(re?1.3:1.1)?(ce=!1,ye=!1,n.card.close(o)):o.transform(`translate3d(${n.rtl?-B:B}px, ${q}px, 0) scale(${y*(1-he*.2)}, ${w*(1-he*.2)})`)}}function He(ze){!ce||!ye||!ze.isTrusted||(ce=!1,ye=!1,s.ios&&Pe.css("-webkit-overflow-scrolling",""),he>=.8?n.card.close(o):o.addClass("card-transitioning").transform(`translate3d(${n.rtl?-B:B}px, ${q}px, 0) scale(${y}, ${w})`))}o[0].detachEventHandlers=function(){n.off("resize",H),i.touch&&c.swipeToClose&&(n.off("touchstart:passive",Ve),n.off("touchmove:active",Me),n.off("touchend:passive",He))},n.on("resize",H),i.touch&&c.swipeToClose&&(n.on("touchstart:passive",Ve),n.on("touchmove:active",Me),n.on("touchend:passive",He))},close(t,e){t===void 0&&(t=".card-expandable.card-opened"),e===void 0&&(e=!0);const n=this,s=Ke(),a=P(t).eq(0);if(!a||!a.length||!a.hasClass("card-opened")||a.hasClass("card-opening")||a.hasClass("card-closing"))return;const i=a.children(".card-content"),o=a.parents(".page-content"),r=a.parents(".page").eq(0);if(!r.length)return;const l=Object.assign({animate:e},n.params.card,a.dataset()),f=a.find(l.scrollableEl);let c,u,d;a.attr("data-backdrop-el")&&(d=P(a.attr("data-backdrop-el"))),l.backdrop&&(d=a.parents(".page-content").find(".card-backdrop")),l.hideNavbarOnOpen&&(c=r.children(".navbar"),c.length||r[0].f7Page&&(c=r[0].f7Page.$navbarEl),c&&c.length&&!a[0].f7KeepNavbarOnClose&&n.navbar.show(c,l.animate,!0)),l.hideToolbarOnOpen&&(u=r.children(".toolbar"),u.length||(u=r.parents(".view").children(".toolbar")),u.length||(u=r.parents(".views").children(".toolbar")),u&&u.length&&!a[0].f7KeepToolbarOnClose&&n.toolbar.show(u,l.animate)),r.removeClass("page-with-card-opened"),s.ios&&o.length&&(o.css("height",`${o[0].offsetHeight+1}px`),setTimeout(()=>{o.css("height","")})),d&&d.length&&d.removeClass("card-backdrop-in").addClass("card-backdrop-out"),a.removeClass("card-opened card-transitioning"),l.animate?a.addClass("card-closing"):a.addClass("card-no-transition"),a.transform(""),a.trigger("card:close"),n.emit("cardClose",a[0],r[0]);const m=a.hasClass("card-expandable-animate-width");function h(){m||i.css({width:"",height:""}),d&&d.length&&d.removeClass("card-backdrop-in card-backdrop-out"),a.removeClass("card-closing card-no-transition"),a.trigger("card:closed"),a.find(".card-expandable-size").remove(),n.emit("cardClosed",a[0],r[0])}m&&i.css({width:"",height:""}),i.transform("").scrollTop(0,e?300:0),f.length&&f[0]!==i[0]&&f.scrollTop(0,e?300:0),e?i.transitionEnd(()=>{h()}):h(),a[0].detachEventHandlers&&(a[0].detachEventHandlers(),delete a[0].detachEventHandlers)},toggle(t,e){t===void 0&&(t=".card-expandable");const n=this,s=P(t).eq(0);s.length&&(s.hasClass("card-opened")?n.card.close(s,e):n.card.open(s,e))}},BC={name:"card",params:{card:{hideNavbarOnOpen:!0,hideStatusbarOnOpen:!0,hideToolbarOnOpen:!0,scrollableEl:".card-content",swipeToClose:!0,closeByBackdropClick:!0,backdrop:!0}},create(){It(this,{card:OC})},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,s){const a=this;e.hasClass("card-opened")||e.hasClass("card-opening")||e.hasClass("card-closing")||P(s.target).closest(".card-prevent-open, .card-close").length||a.card.open(e)},".card-backdrop-in":function(){const e=this;let n=!1;e.params.card.closeByBackdropClick&&(n=!0);const s=P(".card-opened");s.length&&(s.attr("data-close-by-backdrop-click")==="true"?n=!0:s.attr("data-close-by-backdrop-click")==="false"&&(n=!1),n&&e.card.close(s))}}},LC={name:"chip"},Qs={store(t,e){const n=this,s=Se();let a=t;const i=P(t);i.length&&i.is("form")&&i.attr("id")&&(a=i.attr("id")),n.form.data[`form-${a}`]=e,s.localStorage[`f7form-${a}`]=JSON.stringify(e)},get(t){const e=this,n=Se();let s=t;const a=P(t);if(a.length&&a.is("form")&&a.attr("id")&&(s=a.attr("id")),n.localStorage[`f7form-${s}`])return JSON.parse(n.localStorage[`f7form-${s}`]);if(e.form.data[`form-${s}`])return e.form.data[`form-${s}`]},remove(t){const e=this,n=Se();let s=t;const a=P(t);a.length&&a.is("form")&&a.attr("id")&&(s=a.attr("id")),e.form.data[`form-${s}`]&&(e.form.data[`form-${s}`]="",delete e.form.data[`form-${s}`]),n.localStorage[`f7form-${s}`]&&(n.localStorage[`f7form-${s}`]="",n.localStorage.removeItem(`f7form-${s}`))}},cd={init(t){const e=this,n=P(t),s=n.attr("id");if(!s)return;const a=e.form.getFormData(s);a&&e.form.fillFromData(n,a);function i(){const o=e.form.convertToData(n);o&&(e.form.storeFormData(s,o),n.trigger("form:storedata",o),e.emit("formStoreData",n[0],o))}n.on("change submit",i)},destroy(t){P(t).off("change submit")}};function DC(t){const e=this,n=P(t).eq(0);if(n.length===0)return;const s={},a=["submit","image","button","file"],i=[];return n.find("input, select, textarea").each(o=>{const r=P(o);if(r.hasClass("ignore-store-data")||r.hasClass("no-store-data"))return;const l=r.attr("name"),f=r.attr("type"),c=o.nodeName.toLowerCase();if(!(a.indexOf(f)>=0)&&!(i.indexOf(l)>=0||!l))if(c==="select"&&r.prop("multiple"))i.push(l),s[l]=[],n.find(`select[name="${l}"] option`).each(u=>{u.selected&&s[l].push(u.value)});else switch(f){case"checkbox":i.push(l),s[l]=[],n.find(`input[name="${l}"]`).each(u=>{u.checked&&s[l].push(u.value)});break;case"radio":i.push(l),n.find(`input[name="${l}"]`).each(u=>{u.checked&&(s[l]=u.value)});break;default:s[l]=r.val();break}}),n.trigger("form:todata",s),e.emit("formToData",n[0],s),s}function RC(t,e){const n=this,s=P(t).eq(0);if(!s.length)return;let a=e;const i=s.attr("id");if(!a&&i&&(a=n.form.getFormData(i)),!a)return;const o=["submit","image","button","file"],r=[];s.find("input, select, textarea").each(l=>{const f=P(l);if(f.hasClass("ignore-store-data")||f.hasClass("no-store-data"))return;const c=f.attr("name"),u=f.attr("type"),d=l.nodeName.toLowerCase();if(!(typeof a[c]>"u"||a[c]===null)&&!(o.indexOf(u)>=0)&&!(r.indexOf(c)>=0||!c)){if(d==="select"&&f.prop("multiple"))r.push(c),s.find(`select[name="${c}"] option`).each(m=>{const h=m;a[c].indexOf(m.value)>=0?h.selected=!0:h.selected=!1});else switch(u){case"checkbox":r.push(c),s.find(`input[name="${c}"]`).each(m=>{const h=m;a[c].indexOf(m.value)>=0?h.checked=!0:h.checked=!1});break;case"radio":r.push(c),s.find(`input[name="${c}"]`).each(m=>{const h=m;a[c]===m.value?h.checked=!0:h.checked=!1});break;default:f.val(a[c]);break}(d==="select"||d==="input"||d==="textarea")&&f.trigger("change","fromdata")}}),s.trigger("form:fromdata",a),n.emit("formFromData",s[0],a)}function HC(){const t=this,e=Se(),n=Le();function s(a,i){const o=P(this);if(a.type==="change"&&!o.hasClass("form-ajax-submit-onchange")||(a.type==="submit"&&a.preventDefault(),a.type==="change"&&i==="fromdata"))return;const r=(o.attr("method")||"GET").toUpperCase(),l=o.attr("enctype")||o.prop("enctype");let f=o.attr("action");if(!f)return;let c;r==="POST"?l==="application/x-www-form-urlencoded"||l==="application/json"?(c=t.form.convertToData(o[0]),l==="application/json"&&(c=JSON.stringify(c))):c=new e.FormData(o[0]):(c=wn(t.form.convertToData(o[0])),f.includes("?")?f+=`&${c}`:f+=`?${c}`),o.trigger("formajax:beforesend",{data:c}),t.emit("formAjaxBeforeSend",o[0],c),fetch(f,{method:r,headers:{"Content-Type":l||"application/x-www-form-urlencoded"},...r==="POST"||r==="PUT"?{body:c}:{}}).then(u=>{o.trigger("formajax:complete",{data:c,response:u}),t.emit("formAjaxComplete",o[0],c,u),o.trigger("formajax:success",{data:c,response:u}),t.emit("formAjaxSuccess",o[0],c,u)}).catch(u=>{o.trigger("formajax:error",{data:c,error:u}),t.emit("formAjaxError",o[0],c,u)})}P(n).on("submit change","form.form-ajax-submit, form.form-ajax-submit-onchange",s)}const zC={name:"form",create(){const t=this;te(t,{form:{data:{},storeFormData:Qs.store.bind(t),getFormData:Qs.get.bind(t),removeFormData:Qs.remove.bind(t),convertToData:DC.bind(t),fillFromData:RC.bind(t),storage:{init:cd.init.bind(t),destroy:cd.destroy.bind(t)}}})},on:{init(){const t=this;HC.call(t)},tabBeforeRemove(t){const e=this;P(t).find(".form-store-data").each(n=>{e.form.storage.destroy(n)})},tabMounted(t){const e=this;P(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)})}}},Nt={ignoreTypes:["checkbox","button","submit","range","radio","image"],createTextareaResizableShadow(){const t=Le(),e=P(t.createElement("textarea"));e.addClass("textarea-resizable-shadow"),e.prop({disabled:!0,readonly:!0}),Nt.textareaResizableShadow=e},textareaResizableShadow:void 0,resizeTextarea(t){const e=this,n=Se(),s=P(t);Nt.textareaResizableShadow||Nt.createTextareaResizableShadow();const a=Nt.textareaResizableShadow;if(!s.length||!s.hasClass("resizable"))return;Nt.textareaResizableShadow.parents().length===0&&e.$el.append(a);const i=n.getComputedStyle(s[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(f=>{let c=i[f];"font-size line-height letter-spacing width".split(" ").indexOf(f)>=0&&(c=c.replace(",",".")),a.css(f,c)});const o=s[0].clientHeight;a.val("");const r=a[0].scrollHeight;a.val(s.val()),a.css("height",0);const l=a[0].scrollHeight;o!==l&&(l>r?s.css("height",`${l}px`):lr||l`),l.insertAfter(e)),l.text(r)),l.length>0&&(n.addClass("item-input-with-error-message"),s.addClass("input-with-error-message")),n.addClass("item-input-invalid"),s.addClass("input-invalid"),e.addClass("input-invalid"),i(),!1}return n.removeClass("item-input-invalid item-input-with-error-message"),s.removeClass("input-invalid input-with-error-message"),e.removeClass("input-invalid"),i(),!0},validateInputs(t){const e=this;return P(t).find("input, textarea, select").map(s=>e.input.validate(s)).indexOf(!1)<0},focus(t){const e=P(t),n=e.attr("type");Nt.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=P(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=P(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 s=n[0].hasAttribute("contenteditable");let a;s?n.find(".text-editor-placeholder").length?a="":a=n.html():a=n.val();const i=n.parents(".item-input"),o=n.parents(".input");a&&typeof a=="string"&&a.trim()!==""||Array.isArray(a)&&a.length>0?(i.addClass("item-input-with-value"),o.addClass("input-with-value"),n.addClass("input-with-value"),n.trigger("input:notempty"),e.emit("inputNotEmpty",n[0])):(i.removeClass("item-input-with-value"),o.removeClass("input-with-value"),n.removeClass("input-with-value"),n.trigger("input:empty"),e.emit("inputEmpty",n[0]))},scrollIntoView(t,e,n,s){e===void 0&&(e=0);const a=P(t),i=a.parents(".page-content, .panel, .card-expandable .card-content").eq(0);if(!i.length)return!1;const o=i[0].offsetHeight,r=i[0].scrollTop,l=parseInt(i.css("padding-top"),10),f=parseInt(i.css("padding-bottom"),10),c=i.offset().top-r,u=a.offset().top-c,d=a[0].offsetHeight,m=u+r-l,h=u+r-o+f+d,p=m+(h-m)/2;return r>m?(i.scrollTop(n?p:m,e),!0):r{s&&s.activeElement===c&&t.input.scrollIntoView(c,t.params.input.scrollIntoViewDuration,t.params.input.scrollIntoViewCentered,t.params.input.scrollIntoViewAlways)}):t.input.scrollIntoView(c,t.params.input.scrollIntoViewDuration,t.params.input.scrollIntoViewCentered,t.params.input.scrollIntoViewAlways)),t.input.focus(c)}function i(){const c=P(this),u=c[0].nodeName.toLowerCase();t.input.blur(c),(c.dataset().validate||c.attr("validate")!==null||c.attr("data-validate-on-blur")!==null)&&t.input.validate(c),u==="textarea"&&c.hasClass("resizable")&&Nt.textareaResizableShadow&&Nt.textareaResizableShadow.remove()}function o(){const c=P(this),u=c.attr("type"),d=c[0].nodeName.toLowerCase(),m=c[0].hasAttribute("contenteditable");Nt.ignoreTypes.indexOf(u)>=0||(t.input.checkEmptyState(c),!m&&(c.attr("data-validate-on-blur")===null&&(c.dataset().validate||c.attr("validate")!==null)&&t.input.validate(c),d==="textarea"&&c.hasClass("resizable")&&t.input.resizeTextarea(c)))}function r(c){const u=P(this);u.attr("data-validate-on-blur")===null&&(u.dataset().validate||u.attr("validate")!==null)&&(c.preventDefault(),t.input.validate(u))}function l(){const u=P(this).siblings("input, textarea").eq(0),d=u.val();u.val("").trigger("input change").focus().trigger("input:clear",d),t.emit("inputClear",d)}function f(c){c.preventDefault()}P(s).on("click",".input-clear-button",l),P(s).on("mousedown",".input-clear-button",f),P(s).on("change input","input, textarea, select, .item-input [contenteditable]",o,!0),P(s).on("focus","input, textarea, select, .item-input [contenteditable]",a,!0),P(s).on("blur","input, textarea, select, .item-input [contenteditable]",i,!0),P(s).on("invalid","input, textarea, select",r,!0)}},FC={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=Ke().android),It(t,{input:Nt})},on:{init(){this.input.init()},tabMounted(t){const e=this,n=P(t);n.find(".item-input, .input").each(s=>{P(s).find("input, select, textarea, [contenteditable]").each(i=>{const o=P(i);Nt.ignoreTypes.indexOf(o.attr("type"))>=0||e.input.checkEmptyState(o)})}),n.find("textarea.resizable").each(s=>{e.input.resizeTextarea(s)})},pageInit(t){const e=this,n=t.$el;n.find(".item-input, .input").each(s=>{P(s).find("input, select, textarea, [contenteditable]").each(i=>{const o=P(i);Nt.ignoreTypes.indexOf(o.attr("type"))>=0||e.input.checkEmptyState(o)})}),n.find("textarea.resizable").each(s=>{e.input.resizeTextarea(s)})},"panelBreakpoint panelCollapsedBreakpoint panelResize panelOpen panelSwipeOpen resize viewMasterDetailBreakpoint":function(e){const n=this;e&&e.$el?e.$el.find("textarea.resizable").each(s=>{n.input.resizeTextarea(s)}):P("textarea.resizable").each(s=>{n.input.resizeTextarea(s)})}}},NC={name:"checkbox"},VC={name:"radio"};let YC=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this,a=it(),i={};s.useModulesParams(i),s.params=te(i,n);const o=s.params.el;if(!o)return s;const r=P(o);if(r.length===0)return s;if(r[0].f7Toggle)return r[0].f7Toggle;const l=r.children('input[type="checkbox"]');te(s,{app:e,$el:r,el:r[0],$inputEl:l,inputEl:l[0],disabled:r.hasClass("disabled")||l.hasClass("disabled")||l.attr("disabled")||l[0].disabled}),Object.defineProperty(s,"checked",{enumerable:!0,configurable:!0,set(k){!s||typeof s.$inputEl>"u"||s.checked!==k&&(l[0].checked=k,s.$inputEl.trigger("change"))},get(){return l[0].checked}}),r[0].f7Toggle=s;let f;const c={};let u,d,m,h,p;function b(k){f||s.disabled||(c.x=k.type==="touchstart"?k.targetTouches[0].pageX:k.pageX,c.y=k.type==="touchstart"?k.targetTouches[0].pageY:k.pageY,d=0,f=!0,u=void 0,h=Ht(),p=s.checked,m=r[0].offsetWidth,_t(()=>{f&&r.addClass("toggle-active-state")}))}function g(k){if(!f||s.disabled)return;const E=k.type==="touchmove"?k.targetTouches[0].pageX:k.pageX,S=k.type==="touchmove"?k.targetTouches[0].pageY:k.pageY,I=e.rtl?-1:1;if(typeof u>"u"&&(u=!!(u||Math.abs(S-c.y)>Math.abs(E-c.x))),u){f=!1;return}k.preventDefault(),d=E-c.x;let T;d*I<0&&Math.abs(d)>m/3&&p&&(T=!0),d*I>0&&Math.abs(d)>m/3&&!p&&(T=!0),T&&(c.x=E,s.checked=!p,p=!p)}function v(){if(!f||s.disabled){u&&r.removeClass("toggle-active-state"),f=!1;return}const k=e.rtl?-1:1;f=!1,r.removeClass("toggle-active-state");let E;Ht()-h<300&&(d*k<0&&p&&(E=!0),d*k>0&&!p&&(E=!0),E&&(s.checked=!p))}function _(){s.$el.trigger("toggle:change"),s.emit("local::change toggleChange",s)}s.attachEvents=function(){const E=a.passiveListener?{passive:!0}:!1;r.on(e.touchEvents.start,b,E),e.on("touchmove",g),e.on("touchend:passive",v),s.$inputEl.on("change",_)},s.detachEvents=function(){const E=a.passiveListener?{passive:!0}:!1;r.off(e.touchEvents.start,b,E),e.off("touchmove",g),e.off("touchend:passive",v),s.$inputEl.off("change",_)},s.useModules(),s.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(),ft(e),e=null}};const ud=YC,qC={name:"toggle",create(){const t=this;t.toggle=ct({defaultSelector:".toggle",constructor:ud,app:t,domProp:"f7Toggle"})},static:{Toggle:ud},on:{tabMounted(t){const e=this;P(t).find(".toggle-init").each(n=>e.toggle.create({el:n}))},tabBeforeRemove(t){P(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 WC=class extends rt{constructor(e,n){super(n,[e]);const s=this,a=it(),i={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"};s.useModulesParams(i),s.params=te(i,n);const o=s.params.el;if(!o)return s;const r=P(o);if(r.length===0)return s;if(r[0].f7Range)return r[0].f7Range;const l=r.dataset();"step min max value scaleSteps scaleSubSteps".split(" ").forEach(he=>{typeof n[he]>"u"&&typeof l[he]<"u"&&(s.params[he]=parseFloat(l[he]))}),"dual label vertical verticalReversed scale".split(" ").forEach(he=>{typeof n[he]>"u"&&typeof l[he]<"u"&&(s.params[he]=l[he])}),s.params.value||(typeof l.value<"u"&&(s.params.value=l.value),typeof l.valueLeft<"u"&&typeof l.valueRight<"u"&&(s.params.value=[parseFloat(l.valueLeft),parseFloat(l.valueRight)]));let f;s.params.dual||(s.params.inputEl?f=P(s.params.inputEl):r.find('input[type="range"]').length&&(f=r.find('input[type="range"]').eq(0)));const{dual:c,step:u,label:d,min:m,max:h,value:p,vertical:b,verticalReversed:g,scale:v,scaleSteps:_,scaleSubSteps:k,limitKnobPosition:E}=s.params;te(s,{app:e,$el:r,el:r[0],$inputEl:f,inputEl:f?f[0]:void 0,dual:c,step:u,label:d,min:m,max:h,value:p,previousValue:p,vertical:b,verticalReversed:g,scale:v,scaleSteps:_,scaleSubSteps:k,limitKnobPosition:E}),f&&("step min max".split(" ").forEach(he=>{!n[he]&&f.attr(he)&&(s.params[he]=parseFloat(f.attr(he)),s[he]=parseFloat(f.attr(he)))}),typeof f.val()<"u"&&(s.params.value=parseFloat(f.val()),s.value=parseFloat(f.val()))),s.dual&&r.addClass("range-slider-dual"),s.label&&r.addClass("range-slider-label"),s.vertical?(r.addClass("range-slider-vertical"),s.verticalReversed&&r.addClass("range-slider-vertical-reversed")):r.addClass("range-slider-horizontal");const S=P('
        '),I=P('
        ');S.append(I);const T=` -
        -
        - ${s.label?'
        ':""} -
        - `,A=[P(T)];s.dual&&A.push(P(T)),r.append(S),A.forEach(he=>{r.append(he)});const y=[];s.label&&(y.push(A[0].find(".range-knob-label")),s.dual&&y.push(A[1].find(".range-knob-label")));let w;s.scale&&s.scaleSteps>=1&&(w=P(` -
        - ${s.renderScale()} -
        - `),r.append(w)),te(s,{knobs:A,labels:y,$barEl:S,$barActiveEl:I,$scaleEl:w}),r[0].f7Range=s;let D;const O={};let L,j,W,Y,B,q,X,H;function G(){X=!0}function ce(he){if(D||!s.params.draggableBar&&P(he.target).closest(".range-knob").length===0)return;X=!1,O.x=he.type==="touchstart"?he.targetTouches[0].pageX:he.pageX,O.y=he.type==="touchstart"?he.targetTouches[0].pageY:he.pageY,he.type==="touchstart"&&(H=he.targetTouches[0].identifier),D=!0,L=void 0,j=r.offset(),W=j.left,Y=j.top;let re;s.vertical?(re=(O.y-Y)/s.rangeHeight,s.verticalReversed||(re=1-re)):s.app.rtl?re=(W+s.rangeWidth-O.x)/s.rangeWidth:re=(O.x-W)/s.rangeWidth;let Ce=re*(s.max-s.min)+s.min;s.dual?Math.abs(s.value[0]-Ce){D&&B.addClass("range-knob-active-state")},70),s.on("change",G),s.setValue(Ce,!0)}function ye(he){if(!D)return;let re,Ce;if(he.type==="touchmove")for(let Me=0;Me"u"&&typeof Ce>"u")return;if(typeof L>"u"&&!s.vertical&&(L=!!(L||Math.abs(Ce-O.y)>Math.abs(re-O.x))),L){D=!1;return}he.preventDefault();let Pe;s.vertical?(Pe=(Ce-Y)/s.rangeHeight,s.verticalReversed||(Pe=1-Pe)):s.app.rtl?Pe=(W+s.rangeWidth-re)/s.rangeWidth:Pe=(re-W)/s.rangeWidth;let Ve=Pe*(s.max-s.min)+s.min;if(s.dual){let Me,He;q===0?(Me=Ve,He=s.value[1],Me>He&&(He=Me)):(Me=s.value[0],He=Ve,He{let I=v*k[S];if(b){const T=v*k[S]-g/2;T<0&&(I=g/2),T+g>v&&(I=v-g/2)}E.css(_,`${I}px`),d&&m[S].text(e.formatLabel(u[S],m[S][0]))})}else{const k=(u-r)/(l-r);c.css(h?"height":"width",`${k*100}%`);let E=v*k;if(b){const S=v*k-g/2;S<0&&(E=g/2),S+g>v&&(E=v-g/2)}f[0].css(_,`${E}px`),d&&m[0].text(e.formatLabel(u,m[0][0]))}e.dual&&u.indexOf(r)>=0||!e.dual&&u===r?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 s=this,{step:a,min:i,max:o}=s;let r,l;if(s.dual){l=[s.value[0],s.value[1]];let f=e;if(Array.isArray(f)||(f=[e,e]),e[0]>e[1]&&(f=[f[0],f[0]]),f=f.map(c=>Math.max(Math.min(Math.round(c/a)*a,o),i)),f[0]===s.value[0]&&f[1]===s.value[1])return s;f.forEach((c,u)=>{s.value[u]=c}),r=l[0]!==f[0]||l[1]!==f[1],s.layout()}else{l=s.value;const f=Math.max(Math.min(Math.round(e/a)*a,o),i);s.value=f,s.layout(),r=l!==f}return r&&(s.previousValue=l),r&&(s.$el.trigger("range:change",s.value),s.$inputEl&&!s.dual&&(s.$inputEl.val(s.value),n?s.$inputEl.trigger("input"):s.$inputEl.trigger("input change")),n||(s.$el.trigger("range:changed",s.value),s.emit("local::changed rangeChanged",s,s.value)),s.emit("local::change rangeChange",s,s.value)),s}getValue(){return this.value}formatLabel(e,n){const s=this;return s.params.formatLabel?s.params.formatLabel.call(s,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:s,vertical:a}=e,i=a?s?"top":"bottom":n.rtl?"right":"left";let o="";return Array.from({length:e.scaleSteps+1}).forEach((r,l)=>{const f=(e.max-e.min)/e.scaleSteps,c=e.min+f*l,u=(c-e.min)/(e.max-e.min);o+=`
        ${e.formatScaleLabel(c)}
        `,e.scaleSubSteps&&e.scaleSubSteps>1&&l{const h=f/e.scaleSubSteps,b=(c+h*(m+1)-e.min)/(e.max-e.min);o+=`
        `})}),o}updateScale(){const e=this;if(!e.scale||e.scaleSteps<1){e.$scaleEl&&e.$scaleEl.remove(),delete e.$scaleEl;return}e.$scaleEl||(e.$scaleEl=P('
        '),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(),ft(e),e=null}};const ps=WC,jC={name:"range",create(){const t=this;t.range=te(ct({defaultSelector:".range-slider",constructor:ps,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 s=t.range.get(e);if(s)return s.setValue(n)}})},static:{Range:ps},on:{tabMounted(t){const e=this;P(t).find(".range-slider-init").each(n=>new ps(e,{el:n}))},tabBeforeRemove(t){P(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 ps(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 XC=class extends rt{constructor(e,n){super(n,[e]);const s=this,a={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};s.useModulesParams(a),s.params=te(a,n),s.params.values.params.max&&(s.params.value=s.params.max);const i=s.params.el;if(!i)return s;const o=P(i);if(o.length===0)return s;if(o[0].f7Stepper)return o[0].f7Stepper;let r;if(s.params.inputEl?r=P(s.params.inputEl):o.find(".stepper-input-wrap").find("input, textarea").length&&(r=o.find(".stepper-input-wrap").find("input, textarea").eq(0)),r&&r.length){"step min max".split(" ").forEach(H=>{!n[H]&&r.attr(H)&&(s.params[H]=parseFloat(r.attr(H)))});const q=parseInt(s.params.decimalPoint,10);Number.isNaN(q)?s.params.decimalPoint=0:s.params.decimalPoint=q;const X=parseFloat(r.val());typeof n.value>"u"&&!Number.isNaN(X)&&(X||X===0)&&(s.params.value=X)}let l;s.params.valueEl?l=P(s.params.valueEl):o.find(".stepper-value").length&&(l=o.find(".stepper-value").eq(0));const f=o.find(".stepper-button-plus"),c=o.find(".stepper-button-minus"),{step:u,min:d,max:m,value:h,decimalPoint:p}=s.params;te(s,{app:e,$el:o,el:o[0],$buttonPlusEl:f,buttonPlusEl:f[0],$buttonMinusEl:c,buttonMinusEl:c[0],$inputEl:r,inputEl:r?r[0]:void 0,$valueEl:l,valueEl:l?l[0]:void 0,step:u,min:d,max:m,value:h,decimalPoint:p,typeModeChanged:!1}),o[0].f7Stepper=s;const b={};let g,v,_,k,E,S=null,I=!1,T=!1;function A(q,X,H,G,ce,ye){clearTimeout(E),E=setTimeout(()=>{q===1&&(_=!0,I=!0),clearInterval(k),ye(),k=setInterval(()=>{ye()},ce),q{s[S]()})}function w(q){if(!g||T)return;const X=q.type==="touchmove"?q.targetTouches[0].pageX:q.pageX,H=q.type==="touchmove"?q.targetTouches[0].pageY:q.pageY;typeof v>"u"&&!I&&(v=!!(v||Math.abs(H-b.y)>Math.abs(X-b.x)));const G=((X-b.x)**2+(H-b.y)**2)**.5;(v||G>20)&&(g=!1,clearTimeout(E),clearInterval(k))}function D(){clearTimeout(E),clearInterval(k),S=null,I=!1,g=!1}function O(){if(T){s.params.buttonsEndInputMode&&(T=!1,s.endTypeMode(!0));return}if(_){_=!1;return}s.decrement(!0)}function L(){if(T){s.params.buttonsEndInputMode&&(T=!1,s.endTypeMode(!0));return}if(_){_=!1;return}s.increment(!0)}function j(q){!q.target.readOnly&&s.params.manualInputMode&&(T=!0,typeof q.target.selectionStart=="number"&&(q.target.selectionStart=q.target.value.length,q.target.selectionEnd=q.target.value.length))}function W(q){(q.keyCode===13||q.which===13)&&(q.preventDefault(),T=!1,s.endTypeMode())}function Y(){T=!1,s.endTypeMode(!0)}function B(q){if(T){s.typeValue(q.target.value);return}q.detail&&q.detail.sentByF7Stepper||s.setValue(q.target.value,!0)}return s.attachEvents=function(){c.on("click",O),f.on("click",L),s.params.watchInput&&r&&r.length&&(r.on("input",B),r.on("click",j),r.on("blur",Y),r.on("keyup",W)),s.params.autorepeat&&(e.on("touchstart:passive",y),e.on("touchmove:active",w),e.on("touchend:passive",D))},s.detachEvents=function(){c.off("click",O),f.off("click",L),s.params.watchInput&&r&&r.length&&(r.off("input",B),r.off("click",j),r.off("blur",Y),r.off("keyup",W))},s.useModules(),s.init(),s}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,s){const a=this,{step:i,min:o,max:r}=a,l=a.value;let f=Math.round(e/i)*i;if(a.params.wraps&&s?(f>r&&(f=o),f{const s=P(n).dataset();e.stepper.create(te({el:n},s||{}))})},tabBeforeRemove(t){P(t).find(".stepper-init").each(e=>{e.f7Stepper&&e.f7Stepper.destroy()})},pageInit(t){const e=this;t.$el.find(".stepper-init").each(n=>{const s=P(n).dataset();e.stepper.create(te({el:n},s||{}))})},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,s=P(n).dataset();e.stepper.create(te({el:n},s||{}))},destroy(t){const e=t.elm;e.f7Stepper&&e.f7Stepper.destroy()}}}},Ks=[{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źẑżžẓẕƶȥɀⱬꝣ"}],up={};for(let t=0;tup[e]||e)}let UC=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this,a=te({on:{}},e.params.smartSelect);s.useModulesParams(a),s.params=te({},a,n),s.app=e;const i=P(s.params.el).eq(0);if(i.length===0)return s;if(i[0].f7SmartSelect)return i[0].f7SmartSelect;const o=i.find("select").eq(0);if(o.length===0)return s;let r;s.params.setValueText&&(r=P(s.params.valueEl),r.length===0&&(r=i.find(".item-after")),r.length===0&&(r=P('
        '),r.insertAfter(i.find(".item-title"))));let l=n.url;l||(i.attr("href")&&i.attr("href")!=="#"?l=i.attr("href"):o.attr("name")&&(l=`${o.attr("name").toLowerCase()}-select/`)),l||(l=s.params.url);const f=o[0].multiple,c=f?"checkbox":"radio",u=Rs();te(s,{$el:i,el:i[0],$selectEl:o,selectEl:o[0],$valueEl:r,valueEl:r&&r[0],url:l,multiple:f,inputType:c,id:u,inputName:`${c}-${u}`,selectName:o.attr("name"),maxLength:o.attr("maxlength")||n.maxLength}),i[0].f7SmartSelect=s;function d(){s.open()}function m(){const p=s.$selectEl.val();s.$el.trigger("smartselect:change",p),s.emit("local::change smartSelectChange",s,p),s.vl&&s.vl.clearCache(),s.setValueText()}s.attachEvents=function(){i.on("click",d),i.on("change","select",m)},s.detachEvents=function(){i.off("click",d),i.off("change","select",m)};function h(){let p,b;const g=this,v=g.value;let _=[],k;if(g.type==="checkbox"){for(let E=0;EE.value===v)[0]),k=p.dataset?p.dataset.displayAs:P(p).data("display-as"),b=k&&typeof k<"u"?k:p.textContent,_=[b],s.selectEl.value=v;s.$selectEl.trigger("change"),s.params.setValueText&&s.formatValueTextContent(_),s.params.closeOnSelect&&s.inputType==="radio"&&s.close()}return s.attachInputsEvents=function(){s.$containerEl.on("change",'input[type="checkbox"], input[type="radio"]',h)},s.detachInputsEvents=function(){s.$containerEl.off("change",'input[type="checkbox"], input[type="radio"]',h)},s.useModules(),s.init(),s}setValue(e){const n=this;let s=e,a=[],i,o,r;if(n.multiple){Array.isArray(s)||(s=[s]);for(let l=0;l=0?i.selected=!0:i.selected=!1,i.selected&&(o=i.dataset?i.dataset.displayAs:P(i).data("display-value-as"),r=o&&typeof o<"u"?o:i.textContent,a.push(r.trim()))}else i=n.$selectEl.find(`option[value="${s}"]`)[0],i&&(o=i.dataset?i.dataset.displayAs:P(i).data("display-as"),r=o&&typeof o<"u"?o:i.textContent,a=[r]),n.selectEl.value=s;return n.params.setValueText&&n.formatValueTextContent(a),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 s;if(e.view&&(s=e.view),s||(s=n.parents(".view").length&&n.parents(".view")[0].f7View),!s&&e.openIn==="page")throw Error("Smart Select requires initialized View");return s}checkMaxLength(){const e=this,n=e.$containerEl;e.selectEl.selectedOptions.length>=e.maxLength?n.find('input[type="checkbox"]').each(s=>{s.checked?P(s).parents("li").removeClass("disabled"):P(s).parents("li").addClass("disabled")}):n.find(".disabled").removeClass("disabled")}formatValueTextContent(e){const n=this,s=n.formatValueText(e);s.includes("<")&&s.includes(">")?n.$valueEl.html(s):n.$valueEl.text(s)}formatValueText(e){const n=this;let s;return n.params.formatValueText?s=n.params.formatValueText.call(n,e,n):s=e.join(", "),s}setValueText(e){const n=this;let s=[];typeof e<"u"?Array.isArray(e)?s=e:s=[e]:n.$selectEl.find("option").each(a=>{const i=P(a);if(a.selected){const o=a.dataset?a.dataset.displayAs:i.data("display-value-as");o&&typeof o<"u"?s.push(o):s.push(a.textContent.trim())}}),n.params.setValueText&&n.formatValueTextContent(s)}getItemsData(){const e=this,n=e.app.theme,s=[];let a;return e.$selectEl.find("option").each(i=>{const o=P(i),r=o.dataset(),l=r.optionImage||e.params.optionImage,f=r.optionIcon||e.params.optionIcon,c=n==="ios"&&(r.optionIconIos||e.params.optionIconIos),u=n==="md"&&(r.optionIconMd||e.params.optionIconMd),d=r.inputIconPosition||e.params.inputIconPosition||"",m=l||f||c||u,h=r.optionColor;let p=r.optionClass||"";o[0].disabled&&(p+=" disabled");const b=o.parent("optgroup")[0],g=b&&b.label;let v=!1;b&&b!==a&&(v=!0,a=b,s.push({groupLabel:g,isLabel:v})),s.push({value:o[0].value,text:o[0].textContent.trim(),selected:o[0].selected,groupEl:b,groupLabel:g,image:l,icon:f,iconIos:c,iconMd:u,inputIconPosition:d,color:h,className:p,disabled:o[0].disabled,id:e.id,hasMedia:m,checkbox:e.inputType==="checkbox",radio:e.inputType==="radio",inputName:e.inputName,inputType:e.inputType})}),e.items=s,s}renderSearchbar(){const e=this;return e.params.renderSearchbar?e.params.renderSearchbar.call(e):R("form",{class:"searchbar"},R("div",{class:"searchbar-inner"},R("div",{class:"searchbar-input-wrap"},R("input",{type:"search",spellcheck:e.params.searchbarSpellcheck||"false",placeholder:e.params.searchbarPlaceholder}),R("i",{class:"searchbar-icon"}),R("span",{class:"input-clear-button"})),e.params.searchbarDisableButton&&R("span",{class:"searchbar-disable-button"},e.params.searchbarDisableText)))}renderItem(e,n){const s=this;if(s.params.renderItem)return s.params.renderItem.call(s,e,n);function a(r){return r===void 0&&(r=""),r.indexOf(":")>=0?r.split(":")[1]:""}function i(r){if(r===void 0&&(r=""),r.indexOf(":")>=0){let l=r.split(":")[0];return l==="f7"&&(l="f7-icons"),l==="material"&&(l="material-icons"),l}return r}let o;if(e.isLabel)o=`
      • ${e.groupLabel}
      • `;else{let r=e.selected,l;if(s.params.virtualList){const p=s.getValue();r=s.multiple?p.indexOf(e.value)>=0:p===e.value,s.multiple&&(l=s.multiple&&!r&&p.length===parseInt(s.maxLength,10))}const{icon:f,iconIos:c,iconMd:u}=e,d=f||c||u,m=a(f||c||u||""),h=i(f||c||u||"");o=R("li",{class:`${e.className||""}${l?" disabled":""}`},R("label",{class:`item-${e.inputType} ${e.inputIconPosition?`item-${e.inputType}-icon-${e.inputIconPosition}`:""} item-content`},R("input",{type:e.inputType,name:e.inputName,value:e.value,_checked:r}),R("i",{class:`icon icon-${e.inputType}`}),e.hasMedia&&R("div",{class:"item-media"},d&&R("i",{class:`icon ${h}`},m),e.image&&R("img",{src:e.image})),R("div",{class:"item-inner"},R("div",{class:`item-title${e.color?` text-color-${e.color}`:""}`},e.text))))}return o}renderItems(){const e=this;return e.params.renderItems?e.params.renderItems.call(e,e.items):` - ${e.items.map((s,a)=>`${e.renderItem(s,a)}`).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 a=e.$el.find(".item-title");n=a.length?a.text().trim():""}const s=e.params.cssClass;return R("div",{class:`page smart-select-page ${s}`,"data-name":"smart-select-page","data-select-name":e.selectName},R("div",{class:`navbar ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},R("div",{class:"navbar-bg"}),R("div",{class:`navbar-inner sliding ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},R("div",{class:"left"},R("a",{class:"link back"},R("i",{class:"icon icon-back"}),R("span",{class:"if-not-md"},e.params.pageBackLinkText))),n&&R("div",{class:"title"},n),e.params.searchbar&&R("div",{class:"subnavbar"},e.renderSearchbar()))),e.params.searchbar&&R("div",{class:"searchbar-backdrop"}),R("div",{class:"page-content"},R("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}`:""}`},R("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 a=e.$el.find(".item-title");n=a.length?a.text().trim():""}const s=e.params.cssClass||"";return R("div",{class:`popup smart-select-popup ${s} ${e.params.popupTabletFullscreen?"popup-tablet-fullscreen":""}`,"data-select-name":e.selectName},R("div",{class:"view"},R("div",{class:`page smart-select-page ${e.params.searchbar?"page-with-subnavbar":""}`,"data-name":"smart-select-page"},R("div",{class:`navbar ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},R("div",{class:"navbar-bg"}),R("div",{class:"navbar-inner sliding"},n&&R("div",{class:"title"},n),R("div",{class:"right"},R("a",{class:"link popup-close","data-popup":`.smart-select-popup[data-select-name='${e.selectName}']`},e.params.popupCloseLinkText)),e.params.searchbar&&R("div",{class:"subnavbar"},e.renderSearchbar()))),e.params.searchbar&&R("div",{class:"searchbar-backdrop"}),R("div",{class:"page-content"},R("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}`:""}`},R("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 R("div",{class:`sheet-modal smart-select-sheet ${n}`,"data-select-name":e.selectName},R("div",{class:`toolbar toolbar-top ${e.params.toolbarColorTheme?`color-${e.params.toolbarColorTheme}`:""}`},R("div",{class:"toolbar-inner"},R("div",{class:"left"}),R("div",{class:"right"},R("a",{class:"link sheet-close"},e.params.sheetCloseLinkText)))),R("div",{class:"sheet-modal-inner"},R("div",{class:"page-content"},R("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}`:""}`},R("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 R("div",{class:`popover smart-select-popover ${n}`,"data-select-name":e.selectName},R("div",{class:"popover-inner"},R("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}`:""}`},R("ul",null,!e.params.virtualList&&e.renderItems(e.items)))))}scrollToSelectedItem(){const e=this,{params:n,$containerEl:s}=e;if(!e.opened)return e;if(n.virtualList){let a;e.vl.items.forEach((i,o)=>{typeof a>"u"&&i.selected&&(a=o)}),typeof a<"u"&&e.vl.scrollToItem(a)}else{const a=s.find("input:checked").parents("li");if(!a.length)return e;const i=s.find(".page-content, .popover-inner");if(!i.length)return e;i.scrollTop(a.offset().top-i.offset().top-parseInt(i.css("padding-top"),10))}return e}onOpen(e,n){const s=this,a=s.app,i=P(n);if(s.$containerEl=i,s.openedIn=e,s.opened=!0,s.params.virtualList&&(s.vl=a.virtualList.create({el:i.find(".virtual-list"),items:s.items,renderItem:s.renderItem.bind(s),height:s.params.virtualListHeight,searchByItem(o,r){return!!(r.text&&gs(r.text).toLowerCase().indexOf(o.trim().toLowerCase())>=0)}})),s.params.scrollToSelectedItem&&s.scrollToSelectedItem(),s.params.searchbar){let o=i.find(".searchbar");if(e==="page"&&a.theme==="ios"&&(o=P(a.navbar.getElByPage(i)).find(".searchbar")),s.params.appendSearchbarNotFound&&(e==="page"||e==="popup")){let l=null;typeof s.params.appendSearchbarNotFound=="string"?l=P(`
        ${s.params.appendSearchbarNotFound}
        `):typeof s.params.appendSearchbarNotFound=="boolean"?l=P('
        Nothing found
        '):l=s.params.appendSearchbarNotFound,l&&i.find(".page-content").append(l[0])}const r=te({el:o,backdropEl:i.find(".searchbar-backdrop"),searchContainer:`.smart-select-list-${s.id}`,searchIn:".item-title"},typeof s.params.searchbar=="object"?s.params.searchbar:{});s.searchbar=a.searchbar.create(r)}s.maxLength&&s.checkMaxLength(),s.params.closeOnSelect&&s.$containerEl.find(`input[type="radio"][name="${s.inputName}"]:checked`).parents("label").once("click",()=>{s.close()}),s.attachInputsEvents(),s.$el.trigger("smartselect:open"),s.emit("local::open smartSelectOpen",s)}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(s,a){e.onOpen("page",a.el)},pageAfterIn(s,a){e.onOpened("page",a.el)},pageBeforeOut(s,a){e.onClose("page",a.el)},pageAfterOut(s,a){e.onClosed("page",a.el)}}}}),e}openPopup(){const e=this;if(e.opened)return e;e.getItemsData();const s={content:e.renderPopup(e.items),push:e.params.popupPush,swipeToClose:e.params.popupSwipeToClose,closeByBackdropClick:e.params.closeByBackdropClick,on:{popupOpen(a){e.onOpen("popup",a.el)},popupOpened(a){e.onOpened("popup",a.el)},popupClose(a){e.onClose("popup",a.el)},popupClosed(a){e.onClosed("popup",a.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:s}}):e.modal=e.app.popup.create(s).open(),e}openSheet(){const e=this;if(e.opened)return e;e.getItemsData();const s={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(a){e.onOpen("sheet",a.el)},sheetOpened(a){e.onOpened("sheet",a.el)},sheetClose(a){e.onClose("sheet",a.el)},sheetClosed(a){e.onClosed("sheet",a.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,sheet:s}}):e.modal=e.app.sheet.create(s).open(),e}openPopover(){const e=this;if(e.opened)return e;e.getItemsData();const s={content:e.renderPopover(e.items),targetEl:e.$el,closeByBackdropClick:e.params.closeByBackdropClick,on:{popoverOpen(a){e.onOpen("popover",a.el)},popoverOpened(a){e.onOpened("popover",a.el)},popoverClose(a){e.onClose("popover",a.el)},popoverClosed(a){e.onClosed("popover",a.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popover:s}}):e.modal=e.app.popover.create(s).open(),e}open(e){const n=this;if(n.opened)return n;let s=!1;function a(){s=!0}if(n.$el&&n.$el.trigger("smartselect:beforeopen",{prevent:a}),n.emit("local::beforeOpen smartSelectBeforeOpen",n,a),s)return n;const i=e||n.params.openIn;return n[`open${i.split("").map((o,r)=>r===0?o.toUpperCase():o).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",()=>{_t(()=>{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,ft(e),e.destroyed=!0}};const pd=UC,xC={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:pd},create(){const t=this;t.smartSelect=te(ct({defaultSelector:".smart-select",constructor:pd,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;P(t).find(".smart-select-init").each(n=>{e.smartSelect.create(te({el:n},P(n).dataset()))})},tabBeforeRemove(t){P(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(te({el:n},P(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 s=this;e[0].f7SmartSelect||s.smartSelect.create(te({el:e},n)).open()}},vnode:{"smart-select-init":{insert(t){const e=this,n=t.elm;e.smartSelect.create(te({el:n},P(n).dataset()))},destroy(t){const e=t.elm;e.f7SmartSelect&&e.f7SmartSelect.destroy&&e.f7SmartSelect.destroy()}}}},$C={name:"grid"};let QC=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this;s.params=te({},e.params.calendar,n);let a;if(s.params.containerEl&&(a=P(s.params.containerEl),a.length===0))return s;let i;s.params.inputEl&&(i=P(s.params.inputEl));const o=s.params.direction==="horizontal";let r=1;o&&(r=e.rtl?-1:1),te(s,{app:e,$containerEl:a,containerEl:a&&a[0],inline:a&&a.length>0,$inputEl:i,inputEl:i&&i[0],initialized:!1,opened:!1,url:s.params.url,isHorizontal:o,inverter:r,animating:!1,allowTouchMove:!0,hasTimePicker:s.params.timePicker&&!s.params.rangePicker&&!s.params.multiple}),s.dayFormatter=E=>new Intl.DateTimeFormat(s.params.locale,{day:"numeric"}).format(E).replace(/日/,""),s.monthFormatter=E=>new Intl.DateTimeFormat(s.params.locale,{month:"long"}).format(E),s.yearFormatter=E=>new Intl.DateTimeFormat(s.params.locale,{year:"numeric"}).format(E),s.timeSelectorFormatter=E=>new Intl.DateTimeFormat(s.params.locale,s.params.timePickerFormat).format(E);const l=s.timeSelectorFormatter(new Date).toLowerCase();s.is12HoursFormat=l.indexOf("pm")>=0||l.indexOf("am")>=0;let{monthNames:f,monthNamesShort:c,dayNames:u,dayNamesShort:d}=s.params;const{monthNamesIntl:m,monthNamesShortIntl:h,dayNamesIntl:p,dayNamesShortIntl:b}=s.getIntlNames();f==="auto"&&(f=m),c==="auto"&&(c=h),u==="auto"&&(u=p),d==="auto"&&(d=b),te(s,{monthNames:f,monthNamesShort:c,dayNames:u,dayNamesShort:d});function g(){s.open()}function v(E){E.preventDefault()}function _(){s.setValue([]),s.opened&&s.update()}function k(E){const S=P(E.target);s.destroyed||!s.params||s.isPopover()||!s.opened||s.closing||S.closest('[class*="backdrop"]').length||s.monthPickerPopover||s.yearPickerPopover||s.timePickerPopover||(i&&i.length>0?S[0]!==i[0]&&S.closest(".sheet-modal, .calendar-modal").length===0&&s.close():P(E.target).closest(".sheet-modal, .calendar-modal").length===0&&s.close())}return te(s,{attachInputEvents(){s.$inputEl.on("click",g),s.$inputEl.on("input:clear",_),s.params.inputReadOnly&&(s.$inputEl.on("focus mousedown",v),s.$inputEl[0]&&(s.$inputEl[0].f7ValidateReadonly=!0))},detachInputEvents(){s.$inputEl.off("click",g),s.$inputEl.off("input:clear",_),s.params.inputReadOnly&&(s.$inputEl.off("focus mousedown",v),s.$inputEl[0]&&delete s.$inputEl[0].f7ValidateReadonly)},attachHtmlEvents(){e.on("click",k)},detachHtmlEvents(){e.off("click",k)}}),s.attachCalendarEvents=function(){let S=!0,I,T,A,y,w,D,O,L,j,W,Y,B,q,X;const{$el:H,$wrapperEl:G}=s;function ce(Me){T||I||!Me.isTrusted||(I=!0,A=Me.type==="touchstart"?Me.targetTouches[0].pageX:Me.pageX,w=A,y=Me.type==="touchstart"?Me.targetTouches[0].pageY:Me.pageY,D=y,O=new Date().getTime(),B=0,S=!0,X=void 0,j=s.monthsTranslate)}function ye(Me){if(!I||!Me.isTrusted)return;const{isHorizontal:He}=s;if(w=Me.type==="touchmove"?Me.targetTouches[0].pageX:Me.pageX,D=Me.type==="touchmove"?Me.targetTouches[0].pageY:Me.pageY,typeof X>"u"&&(X=!!(X||Math.abs(D-y)>Math.abs(w-A))),He&&X||!s.allowTouchMove){I=!1;return}if(Me.preventDefault(),s.animating){I=!1;return}S=!1,T||(T=!0,W=G[0].offsetWidth,Y=G[0].offsetHeight,G.transition(0)),q=He?w-A:D-y,B=q/(He?W:Y),j=(s.monthsTranslate*s.inverter+B)*100,G.transform(`translate3d(${He?j:0}%, ${He?0:j}%, 0)`)}function ne(Me){if(!I||!T||!Me.isTrusted){I=!1,T=!1;return}I=!1,T=!1,L=new Date().getTime(),L-O<300?Math.abs(q)<10?s.resetMonth():q>=10?e.rtl?s.nextMonth():s.prevMonth():e.rtl?s.prevMonth():s.nextMonth():B<=-.5?e.rtl?s.prevMonth():s.nextMonth():B>=.5?e.rtl?s.nextMonth():s.prevMonth():s.resetMonth(),setTimeout(()=>{S=!0},100)}function me(Me){if(!S)return;let He=P(Me.target).parents(".calendar-day");if(He.length===0&&P(Me.target).hasClass("calendar-day")&&(He=P(Me.target)),He.length===0||He.hasClass("calendar-day-disabled"))return;s.params.rangePicker||(He.hasClass("calendar-day-next")&&s.nextMonth(),He.hasClass("calendar-day-prev")&&s.prevMonth());const ze=parseInt(He.attr("data-year"),10),fe=parseInt(He.attr("data-month"),10),ee=parseInt(He.attr("data-day"),10);if(s.emit("local::dayClick calendarDayClick",s,He[0],ze,fe,ee),!He.hasClass("calendar-day-selected")||s.params.multiple||s.params.rangePicker){const Fe=new Date(ze,fe,ee,0,0,0);s.hasTimePicker&&(s.value&&s.value[0]?Fe.setHours(s.value[0].getHours(),s.value[0].getMinutes()):Fe.setHours(new Date().getHours(),new Date().getMinutes())),s.addValue(Fe)}s.params.closeOnSelect&&(s.params.rangePicker&&s.value.length===2||!s.params.rangePicker)&&s.close()}function K(){s.nextMonth()}function pe(){s.prevMonth()}function ke(){s.nextYear()}function he(){s.prevYear()}function re(){s.openMonthPicker()}function Ce(){s.openYearPicker()}function Pe(){s.openTimePicker()}const Ve=e.touchEvents.start==="touchstart"&&it().passiveListener?{passive:!0,capture:!1}:!1;H.find(".calendar-prev-month-button").on("click",pe),H.find(".calendar-next-month-button").on("click",K),H.find(".calendar-prev-year-button").on("click",he),H.find(".calendar-next-year-button").on("click",ke),s.params.monthPicker&&H.find(".current-month-value").on("click",re),s.params.yearPicker&&H.find(".current-year-value").on("click",Ce),s.hasTimePicker&&H.find(".calendar-time-selector a").on("click",Pe),G.on("click",me),s.params.touchMove&&(G.on(e.touchEvents.start,ce,Ve),e.on("touchmove:active",ye),e.on("touchend:passive",ne)),s.detachCalendarEvents=function(){H.find(".calendar-prev-month-button").off("click",pe),H.find(".calendar-next-month-button").off("click",K),H.find(".calendar-prev-year-button").off("click",he),H.find(".calendar-next-year-button").off("click",ke),s.params.monthPicker&&H.find(".current-month-value").off("click",re),s.params.yearPicker&&H.find(".current-year-value").off("click",Ce),s.hasTimePicker&&H.find(".calendar-time-selector a").off("click",Pe),G.off("click",me),s.params.touchMove&&(G.off(e.touchEvents.start,ce,Ve),e.off("touchmove:active",ye),e.off("touchend:passive",ne))}},s.init(),s}get view(){const{$inputEl:e,app:n,params:s}=this;let a;return s.view?a=s.view:e&&(a=e.parents(".view").length&&e.parents(".view")[0].f7View),a||(a=n.views.main),a}getIntlNames(){const e=this,n=e.params.locale,s=[],a=[],i=[],o=[],r=new Intl.DateTimeFormat(n,{month:"long"}),l=new Intl.DateTimeFormat(n,{month:"short"}),f=new Intl.DateTimeFormat(n,{weekday:"long"}),c=new Intl.DateTimeFormat(n,{weekday:"short"});let u,d,m;for(let p=0;p<24;p+=1){const b=new Date().setMonth(p,1),g=e.yearFormatter(b);u&&g!==u&&(d&&(m=!0),d=!0,u=g),u||(u=g),d&&u===g&&!m&&(s.push(r.format(b)),a.push(l.format(b)))}const h=new Date().getDay();for(let p=0;p<7;p+=1){const b=new Date().getTime()+(p-h)*24*60*60*1e3;i.push(f.format(b)),o.push(c.format(b))}return{monthNamesIntl:s,monthNamesShortIntl:a,dayNamesIntl:i,dayNamesShortIntl:o}}normalizeDate(e){const n=this,s=new Date(e);return n.hasTimePicker?new Date(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes()):new Date(s.getFullYear(),s.getMonth(),s.getDate())}normalizeValues(e){const n=this;let s=[];return e&&Array.isArray(e)&&(s=e.map(a=>n.normalizeDate(a))),s}initInput(){const e=this;e.$inputEl&&e.params.inputReadOnly&&e.$inputEl.prop("readOnly",!0)}isPopover(){const e=this,{app:n,modal:s,params:a}=e,i=Ke();if(a.openIn==="sheet"||s&&s.type!=="popover")return!1;if(!e.inline&&e.inputEl){if(a.openIn==="popover")return!0;if(i.ios)return!!i.ipad;if(n.width>=768)return!0}return!1}formatDate(e){const n=this,s=new Date(e),a=s.getFullYear(),i=s.getMonth(),o=i+1,r=s.getDate(),l=s.getDay(),{monthNames:f,monthNamesShort:c,dayNames:u,dayNamesShort:d}=n,{dateFormat:m,locale:h}=n.params;function p(g){return g<10?`0${g}`:g}if(typeof m=="string"){const g={yyyy:a,yy:String(a).substring(2),mm:p(o),m:o,MM:f[i],M:c[i],dd:p(r),d:r,DD:u[l],D:d[l]};if(n.params.timePicker){const _=s.getHours(),k=s.getMinutes(),E=s.getSeconds();let S=_;_>12&&(S=_-12),_===0&&(S=12);const I=_>=12&&_!==0?"pm":"am";Object.assign(g,{HH:p(_),H:_,hh:p(S),h:S,ss:p(E),s:E,":mm":p(k),":m":k,a:I,A:I.toUpperCase()})}const v=new RegExp(Object.keys(g).map(_=>`(${_})`).join("|"),"g");return m.replace(v,_=>_ in g?g[_]:_)}return typeof m=="function"?m(s):new Intl.DateTimeFormat(h,m).format(s)}formatValue(){const e=this,{value:n}=e;return e.params.formatValue?e.params.formatValue.call(e,n):n.map(s=>e.formatDate(s)).join(e.params.rangePicker?" - ":", ")}addValue(e){const n=this,{multiple:s,rangePicker:a,rangePickerMinDays:i,rangePickerMaxDays:o}=n.params;if(s){n.value||(n.value=[]);let r;for(let l=0;l"u"?n.value.push(e):n.value.splice(r,1),n.updateValue()}else a?(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())>=(i-1)*60*60*24*1e3&&(o===0||Math.abs(n.value[0].getTime()-e.getTime())<=(o-1)*60*60*24*1e3)?n.value.push(e):n.value=[],n.value.sort((r,l)=>r-l),n.updateValue()):(n.value=[e],n.updateValue())}setValue(e){const n=this,s=n.value;if(Array.isArray(s)&&Array.isArray(e)&&s.length===e.length){let a=!0;if(s.forEach((i,o)=>{i!==e[o]&&(a=!1)}),a)return}n.value=e,n.updateValue()}getValue(){return this.value}updateValue(e){const n=this,{$el:s,$wrapperEl:a,$inputEl:i,value:o,params:r}=n;let l;if(s&&s.length>0){a.find(".calendar-day-selected").removeClass("calendar-day-selected calendar-day-selected-range calendar-day-selected-left calendar-day-selected-right");let f;if(r.rangePicker&&o.length===2){const c=new Date(o[0]).getTime(),u=new Date(o[1]).getTime();for(l=c;l<=u;l+=24*60*60*1e3){f=new Date(l);let d="calendar-day-selected";c!==u&&(l!==c&&l!==u&&(d+=" calendar-day-selected-range"),l===c&&(d+=" calendar-day-selected-left"),l===u&&(d+=" calendar-day-selected-right")),a.find(`.calendar-day[data-date="${f.getFullYear()}-${f.getMonth()}-${f.getDate()}"]`).addClass(d)}f=new Date(c),a.find(`.calendar-day[data-date="${f.getFullYear()}-${f.getMonth()}-${f.getDate()}"]`).removeClass("calendar-day-selected-range").addClass("calendar-day-selected calendar-day-selected-left"),f=new Date(u),a.find(`.calendar-day[data-date="${f.getFullYear()}-${f.getMonth()}-${f.getDate()}"]`).removeClass("calendar-day-selected-range").addClass("calendar-day-selected calendar-day-selected-right")}else for(l=0;l0&&n.hasTimePicker&&s.find(".calendar-time-selector a").text(o&&o.length?n.timeSelectorFormatter(o[0]):n.params.timePickerPlaceholder),i&&i.length||r.header){const f=n.formatValue(o);r.header&&s&&s.length&&s.find(".calendar-selected-date").text(f),i&&i.length&&!e&&(i.val(f),i.trigger("change"))}}updateCurrentMonthYear(e){const n=this,{$months:s,$el:a,monthNames:i}=n;let o,r;typeof e>"u"?(n.currentMonth=parseInt(s.eq(1).attr("data-month"),10),n.currentYear=parseInt(s.eq(1).attr("data-year"),10),o=s.eq(1).attr("data-locale-month"),r=s.eq(1).attr("data-locale-year")):(n.currentMonth=parseInt(s.eq(e==="next"?s.length-1:0).attr("data-month"),10),n.currentYear=parseInt(s.eq(e==="next"?s.length-1:0).attr("data-year"),10),o=s.eq(e==="next"?s.length-1:0).attr("data-locale-month"),r=s.eq(e==="next"?s.length-1:0).attr("data-locale-year")),a.find(".current-month-value").text(i[o]),a.find(".current-year-value").text(r)}update(){const e=this,{currentYear:n,currentMonth:s,$wrapperEl:a}=e,i=new Date(n,s),o=e.renderMonth(i,"prev"),r=e.renderMonth(i),l=e.renderMonth(i,"next");a.transition(0).html(`${o}${r}${l}`).transform("translate3d(0,0,0)"),e.$months=a.find(".calendar-month"),e.monthsTranslate=0,e.setMonthsTranslate(),e.$months.each(f=>{e.emit("local::monthAdd calendarMonthAdd",f)})}onMonthChangeStart(e){const n=this,{$months:s,currentYear:a,currentMonth:i}=n;n.updateCurrentMonthYear(e),s.removeClass("calendar-month-current calendar-month-prev calendar-month-next");const o=e==="next"?s.length-1:0;s.eq(o).addClass("calendar-month-current"),s.eq(e==="next"?o-1:o+1).addClass(e==="next"?"calendar-month-prev":"calendar-month-next"),n.emit("local::monthYearChangeStart calendarMonthYearChangeStart",n,a,i)}onMonthChangeEnd(e,n){const s=this,{currentYear:a,currentMonth:i,$wrapperEl:o,monthsTranslate:r}=s;s.animating=!1;let l,f,c;o.find(".calendar-month:not(.calendar-month-prev):not(.calendar-month-current):not(.calendar-month-next)").remove(),typeof e>"u"&&(e="next",n=!0),n?(o.find(".calendar-month-next, .calendar-month-prev").remove(),f=s.renderMonth(new Date(a,i),"prev"),l=s.renderMonth(new Date(a,i),"next")):c=s.renderMonth(new Date(a,i),e),(e==="next"||n)&&o.append(c||l),(e==="prev"||n)&&o.prepend(c||f);const u=o.find(".calendar-month");s.$months=u,s.setMonthsTranslate(r),s.emit("local::monthAdd calendarMonthAdd",s,e==="next"?u.eq(u.length-1)[0]:u.eq(0)[0]),s.emit("local::monthYearChangeEnd calendarMonthYearChangeEnd",s,a,i)}setMonthsTranslate(e){const n=this,{$months:s,isHorizontal:a,inverter:i}=n;e=e||n.monthsTranslate||0,typeof n.monthsTranslate>"u"&&(n.monthsTranslate=e),s.removeClass("calendar-month-current calendar-month-prev calendar-month-next");const o=-(e+1)*100*i,r=-e*100*i,l=-(e-1)*100*i;s.eq(0).transform(`translate3d(${a?o:0}%, ${a?0:o}%, 0)`).addClass("calendar-month-prev"),s.eq(1).transform(`translate3d(${a?r:0}%, ${a?0:r}%, 0)`).addClass("calendar-month-current"),s.eq(2).transform(`translate3d(${a?l:0}%, ${a?0:l}%, 0)`).addClass("calendar-month-next")}nextMonth(e){const n=this,{params:s,$wrapperEl:a,inverter:i,isHorizontal:o}=n;(typeof e>"u"||typeof e=="object")&&(e="",s.animate||(e=0));const r=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),c=new Date(l,r).getTime(),u=!n.animating;if(s.maxDate&&c>new Date(s.maxDate).getTime()){n.resetMonth();return}if(n.monthsTranslate-=1,r===n.currentMonth){const m=-n.monthsTranslate*100*i,h=P(n.renderMonth(c,"next")).transform(`translate3d(${o?m:0}%, ${o?0:m}%, 0)`).addClass("calendar-month-next");a.append(h[0]),n.$months=a.find(".calendar-month"),n.emit("local::monthAdd calendarMonthAdd",n.$months.eq(n.$months.length-1)[0])}n.animating=!0,n.onMonthChangeStart("next");const d=n.monthsTranslate*100*i;a.transition(e).transform(`translate3d(${o?d:0}%, ${o?0:d}%, 0)`),u&&a.transitionEnd(()=>{n.onMonthChangeEnd("next")}),s.animate||n.onMonthChangeEnd("next")}prevMonth(e){const n=this,{params:s,$wrapperEl:a,inverter:i,isHorizontal:o}=n;(typeof e>"u"||typeof e=="object")&&(e="",s.animate||(e=0));const r=parseInt(n.$months.eq(0).attr("data-month"),10),l=parseInt(n.$months.eq(0).attr("data-year"),10),c=new Date(l,r+1,-1).getTime(),u=!n.animating;if(s.minDate){let m=new Date(s.minDate);if(m=new Date(m.getFullYear(),m.getMonth(),1),c{n.onMonthChangeEnd("prev")}),s.animate||n.onMonthChangeEnd("prev")}resetMonth(e){e===void 0&&(e="");const n=this,{$wrapperEl:s,inverter:a,isHorizontal:i,monthsTranslate:o}=n,r=o*100*a;s.transition(e).transform(`translate3d(${i?r:0}%, ${i?0:r}%, 0)`)}setYearMonth(e,n,s){const a=this,{params:i,isHorizontal:o,$wrapperEl:r,inverter:l}=a;typeof e>"u"&&(e=a.currentYear),typeof n>"u"&&(n=a.currentMonth),(typeof s>"u"||typeof s=="object")&&(s="",i.animate||(s=0));let f;if(enew Date(i.maxDate).getTime())return!1;if(i.minDate){let g=new Date(i.minDate);if(g=new Date(g.getFullYear(),g.getMonth(),1),fc?"next":"prev",d=a.renderMonth(new Date(e,n));a.monthsTranslate=a.monthsTranslate||0;const m=a.monthsTranslate;let h;const p=!a.animating&&s!==0;f>c?(a.monthsTranslate-=1,a.animating||a.$months.eq(a.$months.length-1).remove(),r.append(d),a.$months=r.find(".calendar-month"),h=-(m-1)*100*l,a.$months.eq(a.$months.length-1).transform(`translate3d(${o?h:0}%, ${o?0:h}%, 0)`).addClass("calendar-month-next")):(a.monthsTranslate+=1,a.animating||a.$months.eq(0).remove(),r.prepend(d),a.$months=r.find(".calendar-month"),h=-(m+1)*100*l,a.$months.eq(0).transform(`translate3d(${o?h:0}%, ${o?0:h}%, 0)`).addClass("calendar-month-prev")),a.emit("local::monthAdd calendarMonthAdd",u==="next"?a.$months.eq(a.$months.length-1)[0]:a.$months.eq(0)[0]),a.animating=!0,a.onMonthChangeStart(u);const b=a.monthsTranslate*100*l;r.transition(s).transform(`translate3d(${o?b:0}%, ${o?0:b}%, 0)`),p&&r.transitionEnd(()=>{a.onMonthChangeEnd(u,!0)}),(!i.animate||s===0)&&a.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 s=!1,a;if(!n)return!1;if(Array.isArray(n))for(a=0;a=new Date(n[a].from).getTime()&&(s=!0):n[a].from?e>=new Date(n[a].from).getTime()&&(s=!0):n[a].to&&e<=new Date(n[a].to).getTime()&&(s=!0):n[a].date?e===new Date(n[a].date).getTime()&&(s=!0):e===new Date(n[a]).getTime()&&(s=!0);else n.from||n.to?n.from&&n.to?e<=new Date(n.to).getTime()&&e>=new Date(n.from).getTime()&&(s=!0):n.from?e>=new Date(n.from).getTime()&&(s=!0):n.to&&e<=new Date(n.to).getTime()&&(s=!0):n.date?s=e===new Date(n.date).getTime():typeof n=="function"&&(s=n(new Date(e)));return s}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):R("div",{class:"calendar-months-wrapper"},n.renderMonth(e,"prev"),n.renderMonth(e),n.renderMonth(e,"next"))}renderMonth(e,n){const s=this,{params:a,value:i}=s;if(a.renderMonth)return a.renderMonth.call(s,e,n);let o=new Date(e),r=o.getFullYear(),l=o.getMonth(),f=s.monthNames.indexOf(s.monthFormatter(o));f<0&&(f=l);let c=s.yearFormatter(o);n==="next"&&(l===11?o=new Date(r+1,0):o=new Date(r,l+1,1)),n==="prev"&&(l===0?o=new Date(r-1,11):o=new Date(r,l-1,1)),(n==="next"||n==="prev")&&(l=o.getMonth(),r=o.getFullYear(),f=s.monthNames.indexOf(s.monthFormatter(o)),f<0&&(f=l),c=s.yearFormatter(o));const u=[],d=new Date().setHours(0,0,0,0),m=a.minDate?new Date(a.minDate).getTime():null,h=a.maxDate?new Date(a.maxDate).getTime():null,p=6,b=7,g=s.daysInMonth(new Date(o.getFullYear(),o.getMonth()).getTime()-10*24*60*60*1e3),v=s.daysInMonth(o),_=a.firstDay===6?0:1;let k="",E=0+(a.firstDay-1),S,I,T=new Date(o.getFullYear(),o.getMonth()).getDay();if(T===0&&(T=7),i&&i.length)for(let A=0;A_&&a.firstDay!==1&&(E-=7,O=E-T);const j=w-1+a.firstDay>6?w-1-7+a.firstDay:w-1+a.firstDay;O<0?(O=g+O+1,L+=" calendar-day-prev",D=new Date(l-1<0?r-1:r,l-1<0?11:l-1,O).getTime()):(O+=1,O>v?(O-=v,L+=" calendar-day-next",D=new Date(l+1>11?r+1:r,l+1>11?0:l+1,O).getTime()):D=new Date(r,l,O).getTime()),D===d&&(L+=" calendar-day-today"),a.rangePicker&&u.length===2?(D>=u[0]&&D<=u[1]&&(L+=" calendar-day-selected"),u[0]!==u[1]&&(D>u[0]&&D=0&&(L+=" calendar-day-selected"),a.weekendDays.indexOf(j)>=0&&(L+=" calendar-day-weekend");let W="";if(I=!1,a.events&&s.dateInRange(D,a.events)&&(I=!0),I&&(L+=" calendar-day-has-events",W=` - - - - `,Array.isArray(a.events))){const X=[];a.events.forEach(H=>{const G=H.color||"";X.indexOf(G)<0&&s.dateInRange(D,H)&&X.push(G)}),W=` - - ${X.map(H=>` - - `.trim()).join("")} - - `}if(a.rangesClasses)for(let X=0;Xh)&&(S=!0),a.disabled&&s.dateInRange(D,a.disabled)&&(S=!0),S&&(L+=" calendar-day-disabled"),D=new Date(D);const Y=D.getFullYear(),B=D.getMonth(),q=s.dayFormatter(D);y+=` -
        - ${q}${W} -
        `.trim()}k+=`
        ${y}
        `}return k=`
        ${k}
        `,k}renderWeekHeader(){const e=this;if(e.params.renderWeekHeader)return e.params.renderWeekHeader.call(e);const{params:n}=e;let s="";for(let a=0;a<7;a+=1){const i=a+n.firstDay>6?a-7+n.firstDay:a+n.firstDay,o=e.dayNamesShort[i];s+=`
        ${o}
        `}return R("div",{class:"calendar-week-header"},s)}renderMonthSelector(){const e=this;return e.params.renderMonthSelector?e.params.renderMonthSelector.call(e):R("div",{class:"calendar-month-selector"},R("a",{class:"link icon-only calendar-prev-month-button"},R("i",{class:"icon icon-prev"})),e.params.monthPicker?R("a",{class:"current-month-value link"}):R("span",{class:"current-month-value"}),R("a",{class:"link icon-only calendar-next-month-button"},R("i",{class:"icon icon-next"})))}renderYearSelector(){const e=this;return e.params.renderYearSelector?e.params.renderYearSelector.call(e):R("div",{class:"calendar-year-selector"},R("a",{class:"link icon-only calendar-prev-year-button"},R("i",{class:"icon icon-prev"})),e.params.yearPicker?R("a",{class:"current-year-value link"}):R("span",{class:"current-year-value"}),R("a",{class:"link icon-only calendar-next-year-button"},R("i",{class:"icon icon-next"})))}renderTimeSelector(){const e=this,n=e.value&&e.value[0];let s;return n&&(s=e.timeSelectorFormatter(n)),R("div",{class:"calendar-time-selector"},R("span",null,e.params.timePickerLabel),R("a",{class:"link"},s||e.params.timePickerPlaceholder))}renderHeader(){const e=this;return e.params.renderHeader?e.params.renderHeader.call(e):R("div",{class:"calendar-header"},R("div",{class:"calendar-selected-date"},e.params.headerPlaceholder))}renderFooter(){const e=this,n=e.app;return e.params.renderFooter?e.params.renderFooter.call(e):R("div",{class:"calendar-footer"},R("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):R("div",{class:"toolbar toolbar-top"},R("div",{class:"toolbar-inner"},e.params.monthSelector?e.renderMonthSelector():"",e.params.yearSelector?e.renderYearSelector():""))}renderInline(){const e=this,{cssClass:n,toolbar:s,header:a,footer:i,rangePicker:o,weekHeader:r}=e.params,{value:l,hasTimePicker:f}=e,c=l&&l.length?l[0]:new Date().setHours(0,0,0);return R("div",{class:`calendar calendar-inline ${o?"calendar-range":""} ${n||""}`},a&&e.renderHeader(),s&&e.renderToolbar(),r&&e.renderWeekHeader(),R("div",{class:"calendar-months"},e.renderMonths(c)),f&&e.renderTimeSelector(),i&&e.renderFooter())}renderCustomModal(){const e=this,{cssClass:n,toolbar:s,header:a,footer:i,rangePicker:o,weekHeader:r}=e.params,{value:l,hasTimePicker:f}=e,c=l&&l.length?l[0]:new Date().setHours(0,0,0);return R("div",{class:`calendar calendar-modal ${o?"calendar-range":""} ${n||""}`},a&&e.renderHeader(),s&&e.renderToolbar(),r&&e.renderWeekHeader(),R("div",{class:"calendar-months"},e.renderMonths(c)),f&&e.renderTimeSelector(),i&&e.renderFooter())}renderSheet(){const e=this,{cssClass:n,toolbar:s,header:a,footer:i,rangePicker:o,weekHeader:r}=e.params,{value:l,hasTimePicker:f}=e,c=l&&l.length?l[0]:new Date().setHours(0,0,0);return R("div",{class:`sheet-modal calendar calendar-sheet ${o?"calendar-range":""} ${n||""}`},a&&e.renderHeader(),s&&e.renderToolbar(),r&&e.renderWeekHeader(),R("div",{class:"sheet-modal-inner calendar-months"},e.renderMonths(c)),f&&e.renderTimeSelector(),i&&e.renderFooter())}renderPopover(){const e=this,{cssClass:n,toolbar:s,header:a,footer:i,rangePicker:o,weekHeader:r}=e.params,{value:l,hasTimePicker:f}=e,c=l&&l.length?l[0]:new Date().setHours(0,0,0);return R("div",{class:"popover calendar-popover"},R("div",{class:"popover-inner"},R("div",{class:`calendar ${o?"calendar-range":""} ${n||""}`},a&&e.renderHeader(),s&&e.renderToolbar(),r&&e.renderWeekHeader(),R("div",{class:"calendar-months"},e.renderMonths(c)),f&&e.renderTimeSelector(),i&&e.renderFooter())))}render(){const e=this,{params:n}=e;if(n.render)return n.render.call(e);if(!e.inline){let s=n.openIn;return s==="auto"&&(s=e.isPopover()?"popover":"sheet"),s==="popover"?e.renderPopover():s==="sheet"?e.renderSheet():e.renderCustomModal()}return e.renderInline()}openMonthPicker(){const e=this,{$el:n,app:s}=e;if(!n||!n.length)return;n.append('
        '),e.monthPickerPopover=s.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 a=parseInt(e.$el.find(".calendar-month-current").attr("data-locale-month"),10),i=[],o=[];e.monthNames.forEach((r,l)=>{i.push(l),o.push(r)}),e.monthPickerInstance=s.picker.create({containerEl:e.monthPickerPopover.$el.find(".calendar-month-picker"),value:[a],toolbar:e.params.monthPickerToolbar,rotateEffect:!1,toolbarCloseText:e.params.monthPickerCloseText,cols:[{values:i,displayValues:o}]})}closeMonthPicker(){const e=this;e.monthPickerPopover&&e.monthPickerPopover.opened&&e.monthPickerPopover.close();const n=e.monthPickerInstance.value[0],s=parseInt(e.$el.find(".calendar-month-current").attr("data-locale-month"),10),a=e.currentMonth,i=s-a,o=n-i;e.setYearMonth(e.currentYear,o,0)}openYearPicker(){const e=this,{$el:n,app:s}=e;if(!n||!n.length)return;n.append('
        '),e.yearPickerPopover=s.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 a=e.currentYear;let i=e.params.yearPickerMin||new Date().getFullYear()-100;e.params.minDate&&(i=Math.max(i,new Date(e.params.minDate).getFullYear()));let o=e.params.yearPickerMax||new Date().getFullYear()+100;e.params.maxDate&&(o=Math.min(o,new Date(e.params.maxDate).getFullYear()));const r=[];for(let l=i;l<=o;l+=1)r.push(l);e.yearPickerInstance=s.picker.create({containerEl:e.yearPickerPopover.$el.find(".calendar-year-picker"),value:[a],toolbar:e.params.yearPickerToolbar,rotateEffect:!1,toolbarCloseText:e.params.yearPickerCloseText,cols:[{values:r}]})}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:s,is12HoursFormat:a}=e;if(!n||!n.length)return;n.append('
        ');const i=[],o=[],r=a?1:0,l=a?12:23;for(let c=r;c<=l;c+=1)i.push(c);for(let c=0;c<=59;c+=1)o.push(c);let f;e.value&&e.value.length?f=[e.value[0].getHours(),e.value[0].getMinutes()]:f=[new Date().getHours(),new Date().getMinutes()],a&&(f.push(f[0]<12?"AM":"PM"),f[0]>12&&(f[0]-=12),f[0]===0&&(f[0]=12)),e.timePickerPopover=s.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=s.picker.create({containerEl:e.timePickerPopover.$el.find(".calendar-time-picker"),value:f,toolbar:e.params.timePickerToolbar,rotateEffect:!1,toolbarCloseText:e.params.timePickerCloseText,cols:[{values:i},{divider:!0,content:":"},{values:o,displayValues:o.map(c=>c<10?`0${c}`:c)},...a?[{values:["AM","PM"]}]:[]]})}closeTimePicker(){const e=this,{is12HoursFormat:n}=e;if(e.timePickerInstance){const s=e.timePickerInstance.value;let a=parseInt(s[0],10);const i=parseInt(s[1],10),o=e.timePickerInstance.value[2];n&&(o==="AM"&&a===12?a=0:o==="PM"&&a!==12&&(a+=12));let r=e.value&&e.value.length&&e.value[0];r?(r=new Date(r),r.setHours(a,i)):(r=new Date,r.setHours(a,i,0,0)),e.setValue([r]),e.timePickerPopover&&e.timePickerPopover.opened&&e.timePickerPopover.close()}}onOpen(){const e=this,{initialized:n,$el:s,app:a,$inputEl:i,inline:o,value:r,params:l}=e;e.closing=!1,e.opened=!0,e.opening=!0,e.attachCalendarEvents();const f=!r&&l.value;n?r&&e.setValue(r,0):r?e.setValue(r,0):l.value&&e.setValue(e.normalizeValues(l.value),0),e.updateCurrentMonthYear(),e.monthsTranslate=0,e.setMonthsTranslate(),f?e.updateValue():l.header&&r&&e.updateValue(!0),!o&&i&&i.length&&a.theme==="md"&&i.trigger("focus"),e.initialized=!0,e.$months.each(c=>{e.emit("local::monthAdd calendarMonthAdd",c)}),s&&s.trigger("calendar:open"),i&&i.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 s=e.$inputEl.attr("validate"),a=e.$inputEl.attr("required");s&&a&&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||_t(()=>{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:s,inline:a,$inputEl:i,params:o}=e;if(s)return;if(a){e.$el=P(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 r=o.openIn;r==="auto"&&(r=e.isPopover()?"popover":"sheet");const l=e.render(),f={targetEl:i,scrollToEl:o.scrollToInput?i:void 0,content:l,backdrop:o.backdrop===!0||(r==="popover"||r==="customModal")&&n.params.popover.backdrop!==!1&&o.backdrop!==!1,closeByBackdropClick:o.closeByBackdropClick,on:{open(){const c=this;e.modal=c,e.$el=r==="popover"?c.$el.find(".calendar"):c.$el,e.$wrapperEl=e.$el.find(".calendar-months-wrapper"),e.$months=e.$wrapperEl.find(".calendar-month"),e.$el[0].f7Calendar=e,r==="customModal"&&P(e.$el).find(".calendar-close").once("click",()=>{e.close()}),e.onOpen()},opened(){e.onOpened()},close(){e.onClose()},closed(){e.onClosed()}}};r==="sheet"&&(f.push=o.sheetPush,f.swipeToClose=o.sheetSwipeToClose),o.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,[r]:f}}):(e.modal=n[r].create(f),e.modal.open())}close(){const e=this,{opened:n,inline:s}=e;if(n){if(s){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,ft(e),e.destroyed=!0}};const md=QC,KC={name:"calendar",static:{Calendar:md},create(){const t=this;t.calendar=ct({defaultSelector:".calendar",constructor:md,app:t,domProp:"f7Calendar"}),t.calendar.close=function(n){n===void 0&&(n=".calendar");const s=P(n);if(s.length===0)return;const a=s[0].f7Calendar;!a||a&&!a.opened||a.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 ZC(t,e){const n=this,s=P(t),a=s.index(),i=n.cols[a];if(i.divider)return;i.$el=s,i.el=s[0],i.$itemsEl=i.$el.find(".picker-items"),i.items=i.$itemsEl.find(".picker-item");let o,r;i.replaceValues=function(u,d){i.detachEvents(),i.values=u,i.displayValues=d,i.$itemsEl.html(n.renderColumn(i,!0)),i.items=i.$itemsEl.find(".picker-item"),i.calcSize(),i.setValue(i.values[0],!0),i.attachEvents()},i.calcSize=function(){r=i.$el[0].offsetHeight,o=i.items[0].offsetHeight;const u=i.el.style.getPropertyValue("--f7-picker-scroll-padding");i.el.style.setProperty("--f7-picker-scroll-padding",`${(r-o)/2}px`),u||(i.$itemsEl[0].scrollTop=0)},i.setValue=function(u,d){const m=i.$itemsEl.find(`.picker-item[data-picker-value="${u}"]`).index();if(typeof m>"u"||m===-1)return;const h=m*o;i.$itemsEl[0].scrollTop=h,i.updateItems(m,h,d)},i.updateItems=function(u,d,m){typeof d>"u"&&(d=i.$itemsEl[0].scrollTop),typeof u>"u"&&(u=Math.round(d/o)),u<0&&(u=0),u>=i.items.length&&(u=i.items.length-1);const h=i.activeIndex;i.activeIndex=u,i.$itemsEl.find(".picker-item-selected").removeClass("picker-item-selected");const p=i.items.eq(u);p.addClass("picker-item-selected").children().transform(""),n.params.rotateEffect&&i.items.each(b=>{const g=P(b),_=(b.offsetTop-(r-o)/2-d)/o,k=Math.ceil(i.height/o/2)+1;let E=-24*_;E>180&&(E=180),E<-180&&(E=-180),Math.abs(_)>k?g.addClass("picker-item-far"):g.removeClass("picker-item-far"),g.children("span").transform(`translate3d(0, ${-_*o}px, -100px) rotateX(${E}deg)`)}),(m||typeof m>"u")&&(i.value=p.attr("data-picker-value"),i.displayValue=i.displayValues?i.displayValues[u]:i.value,h!==u&&(i.onChange&&i.onChange(n,i.value,i.displayValue),n.updateValue()))};function l(){i.updateItems()}function f(){const c=P(this).attr("data-picker-value");i.setValue(c)}i.attachEvents=function(){i.$itemsEl.on("scroll",l),i.items.on("click",f)},i.detachEvents=function(){i.items.off("click",f)},i.init=function(){i.calcSize(),a===0&&i.$el.addClass("picker-column-first"),a===n.cols.length-1&&i.$el.addClass("picker-column-last"),n.params.freeMode&&i.$el.addClass("picker-column-free-mode"),e&&i.updateItems(0),i.attachEvents()},i.destroy=function(){i.detachEvents()},i.init()}let JC=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this,a=Ke(),i=Se();s.params=te({},e.params.picker,n);let o;if(s.params.containerEl&&(o=P(s.params.containerEl),o.length===0))return s;let r;s.params.inputEl&&(r=P(s.params.inputEl));let l=s.params.scrollToInput?r:void 0;if(s.params.scrollToEl){const p=P(s.params.scrollToEl);p.length>0&&(l=p)}te(s,{app:e,$containerEl:o,containerEl:o&&o[0],inline:o&&o.length>0,needsOriginFix:a.ios||i.navigator.userAgent.toLowerCase().indexOf("safari")>=0&&i.navigator.userAgent.toLowerCase().indexOf("chrome")<0&&!a.android,cols:[],$inputEl:r,inputEl:r&&r[0],$scrollToEl:l,initialized:!1,opened:!1,url:s.params.url});function f(){s.resizeCols()}function c(){s.open()}function u(p){p.preventDefault()}let d=null;function m(p){d=p.target}function h(p){if(s.destroyed||!s.params)return;const b=P(p.target);s.isPopover()||!s.opened||s.closing||b.closest('[class*="backdrop"]').length||(r&&r.length>0?d===p.target&&b[0]!==r[0]&&b.closest(".sheet-modal").length===0&&s.close():P(p.target).closest(".sheet-modal").length===0&&s.close())}return te(s,{attachResizeEvent(){e.on("resize",f)},detachResizeEvent(){e.off("resize",f)},attachInputEvents(){s.$inputEl.on("click",c),s.params.inputReadOnly&&(s.$inputEl.on("focus mousedown",u),s.$inputEl[0]&&(s.$inputEl[0].f7ValidateReadonly=!0))},detachInputEvents(){s.$inputEl.off("click",c),s.params.inputReadOnly&&(s.$inputEl.off("focus mousedown",u),s.$inputEl[0]&&delete s.$inputEl[0].f7ValidateReadonly)},attachHtmlEvents(){e.on("click",h),e.on("touchstart",m)},detachHtmlEvents(){e.off("click",h),e.off("touchstart",m)}}),s.init(),s}get view(){const{app:e,params:n,$inputEl:s}=this;let a;return n.view?a=n.view:s&&(a=s.parents(".view").length&&s.parents(".view")[0].f7View),a||(a=e.views.main),a}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:s}=e;return e.params.formatValue?e.params.formatValue.call(e,n,s):n.join(" ")}setValue(e){const n=this;let s=0;if(n.cols.length===0){n.value=e,n.updateValue(e);return}for(let a=0;a!r.divider);for(let r=0;r=0||(n.value=s,n.displayValue=a,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 s=this;ZC.call(s,e,n)}destroyColumn(e){const n=this,a=P(e).index();n.cols[a]&&n.cols[a].destroy&&n.cols[a].destroy()}renderToolbar(){const e=this;return e.params.renderToolbar?e.params.renderToolbar.call(e,e):R("div",{class:"toolbar toolbar-top"},R("div",{class:"toolbar-inner"},R("div",{class:"left"}),R("div",{class:"right"},R("a",{class:"link sheet-close popover-close"},e.params.toolbarCloseText))))}renderColumn(e,n){const s=`picker-column ${e.textAlign?`picker-column-${e.textAlign}`:""} ${e.cssClass||""}`;let a,i;return e.divider?a=` -
        ${e.content}
        - `:(i=e.values.map((o,r)=>` -
        - ${e.displayValues?e.displayValues[r]:o} -
        - `).join(""),a=` -
        -
        ${i}
        -
        - `),n?i.trim():a.trim()}renderInline(){const e=this,{rotateEffect:n,cssClass:s,toolbar:a}=e.params;return R("div",{class:`picker picker-inline ${n?"picker-3d":""} ${s||""}`},a&&e.renderToolbar(),R("div",{class:"picker-columns"},e.cols.map(o=>e.renderColumn(o)),R("div",{class:"picker-center-highlight"})))}renderSheet(){const e=this,{rotateEffect:n,cssClass:s,toolbar:a}=e.params;return R("div",{class:`sheet-modal picker picker-sheet ${n?"picker-3d":""} ${s||""}`},a&&e.renderToolbar(),R("div",{class:"sheet-modal-inner picker-columns"},e.cols.map(o=>e.renderColumn(o)),R("div",{class:"picker-center-highlight"})))}renderPopover(){const e=this,{rotateEffect:n,cssClass:s,toolbar:a}=e.params;return R("div",{class:"popover picker-popover"},R("div",{class:"popover-inner"},R("div",{class:`picker ${n?"picker-3d":""} ${s||""}`},a&&e.renderToolbar(),R("div",{class:"picker-columns"},e.cols.map(o=>e.renderColumn(o)),R("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:s,app:a,$inputEl:i,inline:o,value:r,params:l}=e;e.opened=!0,e.closing=!1,e.opening=!0,e.attachResizeEvent(),s.find(".picker-column").each(f=>{let c=!0;(!n&&l.value||n&&r)&&(c=!1),e.initColumn(f,c)}),n?r&&e.setValue(r):r?e.setValue(r):l.value&&e.setValue(l.value),!o&&i&&i.length&&a.theme==="md"&&i.trigger("focus"),e.initialized=!0,s&&s.trigger("picker:open"),i&&i.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(s=>{s.destroy&&s.destroy()}),e.$inputEl)if(n.theme==="md")e.$inputEl.trigger("blur");else{const s=e.$inputEl.attr("validate"),a=e.$inputEl.attr("required");s&&a&&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||_t(()=>{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:s,inline:a,$inputEl:i,$scrollToEl:o,params:r}=e;if(s)return;if(e.cols.length===0&&r.cols.length&&r.cols.forEach(u=>{e.cols.push(u)}),a){e.$el=P(e.render()),e.$el[0].f7Picker=e,e.$containerEl.append(e.$el),e.onOpen(),e.onOpened();return}const l=e.isPopover(),f=l?"popover":"sheet",c={targetEl:i,scrollToEl:o,content:e.render(),backdrop:typeof r.backdrop<"u"?r.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()}}};f==="sheet"&&(c.push=r.sheetPush,c.swipeToClose=r.sheetSwipeToClose),r.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,[f]:c}}):(e.modal=n[f].create(c),e.modal.open())}close(){const e=this,{opened:n,inline:s}=e;if(n){if(s){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,ft(e),e.destroyed=!0}};const hd=JC,ey={name:"picker",static:{Picker:hd},create(){const t=this;t.picker=ct({defaultSelector:".picker",constructor:hd,app:t,domProp:"f7Picker"}),t.picker.close=function(n){n===void 0&&(n=".picker");const s=P(n);if(s.length===0)return;const a=s[0].f7Picker;!a||a&&!a.opened||a.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}}},ty={handle(t,e){const n=this,s=P(t),a=s[0].scrollTop,i=s[0].scrollHeight,o=s[0].offsetHeight;let r=s[0].getAttribute("data-infinite-distance");const l=s.find(".virtual-list");let f;const c=s.hasClass("infinite-scroll-top");if(r||(r=50),typeof r=="string"&&r.indexOf("%")>=0&&(r=parseInt(r,10)/100*o),r>o&&(r=o),c)a=i-r){if(l.length>0&&(f=l.eq(-1)[0].f7VirtualList,f&&!f.reachEnd&&!f.params.updatableScroll))return;s.trigger("infinite",e),n.emit("infinite",s[0],e)}},create(t){const e=P(t),n=this;function s(a){n.infiniteScroll.handle(this,a)}e.each(a=>{a.f7InfiniteScrollHandler=s,a.addEventListener("scroll",a.f7InfiniteScrollHandler)})},destroy(t){P(t).each(n=>{n.removeEventListener("scroll",n.f7InfiniteScrollHandler),delete n.f7InfiniteScrollHandler})}},ny={name:"infiniteScroll",create(){It(this,{infiniteScroll:ty})},on:{tabMounted(t){const e=this,n=P(t),s=n.find(".infinite-scroll-content");n.is(".infinite-scroll-content")&&s.add(n),s.each(a=>{e.infiniteScroll.create(a)})},tabBeforeRemove(t){const e=P(t),n=this,s=e.find(".infinite-scroll-content");e.is(".infinite-scroll-content")&&s.add(e),s.each(a=>{n.infiniteScroll.destroy(a)})},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 sy=class extends rt{constructor(e,n){super({},[e]);const s=this,a=Ke(),i=it(),o=P(n),r=o.find(".ptr-preloader");s.$el=o,s.el=o[0],s.app=e,s.bottom=s.$el.hasClass("ptr-bottom"),s.useModulesParams({});const l=e.theme==="md",f=e.theme==="ios";s.done=function(){const K=l?r:o,pe=ke=>{P(ke.target).closest(r).length||(o.removeClass("ptr-transitioning ptr-pull-up ptr-pull-down ptr-closing"),o.trigger("ptr:done"),s.emit("local::done ptrDone",o[0]),K.off("transitionend",pe))};return K.on("transitionend",pe),o.removeClass("ptr-refreshing").addClass("ptr-transitioning ptr-closing"),s},s.refresh=function(){return o.hasClass("ptr-refreshing")||(o.addClass("ptr-transitioning ptr-refreshing"),o.trigger("ptr:refresh",s.done),s.emit("local::refresh ptrRefresh",o[0],s.done)),s},s.mousewheel=o.attr("data-ptr-mousewheel")==="true";let c,u,d;const m={};let h,p,b=!1,g=!1,v=!1,_=0,k,E,S,I,T,A,y=!1,w,D,O;const L=o.parents(".page");if((L.find(".navbar").length>0||L.parents(".view").children(".navbars").length>0)&&(y=!0),L.hasClass("no-navbar")&&(y=!1),!s.bottom){const me=e.navbar.getElByPage(L[0]);if(me){const K=P(me),pe=K.hasClass("navbar-large-transparent")||K.hasClass("navbar-large")&&K.hasClass("navbar-transparent"),ke=K.hasClass("navbar-transparent")&&!K.hasClass("navbar-large");pe?o.addClass("ptr-with-navbar-large-transparent"):ke&&o.addClass("ptr-with-navbar-transparent")}}!y&&!s.bottom&&o.addClass("ptr-no-navbar"),o.attr("data-ptr-distance")?T=!0:l?I=66:f&&(I=44);function j(me){me===void 0&&(me=0);const K=r.find(".preloader-inner-line"),pe=1/K.length;K.forEach((ke,he)=>{const re=(me-he*pe)/pe;ke.style.opacity=Math.max(Math.min(re,1),0)*.27})}function W(){r.find(".preloader-inner-line").css("opacity","")}function Y(me){if(me.isTrusted){if(u)if(a.os==="android"){if("targetTouches"in me&&me.targetTouches.length>1)return}else return;o.hasClass("ptr-refreshing")||P(me.target).closest(".sortable-handler, .ptr-ignore, .card-expandable.card-opened").length||(d=!1,A=!1,u=!0,h=void 0,S=void 0,me.type==="touchstart"&&(c=me.targetTouches[0].identifier),m.x=me.type==="touchstart"?me.targetTouches[0].pageX:me.pageX,m.y=me.type==="touchstart"?me.targetTouches[0].pageY:me.pageY)}}function B(me){if(!u||!me.isTrusted)return;let K,pe,ke;if(me.type==="touchmove"){if(c&&me.touches)for(let re=0;re"u"&&(h=!!(h||Math.abs(pe-m.y)>Math.abs(K-m.x))),!h){u=!1;return}if(E=o[0].scrollTop,!d){o.removeClass("ptr-transitioning"),f&&j(0);let re;if(w=o[0].scrollHeight,D=o[0].offsetHeight,s.bottom&&(O=w-D),E>w){u=!1;return}const Ce=P(me.target).closest(".ptr-watch-scroll");if(Ce.length&&Ce.each(Pe=>{Pe!==n&&Pe.scrollHeight>Pe.offsetHeight&&P(Pe).css("overflow")==="auto"&&(!s.bottom&&Pe.scrollTop>0||s.bottom&&Pe.scrollTop=0&&(I=w*parseInt(I,10)/100)),_=o.hasClass("ptr-refreshing")?I:0,w===D||a.os!=="ios"||l?g=!0:g=!1,v=!1}if(d=!0,p=pe-m.y,typeof S>"u"&&(s.bottom?E!==O:E!==0)&&(S=!0),s.bottom?p<0&&E>=O||E>O:p>0&&E<=0||E<0){a.os==="ios"&&parseInt(a.osVersion.split(".")[0],10)>7&&(!s.bottom&&E===0&&!S&&(g=!0),s.bottom&&E===O&&!S&&(g=!0)),!g&&s.bottom&&!l&&(o.css("-webkit-overflow-scrolling","auto"),o.scrollTop(O),v=!0),g||v?(me.cancelable&&me.preventDefault(),k=(s.bottom?-1*Math.abs(p)**.85:p**.85)+_,l?r.transform(`translate3d(0,${k}px,0)`).find(".ptr-arrow").transform(`rotate(${180*(Math.abs(p)/66)+100}deg)`):(s.bottom||f?o.children().transform(`translate3d(0,${k}px,0)`):o.transform(`translate3d(0,${k}px,0)`),f&&r.transform("translate3d(0,0px,0)"))):f&&!s.bottom&&r.transform(`translate3d(0,${E}px,0)`);let re;f&&!b&&(re=g||v?Math.abs(p)**.85/I:Math.abs(p)/(I*2),j(re)),(g||v)&&Math.abs(p)**.85>I||!g&&Math.abs(p)>=I*2?(b=!0,o.addClass("ptr-pull-up").removeClass("ptr-pull-down"),W()):(b=!1,o.removeClass("ptr-pull-up").addClass("ptr-pull-down")),A||(o.trigger("ptr:pullstart"),s.emit("local::pullStart ptrPullStart",o[0]),A=!0),o.trigger("ptr:pullmove",{event:me,scrollTop:E,translate:k,touchesDiff:p}),s.emit("local::pullMove ptrPullMove",o[0],{event:me,scrollTop:E,translate:k,touchesDiff:p})}else A=!1,o.removeClass("ptr-pull-up ptr-pull-down"),b=!1}function q(me){if(me.isTrusted){if(me.type==="touchend"&&me.changedTouches&&me.changedTouches.length>0&&c&&me.changedTouches[0].identifier!==c){u=!1,h=!1,d=!1,c=null;return}if(!u||!d){u=!1,d=!1;return}k&&(o.addClass("ptr-transitioning"),k=0),l?r.transform("").find(".ptr-arrow").transform(""):(r.transform(""),s.bottom||f?o.children().transform(""):o.transform("")),!g&&s.bottom&&!l&&o.css("-webkit-overflow-scrolling",""),b?(o.addClass("ptr-refreshing"),o.trigger("ptr:refresh",s.done),s.emit("local::refresh ptrRefresh",o[0],s.done)):o.removeClass("ptr-pull-down"),u=!1,d=!1,A&&(o.trigger("ptr:pullend"),s.emit("local::pullEnd ptrPullEnd",o[0]))}}let X,H,G=!0,ce=0;function ye(){G=!0,H=!1,ce=0,k&&(o.addClass("ptr-transitioning"),k=0),l?r.transform("").find(".ptr-arrow").transform(""):(r.transform(""),s.bottom?o.children().transform(""):o.transform("")),b?(o.addClass("ptr-refreshing"),o.trigger("ptr:refresh",s.done),s.emit("local::refresh ptrRefresh",o[0],s.done)):o.removeClass("ptr-pull-down"),A&&(o.trigger("ptr:pullend"),s.emit("local::pullEnd ptrPullEnd",o[0]))}function ne(me){if(!G)return;const{deltaX:K,deltaY:pe}=me;if(Math.abs(K)>Math.abs(pe)||o.hasClass("ptr-refreshing")||P(me.target).closest(".sortable-handler, .ptr-ignore, .card-expandable.card-opened").length)return;if(clearTimeout(X),E=o[0].scrollTop,!H){o.removeClass("ptr-transitioning"),f&&j(0);let he;if(w=o[0].scrollHeight,D=o[0].offsetHeight,s.bottom&&(O=w-D),E>w){G=!1;return}const re=P(me.target).closest(".ptr-watch-scroll");if(re.length&&re.each(Ce=>{Ce!==n&&Ce.scrollHeight>Ce.offsetHeight&&P(Ce).css("overflow")==="auto"&&(!s.bottom&&Ce.scrollTop>0||s.bottom&&Ce.scrollTop=0&&(I=w*parseInt(I,10)/100))}if(d=!0,ce-=pe,p=ce,typeof S>"u"&&(s.bottom?E!==O:E!==0)&&(S=!0),s.bottom?p<0&&E>=O||E>O:p>0&&E<=0||E<0){me.cancelable&&me.preventDefault(),k=p,Math.abs(k)>I&&(k=I+(Math.abs(k)-I)**.7,s.bottom&&(k=-k)),l?r.transform(`translate3d(0,${k}px,0)`).find(".ptr-arrow").transform(`rotate(${180*(Math.abs(p)/66)+100}deg)`):s.bottom?o.children().transform(`translate3d(0,${k}px,0)`):(o.transform(`translate3d(0,${k}px,0)`),f&&r.transform(`translate3d(0,${-k}px,0)`));let he;f&&!b&&(he=Math.abs(k)/I,j(he)),Math.abs(k)>I?(b=!0,o.addClass("ptr-pull-up").removeClass("ptr-pull-down"),W()):(b=!1,o.removeClass("ptr-pull-up").addClass("ptr-pull-down")),A||(o.trigger("ptr:pullstart"),s.emit("local::pullStart ptrPullStart",o[0]),A=!0),o.trigger("ptr:pullmove",{event:me,scrollTop:E,translate:k,touchesDiff:p}),s.emit("local::pullMove ptrPullMove",o[0],{event:me,scrollTop:E,translate:k,touchesDiff:p})}else A=!1,o.removeClass("ptr-pull-up ptr-pull-down"),b=!1;X=setTimeout(ye,300)}return!L.length||!o.length||(o[0].f7PullToRefresh=s,s.attachEvents=function(){const K=i.passiveListener?{passive:!0}:!1;o.on(e.touchEvents.start,Y,K),e.on("touchmove:active",B),e.on("touchend:passive",q),s.mousewheel&&!s.bottom&&o.on("wheel",ne)},s.detachEvents=function(){const K=i.passiveListener?{passive:!0}:!1;o.off(e.touchEvents.start,Y,K),e.off("touchmove:active",B),e.off("touchend:passive",q),s.mousewheel&&!s.bottom&&o.off("wheel",ne)},s.useModules(),s.init()),s}init(){this.attachEvents()}destroy(){let e=this;e.emit("local::beforeDestroy ptrBeforeDestroy",e),e.$el.trigger("ptr:beforedestroy"),delete e.el.f7PullToRefresh,e.detachEvents(),ft(e),e=null}};const gd=sy,ay={name:"pullToRefresh",create(){const t=this;t.ptr=te(ct({defaultSelector:".ptr-content",constructor:gd,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:gd},on:{tabMounted(t){const e=this,n=P(t),s=n.find(".ptr-content");n.is(".ptr-content")&&s.add(n),s.each(a=>{e.ptr.create(a)})},tabBeforeRemove(t){const e=P(t),n=this,s=e.find(".ptr-content");e.is(".ptr-content")&&s.add(e),s.each(a=>{n.ptr.destroy(a)})},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 iy=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this,a={};s.useModulesParams(a),s.params=te(a,n);const i=P(s.params.el);if(i.length===0)return;if(s.$el=i,s.el=i[0],s.$el[0].f7DataTable){const l=s.$el[0].f7DataTable;return s.destroy(),l}s.$el[0].f7DataTable=s,te(s,{collapsible:i.hasClass("data-table-collapsible"),$headerEl:i.find(".data-table-header"),$headerSelectedEl:i.find(".data-table-header-selected")});function o(l){if(l.detail&&l.detail.sentByF7DataTable)return;const f=P(this),c=f[0].checked,u=f.parents("td,th").index();if(f.parents("thead").length>0)u===0&&i.find("tbody tr")[c?"addClass":"removeClass"]("data-table-row-selected"),i.find(`tbody tr td:nth-child(${u+1}) input`).prop("checked",c).trigger("change",{sentByF7DataTable:!0}),f.prop("indeterminate",!1);else{u===0&&f.parents("tr")[c?"addClass":"removeClass"]("data-table-row-selected");const d=i.find(`tbody .checkbox-cell:nth-child(${u+1}) input[type="checkbox"]:checked`).length,m=i.find("tbody tr").length,h=i.find(`thead .checkbox-cell:nth-child(${u+1}) input[type="checkbox"]`);c?d===m&&h.prop("checked",!0).trigger("change",{sentByF7DataTable:!0}):h.prop("checked",!1),h.prop("indeterminate",d>0&&d{const s=P(n),a=s.index(),i=s.attr("data-collapsible-title");!i&&i!==""&&s.attr("data-collapsible-title",e.$el.find("thead th").eq(a).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),ft(e),e=null}};const bd=iy,ry={name:"dataTable",static:{DataTable:bd},create(){const t=this;t.dataTable=ct({defaultSelector:".data-table",constructor:bd,app:t,domProp:"f7DataTable"})},on:{tabBeforeRemove(t){const e=this;P(t).find(".data-table-init").each(n=>{e.dataTable.destroy(n)})},tabMounted(t){const e=this;P(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)}}}},ly={morphOpen(t,e){const n=this,s=P(t),a=P(e);if(a.length===0)return;a.transition(0).addClass("fab-morph-target-visible");const i={width:a[0].offsetWidth,height:a[0].offsetHeight,offset:a.offset(),borderRadius:a.css("border-radius"),zIndex:a.css("z-index")},o={width:s[0].offsetWidth,height:s[0].offsetHeight,offset:s.offset(),translateX:Cs(s[0],"x"),translateY:Cs(s[0],"y")};s[0].f7FabMorphData={$targetEl:a,target:i,fab:o};const r=o.offset.left+o.width/2-(i.offset.left+i.width/2)-o.translateX,l=o.offset.top+o.height/2-(i.offset.top+i.height/2)-o.translateY,f=i.width/o.width,c=i.height/o.height;let u=Math.ceil(parseInt(i.borderRadius,10)/Math.max(f,c));u>0&&(u+=2),s[0].f7FabMorphResizeHandler=function(){s.transition(0).transform(""),a.transition(0),i.width=a[0].offsetWidth,i.height=a[0].offsetHeight,i.offset=a.offset(),o.offset=s.offset();const m=o.offset.left+o.width/2-(i.offset.left+i.width/2)-o.translateX,h=o.offset.top+o.height/2-(i.offset.top+i.height/2)-o.translateY,p=i.width/o.width,b=i.height/o.height;s.transform(`translate3d(${-m}px, ${-h}px, 0) scale(${p}, ${b})`)},a.css("opacity",0).transform(`scale(${1/f}, ${1/c})`),s.addClass("fab-opened").css("z-index",i.zIndex-1).transform(`translate3d(${-r}px, ${-l}px, 0)`),s.transitionEnd(()=>{a.transition(""),Bt(()=>{a.css("opacity",1).transform("scale(1,1)"),s.transform(`translate3d(${-r}px, ${-l}px, 0) scale(${f}, ${c})`).css("border-radius",`${u}px`).css("box-shadow","none").css("opacity","0")}),n.on("resize",s[0].f7FabMorphResizeHandler),a.parents(".page-content").length>0&&a.parents(".page-content").on("scroll",s[0].f7FabMorphResizeHandler)})},morphClose(t){const e=this,n=P(t),s=n[0].f7FabMorphData;if(!s)return;const{$targetEl:a,target:i,fab:o}=s;if(a.length===0)return;const r=o.offset.left+o.width/2-(i.offset.left+i.width/2)-o.translateX,l=o.offset.top+o.height/2-(i.offset.top+i.height/2)-o.translateY,f=i.width/o.width,c=i.height/o.height;e.off("resize",n[0].f7FabMorphResizeHandler),a.parents(".page-content").length>0&&a.parents(".page-content").off("scroll",n[0].f7FabMorphResizeHandler),a.css("opacity",0).transform(`scale(${1/f}, ${1/c})`),n.transition("").css("box-shadow","").css("border-radius","").css("opacity","1").transform(`translate3d(${-r}px, ${-l}px, 0)`),n.transitionEnd(()=>{n.css("z-index","").removeClass("fab-opened").transform(""),Bt(()=>{n.transitionEnd(()=>{a.removeClass("fab-morph-target-visible").css("opacity","").transform("").transition("")})})})},open(t,e){const n=this,s=P(t).eq(0),a=s.find(".fab-buttons");if(s.length&&!s.hasClass("fab-opened")&&!(!a.length&&!s.hasClass("fab-morph"))){if(n.fab.openedEl){if(n.fab.openedEl===s[0])return;n.fab.close(n.fab.openedEl)}n.fab.openedEl=s[0],s.hasClass("fab-morph")?n.fab.morphOpen(s,e||s.attr("data-morph-to")):s.addClass("fab-opened"),s.siblings(".fab-backdrop").addClass("backdrop-in"),s.trigger("fab:open")}},close(t){t===void 0&&(t=".fab-opened");const e=this,n=P(t).eq(0),s=n.find(".fab-buttons");n.length&&n.hasClass("fab-opened")&&(!s.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;P(t).hasClass("fab-opened")?e.fab.close(t):e.fab.open(t)}},oy={name:"fab",create(){It(this,{fab:{openedEl:null,...ly}})},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 fy=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this,a={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};s.useModulesParams(a),s.params=te(a,n);const i=P(s.params.el);if(i.length===0)return s;if(i[0].f7Searchbar)return i[0].f7Searchbar;i[0].f7Searchbar=s;let o;const r=i.parents(".navbar");if(i.parents(".page").length>0)o=i.parents(".page");else if(r.length>0&&(o=P(e.navbar.getPageByEl(r[0])),!o.length)){const y=i.parents(".view").find(".page-current");y[0]&&y[0].f7Page&&y[0].f7Page.navbarEl===r[0]&&(o=y)}let l;n.foundEl?l=P(n.foundEl):typeof s.params.foundEl=="string"&&o&&(l=o.find(s.params.foundEl));let f;n.notFoundEl?f=P(n.notFoundEl):typeof s.params.notFoundEl=="string"&&o&&(f=o.find(s.params.notFoundEl));let c;n.hideOnEnableEl?c=P(n.hideOnEnableEl):typeof s.params.hideOnEnableEl=="string"&&o&&(c=o.find(s.params.hideOnEnableEl));let u;n.hideOnSearchEl?u=P(n.hideOnSearchEl):typeof s.params.hideOnSearchEl=="string"&&o&&(u=o.find(s.params.hideOnSearchEl));const d=s.params.expandable||i.hasClass("searchbar-expandable"),m=s.params.inline||i.hasClass("searchbar-inline");typeof s.params.backdrop>"u"&&(s.params.backdrop=!m);let h;s.params.backdrop&&(s.params.backdropEl?h=P(s.params.backdropEl):o&&o.length>0?h=o.find(".searchbar-backdrop"):h=i.siblings(".searchbar-backdrop"),h.length===0&&(h=P('
        '),o&&o.length?i.parents(o).length>0&&r&&i.parents(r).length===0?h.insertBefore(i):h.insertBefore(o.find(".page-content").eq(0)):h.insertBefore(i)));let p;s.params.searchContainer&&(p=P(s.params.searchContainer));let b;s.params.inputEl?b=P(s.params.inputEl):b=i.find('input[type="search"]').eq(0);let g;s.params.disableButton&&(s.params.disableButtonEl?g=P(s.params.disableButtonEl):g=i.find(".searchbar-disable-button")),te(s,{app:e,view:e.views.get(i.parents(".view")),$el:i,el:i[0],$backdropEl:h,backdropEl:h&&h[0],$searchContainer:p,searchContainer:p&&p[0],$inputEl:b,inputEl:b[0],$disableButtonEl:g,disableButtonEl:g&&g[0],disableButtonHasMargin:!1,$pageEl:o,pageEl:o&&o[0],$navbarEl:r,navbarEl:r&&r[0],$foundEl:l,foundEl:l&&l[0],$notFoundEl:f,notFoundEl:f&&f[0],$hideOnEnableEl:c,hideOnEnableEl:c&&c[0],$hideOnSearchEl:u,hideOnSearchEl:u&&u[0],previousQuery:"",query:"",isVirtualList:p&&p.hasClass("virtual-list"),virtualList:void 0,enabled:!1,expandable:d,inline:m});function v(y){y.preventDefault()}function _(y){s.enable(y),s.$el.addClass("searchbar-focused")}function k(){s.$el.removeClass("searchbar-focused")}function E(){const y=s.$inputEl.val().trim();(s.$searchContainer&&s.$searchContainer.length>0&&(s.params.searchIn||s.isVirtualList||s.params.searchIn===s.params.searchItem)||s.params.customSearch)&&s.search(y,!0)}function S(y,w){s.$el.trigger("searchbar:clear",w),s.emit("local::clear searchbarClear",s,w)}function I(y){s.disable(y)}function T(){!s||s&&!s.$el||s.enabled&&(s.$el.removeClass("searchbar-enabled"),s.expandable&&s.$el.parents(".navbar").removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition"))}function A(){!s||s&&!s.$el||s.enabled&&(s.$el.addClass("searchbar-enabled"),s.expandable&&s.$el.parents(".navbar").addClass("with-searchbar-expandable-enabled-no-transition"))}return s.attachEvents=function(){i.on("submit",v),s.params.disableButton&&s.$disableButtonEl.on("click",I),s.params.disableOnBackdropClick&&s.$backdropEl&&s.$backdropEl.on("click",I),s.expandable&&e.theme==="ios"&&s.view&&r.length&&s.$pageEl&&(s.$pageEl.on("page:beforeout",T),s.$pageEl.on("page:beforein",A)),s.$inputEl.on("focus",_),s.$inputEl.on("blur",k),s.$inputEl.on(s.params.inputEvents,E),s.$inputEl.on("input:clear",S)},s.detachEvents=function(){i.off("submit",v),s.params.disableButton&&s.$disableButtonEl.off("click",I),s.params.disableOnBackdropClick&&s.$backdropEl&&s.$backdropEl.off("click",I),s.expandable&&e.theme==="ios"&&s.view&&r.length&&s.$pageEl&&(s.$pageEl.off("page:beforeout",T),s.$pageEl.off("page:beforein",A)),s.$inputEl.off("focus",_),s.$inputEl.off("blur",k),s.$inputEl.off(s.params.inputEvents,E),s.$inputEl.off("input:clear",S)},s.useModules(),s.init(),s}clear(e){const n=this;if(!n.query&&e&&P(e.target).hasClass("searchbar-clear"))return n.disable(),n;const s=n.value;return n.$inputEl.val("").trigger("change").focus(),n.$el.trigger("searchbar:clear",s),n.emit("local::clear searchbarClear",n,s),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 s=n.app,a=Le(),i=Ke();n.enabled=!0;function o(){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&&s.theme!=="md"&&(n.disableButtonHasMargin||n.setDisableButtonMargin(),n.$disableButtonEl.css(`margin-${s.rtl?"left":"right"}`,"0px")),n.expandable){const f=n.$el.parents(".navbar");if(f.hasClass("navbar-large")&&n.$pageEl){const c=n.$pageEl.find(".page-content"),u=f.find(".title-large");c.addClass("with-searchbar-expandable-enabled"),f.hasClass("navbar-large")&&f.hasClass("navbar-large-collapsed")&&u.length&&c.length&&(c.transition(0),c[0].scrollTop-=u[0].offsetHeight,setTimeout(()=>{c.transition("")},200))}s.theme==="md"&&f.length?f.addClass("with-searchbar-expandable-enabled"):(f.addClass("with-searchbar-expandable-enabled"),f.hasClass("navbar-large")&&f.addClass("navbar-large-collapsed"))}n.$hideOnEnableEl&&n.$hideOnEnableEl.addClass("hidden-by-searchbar"),n.$el.trigger("searchbar:enable"),n.emit("local::enable searchbarEnable",n)}let r=!1;return e===!0&&a.activeElement!==n.inputEl&&(r=!0),i.ios&&s.theme==="ios"?n.expandable?(r&&n.$inputEl.focus(),o()):(r&&n.$inputEl.focus(),e&&(e.type==="focus"||e===!0)?_t(()=>{o()},400):o()):(r&&n.$inputEl.focus(),s.theme==="md"&&n.expandable&&n.$el.parents(".page, .view, .navbar-inner, .navbar").scrollLeft(s.rtl?100:0),o()),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 s=e.$el.parents(".navbar"),a=e.$pageEl&&e.$pageEl.find(".page-content");if(s.hasClass("navbar-large")&&a.length){const i=s.find(".title-large");if(e.$el.transitionEnd(()=>{a.removeClass("with-searchbar-expandable-closing")}),s.hasClass("navbar-large")&&s.hasClass("navbar-large-collapsed")&&i.length){const o=a[0].scrollTop,r=i[0].offsetHeight;o>r&&(a.transition(0),a[0].scrollTop=o+r,setTimeout(()=>{a.transition("")},200))}a.removeClass("with-searchbar-expandable-enabled").addClass("with-searchbar-expandable-closing")}n.theme==="md"&&s.length?(s.removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd(()=>{s.removeClass("with-searchbar-expandable-closing")})):(s.removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd(()=>{s.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 s=this;if(s.previousQuery=s.query||"",e===s.previousQuery)return s;n||(s.enabled||s.enable(),s.$inputEl.val(e),s.$inputEl.trigger("input")),s.query=e,s.value=e;const{$searchContainer:a,$el:i,$foundEl:o,$notFoundEl:r,$hideOnSearchEl:l,isVirtualList:f}=s;if(e.length>0&&l?l.addClass("hidden-by-searchbar"):l&&l.removeClass("hidden-by-searchbar"),(a&&a.length&&i.hasClass("searchbar-enabled")||s.params.customSearch&&i.hasClass("searchbar-enabled"))&&(e.length===0?s.backdropShow():s.backdropHide()),s.params.customSearch)return i.trigger("searchbar:search",{query:e,previousQuery:s.previousQuery}),s.emit("local::search searchbarSearch",s,e,s.previousQuery),s;let c=[],u;if(f){if(s.virtualList=a[0].f7VirtualList,e.trim()==="")return s.virtualList.resetFilter(),r&&r.hide(),o&&o.show(),i.trigger("searchbar:search",{query:e,previousQuery:s.previousQuery}),s.emit("local::search searchbarSearch",s,e,s.previousQuery),s;if(u=s.params.removeDiacritics?gs(e):e,s.virtualList.params.searchAll)c=s.virtualList.params.searchAll(u,s.virtualList.items)||[];else if(s.virtualList.params.searchByItem)for(let d=0;d{const h=P(m);let p=[],b=s.params.searchIn?h.find(s.params.searchIn):h;s.params.searchIn===s.params.searchItem&&(b=h),b.each(v=>{let _=P(v).text().trim().toLowerCase();s.params.removeDiacritics&&(_=gs(_)),p.push(_)}),p=p.join(" ");let g=0;for(let v=0;v=0&&(g+=1);g!==d.length&&!(s.params.ignore&&h.is(s.params.ignore))?h.addClass("hidden-by-searchbar"):c.push(h[0])}),s.params.hideGroupTitles&&a.find(s.params.searchGroupTitle).each(m=>{const h=P(m),p=h.nextAll(s.params.searchItem);let b=!0;for(let v=0;v{const h=P(m),p=s.params.ignore&&h.is(s.params.ignore);h.find(s.params.searchItem).filter(g=>!P(g).hasClass("hidden-by-searchbar")).length===0&&!p?h.addClass("hidden-by-searchbar"):h.removeClass("hidden-by-searchbar")})}return c.length===0?(r&&r.show(),o&&o.hide()):(r&&r.hide(),o&&o.show()),f&&s.virtualList&&s.virtualList.filterItems(c),i.trigger("searchbar:search",{query:e,previousQuery:s.previousQuery,foundItems:c}),s.emit("local::search searchbarSearch",s,e,s.previousQuery,c),s}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),ft(e)}};const vd=fy,cy={name:"searchbar",static:{Searchbar:vd},create(){const t=this;t.searchbar=ct({defaultSelector:".searchbar",constructor:vd,app:t,domProp:"f7Searchbar",addMethods:"clear enable disable toggle search".split(" ")})},on:{tabMounted(t){const e=this;P(t).find(".searchbar-init").each(n=>{const s=P(n);e.searchbar.create(te(s.dataset(),{el:n}))})},tabBeforeRemove(t){P(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 s=P(n);e.searchbar.create(te(s.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 s=P(n);e.searchbar.create(te(s.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 a=this.searchbar.get(n.searchbar);a&&a.clear()},".searchbar-enable":function(e,n){n===void 0&&(n={});const a=this.searchbar.get(n.searchbar);a&&a.enable(!0)},".searchbar-disable":function(e,n){n===void 0&&(n={});const a=this.searchbar.get(n.searchbar);a&&a.disable()},".searchbar-toggle":function(e,n){n===void 0&&(n={});const a=this.searchbar.get(n.searchbar);a&&a.toggle()}},vnode:{"searchbar-init":{insert(t){const e=this,n=t.elm,s=P(n);e.searchbar.create(te(s.dataset(),{el:n}))},destroy(t){const e=t.elm;e.f7Searchbar&&e.f7Searchbar.destroy&&e.f7Searchbar.destroy()}}}};function ma(){return ma=Object.assign?Object.assign.bind():function(t){for(var e=1;e${s.textHeader}`,"")),s.text&&s.textFooter&&(s.text=s.text.replace(``,""));let a=n.find(".message-avatar").css("background-image");return(a==="none"||a==="")&&(a=void 0),a&&typeof a=="string"?a=a.replace("url(","").replace(")","").replace(/"/g,"").replace(/'/g,""):a=void 0,s.avatar=a,s}getMessagesData(){const e=this,n=[];return e.$el.find(".message, .messages-title").each(s=>{n.push(e.getMessageData(s))}),n}renderMessage(e){const n=this,s=te({type:"sent",attrs:{}},e);return n.params.renderMessage?n.params.renderMessage.call(n,s):s.isTitle?`
        ${s.text}
        `:R("div",ma({class:`message message-${s.type} ${s.isTyping?"message-typing":""} ${s.cssClass||""}`},s.attrs),s.avatar&&R("div",{class:"message-avatar",style:`background-image:url(${s.avatar})`}),R("div",{class:"message-content"},s.name&&R("div",{class:"message-name"},s.name),s.header&&R("div",{class:"message-header"},s.header),R("div",{class:"message-bubble"},s.textHeader&&R("div",{class:"message-text-header"},s.textHeader),s.image&&R("div",{class:"message-image"},s.image),s.imageSrc&&!s.image&&R("div",{class:"message-image"},R("img",{src:s.imageSrc})),(s.text||s.isTyping)&&R("div",{class:"message-text"},s.text||"",s.isTyping&&R("div",{class:"message-typing-indicator"},R("div",null),R("div",null),R("div",null))),s.textFooter&&R("div",{class:"message-text-footer"},s.textFooter)),s.footer&&R("div",{class:"message-footer"},s.footer)))}renderMessages(e,n){e===void 0&&(e=this.messages),n===void 0&&(n=this.params.newMessagesFirst?"prepend":"append");const s=this,a=e.map(i=>s.renderMessage(i)).join("");s.$el[n](a)}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,s)=>{const a=P(n);e.messages||(e.messages=e.getMessagesData());const i=[],o=e.messages[s],r=e.messages[s-1],l=e.messages[s+1];e.isFirstMessage(o,r,l)&&i.push("message-first"),e.isLastMessage(o,r,l)&&i.push("message-last"),e.isTailMessage(o,r,l)&&i.push("message-tail"),e.isSameNameMessage(o,r,l)&&i.push("message-same-name"),e.isSameHeaderMessage(o,r,l)&&i.push("message-same-header"),e.isSameFooterMessage(o,r,l)&&i.push("message-same-footer"),e.isSameAvatarMessage(o,r,l)&&i.push("message-same-avatar");let f=e.isCustomClassMessage(o,r,l);f&&f.length&&(typeof f=="string"&&(f=f.split(" ")),f.forEach(c=>{i.push(c)})),a.removeClass("message-first message-last message-tail message-same-name message-same-header message-same-footer message-same-avatar"),i.forEach(c=>{a.addClass(c)})})}clear(){const e=this;e.messages=[],e.$el.html("")}removeMessage(e,n){n===void 0&&(n=!0);const s=this;let a,i;return typeof e=="number"?(a=e,i=s.$el.find(".message, .messages-title").eq(a)):s.messages&&s.messages.indexOf(e)>=0?(a=s.messages.indexOf(e),i=s.$el.children().eq(a)):(i=P(e),a=i.index()),i.length===0||(i.remove(),s.messages.splice(a,1),s.params.autoLayout&&n&&s.layout()),s}removeMessages(e,n){n===void 0&&(n=!0);const s=this;if(Array.isArray(e)){const a=[];e.forEach(i=>{a.push(s.$el.find(".message, .messages-title").eq(i))}),a.forEach(i=>{s.removeMessage(i,!1)})}else P(e).each(a=>{s.removeMessage(a,!1)});return s.params.autoLayout&&n&&s.layout(),s}addMessage(){const e=this;let n,s,a;for(var i=arguments.length,o=new Array(i),r=0;r"u"&&(s=!0),typeof a>"u"&&(a=e.params.newMessagesFirst?"prepend":"append"),e.addMessages([n],s,a)}setScrollData(){const e=this,n=e.pageContentEl.scrollHeight,s=e.pageContentEl.offsetHeight,a=e.pageContentEl.scrollTop;return e.scrollData={scrollHeightBefore:n,heightBefore:s,scrollBefore:a},{scrollHeightBefore:n,heightBefore:s,scrollBefore:a}}addMessages(){const e=this;let n,s,a;for(var i=arguments.length,o=new Array(i),r=0;r"u"&&(s=!0),typeof a>"u"&&(a=e.params.newMessagesFirst?"prepend":"append");const{scrollHeightBefore:l,scrollBefore:f}=e.setScrollData();let c="";const u=e.messages.filter(m=>m.isTyping)[0];n.forEach(m=>{u?a==="append"?e.messages.splice(e.messages.indexOf(u),0,m):e.messages.splice(e.messages.indexOf(u)+1,0,m):e.messages[a==="append"?"push":"unshift"](m),c+=e.renderMessage(m)});const d=P(c);return s&&(a==="append"&&!e.params.newMessagesFirst&&d.addClass("message-appear-from-bottom"),a==="prepend"&&e.params.newMessagesFirst&&d.addClass("message-appear-from-top")),u?a==="append"?d.insertBefore(e.$el.find(".message-typing")):d.insertAfter(e.$el.find(".message-typing")):e.$el[a](d),e.params.autoLayout&&e.layout(),a==="prepend"&&!u&&(e.pageContentEl.scrollTop=f+(e.pageContentEl.scrollHeight-l)),e.params.scrollMessages&&(a==="append"&&!e.params.newMessagesFirst||a==="prepend"&&e.params.newMessagesFirst&&!u)&&e.scrollWithEdgeCheck(s),e}showTyping(e){e===void 0&&(e={});const n=this,s=n.messages.filter(a=>a.isTyping)[0];return s&&n.removeMessage(n.messages.indexOf(s)),n.addMessage(te({type:"received",isTyping:!0},e)),n}hideTyping(){const e=this;let n,s;if(e.messages.forEach((a,i)=>{a.isTyping&&(n=i)}),typeof n<"u"&&e.$el.find(".message").eq(n).hasClass("message-typing")&&(s=!0,e.removeMessage(n)),!s){const a=e.$el.find(".message-typing");a.length&&e.removeMessage(a)}return e}scrollWithEdgeCheck(e){const n=this,{scrollBefore:s,scrollHeightBefore:a,heightBefore:i}=n.scrollData;if(n.params.scrollMessagesOnEdge){let o=!1;n.params.newMessagesFirst&&s===0&&(o=!0),!n.params.newMessagesFirst&&s-(a-i)>=-10&&(o=!0),o&&n.scroll(e?void 0:0)}else n.scroll(e?void 0:0)}scroll(e,n){e===void 0&&(e=300);const s=this,a=s.pageContentEl.scrollTop;let i;if(typeof n<"u")i=n;else if(i=s.params.newMessagesFirst?0:s.pageContentEl.scrollHeight-s.pageContentEl.offsetHeight,i===a)return s;return s.$pageContentEl.scrollTop(i,e),s}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),ft(e)}};const _d=uy,dy={name:"messages",static:{Messages:_d},create(){const t=this;t.messages=ct({defaultSelector:".messages",constructor:_d,app:t,domProp:"f7Messages",addMethods:"renderMessages layout scroll clear removeMessage removeMessages addMessage addMessages".split(" ")})},on:{tabBeforeRemove(t){const e=this;P(t).find(".messages-init").each(n=>{e.messages.destroy(n)})},tabMounted(t){const e=this;P(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 py=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this,a={top:!1,topOffset:0,bottomOffset:0,attachments:[],renderAttachments:void 0,renderAttachment:void 0,maxHeight:null,resizePage:!0};s.useModulesParams(a),s.params=te(a,n);const i=P(s.params.el);if(i.length===0)return s;if(i[0].f7Messagebar)return i[0].f7Messagebar;i[0].f7Messagebar=s;const o=i.parents(".page").eq(0),r=o.find(".page-content").eq(0),l=i.find(".messagebar-area");let f;s.params.textareaEl?f=P(s.params.textareaEl):f=i.find("textarea");const c=i.find(".messagebar-attachments"),u=i.find(".messagebar-sheet");s.params.top&&i.addClass("messagebar-top"),te(s,{$el:i,el:i[0],$areaEl:l,areaEl:l[0],$textareaEl:f,textareaEl:f[0],$attachmentsEl:c,attachmentsEl:c[0],attachmentsVisible:c.hasClass("messagebar-attachments-visible"),$sheetEl:u,sheetEl:u[0],sheetVisible:u.hasClass("messagebar-sheet-visible"),$pageEl:o,pageEl:o[0],$pageContentEl:r,pageContentEl:r,top:i.hasClass("messagebar-top")||s.params.top,attachments:[]});function d(){s.params.resizePage&&s.resizePage()}function m(v){v.preventDefault()}function h(v){const _=P(this).index();P(v.target).closest(".messagebar-attachment-delete").length?(P(this).trigger("messagebar:attachmentdelete",_),s.emit("local::attachmentDelete messagebarAttachmentDelete",s,this,_)):(P(this).trigger("messagebar:attachmentclick",_),s.emit("local::attachmentClick messagebarAttachmentClick",s,this,_))}function p(){s.checkEmptyState(),s.$el.trigger("messagebar:change"),s.emit("local::change messagebarChange",s)}function b(){s.sheetHide(),s.$el.addClass("messagebar-focused"),s.$el.trigger("messagebar:focus"),s.emit("local::focus messagebarFocus",s)}function g(){s.$el.removeClass("messagebar-focused"),s.$el.trigger("messagebar:blur"),s.emit("local::blur messagebarBlur",s)}return s.attachEvents=function(){i.on("textarea:resize",d),i.on("submit",m),i.on("click",".messagebar-attachment",h),f.on("change input",p),f.on("focus",b),f.on("blur",g),e.on("resize",d)},s.detachEvents=function(){i.off("textarea:resize",d),i.off("submit",m),i.off("click",".messagebar-attachment",h),f.off("change input",p),f.off("focus",b),f.off("blur",g),e.off("resize",d)},s.useModules(),s.init(),s}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:s,top:a,$pageEl:i,$pageContentEl:o,$areaEl:r,$textareaEl:l,$sheetEl:f,$attachmentsEl:c}=e,u=s[0].offsetHeight;let d=n.maxHeight;if(!a){const m=parseInt(o.css("padding-bottom"),10),h=u+n.bottomOffset;if(h!==m&&o.length){const p=parseInt(o.css("padding-top"),10),b=o[0].scrollHeight,g=o[0].offsetHeight,_=o[0].scrollTop===b-g;d||(d=i[0].offsetHeight-p-f.outerHeight()-c.outerHeight()-parseInt(r.css("margin-top"),10)-parseInt(r.css("margin-bottom"),10)),l.css("max-height",`${d}px`),o.css("padding-bottom",`${h}px`),_&&o.scrollTop(o[0].scrollHeight-g),s.trigger("messagebar:resizepage"),e.emit("local::resizePage messagebarResizePage",e)}}}checkEmptyState(){const e=this,{$el:n,$textareaEl:s}=e,a=s.val().trim();a&&a.length?n.addClass("messagebar-with-value"):n.removeClass("messagebar-with-value")}attachmentsCreate(e){e===void 0&&(e="");const n=this,s=P(`
        ${e}
        `);return s.insertBefore(n.$textareaEl),te(n,{$attachmentsEl:s,attachmentsEl:s[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(s=>e.renderAttachment(s)).join("")}`,e.$attachmentsEl.length===0?e.attachmentsCreate(n):e.$attachmentsEl.html(n)}sheetCreate(e){e===void 0&&(e="");const n=this,s=P(`
        ${e}
        `);return n.$el.append(s),te(n,{$sheetEl:s,sheetEl:s[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),ft(e)}};const kd=py,my={name:"messagebar",static:{Messagebar:kd},create(){const t=this;t.messagebar=ct({defaultSelector:".messagebar",constructor:kd,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;P(t).find(".messagebar-init").each(n=>{e.messagebar.destroy(n)})},tabMounted(t){const e=this;P(t).find(".messagebar-init").each(n=>{e.messagebar.create(te({el:n},P(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(te({el:n},P(n).dataset()))})}},vnode:{"messagebar-init":{insert(t){const e=this,n=t.elm;e.messagebar.create(te({el:n},P(n).dataset()))},destroy(t){const e=this,n=t.elm;e.messagebar.destroy(n)}}}};function hy(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function Tn(t,e=0){return setTimeout(t,e)}function Wt(){return Date.now()}function gy(t){const e=Se();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function ha(t,e="x"){const n=Se();let s,a,i;const o=gy(t);return n.WebKitCSSMatrix?(a=o.transform||o.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(r=>r.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(a==="none"?"":a)):(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=i.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?a=i.m41:s.length===16?a=parseFloat(s[12]):a=parseFloat(s[4])),e==="y"&&(n.WebKitCSSMatrix?a=i.m42:s.length===16?a=parseFloat(s[13]):a=parseFloat(s[5])),a||0}function $n(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function by(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Vt(...t){const e=Object(t[0]),n=["__proto__","constructor","prototype"];for(let s=1;sn.indexOf(o)<0);for(let o=0,r=i.length;oa?"next":"prev",f=(u,d)=>l==="next"&&u>=d||l==="prev"&&u<=d,c=()=>{o=new Date().getTime(),i===null&&(i=o);const u=Math.max(Math.min((o-i)/r,1),0),d=.5-Math.cos(u*Math.PI)/2;let m=a+d*(e-a);if(f(m,e)&&(m=e),t.wrapperEl.scrollTo({[n]:m}),f(m,e)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:m})}),s.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=s.requestAnimationFrame(c)};c()}function Pn(t){return t.querySelector(".swiper-slide-transform")||t.shadowEl&&t.shadowEl.querySelector(".swiper-slide-transform")||t}function St(t,e=""){return[...t.children].filter(n=>n.matches(e))}function Xt(t,e=[]){const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:[e]),n}function ws(t){const e=Se(),n=Le(),s=t.getBoundingClientRect(),a=n.body,i=t.clientTop||a.clientTop||0,o=t.clientLeft||a.clientLeft||0,r=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:s.top+r-i,left:s.left+l-o}}function vy(t,e){const n=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&n.push(s):n.push(s),t=s}return n}function _y(t,e){const n=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&n.push(s):n.push(s),t=s}return n}function gn(t,e){return Se().getComputedStyle(t,null).getPropertyValue(e)}function ss(t){let e=t,n;if(e){for(n=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(n+=1);return n}}function Sn(t,e){const n=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&n.push(s):n.push(s),s=s.parentElement;return n}function Jn(t,e){function n(s){s.target===t&&(e.call(t,s),t.removeEventListener("transitionend",n))}e&&t.addEventListener("transitionend",n)}function ga(t,e,n){const s=Se();return n?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}let Zs;function ky(){const t=Se(),e=Le();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function pp(){return Zs||(Zs=ky()),Zs}let Js;function Ey({userAgent:t}={}){const e=pp(),n=Se(),s=n.navigator.platform,a=t||n.navigator.userAgent,i={ios:!1,android:!1},o=n.screen.width,r=n.screen.height,l=a.match(/(Android);?[\s\/]+([\d.]+)?/);let f=a.match(/(iPad).*OS\s([\d_]+)/);const c=a.match(/(iPod)(.*OS\s([\d_]+))?/),u=!f&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d=s==="Win32";let m=s==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!f&&m&&e.touch&&h.indexOf(`${o}x${r}`)>=0&&(f=a.match(/(Version)\/([\d.]+)/),f||(f=[0,1,"13_0_0"]),m=!1),l&&!d&&(i.os="android",i.android=!0),(f||u||c)&&(i.os="ios",i.ios=!0),i}function Cy(t={}){return Js||(Js=Ey(t)),Js}let ea;function yy(){const t=Se();let e=!1;function n(){const s=t.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(n()){const s=String(t.navigator.userAgent);if(s.includes("Version/")){const[a,i]=s.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));e=a<16||a===16&&i<2}}return{isSafari:e||n(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function wy(){return ea||(ea=yy()),ea}function Sy({swiper:t,on:e,emit:n}){const s=Se();let a=null,i=null;const o=()=>{!t||t.destroyed||!t.initialized||(n("beforeResize"),n("resize"))},r=()=>{!t||t.destroyed||!t.initialized||(a=new ResizeObserver(c=>{i=s.requestAnimationFrame(()=>{const{width:u,height:d}=t;let m=u,h=d;c.forEach(({contentBoxSize:p,contentRect:b,target:g})=>{g&&g!==t.el||(m=b?b.width:(p[0]||p).inlineSize,h=b?b.height:(p[0]||p).blockSize)}),(m!==u||h!==d)&&o()})}),a.observe(t.el))},l=()=>{i&&s.cancelAnimationFrame(i),a&&a.unobserve&&t.el&&(a.unobserve(t.el),a=null)},f=()=>{!t||t.destroyed||!t.initialized||n("orientationchange")};e("init",()=>{if(t.params.resizeObserver&&typeof s.ResizeObserver<"u"){r();return}s.addEventListener("resize",o),s.addEventListener("orientationchange",f)}),e("destroy",()=>{l(),s.removeEventListener("resize",o),s.removeEventListener("orientationchange",f)})}function Ty({swiper:t,extendParams:e,on:n,emit:s}){const a=[],i=Se(),o=(f,c={})=>{const u=i.MutationObserver||i.WebkitMutationObserver,d=new u(m=>{if(t.__preventObserver__)return;if(m.length===1){s("observerUpdate",m[0]);return}const h=function(){s("observerUpdate",m[0])};i.requestAnimationFrame?i.requestAnimationFrame(h):i.setTimeout(h,0)});d.observe(f,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:typeof c.childList>"u"?!0:c.childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),a.push(d)},r=()=>{if(t.params.observer){if(t.params.observeParents){const f=Sn(t.el);for(let c=0;c{a.forEach(f=>{f.disconnect()}),a.splice(0,a.length)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",r),n("destroy",l)}const My={on(t,e,n){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const a=n?"unshift":"push";return t.split(" ").forEach(i=>{s.eventsListeners[i]||(s.eventsListeners[i]=[]),s.eventsListeners[i][a](e)}),s},once(t,e,n){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function a(...i){s.off(t,a),a.__emitterProxy&&delete a.__emitterProxy,e.apply(s,i)}return a.__emitterProxy=e,s.on(t,a,n)},onAny(t,e){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const s=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[s](t),n},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?n.eventsListeners[s]=[]:n.eventsListeners[s]&&n.eventsListeners[s].forEach((a,i)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&n.eventsListeners[s].splice(i,1)})}),n},emit(...t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let n,s,a;return typeof t[0]=="string"||Array.isArray(t[0])?(n=t[0],s=t.slice(1,t.length),a=e):(n=t[0].events,s=t[0].data,a=t[0].context||e),s.unshift(a),(Array.isArray(n)?n:n.split(" ")).forEach(o=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(r=>{r.apply(a,[o,...s])}),e.eventsListeners&&e.eventsListeners[o]&&e.eventsListeners[o].forEach(r=>{r.apply(a,s)})}),e}};function Py(){const t=this;let e,n;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=s.clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(gn(s,"padding-left")||0,10)-parseInt(gn(s,"padding-right")||0,10),n=n-parseInt(gn(s,"padding-top")||0,10)-parseInt(gn(s,"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 Iy(){const t=this;function e(w){return t.isHorizontal()?w:{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"}[w]}function n(w,D){return parseFloat(w.getPropertyValue(e(D))||0)}const s=t.params,{wrapperEl:a,slidesEl:i,size:o,rtlTranslate:r,wrongRTL:l}=t,f=t.virtual&&s.virtual.enabled,c=f?t.virtual.slides.length:t.slides.length,u=St(i,`.${t.params.slideClass}, swiper-slide`),d=f?t.virtual.slides.length:u.length;let m=[];const h=[],p=[];let b=s.slidesOffsetBefore;typeof b=="function"&&(b=s.slidesOffsetBefore.call(t));let g=s.slidesOffsetAfter;typeof g=="function"&&(g=s.slidesOffsetAfter.call(t));const v=t.snapGrid.length,_=t.slidesGrid.length;let k=s.spaceBetween,E=-b,S=0,I=0;if(typeof o>"u")return;typeof k=="string"&&k.indexOf("%")>=0?k=parseFloat(k.replace("%",""))/100*o:typeof k=="string"&&(k=parseFloat(k)),t.virtualSize=-k,u.forEach(w=>{r?w.style.marginLeft="":w.style.marginRight="",w.style.marginBottom="",w.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(Qn(a,"--swiper-centered-offset-before",""),Qn(a,"--swiper-centered-offset-after",""));const T=s.grid&&s.grid.rows>1&&t.grid;T&&t.grid.initSlides(d);let A;const y=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(w=>typeof s.breakpoints[w].slidesPerView<"u").length>0;for(let w=0;w1&&m.push(t.virtualSize-o)}if(f&&s.loop){const w=p[0]+k;if(s.slidesPerGroup>1){const D=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/s.slidesPerGroup),O=w*s.slidesPerGroup;for(let L=0;L!s.cssMode||s.loop?!0:O!==u.length-1).forEach(D=>{D.style[w]=`${k}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let w=0;p.forEach(O=>{w+=O+(k||0)}),w-=k;const D=w-o;m=m.map(O=>O<=0?-b:O>D?D+g:O)}if(s.centerInsufficientSlides){let w=0;if(p.forEach(D=>{w+=D+(k||0)}),w-=k,w{m[L]=O-D}),h.forEach((O,L)=>{h[L]=O+D})}}if(Object.assign(t,{slides:u,snapGrid:m,slidesGrid:h,slidesSizesGrid:p}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){Qn(a,"--swiper-centered-offset-before",`${-m[0]}px`),Qn(a,"--swiper-centered-offset-after",`${t.size/2-p[p.length-1]/2}px`);const w=-t.snapGrid[0],D=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(O=>O+w),t.slidesGrid=t.slidesGrid.map(O=>O+D)}if(d!==c&&t.emit("slidesLengthChange"),m.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),h.length!==_&&t.emit("slidesGridLengthChange"),s.watchSlidesProgress&&t.updateSlidesOffset(),!f&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const w=`${s.containerModifierClass}backface-hidden`,D=t.el.classList.contains(w);d<=s.maxBackfaceHiddenSlides?D||t.el.classList.add(w):D&&t.el.classList.remove(w)}}function Ay(t){const e=this,n=[],s=e.virtual&&e.params.virtual.enabled;let a=0,i;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=r=>s?e.slides[e.getSlideIndexByData(r)]:e.slides[r];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(r=>{n.push(r)});else for(i=0;ie.slides.length&&!s)break;n.push(o(r))}else n.push(o(e.activeIndex));for(i=0;ia?r:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function Oy(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s"u"&&e.updateSlidesOffset();let o=-t;a&&(o=t),s.forEach(l=>{l.classList.remove(n.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let r=n.spaceBetween;typeof r=="string"&&r.indexOf("%")>=0?r=parseFloat(r.replace("%",""))/100*e.size:typeof r=="string"&&(r=parseFloat(r));for(let l=0;l=0&&m1&&h<=e.size||m<=0&&h>=e.size)&&(e.visibleSlides.push(f),e.visibleSlidesIndexes.push(l),s[l].classList.add(n.slideVisibleClass)),f.progress=a?-u:u,f.originalProgress=a?-d:d}}function Ly(t){const e=this;if(typeof t>"u"){const c=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*c||0}const n=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:i,isEnd:o,progressLoop:r}=e;const l=i,f=o;if(s===0)a=0,i=!0,o=!0;else{a=(t-e.minTranslate())/s;const c=Math.abs(t-e.minTranslate())<1,u=Math.abs(t-e.maxTranslate())<1;i=c||a<=0,o=u||a>=1,c&&(a=0),u&&(a=1)}if(n.loop){const c=e.getSlideIndexByData(0),u=e.getSlideIndexByData(e.slides.length-1),d=e.slidesGrid[c],m=e.slidesGrid[u],h=e.slidesGrid[e.slidesGrid.length-1],p=Math.abs(t);p>=d?r=(p-d)/h:r=(p+h-m)/h,r>1&&(r-=1)}Object.assign(e,{progress:a,progressLoop:r,isBeginning:i,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),i&&!l&&e.emit("reachBeginning toEdge"),o&&!f&&e.emit("reachEnd toEdge"),(l&&!i||f&&!o)&&e.emit("fromEdge"),e.emit("progress",a)}function Dy(){const t=this,{slides:e,params:n,slidesEl:s,activeIndex:a}=t,i=t.virtual&&n.virtual.enabled,o=l=>St(s,`.${n.slideClass}${l}, swiper-slide${l}`)[0];e.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let r;if(i)if(n.loop){let l=a-t.virtual.slidesBefore;l<0&&(l=t.virtual.slides.length+l),l>=t.virtual.slides.length&&(l-=t.virtual.slides.length),r=o(`[data-swiper-slide-index="${l}"]`)}else r=o(`[data-swiper-slide-index="${a}"]`);else r=e[a];if(r){r.classList.add(n.slideActiveClass);let l=_y(r,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=e[0]),l&&l.classList.add(n.slideNextClass);let f=vy(r,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!f===0&&(f=e[e.length-1]),f&&f.classList.add(n.slidePrevClass)}t.emitSlidesClasses()}const bs=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(n());if(s){const a=s.querySelector(`.${t.params.lazyPreloaderClass}`);a&&a.remove()}},ta=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},ba=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 s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=a,r=[o-e];r.push(...Array.from({length:e}).map((l,f)=>o+s+f)),t.slides.forEach((l,f)=>{r.includes(l.column)&&ta(t,f)});return}const i=a+s-1;if(t.params.rewind||t.params.loop)for(let o=a-e;o<=i+e;o+=1){const r=(o%n+n)%n;(ri)&&ta(t,r)}else for(let o=Math.max(a-e,0);o<=Math.min(i+e,n-1);o+=1)o!==a&&(o>i||o=e[i]&&s=e[i]&&s=e[i]&&(a=i);return n.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Hy(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:a,activeIndex:i,realIndex:o,snapIndex:r}=e;let l=t,f;const c=d=>{let m=d-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof l>"u"&&(l=Ry(e)),s.indexOf(n)>=0)f=s.indexOf(n);else{const d=Math.min(a.slidesPerGroupSkip,l);f=d+Math.floor((l-d)/a.slidesPerGroup)}if(f>=s.length&&(f=s.length-1),l===i){f!==r&&(e.snapIndex=f,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=c(l));return}let u;e.virtual&&a.virtual.enabled&&a.loop?u=c(l):e.slides[l]?u=parseInt(e.slides[l].getAttribute("data-swiper-slide-index")||l,10):u=l,Object.assign(e,{previousSnapIndex:r,snapIndex:f,previousRealIndex:o,realIndex:u,previousIndex:i,activeIndex:l}),e.initialized&&ba(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),o!==u&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function zy(t){const e=this,n=e.params,s=t.closest(`.${n.slideClass}, swiper-slide`);let a=!1,i;if(s){for(let o=0;ol?c=l:s&&ti?o="next":a=l.length&&(b=l.length-1);const g=-l[b];if(r.normalizeSlideIndex)for(let _=0;_=E&&k=E&&k=E&&(o=_)}if(i.initialized&&o!==u&&(!i.allowSlideNext&&(d?g>i.translate&&g>i.minTranslate():gi.translate&&g>i.maxTranslate()&&(u||0)!==o))return!1;o!==(c||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(g);let v;if(o>u?v="next":o0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[_?"scrollLeft":"scrollTop"]=k})):m[_?"scrollLeft":"scrollTop"]=k,E&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1})}else{if(!i.support.smoothScroll)return dp({swiper:i,targetPosition:k,side:_?"left":"top"}),!0;m.scrollTo({[_?"left":"top"]:k,behavior:"smooth"})}return!0}return i.setTransition(e),i.setTranslate(g),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,s),i.transitionStart(n,v),e===0?i.transitionEnd(n,v):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(k){!i||i.destroyed||k.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,v))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function Qy(t=0,e=this.params.speed,n=!0,s){typeof t=="string"&&(t=parseInt(t,10));const a=this;let i=t;return a.params.loop&&(a.virtual&&a.params.virtual.enabled?i=i+a.virtual.slidesBefore:i=a.getSlideIndexByData(i)),a.slideTo(i,e,n,s)}function Ky(t=this.params.speed,e=!0,n){const s=this,{enabled:a,params:i,animating:o}=s;if(!a)return s;let r=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(r=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndexd(g));let p=i[h.indexOf(m)-1];if(typeof p>"u"&&a.cssMode){let g;i.forEach((v,_)=>{m>=v&&(g=_)}),typeof g<"u"&&(p=i[g>0?g-1:g])}let b=0;if(typeof p<"u"&&(b=o.indexOf(p),b<0&&(b=s.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(b=b-s.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),a.rewind&&s.isBeginning){const g=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(g,t,e,n)}return s.slideTo(b,t,e,n)}function Jy(t=this.params.speed,e=!0,n){const s=this;return s.slideTo(s.activeIndex,t,e,n)}function e3(t=this.params.speed,e=!0,n,s=.5){const a=this;let i=a.activeIndex;const o=Math.min(a.params.slidesPerGroupSkip,i),r=o+Math.floor((i-o)/a.params.slidesPerGroup),l=a.rtlTranslate?a.translate:-a.translate;if(l>=a.snapGrid[r]){const f=a.snapGrid[r],c=a.snapGrid[r+1];l-f>(c-f)*s&&(i+=a.params.slidesPerGroup)}else{const f=a.snapGrid[r-1],c=a.snapGrid[r];l-f<=(c-f)*s&&(i-=a.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,a.slidesGrid.length-1),a.slideTo(i,t,e,n)}function t3(){const t=this,{params:e,slidesEl:n}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let a=t.clickedIndex,i;const o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;i=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?at.slides.length-t.loopedSlides+s/2?(t.loopFix(),a=t.getSlideIndex(St(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),Tn(()=>{t.slideTo(a)})):t.slideTo(a):a>t.slides.length-s?(t.loopFix(),a=t.getSlideIndex(St(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),Tn(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}const n3={slideTo:$y,slideToLoop:Qy,slideNext:Ky,slidePrev:Zy,slideReset:Jy,slideToClosest:e3,slideToClickedSlide:t3};function s3(t){const e=this,{params:n,slidesEl:s}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;St(s,`.${n.slideClass}, swiper-slide`).forEach((i,o)=>{i.setAttribute("data-swiper-slide-index",o)}),e.loopFix({slideRealIndex:t,direction:n.centeredSlides?void 0:"next"})}function a3({slideRealIndex:t,slideTo:e=!0,direction:n,setTranslate:s,activeSlideIndex:a,byController:i,byMousewheel:o}={}){const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:l,allowSlidePrev:f,allowSlideNext:c,slidesEl:u,params:d}=r;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&d.virtual.enabled){e&&(!d.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):d.centeredSlides&&r.snapIndex"u"?a=r.getSlideIndex(r.slides.filter(S=>S.classList.contains(d.slideActiveClass))[0]):g=a;const v=n==="next"||!n,_=n==="prev"||!n;let k=0,E=0;if(ar.slides.length-h*2){E=Math.max(a-(r.slides.length-h*2),d.slidesPerGroup);for(let S=0;S{r.slides[S].swiperLoopMoveDOM=!0,u.prepend(r.slides[S]),r.slides[S].swiperLoopMoveDOM=!1}),v&&b.forEach(S=>{r.slides[S].swiperLoopMoveDOM=!0,u.append(r.slides[S]),r.slides[S].swiperLoopMoveDOM=!1}),r.recalcSlides(),d.slidesPerView==="auto"&&r.updateSlides(),d.watchSlidesProgress&&r.updateSlidesOffset(),e){if(p.length>0&&_)if(typeof t>"u"){const S=r.slidesGrid[g],T=r.slidesGrid[g+k]-S;o?r.setTranslate(r.translate-T):(r.slideTo(g+k,0,!1,!0),s&&(r.touches[r.isHorizontal()?"startX":"startY"]+=T))}else s&&r.slideToLoop(t,0,!1,!0);else if(b.length>0&&v)if(typeof t>"u"){const S=r.slidesGrid[g],T=r.slidesGrid[g-E]-S;o?r.setTranslate(r.translate-T):(r.slideTo(g-E,0,!1,!0),s&&(r.touches[r.isHorizontal()?"startX":"startY"]+=T))}else r.slideToLoop(t,0,!1,!0)}if(r.allowSlidePrev=f,r.allowSlideNext=c,r.controller&&r.controller.control&&!i){const S={slideRealIndex:t,slideTo:!1,direction:n,setTranslate:s,activeSlideIndex:a,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(I=>{!I.destroyed&&I.params.loop&&I.loopFix(S)}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix(S)}r.emit("loopFix")}function i3(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(a=>{const i=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;s[i]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),s.forEach(a=>{n.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}const r3={loopCreate:s3,loopFix:a3,loopDestroy:i3};function l3(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 o3(){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}))}const f3={setGrabCursor:l3,unsetGrabCursor:o3};function c3(t,e=this){function n(s){if(!s||s===Le()||s===Se())return null;s.assignedSlot&&(s=s.assignedSlot);const a=s.closest(t);return!a&&!s.getRootNode?null:a||n(s.getRootNode().host)}return n(e)}function u3(t){const e=this,n=Le(),s=Se(),a=e.touchEventsData;a.evCache.push(t);const{params:i,touches:o,enabled:r}=e;if(!r||!i.simulateTouch&&t.pointerType==="mouse"||e.animating&&i.preventInteractionOnTransition)return;!e.animating&&i.cssMode&&i.loop&&e.loopFix();let l=t;l.originalEvent&&(l=l.originalEvent);let f=l.target;if(i.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(f)||"which"in l&&l.which===3||"button"in l&&l.button>0||a.isTouched&&a.isMoved)return;const c=!!i.noSwipingClass&&i.noSwipingClass!=="",u=t.composedPath?t.composedPath():t.path;c&&l.target&&l.target.shadowRoot&&u&&(f=u[0]);const d=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,m=!!(l.target&&l.target.shadowRoot);if(i.noSwiping&&(m?c3(d,f):f.closest(d))){e.allowClick=!0;return}if(i.swipeHandler&&!f.closest(i.swipeHandler))return;o.currentX=l.pageX,o.currentY=l.pageY;const h=o.currentX,p=o.currentY,b=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,g=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(b&&(h<=g||h>=s.innerWidth-g))if(b==="prevent")t.preventDefault();else return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=h,o.startY=p,a.touchStartTime=Wt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1);let v=!0;f.matches(a.focusableElements)&&(v=!1,f.nodeName==="SELECT"&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==f&&n.activeElement.blur();const _=v&&e.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||_)&&!f.isContentEditable&&l.preventDefault(),i.freeMode&&i.freeMode.enabled&&e.freeMode&&e.animating&&!i.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function d3(t){const e=Le(),n=this,s=n.touchEventsData,{params:a,touches:i,rtlTranslate:o,enabled:r}=n;if(!r||!a.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&n.emit("touchMoveOpposite",l);return}const f=s.evCache.findIndex(S=>S.pointerId===l.pointerId);f>=0&&(s.evCache[f]=l);const c=s.evCache.length>1?s.evCache[0]:l,u=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){i.startX=u,i.startY=d;return}if(!n.allowTouchMove){l.target.matches(s.focusableElements)||(n.allowClick=!1),s.isTouched&&(Object.assign(i,{startX:u,startY:d,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:u,currentY:d}),s.touchStartTime=Wt());return}if(a.touchReleaseOnEdges&&!a.loop){if(n.isVertical()){if(di.startY&&n.translate>=n.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(ui.startX&&n.translate>=n.minTranslate())return}if(e.activeElement&&l.target===e.activeElement&&l.target.matches(s.focusableElements)){s.isMoved=!0,n.allowClick=!1;return}if(s.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;i.currentX=u,i.currentY=d;const m=i.currentX-i.startX,h=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(m**2+h**2)"u"){let S;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?s.isScrolling=!1:m*m+h*h>=25&&(S=Math.atan2(Math.abs(h),Math.abs(m))*180/Math.PI,s.isScrolling=n.isHorizontal()?S>a.touchAngle:90-S>a.touchAngle)}if(s.isScrolling&&n.emit("touchMoveOpposite",l),typeof s.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(s.startMoving=!0),s.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;n.allowClick=!1,!a.cssMode&&l.cancelable&&l.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&l.stopPropagation();let p=n.isHorizontal()?m:h,b=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;a.oneWayMovement&&(p=Math.abs(p)*(o?1:-1),b=Math.abs(b)*(o?1:-1)),i.diff=p,p*=a.touchRatio,o&&(p=-p,b=-b);const g=n.touchesDirection;n.swipeDirection=p>0?"prev":"next",n.touchesDirection=b>0?"prev":"next";const v=n.params.loop&&!a.cssMode;if(!s.isMoved){if(v&&n.loopFix({direction:n.swipeDirection}),s.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const S=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(S)}s.allowMomentumBounce=!1,a.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let _;s.isMoved&&g!==n.touchesDirection&&v&&Math.abs(p)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),_=!0),n.emit("sliderMove",l),s.isMoved=!0,s.currentTranslate=p+s.startTranslate;let k=!0,E=a.resistanceRatio;if(a.touchReleaseOnEdges&&(E=0),p>0?(v&&!_&&s.currentTranslate>(a.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>n.minTranslate()&&(k=!1,a.resistance&&(s.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+s.startTranslate+p)**E))):p<0&&(v&&!_&&s.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(a.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(s.currentTranslate=s.startTranslate),a.threshold>0)if(Math.abs(p)>a.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,s.currentTranslate=s.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{s.currentTranslate=s.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(s.currentTranslate),n.setTranslate(s.currentTranslate))}function p3(t){const e=this,n=e.touchEventsData,s=n.evCache.findIndex(_=>_.pointerId===t.pointerId);if(s>=0&&n.evCache.splice(s,1),["pointercancel","pointerout","pointerleave"].includes(t.type)&&!(t.type==="pointercancel"&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:a,touches:i,rtlTranslate:o,slidesGrid:r,enabled:l}=e;if(!l||!a.simulateTouch&&t.pointerType==="mouse")return;let f=t;if(f.originalEvent&&(f=f.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",f),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const c=Wt(),u=c-n.touchStartTime;if(e.allowClick){const _=f.path||f.composedPath&&f.composedPath();e.updateClickedSlide(_&&_[0]||f.target),e.emit("tap click",f),u<300&&c-n.lastClickTime<300&&e.emit("doubleTap doubleClick",f)}if(n.lastClickTime=Wt(),Tn(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||i.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 d;if(a.followFinger?d=o?e.translate:-e.translate:d=-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:d});return}let m=0,h=e.slidesSizesGrid[0];for(let _=0;_=r[_]&&d=r[_]&&(m=_,h=r[r.length-1]-r[r.length-2])}let p=null,b=null;a.rewind&&(e.isBeginning?b=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const g=(d-r[m])/h,v=ma.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(g>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?p:m+v):e.slideTo(m)),e.swipeDirection==="prev"&&(g>1-a.longSwipesRatio?e.slideTo(m+v):b!==null&&g<0&&Math.abs(g)>a.longSwipesRatio?e.slideTo(b):e.slideTo(m))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(f.target===e.navigation.nextEl||f.target===e.navigation.prevEl)?f.target===e.navigation.nextEl?e.slideTo(m+v):e.slideTo(m):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:m+v),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:m))}}function Ed(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:a,snapGrid:i}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const r=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!r?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?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=a,t.allowSlideNext=s,t.params.watchOverflow&&i!==t.snapGrid&&t.checkOverflow()}function m3(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function h3(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:s}=t;if(!s)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 a;const i=t.maxTranslate()-t.minTranslate();i===0?a=0:a=(t.translate-t.minTranslate())/i,a!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function g3(t){const e=this;bs(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let Cd=!1;function b3(){}const hp=(t,e)=>{const n=Le(),{params:s,el:a,wrapperEl:i,device:o}=t,r=!!s.nested,l=e==="on"?"addEventListener":"removeEventListener",f=e;a[l]("pointerdown",t.onTouchStart,{passive:!1}),n[l]("pointermove",t.onTouchMove,{passive:!1,capture:r}),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}),(s.preventClicks||s.preventClicksPropagation)&&a[l]("click",t.onClick,!0),s.cssMode&&i[l]("scroll",t.onScroll),s.updateOnWindowResize?t[f](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ed,!0):t[f]("observerUpdate",Ed,!0),a[l]("load",t.onLoad,{capture:!0})};function v3(){const t=this,e=Le(),{params:n}=t;t.onTouchStart=u3.bind(t),t.onTouchMove=d3.bind(t),t.onTouchEnd=p3.bind(t),n.cssMode&&(t.onScroll=h3.bind(t)),t.onClick=m3.bind(t),t.onLoad=g3.bind(t),Cd||(e.addEventListener("touchstart",b3),Cd=!0),hp(t,"on")}function _3(){hp(this,"off")}const k3={attachEvents:v3,detachEvents:_3},yd=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function E3(){const t=this,{realIndex:e,initialized:n,params:s,el:a}=t,i=s.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const o=t.getBreakpoint(i,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const l=(o in i?i[o]:void 0)||t.originalParams,f=yd(t,s),c=yd(t,l),u=s.enabled;f&&!c?(a.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!f&&c&&(a.classList.add(`${s.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&s.grid.fill==="column")&&a.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(p=>{if(typeof l[p]>"u")return;const b=s[p]&&s[p].enabled,g=l[p]&&l[p].enabled;b&&!g&&t[p].disable(),!b&&g&&t[p].enable()});const d=l.direction&&l.direction!==s.direction,m=s.loop&&(l.slidesPerView!==s.slidesPerView||d);d&&n&&t.changeDirection(),Vt(t.params,l);const h=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),u&&!h?t.disable():!u&&h&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",l),m&&n&&(t.loopDestroy(),t.loopCreate(e),t.updateSlides()),t.emit("breakpoint",l)}function C3(t,e="window",n){if(!t||e==="container"&&!n)return;let s=!1;const a=Se(),i=e==="window"?a.innerHeight:n.clientHeight,o=Object.keys(t).map(r=>{if(typeof r=="string"&&r.indexOf("@")===0){const l=parseFloat(r.substr(1));return{value:i*l,point:r}}return{value:r,point:r}});o.sort((r,l)=>parseInt(r.value,10)-parseInt(l.value,10));for(let r=0;r{typeof s=="object"?Object.keys(s).forEach(a=>{s[a]&&n.push(e+a)}):typeof s=="string"&&n.push(e+s)}),n}function S3(){const t=this,{classNames:e,params:n,rtl:s,el:a,device:i}=t,o=w3(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:s},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...o),a.classList.add(...e),t.emitContainerClasses()}function T3(){const t=this,{el:e,classNames:n}=t;e.classList.remove(...n),t.emitContainerClasses()}const M3={addClasses:S3,removeClasses:T3};function P3(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:s}=n;if(s){const a=t.slides.length-1,i=t.slidesGrid[a]+t.slidesSizesGrid[a]+s*2;t.isLocked=t.size>i}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")}const I3={checkOverflow:P3},va={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 A3(t,e){return function(s={}){const a=Object.keys(s)[0],i=s[a];if(typeof i!="object"||i===null){Vt(e,s);return}if(["navigation","pagination","scrollbar"].indexOf(a)>=0&&t[a]===!0&&(t[a]={auto:!0}),!(a in t&&"enabled"in i)){Vt(e,s);return}t[a]===!0&&(t[a]={enabled:!0}),typeof t[a]=="object"&&!("enabled"in t[a])&&(t[a].enabled=!0),t[a]||(t[a]={enabled:!1}),Vt(e,s)}}const na={eventsEmitter:My,update:Fy,translate:jy,transition:xy,slide:n3,loop:r3,grabCursor:f3,events:k3,breakpoints:y3,checkOverflow:I3,classes:M3},sa={};let Oa=class en{constructor(...e){let n,s;e.length===1&&e[0].constructor&&Object.prototype.toString.call(e[0]).slice(8,-1)==="Object"?s=e[0]:[n,s]=e,s||(s={}),s=Vt({},s),n&&!s.el&&(s.el=n);const a=Le();if(s.el&&typeof s.el=="string"&&a.querySelectorAll(s.el).length>1){const l=[];return a.querySelectorAll(s.el).forEach(f=>{const c=Vt({},s,{el:f});l.push(new en(c))}),l}const i=this;i.__swiper__=!0,i.support=pp(),i.device=Cy({userAgent:s.userAgent}),i.browser=wy(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],s.modules&&Array.isArray(s.modules)&&i.modules.push(...s.modules);const o={};i.modules.forEach(l=>{l({params:s,swiper:i,extendParams:A3(s,o),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const r=Vt({},va,o);return i.params=Vt({},r,sa,s),i.originalParams=Vt({},i.params),i.passedParams=Vt({},s),i.params&&i.params.on&&Object.keys(i.params.on).forEach(l=>{i.on(l,i.params.on[l])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.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:i.params.allowSlideNext,allowSlidePrev:i.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:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getSlideIndex(e){const{slidesEl:n,params:s}=this,a=St(n,`.${s.slideClass}, swiper-slide`),i=ss(a[0]);return ss(e)-i}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:s}=e;e.slides=St(n,`.${s.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 s=this;e=Math.min(Math.max(e,0),1);const a=s.minTranslate(),o=(s.maxTranslate()-a)*e+a;s.translateTo(o,typeof n>"u"?0:n),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return n.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.forEach(s=>{const a=e.getSlideClasses(s);n.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e="current",n=!1){const s=this,{params:a,slides:i,slidesGrid:o,slidesSizesGrid:r,size:l,activeIndex:f}=s;let c=1;if(a.centeredSlides){let u=i[f]?i[f].swiperSlideSize:0,d;for(let m=f+1;ml&&(d=!0));for(let m=f-1;m>=0;m-=1)i[m]&&!d&&(u+=i[m].swiperSlideSize,c+=1,u>l&&(d=!0))}else if(e==="current")for(let u=f+1;u=0;u-=1)o[f]-o[u]{o.complete&&bs(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const o=e.rtlTranslate?e.translate*-1:e.translate,r=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)a(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const o=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(o.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||a()}s.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n=!0){const s=this,a=s.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${a}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(i=>{e==="vertical"?i.style.width="":i.style.height=""}),s.emit("changeDirection"),n&&s.update()),s}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 s=e||n.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=n,s.shadowEl&&(n.isElement=!0);const a=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(a()):St(s,a())[0])();return!o&&n.params.createElements&&(o=Xt("div",n.params.wrapperClass),s.append(o),St(s,`.${n.params.slideClass}`).forEach(r=>{o.append(r)})),Object.assign(n,{el:s,wrapperEl:o,slidesEl:n.isElement?s:o,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||gn(s,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||gn(s,"direction")==="rtl"),wrongRTL:gn(o,"display")==="-webkit-box"}),!0}init(e){const n=this;return n.initialized||n.mount(e)===!1||(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(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete?bs(n,a):a.addEventListener("load",i=>{bs(n,i.target)})}),ba(n),n.initialized=!0,ba(n),n.emit("init"),n.emit("afterInit")),n}destroy(e=!0,n=!0){const s=this,{params:a,el:i,wrapperEl:o,slides:r}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),n&&(s.removeClasses(),i.removeAttribute("style"),o.removeAttribute("style"),r&&r.length&&r.forEach(l=>{l.classList.remove(a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),e!==!1&&(s.el.swiper=null,hy(s)),s.destroyed=!0),null}static extendDefaults(e){Vt(sa,e)}static get extendedDefaults(){return sa}static get defaults(){return va}static installModule(e){en.prototype.__modules__||(en.prototype.__modules__=[]);const n=en.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>en.installModule(n)),en):(en.installModule(e),en)}};Object.keys(na).forEach(t=>{Object.keys(na[t]).forEach(e=>{Oa.prototype[e]=na[t][e]})});Oa.use([Sy,Ty]);const Ss=Oa;function O3({swiper:t,extendParams:e,on:n,emit:s}){e({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let a;const i=Le();t.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=i.createElement("div");function r(m,h){const p=t.params.virtual;if(p.cache&&t.virtual.cache[h])return t.virtual.cache[h];let b;return p.renderSlide?(b=p.renderSlide.call(t,m,h),typeof b=="string"&&(o.innerHTML=b,b=o.children[0])):t.isElement?b=Xt("swiper-slide"):b=Xt("div",t.params.slideClass),b.setAttribute("data-swiper-slide-index",h),p.renderSlide||(b.innerHTML=m),p.cache&&(t.virtual.cache[h]=b),b}function l(m){const{slidesPerView:h,slidesPerGroup:p,centeredSlides:b,loop:g}=t.params,{addSlidesBefore:v,addSlidesAfter:_}=t.params.virtual,{from:k,to:E,slides:S,slidesGrid:I,offset:T}=t.virtual;t.params.cssMode||t.updateActiveIndex();const A=t.activeIndex||0;let y;t.rtlTranslate?y="right":y=t.isHorizontal()?"left":"top";let w,D;b?(w=Math.floor(h/2)+p+_,D=Math.floor(h/2)+p+v):(w=h+(p-1)+_,D=(g?h:p)+v);let O=A-D,L=A+w;g||(O=Math.max(O,0),L=Math.min(L,S.length-1));let j=(t.slidesGrid[O]||0)-(t.slidesGrid[0]||0);g&&A>=D?(O-=D,b||(j+=t.slidesGrid[0])):g&&A{G.style[y]=`${j-Math.abs(t.cssOverflowAdjustment())}px`}),t.updateProgress(),s("virtualUpdate");return}if(t.params.virtual.renderExternal){t.params.virtual.renderExternal.call(t,{offset:j,from:O,to:L,slides:function(){const ce=[];for(let ye=O;ye<=L;ye+=1)ce.push(S[ye]);return ce}()}),t.params.virtual.renderExternalUpdate?W():s("virtualUpdate");return}const Y=[],B=[],q=G=>{let ce=G;return G<0?ce=S.length+G:ce>=S.length&&(ce=ce-S.length),ce};if(m)t.slidesEl.querySelectorAll(`.${t.params.slideClass}, swiper-slide`).forEach(G=>{G.remove()});else for(let G=k;G<=E;G+=1)if(GL){const ce=q(G);t.slidesEl.querySelectorAll(`.${t.params.slideClass}[data-swiper-slide-index="${ce}"], swiper-slide[data-swiper-slide-index="${ce}"]`).forEach(ye=>{ye.remove()})}const X=g?-S.length:0,H=g?S.length*2:S.length;for(let G=X;G=O&&G<=L){const ce=q(G);typeof E>"u"||m?B.push(ce):(G>E&&B.push(ce),G{t.slidesEl.append(r(S[G],G))}),g)for(let G=Y.length-1;G>=0;G-=1){const ce=Y[G];t.slidesEl.prepend(r(S[ce],ce))}else Y.sort((G,ce)=>ce-G),Y.forEach(G=>{t.slidesEl.prepend(r(S[G],G))});St(t.slidesEl,".swiper-slide, swiper-slide").forEach(G=>{G.style[y]=`${j-Math.abs(t.cssOverflowAdjustment())}px`}),W()}function f(m){if(typeof m=="object"&&"length"in m)for(let h=0;h{const k=g[_],E=k.getAttribute("data-swiper-slide-index");E&&k.setAttribute("data-swiper-slide-index",parseInt(E,10)+b),v[parseInt(_,10)+b]=k}),t.virtual.cache=v}l(!0),t.slideTo(p,0)}function u(m){if(typeof m>"u"||m===null)return;let h=t.activeIndex;if(Array.isArray(m))for(let p=m.length-1;p>=0;p-=1)t.virtual.slides.splice(m[p],1),t.params.virtual.cache&&delete t.virtual.cache[m[p]],m[p]{if(!t.params.virtual.enabled)return;let m;if(typeof t.passedParams.virtual.slides>"u"){const h=[...t.slidesEl.children].filter(p=>p.matches(`.${t.params.slideClass}, swiper-slide`));h&&h.length&&(t.virtual.slides=[...h],m=!0,h.forEach((p,b)=>{p.setAttribute("data-swiper-slide-index",b),t.virtual.cache[b]=p,p.remove()}))}m||(t.virtual.slides=t.params.virtual.slides),t.classNames.push(`${t.params.containerModifierClass}virtual`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0,t.params.initialSlide||l()}),n("setTranslate",()=>{t.params.virtual.enabled&&(t.params.cssMode&&!t._immediateVirtual?(clearTimeout(a),a=setTimeout(()=>{l()},100)):l())}),n("init update resize",()=>{t.params.virtual.enabled&&t.params.cssMode&&Qn(t.wrapperEl,"--swiper-virtual-size",`${t.virtualSize}px`)}),Object.assign(t.virtual,{appendSlide:f,prependSlide:c,removeSlide:u,removeAllSlides:d,update:l})}function B3({swiper:t,extendParams:e,on:n,emit:s}){const a=Le(),i=Se();t.keyboard={enabled:!1},e({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function o(f){if(!t.enabled)return;const{rtlTranslate:c}=t;let u=f;u.originalEvent&&(u=u.originalEvent);const d=u.keyCode||u.charCode,m=t.params.keyboard.pageUpDown,h=m&&d===33,p=m&&d===34,b=d===37,g=d===39,v=d===38,_=d===40;if(!t.allowSlideNext&&(t.isHorizontal()&&g||t.isVertical()&&_||p)||!t.allowSlidePrev&&(t.isHorizontal()&&b||t.isVertical()&&v||h))return!1;if(!(u.shiftKey||u.altKey||u.ctrlKey||u.metaKey)&&!(a.activeElement&&a.activeElement.nodeName&&(a.activeElement.nodeName.toLowerCase()==="input"||a.activeElement.nodeName.toLowerCase()==="textarea"))){if(t.params.keyboard.onlyInViewport&&(h||p||b||g||v||_)){let k=!1;if(Sn(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&Sn(t.el,`.${t.params.slideActiveClass}`).length===0)return;const E=t.el,S=E.clientWidth,I=E.clientHeight,T=i.innerWidth,A=i.innerHeight,y=ws(E);c&&(y.left-=E.scrollLeft);const w=[[y.left,y.top],[y.left+S,y.top],[y.left,y.top+I],[y.left+S,y.top+I]];for(let D=0;D=0&&O[0]<=T&&O[1]>=0&&O[1]<=A){if(O[0]===0&&O[1]===0)continue;k=!0}}if(!k)return}t.isHorizontal()?((h||p||b||g)&&(u.preventDefault?u.preventDefault():u.returnValue=!1),((p||g)&&!c||(h||b)&&c)&&t.slideNext(),((h||b)&&!c||(p||g)&&c)&&t.slidePrev()):((h||p||v||_)&&(u.preventDefault?u.preventDefault():u.returnValue=!1),(p||_)&&t.slideNext(),(h||v)&&t.slidePrev()),s("keyPress",d)}}function r(){t.keyboard.enabled||(a.addEventListener("keydown",o),t.keyboard.enabled=!0)}function l(){t.keyboard.enabled&&(a.removeEventListener("keydown",o),t.keyboard.enabled=!1)}n("init",()=>{t.params.keyboard.enabled&&r()}),n("destroy",()=>{t.keyboard.enabled&&l()}),Object.assign(t.keyboard,{enable:r,disable:l})}function L3({swiper:t,extendParams:e,on:n,emit:s}){const a=Se();e({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let i,o=Wt(),r;const l=[];function f(v){let S=0,I=0,T=0,A=0;return"detail"in v&&(I=v.detail),"wheelDelta"in v&&(I=-v.wheelDelta/120),"wheelDeltaY"in v&&(I=-v.wheelDeltaY/120),"wheelDeltaX"in v&&(S=-v.wheelDeltaX/120),"axis"in v&&v.axis===v.HORIZONTAL_AXIS&&(S=I,I=0),T=S*10,A=I*10,"deltaY"in v&&(A=v.deltaY),"deltaX"in v&&(T=v.deltaX),v.shiftKey&&!T&&(T=A,A=0),(T||A)&&v.deltaMode&&(v.deltaMode===1?(T*=40,A*=40):(T*=800,A*=800)),T&&!S&&(S=T<1?-1:1),A&&!I&&(I=A<1?-1:1),{spinX:S,spinY:I,pixelX:T,pixelY:A}}function c(){t.enabled&&(t.mouseEntered=!0)}function u(){t.enabled&&(t.mouseEntered=!1)}function d(v){return t.params.mousewheel.thresholdDelta&&v.delta=6&&Wt()-o<60?!0:(v.direction<0?(!t.isEnd||t.params.loop)&&!t.animating&&(t.slideNext(),s("scroll",v.raw)):(!t.isBeginning||t.params.loop)&&!t.animating&&(t.slidePrev(),s("scroll",v.raw)),o=new a.Date().getTime(),!1)}function m(v){const _=t.params.mousewheel;if(v.direction<0){if(t.isEnd&&!t.params.loop&&_.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&_.releaseOnEdges)return!0;return!1}function h(v){let _=v,k=!0;if(!t.enabled||v.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const E=t.params.mousewheel;t.params.cssMode&&_.preventDefault();let S=t.el;t.params.mousewheel.eventsTarget!=="container"&&(S=document.querySelector(t.params.mousewheel.eventsTarget));const I=S&&S.contains(_.target);if(!t.mouseEntered&&!I&&!E.releaseOnEdges)return!0;_.originalEvent&&(_=_.originalEvent);let T=0;const A=t.rtlTranslate?-1:1,y=f(_);if(E.forceToAxis)if(t.isHorizontal())if(Math.abs(y.pixelX)>Math.abs(y.pixelY))T=-y.pixelX*A;else return!0;else if(Math.abs(y.pixelY)>Math.abs(y.pixelX))T=-y.pixelY;else return!0;else T=Math.abs(y.pixelX)>Math.abs(y.pixelY)?-y.pixelX*A:-y.pixelY;if(T===0)return!0;E.invert&&(T=-T);let w=t.getTranslate()+T*E.sensitivity;if(w>=t.minTranslate()&&(w=t.minTranslate()),w<=t.maxTranslate()&&(w=t.maxTranslate()),k=t.params.loop?!0:!(w===t.minTranslate()||w===t.maxTranslate()),k&&t.params.nested&&_.stopPropagation(),!t.params.freeMode||!t.params.freeMode.enabled){const D={time:Wt(),delta:Math.abs(T),direction:Math.sign(T),raw:v};l.length>=2&&l.shift();const O=l.length?l[l.length-1]:void 0;if(l.push(D),O?(D.direction!==O.direction||D.delta>O.delta||D.time>O.time+150)&&d(D):d(D),m(D))return!0}else{const D={time:Wt(),delta:Math.abs(T),direction:Math.sign(T)},O=r&&D.time=t.minTranslate()&&(L=t.minTranslate()),L<=t.maxTranslate()&&(L=t.maxTranslate()),t.setTransition(0),t.setTranslate(L),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!j&&t.isBeginning||!W&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:D.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(i),i=void 0,l.length>=15&&l.shift();const Y=l.length?l[l.length-1]:void 0,B=l[0];if(l.push(D),Y&&(D.delta>Y.delta||D.direction!==Y.direction))l.splice(0);else if(l.length>=15&&D.time-B.time<500&&B.delta-D.delta>=1&&D.delta<=6){const q=T>0?.8:.2;r=D,l.splice(0),i=Tn(()=>{t.slideToClosest(t.params.speed,!0,void 0,q)},0)}i||(i=Tn(()=>{r=D,l.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)},500))}if(O||s("scroll",_),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),L===t.minTranslate()||L===t.maxTranslate())return!0}}return _.preventDefault?_.preventDefault():_.returnValue=!1,!1}function p(v){let _=t.el;t.params.mousewheel.eventsTarget!=="container"&&(_=document.querySelector(t.params.mousewheel.eventsTarget)),_[v]("mouseenter",c),_[v]("mouseleave",u),_[v]("wheel",h)}function b(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",h),!0):t.mousewheel.enabled?!1:(p("addEventListener"),t.mousewheel.enabled=!0,!0)}function g(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,h),!0):t.mousewheel.enabled?(p("removeEventListener"),t.mousewheel.enabled=!1,!0):!1}n("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&g(),t.params.mousewheel.enabled&&b()}),n("destroy",()=>{t.params.cssMode&&b(),t.mousewheel.enabled&&g()}),Object.assign(t.mousewheel,{enable:b,disable:g})}function Ba(t,e,n,s){return t.params.createElements&&Object.keys(s).forEach(a=>{if(!n[a]&&n.auto===!0){let i=St(t.el,`.${s[a]}`)[0];i||(i=Xt("div",s[a]),i.className=s[a],t.el.append(i)),n[a]=i,e[a]=i}}),n}function D3({swiper:t,extendParams:e,on:n,emit:s}){e({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};const a=h=>(Array.isArray(h)||(h=[h].filter(p=>!!p)),h);function i(h){let p;return h&&typeof h=="string"&&t.isElement&&(p=t.el.shadowRoot.querySelector(h),p)?p:(h&&(typeof h=="string"&&(p=[...document.querySelectorAll(h)]),t.params.uniqueNavElements&&typeof h=="string"&&p.length>1&&t.el.querySelectorAll(h).length===1&&(p=t.el.querySelector(h))),h&&!p?h:p)}function o(h,p){const b=t.params.navigation;h=a(h),h.forEach(g=>{g&&(g.classList[p?"add":"remove"](...b.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=p),t.params.watchOverflow&&t.enabled&&g.classList[t.isLocked?"add":"remove"](b.lockClass))})}function r(){const{nextEl:h,prevEl:p}=t.navigation;if(t.params.loop){o(p,!1),o(h,!1);return}o(p,t.isBeginning&&!t.params.rewind),o(h,t.isEnd&&!t.params.rewind)}function l(h){h.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),s("navigationPrev"))}function f(h){h.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),s("navigationNext"))}function c(){const h=t.params.navigation;if(t.params.navigation=Ba(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(h.nextEl||h.prevEl))return;let p=i(h.nextEl),b=i(h.prevEl);Object.assign(t.navigation,{nextEl:p,prevEl:b}),p=a(p),b=a(b);const g=(v,_)=>{v&&v.addEventListener("click",_==="next"?f:l),!t.enabled&&v&&v.classList.add(...h.lockClass.split(" "))};p.forEach(v=>g(v,"next")),b.forEach(v=>g(v,"prev"))}function u(){let{nextEl:h,prevEl:p}=t.navigation;h=a(h),p=a(p);const b=(g,v)=>{g.removeEventListener("click",v==="next"?f:l),g.classList.remove(...t.params.navigation.disabledClass.split(" "))};h.forEach(g=>b(g,"next")),p.forEach(g=>b(g,"prev"))}n("init",()=>{t.params.navigation.enabled===!1?m():(c(),r())}),n("toEdge fromEdge lock unlock",()=>{r()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:h,prevEl:p}=t.navigation;h=a(h),p=a(p),[...h,...p].filter(b=>!!b).forEach(b=>b.classList[t.enabled?"remove":"add"](t.params.navigation.lockClass))}),n("click",(h,p)=>{let{nextEl:b,prevEl:g}=t.navigation;b=a(b),g=a(g);const v=p.target;if(t.params.navigation.hideOnClick&&!g.includes(v)&&!b.includes(v)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===v||t.pagination.el.contains(v)))return;let _;b.length?_=b[0].classList.contains(t.params.navigation.hiddenClass):g.length&&(_=g[0].classList.contains(t.params.navigation.hiddenClass)),s(_===!0?"navigationShow":"navigationHide"),[...b,...g].filter(k=>!!k).forEach(k=>k.classList.toggle(t.params.navigation.hiddenClass))}});const d=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),r()},m=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:d,disable:m,update:r,init:c,destroy:u})}function mn(t=""){return`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function R3({swiper:t,extendParams:e,on:n,emit:s}){const a="swiper-pagination";e({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:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),t.pagination={el:null,bullets:[]};let i,o=0;const r=g=>(Array.isArray(g)||(g=[g].filter(v=>!!v)),g);function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function f(g,v){const{bulletActiveClass:_}=t.params.pagination;g&&(g=g[`${v==="prev"?"previous":"next"}ElementSibling`],g&&(g.classList.add(`${_}-${v}`),g=g[`${v==="prev"?"previous":"next"}ElementSibling`],g&&g.classList.add(`${_}-${v}-${v}`)))}function c(g){const v=g.target.closest(mn(t.params.pagination.bulletClass));if(!v)return;g.preventDefault();const _=ss(v)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===_)return;const k=t.getSlideIndexByData(_),E=t.getSlideIndexByData(t.realIndex);k>t.slides.length-t.loopedSlides&&t.loopFix({direction:k>E?"next":"prev",activeSlideIndex:k,slideTo:!1}),t.slideToLoop(_)}else t.slideTo(_)}function u(){const g=t.rtl,v=t.params.pagination;if(l())return;let _=t.pagination.el;_=r(_);let k,E;const S=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,I=t.params.loop?Math.ceil(S/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(E=t.previousRealIndex||0,k=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(k=t.snapIndex,E=t.previousSnapIndex):(E=t.previousIndex||0,k=t.activeIndex||0),v.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const T=t.pagination.bullets;let A,y,w;if(v.dynamicBullets&&(i=ga(T[0],t.isHorizontal()?"width":"height",!0),_.forEach(D=>{D.style[t.isHorizontal()?"width":"height"]=`${i*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&E!==void 0&&(o+=k-(E||0),o>v.dynamicMainBullets-1?o=v.dynamicMainBullets-1:o<0&&(o=0)),A=Math.max(k-o,0),y=A+(Math.min(T.length,v.dynamicMainBullets)-1),w=(y+A)/2),T.forEach(D=>{const O=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(L=>`${v.bulletActiveClass}${L}`)].map(L=>typeof L=="string"&&L.includes(" ")?L.split(" "):L).flat();D.classList.remove(...O)}),_.length>1)T.forEach(D=>{const O=ss(D);O===k?D.classList.add(...v.bulletActiveClass.split(" ")):t.isElement&&D.setAttribute("part","bullet"),v.dynamicBullets&&(O>=A&&O<=y&&D.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),O===A&&f(D,"prev"),O===y&&f(D,"next"))});else{const D=T[k];if(D&&D.classList.add(...v.bulletActiveClass.split(" ")),t.isElement&&T.forEach((O,L)=>{O.setAttribute("part",L===k?"bullet-active":"bullet")}),v.dynamicBullets){const O=T[A],L=T[y];for(let j=A;j<=y;j+=1)T[j]&&T[j].classList.add(...`${v.bulletActiveClass}-main`.split(" "));f(O,"prev"),f(L,"next")}}if(v.dynamicBullets){const D=Math.min(T.length,v.dynamicMainBullets+4),O=(i*D-i)/2-w*i,L=g?"right":"left";T.forEach(j=>{j.style[t.isHorizontal()?L:"top"]=`${O}px`})}}_.forEach((T,A)=>{if(v.type==="fraction"&&(T.querySelectorAll(mn(v.currentClass)).forEach(y=>{y.textContent=v.formatFractionCurrent(k+1)}),T.querySelectorAll(mn(v.totalClass)).forEach(y=>{y.textContent=v.formatFractionTotal(I)})),v.type==="progressbar"){let y;v.progressbarOpposite?y=t.isHorizontal()?"vertical":"horizontal":y=t.isHorizontal()?"horizontal":"vertical";const w=(k+1)/I;let D=1,O=1;y==="horizontal"?D=w:O=w,T.querySelectorAll(mn(v.progressbarFillClass)).forEach(L=>{L.style.transform=`translate3d(0,0,0) scaleX(${D}) scaleY(${O})`,L.style.transitionDuration=`${t.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(T.innerHTML=v.renderCustom(t,k+1,I),A===0&&s("paginationRender",T)):(A===0&&s("paginationRender",T),s("paginationUpdate",T)),t.params.watchOverflow&&t.enabled&&T.classList[t.isLocked?"add":"remove"](v.lockClass)})}function d(){const g=t.params.pagination;if(l())return;const v=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;let _=t.pagination.el;_=r(_);let k="";if(g.type==="bullets"){let E=t.params.loop?Math.ceil(v/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&E>v&&(E=v);for(let S=0;S`}g.type==="fraction"&&(g.renderFraction?k=g.renderFraction.call(t,g.currentClass,g.totalClass):k=` / `),g.type==="progressbar"&&(g.renderProgressbar?k=g.renderProgressbar.call(t,g.progressbarFillClass):k=``),t.pagination.bullets=[],_.forEach(E=>{g.type!=="custom"&&(E.innerHTML=k||""),g.type==="bullets"&&t.pagination.bullets.push(...E.querySelectorAll(mn(g.bulletClass)))}),g.type!=="custom"&&s("paginationRender",_[0])}function m(){t.params.pagination=Ba(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const g=t.params.pagination;if(!g.el)return;let v;typeof g.el=="string"&&t.isElement&&(v=t.el.shadowRoot.querySelector(g.el)),!v&&typeof g.el=="string"&&(v=[...document.querySelectorAll(g.el)]),v||(v=g.el),!(!v||v.length===0)&&(t.params.uniqueNavElements&&typeof g.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...t.el.querySelectorAll(g.el)],v.length>1&&(v=v.filter(_=>Sn(_,".swiper")[0]===t.el)[0])),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(t.pagination,{el:v}),v=r(v),v.forEach(_=>{g.type==="bullets"&&g.clickable&&_.classList.add(g.clickableClass),_.classList.add(g.modifierClass+g.type),_.classList.add(t.isHorizontal()?g.horizontalClass:g.verticalClass),g.type==="bullets"&&g.dynamicBullets&&(_.classList.add(`${g.modifierClass}${g.type}-dynamic`),o=0,g.dynamicMainBullets<1&&(g.dynamicMainBullets=1)),g.type==="progressbar"&&g.progressbarOpposite&&_.classList.add(g.progressbarOppositeClass),g.clickable&&_.addEventListener("click",c),t.enabled||_.classList.add(g.lockClass)}))}function h(){const g=t.params.pagination;if(l())return;let v=t.pagination.el;v&&(v=r(v),v.forEach(_=>{_.classList.remove(g.hiddenClass),_.classList.remove(g.modifierClass+g.type),_.classList.remove(t.isHorizontal()?g.horizontalClass:g.verticalClass),g.clickable&&_.removeEventListener("click",c)})),t.pagination.bullets&&t.pagination.bullets.forEach(_=>_.classList.remove(...g.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const g=t.params.pagination;let{el:v}=t.pagination;v=r(v),v.forEach(_=>{_.classList.remove(g.horizontalClass,g.verticalClass),_.classList.add(t.isHorizontal()?g.horizontalClass:g.verticalClass)})}),n("init",()=>{t.params.pagination.enabled===!1?b():(m(),d(),u())}),n("activeIndexChange",()=>{typeof t.snapIndex>"u"&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{d(),u()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{el:g}=t.pagination;g&&(g=r(g),g.forEach(v=>v.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),n("lock unlock",()=>{u()}),n("click",(g,v)=>{const _=v.target;let{el:k}=t.pagination;if(Array.isArray(k)||(k=[k].filter(E=>!!E)),t.params.pagination.el&&t.params.pagination.hideOnClick&&k&&k.length>0&&!_.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&_===t.navigation.nextEl||t.navigation.prevEl&&_===t.navigation.prevEl))return;const E=k[0].classList.contains(t.params.pagination.hiddenClass);s(E===!0?"paginationShow":"paginationHide"),k.forEach(S=>S.classList.toggle(t.params.pagination.hiddenClass))}});const p=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:g}=t.pagination;g&&(g=r(g),g.forEach(v=>v.classList.remove(t.params.pagination.paginationDisabledClass))),m(),d(),u()},b=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:g}=t.pagination;g&&(g=r(g),g.forEach(v=>v.classList.add(t.params.pagination.paginationDisabledClass))),h()};Object.assign(t.pagination,{enable:p,disable:b,render:d,update:u,init:m,destroy:h})}function H3({swiper:t,extendParams:e,on:n,emit:s}){const a=Le();let i=!1,o=null,r=null,l,f,c,u;e({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"}}),t.scrollbar={el:null,dragEl:null};function d(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:w,rtlTranslate:D}=t,{dragEl:O,el:L}=w,j=t.params.scrollbar,W=t.params.loop?t.progressLoop:t.progress;let Y=f,B=(c-f)*W;D?(B=-B,B>0?(Y=f-B,B=0):-B+f>c&&(Y=c+B)):B<0?(Y=f+B,B=0):B+f>c&&(Y=c-B),t.isHorizontal()?(O.style.transform=`translate3d(${B}px, 0, 0)`,O.style.width=`${Y}px`):(O.style.transform=`translate3d(0px, ${B}px, 0)`,O.style.height=`${Y}px`),j.hide&&(clearTimeout(o),L.style.opacity=1,o=setTimeout(()=>{L.style.opacity=0,L.style.transitionDuration="400ms"},1e3))}function m(w){!t.params.scrollbar.el||!t.scrollbar.el||(t.scrollbar.dragEl.style.transitionDuration=`${w}ms`)}function h(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:w}=t,{dragEl:D,el:O}=w;D.style.width="",D.style.height="",c=t.isHorizontal()?O.offsetWidth:O.offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),t.params.scrollbar.dragSize==="auto"?f=c*u:f=parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?D.style.width=`${f}px`:D.style.height=`${f}px`,u>=1?O.style.display="none":O.style.display="",t.params.scrollbar.hide&&(O.style.opacity=0),t.params.watchOverflow&&t.enabled&&w.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function p(w){return t.isHorizontal()?w.clientX:w.clientY}function b(w){const{scrollbar:D,rtlTranslate:O}=t,{el:L}=D;let j;j=(p(w)-ws(L)[t.isHorizontal()?"left":"top"]-(l!==null?l:f/2))/(c-f),j=Math.max(Math.min(j,1),0),O&&(j=1-j);const W=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*j;t.updateProgress(W),t.setTranslate(W),t.updateActiveIndex(),t.updateSlidesClasses()}function g(w){const D=t.params.scrollbar,{scrollbar:O,wrapperEl:L}=t,{el:j,dragEl:W}=O;i=!0,l=w.target===W?p(w)-w.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,w.preventDefault(),w.stopPropagation(),L.style.transitionDuration="100ms",W.style.transitionDuration="100ms",b(w),clearTimeout(r),j.style.transitionDuration="0ms",D.hide&&(j.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",w)}function v(w){const{scrollbar:D,wrapperEl:O}=t,{el:L,dragEl:j}=D;i&&(w.preventDefault?w.preventDefault():w.returnValue=!1,b(w),O.style.transitionDuration="0ms",L.style.transitionDuration="0ms",j.style.transitionDuration="0ms",s("scrollbarDragMove",w))}function _(w){const D=t.params.scrollbar,{scrollbar:O,wrapperEl:L}=t,{el:j}=O;i&&(i=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",L.style.transitionDuration=""),D.hide&&(clearTimeout(r),r=Tn(()=>{j.style.opacity=0,j.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",w),D.snapOnRelease&&t.slideToClosest())}function k(w){const{scrollbar:D,params:O}=t,L=D.el;if(!L)return;const j=L,W=O.passiveListeners?{passive:!1,capture:!1}:!1,Y=O.passiveListeners?{passive:!0,capture:!1}:!1;if(!j)return;const B=w==="on"?"addEventListener":"removeEventListener";j[B]("pointerdown",g,W),a[B]("pointermove",v,W),a[B]("pointerup",_,Y)}function E(){!t.params.scrollbar.el||!t.scrollbar.el||k("on")}function S(){!t.params.scrollbar.el||!t.scrollbar.el||k("off")}function I(){const{scrollbar:w,el:D}=t;t.params.scrollbar=Ba(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const O=t.params.scrollbar;if(!O.el)return;let L;typeof O.el=="string"&&t.isElement&&(L=t.el.shadowRoot.querySelector(O.el)),!L&&typeof O.el=="string"?L=a.querySelectorAll(O.el):L||(L=O.el),t.params.uniqueNavElements&&typeof O.el=="string"&&L.length>1&&D.querySelectorAll(O.el).length===1&&(L=D.querySelector(O.el)),L.length>0&&(L=L[0]),L.classList.add(t.isHorizontal()?O.horizontalClass:O.verticalClass);let j;L&&(j=L.querySelector(`.${t.params.scrollbar.dragClass}`),j||(j=Xt("div",t.params.scrollbar.dragClass),L.append(j))),Object.assign(w,{el:L,dragEl:j}),O.draggable&&E(),L&&L.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}function T(){const w=t.params.scrollbar,D=t.scrollbar.el;D&&D.classList.remove(t.isHorizontal()?w.horizontalClass:w.verticalClass),S()}n("init",()=>{t.params.scrollbar.enabled===!1?y():(I(),h(),d())}),n("update resize observerUpdate lock unlock",()=>{h()}),n("setTranslate",()=>{d()}),n("setTransition",(w,D)=>{m(D)}),n("enable disable",()=>{const{el:w}=t.scrollbar;w&&w.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}),n("destroy",()=>{T()});const A=()=>{t.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.el&&t.scrollbar.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass),I(),h(),d()},y=()=>{t.el.classList.add(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.el&&t.scrollbar.el.classList.add(t.params.scrollbar.scrollbarDisabledClass),T()};Object.assign(t.scrollbar,{enable:A,disable:y,updateSize:h,setTranslate:d,init:I,destroy:T})}function z3({swiper:t,extendParams:e,on:n}){e({parallax:{enabled:!1}});const s=(o,r)=>{const{rtl:l}=t,f=l?-1:1,c=o.getAttribute("data-swiper-parallax")||"0";let u=o.getAttribute("data-swiper-parallax-x"),d=o.getAttribute("data-swiper-parallax-y");const m=o.getAttribute("data-swiper-parallax-scale"),h=o.getAttribute("data-swiper-parallax-opacity"),p=o.getAttribute("data-swiper-parallax-rotate");if(u||d?(u=u||"0",d=d||"0"):t.isHorizontal()?(u=c,d="0"):(d=c,u="0"),u.indexOf("%")>=0?u=`${parseInt(u,10)*r*f}%`:u=`${u*r*f}px`,d.indexOf("%")>=0?d=`${parseInt(d,10)*r}%`:d=`${d*r}px`,typeof h<"u"&&h!==null){const g=h-(h-1)*(1-Math.abs(r));o.style.opacity=g}let b=`translate3d(${u}, ${d}, 0px)`;if(typeof m<"u"&&m!==null){const g=m-(m-1)*(1-Math.abs(r));b+=` scale(${g})`}if(p&&typeof p<"u"&&p!==null){const g=p*r*-1;b+=` rotate(${g}deg)`}o.style.transform=b},a=()=>{const{el:o,slides:r,progress:l,snapGrid:f}=t;St(o,"[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").forEach(c=>{s(c,l)}),r.forEach((c,u)=>{let d=c.progress;t.params.slidesPerGroup>1&&t.params.slidesPerView!=="auto"&&(d+=Math.ceil(u/2)-l*(f.length-1)),d=Math.min(Math.max(d,-1),1),c.querySelectorAll("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale], [data-swiper-parallax-rotate]").forEach(m=>{s(m,d)})})},i=(o=t.params.speed)=>{const{el:r}=t;r.querySelectorAll("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").forEach(l=>{let f=parseInt(l.getAttribute("data-swiper-parallax-duration"),10)||o;o===0&&(f=0),l.style.transitionDuration=`${f}ms`})};n("beforeInit",()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),n("init",()=>{t.params.parallax.enabled&&a()}),n("setTranslate",()=>{t.params.parallax.enabled&&a()}),n("setTransition",(o,r)=>{t.params.parallax.enabled&&i(r)})}function F3({swiper:t,extendParams:e,on:n,emit:s}){const a=Se();e({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let i=1,o=!1,r,l;const f=[],c={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},u={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:{}},d={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let m=1;Object.defineProperty(t.zoom,"scale",{get(){return m},set(W){if(m!==W){const Y=c.imageEl,B=c.slideEl;s("zoomChange",W,Y,B)}m=W}});function h(){if(f.length<2)return 1;const W=f[0].pageX,Y=f[0].pageY,B=f[1].pageX,q=f[1].pageY;return Math.sqrt((B-W)**2+(q-Y)**2)}function p(){if(f.length<2)return{x:null,y:null};const W=c.imageEl.getBoundingClientRect();return[(f[0].pageX+(f[1].pageX-f[0].pageX)/2-W.x)/i,(f[0].pageY+(f[1].pageY-f[0].pageY)/2-W.y)/i]}function b(){return t.isElement?"swiper-slide":`.${t.params.slideClass}`}function g(W){const Y=b();return!!(W.target.matches(Y)||t.slides.filter(B=>B.contains(W.target)).length>0)}function v(W){const Y=`.${t.params.zoom.containerClass}`;return!!(W.target.matches(Y)||[...t.el.querySelectorAll(Y)].filter(B=>B.contains(W.target)).length>0)}function _(W){if(W.pointerType==="mouse"&&f.splice(0,f.length),!g(W))return;const Y=t.params.zoom;if(r=!1,l=!1,f.push(W),!(f.length<2)){if(r=!0,c.scaleStart=h(),!c.slideEl){c.slideEl=W.target.closest(`.${t.params.slideClass}, swiper-slide`),c.slideEl||(c.slideEl=t.slides[t.activeIndex]);let B=c.slideEl.querySelector(`.${Y.containerClass}`);if(B&&(B=B.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),c.imageEl=B,B?c.imageWrapEl=Sn(c.imageEl,`.${Y.containerClass}`)[0]:c.imageWrapEl=void 0,!c.imageWrapEl){c.imageEl=void 0;return}c.maxRatio=c.imageWrapEl.getAttribute("data-swiper-zoom")||Y.maxRatio}if(c.imageEl){const[B,q]=p();c.originX=B,c.originY=q,c.imageEl.style.transitionDuration="0ms"}o=!0}}function k(W){if(!g(W))return;const Y=t.params.zoom,B=t.zoom,q=f.findIndex(X=>X.pointerId===W.pointerId);q>=0&&(f[q]=W),!(f.length<2)&&(l=!0,c.scaleMove=h(),c.imageEl&&(B.scale=c.scaleMove/c.scaleStart*i,B.scale>c.maxRatio&&(B.scale=c.maxRatio-1+(B.scale-c.maxRatio+1)**.5),B.scaleX.pointerId===W.pointerId);q>=0&&f.splice(q,1),!(!r||!l)&&(r=!1,l=!1,c.imageEl&&(B.scale=Math.max(Math.min(B.scale,c.maxRatio),Y.minRatio),c.imageEl.style.transitionDuration=`${t.params.speed}ms`,c.imageEl.style.transform=`translate3d(0,0,0) scale(${B.scale})`,i=B.scale,o=!1,B.scale>1&&c.slideEl?c.slideEl.classList.add(`${Y.zoomedSlideClass}`):B.scale<=1&&c.slideEl&&c.slideEl.classList.remove(`${Y.zoomedSlideClass}`),B.scale===1&&(c.originX=0,c.originY=0,c.slideEl=void 0)))}function S(W){const Y=t.device;if(!c.imageEl||u.isTouched)return;Y.android&&W.cancelable&&W.preventDefault(),u.isTouched=!0;const B=f.length>0?f[0]:W;u.touchesStart.x=B.pageX,u.touchesStart.y=B.pageY}function I(W){if(!g(W)||!v(W))return;const Y=t.zoom;if(!c.imageEl||!u.isTouched||!c.slideEl)return;u.isMoved||(u.width=c.imageEl.offsetWidth,u.height=c.imageEl.offsetHeight,u.startX=ha(c.imageWrapEl,"x")||0,u.startY=ha(c.imageWrapEl,"y")||0,c.slideWidth=c.slideEl.offsetWidth,c.slideHeight=c.slideEl.offsetHeight,c.imageWrapEl.style.transitionDuration="0ms");const B=u.width*Y.scale,q=u.height*Y.scale;if(B0?f[0].pageX:W.pageX,u.touchesCurrent.y=f.length>0?f[0].pageY:W.pageY,Math.max(Math.abs(u.touchesCurrent.x-u.touchesStart.x),Math.abs(u.touchesCurrent.y-u.touchesStart.y))>5&&(t.allowClick=!1),!u.isMoved&&!o){if(t.isHorizontal()&&(Math.floor(u.minX)===Math.floor(u.startX)&&u.touchesCurrent.xu.touchesStart.x)){u.isTouched=!1;return}if(!t.isHorizontal()&&(Math.floor(u.minY)===Math.floor(u.startY)&&u.touchesCurrent.yu.touchesStart.y)){u.isTouched=!1;return}}W.cancelable&&W.preventDefault(),W.stopPropagation(),u.isMoved=!0;const H=(Y.scale-i)/(c.maxRatio-t.params.zoom.minRatio),{originX:G,originY:ce}=c;u.currentX=u.touchesCurrent.x-u.touchesStart.x+u.startX+H*(u.width-G*2),u.currentY=u.touchesCurrent.y-u.touchesStart.y+u.startY+H*(u.height-ce*2),u.currentXu.maxX&&(u.currentX=u.maxX-1+(u.currentX-u.maxX+1)**.8),u.currentYu.maxY&&(u.currentY=u.maxY-1+(u.currentY-u.maxY+1)**.8),d.prevPositionX||(d.prevPositionX=u.touchesCurrent.x),d.prevPositionY||(d.prevPositionY=u.touchesCurrent.y),d.prevTime||(d.prevTime=Date.now()),d.x=(u.touchesCurrent.x-d.prevPositionX)/(Date.now()-d.prevTime)/2,d.y=(u.touchesCurrent.y-d.prevPositionY)/(Date.now()-d.prevTime)/2,Math.abs(u.touchesCurrent.x-d.prevPositionX)<2&&(d.x=0),Math.abs(u.touchesCurrent.y-d.prevPositionY)<2&&(d.y=0),d.prevPositionX=u.touchesCurrent.x,d.prevPositionY=u.touchesCurrent.y,d.prevTime=Date.now(),c.imageWrapEl.style.transform=`translate3d(${u.currentX}px, ${u.currentY}px,0)`}function T(){const W=t.zoom;if(!c.imageEl)return;if(!u.isTouched||!u.isMoved){u.isTouched=!1,u.isMoved=!1;return}u.isTouched=!1,u.isMoved=!1;let Y=300,B=300;const q=d.x*Y,X=u.currentX+q,H=d.y*B,G=u.currentY+H;d.x!==0&&(Y=Math.abs((X-u.currentX)/d.x)),d.y!==0&&(B=Math.abs((G-u.currentY)/d.y));const ce=Math.max(Y,B);u.currentX=X,u.currentY=G;const ye=u.width*W.scale,ne=u.height*W.scale;u.minX=Math.min(c.slideWidth/2-ye/2,0),u.maxX=-u.minX,u.minY=Math.min(c.slideHeight/2-ne/2,0),u.maxY=-u.minY,u.currentX=Math.max(Math.min(u.currentX,u.maxX),u.minX),u.currentY=Math.max(Math.min(u.currentY,u.maxY),u.minY),c.imageWrapEl.style.transitionDuration=`${ce}ms`,c.imageWrapEl.style.transform=`translate3d(${u.currentX}px, ${u.currentY}px,0)`}function A(){const W=t.zoom;c.slideEl&&t.activeIndex!==t.slides.indexOf(c.slideEl)&&(c.imageEl&&(c.imageEl.style.transform="translate3d(0,0,0) scale(1)"),c.imageWrapEl&&(c.imageWrapEl.style.transform="translate3d(0,0,0)"),c.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),W.scale=1,i=1,c.slideEl=void 0,c.imageEl=void 0,c.imageWrapEl=void 0,c.originX=0,c.originY=0)}function y(W){const Y=t.zoom,B=t.params.zoom;if(!c.slideEl){W&&W.target&&(c.slideEl=W.target.closest(`.${t.params.slideClass}, swiper-slide`)),c.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?c.slideEl=St(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:c.slideEl=t.slides[t.activeIndex]);let fe=c.slideEl.querySelector(`.${B.containerClass}`);fe&&(fe=fe.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),c.imageEl=fe,fe?c.imageWrapEl=Sn(c.imageEl,`.${B.containerClass}`)[0]:c.imageWrapEl=void 0}if(!c.imageEl||!c.imageWrapEl)return;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),c.slideEl.classList.add(`${B.zoomedSlideClass}`);let q,X,H,G,ce,ye,ne,me,K,pe,ke,he,re,Ce,Pe,Ve,Me,He;typeof u.touchesStart.x>"u"&&W?(q=W.pageX,X=W.pageY):(q=u.touchesStart.x,X=u.touchesStart.y);const ze=typeof W=="number"?W:null;i===1&&ze&&(q=void 0,X=void 0),Y.scale=ze||c.imageWrapEl.getAttribute("data-swiper-zoom")||B.maxRatio,i=ze||c.imageWrapEl.getAttribute("data-swiper-zoom")||B.maxRatio,W&&!(i===1&&ze)?(Me=c.slideEl.offsetWidth,He=c.slideEl.offsetHeight,H=ws(c.slideEl).left+a.scrollX,G=ws(c.slideEl).top+a.scrollY,ce=H+Me/2-q,ye=G+He/2-X,K=c.imageEl.offsetWidth,pe=c.imageEl.offsetHeight,ke=K*Y.scale,he=pe*Y.scale,re=Math.min(Me/2-ke/2,0),Ce=Math.min(He/2-he/2,0),Pe=-re,Ve=-Ce,ne=ce*Y.scale,me=ye*Y.scale,nePe&&(ne=Pe),meVe&&(me=Ve)):(ne=0,me=0),ze&&Y.scale===1&&(c.originX=0,c.originY=0),c.imageWrapEl.style.transitionDuration="300ms",c.imageWrapEl.style.transform=`translate3d(${ne}px, ${me}px,0)`,c.imageEl.style.transitionDuration="300ms",c.imageEl.style.transform=`translate3d(0,0,0) scale(${Y.scale})`}function w(){const W=t.zoom,Y=t.params.zoom;if(!c.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?c.slideEl=St(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:c.slideEl=t.slides[t.activeIndex];let B=c.slideEl.querySelector(`.${Y.containerClass}`);B&&(B=B.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),c.imageEl=B,B?c.imageWrapEl=Sn(c.imageEl,`.${Y.containerClass}`)[0]:c.imageWrapEl=void 0}!c.imageEl||!c.imageWrapEl||(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),W.scale=1,i=1,c.imageWrapEl.style.transitionDuration="300ms",c.imageWrapEl.style.transform="translate3d(0,0,0)",c.imageEl.style.transitionDuration="300ms",c.imageEl.style.transform="translate3d(0,0,0) scale(1)",c.slideEl.classList.remove(`${Y.zoomedSlideClass}`),c.slideEl=void 0,c.originX=0,c.originY=0)}function D(W){const Y=t.zoom;Y.scale&&Y.scale!==1?w():y(W)}function O(){const W=t.params.passiveListeners?{passive:!0,capture:!1}:!1,Y=t.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:W,activeListenerWithCapture:Y}}function L(){const W=t.zoom;if(W.enabled)return;W.enabled=!0;const{passiveListener:Y,activeListenerWithCapture:B}=O();t.wrapperEl.addEventListener("pointerdown",_,Y),t.wrapperEl.addEventListener("pointermove",k,B),["pointerup","pointercancel","pointerout"].forEach(q=>{t.wrapperEl.addEventListener(q,E,Y)}),t.wrapperEl.addEventListener("pointermove",I,B)}function j(){const W=t.zoom;if(!W.enabled)return;W.enabled=!1;const{passiveListener:Y,activeListenerWithCapture:B}=O();t.wrapperEl.removeEventListener("pointerdown",_,Y),t.wrapperEl.removeEventListener("pointermove",k,B),["pointerup","pointercancel","pointerout"].forEach(q=>{t.wrapperEl.removeEventListener(q,E,Y)}),t.wrapperEl.removeEventListener("pointermove",I,B)}n("init",()=>{t.params.zoom.enabled&&L()}),n("destroy",()=>{j()}),n("touchStart",(W,Y)=>{t.zoom.enabled&&S(Y)}),n("touchEnd",(W,Y)=>{t.zoom.enabled&&T()}),n("doubleTap",(W,Y)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&D(Y)}),n("transitionEnd",()=>{t.zoom.enabled&&t.params.zoom.enabled&&A()}),n("slideChange",()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&A()}),Object.assign(t.zoom,{enable:L,disable:j,in:y,out:w,toggle:D})}function N3({swiper:t,extendParams:e,on:n}){e({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0};function s(l,f){const c=function(){let h,p,b;return(g,v)=>{for(p=-1,h=g.length;h-p>1;)b=h+p>>1,g[b]<=v?p=b:h=b;return h}}();this.x=l,this.y=f,this.lastIndex=l.length-1;let u,d;return this.interpolate=function(h){return h?(d=c(this.x,h),u=d-1,(h-this.x[u])*(this.y[d]-this.y[u])/(this.x[d]-this.x[u])+this.y[u]):0},this}function a(l){t.controller.spline=t.params.loop?new s(t.slidesGrid,l.slidesGrid):new s(t.snapGrid,l.snapGrid)}function i(l,f){const c=t.controller.control;let u,d;const m=t.constructor;function h(p){if(p.destroyed)return;const b=t.rtlTranslate?-t.translate:t.translate;t.params.controller.by==="slide"&&(a(p),d=-t.controller.spline.interpolate(-b)),(!d||t.params.controller.by==="container")&&(u=(p.maxTranslate()-p.minTranslate())/(t.maxTranslate()-t.minTranslate()),(Number.isNaN(u)||!Number.isFinite(u))&&(u=1),d=(b-t.minTranslate())*u+p.minTranslate()),t.params.controller.inverse&&(d=p.maxTranslate()-d),p.updateProgress(d),p.setTranslate(d,t),p.updateActiveIndex(),p.updateSlidesClasses()}if(Array.isArray(c))for(let p=0;p{h.updateAutoHeight()}),Jn(h.wrapperEl,()=>{u&&h.transitionEnd()})))}if(Array.isArray(u))for(d=0;d{if(typeof window<"u"&&(typeof t.params.controller.control=="string"||t.params.controller.control instanceof HTMLElement)){const l=document.querySelector(t.params.controller.control);if(l&&l.swiper)t.controller.control=l.swiper;else if(l){const f=c=>{t.controller.control=c.detail[0],t.update(),l.removeEventListener("init",f)};l.addEventListener("init",f)}return}t.controller.control=t.params.controller.control}),n("update",()=>{r()}),n("resize",()=>{r()}),n("observerUpdate",()=>{r()}),n("setTranslate",(l,f,c)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTranslate(f,c)}),n("setTransition",(l,f,c)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTransition(f,c)}),Object.assign(t.controller,{setTranslate:i,setTransition:o})}function V3({swiper:t,extendParams:e,on:n}){e({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}}),t.a11y={clicked:!1};let s=null;function a(O){const L=s;L.length!==0&&(L.innerHTML="",L.innerHTML=O)}const i=O=>(Array.isArray(O)||(O=[O].filter(L=>!!L)),O);function o(O=16){const L=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(O).replace(/x/g,L)}function r(O){O=i(O),O.forEach(L=>{L.setAttribute("tabIndex","0")})}function l(O){O=i(O),O.forEach(L=>{L.setAttribute("tabIndex","-1")})}function f(O,L){O=i(O),O.forEach(j=>{j.setAttribute("role",L)})}function c(O,L){O=i(O),O.forEach(j=>{j.setAttribute("aria-roledescription",L)})}function u(O,L){O=i(O),O.forEach(j=>{j.setAttribute("aria-controls",L)})}function d(O,L){O=i(O),O.forEach(j=>{j.setAttribute("aria-label",L)})}function m(O,L){O=i(O),O.forEach(j=>{j.setAttribute("id",L)})}function h(O,L){O=i(O),O.forEach(j=>{j.setAttribute("aria-live",L)})}function p(O){O=i(O),O.forEach(L=>{L.setAttribute("aria-disabled",!0)})}function b(O){O=i(O),O.forEach(L=>{L.setAttribute("aria-disabled",!1)})}function g(O){if(O.keyCode!==13&&O.keyCode!==32)return;const L=t.params.a11y,j=O.target;t.pagination&&t.pagination.el&&(j===t.pagination.el||t.pagination.el.contains(O.target))&&!O.target.matches(mn(t.params.pagination.bulletClass))||(t.navigation&&t.navigation.nextEl&&j===t.navigation.nextEl&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?a(L.lastSlideMessage):a(L.nextSlideMessage)),t.navigation&&t.navigation.prevEl&&j===t.navigation.prevEl&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?a(L.firstSlideMessage):a(L.prevSlideMessage)),t.pagination&&j.matches(mn(t.params.pagination.bulletClass))&&j.click())}function v(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:O,prevEl:L}=t.navigation;L&&(t.isBeginning?(p(L),l(L)):(b(L),r(L))),O&&(t.isEnd?(p(O),l(O)):(b(O),r(O)))}function _(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function k(){return _()&&t.params.pagination.clickable}function E(){const O=t.params.a11y;_()&&t.pagination.bullets.forEach(L=>{t.params.pagination.clickable&&(r(L),t.params.pagination.renderBullet||(f(L,"button"),d(L,O.paginationBulletMessage.replace(/\{\{index\}\}/,ss(L)+1)))),L.matches(mn(t.params.pagination.bulletActiveClass))?L.setAttribute("aria-current","true"):L.removeAttribute("aria-current")})}const S=(O,L,j)=>{r(O),O.tagName!=="BUTTON"&&(f(O,"button"),O.addEventListener("keydown",g)),d(O,j),u(O,L)},I=()=>{t.a11y.clicked=!0},T=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},A=O=>{if(t.a11y.clicked)return;const L=O.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!L||!t.slides.includes(L))return;const j=t.slides.indexOf(L)===t.activeIndex,W=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(L);j||W||O.sourceCapabilities&&O.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(L),0))},y=()=>{const O=t.params.a11y;O.itemRoleDescriptionMessage&&c(t.slides,O.itemRoleDescriptionMessage),O.slideRole&&f(t.slides,O.slideRole);const L=t.slides.length;O.slideLabelMessage&&t.slides.forEach((j,W)=>{const Y=t.params.loop?parseInt(j.getAttribute("data-swiper-slide-index"),10):W,B=O.slideLabelMessage.replace(/\{\{index\}\}/,Y+1).replace(/\{\{slidesLength\}\}/,L);d(j,B)})},w=()=>{const O=t.params.a11y;t.isElement?t.el.shadowEl.append(s):t.el.append(s);const L=t.el;O.containerRoleDescriptionMessage&&c(L,O.containerRoleDescriptionMessage),O.containerMessage&&d(L,O.containerMessage);const j=t.wrapperEl,W=O.id||j.getAttribute("id")||`swiper-wrapper-${o(16)}`,Y=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";m(j,W),h(j,Y),y();let{nextEl:B,prevEl:q}=t.navigation?t.navigation:{};B=i(B),q=i(q),B&&B.forEach(X=>S(X,W,O.nextSlideMessage)),q&&q.forEach(X=>S(X,W,O.prevSlideMessage)),k()&&(Array.isArray(t.pagination.el)?t.pagination.el:[t.pagination.el]).forEach(H=>{H.addEventListener("keydown",g)}),t.el.addEventListener("focus",A,!0),t.el.addEventListener("pointerdown",I,!0),t.el.addEventListener("pointerup",T,!0)};function D(){s&&s.remove();let{nextEl:O,prevEl:L}=t.navigation?t.navigation:{};O=i(O),L=i(L),O&&O.forEach(j=>j.removeEventListener("keydown",g)),L&&L.forEach(j=>j.removeEventListener("keydown",g)),k()&&(Array.isArray(t.pagination.el)?t.pagination.el:[t.pagination.el]).forEach(W=>{W.removeEventListener("keydown",g)}),t.el.removeEventListener("focus",A,!0),t.el.removeEventListener("pointerdown",I,!0),t.el.removeEventListener("pointerup",T,!0)}n("beforeInit",()=>{s=Xt("span",t.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{t.params.a11y.enabled&&w()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&y()}),n("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&v()}),n("paginationUpdate",()=>{t.params.a11y.enabled&&E()}),n("destroy",()=>{t.params.a11y.enabled&&D()})}function Y3({swiper:t,extendParams:e,on:n}){e({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let s=!1,a={};const i=d=>d.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=d=>{const m=Se();let h;d?h=new URL(d):h=m.location;const p=h.pathname.slice(1).split("/").filter(_=>_!==""),b=p.length,g=p[b-2],v=p[b-1];return{key:g,value:v}},r=(d,m)=>{const h=Se();if(!s||!t.params.history.enabled)return;let p;t.params.url?p=new URL(t.params.url):p=h.location;const b=t.slides[m];let g=i(b.getAttribute("data-history"));if(t.params.history.root.length>0){let _=t.params.history.root;_[_.length-1]==="/"&&(_=_.slice(0,_.length-1)),g=`${_}/${d?`${d}/`:""}${g}`}else p.pathname.includes(d)||(g=`${d?`${d}/`:""}${g}`);t.params.history.keepQuery&&(g+=p.search);const v=h.history.state;v&&v.value===g||(t.params.history.replaceState?h.history.replaceState({value:g},null,g):h.history.pushState({value:g},null,g))},l=(d,m,h)=>{if(m)for(let p=0,b=t.slides.length;p{a=o(t.params.url),l(t.params.speed,a.value,!1)},c=()=>{const d=Se();if(t.params.history){if(!d.history||!d.history.pushState){t.params.history.enabled=!1,t.params.hashNavigation.enabled=!0;return}if(s=!0,a=o(t.params.url),!a.key&&!a.value){t.params.history.replaceState||d.addEventListener("popstate",f);return}l(0,a.value,t.params.runCallbacksOnInit),t.params.history.replaceState||d.addEventListener("popstate",f)}},u=()=>{const d=Se();t.params.history.replaceState||d.removeEventListener("popstate",f)};n("init",()=>{t.params.history.enabled&&c()}),n("destroy",()=>{t.params.history.enabled&&u()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{s&&r(t.params.history.key,t.activeIndex)}),n("slideChange",()=>{s&&t.params.cssMode&&r(t.params.history.key,t.activeIndex)})}function q3({swiper:t,extendParams:e,emit:n,on:s}){let a=!1;const i=Le(),o=Se();e({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(u,d){if(t.virtual&&t.params.virtual.enabled){const m=t.slides.filter(p=>p.getAttribute("data-hash")===d)[0];return m?parseInt(m.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(St(t.slidesEl,`.${t.params.slideClass}[data-hash="${d}"], swiper-slide[data-hash="${d}"]`)[0])}}});const r=()=>{n("hashChange");const u=i.location.hash.replace("#",""),d=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],m=d?d.getAttribute("data-hash"):"";if(u!==m){const h=t.params.hashNavigation.getSlideIndex(t,u);if(typeof h>"u"||Number.isNaN(h))return;t.slideTo(h)}},l=()=>{if(!a||!t.params.hashNavigation.enabled)return;const u=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],d=u?u.getAttribute("data-hash")||u.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&o.history&&o.history.replaceState?(o.history.replaceState(null,null,`#${d}`||""),n("hashSet")):(i.location.hash=d||"",n("hashSet"))},f=()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;a=!0;const u=i.location.hash.replace("#","");if(u){const m=t.params.hashNavigation.getSlideIndex(t,u);t.slideTo(m||0,0,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&o.addEventListener("hashchange",r)},c=()=>{t.params.hashNavigation.watchState&&o.removeEventListener("hashchange",r)};s("init",()=>{t.params.hashNavigation.enabled&&f()}),s("destroy",()=>{t.params.hashNavigation.enabled&&c()}),s("transitionEnd _freeModeNoMomentumRelease",()=>{a&&l()}),s("slideChange",()=>{a&&t.params.cssMode&&l()})}function W3({swiper:t,extendParams:e,on:n,emit:s,params:a}){t.autoplay={running:!1,paused:!1,timeLeft:0},e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let i,o,r=a&&a.autoplay?a.autoplay.delay:3e3,l=a&&a.autoplay?a.autoplay.delay:3e3,f,c=new Date().getTime,u,d,m,h,p,b;function g(W){!t||t.destroyed||!t.wrapperEl||W.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",g),T())}const v=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?u=!0:u&&(l=f,u=!1);const W=t.autoplay.paused?f:c+l-new Date().getTime();t.autoplay.timeLeft=W,s("autoplayTimeLeft",W,W/r),o=requestAnimationFrame(()=>{v()})},_=()=>{let W;return t.virtual&&t.params.virtual.enabled?W=t.slides.filter(B=>B.classList.contains("swiper-slide-active"))[0]:W=t.slides[t.activeIndex],W?parseInt(W.getAttribute("data-swiper-autoplay"),10):void 0},k=W=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(o),v();let Y=typeof W>"u"?t.params.autoplay.delay:W;r=t.params.autoplay.delay,l=t.params.autoplay.delay;const B=_();!Number.isNaN(B)&&B>0&&typeof W>"u"&&(Y=B,r=B,l=B),f=Y;const q=t.params.speed,X=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(q,!0,!0),s("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,q,!0,!0),s("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(q,!0,!0),s("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,q,!0,!0),s("autoplay")),t.params.cssMode&&(c=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return Y>0?(clearTimeout(i),i=setTimeout(()=>{X()},Y)):requestAnimationFrame(()=>{X()}),Y},E=()=>{t.autoplay.running=!0,k(),s("autoplayStart")},S=()=>{t.autoplay.running=!1,clearTimeout(i),cancelAnimationFrame(o),s("autoplayStop")},I=(W,Y)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(i),W||(b=!0);const B=()=>{s("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",g):T()};if(t.autoplay.paused=!0,Y){p&&(f=t.params.autoplay.delay),p=!1,B();return}f=(f||t.params.autoplay.delay)-(new Date().getTime()-c),!(t.isEnd&&f<0&&!t.params.loop)&&(f<0&&(f=0),B())},T=()=>{t.isEnd&&f<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(c=new Date().getTime(),b?(b=!1,k(f)):k(),t.autoplay.paused=!1,s("autoplayResume"))},A=()=>{if(t.destroyed||!t.autoplay.running)return;const W=Le();W.visibilityState==="hidden"&&(b=!0,I(!0)),W.visibilityState==="visible"&&T()},y=W=>{W.pointerType==="mouse"&&(b=!0,I(!0))},w=W=>{W.pointerType==="mouse"&&t.autoplay.paused&&T()},D=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",y),t.el.addEventListener("pointerleave",w))},O=()=>{t.el.removeEventListener("pointerenter",y),t.el.removeEventListener("pointerleave",w)},L=()=>{Le().addEventListener("visibilitychange",A)},j=()=>{Le().removeEventListener("visibilitychange",A)};n("init",()=>{t.params.autoplay.enabled&&(D(),L(),c=new Date().getTime(),E())}),n("destroy",()=>{O(),j(),t.autoplay.running&&S()}),n("beforeTransitionStart",(W,Y,B)=>{t.destroyed||!t.autoplay.running||(B||!t.params.autoplay.disableOnInteraction?I(!0,!0):S())}),n("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){S();return}d=!0,m=!1,b=!1,h=setTimeout(()=>{b=!0,m=!0,I(!0)},200)}}),n("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!d)){if(clearTimeout(h),clearTimeout(i),t.params.autoplay.disableOnInteraction){m=!1,d=!1;return}m&&t.params.cssMode&&T(),m=!1,d=!1}}),n("slideChange",()=>{t.destroyed||!t.autoplay.running||(p=!0)}),Object.assign(t.autoplay,{start:E,stop:S,pause:I,resume:T})}function j3({swiper:t,extendParams:e,on:n}){e({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,a=!1;t.thumbs={swiper:null};function i(){const l=t.thumbs.swiper;if(!l||l.destroyed)return;const f=l.clickedIndex,c=l.clickedSlide;if(c&&c.classList.contains(t.params.thumbs.slideThumbActiveClass)||typeof f>"u"||f===null)return;let u;l.params.loop?u=parseInt(l.clickedSlide.getAttribute("data-swiper-slide-index"),10):u=f,t.params.loop?t.slideToLoop(u):t.slideTo(u)}function o(){const{thumbs:l}=t.params;if(s)return!1;s=!0;const f=t.constructor;if(l.swiper instanceof f)t.thumbs.swiper=l.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if($n(l.swiper)){const c=Object.assign({},l.swiper);Object.assign(c,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new f(c),a=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",i),!0}function r(l){const f=t.thumbs.swiper;if(!f||f.destroyed)return;const c=f.params.slidesPerView==="auto"?f.slidesPerViewDynamic():f.params.slidesPerView;let u=1;const d=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(u=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(u=1),u=Math.floor(u),f.slides.forEach(p=>p.classList.remove(d)),f.params.loop||f.params.virtual&&f.params.virtual.enabled)for(let p=0;p{b.classList.add(d)});else for(let p=0;p_.getAttribute("data-swiper-slide-index")===`${t.realIndex}`)[0];b=f.slides.indexOf(v),g=t.activeIndex>t.previousIndex?"next":"prev"}else b=t.realIndex,g=b>t.previousIndex?"next":"prev";h&&(b+=g==="next"?m:-1*m),f.visibleSlidesIndexes&&f.visibleSlidesIndexes.indexOf(b)<0&&(f.params.centeredSlides?b>p?b=b-Math.floor(c/2)+1:b=b+Math.floor(c/2)-1:b>p&&f.params.slidesPerGroup,f.slideTo(b,l?0:void 0))}}n("beforeInit",()=>{const{thumbs:l}=t.params;if(!(!l||!l.swiper))if(typeof l.swiper=="string"||l.swiper instanceof HTMLElement){const f=Le(),c=()=>{const d=typeof l.swiper=="string"?f.querySelector(l.swiper):l.swiper;if(d&&d.swiper)l.swiper=d.swiper,o(),r(!0);else if(d){const m=h=>{l.swiper=h.detail[0],d.removeEventListener("init",m),o(),r(!0),l.swiper.update(),t.update()};d.addEventListener("init",m)}return d},u=()=>{if(t.destroyed)return;c()||requestAnimationFrame(u)};requestAnimationFrame(u)}else o(),r(!0)}),n("slideChange update resize observerUpdate",()=>{r()}),n("setTransition",(l,f)=>{const c=t.thumbs.swiper;!c||c.destroyed||c.setTransition(f)}),n("beforeDestroy",()=>{const l=t.thumbs.swiper;!l||l.destroyed||a&&l.destroy()}),Object.assign(t.thumbs,{init:o,update:r})}function X3({swiper:t,extendParams:e,emit:n,once:s}){e({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function a(){if(t.params.cssMode)return;const r=t.getTranslate();t.setTranslate(r),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function i(){if(t.params.cssMode)return;const{touchEventsData:r,touches:l}=t;r.velocities.length===0&&r.velocities.push({position:l[t.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:l[t.isHorizontal()?"currentX":"currentY"],time:Wt()})}function o({currentPos:r}){if(t.params.cssMode)return;const{params:l,wrapperEl:f,rtlTranslate:c,snapGrid:u,touchEventsData:d}=t,h=Wt()-d.touchStartTime;if(r<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(r>-t.maxTranslate()){t.slides.length1){const S=d.velocities.pop(),I=d.velocities.pop(),T=S.position-I.position,A=S.time-I.time;t.velocity=T/A,t.velocity/=2,Math.abs(t.velocity)150||Wt()-S.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=l.freeMode.momentumVelocityRatio,d.velocities.length=0;let p=1e3*l.freeMode.momentumRatio;const b=t.velocity*p;let g=t.translate+b;c&&(g=-g);let v=!1,_;const k=Math.abs(t.velocity)*20*l.freeMode.momentumBounceRatio;let E;if(gt.minTranslate())l.freeMode.momentumBounce?(g-t.minTranslate()>k&&(g=t.minTranslate()+k),_=t.minTranslate(),v=!0,d.allowMomentumBounce=!0):g=t.minTranslate(),l.loop&&l.centeredSlides&&(E=!0);else if(l.freeMode.sticky){let S;for(let I=0;I-g){S=I;break}Math.abs(u[S]-g){t.loopFix()}),t.velocity!==0){if(c?p=Math.abs((-g-t.translate)/t.velocity):p=Math.abs((g-t.translate)/t.velocity),l.freeMode.sticky){const S=Math.abs((c?-g:g)-t.translate),I=t.slidesSizesGrid[t.activeIndex];S{!t||t.destroyed||!d.allowMomentumBounce||(n("momentumBounce"),t.setTransition(l.speed),setTimeout(()=>{t.setTranslate(_),Jn(f,()=>{!t||t.destroyed||t.transitionEnd()})},0))})):t.velocity?(n("_freeModeNoMomentumRelease"),t.updateProgress(g),t.setTransition(p),t.setTranslate(g),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,Jn(f,()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(g),t.updateActiveIndex(),t.updateSlidesClasses()}else if(l.freeMode.sticky){t.slideToClosest();return}else l.freeMode&&n("_freeModeNoMomentumRelease");(!l.freeMode.momentum||h>=l.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}Object.assign(t,{freeMode:{onTouchStart:a,onTouchMove:i,onTouchEnd:o}})}function G3({swiper:t,extendParams:e}){e({grid:{rows:1,fill:"column"}});let n,s,a;const i=()=>{let f=t.params.spaceBetween;return typeof f=="string"&&f.indexOf("%")>=0?f=parseFloat(f.replace("%",""))/100*t.size:typeof f=="string"&&(f=parseFloat(f)),f},o=f=>{const{slidesPerView:c}=t.params,{rows:u,fill:d}=t.params.grid;a=Math.floor(f/u),Math.floor(f/u)===f/u?n=f:n=Math.ceil(f/u)*u,c!=="auto"&&d==="row"&&(n=Math.max(n,c*u)),s=n/u},r=(f,c,u,d)=>{const{slidesPerGroup:m}=t.params,h=i(),{rows:p,fill:b}=t.params.grid;let g,v,_;if(b==="row"&&m>1){const k=Math.floor(f/(m*p)),E=f-p*m*k,S=k===0?m:Math.min(Math.ceil((u-k*p*m)/p),m);_=Math.floor(E/S),v=E-_*S+k*m,g=v+_*n/p,c.style.order=g}else b==="column"?(v=Math.floor(f/p),_=f-v*p,(v>a||v===a&&_===p-1)&&(_+=1,_>=p&&(_=0,v+=1))):(_=Math.floor(f/s),v=f-_*s);c.row=_,c.column=v,c.style[d("margin-top")]=_!==0?h&&`${h}px`:""},l=(f,c,u)=>{const{centeredSlides:d,roundLengths:m}=t.params,h=i(),{rows:p}=t.params.grid;if(t.virtualSize=(f+h)*n,t.virtualSize=Math.ceil(t.virtualSize/p)-h,t.wrapperEl.style[u("width")]=`${t.virtualSize+h}px`,d){const b=[];for(let g=0;g{if(typeof i=="string"){const o=document.createElement("div");o.innerHTML=i,s.append(o.children[0]),o.innerHTML=""}else s.append(i)};if(typeof t=="object"&&"length"in t)for(let i=0;i{if(typeof r=="string"){const l=document.createElement("div");l.innerHTML=r,a.prepend(l.children[0]),l.innerHTML=""}else a.prepend(r)};if(typeof t=="object"&&"length"in t){for(let r=0;r=r){n.appendSlide(e);return}let l=o>t?o+1:o;const f=[];for(let c=r-1;c>=t;c-=1){const u=n.slides[c];u.remove(),f.unshift(u)}if(typeof e=="object"&&"length"in e){for(let c=0;ct?o+e.length:o}else i.append(e);for(let c=0;c{if(n.params.effect!==e)return;n.classNames.push(`${n.params.containerModifierClass}${e}`),r&&r()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const u=o?o():{};Object.assign(n.params,u),Object.assign(n.originalParams,u)}),s("setTranslate",()=>{n.params.effect===e&&a()}),s("setTransition",(u,d)=>{n.params.effect===e&&i(d)}),s("transitionEnd",()=>{if(n.params.effect===e&&l){if(!f||!f().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(d=>d.remove())}),l()}});let c;s("virtualUpdate",()=>{n.params.effect===e&&(n.slides.length||(c=!0),requestAnimationFrame(()=>{c&&n.slides&&n.slides.length&&(a(),c=!1)}))})}function us(t,e){const n=Pn(e);return n!==e&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function zs({swiper:t,duration:e,transformElements:n,allSlides:s}){const{activeIndex:a}=t,i=o=>o.parentElement?o.parentElement:t.slides.filter(l=>l.shadowEl&&l.shadowEl===o.parentNode)[0];if(t.params.virtualTranslate&&e!==0){let o=!1,r;s?r=n:r=n.filter(l=>{const f=l.classList.contains("swiper-slide-transform")?i(l):l;return t.getSlideIndex(f)===a}),r.forEach(l=>{Jn(l,()=>{if(o||!t||t.destroyed)return;o=!0,t.animating=!1;const f=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(f)})})}}function J3({swiper:t,extendParams:e,on:n}){e({fadeEffect:{crossFade:!1}}),Yn({effect:"fade",swiper:t,on:n,setTranslate:()=>{const{slides:i}=t,o=t.params.fadeEffect;for(let r=0;r{const o=t.slides.map(r=>Pn(r));o.forEach(r=>{r.style.transitionDuration=`${i}ms`}),zs({swiper:t,duration:i,transformElements:o,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function ew({swiper:t,extendParams:e,on:n}){e({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const s=(r,l,f)=>{let c=f?r.querySelector(".swiper-slide-shadow-left"):r.querySelector(".swiper-slide-shadow-top"),u=f?r.querySelector(".swiper-slide-shadow-right"):r.querySelector(".swiper-slide-shadow-bottom");c||(c=Xt("div",`swiper-slide-shadow-${f?"left":"top"}`),r.append(c)),u||(u=Xt("div",`swiper-slide-shadow-${f?"right":"bottom"}`),r.append(u)),c&&(c.style.opacity=Math.max(-l,0)),u&&(u.style.opacity=Math.max(l,0))};Yn({effect:"cube",swiper:t,on:n,setTranslate:()=>{const{el:r,wrapperEl:l,slides:f,width:c,height:u,rtlTranslate:d,size:m,browser:h}=t,p=t.params.cubeEffect,b=t.isHorizontal(),g=t.virtual&&t.params.virtual.enabled;let v=0,_;p.shadow&&(b?(_=t.slidesEl.querySelector(".swiper-cube-shadow"),_||(_=Xt("div","swiper-cube-shadow"),t.slidesEl.append(_)),_.style.height=`${c}px`):(_=r.querySelector(".swiper-cube-shadow"),_||(_=Xt("div","swiper-cube-shadow"),r.append(_))));for(let E=0;E-1&&(v=I*90+y*90,d&&(v=-I*90-y*90)),S.style.transform=L,p.slideShadows&&s(S,y,b)}if(l.style.transformOrigin=`50% 50% -${m/2}px`,l.style["-webkit-transform-origin"]=`50% 50% -${m/2}px`,p.shadow)if(b)_.style.transform=`translate3d(0px, ${c/2+p.shadowOffset}px, ${-c/2}px) rotateX(90deg) rotateZ(0deg) scale(${p.shadowScale})`;else{const E=Math.abs(v)-Math.floor(Math.abs(v)/90)*90,S=1.5-(Math.sin(E*2*Math.PI/360)/2+Math.cos(E*2*Math.PI/360)/2),I=p.shadowScale,T=p.shadowScale/S,A=p.shadowOffset;_.style.transform=`scale3d(${I}, 1, ${T}) translate3d(0px, ${u/2+A}px, ${-u/2/T}px) rotateX(-90deg)`}const k=(h.isSafari||h.isWebView)&&h.needPerspectiveFix?-m/2:0;l.style.transform=`translate3d(0px,0,${k}px) rotateX(${t.isHorizontal()?0:v}deg) rotateY(${t.isHorizontal()?-v:0}deg)`,l.style.setProperty("--swiper-cube-translate-z",`${k}px`)},setTransition:r=>{const{el:l,slides:f}=t;if(f.forEach(c=>{c.style.transitionDuration=`${r}ms`,c.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${r}ms`})}),t.params.cubeEffect.shadow&&!t.isHorizontal()){const c=l.querySelector(".swiper-cube-shadow");c&&(c.style.transitionDuration=`${r}ms`)}},recreateShadows:()=>{const r=t.isHorizontal();t.slides.forEach(l=>{const f=Math.max(Math.min(l.progress,1),-1);s(l,f,r)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function Hn(t,e,n){const s=`swiper-slide-shadow${n?`-${n}`:""}`,a=Pn(e);let i=a.querySelector(`.${s}`);return i||(i=Xt("div",`swiper-slide-shadow${n?`-${n}`:""}`),a.append(i)),i}function tw({swiper:t,extendParams:e,on:n}){e({flipEffect:{slideShadows:!0,limitRotation:!0}});const s=(r,l,f)=>{let c=t.isHorizontal()?r.querySelector(".swiper-slide-shadow-left"):r.querySelector(".swiper-slide-shadow-top"),u=t.isHorizontal()?r.querySelector(".swiper-slide-shadow-right"):r.querySelector(".swiper-slide-shadow-bottom");c||(c=Hn(f,r,t.isHorizontal()?"left":"top")),u||(u=Hn(f,r,t.isHorizontal()?"right":"bottom")),c&&(c.style.opacity=Math.max(-l,0)),u&&(u.style.opacity=Math.max(l,0))};Yn({effect:"flip",swiper:t,on:n,setTranslate:()=>{const{slides:r,rtlTranslate:l}=t,f=t.params.flipEffect;for(let c=0;c{const l=t.slides.map(f=>Pn(f));l.forEach(f=>{f.style.transitionDuration=`${r}ms`,f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(c=>{c.style.transitionDuration=`${r}ms`})}),zs({swiper:t,duration:r,transformElements:l})},recreateShadows:()=>{const r=t.params.flipEffect;t.slides.forEach(l=>{let f=l.progress;t.params.flipEffect.limitRotation&&(f=Math.max(Math.min(l.progress,1),-1)),s(l,f,r)})},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function sw({swiper:t,extendParams:e,on:n}){e({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),Yn({effect:"coverflow",swiper:t,on:n,setTranslate:()=>{const{width:i,height:o,slides:r,slidesSizesGrid:l}=t,f=t.params.coverflowEffect,c=t.isHorizontal(),u=t.translate,d=c?-u+i/2:-u+o/2,m=c?f.rotate:-f.rotate,h=f.depth;for(let p=0,b=r.length;p0?E:0),W&&(W.style.opacity=-E>0?-E:0)}}},setTransition:i=>{t.slides.map(r=>Pn(r)).forEach(r=>{r.style.transitionDuration=`${i}ms`,r.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(l=>{l.style.transitionDuration=`${i}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function aw({swiper:t,extendParams:e,on:n}){e({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 s=o=>typeof o=="string"?o:`${o}px`;Yn({effect:"creative",swiper:t,on:n,setTranslate:()=>{const{slides:o,wrapperEl:r,slidesSizesGrid:l}=t,f=t.params.creativeEffect,{progressMultiplier:c}=f,u=t.params.centeredSlides;if(u){const d=l[0]/2-t.params.slidesOffsetBefore||0;r.style.transform=`translateX(calc(50% - ${d}px))`}for(let d=0;d0&&(E=f.prev,k=!0),v.forEach((D,O)=>{v[O]=`calc(${D}px + (${s(E.translate[O])} * ${Math.abs(p*c)}))`}),_.forEach((D,O)=>{_[O]=E.rotate[O]*Math.abs(p*c)}),m.style.zIndex=-Math.abs(Math.round(h))+o.length;const S=v.join(", "),I=`rotateX(${_[0]}deg) rotateY(${_[1]}deg) rotateZ(${_[2]}deg)`,T=b<0?`scale(${1+(1-E.scale)*b*c})`:`scale(${1-(1-E.scale)*b*c})`,A=b<0?1+(1-E.opacity)*b*c:1-(1-E.opacity)*b*c,y=`translate3d(${S}) ${I} ${T}`;if(k&&E.shadow||!k){let D=m.querySelector(".swiper-slide-shadow");if(!D&&E.shadow&&(D=Hn(f,m)),D){const O=f.shadowPerProgress?p*(1/f.limitProgress):p;D.style.opacity=Math.min(Math.max(Math.abs(O),0),1)}}const w=us(f,m);w.style.transform=y,w.style.opacity=A,E.origin&&(w.style.transformOrigin=E.origin)}},setTransition:o=>{const r=t.slides.map(l=>Pn(l));r.forEach(l=>{l.style.transitionDuration=`${o}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(f=>{f.style.transitionDuration=`${o}ms`})}),zs({swiper:t,duration:o,transformElements:r,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}function iw({swiper:t,extendParams:e,on:n}){e({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),Yn({effect:"cards",swiper:t,on:n,setTranslate:()=>{const{slides:i,activeIndex:o,rtlTranslate:r}=t,l=t.params.cardsEffect,{startTranslate:f,isTouched:c}=t.touchEventsData,u=r?-t.translate:t.translate;for(let d=0;d0&&p<1&&(c||t.params.cssMode)&&u-1&&(c||t.params.cssMode)&&u>f;if(T||A){const O=(1-Math.abs((Math.abs(p)-.5)/.5))**.5;E+=-28*p*O,k+=-.5*O,S+=96*O,v=`${-25*O*Math.abs(p)}%`}if(p<0?g=`calc(${g}px ${r?"-":"+"} (${S*Math.abs(p)}%))`:p>0?g=`calc(${g}px ${r?"-":"+"} (-${S*Math.abs(p)}%))`:g=`${g}px`,!t.isHorizontal()){const O=v;v=g,g=O}const y=p<0?`${1+(1-k)*p}`:`${1-(1-k)*p}`,w=` - translate3d(${g}, ${v}, ${_}px) - rotateZ(${l.rotate?r?-E:E:0}deg) - scale(${y}) - `;if(l.slideShadows){let O=m.querySelector(".swiper-slide-shadow");O||(O=Hn(l,m)),O&&(O.style.opacity=Math.min(Math.max((Math.abs(p)-.5)/.5,0),1))}m.style.zIndex=-Math.abs(Math.round(h))+i.length;const D=us(l,m);D.style.transform=w}},setTransition:i=>{const o=t.slides.map(r=>Pn(r));o.forEach(r=>{r.style.transitionDuration=`${i}ms`,r.querySelectorAll(".swiper-slide-shadow").forEach(l=>{l.style.transitionDuration=`${i}ms`})}),zs({swiper:t,duration:i,transformElements:o})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}const rw=[O3,B3,L3,D3,R3,H3,z3,F3,N3,V3,Y3,q3,W3,j3,X3,G3,Z3,J3,ew,tw,sw,aw,iw];Ss.use(rw);const Fs=["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","_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 Ts(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Ms(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(s=>n.indexOf(s)<0).forEach(s=>{typeof t[s]>"u"?t[s]=e[s]:Ts(e[s])&&Ts(t[s])&&Object.keys(e[s]).length>0?e[s].__swiper__?t[s]=e[s]:Ms(t[s],e[s]):t[s]=e[s]})}function lw(t={}){return t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function ow(t={}){return t.pagination&&typeof t.pagination.el>"u"}function fw(t={}){return t.scrollbar&&typeof t.scrollbar.el>"u"}function vs(t=""){return t.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}const wd=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")return t},Sd=["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 Td(t,e,n){const s={},a={};Ms(s,va);const i=[...Fs,"on"],o=i.map(l=>l.replace(/_/,""));i.forEach(l=>{l=l.replace("_",""),typeof t[l]<"u"&&(a[l]=t[l])});const r=[...t.attributes];return typeof e=="string"&&typeof n<"u"&&r.push({name:e,value:n}),r.forEach(l=>{const f=Sd.filter(c=>l.name.indexOf(`${c}-`)===0)[0];if(f){const c=vs(f),u=vs(l.name.split(`${f}-`)[1]);typeof a[c]>"u"&&(a[c]={}),a[c]===!0&&(a[c]={enabled:!0}),a[c][u]=wd(l.value)}else{const c=vs(l.name);if(!o.includes(c))return;const u=wd(l.value);a[c]&&Sd.includes(l.name)?(a[c].constructor!==Object&&(a[c]={}),a[c].enabled=u):a[c]=u}}),Ms(s,a),s.navigation?s.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...s.navigation!==!0?s.navigation:{}}:s.navigation===!1&&delete s.navigation,s.scrollbar?s.scrollbar={el:".swiper-scrollbar",...s.scrollbar!==!0?s.scrollbar:{}}:s.scrollbar===!1&&delete s.scrollbar,s.pagination?s.pagination={el:".swiper-pagination",...s.pagination!==!0?s.pagination:{}}:s.pagination===!1&&delete s.pagination,{params:s,passedParams:a}}function cw({swiper:t,slides:e,passedParams:n,changedParams:s,nextEl:a,prevEl:i,scrollbarEl:o,paginationEl:r}){const l=s.filter(T=>T!=="children"&&T!=="direction"&&T!=="wrapperClass"),{params:f,pagination:c,navigation:u,scrollbar:d,virtual:m,thumbs:h}=t;let p,b,g,v,_,k,E,S;s.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&f.thumbs&&!f.thumbs.swiper&&(p=!0),s.includes("controller")&&n.controller&&n.controller.control&&f.controller&&!f.controller.control&&(b=!0),s.includes("pagination")&&n.pagination&&(n.pagination.el||r)&&(f.pagination||f.pagination===!1)&&c&&!c.el&&(g=!0),s.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(f.scrollbar||f.scrollbar===!1)&&d&&!d.el&&(v=!0),s.includes("navigation")&&n.navigation&&(n.navigation.prevEl||i)&&(n.navigation.nextEl||a)&&(f.navigation||f.navigation===!1)&&u&&!u.prevEl&&!u.nextEl&&(_=!0);const I=T=>{t[T]&&(t[T].destroy(),T==="navigation"?(t.isElement&&(t[T].prevEl.remove(),t[T].nextEl.remove()),f[T].prevEl=void 0,f[T].nextEl=void 0,t[T].prevEl=void 0,t[T].nextEl=void 0):(t.isElement&&t[T].el.remove(),f[T].el=void 0,t[T].el=void 0))};s.includes("loop")&&t.isElement&&(f.loop&&!n.loop?k=!0:!f.loop&&n.loop?E=!0:S=!0),l.forEach(T=>{if(Ts(f[T])&&Ts(n[T]))Ms(f[T],n[T]),(T==="navigation"||T==="pagination"||T==="scrollbar")&&"enabled"in n[T]&&!n[T].enabled&&I(T);else{const A=n[T];(A===!0||A===!1)&&(T==="navigation"||T==="pagination"||T==="scrollbar")?A===!1&&I(T):f[T]=n[T]}}),l.includes("controller")&&!b&&t.controller&&t.controller.control&&f.controller&&f.controller.control&&(t.controller.control=f.controller.control),s.includes("children")&&e&&m&&f.virtual.enabled&&(m.slides=e,m.update(!0)),s.includes("children")&&e&&f.loop&&(S=!0),p&&h.init()&&h.update(!0),b&&(t.controller.control=f.controller.control),g&&(t.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),t.el.shadowEl.appendChild(r)),r&&(f.pagination.el=r),c.init(),c.render(),c.update()),v&&(t.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),t.el.shadowEl.appendChild(o)),o&&(f.scrollbar.el=o),d.init(),d.updateSize(),d.setTranslate()),_&&(t.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),t.el.shadowEl.appendChild(a)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),t.el.shadowEl.appendChild(i))),a&&(f.navigation.nextEl=a),i&&(f.navigation.prevEl=i),u.init(),u.update()),s.includes("allowSlideNext")&&(t.allowSlideNext=n.allowSlideNext),s.includes("allowSlidePrev")&&(t.allowSlidePrev=n.allowSlidePrev),s.includes("direction")&&t.changeDirection(n.direction,!1),(k||S)&&t.loopDestroy(),(E||S)&&t.loopCreate(),t.update()}const uw="@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}",dw=":root{--swiper-theme-color:#007aff}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}:host(.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 swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight swiper-slide{height:auto}:host(.swiper-autoheight) .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}:host(.swiper-3d.swiper-css-mode) .swiper-wrapper{perspective:1200px}:host(.swiper-3d) .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d swiper-slide{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}:host(.swiper-css-mode)>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}:host(.swiper-css-mode)>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>swiper-slide{scroll-snap-align:start start}:host(.swiper-horizontal.swiper-css-mode)>.swiper-wrapper{scroll-snap-type:x mandatory}:host(.swiper-vertical.swiper-css-mode)>.swiper-wrapper{scroll-snap-type:y mandatory}:host(.swiper-css-mode.swiper-free-mode)>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>swiper-slide{scroll-snap-align:none}:host(.swiper-centered)>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered>swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}:host(.swiper-centered.swiper-horizontal)>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}:host(.swiper-centered.swiper-vertical)>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{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}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper-virtual swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}:host(.swiper-virtual.swiper-css-mode) .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}:host(.swiper-virtual.swiper-css-mode.swiper-horizontal) .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}:host(.swiper-virtual.swiper-css-mode.swiper-vertical) .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--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:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,:host(.swiper-rtl) .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-prev:after,:host(.swiper-rtl) .swiper-button-next:after{content:'prev'}.swiper-button-next,:host(.swiper-rtl) .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-next:after,:host(.swiper-rtl) .swiper-button-prev:after{content:'next'}.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,:host(.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}:host(.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;-ms-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}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper .swiper-notification,swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}:host(.swiper-free-mode)>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}:host(.swiper-grid)>.swiper-wrapper{flex-wrap:wrap}:host(.swiper-grid-column)>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode swiper-slide{transition-timing-function:ease-out}.swiper-fade swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade swiper-slide swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube 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 swiper-slide swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev,.swiper-cube swiper-slide-next+swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.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-flip{overflow:visible}.swiper-flip swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip swiper-slide swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}";let Ps=!0;const _a=(t,e)=>{let n=document.querySelector("style#swiper-element-styles");const s=n&&n.preInit&&!t;!t&&e&&e.cssLinks().forEach(a=>{const i=document.createElement("link");i.rel="stylesheet",i.href=a,document.head.prepend(i)}),(!n||s)&&(n=n||document.createElement("style"),n.textContent=[uw,e?e.cssStyles():""].join(` -`),n.id="swiper-element-styles",n.preInit=t,document.head.prepend(n))};class pw{}const gp=typeof window>"u"||typeof HTMLElement>"u"?pw:HTMLElement;class bp extends gp{constructor(){super(),this.tempDiv=document.createElement("div"),this.shadowEl=this.attachShadow({mode:"open"})}cssStyles(){return[Ps?dw:"",...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(` -`)}cssLinks(){return this.injectStylesUrls||[]}render(){if(this.rendered)return;Ps&&_a(!1,this);const e=this.cssStyles();e.length&&(this.stylesEl=document.createElement("style"),this.stylesEl.textContent=e,this.shadowEl.appendChild(this.stylesEl)),this.cssLinks().forEach(n=>{if(this.shadowEl.querySelector(`link[href="${n}"]`))return;const a=document.createElement("link");a.rel="stylesheet",a.href=n,this.shadowEl.appendChild(a)}),this.tempDiv.innerHTML=` - -
        - -
        - - ${lw(this.passedParams)?` -
        -
        - `:""} - ${ow(this.passedParams)?` -
        - `:""} - ${fw(this.passedParams)?` -
        - `:""} - `,[...this.tempDiv.children].forEach(n=>{this.shadowEl.appendChild(n)}),this.rendered=!0}initialize(){if(this.initialized)return;this.initialized=!0;const{params:e,passedParams:n}=Td(this);this.swiperParams=e,this.passedParams=n,delete this.swiperParams.init,this.render(),this.swiper=new Ss(this,{...e,touchEventsTarget:"container",...e.virtual?{}:{observer:!0},onAny:(s,...a)=>{const i=e.eventsPrefix?`${e.eventsPrefix}${s.toLowerCase()}`:s.toLowerCase(),o=new CustomEvent(i,{detail:a,bubbles:!0,cancelable:!0});this.dispatchEvent(o)}})}connectedCallback(){if(!(this.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM)){if(this.init===!1||this.getAttribute("init")==="false"){_a(!0,this);return}this.initialize()}}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||(this.swiper&&this.swiper.destroy&&this.swiper.destroy(),this.initialized=!1)}updateSwiperOnPropChange(e,n){const{params:s,passedParams:a}=Td(this,e,n);this.passedParams=a,this.swiperParams=s,cw({swiper:this.swiper,passedParams:this.passedParams,changedParams:[vs(e)],...e==="navigation"&&a[e]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{},...e==="pagination"&&a[e]?{paginationEl:".swiper-pagination"}:{},...e==="scrollbar"&&a[e]?{scrollbarEl:".swiper-scrollbar"}:{}})}attributeChangedCallback(e,n,s){this.initialized&&(n==="true"&&s===null&&(s=!1),this.updateSwiperOnPropChange(e,s))}static get observedAttributes(){return Fs.filter(n=>n.includes("_")).map(n=>n.replace(/[A-Z]/g,s=>`-${s}`).replace("_","").toLowerCase())}}Fs.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(bp.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t)}}))});class mw extends gp{constructor(){super(),this.tempDiv=document.createElement("div"),this.shadowEl=this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(this.tempDiv.innerHTML="",[...this.tempDiv.children].forEach(n=>{this.shadowEl.appendChild(n)}),e){const n=document.createElement("div");n.classList.add("swiper-lazy-preloader"),this.appendChild(n)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const hw=(t=!0)=>{typeof window>"u"||(t||(Ps=!1),Ps&&_a(!0),window.customElements.get("swiper-container")||window.customElements.define("swiper-container",bp),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",mw))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Fs.push(...t)});hw();function aa(t){const e=this,n=P(t);if(n.length===0)return;const s=n[0].swiper&&n[0].swiper.isElement;if(n[0].swiper&&!n[0].swiper.isElement)return;let a,i={},o,r;n.hasClass("tabs")&&(a=n.children("swiper-slide").indexOf(n.children(".tab-active")[0]),o=!0,r=n.find(".tabs-routable").length>0),n.attr("data-swiper")?i=JSON.parse(n.attr("data-swiper")):n[0].f7SwiperParams?i=n[0].f7SwiperParams:(i=n.dataset(),Object.keys(i).forEach(u=>{const d=i[u];if(typeof d=="string"&&d.indexOf("{")===0&&d.indexOf("}")>0)try{i[u]=JSON.parse(d)}catch{}})),typeof i.initialSlide>"u"&&typeof a<"u"&&(i.initialSlide=a);const l=s?n[0].swiper:e.swiper.create(n[0],i);s&&l.slideTo(a,0);function f(){l.update()}const c=n.parents(".tab").filter(u=>P(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",f),n.parents(".panel").on("panel:open",f),c&&c.length&&c.on("tab:show",f),l.on("beforeDestroy",()=>{n.parents(".popup, .login-screen, .sheet-modal, .popover").off("modal:open",f),n.parents(".panel").off("panel:open",f),c&&c.length&&c.off("tab:show",f)}),o&&l.on("slideChange",()=>{if(r){let u=e.views.get(n.parents(".view"));u||(u=e.views.main);const d=u.router,m=d.findTabRouteUrl(P(l.slides).eq(l.activeIndex)[0]);m&&setTimeout(()=>{d.navigate(m)},0)}else e.tab.show({tabEl:P(l.slides).eq(l.activeIndex)})})}const gw={name:"swiper",static:{Swiper:Ss},create(){const t=this;t.swiper=ct({defaultSelector:".swiper",constructor:Ss,domProp:"swiper"})},on:{pageMounted(t){const e=this;t.$el.find("swiper-container.tabs").each(n=>{aa.call(e,n)})},pageInit(t){const e=this;t.$el.find("swiper-container.tabs").each(n=>{aa.call(e,n)})},pageReinit(t){const e=this;t.$el.find("swiper-container.tabs").each(n=>{const s=e.swiper.get(n);s&&s.update&&s.update()})},tabMounted(t){const e=this;P(t).find("swiper-container.tabs").each(n=>{aa.call(e,n)})},tabShow(t){const e=this;P(t).find("swiper-container.tabs").each(n=>{const s=e.swiper.get(n);s&&s.update&&s.update()})},tabBeforeRemove(t){const e=this;P(t).find("swiper-container.tabs").each(n=>{e.swiper.destroy(n)})}}};let bw=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this;s.app=e;const a=te({on:{}},e.params.photoBrowser);s.useModulesParams(a),s.params=te(a,n),te(s,{exposed:!1,opened:!1,activeIndex:s.params.swiper.initialSlide,url:s.params.url,swipeToClose:{allow:!0,isTouched:!1,diff:void 0,start:void 0,current:void 0,started:!1,activeSlide:void 0,timeStart:void 0}}),s.useModules(),s.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 s=e.activeIndex+1,a=n.params.virtualSlides?n.params.photos.length:e.slides.length;e.params.loop&&(a-=2,s-=e.loopedSlides,s<1&&(s=a+s),s>a&&(s-=a));const i=n.params.virtualSlides?P(e.wrapperEl).find(`.swiper-slide[data-swiper-slide-index="${e.activeIndex}"]`):P(e.slides).eq(e.activeIndex),o=n.params.virtualSlides?P(e.wrapperEl).find(`.swiper-slide[data-swiper-slide-index="${e.previousIndex}"]`):P(e.slides).eq(e.previousIndex);let r=n.$el.find(".photo-browser-current"),l=n.$el.find(".photo-browser-total"),f;if(n.params.type==="page"&&n.params.navbar&&r.length===0&&n.app.theme==="ios"&&(f=n.app.navbar.getElByPage(n.$el),f&&(r=P(f).find(".photo-browser-current"),l=P(f).find(".photo-browser-total"))),r.length&&l.length&&(r.text(s),l.text(a),f||(f=r.parents(".navbar")[0]),f&&n.app.navbar.size(f)),n.captions.length>0){const u=e.params.loop?i.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 c=o.find("video");c.length>0&&"pause"in c[0]&&c[0].pause()}onTouchStart(){const n=this.swipeToClose;n.allow&&(n.isTouched=!0)}onTouchMove(e){const n=this,s=n.swipeToClose;s.isTouched&&(s.started||(s.started=!0,s.start=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY,n.params.virtualSlides?s.activeSlide=P(n.swiper.wrapperEl).children(".swiper-slide-active"):s.activeSlide=P(n.swiper.slides).eq(n.swiper.activeIndex),s.timeStart=Ht()),e.preventDefault(),s.current=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY,s.diff=s.start-s.current,n.$el.transition(0).transform(`translate3d(0,${-s.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 s=Math.abs(n.diff),a=new Date().getTime()-n.timeStart;if(a<300&&s>20||a>=300&&s>100){_t(()=>{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}s!==0?e.$el.addClass("photo-browser-transitioning").transitionEnd(()=>{n.allow=!0,e.$el.removeClass("photo-browser-transitioning")}):n.allow=!0,_t(()=>{e.$el.transform("").transition("")})}renderNavbar(){const e=this;if(e.params.renderNavbar)return e.params.renderNavbar.call(e);const n=e.params.iconsColor,s=e.app.theme==="ios"&&e.params.pageBackLinkText?e.params.pageBackLinkText:"",a=typeof e.params.navbarShowCount>"u"?e.params.photos.length>1:e.params.navbarShowCount,i=e.params.type!=="page";return R("div",{class:`navbar navbar-photo-browser ${e.params.theme==="dark"?"navbar-photo-browser-dark":""}`},R("div",{class:"navbar-bg"}),R("div",{class:"navbar-inner navbar-inner-centered-title sliding"},!i&&R("div",{class:"left"},R("a",{class:`link ${s?"":"icon-only"} back`},R("i",{class:`icon icon-back ${n?`color-${n}`:""}`}),s&&R("span",null,s))),a&&R("div",{class:"title"},R("span",{class:"photo-browser-current"}),R("span",{class:"photo-browser-of"},e.params.navbarOfText),R("span",{class:"photo-browser-total"})),i&&(e.params.popupCloseLinkText||e.params.popupCloseLinkIcon)&&R("div",{class:"right"},R("a",{class:"link popup-close","data-popup":".photo-browser-popup"},e.params.popupCloseLinkIcon&&e.app.theme==="ios"&&R("i",null,R("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",viewBox:"0 0 56 56"},R("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"&&R("i",null,R("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor"},R("path",{d:"M0 0h24v24H0V0z",fill:"none"}),R("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&&R("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 R("div",{class:"toolbar toolbar-bottom tabbar"},R("div",{class:"toolbar-inner"},R("a",{class:"link photo-browser-prev"},R("i",{class:`icon icon-back ${n?`color-${n}`:""}`})),R("a",{class:"link photo-browser-next"},R("i",{class:`icon icon-forward ${n?`color-${n}`:""}`}))))}renderThumbs(){const e=this;return R("div",{class:"toolbar toolbar-bottom photo-browser-thumbs"},R("div",{class:"swiper"},R("div",{class:"swiper-wrapper"},e.params.thumbs.map((n,s)=>e.renderThumb(n,s)))))}renderCaption(e,n){const s=this;return s.params.renderCaption?s.params.renderCaption.call(s,e,n):R("div",{class:"photo-browser-caption","data-caption-index":n},e)}renderObject(e,n){const s=this;return s.params.renderObject?s.params.renderObject.call(s,e,n):R("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 s=this;return s.params.renderLazyPhoto?s.params.renderLazyPhoto.call(s,e,n):R("div",{class:"photo-browser-slide photo-browser-slide-lazy swiper-slide","data-swiper-slide-index":n},R("div",{class:"swiper-lazy-preloader"}),R("span",{class:"swiper-zoom-container"},R("img",{loading:"lazy",src:e.url?e.url:e})))}renderPhoto(e,n){const s=this;return s.params.renderPhoto?s.params.renderPhoto.call(s,e,n):R("div",{class:"photo-browser-slide swiper-slide","data-swiper-slide-index":n},R("span",{class:"swiper-zoom-container"},R("img",{src:e.url?e.url:e})))}renderThumb(e,n){const s=this,a=typeof e=="string"?e:e.url;return s.params.renderThumb?s.params.renderThumb.call(s,e,n):R("div",{class:"photo-browser-thumbs-slide swiper-slide","data-swiper-slide-index":n},a&&R("img",{src:a,loading:"lazy"}))}render(){const e=this;return e.params.render?e.params.render.call(e,e.params):R("div",{class:`photo-browser photo-browser-${e.params.theme}`},R("div",{class:"view"},R("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(),R("div",{class:`photo-browser-captions photo-browser-captions-${e.params.captionsTheme||e.params.theme}`},e.params.photos.map((n,s)=>n.caption?e.renderCaption(n.caption,s):"")),R("div",{class:"photo-browser-swiper-container swiper"},R("div",{class:"photo-browser-swiper-wrapper swiper-wrapper"},!e.params.virtualSlides&&e.params.photos.map((n,s)=>n.html||(typeof n=="string"||n instanceof String)&&n.indexOf("<")>=0&&n.indexOf(">")>=0?e.renderObject(n,s):e.params.lazy===!0?e.renderLazyPhoto(n,s):e.renderPhoto(n,s)))))))}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 s=this,a=s.app,i=P(n);i[0].f7PhotoBrowser=s,s.$el=i,s.el=i[0],s.openedIn=e,s.opened=!0,s.$swiperContainerEl=s.$el.find(".photo-browser-swiper-container"),s.$swiperWrapperEl=s.$el.find(".photo-browser-swiper-wrapper"),s.slides=s.$el.find(".photo-browser-slide"),s.$captionsContainerEl=s.$el.find(".photo-browser-captions"),s.captions=s.$el.find(".photo-browser-caption");const o=s.params.thumbs&&s.params.thumbs.length>0;let r,l,f;const c=s.activeIndex,u=te({},s.params.swiper,{initialSlide:c,on:{click(m){clearTimeout(r),s.params.exposition&&(r=setTimeout(()=>{s.expositionToggle()},350)),s.emit("local::tap",m),s.emit("local::click",m)},doubleClick(m){clearTimeout(r),s.emit("local::doubleTap",m),s.emit("local::doubleClick",m)},slideChange(){const m=this;o&&s.thumbsSwiper&&!f&&(l=!0,s.thumbsSwiper.slideTo(s.swiper.activeIndex),setTimeout(()=>{l=!1})),s.onSlideChange(m);for(var h=arguments.length,p=new Array(h),b=0;b=0&&m.indexOf(">")>=0?s.renderObject(m,h):s.params.lazy===!0?s.renderLazyPhoto(m,h):s.renderPhoto(m,h)}}});const d=Se();if(s.swiper=a.swiper?a.swiper.create(s.$swiperContainerEl[0],u):new d.Swiper(s.$swiperContainerEl[0],u),(s.activeIndex===0||s.params.virtualSlides)&&s.onSlideChange(s.swiper),o){const m={el:s.$el.find(".photo-browser-thumbs .swiper")[0],slidesPerView:"auto",centeredSlides:!0,spaceBetween:4,watchSlidesProgress:!0,initialSlide:c,on:{touchMove(){f=!0},touchEnd(){f=!1},slideChange(h){l||s.swiper.slideTo(h.activeIndex,0)},click(h){if(!h.clickedSlide)return;const p=parseInt(P(h.clickedSlide).attr("data-swiper-slide-index"),10);h.slideTo(p,0)}}};s.thumbsSwiper=a.swiper?a.swiper.create(m):new d.Swiper(m)}s.$el&&s.$el.trigger("photobrowser:open"),s.emit("local::open photoBrowserOpen",s)}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(s,a){e.view.$el.addClass(`with-photo-browser-page with-photo-browser-page-${e.params.theme}`),e.onOpen("page",a.el)},pageAfterIn(s,a){e.onOpened("page",a.el)},pageBeforeOut(s,a){e.view.$el.removeClass(`with-photo-browser-page with-photo-browser-page-exposed with-photo-browser-page-${e.params.theme}`),e.onClose("page",a.el)},pageAfterOut(s,a){e.onClosed("page",a.el)}}}}),e}openStandalone(){const e=this;if(e.opened)return e;const s={backdrop:!1,content:e.renderStandalone(),on:{popupOpen(a){e.onOpen("popup",a.el)},popupOpened(a){e.onOpened("popup",a.el)},popupClose(a){e.onClose("popup",a.el)},popupClosed(a){e.onClosed("popup",a.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:s}}):e.modal=e.app.popup.create(s).open(),e}openPopup(){const e=this;if(e.opened)return e;const s={content:e.renderPopup(),push:e.params.popupPush,closeByBackdropClick:e.params.closeByBackdropClick,on:{popupOpen(a){e.onOpen("popup",a.el)},popupOpened(a){e.onOpened("popup",a.el)},popupClose(a){e.onClose("popup",a.el)},popupClosed(a){e.onClosed("popup",a.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:s}}):e.modal=e.app.popup.create(s).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,s=n.params.type;return n.opened?(n.swiper&&typeof e<"u"&&n.swiper.slideTo(parseInt(e,10)),n):(typeof e<"u"&&(n.activeIndex=e),s==="standalone"&&n.openStandalone(),s==="page"&&n.openPage(),s==="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",()=>{_t(()=>{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),ft(e),e.destroyed=!0,e=null}};const Md=bw,vw={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=ct({defaultSelector:".photo-browser-popup, .photo-browser-page",constructor:Md,app:t,domProp:"f7PhotoBrowser"})},static:{PhotoBrowser:Md}};let _w=class extends Qt{constructor(e,n){const s=te({on:{}},e.params.notification,n);super(e,s);const a=this;a.app=e,a.params=s;const{icon:i,title:o,titleRightText:r,subtitle:l,text:f,closeButton:c,closeTimeout:u,cssClass:d,closeOnClick:m}=a.params;let h;if(a.params.el)h=P(a.params.el);else{const O=a.render({icon:i,title:o,titleRightText:r,subtitle:l,text:f,closeButton:c,cssClass:d});h=P(O)}if(h&&h.length>0&&h[0].f7Modal)return h[0].f7Modal;if(h.length===0)return a.destroy();te(a,{$el:h,el:h[0],type:"notification"}),h[0].f7Modal=a,c&&h.find(".notification-close-button").on("click",()=>{a.close()}),h.on("click",O=>{c&&P(O.target).closest(".notification-close-button").length||(a.emit("local::click notificationClick",a),m&&a.close())}),a.on("beforeDestroy",()=>{h.off("click")});let p,b,g,v,_,k;const E={};function S(O){p||(p=!0,b=!1,g=void 0,_=Ht(),E.x=O.type==="touchstart"?O.targetTouches[0].pageX:O.pageX,E.y=O.type==="touchstart"?O.targetTouches[0].pageY:O.pageY)}function I(O){if(!p)return;const L=O.type==="touchmove"?O.targetTouches[0].pageX:O.pageX,j=O.type==="touchmove"?O.targetTouches[0].pageY:O.pageY;if(typeof g>"u"&&(g=!!(g||Math.abs(j-E.y)0&&(W=v**.8),a.$el.transform(`translate3d(0, ${W}px, 0)`)}function T(){if(!p||!b){p=!1,b=!1;return}if(p=!1,b=!1,v===0)return;const O=Ht()-_;a.$el.transition(""),a.$el.addClass("notification-transitioning"),a.$el.transform(""),(v<-10&&O<300||-v>=k/1)&&a.close()}function A(){a.$el.on(e.touchEvents.start,S,{passive:!0}),e.on("touchmove:active",I),e.on("touchend:passive",T)}function y(){a.$el.off(e.touchEvents.start,S,{passive:!0}),e.off("touchmove:active",I),e.off("touchend:passive",T)}let w;function D(){w=_t(()=>{if(p&&b){D();return}a.close()},u)}return a.on("open",()=>{a.params.swipeToClose&&A(),P(".notification.modal-in").each(O=>{const L=e.notification.get(O);O!==a.el&&L&&L.close()}),u&&D()}),a.on("close beforeDestroy",()=>{a.params.swipeToClose&&y(),clearTimeout(w)}),a}render(){const e=this;if(e.params.render)return e.params.render.call(e,e);const{icon:n,title:s,titleRightText:a,subtitle:i,text:o,closeButton:r,cssClass:l}=e.params;return R("div",{class:`notification ${n?"notification-with-icon":""} ${l||""}`},R("div",{class:"notification-header"},n&&R("div",{class:"notification-icon"},n),s&&R("div",{class:"notification-title"},s),a&&R("div",{class:"notification-title-right-text"},a),r&&R("span",{class:"notification-close-button"})),R("div",{class:"notification-content"},i&&R("div",{class:"notification-subtitle"},i),o&&R("div",{class:"notification-text"},o)))}};const Pd=_w,kw={name:"notification",static:{Notification:Pd},create(){const t=this;t.notification=te({},on({app:t,constructor:Pd,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 Ew=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this;s.app=e;const a=Ke(),i=te({on:{}},e.params.autocomplete);s.useModulesParams(i),s.params=te(i,n);let o;s.params.openerEl&&(o=P(s.params.openerEl),o.length&&(o[0].f7Autocomplete=s));let r;s.params.inputEl&&(r=P(s.params.inputEl),r.length&&(r[0].f7Autocomplete=s));const l=Rs();let f=n.url;!f&&o&&o.length&&(o.attr("href")?f=o.attr("href"):o.find("a").length>0&&(f=o.find("a").attr("href"))),(!f||f==="#"||f==="")&&(f=s.params.url);const c=s.params.multiple?"checkbox":"radio";te(s,{$openerEl:o,openerEl:o&&o[0],$inputEl:r,inputEl:r&&r[0],id:l,url:f,value:s.params.value||[],inputType:c,inputName:`${c}-${l}`,$modalEl:void 0,$dropdownEl:void 0});let u="";function d(){let E=s.$inputEl.val().trim();s.params.source&&s.params.source.call(s,E,S=>{let I="";const T=s.params.limit?Math.min(s.params.limit,S.length):S.length;s.items=S;let A;s.params.highlightMatches&&(E=E.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),A=new RegExp(`(${E})`,"i"));let y,w;for(let D=0;D$1"):L},D)}if(I===""&&E===""&&s.params.dropdownPlaceholderText&&(I+=s.renderItem({placeholder:!0,text:s.params.dropdownPlaceholderText})),s.$dropdownEl.find("ul").html(I),s.params.typeahead){if(!y||!w||y.toLowerCase().indexOf(E.toLowerCase())!==0)return;if(u.toLowerCase()===E.toLowerCase()){s.value=[];return}if(u.toLowerCase().indexOf(E.toLowerCase())===0){u=E,s.value=[];return}r.val(y),r[0].setSelectionRange(E.length,y.length);const D=typeof s.value[0]=="object"?s.value[0][s.params.valueProperty]:s.value[0];(!D||y.toLowerCase()!==D.toLowerCase())&&(s.value=[w],s.emit("local::change autocompleteChange",[w]))}u=E})}function m(){const E=this,S=E.value,I=P(E).parents(".autocomplete-values").length>0;let T,A,y;if(I){if(s.inputType==="checkbox"&&!E.checked){for(let w=0;w0||setTimeout(()=>{s.close()},0)}function v(){s.positionDropdown()}function _(E){if(!s.opened)return;if(E.keyCode===27){E.preventDefault(),s.$inputEl.blur();return}if(E.keyCode===13){const T=s.$dropdownEl.find(".autocomplete-dropdown-selected label");if(T.length){E.preventDefault(),T.trigger("click"),s.$inputEl.blur();return}s.params.typeahead&&(E.preventDefault(),s.$inputEl.blur());return}if(E.keyCode!==40&&E.keyCode!==38)return;E.preventDefault();const S=s.$dropdownEl.find(".autocomplete-dropdown-selected");let I;S.length?(I=S[E.keyCode===40?"next":"prev"]("li"),I.length||(I=s.$dropdownEl.find("li").eq(E.keyCode===40?0:s.$dropdownEl.find("li").length-1))):I=s.$dropdownEl.find("li").eq(E.keyCode===40?0:s.$dropdownEl.find("li").length-1),!I.hasClass("autocomplete-dropdown-placeholder")&&(S.removeClass("autocomplete-dropdown-selected"),I.addClass("autocomplete-dropdown-selected"))}function k(){const E=P(this);let S;for(let I=0;I{_t(()=>{s.close()})})},s.detachPageEvents=function(){s.$el.off("change",'input[type="radio"], input[type="checkbox"]',m)},s.useModules(),s.init(),s}get view(){const e=this,{$openerEl:n,$inputEl:s,app:a}=e;let i;if(e.params.view)i=e.params.view;else if(n||s){const o=n||s;i=o.closest(".view").length&&o.closest(".view")[0].f7View}return i||(i=a.views.main),i}positionDropdown(){const e=this,{$inputEl:n,app:s,$dropdownEl:a}=e,i=n.parents(".page-content");if(i.length===0)return;const o=n.offset(),r=n[0].offsetWidth,l=n[0].offsetHeight,f=n.parents(".list");let c;f.parents().each(_=>{if(c)return;const k=P(_);k.parent(i).length&&(c=k)});const u=f.offset(),d=parseInt(i.css("padding-bottom"),10),m=f.length>0?u.left-i.offset().left:0,h=o.left-(f.length>0?u.left:0)-(s.rtl,0),p=o.top-(i.offset().top-i[0].scrollTop),b=i[0].scrollHeight-d-(p+i[0].scrollTop)-n[0].offsetHeight,g=s.rtl?"padding-right":"padding-left";let v;f.length&&(v=(s.rtl?f[0].offsetWidth-h-r:h)-(s.theme==="md"?16:15)),a.css({left:`${f.length>0?m:h}px`,top:`${p+i[0].scrollTop+l}px`,width:`${f.length>0?f[0].offsetWidth:r}px`}),a.children(".autocomplete-dropdown-inner").css({maxHeight:`${b}px`,[g]:f.length>0?`${v}px`:""})}focus(){this.$el.find("input[type=search]").focus()}source(e){const n=this;if(!n.params.source)return;const{$el:s}=n;n.params.source.call(n,e,a=>{let i="";const o=n.params.limit?Math.min(n.params.limit,a.length):a.length;n.items=a;for(let r=0;r"u"&&e.$openerEl&&e.$openerEl.length&&(n=e.$openerEl.find(".item-title").text().trim());const s=e.params.openIn==="popup",a=s?e.params.preloader&&R("div",{class:"left"},e.renderPreloader()):R("div",{class:"left sliding"},R("a",{class:"link back"},R("i",{class:"icon icon-back"}),R("span",{class:"if-not-md"},e.params.pageBackLinkText))),i=s?R("div",{class:"right"},R("a",{class:"link popup-close","data-popup":".autocomplete-popup"},e.params.popupCloseLinkText)):e.params.preloader&&R("div",{class:"right"},e.renderPreloader());return R("div",{class:`navbar ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},R("div",{class:"navbar-bg"}),R("div",{class:`navbar-inner ${e.params.navbarColorTheme?`color-${e.params.navbarColorTheme}`:""}`},a,n&&R("div",{class:"title sliding"},n),i,R("div",{class:"subnavbar sliding"},e.renderSearchbar())))}renderDropdown(){const e=this;return e.params.renderDropdown?e.params.renderDropdown.call(e,e.items):R("div",{class:"autocomplete-dropdown"},R("div",{class:"autocomplete-dropdown-inner"},R("div",{class:"list no-safe-areas"},R("ul",null))),e.params.preloader&&e.renderPreloader())}renderPage(e){const n=this;return n.params.renderPage?n.params.renderPage.call(n,n.items):R("div",{class:"page page-with-subnavbar autocomplete-page","data-name":"autocomplete-page"},n.renderNavbar(e),R("div",{class:"searchbar-backdrop"}),R("div",{class:"page-content"},R("div",{class:`list autocomplete-list autocomplete-found autocomplete-list-${n.id} ${n.params.formColorTheme?`color-${n.params.formColorTheme}`:""}`},R("ul",null)),R("div",{class:"list autocomplete-not-found"},R("ul",null,R("li",{class:"item-content"},R("div",{class:"item-inner"},R("div",{class:"item-title"},n.params.notFoundText))))),R("div",{class:"list autocomplete-values"},R("ul",null))))}renderPopup(){const e=this;return e.params.renderPopup?e.params.renderPopup.call(e,e.items):R("div",{class:"popup autocomplete-popup"},R("div",{class:"view"},e.renderPage(!0),";"))}onOpen(e,n){const s=this,a=s.app,i=P(n);if(s.$el=i,s.el=i[0],s.openedIn=e,s.opened=!0,s.params.openIn==="dropdown")s.attachDropdownEvents(),s.$dropdownEl.addClass("autocomplete-dropdown-in"),s.$inputEl.trigger("input");else{let o=i.find(".searchbar");s.params.openIn==="page"&&a.theme==="ios"&&o.length===0&&(o=P(a.navbar.getElByPage(i)).find(".searchbar")),s.searchbar=a.searchbar.create({el:o,backdropEl:i.find(".searchbar-backdrop"),customSearch:!0,on:{search(r,l){l.length===0&&s.searchbar.enabled?s.searchbar.backdropShow():s.searchbar.backdropHide(),s.source(l)}}}),s.attachPageEvents(),s.updateValues(),s.params.requestSourceOnOpen&&s.source("")}s.emit("local::open autocompleteOpen",s)}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(s,a){e.onOpen("page",a.el)},pageAfterIn(s,a){e.onOpened("page",a.el)},pageBeforeOut(s,a){e.onClose("page",a.el)},pageAfterOut(s,a){e.onClosed("page",a.el)}},options:{animate:e.params.animate}}}),e}openPopup(){const e=this;if(e.opened)return e;const s={content:e.renderPopup(),animate:e.params.animate,push:e.params.popupPush,swipeToClose:e.params.popupSwipeToClose,on:{popupOpen(a){e.onOpen("popup",a.el)},popupOpened(a){e.onOpened("popup",a.el)},popupClose(a){e.onClose("popup",a.el)},popupClosed(a){e.onClosed("popup",a.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:s}}):e.modal=e.app.popup.create(s).open(e.params.animate),e}openDropdown(){const e=this;e.$dropdownEl||(e.$dropdownEl=P(e.renderDropdown()));const n=e.$inputEl.parents(".page-content");e.params.dropdownContainerEl?P(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((s,a)=>a===0?s.toUpperCase():s).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",()=>{_t(()=>{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,ft(e),e.destroyed=!0}};const Id=Ew,Cw={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:Id},create(){const t=this;t.autocomplete=te(ct({defaultSelector:void 0,constructor:Id,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 yw=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this,a=it(),i=te({},e.params.tooltip),o=Le();s.useModulesParams(i),s.params=te(i,n),typeof n.offset>"u"&&a.touch&&s.params.trigger==="hover"&&(s.params.offset=10);const{targetEl:r,containerEl:l}=s.params;if(!r&&!s.params.delegated)return s;const f=P(r);if(f.length===0&&!s.params.delegated)return s;if(f[0]&&f[0].f7Tooltip&&!s.params.delegated)return f[0].f7Tooltip;let c=P(l||e.$el).eq(0);c.length===0&&(c=e.$el);const u=P(s.render()).eq(0);te(s,{app:e,$targetEl:f,targetEl:f&&f[0],$containerEl:c,containerEl:c&&c[0],$el:u,el:u&&u[0],text:s.params.text||"",visible:!1,opened:!1}),f[0]&&(f[0].f7Tooltip=s);const d={};let m;function h(){s.opened?s.hide():s.show(this)}function p(S){s.opened&&(P(S.target).closest(f).length||P(S.target).closest(s.$el).length)||s.hide()}function b(S){m||(m=!0,d.x=S.type==="touchstart"?S.targetTouches[0].pageX:S.pageX,d.y=S.type==="touchstart"?S.targetTouches[0].pageY:S.pageY,s.show(this))}function g(S){if(!m)return;const I=S.type==="touchmove"?S.targetTouches[0].pageX:S.pageX,T=S.type==="touchmove"?S.targetTouches[0].pageY:S.pageY;((I-d.x)**2+(T-d.y)**2)**.5>50&&(m=!1,s.hide())}function v(){m&&(m=!1,s.hide())}function _(){s.show(this)}function k(){s.hide()}function E(){u.hasClass("tooltip-in")||u.removeClass("tooltip-out").remove()}return s.attachEvents=function(){if(u.on("transitionend",E),s.params.trigger==="click"){s.params.delegated?P(o).on("click",s.params.targetEl,h):s.$targetEl.on("click",h),P("html").on("click",p);return}if(s.params.trigger!=="manual")if(a.touch){const I=a.passiveListener?{passive:!0}:!1;s.params.delegated?P(o).on(e.touchEvents.start,s.params.targetEl,b,I):s.$targetEl.on(e.touchEvents.start,b,I),e.on("touchmove",g),e.on("touchend:passive",v)}else s.params.delegated?(P(o).on(a.pointerEvents?"pointerenter":"mouseenter",s.params.targetEl,_,!0),P(o).on(a.pointerEvents?"pointerleave":"mouseleave",s.params.targetEl,k,!0)):(s.$targetEl.on(a.pointerEvents?"pointerenter":"mouseenter",_),s.$targetEl.on(a.pointerEvents?"pointerleave":"mouseleave",k))},s.detachEvents=function(){if(u.off("transitionend",E),s.params.trigger==="click"){s.params.delegated?P(o).on("click",s.params.targetEl,h):s.$targetEl.off("click",h),P("html").off("click",p);return}if(s.params.trigger!=="manual")if(a.touch){const I=a.passiveListener?{passive:!0}:!1;s.params.delegated?P(o).off(e.touchEvents.start,s.params.targetEl,b,I):s.$targetEl.off(e.touchEvents.start,b,I),e.off("touchmove",g),e.off("touchend:passive",v)}else s.params.delegated?(P(o).off(a.pointerEvents?"pointerenter":"mouseenter",s.params.targetEl,_,!0),P(o).off(a.pointerEvents?"pointerleave":"mouseleave",s.params.targetEl,k,!0)):(s.$targetEl.off(a.pointerEvents?"pointerenter":"mouseenter",_),s.$targetEl.off(a.pointerEvents?"pointerleave":"mouseleave",k))},s.useModules(),s.init(),s}setTargetEl(e){const n=this;return n.detachEvents(),n.$targetEl=P(e),n.targetEl=n.$targetEl[0],n.attachEvents(),n}position(e){const n=this,{$el:s,app:a,$containerEl:i}=n,o=!!n.params.containerEl,r=n.params.offset||0;s.css({left:"",top:""});const l=P(e||n.targetEl),[f,c]=[s.width(),s.height()];s.css({left:"",top:""});let u,d,m,h;const p=o&&i.length?i[0].getBoundingClientRect():a;if(l&&l.length>0){if(u=l.outerWidth(),d=l.outerHeight(),typeof u>"u"&&typeof d>"u"){const E=l[0].getBoundingClientRect();u=E.width,d=E.height}const _=l.offset();m=_.left-p.left,h=_.top-p.top;const k=l.parents(".page");k.length>0&&(h-=k[0].scrollTop)}let[b,g]=[0,0,0],v="top";c+r=p.height&&(g=p.height-c-8)),v==="top"||v==="bottom"?(b=u/2+m-f/2,b<8&&(b=8),b+f>p.width&&(b=p.width-f-8),b<0&&(b=0)):v==="middle"&&(b=m-f,(b<8||b+f>p.width)&&(b<8&&(b=m+u),b+f>p.width&&(b=p.width-f-8))),s.css({top:`${g}px`,left:`${b}px`})}show(e){const n=this,{$el:s,$targetEl:a,$containerEl:i}=n;i[0]&&s[0]&&!i[0].contains(s[0])&&i.append(s),n.position(e);const o=P(e);return n.visible=!0,n.opened=!0,a.trigger("tooltip:show"),s.trigger("tooltip:show"),o.length&&o[0]!==a[0]&&o.trigger("tooltip:show"),n.emit("local::show tooltipShow",n),s.removeClass("tooltip-out").addClass("tooltip-in"),n}hide(){const e=this,{$el:n,$targetEl:s}=e;return e.visible=!1,e.opened=!1,s.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:s}=e.params;return` -
        -
        ${s||""}
        -
        - `.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(),ft(e),e.destroyed=!0)}};const Ad=yw,ww={name:"tooltip",static:{Tooltip:Ad},create(){const t=this;t.tooltip=ct({defaultSelector:".tooltip",constructor:Ad,app:t,domProp:"f7Tooltip"}),t.tooltip.show=function(n){const s=P(n);if(s.length===0)return;const a=s[0].f7Tooltip;if(a)return a.show(s[0]),a},t.tooltip.hide=function(n){const s=P(n);if(s.length===0)return;const a=s[0].f7Tooltip;if(a)return a.hide(),a},t.tooltip.setText=function(n,s){const a=P(n);if(a.length===0)return;const i=a[0].f7Tooltip;if(i)return i.setText(s),i}},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;P(t).find(".tooltip-init").each(n=>{const s=P(n).attr("data-tooltip");s&&e.tooltip.create({targetEl:n,text:s})})},tabBeforeRemove(t){P(t).find(".tooltip-init").each(e=>{e.f7Tooltip&&e.f7Tooltip.destroy()})},pageInit(t){const e=this;t.$el.find(".tooltip-init").each(n=>{const s=P(n).attr("data-tooltip");s&&e.tooltip.create({targetEl:n,text:s})}),e.theme==="ios"&&t.view&&t.view.router.dynamicNavbar&&t.$navbarEl&&t.$navbarEl.length>0&&t.$navbarEl.find(".tooltip-init").each(n=>{const s=P(n).attr("data-tooltip");s&&e.tooltip.create({targetEl:n,text:s})})},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,s=P(n).attr("data-tooltip");s&&e.tooltip.create({targetEl:n,text:s})},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()}}}},Sw={name:"skeleton"},Tw={render(t){const{sliderLabel:e,sliderValue:n,sliderValueEditable:s,alphaLabelText:a}=t.params;return R("div",{class:"color-picker-module color-picker-module-alpha-slider"},R("div",{class:"color-picker-slider-wrap"},e&&R("div",{class:"color-picker-slider-label"},a),R("div",{class:"range-slider color-picker-slider color-picker-slider-alpha"}),n&&R("div",{class:"color-picker-slider-value"},s?R("input",{type:"number",step:"0.01",min:"0",max:"1",class:"color-picker-value-alpha"}):R("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,s){const a=Math.floor(s*100)/100;t.setValue({alpha:a})}}});function e(n){const s=t.value.alpha;let a=parseFloat(n.target.value);if(Number.isNaN(a)){n.target.value=s;return}a=Math.max(0,Math.min(1,a)),t.setValue({alpha:a})}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:s}=t.params,{alpha:a}=e;t.alphaRangeSlider.value=a,t.alphaRangeSlider.layout(),n&&s?t.$el.find("input.color-picker-value-alpha").val(a):t.$el.find("span.color-picker-value-alpha").text(a)},destroy(t){t.alphaRangeSlider&&t.alphaRangeSlider.destroy&&t.alphaRangeSlider.destroy(),delete t.alphaRangeSlider,t.destroyAlphaSliderEvents&&t.destroyAlphaSliderEvents(),delete t.destroyAlphaSliderEvents}},Mw={render(){return R("div",{class:"color-picker-module color-picker-module-current-color"},R("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)}},Pw={render(t){const{hexLabel:e,hexLabelText:n,hexValueEditable:s}=t.params;return R("div",{class:"color-picker-module color-picker-module-hex"},R("div",{class:"color-picker-hex-wrap"},e&&R("div",{class:"color-picker-hex-label"},n),R("div",{class:"color-picker-hex-value"},s?R("input",{type:"text",class:"color-picker-value-hex"}):R("span",{class:"color-picker-value-hex"}))))},init(t){function e(n){const s=t.value.hex;let a=n.target.value.replace(/#/g,"");if(Number.isNaN(a)||!a||a.length!==3&&a.length!==6){n.target.value=s;return}const i=0,o=parseInt(a,16),r=parseInt("ffffff",16);o>r&&(a="fff"),o{if(Array.isArray(e)){let n='
        ';return n+=e.map(s=>` -
        - `).join(""),n+="
        ",n}return R("div",{class:"color-picker-palette-value","data-palette-color":e,style:`background-color: ${e}`})})))},init(t){function e(n){const s=P(n.target).attr("data-palette-color");t.setValue({hex:s})}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}},Lw={render(){return R("div",{class:"color-picker-module color-picker-module-initial-current-colors"},R("div",{class:"color-picker-initial-current-colors"},R("div",{class:"color-picker-initial-color"}),R("div",{class:"color-picker-current-color"})))},init(t){function e(){if(t.initialValue){const{hex:n,alpha:s}=t.initialValue;t.setValue({hex:n,alpha:s})}}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}},Dw={render(t){const{barLabel:e,barValue:n,barValueEditable:s,redLabelText:a,greenLabelText:i,blueLabelText:o}=t.params;return R("div",{class:"color-picker-module color-picker-module-rgb-bars"},R("div",{class:"color-picker-bar-wrap"},e&&R("div",{class:"color-picker-bar-label"},a),R("div",{class:"range-slider color-picker-bar color-picker-bar-red"}),n&&R("div",{class:"color-picker-bar-value"},s?R("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-bar-red","data-color-index":"0"}):R("span",{class:"color-picker-value-bar-red"}))),R("div",{class:"color-picker-bar-wrap"},e&&R("div",{class:"color-picker-bar-label"},i),R("div",{class:"range-slider color-picker-bar color-picker-bar-green"}),n&&R("div",{class:"color-picker-bar-value"},s?R("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-bar-green","data-color-index":"1"}):R("span",{class:"color-picker-value-bar-green"}))),R("div",{class:"color-picker-bar-wrap"},e&&R("div",{class:"color-picker-bar-label"},o),R("div",{class:"range-slider color-picker-bar color-picker-bar-blue"}),n&&R("div",{class:"color-picker-bar-value"},s?R("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-bar-blue","data-color-index":"2"}):R("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,s){t.setValue({rgb:[s,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,s){t.setValue({rgb:[t.value.rgb[0],s,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,s){t.setValue({rgb:[t.value.rgb[0],t.value.rgb[1],s]})}}});function e(n){const s=[...t.value.rgb],a=parseInt(P(n.target).attr("data-color-index"),10);let i=parseInt(n.target.value,10);if(Number.isNaN(i)){n.target.value=s[a];return}i=Math.max(0,Math.min(255,i)),s[a]=i,t.setValue({rgb:s})}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:s,blueBar:a}=t,{barValue:i,barValueEditable:o}=t.params,{rgb:r}=e;n.value=r[0],s.value=r[1],a.value=r[2],n.layout(),s.layout(),a.layout(),n.$el.find(".range-bar").css("background-image",`linear-gradient(to top, rgb(0, ${r[1]}, ${r[2]}), rgb(255, ${r[1]}, ${r[2]}))`),s.$el.find(".range-bar").css("background-image",`linear-gradient(to top, rgb(${r[0]}, 0, ${r[2]}), rgb(${r[0]}, 255, ${r[2]}))`),a.$el.find(".range-bar").css("background-image",`linear-gradient(to top, rgb(${r[0]}, ${r[1]}, 0), rgb(${r[0]}, ${r[1]}, 255))`),i&&o?(t.$el.find("input.color-picker-value-bar-red").val(r[0]),t.$el.find("input.color-picker-value-bar-green").val(r[1]),t.$el.find("input.color-picker-value-bar-blue").val(r[2])):i&&(t.$el.find("span.color-picker-value-bar-red").text(r[0]),t.$el.find("span.color-picker-value-bar-green").text(r[1]),t.$el.find("span.color-picker-value-bar-blue").text(r[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}},Rw={render(t){const{sliderLabel:e,sliderValue:n,sliderValueEditable:s,redLabelText:a,greenLabelText:i,blueLabelText:o}=t.params;return R("div",{class:"color-picker-module color-picker-module-rgb-sliders"},R("div",{class:"color-picker-slider-wrap"},e&&R("div",{class:"color-picker-slider-label"},a),R("div",{class:"range-slider color-picker-slider color-picker-slider-red"}),n&&R("div",{class:"color-picker-slider-value"},s?R("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-red","data-color-index":"0"}):R("span",{class:"color-picker-value-red"}))),R("div",{class:"color-picker-slider-wrap"},e&&R("div",{class:"color-picker-slider-label"},i),R("div",{class:"range-slider color-picker-slider color-picker-slider-green"}),n&&R("div",{class:"color-picker-slider-value"},s?R("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-green","data-color-index":"1"}):R("span",{class:"color-picker-value-green"}))),R("div",{class:"color-picker-slider-wrap"},e&&R("div",{class:"color-picker-slider-label"},o),R("div",{class:"range-slider color-picker-slider color-picker-slider-blue"}),n&&R("div",{class:"color-picker-slider-value"},s?R("input",{type:"number",step:"1",min:"0",max:"255",class:"color-picker-value-blue","data-color-index":"2"}):R("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,s){t.setValue({rgb:[s,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,s){t.setValue({rgb:[t.value.rgb[0],s,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,s){t.setValue({rgb:[t.value.rgb[0],t.value.rgb[1],s]})}}});function e(n){const s=[...t.value.rgb],a=parseInt(P(n.target).attr("data-color-index"),10);let i=parseInt(n.target.value,10);if(Number.isNaN(i)){n.target.value=s[a];return}i=Math.max(0,Math.min(255,i)),s[a]=i,t.setValue({rgb:s})}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:s,greenRangeSlider:a,blueRangeSlider:i}=t,{sliderValue:o,sliderValueEditable:r}=t.params,{rgb:l}=n;s.value=l[0],a.value=l[1],i.value=l[2],s.layout(),a.layout(),i.layout(),s.$el[0].style.setProperty("--f7-range-knob-color",`rgb(${l[0]}, ${l[1]}, ${l[2]})`),a.$el[0].style.setProperty("--f7-range-knob-color",`rgb(${l[0]}, ${l[1]}, ${l[2]})`),i.$el[0].style.setProperty("--f7-range-knob-color",`rgb(${l[0]}, ${l[1]}, ${l[2]})`);const f=e.rtl?"to left":"to right";s.$el.find(".range-bar").css("background-image",`linear-gradient(${f}, rgb(0, ${l[1]}, ${l[2]}), rgb(255, ${l[1]}, ${l[2]}))`),a.$el.find(".range-bar").css("background-image",`linear-gradient(${f}, rgb(${l[0]}, 0, ${l[2]}), rgb(${l[0]}, 255, ${l[2]}))`),i.$el.find(".range-bar").css("background-image",`linear-gradient(${f}, rgb(${l[0]}, ${l[1]}, 0), rgb(${l[0]}, ${l[1]}, 255))`),o&&r?(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])):o&&(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}},Hw={render(){return R("div",{class:"color-picker-module color-picker-module-sb-spectrum"},R("div",{class:"color-picker-sb-spectrum",style:"background-color: hsl(0, 100%, 50%)"},R("div",{class:"color-picker-sb-spectrum-handle"})))},init(t){const{app:e}=t;let n,s,a,i,o,r,l,f,c;const{$el:u}=t;function d(v,_){let k=(v-l.left)/l.width,E=(_-l.top)/l.height;k=Math.max(0,Math.min(1,k)),E=1-Math.max(0,Math.min(1,E)),t.setValue({hsb:[t.value.hue,k,E]})}function m(v){if(s||n)return;a=v.type==="touchstart"?v.targetTouches[0].pageX:v.pageX,o=a,i=v.type==="touchstart"?v.targetTouches[0].pageY:v.pageY,r=i;const _=P(v.target);c=_.closest(".color-picker-sb-spectrum-handle").length>0,c||(f=_.closest(".color-picker-sb-spectrum").length>0),f&&(l=u.find(".color-picker-sb-spectrum")[0].getBoundingClientRect(),d(a,i)),(c||f)&&u.find(".color-picker-sb-spectrum-handle").addClass("color-picker-sb-spectrum-handle-pressed")}function h(v){(f||c)&&(o=v.type==="touchmove"?v.targetTouches[0].pageX:v.pageX,r=v.type==="touchmove"?v.targetTouches[0].pageY:v.pageY,v.preventDefault(),s||(s=!0,c&&(l=u.find(".color-picker-sb-spectrum")[0].getBoundingClientRect())),(f||c)&&d(o,r))}function p(){s=!1,(f||c)&&u.find(".color-picker-sb-spectrum-handle").removeClass("color-picker-sb-spectrum-handle-pressed"),f=!1,c=!1}function b(){t.modules["sb-spectrum"].update(t)}const g=e.touchEvents.start==="touchstart"&&it().passiveListener?{passive:!0,capture:!1}:!1;t.$el.on(e.touchEvents.start,m,g),e.on("touchmove:active",h),e.on("touchend:passive",p),e.on("resize",b),t.destroySpectrumEvents=function(){t.$el.off(e.touchEvents.start,m,g),e.off("touchmove:active",h),e.off("touchend:passive",p),e.off("resize",b)}},update(t){const{value:e}=t,{hsl:n,hsb:s}=e,a=t.$el.find(".color-picker-sb-spectrum")[0].offsetWidth,i=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(${a*s[1]}px, ${i*(1-s[2])}px)`)},destroy(t){t.destroySpectrumEvents&&t.destroySpectrumEvents(),delete t.destroySpectrumEvents}},zw={render(){return R("div",{class:"color-picker-module color-picker-module-hs-spectrum"},R("div",{class:"color-picker-hs-spectrum"},R("div",{class:"color-picker-hs-spectrum-handle"})))},init(t){const{app:e}=t;let n,s,a,i,o,r,l,f,c;const{$el:u}=t;function d(v,_){let k=(v-l.left)/l.width*360,E=(_-l.top)/l.height;k=Math.max(0,Math.min(360,k)),E=1-Math.max(0,Math.min(1,E)),t.setValue({hsb:[k,E,t.value.hsb[2]]})}function m(v){if(s||n)return;a=v.type==="touchstart"?v.targetTouches[0].pageX:v.pageX,o=a,i=v.type==="touchstart"?v.targetTouches[0].pageY:v.pageY,r=i;const _=P(v.target);c=_.closest(".color-picker-hs-spectrum-handle").length>0,c||(f=_.closest(".color-picker-hs-spectrum").length>0),f&&(l=u.find(".color-picker-hs-spectrum")[0].getBoundingClientRect(),d(a,i)),(c||f)&&u.find(".color-picker-hs-spectrum-handle").addClass("color-picker-hs-spectrum-handle-pressed")}function h(v){(f||c)&&(o=v.type==="touchmove"?v.targetTouches[0].pageX:v.pageX,r=v.type==="touchmove"?v.targetTouches[0].pageY:v.pageY,v.preventDefault(),s||(s=!0,c&&(l=u.find(".color-picker-hs-spectrum")[0].getBoundingClientRect())),(f||c)&&d(o,r))}function p(){s=!1,(f||c)&&u.find(".color-picker-hs-spectrum-handle").removeClass("color-picker-hs-spectrum-handle-pressed"),f=!1,c=!1}function b(){t.modules["hs-spectrum"].update(t)}const g=e.touchEvents.start==="touchstart"&&it().passiveListener?{passive:!0,capture:!1}:!1;t.$el.on(e.touchEvents.start,m,g),e.on("touchmove:active",h),e.on("touchend:passive",p),e.on("resize",b),t.destroySpectrumEvents=function(){t.$el.off(e.touchEvents.start,m,g),e.off("touchmove:active",h),e.off("touchend:passive",p),e.off("resize",b)}},update(t){const{value:e}=t,{hsb:n}=e,s=t.$el.find(".color-picker-hs-spectrum")[0].offsetWidth,a=t.$el.find(".color-picker-hs-spectrum")[0].offsetHeight,i=rn(n[0],n[1],1);t.$el.find(".color-picker-hs-spectrum-handle").css("background-color",`hsl(${i[0]}, ${i[1]*100}%, ${i[2]*100}%)`).transform(`translate(${s*(n[0]/360)}px, ${a*(1-n[1])}px)`)},destroy(t){t.destroySpectrumEvents&&t.destroySpectrumEvents(),delete t.destroySpectrumEvents}};function Fw(){let e="";for(let n=256;n>0;n-=1){const s=n*Math.PI/128,a=360/256*n;e+=``}return e}const Nw={render(){return R("div",{class:"color-picker-module color-picker-module-wheel"},R("div",{class:"color-picker-wheel"},R("svg",{viewBox:"0 0 300 300",width:"300",height:"300"},Fw()),R("div",{class:"color-picker-wheel-handle"}),R("div",{class:"color-picker-sb-spectrum",style:"background-color: hsl(0, 100%, 50%)"},R("div",{class:"color-picker-sb-spectrum-handle"}))))},init(t){const{app:e}=t;let n,s,a,i,o,r,l,f,c,u,d,m;const{$el:h}=t;function p(S,I){const T=l.left+l.width/2,A=l.top+l.height/2;let w=Math.atan2(I-A,S-T)*180/Math.PI+90;w<0&&(w+=360),w=360-w,t.setValue({hue:w})}function b(S,I){let T=(S-u.left)/u.width,A=(I-u.top)/u.height;T=Math.max(0,Math.min(1,T)),A=1-Math.max(0,Math.min(1,A)),t.setValue({hsb:[t.value.hue,T,A]})}function g(S){if(s||n)return;a=S.type==="touchstart"?S.targetTouches[0].pageX:S.pageX,o=a,i=S.type==="touchstart"?S.targetTouches[0].pageY:S.pageY,r=i;const I=P(S.target);c=I.closest(".color-picker-wheel-handle").length>0,f=I.closest("circle").length>0,m=I.closest(".color-picker-sb-spectrum-handle").length>0,m||(d=I.closest(".color-picker-sb-spectrum").length>0),f&&(l=h.find(".color-picker-wheel")[0].getBoundingClientRect(),p(a,i)),d&&(u=h.find(".color-picker-sb-spectrum")[0].getBoundingClientRect(),b(a,i)),(m||d)&&h.find(".color-picker-sb-spectrum-handle").addClass("color-picker-sb-spectrum-handle-pressed")}function v(S){!(f||c)&&!(d||m)||(o=S.type==="touchmove"?S.targetTouches[0].pageX:S.pageX,r=S.type==="touchmove"?S.targetTouches[0].pageY:S.pageY,S.preventDefault(),s||(s=!0,c&&(l=h.find(".color-picker-wheel")[0].getBoundingClientRect()),m&&(u=h.find(".color-picker-sb-spectrum")[0].getBoundingClientRect())),(f||c)&&p(o,r),(d||m)&&b(o,r))}function _(){s=!1,(d||m)&&h.find(".color-picker-sb-spectrum-handle").removeClass("color-picker-sb-spectrum-handle-pressed"),f=!1,c=!1,d=!1,m=!1}function k(){t.modules.wheel.update(t)}const E=e.touchEvents.start==="touchstart"&&it().passiveListener?{passive:!0,capture:!1}:!1;t.$el.on(e.touchEvents.start,g,E),e.on("touchmove:active",v),e.on("touchend:passive",_),e.on("resize",k),t.destroyWheelEvents=function(){t.$el.off(e.touchEvents.start,g,E),e.off("touchmove:active",v),e.off("touchend:passive",_),e.off("resize",k)}},update(t){const{value:e}=t,{hsl:n,hsb:s}=e,a=t.$el.find(".color-picker-sb-spectrum")[0].offsetWidth,i=t.$el.find(".color-picker-sb-spectrum")[0].offsetHeight,o=t.$el.find(".color-picker-wheel")[0].offsetWidth,r=o/2,l=e.hue*Math.PI/180,c=o/6/2,u=r-Math.sin(l)*(r-c)-c,d=r-Math.cos(l)*(r-c)-c;t.$el.find(".color-picker-wheel-handle").css("background-color",`hsl(${n[0]}, 100%, 50%)`).transform(`translate(${u}px, ${d}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(${a*s[1]}px, ${i*(1-s[2])}px)`)},destroy(t){t.destroyWheelEvents&&t.destroyWheelEvents(),delete t.destroyWheelEvents}};let Vw=class extends rt{constructor(e,n){n===void 0&&(n={}),super(n,[e]);const s=this;s.params=te({},e.params.colorPicker,n);let a;if(s.params.containerEl&&(a=P(s.params.containerEl),a.length===0))return s;let i;s.params.inputEl&&(i=P(s.params.inputEl));let o;s.params.targetEl&&(o=P(s.params.targetEl)),te(s,{app:e,$containerEl:a,containerEl:a&&a[0],inline:a&&a.length>0,$inputEl:i,inputEl:i&&i[0],$targetEl:o,targetEl:o&&o[0],initialized:!1,opened:!1,url:s.params.url,modules:{"alpha-slider":Tw,"current-color":Mw,hex:Pw,"hsb-sliders":Iw,"hue-slider":Aw,"brightness-slider":Ow,palette:Bw,"initial-current-colors":Lw,"rgb-bars":Dw,"rgb-sliders":Rw,"sb-spectrum":Hw,"hs-spectrum":zw,wheel:Nw}});function r(){s.open()}function l(u){u.preventDefault()}function f(){s.open()}function c(u){if(s.destroyed||!s.params||s.params.openIn==="page")return;const d=P(u.target);!s.opened||s.closing||d.closest('[class*="backdrop"]').length||d.closest(".color-picker-popup, .color-picker-popover").length||(i&&i.length>0?d[0]!==i[0]&&d.closest(".sheet-modal").length===0&&s.close():P(u.target).closest(".sheet-modal").length===0&&s.close())}return te(s,{attachInputEvents(){s.$inputEl.on("click",r),s.params.inputReadOnly&&(s.$inputEl.on("focus mousedown",l),s.$inputEl[0]&&(s.$inputEl[0].f7ValidateReadonly=!0))},detachInputEvents(){s.$inputEl.off("click",r),s.params.inputReadOnly&&(s.$inputEl.off("focus mousedown",l),s.$inputEl[0]&&delete s.$inputEl[0].f7ValidateReadonly)},attachTargetEvents(){s.$targetEl.on("click",f)},detachTargetEvents(){s.$targetEl.off("click",f)},attachHtmlEvents(){e.on("click",c)},detachHtmlEvents(){e.off("click",c)}}),s.init(),s}get view(){const{$inputEl:e,$targetEl:n,app:s,params:a}=this;let i;return a.view?i=a.view:(e&&(i=e.parents(".view").length&&e.parents(".view")[0].f7View),!i&&n&&(i=n.parents(".view").length&&n.parents(".view")[0].f7View)),i||(i=s.views.main),i}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:s,offsetHeight:a}=n[0];s<=a?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:s,params:a}=e,{openIn:i,openInPhone:o}=a,r=Ke();return s&&s.type?s.type:i!=="auto"?i:e.inline?null:r.ios?r.ipad?"popover":o:n.width>=768?"popover":o}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 s=this;if(typeof e>"u")return;let{hex:a,rgb:i,hsl:o,hsb:r,alpha:l=1,hue:f,rgba:c,hsla:u}=s.value||{};const d=s.value||!s.value&&!s.params.value;let m;if(Object.keys(e).forEach(h=>{if(!s.value||typeof s.value[h]>"u"){m=!0;return}const p=e[h];Array.isArray(p)?p.forEach((b,g)=>{b!==s.value[h][g]&&(m=!0)}):p!==s.value[h]&&(m=!0)}),!!m){if(e.rgb||e.rgba){const[h,p,b,g=l]=e.rgb||e.rgba;i=[h,p,b],a=sn(...i),o=ys(...i),r=Un(...o),o=s.normalizeHsValues(o),r=s.normalizeHsValues(r),f=r[0],l=g,c=[i[0],i[1],i[2],g],u=[o[0],o[1],o[2],g]}if(e.hsl||e.hsla){const[h,p,b,g=l]=e.hsl||e.hsla;o=[h,p,b],i=Dn(...o),a=sn(...i),r=Un(...o),o=s.normalizeHsValues(o),r=s.normalizeHsValues(r),f=r[0],l=g,c=[i[0],i[1],i[2],g],u=[o[0],o[1],o[2],g]}if(e.hsb){const[h,p,b,g=l]=e.hsb;r=[h,p,b],o=rn(...r),i=Dn(...o),a=sn(...i),o=s.normalizeHsValues(o),r=s.normalizeHsValues(r),f=r[0],l=g,c=[i[0],i[1],i[2],g],u=[o[0],o[1],o[2],g]}if(e.hex&&(i=tn(e.hex),a=sn(...i),o=ys(...i),r=Un(...o),o=s.normalizeHsValues(o),r=s.normalizeHsValues(r),f=r[0],c=[i[0],i[1],i[2],l],u=[o[0],o[1],o[2],l]),typeof e.alpha<"u"&&(l=e.alpha,typeof i<"u"&&(c=[i[0],i[1],i[2],l]),typeof o<"u"&&(u=[o[0],o[1],o[2],l])),typeof e.hue<"u"){const[h,p,b]=o;o=[e.hue,p,b],r=Un(...o),i=Dn(...o),a=sn(...i),o=s.normalizeHsValues(o),r=s.normalizeHsValues(r),f=r[0],c=[i[0],i[1],i[2],l],u=[o[0],o[1],o[2],l]}s.value={hex:a,alpha:l,hue:f,rgb:i,hsl:o,hsb:r,rgba:c,hsla:u},s.initialValue||(s.initialValue=te({},s.value)),s.updateValue(d),s.opened&&n&&s.updateModules()}}getValue(){return this.value}updateValue(e){e===void 0&&(e=!0);const n=this,{$inputEl:s,value:a,$targetEl:i}=n;if(i&&n.params.targetElSetBackgroundColor){const{rgba:o}=a;i.css("background-color",`rgba(${o.join(", ")})`)}if(e&&n.emit("local::change colorPickerChange",n,a),s&&s.length){const o=n.formatValue(a);s&&s.length&&(s.val(o),e&&s.trigger("change"))}}updateModules(){const e=this,{modules:n}=e;e.params.modules.forEach(s=>{typeof s=="string"&&n[s]&&n[s].update?n[s].update(e):s&&s.update&&s.update(e)})}update(){this.updateModules()}renderPicker(){const e=this,{params:n,modules:s}=e;let a="";return n.modules.forEach(i=>{typeof i=="string"&&s[i]&&s[i].render?a+=s[i].render(e):i&&i.render&&(a+=i.render(e))}),a}renderNavbar(){const e=this;if(e.params.renderNavbar)return e.params.renderNavbar.call(e,e);const{openIn:n,navbarTitleText:s,navbarBackLinkText:a,navbarCloseText:i}=e.params;return R("div",{class:"navbar"},R("div",{class:"navbar-bg"}),R("div",{class:"navbar-inner sliding"},n==="page"&&R("div",{class:"left"},R("a",{class:"link back"},R("i",{class:"icon icon-back"}),R("span",{class:"if-not-md"},a))),R("div",{class:"title"},s),n!=="page"&&R("div",{class:"right"},R("a",{class:"link popup-close","data-popup":".color-picker-popup"},i))))}renderToolbar(){const e=this;return e.params.renderToolbar?e.params.renderToolbar.call(e,e):R("div",{class:"toolbar toolbar-top"},R("div",{class:"toolbar-inner"},R("div",{class:"left"}),R("div",{class:"right"},R("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:s}=e.params;return R("div",{class:`color-picker color-picker-inline ${s?"color-picker-grouped-modules":""} ${n||""}`},e.renderPicker())}renderSheet(){const e=this,{cssClass:n,toolbarSheet:s,groupedModules:a}=e.params;return R("div",{class:`sheet-modal color-picker color-picker-sheet-modal ${a?"color-picker-grouped-modules":""} ${n||""}`},s&&e.renderToolbar(),R("div",{class:"sheet-modal-inner"},R("div",{class:"page-content"},e.renderPicker())))}renderPopover(){const e=this,{cssClass:n,toolbarPopover:s,groupedModules:a}=e.params;return R("div",{class:`popover color-picker-popover ${n||""}`},R("div",{class:"popover-inner"},R("div",{class:`color-picker ${a?"color-picker-grouped-modules":""}`},s&&e.renderToolbar(),R("div",{class:"page-content"},e.renderPicker()))))}renderPopup(){const e=this,{cssClass:n,navbarPopup:s,groupedModules:a}=e.params;return R("div",{class:`popup color-picker-popup ${n||""}`},R("div",{class:"page"},s&&e.renderNavbar(),R("div",{class:`color-picker ${a?"color-picker-grouped-modules":""}`},R("div",{class:"page-content"},e.renderPicker()))))}renderPage(){const e=this,{cssClass:n,groupedModules:s}=e.params;return R("div",{class:`page color-picker-page ${n||""}`,"data-name":"color-picker-page"},e.renderNavbar(),R("div",{class:`color-picker ${s?"color-picker-grouped-modules":""}`},R("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 s=e.getModalType();if(s==="popover")return e.renderPopover();if(s==="sheet")return e.renderSheet();if(s==="popup")return e.renderPopup()}onOpen(){const e=this,{initialized:n,$el:s,app:a,$inputEl:i,inline:o,value:r,params:l,modules:f}=e;e.closing=!1,e.opened=!0,e.opening=!0,e.attachEvents(),l.modules.forEach(u=>{typeof u=="string"&&f[u]&&f[u].init?f[u].init(e):u&&u.init&&u.init(e)});const c=!r&&l.value;n?r&&(e.initialValue=te({},r),e.setValue(r,!1)):r?e.setValue(r):l.value?e.setValue(l.value,!1):l.value||e.setValue({hex:"#ff0000"},!1),c&&e.updateValue(),e.updateModules(),l.centerModules&&e.centerModules(),!o&&i&&i.length&&a.theme==="md"&&i.trigger("focus"),e.initialized=!0,s&&s.trigger("colorpicker:open"),i&&i.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:s,modules:a}=e;if(e.opening=!1,e.closing=!0,e.detachEvents(),e.$inputEl)if(n.theme==="md")e.$inputEl.trigger("blur");else{const i=e.$inputEl.attr("validate"),o=e.$inputEl.attr("required");i&&o&&n.input.validate(e.$inputEl)}s.modules.forEach(i=>{typeof i=="string"&&a[i]&&a[i].destroy?a[i].destroy(e):i&&i.destroy&&i.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||_t(()=>{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:s,inline:a,$inputEl:i,$targetEl:o,params:r}=e;if(s)return;if(a){e.$el=P(e.render()),e.$el[0].f7ColorPicker=e,e.$containerEl.append(e.$el),e.onOpen(),e.onOpened();return}const l=e.render();if(r.openIn==="page")e.view.router.navigate({url:e.url,route:{content:l,path:e.url,on:{pageBeforeIn(f,c){e.$el=c.$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 f=e.getModalType();let c=r.backdrop;(c===null||typeof c>"u")&&(f==="popover"&&n.params.popover.backdrop!==!1&&(c=!0),f==="popup"&&(c=!0));const u={targetEl:o||i,scrollToEl:r.scrollToInput?o||i:void 0,content:l,backdrop:c,closeByBackdropClick:r.closeByBackdropClick,on:{open(){const d=this;e.modal=d,e.$el=f==="popover"||f==="popup"?d.$el.find(".color-picker"):d.$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)}}};f==="popup"&&(u.push=r.popupPush,u.swipeToClose=r.popupSwipeToClose),f==="sheet"&&(u.push=r.sheetPush,u.swipeToClose=r.sheetSwipeToClose),r.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,[f]:u}}):(e.modal=n[f].create(u),e.modal.open())}}close(){const e=this,{opened:n,inline:s}=e;if(n){if(s){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,ft(e),e.destroyed=!0}};const Od=Vw,Yw={name:"colorPicker",static:{ColorPicker:Od},create(){const t=this;t.colorPicker=ct({defaultSelector:".color-picker",constructor:Od,app:t,domProp:"f7ColorPicker"}),t.colorPicker.close=function(n){n===void 0&&(n=".color-picker");const s=P(n);if(s.length===0)return;const a=s[0].f7ColorPicker;!a||a&&!a.opened||a.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}}},qw={open(t){const e=this,n=P(t).eq(0);if(!n.length)return;n.addClass("treeview-item-opened"),n.trigger("treeview:open"),e.emit("treeviewOpen",n[0]);function s(a){a?(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 a={iosPreloaderContent:yn,mdPreloaderContent:Cn};n.trigger("treeview:loadchildren",s),e.emit("treeviewLoadChildren",n[0],s),n.find(".treeview-toggle").addClass("treeview-toggle-hidden"),n.find(".treeview-item-root").prepend(`
        ${a[`${e.theme}PreloaderContent`]}
        `)}},close(t){const e=this,n=P(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=P(t).eq(0);if(!n.length)return;const s=n.hasClass("treeview-item-opened");e.treeview[s?"close":"open"](n)}},Ww={name:"treeview",create(){It(this,{treeview:qw})},clicks:{".treeview-toggle":function(e,n,s){const a=this;if(e.parents(".treeview-item-toggle").length)return;const i=e.parents(".treeview-item").eq(0);i.length&&(s.preventF7Router=!0,a.treeview.toggle(i[0]))},".treeview-item-toggle":function(e,n,s){const a=this,i=e.closest(".treeview-item").eq(0);i.length&&(s.preventF7Router=!0,a.treeview.toggle(i[0]))}}},ms={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 jw=class extends rt{constructor(e,n){super(n,[e]);const s=this,a=Le(),i=Ke(),o=te({},e.params.textEditor);s.useModulesParams(o),s.params=te(o,n);const r=s.params.el;if(!r)return s;const l=P(r);if(l.length===0)return s;if(l[0].f7TextEditor)return l[0].f7TextEditor;let f=l.children(".text-editor-content");if(f.length||(l.append('
        '),f=l.children(".text-editor-content")),te(s,{app:e,$el:l,el:l[0],$contentEl:f,contentEl:f[0]}),"value"in n&&(s.value=s.params.value),s.params.mode==="keyboard-toolbar"&&!(i.cordova||i.capacitor)&&!i.android&&(s.params.mode="popover"),typeof s.params.buttons=="string")try{s.params.buttons=JSON.parse(s.params.buttons)}catch{throw new Error('Framework7: TextEditor: wrong "buttons" parameter format')}return l[0].f7TextEditor=s,s.onButtonClick=s.onButtonClick.bind(s),s.onFocus=s.onFocus.bind(s),s.onBlur=s.onBlur.bind(s),s.onInput=s.onInput.bind(s),s.onPaste=s.onPaste.bind(s),s.onSelectionChange=s.onSelectionChange.bind(s),s.closeKeyboardToolbar=s.closeKeyboardToolbar.bind(s),s.attachEvents=function(){s.params.mode==="toolbar"&&s.$el.find(".text-editor-toolbar").on("click","button",s.onButtonClick),s.params.mode==="keyboard-toolbar"&&(s.$keyboardToolbarEl.on("click","button",s.onButtonClick),s.$el.parents(".page").on("page:beforeout",s.closeKeyboardToolbar)),s.params.mode==="popover"&&s.popover&&s.popover.$el.on("click","button",s.onButtonClick),s.$contentEl.on("paste",s.onPaste),s.$contentEl.on("focus",s.onFocus),s.$contentEl.on("blur",s.onBlur),s.$contentEl.on("input",s.onInput,!0),P(a).on("selectionchange",s.onSelectionChange)},s.detachEvents=function(){s.params.mode==="toolbar"&&s.$el.find(".text-editor-toolbar").off("click","button",s.onButtonClick),s.params.mode==="keyboard-toolbar"&&(s.$keyboardToolbarEl.off("click","button",s.onButtonClick),s.$el.parents(".page").off("page:beforeout",s.closeKeyboardToolbar)),s.params.mode==="popover"&&s.popover&&s.popover.$el.off("click","button",s.onButtonClick),s.$contentEl.off("paste",s.onPaste),s.$contentEl.off("focus",s.onFocus),s.$contentEl.off("blur",s.onBlur),s.$contentEl.off("input",s.onInput,!0),P(a).off("selectionchange",s.onSelectionChange)},s.useModules(),s.init(),s}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=Se(),s=Le(),a=n.getSelection(),i=[];let o;if(a&&a.anchorNode&&P(a.anchorNode).parents(e.$el).length){let f=a.anchorNode;for(;f;)i.push(f),(!f.nextSibling||f===a.focusNode)&&(f=null),f&&(f=f.nextSibling);const c=[],u=P(i);for(let d=0;d{const c=n.getSelection(),u=s.createRange();u.selectNodeContents(f),c.removeAllRanges(),c.addRange(u),s.execCommand("unlink",!1),c.removeAllRanges()}),e;const r=e.getSelectionRange();return r&&e.app.dialog.prompt("",e.params.linkUrlText,f=>{f&&f.trim().length&&(e.setSelectionRange(r),s.execCommand("createLink",!1,f.trim()),e.$el.trigger("texteditor:insertlink",{url:f.trim()}),e.emit("local:insertLink textEditorInsertLink",e,f.trim()))}).$el.find("input").focus(),e}insertImage(){const e=this,n=Le(),s=e.getSelectionRange();return s&&e.app.dialog.prompt("",e.params.imageUrlText,i=>{i&&i.trim().length&&(e.setSelectionRange(s),n.execCommand("insertImage",!1,i.trim()),e.$el.trigger("texteditor:insertimage",{url:i.trim()}),e.emit("local:insertImage textEditorInsertImage",e,i.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=Se(),s=Le();if(e.params.mode==="toolbar")return;const a=n.getSelection(),i=P(a.anchorNode).parents(e.contentEl).length||a.anchorNode===e.contentEl;if(e.params.mode==="keyboard-toolbar"){i?e.openKeyboardToolbar():e.closeKeyboardToolbar();return}if(e.params.mode==="popover"){const o=P(a.anchorNode).parents(e.popover.el).length||a.anchorNode===e.popover.el;if(!i&&!o){e.closePopover();return}if(!a.isCollapsed&&a.rangeCount){const l=a.getRangeAt(0).getBoundingClientRect(),f=e.app.$el[0]||s.body;e.openPopover(l.x+(n.scrollX||0)-f.offsetLeft,l.y+(n.scrollY||0)-f.offsetTop,l.width,l.height)}else a.isCollapsed&&e.closePopover()}}onPaste(e){const n=this,s=Le();if(n.params.clearFormattingOnPaste&&e.clipboardData&&e.clipboardData.getData){const a=e.clipboardData.getData("text/plain");e.preventDefault(),s.execCommand("insertText",!1,a)}}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=Se(),s=Le();if(e.params.placeholder&&e.$contentEl.html()===""&&e.insertPlaceholder(),e.params.mode==="popover"){const a=n.getSelection(),i=P(a.anchorNode).parents(e.contentEl).length||a.anchorNode===e.contentEl;!(s.activeElement&&e.popover&&P(s.activeElement).closest(e.popover.$el).length)&&!i&&e.closePopover()}if(e.params.mode==="keyboard-toolbar"){const a=n.getSelection();P(a.anchorNode).parents(e.contentEl).length||a.anchorNode===e.contentEl||e.closeKeyboardToolbar()}e.$el.trigger("texteditor:blur"),e.emit("local::blur textEditorBlur",e)}onButtonClick(e){const n=this,s=Se(),a=Le(),i=s.getSelection();if(!(P(i.anchorNode).parents(n.contentEl).length||i.anchorNode===n.contentEl))return;const r=P(e.target).closest("button");r.parents("form").length&&e.preventDefault();const l=r.attr("data-button"),f=n.params.customButtons&&n.params.customButtons[l];if(!l||!(ms[l]||f))return;if(r.trigger("texteditor:buttonclick",l),n.emit("local::buttonClick textEditorButtonClick",n,l),f){f.onClick&&f.onClick(n,r[0]);return}const c=ms[l][2];if(c==="createLink"){n.createLink();return}if(c==="insertImage"){n.insertImage();return}if(c.indexOf("formatBlock")===0){const u=c.split(".")[1],d=P(i.anchorNode);d.parents(u.toLowerCase()).length||d.is(u)?a.execCommand("formatBlock",!1,"div"):a.execCommand("formatBlock",!1,u);return}a.execCommand(c,!1)}getSelectionRange(){const e=Se(),n=Le();if(e.getSelection){const s=e.getSelection();if(s.getRangeAt&&s.rangeCount)return s.getRangeAt(0)}else if(n.selection&&n.selection.createRange)return n.selection.createRange();return null}setSelectionRange(e){const n=Se(),s=Le();if(e)if(n.getSelection){const a=n.getSelection();a.removeAllRanges(),a.addRange(e)}else s.selection&&e.select&&e.select()}renderButtons(){const e=this;let n="";function s(a){const i=e.app.theme==="md"?"material-icons":"f7-icons";if(e.params.customButtons&&e.params.customButtons[a]){const r=e.params.customButtons[a];return``}if(!ms[a])return"";const o=ms[a][e.app.theme==="md"?1:0];return``.trim()}return e.params.buttons.forEach((a,i)=>{Array.isArray(a)?(a.forEach(o=>{n+=s(o)}),i')):n+=s(a)}),n}createToolbar(){const e=this;e.$el.prepend(`
        ${e.renderButtons()}
        `)}createKeyboardToolbar(){const e=this;e.$keyboardToolbarEl=P(`
        ${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,s,a){const i=this;i.popover&&(Object.assign(i.popover.params,{targetX:e,targetY:n,targetWidth:s,targetHeight:a}),clearTimeout(i.popoverTimeout),i.popoverTimeout=setTimeout(()=>{i.popover&&(i.popover.opened?i.popover.resize():(i.$el.trigger("texteditor:popoveropen"),i.emit("local::popoverOpen textEditorPopoverOpen",i),i.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,ft(e),e=null}};const Bd=jw,Xw={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=te(ct({defaultSelector:".text-editor",constructor:Bd,app:t,domProp:"f7TextEditor"}))},static:{TextEditor:Bd},on:{tabMounted(t){const e=this;P(t).find(".text-editor-init").each(n=>{const s=P(n).dataset();e.textEditor.create(te({el:n},s||{}))})},tabBeforeRemove(t){P(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 s=P(n).dataset();e.textEditor.create(te({el:n},s||{}))})},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,s=P(n).dataset();e.textEditor.create(te({el:n},s||{}))},destroy(t){const e=t.elm;e.f7TextEditor&&e.f7TextEditor.destroy()}}}},Gw={},Uw={name:"breadrumbs",create(){It(this,{breadrumbs:Gw})}},xw={name:"typography"};ip.use([c2,u2,d2,p2,h2,R2,fp,H2,z2,F2,N2,Y2,W2,X2,G2,U2,K2,J2,tC,sC,iC,lC,fC,uC,dC,mC,gC,bC,vC,_C,EC,yC,wC,TC,AC,BC,LC,zC,FC,NC,VC,qC,jC,GC,xC,$C,KC,ey,ny,ay,ry,oy,cy,dy,my,gw,vw,kw,Cw,ww,Sw,Yw,Ww,Xw,Uw,xw]);ip.use(la);$p(!0);const vp=new Qp;window.app=vp;new nk({target:document.getElementById("app-root"),props:{app:vp}}); -//# sourceMappingURL=mobile-fbc46914.js.map