import{k as O,l as m,P as D,m as c,o as R,v as T,w as B,D as b,x as Y,y as x,z as M,u as h,A as w,B as z,C,S as N,L as U}from"./7RXv2Ffc.js";import{d as $}from"./BMWcY1_o.js";function G(r,a,u,_){var s=(u&M)!==0,g=(u&z)!==0,d=_,l=!0,P=()=>(l&&(l=!1,d=g?h(_):_),d),t;if(s){var A=N in r||U in r;t=O(r,a)?.set??(A&&a in r?e=>r[a]=e:void 0)}var n,o=!1;s?[n,o]=$(()=>r[a]):n=r[a],n===void 0&&_!==void 0&&(n=P(),t&&(m(),t(n)));var i;if(i=()=>{var e=r[a];return e===void 0?P():(l=!0,e)},(u&D)===0)return i;if(t){var E=r.$$legacy;return(function(e,v){return arguments.length>0?((!v||E||o)&&t(v?i():e),e):i()})}var S=!1,f=((u&w)!==0?Y:x)(()=>(S=!1,i()));s&&c(f);var L=B;return(function(e,v){if(arguments.length>0){const I=v?c(f):s?R(e):e;return T(f,I),S=!0,d!==void 0&&(d=I),e}return C&&S||(L.f&b)!==0?f.v:c(f)})}export{G as p};
