import{i as f}from"./init-hAkIK9Bd.DALLPRap.js";var o=class extends Map{constructor(t,r=h){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[e,n]of t)this.set(e,n)}get(t){return super.get(a(this,t))}has(t){return super.has(a(this,t))}set(t,r){return super.set(c(this,t),r)}delete(t){return super.delete(p(this,t))}};function a({_intern:t,_key:r},e){let n=r(e);return t.has(n)?t.get(n):e}function c({_intern:t,_key:r},e){let n=r(e);return t.has(n)?t.get(n):(t.set(n,e),e)}function p({_intern:t,_key:r},e){let n=r(e);return t.has(n)&&(e=t.get(n),t.delete(n)),e}function h(t){return typeof t=="object"&&t?t.valueOf():t}const l=Symbol("implicit");function g(){var t=new o,r=[],e=[],n=l;function u(i){let s=t.get(i);if(s===void 0){if(n!==l)return n;t.set(i,s=r.push(i)-1)}return e[s%e.length]}return u.domain=function(i){if(!arguments.length)return r.slice();r=[],t=new o;for(let s of i)t.has(s)||t.set(s,r.push(s)-1);return u},u.range=function(i){return arguments.length?(e=Array.from(i),u):e.slice()},u.unknown=function(i){return arguments.length?(n=i,u):n},u.copy=function(){return g(r,e).unknown(n)},f.apply(u,arguments),u}export{g as o};
