regor 1.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -18
- package/dist/regor.d.ts +279 -29
- package/dist/regor.es2015.cjs.js +856 -439
- package/dist/regor.es2015.cjs.prod.js +3 -3
- package/dist/regor.es2015.esm.js +856 -439
- package/dist/regor.es2015.esm.prod.js +3 -3
- package/dist/regor.es2015.iife.js +856 -439
- package/dist/regor.es2015.iife.prod.js +3 -3
- package/dist/regor.es2019.cjs.js +856 -439
- package/dist/regor.es2019.cjs.prod.js +3 -3
- package/dist/regor.es2019.esm.js +856 -439
- package/dist/regor.es2019.esm.prod.js +3 -3
- package/dist/regor.es2019.iife.js +856 -439
- package/dist/regor.es2019.iife.prod.js +3 -3
- package/dist/regor.es2022.cjs.js +847 -427
- package/dist/regor.es2022.cjs.prod.js +3 -3
- package/dist/regor.es2022.esm.js +847 -427
- package/dist/regor.es2022.esm.prod.js +3 -3
- package/dist/regor.es2022.iife.js +847 -427
- package/dist/regor.es2022.iife.prod.js +3 -3
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var Regor=(()=>{var lt=Object.defineProperty,To=Object.defineProperties,Co=Object.getOwnPropertyDescriptor,Eo=Object.getOwnPropertyDescriptors,Ro=Object.getOwnPropertyNames,Vn=Object.getOwnPropertySymbols;var jn=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable;var mt=Math.pow,en=(t,e,n)=>e in t?lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dt=(t,e)=>{for(var n in e||(e={}))jn.call(e,n)&&en(t,n,e[n]);if(Vn)for(var n of Vn(e))xo.call(e,n)&&en(t,n,e[n]);return t},$n=(t,e)=>To(t,Eo(e));var vo=(t,e)=>{for(var n in e)lt(t,n,{get:e[n],enumerable:!0})},So=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ro(e))!jn.call(t,o)&&o!==n&<(t,o,{get:()=>e[o],enumerable:!(r=Co(e,o))||r.enumerable});return t};var wo=t=>So(lt({},"__esModule",{value:!0}),t);var d=(t,e,n)=>en(t,typeof e!="symbol"?e+"":e,n);var qn=(t,e,n)=>new Promise((r,o)=>{var s=c=>{try{a(n.next(c))}catch(p){o(p)}},i=c=>{try{a(n.throw(c))}catch(p){o(p)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,i);a((n=n.apply(t,e)).next())});var Ks={};vo(Ks,{ComponentHead:()=>qe,RegorConfig:()=>se,addUnbinder:()=>H,batch:()=>bo,collectRefs:()=>Nt,computeMany:()=>fo,computeRef:()=>uo,computed:()=>po,createApp:()=>io,createComponent:()=>ao,drainUnbind:()=>zn,endBatch:()=>Hn,entangle:()=>Ge,flatten:()=>ne,getBindData:()=>Ae,html:()=>Un,isDeepRef:()=>Be,isRaw:()=>Je,isRef:()=>b,markRaw:()=>lo,observe:()=>F,observeMany:()=>yo,observerCount:()=>go,onMounted:()=>co,onUnmounted:()=>Z,pause:()=>$t,persist:()=>mo,raw:()=>ho,ref:()=>me,removeNode:()=>q,resume:()=>qt,silence:()=>At,sref:()=>ee,startBatch:()=>Bn,toFragment:()=>Ve,toJsonTemplate:()=>et,trigger:()=>G,unbind:()=>pe,unref:()=>I,useScope:()=>St,warningHandler:()=>rt,watchEffect:()=>He});var je=Symbol(":regor");var pe=t=>{let e=[t];for(;e.length>0;){let n=e.pop();Oo(n);for(let r=n.lastChild;r!=null;r=r.previousSibling)e.push(r)}},Oo=t=>{let e=t[je];if(!e)return;let n=e.unbinders;for(let r=0;r<n.length;++r)n[r]();n.length=0,t[je]=void 0};var $e=[],ht=!1,yt,Fn=()=>{if(ht=!1,yt=void 0,$e.length!==0){for(let t=0;t<$e.length;++t)pe($e[t]);$e.length=0}},q=t=>{t.remove(),$e.push(t),ht||(ht=!0,yt=setTimeout(Fn,1))},zn=()=>qn(null,null,function*(){$e.length===0&&!ht||(yt&&clearTimeout(yt),Fn())});var V=t=>typeof t=="function",j=t=>typeof t=="string",Kn=t=>typeof t=="undefined",ie=t=>t==null||typeof t=="undefined",W=t=>typeof t!="string"||!(t!=null&&t.trim()),Ao=Object.prototype.toString,tn=t=>Ao.call(t),we=t=>tn(t)==="[object Map]",oe=t=>tn(t)==="[object Set]",nn=t=>tn(t)==="[object Date]",nt=t=>typeof t=="symbol",R=Array.isArray,A=t=>t!==null&&typeof t=="object";var Wn={0:"createApp can't find root element. You must define either a valid `selector` or an `element`. Example: createApp({}, {selector: '#app', html: '...'})",1:t=>`Component template cannot be found. selector: ${t} .`,2:"Use composables in scope. usage: useScope(() => new MyApp()).",3:t=>`${t} requires ref source argument`,4:"computed is readonly.",5:"persist requires a string key."},B=(t,...e)=>{let n=Wn[t];return new Error(V(n)?n.call(Wn,...e):n)};var gt=[],Gn=()=>{let t={onMounted:[],onUnmounted:[]};return gt.push(t),t},Ie=t=>{let e=gt[gt.length-1];if(!e&&!t)throw B(2);return e},Jn=t=>{let e=Ie();return t&&on(t),gt.pop(),e},rn=Symbol("csp"),on=t=>{let e=t,n=e[rn];if(n){let r=Ie();if(n===r)return;r.onMounted.length>0&&n.onMounted.push(...r.onMounted),r.onUnmounted.length>0&&n.onUnmounted.push(...r.onUnmounted);return}e[rn]=Ie()},bt=t=>t[rn];var Oe=t=>{var n,r;let e=(n=bt(t))==null?void 0:n.onUnmounted;e==null||e.forEach(o=>{o()}),(r=t.unmounted)==null||r.call(t)};var qe=class{constructor(e,n,r,o,s){d(this,"props");d(this,"start");d(this,"end");d(this,"ctx");d(this,"autoProps",!0);d(this,"entangle",!0);d(this,"enableSwitch",!1);d(this,"onAutoPropsAssigned");d(this,"pe");d(this,"emit",(e,n)=>{this.pe.dispatchEvent(new CustomEvent(e,{detail:n}))});this.props=e,this.pe=n,this.ctx=r,this.start=o,this.end=s}unmount(){let e=this.start.nextSibling,n=this.end;for(;e&&e!==n;)q(e),e=e.nextSibling;for(let r of this.ctx)Oe(r)}};var Ae=t=>{let e=t,n=e[je];if(n)return n;let r={unbinders:[],data:{}};return e[je]=r,r};var H=(t,e)=>{Ae(t).unbinders.push(e)};var Qn={8:t=>`Model binding requires a ref at ${t.outerHTML}`,7:t=>`Model binding is not supported on ${t.tagName} element at ${t.outerHTML}`,0:(t,e)=>`${t} binding expression is missing at ${e.outerHTML}`,1:(t,e,n)=>`invalid ${t} expression: ${e} at ${n.outerHTML}`,2:(t,e)=>`${t} requires object expression at ${e.outerHTML}`,3:(t,e)=>`${t} binder: key is empty on ${e.outerHTML}.`,4:(t,e,n,r)=>({msg:`Failed setting prop "${t}" on <${e.toLowerCase()}>: value ${n} is invalid.`,args:[r]}),5:(t,e)=>`${t} binding missing event type at ${e.outerHTML}`,6:(t,e)=>({msg:t,args:[e]})},k=(t,...e)=>{let n=Qn[t],r=V(n)?n.call(Qn,...e):n,o=rt.warning;o&&(j(r)?o(r):o(r,...r.args))},rt={warning:console.warn};var Ct={},Tt={},Xn=1,Yn=t=>{let e=(Xn++).toString();return Ct[e]=t,Tt[e]=0,e},sn=t=>{Tt[t]+=1},an=t=>{--Tt[t]===0&&(delete Ct[t],delete Tt[t])},Zn=t=>Ct[t],cn=()=>Xn!==1&&Object.keys(Ct).length>0,ot="r-switch",No=t=>{let e=t.filter(r=>De(r)).map(r=>[...r.querySelectorAll("[r-switch]")].map(o=>o.getAttribute(ot))),n=new Set;return e.forEach(r=>{r.forEach(o=>o&&n.add(o))}),[...n]},Fe=(t,e)=>{if(!cn())return;let n=No(e);n.length!==0&&(n.forEach(sn),H(t,()=>{n.forEach(an)}))};var pn=(t,e,n,r)=>{let o=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,r),o.push(i)}Me(e,o)},fn=Symbol("r-if"),er=Symbol("r-else"),tr=t=>t[er]===1,Et=class{constructor(e){d(this,"i");d(this,"I");d(this,"q");d(this,"F");d(this,"K");d(this,"b");d(this,"T");this.i=e,this.I=e.r.l.if,this.q=Ke(e.r.l.if),this.F=e.r.l.else,this.K=e.r.l.elseif,this.b=e.r.l.for,this.T=e.r.l.pre}Ge(e,n){let r=e.parentElement;for(;r!==null&&r!==document.documentElement;){if(r.hasAttribute(n))return!0;r=r.parentElement}return!1}O(e){let n=e.hasAttribute(this.I),r=Ne(e,this.q);for(let o of r)this.x(o);return n}z(e){return e[fn]?!0:(e[fn]=!0,Ne(e,this.q).forEach(n=>n[fn]=!0),!1)}x(e){if(e.hasAttribute(this.T)||this.z(e)||this.Ge(e,this.b))return;let n=e.getAttribute(this.I);if(!n){k(0,this.I,e);return}e.removeAttribute(this.I),this.N(e,n)}D(e,n,r){let o=ze(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${r!=null?r:""}`);s.insertBefore(i,e),Fe(i,o),o.forEach(c=>{q(c)}),e.remove(),n!=="if"&&(e[er]=1);let a=document.createComment(`__end__ :${n}${r!=null?r:""}`);return s.insertBefore(a,i.nextSibling),{nodes:o,parent:s,commentBegin:i,commentEnd:a}}ce(e,n){if(!e)return[];let r=e.nextElementSibling;if(e.hasAttribute(this.F)){e.removeAttribute(this.F);let{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.D(e,"else");return[{mount:()=>{pn(o,this.i,s,a)},unmount:()=>{be(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let o=e.getAttribute(this.K);if(!o)return[];e.removeAttribute(this.K);let{nodes:s,parent:i,commentBegin:a,commentEnd:c}=this.D(e,"elseif",` => ${o} `),p=this.i.h.M(o),f=p.value,u=this.ce(r,n),l=[];H(a,()=>{p.stop();for(let h of l)h();l.length=0});let y=p.subscribe?p.subscribe(n):()=>{};return l.push(y),[{mount:()=>{pn(s,this.i,i,c)},unmount:()=>{be(a,c)},isTrue:()=>!!f()[0],isMounted:!1}].concat(u)}}N(e,n){let r=e.nextElementSibling,{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.D(e,"if",` => ${n} `),c=this.i.h.M(n),p=c.value,f=!1,u=this.i.h,l=u.k(),m=()=>{u.E(l,()=>{if(p()[0])f||(pn(o,this.i,s,a),f=!0),y.forEach(T=>{T.unmount(),T.isMounted=!1});else{be(i,a),f=!1;let T=!1;for(let S of y)!T&&S.isTrue()?(S.isMounted||(S.mount(),S.isMounted=!0),T=!0):(S.unmount(),S.isMounted=!1)}})},y=this.ce(r,m),h=[];H(i,()=>{c.stop();for(let T of h)T();h.length=0}),m();let E=c.subscribe?c.subscribe(m):()=>{};h.push(E)}};var ze=t=>{let e=ue(t)?t.content.childNodes:[t];return Array.from(e).filter(n=>{let r=n==null?void 0:n.tagName;return r!=="SCRIPT"&&r!=="STYLE"})},Me=(t,e)=>{for(let n=0;n<e.length;++n){let r=e[n];r.nodeType===Node.ELEMENT_NODE&&(tr(r)||t.P(r))}},Ne=(t,e)=>{var r;let n=t.querySelectorAll(e);return(r=t.matches)!=null&&r.call(t,e)?[t,...n]:n},ue=t=>t instanceof HTMLTemplateElement,De=t=>t.nodeType===Node.ELEMENT_NODE,st=t=>t.nodeType===Node.ELEMENT_NODE,nr=t=>t instanceof HTMLSlotElement,Te=t=>ue(t)?t.content.childNodes:t.childNodes,be=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let r=n.nextSibling;q(n),n=r}},rr=function(){return this()},Mo=function(t){return this(t)},Lo=()=>{throw new Error("value is readonly.")},ko={get:rr,set:Mo,enumerable:!0,configurable:!1},Io={get:rr,set:Lo,enumerable:!0,configurable:!1},Le=(t,e)=>{Object.defineProperty(t,"value",e?Io:ko)},or=(t,e)=>{if(!t)return!1;if(t.startsWith("["))return t.substring(1,t.length-1);let n=e.length;return t.startsWith(e)?t.substring(n,t.length-n):!1},Ke=t=>`[${CSS.escape(t)}]`,Rt=(t,e)=>(t.startsWith("@")&&(t=e.l.on+":"+t.slice(1)),t.includes("[")&&(t=t.replace(/[[\]]/g,e.l.dynamic)),t),un=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Do=/-(\w)/g,$=un(t=>t&&t.replace(Do,(e,n)=>n?n.toUpperCase():"")),Uo=/\B([A-Z])/g,We=un(t=>t&&t.replace(Uo,"-$1").toLowerCase()),it=un(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var xt={};var vt=t=>{var n,r;let e=(n=bt(t))==null?void 0:n.onMounted;e==null||e.forEach(o=>{o()}),(r=t.mounted)==null||r.call(t)};var ln=Symbol("scope"),St=t=>{try{Gn();let e=t();on(e);let n={context:e,unmount:()=>Oe(e),[ln]:1};return n[ln]=1,n}finally{Jn()}},sr=t=>A(t)?ln in t:!1;var Z=(t,e)=>{var n;(n=Ie(e))==null||n.onUnmounted.push(t)};var wt=Symbol("ref"),Q=Symbol("sref"),Ot=Symbol("raw");var b=t=>t!=null&&t[Q]===1;var F=(t,e,n,r=!0)=>{if(!b(t))throw B(3,"observe");n&&e(t());let s=t(void 0,void 0,0,e);return r&&Z(s,!0),s};var ir={collectRefObj:!0,onBind:(t,e)=>F(e.value,()=>{let r=e.value(),o=e.context,s=r[0];if(A(s))for(let i of Object.entries(s)){let a=i[0],c=i[1],p=o[a];p!==c&&(b(p)?p(c):o[a]=c)}},!0)};var ar={collectRefObj:!0,once:!0,onBind:(t,e)=>{let n=e.value(),r=e.context,o=n[0];if(!A(o))return()=>{};for(let s of Object.entries(o)){let i=s[0],a=s[1],c=r[i];c!==a&&(b(c)?c(a):r[i]=a)}return()=>{}}};var Ge=(t,e)=>{if(t===e)return()=>{};let n=F(t,o=>e(o)),r=F(e,o=>t(o));return e(t()),()=>{n(),r()}};var Je=t=>!!t&&t[Ot]===1;var Be=t=>(t==null?void 0:t[wt])===1;var ae=[],cr=t=>{var e;ae.length!==0&&((e=ae[ae.length-1])==null||e.add(t))},He=t=>{if(!t)return()=>{};let e={stop:()=>{}};return Bo(t,e),Z(()=>e.stop(),!0),e.stop},Bo=(t,e)=>{if(!t)return;let n=[],r=!1,o=()=>{for(let s of n)s();n=[],r=!0};e.stop=o;try{let s=new Set;if(ae.push(s),t(i=>n.push(i)),r)return;for(let i of[...s]){let a=F(i,()=>{o(),He(t)});n.push(a)}}finally{ae.pop()}},At=t=>{let e=ae.length,n=e>0&&ae[e-1];try{return n&&ae.push(null),t()}finally{n&&ae.pop()}},Nt=t=>{try{let e=new Set;return ae.push(e),{value:t(),refs:[...e]}}finally{ae.pop()}};var G=(t,e,n)=>{if(!b(t))return;let r=t;if(r(void 0,e,1),!n)return;let o=r();if(o){if(R(o)||oe(o))for(let s of o)G(s,e,!0);else if(we(o))for(let s of o)G(s[0],e,!0),G(s[1],e,!0);if(A(o))for(let s in o)G(o[s],e,!0)}};function Ho(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var Qe=(t,e,n)=>{n.forEach(function(r){let o=t[r];Ho(e,r,function(...i){let a=o.apply(this,i),c=this[Q];for(let p of c)G(p);return a})})},Mt=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var pr=Array.prototype,mn=Object.create(pr),_o=["push","pop","shift","unshift","splice","sort","reverse"];Qe(pr,mn,_o);var fr=Map.prototype,Lt=Object.create(fr),Po=["set","clear","delete"];Mt(Lt,"Map");Qe(fr,Lt,Po);var ur=Set.prototype,kt=Object.create(ur),Vo=["add","clear","delete"];Mt(kt,"Set");Qe(ur,kt,Vo);var le={},ee=t=>{if(b(t)||Je(t))return t;let e={auto:!0,_value:t},n=c=>A(c)?Q in c?!0:R(c)?(Object.setPrototypeOf(c,mn),!0):oe(c)?(Object.setPrototypeOf(c,kt),!0):we(c)?(Object.setPrototypeOf(c,Lt),!0):!1:!1,r=n(t),o=new Set,s=(c,p)=>{if(le.stack&&le.stack.length){le.stack[le.stack.length-1].add(a);return}o.size!==0&&At(()=>{for(let f of[...o.keys()])o.has(f)&&f(c,p)})},i=c=>{let p=c[Q];p||(c[Q]=p=new Set),p.add(a)},a=(...c)=>{if(!(2 in c)){let f=c[0],u=c[1];return 0 in c?e._value===f||b(f)&&(f=f(),e._value===f)?f:(n(f)&&i(f),e._value=f,e.auto&&s(f,u),e._value):(cr(a),e._value)}switch(c[2]){case 0:{let f=c[3];if(!f)return()=>{};let u=l=>{o.delete(l)};return o.add(f),()=>{u(f)}}case 1:{let f=c[1],u=e._value;s(u,f);break}case 2:return o.size;case 3:{e.auto=!1;break}case 4:e.auto=!0}return e._value};return a[Q]=1,Le(a,!1),r&&i(t),a};var me=t=>{if(Je(t))return t;let e;if(b(t)?(e=t,t=e()):e=ee(t),t instanceof Node||t instanceof Date||t instanceof RegExp||t instanceof Promise||t instanceof Error)return e;if(e[wt]=1,R(t)){let n=t.length;for(let r=0;r<n;++r){let o=t[r];Be(o)||(t[r]=me(o))}return e}if(!A(t))return e;for(let n of Object.entries(t)){let r=n[1];if(Be(r))continue;let o=n[0];nt(o)||(t[o]=null,t[o]=me(r))}return e};var lr=Symbol("modelBridge"),It=()=>{},jo=t=>!!(t!=null&&t[lr]),$o=t=>{t[lr]=1},qo=t=>{let e=me(t());return $o(e),e},mr={collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{if(!r)return It;let i=$(r),a,c,p=It,f=()=>{p(),p=It,a=void 0,c=void 0},u=()=>{p(),p=It},l=(y,h)=>{a!==y&&(u(),p=Ge(y,h),a=y)},m=F(e.value,()=>{var E;let y=(E=e.refs[0])!=null?E:e.value()[0],h=e.context,C=h[i];if(!b(y)){if(c&&C===c){c(y);return}if(f(),b(C)){C(y);return}h[i]=y;return}if(jo(y)){if(C===y)return;b(C)?l(y,C):h[i]=y;return}c||(c=qo(y)),h[i]=c,l(y,c)},!0);return()=>{p(),m()}}};var Dt=class{constructor(e){d(this,"i");d(this,"le");d(this,"ue","");d(this,"fe",-1);this.i=e,this.le=e.r.l.inherit}O(e){this.Je(e)}Qe(e){if(this.fe!==e.size){let n=[...e.keys()];this.ue=n.concat(n.map(We)).join(","),this.fe=e.size}return this.ue}Xe(e){var n;for(let r=0;r<e.length;++r){let o=(n=e[r])==null?void 0:n.components;if(o)for(let s in o)return!0}return!1}Je(e){var l;let n=this.i,r=n.h,o=n.r.me,s=n.r.de;if(o.size===0&&!this.Xe(r.u))return;let i=r.ye(),a=r.Ye(),c=this.Qe(o),p=[...c?[c]:[],...a,...a.map(We)].join(",");if(W(p))return;let f=e.querySelectorAll(p),u=(l=e.matches)!=null&&l.call(e,p)?[e,...f]:f;for(let m of u){if(m.hasAttribute(n.T))continue;let y=m.parentNode;if(!y)continue;let h=m.nextSibling,C=$(m.tagName).toUpperCase(),E=i[C],T=E!=null?E:s.get(C);if(!T)continue;let S=T.template;if(!S)continue;let D=m.parentElement;if(!D)continue;let z=new Comment(" begin component: "+m.tagName),U=new Comment(" end component: "+m.tagName);D.insertBefore(z,m),m.remove();let ce=n.r.l.props,xe=n.r.l.propsOnce,K=n.r.l.bind,de=(g,N)=>{let x={},_=g.hasAttribute(ce),L=g.hasAttribute(xe);return r.E(N,()=>{r.v(x),_&&n.x(ir,g,ce),L&&n.x(ar,g,xe);let v=T.props;if(!v||v.length===0)return;v=v.map($);let P=new Map(v.map(Y=>[Y.toLowerCase(),Y]));for(let Y of v.concat(v.map(We))){let ge=g.getAttribute(Y);ge!==null&&(x[$(Y)]=ge,g.removeAttribute(Y))}let Se=n.W.he(g,!1);for(let[Y,ge]of Se.entries()){let[Zt,_n]=ge.G;if(!_n)continue;let Pn=P.get($(_n).toLowerCase());Pn&&(Zt!=="."&&Zt!==":"&&Zt!==K||n.x(mr,g,Y,!0,Pn,ge.J))}}),x},re=[...r.k()],tt=()=>{var _;let g=de(m,re),N=new qe(g,m,re,z,U),x=St(()=>{var L;return(L=T.context(N))!=null?L:{}}).context;if(N.autoProps){for(let[L,v]of Object.entries(g))if(L in x){let P=x[L];if(P===v)continue;N.entangle&&b(P)&&b(v)&&H(z,Ge(v,P))}else x[L]=v;(_=N.onAutoPropsAssigned)==null||_.call(N)}return{componentCtx:x,head:N}},{componentCtx:ve,head:ft}=tt(),w=[...Te(S)],ut=w.length,M=m.childNodes.length===0,J=g=>{let N=g.parentElement;if(M){for(let v of[...g.childNodes])N.insertBefore(v,g);return}let x=g.name;W(x)&&(x=g.getAttributeNames().filter(v=>v.startsWith("#"))[0],W(x)?x="default":x=x.substring(1));let _=m.querySelector(`template[name='${x}'], template[\\#${x}]`);!_&&x==="default"&&(_=m.querySelector("template:not([name])"),_&&_.getAttributeNames().filter(v=>v.startsWith("#")).length>0&&(_=null));let L=v=>{ft.enableSwitch&&r.E(re,()=>{r.v(ve);let P=de(g,r.k());r.E(re,()=>{r.v(P);let Se=r.k(),Y=Yn(Se);for(let ge of v)De(ge)&&(ge.setAttribute(ot,Y),sn(Y),H(ge,()=>{an(Y)}))})})};if(_){let v=[...Te(_)];for(let P of v)N.insertBefore(P,g);L(v)}else{if(x!=="default"){for(let P of[...Te(g)])N.insertBefore(P,g);return}let v=[...Te(m)].filter(P=>!ue(P));for(let P of v)N.insertBefore(P,g);L(v)}},X=g=>{if(!De(g))return;let N=g.querySelectorAll("slot");if(nr(g)){J(g),g.remove();return}for(let x of N)J(x),x.remove()};(()=>{for(let g=0;g<ut;++g)w[g]=w[g].cloneNode(!0),y.insertBefore(w[g],h),X(w[g])})(),D.insertBefore(U,h);let he=()=>{if(!T.inheritAttrs)return;let g=w.filter(x=>x.nodeType===Node.ELEMENT_NODE);g.length>1&&(g=g.filter(x=>x.hasAttribute(this.le)));let N=g[0];if(N)for(let x of m.getAttributeNames()){if(x===ce||x===xe)continue;let _=m.getAttribute(x);if(x==="class")N.classList.add(..._.split(" "));else if(x==="style"){let L=N.style,v=m.style;for(let P of v)L.setProperty(P,v.getPropertyValue(P))}else N.setAttribute(Rt(x,n.r),_)}},O=()=>{for(let g of m.getAttributeNames())!g.startsWith("@")&&!g.startsWith(n.r.l.on)&&m.removeAttribute(g)},ye=()=>{he(),O(),r.v(ve),n.ge(m,!1),ve.$emit=ft.emit,Me(n,w),H(m,()=>{Oe(ve)}),H(z,()=>{pe(m)}),vt(ve)};r.E(re,ye)}}};var dn=class{constructor(e,n){d(this,"G");d(this,"J");d(this,"be",[]);this.G=e,this.J=n}},Ut=class{constructor(e){d(this,"i");d(this,"Te");d(this,"xe");d(this,"Q");var r;this.i=e,this.Te=e.r.Ze(),this.Q=new Map;let n=new Map;for(let o of this.Te){let s=(r=o[0])!=null?r:"",i=n.get(s);i?i.push(o):n.set(s,[o])}this.xe=n}et(e){let n=this.Q.get(e);if(n)return n;let r=e,o=r.startsWith(".");o&&(r=":"+r.slice(1));let s=r.indexOf("."),a=(s<0?r:r.substring(0,s)).split(/[:@]/);W(a[0])&&(a[0]=o?".":r[0]);let c=s>=0?r.slice(s+1).split("."):[],p=!1,f=!1;for(let l=0;l<c.length;++l){let m=c[l];if(!p&&m==="camel"?p=!0:!f&&m==="prop"&&(f=!0),p&&f)break}p&&(a[a.length-1]=$(a[a.length-1])),f&&(a[0]=".");let u={terms:a,flags:c};return this.Q.set(e,u),u}he(e,n){let r=new Map;if(!st(e))return r;let o=this.xe,s=(c,p)=>{var u;let f=o.get((u=p[0])!=null?u:"");if(f)for(let l=0;l<f.length;++l){if(!p.startsWith(f[l]))continue;let m=r.get(p);if(!m){let y=this.et(p);m=new dn(y.terms,y.flags),r.set(p,m)}m.be.push(c);return}},i=c=>{var u,l;let p=c.attributes;if(!p||p.length===0)return;let f=p;for(let m=0;m<p.length;++m){let y=(l=(u=f[m])!=null?u:p.item(m))==null?void 0:l.name;y&&s(c,y)}};if(i(e),!n)return r;let a=e.querySelectorAll("*");for(let c of a)i(c);return r}};var Fo=(t,e)=>{for(let n of t){let r=n.cloneNode(!0);e.appendChild(r)}},Bt=class{constructor(e){d(this,"i");d(this,"L");d(this,"Re");this.i=e,this.L=e.r.l.is,this.Re=Ke(this.L)+", [is]"}O(e){let n=e.hasAttribute(this.L),r=Ne(e,this.Re);for(let o of r)this.x(o);return n}x(e){let n=e.getAttribute(this.L);if(!n){if(n=e.getAttribute("is"),!n)return;if(!n.startsWith("regor:")){if(!n.startsWith("r-"))return;let r=n.slice(2).trim().toLowerCase();if(!r)return;let o=e.parentNode;if(!o)return;let s=document.createElement(r);for(let i of e.getAttributeNames())i!=="is"&&s.setAttribute(i,e.getAttribute(i));for(;e.firstChild;)s.appendChild(e.firstChild);o.insertBefore(s,e),e.remove(),this.i.P(s);return}n=`'${n.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.L),this.N(e,n)}D(e,n){let r=ze(e),o=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);o.insertBefore(s,e),Fe(s,r),r.forEach(a=>{q(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${n!=null?n:""}`);return o.insertBefore(i,s.nextSibling),{nodes:r,parent:o,commentBegin:s,commentEnd:i}}N(e,n){let{nodes:r,parent:o,commentBegin:s,commentEnd:i}=this.D(e,` => ${n} `),a=this.i.h.M(n),c=a.value,p=this.i.h,f=p.k(),u={name:""},l=ue(e)?r:[...r[0].childNodes],m=()=>{p.E(f,()=>{var S;let E=c()[0];if(A(E)&&(E.name?E=E.name:E=(S=Object.entries(p.ye()).filter(D=>D[1]===E)[0])==null?void 0:S[0]),!j(E)||W(E)){be(s,i);return}if(u.name===E)return;be(s,i);let T=document.createElement(E);for(let D of e.getAttributeNames())D!==this.L&&T.setAttribute(D,e.getAttribute(D));Fo(l,T),o.insertBefore(T,i),this.i.P(T),u.name=E})},y=[];H(s,()=>{a.stop();for(let E of y)E();y.length=0}),m();let C=a.subscribe?a.subscribe(m):()=>{};y.push(C)}};var I=t=>{let e=t;return e!=null&&e[Q]===1?e():e};var at=class{constructor(e){d(this,"R",[]);d(this,"B",new Map);d(this,"X");this.X=e}get S(){return this.R.length}Y(e){let n=this.X(e.value);n!==void 0&&this.B.set(n,e)}Z(e){var r;let n=this.X((r=this.R[e])==null?void 0:r.value);n!==void 0&&this.B.delete(n)}static tt(e,n){return{items:[],index:e,value:n,order:-1}}v(e){e.order=this.S,this.R.push(e),this.Y(e)}nt(e,n){let r=this.S;for(let o=e;o<r;++o)this.R[o].order=o+1;n.order=e,this.R.splice(e,0,n),this.Y(n)}V(e){return this.R[e]}ee(e,n){this.Z(e),this.R[e]=n,this.Y(n),n.order=e}Ee(e){this.Z(e),this.R.splice(e,1);let n=this.S;for(let r=e;r<n;++r)this.R[r].order=r}Ce(e){let n=this.S;for(let r=e;r<n;++r)this.Z(r);this.R.splice(e)}Vt(e){return this.B.has(e)}rt(e){var r;let n=this.B.get(e);return(r=n==null?void 0:n.order)!=null?r:-1}};var hn=Symbol("r-for"),zo=t=>-1,_t=class _t{constructor(e){d(this,"i");d(this,"b");d(this,"te");d(this,"T");this.i=e,this.b=e.r.l.for,this.te=Ke(this.b),this.T=e.r.l.pre}O(e){let n=e.hasAttribute(this.b),r=Ne(e,this.te);for(let o of r)this.ot(o);return n}z(e){return e[hn]?!0:(e[hn]=!0,Ne(e,this.te).forEach(n=>n[hn]=!0),!1)}ot(e){if(e.hasAttribute(this.T)||this.z(e))return;let n=e.getAttribute(this.b);if(!n){k(0,this.b,e);return}e.removeAttribute(this.b),this.st(e,n)}ve(e){return ie(e)?[]:(V(e)&&(e=e()),Symbol.iterator in Object(e)?e:typeof e=="number"?(r=>({*[Symbol.iterator](){for(let o=1;o<=r;o++)yield o}}))(e):Object.entries(e))}st(e,n){var ut;let r=this.it(n);if(!(r!=null&&r.list)){k(1,this.b,n,e);return}let o=this.i.r.l.key,s=this.i.r.l.keyBind,i=(ut=e.getAttribute(o))!=null?ut:e.getAttribute(s);e.removeAttribute(o),e.removeAttribute(s);let a=ze(e),c=e.parentNode;if(!c)return;let p=`${this.b} => ${n}`,f=new Comment(`__begin__ ${p}`);c.insertBefore(f,e),Fe(f,a),a.forEach(M=>{q(M)}),e.remove();let u=new Comment(`__end__ ${p}`);c.insertBefore(u,f.nextSibling);let l=this.i,m=l.h,y=m.k(),C=y.length===1?[void 0,y[0]]:void 0,E=this.at(i),T=(M,J)=>E(M)===E(J),S=(M,J,X)=>{let te=r.createContext(J,M),he=at.tt(te.index,J),O=()=>{var x,_;let ye=(_=(x=u.parentNode)!=null?x:f.parentNode)!=null?_:c,g=X.previousSibling,N=[];for(let L=0;L<a.length;++L){let v=a[L].cloneNode(!0);ye.insertBefore(v,X),N.push(v)}for(Me(l,N),g=g.nextSibling;g!==X;)he.items.push(g),g=g.nextSibling};return C?(C[0]=te.ctx,m.E(C,O)):m.E(y,()=>{m.v(te.ctx),O()}),he},D=(M,J)=>{let X=w.V(M).items,te=X[X.length-1].nextSibling;for(let he of X)q(he);w.ee(M,S(M,J,te))},z=(M,J)=>{w.v(S(M,J,u))},U=M=>{for(let J of w.V(M).items)q(J)},ce=M=>{let J=w.S;for(let X=M;X<J;++X)w.V(X).index(X)},xe=M=>{let J=f.parentNode,X=u.parentNode;if(!J||!X)return;let te=w.S;V(M)&&(M=M());let he=I(M[0]);if(R(he)&&he.length===0){be(f,u),w.Ce(0);return}let O=0,ye=Number.MAX_SAFE_INTEGER,g=te,N=this.i.r.forGrowThreshold,x=()=>w.S<g+N;for(let L of this.ve(M[0])){let v=()=>{if(O<te){let P=w.V(O++);if(T(P.value,L))return;let Se=w.rt(E(L));if(Se>=O&&Se-O<10){if(--O,ye=Math.min(ye,O),U(O),w.Ee(O),--te,Se>O+1)for(let Y=O;Y<Se-1&&Y<te&&!T(w.V(O).value,L);)++Y,U(O),w.Ee(O),--te;v();return}x()?(w.nt(O-1,S(O,L,w.V(O-1).items[0])),ye=Math.min(ye,O-1),++te):D(O-1,L)}else z(O++,L)};v()}let _=O;for(te=w.S;O<te;)U(O++);w.Ce(_),ce(ye)},K=()=>{ve=re.subscribe?re.subscribe(xe):()=>{}},de=()=>{re.stop(),ve()},re=m.M(r.list),tt=re.value,ve,ft=0,w=new at(E);for(let M of this.ve(tt()[0]))w.v(S(ft++,M,u));H(f,de),K()}it(e){var c,p;let n=_t.pt.exec(e);if(!n)return;let r=(n[1]+((c=n[2])!=null?c:"")).split(",").map(f=>f.trim()),o=r.length>1?r.length-1:-1,s=o!==-1&&(r[o]==="index"||(p=r[o])!=null&&p.startsWith("#"))?r[o]:"";s&&r.splice(o,1);let i=n[3];if(!i||r.length===0)return;let a=/[{[]/.test(e);return{list:i,createContext:(f,u)=>{let l={},m=I(f);if(!a&&r.length===1)l[r[0]]=f;else if(R(m)){let h=0;for(let C of r)l[C]=m[h++]}else for(let h of r)l[h]=m[h];let y={ctx:l,index:zo};return s&&(y.index=l[s.startsWith("#")?s.substring(1):s]=ee(u)),y}}}at(e){if(!e)return r=>r;let n=e.trim();if(!n)return r=>r;if(n.includes(".")){let r=this.ct(n),o=r.length>1?r.slice(1):void 0;return s=>{let i=I(s),a=this.Se(i,r);return a!==void 0||!o?a:this.Se(i,o)}}return r=>{var o;return I((o=I(r))==null?void 0:o[n])}}ct(e){return e.split(".").filter(n=>n.length>0)}Se(e,n){var o;let r=e;for(let s of n)r=(o=I(r))==null?void 0:o[s];return I(r)}};d(_t,"pt",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var Ht=_t;var Pt=class{constructor(e){d(this,"h");d(this,"we");d(this,"Ae");d(this,"Oe");d(this,"Ne");d(this,"W");d(this,"r");d(this,"T");d(this,"Me");this.h=e,this.r=e.r,this.Ae=new Ht(this),this.we=new Et(this),this.Oe=new Bt(this),this.Ne=new Dt(this),this.W=new Ut(this),this.T=this.r.l.pre,this.Me=this.r.l.dynamic}lt(e){let n=ue(e)?[e]:e.querySelectorAll("template");for(let r of n){if(r.hasAttribute(this.T))continue;let o=r.parentNode;if(!o)continue;let s=r.nextSibling;if(r.remove(),!r.content)continue;let i=[...r.content.childNodes];for(let a of i)o.insertBefore(a,s);Me(this,i)}}P(e){e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.T)||this.we.O(e)||this.Ae.O(e)||this.Oe.O(e)||(this.Ne.O(e),this.lt(e),this.ge(e,!0))}ge(e,n){var s;let r=this.W.he(e,n),o=this.r._;for(let[i,a]of r.entries()){let[c,p]=a.G,f=(s=o[i])!=null?s:o[c];if(!f){console.error("directive not found:",c);continue}let u=a.be;for(let l=0;l<u.length;++l){let m=u[l];this.x(f,m,i,!1,p,a.J)}}}x(e,n,r,o,s,i){if(n.hasAttribute(this.T))return;let a=n.getAttribute(r);n.removeAttribute(r);let c=p=>{let f=p;for(;f;){let u=f.getAttribute(ot);if(u)return u;f=f.parentElement}return null};if(cn()){let p=c(n);if(p){this.h.E(Zn(p),()=>{this.N(e,n,a,s,i)});return}}this.N(e,n,a,s,i)}ut(e,n,r){if(e!==xt)return!1;if(W(r))return!0;let o=document.querySelector(r);if(o){let s=n.parentElement;if(!s)return!0;let i=new Comment(`teleported => '${r}'`);s.insertBefore(i,n),n.teleportedFrom=i,i.teleportedTo=n,H(i,()=>{q(n)}),o.appendChild(n)}return!0}N(e,n,r,o,s){var C;if(n.nodeType!==Node.ELEMENT_NODE||r==null||this.ut(e,n,r))return;let i=this.h.M(r,e.isLazy,e.isLazyKey,e.collectRefObj,e.once),a=[],c=!!e.onChange;H(n,()=>{i.stop(),u==null||u.stop();for(let E=0;E<a.length;++E)a[E]();a.length=0});let f=or(o,this.Me),u;f&&(u=this.h.M($(f),void 0,void 0,void 0,e.once));let l=u,m=l!=null,y=i.value(),h=m?u.value()[0]:o;if(!e.once&&c){let E=i.subscribe?i.subscribe(()=>{var U;let T=y,S=h,D=i.value(),z=m?l.value()[0]:o;y=D,h=z,(U=e.onChange)==null||U.call(e,n,D,T,z,S,s)}):()=>{};if(a.push(E),l){let T=l.subscribe?l.subscribe(()=>{var U;let S=h,D=i.value(),z=l.value()[0];y=D,h=z,(U=e.onChange)==null||U.call(e,n,D,S,z,S,s)}):()=>{};a.push(T)}}e.onBind&&a.push(e.onBind(n,i,r,o,u,s)),(C=e.onChange)==null||C.call(e,n,y,void 0,h,void 0,s)}};var dr="http://www.w3.org/1999/xlink",Ko={itemscope:2,allowfullscreen:2,formnovalidate:2,ismap:2,nomodule:2,novalidate:2,readonly:2,async:1,autofocus:1,autoplay:1,controls:1,default:1,defer:1,disabled:1,hidden:1,inert:1,loop:1,open:1,required:1,reversed:1,scoped:1,seamless:1,checked:1,muted:1,multiple:1,selected:1};function Wo(t){return!!t||t===""}var yn={onChange:(t,e,n,r,o,s)=>{var a;if(r){s&&s.includes("camel")&&(r=$(r)),Vt(t,r,e[0],o);return}let i=e.length;for(let c=0;c<i;++c){let p=e[c];if(R(p)){let f=(a=n==null?void 0:n[c])==null?void 0:a[0],u=p[0],l=p[1];Vt(t,u,l,f)}else if(A(p))for(let f of Object.entries(p)){let u=f[0],l=f[1],m=n==null?void 0:n[c],y=m&&u in m?u:void 0;Vt(t,u,l,y)}else{let f=n==null?void 0:n[c],u=e[c++],l=e[c];Vt(t,u,l,f)}}}},Vt=(t,e,n,r)=>{if(r&&r!==e&&t.removeAttribute(r),ie(e)){k(3,"r-bind",t);return}if(!j(e)){k(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){ie(n)?t.removeAttributeNS(dr,e.slice(6,e.length)):t.setAttributeNS(dr,e,n);return}let o=e in Ko;ie(n)||o&&!Wo(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)};var gn={onChange:(t,e,n)=>{let r=e.length;for(let o=0;o<r;++o){let s=e[o],i=n==null?void 0:n[o];if(R(s)){let a=s.length;for(let c=0;c<a;++c)hr(t,s[c],i==null?void 0:i[c])}else hr(t,s,i)}}},hr=(t,e,n)=>{let r=t.classList,o=j(e),s=j(n);if(e&&!o){if(n&&!s)for(let i in n)(!(i in e)||!e[i])&&r.remove(i);for(let i in e)e[i]&&r.add(i)}else o?n!==e&&(s&&r.remove(...n.trim().split(/\s+/)),r.add(...e.trim().split(/\s+/))):n&&s&&r.remove(...n.trim().split(/\s+/))};var yr={onChange:(t,e)=>{let[n,r]=e;V(r)?r(t,n):t.innerHTML=n==null?void 0:n.toString()}};function Go(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Ce(t[r],e[r]);return n}function Ce(t,e){if(t===e)return!0;let n=nn(t),r=nn(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=nt(t),r=nt(e),n||r)return t===e;if(n=R(t),r=R(e),n||r)return n&&r?Go(t,e):!1;if(n=A(t),r=A(e),n||r){if(!n||!r)return!1;let o=Object.keys(t).length,s=Object.keys(e).length;if(o!==s)return!1;for(let i in t){let a=Object.prototype.hasOwnProperty.call(t,i),c=Object.prototype.hasOwnProperty.call(e,i);if(a&&!c||!Ce(t[i],e[i]))return!1}return!0}return String(t)===String(e)}function jt(t,e){return t.findIndex(n=>Ce(n,e))}var gr=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var $t=t=>{if(!b(t))throw B(3,"pause");t(void 0,void 0,3)};var qt=t=>{if(!b(t))throw B(3,"resume");t(void 0,void 0,4)};var Tr={onChange:(t,e)=>{Jo(t,e[0])},onBind:(t,e,n,r,o,s)=>Qo(t,e,s)},Jo=(t,e)=>{let n=xr(t);if(n&&Cr(t))R(e)?e=jt(e,Ee(t))>-1:oe(e)?e=e.has(Ee(t)):e=ns(t,e),t.checked=e;else if(n&&Er(t))t.checked=Ce(e,Ee(t));else if(n||vr(t))Rr(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(Sr(t)){let r=t.options,o=r.length,s=t.multiple;for(let i=0;i<o;i++){let a=r[i],c=Ee(a);if(s)R(e)?a.selected=jt(e,c)>-1:a.selected=e.has(c);else if(Ce(Ee(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else k(7,t)},ct=t=>(b(t)&&(t=t()),V(t)&&(t=t()),t?j(t)?{trim:t.includes("trim"),lazy:t.includes("lazy"),number:t.includes("number"),int:t.includes("int")}:{trim:!!t.trim,lazy:!!t.lazy,number:!!t.number,int:!!t.int}:{trim:!1,lazy:!1,number:!1,int:!1}),Cr=t=>t.type==="checkbox",Er=t=>t.type==="radio",Rr=t=>t.type==="number"||t.type==="range",xr=t=>t.tagName==="INPUT",vr=t=>t.tagName==="TEXTAREA",Sr=t=>t.tagName==="SELECT",Qo=(t,e,n)=>{let r=e.value,o=ct(n==null?void 0:n.join(",")),s=ct(r()[1]),i={int:o.int||s.int,lazy:o.lazy||s.lazy,number:o.number||s.number,trim:o.trim||s.trim};if(!e.refs[0])return k(8,t),()=>{};let a=()=>e.refs[0],c=xr(t);return c&&Cr(t)?Yo(t,a):c&&Er(t)?rs(t,a):c||vr(t)?Xo(t,i,a,r):Sr(t)?os(t,a,r):(k(7,t),()=>{})},br=/[.,' ·٫]/,Xo=(t,e,n,r)=>{let s=e.lazy?"change":"input",i=Rr(t),a=()=>{!e.trim&&!ct(r()[1]).trim||(t.value=t.value.trim())},c=l=>{let m=l.target;m.composing=1},p=l=>{let m=l.target;m.composing&&(m.composing=0,m.dispatchEvent(new Event(s)))},f=()=>{t.removeEventListener(s,u),t.removeEventListener("change",a),t.removeEventListener("compositionstart",c),t.removeEventListener("compositionend",p),t.removeEventListener("change",p)},u=l=>{let m=n();if(!m)return;let y=l.target;if(!y||y.composing)return;let h=y.value,C=ct(r()[1]);if(i||C.number||C.int){if(C.int)h=parseInt(h);else{if(br.test(h[h.length-1])&&h.split(br).length===2){if(h+="0",h=parseFloat(h),isNaN(h))h="";else if(m()===h)return}h=parseFloat(h)}isNaN(h)&&(h=""),t.value=h}else C.trim&&(h=h.trim());m(h)};return t.addEventListener(s,u),t.addEventListener("change",a),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",p),t.addEventListener("change",p),f},Yo=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=e();if(!s)return;let i=Ee(t),a=t.checked,c=s();if(R(c)){let p=jt(c,i),f=p!==-1;a&&!f?c.push(i):!a&&f&&c.splice(p,1)}else oe(c)?a?c.add(i):c.delete(i):s(ts(t,a))};return t.addEventListener(n,o),r},Ee=t=>"_value"in t?t._value:t.value,wr="trueValue",Zo="falseValue",Or="true-value",es="false-value",ts=(t,e)=>{let n=e?wr:Zo;if(n in t)return t[n];let r=e?Or:es;return t.hasAttribute(r)?t.getAttribute(r):e},ns=(t,e)=>{if(wr in t)return Ce(e,t.trueValue);let r=Or;return t.hasAttribute(r)?Ce(e,t.getAttribute(r)):Ce(e,!0)},rs=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=e();if(!s)return;let i=Ee(t);s(i)};return t.addEventListener(n,o),r},os=(t,e,n)=>{let r="change",o=()=>{t.removeEventListener(r,s)},s=()=>{let i=e();if(!i)return;let c=ct(n()[1]).number,p=Array.prototype.filter.call(t.options,f=>f.selected).map(f=>c?gr(Ee(f)):Ee(f));if(t.multiple){let f=i();try{if($t(i),oe(f)){f.clear();for(let u of p)f.add(u)}else R(f)?(f.splice(0),f.push(...p)):i(p)}finally{qt(i),G(i)}}else i(p[0])};return t.addEventListener(r,s),o};var ss=["stop","prevent","capture","self","once","left","right","middle","passive"],is=t=>{let e={};if(W(t))return;let n=t.split(",");for(let r of ss)e[r]=n.includes(r);return e},Tn={isLazy:(t,e)=>e===-1&&t%2===0,isLazyKey:(t,e)=>e===0&&!t.endsWith("_flags"),once:!1,collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{var f,u;if(o){let l=e.value(),m=I(o.value()[0]);return j(m)?bn(t,$(m),()=>e.value()[0],(f=s==null?void 0:s.join(","))!=null?f:l[1]):()=>{}}else if(r){let l=e.value();return bn(t,$(r),()=>e.value()[0],(u=s==null?void 0:s.join(","))!=null?u:l[1])}let i=[],a=()=>{i.forEach(l=>l())},c=e.value(),p=c.length;for(let l=0;l<p;++l){let m=c[l];if(V(m)&&(m=m()),A(m))for(let y of Object.entries(m)){let h=y[0],C=()=>{let T=e.value()[l];return V(T)&&(T=T()),T=T[h],V(T)&&(T=T()),T},E=m[h+"_flags"];i.push(bn(t,h,C,E))}else k(2,"r-on",t)}return a}},as=(t,e)=>{if(t.startsWith("keydown")||t.startsWith("keyup")||t.startsWith("keypress")){e!=null||(e="");let n=t.split(".").concat(e.split(","));t=n[0];let r=n[1],o=n.includes("ctrl"),s=n.includes("shift"),i=n.includes("alt"),a=n.includes("meta"),c=p=>!(o&&!p.ctrlKey||s&&!p.shiftKey||i&&!p.altKey||a&&!p.metaKey);return r?[t,p=>c(p)?p.key.toUpperCase()===r.toUpperCase():!1]:[t,c]}return[t,n=>!0]},bn=(t,e,n,r)=>{if(W(e))return k(5,"r-on",t),()=>{};let o=is(r),s=o?{capture:o.capture,passive:o.passive,once:o.once}:void 0,i;[e,i]=as(e,r);let a=f=>{if(!i(f)||!n&&e==="submit"&&(o!=null&&o.prevent))return;let u=n(f);V(u)&&(u=u(f)),V(u)&&u(f)},c=()=>{t.removeEventListener(e,p,s)},p=f=>{if(!o){a(f);return}try{if(o.left&&f.button!==0||o.middle&&f.button!==1||o.right&&f.button!==2||o.self&&f.target!==t)return;o.stop&&f.stopPropagation(),o.prevent&&f.preventDefault(),a(f)}finally{o.once&&c()}};return t.addEventListener(e,p,s),c};var Ar={onChange:(t,e,n,r,o,s)=>{if(r){s&&s.includes("camel")&&(r=$(r)),Xe(t,r,e[0]);return}let i=e.length;for(let a=0;a<i;++a){let c=e[a];if(R(c)){let p=c[0],f=c[1];Xe(t,p,f)}else if(A(c))for(let p of Object.entries(c)){let f=p[0],u=p[1];Xe(t,f,u)}else{let p=e[a++],f=e[a];Xe(t,p,f)}}}};function cs(t){return!!t||t===""}var Xe=(t,e,n)=>{if(ie(e)){k(3,":prop",t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(pe),1),t[e]=n!=null?n:"";return}let r=t.tagName;if(e==="value"&&r!=="PROGRESS"&&!r.includes("-")){t._value=n;let s=r==="OPTION"?t.getAttribute("value"):t.value,i=n!=null?n:"";s!==i&&(t.value=i),n==null&&t.removeAttribute(e);return}let o=!1;if(n===""||n==null){let s=typeof t[e];s==="boolean"?n=cs(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{t[e]=n}catch(s){o||k(4,e,r,n,s)}o&&t.removeAttribute(e)};var Nr={once:!0,onBind:(t,e,n)=>{let r=e.value()[0],o=R(r),s=e.refs[0];return o?r.push(t):s?s==null||s(t):e.context[n]=t,()=>{if(o){let i=r.indexOf(t);i!==-1&&r.splice(i,1)}else s==null||s(null)}}};var Mr={onChange:(t,e)=>{let n=Ae(t).data,r=n._ord;Kn(r)&&(r=n._ord=t.style.display),!!e[0]?t.style.display=r:t.style.display="none"}};var Rn={onChange:(t,e,n)=>{let r=e.length;for(let o=0;o<r;++o){let s=e[o],i=n==null?void 0:n[o];if(R(s)){let a=s.length;for(let c=0;c<a;++c)Lr(t,s[c],i==null?void 0:i[c])}else Lr(t,s,i)}}},Lr=(t,e,n)=>{let r=t.style,o=j(e);if(e&&!o){if(n&&!j(n))for(let s in n)e[s]==null&&En(r,s,"");for(let s in e)En(r,s,e[s])}else{let s=r.display;if(o?n!==e&&(r.cssText=e):n&&t.removeAttribute("style"),"_ord"in Ae(t).data)return;r.display=s}},kr=/\s*!important$/;function En(t,e,n){if(R(n))n.forEach(r=>{En(t,e,r)});else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{let r=ps(t,e);kr.test(n)?t.setProperty(We(r),n.replace(kr,""),"important"):t[r]=n}}var Ir=["Webkit","Moz","ms"],Cn={};function ps(t,e){let n=Cn[e];if(n)return n;let r=$(e);if(r!=="filter"&&r in t)return Cn[e]=r;r=it(r);for(let o=0;o<Ir.length;o++){let s=Ir[o]+r;if(s in t)return Cn[e]=s}return e}var ne=t=>Dr(I(t)),Dr=(t,e=new WeakMap)=>{if(!t||!A(t))return t;if(R(t))return t.map(ne);if(oe(t)){let r=new Set;for(let o of t.keys())r.add(ne(o));return r}if(we(t)){let r=new Map;for(let o of t)r.set(ne(o[0]),ne(o[1]));return r}if(e.has(t))return I(e.get(t));let n=dt({},t);e.set(t,n);for(let r of Object.entries(n))n[r[0]]=Dr(I(r[1]),e);return n};var Ur={onChange:(t,e)=>{var r;let n=e[0];t.textContent=oe(n)?JSON.stringify(ne([...n])):we(n)?JSON.stringify(ne([...n])):A(n)?JSON.stringify(ne(n)):(r=n==null?void 0:n.toString())!=null?r:""}};var Br={onChange:(t,e)=>{Xe(t,"value",e[0])}};var ke=class ke{constructor(e){d(this,"_",{});d(this,"l",{});d(this,"Ze",()=>Object.keys(this._).filter(e=>e.length===1||!e.startsWith(":")));d(this,"me",new Map);d(this,"de",new Map);d(this,"forGrowThreshold",10);d(this,"globalContext");d(this,"useInterpolation",!0);if(this.setDirectives("r-"),e){this.globalContext=e;return}this.globalContext=this.mt()}static getDefault(){var e;return(e=ke.ke)!=null?e:ke.ke=new ke}mt(){let e={},n=globalThis;for(let r of ke.ft.split(","))e[r]=n[r];return e.ref=me,e.sref=ee,e.flatten=ne,e}addComponent(...e){for(let n of e){if(!n.defaultName){rt.warning("Registered component's default name is not defined",n);continue}this.me.set(it(n.defaultName),n),this.de.set(it(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this._={".":Ar,":":yn,"@":Tn,[`${e}on`]:Tn,[`${e}bind`]:yn,[`${e}html`]:yr,[`${e}text`]:Ur,[`${e}show`]:Mr,[`${e}model`]:Tr,":style":Rn,[`${e}bind:style`]:Rn,":class":gn,[`${e}bind:class`]:gn,":ref":Nr,":value":Br,[`${e}teleport`]:xt},this.l={for:`${e}for`,if:`${e}if`,else:`${e}else`,elseif:`${e}else-if`,pre:`${e}pre`,inherit:`${e}inherit`,text:`${e}text`,props:":props",propsOnce:":props-once",bind:`${e}bind`,on:`${e}on`,keyBind:":key",key:"key",is:":is",teleport:`${e}teleport`,dynamic:"_d_"}}updateDirectives(e){e(this._,this.l)}};d(ke,"ke"),d(ke,"ft","Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");var se=ke;var Ft=(t,e)=>{if(!t)return;let r=(e!=null?e:se.getDefault()).l,o=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of us(t,r.pre,s))fs(i,r.text,o,s)},fs=(t,e,n,r)=>{var c;let o=t.textContent;if(!o)return;let s=n,i=o.split(s);if(i.length<=1)return;if(((c=t.parentElement)==null?void 0:c.childNodes.length)===1&&i.length===3){let p=i[1],f=Hr(p,r);if(f&&W(i[0])&&W(i[2])){let u=t.parentElement;u.setAttribute(e,p.substring(f.start.length,p.length-f.end.length)),u.innerText="";return}}let a=document.createDocumentFragment();for(let p of i){let f=Hr(p,r);if(f){let u=document.createElement("span");u.setAttribute(e,p.substring(f.start.length,p.length-f.end.length)),a.appendChild(u)}else a.appendChild(document.createTextNode(p))}t.replaceWith(a)},us=(t,e,n)=>{let r=[],o=s=>{var i;if(s.nodeType===Node.TEXT_NODE)n.some(a=>{var c;return(c=s.textContent)==null?void 0:c.includes(a.start)})&&r.push(s);else{if((i=s==null?void 0:s.hasAttribute)!=null&&i.call(s,e))return;for(let a of Te(s))o(a)}};return o(t),r},Hr=(t,e)=>e.find(n=>t.startsWith(n.start)&&t.endsWith(n.end));var ls=9,ms=10,ds=13,hs=32,Re=46,zt=44,ys=39,gs=34,Kt=40,Ye=41,Wt=91,xn=93,vn=63,bs=59,_r=58,Pr=123,Gt=125,_e=43,Jt=45,Sn=96,Vr=47,wn=92,jr=new Set([2,3]),Wr={"=":2.5,"*=":2.5,"**=":2.5,"/=":2.5,"%=":2.5,"+=":2.5,"-=":2.5,"<<=":2.5,">>=":2.5,">>>=":2.5,"&=":2.5,"^=":2.5,"|=":2.5},Ts=$n(dt({"=>":2},Wr),{"||":3,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"/":12,"%":12,"**":13}),Gr=Object.keys(Wr),Cs=new Set(Gr),An=new Set(["=>"]);Gr.forEach(t=>An.add(t));var $r={true:!0,false:!1,null:null},Es="this",Ze="Expected ",Pe="Unexpected ",Mn="Unclosed ",Rs=Ze+":",qr=Ze+"expression",xs="missing }",vs=Pe+"object property",Ss=Mn+"(",Fr=Ze+"comma",zr=Pe+"token ",ws=Pe+"period",On=Ze+"expression after ",Os="missing unaryOp argument",As=Mn+"[",Ns=Ze+"exponent (",Ms="Variable names cannot start with a number (",Ls=Mn+'quote after "',pt=t=>t>=48&&t<=57,Kr=t=>Ts[t],Nn=class{constructor(e){d(this,"p");d(this,"e");this.p=e,this.e=0}get U(){return this.p.charAt(this.e)}get m(){return this.p.charCodeAt(this.e)}f(e){return this.p.charCodeAt(this.e)===e}H(e){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>=128}ne(e){return this.H(e)||pt(e)}o(e){return new Error(`${e} at character ${this.e}`)}y(){let e=this.m,n=this.p,r=this.e;for(;e===hs||e===ls||e===ms||e===ds;)e=n.charCodeAt(++r);this.e=r}parse(){let e=this.re();return e.length===1?e[0]:{type:0,body:e}}re(e){let n=[];for(;this.e<this.p.length;){let r=this.m;if(r===bs||r===zt)this.e++;else{let o=this.w();if(o)n.push(o);else if(this.e<this.p.length){if(r===e)break;throw this.o(Pe+'"'+this.U+'"')}}}return n}w(){var n;let e=(n=this.dt())!=null?n:this.Le();return this.y(),this.yt(e)}oe(){this.y();let e=this.p,n=this.e,r=e.charCodeAt(n),o=e.charCodeAt(n+1),s=e.charCodeAt(n+2),i=e.charCodeAt(n+3);if(isNaN(r))return!1;let a=!1,c=0;return r===62&&o===62&&s===62&&i===61?(a=">>>=",c=4):r===61&&o===61&&s===61?(a="===",c=3):r===33&&o===61&&s===61?(a="!==",c=3):r===62&&o===62&&s===62?(a=">>>",c=3):r===60&&o===60&&s===61?(a="<<=",c=3):r===62&&o===62&&s===61?(a=">>=",c=3):r===42&&o===42&&s===61?(a="**=",c=3):r===61&&o===62?(a="=>",c=2):r===124&&o===124?(a="||",c=2):r===63&&o===63?(a="??",c=2):r===38&&o===38?(a="&&",c=2):r===61&&o===61?(a="==",c=2):r===33&&o===61?(a="!=",c=2):r===60&&o===61?(a="<=",c=2):r===62&&o===61?(a=">=",c=2):r===60&&o===60?(a="<<",c=2):r===62&&o===62?(a=">>",c=2):r===43&&o===61?(a="+=",c=2):r===45&&o===61?(a="-=",c=2):r===42&&o===61?(a="*=",c=2):r===47&&o===61?(a="/=",c=2):r===37&&o===61?(a="%=",c=2):r===38&&o===61?(a="&=",c=2):r===94&&o===61?(a="^=",c=2):r===124&&o===61?(a="|=",c=2):r===42&&o===42?(a="**",c=2):r===105&&o===110?this.ne(e.charCodeAt(n+2))||(a="in",c=2):r===61?(a="=",c=1):r===124?(a="|",c=1):r===94?(a="^",c=1):r===38?(a="&",c=1):r===60?(a="<",c=1):r===62?(a=">",c=1):r===43?(a="+",c=1):r===45?(a="-",c=1):r===42?(a="*",c=1):r===47?(a="/",c=1):r===37&&(a="%",c=1),a?(this.e+=c,a):!1}Le(){let e,n,r,o,s,i,a,c;if(s=this.j(),!s||(n=this.oe(),!n))return s;if(o={value:n,prec:Kr(n),right_a:An.has(n)},i=this.j(),!i)throw this.o(On+n);let p=[s,o,i];for(;n=this.oe();){r=Kr(n),o={value:n,prec:r,right_a:An.has(n)},c=n;let f=u=>o.right_a&&u.right_a?r>u.prec:r<=u.prec;for(;p.length>2&&f(p[p.length-2]);)i=p.pop(),n=p.pop().value,s=p.pop(),e=this.Ve(n,s,i),p.push(e);if(e=this.j(),!e)throw this.o(On+c);p.push(o,e)}for(a=p.length-1,e=p[a];a>1;)e=this.Ve(p[a-1].value,p[a-2],e),a-=2;return e}j(){let e;if(this.y(),e=this.ht(),e)return this.se(e);let n=this.m;if(pt(n)||n===Re)return this.gt();if(n===ys||n===gs)e=this.bt();else if(n===Wt)e=this.Tt();else{let r=this.xt();if(r){let o=this.j();if(!o)throw this.o(Os);return this.se({type:7,operator:r,argument:o})}this.H(n)?(e=this.ie(),e.name in $r?e={type:4,value:$r[e.name],raw:e.name}:e.name===Es&&(e={type:5})):n===Kt&&(e=this.Rt())}return e?(e=this.$(e),this.se(e)):!1}Ve(e,n,r){if(e==="=>"){let o=n.type===1?n.expressions:[n];return{type:15,params:o,body:r}}return Cs.has(e)?{type:16,operator:e,left:n,right:r}:{type:8,operator:e,left:n,right:r}}ht(){let e={node:!1};return this.Et(e),e.node||(this.Ct(e),e.node)||(this.vt(e),e.node)||(this.Ie(e),e.node)||this.St(e),e.node}se(e){let n={node:e};return this.wt(n),this.At(n),this.Ot(n),n.node}xt(){let e=this.p,n=this.e,r=e.charCodeAt(n),o=e.charCodeAt(n+1),s=e.charCodeAt(n+2),i=e.charCodeAt(n+3);return r===Jt?(this.e++,"-"):r===33?(this.e++,"!"):r===126?(this.e++,"~"):r===_e?(this.e++,"+"):r===110&&o===101&&s===119&&!this.ne(i)?(this.e+=3,"new"):!1}dt(){let e={};return this.Nt(e),e.node}yt(e){let n={node:e};return this.Mt(n),n.node}$(e){this.y();let n=this.m;for(;n===Re||n===Wt||n===Kt||n===vn;){let r;if(n===vn){if(this.p.charCodeAt(this.e+1)!==Re)break;r=!0,this.e+=2,this.y(),n=this.m}if(this.e++,n===Wt){if(e={type:3,computed:!0,object:e,property:this.w()},this.y(),n=this.m,n!==xn)throw this.o(As);this.e++}else n===Kt?e={type:6,arguments:this.De(Ye),callee:e}:(r&&this.e--,this.y(),e={type:3,computed:!1,object:e,property:this.ie()});r&&(e.optional=!0),this.y(),n=this.m}return e}gt(){let e=this.p,n=this.e,r=n;for(;pt(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===Re)for(r++;pt(e.charCodeAt(r));)r++;let o=e.charCodeAt(r);if(o===101||o===69){r++;let a=e.charCodeAt(r);(a===_e||a===Jt)&&r++;let c=r;for(;pt(e.charCodeAt(r));)r++;if(c===r){this.e=r;let p=e.slice(n,r);throw this.o(Ns+p+this.U+")")}}this.e=r;let s=e.slice(n,r),i=e.charCodeAt(r);if(this.H(i))throw this.o(Ms+s+this.U+")");if(i===Re||s.length===1&&s.charCodeAt(0)===Re)throw this.o(ws);return{type:4,value:parseFloat(s),raw:s}}bt(){let e=this.p,n=e.length,r=this.e,o=e.charCodeAt(this.e++),s=this.e,i=s,a=[],c=!1,p=!1;for(;s<n;){let u=e.charCodeAt(s);if(u===o){p=!0,this.e=s+1;break}if(u===wn){c||(c=!0),a.push(e.slice(i,s));let l=e.charCodeAt(s+1);a.push(this.Ue(l)),s+=2,i=s}else s++}let f=c?a.join("")+e.slice(i,p?s:n):e.slice(i,p?s:n);if(!p)throw this.e=s,this.o(Ls+f+'"');return{type:4,value:f,raw:e.substring(r,this.e)}}Ue(e){switch(e){case 110:return`
|
|
2
|
-
`;case 114:return"\r";case 116:return" ";case 98:return"\b";case 102:return"\f";case 118:return"\v";default:return isNaN(e)?"":String.fromCharCode(e)}}ie(){let e=this.m,n=this.e;if(this.H(e))this.e++;else throw this.o(Pe+this.U);for(;this.e<this.p.length&&(e=this.m,this.ne(e));)this.e++;return{type:2,name:this.p.slice(n,this.e)}}De(e){let n=[],r=!1,o=0;for(;this.e<this.p.length;){this.y();let s=this.m;if(s===e){if(r=!0,this.e++,e===Ye&&o&&o>=n.length)throw this.o(zr+String.fromCharCode(e));break}else if(s===zt){if(this.e++,o++,o!==n.length){if(e===Ye)throw this.o(zr+",");for(let i=n.length;i<o;i++)n.push(null)}}else{if(n.length!==o&&o!==0)throw this.o(Fr);{let i=this.w();if(!i||i.type===0)throw this.o(Fr);n.push(i)}}}if(!r)throw this.o(Ze+String.fromCharCode(e));return n}Rt(){this.e++;let e=this.re(Ye);if(this.f(Ye))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.o(Ss)}Tt(){return this.e++,{type:9,elements:this.De(xn)}}Et(e){if(this.f(Pr)){this.e++;let n=[];for(;!isNaN(this.m);){if(this.y(),this.f(Gt)){this.e++,e.node=this.$({type:10,properties:n});return}let r=this.w();if(!r)break;if(this.y(),r.type===2&&(this.f(zt)||this.f(Gt)))n.push({type:12,computed:!1,key:r,value:r,shorthand:!0});else if(this.f(_r)){this.e++;let o=this.w();if(!o)throw this.o(vs);let s=r.type===9;n.push({type:12,computed:s,key:s?r.elements[0]:r,value:o,shorthand:!1}),this.y()}else n.push(r);this.f(zt)&&this.e++}throw this.o(xs)}}Ct(e){let n=this.m;if((n===_e||n===Jt)&&n===this.p.charCodeAt(this.e+1)){this.e+=2;let r=e.node={type:13,operator:n===_e?"++":"--",argument:this.$(this.ie()),prefix:!0};if(!r.argument||!jr.has(r.argument.type))throw this.o(Pe+r.operator)}}At(e){let n=e.node,r=this.m;if((r===_e||r===Jt)&&r===this.p.charCodeAt(this.e+1)){if(!jr.has(n.type))throw this.o(Pe+(r===_e?"++":"--"));this.e+=2,e.node={type:13,operator:r===_e?"++":"--",argument:n,prefix:!1}}}vt(e){this.p.charCodeAt(this.e)===Re&&this.p.charCodeAt(this.e+1)===Re&&this.p.charCodeAt(this.e+2)===Re&&(this.e+=3,e.node={type:14,argument:this.w()})}Mt(e){if(e.node&&this.f(vn)){this.e++;let n=e.node,r=this.w();if(!r)throw this.o(qr);if(this.y(),this.f(_r)){this.e++;let o=this.w();if(!o)throw this.o(qr);e.node={type:11,test:n,consequent:r,alternate:o}}else throw this.o(Rs)}}Nt(e){if(this.y(),this.f(Kt)){let n=this.e;if(this.e++,this.y(),this.f(Ye)){this.e++;let r=this.oe();if(r==="=>"){let o=this.Le();if(!o)throw this.o(On+r);e.node={type:15,params:null,body:o};return}}this.e=n}}Ot(e){let n=e.node,r=n.type;(r===2||r===3)&&this.f(Sn)&&(e.node={type:17,tag:n,quasi:this.Ie(e)})}Ie(e){if(!this.f(Sn))return;let n=this.p,r=n.length,o={type:19,quasis:[],expressions:[]},s=++this.e,i=[],a=[],c=!1,p=f=>{if(!c){let m=n.slice(s,this.e);return o.quasis.push({type:18,value:{raw:m,cooked:m},tail:f})}i.push(n.slice(s,this.e)),a.push(n.slice(s,this.e));let u=i.join(""),l=a.join("");return i.length=0,a.length=0,c=!1,o.quasis.push({type:18,value:{raw:u,cooked:l},tail:f})};for(;this.e<r;){let f=n.charCodeAt(this.e);if(f===Sn)return p(!0),this.e+=1,e.node=o,o;if(f===36&&n.charCodeAt(this.e+1)===Pr){if(p(!1),this.e+=2,o.expressions.push(...this.re(Gt)),!this.f(Gt))throw this.o("unclosed ${");this.e+=1,s=this.e}else if(f===wn){c||(c=!0),i.push(n.slice(s,this.e)),a.push(n.slice(s,this.e));let u=n.charCodeAt(this.e+1);i.push(n.slice(this.e,this.e+2)),a.push(this.Ue(u)),this.e+=2,s=this.e}else this.e+=1}throw this.o("Unclosed `")}wt(e){let n=e.node;if(!n||n.operator!=="new"||!n.argument)return;if(!n.argument||![6,3].includes(n.argument.type))throw this.o("Expected new function()");e.node=n.argument;let r=e.node;for(;r.type===3||r.type===6&&r.callee.type===3;)r=r.type===3?r.object:r.callee.object;r.type=20}St(e){if(!this.f(Vr))return;let n=++this.e,r=!1;for(;this.e<this.p.length;){if(this.m===Vr&&!r){let o=this.p.slice(n,this.e),s="";for(;++this.e<this.p.length;){let a=this.m;if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)s+=this.U;else break}let i;try{i=new RegExp(o,s)}catch(a){throw this.o(a.message)}return e.node={type:4,value:i,raw:this.p.slice(n-1,this.e)},e.node=this.$(e.node),e.node}this.f(Wt)?r=!0:r&&this.f(xn)&&(r=!1),this.e+=this.f(wn)?2:1}throw this.o("Unclosed Regex")}},Jr=t=>new Nn(t).parse();var ks={"=>":(t,e)=>{},"=":(t,e)=>{},"*=":(t,e)=>{},"**=":(t,e)=>{},"/=":(t,e)=>{},"%=":(t,e)=>{},"+=":(t,e)=>{},"-=":(t,e)=>{},"<<=":(t,e)=>{},">>=":(t,e)=>{},">>>=":(t,e)=>{},"&=":(t,e)=>{},"^=":(t,e)=>{},"|=":(t,e)=>{},"||":(t,e)=>t()||e(),"??":(t,e)=>{var n;return(n=t())!=null?n:e()},"&&":(t,e)=>t()&&e(),"|":(t,e)=>t|e,"^":(t,e)=>t^e,"&":(t,e)=>t&e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,in:(t,e)=>t in e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"**":(t,e)=>mt(t,e)},Is={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},Zr=t=>{if(!(t!=null&&t.some(Yr)))return t;let e=[];return t.forEach(n=>Yr(n)?e.push(...n):e.push(n)),e},Qr=(...t)=>Zr(t),Ln=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},Ds={"++":(t,e)=>{let n=t[e];if(b(n)){let r=n();return n(++r),r}return++t[e]},"--":(t,e)=>{let n=t[e];if(b(n)){let r=n();return n(--r),r}return--t[e]}},Us={"++":(t,e)=>{let n=t[e];if(b(n)){let r=n();return n(r+1),r}return t[e]++},"--":(t,e)=>{let n=t[e];if(b(n)){let r=n();return n(r-1),r}return t[e]--}},Xr={"=":(t,e,n)=>{let r=t[e];return b(r)?r(n):t[e]=n},"+=":(t,e,n)=>{let r=t[e];return b(r)?r(r()+n):t[e]+=n},"-=":(t,e,n)=>{let r=t[e];return b(r)?r(r()-n):t[e]-=n},"*=":(t,e,n)=>{let r=t[e];return b(r)?r(r()*n):t[e]*=n},"/=":(t,e,n)=>{let r=t[e];return b(r)?r(r()/n):t[e]/=n},"%=":(t,e,n)=>{let r=t[e];return b(r)?r(r()%n):t[e]%=n},"**=":(t,e,n)=>{let r=t[e];return b(r)?r(mt(r(),n)):t[e]=mt(t[e],n)},"<<=":(t,e,n)=>{let r=t[e];return b(r)?r(r()<<n):t[e]<<=n},">>=":(t,e,n)=>{let r=t[e];return b(r)?r(r()>>n):t[e]>>=n},">>>=":(t,e,n)=>{let r=t[e];return b(r)?r(r()>>>n):t[e]>>>=n},"|=":(t,e,n)=>{let r=t[e];return b(r)?r(r()|n):t[e]|=n},"&=":(t,e,n)=>{let r=t[e];return b(r)?r(r()&n):t[e]&=n},"^=":(t,e,n)=>{let r=t[e];return b(r)?r(r()^n):t[e]^=n}},Qt=(t,e)=>V(t)?t.bind(e):t,kn=class{constructor(e,n,r,o,s){d(this,"u");d(this,"Pe");d(this,"Be");d(this,"_e");d(this,"A");d(this,"He");d(this,"je");this.u=R(e)?e:[e],this.Pe=n,this.Be=r,this._e=o,this.je=!!s}$e(e,n){if(n&&e in n)return n;for(let r of this.u)if(e in r)return r}2(e,n,r){let o=e.name;if(o==="$root")return this.u[this.u.length-1];if(o==="$parent")return this.u[1];if(o==="$ctx")return[...this.u];if(r&&o in r)return this.A=r[o],Qt(I(r[o]),r);for(let i of this.u)if(o in i)return this.A=i[o],Qt(I(i[o]),i);let s=this.Pe;if(s&&o in s)return this.A=s[o],Qt(I(s[o]),s)}5(e,n,r){return this.u[0]}0(e,n,r){return this.qe(n,r,Qr,...e.body)}1(e,n,r){return this.C(n,r,(...o)=>o.pop(),...e.expressions)}3(e,n,r){let{obj:o,key:s}=this.ae(e,n,r),i=o==null?void 0:o[s];return this.A=i,Qt(I(i),o)}4(e,n,r){return e.value}6(e,n,r){let o=(i,...a)=>V(i)?i(...Zr(a)):i,s=this.C(++n,r,o,e.callee,...e.arguments);return this.A=s,s}7(e,n,r){return this.C(n,r,Is[e.operator],e.argument)}8(e,n,r){let o=ks[e.operator];switch(e.operator){case"||":case"&&":case"??":return o(()=>this.g(e.left,n,r),()=>this.g(e.right,n,r))}return this.C(n,r,o,e.left,e.right)}9(e,n,r){return this.qe(++n,r,Qr,...e.elements)}10(e,n,r){let o={},s=(...i)=>{i.forEach(a=>{Object.assign(o,a)})};return this.C(++n,r,s,...e.properties),o}11(e,n,r){return this.C(n,r,o=>this.g(o?e.consequent:e.alternate,n,r),e.test)}12(e,n,r){var f;let o={},s=u=>(u==null?void 0:u.type)!==15,i=(f=this._e)!=null?f:()=>!1,a=n===0&&this.je,c=u=>this.Fe(a,e.key,n,Ln(u,r)),p=u=>this.Fe(a,e.value,n,Ln(u,r));if(e.shorthand){let u=e.key.name;o[u]=s(e.key)&&i(u,n)?c:c()}else if(e.computed){let u=I(c());o[u]=s(e.value)&&i(u,n)?p:p()}else{let u=e.key.type===4?e.key.value:e.key.name;o[u]=s(e.value)&&i(u,n)?()=>p:p()}return o}ae(e,n,r){let o=this.g(e.object,n,r),s=e.computed?this.g(e.property,n,r):e.property.name;return{obj:o,key:s}}13(e,n,r){let o=e.argument,s=e.operator,i=e.prefix?Ds:Us;if(o.type===2){let a=o.name,c=this.$e(a,r);return ie(c)?void 0:i[s](c,a)}if(o.type===3){let{obj:a,key:c}=this.ae(o,n,r);return i[s](a,c)}}16(e,n,r){let o=e.left,s=e.operator;if(o.type===2){let i=o.name,a=this.$e(i,r);if(ie(a))return;let c=this.g(e.right,n,r);return Xr[s](a,i,c)}if(o.type===3){let{obj:i,key:a}=this.ae(o,n,r),c=this.g(e.right,n,r);return Xr[s](i,a,c)}}14(e,n,r){let o=this.g(e.argument,n,r);return R(o)&&(o.s=eo),o}17(e,n,r){return this[6]({type:6,callee:e.tag,arguments:[{type:9,elements:e.quasi.quasis},...e.quasi.expressions]},n,r)}19(e,n,r){let o=(...s)=>s.reduce((i,a,c)=>i+=a+e.quasis[c+1].value.cooked,e.quasis[0].value.cooked);return this.C(n,r,o,...e.expressions)}18(e,n,r){return e.value.cooked}20(e,n,r){let o=(s,...i)=>new s(...i);return this.C(n,r,o,e.callee,...e.arguments)}15(e,n,r){return(...o)=>{let s=Object.create(r!=null?r:{}),i=e.params;if(i){let a=0;for(let c of i)s[c.name]=o[a++]}return this.g(e.body,n,s)}}g(e,n,r){let o=I(this[e.type](e,n,r));return this.He=e.type,o}Fe(e,n,r,o){let s=this.g(n,r,o);return e&&this.Ke()?this.A:s}Ke(){let e=this.He;return(e===2||e===3||e===6)&&b(this.A)}eval(e,n){let{value:r,refs:o}=Nt(()=>this.g(e,-1,n)),s={value:r,refs:o};return this.Ke()&&(s.ref=this.A),s}C(e,n,r,...o){let s=o.map(i=>i&&this.g(i,e,n));return r(...s)}qe(e,n,r,...o){let s=this.Be;if(!s)return this.C(e,n,r,...o);let i=o.map((a,c)=>a&&(a.type!==15&&s(c,e)?p=>this.g(a,e,Ln(p,n)):this.g(a,e,n)));return r(...i)}},eo=Symbol("s"),Yr=t=>(t==null?void 0:t.s)===eo,to=(t,e,n,r,o,s,i)=>new kn(e,n,r,o,i).eval(t,s);var no={},Xt=class{constructor(e,n){d(this,"u");d(this,"r");d(this,"ze",[]);this.u=e,this.r=n}v(e){this.u=[e,...this.u]}ye(){return this.u.map(n=>n.components).filter(n=>!!n).reverse().reduce((n,r)=>{for(let[o,s]of Object.entries(r))n[o.toUpperCase()]=s;return n},{})}Ye(){let e=[],n=new Set,r=this.u.map(o=>o.components).filter(o=>!!o).reverse();for(let o of r)for(let s of Object.keys(o))n.has(s)||(n.add(s),e.push(s));return e}M(e,n,r,o,s){var E;let i=ee([]),a=[],c=new Set,p=()=>{for(let T of a)T();a.length=0},l={value:i,stop:()=>{p(),c.clear()},subscribe:(T,S)=>(c.add(T),S&&T(i()),()=>{c.delete(T)}),refs:[],context:this.u[0]};if(W(e))return l;let m=this.r.globalContext,y=[],h=new Set,C=(T,S,D,z)=>{try{let U=to(T,S,m,n,r,z,o);return D&&y.push(...U.refs),{value:U.value,refs:U.refs,ref:U.ref}}catch(U){k(6,`evaluation error: ${e}`,U)}return{value:void 0,refs:[]}};try{let T=(E=no[e])!=null?E:Jr("["+e+"]");no[e]=T;let S=this.u.slice(),D=T.elements,z=D.length,U=()=>{y.length=0,h.clear(),p();let ce=new Array(z),xe=new Array(z);for(let K=0;K<z;++K){let de=D[K];if(n!=null&&n(K,-1)){ce[K]=tt=>C(de,S,!1,{$event:tt}).value;continue}let re=C(de,S,!0);ce[K]=re.value,xe[K]=re.ref}if(!s)for(let K of y){if(h.has(K))continue;h.add(K);let de=F(K,U);a.push(de)}if(l.refs=xe,i(ce),c.size!==0)for(let K of c)c.has(K)&&K(ce)};U()}catch(T){k(6,`parse error: ${e}`,T)}return l}k(){return this.u.slice()}ee(e){this.ze.push(this.u),this.u=e}E(e,n){try{this.ee(e),n()}finally{this.kt()}}kt(){var e;this.u=(e=this.ze.pop())!=null?e:[]}};var ro=t=>{let e=t.charCodeAt(0);return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||t==="-"||t==="_"||t===":"},Bs=(t,e)=>{let n="";for(let r=e;r<t.length;++r){let o=t[r];if(n){o===n&&(n="");continue}if(o==='"'||o==="'"){n=o;continue}if(o===">")return r}return-1},Hs=(t,e)=>{let n=e?2:1;for(;n<t.length&&(t[n]===" "||t[n]===`
|
|
3
|
-
`);)++n;if(n>=t.length||!
|
|
1
|
+
"use strict";var Regor=(()=>{var dt=Object.defineProperty,Rr=Object.defineProperties,vr=Object.getOwnPropertyDescriptor,wr=Object.getOwnPropertyDescriptors,Sr=Object.getOwnPropertyNames,Fn=Object.getOwnPropertySymbols;var zn=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable;var ht=Math.pow,an=(t,e,n)=>e in t?dt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yt=(t,e)=>{for(var n in e||(e={}))zn.call(e,n)&&an(t,n,e[n]);if(Fn)for(var n of Fn(e))Ar.call(e,n)&&an(t,n,e[n]);return t},Kn=(t,e)=>Rr(t,wr(e));var Nr=(t,e)=>{for(var n in e)dt(t,n,{get:e[n],enumerable:!0})},Or=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Sr(e))!zn.call(t,r)&&r!==n&&dt(t,r,{get:()=>e[r],enumerable:!(o=vr(e,r))||o.enumerable});return t};var Mr=t=>Or(dt({},"__esModule",{value:!0}),t);var d=(t,e,n)=>an(t,typeof e!="symbol"?e+"":e,n);var Wn=(t,e,n)=>new Promise((o,r)=>{var s=c=>{try{a(n.next(c))}catch(l){r(l)}},i=c=>{try{a(n.throw(c))}catch(l){r(l)}},a=c=>c.done?o(c.value):Promise.resolve(c.value).then(s,i);a((n=n.apply(t,e)).next())});var ii={};Nr(ii,{ComponentHead:()=>We,RegorConfig:()=>le,addUnbinder:()=>q,batch:()=>Cr,collectRefs:()=>Lt,computeMany:()=>hr,computeRef:()=>yr,computed:()=>dr,createApp:()=>fr,createComponent:()=>pr,drainUnbind:()=>Jn,endBatch:()=>qn,entangle:()=>Ye,flatten:()=>ae,getBindData:()=>Oe,html:()=>jn,isDeepRef:()=>He,isRaw:()=>Ze,isRef:()=>E,markRaw:()=>gr,observe:()=>se,observeMany:()=>xr,observerCount:()=>Er,onMounted:()=>mr,onUnmounted:()=>ne,pause:()=>Gt,persist:()=>br,raw:()=>Tr,ref:()=>be,removeNode:()=>z,resume:()=>Jt,silence:()=>kt,sref:()=>ie,startBatch:()=>$n,toFragment:()=>$e,toJsonTemplate:()=>rt,trigger:()=>Y,unbind:()=>de,unref:()=>V,useScope:()=>Nt,warningHandler:()=>it,watchEffect:()=>Ve});var ze=Symbol(":regor");var de=t=>{let e=[t];for(let n=0;n<e.length;++n){let o=e[n];kr(o);for(let r=o.lastChild;r!=null;r=r.previousSibling)e.push(r)}},kr=t=>{let e=t[ze];if(!e)return;let n=e.unbinders;for(let o=0;o<n.length;++o)n[o]();n.length=0,t[ze]=void 0};var Ke=[],gt=!1,bt,Gn=()=>{if(gt=!1,bt=void 0,Ke.length!==0){for(let t=0;t<Ke.length;++t)de(Ke[t]);Ke.length=0}},z=t=>{t.remove(),Ke.push(t),gt||(gt=!0,bt=setTimeout(Gn,1))},Jn=()=>Wn(null,null,function*(){Ke.length===0&&!gt||(bt&&clearTimeout(bt),Gn())});var K=t=>typeof t=="function",W=t=>typeof t=="string",Qn=t=>typeof t=="undefined",fe=t=>t==null||typeof t=="undefined",X=t=>typeof t!="string"||!(t!=null&&t.trim()),Lr=Object.prototype.toString,cn=t=>Lr.call(t),Ae=t=>cn(t)==="[object Map]",ue=t=>cn(t)==="[object Set]",un=t=>cn(t)==="[object Date]",st=t=>typeof t=="symbol",w=Array.isArray,I=t=>t!==null&&typeof t=="object";var Xn={0:"createApp can't find root element. You must define either a valid `selector` or an `element`. Example: createApp({}, {selector: '#app', html: '...'})",1:t=>`Component template cannot be found. selector: ${t} .`,2:"Use composables in scope. usage: useScope(() => new MyApp()).",3:t=>`${t} requires ref source argument`,4:"computed is readonly.",5:"persist requires a string key."},j=(t,...e)=>{let n=Xn[t];return new Error(K(n)?n.call(Xn,...e):n)};var Tt=[],Yn=()=>{let t={onMounted:[],onUnmounted:[]};return Tt.push(t),t},Ue=t=>{let e=Tt[Tt.length-1];if(!e&&!t)throw j(2);return e},Zn=t=>{let e=Ue();return t&&fn(t),Tt.pop(),e},ln=Symbol("csp"),fn=t=>{let e=t,n=e[ln];if(n){let o=Ue();if(n===o)return;o.onMounted.length>0&&n.onMounted.push(...o.onMounted),o.onUnmounted.length>0&&n.onUnmounted.push(...o.onUnmounted);return}e[ln]=Ue()},xt=t=>t[ln];var Ne=t=>{var n,o;let e=(n=xt(t))==null?void 0:n.onUnmounted;e==null||e.forEach(r=>{r()}),(o=t.unmounted)==null||o.call(t)};var We=class{constructor(e,n,o,r,s){d(this,"props");d(this,"start");d(this,"end");d(this,"ctx");d(this,"autoProps",!0);d(this,"entangle",!0);d(this,"enableSwitch",!1);d(this,"onAutoPropsAssigned");d(this,"le");d(this,"emit",(e,n)=>{this.le.dispatchEvent(new CustomEvent(e,{detail:n}))});this.props=e,this.le=n,this.ctx=o,this.start=r,this.end=s}unmount(){let e=this.start.nextSibling,n=this.end;for(;e&&e!==n;)z(e),e=e.nextSibling;for(let o of this.ctx)Ne(o)}};var Oe=t=>{let e=t,n=e[ze];if(n)return n;let o={unbinders:[],data:{}};return e[ze]=o,o};var q=(t,e)=>{Oe(t).unbinders.push(e)};var eo={8:t=>`Model binding requires a ref at ${t.outerHTML}`,7:t=>`Model binding is not supported on ${t.tagName} element at ${t.outerHTML}`,0:(t,e)=>`${t} binding expression is missing at ${e.outerHTML}`,1:(t,e,n)=>`invalid ${t} expression: ${e} at ${n.outerHTML}`,2:(t,e)=>`${t} requires object expression at ${e.outerHTML}`,3:(t,e)=>`${t} binder: key is empty on ${e.outerHTML}.`,4:(t,e,n,o)=>({msg:`Failed setting prop "${t}" on <${e.toLowerCase()}>: value ${n} is invalid.`,args:[o]}),5:(t,e)=>`${t} binding missing event type at ${e.outerHTML}`,6:(t,e)=>({msg:t,args:[e]})},H=(t,...e)=>{let n=eo[t],o=K(n)?n.call(eo,...e):n,r=it.warning;r&&(W(o)?r(o):r(o,...o.args))},it={warning:console.warn};var Ct={},Et={},to=1,no=t=>{let e=(to++).toString();return Ct[e]=t,Et[e]=0,e},pn=t=>{Et[t]+=1},mn=t=>{--Et[t]===0&&(delete Ct[t],delete Et[t])},oo=t=>Ct[t],dn=()=>to!==1&&Object.keys(Ct).length>0,at="r-switch",Ir=t=>{let e=t.filter(o=>Be(o)).map(o=>[...o.querySelectorAll("[r-switch]")].map(r=>r.getAttribute(at))),n=new Set;return e.forEach(o=>{o.forEach(r=>r&&n.add(r))}),[...n]},Ge=(t,e)=>{if(!dn())return;let n=Ir(e);n.length!==0&&(n.forEach(pn),q(t,()=>{n.forEach(mn)}))};var Rt=()=>{},hn=(t,e,n,o)=>{let r=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,o),r.push(i)}ke(e,r)},yn=Symbol("r-if"),ro=Symbol("r-else"),so=t=>t[ro]===1,vt=class{constructor(e){d(this,"i");d(this,"D");d(this,"K");d(this,"z");d(this,"W");d(this,"T");d(this,"R");this.i=e,this.D=e.o.u.if,this.K=Qe(e.o.u.if),this.z=e.o.u.else,this.W=e.o.u.elseif,this.T=e.o.u.for,this.R=e.o.u.pre}Qe(e,n){let o=e.parentElement;for(;o!==null&&o!==document.documentElement;){if(o.hasAttribute(n))return!0;o=o.parentElement}return!1}N(e){let n=e.hasAttribute(this.D),o=Me(e,this.K);for(let r of o)this.b(r);return n}G(e){return e[yn]?!0:(e[yn]=!0,Me(e,this.K).forEach(n=>n[yn]=!0),!1)}b(e){if(e.hasAttribute(this.R)||this.G(e)||this.Qe(e,this.T))return;let n=e.getAttribute(this.D);if(!n){H(0,this.D,e);return}e.removeAttribute(this.D),this.O(e,n)}U(e,n,o){let r=Je(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${o!=null?o:""}`);s.insertBefore(i,e),Ge(i,r),r.forEach(c=>{z(c)}),e.remove(),n!=="if"&&(e[ro]=1);let a=document.createComment(`__end__ :${n}${o!=null?o:""}`);return s.insertBefore(a,i.nextSibling),{nodes:r,parent:s,commentBegin:i,commentEnd:a}}fe(e,n){if(!e)return[];let o=e.nextElementSibling;if(e.hasAttribute(this.z)){e.removeAttribute(this.z);let{nodes:r,parent:s,commentBegin:i,commentEnd:a}=this.U(e,"else");return[{mount:()=>{hn(r,this.i,s,a)},unmount:()=>{Ee(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let r=e.getAttribute(this.W);if(!r)return[];e.removeAttribute(this.W);let{nodes:s,parent:i,commentBegin:a,commentEnd:c}=this.U(e,"elseif",` => ${r} `),l=this.i.m.k(r),u=l.value,f=this.fe(o,n),p=Rt;return q(a,()=>{l.stop(),p(),p=Rt}),p=l.subscribe(n),[{mount:()=>{hn(s,this.i,i,c)},unmount:()=>{Ee(a,c)},isTrue:()=>!!u()[0],isMounted:!1},...f]}}O(e,n){let o=e.nextElementSibling,{nodes:r,parent:s,commentBegin:i,commentEnd:a}=this.U(e,"if",` => ${n} `),c=this.i.m.k(n),l=c.value,u=!1,f=this.i.m,p=f.M(),m=()=>{f.E(p,()=>{if(l()[0])u||(hn(r,this.i,s,a),u=!0),y.forEach(R=>{R.unmount(),R.isMounted=!1});else{Ee(i,a),u=!1;let R=!1;for(let C of y)!R&&C.isTrue()?(C.isMounted||(C.mount(),C.isMounted=!0),R=!0):(C.unmount(),C.isMounted=!1)}})},y=this.fe(o,m),h=Rt;q(i,()=>{c.stop(),h(),h=Rt}),m(),h=c.subscribe(m)}};var Je=t=>{let e=ye(t)?t.content.childNodes:[t],n=[];for(let o=0;o<e.length;++o){let r=e[o];if(r.nodeType===1){let s=r==null?void 0:r.tagName;if(s==="SCRIPT"||s==="STYLE")continue}n.push(r)}return n},ke=(t,e)=>{for(let n=0;n<e.length;++n){let o=e[n];o.nodeType===Node.ELEMENT_NODE&&(so(o)||t.H(o))}},Me=(t,e)=>{var o;let n=t.querySelectorAll(e);return(o=t.matches)!=null&&o.call(t,e)?[t,...n]:n},ye=t=>t instanceof HTMLTemplateElement,Be=t=>t.nodeType===Node.ELEMENT_NODE,ct=t=>t.nodeType===Node.ELEMENT_NODE,io=t=>t instanceof HTMLSlotElement,Ce=t=>ye(t)?t.content.childNodes:t.childNodes,Ee=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let o=n.nextSibling;z(n),n=o}},ao=function(){return this()},Dr=function(t){return this(t)},Ur=()=>{throw new Error("value is readonly.")},Br={get:ao,set:Dr,enumerable:!0,configurable:!1},Pr={get:ao,set:Ur,enumerable:!0,configurable:!1},Le=(t,e)=>{Object.defineProperty(t,"value",e?Pr:Br)},co=(t,e)=>{if(!t)return!1;if(t.startsWith("["))return t.substring(1,t.length-1);let n=e.length;return t.startsWith(e)?t.substring(n,t.length-n):!1},Qe=t=>`[${CSS.escape(t)}]`,wt=(t,e)=>(t.startsWith("@")&&(t=e.u.on+":"+t.slice(1)),t.includes("[")&&(t=t.replace(/[[\]]/g,e.u.dynamic)),t),gn=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Hr=/-(\w)/g,$=gn(t=>t&&t.replace(Hr,(e,n)=>n?n.toUpperCase():"")),Vr=/\B([A-Z])/g,Xe=gn(t=>t&&t.replace(Vr,"-$1").toLowerCase()),ut=gn(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var St={mount:()=>{}};var At=t=>{var n,o;let e=(n=xt(t))==null?void 0:n.onMounted;e==null||e.forEach(r=>{r()}),(o=t.mounted)==null||o.call(t)};var bn=Symbol("scope"),Nt=t=>{try{Yn();let e=t();fn(e);let n={context:e,unmount:()=>Ne(e),[bn]:1};return n[bn]=1,n}finally{Zn()}},uo=t=>I(t)?bn in t:!1;var Ot=Symbol("ref"),Z=Symbol("sref"),Mt=Symbol("raw");var E=t=>t!=null&&t[Z]===1;var Tn={collectRefObj:!0,mount:({parseResult:t})=>({update:({values:e})=>{let n=t.context,o=e[0];if(I(o))for(let r of Object.entries(o)){let s=r[0],i=r[1],a=n[s];a!==i&&(E(a)?a(i):n[s]=i)}}})};var ne=(t,e)=>{var n;(n=Ue(e))==null||n.onUnmounted.push(t)};var se=(t,e,n,o=!0)=>{if(!E(t))throw j(3,"observe");n&&e(t());let s=t(void 0,void 0,0,e);return o&&ne(s,!0),s};var Ye=(t,e)=>{if(t===e)return()=>{};let n=se(t,r=>e(r)),o=se(e,r=>t(r));return e(t()),()=>{n(),o()}};var Ze=t=>!!t&&t[Mt]===1;var He=t=>(t==null?void 0:t[Ot])===1;var pe=[],lo=t=>{var e;pe.length!==0&&((e=pe[pe.length-1])==null||e.add(t))},Ve=t=>{if(!t)return()=>{};let e={stop:()=>{}};return _r(t,e),ne(()=>e.stop(),!0),e.stop},_r=(t,e)=>{if(!t)return;let n=[],o=!1,r=()=>{for(let s of n)s();n=[],o=!0};e.stop=r;try{let s=new Set;if(pe.push(s),t(i=>n.push(i)),o)return;for(let i of[...s]){let a=se(i,()=>{r(),Ve(t)});n.push(a)}}finally{pe.pop()}},kt=t=>{let e=pe.length,n=e>0&&pe[e-1];try{return n&&pe.push(null),t()}finally{n&&pe.pop()}},Lt=t=>{try{let e=new Set;return pe.push(e),{value:t(),refs:[...e]}}finally{pe.pop()}};var Y=(t,e,n)=>{if(!E(t))return;let o=t;if(o(void 0,e,1),!n)return;let r=o();if(r){if(w(r)||ue(r))for(let s of r)Y(s,e,!0);else if(Ae(r))for(let s of r)Y(s[0],e,!0),Y(s[1],e,!0);if(I(r))for(let s in r)Y(r[s],e,!0)}};function jr(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var et=(t,e,n)=>{n.forEach(function(o){let r=t[o];jr(e,o,function(...i){let a=r.apply(this,i),c=this[Z];for(let l of c)Y(l);return a})})},It=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var fo=Array.prototype,xn=Object.create(fo),$r=["push","pop","shift","unshift","splice","sort","reverse"];et(fo,xn,$r);var po=Map.prototype,Dt=Object.create(po),qr=["set","clear","delete"];It(Dt,"Map");et(po,Dt,qr);var mo=Set.prototype,Ut=Object.create(mo),Fr=["add","clear","delete"];It(Ut,"Set");et(mo,Ut,Fr);var ge={},ie=t=>{if(E(t)||Ze(t))return t;let e={auto:!0,_value:t},n=c=>I(c)?Z in c?!0:w(c)?(Object.setPrototypeOf(c,xn),!0):ue(c)?(Object.setPrototypeOf(c,Ut),!0):Ae(c)?(Object.setPrototypeOf(c,Dt),!0):!1:!1,o=n(t),r=new Set,s=(c,l)=>{if(ge.stack&&ge.stack.length){ge.stack[ge.stack.length-1].add(a);return}r.size!==0&&kt(()=>{for(let u of[...r.keys()])r.has(u)&&u(c,l)})},i=c=>{let l=c[Z];l||(c[Z]=l=new Set),l.add(a)},a=(...c)=>{if(!(2 in c)){let u=c[0],f=c[1];return 0 in c?e._value===u||E(u)&&(u=u(),e._value===u)?u:(n(u)&&i(u),e._value=u,e.auto&&s(u,f),e._value):(lo(a),e._value)}switch(c[2]){case 0:{let u=c[3];if(!u)return()=>{};let f=p=>{r.delete(p)};return r.add(u),()=>{f(u)}}case 1:{let u=c[1],f=e._value;s(f,u);break}case 2:return r.size;case 3:{e.auto=!1;break}case 4:e.auto=!0}return e._value};return a[Z]=1,Le(a,!1),o&&i(t),a};var be=t=>{if(Ze(t))return t;let e;if(E(t)?(e=t,t=e()):e=ie(t),t instanceof Node||t instanceof Date||t instanceof RegExp||t instanceof Promise||t instanceof Error)return e;if(e[Ot]=1,w(t)){let n=t.length;for(let o=0;o<n;++o){let r=t[o];He(r)||(t[o]=be(r))}return e}if(!I(t))return e;for(let n of Object.entries(t)){let o=n[1];if(He(o))continue;let r=n[0];st(r)||(t[r]=null,t[r]=be(o))}return e};var ho=Symbol("modelBridge"),Bt=()=>{},zr=t=>!!(t!=null&&t[ho]),Kr=t=>{t[ho]=1},Wr=t=>{let e=be(t());return Kr(e),e},yo={collectRefObj:!0,mount:({parseResult:t,option:e})=>{if(typeof e!="string"||!e)return Bt;let n=$(e),o,r,s=Bt,i=()=>{s(),s=Bt,o=void 0,r=void 0},a=()=>{s(),s=Bt},c=(u,f)=>{o!==u&&(a(),s=Ye(u,f),o=u)},l=()=>{var m;let u=(m=t.refs[0])!=null?m:t.value()[0],f=t.context,p=f[n];if(!E(u)){if(r&&p===r){r(u);return}if(i(),E(p)){p(u);return}f[n]=u;return}if(zr(u)){if(p===u)return;E(p)?c(u,p):f[n]=u;return}r||(r=Wr(u)),f[n]=r,c(u,r)};return{update:()=>{l()},unmount:()=>{s()}}}};var Pt=class{constructor(e){d(this,"i");d(this,"me");d(this,"de","");d(this,"ye",-1);this.i=e,this.me=e.o.u.inherit}N(e){this.Xe(e)}Ye(e){if(this.ye!==e.size){let n=[...e.keys()];this.de=[...n,...n.map(Xe)].join(","),this.ye=e.size}return this.de}Ze(e){var n;for(let o=0;o<e.length;++o){let r=(n=e[o])==null?void 0:n.components;if(r)for(let s in r)return!0}return!1}Xe(e){var p;let n=this.i,o=n.m,r=n.o.he,s=n.o._;if(r.size===0&&!this.Ze(o.l))return;let i=o.J(),a=o.et(),c=this.Ye(r),l=[...c?[c]:[],...a,...a.map(Xe)].join(",");if(X(l))return;let u=e.querySelectorAll(l),f=(p=e.matches)!=null&&p.call(e,l)?[e,...u]:u;for(let m of f){if(m.hasAttribute(n.R))continue;let y=m.parentNode;if(!y)continue;let h=m.nextSibling,g=$(m.tagName).toUpperCase(),R=i[g],C=R!=null?R:s.get(g);if(!C)continue;let D=C.template;if(!D)continue;let G=m.parentElement;if(!G)continue;let M=new Comment(" begin component: "+m.tagName),_=new Comment(" end component: "+m.tagName);G.insertBefore(M,m),m.remove();let ce=n.o.u.context,ee=n.o.u.contextAlias,U=n.o.u.bind,b=(x,T)=>{let v={},F=x.hasAttribute(ce);return o.E(T,()=>{o.v(v),F?n.b(Tn,x,ce):x.hasAttribute(ee)&&n.b(Tn,x,ee);let B=C.props;if(!B||B.length===0)return;B=B.map($);let N=new Map(B.map(S=>[S.toLowerCase(),S]));for(let S of[...B,...B.map(Xe)]){let P=x.getAttribute(S);P!==null&&(v[$(S)]=P,x.removeAttribute(S))}let L=n.j.ge(x,!1);for(let[S,P]of L.entries()){let[re,De]=P.Q;if(!De)continue;let Fe=N.get($(De).toLowerCase());Fe&&(re!=="."&&re!==":"&&re!==U||n.b(yo,x,S,!0,Fe,P.X))}}),v},A=[...o.M()],J=()=>{var F;let x=b(m,A),T=new We(x,m,A,M,_),v=Nt(()=>{var B;return(B=C.context(T))!=null?B:{}}).context;if(T.autoProps){for(let[B,N]of Object.entries(x))if(B in v){let L=v[B];if(L===N)continue;if(E(L)){E(N)?T.entangle?q(M,Ye(N,L)):L(N()):L(N);continue}}else v[B]=N;(F=T.onAutoPropsAssigned)==null||F.call(T)}return{componentCtx:v,head:T}},{componentCtx:me,head:qe}=J(),Te=[...Ce(D)],k=Te.length,mt=m.childNodes.length===0,O=x=>{let T=x.parentElement;if(mt){for(let N of[...x.childNodes])T.insertBefore(N,x);return}let v=x.name;X(v)&&(v=x.getAttributeNames().filter(N=>N.startsWith("#"))[0],X(v)?v="default":v=v.substring(1));let F=m.querySelector(`template[name='${v}'], template[\\#${v}]`);!F&&v==="default"&&(F=m.querySelector("template:not([name])"),F&&F.getAttributeNames().filter(N=>N.startsWith("#")).length>0&&(F=null));let B=N=>{qe.enableSwitch&&o.E(A,()=>{o.v(me);let L=b(x,o.M());o.E(A,()=>{o.v(L);let S=o.M(),P=no(S);for(let re of N)Be(re)&&(re.setAttribute(at,P),pn(P),q(re,()=>{mn(P)}))})})};if(F){let N=[...Ce(F)];for(let L of N)T.insertBefore(L,x);B(N)}else{if(v!=="default"){for(let L of[...Ce(x)])T.insertBefore(L,x);return}let N=[...Ce(m)].filter(L=>!ye(L));for(let L of N)T.insertBefore(L,x);B(N)}},Q=x=>{if(!Be(x))return;let T=x.querySelectorAll("slot");if(io(x)){O(x),x.remove();return}for(let v of T)O(v),v.remove()};(()=>{for(let x=0;x<k;++x)Te[x]=Te[x].cloneNode(!0),y.insertBefore(Te[x],h),Q(Te[x])})(),G.insertBefore(_,h);let te=()=>{if(!C.inheritAttrs)return;let x=Te.filter(v=>v.nodeType===Node.ELEMENT_NODE);x.length>1&&(x=x.filter(v=>v.hasAttribute(this.me)));let T=x[0];if(T)for(let v of m.getAttributeNames()){if(v===ce||v===ee)continue;let F=m.getAttribute(v);if(v==="class")T.classList.add(...F.split(" "));else if(v==="style"){let B=T.style,N=m.style;for(let L of N)B.setProperty(L,N.getPropertyValue(L))}else T.setAttribute(wt(v,n.o),F)}},xe=()=>{for(let x of m.getAttributeNames())!x.startsWith("@")&&!x.startsWith(n.o.u.on)&&m.removeAttribute(x)},Se=()=>{te(),xe(),o.v(me),n.be(m,!1),me.$emit=qe.emit,ke(n,Te),q(m,()=>{Ne(me)}),q(M,()=>{de(m)}),At(me)};o.E(A,Se)}}};var En=class{constructor(e,n){d(this,"Q");d(this,"X");d(this,"xe",[]);this.Q=e,this.X=n}},Ht=class{constructor(e){d(this,"i");d(this,"Te");d(this,"Re");d(this,"Y");var o;this.i=e,this.Te=e.o.tt(),this.Y=new Map;let n=new Map;for(let r of this.Te){let s=(o=r[0])!=null?o:"",i=n.get(s);i?i.push(r):n.set(s,[r])}this.Re=n}Ee(e){let n=this.Y.get(e);if(n)return n;let o=e,r=o.startsWith(".");r&&(o=":"+o.slice(1));let s=o.indexOf("."),a=(s<0?o:o.substring(0,s)).split(/[:@]/);X(a[0])&&(a[0]=r?".":o[0]);let c=s>=0?o.slice(s+1).split("."):[],l=!1,u=!1;for(let p=0;p<c.length;++p){let m=c[p];if(!l&&m==="camel"?l=!0:!u&&m==="prop"&&(u=!0),l&&u)break}l&&(a[a.length-1]=$(a[a.length-1])),u&&(a[0]=".");let f={terms:a,flags:c};return this.Y.set(e,f),f}ge(e,n){let o=new Map;if(!ct(e))return o;let r=this.Re,s=(c,l)=>{var f;let u=r.get((f=l[0])!=null?f:"");if(u)for(let p=0;p<u.length;++p){if(!l.startsWith(u[p]))continue;let m=o.get(l);if(!m){let y=this.Ee(l);m=new En(y.terms,y.flags),o.set(l,m)}m.xe.push(c);return}},i=c=>{var u;let l=c.attributes;if(!(!l||l.length===0))for(let f=0;f<l.length;++f){let p=(u=l.item(f))==null?void 0:u.name;p&&s(c,p)}};if(i(e),!n||!e.firstElementChild)return o;let a=e.querySelectorAll("*");for(let c of a)i(c);return o}};var go=()=>{},Gr=(t,e)=>{for(let n of t){let o=n.cloneNode(!0);e.appendChild(o)}},Vt=class{constructor(e){d(this,"i");d(this,"L");d(this,"Ce");this.i=e,this.L=e.o.u.is,this.Ce=Qe(this.L)+", [is]"}N(e){let n=e.hasAttribute(this.L),o=Me(e,this.Ce);for(let r of o)this.b(r);return n}b(e){let n=e.getAttribute(this.L);if(!n){if(n=e.getAttribute("is"),!n)return;if(!n.startsWith("regor:")){if(!n.startsWith("r-"))return;let o=n.slice(2).trim().toLowerCase();if(!o)return;let r=e.parentNode;if(!r)return;let s=document.createElement(o);for(let i of e.getAttributeNames())i!=="is"&&s.setAttribute(i,e.getAttribute(i));for(;e.firstChild;)s.appendChild(e.firstChild);r.insertBefore(s,e),e.remove(),this.i.H(s);return}n=`'${n.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.L),this.O(e,n)}U(e,n){let o=Je(e),r=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);r.insertBefore(s,e),Ge(s,o),o.forEach(a=>{z(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${n!=null?n:""}`);return r.insertBefore(i,s.nextSibling),{nodes:o,parent:r,commentBegin:s,commentEnd:i}}O(e,n){let{nodes:o,parent:r,commentBegin:s,commentEnd:i}=this.U(e,` => ${n} `),a=this.i.m.k(n),c=a.value,l=this.i.m,u=l.M(),f={name:""},p=ye(e)?o:[...o[0].childNodes],m=()=>{l.E(u,()=>{var C;let g=c()[0];if(I(g)&&(g.name?g=g.name:g=(C=Object.entries(l.J()).filter(D=>D[1]===g)[0])==null?void 0:C[0]),!W(g)||X(g)){Ee(s,i);return}if(f.name===g)return;Ee(s,i);let R=document.createElement(g);for(let D of e.getAttributeNames())D!==this.L&&R.setAttribute(D,e.getAttribute(D));Gr(p,R),r.insertBefore(R,i),this.i.H(R),f.name=g})},y=go;q(s,()=>{a.stop(),y(),y=go}),m(),y=a.subscribe(m)}};var V=t=>{let e=t;return e!=null&&e[Z]===1?e():e};var Jr=(t,e)=>{let[n,o]=e;K(o)?o(t,n):t.innerHTML=n==null?void 0:n.toString()},_t={mount:()=>({update:({el:t,values:e})=>{Jr(t,e)}})};var jt=class t{constructor(e){d(this,"Z");this.Z=e}static nt(e,n){var m,y;let o=e.m,r=e.o,s=r.u,i=new Set([s.for,s.if,s.else,s.elseif,s.pre]),a=r.P,c=o.J();if(Object.keys(c).length>0||r._.size>0)return;let l=e.j,u=[],f=0,p=[];for(let h=n.length-1;h>=0;--h)p.push(n[h]);for(;p.length>0;){let h=p.pop();if(h.nodeType===Node.ELEMENT_NODE){let R=h;if(R.tagName==="TEMPLATE"||R.tagName.includes("-"))return;let C=$(R.tagName).toUpperCase();if(r._.has(C)||c[C])return;let D=R.attributes;for(let G=0;G<D.length;++G){let M=(m=D.item(G))==null?void 0:m.name;if(!M)continue;if(i.has(M))return;let{terms:_,flags:ce}=l.Ee(M),[ee,U]=_,b=(y=a[M])!=null?y:a[ee];if(b){if(b===_t)return;u.push({nodeIndex:f,attrName:M,directive:b,option:U,flags:ce})}}++f}let g=h.childNodes;for(let R=g.length-1;R>=0;--R)p.push(g[R])}if(u.length!==0)return new t(u)}b(e,n){let o=[],r=[];for(let s=n.length-1;s>=0;--s)r.push(n[s]);for(;r.length>0;){let s=r.pop();s.nodeType===Node.ELEMENT_NODE&&o.push(s);let i=s.childNodes;for(let a=i.length-1;a>=0;--a)r.push(i[a])}for(let s=0;s<this.Z.length;++s){let i=this.Z[s],a=o[i.nodeIndex];a&&e.b(i.directive,a,i.attrName,!1,i.option,i.flags)}}};var Qr=(t,e)=>{let n=e.parentNode;if(n)for(let o=0;o<t.items.length;++o)n.insertBefore(t.items[o],e)},Xr=t=>{var a;let e=t.length,n=t.slice(),o=[],r,s,i;for(let c=0;c<e;++c){let l=t[c];if(l===0)continue;let u=o[o.length-1];if(u===void 0||t[u]<l){n[c]=u!=null?u:-1,o.push(c);continue}for(r=0,s=o.length-1;r<s;)i=r+s>>1,t[o[i]]<l?r=i+1:s=i;l<t[o[r]]&&(r>0&&(n[c]=o[r-1]),o[r]=c)}for(r=o.length,s=(a=o[r-1])!=null?a:-1;r-- >0;)o[r]=s,s=n[s];return o},$t=class{static ot(e){let{oldItems:n,newValues:o,getKey:r,isSameValue:s,mountNewValue:i,removeMountItem:a,endAnchor:c}=e,l=n.length,u=o.length,f=new Array(u),p=new Set;for(let b=0;b<u;++b){let A=r(o[b]);if(A===void 0||p.has(A))return;p.add(A),f[b]=A}let m=new Array(u),y=0,h=l-1,g=u-1;for(;y<=h&&y<=g;){let b=n[y];if(r(b.value)!==f[y]||!s(b.value,o[y]))break;b.value=o[y],m[y]=b,++y}for(;y<=h&&y<=g;){let b=n[h];if(r(b.value)!==f[g]||!s(b.value,o[g]))break;b.value=o[g],m[g]=b,--h,--g}if(y>h){for(let b=g;b>=y;--b){let A=b+1<u?m[b+1].items[0]:c;m[b]=i(b,o[b],A)}return m}if(y>g){for(let b=y;b<=h;++b)a(n[b]);return m}let R=y,C=y,D=g-C+1,G=new Array(D).fill(0),M=new Map;for(let b=C;b<=g;++b)M.set(f[b],b);let _=!1,ce=0;for(let b=R;b<=h;++b){let A=n[b],J=M.get(r(A.value));if(J===void 0){a(A);continue}if(!s(A.value,o[J])){a(A);continue}A.value=o[J],m[J]=A,G[J-C]=b+1,J>=ce?ce=J:_=!0}let ee=_?Xr(G):[],U=ee.length-1;for(let b=D-1;b>=0;--b){let A=C+b,J=A+1<u?m[A+1].items[0]:c;if(G[b]===0){m[A]=i(A,o[A],J);continue}let me=m[A];_&&(U>=0&&ee[U]===b?--U:me&&Qr(me,J))}return m}};var lt=class{constructor(e){d(this,"x",[]);d(this,"I",new Map);d(this,"ee");this.ee=e}get w(){return this.x.length}te(e){let n=this.ee(e.value);n!==void 0&&this.I.set(n,e)}ne(e){var o;let n=this.ee((o=this.x[e])==null?void 0:o.value);n!==void 0&&this.I.delete(n)}static rt(e,n){return{items:[],index:e,value:n,order:-1}}v(e){e.order=this.w,this.x.push(e),this.te(e)}st(e,n){let o=this.w;for(let r=e;r<o;++r)this.x[r].order=r+1;n.order=e,this.x.splice(e,0,n),this.te(n)}V(e){return this.x[e]}oe(e,n){this.ne(e),this.x[e]=n,this.te(n),n.order=e}ve(e){this.ne(e),this.x.splice(e,1);let n=this.w;for(let o=e;o<n;++o)this.x[o].order=o}we(e){let n=this.w;for(let o=e;o<n;++o)this.ne(o);this.x.splice(e)}$t(e){return this.I.has(e)}it(e){var o;let n=this.I.get(e);return(o=n==null?void 0:n.order)!=null?o:-1}};var Cn=Symbol("r-for"),Yr=t=>-1,bo=()=>{},Ft=class Ft{constructor(e){d(this,"i");d(this,"T");d(this,"re");d(this,"R");this.i=e,this.T=e.o.u.for,this.re=Qe(this.T),this.R=e.o.u.pre}N(e){let n=e.hasAttribute(this.T),o=Me(e,this.re);for(let r of o)this.at(r);return n}G(e){return e[Cn]?!0:(e[Cn]=!0,Me(e,this.re).forEach(n=>n[Cn]=!0),!1)}at(e){if(e.hasAttribute(this.R)||this.G(e))return;let n=e.getAttribute(this.T);if(!n){H(0,this.T,e);return}e.removeAttribute(this.T),this.ct(e,n)}Se(e){return fe(e)?[]:(K(e)&&(e=e()),Symbol.iterator in Object(e)?e:typeof e=="number"?(o=>({*[Symbol.iterator](){for(let r=1;r<=o;r++)yield r}}))(e):Object.entries(e))}ct(e,n){var mt;let o=this.pt(n);if(!(o!=null&&o.list)){H(1,this.T,n,e);return}let r=this.i.o.u.key,s=this.i.o.u.keyBind,i=(mt=e.getAttribute(r))!=null?mt:e.getAttribute(s);e.removeAttribute(r),e.removeAttribute(s);let a=Je(e),c=jt.nt(this.i,a),l=e.parentNode;if(!l)return;let u=`${this.T} => ${n}`,f=new Comment(`__begin__ ${u}`);l.insertBefore(f,e),Ge(f,a),a.forEach(O=>{z(O)}),e.remove();let p=new Comment(`__end__ ${u}`);l.insertBefore(p,f.nextSibling);let m=this.i,y=m.m,h=y.M(),R=h.length===1?[void 0,h[0]]:void 0,C=this.ut(i),D=(O,Q)=>C(O)===C(Q),G=(O,Q)=>O===Q,M=(O,Q,oe)=>{let te=o.createContext(Q,O),xe=lt.rt(te.index,Q),Se=()=>{var F,B;let x=(B=(F=p.parentNode)!=null?F:f.parentNode)!=null?B:l,T=oe.previousSibling,v=[];for(let N=0;N<a.length;++N){let L=a[N].cloneNode(!0);x.insertBefore(L,oe),v.push(L)}for(c?c.b(m,v):ke(m,v),T=T.nextSibling;T!==oe;)xe.items.push(T),T=T.nextSibling};return R?(R[0]=te.ctx,y.E(R,Se)):y.E(h,()=>{y.v(te.ctx),Se()}),xe},_=(O,Q)=>{let oe=k.V(O).items,te=oe[oe.length-1].nextSibling;for(let xe of oe)z(xe);k.oe(O,M(O,Q,te))},ce=(O,Q)=>{k.v(M(O,Q,p))},ee=O=>{for(let Q of k.V(O).items)z(Q)},U=O=>{let Q=k.w;for(let oe=O;oe<Q;++oe)k.V(oe).index(oe)},b=O=>{let Q=f.parentNode,oe=p.parentNode;if(!Q||!oe)return;let te=k.w;K(O)&&(O=O());let xe=V(O[0]);if(w(xe)&&xe.length===0){Ee(f,p),k.we(0);return}let Se=[];for(let S of this.Se(O[0]))Se.push(S);let x=$t.ot({oldItems:k.x,newValues:Se,getKey:C,isSameValue:G,mountNewValue:(S,P,re)=>M(S,P,re),removeMountItem:S=>{for(let P=0;P<S.items.length;++P)z(S.items[P])},endAnchor:p});if(x){k.x=x,k.I.clear();for(let S=0;S<x.length;++S){let P=x[S];P.order=S,P.index(S);let re=C(P.value);re!==void 0&&k.I.set(re,P)}return}let T=0,v=Number.MAX_SAFE_INTEGER,F=te,B=this.i.o.forGrowThreshold,N=()=>k.w<F+B;for(let S of Se){let P=()=>{if(T<te){let re=k.V(T++);if(D(re.value,S)){if(G(re.value,S))return;_(T-1,S);return}let De=k.it(C(S));if(De>=T&&De-T<10){if(--T,v=Math.min(v,T),ee(T),k.ve(T),--te,De>T+1)for(let Fe=T;Fe<De-1&&Fe<te&&!D(k.V(T).value,S);)++Fe,ee(T),k.ve(T),--te;P();return}N()?(k.st(T-1,M(T,S,k.V(T-1).items[0])),v=Math.min(v,T-1),++te):_(T-1,S)}else ce(T++,S)};P()}let L=T;for(te=k.w;T<te;)ee(T++);k.we(L),U(v)},A=()=>{J.stop(),qe(),qe=bo},J=y.k(o.list),me=J.value,qe=bo,Te=0,k=new lt(C);for(let O of this.Se(me()[0]))k.v(M(Te++,O,p));q(f,A),qe=J.subscribe(b)}pt(e){var c,l;let n=Ft.lt.exec(e);if(!n)return;let o=(n[1]+((c=n[2])!=null?c:"")).split(",").map(u=>u.trim()),r=o.length>1?o.length-1:-1,s=r!==-1&&(o[r]==="index"||(l=o[r])!=null&&l.startsWith("#"))?o[r]:"";s&&o.splice(r,1);let i=n[3];if(!i||o.length===0)return;let a=/[{[]/.test(e);return{list:i,createContext:(u,f)=>{let p={},m=V(u);if(!a&&o.length===1)p[o[0]]=u;else if(w(m)){let h=0;for(let g of o)p[g]=m[h++]}else for(let h of o)p[h]=m[h];let y={ctx:p,index:Yr};return s&&(y.index=p[s.startsWith("#")?s.substring(1):s]=ie(f)),y}}}ut(e){if(!e)return o=>o;let n=e.trim();if(!n)return o=>o;if(n.includes(".")){let o=this.ft(n),r=o.length>1?o.slice(1):void 0;return s=>{let i=V(s),a=this.Ae(i,o);return a!==void 0||!r?a:this.Ae(i,r)}}return o=>{var r;return V((r=V(o))==null?void 0:r[n])}}ft(e){return e.split(".").filter(n=>n.length>0)}Ae(e,n){var r;let o=e;for(let s of n)o=(r=V(o))==null?void 0:r[s];return V(o)}};d(Ft,"lt",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var qt=Ft;var zt=class{constructor(e){d(this,"m");d(this,"Ne");d(this,"Oe");d(this,"ke");d(this,"Me");d(this,"j");d(this,"o");d(this,"R");d(this,"Le");this.m=e,this.o=e.o,this.Oe=new qt(this),this.Ne=new vt(this),this.ke=new Vt(this),this.Me=new Pt(this),this.j=new Ht(this),this.R=this.o.u.pre,this.Le=this.o.u.dynamic}mt(e){let n=ye(e)?[e]:e.querySelectorAll("template");for(let o of n){if(o.hasAttribute(this.R))continue;let r=o.parentNode;if(!r)continue;let s=o.nextSibling;if(o.remove(),!o.content)continue;let i=[...o.content.childNodes];for(let a of i)r.insertBefore(a,s);ke(this,i)}}H(e){e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.R)||this.Ne.N(e)||this.Oe.N(e)||this.ke.N(e)||(this.Me.N(e),this.mt(e),this.be(e,!0))}be(e,n){var s;let o=this.j.ge(e,n),r=this.o.P;for(let[i,a]of o.entries()){let[c,l]=a.Q,u=(s=r[i])!=null?s:r[c];if(!u){console.error("directive not found:",c);continue}let f=a.xe;for(let p=0;p<f.length;++p){let m=f[p];this.b(u,m,i,!1,l,a.X)}}}b(e,n,o,r,s,i){if(n.hasAttribute(this.R))return;let a=n.getAttribute(o);n.removeAttribute(o);let c=l=>{let u=l;for(;u;){let f=u.getAttribute(at);if(f)return f;u=u.parentElement}return null};if(dn()){let l=c(n);if(l){this.m.E(oo(l),()=>{this.O(e,n,a,s,i)});return}}this.O(e,n,a,s,i)}dt(e,n,o){if(e!==St)return!1;if(X(o))return!0;let r=document.querySelector(o);if(r){let s=n.parentElement;if(!s)return!0;let i=new Comment(`teleported => '${o}'`);s.insertBefore(i,n),n.teleportedFrom=i,i.teleportedTo=n,q(i,()=>{z(n)}),r.appendChild(n)}return!0}O(e,n,o,r,s){if(n.nodeType!==Node.ELEMENT_NODE||o==null||this.dt(e,n,o))return;let i=this.yt(r,e.once),a=this.ht(e,o),c=this.gt(a,i);q(n,c.stop);let l=this.bt(n,o,a,i,r,s),u=this.xt(e,l,c);if(!u)return;let f=this.Tt(l,a,i,r,u);f(),e.once||(c.result=a.subscribe(f),i&&(c.dynamic=i.subscribe(f)))}yt(e,n){let o=co(e,this.Le);if(o)return this.m.k($(o),void 0,void 0,void 0,n)}ht(e,n){return this.m.k(n,e.isLazy,e.isLazyKey,e.collectRefObj,e.once)}gt(e,n){let o={stop:()=>{var r,s,i;e.stop(),n==null||n.stop(),(r=o.result)==null||r.call(o),(s=o.dynamic)==null||s.call(o),(i=o.mounted)==null||i.call(o),o.result=void 0,o.dynamic=void 0,o.mounted=void 0}};return o}bt(e,n,o,r,s,i){return{el:e,expr:n,values:o.value(),previousValues:void 0,option:r?r.value()[0]:s,previousOption:void 0,flags:i,parseResult:o,dynamicOption:r}}xt(e,n,o){let r=e.mount(n);if(typeof r=="function"){o.mounted=r;return}return r!=null&&r.unmount&&(o.mounted=r.unmount),r==null?void 0:r.update}Tt(e,n,o,r,s){let i,a;return()=>{let c=n.value(),l=o?o.value()[0]:r;e.values=c,e.previousValues=i,e.option=l,e.previousOption=a,i=c,a=l,s(e)}}};var To="http://www.w3.org/1999/xlink",Zr={itemscope:2,allowfullscreen:2,formnovalidate:2,ismap:2,nomodule:2,novalidate:2,readonly:2,async:1,autofocus:1,autoplay:1,controls:1,default:1,defer:1,disabled:1,hidden:1,inert:1,loop:1,open:1,required:1,reversed:1,scoped:1,seamless:1,checked:1,muted:1,multiple:1,selected:1};function es(t){return!!t||t===""}var ts=(t,e,n,o,r,s)=>{var a;if(o){s&&s.includes("camel")&&(o=$(o)),Kt(t,o,e[0],r);return}let i=e.length;for(let c=0;c<i;++c){let l=e[c];if(w(l)){let u=(a=n==null?void 0:n[c])==null?void 0:a[0],f=l[0],p=l[1];Kt(t,f,p,u)}else if(I(l))for(let u of Object.entries(l)){let f=u[0],p=u[1],m=n==null?void 0:n[c],y=m&&f in m?f:void 0;Kt(t,f,p,y)}else{let u=n==null?void 0:n[c],f=e[c++],p=e[c];Kt(t,f,p,u)}}},Rn={mount:()=>({update:({el:t,values:e,previousValues:n,option:o,previousOption:r,flags:s})=>{ts(t,e,n,o,r,s)}})},Kt=(t,e,n,o)=>{if(o&&o!==e&&t.removeAttribute(o),fe(e)){H(3,"r-bind",t);return}if(!W(e)){H(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){fe(n)?t.removeAttributeNS(To,e.slice(6,e.length)):t.setAttributeNS(To,e,n);return}let r=e in Zr;fe(n)||r&&!es(n)?t.removeAttribute(e):t.setAttribute(e,r?"":n)};var ns=(t,e,n)=>{let o=e.length;for(let r=0;r<o;++r){let s=e[r],i=n==null?void 0:n[r];if(w(s)){let a=s.length;for(let c=0;c<a;++c)xo(t,s[c],i==null?void 0:i[c])}else xo(t,s,i)}},vn={mount:()=>({update:({el:t,values:e,previousValues:n})=>{ns(t,e,n)}})},xo=(t,e,n)=>{let o=t.classList,r=W(e),s=W(n);if(e&&!r){if(n&&!s)for(let i in n)(!(i in e)||!e[i])&&o.remove(i);for(let i in e)e[i]&&o.add(i)}else r?n!==e&&(s&&o.remove(...n.trim().split(/\s+/)),o.add(...e.trim().split(/\s+/))):n&&s&&o.remove(...n.trim().split(/\s+/))};function os(t,e){if(t.length!==e.length)return!1;let n=!0;for(let o=0;n&&o<t.length;o++)n=Re(t[o],e[o]);return n}function Re(t,e){if(t===e)return!0;let n=un(t),o=un(e);if(n||o)return n&&o?t.getTime()===e.getTime():!1;if(n=st(t),o=st(e),n||o)return t===e;if(n=w(t),o=w(e),n||o)return n&&o?os(t,e):!1;if(n=I(t),o=I(e),n||o){if(!n||!o)return!1;let r=Object.keys(t).length,s=Object.keys(e).length;if(r!==s)return!1;for(let i in t){let a=Object.prototype.hasOwnProperty.call(t,i),c=Object.prototype.hasOwnProperty.call(e,i);if(a&&!c||!Re(t[i],e[i]))return!1}return!0}return String(t)===String(e)}function Wt(t,e){return t.findIndex(n=>Re(n,e))}var Eo=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var Gt=t=>{if(!E(t))throw j(3,"pause");t(void 0,void 0,3)};var Jt=t=>{if(!E(t))throw j(3,"resume");t(void 0,void 0,4)};var Ro={mount:({el:t,parseResult:e,flags:n})=>({update:({values:o})=>{rs(t,o[0])},unmount:ss(t,e,n)})},rs=(t,e)=>{let n=Ao(t);if(n&&vo(t))w(e)?e=Wt(e,ve(t))>-1:ue(e)?e=e.has(ve(t)):e=fs(t,e),t.checked=e;else if(n&&wo(t))t.checked=Re(e,ve(t));else if(n||No(t))So(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(Oo(t)){let o=t.options,r=o.length,s=t.multiple;for(let i=0;i<r;i++){let a=o[i],c=ve(a);if(s)w(e)?a.selected=Wt(e,c)>-1:a.selected=e.has(c);else if(Re(ve(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else H(7,t)},ft=t=>(E(t)&&(t=t()),K(t)&&(t=t()),t?W(t)?{trim:t.includes("trim"),lazy:t.includes("lazy"),number:t.includes("number"),int:t.includes("int")}:{trim:!!t.trim,lazy:!!t.lazy,number:!!t.number,int:!!t.int}:{trim:!1,lazy:!1,number:!1,int:!1}),vo=t=>t.type==="checkbox",wo=t=>t.type==="radio",So=t=>t.type==="number"||t.type==="range",Ao=t=>t.tagName==="INPUT",No=t=>t.tagName==="TEXTAREA",Oo=t=>t.tagName==="SELECT",ss=(t,e,n)=>{let o=e.value,r=ft(n==null?void 0:n.join(",")),s=ft(o()[1]),i={int:r.int||s.int,lazy:r.lazy||s.lazy,number:r.number||s.number,trim:r.trim||s.trim};if(!e.refs[0])return H(8,t),()=>{};let a=()=>e.refs[0],c=Ao(t);return c&&vo(t)?as(t,a):c&&wo(t)?ps(t,a):c||No(t)?is(t,i,a,o):Oo(t)?ms(t,a,o):(H(7,t),()=>{})},Co=/[.,' ·٫]/,is=(t,e,n,o)=>{let s=e.lazy?"change":"input",i=So(t),a=()=>{!e.trim&&!ft(o()[1]).trim||(t.value=t.value.trim())},c=p=>{let m=p.target;m.composing=1},l=p=>{let m=p.target;m.composing&&(m.composing=0,m.dispatchEvent(new Event(s)))},u=()=>{t.removeEventListener(s,f),t.removeEventListener("change",a),t.removeEventListener("compositionstart",c),t.removeEventListener("compositionend",l),t.removeEventListener("change",l)},f=p=>{let m=n();if(!m)return;let y=p.target;if(!y||y.composing)return;let h=y.value,g=ft(o()[1]);if(i||g.number||g.int){if(g.int)h=parseInt(h);else{if(Co.test(h[h.length-1])&&h.split(Co).length===2){if(h+="0",h=parseFloat(h),isNaN(h))h="";else if(m()===h)return}h=parseFloat(h)}isNaN(h)&&(h=""),t.value=h}else g.trim&&(h=h.trim());m(h)};return t.addEventListener(s,f),t.addEventListener("change",a),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",l),t.addEventListener("change",l),u},as=(t,e)=>{let n="change",o=()=>{t.removeEventListener(n,r)},r=()=>{let s=e();if(!s)return;let i=ve(t),a=t.checked,c=s();if(w(c)){let l=Wt(c,i),u=l!==-1;a&&!u?c.push(i):!a&&u&&c.splice(l,1)}else ue(c)?a?c.add(i):c.delete(i):s(ls(t,a))};return t.addEventListener(n,r),o},ve=t=>"_value"in t?t._value:t.value,Mo="trueValue",cs="falseValue",ko="true-value",us="false-value",ls=(t,e)=>{let n=e?Mo:cs;if(n in t)return t[n];let o=e?ko:us;return t.hasAttribute(o)?t.getAttribute(o):e},fs=(t,e)=>{if(Mo in t)return Re(e,t.trueValue);let o=ko;return t.hasAttribute(o)?Re(e,t.getAttribute(o)):Re(e,!0)},ps=(t,e)=>{let n="change",o=()=>{t.removeEventListener(n,r)},r=()=>{let s=e();if(!s)return;let i=ve(t);s(i)};return t.addEventListener(n,r),o},ms=(t,e,n)=>{let o="change",r=()=>{t.removeEventListener(o,s)},s=()=>{let i=e();if(!i)return;let c=ft(n()[1]).number,l=Array.prototype.filter.call(t.options,u=>u.selected).map(u=>c?Eo(ve(u)):ve(u));if(t.multiple){let u=i();try{if(Gt(i),ue(u)){u.clear();for(let f of l)u.add(f)}else w(u)?(u.splice(0),u.push(...l)):i(l)}finally{Jt(i),Y(i)}}else i(l[0])};return t.addEventListener(o,s),r};var ds=["stop","prevent","capture","self","once","left","right","middle","passive"],hs=t=>{let e={};if(X(t))return;let n=t.split(",");for(let o of ds)e[o]=n.includes(o);return e},ys=(t,e,n,o,r)=>{var l,u;if(o){let f=e.value(),p=V(o.value()[0]);return W(p)?wn(t,$(p),()=>e.value()[0],(l=r==null?void 0:r.join(","))!=null?l:f[1]):()=>{}}else if(n){let f=e.value();return wn(t,$(n),()=>e.value()[0],(u=r==null?void 0:r.join(","))!=null?u:f[1])}let s=[],i=()=>{s.forEach(f=>f())},a=e.value(),c=a.length;for(let f=0;f<c;++f){let p=a[f];if(K(p)&&(p=p()),I(p))for(let m of Object.entries(p)){let y=m[0],h=()=>{let R=e.value()[f];return K(R)&&(R=R()),R=R[y],K(R)&&(R=R()),R},g=p[y+"_flags"];s.push(wn(t,y,h,g))}else H(2,"r-on",t)}return i},Sn={isLazy:(t,e)=>e===-1&&t%2===0,isLazyKey:(t,e)=>e===0&&!t.endsWith("_flags"),once:!1,collectRefObj:!0,mount:({el:t,parseResult:e,option:n,dynamicOption:o,flags:r})=>ys(t,e,n,o,r)},gs=(t,e)=>{if(t.startsWith("keydown")||t.startsWith("keyup")||t.startsWith("keypress")){e!=null||(e="");let n=[...t.split("."),...e.split(",")];t=n[0];let o=n[1],r=n.includes("ctrl"),s=n.includes("shift"),i=n.includes("alt"),a=n.includes("meta"),c=l=>!(r&&!l.ctrlKey||s&&!l.shiftKey||i&&!l.altKey||a&&!l.metaKey);return o?[t,l=>c(l)?l.key.toUpperCase()===o.toUpperCase():!1]:[t,c]}return[t,n=>!0]},wn=(t,e,n,o)=>{if(X(e))return H(5,"r-on",t),()=>{};let r=hs(o),s=r?{capture:r.capture,passive:r.passive,once:r.once}:void 0,i;[e,i]=gs(e,o);let a=u=>{if(!i(u)||!n&&e==="submit"&&(r!=null&&r.prevent))return;let f=n(u);K(f)&&(f=f(u)),K(f)&&f(u)},c=()=>{t.removeEventListener(e,l,s)},l=u=>{if(!r){a(u);return}try{if(r.left&&u.button!==0||r.middle&&u.button!==1||r.right&&u.button!==2||r.self&&u.target!==t)return;r.stop&&u.stopPropagation(),r.prevent&&u.preventDefault(),a(u)}finally{r.once&&c()}};return t.addEventListener(e,l,s),c};var bs=(t,e,n,o)=>{if(n){o&&o.includes("camel")&&(n=$(n)),tt(t,n,e[0]);return}let r=e.length;for(let s=0;s<r;++s){let i=e[s];if(w(i)){let a=i[0],c=i[1];tt(t,a,c)}else if(I(i))for(let a of Object.entries(i)){let c=a[0],l=a[1];tt(t,c,l)}else{let a=e[s++],c=e[s];tt(t,a,c)}}},Lo={mount:()=>({update:({el:t,values:e,option:n,flags:o})=>{bs(t,e,n,o)}})};function Ts(t){return!!t||t===""}var tt=(t,e,n)=>{if(fe(e)){H(3,":prop",t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(de),1),t[e]=n!=null?n:"";return}let o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){t._value=n;let s=o==="OPTION"?t.getAttribute("value"):t.value,i=n!=null?n:"";s!==i&&(t.value=i),n==null&&t.removeAttribute(e);return}let r=!1;if(n===""||n==null){let s=typeof t[e];s==="boolean"?n=Ts(n):n==null&&s==="string"?(n="",r=!0):s==="number"&&(n=0,r=!0)}try{t[e]=n}catch(s){r||H(4,e,o,n,s)}r&&t.removeAttribute(e)};var Io={once:!0,mount:({el:t,parseResult:e,expr:n})=>{let o=e,r=o.value()[0],s=w(r),i=o.refs[0];return s?r.push(t):i?i==null||i(t):o.context[n]=t,()=>{if(s){let a=r.indexOf(t);a!==-1&&r.splice(a,1)}else i==null||i(null)}}};var xs=(t,e)=>{let n=Oe(t).data,o=n._ord;Qn(o)&&(o=n._ord=t.style.display),!!e[0]?t.style.display=o:t.style.display="none"},Do={mount:()=>({update:({el:t,values:e})=>{xs(t,e)}})};var Es=(t,e,n)=>{let o=e.length;for(let r=0;r<o;++r){let s=e[r],i=n==null?void 0:n[r];if(w(s)){let a=s.length;for(let c=0;c<a;++c)Uo(t,s[c],i==null?void 0:i[c])}else Uo(t,s,i)}},Qt={mount:()=>({update:({el:t,values:e,previousValues:n})=>{Es(t,e,n)}})},Uo=(t,e,n)=>{let o=t.style,r=W(e);if(e&&!r){if(n&&!W(n))for(let s in n)e[s]==null&&Nn(o,s,"");for(let s in e)Nn(o,s,e[s])}else{let s=o.display;if(r?n!==e&&(o.cssText=e):n&&t.removeAttribute("style"),"_ord"in Oe(t).data)return;o.display=s}},Bo=/\s*!important$/;function Nn(t,e,n){if(w(n))n.forEach(o=>{Nn(t,e,o)});else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{let o=Cs(t,e);Bo.test(n)?t.setProperty(Xe(o),n.replace(Bo,""),"important"):t[o]=n}}var Po=["Webkit","Moz","ms"],An={};function Cs(t,e){let n=An[e];if(n)return n;let o=$(e);if(o!=="filter"&&o in t)return An[e]=o;o=ut(o);for(let r=0;r<Po.length;r++){let s=Po[r]+o;if(s in t)return An[e]=s}return e}var ae=t=>Ho(V(t)),Ho=(t,e=new WeakMap)=>{if(!t||!I(t))return t;if(w(t))return t.map(ae);if(ue(t)){let o=new Set;for(let r of t.keys())o.add(ae(r));return o}if(Ae(t)){let o=new Map;for(let r of t)o.set(ae(r[0]),ae(r[1]));return o}if(e.has(t))return V(e.get(t));let n=yt({},t);e.set(t,n);for(let o of Object.entries(n))n[o[0]]=Ho(V(o[1]),e);return n};var Rs=(t,e)=>{var o;let n=e[0];t.textContent=ue(n)?JSON.stringify(ae([...n])):Ae(n)?JSON.stringify(ae([...n])):I(n)?JSON.stringify(ae(n)):(o=n==null?void 0:n.toString())!=null?o:""},Vo={mount:()=>({update:({el:t,values:e})=>{Rs(t,e)}})};var _o={mount:()=>({update:({el:t,values:e})=>{tt(t,"value",e[0])}})};var Ie=class Ie{constructor(e){d(this,"P",{});d(this,"u",{});d(this,"tt",()=>Object.keys(this.P).filter(e=>e.length===1||!e.startsWith(":")));d(this,"he",new Map);d(this,"_",new Map);d(this,"forGrowThreshold",10);d(this,"globalContext");d(this,"useInterpolation",!0);if(this.setDirectives("r-"),e){this.globalContext=e;return}this.globalContext=this.Et()}static getDefault(){var e;return(e=Ie.Ie)!=null?e:Ie.Ie=new Ie}Et(){let e={},n=globalThis;for(let o of Ie.Rt.split(","))e[o]=n[o];return e.ref=be,e.sref=ie,e.flatten=ae,e}addComponent(...e){for(let n of e){if(!n.defaultName){it.warning("Registered component's default name is not defined",n);continue}this.he.set(ut(n.defaultName),n),this._.set(ut(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this.P={".":Lo,":":Rn,"@":Sn,[`${e}on`]:Sn,[`${e}bind`]:Rn,[`${e}html`]:_t,[`${e}text`]:Vo,[`${e}show`]:Do,[`${e}model`]:Ro,":style":Qt,[`${e}style`]:Qt,[`${e}bind:style`]:Qt,":class":vn,[`${e}bind:class`]:vn,":ref":Io,":value":_o,[`${e}teleport`]:St},this.u={for:`${e}for`,if:`${e}if`,else:`${e}else`,elseif:`${e}else-if`,pre:`${e}pre`,inherit:`${e}inherit`,text:`${e}text`,context:":context",contextAlias:`${e}context`,bind:`${e}bind`,on:`${e}on`,keyBind:":key",key:"key",is:":is",teleport:`${e}teleport`,dynamic:"_d_"}}updateDirectives(e){e(this.P,this.u)}};d(Ie,"Ie"),d(Ie,"Rt","Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");var le=Ie;var Xt=(t,e)=>{if(!t)return;let o=(e!=null?e:le.getDefault()).u,r=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of ws(t,o.pre,s))vs(i,o.text,r,s)},vs=(t,e,n,o)=>{var c;let r=t.textContent;if(!r)return;let s=n,i=r.split(s);if(i.length<=1)return;if(((c=t.parentElement)==null?void 0:c.childNodes.length)===1&&i.length===3){let l=i[1],u=jo(l,o);if(u&&X(i[0])&&X(i[2])){let f=t.parentElement;f.setAttribute(e,l.substring(u.start.length,l.length-u.end.length)),f.innerText="";return}}let a=document.createDocumentFragment();for(let l of i){let u=jo(l,o);if(u){let f=document.createElement("span");f.setAttribute(e,l.substring(u.start.length,l.length-u.end.length)),a.appendChild(f)}else a.appendChild(document.createTextNode(l))}t.replaceWith(a)},ws=(t,e,n)=>{let o=[],r=s=>{var i;if(s.nodeType===Node.TEXT_NODE)n.some(a=>{var c;return(c=s.textContent)==null?void 0:c.includes(a.start)})&&o.push(s);else{if((i=s==null?void 0:s.hasAttribute)!=null&&i.call(s,e))return;for(let a of Ce(s))r(a)}};return r(t),o},jo=(t,e)=>e.find(n=>t.startsWith(n.start)&&t.endsWith(n.end));var Ss=9,As=10,Ns=13,Os=32,we=46,Yt=44,Ms=39,ks=34,Zt=40,nt=41,en=91,On=93,Mn=63,Ls=59,$o=58,qo=123,tn=125,_e=43,nn=45,kn=96,Fo=47,Ln=92,zo=new Set([2,3]),Xo={"=":2.5,"*=":2.5,"**=":2.5,"/=":2.5,"%=":2.5,"+=":2.5,"-=":2.5,"<<=":2.5,">>=":2.5,">>>=":2.5,"&=":2.5,"^=":2.5,"|=":2.5},Is=Kn(yt({"=>":2},Xo),{"||":3,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"/":12,"%":12,"**":13}),Yo=Object.keys(Xo),Ds=new Set(Yo),Dn=new Set(["=>"]);Yo.forEach(t=>Dn.add(t));var Ko={true:!0,false:!1,null:null},Us="this",ot="Expected ",je="Unexpected ",Bn="Unclosed ",Bs=ot+":",Wo=ot+"expression",Ps="missing }",Hs=je+"object property",Vs=Bn+"(",Go=ot+"comma",Jo=je+"token ",_s=je+"period",In=ot+"expression after ",js="missing unaryOp argument",$s=Bn+"[",qs=ot+"exponent (",Fs="Variable names cannot start with a number (",zs=Bn+'quote after "',pt=t=>t>=48&&t<=57,Qo=t=>Is[t],Un=class{constructor(e){d(this,"p");d(this,"e");this.p=e,this.e=0}get B(){return this.p.charAt(this.e)}get y(){return this.p.charCodeAt(this.e)}f(e){return this.p.charCodeAt(this.e)===e}$(e){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>=128}se(e){return this.$(e)||pt(e)}r(e){return new Error(`${e} at character ${this.e}`)}h(){let e=this.y,n=this.p,o=this.e;for(;e===Os||e===Ss||e===As||e===Ns;)e=n.charCodeAt(++o);this.e=o}parse(){let e=this.ie();return e.length===1?e[0]:{type:0,body:e}}ie(e){let n=[];for(;this.e<this.p.length;){let o=this.y;if(o===Ls||o===Yt)this.e++;else{let r=this.S();if(r)n.push(r);else if(this.e<this.p.length){if(o===e)break;throw this.r(je+'"'+this.B+'"')}}}return n}S(){var n;let e=(n=this.Ct())!=null?n:this.Ve();return this.h(),this.vt(e)}ae(){this.h();let e=this.p,n=this.e,o=e.charCodeAt(n),r=e.charCodeAt(n+1),s=e.charCodeAt(n+2),i=e.charCodeAt(n+3);if(isNaN(o))return!1;let a=!1,c=0;return o===62&&r===62&&s===62&&i===61?(a=">>>=",c=4):o===61&&r===61&&s===61?(a="===",c=3):o===33&&r===61&&s===61?(a="!==",c=3):o===62&&r===62&&s===62?(a=">>>",c=3):o===60&&r===60&&s===61?(a="<<=",c=3):o===62&&r===62&&s===61?(a=">>=",c=3):o===42&&r===42&&s===61?(a="**=",c=3):o===61&&r===62?(a="=>",c=2):o===124&&r===124?(a="||",c=2):o===63&&r===63?(a="??",c=2):o===38&&r===38?(a="&&",c=2):o===61&&r===61?(a="==",c=2):o===33&&r===61?(a="!=",c=2):o===60&&r===61?(a="<=",c=2):o===62&&r===61?(a=">=",c=2):o===60&&r===60?(a="<<",c=2):o===62&&r===62?(a=">>",c=2):o===43&&r===61?(a="+=",c=2):o===45&&r===61?(a="-=",c=2):o===42&&r===61?(a="*=",c=2):o===47&&r===61?(a="/=",c=2):o===37&&r===61?(a="%=",c=2):o===38&&r===61?(a="&=",c=2):o===94&&r===61?(a="^=",c=2):o===124&&r===61?(a="|=",c=2):o===42&&r===42?(a="**",c=2):o===105&&r===110?this.se(e.charCodeAt(n+2))||(a="in",c=2):o===61?(a="=",c=1):o===124?(a="|",c=1):o===94?(a="^",c=1):o===38?(a="&",c=1):o===60?(a="<",c=1):o===62?(a=">",c=1):o===43?(a="+",c=1):o===45?(a="-",c=1):o===42?(a="*",c=1):o===47?(a="/",c=1):o===37&&(a="%",c=1),a?(this.e+=c,a):!1}Ve(){let e,n,o,r,s,i,a,c;if(s=this.q(),!s||(n=this.ae(),!n))return s;if(r={value:n,prec:Qo(n),right_a:Dn.has(n)},i=this.q(),!i)throw this.r(In+n);let l=[s,r,i];for(;n=this.ae();){o=Qo(n),r={value:n,prec:o,right_a:Dn.has(n)},c=n;let u=f=>r.right_a&&f.right_a?o>f.prec:o<=f.prec;for(;l.length>2&&u(l[l.length-2]);)i=l.pop(),n=l.pop().value,s=l.pop(),e=this.De(n,s,i),l.push(e);if(e=this.q(),!e)throw this.r(In+c);l.push(r,e)}for(a=l.length-1,e=l[a];a>1;)e=this.De(l[a-1].value,l[a-2],e),a-=2;return e}q(){let e;if(this.h(),e=this.wt(),e)return this.ce(e);let n=this.y;if(pt(n)||n===we)return this.St();if(n===Ms||n===ks)e=this.At();else if(n===en)e=this.Nt();else{let o=this.Ot();if(o){let r=this.q();if(!r)throw this.r(js);return this.ce({type:7,operator:o,argument:r})}this.$(n)?(e=this.pe(),e.name in Ko?e={type:4,value:Ko[e.name],raw:e.name}:e.name===Us&&(e={type:5})):n===Zt&&(e=this.kt())}return e?(e=this.F(e),this.ce(e)):!1}De(e,n,o){if(e==="=>"){let r=n.type===1?n.expressions:[n];return{type:15,params:r,body:o}}return Ds.has(e)?{type:16,operator:e,left:n,right:o}:{type:8,operator:e,left:n,right:o}}wt(){let e={node:!1};return this.Mt(e),e.node||(this.Lt(e),e.node)||(this.It(e),e.node)||(this.Ue(e),e.node)||this.Vt(e),e.node}ce(e){let n={node:e};return this.Dt(n),this.Ut(n),this.Pt(n),n.node}Ot(){let e=this.p,n=this.e,o=e.charCodeAt(n),r=e.charCodeAt(n+1),s=e.charCodeAt(n+2),i=e.charCodeAt(n+3);return o===nn?(this.e++,"-"):o===33?(this.e++,"!"):o===126?(this.e++,"~"):o===_e?(this.e++,"+"):o===110&&r===101&&s===119&&!this.se(i)?(this.e+=3,"new"):!1}Ct(){let e={};return this.Bt(e),e.node}vt(e){let n={node:e};return this.Ht(n),n.node}F(e){this.h();let n=this.y;for(;n===we||n===en||n===Zt||n===Mn;){let o;if(n===Mn){if(this.p.charCodeAt(this.e+1)!==we)break;o=!0,this.e+=2,this.h(),n=this.y}if(this.e++,n===en){if(e={type:3,computed:!0,object:e,property:this.S()},this.h(),n=this.y,n!==On)throw this.r($s);this.e++}else n===Zt?e={type:6,arguments:this.Pe(nt),callee:e}:(o&&this.e--,this.h(),e={type:3,computed:!1,object:e,property:this.pe()});o&&(e.optional=!0),this.h(),n=this.y}return e}St(){let e=this.p,n=this.e,o=n;for(;pt(e.charCodeAt(o));)o++;if(e.charCodeAt(o)===we)for(o++;pt(e.charCodeAt(o));)o++;let r=e.charCodeAt(o);if(r===101||r===69){o++;let a=e.charCodeAt(o);(a===_e||a===nn)&&o++;let c=o;for(;pt(e.charCodeAt(o));)o++;if(c===o){this.e=o;let l=e.slice(n,o);throw this.r(qs+l+this.B+")")}}this.e=o;let s=e.slice(n,o),i=e.charCodeAt(o);if(this.$(i))throw this.r(Fs+s+this.B+")");if(i===we||s.length===1&&s.charCodeAt(0)===we)throw this.r(_s);return{type:4,value:parseFloat(s),raw:s}}At(){let e=this.p,n=e.length,o=this.e,r=e.charCodeAt(this.e++),s=this.e,i=s,a=[],c=!1,l=!1;for(;s<n;){let f=e.charCodeAt(s);if(f===r){l=!0,this.e=s+1;break}if(f===Ln){c||(c=!0),a.push(e.slice(i,s));let p=e.charCodeAt(s+1);a.push(this.Be(p)),s+=2,i=s}else s++}let u=c?a.join("")+e.slice(i,l?s:n):e.slice(i,l?s:n);if(!l)throw this.e=s,this.r(zs+u+'"');return{type:4,value:u,raw:e.substring(o,this.e)}}Be(e){switch(e){case 110:return`
|
|
2
|
+
`;case 114:return"\r";case 116:return" ";case 98:return"\b";case 102:return"\f";case 118:return"\v";default:return isNaN(e)?"":String.fromCharCode(e)}}pe(){let e=this.y,n=this.e;if(this.$(e))this.e++;else throw this.r(je+this.B);for(;this.e<this.p.length&&(e=this.y,this.se(e));)this.e++;return{type:2,name:this.p.slice(n,this.e)}}Pe(e){let n=[],o=!1,r=0;for(;this.e<this.p.length;){this.h();let s=this.y;if(s===e){if(o=!0,this.e++,e===nt&&r&&r>=n.length)throw this.r(Jo+String.fromCharCode(e));break}else if(s===Yt){if(this.e++,r++,r!==n.length){if(e===nt)throw this.r(Jo+",");for(let i=n.length;i<r;i++)n.push(null)}}else{if(n.length!==r&&r!==0)throw this.r(Go);{let i=this.S();if(!i||i.type===0)throw this.r(Go);n.push(i)}}}if(!o)throw this.r(ot+String.fromCharCode(e));return n}kt(){this.e++;let e=this.ie(nt);if(this.f(nt))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.r(Vs)}Nt(){return this.e++,{type:9,elements:this.Pe(On)}}Mt(e){if(this.f(qo)){this.e++;let n=[];for(;!isNaN(this.y);){if(this.h(),this.f(tn)){this.e++,e.node=this.F({type:10,properties:n});return}let o=this.S();if(!o)break;if(this.h(),o.type===2&&(this.f(Yt)||this.f(tn)))n.push({type:12,computed:!1,key:o,value:o,shorthand:!0});else if(this.f($o)){this.e++;let r=this.S();if(!r)throw this.r(Hs);let s=o.type===9;n.push({type:12,computed:s,key:s?o.elements[0]:o,value:r,shorthand:!1}),this.h()}else n.push(o);this.f(Yt)&&this.e++}throw this.r(Ps)}}Lt(e){let n=this.y;if((n===_e||n===nn)&&n===this.p.charCodeAt(this.e+1)){this.e+=2;let o=e.node={type:13,operator:n===_e?"++":"--",argument:this.F(this.pe()),prefix:!0};if(!o.argument||!zo.has(o.argument.type))throw this.r(je+o.operator)}}Ut(e){let n=e.node,o=this.y;if((o===_e||o===nn)&&o===this.p.charCodeAt(this.e+1)){if(!zo.has(n.type))throw this.r(je+(o===_e?"++":"--"));this.e+=2,e.node={type:13,operator:o===_e?"++":"--",argument:n,prefix:!1}}}It(e){this.p.charCodeAt(this.e)===we&&this.p.charCodeAt(this.e+1)===we&&this.p.charCodeAt(this.e+2)===we&&(this.e+=3,e.node={type:14,argument:this.S()})}Ht(e){if(e.node&&this.f(Mn)){this.e++;let n=e.node,o=this.S();if(!o)throw this.r(Wo);if(this.h(),this.f($o)){this.e++;let r=this.S();if(!r)throw this.r(Wo);e.node={type:11,test:n,consequent:o,alternate:r}}else throw this.r(Bs)}}Bt(e){if(this.h(),this.f(Zt)){let n=this.e;if(this.e++,this.h(),this.f(nt)){this.e++;let o=this.ae();if(o==="=>"){let r=this.Ve();if(!r)throw this.r(In+o);e.node={type:15,params:null,body:r};return}}this.e=n}}Pt(e){let n=e.node,o=n.type;(o===2||o===3)&&this.f(kn)&&(e.node={type:17,tag:n,quasi:this.Ue(e)})}Ue(e){if(!this.f(kn))return;let n=this.p,o=n.length,r={type:19,quasis:[],expressions:[]},s=++this.e,i=[],a=[],c=!1,l=u=>{if(!c){let m=n.slice(s,this.e);return r.quasis.push({type:18,value:{raw:m,cooked:m},tail:u})}i.push(n.slice(s,this.e)),a.push(n.slice(s,this.e));let f=i.join(""),p=a.join("");return i.length=0,a.length=0,c=!1,r.quasis.push({type:18,value:{raw:f,cooked:p},tail:u})};for(;this.e<o;){let u=n.charCodeAt(this.e);if(u===kn)return l(!0),this.e+=1,e.node=r,r;if(u===36&&n.charCodeAt(this.e+1)===qo){if(l(!1),this.e+=2,r.expressions.push(...this.ie(tn)),!this.f(tn))throw this.r("unclosed ${");this.e+=1,s=this.e}else if(u===Ln){c||(c=!0),i.push(n.slice(s,this.e)),a.push(n.slice(s,this.e));let f=n.charCodeAt(this.e+1);i.push(n.slice(this.e,this.e+2)),a.push(this.Be(f)),this.e+=2,s=this.e}else this.e+=1}throw this.r("Unclosed `")}Dt(e){let n=e.node;if(!n||n.operator!=="new"||!n.argument)return;if(!n.argument||![6,3].includes(n.argument.type))throw this.r("Expected new function()");e.node=n.argument;let o=e.node;for(;o.type===3||o.type===6&&o.callee.type===3;)o=o.type===3?o.object:o.callee.object;o.type=20}Vt(e){if(!this.f(Fo))return;let n=++this.e,o=!1;for(;this.e<this.p.length;){if(this.y===Fo&&!o){let r=this.p.slice(n,this.e),s="";for(;++this.e<this.p.length;){let a=this.y;if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)s+=this.B;else break}let i;try{i=new RegExp(r,s)}catch(a){throw this.r(a.message)}return e.node={type:4,value:i,raw:this.p.slice(n-1,this.e)},e.node=this.F(e.node),e.node}this.f(en)?o=!0:o&&this.f(On)&&(o=!1),this.e+=this.f(Ln)?2:1}throw this.r("Unclosed Regex")}},Zo=t=>new Un(t).parse();var Ks={"=>":(t,e)=>{},"=":(t,e)=>{},"*=":(t,e)=>{},"**=":(t,e)=>{},"/=":(t,e)=>{},"%=":(t,e)=>{},"+=":(t,e)=>{},"-=":(t,e)=>{},"<<=":(t,e)=>{},">>=":(t,e)=>{},">>>=":(t,e)=>{},"&=":(t,e)=>{},"^=":(t,e)=>{},"|=":(t,e)=>{},"||":(t,e)=>t()||e(),"??":(t,e)=>{var n;return(n=t())!=null?n:e()},"&&":(t,e)=>t()&&e(),"|":(t,e)=>t|e,"^":(t,e)=>t^e,"&":(t,e)=>t&e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,in:(t,e)=>t in e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"**":(t,e)=>ht(t,e)},Ws={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},or=t=>{if(!(t!=null&&t.some(nr)))return t;let e=[];return t.forEach(n=>nr(n)?e.push(...n):e.push(n)),e},er=(...t)=>or(t),Pn=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},Gs={"++":(t,e)=>{let n=t[e];if(E(n)){let o=n();return n(++o),o}return++t[e]},"--":(t,e)=>{let n=t[e];if(E(n)){let o=n();return n(--o),o}return--t[e]}},Js={"++":(t,e)=>{let n=t[e];if(E(n)){let o=n();return n(o+1),o}return t[e]++},"--":(t,e)=>{let n=t[e];if(E(n)){let o=n();return n(o-1),o}return t[e]--}},tr={"=":(t,e,n)=>{let o=t[e];return E(o)?o(n):t[e]=n},"+=":(t,e,n)=>{let o=t[e];return E(o)?o(o()+n):t[e]+=n},"-=":(t,e,n)=>{let o=t[e];return E(o)?o(o()-n):t[e]-=n},"*=":(t,e,n)=>{let o=t[e];return E(o)?o(o()*n):t[e]*=n},"/=":(t,e,n)=>{let o=t[e];return E(o)?o(o()/n):t[e]/=n},"%=":(t,e,n)=>{let o=t[e];return E(o)?o(o()%n):t[e]%=n},"**=":(t,e,n)=>{let o=t[e];return E(o)?o(ht(o(),n)):t[e]=ht(t[e],n)},"<<=":(t,e,n)=>{let o=t[e];return E(o)?o(o()<<n):t[e]<<=n},">>=":(t,e,n)=>{let o=t[e];return E(o)?o(o()>>n):t[e]>>=n},">>>=":(t,e,n)=>{let o=t[e];return E(o)?o(o()>>>n):t[e]>>>=n},"|=":(t,e,n)=>{let o=t[e];return E(o)?o(o()|n):t[e]|=n},"&=":(t,e,n)=>{let o=t[e];return E(o)?o(o()&n):t[e]&=n},"^=":(t,e,n)=>{let o=t[e];return E(o)?o(o()^n):t[e]^=n}},on=(t,e)=>K(t)?t.bind(e):t,Hn=class{constructor(e,n,o,r,s){d(this,"l");d(this,"He");d(this,"_e");d(this,"je");d(this,"A");d(this,"$e");d(this,"qe");this.l=w(e)?e:[e],this.He=n,this._e=o,this.je=r,this.qe=!!s}Fe(e,n){if(n&&e in n)return n;for(let o of this.l)if(e in o)return o}2(e,n,o){let r=e.name;if(r==="$root")return this.l[this.l.length-1];if(r==="$parent")return this.l[1];if(r==="$ctx")return[...this.l];if(o&&r in o)return this.A=o[r],on(V(o[r]),o);for(let i of this.l)if(r in i)return this.A=i[r],on(V(i[r]),i);let s=this.He;if(s&&r in s)return this.A=s[r],on(V(s[r]),s)}5(e,n,o){return this.l[0]}0(e,n,o){return this.Ke(n,o,er,...e.body)}1(e,n,o){return this.C(n,o,(...r)=>r.pop(),...e.expressions)}3(e,n,o){let{obj:r,key:s}=this.ue(e,n,o),i=r==null?void 0:r[s];return this.A=i,on(V(i),r)}4(e,n,o){return e.value}6(e,n,o){let r=(i,...a)=>K(i)?i(...or(a)):i,s=this.C(++n,o,r,e.callee,...e.arguments);return this.A=s,s}7(e,n,o){return this.C(n,o,Ws[e.operator],e.argument)}8(e,n,o){let r=Ks[e.operator];switch(e.operator){case"||":case"&&":case"??":return r(()=>this.g(e.left,n,o),()=>this.g(e.right,n,o))}return this.C(n,o,r,e.left,e.right)}9(e,n,o){return this.Ke(++n,o,er,...e.elements)}10(e,n,o){let r={},s=(...i)=>{i.forEach(a=>{Object.assign(r,a)})};return this.C(++n,o,s,...e.properties),r}11(e,n,o){return this.C(n,o,r=>this.g(r?e.consequent:e.alternate,n,o),e.test)}12(e,n,o){var u;let r={},s=f=>(f==null?void 0:f.type)!==15,i=(u=this.je)!=null?u:()=>!1,a=n===0&&this.qe,c=f=>this.ze(a,e.key,n,Pn(f,o)),l=f=>this.ze(a,e.value,n,Pn(f,o));if(e.shorthand){let f=e.key.name;r[f]=s(e.key)&&i(f,n)?c:c()}else if(e.computed){let f=V(c());r[f]=s(e.value)&&i(f,n)?l:l()}else{let f=e.key.type===4?e.key.value:e.key.name;r[f]=s(e.value)&&i(f,n)?()=>l:l()}return r}ue(e,n,o){let r=this.g(e.object,n,o),s=e.computed?this.g(e.property,n,o):e.property.name;return{obj:r,key:s}}13(e,n,o){let r=e.argument,s=e.operator,i=e.prefix?Gs:Js;if(r.type===2){let a=r.name,c=this.Fe(a,o);return fe(c)?void 0:i[s](c,a)}if(r.type===3){let{obj:a,key:c}=this.ue(r,n,o);return i[s](a,c)}}16(e,n,o){let r=e.left,s=e.operator;if(r.type===2){let i=r.name,a=this.Fe(i,o);if(fe(a))return;let c=this.g(e.right,n,o);return tr[s](a,i,c)}if(r.type===3){let{obj:i,key:a}=this.ue(r,n,o),c=this.g(e.right,n,o);return tr[s](i,a,c)}}14(e,n,o){let r=this.g(e.argument,n,o);return w(r)&&(r.s=rr),r}17(e,n,o){return this[6]({type:6,callee:e.tag,arguments:[{type:9,elements:e.quasi.quasis},...e.quasi.expressions]},n,o)}19(e,n,o){let r=(...s)=>s.reduce((i,a,c)=>i+=a+e.quasis[c+1].value.cooked,e.quasis[0].value.cooked);return this.C(n,o,r,...e.expressions)}18(e,n,o){return e.value.cooked}20(e,n,o){let r=(s,...i)=>new s(...i);return this.C(n,o,r,e.callee,...e.arguments)}15(e,n,o){return(...r)=>{let s=Object.create(o!=null?o:{}),i=e.params;if(i){let a=0;for(let c of i)s[c.name]=r[a++]}return this.g(e.body,n,s)}}g(e,n,o){let r=V(this[e.type](e,n,o));return this.$e=e.type,r}ze(e,n,o,r){let s=this.g(n,o,r);return e&&this.We()?this.A:s}We(){let e=this.$e;return(e===2||e===3||e===6)&&E(this.A)}eval(e,n){let{value:o,refs:r}=Lt(()=>this.g(e,-1,n)),s={value:o,refs:r};return this.We()&&(s.ref=this.A),s}C(e,n,o,...r){let s=r.map(i=>i&&this.g(i,e,n));return o(...s)}Ke(e,n,o,...r){let s=this._e;if(!s)return this.C(e,n,o,...r);let i=r.map((a,c)=>a&&(a.type!==15&&s(c,e)?l=>this.g(a,e,Pn(l,n)):this.g(a,e,n)));return o(...i)}},rr=Symbol("s"),nr=t=>(t==null?void 0:t.s)===rr,sr=(t,e,n,o,r,s,i)=>new Hn(e,n,o,r,i).eval(t,s);var ir={},ar=t=>!!t,rn=class{constructor(e,n){d(this,"l");d(this,"o");d(this,"Ge",[]);this.l=e,this.o=n}v(e){this.l=[e,...this.l]}J(){return this.l.map(n=>n.components).filter(ar).reverse().reduce((n,o)=>{for(let[r,s]of Object.entries(o))n[r.toUpperCase()]=s;return n},{})}et(){let e=[],n=new Set,o=this.l.map(r=>r.components).filter(ar).reverse();for(let r of o)for(let s of Object.keys(r))n.has(s)||(n.add(s),e.push(s));return e}k(e,n,o,r,s){var R;let i=[],a=[],c=new Set,l=()=>{for(let C=0;C<a.length;++C)a[C]();a.length=0},p={value:()=>i,stop:()=>{l(),c.clear()},subscribe:(C,D)=>(c.add(C),D&&C(i),()=>{c.delete(C)}),refs:[],context:this.l[0]};if(X(e))return p;let m=this.o.globalContext,y=[],h=new Set,g=(C,D,G,M)=>{try{let _=sr(C,D,m,n,o,M,r);return G&&_.refs.length>0&&y.push(..._.refs),{value:_.value,refs:_.refs,ref:_.ref}}catch(_){H(6,`evaluation error: ${e}`,_)}return{value:void 0,refs:[]}};try{let C=(R=ir[e])!=null?R:Zo("["+e+"]");ir[e]=C;let D=this.l.slice(),G=C.elements,M=G.length,_=new Array(M);p.refs=_;let ce=()=>{y.length=0,s||(h.clear(),l());let ee=new Array(M);for(let U=0;U<M;++U){let b=G[U];if(n!=null&&n(U,-1)){ee[U]=J=>g(b,D,!1,{$event:J}).value;continue}let A=g(b,D,!0);ee[U]=A.value,_[U]=A.ref}if(!s)for(let U of y)h.has(U)||(h.add(U),a.push(se(U,ce)));if(i=ee,c.size!==0)for(let U of c)c.has(U)&&U(i)};ce()}catch(C){H(6,`parse error: ${e}`,C)}return p}M(){return this.l.slice()}oe(e){this.Ge.push(this.l),this.l=e}E(e,n){try{this.oe(e),n()}finally{this._t()}}_t(){var e;this.l=(e=this.Ge.pop())!=null?e:[]}};var cr=t=>{let e=t.charCodeAt(0);return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||t==="-"||t==="_"||t===":"},Qs=(t,e)=>{let n="";for(let o=e;o<t.length;++o){let r=t[o];if(n){r===n&&(n="");continue}if(r==='"'||r==="'"){n=r;continue}if(r===">")return o}return-1},Xs=(t,e)=>{let n=e?2:1;for(;n<t.length&&(t[n]===" "||t[n]===`
|
|
3
|
+
`);)++n;if(n>=t.length||!cr(t[n]))return null;let o=n;for(;n<t.length&&cr(t[n]);)++n;return{start:o,end:n}},ur=new Set(["table","thead","tbody","tfoot"]),Ys=new Set(["thead","tbody","tfoot"]),Zs=new Set(["caption","colgroup","thead","tbody","tfoot","tr"]),sn=t=>{var s;let e=0,n=[],o=[],r=0;for(;e<t.length;){let i=t.indexOf("<",e);if(i===-1){n.push(t.slice(e));break}if(n.push(t.slice(e,i)),t.startsWith("<!--",i)){let g=t.indexOf("-->",i+4);if(g===-1){n.push(t.slice(i));break}n.push(t.slice(i,g+3)),e=g+3;continue}let a=Qs(t,i);if(a===-1){n.push(t.slice(i));break}let c=t.slice(i,a+1),l=c.startsWith("</");if(c.startsWith("<!")||c.startsWith("<?")){n.push(c),e=a+1;continue}let f=Xs(c,l);if(!f){n.push(c),e=a+1;continue}let p=c.slice(f.start,f.end);if(l){let g=o[o.length-1];g?(o.pop(),n.push(g.replacementHost?`</${g.replacementHost}>`:c),ur.has(g.effectiveTag)&&--r):n.push(c),e=a+1;continue}let m=c.charCodeAt(c.length-2)===47,y=o[o.length-1],h=null;if(r===0?p==="tr"?h="trx":p==="td"?h="tdx":p==="th"&&(h="thx"):Ys.has((s=y==null?void 0:y.effectiveTag)!=null?s:"")?h=p==="tr"?null:"tr":(y==null?void 0:y.effectiveTag)==="table"?h=Zs.has(p)?null:"tr":(y==null?void 0:y.effectiveTag)==="tr"&&(h=p==="td"||p==="th"?null:"td"),h){let g=h==="trx"||h==="tdx"||h==="thx";n.push(`${c.slice(0,f.start)}${h} is="${g?`r-${p}`:`regor:${p}`}"${c.slice(f.end)}`)}else m&&(y==null?void 0:y.effectiveTag)==="tr"?n.push(`${c.slice(0,c.length-2)}></${p}>`):n.push(c);if(!m){let g=h==="trx"?"tr":h==="tdx"?"td":h==="thx"?"th":h||p;o.push({replacementHost:h,effectiveTag:g}),ur.has(g)&&++r}e=a+1}return n.join("")};var ei="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",ti=new Set(ei.toUpperCase().split(",")),ni="http://www.w3.org/2000/svg",lr=(t,e)=>{ye(t)?t.content.appendChild(e):t.appendChild(e)},Vn=(t,e,n,o)=>{var i;let r=t.t;if(r){let a=n&&ti.has(r.toUpperCase())?document.createElementNS(ni,r.toLowerCase()):document.createElement(r),c=t.a;if(c)for(let u of Object.entries(c)){let f=u[0],p=u[1];f.startsWith("#")&&(p=f.substring(1),f="name"),a.setAttribute(wt(f,o),p)}let l=t.c;if(l)for(let u of l)Vn(u,a,n,o);lr(e,a);return}let s=t.d;if(s){let a;switch((i=t.n)!=null?i:Node.TEXT_NODE){case Node.COMMENT_NODE:a=document.createComment(s);break;case Node.TEXT_NODE:a=document.createTextNode(s);break}if(a)lr(e,a);else throw new Error("unsupported node type.")}},$e=(t,e,n)=>{n!=null||(n=le.getDefault());let o=document.createDocumentFragment();if(!w(t))return Vn(t,o,!!e,n),o;for(let r of t)Vn(r,o,!!e,n);return o};var fr=(t,e={selector:"#app"},n)=>{W(e)&&(e={selector:"#app",template:e}),uo(t)&&(t=t.context);let o=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!o||!Be(o))throw j(0);n||(n=le.getDefault());let r=()=>{for(let a of[...o.childNodes])z(a)},s=a=>{for(let c of a)o.appendChild(c)};if(e.template){let a=document.createRange().createContextualFragment(sn(e.template));r(),s(a.childNodes),e.element=a}else if(e.json){let a=$e(e.json,e.isSVG,n);r(),s(a.childNodes)}return n.useInterpolation&&Xt(o,n),new _n(t,o,n).b(),q(o,()=>{Ne(t)}),At(t),{context:t,unmount:()=>{z(o)},unbind:()=>{de(o)}}},_n=class{constructor(e,n,o){d(this,"jt");d(this,"Je");d(this,"o");d(this,"m");d(this,"i");this.jt=e,this.Je=n,this.o=o,this.m=new rn([e],o),this.i=new zt(this.m)}b(){this.i.H(this.Je)}};var rt=t=>{if(w(t))return t.map(r=>rt(r));let e={};if(t.tagName)e.t=t.tagName;else return t.nodeType===Node.COMMENT_NODE&&(e.n=Node.COMMENT_NODE),t.textContent&&(e.d=t.textContent),e;let n=t.getAttributeNames();n.length>0&&(e.a=Object.fromEntries(n.map(r=>{var s;return[r,(s=t.getAttribute(r))!=null?s:""]})));let o=Ce(t);return o.length>0&&(e.c=[...o].map(r=>rt(r))),e};var pr=(t,e={})=>{var s,i,a,c,l,u;w(e)&&(e={props:e}),W(t)&&(t={template:t});let n=(s=e.context)!=null?s:()=>({}),o=!1;if(t.element){let f=t.element;f.remove(),t.element=f}else if(t.selector){let f=document.querySelector(t.selector);if(!f)throw j(1,t.selector);f.remove(),t.element=f}else if(t.template){let f=document.createRange().createContextualFragment(sn(t.template));t.element=f}else t.json&&(t.element=$e(t.json,t.isSVG,e.config),o=!0);t.element||(t.element=document.createDocumentFragment()),((i=e.useInterpolation)==null||i)&&Xt(t.element,(a=e.config)!=null?a:le.getDefault());let r=t.element;if(!o&&(((l=t.isSVG)!=null?l:ct(r)&&((c=r.hasAttribute)!=null&&c.call(r,"isSVG")))||ct(r)&&r.querySelector("[isSVG]"))){let f=r.content,p=f?[...f.childNodes]:[...r.childNodes],m=rt(p);t.element=$e(m,!0,e.config)}return{context:n,template:t.element,inheritAttrs:(u=e.inheritAttrs)!=null?u:!0,props:e.props,defaultName:e.defaultName}};var mr=t=>{var e;(e=Ue())==null||e.onMounted.push(t)};var dr=t=>{let e,n={},o=(...r)=>{if(r.length<=2&&0 in r)throw j(4);return e&&!n.isStopped?e(...r):(e=oi(t,n),e(...r))};return o[Z]=1,Le(o,!0),o.stop=()=>{var r,s;return(s=(r=n.ref)==null?void 0:r.stop)==null?void 0:s.call(r)},ne(()=>o.stop(),!0),o},oi=(t,e)=>{var s;let n=(s=e.ref)!=null?s:ie(null);e.ref=n,e.isStopped=!1;let o=0,r=Ve(()=>{if(o>0){r(),e.isStopped=!0,Y(n);return}n(t()),++o});return n.stop=r,n};var hr=(t,e)=>{let n={},o,r=(...s)=>{if(s.length<=2&&0 in s)throw j(4);return o&&!n.isStopped?o(...s):(o=ri(t,e,n),o(...s))};return r[Z]=1,Le(r,!0),r.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},ne(()=>r.stop(),!0),r},ri=(t,e,n)=>{var a;let o=(a=n.ref)!=null?a:ie(null);n.ref=o,n.isStopped=!1;let r=0,s=c=>{if(r>0){o.stop(),n.isStopped=!0,Y(o);return}let l=t.map(u=>u());o(e(...l)),++r},i=[];for(let c of t){let l=se(c,s);i.push(l)}return s(null),o.stop=()=>{i.forEach(c=>{c()})},o};var yr=(t,e)=>{let n={},o,r=(...s)=>{if(s.length<=2&&0 in s)throw j(4);return o&&!n.isStopped?o(...s):(o=si(t,e,n),o(...s))};return r[Z]=1,Le(r,!0),r.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},ne(()=>r.stop(),!0),r},si=(t,e,n)=>{var s;let o=(s=n.ref)!=null?s:ie(null);n.ref=o,n.isStopped=!1;let r=0;return o.stop=se(t,i=>{if(r>0){o.stop(),n.isStopped=!0,Y(o);return}o(e(i)),++r},!0),o};var gr=t=>(t[Mt]=1,t);var br=(t,e)=>{if(!e)throw j(5);let o=He(t)?be:a=>a,r=()=>localStorage.setItem(e,JSON.stringify(ae(t()))),s=localStorage.getItem(e);if(s!=null)try{t(o(JSON.parse(s)))}catch(a){H(6,`persist: failed to parse data for key ${e}`,a),r()}else r();let i=Ve(r);return ne(i,!0),t};var jn=(t,...e)=>{let n="",o=t,r=e,s=o.length,i=r.length;for(let a=0;a<s;++a)n+=o[a],a<i&&(n+=r[a]);return n},Tr=jn;var xr=(t,e,n)=>{let o=[],r=()=>{e(t.map(i=>i()))};for(let i of t)o.push(se(i,r));n&&r();let s=()=>{for(let i of o)i()};return ne(s,!0),s};var Er=t=>{if(!E(t))throw j(3,"observerCount");return t(void 0,void 0,2)};var Cr=t=>{$n();try{t()}finally{qn()}},$n=()=>{ge.stack||(ge.stack=[]),ge.stack.push(new Set)},qn=()=>{let t=ge.stack;if(!t||t.length===0)return;let e=t.pop();if(t.length){let n=t[t.length-1];for(let o of e)n.add(o);return}delete ge.stack;for(let n of e)try{Y(n)}catch(o){console.error(o)}};return Mr(ii);})();
|