diff --git a/dist/.vite/manifest.json b/dist/.vite/manifest.json index d34b1a7..7e902ef 100644 --- a/dist/.vite/manifest.json +++ b/dist/.vite/manifest.json @@ -1,6 +1,6 @@ { "gamutable.js": { - "file": "assets/gamutable-CxtzDBbO.js", + "file": "assets/gamutable-9dxFVKme.js", "name": "gamutable", "src": "gamutable.js", "isEntry": true diff --git a/dist/assets/gamutable-CxtzDBbO.js b/dist/assets/gamutable-9dxFVKme.js similarity index 89% rename from dist/assets/gamutable-CxtzDBbO.js rename to dist/assets/gamutable-9dxFVKme.js index e653b9a..b28205c 100644 --- a/dist/assets/gamutable-CxtzDBbO.js +++ b/dist/assets/gamutable-9dxFVKme.js @@ -10,7 +10,7 @@ function lf(e,t){for(var n=0;n{zn(r,t,n)}),s}if(ie(e)){const s=[];for(let r=0;r>>1,s=ut[i],r=Ri(s);rHt&&ut.splice(t,1)}function As(e){ie(e)?ri.push(...e):(!an||!an.includes(e,e.allowRecurse?On+1:On))&&ri.push(e),Wa()}function dl(e,t,n=Ni?Ht+1:0){for(;nRi(n)-Ri(i));if(ri.length=0,an){an.push(...t);return}for(an=t,On=0;One.id==null?1/0:e.id,_d=(e,t)=>{const n=Ri(e)-Ri(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function za(e){Rr=!1,Ni=!0,ut.sort(_d);try{for(Ht=0;HtQn.emit(s,...r)),os=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Ga(r,t)}),setTimeout(()=>{Qn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,os=[])},3e3)):os=[]}let tt=null,tr=null;function Mi(e){const t=tt;return tt=e,tr=e&&e.type.__scopeId||null,t}function Sd(e){tr=e}function Cd(){tr=null}const Ed=e=>ci;function ci(e,t=tt,n){if(!t||e._n)return e;const i=(...s)=>{i._d&&jr(-1);const r=Mi(t);let o;try{o=e(...s)}finally{Mi(r),i._d&&jr(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function mt(e,t){if(tt===null)return e;const n=Zi(tt),i=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),rr(()=>{e.isUnmounting=!0}),e}const At=[Function,Array],Io={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:At,onEnter:At,onAfterEnter:At,onEnterCancelled:At,onBeforeLeave:At,onLeave:At,onAfterLeave:At,onLeaveCancelled:At,onBeforeAppear:At,onAppear:At,onAfterAppear:At,onAppearCancelled:At},Ja=e=>{const t=e.subTree;return t.component?Ja(t.component):t},Td={name:"BaseTransition",props:Io,setup(e,{slots:t}){const n=qt(),i=To();return()=>{const s=t.default&&nr(t.default(),!0);if(!s||!s.length)return;let r=s[0];if(s.length>1){for(const y of s)if(y.type!==it){r=y;break}}const o=we(e),{mode:l}=o;if(i.isLeaving)return yr(r);const a=hl(r);if(!a)return yr(r);let c=ui(a,o,i,n,y=>c=y);_n(a,c);const f=n.subTree,d=f&&hl(f);if(d&&d.type!==it&&!Bt(a,d)&&Ja(n).type!==it){const y=ui(d,o,i,n);if(_n(d,y),l==="out-in"&&a.type!==it)return i.isLeaving=!0,y.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},yr(r);l==="in-out"&&a.type!==it&&(y.delayLeave=(b,C,I)=>{const H=Ya(i,d);H[String(d.key)]=d,b[cn]=()=>{C(),b[cn]=void 0,delete c.delayedLeave},c.delayedLeave=I})}return r}}},Za=Td;function Ya(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function ui(e,t,n,i,s){const{appear:r,mode:o,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:f,onEnterCancelled:d,onBeforeLeave:y,onLeave:b,onAfterLeave:C,onLeaveCancelled:I,onBeforeAppear:H,onAppear:q,onAfterAppear:N,onAppearCancelled:_}=t,k=String(e.key),R=Ya(n,e),E=(u,g)=>{u&&xt(u,i,9,g)},F=(u,g)=>{const T=g[1];E(u,g),ie(u)?u.every(v=>v.length<=1)&&T():u.length<=1&&T()},p={mode:o,persisted:l,beforeEnter(u){let g=a;if(!n.isMounted)if(r)g=H||a;else return;u[cn]&&u[cn](!0);const T=R[k];T&&Bt(e,T)&&T.el[cn]&&T.el[cn](),E(g,[u])},enter(u){let g=c,T=f,v=d;if(!n.isMounted)if(r)g=q||c,T=N||f,v=_||d;else return;let O=!1;const K=u[ls]=ee=>{O||(O=!0,ee?E(v,[u]):E(T,[u]),p.delayedLeave&&p.delayedLeave(),u[ls]=void 0)};g?F(g,[u,K]):K()},leave(u,g){const T=String(e.key);if(u[ls]&&u[ls](!0),n.isUnmounting)return g();E(y,[u]);let v=!1;const O=u[cn]=K=>{v||(v=!0,g(),K?E(I,[u]):E(C,[u]),u[cn]=void 0,R[T]===e&&delete R[T])};R[T]=e,b?F(b,[u,O]):O()},clone(u){const g=ui(u,t,n,i,s);return s&&s(g),g}};return p}function yr(e){if(Ki(e))return e=Kt(e),e.children=null,e}function hl(e){if(!Ki(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ge(n.default))return n.default()}}function _n(e,t){e.shapeFlag&6&&e.component?_n(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nr(e,t=!1,n){let i=[],s=0;for(let r=0;r1)for(let r=0;r!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Id(e){ge(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,timeout:r,suspensible:o=!0,onError:l}=e;let a=null,c,f=0;const d=()=>(f++,a=null,y()),y=()=>{let b;return a||(b=a=t().catch(C=>{if(C=C instanceof Error?C:new Error(String(C)),l)return new Promise((I,H)=>{l(C,()=>I(d()),()=>H(C),f+1)});throw C}).then(C=>b!==a&&a?a:(C&&(C.__esModule||C[Symbol.toStringTag]==="Module")&&(C=C.default),c=C,C)))};return ir({name:"AsyncComponentWrapper",__asyncLoader:y,get __asyncResolved(){return c},setup(){const b=Xe;if(c)return()=>vr(c,b);const C=N=>{a=null,zn(N,b,13,!i)};if(o&&b.suspense||Ji)return y().then(N=>()=>vr(N,b)).catch(N=>(C(N),()=>i?Be(i,{error:N}):null));const I=me(!1),H=me(),q=me(!!s);return s&&setTimeout(()=>{q.value=!1},s),r!=null&&setTimeout(()=>{if(!I.value&&!H.value){const N=new Error(`Async component timed out after ${r}ms.`);C(N),H.value=N}},r),y().then(()=>{I.value=!0,b.parent&&Ki(b.parent.vnode)&&(b.parent.effect.dirty=!0,er(b.parent.update))}).catch(N=>{C(N),H.value=N}),()=>{if(I.value&&c)return vr(c,b);if(H.value&&i)return Be(i,{error:H.value});if(n&&!q.value)return Be(n)}}})}function vr(e,t){const{ref:n,props:i,children:s,ce:r}=t.vnode,o=Be(e,i,s);return o.ref=n,o.ce=r,delete t.vnode.ce,o}const Ki=e=>e.type.__isKeepAlive,xd={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=qt(),i=n.ctx;if(!i.renderer)return()=>{const N=t.default&&t.default();return N&&N.length===1?N[0]:N};const s=new Map,r=new Set;let o=null;const l=n.suspense,{renderer:{p:a,m:c,um:f,o:{createElement:d}}}=i,y=d("div");i.activate=(N,_,k,R,E)=>{const F=N.component;c(N,_,k,0,l),a(F.vnode,N,_,k,F,l,R,N.slotScopeIds,E),nt(()=>{F.isDeactivated=!1,F.a&&ii(F.a);const p=N.props&&N.props.onVnodeMounted;p&&yt(p,F.parent,N)},l)},i.deactivate=N=>{const _=N.component;Ls(_.m),Ls(_.a),c(N,y,null,1,l),nt(()=>{_.da&&ii(_.da);const k=N.props&&N.props.onVnodeUnmounted;k&&yt(k,_.parent,N),_.isDeactivated=!0},l)};function b(N){br(N),f(N,n,l,!0)}function C(N){s.forEach((_,k)=>{const R=Wr(_.type);R&&(!N||!N(R))&&I(k)})}function I(N){const _=s.get(N);!o||!Bt(_,o)?b(_):o&&br(o),s.delete(N),r.delete(N)}ct(()=>[e.include,e.exclude],([N,_])=>{N&&C(k=>Ei(N,k)),_&&C(k=>!Ei(_,k))},{flush:"post",deep:!0});let H=null;const q=()=>{H!=null&&($r(n.subTree.type)?nt(()=>{s.set(H,as(n.subTree))},n.subTree.suspense):s.set(H,as(n.subTree)))};return Gn(q),qi(q),rr(()=>{s.forEach(N=>{const{subTree:_,suspense:k}=n,R=as(_);if(N.type===R.type&&N.key===R.key){br(R);const E=R.component.da;E&&nt(E,k);return}b(N)})}),()=>{if(H=null,!t.default)return null;const N=t.default(),_=N[0];if(N.length>1)return o=null,N;if(!Sn(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let k=as(_);const R=k.type,E=Wr(Bn(k)?k.type.__asyncResolved||{}:R),{include:F,exclude:p,max:u}=e;if(F&&(!E||!Ei(F,E))||p&&E&&Ei(p,E))return o=k,_;const g=k.key==null?R:k.key,T=s.get(g);return k.el&&(k=Kt(k),_.shapeFlag&128&&(_.ssContent=k)),H=g,T?(k.el=T.el,k.component=T.component,k.transition&&_n(k,k.transition),k.shapeFlag|=512,r.delete(g),r.add(g)):(r.add(g),u&&r.size>parseInt(u,10)&&I(r.values().next().value)),k.shapeFlag|=256,o=k,$r(_.type)?_:k}}},wd=xd;function Ei(e,t){return ie(e)?e.some(n=>Ei(n,t)):be(e)?e.split(",").includes(t):cf(e)?e.test(t):!1}function Qa(e,t){ec(e,"a",t)}function Xa(e,t){ec(e,"da",t)}function ec(e,t,n=Xe){const i=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(sr(t,i,n),n){let s=n.parent;for(;s&&s.parent;)Ki(s.parent.vnode)&&kd(i,t,n,s),s=s.parent}}function kd(e,t,n,i){const s=sr(t,e,i,!0);or(()=>{uo(i[t],s)},n)}function br(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function as(e){return e.shapeFlag&128?e.ssContent:e}function sr(e,t,n=Xe,i=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{En();const l=Hn(n),a=xt(t,n,e,o);return l(),Tn(),a});return i?s.unshift(r):s.push(r),r}}const nn=e=>(t,n=Xe)=>{(!Ji||e==="sp")&&sr(e,(...i)=>t(...i),n)},tc=nn("bm"),Gn=nn("m"),nc=nn("bu"),qi=nn("u"),rr=nn("bum"),or=nn("um"),ic=nn("sp"),sc=nn("rtg"),rc=nn("rtc");function oc(e,t=Xe){sr("ec",e,t)}const xo="components",Od="directives";function bs(e,t){return wo(xo,e,!0,t)||e}const lc=Symbol.for("v-ndc");function Ad(e){return be(e)?wo(xo,e,!1)||e:e||lc}function Nd(e){return wo(Od,e)}function wo(e,t,n=!0,i=!1){const s=tt||Xe;if(s){const r=s.type;if(e===xo){const l=Wr(r,!1);if(l&&(l===t||l===Ue(t)||l===Wn(Ue(t))))return r}const o=pl(s[e]||r[e],t)||pl(s.appContext[e],t);return!o&&i?r:o}}function pl(e,t){return e&&(e[t]||e[Ue(t)]||e[Wn(Ue(t))])}function Ct(e,t,n,i){let s;const r=n&&n[i];if(ie(e)||be(e)){s=new Array(e.length);for(let o=0,l=e.length;ot(o,l,void 0,r&&r[l]));else{const o=Object.keys(e);s=new Array(o.length);for(let l=0,a=o.length;l{const r=i.fn(...s);return r&&(r.key=i.key),r}:i.fn)}return e}function Nt(e,t,n={},i,s){if(tt.isCE||tt.parent&&Bn(tt.parent)&&tt.parent.isCE)return t!=="default"&&(n.name=t),Be("slot",n,i&&i());let r=e[t];r&&r._c&&(r._d=!1),ae();const o=r&&ac(r(n)),l=zi(Oe,{key:(n.key||o&&o.key||`_${t}`)+(!o&&i?"_fb":"")},o||(i?i():[]),o&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function ac(e){return e.some(t=>Sn(t)?!(t.type===it||t.type===Oe&&!ac(t.children)):!0)?e:null}function Md(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:ni(i)]=e[i];return n}const Mr=e=>e?Hc(e)?Zi(e):Mr(e.parent):null,Ii=Re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Mr(e.parent),$root:e=>Mr(e.root),$emit:e=>e.emit,$options:e=>ko(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,er(e.update)}),$nextTick:e=>e.n||(e.n=Ut.bind(e.proxy)),$watch:e=>mh.bind(e)}),_r=(e,t)=>e!==Ne&&!e.__isScriptSetup&&ke(e,t),Lr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:s,props:r,accessCache:o,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const b=o[t];if(b!==void 0)switch(b){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return r[t]}else{if(_r(i,t))return o[t]=1,i[t];if(s!==Ne&&ke(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&ke(c,t))return o[t]=3,r[t];if(n!==Ne&&ke(n,t))return o[t]=4,n[t];Pr&&(o[t]=0)}}const f=Ii[t];let d,y;if(f)return t==="$attrs"&&St(e.attrs,"get",""),f(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==Ne&&ke(n,t))return o[t]=4,n[t];if(y=a.config.globalProperties,ke(y,t))return y[t]},set({_:e},t,n){const{data:i,setupState:s,ctx:r}=e;return _r(s,t)?(s[t]=n,!0):i!==Ne&&ke(i,t)?(i[t]=n,!0):ke(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,propsOptions:r}},o){let l;return!!n[o]||e!==Ne&&ke(e,o)||_r(t,o)||(l=r[0])&&ke(l,o)||ke(i,o)||ke(Ii,o)||ke(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ke(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Ld=Re({},Lr,{get(e,t){if(t!==Symbol.unscopables)return Lr.get(e,t,e)},has(e,t){return t[0]!=="_"&&!gf(t)}});function Pd(){return null}function Fd(){return null}function Bd(e){}function Dd(e){}function $d(){return null}function Vd(){}function jd(e,t){return null}function Hd(){return cc().slots}function Ud(){return cc().attrs}function cc(){const e=qt();return e.setupContext||(e.setupContext=Wc(e))}function Li(e){return ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Kd(e,t){const n=Li(e);for(const i in t){if(i.startsWith("__skip"))continue;let s=n[i];s?ie(s)||ge(s)?s=n[i]={type:s,default:t[i]}:s.default=t[i]:s===null&&(s=n[i]={default:t[i]}),s&&t[`__skip_${i}`]&&(s.skipFactory=!0)}return n}function qd(e,t){return!e||!t?e||t:ie(e)&&ie(t)?e.concat(t):Re({},Li(e),Li(t))}function Wd(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function zd(e){const t=qt();let n=e();return Ur(),fo(n)&&(n=n.catch(i=>{throw Hn(t),i})),[n,()=>Hn(t)]}let Pr=!0;function Gd(e){const t=ko(e),n=e.proxy,i=e.ctx;Pr=!1,t.beforeCreate&&gl(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:o,watch:l,provide:a,inject:c,created:f,beforeMount:d,mounted:y,beforeUpdate:b,updated:C,activated:I,deactivated:H,beforeDestroy:q,beforeUnmount:N,destroyed:_,unmounted:k,render:R,renderTracked:E,renderTriggered:F,errorCaptured:p,serverPrefetch:u,expose:g,inheritAttrs:T,components:v,directives:O,filters:K}=t;if(c&&Jd(c,i,null),o)for(const V in o){const z=o[V];ge(z)&&(i[V]=z.bind(n))}if(s){const V=s.call(n,n);Fe(V)&&(e.data=Ui(V))}if(Pr=!0,r)for(const V in r){const z=r[V],se=ge(z)?z.bind(n,n):ge(z.get)?z.get.bind(n,n):et,Me=!ge(z)&&ge(z.set)?z.set.bind(n):et,ye=ze({get:se,set:Me});Object.defineProperty(i,V,{enumerable:!0,configurable:!0,get:()=>ye.value,set:te=>ye.value=te})}if(l)for(const V in l)uc(l[V],i,n,V);if(a){const V=ge(a)?a.call(n):a;Reflect.ownKeys(V).forEach(z=>{Oo(z,V[z])})}f&&gl(f,e,"c");function W(V,z){ie(z)?z.forEach(se=>V(se.bind(n))):z&&V(z.bind(n))}if(W(tc,d),W(Gn,y),W(nc,b),W(qi,C),W(Qa,I),W(Xa,H),W(oc,p),W(rc,E),W(sc,F),W(rr,N),W(or,k),W(ic,u),ie(g))if(g.length){const V=e.exposed||(e.exposed={});g.forEach(z=>{Object.defineProperty(V,z,{get:()=>n[z],set:se=>n[z]=se})})}else e.exposed||(e.exposed={});R&&e.render===et&&(e.render=R),T!=null&&(e.inheritAttrs=T),v&&(e.components=v),O&&(e.directives=O)}function Jd(e,t,n=et){ie(e)&&(e=Fr(e));for(const i in e){const s=e[i];let r;Fe(s)?"default"in s?r=gn(s.from||i,s.default,!0):r=gn(s.from||i):r=gn(s),je(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[i]=r}}function gl(e,t,n){xt(ie(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function uc(e,t,n,i){const s=i.includes(".")?Rc(n,i):()=>n[i];if(be(e)){const r=t[e];ge(r)&&ct(s,r)}else if(ge(e))ct(s,e.bind(n));else if(Fe(e))if(ie(e))e.forEach(r=>uc(r,t,n,i));else{const r=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(r)&&ct(s,r,e)}}function ko(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let a;return l?a=l:!s.length&&!n&&!i?a=t:(a={},s.length&&s.forEach(c=>Rs(a,c,o,!0)),Rs(a,t,o)),Fe(t)&&r.set(t,a),a}function Rs(e,t,n,i=!1){const{mixins:s,extends:r}=t;r&&Rs(e,r,n,!0),s&&s.forEach(o=>Rs(e,o,n,!0));for(const o in t)if(!(i&&o==="expose")){const l=Zd[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Zd={data:ml,props:yl,emits:yl,methods:Ti,computed:Ti,beforeCreate:ht,created:ht,beforeMount:ht,mounted:ht,beforeUpdate:ht,updated:ht,beforeDestroy:ht,beforeUnmount:ht,destroyed:ht,unmounted:ht,activated:ht,deactivated:ht,errorCaptured:ht,serverPrefetch:ht,components:Ti,directives:Ti,watch:Qd,provide:ml,inject:Yd};function ml(e,t){return t?e?function(){return Re(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Yd(e,t){return Ti(Fr(e),Fr(t))}function Fr(e){if(ie(e)){const t={};for(let n=0;n1)return n&&ge(t)?t.call(i&&i.proxy):t}}function th(){return!!(Xe||tt||oi)}const dc={},hc=()=>Object.create(dc),pc=e=>Object.getPrototypeOf(e)===dc;function nh(e,t,n,i=!1){const s={},r=hc();e.propsDefaults=Object.create(null),gc(e,t,s,r);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=i?s:$a(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function ih(e,t,n,i){const{props:s,attrs:r,vnode:{patchFlag:o}}=e,l=we(s),[a]=e.propsOptions;let c=!1;if((i||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let d=0;d{a=!0;const[y,b]=mc(d,t,!0);Re(o,y),b&&l.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!a)return Fe(e)&&i.set(e,ei),ei;if(ie(r))for(let f=0;f-1,b[1]=I<0||C-1||ke(b,"default"))&&l.push(d)}}}const c=[o,l];return Fe(e)&&i.set(e,c),c}function vl(e){return e[0]!=="$"&&!hn(e)}function bl(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function _l(e,t){return bl(e)===bl(t)}function Sl(e,t){return ie(t)?t.findIndex(n=>_l(n,e)):ge(t)&&_l(t,e)?0:-1}const yc=e=>e[0]==="_"||e==="$stable",Ao=e=>ie(e)?e.map(vt):[vt(e)],rh=(e,t,n)=>{if(t._n)return t;const i=ci((...s)=>Ao(t(...s)),n);return i._c=!1,i},vc=(e,t,n)=>{const i=e._ctx;for(const s in e){if(yc(s))continue;const r=e[s];if(ge(r))t[s]=rh(s,r,i);else if(r!=null){const o=Ao(r);t[s]=()=>o}}},bc=(e,t)=>{const n=Ao(t);e.slots.default=()=>n},_c=(e,t,n)=>{for(const i in t)(n||i!=="_")&&(e[i]=t[i])},oh=(e,t,n)=>{const i=e.slots=hc();if(e.vnode.shapeFlag&32){const s=t._;s?(_c(i,t,n),n&&va(i,"_",s,!0)):vc(t,i)}else t&&bc(e,t)},lh=(e,t,n)=>{const{vnode:i,slots:s}=e;let r=!0,o=Ne;if(i.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:_c(s,t,n):(r=!t.$stable,vc(t,s)),o=t}else t&&(bc(e,t),o={default:1});if(r)for(const l in s)!yc(l)&&o[l]==null&&delete s[l]};function Ms(e,t,n,i,s=!1){if(ie(e)){e.forEach((y,b)=>Ms(y,t&&(ie(t)?t[b]:t),n,i,s));return}if(Bn(i)&&!s)return;const r=i.shapeFlag&4?Zi(i.component):i.el,o=s?null:r,{i:l,r:a}=e,c=t&&t.r,f=l.refs===Ne?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(be(c)?(f[c]=null,ke(d,c)&&(d[c]=null)):je(c)&&(c.value=null)),ge(a))en(a,l,12,[o,f]);else{const y=be(a),b=je(a);if(y||b){const C=()=>{if(e.f){const I=y?ke(d,a)?d[a]:f[a]:a.value;s?ie(I)&&uo(I,r):ie(I)?I.includes(r)||I.push(r):y?(f[a]=[r],ke(d,a)&&(d[a]=f[a])):(a.value=[r],e.k&&(f[e.k]=a.value))}else y?(f[a]=o,ke(d,a)&&(d[a]=o)):b&&(a.value=o,e.k&&(f[e.k]=o))};o?(C.id=-1,nt(C,n)):C()}}}const Sc=Symbol("_vte"),ah=e=>e.__isTeleport,xi=e=>e&&(e.disabled||e.disabled===""),Cl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,El=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Dr=(e,t)=>{const n=e&&e.to;return be(n)?t?t(n):null:n},ch={name:"Teleport",__isTeleport:!0,process(e,t,n,i,s,r,o,l,a,c){const{mc:f,pc:d,pbc:y,o:{insert:b,querySelector:C,createText:I,createComment:H}}=c,q=xi(t.props);let{shapeFlag:N,children:_,dynamicChildren:k}=t;if(e==null){const R=t.el=I(""),E=t.anchor=I(""),F=t.target=Dr(t.props,C),p=t.targetStart=I(""),u=t.targetAnchor=I("");b(R,n,i),b(E,n,i),p[Sc]=u,F&&(b(p,F),b(u,F),o==="svg"||Cl(F)?o="svg":(o==="mathml"||El(F))&&(o="mathml"));const g=(T,v)=>{N&16&&f(_,T,v,s,r,o,l,a)};q?g(n,E):F&&g(F,u)}else{t.el=e.el,t.targetStart=e.targetStart;const R=t.anchor=e.anchor,E=t.target=e.target,F=t.targetAnchor=e.targetAnchor,p=xi(e.props),u=p?n:E,g=p?R:F;if(o==="svg"||Cl(E)?o="svg":(o==="mathml"||El(E))&&(o="mathml"),k?(y(e.dynamicChildren,k,u,s,r,o,l),No(e,t,!0)):a||d(e,t,u,g,s,r,o,l,!1),q)p?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):cs(t,n,R,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const T=t.target=Dr(t.props,C);T&&cs(t,T,null,c,0)}else p&&cs(t,E,F,c,1)}Cc(t)},remove(e,t,n,{um:i,o:{remove:s}},r){const{shapeFlag:o,children:l,anchor:a,targetStart:c,targetAnchor:f,target:d,props:y}=e;if(d&&(s(c),s(f)),r&&s(a),o&16){const b=r||!xi(y);for(let C=0;C{Tl||(console.error("Hydration completed but contains mismatches."),Tl=!0)},dh=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",hh=e=>e.namespaceURI.includes("MathML"),us=e=>{if(dh(e))return"svg";if(hh(e))return"mathml"},fs=e=>e.nodeType===8;function ph(e){const{mt:t,p:n,o:{patchProp:i,createText:s,nextSibling:r,parentNode:o,remove:l,insert:a,createComment:c}}=e,f=(_,k)=>{if(!k.hasChildNodes()){n(null,_,k),Ns(),k._vnode=_;return}d(k.firstChild,_,null,null,null),Ns(),k._vnode=_},d=(_,k,R,E,F,p=!1)=>{p=p||!!k.dynamicChildren;const u=fs(_)&&_.data==="[",g=()=>I(_,k,R,E,F,u),{type:T,ref:v,shapeFlag:O,patchFlag:K}=k;let ee=_.nodeType;k.el=_,K===-2&&(p=!1,k.dynamicChildren=null);let W=null;switch(T){case mn:ee!==3?k.children===""?(a(k.el=s(""),o(_),_),W=_):W=g():(_.data!==k.children&&(Zn(),_.data=k.children),W=r(_));break;case it:N(_)?(W=r(_),q(k.el=_.content.firstChild,_,R)):ee!==8||u?W=g():W=r(_);break;case Dn:if(u&&(_=r(_),ee=_.nodeType),ee===1||ee===3){W=_;const V=!k.children.length;for(let z=0;z{p=p||!!k.dynamicChildren;const{type:u,props:g,patchFlag:T,shapeFlag:v,dirs:O,transition:K}=k,ee=u==="input"||u==="option";if(ee||T!==-1){O&&jt(k,null,R,"created");let W=!1;if(N(_)){W=xc(E,K)&&R&&R.vnode.props&&R.vnode.props.appear;const z=_.content.firstChild;W&&K.beforeEnter(z),q(z,_,R),k.el=_=z}if(v&16&&!(g&&(g.innerHTML||g.textContent))){let z=b(_.firstChild,k,_,R,E,F,p);for(;z;){Zn();const se=z;z=z.nextSibling,l(se)}}else v&8&&_.textContent!==k.children&&(Zn(),_.textContent=k.children);if(g){if(ee||!p||T&48)for(const z in g)(ee&&(z.endsWith("value")||z==="indeterminate")||Kn(z)&&!hn(z)||z[0]===".")&&i(_,z,null,g[z],void 0,R);else if(g.onClick)i(_,"onClick",null,g.onClick,void 0,R);else if(T&4&&Fn(g.style))for(const z in g.style)g.style[z]}let V;(V=g&&g.onVnodeBeforeMount)&&yt(V,R,k),O&&jt(k,null,R,"beforeMount"),((V=g&&g.onVnodeMounted)||O||W)&&Fc(()=>{V&&yt(V,R,k),W&&K.enter(_),O&&jt(k,null,R,"mounted")},E)}return _.nextSibling},b=(_,k,R,E,F,p,u)=>{u=u||!!k.dynamicChildren;const g=k.children,T=g.length;for(let v=0;v{const{slotScopeIds:u}=k;u&&(F=F?F.concat(u):u);const g=o(_),T=b(r(_),k,g,R,E,F,p);return T&&fs(T)&&T.data==="]"?r(k.anchor=T):(Zn(),a(k.anchor=c("]"),g,T),T)},I=(_,k,R,E,F,p)=>{if(Zn(),k.el=null,p){const T=H(_);for(;;){const v=r(_);if(v&&v!==T)l(v);else break}}const u=r(_),g=o(_);return l(_),n(null,k,g,u,R,E,us(g),F),u},H=(_,k="[",R="]")=>{let E=0;for(;_;)if(_=r(_),_&&fs(_)&&(_.data===k&&E++,_.data===R)){if(E===0)return r(_);E--}return _},q=(_,k,R)=>{const E=k.parentNode;E&&E.replaceChild(_,k);let F=R;for(;F;)F.vnode.el===k&&(F.vnode.el=F.subTree.el=_),F=F.parent},N=_=>_.nodeType===1&&_.tagName.toLowerCase()==="template";return[f,d]}const nt=Fc;function Ec(e){return Ic(e)}function Tc(e){return Ic(e,ph)}function Ic(e,t){const n=ba();n.__VUE__=!0;const{insert:i,remove:s,patchProp:r,createElement:o,createText:l,createComment:a,setText:c,setElementText:f,parentNode:d,nextSibling:y,setScopeId:b=et,insertStaticContent:C}=e,I=(h,m,x,L=null,B=null,j=null,Z=void 0,J=null,G=!!m.dynamicChildren)=>{if(h===m)return;h&&!Bt(h,m)&&(L=le(h),te(h,B,j,!0),h=null),m.patchFlag===-2&&(G=!1,m.dynamicChildren=null);const{type:P,ref:Y,shapeFlag:oe}=m;switch(P){case mn:H(h,m,x,L);break;case it:q(h,m,x,L);break;case Dn:h==null&&N(m,x,L,Z);break;case Oe:v(h,m,x,L,B,j,Z,J,G);break;default:oe&1?R(h,m,x,L,B,j,Z,J,G):oe&6?O(h,m,x,L,B,j,Z,J,G):(oe&64||oe&128)&&P.process(h,m,x,L,B,j,Z,J,G,he)}Y!=null&&B&&Ms(Y,h&&h.ref,j,m||h,!m)},H=(h,m,x,L)=>{if(h==null)i(m.el=l(m.children),x,L);else{const B=m.el=h.el;m.children!==h.children&&c(B,m.children)}},q=(h,m,x,L)=>{h==null?i(m.el=a(m.children||""),x,L):m.el=h.el},N=(h,m,x,L)=>{[h.el,h.anchor]=C(h.children,m,x,L,h.el,h.anchor)},_=({el:h,anchor:m},x,L)=>{let B;for(;h&&h!==m;)B=y(h),i(h,x,L),h=B;i(m,x,L)},k=({el:h,anchor:m})=>{let x;for(;h&&h!==m;)x=y(h),s(h),h=x;s(m)},R=(h,m,x,L,B,j,Z,J,G)=>{m.type==="svg"?Z="svg":m.type==="math"&&(Z="mathml"),h==null?E(m,x,L,B,j,Z,J,G):u(h,m,B,j,Z,J,G)},E=(h,m,x,L,B,j,Z,J)=>{let G,P;const{props:Y,shapeFlag:oe,transition:Q,dirs:de}=h;if(G=h.el=o(h.type,j,Y&&Y.is,Y),oe&8?f(G,h.children):oe&16&&p(h.children,G,null,L,B,Sr(h,j),Z,J),de&&jt(h,null,L,"created"),F(G,h,h.scopeId,Z,L),Y){for(const Ie in Y)Ie!=="value"&&!hn(Ie)&&r(G,Ie,null,Y[Ie],j,L);"value"in Y&&r(G,"value",null,Y.value,j),(P=Y.onVnodeBeforeMount)&&yt(P,L,h)}de&&jt(h,null,L,"beforeMount");const pe=xc(B,Q);pe&&Q.beforeEnter(G),i(G,m,x),((P=Y&&Y.onVnodeMounted)||pe||de)&&nt(()=>{P&&yt(P,L,h),pe&&Q.enter(G),de&&jt(h,null,L,"mounted")},B)},F=(h,m,x,L,B)=>{if(x&&b(h,x),L)for(let j=0;j{for(let P=G;P{const J=m.el=h.el;let{patchFlag:G,dynamicChildren:P,dirs:Y}=m;G|=h.patchFlag&16;const oe=h.props||Ne,Q=m.props||Ne;let de;if(x&&In(x,!1),(de=Q.onVnodeBeforeUpdate)&&yt(de,x,m,h),Y&&jt(m,h,x,"beforeUpdate"),x&&In(x,!0),(oe.innerHTML&&Q.innerHTML==null||oe.textContent&&Q.textContent==null)&&f(J,""),P?g(h.dynamicChildren,P,J,x,L,Sr(m,B),j):Z||z(h,m,J,null,x,L,Sr(m,B),j,!1),G>0){if(G&16)T(J,oe,Q,x,B);else if(G&2&&oe.class!==Q.class&&r(J,"class",null,Q.class,B),G&4&&r(J,"style",oe.style,Q.style,B),G&8){const pe=m.dynamicProps;for(let Ie=0;Ie{de&&yt(de,x,m,h),Y&&jt(m,h,x,"updated")},L)},g=(h,m,x,L,B,j,Z)=>{for(let J=0;J{if(m!==x){if(m!==Ne)for(const j in m)!hn(j)&&!(j in x)&&r(h,j,m[j],null,B,L);for(const j in x){if(hn(j))continue;const Z=x[j],J=m[j];Z!==J&&j!=="value"&&r(h,j,J,Z,B,L)}"value"in x&&r(h,"value",m.value,x.value,B)}},v=(h,m,x,L,B,j,Z,J,G)=>{const P=m.el=h?h.el:l(""),Y=m.anchor=h?h.anchor:l("");let{patchFlag:oe,dynamicChildren:Q,slotScopeIds:de}=m;de&&(J=J?J.concat(de):de),h==null?(i(P,x,L),i(Y,x,L),p(m.children||[],x,Y,B,j,Z,J,G)):oe>0&&oe&64&&Q&&h.dynamicChildren?(g(h.dynamicChildren,Q,x,B,j,Z,J),(m.key!=null||B&&m===B.subTree)&&No(h,m,!0)):z(h,m,x,Y,B,j,Z,J,G)},O=(h,m,x,L,B,j,Z,J,G)=>{m.slotScopeIds=J,h==null?m.shapeFlag&512?B.ctx.activate(m,x,L,Z,G):K(m,x,L,B,j,Z,G):ee(h,m,G)},K=(h,m,x,L,B,j,Z)=>{const J=h.component=jc(h,L,B);if(Ki(h)&&(J.ctx.renderer=he),Uc(J,!1,Z),J.asyncDep){if(B&&B.registerDep(J,W,Z),!h.el){const G=J.subTree=Be(it);q(null,G,m,x)}}else W(J,h,m,x,B,j,Z)},ee=(h,m,x)=>{const L=m.component=h.component;if(Ch(h,m,x))if(L.asyncDep&&!L.asyncResolved){V(L,m,x);return}else L.next=m,bd(L.update),L.effect.dirty=!0,L.update();else m.el=h.el,L.vnode=m},W=(h,m,x,L,B,j,Z)=>{const J=()=>{if(h.isMounted){let{next:Y,bu:oe,u:Q,parent:de,vnode:pe}=h;{const We=wc(h);if(We){Y&&(Y.el=pe.el,V(h,Y,Z)),We.asyncDep.then(()=>{h.isUnmounted||J()});return}}let Ie=Y,ve;In(h,!1),Y?(Y.el=pe.el,V(h,Y,Z)):Y=pe,oe&&ii(oe),(ve=Y.props&&Y.props.onVnodeBeforeUpdate)&&yt(ve,de,Y,pe),In(h,!0);const Pe=_s(h),Ke=h.subTree;h.subTree=Pe,I(Ke,Pe,d(Ke.el),le(Ke),h,B,j),Y.el=Pe.el,Ie===null&&Ro(h,Pe.el),Q&&nt(Q,B),(ve=Y.props&&Y.props.onVnodeUpdated)&&nt(()=>yt(ve,de,Y,pe),B)}else{let Y;const{el:oe,props:Q}=m,{bm:de,m:pe,parent:Ie}=h,ve=Bn(m);if(In(h,!1),de&&ii(de),!ve&&(Y=Q&&Q.onVnodeBeforeMount)&&yt(Y,Ie,m),In(h,!0),oe&&Te){const Pe=()=>{h.subTree=_s(h),Te(oe,h.subTree,h,B,null)};ve?m.type.__asyncLoader().then(()=>!h.isUnmounted&&Pe()):Pe()}else{const Pe=h.subTree=_s(h);I(null,Pe,x,L,h,B,j),m.el=Pe.el}if(pe&&nt(pe,B),!ve&&(Y=Q&&Q.onVnodeMounted)){const Pe=m;nt(()=>yt(Y,Ie,Pe),B)}(m.shapeFlag&256||Ie&&Bn(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&h.a&&nt(h.a,B),h.isMounted=!0,m=x=L=null}},G=h.effect=new ai(J,et,()=>er(P),h.scope),P=h.update=()=>{G.dirty&&G.run()};P.i=h,P.id=h.uid,In(h,!0),P()},V=(h,m,x)=>{m.component=h;const L=h.vnode.props;h.vnode=m,h.next=null,ih(h,m.props,L,x),lh(h,m.children,x),En(),dl(h),Tn()},z=(h,m,x,L,B,j,Z,J,G=!1)=>{const P=h&&h.children,Y=h?h.shapeFlag:0,oe=m.children,{patchFlag:Q,shapeFlag:de}=m;if(Q>0){if(Q&128){Me(P,oe,x,L,B,j,Z,J,G);return}else if(Q&256){se(P,oe,x,L,B,j,Z,J,G);return}}de&8?(Y&16&&ce(P,B,j),oe!==P&&f(x,oe)):Y&16?de&16?Me(P,oe,x,L,B,j,Z,J,G):ce(P,B,j,!0):(Y&8&&f(x,""),de&16&&p(oe,x,L,B,j,Z,J,G))},se=(h,m,x,L,B,j,Z,J,G)=>{h=h||ei,m=m||ei;const P=h.length,Y=m.length,oe=Math.min(P,Y);let Q;for(Q=0;QY?ce(h,B,j,!0,!1,oe):p(m,x,L,B,j,Z,J,G,oe)},Me=(h,m,x,L,B,j,Z,J,G)=>{let P=0;const Y=m.length;let oe=h.length-1,Q=Y-1;for(;P<=oe&&P<=Q;){const de=h[P],pe=m[P]=G?un(m[P]):vt(m[P]);if(Bt(de,pe))I(de,pe,x,null,B,j,Z,J,G);else break;P++}for(;P<=oe&&P<=Q;){const de=h[oe],pe=m[Q]=G?un(m[Q]):vt(m[Q]);if(Bt(de,pe))I(de,pe,x,null,B,j,Z,J,G);else break;oe--,Q--}if(P>oe){if(P<=Q){const de=Q+1,pe=deQ)for(;P<=oe;)te(h[P],B,j,!0),P++;else{const de=P,pe=P,Ie=new Map;for(P=pe;P<=Q;P++){const S=m[P]=G?un(m[P]):vt(m[P]);S.key!=null&&Ie.set(S.key,P)}let ve,Pe=0;const Ke=Q-pe+1;let We=!1,Wt=0;const w=new Array(Ke);for(P=0;P=Ke){te(S,B,j,!0);continue}let D;if(S.key!=null)D=Ie.get(S.key);else for(ve=pe;ve<=Q;ve++)if(w[ve-pe]===0&&Bt(S,m[ve])){D=ve;break}D===void 0?te(S,B,j,!0):(w[D-pe]=P+1,D>=Wt?Wt=D:We=!0,I(S,m[D],x,null,B,j,Z,J,G),Pe++)}const A=We?gh(w):ei;for(ve=A.length-1,P=Ke-1;P>=0;P--){const S=pe+P,D=m[S],ue=S+1{const{el:j,type:Z,transition:J,children:G,shapeFlag:P}=h;if(P&6){ye(h.component.subTree,m,x,L);return}if(P&128){h.suspense.move(m,x,L);return}if(P&64){Z.move(h,m,x,he);return}if(Z===Oe){i(j,m,x);for(let oe=0;oeJ.enter(j),B);else{const{leave:oe,delayLeave:Q,afterLeave:de}=J,pe=()=>i(j,m,x),Ie=()=>{oe(j,()=>{pe(),de&&de()})};Q?Q(j,pe,Ie):Ie()}else i(j,m,x)},te=(h,m,x,L=!1,B=!1)=>{const{type:j,props:Z,ref:J,children:G,dynamicChildren:P,shapeFlag:Y,patchFlag:oe,dirs:Q,cacheIndex:de}=h;if(oe===-2&&(B=!1),J!=null&&Ms(J,null,x,h,!0),de!=null&&(m.renderCache[de]=void 0),Y&256){m.ctx.deactivate(h);return}const pe=Y&1&&Q,Ie=!Bn(h);let ve;if(Ie&&(ve=Z&&Z.onVnodeBeforeUnmount)&&yt(ve,m,h),Y&6)U(h.component,x,L);else{if(Y&128){h.suspense.unmount(x,L);return}pe&&jt(h,null,m,"beforeUnmount"),Y&64?h.type.remove(h,m,x,he,L):P&&!P.hasOnce&&(j!==Oe||oe>0&&oe&64)?ce(P,m,x,!1,!0):(j===Oe&&oe&384||!B&&Y&16)&&ce(G,m,x),L&&Ae(h)}(Ie&&(ve=Z&&Z.onVnodeUnmounted)||pe)&&nt(()=>{ve&&yt(ve,m,h),pe&&jt(h,null,m,"unmounted")},x)},Ae=h=>{const{type:m,el:x,anchor:L,transition:B}=h;if(m===Oe){M(x,L);return}if(m===Dn){k(h);return}const j=()=>{s(x),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(h.shapeFlag&1&&B&&!B.persisted){const{leave:Z,delayLeave:J}=B,G=()=>Z(x,j);J?J(h.el,j,G):G()}else j()},M=(h,m)=>{let x;for(;h!==m;)x=y(h),s(h),h=x;s(m)},U=(h,m,x)=>{const{bum:L,scope:B,update:j,subTree:Z,um:J,m:G,a:P}=h;Ls(G),Ls(P),L&&ii(L),B.stop(),j&&(j.active=!1,te(Z,h,m,x)),J&&nt(J,m),nt(()=>{h.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},ce=(h,m,x,L=!1,B=!1,j=0)=>{for(let Z=j;Z{if(h.shapeFlag&6)return le(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const m=y(h.anchor||h.el),x=m&&m[Sc];return x?y(x):m};let Ee=!1;const X=(h,m,x)=>{h==null?m._vnode&&te(m._vnode,null,null,!0):I(m._vnode||null,h,m,null,null,null,x),Ee||(Ee=!0,dl(),Ns(),Ee=!1),m._vnode=h},he={p:I,um:te,m:ye,r:Ae,mt:K,mc:p,pc:z,pbc:g,n:le,o:e};let Ce,Te;return t&&([Ce,Te]=t(he)),{render:X,hydrate:Ce,createApp:eh(X,Ce)}}function Sr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function In({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function xc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function No(e,t,n=!1){const i=e.children,s=t.children;if(ie(i)&&ie(s))for(let r=0;r>1,e[n[l]]0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}function wc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:wc(t)}function Ls(e){if(e)for(let t=0;tgn(kc);function Zt(e,t){return Wi(e,null,t)}function Ac(e,t){return Wi(e,null,{flush:"post"})}function Nc(e,t){return Wi(e,null,{flush:"sync"})}const ds={};function ct(e,t,n){return Wi(e,t,n)}function Wi(e,t,{immediate:n,deep:i,flush:s,once:r,onTrack:o,onTrigger:l}=Ne){if(t&&r){const E=t;t=(...F)=>{E(...F),R()}}const a=Xe,c=E=>i===!0?E:dn(E,i===!1?1:void 0);let f,d=!1,y=!1;if(je(e)?(f=()=>e.value,d=Vn(e)):Fn(e)?(f=()=>c(e),d=!0):ie(e)?(y=!0,d=e.some(E=>Fn(E)||Vn(E)),f=()=>e.map(E=>{if(je(E))return E.value;if(Fn(E))return c(E);if(ge(E))return en(E,a,2)})):ge(e)?t?f=()=>en(e,a,2):f=()=>(b&&b(),xt(e,a,3,[C])):f=et,t&&i){const E=f;f=()=>dn(E())}let b,C=E=>{b=_.onStop=()=>{en(E,a,4),b=_.onStop=void 0}},I;if(Ji)if(C=et,t?n&&xt(t,a,3,[f(),y?[]:void 0,C]):f(),s==="sync"){const E=Oc();I=E.__watcherHandles||(E.__watcherHandles=[])}else return et;let H=y?new Array(e.length).fill(ds):ds;const q=()=>{if(!(!_.active||!_.dirty))if(t){const E=_.run();(i||d||(y?E.some((F,p)=>$t(F,H[p])):$t(E,H)))&&(b&&b(),xt(t,a,3,[E,H===ds?void 0:y&&H[0]===ds?[]:H,C]),H=E)}else _.run()};q.allowRecurse=!!t;let N;s==="sync"?N=q:s==="post"?N=()=>nt(q,a&&a.suspense):(q.pre=!0,a&&(q.id=a.uid),N=()=>er(q));const _=new ai(f,et,N),k=Ia(),R=()=>{_.stop(),k&&uo(k.effects,_)};return t?n?q():H=_.run():s==="post"?nt(_.run.bind(_),a&&a.suspense):_.run(),I&&I.push(R),R}function mh(e,t,n){const i=this.proxy,s=be(e)?e.includes(".")?Rc(i,e):()=>i[e]:e.bind(i,i);let r;ge(t)?r=t:(r=t.handler,n=t);const o=Hn(this),l=Wi(s,r.bind(i),n);return o(),l}function Rc(e,t){const n=t.split(".");return()=>{let i=e;for(let s=0;s{dn(i,t,n)});else if(ya(e)){for(const i in e)dn(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&dn(e[i],t,n)}return e}function yh(e,t,n=Ne){const i=qt(),s=Ue(t),r=bt(t),o=Mc(e,t),l=Ua((a,c)=>{let f,d,y;return Nc(()=>{const b=e[t];$t(f,b)&&(f=b,c())}),{get(){return a(),n.get?n.get(f):f},set(b){if(!$t(b,f))return;const C=i.vnode.props;C&&(t in C||s in C||r in C)&&(`onUpdate:${t}`in C||`onUpdate:${s}`in C||`onUpdate:${r}`in C)||(f=b,c());const I=n.set?n.set(b):b;i.emit(`update:${t}`,I),b!==I&&b!==d&&I===y&&c(),d=b,y=I}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?o||Ne:l,done:!1}:{done:!0}}}},l}const Mc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ue(t)}Modifiers`]||e[`${bt(t)}Modifiers`];function vh(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Ne;let s=n;const r=t.startsWith("update:"),o=r&&Mc(i,t.slice(7));o&&(o.trim&&(s=n.map(f=>be(f)?f.trim():f)),o.number&&(s=n.map(ws)));let l,a=i[l=ni(t)]||i[l=ni(Ue(t))];!a&&r&&(a=i[l=ni(bt(t))]),a&&xt(a,e,6,s);const c=i[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,xt(c,e,6,s)}}function Lc(e,t,n=!1){const i=t.emitsCache,s=i.get(e);if(s!==void 0)return s;const r=e.emits;let o={},l=!1;if(!ge(e)){const a=c=>{const f=Lc(c,t,!0);f&&(l=!0,Re(o,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(Fe(e)&&i.set(e,null),null):(ie(r)?r.forEach(a=>o[a]=null):Re(o,r),Fe(e)&&i.set(e,o),o)}function lr(e,t){return!e||!Kn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ke(e,t[0].toLowerCase()+t.slice(1))||ke(e,bt(t))||ke(e,t))}function _s(e){const{type:t,vnode:n,proxy:i,withProxy:s,propsOptions:[r],slots:o,attrs:l,emit:a,render:c,renderCache:f,props:d,data:y,setupState:b,ctx:C,inheritAttrs:I}=e,H=Mi(e);let q,N;try{if(n.shapeFlag&4){const k=s||i,R=k;q=vt(c.call(R,k,f,d,b,y,C)),N=l}else{const k=t;q=vt(k.length>1?k(d,{attrs:l,slots:o,emit:a}):k(d,null)),N=t.props?l:_h(l)}}catch(k){wi.length=0,zn(k,e,1),q=Be(it)}let _=q;if(N&&I!==!1){const k=Object.keys(N),{shapeFlag:R}=_;k.length&&R&7&&(r&&k.some(co)&&(N=Sh(N,r)),_=Kt(_,N,!1,!0))}return n.dirs&&(_=Kt(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),q=_,Mi(H),q}function bh(e,t=!0){let n;for(let i=0;i{let t;for(const n in e)(n==="class"||n==="style"||Kn(n))&&((t||(t={}))[n]=e[n]);return t},Sh=(e,t)=>{const n={};for(const i in e)(!co(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Ch(e,t,n){const{props:i,children:s,component:r}=e,{props:o,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?Il(i,o,c):!!o;if(a&8){const f=t.dynamicProps;for(let d=0;de.__isSuspense;let Vr=0;const Eh={name:"Suspense",__isSuspense:!0,process(e,t,n,i,s,r,o,l,a,c){if(e==null)Ih(t,n,i,s,r,o,l,a,c);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}xh(e,t,n,i,s,o,l,a,c)}},hydrate:wh,normalize:kh},Th=Eh;function Pi(e,t){const n=e.props&&e.props[t];ge(n)&&n()}function Ih(e,t,n,i,s,r,o,l,a){const{p:c,o:{createElement:f}}=a,d=f("div"),y=e.suspense=Pc(e,s,i,t,d,n,r,o,l,a);c(null,y.pendingBranch=e.ssContent,d,null,i,y,r,o),y.deps>0?(Pi(e,"onPending"),Pi(e,"onFallback"),c(null,e.ssFallback,t,n,i,null,r,o),li(y,e.ssFallback)):y.resolve(!1,!0)}function xh(e,t,n,i,s,r,o,l,{p:a,um:c,o:{createElement:f}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const y=t.ssContent,b=t.ssFallback,{activeBranch:C,pendingBranch:I,isInFallback:H,isHydrating:q}=d;if(I)d.pendingBranch=y,Bt(y,I)?(a(I,y,d.hiddenContainer,null,s,d,r,o,l),d.deps<=0?d.resolve():H&&(q||(a(C,b,n,i,s,null,r,o,l),li(d,b)))):(d.pendingId=Vr++,q?(d.isHydrating=!1,d.activeBranch=I):c(I,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=f("div"),H?(a(null,y,d.hiddenContainer,null,s,d,r,o,l),d.deps<=0?d.resolve():(a(C,b,n,i,s,null,r,o,l),li(d,b))):C&&Bt(y,C)?(a(C,y,n,i,s,d,r,o,l),d.resolve(!0)):(a(null,y,d.hiddenContainer,null,s,d,r,o,l),d.deps<=0&&d.resolve()));else if(C&&Bt(y,C))a(C,y,n,i,s,d,r,o,l),li(d,y);else if(Pi(t,"onPending"),d.pendingBranch=y,y.shapeFlag&512?d.pendingId=y.component.suspenseId:d.pendingId=Vr++,a(null,y,d.hiddenContainer,null,s,d,r,o,l),d.deps<=0)d.resolve();else{const{timeout:N,pendingId:_}=d;N>0?setTimeout(()=>{d.pendingId===_&&d.fallback(b)},N):N===0&&d.fallback(b)}}function Pc(e,t,n,i,s,r,o,l,a,c,f=!1){const{p:d,m:y,um:b,n:C,o:{parentNode:I,remove:H}}=c;let q;const N=Oh(e);N&&t&&t.pendingBranch&&(q=t.pendingId,t.deps++);const _=e.props?ks(e.props.timeout):void 0,k=r,R={vnode:e,parent:t,parentComponent:n,namespace:o,container:i,hiddenContainer:s,deps:0,pendingId:Vr++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(E=!1,F=!1){const{vnode:p,activeBranch:u,pendingBranch:g,pendingId:T,effects:v,parentComponent:O,container:K}=R;let ee=!1;R.isHydrating?R.isHydrating=!1:E||(ee=u&&g.transition&&g.transition.mode==="out-in",ee&&(u.transition.afterLeave=()=>{T===R.pendingId&&(y(g,K,r===k?C(u):r,0),As(v))}),u&&(I(u.el)!==R.hiddenContainer&&(r=C(u)),b(u,O,R,!0)),ee||y(g,K,r,0)),li(R,g),R.pendingBranch=null,R.isInFallback=!1;let W=R.parent,V=!1;for(;W;){if(W.pendingBranch){W.effects.push(...v),V=!0;break}W=W.parent}!V&&!ee&&As(v),R.effects=[],N&&t&&t.pendingBranch&&q===t.pendingId&&(t.deps--,t.deps===0&&!F&&t.resolve()),Pi(p,"onResolve")},fallback(E){if(!R.pendingBranch)return;const{vnode:F,activeBranch:p,parentComponent:u,container:g,namespace:T}=R;Pi(F,"onFallback");const v=C(p),O=()=>{R.isInFallback&&(d(null,E,g,v,u,null,T,l,a),li(R,E))},K=E.transition&&E.transition.mode==="out-in";K&&(p.transition.afterLeave=O),R.isInFallback=!0,b(p,u,null,!0),K||O()},move(E,F,p){R.activeBranch&&y(R.activeBranch,E,F,p),R.container=E},next(){return R.activeBranch&&C(R.activeBranch)},registerDep(E,F,p){const u=!!R.pendingBranch;u&&R.deps++;const g=E.vnode.el;E.asyncDep.catch(T=>{zn(T,E,0)}).then(T=>{if(E.isUnmounted||R.isUnmounted||R.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:v}=E;Kr(E,T,!1),g&&(v.el=g);const O=!g&&E.subTree.el;F(E,v,I(g||E.subTree.el),g?null:C(E.subTree),R,o,p),O&&H(O),Ro(E,v.el),u&&--R.deps===0&&R.resolve()})},unmount(E,F){R.isUnmounted=!0,R.activeBranch&&b(R.activeBranch,n,E,F),R.pendingBranch&&b(R.pendingBranch,n,E,F)}};return R}function wh(e,t,n,i,s,r,o,l,a){const c=t.suspense=Pc(t,i,n,e.parentNode,document.createElement("div"),null,s,r,o,l,!0),f=a(e,c.pendingBranch=t.ssContent,n,c,r,o);return c.deps===0&&c.resolve(!1,!0),f}function kh(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=xl(i?n.default:n),e.ssFallback=i?xl(n.fallback):Be(it)}function xl(e){let t;if(ge(e)){const n=jn&&e._c;n&&(e._d=!1,ae()),e=e(),n&&(e._d=!0,t=ft,Bc())}return ie(e)&&(e=bh(e)),e=vt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Fc(e,t){t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):As(e)}function li(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,i&&i.subTree===n&&(i.vnode.el=s,Ro(i,s))}function Oh(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Oe=Symbol.for("v-fgt"),mn=Symbol.for("v-txt"),it=Symbol.for("v-cmt"),Dn=Symbol.for("v-stc"),wi=[];let ft=null;function ae(e=!1){wi.push(ft=e?null:[])}function Bc(){wi.pop(),ft=wi[wi.length-1]||null}let jn=1;function jr(e){jn+=e,e<0&&ft&&(ft.hasOnce=!0)}function Dc(e){return e.dynamicChildren=jn>0?ft||ei:null,Bc(),jn>0&&ft&&ft.push(e),e}function fe(e,t,n,i,s,r){return Dc(ne(e,t,n,i,s,r,!0))}function zi(e,t,n,i,s){return Dc(Be(e,t,n,i,s,!0))}function Sn(e){return e?e.__v_isVNode===!0:!1}function Bt(e,t){return e.type===t.type&&e.key===t.key}function Ah(e){}const $c=({key:e})=>e??null,Ss=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||je(e)||ge(e)?{i:tt,r:e,k:t,f:!!n}:e:null);function ne(e,t=null,n=null,i=0,s=null,r=e===Oe?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$c(t),ref:t&&Ss(t),scopeId:tr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:tt};return l?(Mo(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=be(n)?8:16),jn>0&&!o&&ft&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&ft.push(a),a}const Be=Nh;function Nh(e,t=null,n=null,i=0,s=null,r=!1){if((!e||e===lc)&&(e=it),Sn(e)){const l=Kt(e,t,!0);return n&&Mo(l,n),jn>0&&!r&&ft&&(l.shapeFlag&6?ft[ft.indexOf(e)]=l:ft.push(l)),l.patchFlag=-2,l}if(Dh(e)&&(e=e.__vccOpts),t){t=Vc(t);let{class:l,style:a}=t;l&&!be(l)&&(t.class=Ze(l)),Fe(a)&&(bo(a)&&!ie(a)&&(a=Re({},a)),t.style=Hi(a))}const o=be(e)?1:$r(e)?128:ah(e)?64:Fe(e)?4:ge(e)?2:0;return ne(e,t,n,i,s,o,r,!0)}function Vc(e){return e?bo(e)||pc(e)?Re({},e):e:null}function Kt(e,t,n=!1,i=!1){const{props:s,ref:r,patchFlag:o,children:l,transition:a}=e,c=t?Gi(s||{},t):s,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&$c(c),ref:t&&t.ref?n&&r?ie(r)?r.concat(Ss(t)):[r,Ss(t)]:Ss(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&i&&_n(f,a.clone(f)),f}function ar(e=" ",t=0){return Be(mn,null,e,t)}function Rh(e,t){const n=Be(Dn,null,e);return n.staticCount=t,n}function $e(e="",t=!1){return t?(ae(),zi(it,null,e)):Be(it,null,e)}function vt(e){return e==null||typeof e=="boolean"?Be(it):ie(e)?Be(Oe,null,e.slice()):typeof e=="object"?un(e):Be(mn,null,String(e))}function un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kt(e)}function Mo(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(ie(t))n=16;else if(typeof t=="object")if(i&65){const s=t.default;s&&(s._c&&(s._d=!1),Mo(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!pc(t)?t._ctx=tt:s===3&&tt&&(tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:tt},n=32):(t=String(t),i&64?(n=16,t=[ar(t)]):n=8);e.children=t,e.shapeFlag|=n}function Gi(...e){const t={};for(let n=0;nXe||tt;let Ps,Hr;{const e=ba(),t=(n,i)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(i),r=>{s.length>1?s.forEach(o=>o(r)):s[0](r)}};Ps=t("__VUE_INSTANCE_SETTERS__",n=>Xe=n),Hr=t("__VUE_SSR_SETTERS__",n=>Ji=n)}const Hn=e=>{const t=Xe;return Ps(e),e.scope.on(),()=>{e.scope.off(),Ps(t)}},Ur=()=>{Xe&&Xe.scope.off(),Ps(null)};function Hc(e){return e.vnode.shapeFlag&4}let Ji=!1;function Uc(e,t=!1,n=!1){t&&Hr(t);const{props:i,children:s}=e.vnode,r=Hc(e);nh(e,i,r,t),oh(e,s,n);const o=r?Ph(e,t):void 0;return t&&Hr(!1),o}function Ph(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Lr);const{setup:i}=n;if(i){const s=e.setupContext=i.length>1?Wc(e):null,r=Hn(e);En();const o=en(i,e,0,[e.props,s]);if(Tn(),r(),fo(o)){if(o.then(Ur,Ur),t)return o.then(l=>{Kr(e,l,t)}).catch(l=>{zn(l,e,0)});e.asyncDep=o}else Kr(e,o,t)}else qc(e,t)}function Kr(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fe(t)&&(e.setupState=Co(t)),qc(e,n)}let Fs,qr;function Kc(e){Fs=e,qr=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Ld))}}const Fh=()=>!Fs;function qc(e,t,n){const i=e.type;if(!e.render){if(!t&&Fs&&!i.render){const s=i.template||ko(e).template;if(s){const{isCustomElement:r,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=i,c=Re(Re({isCustomElement:r,delimiters:l},o),a);i.render=Fs(s,c)}}e.render=i.render||et,qr&&qr(e)}{const s=Hn(e);En();try{Gd(e)}finally{Tn(),s()}}}const Bh={get(e,t){return St(e,"get",""),e[t]}};function Wc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Bh),slots:e.slots,emit:e.emit,expose:t}}function Zi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Co(Va(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ii)return Ii[n](e)},has(t,n){return n in t||n in Ii}})):e.proxy}function Wr(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function Dh(e){return ge(e)&&"__vccOpts"in e}const ze=(e,t)=>nd(e,t,Ji);function zc(e,t,n){const i=arguments.length;return i===2?Fe(t)&&!ie(t)?Sn(t)?Be(e,null,[t]):Be(e,t):Be(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Sn(n)&&(n=[n]),Be(e,t,n))}function $h(){}function Vh(e,t,n,i){const s=n[i];if(s&&Gc(s,e))return s;const r=t();return r.memo=e.slice(),r.cacheIndex=i,n[i]=r}function Gc(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i0&&ft&&ft.push(e),!0}const Jc="3.4.32",jh=et,Hh=md,Uh=Qn,Kh=Ga,qh={createComponentInstance:jc,setupComponent:Uc,renderComponentRoot:_s,setCurrentRenderingInstance:Mi,isVNode:Sn,normalizeVNode:vt,getComponentPublicInstance:Zi},Wh=qh,zh=null,Gh=null,Jh=null;/** +**/function pd(e,t){}const gd={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},md={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"};function en(e,t,n,i){try{return i?e(...i):e()}catch(s){zn(s,t,n)}}function xt(e,t,n,i){if(ge(e)){const s=en(e,t,n,i);return s&&fo(s)&&s.catch(r=>{zn(r,t,n)}),s}if(ie(e)){const s=[];for(let r=0;r>>1,s=ut[i],r=Ri(s);rHt&&ut.splice(t,1)}function As(e){ie(e)?ri.push(...e):(!an||!an.includes(e,e.allowRecurse?On+1:On))&&ri.push(e),Wa()}function dl(e,t,n=Ni?Ht+1:0){for(;nRi(n)-Ri(i));if(ri.length=0,an){an.push(...t);return}for(an=t,On=0;One.id==null?1/0:e.id,_d=(e,t)=>{const n=Ri(e)-Ri(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function za(e){Rr=!1,Ni=!0,ut.sort(_d);try{for(Ht=0;HtQn.emit(s,...r)),os=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Ga(r,t)}),setTimeout(()=>{Qn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,os=[])},3e3)):os=[]}let tt=null,tr=null;function Mi(e){const t=tt;return tt=e,tr=e&&e.type.__scopeId||null,t}function Sd(e){tr=e}function Cd(){tr=null}const Ed=e=>ci;function ci(e,t=tt,n){if(!t||e._n)return e;const i=(...s)=>{i._d&&jr(-1);const r=Mi(t);let o;try{o=e(...s)}finally{Mi(r),i._d&&jr(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function mt(e,t){if(tt===null)return e;const n=Zi(tt),i=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),rr(()=>{e.isUnmounting=!0}),e}const At=[Function,Array],Io={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:At,onEnter:At,onAfterEnter:At,onEnterCancelled:At,onBeforeLeave:At,onLeave:At,onAfterLeave:At,onLeaveCancelled:At,onBeforeAppear:At,onAppear:At,onAfterAppear:At,onAppearCancelled:At},Ja=e=>{const t=e.subTree;return t.component?Ja(t.component):t},Td={name:"BaseTransition",props:Io,setup(e,{slots:t}){const n=qt(),i=To();return()=>{const s=t.default&&nr(t.default(),!0);if(!s||!s.length)return;let r=s[0];if(s.length>1){for(const y of s)if(y.type!==it){r=y;break}}const o=we(e),{mode:l}=o;if(i.isLeaving)return yr(r);const a=hl(r);if(!a)return yr(r);let c=ui(a,o,i,n,y=>c=y);_n(a,c);const f=n.subTree,d=f&&hl(f);if(d&&d.type!==it&&!Bt(a,d)&&Ja(n).type!==it){const y=ui(d,o,i,n);if(_n(d,y),l==="out-in"&&a.type!==it)return i.isLeaving=!0,y.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},yr(r);l==="in-out"&&a.type!==it&&(y.delayLeave=(b,C,I)=>{const H=Ya(i,d);H[String(d.key)]=d,b[cn]=()=>{C(),b[cn]=void 0,delete c.delayedLeave},c.delayedLeave=I})}return r}}},Za=Td;function Ya(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function ui(e,t,n,i,s){const{appear:r,mode:o,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:f,onEnterCancelled:d,onBeforeLeave:y,onLeave:b,onAfterLeave:C,onLeaveCancelled:I,onBeforeAppear:H,onAppear:q,onAfterAppear:N,onAppearCancelled:_}=t,k=String(e.key),R=Ya(n,e),E=(u,g)=>{u&&xt(u,i,9,g)},F=(u,g)=>{const T=g[1];E(u,g),ie(u)?u.every(v=>v.length<=1)&&T():u.length<=1&&T()},p={mode:o,persisted:l,beforeEnter(u){let g=a;if(!n.isMounted)if(r)g=H||a;else return;u[cn]&&u[cn](!0);const T=R[k];T&&Bt(e,T)&&T.el[cn]&&T.el[cn](),E(g,[u])},enter(u){let g=c,T=f,v=d;if(!n.isMounted)if(r)g=q||c,T=N||f,v=_||d;else return;let O=!1;const K=u[ls]=ee=>{O||(O=!0,ee?E(v,[u]):E(T,[u]),p.delayedLeave&&p.delayedLeave(),u[ls]=void 0)};g?F(g,[u,K]):K()},leave(u,g){const T=String(e.key);if(u[ls]&&u[ls](!0),n.isUnmounting)return g();E(y,[u]);let v=!1;const O=u[cn]=K=>{v||(v=!0,g(),K?E(I,[u]):E(C,[u]),u[cn]=void 0,R[T]===e&&delete R[T])};R[T]=e,b?F(b,[u,O]):O()},clone(u){const g=ui(u,t,n,i,s);return s&&s(g),g}};return p}function yr(e){if(Ki(e))return e=Kt(e),e.children=null,e}function hl(e){if(!Ki(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ge(n.default))return n.default()}}function _n(e,t){e.shapeFlag&6&&e.component?_n(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nr(e,t=!1,n){let i=[],s=0;for(let r=0;r1)for(let r=0;r!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Id(e){ge(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,timeout:r,suspensible:o=!0,onError:l}=e;let a=null,c,f=0;const d=()=>(f++,a=null,y()),y=()=>{let b;return a||(b=a=t().catch(C=>{if(C=C instanceof Error?C:new Error(String(C)),l)return new Promise((I,H)=>{l(C,()=>I(d()),()=>H(C),f+1)});throw C}).then(C=>b!==a&&a?a:(C&&(C.__esModule||C[Symbol.toStringTag]==="Module")&&(C=C.default),c=C,C)))};return ir({name:"AsyncComponentWrapper",__asyncLoader:y,get __asyncResolved(){return c},setup(){const b=Xe;if(c)return()=>vr(c,b);const C=N=>{a=null,zn(N,b,13,!i)};if(o&&b.suspense||Ji)return y().then(N=>()=>vr(N,b)).catch(N=>(C(N),()=>i?Be(i,{error:N}):null));const I=me(!1),H=me(),q=me(!!s);return s&&setTimeout(()=>{q.value=!1},s),r!=null&&setTimeout(()=>{if(!I.value&&!H.value){const N=new Error(`Async component timed out after ${r}ms.`);C(N),H.value=N}},r),y().then(()=>{I.value=!0,b.parent&&Ki(b.parent.vnode)&&(b.parent.effect.dirty=!0,er(b.parent.update))}).catch(N=>{C(N),H.value=N}),()=>{if(I.value&&c)return vr(c,b);if(H.value&&i)return Be(i,{error:H.value});if(n&&!q.value)return Be(n)}}})}function vr(e,t){const{ref:n,props:i,children:s,ce:r}=t.vnode,o=Be(e,i,s);return o.ref=n,o.ce=r,delete t.vnode.ce,o}const Ki=e=>e.type.__isKeepAlive,xd={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=qt(),i=n.ctx;if(!i.renderer)return()=>{const N=t.default&&t.default();return N&&N.length===1?N[0]:N};const s=new Map,r=new Set;let o=null;const l=n.suspense,{renderer:{p:a,m:c,um:f,o:{createElement:d}}}=i,y=d("div");i.activate=(N,_,k,R,E)=>{const F=N.component;c(N,_,k,0,l),a(F.vnode,N,_,k,F,l,R,N.slotScopeIds,E),nt(()=>{F.isDeactivated=!1,F.a&&ii(F.a);const p=N.props&&N.props.onVnodeMounted;p&&yt(p,F.parent,N)},l)},i.deactivate=N=>{const _=N.component;Ls(_.m),Ls(_.a),c(N,y,null,1,l),nt(()=>{_.da&&ii(_.da);const k=N.props&&N.props.onVnodeUnmounted;k&&yt(k,_.parent,N),_.isDeactivated=!0},l)};function b(N){br(N),f(N,n,l,!0)}function C(N){s.forEach((_,k)=>{const R=Wr(_.type);R&&(!N||!N(R))&&I(k)})}function I(N){const _=s.get(N);!o||!Bt(_,o)?b(_):o&&br(o),s.delete(N),r.delete(N)}ct(()=>[e.include,e.exclude],([N,_])=>{N&&C(k=>Ei(N,k)),_&&C(k=>!Ei(_,k))},{flush:"post",deep:!0});let H=null;const q=()=>{H!=null&&($r(n.subTree.type)?nt(()=>{s.set(H,as(n.subTree))},n.subTree.suspense):s.set(H,as(n.subTree)))};return Gn(q),qi(q),rr(()=>{s.forEach(N=>{const{subTree:_,suspense:k}=n,R=as(_);if(N.type===R.type&&N.key===R.key){br(R);const E=R.component.da;E&&nt(E,k);return}b(N)})}),()=>{if(H=null,!t.default)return null;const N=t.default(),_=N[0];if(N.length>1)return o=null,N;if(!Sn(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let k=as(_);const R=k.type,E=Wr(Bn(k)?k.type.__asyncResolved||{}:R),{include:F,exclude:p,max:u}=e;if(F&&(!E||!Ei(F,E))||p&&E&&Ei(p,E))return o=k,_;const g=k.key==null?R:k.key,T=s.get(g);return k.el&&(k=Kt(k),_.shapeFlag&128&&(_.ssContent=k)),H=g,T?(k.el=T.el,k.component=T.component,k.transition&&_n(k,k.transition),k.shapeFlag|=512,r.delete(g),r.add(g)):(r.add(g),u&&r.size>parseInt(u,10)&&I(r.values().next().value)),k.shapeFlag|=256,o=k,$r(_.type)?_:k}}},wd=xd;function Ei(e,t){return ie(e)?e.some(n=>Ei(n,t)):be(e)?e.split(",").includes(t):cf(e)?e.test(t):!1}function Qa(e,t){ec(e,"a",t)}function Xa(e,t){ec(e,"da",t)}function ec(e,t,n=Xe){const i=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(sr(t,i,n),n){let s=n.parent;for(;s&&s.parent;)Ki(s.parent.vnode)&&kd(i,t,n,s),s=s.parent}}function kd(e,t,n,i){const s=sr(t,e,i,!0);or(()=>{uo(i[t],s)},n)}function br(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function as(e){return e.shapeFlag&128?e.ssContent:e}function sr(e,t,n=Xe,i=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{En();const l=Hn(n),a=xt(t,n,e,o);return l(),Tn(),a});return i?s.unshift(r):s.push(r),r}}const nn=e=>(t,n=Xe)=>{(!Ji||e==="sp")&&sr(e,(...i)=>t(...i),n)},tc=nn("bm"),Gn=nn("m"),nc=nn("bu"),qi=nn("u"),rr=nn("bum"),or=nn("um"),ic=nn("sp"),sc=nn("rtg"),rc=nn("rtc");function oc(e,t=Xe){sr("ec",e,t)}const xo="components",Od="directives";function bs(e,t){return wo(xo,e,!0,t)||e}const lc=Symbol.for("v-ndc");function Ad(e){return be(e)?wo(xo,e,!1)||e:e||lc}function Nd(e){return wo(Od,e)}function wo(e,t,n=!0,i=!1){const s=tt||Xe;if(s){const r=s.type;if(e===xo){const l=Wr(r,!1);if(l&&(l===t||l===Ue(t)||l===Wn(Ue(t))))return r}const o=pl(s[e]||r[e],t)||pl(s.appContext[e],t);return!o&&i?r:o}}function pl(e,t){return e&&(e[t]||e[Ue(t)]||e[Wn(Ue(t))])}function Ct(e,t,n,i){let s;const r=n&&n[i];if(ie(e)||be(e)){s=new Array(e.length);for(let o=0,l=e.length;ot(o,l,void 0,r&&r[l]));else{const o=Object.keys(e);s=new Array(o.length);for(let l=0,a=o.length;l{const r=i.fn(...s);return r&&(r.key=i.key),r}:i.fn)}return e}function Nt(e,t,n={},i,s){if(tt.isCE||tt.parent&&Bn(tt.parent)&&tt.parent.isCE)return t!=="default"&&(n.name=t),Be("slot",n,i&&i());let r=e[t];r&&r._c&&(r._d=!1),ae();const o=r&&ac(r(n)),l=zi(Oe,{key:(n.key||o&&o.key||`_${t}`)+(!o&&i?"_fb":"")},o||(i?i():[]),o&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function ac(e){return e.some(t=>Sn(t)?!(t.type===it||t.type===Oe&&!ac(t.children)):!0)?e:null}function Md(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:ni(i)]=e[i];return n}const Mr=e=>e?Hc(e)?Zi(e):Mr(e.parent):null,Ii=Re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Mr(e.parent),$root:e=>Mr(e.root),$emit:e=>e.emit,$options:e=>ko(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,er(e.update)}),$nextTick:e=>e.n||(e.n=Ut.bind(e.proxy)),$watch:e=>mh.bind(e)}),_r=(e,t)=>e!==Ne&&!e.__isScriptSetup&&ke(e,t),Lr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:s,props:r,accessCache:o,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const b=o[t];if(b!==void 0)switch(b){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return r[t]}else{if(_r(i,t))return o[t]=1,i[t];if(s!==Ne&&ke(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&ke(c,t))return o[t]=3,r[t];if(n!==Ne&&ke(n,t))return o[t]=4,n[t];Pr&&(o[t]=0)}}const f=Ii[t];let d,y;if(f)return t==="$attrs"&&St(e.attrs,"get",""),f(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==Ne&&ke(n,t))return o[t]=4,n[t];if(y=a.config.globalProperties,ke(y,t))return y[t]},set({_:e},t,n){const{data:i,setupState:s,ctx:r}=e;return _r(s,t)?(s[t]=n,!0):i!==Ne&&ke(i,t)?(i[t]=n,!0):ke(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,propsOptions:r}},o){let l;return!!n[o]||e!==Ne&&ke(e,o)||_r(t,o)||(l=r[0])&&ke(l,o)||ke(i,o)||ke(Ii,o)||ke(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ke(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Ld=Re({},Lr,{get(e,t){if(t!==Symbol.unscopables)return Lr.get(e,t,e)},has(e,t){return t[0]!=="_"&&!gf(t)}});function Pd(){return null}function Fd(){return null}function Bd(e){}function Dd(e){}function $d(){return null}function Vd(){}function jd(e,t){return null}function Hd(){return cc().slots}function Ud(){return cc().attrs}function cc(){const e=qt();return e.setupContext||(e.setupContext=Wc(e))}function Li(e){return ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Kd(e,t){const n=Li(e);for(const i in t){if(i.startsWith("__skip"))continue;let s=n[i];s?ie(s)||ge(s)?s=n[i]={type:s,default:t[i]}:s.default=t[i]:s===null&&(s=n[i]={default:t[i]}),s&&t[`__skip_${i}`]&&(s.skipFactory=!0)}return n}function qd(e,t){return!e||!t?e||t:ie(e)&&ie(t)?e.concat(t):Re({},Li(e),Li(t))}function Wd(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function zd(e){const t=qt();let n=e();return Ur(),fo(n)&&(n=n.catch(i=>{throw Hn(t),i})),[n,()=>Hn(t)]}let Pr=!0;function Gd(e){const t=ko(e),n=e.proxy,i=e.ctx;Pr=!1,t.beforeCreate&&gl(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:o,watch:l,provide:a,inject:c,created:f,beforeMount:d,mounted:y,beforeUpdate:b,updated:C,activated:I,deactivated:H,beforeDestroy:q,beforeUnmount:N,destroyed:_,unmounted:k,render:R,renderTracked:E,renderTriggered:F,errorCaptured:p,serverPrefetch:u,expose:g,inheritAttrs:T,components:v,directives:O,filters:K}=t;if(c&&Jd(c,i,null),o)for(const V in o){const z=o[V];ge(z)&&(i[V]=z.bind(n))}if(s){const V=s.call(n,n);Fe(V)&&(e.data=Ui(V))}if(Pr=!0,r)for(const V in r){const z=r[V],se=ge(z)?z.bind(n,n):ge(z.get)?z.get.bind(n,n):et,Me=!ge(z)&&ge(z.set)?z.set.bind(n):et,ye=ze({get:se,set:Me});Object.defineProperty(i,V,{enumerable:!0,configurable:!0,get:()=>ye.value,set:te=>ye.value=te})}if(l)for(const V in l)uc(l[V],i,n,V);if(a){const V=ge(a)?a.call(n):a;Reflect.ownKeys(V).forEach(z=>{Oo(z,V[z])})}f&&gl(f,e,"c");function W(V,z){ie(z)?z.forEach(se=>V(se.bind(n))):z&&V(z.bind(n))}if(W(tc,d),W(Gn,y),W(nc,b),W(qi,C),W(Qa,I),W(Xa,H),W(oc,p),W(rc,E),W(sc,F),W(rr,N),W(or,k),W(ic,u),ie(g))if(g.length){const V=e.exposed||(e.exposed={});g.forEach(z=>{Object.defineProperty(V,z,{get:()=>n[z],set:se=>n[z]=se})})}else e.exposed||(e.exposed={});R&&e.render===et&&(e.render=R),T!=null&&(e.inheritAttrs=T),v&&(e.components=v),O&&(e.directives=O)}function Jd(e,t,n=et){ie(e)&&(e=Fr(e));for(const i in e){const s=e[i];let r;Fe(s)?"default"in s?r=gn(s.from||i,s.default,!0):r=gn(s.from||i):r=gn(s),je(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[i]=r}}function gl(e,t,n){xt(ie(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function uc(e,t,n,i){const s=i.includes(".")?Rc(n,i):()=>n[i];if(be(e)){const r=t[e];ge(r)&&ct(s,r)}else if(ge(e))ct(s,e.bind(n));else if(Fe(e))if(ie(e))e.forEach(r=>uc(r,t,n,i));else{const r=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(r)&&ct(s,r,e)}}function ko(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let a;return l?a=l:!s.length&&!n&&!i?a=t:(a={},s.length&&s.forEach(c=>Rs(a,c,o,!0)),Rs(a,t,o)),Fe(t)&&r.set(t,a),a}function Rs(e,t,n,i=!1){const{mixins:s,extends:r}=t;r&&Rs(e,r,n,!0),s&&s.forEach(o=>Rs(e,o,n,!0));for(const o in t)if(!(i&&o==="expose")){const l=Zd[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Zd={data:ml,props:yl,emits:yl,methods:Ti,computed:Ti,beforeCreate:ht,created:ht,beforeMount:ht,mounted:ht,beforeUpdate:ht,updated:ht,beforeDestroy:ht,beforeUnmount:ht,destroyed:ht,unmounted:ht,activated:ht,deactivated:ht,errorCaptured:ht,serverPrefetch:ht,components:Ti,directives:Ti,watch:Qd,provide:ml,inject:Yd};function ml(e,t){return t?e?function(){return Re(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Yd(e,t){return Ti(Fr(e),Fr(t))}function Fr(e){if(ie(e)){const t={};for(let n=0;n1)return n&&ge(t)?t.call(i&&i.proxy):t}}function th(){return!!(Xe||tt||oi)}const dc={},hc=()=>Object.create(dc),pc=e=>Object.getPrototypeOf(e)===dc;function nh(e,t,n,i=!1){const s={},r=hc();e.propsDefaults=Object.create(null),gc(e,t,s,r);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=i?s:$a(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function ih(e,t,n,i){const{props:s,attrs:r,vnode:{patchFlag:o}}=e,l=we(s),[a]=e.propsOptions;let c=!1;if((i||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let d=0;d{a=!0;const[y,b]=mc(d,t,!0);Re(o,y),b&&l.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!a)return Fe(e)&&i.set(e,ei),ei;if(ie(r))for(let f=0;f-1,b[1]=I<0||C-1||ke(b,"default"))&&l.push(d)}}}const c=[o,l];return Fe(e)&&i.set(e,c),c}function vl(e){return e[0]!=="$"&&!hn(e)}function bl(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function _l(e,t){return bl(e)===bl(t)}function Sl(e,t){return ie(t)?t.findIndex(n=>_l(n,e)):ge(t)&&_l(t,e)?0:-1}const yc=e=>e[0]==="_"||e==="$stable",Ao=e=>ie(e)?e.map(vt):[vt(e)],rh=(e,t,n)=>{if(t._n)return t;const i=ci((...s)=>Ao(t(...s)),n);return i._c=!1,i},vc=(e,t,n)=>{const i=e._ctx;for(const s in e){if(yc(s))continue;const r=e[s];if(ge(r))t[s]=rh(s,r,i);else if(r!=null){const o=Ao(r);t[s]=()=>o}}},bc=(e,t)=>{const n=Ao(t);e.slots.default=()=>n},_c=(e,t,n)=>{for(const i in t)(n||i!=="_")&&(e[i]=t[i])},oh=(e,t,n)=>{const i=e.slots=hc();if(e.vnode.shapeFlag&32){const s=t._;s?(_c(i,t,n),n&&va(i,"_",s,!0)):vc(t,i)}else t&&bc(e,t)},lh=(e,t,n)=>{const{vnode:i,slots:s}=e;let r=!0,o=Ne;if(i.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:_c(s,t,n):(r=!t.$stable,vc(t,s)),o=t}else t&&(bc(e,t),o={default:1});if(r)for(const l in s)!yc(l)&&o[l]==null&&delete s[l]};function Ms(e,t,n,i,s=!1){if(ie(e)){e.forEach((y,b)=>Ms(y,t&&(ie(t)?t[b]:t),n,i,s));return}if(Bn(i)&&!s)return;const r=i.shapeFlag&4?Zi(i.component):i.el,o=s?null:r,{i:l,r:a}=e,c=t&&t.r,f=l.refs===Ne?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(be(c)?(f[c]=null,ke(d,c)&&(d[c]=null)):je(c)&&(c.value=null)),ge(a))en(a,l,12,[o,f]);else{const y=be(a),b=je(a);if(y||b){const C=()=>{if(e.f){const I=y?ke(d,a)?d[a]:f[a]:a.value;s?ie(I)&&uo(I,r):ie(I)?I.includes(r)||I.push(r):y?(f[a]=[r],ke(d,a)&&(d[a]=f[a])):(a.value=[r],e.k&&(f[e.k]=a.value))}else y?(f[a]=o,ke(d,a)&&(d[a]=o)):b&&(a.value=o,e.k&&(f[e.k]=o))};o?(C.id=-1,nt(C,n)):C()}}}const Sc=Symbol("_vte"),ah=e=>e.__isTeleport,xi=e=>e&&(e.disabled||e.disabled===""),Cl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,El=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Dr=(e,t)=>{const n=e&&e.to;return be(n)?t?t(n):null:n},ch={name:"Teleport",__isTeleport:!0,process(e,t,n,i,s,r,o,l,a,c){const{mc:f,pc:d,pbc:y,o:{insert:b,querySelector:C,createText:I,createComment:H}}=c,q=xi(t.props);let{shapeFlag:N,children:_,dynamicChildren:k}=t;if(e==null){const R=t.el=I(""),E=t.anchor=I(""),F=t.target=Dr(t.props,C),p=t.targetStart=I(""),u=t.targetAnchor=I("");b(R,n,i),b(E,n,i),p[Sc]=u,F&&(b(p,F),b(u,F),o==="svg"||Cl(F)?o="svg":(o==="mathml"||El(F))&&(o="mathml"));const g=(T,v)=>{N&16&&f(_,T,v,s,r,o,l,a)};q?g(n,E):F&&g(F,u)}else{t.el=e.el,t.targetStart=e.targetStart;const R=t.anchor=e.anchor,E=t.target=e.target,F=t.targetAnchor=e.targetAnchor,p=xi(e.props),u=p?n:E,g=p?R:F;if(o==="svg"||Cl(E)?o="svg":(o==="mathml"||El(E))&&(o="mathml"),k?(y(e.dynamicChildren,k,u,s,r,o,l),No(e,t,!0)):a||d(e,t,u,g,s,r,o,l,!1),q)p?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):cs(t,n,R,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const T=t.target=Dr(t.props,C);T&&cs(t,T,null,c,0)}else p&&cs(t,E,F,c,1)}Cc(t)},remove(e,t,n,{um:i,o:{remove:s}},r){const{shapeFlag:o,children:l,anchor:a,targetStart:c,targetAnchor:f,target:d,props:y}=e;if(d&&(s(c),s(f)),r&&s(a),o&16){const b=r||!xi(y);for(let C=0;C{Tl||(console.error("Hydration completed but contains mismatches."),Tl=!0)},dh=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",hh=e=>e.namespaceURI.includes("MathML"),us=e=>{if(dh(e))return"svg";if(hh(e))return"mathml"},fs=e=>e.nodeType===8;function ph(e){const{mt:t,p:n,o:{patchProp:i,createText:s,nextSibling:r,parentNode:o,remove:l,insert:a,createComment:c}}=e,f=(_,k)=>{if(!k.hasChildNodes()){n(null,_,k),Ns(),k._vnode=_;return}d(k.firstChild,_,null,null,null),Ns(),k._vnode=_},d=(_,k,R,E,F,p=!1)=>{p=p||!!k.dynamicChildren;const u=fs(_)&&_.data==="[",g=()=>I(_,k,R,E,F,u),{type:T,ref:v,shapeFlag:O,patchFlag:K}=k;let ee=_.nodeType;k.el=_,K===-2&&(p=!1,k.dynamicChildren=null);let W=null;switch(T){case mn:ee!==3?k.children===""?(a(k.el=s(""),o(_),_),W=_):W=g():(_.data!==k.children&&(Zn(),_.data=k.children),W=r(_));break;case it:N(_)?(W=r(_),q(k.el=_.content.firstChild,_,R)):ee!==8||u?W=g():W=r(_);break;case Dn:if(u&&(_=r(_),ee=_.nodeType),ee===1||ee===3){W=_;const V=!k.children.length;for(let z=0;z{p=p||!!k.dynamicChildren;const{type:u,props:g,patchFlag:T,shapeFlag:v,dirs:O,transition:K}=k,ee=u==="input"||u==="option";if(ee||T!==-1){O&&jt(k,null,R,"created");let W=!1;if(N(_)){W=xc(E,K)&&R&&R.vnode.props&&R.vnode.props.appear;const z=_.content.firstChild;W&&K.beforeEnter(z),q(z,_,R),k.el=_=z}if(v&16&&!(g&&(g.innerHTML||g.textContent))){let z=b(_.firstChild,k,_,R,E,F,p);for(;z;){Zn();const se=z;z=z.nextSibling,l(se)}}else v&8&&_.textContent!==k.children&&(Zn(),_.textContent=k.children);if(g){if(ee||!p||T&48)for(const z in g)(ee&&(z.endsWith("value")||z==="indeterminate")||Kn(z)&&!hn(z)||z[0]===".")&&i(_,z,null,g[z],void 0,R);else if(g.onClick)i(_,"onClick",null,g.onClick,void 0,R);else if(T&4&&Fn(g.style))for(const z in g.style)g.style[z]}let V;(V=g&&g.onVnodeBeforeMount)&&yt(V,R,k),O&&jt(k,null,R,"beforeMount"),((V=g&&g.onVnodeMounted)||O||W)&&Fc(()=>{V&&yt(V,R,k),W&&K.enter(_),O&&jt(k,null,R,"mounted")},E)}return _.nextSibling},b=(_,k,R,E,F,p,u)=>{u=u||!!k.dynamicChildren;const g=k.children,T=g.length;for(let v=0;v{const{slotScopeIds:u}=k;u&&(F=F?F.concat(u):u);const g=o(_),T=b(r(_),k,g,R,E,F,p);return T&&fs(T)&&T.data==="]"?r(k.anchor=T):(Zn(),a(k.anchor=c("]"),g,T),T)},I=(_,k,R,E,F,p)=>{if(Zn(),k.el=null,p){const T=H(_);for(;;){const v=r(_);if(v&&v!==T)l(v);else break}}const u=r(_),g=o(_);return l(_),n(null,k,g,u,R,E,us(g),F),u},H=(_,k="[",R="]")=>{let E=0;for(;_;)if(_=r(_),_&&fs(_)&&(_.data===k&&E++,_.data===R)){if(E===0)return r(_);E--}return _},q=(_,k,R)=>{const E=k.parentNode;E&&E.replaceChild(_,k);let F=R;for(;F;)F.vnode.el===k&&(F.vnode.el=F.subTree.el=_),F=F.parent},N=_=>_.nodeType===1&&_.tagName.toLowerCase()==="template";return[f,d]}const nt=Fc;function Ec(e){return Ic(e)}function Tc(e){return Ic(e,ph)}function Ic(e,t){const n=ba();n.__VUE__=!0;const{insert:i,remove:s,patchProp:r,createElement:o,createText:l,createComment:a,setText:c,setElementText:f,parentNode:d,nextSibling:y,setScopeId:b=et,insertStaticContent:C}=e,I=(h,m,x,L=null,D=null,j=null,Z=void 0,J=null,G=!!m.dynamicChildren)=>{if(h===m)return;h&&!Bt(h,m)&&(L=le(h),te(h,D,j,!0),h=null),m.patchFlag===-2&&(G=!1,m.dynamicChildren=null);const{type:P,ref:Y,shapeFlag:oe}=m;switch(P){case mn:H(h,m,x,L);break;case it:q(h,m,x,L);break;case Dn:h==null&&N(m,x,L,Z);break;case Oe:v(h,m,x,L,D,j,Z,J,G);break;default:oe&1?R(h,m,x,L,D,j,Z,J,G):oe&6?O(h,m,x,L,D,j,Z,J,G):(oe&64||oe&128)&&P.process(h,m,x,L,D,j,Z,J,G,he)}Y!=null&&D&&Ms(Y,h&&h.ref,j,m||h,!m)},H=(h,m,x,L)=>{if(h==null)i(m.el=l(m.children),x,L);else{const D=m.el=h.el;m.children!==h.children&&c(D,m.children)}},q=(h,m,x,L)=>{h==null?i(m.el=a(m.children||""),x,L):m.el=h.el},N=(h,m,x,L)=>{[h.el,h.anchor]=C(h.children,m,x,L,h.el,h.anchor)},_=({el:h,anchor:m},x,L)=>{let D;for(;h&&h!==m;)D=y(h),i(h,x,L),h=D;i(m,x,L)},k=({el:h,anchor:m})=>{let x;for(;h&&h!==m;)x=y(h),s(h),h=x;s(m)},R=(h,m,x,L,D,j,Z,J,G)=>{m.type==="svg"?Z="svg":m.type==="math"&&(Z="mathml"),h==null?E(m,x,L,D,j,Z,J,G):u(h,m,D,j,Z,J,G)},E=(h,m,x,L,D,j,Z,J)=>{let G,P;const{props:Y,shapeFlag:oe,transition:Q,dirs:de}=h;if(G=h.el=o(h.type,j,Y&&Y.is,Y),oe&8?f(G,h.children):oe&16&&p(h.children,G,null,L,D,Sr(h,j),Z,J),de&&jt(h,null,L,"created"),F(G,h,h.scopeId,Z,L),Y){for(const Ie in Y)Ie!=="value"&&!hn(Ie)&&r(G,Ie,null,Y[Ie],j,L);"value"in Y&&r(G,"value",null,Y.value,j),(P=Y.onVnodeBeforeMount)&&yt(P,L,h)}de&&jt(h,null,L,"beforeMount");const pe=xc(D,Q);pe&&Q.beforeEnter(G),i(G,m,x),((P=Y&&Y.onVnodeMounted)||pe||de)&&nt(()=>{P&&yt(P,L,h),pe&&Q.enter(G),de&&jt(h,null,L,"mounted")},D)},F=(h,m,x,L,D)=>{if(x&&b(h,x),L)for(let j=0;j{for(let P=G;P{const J=m.el=h.el;let{patchFlag:G,dynamicChildren:P,dirs:Y}=m;G|=h.patchFlag&16;const oe=h.props||Ne,Q=m.props||Ne;let de;if(x&&In(x,!1),(de=Q.onVnodeBeforeUpdate)&&yt(de,x,m,h),Y&&jt(m,h,x,"beforeUpdate"),x&&In(x,!0),(oe.innerHTML&&Q.innerHTML==null||oe.textContent&&Q.textContent==null)&&f(J,""),P?g(h.dynamicChildren,P,J,x,L,Sr(m,D),j):Z||z(h,m,J,null,x,L,Sr(m,D),j,!1),G>0){if(G&16)T(J,oe,Q,x,D);else if(G&2&&oe.class!==Q.class&&r(J,"class",null,Q.class,D),G&4&&r(J,"style",oe.style,Q.style,D),G&8){const pe=m.dynamicProps;for(let Ie=0;Ie{de&&yt(de,x,m,h),Y&&jt(m,h,x,"updated")},L)},g=(h,m,x,L,D,j,Z)=>{for(let J=0;J{if(m!==x){if(m!==Ne)for(const j in m)!hn(j)&&!(j in x)&&r(h,j,m[j],null,D,L);for(const j in x){if(hn(j))continue;const Z=x[j],J=m[j];Z!==J&&j!=="value"&&r(h,j,J,Z,D,L)}"value"in x&&r(h,"value",m.value,x.value,D)}},v=(h,m,x,L,D,j,Z,J,G)=>{const P=m.el=h?h.el:l(""),Y=m.anchor=h?h.anchor:l("");let{patchFlag:oe,dynamicChildren:Q,slotScopeIds:de}=m;de&&(J=J?J.concat(de):de),h==null?(i(P,x,L),i(Y,x,L),p(m.children||[],x,Y,D,j,Z,J,G)):oe>0&&oe&64&&Q&&h.dynamicChildren?(g(h.dynamicChildren,Q,x,D,j,Z,J),(m.key!=null||D&&m===D.subTree)&&No(h,m,!0)):z(h,m,x,Y,D,j,Z,J,G)},O=(h,m,x,L,D,j,Z,J,G)=>{m.slotScopeIds=J,h==null?m.shapeFlag&512?D.ctx.activate(m,x,L,Z,G):K(m,x,L,D,j,Z,G):ee(h,m,G)},K=(h,m,x,L,D,j,Z)=>{const J=h.component=jc(h,L,D);if(Ki(h)&&(J.ctx.renderer=he),Uc(J,!1,Z),J.asyncDep){if(D&&D.registerDep(J,W,Z),!h.el){const G=J.subTree=Be(it);q(null,G,m,x)}}else W(J,h,m,x,D,j,Z)},ee=(h,m,x)=>{const L=m.component=h.component;if(Ch(h,m,x))if(L.asyncDep&&!L.asyncResolved){V(L,m,x);return}else L.next=m,bd(L.update),L.effect.dirty=!0,L.update();else m.el=h.el,L.vnode=m},W=(h,m,x,L,D,j,Z)=>{const J=()=>{if(h.isMounted){let{next:Y,bu:oe,u:Q,parent:de,vnode:pe}=h;{const We=wc(h);if(We){Y&&(Y.el=pe.el,V(h,Y,Z)),We.asyncDep.then(()=>{h.isUnmounted||J()});return}}let Ie=Y,ve;In(h,!1),Y?(Y.el=pe.el,V(h,Y,Z)):Y=pe,oe&&ii(oe),(ve=Y.props&&Y.props.onVnodeBeforeUpdate)&&yt(ve,de,Y,pe),In(h,!0);const Pe=_s(h),Ke=h.subTree;h.subTree=Pe,I(Ke,Pe,d(Ke.el),le(Ke),h,D,j),Y.el=Pe.el,Ie===null&&Ro(h,Pe.el),Q&&nt(Q,D),(ve=Y.props&&Y.props.onVnodeUpdated)&&nt(()=>yt(ve,de,Y,pe),D)}else{let Y;const{el:oe,props:Q}=m,{bm:de,m:pe,parent:Ie}=h,ve=Bn(m);if(In(h,!1),de&&ii(de),!ve&&(Y=Q&&Q.onVnodeBeforeMount)&&yt(Y,Ie,m),In(h,!0),oe&&Te){const Pe=()=>{h.subTree=_s(h),Te(oe,h.subTree,h,D,null)};ve?m.type.__asyncLoader().then(()=>!h.isUnmounted&&Pe()):Pe()}else{const Pe=h.subTree=_s(h);I(null,Pe,x,L,h,D,j),m.el=Pe.el}if(pe&&nt(pe,D),!ve&&(Y=Q&&Q.onVnodeMounted)){const Pe=m;nt(()=>yt(Y,Ie,Pe),D)}(m.shapeFlag&256||Ie&&Bn(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&h.a&&nt(h.a,D),h.isMounted=!0,m=x=L=null}},G=h.effect=new ai(J,et,()=>er(P),h.scope),P=h.update=()=>{G.dirty&&G.run()};P.i=h,P.id=h.uid,In(h,!0),P()},V=(h,m,x)=>{m.component=h;const L=h.vnode.props;h.vnode=m,h.next=null,ih(h,m.props,L,x),lh(h,m.children,x),En(),dl(h),Tn()},z=(h,m,x,L,D,j,Z,J,G=!1)=>{const P=h&&h.children,Y=h?h.shapeFlag:0,oe=m.children,{patchFlag:Q,shapeFlag:de}=m;if(Q>0){if(Q&128){Me(P,oe,x,L,D,j,Z,J,G);return}else if(Q&256){se(P,oe,x,L,D,j,Z,J,G);return}}de&8?(Y&16&&ce(P,D,j),oe!==P&&f(x,oe)):Y&16?de&16?Me(P,oe,x,L,D,j,Z,J,G):ce(P,D,j,!0):(Y&8&&f(x,""),de&16&&p(oe,x,L,D,j,Z,J,G))},se=(h,m,x,L,D,j,Z,J,G)=>{h=h||ei,m=m||ei;const P=h.length,Y=m.length,oe=Math.min(P,Y);let Q;for(Q=0;QY?ce(h,D,j,!0,!1,oe):p(m,x,L,D,j,Z,J,G,oe)},Me=(h,m,x,L,D,j,Z,J,G)=>{let P=0;const Y=m.length;let oe=h.length-1,Q=Y-1;for(;P<=oe&&P<=Q;){const de=h[P],pe=m[P]=G?un(m[P]):vt(m[P]);if(Bt(de,pe))I(de,pe,x,null,D,j,Z,J,G);else break;P++}for(;P<=oe&&P<=Q;){const de=h[oe],pe=m[Q]=G?un(m[Q]):vt(m[Q]);if(Bt(de,pe))I(de,pe,x,null,D,j,Z,J,G);else break;oe--,Q--}if(P>oe){if(P<=Q){const de=Q+1,pe=deQ)for(;P<=oe;)te(h[P],D,j,!0),P++;else{const de=P,pe=P,Ie=new Map;for(P=pe;P<=Q;P++){const S=m[P]=G?un(m[P]):vt(m[P]);S.key!=null&&Ie.set(S.key,P)}let ve,Pe=0;const Ke=Q-pe+1;let We=!1,Wt=0;const w=new Array(Ke);for(P=0;P=Ke){te(S,D,j,!0);continue}let B;if(S.key!=null)B=Ie.get(S.key);else for(ve=pe;ve<=Q;ve++)if(w[ve-pe]===0&&Bt(S,m[ve])){B=ve;break}B===void 0?te(S,D,j,!0):(w[B-pe]=P+1,B>=Wt?Wt=B:We=!0,I(S,m[B],x,null,D,j,Z,J,G),Pe++)}const A=We?gh(w):ei;for(ve=A.length-1,P=Ke-1;P>=0;P--){const S=pe+P,B=m[S],ue=S+1{const{el:j,type:Z,transition:J,children:G,shapeFlag:P}=h;if(P&6){ye(h.component.subTree,m,x,L);return}if(P&128){h.suspense.move(m,x,L);return}if(P&64){Z.move(h,m,x,he);return}if(Z===Oe){i(j,m,x);for(let oe=0;oeJ.enter(j),D);else{const{leave:oe,delayLeave:Q,afterLeave:de}=J,pe=()=>i(j,m,x),Ie=()=>{oe(j,()=>{pe(),de&&de()})};Q?Q(j,pe,Ie):Ie()}else i(j,m,x)},te=(h,m,x,L=!1,D=!1)=>{const{type:j,props:Z,ref:J,children:G,dynamicChildren:P,shapeFlag:Y,patchFlag:oe,dirs:Q,cacheIndex:de}=h;if(oe===-2&&(D=!1),J!=null&&Ms(J,null,x,h,!0),de!=null&&(m.renderCache[de]=void 0),Y&256){m.ctx.deactivate(h);return}const pe=Y&1&&Q,Ie=!Bn(h);let ve;if(Ie&&(ve=Z&&Z.onVnodeBeforeUnmount)&&yt(ve,m,h),Y&6)U(h.component,x,L);else{if(Y&128){h.suspense.unmount(x,L);return}pe&&jt(h,null,m,"beforeUnmount"),Y&64?h.type.remove(h,m,x,he,L):P&&!P.hasOnce&&(j!==Oe||oe>0&&oe&64)?ce(P,m,x,!1,!0):(j===Oe&&oe&384||!D&&Y&16)&&ce(G,m,x),L&&Ae(h)}(Ie&&(ve=Z&&Z.onVnodeUnmounted)||pe)&&nt(()=>{ve&&yt(ve,m,h),pe&&jt(h,null,m,"unmounted")},x)},Ae=h=>{const{type:m,el:x,anchor:L,transition:D}=h;if(m===Oe){M(x,L);return}if(m===Dn){k(h);return}const j=()=>{s(x),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(h.shapeFlag&1&&D&&!D.persisted){const{leave:Z,delayLeave:J}=D,G=()=>Z(x,j);J?J(h.el,j,G):G()}else j()},M=(h,m)=>{let x;for(;h!==m;)x=y(h),s(h),h=x;s(m)},U=(h,m,x)=>{const{bum:L,scope:D,update:j,subTree:Z,um:J,m:G,a:P}=h;Ls(G),Ls(P),L&&ii(L),D.stop(),j&&(j.active=!1,te(Z,h,m,x)),J&&nt(J,m),nt(()=>{h.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},ce=(h,m,x,L=!1,D=!1,j=0)=>{for(let Z=j;Z{if(h.shapeFlag&6)return le(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const m=y(h.anchor||h.el),x=m&&m[Sc];return x?y(x):m};let Ce=!1;const X=(h,m,x)=>{h==null?m._vnode&&te(m._vnode,null,null,!0):I(m._vnode||null,h,m,null,null,null,x),Ce||(Ce=!0,dl(),Ns(),Ce=!1),m._vnode=h},he={p:I,um:te,m:ye,r:Ae,mt:K,mc:p,pc:z,pbc:g,n:le,o:e};let Ee,Te;return t&&([Ee,Te]=t(he)),{render:X,hydrate:Ee,createApp:eh(X,Ee)}}function Sr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function In({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function xc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function No(e,t,n=!1){const i=e.children,s=t.children;if(ie(i)&&ie(s))for(let r=0;r>1,e[n[l]]0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}function wc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:wc(t)}function Ls(e){if(e)for(let t=0;tgn(kc);function Zt(e,t){return Wi(e,null,t)}function Ac(e,t){return Wi(e,null,{flush:"post"})}function Nc(e,t){return Wi(e,null,{flush:"sync"})}const ds={};function ct(e,t,n){return Wi(e,t,n)}function Wi(e,t,{immediate:n,deep:i,flush:s,once:r,onTrack:o,onTrigger:l}=Ne){if(t&&r){const E=t;t=(...F)=>{E(...F),R()}}const a=Xe,c=E=>i===!0?E:dn(E,i===!1?1:void 0);let f,d=!1,y=!1;if(je(e)?(f=()=>e.value,d=Vn(e)):Fn(e)?(f=()=>c(e),d=!0):ie(e)?(y=!0,d=e.some(E=>Fn(E)||Vn(E)),f=()=>e.map(E=>{if(je(E))return E.value;if(Fn(E))return c(E);if(ge(E))return en(E,a,2)})):ge(e)?t?f=()=>en(e,a,2):f=()=>(b&&b(),xt(e,a,3,[C])):f=et,t&&i){const E=f;f=()=>dn(E())}let b,C=E=>{b=_.onStop=()=>{en(E,a,4),b=_.onStop=void 0}},I;if(Ji)if(C=et,t?n&&xt(t,a,3,[f(),y?[]:void 0,C]):f(),s==="sync"){const E=Oc();I=E.__watcherHandles||(E.__watcherHandles=[])}else return et;let H=y?new Array(e.length).fill(ds):ds;const q=()=>{if(!(!_.active||!_.dirty))if(t){const E=_.run();(i||d||(y?E.some((F,p)=>$t(F,H[p])):$t(E,H)))&&(b&&b(),xt(t,a,3,[E,H===ds?void 0:y&&H[0]===ds?[]:H,C]),H=E)}else _.run()};q.allowRecurse=!!t;let N;s==="sync"?N=q:s==="post"?N=()=>nt(q,a&&a.suspense):(q.pre=!0,a&&(q.id=a.uid),N=()=>er(q));const _=new ai(f,et,N),k=Ia(),R=()=>{_.stop(),k&&uo(k.effects,_)};return t?n?q():H=_.run():s==="post"?nt(_.run.bind(_),a&&a.suspense):_.run(),I&&I.push(R),R}function mh(e,t,n){const i=this.proxy,s=be(e)?e.includes(".")?Rc(i,e):()=>i[e]:e.bind(i,i);let r;ge(t)?r=t:(r=t.handler,n=t);const o=Hn(this),l=Wi(s,r.bind(i),n);return o(),l}function Rc(e,t){const n=t.split(".");return()=>{let i=e;for(let s=0;s{dn(i,t,n)});else if(ya(e)){for(const i in e)dn(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&dn(e[i],t,n)}return e}function yh(e,t,n=Ne){const i=qt(),s=Ue(t),r=bt(t),o=Mc(e,t),l=Ua((a,c)=>{let f,d,y;return Nc(()=>{const b=e[t];$t(f,b)&&(f=b,c())}),{get(){return a(),n.get?n.get(f):f},set(b){if(!$t(b,f))return;const C=i.vnode.props;C&&(t in C||s in C||r in C)&&(`onUpdate:${t}`in C||`onUpdate:${s}`in C||`onUpdate:${r}`in C)||(f=b,c());const I=n.set?n.set(b):b;i.emit(`update:${t}`,I),b!==I&&b!==d&&I===y&&c(),d=b,y=I}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?o||Ne:l,done:!1}:{done:!0}}}},l}const Mc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ue(t)}Modifiers`]||e[`${bt(t)}Modifiers`];function vh(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Ne;let s=n;const r=t.startsWith("update:"),o=r&&Mc(i,t.slice(7));o&&(o.trim&&(s=n.map(f=>be(f)?f.trim():f)),o.number&&(s=n.map(ws)));let l,a=i[l=ni(t)]||i[l=ni(Ue(t))];!a&&r&&(a=i[l=ni(bt(t))]),a&&xt(a,e,6,s);const c=i[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,xt(c,e,6,s)}}function Lc(e,t,n=!1){const i=t.emitsCache,s=i.get(e);if(s!==void 0)return s;const r=e.emits;let o={},l=!1;if(!ge(e)){const a=c=>{const f=Lc(c,t,!0);f&&(l=!0,Re(o,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(Fe(e)&&i.set(e,null),null):(ie(r)?r.forEach(a=>o[a]=null):Re(o,r),Fe(e)&&i.set(e,o),o)}function lr(e,t){return!e||!Kn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ke(e,t[0].toLowerCase()+t.slice(1))||ke(e,bt(t))||ke(e,t))}function _s(e){const{type:t,vnode:n,proxy:i,withProxy:s,propsOptions:[r],slots:o,attrs:l,emit:a,render:c,renderCache:f,props:d,data:y,setupState:b,ctx:C,inheritAttrs:I}=e,H=Mi(e);let q,N;try{if(n.shapeFlag&4){const k=s||i,R=k;q=vt(c.call(R,k,f,d,b,y,C)),N=l}else{const k=t;q=vt(k.length>1?k(d,{attrs:l,slots:o,emit:a}):k(d,null)),N=t.props?l:_h(l)}}catch(k){wi.length=0,zn(k,e,1),q=Be(it)}let _=q;if(N&&I!==!1){const k=Object.keys(N),{shapeFlag:R}=_;k.length&&R&7&&(r&&k.some(co)&&(N=Sh(N,r)),_=Kt(_,N,!1,!0))}return n.dirs&&(_=Kt(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),q=_,Mi(H),q}function bh(e,t=!0){let n;for(let i=0;i{let t;for(const n in e)(n==="class"||n==="style"||Kn(n))&&((t||(t={}))[n]=e[n]);return t},Sh=(e,t)=>{const n={};for(const i in e)(!co(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Ch(e,t,n){const{props:i,children:s,component:r}=e,{props:o,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?Il(i,o,c):!!o;if(a&8){const f=t.dynamicProps;for(let d=0;de.__isSuspense;let Vr=0;const Eh={name:"Suspense",__isSuspense:!0,process(e,t,n,i,s,r,o,l,a,c){if(e==null)Ih(t,n,i,s,r,o,l,a,c);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}xh(e,t,n,i,s,o,l,a,c)}},hydrate:wh,normalize:kh},Th=Eh;function Pi(e,t){const n=e.props&&e.props[t];ge(n)&&n()}function Ih(e,t,n,i,s,r,o,l,a){const{p:c,o:{createElement:f}}=a,d=f("div"),y=e.suspense=Pc(e,s,i,t,d,n,r,o,l,a);c(null,y.pendingBranch=e.ssContent,d,null,i,y,r,o),y.deps>0?(Pi(e,"onPending"),Pi(e,"onFallback"),c(null,e.ssFallback,t,n,i,null,r,o),li(y,e.ssFallback)):y.resolve(!1,!0)}function xh(e,t,n,i,s,r,o,l,{p:a,um:c,o:{createElement:f}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const y=t.ssContent,b=t.ssFallback,{activeBranch:C,pendingBranch:I,isInFallback:H,isHydrating:q}=d;if(I)d.pendingBranch=y,Bt(y,I)?(a(I,y,d.hiddenContainer,null,s,d,r,o,l),d.deps<=0?d.resolve():H&&(q||(a(C,b,n,i,s,null,r,o,l),li(d,b)))):(d.pendingId=Vr++,q?(d.isHydrating=!1,d.activeBranch=I):c(I,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=f("div"),H?(a(null,y,d.hiddenContainer,null,s,d,r,o,l),d.deps<=0?d.resolve():(a(C,b,n,i,s,null,r,o,l),li(d,b))):C&&Bt(y,C)?(a(C,y,n,i,s,d,r,o,l),d.resolve(!0)):(a(null,y,d.hiddenContainer,null,s,d,r,o,l),d.deps<=0&&d.resolve()));else if(C&&Bt(y,C))a(C,y,n,i,s,d,r,o,l),li(d,y);else if(Pi(t,"onPending"),d.pendingBranch=y,y.shapeFlag&512?d.pendingId=y.component.suspenseId:d.pendingId=Vr++,a(null,y,d.hiddenContainer,null,s,d,r,o,l),d.deps<=0)d.resolve();else{const{timeout:N,pendingId:_}=d;N>0?setTimeout(()=>{d.pendingId===_&&d.fallback(b)},N):N===0&&d.fallback(b)}}function Pc(e,t,n,i,s,r,o,l,a,c,f=!1){const{p:d,m:y,um:b,n:C,o:{parentNode:I,remove:H}}=c;let q;const N=Oh(e);N&&t&&t.pendingBranch&&(q=t.pendingId,t.deps++);const _=e.props?ks(e.props.timeout):void 0,k=r,R={vnode:e,parent:t,parentComponent:n,namespace:o,container:i,hiddenContainer:s,deps:0,pendingId:Vr++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(E=!1,F=!1){const{vnode:p,activeBranch:u,pendingBranch:g,pendingId:T,effects:v,parentComponent:O,container:K}=R;let ee=!1;R.isHydrating?R.isHydrating=!1:E||(ee=u&&g.transition&&g.transition.mode==="out-in",ee&&(u.transition.afterLeave=()=>{T===R.pendingId&&(y(g,K,r===k?C(u):r,0),As(v))}),u&&(I(u.el)!==R.hiddenContainer&&(r=C(u)),b(u,O,R,!0)),ee||y(g,K,r,0)),li(R,g),R.pendingBranch=null,R.isInFallback=!1;let W=R.parent,V=!1;for(;W;){if(W.pendingBranch){W.effects.push(...v),V=!0;break}W=W.parent}!V&&!ee&&As(v),R.effects=[],N&&t&&t.pendingBranch&&q===t.pendingId&&(t.deps--,t.deps===0&&!F&&t.resolve()),Pi(p,"onResolve")},fallback(E){if(!R.pendingBranch)return;const{vnode:F,activeBranch:p,parentComponent:u,container:g,namespace:T}=R;Pi(F,"onFallback");const v=C(p),O=()=>{R.isInFallback&&(d(null,E,g,v,u,null,T,l,a),li(R,E))},K=E.transition&&E.transition.mode==="out-in";K&&(p.transition.afterLeave=O),R.isInFallback=!0,b(p,u,null,!0),K||O()},move(E,F,p){R.activeBranch&&y(R.activeBranch,E,F,p),R.container=E},next(){return R.activeBranch&&C(R.activeBranch)},registerDep(E,F,p){const u=!!R.pendingBranch;u&&R.deps++;const g=E.vnode.el;E.asyncDep.catch(T=>{zn(T,E,0)}).then(T=>{if(E.isUnmounted||R.isUnmounted||R.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:v}=E;Kr(E,T,!1),g&&(v.el=g);const O=!g&&E.subTree.el;F(E,v,I(g||E.subTree.el),g?null:C(E.subTree),R,o,p),O&&H(O),Ro(E,v.el),u&&--R.deps===0&&R.resolve()})},unmount(E,F){R.isUnmounted=!0,R.activeBranch&&b(R.activeBranch,n,E,F),R.pendingBranch&&b(R.pendingBranch,n,E,F)}};return R}function wh(e,t,n,i,s,r,o,l,a){const c=t.suspense=Pc(t,i,n,e.parentNode,document.createElement("div"),null,s,r,o,l,!0),f=a(e,c.pendingBranch=t.ssContent,n,c,r,o);return c.deps===0&&c.resolve(!1,!0),f}function kh(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=xl(i?n.default:n),e.ssFallback=i?xl(n.fallback):Be(it)}function xl(e){let t;if(ge(e)){const n=jn&&e._c;n&&(e._d=!1,ae()),e=e(),n&&(e._d=!0,t=ft,Bc())}return ie(e)&&(e=bh(e)),e=vt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Fc(e,t){t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):As(e)}function li(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,i&&i.subTree===n&&(i.vnode.el=s,Ro(i,s))}function Oh(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Oe=Symbol.for("v-fgt"),mn=Symbol.for("v-txt"),it=Symbol.for("v-cmt"),Dn=Symbol.for("v-stc"),wi=[];let ft=null;function ae(e=!1){wi.push(ft=e?null:[])}function Bc(){wi.pop(),ft=wi[wi.length-1]||null}let jn=1;function jr(e){jn+=e,e<0&&ft&&(ft.hasOnce=!0)}function Dc(e){return e.dynamicChildren=jn>0?ft||ei:null,Bc(),jn>0&&ft&&ft.push(e),e}function fe(e,t,n,i,s,r){return Dc(ne(e,t,n,i,s,r,!0))}function zi(e,t,n,i,s){return Dc(Be(e,t,n,i,s,!0))}function Sn(e){return e?e.__v_isVNode===!0:!1}function Bt(e,t){return e.type===t.type&&e.key===t.key}function Ah(e){}const $c=({key:e})=>e??null,Ss=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||je(e)||ge(e)?{i:tt,r:e,k:t,f:!!n}:e:null);function ne(e,t=null,n=null,i=0,s=null,r=e===Oe?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$c(t),ref:t&&Ss(t),scopeId:tr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:tt};return l?(Mo(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=be(n)?8:16),jn>0&&!o&&ft&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&ft.push(a),a}const Be=Nh;function Nh(e,t=null,n=null,i=0,s=null,r=!1){if((!e||e===lc)&&(e=it),Sn(e)){const l=Kt(e,t,!0);return n&&Mo(l,n),jn>0&&!r&&ft&&(l.shapeFlag&6?ft[ft.indexOf(e)]=l:ft.push(l)),l.patchFlag=-2,l}if(Dh(e)&&(e=e.__vccOpts),t){t=Vc(t);let{class:l,style:a}=t;l&&!be(l)&&(t.class=Ze(l)),Fe(a)&&(bo(a)&&!ie(a)&&(a=Re({},a)),t.style=Hi(a))}const o=be(e)?1:$r(e)?128:ah(e)?64:Fe(e)?4:ge(e)?2:0;return ne(e,t,n,i,s,o,r,!0)}function Vc(e){return e?bo(e)||pc(e)?Re({},e):e:null}function Kt(e,t,n=!1,i=!1){const{props:s,ref:r,patchFlag:o,children:l,transition:a}=e,c=t?Gi(s||{},t):s,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&$c(c),ref:t&&t.ref?n&&r?ie(r)?r.concat(Ss(t)):[r,Ss(t)]:Ss(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&i&&_n(f,a.clone(f)),f}function ar(e=" ",t=0){return Be(mn,null,e,t)}function Rh(e,t){const n=Be(Dn,null,e);return n.staticCount=t,n}function $e(e="",t=!1){return t?(ae(),zi(it,null,e)):Be(it,null,e)}function vt(e){return e==null||typeof e=="boolean"?Be(it):ie(e)?Be(Oe,null,e.slice()):typeof e=="object"?un(e):Be(mn,null,String(e))}function un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kt(e)}function Mo(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(ie(t))n=16;else if(typeof t=="object")if(i&65){const s=t.default;s&&(s._c&&(s._d=!1),Mo(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!pc(t)?t._ctx=tt:s===3&&tt&&(tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:tt},n=32):(t=String(t),i&64?(n=16,t=[ar(t)]):n=8);e.children=t,e.shapeFlag|=n}function Gi(...e){const t={};for(let n=0;nXe||tt;let Ps,Hr;{const e=ba(),t=(n,i)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(i),r=>{s.length>1?s.forEach(o=>o(r)):s[0](r)}};Ps=t("__VUE_INSTANCE_SETTERS__",n=>Xe=n),Hr=t("__VUE_SSR_SETTERS__",n=>Ji=n)}const Hn=e=>{const t=Xe;return Ps(e),e.scope.on(),()=>{e.scope.off(),Ps(t)}},Ur=()=>{Xe&&Xe.scope.off(),Ps(null)};function Hc(e){return e.vnode.shapeFlag&4}let Ji=!1;function Uc(e,t=!1,n=!1){t&&Hr(t);const{props:i,children:s}=e.vnode,r=Hc(e);nh(e,i,r,t),oh(e,s,n);const o=r?Ph(e,t):void 0;return t&&Hr(!1),o}function Ph(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Lr);const{setup:i}=n;if(i){const s=e.setupContext=i.length>1?Wc(e):null,r=Hn(e);En();const o=en(i,e,0,[e.props,s]);if(Tn(),r(),fo(o)){if(o.then(Ur,Ur),t)return o.then(l=>{Kr(e,l,t)}).catch(l=>{zn(l,e,0)});e.asyncDep=o}else Kr(e,o,t)}else qc(e,t)}function Kr(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fe(t)&&(e.setupState=Co(t)),qc(e,n)}let Fs,qr;function Kc(e){Fs=e,qr=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Ld))}}const Fh=()=>!Fs;function qc(e,t,n){const i=e.type;if(!e.render){if(!t&&Fs&&!i.render){const s=i.template||ko(e).template;if(s){const{isCustomElement:r,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=i,c=Re(Re({isCustomElement:r,delimiters:l},o),a);i.render=Fs(s,c)}}e.render=i.render||et,qr&&qr(e)}{const s=Hn(e);En();try{Gd(e)}finally{Tn(),s()}}}const Bh={get(e,t){return St(e,"get",""),e[t]}};function Wc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Bh),slots:e.slots,emit:e.emit,expose:t}}function Zi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Co(Va(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ii)return Ii[n](e)},has(t,n){return n in t||n in Ii}})):e.proxy}function Wr(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function Dh(e){return ge(e)&&"__vccOpts"in e}const ze=(e,t)=>nd(e,t,Ji);function zc(e,t,n){const i=arguments.length;return i===2?Fe(t)&&!ie(t)?Sn(t)?Be(e,null,[t]):Be(e,t):Be(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Sn(n)&&(n=[n]),Be(e,t,n))}function $h(){}function Vh(e,t,n,i){const s=n[i];if(s&&Gc(s,e))return s;const r=t();return r.memo=e.slice(),r.cacheIndex=i,n[i]=r}function Gc(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i0&&ft&&ft.push(e),!0}const Jc="3.4.32",jh=et,Hh=md,Uh=Qn,Kh=Ga,qh={createComponentInstance:jc,setupComponent:Uc,renderComponentRoot:_s,setCurrentRenderingInstance:Mi,isVNode:Sn,normalizeVNode:vt,getComponentPublicInstance:Zi},Wh=qh,zh=null,Gh=null,Jh=null;/** * @vue/runtime-dom v3.4.32 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT @@ -34,18 +34,18 @@ function lf(e,t){for(var n=0;n!!customElements.get(a));const{code:o}=Tm(e,r),l=new Function("Vue",o)(Lp);return l._rc=!0,i[n]=l}Kc(xm);function nl(e){return(nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function fa(e){return function(t){if(Array.isArray(t))return ro(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||tf(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function tf(e,t){if(e){if(typeof e=="string")return ro(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ro(e,t):void 0}}function ro(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(a){throw a},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var a=n.next();return o=a.done,a},e:function(a){l=!0,r=a},f:function(){try{o||n.return==null||n.return()}finally{if(l)throw r}}}}var oo={inheritAttrs:!1,name:"vue-input",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:["update:modelValue","input","change","focus","blur","escape"],setup:function(e,t){var n=me(null);return Gn(function(){e.autofocus&&n.value.focus()}),qi(function(){e.autofocus&&n.value.focus()}),{handleInput:function(i){t.emit("input",i),t.emit("update:modelValue",i.target.value)},handleChange:function(i){t.emit("change",i),t.emit("update:modelValue",i.target.value)},handleFocus:function(i){t.emit("focus",i)},handleBlur:function(i){t.emit("blur",i)},input:n,handleEscape:function(i){n.value.blur(),t.emit("escape",i)}}}},wm={class:"vue-input"},km=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];oo.render=function(e,t,n,i,s,r){return ae(),fe("div",wm,[Nt(e.$slots,"prepend"),ne("input",{ref:"input",autocomplete:n.autocomplete,modelValue:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onInput:t[0]||(t[0]=function(){return i.handleInput&&i.handleInput.apply(i,arguments)}),onChange:t[1]||(t[1]=function(){return i.handleChange&&i.handleChange.apply(i,arguments)}),onFocus:t[2]||(t[2]=function(){return i.handleFocus&&i.handleFocus.apply(i,arguments)}),onBlur:t[3]||(t[3]=function(){return i.handleBlur&&i.handleBlur.apply(i,arguments)}),onKeyup:t[4]||(t[4]=An(De(function(){return i.handleEscape&&i.handleEscape.apply(i,arguments)},["exact"]),["esc"])),tabindex:n.tabindex,autofocus:n.autofocus,"aria-autocomplete":"list","aria-controls":"vs".concat(n.comboboxUid,"-listbox"),"aria-labelledby":"vs".concat(n.comboboxUid,"-combobox")},null,40,km),Nt(e.$slots,"append")])},oo.__file="src/components/input.vue";var lo={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return nl(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},collapseTags:{type:Boolean}},emits:["click"],setup:function(e,t){return{dataAttrs:gn("dataAttrs"),handleClick:function(n){t.emit("click",n)}}}};lo.render=function(e,t,n,i,s,r){return ae(),fe("ul",Gi({class:["vue-tags",{collapsed:n.collapseTags}],onMousedown:t[0]||(t[0]=De(function(){},["prevent"])),tabindex:"-1",onClick:t[1]||(t[1]=function(){return i.handleClick&&i.handleClick.apply(i,arguments)})},i.dataAttrs),[(ae(!0),fe(Oe,null,Ct(n.modelValue,function(o){return ae(),fe(Oe,{key:o.key},[o.group?$e("v-if",!0):(ae(),fe("li",{key:0,class:Ze(["vue-tag",{selected:o.selected}])},[Nt(e.$slots,"default",{option:o},function(){return[ne("span",null,It(o.label),1)]})],2))],64)}),128))],16)},lo.__file="src/components/tags.vue";var ao={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return nl(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:["click-item","mouseenter"],setup:function(e,t){return{dataAttrs:gn("dataAttrs"),handleClickItem:function(n,i){i.disabled||t.emit("click-item",n,i)},handleMouseenter:function(n,i){t.emit("mouseenter",n,i)}}}},Om=["id","aria-multiselectable","aria-busy","aria-disabled"],Am=["onClick","onMouseenter","id","aria-selected","aria-disabled"];ao.render=function(e,t,n,i,s,r){return ae(),fe("ul",Gi({class:"vue-dropdown",style:{maxHeight:n.maxHeight+"px"},onMousedown:t[0]||(t[0]=De(function(){},["prevent"]))},i.dataAttrs,{role:"listbox",id:"vs".concat(n.comboboxUid,"-listbox"),"aria-multiselectable":i.dataAttrs["data-multiple"],"aria-busy":i.dataAttrs["data-loading"],"aria-disabled":i.dataAttrs["data-disabled"]}),[(ae(!0),fe(Oe,null,Ct(n.modelValue,function(o,l){return ae(),fe(Oe,{key:o.key},[o.visible&&o.hidden===!1?(ae(),fe("li",{key:0,onClick:function(a){return i.handleClickItem(a,o)},class:Ze(["vue-dropdown-item",{selected:o.selected,disabled:o.disabled,highlighted:o.originalIndex===n.highlightedOriginalIndex,group:o.group}]),onMouseenter:function(a){return i.handleMouseenter(a,o)},role:"option",id:"vs".concat(n.comboboxUid,"-option-").concat(l),"aria-selected":!!o.selected||!!o.disabled&&void 0,"aria-disabled":o.disabled},[Nt(e.$slots,"default",{option:o},function(){return[ne("span",null,It(o.label),1)]})],42,Am)):$e("v-if",!0)],64)}),128))],16,Om)},ao.__file="src/components/dropdown.vue";var nf=function(e,t,n){var i=n.valueBy;return i(e)===i(t)},Xn=function(e,t,n){var i=n.valueBy;return e.some(function(s){return nf(s,t,{valueBy:i})})},wn=function(e,t,n){var i=n.valueBy;return e.find(function(s){return i(s)===t})},wr=function(e,t,n){var i=n.max,s=n.valueBy;return Xn(e,t,{valueBy:s})||e.length>=i?e:e.concat(t)},kr=function(e,t,n){var i=n.min,s=n.valueBy;return Xn(e,t,{valueBy:s})===!1||e.length<=i?e:e.filter(function(r){return nf(r,t,{valueBy:s})===!1})},ys=function(e){return ze(function(){return typeof e.value=="function"?e.value:typeof e.value=="string"?function(t){return e.value.split(".").reduce(function(n,i){return n[i]},t)}:function(t){return t}})},Nm=function(e,t){var n=ze(function(){return e.value.reduce(function(o,l){return Object.assign(o,(a={},c=l.originalIndex,f=l,c in a?Object.defineProperty(a,c,{value:f,enumerable:!0,configurable:!0,writable:!0}):a[c]=f,a));var a,c,f},{})}),i=function(o){var l=n.value[o];return l!==void 0&&s(l)!==!1&&(t.value=o,!0)},s=function(o){return!o.disabled&&!o.hidden&&o.visible},r=ze(function(){return e.value.some(function(o){return s(o)})});return Zt(function(){if(r.value===!1&&(t.value=null),t.value!==null&&e.value.length<=t.value){var o,l=Nn(e.value.reverse());try{for(l.s();!(o=l.n()).done;){var a=o.value;if(i(a.originalIndex))break}}catch(y){l.e(y)}finally{l.f()}}if(t.value===null||s(e.value[t.value])===!1){var c,f=Nn(e.value);try{for(f.s();!(c=f.n()).done;){var d=c.value;if(i(d.originalIndex))break}}catch(y){f.e(y)}finally{f.f()}}}),{pointerForward:function(){if(r.value!==!1&&t.value!==null)for(var o=t.value+1,l=0;o!==t.value&&l++o.value.$el.clientHeight+o.value.$el.scrollTop&&ce++n.min,"data-total-length":n.options.length,"data-multiple":e.multiple,"data-loading":e.loading,"data-disabled":e.disabled}});Oo("dataAttrs",se);var Me=ze(function(){return g.value.filter(function(M){return M.selected}).filter(function(M){return!M.group})}),ye=ze(function(){return e.multiple?Me.value.length===0?e.placeholder:Me.value.length===1?"1 option selected":Me.value.length+" options selected":Me.value.length===0?e.placeholder:Me.value[0].label+""}),te=ze(function(){var M=Me.value.map(function(U){return U.originalOption});return e.multiple?M:M[0]||i.value}),Ae=me();return ct(function(){return[e.openDirection,c.value]},function(){var M,U;Ae.value=(U=(M=e.openDirection)!==null&&M!==void 0?M:function(){if(r.value!==void 0&&window!==void 0)return window.innerHeight-r.value.getBoundingClientRect().bottom>=e.maxHeight?"bottom":"top"}())!==null&&U!==void 0?U:"bottom"},{immediate:!0}),{instance:s,isFocusing:c,wrapper:r,dropdown:o,input:l,focus:f,blur:d,toggle:function(){c.value?d():f()},searchingInputValue:y,handleInputForInput:function(M){t.emit("search:input",M)},handleChangeForInput:function(M){t.emit("search:change",M)},handleFocusForInput:function(M){f()},handleBlurForInput:function(M){d()},optionsWithInfo:g,addOrRemoveOption:function(M,U){e.disabled||(U.group&&e.multiple?k(M,U):R(M,U),E(),e.closeOnSelect===!0&&(c.value=!1),e.clearOnSelect===!0&&y.value&&F())},dataAttrs:se,innerPlaceholder:ye,selected:te,highlightedOriginalIndex:u,pointerForward:function(){v(),Ut(z)},pointerBackward:function(){O(),Ut(z)},pointerFirst:function(){var M,U=Nn(n.options.keys());try{for(U.s();!(M=U.n()).done;){var ce=M.value;if(K(ce))break}}catch(le){U.e(le)}finally{U.f()}Ut(z)},pointerLast:function(){var M,U=Nn(fa(n.options.keys()).reverse());try{for(U.s();!(M=U.n()).done;){var ce=M.value;if(K(ce))break}}catch(le){U.e(le)}finally{U.f()}Ut(z)},typeAhead:function(M){var U,ce;if(!e.searchable){var le=!1;if(W.test(M.key)?(ee+=M.key.toLowerCase(),le=!0):M.code==="Space"&&(ee+=" "),le){var Ee,X=Nn(V.value);try{for(X.s();!(Ee=X.n()).done;){var he=Ee.value;if(((ce=(U=n.labelBy(n.options[he]))===null||U===void 0?void 0:U.toLowerCase())===null||ce===void 0?void 0:ce.startsWith(ee))===!0&&K(he))break}}catch(Ce){X.e(Ce)}finally{X.f()}clearTimeout(_),_=setTimeout(function(){ee=""},500)}}},pointerSet:K,direction:Ae}},components:{VInput:oo,VTags:lo,VDropdown:ao}});Gs.__VERSION__="2.10.5";var Rm=["tabindex","id","role","aria-expanded","aria-owns","aria-activedescendant","aria-busy","aria-disabled"],Mm={class:"vue-select-header"},Lm={key:0,class:"vue-input"},Pm=["placeholder","autocomplete"],Fm=["onClick"],Bm=ne("span",{class:"icon loading"},[ne("div"),ne("div"),ne("div")],-1),Dm={key:0,class:"vue-select-input-wrapper"},$m=ne("span",{class:"icon loading"},[ne("div"),ne("div"),ne("div")],-1);Gs.render=function(e,t,n,i,s,r){var o=bs("v-tags"),l=bs("v-input"),a=bs("v-dropdown");return ae(),fe("div",Gi({ref:"wrapper",class:["vue-select",["direction-".concat(e.direction)]],tabindex:e.isFocusing?-1:e.tabindex,onFocus:t[9]||(t[9]=function(){return e.focus&&e.focus.apply(e,arguments)}),onBlur:t[10]||(t[10]=function(c){return!e.searchable&&e.blur(c)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:t[11]||(t[11]=An(De(function(){return e.highlightedOriginalIndex!==null&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])},["prevent","exact"]),["enter"])),onKeydown:[t[12]||(t[12]=An(De(function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)},["prevent","exact"]),["down"])),t[13]||(t[13]=An(De(function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)},["prevent","exact"]),["up"])),t[14]||(t[14]=An(De(function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)},["prevent","exact"]),["home"])),t[15]||(t[15]=An(De(function(){return e.pointerLast&&e.pointerLast.apply(e,arguments)},["prevent","exact"]),["end"])),t[16]||(t[16]=function(){return e.typeAhead&&e.typeAhead.apply(e,arguments)})],id:"vs".concat(e.instance.uid,"-combobox"),role:e.searchable?"combobox":null,"aria-expanded":e.isFocusing,"aria-haspopup":"listbox","aria-owns":"vs".concat(e.instance.uid,"-listbox"),"aria-activedescendant":e.highlightedOriginalIndex===null?null:"vs".concat(e.instance.uid,"-option-").concat(e.highlightedOriginalIndex),"aria-busy":e.loading,"aria-disabled":e.disabled}),[ne("div",Mm,[e.multiple&&e.taggable&&e.modelValue.length===0||e.searchable===!1&&e.taggable===!1?(ae(),fe("div",Lm,[Nt(e.$slots,"label",{selected:e.selected},function(){return[ne("input",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:"",onClick:t[0]||(t[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,Pm)]})])):$e("v-if",!0),e.multiple&&e.taggable?(ae(),fe(Oe,{key:1},[Be(o,{modelValue:e.optionsWithInfo,"collapse-tags":e.collapseTags,tabindex:"-1",onClick:e.focus},{default:ci(function(c){var f=c.option;return[Nt(e.$slots,"tag",{option:f.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,f)}},function(){return[ne("span",null,It(f.label),1),ne("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==",alt:"delete tag",class:"icon delete",onClick:De(function(){return e.addOrRemoveOption(e.$event,f)},["prevent","stop"])},null,8,Fm)]})]}),_:3},8,["modelValue","collapse-tags","onClick"]),Nt(e.$slots,"toggle",{isFocusing:e.isFocusing,toggle:e.toggle},function(){return[ne("span",{class:Ze(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[1]||(t[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[2]||(t[2]=De(function(){},["prevent","stop"]))},null,34)]})],64)):(ae(),fe(Oe,{key:2},[e.searchable?(ae(),zi(l,{key:0,ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[3]||(t[3]=function(c){return e.searchingInputValue=c}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"])):$e("v-if",!0),e.loading?Nt(e.$slots,"loading",{key:1},function(){return[Bm]}):Nt(e.$slots,"toggle",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},function(){return[ne("span",{class:Ze(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[4]||(t[4]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[5]||(t[5]=De(function(){},["prevent","stop"]))},null,34)]})],64))]),e.multiple&&e.taggable&&e.searchable?(ae(),fe("div",Dm,[mt(Be(l,{ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[6]||(t[6]=function(c){return e.searchingInputValue=c}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"]),[[Pt,e.isFocusing]]),e.loading?Nt(e.$slots,"loading",{key:0},function(){return[$m]}):$e("v-if",!0)])):$e("v-if",!0),Be(a,{ref:"dropdown",modelValue:e.optionsWithInfo,"onUpdate:modelValue":t[7]||(t[7]=function(c){return e.optionsWithInfo=c}),onClickItem:e.addOrRemoveOption,onMouseenter:t[8]||(t[8]=function(c,f){return e.pointerSet(f.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:ci(function(c){var f=c.option;return[Nt(e.$slots,"dropdown-item",{option:f.originalOption},function(){return[ne("span",null,It(f.label),1)]})]}),_:3},8,["modelValue","onClickItem","comboboxUid","maxHeight","highlightedOriginalIndex"])],16,Rm)},Gs.__file="src/index.vue";function Si(e,t){let n=-1;return e.forEach((i,s)=>{i.html.id===parseInt(t)&&(n=s)}),n}function da(e){try{return JSON.parse(e)}catch(t){return console.log("erreur recupJson ",t),!1}}function Vm(e,t){let n=document.createElement("a");n.href=e,n.setAttribute("target","_blank"),n.click()}function jm(e,t){if((Number.isInteger(e)||parseInt(e)==e)&&(Number.isInteger(t)||parseInt(t)==t))return parseInt(e)-parseInt(t);{let n=toString(e).toLowerCase(),i=toString(t).toLowerCase();return ni?1:0}}const ha=(e,t,n,i)=>e.sort((s,r)=>t.reduce((o,l,a)=>{if(o===0){let[c,f]=n&&n[a]==="desc"?[r[i][l],s[i][l]]:[s[i][l],r[i][l]];c=typeof c=="string"?c.toLowerCase():c,f=typeof f=="string"?f.toLowerCase():f;let d=/^(\d{2})\/(\d{2})\/(\d{2,4})$/;if(typeof c!="number"){let y=c.match(d);Array.isArray(y)&&(c=y[3]+y[2]+y[1]);let b=f.match(d);Array.isArray(b)&&(f=b[3]+b[2]+b[1])}o=c>f?1:c{localforage.setDriver(localforage[i.stockage.toUpperCase()]),h("maj")});const Ae=ze(()=>{if(z.value){const[w,A]=z.value.split(" "),[S,D,ue]=w.split("-"),[_e,Je,ot]=A.split(":");return`${ue}/${D}/${S} à ${_e}h${Je}min${ot}sec`}else return""}),M=ze(()=>{if(Pe(),!R.value&&!_.value)return ve(s.value);let w=s.value.filter(A=>{let S=!(Object.values(A[O.value]).toString().toLowerCase().indexOf(R.value.toLowerCase())<0);return S?(Object.keys(N.value).forEach(D=>{if(S){let ue=N.value[D];if(ue!==null){Array.isArray(ue)||(ue=[ue]);let _e=[];ue.forEach(Je=>{Number.isInteger(Je)&&_e.push(Je),Je.length>0&&_e.push(Je.toLowerCase())}),_e.length&&(q.value[D]==="select"?_e.some(ot=>{if(Number.isInteger(ot)){if(parseInt(A[O.value][D])===ot)return!0}else if(te[D]){if(A[O.value][D]!==void 0&&!(A[O.value][D].toString().toLowerCase().toString().indexOf(ot)===-1||!A[O.value][D].toString().toLowerCase()))return!0}else if(A[O.value][D]!==void 0&&!(ot.indexOf(A[O.value][D].toString().toLowerCase().toString())===-1||!A[O.value][D].toString().toLowerCase()))return!0})||(S=!1):A[O.value][D].toString().toLowerCase().indexOf(_e.toString())===-1&&(S=!1))}}}),S):!1});return ve(w)});function U(){var A;let w={};(A=a.value.filter(S=>S.source==="total")[0])==null||A.champs.forEach(S=>{let D=0;S.fonction==="somme"?D=le(S.nom,s.value):S.fonction==="somme_monnaie"?D=Ee(S.nom,s.value):S.legende!==void 0&&(D=S.legende??"toto"),w[S.nom]=D}),f.value=w}function ce(){var A;let w={};(A=a.value.filter(S=>S.source==="affiche")[0])==null||A.champs.forEach(S=>{let D=0;S.fonction==="somme"?D=le(S.nom,M.value):S.fonction==="somme_monnaie"?D=Ee(S.nom,M.value):S.legende!==void 0&&(D=S.legende??"toto"),w[S.nom]=D}),c.value=w}function le(w,A){let S=0;return A.map(D=>D.search).forEach(D=>{Object.entries(D).forEach(([ue,_e])=>{ue===w&&_e&&(S+=_e)})}),S}function Ee(w,A){let S=0;return A.map(ue=>ue.search).forEach(ue=>{Object.entries(ue).forEach(([_e,Je])=>{_e===w&&Je&&(S+=Je)})}),new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:2}).format(S)}ct(N,()=>{m()}),ct(p,w=>{parseInt(w)?F.value=w:F.value=s.value.length,sessionStorage.setItem("nbItems",F.value),sessionStorage.setItem("nbItemsChaine",p.value)}),ct(s,()=>{m(),localforage.setItem(ye,JSON.stringify(s.value)),U()}),ct(M,()=>{i.filtrecolmulti==="non"&&H.value.forEach(w=>{let A=[];M.value.forEach(S=>{let D=S[O.value][w];A.indexOf(D)===-1&&(A.push(D),filtreColValOk.value=!0)}),k.value[w]=A}),ce()}),ct(N,()=>{let w=[];N.value&&Object.entries(N.value).forEach(([A,S])=>{Array.isArray(S)||(S=[S]),w.push({champ:A,valeurs:S})}),V||localStorage.setItem("filtreselect_"+ye,JSON.stringify(w))},{deep:!0});function X(w){if(l.value=w.header,w.header_top!==void 0){r.value=w.header_top;let S=[],D=0;Object.values(w.header_top).forEach(ue=>{for(let _e=1;_e<=ue.colspan;_e++)S[D]=ue.class,D++}),o.value=S}w.footer!==void 0?a.value=w.footer:a.value=[],w.crayons!==void 0&&(d.value=w.crayons),w.maj!==void 0&&(z.value=w.maj),w.classes!==void 0&&(y.value=w.classes),w.checkbox!==void 0&&(b.value=w.checkbox,Object.keys(b.value).forEach(S=>{C.value[S]=[]})),w.ordreCol!==void 0&&(I.value=w.ordreCol);let A=[];return w.filtreCol!==void 0&&(A=w.filtreCol),w.filtreColValeurs!==void 0&&(te=w.filtreColValeurs),m(),A}function he(w,A=null){if(parseInt(A)>0)if(w.length>0){let S=Si(s.value,A);S>=0?s.value[S]=w[0]:s.value.unshift(w[0])}else{let S=Si(s.value,A);s.value.splice(S,1)}else A==="maj"?w.length&&(w[0]&&w[0].search&&(O.value="search"),w.length>0&&w.forEach((S,D)=>{let ue=Si(s.value,S.html.id);ue>=0?s.value[ue]=w[D]:s.value.unshift(w[D])})):(s.value=w,w[0]&&w[0].search&&(O.value="search"));localforage.setItem(ye,JSON.stringify(s.value))}function Ce(w){w!==void 0&&(q.value=w,H.value=[],Object.keys(q.value).forEach(A=>{if(H.value.push(A),te[A])k.value[A]=te[A];else{let S=[];s.value.forEach(D=>{let ue=D[O.value][A];ue&&S.indexOf(ue)===-1&&S.push(ue)}),k.value[A]=S.sort()}N.value[A]=[]}))}function Te(w){w.a_supprimer&&w.a_supprimer.forEach(A=>{let S=Si(s.value,A);S!==-1&&s.value.splice(S,1)})}function h(w){console.log("chargerJson pour ",w),K.value=!0;let A=i.apiuri;if(parseInt(w)>0)A+="&id="+w;else{let S=localStorage.getItem("header_"+ye);S=da(S),S&&S.header!==void 0&&s.value.length===0&&(console.log("charge LS"),localforage.getItem(ye).then(function(D){D=da(D);let ue=X(S);s.value=D,Ce(ue),i.nomblocajaxreload&&ajaxReload(i.nomblocajaxreload)}).catch(function(D){console.log(D)})),w==="maj"&&(z.value?A+="&maj="+z.value:S&&S.maj?A+="&maj="+S.maj:w=null)}fetch(A).then(S=>S.json()).then(S=>{let D=S.shift();Te(D);let ue=X(D);he(S,w),Ce(ue),Ut(()=>{K.value=!1;const _e=localStorage.getItem("filtreselect_"+ye),Je=localStorage.getItem("triCol_"+ye);let ot=[];if(i.filtreselect?(i.filtreselect.split(",").forEach(st=>{const[pt,...Vt]=st.split("|"),Jn=ot.findIndex(gr=>gr.champ===pt);Jn===-1?ot.push({champ:pt,valeurs:Vt}):ot[Jn].valeurs.push(Vt[0])}),localStorage.setItem("filtreselect_"+ye,JSON.stringify(ot))):_e&&(ot=JSON.parse(_e)),ot.forEach(st=>{H.value.includes(st.champ)&&(N.value[st.champ]=[...N.value[st.champ],...st.valeurs])}),_.value++,V=!1,se&&i.tparpage.includes(se)&&(p.value=se),Me?(Me.split(",").forEach(st=>{const[pt,Vt]=st.split("|");H.value.includes(pt)&&Z(pt,Vt)}),localStorage.setItem("triCol_"+ye,Me)):Je&&Je.split(",").forEach(st=>{const[pt,Vt]=st.split("|");H.value.includes(pt)&&Z(pt,Vt)}),parseInt(i._id)>0){let st=parseInt(i._id),pt=parseInt(F.value);if(parseInt(pt)){let Vt=0;if(Object.values(s.value).forEach((Jn,gr)=>{st===Jn.html.id&&(Vt=gr+1)}),Vt>pt){let Jn=parseInt(Vt/pt)+1;E.value=Jn}}P(st,"id")}i.nomblocajaxreload&&ajaxReload(i.nomblocajaxreload),I.value&&Object.entries(I.value).forEach(([st,pt])=>{Z(st,pt)}),$("td.crayon-init").removeClass("crayon-init")})}).catch(S=>console.log(S))}function m(){let w={header:l.value,header_top:r.value,footer:a.value,crayons:d.value,classes:y.value,filtreCol:q.value,ordreCol:I.value,maj:z.value};localStorage.setItem("header_"+ye,JSON.stringify(w))}function x(w){N.value[w]=[],m()}function L(){_.value++}function B(){return i.apiuri?i.apiuri.match(/.*page=(.*)/)[1]+"&gamuId="+i.id_auteur:""}function j(w,A){let S=A.crayons!==void 0&&A.crayons[w]!==void 0?A.crayons[w]:A.html.id;if(Object.keys(d.value).indexOf(w)!==-1)return`crayon ${d.value[w]}-${w}-${S}`}function Z(w,A=!1){const S=T.value.indexOf(w);S!==-1?(A||(A="asc",g.value[S]==="asc"&&(A="desc")),g.value[S]=A):(A||(A="asc"),T.value.push(w),g.value.push(A)),s.value=ha(s.value,T.value,g.value,O.value),I.value[w]=A,m()}function J(w,A){const S=T.value.indexOf(w);if(S!==-1&&g.value[S]===A)return"active"}function G(){s.value=ha(s.value,["id"],"",O.value),g.value=[],T.value=[],I.value=[],Object.keys(q.value).forEach(w=>{N.value[w]=[]}),localStorage.removeItem("filtreselect_"+ye),localStorage.removeItem("filtreCol_"+ye),localStorage.removeItem("triCol_"+ye)}function P(w,A){if(A==="id"&&parseInt(w)){let S=v.value.indexOf(w);S!==-1?v.value.splice(S,1):v.value.push(w)}}function Y(w="tableau"){let A=[],S=M.value;w==="table"&&(S=s.value),Object.values(S).forEach(_e=>{A.push(_e.html)});const D={fichierpdf:i.fichierpdf,langpdf:i.langpdf,namepdf:i.namepdf,header:l.value,arg:i.argpdf,Tdata:A};$.ajax({url:i.pdfuri,type:"POST",dataType:"text",data:D}).done(function(_e){_e&&Vm(_e)})}function oe(w="tableau"){let A=[],S=[],D=[],ue=M.value;w==="table"&&(ue=s.value),Object.keys(l.value).forEach(_e=>S.push(_e)),D=ue.reduce((_e,Je)=>{let ot=[];return Object.values(Je[i.champcsv]).forEach(st=>ot.push(st)),[..._e,[...ot]]},[]),A=[[...S],...D],Ke(A,i.delimitercsv,i.namecsv)}function Q(w){let A=W.value;return Object.keys(w).forEach(S=>{A=A.replace(`@@${S}@@`,w[S])}),A}function de(w){ee.value=w}function pe(w){C.value[w]!==void 0&&C.value[w].length?C.value[w]=[]:(C.value[w]=[],M.value.forEach(A=>{C.value[w].push(A.html.id)}))}function Ie(w,A){let S="page";if(A.includes("action=")&&(S="action"),S==="action")$.ajax({url:A,data:{data:C.value[w]},type:"POST"}).done(function(){h("maj")});else{const D=encodeURIComponent(JSON.stringify(C.value[w]));A+="&data="+D,A+="&var_zajax=content";const ue={};ue.onClose=()=>{h("maj")},$.modalbox(A,ue)}}function ve(w){let A=E.value*F.value-F.value,S=E.value*F.value;return w.slice(A,S)}function Pe(){let w=Math.ceil(s.value.length/F.value);u.value=[];for(let A=1;A<=w;A++)u.value.push(A)}function Ke(w,A,S){S.includes(".csv")&&(S=S.split(".")[0]);let D="";A?D=n.unparse(w,{delimiter:A}):D=n.unparse(w),n.download(D,S)}function We(w,A=!0){console.log("rechargerJson"),V=A,h(w)}function Wt(w){w<0&&(w=w*-1),console.log("delLigne : ",w);let A=Si(s.value,w);A!==-1&&s.value.splice(A,1)}return t({rechargerJson:We,delLigne:Wt}),(w,A)=>(ae(),fe("div",Hm,[ne("div",Um,[mt(ne("select",{id:"parPage","onUpdate:modelValue":A[0]||(A[0]=S=>je(p)?p.value=S:p=S)},[(ae(!0),fe(Oe,null,Ct(e.tparpage,S=>(ae(),fe("option",{key:S},It(S),1))),128))],512),[[Fo,re(p)]]),mt(ne("input",{class:"gamutable--rechercher",type:"text","onUpdate:modelValue":A[1]||(A[1]=S=>je(R)?R.value=S:R=S),placeholder:"Rechercher"},null,512),[[di,re(R)]]),ne("button",{class:"btn gamutable--resetOrderBy",type:"button",onClick:A[2]||(A[2]=De(S=>G(),["stop"])),title:"Réinitialiser les tris des colonnes"},Wm),ne("button",{class:"btn var_gamutable rouge",type:"button",onClick:A[3]||(A[3]=De(S=>h(),["stop"])),title:"Rechargement complet du tableau"},Gm),ne("button",{class:"btn var_gamutable",type:"button",onClick:A[4]||(A[4]=De(S=>h("maj"),["stop"])),title:"Mise à jour du tableau - dernière version de la base de donnée le : "+Ae.value},Ym,8,Jm),re(W)?mt((ae(),fe("button",{key:0,class:"btn gamutable--vueTable",title:"Switcher en Vue tableau",onClick:A[5]||(A[5]=De(S=>de("tableau"),["stop"]))},Xm,512)),[[Pt,re(ee)==="bloc"]]):$e("",!0),re(W)?mt((ae(),fe("button",{key:1,class:"btn gamutable--vueBloc",title:"Switcher en Vue Bloc",onClick:A[6]||(A[6]=De(S=>de("bloc"),["stop"]))},ty,512)),[[Pt,re(ee)==="tableau"]]):$e("",!0),mt(ne("button",{class:"btn gamutable--exportCSV export--affiche",type:"button",onClick:A[7]||(A[7]=De(S=>oe(),["stop"])),title:"Exporter le tableau affiché en csv"},iy,512),[[Pt,e.namecsv]]),mt(ne("button",{class:"btn export--affiche",type:"button",onClick:A[8]||(A[8]=De(S=>Y(),["stop"])),title:"Générer le PDF du tableau affiché"},ry,512),[[Pt,e.fichierpdf]]),mt(ne("button",{class:"btn gamutable--exportCSV export--complet",type:"button",onClick:A[9]||(A[9]=De(S=>oe("table"),["stop"])),title:"Exporter le tableau complet en csv"},ly,512),[[Pt,e.namecsv]]),mt(ne("button",{class:"btn export--complet",type:"button",onClick:A[10]||(A[10]=De(S=>Y("table"),["stop"])),title:"Générer le PDF du tableau complet"},cy,512),[[Pt,e.fichierpdf]]),mt(ne("span",uy,hy,512),[[Pt,re(K)]]),mt(ne("span",py,my,512),[[Pt,!re(K)]]),ne("span",{class:"gamutable-nbrMax","data-nbrmax":re(s).length},It(M.value.length)+" / "+It(re(s).length)+" éléments",9,yy),ne("span",{class:"includespip",innerHTML:e.includespip},null,8,vy)]),re(ee)==="bloc"?(ae(),fe("div",by,[(ae(!0),fe(Oe,null,Ct(M.value,S=>(ae(),fe("div",{class:"vueBlocs-unbloc",key:S.id,innerHTML:Q(S.html)},null,8,_y))),128))])):$e("",!0),re(ee)==="tableau"?(ae(),fe("table",Sy,[ne("thead",null,[Object.keys(re(r)).length?(ae(),fe("tr",Cy,[(ae(!0),fe(Oe,null,Ct(re(r),(S,D,ue)=>(ae(),fe("th",{key:"header_top_"+ue,colspan:S.colspan,class:Ze(S.class)},[ne("span",{innerHTML:D},null,8,Ty)],10,Ey))),128))])):$e("",!0),ne("tr",null,[(ae(!0),fe(Oe,null,Ct(re(l),(S,D,ue)=>(ae(),fe("th",{key:"head_"+ue,class:Ze([D,re(y)[D],re(o)[ue]+"--header_top"])},[ne("span",Iy,[ne("span",{innerHTML:S},null,8,xy),ne("span",wy,[ne("i",{class:Ze(["gt-sort-up",J(D,"asc")]),"aria-hidden":"true",onClick:De(_e=>Z(D,"asc"),["stop"])},null,10,ky),ne("i",{class:Ze(["gt-sort-down",J(D,"desc")]),"aria-hidden":"true",onClick:De(_e=>Z(D,"desc"),["stop"])},null,10,Oy)])])],2))),128))]),re(H).length||Object.keys(re(b)).length?(ae(),fe("tr",Ay,[(ae(!0),fe(Oe,null,Ct(re(l),(S,D,ue)=>(ae(),fe("th",{key:"filtreCol_"+ue,class:Ze(D)},[re(b)[D]!==void 0?(ae(),fe("div",{key:0,id:"filtreCol_"+D,class:Ze([re(y)[D],"flex justify-between"])},[ne("input",{class:"ml-2",type:"checkbox",onClick:De(_e=>pe(D),["stop"])},null,8,Ry),ne("button",{onClick:De(_e=>Ie(D,re(b)[D]),["stop"])},Py,8,My)],10,Ny)):$e("",!0),re(H).indexOf(D)!==-1?(ae(),fe("div",{key:1,id:"filtreCol_"+D},[re(q)[D]==="select"?(ae(),zi(re(Gs),{key:0,modelValue:re(N)[D],"onUpdate:modelValue":_e=>re(N)[D]=_e,options:re(k)[D].sort(re(jm)),"hide-selected":"",multiple:"",taggable:"","close-on-select":"","clear-on-close":"",searchable:"",onSelected:L,"onSearch:focus":A[11]||(A[11]=()=>{})},{tag:ci(({option:_e,remove:Je})=>[ne("div",By,[ar(It(_e)+" ",1),ne("span",{class:"tag--remove pointer",title:"Cliquer pour supprimer ",onClick:De(Je,["stop"])},"x",8,Dy)])]),_:2},1032,["modelValue","onUpdate:modelValue","options"])):$e("",!0),re(q)[D]==="input"?mt((ae(),fe("input",{key:1,class:"gamutable__input--filtrer","onUpdate:modelValue":_e=>re(N)[D]=_e,type:"text",placeholder:"Rechercher",onKeydown:A[12]||(A[12]=()=>{})},null,40,$y)),[[di,re(N)[D]]]):$e("",!0),re(q)[D]==="input"&&re(N)[D].length!==0?(ae(),fe("button",{key:2,onClick:De(_e=>x(D),["stop"]),title:"Vider ce champ",class:"gamutable__input--filtrer"}," X ",8,Vy)):$e("",!0)],8,Fy)):$e("",!0)],2))),128))])):$e("",!0)]),ne("tbody",null,[(ae(!0),fe(Oe,null,Ct(M.value,S=>(ae(),fe("tr",{key:S.html.id,class:Ze(re(v).indexOf(S.html.id)!==-1?"select":"")},[(ae(!0),fe(Oe,null,Ct(S.html,(D,ue,_e)=>(ae(),fe("td",{key:"td_"+_e,class:Ze([j(ue,S),ue,re(y)[ue],S.classes!==void 0?S.classes[ue]:""]),onClick:Je=>P(S.html.id,ue)},[re(b)[ue]!==void 0?(ae(),fe("div",Hy,[D.split("-")[0]==="dataid"?(ae(),fe("div",Uy,[ne("label",null,[mt(ne("input",{type:"checkbox","onUpdate:modelValue":Je=>re(C)[ue]=Je,value:D.split("-")[1]},null,8,Ky),[[ur,re(C)[ue]]])])])):(ae(),fe("div",{key:1,innerHTML:D},null,8,qy))])):(ae(),fe("div",{key:1,innerHTML:D},null,8,Wy))],10,jy))),128))],2))),128))]),ne("tfoot",null,[Object.keys(re(c)).length?(ae(),fe("tr",zy,[(ae(!0),fe(Oe,null,Ct(re(l),(S,D,ue)=>(ae(),fe("th",{key:"footerAffiche_"+ue,class:Ze([D,re(y)[D],re(o)[ue]+"--footer"])},[ne("div",{innerHTML:re(c)[D]??""},null,8,Gy)],2))),128))])):$e("",!0),Object.keys(re(f)).length?(ae(),fe("tr",Jy,[(ae(!0),fe(Oe,null,Ct(re(l),(S,D,ue)=>(ae(),fe("th",{key:"footerTotal_"+ue,class:Ze([D,re(y)[D],re(o)[ue]+"--footer"])},[ne("div",{innerHTML:re(f)[D]??""},null,8,Zy)],2))),128))])):$e("",!0)])])):$e("",!0),ne("div",Yy,[ne("div",Qy,It(M.value.length)+" / "+It(re(s).length)+" éléments ",1),ne("div",Xy,[ne("div",ev,[re(E)!=1?(ae(),fe("button",{key:0,type:"button",class:"page-link",onClick:A[13]||(A[13]=S=>je(E)?E.value=1:E=1)}," Premier ")):$e("",!0),re(E)!=1?(ae(),fe("button",{key:1,type:"button",class:"page-link",onClick:A[14]||(A[14]=S=>je(E)?E.value--:E--)}," Précédent ")):$e("",!0)]),ne("div",tv,[(ae(!0),fe(Oe,null,Ct(re(u).slice(re(E)-4<0?0:re(E)-4,re(E)+3),S=>(ae(),fe("button",{type:"button",class:Ze(["page-link",{on:S===re(E)}]),onClick:D=>je(E)?E.value=S:E=S},It(S),11,nv))),256))]),ne("div",iv,[re(E)je(E)?E.value++:E++),class:"page-link"}," Suivant ")):$e("",!0),re(E)je(E)?E.value=re(u).length:E=re(u).length),class:"page-link"}," Dernier ")):$e("",!0)])])])]))}};var rv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ov(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sf={exports:{}};/* @license +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var a=n.next();return o=a.done,a},e:function(a){l=!0,r=a},f:function(){try{o||n.return==null||n.return()}finally{if(l)throw r}}}}var oo={inheritAttrs:!1,name:"vue-input",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:["update:modelValue","input","change","focus","blur","escape"],setup:function(e,t){var n=me(null);return Gn(function(){e.autofocus&&n.value.focus()}),qi(function(){e.autofocus&&n.value.focus()}),{handleInput:function(i){t.emit("input",i),t.emit("update:modelValue",i.target.value)},handleChange:function(i){t.emit("change",i),t.emit("update:modelValue",i.target.value)},handleFocus:function(i){t.emit("focus",i)},handleBlur:function(i){t.emit("blur",i)},input:n,handleEscape:function(i){n.value.blur(),t.emit("escape",i)}}}},wm={class:"vue-input"},km=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];oo.render=function(e,t,n,i,s,r){return ae(),fe("div",wm,[Nt(e.$slots,"prepend"),ne("input",{ref:"input",autocomplete:n.autocomplete,modelValue:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onInput:t[0]||(t[0]=function(){return i.handleInput&&i.handleInput.apply(i,arguments)}),onChange:t[1]||(t[1]=function(){return i.handleChange&&i.handleChange.apply(i,arguments)}),onFocus:t[2]||(t[2]=function(){return i.handleFocus&&i.handleFocus.apply(i,arguments)}),onBlur:t[3]||(t[3]=function(){return i.handleBlur&&i.handleBlur.apply(i,arguments)}),onKeyup:t[4]||(t[4]=An(De(function(){return i.handleEscape&&i.handleEscape.apply(i,arguments)},["exact"]),["esc"])),tabindex:n.tabindex,autofocus:n.autofocus,"aria-autocomplete":"list","aria-controls":"vs".concat(n.comboboxUid,"-listbox"),"aria-labelledby":"vs".concat(n.comboboxUid,"-combobox")},null,40,km),Nt(e.$slots,"append")])},oo.__file="src/components/input.vue";var lo={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return nl(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},collapseTags:{type:Boolean}},emits:["click"],setup:function(e,t){return{dataAttrs:gn("dataAttrs"),handleClick:function(n){t.emit("click",n)}}}};lo.render=function(e,t,n,i,s,r){return ae(),fe("ul",Gi({class:["vue-tags",{collapsed:n.collapseTags}],onMousedown:t[0]||(t[0]=De(function(){},["prevent"])),tabindex:"-1",onClick:t[1]||(t[1]=function(){return i.handleClick&&i.handleClick.apply(i,arguments)})},i.dataAttrs),[(ae(!0),fe(Oe,null,Ct(n.modelValue,function(o){return ae(),fe(Oe,{key:o.key},[o.group?$e("v-if",!0):(ae(),fe("li",{key:0,class:Ze(["vue-tag",{selected:o.selected}])},[Nt(e.$slots,"default",{option:o},function(){return[ne("span",null,It(o.label),1)]})],2))],64)}),128))],16)},lo.__file="src/components/tags.vue";var ao={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return nl(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:["click-item","mouseenter"],setup:function(e,t){return{dataAttrs:gn("dataAttrs"),handleClickItem:function(n,i){i.disabled||t.emit("click-item",n,i)},handleMouseenter:function(n,i){t.emit("mouseenter",n,i)}}}},Om=["id","aria-multiselectable","aria-busy","aria-disabled"],Am=["onClick","onMouseenter","id","aria-selected","aria-disabled"];ao.render=function(e,t,n,i,s,r){return ae(),fe("ul",Gi({class:"vue-dropdown",style:{maxHeight:n.maxHeight+"px"},onMousedown:t[0]||(t[0]=De(function(){},["prevent"]))},i.dataAttrs,{role:"listbox",id:"vs".concat(n.comboboxUid,"-listbox"),"aria-multiselectable":i.dataAttrs["data-multiple"],"aria-busy":i.dataAttrs["data-loading"],"aria-disabled":i.dataAttrs["data-disabled"]}),[(ae(!0),fe(Oe,null,Ct(n.modelValue,function(o,l){return ae(),fe(Oe,{key:o.key},[o.visible&&o.hidden===!1?(ae(),fe("li",{key:0,onClick:function(a){return i.handleClickItem(a,o)},class:Ze(["vue-dropdown-item",{selected:o.selected,disabled:o.disabled,highlighted:o.originalIndex===n.highlightedOriginalIndex,group:o.group}]),onMouseenter:function(a){return i.handleMouseenter(a,o)},role:"option",id:"vs".concat(n.comboboxUid,"-option-").concat(l),"aria-selected":!!o.selected||!!o.disabled&&void 0,"aria-disabled":o.disabled},[Nt(e.$slots,"default",{option:o},function(){return[ne("span",null,It(o.label),1)]})],42,Am)):$e("v-if",!0)],64)}),128))],16,Om)},ao.__file="src/components/dropdown.vue";var nf=function(e,t,n){var i=n.valueBy;return i(e)===i(t)},Xn=function(e,t,n){var i=n.valueBy;return e.some(function(s){return nf(s,t,{valueBy:i})})},wn=function(e,t,n){var i=n.valueBy;return e.find(function(s){return i(s)===t})},wr=function(e,t,n){var i=n.max,s=n.valueBy;return Xn(e,t,{valueBy:s})||e.length>=i?e:e.concat(t)},kr=function(e,t,n){var i=n.min,s=n.valueBy;return Xn(e,t,{valueBy:s})===!1||e.length<=i?e:e.filter(function(r){return nf(r,t,{valueBy:s})===!1})},ys=function(e){return ze(function(){return typeof e.value=="function"?e.value:typeof e.value=="string"?function(t){return e.value.split(".").reduce(function(n,i){return n[i]},t)}:function(t){return t}})},Nm=function(e,t){var n=ze(function(){return e.value.reduce(function(o,l){return Object.assign(o,(a={},c=l.originalIndex,f=l,c in a?Object.defineProperty(a,c,{value:f,enumerable:!0,configurable:!0,writable:!0}):a[c]=f,a));var a,c,f},{})}),i=function(o){var l=n.value[o];return l!==void 0&&s(l)!==!1&&(t.value=o,!0)},s=function(o){return!o.disabled&&!o.hidden&&o.visible},r=ze(function(){return e.value.some(function(o){return s(o)})});return Zt(function(){if(r.value===!1&&(t.value=null),t.value!==null&&e.value.length<=t.value){var o,l=Nn(e.value.reverse());try{for(l.s();!(o=l.n()).done;){var a=o.value;if(i(a.originalIndex))break}}catch(y){l.e(y)}finally{l.f()}}if(t.value===null||s(e.value[t.value])===!1){var c,f=Nn(e.value);try{for(f.s();!(c=f.n()).done;){var d=c.value;if(i(d.originalIndex))break}}catch(y){f.e(y)}finally{f.f()}}}),{pointerForward:function(){if(r.value!==!1&&t.value!==null)for(var o=t.value+1,l=0;o!==t.value&&l++o.value.$el.clientHeight+o.value.$el.scrollTop&&ce++n.min,"data-total-length":n.options.length,"data-multiple":e.multiple,"data-loading":e.loading,"data-disabled":e.disabled}});Oo("dataAttrs",se);var Me=ze(function(){return g.value.filter(function(M){return M.selected}).filter(function(M){return!M.group})}),ye=ze(function(){return e.multiple?Me.value.length===0?e.placeholder:Me.value.length===1?"1 option selected":Me.value.length+" options selected":Me.value.length===0?e.placeholder:Me.value[0].label+""}),te=ze(function(){var M=Me.value.map(function(U){return U.originalOption});return e.multiple?M:M[0]||i.value}),Ae=me();return ct(function(){return[e.openDirection,c.value]},function(){var M,U;Ae.value=(U=(M=e.openDirection)!==null&&M!==void 0?M:function(){if(r.value!==void 0&&window!==void 0)return window.innerHeight-r.value.getBoundingClientRect().bottom>=e.maxHeight?"bottom":"top"}())!==null&&U!==void 0?U:"bottom"},{immediate:!0}),{instance:s,isFocusing:c,wrapper:r,dropdown:o,input:l,focus:f,blur:d,toggle:function(){c.value?d():f()},searchingInputValue:y,handleInputForInput:function(M){t.emit("search:input",M)},handleChangeForInput:function(M){t.emit("search:change",M)},handleFocusForInput:function(M){f()},handleBlurForInput:function(M){d()},optionsWithInfo:g,addOrRemoveOption:function(M,U){e.disabled||(U.group&&e.multiple?k(M,U):R(M,U),E(),e.closeOnSelect===!0&&(c.value=!1),e.clearOnSelect===!0&&y.value&&F())},dataAttrs:se,innerPlaceholder:ye,selected:te,highlightedOriginalIndex:u,pointerForward:function(){v(),Ut(z)},pointerBackward:function(){O(),Ut(z)},pointerFirst:function(){var M,U=Nn(n.options.keys());try{for(U.s();!(M=U.n()).done;){var ce=M.value;if(K(ce))break}}catch(le){U.e(le)}finally{U.f()}Ut(z)},pointerLast:function(){var M,U=Nn(fa(n.options.keys()).reverse());try{for(U.s();!(M=U.n()).done;){var ce=M.value;if(K(ce))break}}catch(le){U.e(le)}finally{U.f()}Ut(z)},typeAhead:function(M){var U,ce;if(!e.searchable){var le=!1;if(W.test(M.key)?(ee+=M.key.toLowerCase(),le=!0):M.code==="Space"&&(ee+=" "),le){var Ce,X=Nn(V.value);try{for(X.s();!(Ce=X.n()).done;){var he=Ce.value;if(((ce=(U=n.labelBy(n.options[he]))===null||U===void 0?void 0:U.toLowerCase())===null||ce===void 0?void 0:ce.startsWith(ee))===!0&&K(he))break}}catch(Ee){X.e(Ee)}finally{X.f()}clearTimeout(_),_=setTimeout(function(){ee=""},500)}}},pointerSet:K,direction:Ae}},components:{VInput:oo,VTags:lo,VDropdown:ao}});Gs.__VERSION__="2.10.5";var Rm=["tabindex","id","role","aria-expanded","aria-owns","aria-activedescendant","aria-busy","aria-disabled"],Mm={class:"vue-select-header"},Lm={key:0,class:"vue-input"},Pm=["placeholder","autocomplete"],Fm=["onClick"],Bm=ne("span",{class:"icon loading"},[ne("div"),ne("div"),ne("div")],-1),Dm={key:0,class:"vue-select-input-wrapper"},$m=ne("span",{class:"icon loading"},[ne("div"),ne("div"),ne("div")],-1);Gs.render=function(e,t,n,i,s,r){var o=bs("v-tags"),l=bs("v-input"),a=bs("v-dropdown");return ae(),fe("div",Gi({ref:"wrapper",class:["vue-select",["direction-".concat(e.direction)]],tabindex:e.isFocusing?-1:e.tabindex,onFocus:t[9]||(t[9]=function(){return e.focus&&e.focus.apply(e,arguments)}),onBlur:t[10]||(t[10]=function(c){return!e.searchable&&e.blur(c)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:t[11]||(t[11]=An(De(function(){return e.highlightedOriginalIndex!==null&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])},["prevent","exact"]),["enter"])),onKeydown:[t[12]||(t[12]=An(De(function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)},["prevent","exact"]),["down"])),t[13]||(t[13]=An(De(function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)},["prevent","exact"]),["up"])),t[14]||(t[14]=An(De(function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)},["prevent","exact"]),["home"])),t[15]||(t[15]=An(De(function(){return e.pointerLast&&e.pointerLast.apply(e,arguments)},["prevent","exact"]),["end"])),t[16]||(t[16]=function(){return e.typeAhead&&e.typeAhead.apply(e,arguments)})],id:"vs".concat(e.instance.uid,"-combobox"),role:e.searchable?"combobox":null,"aria-expanded":e.isFocusing,"aria-haspopup":"listbox","aria-owns":"vs".concat(e.instance.uid,"-listbox"),"aria-activedescendant":e.highlightedOriginalIndex===null?null:"vs".concat(e.instance.uid,"-option-").concat(e.highlightedOriginalIndex),"aria-busy":e.loading,"aria-disabled":e.disabled}),[ne("div",Mm,[e.multiple&&e.taggable&&e.modelValue.length===0||e.searchable===!1&&e.taggable===!1?(ae(),fe("div",Lm,[Nt(e.$slots,"label",{selected:e.selected},function(){return[ne("input",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:"",onClick:t[0]||(t[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,Pm)]})])):$e("v-if",!0),e.multiple&&e.taggable?(ae(),fe(Oe,{key:1},[Be(o,{modelValue:e.optionsWithInfo,"collapse-tags":e.collapseTags,tabindex:"-1",onClick:e.focus},{default:ci(function(c){var f=c.option;return[Nt(e.$slots,"tag",{option:f.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,f)}},function(){return[ne("span",null,It(f.label),1),ne("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==",alt:"delete tag",class:"icon delete",onClick:De(function(){return e.addOrRemoveOption(e.$event,f)},["prevent","stop"])},null,8,Fm)]})]}),_:3},8,["modelValue","collapse-tags","onClick"]),Nt(e.$slots,"toggle",{isFocusing:e.isFocusing,toggle:e.toggle},function(){return[ne("span",{class:Ze(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[1]||(t[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[2]||(t[2]=De(function(){},["prevent","stop"]))},null,34)]})],64)):(ae(),fe(Oe,{key:2},[e.searchable?(ae(),zi(l,{key:0,ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[3]||(t[3]=function(c){return e.searchingInputValue=c}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"])):$e("v-if",!0),e.loading?Nt(e.$slots,"loading",{key:1},function(){return[Bm]}):Nt(e.$slots,"toggle",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},function(){return[ne("span",{class:Ze(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[4]||(t[4]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[5]||(t[5]=De(function(){},["prevent","stop"]))},null,34)]})],64))]),e.multiple&&e.taggable&&e.searchable?(ae(),fe("div",Dm,[mt(Be(l,{ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[6]||(t[6]=function(c){return e.searchingInputValue=c}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"]),[[Pt,e.isFocusing]]),e.loading?Nt(e.$slots,"loading",{key:0},function(){return[$m]}):$e("v-if",!0)])):$e("v-if",!0),Be(a,{ref:"dropdown",modelValue:e.optionsWithInfo,"onUpdate:modelValue":t[7]||(t[7]=function(c){return e.optionsWithInfo=c}),onClickItem:e.addOrRemoveOption,onMouseenter:t[8]||(t[8]=function(c,f){return e.pointerSet(f.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:ci(function(c){var f=c.option;return[Nt(e.$slots,"dropdown-item",{option:f.originalOption},function(){return[ne("span",null,It(f.label),1)]})]}),_:3},8,["modelValue","onClickItem","comboboxUid","maxHeight","highlightedOriginalIndex"])],16,Rm)},Gs.__file="src/index.vue";function Si(e,t){let n=-1;return e.forEach((i,s)=>{i.html.id===parseInt(t)&&(n=s)}),n}function da(e){try{return JSON.parse(e)}catch(t){return console.log("erreur recupJson ",t),!1}}function Vm(e,t){let n=document.createElement("a");n.href=e,n.setAttribute("target","_blank"),n.click()}function jm(e,t){if((Number.isInteger(e)||parseInt(e)==e)&&(Number.isInteger(t)||parseInt(t)==t))return parseInt(e)-parseInt(t);{let n=toString(e).toLowerCase(),i=toString(t).toLowerCase();return ni?1:0}}const ha=(e,t,n,i)=>e.sort((s,r)=>t.reduce((o,l,a)=>{if(o===0){let[c,f]=n&&n[a]==="desc"?[r[i][l],s[i][l]]:[s[i][l],r[i][l]];c=typeof c=="string"?c.toLowerCase():c,f=typeof f=="string"?f.toLowerCase():f;let d=/^(\d{2})\/(\d{2})\/(\d{2,4})$/;if(typeof c!="number"){let y=c.match(d);Array.isArray(y)&&(c=y[3]+y[2]+y[1]);let b=f.match(d);Array.isArray(b)&&(f=b[3]+b[2]+b[1])}o=c>f?1:c{localforage.setDriver(localforage[i.stockage.toUpperCase()]),h("maj")});const Ae=ze(()=>{if(z.value){const[w,A]=z.value.split(" "),[S,B,ue]=w.split("-"),[_e,Je,ot]=A.split(":");return`${ue}/${B}/${S} à ${_e}h${Je}min${ot}sec`}else return""}),M=ze(()=>{if(Pe(),!R.value&&!_.value)return ve(s.value);let w=s.value.filter(A=>{let S=!(Object.values(A[O.value]).toString().toLowerCase().indexOf(R.value.toLowerCase())<0);return S?(Object.keys(N.value).forEach(B=>{if(S){let ue=N.value[B];if(ue!==null){Array.isArray(ue)||(ue=[ue]);let _e=[];ue.forEach(Je=>{Number.isInteger(Je)&&_e.push(Je),Je.length>0&&_e.push(Je.toLowerCase())}),_e.length&&(q.value[B]==="select"?_e.some(ot=>{if(Number.isInteger(ot)){if(parseInt(A[O.value][B])===ot)return!0}else if(te[B]){if(A[O.value][B]!==void 0&&!(A[O.value][B].toString().toLowerCase().toString().indexOf(ot)===-1||!A[O.value][B].toString().toLowerCase()))return!0}else if(A[O.value][B]!==void 0&&!(ot.indexOf(A[O.value][B].toString().toLowerCase().toString())===-1||!A[O.value][B].toString().toLowerCase()))return!0})||(S=!1):A[O.value][B].toString().toLowerCase().indexOf(_e.toString())===-1&&(S=!1))}}}),S):!1});return ve(w)});function U(){var A;let w={};(A=a.value.filter(S=>S.source==="total")[0])==null||A.champs.forEach(S=>{let B=0;S.fonction==="somme"?B=le(S.nom,M.value):S.fonction==="somme_monnaie"?B=Ce(S.nom,M.value):S.fonction==="somme_champ"?B=le(S.args,M.value):S.fonction==="somme_champ_monnaie"?B=Ce(S.args,M.value):S.legende!==void 0&&(B=S.legende??""),w[S.nom]=B}),f.value=w}function ce(){var A;let w={};(A=a.value.filter(S=>S.source==="affiche")[0])==null||A.champs.forEach(S=>{let B=0;S.fonction==="somme"?B=le(S.nom,M.value):S.fonction==="somme_monnaie"?B=Ce(S.nom,M.value):S.fonction==="somme_champ"?B=le(S.args,M.value):S.fonction==="somme_champ_monnaie"?B=Ce(S.args,M.value):S.legende!==void 0&&(B=S.legende??""),w[S.nom]=B}),c.value=w}function le(w,A){let S=0;return A.map(B=>B.search).forEach(B=>{Object.entries(B).forEach(([ue,_e])=>{ue===w&&_e&&(S+=_e)})}),S}function Ce(w,A){let S=0;return A.map(ue=>ue.search).forEach(ue=>{Object.entries(ue).forEach(([_e,Je])=>{_e===w&&Je&&(S+=Je)})}),new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:2}).format(S)}ct(N,()=>{m()}),ct(p,w=>{parseInt(w)?F.value=w:F.value=s.value.length,sessionStorage.setItem("nbItems",F.value),sessionStorage.setItem("nbItemsChaine",p.value)}),ct(s,()=>{m(),localforage.setItem(ye,JSON.stringify(s.value)),U()}),ct(M,()=>{i.filtrecolmulti==="non"&&H.value.forEach(w=>{let A=[];M.value.forEach(S=>{let B=S[O.value][w];A.indexOf(B)===-1&&(A.push(B),filtreColValOk.value=!0)}),k.value[w]=A}),ce()}),ct(N,()=>{let w=[];N.value&&Object.entries(N.value).forEach(([A,S])=>{Array.isArray(S)||(S=[S]),w.push({champ:A,valeurs:S})}),V||localStorage.setItem("filtreselect_"+ye,JSON.stringify(w))},{deep:!0});function X(w){if(l.value=w.header,w.header_top!==void 0){r.value=w.header_top;let S=[],B=0;Object.values(w.header_top).forEach(ue=>{for(let _e=1;_e<=ue.colspan;_e++)S[B]=ue.class,B++}),o.value=S}w.footer!==void 0?a.value=w.footer:a.value=[],w.crayons!==void 0&&(d.value=w.crayons),w.maj!==void 0&&(z.value=w.maj),w.classes!==void 0&&(y.value=w.classes),w.checkbox!==void 0&&(b.value=w.checkbox,Object.keys(b.value).forEach(S=>{C.value[S]=[]})),w.ordreCol!==void 0&&(I.value=w.ordreCol);let A=[];return w.filtreCol!==void 0&&(A=w.filtreCol),w.filtreColValeurs!==void 0&&(te=w.filtreColValeurs),m(),A}function he(w,A=null){if(parseInt(A)>0)if(w.length>0){let S=Si(s.value,A);S>=0?s.value[S]=w[0]:s.value.unshift(w[0])}else{let S=Si(s.value,A);s.value.splice(S,1)}else A==="maj"?w.length&&(w[0]&&w[0].search&&(O.value="search"),w.length>0&&w.forEach((S,B)=>{let ue=Si(s.value,S.html.id);ue>=0?s.value[ue]=w[B]:s.value.unshift(w[B])})):(s.value=w,w[0]&&w[0].search&&(O.value="search"));localforage.setItem(ye,JSON.stringify(s.value))}function Ee(w){w!==void 0&&(q.value=w,H.value=[],Object.keys(q.value).forEach(A=>{if(H.value.push(A),te[A])k.value[A]=te[A];else{let S=[];s.value.forEach(B=>{let ue=B[O.value][A];ue&&S.indexOf(ue)===-1&&S.push(ue)}),k.value[A]=S.sort()}N.value[A]=[]}))}function Te(w){w.a_supprimer&&w.a_supprimer.forEach(A=>{let S=Si(s.value,A);S!==-1&&s.value.splice(S,1)})}function h(w){console.log("chargerJson pour ",w),K.value=!0;let A=i.apiuri;if(parseInt(w)>0)A+="&id="+w;else{let S=localStorage.getItem("header_"+ye);S=da(S),S&&S.header!==void 0&&s.value.length===0&&(console.log("charge LS"),localforage.getItem(ye).then(function(B){B=da(B);let ue=X(S);s.value=B,Ee(ue),i.nomblocajaxreload&&ajaxReload(i.nomblocajaxreload)}).catch(function(B){console.log(B)})),w==="maj"&&(z.value?A+="&maj="+z.value:S&&S.maj?A+="&maj="+S.maj:w=null)}fetch(A).then(S=>S.json()).then(S=>{let B=S.shift();Te(B);let ue=X(B);he(S,w),Ee(ue),Ut(()=>{K.value=!1;const _e=localStorage.getItem("filtreselect_"+ye),Je=localStorage.getItem("triCol_"+ye);let ot=[];if(i.filtreselect?(i.filtreselect.split(",").forEach(st=>{const[pt,...Vt]=st.split("|"),Jn=ot.findIndex(gr=>gr.champ===pt);Jn===-1?ot.push({champ:pt,valeurs:Vt}):ot[Jn].valeurs.push(Vt[0])}),localStorage.setItem("filtreselect_"+ye,JSON.stringify(ot))):_e&&(ot=JSON.parse(_e)),ot.forEach(st=>{H.value.includes(st.champ)&&(N.value[st.champ]=[...N.value[st.champ],...st.valeurs])}),_.value++,V=!1,se&&i.tparpage.includes(se)&&(p.value=se),Me?(Me.split(",").forEach(st=>{const[pt,Vt]=st.split("|");H.value.includes(pt)&&Z(pt,Vt)}),localStorage.setItem("triCol_"+ye,Me)):Je&&Je.split(",").forEach(st=>{const[pt,Vt]=st.split("|");H.value.includes(pt)&&Z(pt,Vt)}),parseInt(i._id)>0){let st=parseInt(i._id),pt=parseInt(F.value);if(parseInt(pt)){let Vt=0;if(Object.values(s.value).forEach((Jn,gr)=>{st===Jn.html.id&&(Vt=gr+1)}),Vt>pt){let Jn=parseInt(Vt/pt)+1;E.value=Jn}}P(st,"id")}i.nomblocajaxreload&&ajaxReload(i.nomblocajaxreload),I.value&&Object.entries(I.value).forEach(([st,pt])=>{Z(st,pt)}),$("td.crayon-init").removeClass("crayon-init")})}).catch(S=>console.log(S))}function m(){let w={header:l.value,header_top:r.value,footer:a.value,crayons:d.value,classes:y.value,filtreCol:q.value,ordreCol:I.value,maj:z.value};localStorage.setItem("header_"+ye,JSON.stringify(w))}function x(w){N.value[w]=[],m()}function L(){_.value++}function D(){return i.apiuri?i.apiuri.match(/.*page=(.*)/)[1]+"&gamuId="+i.id_auteur:""}function j(w,A){let S=A.crayons!==void 0&&A.crayons[w]!==void 0?A.crayons[w]:A.html.id;if(Object.keys(d.value).indexOf(w)!==-1)return`crayon ${d.value[w]}-${w}-${S}`}function Z(w,A=!1){const S=T.value.indexOf(w);S!==-1?(A||(A="asc",g.value[S]==="asc"&&(A="desc")),g.value[S]=A):(A||(A="asc"),T.value.push(w),g.value.push(A)),s.value=ha(s.value,T.value,g.value,O.value),I.value[w]=A,m()}function J(w,A){const S=T.value.indexOf(w);if(S!==-1&&g.value[S]===A)return"active"}function G(){s.value=ha(s.value,["id"],"",O.value),g.value=[],T.value=[],I.value=[],Object.keys(q.value).forEach(w=>{N.value[w]=[]}),localStorage.removeItem("filtreselect_"+ye),localStorage.removeItem("filtreCol_"+ye),localStorage.removeItem("triCol_"+ye)}function P(w,A){if(A==="id"&&parseInt(w)){let S=v.value.indexOf(w);S!==-1?v.value.splice(S,1):v.value.push(w)}}function Y(w="tableau"){let A=[],S=M.value;w==="table"&&(S=s.value),Object.values(S).forEach(_e=>{A.push(_e.html)});const B={fichierpdf:i.fichierpdf,langpdf:i.langpdf,namepdf:i.namepdf,header:l.value,arg:i.argpdf,Tdata:A};$.ajax({url:i.pdfuri,type:"POST",dataType:"text",data:B}).done(function(_e){_e&&Vm(_e)})}function oe(w="tableau"){let A=[],S=[],B=[],ue=M.value;w==="table"&&(ue=s.value),Object.keys(l.value).forEach(_e=>S.push(_e)),B=ue.reduce((_e,Je)=>{let ot=[];return Object.values(Je[i.champcsv]).forEach(st=>ot.push(st)),[..._e,[...ot]]},[]),A=[[...S],...B],Ke(A,i.delimitercsv,i.namecsv)}function Q(w){let A=W.value;return Object.keys(w).forEach(S=>{A=A.replace(`@@${S}@@`,w[S])}),A}function de(w){ee.value=w}function pe(w){C.value[w]!==void 0&&C.value[w].length?C.value[w]=[]:(C.value[w]=[],M.value.forEach(A=>{C.value[w].push(A.html.id)}))}function Ie(w,A){let S="page";if(A.includes("action=")&&(S="action"),S==="action")$.ajax({url:A,data:{data:C.value[w]},type:"POST"}).done(function(){h("maj")});else{const B=encodeURIComponent(JSON.stringify(C.value[w]));A+="&data="+B,A+="&var_zajax=content";const ue={};ue.onClose=()=>{h("maj")},$.modalbox(A,ue)}}function ve(w){let A=E.value*F.value-F.value,S=E.value*F.value;return w.slice(A,S)}function Pe(){let w=Math.ceil(s.value.length/F.value);u.value=[];for(let A=1;A<=w;A++)u.value.push(A)}function Ke(w,A,S){S.includes(".csv")&&(S=S.split(".")[0]);let B="";A?B=n.unparse(w,{delimiter:A}):B=n.unparse(w),n.download(B,S)}function We(w,A=!0){console.log("rechargerJson"),V=A,h(w)}function Wt(w){w<0&&(w=w*-1),console.log("delLigne : ",w);let A=Si(s.value,w);A!==-1&&s.value.splice(A,1)}return t({rechargerJson:We,delLigne:Wt}),(w,A)=>(ae(),fe("div",Hm,[ne("div",Um,[mt(ne("select",{id:"parPage","onUpdate:modelValue":A[0]||(A[0]=S=>je(p)?p.value=S:p=S)},[(ae(!0),fe(Oe,null,Ct(e.tparpage,S=>(ae(),fe("option",{key:S},It(S),1))),128))],512),[[Fo,re(p)]]),mt(ne("input",{class:"gamutable--rechercher",type:"text","onUpdate:modelValue":A[1]||(A[1]=S=>je(R)?R.value=S:R=S),placeholder:"Rechercher"},null,512),[[di,re(R)]]),ne("button",{class:"btn gamutable--resetOrderBy",type:"button",onClick:A[2]||(A[2]=De(S=>G(),["stop"])),title:"Réinitialiser les tris des colonnes"},Wm),ne("button",{class:"btn var_gamutable rouge",type:"button",onClick:A[3]||(A[3]=De(S=>h(),["stop"])),title:"Rechargement complet du tableau"},Gm),ne("button",{class:"btn var_gamutable",type:"button",onClick:A[4]||(A[4]=De(S=>h("maj"),["stop"])),title:"Mise à jour du tableau - dernière version de la base de donnée le : "+Ae.value},Ym,8,Jm),re(W)?mt((ae(),fe("button",{key:0,class:"btn gamutable--vueTable",title:"Switcher en Vue tableau",onClick:A[5]||(A[5]=De(S=>de("tableau"),["stop"]))},Xm,512)),[[Pt,re(ee)==="bloc"]]):$e("",!0),re(W)?mt((ae(),fe("button",{key:1,class:"btn gamutable--vueBloc",title:"Switcher en Vue Bloc",onClick:A[6]||(A[6]=De(S=>de("bloc"),["stop"]))},ty,512)),[[Pt,re(ee)==="tableau"]]):$e("",!0),mt(ne("button",{class:"btn gamutable--exportCSV export--affiche",type:"button",onClick:A[7]||(A[7]=De(S=>oe(),["stop"])),title:"Exporter le tableau affiché en csv"},iy,512),[[Pt,e.namecsv]]),mt(ne("button",{class:"btn export--affiche",type:"button",onClick:A[8]||(A[8]=De(S=>Y(),["stop"])),title:"Générer le PDF du tableau affiché"},ry,512),[[Pt,e.fichierpdf]]),mt(ne("button",{class:"btn gamutable--exportCSV export--complet",type:"button",onClick:A[9]||(A[9]=De(S=>oe("table"),["stop"])),title:"Exporter le tableau complet en csv"},ly,512),[[Pt,e.namecsv]]),mt(ne("button",{class:"btn export--complet",type:"button",onClick:A[10]||(A[10]=De(S=>Y("table"),["stop"])),title:"Générer le PDF du tableau complet"},cy,512),[[Pt,e.fichierpdf]]),mt(ne("span",uy,hy,512),[[Pt,re(K)]]),mt(ne("span",py,my,512),[[Pt,!re(K)]]),ne("span",{class:"gamutable-nbrMax","data-nbrmax":re(s).length},It(M.value.length)+" / "+It(re(s).length)+" éléments",9,yy),ne("span",{class:"includespip",innerHTML:e.includespip},null,8,vy)]),re(ee)==="bloc"?(ae(),fe("div",by,[(ae(!0),fe(Oe,null,Ct(M.value,S=>(ae(),fe("div",{class:"vueBlocs-unbloc",key:S.id,innerHTML:Q(S.html)},null,8,_y))),128))])):$e("",!0),re(ee)==="tableau"?(ae(),fe("table",Sy,[ne("thead",null,[Object.keys(re(r)).length?(ae(),fe("tr",Cy,[(ae(!0),fe(Oe,null,Ct(re(r),(S,B,ue)=>(ae(),fe("th",{key:"header_top_"+ue,colspan:S.colspan,class:Ze(S.class)},[ne("span",{innerHTML:B},null,8,Ty)],10,Ey))),128))])):$e("",!0),ne("tr",null,[(ae(!0),fe(Oe,null,Ct(re(l),(S,B,ue)=>(ae(),fe("th",{key:"head_"+ue,class:Ze([B,re(y)[B],re(o)[ue]+"--header_top"])},[ne("span",Iy,[ne("span",{innerHTML:S},null,8,xy),ne("span",wy,[ne("i",{class:Ze(["gt-sort-up",J(B,"asc")]),"aria-hidden":"true",onClick:De(_e=>Z(B,"asc"),["stop"])},null,10,ky),ne("i",{class:Ze(["gt-sort-down",J(B,"desc")]),"aria-hidden":"true",onClick:De(_e=>Z(B,"desc"),["stop"])},null,10,Oy)])])],2))),128))]),re(H).length||Object.keys(re(b)).length?(ae(),fe("tr",Ay,[(ae(!0),fe(Oe,null,Ct(re(l),(S,B,ue)=>(ae(),fe("th",{key:"filtreCol_"+ue,class:Ze(B)},[re(b)[B]!==void 0?(ae(),fe("div",{key:0,id:"filtreCol_"+B,class:Ze([re(y)[B],"flex justify-between"])},[ne("input",{class:"ml-2",type:"checkbox",onClick:De(_e=>pe(B),["stop"])},null,8,Ry),ne("button",{onClick:De(_e=>Ie(B,re(b)[B]),["stop"])},Py,8,My)],10,Ny)):$e("",!0),re(H).indexOf(B)!==-1?(ae(),fe("div",{key:1,id:"filtreCol_"+B},[re(q)[B]==="select"?(ae(),zi(re(Gs),{key:0,modelValue:re(N)[B],"onUpdate:modelValue":_e=>re(N)[B]=_e,options:re(k)[B].sort(re(jm)),"hide-selected":"",multiple:"",taggable:"","close-on-select":"","clear-on-close":"",searchable:"",onSelected:L,"onSearch:focus":A[11]||(A[11]=()=>{})},{tag:ci(({option:_e,remove:Je})=>[ne("div",By,[ar(It(_e)+" ",1),ne("span",{class:"tag--remove pointer",title:"Cliquer pour supprimer ",onClick:De(Je,["stop"])},"x",8,Dy)])]),_:2},1032,["modelValue","onUpdate:modelValue","options"])):$e("",!0),re(q)[B]==="input"?mt((ae(),fe("input",{key:1,class:"gamutable__input--filtrer","onUpdate:modelValue":_e=>re(N)[B]=_e,type:"text",placeholder:"Rechercher",onKeydown:A[12]||(A[12]=()=>{})},null,40,$y)),[[di,re(N)[B]]]):$e("",!0),re(q)[B]==="input"&&re(N)[B].length!==0?(ae(),fe("button",{key:2,onClick:De(_e=>x(B),["stop"]),title:"Vider ce champ",class:"gamutable__input--filtrer"}," X ",8,Vy)):$e("",!0)],8,Fy)):$e("",!0)],2))),128))])):$e("",!0)]),ne("tbody",null,[(ae(!0),fe(Oe,null,Ct(M.value,S=>(ae(),fe("tr",{key:S.html.id,class:Ze(re(v).indexOf(S.html.id)!==-1?"select":"")},[(ae(!0),fe(Oe,null,Ct(S.html,(B,ue,_e)=>(ae(),fe("td",{key:"td_"+_e,class:Ze([j(ue,S),ue,re(y)[ue],S.classes!==void 0?S.classes[ue]:""]),onClick:Je=>P(S.html.id,ue)},[re(b)[ue]!==void 0?(ae(),fe("div",Hy,[B.split("-")[0]==="dataid"?(ae(),fe("div",Uy,[ne("label",null,[mt(ne("input",{type:"checkbox","onUpdate:modelValue":Je=>re(C)[ue]=Je,value:B.split("-")[1]},null,8,Ky),[[ur,re(C)[ue]]])])])):(ae(),fe("div",{key:1,innerHTML:B},null,8,qy))])):(ae(),fe("div",{key:1,innerHTML:B},null,8,Wy))],10,jy))),128))],2))),128))]),ne("tfoot",null,[Object.keys(re(c)).length?(ae(),fe("tr",zy,[(ae(!0),fe(Oe,null,Ct(re(l),(S,B,ue)=>(ae(),fe("th",{key:"footerAffiche_"+ue,class:Ze([B,re(y)[B],re(o)[ue]+"--footer"])},[ne("div",{innerHTML:re(c)[B]??""},null,8,Gy)],2))),128))])):$e("",!0),Object.keys(re(f)).length?(ae(),fe("tr",Jy,[(ae(!0),fe(Oe,null,Ct(re(l),(S,B,ue)=>(ae(),fe("th",{key:"footerTotal_"+ue,class:Ze([B,re(y)[B],re(o)[ue]+"--footer"])},[ne("div",{innerHTML:re(f)[B]??""},null,8,Zy)],2))),128))])):$e("",!0)])])):$e("",!0),ne("div",Yy,[ne("div",Qy,It(M.value.length)+" / "+It(re(s).length)+" éléments ",1),ne("div",Xy,[ne("div",ev,[re(E)!=1?(ae(),fe("button",{key:0,type:"button",class:"page-link",onClick:A[13]||(A[13]=S=>je(E)?E.value=1:E=1)}," Premier ")):$e("",!0),re(E)!=1?(ae(),fe("button",{key:1,type:"button",class:"page-link",onClick:A[14]||(A[14]=S=>je(E)?E.value--:E--)}," Précédent ")):$e("",!0)]),ne("div",tv,[(ae(!0),fe(Oe,null,Ct(re(u).slice(re(E)-4<0?0:re(E)-4,re(E)+3),S=>(ae(),fe("button",{type:"button",class:Ze(["page-link",{on:S===re(E)}]),onClick:B=>je(E)?E.value=S:E=S},It(S),11,nv))),256))]),ne("div",iv,[re(E)je(E)?E.value++:E++),class:"page-link"}," Suivant ")):$e("",!0),re(E)je(E)?E.value=re(u).length:E=re(u).length),class:"page-link"}," Dernier ")):$e("",!0)])])])]))}};var rv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ov(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sf={exports:{}};/* @license Papa Parse v5.4.1 https://github.com/mholt/PapaParse License: MIT */(function(e,t){(function(n,i){e.exports=i()})(rv,function n(){var i=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:{},s=!i.document&&!!i.postMessage,r=i.IS_PAPA_WORKER||!1,o={},l=0,a={parse:function(p,u){var g=(u=u||{}).dynamicTyping||!1;if(F(g)&&(u.dynamicTypingFunction=g,g={}),u.dynamicTyping=g,u.transform=!!F(u.transform)&&u.transform,u.worker&&a.WORKERS_SUPPORTED){var T=function(){if(!a.WORKERS_SUPPORTED)return!1;var O=(ee=i.URL||i.webkitURL||null,W=n.toString(),a.BLOB_URL||(a.BLOB_URL=ee.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",W,")();"],{type:"text/javascript"})))),K=new i.Worker(O),ee,W;return K.onmessage=N,K.id=l++,o[K.id]=K}();return T.userStep=u.step,T.userChunk=u.chunk,T.userComplete=u.complete,T.userError=u.error,u.step=F(u.step),u.chunk=F(u.chunk),u.complete=F(u.complete),u.error=F(u.error),delete u.worker,void T.postMessage({input:p,config:u,workerId:T.id})}var v=null;return a.NODE_STREAM_INPUT,typeof p=="string"?(p=function(O){return O.charCodeAt(0)===65279?O.slice(1):O}(p),v=u.download?new d(u):new b(u)):p.readable===!0&&F(p.read)&&F(p.on)?v=new C(u):(i.File&&p instanceof File||p instanceof Object)&&(v=new y(u)),v.stream(p)},unparse:function(p,u){var g=!1,T=!0,v=",",O=`\r -`,K='"',ee=K+K,W=!1,V=null,z=!1;(function(){if(typeof u=="object"){if(typeof u.delimiter!="string"||a.BAD_DELIMITERS.filter(function(te){return u.delimiter.indexOf(te)!==-1}).length||(v=u.delimiter),(typeof u.quotes=="boolean"||typeof u.quotes=="function"||Array.isArray(u.quotes))&&(g=u.quotes),typeof u.skipEmptyLines!="boolean"&&typeof u.skipEmptyLines!="string"||(W=u.skipEmptyLines),typeof u.newline=="string"&&(O=u.newline),typeof u.quoteChar=="string"&&(K=u.quoteChar),typeof u.header=="boolean"&&(T=u.header),Array.isArray(u.columns)){if(u.columns.length===0)throw new Error("Option columns is empty");V=u.columns}u.escapeChar!==void 0&&(ee=u.escapeChar+K),(typeof u.escapeFormulae=="boolean"||u.escapeFormulae instanceof RegExp)&&(z=u.escapeFormulae instanceof RegExp?u.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var se=new RegExp(H(K),"g");if(typeof p=="string"&&(p=JSON.parse(p)),Array.isArray(p)){if(!p.length||Array.isArray(p[0]))return Me(null,p,W);if(typeof p[0]=="object")return Me(V||Object.keys(p[0]),p,W)}else if(typeof p=="object")return typeof p.data=="string"&&(p.data=JSON.parse(p.data)),Array.isArray(p.data)&&(p.fields||(p.fields=p.meta&&p.meta.fields||V),p.fields||(p.fields=Array.isArray(p.data[0])?p.fields:typeof p.data[0]=="object"?Object.keys(p.data[0]):[]),Array.isArray(p.data[0])||typeof p.data[0]=="object"||(p.data=[p.data])),Me(p.fields||[],p.data||[],W);throw new Error("Unable to serialize unrecognized input");function Me(te,Ae,M){var U="";typeof te=="string"&&(te=JSON.parse(te)),typeof Ae=="string"&&(Ae=JSON.parse(Ae));var ce=Array.isArray(te)&&0=this._config.preview;if(r)i.postMessage({results:O,workerId:a.WORKER_ID,finished:ee});else if(F(this._config.chunk)&&!g){if(this._config.chunk(O,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);O=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(O.data),this._completeResults.errors=this._completeResults.errors.concat(O.errors),this._completeResults.meta=O.meta),this._completed||!ee||!F(this._config.complete)||O&&O.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ee||O&&O.meta.paused||this._nextChunk(),O}this._halted=!0},this._sendError=function(u){F(this._config.error)?this._config.error(u):r&&this._config.error&&i.postMessage({workerId:a.WORKER_ID,error:u,finished:!1})}}function d(p){var u;(p=p||{}).chunkSize||(p.chunkSize=a.RemoteChunkSize),f.call(this,p),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(g){this._input=g,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(u=new XMLHttpRequest,this._config.withCredentials&&(u.withCredentials=this._config.withCredentials),s||(u.onload=E(this._chunkLoaded,this),u.onerror=E(this._chunkError,this)),u.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var g=this._config.downloadRequestHeaders;for(var T in g)u.setRequestHeader(T,g[T])}if(this._config.chunkSize){var v=this._start+this._config.chunkSize-1;u.setRequestHeader("Range","bytes="+this._start+"-"+v)}try{u.send(this._config.downloadRequestBody)}catch(O){this._chunkError(O.message)}s&&u.status===0&&this._chunkError()}},this._chunkLoaded=function(){u.readyState===4&&(u.status<200||400<=u.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:u.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(g){var T=g.getResponseHeader("Content-Range");return T===null?-1:parseInt(T.substring(T.lastIndexOf("/")+1))}(u),this.parseChunk(u.responseText)))},this._chunkError=function(g){var T=u.statusText||g;this._sendError(new Error(T))}}function y(p){var u,g;(p=p||{}).chunkSize||(p.chunkSize=a.LocalChunkSize),f.call(this,p);var T=typeof FileReader<"u";this.stream=function(v){this._input=v,g=v.slice||v.webkitSlice||v.mozSlice,T?((u=new FileReader).onload=E(this._chunkLoaded,this),u.onerror=E(this._chunkError,this)):u=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(v.target.result)},this._chunkError=function(){this._sendError(u.error)}}function b(p){var u;f.call(this,p=p||{}),this.stream=function(g){return u=g,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var g,T=this._config.chunkSize;return T?(g=u.substring(0,T),u=u.substring(T)):(g=u,u=""),this._finished=!u,this.parseChunk(g)}}}function C(p){f.call(this,p=p||{});var u=[],g=!0,T=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(v){this._input=v,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){T&&u.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),u.length?this.parseChunk(u.shift()):g=!0},this._streamData=E(function(v){try{u.push(typeof v=="string"?v:v.toString(this._config.encoding)),g&&(g=!1,this._checkIsFinished(),this.parseChunk(u.shift()))}catch(O){this._streamError(O)}},this),this._streamError=E(function(v){this._streamCleanUp(),this._sendError(v)},this),this._streamEnd=E(function(){this._streamCleanUp(),T=!0,this._streamData("")},this),this._streamCleanUp=E(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function I(p){var u,g,T,v=Math.pow(2,53),O=-v,K=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,ee=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,W=this,V=0,z=0,se=!1,Me=!1,ye=[],te={data:[],errors:[],meta:{}};if(F(p.step)){var Ae=p.step;p.step=function(X){if(te=X,ce())U();else{if(U(),te.data.length===0)return;V+=X.data.length,p.preview&&V>p.preview?g.abort():(te.data=te.data[0],Ae(te,W))}}}function M(X){return p.skipEmptyLines==="greedy"?X.join("").trim()==="":X.length===1&&X[0].length===0}function U(){return te&&T&&(Ee("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),T=!1),p.skipEmptyLines&&(te.data=te.data.filter(function(X){return!M(X)})),ce()&&function(){if(!te)return;function X(Ce,Te){F(p.transformHeader)&&(Ce=p.transformHeader(Ce,Te)),ye.push(Ce)}if(Array.isArray(te.data[0])){for(var he=0;ce()&&he=ye.length?"__parsed_extra":ye[h]),p.transform&&(L=p.transform(L,x)),L=le(x,L),x==="__parsed_extra"?(m[x]=m[x]||[],m[x].push(L)):m[x]=L}return p.header&&(h>ye.length?Ee("FieldMismatch","TooManyFields","Too many fields: expected "+ye.length+" fields but parsed "+h,z+Te):h=this._config.preview;if(r)i.postMessage({results:O,workerId:a.WORKER_ID,finished:ee});else if(F(this._config.chunk)&&!g){if(this._config.chunk(O,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);O=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(O.data),this._completeResults.errors=this._completeResults.errors.concat(O.errors),this._completeResults.meta=O.meta),this._completed||!ee||!F(this._config.complete)||O&&O.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ee||O&&O.meta.paused||this._nextChunk(),O}this._halted=!0},this._sendError=function(u){F(this._config.error)?this._config.error(u):r&&this._config.error&&i.postMessage({workerId:a.WORKER_ID,error:u,finished:!1})}}function d(p){var u;(p=p||{}).chunkSize||(p.chunkSize=a.RemoteChunkSize),f.call(this,p),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(g){this._input=g,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(u=new XMLHttpRequest,this._config.withCredentials&&(u.withCredentials=this._config.withCredentials),s||(u.onload=E(this._chunkLoaded,this),u.onerror=E(this._chunkError,this)),u.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var g=this._config.downloadRequestHeaders;for(var T in g)u.setRequestHeader(T,g[T])}if(this._config.chunkSize){var v=this._start+this._config.chunkSize-1;u.setRequestHeader("Range","bytes="+this._start+"-"+v)}try{u.send(this._config.downloadRequestBody)}catch(O){this._chunkError(O.message)}s&&u.status===0&&this._chunkError()}},this._chunkLoaded=function(){u.readyState===4&&(u.status<200||400<=u.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:u.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(g){var T=g.getResponseHeader("Content-Range");return T===null?-1:parseInt(T.substring(T.lastIndexOf("/")+1))}(u),this.parseChunk(u.responseText)))},this._chunkError=function(g){var T=u.statusText||g;this._sendError(new Error(T))}}function y(p){var u,g;(p=p||{}).chunkSize||(p.chunkSize=a.LocalChunkSize),f.call(this,p);var T=typeof FileReader<"u";this.stream=function(v){this._input=v,g=v.slice||v.webkitSlice||v.mozSlice,T?((u=new FileReader).onload=E(this._chunkLoaded,this),u.onerror=E(this._chunkError,this)):u=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(v.target.result)},this._chunkError=function(){this._sendError(u.error)}}function b(p){var u;f.call(this,p=p||{}),this.stream=function(g){return u=g,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var g,T=this._config.chunkSize;return T?(g=u.substring(0,T),u=u.substring(T)):(g=u,u=""),this._finished=!u,this.parseChunk(g)}}}function C(p){f.call(this,p=p||{});var u=[],g=!0,T=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(v){this._input=v,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){T&&u.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),u.length?this.parseChunk(u.shift()):g=!0},this._streamData=E(function(v){try{u.push(typeof v=="string"?v:v.toString(this._config.encoding)),g&&(g=!1,this._checkIsFinished(),this.parseChunk(u.shift()))}catch(O){this._streamError(O)}},this),this._streamError=E(function(v){this._streamCleanUp(),this._sendError(v)},this),this._streamEnd=E(function(){this._streamCleanUp(),T=!0,this._streamData("")},this),this._streamCleanUp=E(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function I(p){var u,g,T,v=Math.pow(2,53),O=-v,K=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,ee=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,W=this,V=0,z=0,se=!1,Me=!1,ye=[],te={data:[],errors:[],meta:{}};if(F(p.step)){var Ae=p.step;p.step=function(X){if(te=X,ce())U();else{if(U(),te.data.length===0)return;V+=X.data.length,p.preview&&V>p.preview?g.abort():(te.data=te.data[0],Ae(te,W))}}}function M(X){return p.skipEmptyLines==="greedy"?X.join("").trim()==="":X.length===1&&X[0].length===0}function U(){return te&&T&&(Ce("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),T=!1),p.skipEmptyLines&&(te.data=te.data.filter(function(X){return!M(X)})),ce()&&function(){if(!te)return;function X(Ee,Te){F(p.transformHeader)&&(Ee=p.transformHeader(Ee,Te)),ye.push(Ee)}if(Array.isArray(te.data[0])){for(var he=0;ce()&&he=ye.length?"__parsed_extra":ye[h]),p.transform&&(L=p.transform(L,x)),L=le(x,L),x==="__parsed_extra"?(m[x]=m[x]||[],m[x].push(L)):m[x]=L}return p.header&&(h>ye.length?Ce("FieldMismatch","TooManyFields","Too many fields: expected "+ye.length+" fields but parsed "+h,z+Te):h=j.length/2?`\r -`:"\r"}(X,Te)),T=!1,p.delimiter)F(p.delimiter)&&(p.delimiter=p.delimiter(X),te.meta.delimiter=p.delimiter);else{var h=function(x,L,B,j,Z){var J,G,P,Y;Z=Z||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var oe=0;oe=K)return We(!0)}else for(Q=V,V++;;){if((Q=se.indexOf(u,Q+1))===-1)return ye||Ee.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:le.length,index:V}),Pe();if(Q===te-1)return Pe(se.substring(V,Q).replace(oe,u));if(u!==W||se[Q+1]!==W){if(u===W||Q===0||se[Q-1]!==W){P!==-1&&P=K)return We(!0);break}Ee.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:le.length,index:V}),Q++}}else Q++}return Pe();function Ie(w){le.push(w),he=V}function ve(w){var A=0;if(w!==-1){var S=se.substring(Q+1,w);S&&S.trim()===""&&(A=S.length)}return A}function Pe(w){return ye||(w===void 0&&(w=se.substring(V)),X.push(w),V=te,Ie(X),ce&&Wt()),We()}function Ke(w){V=w,Ie(X),X=[],Y=se.indexOf(T,V)}function We(w){return{data:le,errors:Ee,meta:{delimiter:g,linebreak:T,aborted:z,truncated:!!w,cursor:he+(Me||0)}}}function Wt(){O(We()),le=[],Ee=[]}},this.abort=function(){z=!0},this.getCharIndex=function(){return V}}function N(p){var u=p.data,g=o[u.workerId],T=!1;if(u.error)g.userError(u.error,u.file);else if(u.results&&u.results.data){var v={abort:function(){T=!0,_(u.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:k,resume:k};if(F(g.userStep)){for(var O=0;O{try{const n=new Blob([e],{type:"text/csv"}),i=URL.createObjectURL(n),s=document.createElement("a");s.id=`csv-${parseInt(Math.random().toString().slice(2,16))}`,s.href=i,document.body.appendChild(s);const r=document.getElementById(s.id);return r.style.visibility="hidden",r.download=`${t}.csv`,r.click(),setTimeout(()=>{document.body.removeChild(s)},1),!0}catch{return!1}},uv=e=>e.map(t=>JSON.stringify(t)).reduce((t,n)=>(t.find(i=>i===n)||t.push(n),t),[]).map(t=>JSON.parse(t)),pa={install(e,t){const n={download:cv,dedupe:uv},i=Object.entries(av).reduce((r,[o,l])=>(r[o]=l,r),{}),s=Object.assign(i,n);"config"in e&&"globalProperties"in e.config?e.config.globalProperties.$papa=s:e.prototype.$papa=s}},ga={GamuTable:sv};of();function of(){let e=1;for(const t of document.getElementsByClassName("vue-gamutable"))e===1?(window.app=Zr({components:ga,mounted(){app.rechargerJson=this.$refs.montableau.rechargerJson,app.delLigne=this.$refs.montableau.delLigne}}),app.use(pa),app.provide("$papa",app.config.globalProperties.$papa),app.mount(t)):e===2&&(window.app_deux=Zr({components:ga,mounted(){app_deux.rechargerJson=this.$refs.montableau_deux.rechargerJson,app_deux.delLigne=this.$refs.montableau_deux.delLigne}}),app_deux.use(pa),app_deux.provide("$papa",app_deux.config.globalProperties.$papa),app_deux.mount(t)),e++}window.gamutable=of;$("#vueGamutable").on("click",".url_action, .url_action--ss_css",function(e){e.preventDefault(),e.stopPropagation();let t=$(this).data("confirm");if(t!==void 0&&!confirm(t))return;let n=$(this).attr("href"),i=$(this).data("id"),s="1";$(this).parents(".gamutableDeux").length&&(s="2"),$(this).data("treload")!==void 0&&(s=$(this).data("treload").toString());let r=s.indexOf("1")!==-1,o=s.indexOf("2")!==-1;$(this).has("i.icon, i.fa")&&$(this).find("i.icon, i.fa").eq(0).replaceWith('');let l=$(this).data("ajaxreload");$.ajax({url:n,dataType:"json",async:!0}).done(function(a){!$.isEmptyObject(a)&&!$.isEmptyObject(a.message_erreur)?alert(a.message_erreur):(parseInt(i)>0?(r&&app.rechargerJson(i),o&&app_deux.rechargerJson(i)):parseInt(i)<0?(r&&app.delLigne(i),o&&app_deux.delLigne(i)):(r&&app.rechargerJson("maj 1"),o&&app_deux.rechargerJson("maj 2")),l!==void 0&&ajaxReload(l,{args:{id:i},callback:function(){}}))})}); +`);var V=0,z=!1;this.parse=function(se,Me,ye){if(typeof se!="string")throw new Error("Input must be a string");var te=se.length,Ae=g.length,M=T.length,U=v.length,ce=F(O),le=[],Ce=[],X=[],he=V=0;if(!se)return We();if(p.header&&!Me){var Ee=se.split(T)[0].split(g),Te=[],h={},m=!1;for(var x in Ee){var L=Ee[x];F(p.transformHeader)&&(L=p.transformHeader(L,x));var D=L,j=h[L]||0;for(0=K)return We(!0)}else for(Q=V,V++;;){if((Q=se.indexOf(u,Q+1))===-1)return ye||Ce.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:le.length,index:V}),Pe();if(Q===te-1)return Pe(se.substring(V,Q).replace(oe,u));if(u!==W||se[Q+1]!==W){if(u===W||Q===0||se[Q-1]!==W){P!==-1&&P=K)return We(!0);break}Ce.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:le.length,index:V}),Q++}}else Q++}return Pe();function Ie(w){le.push(w),he=V}function ve(w){var A=0;if(w!==-1){var S=se.substring(Q+1,w);S&&S.trim()===""&&(A=S.length)}return A}function Pe(w){return ye||(w===void 0&&(w=se.substring(V)),X.push(w),V=te,Ie(X),ce&&Wt()),We()}function Ke(w){V=w,Ie(X),X=[],Y=se.indexOf(T,V)}function We(w){return{data:le,errors:Ce,meta:{delimiter:g,linebreak:T,aborted:z,truncated:!!w,cursor:he+(Me||0)}}}function Wt(){O(We()),le=[],Ce=[]}},this.abort=function(){z=!0},this.getCharIndex=function(){return V}}function N(p){var u=p.data,g=o[u.workerId],T=!1;if(u.error)g.userError(u.error,u.file);else if(u.results&&u.results.data){var v={abort:function(){T=!0,_(u.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:k,resume:k};if(F(g.userStep)){for(var O=0;O{try{const n=new Blob([e],{type:"text/csv"}),i=URL.createObjectURL(n),s=document.createElement("a");s.id=`csv-${parseInt(Math.random().toString().slice(2,16))}`,s.href=i,document.body.appendChild(s);const r=document.getElementById(s.id);return r.style.visibility="hidden",r.download=`${t}.csv`,r.click(),setTimeout(()=>{document.body.removeChild(s)},1),!0}catch{return!1}},uv=e=>e.map(t=>JSON.stringify(t)).reduce((t,n)=>(t.find(i=>i===n)||t.push(n),t),[]).map(t=>JSON.parse(t)),pa={install(e,t){const n={download:cv,dedupe:uv},i=Object.entries(av).reduce((r,[o,l])=>(r[o]=l,r),{}),s=Object.assign(i,n);"config"in e&&"globalProperties"in e.config?e.config.globalProperties.$papa=s:e.prototype.$papa=s}},ga={GamuTable:sv};of();function of(){let e=1;for(const t of document.getElementsByClassName("vue-gamutable"))e===1?(window.app=Zr({components:ga,mounted(){app.rechargerJson=this.$refs.montableau.rechargerJson,app.delLigne=this.$refs.montableau.delLigne}}),app.use(pa),app.provide("$papa",app.config.globalProperties.$papa),app.mount(t)):e===2&&(window.app_deux=Zr({components:ga,mounted(){app_deux.rechargerJson=this.$refs.montableau_deux.rechargerJson,app_deux.delLigne=this.$refs.montableau_deux.delLigne}}),app_deux.use(pa),app_deux.provide("$papa",app_deux.config.globalProperties.$papa),app_deux.mount(t)),e++}window.gamutable=of;$("#vueGamutable").on("click",".url_action, .url_action--ss_css",function(e){e.preventDefault(),e.stopPropagation();let t=$(this).data("confirm");if(t!==void 0&&!confirm(t))return;let n=$(this).attr("href"),i=$(this).data("id"),s="1";$(this).parents(".gamutableDeux").length&&(s="2"),$(this).data("treload")!==void 0&&(s=$(this).data("treload").toString());let r=s.indexOf("1")!==-1,o=s.indexOf("2")!==-1;$(this).has("i.icon, i.fa")&&$(this).find("i.icon, i.fa").eq(0).replaceWith('');let l=$(this).data("ajaxreload");$.ajax({url:n,dataType:"json",async:!0}).done(function(a){!$.isEmptyObject(a)&&!$.isEmptyObject(a.message_erreur)?alert(a.message_erreur):(parseInt(i)>0?(r&&app.rechargerJson(i),o&&app_deux.rechargerJson(i)):parseInt(i)<0?(r&&app.delLigne(i),o&&app_deux.delLigne(i)):(r&&app.rechargerJson("maj 1"),o&&app_deux.rechargerJson("maj 2")),l!==void 0&&ajaxReload(l,{args:{id:i},callback:function(){}}))})});