UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 114 kB
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{cM as t,lM as n}from"./control-ui-boot-shared-DFTSUQQ0.js";function r(e){return e instanceof a?e.cause:e}var i,a,o,s,c;function l(){return(l=e((()=>{i=class extends Error{constructor(e){let t=Error,n=t.stackTraceLimit;n!==void 0&&(t.stackTraceLimit=0),super(),n!==void 0&&(t.stackTraceLimit=n),this.source=e}},a=class extends Error{constructor(e,t){try{var n=String(t instanceof Error?t.message:t)}catch{}super(n,{cause:t}),this.source=e}},o=class extends Error{constructor(e=`Timed out waiting for condition`){super(e),this.name=`TimeoutError`}},s=class extends Error{constructor(){super(``)}},c=class extends Error{constructor(){super(``)}}})))()}var u,d,f,p,m,h,ee,te,ne,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,g,me,he,_,ge,_e,ve,ye,be;function v(){return(v=e((()=>{u=1024,d=2048,f=4096,p=8192,m=16384,h=32768,ee=65536,te=1<<17,ne=1<<18,re=1<<19,ie=1<<20,ae=1024,oe=2048,se=4096,ce=1<<18,le=1<<21,ue=8192,de=32768,fe=16384,pe=1<<19,g=1<<17,me=65536,he=1<<22,_={},ge={},_e=typeof Proxy==`function`,ve={},ye=Symbol(`refresh`),be=Set})))()}function xe(e){let t=e.De;for(;t;)t.R|=32,xe(t),t=t.pe}function Se(e){e.l&=-33,wn(e)}function Ce(e){try{e()}catch(e){Re||=[e],w()}}function we(e){let t=Re;if(Re=void 0,t&&!e)throw t[0]}function Te(e,t=!1,n){let r=e.R;if(r&64)return;t&&!n&&e.T!==null&&(e.T.Ue!==null||e.T.me!==null)&&Te(e,!1,!0),t&&(e.R=r|64),t&&e.X&&(e.T!==null&&(e.T.Se=null),(e.m&1&&e.T?.Re!=null||r&2048||sn.length)&&w());let i=n?e.T.Ue:e.De;for(n?e.T.Ue=null:e.De=null;i;){let e=i;e.l&=-33,mn(e,k),Cn(e),i.Ze=i,Te(i,!0),i=i.pe}if(n||(e.ye=0),t&&!n&&!(r&32)&&e._parent!==null&&!(e._parent.R&64)){let t=e.Ze,n=e.pe;t===null?e._parent.De=n:t.pe=n,n!==null&&(n.Ze=t),e.Ze=null}if(De(e,n),t&&e.Je){let t=e.Je;e.Je=void 0,Ce(t)}}function Ee(e,t){let n=e.De;t.Ze=null,t.pe=n,n!==null&&(n.Ze=t),e.De=t}function De(e,t){let n=t?e.T.me:e.He;if(n){if(t?e.T.me=null:e.He=null,Array.isArray(n))for(let e=n.length-1;e>=0;e--)Ce(n[e]);else Ce(n)}}function Oe(e,t){let n=e;for(;n.l&4&&n._parent;)n=n._parent;if(n.id!=null)return je(n.id,t?n.ye++:n.ye);throw Error(``)}function ke(e){return Oe(e,!0)}function Ae(e,t,n){return e?.id??(t?n?.id:n?.id==null?void 0:ke(n))}function je(e,t){let n=t.toString(36),r=n.length-1;return e+(r?String.fromCharCode(64+r):``)+n}function Me(){return V?H:null}function y(){return H}function Ne(e,t=H){return t&&(t.He?Array.isArray(t.He)?t.He.push(e):t.He=[t.He,e]:t.He=e),e}function Pe(e){return!!(e.R&64)}function Fe(e=!0){Te(this,e),Re&&!M.q&&we()}function Ie(e){let t=H,n=e?.transparent??!1,r={id:Ae(e,n,t),l:n?4:0,R:0,Qe:!0,Ye:t?.Qe?t.Ye:t,De:null,pe:null,Ze:null,He:null,A:t?.A||ve,ye:0,T:null,_parent:t,dispose:Fe};return t&&Ee(t,r),r}function Le(e,t){let n=Ie(t);return B(n,()=>e(Fe.bind(n,!0)))}var Re;function b(){return(b=e((()=>{v(),U(),jn(),yn(),N()})))()}function ze(e,t,n,r,i,a,o,s,c){Dt=e,E=t,Ot=n,kt=r,At=i,jt=a,Mt=o,Nt=s,Pt=c}function Be(e,t,n,r,i){Ft=e,It=t,Lt=n,Rt=r,zt=i}function Ve(e,t){Bt=e,Vt=t}function He(e,t){Ht=e,Ut=t}function Ue(e){Wt=e}function We(e,t=null){let n={tn:[],un:[[],[]],En:[],cn:null,_parent:t,v:e,he:null,tt:0,nt:!1,en:null,ke:!1,ln:!1,I:null};return e||qt.push(n),n}function Ge(e){D=e}function Ke(e,t){if(M.q&&!t||O!==null)return C(e);Jt===null?Jt=S(e):Je(S(e),Jt),w()}function x(e){return e.T.Re=S(e.T.Re)}function qe(e){return e=S(e),qt.indexOf(e)===-1?null:e}function S(e){for(;e.cn!==null;)e=e.cn;return e}function C(e){let t=O;t===null?O=e===null?We(!1):S(e):e!==null&&Je(S(e),t),M.q||w()}function Je(e,t){e=S(e),t=S(t),!(e===t||e.v||t.v)&&(e.cn=t,t.tt+=e.tt,t.nt||=e.nt,_t(t.tn,e.tn),_t(t.un[0],e.un[0]),_t(t.un[1],e.un[1]),_t(t.En,e.En),e.I!==null&&_t(t.I??=[],e.I),qt.splice(qt.indexOf(e),1))}function Ye(e){let t=Yt;Yt??=e;let n=e.tt!==0||Qe(e.tn,e)||!!Pt?.(e);return Yt=t,n}function Xe(e){return Qe(e.tn,e,!0)}function Ze(e,t){let n=e.T?.fe;if(n===void 0)return!0;for(let e of n){let n=e.T?.Re;if(n==null||S(n)===t)return!0}return!1}function Qe(e,t,n=!1){for(let r=0;r<e.length;r++){let i=e[r];if(!(!(i.m&1)||i.R&64||i.l&8192||i.T.Re!==null&&x(i)!==t||n&&!Ze(i,t))){if(i.i===1){if($e(i,Yt??t))return!0}else for(let e=i.o;e!==null;e=e.t){let n=e.u;if((n.i===1&&n.m&1||n.R&2048||n.l&16384&&n.m===1)&&(e.Te===n.Ne||n.T?.F!=null)&&!(n.R&64)&&$e(n,Yt??t))return!0}}}return!1}function $e(e,t){return!(e.R&32&&et(e,t))&&!Lt?.(e)}function et(e,t){let n=e;for(;n?.R&32;)n=n._parent;return n?.l&256&&n.T?.Re!=null&&x(n)===S(t)}function tt(e){Xt.push(e)}function nt(e){mn(e,k),e.R&=-4,Zt.push(e)}function rt(e,t){e.l|=256,it(e,t)}function it(e,t){let n=F(e);n.Re!==t&&(n.Re=t,t.tn.push(e))}function at(e,t){for(let n=e.De;n!==null;n=n.pe)n.T?.Re?.v||(n.X!==void 0&&(n.l&256||rt(n,t),n.l|=ie),at(n,t))}function ot(e,t,n){for(let r=e.De;r!==null;r=r.pe)(r.l&2304)==256&&x(r)!==t&&n(r),ot(r,t,n)}function st(e){e.T.Re=null,e.l&=-257}function ct(){nn++}function lt(){nn--}function ut(e){rn=e}function dt(){return++an}function w(){$t?pt():Qt||(Qt=!0,!tn&&!M.q&&queueMicrotask(Tt))}function ft(e){if($t)return;$t=!0,we(!0);let t=`[REACTIVITY_HALTED]`,n=e!==void 0&&globalThis.reportError;n||e===void 0?console.error(t):console.error(t,e),n&&n(e)}function pt(){en||(en=!0,console.error(`[REACTIVITY_HALTED]`))}function mt(e){let t;for(let n=0;n<e.En.length;n++){let r=e.En[n];if(!(r.R&64||r.m&2)&&(r.R&2048||r.l&32768)){t||=r.i,r.R&=~d,r.Ae=!1;for(let e=r.De;e!==null;e=e.pe)e.i&&(e.Ae=!1);un(r)}}return e.En.length=0,t}function ht(e){let t=mt(e);e.I!==null&&Ht(e.I);for(let t=0;t<e.tn.length;t++){let n=e.tn[t];n.T.Re!==null&&x(n)===e&&(n.T.Re=null,Ct(n))}O===e&&(O=null),t?M.un[1].push(()=>gt(e)):gt(e)}function gt(e){for(let t=0;t<2;t++)_t(M.un[t],e.un[t]),e.un[t]=[]}function _t(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function vt(e,t){e.R&2048||(e.R|=d,t.En.push(e))}function yt(e){sn.push(e),M.q||_r()}function bt(){ln++}function T(e){e.Me=ln;let t=!!(e.l&512)&&e.T?.Pe!==void 0;for(let n=e.o;n!==null;n=n.t){let e=n.u;e.R&4&&n.Te===e.Ne&&n!==e._&&(e.R|=f),t&&e.l&8?e.R|=256:un(e)}}function xt(e,t){for(let n=e.o;n!==null;n=n.t){let e=n.u.T?.Re;(e?.v?St(e,t):n.u.i)&&(n.u.R|=ee)}}function St(e,t){return e===t||e.en!==null&&e.en===t.en}function Ct(e){let t=e;if(!t.X){e.l&=-385,e.ue!==_&&(e.Ie=e.ue,e.ue=_);return}let n=e.ue===_&&!!(t.m&1),r=e.l&le;if(!n&&t.T&&(t.T.de=void 0),e.l=n?e.l&-1048833|ae:e.l&-3147137,r){let n=e.ue;e.ue=_,e.ie=A+1,Yn(t,2,n)}else e.ue!==_&&(e.Ie=e.ue,e.ue=_,t.m&=-5,t.T!=null&&(t.T.Ve=!1,t.T.je=_),e.i&&e.i!==3&&(e.Ae=!0,M.enqueue(e.i,e.W??=j.K.bind(null,t))));t.ce=!1,t.R&=~u,t.T?.F??Sn(t),t.m&1||(t.m&=-5),!n&&t.T!=null&&(t.T.Ue!==null||t.T.me!==null)&&j.Ce(t,!1,!0)}function wt(){for(let e=0;e<sn.length;e++){let t=sn[e];t.l&2304||Ct(t)}sn.length=0}function Tt(e){if(nn>0)return e?e():void 0;if(e){tn++;try{return e()}finally{try{Tt()}finally{tn--}}}if(!M.q&&!$t){for(;Qt;)M.flush();we()}}function Et(e,t){for(let n=0;n<e.length;n++)e[n](t)}var Dt,E,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,D,O,Jt,Yt,Xt,Zt,k,A,Qt,$t,en,tn,nn,rn,an,on,j,sn,cn,ln,M;function N(){return(N=e((()=>{v(),Zn(),U(),jn(),yn(),b(),Dt=null,E=null,Ot=null,kt=null,At=null,jt=null,Mt=null,Nt=null,Pt=null,Ft=null,It=null,Lt=null,Rt=null,zt=null,Bt=null,Vt=null,Ht=null,Ut=null,Wt=null,Gt=void 0,Kt=void 0,qt=[],D=null,O=null,Jt=null,Yt=null,Xt=[],Zt=[],k={$e:Array(2e3).fill(void 0),p:!1,Ge:0,et:0},A=0,Qt=!1,$t=!1,en=!1,tn=0,nn=0,rn=0,an=0,on=Symbol.for(`solid-js/root-error-hook`),j=class e{un=[[],[]];q=!1;flush(){if(!this.q){this.q=!0,xr(),D=null,Jt=null;try{Tn(),_n(k,e._e),this.settle(),A++,Qt=k.et>=k.Ge||sn.length!==0,this.run(1),this.run(2)}finally{this.q=!1,Jt=null}}}settle(){Mt?.()&&_n(k,e._e);let t=O;O=null,At?.(t);let n=t!==null&&!t.v?S(t):null;if(n!==null){let e=sn.length;for(let t=0;t<e;t++){let e=sn[t];if(!(e.l&2304)&&(e.T===null||e.T.Re===null||!e.T.Re.v)){if(e.ue===_&&e.m&4&&e.i!==1)continue;if(e.ue!==_&&!(e.m&5)&&e.T?.Ue==null&&e.T?.me==null&&Or(e,e.Ie,e.ue)){e.ue=_,e.l&=-129;continue}rt(e,n)}e.l&128&&at(e,n)}sn.length=0,Bt?.(n);let t=Zt.splice(0);if(Wt){t.sort((e,t)=>e.Fe-t.Fe);for(let e=0;e<t.length;e++)(t[e].R&96)==32&&t[e].l&32768&&er(t[e])}}else{wt();for(let e=0;e<Xt.length;e++){let t=Xt[e];t.T?.F==null&&!t.Ae&&Sn(t)}}Xt.length&&(Xt.length=0);let r=this.un,i=this.un=[[],[]];jt&&(jt(n===null?null:cn),cn.length&&(cn.length=0)),this.un=[[],[]];for(let e=qt.length-1;e>=0;e--){let t=qt[e];Ye(t)||(qt.splice(e,1),Nt?.(t),ht(t),e=qt.length)}Vt?.();let a=n&&qe(n);Ut?.(a);let o=a!==null;for(let e=0;e<2;e++)o&&_t(a.un[e],r[e]),this.un[e]=o||i[e].length||this.un[e].length?i[e].concat(o?[]:r[e],this.un[e]):r[e];if(Zt.length!==0){let e=Zt.splice(0).sort((e,t)=>e.Fe-t.Fe);for(let t=0;t<e.length;t++)e[t].R&64||er(e[t])}Rt?.()}run(e){let t=this.un[e-1];t.length&&(this.un[e-1]=[],Et(t,e))}enqueue(e,t,n=D){e&&(n===null?this:n).un[e-1].push(t),w()}notify(e,t,n,r){return Ft?.(e,n&t,r)?!0:t&1?(n&1&&D===null&&C(null),!0):!1}},sn=[],cn=[],ln=0,M=new j})))()}function un(e){k.Ge>e.Fe&&(k.Ge=e.Fe),fn(e,k)}function dn(e,t){let n=(e._parent?.Qe?e._parent.Ye?.Fe:e._parent?.Fe)??-1;n>=e.Fe&&(e.Fe=n+1);let r=e.Fe,i=t.$e[r];if(i===void 0)t.$e[r]=e;else{let t=i.We;t.be=e,e.We=t,i.We=e}r>t.et&&(t.et=r)}function fn(e,t){let n=e.R;n&12||(n&1?e.R=n&-4|10:(e.R=n|8,t.p&&gn(e)),n&16||dn(e,t))}function pn(e,t){let n=e.R;n&28||(e.R=n|16,dn(e,t))}function mn(e,t){let n=e.R;if(!(n&24))return;e.R=n&-25;let r=e.Fe;if(e.We===e)t.$e[r]=void 0;else{let n=e.be,i=t.$e[r],a=n??i;e===i?t.$e[r]=n:e.We.be=n,a.We=e.We}e.We=e,e.be=void 0}function hn(e){if(!e.p){e.p=!0;for(let t=0;t<=e.et;t++)for(let n=e.$e[t];n!==void 0;n=n.be)n.R&8&&gn(n)}}function gn(e,t=2){let n=e.R;if(!((n&3)>=t)){e.R=n&-4|t;for(let t=e.o;t!==null;t=t.t)gn(t.u,1)}}function _n(e,t){for(e.p=!1,e.Ge=0;e.Ge<=e.et;e.Ge++){let n=e.$e[e.Ge];for(;n!==void 0;)n.R&8?t(n):vn(n,e),n=e.$e[e.Ge]}e.et=0}function vn(e,t){mn(e,t);let n=e.Fe;for(let t=e.C;t;t=t.G){let e=t.S;e.X&&e.Fe>=n&&(n=e.Fe+1)}if(e.Fe!==n){e.Fe=n;for(let n=e.o;n!==null;n=n.t)pn(n.u,t)}}function yn(){return(yn=e((()=>{v(),N()})))()}function bn(e){Dn=e}function xn(e){let t=e.S,n=e.G,r=e.t,i=e.Xe;if(r===null?t.ve=i:r.Xe=i,i!==null)i.t=r;else if(t.o=r,r===null){t.l&4096?Dn(t):t.T?.we&&Ce(t.T.we);let e=t;e.X&&e.l&32&&!(e.R&32)&&!(e.m&1)&&(On?On.push(e):wn(e))}return n}function Sn(e){let t=e._,n=t===null?e.C:t.G;if(n!==null){do n=xn(n);while(n!==null);t===null?e.C=null:t.G=null}}function Cn(e){let t=e.C;if(t){do t=xn(t);while(t!==null);e.C=null,e._=null}}function wn(e){mn(e,k),Cn(e),Te(e,!0)}function Tn(){if(An.size!==0){for(let e of An)!e.o&&e.l&32&&!(e.m&1)&&!(e.R&96)&&wn(e);An.clear()}}function En(e,t){let n=t._;if(n!==null&&n.S===e)return;let r=null,i=t.R&4;if(i&&(r=n===null?t.C:n.G,r!==null&&r.S===e)){r.Te=t.Ne,t._=r;return}let a=e.ve;if(a!==null&&a.u===t&&(!i||a.Te===t.Ne))return;let o=t._=e.ve={S:e,u:t,G:r,Xe:a,t:null,Te:t.Ne};n===null?t.C=o:n.G=o,a===null?e.o=o:a.t=o,bt()}var Dn,On,kn,An;function jn(){return(jn=e((()=>{v(),yn(),b(),N(),On=null,kn=e=>On=e,An=new be})))()}function Mn(e,t){return!e.T?.fe?.has(t)&&((F(e).fe??=new be).add(t),!0)}function Nn(e,t){let n=e.T?.fe;return n?.delete(t)?(n.size||(e.T.fe=void 0),!0):!1}function Pn(e){e.T!==null&&(e.T.fe=void 0)}function Fn(e,t){for(let n=e.C;n;n=n.G){let e=n.S;if(e===t||e.T?.fe?.has(t))return!0}return!1}function In(e,t){F(e).se=!0,t.source&&Mn(e,t.source),e.m&2||Ln(e,t.source,t)}function Ln(e,t,n){if(!t){e.T!==null&&(e.T.F=null);return}if(n instanceof i&&n.source===t){F(e).F=n;return}let r=e.T?.F;(!(r instanceof i)||r.source!==t)&&(F(e).F=new i(t))}function Rn(e,t){for(let n=e.o;n!==null;n=n.t)t(n.u,n)}function zn(e){e.X&&e.l&32&&!e.o&&!(e.R&32)&&!(e.m&1)&&wn(e)}function Bn(e){let t,n=new be,r=e=>{n.has(e)||(n.add(e),!e.o&&e.l&32&&(t??=[]).push(e),Rn(e,r))};if(Rn(e,r),t)for(let e of t)zn(e)}function Vn(e,t,n){return!(e.l&256||n&&e.R&16384&&M.q&&!e.fam)||D?!1:(Pn(e),e.T&&(e.T.se=!1),(e.m&=6)&2||Ln(e),e.ue=t instanceof a?t:new a(e,t),e.l|=128|le,Un(e),w(),!0)}function Hn(e,t){let n=!1,r=new be,i=e=>{r.has(e)||(r.add(e),e.T?.F===t&&(un(e),n=!0),Rn(e,i))};Rn(e,i),n&&w()}function Un(e,t=e){Nn(e,t);let n=!1,r,i=new be,a=o=>{if(i.has(o)||t!==e&&Fn(o,t)||!Nn(o,t))return o.l&32768&&un(o);i.add(o),o.ie=A;let s=o.T?.fe?.values().next().value,c=o.m&2;s?c||Ln(o,s):(o.m&=-2,c||Ln(o),o.l&256&&C(x(o)),o.T?.se&&(un(o),n=!0),o.T!==null&&(o.T.se=!1),!o.o&&o.l&32&&(r??=[]).push(o)),Rn(o,a)};if(Rn(e,a),r)for(let e of r)zn(e);n&&w()}function Wn(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}function Gn(e){let t=e.T?.ae;t!=null&&(e.T.ae=null,t())}function Kn(e,t,n,r){let a=!1,o=!1;if(typeof t==`object`&&t&&L(()=>{a=t[Symbol.asyncIterator],o=!a&&Wn(t)}),!o&&!a)return e.T!==null&&(e.T.Se=null),e.ce=!1,t;F(e).Se=t,e.T.Ee=rn||2147483647,e.T.fe=void 0;let s,c=a=>{if(e.T?.Se!==t)return;let o=a instanceof i;o&&e.ce?(e.T!==null&&(e.T.Se=null),In(e,a),e.ie=A):((o||n||!Vn(e,a))&&(Yn(e,o?1:2,a),o||Te(e,!1,!0)),o&&Un(e),e.ie=A,o||Bn(e),r?.(a,o))},l=(r,i)=>{if(e.T?.Se!==t||e.R&2)return;let a=e.m&4;if(Jn(e),n){try{n(r)}catch(e){c(e);return}e.l&256||(e.T.de=void 0),a&&Jn(e,!0)}else z(e,()=>r);e.ue===_&&(e.ce=!1,Sn(e)),Un(e),w(),Tt(),i?.()},u=()=>e.l&32&&!e.o&&!(e.m&1)?(wn(e),!0):!1,d=(n,r)=>{let i=n[Symbol.asyncIterator](),a=!1,o=!1,d=!r,f=()=>{if(!o){o=!0;try{let e=i.return?.();Wn(e)&&e.then(void 0,()=>{})}catch{}}};Ne(f,r),F(e).ae=f;let p=()=>{try{u()||m()}catch(e){c(e)}},m=()=>{let n,r,f=!1,h=!1,ee=!0,te=i.next();if((Wn(te)?te:{then:e=>void e(te)}).then(r=>{if(ee&&d)n=r,f=!0,r.done&&(o=!0);else if(e.T?.Se!==t)return;else r.done?(o=!0,a?(w(),Tt()):l(void 0),u()):(a=!0,l(r.value,p))},n=>{ee&&d?(r=n,h=!0):e.T?.Se===t&&(o=!0,c(n),u())}),ee=!1,h){if(o=!0,c(r),d)throw r;return!0}return f&&!n.done?(s=n.value,a=!0,m()):f&&n.done},h=m();return d=!1,a||h},f=null,p=(e,t)=>{let n=!1;if(typeof e==`object`&&e&&L(()=>{n=e[Symbol.asyncIterator]}),!n)return!1;s=void 0;let r=d(e,t);return t||(f=r),!0};if(o){let n=!1,r=!1,i,a=!0;if(t.then(r=>{if(a)s=r,n=!0;else{try{if(e.T?.Se===t&&!(e.R&64)&&p(r,e))return;l(r)}catch(e){c(e)}u()}},e=>{a?(i=e,r=!0):(c(e),u())}),a=!1,r)throw c(i),i;n?p(s)||(e.ce=!1):f=!1}if(a&&p(t),f!==null){if(!f){if(e.ce)return e.Ie;throw new i(H)}e.ce=!1}return s}function qn(e,t=!1){e.T?.fe&&Pn(e),e.T?.se&&(e.T.se=!1),e.m=t?0:e.m&4,e.T?.F&&Ln(e);let n=ur(e);n&&n.call(e)}function Jn(e,t=!1){let n=e.T?.fe;n&&(n.delete(e),n.size)?(e.T.se=!1,t&&(e.m=1),Ln(e,n.values().next().value)):qn(e,t)}function Yn(e,t,n){t===2&&!(n instanceof a)&&!(n instanceof i)&&(n=new a(e,n));let r=t===1&&n instanceof i?n.source:void 0;if(t===1&&r?(e.m&2&&(e.T.de=e.T.F),Mn(e,r),e.m=1|e.m&4,Ln(e,r,n)):(Pn(e),e.m=t|(t===2?0:e.m&4),F(e).F=n),t===1&&e.l&8192){D===null&&C(null);return}let o=ur(e);o?o.call(e):Xn(e,t,n)}function Xn(e,t,n){let r=t===1&&n instanceof i?n.source:void 0;Rn(e,(i,a)=>{i.ie=A,i.l&49152||t===1&&a.Te!==i.Ne?(un(i),w()):t===1&&r&&i.T?.fe?.has(r)?D===null&&(i.l&2304)==256&&M.q&&!It?.(i,r.ie===A)&&C(x(i)):(t===1&&r||t!==1&&(i.T?.F!==n||i.T?.fe))&&(E&&D!==null?E(i,D,!0,e):(yt(i),t===1&&(i.l&2304)==256&&!i.i&&C(x(i))),Yn(i,t,n))})}function Zn(){return(Zn=e((()=>{v(),U(),l(),jn(),yn(),b(),N()})))()}function Qn(e){let t=e._parent;for(;t.R&32;)t=t._parent;return(t.l&10240)==2048||t.i&&t.T?.Re?.v}function $n(e){for(;e;){if(e.Oe)return!0;e=e._parent}return!1}function er(e,t=!1){bt();let n=e.i,r,a=D,o=Nr,s=E&&(Nr=t&&(a||o));if(Ge(E?(e.R&65536||(e.l&10240)==2048)&&e.T?.Re?.v?e.T.Re:t&&a?._parent.he!=a&&or(H)?.R&4?a:null:null),!t){if(mn(e,k),e.T!==null&&(e.T.Se=null,Gn(e)),e.m&1&&(e.l&=~de),e.l&256){let t=x(e);t.v||e.l&524288||(n!==1&&!(e.l&32768)?Ke(t,It?.(e,e.m&4)):t!==O&&!(e.m&4||e.l&1048576)&&(e.ue=_,n===1&&(e.l&=-257)))}if(n===3||e.l&128){let t=On;kn(r=[]),Te(e),kn(t)}else(e.De!==null||e.He!==null)&&sr(e);e.l&2097152&&(e.ue=_,e.l^=le)}let c=!!(e.m&4),l=e.m&2?e.T?.F:void 0,u=e.m&1?e.T?.fe:void 0,ee=e.T?.fe?.has(e),ie=!1,ae=!!(e.R&8192)&&!(e.m&1&&e.T!==null&&!e.T.Ve),oe=H;H=e,e._=null,e.Ne++,e.R=4|e.R&(32|p),e.ie=A;let se=e.ue===_?e.l&2048&&e.T.v!==_?e.T.v:e.Ie:e.ue,ce=e.Fe,ue=!1,fe=!1,pe=V;V=!0;try{if(e.l&64)se=e.X(se),e.T!==null&&(e.T.Se=null),e.ce=!1;else{let t=e.T?.Se,n=e.X(se),r=typeof n==`object`&&!!n,i=e.T?.Se!==t;se=i||!r?n:Kn(e,n),!i&&!r&&(e.T!==null&&(e.T.Se=null),e.ce=!1)}(e.m!==0||e.T!==null)&&qn(e,t)}catch(t){let n=t instanceof i;if(n&&e.ce)In(e,t);else if((n||!(ie=Vn(e,t,!0)))&&(n&&(F(e).se=!0),Yn(e,n?1:2,t),n&&ee&&!e.T?.Se&&Un(e)),(n||ie)&&u)for(let t of u)t!==e&&!e.T?.fe?.has(t)&&Un(e,t)}finally{if(V=pe,E&&(Nr=o),ue=(e.R&f)!==0,fe=!!(e.R&(s&&(a||n||!(e.m&1))?128|m:128)),e.l=e.l&~de|e.R&h,e.R=e.R&(96|d|m|te|ne|re)|(t?e.R&256:0),H=oe,r)for(let e of r)zn(e);e.T!==null&&(e.T.Ve=ae&&!!(e.m&1))}if(e.R&64){Cn(e),e.T!==null&&(e.T.Se=null),Ge(a);return}let g=E?D:null,me=!!e.T?.F||ie;if(E&&g!==null&&(E(e,g,t,me)?Ge(g):g=null),!me){let r=e.ue===_?e.l&2048&&e.T.v!==_?e.T.v:e.Ie:e.ue,i=!n&&c||!!e.T?.de||!Or(e,r,se);if(n&&i&&!(e.R&262144&&!e.Ae&&Object.is(e.ge,se))&&e.ue===_&&(e.Ae=!e.T?.F,(!t||g!==null)&&M.enqueue(n,e.W??=j.K.bind(null,e),g)),!(!t&&g===null&&e.l&8192&&Ot(e,se,me))&&!me){if(i)g===null?(t?!((O!==null||Jt!==null)&&(fe||or(oe)?.R&128)):n&&e.ue===_)?e.Ie=se:(e.ue=se,t&&(rt(e,O??Jt),e.m|=4,It?.(e,!s&&O))):n&&e.ue===_?e.Ie=se:n||g.ke?e.ue=se:e.T.v=se,e.o!==null&&(T(e),g!==null&&xt(e,g));else if(e.Fe!=ce)for(let t=e.o;t!==null;t=t.t)pn(t.u,k)}if(!i&&!e.T?.F&&(l!==void 0&&Hn(e,l),u))for(let t of u)t!==e&&Un(e,t);ee&&!(e.m&5)&&Un(e)}if(t&&g===null&&fe&&e.m&1){let t=O??Jt;t&&!t.v&&It?.(e)!==2&&rt(e,t)}!e.T?.F&&e.ue===_&&!(n&&e.Ae)&&(t||n===3?Sn(e):tt(e)),(e.ue!==_||e.T!==null&&(e.T.Ue!==null||e.T.me!==null)||e.m&5&&(!t||e.m&1))&&(e.l|=128,g===null&&yt(e)),Ge(a),ue&&(un(e),w())}function tr(e){if(!(e.R&68)){if(e.R&1)for(let t=e.C;t;t=t.G){let n=t.S;if(n.X&&tr(n),e.R&2)break}(e.R&2||e.T?.F&&e.ie<A&&!e.T?.Se)&&er(e),e.R&=376|u|d|m|te|ne|re}}function P(e,t){let n=t?.transparent??!1,r=typeof t==`object`&&!!t&&`loadingValue`in t,i={id:Ae(t,n,H),l:(n?4:0)|!!t?.ownedWrite|(!H||t?.lazy?32:0)|(t?.sync?64:0)|(t?.le?2:0)|(t?.Le??0)|(Mr&&$n(H)?8:0),xe:t?.equals??I,He:null,A:H?.A??ve,ye:0,X:e,Ie:r?t.loadingValue:void 0,Fe:0,be:void 0,We:null,C:null,_:null,Ne:0,o:null,ve:null,_parent:H,pe:null,Ze:null,De:null,R:t?.lazy?512:0,m:r?0:4,ie:A,ue:_,Me:-1,ce:r,T:null};return t?.unobserved&&(F(i).we=t.unobserved),dr(i,t),i}function F(e){return e.T??={Se:null,ae:null,F:void 0,se:void 0,fe:void 0,we:void 0,Pe:void 0,Ue:null,me:null,Re:null,Ve:!1,je:_,Be:-1,Ee:0,v:_,I:0,de:void 0}}function nr(e,t){e.R|=128,(t.m&4||e.i!==1)&&Ke(x(t),!e.i&&e.m&4||It?.(e))}function rr(e,t){e.R|=128,Ke(t,!e.i&&e.m&4||It?.(e))}function ir(e,t){let n=Wt&&e.l&32768,r=E&&D!==null;if((!r||e.m&4&&t.m&1)&&!n&&(e.i!==1||t.l&1024))return!1;let i=x(t);return i===O&&!r&&!n||ar(e,i)?!1:(vt(e,i),!0)}function ar(e,t){return(e.m&4||e.l&1048576)&&e.l&256&&x(e)===t}function or(e){return e!==null&&e.Qe?e.Ye:e}function sr(e){xe(e);let t=F(e);t.me=e.He,t.Ue=e.De,e.He=null,e.De=null,e.ye=0}function cr(e,t,n,r,i){let a=i?.transparent??!1,o={id:Ae(i,a,H),l:(a?4:0)|!!i?.ownedWrite|(i?.sync?64:0)|(i?.Le??0)|(Mr&&$n(H)?8:0),xe:!1,He:null,A:H?.A??ve,ye:0,X:e,Ie:void 0,Fe:0,be:void 0,We:null,C:null,_:null,Ne:0,o:null,ve:null,_parent:H,pe:null,Ze:null,De:null,R:512,m:4,ie:A,ue:_,Me:-1,ce:!1,Ae:!1,ge:void 0,Ke:t,qe:n,Je:void 0,i:r,T:null};return i?.unobserved&&(F(o).we=i.unobserved),dr(o,Ir),o}function lr(e){Fr=e}function ur(e){return e.i?Fr:null}function dr(e,t){e.We=e;let n=H?.Qe?H.Ye:H;H&&Ee(H,e),n&&(e.Fe=n.Fe+1),Gt?.(e),!t?.lazy&&er(e,!0),Mr&&!t?.lazy&&!(e.m&1)&&!(e.l&2)&&(F(e).Pe=e.Ie===void 0?ge:e.Ie,e.l|=512,Pr.add(e))}function fr(e,t){let n={xe:t?.equals??I,l:+!!t?.ownedWrite|(t?.le?2:0),Ie:e,o:null,ve:null,ie:A,ue:_,Me:-1,T:null};return t?.unobserved&&(F(n).we=t.unobserved),Mr&&!(n.l&2)&&(F(n).Pe=e===void 0?ge:e,n.l|=512,Pr.add(n)),n}function I(e,t){return e===t}function pr(e,t,n,r,i){return{xe:t,l:1|se,Ie:e,o:null,ve:null,ie:A,ue:_,Me:-1,T:null,O:n,ze:r,acc:i,px:void 0,pxv:void 0}}function mr(e){Lr=e}function L(e,t){let n=V;V=!1;try{return Kt?Kt(e):e()}finally{V=n}}function hr(e,t){if(e.R&512)e.R&=-513,er(e,!0);else if(e.R&64&&e.l&32){let t=e._parent;if(t!==null){if(t.R&64){e.l&=-33;return}e.R&32||Ee(t,e)}er(e,!0)}}function gr(e,t){return!t||e.ue===_||t.l&16}function _r(){Rr=!0}function vr(e){return M.q||e.ue===_||e.l&4194304?_:e.l&256?e.T.Be===A?e.T.je:_:e.Ie}function yr(e){let t=e.T;t.Be!==A&&(t.je=e.ue,t.Be=A,Rr=!0)}function br(e){return e.R|=f,!0}function xr(){if(Rr=!1,zr.length!==0){for(let e of zr)e.l&=~he;zr.length=0}}function Sr(e,t){e.Fe>=k.Ge?(gn(t),hn(k),tr(e)):t.l&65536&&tr(e);let n=e.Fe;n>=t.Fe&&e._parent!==t&&(t.Fe=n+1)}function R(e){let t=H;t?.Qe&&(t=t.Ye);let n=e,r=e;if(typeof n.X==`function`&&hr(e),Lr!==null)return Lr(e,t);if(!n.X&&e.T?.Pe===void 0&&!Mr&&(!Rr||e.ue===_)&&!(e.l&2048)){if(t&&(V&&En(e,t),e.l&256&&!(t.l&16))){if(ir(t,e))return e.Ie;nr(t,e)}return!t||e.ue===_||t.l&16||(Wt&&t.l&32768||E&&D?.folded)&&Tr(t)?e.Ie:(wr(t),e.ue)}let i=!1;if(t&&(V&&(En(e,t),r.X&&(Sr(r,t),t.i||(t.R|=r.l&de))),e.l&256&&!(e.l&2048)&&!(t.l&16)&&(r.m&4||!ir(t,e)?nr(t,e):i=!0)),Dt&&e.l&2048){let n=Dt(t,e);if(n!==_)return n}if(r.m&1&&!i&&!(e.l&2048)&&!(r.m&4)&&(E&&D!==null&&!(t?.m&4)?i=!0:Wt&&t!==null&&t.l&32768&&(i=Wt(t,r))),r.m&1&&!i){if(t){if(!(t.l&16)||r.m&4)throw!V&&e!==t&&En(e,t),r.T?.F}else if(r.m&4)throw r.T?.F}if(r.X&&r.m&2){if(V&&r.ie<A)return er(r),R(e);throw r.T?.F}if(Mr&&t&&t.l&8){let n=e.T?.Pe;if(n!==void 0){let r=n===ge?void 0:n;return(e.ue===_?e.Ie:e.ue)!==r&&(t.R|=256),r}}if(i)return e.Ie;if(!t&&e.T?.de)throw e.T.de;let a=Cr(e,t);return!t&&typeof n.X==`function`&&e.l&32&&!(r.m&1)&&!e.o&&(An.add(e),w()),a}function Cr(e,t){if(e.ue!==_&&e.m&4&&(!t||t.l&16))throw new i(null);let n=t&&Rr?vr(e):_;if(n!==_)return br(t),n;if(gr(e,t)||Wt&&t.l&32768&&!(e.m&4)&&Tr(t))return e.Ie;if(wr(t,e),e.l&2097152)throw e.ue;return e.ue}function wr(e,t){t?.m&4||(e.R|=m,jt&&D!==null&&cn.push(e))}function Tr(e){return O===null||ar(e,O)?!1:(vt(e,O),!0)}function Er(e){M.q||e.l&4194304||(e.l|=he,zr.push(e))}function Dr(e,t){e.l&2||e.X!==void 0||e.T?.Pe!==void 0||(F(e).Pe=t===void 0?ge:t,e.l|=512,Pr.add(e))}function Or(e,t,n){if(e.xe===I)return t===n;try{return e.xe&&e.xe(t,n)}catch(t){if(!(t instanceof i))return Yn(e,2,t),!0}}function z(e,t){Br!==null&&Br(e);let n=e.ue===_?e.Ie:e.ue;if(typeof t==`function`&&(t=t(n)),kt&&e.l&2048)return kt(e,t);if(e.l&256&&C(x(e)),!(e.m&4||e.T?.de||!Or(e,n,t)))return t;Mr&&Dr(e,n);let r=e.ue!==_;return r?e.l&256&&!M.q&&yr(e):yt(e),e.ue=t,H!==null&&Er(e),e.X!==void 0&&(e.ie=A),r&&e.Me===ln||(T(e),w()),t}function kr(e,t){let n=e.l&256&&!(e.R&1024)&&x(e)!==O;if(n&&typeof t==`function`){let n=t(e.Ie);t=()=>n}return e.m&2&&(e.T.de=e.T.F,Yn(e,0,void 0)),t=z(e,t),e.l&=~le,n?(e.R=e.R&-2|2,fn(e,k),w()):e.ue!==_&&(e.R|=u),t}function B(e,t){let n=H,r=V;H=e,V=!1;try{return t()}finally{H=n,V=r}}function Ar(e,t=!0){try{return e()}finally{}}function jr(e){typeof e.X==`function`&&!(e.R&64)&&(e.R=e.R&-2|2|(e.R&11?0:p),fn(e,k),w())}var V,H,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br;function U(){return(U=e((()=>{Zn(),v(),l(),jn(),yn(),b(),N(),j._e=e=>{e.i===3?(mn(e,k),e.Ae=!0,M.enqueue(2,e.M)):e.R&32&&!(e.R&65536)?nt(e):E&&e.R&32&&Qn(e)?(mn(e,k),e.R&=-65540):er(e)},j.Ce=Te,V=!1,H=null,Mr=!1,Pr=null,Fr=null,Ir={lazy:!0},Lr=null,Rr=!1,zr=[],Br=null})))()}function Vr(e){if(!(e.l&8192)&&e.ue!==_)return e.ue;let t=e.T.v;return t===_?e.Ie:t}function Hr(e){if(Wr(e))return Vr(e);if(!(e.l&8192))throw new i(null);return e.ue===_?e.Ie:e.ue}function Ur(e){for(let t=0;t<e.tn.length;t++)for(let n=e.tn[t].o;n!==null;n=n.t)n.u.l&131072&&un(n.u)}function Wr(e){if(e.l&8192)return e.ue!==_&&e.xe&&e.xe(e.T.v,e.ue);if(e.ue===_){if(e.l&2048){for(let t=e.C;t;t=t.G)if(!Wr(t.S))return}return 1}}function Gr(){return(Gr=e((()=>{v(),l(),yn()})))()}function Kr(e){let t=We(!0,e);return W.push(t),t}function qr(e){let t=e.T.v;return e.T.Re.ke&&t!==_?t:e.Ie}function Jr(e){let t=Yr(e);return t===_?e.l&2048?Vr(e):e.Ie:t}function Yr(e){for(let t=xi.length-3;t>=0;t-=3)if(xi[t]===e)return xi[t+1];return _}function Xr(e,t){let n=Jr(e);return typeof t==`function`&&(t=t(n)),e.xe&&e.xe(n,t)&&!(e.l&8192)||(xi.push(e,t,rn||dt()),w()),t}function Zr(e){return!!(e.m&1)||!!(e.l&4096)&&j.k?.(e)===!0}function Qr(e){let t=null;for(let n=0;n<xi.length;n+=3){let r=xi[n],i=xi[n+1],a=!0,o=null;if(r.l&2048)a=!r.xe||!r.xe(Vr(r),i),r.l&8192||(r.ue=_,r.l|=ue),r.T.v=i,o=x(r)._parent;else{let n;if(r.l&256)n=Kr(o=x(r));else{if(e===null&&Zr(r)&&(e=We(!1)),e===null)continue;n=t??=Kr(e)}F(r).v=i,r.l|=oe|ue,it(r,n)}e!==null&&o!==null&&Je(e,o),F(r).Ee=xi[n+2],a&&(T(r),xt(r,x(r)))}xi.length=0}function $r(e,t){t.R|=te;let n=D;if(n===null)Ge(e),t.R&128&&t.R&16384&&wr(t);else{if(St(n,e))return Ge(e);if(!ei(n,e)){if(ei(e,n))return Ge(e);ti(n,e),Ge(e)}}}function ei(e,t){for(let n=e._parent;n!==null&&n.v;n=n._parent)if(n===t)return!0;return!1}function ti(e,t){let n=e.en??=[e],r=t.en;if(r!==n){if(r===null)n.push(t),t.en=n;else for(let e=0;e<r.length;e++)n.push(r[e]),r[e].en=n}}function ni(e){let t=e.en;if(t!==null)for(let n=0;n<t.length;n++){let r=t[n];if(r!==e&&(r.tt!==0||Xe(r)||hi(r)))return!0}return!1}function ri(e){let t=e.en;if(t===null)return;let n=t.indexOf(e);n!==-1&&t.splice(n,1),e.en=null}function ii(e){return e.he??=Kr(e)}function ai(e,t,n,r){if(!(n||r||e.R&131072||e.l&8192)){let t=e.T;if(t!==null){let n=t.Re;n?.ke&&!Ye(S(n._parent))&&(e.R|=bi),n?.v&&(t.Re=null),t.v=_}return e.l&=-1050881,!1}if(!e.i)e.l&2048||(e.ue=_,e.l=e.l&-1048833|oe,F(e)),r||(e.l&=~ue);else if(r){if(r!==!0&&!(r.m&4)&&(e.l&256||e.R&4)&&!e.T?.Re?.v)return yt(e),!1;e.R|=ee}return it(e,t),!0}function oi(e,t,n){let r=x(e),i=S(r._parent??r);n&&e.l&4096&&j.nn?.(e.T.v,t)&&(n=!1),n?(si(r,i,e),r.ke&&(e.Ie=e.T.v),e.l&=-10241,e.T.v=_,rt(e,i),e.o!==null&&T(e)):(e.l|=256,j.sn?.(r)),e.ue=t,C(i)}function si(e,t,n){let r=W.indexOf(e);r!==-1&&W.splice(r,1),ri(e);let i=e.he;i!==null&&(e.he=null,W.indexOf(i)!==-1&&si(i,null));for(let r=0;r<e.tn.length;r++){let i=e.tn[r],a=i.T;if(i===n||a.Re!==e)continue;let o=i.i,s=i.l&ue,c=a.v,l=e.ke&&!o?c:i.Ie,u=Vr(i);a.v=_,i.l&=-10241,t===null?(a.Re=null,!o&&!s&&(i.ue=u),Ct(i),o||((i.R&11||i.m&1)&&(i.l|=ae),l!==_&&(!i.xe||!i.xe(l,i.Ie))&&T(i))):s?(i.ue===_&&(i.ue=li(i)),e.ke&&(i.Ie=c),rt(i,t),T(i)):(a.Re=null,o||(l!==_&&e.ke&&(i.ue=l),i.m&1&&(a.Se=null,un(i))),e.ke?(Ct(i),o||(i.l|=ae)):((a.Ue!==null||a.me!==null)&&j.Ce(i,!1,!0),i.l&=-1048961))}t===null||e.ke&&!e.ln?gt(e):e.un[0].length=e.un[1].length=0}function ci(e,t){let n=t.l&ue,r=x(t),a=e!==null&&r.folded;if(a){let n=a(e,t);if(n!==_)return n}if(e!==null&&e.l&131072)return j.rn(t);let o=t.m;if(!n&&o&2)return _;if(e===null)return Vr(t);if(!V||e.l&16)return D===null||e.l&16?qr(t):($r(r,e),!n&&o&1?_:Vr(t));if(e.i===1&&(D===null||!St(D,r))){if(!n){if(o&1&&t.T.v===_)return _;if(t.ue!==_&&e.l&256&&O!==null&&S(O)===x(e))return t.ue}if(r.ln||!n&&o&1){if(!n&&!r.ke&&o&4)throw new i(null);return e.R&262144||(e.R|=d|ne,r.En.push(e)),qr(t)}}return $r(r,e),!n&&o&1?_:Vr(t)}function li(e){return e.l&4096&&j.fn!==void 0?j.fn(e):e.Ie}function ui(e){for(let t=0;t<e.tn.length;t++){let n=e.tn[t];if(n.l&8192&&n.T.Re===e&&Zr(n))return!0}return!1}function di(){let e=!1,t=W.slice();for(let n=0;n<t.length;n++){let r=t[n];if(W.indexOf(r)===-1)continue;let i=S(r._parent);if(!(!i.nt||i.tt!==0||i.v||Xe(i)||ui(r))){e=!0;for(let e=0;e<r.tn.length&&W.indexOf(r)!==-1;e++){let t=r.tn[e];if(t.l&8192&&t.T.Re===r){let e=t.ue===_?li(t):t.ue;oi(t,e,!t.xe||!t.xe(t.T.v,e))}}}}return e}function fi(e,t){if(t||Ye(e))e.ln=!0;else{e.ln=!1,e.ke=!0,mt(e);for(let t=0;t<e.tn.length;t++){let n=e.tn[t];n.R&bi&&(n.R^=bi,T(n));let r=n.T;r.Re===e&&(!(n.l&8192)&&!n.i&&n.ue!==_&&(r.v=n.ue,n.ue=_),(r.Ue!==null||r.me!==null)&&j.Ce(n,!1,!0),n.l&=-129)}gt(e)}}function pi(e){for(let t=W.length-1;t>=0;t--){let n=W[t];S(n._parent)===e&&(pi(n),si(n,null))}}function mi(e){return e.v&&ni(e)||hi(e)}function hi(e){for(let t=0;t<W.length;t++){let n=W[t];if(S(n._parent)===e&&(Ye(n)||ui(n)))return!0}return!1}function gi(e,t){if(e.l&8192){let n=vi(e,rn);if(j.an?.(e,t,n)||n)return e.ue=t,e.l|=256,w(),t;oi(e,t,!e.xe||!e.xe(e.T.v,t))}else{let n=x(e);if(e.xe&&e.xe(Vr(e),t))return t;n.ke?e.ue=t:e.T.v=t,e.X!==void 0&&(e.ie=A),T(e),xt(e,n)}return w(),t}function _i(e,t,n){return n?!0:vi(e,yi(e))?(e.ue=t,e.l|=256,!0):(oi(e,t,!e.xe||!e.xe(e.T.v,t)),!0)}function vi(e,t){return t!==0&&t<e.T.Ee}function yi(e){let t=0;for(let n=e.C;n!==null;n=n.G){let e=n.S;e.T!==null&&e.T.Ee>t&&e.ie===A&&(t=e.T.Ee)}return t}var W,bi,xi,Si,Ci,wi;function Ti(){return(Ti=e((()=>{v(),U(),l(),Gr(),yn(),N(),W=[],bi=1<<20,xi=[],Si=0,Ci=e=>{Si=W.length,xi.length!==0&&Qr(e)},wi=e=>{let t=[];if(e!==null)for(let n=0;n<e.length;n++){let r=e[n],i=r.T?.Re;r.R&64||i!=null&&i._parent?.he===i&&(r.l&32768?!(r.R&524288):!Ye(i._parent))||(i!=null&&i.v&&r.i&&(r.R|=ee),un(r),i!=null&&i.v&&t.indexOf(i)===-1&&t.push(i))}for(let e=Math.min(Si,W.length)-1;e>=0;e--)fi(W[e],t.indexOf(W[e])!==-1)},ze(ci,ai,_i,gi,Ci,wi,()=>W.length!==0&&di(),pi,mi),j.J=ii})))()}function Ei(e,t=!1){t&&(e.R|=re),cn.push(e)}function Di(e,t){D===null&&!(e.R&16512)&&Ge(ii(t)),e.R|=te}function Oi(e,t){return t.l&1024||t.l&256&&ar(e,x(t))?!1:(M.q&&(C(null),t.l&256||yt(t),ki(e,O,!0)),!0)}function ki(e,t,n){Di(e,t),n?vt(e,t):Vi&&t.En[t.En.length-1]!==e&&t.En.push(e)}function Ai(e,t){Vi?O===null?Ei(e,t):(t&&(Hi=!0),ki(e,O),e.R&16384&&Ei(e)):(C(null),ki(e,O))}function ji(e){let t=e.T;if(t===null)return!1;if(t.fe!==void 0){for(let e of t.fe)if(!e.T?.Ve)return!1;return!0}return t.Ve}function Mi(e){return e.m&1&&!ji(e)?!0:e.ue!==_&&!Bi&&!e.T.Ve&&!(e.m&4)&&(!!e.T.de||!e.xe||!e.xe(e.Ie,e.ue))}function Ni(e,t){t.m&4||(Vi&&!ji(t)&&(Hi=!0),e!==null&&V&&(t.l&256?ki(e,x(t)):M.q&&Ai(e,!1)))}function Pi(e){let t=H;t?.Qe&&(t=t.Ye),t!==null&&V&&(t.l|=de,t.R|=h)}function Fi(e){Pi();let t=Bi,n=Lr;Bi=!0,mr(zi);try{return e()}finally{Bi=t,mr(n)}}function Ii(e){Pi();let t=Vi,n=Hi,r=Lr;Vi=!0,Hi=!1,mr(zi);try{return e(),Hi}catch(e){if(e instanceof i&&!Hi&&H!==null)throw e;return Hi}finally{Vi=t,Hi=n,mr(r)}}function Li(e){if(e.l&2097152)throw e.ue;return e.ue}function Ri(e,t){let n=vr(e);return n===_?Li(e):(t!==null&&br(t),n)}function zi(e,t){let n=e,r=t!==null&&!(t.l&16),i=r&&V;if(t!==null&&V&&(En(e,t),n.X!==void 0&&(mr(null),Sr(n,t),mr(zi))),Vi&&j.p!==void 0&&j.p(n)&&(Hi=!0,i&&O!==null&&ki(t,O)),e.l&2048&&!(n.m&2&&!(e.l&8192))){let r=x(e);i&&ki(t,r._parent??r);let a=!!(n.m&1)&&!ji(n);return e.l&8192?(Vi&&(a||e.ue!==_&&(!e.xe||!e.xe(e.T.v,e.ue)))&&(Hi=!0),Bi&&r.folded?r.folded(null,e):e.T.v):(Vi&&a&&(Hi=!0),Bi&&!a?Vr(e):qr(e))}let a=!!(n.m&4);if(e.l&256){if(!a){let r=x(e);return i&&!Vi&&t.i===1&&D===null&&r.he!==null&&r.he.ln&&O!==r?(vt(t,r.he),e.Ie):(i&&ki(t,r),Vi&&Mi(n)&&(Hi=!0),Bi&&e.ue!==_?(!i&&O!==null&&!M.q&&C(x(e)),Ri(e,i?t:null)):e.Ie)}if(e.ue!==_&&!(n.m&1))return Vi&&r&&nr(t,e),Li(e)}else if(e.ue!==_){if(n.m&1&&!a?Ni(i?t:null,n):i&&M.q?Ai(t,!Bi&&!a):i&&Vi&&Ei(t),Bi){if(M.q)return Li(e);t!==null&&br(t)}return e.Ie}if(n.m&1){if(!a)return Ni(i?t:null,n),e.Ie;throw t!==null&&!V&&e!==t&&En(e,t),n.T?.F}if(n.X!==void 0&&n.m&2)throw n.T.F;return e.Ie}var Bi,Vi,Hi;function Ui(){return(Ui=e((()=>{v(),U(),l(),jn(),Ti(),N(),Gr(),Bi=!1,Vi=!1,Hi=!1,Ue(Oi),j.rt=()=>{Vi&&(Hi=!0)}})))()}function Wi(e,t,n){let r=rn;ut(t),C(e);let i=n();return nn===0&&Tt(),ut(r),i}function Gi(e){return(...t)=>new Promise((n,r)=>{let i=e(...t),a=We(!1);a.tt=1,a.nt=!0;let o=dt(),s=(e,t,i=!1)=>{S(a).tt--,w(),i?r(t):n(e)},c=(e,t)=>{let n;ct();try{n=t?i.throw(e):i.next(e)}catch(e){return lt(),s(void 0,e,!0)}if(lt(),Wn(n))return void n.then(l,e=>s(void 0,e,!0));l(n)},l=e=>{if(e.done)return s(e.value);let t=!1;try{if(Wn(e.value))return void e.value.then(e=>{t||(t=!0,Wi(a,o,()=>c(e)))},e=>{t||(t=!0,Wi(a,o,()=>c(e,!0)))})}catch(e){if(t)return;t=!0,Wi(a,o,()=>c(e,!0));return}Wi(a,o,()=>c(e.value))};C(a);let u=rn;ut(o),c(),ut(u)})}function Ki(){return(Ki=e((()=>{Zn(),N()})))()}var qi;function Ji(){return(Ji=e((()=>{qi=null})))()}function Yi(e,t=y()){if(!t)throw new s;let n=t.A[e.id];if(n===void 0&&(n=e.defaultValue),n===void 0)throw new c;return n}function Xi(e,t,n=y()){if(!n)throw new s;n.A={...n.A,[e.id]:t===void 0?e.defaultValue:t}}function Zi(){return(Zi=e((()=>{l(),b()})))()}function Qi(e,t,n,r){let i=cr(e,t,n,r?.user?2:1,r);er(i,!0),!r?.defer&&i.ue===_&&!i.T?.Re?.v&&(i.i===2||r?.schedule?M.enqueue(i.i,ta.bind(null,i)):ta(i,i.i))}function $i(){let e=this.m,t=this.T?.F;if(e&2){if(M.notify(this,1,0),this.i===2){this.m&2&&(this.Ae=!0,M.enqueue(this.i,this.W??=ta.bind(null,this)));return}ea(this,r(t),t,this)}else this.i===1&&M.notify(this,3,e,t)}function ea(e,t,n=t,r=e){if(!M.notify(e,2,2))throw ft(t),n}function ta(e,t){if(!e.Ae||e.R&64||zt?.(e))return;if(e.m&2&&e.i===2){let t=r(e.T?.F);e.ge=e.Ie,e.Ae=!1;try{e.qe?e.qe(t,()=>{let t=e.Je;e.Je=void 0,t?.()}):console.error(t)}catch(t){ea(e,t)}return}let n=e.T?.F==null,i=e.Je;e.Je=void 0;try{i?.(),e.Je=e.Ke(e.Ie,e.ge)}catch(t){F(e).F=new a(e,t),e.m|=2,ea(e,t)}finally{e.ge=e.Ie,e.Ae=!1,n&&Sn(e)}}function na(e,t){let n=()=>{if(!(!r.Ae||r.R&64)&&!zt?.(r))try{r.Ae=!1,er(r)}finally{}},r=P(()=>{let t=r.Je;r.Je=void 0,t?.();let n=Ar(e);r.Je=n},{...t,lazy:!0});r.Je=void 0,r.l=r.l&-33|16,r.Ae=!0,r.i=3,r.M=n,un(r),w()}function ra(){return(ra=e((()=>{v(),U(),l(),jn(),yn(),N(),j.K=ta,lr($i)})))()}function ia(e){for(let t=e;t;t=t._parent){let e=t[on];if(e!==void 0)return e}return sa}function aa(e){let t=[];for(let n=e;n;n=n._parent){let e=n._name;typeof e==`string`&&e.length&&t.push(e)}return t.length?t.reverse():void 0}function oa(e,t,n){if(e!==null&&(typeof e==`object`||typeof e==`function`)){if(ca.has(e))return;ca.add(e)}let r=ia(t);if(r===void 0)return;let i={},a=aa(t),o=aa(n)??a;o!==void 0&&(i.ownerPath=o),a!==void 0&&(i.boundaryPath=a);try{r(e,i)}catch(e){console.error(e)}}var sa,ca;function la(){return(la=e((()=>{N(),ca=new WeakSet})))()}function ua(e){return va&&_a.has(e)}function da(e){if(G(e)){if(e[K]!==void 0)return;va=!0,_a.add(e)}}function fa(e){if(Array.isArray(e))for(let t=0,n=e.length;t<n;t++)da(e[t]);else for(let t in e)da(e[t])}function G(e){if(typeof e!=`object`||!e||Object.isFrozen(e))return!1;let t=Object.getPrototypeOf(e);if(t===ya||t===null||Array.isArray(e))return!0;let n=ba.get(t);return n===void 0&&(n=Object.prototype.toString.call(e)===`[object Object]`&&(typeof Node>`u`||!(e instanceof Node)),ba.set(t,n)),n}function pa(e){return Reflect.ownKeys(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function ma(e){xa=e}var ha,K,q,ga,_a,va,ya,ba,xa;function Sa(){return(Sa=e((()=>{ha=Symbol(0),K=Symbol(0),q=Symbol(0),ga=Symbol(0),_a=new WeakSet,va=!1,ya=Object.prototype,ba=new WeakMap,xa=!1})))()}function Ca(e){return Ne(e)}function wa(e){let t=R.bind(null,e);return t[ye]=e,t}function Ta(e,t){if(typeof e==`function`){let n=P(e,t);return n.l&=-33,[wa(n),kr.bind(null,n)]}let n=fr(e,t);return qi!==null&&qi(n),[wa(n),z.bind(null,n)]}function Ea(e,t){if(typeof e==`function`){let n=P(e,t);return n.l&=-33,[wa(n),Xr.bind(null,n)]}let n=fr(e,t);return[wa(n),Xr.bind(null,n)]}function Da(e,t){return wa(P(e,t))}function Oa(e,t,n){Qi(e,t.effect||t,t.error,{user:!0,...n})}function ka(e,t,n){Qi(e,t,void 0,n)}function Aa(e,t,n,a=0,o,s=O){a&131072&&(j.rn=Hr,j.sn=Ur),P(()=>{let c,l=!1;try{c=e()}catch(e){if(e instanceof i)throw e;c=r(e),l=!0}let u=y(),d=a&131072&&j.er?.(u);if(d)throw new i(d);let f=O??Jt;if(u.R&128&&f!==null&&(s===null||S(s)!==S(f)))vt(u,S(f));else{if(l)return void queueMicrotask(()=>n(c));o?.(c),queueMicrotask(()=>t(c))}},{Le:a}).l|=fe}function ja(e){let t=e?.[ye];if(!t)return Promise.resolve(void 0);jr(t);let n=O,r=new Promise((r,i)=>{queueMicrotask(()=>{let a=null;Le(()=>Aa(()=>{a===null&&(a=y());let e=R(t);if(t.l&8192&&t.m&3)throw t.T?.F;return e},t=>{r(typeof e==`function`?t:e),Se(a)},e=>{i(e),Se(a)},me|g,void 0,n))})});return r.catch(()=>{}),r}function Ma(e,t){return new Promise((n,r)=>{let i=t?.signal;if(i?.aborted)return r(i.reason);let a=O;Le(s=>{let c,l,u=e=>{c!==void 0&&clearTimeout(c),l!==void 0&&i.removeEventListener(`abort`,l),e(),s()};Aa(e,e=>{e&&u(()=>n(e))},e=>u(()=>r(e)),g,e=>{e&&a!==null&&M.q&&S(a).tt!==0&&C(a)}),t?.timeout!==void 0&&(c=setTimeout(()=>u(()=>r(new o)),t.timeout)),i!==void 0&&(l=()=>u(()=>r(i.reason)),i.addEventListener(`abort`,l,{once:!0}))})})}function Na(e){let t=y();t&&!(t.l&16)?na(()=>L(e),void 0):M.enqueue(2,function t(){if(k.et>=k.Ge)return M.enqueue(2,t);e()})}function Pa(){return(Pa=e((()=>{l(),v(),U(),N(),b(),Ji(),ra(),Ti(),Gr()})))()}function Fa(e,t,n){let r=typeof n?.keyed==`function`?n.keyed:void 0,i=t.length>1,a=t,o={L:Ie(),it:0,st:e,ot:[],ft:a,ht:[],tn:[],ze:r,ct:r||n?.keyed===!1?[]:void 0,lt:i&&n?.keyed!==!1?[]:void 0,ut:n?.keyed===!1,H:n?.fallback},s=P(Ba.bind(o),void 0);return s.l&=-33,wa(s)}function Ia(e,t,n,r){let i=e.ot,a=e.it-1,o=[],s=[],c=[],l=256,u=r,d=r,f=!1;for(;u<=a&&d<=n-1;){let e=i[u],r=t[d];if(e===r){f||=(c.push(u,d,0),!0),c[c.length-1]++,u++,d++;continue}f=!1;let p=-1,m=Math.min(32-o.length,a-u,l);for(let e=1;e<=m;e++)if(i[u+e]===r){p=e;break}l-=p===-1?m:p;let h=-1;m=Math.min(32-s.length,n-1-d,l);for(let n=1;n<=m;n++)if(t[d+n]===e){h=n;break}if(l-=h===-1?m:h,p!==-1&&(h===-1||p<=h))for(;p-->0;)o.push(u++);else if(h!==-1)for(;h-->0;)s.push(d++);else{if(l<=0||o.length===32||s.length===32)return!1;o.push(u++),s.push(d++)}}for(;u<=a;u++){if(o.length===32)return!1;o.push(u)}for(;d<=n-1;d++){if(s.length===32)return!1;s.push(d)}return La(e,t,n,o,s,c)}function La(e,t,n,r,i,a){let o=e.ot,s,c,l;if(i.length!==0)for(l=Array(r.length),c=0;c<i.length;c++){let e=-1;for(s=0;s<r.length;s++)if(!l[s]&&o[r[s]]===t[i[c]]){e=s;break}if(e===-1)return!1;l[e]=!0,i[c]=i[c]<<6|e}if(r.length!==0||i.length!==0){let e=new Set;for(s=0;s<r.length;s++)e.add(o[r[s]]);for(c=0;c<i.length;c++)e.add(t[i[c]>>6]);for(let t=0;t<a.length;t+=3){let n=a[t];for(let r=0,i=a[t+2];r<i;r++)if(e.has(o[n+r]))return!1}}let u=e.ht,d=e.tn,f=u.slice(0,n),p=d.slice(0,n);for(let e=0;e<a.length;e+=3){let t=a[e],n=a[e+1];if(t!==n)for(let r=0;r<a[e+2];r++)f[n+r]=u[t+r],p[n+r]=d[t+r]}for(c=0;c<i.length;c++){let e=i[c]>>6,t=r[i[c]&63];f[e]=u[t],p[e]=d[t]}for(e.ht=f,e.tn=p,e.it=n,e.ot=t.slice(0),s=0;s<r.length;s++)(l===void 0||!l[s])&&d[r[s]].dispose();return!0}function Ra(e,t,n,r,i,a,o,s,c){let l=e.ze,u=e.ot,d=e.tn,f=[],p=n;for(let m=n;m<=i;p++,m++){let i=l?l(t[m]):t[m];for(;p<=r&&(l?l(u[p]):u[p])!==i;)f.push(d[p++]);if(p>r)return o.fill(void 0),null;a[m]=e.ht[p],o[m-n]=d[p],s&&(s[m-n]=e.ct[p]),c&&(c[m-n]=e.lt[p])}for(;p<=r;p++)f.push(d[p]);return f}function za(e,t,n,r,i,a,o,s,c){let l=e.tn,u=e.ct,d=e.lt,f=e.it,p=n-f,m,h;if(p>0)for(l.length=n,u&&(u.length=n),d&&(d.length=n),m=f-1,h=n-1;m>i;m--,h--)l[h]=l[m],u&&(u[h]=u[m]),d&&(d[h]=d[m]);else if(p<0){for(m=i+1,h=a+1;m<f;m++,h++)l[h]=l[m],u&&(u[h]=u[m]),d&&(d[h]=d[m]);l.length=n,u&&(u.length=n),d&&(d.length=n)}for(h=r;h<=a;h++)l[h]=o[h-r],u&&z(u[h]=s[h-r],t[h]),d&&z(d[h]=c[h-r],h);for(h=a+1;h<n;h++)u&&z(u[h],t[h]),d&&p!==0&&z(d[h],h)}function Ba(){this.L.Ye=y();let e=this.st()||[],t=e.length;return e[ha],B(this.L,()=>{let n,r,i,a,o,s=this.ct?this.ut?()=>(a[i]=fr(e[r],Wa),this.ft(wa(a[i]),r)):()=>(a[i]=fr(e[r],Wa),o&&(o[i]=fr(r,Wa)),this.ft(wa(a[i]),o?wa(o[i]):void 0)):this.lt?()=>{let t=e[r];return o[i]=fr(r,Wa),this.ft(t,wa(o[i]))}:()=>{let t=e[r];return this.ft(t)};if(t===0)this.it!==0&&(this.L.dispose(!1),this.tn=[],this.ot=[],this.ht=[],this.it=0,this.ct&&=[],this.lt&&=[]),this.H&&!this.ht.length&&(this.tn[0]?.dispose(),this.ht[0]=B(this.tn[0]=Ie(),this.H));else if(this.it===0){let c=Array(t),l=Array(t);a=this.ct&&Array(t),o=this.lt&&Array(t);try{for(r=0;r<t;r++)i=r,c[r]=B(l[r]=Ie(),s)}catch(e){for(n=0;n<=r;n++)l[n]?.dispose();throw e}this.tn[0]&&this.tn[0].dispose(),this.ht=c,this.tn=l,a&&(this.ct=a),o&&(this.lt=o),this.ot=e.slice(0),this.it=t}else{let c,l,u,d,f,p,m,h,ee,te=z;for(c=0,l=Math.min(this.it,t);c<l&&(this.ot[c]===e[c]||this.ct&&Ua(this.ze,this.ot[c],e[c]));c++)this.ct&&te(this.ct[c],e[c]);for(l=this.it-1,u=t-1;l>=c&&u>=c&&(this.ot[l]===e[u]||this.ct&&Ua(this.ze,this.ot[l],e[u]));l--,u--);if(c===t&&this.it===t){this.ot=e.slice(0);return}if(t<=this.it&&l-c>64&&this.ct===void 0&&this.lt===void 0){let n=c+(u-c>>1),r=e[n],i=Math.min(l,n+32),a=Math.max(c,n-32);for(;a<=i&&this.ot[a]!==r;)a++;if(a<=i&&Ia(this,e,t,c))return}let ne=t-this.it,re=u-c+1,ie=Array(t),ae=Array(re);a=this.ct?Array(re):void 0,o=this.lt?Array(re):void 0;let oe=ne<0?Ra(this,e,c,l,u,ie,ae,a,o):null;if(oe!==null)oe.length!==0&&(h=oe);else{for(p=new Map,m=Array(re),r=u;r>=c;r--)d=e[r],f=this.ze?this.ze(d):d,n=p.get(f),m[r-c]=n===void 0?-1:n,p.set(f,r);for(n=c;n<=l;n++)d=this.ot[n],f=this.ze?this.ze(d):d,r=p.get(f),r!==void 0&&r!==-1?(ie[r]=this.ht[n],ae[r-c]=this.tn[n],a&&(a[r-c]=this.ct[n]),o&&(o[r-c]=this.lt[n]),r=m[r-c],p.set(f,r)):(h??=[]).push(this.tn[n]);try{for(r=c;r<=u;r++)ae[r-c]===void 0&&((ee??=[]).push(ae[r-c]=Ie()),i=r-c,ie[r]=B(ae[r-c],s))}catch(e){if(ee)for(n=0;n<ee.length;n++)ee[n].dispose();throw e}}for(n=0;n<c;n++)ie[n]=this.ht[n];for(r=u+1;r<t;r++)ie[r]=this.ht[r-ne];if(za(this,e,t,c,l,u,ae,a,o),this.ht=ie,this.it=t,this.ot=e.slice(0),h)for(n=0;n<h.length;n++)h[n].dispose()}}),this.ht}function Va(e,t,n){let r=t,i={L:Ie(),it:0,dt:0,wt:e,ft:r,tn:[],ht:[],Ot:n?.from,H:n?.fallback},a=P(Ha.bind(i));return a.l&=-33,wa(a)}function Ha(){this.L.Ye=y();let e=this.wt(),t=this.Ot?.()||0;return B(this.L,()=>{if(e===0){this.it!==0&&(this.L.dispose(!1),this.tn=[],this.ht=[],this.it=0,this.dt=0),this.H&&!this.ht.length&&(this.tn[0]?.dispose(),this.ht[0]=B(this.tn[0]=Ie(),this.H));return}let n=t+e,r=this.dt+this.it,i=Math.max(t,this.dt),a=Math.min(n,r),o=Array(e),s=Array(e);for(let e=i;e<a;e++)s[e-t]=this.tn[e-this.dt],o[e-t]=this.ht[e-this.dt];try{for(let e=t;e<n;e++)e>=i&&e<a||(o[e-t]=B(s[e-t]=Ie(),()=>this.ft(e)))}catch(e){for(let e=t;e<n;e++)(e<i||e>=a)&&s[e-t]&&s[e-t].dispose();throw e}if(this.it===0)this.tn[0]?.dispose();else for(let e=this.dt;e<r;e++)(e<t||e>=n)&&this.tn[e-this.dt].dispose();this.ht=o,this.tn=s,this.dt=t,this.it=e}),this.ht}function Ua(e,t,n){return!e||e(t)===e(n)}var Wa;function Ga(){return(Ga=e((()=>{U(),v(),b(),Pa(),Sa(),Wa={ownedWrite:!0}})))()}function Ka(e,t){(t.fam?.map??Xa).set(e,t)}function qa(e){return e[J]!==void 0}function Ja(e,t){let n=e[J];return n!==void 0&&n.fam===t?n:(t?.map??Xa).get(e)}function Ya(e){let t=e;for(;t&&!t.d;)t.d=!0,t=t.u}var J,Xa;function Za(){return(Za=e((()=>{J=Symbol(0),Xa=new WeakMap})))()}function Qa(e){eo=e}function $a(e){to=e}var eo,to;function no(){return(no=e((()=>{eo=null,to=null})))()}function ro(){this.v=void 0,this.ch=void 0,this.pb=void 0,this.n=void 0,this.h=void 0,this.k=void 0,this.dk=void 0,this.u=void 0,this.pk=void 0,this.px=void 0,this.d=void 0,this.a=void 0,this.sc=void 0,this.kc=void 0,this.nc=void 0,this.fam=void 0,this.s=void 0,this.ovl=void 0,this.del=void 0,this.wk=void 0}function io(e,t,n,r=t?.fam??null){let i=Array.isArray(e)?[]:new ro;return i.v=e,i.ch=e[K]!==void 0,i.pb=null,i.n=null,i.h=null,i.k=null,i.dk=null,i.wk=null,i.u=t,i.pk=n,i.px=null,i.d=!1,i.a=!1,i.sc=0,i.kc=0,i.nc=0,i.fam=r,i.s=!1,i.ovl=!1,i.del=null,i.px=new Proxy(i,Zs),Ka(e,i),i}function ao(e,t=null,n=null,r=t?.fam??null){if(va&&ua(e))return e;let i=Ja(e,r);if(i!==void 0)return i.px;let a=e[K];return a?.px===e&&(r===null||a.fam===r)?e:io(e,t,n,r).px}function Y(e){if(typeof e!=`object`||!e)return e;let t=e[K];return t!==void 0&&(t.px===e||Ja(e,t.fam)===t)&&t.v!==void 0?(t.ovl&&Eo(t),t.pb??t.v):e}function oo(e,t){return e===t||e!==e&&t!==t}function so(e){return e instanceof ws?e.base:e}function co(e,t,n){if(typeof t!=`object`||!t||typeof n!=`object`||!n)return!1;let r=Ja(t,e.fam);return r!==void 0&&r===Ja(n,e.fam)}function lo(e){let t=e.O,n=e.ze;n===ha?t.k===e&&(t.k=null):n===Ss?t.dk===e&&(t.dk=null):t.n?.[n]===e?(delete t.n[n],t.nc--):t.h?.[n]===e&&delete t.h[n],t.fam!==null&&t.nc===0&&t.k===null&&t.dk===null&&(t.h===null||Reflect.ownKeys(t.h).length===0)&&t.fam.live.delete(t)}function uo(e,t,n){e.fam!==null&&e.fam.live.add(e),Ya(e),to!==null&&to.fo(e,t,n)}function fo(e,t,n,r){if(t.xe&&t.xe(t.Ie,n))return;yt(t),t.ue=n;let i=e.k;if(i!==null){if(i.l&256&&ts(e,r)){let e=x(i);(!(i.l&2048)||e.folded)&&rt(t,S(e._parent??e))}i.l&4194304&&Er(t)}}function po(e,t,n=-1){let r=e.n??=Object.create(null),i=r[t];if(i===void 0){let a=e.pb,o=i=pr(Qo(e)[t],Cs,e,t,n===-1?bo(a??e.v,t):n===1);a!==null&&!o.acc&&fo(e,o,e.del?.has(t)?void 0:a[t],t),r[t]=i,e.nc++,uo(e,o,t)}return i}function mo(e,t){let n=e.h??=Object.create(null),r=n[t];if(r===void 0){let i=r=pr(t in Qo(e),I,e,t,!1),a=e.pb;a!==null&&fo(e,i,t in a&&!e.del?.has(t),t),n[t]=r,uo(e,i,t)}return r}function ho(e){let t=e.k;return t===null&&(t=e.k=pr(e.v,Ts,e,ha,!1),uo(e,t,ha),e.pb!==null&&!Hs&&(t.Ie=Po(e),t.ue=e.pb,yt(t))),t}function go(e,t){if(e.k===null&&D===null&&(H===null||M.q)&&!_o(e))return;let n=ho(e);n.ue===_&&yt(n),n.ue=t,H!==null&&Er(n),e.fam!==null&&fs(e,n)}function _o(e){let t=e.fam?.node;return t!=null&&!Ws&&!!(t.l&256)}function vo(e){e.dk!==null&&z(e.dk,1)}function yo(e,t){e.l&2048?z(e,t):(e.l&256&&C(x(e)),Mr&&Dr(e,e.Ie),T(e),w())}function bo(e,t){return Z.call(e,t)&&(ks.call(e,t)!==void 0||As.call(e,t)!==void 0)}function xo(e,t){if(t.sc||wo(t),t.sc===2){let n={...e};return n[J]=t,n}let n=Object.getOwnPropertyDescriptors(e);for(let r of Reflect.ownKeys(n)){let i=n[r];r===`length`&&Array.isArray(e)||(i.configurable=!0,!i.get&&!i.set?i.writable=!0:t.a=!0)}let r=Array.isArray(e)?Object.defineProperties([],n):Object.create(Object.getPrototypeOf(e),n);return r[J]=t,r}function So(e,t){let n=Object.create(null);for(let t of Reflect.ownKeys(e))n[t]=e[t];return Object.setPrototypeOf(n,Object.prototype),n[J]=t,n}function Co(e,t,n){let r=Object.getOwnPropertyDescriptor(t,n);r.get||r.set||!r.enumerable||!r.writable||!r.configurable?Object.defineProperty(e,n,r):e[n]=r.value}function wo(e){let t=e.v,n=Reflect.ownKeys(t),r=Object.getPrototypeOf(t)===Object.prototype;for(let i of n){if(bo(t,i)){e.a=!0,r=!1;break}r&&!js.call(t,i)&&(r=!1)}return e.sc=r?2:1,e.kc=n.length,!e.a}function To(e,t){if(e.kc>Ns)return!1;if(e.del?.size)return!0;let n=e.wk;if(n!==null&&n!==Fs&&n.u===void 0&&n.size<=Ps)return!1;let r=e.v,i=0;for(let e of Reflect.ownKeys(t))if(!Z.call(r,e)&&++i>Ps)return!0;return!1}function Eo(e){let t=e.pb;if(!e.ovl)return t;let n=jo(e,e.sc===2?So(e.v,e):xo(e.v,e),t);return e.pb=n,e.k?.ue===t&&(e.k.ue=n),n}function Do(e){let t=e.pb;if(Ws&&e.fam?.opt===!0&&!Js.has(e))return e.pb=eo.draft(e);if(t!==null&&!qa(t)){t=e.pb=xo(t,e);let n=e.k;n!==null&&!(n.l&256)&&(n.ue=t)}else if(t===null){let n=e.v;Hs||No(e),!e.ch&&!Array.isArray(n)&&(e.sc===0?wo(e):!e.a)&&e.kc>Ms&&qa(n)?(t=e.pb=Object.create(n),e.ovl=!0):t=e.pb=xo(n,e),Hs||go(e,t)}return t}function Oo(e){if(qa(e.v))return;let t=e.v;if(e.v=xo(t,e),e.ch=!1,e.u){Oo(e.u);let n=e.u.v,r=ko(e,t);n[r]===t&&(n[r]=e.v)}}function ko(e,t){let n=e.pk,r=e.u.v;if(r[n]===t||r[n]===e.v||!Array.isArray(r))return n;let i=r.indexOf(t);return i===-1?n:(e.pk=i,i)}function Ao(e,t){Oo(e),jo(e,e.v,t)}function jo(e,t,n){for(let r of Reflect.ownKeys(n))e.sc===2?t[r]=n[r]:Co(t,n,r);if(e.del!==null){for(let n of e.del)delete t[n];e.kc-=e.del.size,e.del=null}return e.ovl=!1,t}function Mo(e,t,n=!0){Hs||No(e);let r;e.pb===null?r=e.v:(e.ovl&&Eo(e),r=e.pb),Hs?(e.pb=null,e.k!==null&&(e.k.Ie=t)):(e.pb=t,go(e,t)),e.v=t,e.ch=t[K]!==void 0,e.ovl=!1,e.del=null,e.sc=0,e.a=!1,e.wk=null,t[J]?.fam===e.fam?t[J]=e:Ka(t,e),n&&r!==t&&Jo(e,r,t)}function No(e){e.pb===null&&(w(),Vs!==null&&Vs.set(e,Ls.length),Ls.push(e),Rs.push(e.v))}function Po(e){if(Vs===null){Vs=new Map;for(let e=0;e<Ls.length;e++)Vs.set(Ls[e],e)}let t=Vs.get(e);return t===void 0?e.v:Rs[t]}function Fo(){if(Ls.length!==0){let e=Ls,t=Rs;Ls=zs,Rs=Bs,zs=e,Bs=t,Vs=null;for(let n=0;n<e.length;n++){let r=e[n];if(r.pb===null)continue;let i=r.k;i!==null&&i.ue!==_?(Ls.push(r),Rs.push(t[n])):Lo(r,t[n])}e.length=0,t.length=0}if(Es.size!==0)for(let e of Es)e.o===null&&!Ds(e)&&(Es.delete(e),lo(e))}function Io(e){let t=Hs;Hs=!0;try{e()}finally{Hs=t}}function Lo(e,t){{let n=e.k,r=e.pb;if(r!==null){if(r!==e.v){if(e.ovl&&(e.v!==t||!To(e,r)&&n?.T?.Pe!==t))Ao(e,r);else if(e.v!==t){Oo(e);let n=e.v,i=e.wk;if(i!==null&&i!==Fs)for(let e=i;e!==void 0;e=e.u)for(let t of e)Z.call(r,t)?Co(n,r,t):delete n[t];else{for(let e of Reflect.ownKeys(r))Co(n,r,e);for(let e of Reflect.ownKeys(t))Z.call(r,e)||delete n[e]}}else e.v=e.ovl?Eo(e):r,e.ch=e.v[K]!==void 0}e.pb=null,e.wk=null}if(n!==null&&(n.o===null?e.k=null:n.Ie instanceof ws?n.Ie.base=e.v:n.Ie=e.v),e.v!==t&&e.u){let n=ko(e,t);e.u.v[n]===t&&(Oo(e.u),e.u.v[n]=e.v)}}}function Ro(){return Ws}function zo(e,t,n){if(e.fam===null||!Ws)return!1;if(t!==void 0)return(t.l&262400)==256&&x(t)!==O;let r=e.k;return r!==null&&!!(r.l&256)&&x(r)!==O&&ts(e,n)}function Bo(e){let t=e.pb;if(t===null)return;if(Ws&&e.fam?.opt===!0){e.pb=null,e.wk=null,e.pb=eo.writes(e,t);return}let n=e.v,r=e.n,i=e.wk,a=i===Fs||e.a===!0||!Is(e.ovl?e.v:t)?null:i;if(e.fam!==null&&!Us&&a!==null){for(let t of a)if(zo(e,r?.[t],t)){Us=!0;break}}if(r!==null){let i=a??Reflect.ownKeys(r);for(let a of i){let i=r[a];if(i===void 0)continue;if(i.acc===!0||Z.call(t,a)&&ks.call(t,a)!==void 0){i.acc=bo(t,a);let e=Object.getOwnPropertyDescriptor(n,a),r=Object.getOwnPropertyDescriptor(t,a);if(!r||r.get||r.set){(e?.get!==r?.get||e?.set!==r?.set||e?.value!==r?.value)&&z(i,()=>Gs);continue}(e?.get||e?.set||!I(e?.value,r.value))&&z(i,()=>r.value);continue}let o=e.del?.has(a)?void 0:t[a];z(i,()=>o),e.fam!==null&&(Ws?i.l|=ce:(i.l&=~ce,fs(e,i)))}}let o=e.h;if(o!==null){let n=a??Reflect.ownKeys(o);for(let r of n){let n=o[r];n!==void 0&&(z(n,r in t&&!e.del?.has(r)),e.fam!==null&&fs(e,n))}}if(e.dk!==null){if(e.del?.size)vo(e);else for(let r of a??Reflect.ownKeys(t)){if(r===J)continue;let i=t[r],a=n[r];if(typeof i==`object`&&i?!Vo(a,i):!I(a,i)){vo(e);break}}}let s=e.k;if(s!==null&&(s.o!==null||s.l&2048)){let r;if(e.ovl){if(r=!!e.del?.size,!r){for(let e of Reflect.ownKeys(t))if(!Z.call(n,e)){r=!0;break}}}else r=Array.isArray(t)&&Array.isArray(n)?Ho(n,t):Uo(n,t);r&&yo(s,t)}}function Vo(e,t){if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Ja(e,null);return n!==void 0&&n===Ja(t,null)}function Ho(e,t){if(e.length!==t.length)return!0;for(let n=0;n<t.length;n++){let r=e[n],i=t[n];if(!I(r,i)&&!Vo(r,i))return!0}return!1}function Uo(e,t){let n=Reflect.ownKeys(t);if(Reflect.ownKeys(e).length-+qa(e)!=n.length-+qa(t))return!0;for(let t of n)if(t!==J&&!(t in e))return!0;return!1}function Wo(e,t,n,r,i=!0){if(e.acc===!0||i&&Z.call(r,t)&&ks.call(r,t)!==void 0){e.acc=bo(r,t);let i=Object.getOwnPropertyDescriptor(n,t),a=Object.getOwnPropertyDescriptor(r,t);if(!a||a.get||a.set){(i?.get!==a?.get||i?.set!==a?.set||i?.value!==a?.value)&&z(e,()=>Gs);return}let o=i?.value,s=a?.value;(i?.get||i?.set||!I(o,s)&&!Vo(o,s))&&z(e,typeof s==`function`?()=>s:s)}else{let i=n[t],a=r[t];!I(i,a)&&!Vo(i,a)&&z(e,typeof a==`function`?()=>a:a)}}function Go(e){return e.acc===!0}function Ko(e,t,n,r,i,a){e.acc===!0?Wo(e,t,i,a,!1):!I(n,r)&&!Vo(n,r)&&z(e,typeof r==`function`?()=>r:r)}function qo(e,t,n){let r=e.h;if(r!==null){let e=t[K];for(let i of Reflect.ownKeys(r))(e||i in t!=i in n)&&z(r[i],i in n)}let i=e.k;i!==null&&(i.o!==null||i.l&2048)&&(Array.isArray(n)&&Array.isArray(t)?Ho(t,n):Uo(t,n))&&yo(i,n)}function Jo(e,t,n){e.dk!==null&&t!==n&&vo(e);let r=e.n;if(r!==null)for(let e of Reflect.ownKeys(r))Wo(r[e],e,t,n);qo(e,t,n)}function Yo(e){if(e.fam!==null)return e.fam;let t=e;for(;t.u!==null;)t=t.u;return t}function X(e){return qs!==null&&qs.has(Yo(e))}function Xo(e,t,n){return typeof n==`object`&&n&&n[K]!==void 0?Zo(e,ao(n,e,t)):n}function Zo(e,t){if(qs!==null&&X(e)){let e=t?.[K];e?.v!==void 0&&qs.add(Yo(e))}return t}function Qo(e){let t=e.k;return t===null?e.pb===null?e.v:Po(e):t.ue===_?e.v:so(t.Ie)}function $o(){let e=H;return e===null?null:(e.Qe&&(e=e.Ye??null),e===null||e.l&16?null:e)}function es(e,t,n=!1){if(Ws&&e.fam?.opt===!0&&!Js.has(e)&&X(e)){let t=Do(e);return Js.add(e),t}let r=e.pb;if(r===null)return e.v;if(X(e)||xa){if(xa&&!Ws){let n=t===void 0?void 0:e.n?.[t];if(n!==void 0)(n.l&2304)==256&&Ke(x(n));else{let n=e.k;n!==null&&(n.l&2304)==256&&(t===void 0||ts(e,t))&&Ke(x(n))}}return r}let i=e.k;if(t!==void 0&&e.n?.[t]?.l&2048)return Qo(e);let a=i!==null&&!!(i.l&256);if(a&&t!==void 0&&!ts(e,t,n))return r;let o=$o();if(o===null)return Me()!==null||as(e)?r:Lr===null||!a&&t!==void 0&&!os(e,t,n)?a?so(i.Ie):e.v:i===null?Qo(e):so(R(i));if(!a){if(o.R&16384&&!(o.l&32784))return r;if(t!==void 0&&!os(e,t,n))return Qo(e);if(i===null)return o.l&32768&&Tr(o)?Qo(e):(wr(o),r)}return so(L(()=>R(i)))}function ts(e,t,n=!0){return ss(e,e.k.Ie,e.k.ue,t,n)&&!is(e,t)}function ns(e){let t=Ys.get(e);return t===void 0&&Ys.set(e,t=new Set(Object.values(e))),t}function rs(e,t,n){return typeof e==`object`&&!!e&&typeof t==`object`&&!!t&&(n===null||oo(n(e),n(t)))}function is(e,t){let n=e.k,r=so(n.Ie),i=r[t],a=n.ue[t],o=Array.isArray(r)?e.fam?.key:null;if(e.s||o===void 0||!rs(i,a,o)||!G(i)||!G(a)||Array.isArray(i)!==Array.isArray(a)||Ja(i,e.fam)!==void 0||Ja(a,e.fam)!==void 0||ns(r).has(a)||ns(n.ue).has(i))return!1;let s=ao(i,e,t)[K];return s?.v===i&&(Mo(s,a,!1),rt(ho(s),x(n)),!0)}function as(e){return e.fam!==null&&H===null&&!(e.k?.l&256)}function os(e,t,n=!0){return ss(e,Qo(e),e.pb,t,n)}function ss(e,t,n,r,i){if(e.ch||n[K]!==void 0||Object.getPrototypeOf(n)!==Object.getPrototypeOf(t)||!Is(t))return!0;if(e.del?.has(r))return r in t;let a=Z.call(n,r)||e.ovl&&Z.call(e.v,r);if(a!==Z.call(t,r))return!0;if(!a)return!1;if((i||e.a)&&(bo(t,r)||bo(n,r)||js.call(t,r)!==js.call(n,r)))return!0;let o=n[r],s=t[r];return!I(s,o)&&!co(e,s,o)}function cs(e,t,n){let r=R(e);return e.ue!==_&&!(e.l&256)&&H===null&&n.fam!==null&&(r=e.ue),r===Gs?t:r}function ls(e,t,n,r,i,a=-1){let o=e.ch&&r===e.v,s=n;if(!X(e)&&!xa&&(i===void 0&&Me()!==null&&(i=po(e,t,a)),i!==void 0)){let t=cs(i,n,e);o?(i.Ie=n,i.l&2048&&(s=t)):s=t}if(e.s)return Xo(e,t,s);if(e.ch&&!o&&typeof s==`object`&&s&&s[K]?.px!==s&&(s=ps(e,t,s)),i!==void 0){if(i.pxv===s&&s!==void 0)return Zo(e,i.px);if(!G(s))return s;let n=ao(s,e,t);return i.px=n,i.pxv=s,Zo(e,n)}return G(s)?Zo(e,ao(s,e,t)):s}function us(e,t){for(let n=e.C;n!==null;n=n.G)if(n.S===t)return!0;return!1}function ds(e){let t=e.fam.node;if(!(t===null||xa||X(e))){if(t.m&3){let n=H;if(n!==null&&n.i===1&&!(t.m&2)&&t.l&256&&O!==x(t)&&!us(n,t))return;let r=e.fam.overlaid;if(Lr===null&&t.m&1&&r!==void 0&&r.size!==0)return;R(t)}else L(()=>R(t))}}function fs(e,t){let n=e.fam?.node;n!=null&&!Ws&&n.l&256&&t.ue!==_&&!(t.l&2304)&&(rt(t,x(n)),t.T.Ve=n.T.Ve)}function ps(e,t,n){let r=e.v[K];if(r.ch){let e=ps(r,t,n);return e===n?n:ao(e,r,t)}let i=Ja(n,r.fam);return i===void 0?(r.v[t]===n||r.pb?.[t]===n)&&G(n)?ao(n,r,t):n:i.px}function ms(e){if(!X(e)&&!xa&&Me()!==null){let t=so(R(ho(e)));return e.fam?.opt===!0?eo.view(e,t):t}let t=es(e);return hs(e)?eo.view(e,t):t}function hs(e){return e.fam?.opt===!0&&!X(e)&&!xa}function gs(e,t){let n=e.wk;Js.has(e)||(Js.add(e),n!==null&&n!==Fs&&(n=new Set,n.u=e.wk,e.wk=n)),n!==Fs&&(e.wk??=new Set).add(t)}function _s(e,t){let n=e.k;if(n===null)return!1;let r=n.ve;return r!==null&&r.u===t&&(!(t.R&4)||r.Te===t.Ne)}function vs(e,t,n=!0){Br!==null&&Br(e);let r=e[K],i=qs;qs=new Set,qs.add(Yo(r));let a=Ws;Ws=n,Ks++;let o;try{o=t(e)}finally{if(Ks--,qs=i,Ks===0&&Js.size){let e=[...Js];Js.clear();for(let t of e)Bo(t);if(Hs)for(let t of e)t.pb!==null&&Lo(t,t.v)}Ws=a}if(o!==void 0&&o!==e&&G(o)&&(n&&r.fam?.opt===!0&&!xa?eo.writes(r,Y(o)):Mo(r,Y(o))),n&&Us){Us=!1;let e=r.fam.node;e.R&2||(e.R=e.R&-2|2,fn(e,k),w())}}function ys(e,t){let n=t?.shallow===!0,r=ao(e);return qi!==null&&qi(r[K]),n&&(r[K].s=!0,fa(e)),[r,e=>vs(r,e)]}function bs(e,t){let n;if(e.ovl&&t===e.pb){n=Reflect.ownKeys(e.v);let r=e.del;r?.size&&(n=n.filter(e=>!r.has(e)));for(let r of Reflect.ownKeys(t))Z.call(e.v,r)||n.push(r)}else n=Reflect.ownKeys(t);for(let e=n.length-1;e>=0&&typeof n[e]==`symbol`;e--)if(n[e]===J){n.splice(e,1);break}return n}function xs(e,t,n){let r=Object.getOwnPropertyDescriptor(t,n);if(e.ovl&&t===e.pb){if(e.del?.has(n))return;r===void 0&&(r=Object.getOwnPropertyDescriptor(e.v,n))}return r}var Ss,Cs,ws,Ts,Es,Ds,Os,Z,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs;function Qs(){return(Qs=e((()=>{v(),U(),Ji(),jn(),b(),yn(),N(),Za(),no(),Sa(),Ss=Symbol(0),ro.prototype=Object.prototype,Cs=function(e,t){return I(e,t)||co(this.O,e,t)},ws=class{rows;base;removed;constructor(e,t,n=null){this.rows=e,this.base=t,this.removed=n}},Ts=function(e,t){return e===t||!!eo?.arrangement(this.O,e,t)},Es=new Set,Ds=e=>e.ue!==_||e.l&2048||e.O.k?.l&256,bn(e=>{Ds(e)?Es.add(e):lo(e)}),Os=e=>{for(let t=0;t<Ls.length;t++){let n=Ls[t];n.k===null&&n.pb!==null&&rt(ho(n),e)}},Z=Object.prototype.hasOwnProperty,ks=Object.prototype.__lookupGetter__,As=Object.prototype.__lookupSetter__,js=Object.prototype.propertyIsEnumerable,Ms=32,Ns=1024,Ps=16,Fs=new Set,Is=e=>{let t=Object.getPrototypeOf(e);return t===Object.prototype||t===Array.prototype||t===null},Ls=[],Rs=[],zs=[],Bs=[],Vs=null,j.k=e=>!!((e.O?.fam)?.node?.m&1),j.fn=e=>{let t=e.O;if(t.ch){let n=e.ze,r=t.v;t.h?.[n]===e?e.Ie=L(()=>n in r):t.n?.[n]===e&&(e.Ie=L(()=>Y(r[n])))}return e.Ie},Ve(Os,()=>{Fo(),eo?.sweep()}),j.no=po,j.so=G,Hs=!1,Us=!1,Ws=!1,Gs=Symbol(),Ks=0,qs=null,Js=new Set,Ys=new WeakMap,Xs=new Set([`__proto__`,`prototype`,`constructor`]),Zs={get(e,t,n){if(typeof t!=`string`){if(t===K)return e;if(t===q)return n;if(t===J||t===ga)return;if(t===ye)return e.fam?.node??void 0;if(t===ha){if(e.fam!==null&&ds(e),!X(e)&&Me()!==null){R(ho(e));let t=es(e);t[K]!==void 0&&t[ha]}return}}Lr!==null&&to!==null&&Me()===null&&to.ro(e,t),e.fam!==null&&ds(e);let r=e.n?.[t];if(qs===null&&!xa){let n=r;if(n!==void 0&&n.acc!==!0&&(!e.ch||n.l&2048)){let r=cs(n,void 0,e);if(typeof r!=`object`||!r)return r;if(e.s)return Xo(e,t,r);if(n.pxv===r)return n.px;if(G(r)){let i=ao(r,e,t);return n.px=i,n.pxv=r,i}return r}}let i=es(e,t);if(i===e.pb&&e.del?.has(t)){!X(e)&&Me()!==null&&R(po(e,t));return}let a=-1;{let o;if(r===void 0?!X(e)&&Me()!==null?(o=bo(i,t),i===(e.pb??e.v)&&(a=+!!o)):o=!1:o=r.acc===!0,o){!X(e)&&Me()!==null&&R(r??po(e,t,a));let o=Reflect.get(i,t,n);return e.s?Xo(e,t,o):G(o)?Zo(e,ao(o,e,t)):o}}let o=e.ovl&&i===e.pb;if((t===`constructor`||t===`__proto__`||t===`prototype`)&&!Z.call(i,t)&&!(o&&Z.call(e.v,t)))return;let s=i[t];if(s===void 0&&!Z.call(i,t)&&!(o&&Z.call(e.v,t))){if(s=Reflect.get(i,t,n),typeof s==`function`)return s;if(e.ch&&i===e.v)return ls(e,t,s,i,r,a);if(s===void 0&&!X(e)){Me()!==null&&R(po(e,t,a));let n=e.n?.[t];if(n){let r=cs(n,void 0,e);return e.s?Xo(e,t,r):G(r)?Zo(e,ao(r,e,t)):r}}return e.s?Xo(e,t,s):G(s)?Zo(e,ao(s,e,t)):s}return typeof s==`function`&&!Z.call(i,t)&&!(o&&Z.call(e.v,t))?s:ls(e,t,s,i,r,a)},has(e,t){if(t===K||t===q||t===ha)return!0;if(t===J||t===ga)return!1;Lr!==null&&to!==null&&Me()===null&&to.ro(e,t),e.fam!==null&&ds(e);let n=es(e,t);if(!X(e)&&!xa){if(Me()!==null){let r=mo(e,t),i=R(r);if(!e.ch||n!==e.v)return!!i;let a=t in n;return r.Ie=a,r.l&2048?!!i:a}if(hs(e)){let n=eo.has(e,t);if(n!==void 0)return n}}return t in n&&!(n===e.pb&&e.del?.has(t))},ownKeys(e){return Lr!==null&&to!==null&&Me()===null&&to.ro(e,void 0),e.fam!==null&&ds(e),bs(e,ms(e))},getOwnPropertyDescriptor(e,t){if(t===J||t===ga)return;let n=Me();Lr!==null&&to!==null&&n===null&&to.ro(e,t),e.fam!==null&&ds(e);let r=n!==null&&!X(e)&&!xa,i=r&&_s(e,n),a;if(i)a=ms(e);else if(r){let n=mo(e,t),r=R(n);if(a=es(e,t,!0),!r&&(!e.ch||n.l&2048||!(t in a)))return}else a=es(e,t,!0);let o;if(!i&&hs(e)){let n=eo.descriptor(e,t);if(n===null)return;o=n}if(o??=xs(e,a,t),o!==void 0)return t===`length`&&Array.isArray(e)||(o.configurable=!0),o},set(e,t,n){let r=X(e);if(!r&&!xa||t===`__proto__`)return!0;let i=e.s?n:Y(n),a=Do(e);Ws&&e.k?.l&256&&Es.add(po(e,t)),Array.isArray(a)?(gs(e,t),t===`length`?e.wk=Fs:gs(e,`length`)):(gs(e,t),t in a||e.kc++);let o=Xs.has(t);return o||e.ovl&&e.sc!==2&&!Z.call(a,t)?Object.defineProperty(a,t,{value:i,writable:!0,enumerable:!0,configurable:!0}):a[t]=i,e.del?.delete(t),o||(e.s&&typeof i==`object`&&i&&da(i),r||Bo(e)),!0},defineProperty(e,t,n){let r=X(e);if(!r&&!xa||t===`__proto__`)return!0;(n.get||n.set)&&(e.a=!0),`value`in n&&(n={...n,value:Y(n.value)});let i=Do(e);return(e.a||!(n.enumerable&&n.writable&&n.configurable))&&(e.sc=1),gs(e,t),Object.defineProperty(i,t,n),e.del?.delete(t),r||Bo(e),!0},deleteProperty(e,t){let n=X(e);if(!n&&!xa)return!0;let r=Do(e);gs(e,t);let i=e.ovl&&Z.call(e.v,t);return Z.call(r,t)&&(delete r[t],i||e.kc--),i&&(e.del??=new Set).add(t),n||Bo(e),!0}}})))()}function $s(e,t,n,r=!1){if(t==null)throw Error(``);let i=t[K];if(i?.px!==t)throw Error(``);let a=n===null?null:typeof n==`string`?e=>e?.[n]:n;if(Ro()&&i.fam?.opt===!0){eo.reconcile(t,Y(e),a);return}if(r&&e!==t&&e?.[K]!==void 0){if((i.pb??i.v)===e)return;Mo(i,e);return}let o=Y(e);if(a){let e=i.pb??i.v,t=a(e);if(t!==void 0&&!oo(a(o),t)){if(!r)throw Error(``);qa(e)?delete e[J]:(i.fam?.map??Xa).delete(e),Mo(i,o);return}}ec(i,o,a,r)}function ec(e,t,n,r=!1){let i=e.ovl?Eo(e):e.pb??e.v;if(t===i&&!qa(i))return;let a=e.fam?.opt===!0?eo.view(e,i):i,o=Array.isArray(t),s=e.s===!0;Mo(e,t,!1),s&&fa(t);let c=e.dk===null;if(Array.isArray(a)!==o){Jo(e,i,t);return}if(o){let o=e.n,l=0;if(n&&!s){let s=a.length,u=t.length,d=0;for(let f=Math.min(s,u);d<f;d++){let s=t[d],u=a[d];if(u!==s&&!rs(u,s,n))break;if(typeof s==`object`&&s&&(u!==s||qa(s))&&tc(Y(u),s,n,r,e,d),!c&&!(typeof s==`object`&&s?Vo(u,s):I(u,s))&&(vo(e),c=!0),o!==null){let e=o[d];e!==void 0&&(l++,Ko(e,d,i[d],s,i,t))}}!c&&d<t.length&&vo(e);let f=d,p=null;for(;d<t.length;d++){let s=t[d];if(typeof s==`object`&&s){let t=n(s),i;if(t!==void 0){if(p===null){p=new Map;for(let e=f;e<a.length;e++){let t=Y(a[e]);if(typeof t==`object`&&t){let r=n(t);if(r===void 0)continue;let i=p.get(r);i===void 0?p.set(r,e):Array.isArray(i)?i.push(e):p.set(r,[i,e])}}}let e=p.get(t);e===void 0?i=void 0:Array.isArray(e)?(i=Y(a[e.shift()]),e.length===1&&p.set(t,e[0])):(i=Y(a[e]),p.delete(t))}else i=Y(a[d]);tc(i,s,n,r,e,d)}if(o!==null){let e=o[d];e!==void 0&&(l++,Wo(e,d,i,t,!1))}}}else{let u=Math.min(a.length,t.length),d=t.length;for(let f=0;f<d;f++){let d=t[f];if(!s&&f<u&&typeof d==`object`&&d&&tc(Y(a[f]),d,n,r,e,f),!c&&!(typeof d==`object`&&d?Vo(a[f],d):I(a[f],d))&&(vo(e),c=!0),o!==null){let e=o[f];e!==void 0&&(l++,Wo(e,f,i,t,!1))}}}if(o!==null&&l<e.nc)for(let e of Reflect.ownKeys(o)){let n=typeof e==`string`?+e:NaN;n>=0&&n<t.length||Wo(o[e],e,i,t,!1)}qo(e,i,t);return}let l=e.n,u=0;for(let o in t){let d=t[o],f=i[o],p=typeof d==`object`&&!!d;if(f===d&&(!p||!qa(d))&&(l===null||l[o]===void 0||!Go(l[o])))l?.[o]!==void 0&&u++;else if(p&&!s&&tc(Y(a[o]),d,n,r,e,o),!c&&!(p?Vo(f,d):I(f,d))&&(vo(e),c=!0),l!==null){let e=l[o];e!==void 0&&(u++,Ko(e,o,f,d,i,t))}}let d=Object.getOwnPropertySymbols(t);for(let a=0;a<d.length;a++){let o=d[a];if(o===J)continue;let c=t[o];if(!s&&typeof c==`object`&&c&&tc(Y(i[o]),c,n,r,e,o),l!==null){let e=l[o];e!==void 0&&(u++,Ko(e,o,i[o],c,i,t))}}if(l!==null&&u<e.nc)for(let e of Reflect.ownKeys(l))nc.call(t,e)||Wo(l[e],e,i,t,!1);qo(e,i,t)}function tc(e,t,n,r,i,a){if(typeof e!=`object`||!e)return;let o=i.fam;t=Y(t);let s=Ja(e,o),c=Ja(t,o);if(s!==void 0&&s.pk!==a&&(s.pk!=a&&i.v[s.pk]===s.v?s=void 0:s.u===i&&(s.pk=a)),c!==void 0&&c!==s){if(c.v===t){c.u===i&&(c.pk=a);return}(o?.map??Xa).delete(t)}if(s!==void 0&&G(t)&&!(va&&ua(t))&&Array.isArray(e)===Array.isArray(t)){if(typeof a!=`number`&&n){let r=n(e),i=n(t);if(r!==void 0&&i!==void 0&&!oo(r,i))return}(r||n===null||s.d)&&ec(s,t,n,r)}}var nc;function rc(){return(rc=e((()=>{U(),Za(),Qs(),no(),Sa(),nc=Object.prototype.hasOwnProperty})))()}function ic(e,t,n,r,i,a){let o=e=>{if(!t())return!0;ma(!0);let r=rn;a!==void 0&&ut(a());try{n?n(e):e()}finally{ma(!1),ut(r)}return i&&i(),!0},s=e=>{ma(!0);try{return e()}finally{ma(!1)}},c=new Proxy(Array.isArray(e)?[]:{},{get(o,c){let l=s(()=>e[c]);return!r&&typeof l==`object`&&l&&c!==K?ic(l,t,n,!1,i,a):l},has:(t,n)=>s(()=>n in e),set:(t,n,r)=>o(()=>{e[n]=r}),deleteProperty:(t,n)=>o(()=>{delete e[n]}),ownKeys:()=>s(()=>Reflect.ownKeys(e)),getOwnPropertyDescriptor(t,n){let r=s(()=>Reflect.getOwnPropertyDescriptor(e,n));return r&&(r.configurable=!0),r},defineProperty:(t,n,r)=>o(()=>{Reflect.defineProperty(e,n,r)})}),l=e[K];return l!==void 0&&Ka(c,l),c}function ac(e,t){return t?Array.isArray(e)?e.slice():{...e}:JSON.parse(JSON.stringify(e))}function oc(e,t){let n=e.node;e.woke=!0,lc(e,e=>{e.o!==null&&(Mn(e,n),Xn(e,1,t))})}function sc(e){lc(e,e=>{e.o!==null&&Rn(e,e=>{un(e)})}),w()}function cc(e){if(!e.woke)return;e.woke=!1;let t=e.node;lc(e,e=>{e.o!==null&&Un(e,t)})}function lc(e,t){for(let n of e.live){let e=n.n;if(e!==null)for(let n of Reflect.ownKeys(e))t(e[n]);let r=n.h;if(r!==null)for(let e of Reflect.ownKeys(r))t(r[e]);n.k!==null&&t(n.k),n.dk!==null&&t(n.dk)}}function uc(e,t,n,r,a){let o=y(),s=e[K],c=s.fam,l=c.run=(c.run||0)+1,u,d=o.ce?ac(s.v,s.s):null,f=()=>rn||(o.T!==null&&o.T.Se!==null?o.T.Ee:0),p=ic(e,()=>c.run===l&&!Pe(o),a,s.s,()=>{!(o.m&1)&&!o.ce&&w()},f),m=l===1,h=()=>vs(p,i=>{u=t(d??i);let a=t=>{if(d&&(t===void 0||t===d)&&(t=ac(d,s.s)),t!==i&&t!==void 0){let i=()=>{let r=rn;ut(f());try{vs(e,e=>$s(t,e,n,!0),!1)}finally{ut(r)}};r?r(i,t):i()}(!m||!(o.m&4))&&cc(c),T(o)},l=Kn(o,u,a,(e,t)=>{m&&o.m&4||(t?oc(c,e):sc(c))});o.ce||a(l)},!1);try{m?Io(h):h()}catch(e){throw m||(e instanceof i?oc(c,e):sc(c)),e}return o.m&1&&o.T.Se!==null&&!o.ce&&!m&&oc(c,o.T?.F),o}function dc(e,t,n){t||={};let r=n?.key===void 0?`id`:n.key,i={map:new WeakMap,node:null,live:new Set,shallow:!!n?.shallow,key:typeof r==`function`?r:r===null?null:e=>G(e)?e[r]:void 0},a=ao(t,null,null,i);i.shallow&&(a[K].s=!0,fa(t));let o;n?.seedLoadingValue&&(o={loadingValue:void 0});let s=P(()=>{i.node||=y(),uc(a,e,r)},o);return s.l&=-33,i.node=s,s.fam=i,{store:a,node:s}}function fc(e,t,n){return dc(e,t,n).store}function pc(e,t,n){let{store:r}=dc(e,t,n);return[r,e=>vs(r,e)]}function mc(){return(mc=e((()=>{v(),U(),l(),Zn(),yn(),b(),N(),rc(),Qs(),Za(),Sa()})))()}function hc(e){let t=Qo(e),n=t[K];return n===void 0?t:Fc(n,hc(n),Vr,!0)}function gc(e){return e.pb!==null&&Rc.set(e,e.pb),xo(Fc(e,hc(e),Vr,!0),e)}function _c(e,t){let n=hc(e),r=Fc(e,n,Vr,!0),i=Array.isArray(t),a=e.ch?e.v:null,o=(e,t,r,i)=>{a!==null&&(e.Ie=r?t in n:Y(n[t])),Xr(e,()=>i)},s=!1;for(let n of Reflect.ownKeys(t)){if(i&&n===`length`||n===J)continue;let c=t[n],l=Y(a&&c?ps(e,n,c):c);if(!(n in r))o(po(e,n),n,!1,l),o(mo(e,n),n,!0,!0),s=!0;else{let t=r[n],c=Y(a&&t?ps(e,n,t):t);!I(c,l)&&!Vo(c,l)&&(o(po(e,n),n,!1,l),i&&(s=!0))}}for(let n of Reflect.ownKeys(r))i&&n===`length`||n===J||n in t||(o(po(e,n),n,!1,void 0),o(mo(e,n),n,!0,!1),s=!0);if(i&&r.length!==t.length&&(o(po(e,`length`),`length`,!1,t.length),s=!0),s){let a=i?t.map(Y):Dc(t),o=null,s=e.fam.key;if(i&&s!=null){o=new Set;let e=new Set;for(let t=0;t<a.length;t++){let n=G(a[t])?s(a[t]):void 0;n!==void 0&&e.add(n)}for(let t=0;t<r.length;t++){let n=Y(r[t]),i=G(n)?s(n):void 0;i!==void 0&&!e.has(i)&&o.add(i)}}Xr(ho(e),new ws(a,n,o))}e.dk!==null&&Xr(e.dk,{}),Oc(e);let c=Rc.get(e);return c===void 0?null:(Rc.delete(e),c)}function vc(e,t,n){let r=t instanceof ws,i=n instanceof ws;return!r&&!i?!1:xc(r?t.rows:t,i?n.rows:n,e.fam?.key??null)}function yc(e,t,n){if(I(e,t)||Vo(e,t))return!0;if(n===null||!G(e)||!G(t))return!1;let r=n(Y(e)),i=n(Y(t));return r===void 0&&i===void 0||r!==void 0&&oo(r,i)}function bc(e,t){if(e===t)return!0;if(!G(e)||!G(t))return!1;e=Y(e),t=Y(t);let n=Object.keys(e);if(Array.isArray(e)!==Array.isArray(t)||n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Lc.call(t,r)||!bc(e[r],t[r]))return!1;return!0}function xc(e,t,n){if(Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!yc(e[r],t[r],n))return!1;return!0}let r=Reflect.ownKeys(e).filter(e=>e!==J),i=Reflect.ownKeys(t).filter(e=>e!==J);if(r.length!==i.length)return!1;for(let e of r)if(!(e in t))return!1;return!0}function Sc(e,t,n){if(Array.isArray(t)){let r=e.length,i=Array(r);for(let t=0;t<r;t++)i[t]=e[t];let a=null;if(n!==null){a=new Map;for(let e=0;e<r;e++){let t=Y(i[e]);if(!G(t))continue;let r=n(t);r!==void 0&&!a.has(r)&&a.set(r,i[e])}}for(let o=0;o<t.length;o++){let s=t[o],c;if(G(s)){if(a!==null){let e=n(s);e!==void 0&&(c=a.get(e))}else o<r&&G(Y(i[o]))&&(c=i[o])}c===void 0?Y(e[o])!==s&&(e[o]=s):(Y(c)!==s&&Sc(c,s,n),e[o]!==c&&(e[o]=c))}e.length!==t.length&&(e.length=t.length)}else{for(let r of Object.keys(t)){let i=t[r],a=e[r],o=Y(a);G(i)&&G(o)&&Array.isArray(i)===Array.isArray(o)&&(n===null||Array.isArray(i)||oo(n(i),n(o)))?o!==i&&Sc(a,i,n):o!==i&&(e[r]=i)}for(let n of Object.keys(e))n in t||delete e[n]}}function Cc(e,t){let n=e.O?.k,r=x(e);if(!r.ke||!(n?.l&2048)||!n.T.v?.removed)return!1;let i=e.T.v;return(!e.xe||!e.xe(i,t))&&!j.nn(i,t)?(r.folded=wc,T(e)):j.sn?.(r),C(S(r._parent??r)),!0}function wc(e,t){if(e!==null){if(!(t.l&8192)||D!==null||e.i===1||e.l&16||t.O?.fam?.node===e)return _;let n=x(t);rr(e,S(n._parent??n))}return t.ue===_?t.l&4096?j.fn(t):t.Ie:t.ue}function Tc(e,t,n){if(e===t)return!0;if(!G(e)||!G(t))return!1;let r=n(Y(e));return r!==void 0&&oo(r,n(Y(t)))}function Ec(e,t,n){let r=F(e);if(!(e.l&2048))e.l|=oe,it(e,n);else if(r.v===t)return;r.v=t,e.o!==null&&(T(e),xt(e,n))}function Dc(e){let t={};for(let n of Reflect.ownKeys(e))n!==J&&(t[n]=Y(e[n]));return t}function Oc(e){let t=e.fam;(t.overlaid??=new Set).add(e),zc.add(t)}function kc(){if(zc.size!==0)for(let e of zc){let t=e.overlaid;for(let e of t)if(!jc(e)){t.delete(e),e.ch&&Ac(e);let n=e.k;n!==null&&n.Ie instanceof ws&&(n.Ie=n.Ie.base)}t.size===0&&zc.delete(e)}}function Ac(e){let t=e.v,n=!1,r=e.n;if(r!==null)for(let e of Reflect.ownKeys(r)){let i=r[e],a=L(()=>Y(t[e]));i.xe&&i.xe(i.Ie,a)||(i.Ie=a,i.o!==null&&i.Me!==ln&&(T(i),n=!0))}let i=e.h;if(i!==null)for(let e of Reflect.ownKeys(i)){let r=i[e],a=L(()=>e in t);r.Ie!==a&&(r.Ie=a,r.o!==null&&r.Me!==ln&&(T(r),n=!0))}let a=e.k;if(a!==null&&a.o!==null&&a.Ie instanceof ws&&a.Me!==ln){let r=Array.isArray(t)?L(()=>t.map(Y)):t;xc(a.Ie.rows,r,e.fam?.key??null)||(T(a),n=!0)}n&&w()}function jc(e){if(e.k!==null&&e.k.l&2048||e.dk!==null&&e.dk.l&2048)return!0;let t=e.n;if(t!==null){for(let e of Reflect.ownKeys(t))if(t[e].l&2048)return!0}let n=e.h;if(n!==null){for(let e of Reflect.ownKeys(n))if(n[e].l&2048)return!0}return!1}function Mc(e){let t=e.fam;return t!==null&&t.opt===!0&&t.overlaid!==void 0&&t.overlaid.has(e)}function Nc(e,t){if(!Mc(e))return;let n=e.h?.[t];if(n!==void 0&&n.l&2048)return!!Bc(n);let r=e.n?.[t];if(r!==void 0&&r.l&2048)return Bc(r)!==void 0}function Pc(e,t){let n=Nc(e,t);if(n===void 0)return;if(!n)return null;let r=e.n?.[t],i=r!==void 0&&r.l&2048?Bc(r):e.v[t];return t===`length`&&Array.isArray(e.v)?{value:i,writable:!0,enumerable:!1,configurable:!1}:{value:i,writable:!0,enumerable:!0,configurable:!0}}function Fc(e,t,n=Bc,r=!1){if(!r&&!Mc(e))return t;let i=null,a=()=>i??=Array.isArray(t)?[...t]:{...t},o=e.n;if(o!==null)for(let e of Reflect.ownKeys(o)){let i=o[e],s;if(i.l&2048)s=n(i);else if(!r||(s=Yr(i))===_)continue;e===`length`&&Array.isArray(t)?t.length!==s&&(a().length=s):(!I(t[e],s)||!Lc.call(t,e))&&(a()[e]=s)}let s=e.h;if(s!==null)for(let e of Reflect.ownKeys(s)){let o=s[e],c;if(o.l&2048)c=n(o);else if(!r||(c=Yr(o))===_)continue;!c&&e in(i??t)&&delete a()[e]}return i??t}function Ic(e,t,n){let r=typeof e==`function`,i=r?n:t,a=r?t||{}:e,o=i?.key===void 0?`id`:i.key,s={map:new WeakMap,node:null,live:new Set,shallow:!!i?.shallow,opt:!0,key:typeof o==`function`?o:o===null?null:e=>G(e)?e[o]:void 0},c=ao(a,null,null,s);if(s.shallow&&(c[K].s=!0,fa(a)),r){let t=e,n;i?.seedLoadingValue&&(n={loadingValue:void 0});let r=P(()=>{s.node||=y(),uc(c,t,o)},n);r.l&=-33,s.node=r}return[c,e=>vs(c,e)]}var Lc,Rc,zc,Bc;function Vc(){return(Vc=e((()=>{v(),U(),Ti(),b(),N(),mc(),Qs(),no(),Za(),Sa(),Gr(),Lc=Object.prototype.hasOwnProperty,Rc=new Map,j.nn=(e,t)=>{try{return bc(e,t)}catch{return!1}},j.an=(e,t,n)=>{if(!n)return Cc(e,t);let r=e.O;if(r===void 0||e.ze!==ha)return;let i=e.T.v;if(!(i instanceof ws))return;if(!Array.isArray(t)||!Array.isArray(i.rows)){i.base=t;return}let a=r.fam?.key??null;if(a===null)return;let o=new Map;for(let e=0;e<t.length;e++){let n=t[e],r=G(n)?a(n):void 0;r!==void 0&&!o.has(r)&&o.set(r,n)}let s=new Set,c=[],l=i.rows;for(let e=0;e<l.length;e++){let t=l[e],n=G(t)?a(t):void 0,r=n===void 0?void 0:o.get(n);r===void 0?c.push(t):(c.push(r),s.add(n))}let u=i.removed;for(let e=0;e<t.length;e++){let n=t[e],r=G(n)?a(n):void 0;r!==void 0&&!s.has(r)&&(u===null||!u.has(r))&&c.push(n)}i.rows=c,i.base=c;let d=x(e),f=Qo(r),p=r.n;for(let e=0;e<c.length;e++){let t=p?.[e];t===void 0?Tc(f[e],c[e],a)||Ec(po(r,e),c[e],d):Tc(t.l&2048?t.T.v:f[e],c[e],a)||Ec(t,c[e],d)}if(p!==null){for(let e=c.length;;e++){let t=p[e];if(t===void 0)break;Ec(t,void 0,d)}let e=p.length;e!==void 0&&(e.l&2048||f.length!==c.length)&&Ec(e,c.length,d)}},Qa({draft:gc,writes:_c,arrangement:vc,reconcile:Sc,view:(e,t,n=!1)=>n?Fc(e,t,Vr,!0):Fc(e,t),has:Nc,descriptor:Pc,sweep:kc}),zc=new Set,Bc=e=>L(()=>R(e))})))()}function Hc(e,t,n){return typeof e==`function`?pc(e,t,n):ys(e,t)}function Uc(e,t=`id`){return n=>$s(e,n,t)}function Wc(){return(Wc=e((()=>{Qs(),mc(),rc()})))()}function Gc(e,t=new Set,n=de|g){for(let r=e.o;r!==null;r=r.t){let e=r.u;if(t.has(e))continue;t.add(e),e.l&n&&un(e),e.i||Gc(e,t,n);let i=e.fam;if(i){for(let e of i.live)for(let n of[e.n,e.h,{k:e.k,d:e.dk}])if(n)for(let e of Reflect.ownKeys(n))n[e]&&Gc(n[e],t,32768)}}}function Kc(e,t){if(e.T!==null&&e.T.I!==0)return!0;let n=e;if(n.m&2||t.has(e))return!1;if(t.add(e),n.l&4096){let e=n.O?.fam?.node;return e!=null&&Kc(e,t)}let r=n.R&4?n._:void 0;if(r!==null)for(let e=n.C??null;e!==null;e=e.G){if(Kc(e.S,t))return!0;if(e===r)break}return!1}function qc(e){F(e).I++,Yc++}function Jc(e){return Yc--,--e.T.I===0&&(Gc(e),!0)}var Yc;function Xc(){return(Xc=e((()=>{v(),U(),yn(),N(),Yc=0,j.p=e=>Yc!==0&&Kc(e,new Set),j.N=qc})))()}function Zc(e,t){let n=il.get(e);return n===void 0&&il.set(e,n={eo:new Set,oo:[],ze:t}),n}function Qc(e,t){let n=j.no(e,t===void 0?rl:t),r=Zc(n,t);if(t===void 0){let t=[n];return $c(e.px,r,t,e.fam,new Set),t}return r.eo.add(e.v),e.pb!==null&&r.eo.add(e.pb),[n]}function $c(e,t,n,r,i){if(!j.so(e))return;let a=e[K]??Ja(e,r),o=a===void 0?e:a.pb??a.v;if(!i.has(o)){if(i.add(o),t.eo.add(o),a!==void 0){a.pb!==null&&t.eo.add(a.v),a.fam?.opt===!0&&(o=eo.view(a,o,!0));let e=a.n;if(e!==null)for(let t of Reflect.ownKeys(e))t!==rl&&n.push(e[t]);let i=a.h;if(i!==null)for(let e of Reflect.ownKeys(i))n.push(i[e]);a.k!==null&&n.push(a.k),a.dk!==null&&n.push(a.dk),r=a.fam??r}for(let e of Reflect.ownKeys(o))if(e!==J){let a=Object.getOwnPropertyDescriptor(o,e);a.get===void 0&&$c(a.value,t,n,r,i)}}}function el(e,t,n){for(let[r,i]of il)if(!(r===n||i.ze!==void 0&&i.ze!==t))for(let t=e.v;;){if(i.eo.has(t))return r;let e=t?.[K];if(e===void 0)break;let n=e.pb??e.v;if(n===t)break;t=n}return null}function tl(){$a(al)}function nl(e){let t=il.get(e);t!==void 0&&(il.delete(e),Ht(t.oo))}var rl,il,al;function ol(){return(ol=e((()=>{N(),no(),Za(),Sa(),rl=Symbol(0),il=new Map,al={fo(e,t,n){if(il.size===0||n===rl)return;let r=el(e,n,t);r&&(j.N(t),il.get(r).oo.push(t))},ro(e,t){(e.n?.[rl]?.T?.I||el(e,t))&&j.rt()}}})))()}function sl(e){for(let t=0;t<e.length;t++){let n=e[t];Jc(n)&&nl(n)}e.length=0}function cl(e){qc(e);let t=O;if(t===null)dl.push(e);else{let n=S(t);(n.I??=[]).push(e)}Gc(e)}function ll(e,t){let n=e?.[K];if(n!==void 0){tl();let e=Qc(n,t);for(let t=0;t<e.length;t++)cl(e[t]);w();return}let r=e?.[ye];r&&(cl(r),w())}function ul(e){return!!(e.m&1)||!!(e.l&4096)&&j.k?.(e)===!0}var dl;function fl(){return(fl=e((()=>{v(),N(),Xc(),ol(),Sa(),dl=[],He(sl,e=>{if(dl.length===0)return;if(e!==null){let t=e.I??=[];for(let e=0;e<dl.length;e++)t.push(dl[e]);dl.length=0;return}let t=0,n=[];for(let e=0;e<dl.length;e++){let r=dl[e];ul(r)?dl[t++]=r:n.push(r)}dl.length=t,n.length!==0&&sl(n)})})))()}function pl(e,t){if(typeof e==`function`&&!e.length){if(t?.doNotUnwrap)return e;do e=e();while(typeof e==`function`&&!e.length)}if(!t?.skipNonRendered||e!=null&&e!==!0&&e!==!1&&e!==``){if(Array.isArray(e)){let n=[];return ml(e,n,t)?()=>{let e=[];return ml(n,e,{...t,doNotUnwrap:!1}),e}:n}return e}}function ml(e,t=[],n){let r=null,a=!1;for(let o=0;o<e.length;o++)try{let r=e[o];if(typeof r==`function`&&!r.length){if(n?.doNotUnwrap){t.push(r),a=!0;continue}do r=r();while(typeof r==`function`&&!r.length)}Array.isArray(r)?a=ml(r,t,n)||a:n?.skipNonRendered&&(r==null||r===!0||r===!1||r===``)||t.push(r)}catch(e){if(!(e instanceof i))throw e;r=e}if(r)throw r;return a}function hl(){return(hl=e((()=>{l()})))()}function gl(e){Ll=e}function _l(e,t){e.U.add(t),Rl.add(e)}function vl(e,t,n){if(e.i===2){n??=t.T?.F,t=n?.source??t;let i=r(n);z(e.F,i),oa(i,e.L,t)}_l(e,t),e.h&&yl(e),e.H||bl(e),e.V!==null&&Ll.P(e.V)}function yl(e){e.D=!1,e.v=e.B;let t=e.j;!e.v&&t.l&256&&x(t)!==O&&st(t),e.v!==null&&e.j!==null&&E(e.j,e.v,!0,!1)}function bl(e){e.j!==null&&!(e.j.R&96)&&(un(e.j),w())}function xl(e,t,n){if(t===0){if(Rl.size!==0)for(let t=zl(e);t;t=t._parent)!(e.m&Vl(t))&&t.U.delete(e)&&t.U.size===0&&(t.H&&bl(t),t.V!==null&&Ll.P(t.V));return!1}for(let r=zl(e);r;r=r._parent)if(r.i&t){if(Bl(r))return vl(r,e,n),!r.h||2;_l(r,e)}return!1}function Sl(e){for(let t=zl(e);t;t=t._parent)if(t.i&1&&Bl(t))return t.h}function Cl(e){for(let t=zl(e);t;t=t._parent)if(t.H)return t}function wl(e){let t=Cl(e);return t!==void 0&&((t.Z??=new Set).add(e),!0)}function Tl(e){if(e.Z!==null){for(let t of e.Z){let e=t.i;M.enqueue(e===3?2:e,e===3?t.M:t.W??=j.K.bind(null,t))}e.Z=null}}function El(e,t){let n=Vl(e);for(let r of e.U)if(r.R&64)e.U.delete(r);else if(!(r.m&n)){if((r!==e.Y||e.h)&&(r.l&2304)==256){if(!t||!e.D)continue;C(x(r))}e.U.delete(r)}return e.U.size}function Dl(e){return e.D||!(e.Y.m&1)&&!(e.Y.l&256&&(e.j===null||e.j.m&4))&&El(e,!1)===0}function Ol(){for(let e of Rl){let t=e.j.R;if(t&64){Rl.delete(e);continue}if(t&32)continue;El(e,!1);let n=e.j;e.h&&!e.D&&n.l&256&&[...e.U].every(e=>!(e.m&1)&&e.l&256&&x(e)===x(n))&&(e.U.clear(),e.D=!0),e.h=!1,e.U.size===0&&(Rl.delete(e),e.H&&bl(e),e.V!==null&&Ll.P(e.V))}}function kl(e){if(!e.D){e.H&&e.v===null&&e.B===null&&D!==null&&(e.B=D,yl(e),bl(e));return}e.h=!0;let t=D;t===null&&M.q&&y().l&32768&&(C(null),t=j.J(O)),e.B=t,Rl.add(e);let n=e.U.size;ot(e.L,O,t=>_l(e,t));for(let t of e.U)if(e.U.size!==n||t.m&1&&!(t.R&64)){for(let t=e._parent;t!==null;t=t._parent)for(let n of e.U)t.U.delete(n);yl(e),bl(e);return}}function Al(e){for(let t of[...e.U])t.X!==void 0&&!(t.R&64)&&er(t);w()}function jl(e,t,n,r){let a=Ie(),o={i:e,_parent:zl(a)??null,L:a,Y:null,j:null,U:new Set,D:!1,h:!1,B:null,v:null,H:!1,Z:null,V:null,$:!1,ee:!1,F:e===2?fr(void 0,Hl):null,ne:n,re:null},s=e===1?a.A[Il]:null;if(y()&&Ne(()=>{Rl.delete(o),s&&Ll.te(s,o)}),r){let e=!1;B(a,()=>P(()=>{try{r()}catch(e){if(!(e instanceof i)){if(!M.notify(y(),2,2,e))throw ft(e),e;return}}e?kl(o):e=!0})).l|=fe}let c={...a.A,[Fl]:o};Ll!==null&&(c[Il]=null),a.A=c;let l=B(a,()=>{let e=P(t);return P(()=>pl(R(e)))});o.Y=l,s&&Ll.oe(s,o);let u=P(()=>{if(o.$&&(En(l,y()),o.V!==null&&Ll.P(o.V),o.$)){if(o.ee){o.H=!0;return}return Ml(o)}let t=l.m&3;if(t!==0){if(En(l,y()),t&e){if(Bl(o))return vl(o,l,void 0),Ml(o);_l(o,l)}throw l.T.F}if(Bl(o)){let e=y();if(o.U.size!==0&&e.m&4&&!(e.l&256)||El(o,!0)!==0)return Ml(o)}let n;try{n=R(l)}catch(t){if(t instanceof i?e===1:e===2){if(Bl(o))return vl(o,l,t),Ml(o);_l(o,l)}throw t}if(Bl(o)&&o.U.size!==0)return Ml(o);o.D=!0,o.H=!1;let r=o.re;if(r!==null&&M.enqueue(1,()=>{!o.H&&o.re===r&&(Se(r),o.re=null)}),Tl(o),o.V!==null){let e=o.V;o.V=null,Ll.P(e)}return n},{le:!0});return u.l|=fe,o.j=u,wa(u)}function Ml(e){if(e.v!==null&&(Ge(e.v),e.j.R|=te,e.v=null),e.H=!0,e.re===null){let t=y();e.re=B(t._parent,()=>P(()=>e.ne(e),{id:t.id}))}return R(e.re)}function Nl(e,t,n){return jl(1,e,()=>t(),n?.on)}function Pl(e,t){return jl(2,e,e=>t(wa(e.F),()=>Al(e)))}var Fl,Il,Ll,Rl,zl,Bl,Vl,Hl;function Ul(){return(Ul=e((()=>{v(),U(),l(),la(),jn(),yn(),b(),N(),hl(),Pa(),Fl=Symbol(``),Il=Symbol(``),Ll=null,Rl=new Set,zl=e=>e.A[Fl],Bl=e=>e.i===2||!e.D||e.h,Vl=e=>e.i===2?3:1,Hl={ownedWrite:!0,le:!0},Be(xl,(e,t)=>!t&&(e.m&4?xl(e,1):Sl(e)),Cl,Ol,wl)})))()}function Wl(e,t,n,r){Jl(e)?(e.$=n,e.ee=r,e._t(),!n&&e.Ct&&e._parent===t&&(e._parent=null)):(e.$!==n||e.ee!==r)&&(e.$=n,e.ee=r,bl(e))}function Gl(e,t){let n=Ie(),r=n.A[Il],i=new Zl(t?.order||ql,t?.collapsed||Kl);return n.A={...n.A,[Il]:i},B(n,()=>{let t=e();return P(()=>{i.yt(),i.Et(),i._t()}),r&&(r.oe(i),Ne(()=>r.te(i))),t})}var Kl,ql,Jl,Yl,Xl,Zl;function Ql(){return(Ql=e((()=>{U(),b(),Ul(),Kl=()=>!1,ql=()=>`sequential`,Jl=e=>e instanceof Zl,Yl=e=>Jl(e)?e.St():Dl(e),Xl=e=>Jl(e)?e.Rt():Dl(e),Zl=class{yt;Et;At=[];_parent=null;$=!1;ee=!1;Ct=!0;kt=!0;vt=!1;constructor(e,t){this.yt=e,this.Et=t}gt(e){return(Jl(e)?e._parent:e.V)!==this}Lt(e){for(let t=0;t<this.At.length;t++){let n=this.At[t];if(!this.gt(n)&&e(n)===!1)return!1}return!0}St(){for(let e=0;e<this.At.length;e++){let t=this.At[e];if(!this.gt(t)&&!Yl(t))return!1}return!0}Rt(){let e=L(this.yt),t=this.At;if(t.length===0)return!0;if(e===`sequential`)return this.gt(t[0])||Xl(t[0]);for(let n=0;n<t.length;n++){let r=this.gt(t[n])||Xl(t[n]);if(e===`natural`?r:!r)return e===`natural`}return e!==`natural`}oe(e){if(this.At.includes(e))return;this.At.push(e);let t=L(this.yt)===`sequential`&&!!L(this.Et);Jl(e)?(e._parent=this,e.$=!0,e.ee=t,e._t()):(e.V=this,e.$=!0,e.ee=t),L(()=>this._t())}te(e){let t=this.At.indexOf(e);t>=0&&this.At.splice(t,1),L(()=>this._t())}_t(){if(this.vt)return;this.vt=!0;let e=this.Ct,t=this.kt;try{let e=L(this.yt),t=e===`sequential`&&!!L(this.Et);if(this.$)this.Lt(e=>Wl(e,this,!0,this.ee));else if(e===`natural`)this.Lt(e=>{Jl(e)?Wl(e,this,!1,!1):Wl(e,this,!Dl(e),!1)});else if(e===`together`){let e=this.Lt(Xl);this.Lt(t=>Wl(t,this,!e,!1))}else{let e=!1;this.Lt(n=>{if(e)return Wl(n,this,!0,t);if(Yl(n))return Wl(n,this,!1,!1);e=!0,Wl(n,this,!Jl(n),!1)})}}finally{this.Ct=this.St(),this.kt=this.Rt(),this.vt=!1}this._parent!==null&&(e!==this.Ct||t!==this.kt)&&this._parent._t()}},gl({oe:(e,t)=>e.oe(t),te:(e,t)=>e.te(t),P:e=>e._t()})})))()}function $l(){return!0}function eu(e,t){return t===3?(e=e())??Iu:e}function Q(e,t){let n=e.hidden;return typeof n==`function`?n(t):n.includes(t)}function tu(e,t){if(typeof e!=`function`&&typeof t!=`function`){let n=e.slice();for(let e=0;e<t.length;e++)n.push(t[e]);return n}return n=>(typeof e==`function`?e(n):e.includes(n))||(typeof t==`function`?t(n):t.includes(n))}function nu(e){return eu(e.source,e.kind)}function ru(e){return e[ga]}function iu(e,t){return t===0?Object.keys(e):t===2||e[q]===e?Reflect.ownKeys(e):Object.keys(e)}function au(e,t){if(t===1){if(e.kind===4)return Au(e.source,!1,e);let t=iu(nu(e),e.kind),n=[];for(let r=0;r<t.length;r++)Q(e,t[r])||n.push(t[r]);return n}return iu(eu(e,t),t)}function ou(e,t,n){return t===1?Q(e,n)?!1:e.kind===4?Ou(e.source,n):n in nu(e):n in eu(e,t)}function su(e,t,n){return t===1?Q(e,n)?void 0:e.kind===4?Du(e.source,n):nu(e)[n]:eu(e,t)[n]}function cu(e,t){return t===0?!0:t===1?e.kind===0||e.kind===4&&lu(e.source):!1}function lu(e){let t=e.sources,n=e.kinds;for(let e=0;e<t.length;e++)if(!cu(t[e],n[e]))return!1;return!0}function uu(e){if(!(q in e))return!0;let t=ru(e);return t instanceof Ru?lu(t):t!==void 0&&cu(t,1)}function du(e,t=!0){return{configurable:!0,enumerable:t,get:e,set:$l}}function fu(e,t,n,r=!1){if(t===1)return Q(e,n)?void 0:fu(e.source,e.kind,n,r);if(t===4)return ku(e,n);if(t===3)return r||n in eu(e,t)?du(()=>eu(e,t)[n]):void 0;if(t===2)return ru(e)===void 0?r||n in e?du(()=>e[n]):void 0:Reflect.getOwnPropertyDescriptor(e,n);let i=Reflect.getOwnPropertyDescriptor(e,n);if(i!==void 0)return i.get!==void 0||i.set!==void 0?du(()=>e[n],i.enumerable):i.configurable?i:{configurable:!0,enumerable:i.enumerable,writable:!0,value:i.value}}function pu(e,t){{if(e.kind===4)return Nu(e.source,e);let t=pa(nu(e)),n=[];for(let r=0;r<t.length;r++)Q(e,t[r])||n.push(t[r]);return n}}function mu(e){return e!=null&&q in e?e[ga]:void 0}function hu(e){if(e==null||!(q in e))return;let t=ru(e);return t instanceof Lu?bu(t):t===void 0?void 0:gu(t)}function gu(e){let t=e.table;if(typeof t!=`object`){let n=e.sources,r=e.kinds;for(let t=0;t<n.length;t++)if(!cu(n[t],r[t])){e.table=null;return}t=new Map,_u(t,e,void 0),e.table=t}return t===null?void 0:t}function _u(e,t,n){let r=t.sources,i=t.kinds;for(let t=0;t<r.length;t++){let a=r[t];if(i[t]===1){if(a.kind===4){n===void 0?n=[a]:n.push(a),_u(e,a.source,n),n.pop();continue}let t=a.source,r=Reflect.ownKeys(t);for(let i=0;i<r.length;i++){let o=r[i];!Q(a,o)&&!vu(n,o)&&yu(e,o,t)}}else{let t=Reflect.ownKeys(a);for(let r=0;r<t.length;r++){let i=t[r];vu(n,i)||yu(e,i,a)}}}}function vu(e,t){if(e!==void 0){for(let n=e.length-1;n>=0;n--)if(Q(e[n],t))return!0}return!1}function yu(e,t,n){e.has(t)&&e.delete(t),e.set(t,n)}function bu(e){let t=e.table;if(typeof t!=`object`){let n=e.source;if(e.kind===4){if(!lu(n)){e.table=null;return}t=new Map,_u(t,n,[e])}else if(e.kind===0){t=new Map;let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){let a=r[i];Q(e,a)||t.set(a,n)}}else{e.table=null;return}e.table=t}return t===null?void 0:t}function xu(e,t){let n=e.keys;if(n===void 0){n=e.keys=[];for(let[e,r]of t)zu.call(r,e)&&n.push(e)}return n}function Su(e,t,n){let r=t.get(n);if(r===void 0)return;let i=e.descs;i===void 0&&(i=e.descs=new Map);let a=i.get(n);return a===void 0?(a=fu(r,0,n),a===void 0?void 0:(i.set(n,a),a)):a.get===void 0?{configurable:!0,enumerable:a.enumerable,writable:a.writable,value:r[n]}:a}function Cu(e){let t=e.table;if(typeof t==`object`)return t===null?void 0:t;if(t+1<Bu)e.table=t+1;else return gu(e)}function wu(e){let t=e.table;if(typeof t==`object`)return t===null?void 0:t;if(t+1<Bu)e.table=t+1;else return bu(e)}function Tu(e){let t=e.table;return typeof t==`object`&&t?t:void 0}function Eu(e,t){let n=Tu(e);if(n!==void 0){let e=n.get(t);return e===void 0?Vu:e[t]}let r=e.sources,i=e.kinds;for(let e=r.length-1;e>=0;e--){let n=i[e];if(n===0){let n=r[e];if(t in n)return n[t]}else if(n===1){let n=r[e];if(Q(n,t))continue;if(n.kind===4){let e=Eu(n.source,t);if(e!==Vu)return e;continue}let i=nu(n);if(t in i)return i[t]}else{let i=eu(r[e],n);if(t in i)return i[t]}}return Vu}function Du(e,t){let n=Eu(e,t);return n===Vu?void 0:n}function Ou(e,t){let n=Tu(e);if(n!==void 0)return n.has(t);let r=e.sources,i=e.kinds;for(let e=r.length-1;e>=0;e--)if(ou(r[e],i[e],t))return!0;return!1}function ku(e,t){let n=Tu(e);if(n!==void 0)return Su(e,n,t);let r=e.sources,i=e.kinds;for(let n=r.length-1;n>=0;n--)if(ou(r[n],i[n],t))return fu(r[n],i[n],t,!0)??du(()=>Du(e,t))}function Au(e,t,n){let r=[];return ju(e,n===void 0?void 0:[n],t,r,null),r}function ju(e,t,n,r,i){let a=e.sources,o=e.kinds;for(let e=0;e<a.length;e++){let s=a[e],c=o[e],l;if(c===1){if(s.kind===4){t===void 0?t=[s]:t.push(s),ju(s.source,t,n,r,i),t.pop();continue}l=s,c=s.kind,s=s.source}s=eu(s,c);let u=n?pa(s):iu(s,c);for(let e=0;e<u.length;e++){let n=u[e];l!==void 0&&Q(l,n)||vu(t,n)||Mu(r,i,n,s)}}}function Mu(e,t,n,r){let i=e.indexOf(n);i!==-1&&(e.splice(i,1),t!==null&&t.splice(i,1)),e.push(n),t!==null&&t.push(r)}function Nu(e,t){let n=gu(e);if(n===void 0)return Au(e,!0,t);let r=xu(e,n);if(t===void 0)return r;let i=[];for(let e=0;e<r.length;e++)Q(t,r[e])||i.push(r[e]);return i}function Pu(...e){if(e.length===1&&typeof e[0]!=`function`)return e[0];let t=Array(e.length),n=Array(e.length),r=0,i,a=0;for(let o=0;o<e.length;o++){let s=e[o];if(s){if(a++,i=s,typeof s==`function`)t[r]=Da(s),n[r++]=3;else if(q in s){let e=ru(s);if(e instanceof Ru)for(let i=0;i<e.sources.length;i++)t[r]=e.sources[i],n[r++]=e.kinds[i];else e===void 0?(t[r]=s,n[r++]=2):(t[r]=e,n[r++]=1)}else t[r]=s,n[r++]=0}}if(r!==t.length&&(t.length=r,n.length=r),_e)return a===1&&typeof i!=`function`?i:new Proxy(new Ru(t,n),Hu);let o=Object.create(null),s=!1,c=t.length-1;for(let e=c;e>=0;e--){let n=t[e];if(!n){e===c&&c--;continue}let r=Object.getOwnPropertyNames(n);for(let t=r.length-1;t>=0;t--){let i=r[t];if(i!==`__proto__`&&i!==`constructor`&&!o[i]){s||=e!==c;let t=Object.getOwnPropertyDescriptor(n,i);o[i]=t.get?{enumerable:!0,configurable:!0,get:t.get.bind(n)}:t}}}if(!s)return t[c];let l={},u=Object.keys(o);for(let e=u.length-1;e>=0;e--){let t=u[e],n=o[t];n.get?Object.defineProperty(l,t,n):l[t]=n.value}return l}function Fu(e,...t){let n=t.length===1&&typeof t[0]==`function`?t[0]:t;if(_e){let t=e,r=0;if(typeof e==`function`)r=3;else if(q in e){r=2;let i=ru(e);i instanceof Lu?(t=i.source,r=i.kind,n=tu(i.hidden,n)):i!==void 0&&(t=i,r=4)}return new Proxy(new Lu(t,r,n),Uu)}let r={},i=Object.getOwnPropertyNames(e),a=typeof n==`function`?n:n.length>4&&i.length>n.length?(e=>t=>e.has(t))(new Set(n)):e=>n.includes(e);for(let t of i)if(!a(t)){let n=Object.getOwnPropertyDescriptor(e,t);!n.get&&!n.set&&n.enumerable&&n.writable&&n.configurable?r[t]=n.value:n.get||n.set?Object.defineProperty(r,t,{enumerable:n.enumerable,configurable:!0,get:n.get&&n.get.bind(e),set:n.set&&n.set.bind(e)}):Object.defineProperty(r,t,n)}return r}var Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu;function Wu(){return(Wu=e((()=>{v(),Pa(),Sa(),Iu=Object.freeze({}),Lu=class{source;kind;hidden;table=0;keys=void 0;descs=void 0;constructor(e,t,n){this.source=e,this.kind=t,this.hidden=n}},Ru=class{sources;kinds;table=0;keys=void 0;descs=void 0;constructor(e,t){this.sources=e,this.kinds=t}},zu=Object.prototype.propertyIsEnumerable,Bu=16,Vu=Symbol(),Hu={get(e,t,n){if(typeof t==`symbol`){if(t===q)return n;if(t===ga)return e;if(t===K)return}let r=e.table,i;if(typeof r!=`object`){if(r+1<Bu){e.table=r+1;let n=e.sources,i=e.kinds;for(let r=n.length-1;r>=0;r--){if(i[r]!==0)return Du(e,t);let a=n[r][t];if(a!==void 0||t in n[r])return a}return}if(i=gu(e),i===void 0)return Du(e,t)}else if(r===null)return Du(e,t);else i=r;let a=i.get(t);return a===void 0?void 0:a[t]},has(e,t){if(t===q)return!0;if(t===K||t===ga)return!1;let n=Cu(e);return n===void 0?Ou(e,t):n.has(t)},set:$l,deleteProperty:$l,getOwnPropertyDescriptor(e,t){if(t===q||t===K||t===ga)return;let n=Cu(e);return n===void 0?ku(e,t):Su(e,n,t)},ownKeys(e){return Nu(e)}},Uu={get(e,t,n){if(t===q)return n;if(t===ga)return e;if(t!==K){if(e.kind===4){let n=wu(e);if(n!==void 0){let e=n.get(t);return e===void 0?void 0:e[t]}return Q(e,t)?void 0:Du(e.source,t)}if(!Q(e,t))return nu(e)[t]}},has(e,t){if(t===q)return!0;if(t===K||t===ga)return!1;if(e.kind===4){let n=wu(e);return n===void 0?!Q(e,t)&&Ou(e.source,t):n.has(t)}return!Q(e,t)&&t in nu(e)},set:$l,deleteProperty:$l,getOwnPropertyDescriptor(e,t){if(t!==q&&t!==K&&t!==ga){if(e.kind===4){let n=wu(e);if(n!==void 0)return Su(e,n,t)}return fu(e,1,t)}},ownKeys(e){if(e.kind===4){let t=bu(e);return t===void 0?pu(e):xu(e,t)}let t=Reflect.ownKeys(nu(e)),n=[];for(let r=0;r<t.length;r++)Q(e,t[r])||n.push(t[r]);return n}}})))()}function Gu(e,t){let n=Symbol(t&&t.name||``);function r(e){return Le(()=>(Xi(r,e.value),qu(()=>e.children)))}return r.id=n,r.defaultValue=e,r}function Ku(e){return Yi(e)}function qu(e){let t=Da(e,{lazy:!0}),n=Da(()=>pl(t()),{lazy:!0,sync:!0});return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}function Ju(e,t,n,r){return L(()=>e(t||{}))}function Yu(e,t,n){let r=t?.export,i,a,o=()=>{if(a)return a;let t=a=e();return md&&(a=void 0),t.then(e=>{i=()=>r?e[r]:e.default},()=>{a===t&&(a=void 0)}),t},s=e=>{ud.hydrating&&(i=pd(i,n,r));let t=i;t||=(o(),Da(()=>o().then(e=>r?e[r]:e.default)));let a;return Da(()=>(a=(i||t)())?Ju(a,e):``,{sync:!0})};return s.preload=o,s.moduleUrl=n,s}function Xu(e,t){let n,r,i=()=>{if(n)return n;let t=n=e();return md&&(n=void 0),t.then(e=>{r=e},()=>{n===t&&(n=void 0)}),t},a=i;return a.preload=i,a.peek=()=>{if(!ud.hydrating)return r;let e=t?globalThis._$HY?.modules?.[t]:void 0;return e&&(r=e),e},a.moduleUrl=t,a}function Zu(){return ud.hydrating?ud.getNextContextId():`cl-${Dd++}`}function Qu(e){return e?.[Od]||void 0}function $u(e,t,n){if(t?.static)return ed(L(e),n);let r=new Set,i,a=(e,t)=>{let n=Qu(e);if(!n)return e;i=n.address;let a=Qu(t);if(a&&a.component===n.component){for(let e of r)e(n.address);return t}return e},o=(e,t)=>{if(e===t)return!0;let n=Qu(e),a=Qu(t);if(!n||!a||n.component!==a.component)return!1;if(n.address===a.address)return!0;if(i===void 0)return!1;if(a.address!==i){i=a.address;for(let e of r)e(a.address)}return!0},s=hd(t=>{let n=e();return!n||typeof n.then!=`function`?a(n,t):{[kd]:n}},{lazy:!0,equals:o});return e=>{if(ud.hydrating)try{L(s)}catch{}let t=0,c=hd(e=>{let n=s();if(!n||!n[kd])return a(n,e);let r=n[kd],i=++t;return{then:(n,o)=>r.then(r=>{let o=i===t?a(r,e):r;return n?n(o):o},o)}},{equals:o});return hd(()=>{let t=c();switch(typeof t){case`function`:{let n=Qu(t);if(n){let[t,a]=gd(i??=n.address,{ownedWrite:!0});return r.add(a),Ca(()=>r.delete(a)),L(()=>n.component(e,t))}return L(()=>t(e))}case`string`:return n?n(t,e):void 0}})}}function ed(e,t){if(typeof e==`function`){let t=Qu(e);if(t){let e=()=>t.address;return n=>L(()=>t.component(n,e))}return t=>L(()=>e(t))}return typeof e==`string`&&t?n=>t(e,n):()=>void 0}function td(e){let t=`fallback`in e?{keyed:e.keyed,fallback:()=>e.fallback}:{keyed:e.keyed},n=y(),r,i=()=>B(n,()=>Fa(()=>e.each,e.children,t));return ud.hydrating&&(r=i()),()=>(r??=i())()}function nd(e){let t=`fallback`in e?{fallback:()=>e.fallback}:{};return t.from=()=>e.from,Va(()=>e.count,t=>typeof e.children==`function`?e.children(t):e.children,t)}function rd(e){let t=e.keyed,n=Da(()=>e.when,void 0),r=t?n:Da(n,{equals:(e,t)=>!e==!t,sync:!0}),i=!1;return Da(()=>{let a=r();if(i=a,a){let r=e.children;return typeof r==`function`&&r.length>0?L(t?()=>r(a):()=>r(()=>{if(!i)throw Ad(`Show`);return n()}),ld):r}return e.fallback},{sync:!0})}function id(e){let t=qu(()=>e.children),n=Da(()=>{let e=t.toArray(),n=()=>void 0;for(let t=0;t<e.length;t++){let r=t,i=e[t];if(i==null)continue;let a=n,o=Da(()=>a()?void 0:i.when,void 0),s=i.keyed?o:Da(o,{equals:(e,t)=>!e==!t,sync:!0});n=()=>{let e=a();if(e)return e;let t=s();return t?[r,t,o,i]:void 0}}return n},{sync:!0});return Da(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a,o]=t,s=o.children;return typeof s==`function`&&s.length>0?o.keyed?L(()=>s(i),ld):L(()=>s(()=>{if(L(n)()?.[0]!==r)throw Ad(`Match`);return a()}),ld):s},{sync:!0})}function ad(e){return e}function od(e){return _d(()=>e.children,(t,n)=>{let r=e.fallback;return typeof r==`function`?r(t,n):r})}function sd(e){let t=`on`in e?{on:()=>e.on}:void 0;return Ed(()=>e.children,()=>e.fallback,t)}function cd(e){return Gl(()=>e.children,{order:()=>e.order??`sequential`,collapsed:()=>!!e.collapsed})}var ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,Od,kd,Ad;function jd(){return(jd=e((()=>{Pa(),hl(),Zi(),b(),U(),n(),Ul(),Vc(),mc(),Ql(),Wc(),Ga(),Sa(),l(),N(),Ki(),fl(),la(),Ui(),Wu(),Ji(),ld=!1,ud={hydrating:!1,registry:void 0,done:!1},md=0,hd=(...e)=>Da(...e),gd=(...e)=>Ta(...e),_d=(...e)=>Pl(...e),vd=(...e)=>typeof e[0]==`function`&&ud.hydrating?dd(Ea,e[0],e[1]):Ea(...e),yd=(e,n)=>ud.hydrating?dd(t,e,n):t(e,n),bd=(...e)=>ud.hydrating?fd(fc,e[0],e[1]??{},e[2]):fc(...e),xd=(...e)=>typeof e[0]==`function`&&ud.hydrating?fd(Hc,e[0],e[1]??{},e[2]):Hc(...e),Sd=(...e)=>typeof e[0]==`function`&&ud.hydrating?fd(Ic,e[0],e[1]??{},e[2]):Ic(...e),Cd=(...e)=>Le(...e),wd=(...e)=>ka(...e),Td=(...e)=>Oa(...e),Ed=(e,t,n)=>Nl(e,t,n),Dd=0,Od=Symbol.for(`solid.component-binding`),kd=Symbol(`solid.dynamic-flight`),Ad=e=>`Stale read from <${e}>.`})))()}var Md,$;function Nd(){return(Nd=e((()=>{jd(),Wu(),Md=$u,$=ud})))()}function Pd(e,t,n){let r=n?{sync:!0,...n,transparent:!n.scope}:Xf;wd(e,t,r)}function Fd(e){return hd(()=>e(),Zf)}function Id(e,t,n,r){let i=t=>{if(!t)return!1;let n=t[Wf];return t.parentNode===e&&(!n||n===r)},a=n.length,o=t.length,s=a,c=0,l=0,u=t[o-1],d=i(u)?u.nextSibling:r||null,f=null,p,m;for(;c<o||l<s;)if(t[c]===n[l])c++,l++;else{for(;o>c&&s>l&&t[o-1]===n[s-1];)o--,s--;if(o===c){let t;if(s<a){if(l&&i(t=n[l-1]))t=t.nextSibling;else{let e=s;for(;e<a&&!i(n[e]);)e++;t=e<a?n[e]:d}}else t=d;for(;l<s;){let i=n[l++];e.insertBefore(i,t),r&&(i[Wf]=r)}}else if(s===l)for(;c<o;){let e=t[c++];(!f||!f.has(e))&&i(e)&&e.remove()}else if((p=t[c])===n[s-1]&&n[l]===t[o-1]&&p.parentNode===e&&(!(m=p[Wf])||m===r)){if(r)do{let n=t[--o];if(e.insertBefore(n,p),n[Wf]=r,l++,c>=o-1||l>=s)break}while(t[c]===n[s-1]&&n[l]===t[o-1]);else do if(e.insertBefore(t[--o],p),l++,c>=o-1||l>=s)break;while(t[c]===n[s-1]&&n[l]===t[o-1])}else{if(!i(t[c])){c++;continue}if(!f){f=new Map;let e=l;for(;e<s;)f.set(n[e],e++)}let a=f.get(t[c]);if(a!=null){if(l<a&&a<s){let i=c,u=1,d;for(;++i<o&&i<s&&(d=f.get(t[i]))!=null&&d===a+u;)u++;if(u>a-l){let i=t[c];for(;l<a;){let t=n[l++];e.insertBefore(t,i),r&&(t[Wf]=r)}}else{let i=n[l++];e.replaceChild(i,t[c++]),r&&(i[Wf]=r)}}else c++}else t[c++].remove()}}}function Ld(e,t,n,r={}){let i;Vd(t);try{Cd(a=>{if(i=a,r.onError&&(y()[on]=r.onError),t===document){let t=e();Pd(()=>pl(t),()=>{})}else{let i=e();gf(t,()=>i,t.firstChild?null:void 0,n,{...r.insertOptions,schedule:!0})}},{id:r.renderId}),Tt()}catch(e){throw i&&i(),Hd(t),e}return()=>{i(),Hd(t),t.textContent=``}}function Rd(e,t,n){let r=document.createElement(`template`);return r.innerHTML=e,n===2?r.content.firstChild.firstChild:r.content.firstChild}function zd(e,t){let n;return t===1?r=>document.importNode(n||=Rd(e,r,t),!0):r=>(n||=Rd(e,r,t)).cloneNode(!0)}function Bd(e){for(let t=0,n=e.length;t<n;t++){let n=e[t];rp.has(n)||(rp.add(n),ip.forEach((e,t)=>Gd(n,t,e)))}}function Vd(e){let t=Ud(e,e);t&&(t.roots=(t.roots||0)+1)}function Hd(e){let t=ip.get(e);t&&(t.roots>1?t.roots--:delete t.roots),Wd(e,e)}function Ud(e,t=e){if(!e||!t)return;let n=ip.get(e);return n||ip.set(e,n={owners:new Map,handlers:new Map}),n.owners.set(t,(n.owners.get(t)||0)+1),rp.forEach(t=>Gd(t,e,n)),n}function Wd(e,t=e){let n=ip.get(e);if(!n)return;let r=n.owners.get(t);r>1?n.owners.set(t,r-1):n.owners.delete(t),!n.owners.size&&(n.handlers.forEach((t,n)=>e.removeEventListener(n,t)),ip.delete(e))}function Gd(e,t,n){if(n.handlers.has(e))return;let r=e=>wf(e,t,n);n.handlers.set(e,r),t.addEventListener(e,r)}function Kd(e){for(;e;){if(ip.get(e)?.roots)return e;e=e._$host||e.parentNode||e.host}}function qd(e,t){let n=e,r=0;for(;n;){if(t.owners.has(n))return{owner:n,distance:r};r++,n=n._$host||n.parentNode||n.host}}function Jd(e,t,n){if(bf(e))return;let r=e.nodeName;t===`value`&&r===`SELECT`?Df(e,n):(t===`value`||t===`defaultValue`)&&(r===`INPUT`||r===`TEXTAREA`)?n==null&&/^(checkbox|radio)$/.test(e.type)?e.removeAttribute(`value`):e[t]=n??``:e[t]=n,Xd(e,t)}function Yd(e,t){for(let n=0;n<e.length;n++)e[n](t)}function Xd(e,t){ap!==null&&e._$claimed&&op.some(e=>e.includes(t.slice(t.indexOf(`:`)+1)))&&Yd(ap,e)}function Zd(e,t){return ap!==null&&!e._$claimed&&(e._$claimed=!0,t===void 0?Yd(ap,e):B(t,()=>Yd(ap,e))),e}function Qd(e,t,n){if(bf(e))return;let r=t===`multiple`&&e.localName===`select`;if(n==null||n===!1)e.removeAttribute(t);else if(e.setAttribute(t,n===!0?``:n),r&&!e._$multiple){let t=e.options;for(let e=0;e<t.length;e++)t[e].defaultSelected&&(t[e].selected=!0)}r&&(e._$multiple=!0),Xd(e,t)}function $d(e,t,n,r){bf(e)||(r==null||r===!1?e.removeAttributeNS(t,n.indexOf(`:`)>-1?n.split(`:`).pop():n):e.setAttributeNS(t,n,r===!0?``:r),Xd(e,n))}function ef(e,t,n){if(typeof t==`number`&&(t=``+t),typeof n==`number`&&(n=``+n),bf(e)){e._$classes=t&&typeof t==`object`?xf(t):void 0;return}if(t==null||t===!1){(n||e._$classes)&&(e.removeAttribute(`class`),e._$classes=void 0);return}if(typeof t==`string`){e._$classes=void 0,t!==n&&e.setAttribute(`class`,t);return}let r;typeof n==`string`?(r={},e.removeAttribute(`class`)):r=e._$classes||xf(n||{}),t=xf(t);let i=Object.keys(t),a=Object.keys(r),o,s;for(o=0,s=a.length;o<s;o++){let n=a[o];n&&n!==`undefined`&&!t[n]&&e.classList.remove(n)}for(o=0,s=i.length;o<s;o++){let n=i[o],a=!!t[n];n&&n!==`undefined`&&r[n]!==a&&a&&e.classList.add(n)}e._$classes=t}function tf(e,t,n,r){if(r){let r=Qf+t,i;Array.isArray(n)?(i=n[1],e[r]=n[0]):e[r]=n,e[`${r}Data`]=i}else{if(Array.isArray(n)){let r=n[0],i=t=>r.call(e,n[1],t);return i[ep]=n,e.addEventListener(t,i),i}return e.addEventListener(t,n,typeof n!=`function`&&n),n}}function nf(e,t,n){if(bf(e))return;if(!t){(n||e._$styles)&&(Qd(e,`style`),e._$styles=void 0);return}let r=e.style;if(typeof t==`string`)return e._$styles=void 0,r.cssText=t;typeof n==`string`&&(r.cssText=``,n=void 0);let i=e._$styles;i||=e._$styles=n?{...n}:{};let a,o;for(o in i)(!tp.call(t,o)||t[o]==null)&&(r.removeProperty(o),delete i[o]);for(o in t)tp.call(t,o)&&(a=t[o],a!=null&&a!==i[o]&&(r.setProperty(o,a),i[o]=a))}function rf(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(rf);if(e[q]!==e)return e;let t=Reflect.ownKeys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof i==`string`&&(n[i]=e[i])}return n}function af(e,t,n){bf(e)||(n==null?e.style.removeProperty(t):e.style.setProperty(t,n))}function of(e,t,n,r,i,a){let o={},s=ap!==null&&(e.localName===`a`||e.localName===`form`)?y():void 0,c=t=>{let n=t.ref;n!==o.ref&&(typeof n==`function`||Array.isArray(n))&&hf(()=>n,e),_f(e,t,!0,o,!0),s!==void 0&&Zd(e,s)};if(Array.isArray(t))return Pd(()=>df({},t,void 0,r),c),!n&&!(r!==void 0&&r(`children`))&&gf(e,()=>{for(let e=t.length-1;e>=0;e--){let n=cf(t[e]);if(n!=null&&lf(n,`children`))return uf(n,`children`)}}),o;if(Pd(()=>{let e=cf(t),n={},i=hu(e);if(i!==void 0)return sf(n,i,r);if(e!=null){let t=mu(e);t instanceof Lu?pf(n,t,1,r):t===void 0?pf(n,e,q in e?2:0,r):df(n,t.sources,t.kinds,r)}return n},c),!n&&!(r!==void 0&&r(`children`))){if(typeof t!=`function`&&t!=null&&uu(t)){let n=Object.getOwnPropertyDescriptor(t,`children`);n!==void 0&&(n.get===void 0?gf(e,n.value):gf(e,()=>t.children))}else gf(e,()=>{let e=cf(t);return e!=null&&lf(e,`children`)?uf(e,`children`):void 0})}return o}function sf(e,t,n){for(let[r,i]of t){if(typeof r!=`string`||r===`children`||n!==void 0&&n(r))continue;let t=i[r];e[r]=r===`style`||r===`class`?rf(t):t}return e}function cf(e){return typeof e==`function`?e():e}function lf(e,t){let n=mu(e);return n instanceof Lu?ou(n,1,t):t in e}function uf(e,t){let n=mu(e);return n instanceof Lu?su(n,1,t):e[t]}function df(e,t,n,r){let i=[],a=[];for(let e=0;e<t.length;e++)ff(i,a,t[e],n===void 0?3:n[e]);for(let t=0;t<i.length;t++)pf(e,i[t],a[t],r,i,a,t+1);return e}function ff(e,t,n,r){if(r!==3){e.push(n),t.push(r);return}if(n=cf(n),n==null)return;let i=mu(n);if(i instanceof Lu)e.push(i),t.push(1);else if(i!==void 0){let n=i.sources,r=i.kinds;for(let i=0;i<n.length;i++)ff(e,t,n[i],r[i])}else e.push(n),t.push(q in n?2:0)}function pf(e,t,n,r,i,a,o){let s=au(t,n);outer:for(let c=0;c<s.length;c++){let l=s[c];if(typeof l!=`string`||l===`children`||r!==void 0&&r(l))continue;if(i!==void 0){for(let e=o;e<i.length;e++)if(ou(i[e],a[e],l))continue outer}let u=su(t,n,l);e[l]=l===`style`||l===`class`?rf(u):u}}function mf(e,t){Array.isArray(e)?e.flat(1/0).forEach(e=>e&&e(t)):e(t)}function hf(e,t){let n=L(e);B(null,()=>mf(n,t))}function gf(e,t,n,r,i){let a=n!==void 0,o=i&&i.host;if(a&&!r&&(r=[]),cp!==null&&(r=cp.claimInitial(e,a,r)),typeof t!=`function`&&(t=kf(t,r,a,!0),typeof t!=`function`)){Tf(e,t,r,n),o&&Af(t,o);return}if(a&&r.length===0){let t=document.createTextNode(``);e.insertBefore(t,n),r=[t]}let s=r,c=!1;Pd(()=>{cp!==null&&(s=cp.reclaimRegion(s,e,n));let r=kf(t(),s,a,!0),l=c;return c=!0,typeof r==`function`?(Pd(()=>(cp!==null&&(s=cp.reclaimRegion(s,e,n)),kf(r,s,a)),t=>{s=Tf(e,t,s,n),o&&Af(s,o)},l&&!(i&&i.schedule)?{...i,schedule:!0}:i),np):r},t=>{t!==np&&(s=Tf(e,t,s,n),o&&Af(s,o))},t.$s?i?{...i,scope:!0}:sp:i)}function _f(e,t,n,r={},i=!1){let a=e.nodeName;t||={};for(let n in r)if(!(n in t)){if(n===`children`)continue;r[n]=Cf(e,n,null,r[n],i,a)}for(let o in t)o===`children`?n||Tf(e,kf(t.children,void 0,!1)):r[o]=Cf(e,o,t[o],r[o],i,a)}function vf(e){let t,n;if(!bf()||!(t=$.registry.get(n=Ff()))){if(!e)throw Error(`Hydration Mismatch. Unable to find DOM nodes for hydration key: ${n}`);return e(!0)}return $.completed&&$.completed.add(t),$.registry.delete(n),t}function yf(){$.events&&!$.events.queued&&(queueMicrotask(()=>{let{completed:e,events:t}=$;if(t){for(t.queued=!1;t.length;){let[n,r]=t[0];if(!e.has(n))return;t.shift();let i,a,o,s;for(let[e,t]of ip){if(!t.handlers.has(r.type))continue;let n=qd(r.target,t);n&&(i?(s||=[{container:i,state:a,distance:o}],s.push({container:e,state:t,distance:n.distance})):(i=e,a=t,o=n.distance))}if(s){s.sort((e,t)=>e.distance-t.distance);for(let e=0;e<s.length;e++)wf(r,s[e].container,s[e].state)}else i&&wf(r,i,a)}$.done&&($.events=_$HY.events=null,$.completed=_$HY.completed=null)}}),$.events.queued=!0)}function bf(e){return!$.hydrating||$.isClaiming&&!$.isClaiming()?!1:!e||e.isConnected?!0:up!==null&&up.claimed(e)}function xf(e){if(Array.isArray(e)){let t={};Sf(e,t),e=t}if(e&&typeof e==`object`){let t={},n=Object.keys(e);for(let r=0,i=n.length;r<i;r++){let i=n[r];if(!e[i])continue;let a=i.trim().split(/\s+/);for(let e=0,n=a.length;e<n;e++)a[e]&&(t[a[e]]=!0)}return t}return e}function Sf(e,t){for(let n=0,r=e.length;n<r;n++){let r=e[n];Array.isArray(r)?Sf(r,t):typeof r==`object`&&r?Object.assign(t,r):typeof r!=`boolean`&&(r||r===0)&&(t[r]=!0)}}function Cf(e,t,n,r,i,a){if(t===`style`)return nf(e,n,r),n;if(t===`class`)return ef(e,n,r),n;if(n===r&&Hf[a]?.[t]!==1)return r;if(t===`ref`)return!i&&n&&hf(()=>n,e),n;let o,s=t.indexOf(`:`)>-1;if(!s&&t.startsWith(`on`)&&(o=t.charCodeAt(2))>64&&o<91){let i=t.slice(2).toLowerCase(),a=Kf.has(i);if(!a&&r){if(Array.isArray(n)&&typeof r==`function`&&r[ep]===n)return r;e.removeEventListener(i,r,typeof r!=`function`&&r)}if(a||n){let t=tf(e,i,n,a);if(a&&Bd([i]),!a)return t}}else if(s&&t.slice(0,5)===`prop:`||Uf.has(t)||Hf[a]?.[t]){if(s)t=t.slice(5);else if(bf(e))return n;t===`value`&&a===`SELECT`?Df(e,n):(t===`value`||t===`defaultValue`)&&(a===`INPUT`||a===`TEXTAREA`)?n==null&&/^(checkbox|radio)$/.test(e.type)?e.removeAttribute(`value`):e[t]=n??``:e[t]=n,Xd(e,t)}else{let r=s&&Yf[t.split(`:`)[0]];r?$d(e,r,t,n):Qd(e,t,n)}return n}function wf(e,t,n){if(cp!==null&&cp.dedupEvent(e))return;let r=e[$f],i;if(r){if(r===!0||r===t||!t.contains(r))return;i=r}let a=n.owners.size===1&&n.owners.has(t)?t:qd(e.target,n)?.owner;if(!a||a===i)return;e[$f]=a;let o=i||e.target,s=Qf+e.type,c=e.target,l=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),u=()=>{let t=o[s];if(t&&!o.disabled){let n=o[`${s}Data`];if(n===void 0?typeof t==`function`?t.call(o,e):t.handleEvent(e):t.call(o,n,e),e.cancelBubble)return}return o.host&&typeof o.host!=`string`&&!o.host._$host&&o.contains(e.target)&&l(o.host),!0},d=()=>{for(;o&&u()&&o!==a&&o.parentNode!==a;)o=o._$host||o.parentNode||o.host};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return o||a}}),i)i===e.target&&(o=i._$host||i.parentNode||i.host),o&&o!==a&&d();else if(e.composedPath){let t=e.composedPath();if(t.length){l(t[0]);for(let e=0;e<t.length&&(o=t[e],u());e++){if(o._$host){o=o._$host,d();break}if(o===a||o.parentNode===a)break}}else d()}else d();l(c)}function Tf(e,t,n,r){if(cp!==null&&bf(e)){if(t&&t!==n){let e=Array.isArray(t);for(let r of e?t:[t])if(r&&r.nodeType){if(!bf(r))return n}else if(e&&(typeof r==`string`||typeof r==`number`))return n}return t}if(t===n)return t;if(cp!==null&&$.hydrating&&t&&t.length!==0){let r=[].concat(n??[]);if([].concat(t).every(t=>(t===r[0]&&r.shift(),t?.parentNode===e))&&!r.length)return t}let i=typeof t,a=r!==void 0;if(i===`string`||i===`number`){let r=typeof n;r===`string`||r===`number`?e.firstChild.data=t:Mf(e,n)?e.textContent=t:(Nf(e,n),e.insertBefore(document.createTextNode(t),e.firstChild))}else if(t===void 0)Pf(e,n,r);else if(t.nodeType)Array.isArray(n)?Pf(e,n,a?r:null,t):n!=null&&n.nodeType?n.parentNode===e?e.replaceChild(t,n):e.appendChild(t):n!=null&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t),r&&(t[Wf]=r);else if(Array.isArray(t)){let i=Array.isArray(n);for(let e=0,r=t.length;e<r;e++){let r=t[e],a=typeof r;if(a===`string`||a===`number`){let a=i?n[e]:void 0;a&&a.nodeType===3?(a.data!==``+r&&(a.data=r),t[e]=a):t[e]=document.createTextNode(r)}}t.length===0?Pf(e,n,r):i?n.length===0?jf(e,t,r):Id(e,n,t,r):(n!=null&&Pf(e,n),jf(e,t))}return lp&&lp(e),t}function Ef(e){(e=e.currentTarget||e)._$v=null,e.removeEventListener(`change`,Ef,!0)}function Df(e,t){let n=e._$v&&e._$v.map;if(t!=null&&t.map?n||e.addEventListener(`change`,Ef,!0):n&&e.removeEventListener(`change`,Ef,!0),t==null)return e._$v=null,queueMicrotask(()=>e.value=t)||(e.value=t);e._$v=t,(lp||=Of)(e),queueMicrotask(()=>lp(e))}function Of(e){e&&e._$v==null&&(e=e.parentNode);let t=e&&e._$v;if(t!=null){if(t.map){let n=[...e.options];for(let e=0;e<n.length;e++)n[e].selected=t.some(t=>t==n[e].value);t.every(e=>n.some(t=>t.value==e))&&Ef(e)}else e.value=t,e.selectedIndex>-1&&e.value==t&&(e._$v=null)}}function kf(e,t,n,r){if(e=pl(e,{skipNonRendered:!0,doNotUnwrap:r}),r&&typeof e==`function`)return e;if(n&&!Array.isArray(e)&&(e=[e??``]),cp!==null&&$.hydrating&&Array.isArray(e))for(let n=0,r=e.length;n<r;n++){let r=e[n],i=t&&t[n],a=typeof r;(a===`string`||a===`number`)&&i&&i.nodeType===3&&bf(i)&&(e[n]=i)}return e}function Af(e,t){if(Array.isArray(e))for(let n=0,r=e.length;n<r;n++)Af(e[n],t);else e&&e.nodeType&&e[Gf]!==t&&(e[Gf]=t,Object.defineProperty(e,"_$host",{get:t,configurable:!0}))}function jf(e,t,n=null){for(let r=0,i=t.length;r<i;r++){let i=t[r];e.insertBefore(i,n),n&&(i[Wf]=n)}}function Mf(e,t){if(t==null)return!0;if(Array.isArray(t))return t.length?e.firstChild===t[0]&&e.lastChild===t[t.length-1]:e.firstChild===null;if(t===``)return e.firstChild===null;if(t.nodeType)return e.firstChild===t&&e.lastChild===t;let n=e.firstChild;return n!==null&&n.nodeType===3&&e.lastChild===n}function Nf(e,t){if(Array.isArray(t))for(let n=0;n<t.length;n++){let r=t[n];r.parentNode===e&&r.remove()}else if(t.nodeType)t.parentNode===e&&t.remove();else{let t=e.firstChild;t&&t.nodeType===3&&t.remove()}}function Pf(e,t,n,r){if(n===void 0)return Mf(e,t)?e.textContent=``:Nf(e,t);if(t.length){let i=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(r!==o){let t=o[Wf],s=o.parentNode===e&&(!t||t===n);r&&!i&&!a?s?e.replaceChild(r,o):e.insertBefore(r,n):s&&o.remove()}else i=!0}}else r&&e.insertBefore(r,n);r&&n&&(r[Wf]=n)}function Ff(){return $.getNextContextId()}function If(e){return B(Ie(),()=>Lf(e))}function Lf(e){let t=document.createTextNode(``),n=document.createTextNode(``),r=document.createTextNode(``),i=()=>e.mount||document.body,a=hd(()=>[n,e.children],{ssrSource:`client`,loadingValue:void 0});return wd(()=>[i(),a(),y()],([,e,a])=>{let o=L(i);o.appendChild(r);let s=B(a,()=>Cd(n=>(gf(o,e,r,void 0,{host:()=>t.parentNode}),n)));return()=>{s();let e=n;for(;e;){let t=e.nextSibling;if(o.removeChild(e),e===r)break;e=t}}},{schedule:!0,ssrSource:`client`}),Td(i,()=>{let e=L(i),n=Kd(t);if(n&&!n.contains(e))return Ud(e,n),()=>Wd(e,n)},{ssrSource:`client`}),$.hydrating?hd(()=>t,{ssrSource:`client`,loadingValue:void 0}):t}function Rf(e,t){return Md(e,t,zf)}function zf(e,t){let n=$.hydrating,r=n?vf():Vf(e,L(()=>t.is),L(()=>t.xmlns));return of(r,t),n&&yf(),r}function Bf(e){return Ju(Rf(()=>e.component),Fu(e,`component`))}function Vf(e,t=void 0,n=void 0){return n?document.createElementNS(n,e,{is:t}):qf.has(e)?document.createElementNS(Yf.svg,e):Jf.has(e)?document.createElementNS(Yf.mathml,e):document.createElement(e,{is:t})}var Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up;function dp(){return(dp=e((()=>{jd(),Nd(),Hf={INPUT:{value:1,defaultValue:2,checked:1,defaultChecked:2},SELECT:{value:1},OPTION:{value:1,selected:1,defaultSelected:2},TEXTAREA:{value:1,defaultValue:2},VIDEO:{muted:1,defaultMuted:2},AUDIO:{muted:1,defaultMuted:2}},Uf=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),Wf=Symbol(`slot`),Gf=Symbol(`host`),Kf=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),qf=new Set(`altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.hkern.image.line.linearGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.svg.switch.symbol.text.textPath.tref.tspan.use.view.vkern`.split(`.`)),Jf=new Set(`annotation.annotation-xml.maction.math.menclose.merror.mfenced.mfrac.mi.mmultiscripts.mn.mo.mover.mpadded.mphantom.mprescripts.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msubsup.msup.mtable.mtd.mtext.mtr.munder.munderover.semantics`.split(`.`)),Yf={svg:`http://www.w3.org/2000/svg`,mathml:`http://www.w3.org/1998/Math/MathML`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},Xf={transparent:!0,sync:!0},Zf={sync:!0},Qf=`_$$`,$f=`_$SOLID_EVENT_OWNER`,ep=Symbol(),tp=Object.prototype.hasOwnProperty,np={},rp=new Set,ip=new Map,ap=null,op=[],sp={scope:!0},cp=null,lp=null,up=null})))()}export{ll as $,qu as A,Wn as At,gd as B,pe as Bt,td as C,Fi as Ct,cd as D,L as Dt,nd as E,B as Et,hd as F,x as Ft,Xu as G,v as Gt,Zu as H,se as Ht,vd as I,Ne as It,Pu as J,l as Jt,Ku as K,c as Kt,Sd as L,Me as Lt,Gu as M,rt as Mt,yd as N,N as Nt,rd as O,Kn as Ot,Td as P,w as Pt,Ul as Q,bd as R,y as Rt,od as S,Ii as St,ad as T,U as Tt,jd as U,_ as Ut,xd as V,fe as Vt,Yu as W,p as Wt,Pl as X,Fu as Y,Nl as Z,Jd as _,ja as _t,Zd as a,Wc as at,nf as b,Ki as bt,Rf as c,Fa as ct,gf as d,Da as dt,fl as et,Fd as f,ka as ft,Qd as g,Na as gt,Ld as h,Ca as ht,mf as i,Jc as it,Ju as j,j as jt,id as k,Zn as kt,Pd as l,wa as lt,hf as m,Pa as mt,If as n,qc as nt,ef as o,Uc as ot,rf as p,Ta as pt,Wu as q,i as qt,tf as r,Gc as rt,Bd as s,Ga as st,Bf as t,Xc as tt,dp as u,Oa as ut,af as v,Ma as vt,sd as w,P as wt,zd as x,Ui as xt,of as y,Gi as yt,Cd as z,b as zt};