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