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