regor 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/regor.es2015.cjs.js +14 -0
- package/dist/regor.es2015.cjs.prod.js +3 -3
- package/dist/regor.es2015.esm.js +14 -0
- package/dist/regor.es2015.esm.prod.js +3 -3
- package/dist/regor.es2015.iife.js +14 -0
- package/dist/regor.es2015.iife.prod.js +3 -3
- package/dist/regor.es2019.cjs.js +14 -0
- package/dist/regor.es2019.cjs.prod.js +3 -3
- package/dist/regor.es2019.esm.js +14 -0
- package/dist/regor.es2019.esm.prod.js +3 -3
- package/dist/regor.es2019.iife.js +14 -0
- package/dist/regor.es2019.iife.prod.js +3 -3
- package/dist/regor.es2022.cjs.js +13 -0
- package/dist/regor.es2022.cjs.prod.js +3 -3
- package/dist/regor.es2022.esm.js +13 -0
- package/dist/regor.es2022.esm.prod.js +3 -3
- package/dist/regor.es2022.iife.js +13 -0
- package/dist/regor.es2022.iife.prod.js +3 -3
- package/package.json +1 -1
package/dist/regor.es2015.cjs.js
CHANGED
|
@@ -910,6 +910,8 @@ var IfBinder = class {
|
|
|
910
910
|
if (isIfElement) this.__bind(element);
|
|
911
911
|
const isDynamicElement = element.hasAttribute(this.__binder.__config.__builtInNames.is) || element.hasAttribute("is");
|
|
912
912
|
if (isDynamicElement) return isIfElement;
|
|
913
|
+
if (this.__binder.__componentBinder.__isComponentHost(element))
|
|
914
|
+
return isIfElement;
|
|
913
915
|
this.__binder.__componentBinder.__forEachBindableDescendant(
|
|
914
916
|
element,
|
|
915
917
|
(el) => {
|
|
@@ -2043,6 +2045,11 @@ var ComponentBinder = class {
|
|
|
2043
2045
|
...contextComponentSelectors.map(hyphenate)
|
|
2044
2046
|
].join(",");
|
|
2045
2047
|
}
|
|
2048
|
+
__isComponentHost(element) {
|
|
2049
|
+
var _a;
|
|
2050
|
+
const selector = this.__getComponentSelector();
|
|
2051
|
+
return !isNullOrWhitespace(selector) && ((_a = element.matches) == null ? void 0 : _a.call(element, selector));
|
|
2052
|
+
}
|
|
2046
2053
|
__collectTopLevelComponentHosts(root, selector) {
|
|
2047
2054
|
var _a;
|
|
2048
2055
|
const result = [];
|
|
@@ -2060,12 +2067,15 @@ var ComponentBinder = class {
|
|
|
2060
2067
|
return result;
|
|
2061
2068
|
}
|
|
2062
2069
|
__forEachBindableDescendant(root, action) {
|
|
2070
|
+
const binder = this.__binder;
|
|
2063
2071
|
const selector = this.__getComponentSelector();
|
|
2072
|
+
const isName = binder.__config.__builtInNames.is;
|
|
2064
2073
|
const stack = this.__getChildElements(root).reverse();
|
|
2065
2074
|
while (stack.length > 0) {
|
|
2066
2075
|
const current = stack.pop();
|
|
2067
2076
|
action(current);
|
|
2068
2077
|
if (!isNullOrWhitespace(selector) && current.matches(selector)) continue;
|
|
2078
|
+
if (current.hasAttribute(isName) || current.hasAttribute("is")) continue;
|
|
2069
2079
|
stack.push(...this.__getChildElements(current).reverse());
|
|
2070
2080
|
}
|
|
2071
2081
|
}
|
|
@@ -2210,6 +2220,8 @@ var DynamicBinder = class {
|
|
|
2210
2220
|
const isComponentElement = element.hasAttribute(this.__is);
|
|
2211
2221
|
if (isComponentElement || element.hasAttribute("is"))
|
|
2212
2222
|
this.__bind(element);
|
|
2223
|
+
if (this.__binder.__componentBinder.__isComponentHost(element))
|
|
2224
|
+
return isComponentElement;
|
|
2213
2225
|
this.__binder.__componentBinder.__forEachBindableDescendant(
|
|
2214
2226
|
element,
|
|
2215
2227
|
(el) => {
|
|
@@ -2697,6 +2709,8 @@ var _ForBinder = class _ForBinder {
|
|
|
2697
2709
|
if (isForElement) this.__bindFor(element);
|
|
2698
2710
|
const isDynamicElement = element.hasAttribute(this.__binder.__config.__builtInNames.is) || element.hasAttribute("is");
|
|
2699
2711
|
if (isDynamicElement) return isForElement;
|
|
2712
|
+
if (this.__binder.__componentBinder.__isComponentHost(element))
|
|
2713
|
+
return isForElement;
|
|
2700
2714
|
this.__binder.__componentBinder.__forEachBindableDescendant(
|
|
2701
2715
|
element,
|
|
2702
2716
|
(el) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var Tt=Object.defineProperty,Ur=Object.defineProperties,Hr=Object.getOwnPropertyDescriptor,Br=Object.getOwnPropertyDescriptors,$r=Object.getOwnPropertyNames,eo=Object.getOwnPropertySymbols;var to=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable;var xt=Math.pow,gn=(t,e,n)=>e in t?Tt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ct=(t,e)=>{for(var n in e||(e={}))to.call(e,n)&&gn(t,n,e[n]);if(eo)for(var n of eo(e))jr.call(e,n)&&gn(t,n,e[n]);return t},no=(t,e)=>Ur(t,Br(e));var _r=(t,e)=>{for(var n in e)Tt(t,n,{get:e[n],enumerable:!0})},Fr=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of $r(e))!to.call(t,r)&&r!==n&&Tt(t,r,{get:()=>e[r],enumerable:!(o=Hr(e,r))||o.enumerable});return t};var qr=t=>Fr(Tt({},"__esModule",{value:!0}),t);var m=(t,e,n)=>gn(t,typeof e!="symbol"?e+"":e,n);var oo=(t,e,n)=>new Promise((o,r)=>{var s=c=>{try{a(n.next(c))}catch(l){r(l)}},i=c=>{try{a(n.throw(c))}catch(l){r(l)}},a=c=>c.done?o(c.value):Promise.resolve(c.value).then(s,i);a((n=n.apply(t,e)).next())});var Hi={};_r(Hi,{ComponentHead:()=>Qe,ContextRegistry:()=>hn,RegorConfig:()=>pe,addUnbinder:()=>K,batch:()=>Dr,collectRefs:()=>$t,computeMany:()=>Nr,computeRef:()=>Mr,computed:()=>Ar,createApp:()=>wr,defineComponent:()=>vr,drainUnbind:()=>so,endBatch:()=>Yn,entangle:()=>tt,flatten:()=>ce,getBindData:()=>Pe,html:()=>yn,isDeepRef:()=>_e,isRaw:()=>nt,isRef:()=>C,markRaw:()=>Or,observe:()=>ie,observeMany:()=>Vr,observerCount:()=>Pr,onMounted:()=>Sr,onUnmounted:()=>re,pause:()=>nn,persist:()=>kr,pval:()=>po,raw:()=>Lr,ref:()=>xe,removeNode:()=>W,resume:()=>on,silence:()=>Bt,sref:()=>ae,startBatch:()=>Xn,svg:()=>Ir,toFragment:()=>Ke,toJsonTemplate:()=>at,trigger:()=>ee,unbind:()=>ye,unref:()=>A,useScope:()=>Ht,warningHandler:()=>$e,watchEffect:()=>Fe});module.exports=qr(Hi);var Ge=Symbol(":regor");var ye=t=>{let e=[t];for(let n=0;n<e.length;++n){let o=e[n];zr(o);for(let r=o.lastChild;r!=null;r=r.previousSibling)e.push(r)}},zr=t=>{let e=t[Ge];if(!e)return;let n=e.unbinders;for(let o=0;o<n.length;++o)n[o]();n.length=0,t[Ge]=void 0};var Je=[],Et=!1,Rt,ro=()=>{if(Et=!1,Rt=void 0,Je.length!==0){for(let t=0;t<Je.length;++t)ye(Je[t]);Je.length=0}},W=t=>{t.remove(),Je.push(t),Et||(Et=!0,Rt=setTimeout(ro,1))},so=()=>oo(null,null,function*(){Je.length===0&&!Et||(Rt&&clearTimeout(Rt),ro())});var G=t=>typeof t=="function",J=t=>typeof t=="string",io=t=>typeof t=="undefined",me=t=>t==null||typeof t=="undefined",F=t=>typeof t!="string"||!(t!=null&&t.trim()),Kr=Object.prototype.toString,bn=t=>Kr.call(t),Le=t=>bn(t)==="[object Map]",le=t=>bn(t)==="[object Set]",Tn=t=>bn(t)==="[object Date]",ct=t=>typeof t=="symbol",w=Array.isArray,L=t=>t!==null&&typeof t=="object";var ao={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."},q=(t,...e)=>{let n=ao[t];return new Error(G(n)?n.call(ao,...e):n)};var wt=[],co=()=>{let t={onMounted:[],onUnmounted:[]};return wt.push(t),t},Be=t=>{let e=wt[wt.length-1];if(!e&&!t)throw q(2);return e},uo=t=>{let e=Be();return t&&Cn(t),wt.pop(),e},xn=Symbol("csp"),Cn=t=>{let e=t,n=e[xn];if(n){let o=Be();if(n===o)return;o.onMounted.length>0&&n.onMounted.push(...o.onMounted),o.onUnmounted.length>0&&n.onUnmounted.push(...o.onUnmounted);return}e[xn]=Be()},vt=t=>t[xn];var Ie=t=>{var n,o;let e=(n=vt(t))==null?void 0:n.onUnmounted;e==null||e.forEach(r=>{r()}),(o=t.unmounted)==null||o.call(t)};var fo={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]})},j=(t,...e)=>{let n=fo[t],o=G(n)?n.call(fo,...e):n,r=$e.warning;r&&(J(o)?r(o):r(o,...o.args))},$e={warning:console.warn};var St=Symbol("ref"),te=Symbol("sref"),At=Symbol("raw");var C=t=>t!=null&&t[te]===1;var Ve=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 Ve(t,`${e}.`)},Nt=t=>{var n;if(t===null)return"null";if(t===void 0)return"undefined";if(C(t))return`ref<${Nt(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"},Wr=t=>t.length>60?`${t.slice(0,57)}...`:t,ut=(t,e=0)=>{if(e>1)return"unknown";if(C(t)){let s=t();return`ref(${ut(s,e+1)})`}if(typeof t=="string")return Wr(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=>ut(i,e+1)).join(", ");return t.length>5?`[${s}, ...]`:`[${s}]`}if(L(t)){let s=Object.entries(t).slice(0,5);if(s.length===0)return"{}";let i=s.map(([a,c])=>{let l=ut(c,e+1);return`${a}: ${l}`}).join(", ");return Object.keys(t).length>5?`{ ${i}, ... }`:`{ ${i} }`}return"unknown"},fe=t=>{if(C(t))return`got ${Nt(t)}(${ut(t())})`;let e=Nt(t),n=ut(t);return`got ${e} (${n})`},Gr=t=>t instanceof Ve?t.detail:t instanceof Error?t.message:String(t),lo=(t,e)=>{let n=`, ${fe(e)}.`;return t.endsWith(n)?t.slice(0,-n.length):t},Jr=(t,e,n)=>{if(e instanceof Ve){if(e.propPath===t)return lo(e.detail,n);if(e.propPath===`${t}.value`&&C(n)){let o=lo(e.detail,n());return o.startsWith("expected ")?`expected ref<${o.slice(9)}>`:`expected ref where ${o}`}}return Gr(e)},Qr=(t,e,n)=>{let o=[];for(let r of e){let s=Jr(t,r,n);o.includes(s)||o.push(s)}return o.length===0?fe(n):o.length===1?`${o[0]}, ${fe(n)}`:`${o.join(" or ")}, ${fe(n)}`},Xr=t=>typeof t=="string"?`"${t}"`:typeof t=="number"||typeof t=="boolean"?String(t):t===null?"null":t===void 0?"undefined":Nt(t),Yr=(t,e)=>{typeof t!="string"&&be(e,`expected string, ${fe(t)}`)},Zr=(t,e)=>{typeof t!="number"&&be(e,`expected number, ${fe(t)}`)},es=(t,e)=>{typeof t!="boolean"&&be(e,`expected boolean, ${fe(t)}`)},ts=t=>(e,n)=>{e instanceof t||be(n,`expected instance of ${t.name||"provided class"}, ${fe(e)}`)},ns=t=>(e,n,o)=>{e!==void 0&&t(e,n,o)},os=t=>(e,n,o)=>{e!==null&&t(e,n,o)},rs=(...t)=>(e,n,o)=>{let r=[];for(let s of t)try{s(e,n,o);return}catch(i){r.push(i)}be(n,Qr(n,r,e))},ss=t=>(e,n)=>{t.includes(e)||be(n,`expected one of ${t.map(o=>Xr(o)).join(", ")}, ${fe(e)}`)},is=t=>(e,n,o)=>{w(e)||be(n,`expected array, ${fe(e)}`);let r=e;for(let s=0;s<r.length;++s)t(r[s],`${n}[${s}]`,o)};function as(t){return(e,n,o)=>{L(e)||be(n,`expected object, ${fe(e)}`);let r=e;for(let s in t){let i=t[s];if(!i)continue;i(r[s],`${n}.${s}`,o)}}}var cs=t=>(e,n,o)=>{if(C(e)){t(e(),`${n}.value`,o);return}be(n,`expected ref, ${fe(e)}`)},po={fail:be,describe:fe,isString:Yr,isNumber:Zr,isBoolean:es,isClass:ts,optional:ns,nullable:os,or:rs,oneOf:ss,arrayOf:is,shape:as,refOf:cs};var us=(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 Ve?n.propPath:e,s=n instanceof Ve?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})},Qe=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,"J");m(this,"Q");m(this,"emit",(e,n)=>{this.J.dispatchEvent(new CustomEvent(e,{detail:n}))});this.props=e,this.J=n,this.ctx=o,this.start=r,this.end=s,this.Q=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.Q==="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=us(this.J,o,i);if(this.Q==="warn"){$e.warning(a.message,a);continue}throw a}}}unmount(){let e=this.start.nextSibling,n=this.end;for(;e&&e!==n;)W(e),e=e.nextSibling;for(let o of this.ctx)Ie(o)}};var Pe=t=>{let e=t,n=e[Ge];if(n)return n;let o={unbinders:[],data:{}};return e[Ge]=o,o};var K=(t,e)=>{Pe(t).unbinders.push(e)};var ft=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 Ot={},Mt={},mo=1,ho=t=>{let e=(mo++).toString();return Ot[e]=t,Mt[e]=0,e},En=t=>{Mt[t]+=1},Rn=t=>{--Mt[t]===0&&(delete Ot[t],delete Mt[t])},yo=t=>Ot[t],wn=()=>mo!==1&&Object.keys(Ot).length>0,lt="r-switch",fs=t=>{let e=t.filter(o=>we(o)).map(o=>[...o.querySelectorAll("[r-switch]")].map(r=>r.getAttribute(lt))),n=new Set;return e.forEach(o=>{o.forEach(r=>r&&n.add(r))}),[...n]},Xe=(t,e)=>{if(!wn())return;let n=fs(e);n.length!==0&&(n.forEach(En),K(t,()=>{n.forEach(Rn)}))};var kt=()=>{},vn=(t,e,n,o)=>{let r=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,o),r.push(i)}De(e,r)},Sn=Symbol("r-if"),go=Symbol("r-else"),bo=t=>t[go]===1,Lt=class{constructor(e){m(this,"o");m(this,"M");m(this,"be");m(this,"X");m(this,"Y");m(this,"x");m(this,"R");this.o=e,this.M=e.r.p.if,this.be=Vt(e.r.p.if),this.X=e.r.p.else,this.Y=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),e.hasAttribute(this.o.r.p.is)||e.hasAttribute("is")||this.o.V.j(e,r=>{r.hasAttribute(this.M)&&this.y(r)}),n}Z(e){return e[Sn]?!0:(e[Sn]=!0,It(e,this.be).forEach(n=>n[Sn]=!0),!1)}y(e){if(e.hasAttribute(this.R)||this.Z(e)||this.rt(e,this.x))return;let n=e.getAttribute(this.M);if(!n){j(0,this.M,e);return}e.removeAttribute(this.M),this.O(e,n)}U(e,n,o){let r=Ye(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${o!=null?o:""}`);s.insertBefore(i,e),Xe(i,r),r.forEach(c=>{W(c)}),e.remove(),n!=="if"&&(e[go]=1);let a=document.createComment(`__end__ :${n}${o!=null?o:""}`);return s.insertBefore(a,i.nextSibling),{nodes:r,parent:s,commentBegin:i,commentEnd:a}}xe(e,n){if(!e)return[];let o=e.nextElementSibling;if(e.hasAttribute(this.X)){e.removeAttribute(this.X);let{nodes:r,parent:s,commentBegin:i,commentEnd:a}=this.U(e,"else");return[{mount:()=>{vn(r,this.o,s,a)},unmount:()=>{ve(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let r=e.getAttribute(this.Y);if(!r)return[];e.removeAttribute(this.Y);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.xe(o,n),p=kt;return K(a,()=>{l.stop(),p(),p=kt}),p=l.subscribe(n),[{mount:()=>{vn(s,this.o,i,c)},unmount:()=>{ve(a,c)},isTrue:()=>ft(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(ft(l()[0]))u||(vn(r,this.o,s,a),u=!0),b.forEach(T=>{T.unmount(),T.isMounted=!1});else{ve(i,a),u=!1;let T=!1;for(let R of b)!T&&R.isTrue()?(R.isMounted||(R.mount(),R.isMounted=!0),T=!0):(R.unmount(),R.isMounted=!1)}})},b=this.xe(o,y),d=kt;K(i,()=>{c.stop(),d(),d=kt}),y(),d=c.subscribe(y)}};var Ye=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},De=(t,e)=>{for(let n=0;n<e.length;++n){let o=e[n];o.nodeType===Node.ELEMENT_NODE&&(bo(o)||t.$(o))}},It=(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,we=t=>t.nodeType===Node.ELEMENT_NODE,pt=t=>t.nodeType===Node.ELEMENT_NODE,To=t=>t instanceof HTMLSlotElement,Se=t=>de(t)?t.content.childNodes:t.childNodes,ve=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let o=n.nextSibling;W(n),n=o}},xo=function(){return this()},ls=function(t){return this(t)},ps=()=>{throw new Error("value is readonly.")},ms={get:xo,set:ls,enumerable:!0,configurable:!1},ds={get:xo,set:ps,enumerable:!0,configurable:!1},Ue=(t,e)=>{Object.defineProperty(t,"value",e?ds:ms)},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},Vt=t=>`[${CSS.escape(t)}]`,Pt=(t,e)=>(t.startsWith("@")&&(t=e.p.on+":"+t.slice(1)),t.includes("[")&&(t=t.replace(/[[\]]/g,e.p.dynamic)),t),An=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},hs=/-(\w)/g,z=An(t=>t&&t.replace(hs,(e,n)=>n?n.toUpperCase():"")),ys=/\B([A-Z])/g,Ze=An(t=>t&&t.replace(ys,"-$1").toLowerCase()),mt=An(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var Dt={mount:()=>{}};var et=t=>{let e=t.trim();return e?e.split(/\s+/):[]};var Ut=t=>{var n,o;let e=(n=vt(t))==null?void 0:n.onMounted;e==null||e.forEach(r=>{r()}),(o=t.mounted)==null||o.call(t)};var Nn=Symbol("scope"),Ht=t=>{try{co();let e=t();Cn(e);let n={context:e,unmount:()=>Ie(e),[Nn]:1};return n[Nn]=1,n}finally{uo()}},Eo=t=>L(t)?Nn in t:!1;var Mn={collectRefObj:!0,mount:({parseResult:t})=>({update:({values:e})=>{let n=t.context,o=e[0];if(L(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=Be(e))==null||n.onUnmounted.push(t)};var ie=(t,e,n,o=!0)=>{if(!C(t))throw q(3,"observe");n&&e(t());let s=t(void 0,void 0,0,e);return o&&re(s,!0),s};var tt=(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 nt=t=>!!t&&t[At]===1;var _e=t=>(t==null?void 0:t[St])===1;var he=[],Ro=t=>{var e;he.length!==0&&((e=he[he.length-1])==null||e.add(t))},Fe=t=>{if(!t)return()=>{};let e={stop:()=>{}};return gs(t,e),re(()=>e.stop(),!0),e.stop},gs=(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(),Fe(t)});n.push(a)}}finally{he.pop()}},Bt=t=>{let e=he.length,n=e>0&&he[e-1];try{return n&&he.push(null),t()}finally{n&&he.pop()}},$t=t=>{try{let e=new Set;return he.push(e),{value:t(),refs:[...e]}}finally{he.pop()}};var ee=(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)||le(r))for(let s of r)ee(s,e,!0);else if(Le(r))for(let s of r)ee(s[0],e,!0),ee(s[1],e,!0);if(L(r))for(let s in r)ee(r[s],e,!0)}};function bs(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var ot=(t,e,n)=>{n.forEach(function(o){let r=t[o];bs(e,o,function(...i){let a=r.apply(this,i),c=this[te];for(let l of c)ee(l);return a})})},jt=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var wo=Array.prototype,On=Object.create(wo),Ts=["push","pop","shift","unshift","splice","sort","reverse"];ot(wo,On,Ts);var vo=Map.prototype,_t=Object.create(vo),xs=["set","clear","delete"];jt(_t,"Map");ot(vo,_t,xs);var So=Set.prototype,Ft=Object.create(So),Cs=["add","clear","delete"];jt(Ft,"Set");ot(So,Ft,Cs);var Te={},ae=t=>{if(C(t)||nt(t))return t;let e={auto:!0,_value:t},n=c=>L(c)?te in c?!0:w(c)?(Object.setPrototypeOf(c,On),!0):le(c)?(Object.setPrototypeOf(c,Ft),!0):Le(c)?(Object.setPrototypeOf(c,_t),!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&&Bt(()=>{for(let u of[...r.keys()])r.has(u)&&u(c,l)})},i=c=>{let l=c[te];l||(c[te]=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):(Ro(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[te]=1,Ue(a,!1),o&&i(t),a};var xe=t=>{if(nt(t))return t;let e;if(C(t)?(e=t,t=e()):e=ae(t),t instanceof Node||t instanceof Date||t instanceof RegExp||t instanceof Promise||t instanceof Error)return e;if(e[St]=1,w(t)){let n=t.length;for(let o=0;o<n;++o){let r=t[o];_e(r)||(t[o]=xe(r))}return e}if(!L(t))return e;for(let n of Object.entries(t)){let o=n[1];if(_e(o))continue;let r=n[0];ct(r)||(t[r]=null,t[r]=xe(o))}return e};var Ao=Symbol("modelBridge"),qt=()=>{},Es=t=>!!(t!=null&&t[Ao]),Rs=t=>{t[Ao]=1},ws=t=>{let e=xe(t());return Rs(e),e},No={collectRefObj:!0,mount:({parseResult:t,option:e})=>{if(typeof e!="string"||!e)return qt;let n=z(e),o,r,s=qt,i=()=>{s(),s=qt,o=void 0,r=void 0},a=()=>{s(),s=qt},c=(u,f)=>{o!==u&&(a(),s=tt(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(Es(u)){if(p===u)return;C(p)?c(u,p):f[n]=u;return}r||(r=ws(u)),f[n]=r,c(u,r)};return{update:()=>{l()},unmount:()=>{s()}}}};var zt=class{constructor(e){m(this,"o");m(this,"_");m(this,"Te","");m(this,"Re",-1);this.o=e,this._=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(Ze)].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}ct(e){if(!de(e))return!1;let n=e.getAttributeNames();return e.hasAttribute("name")?!0:n.some(o=>o.startsWith("#"))}pt(e){return de(e)&&e.getAttributeNames().length===0}ot(e){var l,u;let n=this.o,o=n.m,r=n.r.ee,s=n.r.F;if(r.size===0&&!this.it(o.l))return;let i=o.te(),a=this.Ee();if(F(a))return;let c=this.ut(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=z(f.tagName).toUpperCase(),d=i[b],v=d!=null?d:s.get(b);if(!v)continue;let T=v.template;if(!T)continue;let R=f.parentElement;if(!R)continue;let H=new Comment(" begin component: "+f.tagName),P=new Comment(" end component: "+f.tagName);R.insertBefore(H,f),f.remove();let D=n.r.p.context,B=n.r.p.contextAlias,ue=n.r.p.bind,Z=(u=(l=v.props)==null?void 0:l.map(z))!=null?u:[],V=[],x=h=>h==="class"||h==="style",k=(h,M,S=!1)=>{let X={},$=h.hasAttribute(D);return o.E(M,()=>{if(o.w(X),$?n.y(Mn,h,D):h.hasAttribute(B)&&n.y(Mn,h,B),Z.length===0)return;let Y=new Map(Z.map(g=>[g.toLowerCase(),g]));for(let g of[...Z,...Z.map(Ze)]){let O=h.getAttribute(g);if(O===null)continue;let U=z(g);X[U]=O,S&&v.inheritAttrs===!0&&x(U)&&V.push({name:g,value:O}),h.removeAttribute(g)}let E=n.q.Ce(h,!1);for(let[g,O]of E.entries()){let[U,oe]=O.ne;if(!oe)continue;let Re=Y.get(z(oe).toLowerCase());if(Re&&!(U!=="."&&U!==":"&&U!==ue)){if(S&&U!=="."&&v.inheritAttrs===!0&&x(Re)){let Zn=h.getAttribute(g);Zn!==null&&V.push({name:g,value:Zn})}n.y(No,h,g,!0,Re,O.re)}}}),X},_=[...o.L()],We=()=>{var X;let h=k(f,_,!0),M=new Qe(h,f,_,H,P,n.r.propValidationMode),S=Ht(()=>{var $;return($=v.context(M))!=null?$:{}}).context;if(M.autoProps){for(let[$,Y]of Object.entries(h))if($ in S){let E=S[$];if(E===Y)continue;if(C(E)){C(Y)?M.entangle?K(H,tt(Y,E)):E(Y()):E(Y);continue}}else S[$]=Y;for(let $ of Z)$ in S||(S[$]=void 0);(X=M.onAutoPropsAssigned)==null||X.call(M)}return{componentCtx:S,head:M}},{componentCtx:Ce,head:gt}=We(),N=[...Se(T)],bt=N.length,I=f.childNodes.length===0,Q=h=>{var Y;let M=h.parentElement,S=h.name;if(F(S)&&(S=h.getAttributeNames().filter(E=>E.startsWith("#"))[0],F(S)?S="default":S=S.substring(1)),I){if(S==="default"){let E=n.r.p.text,g=f.getAttribute(E);if(!F(g)){let O=document.createElement("span");O.setAttribute(E,g),M.insertBefore(O,h),f.removeAttribute(E);return}}for(let E of[...h.childNodes])M.insertBefore(E,h);return}let X=f.querySelector(`template[name='${S}'], template[\\#${S}]`);!X&&S==="default"&&(X=(Y=[...f.querySelectorAll("template:not([name])")].find(g=>this.pt(g)))!=null?Y:null);let $=E=>{gt.enableSwitch&&o.E(_,()=>{o.w(Ce);let g=k(h,o.L());o.E(_,()=>{o.w(g);let O=o.L(),U=ho(O);for(let oe of E)we(oe)&&(oe.setAttribute(lt,U),En(U),K(oe,()=>{Rn(U)}))})})};if(X){let E=[...Se(X)];for(let g of E)M.insertBefore(g,h);$(E)}else{if(S!=="default"){for(let g of[...Se(h)])M.insertBefore(g,h);return}let E=[...Se(f)].filter(g=>!this.ct(g));for(let g of E)M.insertBefore(g,h);$(E)}},ne=h=>{if(!we(h))return;let M=h.querySelectorAll("slot");if(To(h)){Q(h),h.remove();return}for(let S of M)Q(S),S.remove()};(()=>{for(let h=0;h<bt;++h)N[h]=N[h].cloneNode(!0),p.insertBefore(N[h],y),ne(N[h])})(),R.insertBefore(P,y);let Ee=()=>{if(!v.inheritAttrs)return;let h=N.filter(g=>g.nodeType===Node.ELEMENT_NODE),M=h.flatMap(g=>[...g.hasAttribute(this._)?[g]:[],...g.querySelectorAll(`[${this._}]`)]).at(0),S=M!=null?M:h.length===1?h[0]:void 0;if(!S)return;S.removeAttribute(this._);let X=`${ue}:class`,$=`${ue}:style`,Y=(g,O,U)=>{let oe=S.hasAttribute(g)?g:S.hasAttribute(O)?O:g,Re=S.getAttribute(oe);S.setAttribute(oe,F(Re)?U:`${Re}, ${U}`)},E=(g,O)=>{if(g==="class"){let U=et(O);U.length>0&&S.classList.add(...U)}else if(g===":class"||g===X)Y(":class",X,O);else if(g==="style"){let U=S.style,oe=f.style;for(let Re of oe)U.setProperty(Re,oe.getPropertyValue(Re))}else g===":style"||g===$?Y(":style",$,O):S.setAttribute(Pt(g,n.r),O)};for(let{name:g,value:O}of V)f.setAttribute(g,O);for(let g of f.getAttributeNames())g===D||g===B||E(g,f.getAttribute(g))},Oe=()=>{for(let h of f.getAttributeNames())!h.startsWith("@")&&!h.startsWith(n.r.p.on)&&f.removeAttribute(h)},ke=()=>{Ee(),Oe(),o.w(Ce),n.we(f,!1),Ce.$emit=gt.emit,De(n,N),K(f,()=>{Ie(Ce)}),K(H,()=>{ye(f)}),Ut(Ce)};o.E(_,ke)}}Ee(){let e=this.o,n=e.m,o=e.r.ee,r=n.lt(),s=this.st(o);return[...s?[s]:[],...r,...r.map(Ze)].join(",")}ut(e,n){var s;let o=[];if(F(n))return o;if((s=e.matches)!=null&&s.call(e,n))return[e];let r=this.K(e).reverse();for(;r.length>0;){let i=r.pop();if(i.matches(n)){o.push(i);continue}r.push(...this.K(i).reverse())}return o}j(e,n){let o=this.Ee(),r=this.K(e).reverse();for(;r.length>0;){let s=r.pop();n(s),!(!F(o)&&s.matches(o))&&r.push(...this.K(s).reverse())}}K(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];we(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];we(i)&&r.push(i)}return r}return[]}};var kn=class{constructor(e,n){m(this,"ne");m(this,"re");m(this,"ve",[]);this.ne=e,this.re=n}},Kt=class{constructor(e){m(this,"o");m(this,"Se");m(this,"Ae");m(this,"oe");var o;this.o=e,this.Se=e.r.ft(),this.oe=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.oe.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(/[:@]/);F(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]=z(a[a.length-1])),u&&(a[0]=".");let f={terms:a,flags:c};return this.oe.set(e,f),f}Ce(e,n){let o=new Map;if(!pt(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 kn(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 Mo=()=>{},vs=(t,e)=>{for(let n of t){let o=n.cloneNode(!0);e.appendChild(o)}},Wt=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=Ye(e),r=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);r.insertBefore(s,e),Xe(s,o),o.forEach(a=>{W(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,commentBegin:r,commentEnd:s}=this.U(e,` => ${n} `),i=this.o.m.N(n),a=i.value,c=this.o.m,l=c.L(),u={name:""},f=de(e)?o:[...o[0].childNodes],p=()=>{c.E(l,()=>{var R,H;let d=a()[0];if(L(d)&&(d.name?d=d.name:d=(R=Object.entries(c.te()).filter(P=>P[1]===d)[0])==null?void 0:R[0]),!J(d)||F(d)){ve(r,s);return}if(u.name===d)return;ve(r,s);let v=(H=s.parentNode)!=null?H:r.parentNode;if(!v)return;let T=document.createElement(d);for(let P of e.getAttributeNames())P!==this.I&&T.setAttribute(P,e.getAttribute(P));vs(f,T),v.insertBefore(T,s),this.o.$(T),u.name=d})},y=Mo;K(r,()=>{i.stop(),y(),y=Mo}),p(),y=i.subscribe(p)}};var A=t=>{let e=t;return e!=null&&e[te]===1?e():e};var Ss=(t,e)=>{let[n,o]=e;G(o)?o(t,n):t.innerHTML=n==null?void 0:n.toString()},Gt={mount:()=>({update:({el:t,values:e})=>{Ss(t,e)}})};var Jt=class t{constructor(e){m(this,"se");this.se=e}static dt(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.te();if(Object.keys(c).length>0||r.F.size>0)return;let l=e.q,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=z(T.tagName).toUpperCase();if(r.F.has(R)||c[R])return;let H=T.attributes;for(let P=0;P<H.length;++P){let D=(y=H.item(P))==null?void 0:y.name;if(!D)continue;if(i.has(D))return;let{terms:B,flags:ue}=l.ke(D),[Z,V]=B,x=(b=a[D])!=null?b:a[Z];if(x){if(x===Gt)return;u.push({nodeIndex:f,attrName:D,directive:x,option:V,flags:ue})}}++f}let v=d.childNodes;for(let T=v.length-1;T>=0;--T)p.push(v[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.se.length;++s){let i=this.se[s],a=o[i.nodeIndex];a&&e.y(i.directive,a,i.attrName,!1,i.option,i.flags)}}};var As=(t,e)=>{let n=e.parentNode;if(n)for(let o=0;o<t.items.length;++o)n.insertBefore(t.items[o],e)},Ns=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},Qt=class{static mt(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,d=l-1,v=u-1;for(;b<=d&&b<=v;){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<=d&&b<=v;){let x=n[d];if(r(x.value)!==f[v]||!s(x.value,o[v]))break;x.value=o[v],y[v]=x,--d,--v}if(b>d){for(let x=v;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>v){for(let x=b;x<=d;++x)a(n[x]);return y}let T=b,R=b,H=v-R+1,P=new Array(H).fill(0),D=new Map;for(let x=R;x<=v;++x)D.set(f[x],x);let B=!1,ue=0;for(let x=T;x<=d;++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,P[_-R]=x+1,_>=ue?ue=_:B=!0}let Z=B?Ns(P):[],V=Z.length-1;for(let x=H-1;x>=0;--x){let k=R+x,_=k+1<u?y[k+1].items[0]:c;if(P[x]===0){y[k]=i(k,o[k],_);continue}let We=y[k];B&&(V>=0&&Z[V]===x?--V:We&&As(We,_))}return y}};var dt=class{constructor(e){m(this,"T",[]);m(this,"P",new Map);m(this,"ie");this.ie=e}get v(){return this.T.length}ae(e){let n=this.ie(e.value);n!==void 0&&this.P.set(n,e)}ce(e){var o;let n=this.ie((o=this.T[e])==null?void 0:o.value);n!==void 0&&this.P.delete(n)}static yt(e,n){return{items:[],index:e,value:n,order:-1}}w(e){e.order=this.v,this.T.push(e),this.ae(e)}ht(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.ae(n)}D(e){return this.T[e]}pe(e,n){this.ce(e),this.T[e]=n,this.ae(n),n.order=e}Me(e){this.ce(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.ce(o);this.T.splice(e)}tn(e){return this.P.has(e)}gt(e){var o;let n=this.P.get(e);return(o=n==null?void 0:n.order)!=null?o:-1}};var Ln=Symbol("r-for"),Ms=t=>-1,Oo=()=>{},Yt=class Yt{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=Vt(this.x),this.R=e.r.p.pre}k(e){let n=e.hasAttribute(this.x);return n&&this.Ne(e),e.hasAttribute(this.o.r.p.is)||e.hasAttribute("is")||this.o.V.j(e,r=>{r.hasAttribute(this.x)&&this.Ne(r)}),n}Z(e){return e[Ln]?!0:(e[Ln]=!0,It(e,this.Oe).forEach(n=>n[Ln]=!0),!1)}Ne(e){if(e.hasAttribute(this.R)||this.Z(e))return;let n=e.getAttribute(this.x);if(!n){j(0,this.x,e);return}e.removeAttribute(this.x),this.bt(e,n)}Le(e){return me(e)?[]:(G(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))}bt(e,n){var bt;let o=this.xt(n);if(!(o!=null&&o.list)){j(1,this.x,n,e);return}let r=this.o.r.p.key,s=this.o.r.p.keyBind,i=(bt=e.getAttribute(r))!=null?bt:e.getAttribute(s);e.removeAttribute(r),e.removeAttribute(s);let a=Ye(e),c=Jt.dt(this.o,a),l=e.parentNode;if(!l)return;let u=`${this.x} => ${n}`,f=new Comment(`__begin__ ${u}`);l.insertBefore(f,e),Xe(f,a),a.forEach(I=>{W(I)}),e.remove();let p=new Comment(`__end__ ${u}`);l.insertBefore(p,f.nextSibling);let y=this.o,b=y.m,d=b.L(),T=d.length===1?[void 0,d[0]]:void 0,R=this.Tt(i),H=(I,Q)=>R(I)===R(Q),P=(I,Q)=>I===Q,D=(I,Q,ne)=>{let se=o.createContext(Q,I),Ee=dt.yt(se.index,Q),Oe=()=>{var S,X;let ke=(X=(S=p.parentNode)!=null?S:f.parentNode)!=null?X:l,h=ne.previousSibling,M=[];for(let $=0;$<a.length;++$){let Y=a[$].cloneNode(!0);ke.insertBefore(Y,ne),M.push(Y)}for(c?c.y(y,M):De(y,M),h=h.nextSibling;h!==ne;)Ee.items.push(h),h=h.nextSibling};return T?(T[0]=se.ctx,b.E(T,Oe)):b.E(d,()=>{b.w(se.ctx),Oe()}),Ee},B=(I,Q)=>{let ne=N.D(I).items,se=ne[ne.length-1].nextSibling;for(let Ee of ne)W(Ee);N.pe(I,D(I,Q,se))},ue=(I,Q)=>{N.w(D(I,Q,p))},Z=I=>{for(let Q of N.D(I).items)W(Q)},V=I=>{let Q=N.v;for(let ne=I;ne<Q;++ne)N.D(ne).index(ne)},x=I=>{let Q=f.parentNode,ne=p.parentNode;if(!Q||!ne)return;let se=N.v;G(I)&&(I=I());let Ee=A(I[0]);if(w(Ee)&&Ee.length===0){ve(f,p),N.Ve(0);return}let Oe=[];for(let E of this.Le(I[0]))Oe.push(E);let ke=Qt.mt({oldItems:N.T,newValues:Oe,getKey:R,isSameValue:P,mountNewValue:(E,g,O)=>D(E,g,O),removeMountItem:E=>{for(let g=0;g<E.items.length;++g)W(E.items[g])},endAnchor:p});if(ke){N.T=ke,N.P.clear();for(let E=0;E<ke.length;++E){let g=ke[E];g.order=E,g.index(E);let O=R(g.value);O!==void 0&&N.P.set(O,g)}return}let h=0,M=Number.MAX_SAFE_INTEGER,S=se,X=this.o.r.forGrowThreshold,$=()=>N.v<S+X;for(let E of Oe){let g=()=>{if(h<se){let O=N.D(h++);if(H(O.value,E)){if(P(O.value,E))return;B(h-1,E);return}let U=N.gt(R(E));if(U>=h&&U-h<10){if(--h,M=Math.min(M,h),Z(h),N.Me(h),--se,U>h+1)for(let oe=h;oe<U-1&&oe<se&&!H(N.D(h).value,E);)++oe,Z(h),N.Me(h),--se;g();return}$()?(N.ht(h-1,D(h,E,N.D(h-1).items[0])),M=Math.min(M,h-1),++se):B(h-1,E)}else ue(h++,E)};g()}let Y=h;for(se=N.v;h<se;)Z(h++);N.Ve(Y),V(M)},k=()=>{_.stop(),Ce(),Ce=Oo},_=b.N(o.list),We=_.value,Ce=Oo,gt=0,N=new dt(R);for(let I of this.Le(We()[0]))N.w(D(gt++,I,p));K(f,k),Ce=_.subscribe(x)}xt(e){var c,l;let n=Yt.Rt.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=A(u);if(!a&&o.length===1)p[o[0]]=u;else if(w(y)){let d=0;for(let v of o)p[v]=y[d++]}else for(let d of o)p[d]=y[d];let b={ctx:p,index:Ms};return s&&(b.index=p[s.startsWith("#")?s.substring(1):s]=ae(f)),b}}}Tt(e){if(!e)return o=>o;let n=e.trim();if(!n)return o=>o;if(n.includes(".")){let o=this.Et(n),r=o.length>1?o.slice(1):void 0;return s=>{let i=A(s),a=this.Ie(i,o);return a!==void 0||!r?a:this.Ie(i,r)}}return o=>{var r;return A((r=A(o))==null?void 0:r[n])}}Et(e){return e.split(".").filter(n=>n.length>0)}Ie(e,n){var r;let o=e;for(let s of n)o=(r=A(o))==null?void 0:r[s];return A(o)}};m(Yt,"Rt",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var Xt=Yt;var Zt=class{constructor(e){m(this,"ue",0);m(this,"le",new Map);m(this,"m");m(this,"Pe");m(this,"De");m(this,"Ue");m(this,"V");m(this,"q");m(this,"r");m(this,"R");m(this,"Be");this.m=e,this.r=e.r,this.De=new Xt(this),this.Pe=new Lt(this),this.Ue=new Wt(this),this.V=new zt(this),this.q=new Kt(this),this.R=this.r.p.pre,this.Be=this.r.p.dynamic}Ct(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);De(this,i)}}$(e){++this.ue;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.Ct(e),this.we(e,!0)}finally{--this.ue,this.ue===0&&this.wt()}}vt(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.vt(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,K(s,()=>{W(e)}),o.appendChild(e),!0}St(e,n){this.le.set(e,n)}wt(){let e=this.le;if(e.size!==0){this.le=new Map;for(let[n,o]of e.entries())this.He(n,o)}}we(e,n){var s;let o=this.q.Ce(e,n),r=this.r.B;for(let[i,a]of o.entries()){let[c,l]=a.ne,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.re)}}}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(lt);if(f)return f;u=u.parentElement}return null};if(wn()){let l=c(n);if(l){this.m.E(yo(l),()=>{this.O(e,n,a,s,i)});return}}this.O(e,n,a,s,i)}At(e,n,o){return e!==Dt?!1:(F(o)||this.He(n,o)||this.St(n,o),!0)}O(e,n,o,r,s){if(n.nodeType!==Node.ELEMENT_NODE||o==null||this.At(e,n,o))return;let i=this.kt(r,e.once),a=this.Mt(e,o),c=this.Vt(a,i);K(n,c.stop);let l=this.Ot(n,o,a,i,r,s),u=this.Nt(e,l,c);if(!u)return;let f=this.Lt(l,a,i,r,u);f(),e.once||(c.result=a.subscribe(f),i&&(c.dynamic=i.subscribe(f)))}kt(e,n){let o=Co(e,this.Be);if(o)return this.m.N(z(o),void 0,void 0,void 0,n)}Mt(e,n){return this.m.N(n,e.isLazy,e.isLazyKey,e.collectRefObj,e.once)}Vt(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}Ot(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}}Nt(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}Lt(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 ko="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 ks(t){return!!t||t===""}var Ls=(t,e,n,o,r,s)=>{var a;if(o){s&&s.includes("camel")&&(o=z(o)),en(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];en(t,f,p,u)}else if(L(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;en(t,f,p,b)}else{let u=n==null?void 0:n[c],f=e[c++],p=e[c];en(t,f,p,u)}}},In={mount:()=>({update:({el:t,values:e,previousValues:n,option:o,previousOption:r,flags:s})=>{Ls(t,e,n,o,r,s)}})},en=(t,e,n,o)=>{if(o&&o!==e&&t.removeAttribute(o),me(e)){j(3,"r-bind",t);return}if(!J(e)){j(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){me(n)?t.removeAttributeNS(ko,e.slice(6,e.length)):t.setAttributeNS(ko,e,n);return}let r=e in Os;me(n)||r&&!ks(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(w(s)){let a=s.length;for(let c=0;c<a;++c)Lo(t,s[c],i==null?void 0:i[c])}else Lo(t,s,i)}},Vn={mount:()=>({update:({el:t,values:e,previousValues:n})=>{Is(t,e,n)}})},Lo=(t,e,n)=>{let o=A(e),r=A(n),s=t.classList,i=J(o),a=J(r);if(o&&!i){let c=o;if(r&&!a){let l=r;for(let u in l)(!(u in c)||!A(c[u]))&&s.remove(u)}for(let l in c)A(c[l])&&s.add(l)}else if(i){if(r!==o){let c=a?et(r):[],l=et(o);c.length>0&&s.remove(...c),l.length>0&&s.add(...l)}}else if(r){let c=a?et(r):[];c.length>0&&s.remove(...c)}};function Vs(t,e){if(t.length!==e.length)return!1;let n=!0;for(let o=0;n&&o<t.length;o++)n=Ae(t[o],e[o]);return n}function Ae(t,e){if(t===e)return!0;let n=Tn(t),o=Tn(e);if(n||o)return n&&o?t.getTime()===e.getTime():!1;if(n=ct(t),o=ct(e),n||o)return t===e;if(n=w(t),o=w(e),n||o)return n&&o?Vs(t,e):!1;if(n=L(t),o=L(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||!Ae(t[i],e[i]))return!1}return!0}return String(t)===String(e)}function tn(t,e){return t.findIndex(n=>Ae(n,e))}var Io=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var nn=t=>{if(!C(t))throw q(3,"pause");t(void 0,void 0,3)};var on=t=>{if(!C(t))throw q(3,"resume");t(void 0,void 0,4)};var Po={mount:({el:t,parseResult:e,flags:n})=>({update:({values:o})=>{Ps(t,o[0])},unmount:Ds(t,e,n)})},Ps=(t,e)=>{let n=Bo(t);if(n&&Do(t))w(e)?e=tn(e,Ne(t))>-1:le(e)?e=e.has(Ne(t)):e=_s(t,e),t.checked=e;else if(n&&Uo(t))t.checked=Ae(e,Ne(t));else if(n||$o(t))Ho(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(jo(t)){let o=t.options,r=o.length,s=t.multiple;for(let i=0;i<r;i++){let a=o[i],c=Ne(a);if(s)w(e)?a.selected=tn(e,c)>-1:a.selected=e.has(c);else if(Ae(Ne(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else j(7,t)},ht=t=>(C(t)&&(t=t()),G(t)&&(t=t()),t?J(t)?{trim:t.includes("trim"),lazy:t.includes("lazy"),number:t.includes("number"),int:t.includes("int")}:{trim:!!t.trim,lazy:!!t.lazy,number:!!t.number,int:!!t.int}:{trim:!1,lazy:!1,number:!1,int:!1}),Do=t=>t.type==="checkbox",Uo=t=>t.type==="radio",Ho=t=>t.type==="number"||t.type==="range",Bo=t=>t.tagName==="INPUT",$o=t=>t.tagName==="TEXTAREA",jo=t=>t.tagName==="SELECT",Ds=(t,e,n)=>{let o=e.value,r=ht(n==null?void 0:n.join(",")),s=ht(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 j(8,t),()=>{};let a=()=>e.refs[0],c=Bo(t);return c&&Do(t)?Hs(t,a):c&&Uo(t)?Fs(t,a):c||$o(t)?Us(t,i,a,o):jo(t)?qs(t,a,o):(j(7,t),()=>{})},Vo=/[.,' ·٫]/,Us=(t,e,n,o)=>{let s=e.lazy?"change":"input",i=Ho(t),a=()=>{!e.trim&&!ht(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 d=b.value,v=ht(o()[1]);if(i||v.number||v.int){if(v.int)d=parseInt(d);else{if(Vo.test(d[d.length-1])&&d.split(Vo).length===2){if(d+="0",d=parseFloat(d),isNaN(d))d="";else if(y()===d)return}d=parseFloat(d)}isNaN(d)&&(d=""),t.value=d}else v.trim&&(d=d.trim());y(d)};return t.addEventListener(s,f),t.addEventListener("change",a),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",l),t.addEventListener("change",l),u},Hs=(t,e)=>{let n="change",o=()=>{t.removeEventListener(n,r)},r=()=>{let s=e();if(!s)return;let i=Ne(t),a=t.checked,c=s();if(w(c)){let l=tn(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(js(t,a))};return t.addEventListener(n,r),o},Ne=t=>"_value"in t?t._value:t.value,_o="trueValue",Bs="falseValue",Fo="true-value",$s="false-value",js=(t,e)=>{let n=e?_o:Bs;if(n in t)return t[n];let o=e?Fo:$s;return t.hasAttribute(o)?t.getAttribute(o):e},_s=(t,e)=>{if(_o in t)return Ae(e,t.trueValue);let o=Fo;return t.hasAttribute(o)?Ae(e,t.getAttribute(o)):Ae(e,!0)},Fs=(t,e)=>{let n="change",o=()=>{t.removeEventListener(n,r)},r=()=>{let s=e();if(!s)return;let i=Ne(t);s(i)};return t.addEventListener(n,r),o},qs=(t,e,n)=>{let o="change",r=()=>{t.removeEventListener(o,s)},s=()=>{let i=e();if(!i)return;let c=ht(n()[1]).number,l=Array.prototype.filter.call(t.options,u=>u.selected).map(u=>c?Io(Ne(u)):Ne(u));if(t.multiple){let u=i();try{if(nn(i),le(u)){u.clear();for(let f of l)u.add(f)}else w(u)?(u.splice(0),u.push(...l)):i(l)}finally{on(i),ee(i)}}else i(l[0])};return t.addEventListener(o,s),r};var zs=["stop","prevent","capture","self","once","left","right","middle","passive"],Ks=t=>{let e={};if(F(t))return;let n=t.split(",");for(let o of zs)e[o]=n.includes(o);return e},Ws=(t,e,n,o,r)=>{var l,u;if(o){let f=e.value(),p=A(o.value()[0]);return J(p)?Pn(t,z(p),()=>e.value()[0],(l=r==null?void 0:r.join(","))!=null?l:f[1]):()=>{}}else if(n){let f=e.value();return Pn(t,z(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(G(p)&&(p=p()),L(p))for(let y of Object.entries(p)){let b=y[0],d=()=>{let T=e.value()[f];return G(T)&&(T=T()),T=T[b],G(T)&&(T=T()),T},v=p[b+"_flags"];s.push(Pn(t,b,d,v))}else j(2,"r-on",t)}return i},Dn={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})=>Ws(t,e,n,o,r)},Gs=(t,e)=>{if(t.startsWith("keydown")||t.startsWith("keyup")||t.startsWith("keypress")){e!=null||(e="");let n=[...t.split("."),...e.split(",")];t=n[0];let o=n[1],r=n.includes("ctrl"),s=n.includes("shift"),i=n.includes("alt"),a=n.includes("meta"),c=l=>!(r&&!l.ctrlKey||s&&!l.shiftKey||i&&!l.altKey||a&&!l.metaKey);return o?[t,l=>c(l)?l.key.toUpperCase()===o.toUpperCase():!1]:[t,c]}return[t,n=>!0]},Pn=(t,e,n,o)=>{if(F(e))return j(5,"r-on",t),()=>{};let r=Ks(o),s=r?{capture:r.capture,passive:r.passive,once:r.once}:void 0,i;[e,i]=Gs(e,o);let a=u=>{if(!i(u)||!n&&e==="submit"&&(r!=null&&r.prevent))return;let f=n(u);G(f)&&(f=f(u)),G(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 Js=(t,e,n,o)=>{if(n){o&&o.includes("camel")&&(n=z(n)),rt(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];rt(t,a,c)}else if(L(i))for(let a of Object.entries(i)){let c=a[0],l=a[1];rt(t,c,l)}else{let a=e[s++],c=e[s];rt(t,a,c)}}},qo={mount:()=>({update:({el:t,values:e,option:n,flags:o})=>{Js(t,e,n,o)}})};function Qs(t){return!!t||t===""}var rt=(t,e,n)=>{if(me(e)){j(3,":prop",t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(ye),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=Qs(n):n==null&&s==="string"?(n="",r=!0):s==="number"&&(n=0,r=!0)}try{t[e]=n}catch(s){r||j(4,e,o,n,s)}r&&t.removeAttribute(e)};var zo={once:!0,mount:({el:t,parseResult:e,expr:n})=>{let o=e,r=o.value()[0],s=w(r),i=o.refs[0];return s?r.push(t):i?i==null||i(t):o.context[n]=t,()=>{if(s){let a=r.indexOf(t);a!==-1&&r.splice(a,1)}else i==null||i(null)}}};var Xs=(t,e)=>{let n=Pe(t).data,o=n._ord;io(o)&&(o=n._ord=t.style.display),ft(e[0])?t.style.display=o:t.style.display="none"},Ko={mount:()=>({update:({el:t,values:e})=>{Xs(t,e)}})};var Ys=(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)Wo(t,s[c],i==null?void 0:i[c])}else Wo(t,s,i)}},rn={mount:()=>({update:({el:t,values:e,previousValues:n})=>{Ys(t,e,n)}})},Wo=(t,e,n)=>{let o=A(e),r=A(n),s=t.style,i=J(o);if(o&&!i){let a=o;if(r&&!J(r)){let c=r;for(let l in c)A(a[l])==null&&Hn(s,l,"")}for(let c in a)Hn(s,c,a[c])}else{let a=s.display;if(i?r!==o&&(s.cssText=o):r&&t.removeAttribute("style"),"_ord"in Pe(t).data)return;s.display=a}},Go=/\s*!important$/;function Hn(t,e,n){let o=A(n);if(w(o))o.forEach(r=>{Hn(t,e,r)});else{let r=o==null?"":String(o);if(e.startsWith("--"))t.setProperty(e,r);else{let s=Zs(t,e);Go.test(r)?t.setProperty(Ze(s),r.replace(Go,""),"important"):t[s]=r}}}var Jo=["Webkit","Moz","ms"],Un={};function Zs(t,e){let n=Un[e];if(n)return n;let o=z(e);if(o!=="filter"&&o in t)return Un[e]=o;o=mt(o);for(let r=0;r<Jo.length;r++){let s=Jo[r]+o;if(s in t)return Un[e]=s}return e}var ce=t=>Qo(A(t)),Qo=(t,e=new WeakMap)=>{if(!t||!L(t))return t;if(w(t))return t.map(ce);if(le(t)){let o=new Set;for(let r of t.keys())o.add(ce(r));return o}if(Le(t)){let o=new Map;for(let r of t)o.set(ce(r[0]),ce(r[1]));return o}if(e.has(t))return A(e.get(t));let n=Ct({},t);e.set(t,n);for(let o of Object.entries(n))n[o[0]]=Qo(A(o[1]),e);return n};var ei=(t,e)=>{var o;let n=e[0];t.textContent=le(n)?JSON.stringify(ce([...n])):Le(n)?JSON.stringify(ce([...n])):L(n)?JSON.stringify(ce(n)):(o=n==null?void 0:n.toString())!=null?o:""},Xo={mount:()=>({update:({el:t,values:e})=>{ei(t,e)}})};var Yo={mount:()=>({update:({el:t,values:e})=>{rt(t,"value",e[0])}})};var He=class He{constructor(e){m(this,"B",{});m(this,"p",{});m(this,"ft",()=>Object.keys(this.B).filter(e=>e.length===1||!e.startsWith(":")));m(this,"ee",new Map);m(this,"F",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.Pt()}static getDefault(){var e;return(e=He.je)!=null?e:He.je=new He}Pt(){let e={},n=globalThis;for(let o of He.It.split(","))e[o]=n[o];return e.ref=xe,e.sref=ae,e.flatten=ce,e}addComponent(...e){for(let n of e){if(!n.defaultName){$e.warning("Registered component's default name is not defined",n);continue}this.ee.set(mt(n.defaultName),n),this.F.set(mt(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this.B={".":qo,":":In,"@":Dn,[`${e}on`]:Dn,[`${e}bind`]:In,[`${e}html`]:Gt,[`${e}text`]:Xo,[`${e}show`]:Ko,[`${e}model`]:Po,":style":rn,[`${e}style`]:rn,[`${e}bind:style`]:rn,":class":Vn,[`${e}bind:class`]:Vn,":ref":zo,":value":Yo,[`${e}teleport`]:Dt},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(He,"je"),m(He,"It","Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");var pe=He;var sn=(t,e)=>{if(!t)return;let o=(e!=null?e:pe.getDefault()).p,r=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of ni(t,o.pre,s))ti(i,o.text,r,s)},ti=(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=Zo(l,o);if(u&&F(i[0])&&F(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=Zo(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)},ni=(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 Se(s))r(a)}};return r(t),o},Zo=(t,e)=>e.find(n=>t.startsWith(n.start)&&t.endsWith(n.end));var oi=9,ri=10,si=13,ii=32,Me=46,an=44,ai=39,ci=34,cn=40,st=41,un=91,Bn=93,$n=63,ui=59,er=58,tr=123,fn=125,qe=43,ln=45,jn=96,nr=47,_n=92,or=new Set([2,3]),ur={"=":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},fi=no(Ct({"=>":2},ur),{"||":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}),fr=Object.keys(ur),li=new Set(fr),qn=new Set(["=>"]);fr.forEach(t=>qn.add(t));var rr={true:!0,false:!1,null:null},pi="this",it="Expected ",ze="Unexpected ",Kn="Unclosed ",mi=it+":",sr=it+"expression",di="missing }",hi=ze+"object property",yi=Kn+"(",ir=it+"comma",ar=ze+"token ",gi=ze+"period",Fn=it+"expression after ",bi="missing unaryOp argument",Ti=Kn+"[",xi=it+"exponent (",Ci="Variable names cannot start with a number (",Ei=Kn+'quote after "',yt=t=>t>=48&&t<=57,cr=t=>fi[t],zn=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}z(e){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>=128}fe(e){return this.z(e)||yt(e)}i(e){return new Error(`${e} at character ${this.e}`)}g(){let e=this.h,n=this.u,o=this.e;for(;e===ii||e===oi||e===ri||e===si;)e=n.charCodeAt(++o);this.e=o}parse(){let e=this.de();return e.length===1?e[0]:{type:0,body:e}}de(e){let n=[];for(;this.e<this.u.length;){let o=this.h;if(o===ui||o===an)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(ze+'"'+this.H+'"')}}}return n}S(){var n;let e=(n=this.Dt())!=null?n:this.$e();return this.g(),this.Ut(e)}me(){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.fe(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.W(),!s||(n=this.me(),!n))return s;if(r={value:n,prec:cr(n),right_a:qn.has(n)},i=this.W(),!i)throw this.i(Fn+n);let l=[s,r,i];for(;n=this.me();){o=cr(n),r={value:n,prec:o,right_a:qn.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.W(),!e)throw this.i(Fn+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}W(){let e;if(this.g(),e=this.Bt(),e)return this.ye(e);let n=this.h;if(yt(n)||n===Me)return this.Ht();if(n===ai||n===ci)e=this.jt();else if(n===un)e=this.$t();else{let o=this._t();if(o){let r=this.W();if(!r)throw this.i(bi);return this.ye({type:7,operator:o,argument:r})}this.z(n)?(e=this.he(),e.name in rr?e={type:4,value:rr[e.name],raw:e.name}:e.name===pi&&(e={type:5})):n===cn&&(e=this.Ft())}return e?(e=this.G(e),this.ye(e)):!1}_e(e,n,o){if(e==="=>"){let r=n.type===1?n.expressions:[n];return{type:15,params:r,body:o}}return li.has(e)?{type:16,operator:e,left:n,right:o}:{type:8,operator:e,left:n,right:o}}Bt(){let e={node:!1};return this.qt(e),e.node||(this.Kt(e),e.node)||(this.zt(e),e.node)||(this.Fe(e),e.node)||this.Wt(e),e.node}ye(e){let n={node:e};return this.Gt(n),this.Jt(n),this.Qt(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===ln?(this.e++,"-"):o===33?(this.e++,"!"):o===126?(this.e++,"~"):o===qe?(this.e++,"+"):o===110&&r===101&&s===119&&!this.fe(i)?(this.e+=3,"new"):!1}Dt(){let e={};return this.Xt(e),e.node}Ut(e){let n={node:e};return this.Yt(n),n.node}G(e){this.g();let n=this.h;for(;n===Me||n===un||n===cn||n===$n;){let o;if(n===$n){if(this.u.charCodeAt(this.e+1)!==Me)break;o=!0,this.e+=2,this.g(),n=this.h}if(this.e++,n===un){if(e={type:3,computed:!0,object:e,property:this.S()},this.g(),n=this.h,n!==Bn)throw this.i(Ti);this.e++}else n===cn?e={type:6,arguments:this.qe(st),callee:e}:(o&&this.e--,this.g(),e={type:3,computed:!1,object:e,property:this.he()});o&&(e.optional=!0),this.g(),n=this.h}return e}Ht(){let e=this.u,n=this.e,o=n;for(;yt(e.charCodeAt(o));)o++;if(e.charCodeAt(o)===Me)for(o++;yt(e.charCodeAt(o));)o++;let r=e.charCodeAt(o);if(r===101||r===69){o++;let a=e.charCodeAt(o);(a===qe||a===ln)&&o++;let c=o;for(;yt(e.charCodeAt(o));)o++;if(c===o){this.e=o;let l=e.slice(n,o);throw this.i(xi+l+this.H+")")}}this.e=o;let s=e.slice(n,o),i=e.charCodeAt(o);if(this.z(i))throw this.i(Ci+s+this.H+")");if(i===Me||s.length===1&&s.charCodeAt(0)===Me)throw this.i(gi);return{type:4,value:parseFloat(s),raw:s}}jt(){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===_n){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(Ei+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)}}he(){let e=this.h,n=this.e;if(this.z(e))this.e++;else throw this.i(ze+this.H);for(;this.e<this.u.length&&(e=this.h,this.fe(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===st&&r&&r>=n.length)throw this.i(ar+String.fromCharCode(e));break}else if(s===an){if(this.e++,r++,r!==n.length){if(e===st)throw this.i(ar+",");for(let i=n.length;i<r;i++)n.push(null)}}else{if(n.length!==r&&r!==0)throw this.i(ir);{let i=this.S();if(!i||i.type===0)throw this.i(ir);n.push(i)}}}if(!o)throw this.i(it+String.fromCharCode(e));return n}Ft(){this.e++;let e=this.de(st);if(this.f(st))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.i(yi)}$t(){return this.e++,{type:9,elements:this.qe(Bn)}}qt(e){if(this.f(tr)){this.e++;let n=[];for(;!isNaN(this.h);){if(this.g(),this.f(fn)){this.e++,e.node=this.G({type:10,properties:n});return}let o=this.S();if(!o)break;if(this.g(),o.type===2&&(this.f(an)||this.f(fn)))n.push({type:12,computed:!1,key:o,value:o,shorthand:!0});else if(this.f(er)){this.e++;let r=this.S();if(!r)throw this.i(hi);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(an)&&this.e++}throw this.i(di)}}Kt(e){let n=this.h;if((n===qe||n===ln)&&n===this.u.charCodeAt(this.e+1)){this.e+=2;let o=e.node={type:13,operator:n===qe?"++":"--",argument:this.G(this.he()),prefix:!0};if(!o.argument||!or.has(o.argument.type))throw this.i(ze+o.operator)}}Jt(e){let n=e.node,o=this.h;if((o===qe||o===ln)&&o===this.u.charCodeAt(this.e+1)){if(!or.has(n.type))throw this.i(ze+(o===qe?"++":"--"));this.e+=2,e.node={type:13,operator:o===qe?"++":"--",argument:n,prefix:!1}}}zt(e){this.u.charCodeAt(this.e)===Me&&this.u.charCodeAt(this.e+1)===Me&&this.u.charCodeAt(this.e+2)===Me&&(this.e+=3,e.node={type:14,argument:this.S()})}Yt(e){if(e.node&&this.f($n)){this.e++;let n=e.node,o=this.S();if(!o)throw this.i(sr);if(this.g(),this.f(er)){this.e++;let r=this.S();if(!r)throw this.i(sr);e.node={type:11,test:n,consequent:o,alternate:r}}else throw this.i(mi)}}Xt(e){if(this.g(),this.f(cn)){let n=this.e;if(this.e++,this.g(),this.f(st)){this.e++;let o=this.me();if(o==="=>"){let r=this.$e();if(!r)throw this.i(Fn+o);e.node={type:15,params:null,body:r};return}}this.e=n}}Qt(e){let n=e.node,o=n.type;(o===2||o===3)&&this.f(jn)&&(e.node={type:17,tag:n,quasi:this.Fe(e)})}Fe(e){if(!this.f(jn))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===jn)return l(!0),this.e+=1,e.node=r,r;if(u===36&&n.charCodeAt(this.e+1)===tr){if(l(!1),this.e+=2,r.expressions.push(...this.de(fn)),!this.f(fn))throw this.i("unclosed ${");this.e+=1,s=this.e}else if(u===_n){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 `")}Gt(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}Wt(e){if(!this.f(nr))return;let n=++this.e,o=!1;for(;this.e<this.u.length;){if(this.h===nr&&!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.G(e.node),e.node}this.f(un)?o=!0:o&&this.f(Bn)&&(o=!1),this.e+=this.f(_n)?2:1}throw this.i("Unclosed Regex")}},lr=t=>new zn(t).parse();var Ri={"=>":(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)=>xt(t,e)},wi={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},hr=t=>{if(!(t!=null&&t.some(dr)))return t;let e=[];return t.forEach(n=>dr(n)?e.push(...n):e.push(n)),e},pr=(...t)=>hr(t),Wn=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},vi={"++":(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]}},Si={"++":(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]--}},mr={"=":(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(xt(o(),n)):t[e]=xt(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}},pn=(t,e)=>G(t)?t.bind(e):t,Gn=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],pn(A(o[r]),o);for(let i of this.l)if(r in i)return this.A=i[r],pn(A(i[r]),i);let s=this.ze;if(s&&r in s)return this.A=s[r],pn(A(s[r]),s)}5(e,n,o){return this.l[0]}0(e,n,o){return this.Ye(n,o,pr,...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.ge(e,n,o),i=r==null?void 0:r[s];return this.A=i,pn(A(i),r)}4(e,n,o){return e.value}6(e,n,o){let r=(i,...a)=>G(i)?i(...hr(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,wi[e.operator],e.argument)}8(e,n,o){let r=Ri[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,pr,...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,Wn(f,o)),l=f=>this.Ze(a,e.value,n,Wn(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=A(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}ge(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?vi:Si;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.ge(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 mr[s](a,i,c)}if(r.type===3){let{obj:i,key:a}=this.ge(r,n,o),c=this.b(e.right,n,o);return mr[s](i,a,c)}}14(e,n,o){let r=this.b(e.argument,n,o);return w(r)&&(r.s=yr),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=A(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}=$t(()=>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,Wn(l,n)):this.b(a,e,n)));return o(...i)}},yr=Symbol("s"),dr=t=>(t==null?void 0:t.s)===yr,gr=(t,e,n,o,r,s,i)=>new Gn(e,n,o,r,i).eval(t,s);var br={},Tr=t=>!!t,mn=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]}te(){return this.l.map(n=>n.components).filter(Tr).reverse().reduce((n,o)=>{for(let[r,s]of Object.entries(o))n[r.toUpperCase()]=s;return n},{})}lt(){let e=[],n=new Set,o=this.l.map(r=>r.components).filter(Tr).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 R=0;R<a.length;++R)a[R]();a.length=0},p={value:()=>i,stop:()=>{l(),c.clear()},subscribe:(R,H)=>(c.add(R),H&&R(i),()=>{c.delete(R)}),refs:[],context:this.l[0]};if(F(e))return p;let y=this.r.globalContext,b=[],d=new Set,v=(R,H,P,D)=>{try{let B=gr(R,H,y,n,o,D,r);return P&&B.refs.length>0&&b.push(...B.refs),{value:B.value,refs:B.refs,ref:B.ref}}catch(B){j(6,`evaluation error: ${e}`,B)}return{value:void 0,refs:[]}};try{let R=(T=br[e])!=null?T:lr("["+e+"]");br[e]=R;let H=this.l.slice(),P=R.elements,D=P.length,B=new Array(D);p.refs=B;let ue=()=>{b.length=0,s||(d.clear(),l());let Z=new Array(D);for(let V=0;V<D;++V){let x=P[V];if(n!=null&&n(V,-1)){Z[V]=_=>v(x,H,!1,{$event:_}).value;continue}let k=v(x,H,!0);Z[V]=k.value,B[V]=k.ref}if(!s)for(let V of b)d.has(V)||(d.add(V),a.push(ie(V,ue)));if(i=Z,c.size!==0)for(let V of c)c.has(V)&&V(i)};ue()}catch(R){j(6,`parse error: ${e}`,R)}return p}L(){return this.l.slice()}pe(e){this.tt.push(this.l),this.l=e}E(e,n){try{this.pe(e),n()}finally{this.Zt()}}Zt(){var e;this.l=(e=this.tt.pop())!=null?e:[]}};var xr=t=>{let e=t.charCodeAt(0);return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||t==="-"||t==="_"||t===":"},Ai=(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},Ni=(t,e)=>{let n=e?2:1;for(;n<t.length&&(t[n]===" "||t[n]===`
|
|
3
|
-
`);)++n;if(n>=t.length||!
|
|
1
|
+
"use strict";var Tt=Object.defineProperty,Uo=Object.defineProperties,Ho=Object.getOwnPropertyDescriptor,Bo=Object.getOwnPropertyDescriptors,$o=Object.getOwnPropertyNames,er=Object.getOwnPropertySymbols;var tr=Object.prototype.hasOwnProperty,jo=Object.prototype.propertyIsEnumerable;var xt=Math.pow,gn=(t,e,n)=>e in t?Tt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ct=(t,e)=>{for(var n in e||(e={}))tr.call(e,n)&&gn(t,n,e[n]);if(er)for(var n of er(e))jo.call(e,n)&&gn(t,n,e[n]);return t},nr=(t,e)=>Uo(t,Bo(e));var _o=(t,e)=>{for(var n in e)Tt(t,n,{get:e[n],enumerable:!0})},Fo=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of $o(e))!tr.call(t,o)&&o!==n&&Tt(t,o,{get:()=>e[o],enumerable:!(r=Ho(e,o))||r.enumerable});return t};var qo=t=>Fo(Tt({},"__esModule",{value:!0}),t);var m=(t,e,n)=>gn(t,typeof e!="symbol"?e+"":e,n);var rr=(t,e,n)=>new Promise((r,o)=>{var s=c=>{try{a(n.next(c))}catch(l){o(l)}},i=c=>{try{a(n.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,i);a((n=n.apply(t,e)).next())});var Hi={};_o(Hi,{ComponentHead:()=>Qe,ContextRegistry:()=>hn,RegorConfig:()=>pe,addUnbinder:()=>K,batch:()=>Do,collectRefs:()=>$t,computeMany:()=>No,computeRef:()=>Mo,computed:()=>Ao,createApp:()=>wo,defineComponent:()=>vo,drainUnbind:()=>sr,endBatch:()=>Yn,entangle:()=>tt,flatten:()=>ce,getBindData:()=>Pe,html:()=>yn,isDeepRef:()=>_e,isRaw:()=>nt,isRef:()=>C,markRaw:()=>Oo,observe:()=>ie,observeMany:()=>Vo,observerCount:()=>Po,onMounted:()=>So,onUnmounted:()=>oe,pause:()=>nn,persist:()=>ko,pval:()=>pr,raw:()=>Lo,ref:()=>xe,removeNode:()=>W,resume:()=>rn,silence:()=>Bt,sref:()=>ae,startBatch:()=>Xn,svg:()=>Io,toFragment:()=>Ke,toJsonTemplate:()=>at,trigger:()=>ee,unbind:()=>ye,unref:()=>A,useScope:()=>Ht,warningHandler:()=>$e,watchEffect:()=>Fe});module.exports=qo(Hi);var Ge=Symbol(":regor");var ye=t=>{let e=[t];for(let n=0;n<e.length;++n){let r=e[n];zo(r);for(let o=r.lastChild;o!=null;o=o.previousSibling)e.push(o)}},zo=t=>{let e=t[Ge];if(!e)return;let n=e.unbinders;for(let r=0;r<n.length;++r)n[r]();n.length=0,t[Ge]=void 0};var Je=[],Et=!1,Rt,or=()=>{if(Et=!1,Rt=void 0,Je.length!==0){for(let t=0;t<Je.length;++t)ye(Je[t]);Je.length=0}},W=t=>{t.remove(),Je.push(t),Et||(Et=!0,Rt=setTimeout(or,1))},sr=()=>rr(null,null,function*(){Je.length===0&&!Et||(Rt&&clearTimeout(Rt),or())});var G=t=>typeof t=="function",J=t=>typeof t=="string",ir=t=>typeof t=="undefined",me=t=>t==null||typeof t=="undefined",j=t=>typeof t!="string"||!(t!=null&&t.trim()),Ko=Object.prototype.toString,bn=t=>Ko.call(t),Le=t=>bn(t)==="[object Map]",le=t=>bn(t)==="[object Set]",Tn=t=>bn(t)==="[object Date]",ct=t=>typeof t=="symbol",w=Array.isArray,L=t=>t!==null&&typeof t=="object";var ar={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."},q=(t,...e)=>{let n=ar[t];return new Error(G(n)?n.call(ar,...e):n)};var wt=[],cr=()=>{let t={onMounted:[],onUnmounted:[]};return wt.push(t),t},Be=t=>{let e=wt[wt.length-1];if(!e&&!t)throw q(2);return e},ur=t=>{let e=Be();return t&&Cn(t),wt.pop(),e},xn=Symbol("csp"),Cn=t=>{let e=t,n=e[xn];if(n){let r=Be();if(n===r)return;r.onMounted.length>0&&n.onMounted.push(...r.onMounted),r.onUnmounted.length>0&&n.onUnmounted.push(...r.onUnmounted);return}e[xn]=Be()},vt=t=>t[xn];var Ie=t=>{var n,r;let e=(n=vt(t))==null?void 0:n.onUnmounted;e==null||e.forEach(o=>{o()}),(r=t.unmounted)==null||r.call(t)};var fr={8:t=>`Model binding requires a ref at ${t.outerHTML}`,7:t=>`Model binding is not supported on ${t.tagName} element at ${t.outerHTML}`,0:(t,e)=>`${t} binding expression is missing at ${e.outerHTML}`,1:(t,e,n)=>`invalid ${t} expression: ${e} at ${n.outerHTML}`,2:(t,e)=>`${t} requires object expression at ${e.outerHTML}`,3:(t,e)=>`${t} binder: key is empty on ${e.outerHTML}.`,4:(t,e,n,r)=>({msg:`Failed setting prop "${t}" on <${e.toLowerCase()}>: value ${n} is invalid.`,args:[r]}),5:(t,e)=>`${t} binding missing event type at ${e.outerHTML}`,6:(t,e)=>({msg:t,args:[e]})},_=(t,...e)=>{let n=fr[t],r=G(n)?n.call(fr,...e):n,o=$e.warning;o&&(J(r)?o(r):o(r,...r.args))},$e={warning:console.warn};var St=Symbol("ref"),te=Symbol("sref"),At=Symbol("raw");var C=t=>t!=null&&t[te]===1;var Ve=class extends Error{constructor(n,r){super(r);m(this,"propPath");m(this,"detail");this.name="PropValidationError",this.propPath=n,this.detail=r}},be=(t,e)=>{throw new Ve(t,`${e}.`)},Nt=t=>{var n;if(t===null)return"null";if(t===void 0)return"undefined";if(C(t))return`ref<${Nt(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"},Wo=t=>t.length>60?`${t.slice(0,57)}...`:t,ut=(t,e=0)=>{if(e>1)return"unknown";if(C(t)){let s=t();return`ref(${ut(s,e+1)})`}if(typeof t=="string")return Wo(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=>ut(i,e+1)).join(", ");return t.length>5?`[${s}, ...]`:`[${s}]`}if(L(t)){let s=Object.entries(t).slice(0,5);if(s.length===0)return"{}";let i=s.map(([a,c])=>{let l=ut(c,e+1);return`${a}: ${l}`}).join(", ");return Object.keys(t).length>5?`{ ${i}, ... }`:`{ ${i} }`}return"unknown"},fe=t=>{if(C(t))return`got ${Nt(t)}(${ut(t())})`;let e=Nt(t),n=ut(t);return`got ${e} (${n})`},Go=t=>t instanceof Ve?t.detail:t instanceof Error?t.message:String(t),lr=(t,e)=>{let n=`, ${fe(e)}.`;return t.endsWith(n)?t.slice(0,-n.length):t},Jo=(t,e,n)=>{if(e instanceof Ve){if(e.propPath===t)return lr(e.detail,n);if(e.propPath===`${t}.value`&&C(n)){let r=lr(e.detail,n());return r.startsWith("expected ")?`expected ref<${r.slice(9)}>`:`expected ref where ${r}`}}return Go(e)},Qo=(t,e,n)=>{let r=[];for(let o of e){let s=Jo(t,o,n);r.includes(s)||r.push(s)}return r.length===0?fe(n):r.length===1?`${r[0]}, ${fe(n)}`:`${r.join(" or ")}, ${fe(n)}`},Xo=t=>typeof t=="string"?`"${t}"`:typeof t=="number"||typeof t=="boolean"?String(t):t===null?"null":t===void 0?"undefined":Nt(t),Yo=(t,e)=>{typeof t!="string"&&be(e,`expected string, ${fe(t)}`)},Zo=(t,e)=>{typeof t!="number"&&be(e,`expected number, ${fe(t)}`)},es=(t,e)=>{typeof t!="boolean"&&be(e,`expected boolean, ${fe(t)}`)},ts=t=>(e,n)=>{e instanceof t||be(n,`expected instance of ${t.name||"provided class"}, ${fe(e)}`)},ns=t=>(e,n,r)=>{e!==void 0&&t(e,n,r)},rs=t=>(e,n,r)=>{e!==null&&t(e,n,r)},os=(...t)=>(e,n,r)=>{let o=[];for(let s of t)try{s(e,n,r);return}catch(i){o.push(i)}be(n,Qo(n,o,e))},ss=t=>(e,n)=>{t.includes(e)||be(n,`expected one of ${t.map(r=>Xo(r)).join(", ")}, ${fe(e)}`)},is=t=>(e,n,r)=>{w(e)||be(n,`expected array, ${fe(e)}`);let o=e;for(let s=0;s<o.length;++s)t(o[s],`${n}[${s}]`,r)};function as(t){return(e,n,r)=>{L(e)||be(n,`expected object, ${fe(e)}`);let o=e;for(let s in t){let i=t[s];if(!i)continue;i(o[s],`${n}.${s}`,r)}}}var cs=t=>(e,n,r)=>{if(C(e)){t(e(),`${n}.value`,r);return}be(n,`expected ref, ${fe(e)}`)},pr={fail:be,describe:fe,isString:Yo,isNumber:Zo,isBoolean:es,isClass:ts,optional:ns,nullable:rs,or:os,oneOf:ss,arrayOf:is,shape:as,refOf:cs};var us=(t,e,n)=>{var i,a;let r=((a=(i=t.tagName)==null?void 0:i.toLowerCase)==null?void 0:a.call(i))||"unknown",o=n instanceof Ve?n.propPath:e,s=n instanceof Ve?n.detail:n instanceof Error?n.message:String(n);return n instanceof Error?new Error(`Invalid prop "${o}" on <${r}>: ${s}`,{cause:n}):new Error(`Invalid prop "${o}" on <${r}>: ${s}`,{cause:n})},Qe=class{constructor(e,n,r,o,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,"J");m(this,"Q");m(this,"emit",(e,n)=>{this.J.dispatchEvent(new CustomEvent(e,{detail:n}))});this.props=e,this.J=n,this.ctx=r,this.start=o,this.end=s,this.Q=i}findContext(e,n=0){var o;if(n<0)return;let r=0;for(let s of(o=this.ctx)!=null?o:[])if(s instanceof e){if(r===n)return s;++r}}requireContext(e,n=0){let r=this.findContext(e,n);if(r!==void 0)return r;throw new Error(`${e} was not found in the context stack at occurrence ${n}.`)}validateProps(e){if(this.Q==="off")return;let n=this.props;for(let r in e){let o=e[r];if(!o)continue;let s=o;try{s(n[r],r,this)}catch(i){let a=us(this.J,r,i);if(this.Q==="warn"){$e.warning(a.message,a);continue}throw a}}}unmount(){let e=this.start.nextSibling,n=this.end;for(;e&&e!==n;)W(e),e=e.nextSibling;for(let r of this.ctx)Ie(r)}};var Pe=t=>{let e=t,n=e[Ge];if(n)return n;let r={unbinders:[],data:{}};return e[Ge]=r,r};var K=(t,e)=>{Pe(t).unbinders.push(e)};var ft=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 Ot={},Mt={},mr=1,dr=t=>{let e=(mr++).toString();return Ot[e]=t,Mt[e]=0,e},En=t=>{Mt[t]+=1},Rn=t=>{--Mt[t]===0&&(delete Ot[t],delete Mt[t])},hr=t=>Ot[t],wn=()=>mr!==1&&Object.keys(Ot).length>0,lt="r-switch",fs=t=>{let e=t.filter(r=>we(r)).map(r=>[...r.querySelectorAll("[r-switch]")].map(o=>o.getAttribute(lt))),n=new Set;return e.forEach(r=>{r.forEach(o=>o&&n.add(o))}),[...n]},Xe=(t,e)=>{if(!wn())return;let n=fs(e);n.length!==0&&(n.forEach(En),K(t,()=>{n.forEach(Rn)}))};var kt=()=>{},vn=(t,e,n,r)=>{let o=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,r),o.push(i)}De(e,o)},Sn=Symbol("r-if"),yr=Symbol("r-else"),gr=t=>t[yr]===1,Lt=class{constructor(e){m(this,"r");m(this,"V");m(this,"Te");m(this,"X");m(this,"Y");m(this,"x");m(this,"R");this.r=e,this.V=e.o.p.if,this.Te=Vt(e.o.p.if),this.X=e.o.p.else,this.Y=e.o.p.elseif,this.x=e.o.p.for,this.R=e.o.p.pre}ot(e,n){let r=e.parentElement;for(;r!==null&&r!==document.documentElement;){if(r.hasAttribute(n))return!0;r=r.parentElement}return!1}M(e){let n=e.hasAttribute(this.V);return n&&this.y(e),e.hasAttribute(this.r.o.p.is)||e.hasAttribute("is")||this.r.E.Z(e)||this.r.E.j(e,o=>{o.hasAttribute(this.V)&&this.y(o)}),n}ee(e){return e[Sn]?!0:(e[Sn]=!0,It(e,this.Te).forEach(n=>n[Sn]=!0),!1)}y(e){if(e.hasAttribute(this.R)||this.ee(e)||this.ot(e,this.x))return;let n=e.getAttribute(this.V);if(!n){_(0,this.V,e);return}e.removeAttribute(this.V),this.O(e,n)}U(e,n,r){let o=Ye(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${r!=null?r:""}`);s.insertBefore(i,e),Xe(i,o),o.forEach(c=>{W(c)}),e.remove(),n!=="if"&&(e[yr]=1);let a=document.createComment(`__end__ :${n}${r!=null?r:""}`);return s.insertBefore(a,i.nextSibling),{nodes:o,parent:s,commentBegin:i,commentEnd:a}}Re(e,n){if(!e)return[];let r=e.nextElementSibling;if(e.hasAttribute(this.X)){e.removeAttribute(this.X);let{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.U(e,"else");return[{mount:()=>{vn(o,this.r,s,a)},unmount:()=>{ve(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let o=e.getAttribute(this.Y);if(!o)return[];e.removeAttribute(this.Y);let{nodes:s,parent:i,commentBegin:a,commentEnd:c}=this.U(e,"elseif",` => ${o} `),l=this.r.m.N(o),u=l.value,f=this.Re(r,n),p=kt;return K(a,()=>{l.stop(),p(),p=kt}),p=l.subscribe(n),[{mount:()=>{vn(s,this.r,i,c)},unmount:()=>{ve(a,c)},isTrue:()=>ft(u()[0]),isMounted:!1},...f]}}O(e,n){let r=e.nextElementSibling,{nodes:o,parent:s,commentBegin:i,commentEnd:a}=this.U(e,"if",` => ${n} `),c=this.r.m.N(n),l=c.value,u=!1,f=this.r.m,p=f.L(),y=()=>{f.C(p,()=>{if(ft(l()[0]))u||(vn(o,this.r,s,a),u=!0),b.forEach(T=>{T.unmount(),T.isMounted=!1});else{ve(i,a),u=!1;let T=!1;for(let R of b)!T&&R.isTrue()?(R.isMounted||(R.mount(),R.isMounted=!0),T=!0):(R.unmount(),R.isMounted=!1)}})},b=this.Re(r,y),d=kt;K(i,()=>{c.stop(),d(),d=kt}),y(),d=c.subscribe(y)}};var Ye=t=>{let e=de(t)?t.content.childNodes:[t],n=[];for(let r=0;r<e.length;++r){let o=e[r];if(o.nodeType===1){let s=o==null?void 0:o.tagName;if(s==="SCRIPT"||s==="STYLE")continue}n.push(o)}return n},De=(t,e)=>{for(let n=0;n<e.length;++n){let r=e[n];r.nodeType===Node.ELEMENT_NODE&&(gr(r)||t.$(r))}},It=(t,e)=>{var r;let n=t.querySelectorAll(e);return(r=t.matches)!=null&&r.call(t,e)?[t,...n]:n},de=t=>t instanceof HTMLTemplateElement,we=t=>t.nodeType===Node.ELEMENT_NODE,pt=t=>t.nodeType===Node.ELEMENT_NODE,br=t=>t instanceof HTMLSlotElement,Se=t=>de(t)?t.content.childNodes:t.childNodes,ve=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let r=n.nextSibling;W(n),n=r}},Tr=function(){return this()},ls=function(t){return this(t)},ps=()=>{throw new Error("value is readonly.")},ms={get:Tr,set:ls,enumerable:!0,configurable:!1},ds={get:Tr,set:ps,enumerable:!0,configurable:!1},Ue=(t,e)=>{Object.defineProperty(t,"value",e?ds:ms)},xr=(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},Vt=t=>`[${CSS.escape(t)}]`,Pt=(t,e)=>(t.startsWith("@")&&(t=e.p.on+":"+t.slice(1)),t.includes("[")&&(t=t.replace(/[[\]]/g,e.p.dynamic)),t),An=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},hs=/-(\w)/g,z=An(t=>t&&t.replace(hs,(e,n)=>n?n.toUpperCase():"")),ys=/\B([A-Z])/g,Ze=An(t=>t&&t.replace(ys,"-$1").toLowerCase()),mt=An(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var Dt={mount:()=>{}};var et=t=>{let e=t.trim();return e?e.split(/\s+/):[]};var Ut=t=>{var n,r;let e=(n=vt(t))==null?void 0:n.onMounted;e==null||e.forEach(o=>{o()}),(r=t.mounted)==null||r.call(t)};var Nn=Symbol("scope"),Ht=t=>{try{cr();let e=t();Cn(e);let n={context:e,unmount:()=>Ie(e),[Nn]:1};return n[Nn]=1,n}finally{ur()}},Cr=t=>L(t)?Nn in t:!1;var Mn={collectRefObj:!0,mount:({parseResult:t})=>({update:({values:e})=>{let n=t.context,r=e[0];if(L(r))for(let o of Object.entries(r)){let s=o[0],i=o[1],a=n[s];a!==i&&(C(a)?a(i):n[s]=i)}}})};var oe=(t,e)=>{var n;(n=Be(e))==null||n.onUnmounted.push(t)};var ie=(t,e,n,r=!0)=>{if(!C(t))throw q(3,"observe");n&&e(t());let s=t(void 0,void 0,0,e);return r&&oe(s,!0),s};var tt=(t,e)=>{if(t===e)return()=>{};let n=ie(t,o=>e(o)),r=ie(e,o=>t(o));return e(t()),()=>{n(),r()}};var nt=t=>!!t&&t[At]===1;var _e=t=>(t==null?void 0:t[St])===1;var he=[],Er=t=>{var e;he.length!==0&&((e=he[he.length-1])==null||e.add(t))},Fe=t=>{if(!t)return()=>{};let e={stop:()=>{}};return gs(t,e),oe(()=>e.stop(),!0),e.stop},gs=(t,e)=>{if(!t)return;let n=[],r=!1,o=()=>{for(let s of n)s();n=[],r=!0};e.stop=o;try{let s=new Set;if(he.push(s),t(i=>n.push(i)),r)return;for(let i of[...s]){let a=ie(i,()=>{o(),Fe(t)});n.push(a)}}finally{he.pop()}},Bt=t=>{let e=he.length,n=e>0&&he[e-1];try{return n&&he.push(null),t()}finally{n&&he.pop()}},$t=t=>{try{let e=new Set;return he.push(e),{value:t(),refs:[...e]}}finally{he.pop()}};var ee=(t,e,n)=>{if(!C(t))return;let r=t;if(r(void 0,e,1),!n)return;let o=r();if(o){if(w(o)||le(o))for(let s of o)ee(s,e,!0);else if(Le(o))for(let s of o)ee(s[0],e,!0),ee(s[1],e,!0);if(L(o))for(let s in o)ee(o[s],e,!0)}};function bs(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var rt=(t,e,n)=>{n.forEach(function(r){let o=t[r];bs(e,r,function(...i){let a=o.apply(this,i),c=this[te];for(let l of c)ee(l);return a})})},jt=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var Rr=Array.prototype,On=Object.create(Rr),Ts=["push","pop","shift","unshift","splice","sort","reverse"];rt(Rr,On,Ts);var wr=Map.prototype,_t=Object.create(wr),xs=["set","clear","delete"];jt(_t,"Map");rt(wr,_t,xs);var vr=Set.prototype,Ft=Object.create(vr),Cs=["add","clear","delete"];jt(Ft,"Set");rt(vr,Ft,Cs);var Te={},ae=t=>{if(C(t)||nt(t))return t;let e={auto:!0,_value:t},n=c=>L(c)?te in c?!0:w(c)?(Object.setPrototypeOf(c,On),!0):le(c)?(Object.setPrototypeOf(c,Ft),!0):Le(c)?(Object.setPrototypeOf(c,_t),!0):!1:!1,r=n(t),o=new Set,s=(c,l)=>{if(Te.stack&&Te.stack.length){Te.stack[Te.stack.length-1].add(a);return}o.size!==0&&Bt(()=>{for(let u of[...o.keys()])o.has(u)&&u(c,l)})},i=c=>{let l=c[te];l||(c[te]=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):(Er(a),e._value)}switch(c[2]){case 0:{let u=c[3];if(!u)return()=>{};let f=p=>{o.delete(p)};return o.add(u),()=>{f(u)}}case 1:{let u=c[1],f=e._value;s(f,u);break}case 2:return o.size;case 3:{e.auto=!1;break}case 4:e.auto=!0}return e._value};return a[te]=1,Ue(a,!1),r&&i(t),a};var xe=t=>{if(nt(t))return t;let e;if(C(t)?(e=t,t=e()):e=ae(t),t instanceof Node||t instanceof Date||t instanceof RegExp||t instanceof Promise||t instanceof Error)return e;if(e[St]=1,w(t)){let n=t.length;for(let r=0;r<n;++r){let o=t[r];_e(o)||(t[r]=xe(o))}return e}if(!L(t))return e;for(let n of Object.entries(t)){let r=n[1];if(_e(r))continue;let o=n[0];ct(o)||(t[o]=null,t[o]=xe(r))}return e};var Sr=Symbol("modelBridge"),qt=()=>{},Es=t=>!!(t!=null&&t[Sr]),Rs=t=>{t[Sr]=1},ws=t=>{let e=xe(t());return Rs(e),e},Ar={collectRefObj:!0,mount:({parseResult:t,option:e})=>{if(typeof e!="string"||!e)return qt;let n=z(e),r,o,s=qt,i=()=>{s(),s=qt,r=void 0,o=void 0},a=()=>{s(),s=qt},c=(u,f)=>{r!==u&&(a(),s=tt(u,f),r=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(o&&p===o){o(u);return}if(i(),C(p)){p(u);return}f[n]=u;return}if(Es(u)){if(p===u)return;C(p)?c(u,p):f[n]=u;return}o||(o=ws(u)),f[n]=o,c(u,o)};return{update:()=>{l()},unmount:()=>{s()}}}};var zt=class{constructor(e){m(this,"r");m(this,"_");m(this,"Ee","");m(this,"Ce",-1);this.r=e,this._=e.o.p.inherit}M(e){this.st(e)}it(e){if(this.Ce!==e.size){let n=[...e.keys()];this.Ee=[...n,...n.map(Ze)].join(","),this.Ce=e.size}return this.Ee}ct(e){var n;for(let r=0;r<e.length;++r){let o=(n=e[r])==null?void 0:n.components;if(o)for(let s in o)return!0}return!1}pt(e){if(!de(e))return!1;let n=e.getAttributeNames();return e.hasAttribute("name")?!0:n.some(r=>r.startsWith("#"))}ut(e){return de(e)&&e.getAttributeNames().length===0}st(e){var l,u;let n=this.r,r=n.m,o=n.o.te,s=n.o.F;if(o.size===0&&!this.ct(r.l))return;let i=r.ne(),a=this.re();if(j(a))return;let c=this.lt(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=z(f.tagName).toUpperCase(),d=i[b],v=d!=null?d:s.get(b);if(!v)continue;let T=v.template;if(!T)continue;let R=f.parentElement;if(!R)continue;let H=new Comment(" begin component: "+f.tagName),P=new Comment(" end component: "+f.tagName);R.insertBefore(H,f),f.remove();let D=n.o.p.context,B=n.o.p.contextAlias,ue=n.o.p.bind,Z=(u=(l=v.props)==null?void 0:l.map(z))!=null?u:[],V=[],x=h=>h==="class"||h==="style",k=(h,M,S=!1)=>{let X={},$=h.hasAttribute(D);return r.C(M,()=>{if(r.v(X),$?n.y(Mn,h,D):h.hasAttribute(B)&&n.y(Mn,h,B),Z.length===0)return;let Y=new Map(Z.map(g=>[g.toLowerCase(),g]));for(let g of[...Z,...Z.map(Ze)]){let O=h.getAttribute(g);if(O===null)continue;let U=z(g);X[U]=O,S&&v.inheritAttrs===!0&&x(U)&&V.push({name:g,value:O}),h.removeAttribute(g)}let E=n.q.we(h,!1);for(let[g,O]of E.entries()){let[U,re]=O.oe;if(!re)continue;let Re=Y.get(z(re).toLowerCase());if(Re&&!(U!=="."&&U!==":"&&U!==ue)){if(S&&U!=="."&&v.inheritAttrs===!0&&x(Re)){let Zn=h.getAttribute(g);Zn!==null&&V.push({name:g,value:Zn})}n.y(Ar,h,g,!0,Re,O.se)}}}),X},F=[...r.L()],We=()=>{var X;let h=k(f,F,!0),M=new Qe(h,f,F,H,P,n.o.propValidationMode),S=Ht(()=>{var $;return($=v.context(M))!=null?$:{}}).context;if(M.autoProps){for(let[$,Y]of Object.entries(h))if($ in S){let E=S[$];if(E===Y)continue;if(C(E)){C(Y)?M.entangle?K(H,tt(Y,E)):E(Y()):E(Y);continue}}else S[$]=Y;for(let $ of Z)$ in S||(S[$]=void 0);(X=M.onAutoPropsAssigned)==null||X.call(M)}return{componentCtx:S,head:M}},{componentCtx:Ce,head:gt}=We(),N=[...Se(T)],bt=N.length,I=f.childNodes.length===0,Q=h=>{var Y;let M=h.parentElement,S=h.name;if(j(S)&&(S=h.getAttributeNames().filter(E=>E.startsWith("#"))[0],j(S)?S="default":S=S.substring(1)),I){if(S==="default"){let E=n.o.p.text,g=f.getAttribute(E);if(!j(g)){let O=document.createElement("span");O.setAttribute(E,g),M.insertBefore(O,h),f.removeAttribute(E);return}}for(let E of[...h.childNodes])M.insertBefore(E,h);return}let X=f.querySelector(`template[name='${S}'], template[\\#${S}]`);!X&&S==="default"&&(X=(Y=[...f.querySelectorAll("template:not([name])")].find(g=>this.ut(g)))!=null?Y:null);let $=E=>{gt.enableSwitch&&r.C(F,()=>{r.v(Ce);let g=k(h,r.L());r.C(F,()=>{r.v(g);let O=r.L(),U=dr(O);for(let re of E)we(re)&&(re.setAttribute(lt,U),En(U),K(re,()=>{Rn(U)}))})})};if(X){let E=[...Se(X)];for(let g of E)M.insertBefore(g,h);$(E)}else{if(S!=="default"){for(let g of[...Se(h)])M.insertBefore(g,h);return}let E=[...Se(f)].filter(g=>!this.pt(g));for(let g of E)M.insertBefore(g,h);$(E)}},ne=h=>{if(!we(h))return;let M=h.querySelectorAll("slot");if(br(h)){Q(h),h.remove();return}for(let S of M)Q(S),S.remove()};(()=>{for(let h=0;h<bt;++h)N[h]=N[h].cloneNode(!0),p.insertBefore(N[h],y),ne(N[h])})(),R.insertBefore(P,y);let Ee=()=>{if(!v.inheritAttrs)return;let h=N.filter(g=>g.nodeType===Node.ELEMENT_NODE),M=h.flatMap(g=>[...g.hasAttribute(this._)?[g]:[],...g.querySelectorAll(`[${this._}]`)]).at(0),S=M!=null?M:h.length===1?h[0]:void 0;if(!S)return;S.removeAttribute(this._);let X=`${ue}:class`,$=`${ue}:style`,Y=(g,O,U)=>{let re=S.hasAttribute(g)?g:S.hasAttribute(O)?O:g,Re=S.getAttribute(re);S.setAttribute(re,j(Re)?U:`${Re}, ${U}`)},E=(g,O)=>{if(g==="class"){let U=et(O);U.length>0&&S.classList.add(...U)}else if(g===":class"||g===X)Y(":class",X,O);else if(g==="style"){let U=S.style,re=f.style;for(let Re of re)U.setProperty(Re,re.getPropertyValue(Re))}else g===":style"||g===$?Y(":style",$,O):S.setAttribute(Pt(g,n.o),O)};for(let{name:g,value:O}of V)f.setAttribute(g,O);for(let g of f.getAttributeNames())g===D||g===B||E(g,f.getAttribute(g))},Oe=()=>{for(let h of f.getAttributeNames())!h.startsWith("@")&&!h.startsWith(n.o.p.on)&&f.removeAttribute(h)},ke=()=>{Ee(),Oe(),r.v(Ce),n.ve(f,!1),Ce.$emit=gt.emit,De(n,N),K(f,()=>{Ie(Ce)}),K(H,()=>{ye(f)}),Ut(Ce)};r.C(F,ke)}}re(){let e=this.r,n=e.m,r=e.o.te,o=n.ft(),s=this.it(r);return[...s?[s]:[],...o,...o.map(Ze)].join(",")}Z(e){var r;let n=this.re();return!j(n)&&((r=e.matches)==null?void 0:r.call(e,n))}lt(e,n){var s;let r=[];if(j(n))return r;if((s=e.matches)!=null&&s.call(e,n))return[e];let o=this.K(e).reverse();for(;o.length>0;){let i=o.pop();if(i.matches(n)){r.push(i);continue}o.push(...this.K(i).reverse())}return r}j(e,n){let r=this.r,o=this.re(),s=r.o.p.is,i=this.K(e).reverse();for(;i.length>0;){let a=i.pop();n(a),!(!j(o)&&a.matches(o))&&(a.hasAttribute(s)||a.hasAttribute("is")||i.push(...this.K(a).reverse()))}}K(e){let n=e==null?void 0:e.children;if((n==null?void 0:n.length)!=null){let o=[];for(let s=0;s<n.length;++s){let i=n[s];we(i)&&o.push(i)}return o}let r=e==null?void 0:e.childNodes;if((r==null?void 0:r.length)!=null){let o=[];for(let s=0;s<r.length;++s){let i=r[s];we(i)&&o.push(i)}return o}return[]}};var kn=class{constructor(e,n){m(this,"oe");m(this,"se");m(this,"Se",[]);this.oe=e,this.se=n}},Kt=class{constructor(e){m(this,"r");m(this,"Ae");m(this,"ke");m(this,"ie");var r;this.r=e,this.Ae=e.o.dt(),this.ie=new Map;let n=new Map;for(let o of this.Ae){let s=(r=o[0])!=null?r:"",i=n.get(s);i?i.push(o):n.set(s,[o])}this.ke=n}Me(e){let n=this.ie.get(e);if(n)return n;let r=e,o=r.startsWith(".");o&&(r=":"+r.slice(1));let s=r.indexOf("."),a=(s<0?r:r.substring(0,s)).split(/[:@]/);j(a[0])&&(a[0]=o?".":r[0]);let c=s>=0?r.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]=z(a[a.length-1])),u&&(a[0]=".");let f={terms:a,flags:c};return this.ie.set(e,f),f}we(e,n){let r=new Map;if(!pt(e))return r;let o=this.ke,s=(a,c)=>{var u;let l=o.get((u=c[0])!=null?u:"");if(l)for(let f=0;f<l.length;++f){if(!c.startsWith(l[f]))continue;let p=r.get(c);if(!p){let y=this.Me(c);p=new kn(y.terms,y.flags),r.set(c,p)}p.Se.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.r.E.j(e,i),r}};var Nr=()=>{},vs=(t,e)=>{for(let n of t){let r=n.cloneNode(!0);e.appendChild(r)}},Wt=class{constructor(e){m(this,"r");m(this,"I");this.r=e,this.I=e.o.p.is}M(e){let n=e.hasAttribute(this.I);return(n||e.hasAttribute("is"))&&this.y(e),this.r.E.Z(e)||this.r.E.j(e,r=>{(r.hasAttribute(this.I)||r.hasAttribute("is"))&&this.y(r)}),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 r=n.slice(2).trim().toLowerCase();if(!r)return;let o=e.parentNode;if(!o)return;let s=document.createElement(r);for(let i of e.getAttributeNames())i!=="is"&&s.setAttribute(i,e.getAttribute(i));for(;e.firstChild;)s.appendChild(e.firstChild);o.insertBefore(s,e),e.remove(),this.r.$(s);return}n=`'${n.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.I),this.O(e,n)}U(e,n){let r=Ye(e),o=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);o.insertBefore(s,e),Xe(s,r),r.forEach(a=>{W(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${n!=null?n:""}`);return o.insertBefore(i,s.nextSibling),{nodes:r,parent:o,commentBegin:s,commentEnd:i}}O(e,n){let{nodes:r,commentBegin:o,commentEnd:s}=this.U(e,` => ${n} `),i=this.r.m.N(n),a=i.value,c=this.r.m,l=c.L(),u={name:""},f=de(e)?r:[...r[0].childNodes],p=()=>{c.C(l,()=>{var R,H;let d=a()[0];if(L(d)&&(d.name?d=d.name:d=(R=Object.entries(c.ne()).filter(P=>P[1]===d)[0])==null?void 0:R[0]),!J(d)||j(d)){ve(o,s);return}if(u.name===d)return;ve(o,s);let v=(H=s.parentNode)!=null?H:o.parentNode;if(!v)return;let T=document.createElement(d);for(let P of e.getAttributeNames())P!==this.I&&T.setAttribute(P,e.getAttribute(P));vs(f,T),v.insertBefore(T,s),this.r.$(T),u.name=d})},y=Nr;K(o,()=>{i.stop(),y(),y=Nr}),p(),y=i.subscribe(p)}};var A=t=>{let e=t;return e!=null&&e[te]===1?e():e};var Ss=(t,e)=>{let[n,r]=e;G(r)?r(t,n):t.innerHTML=n==null?void 0:n.toString()},Gt={mount:()=>({update:({el:t,values:e})=>{Ss(t,e)}})};var Jt=class t{constructor(e){m(this,"ae");this.ae=e}static mt(e,n){var y,b;let r=e.m,o=e.o,s=o.p,i=new Set([s.for,s.if,s.else,s.elseif,s.pre]),a=o.B,c=r.ne();if(Object.keys(c).length>0||o.F.size>0)return;let l=e.q,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=z(T.tagName).toUpperCase();if(o.F.has(R)||c[R])return;let H=T.attributes;for(let P=0;P<H.length;++P){let D=(y=H.item(P))==null?void 0:y.name;if(!D)continue;if(i.has(D))return;let{terms:B,flags:ue}=l.Me(D),[Z,V]=B,x=(b=a[D])!=null?b:a[Z];if(x){if(x===Gt)return;u.push({nodeIndex:f,attrName:D,directive:x,option:V,flags:ue})}}++f}let v=d.childNodes;for(let T=v.length-1;T>=0;--T)p.push(v[T])}if(u.length!==0)return new t(u)}y(e,n){let r=[],o=[];for(let s=n.length-1;s>=0;--s)o.push(n[s]);for(;o.length>0;){let s=o.pop();s.nodeType===Node.ELEMENT_NODE&&r.push(s);let i=s.childNodes;for(let a=i.length-1;a>=0;--a)o.push(i[a])}for(let s=0;s<this.ae.length;++s){let i=this.ae[s],a=r[i.nodeIndex];a&&e.y(i.directive,a,i.attrName,!1,i.option,i.flags)}}};var As=(t,e)=>{let n=e.parentNode;if(n)for(let r=0;r<t.items.length;++r)n.insertBefore(t.items[r],e)},Ns=t=>{var a;let e=t.length,n=t.slice(),r=[],o,s,i;for(let c=0;c<e;++c){let l=t[c];if(l===0)continue;let u=r[r.length-1];if(u===void 0||t[u]<l){n[c]=u!=null?u:-1,r.push(c);continue}for(o=0,s=r.length-1;o<s;)i=o+s>>1,t[r[i]]<l?o=i+1:s=i;l<t[r[o]]&&(o>0&&(n[c]=r[o-1]),r[o]=c)}for(o=r.length,s=(a=r[o-1])!=null?a:-1;o-- >0;)r[o]=s,s=n[s];return r},Qt=class{static yt(e){let{oldItems:n,newValues:r,getKey:o,isSameValue:s,mountNewValue:i,removeMountItem:a,endAnchor:c}=e,l=n.length,u=r.length,f=new Array(u),p=new Set;for(let x=0;x<u;++x){let k=o(r[x]);if(k===void 0||p.has(k))return;p.add(k),f[x]=k}let y=new Array(u),b=0,d=l-1,v=u-1;for(;b<=d&&b<=v;){let x=n[b];if(o(x.value)!==f[b]||!s(x.value,r[b]))break;x.value=r[b],y[b]=x,++b}for(;b<=d&&b<=v;){let x=n[d];if(o(x.value)!==f[v]||!s(x.value,r[v]))break;x.value=r[v],y[v]=x,--d,--v}if(b>d){for(let x=v;x>=b;--x){let k=x+1<u?y[x+1].items[0]:c;y[x]=i(x,r[x],k)}return y}if(b>v){for(let x=b;x<=d;++x)a(n[x]);return y}let T=b,R=b,H=v-R+1,P=new Array(H).fill(0),D=new Map;for(let x=R;x<=v;++x)D.set(f[x],x);let B=!1,ue=0;for(let x=T;x<=d;++x){let k=n[x],F=D.get(o(k.value));if(F===void 0){a(k);continue}if(!s(k.value,r[F])){a(k);continue}k.value=r[F],y[F]=k,P[F-R]=x+1,F>=ue?ue=F:B=!0}let Z=B?Ns(P):[],V=Z.length-1;for(let x=H-1;x>=0;--x){let k=R+x,F=k+1<u?y[k+1].items[0]:c;if(P[x]===0){y[k]=i(k,r[k],F);continue}let We=y[k];B&&(V>=0&&Z[V]===x?--V:We&&As(We,F))}return y}};var dt=class{constructor(e){m(this,"T",[]);m(this,"P",new Map);m(this,"ce");this.ce=e}get S(){return this.T.length}pe(e){let n=this.ce(e.value);n!==void 0&&this.P.set(n,e)}ue(e){var r;let n=this.ce((r=this.T[e])==null?void 0:r.value);n!==void 0&&this.P.delete(n)}static ht(e,n){return{items:[],index:e,value:n,order:-1}}v(e){e.order=this.S,this.T.push(e),this.pe(e)}gt(e,n){let r=this.S;for(let o=e;o<r;++o)this.T[o].order=o+1;n.order=e,this.T.splice(e,0,n),this.pe(n)}D(e){return this.T[e]}le(e,n){this.ue(e),this.T[e]=n,this.pe(n),n.order=e}Ve(e){this.ue(e),this.T.splice(e,1);let n=this.S;for(let r=e;r<n;++r)this.T[r].order=r}Oe(e){let n=this.S;for(let r=e;r<n;++r)this.ue(r);this.T.splice(e)}nn(e){return this.P.has(e)}bt(e){var r;let n=this.P.get(e);return(r=n==null?void 0:n.order)!=null?r:-1}};var Ln=Symbol("r-for"),Ms=t=>-1,Mr=()=>{},Yt=class Yt{constructor(e){m(this,"r");m(this,"x");m(this,"Ne");m(this,"R");this.r=e,this.x=e.o.p.for,this.Ne=Vt(this.x),this.R=e.o.p.pre}M(e){let n=e.hasAttribute(this.x);return n&&this.Le(e),e.hasAttribute(this.r.o.p.is)||e.hasAttribute("is")||this.r.E.Z(e)||this.r.E.j(e,o=>{o.hasAttribute(this.x)&&this.Le(o)}),n}ee(e){return e[Ln]?!0:(e[Ln]=!0,It(e,this.Ne).forEach(n=>n[Ln]=!0),!1)}Le(e){if(e.hasAttribute(this.R)||this.ee(e))return;let n=e.getAttribute(this.x);if(!n){_(0,this.x,e);return}e.removeAttribute(this.x),this.xt(e,n)}Ie(e){return me(e)?[]:(G(e)&&(e=e()),Symbol.iterator in Object(e)?e:typeof e=="number"?(r=>({*[Symbol.iterator](){for(let o=1;o<=r;o++)yield o}}))(e):Object.entries(e))}xt(e,n){var bt;let r=this.Tt(n);if(!(r!=null&&r.list)){_(1,this.x,n,e);return}let o=this.r.o.p.key,s=this.r.o.p.keyBind,i=(bt=e.getAttribute(o))!=null?bt:e.getAttribute(s);e.removeAttribute(o),e.removeAttribute(s);let a=Ye(e),c=Jt.mt(this.r,a),l=e.parentNode;if(!l)return;let u=`${this.x} => ${n}`,f=new Comment(`__begin__ ${u}`);l.insertBefore(f,e),Xe(f,a),a.forEach(I=>{W(I)}),e.remove();let p=new Comment(`__end__ ${u}`);l.insertBefore(p,f.nextSibling);let y=this.r,b=y.m,d=b.L(),T=d.length===1?[void 0,d[0]]:void 0,R=this.Rt(i),H=(I,Q)=>R(I)===R(Q),P=(I,Q)=>I===Q,D=(I,Q,ne)=>{let se=r.createContext(Q,I),Ee=dt.ht(se.index,Q),Oe=()=>{var S,X;let ke=(X=(S=p.parentNode)!=null?S:f.parentNode)!=null?X:l,h=ne.previousSibling,M=[];for(let $=0;$<a.length;++$){let Y=a[$].cloneNode(!0);ke.insertBefore(Y,ne),M.push(Y)}for(c?c.y(y,M):De(y,M),h=h.nextSibling;h!==ne;)Ee.items.push(h),h=h.nextSibling};return T?(T[0]=se.ctx,b.C(T,Oe)):b.C(d,()=>{b.v(se.ctx),Oe()}),Ee},B=(I,Q)=>{let ne=N.D(I).items,se=ne[ne.length-1].nextSibling;for(let Ee of ne)W(Ee);N.le(I,D(I,Q,se))},ue=(I,Q)=>{N.v(D(I,Q,p))},Z=I=>{for(let Q of N.D(I).items)W(Q)},V=I=>{let Q=N.S;for(let ne=I;ne<Q;++ne)N.D(ne).index(ne)},x=I=>{let Q=f.parentNode,ne=p.parentNode;if(!Q||!ne)return;let se=N.S;G(I)&&(I=I());let Ee=A(I[0]);if(w(Ee)&&Ee.length===0){ve(f,p),N.Oe(0);return}let Oe=[];for(let E of this.Ie(I[0]))Oe.push(E);let ke=Qt.yt({oldItems:N.T,newValues:Oe,getKey:R,isSameValue:P,mountNewValue:(E,g,O)=>D(E,g,O),removeMountItem:E=>{for(let g=0;g<E.items.length;++g)W(E.items[g])},endAnchor:p});if(ke){N.T=ke,N.P.clear();for(let E=0;E<ke.length;++E){let g=ke[E];g.order=E,g.index(E);let O=R(g.value);O!==void 0&&N.P.set(O,g)}return}let h=0,M=Number.MAX_SAFE_INTEGER,S=se,X=this.r.o.forGrowThreshold,$=()=>N.S<S+X;for(let E of Oe){let g=()=>{if(h<se){let O=N.D(h++);if(H(O.value,E)){if(P(O.value,E))return;B(h-1,E);return}let U=N.bt(R(E));if(U>=h&&U-h<10){if(--h,M=Math.min(M,h),Z(h),N.Ve(h),--se,U>h+1)for(let re=h;re<U-1&&re<se&&!H(N.D(h).value,E);)++re,Z(h),N.Ve(h),--se;g();return}$()?(N.gt(h-1,D(h,E,N.D(h-1).items[0])),M=Math.min(M,h-1),++se):B(h-1,E)}else ue(h++,E)};g()}let Y=h;for(se=N.S;h<se;)Z(h++);N.Oe(Y),V(M)},k=()=>{F.stop(),Ce(),Ce=Mr},F=b.N(r.list),We=F.value,Ce=Mr,gt=0,N=new dt(R);for(let I of this.Ie(We()[0]))N.v(D(gt++,I,p));K(f,k),Ce=F.subscribe(x)}Tt(e){var c,l;let n=Yt.Et.exec(e);if(!n)return;let r=(n[1]+((c=n[2])!=null?c:"")).split(",").map(u=>u.trim()),o=r.length>1?r.length-1:-1,s=o!==-1&&(r[o]==="index"||(l=r[o])!=null&&l.startsWith("#"))?r[o]:"";s&&r.splice(o,1);let i=n[3];if(!i||r.length===0)return;let a=/[{[]/.test(e);return{list:i,createContext:(u,f)=>{let p={},y=A(u);if(!a&&r.length===1)p[r[0]]=u;else if(w(y)){let d=0;for(let v of r)p[v]=y[d++]}else for(let d of r)p[d]=y[d];let b={ctx:p,index:Ms};return s&&(b.index=p[s.startsWith("#")?s.substring(1):s]=ae(f)),b}}}Rt(e){if(!e)return r=>r;let n=e.trim();if(!n)return r=>r;if(n.includes(".")){let r=this.Ct(n),o=r.length>1?r.slice(1):void 0;return s=>{let i=A(s),a=this.Pe(i,r);return a!==void 0||!o?a:this.Pe(i,o)}}return r=>{var o;return A((o=A(r))==null?void 0:o[n])}}Ct(e){return e.split(".").filter(n=>n.length>0)}Pe(e,n){var o;let r=e;for(let s of n)r=(o=A(r))==null?void 0:o[s];return A(r)}};m(Yt,"Et",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var Xt=Yt;var Zt=class{constructor(e){m(this,"fe",0);m(this,"de",new Map);m(this,"m");m(this,"De");m(this,"Ue");m(this,"Be");m(this,"E");m(this,"q");m(this,"o");m(this,"R");m(this,"He");this.m=e,this.o=e.o,this.Ue=new Xt(this),this.De=new Lt(this),this.Be=new Wt(this),this.E=new zt(this),this.q=new Kt(this),this.R=this.o.p.pre,this.He=this.o.p.dynamic}wt(e){let n=de(e)?[e]:e.querySelectorAll("template");for(let r of n){if(r.hasAttribute(this.R))continue;let o=r.parentNode;if(!o)continue;let s=r.nextSibling;if(r.remove(),!r.content)continue;let i=[...r.content.childNodes];for(let a of i)o.insertBefore(a,s);De(this,i)}}$(e){++this.fe;try{if(e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.R)||this.De.M(e)||this.Ue.M(e)||this.Be.M(e))return;this.E.M(e),this.wt(e),this.ve(e,!0)}finally{--this.fe,this.fe===0&&this.vt()}}St(e,n){let r=document;if(!r){let o=e.parentNode;for(;o!=null&&o.parentNode;)o=o.parentNode;if(!o)return null;r=o}return r.querySelector(n)}je(e,n){let r=this.St(e,n);if(!r)return!1;let o=e.parentElement;if(!o)return!1;let s=new Comment(`teleported => '${n}'`);return o.insertBefore(s,e),e.teleportedFrom=s,s.teleportedTo=e,K(s,()=>{W(e)}),r.appendChild(e),!0}At(e,n){this.de.set(e,n)}vt(){let e=this.de;if(e.size!==0){this.de=new Map;for(let[n,r]of e.entries())this.je(n,r)}}ve(e,n){var s;let r=this.q.we(e,n),o=this.o.B;for(let[i,a]of r.entries()){let[c,l]=a.oe,u=(s=o[i])!=null?s:o[c];if(!u){console.error("directive not found:",c);continue}let f=a.Se;for(let p=0;p<f.length;++p){let y=f[p];this.y(u,y,i,!1,l,a.se)}}}y(e,n,r,o,s,i){if(n.hasAttribute(this.R))return;let a=n.getAttribute(r);n.removeAttribute(r);let c=l=>{let u=l;for(;u;){let f=u.getAttribute(lt);if(f)return f;u=u.parentElement}return null};if(wn()){let l=c(n);if(l){this.m.C(hr(l),()=>{this.O(e,n,a,s,i)});return}}this.O(e,n,a,s,i)}kt(e,n,r){return e!==Dt?!1:(j(r)||this.je(n,r)||this.At(n,r),!0)}O(e,n,r,o,s){if(n.nodeType!==Node.ELEMENT_NODE||r==null||this.kt(e,n,r))return;let i=this.Mt(o,e.once),a=this.Vt(e,r),c=this.Ot(a,i);K(n,c.stop);let l=this.Nt(n,r,a,i,o,s),u=this.Lt(e,l,c);if(!u)return;let f=this.It(l,a,i,o,u);f(),e.once||(c.result=a.subscribe(f),i&&(c.dynamic=i.subscribe(f)))}Mt(e,n){let r=xr(e,this.He);if(r)return this.m.N(z(r),void 0,void 0,void 0,n)}Vt(e,n){return this.m.N(n,e.isLazy,e.isLazyKey,e.collectRefObj,e.once)}Ot(e,n){let r={stop:()=>{var o,s,i;e.stop(),n==null||n.stop(),(o=r.result)==null||o.call(r),(s=r.dynamic)==null||s.call(r),(i=r.mounted)==null||i.call(r),r.result=void 0,r.dynamic=void 0,r.mounted=void 0}};return r}Nt(e,n,r,o,s,i){return{el:e,expr:n,values:r.value(),previousValues:void 0,option:o?o.value()[0]:s,previousOption:void 0,flags:i,parseResult:r,dynamicOption:o}}Lt(e,n,r){let o=e.mount(n);if(typeof o=="function"){r.mounted=o;return}return o!=null&&o.unmount&&(r.mounted=o.unmount),o==null?void 0:o.update}It(e,n,r,o,s){let i,a;return()=>{let c=n.value(),l=r?r.value()[0]:o;e.values=c,e.previousValues=i,e.option=l,e.previousOption=a,i=c,a=l,s(e)}}};var Or="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 ks(t){return!!t||t===""}var Ls=(t,e,n,r,o,s)=>{var a;if(r){s&&s.includes("camel")&&(r=z(r)),en(t,r,e[0],o);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];en(t,f,p,u)}else if(L(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;en(t,f,p,b)}else{let u=n==null?void 0:n[c],f=e[c++],p=e[c];en(t,f,p,u)}}},In={mount:()=>({update:({el:t,values:e,previousValues:n,option:r,previousOption:o,flags:s})=>{Ls(t,e,n,r,o,s)}})},en=(t,e,n,r)=>{if(r&&r!==e&&t.removeAttribute(r),me(e)){_(3,"r-bind",t);return}if(!J(e)){_(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){me(n)?t.removeAttributeNS(Or,e.slice(6,e.length)):t.setAttributeNS(Or,e,n);return}let o=e in Os;me(n)||o&&!ks(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)};var Is=(t,e,n)=>{let r=e.length;for(let o=0;o<r;++o){let s=e[o],i=n==null?void 0:n[o];if(w(s)){let a=s.length;for(let c=0;c<a;++c)kr(t,s[c],i==null?void 0:i[c])}else kr(t,s,i)}},Vn={mount:()=>({update:({el:t,values:e,previousValues:n})=>{Is(t,e,n)}})},kr=(t,e,n)=>{let r=A(e),o=A(n),s=t.classList,i=J(r),a=J(o);if(r&&!i){let c=r;if(o&&!a){let l=o;for(let u in l)(!(u in c)||!A(c[u]))&&s.remove(u)}for(let l in c)A(c[l])&&s.add(l)}else if(i){if(o!==r){let c=a?et(o):[],l=et(r);c.length>0&&s.remove(...c),l.length>0&&s.add(...l)}}else if(o){let c=a?et(o):[];c.length>0&&s.remove(...c)}};function Vs(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Ae(t[r],e[r]);return n}function Ae(t,e){if(t===e)return!0;let n=Tn(t),r=Tn(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=ct(t),r=ct(e),n||r)return t===e;if(n=w(t),r=w(e),n||r)return n&&r?Vs(t,e):!1;if(n=L(t),r=L(e),n||r){if(!n||!r)return!1;let o=Object.keys(t).length,s=Object.keys(e).length;if(o!==s)return!1;for(let i in t){let a=Object.prototype.hasOwnProperty.call(t,i),c=Object.prototype.hasOwnProperty.call(e,i);if(a&&!c||!Ae(t[i],e[i]))return!1}return!0}return String(t)===String(e)}function tn(t,e){return t.findIndex(n=>Ae(n,e))}var Lr=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var nn=t=>{if(!C(t))throw q(3,"pause");t(void 0,void 0,3)};var rn=t=>{if(!C(t))throw q(3,"resume");t(void 0,void 0,4)};var Vr={mount:({el:t,parseResult:e,flags:n})=>({update:({values:r})=>{Ps(t,r[0])},unmount:Ds(t,e,n)})},Ps=(t,e)=>{let n=Hr(t);if(n&&Pr(t))w(e)?e=tn(e,Ne(t))>-1:le(e)?e=e.has(Ne(t)):e=_s(t,e),t.checked=e;else if(n&&Dr(t))t.checked=Ae(e,Ne(t));else if(n||Br(t))Ur(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if($r(t)){let r=t.options,o=r.length,s=t.multiple;for(let i=0;i<o;i++){let a=r[i],c=Ne(a);if(s)w(e)?a.selected=tn(e,c)>-1:a.selected=e.has(c);else if(Ae(Ne(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else _(7,t)},ht=t=>(C(t)&&(t=t()),G(t)&&(t=t()),t?J(t)?{trim:t.includes("trim"),lazy:t.includes("lazy"),number:t.includes("number"),int:t.includes("int")}:{trim:!!t.trim,lazy:!!t.lazy,number:!!t.number,int:!!t.int}:{trim:!1,lazy:!1,number:!1,int:!1}),Pr=t=>t.type==="checkbox",Dr=t=>t.type==="radio",Ur=t=>t.type==="number"||t.type==="range",Hr=t=>t.tagName==="INPUT",Br=t=>t.tagName==="TEXTAREA",$r=t=>t.tagName==="SELECT",Ds=(t,e,n)=>{let r=e.value,o=ht(n==null?void 0:n.join(",")),s=ht(r()[1]),i={int:o.int||s.int,lazy:o.lazy||s.lazy,number:o.number||s.number,trim:o.trim||s.trim};if(!e.refs[0])return _(8,t),()=>{};let a=()=>e.refs[0],c=Hr(t);return c&&Pr(t)?Hs(t,a):c&&Dr(t)?Fs(t,a):c||Br(t)?Us(t,i,a,r):$r(t)?qs(t,a,r):(_(7,t),()=>{})},Ir=/[.,' ·٫]/,Us=(t,e,n,r)=>{let s=e.lazy?"change":"input",i=Ur(t),a=()=>{!e.trim&&!ht(r()[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 d=b.value,v=ht(r()[1]);if(i||v.number||v.int){if(v.int)d=parseInt(d);else{if(Ir.test(d[d.length-1])&&d.split(Ir).length===2){if(d+="0",d=parseFloat(d),isNaN(d))d="";else if(y()===d)return}d=parseFloat(d)}isNaN(d)&&(d=""),t.value=d}else v.trim&&(d=d.trim());y(d)};return t.addEventListener(s,f),t.addEventListener("change",a),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",l),t.addEventListener("change",l),u},Hs=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=e();if(!s)return;let i=Ne(t),a=t.checked,c=s();if(w(c)){let l=tn(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(js(t,a))};return t.addEventListener(n,o),r},Ne=t=>"_value"in t?t._value:t.value,jr="trueValue",Bs="falseValue",_r="true-value",$s="false-value",js=(t,e)=>{let n=e?jr:Bs;if(n in t)return t[n];let r=e?_r:$s;return t.hasAttribute(r)?t.getAttribute(r):e},_s=(t,e)=>{if(jr in t)return Ae(e,t.trueValue);let r=_r;return t.hasAttribute(r)?Ae(e,t.getAttribute(r)):Ae(e,!0)},Fs=(t,e)=>{let n="change",r=()=>{t.removeEventListener(n,o)},o=()=>{let s=e();if(!s)return;let i=Ne(t);s(i)};return t.addEventListener(n,o),r},qs=(t,e,n)=>{let r="change",o=()=>{t.removeEventListener(r,s)},s=()=>{let i=e();if(!i)return;let c=ht(n()[1]).number,l=Array.prototype.filter.call(t.options,u=>u.selected).map(u=>c?Lr(Ne(u)):Ne(u));if(t.multiple){let u=i();try{if(nn(i),le(u)){u.clear();for(let f of l)u.add(f)}else w(u)?(u.splice(0),u.push(...l)):i(l)}finally{rn(i),ee(i)}}else i(l[0])};return t.addEventListener(r,s),o};var zs=["stop","prevent","capture","self","once","left","right","middle","passive"],Ks=t=>{let e={};if(j(t))return;let n=t.split(",");for(let r of zs)e[r]=n.includes(r);return e},Ws=(t,e,n,r,o)=>{var l,u;if(r){let f=e.value(),p=A(r.value()[0]);return J(p)?Pn(t,z(p),()=>e.value()[0],(l=o==null?void 0:o.join(","))!=null?l:f[1]):()=>{}}else if(n){let f=e.value();return Pn(t,z(n),()=>e.value()[0],(u=o==null?void 0:o.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(G(p)&&(p=p()),L(p))for(let y of Object.entries(p)){let b=y[0],d=()=>{let T=e.value()[f];return G(T)&&(T=T()),T=T[b],G(T)&&(T=T()),T},v=p[b+"_flags"];s.push(Pn(t,b,d,v))}else _(2,"r-on",t)}return i},Dn={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:r,flags:o})=>Ws(t,e,n,r,o)},Gs=(t,e)=>{if(t.startsWith("keydown")||t.startsWith("keyup")||t.startsWith("keypress")){e!=null||(e="");let n=[...t.split("."),...e.split(",")];t=n[0];let r=n[1],o=n.includes("ctrl"),s=n.includes("shift"),i=n.includes("alt"),a=n.includes("meta"),c=l=>!(o&&!l.ctrlKey||s&&!l.shiftKey||i&&!l.altKey||a&&!l.metaKey);return r?[t,l=>c(l)?l.key.toUpperCase()===r.toUpperCase():!1]:[t,c]}return[t,n=>!0]},Pn=(t,e,n,r)=>{if(j(e))return _(5,"r-on",t),()=>{};let o=Ks(r),s=o?{capture:o.capture,passive:o.passive,once:o.once}:void 0,i;[e,i]=Gs(e,r);let a=u=>{if(!i(u)||!n&&e==="submit"&&(o!=null&&o.prevent))return;let f=n(u);G(f)&&(f=f(u)),G(f)&&f(u)},c=()=>{t.removeEventListener(e,l,s)},l=u=>{if(!o){a(u);return}try{if(o.left&&u.button!==0||o.middle&&u.button!==1||o.right&&u.button!==2||o.self&&u.target!==t)return;o.stop&&u.stopPropagation(),o.prevent&&u.preventDefault(),a(u)}finally{o.once&&c()}};return t.addEventListener(e,l,s),c};var Js=(t,e,n,r)=>{if(n){r&&r.includes("camel")&&(n=z(n)),ot(t,n,e[0]);return}let o=e.length;for(let s=0;s<o;++s){let i=e[s];if(w(i)){let a=i[0],c=i[1];ot(t,a,c)}else if(L(i))for(let a of Object.entries(i)){let c=a[0],l=a[1];ot(t,c,l)}else{let a=e[s++],c=e[s];ot(t,a,c)}}},Fr={mount:()=>({update:({el:t,values:e,option:n,flags:r})=>{Js(t,e,n,r)}})};function Qs(t){return!!t||t===""}var ot=(t,e,n)=>{if(me(e)){_(3,":prop",t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(ye),1),t[e]=n!=null?n:"";return}let r=t.tagName;if(e==="value"&&r!=="PROGRESS"&&!r.includes("-")){t._value=n;let s=r==="OPTION"?t.getAttribute("value"):t.value,i=n!=null?n:"";s!==i&&(t.value=i),n==null&&t.removeAttribute(e);return}let o=!1;if(n===""||n==null){let s=typeof t[e];s==="boolean"?n=Qs(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{t[e]=n}catch(s){o||_(4,e,r,n,s)}o&&t.removeAttribute(e)};var qr={once:!0,mount:({el:t,parseResult:e,expr:n})=>{let r=e,o=r.value()[0],s=w(o),i=r.refs[0];return s?o.push(t):i?i==null||i(t):r.context[n]=t,()=>{if(s){let a=o.indexOf(t);a!==-1&&o.splice(a,1)}else i==null||i(null)}}};var Xs=(t,e)=>{let n=Pe(t).data,r=n._ord;ir(r)&&(r=n._ord=t.style.display),ft(e[0])?t.style.display=r:t.style.display="none"},zr={mount:()=>({update:({el:t,values:e})=>{Xs(t,e)}})};var Ys=(t,e,n)=>{let r=e.length;for(let o=0;o<r;++o){let s=e[o],i=n==null?void 0:n[o];if(w(s)){let a=s.length;for(let c=0;c<a;++c)Kr(t,s[c],i==null?void 0:i[c])}else Kr(t,s,i)}},on={mount:()=>({update:({el:t,values:e,previousValues:n})=>{Ys(t,e,n)}})},Kr=(t,e,n)=>{let r=A(e),o=A(n),s=t.style,i=J(r);if(r&&!i){let a=r;if(o&&!J(o)){let c=o;for(let l in c)A(a[l])==null&&Hn(s,l,"")}for(let c in a)Hn(s,c,a[c])}else{let a=s.display;if(i?o!==r&&(s.cssText=r):o&&t.removeAttribute("style"),"_ord"in Pe(t).data)return;s.display=a}},Wr=/\s*!important$/;function Hn(t,e,n){let r=A(n);if(w(r))r.forEach(o=>{Hn(t,e,o)});else{let o=r==null?"":String(r);if(e.startsWith("--"))t.setProperty(e,o);else{let s=Zs(t,e);Wr.test(o)?t.setProperty(Ze(s),o.replace(Wr,""),"important"):t[s]=o}}}var Gr=["Webkit","Moz","ms"],Un={};function Zs(t,e){let n=Un[e];if(n)return n;let r=z(e);if(r!=="filter"&&r in t)return Un[e]=r;r=mt(r);for(let o=0;o<Gr.length;o++){let s=Gr[o]+r;if(s in t)return Un[e]=s}return e}var ce=t=>Jr(A(t)),Jr=(t,e=new WeakMap)=>{if(!t||!L(t))return t;if(w(t))return t.map(ce);if(le(t)){let r=new Set;for(let o of t.keys())r.add(ce(o));return r}if(Le(t)){let r=new Map;for(let o of t)r.set(ce(o[0]),ce(o[1]));return r}if(e.has(t))return A(e.get(t));let n=Ct({},t);e.set(t,n);for(let r of Object.entries(n))n[r[0]]=Jr(A(r[1]),e);return n};var ei=(t,e)=>{var r;let n=e[0];t.textContent=le(n)?JSON.stringify(ce([...n])):Le(n)?JSON.stringify(ce([...n])):L(n)?JSON.stringify(ce(n)):(r=n==null?void 0:n.toString())!=null?r:""},Qr={mount:()=>({update:({el:t,values:e})=>{ei(t,e)}})};var Xr={mount:()=>({update:({el:t,values:e})=>{ot(t,"value",e[0])}})};var He=class He{constructor(e){m(this,"B",{});m(this,"p",{});m(this,"dt",()=>Object.keys(this.B).filter(e=>e.length===1||!e.startsWith(":")));m(this,"te",new Map);m(this,"F",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.Dt()}static getDefault(){var e;return(e=He.$e)!=null?e:He.$e=new He}Dt(){let e={},n=globalThis;for(let r of He.Pt.split(","))e[r]=n[r];return e.ref=xe,e.sref=ae,e.flatten=ce,e}addComponent(...e){for(let n of e){if(!n.defaultName){$e.warning("Registered component's default name is not defined",n);continue}this.te.set(mt(n.defaultName),n),this.F.set(mt(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this.B={".":Fr,":":In,"@":Dn,[`${e}on`]:Dn,[`${e}bind`]:In,[`${e}html`]:Gt,[`${e}text`]:Qr,[`${e}show`]:zr,[`${e}model`]:Vr,":style":on,[`${e}style`]:on,[`${e}bind:style`]:on,":class":Vn,[`${e}bind:class`]:Vn,":ref":qr,":value":Xr,[`${e}teleport`]:Dt},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(He,"$e"),m(He,"Pt","Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");var pe=He;var sn=(t,e)=>{if(!t)return;let r=(e!=null?e:pe.getDefault()).p,o=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of ni(t,r.pre,s))ti(i,r.text,o,s)},ti=(t,e,n,r)=>{var c;let o=t.textContent;if(!o)return;let s=n,i=o.split(s);if(i.length<=1)return;if(((c=t.parentElement)==null?void 0:c.childNodes.length)===1&&i.length===3){let l=i[1],u=Yr(l,r);if(u&&j(i[0])&&j(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=Yr(l,r);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)},ni=(t,e,n)=>{let r=[],o=s=>{var i;if(s.nodeType===Node.TEXT_NODE)n.some(a=>{var c;return(c=s.textContent)==null?void 0:c.includes(a.start)})&&r.push(s);else{if((i=s==null?void 0:s.hasAttribute)!=null&&i.call(s,e))return;for(let a of Se(s))o(a)}};return o(t),r},Yr=(t,e)=>e.find(n=>t.startsWith(n.start)&&t.endsWith(n.end));var ri=9,oi=10,si=13,ii=32,Me=46,an=44,ai=39,ci=34,cn=40,st=41,un=91,Bn=93,$n=63,ui=59,Zr=58,eo=123,fn=125,qe=43,ln=45,jn=96,to=47,_n=92,no=new Set([2,3]),co={"=":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},fi=nr(Ct({"=>":2},co),{"||":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}),uo=Object.keys(co),li=new Set(uo),qn=new Set(["=>"]);uo.forEach(t=>qn.add(t));var ro={true:!0,false:!1,null:null},pi="this",it="Expected ",ze="Unexpected ",Kn="Unclosed ",mi=it+":",oo=it+"expression",di="missing }",hi=ze+"object property",yi=Kn+"(",so=it+"comma",io=ze+"token ",gi=ze+"period",Fn=it+"expression after ",bi="missing unaryOp argument",Ti=Kn+"[",xi=it+"exponent (",Ci="Variable names cannot start with a number (",Ei=Kn+'quote after "',yt=t=>t>=48&&t<=57,ao=t=>fi[t],zn=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}z(e){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>=128}me(e){return this.z(e)||yt(e)}i(e){return new Error(`${e} at character ${this.e}`)}g(){let e=this.h,n=this.u,r=this.e;for(;e===ii||e===ri||e===oi||e===si;)e=n.charCodeAt(++r);this.e=r}parse(){let e=this.ye();return e.length===1?e[0]:{type:0,body:e}}ye(e){let n=[];for(;this.e<this.u.length;){let r=this.h;if(r===ui||r===an)this.e++;else{let o=this.A();if(o)n.push(o);else if(this.e<this.u.length){if(r===e)break;throw this.i(ze+'"'+this.H+'"')}}}return n}A(){var n;let e=(n=this.Ut())!=null?n:this._e();return this.g(),this.Bt(e)}he(){this.g();let e=this.u,n=this.e,r=e.charCodeAt(n),o=e.charCodeAt(n+1),s=e.charCodeAt(n+2),i=e.charCodeAt(n+3);if(isNaN(r))return!1;let a=!1,c=0;return r===62&&o===62&&s===62&&i===61?(a=">>>=",c=4):r===61&&o===61&&s===61?(a="===",c=3):r===33&&o===61&&s===61?(a="!==",c=3):r===62&&o===62&&s===62?(a=">>>",c=3):r===60&&o===60&&s===61?(a="<<=",c=3):r===62&&o===62&&s===61?(a=">>=",c=3):r===42&&o===42&&s===61?(a="**=",c=3):r===61&&o===62?(a="=>",c=2):r===124&&o===124?(a="||",c=2):r===63&&o===63?(a="??",c=2):r===38&&o===38?(a="&&",c=2):r===61&&o===61?(a="==",c=2):r===33&&o===61?(a="!=",c=2):r===60&&o===61?(a="<=",c=2):r===62&&o===61?(a=">=",c=2):r===60&&o===60?(a="<<",c=2):r===62&&o===62?(a=">>",c=2):r===43&&o===61?(a="+=",c=2):r===45&&o===61?(a="-=",c=2):r===42&&o===61?(a="*=",c=2):r===47&&o===61?(a="/=",c=2):r===37&&o===61?(a="%=",c=2):r===38&&o===61?(a="&=",c=2):r===94&&o===61?(a="^=",c=2):r===124&&o===61?(a="|=",c=2):r===42&&o===42?(a="**",c=2):r===105&&o===110?this.me(e.charCodeAt(n+2))||(a="in",c=2):r===61?(a="=",c=1):r===124?(a="|",c=1):r===94?(a="^",c=1):r===38?(a="&",c=1):r===60?(a="<",c=1):r===62?(a=">",c=1):r===43?(a="+",c=1):r===45?(a="-",c=1):r===42?(a="*",c=1):r===47?(a="/",c=1):r===37&&(a="%",c=1),a?(this.e+=c,a):!1}_e(){let e,n,r,o,s,i,a,c;if(s=this.W(),!s||(n=this.he(),!n))return s;if(o={value:n,prec:ao(n),right_a:qn.has(n)},i=this.W(),!i)throw this.i(Fn+n);let l=[s,o,i];for(;n=this.he();){r=ao(n),o={value:n,prec:r,right_a:qn.has(n)},c=n;let u=f=>o.right_a&&f.right_a?r>f.prec:r<=f.prec;for(;l.length>2&&u(l[l.length-2]);)i=l.pop(),n=l.pop().value,s=l.pop(),e=this.Fe(n,s,i),l.push(e);if(e=this.W(),!e)throw this.i(Fn+c);l.push(o,e)}for(a=l.length-1,e=l[a];a>1;)e=this.Fe(l[a-1].value,l[a-2],e),a-=2;return e}W(){let e;if(this.g(),e=this.Ht(),e)return this.ge(e);let n=this.h;if(yt(n)||n===Me)return this.jt();if(n===ai||n===ci)e=this.$t();else if(n===un)e=this._t();else{let r=this.Ft();if(r){let o=this.W();if(!o)throw this.i(bi);return this.ge({type:7,operator:r,argument:o})}this.z(n)?(e=this.be(),e.name in ro?e={type:4,value:ro[e.name],raw:e.name}:e.name===pi&&(e={type:5})):n===cn&&(e=this.qt())}return e?(e=this.G(e),this.ge(e)):!1}Fe(e,n,r){if(e==="=>"){let o=n.type===1?n.expressions:[n];return{type:15,params:o,body:r}}return li.has(e)?{type:16,operator:e,left:n,right:r}:{type:8,operator:e,left:n,right:r}}Ht(){let e={node:!1};return this.Kt(e),e.node||(this.zt(e),e.node)||(this.Wt(e),e.node)||(this.qe(e),e.node)||this.Gt(e),e.node}ge(e){let n={node:e};return this.Jt(n),this.Qt(n),this.Xt(n),n.node}Ft(){let e=this.u,n=this.e,r=e.charCodeAt(n),o=e.charCodeAt(n+1),s=e.charCodeAt(n+2),i=e.charCodeAt(n+3);return r===ln?(this.e++,"-"):r===33?(this.e++,"!"):r===126?(this.e++,"~"):r===qe?(this.e++,"+"):r===110&&o===101&&s===119&&!this.me(i)?(this.e+=3,"new"):!1}Ut(){let e={};return this.Yt(e),e.node}Bt(e){let n={node:e};return this.Zt(n),n.node}G(e){this.g();let n=this.h;for(;n===Me||n===un||n===cn||n===$n;){let r;if(n===$n){if(this.u.charCodeAt(this.e+1)!==Me)break;r=!0,this.e+=2,this.g(),n=this.h}if(this.e++,n===un){if(e={type:3,computed:!0,object:e,property:this.A()},this.g(),n=this.h,n!==Bn)throw this.i(Ti);this.e++}else n===cn?e={type:6,arguments:this.Ke(st),callee:e}:(r&&this.e--,this.g(),e={type:3,computed:!1,object:e,property:this.be()});r&&(e.optional=!0),this.g(),n=this.h}return e}jt(){let e=this.u,n=this.e,r=n;for(;yt(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===Me)for(r++;yt(e.charCodeAt(r));)r++;let o=e.charCodeAt(r);if(o===101||o===69){r++;let a=e.charCodeAt(r);(a===qe||a===ln)&&r++;let c=r;for(;yt(e.charCodeAt(r));)r++;if(c===r){this.e=r;let l=e.slice(n,r);throw this.i(xi+l+this.H+")")}}this.e=r;let s=e.slice(n,r),i=e.charCodeAt(r);if(this.z(i))throw this.i(Ci+s+this.H+")");if(i===Me||s.length===1&&s.charCodeAt(0)===Me)throw this.i(gi);return{type:4,value:parseFloat(s),raw:s}}$t(){let e=this.u,n=e.length,r=this.e,o=e.charCodeAt(this.e++),s=this.e,i=s,a=[],c=!1,l=!1;for(;s<n;){let f=e.charCodeAt(s);if(f===o){l=!0,this.e=s+1;break}if(f===_n){c||(c=!0),a.push(e.slice(i,s));let p=e.charCodeAt(s+1);a.push(this.ze(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(Ei+u+'"');return{type:4,value:u,raw:e.substring(r,this.e)}}ze(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)}}be(){let e=this.h,n=this.e;if(this.z(e))this.e++;else throw this.i(ze+this.H);for(;this.e<this.u.length&&(e=this.h,this.me(e));)this.e++;return{type:2,name:this.u.slice(n,this.e)}}Ke(e){let n=[],r=!1,o=0;for(;this.e<this.u.length;){this.g();let s=this.h;if(s===e){if(r=!0,this.e++,e===st&&o&&o>=n.length)throw this.i(io+String.fromCharCode(e));break}else if(s===an){if(this.e++,o++,o!==n.length){if(e===st)throw this.i(io+",");for(let i=n.length;i<o;i++)n.push(null)}}else{if(n.length!==o&&o!==0)throw this.i(so);{let i=this.A();if(!i||i.type===0)throw this.i(so);n.push(i)}}}if(!r)throw this.i(it+String.fromCharCode(e));return n}qt(){this.e++;let e=this.ye(st);if(this.f(st))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.i(yi)}_t(){return this.e++,{type:9,elements:this.Ke(Bn)}}Kt(e){if(this.f(eo)){this.e++;let n=[];for(;!isNaN(this.h);){if(this.g(),this.f(fn)){this.e++,e.node=this.G({type:10,properties:n});return}let r=this.A();if(!r)break;if(this.g(),r.type===2&&(this.f(an)||this.f(fn)))n.push({type:12,computed:!1,key:r,value:r,shorthand:!0});else if(this.f(Zr)){this.e++;let o=this.A();if(!o)throw this.i(hi);let s=r.type===9;n.push({type:12,computed:s,key:s?r.elements[0]:r,value:o,shorthand:!1}),this.g()}else n.push(r);this.f(an)&&this.e++}throw this.i(di)}}zt(e){let n=this.h;if((n===qe||n===ln)&&n===this.u.charCodeAt(this.e+1)){this.e+=2;let r=e.node={type:13,operator:n===qe?"++":"--",argument:this.G(this.be()),prefix:!0};if(!r.argument||!no.has(r.argument.type))throw this.i(ze+r.operator)}}Qt(e){let n=e.node,r=this.h;if((r===qe||r===ln)&&r===this.u.charCodeAt(this.e+1)){if(!no.has(n.type))throw this.i(ze+(r===qe?"++":"--"));this.e+=2,e.node={type:13,operator:r===qe?"++":"--",argument:n,prefix:!1}}}Wt(e){this.u.charCodeAt(this.e)===Me&&this.u.charCodeAt(this.e+1)===Me&&this.u.charCodeAt(this.e+2)===Me&&(this.e+=3,e.node={type:14,argument:this.A()})}Zt(e){if(e.node&&this.f($n)){this.e++;let n=e.node,r=this.A();if(!r)throw this.i(oo);if(this.g(),this.f(Zr)){this.e++;let o=this.A();if(!o)throw this.i(oo);e.node={type:11,test:n,consequent:r,alternate:o}}else throw this.i(mi)}}Yt(e){if(this.g(),this.f(cn)){let n=this.e;if(this.e++,this.g(),this.f(st)){this.e++;let r=this.he();if(r==="=>"){let o=this._e();if(!o)throw this.i(Fn+r);e.node={type:15,params:null,body:o};return}}this.e=n}}Xt(e){let n=e.node,r=n.type;(r===2||r===3)&&this.f(jn)&&(e.node={type:17,tag:n,quasi:this.qe(e)})}qe(e){if(!this.f(jn))return;let n=this.u,r=n.length,o={type:19,quasis:[],expressions:[]},s=++this.e,i=[],a=[],c=!1,l=u=>{if(!c){let y=n.slice(s,this.e);return o.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,o.quasis.push({type:18,value:{raw:f,cooked:p},tail:u})};for(;this.e<r;){let u=n.charCodeAt(this.e);if(u===jn)return l(!0),this.e+=1,e.node=o,o;if(u===36&&n.charCodeAt(this.e+1)===eo){if(l(!1),this.e+=2,o.expressions.push(...this.ye(fn)),!this.f(fn))throw this.i("unclosed ${");this.e+=1,s=this.e}else if(u===_n){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.ze(f)),this.e+=2,s=this.e}else this.e+=1}throw this.i("Unclosed `")}Jt(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 r=e.node;for(;r.type===3||r.type===6&&r.callee.type===3;)r=r.type===3?r.object:r.callee.object;r.type=20}Gt(e){if(!this.f(to))return;let n=++this.e,r=!1;for(;this.e<this.u.length;){if(this.h===to&&!r){let o=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(o,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.G(e.node),e.node}this.f(un)?r=!0:r&&this.f(Bn)&&(r=!1),this.e+=this.f(_n)?2:1}throw this.i("Unclosed Regex")}},fo=t=>new zn(t).parse();var Ri={"=>":(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)=>xt(t,e)},wi={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},ho=t=>{if(!(t!=null&&t.some(mo)))return t;let e=[];return t.forEach(n=>mo(n)?e.push(...n):e.push(n)),e},lo=(...t)=>ho(t),Wn=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},vi={"++":(t,e)=>{let n=t[e];if(C(n)){let r=n();return n(++r),r}return++t[e]},"--":(t,e)=>{let n=t[e];if(C(n)){let r=n();return n(--r),r}return--t[e]}},Si={"++":(t,e)=>{let n=t[e];if(C(n)){let r=n();return n(r+1),r}return t[e]++},"--":(t,e)=>{let n=t[e];if(C(n)){let r=n();return n(r-1),r}return t[e]--}},po={"=":(t,e,n)=>{let r=t[e];return C(r)?r(n):t[e]=n},"+=":(t,e,n)=>{let r=t[e];return C(r)?r(r()+n):t[e]+=n},"-=":(t,e,n)=>{let r=t[e];return C(r)?r(r()-n):t[e]-=n},"*=":(t,e,n)=>{let r=t[e];return C(r)?r(r()*n):t[e]*=n},"/=":(t,e,n)=>{let r=t[e];return C(r)?r(r()/n):t[e]/=n},"%=":(t,e,n)=>{let r=t[e];return C(r)?r(r()%n):t[e]%=n},"**=":(t,e,n)=>{let r=t[e];return C(r)?r(xt(r(),n)):t[e]=xt(t[e],n)},"<<=":(t,e,n)=>{let r=t[e];return C(r)?r(r()<<n):t[e]<<=n},">>=":(t,e,n)=>{let r=t[e];return C(r)?r(r()>>n):t[e]>>=n},">>>=":(t,e,n)=>{let r=t[e];return C(r)?r(r()>>>n):t[e]>>>=n},"|=":(t,e,n)=>{let r=t[e];return C(r)?r(r()|n):t[e]|=n},"&=":(t,e,n)=>{let r=t[e];return C(r)?r(r()&n):t[e]&=n},"^=":(t,e,n)=>{let r=t[e];return C(r)?r(r()^n):t[e]^=n}},pn=(t,e)=>G(t)?t.bind(e):t,Gn=class{constructor(e,n,r,o,s){m(this,"l");m(this,"We");m(this,"Ge");m(this,"Je");m(this,"k");m(this,"Qe");m(this,"Xe");this.l=w(e)?e:[e],this.We=n,this.Ge=r,this.Je=o,this.Xe=!!s}Ye(e,n){if(n&&e in n)return n;for(let r of this.l)if(e in r)return r}2(e,n,r){let o=e.name;if(o==="$root")return this.l[this.l.length-1];if(o==="$parent")return this.l[1];if(o==="$ctx")return[...this.l];if(r&&o in r)return this.k=r[o],pn(A(r[o]),r);for(let i of this.l)if(o in i)return this.k=i[o],pn(A(i[o]),i);let s=this.We;if(s&&o in s)return this.k=s[o],pn(A(s[o]),s)}5(e,n,r){return this.l[0]}0(e,n,r){return this.Ze(n,r,lo,...e.body)}1(e,n,r){return this.w(n,r,(...o)=>o.pop(),...e.expressions)}3(e,n,r){let{obj:o,key:s}=this.xe(e,n,r),i=o==null?void 0:o[s];return this.k=i,pn(A(i),o)}4(e,n,r){return e.value}6(e,n,r){let o=(i,...a)=>G(i)?i(...ho(a)):i,s=this.w(++n,r,o,e.callee,...e.arguments);return this.k=s,s}7(e,n,r){return this.w(n,r,wi[e.operator],e.argument)}8(e,n,r){let o=Ri[e.operator];switch(e.operator){case"||":case"&&":case"??":return o(()=>this.b(e.left,n,r),()=>this.b(e.right,n,r))}return this.w(n,r,o,e.left,e.right)}9(e,n,r){return this.Ze(++n,r,lo,...e.elements)}10(e,n,r){let o={},s=(...i)=>{i.forEach(a=>{Object.assign(o,a)})};return this.w(++n,r,s,...e.properties),o}11(e,n,r){return this.w(n,r,o=>this.b(o?e.consequent:e.alternate,n,r),e.test)}12(e,n,r){var u;let o={},s=f=>(f==null?void 0:f.type)!==15,i=(u=this.Je)!=null?u:()=>!1,a=n===0&&this.Xe,c=f=>this.et(a,e.key,n,Wn(f,r)),l=f=>this.et(a,e.value,n,Wn(f,r));if(e.shorthand){let f=e.key.name;o[f]=s(e.key)&&i(f,n)?c:c()}else if(e.computed){let f=A(c());o[f]=s(e.value)&&i(f,n)?l:l()}else{let f=e.key.type===4?e.key.value:e.key.name;o[f]=s(e.value)&&i(f,n)?()=>l:l()}return o}xe(e,n,r){let o=this.b(e.object,n,r),s=e.computed?this.b(e.property,n,r):e.property.name;return{obj:o,key:s}}13(e,n,r){let o=e.argument,s=e.operator,i=e.prefix?vi:Si;if(o.type===2){let a=o.name,c=this.Ye(a,r);return me(c)?void 0:i[s](c,a)}if(o.type===3){let{obj:a,key:c}=this.xe(o,n,r);return i[s](a,c)}}16(e,n,r){let o=e.left,s=e.operator;if(o.type===2){let i=o.name,a=this.Ye(i,r);if(me(a))return;let c=this.b(e.right,n,r);return po[s](a,i,c)}if(o.type===3){let{obj:i,key:a}=this.xe(o,n,r),c=this.b(e.right,n,r);return po[s](i,a,c)}}14(e,n,r){let o=this.b(e.argument,n,r);return w(o)&&(o.s=yo),o}17(e,n,r){return this[6]({type:6,callee:e.tag,arguments:[{type:9,elements:e.quasi.quasis},...e.quasi.expressions]},n,r)}19(e,n,r){let o=(...s)=>s.reduce((i,a,c)=>i+=a+e.quasis[c+1].value.cooked,e.quasis[0].value.cooked);return this.w(n,r,o,...e.expressions)}18(e,n,r){return e.value.cooked}20(e,n,r){let o=(s,...i)=>new s(...i);return this.w(n,r,o,e.callee,...e.arguments)}15(e,n,r){return(...o)=>{let s=Object.create(r!=null?r:{}),i=e.params;if(i){let a=0;for(let c of i)s[c.name]=o[a++]}return this.b(e.body,n,s)}}b(e,n,r){let o=A(this[e.type](e,n,r));return this.Qe=e.type,o}et(e,n,r,o){let s=this.b(n,r,o);return e&&this.tt()?this.k:s}tt(){let e=this.Qe;return(e===2||e===3||e===6)&&C(this.k)}eval(e,n){let{value:r,refs:o}=$t(()=>this.b(e,-1,n)),s={value:r,refs:o};return this.tt()&&(s.ref=this.k),s}w(e,n,r,...o){let s=o.map(i=>i&&this.b(i,e,n));return r(...s)}Ze(e,n,r,...o){let s=this.Ge;if(!s)return this.w(e,n,r,...o);let i=o.map((a,c)=>a&&(a.type!==15&&s(c,e)?l=>this.b(a,e,Wn(l,n)):this.b(a,e,n)));return r(...i)}},yo=Symbol("s"),mo=t=>(t==null?void 0:t.s)===yo,go=(t,e,n,r,o,s,i)=>new Gn(e,n,r,o,i).eval(t,s);var bo={},To=t=>!!t,mn=class{constructor(e,n){m(this,"l");m(this,"o");m(this,"nt",[]);this.l=e,this.o=n}v(e){this.l=[e,...this.l]}ne(){return this.l.map(n=>n.components).filter(To).reverse().reduce((n,r)=>{for(let[o,s]of Object.entries(r))n[o.toUpperCase()]=s;return n},{})}ft(){let e=[],n=new Set,r=this.l.map(o=>o.components).filter(To).reverse();for(let o of r)for(let s of Object.keys(o))n.has(s)||(n.add(s),e.push(s));return e}N(e,n,r,o,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,H)=>(c.add(R),H&&R(i),()=>{c.delete(R)}),refs:[],context:this.l[0]};if(j(e))return p;let y=this.o.globalContext,b=[],d=new Set,v=(R,H,P,D)=>{try{let B=go(R,H,y,n,r,D,o);return P&&B.refs.length>0&&b.push(...B.refs),{value:B.value,refs:B.refs,ref:B.ref}}catch(B){_(6,`evaluation error: ${e}`,B)}return{value:void 0,refs:[]}};try{let R=(T=bo[e])!=null?T:fo("["+e+"]");bo[e]=R;let H=this.l.slice(),P=R.elements,D=P.length,B=new Array(D);p.refs=B;let ue=()=>{b.length=0,s||(d.clear(),l());let Z=new Array(D);for(let V=0;V<D;++V){let x=P[V];if(n!=null&&n(V,-1)){Z[V]=F=>v(x,H,!1,{$event:F}).value;continue}let k=v(x,H,!0);Z[V]=k.value,B[V]=k.ref}if(!s)for(let V of b)d.has(V)||(d.add(V),a.push(ie(V,ue)));if(i=Z,c.size!==0)for(let V of c)c.has(V)&&V(i)};ue()}catch(R){_(6,`parse error: ${e}`,R)}return p}L(){return this.l.slice()}le(e){this.nt.push(this.l),this.l=e}C(e,n){try{this.le(e),n()}finally{this.en()}}en(){var e;this.l=(e=this.nt.pop())!=null?e:[]}};var xo=t=>{let e=t.charCodeAt(0);return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||t==="-"||t==="_"||t===":"},Ai=(t,e)=>{let n="";for(let r=e;r<t.length;++r){let o=t[r];if(n){o===n&&(n="");continue}if(o==='"'||o==="'"){n=o;continue}if(o===">")return r}return-1},Ni=(t,e)=>{let n=e?2:1;for(;n<t.length&&(t[n]===" "||t[n]===`
|
|
3
|
+
`);)++n;if(n>=t.length||!xo(t[n]))return null;let r=n;for(;n<t.length&&xo(t[n]);)++n;return{start:r,end:n}},Co=new Set(["table","thead","tbody","tfoot"]),Mi=new Set(["thead","tbody","tfoot"]),Oi=new Set(["caption","colgroup","thead","tbody","tfoot","tr"]),ki=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Eo=(t,e)=>`${t.slice(0,t.length-2)}></${e}>`,dn=t=>{var s;let e=0,n=[],r=[],o=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=Ai(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=Ni(c,l);if(!f){n.push(c),e=a+1;continue}let p=c.slice(f.start,f.end);if(l){let T=r[r.length-1];T?(r.pop(),n.push(T.replacementHost?`</${T.replacementHost}>`:c),Co.has(T.effectiveTag)&&--o):n.push(c),e=a+1;continue}let y=c.charCodeAt(c.length-2)===47,b=r[r.length-1],d=null;o===0?p==="tr"?d="trx":p==="td"?d="tdx":p==="th"&&(d="thx"):Mi.has((s=b==null?void 0:b.effectiveTag)!=null?s:"")?d=p==="tr"?null:"tr":(b==null?void 0:b.effectiveTag)==="table"?d=Oi.has(p)?null:"tr":(b==null?void 0:b.effectiveTag)==="tr"&&(d=p==="td"||p==="th"?null:"td");let v=y&&!ki.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(v?Eo(R,d):R)}else n.push(v?Eo(c,p):c);if(!y){let T=d==="trx"?"tr":d==="tdx"?"td":d==="thx"?"th":d||p;r.push({replacementHost:d,effectiveTag:T}),Co.has(T)&&++o}e=a+1}return n.join("")};var Li="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(Li.toUpperCase().split(",")),Vi="http://www.w3.org/2000/svg",Ro=(t,e)=>{de(t)?t.content.appendChild(e):t.appendChild(e)},Jn=(t,e,n,r)=>{var i;let o=t.t;if(o){let a=n&&Ii.has(o.toUpperCase())?document.createElementNS(Vi,o.toLowerCase()):document.createElement(o),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(Pt(f,r),p)}let l=t.c;if(l)for(let u of l)Jn(u,a,n,r);Ro(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)Ro(e,a);else throw new Error("unsupported node type.")}},Ke=(t,e,n)=>{n!=null||(n=pe.getDefault());let r=document.createDocumentFragment();if(!w(t))return Jn(t,r,!!e,n),r;for(let o of t)Jn(o,r,!!e,n);return r};var wo=(t,e={selector:"#app"},n)=>{J(e)&&(e={selector:"#app",template:e}),Cr(t)&&(t=t.context);let r=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!r||!we(r))throw q(0);n||(n=pe.getDefault());let o=()=>{for(let a of[...r.childNodes])W(a)},s=a=>{for(;a.length>0;)r.appendChild(a[0])};if(e.template){let a=document.createRange().createContextualFragment(dn(e.template));o(),s(a.childNodes),e.element=a}else if(e.json){let a=Ke(e.json,e.isSVG,n);o(),s(a.childNodes)}return n.useInterpolation&&sn(r,n),new Qn(t,r,n).y(),K(r,()=>{Ie(t)}),Ut(t),{context:t,unmount:()=>{W(r)},unbind:()=>{ye(r)}}},Qn=class{constructor(e,n,r){m(this,"tn");m(this,"rt");m(this,"o");m(this,"m");m(this,"r");this.tn=e,this.rt=n,this.o=r,this.m=new mn([e],r),this.r=new Zt(this.m)}y(){this.r.$(this.rt)}};var at=t=>{if(w(t))return t.map(o=>at(o));let e={};if(t.tagName)e.t=t.tagName;else return t.nodeType===Node.COMMENT_NODE&&(e.n=Node.COMMENT_NODE),t.textContent&&(e.d=t.textContent),e;let n=t.getAttributeNames();n.length>0&&(e.a=Object.fromEntries(n.map(o=>{var s;return[o,(s=t.getAttribute(o))!=null?s:""]})));let r=Se(t);return r.length>0&&(e.c=[...r].map(o=>at(o))),e};var vo=(t,e={})=>{var s,i,a,c,l,u;w(e)&&(e={props:e}),J(t)&&(t={template:t});let n=(s=e.context)!=null?s:()=>({}),r=!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 q(1,t.selector);f.remove(),t.element=f}else if(t.template){let f=document.createRange().createContextualFragment(dn(t.template));t.element=f}else t.json&&(t.element=Ke(t.json,t.isSVG,e.config),r=!0);t.element||(t.element=document.createDocumentFragment()),((i=e.useInterpolation)==null||i)&&sn(t.element,(a=e.config)!=null?a:pe.getDefault());let o=t.element;if(!r&&(((l=t.isSVG)!=null?l:pt(o)&&((c=o.hasAttribute)!=null&&c.call(o,"isSVG")))||pt(o)&&o.querySelector("[isSVG]"))){let f=o.content,p=f?[...f.childNodes]:[...o.childNodes],y=at(p);t.element=Ke(y,!0,e.config)}return{context:n,template:t.element,inheritAttrs:(u=e.inheritAttrs)!=null?u:!0,props:e.props,defaultName:e.defaultName}};var hn=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 So=t=>{var e;(e=Be())==null||e.onMounted.push(t)};var Ao=t=>{let e,n={},r=(...o)=>{if(o.length<=2&&0 in o)throw q(4);return e&&!n.isStopped?e(...o):(e=Pi(t,n),e(...o))};return r[te]=1,Ue(r,!0),r.stop=()=>{var o,s;return(s=(o=n.ref)==null?void 0:o.stop)==null?void 0:s.call(o)},oe(()=>r.stop(),!0),r},Pi=(t,e)=>{var s;let n=(s=e.ref)!=null?s:ae(null);e.ref=n,e.isStopped=!1;let r=0,o=Fe(()=>{if(r>0){o(),e.isStopped=!0,ee(n);return}n(t()),++r});return n.stop=o,n};var No=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw q(4);return r&&!n.isStopped?r(...s):(r=Di(t,e,n),r(...s))};return o[te]=1,Ue(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},oe(()=>o.stop(),!0),o},Di=(t,e,n)=>{var a;let r=(a=n.ref)!=null?a:ae(null);n.ref=r,n.isStopped=!1;let o=0,s=c=>{if(o>0){r.stop(),n.isStopped=!0,ee(r);return}let l=t.map(u=>u());r(e(...l)),++o},i=[];for(let c of t){let l=ie(c,s);i.push(l)}return s(null),r.stop=()=>{i.forEach(c=>{c()})},r};var Mo=(t,e)=>{let n={},r,o=(...s)=>{if(s.length<=2&&0 in s)throw q(4);return r&&!n.isStopped?r(...s):(r=Ui(t,e,n),r(...s))};return o[te]=1,Ue(o,!0),o.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},oe(()=>o.stop(),!0),o},Ui=(t,e,n)=>{var s;let r=(s=n.ref)!=null?s:ae(null);n.ref=r,n.isStopped=!1;let o=0;return r.stop=ie(t,i=>{if(o>0){r.stop(),n.isStopped=!0,ee(r);return}r(e(i)),++o},!0),r};var Oo=t=>(t[At]=1,t);var ko=(t,e)=>{if(!e)throw q(5);let r=_e(t)?xe:a=>a,o=()=>localStorage.setItem(e,JSON.stringify(ce(t()))),s=localStorage.getItem(e);if(s!=null)try{t(r(JSON.parse(s)))}catch(a){_(6,`persist: failed to parse data for key ${e}`,a),o()}else o();let i=Fe(o);return oe(i,!0),t};var yn=(t,...e)=>{let n="",r=t,o=e,s=r.length,i=o.length;for(let a=0;a<s;++a)n+=r[a],a<i&&(n+=o[a]);return n},Lo=yn,Io=yn;var Vo=(t,e,n)=>{let r=[],o=()=>{e(t.map(i=>i()))};for(let i of t)r.push(ie(i,o));n&&o();let s=()=>{for(let i of r)i()};return oe(s,!0),s};var Po=t=>{if(!C(t))throw q(3,"observerCount");return t(void 0,void 0,2)};var Do=t=>{Xn();try{t()}finally{Yn()}},Xn=()=>{Te.stack||(Te.stack=[]),Te.stack.push(new Set)},Yn=()=>{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 r of e)n.add(r);return}delete Te.stack;for(let n of e)try{ee(n)}catch(r){console.error(r)}};
|
package/dist/regor.es2015.esm.js
CHANGED
|
@@ -843,6 +843,8 @@ var IfBinder = class {
|
|
|
843
843
|
if (isIfElement) this.__bind(element);
|
|
844
844
|
const isDynamicElement = element.hasAttribute(this.__binder.__config.__builtInNames.is) || element.hasAttribute("is");
|
|
845
845
|
if (isDynamicElement) return isIfElement;
|
|
846
|
+
if (this.__binder.__componentBinder.__isComponentHost(element))
|
|
847
|
+
return isIfElement;
|
|
846
848
|
this.__binder.__componentBinder.__forEachBindableDescendant(
|
|
847
849
|
element,
|
|
848
850
|
(el) => {
|
|
@@ -1976,6 +1978,11 @@ var ComponentBinder = class {
|
|
|
1976
1978
|
...contextComponentSelectors.map(hyphenate)
|
|
1977
1979
|
].join(",");
|
|
1978
1980
|
}
|
|
1981
|
+
__isComponentHost(element) {
|
|
1982
|
+
var _a;
|
|
1983
|
+
const selector = this.__getComponentSelector();
|
|
1984
|
+
return !isNullOrWhitespace(selector) && ((_a = element.matches) == null ? void 0 : _a.call(element, selector));
|
|
1985
|
+
}
|
|
1979
1986
|
__collectTopLevelComponentHosts(root, selector) {
|
|
1980
1987
|
var _a;
|
|
1981
1988
|
const result = [];
|
|
@@ -1993,12 +2000,15 @@ var ComponentBinder = class {
|
|
|
1993
2000
|
return result;
|
|
1994
2001
|
}
|
|
1995
2002
|
__forEachBindableDescendant(root, action) {
|
|
2003
|
+
const binder = this.__binder;
|
|
1996
2004
|
const selector = this.__getComponentSelector();
|
|
2005
|
+
const isName = binder.__config.__builtInNames.is;
|
|
1997
2006
|
const stack = this.__getChildElements(root).reverse();
|
|
1998
2007
|
while (stack.length > 0) {
|
|
1999
2008
|
const current = stack.pop();
|
|
2000
2009
|
action(current);
|
|
2001
2010
|
if (!isNullOrWhitespace(selector) && current.matches(selector)) continue;
|
|
2011
|
+
if (current.hasAttribute(isName) || current.hasAttribute("is")) continue;
|
|
2002
2012
|
stack.push(...this.__getChildElements(current).reverse());
|
|
2003
2013
|
}
|
|
2004
2014
|
}
|
|
@@ -2143,6 +2153,8 @@ var DynamicBinder = class {
|
|
|
2143
2153
|
const isComponentElement = element.hasAttribute(this.__is);
|
|
2144
2154
|
if (isComponentElement || element.hasAttribute("is"))
|
|
2145
2155
|
this.__bind(element);
|
|
2156
|
+
if (this.__binder.__componentBinder.__isComponentHost(element))
|
|
2157
|
+
return isComponentElement;
|
|
2146
2158
|
this.__binder.__componentBinder.__forEachBindableDescendant(
|
|
2147
2159
|
element,
|
|
2148
2160
|
(el) => {
|
|
@@ -2630,6 +2642,8 @@ var _ForBinder = class _ForBinder {
|
|
|
2630
2642
|
if (isForElement) this.__bindFor(element);
|
|
2631
2643
|
const isDynamicElement = element.hasAttribute(this.__binder.__config.__builtInNames.is) || element.hasAttribute("is");
|
|
2632
2644
|
if (isDynamicElement) return isForElement;
|
|
2645
|
+
if (this.__binder.__componentBinder.__isComponentHost(element))
|
|
2646
|
+
return isForElement;
|
|
2633
2647
|
this.__binder.__componentBinder.__forEachBindableDescendant(
|
|
2634
2648
|
element,
|
|
2635
2649
|
(el) => {
|