import{__require as r}from"./weak-map-basic-detection.mjs";import{__require as e}from"./global-this.mjs";import{__require as t}from"./is-object.mjs";import{__require as i}from"./create-non-enumerable-property.mjs";import{__require as n}from"./has-own-property.mjs";import{__require as a}from"./shared-store.mjs";import{__require as o}from"./shared-key.mjs";import{__require as s}from"./hidden-keys.mjs";var u,m;function f(){if(m)return u;m=1;var f,c,p,_=r(),h=e(),d=t(),j=i(),q=n(),w=a(),l=o(),y=s(),b="Object already initialized",g=h.TypeError,v=h.WeakMap;if(_||w.state){var k=w.state||(w.state=new v);k.get=k.get,k.has=k.has,k.set=k.set,f=function(r,e){if(k.has(r))throw new g(b);return e.facade=r,k.set(r,e),e},c=function(r){return k.get(r)||{}},p=function(r){return k.has(r)}}else{var x=l("state");y[x]=!0,f=function(r,e){if(q(r,x))throw new g(b);return e.facade=r,j(r,x,e),e},c=function(r){return q(r,x)?r[x]:{}},p=function(r){return q(r,x)}}return u={set:f,get:c,has:p,enforce:function(r){return p(r)?c(r):f(r,{})},getterFor:function(r){return function(e){var t;if(!d(e)||(t=c(e)).type!==r)throw new g("Incompatible receiver, "+r+" required");return t}}}}export{f as __require};