import { t as e } from "./init-B75p2clj.js";
//#region ../../node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.js
var t = class extends Map {
	constructor(e, t = a) {
		if (super(), Object.defineProperties(this, {
			_intern: { value: /* @__PURE__ */ new Map() },
			_key: { value: t }
		}), e != null) for (let [t, n] of e) this.set(t, n);
	}
	get(e) {
		return super.get(n(this, e));
	}
	has(e) {
		return super.has(n(this, e));
	}
	set(e, t) {
		return super.set(r(this, e), t);
	}
	delete(e) {
		return super.delete(i(this, e));
	}
};
function n({ _intern: e, _key: t }, n) {
	let r = t(n);
	return e.has(r) ? e.get(r) : n;
}
function r({ _intern: e, _key: t }, n) {
	let r = t(n);
	return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
function i({ _intern: e, _key: t }, n) {
	let r = t(n);
	return e.has(r) && (n = e.get(r), e.delete(r)), n;
}
function a(e) {
	return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
//#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/ordinal.js
var o = Symbol("implicit");
function s() {
	var n = new t(), r = [], i = [], a = o;
	function c(e) {
		let t = n.get(e);
		if (t === void 0) {
			if (a !== o) return a;
			n.set(e, t = r.push(e) - 1);
		}
		return i[t % i.length];
	}
	return c.domain = function(e) {
		if (!arguments.length) return r.slice();
		r = [], n = new t();
		for (let t of e) n.has(t) || n.set(t, r.push(t) - 1);
		return c;
	}, c.range = function(e) {
		return arguments.length ? (i = Array.from(e), c) : i.slice();
	}, c.unknown = function(e) {
		return arguments.length ? (a = e, c) : a;
	}, c.copy = function() {
		return s(r, i).unknown(a);
	}, e.apply(c, arguments), c;
}
//#endregion
export { s as t };
