import{ak as S,al as H,am as Z,X as R,an as $,g as P,ao as c,d as h,ap as x,U as J,aq as Q,i as V,Y as W,l as X,j as q,J as k,E as p,M as ee,N as re,H as ae,O as M,Q as U,m as B,R as C,u as te,ar as ne,C as ie,z as Y,F as fe,as as se,at as ue,e as z,K as le,au as de,av as _e,W as ve,aw as ce,ax as ge,ay as be,az as ye,aA as oe}from"./AM9C8FsA.js";import{l as he}from"./DIeogL5L.js";function O(r,u=null,g){if(typeof r!="object"||r===null||S in r)return r;const _=V(r);if(_!==H&&_!==Z)return r;var n=new Map,s=W(r),b=R(0);s&&n.set("length",R(r.length));var o;return new Proxy(r,{defineProperty(f,e,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Q();var i=n.get(e);return i===void 0?(i=R(a.value),n.set(e,i)):h(i,O(a.value,o)),!0},deleteProperty(f,e){var a=n.get(e);if(a===void 0)e in f&&n.set(e,R(c));else{if(s&&typeof e=="string"){var i=n.get("length"),t=Number(e);Number.isInteger(t)&&t<i.v&&h(i,t)}h(a,c),F(b)}return!0},get(f,e,a){var v;if(e===S)return r;var i=n.get(e),t=e in f;if(i===void 0&&(!t||(v=x(f,e))!=null&&v.writable)&&(i=R(O(t?f[e]:c,o)),n.set(e,i)),i!==void 0){var l=P(i);return l===c?void 0:l}return Reflect.get(f,e,a)},getOwnPropertyDescriptor(f,e){var a=Reflect.getOwnPropertyDescriptor(f,e);if(a&&"value"in a){var i=n.get(e);i&&(a.value=P(i))}else if(a===void 0){var t=n.get(e),l=t==null?void 0:t.v;if(t!==void 0&&l!==c)return{enumerable:!0,configurable:!0,value:l,writable:!0}}return a},has(f,e){var l;if(e===S)return!0;var a=n.get(e),i=a!==void 0&&a.v!==c||Reflect.has(f,e);if(a!==void 0||J!==null&&(!i||(l=x(f,e))!=null&&l.writable)){a===void 0&&(a=R(i?O(f[e],o):c),n.set(e,a));var t=P(a);if(t===c)return!1}return i},set(f,e,a,i){var E;var t=n.get(e),l=e in f;if(s&&e==="length")for(var v=a;v<t.v;v+=1){var I=n.get(v+"");I!==void 0?h(I,c):v in f&&(I=R(c),n.set(v+"",I))}t===void 0?(!l||(E=x(f,e))!=null&&E.writable)&&(t=R(void 0),h(t,O(a,o)),n.set(e,t)):(l=t.v!==c,h(t,O(a,o)));var y=Reflect.getOwnPropertyDescriptor(f,e);if(y!=null&&y.set&&y.set.call(i,a),!l){if(s&&typeof e=="string"){var m=n.get("length"),A=Number(e);Number.isInteger(A)&&A>=m.v&&h(m,A+1)}F(b)}return!0},ownKeys(f){P(b);var e=Reflect.ownKeys(f).filter(t=>{var l=n.get(t);return l===void 0||l.v!==c});for(var[a,i]of n)i.v!==c&&!(a in f)&&e.push(a);return e},setPrototypeOf(){$()}})}function F(r,u=1){h(r,r.v+u)}function K(r){return r!==null&&typeof r=="object"&&S in r?r[S]:r}function Se(r,u){return Object.is(K(r),K(u))}function Ee(r,u,g=!1){q&&k();var _=r,n=null,s=null,b=c,o=g?p:0,f=!1;const e=(i,t=!0)=>{f=!0,a(t,i)},a=(i,t)=>{if(b===(b=i))return;let l=!1;if(q){const v=_.data===ee;!!b===v&&(_=re(),ae(_),M(!1),l=!0)}b?(n?U(n):t&&(n=B(()=>t(_))),s&&C(s,()=>{s=null})):(s?U(s):t&&(s=B(()=>t(_))),n&&C(n,()=>{n=null})),l&&M(!0)};X(()=>{f=!1,u(e),f||a(null,null)},o),q&&(_=te)}function G(r,u){return r===u||(r==null?void 0:r[S])===u}function we(r={},u,g,_){return ne(()=>{var n,s;return ie(()=>{n=s,s=[],Y(()=>{r!==g(...s)&&(u(r,...s),n&&G(g(...n),r)&&u(null,...n))})}),()=>{fe(()=>{s&&G(g(...s),r)&&u(null,...s)})}}),r}let T=!1;function Pe(r){var u=T;try{return T=!1,[r(),T]}finally{T=u}}function Oe(r,u,g,_){var j;var n=(g&ye)!==0,s=!he||(g&be)!==0,b=(g&ce)!==0,o=(g&oe)!==0,f=!1,e;b?[e,f]=Pe(()=>r[u]):e=r[u];var a=S in r||ge in r,i=b&&(((j=x(r,u))==null?void 0:j.set)??(a&&u in r&&(d=>r[u]=d)))||void 0,t=_,l=!0,v=!1,I=()=>(v=!0,l&&(l=!1,o?t=Y(_):t=_),t);e===void 0&&_!==void 0&&(i&&s&&se(),e=I(),i&&i(e));var y;if(s)y=()=>{var d=r[u];return d===void 0?I():(l=!0,v=!1,d)};else{var m=(n?z:le)(()=>r[u]);m.f|=ue,y=()=>{var d=P(m);return d!==void 0&&(t=void 0),d===void 0?t:d}}if((g&de)===0)return y;if(i){var A=r.$$legacy;return function(d,w){return arguments.length>0?((!s||!w||A||f)&&i(w?y():d),d):y()}}var E=!1,D=ve(e),N=z(()=>{var d=y(),w=P(D);return E?(E=!1,w):D.v=d});return n||(N.equals=_e),function(d,w){if(arguments.length>0){const L=w?P(N):s&&b?O(d):d;return N.equals(L)||(E=!0,h(D,L),v&&t!==void 0&&(t=L),Y(()=>P(N))),d}return P(N)}}export{Oe as a,we as b,Se as c,Ee as i,O as p};
