import{__exports as e}from"../../../_virtual/es.weak-map.constructor.mjs";import{__require as r}from"../internals/freezing.mjs";import{__require as t}from"../internals/global-this.mjs";import{__require as i}from"../internals/function-uncurry-this.mjs";import{__require as n}from"../internals/define-built-ins.mjs";import{__require as s}from"../internals/internal-metadata.mjs";import{__require as o}from"../internals/collection.mjs";import{__require as a}from"../internals/collection-weak.mjs";import{__require as f}from"../internals/is-object.mjs";import{__require as u}from"../internals/internal-state.mjs";import{__require as m}from"../internals/fails.mjs";import{__require as l}from"../internals/weak-map-basic-detection.mjs";var c;function _(){if(c)return e;c=1;var _,h=r(),p=t(),j=i(),z=n(),v=s(),q=o(),b=a(),d=f(),w=u().enforce,g=m(),k=l(),y=Object,A=Array.isArray,x=y.isExtensible,O=y.isFrozen,M=y.isSealed,W=y.freeze,X=y.seal,C=!p.ActiveXObject&&"ActiveXObject"in p,E=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},F=q("WeakMap",E,b),S=F.prototype,B=j(S.set);if(k)if(C){_=b.getConstructor(E,"WeakMap",!0),v.enable();var D=j(S.delete),G=j(S.has),H=j(S.get);z(S,{delete:function(e){if(d(e)&&!x(e)){var r=w(this);return r.frozen||(r.frozen=new _),D(this,e)||r.frozen.delete(e)}return D(this,e)},has:function(e){if(d(e)&&!x(e)){var r=w(this);return r.frozen||(r.frozen=new _),G(this,e)||r.frozen.has(e)}return G(this,e)},get:function(e){if(d(e)&&!x(e)){var r=w(this);return r.frozen||(r.frozen=new _),G(this,e)?H(this,e):r.frozen.get(e)}return H(this,e)},set:function(e,r){if(d(e)&&!x(e)){var t=w(this);t.frozen||(t.frozen=new _),G(this,e)?B(this,e,r):t.frozen.set(e,r)}else B(this,e,r);return this}})}else h&&g(function(){var e=W([]);return B(new F,e,1),!O(e)})&&z(S,{set:function(e,r){var t;return A(e)&&(O(e)?t=W:M(e)&&(t=X)),B(this,e,r),t&&t(e),this}});return e}export{_ as __require};