import{am as M,an as U,q as O,ao as C,g as v,j as D,A as Y,y as E,z as q,E as z,B as F,C as $,D as G,F as I,G as W,ap as S,aq as Z,ar as T,m as H,as as J,K as x,at as Q,au as V,av as X,I as k,W as ee,aw as re,ax as ne,aj as se,ay as ie,az as R,aA as A,aB as _,a3 as B,aC as N,aD as ue}from"./BfUaJvxP.js";import{B as te}from"./C3j5_a06.js";import{b as ae,g as fe}from"./Bci9YmGs.js";let P=!1,m=Symbol();function he(e,r,s){const n=s[r]??={store:null,source:C(void 0),unsubscribe:O};if(n.store!==e&&!(m in s))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=O;else{var i=!0;n.unsubscribe=ae(e,t=>{i?n.source.v=t:D(n.source,t)}),i=!1}return e&&m in s?fe(e):v(n.source)}function Pe(){const e={};function r(){M(()=>{for(var s in e)e[s].unsubscribe();U(e,m,{enumerable:!1,value:!0})})}return[e,r]}function le(e){var r=P;try{return P=!1,[e(),P]}finally{P=r}}function we(e,r,s=!1){var n;E&&(n=W,q());var i=new te(e),t=s?z:0;function b(a,f){if(E){var o=F(n);if(a!==parseInt(o.substring(1))){var l=$();G(l),i.anchor=l,I(!1),i.ensure(a,f),I(!0);return}}i.ensure(a,f)}Y(()=>{var a=!1;r((f,o=0)=>{a=!0,b(o,f)}),a||b(-1,null)},t)}const oe={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},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 Se(e,r,s){return new Proxy({props:e,exclude:r},oe)}const ce={get(e,r){if(!e.exclude.includes(r))return v(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=x;try{A(e.parent_effect),e.special[r]=de({get[r](){return e.props[r]}},r,T)}finally{A(n)}}return e.special[r](s),R(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),R(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 me(e,r){return new Proxy({props:e,exclude:r,special:{},version:V(0),parent_effect:x},ce)}const pe={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(_(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 i=e.props[n];_(i)&&(i=i());const t=S(i,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(_(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const i=S(n,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===B||r===N)return!1;for(let s of e.props)if(_(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(_(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 xe(...e){return new Proxy({props:e},pe)}function de(e,r,s,n){var i=!ee||(s&re)!==0,t=(s&X)!==0,b=(s&ue)!==0,a=n,f=!0,o=()=>(f&&(f=!1,a=b?k(n):n),a);let l;if(t){var K=B in e||N in e;l=S(e,r)?.set??(K&&r in e?u=>e[r]=u:void 0)}var p,g=!1;t?[p,g]=le(()=>e[r]):p=e[r],p===void 0&&n!==void 0&&(p=o(),l&&(i&&Z(),l(p)));var c;if(i?c=()=>{var u=e[r];return u===void 0?o():(f=!0,u)}:c=()=>{var u=e[r];return u!==void 0&&(a=void 0),u===void 0?a:u},i&&(s&T)===0)return c;if(l){var L=e.$$legacy;return(function(u,h){return arguments.length>0?((!i||!h||L||g)&&l(h?c():u),u):c()})}var w=!1,d=((s&ne)!==0?se:ie)(()=>(w=!1,c()));t&&v(d);var j=x;return(function(u,h){if(arguments.length>0){const y=h?v(d):i&&t?H(u):u;return D(d,y),w=!0,a!==void 0&&(a=y),u}return J&&w||(j.f&Q)!==0?d.v:v(d)})}export{Pe as a,he as b,we as i,me as l,de as p,Se as r,xe as s};
