regor 1.2.2 → 1.2.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.
- package/dist/regor.es2015.cjs.js +10 -9
- package/dist/regor.es2015.cjs.prod.js +2 -2
- package/dist/regor.es2015.esm.js +10 -9
- package/dist/regor.es2015.esm.prod.js +2 -2
- package/dist/regor.es2015.iife.js +10 -9
- package/dist/regor.es2015.iife.prod.js +2 -2
- package/dist/regor.es2019.cjs.js +10 -9
- package/dist/regor.es2019.cjs.prod.js +2 -2
- package/dist/regor.es2019.esm.js +10 -9
- package/dist/regor.es2019.esm.prod.js +2 -2
- package/dist/regor.es2019.iife.js +10 -9
- package/dist/regor.es2019.iife.prod.js +2 -2
- package/dist/regor.es2022.cjs.js +10 -9
- package/dist/regor.es2022.cjs.prod.js +2 -2
- package/dist/regor.es2022.esm.js +10 -9
- package/dist/regor.es2022.esm.prod.js +2 -2
- package/dist/regor.es2022.iife.js +10 -9
- package/dist/regor.es2022.iife.prod.js +2 -2
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var at=Object.defineProperty;var eo=Object.getOwnPropertyDescriptor;var to=Object.getOwnPropertyNames;var no=Object.prototype.hasOwnProperty;var ro=(t,e,n)=>e in t?at(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var oo=(t,e)=>{for(var n in e)at(t,n,{get:e[n],enumerable:!0})},so=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of to(e))!no.call(t,o)&&o!==n&&at(t,o,{get:()=>e[o],enumerable:!(r=eo(e,o))||r.enumerable});return t};var io=t=>so(at({},"__esModule",{value:!0}),t);var l=(t,e,n)=>ro(t,typeof e!="symbol"?e+"":e,n);var Es={};oo(Es,{ComponentHead:()=>He,RegorConfig:()=>ee,addUnbinder:()=>_,batch:()=>Zr,collectRefs:()=>vt,computeMany:()=>Kr,computeRef:()=>Wr,computed:()=>zr,createApp:()=>$r,createComponent:()=>Fr,endBatch:()=>wn,entangle:()=>Tt,flatten:()=>X,getBindData:()=>Te,html:()=>vn,isDeepRef:()=>Le,isRaw:()=>Ve,isRef:()=>y,markRaw:()=>Gr,observe:()=>w,observeMany:()=>Xr,observerCount:()=>Yr,onMounted:()=>qr,onUnmounted:()=>J,pause:()=>It,persist:()=>Jr,raw:()=>Qr,ref:()=>Re,removeNode:()=>F,resume:()=>Dt,silence:()=>Rt,sref:()=>G,startBatch:()=>Sn,toFragment:()=>Ie,toJsonTemplate:()=>Ge,trigger:()=>K,unbind:()=>ae,unref:()=>D,useScope:()=>bt,warningHandler:()=>et,watchEffect:()=>Me});module.exports=io(Es);var Ue=Symbol(":regor");var ae=t=>{let e=[t];for(;e.length>0;){let n=e.shift();ao(n);let r=n.childNodes;if(r)for(let o of r)e.push(o)}},ao=t=>{let e=t[Ue];if(e){for(let n of e.unbinders)n();e.unbinders.splice(0),delete t[Ue]}};var F=t=>{t.remove(),setTimeout(()=>ae(t),1)};var P=t=>typeof t=="function",j=t=>typeof t=="string",Nn=t=>typeof t=="undefined",ne=t=>t==null||typeof t=="undefined",z=t=>typeof t!="string"||!(t!=null&&t.trim()),co=Object.prototype.toString,Wt=t=>co.call(t),ge=t=>Wt(t)==="[object Map]",Z=t=>Wt(t)==="[object Set]",Gt=t=>Wt(t)==="[object Date]",Ze=t=>typeof t=="symbol",T=Array.isArray,A=t=>t!==null&&typeof t=="object";var Mn={0:"createApp can't find root element. You must define either a valid `selector` or an `element`. Example: createApp({}, {selector: '#app', html: '...'})",1:t=>`Component template cannot be found. selector: ${t} .`,2:"Use composables in scope. usage: useScope(() => new MyApp()).",3:t=>`${t} requires ref source argument`,4:"computed is readonly.",5:"persist requires a string key."},I=(t,...e)=>{let n=Mn[t];return new Error(P(n)?n.call(Mn,...e):n)};var ct=[],Ln=()=>{let t={onMounted:[],onUnmounted:[]};return ct.push(t),t},Oe=t=>{let e=ct[ct.length-1];if(!e&&!t)throw I(2);return e},kn=t=>{let e=Oe();return t&&Qt(t),ct.pop(),e},Jt=Symbol("csp"),Qt=t=>{let e=t,n=e[Jt];if(n){let r=Oe();if(n===r)return;r.onMounted.length>0&&n.onMounted.push(...r.onMounted),r.onUnmounted.length>0&&n.onUnmounted.push(...r.onUnmounted);return}e[Jt]=Oe()},pt=t=>t[Jt];var be=t=>{var n,r;let e=(n=pt(t))==null?void 0:n.onUnmounted;e==null||e.forEach(o=>{o()}),(r=t.unmounted)==null||r.call(t)};var He=class{constructor(e,n,r,o,s){l(this,"props");l(this,"start");l(this,"end");l(this,"ctx");l(this,"autoProps",!0);l(this,"entangle",!0);l(this,"enableSwitch",!1);l(this,"onAutoPropsAssigned");l(this,"pe");l(this,"emit",(e,n)=>{this.pe.dispatchEvent(new CustomEvent(e,{detail:n}))});this.props=e,this.pe=n,this.ctx=r,this.start=o,this.end=s}unmount(){let e=this.start.nextSibling,n=this.end;for(;e&&e!==n;)F(e),e=e.nextSibling;for(let r of this.ctx)be(r)}};var Te=t=>{let e=t[Ue];if(e)return e;let n={unbinders:[],data:{}};return t[Ue]=n,n};var _=(t,e)=>{Te(t).unbinders.push(e)};var In={8:t=>`Model binding requires a ref at ${t.outerHTML}`,7:t=>`Model binding is not supported on ${t.tagName} element at ${t.outerHTML}`,0:(t,e)=>`${t} binding expression is missing at ${e.outerHTML}`,1:(t,e,n)=>`invalid ${t} expression: ${e} at ${n.outerHTML}`,2:(t,e)=>`${t} requires object expression at ${e.outerHTML}`,3:(t,e)=>`${t} binder: key is empty on ${e.outerHTML}.`,4:(t,e,n,r)=>({msg:`Failed setting prop "${t}" on <${e.toLowerCase()}>: value ${n} is invalid.`,args:[r]}),5:(t,e)=>`${t} binding missing event type at ${e.outerHTML}`,6:(t,e)=>({msg:t,args:[e]})},M=(t,...e)=>{let n=In[t],r=P(n)?n.call(In,...e):n,o=et.warning;o&&(j(r)?o(r):o(r,...r.args))},et={warning:console.warn};var J=(t,e)=>{var n;(n=Oe(e))==null||n.onUnmounted.push(t)};var ft=Symbol("ref"),Q=Symbol("sref"),mt=Symbol("raw");var y=t=>(t==null?void 0:t[Q])===1;var w=(t,e,n)=>{if(!y(t))throw I(3,"observe");n&&e(t());let o=t(void 0,void 0,0,e);return J(o,!0),o};var ut={},lt={},Dn=1,Un=t=>{let e=(Dn++).toString();return ut[e]=t,lt[e]=0,e},Xt=t=>{lt[t]+=1},Yt=t=>{--lt[t]===0&&(delete ut[t],delete lt[t])},Hn=t=>ut[t],Zt=()=>Dn!==1&&Object.keys(ut).length>0,tt="r-switch",po=t=>{let e=t.filter(r=>Ae(r)).map(r=>[...r.querySelectorAll("[r-switch]")].map(o=>o.getAttribute(tt))),n=new Set;return e.forEach(r=>{r.forEach(o=>o&&n.add(o))}),[...n]},_e=(t,e)=>{if(!Zt())return;let n=po(e);n.length!==0&&(n.forEach(Xt),_(t,()=>{n.forEach(Yt)}))};var en=(t,e,n,r)=>{let o=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,r),o.push(i)}Ce(e,o)},tn=Symbol("r-if"),_n=Symbol("r-else"),Bn=t=>t[_n]===1,dt=class{constructor(e){l(this,"p");l(this,"B");l(this,"q");l(this,"K");l(this,"z");l(this,"b");l(this,"T");this.p=e,this.B=e.o.f.if,this.q=Pe(e.o.f.if),this.K=e.o.f.else,this.z=e.o.f.elseif,this.b=e.o.f.for,this.T=e.o.f.pre}qe(e,n){let r=e.parentElement;for(;r!==null&&r!==document.documentElement;){if(r.hasAttribute(n))return!0;r=r.parentElement}return!1}N(e){let n=e.hasAttribute(this.B),r=Ee(e,this.q);for(let o of r)this.x(o);return n}W(e){return e[tn]?!0:(e[tn]=!0,Ee(e,this.q).forEach(n=>n[tn]=!0),!1)}x(e){if(e.hasAttribute(this.T)||this.W(e)||this.qe(e,this.b))return;let n=e.getAttribute(this.B);if(!n){M(0,this.B,e);return}e.removeAttribute(this.B),this.L(e,n)}P(e,n,r){let o=Be(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${r!=null?r:""}`);s.insertBefore(i,e),_e(i,o),o.forEach(c=>{F(c)}),e.remove(),n!=="if"&&(e[_n]=1);let a=document.createComment(`__end__ :${n}${r!=null?r:""}`);return s.insertBefore(a,i.nextSibling),{nodes:o,parent:s,commentBegin:i,commentEnd:a}}ce(e,n){if(!e)return[];let r=e.nextElementSibling;if(e.hasAttribute(this.K)){e.removeAttribute(this.K);let{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.P(e,"else");return[{mount:()=>{en(o,this.p,s,a)},unmount:()=>{le(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let o=e.getAttribute(this.z);if(!o)return[];e.removeAttribute(this.z);let{nodes:s,parent:i,commentBegin:a,commentEnd:c}=this.P(e,"elseif",` => ${o} `),p=this.p.h.C(o),f=p.value,m=this.ce(r,n),u=[];_(a,()=>{p.stop();for(let x of u)x();u.length=0});let d=w(f,n);return u.push(d),[{mount:()=>{en(s,this.p,i,c)},unmount:()=>{le(a,c)},isTrue:()=>!!f()[0],isMounted:!1}].concat(m)}}L(e,n){let r=e.nextElementSibling,{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.P(e,"if",` => ${n} `),c=this.p.h.C(n),p=c.value,f=!1,m=this.p.h,u=m.V(),h=()=>{m.v(u,()=>{if(p()[0])f||(en(o,this.p,s,a),f=!0),d.forEach(b=>{b.unmount(),b.isMounted=!1});else{le(i,a),f=!1;let b=!1;for(let L of d)!b&&L.isTrue()?(L.isMounted||(L.mount(),L.isMounted=!0),b=!0):(L.unmount(),L.isMounted=!1)}})},d=this.ce(r,h),x=[];_(i,()=>{c.stop();for(let b of x)b();x.length=0}),h();let E=w(p,h);x.push(E)}};var Be=t=>{let e=pe(t)?t.content.childNodes:[t];return Array.from(e).filter(n=>{let r=n==null?void 0:n.tagName;return r!=="SCRIPT"&&r!=="STYLE"})},Ce=(t,e)=>{for(let n of e)Bn(n)||t.G(n)},Ee=(t,e)=>{var r;let n=t.querySelectorAll(e);return(r=t.matches)!=null&&r.call(t,e)?[t,...n]:n},pe=t=>t instanceof HTMLTemplateElement,Ae=t=>t.nodeType===Node.ELEMENT_NODE,nt=t=>t.nodeType===Node.ELEMENT_NODE,Pn=t=>t instanceof HTMLSlotElement,ue=t=>pe(t)?t.content.childNodes:t.childNodes,le=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let r=n.nextSibling;F(n),n=r}},xe=(t,e)=>{Object.defineProperty(t,"value",{get(){return t()},set(n){if(e)throw new Error("value is readonly.");return t(n)},enumerable:!0,configurable:!1})},jn=(t,e)=>{if(!t)return!1;if(t.startsWith("["))return t.substring(1,t.length-1);let n=e.length;return t.startsWith(e)?t.substring(n,t.length-n):!1},Pe=t=>`[${CSS.escape(t)}]`,ht=(t,e)=>(t.startsWith("@")&&(t=e.f.on+":"+t.slice(1)),t.includes("[")&&(t=t.replace(/[[\]]/g,e.f.dynamic)),t),nn=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},fo=/-(\w)/g,V=nn(t=>t&&t.replace(fo,(e,n)=>n?n.toUpperCase():"")),mo=/\B([A-Z])/g,je=nn(t=>t&&t.replace(mo,"-$1").toLowerCase()),rt=nn(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var yt={};var gt=t=>{var n,r;let e=(n=pt(t))==null?void 0:n.onMounted;e==null||e.forEach(o=>{o()}),(r=t.mounted)==null||r.call(t)};var rn=Symbol("scope"),bt=t=>{try{Ln();let e=t();Qt(e);let n={context:e,unmount:()=>be(e),[rn]:1};return n[rn]=1,n}finally{kn()}},Vn=t=>A(t)?rn in t:!1;var $n={collectRefObj:!0,onBind:(t,e)=>w(e.value,()=>{let r=e.value(),o=e.context,s=r[0];if(A(s))for(let i of Object.entries(s)){let a=i[0],c=i[1],p=o[a];p!==c&&(y(p)?p(c):o[a]=c)}},!0)};var Fn={collectRefObj:!0,once:!0,onBind:(t,e)=>{let n=e.value(),r=e.context,o=n[0];if(!A(o))return()=>{};for(let s of Object.entries(o)){let i=s[0],a=s[1],c=r[i];c!==a&&(y(c)?c(a):r[i]=a)}return()=>{}}};var qn={collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{if(!r)return()=>{};let i=V(r);return w(e.value,()=>{var m;let c=(m=e.refs[0])!=null?m:e.value()[0],p=e.context,f=p[r];f!==c&&(y(f)?f(c):p[i]=c)},!0)}};var Tt=(t,e)=>{if(t===e)return()=>{};let n=w(t,o=>e(o)),r=w(e,o=>t(o));return e(t()),()=>{n(),r()}};var D=t=>y(t)?t():t;var Et=class{constructor(e){l(this,"p");l(this,"fe");this.p=e,this.fe=e.o.f.inherit}N(e){this.Ke(e)}Ke(e){var m;let n=this.p,r=n.h,o=n.o.le,s=n.o.ue,i=r.me(),a=r.ze(),c=[...o.keys(),...a,...[...o.keys()].map(je),...a.map(je)].join(",");if(z(c))return;let p=e.querySelectorAll(c),f=(m=e.matches)!=null&&m.call(e,c)?[e,...p]:p;for(let u of f){if(u.hasAttribute(n.T))continue;let h=u.parentNode;if(!h)continue;let d=u.nextSibling,x=V(u.tagName).toUpperCase(),U=i[x],E=U!=null?U:s.get(x);if(!E)continue;let b=E.template;if(!b)continue;let L=u.parentElement;if(!L)continue;let H=new Comment(" begin component: "+u.tagName),oe=new Comment(" end component: "+u.tagName);L.insertBefore(H,u),u.remove();let Je=n.o.f.props,Qe=n.o.f.propsOnce,qt=n.o.f.bind,Xe=(g,O)=>{let C={},W=g.hasAttribute(Je),$=g.hasAttribute(Qe);return r.v(O,()=>{r.S(C),W&&n.x($n,g,Je),$&&n.x(Fn,g,Qe);let R=E.props;if(!R||R.length===0)return;R=R.map(V);let B=new Map(R.map(Y=>[Y.toLowerCase(),Y]));for(let Y of R.concat(R.map(je))){let me=g.getAttribute(Y);me!==null&&(C[V(Y)]=me,g.removeAttribute(Y))}let zt=n.J.de(g,!1);for(let[Y,me]of zt.entries()){let[Kt,On]=me.Q;if(!On)continue;let An=B.get(V(On).toLowerCase());An&&(Kt!=="."&&Kt!==":"&&Kt!==qt||n.x(qn,g,Y,!0,An,me.X))}}),C},ye=[...r.V()],it=()=>{var W;let g=Xe(u,ye),O=new He(g,u,ye,H,oe),C=bt(()=>{var $;return($=E.context(O))!=null?$:{}}).context;if(O.autoProps){for(let[$,R]of Object.entries(g))if($ in C){let B=C[$];if(B===R)continue;O.entangle&&y(B)&&y(R)?_(H,Tt(R,B)):y(B)?B(R):C[$]=D(R)}else C[$]=R;(W=O.onAutoPropsAssigned)==null||W.call(O)}return{componentCtx:C,head:O}},{componentCtx:we,head:k}=it(),se=[...ue(b)],v=se.length,N=u.childNodes.length===0,q=g=>{let O=g.parentElement;if(N){for(let R of[...g.childNodes])O.insertBefore(R,g);return}let C=g.name;z(C)&&(C=g.getAttributeNames().filter(R=>R.startsWith("#"))[0],z(C)?C="default":C=C.substring(1));let W=u.querySelector(`template[name='${C}'], template[\\#${C}]`);!W&&C==="default"&&(W=u.querySelector("template:not([name])"),W&&W.getAttributeNames().filter(R=>R.startsWith("#")).length>0&&(W=null));let $=R=>{k.enableSwitch&&r.v(ye,()=>{r.S(we);let B=Xe(g,r.V());r.v(ye,()=>{r.S(B);let zt=r.V(),Y=Un(zt);for(let me of R)Ae(me)&&(me.setAttribute(tt,Y),Xt(Y),_(me,()=>{Yt(Y)}))})})};if(W){let R=[...ue(W)];for(let B of R)O.insertBefore(B,g);$(R)}else{if(C!=="default"){for(let B of[...ue(g)])O.insertBefore(B,g);return}let R=[...ue(u)].filter(B=>!pe(B));for(let B of R)O.insertBefore(B,g);$(R)}},S=g=>{if(!Ae(g))return;let O=g.querySelectorAll("slot");if(Pn(g)){q(g),g.remove();return}for(let C of O)q(C),C.remove()};(()=>{for(let g=0;g<v;++g)se[g]=se[g].cloneNode(!0),h.insertBefore(se[g],d),S(se[g])})(),L.insertBefore(oe,d);let ie=()=>{if(!E.inheritAttrs)return;let g=se.filter(C=>C.nodeType===Node.ELEMENT_NODE);g.length>1&&(g=g.filter(C=>C.hasAttribute(this.fe)));let O=g[0];if(O)for(let C of u.getAttributeNames()){if(C===Je||C===Qe)continue;let W=u.getAttribute(C);if(C==="class")O.classList.add(...W.split(" "));else if(C==="style"){let $=O.style,R=u.style;for(let B of R)$.setProperty(B,R.getPropertyValue(B))}else O.setAttribute(ht(C,n.o),W)}},De=()=>{for(let g of u.getAttributeNames())!g.startsWith("@")&&!g.startsWith(n.o.f.on)&&u.removeAttribute(g)},Ye=()=>{ie(),De(),r.S(we),n.ye(u,!1),we.$emit=k.emit,Ce(n,se),_(u,()=>{be(we)}),_(H,()=>{ae(u)}),gt(we)};r.v(ye,Ye)}}};var on=class{constructor(e){l(this,"he");l(this,"Q",[]);l(this,"X",[]);l(this,"ge",[]);this.he=e,this.C()}C(){let e=this.he,n=e.startsWith(".");n&&(e=":"+e.slice(1));let r=e.indexOf("."),o=this.Q=(r<0?e:e.substring(0,r)).split(/[:@]/);if(z(o[0])&&(o[0]=n?".":e[0]),r>=0){let s=this.X=e.slice(r+1).split(".");if(s.includes("camel")){let i=o.length-1;o[i]=V(o[i])}s.includes("prop")&&(o[0]=".")}}},Ct=class{constructor(e){l(this,"p");l(this,"be");this.p=e,this.be=e.o.We()}de(e,n){let r=new Map;if(!nt(e))return r;let o=this.be,s=a=>{let c=a.getAttributeNames().filter(p=>o.some(f=>p.startsWith(f)));for(let p of c)r.has(p)||r.set(p,new on(p)),r.get(p).ge.push(a)};if(s(e),!n)return r;let i=e.querySelectorAll("*");for(let a of i)s(a);return r}};var lo=(t,e)=>{for(let n of t){let r=n.cloneNode(!0);e.appendChild(r)}},xt=class{constructor(e){l(this,"p");l(this,"I");l(this,"Te");this.p=e,this.I=e.o.f.is,this.Te=Pe(this.I)+", [is]"}N(e){let n=e.hasAttribute(this.I),r=Ee(e,this.Te);for(let o of r)this.x(o);return n}x(e){let n=e.getAttribute(this.I);if(!n){if(n=e.getAttribute("is"),!n||!n.startsWith("regor:"))return;n=`'${n.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.I),this.L(e,n)}P(e,n){let r=Be(e),o=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);o.insertBefore(s,e),_e(s,r),r.forEach(a=>{F(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${n!=null?n:""}`);return o.insertBefore(i,s.nextSibling),{nodes:r,parent:o,commentBegin:s,commentEnd:i}}L(e,n){let{nodes:r,parent:o,commentBegin:s,commentEnd:i}=this.P(e,` => ${n} `),a=this.p.h.C(n),c=a.value,p=this.p.h,f=p.V(),m={name:""},u=pe(e)?r:[...r[0].childNodes],h=()=>{p.v(f,()=>{var L;let E=c()[0];if(A(E)&&(E.name?E=E.name:E=(L=Object.entries(p.me()).filter(H=>H[1]===E)[0])==null?void 0:L[0]),!j(E)||z(E)){le(s,i);return}if(m.name===E)return;le(s,i);let b=document.createElement(E);for(let H of e.getAttributeNames())H!==this.I&&b.setAttribute(H,e.getAttribute(H));lo(u,b),o.insertBefore(b,i),this.p.G(b),m.name=E})},d=[];_(s,()=>{a.stop();for(let E of d)E();d.length=0}),h();let U=w(c,h);d.push(U)}};var re=[],zn=t=>{var e;re.length!==0&&((e=re[re.length-1])==null||e.add(t))},Me=t=>{if(!t)return()=>{};let e={stop:()=>{}};return uo(t,e),J(()=>e.stop(),!0),e.stop},uo=(t,e)=>{if(!t)return;let n=[],r=!1,o=()=>{for(let s of n)s();n=[],r=!0};e.stop=o;try{let s=new Set;if(re.push(s),t(i=>n.push(i)),r)return;for(let i of[...s]){let a=w(i,()=>{o(),Me(t)});n.push(a)}}finally{re.pop()}},Rt=t=>{let e=re.length,n=e>0&&re[e-1];try{return n&&re.push(null),t()}finally{n&&re.pop()}},vt=t=>{try{let e=new Set;return re.push(e),{value:t(),refs:[...e]}}finally{re.pop()}};var Ve=t=>!!t&&t[mt]===1;var K=(t,e,n)=>{if(!y(t))return;let r=t;if(r(void 0,e,1),!n)return;let o=r();if(o){if(T(o)||Z(o))for(let s of o)K(s,e,!0);else if(ge(o))for(let s of o)K(s[0],e,!0),K(s[1],e,!0);if(A(o))for(let s in o)K(o[s],e,!0)}};function ho(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var $e=(t,e,n)=>{n.forEach(function(r){let o=t[r];ho(e,r,function(...i){let a=o.apply(this,i),c=this[Q];for(let p of c)K(p);return a})})},St=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var Kn=Array.prototype,sn=Object.create(Kn),yo=["push","pop","shift","unshift","splice","sort","reverse"];$e(Kn,sn,yo);var Wn=Map.prototype,wt=Object.create(Wn),go=["set","clear","delete"];St(wt,"Map");$e(Wn,wt,go);var Gn=Set.prototype,Ot=Object.create(Gn),bo=["add","clear","delete"];St(Ot,"Set");$e(Gn,Ot,bo);var fe={},G=t=>{if(y(t)||Ve(t))return t;let e={auto:!0,_value:t},n=c=>A(c)?Q in c?!0:T(c)?(Object.setPrototypeOf(c,sn),!0):Z(c)?(Object.setPrototypeOf(c,Ot),!0):ge(c)?(Object.setPrototypeOf(c,wt),!0):!1:!1,r=n(t),o=new Set,s=(c,p)=>{if(fe.stack&&fe.stack.length){fe.stack[fe.stack.length-1].add(a);return}o.size!==0&&Rt(()=>{for(let f of[...o.keys()])o.has(f)&&f(c,p)})},i=c=>{let p=c[Q];p||(c[Q]=p=new Set),p.add(a)},a=(...c)=>{if(!(2 in c)){let f=c[0],m=c[1];return 0 in c?e._value===f||y(f)&&(f=f(),e._value===f)?f:(n(f)&&i(f),e._value=f,e.auto&&s(f,m),e._value):(zn(a),e._value)}switch(c[2]){case 0:{let f=c[3];if(!f)return()=>{};let m=u=>{o.delete(u)};return o.add(f),()=>{m(f)}}case 1:{let f=c[1],m=e._value;s(m,f);break}case 2:return o.size;case 3:{e.auto=!1;break}case 4:e.auto=!0}return e._value};return a[Q]=1,xe(a,!1),r&&i(t),a};var ot=class{constructor(e){l(this,"E",[]);l(this,"H",new Map);l(this,"Y");this.Y=e}get w(){return this.E.length}Z(e){let n=this.Y(e.value);n!==void 0&&this.H.set(n,e)}ee(e){var r;let n=this.Y((r=this.E[e])==null?void 0:r.value);n!==void 0&&this.H.delete(n)}static Ge(e,n){return{items:[],index:e,value:n,order:-1}}S(e){e.order=this.w,this.E.push(e),this.Z(e)}Je(e,n){let r=this.w;for(let o=e;o<r;++o)this.E[o].order=o+1;n.order=e,this.E.splice(e,0,n),this.Z(n)}D(e){return this.E[e]}te(e,n){this.ee(e),this.E[e]=n,this.Z(n),n.order=e}xe(e){this.ee(e),this.E.splice(e,1);let n=this.w;for(let r=e;r<n;++r)this.E[r].order=r}Ee(e){let n=this.w;for(let r=e;r<n;++r)this.ee(r);this.E.splice(e)}Ct(e){return this.H.has(e)}Qe(e){var r;let n=this.H.get(e);return(r=n==null?void 0:n.order)!=null?r:-1}};var an=Symbol("r-for"),Nt=class Nt{constructor(e){l(this,"p");l(this,"b");l(this,"ne");l(this,"T");this.p=e,this.b=e.o.f.for,this.ne=Pe(this.b),this.T=e.o.f.pre}N(e){let n=e.hasAttribute(this.b),r=Ee(e,this.ne);for(let o of r)this.Xe(o);return n}W(e){return e[an]?!0:(e[an]=!0,Ee(e,this.ne).forEach(n=>n[an]=!0),!1)}Xe(e){if(e.hasAttribute(this.T)||this.W(e))return;let n=e.getAttribute(this.b);if(!n){M(0,this.b,e);return}e.removeAttribute(this.b),this.Ye(e,n)}Re(e){return ne(e)?[]:(P(e)&&(e=e()),Symbol.iterator in Object(e)?e:typeof e=="number"?(r=>({*[Symbol.iterator](){for(let o=1;o<=r;o++)yield o}}))(e):Object.entries(e))}Ye(e,n){var se;let r=this.Ze(n);if(!(r!=null&&r.list)){M(1,this.b,n,e);return}let o=this.p.o.f.key,s=this.p.o.f.keyBind,i=(se=e.getAttribute(o))!=null?se:e.getAttribute(s);e.removeAttribute(o),e.removeAttribute(s);let a=i?v=>{var N;return D((N=D(v))==null?void 0:N[i])}:v=>v,c=(v,N)=>a(v)===a(N),p=Be(e),f=e.parentNode;if(!f)return;let m=`${this.b} => ${n}`,u=new Comment(`__begin__ ${m}`);f.insertBefore(u,e),_e(u,p),p.forEach(v=>{F(v)}),e.remove();let h=new Comment(`__end__ ${m}`);f.insertBefore(h,u.nextSibling);let d=this.p,x=d.h,U=x.V(),E=(v,N,q)=>{let S=r.createContext(N,v),te=ot.Ge(S.index,N);return x.v(U,()=>{x.S(S.ctx);let ie=q.previousSibling,De=[];for(let Ye of p){let g=Ye.cloneNode(!0);f.insertBefore(g,q),De.push(g)}for(Ce(d,De),ie=ie.nextSibling;ie!==q;)te.items.push(ie),ie=ie.nextSibling}),te},b=(v,N)=>{let q=k.D(v).items,S=q[q.length-1].nextSibling;for(let te of q)F(te);k.te(v,E(v,N,S))},L=(v,N)=>{k.S(E(v,N,h))},H=v=>{for(let N of k.D(v).items)F(N)},oe=v=>{let N=k.w;for(let q=v;q<N;++q)k.D(q).index(q)},Je=v=>{let N=k.w;P(v)&&(v=v());let q=D(v[0]);if(T(q)&&q.length===0){le(u,h),k.Ee(0);return}let S=0,te=Number.MAX_SAFE_INTEGER,ie=N,De=this.p.o.forGrowThreshold,Ye=()=>k.w<ie+De;for(let O of this.Re(v[0])){let C=()=>{if(S<N){let W=k.D(S++);if(c(W.value,O))return;let $=k.Qe(a(O));if($>=S&&$-S<10){if(--S,te=Math.min(te,S),H(S),k.xe(S),--N,$>S+1)for(let R=S;R<$-1&&R<N&&!c(k.D(S).value,O);)++R,H(S),k.xe(S),--N;C();return}Ye()?(k.Je(S-1,E(S,O,k.D(S-1).items[0])),te=Math.min(te,S-1),++N):b(S-1,O)}else L(S++,O)};C()}let g=S;for(N=k.w;S<N;)H(S++);k.Ee(g),oe(te)},Qe=()=>{it=w(ye,Je)},qt=()=>{Xe.stop(),it()},Xe=x.C(r.list),ye=Xe.value,it,we=0,k=new ot(a);for(let v of this.Re(ye()[0]))k.S(E(we++,v,h));_(u,qt),Qe()}Ze(e){var c,p;let n=Nt.et.exec(e);if(!n)return;let r=(n[1]+((c=n[2])!=null?c:"")).split(",").map(f=>f.trim()),o=r.length>1?r.length-1:-1,s=o!==-1&&(r[o]==="index"||(p=r[o])!=null&&p.startsWith("#"))?r[o]:"";s&&r.splice(o,1);let i=n[3];if(!i||r.length===0)return;let a=/[{[]/.test(e);return{list:i,createContext:(f,m)=>{let u={},h=D(f);if(!a&&r.length===1)u[r[0]]=f;else if(T(h)){let x=0;for(let U of r)u[U]=h[x++]}else for(let x of r)u[x]=h[x];let d={ctx:u,index:G(-1)};return s&&(d.index=u[s.startsWith("#")?s.substring(1):s]=G(m)),d}}}};l(Nt,"et",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var At=Nt;var Mt=class{constructor(e){l(this,"h");l(this,"Ce");l(this,"ve");l(this,"Se");l(this,"we");l(this,"J");l(this,"o");l(this,"T");l(this,"Oe");this.h=e,this.o=e.o,this.ve=new At(this),this.Ce=new dt(this),this.Se=new xt(this),this.we=new Et(this),this.J=new Ct(this),this.T=this.o.f.pre,this.Oe=this.o.f.dynamic}tt(e){let n=pe(e)?[e]:e.querySelectorAll("template");for(let r of n){if(r.hasAttribute(this.T))continue;let o=r.parentNode;if(!o)continue;let s=r.nextSibling;if(r.remove(),!r.content)continue;let i=[...r.content.childNodes];for(let a of i)o.insertBefore(a,s);Ce(this,i)}}G(e){e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.T)||this.Ce.N(e)||this.ve.N(e)||this.Se.N(e)||(this.we.N(e),this.tt(e),this.ye(e,!0))}ye(e,n){var s;let r=this.J.de(e,n),o=this.o._;for(let[i,a]of r.entries()){let[c,p]=a.Q,f=(s=o[i])!=null?s:o[c];if(!f){console.error("directive not found:",c);continue}a.ge.forEach(m=>{this.x(f,m,i,!1,p,a.X)})}}x(e,n,r,o,s,i){if(n.hasAttribute(this.T))return;let a=n.getAttribute(r);n.removeAttribute(r);let c=p=>{let f=p.getAttribute(tt);return f||(p.parentElement?c(p.parentElement):null)};if(Zt()){let p=c(n);if(p){this.h.v(Hn(p),()=>{this.L(e,n,a,s,i)});return}}this.L(e,n,a,s,i)}nt(e,n,r){if(e!==yt)return!1;if(z(r))return!0;let o=document.querySelector(r);if(o){let s=n.parentElement;if(!s)return!0;let i=new Comment(`teleported => '${r}'`);s.insertBefore(i,n),n.teleportedFrom=i,i.teleportedTo=n,_(i,()=>{F(n)}),o.appendChild(n)}return!0}L(e,n,r,o,s){var U;if(n.nodeType!==Node.ELEMENT_NODE||r==null||this.nt(e,n,r))return;let i=this.h.C(r,e.isLazy,e.isLazyKey,e.collectRefObj,e.once),a=[];_(n,()=>{i.stop(),f==null||f.stop();for(let E of a)E();a.length=0});let p=jn(o,this.Oe),f;p&&(f=this.h.C(V(p),void 0,void 0,void 0,e.once));let m,u=()=>(m=i.value(),m),h,d=()=>f?(h=f.value()[0],h):(h=o,o),x=()=>{if(!e.onChange)return;let E=w(i.value,b=>{var oe;let L=m,H=h;(oe=e.onChange)==null||oe.call(e,n,u(),L,d(),H,s)});if(a.push(E),f){let b=w(f.value,L=>{var oe;let H=h;(oe=e.onChange)==null||oe.call(e,n,u(),H,d(),H,s)});a.push(b)}};e.once||x(),e.onBind&&a.push(e.onBind(n,i,r,o,f,s)),(U=e.onChange)==null||U.call(e,n,u(),void 0,d(),void 0,s)}};var Jn="http://www.w3.org/1999/xlink",To={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 Eo(t){return!!t||t===""}var cn={onChange:(t,e,n,r,o,s)=>{var a;if(r){s&&s.includes("camel")&&(r=V(r)),Lt(t,r,e[0],o);return}let i=e.length;for(let c=0;c<i;++c){let p=e[c];if(T(p)){let f=(a=n==null?void 0:n[c])==null?void 0:a[0],m=p[0],u=p[1];Lt(t,m,u,f)}else if(A(p))for(let f of Object.entries(p)){let m=f[0],u=f[1],h=n==null?void 0:n[c],d=h&&m in h?m:void 0;Lt(t,m,u,d)}else{let f=n==null?void 0:n[c],m=e[c++],u=e[c];Lt(t,m,u,f)}}}},Lt=(t,e,n,r)=>{if(r&&r!==e&&t.removeAttribute(r),ne(e)){M(3,name,t);return}if(!j(e)){M(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){ne(n)?t.removeAttributeNS(Jn,e.slice(6,e.length)):t.setAttributeNS(Jn,e,n);return}let o=e in To;ne(n)||o&&!Eo(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)};var pn={onChange:(t,e,n)=>{let r=e.length;for(let o=0;o<r;++o){let s=e[o],i=n==null?void 0:n[o];if(T(s)){let a=s.length;for(let c=0;c<a;++c)Qn(t,s[c],i==null?void 0:i[c])}else Qn(t,s,i)}}},Qn=(t,e,n)=>{let r=t.classList,o=j(e),s=j(n);if(e&&!o){if(n&&!s)for(let i in n)(!(i in e)||!e[i])&&r.remove(i);for(let i in e)e[i]&&r.add(i)}else o?n!==e&&(s&&r.remove(...n.trim().split(/\s+/)),r.add(...e.trim().split(/\s+/))):n&&s&&r.remove(...n.trim().split(/\s+/))};var Xn={onChange:(t,e)=>{let[n,r]=e;P(r)?r(t,n):t.innerHTML=n==null?void 0:n.toString()}};function Co(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=de(t[r],e[r]);return n}function de(t,e){if(t===e)return!0;let n=Gt(t),r=Gt(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Ze(t),r=Ze(e),n||r)return t===e;if(n=T(t),r=T(e),n||r)return n&&r?Co(t,e):!1;if(n=A(t),r=A(e),n||r){if(!n||!r)return!1;let o=Object.keys(t).length,s=Object.keys(e).length;if(o!==s)return!1;for(let i in t){let a=t.hasOwnProperty(i),c=e.hasOwnProperty(i);if(a&&!c||!a&&c||!de(t[i],e[i]))return!1}}return String(t)===String(e)}function kt(t,e){return t.findIndex(n=>de(n,e))}var Yn=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var It=t=>{if(!y(t))throw I(3,"pause");t(void 0,void 0,3)};var Dt=t=>{if(!y(t))throw I(3,"resume");t(void 0,void 0,4)};var er={onChange:(t,e)=>{xo(t,e[0])},onBind:(t,e,n,r,o,s)=>Ro(t,e,s)},xo=(t,e)=>{let n=or(t);if(n&&tr(t))T(e)?e=kt(e,he(t))>-1:Z(e)?e=e.has(he(t)):e=No(t,e),t.checked=e;else if(n&&nr(t))t.checked=de(e,he(t));else if(n||sr(t))rr(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(ir(t)){let r=t.options,o=r.length,s=t.multiple;for(let i=0;i<o;i++){let a=r[i],c=he(a);if(s)T(e)?a.selected=kt(e,c)>-1:a.selected=e.has(c);else if(de(he(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else M(7,t)},st=t=>(y(t)&&(t=t()),P(t)&&(t=t()),t?j(t)?{trim:t.includes("trim"),lazy:t.includes("lazy"),number:t.includes("number"),int:t.includes("int")}:{trim:!!t.trim,lazy:!!t.lazy,number:!!t.number,int:!!t.int}:{trim:!1,lazy:!1,number:!1,int:!1}),tr=t=>t.type==="checkbox",nr=t=>t.type==="radio",rr=t=>t.type==="number"||t.type==="range",or=t=>t.tagName==="INPUT",sr=t=>t.tagName==="TEXTAREA",ir=t=>t.tagName==="SELECT",Ro=(t,e,n)=>{let r=e.value,o=st(n==null?void 0:n.join(",")),s=st(r()[1]),i={int:o.int||s.int,lazy:o.lazy||s.lazy,number:o.number||s.number,trim:o.trim||s.trim},a=e.refs[0];if(!a)return M(8,t),()=>{};let c=or(t);return c&&tr(t)?So(t,a):c&&nr(t)?Mo(t,a):c||sr(t)?vo(t,i,a,r):ir(t)?Lo(t,a,r):(M(7,t),()=>{})},Zn=/[.,' ·٫]/,vo=(t,e,n,r)=>{let s=e.lazy?"change":"input",i=rr(t),a=()=>{!e.trim&&!st(r()[1]).trim||(t.value=t.value.trim())},c=u=>{let h=u.target;h.composing=1},p=u=>{let h=u.target;h.composing&&(h.composing=0,h.dispatchEvent(new Event(s)))},f=()=>{t.removeEventListener(s,m),t.removeEventListener("change",a),t.removeEventListener("compositionstart",c),t.removeEventListener("compositionend",p),t.removeEventListener("change",p)},m=u=>{let h=u.target;if(!h||h.composing)return;let d=h.value,x=st(r()[1]);if(i||x.number||x.int){if(x.int)d=parseInt(d);else{if(Zn.test(d[d.length-1])&&d.split(Zn).length===2){if(d+="0",d=parseFloat(d),isNaN(d))d="";else if(n()===d)return}d=parseFloat(d)}isNaN(d)&&(d=""),t.value=d}else x.trim&&(d=d.trim());n(d)};return t.addEventListener(s,m),t.addEventListener("change",a),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",p),t.addEventListener("change",p),f},So=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=he(t),i=t.checked,a=e();if(T(a)){let c=kt(a,s),p=c!==-1;i&&!p?a.push(s):!i&&p&&a.splice(c,1)}else Z(a)?i?a.add(s):a.delete(s):e(Ao(t,i))};return t.addEventListener(n,o),r},he=t=>"_value"in t?t._value:t.value,ar="trueValue",wo="falseValue",cr="true-value",Oo="false-value",Ao=(t,e)=>{let n=e?ar:wo;if(n in t)return t[n];let r=e?cr:Oo;return t.hasAttribute(r)?t.getAttribute(r):e},No=(t,e)=>{if(ar in t)return de(e,t.trueValue);let r=cr;return t.hasAttribute(r)?de(e,t.getAttribute(r)):de(e,!0)},Mo=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=he(t);e(s)};return t.addEventListener(n,o),r},Lo=(t,e,n)=>{let r="change",o=()=>{t.removeEventListener(r,s)},s=()=>{let a=st(n()[1]).number,c=Array.prototype.filter.call(t.options,p=>p.selected).map(p=>a?Yn(he(p)):he(p));if(t.multiple){let p=e();try{if(It(e),Z(p)){p.clear();for(let f of c)p.add(f)}else T(p)?(p.splice(0),p.push(...c)):e(c)}finally{Dt(e),K(e)}}else e(c[0])};return t.addEventListener(r,s),o};var ko=["stop","prevent","capture","self","once","left","right","middle","passive"],Io=t=>{let e={};if(z(t))return;let n=t.split(",");for(let r of ko)e[r]=n.includes(r);return e},mn={isLazy:(t,e)=>e===-1&&t%2===0,isLazyKey:(t,e)=>e===0&&!t.endsWith("_flags"),once:!1,collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{var f,m;if(o){let u=e.value(),h=D(o.value()[0]);return j(h)?fn(t,V(h),()=>e.value()[0],(f=s==null?void 0:s.join(","))!=null?f:u[1]):()=>{}}else if(r){let u=e.value();return fn(t,V(r),()=>e.value()[0],(m=s==null?void 0:s.join(","))!=null?m:u[1])}let i=[],a=()=>{i.forEach(u=>u())},c=e.value(),p=c.length;for(let u=0;u<p;++u){let h=c[u];if(P(h)&&(h=h()),A(h))for(let d of Object.entries(h)){let x=d[0],U=()=>{let b=e.value()[u];return P(b)&&(b=b()),b=b[x],P(b)&&(b=b()),b},E=h[x+"_flags"];i.push(fn(t,x,U,E))}else M(2,name,t)}return a}},Do=(t,e)=>{if(t.startsWith("keydown")||t.startsWith("keyup")||t.startsWith("keypress")){e!=null||(e="");let n=t.split(".").concat(e.split(","));t=n[0];let r=n[1],o=n.includes("ctrl"),s=n.includes("shift"),i=n.includes("alt"),a=n.includes("meta"),c=p=>!(o&&!p.ctrlKey||s&&!p.shiftKey||i&&!p.altKey||a&&!p.metaKey);return r?[t,p=>c(p)?p.key.toUpperCase()===r.toUpperCase():!1]:[t,c]}return[t,n=>!0]},fn=(t,e,n,r)=>{if(z(e))return M(5,name,t),()=>{};let o=Io(r),s=o?{capture:o.capture,passive:o.passive,once:o.once}:void 0,i;[e,i]=Do(e,r);let a=f=>{if(!i(f)||!n&&e==="submit"&&(o!=null&&o.prevent))return;let m=n(f);P(m)&&(m=m(f)),P(m)&&m(f)},c=()=>{t.removeEventListener(e,p,s)},p=f=>{if(!o){a(f);return}try{if(o.left&&f.button!==0||o.middle&&f.button!==1||o.right&&f.button!==2||o.self&&f.target!==t)return;o.stop&&f.stopPropagation(),o.prevent&&f.preventDefault(),a(f)}finally{o.once&&c()}};return t.addEventListener(e,p,s),c};var pr={onChange:(t,e,n,r,o,s)=>{if(r){s&&s.includes("camel")&&(r=V(r)),Fe(t,r,e[0]);return}let i=e.length;for(let a=0;a<i;++a){let c=e[a];if(T(c)){let p=c[0],f=c[1];Fe(t,p,f)}else if(A(c))for(let p of Object.entries(c)){let f=p[0],m=p[1];Fe(t,f,m)}else{let p=e[a++],f=e[a];Fe(t,p,f)}}}};function Uo(t){return!!t||t===""}var Fe=(t,e,n)=>{if(ne(e)){M(3,name,t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(ae),1),t[e]=n!=null?n:"";return}let r=t.tagName;if(e==="value"&&r!=="PROGRESS"&&!r.includes("-")){t._value=n;let s=r==="OPTION"?t.getAttribute("value"):t.value,i=n!=null?n:"";s!==i&&(t.value=i),n==null&&t.removeAttribute(e);return}let o=!1;if(n===""||n==null){let s=typeof t[e];s==="boolean"?n=Uo(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{t[e]=n}catch(s){o||M(4,e,r,n,s)}o&&t.removeAttribute(e)};var fr={once:!0,onBind:(t,e,n)=>{let r=e.value()[0],o=T(r),s=e.refs[0];return o?r.push(t):s?s==null||s(t):e.context[n]=t,()=>{if(o){let i=r.indexOf(t);i!==-1&&r.splice(i,1)}else s==null||s(null)}}};var mr={onChange:(t,e)=>{let n=Te(t).data,r=n._ord;Nn(r)&&(r=n._ord=t.style.display),!!e[0]?t.style.display=r:t.style.display="none"}};var dn={onChange:(t,e,n)=>{let r=e.length;for(let o=0;o<r;++o){let s=e[o],i=n==null?void 0:n[o];if(T(s)){let a=s.length;for(let c=0;c<a;++c)lr(t,s[c],i==null?void 0:i[c])}else lr(t,s,i)}}},lr=(t,e,n)=>{let r=t.style,o=j(e);if(e&&!o){if(n&&!j(n))for(let s in n)e[s]==null&&un(r,s,"");for(let s in e)un(r,s,e[s])}else{let s=r.display;if(o?n!==e&&(r.cssText=e):n&&t.removeAttribute("style"),"_ord"in Te(t).data)return;r.display=s}},ur=/\s*!important$/;function un(t,e,n){if(T(n))n.forEach(r=>{un(t,e,r)});else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{let r=Ho(t,e);ur.test(n)?t.setProperty(je(r),n.replace(ur,""),"important"):t[r]=n}}var dr=["Webkit","Moz","ms"],ln={};function Ho(t,e){let n=ln[e];if(n)return n;let r=V(e);if(r!=="filter"&&r in t)return ln[e]=r;r=rt(r);for(let o=0;o<dr.length;o++){let s=dr[o]+r;if(s in t)return ln[e]=s}return e}var X=t=>hr(D(t)),hr=(t,e=new WeakMap)=>{if(!t||!A(t))return t;if(T(t))return t.map(X);if(Z(t)){let r=new Set;for(let o of t.keys())r.add(X(o));return r}if(ge(t)){let r=new Map;for(let o of t)r.set(X(o[0]),X(o[1]));return r}if(e.has(t))return D(e.get(t));let n={...t};e.set(t,n);for(let r of Object.entries(n))n[r[0]]=hr(D(r[1]),e);return n};var yr={onChange:(t,e)=>{var r;let n=e[0];t.textContent=Z(n)?JSON.stringify(X([...n])):ge(n)?JSON.stringify(X([...n])):A(n)?JSON.stringify(X(n)):(r=n==null?void 0:n.toString())!=null?r:""}};var gr={onChange:(t,e)=>{Fe(t,"value",e[0])}};var Le=t=>(t==null?void 0:t[ft])===1;var Re=t=>{if(Ve(t))return t;let e;if(y(t)?(e=t,t=e()):e=G(t),t instanceof Node||t instanceof Date||t instanceof RegExp||t instanceof Promise||t instanceof Error)return e;if(e[ft]=1,T(t)){let n=t.length;for(let r=0;r<n;++r){let o=t[r];Le(o)||(t[r]=Re(o))}return e}if(!A(t))return e;for(let n of Object.entries(t)){let r=n[1];if(Le(r))continue;let o=n[0];Ze(o)||(t[o]=null,t[o]=Re(r))}return e};var ve=class ve{constructor(e){l(this,"_",{});l(this,"f",{});l(this,"We",()=>Object.keys(this._).filter(e=>e.length===1||!e.startsWith(":")));l(this,"le",new Map);l(this,"ue",new Map);l(this,"forGrowThreshold",10);l(this,"globalContext");l(this,"useInterpolation",!0);if(this.setDirectives("r-"),e){this.globalContext=e;return}this.globalContext=this.ot()}static getDefault(){var e;return(e=ve.Ae)!=null?e:ve.Ae=new ve}ot(){let e={},n=globalThis;for(let r of ve.rt.split(","))e[r]=n[r];return e.ref=Re,e.sref=G,e.flatten=X,e}addComponent(...e){for(let n of e){if(!n.defaultName){et.warning("Registered component's default name is not defined",n);continue}this.le.set(rt(n.defaultName),n),this.ue.set(rt(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this._={".":pr,":":cn,"@":mn,[`${e}on`]:mn,[`${e}bind`]:cn,[`${e}html`]:Xn,[`${e}text`]:yr,[`${e}show`]:mr,[`${e}model`]:er,":style":dn,[`${e}bind:style`]:dn,":class":pn,[`${e}bind:class`]:pn,":ref":fr,":value":gr,[`${e}teleport`]:yt},this.f={for:`${e}for`,if:`${e}if`,else:`${e}else`,elseif:`${e}else-if`,pre:`${e}pre`,inherit:`${e}inherit`,text:`${e}text`,props:":props",propsOnce:":props-once",bind:`${e}bind`,on:`${e}on`,keyBind:":key",key:"key",is:":is",teleport:`${e}teleport`,dynamic:"_d_"}}updateDirectives(e){e(this._,this.f)}};l(ve,"Ae"),l(ve,"rt","Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");var ee=ve;var Ut=(t,e)=>{if(!t)return;let r=(e!=null?e:ee.getDefault()).f,o=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of Bo(t,r.pre,s))_o(i,r.text,o,s)},_o=(t,e,n,r)=>{var c;let o=t.textContent;if(!o)return;let s=n,i=o.split(s);if(i.length<=1)return;if(((c=t.parentElement)==null?void 0:c.childNodes.length)===1&&i.length===3){let p=i[1],f=br(p,r);if(f&&z(i[0])&&z(i[2])){let m=t.parentElement;m.setAttribute(e,p.substring(f.start.length,p.length-f.end.length)),m.innerText="";return}}let a=document.createDocumentFragment();for(let p of i){let f=br(p,r);if(f){let m=document.createElement("span");m.setAttribute(e,p.substring(f.start.length,p.length-f.end.length)),a.appendChild(m)}else a.appendChild(document.createTextNode(p))}t.replaceWith(a)},Bo=(t,e,n)=>{let r=[],o=s=>{var i;if(s.nodeType===Node.TEXT_NODE)n.some(a=>{var c;return(c=s.textContent)==null?void 0:c.includes(a.start)})&&r.push(s);else{if((i=s==null?void 0:s.hasAttribute)!=null&&i.call(s,e))return;for(let a of ue(s))o(a)}};return o(t),r},br=(t,e)=>e.find(n=>t.startsWith(n.start)&&t.endsWith(n.end));var Po=9,jo=10,Vo=13,$o=32,Se=46,Ht=44,Fo=39,qo=34,_t=40,qe=41,Bt=91,Pt=93,hn=63,zo=59,Tr=58,Ko=123,jt=125,gn=43,Wo=45,Er=96,Cr=47,Go=92,xr=[2,3],Rr=[gn,Wo],Nr={"-":1,"!":1,"~":1,"+":1,new:1},Mr={"=":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},Ke={"=>":2,...Mr,"||":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},Lr=Object.keys(Mr),Jo=new Set(Lr),Vt=new Set;Vt.add("=>");Lr.forEach(t=>Vt.add(t));var Qo=new Set(["$","_"]),vr={true:!0,false:!1,null:null},Xo="this";function kr(t){return Math.max(0,...Object.keys(t).map(e=>e.length))}var Yo=kr(Nr),Zo=kr(Ke),We="Expected ",ke="Unexpected ",Tn="Unclosed ",es=We+":",Sr=We+"expression",ts="missing }",ns=ke+"object property",rs=Tn+"(",wr=We+"comma",Or=ke+"token ",os=ke+"period",yn=We+"expression after ",ss="missing unaryOp argument",is=Tn+"[",as=We+"exponent (",cs="Variable names cannot start with a number (",ps=Tn+'quote after "';var ze=t=>t>=48&&t<=57,Ar=t=>Ke[t]||0,bn=class{constructor(e){l(this,"st",{0:[this.it],1:[this.at,this.pt,this.ct],2:[this.ft,this.lt,this.ut,this.Ne,this.mt],3:[this.dt,this.yt,this.ht]});l(this,"r");l(this,"e");this.r=e,this.e=0}get M(){return this.r.charAt(this.e)}get l(){return this.r.charCodeAt(this.e)}m(e){return this.r.charCodeAt(this.e)===e}U(e){let n=String.fromCharCode(e);return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!(n in Ke)||Qo.has(n)}re(e){return this.U(e)||ze(e)}i(e){return new Error(`${e} at character ${this.e}`)}k(e,n,r){let o=this.st[e];if(!o)return r;let s={node:r},i=a=>{a.call(this,s)};return n===0?o.forEach(i):o.find(i),s.node}y(){let e=this.l,n=this.r,r=this.e;for(;e===$o||e===Po||e===jo||e===Vo;)e=n.charCodeAt(++r);this.e=r}parse(){let e=this.oe();return e.length===1?e[0]:{type:0,body:e}}oe(e){let n=[];for(;this.e<this.r.length;){let r=this.l;if(r===zo||r===Ht)this.e++;else{let o=this.O();if(o)n.push(o);else if(this.e<this.r.length){if(r===e)break;throw this.i(ke+'"'+this.M+'"')}}}return n}O(){var n;let e=(n=this.k(0,1))!=null?n:this.Me();return this.y(),this.k(1,0,e)}se(){this.y();let e=this.e,n=this.r,r=n.substr(e,Zo),o=r.length;for(;o>0;){if(r in Ke&&(!this.U(this.l)||e+r.length<n.length&&!this.re(n.charCodeAt(e+r.length))))return e+=o,this.e=e,r;r=r.substr(0,--o)}return!1}Me(){let e,n,r,o,s,i,a,c;if(s=this.j(),!s||(n=this.se(),!n))return s;if(o={value:n,prec:Ar(n),right_a:Vt.has(n)},i=this.j(),!i)throw this.i(yn+n);let p=[s,o,i];for(;n=this.se();){if(r=Ar(n),r===0){this.e-=n.length;break}o={value:n,prec:r,right_a:Vt.has(n)},c=n;let f=m=>o.right_a&&m.right_a?r>m.prec:r<=m.prec;for(;p.length>2&&f(p[p.length-2]);)i=p.pop(),n=p.pop().value,s=p.pop(),e={type:8,operator:n,left:s,right:i},p.push(e);if(e=this.j(),!e)throw this.i(yn+c);p.push(o,e)}for(a=p.length-1,e=p[a];a>1;)e={type:8,operator:p[a-1].value,left:p[a-2],right:e},a-=2;return e}j(){let e,n,r;if(this.y(),r=this.k(2,1),r)return this.k(3,0,r);let o=this.l;if(ze(o)||o===Se)return this.gt();if(o===Fo||o===qo)r=this.bt();else if(o===Bt)r=this.Tt();else{for(e=this.r.substr(this.e,Yo),n=e.length;n>0;){if(Object.prototype.hasOwnProperty.call(Nr,e)&&(!this.U(this.l)||this.e+e.length<this.r.length&&!this.re(this.r.charCodeAt(this.e+e.length)))){this.e+=n;let s=this.j();if(!s)throw this.i(ss);return this.k(3,0,{type:7,operator:e,argument:s})}e=e.substr(0,--n)}this.U(o)?(r=this.ie(),r.name in vr?r={type:4,value:vr[r.name],raw:r.name}:r.name===Xo&&(r={type:5})):o===_t&&(r=this.xt())}return r?(r=this.$(r),this.k(3,0,r)):this.k(3,0,!1)}$(e){this.y();let n=this.l;for(;n===Se||n===Bt||n===_t||n===hn;){let r;if(n===hn){if(this.r.charCodeAt(this.e+1)!==Se)break;r=!0,this.e+=2,this.y(),n=this.l}if(this.e++,n===Bt){if(e={type:3,computed:!0,object:e,property:this.O()},this.y(),n=this.l,n!==Pt)throw this.i(is);this.e++}else n===_t?e={type:6,arguments:this.ke(qe),callee:e}:(n===Se||r)&&(r&&this.e--,this.y(),e={type:3,computed:!1,object:e,property:this.ie()});r&&(e.optional=!0),this.y(),n=this.l}return e}gt(){let e="",n;for(;ze(this.l);)e+=this.r.charAt(this.e++);if(this.m(Se))for(e+=this.r.charAt(this.e++);ze(this.l);)e+=this.r.charAt(this.e++);if(n=this.M,n==="e"||n==="E"){for(e+=this.r.charAt(this.e++),n=this.M,(n==="+"||n==="-")&&(e+=this.r.charAt(this.e++));ze(this.l);)e+=this.r.charAt(this.e++);if(!ze(this.r.charCodeAt(this.e-1)))throw this.i(as+e+this.M+")")}let r=this.l;if(this.U(r))throw this.i(cs+e+this.M+")");if(r===Se||e.length===1&&e.charCodeAt(0)===Se)throw this.i(os);return{type:4,value:parseFloat(e),raw:e}}bt(){let e="",n=this.e,r=this.r.charAt(this.e++),o=!1;for(;this.e<this.r.length;){let s=this.r.charAt(this.e++);if(s===r){o=!0;break}else if(s==="\\")switch(s=this.r.charAt(this.e++),s){case"n":e+=`
|
|
1
|
+
"use strict";var at=Object.defineProperty;var eo=Object.getOwnPropertyDescriptor;var to=Object.getOwnPropertyNames;var no=Object.prototype.hasOwnProperty;var ro=(t,e,n)=>e in t?at(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var oo=(t,e)=>{for(var n in e)at(t,n,{get:e[n],enumerable:!0})},so=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of to(e))!no.call(t,o)&&o!==n&&at(t,o,{get:()=>e[o],enumerable:!(r=eo(e,o))||r.enumerable});return t};var io=t=>so(at({},"__esModule",{value:!0}),t);var l=(t,e,n)=>ro(t,typeof e!="symbol"?e+"":e,n);var Es={};oo(Es,{ComponentHead:()=>He,RegorConfig:()=>ee,addUnbinder:()=>H,batch:()=>Zr,collectRefs:()=>vt,computeMany:()=>Kr,computeRef:()=>Wr,computed:()=>zr,createApp:()=>$r,createComponent:()=>Fr,endBatch:()=>wn,entangle:()=>Tt,flatten:()=>X,getBindData:()=>Te,html:()=>vn,isDeepRef:()=>Le,isRaw:()=>Ve,isRef:()=>g,markRaw:()=>Gr,observe:()=>w,observeMany:()=>Xr,observerCount:()=>Yr,onMounted:()=>qr,onUnmounted:()=>J,pause:()=>It,persist:()=>Jr,raw:()=>Qr,ref:()=>Re,removeNode:()=>V,resume:()=>Dt,silence:()=>Rt,sref:()=>G,startBatch:()=>Sn,toFragment:()=>Ie,toJsonTemplate:()=>Ge,trigger:()=>K,unbind:()=>ae,unref:()=>j,useScope:()=>bt,warningHandler:()=>et,watchEffect:()=>Me});module.exports=io(Es);var Ue=Symbol(":regor");var ae=t=>{let e=[t];for(;e.length>0;){let n=e.shift();ao(n);let r=n.childNodes;if(r)for(let o of r)e.push(o)}},ao=t=>{let e=t[Ue];if(e){for(let n of e.unbinders)n();e.unbinders.splice(0),delete t[Ue]}};var V=t=>{t.remove(),setTimeout(()=>ae(t),1)};var _=t=>typeof t=="function",B=t=>typeof t=="string",Nn=t=>typeof t=="undefined",ne=t=>t==null||typeof t=="undefined",z=t=>typeof t!="string"||!(t!=null&&t.trim()),co=Object.prototype.toString,Wt=t=>co.call(t),ge=t=>Wt(t)==="[object Map]",Z=t=>Wt(t)==="[object Set]",Gt=t=>Wt(t)==="[object Date]",Ze=t=>typeof t=="symbol",T=Array.isArray,A=t=>t!==null&&typeof t=="object";var Mn={0:"createApp can't find root element. You must define either a valid `selector` or an `element`. Example: createApp({}, {selector: '#app', html: '...'})",1:t=>`Component template cannot be found. selector: ${t} .`,2:"Use composables in scope. usage: useScope(() => new MyApp()).",3:t=>`${t} requires ref source argument`,4:"computed is readonly.",5:"persist requires a string key."},I=(t,...e)=>{let n=Mn[t];return new Error(_(n)?n.call(Mn,...e):n)};var ct=[],Ln=()=>{let t={onMounted:[],onUnmounted:[]};return ct.push(t),t},Oe=t=>{let e=ct[ct.length-1];if(!e&&!t)throw I(2);return e},kn=t=>{let e=Oe();return t&&Qt(t),ct.pop(),e},Jt=Symbol("csp"),Qt=t=>{let e=t,n=e[Jt];if(n){let r=Oe();if(n===r)return;r.onMounted.length>0&&n.onMounted.push(...r.onMounted),r.onUnmounted.length>0&&n.onUnmounted.push(...r.onUnmounted);return}e[Jt]=Oe()},pt=t=>t[Jt];var be=t=>{var n,r;let e=(n=pt(t))==null?void 0:n.onUnmounted;e==null||e.forEach(o=>{o()}),(r=t.unmounted)==null||r.call(t)};var He=class{constructor(e,n,r,o,s){l(this,"props");l(this,"start");l(this,"end");l(this,"ctx");l(this,"autoProps",!0);l(this,"entangle",!0);l(this,"enableSwitch",!1);l(this,"onAutoPropsAssigned");l(this,"pe");l(this,"emit",(e,n)=>{this.pe.dispatchEvent(new CustomEvent(e,{detail:n}))});this.props=e,this.pe=n,this.ctx=r,this.start=o,this.end=s}unmount(){let e=this.start.nextSibling,n=this.end;for(;e&&e!==n;)V(e),e=e.nextSibling;for(let r of this.ctx)be(r)}};var Te=t=>{let e=t[Ue];if(e)return e;let n={unbinders:[],data:{}};return t[Ue]=n,n};var H=(t,e)=>{Te(t).unbinders.push(e)};var In={8:t=>`Model binding requires a ref at ${t.outerHTML}`,7:t=>`Model binding is not supported on ${t.tagName} element at ${t.outerHTML}`,0:(t,e)=>`${t} binding expression is missing at ${e.outerHTML}`,1:(t,e,n)=>`invalid ${t} expression: ${e} at ${n.outerHTML}`,2:(t,e)=>`${t} requires object expression at ${e.outerHTML}`,3:(t,e)=>`${t} binder: key is empty on ${e.outerHTML}.`,4:(t,e,n,r)=>({msg:`Failed setting prop "${t}" on <${e.toLowerCase()}>: value ${n} is invalid.`,args:[r]}),5:(t,e)=>`${t} binding missing event type at ${e.outerHTML}`,6:(t,e)=>({msg:t,args:[e]})},M=(t,...e)=>{let n=In[t],r=_(n)?n.call(In,...e):n,o=et.warning;o&&(B(r)?o(r):o(r,...r.args))},et={warning:console.warn};var J=(t,e)=>{var n;(n=Oe(e))==null||n.onUnmounted.push(t)};var ft=Symbol("ref"),Q=Symbol("sref"),mt=Symbol("raw");var g=t=>(t==null?void 0:t[Q])===1;var w=(t,e,n)=>{if(!g(t))throw I(3,"observe");n&&e(t());let o=t(void 0,void 0,0,e);return J(o,!0),o};var ut={},lt={},Dn=1,Un=t=>{let e=(Dn++).toString();return ut[e]=t,lt[e]=0,e},Xt=t=>{lt[t]+=1},Yt=t=>{--lt[t]===0&&(delete ut[t],delete lt[t])},Hn=t=>ut[t],Zt=()=>Dn!==1&&Object.keys(ut).length>0,tt="r-switch",po=t=>{let e=t.filter(r=>Ae(r)).map(r=>[...r.querySelectorAll("[r-switch]")].map(o=>o.getAttribute(tt))),n=new Set;return e.forEach(r=>{r.forEach(o=>o&&n.add(o))}),[...n]},_e=(t,e)=>{if(!Zt())return;let n=po(e);n.length!==0&&(n.forEach(Xt),H(t,()=>{n.forEach(Yt)}))};var en=(t,e,n,r)=>{let o=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,r),o.push(i)}Ce(e,o)},tn=Symbol("r-if"),_n=Symbol("r-else"),Bn=t=>t[_n]===1,dt=class{constructor(e){l(this,"p");l(this,"B");l(this,"q");l(this,"K");l(this,"z");l(this,"b");l(this,"T");this.p=e,this.B=e.o.f.if,this.q=Pe(e.o.f.if),this.K=e.o.f.else,this.z=e.o.f.elseif,this.b=e.o.f.for,this.T=e.o.f.pre}qe(e,n){let r=e.parentElement;for(;r!==null&&r!==document.documentElement;){if(r.hasAttribute(n))return!0;r=r.parentElement}return!1}N(e){let n=e.hasAttribute(this.B),r=Ee(e,this.q);for(let o of r)this.x(o);return n}W(e){return e[tn]?!0:(e[tn]=!0,Ee(e,this.q).forEach(n=>n[tn]=!0),!1)}x(e){if(e.hasAttribute(this.T)||this.W(e)||this.qe(e,this.b))return;let n=e.getAttribute(this.B);if(!n){M(0,this.B,e);return}e.removeAttribute(this.B),this.L(e,n)}P(e,n,r){let o=Be(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${r!=null?r:""}`);s.insertBefore(i,e),_e(i,o),o.forEach(c=>{V(c)}),e.remove(),n!=="if"&&(e[_n]=1);let a=document.createComment(`__end__ :${n}${r!=null?r:""}`);return s.insertBefore(a,i.nextSibling),{nodes:o,parent:s,commentBegin:i,commentEnd:a}}ce(e,n){if(!e)return[];let r=e.nextElementSibling;if(e.hasAttribute(this.K)){e.removeAttribute(this.K);let{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.P(e,"else");return[{mount:()=>{en(o,this.p,s,a)},unmount:()=>{le(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let o=e.getAttribute(this.z);if(!o)return[];e.removeAttribute(this.z);let{nodes:s,parent:i,commentBegin:a,commentEnd:c}=this.P(e,"elseif",` => ${o} `),p=this.p.h.C(o),f=p.value,m=this.ce(r,n),u=[];H(a,()=>{p.stop();for(let x of u)x();u.length=0});let d=w(f,n);return u.push(d),[{mount:()=>{en(s,this.p,i,c)},unmount:()=>{le(a,c)},isTrue:()=>!!f()[0],isMounted:!1}].concat(m)}}L(e,n){let r=e.nextElementSibling,{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.P(e,"if",` => ${n} `),c=this.p.h.C(n),p=c.value,f=!1,m=this.p.h,u=m.V(),h=()=>{m.v(u,()=>{if(p()[0])f||(en(o,this.p,s,a),f=!0),d.forEach(b=>{b.unmount(),b.isMounted=!1});else{le(i,a),f=!1;let b=!1;for(let L of d)!b&&L.isTrue()?(L.isMounted||(L.mount(),L.isMounted=!0),b=!0):(L.unmount(),L.isMounted=!1)}})},d=this.ce(r,h),x=[];H(i,()=>{c.stop();for(let b of x)b();x.length=0}),h();let E=w(p,h);x.push(E)}};var Be=t=>{let e=pe(t)?t.content.childNodes:[t];return Array.from(e).filter(n=>{let r=n==null?void 0:n.tagName;return r!=="SCRIPT"&&r!=="STYLE"})},Ce=(t,e)=>{for(let n of e)Bn(n)||t.G(n)},Ee=(t,e)=>{var r;let n=t.querySelectorAll(e);return(r=t.matches)!=null&&r.call(t,e)?[t,...n]:n},pe=t=>t instanceof HTMLTemplateElement,Ae=t=>t.nodeType===Node.ELEMENT_NODE,nt=t=>t.nodeType===Node.ELEMENT_NODE,Pn=t=>t instanceof HTMLSlotElement,ue=t=>pe(t)?t.content.childNodes:t.childNodes,le=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let r=n.nextSibling;V(n),n=r}},xe=(t,e)=>{Object.defineProperty(t,"value",{get(){return t()},set(n){if(e)throw new Error("value is readonly.");return t(n)},enumerable:!0,configurable:!1})},jn=(t,e)=>{if(!t)return!1;if(t.startsWith("["))return t.substring(1,t.length-1);let n=e.length;return t.startsWith(e)?t.substring(n,t.length-n):!1},Pe=t=>`[${CSS.escape(t)}]`,ht=(t,e)=>(t.startsWith("@")&&(t=e.f.on+":"+t.slice(1)),t.includes("[")&&(t=t.replace(/[[\]]/g,e.f.dynamic)),t),nn=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},fo=/-(\w)/g,P=nn(t=>t&&t.replace(fo,(e,n)=>n?n.toUpperCase():"")),mo=/\B([A-Z])/g,je=nn(t=>t&&t.replace(mo,"-$1").toLowerCase()),rt=nn(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var yt={};var gt=t=>{var n,r;let e=(n=pt(t))==null?void 0:n.onMounted;e==null||e.forEach(o=>{o()}),(r=t.mounted)==null||r.call(t)};var rn=Symbol("scope"),bt=t=>{try{Ln();let e=t();Qt(e);let n={context:e,unmount:()=>be(e),[rn]:1};return n[rn]=1,n}finally{kn()}},Vn=t=>A(t)?rn in t:!1;var $n={collectRefObj:!0,onBind:(t,e)=>w(e.value,()=>{let r=e.value(),o=e.context,s=r[0];if(A(s))for(let i of Object.entries(s)){let a=i[0],c=i[1],p=o[a];p!==c&&(g(p)?p(c):o[a]=c)}},!0)};var Fn={collectRefObj:!0,once:!0,onBind:(t,e)=>{let n=e.value(),r=e.context,o=n[0];if(!A(o))return()=>{};for(let s of Object.entries(o)){let i=s[0],a=s[1],c=r[i];c!==a&&(g(c)?c(a):r[i]=a)}return()=>{}}};var qn={collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{if(!r)return()=>{};let i=P(r);return w(e.value,()=>{var m;let c=(m=e.refs[0])!=null?m:e.value()[0],p=e.context,f=p[r];f!==c&&(g(f)?f(c):p[i]=c)},!0)}};var Tt=(t,e)=>{if(t===e)return()=>{};let n=w(t,o=>e(o)),r=w(e,o=>t(o));return e(t()),()=>{n(),r()}};var Et=class{constructor(e){l(this,"p");l(this,"fe");this.p=e,this.fe=e.o.f.inherit}N(e){this.Ke(e)}Ke(e){var m;let n=this.p,r=n.h,o=n.o.le,s=n.o.ue,i=r.me(),a=r.ze(),c=[...o.keys(),...a,...[...o.keys()].map(je),...a.map(je)].join(",");if(z(c))return;let p=e.querySelectorAll(c),f=(m=e.matches)!=null&&m.call(e,c)?[e,...p]:p;for(let u of f){if(u.hasAttribute(n.T))continue;let h=u.parentNode;if(!h)continue;let d=u.nextSibling,x=P(u.tagName).toUpperCase(),D=i[x],E=D!=null?D:s.get(x);if(!E)continue;let b=E.template;if(!b)continue;let L=u.parentElement;if(!L)continue;let U=new Comment(" begin component: "+u.tagName),oe=new Comment(" end component: "+u.tagName);L.insertBefore(U,u),u.remove();let Je=n.o.f.props,Qe=n.o.f.propsOnce,qt=n.o.f.bind,Xe=(y,O)=>{let C={},W=y.hasAttribute(Je),F=y.hasAttribute(Qe);return r.v(O,()=>{r.S(C),W&&n.x($n,y,Je),F&&n.x(Fn,y,Qe);let R=E.props;if(!R||R.length===0)return;R=R.map(P);let q=new Map(R.map(Y=>[Y.toLowerCase(),Y]));for(let Y of R.concat(R.map(je))){let me=y.getAttribute(Y);me!==null&&(C[P(Y)]=me,y.removeAttribute(Y))}let zt=n.J.de(y,!1);for(let[Y,me]of zt.entries()){let[Kt,On]=me.Q;if(!On)continue;let An=q.get(P(On).toLowerCase());An&&(Kt!=="."&&Kt!==":"&&Kt!==qt||n.x(qn,y,Y,!0,An,me.X))}}),C},ye=[...r.V()],it=()=>{var W;let y=Xe(u,ye),O=new He(y,u,ye,U,oe),C=bt(()=>{var F;return(F=E.context(O))!=null?F:{}}).context;if(O.autoProps){for(let[F,R]of Object.entries(y))if(F in C){let q=C[F];if(q===R)continue;O.entangle&&g(q)&&g(R)&&H(U,Tt(R,q))}else C[F]=R;(W=O.onAutoPropsAssigned)==null||W.call(O)}return{componentCtx:C,head:O}},{componentCtx:we,head:k}=it(),se=[...ue(b)],v=se.length,N=u.childNodes.length===0,$=y=>{let O=y.parentElement;if(N){for(let R of[...y.childNodes])O.insertBefore(R,y);return}let C=y.name;z(C)&&(C=y.getAttributeNames().filter(R=>R.startsWith("#"))[0],z(C)?C="default":C=C.substring(1));let W=u.querySelector(`template[name='${C}'], template[\\#${C}]`);!W&&C==="default"&&(W=u.querySelector("template:not([name])"),W&&W.getAttributeNames().filter(R=>R.startsWith("#")).length>0&&(W=null));let F=R=>{k.enableSwitch&&r.v(ye,()=>{r.S(we);let q=Xe(y,r.V());r.v(ye,()=>{r.S(q);let zt=r.V(),Y=Un(zt);for(let me of R)Ae(me)&&(me.setAttribute(tt,Y),Xt(Y),H(me,()=>{Yt(Y)}))})})};if(W){let R=[...ue(W)];for(let q of R)O.insertBefore(q,y);F(R)}else{if(C!=="default"){for(let q of[...ue(y)])O.insertBefore(q,y);return}let R=[...ue(u)].filter(q=>!pe(q));for(let q of R)O.insertBefore(q,y);F(R)}},S=y=>{if(!Ae(y))return;let O=y.querySelectorAll("slot");if(Pn(y)){$(y),y.remove();return}for(let C of O)$(C),C.remove()};(()=>{for(let y=0;y<v;++y)se[y]=se[y].cloneNode(!0),h.insertBefore(se[y],d),S(se[y])})(),L.insertBefore(oe,d);let ie=()=>{if(!E.inheritAttrs)return;let y=se.filter(C=>C.nodeType===Node.ELEMENT_NODE);y.length>1&&(y=y.filter(C=>C.hasAttribute(this.fe)));let O=y[0];if(O)for(let C of u.getAttributeNames()){if(C===Je||C===Qe)continue;let W=u.getAttribute(C);if(C==="class")O.classList.add(...W.split(" "));else if(C==="style"){let F=O.style,R=u.style;for(let q of R)F.setProperty(q,R.getPropertyValue(q))}else O.setAttribute(ht(C,n.o),W)}},De=()=>{for(let y of u.getAttributeNames())!y.startsWith("@")&&!y.startsWith(n.o.f.on)&&u.removeAttribute(y)},Ye=()=>{ie(),De(),r.S(we),n.ye(u,!1),we.$emit=k.emit,Ce(n,se),H(u,()=>{be(we)}),H(U,()=>{ae(u)}),gt(we)};r.v(ye,Ye)}}};var on=class{constructor(e){l(this,"he");l(this,"Q",[]);l(this,"X",[]);l(this,"ge",[]);this.he=e,this.C()}C(){let e=this.he,n=e.startsWith(".");n&&(e=":"+e.slice(1));let r=e.indexOf("."),o=this.Q=(r<0?e:e.substring(0,r)).split(/[:@]/);if(z(o[0])&&(o[0]=n?".":e[0]),r>=0){let s=this.X=e.slice(r+1).split(".");if(s.includes("camel")){let i=o.length-1;o[i]=P(o[i])}s.includes("prop")&&(o[0]=".")}}},Ct=class{constructor(e){l(this,"p");l(this,"be");this.p=e,this.be=e.o.We()}de(e,n){let r=new Map;if(!nt(e))return r;let o=this.be,s=a=>{let c=a.getAttributeNames().filter(p=>o.some(f=>p.startsWith(f)));for(let p of c)r.has(p)||r.set(p,new on(p)),r.get(p).ge.push(a)};if(s(e),!n)return r;let i=e.querySelectorAll("*");for(let a of i)s(a);return r}};var lo=(t,e)=>{for(let n of t){let r=n.cloneNode(!0);e.appendChild(r)}},xt=class{constructor(e){l(this,"p");l(this,"I");l(this,"Te");this.p=e,this.I=e.o.f.is,this.Te=Pe(this.I)+", [is]"}N(e){let n=e.hasAttribute(this.I),r=Ee(e,this.Te);for(let o of r)this.x(o);return n}x(e){let n=e.getAttribute(this.I);if(!n){if(n=e.getAttribute("is"),!n||!n.startsWith("regor:"))return;n=`'${n.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.I),this.L(e,n)}P(e,n){let r=Be(e),o=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);o.insertBefore(s,e),_e(s,r),r.forEach(a=>{V(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${n!=null?n:""}`);return o.insertBefore(i,s.nextSibling),{nodes:r,parent:o,commentBegin:s,commentEnd:i}}L(e,n){let{nodes:r,parent:o,commentBegin:s,commentEnd:i}=this.P(e,` => ${n} `),a=this.p.h.C(n),c=a.value,p=this.p.h,f=p.V(),m={name:""},u=pe(e)?r:[...r[0].childNodes],h=()=>{p.v(f,()=>{var L;let E=c()[0];if(A(E)&&(E.name?E=E.name:E=(L=Object.entries(p.me()).filter(U=>U[1]===E)[0])==null?void 0:L[0]),!B(E)||z(E)){le(s,i);return}if(m.name===E)return;le(s,i);let b=document.createElement(E);for(let U of e.getAttributeNames())U!==this.I&&b.setAttribute(U,e.getAttribute(U));lo(u,b),o.insertBefore(b,i),this.p.G(b),m.name=E})},d=[];H(s,()=>{a.stop();for(let E of d)E();d.length=0}),h();let D=w(c,h);d.push(D)}};var re=[],zn=t=>{var e;re.length!==0&&((e=re[re.length-1])==null||e.add(t))},Me=t=>{if(!t)return()=>{};let e={stop:()=>{}};return uo(t,e),J(()=>e.stop(),!0),e.stop},uo=(t,e)=>{if(!t)return;let n=[],r=!1,o=()=>{for(let s of n)s();n=[],r=!0};e.stop=o;try{let s=new Set;if(re.push(s),t(i=>n.push(i)),r)return;for(let i of[...s]){let a=w(i,()=>{o(),Me(t)});n.push(a)}}finally{re.pop()}},Rt=t=>{let e=re.length,n=e>0&&re[e-1];try{return n&&re.push(null),t()}finally{n&&re.pop()}},vt=t=>{try{let e=new Set;return re.push(e),{value:t(),refs:[...e]}}finally{re.pop()}};var Ve=t=>!!t&&t[mt]===1;var K=(t,e,n)=>{if(!g(t))return;let r=t;if(r(void 0,e,1),!n)return;let o=r();if(o){if(T(o)||Z(o))for(let s of o)K(s,e,!0);else if(ge(o))for(let s of o)K(s[0],e,!0),K(s[1],e,!0);if(A(o))for(let s in o)K(o[s],e,!0)}};function ho(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var $e=(t,e,n)=>{n.forEach(function(r){let o=t[r];ho(e,r,function(...i){let a=o.apply(this,i),c=this[Q];for(let p of c)K(p);return a})})},St=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var Kn=Array.prototype,sn=Object.create(Kn),yo=["push","pop","shift","unshift","splice","sort","reverse"];$e(Kn,sn,yo);var Wn=Map.prototype,wt=Object.create(Wn),go=["set","clear","delete"];St(wt,"Map");$e(Wn,wt,go);var Gn=Set.prototype,Ot=Object.create(Gn),bo=["add","clear","delete"];St(Ot,"Set");$e(Gn,Ot,bo);var fe={},G=t=>{if(g(t)||Ve(t))return t;let e={auto:!0,_value:t},n=c=>A(c)?Q in c?!0:T(c)?(Object.setPrototypeOf(c,sn),!0):Z(c)?(Object.setPrototypeOf(c,Ot),!0):ge(c)?(Object.setPrototypeOf(c,wt),!0):!1:!1,r=n(t),o=new Set,s=(c,p)=>{if(fe.stack&&fe.stack.length){fe.stack[fe.stack.length-1].add(a);return}o.size!==0&&Rt(()=>{for(let f of[...o.keys()])o.has(f)&&f(c,p)})},i=c=>{let p=c[Q];p||(c[Q]=p=new Set),p.add(a)},a=(...c)=>{if(!(2 in c)){let f=c[0],m=c[1];return 0 in c?e._value===f||g(f)&&(f=f(),e._value===f)?f:(n(f)&&i(f),e._value=f,e.auto&&s(f,m),e._value):(zn(a),e._value)}switch(c[2]){case 0:{let f=c[3];if(!f)return()=>{};let m=u=>{o.delete(u)};return o.add(f),()=>{m(f)}}case 1:{let f=c[1],m=e._value;s(m,f);break}case 2:return o.size;case 3:{e.auto=!1;break}case 4:e.auto=!0}return e._value};return a[Q]=1,xe(a,!1),r&&i(t),a};var j=t=>g(t)?t():t;var ot=class{constructor(e){l(this,"E",[]);l(this,"H",new Map);l(this,"Y");this.Y=e}get w(){return this.E.length}Z(e){let n=this.Y(e.value);n!==void 0&&this.H.set(n,e)}ee(e){var r;let n=this.Y((r=this.E[e])==null?void 0:r.value);n!==void 0&&this.H.delete(n)}static Ge(e,n){return{items:[],index:e,value:n,order:-1}}S(e){e.order=this.w,this.E.push(e),this.Z(e)}Je(e,n){let r=this.w;for(let o=e;o<r;++o)this.E[o].order=o+1;n.order=e,this.E.splice(e,0,n),this.Z(n)}D(e){return this.E[e]}te(e,n){this.ee(e),this.E[e]=n,this.Z(n),n.order=e}xe(e){this.ee(e),this.E.splice(e,1);let n=this.w;for(let r=e;r<n;++r)this.E[r].order=r}Ee(e){let n=this.w;for(let r=e;r<n;++r)this.ee(r);this.E.splice(e)}Ct(e){return this.H.has(e)}Qe(e){var r;let n=this.H.get(e);return(r=n==null?void 0:n.order)!=null?r:-1}};var an=Symbol("r-for"),Nt=class Nt{constructor(e){l(this,"p");l(this,"b");l(this,"ne");l(this,"T");this.p=e,this.b=e.o.f.for,this.ne=Pe(this.b),this.T=e.o.f.pre}N(e){let n=e.hasAttribute(this.b),r=Ee(e,this.ne);for(let o of r)this.Xe(o);return n}W(e){return e[an]?!0:(e[an]=!0,Ee(e,this.ne).forEach(n=>n[an]=!0),!1)}Xe(e){if(e.hasAttribute(this.T)||this.W(e))return;let n=e.getAttribute(this.b);if(!n){M(0,this.b,e);return}e.removeAttribute(this.b),this.Ye(e,n)}Re(e){return ne(e)?[]:(_(e)&&(e=e()),Symbol.iterator in Object(e)?e:typeof e=="number"?(r=>({*[Symbol.iterator](){for(let o=1;o<=r;o++)yield o}}))(e):Object.entries(e))}Ye(e,n){var se;let r=this.Ze(n);if(!(r!=null&&r.list)){M(1,this.b,n,e);return}let o=this.p.o.f.key,s=this.p.o.f.keyBind,i=(se=e.getAttribute(o))!=null?se:e.getAttribute(s);e.removeAttribute(o),e.removeAttribute(s);let a=i?v=>{var N;return j((N=j(v))==null?void 0:N[i])}:v=>v,c=(v,N)=>a(v)===a(N),p=Be(e),f=e.parentNode;if(!f)return;let m=`${this.b} => ${n}`,u=new Comment(`__begin__ ${m}`);f.insertBefore(u,e),_e(u,p),p.forEach(v=>{V(v)}),e.remove();let h=new Comment(`__end__ ${m}`);f.insertBefore(h,u.nextSibling);let d=this.p,x=d.h,D=x.V(),E=(v,N,$)=>{let S=r.createContext(N,v),te=ot.Ge(S.index,N);return x.v(D,()=>{x.S(S.ctx);let ie=$.previousSibling,De=[];for(let Ye of p){let y=Ye.cloneNode(!0);f.insertBefore(y,$),De.push(y)}for(Ce(d,De),ie=ie.nextSibling;ie!==$;)te.items.push(ie),ie=ie.nextSibling}),te},b=(v,N)=>{let $=k.D(v).items,S=$[$.length-1].nextSibling;for(let te of $)V(te);k.te(v,E(v,N,S))},L=(v,N)=>{k.S(E(v,N,h))},U=v=>{for(let N of k.D(v).items)V(N)},oe=v=>{let N=k.w;for(let $=v;$<N;++$)k.D($).index($)},Je=v=>{let N=k.w;_(v)&&(v=v());let $=j(v[0]);if(T($)&&$.length===0){le(u,h),k.Ee(0);return}let S=0,te=Number.MAX_SAFE_INTEGER,ie=N,De=this.p.o.forGrowThreshold,Ye=()=>k.w<ie+De;for(let O of this.Re(v[0])){let C=()=>{if(S<N){let W=k.D(S++);if(c(W.value,O))return;let F=k.Qe(a(O));if(F>=S&&F-S<10){if(--S,te=Math.min(te,S),U(S),k.xe(S),--N,F>S+1)for(let R=S;R<F-1&&R<N&&!c(k.D(S).value,O);)++R,U(S),k.xe(S),--N;C();return}Ye()?(k.Je(S-1,E(S,O,k.D(S-1).items[0])),te=Math.min(te,S-1),++N):b(S-1,O)}else L(S++,O)};C()}let y=S;for(N=k.w;S<N;)U(S++);k.Ee(y),oe(te)},Qe=()=>{it=w(ye,Je)},qt=()=>{Xe.stop(),it()},Xe=x.C(r.list),ye=Xe.value,it,we=0,k=new ot(a);for(let v of this.Re(ye()[0]))k.S(E(we++,v,h));H(u,qt),Qe()}Ze(e){var c,p;let n=Nt.et.exec(e);if(!n)return;let r=(n[1]+((c=n[2])!=null?c:"")).split(",").map(f=>f.trim()),o=r.length>1?r.length-1:-1,s=o!==-1&&(r[o]==="index"||(p=r[o])!=null&&p.startsWith("#"))?r[o]:"";s&&r.splice(o,1);let i=n[3];if(!i||r.length===0)return;let a=/[{[]/.test(e);return{list:i,createContext:(f,m)=>{let u={},h=j(f);if(!a&&r.length===1)u[r[0]]=f;else if(T(h)){let x=0;for(let D of r)u[D]=h[x++]}else for(let x of r)u[x]=h[x];let d={ctx:u,index:G(-1)};return s&&(d.index=u[s.startsWith("#")?s.substring(1):s]=G(m)),d}}}};l(Nt,"et",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var At=Nt;var Mt=class{constructor(e){l(this,"h");l(this,"Ce");l(this,"ve");l(this,"Se");l(this,"we");l(this,"J");l(this,"o");l(this,"T");l(this,"Oe");this.h=e,this.o=e.o,this.ve=new At(this),this.Ce=new dt(this),this.Se=new xt(this),this.we=new Et(this),this.J=new Ct(this),this.T=this.o.f.pre,this.Oe=this.o.f.dynamic}tt(e){let n=pe(e)?[e]:e.querySelectorAll("template");for(let r of n){if(r.hasAttribute(this.T))continue;let o=r.parentNode;if(!o)continue;let s=r.nextSibling;if(r.remove(),!r.content)continue;let i=[...r.content.childNodes];for(let a of i)o.insertBefore(a,s);Ce(this,i)}}G(e){e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.T)||this.Ce.N(e)||this.ve.N(e)||this.Se.N(e)||(this.we.N(e),this.tt(e),this.ye(e,!0))}ye(e,n){var s;let r=this.J.de(e,n),o=this.o._;for(let[i,a]of r.entries()){let[c,p]=a.Q,f=(s=o[i])!=null?s:o[c];if(!f){console.error("directive not found:",c);continue}a.ge.forEach(m=>{this.x(f,m,i,!1,p,a.X)})}}x(e,n,r,o,s,i){if(n.hasAttribute(this.T))return;let a=n.getAttribute(r);n.removeAttribute(r);let c=p=>{let f=p.getAttribute(tt);return f||(p.parentElement?c(p.parentElement):null)};if(Zt()){let p=c(n);if(p){this.h.v(Hn(p),()=>{this.L(e,n,a,s,i)});return}}this.L(e,n,a,s,i)}nt(e,n,r){if(e!==yt)return!1;if(z(r))return!0;let o=document.querySelector(r);if(o){let s=n.parentElement;if(!s)return!0;let i=new Comment(`teleported => '${r}'`);s.insertBefore(i,n),n.teleportedFrom=i,i.teleportedTo=n,H(i,()=>{V(n)}),o.appendChild(n)}return!0}L(e,n,r,o,s){var D;if(n.nodeType!==Node.ELEMENT_NODE||r==null||this.nt(e,n,r))return;let i=this.h.C(r,e.isLazy,e.isLazyKey,e.collectRefObj,e.once),a=[];H(n,()=>{i.stop(),f==null||f.stop();for(let E of a)E();a.length=0});let p=jn(o,this.Oe),f;p&&(f=this.h.C(P(p),void 0,void 0,void 0,e.once));let m,u=()=>(m=i.value(),m),h,d=()=>f?(h=f.value()[0],h):(h=o,o),x=()=>{if(!e.onChange)return;let E=w(i.value,b=>{var oe;let L=m,U=h;(oe=e.onChange)==null||oe.call(e,n,u(),L,d(),U,s)});if(a.push(E),f){let b=w(f.value,L=>{var oe;let U=h;(oe=e.onChange)==null||oe.call(e,n,u(),U,d(),U,s)});a.push(b)}};e.once||x(),e.onBind&&a.push(e.onBind(n,i,r,o,f,s)),(D=e.onChange)==null||D.call(e,n,u(),void 0,d(),void 0,s)}};var Jn="http://www.w3.org/1999/xlink",To={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 Eo(t){return!!t||t===""}var cn={onChange:(t,e,n,r,o,s)=>{var a;if(r){s&&s.includes("camel")&&(r=P(r)),Lt(t,r,e[0],o);return}let i=e.length;for(let c=0;c<i;++c){let p=e[c];if(T(p)){let f=(a=n==null?void 0:n[c])==null?void 0:a[0],m=p[0],u=p[1];Lt(t,m,u,f)}else if(A(p))for(let f of Object.entries(p)){let m=f[0],u=f[1],h=n==null?void 0:n[c],d=h&&m in h?m:void 0;Lt(t,m,u,d)}else{let f=n==null?void 0:n[c],m=e[c++],u=e[c];Lt(t,m,u,f)}}}},Lt=(t,e,n,r)=>{if(r&&r!==e&&t.removeAttribute(r),ne(e)){M(3,name,t);return}if(!B(e)){M(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){ne(n)?t.removeAttributeNS(Jn,e.slice(6,e.length)):t.setAttributeNS(Jn,e,n);return}let o=e in To;ne(n)||o&&!Eo(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)};var pn={onChange:(t,e,n)=>{let r=e.length;for(let o=0;o<r;++o){let s=e[o],i=n==null?void 0:n[o];if(T(s)){let a=s.length;for(let c=0;c<a;++c)Qn(t,s[c],i==null?void 0:i[c])}else Qn(t,s,i)}}},Qn=(t,e,n)=>{let r=t.classList,o=B(e),s=B(n);if(e&&!o){if(n&&!s)for(let i in n)(!(i in e)||!e[i])&&r.remove(i);for(let i in e)e[i]&&r.add(i)}else o?n!==e&&(s&&r.remove(...n.trim().split(/\s+/)),r.add(...e.trim().split(/\s+/))):n&&s&&r.remove(...n.trim().split(/\s+/))};var Xn={onChange:(t,e)=>{let[n,r]=e;_(r)?r(t,n):t.innerHTML=n==null?void 0:n.toString()}};function Co(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=de(t[r],e[r]);return n}function de(t,e){if(t===e)return!0;let n=Gt(t),r=Gt(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Ze(t),r=Ze(e),n||r)return t===e;if(n=T(t),r=T(e),n||r)return n&&r?Co(t,e):!1;if(n=A(t),r=A(e),n||r){if(!n||!r)return!1;let o=Object.keys(t).length,s=Object.keys(e).length;if(o!==s)return!1;for(let i in t){let a=t.hasOwnProperty(i),c=e.hasOwnProperty(i);if(a&&!c||!a&&c||!de(t[i],e[i]))return!1}}return String(t)===String(e)}function kt(t,e){return t.findIndex(n=>de(n,e))}var Yn=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var It=t=>{if(!g(t))throw I(3,"pause");t(void 0,void 0,3)};var Dt=t=>{if(!g(t))throw I(3,"resume");t(void 0,void 0,4)};var er={onChange:(t,e)=>{xo(t,e[0])},onBind:(t,e,n,r,o,s)=>Ro(t,e,s)},xo=(t,e)=>{let n=or(t);if(n&&tr(t))T(e)?e=kt(e,he(t))>-1:Z(e)?e=e.has(he(t)):e=No(t,e),t.checked=e;else if(n&&nr(t))t.checked=de(e,he(t));else if(n||sr(t))rr(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(ir(t)){let r=t.options,o=r.length,s=t.multiple;for(let i=0;i<o;i++){let a=r[i],c=he(a);if(s)T(e)?a.selected=kt(e,c)>-1:a.selected=e.has(c);else if(de(he(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else M(7,t)},st=t=>(g(t)&&(t=t()),_(t)&&(t=t()),t?B(t)?{trim:t.includes("trim"),lazy:t.includes("lazy"),number:t.includes("number"),int:t.includes("int")}:{trim:!!t.trim,lazy:!!t.lazy,number:!!t.number,int:!!t.int}:{trim:!1,lazy:!1,number:!1,int:!1}),tr=t=>t.type==="checkbox",nr=t=>t.type==="radio",rr=t=>t.type==="number"||t.type==="range",or=t=>t.tagName==="INPUT",sr=t=>t.tagName==="TEXTAREA",ir=t=>t.tagName==="SELECT",Ro=(t,e,n)=>{let r=e.value,o=st(n==null?void 0:n.join(",")),s=st(r()[1]),i={int:o.int||s.int,lazy:o.lazy||s.lazy,number:o.number||s.number,trim:o.trim||s.trim},a=e.refs[0];if(!a)return M(8,t),()=>{};let c=or(t);return c&&tr(t)?So(t,a):c&&nr(t)?Mo(t,a):c||sr(t)?vo(t,i,a,r):ir(t)?Lo(t,a,r):(M(7,t),()=>{})},Zn=/[.,' ·٫]/,vo=(t,e,n,r)=>{let s=e.lazy?"change":"input",i=rr(t),a=()=>{!e.trim&&!st(r()[1]).trim||(t.value=t.value.trim())},c=u=>{let h=u.target;h.composing=1},p=u=>{let h=u.target;h.composing&&(h.composing=0,h.dispatchEvent(new Event(s)))},f=()=>{t.removeEventListener(s,m),t.removeEventListener("change",a),t.removeEventListener("compositionstart",c),t.removeEventListener("compositionend",p),t.removeEventListener("change",p)},m=u=>{let h=u.target;if(!h||h.composing)return;let d=h.value,x=st(r()[1]);if(i||x.number||x.int){if(x.int)d=parseInt(d);else{if(Zn.test(d[d.length-1])&&d.split(Zn).length===2){if(d+="0",d=parseFloat(d),isNaN(d))d="";else if(n()===d)return}d=parseFloat(d)}isNaN(d)&&(d=""),t.value=d}else x.trim&&(d=d.trim());n(d)};return t.addEventListener(s,m),t.addEventListener("change",a),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",p),t.addEventListener("change",p),f},So=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=he(t),i=t.checked,a=e();if(T(a)){let c=kt(a,s),p=c!==-1;i&&!p?a.push(s):!i&&p&&a.splice(c,1)}else Z(a)?i?a.add(s):a.delete(s):e(Ao(t,i))};return t.addEventListener(n,o),r},he=t=>"_value"in t?t._value:t.value,ar="trueValue",wo="falseValue",cr="true-value",Oo="false-value",Ao=(t,e)=>{let n=e?ar:wo;if(n in t)return t[n];let r=e?cr:Oo;return t.hasAttribute(r)?t.getAttribute(r):e},No=(t,e)=>{if(ar in t)return de(e,t.trueValue);let r=cr;return t.hasAttribute(r)?de(e,t.getAttribute(r)):de(e,!0)},Mo=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=he(t);e(s)};return t.addEventListener(n,o),r},Lo=(t,e,n)=>{let r="change",o=()=>{t.removeEventListener(r,s)},s=()=>{let a=st(n()[1]).number,c=Array.prototype.filter.call(t.options,p=>p.selected).map(p=>a?Yn(he(p)):he(p));if(t.multiple){let p=e();try{if(It(e),Z(p)){p.clear();for(let f of c)p.add(f)}else T(p)?(p.splice(0),p.push(...c)):e(c)}finally{Dt(e),K(e)}}else e(c[0])};return t.addEventListener(r,s),o};var ko=["stop","prevent","capture","self","once","left","right","middle","passive"],Io=t=>{let e={};if(z(t))return;let n=t.split(",");for(let r of ko)e[r]=n.includes(r);return e},mn={isLazy:(t,e)=>e===-1&&t%2===0,isLazyKey:(t,e)=>e===0&&!t.endsWith("_flags"),once:!1,collectRefObj:!0,onBind:(t,e,n,r,o,s)=>{var f,m;if(o){let u=e.value(),h=j(o.value()[0]);return B(h)?fn(t,P(h),()=>e.value()[0],(f=s==null?void 0:s.join(","))!=null?f:u[1]):()=>{}}else if(r){let u=e.value();return fn(t,P(r),()=>e.value()[0],(m=s==null?void 0:s.join(","))!=null?m:u[1])}let i=[],a=()=>{i.forEach(u=>u())},c=e.value(),p=c.length;for(let u=0;u<p;++u){let h=c[u];if(_(h)&&(h=h()),A(h))for(let d of Object.entries(h)){let x=d[0],D=()=>{let b=e.value()[u];return _(b)&&(b=b()),b=b[x],_(b)&&(b=b()),b},E=h[x+"_flags"];i.push(fn(t,x,D,E))}else M(2,name,t)}return a}},Do=(t,e)=>{if(t.startsWith("keydown")||t.startsWith("keyup")||t.startsWith("keypress")){e!=null||(e="");let n=t.split(".").concat(e.split(","));t=n[0];let r=n[1],o=n.includes("ctrl"),s=n.includes("shift"),i=n.includes("alt"),a=n.includes("meta"),c=p=>!(o&&!p.ctrlKey||s&&!p.shiftKey||i&&!p.altKey||a&&!p.metaKey);return r?[t,p=>c(p)?p.key.toUpperCase()===r.toUpperCase():!1]:[t,c]}return[t,n=>!0]},fn=(t,e,n,r)=>{if(z(e))return M(5,name,t),()=>{};let o=Io(r),s=o?{capture:o.capture,passive:o.passive,once:o.once}:void 0,i;[e,i]=Do(e,r);let a=f=>{if(!i(f)||!n&&e==="submit"&&(o!=null&&o.prevent))return;let m=n(f);_(m)&&(m=m(f)),_(m)&&m(f)},c=()=>{t.removeEventListener(e,p,s)},p=f=>{if(!o){a(f);return}try{if(o.left&&f.button!==0||o.middle&&f.button!==1||o.right&&f.button!==2||o.self&&f.target!==t)return;o.stop&&f.stopPropagation(),o.prevent&&f.preventDefault(),a(f)}finally{o.once&&c()}};return t.addEventListener(e,p,s),c};var pr={onChange:(t,e,n,r,o,s)=>{if(r){s&&s.includes("camel")&&(r=P(r)),Fe(t,r,e[0]);return}let i=e.length;for(let a=0;a<i;++a){let c=e[a];if(T(c)){let p=c[0],f=c[1];Fe(t,p,f)}else if(A(c))for(let p of Object.entries(c)){let f=p[0],m=p[1];Fe(t,f,m)}else{let p=e[a++],f=e[a];Fe(t,p,f)}}}};function Uo(t){return!!t||t===""}var Fe=(t,e,n)=>{if(ne(e)){M(3,name,t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(ae),1),t[e]=n!=null?n:"";return}let r=t.tagName;if(e==="value"&&r!=="PROGRESS"&&!r.includes("-")){t._value=n;let s=r==="OPTION"?t.getAttribute("value"):t.value,i=n!=null?n:"";s!==i&&(t.value=i),n==null&&t.removeAttribute(e);return}let o=!1;if(n===""||n==null){let s=typeof t[e];s==="boolean"?n=Uo(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{t[e]=n}catch(s){o||M(4,e,r,n,s)}o&&t.removeAttribute(e)};var fr={once:!0,onBind:(t,e,n)=>{let r=e.value()[0],o=T(r),s=e.refs[0];return o?r.push(t):s?s==null||s(t):e.context[n]=t,()=>{if(o){let i=r.indexOf(t);i!==-1&&r.splice(i,1)}else s==null||s(null)}}};var mr={onChange:(t,e)=>{let n=Te(t).data,r=n._ord;Nn(r)&&(r=n._ord=t.style.display),!!e[0]?t.style.display=r:t.style.display="none"}};var dn={onChange:(t,e,n)=>{let r=e.length;for(let o=0;o<r;++o){let s=e[o],i=n==null?void 0:n[o];if(T(s)){let a=s.length;for(let c=0;c<a;++c)lr(t,s[c],i==null?void 0:i[c])}else lr(t,s,i)}}},lr=(t,e,n)=>{let r=t.style,o=B(e);if(e&&!o){if(n&&!B(n))for(let s in n)e[s]==null&&un(r,s,"");for(let s in e)un(r,s,e[s])}else{let s=r.display;if(o?n!==e&&(r.cssText=e):n&&t.removeAttribute("style"),"_ord"in Te(t).data)return;r.display=s}},ur=/\s*!important$/;function un(t,e,n){if(T(n))n.forEach(r=>{un(t,e,r)});else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{let r=Ho(t,e);ur.test(n)?t.setProperty(je(r),n.replace(ur,""),"important"):t[r]=n}}var dr=["Webkit","Moz","ms"],ln={};function Ho(t,e){let n=ln[e];if(n)return n;let r=P(e);if(r!=="filter"&&r in t)return ln[e]=r;r=rt(r);for(let o=0;o<dr.length;o++){let s=dr[o]+r;if(s in t)return ln[e]=s}return e}var X=t=>hr(j(t)),hr=(t,e=new WeakMap)=>{if(!t||!A(t))return t;if(T(t))return t.map(X);if(Z(t)){let r=new Set;for(let o of t.keys())r.add(X(o));return r}if(ge(t)){let r=new Map;for(let o of t)r.set(X(o[0]),X(o[1]));return r}if(e.has(t))return j(e.get(t));let n={...t};e.set(t,n);for(let r of Object.entries(n))n[r[0]]=hr(j(r[1]),e);return n};var yr={onChange:(t,e)=>{var r;let n=e[0];t.textContent=Z(n)?JSON.stringify(X([...n])):ge(n)?JSON.stringify(X([...n])):A(n)?JSON.stringify(X(n)):(r=n==null?void 0:n.toString())!=null?r:""}};var gr={onChange:(t,e)=>{Fe(t,"value",e[0])}};var Le=t=>(t==null?void 0:t[ft])===1;var Re=t=>{if(Ve(t))return t;let e;if(g(t)?(e=t,t=e()):e=G(t),t instanceof Node||t instanceof Date||t instanceof RegExp||t instanceof Promise||t instanceof Error)return e;if(e[ft]=1,T(t)){let n=t.length;for(let r=0;r<n;++r){let o=t[r];Le(o)||(t[r]=Re(o))}return e}if(!A(t))return e;for(let n of Object.entries(t)){let r=n[1];if(Le(r))continue;let o=n[0];Ze(o)||(t[o]=null,t[o]=Re(r))}return e};var ve=class ve{constructor(e){l(this,"_",{});l(this,"f",{});l(this,"We",()=>Object.keys(this._).filter(e=>e.length===1||!e.startsWith(":")));l(this,"le",new Map);l(this,"ue",new Map);l(this,"forGrowThreshold",10);l(this,"globalContext");l(this,"useInterpolation",!0);if(this.setDirectives("r-"),e){this.globalContext=e;return}this.globalContext=this.ot()}static getDefault(){var e;return(e=ve.Ae)!=null?e:ve.Ae=new ve}ot(){let e={},n=globalThis;for(let r of ve.rt.split(","))e[r]=n[r];return e.ref=Re,e.sref=G,e.flatten=X,e}addComponent(...e){for(let n of e){if(!n.defaultName){et.warning("Registered component's default name is not defined",n);continue}this.le.set(rt(n.defaultName),n),this.ue.set(rt(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this._={".":pr,":":cn,"@":mn,[`${e}on`]:mn,[`${e}bind`]:cn,[`${e}html`]:Xn,[`${e}text`]:yr,[`${e}show`]:mr,[`${e}model`]:er,":style":dn,[`${e}bind:style`]:dn,":class":pn,[`${e}bind:class`]:pn,":ref":fr,":value":gr,[`${e}teleport`]:yt},this.f={for:`${e}for`,if:`${e}if`,else:`${e}else`,elseif:`${e}else-if`,pre:`${e}pre`,inherit:`${e}inherit`,text:`${e}text`,props:":props",propsOnce:":props-once",bind:`${e}bind`,on:`${e}on`,keyBind:":key",key:"key",is:":is",teleport:`${e}teleport`,dynamic:"_d_"}}updateDirectives(e){e(this._,this.f)}};l(ve,"Ae"),l(ve,"rt","Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");var ee=ve;var Ut=(t,e)=>{if(!t)return;let r=(e!=null?e:ee.getDefault()).f,o=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of Bo(t,r.pre,s))_o(i,r.text,o,s)},_o=(t,e,n,r)=>{var c;let o=t.textContent;if(!o)return;let s=n,i=o.split(s);if(i.length<=1)return;if(((c=t.parentElement)==null?void 0:c.childNodes.length)===1&&i.length===3){let p=i[1],f=br(p,r);if(f&&z(i[0])&&z(i[2])){let m=t.parentElement;m.setAttribute(e,p.substring(f.start.length,p.length-f.end.length)),m.innerText="";return}}let a=document.createDocumentFragment();for(let p of i){let f=br(p,r);if(f){let m=document.createElement("span");m.setAttribute(e,p.substring(f.start.length,p.length-f.end.length)),a.appendChild(m)}else a.appendChild(document.createTextNode(p))}t.replaceWith(a)},Bo=(t,e,n)=>{let r=[],o=s=>{var i;if(s.nodeType===Node.TEXT_NODE)n.some(a=>{var c;return(c=s.textContent)==null?void 0:c.includes(a.start)})&&r.push(s);else{if((i=s==null?void 0:s.hasAttribute)!=null&&i.call(s,e))return;for(let a of ue(s))o(a)}};return o(t),r},br=(t,e)=>e.find(n=>t.startsWith(n.start)&&t.endsWith(n.end));var Po=9,jo=10,Vo=13,$o=32,Se=46,Ht=44,Fo=39,qo=34,_t=40,qe=41,Bt=91,Pt=93,hn=63,zo=59,Tr=58,Ko=123,jt=125,gn=43,Wo=45,Er=96,Cr=47,Go=92,xr=[2,3],Rr=[gn,Wo],Nr={"-":1,"!":1,"~":1,"+":1,new:1},Mr={"=":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},Ke={"=>":2,...Mr,"||":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},Lr=Object.keys(Mr),Jo=new Set(Lr),Vt=new Set;Vt.add("=>");Lr.forEach(t=>Vt.add(t));var Qo=new Set(["$","_"]),vr={true:!0,false:!1,null:null},Xo="this";function kr(t){return Math.max(0,...Object.keys(t).map(e=>e.length))}var Yo=kr(Nr),Zo=kr(Ke),We="Expected ",ke="Unexpected ",Tn="Unclosed ",es=We+":",Sr=We+"expression",ts="missing }",ns=ke+"object property",rs=Tn+"(",wr=We+"comma",Or=ke+"token ",os=ke+"period",yn=We+"expression after ",ss="missing unaryOp argument",is=Tn+"[",as=We+"exponent (",cs="Variable names cannot start with a number (",ps=Tn+'quote after "';var ze=t=>t>=48&&t<=57,Ar=t=>Ke[t]||0,bn=class{constructor(e){l(this,"st",{0:[this.it],1:[this.at,this.pt,this.ct],2:[this.ft,this.lt,this.ut,this.Ne,this.mt],3:[this.dt,this.yt,this.ht]});l(this,"r");l(this,"e");this.r=e,this.e=0}get M(){return this.r.charAt(this.e)}get l(){return this.r.charCodeAt(this.e)}m(e){return this.r.charCodeAt(this.e)===e}U(e){let n=String.fromCharCode(e);return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!(n in Ke)||Qo.has(n)}re(e){return this.U(e)||ze(e)}i(e){return new Error(`${e} at character ${this.e}`)}k(e,n,r){let o=this.st[e];if(!o)return r;let s={node:r},i=a=>{a.call(this,s)};return n===0?o.forEach(i):o.find(i),s.node}y(){let e=this.l,n=this.r,r=this.e;for(;e===$o||e===Po||e===jo||e===Vo;)e=n.charCodeAt(++r);this.e=r}parse(){let e=this.oe();return e.length===1?e[0]:{type:0,body:e}}oe(e){let n=[];for(;this.e<this.r.length;){let r=this.l;if(r===zo||r===Ht)this.e++;else{let o=this.O();if(o)n.push(o);else if(this.e<this.r.length){if(r===e)break;throw this.i(ke+'"'+this.M+'"')}}}return n}O(){var n;let e=(n=this.k(0,1))!=null?n:this.Me();return this.y(),this.k(1,0,e)}se(){this.y();let e=this.e,n=this.r,r=n.substr(e,Zo),o=r.length;for(;o>0;){if(r in Ke&&(!this.U(this.l)||e+r.length<n.length&&!this.re(n.charCodeAt(e+r.length))))return e+=o,this.e=e,r;r=r.substr(0,--o)}return!1}Me(){let e,n,r,o,s,i,a,c;if(s=this.j(),!s||(n=this.se(),!n))return s;if(o={value:n,prec:Ar(n),right_a:Vt.has(n)},i=this.j(),!i)throw this.i(yn+n);let p=[s,o,i];for(;n=this.se();){if(r=Ar(n),r===0){this.e-=n.length;break}o={value:n,prec:r,right_a:Vt.has(n)},c=n;let f=m=>o.right_a&&m.right_a?r>m.prec:r<=m.prec;for(;p.length>2&&f(p[p.length-2]);)i=p.pop(),n=p.pop().value,s=p.pop(),e={type:8,operator:n,left:s,right:i},p.push(e);if(e=this.j(),!e)throw this.i(yn+c);p.push(o,e)}for(a=p.length-1,e=p[a];a>1;)e={type:8,operator:p[a-1].value,left:p[a-2],right:e},a-=2;return e}j(){let e,n,r;if(this.y(),r=this.k(2,1),r)return this.k(3,0,r);let o=this.l;if(ze(o)||o===Se)return this.gt();if(o===Fo||o===qo)r=this.bt();else if(o===Bt)r=this.Tt();else{for(e=this.r.substr(this.e,Yo),n=e.length;n>0;){if(Object.prototype.hasOwnProperty.call(Nr,e)&&(!this.U(this.l)||this.e+e.length<this.r.length&&!this.re(this.r.charCodeAt(this.e+e.length)))){this.e+=n;let s=this.j();if(!s)throw this.i(ss);return this.k(3,0,{type:7,operator:e,argument:s})}e=e.substr(0,--n)}this.U(o)?(r=this.ie(),r.name in vr?r={type:4,value:vr[r.name],raw:r.name}:r.name===Xo&&(r={type:5})):o===_t&&(r=this.xt())}return r?(r=this.$(r),this.k(3,0,r)):this.k(3,0,!1)}$(e){this.y();let n=this.l;for(;n===Se||n===Bt||n===_t||n===hn;){let r;if(n===hn){if(this.r.charCodeAt(this.e+1)!==Se)break;r=!0,this.e+=2,this.y(),n=this.l}if(this.e++,n===Bt){if(e={type:3,computed:!0,object:e,property:this.O()},this.y(),n=this.l,n!==Pt)throw this.i(is);this.e++}else n===_t?e={type:6,arguments:this.ke(qe),callee:e}:(n===Se||r)&&(r&&this.e--,this.y(),e={type:3,computed:!1,object:e,property:this.ie()});r&&(e.optional=!0),this.y(),n=this.l}return e}gt(){let e="",n;for(;ze(this.l);)e+=this.r.charAt(this.e++);if(this.m(Se))for(e+=this.r.charAt(this.e++);ze(this.l);)e+=this.r.charAt(this.e++);if(n=this.M,n==="e"||n==="E"){for(e+=this.r.charAt(this.e++),n=this.M,(n==="+"||n==="-")&&(e+=this.r.charAt(this.e++));ze(this.l);)e+=this.r.charAt(this.e++);if(!ze(this.r.charCodeAt(this.e-1)))throw this.i(as+e+this.M+")")}let r=this.l;if(this.U(r))throw this.i(cs+e+this.M+")");if(r===Se||e.length===1&&e.charCodeAt(0)===Se)throw this.i(os);return{type:4,value:parseFloat(e),raw:e}}bt(){let e="",n=this.e,r=this.r.charAt(this.e++),o=!1;for(;this.e<this.r.length;){let s=this.r.charAt(this.e++);if(s===r){o=!0;break}else if(s==="\\")switch(s=this.r.charAt(this.e++),s){case"n":e+=`
|
|
2
2
|
`;break;case"r":e+="\r";break;case"t":e+=" ";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=s}else e+=s}if(!o)throw this.i(ps+e+'"');return{type:4,value:e,raw:this.r.substring(n,this.e)}}ie(){let e=this.l,n=this.e;if(this.U(e))this.e++;else throw this.i(ke+this.M);for(;this.e<this.r.length&&(e=this.l,this.re(e));)this.e++;return{type:2,name:this.r.slice(n,this.e)}}ke(e){let n=[],r=!1,o=0;for(;this.e<this.r.length;){this.y();let s=this.l;if(s===e){if(r=!0,this.e++,e===qe&&o&&o>=n.length)throw this.i(Or+String.fromCharCode(e));break}else if(s===Ht){if(this.e++,o++,o!==n.length){if(e===qe)throw this.i(Or+",");if(e===Pt)for(let i=n.length;i<o;i++)n.push(null)}}else{if(n.length!==o&&o!==0)throw this.i(wr);{let i=this.O();if(!i||i.type===0)throw this.i(wr);n.push(i)}}}if(!r)throw this.i(We+String.fromCharCode(e));return n}xt(){this.e++;let e=this.oe(qe);if(this.m(qe))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.i(rs)}Tt(){return this.e++,{type:9,elements:this.ke(Pt)}}ft(e){if(this.m(Ko)){this.e++;let n=[];for(;!isNaN(this.l);){if(this.y(),this.m(jt)){this.e++,e.node=this.$({type:10,properties:n});return}let r=this.O();if(!r)break;if(this.y(),r.type===2&&(this.m(Ht)||this.m(jt)))n.push({type:12,computed:!1,key:r,value:r,shorthand:!0});else if(this.m(Tr)){this.e++;let o=this.O();if(!o)throw this.i(ns);let s=r.type===9;n.push({type:12,computed:s,key:s?r.elements[0]:r,value:o,shorthand:!1}),this.y()}else r&&n.push(r);this.m(Ht)&&this.e++}throw this.i(ts)}}lt(e){let n=this.l;if(Rr.some(r=>r===n&&r===this.r.charCodeAt(this.e+1))){this.e+=2;let r=e.node={type:13,operator:n===gn?"++":"--",argument:this.$(this.ie()),prefix:!0};if(!r.argument||!xr.includes(r.argument.type))throw this.i(ke+r.operator)}}yt(e){if(e.node){let n=this.l;if(Rr.some(r=>r===n&&r===this.r.charCodeAt(this.e+1))){if(!xr.includes(e.node.type))throw this.i(ke+e.node.operator);this.e+=2,e.node={type:13,operator:n===gn?"++":"--",argument:e.node,prefix:!1}}}}ut(e){[0,1,2].every(n=>this.r.charCodeAt(this.e+n)===Se)&&(this.e+=3,e.node={type:14,argument:this.O()})}ct(e){if(e.node&&this.m(hn)){this.e++;let n=e.node,r=this.O();if(!r)throw this.i(Sr);if(this.y(),this.m(Tr)){this.e++;let o=this.O();if(!o)throw this.i(Sr);if(e.node={type:11,test:n,consequent:r,alternate:o},n.operator&&Ke[n.operator]<=.9){let s=n;for(;s.right.operator&&Ke[s.right.operator]<=.9;)s=s.right;e.node.test=s.right,s.right=e.node,e.node=n}}else throw this.i(es)}}it(e){if(this.y(),this.m(_t)){let n=this.e;if(this.e++,this.y(),this.m(qe)){this.e++;let r=this.se();if(r==="=>"){let o=this.Me();if(!o)throw this.i(yn+r);e.node={type:15,params:null,body:o};return}}this.e=n}}at(e){this.Le(e.node)}Le(e){e&&(Object.values(e).forEach(n=>{n&&typeof n=="object"&&this.Le(n)}),e.operator==="=>"&&(e.type=15,e.params=e.left?[e.left]:null,e.body=e.right,e.params&&e.params[0].type===1&&(e.params=e.params[0].expressions),delete e.left,delete e.right,delete e.operator))}pt(e){e.node&&this.F(e.node)}F(e){Jo.has(e.operator)?(e.type=16,this.F(e.left),this.F(e.right)):e.operator||Object.values(e).forEach(n=>{n&&typeof n=="object"&&this.F(n)})}ht(e){if(!e.node)return;let n=e.node.type;(n===2||n===3)&&this.m(Er)&&(e.node={type:17,tag:e.node,quasi:this.Ne(e)})}Ne(e){if(!this.m(Er))return;let n={type:19,quasis:[],expressions:[]},r="",o="",s=!1,i=this.r.length,a=()=>n.quasis.push({type:18,value:{raw:o,cooked:r},tail:s});for(;this.e<i;){let c=this.r.charAt(++this.e);if(c==="`")return this.e+=1,s=!0,a(),e.node=n,n;if(c==="$"&&this.r.charAt(this.e+1)==="{"){if(this.e+=2,a(),o="",r="",n.expressions.push(...this.oe(jt)),!this.m(jt))throw this.i("unclosed ${")}else if(c==="\\")switch(o+=c,c=this.r.charAt(++this.e),o+=c,c){case"n":r+=`
|
|
3
|
-
`;break;case"r":r+="\r";break;case"t":r+=" ";break;case"b":r+="\b";break;case"f":r+="\f";break;case"v":r+="\v";break;default:r+=c}else r+=c,o+=c}throw this.i("Unclosed `")}dt(e){var o;let n=e.node;if(!n||n.operator!=="new"||!n.argument)return;if(!n.argument||![6,3].includes(n.argument.type))throw this.i("Expected new function()");e.node=n.argument;let r=e.node;for(;r.type===3||r.type===6&&((o=r==null?void 0:r.callee)==null?void 0:o.type)===3;)r=r.type===3?r.object:r.callee.object;r.type=20}mt(e){if(!this.m(Cr))return;let n=++this.e,r=!1;for(;this.e<this.r.length;){if(this.l===Cr&&!r){let o=this.r.slice(n,this.e),s="";for(;++this.e<this.r.length;){let a=this.l;if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)s+=this.M;else break}let i;try{i=new RegExp(o,s)}catch(a){throw this.i(a.message)}return e.node={type:4,value:i,raw:this.r.slice(n-1,this.e)},e.node=this.$(e.node),e.node}this.m(Bt)?r=!0:r&&this.m(Pt)&&(r=!1),this.e+=this.m(Go)?2:1}throw this.i("Unclosed Regex")}},Ir=t=>new bn(t).parse();var fs={"=>":(t,e)=>{},"=":(t,e)=>{},"*=":(t,e)=>{},"**=":(t,e)=>{},"/=":(t,e)=>{},"%=":(t,e)=>{},"+=":(t,e)=>{},"-=":(t,e)=>{},"<<=":(t,e)=>{},">>=":(t,e)=>{},">>>=":(t,e)=>{},"&=":(t,e)=>{},"^=":(t,e)=>{},"|=":(t,e)=>{},"||":(t,e)=>t()||e(),"??":(t,e)=>{var n;return(n=t())!=null?n:e()},"&&":(t,e)=>t()&&e(),"|":(t,e)=>t|e,"^":(t,e)=>t^e,"&":(t,e)=>t&e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,in:(t,e)=>t in e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"**":(t,e)=>t**e},ms={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},_r=t=>{if(!(t!=null&&t.some(Hr)))return t;let e=[];return t.forEach(n=>Hr(n)?e.push(...n):e.push(n)),e},Dr=(...t)=>_r(t),En=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},ls={"++":(t,e)=>{let n=t[e];if(y(n)){let r=n();return n(++r),r}return++t[e]},"--":(t,e)=>{let n=t[e];if(y(n)){let r=n();return n(--r),r}return--t[e]}},us={"++":(t,e)=>{let n=t[e];if(y(n)){let r=n();return n(r+1),r}return t[e]++},"--":(t,e)=>{let n=t[e];if(y(n)){let r=n();return n(r-1),r}return t[e]--}},Ur={"=":(t,e,n)=>{let r=t[e];return y(r)?r(n):t[e]=n},"+=":(t,e,n)=>{let r=t[e];return y(r)?r(r()+n):t[e]+=n},"-=":(t,e,n)=>{let r=t[e];return y(r)?r(r()-n):t[e]-=n},"*=":(t,e,n)=>{let r=t[e];return y(r)?r(r()*n):t[e]*=n},"/=":(t,e,n)=>{let r=t[e];return y(r)?r(r()/n):t[e]/=n},"%=":(t,e,n)=>{let r=t[e];return y(r)?r(r()%n):t[e]%=n},"**=":(t,e,n)=>{let r=t[e];return y(r)?r(r()**n):t[e]**=n},"<<=":(t,e,n)=>{let r=t[e];return y(r)?r(r()<<n):t[e]<<=n},">>=":(t,e,n)=>{let r=t[e];return y(r)?r(r()>>n):t[e]>>=n},">>>=":(t,e,n)=>{let r=t[e];return y(r)?r(r()>>>n):t[e]>>>=n},"|=":(t,e,n)=>{let r=t[e];return y(r)?r(r()|n):t[e]|=n},"&=":(t,e,n)=>{let r=t[e];return y(r)?r(r()&n):t[e]&=n},"^=":(t,e,n)=>{let r=t[e];return y(r)?r(r()^n):t[e]^=n}},$t=(t,e)=>P(t)?t.bind(e):t,Cn=class{constructor(e,n,r,o,s){l(this,"u");l(this,"Ve");l(this,"Ie");l(this,"De");l(this,"A");l(this,"Ue");l(this,"Be");this.u=T(e)?e:[e],this.Ve=n,this.Ie=r,this.De=o,this.Be=!!s}Pe(e,n){if(n&&e in n)return n;for(let r of this.u)if(e in r)return r}2(e,n,r){let o=e.name;if(o==="$root")return this.u[this.u.length-1];if(o==="$parent")return this.u[1];if(o==="$ctx")return[...this.u];if(r&&o in r)return this.A=r[o],$t(D(r[o]),r);for(let i of this.u)if(o in i)return this.A=i[o],$t(D(i[o]),i);let s=this.Ve;if(s&&o in s)return this.A=s[o],$t(D(s[o]),s)}5(e,n,r){return this.u[0]}0(e,n,r){return this.He(n,r,Dr,...e.body)}1(e,n,r){return this.R(n,r,(...o)=>o.pop(),...e.expressions)}3(e,n,r){let{obj:o,key:s}=this.ae(e,n,r),i=o==null?void 0:o[s];return this.A=i,$t(D(i),o)}4(e,n,r){return e.value}6(e,n,r){let o=(i,...a)=>P(i)?i(..._r(a)):i,s=this.R(++n,r,o,e.callee,...e.arguments);return this.A=s,s}7(e,n,r){return this.R(n,r,ms[e.operator],e.argument)}8(e,n,r){let o=fs[e.operator];switch(e.operator){case"||":case"&&":case"??":return o(()=>this.g(e.left,n,r),()=>this.g(e.right,n,r))}return this.R(n,r,o,e.left,e.right)}9(e,n,r){return this.He(++n,r,Dr,...e.elements)}10(e,n,r){let o={},s=(...i)=>{i.forEach(a=>{Object.assign(o,a)})};return this.R(++n,r,s,...e.properties),o}11(e,n,r){return this.R(n,r,o=>this.g(o?e.consequent:e.alternate,n,r),e.test)}12(e,n,r){var f;let o={},s=m=>(m==null?void 0:m.type)!==15,i=(f=this.De)!=null?f:()=>!1,a=n===0&&this.Be,c=m=>this._e(a,e.key,n,En(m,r)),p=m=>this._e(a,e.value,n,En(m,r));if(e.shorthand){let m=e.key.name;o[m]=s(e.key)&&i(m,n)?c:c()}else if(e.computed){let m=D(c());o[m]=s(e.value)&&i(m,n)?p:p()}else{let m=e.key.type===4?e.key.value:e.key.name;o[m]=s(e.value)&&i(m,n)?()=>p:p()}return o}ae(e,n,r){let o=this.g(e.object,n,r),s=e.computed?this.g(e.property,n,r):e.property.name;return{obj:o,key:s}}13(e,n,r){let o=e.argument,s=e.operator,i=e.prefix?ls:us;if(o.type===2){let a=o.name,c=this.Pe(a,r);return ne(c)?void 0:i[s](c,a)}if(o.type===3){let{obj:a,key:c}=this.ae(o,n,r);return i[s](a,c)}}16(e,n,r){let o=e.left,s=e.operator;if(o.type===2){let i=o.name,a=this.Pe(i,r);if(ne(a))return;let c=this.g(e.right,n,r);return Ur[s](a,i,c)}if(o.type===3){let{obj:i,key:a}=this.ae(o,n,r),c=this.g(e.right,n,r);return Ur[s](i,a,c)}}14(e,n,r){let o=this.g(e.argument,n,r);return T(o)&&(o.s=Br),o}17(e,n,r){return this[6]({type:6,callee:e.tag,arguments:[{type:9,elements:e.quasi.quasis},...e.quasi.expressions]},n,r)}19(e,n,r){let o=(...s)=>s.reduce((i,a,c)=>i+=a+e.quasis[c+1].value.cooked,e.quasis[0].value.cooked);return this.R(n,r,o,...e.expressions)}18(e,n,r){return e.value.cooked}20(e,n,r){let o=(s,...i)=>new s(...i);return this.R(n,r,o,e.callee,...e.arguments)}15(e,n,r){return(...o)=>{let s=Object.create(r!=null?r:{}),i=e.params;if(i){let a=0;for(let c of i)s[c.name]=o[a++]}return this.g(e.body,n,s)}}g(e,n,r){let o=D(this[e.type](e,n,r));return this.Ue=e.type,o}_e(e,n,r,o){let s=this.g(n,r,o);return e&&this.je()?this.A:s}je(){let e=this.Ue;return(e===2||e===3||e===6)&&y(this.A)}eval(e,n){let{value:r,refs:o}=vt(()=>this.g(e,-1,n)),s={value:r,refs:o};return this.je()&&(s.ref=this.A),s}R(e,n,r,...o){let s=o.map(i=>i&&this.g(i,e,n));return r(...s)}He(e,n,r,...o){let s=this.Ie;if(!s)return this.R(e,n,r,...o);let i=o.map((a,c)=>a&&(a.type!==15&&s(c,e)?p=>this.g(a,e,En(p,n)):this.g(a,e,n)));return r(...i)}},Br=Symbol("s"),Hr=t=>(t==null?void 0:t.s)===Br,Pr=(t,e,n,r,o,s,i)=>new Cn(e,n,r,o,i).eval(t,s);var jr={},Ft=class{constructor(e,n){l(this,"u");l(this,"o");l(this,"$e",[]);this.u=e,this.o=n}S(e){this.u=[e,...this.u]}me(){return this.u.map(n=>n.components).filter(n=>!!n).reverse().reduce((n,r)=>{for(let[o,s]of Object.entries(r))n[o.toUpperCase()]=s;return n},{})}ze(){let e=[],n=new Set,r=this.u.map(o=>o.components).filter(o=>!!o).reverse();for(let o of r)for(let s of Object.keys(o))n.has(s)||(n.add(s),e.push(s));return e}C(e,n,r,o,s){var h;let i=G([]),a=[],c=()=>{for(let d of a)d();a.length=0},p={value:i,stop:c,refs:[],context:this.u[0]};if(z(e))return p;let f=this.o.globalContext,m=[],u=(d,x,U,E)=>{try{let b=Pr(d,x,f,n,r,E,o);return U&&m.push(...b.refs),{value:b.value,refs:b.refs,ref:b.ref}}catch(b){M(6,`evaluation error: ${e}`,b)}return{value:void 0,refs:[]}};try{let d=(h=jr[e])!=null?h:Ir("["+e+"]");jr[e]=d;let x=this.u,U=()=>{m.splice(0),c();let E=d.elements.map((b,L)=>n!=null&&n(L,-1)?{value:H=>u(b,x,!1,{$event:H}).value,refs:[]}:u(b,x,!0));if(!s)for(let b of m){let L=w(b,U);a.push(L)}i(E.map(b=>b.value)),p.refs=E.map(b=>b.ref)};U()}catch(d){M(6,`parse error: ${e}`,d)}return p}V(){return this.u}te(e){this.$e.push(this.u),this.u=e}v(e,n){try{this.te(e),n()}finally{this.Et()}}Et(){var e;this.u=(e=this.$e.pop())!=null?e:[]}};var ds="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",hs=new Set(ds.toUpperCase().split(",")),ys="http://www.w3.org/2000/svg",Vr=(t,e)=>{pe(t)?t.content.appendChild(e):t.appendChild(e)},xn=(t,e,n,r)=>{var i;let o=t.t;if(o){let a=n&&hs.has(o.toUpperCase())?document.createElementNS(ys,o.toLowerCase()):document.createElement(o),c=t.a;if(c)for(let f of Object.entries(c)){let m=f[0],u=f[1];m.startsWith("#")&&(u=m.substring(1),m="name"),a.setAttribute(ht(m,r),u)}let p=t.c;if(p)for(let f of p)xn(f,a,n,r);Vr(e,a);return}let s=t.d;if(s){let a;switch((i=t.n)!=null?i:Node.TEXT_NODE){case Node.COMMENT_NODE:a=document.createComment(s);break;case Node.TEXT_NODE:a=document.createTextNode(s);break}if(a)Vr(e,a);else throw new Error("unsupported node type.")}},Ie=(t,e,n)=>{n!=null||(n=ee.getDefault());let r=document.createDocumentFragment();if(!T(t))return xn(t,r,!!e,n),r;for(let o of t)xn(o,r,!!e,n);return r};var $r=(t,e={selector:"#app"},n)=>{j(e)&&(e={selector:"#app",template:e}),Vn(t)&&(t=t.context);let r=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!r||!Ae(r))throw I(0);n||(n=ee.getDefault());let o=()=>{for(let a of[...r.childNodes])F(a)},s=a=>{for(let c of a)r.appendChild(c)};if(e.template){let a=document.createRange().createContextualFragment(e.template);o(),s(a.childNodes),e.element=a}else if(e.json){let a=Ie(e.json,e.isSVG,n);o(),s(a.childNodes)}return n.useInterpolation&&Ut(r,n),new Rn(t,r,n).x(),_(r,()=>{be(t)}),gt(t),{context:t,unmount:()=>{F(r)},unbind:()=>{ae(r)}}},Rn=class{constructor(e,n,r){l(this,"Rt");l(this,"Fe");l(this,"o");l(this,"h");l(this,"p");this.Rt=e,this.Fe=n,this.o=r,this.h=new Ft([e],r),this.p=new Mt(this.h)}x(){this.p.G(this.Fe)}};var Ge=t=>{if(T(t))return t.map(o=>Ge(o));let e={};if(t.tagName)e.t=t.tagName;else return t.nodeType===Node.COMMENT_NODE&&(e.n=Node.COMMENT_NODE),t.textContent&&(e.d=t.textContent),e;let n=t.getAttributeNames();n.length>0&&(e.a=Object.fromEntries(n.map(o=>{var s;return[o,(s=t.getAttribute(o))!=null?s:""]})));let r=ue(t);return r.length>0&&(e.c=[...r].map(o=>Ge(o))),e};var Fr=(t,e={})=>{var s,i,a,c,p,f;T(e)&&(e={props:e}),j(t)&&(t={template:t});let n=(s=e.context)!=null?s:()=>({}),r=!1;if(t.element){let m=t.element;m.remove(),t.element=m}else if(t.selector){let m=document.querySelector(t.selector);if(!m)throw I(1,t.selector);m.remove(),t.element=m}else if(t.template){let m=document.createRange().createContextualFragment(t.template);t.element=m}else t.json&&(t.element=Ie(t.json,t.isSVG,e.config),r=!0);t.element||(t.element=document.createDocumentFragment()),((i=e.useInterpolation)==null||i)&&Ut(t.element,(a=e.config)!=null?a:ee.getDefault());let o=t.element;if(!r&&(((p=t.isSVG)!=null?p:nt(o)&&((c=o.hasAttribute)!=null&&c.call(o,"isSVG")))||nt(o)&&o.querySelector("[isSVG]"))){let m=o.content,u=m?[...m.childNodes]:[...o.childNodes],h=Ge(u);t.element=Ie(h,!0,e.config)}return{context:n,template:t.element,inheritAttrs:(f=e.inheritAttrs)!=null?f:!0,props:e.props,defaultName:e.defaultName}};var qr=t=>{var e;(e=Oe())==null||e.onMounted.push(t)};var zr=t=>{let e,n={},r=(...o)=>{if(o.length<=2&&0 in o)throw I(4);return e&&!n.isStopped?e(...o):(e=gs(t,n),e(...o))};return r[Q]=1,xe(r,!0),r.stop=()=>{var o,s;return(s=(o=n.ref)==null?void 0:o.stop)==null?void 0:s.call(o)},J(()=>r.stop(),!0),r},gs=(t,e)=>{var s;let n=(s=e.ref)!=null?s:G(null);e.ref=n,e.isStopped=!1;let r=0,o=Me(()=>{if(r>0){o(),e.isStopped=!0,K(n);return}n(t()),++r});return n.stop=o,n};var Kr=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw I(4);return r&&!n.isStopped?r(...s):(r=bs(t,e,n),r(...s))};return o[Q]=1,xe(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},J(()=>o.stop(),!0),o},bs=(t,e,n)=>{var a;let r=(a=n.ref)!=null?a:G(null);n.ref=r,n.isStopped=!1;let o=0,s=c=>{if(o>0){r.stop(),n.isStopped=!0,K(r);return}r(e(...t.map(p=>p()))),++o},i=[];for(let c of t){let p=w(c,s);i.push(p)}return s(null),r.stop=()=>{i.forEach(c=>{c()})},r};var Wr=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw I(4);return r&&!n.isStopped?r(...s):(r=Ts(t,e,n),r(...s))};return o[Q]=1,xe(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},J(()=>o.stop(),!0),o},Ts=(t,e,n)=>{var s;let r=(s=n.ref)!=null?s:G(null);n.ref=r,n.isStopped=!1;let o=0;return r.stop=w(t,i=>{if(o>0){r.stop(),n.isStopped=!0,K(r);return}r(e(i)),++o},!0),r};var Gr=t=>(t[mt]=1,t);var Jr=(t,e)=>{if(!e)throw I(5);let r=Le(t)?Re:a=>a,o=()=>localStorage.setItem(e,JSON.stringify(X(t()))),s=localStorage.getItem(e);if(s!=null)try{t(r(JSON.parse(s)))}catch(a){M(6,`persist: failed to parse data for key ${e}`,a),o()}else o();let i=Me(o);return J(i,!0),t};var vn=(t,...e)=>{let n="",r=t,o=e,s=r.length,i=o.length;for(let a=0;a<s;++a)n+=r[a],a<i&&(n+=o[a]);return n},Qr=vn;var Xr=(t,e,n)=>{let r=[],o=()=>{e(t.map(i=>i()))};for(let i of t)r.push(w(i,o));n&&o();let s=()=>{for(let i of r)i()};return J(s,!0),s};var Yr=t=>{if(!y(t))throw I(3,"observerCount");return t(void 0,void 0,2)};var Zr=t=>{Sn();try{t()}finally{wn()}},Sn=()=>{fe.stack||(fe.stack=[]),fe.stack.push(new Set)},wn=()=>{let t=fe.stack;if(!t||t.length===0)return;let e=t.pop();if(t.length){let n=t[t.length-1];for(let r of e)n.add(r);return}delete fe.stack;for(let n of e)try{K(n)}catch(r){console.error(r)}};
|
|
3
|
+
`;break;case"r":r+="\r";break;case"t":r+=" ";break;case"b":r+="\b";break;case"f":r+="\f";break;case"v":r+="\v";break;default:r+=c}else r+=c,o+=c}throw this.i("Unclosed `")}dt(e){var o;let n=e.node;if(!n||n.operator!=="new"||!n.argument)return;if(!n.argument||![6,3].includes(n.argument.type))throw this.i("Expected new function()");e.node=n.argument;let r=e.node;for(;r.type===3||r.type===6&&((o=r==null?void 0:r.callee)==null?void 0:o.type)===3;)r=r.type===3?r.object:r.callee.object;r.type=20}mt(e){if(!this.m(Cr))return;let n=++this.e,r=!1;for(;this.e<this.r.length;){if(this.l===Cr&&!r){let o=this.r.slice(n,this.e),s="";for(;++this.e<this.r.length;){let a=this.l;if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)s+=this.M;else break}let i;try{i=new RegExp(o,s)}catch(a){throw this.i(a.message)}return e.node={type:4,value:i,raw:this.r.slice(n-1,this.e)},e.node=this.$(e.node),e.node}this.m(Bt)?r=!0:r&&this.m(Pt)&&(r=!1),this.e+=this.m(Go)?2:1}throw this.i("Unclosed Regex")}},Ir=t=>new bn(t).parse();var fs={"=>":(t,e)=>{},"=":(t,e)=>{},"*=":(t,e)=>{},"**=":(t,e)=>{},"/=":(t,e)=>{},"%=":(t,e)=>{},"+=":(t,e)=>{},"-=":(t,e)=>{},"<<=":(t,e)=>{},">>=":(t,e)=>{},">>>=":(t,e)=>{},"&=":(t,e)=>{},"^=":(t,e)=>{},"|=":(t,e)=>{},"||":(t,e)=>t()||e(),"??":(t,e)=>{var n;return(n=t())!=null?n:e()},"&&":(t,e)=>t()&&e(),"|":(t,e)=>t|e,"^":(t,e)=>t^e,"&":(t,e)=>t&e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,in:(t,e)=>t in e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"**":(t,e)=>t**e},ms={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},_r=t=>{if(!(t!=null&&t.some(Hr)))return t;let e=[];return t.forEach(n=>Hr(n)?e.push(...n):e.push(n)),e},Dr=(...t)=>_r(t),En=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},ls={"++":(t,e)=>{let n=t[e];if(g(n)){let r=n();return n(++r),r}return++t[e]},"--":(t,e)=>{let n=t[e];if(g(n)){let r=n();return n(--r),r}return--t[e]}},us={"++":(t,e)=>{let n=t[e];if(g(n)){let r=n();return n(r+1),r}return t[e]++},"--":(t,e)=>{let n=t[e];if(g(n)){let r=n();return n(r-1),r}return t[e]--}},Ur={"=":(t,e,n)=>{let r=t[e];return g(r)?r(n):t[e]=n},"+=":(t,e,n)=>{let r=t[e];return g(r)?r(r()+n):t[e]+=n},"-=":(t,e,n)=>{let r=t[e];return g(r)?r(r()-n):t[e]-=n},"*=":(t,e,n)=>{let r=t[e];return g(r)?r(r()*n):t[e]*=n},"/=":(t,e,n)=>{let r=t[e];return g(r)?r(r()/n):t[e]/=n},"%=":(t,e,n)=>{let r=t[e];return g(r)?r(r()%n):t[e]%=n},"**=":(t,e,n)=>{let r=t[e];return g(r)?r(r()**n):t[e]**=n},"<<=":(t,e,n)=>{let r=t[e];return g(r)?r(r()<<n):t[e]<<=n},">>=":(t,e,n)=>{let r=t[e];return g(r)?r(r()>>n):t[e]>>=n},">>>=":(t,e,n)=>{let r=t[e];return g(r)?r(r()>>>n):t[e]>>>=n},"|=":(t,e,n)=>{let r=t[e];return g(r)?r(r()|n):t[e]|=n},"&=":(t,e,n)=>{let r=t[e];return g(r)?r(r()&n):t[e]&=n},"^=":(t,e,n)=>{let r=t[e];return g(r)?r(r()^n):t[e]^=n}},$t=(t,e)=>_(t)?t.bind(e):t,Cn=class{constructor(e,n,r,o,s){l(this,"u");l(this,"Ve");l(this,"Ie");l(this,"De");l(this,"A");l(this,"Ue");l(this,"Be");this.u=T(e)?e:[e],this.Ve=n,this.Ie=r,this.De=o,this.Be=!!s}Pe(e,n){if(n&&e in n)return n;for(let r of this.u)if(e in r)return r}2(e,n,r){let o=e.name;if(o==="$root")return this.u[this.u.length-1];if(o==="$parent")return this.u[1];if(o==="$ctx")return[...this.u];if(r&&o in r)return this.A=r[o],$t(j(r[o]),r);for(let i of this.u)if(o in i)return this.A=i[o],$t(j(i[o]),i);let s=this.Ve;if(s&&o in s)return this.A=s[o],$t(j(s[o]),s)}5(e,n,r){return this.u[0]}0(e,n,r){return this.He(n,r,Dr,...e.body)}1(e,n,r){return this.R(n,r,(...o)=>o.pop(),...e.expressions)}3(e,n,r){let{obj:o,key:s}=this.ae(e,n,r),i=o==null?void 0:o[s];return this.A=i,$t(j(i),o)}4(e,n,r){return e.value}6(e,n,r){let o=(i,...a)=>_(i)?i(..._r(a)):i,s=this.R(++n,r,o,e.callee,...e.arguments);return this.A=s,s}7(e,n,r){return this.R(n,r,ms[e.operator],e.argument)}8(e,n,r){let o=fs[e.operator];switch(e.operator){case"||":case"&&":case"??":return o(()=>this.g(e.left,n,r),()=>this.g(e.right,n,r))}return this.R(n,r,o,e.left,e.right)}9(e,n,r){return this.He(++n,r,Dr,...e.elements)}10(e,n,r){let o={},s=(...i)=>{i.forEach(a=>{Object.assign(o,a)})};return this.R(++n,r,s,...e.properties),o}11(e,n,r){return this.R(n,r,o=>this.g(o?e.consequent:e.alternate,n,r),e.test)}12(e,n,r){var f;let o={},s=m=>(m==null?void 0:m.type)!==15,i=(f=this.De)!=null?f:()=>!1,a=n===0&&this.Be,c=m=>this._e(a,e.key,n,En(m,r)),p=m=>this._e(a,e.value,n,En(m,r));if(e.shorthand){let m=e.key.name;o[m]=s(e.key)&&i(m,n)?c:c()}else if(e.computed){let m=j(c());o[m]=s(e.value)&&i(m,n)?p:p()}else{let m=e.key.type===4?e.key.value:e.key.name;o[m]=s(e.value)&&i(m,n)?()=>p:p()}return o}ae(e,n,r){let o=this.g(e.object,n,r),s=e.computed?this.g(e.property,n,r):e.property.name;return{obj:o,key:s}}13(e,n,r){let o=e.argument,s=e.operator,i=e.prefix?ls:us;if(o.type===2){let a=o.name,c=this.Pe(a,r);return ne(c)?void 0:i[s](c,a)}if(o.type===3){let{obj:a,key:c}=this.ae(o,n,r);return i[s](a,c)}}16(e,n,r){let o=e.left,s=e.operator;if(o.type===2){let i=o.name,a=this.Pe(i,r);if(ne(a))return;let c=this.g(e.right,n,r);return Ur[s](a,i,c)}if(o.type===3){let{obj:i,key:a}=this.ae(o,n,r),c=this.g(e.right,n,r);return Ur[s](i,a,c)}}14(e,n,r){let o=this.g(e.argument,n,r);return T(o)&&(o.s=Br),o}17(e,n,r){return this[6]({type:6,callee:e.tag,arguments:[{type:9,elements:e.quasi.quasis},...e.quasi.expressions]},n,r)}19(e,n,r){let o=(...s)=>s.reduce((i,a,c)=>i+=a+e.quasis[c+1].value.cooked,e.quasis[0].value.cooked);return this.R(n,r,o,...e.expressions)}18(e,n,r){return e.value.cooked}20(e,n,r){let o=(s,...i)=>new s(...i);return this.R(n,r,o,e.callee,...e.arguments)}15(e,n,r){return(...o)=>{let s=Object.create(r!=null?r:{}),i=e.params;if(i){let a=0;for(let c of i)s[c.name]=o[a++]}return this.g(e.body,n,s)}}g(e,n,r){let o=j(this[e.type](e,n,r));return this.Ue=e.type,o}_e(e,n,r,o){let s=this.g(n,r,o);return e&&this.je()?this.A:s}je(){let e=this.Ue;return(e===2||e===3||e===6)&&g(this.A)}eval(e,n){let{value:r,refs:o}=vt(()=>this.g(e,-1,n)),s={value:r,refs:o};return this.je()&&(s.ref=this.A),s}R(e,n,r,...o){let s=o.map(i=>i&&this.g(i,e,n));return r(...s)}He(e,n,r,...o){let s=this.Ie;if(!s)return this.R(e,n,r,...o);let i=o.map((a,c)=>a&&(a.type!==15&&s(c,e)?p=>this.g(a,e,En(p,n)):this.g(a,e,n)));return r(...i)}},Br=Symbol("s"),Hr=t=>(t==null?void 0:t.s)===Br,Pr=(t,e,n,r,o,s,i)=>new Cn(e,n,r,o,i).eval(t,s);var jr={},Ft=class{constructor(e,n){l(this,"u");l(this,"o");l(this,"$e",[]);this.u=e,this.o=n}S(e){this.u=[e,...this.u]}me(){return this.u.map(n=>n.components).filter(n=>!!n).reverse().reduce((n,r)=>{for(let[o,s]of Object.entries(r))n[o.toUpperCase()]=s;return n},{})}ze(){let e=[],n=new Set,r=this.u.map(o=>o.components).filter(o=>!!o).reverse();for(let o of r)for(let s of Object.keys(o))n.has(s)||(n.add(s),e.push(s));return e}C(e,n,r,o,s){var h;let i=G([]),a=[],c=()=>{for(let d of a)d();a.length=0},p={value:i,stop:c,refs:[],context:this.u[0]};if(z(e))return p;let f=this.o.globalContext,m=[],u=(d,x,D,E)=>{try{let b=Pr(d,x,f,n,r,E,o);return D&&m.push(...b.refs),{value:b.value,refs:b.refs,ref:b.ref}}catch(b){M(6,`evaluation error: ${e}`,b)}return{value:void 0,refs:[]}};try{let d=(h=jr[e])!=null?h:Ir("["+e+"]");jr[e]=d;let x=this.u,D=()=>{m.splice(0),c();let E=d.elements.map((b,L)=>n!=null&&n(L,-1)?{value:U=>u(b,x,!1,{$event:U}).value,refs:[]}:u(b,x,!0));if(!s)for(let b of m){let L=w(b,D);a.push(L)}i(E.map(b=>b.value)),p.refs=E.map(b=>b.ref)};D()}catch(d){M(6,`parse error: ${e}`,d)}return p}V(){return this.u}te(e){this.$e.push(this.u),this.u=e}v(e,n){try{this.te(e),n()}finally{this.Et()}}Et(){var e;this.u=(e=this.$e.pop())!=null?e:[]}};var ds="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",hs=new Set(ds.toUpperCase().split(",")),ys="http://www.w3.org/2000/svg",Vr=(t,e)=>{pe(t)?t.content.appendChild(e):t.appendChild(e)},xn=(t,e,n,r)=>{var i;let o=t.t;if(o){let a=n&&hs.has(o.toUpperCase())?document.createElementNS(ys,o.toLowerCase()):document.createElement(o),c=t.a;if(c)for(let f of Object.entries(c)){let m=f[0],u=f[1];m.startsWith("#")&&(u=m.substring(1),m="name"),a.setAttribute(ht(m,r),u)}let p=t.c;if(p)for(let f of p)xn(f,a,n,r);Vr(e,a);return}let s=t.d;if(s){let a;switch((i=t.n)!=null?i:Node.TEXT_NODE){case Node.COMMENT_NODE:a=document.createComment(s);break;case Node.TEXT_NODE:a=document.createTextNode(s);break}if(a)Vr(e,a);else throw new Error("unsupported node type.")}},Ie=(t,e,n)=>{n!=null||(n=ee.getDefault());let r=document.createDocumentFragment();if(!T(t))return xn(t,r,!!e,n),r;for(let o of t)xn(o,r,!!e,n);return r};var $r=(t,e={selector:"#app"},n)=>{B(e)&&(e={selector:"#app",template:e}),Vn(t)&&(t=t.context);let r=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!r||!Ae(r))throw I(0);n||(n=ee.getDefault());let o=()=>{for(let a of[...r.childNodes])V(a)},s=a=>{for(let c of a)r.appendChild(c)};if(e.template){let a=document.createRange().createContextualFragment(e.template);o(),s(a.childNodes),e.element=a}else if(e.json){let a=Ie(e.json,e.isSVG,n);o(),s(a.childNodes)}return n.useInterpolation&&Ut(r,n),new Rn(t,r,n).x(),H(r,()=>{be(t)}),gt(t),{context:t,unmount:()=>{V(r)},unbind:()=>{ae(r)}}},Rn=class{constructor(e,n,r){l(this,"Rt");l(this,"Fe");l(this,"o");l(this,"h");l(this,"p");this.Rt=e,this.Fe=n,this.o=r,this.h=new Ft([e],r),this.p=new Mt(this.h)}x(){this.p.G(this.Fe)}};var Ge=t=>{if(T(t))return t.map(o=>Ge(o));let e={};if(t.tagName)e.t=t.tagName;else return t.nodeType===Node.COMMENT_NODE&&(e.n=Node.COMMENT_NODE),t.textContent&&(e.d=t.textContent),e;let n=t.getAttributeNames();n.length>0&&(e.a=Object.fromEntries(n.map(o=>{var s;return[o,(s=t.getAttribute(o))!=null?s:""]})));let r=ue(t);return r.length>0&&(e.c=[...r].map(o=>Ge(o))),e};var Fr=(t,e={})=>{var s,i,a,c,p,f;T(e)&&(e={props:e}),B(t)&&(t={template:t});let n=(s=e.context)!=null?s:()=>({}),r=!1;if(t.element){let m=t.element;m.remove(),t.element=m}else if(t.selector){let m=document.querySelector(t.selector);if(!m)throw I(1,t.selector);m.remove(),t.element=m}else if(t.template){let m=document.createRange().createContextualFragment(t.template);t.element=m}else t.json&&(t.element=Ie(t.json,t.isSVG,e.config),r=!0);t.element||(t.element=document.createDocumentFragment()),((i=e.useInterpolation)==null||i)&&Ut(t.element,(a=e.config)!=null?a:ee.getDefault());let o=t.element;if(!r&&(((p=t.isSVG)!=null?p:nt(o)&&((c=o.hasAttribute)!=null&&c.call(o,"isSVG")))||nt(o)&&o.querySelector("[isSVG]"))){let m=o.content,u=m?[...m.childNodes]:[...o.childNodes],h=Ge(u);t.element=Ie(h,!0,e.config)}return{context:n,template:t.element,inheritAttrs:(f=e.inheritAttrs)!=null?f:!0,props:e.props,defaultName:e.defaultName}};var qr=t=>{var e;(e=Oe())==null||e.onMounted.push(t)};var zr=t=>{let e,n={},r=(...o)=>{if(o.length<=2&&0 in o)throw I(4);return e&&!n.isStopped?e(...o):(e=gs(t,n),e(...o))};return r[Q]=1,xe(r,!0),r.stop=()=>{var o,s;return(s=(o=n.ref)==null?void 0:o.stop)==null?void 0:s.call(o)},J(()=>r.stop(),!0),r},gs=(t,e)=>{var s;let n=(s=e.ref)!=null?s:G(null);e.ref=n,e.isStopped=!1;let r=0,o=Me(()=>{if(r>0){o(),e.isStopped=!0,K(n);return}n(t()),++r});return n.stop=o,n};var Kr=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw I(4);return r&&!n.isStopped?r(...s):(r=bs(t,e,n),r(...s))};return o[Q]=1,xe(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},J(()=>o.stop(),!0),o},bs=(t,e,n)=>{var a;let r=(a=n.ref)!=null?a:G(null);n.ref=r,n.isStopped=!1;let o=0,s=c=>{if(o>0){r.stop(),n.isStopped=!0,K(r);return}r(e(...t.map(p=>p()))),++o},i=[];for(let c of t){let p=w(c,s);i.push(p)}return s(null),r.stop=()=>{i.forEach(c=>{c()})},r};var Wr=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw I(4);return r&&!n.isStopped?r(...s):(r=Ts(t,e,n),r(...s))};return o[Q]=1,xe(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},J(()=>o.stop(),!0),o},Ts=(t,e,n)=>{var s;let r=(s=n.ref)!=null?s:G(null);n.ref=r,n.isStopped=!1;let o=0;return r.stop=w(t,i=>{if(o>0){r.stop(),n.isStopped=!0,K(r);return}r(e(i)),++o},!0),r};var Gr=t=>(t[mt]=1,t);var Jr=(t,e)=>{if(!e)throw I(5);let r=Le(t)?Re:a=>a,o=()=>localStorage.setItem(e,JSON.stringify(X(t()))),s=localStorage.getItem(e);if(s!=null)try{t(r(JSON.parse(s)))}catch(a){M(6,`persist: failed to parse data for key ${e}`,a),o()}else o();let i=Me(o);return J(i,!0),t};var vn=(t,...e)=>{let n="",r=t,o=e,s=r.length,i=o.length;for(let a=0;a<s;++a)n+=r[a],a<i&&(n+=o[a]);return n},Qr=vn;var Xr=(t,e,n)=>{let r=[],o=()=>{e(t.map(i=>i()))};for(let i of t)r.push(w(i,o));n&&o();let s=()=>{for(let i of r)i()};return J(s,!0),s};var Yr=t=>{if(!g(t))throw I(3,"observerCount");return t(void 0,void 0,2)};var Zr=t=>{Sn();try{t()}finally{wn()}},Sn=()=>{fe.stack||(fe.stack=[]),fe.stack.push(new Set)},wn=()=>{let t=fe.stack;if(!t||t.length===0)return;let e=t.pop();if(t.length){let n=t[t.length-1];for(let r of e)n.add(r);return}delete fe.stack;for(let n of e)try{K(n)}catch(r){console.error(r)}};
|
package/dist/regor.es2019.esm.js
CHANGED
|
@@ -718,11 +718,6 @@ var entangle = (r1, r2) => {
|
|
|
718
718
|
};
|
|
719
719
|
};
|
|
720
720
|
|
|
721
|
-
// src/reactivity/unref.ts
|
|
722
|
-
var unref = (value) => {
|
|
723
|
-
return isRef(value) ? value() : value;
|
|
724
|
-
};
|
|
725
|
-
|
|
726
721
|
// src/bind/ComponentBinder.ts
|
|
727
722
|
var ComponentBinder = class {
|
|
728
723
|
constructor(binder) {
|
|
@@ -786,7 +781,10 @@ var ComponentBinder = class {
|
|
|
786
781
|
if (!definedProps || definedProps.length === 0) return;
|
|
787
782
|
definedProps = definedProps.map(camelize);
|
|
788
783
|
const definedPropsByLowerCase = new Map(
|
|
789
|
-
definedProps.map((definedProp) => [
|
|
784
|
+
definedProps.map((definedProp) => [
|
|
785
|
+
definedProp.toLowerCase(),
|
|
786
|
+
definedProp
|
|
787
|
+
])
|
|
790
788
|
);
|
|
791
789
|
for (const name2 of definedProps.concat(definedProps.map(hyphenate))) {
|
|
792
790
|
const value = component2.getAttribute(name2);
|
|
@@ -837,9 +835,7 @@ var ComponentBinder = class {
|
|
|
837
835
|
if (compValue === propsValue) continue;
|
|
838
836
|
if (head2.entangle && isRef(compValue) && isRef(propsValue)) {
|
|
839
837
|
addUnbinder(startOfComponent, entangle(propsValue, compValue));
|
|
840
|
-
}
|
|
841
|
-
compValue(propsValue);
|
|
842
|
-
} else componentCtx2[key] = unref(propsValue);
|
|
838
|
+
}
|
|
843
839
|
} else componentCtx2[key] = propsValue;
|
|
844
840
|
}
|
|
845
841
|
(_a2 = head2.onAutoPropsAssigned) == null ? void 0 : _a2.call(head2);
|
|
@@ -1427,6 +1423,11 @@ var sref = (value) => {
|
|
|
1427
1423
|
return srefFunction;
|
|
1428
1424
|
};
|
|
1429
1425
|
|
|
1426
|
+
// src/reactivity/unref.ts
|
|
1427
|
+
var unref = (value) => {
|
|
1428
|
+
return isRef(value) ? value() : value;
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1430
1431
|
// src/bind/MountList.ts
|
|
1431
1432
|
var MountList = class {
|
|
1432
1433
|
constructor(getKey) {
|