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