import{__require as e}from"../modules/es.map.mjs";import{__require as t}from"../modules/es.weak-map.mjs";import{__require as r}from"./get-built-in.mjs";import{__require as i}from"./object-create.mjs";import{__require as o}from"./is-object.mjs";var n,s;function m(){if(s)return n;s=1,e(),t();var m=r(),u=i(),p=o(),a=Object,c=TypeError,f=m("Map"),h=m("WeakMap"),l=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=u(null)};l.prototype.get=function(e,t){return this[e]||(this[e]=t())},l.prototype.next=function(e,t,r){var i=r?this.objectsByIndex[e]||(this.objectsByIndex[e]=new h):this.primitives||(this.primitives=new f),o=i.get(t);return o||i.set(t,o=new l),o};var j=new l;return n=function(){var e,t,r=j,i=arguments.length;for(e=0;e<i;e++)p(t=arguments[e])&&(r=r.next(e,t,!0));if(this===a&&r===j)throw new c("Composite keys must contain a non-primitive component");for(e=0;e<i;e++)p(t=arguments[e])||(r=r.next(e,t,!1));return r},n}export{m as __require};