import{ar as L,as as N,at as I,_ as B,l as E,h as v,au as P,av as U,aw as j,I as M,N as Y,j as K,ax as $,ae as z,ay as C,az as q,w as F,aA as G,aB as Z,aC as H,aD as J,ak as x,aE as D,aF as d}from"./BRMnbBOX.js";import{s as Q,g as V}from"./B394X4Dm.js";let _=!1,S=Symbol();function ne(e,r,i){const n=i[r]??(i[r]={store:null,source:B(void 0),unsubscribe:I});if(n.store!==e&&!(S in i))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=I;else{var t=!0;n.unsubscribe=Q(e,s=>{t?n.source.v=s:E(n.source,s)}),t=!1}return e&&S in i?V(e):v(n.source)}function ie(){const e={};function r(){L(()=>{for(var i in e)e[i].unsubscribe();N(e,S,{enumerable:!1,value:!0})})}return[e,r]}function W(e){var r=_;try{return _=!1,[e(),_]}finally{_=r}}const X={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 te(e,r,i){return new Proxy({props:e,exclude:r},X)}const k={get(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,i){let n=e.props.length;for(;n--;){let t=e.props[n];d(t)&&(t=t());const s=P(t,r);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const t=P(n,r);return t&&!t.configurable&&(t.configurable=!0),t}}},has(e,r){if(r===x||r===D)return!1;for(let i of e.props)if(d(i)&&(i=i()),i!=null&&r in i)return!0;return!1},ownKeys(e){const r=[];for(let i of e.props)if(d(i)&&(i=i()),!!i){for(const n in i)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(i))r.includes(n)||r.push(n)}return r}};function ue(...e){return new Proxy({props:e},k)}function se(e,r,i,n){var O;var t=!G||(i&Z)!==0,s=(i&q)!==0,R=(i&J)!==0,a=n,b=!0,w=()=>(b&&(b=!1,a=R?F(n):n),a),l;if(s){var m=x in e||D in e;l=((O=P(e,r))==null?void 0:O.set)??(m&&r in e?u=>e[r]=u:void 0)}var o,h=!1;s?[o,h]=W(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=w(),l&&(t&&U(),l(o)));var f;if(t?f=()=>{var u=e[r];return u===void 0?w():(b=!0,u)}:f=()=>{var u=e[r];return u!==void 0&&(a=void 0),u===void 0?a:u},t&&!(i&j))return f;if(l){var A=e.$$legacy;return function(u,p){return arguments.length>0?((!t||!p||A||h)&&l(p?f():u),u):f()}}var g=!1,c=(i&H?M:Y)(()=>(g=!1,f()));s&&v(c);var T=z;return function(u,p){if(arguments.length>0){const y=p?v(c):t&&s?K(u):u;return E(c,y),g=!0,a!==void 0&&(a=y),u}return $&&g||T.f&C?c.v:v(c)}}export{ne as a,ue as b,se as p,te as r,ie as s};
