@fluixi/core 1.0.0-alpha.85 → 1.0.0-alpha.86
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/cdn/core.global.js +2 -2
- package/dist/src/cdn/core.cjs +1 -1
- package/dist/src/cdn/core.mjs +1 -1
- package/dist/src/index.cjs +2 -2
- package/dist/src/index.mjs +2 -2
- package/dist/src/lib/client/{chunk-7IUN2FLI.mjs → chunk-TSPAMV2Z.mjs} +1 -1
- package/dist/src/lib/client/index.cjs +2 -2
- package/dist/src/lib/client/index.mjs +4 -4
- package/dist/src/lib/client/{router-NOFEMOEH.mjs → router-5XQ75CW2.mjs} +2 -2
- package/dist/src/lib/core.cjs +1 -1
- package/dist/src/lib/core.mjs +1 -1
- package/dist/src/lib/i18n/index.cjs +1 -1
- package/dist/src/lib/i18n/index.mjs +1 -1
- package/dist/src/lib/index.cjs +1 -1
- package/dist/src/lib/index.mjs +1 -1
- package/dist/src/lib/jsx-runtime/index.cjs +1 -1
- package/dist/src/lib/jsx-runtime/index.mjs +1 -1
- package/dist/src/lib/jsx-runtime/jsx-dev-runtime.cjs +1 -1
- package/dist/src/lib/jsx-runtime/jsx-dev-runtime.mjs +1 -1
- package/dist/src/lib/plugins/index.cjs +1 -1
- package/dist/src/lib/plugins/index.mjs +1 -1
- package/dist/src/lib/render/index.cjs +1 -1
- package/dist/src/lib/render/index.mjs +1 -1
- package/dist/src/lib/render/versions.cjs +1 -1
- package/dist/src/lib/render/versions.mjs +1 -1
- package/dist/src/lib/router/index.cjs +1 -1
- package/dist/src/lib/router/index.mjs +1 -1
- package/dist/src/lib/server/index.cjs +1 -1
- package/dist/src/lib/server/index.mjs +1 -1
- package/dist/src/routes.cjs +1 -1
- package/dist/src/routes.mjs +1 -1
- package/dist/src/utils.cjs +1 -1
- package/dist/src/utils.mjs +1 -1
- package/dist/src/version.generated.cjs +1 -1
- package/dist/src/version.generated.d.ts +1 -1
- package/dist/src/version.generated.js +1 -1
- package/dist/src/version.generated.mjs +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +11 -11
package/dist/cdn/core.global.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @fluixi/core v1.0.0-alpha.
|
|
2
|
-
"use strict";var Fluixi=(()=>{var rr=Object.defineProperty;var Vs=Object.getOwnPropertyDescriptor;var Ws=Object.getOwnPropertyNames;var Fs=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(e&&(t=e(e=0)),t);var _n=(e,t)=>{for(var r in t)rr(e,r,{get:t[r],enumerable:!0})},js=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ws(t))!Fs.call(e,o)&&o!==r&&rr(e,o,{get:()=>t[o],enumerable:!(n=Vs(t,o))||n.enumerable});return e};var Hs=e=>js(rr({},"__esModule",{value:!0}),e);function Mn(){return{consumer:null,untracked:!1,owner:null,queue:[],scheduled:!1,flushing:!1,batchDepth:0,hostSchedule:Ks,onSuspend:null,onError:null,observer:null}}function Us(e){let t=Mn(),r=e;for(let n of Object.keys(t))n in e||(r[n]=t[n]);return e}function zs(){let e=et[Tn];return e?Us(e):et[Tn]=Mn()}function In(){return[...new Set(et[Nn]??[])]}function Bs(e){return y.observer=e,()=>{y.observer===e&&(y.observer=null)}}function ur(e){let t=y.observer;t&&t.created(e.parents===void 0?{...e,parents:H,origin:e.origin??Js}:e)}function Xs(e){return y.observer?(H.push(e),!0):!1}function Gs(){H.pop()}function Ys(e){y.observer?.ran?.(e)}function Zs(e,t){y.observer?.wrote?.(e,t)}function B(e,t,r,n){let o=y.observer;!o?.bound||!H.length||o.bound(H[H.length-1],e,t,r,n)}function J(e,t,r,n){let o=y.observer;!o?.directive||!H.length||o.directive(H[H.length-1],e,t,r,n)}function Qs(e){y.observer?.contextCreated?.(e)}function or(e,t,r){let n=y.observer;!n?.context||!H.length||n.context(H[H.length-1],e,t,r)}function fr(e){y.observer?.disposed?.(e)}function Ln(){return y.observer!=null}function ir(e){if(e.watchers)for(let t of[...e.watchers])t._notify(e)}function na(e){if(y.untracked)return e();y.untracked=!0;try{return e()}finally{y.untracked=!1}}function ge(e){let t=Le(e);return e&&(e.owned??=[]).push(t),t}function ve(e,t=!0){Ie(e,t)}function Vn(e){return!!e&&e.disposed===!0}function Le(e){return{cleanups:null,owned:null,parent:e,contexts:null}}function X(e,t){let r=Symbol(t??"context");return Qs(r),{id:r,defaultValue:e,Provider:o=>{or(r,"provide",o.value);let i=y.owner,s=Le(i);(s.contexts=new Map).set(r,o.value),i&&(i.owned??=[]).push(s),y.owner=s;try{return o.children}finally{y.owner=i}}}}function K(e){let t=y.owner;for(;t;){if(t.contexts&&t.contexts.has(e.id)){let r=t.contexts.get(e.id);return or(e.id,"read",r),r}t=t.parent}return or(e.id,"read",e.defaultValue),e.defaultValue}function Wn(e,t){let r=e;for(;r;){if(r.contexts&&r.contexts.has(t.id))return r.contexts.get(t.id);r=r.parent}return t.defaultValue}function oa(e,t,r){let n=Le(y.owner);(n.contexts=new Map).set(e.id,t),y.owner&&(y.owner.owned??=[]).push(n);let o=y.owner;y.owner=n;try{return r()}finally{y.owner=o}}function ia(e){y.onSuspend=e}function sa(e){return y.onSuspend?(y.onSuspend(e,y.owner),!0):!1}function aa(e){y.onError=e}function N(){return y.owner}function Fn(e){let t=y.owner;return y.owner=e,t}function I(e,t){let r=y.owner;y.owner=e;try{return t()}finally{y.owner=r}}function S(e){if(y.owner){if(y.owner.disposed){e();return}(y.owner.cleanups??=[]).push(e)}}function Ie(e,t=!0){if(!e.disposed){if(e.owned){for(let r=e.owned.length-1;r>=0;r--)Ie(e.owned[r]);e.owned=null}if(e.cleanups){for(let r=e.cleanups.length-1;r>=0;r--)e.cleanups[r]();e.cleanups=null}t&&(e.disposed=!0)}}function V(e){let t=Le(y.owner);y.owner&&(y.owner.owned??=[]).push(t);let r=y.owner;y.owner=t;try{return e(()=>Ie(t))}finally{y.owner=r}}function ca(e){y.hostSchedule=e??(t=>{Promise.resolve().then(t)})}function ua(e){e.queued||(e.queued=!0,y.queue.push(e),!y.scheduled&&y.batchDepth===0&&(y.scheduled=!0,y.hostSchedule(rt)))}function rt(){if(y.scheduled=!1,y.flushing)return;y.flushing=!0;let e=0;try{for(;y.queue.length;){if(++e>1e5)throw new Error("[fluixi] effect flush did not settle (cycle?)");let t=y.queue;y.queue=[];for(let r of t)r.queued=!1,r.disposed||r.run()}}finally{y.flushing=!1}}function fa(){y.batchDepth===0&&rt()}function la(e){y.batchDepth++;try{return e()}finally{--y.batchDepth===0&&rt()}}function lr(e,t=!1){let r=new da(e,t);return()=>r.dispose()}function pa(e){return!!e&&typeof e.then=="function"}function w(e,t){let r=new ta(e,{equals:t?.equals}),n=(()=>r.get()),o=(i=>{let s=typeof i=="function"?i(r.peek()):i;return r.set(s),fa(),s});return Object.defineProperty(n,jn,{value:!0,enumerable:!0}),Object.defineProperty(n,ya,{value:{get value(){return r.peek()},get version(){return r.version}},enumerable:!1}),ur({kind:"signal",node:r,handle:n,name:t?.name,set:o}),Ln()&&S(()=>fr(r)),[n,o]}function m(e,t,r){let n=t,o=N(),i=new qn(()=>I(o,()=>{try{return n=e(n)}catch(a){if(pa(a))return sa(a),n;throw a}}),{equals:r?.equals}),s=(()=>i.get());return Object.defineProperty(s,jn,{value:!0,enumerable:!0}),Object.defineProperty(s,ha,{value:!0,enumerable:!0}),ur({kind:"memo",node:i,handle:s,name:r?.name}),Ln()&&S(()=>fr(i)),s}function x(e,t){let r=t;return lr(()=>{r=e(r)},!0)}function Hn(e,t){let r=t;lr(()=>{r=e(r)})}function C(e,t){let r=t;return lr(()=>{r=e(r)})}function $(e){return la(e)}function O(e){return na(e)}function Kn(){return rt(),Promise.resolve()}function Un(e,t,r){let n=[];return S(()=>{for(let o of n)o.dispose();n=[]}),m(()=>{let o=e()||[];return O(()=>{if(o.length===0){for(let c of n)c.dispose();return n=[],r?.fallback?r.fallback():[]}let i=new Map;for(let c of n)i.has(c.item)||i.set(c.item,c);let s=[],a=new Set;for(let c=0;c<o.length;c++){let u=o[c],l=i.get(u);if(l&&!a.has(l))l.setIndex(c),s.push(l),a.add(l);else{let f,d,g;V(p=>{g=p;let[b,T]=w(c,{name:"row index"});d=T,f=t(u,b)});let h={item:u,rendered:f,dispose:g,setIndex:d};s.push(h),a.add(h)}}for(let c of n)a.has(c)||c.dispose();return n=s,s.map(c=>c.rendered)})},void 0,{name:"mapArray"})}function zn(e,t,r,n){let o=[],i=[];return S(()=>{for(let s of i)s.dispose();o=[],i=[]}),m(()=>{let s=e()||[];return O(()=>{if(s.length===0){for(let f of i)f.dispose();return o=[],i=[],n?.fallback?n.fallback():[]}let a=new Map;for(let f=0;f<o.length;f++)a.set(o[f],i[f]);let c=[],u=[],l=new Set;for(let f=0;f<s.length;f++){let d=t(s[f]),g=a.get(d);if(g&&!l.has(d))g.setIndex(f),c.push(g);else{let h,p,b;V(T=>{b=T;let[_,ce]=w(f,{name:"row index"});p=ce;let Ye=m(me=>{let re=(e()||[])[_()];return re??me},s[f]);h=r(Ye,_)}),c.push({rendered:h,dispose:b,setIndex:p})}u.push(d),l.add(d)}for(let[f,d]of a)l.has(f)||d.dispose();return o=u,i=c,c.map(f=>f.rendered)})},void 0,{name:"keyArray"})}function Bn(e,t,r){let n=[];return S(()=>{for(let o of n)o.dispose();n=[]}),m(()=>{let o=e()||[];return O(()=>{if(o.length===0){for(let c of n)c.dispose();return n=[],r?.fallback?r.fallback():[]}let i=n.length,s=o.length;for(let c=i;c<s;c++){let u,l,f,d=o[c];V(g=>{f=g;let[h,p]=w(d);l=p,u=t(h,c)}),n.push({rendered:u,setItem:l,dispose:f})}for(let c=s;c<i;c++)n[c].dispose();s<i&&(n=n.slice(0,s));let a=Math.min(i,s);for(let c=0;c<a;c++)n[c].setItem(o[c]);return n.map(c=>c.rendered)})},void 0,{name:"indexArray"})}function M(e){return typeof e=="function"&&e[va]===!0}function wa(e){Rn&&Rn(e)}function Jn(e){sr=e}function ba(e){return sr?sr(e):void 0}function Xn(e){ar=e}function Aa(){return ar?ar():void 0}function Sa(e,t){Pn&&Pn(e,t)}function Gn(e,t=(r,n)=>r===n){let r=new Map;return x(()=>{let n=e();for(let[o,i]of r){let[s,a]=i,c=t(o,n);s()!==c&&a(c)}}),n=>{let o=r.get(n);if(!o){let[i,s]=w(!1);o=[i,s],r.set(n,o);let a=e();s(t(n,a))}return o[0]()}}function Yn(e,t){let[r,n]=w(e(),t);return x(()=>{let o=e();t?.timeoutMs?setTimeout(()=>n(()=>o),t.timeoutMs):typeof requestIdleCallback=="function"?requestIdleCallback(()=>n(()=>o)):Promise.resolve().then(()=>n(()=>o))}),r}function Zn(e,t){let r,n=(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>{r=void 0,e(...o)},t)};return S(()=>{r!==void 0&&clearTimeout(r)}),n}function xa(e){return!!e&&typeof e.then=="function"}function ne(e,t,r={}){let n,o;typeof t=="function"?(n=typeof e=="function"?e:()=>e,o=t):(n=()=>!0,o=e,t&&typeof t=="object"&&(r=t));let i=r.transport===!1?void 0:Aa(),s=i!==void 0?ba(i):void 0,a=s!==void 0,[c,u]=w(s!==void 0?s.value:r.initialValue,{equals:!1}),[l,f]=w(void 0,{equals:!1}),[d,g]=w(s!==void 0||r.initialValue!==void 0?"ready":"unresolved",{equals:!1}),[h,p]=w(void 0,{equals:!1}),[b,T]=w(void 0,{equals:!1}),_=nr,ce=!1;x(()=>{let D=n();if(b(),D===!1||D===null||D===void 0){_=nr,$(()=>{g("unresolved"),p(void 0),f(void 0)});return}let re=ce;if(ce=!1,_!==nr&&D===_&&!re)return;if(_=D,a){a=!1;return}let Ze=!1;S(()=>Ze=!0);let xn=O(d),qs=O(c),kn=xn==="ready"||xn==="refreshing";$(()=>{g(kn?"refreshing":"pending"),f(void 0)});try{let ue=o(D,{value:qs,refetching:kn});xa(ue)?(p(ue),wa(ue),ue.then(Qe=>{Ze||(i!==void 0&&Sa(i,Qe),$(()=>{u(()=>Qe),g("ready"),p(void 0)}))},Qe=>{Ze||$(()=>{f(Qe),g("errored"),p(void 0)})})):$(()=>{u(()=>ue),g("ready"),p(void 0)})}catch(ue){if(Ze)return;$(()=>{f(ue),g("errored"),p(void 0)})}});let Ye=()=>{let D=d();return D==="pending"||D==="refreshing"},me=(()=>{let D=l();if(D)throw D;if(Ye()){let re=h();if(re)throw re}return c()});return Object.defineProperties(me,{state:{get:d},loading:{get:Ye},error:{get:l},latest:{get:c}}),Object.defineProperty(me,Symbol.for("resource"),{value:!0,enumerable:!0}),Object.defineProperty(me,Symbol.for("signal"),{value:!0,enumerable:!0}),[me,{mutate:u,refetch:()=>{ce=!0,T(void 0)}}]}function tt(e){if(typeof e=="function"&&!e.length){let t=e();return M(t)?t:tt(t)}if(Array.isArray(e)){let t=[];for(let r=0;r<e.length;r++){let n=tt(e[r]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function fe(e){let t=m(e);return ga?m(()=>tt(t()),void 0,{name:"children"}):m(()=>tt(t()))}function eo(){let[e,t]=w(0),r=0;return{increment:()=>t(r+=1),decrement:()=>t(r-=1),inFallback:()=>e()>0}}function dr(e,t){return oa(Qn,e,t)}var cr,$n,Tn,Nn,Ks,et,y,H,Js,ea,On,En,Cn,Me,Dn,ta,qn,ra,da,jn,ha,ya,ma,ga,va,Rn,sr,ar,Pn,nr,Qn,ka,we,A=q(()=>{"use strict";cr="1.0.0-alpha.85",$n=cr.split(".")[0],Tn=`__fluixi_signal_state_v${$n}__`,Nn=`__fluixi_signal_builds_v${$n}__`,Ks=e=>{typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)};et=globalThis;y=zs();(et[Nn]??=[]).push(cr);H=[];ea="__FLUIXI_DEVTOOLS_HOOK__",On=globalThis[ea];if(typeof On?.inject=="function")try{On.inject({observeReactiveNodes:Bs,version:cr})}catch{}En=0,Cn=1,Me=2,Dn=class{constructor(){this.observers=null,this.watchers=null,this.version=0}updateIfNecessary(){}track(){if(y.untracked)return;let e=y.consumer;e&&((this.observers??=new Set).add(e),(e.sources??=new Set).add(this))}},ta=class extends Dn{constructor(e,t){super(),this._value=e,this._equals=t?.equals===!1?()=>!1:t?.equals??Object.is}get(){return this.track(),this._value}set(e){if(!this._equals(this._value,e)){if(this._value=e,this.version++,Zs(this,y.consumer),this.observers)for(let t of[...this.observers])t.markDirty(Me);ir(this)}}peek(){return this._value}},qn=class extends Dn{constructor(e,t){super(),this._threw=!1,this._initialized=!1,this.state=Me,this.sources=null,this._fn=e,this._equals=t?.equals===!1?()=>!1:t?.equals??Object.is}get(){if(y.consumer===this)throw new Error("Signal.Computed cannot read itself");if(this.track(),this.updateIfNecessary(),this._threw)throw this._error;return this._value}updateIfNecessary(){if(this.state===Cn&&this.sources){for(let e of this.sources)if(e.updateIfNecessary(),this.state===Me)break}(this.state===Me||!this._initialized)&&this.recompute(),this.state=En}recompute(){if(this.sources){for(let a of this.sources)a.observers?.delete(this);this.sources.clear()}let e=y.consumer,t=y.untracked,r=Xs(this);y.consumer=this,y.untracked=!1;let n,o=!1,i;try{n=this._fn()}catch(a){o=!0,i=a,n=this._value}finally{y.consumer=e,y.untracked=t,r&&Gs()}let s=!this._initialized||this._threw!==o||(o?i!==this._error:!this._equals(this._value,n));if(this._initialized=!0,this._threw=o,this._error=i,this._value=n,Ys(this),s){if(this.version++,this.observers)for(let a of[...this.observers])a.markDirty(Me);ir(this)}}markDirty(e){if(this.state>=e)return;let t=this.state===En;if(this.state=e,t){if(this.observers)for(let r of[...this.observers])r.markDirty(Cn);ir(this)}}peek(){if(this.updateIfNecessary(),this._threw)throw this._error;return this._value}};ra=class{constructor(e){this._watched=new Set,this._pending=new Set,this._notifyFn=e}watch(...e){for(let t of e)this._watched.add(t),(t.watchers??=new Set).add(this)}unwatch(...e){for(let t of e)this._watched.delete(t),t.watchers?.delete(this),this._pending.delete(t)}getPending(){let e=[...this._pending];return this._pending.clear(),e}_notify(e){if(!this._watched.has(e)||this._pending.has(e))return;let t=this._pending.size===0;this._pending.add(e),t&&this._notifyFn()}};da=class{constructor(e,t=!1){this.queued=!1,this.disposed=!1,this.owner=Le(y.owner),y.owner&&(y.owner.cleanups??=[]).push(()=>this.dispose()),this.computed=new qn(()=>{Ie(this.owner,!1),I(this.owner,()=>{let r=e();typeof r=="function"&&(this.owner.cleanups??=[]).push(r)})}),ur({kind:"effect",node:this.computed,handle:this,internal:!t}),this.watcher=new ra(()=>ua(this)),this.run(),this.watcher.watch(this.computed)}run(){if(!this.disposed){this.watcher.getPending();try{this.computed.get()}catch(e){if(e&&typeof e.then=="function"&&y.onSuspend){y.onSuspend(e,this.owner);return}if(y.onError&&y.onError(e,this.owner))return;throw e}}}dispose(){this.disposed||(this.disposed=!0,fr(this.computed),this.watcher.unwatch(this.computed),Ie(this.owner))}};ca(()=>{});jn=Symbol.for("signal"),ha=Symbol.for("memo"),ya=Symbol.for("signal-node");ma=typeof window>"u"?!1:window.__FLUIXI_PROD__===!0,ga=typeof process>"u"?ma:!1,va=Symbol.for("signal");Rn=null;sr=null;ar=null;Pn=null;nr=Symbol();Qn=X();ia((e,t)=>{let r=Wn(t,Qn);r&&(r.increment(),e.finally(()=>r.decrement()))});ka=X();aa((e,t)=>{let r=Wn(t,ka);return r?(r.setError(e),!0):!1});we=Symbol.for("fluixi-proxy")});var Co,Ro=q(()=>{"use strict";Co="1.0.0-alpha.85"});function Ko(){return{consumer:null,untracked:!1,owner:null,queue:[],scheduled:!1,flushing:!1,batchDepth:0,hostSchedule:hc,onSuspend:null,onError:null,observer:null}}function yc(e){let t=Ko(),r=e;for(let n of Object.keys(t))n in e||(r[n]=t[n]);return e}function mc(){let e=_r[Po];return e?yc(e):_r[Po]=Ko()}function gc(e){return R.observer=e,()=>{R.observer===e&&(R.observer=null)}}function vc(e,t){if(!R.observer)return t();let r=ht;ht=e;try{return t()}finally{ht=r}}function wc(e){let t=R.observer;t&&t.created(e.parents===void 0?{...e,parents:le,origin:e.origin??ht}:e)}function Uo(e){let t=R.observer;!t?.props||!le.length||!e||t.props(le[le.length-1],e)}function bc(e){R.observer?.contextCreated?.(e)}function Ac(e,t,r){let n=R.observer;!n?.context||!le.length||n.context(le[le.length-1],e,t,r)}function $o(e,t,r){R.observer?.moved?.(e,t,r)}function No(e){R.observer?.disposed?.(e)}function zo(){return R.observer!=null}function xc(e){if(R.untracked)return e();R.untracked=!0;try{return e()}finally{R.untracked=!1}}function kc(e){return{cleanups:null,owned:null,parent:e,contexts:null}}function Bo(e,t){let r=Symbol(t??"context");return bc(r),{id:r,defaultValue:e,Provider:o=>{Ac(r,"provide",o.value);let i=R.owner,s=kc(i);(s.contexts=new Map).set(r,o.value),i&&(i.owned??=[]).push(s),R.owner=s;try{return o.children}finally{R.owner=i}}}}function Jo(e,t){let r=e;for(;r;){if(r.contexts&&r.contexts.has(t.id))return r.contexts.get(t.id);r=r.parent}return t.defaultValue}function _c(e){R.onSuspend=e}function Tc(e){R.onError=e}function Oc(e){R.hostSchedule=e??(t=>{Promise.resolve().then(t)})}function Xo(e){return xc(e)}function Go(e){return typeof e=="function"&&e[Ec]===!0}function Pc(e,t){if(!Se(e)||!zo())return;let r=new Set,n=s=>{if(!(!Se(s)||r.has(s))){r.add(s);for(let a of Object.values(s))n(a)}};n(vt.get(t)??t);let o=new Set,i=s=>{if(!Se(s))return;let a=s;if(r.has(a)||o.has(a))return;o.add(a);let c=qe.get(a);if(c){for(let u of c.keys.values())No(u);c.all&&No(c.all),qe.delete(a),xe.delete(a),Tr.delete(a)}for(let u of Object.values(a))i(u)};i(e)}function Yo(e,t,r){let n=t?.owner,o=n&&r!==void 0?wt(n.name,r,t?.array):void 0,[i,s]=vc(n?.store,()=>w(e,o?{name:o}:void 0)),a=i;return a.$=s,a}function bt(e){let t=qe.get(e);return t?t.owner||(t.owner=xe.get(e)):qe.set(e,t={keys:new Map,owner:xe.get(e),array:Array.isArray(e)}),t}function Vo(e,t,r){let n=e.keys.get(t);return n||e.keys.set(t,n=Yo(r,e,t)),n}function $c(e,t,r,n){let o=xe.get(e);if(o&&o.store===t&&o.name===r)return;let i={store:t,name:r};xe.set(e,i),vt.set(e,vt.get(n)??n);let s=qe.get(e);if(s&&(s.owner=i,!!zo())){for(let[a,c]of s.keys)$o(c,t,wt(r,a,s.array));s.all&&$o(s.all,t,wt(r,"*",s.array))}}function Wo(e){let t=bt(e);(t.all||(t.all=Yo(void 0,t,"*")))()}function Fo(e,t){e.$(typeof t=="function"?()=>t:t)}function Se(e){if(e==null||typeof e!="object")return!1;if(Array.isArray(e))return!0;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function yt(e){if(!Se(e))return e;let t=Tr.get(e);if(t)return t;let r=new Proxy(e,Nc);return Tr.set(e,r),r}function Zo(e,t=new Set){if(e==null||typeof e!="object")return e;let r=e[gt]??e;if(t.has(r)||!Se(r))return r;t.add(r);let n=!1,o=s=>{let a=Zo(s,t);return a!==s&&(n=!0),a};if(Array.isArray(r)){let s=r.map(o);return n?s:r}let i={};for(let s of Object.keys(r))i[s]=o(r[s]);return n?i:r}function Y(e,t,r){let n=Zo(r),o=e[t];if(o===n&&(n!==void 0||t in e))return;let i=Array.isArray(e),s=i?e.length:0;n===void 0?delete e[t]:e[t]=n;let a=bt(e),c=a.keys.get(t);if(c&&Fo(c,n),Pc(o,e),i&&e.length!==s){let u=a.keys.get("length");u&&Fo(u,e.length)}a.all&&a.all.$(void 0)}function Or(e,t){return typeof e=="function"?e(t):e}function Er(e,t){for(let r of Object.keys(t)){let n=t[r],o=e[r];n&&typeof n=="object"&&!Array.isArray(n)&&o&&typeof o=="object"&&!Array.isArray(o)?Er(o,n):Y(e,r,n)}}function St(e){let t=[],r=e.replace(/\[([^\]]*)\]/g,".$1");for(let n of r.split("."))n.length&&t.push(n);return t}function Qo(e,t,r){let n=t.length-1;for(let i=0;i<n;i++){let s=t[i];if(s==="*"){let c=t.slice(i+1);if(Array.isArray(e))for(let u=0;u<e.length;u++)Qo(e[u],c,r);return}let a=e[s];(a==null||typeof a!="object")&&(a=/^\d+$/.test(t[i+1])?[]:{},Y(e,s,a)),e=a}let o=t[n];if(o==="*"){if(Array.isArray(e))for(let i=0;i<e.length;i++)Y(e,i,Or(r,e[i]));return}Y(e,o,Or(r,e[o]))}function jo(e,t,r){Qo(e,St(t),r)}function Mc(e){return Array.isArray(e)&&e.length>0&&e.every(t=>Array.isArray(t)&&t.length>=2&&typeof t[0]=="string")}function mt(e,t){for(let r=e.length-1;r>=t.length;r--)Y(e,String(r),void 0);e.length!==t.length&&Y(e,"length",t.length);for(let r=0;r<t.length;r++)Y(e,String(r),t[r])}function Ic(e,t){let r=t[0];if(typeof r=="function"&&t.length===1){let n=r(e);n&&n!==e&&Er(e,n);return}if(Array.isArray(r)&&t.length===1){if(Mc(r)){for(let n of r)jo(e,n[0],n[1]);return}if(Array.isArray(e)){mt(e,r);return}if(r.length===0)return;throw new TypeError("[fluixi] set() was given an array that is neither a batch of [path, value] pairs nor a replacement for an array root. Name the path you meant, as in set('items', [...]).")}if(r&&typeof r=="object"&&!Array.isArray(r)&&t.length===1){Er(e,r);return}if(t.length>=3){Cr(e,t.slice(0,-1),t[t.length-1]);return}jo(e,String(r),t[1])}function Lc(e,t){if(typeof t=="function"){if(!Array.isArray(e))return[];let r=[];for(let n=0;n<e.length;n++)t(e[n],n)&&r.push(n);return r}if(Array.isArray(t))return Array.isArray(e)?t.map(Number):t.map(String);if(t&&typeof t=="object"&&("from"in t||"to"in t||"by"in t)){if(!Array.isArray(e))return[];let r=t.by??1,n=t.from??0,o=t.to??e.length-1,i=[];for(let s=n;s<=o;s+=r)s>=0&&s<e.length&&i.push(s);return i}return t==="*"?Array.isArray(e)?e.map((r,n)=>n):Object.keys(e??{}):[t]}function Cr(e,t,r){if(e==null)return;let[n,...o]=t;if(typeof n=="string"){let s=St(n);if(s.length>1){Cr(e,[...s,...o],r);return}}let i=Lc(e,n);if(o.length===0){for(let s of i)Y(e,s,Or(r,e[s]));return}for(let s of i){let a=e[s];if(a==null||typeof a!="object"){let c=o[0];a=typeof c=="number"||/^\d+$/.test(String(c))?[]:{},Y(e,s,a)}Cr(a,o,r)}}function Rr(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Rr);let t={};for(let r of Object.keys(e))t[r]=Rr(e[r]);return t}function se(e,t){let r=e;for(let n of St(t)){if(r==null)return;r=r[n]}return r}function qc(e,t){for(let r of Dc)e[r]=t[r].bind(t);e.$=t.reactive.bind(t)}function Vc(e,t={immutable:!0}){let r=new ei(e,t);return qc(r.set,r),[r.proxy,r.set]}function Wc(e,t={}){return new ei(e,{...t,immutable:!1})}function At(e){if(e==null||typeof e!="object")return e;let t=e[gt];return t!==void 0?t:e}function Fc(e){return O(()=>At(e))}var Pr,Ho,Po,pc,hc,_r,R,le,ht,Sc,Mo,Xf,Ec,Cc,Rc,gt,Io,Lo,Do,qo,qe,Tr,xe,vt,wt,Nc,ei,Dc,Yf,ti=q(()=>{"use strict";A();Pr="1.0.0-alpha.85",Ho=Pr.split(".")[0],Po=`__fluixi_signal_state_v${Ho}__`,pc=`__fluixi_signal_builds_v${Ho}__`,hc=e=>{typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)};_r=globalThis;R=mc();(_r[pc]??=[]).push(Pr);le=[];Sc="__FLUIXI_DEVTOOLS_HOOK__",Mo=globalThis[Sc];if(typeof Mo?.inject=="function")try{Mo.inject({observeReactiveNodes:gc,version:Pr})}catch{}Oc(()=>{});Xf=typeof window>"u"?!1:window.__FLUIXI_PROD__===!0,Ec=Symbol.for("signal");Cc=Bo();_c((e,t)=>{let r=Jo(t,Cc);r&&(r.increment(),e.finally(()=>r.decrement()))});Rc=Bo();Tc((e,t)=>{let r=Jo(t,Rc);return r?(r.setError(e),!0):!1});gt=Symbol("store-raw"),Io=Symbol("store-node"),Lo=Symbol("store-has"),Do=Symbol("store-self"),qo=Symbol("store-track"),qe=new WeakMap,Tr=new WeakMap,xe=new WeakMap,vt=new WeakMap;wt=(e,t,r)=>r?`${e}[${String(t)}]`:`${e}.${String(t)}`;Nc={get(e,t,r){if(t===gt||t===Io)return e;if(t===we)return r;if(t===Lo)return c=>c in e;if(t==="__proxy")return!0;if(t===qo||t===Do)return Wo(e),r;let n=e[t];if(typeof n=="function"&&!Object.prototype.hasOwnProperty.call(e,t))return n;let o=Object.getOwnPropertyDescriptor(e,t);if(o&&o.get)return o.get.call(r);let i=bt(e),s=Vo(i,t,n),a=s();return Se(a)?(i.owner&&$c(a,s,wt(i.owner.name,t,i.array),e),yt(a)):a},set(){return!0},deleteProperty(e,t){return t in e&&Y(e,t,void 0),!0},has(e,t){return t===gt||t===we||t===Io||t===Lo||t===Do||t===qo?!0:(Vo(bt(e),t,e[t])(),t in e)},ownKeys(e){return Wo(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e,t)}};ei=class{constructor(e,t={immutable:!0}){this.options=t,this.root=e,this.set=((...r)=>$(()=>Ic(this.root,r))),e&&typeof e=="object"&&(xe.set(e,{store:this,name:t.name??"store"}),vt.set(e,e)),wc({kind:"store",node:this,handle:()=>this.root,name:t.name})}get state(){return yt(this.root)}get proxy(){return yt(this.root)}get accessor(){return(()=>yt(this.root))}unwrap(){return this.root}getNode(e){return this.root&&this.root[e]}get(e){if(e==null||e==="")return At(this.state);let t=this.state;for(let r of St(e)){if(t==null)return;t=t[r]}return At(t)}select(e){return m(()=>e(this.state))}subscribe(e){return x(()=>e(this.state))}watch(e,t){let r;return x(()=>{let n=e(this.state);Object.is(n,r)||(t(n,r),r=n)})}reactive(e){return m(()=>this.state[e])}produce(e){this.set((t=>{let r=Rr(t);return e(r),r}))}reconcile(e,t={}){this.set(e)}push(e,...t){let r=se(this.root,e);this.set(e,r.concat(t))}pop(e){let t=se(this.root,e).slice(),r=t.pop();return this.set(e,t),r}shift(e){let t=se(this.root,e).slice(),r=t.shift();return this.set(e,t),r}splice(e,t,r,...n){let o=se(this.root,e).slice(),i=o.splice(t,r,...n);return this.set(e,o),i}insert(e,t,r){let n=se(this.root,e).slice();n.splice(t,0,r),this.set(e,n)}removeAt(e,t){let r=se(this.root,e).slice(),n=r.splice(t,1);return this.set(e,r),n}replace(e,t){if(arguments.length>=2){let n=se(this.root,String(e)),o=t;if(Array.isArray(n)&&Array.isArray(o)){mt(n,o);return}this.set(e,o);return}let r=this.root;if(Array.isArray(r)&&Array.isArray(e)){mt(r,e);return}this.set(e)}clear(e){let t=e===void 0?this.root:se(this.root,e);if(Array.isArray(t)){mt(t,[]);return}if(t&&typeof t=="object")for(let r of Object.keys(t))Y(t,r,void 0)}toObservable(){let[e]=w(this.state);return e.toObservable()}dispose(){}},Dc=["get","select","watch","subscribe","produce","reconcile","push","pop","shift","splice","insert","removeAt","replace","clear","unwrap","toObservable"];Yf=Object.freeze({createStore:Vc,createMutableStore:Wc,batch:$,unwrap:At,untrackStore:Fc})});function jc(e){return e.localName.includes("-")}function ri(e,t,r,n=!1){if(r==null){e.removeAttribute(t);return}if(jc(e)){e[t]=r;return}E(e,t,r,n)}function ui(e,...t){e.classList.add(...t)}function fi(e,...t){e.classList.remove(...t)}function li(e,...t){t.forEach(r=>e.classList.toggle(r))}function E(e,t,r,n=!1){if(r==null||r===!1){e.removeAttribute(t);return}if(r===!0){e.setAttribute(t,"");return}if(typeof r=="object"){e.setAttribute(t,JSON.stringify(r));return}e.setAttribute(t,String(r))}function di(e){return e&&typeof e=="object"&&e.strings&&Array.isArray(e.strings)&&e.values&&Array.isArray(e.values)}function Rt(e){return e instanceof Node}function pi(e){F.core=e}function Pt(e){F.core&&e.setAttribute("fluixi",F.core),e.setAttribute("fx-dom",F.dom),e.setAttribute("fx-reactive",F.reactive),typeof globalThis<"u"&&(globalThis.Fluixi=F)}function $t(){let e=In();e.length>1&&console.warn(`[fluixi] ${e.length} builds of @fluixi/reactive are driving one reactive graph: ${e.join(", ")}. They share it on purpose, so signals still cross between them, but the oldest one decided what the graph looks like. Build the components on one release, or load them as shared-runtime bundles.`);let t=[F.core,F.dom,F.reactive].filter(r=>r!==void 0);new Set(t).size<=1||console.warn(`[fluixi] package versions disagree: core ${F.core??"(absent)"}, dom ${F.dom}, reactive ${F.reactive}. These ship as one release, so a mismatch usually means a stale lockfile or two copies resolved side by side. Reinstall, or check for duplicates with \`pnpm why @fluixi/dom\`.`)}function hi(e){return Object.defineProperty(e,Symbol.for("fluixi-provider"),{value:!0,enumerable:!0}),e}function Ve(e){return typeof e!="function"||Object.defineProperty(e,Symbol.for("fluixi-component"),{value:!0,enumerable:!0}),e}function yi(e){return Object.defineProperty(e,Symbol.for("fluixi-suspense"),{value:!0,enumerable:!0}),e}function Kc(e){return typeof e=="function"&&e[Symbol.for("fluixi-router")]===!0}function Uc(e){return typeof e=="function"&&e[Symbol.for("fluixi-routes")]===!0}function zc(e){return typeof e=="function"&&e[Symbol.for("fluixi-route")]===!0}function Bc(e){return typeof e=="function"&&e[Symbol.for("fluixi-outlet")]===!0}function Jc(e){return typeof e=="function"&&e[Symbol.for("fluixi-provider")]===!0}function Xc(e){return typeof e=="function"&&e[Symbol.for("fluixi-context")]===!0}function ee(e){return typeof e=="function"&&e[Symbol.for("fluixi-component")]===!0}function Gc(e){return typeof e=="function"&&e[Symbol.for("fluixi-suspense")]===!0}function mi(e){return Kc(e)?{type:"router",value:e}:zc(e)?{type:"route",value:e}:Uc(e)?{type:"routes",value:e}:Bc(e)?{type:"outlet",value:e}:ee(e)?{type:"component",value:e}:Gc(e)?{type:"suspense",value:e}:Jc(e)?{type:"provider",value:e}:Xc(e)?{type:"context",value:e}:{type:"none",value:e}}function L(){return Nr.server}function qr(){if(!Nr.nodes)throw new Error("[fluixi] server render ran before @fluixi/dom/server loaded");return Nr.nodes}function Vr(e){return e!=null&&e[Nt]===!0?!0:typeof Node<"u"&&e instanceof Node}function Qc(e){return e!=null&&e[Nt]===!0?e.nodeType===1:typeof Element<"u"&&e instanceof Element}function eu(e){return e!=null&&e[Nt]===!0?e.nodeType===3:typeof Text<"u"&&e instanceof Text}function tu(e){gi=e}function vi(){return gi}function oi(e,t){return v.active&&t.parentNode===e}function wi(e){let t=v.parents.lastIndexOf(e);t!==-1&&(v.parents.length=t),v.cursor=e.nextSibling}function bi(e){if(!v.active)return e();let t=v.cursor,r=v.parents;v.active=!1,v.parents=[];try{return e()}finally{v.active=!0,v.cursor=t,v.parents=r}}function Ai(e){if(!v.active||e==null)return;let t=Array.isArray(e)?e[e.length-1]:e;t&&typeof t.nodeType=="number"&&wi(t)}function ii(e,t){return t&&(e[nu]=t),e}function pe(e){if(!L())for(let t of e)kt.has(t)||Wr.has(t)||(kt.add(t),document.addEventListener(t,ou))}function ou(e){let t=`$$${e.type}`,r=e.composedPath&&e.composedPath()[0]||e.target;for(;r;){let n=r[t];if(n&&!r.disabled&&(n(e),e.cancelBubble))return;r=r.host&&r.host!==r&&r.host instanceof Element?r.host:r.parentNode}}function iu(e,t,r){if(e[`$$${t}`]=r,Wr.has(t)){let n=`__fx_${t}`;if(!e[n]){let o=i=>{e[`$$${t}`]?.(i)};e.addEventListener(t,o),e[n]=o}return}kt.has(t)||pe([t])}function si(e,t){delete e[`$$${t}`];let r=`__fx_${t}`,n=e[r];n&&(e.removeEventListener(t,n),delete e[r])}function ae(e,t=!1){if(L())return qr().createText(e);if(v.active&&!t){let r=vi()?.hydrateText(e);if(r)return r}return document.createTextNode(e)}function _e(e,t=!1,r){if(L())return qr().createElement(e,t);if(v.active){let n=vi()?.hydrateElement(e);if(n)return r?ii(n,r):n}return ii(t?document.createElementNS(Dr,e):document.createElement(e),r)}function au(e,t,r,n,o){let i=n,s=new Map;return C(()=>{B(r??t,"content",void 0,e);let a;if(ee(e)&&!M(e)){if(!s.has(e)){Q++;try{let c=e();s.set(e,c)}finally{Q--}}for(a=s.get(e);typeof a=="function"&&M(a);)a=a()}else for(a=e();typeof a=="function"&&M(a);)a=a();{let c=0;for(;typeof a=="function"&&c++<50;)if(ee(a)){if(!s.has(a)){let u=a;Q++;try{let l=u();s.set(u,l)}finally{Q--}}a=s.get(a)}else if(M(a))a=a();else if(a=a(),typeof a!="function"||!M(a)&&!ee(a))break}Q++;try{i=_t(t,a,r,i,s),o(i)}finally{Q--}})}function j(e,t,r,n){if(Q>su)return console.error("[insert] Exceeded max call depth, possible infinite loop."),()=>null;r!==void 0&&!r&&(r=ae("",!0),e.appendChild(r));let o=n??null,i=c=>Array.isArray(c)&&c.some(u=>typeof u=="function"),s=c=>typeof c=="function"?c:()=>c;if(typeof t!="function"&&!i(t)){Q++;try{o=_t(e,t,r,o)}finally{Q--}return()=>o}let a=au(s(t),e,r,o,c=>{o=c});return()=>(a?.(),o)}function _t(e,t,r,n,o){if(t==null||typeof t=="boolean")return de(e,n,r);if(typeof t=="function")for(;typeof t=="function";)t=t();if(t==null||typeof t=="boolean")return de(e,n,r);if(xt(t)){let s=ae("",!0);return Array.isArray(n)?n.length>0?(e.replaceChild(s,n[0]),de(e,n.slice(1),r)):W(e,s,r):n?e.replaceChild(s,n):W(e,s,r),t.then(a=>{s.parentNode===e&&_t(e,a,s.nextSibling,s)}).catch(a=>{console.error("Error resolving promise in insertExpression:",a)}),s}let i=typeof t;if(i==="string"||i==="number"){if(i==="number"&&(t=String(t)),Array.isArray(n)){if(n.length===0){let a=ae(t);return W(e,a,r),a}if(n.length===1&&n[0].nodeType===3)return n[0].data=t,n;n=de(e,n,r)}if(n&&eu(n))return n.data=t,n;let s=ae(t);return n&&n.parentNode===e?e.replaceChild(s,n):oi(e,s)||W(e,s,r),s}if(Vr(t))return oi(e,t)?(wi(t),t):Array.isArray(n)?(n.length===0?W(e,t,r):n[0].parentNode===e?(e.replaceChild(t,n[0]),de(e,n.slice(1),r)):W(e,t,r),t):(n?n!==t&&(n.parentNode===e?e.replaceChild(t,n):W(e,t,r)):W(e,t,r),t);if(Array.isArray(t)){let s=[],a=Array.isArray(n)?n:n?[n]:[],c=[];Z(t,s,e,r,!0,o,c);let u=cu(e,a,s,r);for(let l of c){let f=j(e,l.sig,l.marker);S(()=>{de(e,f()),l.marker.parentNode===e&&e.removeChild(l.marker)})}return u}if(i==="object"&&t!==null&&typeof t=="object"){let s=t;if("type"in s&&"props"in s){let a=s;if(typeof a.type=="function"){let c=a.type(a.props||{});return _t(e,c,r,n)}}}return de(e,n,r)}function Z(e,t,r,n,o=!0,i,s){for(let a=0;a<e.length;a++){let c=e[a];if(!(c==null||typeof c=="boolean")){for(;typeof c=="function"&&!xt(c)&&!M(c)&&!ee(c)&&(c=c(),!(c==null||typeof c=="boolean")););if(!(c==null||typeof c=="boolean")){if(typeof c=="function"){let u;for(ee(c)&&!M(c)?(i||(i=new Map),i.has(c)||i.set(c,c()),u=i.get(c)):u=c();typeof u=="function"&&!xt(u)&&!M(u)&&!ee(u);)i||(i=new Map),i.has(u)||i.set(u,u()),u=i.get(u);if(u==null||typeof u=="boolean")continue;if(typeof u=="function"){if(M(u)){if(s){let f=ae("",!0);t.push(f),s.push({marker:f,sig:u});continue}let l=u();for(;typeof l=="function"&&M(l);)l=l();if(l==null||typeof l=="boolean")continue;Array.isArray(l)?Z(l,t,r,n,o,i):Z([l],t,r,n,o,i);continue}continue}Array.isArray(u)?Z(u,t,r,n,o,i,s):Z([u],t,r,n,o,i,s);continue}if(xt(c)){let u=ae("",!0);t.push(u),c.then(l=>{if(u.parentNode){let f=[];if(Z([l],f,u.parentNode,void 0,!1,i),f.length>0){u.parentNode.replaceChild(f[0],u);for(let d=1;d<f.length;d++)u.parentNode?.insertBefore(f[d],f[d-1].nextSibling)}}}).catch(l=>console.error("Error resolving promise in array:",l));continue}if(Array.isArray(c)){Z(c,t,r,n,o,i,s);continue}if(Vr(c)){t.push(c);continue}if(typeof c=="object"&&c!==null&&"type"in c&&"props"in c){let u=c;if(typeof u.type=="function"){let l=u.type(u.props||{});Array.isArray(l)?Z(l,t,r,n,!1,i):Z([l],t,r,n,!1,i);continue}}if(typeof c=="string"||typeof c=="number"){let u=String(c);if(u.trim()===""&&u!==" ")continue;t.push(ae(u));continue}t.push(ae(String(c)))}}}}function cu(e,t,r,n){for(let f=0;f<r.length;f++){let d=r[f].parentNode;d!==null&&d!==e&&d.nodeType!==11&&(r=r.slice(),r[f]=r[f].cloneNode(!0))}let o=r.length,i=t.length,s=o,a=0,c=0,u=i>0?t[i-1].nextSibling??void 0:n,l=null;for(;a<i||c<s;){if(t[a]===r[c]){a++,c++;continue}for(;i>a&&s>c&&t[i-1]===r[s-1];)i--,s--;if(i===a){let f=s<o?c?r[c-1].nextSibling??void 0:r[s-c]:u;for(;c<s;)W(e,r[c++],f)}else if(s===c)for(;a<i;)(!l||!l.has(t[a]))&&t[a].parentNode===e&&e.removeChild(t[a]),a++;else if(t[a]===r[s-1]&&r[c]===t[i-1]){let f=t[--i].nextSibling;W(e,r[c++],t[a++].nextSibling),W(e,r[--s],f),t[i]=t[a-1]}else{if(!l){l=new Map;let d=c;for(;d<s;)l.set(r[d],d++)}let f=l.get(t[a]);if(f!=null)if(c<f&&f<s){let d=a,g=1;for(;++d<i&&d<s&&!(!l.has(t[d])||l.get(t[d])!==f+g);)g++;if(g>f-c){let h=t[a];for(;c<f;)W(e,r[c++],h)}else t[a].parentNode===e?e.replaceChild(r[c++],t[a++]):(W(e,r[c++],u),a++)}else a++;else t[a].parentNode===e&&e.removeChild(t[a]),a++}}return r}function de(e,t,r){if(t)if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n].parentNode===e&&e.removeChild(t[n]);else t.parentNode===e&&e.removeChild(t);return null}function W(e,t,r){v.active&&t.parentNode===e||(r&&r.parentNode===e?e.insertBefore(t,r):e.appendChild(t))}function ke(e,t,r){r==null?delete e[t]:e[t]=r}function xi(e,t,r){let n=r,o;return Array.isArray(r)&&(n=r[0],o=r[1]),typeof n!="function"?()=>{}:(e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o))}function ki(e,t){if(!t||typeof t!="function")return;let r=t[Si]?.name;if(!r)return;let n=r.indexOf(":");n!==-1&&J(e,r.slice(0,n),r.slice(n+1),t)}function Tt(e,t,r){let n=typeof r=="function"?O(()=>r()):r;if(!(!n||typeof n!="object"))for(let o of Object.keys(n))J(e,t,o)}function _i(e,t){let r=(n,o)=>{typeof n=="function"&&(J(e,"use",n.name||"use",o),n(e,o??(()=>{})))};if(typeof t=="function"){r(t);return}if(Array.isArray(t)){if(typeof t[0]=="function"){r(t[0],t[1]);return}for(let n of t)Array.isArray(n)?r(n[0],n[1]):r(n)}}function Mr(e,t,r,n=!1){return ki(e,r),typeof r!="function"?(E(e,t,r,n),()=>{}):C(()=>{B(e,"attribute",t,r);let o=typeof r=="function"?r():r;E(e,t,o,n)})}function Ir(e,t,r){return typeof r!="function"?(ke(e,t,r),()=>{}):(ki(e,r),C(()=>{B(e,"property",t,r);let n=typeof r=="function"?r():r;ke(e,t,n)}))}function Ti(e,t,r){return typeof r!="function"?(E(e,t,!!r),()=>{}):C(()=>{B(e,"attribute",t,r);let n=r();E(e,t,!!n)})}function Ot(e,t){if(t==null){e.removeAttribute("class");return}if(typeof t=="function"){C(()=>{B(e,"attribute","class",t),Ot(e,t())});return}if(typeof t=="string"){e.setAttribute("class",t);return}if(Array.isArray(t)){e.setAttribute("class",t.filter(Boolean).join(" "));return}if(typeof t=="object"){let r=Object.keys(t).filter(n=>{let o=t[n];return typeof o=="function"?o():!!o}).join(" ");e.setAttribute("class",r);return}e.setAttribute("class",String(t))}function Et(e,t,r){if(!(!t||typeof t!="object"))for(let n in t){let o=t[n],i=n.split(/\s+/).filter(Boolean);if(typeof o=="function"&&r)r.push(C(()=>{let s=!!o();for(let a of i)e.classList.toggle(a,s)}));else{let s=!!(typeof o=="function"?o():o);for(let a of i)e.classList.toggle(a,s)}}}function Ct(e,t){let r=t;for(;typeof r=="function";)r=r();if(r==null){e.removeAttribute("style");return}if(typeof r=="string"){e.style.cssText=r;return}if(typeof r=="object")for(let n in r){let o=r[n];o==null?e.style[n]="":e.style[n]=o}}function Oi(e){let{element:t,props:r,prevProps:n=ru,isSVG:o=!1,skipChildren:i=!1}=e;if(!t||!Qc(t))return console.error("[spread] Error: element is not a DOM Element!"),()=>{};if(!r)return console.warn("[spread] Warning: props is undefined!"),()=>{};let s=o||t.namespaceURI===Dr,a=[];for(let c in r){if(i&&c==="children")continue;let u=r[c],l=n[c];if(u===l)continue;if(c==="ref"){Fr(u,t);continue}if(c==="use"){_i(t,u);continue}if(c.startsWith("on:")){a.push(xi(t,c.slice(3),u));continue}if(c.startsWith("prop:")){J(t,"prop",c.slice(5),u),a.push(Ir(t,c.slice(5),u));continue}if(c.startsWith("attr:")){J(t,"attr",c.slice(5),u),a.push(Mr(t,c.slice(5),u,s));continue}if(c.startsWith("bool:")){J(t,"bool",c.slice(5),u),a.push(Ti(t,c.slice(5),u));continue}if(c==="class"||c==="className"){typeof u=="function"?a.push(C(()=>{B(t,"attribute","class",u),Ot(t,u())})):Ot(t,u);continue}if(c==="classList"){Tt(t,"class",u),typeof u=="function"?a.push(C(()=>{B(t,"attribute","class",u),Et(t,u())})):Et(t,u,a);continue}if(c==="style"){Tt(t,"style",u),typeof u=="function"?a.push(C(()=>{B(t,"attribute","style",u),Ct(t,u())})):Ct(t,u);continue}if(c.startsWith("on")){let d=c.slice(2).toLowerCase();l&&si(t,d),u&&iu(t,d,u);continue}let f=ni.has(c)||!s&&c in t;typeof u=="function"?a.push(f?Ir(t,c,u):Mr(t,c,u,s)):a.push(C(()=>f?ke(t,c,r[c]):E(t,c,r[c],s)))}for(let c in n)if(!(c in r))if(c.startsWith("on")){let u=c.slice(2).toLowerCase();si(t,u)}else ni.has(c)?ke(t,c,null):t.removeAttribute(c);return()=>{a.forEach(c=>c())}}function uu(e,t,r=!1){for(let n in t){let o=t[n];if(n==="ref"){Fr(o,e);continue}if(n!=="children"){if(n==="use"){_i(e,o);continue}if(n.startsWith("on:")){xi(e,n.slice(3),o);continue}if(n.startsWith("prop:")){J(e,"prop",n.slice(5),o),Ir(e,n.slice(5),o);continue}if(n.startsWith("attr:")){J(e,"attr",n.slice(5),o),Mr(e,n.slice(5),o,r);continue}if(n.startsWith("bool:")){J(e,"bool",n.slice(5),o),Ti(e,n.slice(5),o);continue}if(n.startsWith("on")&&n.length>2){let i=n.slice(2).toLowerCase();if(typeof o=="function")if(Wr.has(i)){e[`$$${i}`]=o;let s=`__fx_${i}`;if(!e[s]){let a=c=>{e[`$$${i}`]?.(c)};e.addEventListener(i,a),e[s]=a}}else e[`$$${i}`]=o,kt.has(i)||pe([i]);continue}if(n==="class"||n==="className"){Ot(e,o);continue}if(n==="classList"){Tt(e,"class",o),typeof o=="function"?C(()=>{B(e,"attribute","class",o),Et(e,o())}):Et(e,o);continue}if(n==="style"){Tt(e,"style",o),typeof o=="function"?C(()=>{B(e,"attribute","style",o),Ct(e,o())}):Ct(e,o);continue}if(n==="innerHTML"){if(typeof o=="function"){let i=x(()=>{let s=o();for(;typeof s=="function";)s=s();e.innerHTML=s});S(()=>i())}else e.innerHTML=o;continue}if(n==="value"&&(e.tagName==="INPUT"||e.tagName==="TEXTAREA")){if(typeof o=="function"){let i=x(()=>{let s=o();for(;typeof s=="function"&&s.length===0;)s=s();document.activeElement!==e&&(e.value=s??"")});S(()=>{i()})}else C(()=>{document.activeElement!==e&&(e.value=t[n]??"")});continue}if(n==="checked"&&e.tagName==="INPUT"){if(typeof o=="function"){let i=x(()=>{let s=o();for(;typeof s=="function"&&s.length===0;)s=s();document.activeElement!==e&&(e.checked=s??"")});S(()=>{i()})}else C(()=>{document.activeElement!==e&&(e.checked=t[n]??"")});continue}if(n==="value"&&e.tagName==="SELECT"){if(typeof o=="function"){let i=!0,s=x(()=>{let a=o();for(;typeof a=="function"&&a.length===0;)a=a();i?(i=!1,queueMicrotask(()=>{e.value=a??""})):e.value=a??""});S(()=>{s()})}else{let i=!0;C(()=>{let s=t[n];i?(i=!1,queueMicrotask(()=>{e.value=s??""})):e.value=s??""})}continue}if(typeof o=="function"){let i=x(()=>{let s=o();for(;typeof s=="function"&&s.length===0;)s=s();ri(e,n,s,r)});S(()=>{i()})}else C(()=>ri(e,n,t[n],r))}}}function Fr(e,t){if(!e)return;let r=e[Si]?.name;if(J(t,"ref",r||typeof e=="function"&&e.name||"ref",e),Vr(e)){let n=t,o=e;if(!n)return;typeof n=="function"?n(o):typeof n=="object"&&"current"in n&&(n.current=o);return}typeof e=="function"?e(t):typeof e=="object"&&"current"in e&&(e.current=t)}function fu(e){return e==="svg"||e==="path"||e==="circle"||e==="rect"||e==="line"||e==="polygon"||e==="polyline"||e==="ellipse"||e==="g"||e==="defs"||e==="clipPath"||e==="text"}function xt(e){return e!=null&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"||e instanceof Promise}function jr(e,t,r){if(!t)throw new Error("Container element is required");let n,o,i=[];return V(s=>{$(()=>{v.active||(t.textContent=""),Pt(t),$t(),j(t,e)}),o=s}),()=>{o?.(),n?.(),i.forEach(s=>s()),t.textContent=""}}function U(e,t){if(ai.fn)return ai.fn(e,t);t&&Uo(t);let r=typeof e=="function"?Xo(()=>e(t)):e,n=r!=null&&(typeof r=="function"||typeof r=="object");if(n)try{r.$name=e?.name}catch{}return n&&!Go(r)?Ve(r):r}function Hr(){let e=globalThis.__FX_DATA__;if(e)return e;if($r!==void 0)return $r;let t=null;if(typeof document<"u"){let r=document.getElementById(du)?.textContent;if(r)try{t=JSON.parse(r)}catch{t=null}}return $r=t}function Mt(){for(;;){for(;v.cursor&&v.cursor.nodeType===3&&v.cursor.data==="";)v.cursor=v.cursor.nextSibling;if(v.cursor!=null||!v.parents.length)return;v.cursor=v.parents.pop().nextSibling}}function Lt(e,t){let r=t.nodeType===1?`<${t.tagName.toLowerCase()}>`:t.nodeType===3?`text ${JSON.stringify((t.nodeValue??"").slice(0,24))}`:t.nodeType===8?"comment":"node";console.warn(`[fluixi] hydration mismatch: expected ${e} but the server DOM has ${r}. Server and client rendered different markup; recreating this node on the client. Check for non-deterministic render (Date.now(), Math.random(), browser-only branches, untransported data).`)}function hu(e){Mt();let t=v.cursor;return t&&t.nodeType===1&&t.tagName.toLowerCase()===e.toLowerCase()?(pu.has(e.toLowerCase())?v.cursor=t.nextSibling:(v.parents.push(t),v.cursor=t.firstChild),t):(It&&t&&Lt(`<${e}>`,t),null)}function yu(e){Mt();let t=v.cursor;return t&&t.nodeType===1&&t.tagName.toLowerCase()===e.toLowerCase()?(v.cursor=t.nextSibling,t):(It&&t&&Lt(`<${e}> (static)`,t),null)}function mu(e){if(e===""){let r=v.cursor;return r&&r.nodeType===3&&r.data!==""?(v.cursor=r.nextSibling,r.data="",r):null}Mt();let t=v.cursor;return t&&t.nodeType===3?(v.cursor=t.nextSibling,t.nodeValue!==e&&(t.nodeValue=e),t):(It&&t&&Lt(`text ${JSON.stringify(e.slice(0,24))}`,t),null)}function gu(e){Mt();let t=v.cursor;return t&&t.nodeType===8&&t.data===e?(v.cursor=t.nextSibling,t):(It&&t&&Lt(`marker <!--${e.slice(0,24)}-->`,t),null)}function vu(){ci||(ci=!0,tu({hydrateElement:hu,hydrateText:mu,hydrateMarker:gu,hydrateStatic:yu}))}function Dt(e,t,r){vu(),v.active=!0,v.cursor=t.firstChild,v.parents=[];let n=Hr(),o=r?.resourceNamespace,i=0;Xn(()=>o?`${o}:r${i++}`:`r${i++}`),Jn(n?s=>s in n?{value:n[s]}:void 0:null);try{return jr(e,t)}finally{v.active=!1,v.cursor=null,v.parents=[]}}function Ei(e,t={}){if(typeof e=="function")return U(e,t);if(typeof e!="string"||e.length===0)return null;let r=fu(e);if(L())return qr().createElement(e,r);let n=r?document.createElementNS(Dr,e):document.createElement(e);return uu(n,t,r),wu(n,t),n}function wu(e,t){if(!t||t.children===void 0)return;let r=fe(()=>t.children),n=o=>{j(e,o,typeof o=="function"?null:void 0)};Array.isArray(r)?r.forEach(n):n(r)}function bu(e){return typeof e=="function"?e:(()=>e)}function qt(e){return()=>{let t=e();return typeof t=="function"?t():t}}function Au(e){return e!=null&&e!==!1}function Su(e){return!e||typeof e!="object"?!1:!!(typeof e._$litType$<"u"||typeof e._$litDirective$<"u"||Array.isArray(e.strings)&&Array.isArray(e.values))}function Ci(e){let t=qt(()=>e.when),r=m(t,void 0,{name:"Show.when"}),n=m(r,void 0,{name:"Show.cond"}),o=N(),i=null,s=null,a=c=>{c!==s&&(i&&ve(i),i=ge(o),s=c)};return m(()=>{let c=n();return a(c?"when":"fallback"),I(i,()=>{if(c){let u=e.children;return typeof u=="function"&&!Su(u)?typeof r=="function"?O(()=>O(r)?u(r()):e.fallback):u(r):u}return e.fallback});return e.fallback??null},void 0,{name:"Show.result"})}function Ri(e){let t=qt(()=>e.each),r=()=>e.fallback??null,n=(o,i)=>{let s=e.children,a=Array.isArray(s)?s.map(c=>typeof c=="function"?c(o,i):c):typeof s=="function"?s(o,i):s;return Ai(a),a};return e.by?zn(t,e.by,(o,i)=>n(o,i),{fallback:r}):Un(t,(o,i)=>n(o,i),{fallback:r})}function Pi(e){let t=qt(()=>e.each);return Bn(t,(r,n)=>{let o=e.children(r,n);return Ai(o),o},{fallback:()=>e.fallback??null})}function $i(e){return{[Lr]:!0,when:qt(()=>e.when),get children(){return e.children}}}function Ni(e){let t=Array.isArray(e.children)?e.children:[e.children],r=N(),n=null,o=-1,i=s=>{s!==o&&(n&&ve(n),n=ge(r),o=s)};return m(()=>{for(let s=0;s<t.length;s+=1){let c=t[s],u=0;for(;typeof c=="function"&&!c[Lr]&&u++<10;)c=c();if(!c||typeof c!="object"||c[Lr]!==!0)continue;let l=c.when();if(Au(l))return i(s),I(n,()=>typeof c.children=="function"?c.children(l):c.children)}return i(-2),I(n,()=>e.fallback??null)},void 0,{name:"Switch"})}function Mi(e){let t=bu(e.component),{component:r,...n}=e,o=N(),i=null,s;return m(()=>{let a=t();return a!==s&&(i&&ve(i),i=ge(o),s=a),a==null?null:typeof a=="string"?{tag:a,props:n}:I(i,()=>a(n))},void 0,{name:"Dynamic"})}function Ii(e){let t=()=>e.mount?typeof e.mount=="function"?e.mount():e.mount:document.body,r,n;return V(o=>{r=o,n=document.createElement("div"),n.style.display="contents",t().appendChild(n),j(n,e.children)&&Fr(e.ref,n)}),S(()=>{r(),n.remove()}),null}function Kr(e){if(L())return e.fallback??null;let t=v.active,[r,n]=w(!t);return t&&queueMicrotask(()=>n(!0)),m(()=>r()?e.children:e.fallback??null,void 0,{name:"client-only"})}function Di(e){let[t,r]=w(null),n=()=>r(null);return m(()=>{let o=t();if(o!==null)return typeof e.fallback=="function"?e.fallback(o,n):e.fallback;try{return typeof e.children=="function"?e.children():e.children}catch(i){return r(i),typeof e.fallback=="function"?e.fallback(i,n):e.fallback}},void 0,{name:"ErrorBoundary"})}function qi(e){return m(()=>{let t=typeof e=="function"?e():e,r=[];for(let[n,o]of Object.entries(t)){if(!n)continue;(typeof o=="function"?o():o)&&r.push(n)}return r.join(" ")},void 0,{name:"ClassMap"})}function xu(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Vi(e){return m(()=>{let t=typeof e=="function"?e():e,r=[];for(let[n,o]of Object.entries(t)){if(!n)continue;let i=typeof o=="function"?o():o;i!=null&&r.push(`${xu(n)}: ${i}`)}return r.join("; ")},void 0,{name:"StyleMap"})}var Dr,ni,el,Hc,F,Nt,Yc,Zc,Nr,v,gi,ru,Si,nu,kt,Wr,Q,su,lu,ai,du,$r,pu,It,ci,Lr,Li,ku,P=q(()=>{"use strict";A();Ro();A();A();ti();A();A();A();A();A();A();A();A();A();A();A();A();Dr="http://www.w3.org/2000/svg";ni=new Set(["className","value","checked","selected","innerHTML","innerText","textContent","indeterminate","htmlFor"]);el=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;Hc="1.0.0-alpha.85",F={dom:Hc,reactive:Co};Nt=Symbol.for("fluixi.server-node"),Yc=Symbol.for("fluixi.dom.server-host"),Zc=globalThis,Nr=Zc[Yc]??={server:typeof document>"u",nodes:null};v={active:!1,cursor:null,parents:[]},gi=null;ru={},Si="__fx_at",nu="__fx_loc";kt=new Set,Wr=new Set(["scroll","focus","blur","load","error","resize","mouseenter","mouseleave","pointerenter","pointerleave","gotpointercapture","lostpointercapture"]);Q=0,su=200;lu="__fx_dom_create_component__",ai=globalThis[lu]??={fn:null};du="__FX_DATA__";pu=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),It=typeof process<"u"&&process.env&&!1;ci=!1;Lr=Symbol("match");Li=Kr;ku=Nt});function Ki(e){if(e!=null&&(typeof e=="object"||typeof e=="function"))try{e.$lazy=!0}catch{}return e}function Oe(e,t){let r,n,o;function i(){return n||(n=e().then(a=>r=a.default)),n}t?.preload&&i();let s=(a=>{if(r){let c=r;return Ki(O(()=>c(a)))}if(!o){let[c]=ne(()=>i(),{transport:!1});if(o=c,c.error)throw c.error}return m(()=>{let c=o();return c?Ki(U(c,a)):void 0})});return s.preload=()=>i().then(()=>{}),s.$lazy=!0,s.loader=e,s}var zt=q(()=>{"use strict";P();A()});function Cu(){Xi||(Xi=!0,!(typeof process<"u")&&console.warn("[fluixi] createProvider({ context, value, children }) reads `children` eagerly: the object literal materialises `children` BEFORE the context is stamped, so a routed <Outlet/> that has siblings inside the provider renders detached and its descendants see no context under SSR. Use the lazy form instead:\n createProvider(Context, value, props) // children stays a getter\n // or JSX: <Context.Provider value={...}>{props.children}</Context.Provider>"))}function Bt(e,t,r){let n=!!e?.Provider,o=n?e:e.context,i=n?t:e.value,s=n?!1:e.debug??!1;n||Cu();let a=typeof i=="function"?i():i,c=n?r:e;return o.Provider({value:a,get children(){return c?.children},debug:s})}function Gi(e){let t=Ce(e);return[t,n=>Bt(t,n.value,n)]}function Gr(e,t){if(e.length===0)return fe(()=>t);let[r,n]=e[0],o=e.slice(1);return Bt(r,n,{get children(){return Gr(o,t)}})}function Yi(e){return t=>{let r=Re(e);return t.children(r)}}function Zi(e,t){let r=Re(e);return r===e.defaultValue?t():r}function Ce(e,t){let r=X(e,t),n=o=>(o.debug,r.Provider({value:o.value,get children(){return o.children},debug:o.debug}));return typeof Symbol<"u"&&Symbol.for&&(n.$$typeof=Symbol.for("react.provider")),n.$$typeof=Symbol.for("react.provider"),{id:r.id,Provider:hi(n),defaultValue:e}}function Re(e){let t=K(e);return t!==void 0?t:e.defaultValue}var Xi,Yr=q(()=>{"use strict";P();A();A();Xi=!1});function ss(){return is}function en(e){is=e}function as(e,t){Jt.set(e,t)}function cs(e){return Jt.get(e)}function Lu(){Jt.clear()}function us(){if(typeof window>"u")return!1;let e=document.getElementById("__FLUIXI_HYDRATION__");if(!e||e.getAttribute("type")!=="application/json")return!1;try{let t=e.textContent||"{}",r=JSON.parse(t);for(let[n,o]of Object.entries(r))Jt.set(n,o);return!0}catch(t){return console.error("Failed to deserialize hydration data:",t),!1}}function tn(){if(typeof window>"u")return;let e=document.getElementById("__FLUIXI_HYDRATION__");e&&e.remove();let t=document.createTreeWalker(document.body,NodeFilter.SHOW_COMMENT,null),r=[],n;for(;n=t.nextNode();){let o=n,i=o.nodeValue||"";(i.startsWith("#")||i.startsWith("/"))&&r.push(o)}r.forEach(o=>o.remove()),Lu()}function fs(){return L()}var is,Jt,rn=q(()=>{"use strict";P();is=!1,Jt=new Map;typeof window<"u"&&window.addEventListener("load",()=>{setTimeout(tn,100)})});function sn(){return typeof document<"u"&&typeof document.startViewTransition=="function"}function an(){if(typeof window>"u"||typeof window.matchMedia!="function")return!1;try{return window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{return!1}}function of(e){return e!=="none"&&sn()&&!an()}function gs(e){let t=[];for(let r of e){let n=r?.preload;if(typeof n=="function")try{let o=n();o&&typeof o.then=="function"&&t.push(o.catch(()=>{}))}catch{}}return t.length?Promise.all(t).then(()=>{}):null}function cn(e,t){if(!of(e))return Promise.resolve(t()).then(()=>{});let r=document.startViewTransition;try{let n=r.call(document,()=>t());return n.finished?.catch(()=>{}),n.ready?.catch(()=>{}),n.updateCallbackDone.catch(()=>{})}catch{return Promise.resolve(t()).then(()=>{})}}var un=q(()=>{"use strict"});function Gt(e,t,r={}){let{preserveStructure:n,multiple:o,throwOnError:i=!1,defaultValue:s,maxDepth:a=20}=r;if(!e||typeof e!="object")return s;if(!t)return e;if(Array.isArray(t))if(n){let l={};for(let f of t){let d=Gt(e,f,{...r,preserveStructure:!1});d!==void 0&&af(l,f,d)}return l}else return t.map(l=>Gt(e,l,{...r,preserveStructure:!1}));let c=fn(t,{...r,throwOnError:i});if(c.length===0)return e;if(typeof n>"u"||n===!1){let l=cf(e,t);return o===!1&&Array.isArray(l)?l[0]:l===void 0&&s!==void 0?s:l}let u=z(e,c,0,a);return u===void 0&&s!==void 0?s:u}function cf(e,t,r={}){let{createMissing:n=!1,add:o=!1,debug:i=!1}=r,s=fn(t),a=e,c=!1,u="",l=t;if(typeof a=="object"&&!Array.isArray(a)&&l.length>0&&a[l])return a=a[l],a;for(let f=0;f<s.length;f++){let d=s[f],g=s.length>1?f===s.length-1:!1;if(a===null&&!n)return;let h=s[f+1];switch(d.type){case"property":if(a&&typeof a=="object")if(Array.isArray(a)){if(typeof d.value=="number"){let p=d.value;if(n&&p>=a.length)for(let b=a.length;b<=p;b++)a.push(void 0);if(n&&(a[p]===null||a[p]===void 0)&&(!g||c)&&(h?a[p]=h.type==="index"||h.type==="slice"||h.type==="union"||h.type==="wildcard"?[]:{}:a[p]=null,c=!1),a=a[p],h){c=!0;continue}}else o?a.push({[String(d.value)]:null}):a=a.map(p=>p[String(d.value)]);if(h)continue;return vs(a)}else{if(a[u]&&u.split(".").length>=2){a=a[u];continue}if(n&&(a[String(d.value)]===null||a[String(d.value)]===void 0)&&(!g||c)&&(h?a[String(d.value)]=h.type==="index"||h.type==="slice"||h.type==="union"||h.type==="wildcard"?[]:{}:a[String(d.value)]=null,c=!1,a=a[String(d.value)],h)){c=!0;continue}if(a?(!a[String(d.value)]&&n&&(a[String(d.value)]=null),a=a[String(d.value)]):a={[String(d.value)]:null},h)continue}else if(n)a={},a[String(d.value)]=h.type==="index"||h.type==="slice"||h.type==="union"||h.type==="wildcard"||r.type==="array"?[]:{},a=a[String(d.value)];else return;break;case"index":case"wildcard":if(Array.isArray(a)){if(d.type==="index"){let p=d.value;if(p<0){a=a[a.length-Math.abs(p)];continue}if(n&&(p>=a.length||a[p]==null||a[p]==null)&&!g){for(let b=a.length;b<=p;b++)a.push(void 0);h&&(a[p]=h.type==="index"||h.type==="slice"||h.type==="union"||h.type==="wildcard"?[]:{})}a=a[p]}else if(!g)continue}else if(n){let p=s[f+1];a=[];let b=d.value;for(let T=0;T<=b;T++)a.push(void 0);a[b]=p.type==="index"||p.type==="slice"||p.type==="union"||p.type==="wildcard"||r.type==="array"?[]:{},a=a[b]}else{if(d.type==="index"&&typeof a=="object"&&a&&a[String(d.value)]!==void 0){a=a[String(d.value)];continue}if(typeof a=="object"){a=Object.values(a);continue}return}break;default:return}}return vs(a)}function vs(e){return Array.isArray(e)?e.filter(t=>typeof t<"u"):e}var Yt,z,fn,sf,af,ln=q(()=>{"use strict";Yt=e=>e==null||Array.isArray(e)||typeof e=="function"||e instanceof Date||e instanceof RegExp||e instanceof Map||e instanceof Set||e instanceof Error?!1:typeof e=="object",z=(e,t,r,n)=>{if(r>n)return;if(t.length===0)return e;let o=t[0],i=t.slice(1);if(o.type==="descendant"){let s=z(e,i,r+1,n);if(s!==void 0)return s;if(e&&typeof e=="object")if(Array.isArray(e)){let a=[];for(let c=0;c<e.length;c++){let u=z(e[c],t,r+1,n);u!==void 0&&(a[c]=u)}return a.length>0?a:void 0}else{let a={};for(let c in e)if(e.hasOwnProperty(c)){let u=z(e[c],t,r+1,n);u!==void 0&&(a[c]=u)}return Object.keys(a).length>0?a:void 0}return}switch(o.type){case"property":if(Yt(e)&&o.value&&String(o.value)in e){let s=e[String(o.value)],a=z(s,i,r+1,n);if(a!==void 0)return{[String(o.value)]:a}}break;case"index":if(Array.isArray(e)){let s=o.value;if(s>=0&&s<e.length){let a=z(e[s],i,r+1,n);if(a!==void 0){let c=new Array(e.length).filter(u=>u!==void 0);return c[s]=a,c}}}else if(e&&typeof e=="object"){let s=String(o.value);if(s in e){let a=z(e[s],i,r+1,n);if(a!==void 0)return{[s]:a}}}break;case"wildcard":if(e&&typeof e=="object")if(Array.isArray(e)){let s=[],a=!1;for(let c=0;c<e.length;c++){let u=z(e[c],i,r+1,n);u!==void 0&&(s[c]=u,a=!0)}return a?s:void 0}else{let s={},a=!1;for(let c in e)if(e.hasOwnProperty(c)){let u=z(e[c],i,r+1,n);u!==void 0&&(s[c]=u,a=!0)}return a?s:void 0}break;case"slice":if(Array.isArray(e)){let[s,a]=o.value,c=Math.max(0,s),u=Math.min(e.length,a===1/0?e.length:a),l=[],f=!1;for(let d=c;d<u;d++){let g=z(e[d],i,r+1,n);g!==void 0&&(l[d]=g,f=!0)}return f?l:void 0}break;case"union":if(Array.isArray(e)){let s=o.value,a=[],c=!1;for(let u of s)if(u>=0&&u<e.length){let l=z(e[u],i,r+1,n);l!==void 0&&(a[u]=l,c=!0)}return c?a:void 0}break;case"filter":if(Array.isArray(e)){let s=o.value,a=[],c=!1;for(let u=0;u<e.length;u++)if(s(e[u])){let l=z(e[u],i,r+1,n);l!==void 0&&(a[u]=l,c=!0)}return c?a:void 0}break}},fn=(e,t={})=>{let{type:r="auto",throwOnError:n=!1}=t;if(!e||typeof e!="string")return[];let o=[],i="",s=!1,a=!1,c="",u="",l=0,d=r==="auto"?(h=>h.includes("..")?"descendant":h.includes("[?(")?"filter":h.includes("[:")||h.includes("[0:")?"slice":h.includes("[,")||h.includes("[0,1]")?"union":h.includes("[*]")||h.includes(".*.")?"wildcard":h.includes("[]")?"array-wildcard":h.includes("[")&&h.includes("]")?"bracket":"dot")(e):r,g=h=>{let p=h.trim();if(p==="*"||p==="")return{type:"wildcard",value:p===""?"[]":"*",raw:p===""?"[]":h};if(p==="[]")return{type:"wildcard",value:"[]",raw:h};if(/^-?\d+$/.test(p))return{type:"index",value:parseInt(p,10),raw:h};if(p.includes(":")){let b=p.split(":").map(ce=>ce.trim()),T=b[0]===""?0:parseInt(b[0],10),_=b[1]===""?1/0:parseInt(b[1],10);if(isNaN(T)||isNaN(_)){if(n)throw new Error(`Invalid slice notation: ${h}`);return{type:"wildcard",value:"*",raw:h}}return{type:"slice",value:[T,_],raw:h}}if(p.includes(",")){let b=p.split(",").map(T=>{let _=parseInt(T.trim(),10);return isNaN(_)?-1:_}).filter(T=>T>=0);if(b.length===0){if(n)throw new Error(`Invalid union notation: ${h}`);return{type:"wildcard",value:"*",raw:h}}return{type:"union",value:b,raw:h}}if(p.startsWith("?(")&&p.endsWith(")")){let b=p.slice(2,-1);try{return{type:"filter",value:sf(b),raw:h}}catch(T){if(n)throw T;return{type:"wildcard",value:"*",raw:h}}}return p.startsWith('"')&&p.endsWith('"')||p.startsWith("'")&&p.endsWith("'")?{type:"property",value:p.slice(1,-1),raw:h}:{type:"property",value:p,raw:h}};for(let h=0;h<e.length;h++){let p=e[h],b=e[h+1];if((p==='"'||p==="'")&&!a){a=!0,c=p;continue}else if(p===c&&a){a=!1,c="",p==='"'||p==="'"||(s?u+=p:i+=p);continue}if(a){s?u+=p:i+=p;continue}if(p==="["&&!s){i&&(o.push({type:"property",value:i,raw:i}),i=""),s=!0,u="";continue}if(p==="]"&&s&&!a){s=!1;let _=g(u);o.push(_);continue}let T=o.length>0?o[o.length-1]:null;if(p==="."&&!s&&!a){if(b==="."){let _=e.split("..")[0];o.push({type:"property",value:_,raw:_}),o.push({type:"descendant",value:"..",raw:".."}),h++}else i&&(i==="*"?o.push({type:"wildcard",value:i,raw:i}):o.push({type:"property",value:i,raw:i}),i="");continue}if(s)u+=p;else if(T&&T.type!=="descendant")i+=p;else{let _=e.split(T?.raw)[1];_!==void 0?i=_:i+=p}}return i&&o.push({type:"property",value:i,raw:i}),o.map(h=>{if(h.type==="property"&&typeof h.value=="string"&&/^-?\d+$/.test(h.value)){let p=parseInt(h.value,10);if(!isNaN(p))return{...h,type:"index",value:p}}return h})},sf=e=>{let t=e.replace(/@\.([a-zA-Z_$][\w$]*)/g,(r,n)=>`item.${n}`).replace(/@/g,"item");try{return new Function("item",`return ${t}`)}catch{throw new Error(`Invalid filter expression: ${e}`)}},af=(e,t,r)=>{let n=fn(t),o=e;for(let i=0;i<n.length;i++){let s=n[i],a=i===n.length-1;switch(s.type){case"property":if(a)o[String(s.value)]=r;else{if(!o[String(s.value)]){let u=n[i+1];o[String(s.value)]=u.type==="index"||u.type==="slice"||u.type==="union"||u.type==="wildcard"?[]:{}}o=o[String(s.value)]}break;case"index":Array.isArray(o)||(o=[]);let c=s.value;if(a){if(c>=o.length)for(let u=o.length;u<=c;u++)o.push(void 0);o[c]=r}else{if(!o[c]){let u=n[i+1];o[c]=u.type==="index"||u.type==="slice"||u.type==="union"||u.type==="wildcard"?[]:{}}o=o[c]}break;case"wildcard":if(Array.isArray(o))if(a)for(let u=0;u<o.length;u++)o[u]=r;else{let u=n[i+1];for(let l=0;l<o.length;l++)o[l]||(o[l]=u.type==="index"||u.type==="slice"||u.type==="union"||u.type==="wildcard"?[]:{});o.length>0&&(o=o[0])}break}}}});function uf(e,t,r){let n=new Uint8Array(t.length);e:for(let o=0;o<e.length;o++){for(let i=0;i<t.length;i++)if(!n[i]&&ye(e[o],t[i],r)){n[i]=1;continue e}return!1}return!0}var ye,ws=q(()=>{"use strict";ln();ye=(e,t,r={})=>{if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t)return!1;let n=Array.isArray(e),o=Array.isArray(t);if(n!==o)return!1;if(n&&o)return e.length!==t.length?!1:r.unordered?uf(e,t,r):e.every((p,b)=>ye(p,t[b],r));if(typeof e!="object")return e===t;let i=e instanceof Date,s=t instanceof Date;if(i!==s)return!1;if(i)return e.getTime()===t.getTime();let a=e instanceof RegExp,c=t instanceof RegExp;if(a!==c)return!1;if(a)return e.toString()===t.toString();let u=e instanceof Map,l=t instanceof Map;if(u!==l)return!1;if(u){if(e.size!==t.size)return!1;for(let[p,b]of e)if(!t.has(p)||!ye(b,t.get(p),r))return!1;return!0}let f=e instanceof Set,d=t instanceof Set;if(f!==d)return!1;if(f){if(e.size!==t.size)return!1;let p=[...t],b=new Uint8Array(p.length);e:for(let T of e){for(let _=0;_<p.length;_++)if(!b[_]&&ye(T,p[_],r)){b[_]=1;continue e}return!1}return!0}if(!Yt(e)||!Yt(t))return!1;let g=Object.keys(e),h=Object.keys(t);if(g.length!==h.length)return!1;for(let p of g)if(!Object.prototype.hasOwnProperty.call(t,p)||!ye(e[p],t[p],r))return!1;return!0}});function ff(e){return e.startsWith("//")?e.replace(/^\/+/,"/"):e}function Ke(e,t,r=!1){let n=[];if(e===t)return{params:{},path:t};if(!r&&e==="/"&&t.startsWith("/"))return{params:{},path:"/"};let o=e.replace(/:([a-zA-Z0-9_]+)/g,(c,u)=>(n.push(u),"([^/]+)")).replace(/\*([a-zA-Z0-9_]*)/g,(c,u)=>(u&&n.push(u),"(.*)"));o.startsWith("/")||(o="/"+o),o===""&&(o="/");let i=new RegExp(`^${o}${r?"$":"(?=/|$)"}`),s=t.match(i);if(!s)return null;let a={};return n.forEach((c,u)=>{a[c]=s[u+1]}),{params:a,path:s[0]}}function bs(e){let t=e.path.split("/").filter(Boolean);if(t.length===0)return 5;let r=0;for(let n of t)n.startsWith("*")?r+=1:n.startsWith(":")?r+=10:r+=100;return r}function lf(e){return[...e].sort((t,r)=>bs(r)-bs(t))}function Ue(e,t){let r=t.length>1?t.replace(/\/+$/,"")||"/":t,n=As(e,r);if(!n)return null;let o=[],i="",s={};for(let a of n.layers){i=ff(df(i,a.consumed));let c={};for(let[u,l]of Object.entries(a.params))u in s||(c[u]=l),s[u]=l;o.push({route:a.route,component:a.route.component,params:c,pathname:i||"/"})}return{matched:o,params:s,pathname:t}}function As(e,t){if(!e||e.length===0)return null;let r=lf(e);for(let n of r){let o=!!n.children&&n.children.length>0,i=Ke(n.path,t,!o);if(i){if(o){let s=As(n.children,t);if(s)return{layers:[{route:n,params:i.params,consumed:i.path},...s.layers]};continue}return{layers:[{route:n,params:i.params,consumed:i.path}]}}}return null}function df(e,t){if(!e)return t;if(t===e)return e;if(t.startsWith(e))return t;let r=e.replace(/\/$/,""),n=t.replace(/^\//,"");return`${r}/${n}`}function pf(e){let t=e,r="",n=t.indexOf("#");n!==-1&&(r=t.slice(n),t=t.slice(0,n));let o="",i=t.indexOf("?");return i!==-1&&(o=t.slice(i),t=t.slice(0,i)),{pathname:t||"/",search:o,hash:r}}function Zt(e="/"){let t=[{path:e,state:null}],r=0,n=new Set,o=()=>n.forEach(i=>i());return{get(){let{path:i,state:s}=t[r];return{...pf(i),state:s}},push(i,s=null){t=t.slice(0,r+1),t.push({path:i,state:s}),r=t.length-1,o()},replace(i,s=null){t[r]={path:i,state:s},o()},subscribe(i){return n.add(i),()=>n.delete(i)}}}function $e(){let e=typeof window<"u"?window:void 0,t=new Set,r=()=>t.forEach(n=>n());return e&&e.addEventListener("popstate",r),{get(){if(!e)return{pathname:"/",search:"",hash:"",state:null};let{pathname:n,search:o,hash:i}=e.location;return{pathname:n,search:o,hash:i,state:e.history.state??null}},push(n,o=null){e?.history.pushState(o,"",n),r()},replace(n,o=null){e?.history.replaceState(o,"",n),r()},subscribe(n){return t.add(n),()=>t.delete(n)}}}function hf(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((n,o)=>t[o]=n),t}function yf(e,t){if(!t)return e||"/";let r=t.replace(/\/$/,"");return e===r?"/":e.startsWith(r+"/")?e.slice(r.length)||"/":e||"/"}function mf(e,t){return!t||/^https?:\/\//.test(e)?e:`${t.replace(/\/$/,"")}${e.startsWith("/")?e:"/"+e}`}function Ss(e){let{routes:t,history:r,base:n}=e,o=new Set,i=()=>{let l=r.get();return{pathname:l.pathname,search:l.search,hash:l.hash,state:l.state,query:hf(l.search)}},s=l=>Ue(t,yf(l,n)),a=(()=>{let l=i();return{location:l,match:s(l.pathname)}})(),c=()=>{let l=i();a={location:l,match:s(l.pathname)},o.forEach(f=>f(a))},u=r.subscribe(c);return{state(){return a},subscribe(l){return o.add(l),()=>o.delete(l)},navigate(l,f={}){let d=mf(l,n);f.replace?r.replace(d,f.state??null):r.push(d,f.state??null)},match(l){return s(l)},destroy(){u(),o.clear()}}}var dn=q(()=>{"use strict";});function xs(e,t){return async(...r)=>{let n=t+":"+JSON.stringify(r);if(ss()||typeof window<"u"){let i=cs(n);if(i!==void 0)return i}if(Be.has(n))return Be.get(n);if(ze.has(n))return ze.get(n);let o=Promise.resolve(e(...r)).then(i=>(Be.set(n,i),ze.delete(n),fs()&&as(n,i),i),i=>{throw ze.delete(n),i});return ze.set(n,o),o}}function ks(e){let t=typeof e=="string"?r=>r.startsWith(e):e;for(let r of Be.keys())t(r)&&(Be.delete(r),vf.add(r));gf(r=>r+1)}function _s(e,t){let[r]=ne(t||(()=>!0),e);return r}function Ts(e){return pn.has(e)||pn.set(e,w(void 0)),pn.get(e)}function hn(e,t){let r=t||e.name||"action",n=async o=>{let[,i]=Ts(r),s=()=>i(void 0),a=()=>n(o);i({input:o,pending:!0,clear:s,retry:a});try{let c=await e(o);return i({input:o,result:c,pending:!1,clear:s,retry:a}),c}catch(c){throw i({input:o,error:c,pending:!1,clear:s,retry:a}),c}};return n.url=r,n.with=o=>hn((...i)=>e(o,...i),t),n}function Os(e){let[t]=Ts(e.url);return t}function Es(e){return e}var Be,ze,ap,gf,vf,pn,wf,cp,Cs=q(()=>{"use strict";A();rn();Yr();Be=new Map,ze=new Map;[ap,gf]=w(0),vf=new Set;pn=new Map;wf=Ce(void 0,"route-data"),cp=wf.Provider});var Ms={};_n(Ms,{A:()=>An,Form:()=>Rf,Link:()=>tr,Outlet:()=>mn,Redirect:()=>gn,Router:()=>yn,action:()=>hn,cache:()=>xs,createAsync:()=>_s,createBrowserHistory:()=>$e,createMemoryHistory:()=>Zt,lazy:()=>Oe,matchPath:()=>Ke,matchRoutes:()=>Ue,prefersReducedMotion:()=>an,preloadRoutes:()=>Pf,revalidate:()=>ks,runWithOwner:()=>I,select:()=>Tf,supportsViewTransitions:()=>sn,useAction:()=>Es,useLevelParams:()=>kf,useLinkNavigation:()=>Of,useLocation:()=>Ge,useMatch:()=>wn,useNavigate:()=>er,useParam:()=>vn,useParamSelector:()=>_f,useParams:()=>Xe,useRouteData:()=>Ef,useRouter:()=>Ne,useSearchParams:()=>bn,useSubmission:()=>Os});function bf(e,t,r){let n,o=e.route.data;if(typeof o=="function"){let l=!1;S(()=>{l=!0});let f=N(),[d]=ne(()=>o({params:r.params,location:r.location},f,()=>l));n=d}let i=()=>$s.Provider({value:n,get children(){return Ps.Provider({value:e.params,get children(){return Rs.Provider({value:{depth:t,...r},get children(){return U(e.component,{})}})}})}});if(!n)return i();let s=n,a=()=>s.loading,[c,u]=w(O(()=>!a()));return x(()=>u(!a())),m(()=>c()?i():null)}function Ns(e){let t=e.depth+1,[r,n]=w(O(()=>e.matched()[t]?.component));return x(()=>{let o=e.matched()[t]?.component;O(r)!==o&&n(()=>o)}),m(()=>{if(!r())return e.notFound?e.notFound():null;let i=O(()=>e.matched())[t];return bf(i,t,{matched:e.matched,params:e.params,location:e.location})})}function Af(e){return e==null?Sf():typeof e=="function"?U(e,{}):e}function Sf(){let e=_e("div");E(e,"class","fx-not-found"),E(e,"role","main"),E(e,"style","min-height:60vh;display:grid;place-content:center;gap:.25rem;text-align:center;font-family:system-ui,-apple-system,sans-serif");let t=_e("h1");E(t,"style","margin:0;font-size:2.5rem;font-weight:700"),j(t,"404");let r=_e("p");return E(r,"style","margin:0;opacity:.7"),j(r,"This page could not be found."),e.appendChild(t),e.appendChild(r),e}function yn(e){let t=e.history??$e(),r=Ss({routes:e.routes,base:e.base,history:t}),[n,o]=w(r.state()),i=0,s=()=>{let d=Qt??e.transition??"auto";return Qt=void 0,d},a=r.subscribe(d=>{let g=++i,h=s(),p=gs((d.match?.matched??[]).map(T=>T.component).filter(Boolean)),b=()=>(o(d),Kn());if(!p){cn(h,b);return}p.then(()=>{if(g===i)return cn(h,b)})});S(()=>{a(),r.destroy(),i++});let c=m(()=>(n().match?.matched??[]).filter(d=>d.component)),u={router:r,location:m(()=>n().location),params:m(()=>n().match?.params??{})},l={depth:-1,matched:c,params:u.params,location:u.location,notFound:()=>Af(e.notFound)},f;return Je.Provider({value:u,get children(){return f??=Ns(l)}})}function mn(){let e=K(Rs);return e?Ns(e):null}function gn(e){let t=K(Je);if(t&&typeof window<"u"){let r=!1;S(()=>r=!0),queueMicrotask(()=>{r||t.router.navigate(e.to,{replace:e.replace!==!1})})}return null}function Ne(){let e=K(Je);if(e)return e;if(typeof window>"u")return xf;throw new Error("[router] useRouter must be used within <Router>")}function Xe(){let e=Ne().params;return m(()=>e(),{},{equals:(t,r)=>JSON.stringify(t)===JSON.stringify(r)})}function kf(){return K(Ps)??{}}function vn(e){let t=Xe();return m(()=>t()[e])}function _f(e,t){let r=Xe();return m(()=>e(r()),void 0,t?{equals:t}:void 0)}function wn(e){let t=Ge();return m(()=>Ke(typeof e=="function"?e():e,t.pathname))}function bn(){let e=Ge(),t=er();return[m(()=>e.query),(o,i)=>{let s=new URLSearchParams(e.search);for(let[c,u]of Object.entries(o))u===null?s.delete(c):s.set(c,u);let a=s.toString();t(e.pathname+(a?`?${a}`:""),i)}]}function Tf(e,t){let r=(n,o)=>ye(n,o);return t!==void 0?m(()=>Gt(e(),t),void 0,{equals:r}):m(e,void 0,{equals:r})}function Ge(){let{location:e}=Ne();return new Proxy({},{get:(t,r)=>e()[r],has:(t,r)=>r in e(),ownKeys:()=>Reflect.ownKeys(e()),getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(e(),r)})}function Of(e={}){let t=K(Je);return r=>{if(!t||r.defaultPrevented||r.button!==0||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey)return;let o=r.target?.closest?.("a");if(!o||!o.getAttribute("href")||o.target&&o.target!=="_self"||o.hasAttribute("download")||/(^|\s)external(\s|$)/.test(o.getAttribute("rel")??""))return;let i=new URL(o.href);i.protocol!=="http:"&&i.protocol!=="https:"||i.origin===window.location.origin&&(i.hash&&i.pathname===window.location.pathname&&i.search===window.location.search||e.shouldNavigate&&!e.shouldNavigate(i,o)||(r.preventDefault(),Qt=e.transition,t.router.navigate(i.pathname+i.search+i.hash,{replace:e.replace})))}}function er(){let{router:e}=Ne();return(t,r)=>{Qt=r?.transition,e.navigate(t,r)}}function Ef(){return K($s)??(()=>{})}function tr(e){let t=K(Je),r=()=>t?.router.navigate(te(e.href)??"",{replace:te(e.replace)}),n=_e("a");E(n,"href",te(e.href)??""),e.slot&&E(n,"slot",te(e.slot));for(let i of Object.keys(e)){if(Cf.has(i))continue;let s=e[i];s!=null&&typeof s!="function"&&E(n,i,String(s))}if(typeof n.addEventListener=="function")n.addEventListener("click",i=>{i.metaKey||i.ctrlKey||i.shiftKey||i.altKey||(i.preventDefault(),r())});else{let i=te(e.className??e.class)??"";i&&E(n,"class",i)}typeof n.addEventListener=="function"&&x(()=>{let i=te(e.href)??"";n.setAttribute("href",i);let s=te(e.className??e.class)??"",a=te(e.activeClass)??"",c=te(e.active)??t?.location().pathname===i;n.className=[s,c?a:""].filter(Boolean).join(" ")});let o=e.children;return o!=null&&j(n,o),n}function Rf(e){let t=e.action,r=e.className??e.class,n=t.url??"",o=_e("form");E(o,"method","post"),n&&E(o,"action",n),r&&E(o,"class",r);for(let s of Object.keys(e)){if(s==="action"||s==="children"||s==="class"||s==="className")continue;let a=e[s];a!=null&&typeof a!="function"&&E(o,s,String(a))}typeof o.addEventListener=="function"&&o.addEventListener("submit",s=>{s.preventDefault();let a={};new FormData(o).forEach((c,u)=>{a[u]=c}),Promise.resolve(t(a)).catch(()=>{})});let i=e.children;return i!=null&&j(o,i),o}async function Pf(e,t){let r=Ue(e,t);if(!r)return;let n=[];for(let o of r.matched){let i=o.component;i&&typeof i.preload=="function"&&n.push(i.preload())}await Promise.all(n)}var Je,Rs,Ps,$s,Qt,xf,te,Cf,An,Sn=q(()=>{"use strict";A();un();P();A();ln();ws();dn();dn();Cs();zt();un();A();Je=X(void 0,"router"),Rs=X(void 0,"outlet"),Ps=X(void 0,"route-params"),$s=X(void 0,"route-data");xf={router:{navigate:()=>{}},location:()=>({pathname:"",search:"",hash:"",query:{}}),params:()=>({})};te=e=>typeof e=="function"?e():e,Cf=new Set(["href","slot","class","className","active","activeClass","replace","children"]);An=tr});var Nf={};_n(Nf,{$component:()=>Br,A:()=>An,ClientOnly:()=>Kr,DEV:()=>We,Dynamic:()=>Mi,ErrorBoundary:()=>Di,FRAMEWORK_NAME:()=>os,For:()=>Ri,Fragment:()=>Zr,Index:()=>Pi,Link:()=>tr,Match:()=>$i,NoSsr:()=>Li,Outlet:()=>mn,Portal:()=>Ii,Redirect:()=>gn,Router:()=>yn,Show:()=>Ci,Store:()=>pt,Suspense:()=>je,Switch:()=>Ni,VERSION:()=>ns,addClass:()=>ui,batch:()=>$,classMap:()=>qi,cleanupDelegation:()=>Ji,composeProviders:()=>Gr,createBrowserHistory:()=>$e,createComponent:()=>Te,createComputed:()=>Hn,createConsumer:()=>Yi,createContext:()=>Ce,createContextWithProvider:()=>Gi,createDebounce:()=>Zn,createDeferred:()=>Yn,createEffect:()=>x,createIsomorphicState:()=>Qi,createMemo:()=>m,createMemoryHistory:()=>Zt,createProvider:()=>Bt,createRenderEffect:()=>C,createResource:()=>ne,createRoot:()=>V,createSelector:()=>Gn,createSignal:()=>w,createStore:()=>xr,delegateEvents:()=>pe,devOnly:()=>Xr,getFrameworkInfo:()=>Iu,getOwner:()=>N,getSharedConfig:()=>zr,hydrate:()=>Dt,initDelegation:()=>Bi,insert:()=>j,isDOMNode:()=>Rt,isDev:()=>Jr,isLitTemplateResult:()=>di,isRenderable:()=>zi,jsx:()=>Qr,jsxs:()=>rs,lazy:()=>Oe,mount:()=>Ls,onCleanup:()=>S,onMount:()=>Vt,onUnmount:()=>Wt,portal:()=>Ui,read:()=>uo,reduce:()=>co,removeClass:()=>fi,render:()=>Ee,runWithOwner:()=>I,setAttribute:()=>E,setOwner:()=>Fn,setProperty:()=>ke,spread:()=>Oi,startClient:()=>Ds,styleMap:()=>Vi,toggleClass:()=>li,untrack:()=>O,untrackStore:()=>kr,useCallback:()=>Ut,useContext:()=>Re,useEffect:()=>Fe,useEventListener:()=>Kt,useLocation:()=>Ge,useMatch:()=>wn,useMemo:()=>Ft,useNavigate:()=>er,useParam:()=>vn,useParams:()=>Xe,useProvide:()=>Zi,useReducer:()=>Ht,useRef:()=>jt,useRouter:()=>Ne,useSearchParams:()=>bn});A();A();var hr="1.0.0-alpha.85",so=hr.split(".")[0],to=`__fluixi_signal_state_v${so}__`,_a=`__fluixi_signal_builds_v${so}__`,Ta=e=>{typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)};function ao(){return{consumer:null,untracked:!1,owner:null,queue:[],scheduled:!1,flushing:!1,batchDepth:0,hostSchedule:Ta,onSuspend:null,onError:null,observer:null}}var pr=globalThis;function Oa(e){let t=ao(),r=e;for(let n of Object.keys(t))n in e||(r[n]=t[n]);return e}function Ea(){let e=pr[to];return e?Oa(e):pr[to]=ao()}var k=Ea();(pr[_a]??=[]).push(hr);function Ca(e){return k.observer=e,()=>{k.observer===e&&(k.observer=null)}}var yr=[],Ra;function Pa(e){let t=k.observer;t&&t.created(e.parents===void 0?{...e,parents:yr,origin:e.origin??Ra}:e)}function $a(e){return k.observer?(yr.push(e),!0):!1}function Na(){yr.pop()}function Ma(e){k.observer?.ran?.(e)}function Ia(e){k.observer?.disposed?.(e)}var La="__FLUIXI_DEVTOOLS_HOOK__",ro=globalThis[La];if(typeof ro?.inject=="function")try{ro.inject({observeReactiveNodes:Ca,version:hr})}catch{}function Da(){return k.observer!=null}var no=0,oo=1,nt=2,qa=class{constructor(){this.observers=null,this.watchers=null,this.version=0}updateIfNecessary(){}track(){if(k.untracked)return;let e=k.consumer;e&&((this.observers??=new Set).add(e),(e.sources??=new Set).add(this))}};var Va=class extends qa{constructor(e,t){super(),this._threw=!1,this._initialized=!1,this.state=nt,this.sources=null,this._fn=e,this._equals=t?.equals===!1?()=>!1:t?.equals??Object.is}get(){if(k.consumer===this)throw new Error("Signal.Computed cannot read itself");if(this.track(),this.updateIfNecessary(),this._threw)throw this._error;return this._value}updateIfNecessary(){if(this.state===oo&&this.sources){for(let e of this.sources)if(e.updateIfNecessary(),this.state===nt)break}(this.state===nt||!this._initialized)&&this.recompute(),this.state=no}recompute(){if(this.sources){for(let a of this.sources)a.observers?.delete(this);this.sources.clear()}let e=k.consumer,t=k.untracked,r=$a(this);k.consumer=this,k.untracked=!1;let n,o=!1,i;try{n=this._fn()}catch(a){o=!0,i=a,n=this._value}finally{k.consumer=e,k.untracked=t,r&&Na()}let s=!this._initialized||this._threw!==o||(o?i!==this._error:!this._equals(this._value,n));if(this._initialized=!0,this._threw=o,this._error=i,this._value=n,Ma(this),s){if(this.version++,this.observers)for(let a of[...this.observers])a.markDirty(nt);io(this)}}markDirty(e){if(this.state>=e)return;let t=this.state===no;if(this.state=e,t){if(this.observers)for(let r of[...this.observers])r.markDirty(oo);io(this)}}peek(){if(this.updateIfNecessary(),this._threw)throw this._error;return this._value}};function io(e){if(e.watchers)for(let t of[...e.watchers])t._notify(e)}function Wa(e){return k.onSuspend?(k.onSuspend(e,k.owner),!0):!1}function Fa(){return k.owner}function ja(e,t){let r=k.owner;k.owner=e;try{return t()}finally{k.owner=r}}function Ha(e){if(k.owner){if(k.owner.disposed){e();return}(k.owner.cleanups??=[]).push(e)}}function Ka(e){k.hostSchedule=e??(t=>{Promise.resolve().then(t)})}function Ua(e){return!!e&&typeof e.then=="function"}Ka(()=>{});var za=Symbol.for("signal"),Ba=Symbol.for("memo");function Ja(e,t,r){let n=t,o=Fa(),i=new Va(()=>ja(o,()=>{try{return n=e(n)}catch(a){if(Ua(a))return Wa(a),n;throw a}}),{equals:r?.equals}),s=(()=>i.get());return Object.defineProperty(s,za,{value:!0,enumerable:!0}),Object.defineProperty(s,Ba,{value:!0,enumerable:!0}),Pa({kind:"memo",node:i,handle:s,name:r?.name}),Da()&&Ha(()=>Ia(i)),s}function co(e,t,r,n){return Ja(()=>e().reduce(t,r),void 0,n)}function uo(e){let t=e;for(;typeof t=="function";)t=t();return t}A();var Sr="1.0.0-alpha.85",xo=Sr.split(".")[0],fo=`__fluixi_signal_state_v${xo}__`,Xa=`__fluixi_signal_builds_v${xo}__`,Ga=e=>{typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)};function ko(){return{consumer:null,untracked:!1,owner:null,queue:[],scheduled:!1,flushing:!1,batchDepth:0,hostSchedule:Ga,onSuspend:null,onError:null,observer:null}}var mr=globalThis;function Ya(e){let t=ko(),r=e;for(let n of Object.keys(t))n in e||(r[n]=t[n]);return e}function Za(){let e=mr[fo];return e?Ya(e):mr[fo]=ko()}var ie=Za();(mr[Xa]??=[]).push(Sr);function Qa(e){return ie.observer=e,()=>{ie.observer===e&&(ie.observer=null)}}var ec=[],ot;function tc(e,t){if(!ie.observer)return t();let r=ot;ot=e;try{return t()}finally{ot=r}}function rc(e){let t=ie.observer;t&&t.created(e.parents===void 0?{...e,parents:ec,origin:e.origin??ot}:e)}function lo(e,t,r){ie.observer?.moved?.(e,t,r)}function po(e){ie.observer?.disposed?.(e)}var nc="__FLUIXI_DEVTOOLS_HOOK__",ho=globalThis[nc];if(typeof ho?.inject=="function")try{ho.inject({observeReactiveNodes:Qa,version:Sr})}catch{}function _o(){return ie.observer!=null}var at=Symbol("store-raw"),yo=Symbol("store-node"),mo=Symbol("store-has"),go=Symbol("store-self"),vo=Symbol("store-track");var De=new WeakMap,gr=new WeakMap,Ae=new WeakMap,ct=new WeakMap;function oc(e,t){if(!be(e)||!_o())return;let r=new Set,n=s=>{if(!(!be(s)||r.has(s))){r.add(s);for(let a of Object.values(s))n(a)}};n(ct.get(t)??t);let o=new Set,i=s=>{if(!be(s))return;let a=s;if(r.has(a)||o.has(a))return;o.add(a);let c=De.get(a);if(c){for(let u of c.keys.values())po(u);c.all&&po(c.all),De.delete(a),Ae.delete(a),gr.delete(a)}for(let u of Object.values(a))i(u)};i(e)}var ut=(e,t,r)=>r?`${e}[${String(t)}]`:`${e}.${String(t)}`;function To(e,t,r){let n=t?.owner,o=n&&r!==void 0?ut(n.name,r,t?.array):void 0,[i,s]=tc(n?.store,()=>w(e,o?{name:o}:void 0)),a=i;return a.$=s,a}function ft(e){let t=De.get(e);return t?t.owner||(t.owner=Ae.get(e)):De.set(e,t={keys:new Map,owner:Ae.get(e),array:Array.isArray(e)}),t}function wo(e,t,r){let n=e.keys.get(t);return n||e.keys.set(t,n=To(r,e,t)),n}function ic(e,t,r,n){let o=Ae.get(e);if(o&&o.store===t&&o.name===r)return;let i={store:t,name:r};Ae.set(e,i),ct.set(e,ct.get(n)??n);let s=De.get(e);if(s&&(s.owner=i,!!_o())){for(let[a,c]of s.keys)lo(c,t,ut(r,a,s.array));s.all&&lo(s.all,t,ut(r,"*",s.array))}}function bo(e){let t=ft(e);(t.all||(t.all=To(void 0,t,"*")))()}function Ao(e,t){e.$(typeof t=="function"?()=>t:t)}function be(e){if(e==null||typeof e!="object")return!1;if(Array.isArray(e))return!0;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function it(e){if(!be(e))return e;let t=gr.get(e);if(t)return t;let r=new Proxy(e,sc);return gr.set(e,r),r}var sc={get(e,t,r){if(t===at||t===yo)return e;if(t===we)return r;if(t===mo)return c=>c in e;if(t==="__proxy")return!0;if(t===vo||t===go)return bo(e),r;let n=e[t];if(typeof n=="function"&&!Object.prototype.hasOwnProperty.call(e,t))return n;let o=Object.getOwnPropertyDescriptor(e,t);if(o&&o.get)return o.get.call(r);let i=ft(e),s=wo(i,t,n),a=s();return be(a)?(i.owner&&ic(a,s,ut(i.owner.name,t,i.array),e),it(a)):a},set(){return!0},deleteProperty(e,t){return t in e&&G(e,t,void 0),!0},has(e,t){return t===at||t===we||t===yo||t===mo||t===go||t===vo?!0:(wo(ft(e),t,e[t])(),t in e)},ownKeys(e){return bo(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e,t)}};function Oo(e,t=new Set){if(e==null||typeof e!="object")return e;let r=e[at]??e;if(t.has(r)||!be(r))return r;t.add(r);let n=!1,o=s=>{let a=Oo(s,t);return a!==s&&(n=!0),a};if(Array.isArray(r)){let s=r.map(o);return n?s:r}let i={};for(let s of Object.keys(r))i[s]=o(r[s]);return n?i:r}function G(e,t,r){let n=Oo(r),o=e[t];if(o===n&&(n!==void 0||t in e))return;let i=Array.isArray(e),s=i?e.length:0;n===void 0?delete e[t]:e[t]=n;let a=ft(e),c=a.keys.get(t);if(c&&Ao(c,n),oc(o,e),i&&e.length!==s){let u=a.keys.get("length");u&&Ao(u,e.length)}a.all&&a.all.$(void 0)}function vr(e,t){return typeof e=="function"?e(t):e}function wr(e,t){for(let r of Object.keys(t)){let n=t[r],o=e[r];n&&typeof n=="object"&&!Array.isArray(n)&&o&&typeof o=="object"&&!Array.isArray(o)?wr(o,n):G(e,r,n)}}function dt(e){let t=[],r=e.replace(/\[([^\]]*)\]/g,".$1");for(let n of r.split("."))n.length&&t.push(n);return t}function Eo(e,t,r){let n=t.length-1;for(let i=0;i<n;i++){let s=t[i];if(s==="*"){let c=t.slice(i+1);if(Array.isArray(e))for(let u=0;u<e.length;u++)Eo(e[u],c,r);return}let a=e[s];(a==null||typeof a!="object")&&(a=/^\d+$/.test(t[i+1])?[]:{},G(e,s,a)),e=a}let o=t[n];if(o==="*"){if(Array.isArray(e))for(let i=0;i<e.length;i++)G(e,i,vr(r,e[i]));return}G(e,o,vr(r,e[o]))}function So(e,t,r){Eo(e,dt(t),r)}function ac(e){return Array.isArray(e)&&e.length>0&&e.every(t=>Array.isArray(t)&&t.length>=2&&typeof t[0]=="string")}function st(e,t){for(let r=e.length-1;r>=t.length;r--)G(e,String(r),void 0);e.length!==t.length&&G(e,"length",t.length);for(let r=0;r<t.length;r++)G(e,String(r),t[r])}function cc(e,t){let r=t[0];if(typeof r=="function"&&t.length===1){let n=r(e);n&&n!==e&&wr(e,n);return}if(Array.isArray(r)&&t.length===1){if(ac(r)){for(let n of r)So(e,n[0],n[1]);return}if(Array.isArray(e)){st(e,r);return}if(r.length===0)return;throw new TypeError("[fluixi] set() was given an array that is neither a batch of [path, value] pairs nor a replacement for an array root. Name the path you meant, as in set('items', [...]).")}if(r&&typeof r=="object"&&!Array.isArray(r)&&t.length===1){wr(e,r);return}if(t.length>=3){br(e,t.slice(0,-1),t[t.length-1]);return}So(e,String(r),t[1])}function uc(e,t){if(typeof t=="function"){if(!Array.isArray(e))return[];let r=[];for(let n=0;n<e.length;n++)t(e[n],n)&&r.push(n);return r}if(Array.isArray(t))return Array.isArray(e)?t.map(Number):t.map(String);if(t&&typeof t=="object"&&("from"in t||"to"in t||"by"in t)){if(!Array.isArray(e))return[];let r=t.by??1,n=t.from??0,o=t.to??e.length-1,i=[];for(let s=n;s<=o;s+=r)s>=0&&s<e.length&&i.push(s);return i}return t==="*"?Array.isArray(e)?e.map((r,n)=>n):Object.keys(e??{}):[t]}function br(e,t,r){if(e==null)return;let[n,...o]=t;if(typeof n=="string"){let s=dt(n);if(s.length>1){br(e,[...s,...o],r);return}}let i=uc(e,n);if(o.length===0){for(let s of i)G(e,s,vr(r,e[s]));return}for(let s of i){let a=e[s];if(a==null||typeof a!="object"){let c=o[0];a=typeof c=="number"||/^\d+$/.test(String(c))?[]:{},G(e,s,a)}br(a,o,r)}}function Ar(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Ar);let t={};for(let r of Object.keys(e))t[r]=Ar(e[r]);return t}function oe(e,t){let r=e;for(let n of dt(t)){if(r==null)return;r=r[n]}return r}var pt=class{constructor(e,t={immutable:!0}){this.options=t,this.root=e,this.set=((...r)=>$(()=>cc(this.root,r))),e&&typeof e=="object"&&(Ae.set(e,{store:this,name:t.name??"store"}),ct.set(e,e)),rc({kind:"store",node:this,handle:()=>this.root,name:t.name})}get state(){return it(this.root)}get proxy(){return it(this.root)}get accessor(){return(()=>it(this.root))}unwrap(){return this.root}getNode(e){return this.root&&this.root[e]}get(e){if(e==null||e==="")return lt(this.state);let t=this.state;for(let r of dt(e)){if(t==null)return;t=t[r]}return lt(t)}select(e){return m(()=>e(this.state))}subscribe(e){return x(()=>e(this.state))}watch(e,t){let r;return x(()=>{let n=e(this.state);Object.is(n,r)||(t(n,r),r=n)})}reactive(e){return m(()=>this.state[e])}produce(e){this.set((t=>{let r=Ar(t);return e(r),r}))}reconcile(e,t={}){this.set(e)}push(e,...t){let r=oe(this.root,e);this.set(e,r.concat(t))}pop(e){let t=oe(this.root,e).slice(),r=t.pop();return this.set(e,t),r}shift(e){let t=oe(this.root,e).slice(),r=t.shift();return this.set(e,t),r}splice(e,t,r,...n){let o=oe(this.root,e).slice(),i=o.splice(t,r,...n);return this.set(e,o),i}insert(e,t,r){let n=oe(this.root,e).slice();n.splice(t,0,r),this.set(e,n)}removeAt(e,t){let r=oe(this.root,e).slice(),n=r.splice(t,1);return this.set(e,r),n}replace(e,t){if(arguments.length>=2){let n=oe(this.root,String(e)),o=t;if(Array.isArray(n)&&Array.isArray(o)){st(n,o);return}this.set(e,o);return}let r=this.root;if(Array.isArray(r)&&Array.isArray(e)){st(r,e);return}this.set(e)}clear(e){let t=e===void 0?this.root:oe(this.root,e);if(Array.isArray(t)){st(t,[]);return}if(t&&typeof t=="object")for(let r of Object.keys(t))G(t,r,void 0)}toObservable(){let[e]=w(this.state);return e.toObservable()}dispose(){}},fc=["get","select","watch","subscribe","produce","reconcile","push","pop","shift","splice","insert","removeAt","replace","clear","unwrap","toObservable"];function lc(e,t){for(let r of fc)e[r]=t[r].bind(t);e.$=t.reactive.bind(t)}function xr(e,t={immutable:!0}){let r=new pt(e,t);return lc(r.set,r),[r.proxy,r.set]}function dc(e,t={}){return new pt(e,{...t,immutable:!1})}function lt(e){if(e==null||typeof e!="object")return e;let t=e[at];return t!==void 0?t:e}function kr(e){return O(()=>lt(e))}var Uf=Object.freeze({createStore:xr,createMutableStore:dc,batch:$,unwrap:lt,untrackStore:kr});P();A();P();var Wi="1.0.0-alpha.85";P();pi(Wi);P();P();P();A();var _u={context:null,owner:null};function zr(){return _u}var We=typeof process<"u"&&!1,Ur=Symbol.for("fluixi-lifecycle");function Fi(){let e=N();if(!e)return null;if(!e[Ur]){let t={mounts:[],effects:[],scheduled:!1};e[Ur]=t}return e[Ur]}function ji(e){if(e.scheduled)return;if(L()){e.mounts=[],e.effects=[];return}e.scheduled=!0;let t=N();queueMicrotask(()=>{if(Vn(t)){e.mounts=[],e.effects=[];return}I(t,()=>{for(let r of e.mounts)try{let n=r();typeof n=="function"&&S(n)}catch(n){console.error("Error in onMount callback:",n)}for(let r of e.effects){let n;x(()=>{n&&n(),n=r()}),S(()=>{n&&n()})}e.mounts=[],e.effects=[]})})}function Te(e,t){return U(e,t)}function Br(e,t){let r=typeof e=="function"?O(()=>e(t)):e,n=r!=null&&(typeof r=="function"||typeof r=="object");if(n)try{r.$name=e.name}catch{}return n&&!M(r)?Ve(r):r}function Vt(e,t=!0){if(L())return;let r=Fi();if(r){if(!t){r.scheduled||e();return}r.mounts.push(e),ji(r)}else{if(!t){e();return}x(()=>{let n=O(e);typeof n=="function"&&S(n)})}}function Wt(e){S(e)}function Fe(e){let t=Fi();if(t)t.effects.push(e),ji(t);else{let r;x(()=>{r&&r(),r=e()}),S(()=>{r&&r()})}}function Ft(e){return m(e)}function jt(e){let t={current:e};return S(()=>{t.current=null}),t}function Ht(e,t){let[r,n]=w(t);return[r,i=>{n(e(r(),i))}]}function Kt(e,t,r,n){Fe(()=>{let o=e&&"current"in e?e.current:e;if(o)return o.addEventListener(t,r,n),()=>{o.removeEventListener(t,r,n)}})}function Ut(e){return e}function Jr(){return We}function Xr(e){We&&e()}A();P();function Hi(e){return!!(e&&typeof e=="object"&&typeof e.then=="function"||e instanceof Promise)}var Tu=X(void 0,"suspense-list");function je(e){return U(Ou,e)}function Ou(e){let t=eo(),r=K(Tu),n=r?r.register(t.inFallback):void 0;function o(f){return f==null||typeof f=="boolean"?null:typeof f=="function"&&ee(f)&&!M(f)?f():f}let i=bi(()=>o(e.fallback??null)),s=dr(t,()=>fe(()=>e.children)),a=(f,d)=>{if(!(d>8))if(Array.isArray(f))for(let g of f)a(g,d+1);else typeof f=="function"&&M(f)&&a(f(),d+1)};dr(t,()=>{C(()=>a(s,0))});let[c,u]=w(void 0),l=Hi(s);return l&&(t.increment(),s.then(f=>{u(()=>f),t.decrement()},()=>t.decrement())),m(()=>(n?n.showFallback():t.inFallback())?i:l?c():s)}yi(je);Object.defineProperty(je,"__suspense",{value:!0,enumerable:!0});zt();zt();function Ee(e,t,r={}){if(pe(["click","input","change","submit"]),L())throw new Error("render() is for client-side only. Use renderToString() on server.");if(!t)throw new Error("Container element is required");let n;return V(o=>{n=o;let i=typeof e=="function"?e():e;t.textContent="",Pt(t),$t(),j(t,()=>i)}),()=>{n&&(n(),n=void 0)}}function Eu(e){return e&&typeof e=="object"&&(e._$litType$!==void 0||e._$litDirective$!==void 0)}function Ui(e,t,r={}){let n=document.createElement("div");n.setAttribute("data-portal","true"),t.appendChild(n);let o=Ee(e,n,r);return()=>{o(),t.contains(n)&&t.removeChild(n)}}function zi(e){return!!(e==null||typeof e=="function"||Rt(e)||Eu(e)||Array.isArray(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean")}function Bi(){L()||pe(["click","input","change","submit"])}function Ji(){L()}Yr();A();P();var Ru="__fluixi_iso_states__",Pu="__iso:";function $u(){return globalThis[Ru]??=new Map}function Nu(e){if(typeof window>"u")return;let t=Hr();return t?t[Pu+e]:void 0}function Qi(e,t){let r=Nu(e),n=r!==void 0?r:typeof window<"u"&&t.client?t.client():t.fallback,[o,i]=w(n);return $u().set(e,{server:t.server,set:i}),{value:o,set:i,key:e}}P();P();P();P();P();A();var Zr=Symbol.for("fluixi.fragment"),es=typeof window>"u";function ts(e){return e==null||e===!1?null:Array.isArray(e)?e.map(ts).flat():e}function Qr(e,t,r){if(e==null)return null;let n=t||{};if(r!==void 0&&(n.key=r),e===Zr)return m(()=>Ve(ts(n.children)));if(typeof e=="function"){let{type:o}=mi(e);return e.$$typeof===Symbol.for("react.provider")||o==="provider"?e(n):es?{type:e,props:n}:m(()=>U(e,n),void 0,{name:"jsx component"})}return typeof e=="string"&&e.trim().length>0?Mu(e,n):null}var rs=Qr;function Mu(e,t){return es?{type:e,props:t||{}}:Ei(e,t)}var ns="0.0.1",os="Fluixi";function Iu(){return{name:os,version:ns,features:{ssr:!0,hydration:!0,jsx:!0,litHtml:!0,signals:!0,fineGrained:!0,lazy:!0,hooks:!0,devMode:!0}}}P();rn();A();A();A();var Du=Object.defineProperty,qu=(e,t)=>{for(var r in t)Du(e,r,{get:t[r],enumerable:!0})};function he(e){return typeof e=="function"?e():e}function Vu(e){if(typeof e=="string")return e;let t=[];return t.push(e.index===!1?"noindex":"index"),t.push(e.follow===!1?"nofollow":"follow"),e.noarchive&&t.push("noarchive"),e.nosnippet&&t.push("nosnippet"),e.noimageindex&&t.push("noimageindex"),e.maxSnippet!=null&&t.push(`max-snippet:${e.maxSnippet}`),e.maxImagePreview&&t.push(`max-image-preview:${e.maxImagePreview}`),e.maxVideoPreview!=null&&t.push(`max-video-preview:${e.maxVideoPreview}`),t.join(", ")}function ls(){let e=[],[t,r]=w(0);return{sources:e,version:t,push(n){return e.push(n),r(o=>o+1),()=>{let o=e.indexOf(n);o!==-1&&(e.splice(o,1),r(i=>i+1))}}}}var ds=null;function ps(e){ds=e}function Wu(){return ds}function Pe(e){let t=Wu();if(!t)return globalThis.process?.env?.NODE_ENV!=="production"&&console.warn("[fluixi/head] useHead() called with no active head registry — ignored."),()=>{};let r=t.push(e);return typeof window<"u"&&N()&&S(r),r}function Xt(e){let t=5381;for(let r=0;r<e.length;r++)t=t*33^e.charCodeAt(r);return(t>>>0).toString(36)}function Fu(e){return e.charset!=null?"meta:charset":e.property?"meta:property:"+e.property:e.name?"meta:name:"+e.name:e["http-equiv"]?"meta:http-equiv:"+e["http-equiv"]:"meta:"+Xt(JSON.stringify(e))}function ju(e,t){let r=typeof t=="string"?{url:t}:t;e.push({tag:"meta",key:"meta:property:og:image:"+r.url,attrs:{property:"og:image",content:r.url}}),r.secureUrl&&e.push({tag:"meta",key:"meta:property:og:image:secure:"+r.url,attrs:{property:"og:image:secure_url",content:r.secureUrl}}),r.type&&e.push({tag:"meta",key:"meta:property:og:image:type:"+r.url,attrs:{property:"og:image:type",content:r.type}}),r.width!=null&&e.push({tag:"meta",key:"meta:property:og:image:width:"+r.url,attrs:{property:"og:image:width",content:String(r.width)}}),r.height!=null&&e.push({tag:"meta",key:"meta:property:og:image:height:"+r.url,attrs:{property:"og:image:height",content:String(r.height)}}),r.alt&&e.push({tag:"meta",key:"meta:property:og:image:alt:"+r.url,attrs:{property:"og:image:alt",content:r.alt}})}function Hu(e,t){let r=(n,o)=>{o!=null&&t.push({tag:"meta",key:"meta:property:og:"+n,attrs:{property:"og:"+n,content:o}})};r("title",e.title),r("description",e.description),r("type",e.type),r("url",e.url),r("site_name",e.siteName),r("locale",e.locale);for(let n of e.localeAlternate??[])t.push({tag:"meta",key:"meta:property:og:locale:alt:"+n,attrs:{property:"og:locale:alternate",content:n}});if(e.image!=null){let n=Array.isArray(e.image)?e.image:[e.image];for(let o of n)ju(t,o)}if(e.video){let n=typeof e.video=="string"?{url:e.video}:e.video;r("video",n.url),"type"in n&&n.type&&r("video:type",n.type),"width"in n&&n.width!=null&&r("video:width",String(n.width)),"height"in n&&n.height!=null&&r("video:height",String(n.height))}if(e.audio){let n=typeof e.audio=="string"?{url:e.audio}:e.audio;r("audio",n.url),"type"in n&&n.type&&r("audio:type",n.type)}if(e.article){let n=e.article;r("article:published_time",n.publishedTime),r("article:modified_time",n.modifiedTime),r("article:expiration_time",n.expirationTime),r("article:section",n.section);for(let o of[].concat(n.author??[]))t.push({tag:"meta",key:"meta:property:og:article:author:"+o,attrs:{property:"article:author",content:o}});for(let o of[].concat(n.tag??[]))t.push({tag:"meta",key:"meta:property:og:article:tag:"+o,attrs:{property:"article:tag",content:o}})}if(e.book){let n=e.book;r("book:isbn",n.isbn),r("book:release_date",n.releaseDate);for(let o of[].concat(n.author??[]))t.push({tag:"meta",key:"meta:property:og:book:author:"+o,attrs:{property:"book:author",content:o}});for(let o of[].concat(n.tag??[]))t.push({tag:"meta",key:"meta:property:og:book:tag:"+o,attrs:{property:"book:tag",content:o}})}if(e.profile){let n=e.profile;r("profile:first_name",n.firstName),r("profile:last_name",n.lastName),r("profile:username",n.username),r("profile:gender",n.gender)}}function Ku(e,t){let r=(n,o)=>{o!=null&&t.push({tag:"meta",key:"meta:name:twitter:"+n,attrs:{name:"twitter:"+n,content:o}})};r("card",e.card),r("site",e.site),r("creator",e.creator),r("title",e.title),r("description",e.description),r("image",e.image),r("image:alt",e.imageAlt),r("player",e.player),e.playerWidth!=null&&r("player:width",String(e.playerWidth)),e.playerHeight!=null&&r("player:height",String(e.playerHeight)),e.app&&(r("app:name:iphone",e.app.name),r("app:id:iphone",e.app.idIphone),r("app:id:ipad",e.app.idIpad),r("app:id:googleplay",e.app.idGooglePlay))}function Uu(e,t){let r=(n,o)=>t.push({tag:"link",key:n,attrs:o});if(e.icon!=null){let n=typeof e.icon=="string"?[{url:e.icon}]:e.icon;for(let o of n)r("link:icon:"+o.url,{rel:"icon",href:o.url,...o.type?{type:o.type}:{},...o.sizes?{sizes:o.sizes}:{}})}if(e.apple!=null){let n=typeof e.apple=="string"?[{url:e.apple}]:e.apple;for(let o of n)r("link:apple-touch-icon:"+o.url,{rel:"apple-touch-icon",href:o.url,...o.sizes?{sizes:o.sizes}:{}})}e.mask&&r("link:mask-icon",{rel:"mask-icon",href:e.mask.url,...e.mask.color?{color:e.mask.color}:{}}),e.shortcut&&r("link:shortcut",{rel:"shortcut icon",href:e.shortcut}),e.msTileImage&&t.push({tag:"meta",key:"meta:name:msapplication-TileImage",attrs:{name:"msapplication-TileImage",content:e.msTileImage}}),e.msTileColor&&t.push({tag:"meta",key:"meta:name:msapplication-TileColor",attrs:{name:"msapplication-TileColor",content:e.msTileColor}})}function zu(e,t,r){let n=(f,d)=>t.push({tag:"meta",key:f,attrs:d}),o=he(e.title);o!==void 0&&(r.title=o),e.titleTemplate!==void 0&&(r.template=e.titleTemplate);let i=he(e.lang);i!==void 0&&t.push({tag:"htmlAttr",key:"html:lang",name:"lang",value:i}),e.charset!==void 0&&n("meta:charset",{charset:e.charset}),e.viewport!==void 0&&n("meta:name:viewport",{name:"viewport",content:e.viewport});let s=he(e.description);s!==void 0&&n("meta:name:description",{name:"description",content:s});let a=he(e.keywords);a!==void 0&&n("meta:name:keywords",{name:"keywords",content:Array.isArray(a)?a.join(", "):a}),e.author!==void 0&&n("meta:name:author",{name:"author",content:e.author}),e.robots!==void 0&&n("meta:name:robots",{name:"robots",content:Vu(e.robots)}),e.generator!==void 0&&n("meta:name:generator",{name:"generator",content:e.generator}),e.applicationName!==void 0&&n("meta:name:application-name",{name:"application-name",content:e.applicationName}),e.referrer!==void 0&&n("meta:name:referrer",{name:"referrer",content:e.referrer}),e.colorScheme!==void 0&&n("meta:name:color-scheme",{name:"color-scheme",content:e.colorScheme});let c=he(e.themeColor);c!==void 0&&n("meta:name:theme-color",{name:"theme-color",content:c});let u=he(e.canonical);if(u!==void 0&&t.push({tag:"link",key:"link:rel:canonical",attrs:{rel:"canonical",href:u}}),e.manifest!==void 0&&t.push({tag:"link",key:"link:rel:manifest",attrs:{rel:"manifest",href:e.manifest}}),e.base!==void 0&&t.push({tag:"base",key:"base",attrs:{href:e.base}}),e.verification){let f={google:"google-site-verification",bing:"msvalidate.01",yandex:"yandex-verification",pinterest:"p:domain_verify"};for(let[d,g]of Object.entries(e.verification)){if(g==null)continue;let h=f[d]??d;n("meta:name:"+h,{name:h,content:g})}}for(let f of e.alternates??[])t.push({tag:"link",key:"link:alternate:hreflang:"+f.hreflang,attrs:{rel:"alternate",hreflang:f.hreflang,href:f.href}});for(let f of e.feeds??[])t.push({tag:"link",key:"link:alternate:feed:"+f.href,attrs:{rel:"alternate",type:f.type??"application/rss+xml",href:f.href,...f.title?{title:f.title}:{}}});e.og&&Hu(e.og,t),e.twitter&&Ku(e.twitter,t),e.icons&&Uu(e.icons,t);let l=he(e.jsonLd);if(l!==void 0){let f=Array.isArray(l)?l:[l];for(let d of f){let g=JSON.stringify(d);t.push({tag:"script",key:"script:ldjson:"+Xt(g),attrs:{type:"application/ld+json"},children:g})}}for(let f of e.meta??[]){let d={};for(let[g,h]of Object.entries(f))h!=null&&(d[g==="httpEquiv"?"http-equiv":g]=h);t.push({tag:"meta",key:Fu(d),attrs:d})}for(let f of e.link??[]){let d={};for(let[g,h]of Object.entries(f))h!=null&&(d[g]=h);t.push({tag:"link",key:"link:"+(d.rel??"")+":"+(d.href??Xt(JSON.stringify(d))),attrs:d})}for(let f of e.script??[]){let d={},g;for(let[h,p]of Object.entries(f))p!=null&&(h==="children"?g=p:d[h]=p);t.push({tag:"script",key:"script:"+(d.src??Xt((g??"")+JSON.stringify(d))),attrs:d,children:g})}}function Bu(e,t){return typeof e=="function"?e(t):e.includes("%s")?e.replace("%s",t):e}function Ju(e){let t=[],r={};for(let i of e.sources){let s=typeof i=="function"?i():i;zu(s,t,r)}r.title!==void 0&&t.push({tag:"title",key:"title",children:r.template?Bu(r.template,r.title):r.title});let n=new Map,o={};for(let i of t){if(i.tag==="htmlAttr"){o[i.name]=i.value;continue}n.set(i.key,i)}return{tags:[...n.values()],htmlAttrs:o}}var nn="data-fh",on="data-fh-key";function hs(e){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType===8&&t.data.startsWith("fh:")){t.parentNode?.removeChild(t);return}}function ys(e,t){for(let r of Array.from(e.attributes))r.name===nn||r.name===on||r.name in t||e.removeAttribute(r.name);for(let[r,n]of Object.entries(t))e.getAttribute(r)!==n&&e.setAttribute(r,n)}function Xu(e){let t=document.createElement(e.tag);return ys(t,e.attrs),t.setAttribute(nn,""),t.setAttribute(on,e.key),e.tag==="script"&&e.children!=null&&(t.textContent=e.children),t}function Gu(e,t){let r=document.head,n=new Map;for(let s of Array.from(r.querySelectorAll(`[${nn}]`))){let a=s.getAttribute(on);s.tagName!=="TITLE"&&a&&n.set(a,s)}let o=null,i=new Set;for(let s of e){if(s.tag==="title"){o=s.children;continue}if(s.tag==="htmlAttr")continue;i.add(s.key);let a=n.get(s.key);a&&a.tagName===s.tag.toUpperCase()?(ys(a,s.attrs),s.tag==="script"&&(a.textContent??"")!==(s.children??"")&&(a.textContent=s.children??"")):(a&&a.remove(),r.appendChild(Xu(s)))}for(let[s,a]of n)i.has(s)||a.remove();o!=null&&document.title!==o&&(document.title=o);for(let[s,a]of Object.entries(t))document.documentElement.getAttribute(s)!==a&&document.documentElement.setAttribute(s,a)}function ms(e){return V(t=>(x(()=>{e.version();let{tags:r,htmlAttrs:n}=Ju(e);Gu(r,n)}),S(()=>{}),t))}var Yu={};qu(Yu,{Base:()=>rf,JsonLD:()=>nf,Link:()=>ef,Meta:()=>Qu,Script:()=>tf,Title:()=>Zu});function He(e){return typeof e=="function"?e():e}function Zu(e){return Pe(()=>({title:He(e.children)})),null}function Qu(e){return Pe(()=>({meta:[{...e,content:He(e.content)}]})),null}function ef(e){return Pe(()=>{let t={};for(let[r,n]of Object.entries(e))t[r]=He(n);return{link:[t]}}),null}function tf(e){return Pe(()=>{let t={};for(let[r,n]of Object.entries(e))t[r]=He(n);return{script:[t]}}),null}function rf(e){return Pe({base:e.href}),null}function nf(e){return Pe(()=>({jsonLd:He(e.data)})),null}function Ls(e,t){if(!t)throw new Error("Container element not found for mount()");jr(()=>e(),t)}var Is=e=>m(()=>Te(e));async function Ds(e,t={}){let r=typeof t.root=="string"?document.querySelector(t.root):t.root??document.querySelector("#app");if(!r)throw new Error(`[Fluixi] Mount container not found: ${t.root??"#app"}`);let n=!!document.getElementById("__FLUIXI_HYDRATION__")||!!t.routes&&r.firstElementChild!=null,o=t.hydrate??n,i=ls();if(ps(i),hs(r),o){if(t.routes&&t.routes.length){let{preloadRoutes:s}=await Promise.resolve().then(()=>(Sn(),Ms));await s(t.routes,window.location.pathname)}us(),en(!0),Dt(Is(e),r),$f(),setTimeout(()=>{en(!1),tn()},100)}else Ee(Is(e),r);ms(i)}function $f(){if(typeof window>"u")return;let e=window;typeof e.__FX_REPLAY_STOP__=="function"&&e.__FX_REPLAY_STOP__();let t=e.__FX_REPLAY__;if(e.__FX_REPLAY__=void 0,e.__FX_REPLAY_STOP__=void 0,!(!Array.isArray(t)||t.length===0))for(let r of t){let n=r&&r.target;if(!n||n.isConnected===!1||typeof n.dispatchEvent!="function")continue;let o=r.type,i=o==="click"?new MouseEvent(o,{bubbles:!0,cancelable:!0}):new Event(o,{bubbles:!0,cancelable:!0});n.dispatchEvent(i)}}Sn();return Hs(Nf);})();
|
|
1
|
+
/*! @fluixi/core v1.0.0-alpha.86 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
|
+
"use strict";var Fluixi=(()=>{var rr=Object.defineProperty;var Vs=Object.getOwnPropertyDescriptor;var Ws=Object.getOwnPropertyNames;var Fs=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(e&&(t=e(e=0)),t);var _n=(e,t)=>{for(var r in t)rr(e,r,{get:t[r],enumerable:!0})},js=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ws(t))!Fs.call(e,o)&&o!==r&&rr(e,o,{get:()=>t[o],enumerable:!(n=Vs(t,o))||n.enumerable});return e};var Hs=e=>js(rr({},"__esModule",{value:!0}),e);function Mn(){return{consumer:null,untracked:!1,owner:null,queue:[],scheduled:!1,flushing:!1,batchDepth:0,hostSchedule:Ks,onSuspend:null,onError:null,observer:null}}function Us(e){let t=Mn(),r=e;for(let n of Object.keys(t))n in e||(r[n]=t[n]);return e}function zs(){let e=et[Tn];return e?Us(e):et[Tn]=Mn()}function In(){return[...new Set(et[Nn]??[])]}function Bs(e){return y.observer=e,()=>{y.observer===e&&(y.observer=null)}}function ur(e){let t=y.observer;t&&t.created(e.parents===void 0?{...e,parents:H,origin:e.origin??Js}:e)}function Xs(e){return y.observer?(H.push(e),!0):!1}function Gs(){H.pop()}function Ys(e){y.observer?.ran?.(e)}function Zs(e,t){y.observer?.wrote?.(e,t)}function B(e,t,r,n){let o=y.observer;!o?.bound||!H.length||o.bound(H[H.length-1],e,t,r,n)}function J(e,t,r,n){let o=y.observer;!o?.directive||!H.length||o.directive(H[H.length-1],e,t,r,n)}function Qs(e){y.observer?.contextCreated?.(e)}function or(e,t,r){let n=y.observer;!n?.context||!H.length||n.context(H[H.length-1],e,t,r)}function fr(e){y.observer?.disposed?.(e)}function Ln(){return y.observer!=null}function ir(e){if(e.watchers)for(let t of[...e.watchers])t._notify(e)}function na(e){if(y.untracked)return e();y.untracked=!0;try{return e()}finally{y.untracked=!1}}function ge(e){let t=Le(e);return e&&(e.owned??=[]).push(t),t}function ve(e,t=!0){Ie(e,t)}function Vn(e){return!!e&&e.disposed===!0}function Le(e){return{cleanups:null,owned:null,parent:e,contexts:null}}function X(e,t){let r=Symbol(t??"context");return Qs(r),{id:r,defaultValue:e,Provider:o=>{or(r,"provide",o.value);let i=y.owner,s=Le(i);(s.contexts=new Map).set(r,o.value),i&&(i.owned??=[]).push(s),y.owner=s;try{return o.children}finally{y.owner=i}}}}function K(e){let t=y.owner;for(;t;){if(t.contexts&&t.contexts.has(e.id)){let r=t.contexts.get(e.id);return or(e.id,"read",r),r}t=t.parent}return or(e.id,"read",e.defaultValue),e.defaultValue}function Wn(e,t){let r=e;for(;r;){if(r.contexts&&r.contexts.has(t.id))return r.contexts.get(t.id);r=r.parent}return t.defaultValue}function oa(e,t,r){let n=Le(y.owner);(n.contexts=new Map).set(e.id,t),y.owner&&(y.owner.owned??=[]).push(n);let o=y.owner;y.owner=n;try{return r()}finally{y.owner=o}}function ia(e){y.onSuspend=e}function sa(e){return y.onSuspend?(y.onSuspend(e,y.owner),!0):!1}function aa(e){y.onError=e}function N(){return y.owner}function Fn(e){let t=y.owner;return y.owner=e,t}function I(e,t){let r=y.owner;y.owner=e;try{return t()}finally{y.owner=r}}function S(e){if(y.owner){if(y.owner.disposed){e();return}(y.owner.cleanups??=[]).push(e)}}function Ie(e,t=!0){if(!e.disposed){if(e.owned){for(let r=e.owned.length-1;r>=0;r--)Ie(e.owned[r]);e.owned=null}if(e.cleanups){for(let r=e.cleanups.length-1;r>=0;r--)e.cleanups[r]();e.cleanups=null}t&&(e.disposed=!0)}}function V(e){let t=Le(y.owner);y.owner&&(y.owner.owned??=[]).push(t);let r=y.owner;y.owner=t;try{return e(()=>Ie(t))}finally{y.owner=r}}function ca(e){y.hostSchedule=e??(t=>{Promise.resolve().then(t)})}function ua(e){e.queued||(e.queued=!0,y.queue.push(e),!y.scheduled&&y.batchDepth===0&&(y.scheduled=!0,y.hostSchedule(rt)))}function rt(){if(y.scheduled=!1,y.flushing)return;y.flushing=!0;let e=0;try{for(;y.queue.length;){if(++e>1e5)throw new Error("[fluixi] effect flush did not settle (cycle?)");let t=y.queue;y.queue=[];for(let r of t)r.queued=!1,r.disposed||r.run()}}finally{y.flushing=!1}}function fa(){y.batchDepth===0&&rt()}function la(e){y.batchDepth++;try{return e()}finally{--y.batchDepth===0&&rt()}}function lr(e,t=!1){let r=new da(e,t);return()=>r.dispose()}function pa(e){return!!e&&typeof e.then=="function"}function w(e,t){let r=new ta(e,{equals:t?.equals}),n=(()=>r.get()),o=(i=>{let s=typeof i=="function"?i(r.peek()):i;return r.set(s),fa(),s});return Object.defineProperty(n,jn,{value:!0,enumerable:!0}),Object.defineProperty(n,ya,{value:{get value(){return r.peek()},get version(){return r.version}},enumerable:!1}),ur({kind:"signal",node:r,handle:n,name:t?.name,set:o}),Ln()&&S(()=>fr(r)),[n,o]}function m(e,t,r){let n=t,o=N(),i=new qn(()=>I(o,()=>{try{return n=e(n)}catch(a){if(pa(a))return sa(a),n;throw a}}),{equals:r?.equals}),s=(()=>i.get());return Object.defineProperty(s,jn,{value:!0,enumerable:!0}),Object.defineProperty(s,ha,{value:!0,enumerable:!0}),ur({kind:"memo",node:i,handle:s,name:r?.name}),Ln()&&S(()=>fr(i)),s}function x(e,t){let r=t;return lr(()=>{r=e(r)},!0)}function Hn(e,t){let r=t;lr(()=>{r=e(r)})}function C(e,t){let r=t;return lr(()=>{r=e(r)})}function $(e){return la(e)}function O(e){return na(e)}function Kn(){return rt(),Promise.resolve()}function Un(e,t,r){let n=[];return S(()=>{for(let o of n)o.dispose();n=[]}),m(()=>{let o=e()||[];return O(()=>{if(o.length===0){for(let c of n)c.dispose();return n=[],r?.fallback?r.fallback():[]}let i=new Map;for(let c of n)i.has(c.item)||i.set(c.item,c);let s=[],a=new Set;for(let c=0;c<o.length;c++){let u=o[c],l=i.get(u);if(l&&!a.has(l))l.setIndex(c),s.push(l),a.add(l);else{let f,d,g;V(p=>{g=p;let[b,T]=w(c,{name:"row index"});d=T,f=t(u,b)});let h={item:u,rendered:f,dispose:g,setIndex:d};s.push(h),a.add(h)}}for(let c of n)a.has(c)||c.dispose();return n=s,s.map(c=>c.rendered)})},void 0,{name:"mapArray"})}function zn(e,t,r,n){let o=[],i=[];return S(()=>{for(let s of i)s.dispose();o=[],i=[]}),m(()=>{let s=e()||[];return O(()=>{if(s.length===0){for(let f of i)f.dispose();return o=[],i=[],n?.fallback?n.fallback():[]}let a=new Map;for(let f=0;f<o.length;f++)a.set(o[f],i[f]);let c=[],u=[],l=new Set;for(let f=0;f<s.length;f++){let d=t(s[f]),g=a.get(d);if(g&&!l.has(d))g.setIndex(f),c.push(g);else{let h,p,b;V(T=>{b=T;let[_,ce]=w(f,{name:"row index"});p=ce;let Ye=m(me=>{let re=(e()||[])[_()];return re??me},s[f]);h=r(Ye,_)}),c.push({rendered:h,dispose:b,setIndex:p})}u.push(d),l.add(d)}for(let[f,d]of a)l.has(f)||d.dispose();return o=u,i=c,c.map(f=>f.rendered)})},void 0,{name:"keyArray"})}function Bn(e,t,r){let n=[];return S(()=>{for(let o of n)o.dispose();n=[]}),m(()=>{let o=e()||[];return O(()=>{if(o.length===0){for(let c of n)c.dispose();return n=[],r?.fallback?r.fallback():[]}let i=n.length,s=o.length;for(let c=i;c<s;c++){let u,l,f,d=o[c];V(g=>{f=g;let[h,p]=w(d);l=p,u=t(h,c)}),n.push({rendered:u,setItem:l,dispose:f})}for(let c=s;c<i;c++)n[c].dispose();s<i&&(n=n.slice(0,s));let a=Math.min(i,s);for(let c=0;c<a;c++)n[c].setItem(o[c]);return n.map(c=>c.rendered)})},void 0,{name:"indexArray"})}function M(e){return typeof e=="function"&&e[va]===!0}function wa(e){Rn&&Rn(e)}function Jn(e){sr=e}function ba(e){return sr?sr(e):void 0}function Xn(e){ar=e}function Aa(){return ar?ar():void 0}function Sa(e,t){Pn&&Pn(e,t)}function Gn(e,t=(r,n)=>r===n){let r=new Map;return x(()=>{let n=e();for(let[o,i]of r){let[s,a]=i,c=t(o,n);s()!==c&&a(c)}}),n=>{let o=r.get(n);if(!o){let[i,s]=w(!1);o=[i,s],r.set(n,o);let a=e();s(t(n,a))}return o[0]()}}function Yn(e,t){let[r,n]=w(e(),t);return x(()=>{let o=e();t?.timeoutMs?setTimeout(()=>n(()=>o),t.timeoutMs):typeof requestIdleCallback=="function"?requestIdleCallback(()=>n(()=>o)):Promise.resolve().then(()=>n(()=>o))}),r}function Zn(e,t){let r,n=(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>{r=void 0,e(...o)},t)};return S(()=>{r!==void 0&&clearTimeout(r)}),n}function xa(e){return!!e&&typeof e.then=="function"}function ne(e,t,r={}){let n,o;typeof t=="function"?(n=typeof e=="function"?e:()=>e,o=t):(n=()=>!0,o=e,t&&typeof t=="object"&&(r=t));let i=r.transport===!1?void 0:Aa(),s=i!==void 0?ba(i):void 0,a=s!==void 0,[c,u]=w(s!==void 0?s.value:r.initialValue,{equals:!1}),[l,f]=w(void 0,{equals:!1}),[d,g]=w(s!==void 0||r.initialValue!==void 0?"ready":"unresolved",{equals:!1}),[h,p]=w(void 0,{equals:!1}),[b,T]=w(void 0,{equals:!1}),_=nr,ce=!1;x(()=>{let D=n();if(b(),D===!1||D===null||D===void 0){_=nr,$(()=>{g("unresolved"),p(void 0),f(void 0)});return}let re=ce;if(ce=!1,_!==nr&&D===_&&!re)return;if(_=D,a){a=!1;return}let Ze=!1;S(()=>Ze=!0);let xn=O(d),qs=O(c),kn=xn==="ready"||xn==="refreshing";$(()=>{g(kn?"refreshing":"pending"),f(void 0)});try{let ue=o(D,{value:qs,refetching:kn});xa(ue)?(p(ue),wa(ue),ue.then(Qe=>{Ze||(i!==void 0&&Sa(i,Qe),$(()=>{u(()=>Qe),g("ready"),p(void 0)}))},Qe=>{Ze||$(()=>{f(Qe),g("errored"),p(void 0)})})):$(()=>{u(()=>ue),g("ready"),p(void 0)})}catch(ue){if(Ze)return;$(()=>{f(ue),g("errored"),p(void 0)})}});let Ye=()=>{let D=d();return D==="pending"||D==="refreshing"},me=(()=>{let D=l();if(D)throw D;if(Ye()){let re=h();if(re)throw re}return c()});return Object.defineProperties(me,{state:{get:d},loading:{get:Ye},error:{get:l},latest:{get:c}}),Object.defineProperty(me,Symbol.for("resource"),{value:!0,enumerable:!0}),Object.defineProperty(me,Symbol.for("signal"),{value:!0,enumerable:!0}),[me,{mutate:u,refetch:()=>{ce=!0,T(void 0)}}]}function tt(e){if(typeof e=="function"&&!e.length){let t=e();return M(t)?t:tt(t)}if(Array.isArray(e)){let t=[];for(let r=0;r<e.length;r++){let n=tt(e[r]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function fe(e){let t=m(e);return ga?m(()=>tt(t()),void 0,{name:"children"}):m(()=>tt(t()))}function eo(){let[e,t]=w(0),r=0;return{increment:()=>t(r+=1),decrement:()=>t(r-=1),inFallback:()=>e()>0}}function dr(e,t){return oa(Qn,e,t)}var cr,$n,Tn,Nn,Ks,et,y,H,Js,ea,On,En,Cn,Me,Dn,ta,qn,ra,da,jn,ha,ya,ma,ga,va,Rn,sr,ar,Pn,nr,Qn,ka,we,A=q(()=>{"use strict";cr="1.0.0-alpha.86",$n=cr.split(".")[0],Tn=`__fluixi_signal_state_v${$n}__`,Nn=`__fluixi_signal_builds_v${$n}__`,Ks=e=>{typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)};et=globalThis;y=zs();(et[Nn]??=[]).push(cr);H=[];ea="__FLUIXI_DEVTOOLS_HOOK__",On=globalThis[ea];if(typeof On?.inject=="function")try{On.inject({observeReactiveNodes:Bs,version:cr})}catch{}En=0,Cn=1,Me=2,Dn=class{constructor(){this.observers=null,this.watchers=null,this.version=0}updateIfNecessary(){}track(){if(y.untracked)return;let e=y.consumer;e&&((this.observers??=new Set).add(e),(e.sources??=new Set).add(this))}},ta=class extends Dn{constructor(e,t){super(),this._value=e,this._equals=t?.equals===!1?()=>!1:t?.equals??Object.is}get(){return this.track(),this._value}set(e){if(!this._equals(this._value,e)){if(this._value=e,this.version++,Zs(this,y.consumer),this.observers)for(let t of[...this.observers])t.markDirty(Me);ir(this)}}peek(){return this._value}},qn=class extends Dn{constructor(e,t){super(),this._threw=!1,this._initialized=!1,this.state=Me,this.sources=null,this._fn=e,this._equals=t?.equals===!1?()=>!1:t?.equals??Object.is}get(){if(y.consumer===this)throw new Error("Signal.Computed cannot read itself");if(this.track(),this.updateIfNecessary(),this._threw)throw this._error;return this._value}updateIfNecessary(){if(this.state===Cn&&this.sources){for(let e of this.sources)if(e.updateIfNecessary(),this.state===Me)break}(this.state===Me||!this._initialized)&&this.recompute(),this.state=En}recompute(){if(this.sources){for(let a of this.sources)a.observers?.delete(this);this.sources.clear()}let e=y.consumer,t=y.untracked,r=Xs(this);y.consumer=this,y.untracked=!1;let n,o=!1,i;try{n=this._fn()}catch(a){o=!0,i=a,n=this._value}finally{y.consumer=e,y.untracked=t,r&&Gs()}let s=!this._initialized||this._threw!==o||(o?i!==this._error:!this._equals(this._value,n));if(this._initialized=!0,this._threw=o,this._error=i,this._value=n,Ys(this),s){if(this.version++,this.observers)for(let a of[...this.observers])a.markDirty(Me);ir(this)}}markDirty(e){if(this.state>=e)return;let t=this.state===En;if(this.state=e,t){if(this.observers)for(let r of[...this.observers])r.markDirty(Cn);ir(this)}}peek(){if(this.updateIfNecessary(),this._threw)throw this._error;return this._value}};ra=class{constructor(e){this._watched=new Set,this._pending=new Set,this._notifyFn=e}watch(...e){for(let t of e)this._watched.add(t),(t.watchers??=new Set).add(this)}unwatch(...e){for(let t of e)this._watched.delete(t),t.watchers?.delete(this),this._pending.delete(t)}getPending(){let e=[...this._pending];return this._pending.clear(),e}_notify(e){if(!this._watched.has(e)||this._pending.has(e))return;let t=this._pending.size===0;this._pending.add(e),t&&this._notifyFn()}};da=class{constructor(e,t=!1){this.queued=!1,this.disposed=!1,this.owner=Le(y.owner),y.owner&&(y.owner.cleanups??=[]).push(()=>this.dispose()),this.computed=new qn(()=>{Ie(this.owner,!1),I(this.owner,()=>{let r=e();typeof r=="function"&&(this.owner.cleanups??=[]).push(r)})}),ur({kind:"effect",node:this.computed,handle:this,internal:!t}),this.watcher=new ra(()=>ua(this)),this.run(),this.watcher.watch(this.computed)}run(){if(!this.disposed){this.watcher.getPending();try{this.computed.get()}catch(e){if(e&&typeof e.then=="function"&&y.onSuspend){y.onSuspend(e,this.owner);return}if(y.onError&&y.onError(e,this.owner))return;throw e}}}dispose(){this.disposed||(this.disposed=!0,fr(this.computed),this.watcher.unwatch(this.computed),Ie(this.owner))}};ca(()=>{});jn=Symbol.for("signal"),ha=Symbol.for("memo"),ya=Symbol.for("signal-node");ma=typeof window>"u"?!1:window.__FLUIXI_PROD__===!0,ga=typeof process>"u"?ma:!1,va=Symbol.for("signal");Rn=null;sr=null;ar=null;Pn=null;nr=Symbol();Qn=X();ia((e,t)=>{let r=Wn(t,Qn);r&&(r.increment(),e.finally(()=>r.decrement()))});ka=X();aa((e,t)=>{let r=Wn(t,ka);return r?(r.setError(e),!0):!1});we=Symbol.for("fluixi-proxy")});var Co,Ro=q(()=>{"use strict";Co="1.0.0-alpha.86"});function Ko(){return{consumer:null,untracked:!1,owner:null,queue:[],scheduled:!1,flushing:!1,batchDepth:0,hostSchedule:hc,onSuspend:null,onError:null,observer:null}}function yc(e){let t=Ko(),r=e;for(let n of Object.keys(t))n in e||(r[n]=t[n]);return e}function mc(){let e=_r[Po];return e?yc(e):_r[Po]=Ko()}function gc(e){return R.observer=e,()=>{R.observer===e&&(R.observer=null)}}function vc(e,t){if(!R.observer)return t();let r=ht;ht=e;try{return t()}finally{ht=r}}function wc(e){let t=R.observer;t&&t.created(e.parents===void 0?{...e,parents:le,origin:e.origin??ht}:e)}function Uo(e){let t=R.observer;!t?.props||!le.length||!e||t.props(le[le.length-1],e)}function bc(e){R.observer?.contextCreated?.(e)}function Ac(e,t,r){let n=R.observer;!n?.context||!le.length||n.context(le[le.length-1],e,t,r)}function $o(e,t,r){R.observer?.moved?.(e,t,r)}function No(e){R.observer?.disposed?.(e)}function zo(){return R.observer!=null}function xc(e){if(R.untracked)return e();R.untracked=!0;try{return e()}finally{R.untracked=!1}}function kc(e){return{cleanups:null,owned:null,parent:e,contexts:null}}function Bo(e,t){let r=Symbol(t??"context");return bc(r),{id:r,defaultValue:e,Provider:o=>{Ac(r,"provide",o.value);let i=R.owner,s=kc(i);(s.contexts=new Map).set(r,o.value),i&&(i.owned??=[]).push(s),R.owner=s;try{return o.children}finally{R.owner=i}}}}function Jo(e,t){let r=e;for(;r;){if(r.contexts&&r.contexts.has(t.id))return r.contexts.get(t.id);r=r.parent}return t.defaultValue}function _c(e){R.onSuspend=e}function Tc(e){R.onError=e}function Oc(e){R.hostSchedule=e??(t=>{Promise.resolve().then(t)})}function Xo(e){return xc(e)}function Go(e){return typeof e=="function"&&e[Ec]===!0}function Pc(e,t){if(!Se(e)||!zo())return;let r=new Set,n=s=>{if(!(!Se(s)||r.has(s))){r.add(s);for(let a of Object.values(s))n(a)}};n(vt.get(t)??t);let o=new Set,i=s=>{if(!Se(s))return;let a=s;if(r.has(a)||o.has(a))return;o.add(a);let c=qe.get(a);if(c){for(let u of c.keys.values())No(u);c.all&&No(c.all),qe.delete(a),xe.delete(a),Tr.delete(a)}for(let u of Object.values(a))i(u)};i(e)}function Yo(e,t,r){let n=t?.owner,o=n&&r!==void 0?wt(n.name,r,t?.array):void 0,[i,s]=vc(n?.store,()=>w(e,o?{name:o}:void 0)),a=i;return a.$=s,a}function bt(e){let t=qe.get(e);return t?t.owner||(t.owner=xe.get(e)):qe.set(e,t={keys:new Map,owner:xe.get(e),array:Array.isArray(e)}),t}function Vo(e,t,r){let n=e.keys.get(t);return n||e.keys.set(t,n=Yo(r,e,t)),n}function $c(e,t,r,n){let o=xe.get(e);if(o&&o.store===t&&o.name===r)return;let i={store:t,name:r};xe.set(e,i),vt.set(e,vt.get(n)??n);let s=qe.get(e);if(s&&(s.owner=i,!!zo())){for(let[a,c]of s.keys)$o(c,t,wt(r,a,s.array));s.all&&$o(s.all,t,wt(r,"*",s.array))}}function Wo(e){let t=bt(e);(t.all||(t.all=Yo(void 0,t,"*")))()}function Fo(e,t){e.$(typeof t=="function"?()=>t:t)}function Se(e){if(e==null||typeof e!="object")return!1;if(Array.isArray(e))return!0;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function yt(e){if(!Se(e))return e;let t=Tr.get(e);if(t)return t;let r=new Proxy(e,Nc);return Tr.set(e,r),r}function Zo(e,t=new Set){if(e==null||typeof e!="object")return e;let r=e[gt]??e;if(t.has(r)||!Se(r))return r;t.add(r);let n=!1,o=s=>{let a=Zo(s,t);return a!==s&&(n=!0),a};if(Array.isArray(r)){let s=r.map(o);return n?s:r}let i={};for(let s of Object.keys(r))i[s]=o(r[s]);return n?i:r}function Y(e,t,r){let n=Zo(r),o=e[t];if(o===n&&(n!==void 0||t in e))return;let i=Array.isArray(e),s=i?e.length:0;n===void 0?delete e[t]:e[t]=n;let a=bt(e),c=a.keys.get(t);if(c&&Fo(c,n),Pc(o,e),i&&e.length!==s){let u=a.keys.get("length");u&&Fo(u,e.length)}a.all&&a.all.$(void 0)}function Or(e,t){return typeof e=="function"?e(t):e}function Er(e,t){for(let r of Object.keys(t)){let n=t[r],o=e[r];n&&typeof n=="object"&&!Array.isArray(n)&&o&&typeof o=="object"&&!Array.isArray(o)?Er(o,n):Y(e,r,n)}}function St(e){let t=[],r=e.replace(/\[([^\]]*)\]/g,".$1");for(let n of r.split("."))n.length&&t.push(n);return t}function Qo(e,t,r){let n=t.length-1;for(let i=0;i<n;i++){let s=t[i];if(s==="*"){let c=t.slice(i+1);if(Array.isArray(e))for(let u=0;u<e.length;u++)Qo(e[u],c,r);return}let a=e[s];(a==null||typeof a!="object")&&(a=/^\d+$/.test(t[i+1])?[]:{},Y(e,s,a)),e=a}let o=t[n];if(o==="*"){if(Array.isArray(e))for(let i=0;i<e.length;i++)Y(e,i,Or(r,e[i]));return}Y(e,o,Or(r,e[o]))}function jo(e,t,r){Qo(e,St(t),r)}function Mc(e){return Array.isArray(e)&&e.length>0&&e.every(t=>Array.isArray(t)&&t.length>=2&&typeof t[0]=="string")}function mt(e,t){for(let r=e.length-1;r>=t.length;r--)Y(e,String(r),void 0);e.length!==t.length&&Y(e,"length",t.length);for(let r=0;r<t.length;r++)Y(e,String(r),t[r])}function Ic(e,t){let r=t[0];if(typeof r=="function"&&t.length===1){let n=r(e);n&&n!==e&&Er(e,n);return}if(Array.isArray(r)&&t.length===1){if(Mc(r)){for(let n of r)jo(e,n[0],n[1]);return}if(Array.isArray(e)){mt(e,r);return}if(r.length===0)return;throw new TypeError("[fluixi] set() was given an array that is neither a batch of [path, value] pairs nor a replacement for an array root. Name the path you meant, as in set('items', [...]).")}if(r&&typeof r=="object"&&!Array.isArray(r)&&t.length===1){Er(e,r);return}if(t.length>=3){Cr(e,t.slice(0,-1),t[t.length-1]);return}jo(e,String(r),t[1])}function Lc(e,t){if(typeof t=="function"){if(!Array.isArray(e))return[];let r=[];for(let n=0;n<e.length;n++)t(e[n],n)&&r.push(n);return r}if(Array.isArray(t))return Array.isArray(e)?t.map(Number):t.map(String);if(t&&typeof t=="object"&&("from"in t||"to"in t||"by"in t)){if(!Array.isArray(e))return[];let r=t.by??1,n=t.from??0,o=t.to??e.length-1,i=[];for(let s=n;s<=o;s+=r)s>=0&&s<e.length&&i.push(s);return i}return t==="*"?Array.isArray(e)?e.map((r,n)=>n):Object.keys(e??{}):[t]}function Cr(e,t,r){if(e==null)return;let[n,...o]=t;if(typeof n=="string"){let s=St(n);if(s.length>1){Cr(e,[...s,...o],r);return}}let i=Lc(e,n);if(o.length===0){for(let s of i)Y(e,s,Or(r,e[s]));return}for(let s of i){let a=e[s];if(a==null||typeof a!="object"){let c=o[0];a=typeof c=="number"||/^\d+$/.test(String(c))?[]:{},Y(e,s,a)}Cr(a,o,r)}}function Rr(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Rr);let t={};for(let r of Object.keys(e))t[r]=Rr(e[r]);return t}function se(e,t){let r=e;for(let n of St(t)){if(r==null)return;r=r[n]}return r}function qc(e,t){for(let r of Dc)e[r]=t[r].bind(t);e.$=t.reactive.bind(t)}function Vc(e,t={immutable:!0}){let r=new ei(e,t);return qc(r.set,r),[r.proxy,r.set]}function Wc(e,t={}){return new ei(e,{...t,immutable:!1})}function At(e){if(e==null||typeof e!="object")return e;let t=e[gt];return t!==void 0?t:e}function Fc(e){return O(()=>At(e))}var Pr,Ho,Po,pc,hc,_r,R,le,ht,Sc,Mo,Xf,Ec,Cc,Rc,gt,Io,Lo,Do,qo,qe,Tr,xe,vt,wt,Nc,ei,Dc,Yf,ti=q(()=>{"use strict";A();Pr="1.0.0-alpha.86",Ho=Pr.split(".")[0],Po=`__fluixi_signal_state_v${Ho}__`,pc=`__fluixi_signal_builds_v${Ho}__`,hc=e=>{typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)};_r=globalThis;R=mc();(_r[pc]??=[]).push(Pr);le=[];Sc="__FLUIXI_DEVTOOLS_HOOK__",Mo=globalThis[Sc];if(typeof Mo?.inject=="function")try{Mo.inject({observeReactiveNodes:gc,version:Pr})}catch{}Oc(()=>{});Xf=typeof window>"u"?!1:window.__FLUIXI_PROD__===!0,Ec=Symbol.for("signal");Cc=Bo();_c((e,t)=>{let r=Jo(t,Cc);r&&(r.increment(),e.finally(()=>r.decrement()))});Rc=Bo();Tc((e,t)=>{let r=Jo(t,Rc);return r?(r.setError(e),!0):!1});gt=Symbol("store-raw"),Io=Symbol("store-node"),Lo=Symbol("store-has"),Do=Symbol("store-self"),qo=Symbol("store-track"),qe=new WeakMap,Tr=new WeakMap,xe=new WeakMap,vt=new WeakMap;wt=(e,t,r)=>r?`${e}[${String(t)}]`:`${e}.${String(t)}`;Nc={get(e,t,r){if(t===gt||t===Io)return e;if(t===we)return r;if(t===Lo)return c=>c in e;if(t==="__proxy")return!0;if(t===qo||t===Do)return Wo(e),r;let n=e[t];if(typeof n=="function"&&!Object.prototype.hasOwnProperty.call(e,t))return n;let o=Object.getOwnPropertyDescriptor(e,t);if(o&&o.get)return o.get.call(r);let i=bt(e),s=Vo(i,t,n),a=s();return Se(a)?(i.owner&&$c(a,s,wt(i.owner.name,t,i.array),e),yt(a)):a},set(){return!0},deleteProperty(e,t){return t in e&&Y(e,t,void 0),!0},has(e,t){return t===gt||t===we||t===Io||t===Lo||t===Do||t===qo?!0:(Vo(bt(e),t,e[t])(),t in e)},ownKeys(e){return Wo(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e,t)}};ei=class{constructor(e,t={immutable:!0}){this.options=t,this.root=e,this.set=((...r)=>$(()=>Ic(this.root,r))),e&&typeof e=="object"&&(xe.set(e,{store:this,name:t.name??"store"}),vt.set(e,e)),wc({kind:"store",node:this,handle:()=>this.root,name:t.name})}get state(){return yt(this.root)}get proxy(){return yt(this.root)}get accessor(){return(()=>yt(this.root))}unwrap(){return this.root}getNode(e){return this.root&&this.root[e]}get(e){if(e==null||e==="")return At(this.state);let t=this.state;for(let r of St(e)){if(t==null)return;t=t[r]}return At(t)}select(e){return m(()=>e(this.state))}subscribe(e){return x(()=>e(this.state))}watch(e,t){let r;return x(()=>{let n=e(this.state);Object.is(n,r)||(t(n,r),r=n)})}reactive(e){return m(()=>this.state[e])}produce(e){this.set((t=>{let r=Rr(t);return e(r),r}))}reconcile(e,t={}){this.set(e)}push(e,...t){let r=se(this.root,e);this.set(e,r.concat(t))}pop(e){let t=se(this.root,e).slice(),r=t.pop();return this.set(e,t),r}shift(e){let t=se(this.root,e).slice(),r=t.shift();return this.set(e,t),r}splice(e,t,r,...n){let o=se(this.root,e).slice(),i=o.splice(t,r,...n);return this.set(e,o),i}insert(e,t,r){let n=se(this.root,e).slice();n.splice(t,0,r),this.set(e,n)}removeAt(e,t){let r=se(this.root,e).slice(),n=r.splice(t,1);return this.set(e,r),n}replace(e,t){if(arguments.length>=2){let n=se(this.root,String(e)),o=t;if(Array.isArray(n)&&Array.isArray(o)){mt(n,o);return}this.set(e,o);return}let r=this.root;if(Array.isArray(r)&&Array.isArray(e)){mt(r,e);return}this.set(e)}clear(e){let t=e===void 0?this.root:se(this.root,e);if(Array.isArray(t)){mt(t,[]);return}if(t&&typeof t=="object")for(let r of Object.keys(t))Y(t,r,void 0)}toObservable(){let[e]=w(this.state);return e.toObservable()}dispose(){}},Dc=["get","select","watch","subscribe","produce","reconcile","push","pop","shift","splice","insert","removeAt","replace","clear","unwrap","toObservable"];Yf=Object.freeze({createStore:Vc,createMutableStore:Wc,batch:$,unwrap:At,untrackStore:Fc})});function jc(e){return e.localName.includes("-")}function ri(e,t,r,n=!1){if(r==null){e.removeAttribute(t);return}if(jc(e)){e[t]=r;return}E(e,t,r,n)}function ui(e,...t){e.classList.add(...t)}function fi(e,...t){e.classList.remove(...t)}function li(e,...t){t.forEach(r=>e.classList.toggle(r))}function E(e,t,r,n=!1){if(r==null||r===!1){e.removeAttribute(t);return}if(r===!0){e.setAttribute(t,"");return}if(typeof r=="object"){e.setAttribute(t,JSON.stringify(r));return}e.setAttribute(t,String(r))}function di(e){return e&&typeof e=="object"&&e.strings&&Array.isArray(e.strings)&&e.values&&Array.isArray(e.values)}function Rt(e){return e instanceof Node}function pi(e){F.core=e}function Pt(e){F.core&&e.setAttribute("fluixi",F.core),e.setAttribute("fx-dom",F.dom),e.setAttribute("fx-reactive",F.reactive),typeof globalThis<"u"&&(globalThis.Fluixi=F)}function $t(){let e=In();e.length>1&&console.warn(`[fluixi] ${e.length} builds of @fluixi/reactive are driving one reactive graph: ${e.join(", ")}. They share it on purpose, so signals still cross between them, but the oldest one decided what the graph looks like. Build the components on one release, or load them as shared-runtime bundles.`);let t=[F.core,F.dom,F.reactive].filter(r=>r!==void 0);new Set(t).size<=1||console.warn(`[fluixi] package versions disagree: core ${F.core??"(absent)"}, dom ${F.dom}, reactive ${F.reactive}. These ship as one release, so a mismatch usually means a stale lockfile or two copies resolved side by side. Reinstall, or check for duplicates with \`pnpm why @fluixi/dom\`.`)}function hi(e){return Object.defineProperty(e,Symbol.for("fluixi-provider"),{value:!0,enumerable:!0}),e}function Ve(e){return typeof e!="function"||Object.defineProperty(e,Symbol.for("fluixi-component"),{value:!0,enumerable:!0}),e}function yi(e){return Object.defineProperty(e,Symbol.for("fluixi-suspense"),{value:!0,enumerable:!0}),e}function Kc(e){return typeof e=="function"&&e[Symbol.for("fluixi-router")]===!0}function Uc(e){return typeof e=="function"&&e[Symbol.for("fluixi-routes")]===!0}function zc(e){return typeof e=="function"&&e[Symbol.for("fluixi-route")]===!0}function Bc(e){return typeof e=="function"&&e[Symbol.for("fluixi-outlet")]===!0}function Jc(e){return typeof e=="function"&&e[Symbol.for("fluixi-provider")]===!0}function Xc(e){return typeof e=="function"&&e[Symbol.for("fluixi-context")]===!0}function ee(e){return typeof e=="function"&&e[Symbol.for("fluixi-component")]===!0}function Gc(e){return typeof e=="function"&&e[Symbol.for("fluixi-suspense")]===!0}function mi(e){return Kc(e)?{type:"router",value:e}:zc(e)?{type:"route",value:e}:Uc(e)?{type:"routes",value:e}:Bc(e)?{type:"outlet",value:e}:ee(e)?{type:"component",value:e}:Gc(e)?{type:"suspense",value:e}:Jc(e)?{type:"provider",value:e}:Xc(e)?{type:"context",value:e}:{type:"none",value:e}}function L(){return Nr.server}function qr(){if(!Nr.nodes)throw new Error("[fluixi] server render ran before @fluixi/dom/server loaded");return Nr.nodes}function Vr(e){return e!=null&&e[Nt]===!0?!0:typeof Node<"u"&&e instanceof Node}function Qc(e){return e!=null&&e[Nt]===!0?e.nodeType===1:typeof Element<"u"&&e instanceof Element}function eu(e){return e!=null&&e[Nt]===!0?e.nodeType===3:typeof Text<"u"&&e instanceof Text}function tu(e){gi=e}function vi(){return gi}function oi(e,t){return v.active&&t.parentNode===e}function wi(e){let t=v.parents.lastIndexOf(e);t!==-1&&(v.parents.length=t),v.cursor=e.nextSibling}function bi(e){if(!v.active)return e();let t=v.cursor,r=v.parents;v.active=!1,v.parents=[];try{return e()}finally{v.active=!0,v.cursor=t,v.parents=r}}function Ai(e){if(!v.active||e==null)return;let t=Array.isArray(e)?e[e.length-1]:e;t&&typeof t.nodeType=="number"&&wi(t)}function ii(e,t){return t&&(e[nu]=t),e}function pe(e){if(!L())for(let t of e)kt.has(t)||Wr.has(t)||(kt.add(t),document.addEventListener(t,ou))}function ou(e){let t=`$$${e.type}`,r=e.composedPath&&e.composedPath()[0]||e.target;for(;r;){let n=r[t];if(n&&!r.disabled&&(n(e),e.cancelBubble))return;r=r.host&&r.host!==r&&r.host instanceof Element?r.host:r.parentNode}}function iu(e,t,r){if(e[`$$${t}`]=r,Wr.has(t)){let n=`__fx_${t}`;if(!e[n]){let o=i=>{e[`$$${t}`]?.(i)};e.addEventListener(t,o),e[n]=o}return}kt.has(t)||pe([t])}function si(e,t){delete e[`$$${t}`];let r=`__fx_${t}`,n=e[r];n&&(e.removeEventListener(t,n),delete e[r])}function ae(e,t=!1){if(L())return qr().createText(e);if(v.active&&!t){let r=vi()?.hydrateText(e);if(r)return r}return document.createTextNode(e)}function _e(e,t=!1,r){if(L())return qr().createElement(e,t);if(v.active){let n=vi()?.hydrateElement(e);if(n)return r?ii(n,r):n}return ii(t?document.createElementNS(Dr,e):document.createElement(e),r)}function au(e,t,r,n,o){let i=n,s=new Map;return C(()=>{B(r??t,"content",void 0,e);let a;if(ee(e)&&!M(e)){if(!s.has(e)){Q++;try{let c=e();s.set(e,c)}finally{Q--}}for(a=s.get(e);typeof a=="function"&&M(a);)a=a()}else for(a=e();typeof a=="function"&&M(a);)a=a();{let c=0;for(;typeof a=="function"&&c++<50;)if(ee(a)){if(!s.has(a)){let u=a;Q++;try{let l=u();s.set(u,l)}finally{Q--}}a=s.get(a)}else if(M(a))a=a();else if(a=a(),typeof a!="function"||!M(a)&&!ee(a))break}Q++;try{i=_t(t,a,r,i,s),o(i)}finally{Q--}})}function j(e,t,r,n){if(Q>su)return console.error("[insert] Exceeded max call depth, possible infinite loop."),()=>null;r!==void 0&&!r&&(r=ae("",!0),e.appendChild(r));let o=n??null,i=c=>Array.isArray(c)&&c.some(u=>typeof u=="function"),s=c=>typeof c=="function"?c:()=>c;if(typeof t!="function"&&!i(t)){Q++;try{o=_t(e,t,r,o)}finally{Q--}return()=>o}let a=au(s(t),e,r,o,c=>{o=c});return()=>(a?.(),o)}function _t(e,t,r,n,o){if(t==null||typeof t=="boolean")return de(e,n,r);if(typeof t=="function")for(;typeof t=="function";)t=t();if(t==null||typeof t=="boolean")return de(e,n,r);if(xt(t)){let s=ae("",!0);return Array.isArray(n)?n.length>0?(e.replaceChild(s,n[0]),de(e,n.slice(1),r)):W(e,s,r):n?e.replaceChild(s,n):W(e,s,r),t.then(a=>{s.parentNode===e&&_t(e,a,s.nextSibling,s)}).catch(a=>{console.error("Error resolving promise in insertExpression:",a)}),s}let i=typeof t;if(i==="string"||i==="number"){if(i==="number"&&(t=String(t)),Array.isArray(n)){if(n.length===0){let a=ae(t);return W(e,a,r),a}if(n.length===1&&n[0].nodeType===3)return n[0].data=t,n;n=de(e,n,r)}if(n&&eu(n))return n.data=t,n;let s=ae(t);return n&&n.parentNode===e?e.replaceChild(s,n):oi(e,s)||W(e,s,r),s}if(Vr(t))return oi(e,t)?(wi(t),t):Array.isArray(n)?(n.length===0?W(e,t,r):n[0].parentNode===e?(e.replaceChild(t,n[0]),de(e,n.slice(1),r)):W(e,t,r),t):(n?n!==t&&(n.parentNode===e?e.replaceChild(t,n):W(e,t,r)):W(e,t,r),t);if(Array.isArray(t)){let s=[],a=Array.isArray(n)?n:n?[n]:[],c=[];Z(t,s,e,r,!0,o,c);let u=cu(e,a,s,r);for(let l of c){let f=j(e,l.sig,l.marker);S(()=>{de(e,f()),l.marker.parentNode===e&&e.removeChild(l.marker)})}return u}if(i==="object"&&t!==null&&typeof t=="object"){let s=t;if("type"in s&&"props"in s){let a=s;if(typeof a.type=="function"){let c=a.type(a.props||{});return _t(e,c,r,n)}}}return de(e,n,r)}function Z(e,t,r,n,o=!0,i,s){for(let a=0;a<e.length;a++){let c=e[a];if(!(c==null||typeof c=="boolean")){for(;typeof c=="function"&&!xt(c)&&!M(c)&&!ee(c)&&(c=c(),!(c==null||typeof c=="boolean")););if(!(c==null||typeof c=="boolean")){if(typeof c=="function"){let u;for(ee(c)&&!M(c)?(i||(i=new Map),i.has(c)||i.set(c,c()),u=i.get(c)):u=c();typeof u=="function"&&!xt(u)&&!M(u)&&!ee(u);)i||(i=new Map),i.has(u)||i.set(u,u()),u=i.get(u);if(u==null||typeof u=="boolean")continue;if(typeof u=="function"){if(M(u)){if(s){let f=ae("",!0);t.push(f),s.push({marker:f,sig:u});continue}let l=u();for(;typeof l=="function"&&M(l);)l=l();if(l==null||typeof l=="boolean")continue;Array.isArray(l)?Z(l,t,r,n,o,i):Z([l],t,r,n,o,i);continue}continue}Array.isArray(u)?Z(u,t,r,n,o,i,s):Z([u],t,r,n,o,i,s);continue}if(xt(c)){let u=ae("",!0);t.push(u),c.then(l=>{if(u.parentNode){let f=[];if(Z([l],f,u.parentNode,void 0,!1,i),f.length>0){u.parentNode.replaceChild(f[0],u);for(let d=1;d<f.length;d++)u.parentNode?.insertBefore(f[d],f[d-1].nextSibling)}}}).catch(l=>console.error("Error resolving promise in array:",l));continue}if(Array.isArray(c)){Z(c,t,r,n,o,i,s);continue}if(Vr(c)){t.push(c);continue}if(typeof c=="object"&&c!==null&&"type"in c&&"props"in c){let u=c;if(typeof u.type=="function"){let l=u.type(u.props||{});Array.isArray(l)?Z(l,t,r,n,!1,i):Z([l],t,r,n,!1,i);continue}}if(typeof c=="string"||typeof c=="number"){let u=String(c);if(u.trim()===""&&u!==" ")continue;t.push(ae(u));continue}t.push(ae(String(c)))}}}}function cu(e,t,r,n){for(let f=0;f<r.length;f++){let d=r[f].parentNode;d!==null&&d!==e&&d.nodeType!==11&&(r=r.slice(),r[f]=r[f].cloneNode(!0))}let o=r.length,i=t.length,s=o,a=0,c=0,u=i>0?t[i-1].nextSibling??void 0:n,l=null;for(;a<i||c<s;){if(t[a]===r[c]){a++,c++;continue}for(;i>a&&s>c&&t[i-1]===r[s-1];)i--,s--;if(i===a){let f=s<o?c?r[c-1].nextSibling??void 0:r[s-c]:u;for(;c<s;)W(e,r[c++],f)}else if(s===c)for(;a<i;)(!l||!l.has(t[a]))&&t[a].parentNode===e&&e.removeChild(t[a]),a++;else if(t[a]===r[s-1]&&r[c]===t[i-1]){let f=t[--i].nextSibling;W(e,r[c++],t[a++].nextSibling),W(e,r[--s],f),t[i]=t[a-1]}else{if(!l){l=new Map;let d=c;for(;d<s;)l.set(r[d],d++)}let f=l.get(t[a]);if(f!=null)if(c<f&&f<s){let d=a,g=1;for(;++d<i&&d<s&&!(!l.has(t[d])||l.get(t[d])!==f+g);)g++;if(g>f-c){let h=t[a];for(;c<f;)W(e,r[c++],h)}else t[a].parentNode===e?e.replaceChild(r[c++],t[a++]):(W(e,r[c++],u),a++)}else a++;else t[a].parentNode===e&&e.removeChild(t[a]),a++}}return r}function de(e,t,r){if(t)if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n].parentNode===e&&e.removeChild(t[n]);else t.parentNode===e&&e.removeChild(t);return null}function W(e,t,r){v.active&&t.parentNode===e||(r&&r.parentNode===e?e.insertBefore(t,r):e.appendChild(t))}function ke(e,t,r){r==null?delete e[t]:e[t]=r}function xi(e,t,r){let n=r,o;return Array.isArray(r)&&(n=r[0],o=r[1]),typeof n!="function"?()=>{}:(e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o))}function ki(e,t){if(!t||typeof t!="function")return;let r=t[Si]?.name;if(!r)return;let n=r.indexOf(":");n!==-1&&J(e,r.slice(0,n),r.slice(n+1),t)}function Tt(e,t,r){let n=typeof r=="function"?O(()=>r()):r;if(!(!n||typeof n!="object"))for(let o of Object.keys(n))J(e,t,o)}function _i(e,t){let r=(n,o)=>{typeof n=="function"&&(J(e,"use",n.name||"use",o),n(e,o??(()=>{})))};if(typeof t=="function"){r(t);return}if(Array.isArray(t)){if(typeof t[0]=="function"){r(t[0],t[1]);return}for(let n of t)Array.isArray(n)?r(n[0],n[1]):r(n)}}function Mr(e,t,r,n=!1){return ki(e,r),typeof r!="function"?(E(e,t,r,n),()=>{}):C(()=>{B(e,"attribute",t,r);let o=typeof r=="function"?r():r;E(e,t,o,n)})}function Ir(e,t,r){return typeof r!="function"?(ke(e,t,r),()=>{}):(ki(e,r),C(()=>{B(e,"property",t,r);let n=typeof r=="function"?r():r;ke(e,t,n)}))}function Ti(e,t,r){return typeof r!="function"?(E(e,t,!!r),()=>{}):C(()=>{B(e,"attribute",t,r);let n=r();E(e,t,!!n)})}function Ot(e,t){if(t==null){e.removeAttribute("class");return}if(typeof t=="function"){C(()=>{B(e,"attribute","class",t),Ot(e,t())});return}if(typeof t=="string"){e.setAttribute("class",t);return}if(Array.isArray(t)){e.setAttribute("class",t.filter(Boolean).join(" "));return}if(typeof t=="object"){let r=Object.keys(t).filter(n=>{let o=t[n];return typeof o=="function"?o():!!o}).join(" ");e.setAttribute("class",r);return}e.setAttribute("class",String(t))}function Et(e,t,r){if(!(!t||typeof t!="object"))for(let n in t){let o=t[n],i=n.split(/\s+/).filter(Boolean);if(typeof o=="function"&&r)r.push(C(()=>{let s=!!o();for(let a of i)e.classList.toggle(a,s)}));else{let s=!!(typeof o=="function"?o():o);for(let a of i)e.classList.toggle(a,s)}}}function Ct(e,t){let r=t;for(;typeof r=="function";)r=r();if(r==null){e.removeAttribute("style");return}if(typeof r=="string"){e.style.cssText=r;return}if(typeof r=="object")for(let n in r){let o=r[n];o==null?e.style[n]="":e.style[n]=o}}function Oi(e){let{element:t,props:r,prevProps:n=ru,isSVG:o=!1,skipChildren:i=!1}=e;if(!t||!Qc(t))return console.error("[spread] Error: element is not a DOM Element!"),()=>{};if(!r)return console.warn("[spread] Warning: props is undefined!"),()=>{};let s=o||t.namespaceURI===Dr,a=[];for(let c in r){if(i&&c==="children")continue;let u=r[c],l=n[c];if(u===l)continue;if(c==="ref"){Fr(u,t);continue}if(c==="use"){_i(t,u);continue}if(c.startsWith("on:")){a.push(xi(t,c.slice(3),u));continue}if(c.startsWith("prop:")){J(t,"prop",c.slice(5),u),a.push(Ir(t,c.slice(5),u));continue}if(c.startsWith("attr:")){J(t,"attr",c.slice(5),u),a.push(Mr(t,c.slice(5),u,s));continue}if(c.startsWith("bool:")){J(t,"bool",c.slice(5),u),a.push(Ti(t,c.slice(5),u));continue}if(c==="class"||c==="className"){typeof u=="function"?a.push(C(()=>{B(t,"attribute","class",u),Ot(t,u())})):Ot(t,u);continue}if(c==="classList"){Tt(t,"class",u),typeof u=="function"?a.push(C(()=>{B(t,"attribute","class",u),Et(t,u())})):Et(t,u,a);continue}if(c==="style"){Tt(t,"style",u),typeof u=="function"?a.push(C(()=>{B(t,"attribute","style",u),Ct(t,u())})):Ct(t,u);continue}if(c.startsWith("on")){let d=c.slice(2).toLowerCase();l&&si(t,d),u&&iu(t,d,u);continue}let f=ni.has(c)||!s&&c in t;typeof u=="function"?a.push(f?Ir(t,c,u):Mr(t,c,u,s)):a.push(C(()=>f?ke(t,c,r[c]):E(t,c,r[c],s)))}for(let c in n)if(!(c in r))if(c.startsWith("on")){let u=c.slice(2).toLowerCase();si(t,u)}else ni.has(c)?ke(t,c,null):t.removeAttribute(c);return()=>{a.forEach(c=>c())}}function uu(e,t,r=!1){for(let n in t){let o=t[n];if(n==="ref"){Fr(o,e);continue}if(n!=="children"){if(n==="use"){_i(e,o);continue}if(n.startsWith("on:")){xi(e,n.slice(3),o);continue}if(n.startsWith("prop:")){J(e,"prop",n.slice(5),o),Ir(e,n.slice(5),o);continue}if(n.startsWith("attr:")){J(e,"attr",n.slice(5),o),Mr(e,n.slice(5),o,r);continue}if(n.startsWith("bool:")){J(e,"bool",n.slice(5),o),Ti(e,n.slice(5),o);continue}if(n.startsWith("on")&&n.length>2){let i=n.slice(2).toLowerCase();if(typeof o=="function")if(Wr.has(i)){e[`$$${i}`]=o;let s=`__fx_${i}`;if(!e[s]){let a=c=>{e[`$$${i}`]?.(c)};e.addEventListener(i,a),e[s]=a}}else e[`$$${i}`]=o,kt.has(i)||pe([i]);continue}if(n==="class"||n==="className"){Ot(e,o);continue}if(n==="classList"){Tt(e,"class",o),typeof o=="function"?C(()=>{B(e,"attribute","class",o),Et(e,o())}):Et(e,o);continue}if(n==="style"){Tt(e,"style",o),typeof o=="function"?C(()=>{B(e,"attribute","style",o),Ct(e,o())}):Ct(e,o);continue}if(n==="innerHTML"){if(typeof o=="function"){let i=x(()=>{let s=o();for(;typeof s=="function";)s=s();e.innerHTML=s});S(()=>i())}else e.innerHTML=o;continue}if(n==="value"&&(e.tagName==="INPUT"||e.tagName==="TEXTAREA")){if(typeof o=="function"){let i=x(()=>{let s=o();for(;typeof s=="function"&&s.length===0;)s=s();document.activeElement!==e&&(e.value=s??"")});S(()=>{i()})}else C(()=>{document.activeElement!==e&&(e.value=t[n]??"")});continue}if(n==="checked"&&e.tagName==="INPUT"){if(typeof o=="function"){let i=x(()=>{let s=o();for(;typeof s=="function"&&s.length===0;)s=s();document.activeElement!==e&&(e.checked=s??"")});S(()=>{i()})}else C(()=>{document.activeElement!==e&&(e.checked=t[n]??"")});continue}if(n==="value"&&e.tagName==="SELECT"){if(typeof o=="function"){let i=!0,s=x(()=>{let a=o();for(;typeof a=="function"&&a.length===0;)a=a();i?(i=!1,queueMicrotask(()=>{e.value=a??""})):e.value=a??""});S(()=>{s()})}else{let i=!0;C(()=>{let s=t[n];i?(i=!1,queueMicrotask(()=>{e.value=s??""})):e.value=s??""})}continue}if(typeof o=="function"){let i=x(()=>{let s=o();for(;typeof s=="function"&&s.length===0;)s=s();ri(e,n,s,r)});S(()=>{i()})}else C(()=>ri(e,n,t[n],r))}}}function Fr(e,t){if(!e)return;let r=e[Si]?.name;if(J(t,"ref",r||typeof e=="function"&&e.name||"ref",e),Vr(e)){let n=t,o=e;if(!n)return;typeof n=="function"?n(o):typeof n=="object"&&"current"in n&&(n.current=o);return}typeof e=="function"?e(t):typeof e=="object"&&"current"in e&&(e.current=t)}function fu(e){return e==="svg"||e==="path"||e==="circle"||e==="rect"||e==="line"||e==="polygon"||e==="polyline"||e==="ellipse"||e==="g"||e==="defs"||e==="clipPath"||e==="text"}function xt(e){return e!=null&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"||e instanceof Promise}function jr(e,t,r){if(!t)throw new Error("Container element is required");let n,o,i=[];return V(s=>{$(()=>{v.active||(t.textContent=""),Pt(t),$t(),j(t,e)}),o=s}),()=>{o?.(),n?.(),i.forEach(s=>s()),t.textContent=""}}function U(e,t){if(ai.fn)return ai.fn(e,t);t&&Uo(t);let r=typeof e=="function"?Xo(()=>e(t)):e,n=r!=null&&(typeof r=="function"||typeof r=="object");if(n)try{r.$name=e?.name}catch{}return n&&!Go(r)?Ve(r):r}function Hr(){let e=globalThis.__FX_DATA__;if(e)return e;if($r!==void 0)return $r;let t=null;if(typeof document<"u"){let r=document.getElementById(du)?.textContent;if(r)try{t=JSON.parse(r)}catch{t=null}}return $r=t}function Mt(){for(;;){for(;v.cursor&&v.cursor.nodeType===3&&v.cursor.data==="";)v.cursor=v.cursor.nextSibling;if(v.cursor!=null||!v.parents.length)return;v.cursor=v.parents.pop().nextSibling}}function Lt(e,t){let r=t.nodeType===1?`<${t.tagName.toLowerCase()}>`:t.nodeType===3?`text ${JSON.stringify((t.nodeValue??"").slice(0,24))}`:t.nodeType===8?"comment":"node";console.warn(`[fluixi] hydration mismatch: expected ${e} but the server DOM has ${r}. Server and client rendered different markup; recreating this node on the client. Check for non-deterministic render (Date.now(), Math.random(), browser-only branches, untransported data).`)}function hu(e){Mt();let t=v.cursor;return t&&t.nodeType===1&&t.tagName.toLowerCase()===e.toLowerCase()?(pu.has(e.toLowerCase())?v.cursor=t.nextSibling:(v.parents.push(t),v.cursor=t.firstChild),t):(It&&t&&Lt(`<${e}>`,t),null)}function yu(e){Mt();let t=v.cursor;return t&&t.nodeType===1&&t.tagName.toLowerCase()===e.toLowerCase()?(v.cursor=t.nextSibling,t):(It&&t&&Lt(`<${e}> (static)`,t),null)}function mu(e){if(e===""){let r=v.cursor;return r&&r.nodeType===3&&r.data!==""?(v.cursor=r.nextSibling,r.data="",r):null}Mt();let t=v.cursor;return t&&t.nodeType===3?(v.cursor=t.nextSibling,t.nodeValue!==e&&(t.nodeValue=e),t):(It&&t&&Lt(`text ${JSON.stringify(e.slice(0,24))}`,t),null)}function gu(e){Mt();let t=v.cursor;return t&&t.nodeType===8&&t.data===e?(v.cursor=t.nextSibling,t):(It&&t&&Lt(`marker <!--${e.slice(0,24)}-->`,t),null)}function vu(){ci||(ci=!0,tu({hydrateElement:hu,hydrateText:mu,hydrateMarker:gu,hydrateStatic:yu}))}function Dt(e,t,r){vu(),v.active=!0,v.cursor=t.firstChild,v.parents=[];let n=Hr(),o=r?.resourceNamespace,i=0;Xn(()=>o?`${o}:r${i++}`:`r${i++}`),Jn(n?s=>s in n?{value:n[s]}:void 0:null);try{return jr(e,t)}finally{v.active=!1,v.cursor=null,v.parents=[]}}function Ei(e,t={}){if(typeof e=="function")return U(e,t);if(typeof e!="string"||e.length===0)return null;let r=fu(e);if(L())return qr().createElement(e,r);let n=r?document.createElementNS(Dr,e):document.createElement(e);return uu(n,t,r),wu(n,t),n}function wu(e,t){if(!t||t.children===void 0)return;let r=fe(()=>t.children),n=o=>{j(e,o,typeof o=="function"?null:void 0)};Array.isArray(r)?r.forEach(n):n(r)}function bu(e){return typeof e=="function"?e:(()=>e)}function qt(e){return()=>{let t=e();return typeof t=="function"?t():t}}function Au(e){return e!=null&&e!==!1}function Su(e){return!e||typeof e!="object"?!1:!!(typeof e._$litType$<"u"||typeof e._$litDirective$<"u"||Array.isArray(e.strings)&&Array.isArray(e.values))}function Ci(e){let t=qt(()=>e.when),r=m(t,void 0,{name:"Show.when"}),n=m(r,void 0,{name:"Show.cond"}),o=N(),i=null,s=null,a=c=>{c!==s&&(i&&ve(i),i=ge(o),s=c)};return m(()=>{let c=n();return a(c?"when":"fallback"),I(i,()=>{if(c){let u=e.children;return typeof u=="function"&&!Su(u)?typeof r=="function"?O(()=>O(r)?u(r()):e.fallback):u(r):u}return e.fallback});return e.fallback??null},void 0,{name:"Show.result"})}function Ri(e){let t=qt(()=>e.each),r=()=>e.fallback??null,n=(o,i)=>{let s=e.children,a=Array.isArray(s)?s.map(c=>typeof c=="function"?c(o,i):c):typeof s=="function"?s(o,i):s;return Ai(a),a};return e.by?zn(t,e.by,(o,i)=>n(o,i),{fallback:r}):Un(t,(o,i)=>n(o,i),{fallback:r})}function Pi(e){let t=qt(()=>e.each);return Bn(t,(r,n)=>{let o=e.children(r,n);return Ai(o),o},{fallback:()=>e.fallback??null})}function $i(e){return{[Lr]:!0,when:qt(()=>e.when),get children(){return e.children}}}function Ni(e){let t=Array.isArray(e.children)?e.children:[e.children],r=N(),n=null,o=-1,i=s=>{s!==o&&(n&&ve(n),n=ge(r),o=s)};return m(()=>{for(let s=0;s<t.length;s+=1){let c=t[s],u=0;for(;typeof c=="function"&&!c[Lr]&&u++<10;)c=c();if(!c||typeof c!="object"||c[Lr]!==!0)continue;let l=c.when();if(Au(l))return i(s),I(n,()=>typeof c.children=="function"?c.children(l):c.children)}return i(-2),I(n,()=>e.fallback??null)},void 0,{name:"Switch"})}function Mi(e){let t=bu(e.component),{component:r,...n}=e,o=N(),i=null,s;return m(()=>{let a=t();return a!==s&&(i&&ve(i),i=ge(o),s=a),a==null?null:typeof a=="string"?{tag:a,props:n}:I(i,()=>a(n))},void 0,{name:"Dynamic"})}function Ii(e){let t=()=>e.mount?typeof e.mount=="function"?e.mount():e.mount:document.body,r,n;return V(o=>{r=o,n=document.createElement("div"),n.style.display="contents",t().appendChild(n),j(n,e.children)&&Fr(e.ref,n)}),S(()=>{r(),n.remove()}),null}function Kr(e){if(L())return e.fallback??null;let t=v.active,[r,n]=w(!t);return t&&queueMicrotask(()=>n(!0)),m(()=>r()?e.children:e.fallback??null,void 0,{name:"client-only"})}function Di(e){let[t,r]=w(null),n=()=>r(null);return m(()=>{let o=t();if(o!==null)return typeof e.fallback=="function"?e.fallback(o,n):e.fallback;try{return typeof e.children=="function"?e.children():e.children}catch(i){return r(i),typeof e.fallback=="function"?e.fallback(i,n):e.fallback}},void 0,{name:"ErrorBoundary"})}function qi(e){return m(()=>{let t=typeof e=="function"?e():e,r=[];for(let[n,o]of Object.entries(t)){if(!n)continue;(typeof o=="function"?o():o)&&r.push(n)}return r.join(" ")},void 0,{name:"ClassMap"})}function xu(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Vi(e){return m(()=>{let t=typeof e=="function"?e():e,r=[];for(let[n,o]of Object.entries(t)){if(!n)continue;let i=typeof o=="function"?o():o;i!=null&&r.push(`${xu(n)}: ${i}`)}return r.join("; ")},void 0,{name:"StyleMap"})}var Dr,ni,el,Hc,F,Nt,Yc,Zc,Nr,v,gi,ru,Si,nu,kt,Wr,Q,su,lu,ai,du,$r,pu,It,ci,Lr,Li,ku,P=q(()=>{"use strict";A();Ro();A();A();ti();A();A();A();A();A();A();A();A();A();A();A();A();Dr="http://www.w3.org/2000/svg";ni=new Set(["className","value","checked","selected","innerHTML","innerText","textContent","indeterminate","htmlFor"]);el=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;Hc="1.0.0-alpha.86",F={dom:Hc,reactive:Co};Nt=Symbol.for("fluixi.server-node"),Yc=Symbol.for("fluixi.dom.server-host"),Zc=globalThis,Nr=Zc[Yc]??={server:typeof document>"u",nodes:null};v={active:!1,cursor:null,parents:[]},gi=null;ru={},Si="__fx_at",nu="__fx_loc";kt=new Set,Wr=new Set(["scroll","focus","blur","load","error","resize","mouseenter","mouseleave","pointerenter","pointerleave","gotpointercapture","lostpointercapture"]);Q=0,su=200;lu="__fx_dom_create_component__",ai=globalThis[lu]??={fn:null};du="__FX_DATA__";pu=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),It=typeof process<"u"&&process.env&&!1;ci=!1;Lr=Symbol("match");Li=Kr;ku=Nt});function Ki(e){if(e!=null&&(typeof e=="object"||typeof e=="function"))try{e.$lazy=!0}catch{}return e}function Oe(e,t){let r,n,o;function i(){return n||(n=e().then(a=>r=a.default)),n}t?.preload&&i();let s=(a=>{if(r){let c=r;return Ki(O(()=>c(a)))}if(!o){let[c]=ne(()=>i(),{transport:!1});if(o=c,c.error)throw c.error}return m(()=>{let c=o();return c?Ki(U(c,a)):void 0})});return s.preload=()=>i().then(()=>{}),s.$lazy=!0,s.loader=e,s}var zt=q(()=>{"use strict";P();A()});function Cu(){Xi||(Xi=!0,!(typeof process<"u")&&console.warn("[fluixi] createProvider({ context, value, children }) reads `children` eagerly: the object literal materialises `children` BEFORE the context is stamped, so a routed <Outlet/> that has siblings inside the provider renders detached and its descendants see no context under SSR. Use the lazy form instead:\n createProvider(Context, value, props) // children stays a getter\n // or JSX: <Context.Provider value={...}>{props.children}</Context.Provider>"))}function Bt(e,t,r){let n=!!e?.Provider,o=n?e:e.context,i=n?t:e.value,s=n?!1:e.debug??!1;n||Cu();let a=typeof i=="function"?i():i,c=n?r:e;return o.Provider({value:a,get children(){return c?.children},debug:s})}function Gi(e){let t=Ce(e);return[t,n=>Bt(t,n.value,n)]}function Gr(e,t){if(e.length===0)return fe(()=>t);let[r,n]=e[0],o=e.slice(1);return Bt(r,n,{get children(){return Gr(o,t)}})}function Yi(e){return t=>{let r=Re(e);return t.children(r)}}function Zi(e,t){let r=Re(e);return r===e.defaultValue?t():r}function Ce(e,t){let r=X(e,t),n=o=>(o.debug,r.Provider({value:o.value,get children(){return o.children},debug:o.debug}));return typeof Symbol<"u"&&Symbol.for&&(n.$$typeof=Symbol.for("react.provider")),n.$$typeof=Symbol.for("react.provider"),{id:r.id,Provider:hi(n),defaultValue:e}}function Re(e){let t=K(e);return t!==void 0?t:e.defaultValue}var Xi,Yr=q(()=>{"use strict";P();A();A();Xi=!1});function ss(){return is}function en(e){is=e}function as(e,t){Jt.set(e,t)}function cs(e){return Jt.get(e)}function Lu(){Jt.clear()}function us(){if(typeof window>"u")return!1;let e=document.getElementById("__FLUIXI_HYDRATION__");if(!e||e.getAttribute("type")!=="application/json")return!1;try{let t=e.textContent||"{}",r=JSON.parse(t);for(let[n,o]of Object.entries(r))Jt.set(n,o);return!0}catch(t){return console.error("Failed to deserialize hydration data:",t),!1}}function tn(){if(typeof window>"u")return;let e=document.getElementById("__FLUIXI_HYDRATION__");e&&e.remove();let t=document.createTreeWalker(document.body,NodeFilter.SHOW_COMMENT,null),r=[],n;for(;n=t.nextNode();){let o=n,i=o.nodeValue||"";(i.startsWith("#")||i.startsWith("/"))&&r.push(o)}r.forEach(o=>o.remove()),Lu()}function fs(){return L()}var is,Jt,rn=q(()=>{"use strict";P();is=!1,Jt=new Map;typeof window<"u"&&window.addEventListener("load",()=>{setTimeout(tn,100)})});function sn(){return typeof document<"u"&&typeof document.startViewTransition=="function"}function an(){if(typeof window>"u"||typeof window.matchMedia!="function")return!1;try{return window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{return!1}}function of(e){return e!=="none"&&sn()&&!an()}function gs(e){let t=[];for(let r of e){let n=r?.preload;if(typeof n=="function")try{let o=n();o&&typeof o.then=="function"&&t.push(o.catch(()=>{}))}catch{}}return t.length?Promise.all(t).then(()=>{}):null}function cn(e,t){if(!of(e))return Promise.resolve(t()).then(()=>{});let r=document.startViewTransition;try{let n=r.call(document,()=>t());return n.finished?.catch(()=>{}),n.ready?.catch(()=>{}),n.updateCallbackDone.catch(()=>{})}catch{return Promise.resolve(t()).then(()=>{})}}var un=q(()=>{"use strict"});function Gt(e,t,r={}){let{preserveStructure:n,multiple:o,throwOnError:i=!1,defaultValue:s,maxDepth:a=20}=r;if(!e||typeof e!="object")return s;if(!t)return e;if(Array.isArray(t))if(n){let l={};for(let f of t){let d=Gt(e,f,{...r,preserveStructure:!1});d!==void 0&&af(l,f,d)}return l}else return t.map(l=>Gt(e,l,{...r,preserveStructure:!1}));let c=fn(t,{...r,throwOnError:i});if(c.length===0)return e;if(typeof n>"u"||n===!1){let l=cf(e,t);return o===!1&&Array.isArray(l)?l[0]:l===void 0&&s!==void 0?s:l}let u=z(e,c,0,a);return u===void 0&&s!==void 0?s:u}function cf(e,t,r={}){let{createMissing:n=!1,add:o=!1,debug:i=!1}=r,s=fn(t),a=e,c=!1,u="",l=t;if(typeof a=="object"&&!Array.isArray(a)&&l.length>0&&a[l])return a=a[l],a;for(let f=0;f<s.length;f++){let d=s[f],g=s.length>1?f===s.length-1:!1;if(a===null&&!n)return;let h=s[f+1];switch(d.type){case"property":if(a&&typeof a=="object")if(Array.isArray(a)){if(typeof d.value=="number"){let p=d.value;if(n&&p>=a.length)for(let b=a.length;b<=p;b++)a.push(void 0);if(n&&(a[p]===null||a[p]===void 0)&&(!g||c)&&(h?a[p]=h.type==="index"||h.type==="slice"||h.type==="union"||h.type==="wildcard"?[]:{}:a[p]=null,c=!1),a=a[p],h){c=!0;continue}}else o?a.push({[String(d.value)]:null}):a=a.map(p=>p[String(d.value)]);if(h)continue;return vs(a)}else{if(a[u]&&u.split(".").length>=2){a=a[u];continue}if(n&&(a[String(d.value)]===null||a[String(d.value)]===void 0)&&(!g||c)&&(h?a[String(d.value)]=h.type==="index"||h.type==="slice"||h.type==="union"||h.type==="wildcard"?[]:{}:a[String(d.value)]=null,c=!1,a=a[String(d.value)],h)){c=!0;continue}if(a?(!a[String(d.value)]&&n&&(a[String(d.value)]=null),a=a[String(d.value)]):a={[String(d.value)]:null},h)continue}else if(n)a={},a[String(d.value)]=h.type==="index"||h.type==="slice"||h.type==="union"||h.type==="wildcard"||r.type==="array"?[]:{},a=a[String(d.value)];else return;break;case"index":case"wildcard":if(Array.isArray(a)){if(d.type==="index"){let p=d.value;if(p<0){a=a[a.length-Math.abs(p)];continue}if(n&&(p>=a.length||a[p]==null||a[p]==null)&&!g){for(let b=a.length;b<=p;b++)a.push(void 0);h&&(a[p]=h.type==="index"||h.type==="slice"||h.type==="union"||h.type==="wildcard"?[]:{})}a=a[p]}else if(!g)continue}else if(n){let p=s[f+1];a=[];let b=d.value;for(let T=0;T<=b;T++)a.push(void 0);a[b]=p.type==="index"||p.type==="slice"||p.type==="union"||p.type==="wildcard"||r.type==="array"?[]:{},a=a[b]}else{if(d.type==="index"&&typeof a=="object"&&a&&a[String(d.value)]!==void 0){a=a[String(d.value)];continue}if(typeof a=="object"){a=Object.values(a);continue}return}break;default:return}}return vs(a)}function vs(e){return Array.isArray(e)?e.filter(t=>typeof t<"u"):e}var Yt,z,fn,sf,af,ln=q(()=>{"use strict";Yt=e=>e==null||Array.isArray(e)||typeof e=="function"||e instanceof Date||e instanceof RegExp||e instanceof Map||e instanceof Set||e instanceof Error?!1:typeof e=="object",z=(e,t,r,n)=>{if(r>n)return;if(t.length===0)return e;let o=t[0],i=t.slice(1);if(o.type==="descendant"){let s=z(e,i,r+1,n);if(s!==void 0)return s;if(e&&typeof e=="object")if(Array.isArray(e)){let a=[];for(let c=0;c<e.length;c++){let u=z(e[c],t,r+1,n);u!==void 0&&(a[c]=u)}return a.length>0?a:void 0}else{let a={};for(let c in e)if(e.hasOwnProperty(c)){let u=z(e[c],t,r+1,n);u!==void 0&&(a[c]=u)}return Object.keys(a).length>0?a:void 0}return}switch(o.type){case"property":if(Yt(e)&&o.value&&String(o.value)in e){let s=e[String(o.value)],a=z(s,i,r+1,n);if(a!==void 0)return{[String(o.value)]:a}}break;case"index":if(Array.isArray(e)){let s=o.value;if(s>=0&&s<e.length){let a=z(e[s],i,r+1,n);if(a!==void 0){let c=new Array(e.length).filter(u=>u!==void 0);return c[s]=a,c}}}else if(e&&typeof e=="object"){let s=String(o.value);if(s in e){let a=z(e[s],i,r+1,n);if(a!==void 0)return{[s]:a}}}break;case"wildcard":if(e&&typeof e=="object")if(Array.isArray(e)){let s=[],a=!1;for(let c=0;c<e.length;c++){let u=z(e[c],i,r+1,n);u!==void 0&&(s[c]=u,a=!0)}return a?s:void 0}else{let s={},a=!1;for(let c in e)if(e.hasOwnProperty(c)){let u=z(e[c],i,r+1,n);u!==void 0&&(s[c]=u,a=!0)}return a?s:void 0}break;case"slice":if(Array.isArray(e)){let[s,a]=o.value,c=Math.max(0,s),u=Math.min(e.length,a===1/0?e.length:a),l=[],f=!1;for(let d=c;d<u;d++){let g=z(e[d],i,r+1,n);g!==void 0&&(l[d]=g,f=!0)}return f?l:void 0}break;case"union":if(Array.isArray(e)){let s=o.value,a=[],c=!1;for(let u of s)if(u>=0&&u<e.length){let l=z(e[u],i,r+1,n);l!==void 0&&(a[u]=l,c=!0)}return c?a:void 0}break;case"filter":if(Array.isArray(e)){let s=o.value,a=[],c=!1;for(let u=0;u<e.length;u++)if(s(e[u])){let l=z(e[u],i,r+1,n);l!==void 0&&(a[u]=l,c=!0)}return c?a:void 0}break}},fn=(e,t={})=>{let{type:r="auto",throwOnError:n=!1}=t;if(!e||typeof e!="string")return[];let o=[],i="",s=!1,a=!1,c="",u="",l=0,d=r==="auto"?(h=>h.includes("..")?"descendant":h.includes("[?(")?"filter":h.includes("[:")||h.includes("[0:")?"slice":h.includes("[,")||h.includes("[0,1]")?"union":h.includes("[*]")||h.includes(".*.")?"wildcard":h.includes("[]")?"array-wildcard":h.includes("[")&&h.includes("]")?"bracket":"dot")(e):r,g=h=>{let p=h.trim();if(p==="*"||p==="")return{type:"wildcard",value:p===""?"[]":"*",raw:p===""?"[]":h};if(p==="[]")return{type:"wildcard",value:"[]",raw:h};if(/^-?\d+$/.test(p))return{type:"index",value:parseInt(p,10),raw:h};if(p.includes(":")){let b=p.split(":").map(ce=>ce.trim()),T=b[0]===""?0:parseInt(b[0],10),_=b[1]===""?1/0:parseInt(b[1],10);if(isNaN(T)||isNaN(_)){if(n)throw new Error(`Invalid slice notation: ${h}`);return{type:"wildcard",value:"*",raw:h}}return{type:"slice",value:[T,_],raw:h}}if(p.includes(",")){let b=p.split(",").map(T=>{let _=parseInt(T.trim(),10);return isNaN(_)?-1:_}).filter(T=>T>=0);if(b.length===0){if(n)throw new Error(`Invalid union notation: ${h}`);return{type:"wildcard",value:"*",raw:h}}return{type:"union",value:b,raw:h}}if(p.startsWith("?(")&&p.endsWith(")")){let b=p.slice(2,-1);try{return{type:"filter",value:sf(b),raw:h}}catch(T){if(n)throw T;return{type:"wildcard",value:"*",raw:h}}}return p.startsWith('"')&&p.endsWith('"')||p.startsWith("'")&&p.endsWith("'")?{type:"property",value:p.slice(1,-1),raw:h}:{type:"property",value:p,raw:h}};for(let h=0;h<e.length;h++){let p=e[h],b=e[h+1];if((p==='"'||p==="'")&&!a){a=!0,c=p;continue}else if(p===c&&a){a=!1,c="",p==='"'||p==="'"||(s?u+=p:i+=p);continue}if(a){s?u+=p:i+=p;continue}if(p==="["&&!s){i&&(o.push({type:"property",value:i,raw:i}),i=""),s=!0,u="";continue}if(p==="]"&&s&&!a){s=!1;let _=g(u);o.push(_);continue}let T=o.length>0?o[o.length-1]:null;if(p==="."&&!s&&!a){if(b==="."){let _=e.split("..")[0];o.push({type:"property",value:_,raw:_}),o.push({type:"descendant",value:"..",raw:".."}),h++}else i&&(i==="*"?o.push({type:"wildcard",value:i,raw:i}):o.push({type:"property",value:i,raw:i}),i="");continue}if(s)u+=p;else if(T&&T.type!=="descendant")i+=p;else{let _=e.split(T?.raw)[1];_!==void 0?i=_:i+=p}}return i&&o.push({type:"property",value:i,raw:i}),o.map(h=>{if(h.type==="property"&&typeof h.value=="string"&&/^-?\d+$/.test(h.value)){let p=parseInt(h.value,10);if(!isNaN(p))return{...h,type:"index",value:p}}return h})},sf=e=>{let t=e.replace(/@\.([a-zA-Z_$][\w$]*)/g,(r,n)=>`item.${n}`).replace(/@/g,"item");try{return new Function("item",`return ${t}`)}catch{throw new Error(`Invalid filter expression: ${e}`)}},af=(e,t,r)=>{let n=fn(t),o=e;for(let i=0;i<n.length;i++){let s=n[i],a=i===n.length-1;switch(s.type){case"property":if(a)o[String(s.value)]=r;else{if(!o[String(s.value)]){let u=n[i+1];o[String(s.value)]=u.type==="index"||u.type==="slice"||u.type==="union"||u.type==="wildcard"?[]:{}}o=o[String(s.value)]}break;case"index":Array.isArray(o)||(o=[]);let c=s.value;if(a){if(c>=o.length)for(let u=o.length;u<=c;u++)o.push(void 0);o[c]=r}else{if(!o[c]){let u=n[i+1];o[c]=u.type==="index"||u.type==="slice"||u.type==="union"||u.type==="wildcard"?[]:{}}o=o[c]}break;case"wildcard":if(Array.isArray(o))if(a)for(let u=0;u<o.length;u++)o[u]=r;else{let u=n[i+1];for(let l=0;l<o.length;l++)o[l]||(o[l]=u.type==="index"||u.type==="slice"||u.type==="union"||u.type==="wildcard"?[]:{});o.length>0&&(o=o[0])}break}}}});function uf(e,t,r){let n=new Uint8Array(t.length);e:for(let o=0;o<e.length;o++){for(let i=0;i<t.length;i++)if(!n[i]&&ye(e[o],t[i],r)){n[i]=1;continue e}return!1}return!0}var ye,ws=q(()=>{"use strict";ln();ye=(e,t,r={})=>{if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t)return!1;let n=Array.isArray(e),o=Array.isArray(t);if(n!==o)return!1;if(n&&o)return e.length!==t.length?!1:r.unordered?uf(e,t,r):e.every((p,b)=>ye(p,t[b],r));if(typeof e!="object")return e===t;let i=e instanceof Date,s=t instanceof Date;if(i!==s)return!1;if(i)return e.getTime()===t.getTime();let a=e instanceof RegExp,c=t instanceof RegExp;if(a!==c)return!1;if(a)return e.toString()===t.toString();let u=e instanceof Map,l=t instanceof Map;if(u!==l)return!1;if(u){if(e.size!==t.size)return!1;for(let[p,b]of e)if(!t.has(p)||!ye(b,t.get(p),r))return!1;return!0}let f=e instanceof Set,d=t instanceof Set;if(f!==d)return!1;if(f){if(e.size!==t.size)return!1;let p=[...t],b=new Uint8Array(p.length);e:for(let T of e){for(let _=0;_<p.length;_++)if(!b[_]&&ye(T,p[_],r)){b[_]=1;continue e}return!1}return!0}if(!Yt(e)||!Yt(t))return!1;let g=Object.keys(e),h=Object.keys(t);if(g.length!==h.length)return!1;for(let p of g)if(!Object.prototype.hasOwnProperty.call(t,p)||!ye(e[p],t[p],r))return!1;return!0}});function ff(e){return e.startsWith("//")?e.replace(/^\/+/,"/"):e}function Ke(e,t,r=!1){let n=[];if(e===t)return{params:{},path:t};if(!r&&e==="/"&&t.startsWith("/"))return{params:{},path:"/"};let o=e.replace(/:([a-zA-Z0-9_]+)/g,(c,u)=>(n.push(u),"([^/]+)")).replace(/\*([a-zA-Z0-9_]*)/g,(c,u)=>(u&&n.push(u),"(.*)"));o.startsWith("/")||(o="/"+o),o===""&&(o="/");let i=new RegExp(`^${o}${r?"$":"(?=/|$)"}`),s=t.match(i);if(!s)return null;let a={};return n.forEach((c,u)=>{a[c]=s[u+1]}),{params:a,path:s[0]}}function bs(e){let t=e.path.split("/").filter(Boolean);if(t.length===0)return 5;let r=0;for(let n of t)n.startsWith("*")?r+=1:n.startsWith(":")?r+=10:r+=100;return r}function lf(e){return[...e].sort((t,r)=>bs(r)-bs(t))}function Ue(e,t){let r=t.length>1?t.replace(/\/+$/,"")||"/":t,n=As(e,r);if(!n)return null;let o=[],i="",s={};for(let a of n.layers){i=ff(df(i,a.consumed));let c={};for(let[u,l]of Object.entries(a.params))u in s||(c[u]=l),s[u]=l;o.push({route:a.route,component:a.route.component,params:c,pathname:i||"/"})}return{matched:o,params:s,pathname:t}}function As(e,t){if(!e||e.length===0)return null;let r=lf(e);for(let n of r){let o=!!n.children&&n.children.length>0,i=Ke(n.path,t,!o);if(i){if(o){let s=As(n.children,t);if(s)return{layers:[{route:n,params:i.params,consumed:i.path},...s.layers]};continue}return{layers:[{route:n,params:i.params,consumed:i.path}]}}}return null}function df(e,t){if(!e)return t;if(t===e)return e;if(t.startsWith(e))return t;let r=e.replace(/\/$/,""),n=t.replace(/^\//,"");return`${r}/${n}`}function pf(e){let t=e,r="",n=t.indexOf("#");n!==-1&&(r=t.slice(n),t=t.slice(0,n));let o="",i=t.indexOf("?");return i!==-1&&(o=t.slice(i),t=t.slice(0,i)),{pathname:t||"/",search:o,hash:r}}function Zt(e="/"){let t=[{path:e,state:null}],r=0,n=new Set,o=()=>n.forEach(i=>i());return{get(){let{path:i,state:s}=t[r];return{...pf(i),state:s}},push(i,s=null){t=t.slice(0,r+1),t.push({path:i,state:s}),r=t.length-1,o()},replace(i,s=null){t[r]={path:i,state:s},o()},subscribe(i){return n.add(i),()=>n.delete(i)}}}function $e(){let e=typeof window<"u"?window:void 0,t=new Set,r=()=>t.forEach(n=>n());return e&&e.addEventListener("popstate",r),{get(){if(!e)return{pathname:"/",search:"",hash:"",state:null};let{pathname:n,search:o,hash:i}=e.location;return{pathname:n,search:o,hash:i,state:e.history.state??null}},push(n,o=null){e?.history.pushState(o,"",n),r()},replace(n,o=null){e?.history.replaceState(o,"",n),r()},subscribe(n){return t.add(n),()=>t.delete(n)}}}function hf(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((n,o)=>t[o]=n),t}function yf(e,t){if(!t)return e||"/";let r=t.replace(/\/$/,"");return e===r?"/":e.startsWith(r+"/")?e.slice(r.length)||"/":e||"/"}function mf(e,t){return!t||/^https?:\/\//.test(e)?e:`${t.replace(/\/$/,"")}${e.startsWith("/")?e:"/"+e}`}function Ss(e){let{routes:t,history:r,base:n}=e,o=new Set,i=()=>{let l=r.get();return{pathname:l.pathname,search:l.search,hash:l.hash,state:l.state,query:hf(l.search)}},s=l=>Ue(t,yf(l,n)),a=(()=>{let l=i();return{location:l,match:s(l.pathname)}})(),c=()=>{let l=i();a={location:l,match:s(l.pathname)},o.forEach(f=>f(a))},u=r.subscribe(c);return{state(){return a},subscribe(l){return o.add(l),()=>o.delete(l)},navigate(l,f={}){let d=mf(l,n);f.replace?r.replace(d,f.state??null):r.push(d,f.state??null)},match(l){return s(l)},destroy(){u(),o.clear()}}}var dn=q(()=>{"use strict";});function xs(e,t){return async(...r)=>{let n=t+":"+JSON.stringify(r);if(ss()||typeof window<"u"){let i=cs(n);if(i!==void 0)return i}if(Be.has(n))return Be.get(n);if(ze.has(n))return ze.get(n);let o=Promise.resolve(e(...r)).then(i=>(Be.set(n,i),ze.delete(n),fs()&&as(n,i),i),i=>{throw ze.delete(n),i});return ze.set(n,o),o}}function ks(e){let t=typeof e=="string"?r=>r.startsWith(e):e;for(let r of Be.keys())t(r)&&(Be.delete(r),vf.add(r));gf(r=>r+1)}function _s(e,t){let[r]=ne(t||(()=>!0),e);return r}function Ts(e){return pn.has(e)||pn.set(e,w(void 0)),pn.get(e)}function hn(e,t){let r=t||e.name||"action",n=async o=>{let[,i]=Ts(r),s=()=>i(void 0),a=()=>n(o);i({input:o,pending:!0,clear:s,retry:a});try{let c=await e(o);return i({input:o,result:c,pending:!1,clear:s,retry:a}),c}catch(c){throw i({input:o,error:c,pending:!1,clear:s,retry:a}),c}};return n.url=r,n.with=o=>hn((...i)=>e(o,...i),t),n}function Os(e){let[t]=Ts(e.url);return t}function Es(e){return e}var Be,ze,ap,gf,vf,pn,wf,cp,Cs=q(()=>{"use strict";A();rn();Yr();Be=new Map,ze=new Map;[ap,gf]=w(0),vf=new Set;pn=new Map;wf=Ce(void 0,"route-data"),cp=wf.Provider});var Ms={};_n(Ms,{A:()=>An,Form:()=>Rf,Link:()=>tr,Outlet:()=>mn,Redirect:()=>gn,Router:()=>yn,action:()=>hn,cache:()=>xs,createAsync:()=>_s,createBrowserHistory:()=>$e,createMemoryHistory:()=>Zt,lazy:()=>Oe,matchPath:()=>Ke,matchRoutes:()=>Ue,prefersReducedMotion:()=>an,preloadRoutes:()=>Pf,revalidate:()=>ks,runWithOwner:()=>I,select:()=>Tf,supportsViewTransitions:()=>sn,useAction:()=>Es,useLevelParams:()=>kf,useLinkNavigation:()=>Of,useLocation:()=>Ge,useMatch:()=>wn,useNavigate:()=>er,useParam:()=>vn,useParamSelector:()=>_f,useParams:()=>Xe,useRouteData:()=>Ef,useRouter:()=>Ne,useSearchParams:()=>bn,useSubmission:()=>Os});function bf(e,t,r){let n,o=e.route.data;if(typeof o=="function"){let l=!1;S(()=>{l=!0});let f=N(),[d]=ne(()=>o({params:r.params,location:r.location},f,()=>l));n=d}let i=()=>$s.Provider({value:n,get children(){return Ps.Provider({value:e.params,get children(){return Rs.Provider({value:{depth:t,...r},get children(){return U(e.component,{})}})}})}});if(!n)return i();let s=n,a=()=>s.loading,[c,u]=w(O(()=>!a()));return x(()=>u(!a())),m(()=>c()?i():null)}function Ns(e){let t=e.depth+1,[r,n]=w(O(()=>e.matched()[t]?.component));return x(()=>{let o=e.matched()[t]?.component;O(r)!==o&&n(()=>o)}),m(()=>{if(!r())return e.notFound?e.notFound():null;let i=O(()=>e.matched())[t];return bf(i,t,{matched:e.matched,params:e.params,location:e.location})})}function Af(e){return e==null?Sf():typeof e=="function"?U(e,{}):e}function Sf(){let e=_e("div");E(e,"class","fx-not-found"),E(e,"role","main"),E(e,"style","min-height:60vh;display:grid;place-content:center;gap:.25rem;text-align:center;font-family:system-ui,-apple-system,sans-serif");let t=_e("h1");E(t,"style","margin:0;font-size:2.5rem;font-weight:700"),j(t,"404");let r=_e("p");return E(r,"style","margin:0;opacity:.7"),j(r,"This page could not be found."),e.appendChild(t),e.appendChild(r),e}function yn(e){let t=e.history??$e(),r=Ss({routes:e.routes,base:e.base,history:t}),[n,o]=w(r.state()),i=0,s=()=>{let d=Qt??e.transition??"auto";return Qt=void 0,d},a=r.subscribe(d=>{let g=++i,h=s(),p=gs((d.match?.matched??[]).map(T=>T.component).filter(Boolean)),b=()=>(o(d),Kn());if(!p){cn(h,b);return}p.then(()=>{if(g===i)return cn(h,b)})});S(()=>{a(),r.destroy(),i++});let c=m(()=>(n().match?.matched??[]).filter(d=>d.component)),u={router:r,location:m(()=>n().location),params:m(()=>n().match?.params??{})},l={depth:-1,matched:c,params:u.params,location:u.location,notFound:()=>Af(e.notFound)},f;return Je.Provider({value:u,get children(){return f??=Ns(l)}})}function mn(){let e=K(Rs);return e?Ns(e):null}function gn(e){let t=K(Je);if(t&&typeof window<"u"){let r=!1;S(()=>r=!0),queueMicrotask(()=>{r||t.router.navigate(e.to,{replace:e.replace!==!1})})}return null}function Ne(){let e=K(Je);if(e)return e;if(typeof window>"u")return xf;throw new Error("[router] useRouter must be used within <Router>")}function Xe(){let e=Ne().params;return m(()=>e(),{},{equals:(t,r)=>JSON.stringify(t)===JSON.stringify(r)})}function kf(){return K(Ps)??{}}function vn(e){let t=Xe();return m(()=>t()[e])}function _f(e,t){let r=Xe();return m(()=>e(r()),void 0,t?{equals:t}:void 0)}function wn(e){let t=Ge();return m(()=>Ke(typeof e=="function"?e():e,t.pathname))}function bn(){let e=Ge(),t=er();return[m(()=>e.query),(o,i)=>{let s=new URLSearchParams(e.search);for(let[c,u]of Object.entries(o))u===null?s.delete(c):s.set(c,u);let a=s.toString();t(e.pathname+(a?`?${a}`:""),i)}]}function Tf(e,t){let r=(n,o)=>ye(n,o);return t!==void 0?m(()=>Gt(e(),t),void 0,{equals:r}):m(e,void 0,{equals:r})}function Ge(){let{location:e}=Ne();return new Proxy({},{get:(t,r)=>e()[r],has:(t,r)=>r in e(),ownKeys:()=>Reflect.ownKeys(e()),getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(e(),r)})}function Of(e={}){let t=K(Je);return r=>{if(!t||r.defaultPrevented||r.button!==0||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey)return;let o=r.target?.closest?.("a");if(!o||!o.getAttribute("href")||o.target&&o.target!=="_self"||o.hasAttribute("download")||/(^|\s)external(\s|$)/.test(o.getAttribute("rel")??""))return;let i=new URL(o.href);i.protocol!=="http:"&&i.protocol!=="https:"||i.origin===window.location.origin&&(i.hash&&i.pathname===window.location.pathname&&i.search===window.location.search||e.shouldNavigate&&!e.shouldNavigate(i,o)||(r.preventDefault(),Qt=e.transition,t.router.navigate(i.pathname+i.search+i.hash,{replace:e.replace})))}}function er(){let{router:e}=Ne();return(t,r)=>{Qt=r?.transition,e.navigate(t,r)}}function Ef(){return K($s)??(()=>{})}function tr(e){let t=K(Je),r=()=>t?.router.navigate(te(e.href)??"",{replace:te(e.replace)}),n=_e("a");E(n,"href",te(e.href)??""),e.slot&&E(n,"slot",te(e.slot));for(let i of Object.keys(e)){if(Cf.has(i))continue;let s=e[i];s!=null&&typeof s!="function"&&E(n,i,String(s))}if(typeof n.addEventListener=="function")n.addEventListener("click",i=>{i.metaKey||i.ctrlKey||i.shiftKey||i.altKey||(i.preventDefault(),r())});else{let i=te(e.className??e.class)??"";i&&E(n,"class",i)}typeof n.addEventListener=="function"&&x(()=>{let i=te(e.href)??"";n.setAttribute("href",i);let s=te(e.className??e.class)??"",a=te(e.activeClass)??"",c=te(e.active)??t?.location().pathname===i;n.className=[s,c?a:""].filter(Boolean).join(" ")});let o=e.children;return o!=null&&j(n,o),n}function Rf(e){let t=e.action,r=e.className??e.class,n=t.url??"",o=_e("form");E(o,"method","post"),n&&E(o,"action",n),r&&E(o,"class",r);for(let s of Object.keys(e)){if(s==="action"||s==="children"||s==="class"||s==="className")continue;let a=e[s];a!=null&&typeof a!="function"&&E(o,s,String(a))}typeof o.addEventListener=="function"&&o.addEventListener("submit",s=>{s.preventDefault();let a={};new FormData(o).forEach((c,u)=>{a[u]=c}),Promise.resolve(t(a)).catch(()=>{})});let i=e.children;return i!=null&&j(o,i),o}async function Pf(e,t){let r=Ue(e,t);if(!r)return;let n=[];for(let o of r.matched){let i=o.component;i&&typeof i.preload=="function"&&n.push(i.preload())}await Promise.all(n)}var Je,Rs,Ps,$s,Qt,xf,te,Cf,An,Sn=q(()=>{"use strict";A();un();P();A();ln();ws();dn();dn();Cs();zt();un();A();Je=X(void 0,"router"),Rs=X(void 0,"outlet"),Ps=X(void 0,"route-params"),$s=X(void 0,"route-data");xf={router:{navigate:()=>{}},location:()=>({pathname:"",search:"",hash:"",query:{}}),params:()=>({})};te=e=>typeof e=="function"?e():e,Cf=new Set(["href","slot","class","className","active","activeClass","replace","children"]);An=tr});var Nf={};_n(Nf,{$component:()=>Br,A:()=>An,ClientOnly:()=>Kr,DEV:()=>We,Dynamic:()=>Mi,ErrorBoundary:()=>Di,FRAMEWORK_NAME:()=>os,For:()=>Ri,Fragment:()=>Zr,Index:()=>Pi,Link:()=>tr,Match:()=>$i,NoSsr:()=>Li,Outlet:()=>mn,Portal:()=>Ii,Redirect:()=>gn,Router:()=>yn,Show:()=>Ci,Store:()=>pt,Suspense:()=>je,Switch:()=>Ni,VERSION:()=>ns,addClass:()=>ui,batch:()=>$,classMap:()=>qi,cleanupDelegation:()=>Ji,composeProviders:()=>Gr,createBrowserHistory:()=>$e,createComponent:()=>Te,createComputed:()=>Hn,createConsumer:()=>Yi,createContext:()=>Ce,createContextWithProvider:()=>Gi,createDebounce:()=>Zn,createDeferred:()=>Yn,createEffect:()=>x,createIsomorphicState:()=>Qi,createMemo:()=>m,createMemoryHistory:()=>Zt,createProvider:()=>Bt,createRenderEffect:()=>C,createResource:()=>ne,createRoot:()=>V,createSelector:()=>Gn,createSignal:()=>w,createStore:()=>xr,delegateEvents:()=>pe,devOnly:()=>Xr,getFrameworkInfo:()=>Iu,getOwner:()=>N,getSharedConfig:()=>zr,hydrate:()=>Dt,initDelegation:()=>Bi,insert:()=>j,isDOMNode:()=>Rt,isDev:()=>Jr,isLitTemplateResult:()=>di,isRenderable:()=>zi,jsx:()=>Qr,jsxs:()=>rs,lazy:()=>Oe,mount:()=>Ls,onCleanup:()=>S,onMount:()=>Vt,onUnmount:()=>Wt,portal:()=>Ui,read:()=>uo,reduce:()=>co,removeClass:()=>fi,render:()=>Ee,runWithOwner:()=>I,setAttribute:()=>E,setOwner:()=>Fn,setProperty:()=>ke,spread:()=>Oi,startClient:()=>Ds,styleMap:()=>Vi,toggleClass:()=>li,untrack:()=>O,untrackStore:()=>kr,useCallback:()=>Ut,useContext:()=>Re,useEffect:()=>Fe,useEventListener:()=>Kt,useLocation:()=>Ge,useMatch:()=>wn,useMemo:()=>Ft,useNavigate:()=>er,useParam:()=>vn,useParams:()=>Xe,useProvide:()=>Zi,useReducer:()=>Ht,useRef:()=>jt,useRouter:()=>Ne,useSearchParams:()=>bn});A();A();var hr="1.0.0-alpha.86",so=hr.split(".")[0],to=`__fluixi_signal_state_v${so}__`,_a=`__fluixi_signal_builds_v${so}__`,Ta=e=>{typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)};function ao(){return{consumer:null,untracked:!1,owner:null,queue:[],scheduled:!1,flushing:!1,batchDepth:0,hostSchedule:Ta,onSuspend:null,onError:null,observer:null}}var pr=globalThis;function Oa(e){let t=ao(),r=e;for(let n of Object.keys(t))n in e||(r[n]=t[n]);return e}function Ea(){let e=pr[to];return e?Oa(e):pr[to]=ao()}var k=Ea();(pr[_a]??=[]).push(hr);function Ca(e){return k.observer=e,()=>{k.observer===e&&(k.observer=null)}}var yr=[],Ra;function Pa(e){let t=k.observer;t&&t.created(e.parents===void 0?{...e,parents:yr,origin:e.origin??Ra}:e)}function $a(e){return k.observer?(yr.push(e),!0):!1}function Na(){yr.pop()}function Ma(e){k.observer?.ran?.(e)}function Ia(e){k.observer?.disposed?.(e)}var La="__FLUIXI_DEVTOOLS_HOOK__",ro=globalThis[La];if(typeof ro?.inject=="function")try{ro.inject({observeReactiveNodes:Ca,version:hr})}catch{}function Da(){return k.observer!=null}var no=0,oo=1,nt=2,qa=class{constructor(){this.observers=null,this.watchers=null,this.version=0}updateIfNecessary(){}track(){if(k.untracked)return;let e=k.consumer;e&&((this.observers??=new Set).add(e),(e.sources??=new Set).add(this))}};var Va=class extends qa{constructor(e,t){super(),this._threw=!1,this._initialized=!1,this.state=nt,this.sources=null,this._fn=e,this._equals=t?.equals===!1?()=>!1:t?.equals??Object.is}get(){if(k.consumer===this)throw new Error("Signal.Computed cannot read itself");if(this.track(),this.updateIfNecessary(),this._threw)throw this._error;return this._value}updateIfNecessary(){if(this.state===oo&&this.sources){for(let e of this.sources)if(e.updateIfNecessary(),this.state===nt)break}(this.state===nt||!this._initialized)&&this.recompute(),this.state=no}recompute(){if(this.sources){for(let a of this.sources)a.observers?.delete(this);this.sources.clear()}let e=k.consumer,t=k.untracked,r=$a(this);k.consumer=this,k.untracked=!1;let n,o=!1,i;try{n=this._fn()}catch(a){o=!0,i=a,n=this._value}finally{k.consumer=e,k.untracked=t,r&&Na()}let s=!this._initialized||this._threw!==o||(o?i!==this._error:!this._equals(this._value,n));if(this._initialized=!0,this._threw=o,this._error=i,this._value=n,Ma(this),s){if(this.version++,this.observers)for(let a of[...this.observers])a.markDirty(nt);io(this)}}markDirty(e){if(this.state>=e)return;let t=this.state===no;if(this.state=e,t){if(this.observers)for(let r of[...this.observers])r.markDirty(oo);io(this)}}peek(){if(this.updateIfNecessary(),this._threw)throw this._error;return this._value}};function io(e){if(e.watchers)for(let t of[...e.watchers])t._notify(e)}function Wa(e){return k.onSuspend?(k.onSuspend(e,k.owner),!0):!1}function Fa(){return k.owner}function ja(e,t){let r=k.owner;k.owner=e;try{return t()}finally{k.owner=r}}function Ha(e){if(k.owner){if(k.owner.disposed){e();return}(k.owner.cleanups??=[]).push(e)}}function Ka(e){k.hostSchedule=e??(t=>{Promise.resolve().then(t)})}function Ua(e){return!!e&&typeof e.then=="function"}Ka(()=>{});var za=Symbol.for("signal"),Ba=Symbol.for("memo");function Ja(e,t,r){let n=t,o=Fa(),i=new Va(()=>ja(o,()=>{try{return n=e(n)}catch(a){if(Ua(a))return Wa(a),n;throw a}}),{equals:r?.equals}),s=(()=>i.get());return Object.defineProperty(s,za,{value:!0,enumerable:!0}),Object.defineProperty(s,Ba,{value:!0,enumerable:!0}),Pa({kind:"memo",node:i,handle:s,name:r?.name}),Da()&&Ha(()=>Ia(i)),s}function co(e,t,r,n){return Ja(()=>e().reduce(t,r),void 0,n)}function uo(e){let t=e;for(;typeof t=="function";)t=t();return t}A();var Sr="1.0.0-alpha.86",xo=Sr.split(".")[0],fo=`__fluixi_signal_state_v${xo}__`,Xa=`__fluixi_signal_builds_v${xo}__`,Ga=e=>{typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)};function ko(){return{consumer:null,untracked:!1,owner:null,queue:[],scheduled:!1,flushing:!1,batchDepth:0,hostSchedule:Ga,onSuspend:null,onError:null,observer:null}}var mr=globalThis;function Ya(e){let t=ko(),r=e;for(let n of Object.keys(t))n in e||(r[n]=t[n]);return e}function Za(){let e=mr[fo];return e?Ya(e):mr[fo]=ko()}var ie=Za();(mr[Xa]??=[]).push(Sr);function Qa(e){return ie.observer=e,()=>{ie.observer===e&&(ie.observer=null)}}var ec=[],ot;function tc(e,t){if(!ie.observer)return t();let r=ot;ot=e;try{return t()}finally{ot=r}}function rc(e){let t=ie.observer;t&&t.created(e.parents===void 0?{...e,parents:ec,origin:e.origin??ot}:e)}function lo(e,t,r){ie.observer?.moved?.(e,t,r)}function po(e){ie.observer?.disposed?.(e)}var nc="__FLUIXI_DEVTOOLS_HOOK__",ho=globalThis[nc];if(typeof ho?.inject=="function")try{ho.inject({observeReactiveNodes:Qa,version:Sr})}catch{}function _o(){return ie.observer!=null}var at=Symbol("store-raw"),yo=Symbol("store-node"),mo=Symbol("store-has"),go=Symbol("store-self"),vo=Symbol("store-track");var De=new WeakMap,gr=new WeakMap,Ae=new WeakMap,ct=new WeakMap;function oc(e,t){if(!be(e)||!_o())return;let r=new Set,n=s=>{if(!(!be(s)||r.has(s))){r.add(s);for(let a of Object.values(s))n(a)}};n(ct.get(t)??t);let o=new Set,i=s=>{if(!be(s))return;let a=s;if(r.has(a)||o.has(a))return;o.add(a);let c=De.get(a);if(c){for(let u of c.keys.values())po(u);c.all&&po(c.all),De.delete(a),Ae.delete(a),gr.delete(a)}for(let u of Object.values(a))i(u)};i(e)}var ut=(e,t,r)=>r?`${e}[${String(t)}]`:`${e}.${String(t)}`;function To(e,t,r){let n=t?.owner,o=n&&r!==void 0?ut(n.name,r,t?.array):void 0,[i,s]=tc(n?.store,()=>w(e,o?{name:o}:void 0)),a=i;return a.$=s,a}function ft(e){let t=De.get(e);return t?t.owner||(t.owner=Ae.get(e)):De.set(e,t={keys:new Map,owner:Ae.get(e),array:Array.isArray(e)}),t}function wo(e,t,r){let n=e.keys.get(t);return n||e.keys.set(t,n=To(r,e,t)),n}function ic(e,t,r,n){let o=Ae.get(e);if(o&&o.store===t&&o.name===r)return;let i={store:t,name:r};Ae.set(e,i),ct.set(e,ct.get(n)??n);let s=De.get(e);if(s&&(s.owner=i,!!_o())){for(let[a,c]of s.keys)lo(c,t,ut(r,a,s.array));s.all&&lo(s.all,t,ut(r,"*",s.array))}}function bo(e){let t=ft(e);(t.all||(t.all=To(void 0,t,"*")))()}function Ao(e,t){e.$(typeof t=="function"?()=>t:t)}function be(e){if(e==null||typeof e!="object")return!1;if(Array.isArray(e))return!0;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function it(e){if(!be(e))return e;let t=gr.get(e);if(t)return t;let r=new Proxy(e,sc);return gr.set(e,r),r}var sc={get(e,t,r){if(t===at||t===yo)return e;if(t===we)return r;if(t===mo)return c=>c in e;if(t==="__proxy")return!0;if(t===vo||t===go)return bo(e),r;let n=e[t];if(typeof n=="function"&&!Object.prototype.hasOwnProperty.call(e,t))return n;let o=Object.getOwnPropertyDescriptor(e,t);if(o&&o.get)return o.get.call(r);let i=ft(e),s=wo(i,t,n),a=s();return be(a)?(i.owner&&ic(a,s,ut(i.owner.name,t,i.array),e),it(a)):a},set(){return!0},deleteProperty(e,t){return t in e&&G(e,t,void 0),!0},has(e,t){return t===at||t===we||t===yo||t===mo||t===go||t===vo?!0:(wo(ft(e),t,e[t])(),t in e)},ownKeys(e){return bo(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e,t)}};function Oo(e,t=new Set){if(e==null||typeof e!="object")return e;let r=e[at]??e;if(t.has(r)||!be(r))return r;t.add(r);let n=!1,o=s=>{let a=Oo(s,t);return a!==s&&(n=!0),a};if(Array.isArray(r)){let s=r.map(o);return n?s:r}let i={};for(let s of Object.keys(r))i[s]=o(r[s]);return n?i:r}function G(e,t,r){let n=Oo(r),o=e[t];if(o===n&&(n!==void 0||t in e))return;let i=Array.isArray(e),s=i?e.length:0;n===void 0?delete e[t]:e[t]=n;let a=ft(e),c=a.keys.get(t);if(c&&Ao(c,n),oc(o,e),i&&e.length!==s){let u=a.keys.get("length");u&&Ao(u,e.length)}a.all&&a.all.$(void 0)}function vr(e,t){return typeof e=="function"?e(t):e}function wr(e,t){for(let r of Object.keys(t)){let n=t[r],o=e[r];n&&typeof n=="object"&&!Array.isArray(n)&&o&&typeof o=="object"&&!Array.isArray(o)?wr(o,n):G(e,r,n)}}function dt(e){let t=[],r=e.replace(/\[([^\]]*)\]/g,".$1");for(let n of r.split("."))n.length&&t.push(n);return t}function Eo(e,t,r){let n=t.length-1;for(let i=0;i<n;i++){let s=t[i];if(s==="*"){let c=t.slice(i+1);if(Array.isArray(e))for(let u=0;u<e.length;u++)Eo(e[u],c,r);return}let a=e[s];(a==null||typeof a!="object")&&(a=/^\d+$/.test(t[i+1])?[]:{},G(e,s,a)),e=a}let o=t[n];if(o==="*"){if(Array.isArray(e))for(let i=0;i<e.length;i++)G(e,i,vr(r,e[i]));return}G(e,o,vr(r,e[o]))}function So(e,t,r){Eo(e,dt(t),r)}function ac(e){return Array.isArray(e)&&e.length>0&&e.every(t=>Array.isArray(t)&&t.length>=2&&typeof t[0]=="string")}function st(e,t){for(let r=e.length-1;r>=t.length;r--)G(e,String(r),void 0);e.length!==t.length&&G(e,"length",t.length);for(let r=0;r<t.length;r++)G(e,String(r),t[r])}function cc(e,t){let r=t[0];if(typeof r=="function"&&t.length===1){let n=r(e);n&&n!==e&&wr(e,n);return}if(Array.isArray(r)&&t.length===1){if(ac(r)){for(let n of r)So(e,n[0],n[1]);return}if(Array.isArray(e)){st(e,r);return}if(r.length===0)return;throw new TypeError("[fluixi] set() was given an array that is neither a batch of [path, value] pairs nor a replacement for an array root. Name the path you meant, as in set('items', [...]).")}if(r&&typeof r=="object"&&!Array.isArray(r)&&t.length===1){wr(e,r);return}if(t.length>=3){br(e,t.slice(0,-1),t[t.length-1]);return}So(e,String(r),t[1])}function uc(e,t){if(typeof t=="function"){if(!Array.isArray(e))return[];let r=[];for(let n=0;n<e.length;n++)t(e[n],n)&&r.push(n);return r}if(Array.isArray(t))return Array.isArray(e)?t.map(Number):t.map(String);if(t&&typeof t=="object"&&("from"in t||"to"in t||"by"in t)){if(!Array.isArray(e))return[];let r=t.by??1,n=t.from??0,o=t.to??e.length-1,i=[];for(let s=n;s<=o;s+=r)s>=0&&s<e.length&&i.push(s);return i}return t==="*"?Array.isArray(e)?e.map((r,n)=>n):Object.keys(e??{}):[t]}function br(e,t,r){if(e==null)return;let[n,...o]=t;if(typeof n=="string"){let s=dt(n);if(s.length>1){br(e,[...s,...o],r);return}}let i=uc(e,n);if(o.length===0){for(let s of i)G(e,s,vr(r,e[s]));return}for(let s of i){let a=e[s];if(a==null||typeof a!="object"){let c=o[0];a=typeof c=="number"||/^\d+$/.test(String(c))?[]:{},G(e,s,a)}br(a,o,r)}}function Ar(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Ar);let t={};for(let r of Object.keys(e))t[r]=Ar(e[r]);return t}function oe(e,t){let r=e;for(let n of dt(t)){if(r==null)return;r=r[n]}return r}var pt=class{constructor(e,t={immutable:!0}){this.options=t,this.root=e,this.set=((...r)=>$(()=>cc(this.root,r))),e&&typeof e=="object"&&(Ae.set(e,{store:this,name:t.name??"store"}),ct.set(e,e)),rc({kind:"store",node:this,handle:()=>this.root,name:t.name})}get state(){return it(this.root)}get proxy(){return it(this.root)}get accessor(){return(()=>it(this.root))}unwrap(){return this.root}getNode(e){return this.root&&this.root[e]}get(e){if(e==null||e==="")return lt(this.state);let t=this.state;for(let r of dt(e)){if(t==null)return;t=t[r]}return lt(t)}select(e){return m(()=>e(this.state))}subscribe(e){return x(()=>e(this.state))}watch(e,t){let r;return x(()=>{let n=e(this.state);Object.is(n,r)||(t(n,r),r=n)})}reactive(e){return m(()=>this.state[e])}produce(e){this.set((t=>{let r=Ar(t);return e(r),r}))}reconcile(e,t={}){this.set(e)}push(e,...t){let r=oe(this.root,e);this.set(e,r.concat(t))}pop(e){let t=oe(this.root,e).slice(),r=t.pop();return this.set(e,t),r}shift(e){let t=oe(this.root,e).slice(),r=t.shift();return this.set(e,t),r}splice(e,t,r,...n){let o=oe(this.root,e).slice(),i=o.splice(t,r,...n);return this.set(e,o),i}insert(e,t,r){let n=oe(this.root,e).slice();n.splice(t,0,r),this.set(e,n)}removeAt(e,t){let r=oe(this.root,e).slice(),n=r.splice(t,1);return this.set(e,r),n}replace(e,t){if(arguments.length>=2){let n=oe(this.root,String(e)),o=t;if(Array.isArray(n)&&Array.isArray(o)){st(n,o);return}this.set(e,o);return}let r=this.root;if(Array.isArray(r)&&Array.isArray(e)){st(r,e);return}this.set(e)}clear(e){let t=e===void 0?this.root:oe(this.root,e);if(Array.isArray(t)){st(t,[]);return}if(t&&typeof t=="object")for(let r of Object.keys(t))G(t,r,void 0)}toObservable(){let[e]=w(this.state);return e.toObservable()}dispose(){}},fc=["get","select","watch","subscribe","produce","reconcile","push","pop","shift","splice","insert","removeAt","replace","clear","unwrap","toObservable"];function lc(e,t){for(let r of fc)e[r]=t[r].bind(t);e.$=t.reactive.bind(t)}function xr(e,t={immutable:!0}){let r=new pt(e,t);return lc(r.set,r),[r.proxy,r.set]}function dc(e,t={}){return new pt(e,{...t,immutable:!1})}function lt(e){if(e==null||typeof e!="object")return e;let t=e[at];return t!==void 0?t:e}function kr(e){return O(()=>lt(e))}var Uf=Object.freeze({createStore:xr,createMutableStore:dc,batch:$,unwrap:lt,untrackStore:kr});P();A();P();var Wi="1.0.0-alpha.86";P();pi(Wi);P();P();P();A();var _u={context:null,owner:null};function zr(){return _u}var We=typeof process<"u"&&!1,Ur=Symbol.for("fluixi-lifecycle");function Fi(){let e=N();if(!e)return null;if(!e[Ur]){let t={mounts:[],effects:[],scheduled:!1};e[Ur]=t}return e[Ur]}function ji(e){if(e.scheduled)return;if(L()){e.mounts=[],e.effects=[];return}e.scheduled=!0;let t=N();queueMicrotask(()=>{if(Vn(t)){e.mounts=[],e.effects=[];return}I(t,()=>{for(let r of e.mounts)try{let n=r();typeof n=="function"&&S(n)}catch(n){console.error("Error in onMount callback:",n)}for(let r of e.effects){let n;x(()=>{n&&n(),n=r()}),S(()=>{n&&n()})}e.mounts=[],e.effects=[]})})}function Te(e,t){return U(e,t)}function Br(e,t){let r=typeof e=="function"?O(()=>e(t)):e,n=r!=null&&(typeof r=="function"||typeof r=="object");if(n)try{r.$name=e.name}catch{}return n&&!M(r)?Ve(r):r}function Vt(e,t=!0){if(L())return;let r=Fi();if(r){if(!t){r.scheduled||e();return}r.mounts.push(e),ji(r)}else{if(!t){e();return}x(()=>{let n=O(e);typeof n=="function"&&S(n)})}}function Wt(e){S(e)}function Fe(e){let t=Fi();if(t)t.effects.push(e),ji(t);else{let r;x(()=>{r&&r(),r=e()}),S(()=>{r&&r()})}}function Ft(e){return m(e)}function jt(e){let t={current:e};return S(()=>{t.current=null}),t}function Ht(e,t){let[r,n]=w(t);return[r,i=>{n(e(r(),i))}]}function Kt(e,t,r,n){Fe(()=>{let o=e&&"current"in e?e.current:e;if(o)return o.addEventListener(t,r,n),()=>{o.removeEventListener(t,r,n)}})}function Ut(e){return e}function Jr(){return We}function Xr(e){We&&e()}A();P();function Hi(e){return!!(e&&typeof e=="object"&&typeof e.then=="function"||e instanceof Promise)}var Tu=X(void 0,"suspense-list");function je(e){return U(Ou,e)}function Ou(e){let t=eo(),r=K(Tu),n=r?r.register(t.inFallback):void 0;function o(f){return f==null||typeof f=="boolean"?null:typeof f=="function"&&ee(f)&&!M(f)?f():f}let i=bi(()=>o(e.fallback??null)),s=dr(t,()=>fe(()=>e.children)),a=(f,d)=>{if(!(d>8))if(Array.isArray(f))for(let g of f)a(g,d+1);else typeof f=="function"&&M(f)&&a(f(),d+1)};dr(t,()=>{C(()=>a(s,0))});let[c,u]=w(void 0),l=Hi(s);return l&&(t.increment(),s.then(f=>{u(()=>f),t.decrement()},()=>t.decrement())),m(()=>(n?n.showFallback():t.inFallback())?i:l?c():s)}yi(je);Object.defineProperty(je,"__suspense",{value:!0,enumerable:!0});zt();zt();function Ee(e,t,r={}){if(pe(["click","input","change","submit"]),L())throw new Error("render() is for client-side only. Use renderToString() on server.");if(!t)throw new Error("Container element is required");let n;return V(o=>{n=o;let i=typeof e=="function"?e():e;t.textContent="",Pt(t),$t(),j(t,()=>i)}),()=>{n&&(n(),n=void 0)}}function Eu(e){return e&&typeof e=="object"&&(e._$litType$!==void 0||e._$litDirective$!==void 0)}function Ui(e,t,r={}){let n=document.createElement("div");n.setAttribute("data-portal","true"),t.appendChild(n);let o=Ee(e,n,r);return()=>{o(),t.contains(n)&&t.removeChild(n)}}function zi(e){return!!(e==null||typeof e=="function"||Rt(e)||Eu(e)||Array.isArray(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean")}function Bi(){L()||pe(["click","input","change","submit"])}function Ji(){L()}Yr();A();P();var Ru="__fluixi_iso_states__",Pu="__iso:";function $u(){return globalThis[Ru]??=new Map}function Nu(e){if(typeof window>"u")return;let t=Hr();return t?t[Pu+e]:void 0}function Qi(e,t){let r=Nu(e),n=r!==void 0?r:typeof window<"u"&&t.client?t.client():t.fallback,[o,i]=w(n);return $u().set(e,{server:t.server,set:i}),{value:o,set:i,key:e}}P();P();P();P();P();A();var Zr=Symbol.for("fluixi.fragment"),es=typeof window>"u";function ts(e){return e==null||e===!1?null:Array.isArray(e)?e.map(ts).flat():e}function Qr(e,t,r){if(e==null)return null;let n=t||{};if(r!==void 0&&(n.key=r),e===Zr)return m(()=>Ve(ts(n.children)));if(typeof e=="function"){let{type:o}=mi(e);return e.$$typeof===Symbol.for("react.provider")||o==="provider"?e(n):es?{type:e,props:n}:m(()=>U(e,n),void 0,{name:"jsx component"})}return typeof e=="string"&&e.trim().length>0?Mu(e,n):null}var rs=Qr;function Mu(e,t){return es?{type:e,props:t||{}}:Ei(e,t)}var ns="0.0.1",os="Fluixi";function Iu(){return{name:os,version:ns,features:{ssr:!0,hydration:!0,jsx:!0,litHtml:!0,signals:!0,fineGrained:!0,lazy:!0,hooks:!0,devMode:!0}}}P();rn();A();A();A();var Du=Object.defineProperty,qu=(e,t)=>{for(var r in t)Du(e,r,{get:t[r],enumerable:!0})};function he(e){return typeof e=="function"?e():e}function Vu(e){if(typeof e=="string")return e;let t=[];return t.push(e.index===!1?"noindex":"index"),t.push(e.follow===!1?"nofollow":"follow"),e.noarchive&&t.push("noarchive"),e.nosnippet&&t.push("nosnippet"),e.noimageindex&&t.push("noimageindex"),e.maxSnippet!=null&&t.push(`max-snippet:${e.maxSnippet}`),e.maxImagePreview&&t.push(`max-image-preview:${e.maxImagePreview}`),e.maxVideoPreview!=null&&t.push(`max-video-preview:${e.maxVideoPreview}`),t.join(", ")}function ls(){let e=[],[t,r]=w(0);return{sources:e,version:t,push(n){return e.push(n),r(o=>o+1),()=>{let o=e.indexOf(n);o!==-1&&(e.splice(o,1),r(i=>i+1))}}}}var ds=null;function ps(e){ds=e}function Wu(){return ds}function Pe(e){let t=Wu();if(!t)return globalThis.process?.env?.NODE_ENV!=="production"&&console.warn("[fluixi/head] useHead() called with no active head registry — ignored."),()=>{};let r=t.push(e);return typeof window<"u"&&N()&&S(r),r}function Xt(e){let t=5381;for(let r=0;r<e.length;r++)t=t*33^e.charCodeAt(r);return(t>>>0).toString(36)}function Fu(e){return e.charset!=null?"meta:charset":e.property?"meta:property:"+e.property:e.name?"meta:name:"+e.name:e["http-equiv"]?"meta:http-equiv:"+e["http-equiv"]:"meta:"+Xt(JSON.stringify(e))}function ju(e,t){let r=typeof t=="string"?{url:t}:t;e.push({tag:"meta",key:"meta:property:og:image:"+r.url,attrs:{property:"og:image",content:r.url}}),r.secureUrl&&e.push({tag:"meta",key:"meta:property:og:image:secure:"+r.url,attrs:{property:"og:image:secure_url",content:r.secureUrl}}),r.type&&e.push({tag:"meta",key:"meta:property:og:image:type:"+r.url,attrs:{property:"og:image:type",content:r.type}}),r.width!=null&&e.push({tag:"meta",key:"meta:property:og:image:width:"+r.url,attrs:{property:"og:image:width",content:String(r.width)}}),r.height!=null&&e.push({tag:"meta",key:"meta:property:og:image:height:"+r.url,attrs:{property:"og:image:height",content:String(r.height)}}),r.alt&&e.push({tag:"meta",key:"meta:property:og:image:alt:"+r.url,attrs:{property:"og:image:alt",content:r.alt}})}function Hu(e,t){let r=(n,o)=>{o!=null&&t.push({tag:"meta",key:"meta:property:og:"+n,attrs:{property:"og:"+n,content:o}})};r("title",e.title),r("description",e.description),r("type",e.type),r("url",e.url),r("site_name",e.siteName),r("locale",e.locale);for(let n of e.localeAlternate??[])t.push({tag:"meta",key:"meta:property:og:locale:alt:"+n,attrs:{property:"og:locale:alternate",content:n}});if(e.image!=null){let n=Array.isArray(e.image)?e.image:[e.image];for(let o of n)ju(t,o)}if(e.video){let n=typeof e.video=="string"?{url:e.video}:e.video;r("video",n.url),"type"in n&&n.type&&r("video:type",n.type),"width"in n&&n.width!=null&&r("video:width",String(n.width)),"height"in n&&n.height!=null&&r("video:height",String(n.height))}if(e.audio){let n=typeof e.audio=="string"?{url:e.audio}:e.audio;r("audio",n.url),"type"in n&&n.type&&r("audio:type",n.type)}if(e.article){let n=e.article;r("article:published_time",n.publishedTime),r("article:modified_time",n.modifiedTime),r("article:expiration_time",n.expirationTime),r("article:section",n.section);for(let o of[].concat(n.author??[]))t.push({tag:"meta",key:"meta:property:og:article:author:"+o,attrs:{property:"article:author",content:o}});for(let o of[].concat(n.tag??[]))t.push({tag:"meta",key:"meta:property:og:article:tag:"+o,attrs:{property:"article:tag",content:o}})}if(e.book){let n=e.book;r("book:isbn",n.isbn),r("book:release_date",n.releaseDate);for(let o of[].concat(n.author??[]))t.push({tag:"meta",key:"meta:property:og:book:author:"+o,attrs:{property:"book:author",content:o}});for(let o of[].concat(n.tag??[]))t.push({tag:"meta",key:"meta:property:og:book:tag:"+o,attrs:{property:"book:tag",content:o}})}if(e.profile){let n=e.profile;r("profile:first_name",n.firstName),r("profile:last_name",n.lastName),r("profile:username",n.username),r("profile:gender",n.gender)}}function Ku(e,t){let r=(n,o)=>{o!=null&&t.push({tag:"meta",key:"meta:name:twitter:"+n,attrs:{name:"twitter:"+n,content:o}})};r("card",e.card),r("site",e.site),r("creator",e.creator),r("title",e.title),r("description",e.description),r("image",e.image),r("image:alt",e.imageAlt),r("player",e.player),e.playerWidth!=null&&r("player:width",String(e.playerWidth)),e.playerHeight!=null&&r("player:height",String(e.playerHeight)),e.app&&(r("app:name:iphone",e.app.name),r("app:id:iphone",e.app.idIphone),r("app:id:ipad",e.app.idIpad),r("app:id:googleplay",e.app.idGooglePlay))}function Uu(e,t){let r=(n,o)=>t.push({tag:"link",key:n,attrs:o});if(e.icon!=null){let n=typeof e.icon=="string"?[{url:e.icon}]:e.icon;for(let o of n)r("link:icon:"+o.url,{rel:"icon",href:o.url,...o.type?{type:o.type}:{},...o.sizes?{sizes:o.sizes}:{}})}if(e.apple!=null){let n=typeof e.apple=="string"?[{url:e.apple}]:e.apple;for(let o of n)r("link:apple-touch-icon:"+o.url,{rel:"apple-touch-icon",href:o.url,...o.sizes?{sizes:o.sizes}:{}})}e.mask&&r("link:mask-icon",{rel:"mask-icon",href:e.mask.url,...e.mask.color?{color:e.mask.color}:{}}),e.shortcut&&r("link:shortcut",{rel:"shortcut icon",href:e.shortcut}),e.msTileImage&&t.push({tag:"meta",key:"meta:name:msapplication-TileImage",attrs:{name:"msapplication-TileImage",content:e.msTileImage}}),e.msTileColor&&t.push({tag:"meta",key:"meta:name:msapplication-TileColor",attrs:{name:"msapplication-TileColor",content:e.msTileColor}})}function zu(e,t,r){let n=(f,d)=>t.push({tag:"meta",key:f,attrs:d}),o=he(e.title);o!==void 0&&(r.title=o),e.titleTemplate!==void 0&&(r.template=e.titleTemplate);let i=he(e.lang);i!==void 0&&t.push({tag:"htmlAttr",key:"html:lang",name:"lang",value:i}),e.charset!==void 0&&n("meta:charset",{charset:e.charset}),e.viewport!==void 0&&n("meta:name:viewport",{name:"viewport",content:e.viewport});let s=he(e.description);s!==void 0&&n("meta:name:description",{name:"description",content:s});let a=he(e.keywords);a!==void 0&&n("meta:name:keywords",{name:"keywords",content:Array.isArray(a)?a.join(", "):a}),e.author!==void 0&&n("meta:name:author",{name:"author",content:e.author}),e.robots!==void 0&&n("meta:name:robots",{name:"robots",content:Vu(e.robots)}),e.generator!==void 0&&n("meta:name:generator",{name:"generator",content:e.generator}),e.applicationName!==void 0&&n("meta:name:application-name",{name:"application-name",content:e.applicationName}),e.referrer!==void 0&&n("meta:name:referrer",{name:"referrer",content:e.referrer}),e.colorScheme!==void 0&&n("meta:name:color-scheme",{name:"color-scheme",content:e.colorScheme});let c=he(e.themeColor);c!==void 0&&n("meta:name:theme-color",{name:"theme-color",content:c});let u=he(e.canonical);if(u!==void 0&&t.push({tag:"link",key:"link:rel:canonical",attrs:{rel:"canonical",href:u}}),e.manifest!==void 0&&t.push({tag:"link",key:"link:rel:manifest",attrs:{rel:"manifest",href:e.manifest}}),e.base!==void 0&&t.push({tag:"base",key:"base",attrs:{href:e.base}}),e.verification){let f={google:"google-site-verification",bing:"msvalidate.01",yandex:"yandex-verification",pinterest:"p:domain_verify"};for(let[d,g]of Object.entries(e.verification)){if(g==null)continue;let h=f[d]??d;n("meta:name:"+h,{name:h,content:g})}}for(let f of e.alternates??[])t.push({tag:"link",key:"link:alternate:hreflang:"+f.hreflang,attrs:{rel:"alternate",hreflang:f.hreflang,href:f.href}});for(let f of e.feeds??[])t.push({tag:"link",key:"link:alternate:feed:"+f.href,attrs:{rel:"alternate",type:f.type??"application/rss+xml",href:f.href,...f.title?{title:f.title}:{}}});e.og&&Hu(e.og,t),e.twitter&&Ku(e.twitter,t),e.icons&&Uu(e.icons,t);let l=he(e.jsonLd);if(l!==void 0){let f=Array.isArray(l)?l:[l];for(let d of f){let g=JSON.stringify(d);t.push({tag:"script",key:"script:ldjson:"+Xt(g),attrs:{type:"application/ld+json"},children:g})}}for(let f of e.meta??[]){let d={};for(let[g,h]of Object.entries(f))h!=null&&(d[g==="httpEquiv"?"http-equiv":g]=h);t.push({tag:"meta",key:Fu(d),attrs:d})}for(let f of e.link??[]){let d={};for(let[g,h]of Object.entries(f))h!=null&&(d[g]=h);t.push({tag:"link",key:"link:"+(d.rel??"")+":"+(d.href??Xt(JSON.stringify(d))),attrs:d})}for(let f of e.script??[]){let d={},g;for(let[h,p]of Object.entries(f))p!=null&&(h==="children"?g=p:d[h]=p);t.push({tag:"script",key:"script:"+(d.src??Xt((g??"")+JSON.stringify(d))),attrs:d,children:g})}}function Bu(e,t){return typeof e=="function"?e(t):e.includes("%s")?e.replace("%s",t):e}function Ju(e){let t=[],r={};for(let i of e.sources){let s=typeof i=="function"?i():i;zu(s,t,r)}r.title!==void 0&&t.push({tag:"title",key:"title",children:r.template?Bu(r.template,r.title):r.title});let n=new Map,o={};for(let i of t){if(i.tag==="htmlAttr"){o[i.name]=i.value;continue}n.set(i.key,i)}return{tags:[...n.values()],htmlAttrs:o}}var nn="data-fh",on="data-fh-key";function hs(e){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType===8&&t.data.startsWith("fh:")){t.parentNode?.removeChild(t);return}}function ys(e,t){for(let r of Array.from(e.attributes))r.name===nn||r.name===on||r.name in t||e.removeAttribute(r.name);for(let[r,n]of Object.entries(t))e.getAttribute(r)!==n&&e.setAttribute(r,n)}function Xu(e){let t=document.createElement(e.tag);return ys(t,e.attrs),t.setAttribute(nn,""),t.setAttribute(on,e.key),e.tag==="script"&&e.children!=null&&(t.textContent=e.children),t}function Gu(e,t){let r=document.head,n=new Map;for(let s of Array.from(r.querySelectorAll(`[${nn}]`))){let a=s.getAttribute(on);s.tagName!=="TITLE"&&a&&n.set(a,s)}let o=null,i=new Set;for(let s of e){if(s.tag==="title"){o=s.children;continue}if(s.tag==="htmlAttr")continue;i.add(s.key);let a=n.get(s.key);a&&a.tagName===s.tag.toUpperCase()?(ys(a,s.attrs),s.tag==="script"&&(a.textContent??"")!==(s.children??"")&&(a.textContent=s.children??"")):(a&&a.remove(),r.appendChild(Xu(s)))}for(let[s,a]of n)i.has(s)||a.remove();o!=null&&document.title!==o&&(document.title=o);for(let[s,a]of Object.entries(t))document.documentElement.getAttribute(s)!==a&&document.documentElement.setAttribute(s,a)}function ms(e){return V(t=>(x(()=>{e.version();let{tags:r,htmlAttrs:n}=Ju(e);Gu(r,n)}),S(()=>{}),t))}var Yu={};qu(Yu,{Base:()=>rf,JsonLD:()=>nf,Link:()=>ef,Meta:()=>Qu,Script:()=>tf,Title:()=>Zu});function He(e){return typeof e=="function"?e():e}function Zu(e){return Pe(()=>({title:He(e.children)})),null}function Qu(e){return Pe(()=>({meta:[{...e,content:He(e.content)}]})),null}function ef(e){return Pe(()=>{let t={};for(let[r,n]of Object.entries(e))t[r]=He(n);return{link:[t]}}),null}function tf(e){return Pe(()=>{let t={};for(let[r,n]of Object.entries(e))t[r]=He(n);return{script:[t]}}),null}function rf(e){return Pe({base:e.href}),null}function nf(e){return Pe(()=>({jsonLd:He(e.data)})),null}function Ls(e,t){if(!t)throw new Error("Container element not found for mount()");jr(()=>e(),t)}var Is=e=>m(()=>Te(e));async function Ds(e,t={}){let r=typeof t.root=="string"?document.querySelector(t.root):t.root??document.querySelector("#app");if(!r)throw new Error(`[Fluixi] Mount container not found: ${t.root??"#app"}`);let n=!!document.getElementById("__FLUIXI_HYDRATION__")||!!t.routes&&r.firstElementChild!=null,o=t.hydrate??n,i=ls();if(ps(i),hs(r),o){if(t.routes&&t.routes.length){let{preloadRoutes:s}=await Promise.resolve().then(()=>(Sn(),Ms));await s(t.routes,window.location.pathname)}us(),en(!0),Dt(Is(e),r),$f(),setTimeout(()=>{en(!1),tn()},100)}else Ee(Is(e),r);ms(i)}function $f(){if(typeof window>"u")return;let e=window;typeof e.__FX_REPLAY_STOP__=="function"&&e.__FX_REPLAY_STOP__();let t=e.__FX_REPLAY__;if(e.__FX_REPLAY__=void 0,e.__FX_REPLAY_STOP__=void 0,!(!Array.isArray(t)||t.length===0))for(let r of t){let n=r&&r.target;if(!n||n.isConnected===!1||typeof n.dispatchEvent!="function")continue;let o=r.type,i=o==="click"?new MouseEvent(o,{bubbles:!0,cancelable:!0}):new Event(o,{bubbles:!0,cancelable:!0});n.dispatchEvent(i)}}Sn();return Hs(Nf);})();
|
package/dist/src/cdn/core.cjs
CHANGED
|
@@ -943,7 +943,7 @@ var import_signal6 = require("@fluixi/reactive/signal");
|
|
|
943
943
|
var import_dom = require("@fluixi/dom");
|
|
944
944
|
|
|
945
945
|
// src/version.generated.ts
|
|
946
|
-
var VERSION = "1.0.0-alpha.
|
|
946
|
+
var VERSION = "1.0.0-alpha.86";
|
|
947
947
|
|
|
948
948
|
// src/lib/render/versions.ts
|
|
949
949
|
var import_dom2 = require("@fluixi/dom");
|
package/dist/src/cdn/core.mjs
CHANGED
|
@@ -59,7 +59,7 @@ import { createRoot as createRoot2 } from "@fluixi/reactive/signal";
|
|
|
59
59
|
import { registerCoreVersion } from "@fluixi/dom";
|
|
60
60
|
|
|
61
61
|
// src/version.generated.ts
|
|
62
|
-
var VERSION = "1.0.0-alpha.
|
|
62
|
+
var VERSION = "1.0.0-alpha.86";
|
|
63
63
|
|
|
64
64
|
// src/lib/render/versions.ts
|
|
65
65
|
import { stampVersions, warnOnVersionSkew, versions } from "@fluixi/dom";
|
package/dist/src/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @fluixi/core v1.0.0-alpha.
|
|
1
|
+
/*! @fluixi/core v1.0.0-alpha.86 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -141,7 +141,7 @@ __export(index_exports, {
|
|
|
141
141
|
module.exports = __toCommonJS(index_exports);
|
|
142
142
|
|
|
143
143
|
// src/version.generated.ts
|
|
144
|
-
var VERSION = "1.0.0-alpha.
|
|
144
|
+
var VERSION = "1.0.0-alpha.86";
|
|
145
145
|
|
|
146
146
|
// src/lib/core.ts
|
|
147
147
|
var import_signal15 = require("@fluixi/reactive/signal");
|
package/dist/src/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @fluixi/core v1.0.0-alpha.
|
|
1
|
+
/*! @fluixi/core v1.0.0-alpha.86 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
|
|
2
2
|
|
|
3
3
|
// src/version.generated.ts
|
|
4
|
-
var VERSION = "1.0.0-alpha.
|
|
4
|
+
var VERSION = "1.0.0-alpha.86";
|
|
5
5
|
|
|
6
6
|
// src/lib/core.ts
|
|
7
7
|
import {
|