regor 1.4.2 → 1.4.3

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.
@@ -1,3 +1,3 @@
1
- var lr=Object.defineProperty,fr=Object.defineProperties;var pr=Object.getOwnPropertyDescriptors;var jn=Object.getOwnPropertySymbols;var mr=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable;var mt=Math.pow,en=(n,e,t)=>e in n?lr(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,dt=(n,e)=>{for(var t in e||(e={}))mr.call(e,t)&&en(n,t,e[t]);if(jn)for(var t of jn(e))dr.call(e,t)&&en(n,t,e[t]);return n},$n=(n,e)=>fr(n,pr(e));var m=(n,e,t)=>en(n,typeof e!="symbol"?e+"":e,t);var qn=(n,e,t)=>new Promise((o,r)=>{var s=c=>{try{a(t.next(c))}catch(l){r(l)}},i=c=>{try{a(t.throw(c))}catch(l){r(l)}},a=c=>c.done?o(c.value):Promise.resolve(c.value).then(s,i);a((t=t.apply(n,e)).next())});var $e=Symbol(":regor");var Te=n=>{let e=[n];for(let t=0;t<e.length;++t){let o=e[t];hr(o);for(let r=o.lastChild;r!=null;r=r.previousSibling)e.push(r)}},hr=n=>{let e=n[$e];if(!e)return;let t=e.unbinders;for(let o=0;o<t.length;++o)t[o]();t.length=0,n[$e]=void 0};var qe=[],ht=!1,yt,Fn=()=>{if(ht=!1,yt=void 0,qe.length!==0){for(let n=0;n<qe.length;++n)Te(qe[n]);qe.length=0}},G=n=>{n.remove(),qe.push(n),ht||(ht=!0,yt=setTimeout(Fn,1))},yr=()=>qn(null,null,function*(){qe.length===0&&!ht||(yt&&clearTimeout(yt),Fn())});var F=n=>typeof n=="function",z=n=>typeof n=="string",zn=n=>typeof n=="undefined",le=n=>n==null||typeof n=="undefined",X=n=>typeof n!="string"||!(n!=null&&n.trim()),gr=Object.prototype.toString,tn=n=>gr.call(n),Ae=n=>tn(n)==="[object Map]",ue=n=>tn(n)==="[object Set]",nn=n=>tn(n)==="[object Date]",tt=n=>typeof n=="symbol",w=Array.isArray,I=n=>n!==null&&typeof n=="object";var Kn={0:"createApp can't find root element. You must define either a valid `selector` or an `element`. Example: createApp({}, {selector: '#app', html: '...'})",1:n=>`Component template cannot be found. selector: ${n} .`,2:"Use composables in scope. usage: useScope(() => new MyApp()).",3:n=>`${n} requires ref source argument`,4:"computed is readonly.",5:"persist requires a string key."},_=(n,...e)=>{let t=Kn[n];return new Error(F(t)?t.call(Kn,...e):t)};var gt=[],Wn=()=>{let n={onMounted:[],onUnmounted:[]};return gt.push(n),n},De=n=>{let e=gt[gt.length-1];if(!e&&!n)throw _(2);return e},Gn=n=>{let e=De();return n&&rn(n),gt.pop(),e},on=Symbol("csp"),rn=n=>{let e=n,t=e[on];if(t){let o=De();if(t===o)return;o.onMounted.length>0&&t.onMounted.push(...o.onMounted),o.onUnmounted.length>0&&t.onUnmounted.push(...o.onUnmounted);return}e[on]=De()},bt=n=>n[on];var Ne=n=>{var t,o;let e=(t=bt(n))==null?void 0:t.onUnmounted;e==null||e.forEach(r=>{r()}),(o=n.unmounted)==null||o.call(n)};var nt=class{constructor(e,t,o,r,s){m(this,"props");m(this,"start");m(this,"end");m(this,"ctx");m(this,"autoProps",!0);m(this,"entangle",!0);m(this,"enableSwitch",!1);m(this,"onAutoPropsAssigned");m(this,"me");m(this,"emit",(e,t)=>{this.me.dispatchEvent(new CustomEvent(e,{detail:t}))});this.props=e,this.me=t,this.ctx=o,this.start=r,this.end=s}findContext(e,t=0){var r;if(t<0)return;let o=0;for(let s of(r=this.ctx)!=null?r:[])if(s instanceof e){if(o===t)return s;++o}}requireContext(e,t=0){let o=this.findContext(e,t);if(o!==void 0)return o;throw new Error(`${e} was not found in the context stack at occurrence ${t}.`)}unmount(){let e=this.start.nextSibling,t=this.end;for(;e&&e!==t;)G(e),e=e.nextSibling;for(let o of this.ctx)Ne(o)}};var Ue=n=>{let e=n,t=e[$e];if(t)return t;let o={unbinders:[],data:{}};return e[$e]=o,o};var K=(n,e)=>{Ue(n).unbinders.push(e)};var Jn={8:n=>`Model binding requires a ref at ${n.outerHTML}`,7:n=>`Model binding is not supported on ${n.tagName} element at ${n.outerHTML}`,0:(n,e)=>`${n} binding expression is missing at ${e.outerHTML}`,1:(n,e,t)=>`invalid ${n} expression: ${e} at ${t.outerHTML}`,2:(n,e)=>`${n} requires object expression at ${e.outerHTML}`,3:(n,e)=>`${n} binder: key is empty on ${e.outerHTML}.`,4:(n,e,t,o)=>({msg:`Failed setting prop "${n}" on <${e.toLowerCase()}>: value ${t} is invalid.`,args:[o]}),5:(n,e)=>`${n} binding missing event type at ${e.outerHTML}`,6:(n,e)=>({msg:n,args:[e]})},H=(n,...e)=>{let t=Jn[n],o=F(t)?t.call(Jn,...e):t,r=Tt.warning;r&&(z(o)?r(o):r(o,...o.args))},Tt={warning:console.warn};var Ct={},xt={},Qn=1,Xn=n=>{let e=(Qn++).toString();return Ct[e]=n,xt[e]=0,e},sn=n=>{xt[n]+=1},an=n=>{--xt[n]===0&&(delete Ct[n],delete xt[n])},Yn=n=>Ct[n],cn=()=>Qn!==1&&Object.keys(Ct).length>0,ot="r-switch",br=n=>{let e=n.filter(o=>Be(o)).map(o=>[...o.querySelectorAll("[r-switch]")].map(r=>r.getAttribute(ot))),t=new Set;return e.forEach(o=>{o.forEach(r=>r&&t.add(r))}),[...t]},Fe=(n,e)=>{if(!cn())return;let t=br(e);t.length!==0&&(t.forEach(sn),K(n,()=>{t.forEach(an)}))};var Et=()=>{},un=(n,e,t,o)=>{let r=[];for(let s of n){let i=s.cloneNode(!0);t.insertBefore(i,o),r.push(i)}Me(e,r)},ln=Symbol("r-if"),Zn=Symbol("r-else"),eo=n=>n[Zn]===1,Rt=class{constructor(e){m(this,"i");m(this,"D");m(this,"K");m(this,"z");m(this,"W");m(this,"T");m(this,"R");this.i=e,this.D=e.o.p.if,this.K=Ke(e.o.p.if),this.z=e.o.p.else,this.W=e.o.p.elseif,this.T=e.o.p.for,this.R=e.o.p.pre}Ze(e,t){let o=e.parentElement;for(;o!==null&&o!==document.documentElement;){if(o.hasAttribute(t))return!0;o=o.parentElement}return!1}N(e){let t=e.hasAttribute(this.D),o=Oe(e,this.K);for(let r of o)this.b(r);return t}G(e){return e[ln]?!0:(e[ln]=!0,Oe(e,this.K).forEach(t=>t[ln]=!0),!1)}b(e){if(e.hasAttribute(this.R)||this.G(e)||this.Ze(e,this.T))return;let t=e.getAttribute(this.D);if(!t){H(0,this.D,e);return}e.removeAttribute(this.D),this.O(e,t)}U(e,t,o){let r=ze(e),s=e.parentNode,i=document.createComment(`__begin__ :${t}${o!=null?o:""}`);s.insertBefore(i,e),Fe(i,r),r.forEach(c=>{G(c)}),e.remove(),t!=="if"&&(e[Zn]=1);let a=document.createComment(`__end__ :${t}${o!=null?o:""}`);return s.insertBefore(a,i.nextSibling),{nodes:r,parent:s,commentBegin:i,commentEnd:a}}de(e,t){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:()=>{un(r,this.i,s,a)},unmount:()=>{xe(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.M(r),u=l.value,f=this.de(o,t),p=Et;return K(a,()=>{l.stop(),p(),p=Et}),p=l.subscribe(t),[{mount:()=>{un(s,this.i,i,c)},unmount:()=>{xe(a,c)},isTrue:()=>!!u()[0],isMounted:!1},...f]}}O(e,t){let o=e.nextElementSibling,{nodes:r,parent:s,commentBegin:i,commentEnd:a}=this.U(e,"if",` => ${t} `),c=this.i.m.M(t),l=c.value,u=!1,f=this.i.m,p=f.k(),d=()=>{f.C(p,()=>{if(l()[0])u||(un(r,this.i,s,a),u=!0),y.forEach(g=>{g.unmount(),g.isMounted=!1});else{xe(i,a),u=!1;let g=!1;for(let C of y)!g&&C.isTrue()?(C.isMounted||(C.mount(),C.isMounted=!0),g=!0):(C.unmount(),C.isMounted=!1)}})},y=this.de(o,d),h=Et;K(i,()=>{c.stop(),h(),h=Et}),d(),h=c.subscribe(d)}};var ze=n=>{let e=he(n)?n.content.childNodes:[n],t=[];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}t.push(r)}return t},Me=(n,e)=>{for(let t=0;t<e.length;++t){let o=e[t];o.nodeType===Node.ELEMENT_NODE&&(eo(o)||n.H(o))}},Oe=(n,e)=>{var o;let t=n.querySelectorAll(e);return(o=n.matches)!=null&&o.call(n,e)?[n,...t]:t},he=n=>n instanceof HTMLTemplateElement,Be=n=>n.nodeType===Node.ELEMENT_NODE,rt=n=>n.nodeType===Node.ELEMENT_NODE,to=n=>n instanceof HTMLSlotElement,Ce=n=>he(n)?n.content.childNodes:n.childNodes,xe=(n,e)=>{let t=n.nextSibling;for(;t!=null&&t!==e;){let o=t.nextSibling;G(t),t=o}},no=function(){return this()},Tr=function(n){return this(n)},xr=()=>{throw new Error("value is readonly.")},Cr={get:no,set:Tr,enumerable:!0,configurable:!1},Er={get:no,set:xr,enumerable:!0,configurable:!1},ke=(n,e)=>{Object.defineProperty(n,"value",e?Er:Cr)},oo=(n,e)=>{if(!n)return!1;if(n.startsWith("["))return n.substring(1,n.length-1);let t=e.length;return n.startsWith(e)?n.substring(t,n.length-t):!1},Ke=n=>`[${CSS.escape(n)}]`,vt=(n,e)=>(n.startsWith("@")&&(n=e.p.on+":"+n.slice(1)),n.includes("[")&&(n=n.replace(/[[\]]/g,e.p.dynamic)),n),fn=n=>{let e=Object.create(null);return t=>e[t]||(e[t]=n(t))},Rr=/-(\w)/g,j=fn(n=>n&&n.replace(Rr,(e,t)=>t?t.toUpperCase():"")),vr=/\B([A-Z])/g,We=fn(n=>n&&n.replace(vr,"-$1").toLowerCase()),st=fn(n=>n&&n.charAt(0).toUpperCase()+n.slice(1));var wt={mount:()=>{}};var St=n=>{var t,o;let e=(t=bt(n))==null?void 0:t.onMounted;e==null||e.forEach(r=>{r()}),(o=n.mounted)==null||o.call(n)};var pn=Symbol("scope"),mn=n=>{try{Wn();let e=n();rn(e);let t={context:e,unmount:()=>Ne(e),[pn]:1};return t[pn]=1,t}finally{Gn()}},ro=n=>I(n)?pn in n:!1;var At=Symbol("ref"),Y=Symbol("sref"),Nt=Symbol("raw");var R=n=>n!=null&&n[Y]===1;var dn={collectRefObj:!0,mount:({parseResult:n})=>({update:({values:e})=>{let t=n.context,o=e[0];if(I(o))for(let r of Object.entries(o)){let s=r[0],i=r[1],a=t[s];a!==i&&(R(a)?a(i):t[s]=i)}}})};var re=(n,e)=>{var t;(t=De(e))==null||t.onUnmounted.push(n)};var se=(n,e,t,o=!0)=>{if(!R(n))throw _(3,"observe");t&&e(n());let s=n(void 0,void 0,0,e);return o&&re(s,!0),s};var it=(n,e)=>{if(n===e)return()=>{};let t=se(n,r=>e(r)),o=se(e,r=>n(r));return e(n()),()=>{t(),o()}};var at=n=>!!n&&n[Nt]===1;var Ge=n=>(n==null?void 0:n[At])===1;var fe=[],so=n=>{var e;fe.length!==0&&((e=fe[fe.length-1])==null||e.add(n))},Je=n=>{if(!n)return()=>{};let e={stop:()=>{}};return wr(n,e),re(()=>e.stop(),!0),e.stop},wr=(n,e)=>{if(!n)return;let t=[],o=!1,r=()=>{for(let s of t)s();t=[],o=!0};e.stop=r;try{let s=new Set;if(fe.push(s),n(i=>t.push(i)),o)return;for(let i of[...s]){let a=se(i,()=>{r(),Je(n)});t.push(a)}}finally{fe.pop()}},hn=n=>{let e=fe.length,t=e>0&&fe[e-1];try{return t&&fe.push(null),n()}finally{t&&fe.pop()}},yn=n=>{try{let e=new Set;return fe.push(e),{value:n(),refs:[...e]}}finally{fe.pop()}};var Z=(n,e,t)=>{if(!R(n))return;let o=n;if(o(void 0,e,1),!t)return;let r=o();if(r){if(w(r)||ue(r))for(let s of r)Z(s,e,!0);else if(Ae(r))for(let s of r)Z(s[0],e,!0),Z(s[1],e,!0);if(I(r))for(let s in r)Z(r[s],e,!0)}};function Sr(n,e,t){Object.defineProperty(n,e,{value:t,enumerable:!1,writable:!0,configurable:!0})}var Qe=(n,e,t)=>{t.forEach(function(o){let r=n[o];Sr(e,o,function(...i){let a=r.apply(this,i),c=this[Y];for(let l of c)Z(l);return a})})},Ot=(n,e)=>{Object.defineProperty(n,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var io=Array.prototype,gn=Object.create(io),Ar=["push","pop","shift","unshift","splice","sort","reverse"];Qe(io,gn,Ar);var ao=Map.prototype,Mt=Object.create(ao),Nr=["set","clear","delete"];Ot(Mt,"Map");Qe(ao,Mt,Nr);var co=Set.prototype,kt=Object.create(co),Or=["add","clear","delete"];Ot(kt,"Set");Qe(co,kt,Or);var ye={},ae=n=>{if(R(n)||at(n))return n;let e={auto:!0,_value:n},t=c=>I(c)?Y in c?!0:w(c)?(Object.setPrototypeOf(c,gn),!0):ue(c)?(Object.setPrototypeOf(c,kt),!0):Ae(c)?(Object.setPrototypeOf(c,Mt),!0):!1:!1,o=t(n),r=new Set,s=(c,l)=>{if(ye.stack&&ye.stack.length){ye.stack[ye.stack.length-1].add(a);return}r.size!==0&&hn(()=>{for(let u of[...r.keys()])r.has(u)&&u(c,l)})},i=c=>{let l=c[Y];l||(c[Y]=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||R(u)&&(u=u(),e._value===u)?u:(t(u)&&i(u),e._value=u,e.auto&&s(u,f),e._value):(so(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[Y]=1,ke(a,!1),o&&i(n),a};var Ee=n=>{if(at(n))return n;let e;if(R(n)?(e=n,n=e()):e=ae(n),n instanceof Node||n instanceof Date||n instanceof RegExp||n instanceof Promise||n instanceof Error)return e;if(e[At]=1,w(n)){let t=n.length;for(let o=0;o<t;++o){let r=n[o];Ge(r)||(n[o]=Ee(r))}return e}if(!I(n))return e;for(let t of Object.entries(n)){let o=t[1];if(Ge(o))continue;let r=t[0];tt(r)||(n[r]=null,n[r]=Ee(o))}return e};var uo=Symbol("modelBridge"),Lt=()=>{},Mr=n=>!!(n!=null&&n[uo]),kr=n=>{n[uo]=1},Lr=n=>{let e=Ee(n());return kr(e),e},lo={collectRefObj:!0,mount:({parseResult:n,option:e})=>{if(typeof e!="string"||!e)return Lt;let t=j(e),o,r,s=Lt,i=()=>{s(),s=Lt,o=void 0,r=void 0},a=()=>{s(),s=Lt},c=(u,f)=>{o!==u&&(a(),s=it(u,f),o=u)},l=()=>{var d;let u=(d=n.refs[0])!=null?d:n.value()[0],f=n.context,p=f[t];if(!R(u)){if(r&&p===r){r(u);return}if(i(),R(p)){p(u);return}f[t]=u;return}if(Mr(u)){if(p===u)return;R(p)?c(u,p):f[t]=u;return}r||(r=Lr(u)),f[t]=r,c(u,r)};return{update:()=>{l()},unmount:()=>{s()}}}};var It=class{constructor(e){m(this,"i");m(this,"ye");m(this,"he","");m(this,"ge",-1);this.i=e,this.ye=e.o.p.inherit}N(e){this.et(e)}tt(e){if(this.ge!==e.size){let t=[...e.keys()];this.he=[...t,...t.map(We)].join(","),this.ge=e.size}return this.he}nt(e){var t;for(let o=0;o<e.length;++o){let r=(t=e[o])==null?void 0:t.components;if(r)for(let s in r)return!0}return!1}et(e){var p;let t=this.i,o=t.m,r=t.o.be,s=t.o.j;if(r.size===0&&!this.nt(o.l))return;let i=o.J(),a=o.ot(),c=this.tt(r),l=[...c?[c]:[],...a,...a.map(We)].join(",");if(X(l))return;let u=e.querySelectorAll(l),f=(p=e.matches)!=null&&p.call(e,l)?[e,...u]:u;for(let d of f){if(d.hasAttribute(t.R))continue;let y=d.parentNode;if(!y)continue;let h=d.nextSibling,E=j(d.tagName).toUpperCase(),g=i[E],C=g!=null?g:s.get(E);if(!C)continue;let D=C.template;if(!D)continue;let W=d.parentElement;if(!W)continue;let M=new Comment(" begin component: "+d.tagName),V=new Comment(" end component: "+d.tagName);W.insertBefore(M,d),d.remove();let ie=t.o.p.context,ee=t.o.p.contextAlias,U=t.o.p.bind,b=(x,T)=>{let v={},q=x.hasAttribute(ie);return o.C(T,()=>{o.v(v),q?t.b(dn,x,ie):x.hasAttribute(ee)&&t.b(dn,x,ee);let B=C.props;if(!B||B.length===0)return;B=B.map(j);let N=new Map(B.map(S=>[S.toLowerCase(),S]));for(let S of[...B,...B.map(We)]){let P=x.getAttribute(S);P!==null&&(v[j(S)]=P,x.removeAttribute(S))}let L=t._.xe(x,!1);for(let[S,P]of L.entries()){let[oe,Ie]=P.Q;if(!Ie)continue;let je=N.get(j(Ie).toLowerCase());je&&(oe!=="."&&oe!==":"&&oe!==U||t.b(lo,x,S,!0,je,P.X))}}),v},A=[...o.k()],J=()=>{var q;let x=b(d,A),T=new nt(x,d,A,M,V),v=mn(()=>{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(R(L)){R(N)?T.entangle?K(M,it(N,L)):L(N()):L(N);continue}}else v[B]=N;(q=T.onAutoPropsAssigned)==null||q.call(T)}return{componentCtx:v,head:T}},{componentCtx:me,head:_e}=J(),ge=[...Ce(D)],k=ge.length,pt=d.childNodes.length===0,O=x=>{let T=x.parentElement;if(pt){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 q=d.querySelector(`template[name='${v}'], template[\\#${v}]`);!q&&v==="default"&&(q=d.querySelector("template:not([name])"),q&&q.getAttributeNames().filter(N=>N.startsWith("#")).length>0&&(q=null));let B=N=>{_e.enableSwitch&&o.C(A,()=>{o.v(me);let L=b(x,o.k());o.C(A,()=>{o.v(L);let S=o.k(),P=Xn(S);for(let oe of N)Be(oe)&&(oe.setAttribute(ot,P),sn(P),K(oe,()=>{an(P)}))})})};if(q){let N=[...Ce(q)];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(d)].filter(L=>!he(L));for(let L of N)T.insertBefore(L,x);B(N)}},Q=x=>{if(!Be(x))return;let T=x.querySelectorAll("slot");if(to(x)){O(x),x.remove();return}for(let v of T)O(v),v.remove()};(()=>{for(let x=0;x<k;++x)ge[x]=ge[x].cloneNode(!0),y.insertBefore(ge[x],h),Q(ge[x])})(),W.insertBefore(V,h);let te=()=>{if(!C.inheritAttrs)return;let x=ge.filter(v=>v.nodeType===Node.ELEMENT_NODE);x.length>1&&(x=x.filter(v=>v.hasAttribute(this.ye)));let T=x[0];if(T)for(let v of d.getAttributeNames()){if(v===ie||v===ee)continue;let q=d.getAttribute(v);if(v==="class")T.classList.add(...q.split(" "));else if(v==="style"){let B=T.style,N=d.style;for(let L of N)B.setProperty(L,N.getPropertyValue(L))}else T.setAttribute(vt(v,t.o),q)}},be=()=>{for(let x of d.getAttributeNames())!x.startsWith("@")&&!x.startsWith(t.o.p.on)&&d.removeAttribute(x)},Se=()=>{te(),be(),o.v(me),t.Te(d,!1),me.$emit=_e.emit,Me(t,ge),K(d,()=>{Ne(me)}),K(M,()=>{Te(d)}),St(me)};o.C(A,Se)}}};var bn=class{constructor(e,t){m(this,"Q");m(this,"X");m(this,"Re",[]);this.Q=e,this.X=t}},Dt=class{constructor(e){m(this,"i");m(this,"Ce");m(this,"Ee");m(this,"Y");var o;this.i=e,this.Ce=e.o.rt(),this.Y=new Map;let t=new Map;for(let r of this.Ce){let s=(o=r[0])!=null?o:"",i=t.get(s);i?i.push(r):t.set(s,[r])}this.Ee=t}ve(e){let t=this.Y.get(e);if(t)return t;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 d=c[p];if(!l&&d==="camel"?l=!0:!u&&d==="prop"&&(u=!0),l&&u)break}l&&(a[a.length-1]=j(a[a.length-1])),u&&(a[0]=".");let f={terms:a,flags:c};return this.Y.set(e,f),f}xe(e,t){let o=new Map;if(!rt(e))return o;let r=this.Ee,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 d=o.get(l);if(!d){let y=this.ve(l);d=new bn(y.terms,y.flags),o.set(l,d)}d.Re.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),!t||!e.firstElementChild)return o;let a=e.querySelectorAll("*");for(let c of a)i(c);return o}};var fo=()=>{},Ir=(n,e)=>{for(let t of n){let o=t.cloneNode(!0);e.appendChild(o)}},Ut=class{constructor(e){m(this,"i");m(this,"L");m(this,"we");this.i=e,this.L=e.o.p.is,this.we=Ke(this.L)+", [is]"}N(e){let t=e.hasAttribute(this.L),o=Oe(e,this.we);for(let r of o)this.b(r);return t}b(e){let t=e.getAttribute(this.L);if(!t){if(t=e.getAttribute("is"),!t)return;if(!t.startsWith("regor:")){if(!t.startsWith("r-"))return;let o=t.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}t=`'${t.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.L),this.O(e,t)}U(e,t){let o=ze(e),r=e.parentNode,s=document.createComment(`__begin__ dynamic ${t!=null?t:""}`);r.insertBefore(s,e),Fe(s,o),o.forEach(a=>{G(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${t!=null?t:""}`);return r.insertBefore(i,s.nextSibling),{nodes:o,parent:r,commentBegin:s,commentEnd:i}}O(e,t){let{nodes:o,parent:r,commentBegin:s,commentEnd:i}=this.U(e,` => ${t} `),a=this.i.m.M(t),c=a.value,l=this.i.m,u=l.k(),f={name:""},p=he(e)?o:[...o[0].childNodes],d=()=>{l.C(u,()=>{var C;let E=c()[0];if(I(E)&&(E.name?E=E.name:E=(C=Object.entries(l.J()).filter(D=>D[1]===E)[0])==null?void 0:C[0]),!z(E)||X(E)){xe(s,i);return}if(f.name===E)return;xe(s,i);let g=document.createElement(E);for(let D of e.getAttributeNames())D!==this.L&&g.setAttribute(D,e.getAttribute(D));Ir(p,g),r.insertBefore(g,i),this.i.H(g),f.name=E})},y=fo;K(s,()=>{a.stop(),y(),y=fo}),d(),y=a.subscribe(d)}};var $=n=>{let e=n;return e!=null&&e[Y]===1?e():e};var Dr=(n,e)=>{let[t,o]=e;F(o)?o(n,t):n.innerHTML=t==null?void 0:t.toString()},Bt={mount:()=>({update:({el:n,values:e})=>{Dr(n,e)}})};var Pt=class n{constructor(e){m(this,"Z");this.Z=e}static st(e,t){var d,y;let o=e.m,r=e.o,s=r.p,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.j.size>0)return;let l=e._,u=[],f=0,p=[];for(let h=t.length-1;h>=0;--h)p.push(t[h]);for(;p.length>0;){let h=p.pop();if(h.nodeType===Node.ELEMENT_NODE){let g=h;if(g.tagName==="TEMPLATE"||g.tagName.includes("-"))return;let C=j(g.tagName).toUpperCase();if(r.j.has(C)||c[C])return;let D=g.attributes;for(let W=0;W<D.length;++W){let M=(d=D.item(W))==null?void 0:d.name;if(!M)continue;if(i.has(M))return;let{terms:V,flags:ie}=l.ve(M),[ee,U]=V,b=(y=a[M])!=null?y:a[ee];if(b){if(b===Bt)return;u.push({nodeIndex:f,attrName:M,directive:b,option:U,flags:ie})}}++f}let E=h.childNodes;for(let g=E.length-1;g>=0;--g)p.push(E[g])}if(u.length!==0)return new n(u)}b(e,t){let o=[],r=[];for(let s=t.length-1;s>=0;--s)r.push(t[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 Ur=(n,e)=>{let t=e.parentNode;if(t)for(let o=0;o<n.items.length;++o)t.insertBefore(n.items[o],e)},Br=n=>{var a;let e=n.length,t=n.slice(),o=[],r,s,i;for(let c=0;c<e;++c){let l=n[c];if(l===0)continue;let u=o[o.length-1];if(u===void 0||n[u]<l){t[c]=u!=null?u:-1,o.push(c);continue}for(r=0,s=o.length-1;r<s;)i=r+s>>1,n[o[i]]<l?r=i+1:s=i;l<n[o[r]]&&(r>0&&(t[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=t[s];return o},Ht=class{static it(e){let{oldItems:t,newValues:o,getKey:r,isSameValue:s,mountNewValue:i,removeMountItem:a,endAnchor:c}=e,l=t.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 d=new Array(u),y=0,h=l-1,E=u-1;for(;y<=h&&y<=E;){let b=t[y];if(r(b.value)!==f[y]||!s(b.value,o[y]))break;b.value=o[y],d[y]=b,++y}for(;y<=h&&y<=E;){let b=t[h];if(r(b.value)!==f[E]||!s(b.value,o[E]))break;b.value=o[E],d[E]=b,--h,--E}if(y>h){for(let b=E;b>=y;--b){let A=b+1<u?d[b+1].items[0]:c;d[b]=i(b,o[b],A)}return d}if(y>E){for(let b=y;b<=h;++b)a(t[b]);return d}let g=y,C=y,D=E-C+1,W=new Array(D).fill(0),M=new Map;for(let b=C;b<=E;++b)M.set(f[b],b);let V=!1,ie=0;for(let b=g;b<=h;++b){let A=t[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],d[J]=A,W[J-C]=b+1,J>=ie?ie=J:V=!0}let ee=V?Br(W):[],U=ee.length-1;for(let b=D-1;b>=0;--b){let A=C+b,J=A+1<u?d[A+1].items[0]:c;if(W[b]===0){d[A]=i(A,o[A],J);continue}let me=d[A];V&&(U>=0&&ee[U]===b?--U:me&&Ur(me,J))}return d}};var ct=class{constructor(e){m(this,"x",[]);m(this,"V",new Map);m(this,"ee");this.ee=e}get w(){return this.x.length}te(e){let t=this.ee(e.value);t!==void 0&&this.V.set(t,e)}ne(e){var o;let t=this.ee((o=this.x[e])==null?void 0:o.value);t!==void 0&&this.V.delete(t)}static at(e,t){return{items:[],index:e,value:t,order:-1}}v(e){e.order=this.w,this.x.push(e),this.te(e)}ct(e,t){let o=this.w;for(let r=e;r<o;++r)this.x[r].order=r+1;t.order=e,this.x.splice(e,0,t),this.te(t)}I(e){return this.x[e]}oe(e,t){this.ne(e),this.x[e]=t,this.te(t),t.order=e}Se(e){this.ne(e),this.x.splice(e,1);let t=this.w;for(let o=e;o<t;++o)this.x[o].order=o}Ae(e){let t=this.w;for(let o=e;o<t;++o)this.ne(o);this.x.splice(e)}Gt(e){return this.V.has(e)}ut(e){var o;let t=this.V.get(e);return(o=t==null?void 0:t.order)!=null?o:-1}};var Tn=Symbol("r-for"),Pr=n=>-1,po=()=>{},_t=class _t{constructor(e){m(this,"i");m(this,"T");m(this,"re");m(this,"R");this.i=e,this.T=e.o.p.for,this.re=Ke(this.T),this.R=e.o.p.pre}N(e){let t=e.hasAttribute(this.T),o=Oe(e,this.re);for(let r of o)this.pt(r);return t}G(e){return e[Tn]?!0:(e[Tn]=!0,Oe(e,this.re).forEach(t=>t[Tn]=!0),!1)}pt(e){if(e.hasAttribute(this.R)||this.G(e))return;let t=e.getAttribute(this.T);if(!t){H(0,this.T,e);return}e.removeAttribute(this.T),this.lt(e,t)}Ne(e){return le(e)?[]:(F(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))}lt(e,t){var pt;let o=this.ft(t);if(!(o!=null&&o.list)){H(1,this.T,t,e);return}let r=this.i.o.p.key,s=this.i.o.p.keyBind,i=(pt=e.getAttribute(r))!=null?pt:e.getAttribute(s);e.removeAttribute(r),e.removeAttribute(s);let a=ze(e),c=Pt.st(this.i,a),l=e.parentNode;if(!l)return;let u=`${this.T} => ${t}`,f=new Comment(`__begin__ ${u}`);l.insertBefore(f,e),Fe(f,a),a.forEach(O=>{G(O)}),e.remove();let p=new Comment(`__end__ ${u}`);l.insertBefore(p,f.nextSibling);let d=this.i,y=d.m,h=y.k(),g=h.length===1?[void 0,h[0]]:void 0,C=this.mt(i),D=(O,Q)=>C(O)===C(Q),W=(O,Q)=>O===Q,M=(O,Q,ne)=>{let te=o.createContext(Q,O),be=ct.at(te.index,Q),Se=()=>{var q,B;let x=(B=(q=p.parentNode)!=null?q:f.parentNode)!=null?B:l,T=ne.previousSibling,v=[];for(let N=0;N<a.length;++N){let L=a[N].cloneNode(!0);x.insertBefore(L,ne),v.push(L)}for(c?c.b(d,v):Me(d,v),T=T.nextSibling;T!==ne;)be.items.push(T),T=T.nextSibling};return g?(g[0]=te.ctx,y.C(g,Se)):y.C(h,()=>{y.v(te.ctx),Se()}),be},V=(O,Q)=>{let ne=k.I(O).items,te=ne[ne.length-1].nextSibling;for(let be of ne)G(be);k.oe(O,M(O,Q,te))},ie=(O,Q)=>{k.v(M(O,Q,p))},ee=O=>{for(let Q of k.I(O).items)G(Q)},U=O=>{let Q=k.w;for(let ne=O;ne<Q;++ne)k.I(ne).index(ne)},b=O=>{let Q=f.parentNode,ne=p.parentNode;if(!Q||!ne)return;let te=k.w;F(O)&&(O=O());let be=$(O[0]);if(w(be)&&be.length===0){xe(f,p),k.Ae(0);return}let Se=[];for(let S of this.Ne(O[0]))Se.push(S);let x=Ht.it({oldItems:k.x,newValues:Se,getKey:C,isSameValue:W,mountNewValue:(S,P,oe)=>M(S,P,oe),removeMountItem:S=>{for(let P=0;P<S.items.length;++P)G(S.items[P])},endAnchor:p});if(x){k.x=x,k.V.clear();for(let S=0;S<x.length;++S){let P=x[S];P.order=S,P.index(S);let oe=C(P.value);oe!==void 0&&k.V.set(oe,P)}return}let T=0,v=Number.MAX_SAFE_INTEGER,q=te,B=this.i.o.forGrowThreshold,N=()=>k.w<q+B;for(let S of Se){let P=()=>{if(T<te){let oe=k.I(T++);if(D(oe.value,S)){if(W(oe.value,S))return;V(T-1,S);return}let Ie=k.ut(C(S));if(Ie>=T&&Ie-T<10){if(--T,v=Math.min(v,T),ee(T),k.Se(T),--te,Ie>T+1)for(let je=T;je<Ie-1&&je<te&&!D(k.I(T).value,S);)++je,ee(T),k.Se(T),--te;P();return}N()?(k.ct(T-1,M(T,S,k.I(T-1).items[0])),v=Math.min(v,T-1),++te):V(T-1,S)}else ie(T++,S)};P()}let L=T;for(te=k.w;T<te;)ee(T++);k.Ae(L),U(v)},A=()=>{J.stop(),_e(),_e=po},J=y.M(o.list),me=J.value,_e=po,ge=0,k=new ct(C);for(let O of this.Ne(me()[0]))k.v(M(ge++,O,p));K(f,A),_e=J.subscribe(b)}ft(e){var c,l;let t=_t.dt.exec(e);if(!t)return;let o=(t[1]+((c=t[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=t[3];if(!i||o.length===0)return;let a=/[{[]/.test(e);return{list:i,createContext:(u,f)=>{let p={},d=$(u);if(!a&&o.length===1)p[o[0]]=u;else if(w(d)){let h=0;for(let E of o)p[E]=d[h++]}else for(let h of o)p[h]=d[h];let y={ctx:p,index:Pr};return s&&(y.index=p[s.startsWith("#")?s.substring(1):s]=ae(f)),y}}}mt(e){if(!e)return o=>o;let t=e.trim();if(!t)return o=>o;if(t.includes(".")){let o=this.yt(t),r=o.length>1?o.slice(1):void 0;return s=>{let i=$(s),a=this.Oe(i,o);return a!==void 0||!r?a:this.Oe(i,r)}}return o=>{var r;return $((r=$(o))==null?void 0:r[t])}}yt(e){return e.split(".").filter(t=>t.length>0)}Oe(e,t){var r;let o=e;for(let s of t)o=(r=$(o))==null?void 0:r[s];return $(o)}};m(_t,"dt",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var Vt=_t;var jt=class{constructor(e){m(this,"se",0);m(this,"ie",new Map);m(this,"m");m(this,"Me");m(this,"ke");m(this,"Le");m(this,"Ve");m(this,"_");m(this,"o");m(this,"R");m(this,"Ie");this.m=e,this.o=e.o,this.ke=new Vt(this),this.Me=new Rt(this),this.Le=new Ut(this),this.Ve=new It(this),this._=new Dt(this),this.R=this.o.p.pre,this.Ie=this.o.p.dynamic}ht(e){let t=he(e)?[e]:e.querySelectorAll("template");for(let o of t){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);Me(this,i)}}H(e){++this.se;try{if(e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.R)||this.Me.N(e)||this.ke.N(e)||this.Le.N(e))return;this.Ve.N(e),this.ht(e),this.Te(e,!0)}finally{--this.se,this.se===0&&this.gt()}}bt(e,t){let o=document;if(!o){let r=e.parentNode;for(;r!=null&&r.parentNode;)r=r.parentNode;if(!r)return null;o=r}return o.querySelector(t)}De(e,t){let o=this.bt(e,t);if(!o)return!1;let r=e.parentElement;if(!r)return!1;let s=new Comment(`teleported => '${t}'`);return r.insertBefore(s,e),e.teleportedFrom=s,s.teleportedTo=e,K(s,()=>{G(e)}),o.appendChild(e),!0}xt(e,t){this.ie.set(e,t)}gt(){let e=this.ie;if(e.size!==0){this.ie=new Map;for(let[t,o]of e.entries())this.De(t,o)}}Te(e,t){var s;let o=this._.xe(e,t),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.Re;for(let p=0;p<f.length;++p){let d=f[p];this.b(u,d,i,!1,l,a.X)}}}b(e,t,o,r,s,i){if(t.hasAttribute(this.R))return;let a=t.getAttribute(o);t.removeAttribute(o);let c=l=>{let u=l;for(;u;){let f=u.getAttribute(ot);if(f)return f;u=u.parentElement}return null};if(cn()){let l=c(t);if(l){this.m.C(Yn(l),()=>{this.O(e,t,a,s,i)});return}}this.O(e,t,a,s,i)}Tt(e,t,o){return e!==wt?!1:(X(o)||this.De(t,o)||this.xt(t,o),!0)}O(e,t,o,r,s){if(t.nodeType!==Node.ELEMENT_NODE||o==null||this.Tt(e,t,o))return;let i=this.Rt(r,e.once),a=this.Ct(e,o),c=this.Et(a,i);K(t,c.stop);let l=this.vt(t,o,a,i,r,s),u=this.wt(e,l,c);if(!u)return;let f=this.St(l,a,i,r,u);f(),e.once||(c.result=a.subscribe(f),i&&(c.dynamic=i.subscribe(f)))}Rt(e,t){let o=oo(e,this.Ie);if(o)return this.m.M(j(o),void 0,void 0,void 0,t)}Ct(e,t){return this.m.M(t,e.isLazy,e.isLazyKey,e.collectRefObj,e.once)}Et(e,t){let o={stop:()=>{var r,s,i;e.stop(),t==null||t.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}vt(e,t,o,r,s,i){return{el:e,expr:t,values:o.value(),previousValues:void 0,option:r?r.value()[0]:s,previousOption:void 0,flags:i,parseResult:o,dynamicOption:r}}wt(e,t,o){let r=e.mount(t);if(typeof r=="function"){o.mounted=r;return}return r!=null&&r.unmount&&(o.mounted=r.unmount),r==null?void 0:r.update}St(e,t,o,r,s){let i,a;return()=>{let c=t.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 mo="http://www.w3.org/1999/xlink",Hr={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 Vr(n){return!!n||n===""}var _r=(n,e,t,o,r,s)=>{var a;if(o){s&&s.includes("camel")&&(o=j(o)),$t(n,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=t==null?void 0:t[c])==null?void 0:a[0],f=l[0],p=l[1];$t(n,f,p,u)}else if(I(l))for(let u of Object.entries(l)){let f=u[0],p=u[1],d=t==null?void 0:t[c],y=d&&f in d?f:void 0;$t(n,f,p,y)}else{let u=t==null?void 0:t[c],f=e[c++],p=e[c];$t(n,f,p,u)}}},xn={mount:()=>({update:({el:n,values:e,previousValues:t,option:o,previousOption:r,flags:s})=>{_r(n,e,t,o,r,s)}})},$t=(n,e,t,o)=>{if(o&&o!==e&&n.removeAttribute(o),le(e)){H(3,"r-bind",n);return}if(!z(e)){H(6,`Attribute key is not string at ${n.outerHTML}`,e);return}if(e.startsWith("xlink:")){le(t)?n.removeAttributeNS(mo,e.slice(6,e.length)):n.setAttributeNS(mo,e,t);return}let r=e in Hr;le(t)||r&&!Vr(t)?n.removeAttribute(e):n.setAttribute(e,r?"":t)};var jr=(n,e,t)=>{let o=e.length;for(let r=0;r<o;++r){let s=e[r],i=t==null?void 0:t[r];if(w(s)){let a=s.length;for(let c=0;c<a;++c)ho(n,s[c],i==null?void 0:i[c])}else ho(n,s,i)}},Cn={mount:()=>({update:({el:n,values:e,previousValues:t})=>{jr(n,e,t)}})},ho=(n,e,t)=>{let o=n.classList,r=z(e),s=z(t);if(e&&!r){if(t&&!s)for(let i in t)(!(i in e)||!e[i])&&o.remove(i);for(let i in e)e[i]&&o.add(i)}else r?t!==e&&(s&&o.remove(...t.trim().split(/\s+/)),o.add(...e.trim().split(/\s+/))):t&&s&&o.remove(...t.trim().split(/\s+/))};function $r(n,e){if(n.length!==e.length)return!1;let t=!0;for(let o=0;t&&o<n.length;o++)t=Re(n[o],e[o]);return t}function Re(n,e){if(n===e)return!0;let t=nn(n),o=nn(e);if(t||o)return t&&o?n.getTime()===e.getTime():!1;if(t=tt(n),o=tt(e),t||o)return n===e;if(t=w(n),o=w(e),t||o)return t&&o?$r(n,e):!1;if(t=I(n),o=I(e),t||o){if(!t||!o)return!1;let r=Object.keys(n).length,s=Object.keys(e).length;if(r!==s)return!1;for(let i in n){let a=Object.prototype.hasOwnProperty.call(n,i),c=Object.prototype.hasOwnProperty.call(e,i);if(a&&!c||!Re(n[i],e[i]))return!1}return!0}return String(n)===String(e)}function qt(n,e){return n.findIndex(t=>Re(t,e))}var yo=n=>{let e=parseFloat(n);return isNaN(e)?n:e};var En=n=>{if(!R(n))throw _(3,"pause");n(void 0,void 0,3)};var Rn=n=>{if(!R(n))throw _(3,"resume");n(void 0,void 0,4)};var bo={mount:({el:n,parseResult:e,flags:t})=>({update:({values:o})=>{qr(n,o[0])},unmount:Fr(n,e,t)})},qr=(n,e)=>{let t=Eo(n);if(t&&To(n))w(e)?e=qt(e,ve(n))>-1:ue(e)?e=e.has(ve(n)):e=Qr(n,e),n.checked=e;else if(t&&xo(n))n.checked=Re(e,ve(n));else if(t||Ro(n))Co(n)?n.value!==(e==null?void 0:e.toString())&&(n.value=e):n.value!==e&&(n.value=e);else if(vo(n)){let o=n.options,r=o.length,s=n.multiple;for(let i=0;i<r;i++){let a=o[i],c=ve(a);if(s)w(e)?a.selected=qt(e,c)>-1:a.selected=e.has(c);else if(Re(ve(a),e)){n.selectedIndex!==i&&(n.selectedIndex=i);return}}!s&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}else H(7,n)},ut=n=>(R(n)&&(n=n()),F(n)&&(n=n()),n?z(n)?{trim:n.includes("trim"),lazy:n.includes("lazy"),number:n.includes("number"),int:n.includes("int")}:{trim:!!n.trim,lazy:!!n.lazy,number:!!n.number,int:!!n.int}:{trim:!1,lazy:!1,number:!1,int:!1}),To=n=>n.type==="checkbox",xo=n=>n.type==="radio",Co=n=>n.type==="number"||n.type==="range",Eo=n=>n.tagName==="INPUT",Ro=n=>n.tagName==="TEXTAREA",vo=n=>n.tagName==="SELECT",Fr=(n,e,t)=>{let o=e.value,r=ut(t==null?void 0:t.join(",")),s=ut(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,n),()=>{};let a=()=>e.refs[0],c=Eo(n);return c&&To(n)?Kr(n,a):c&&xo(n)?Xr(n,a):c||Ro(n)?zr(n,i,a,o):vo(n)?Yr(n,a,o):(H(7,n),()=>{})},go=/[.,' ·٫]/,zr=(n,e,t,o)=>{let s=e.lazy?"change":"input",i=Co(n),a=()=>{!e.trim&&!ut(o()[1]).trim||(n.value=n.value.trim())},c=p=>{let d=p.target;d.composing=1},l=p=>{let d=p.target;d.composing&&(d.composing=0,d.dispatchEvent(new Event(s)))},u=()=>{n.removeEventListener(s,f),n.removeEventListener("change",a),n.removeEventListener("compositionstart",c),n.removeEventListener("compositionend",l),n.removeEventListener("change",l)},f=p=>{let d=t();if(!d)return;let y=p.target;if(!y||y.composing)return;let h=y.value,E=ut(o()[1]);if(i||E.number||E.int){if(E.int)h=parseInt(h);else{if(go.test(h[h.length-1])&&h.split(go).length===2){if(h+="0",h=parseFloat(h),isNaN(h))h="";else if(d()===h)return}h=parseFloat(h)}isNaN(h)&&(h=""),n.value=h}else E.trim&&(h=h.trim());d(h)};return n.addEventListener(s,f),n.addEventListener("change",a),n.addEventListener("compositionstart",c),n.addEventListener("compositionend",l),n.addEventListener("change",l),u},Kr=(n,e)=>{let t="change",o=()=>{n.removeEventListener(t,r)},r=()=>{let s=e();if(!s)return;let i=ve(n),a=n.checked,c=s();if(w(c)){let l=qt(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(Jr(n,a))};return n.addEventListener(t,r),o},ve=n=>"_value"in n?n._value:n.value,wo="trueValue",Wr="falseValue",So="true-value",Gr="false-value",Jr=(n,e)=>{let t=e?wo:Wr;if(t in n)return n[t];let o=e?So:Gr;return n.hasAttribute(o)?n.getAttribute(o):e},Qr=(n,e)=>{if(wo in n)return Re(e,n.trueValue);let o=So;return n.hasAttribute(o)?Re(e,n.getAttribute(o)):Re(e,!0)},Xr=(n,e)=>{let t="change",o=()=>{n.removeEventListener(t,r)},r=()=>{let s=e();if(!s)return;let i=ve(n);s(i)};return n.addEventListener(t,r),o},Yr=(n,e,t)=>{let o="change",r=()=>{n.removeEventListener(o,s)},s=()=>{let i=e();if(!i)return;let c=ut(t()[1]).number,l=Array.prototype.filter.call(n.options,u=>u.selected).map(u=>c?yo(ve(u)):ve(u));if(n.multiple){let u=i();try{if(En(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{Rn(i),Z(i)}}else i(l[0])};return n.addEventListener(o,s),r};var Zr=["stop","prevent","capture","self","once","left","right","middle","passive"],es=n=>{let e={};if(X(n))return;let t=n.split(",");for(let o of Zr)e[o]=t.includes(o);return e},ts=(n,e,t,o,r)=>{var l,u;if(o){let f=e.value(),p=$(o.value()[0]);return z(p)?vn(n,j(p),()=>e.value()[0],(l=r==null?void 0:r.join(","))!=null?l:f[1]):()=>{}}else if(t){let f=e.value();return vn(n,j(t),()=>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(F(p)&&(p=p()),I(p))for(let d of Object.entries(p)){let y=d[0],h=()=>{let g=e.value()[f];return F(g)&&(g=g()),g=g[y],F(g)&&(g=g()),g},E=p[y+"_flags"];s.push(vn(n,y,h,E))}else H(2,"r-on",n)}return i},wn={isLazy:(n,e)=>e===-1&&n%2===0,isLazyKey:(n,e)=>e===0&&!n.endsWith("_flags"),once:!1,collectRefObj:!0,mount:({el:n,parseResult:e,option:t,dynamicOption:o,flags:r})=>ts(n,e,t,o,r)},ns=(n,e)=>{if(n.startsWith("keydown")||n.startsWith("keyup")||n.startsWith("keypress")){e!=null||(e="");let t=[...n.split("."),...e.split(",")];n=t[0];let o=t[1],r=t.includes("ctrl"),s=t.includes("shift"),i=t.includes("alt"),a=t.includes("meta"),c=l=>!(r&&!l.ctrlKey||s&&!l.shiftKey||i&&!l.altKey||a&&!l.metaKey);return o?[n,l=>c(l)?l.key.toUpperCase()===o.toUpperCase():!1]:[n,c]}return[n,t=>!0]},vn=(n,e,t,o)=>{if(X(e))return H(5,"r-on",n),()=>{};let r=es(o),s=r?{capture:r.capture,passive:r.passive,once:r.once}:void 0,i;[e,i]=ns(e,o);let a=u=>{if(!i(u)||!t&&e==="submit"&&(r!=null&&r.prevent))return;let f=t(u);F(f)&&(f=f(u)),F(f)&&f(u)},c=()=>{n.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!==n)return;r.stop&&u.stopPropagation(),r.prevent&&u.preventDefault(),a(u)}finally{r.once&&c()}};return n.addEventListener(e,l,s),c};var os=(n,e,t,o)=>{if(t){o&&o.includes("camel")&&(t=j(t)),Xe(n,t,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];Xe(n,a,c)}else if(I(i))for(let a of Object.entries(i)){let c=a[0],l=a[1];Xe(n,c,l)}else{let a=e[s++],c=e[s];Xe(n,a,c)}}},Ao={mount:()=>({update:({el:n,values:e,option:t,flags:o})=>{os(n,e,t,o)}})};function rs(n){return!!n||n===""}var Xe=(n,e,t)=>{if(le(e)){H(3,":prop",n);return}if(e==="innerHTML"||e==="textContent"){let s=[...n.childNodes];setTimeout(()=>s.forEach(Te),1),n[e]=t!=null?t:"";return}let o=n.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){n._value=t;let s=o==="OPTION"?n.getAttribute("value"):n.value,i=t!=null?t:"";s!==i&&(n.value=i),t==null&&n.removeAttribute(e);return}let r=!1;if(t===""||t==null){let s=typeof n[e];s==="boolean"?t=rs(t):t==null&&s==="string"?(t="",r=!0):s==="number"&&(t=0,r=!0)}try{n[e]=t}catch(s){r||H(4,e,o,t,s)}r&&n.removeAttribute(e)};var No={once:!0,mount:({el:n,parseResult:e,expr:t})=>{let o=e,r=o.value()[0],s=w(r),i=o.refs[0];return s?r.push(n):i?i==null||i(n):o.context[t]=n,()=>{if(s){let a=r.indexOf(n);a!==-1&&r.splice(a,1)}else i==null||i(null)}}};var ss=(n,e)=>{let t=Ue(n).data,o=t._ord;zn(o)&&(o=t._ord=n.style.display),!!e[0]?n.style.display=o:n.style.display="none"},Oo={mount:()=>({update:({el:n,values:e})=>{ss(n,e)}})};var is=(n,e,t)=>{let o=e.length;for(let r=0;r<o;++r){let s=e[r],i=t==null?void 0:t[r];if(w(s)){let a=s.length;for(let c=0;c<a;++c)Mo(n,s[c],i==null?void 0:i[c])}else Mo(n,s,i)}},Ft={mount:()=>({update:({el:n,values:e,previousValues:t})=>{is(n,e,t)}})},Mo=(n,e,t)=>{let o=n.style,r=z(e);if(e&&!r){if(t&&!z(t))for(let s in t)e[s]==null&&An(o,s,"");for(let s in e)An(o,s,e[s])}else{let s=o.display;if(r?t!==e&&(o.cssText=e):t&&n.removeAttribute("style"),"_ord"in Ue(n).data)return;o.display=s}},ko=/\s*!important$/;function An(n,e,t){if(w(t))t.forEach(o=>{An(n,e,o)});else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{let o=as(n,e);ko.test(t)?n.setProperty(We(o),t.replace(ko,""),"important"):n[o]=t}}var Lo=["Webkit","Moz","ms"],Sn={};function as(n,e){let t=Sn[e];if(t)return t;let o=j(e);if(o!=="filter"&&o in n)return Sn[e]=o;o=st(o);for(let r=0;r<Lo.length;r++){let s=Lo[r]+o;if(s in n)return Sn[e]=s}return e}var ce=n=>Io($(n)),Io=(n,e=new WeakMap)=>{if(!n||!I(n))return n;if(w(n))return n.map(ce);if(ue(n)){let o=new Set;for(let r of n.keys())o.add(ce(r));return o}if(Ae(n)){let o=new Map;for(let r of n)o.set(ce(r[0]),ce(r[1]));return o}if(e.has(n))return $(e.get(n));let t=dt({},n);e.set(n,t);for(let o of Object.entries(t))t[o[0]]=Io($(o[1]),e);return t};var cs=(n,e)=>{var o;let t=e[0];n.textContent=ue(t)?JSON.stringify(ce([...t])):Ae(t)?JSON.stringify(ce([...t])):I(t)?JSON.stringify(ce(t)):(o=t==null?void 0:t.toString())!=null?o:""},Do={mount:()=>({update:({el:n,values:e})=>{cs(n,e)}})};var Uo={mount:()=>({update:({el:n,values:e})=>{Xe(n,"value",e[0])}})};var Le=class Le{constructor(e){m(this,"P",{});m(this,"p",{});m(this,"rt",()=>Object.keys(this.P).filter(e=>e.length===1||!e.startsWith(":")));m(this,"be",new Map);m(this,"j",new Map);m(this,"forGrowThreshold",10);m(this,"globalContext");m(this,"useInterpolation",!0);if(this.setDirectives("r-"),e){this.globalContext=e;return}this.globalContext=this.Nt()}static getDefault(){var e;return(e=Le.Ue)!=null?e:Le.Ue=new Le}Nt(){let e={},t=globalThis;for(let o of Le.At.split(","))e[o]=t[o];return e.ref=Ee,e.sref=ae,e.flatten=ce,e}addComponent(...e){for(let t of e){if(!t.defaultName){Tt.warning("Registered component's default name is not defined",t);continue}this.be.set(st(t.defaultName),t),this.j.set(st(t.defaultName).toLocaleUpperCase(),t)}}setDirectives(e){this.P={".":Ao,":":xn,"@":wn,[`${e}on`]:wn,[`${e}bind`]:xn,[`${e}html`]:Bt,[`${e}text`]:Do,[`${e}show`]:Oo,[`${e}model`]:bo,":style":Ft,[`${e}style`]:Ft,[`${e}bind:style`]:Ft,":class":Cn,[`${e}bind:class`]:Cn,":ref":No,":value":Uo,[`${e}teleport`]:wt},this.p={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.p)}};m(Le,"Ue"),m(Le,"At","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 pe=Le;var zt=(n,e)=>{if(!n)return;let o=(e!=null?e:pe.getDefault()).p,r=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of ls(n,o.pre,s))us(i,o.text,r,s)},us=(n,e,t,o)=>{var c;let r=n.textContent;if(!r)return;let s=t,i=r.split(s);if(i.length<=1)return;if(((c=n.parentElement)==null?void 0:c.childNodes.length)===1&&i.length===3){let l=i[1],u=Bo(l,o);if(u&&X(i[0])&&X(i[2])){let f=n.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=Bo(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))}n.replaceWith(a)},ls=(n,e,t)=>{let o=[],r=s=>{var i;if(s.nodeType===Node.TEXT_NODE)t.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(n),o},Bo=(n,e)=>e.find(t=>n.startsWith(t.start)&&n.endsWith(t.end));var fs=9,ps=10,ms=13,ds=32,we=46,Kt=44,hs=39,ys=34,Wt=40,Ye=41,Gt=91,Nn=93,On=63,gs=59,Po=58,Ho=123,Jt=125,He=43,Qt=45,Mn=96,Vo=47,kn=92,_o=new Set([2,3]),Ko={"=":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},bs=$n(dt({"=>":2},Ko),{"||":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}),Wo=Object.keys(Ko),Ts=new Set(Wo),In=new Set(["=>"]);Wo.forEach(n=>In.add(n));var jo={true:!0,false:!1,null:null},xs="this",Ze="Expected ",Ve="Unexpected ",Un="Unclosed ",Cs=Ze+":",$o=Ze+"expression",Es="missing }",Rs=Ve+"object property",vs=Un+"(",qo=Ze+"comma",Fo=Ve+"token ",ws=Ve+"period",Ln=Ze+"expression after ",Ss="missing unaryOp argument",As=Un+"[",Ns=Ze+"exponent (",Os="Variable names cannot start with a number (",Ms=Un+'quote after "',lt=n=>n>=48&&n<=57,zo=n=>bs[n],Dn=class{constructor(e){m(this,"u");m(this,"e");this.u=e,this.e=0}get B(){return this.u.charAt(this.e)}get y(){return this.u.charCodeAt(this.e)}f(e){return this.u.charCodeAt(this.e)===e}$(e){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>=128}ae(e){return this.$(e)||lt(e)}r(e){return new Error(`${e} at character ${this.e}`)}h(){let e=this.y,t=this.u,o=this.e;for(;e===ds||e===fs||e===ps||e===ms;)e=t.charCodeAt(++o);this.e=o}parse(){let e=this.ce();return e.length===1?e[0]:{type:0,body:e}}ce(e){let t=[];for(;this.e<this.u.length;){let o=this.y;if(o===gs||o===Kt)this.e++;else{let r=this.S();if(r)t.push(r);else if(this.e<this.u.length){if(o===e)break;throw this.r(Ve+'"'+this.B+'"')}}}return t}S(){var t;let e=(t=this.Ot())!=null?t:this.Pe();return this.h(),this.Mt(e)}ue(){this.h();let e=this.u,t=this.e,o=e.charCodeAt(t),r=e.charCodeAt(t+1),s=e.charCodeAt(t+2),i=e.charCodeAt(t+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.ae(e.charCodeAt(t+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}Pe(){let e,t,o,r,s,i,a,c;if(s=this.q(),!s||(t=this.ue(),!t))return s;if(r={value:t,prec:zo(t),right_a:In.has(t)},i=this.q(),!i)throw this.r(Ln+t);let l=[s,r,i];for(;t=this.ue();){o=zo(t),r={value:t,prec:o,right_a:In.has(t)},c=t;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(),t=l.pop().value,s=l.pop(),e=this.Be(t,s,i),l.push(e);if(e=this.q(),!e)throw this.r(Ln+c);l.push(r,e)}for(a=l.length-1,e=l[a];a>1;)e=this.Be(l[a-1].value,l[a-2],e),a-=2;return e}q(){let e;if(this.h(),e=this.kt(),e)return this.pe(e);let t=this.y;if(lt(t)||t===we)return this.Lt();if(t===hs||t===ys)e=this.Vt();else if(t===Gt)e=this.It();else{let o=this.Dt();if(o){let r=this.q();if(!r)throw this.r(Ss);return this.pe({type:7,operator:o,argument:r})}this.$(t)?(e=this.le(),e.name in jo?e={type:4,value:jo[e.name],raw:e.name}:e.name===xs&&(e={type:5})):t===Wt&&(e=this.Ut())}return e?(e=this.F(e),this.pe(e)):!1}Be(e,t,o){if(e==="=>"){let r=t.type===1?t.expressions:[t];return{type:15,params:r,body:o}}return Ts.has(e)?{type:16,operator:e,left:t,right:o}:{type:8,operator:e,left:t,right:o}}kt(){let e={node:!1};return this.Pt(e),e.node||(this.Bt(e),e.node)||(this.Ht(e),e.node)||(this.He(e),e.node)||this.jt(e),e.node}pe(e){let t={node:e};return this._t(t),this.$t(t),this.qt(t),t.node}Dt(){let e=this.u,t=this.e,o=e.charCodeAt(t),r=e.charCodeAt(t+1),s=e.charCodeAt(t+2),i=e.charCodeAt(t+3);return o===Qt?(this.e++,"-"):o===33?(this.e++,"!"):o===126?(this.e++,"~"):o===He?(this.e++,"+"):o===110&&r===101&&s===119&&!this.ae(i)?(this.e+=3,"new"):!1}Ot(){let e={};return this.Ft(e),e.node}Mt(e){let t={node:e};return this.Kt(t),t.node}F(e){this.h();let t=this.y;for(;t===we||t===Gt||t===Wt||t===On;){let o;if(t===On){if(this.u.charCodeAt(this.e+1)!==we)break;o=!0,this.e+=2,this.h(),t=this.y}if(this.e++,t===Gt){if(e={type:3,computed:!0,object:e,property:this.S()},this.h(),t=this.y,t!==Nn)throw this.r(As);this.e++}else t===Wt?e={type:6,arguments:this.je(Ye),callee:e}:(o&&this.e--,this.h(),e={type:3,computed:!1,object:e,property:this.le()});o&&(e.optional=!0),this.h(),t=this.y}return e}Lt(){let e=this.u,t=this.e,o=t;for(;lt(e.charCodeAt(o));)o++;if(e.charCodeAt(o)===we)for(o++;lt(e.charCodeAt(o));)o++;let r=e.charCodeAt(o);if(r===101||r===69){o++;let a=e.charCodeAt(o);(a===He||a===Qt)&&o++;let c=o;for(;lt(e.charCodeAt(o));)o++;if(c===o){this.e=o;let l=e.slice(t,o);throw this.r(Ns+l+this.B+")")}}this.e=o;let s=e.slice(t,o),i=e.charCodeAt(o);if(this.$(i))throw this.r(Os+s+this.B+")");if(i===we||s.length===1&&s.charCodeAt(0)===we)throw this.r(ws);return{type:4,value:parseFloat(s),raw:s}}Vt(){let e=this.u,t=e.length,o=this.e,r=e.charCodeAt(this.e++),s=this.e,i=s,a=[],c=!1,l=!1;for(;s<t;){let f=e.charCodeAt(s);if(f===r){l=!0,this.e=s+1;break}if(f===kn){c||(c=!0),a.push(e.slice(i,s));let p=e.charCodeAt(s+1);a.push(this._e(p)),s+=2,i=s}else s++}let u=c?a.join("")+e.slice(i,l?s:t):e.slice(i,l?s:t);if(!l)throw this.e=s,this.r(Ms+u+'"');return{type:4,value:u,raw:e.substring(o,this.e)}}_e(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)}}le(){let e=this.y,t=this.e;if(this.$(e))this.e++;else throw this.r(Ve+this.B);for(;this.e<this.u.length&&(e=this.y,this.ae(e));)this.e++;return{type:2,name:this.u.slice(t,this.e)}}je(e){let t=[],o=!1,r=0;for(;this.e<this.u.length;){this.h();let s=this.y;if(s===e){if(o=!0,this.e++,e===Ye&&r&&r>=t.length)throw this.r(Fo+String.fromCharCode(e));break}else if(s===Kt){if(this.e++,r++,r!==t.length){if(e===Ye)throw this.r(Fo+",");for(let i=t.length;i<r;i++)t.push(null)}}else{if(t.length!==r&&r!==0)throw this.r(qo);{let i=this.S();if(!i||i.type===0)throw this.r(qo);t.push(i)}}}if(!o)throw this.r(Ze+String.fromCharCode(e));return t}Ut(){this.e++;let e=this.ce(Ye);if(this.f(Ye))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.r(vs)}It(){return this.e++,{type:9,elements:this.je(Nn)}}Pt(e){if(this.f(Ho)){this.e++;let t=[];for(;!isNaN(this.y);){if(this.h(),this.f(Jt)){this.e++,e.node=this.F({type:10,properties:t});return}let o=this.S();if(!o)break;if(this.h(),o.type===2&&(this.f(Kt)||this.f(Jt)))t.push({type:12,computed:!1,key:o,value:o,shorthand:!0});else if(this.f(Po)){this.e++;let r=this.S();if(!r)throw this.r(Rs);let s=o.type===9;t.push({type:12,computed:s,key:s?o.elements[0]:o,value:r,shorthand:!1}),this.h()}else t.push(o);this.f(Kt)&&this.e++}throw this.r(Es)}}Bt(e){let t=this.y;if((t===He||t===Qt)&&t===this.u.charCodeAt(this.e+1)){this.e+=2;let o=e.node={type:13,operator:t===He?"++":"--",argument:this.F(this.le()),prefix:!0};if(!o.argument||!_o.has(o.argument.type))throw this.r(Ve+o.operator)}}$t(e){let t=e.node,o=this.y;if((o===He||o===Qt)&&o===this.u.charCodeAt(this.e+1)){if(!_o.has(t.type))throw this.r(Ve+(o===He?"++":"--"));this.e+=2,e.node={type:13,operator:o===He?"++":"--",argument:t,prefix:!1}}}Ht(e){this.u.charCodeAt(this.e)===we&&this.u.charCodeAt(this.e+1)===we&&this.u.charCodeAt(this.e+2)===we&&(this.e+=3,e.node={type:14,argument:this.S()})}Kt(e){if(e.node&&this.f(On)){this.e++;let t=e.node,o=this.S();if(!o)throw this.r($o);if(this.h(),this.f(Po)){this.e++;let r=this.S();if(!r)throw this.r($o);e.node={type:11,test:t,consequent:o,alternate:r}}else throw this.r(Cs)}}Ft(e){if(this.h(),this.f(Wt)){let t=this.e;if(this.e++,this.h(),this.f(Ye)){this.e++;let o=this.ue();if(o==="=>"){let r=this.Pe();if(!r)throw this.r(Ln+o);e.node={type:15,params:null,body:r};return}}this.e=t}}qt(e){let t=e.node,o=t.type;(o===2||o===3)&&this.f(Mn)&&(e.node={type:17,tag:t,quasi:this.He(e)})}He(e){if(!this.f(Mn))return;let t=this.u,o=t.length,r={type:19,quasis:[],expressions:[]},s=++this.e,i=[],a=[],c=!1,l=u=>{if(!c){let d=t.slice(s,this.e);return r.quasis.push({type:18,value:{raw:d,cooked:d},tail:u})}i.push(t.slice(s,this.e)),a.push(t.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=t.charCodeAt(this.e);if(u===Mn)return l(!0),this.e+=1,e.node=r,r;if(u===36&&t.charCodeAt(this.e+1)===Ho){if(l(!1),this.e+=2,r.expressions.push(...this.ce(Jt)),!this.f(Jt))throw this.r("unclosed ${");this.e+=1,s=this.e}else if(u===kn){c||(c=!0),i.push(t.slice(s,this.e)),a.push(t.slice(s,this.e));let f=t.charCodeAt(this.e+1);i.push(t.slice(this.e,this.e+2)),a.push(this._e(f)),this.e+=2,s=this.e}else this.e+=1}throw this.r("Unclosed `")}_t(e){let t=e.node;if(!t||t.operator!=="new"||!t.argument)return;if(!t.argument||![6,3].includes(t.argument.type))throw this.r("Expected new function()");e.node=t.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}jt(e){if(!this.f(Vo))return;let t=++this.e,o=!1;for(;this.e<this.u.length;){if(this.y===Vo&&!o){let r=this.u.slice(t,this.e),s="";for(;++this.e<this.u.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.u.slice(t-1,this.e)},e.node=this.F(e.node),e.node}this.f(Gt)?o=!0:o&&this.f(Nn)&&(o=!1),this.e+=this.f(kn)?2:1}throw this.r("Unclosed Regex")}},Go=n=>new Dn(n).parse();var ks={"=>":(n,e)=>{},"=":(n,e)=>{},"*=":(n,e)=>{},"**=":(n,e)=>{},"/=":(n,e)=>{},"%=":(n,e)=>{},"+=":(n,e)=>{},"-=":(n,e)=>{},"<<=":(n,e)=>{},">>=":(n,e)=>{},">>>=":(n,e)=>{},"&=":(n,e)=>{},"^=":(n,e)=>{},"|=":(n,e)=>{},"||":(n,e)=>n()||e(),"??":(n,e)=>{var t;return(t=n())!=null?t:e()},"&&":(n,e)=>n()&&e(),"|":(n,e)=>n|e,"^":(n,e)=>n^e,"&":(n,e)=>n&e,"==":(n,e)=>n==e,"!=":(n,e)=>n!=e,"===":(n,e)=>n===e,"!==":(n,e)=>n!==e,"<":(n,e)=>n<e,">":(n,e)=>n>e,"<=":(n,e)=>n<=e,">=":(n,e)=>n>=e,in:(n,e)=>n in e,"<<":(n,e)=>n<<e,">>":(n,e)=>n>>e,">>>":(n,e)=>n>>>e,"+":(n,e)=>n+e,"-":(n,e)=>n-e,"*":(n,e)=>n*e,"/":(n,e)=>n/e,"%":(n,e)=>n%e,"**":(n,e)=>mt(n,e)},Ls={"-":n=>-n,"+":n=>+n,"!":n=>!n,"~":n=>~n,new:n=>n},Yo=n=>{if(!(n!=null&&n.some(Xo)))return n;let e=[];return n.forEach(t=>Xo(t)?e.push(...t):e.push(t)),e},Jo=(...n)=>Yo(n),Bn=(n,e)=>{if(!n)return e;let t=Object.create(e!=null?e:{});return t.$event=n,t},Is={"++":(n,e)=>{let t=n[e];if(R(t)){let o=t();return t(++o),o}return++n[e]},"--":(n,e)=>{let t=n[e];if(R(t)){let o=t();return t(--o),o}return--n[e]}},Ds={"++":(n,e)=>{let t=n[e];if(R(t)){let o=t();return t(o+1),o}return n[e]++},"--":(n,e)=>{let t=n[e];if(R(t)){let o=t();return t(o-1),o}return n[e]--}},Qo={"=":(n,e,t)=>{let o=n[e];return R(o)?o(t):n[e]=t},"+=":(n,e,t)=>{let o=n[e];return R(o)?o(o()+t):n[e]+=t},"-=":(n,e,t)=>{let o=n[e];return R(o)?o(o()-t):n[e]-=t},"*=":(n,e,t)=>{let o=n[e];return R(o)?o(o()*t):n[e]*=t},"/=":(n,e,t)=>{let o=n[e];return R(o)?o(o()/t):n[e]/=t},"%=":(n,e,t)=>{let o=n[e];return R(o)?o(o()%t):n[e]%=t},"**=":(n,e,t)=>{let o=n[e];return R(o)?o(mt(o(),t)):n[e]=mt(n[e],t)},"<<=":(n,e,t)=>{let o=n[e];return R(o)?o(o()<<t):n[e]<<=t},">>=":(n,e,t)=>{let o=n[e];return R(o)?o(o()>>t):n[e]>>=t},">>>=":(n,e,t)=>{let o=n[e];return R(o)?o(o()>>>t):n[e]>>>=t},"|=":(n,e,t)=>{let o=n[e];return R(o)?o(o()|t):n[e]|=t},"&=":(n,e,t)=>{let o=n[e];return R(o)?o(o()&t):n[e]&=t},"^=":(n,e,t)=>{let o=n[e];return R(o)?o(o()^t):n[e]^=t}},Xt=(n,e)=>F(n)?n.bind(e):n,Pn=class{constructor(e,t,o,r,s){m(this,"l");m(this,"$e");m(this,"qe");m(this,"Fe");m(this,"A");m(this,"Ke");m(this,"ze");this.l=w(e)?e:[e],this.$e=t,this.qe=o,this.Fe=r,this.ze=!!s}We(e,t){if(t&&e in t)return t;for(let o of this.l)if(e in o)return o}2(e,t,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],Xt($(o[r]),o);for(let i of this.l)if(r in i)return this.A=i[r],Xt($(i[r]),i);let s=this.$e;if(s&&r in s)return this.A=s[r],Xt($(s[r]),s)}5(e,t,o){return this.l[0]}0(e,t,o){return this.Ge(t,o,Jo,...e.body)}1(e,t,o){return this.E(t,o,(...r)=>r.pop(),...e.expressions)}3(e,t,o){let{obj:r,key:s}=this.fe(e,t,o),i=r==null?void 0:r[s];return this.A=i,Xt($(i),r)}4(e,t,o){return e.value}6(e,t,o){let r=(i,...a)=>F(i)?i(...Yo(a)):i,s=this.E(++t,o,r,e.callee,...e.arguments);return this.A=s,s}7(e,t,o){return this.E(t,o,Ls[e.operator],e.argument)}8(e,t,o){let r=ks[e.operator];switch(e.operator){case"||":case"&&":case"??":return r(()=>this.g(e.left,t,o),()=>this.g(e.right,t,o))}return this.E(t,o,r,e.left,e.right)}9(e,t,o){return this.Ge(++t,o,Jo,...e.elements)}10(e,t,o){let r={},s=(...i)=>{i.forEach(a=>{Object.assign(r,a)})};return this.E(++t,o,s,...e.properties),r}11(e,t,o){return this.E(t,o,r=>this.g(r?e.consequent:e.alternate,t,o),e.test)}12(e,t,o){var u;let r={},s=f=>(f==null?void 0:f.type)!==15,i=(u=this.Fe)!=null?u:()=>!1,a=t===0&&this.ze,c=f=>this.Je(a,e.key,t,Bn(f,o)),l=f=>this.Je(a,e.value,t,Bn(f,o));if(e.shorthand){let f=e.key.name;r[f]=s(e.key)&&i(f,t)?c:c()}else if(e.computed){let f=$(c());r[f]=s(e.value)&&i(f,t)?l:l()}else{let f=e.key.type===4?e.key.value:e.key.name;r[f]=s(e.value)&&i(f,t)?()=>l:l()}return r}fe(e,t,o){let r=this.g(e.object,t,o),s=e.computed?this.g(e.property,t,o):e.property.name;return{obj:r,key:s}}13(e,t,o){let r=e.argument,s=e.operator,i=e.prefix?Is:Ds;if(r.type===2){let a=r.name,c=this.We(a,o);return le(c)?void 0:i[s](c,a)}if(r.type===3){let{obj:a,key:c}=this.fe(r,t,o);return i[s](a,c)}}16(e,t,o){let r=e.left,s=e.operator;if(r.type===2){let i=r.name,a=this.We(i,o);if(le(a))return;let c=this.g(e.right,t,o);return Qo[s](a,i,c)}if(r.type===3){let{obj:i,key:a}=this.fe(r,t,o),c=this.g(e.right,t,o);return Qo[s](i,a,c)}}14(e,t,o){let r=this.g(e.argument,t,o);return w(r)&&(r.s=Zo),r}17(e,t,o){return this[6]({type:6,callee:e.tag,arguments:[{type:9,elements:e.quasi.quasis},...e.quasi.expressions]},t,o)}19(e,t,o){let r=(...s)=>s.reduce((i,a,c)=>i+=a+e.quasis[c+1].value.cooked,e.quasis[0].value.cooked);return this.E(t,o,r,...e.expressions)}18(e,t,o){return e.value.cooked}20(e,t,o){let r=(s,...i)=>new s(...i);return this.E(t,o,r,e.callee,...e.arguments)}15(e,t,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,t,s)}}g(e,t,o){let r=$(this[e.type](e,t,o));return this.Ke=e.type,r}Je(e,t,o,r){let s=this.g(t,o,r);return e&&this.Qe()?this.A:s}Qe(){let e=this.Ke;return(e===2||e===3||e===6)&&R(this.A)}eval(e,t){let{value:o,refs:r}=yn(()=>this.g(e,-1,t)),s={value:o,refs:r};return this.Qe()&&(s.ref=this.A),s}E(e,t,o,...r){let s=r.map(i=>i&&this.g(i,e,t));return o(...s)}Ge(e,t,o,...r){let s=this.qe;if(!s)return this.E(e,t,o,...r);let i=r.map((a,c)=>a&&(a.type!==15&&s(c,e)?l=>this.g(a,e,Bn(l,t)):this.g(a,e,t)));return o(...i)}},Zo=Symbol("s"),Xo=n=>(n==null?void 0:n.s)===Zo,er=(n,e,t,o,r,s,i)=>new Pn(e,t,o,r,i).eval(n,s);var tr={},nr=n=>!!n,Yt=class{constructor(e,t){m(this,"l");m(this,"o");m(this,"Xe",[]);this.l=e,this.o=t}v(e){this.l=[e,...this.l]}J(){return this.l.map(t=>t.components).filter(nr).reverse().reduce((t,o)=>{for(let[r,s]of Object.entries(o))t[r.toUpperCase()]=s;return t},{})}ot(){let e=[],t=new Set,o=this.l.map(r=>r.components).filter(nr).reverse();for(let r of o)for(let s of Object.keys(r))t.has(s)||(t.add(s),e.push(s));return e}M(e,t,o,r,s){var g;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 d=this.o.globalContext,y=[],h=new Set,E=(C,D,W,M)=>{try{let V=er(C,D,d,t,o,M,r);return W&&V.refs.length>0&&y.push(...V.refs),{value:V.value,refs:V.refs,ref:V.ref}}catch(V){H(6,`evaluation error: ${e}`,V)}return{value:void 0,refs:[]}};try{let C=(g=tr[e])!=null?g:Go("["+e+"]");tr[e]=C;let D=this.l.slice(),W=C.elements,M=W.length,V=new Array(M);p.refs=V;let ie=()=>{y.length=0,s||(h.clear(),l());let ee=new Array(M);for(let U=0;U<M;++U){let b=W[U];if(t!=null&&t(U,-1)){ee[U]=J=>E(b,D,!1,{$event:J}).value;continue}let A=E(b,D,!0);ee[U]=A.value,V[U]=A.ref}if(!s)for(let U of y)h.has(U)||(h.add(U),a.push(se(U,ie)));if(i=ee,c.size!==0)for(let U of c)c.has(U)&&U(i)};ie()}catch(C){H(6,`parse error: ${e}`,C)}return p}k(){return this.l.slice()}oe(e){this.Xe.push(this.l),this.l=e}C(e,t){try{this.oe(e),t()}finally{this.zt()}}zt(){var e;this.l=(e=this.Xe.pop())!=null?e:[]}};var or=n=>{let e=n.charCodeAt(0);return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||n==="-"||n==="_"||n===":"},Us=(n,e)=>{let t="";for(let o=e;o<n.length;++o){let r=n[o];if(t){r===t&&(t="");continue}if(r==='"'||r==="'"){t=r;continue}if(r===">")return o}return-1},Bs=(n,e)=>{let t=e?2:1;for(;t<n.length&&(n[t]===" "||n[t]===`
3
- `);)++t;if(t>=n.length||!or(n[t]))return null;let o=t;for(;t<n.length&&or(n[t]);)++t;return{start:o,end:t}},rr=new Set(["table","thead","tbody","tfoot"]),Ps=new Set(["thead","tbody","tfoot"]),Hs=new Set(["caption","colgroup","thead","tbody","tfoot","tr"]),Vs=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),sr=(n,e)=>`${n.slice(0,n.length-2)}></${e}>`,Zt=n=>{var s;let e=0,t=[],o=[],r=0;for(;e<n.length;){let i=n.indexOf("<",e);if(i===-1){t.push(n.slice(e));break}if(t.push(n.slice(e,i)),n.startsWith("<!--",i)){let g=n.indexOf("-->",i+4);if(g===-1){t.push(n.slice(i));break}t.push(n.slice(i,g+3)),e=g+3;continue}let a=Us(n,i);if(a===-1){t.push(n.slice(i));break}let c=n.slice(i,a+1),l=c.startsWith("</");if(c.startsWith("<!")||c.startsWith("<?")){t.push(c),e=a+1;continue}let f=Bs(c,l);if(!f){t.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(),t.push(g.replacementHost?`</${g.replacementHost}>`:c),rr.has(g.effectiveTag)&&--r):t.push(c),e=a+1;continue}let d=c.charCodeAt(c.length-2)===47,y=o[o.length-1],h=null;r===0?p==="tr"?h="trx":p==="td"?h="tdx":p==="th"&&(h="thx"):Ps.has((s=y==null?void 0:y.effectiveTag)!=null?s:"")?h=p==="tr"?null:"tr":(y==null?void 0:y.effectiveTag)==="table"?h=Hs.has(p)?null:"tr":(y==null?void 0:y.effectiveTag)==="tr"&&(h=p==="td"||p==="th"?null:"td");let E=d&&!Vs.has(h||p);if(h){let g=h==="trx"||h==="tdx"||h==="thx",C=`${c.slice(0,f.start)}${h} is="${g?`r-${p}`:`regor:${p}`}"${c.slice(f.end)}`;t.push(E?sr(C,h):C)}else t.push(E?sr(c,p):c);if(!d){let g=h==="trx"?"tr":h==="tdx"?"td":h==="thx"?"th":h||p;o.push({replacementHost:h,effectiveTag:g}),rr.has(g)&&++r}e=a+1}return t.join("")};var _s="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",js=new Set(_s.toUpperCase().split(",")),$s="http://www.w3.org/2000/svg",ir=(n,e)=>{he(n)?n.content.appendChild(e):n.appendChild(e)},Hn=(n,e,t,o)=>{var i;let r=n.t;if(r){let a=t&&js.has(r.toUpperCase())?document.createElementNS($s,r.toLowerCase()):document.createElement(r),c=n.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(vt(f,o),p)}let l=n.c;if(l)for(let u of l)Hn(u,a,t,o);ir(e,a);return}let s=n.d;if(s){let a;switch((i=n.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)ir(e,a);else throw new Error("unsupported node type.")}},et=(n,e,t)=>{t!=null||(t=pe.getDefault());let o=document.createDocumentFragment();if(!w(n))return Hn(n,o,!!e,t),o;for(let r of n)Hn(r,o,!!e,t);return o};var qs=(n,e={selector:"#app"},t)=>{z(e)&&(e={selector:"#app",template:e}),ro(n)&&(n=n.context);let o=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!o||!Be(o))throw _(0);t||(t=pe.getDefault());let r=()=>{for(let a of[...o.childNodes])G(a)},s=a=>{for(let c of a)o.appendChild(c)};if(e.template){let a=document.createRange().createContextualFragment(Zt(e.template));r(),s(a.childNodes),e.element=a}else if(e.json){let a=et(e.json,e.isSVG,t);r(),s(a.childNodes)}return t.useInterpolation&&zt(o,t),new Vn(n,o,t).b(),K(o,()=>{Ne(n)}),St(n),{context:n,unmount:()=>{G(o)},unbind:()=>{Te(o)}}},Vn=class{constructor(e,t,o){m(this,"Wt");m(this,"Ye");m(this,"o");m(this,"m");m(this,"i");this.Wt=e,this.Ye=t,this.o=o,this.m=new Yt([e],o),this.i=new jt(this.m)}b(){this.i.H(this.Ye)}};var ft=n=>{if(w(n))return n.map(r=>ft(r));let e={};if(n.tagName)e.t=n.tagName;else return n.nodeType===Node.COMMENT_NODE&&(e.n=Node.COMMENT_NODE),n.textContent&&(e.d=n.textContent),e;let t=n.getAttributeNames();t.length>0&&(e.a=Object.fromEntries(t.map(r=>{var s;return[r,(s=n.getAttribute(r))!=null?s:""]})));let o=Ce(n);return o.length>0&&(e.c=[...o].map(r=>ft(r))),e};var Fs=(n,e={})=>{var s,i,a,c,l,u;w(e)&&(e={props:e}),z(n)&&(n={template:n});let t=(s=e.context)!=null?s:()=>({}),o=!1;if(n.element){let f=n.element;f.remove(),n.element=f}else if(n.selector){let f=document.querySelector(n.selector);if(!f)throw _(1,n.selector);f.remove(),n.element=f}else if(n.template){let f=document.createRange().createContextualFragment(Zt(n.template));n.element=f}else n.json&&(n.element=et(n.json,n.isSVG,e.config),o=!0);n.element||(n.element=document.createDocumentFragment()),((i=e.useInterpolation)==null||i)&&zt(n.element,(a=e.config)!=null?a:pe.getDefault());let r=n.element;if(!o&&(((l=n.isSVG)!=null?l:rt(r)&&((c=r.hasAttribute)!=null&&c.call(r,"isSVG")))||rt(r)&&r.querySelector("[isSVG]"))){let f=r.content,p=f?[...f.childNodes]:[...r.childNodes],d=ft(p);n.element=et(d,!0,e.config)}return{context:t,template:n.element,inheritAttrs:(u=e.inheritAttrs)!=null?u:!0,props:e.props,defaultName:e.defaultName}};var _n=class{constructor(){m(this,"byConstructor",new Map)}register(e){this.byConstructor.set(e.constructor,e)}unregisterByClass(e){this.byConstructor.delete(e)}unregister(e){let t=e.constructor;this.byConstructor.get(t)===e&&this.byConstructor.delete(t)}find(e){for(let t of this.byConstructor.values())if(t instanceof e)return t}require(e){let t=this.find(e);if(t)return t;throw new Error(`${e.name} is not registered in ContextRegistry.`)}};var zs=n=>{var e;(e=De())==null||e.onMounted.push(n)};var Ks=n=>{let e,t={},o=(...r)=>{if(r.length<=2&&0 in r)throw _(4);return e&&!t.isStopped?e(...r):(e=Ws(n,t),e(...r))};return o[Y]=1,ke(o,!0),o.stop=()=>{var r,s;return(s=(r=t.ref)==null?void 0:r.stop)==null?void 0:s.call(r)},re(()=>o.stop(),!0),o},Ws=(n,e)=>{var s;let t=(s=e.ref)!=null?s:ae(null);e.ref=t,e.isStopped=!1;let o=0,r=Je(()=>{if(o>0){r(),e.isStopped=!0,Z(t);return}t(n()),++o});return t.stop=r,t};var Gs=(n,e)=>{let t={},o,r=(...s)=>{if(s.length<=2&&0 in s)throw _(4);return o&&!t.isStopped?o(...s):(o=Js(n,e,t),o(...s))};return r[Y]=1,ke(r,!0),r.stop=()=>{var s,i;return(i=(s=t.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},re(()=>r.stop(),!0),r},Js=(n,e,t)=>{var a;let o=(a=t.ref)!=null?a:ae(null);t.ref=o,t.isStopped=!1;let r=0,s=c=>{if(r>0){o.stop(),t.isStopped=!0,Z(o);return}let l=n.map(u=>u());o(e(...l)),++r},i=[];for(let c of n){let l=se(c,s);i.push(l)}return s(null),o.stop=()=>{i.forEach(c=>{c()})},o};var Qs=(n,e)=>{let t={},o,r=(...s)=>{if(s.length<=2&&0 in s)throw _(4);return o&&!t.isStopped?o(...s):(o=Xs(n,e,t),o(...s))};return r[Y]=1,ke(r,!0),r.stop=()=>{var s,i;return(i=(s=t.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},re(()=>r.stop(),!0),r},Xs=(n,e,t)=>{var s;let o=(s=t.ref)!=null?s:ae(null);t.ref=o,t.isStopped=!1;let r=0;return o.stop=se(n,i=>{if(r>0){o.stop(),t.isStopped=!0,Z(o);return}o(e(i)),++r},!0),o};var Ys=n=>(n[Nt]=1,n);var Zs=(n,e)=>{if(!e)throw _(5);let o=Ge(n)?Ee:a=>a,r=()=>localStorage.setItem(e,JSON.stringify(ce(n()))),s=localStorage.getItem(e);if(s!=null)try{n(o(JSON.parse(s)))}catch(a){H(6,`persist: failed to parse data for key ${e}`,a),r()}else r();let i=Je(r);return re(i,!0),n};var ar=(n,...e)=>{let t="",o=n,r=e,s=o.length,i=r.length;for(let a=0;a<s;++a)t+=o[a],a<i&&(t+=r[a]);return t},ei=ar;var ti=(n,e,t)=>{let o=[],r=()=>{e(n.map(i=>i()))};for(let i of n)o.push(se(i,r));t&&r();let s=()=>{for(let i of o)i()};return re(s,!0),s};var ni=n=>{if(!R(n))throw _(3,"observerCount");return n(void 0,void 0,2)};var oi=n=>{cr();try{n()}finally{ur()}},cr=()=>{ye.stack||(ye.stack=[]),ye.stack.push(new Set)},ur=()=>{let n=ye.stack;if(!n||n.length===0)return;let e=n.pop();if(n.length){let t=n[n.length-1];for(let o of e)t.add(o);return}delete ye.stack;for(let t of e)try{Z(t)}catch(o){console.error(o)}};export{nt as ComponentHead,_n as ContextRegistry,pe as RegorConfig,K as addUnbinder,oi as batch,yn as collectRefs,Gs as computeMany,Qs as computeRef,Ks as computed,qs as createApp,Fs as defineComponent,yr as drainUnbind,ur as endBatch,it as entangle,ce as flatten,Ue as getBindData,ar as html,Ge as isDeepRef,at as isRaw,R as isRef,Ys as markRaw,se as observe,ti as observeMany,ni as observerCount,zs as onMounted,re as onUnmounted,En as pause,Zs as persist,ei as raw,Ee as ref,G as removeNode,Rn as resume,hn as silence,ae as sref,cr as startBatch,et as toFragment,ft as toJsonTemplate,Z as trigger,Te as unbind,$ as unref,mn as useScope,Tt as warningHandler,Je as watchEffect};
1
+ var lr=Object.defineProperty,fr=Object.defineProperties;var pr=Object.getOwnPropertyDescriptors;var jn=Object.getOwnPropertySymbols;var mr=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable;var mt=Math.pow,en=(n,e,t)=>e in n?lr(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,dt=(n,e)=>{for(var t in e||(e={}))mr.call(e,t)&&en(n,t,e[t]);if(jn)for(var t of jn(e))dr.call(e,t)&&en(n,t,e[t]);return n},$n=(n,e)=>fr(n,pr(e));var d=(n,e,t)=>en(n,typeof e!="symbol"?e+"":e,t);var qn=(n,e,t)=>new Promise((o,r)=>{var s=c=>{try{a(t.next(c))}catch(l){r(l)}},i=c=>{try{a(t.throw(c))}catch(l){r(l)}},a=c=>c.done?o(c.value):Promise.resolve(c.value).then(s,i);a((t=t.apply(n,e)).next())});var $e=Symbol(":regor");var Te=n=>{let e=[n];for(let t=0;t<e.length;++t){let o=e[t];hr(o);for(let r=o.lastChild;r!=null;r=r.previousSibling)e.push(r)}},hr=n=>{let e=n[$e];if(!e)return;let t=e.unbinders;for(let o=0;o<t.length;++o)t[o]();t.length=0,n[$e]=void 0};var qe=[],ht=!1,yt,Fn=()=>{if(ht=!1,yt=void 0,qe.length!==0){for(let n=0;n<qe.length;++n)Te(qe[n]);qe.length=0}},G=n=>{n.remove(),qe.push(n),ht||(ht=!0,yt=setTimeout(Fn,1))},yr=()=>qn(null,null,function*(){qe.length===0&&!ht||(yt&&clearTimeout(yt),Fn())});var F=n=>typeof n=="function",z=n=>typeof n=="string",zn=n=>typeof n=="undefined",le=n=>n==null||typeof n=="undefined",J=n=>typeof n!="string"||!(n!=null&&n.trim()),gr=Object.prototype.toString,tn=n=>gr.call(n),Ae=n=>tn(n)==="[object Map]",ue=n=>tn(n)==="[object Set]",nn=n=>tn(n)==="[object Date]",tt=n=>typeof n=="symbol",w=Array.isArray,I=n=>n!==null&&typeof n=="object";var Kn={0:"createApp can't find root element. You must define either a valid `selector` or an `element`. Example: createApp({}, {selector: '#app', html: '...'})",1:n=>`Component template cannot be found. selector: ${n} .`,2:"Use composables in scope. usage: useScope(() => new MyApp()).",3:n=>`${n} requires ref source argument`,4:"computed is readonly.",5:"persist requires a string key."},_=(n,...e)=>{let t=Kn[n];return new Error(F(t)?t.call(Kn,...e):t)};var gt=[],Wn=()=>{let n={onMounted:[],onUnmounted:[]};return gt.push(n),n},De=n=>{let e=gt[gt.length-1];if(!e&&!n)throw _(2);return e},Gn=n=>{let e=De();return n&&rn(n),gt.pop(),e},on=Symbol("csp"),rn=n=>{let e=n,t=e[on];if(t){let o=De();if(t===o)return;o.onMounted.length>0&&t.onMounted.push(...o.onMounted),o.onUnmounted.length>0&&t.onUnmounted.push(...o.onUnmounted);return}e[on]=De()},bt=n=>n[on];var Ne=n=>{var t,o;let e=(t=bt(n))==null?void 0:t.onUnmounted;e==null||e.forEach(r=>{r()}),(o=n.unmounted)==null||o.call(n)};var nt=class{constructor(e,t,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,"me");d(this,"emit",(e,t)=>{this.me.dispatchEvent(new CustomEvent(e,{detail:t}))});this.props=e,this.me=t,this.ctx=o,this.start=r,this.end=s}findContext(e,t=0){var r;if(t<0)return;let o=0;for(let s of(r=this.ctx)!=null?r:[])if(s instanceof e){if(o===t)return s;++o}}requireContext(e,t=0){let o=this.findContext(e,t);if(o!==void 0)return o;throw new Error(`${e} was not found in the context stack at occurrence ${t}.`)}unmount(){let e=this.start.nextSibling,t=this.end;for(;e&&e!==t;)G(e),e=e.nextSibling;for(let o of this.ctx)Ne(o)}};var Ue=n=>{let e=n,t=e[$e];if(t)return t;let o={unbinders:[],data:{}};return e[$e]=o,o};var K=(n,e)=>{Ue(n).unbinders.push(e)};var Jn={8:n=>`Model binding requires a ref at ${n.outerHTML}`,7:n=>`Model binding is not supported on ${n.tagName} element at ${n.outerHTML}`,0:(n,e)=>`${n} binding expression is missing at ${e.outerHTML}`,1:(n,e,t)=>`invalid ${n} expression: ${e} at ${t.outerHTML}`,2:(n,e)=>`${n} requires object expression at ${e.outerHTML}`,3:(n,e)=>`${n} binder: key is empty on ${e.outerHTML}.`,4:(n,e,t,o)=>({msg:`Failed setting prop "${n}" on <${e.toLowerCase()}>: value ${t} is invalid.`,args:[o]}),5:(n,e)=>`${n} binding missing event type at ${e.outerHTML}`,6:(n,e)=>({msg:n,args:[e]})},H=(n,...e)=>{let t=Jn[n],o=F(t)?t.call(Jn,...e):t,r=Tt.warning;r&&(z(o)?r(o):r(o,...o.args))},Tt={warning:console.warn};var Ct={},xt={},Qn=1,Xn=n=>{let e=(Qn++).toString();return Ct[e]=n,xt[e]=0,e},sn=n=>{xt[n]+=1},an=n=>{--xt[n]===0&&(delete Ct[n],delete xt[n])},Yn=n=>Ct[n],cn=()=>Qn!==1&&Object.keys(Ct).length>0,ot="r-switch",br=n=>{let e=n.filter(o=>Be(o)).map(o=>[...o.querySelectorAll("[r-switch]")].map(r=>r.getAttribute(ot))),t=new Set;return e.forEach(o=>{o.forEach(r=>r&&t.add(r))}),[...t]},Fe=(n,e)=>{if(!cn())return;let t=br(e);t.length!==0&&(t.forEach(sn),K(n,()=>{t.forEach(an)}))};var Et=()=>{},un=(n,e,t,o)=>{let r=[];for(let s of n){let i=s.cloneNode(!0);t.insertBefore(i,o),r.push(i)}Me(e,r)},ln=Symbol("r-if"),Zn=Symbol("r-else"),eo=n=>n[Zn]===1,Rt=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=Ke(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}Ze(e,t){let o=e.parentElement;for(;o!==null&&o!==document.documentElement;){if(o.hasAttribute(t))return!0;o=o.parentElement}return!1}N(e){let t=e.hasAttribute(this.D),o=Oe(e,this.K);for(let r of o)this.b(r);return t}G(e){return e[ln]?!0:(e[ln]=!0,Oe(e,this.K).forEach(t=>t[ln]=!0),!1)}b(e){if(e.hasAttribute(this.R)||this.G(e)||this.Ze(e,this.T))return;let t=e.getAttribute(this.D);if(!t){H(0,this.D,e);return}e.removeAttribute(this.D),this.O(e,t)}U(e,t,o){let r=ze(e),s=e.parentNode,i=document.createComment(`__begin__ :${t}${o!=null?o:""}`);s.insertBefore(i,e),Fe(i,r),r.forEach(c=>{G(c)}),e.remove(),t!=="if"&&(e[Zn]=1);let a=document.createComment(`__end__ :${t}${o!=null?o:""}`);return s.insertBefore(a,i.nextSibling),{nodes:r,parent:s,commentBegin:i,commentEnd:a}}de(e,t){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:()=>{un(r,this.i,s,a)},unmount:()=>{xe(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.M(r),u=l.value,f=this.de(o,t),p=Et;return K(a,()=>{l.stop(),p(),p=Et}),p=l.subscribe(t),[{mount:()=>{un(s,this.i,i,c)},unmount:()=>{xe(a,c)},isTrue:()=>!!u()[0],isMounted:!1},...f]}}O(e,t){let o=e.nextElementSibling,{nodes:r,parent:s,commentBegin:i,commentEnd:a}=this.U(e,"if",` => ${t} `),c=this.i.m.M(t),l=c.value,u=!1,f=this.i.m,p=f.k(),m=()=>{f.C(p,()=>{if(l()[0])u||(un(r,this.i,s,a),u=!0),y.forEach(g=>{g.unmount(),g.isMounted=!1});else{xe(i,a),u=!1;let g=!1;for(let C of y)!g&&C.isTrue()?(C.isMounted||(C.mount(),C.isMounted=!0),g=!0):(C.unmount(),C.isMounted=!1)}})},y=this.de(o,m),h=Et;K(i,()=>{c.stop(),h(),h=Et}),m(),h=c.subscribe(m)}};var ze=n=>{let e=he(n)?n.content.childNodes:[n],t=[];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}t.push(r)}return t},Me=(n,e)=>{for(let t=0;t<e.length;++t){let o=e[t];o.nodeType===Node.ELEMENT_NODE&&(eo(o)||n.H(o))}},Oe=(n,e)=>{var o;let t=n.querySelectorAll(e);return(o=n.matches)!=null&&o.call(n,e)?[n,...t]:t},he=n=>n instanceof HTMLTemplateElement,Be=n=>n.nodeType===Node.ELEMENT_NODE,rt=n=>n.nodeType===Node.ELEMENT_NODE,to=n=>n instanceof HTMLSlotElement,Ce=n=>he(n)?n.content.childNodes:n.childNodes,xe=(n,e)=>{let t=n.nextSibling;for(;t!=null&&t!==e;){let o=t.nextSibling;G(t),t=o}},no=function(){return this()},Tr=function(n){return this(n)},xr=()=>{throw new Error("value is readonly.")},Cr={get:no,set:Tr,enumerable:!0,configurable:!1},Er={get:no,set:xr,enumerable:!0,configurable:!1},ke=(n,e)=>{Object.defineProperty(n,"value",e?Er:Cr)},oo=(n,e)=>{if(!n)return!1;if(n.startsWith("["))return n.substring(1,n.length-1);let t=e.length;return n.startsWith(e)?n.substring(t,n.length-t):!1},Ke=n=>`[${CSS.escape(n)}]`,vt=(n,e)=>(n.startsWith("@")&&(n=e.u.on+":"+n.slice(1)),n.includes("[")&&(n=n.replace(/[[\]]/g,e.u.dynamic)),n),fn=n=>{let e=Object.create(null);return t=>e[t]||(e[t]=n(t))},Rr=/-(\w)/g,j=fn(n=>n&&n.replace(Rr,(e,t)=>t?t.toUpperCase():"")),vr=/\B([A-Z])/g,We=fn(n=>n&&n.replace(vr,"-$1").toLowerCase()),st=fn(n=>n&&n.charAt(0).toUpperCase()+n.slice(1));var wt={mount:()=>{}};var St=n=>{var t,o;let e=(t=bt(n))==null?void 0:t.onMounted;e==null||e.forEach(r=>{r()}),(o=n.mounted)==null||o.call(n)};var pn=Symbol("scope"),mn=n=>{try{Wn();let e=n();rn(e);let t={context:e,unmount:()=>Ne(e),[pn]:1};return t[pn]=1,t}finally{Gn()}},ro=n=>I(n)?pn in n:!1;var At=Symbol("ref"),Y=Symbol("sref"),Nt=Symbol("raw");var R=n=>n!=null&&n[Y]===1;var dn={collectRefObj:!0,mount:({parseResult:n})=>({update:({values:e})=>{let t=n.context,o=e[0];if(I(o))for(let r of Object.entries(o)){let s=r[0],i=r[1],a=t[s];a!==i&&(R(a)?a(i):t[s]=i)}}})};var re=(n,e)=>{var t;(t=De(e))==null||t.onUnmounted.push(n)};var se=(n,e,t,o=!0)=>{if(!R(n))throw _(3,"observe");t&&e(n());let s=n(void 0,void 0,0,e);return o&&re(s,!0),s};var it=(n,e)=>{if(n===e)return()=>{};let t=se(n,r=>e(r)),o=se(e,r=>n(r));return e(n()),()=>{t(),o()}};var at=n=>!!n&&n[Nt]===1;var Ge=n=>(n==null?void 0:n[At])===1;var fe=[],so=n=>{var e;fe.length!==0&&((e=fe[fe.length-1])==null||e.add(n))},Je=n=>{if(!n)return()=>{};let e={stop:()=>{}};return wr(n,e),re(()=>e.stop(),!0),e.stop},wr=(n,e)=>{if(!n)return;let t=[],o=!1,r=()=>{for(let s of t)s();t=[],o=!0};e.stop=r;try{let s=new Set;if(fe.push(s),n(i=>t.push(i)),o)return;for(let i of[...s]){let a=se(i,()=>{r(),Je(n)});t.push(a)}}finally{fe.pop()}},hn=n=>{let e=fe.length,t=e>0&&fe[e-1];try{return t&&fe.push(null),n()}finally{t&&fe.pop()}},yn=n=>{try{let e=new Set;return fe.push(e),{value:n(),refs:[...e]}}finally{fe.pop()}};var Z=(n,e,t)=>{if(!R(n))return;let o=n;if(o(void 0,e,1),!t)return;let r=o();if(r){if(w(r)||ue(r))for(let s of r)Z(s,e,!0);else if(Ae(r))for(let s of r)Z(s[0],e,!0),Z(s[1],e,!0);if(I(r))for(let s in r)Z(r[s],e,!0)}};function Sr(n,e,t){Object.defineProperty(n,e,{value:t,enumerable:!1,writable:!0,configurable:!0})}var Qe=(n,e,t)=>{t.forEach(function(o){let r=n[o];Sr(e,o,function(...i){let a=r.apply(this,i),c=this[Y];for(let l of c)Z(l);return a})})},Ot=(n,e)=>{Object.defineProperty(n,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var io=Array.prototype,gn=Object.create(io),Ar=["push","pop","shift","unshift","splice","sort","reverse"];Qe(io,gn,Ar);var ao=Map.prototype,Mt=Object.create(ao),Nr=["set","clear","delete"];Ot(Mt,"Map");Qe(ao,Mt,Nr);var co=Set.prototype,kt=Object.create(co),Or=["add","clear","delete"];Ot(kt,"Set");Qe(co,kt,Or);var ye={},ae=n=>{if(R(n)||at(n))return n;let e={auto:!0,_value:n},t=c=>I(c)?Y in c?!0:w(c)?(Object.setPrototypeOf(c,gn),!0):ue(c)?(Object.setPrototypeOf(c,kt),!0):Ae(c)?(Object.setPrototypeOf(c,Mt),!0):!1:!1,o=t(n),r=new Set,s=(c,l)=>{if(ye.stack&&ye.stack.length){ye.stack[ye.stack.length-1].add(a);return}r.size!==0&&hn(()=>{for(let u of[...r.keys()])r.has(u)&&u(c,l)})},i=c=>{let l=c[Y];l||(c[Y]=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||R(u)&&(u=u(),e._value===u)?u:(t(u)&&i(u),e._value=u,e.auto&&s(u,f),e._value):(so(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[Y]=1,ke(a,!1),o&&i(n),a};var Ee=n=>{if(at(n))return n;let e;if(R(n)?(e=n,n=e()):e=ae(n),n instanceof Node||n instanceof Date||n instanceof RegExp||n instanceof Promise||n instanceof Error)return e;if(e[At]=1,w(n)){let t=n.length;for(let o=0;o<t;++o){let r=n[o];Ge(r)||(n[o]=Ee(r))}return e}if(!I(n))return e;for(let t of Object.entries(n)){let o=t[1];if(Ge(o))continue;let r=t[0];tt(r)||(n[r]=null,n[r]=Ee(o))}return e};var uo=Symbol("modelBridge"),Lt=()=>{},Mr=n=>!!(n!=null&&n[uo]),kr=n=>{n[uo]=1},Lr=n=>{let e=Ee(n());return kr(e),e},lo={collectRefObj:!0,mount:({parseResult:n,option:e})=>{if(typeof e!="string"||!e)return Lt;let t=j(e),o,r,s=Lt,i=()=>{s(),s=Lt,o=void 0,r=void 0},a=()=>{s(),s=Lt},c=(u,f)=>{o!==u&&(a(),s=it(u,f),o=u)},l=()=>{var m;let u=(m=n.refs[0])!=null?m:n.value()[0],f=n.context,p=f[t];if(!R(u)){if(r&&p===r){r(u);return}if(i(),R(p)){p(u);return}f[t]=u;return}if(Mr(u)){if(p===u)return;R(p)?c(u,p):f[t]=u;return}r||(r=Lr(u)),f[t]=r,c(u,r)};return{update:()=>{l()},unmount:()=>{s()}}}};var It=class{constructor(e){d(this,"i");d(this,"ye");d(this,"he","");d(this,"ge",-1);this.i=e,this.ye=e.o.u.inherit}N(e){this.et(e)}tt(e){if(this.ge!==e.size){let t=[...e.keys()];this.he=[...t,...t.map(We)].join(","),this.ge=e.size}return this.he}nt(e){var t;for(let o=0;o<e.length;++o){let r=(t=e[o])==null?void 0:t.components;if(r)for(let s in r)return!0}return!1}et(e){var p;let t=this.i,o=t.m,r=t.o.be,s=t.o.j;if(r.size===0&&!this.nt(o.l))return;let i=o.J(),a=o.ot(),c=this.tt(r),l=[...c?[c]:[],...a,...a.map(We)].join(",");if(J(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(t.R))continue;let y=m.parentNode;if(!y)continue;let h=m.nextSibling,E=j(m.tagName).toUpperCase(),g=i[E],C=g!=null?g:s.get(E);if(!C)continue;let D=C.template;if(!D)continue;let W=m.parentElement;if(!W)continue;let k=new Comment(" begin component: "+m.tagName),V=new Comment(" end component: "+m.tagName);W.insertBefore(k,m),m.remove();let ie=t.o.u.context,ee=t.o.u.contextAlias,U=t.o.u.bind,b=(x,T)=>{let v={},q=x.hasAttribute(ie);return o.C(T,()=>{o.v(v),q?t.b(dn,x,ie):x.hasAttribute(ee)&&t.b(dn,x,ee);let B=C.props;if(!B||B.length===0)return;B=B.map(j);let S=new Map(B.map(A=>[A.toLowerCase(),A]));for(let A of[...B,...B.map(We)]){let P=x.getAttribute(A);P!==null&&(v[j(A)]=P,x.removeAttribute(A))}let M=t._.xe(x,!1);for(let[A,P]of M.entries()){let[oe,Ie]=P.Q;if(!Ie)continue;let je=S.get(j(Ie).toLowerCase());je&&(oe!=="."&&oe!==":"&&oe!==U||t.b(lo,x,A,!0,je,P.X))}}),v},N=[...o.k()],Q=()=>{var q;let x=b(m,N),T=new nt(x,m,N,k,V),v=mn(()=>{var B;return(B=C.context(T))!=null?B:{}}).context;if(T.autoProps){for(let[B,S]of Object.entries(x))if(B in v){let M=v[B];if(M===S)continue;if(R(M)){R(S)?T.entangle?K(k,it(S,M)):M(S()):M(S);continue}}else v[B]=S;(q=T.onAutoPropsAssigned)==null||q.call(T)}return{componentCtx:v,head:T}},{componentCtx:me,head:_e}=Q(),ge=[...Ce(D)],L=ge.length,pt=m.childNodes.length===0,O=x=>{let T=x.parentElement,v=x.name;if(J(v)&&(v=x.getAttributeNames().filter(S=>S.startsWith("#"))[0],J(v)?v="default":v=v.substring(1)),pt){if(v==="default"){let S=t.o.u.text,M=m.getAttribute(S);if(!J(M)){let A=document.createElement("span");A.setAttribute(S,M),T.insertBefore(A,x),m.removeAttribute(S);return}}for(let S of[...x.childNodes])T.insertBefore(S,x);return}let q=m.querySelector(`template[name='${v}'], template[\\#${v}]`);!q&&v==="default"&&(q=m.querySelector("template:not([name])"),q&&q.getAttributeNames().filter(S=>S.startsWith("#")).length>0&&(q=null));let B=S=>{_e.enableSwitch&&o.C(N,()=>{o.v(me);let M=b(x,o.k());o.C(N,()=>{o.v(M);let A=o.k(),P=Xn(A);for(let oe of S)Be(oe)&&(oe.setAttribute(ot,P),sn(P),K(oe,()=>{an(P)}))})})};if(q){let S=[...Ce(q)];for(let M of S)T.insertBefore(M,x);B(S)}else{if(v!=="default"){for(let M of[...Ce(x)])T.insertBefore(M,x);return}let S=[...Ce(m)].filter(M=>!he(M));for(let M of S)T.insertBefore(M,x);B(S)}},X=x=>{if(!Be(x))return;let T=x.querySelectorAll("slot");if(to(x)){O(x),x.remove();return}for(let v of T)O(v),v.remove()};(()=>{for(let x=0;x<L;++x)ge[x]=ge[x].cloneNode(!0),y.insertBefore(ge[x],h),X(ge[x])})(),W.insertBefore(V,h);let te=()=>{if(!C.inheritAttrs)return;let x=ge.filter(v=>v.nodeType===Node.ELEMENT_NODE);x.length>1&&(x=x.filter(v=>v.hasAttribute(this.ye)));let T=x[0];if(T)for(let v of m.getAttributeNames()){if(v===ie||v===ee)continue;let q=m.getAttribute(v);if(v==="class")T.classList.add(...q.split(" "));else if(v==="style"){let B=T.style,S=m.style;for(let M of S)B.setProperty(M,S.getPropertyValue(M))}else T.setAttribute(vt(v,t.o),q)}},be=()=>{for(let x of m.getAttributeNames())!x.startsWith("@")&&!x.startsWith(t.o.u.on)&&m.removeAttribute(x)},Se=()=>{te(),be(),o.v(me),t.Te(m,!1),me.$emit=_e.emit,Me(t,ge),K(m,()=>{Ne(me)}),K(k,()=>{Te(m)}),St(me)};o.C(N,Se)}}};var bn=class{constructor(e,t){d(this,"Q");d(this,"X");d(this,"Re",[]);this.Q=e,this.X=t}},Dt=class{constructor(e){d(this,"i");d(this,"Ce");d(this,"Ee");d(this,"Y");var o;this.i=e,this.Ce=e.o.rt(),this.Y=new Map;let t=new Map;for(let r of this.Ce){let s=(o=r[0])!=null?o:"",i=t.get(s);i?i.push(r):t.set(s,[r])}this.Ee=t}ve(e){let t=this.Y.get(e);if(t)return t;let o=e,r=o.startsWith(".");r&&(o=":"+o.slice(1));let s=o.indexOf("."),a=(s<0?o:o.substring(0,s)).split(/[:@]/);J(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]=j(a[a.length-1])),u&&(a[0]=".");let f={terms:a,flags:c};return this.Y.set(e,f),f}xe(e,t){let o=new Map;if(!rt(e))return o;let r=this.Ee,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.ve(l);m=new bn(y.terms,y.flags),o.set(l,m)}m.Re.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),!t||!e.firstElementChild)return o;let a=e.querySelectorAll("*");for(let c of a)i(c);return o}};var fo=()=>{},Ir=(n,e)=>{for(let t of n){let o=t.cloneNode(!0);e.appendChild(o)}},Ut=class{constructor(e){d(this,"i");d(this,"L");d(this,"we");this.i=e,this.L=e.o.u.is,this.we=Ke(this.L)+", [is]"}N(e){let t=e.hasAttribute(this.L),o=Oe(e,this.we);for(let r of o)this.b(r);return t}b(e){let t=e.getAttribute(this.L);if(!t){if(t=e.getAttribute("is"),!t)return;if(!t.startsWith("regor:")){if(!t.startsWith("r-"))return;let o=t.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}t=`'${t.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.L),this.O(e,t)}U(e,t){let o=ze(e),r=e.parentNode,s=document.createComment(`__begin__ dynamic ${t!=null?t:""}`);r.insertBefore(s,e),Fe(s,o),o.forEach(a=>{G(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${t!=null?t:""}`);return r.insertBefore(i,s.nextSibling),{nodes:o,parent:r,commentBegin:s,commentEnd:i}}O(e,t){let{nodes:o,parent:r,commentBegin:s,commentEnd:i}=this.U(e,` => ${t} `),a=this.i.m.M(t),c=a.value,l=this.i.m,u=l.k(),f={name:""},p=he(e)?o:[...o[0].childNodes],m=()=>{l.C(u,()=>{var C;let E=c()[0];if(I(E)&&(E.name?E=E.name:E=(C=Object.entries(l.J()).filter(D=>D[1]===E)[0])==null?void 0:C[0]),!z(E)||J(E)){xe(s,i);return}if(f.name===E)return;xe(s,i);let g=document.createElement(E);for(let D of e.getAttributeNames())D!==this.L&&g.setAttribute(D,e.getAttribute(D));Ir(p,g),r.insertBefore(g,i),this.i.H(g),f.name=E})},y=fo;K(s,()=>{a.stop(),y(),y=fo}),m(),y=a.subscribe(m)}};var $=n=>{let e=n;return e!=null&&e[Y]===1?e():e};var Dr=(n,e)=>{let[t,o]=e;F(o)?o(n,t):n.innerHTML=t==null?void 0:t.toString()},Bt={mount:()=>({update:({el:n,values:e})=>{Dr(n,e)}})};var Pt=class n{constructor(e){d(this,"Z");this.Z=e}static st(e,t){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.j.size>0)return;let l=e._,u=[],f=0,p=[];for(let h=t.length-1;h>=0;--h)p.push(t[h]);for(;p.length>0;){let h=p.pop();if(h.nodeType===Node.ELEMENT_NODE){let g=h;if(g.tagName==="TEMPLATE"||g.tagName.includes("-"))return;let C=j(g.tagName).toUpperCase();if(r.j.has(C)||c[C])return;let D=g.attributes;for(let W=0;W<D.length;++W){let k=(m=D.item(W))==null?void 0:m.name;if(!k)continue;if(i.has(k))return;let{terms:V,flags:ie}=l.ve(k),[ee,U]=V,b=(y=a[k])!=null?y:a[ee];if(b){if(b===Bt)return;u.push({nodeIndex:f,attrName:k,directive:b,option:U,flags:ie})}}++f}let E=h.childNodes;for(let g=E.length-1;g>=0;--g)p.push(E[g])}if(u.length!==0)return new n(u)}b(e,t){let o=[],r=[];for(let s=t.length-1;s>=0;--s)r.push(t[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 Ur=(n,e)=>{let t=e.parentNode;if(t)for(let o=0;o<n.items.length;++o)t.insertBefore(n.items[o],e)},Br=n=>{var a;let e=n.length,t=n.slice(),o=[],r,s,i;for(let c=0;c<e;++c){let l=n[c];if(l===0)continue;let u=o[o.length-1];if(u===void 0||n[u]<l){t[c]=u!=null?u:-1,o.push(c);continue}for(r=0,s=o.length-1;r<s;)i=r+s>>1,n[o[i]]<l?r=i+1:s=i;l<n[o[r]]&&(r>0&&(t[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=t[s];return o},Ht=class{static it(e){let{oldItems:t,newValues:o,getKey:r,isSameValue:s,mountNewValue:i,removeMountItem:a,endAnchor:c}=e,l=t.length,u=o.length,f=new Array(u),p=new Set;for(let b=0;b<u;++b){let N=r(o[b]);if(N===void 0||p.has(N))return;p.add(N),f[b]=N}let m=new Array(u),y=0,h=l-1,E=u-1;for(;y<=h&&y<=E;){let b=t[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<=E;){let b=t[h];if(r(b.value)!==f[E]||!s(b.value,o[E]))break;b.value=o[E],m[E]=b,--h,--E}if(y>h){for(let b=E;b>=y;--b){let N=b+1<u?m[b+1].items[0]:c;m[b]=i(b,o[b],N)}return m}if(y>E){for(let b=y;b<=h;++b)a(t[b]);return m}let g=y,C=y,D=E-C+1,W=new Array(D).fill(0),k=new Map;for(let b=C;b<=E;++b)k.set(f[b],b);let V=!1,ie=0;for(let b=g;b<=h;++b){let N=t[b],Q=k.get(r(N.value));if(Q===void 0){a(N);continue}if(!s(N.value,o[Q])){a(N);continue}N.value=o[Q],m[Q]=N,W[Q-C]=b+1,Q>=ie?ie=Q:V=!0}let ee=V?Br(W):[],U=ee.length-1;for(let b=D-1;b>=0;--b){let N=C+b,Q=N+1<u?m[N+1].items[0]:c;if(W[b]===0){m[N]=i(N,o[N],Q);continue}let me=m[N];V&&(U>=0&&ee[U]===b?--U:me&&Ur(me,Q))}return m}};var ct=class{constructor(e){d(this,"x",[]);d(this,"V",new Map);d(this,"ee");this.ee=e}get w(){return this.x.length}te(e){let t=this.ee(e.value);t!==void 0&&this.V.set(t,e)}ne(e){var o;let t=this.ee((o=this.x[e])==null?void 0:o.value);t!==void 0&&this.V.delete(t)}static at(e,t){return{items:[],index:e,value:t,order:-1}}v(e){e.order=this.w,this.x.push(e),this.te(e)}ct(e,t){let o=this.w;for(let r=e;r<o;++r)this.x[r].order=r+1;t.order=e,this.x.splice(e,0,t),this.te(t)}I(e){return this.x[e]}oe(e,t){this.ne(e),this.x[e]=t,this.te(t),t.order=e}Se(e){this.ne(e),this.x.splice(e,1);let t=this.w;for(let o=e;o<t;++o)this.x[o].order=o}Ae(e){let t=this.w;for(let o=e;o<t;++o)this.ne(o);this.x.splice(e)}Gt(e){return this.V.has(e)}ut(e){var o;let t=this.V.get(e);return(o=t==null?void 0:t.order)!=null?o:-1}};var Tn=Symbol("r-for"),Pr=n=>-1,po=()=>{},_t=class _t{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=Ke(this.T),this.R=e.o.u.pre}N(e){let t=e.hasAttribute(this.T),o=Oe(e,this.re);for(let r of o)this.pt(r);return t}G(e){return e[Tn]?!0:(e[Tn]=!0,Oe(e,this.re).forEach(t=>t[Tn]=!0),!1)}pt(e){if(e.hasAttribute(this.R)||this.G(e))return;let t=e.getAttribute(this.T);if(!t){H(0,this.T,e);return}e.removeAttribute(this.T),this.lt(e,t)}Ne(e){return le(e)?[]:(F(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))}lt(e,t){var pt;let o=this.ft(t);if(!(o!=null&&o.list)){H(1,this.T,t,e);return}let r=this.i.o.u.key,s=this.i.o.u.keyBind,i=(pt=e.getAttribute(r))!=null?pt:e.getAttribute(s);e.removeAttribute(r),e.removeAttribute(s);let a=ze(e),c=Pt.st(this.i,a),l=e.parentNode;if(!l)return;let u=`${this.T} => ${t}`,f=new Comment(`__begin__ ${u}`);l.insertBefore(f,e),Fe(f,a),a.forEach(O=>{G(O)}),e.remove();let p=new Comment(`__end__ ${u}`);l.insertBefore(p,f.nextSibling);let m=this.i,y=m.m,h=y.k(),g=h.length===1?[void 0,h[0]]:void 0,C=this.mt(i),D=(O,X)=>C(O)===C(X),W=(O,X)=>O===X,k=(O,X,ne)=>{let te=o.createContext(X,O),be=ct.at(te.index,X),Se=()=>{var q,B;let x=(B=(q=p.parentNode)!=null?q:f.parentNode)!=null?B:l,T=ne.previousSibling,v=[];for(let S=0;S<a.length;++S){let M=a[S].cloneNode(!0);x.insertBefore(M,ne),v.push(M)}for(c?c.b(m,v):Me(m,v),T=T.nextSibling;T!==ne;)be.items.push(T),T=T.nextSibling};return g?(g[0]=te.ctx,y.C(g,Se)):y.C(h,()=>{y.v(te.ctx),Se()}),be},V=(O,X)=>{let ne=L.I(O).items,te=ne[ne.length-1].nextSibling;for(let be of ne)G(be);L.oe(O,k(O,X,te))},ie=(O,X)=>{L.v(k(O,X,p))},ee=O=>{for(let X of L.I(O).items)G(X)},U=O=>{let X=L.w;for(let ne=O;ne<X;++ne)L.I(ne).index(ne)},b=O=>{let X=f.parentNode,ne=p.parentNode;if(!X||!ne)return;let te=L.w;F(O)&&(O=O());let be=$(O[0]);if(w(be)&&be.length===0){xe(f,p),L.Ae(0);return}let Se=[];for(let A of this.Ne(O[0]))Se.push(A);let x=Ht.it({oldItems:L.x,newValues:Se,getKey:C,isSameValue:W,mountNewValue:(A,P,oe)=>k(A,P,oe),removeMountItem:A=>{for(let P=0;P<A.items.length;++P)G(A.items[P])},endAnchor:p});if(x){L.x=x,L.V.clear();for(let A=0;A<x.length;++A){let P=x[A];P.order=A,P.index(A);let oe=C(P.value);oe!==void 0&&L.V.set(oe,P)}return}let T=0,v=Number.MAX_SAFE_INTEGER,q=te,B=this.i.o.forGrowThreshold,S=()=>L.w<q+B;for(let A of Se){let P=()=>{if(T<te){let oe=L.I(T++);if(D(oe.value,A)){if(W(oe.value,A))return;V(T-1,A);return}let Ie=L.ut(C(A));if(Ie>=T&&Ie-T<10){if(--T,v=Math.min(v,T),ee(T),L.Se(T),--te,Ie>T+1)for(let je=T;je<Ie-1&&je<te&&!D(L.I(T).value,A);)++je,ee(T),L.Se(T),--te;P();return}S()?(L.ct(T-1,k(T,A,L.I(T-1).items[0])),v=Math.min(v,T-1),++te):V(T-1,A)}else ie(T++,A)};P()}let M=T;for(te=L.w;T<te;)ee(T++);L.Ae(M),U(v)},N=()=>{Q.stop(),_e(),_e=po},Q=y.M(o.list),me=Q.value,_e=po,ge=0,L=new ct(C);for(let O of this.Ne(me()[0]))L.v(k(ge++,O,p));K(f,N),_e=Q.subscribe(b)}ft(e){var c,l;let t=_t.dt.exec(e);if(!t)return;let o=(t[1]+((c=t[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=t[3];if(!i||o.length===0)return;let a=/[{[]/.test(e);return{list:i,createContext:(u,f)=>{let p={},m=$(u);if(!a&&o.length===1)p[o[0]]=u;else if(w(m)){let h=0;for(let E of o)p[E]=m[h++]}else for(let h of o)p[h]=m[h];let y={ctx:p,index:Pr};return s&&(y.index=p[s.startsWith("#")?s.substring(1):s]=ae(f)),y}}}mt(e){if(!e)return o=>o;let t=e.trim();if(!t)return o=>o;if(t.includes(".")){let o=this.yt(t),r=o.length>1?o.slice(1):void 0;return s=>{let i=$(s),a=this.Oe(i,o);return a!==void 0||!r?a:this.Oe(i,r)}}return o=>{var r;return $((r=$(o))==null?void 0:r[t])}}yt(e){return e.split(".").filter(t=>t.length>0)}Oe(e,t){var r;let o=e;for(let s of t)o=(r=$(o))==null?void 0:r[s];return $(o)}};d(_t,"dt",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var Vt=_t;var jt=class{constructor(e){d(this,"se",0);d(this,"ie",new Map);d(this,"m");d(this,"Me");d(this,"ke");d(this,"Le");d(this,"Ve");d(this,"_");d(this,"o");d(this,"R");d(this,"Ie");this.m=e,this.o=e.o,this.ke=new Vt(this),this.Me=new Rt(this),this.Le=new Ut(this),this.Ve=new It(this),this._=new Dt(this),this.R=this.o.u.pre,this.Ie=this.o.u.dynamic}ht(e){let t=he(e)?[e]:e.querySelectorAll("template");for(let o of t){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);Me(this,i)}}H(e){++this.se;try{if(e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.R)||this.Me.N(e)||this.ke.N(e)||this.Le.N(e))return;this.Ve.N(e),this.ht(e),this.Te(e,!0)}finally{--this.se,this.se===0&&this.gt()}}bt(e,t){let o=document;if(!o){let r=e.parentNode;for(;r!=null&&r.parentNode;)r=r.parentNode;if(!r)return null;o=r}return o.querySelector(t)}De(e,t){let o=this.bt(e,t);if(!o)return!1;let r=e.parentElement;if(!r)return!1;let s=new Comment(`teleported => '${t}'`);return r.insertBefore(s,e),e.teleportedFrom=s,s.teleportedTo=e,K(s,()=>{G(e)}),o.appendChild(e),!0}xt(e,t){this.ie.set(e,t)}gt(){let e=this.ie;if(e.size!==0){this.ie=new Map;for(let[t,o]of e.entries())this.De(t,o)}}Te(e,t){var s;let o=this._.xe(e,t),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.Re;for(let p=0;p<f.length;++p){let m=f[p];this.b(u,m,i,!1,l,a.X)}}}b(e,t,o,r,s,i){if(t.hasAttribute(this.R))return;let a=t.getAttribute(o);t.removeAttribute(o);let c=l=>{let u=l;for(;u;){let f=u.getAttribute(ot);if(f)return f;u=u.parentElement}return null};if(cn()){let l=c(t);if(l){this.m.C(Yn(l),()=>{this.O(e,t,a,s,i)});return}}this.O(e,t,a,s,i)}Tt(e,t,o){return e!==wt?!1:(J(o)||this.De(t,o)||this.xt(t,o),!0)}O(e,t,o,r,s){if(t.nodeType!==Node.ELEMENT_NODE||o==null||this.Tt(e,t,o))return;let i=this.Rt(r,e.once),a=this.Ct(e,o),c=this.Et(a,i);K(t,c.stop);let l=this.vt(t,o,a,i,r,s),u=this.wt(e,l,c);if(!u)return;let f=this.St(l,a,i,r,u);f(),e.once||(c.result=a.subscribe(f),i&&(c.dynamic=i.subscribe(f)))}Rt(e,t){let o=oo(e,this.Ie);if(o)return this.m.M(j(o),void 0,void 0,void 0,t)}Ct(e,t){return this.m.M(t,e.isLazy,e.isLazyKey,e.collectRefObj,e.once)}Et(e,t){let o={stop:()=>{var r,s,i;e.stop(),t==null||t.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}vt(e,t,o,r,s,i){return{el:e,expr:t,values:o.value(),previousValues:void 0,option:r?r.value()[0]:s,previousOption:void 0,flags:i,parseResult:o,dynamicOption:r}}wt(e,t,o){let r=e.mount(t);if(typeof r=="function"){o.mounted=r;return}return r!=null&&r.unmount&&(o.mounted=r.unmount),r==null?void 0:r.update}St(e,t,o,r,s){let i,a;return()=>{let c=t.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 mo="http://www.w3.org/1999/xlink",Hr={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 Vr(n){return!!n||n===""}var _r=(n,e,t,o,r,s)=>{var a;if(o){s&&s.includes("camel")&&(o=j(o)),$t(n,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=t==null?void 0:t[c])==null?void 0:a[0],f=l[0],p=l[1];$t(n,f,p,u)}else if(I(l))for(let u of Object.entries(l)){let f=u[0],p=u[1],m=t==null?void 0:t[c],y=m&&f in m?f:void 0;$t(n,f,p,y)}else{let u=t==null?void 0:t[c],f=e[c++],p=e[c];$t(n,f,p,u)}}},xn={mount:()=>({update:({el:n,values:e,previousValues:t,option:o,previousOption:r,flags:s})=>{_r(n,e,t,o,r,s)}})},$t=(n,e,t,o)=>{if(o&&o!==e&&n.removeAttribute(o),le(e)){H(3,"r-bind",n);return}if(!z(e)){H(6,`Attribute key is not string at ${n.outerHTML}`,e);return}if(e.startsWith("xlink:")){le(t)?n.removeAttributeNS(mo,e.slice(6,e.length)):n.setAttributeNS(mo,e,t);return}let r=e in Hr;le(t)||r&&!Vr(t)?n.removeAttribute(e):n.setAttribute(e,r?"":t)};var jr=(n,e,t)=>{let o=e.length;for(let r=0;r<o;++r){let s=e[r],i=t==null?void 0:t[r];if(w(s)){let a=s.length;for(let c=0;c<a;++c)ho(n,s[c],i==null?void 0:i[c])}else ho(n,s,i)}},Cn={mount:()=>({update:({el:n,values:e,previousValues:t})=>{jr(n,e,t)}})},ho=(n,e,t)=>{let o=n.classList,r=z(e),s=z(t);if(e&&!r){if(t&&!s)for(let i in t)(!(i in e)||!e[i])&&o.remove(i);for(let i in e)e[i]&&o.add(i)}else r?t!==e&&(s&&o.remove(...t.trim().split(/\s+/)),o.add(...e.trim().split(/\s+/))):t&&s&&o.remove(...t.trim().split(/\s+/))};function $r(n,e){if(n.length!==e.length)return!1;let t=!0;for(let o=0;t&&o<n.length;o++)t=Re(n[o],e[o]);return t}function Re(n,e){if(n===e)return!0;let t=nn(n),o=nn(e);if(t||o)return t&&o?n.getTime()===e.getTime():!1;if(t=tt(n),o=tt(e),t||o)return n===e;if(t=w(n),o=w(e),t||o)return t&&o?$r(n,e):!1;if(t=I(n),o=I(e),t||o){if(!t||!o)return!1;let r=Object.keys(n).length,s=Object.keys(e).length;if(r!==s)return!1;for(let i in n){let a=Object.prototype.hasOwnProperty.call(n,i),c=Object.prototype.hasOwnProperty.call(e,i);if(a&&!c||!Re(n[i],e[i]))return!1}return!0}return String(n)===String(e)}function qt(n,e){return n.findIndex(t=>Re(t,e))}var yo=n=>{let e=parseFloat(n);return isNaN(e)?n:e};var En=n=>{if(!R(n))throw _(3,"pause");n(void 0,void 0,3)};var Rn=n=>{if(!R(n))throw _(3,"resume");n(void 0,void 0,4)};var bo={mount:({el:n,parseResult:e,flags:t})=>({update:({values:o})=>{qr(n,o[0])},unmount:Fr(n,e,t)})},qr=(n,e)=>{let t=Eo(n);if(t&&To(n))w(e)?e=qt(e,ve(n))>-1:ue(e)?e=e.has(ve(n)):e=Qr(n,e),n.checked=e;else if(t&&xo(n))n.checked=Re(e,ve(n));else if(t||Ro(n))Co(n)?n.value!==(e==null?void 0:e.toString())&&(n.value=e):n.value!==e&&(n.value=e);else if(vo(n)){let o=n.options,r=o.length,s=n.multiple;for(let i=0;i<r;i++){let a=o[i],c=ve(a);if(s)w(e)?a.selected=qt(e,c)>-1:a.selected=e.has(c);else if(Re(ve(a),e)){n.selectedIndex!==i&&(n.selectedIndex=i);return}}!s&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}else H(7,n)},ut=n=>(R(n)&&(n=n()),F(n)&&(n=n()),n?z(n)?{trim:n.includes("trim"),lazy:n.includes("lazy"),number:n.includes("number"),int:n.includes("int")}:{trim:!!n.trim,lazy:!!n.lazy,number:!!n.number,int:!!n.int}:{trim:!1,lazy:!1,number:!1,int:!1}),To=n=>n.type==="checkbox",xo=n=>n.type==="radio",Co=n=>n.type==="number"||n.type==="range",Eo=n=>n.tagName==="INPUT",Ro=n=>n.tagName==="TEXTAREA",vo=n=>n.tagName==="SELECT",Fr=(n,e,t)=>{let o=e.value,r=ut(t==null?void 0:t.join(",")),s=ut(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,n),()=>{};let a=()=>e.refs[0],c=Eo(n);return c&&To(n)?Kr(n,a):c&&xo(n)?Xr(n,a):c||Ro(n)?zr(n,i,a,o):vo(n)?Yr(n,a,o):(H(7,n),()=>{})},go=/[.,' ·٫]/,zr=(n,e,t,o)=>{let s=e.lazy?"change":"input",i=Co(n),a=()=>{!e.trim&&!ut(o()[1]).trim||(n.value=n.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=()=>{n.removeEventListener(s,f),n.removeEventListener("change",a),n.removeEventListener("compositionstart",c),n.removeEventListener("compositionend",l),n.removeEventListener("change",l)},f=p=>{let m=t();if(!m)return;let y=p.target;if(!y||y.composing)return;let h=y.value,E=ut(o()[1]);if(i||E.number||E.int){if(E.int)h=parseInt(h);else{if(go.test(h[h.length-1])&&h.split(go).length===2){if(h+="0",h=parseFloat(h),isNaN(h))h="";else if(m()===h)return}h=parseFloat(h)}isNaN(h)&&(h=""),n.value=h}else E.trim&&(h=h.trim());m(h)};return n.addEventListener(s,f),n.addEventListener("change",a),n.addEventListener("compositionstart",c),n.addEventListener("compositionend",l),n.addEventListener("change",l),u},Kr=(n,e)=>{let t="change",o=()=>{n.removeEventListener(t,r)},r=()=>{let s=e();if(!s)return;let i=ve(n),a=n.checked,c=s();if(w(c)){let l=qt(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(Jr(n,a))};return n.addEventListener(t,r),o},ve=n=>"_value"in n?n._value:n.value,wo="trueValue",Wr="falseValue",So="true-value",Gr="false-value",Jr=(n,e)=>{let t=e?wo:Wr;if(t in n)return n[t];let o=e?So:Gr;return n.hasAttribute(o)?n.getAttribute(o):e},Qr=(n,e)=>{if(wo in n)return Re(e,n.trueValue);let o=So;return n.hasAttribute(o)?Re(e,n.getAttribute(o)):Re(e,!0)},Xr=(n,e)=>{let t="change",o=()=>{n.removeEventListener(t,r)},r=()=>{let s=e();if(!s)return;let i=ve(n);s(i)};return n.addEventListener(t,r),o},Yr=(n,e,t)=>{let o="change",r=()=>{n.removeEventListener(o,s)},s=()=>{let i=e();if(!i)return;let c=ut(t()[1]).number,l=Array.prototype.filter.call(n.options,u=>u.selected).map(u=>c?yo(ve(u)):ve(u));if(n.multiple){let u=i();try{if(En(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{Rn(i),Z(i)}}else i(l[0])};return n.addEventListener(o,s),r};var Zr=["stop","prevent","capture","self","once","left","right","middle","passive"],es=n=>{let e={};if(J(n))return;let t=n.split(",");for(let o of Zr)e[o]=t.includes(o);return e},ts=(n,e,t,o,r)=>{var l,u;if(o){let f=e.value(),p=$(o.value()[0]);return z(p)?vn(n,j(p),()=>e.value()[0],(l=r==null?void 0:r.join(","))!=null?l:f[1]):()=>{}}else if(t){let f=e.value();return vn(n,j(t),()=>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(F(p)&&(p=p()),I(p))for(let m of Object.entries(p)){let y=m[0],h=()=>{let g=e.value()[f];return F(g)&&(g=g()),g=g[y],F(g)&&(g=g()),g},E=p[y+"_flags"];s.push(vn(n,y,h,E))}else H(2,"r-on",n)}return i},wn={isLazy:(n,e)=>e===-1&&n%2===0,isLazyKey:(n,e)=>e===0&&!n.endsWith("_flags"),once:!1,collectRefObj:!0,mount:({el:n,parseResult:e,option:t,dynamicOption:o,flags:r})=>ts(n,e,t,o,r)},ns=(n,e)=>{if(n.startsWith("keydown")||n.startsWith("keyup")||n.startsWith("keypress")){e!=null||(e="");let t=[...n.split("."),...e.split(",")];n=t[0];let o=t[1],r=t.includes("ctrl"),s=t.includes("shift"),i=t.includes("alt"),a=t.includes("meta"),c=l=>!(r&&!l.ctrlKey||s&&!l.shiftKey||i&&!l.altKey||a&&!l.metaKey);return o?[n,l=>c(l)?l.key.toUpperCase()===o.toUpperCase():!1]:[n,c]}return[n,t=>!0]},vn=(n,e,t,o)=>{if(J(e))return H(5,"r-on",n),()=>{};let r=es(o),s=r?{capture:r.capture,passive:r.passive,once:r.once}:void 0,i;[e,i]=ns(e,o);let a=u=>{if(!i(u)||!t&&e==="submit"&&(r!=null&&r.prevent))return;let f=t(u);F(f)&&(f=f(u)),F(f)&&f(u)},c=()=>{n.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!==n)return;r.stop&&u.stopPropagation(),r.prevent&&u.preventDefault(),a(u)}finally{r.once&&c()}};return n.addEventListener(e,l,s),c};var os=(n,e,t,o)=>{if(t){o&&o.includes("camel")&&(t=j(t)),Xe(n,t,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];Xe(n,a,c)}else if(I(i))for(let a of Object.entries(i)){let c=a[0],l=a[1];Xe(n,c,l)}else{let a=e[s++],c=e[s];Xe(n,a,c)}}},Ao={mount:()=>({update:({el:n,values:e,option:t,flags:o})=>{os(n,e,t,o)}})};function rs(n){return!!n||n===""}var Xe=(n,e,t)=>{if(le(e)){H(3,":prop",n);return}if(e==="innerHTML"||e==="textContent"){let s=[...n.childNodes];setTimeout(()=>s.forEach(Te),1),n[e]=t!=null?t:"";return}let o=n.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){n._value=t;let s=o==="OPTION"?n.getAttribute("value"):n.value,i=t!=null?t:"";s!==i&&(n.value=i),t==null&&n.removeAttribute(e);return}let r=!1;if(t===""||t==null){let s=typeof n[e];s==="boolean"?t=rs(t):t==null&&s==="string"?(t="",r=!0):s==="number"&&(t=0,r=!0)}try{n[e]=t}catch(s){r||H(4,e,o,t,s)}r&&n.removeAttribute(e)};var No={once:!0,mount:({el:n,parseResult:e,expr:t})=>{let o=e,r=o.value()[0],s=w(r),i=o.refs[0];return s?r.push(n):i?i==null||i(n):o.context[t]=n,()=>{if(s){let a=r.indexOf(n);a!==-1&&r.splice(a,1)}else i==null||i(null)}}};var ss=(n,e)=>{let t=Ue(n).data,o=t._ord;zn(o)&&(o=t._ord=n.style.display),!!e[0]?n.style.display=o:n.style.display="none"},Oo={mount:()=>({update:({el:n,values:e})=>{ss(n,e)}})};var is=(n,e,t)=>{let o=e.length;for(let r=0;r<o;++r){let s=e[r],i=t==null?void 0:t[r];if(w(s)){let a=s.length;for(let c=0;c<a;++c)Mo(n,s[c],i==null?void 0:i[c])}else Mo(n,s,i)}},Ft={mount:()=>({update:({el:n,values:e,previousValues:t})=>{is(n,e,t)}})},Mo=(n,e,t)=>{let o=n.style,r=z(e);if(e&&!r){if(t&&!z(t))for(let s in t)e[s]==null&&An(o,s,"");for(let s in e)An(o,s,e[s])}else{let s=o.display;if(r?t!==e&&(o.cssText=e):t&&n.removeAttribute("style"),"_ord"in Ue(n).data)return;o.display=s}},ko=/\s*!important$/;function An(n,e,t){if(w(t))t.forEach(o=>{An(n,e,o)});else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{let o=as(n,e);ko.test(t)?n.setProperty(We(o),t.replace(ko,""),"important"):n[o]=t}}var Lo=["Webkit","Moz","ms"],Sn={};function as(n,e){let t=Sn[e];if(t)return t;let o=j(e);if(o!=="filter"&&o in n)return Sn[e]=o;o=st(o);for(let r=0;r<Lo.length;r++){let s=Lo[r]+o;if(s in n)return Sn[e]=s}return e}var ce=n=>Io($(n)),Io=(n,e=new WeakMap)=>{if(!n||!I(n))return n;if(w(n))return n.map(ce);if(ue(n)){let o=new Set;for(let r of n.keys())o.add(ce(r));return o}if(Ae(n)){let o=new Map;for(let r of n)o.set(ce(r[0]),ce(r[1]));return o}if(e.has(n))return $(e.get(n));let t=dt({},n);e.set(n,t);for(let o of Object.entries(t))t[o[0]]=Io($(o[1]),e);return t};var cs=(n,e)=>{var o;let t=e[0];n.textContent=ue(t)?JSON.stringify(ce([...t])):Ae(t)?JSON.stringify(ce([...t])):I(t)?JSON.stringify(ce(t)):(o=t==null?void 0:t.toString())!=null?o:""},Do={mount:()=>({update:({el:n,values:e})=>{cs(n,e)}})};var Uo={mount:()=>({update:({el:n,values:e})=>{Xe(n,"value",e[0])}})};var Le=class Le{constructor(e){d(this,"P",{});d(this,"u",{});d(this,"rt",()=>Object.keys(this.P).filter(e=>e.length===1||!e.startsWith(":")));d(this,"be",new Map);d(this,"j",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.Nt()}static getDefault(){var e;return(e=Le.Ue)!=null?e:Le.Ue=new Le}Nt(){let e={},t=globalThis;for(let o of Le.At.split(","))e[o]=t[o];return e.ref=Ee,e.sref=ae,e.flatten=ce,e}addComponent(...e){for(let t of e){if(!t.defaultName){Tt.warning("Registered component's default name is not defined",t);continue}this.be.set(st(t.defaultName),t),this.j.set(st(t.defaultName).toLocaleUpperCase(),t)}}setDirectives(e){this.P={".":Ao,":":xn,"@":wn,[`${e}on`]:wn,[`${e}bind`]:xn,[`${e}html`]:Bt,[`${e}text`]:Do,[`${e}show`]:Oo,[`${e}model`]:bo,":style":Ft,[`${e}style`]:Ft,[`${e}bind:style`]:Ft,":class":Cn,[`${e}bind:class`]:Cn,":ref":No,":value":Uo,[`${e}teleport`]:wt},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(Le,"Ue"),d(Le,"At","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 pe=Le;var zt=(n,e)=>{if(!n)return;let o=(e!=null?e:pe.getDefault()).u,r=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of ls(n,o.pre,s))us(i,o.text,r,s)},us=(n,e,t,o)=>{var c;let r=n.textContent;if(!r)return;let s=t,i=r.split(s);if(i.length<=1)return;if(((c=n.parentElement)==null?void 0:c.childNodes.length)===1&&i.length===3){let l=i[1],u=Bo(l,o);if(u&&J(i[0])&&J(i[2])){let f=n.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=Bo(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))}n.replaceWith(a)},ls=(n,e,t)=>{let o=[],r=s=>{var i;if(s.nodeType===Node.TEXT_NODE)t.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(n),o},Bo=(n,e)=>e.find(t=>n.startsWith(t.start)&&n.endsWith(t.end));var fs=9,ps=10,ms=13,ds=32,we=46,Kt=44,hs=39,ys=34,Wt=40,Ye=41,Gt=91,Nn=93,On=63,gs=59,Po=58,Ho=123,Jt=125,He=43,Qt=45,Mn=96,Vo=47,kn=92,_o=new Set([2,3]),Ko={"=":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},bs=$n(dt({"=>":2},Ko),{"||":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}),Wo=Object.keys(Ko),Ts=new Set(Wo),In=new Set(["=>"]);Wo.forEach(n=>In.add(n));var jo={true:!0,false:!1,null:null},xs="this",Ze="Expected ",Ve="Unexpected ",Un="Unclosed ",Cs=Ze+":",$o=Ze+"expression",Es="missing }",Rs=Ve+"object property",vs=Un+"(",qo=Ze+"comma",Fo=Ve+"token ",ws=Ve+"period",Ln=Ze+"expression after ",Ss="missing unaryOp argument",As=Un+"[",Ns=Ze+"exponent (",Os="Variable names cannot start with a number (",Ms=Un+'quote after "',lt=n=>n>=48&&n<=57,zo=n=>bs[n],Dn=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}ae(e){return this.$(e)||lt(e)}r(e){return new Error(`${e} at character ${this.e}`)}h(){let e=this.y,t=this.p,o=this.e;for(;e===ds||e===fs||e===ps||e===ms;)e=t.charCodeAt(++o);this.e=o}parse(){let e=this.ce();return e.length===1?e[0]:{type:0,body:e}}ce(e){let t=[];for(;this.e<this.p.length;){let o=this.y;if(o===gs||o===Kt)this.e++;else{let r=this.S();if(r)t.push(r);else if(this.e<this.p.length){if(o===e)break;throw this.r(Ve+'"'+this.B+'"')}}}return t}S(){var t;let e=(t=this.Ot())!=null?t:this.Pe();return this.h(),this.Mt(e)}ue(){this.h();let e=this.p,t=this.e,o=e.charCodeAt(t),r=e.charCodeAt(t+1),s=e.charCodeAt(t+2),i=e.charCodeAt(t+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.ae(e.charCodeAt(t+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}Pe(){let e,t,o,r,s,i,a,c;if(s=this.q(),!s||(t=this.ue(),!t))return s;if(r={value:t,prec:zo(t),right_a:In.has(t)},i=this.q(),!i)throw this.r(Ln+t);let l=[s,r,i];for(;t=this.ue();){o=zo(t),r={value:t,prec:o,right_a:In.has(t)},c=t;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(),t=l.pop().value,s=l.pop(),e=this.Be(t,s,i),l.push(e);if(e=this.q(),!e)throw this.r(Ln+c);l.push(r,e)}for(a=l.length-1,e=l[a];a>1;)e=this.Be(l[a-1].value,l[a-2],e),a-=2;return e}q(){let e;if(this.h(),e=this.kt(),e)return this.pe(e);let t=this.y;if(lt(t)||t===we)return this.Lt();if(t===hs||t===ys)e=this.Vt();else if(t===Gt)e=this.It();else{let o=this.Dt();if(o){let r=this.q();if(!r)throw this.r(Ss);return this.pe({type:7,operator:o,argument:r})}this.$(t)?(e=this.le(),e.name in jo?e={type:4,value:jo[e.name],raw:e.name}:e.name===xs&&(e={type:5})):t===Wt&&(e=this.Ut())}return e?(e=this.F(e),this.pe(e)):!1}Be(e,t,o){if(e==="=>"){let r=t.type===1?t.expressions:[t];return{type:15,params:r,body:o}}return Ts.has(e)?{type:16,operator:e,left:t,right:o}:{type:8,operator:e,left:t,right:o}}kt(){let e={node:!1};return this.Pt(e),e.node||(this.Bt(e),e.node)||(this.Ht(e),e.node)||(this.He(e),e.node)||this.jt(e),e.node}pe(e){let t={node:e};return this._t(t),this.$t(t),this.qt(t),t.node}Dt(){let e=this.p,t=this.e,o=e.charCodeAt(t),r=e.charCodeAt(t+1),s=e.charCodeAt(t+2),i=e.charCodeAt(t+3);return o===Qt?(this.e++,"-"):o===33?(this.e++,"!"):o===126?(this.e++,"~"):o===He?(this.e++,"+"):o===110&&r===101&&s===119&&!this.ae(i)?(this.e+=3,"new"):!1}Ot(){let e={};return this.Ft(e),e.node}Mt(e){let t={node:e};return this.Kt(t),t.node}F(e){this.h();let t=this.y;for(;t===we||t===Gt||t===Wt||t===On;){let o;if(t===On){if(this.p.charCodeAt(this.e+1)!==we)break;o=!0,this.e+=2,this.h(),t=this.y}if(this.e++,t===Gt){if(e={type:3,computed:!0,object:e,property:this.S()},this.h(),t=this.y,t!==Nn)throw this.r(As);this.e++}else t===Wt?e={type:6,arguments:this.je(Ye),callee:e}:(o&&this.e--,this.h(),e={type:3,computed:!1,object:e,property:this.le()});o&&(e.optional=!0),this.h(),t=this.y}return e}Lt(){let e=this.p,t=this.e,o=t;for(;lt(e.charCodeAt(o));)o++;if(e.charCodeAt(o)===we)for(o++;lt(e.charCodeAt(o));)o++;let r=e.charCodeAt(o);if(r===101||r===69){o++;let a=e.charCodeAt(o);(a===He||a===Qt)&&o++;let c=o;for(;lt(e.charCodeAt(o));)o++;if(c===o){this.e=o;let l=e.slice(t,o);throw this.r(Ns+l+this.B+")")}}this.e=o;let s=e.slice(t,o),i=e.charCodeAt(o);if(this.$(i))throw this.r(Os+s+this.B+")");if(i===we||s.length===1&&s.charCodeAt(0)===we)throw this.r(ws);return{type:4,value:parseFloat(s),raw:s}}Vt(){let e=this.p,t=e.length,o=this.e,r=e.charCodeAt(this.e++),s=this.e,i=s,a=[],c=!1,l=!1;for(;s<t;){let f=e.charCodeAt(s);if(f===r){l=!0,this.e=s+1;break}if(f===kn){c||(c=!0),a.push(e.slice(i,s));let p=e.charCodeAt(s+1);a.push(this._e(p)),s+=2,i=s}else s++}let u=c?a.join("")+e.slice(i,l?s:t):e.slice(i,l?s:t);if(!l)throw this.e=s,this.r(Ms+u+'"');return{type:4,value:u,raw:e.substring(o,this.e)}}_e(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)}}le(){let e=this.y,t=this.e;if(this.$(e))this.e++;else throw this.r(Ve+this.B);for(;this.e<this.p.length&&(e=this.y,this.ae(e));)this.e++;return{type:2,name:this.p.slice(t,this.e)}}je(e){let t=[],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===Ye&&r&&r>=t.length)throw this.r(Fo+String.fromCharCode(e));break}else if(s===Kt){if(this.e++,r++,r!==t.length){if(e===Ye)throw this.r(Fo+",");for(let i=t.length;i<r;i++)t.push(null)}}else{if(t.length!==r&&r!==0)throw this.r(qo);{let i=this.S();if(!i||i.type===0)throw this.r(qo);t.push(i)}}}if(!o)throw this.r(Ze+String.fromCharCode(e));return t}Ut(){this.e++;let e=this.ce(Ye);if(this.f(Ye))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.r(vs)}It(){return this.e++,{type:9,elements:this.je(Nn)}}Pt(e){if(this.f(Ho)){this.e++;let t=[];for(;!isNaN(this.y);){if(this.h(),this.f(Jt)){this.e++,e.node=this.F({type:10,properties:t});return}let o=this.S();if(!o)break;if(this.h(),o.type===2&&(this.f(Kt)||this.f(Jt)))t.push({type:12,computed:!1,key:o,value:o,shorthand:!0});else if(this.f(Po)){this.e++;let r=this.S();if(!r)throw this.r(Rs);let s=o.type===9;t.push({type:12,computed:s,key:s?o.elements[0]:o,value:r,shorthand:!1}),this.h()}else t.push(o);this.f(Kt)&&this.e++}throw this.r(Es)}}Bt(e){let t=this.y;if((t===He||t===Qt)&&t===this.p.charCodeAt(this.e+1)){this.e+=2;let o=e.node={type:13,operator:t===He?"++":"--",argument:this.F(this.le()),prefix:!0};if(!o.argument||!_o.has(o.argument.type))throw this.r(Ve+o.operator)}}$t(e){let t=e.node,o=this.y;if((o===He||o===Qt)&&o===this.p.charCodeAt(this.e+1)){if(!_o.has(t.type))throw this.r(Ve+(o===He?"++":"--"));this.e+=2,e.node={type:13,operator:o===He?"++":"--",argument:t,prefix:!1}}}Ht(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()})}Kt(e){if(e.node&&this.f(On)){this.e++;let t=e.node,o=this.S();if(!o)throw this.r($o);if(this.h(),this.f(Po)){this.e++;let r=this.S();if(!r)throw this.r($o);e.node={type:11,test:t,consequent:o,alternate:r}}else throw this.r(Cs)}}Ft(e){if(this.h(),this.f(Wt)){let t=this.e;if(this.e++,this.h(),this.f(Ye)){this.e++;let o=this.ue();if(o==="=>"){let r=this.Pe();if(!r)throw this.r(Ln+o);e.node={type:15,params:null,body:r};return}}this.e=t}}qt(e){let t=e.node,o=t.type;(o===2||o===3)&&this.f(Mn)&&(e.node={type:17,tag:t,quasi:this.He(e)})}He(e){if(!this.f(Mn))return;let t=this.p,o=t.length,r={type:19,quasis:[],expressions:[]},s=++this.e,i=[],a=[],c=!1,l=u=>{if(!c){let m=t.slice(s,this.e);return r.quasis.push({type:18,value:{raw:m,cooked:m},tail:u})}i.push(t.slice(s,this.e)),a.push(t.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=t.charCodeAt(this.e);if(u===Mn)return l(!0),this.e+=1,e.node=r,r;if(u===36&&t.charCodeAt(this.e+1)===Ho){if(l(!1),this.e+=2,r.expressions.push(...this.ce(Jt)),!this.f(Jt))throw this.r("unclosed ${");this.e+=1,s=this.e}else if(u===kn){c||(c=!0),i.push(t.slice(s,this.e)),a.push(t.slice(s,this.e));let f=t.charCodeAt(this.e+1);i.push(t.slice(this.e,this.e+2)),a.push(this._e(f)),this.e+=2,s=this.e}else this.e+=1}throw this.r("Unclosed `")}_t(e){let t=e.node;if(!t||t.operator!=="new"||!t.argument)return;if(!t.argument||![6,3].includes(t.argument.type))throw this.r("Expected new function()");e.node=t.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}jt(e){if(!this.f(Vo))return;let t=++this.e,o=!1;for(;this.e<this.p.length;){if(this.y===Vo&&!o){let r=this.p.slice(t,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(t-1,this.e)},e.node=this.F(e.node),e.node}this.f(Gt)?o=!0:o&&this.f(Nn)&&(o=!1),this.e+=this.f(kn)?2:1}throw this.r("Unclosed Regex")}},Go=n=>new Dn(n).parse();var ks={"=>":(n,e)=>{},"=":(n,e)=>{},"*=":(n,e)=>{},"**=":(n,e)=>{},"/=":(n,e)=>{},"%=":(n,e)=>{},"+=":(n,e)=>{},"-=":(n,e)=>{},"<<=":(n,e)=>{},">>=":(n,e)=>{},">>>=":(n,e)=>{},"&=":(n,e)=>{},"^=":(n,e)=>{},"|=":(n,e)=>{},"||":(n,e)=>n()||e(),"??":(n,e)=>{var t;return(t=n())!=null?t:e()},"&&":(n,e)=>n()&&e(),"|":(n,e)=>n|e,"^":(n,e)=>n^e,"&":(n,e)=>n&e,"==":(n,e)=>n==e,"!=":(n,e)=>n!=e,"===":(n,e)=>n===e,"!==":(n,e)=>n!==e,"<":(n,e)=>n<e,">":(n,e)=>n>e,"<=":(n,e)=>n<=e,">=":(n,e)=>n>=e,in:(n,e)=>n in e,"<<":(n,e)=>n<<e,">>":(n,e)=>n>>e,">>>":(n,e)=>n>>>e,"+":(n,e)=>n+e,"-":(n,e)=>n-e,"*":(n,e)=>n*e,"/":(n,e)=>n/e,"%":(n,e)=>n%e,"**":(n,e)=>mt(n,e)},Ls={"-":n=>-n,"+":n=>+n,"!":n=>!n,"~":n=>~n,new:n=>n},Yo=n=>{if(!(n!=null&&n.some(Xo)))return n;let e=[];return n.forEach(t=>Xo(t)?e.push(...t):e.push(t)),e},Jo=(...n)=>Yo(n),Bn=(n,e)=>{if(!n)return e;let t=Object.create(e!=null?e:{});return t.$event=n,t},Is={"++":(n,e)=>{let t=n[e];if(R(t)){let o=t();return t(++o),o}return++n[e]},"--":(n,e)=>{let t=n[e];if(R(t)){let o=t();return t(--o),o}return--n[e]}},Ds={"++":(n,e)=>{let t=n[e];if(R(t)){let o=t();return t(o+1),o}return n[e]++},"--":(n,e)=>{let t=n[e];if(R(t)){let o=t();return t(o-1),o}return n[e]--}},Qo={"=":(n,e,t)=>{let o=n[e];return R(o)?o(t):n[e]=t},"+=":(n,e,t)=>{let o=n[e];return R(o)?o(o()+t):n[e]+=t},"-=":(n,e,t)=>{let o=n[e];return R(o)?o(o()-t):n[e]-=t},"*=":(n,e,t)=>{let o=n[e];return R(o)?o(o()*t):n[e]*=t},"/=":(n,e,t)=>{let o=n[e];return R(o)?o(o()/t):n[e]/=t},"%=":(n,e,t)=>{let o=n[e];return R(o)?o(o()%t):n[e]%=t},"**=":(n,e,t)=>{let o=n[e];return R(o)?o(mt(o(),t)):n[e]=mt(n[e],t)},"<<=":(n,e,t)=>{let o=n[e];return R(o)?o(o()<<t):n[e]<<=t},">>=":(n,e,t)=>{let o=n[e];return R(o)?o(o()>>t):n[e]>>=t},">>>=":(n,e,t)=>{let o=n[e];return R(o)?o(o()>>>t):n[e]>>>=t},"|=":(n,e,t)=>{let o=n[e];return R(o)?o(o()|t):n[e]|=t},"&=":(n,e,t)=>{let o=n[e];return R(o)?o(o()&t):n[e]&=t},"^=":(n,e,t)=>{let o=n[e];return R(o)?o(o()^t):n[e]^=t}},Xt=(n,e)=>F(n)?n.bind(e):n,Pn=class{constructor(e,t,o,r,s){d(this,"l");d(this,"$e");d(this,"qe");d(this,"Fe");d(this,"A");d(this,"Ke");d(this,"ze");this.l=w(e)?e:[e],this.$e=t,this.qe=o,this.Fe=r,this.ze=!!s}We(e,t){if(t&&e in t)return t;for(let o of this.l)if(e in o)return o}2(e,t,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],Xt($(o[r]),o);for(let i of this.l)if(r in i)return this.A=i[r],Xt($(i[r]),i);let s=this.$e;if(s&&r in s)return this.A=s[r],Xt($(s[r]),s)}5(e,t,o){return this.l[0]}0(e,t,o){return this.Ge(t,o,Jo,...e.body)}1(e,t,o){return this.E(t,o,(...r)=>r.pop(),...e.expressions)}3(e,t,o){let{obj:r,key:s}=this.fe(e,t,o),i=r==null?void 0:r[s];return this.A=i,Xt($(i),r)}4(e,t,o){return e.value}6(e,t,o){let r=(i,...a)=>F(i)?i(...Yo(a)):i,s=this.E(++t,o,r,e.callee,...e.arguments);return this.A=s,s}7(e,t,o){return this.E(t,o,Ls[e.operator],e.argument)}8(e,t,o){let r=ks[e.operator];switch(e.operator){case"||":case"&&":case"??":return r(()=>this.g(e.left,t,o),()=>this.g(e.right,t,o))}return this.E(t,o,r,e.left,e.right)}9(e,t,o){return this.Ge(++t,o,Jo,...e.elements)}10(e,t,o){let r={},s=(...i)=>{i.forEach(a=>{Object.assign(r,a)})};return this.E(++t,o,s,...e.properties),r}11(e,t,o){return this.E(t,o,r=>this.g(r?e.consequent:e.alternate,t,o),e.test)}12(e,t,o){var u;let r={},s=f=>(f==null?void 0:f.type)!==15,i=(u=this.Fe)!=null?u:()=>!1,a=t===0&&this.ze,c=f=>this.Je(a,e.key,t,Bn(f,o)),l=f=>this.Je(a,e.value,t,Bn(f,o));if(e.shorthand){let f=e.key.name;r[f]=s(e.key)&&i(f,t)?c:c()}else if(e.computed){let f=$(c());r[f]=s(e.value)&&i(f,t)?l:l()}else{let f=e.key.type===4?e.key.value:e.key.name;r[f]=s(e.value)&&i(f,t)?()=>l:l()}return r}fe(e,t,o){let r=this.g(e.object,t,o),s=e.computed?this.g(e.property,t,o):e.property.name;return{obj:r,key:s}}13(e,t,o){let r=e.argument,s=e.operator,i=e.prefix?Is:Ds;if(r.type===2){let a=r.name,c=this.We(a,o);return le(c)?void 0:i[s](c,a)}if(r.type===3){let{obj:a,key:c}=this.fe(r,t,o);return i[s](a,c)}}16(e,t,o){let r=e.left,s=e.operator;if(r.type===2){let i=r.name,a=this.We(i,o);if(le(a))return;let c=this.g(e.right,t,o);return Qo[s](a,i,c)}if(r.type===3){let{obj:i,key:a}=this.fe(r,t,o),c=this.g(e.right,t,o);return Qo[s](i,a,c)}}14(e,t,o){let r=this.g(e.argument,t,o);return w(r)&&(r.s=Zo),r}17(e,t,o){return this[6]({type:6,callee:e.tag,arguments:[{type:9,elements:e.quasi.quasis},...e.quasi.expressions]},t,o)}19(e,t,o){let r=(...s)=>s.reduce((i,a,c)=>i+=a+e.quasis[c+1].value.cooked,e.quasis[0].value.cooked);return this.E(t,o,r,...e.expressions)}18(e,t,o){return e.value.cooked}20(e,t,o){let r=(s,...i)=>new s(...i);return this.E(t,o,r,e.callee,...e.arguments)}15(e,t,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,t,s)}}g(e,t,o){let r=$(this[e.type](e,t,o));return this.Ke=e.type,r}Je(e,t,o,r){let s=this.g(t,o,r);return e&&this.Qe()?this.A:s}Qe(){let e=this.Ke;return(e===2||e===3||e===6)&&R(this.A)}eval(e,t){let{value:o,refs:r}=yn(()=>this.g(e,-1,t)),s={value:o,refs:r};return this.Qe()&&(s.ref=this.A),s}E(e,t,o,...r){let s=r.map(i=>i&&this.g(i,e,t));return o(...s)}Ge(e,t,o,...r){let s=this.qe;if(!s)return this.E(e,t,o,...r);let i=r.map((a,c)=>a&&(a.type!==15&&s(c,e)?l=>this.g(a,e,Bn(l,t)):this.g(a,e,t)));return o(...i)}},Zo=Symbol("s"),Xo=n=>(n==null?void 0:n.s)===Zo,er=(n,e,t,o,r,s,i)=>new Pn(e,t,o,r,i).eval(n,s);var tr={},nr=n=>!!n,Yt=class{constructor(e,t){d(this,"l");d(this,"o");d(this,"Xe",[]);this.l=e,this.o=t}v(e){this.l=[e,...this.l]}J(){return this.l.map(t=>t.components).filter(nr).reverse().reduce((t,o)=>{for(let[r,s]of Object.entries(o))t[r.toUpperCase()]=s;return t},{})}ot(){let e=[],t=new Set,o=this.l.map(r=>r.components).filter(nr).reverse();for(let r of o)for(let s of Object.keys(r))t.has(s)||(t.add(s),e.push(s));return e}M(e,t,o,r,s){var g;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(J(e))return p;let m=this.o.globalContext,y=[],h=new Set,E=(C,D,W,k)=>{try{let V=er(C,D,m,t,o,k,r);return W&&V.refs.length>0&&y.push(...V.refs),{value:V.value,refs:V.refs,ref:V.ref}}catch(V){H(6,`evaluation error: ${e}`,V)}return{value:void 0,refs:[]}};try{let C=(g=tr[e])!=null?g:Go("["+e+"]");tr[e]=C;let D=this.l.slice(),W=C.elements,k=W.length,V=new Array(k);p.refs=V;let ie=()=>{y.length=0,s||(h.clear(),l());let ee=new Array(k);for(let U=0;U<k;++U){let b=W[U];if(t!=null&&t(U,-1)){ee[U]=Q=>E(b,D,!1,{$event:Q}).value;continue}let N=E(b,D,!0);ee[U]=N.value,V[U]=N.ref}if(!s)for(let U of y)h.has(U)||(h.add(U),a.push(se(U,ie)));if(i=ee,c.size!==0)for(let U of c)c.has(U)&&U(i)};ie()}catch(C){H(6,`parse error: ${e}`,C)}return p}k(){return this.l.slice()}oe(e){this.Xe.push(this.l),this.l=e}C(e,t){try{this.oe(e),t()}finally{this.zt()}}zt(){var e;this.l=(e=this.Xe.pop())!=null?e:[]}};var or=n=>{let e=n.charCodeAt(0);return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||n==="-"||n==="_"||n===":"},Us=(n,e)=>{let t="";for(let o=e;o<n.length;++o){let r=n[o];if(t){r===t&&(t="");continue}if(r==='"'||r==="'"){t=r;continue}if(r===">")return o}return-1},Bs=(n,e)=>{let t=e?2:1;for(;t<n.length&&(n[t]===" "||n[t]===`
3
+ `);)++t;if(t>=n.length||!or(n[t]))return null;let o=t;for(;t<n.length&&or(n[t]);)++t;return{start:o,end:t}},rr=new Set(["table","thead","tbody","tfoot"]),Ps=new Set(["thead","tbody","tfoot"]),Hs=new Set(["caption","colgroup","thead","tbody","tfoot","tr"]),Vs=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),sr=(n,e)=>`${n.slice(0,n.length-2)}></${e}>`,Zt=n=>{var s;let e=0,t=[],o=[],r=0;for(;e<n.length;){let i=n.indexOf("<",e);if(i===-1){t.push(n.slice(e));break}if(t.push(n.slice(e,i)),n.startsWith("<!--",i)){let g=n.indexOf("-->",i+4);if(g===-1){t.push(n.slice(i));break}t.push(n.slice(i,g+3)),e=g+3;continue}let a=Us(n,i);if(a===-1){t.push(n.slice(i));break}let c=n.slice(i,a+1),l=c.startsWith("</");if(c.startsWith("<!")||c.startsWith("<?")){t.push(c),e=a+1;continue}let f=Bs(c,l);if(!f){t.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(),t.push(g.replacementHost?`</${g.replacementHost}>`:c),rr.has(g.effectiveTag)&&--r):t.push(c),e=a+1;continue}let m=c.charCodeAt(c.length-2)===47,y=o[o.length-1],h=null;r===0?p==="tr"?h="trx":p==="td"?h="tdx":p==="th"&&(h="thx"):Ps.has((s=y==null?void 0:y.effectiveTag)!=null?s:"")?h=p==="tr"?null:"tr":(y==null?void 0:y.effectiveTag)==="table"?h=Hs.has(p)?null:"tr":(y==null?void 0:y.effectiveTag)==="tr"&&(h=p==="td"||p==="th"?null:"td");let E=m&&!Vs.has(h||p);if(h){let g=h==="trx"||h==="tdx"||h==="thx",C=`${c.slice(0,f.start)}${h} is="${g?`r-${p}`:`regor:${p}`}"${c.slice(f.end)}`;t.push(E?sr(C,h):C)}else t.push(E?sr(c,p):c);if(!m){let g=h==="trx"?"tr":h==="tdx"?"td":h==="thx"?"th":h||p;o.push({replacementHost:h,effectiveTag:g}),rr.has(g)&&++r}e=a+1}return t.join("")};var _s="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",js=new Set(_s.toUpperCase().split(",")),$s="http://www.w3.org/2000/svg",ir=(n,e)=>{he(n)?n.content.appendChild(e):n.appendChild(e)},Hn=(n,e,t,o)=>{var i;let r=n.t;if(r){let a=t&&js.has(r.toUpperCase())?document.createElementNS($s,r.toLowerCase()):document.createElement(r),c=n.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(vt(f,o),p)}let l=n.c;if(l)for(let u of l)Hn(u,a,t,o);ir(e,a);return}let s=n.d;if(s){let a;switch((i=n.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)ir(e,a);else throw new Error("unsupported node type.")}},et=(n,e,t)=>{t!=null||(t=pe.getDefault());let o=document.createDocumentFragment();if(!w(n))return Hn(n,o,!!e,t),o;for(let r of n)Hn(r,o,!!e,t);return o};var qs=(n,e={selector:"#app"},t)=>{z(e)&&(e={selector:"#app",template:e}),ro(n)&&(n=n.context);let o=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!o||!Be(o))throw _(0);t||(t=pe.getDefault());let r=()=>{for(let a of[...o.childNodes])G(a)},s=a=>{for(let c of a)o.appendChild(c)};if(e.template){let a=document.createRange().createContextualFragment(Zt(e.template));r(),s(a.childNodes),e.element=a}else if(e.json){let a=et(e.json,e.isSVG,t);r(),s(a.childNodes)}return t.useInterpolation&&zt(o,t),new Vn(n,o,t).b(),K(o,()=>{Ne(n)}),St(n),{context:n,unmount:()=>{G(o)},unbind:()=>{Te(o)}}},Vn=class{constructor(e,t,o){d(this,"Wt");d(this,"Ye");d(this,"o");d(this,"m");d(this,"i");this.Wt=e,this.Ye=t,this.o=o,this.m=new Yt([e],o),this.i=new jt(this.m)}b(){this.i.H(this.Ye)}};var ft=n=>{if(w(n))return n.map(r=>ft(r));let e={};if(n.tagName)e.t=n.tagName;else return n.nodeType===Node.COMMENT_NODE&&(e.n=Node.COMMENT_NODE),n.textContent&&(e.d=n.textContent),e;let t=n.getAttributeNames();t.length>0&&(e.a=Object.fromEntries(t.map(r=>{var s;return[r,(s=n.getAttribute(r))!=null?s:""]})));let o=Ce(n);return o.length>0&&(e.c=[...o].map(r=>ft(r))),e};var Fs=(n,e={})=>{var s,i,a,c,l,u;w(e)&&(e={props:e}),z(n)&&(n={template:n});let t=(s=e.context)!=null?s:()=>({}),o=!1;if(n.element){let f=n.element;f.remove(),n.element=f}else if(n.selector){let f=document.querySelector(n.selector);if(!f)throw _(1,n.selector);f.remove(),n.element=f}else if(n.template){let f=document.createRange().createContextualFragment(Zt(n.template));n.element=f}else n.json&&(n.element=et(n.json,n.isSVG,e.config),o=!0);n.element||(n.element=document.createDocumentFragment()),((i=e.useInterpolation)==null||i)&&zt(n.element,(a=e.config)!=null?a:pe.getDefault());let r=n.element;if(!o&&(((l=n.isSVG)!=null?l:rt(r)&&((c=r.hasAttribute)!=null&&c.call(r,"isSVG")))||rt(r)&&r.querySelector("[isSVG]"))){let f=r.content,p=f?[...f.childNodes]:[...r.childNodes],m=ft(p);n.element=et(m,!0,e.config)}return{context:t,template:n.element,inheritAttrs:(u=e.inheritAttrs)!=null?u:!0,props:e.props,defaultName:e.defaultName}};var _n=class{constructor(){d(this,"byConstructor",new Map)}register(e){this.byConstructor.set(e.constructor,e)}unregisterByClass(e){this.byConstructor.delete(e)}unregister(e){let t=e.constructor;this.byConstructor.get(t)===e&&this.byConstructor.delete(t)}find(e){for(let t of this.byConstructor.values())if(t instanceof e)return t}require(e){let t=this.find(e);if(t)return t;throw new Error(`${e.name} is not registered in ContextRegistry.`)}};var zs=n=>{var e;(e=De())==null||e.onMounted.push(n)};var Ks=n=>{let e,t={},o=(...r)=>{if(r.length<=2&&0 in r)throw _(4);return e&&!t.isStopped?e(...r):(e=Ws(n,t),e(...r))};return o[Y]=1,ke(o,!0),o.stop=()=>{var r,s;return(s=(r=t.ref)==null?void 0:r.stop)==null?void 0:s.call(r)},re(()=>o.stop(),!0),o},Ws=(n,e)=>{var s;let t=(s=e.ref)!=null?s:ae(null);e.ref=t,e.isStopped=!1;let o=0,r=Je(()=>{if(o>0){r(),e.isStopped=!0,Z(t);return}t(n()),++o});return t.stop=r,t};var Gs=(n,e)=>{let t={},o,r=(...s)=>{if(s.length<=2&&0 in s)throw _(4);return o&&!t.isStopped?o(...s):(o=Js(n,e,t),o(...s))};return r[Y]=1,ke(r,!0),r.stop=()=>{var s,i;return(i=(s=t.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},re(()=>r.stop(),!0),r},Js=(n,e,t)=>{var a;let o=(a=t.ref)!=null?a:ae(null);t.ref=o,t.isStopped=!1;let r=0,s=c=>{if(r>0){o.stop(),t.isStopped=!0,Z(o);return}let l=n.map(u=>u());o(e(...l)),++r},i=[];for(let c of n){let l=se(c,s);i.push(l)}return s(null),o.stop=()=>{i.forEach(c=>{c()})},o};var Qs=(n,e)=>{let t={},o,r=(...s)=>{if(s.length<=2&&0 in s)throw _(4);return o&&!t.isStopped?o(...s):(o=Xs(n,e,t),o(...s))};return r[Y]=1,ke(r,!0),r.stop=()=>{var s,i;return(i=(s=t.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},re(()=>r.stop(),!0),r},Xs=(n,e,t)=>{var s;let o=(s=t.ref)!=null?s:ae(null);t.ref=o,t.isStopped=!1;let r=0;return o.stop=se(n,i=>{if(r>0){o.stop(),t.isStopped=!0,Z(o);return}o(e(i)),++r},!0),o};var Ys=n=>(n[Nt]=1,n);var Zs=(n,e)=>{if(!e)throw _(5);let o=Ge(n)?Ee:a=>a,r=()=>localStorage.setItem(e,JSON.stringify(ce(n()))),s=localStorage.getItem(e);if(s!=null)try{n(o(JSON.parse(s)))}catch(a){H(6,`persist: failed to parse data for key ${e}`,a),r()}else r();let i=Je(r);return re(i,!0),n};var ar=(n,...e)=>{let t="",o=n,r=e,s=o.length,i=r.length;for(let a=0;a<s;++a)t+=o[a],a<i&&(t+=r[a]);return t},ei=ar;var ti=(n,e,t)=>{let o=[],r=()=>{e(n.map(i=>i()))};for(let i of n)o.push(se(i,r));t&&r();let s=()=>{for(let i of o)i()};return re(s,!0),s};var ni=n=>{if(!R(n))throw _(3,"observerCount");return n(void 0,void 0,2)};var oi=n=>{cr();try{n()}finally{ur()}},cr=()=>{ye.stack||(ye.stack=[]),ye.stack.push(new Set)},ur=()=>{let n=ye.stack;if(!n||n.length===0)return;let e=n.pop();if(n.length){let t=n[n.length-1];for(let o of e)t.add(o);return}delete ye.stack;for(let t of e)try{Z(t)}catch(o){console.error(o)}};export{nt as ComponentHead,_n as ContextRegistry,pe as RegorConfig,K as addUnbinder,oi as batch,yn as collectRefs,Gs as computeMany,Qs as computeRef,Ks as computed,qs as createApp,Fs as defineComponent,yr as drainUnbind,ur as endBatch,it as entangle,ce as flatten,Ue as getBindData,ar as html,Ge as isDeepRef,at as isRaw,R as isRef,Ys as markRaw,se as observe,ti as observeMany,ni as observerCount,zs as onMounted,re as onUnmounted,En as pause,Zs as persist,ei as raw,Ee as ref,G as removeNode,Rn as resume,hn as silence,ae as sref,cr as startBatch,et as toFragment,ft as toJsonTemplate,Z as trigger,Te as unbind,$ as unref,mn as useScope,Tt as warningHandler,Je as watchEffect};
@@ -1493,12 +1493,6 @@ var Regor = (() => {
1493
1493
  const isEmptyComponent = component.childNodes.length === 0;
1494
1494
  const expandSlot = (slot) => {
1495
1495
  const parent2 = slot.parentElement;
1496
- if (isEmptyComponent) {
1497
- for (const slotChild of [...slot.childNodes]) {
1498
- parent2.insertBefore(slotChild, slot);
1499
- }
1500
- return;
1501
- }
1502
1496
  let name = slot.name;
1503
1497
  if (isNullOrWhitespace(name)) {
1504
1498
  name = slot.getAttributeNames().filter((x) => x.startsWith("#"))[0];
@@ -1506,6 +1500,23 @@ var Regor = (() => {
1506
1500
  name = "default";
1507
1501
  } else name = name.substring(1);
1508
1502
  }
1503
+ if (isEmptyComponent) {
1504
+ if (name === "default") {
1505
+ const textAttr = binder.__config.__builtInNames.text;
1506
+ const expression = component.getAttribute(textAttr);
1507
+ if (!isNullOrWhitespace(expression)) {
1508
+ const slotText = document.createElement("span");
1509
+ slotText.setAttribute(textAttr, expression);
1510
+ parent2.insertBefore(slotText, slot);
1511
+ component.removeAttribute(textAttr);
1512
+ return;
1513
+ }
1514
+ }
1515
+ for (const slotChild of [...slot.childNodes]) {
1516
+ parent2.insertBefore(slotChild, slot);
1517
+ }
1518
+ return;
1519
+ }
1509
1520
  let compTemplate = component.querySelector(
1510
1521
  `template[name='${name}'], template[\\#${name}]`
1511
1522
  );