import{g as f}from"./vendor-get-intrinsic.009e6d91.js";import{c as s}from"./vendor-call-bound.baa752e5.js";import{o as c}from"./vendor-object-inspect.a19339a7.js";import{s as u}from"./vendor-side-channel-map.78013cdc.js";import{t as l}from"./vendor-es-errors.109e7893.js";var m=f,o=s,v=c,n=u,M=l,r=m("%WeakMap%",!0),d=o("WeakMap.prototype.get",!0),h=o("WeakMap.prototype.set",!0),$=o("WeakMap.prototype.has",!0),w=o("WeakMap.prototype.delete",!0),I=r?function(){var e,a,p={assert:function(t){if(!p.has(t))throw new M("Side channel does not contain "+v(t))},delete:function(t){if(r&&t&&(typeof t=="object"||typeof t=="function")){if(e)return w(e,t)}else if(n&&a)return a.delete(t);return!1},get:function(t){return r&&t&&(typeof t=="object"||typeof t=="function")&&e?d(e,t):a&&a.get(t)},has:function(t){return r&&t&&(typeof t=="object"||typeof t=="function")&&e?$(e,t):!!a&&a.has(t)},set:function(t,i){r&&t&&(typeof t=="object"||typeof t=="function")?(e||(e=new r),h(e,t,i)):n&&(a||(a=n()),a.set(t,i))}};return p}:n;export{I as s};
