import{ae as N,af as M,q as R,ag as Y,g as l,j as A,ah as P,ai as q,aj as T,m as $,ak as z,S as w,al as C,am as G,an as Z,A as F,ao as H,ap as D,aq as J,ar as E,as as y,at as d,U as L,au as U,av as Q,B as V,aw as W}from"./Dyk1ealw.js";import{b as X,g as k}from"./DEEYSJdk.js";let v=!1,S=Symbol("unmounted");function ae(e,r,s){const n=s[r]??={store:null,source:Y(void 0),unsubscribe:R};if(n.store!==e&&!(S in s))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=R;else{var u=!0;n.unsubscribe=X(e,t=>{u?n.source.v=t:A(n.source,t)}),u=!1}return e&&S in s?k(e):l(n.source)}function fe(){const e={};function r(){N(()=>{for(var s in e)e[s].unsubscribe();M(e,S,{enumerable:!1,value:!0})})}return[e,r]}function ee(e){var r=v;try{return v=!1,[e(),v]}finally{v=r}}const re={get(e,r){if(!e.exclude.has(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.has(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.has(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.has(r))}};function le(e,r,s){return new Proxy({props:e,exclude:r},re)}const ne={get(e,r){if(!e.exclude.includes(r))return l(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=w;try{y(e.parent_effect),e.special[r]=ue({get[r](){return e.props[r]}},r,T)}finally{y(n)}}return e.special[r](s),E(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),E(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function oe(e,r){return new Proxy({props:e,exclude:r,special:{},version:G(0),parent_effect:w},ne)}const se={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let u=e.props[n];d(u)&&(u=u());const t=P(u,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const u=P(n,r);return u&&!u.configurable&&(u.configurable=!0),u}}},has(e,r){if(r===L||r===U)return!1;for(let s of e.props)if(d(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(d(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function ce(...e){return new Proxy({props:e},se)}function ue(e,r,s,n){var u=!V||(s&W)!==0,t=(s&Z)!==0,m=(s&Q)!==0,a=n,b=!0,x=void 0,O=()=>m&&u?(x??=D(n),l(x)):(b&&(b=!1,a=m?F(n):n),a);let o;if(t){var j=L in e||U in e;o=P(e,r)?.set??(j&&r in e?i=>e[r]=i:void 0)}var c,g=!1;t?[c,g]=ee(()=>e[r]):c=e[r],c===void 0&&n!==void 0&&(c=O(),o&&(u&&q(),o(c)));var f;if(u?f=()=>{var i=e[r];return i===void 0?O():(b=!0,i)}:f=()=>{var i=e[r];return i!==void 0&&(a=void 0),i===void 0?a:i},u&&(s&T)===0)return f;if(o){var B=e.$$legacy;return(function(i,_){return arguments.length>0?((!u||!_||B||g)&&o(_?f():i),i):f()})}var h=!1,p=((s&H)!==0?D:J)(()=>(h=!1,f()));t&&l(p);var K=w;return(function(i,_){if(arguments.length>0){const I=_?l(p):u&&t?$(i):i;return A(p,I),h=!0,a!==void 0&&(a=I),i}return z&&h||(K.f&C)!==0?p.v:l(p)})}export{fe as a,ae as b,oe as l,ue as p,le as r,ce as s};
