UNPKG

taxonium-component

Version:

React component for exploring large phylogenetic trees in the browser

1,279 lines 926 kB
import { r as requireBufferPolyfill, b as commonjsGlobal, d as distExports } from "./index-dFotuATn.js"; import { c as commonjsRequire } from "./_commonjs-dynamic-modules-BpilXLfW.js"; var core$1 = { exports: {} }, cryptoBrowserify = {}, browser$b = { exports: {} }, safeBuffer$2 = { exports: {} }; /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ var hasRequiredSafeBuffer$2; function requireSafeBuffer$2() { return hasRequiredSafeBuffer$2 || (hasRequiredSafeBuffer$2 = 1, function(_, B) { var A = requireBufferPolyfill(), c = A.Buffer; function S(w, b) { for (var v in w) b[v] = w[v]; } c.from && c.alloc && c.allocUnsafe && c.allocUnsafeSlow ? _.exports = A : (S(A, B), B.Buffer = a); function a(w, b, v) { return c(w, b, v); } a.prototype = Object.create(c.prototype), S(c, a), a.from = function(w, b, v) { if (typeof w == "number") throw new TypeError("Argument must not be a number"); return c(w, b, v); }, a.alloc = function(w, b, v) { if (typeof w != "number") throw new TypeError("Argument must be a number"); var m = c(w); return b !== void 0 ? typeof v == "string" ? m.fill(b, v) : m.fill(b) : m.fill(0), m; }, a.allocUnsafe = function(w) { if (typeof w != "number") throw new TypeError("Argument must be a number"); return c(w); }, a.allocUnsafeSlow = function(w) { if (typeof w != "number") throw new TypeError("Argument must be a number"); return A.SlowBuffer(w); }; }(safeBuffer$2, safeBuffer$2.exports)), safeBuffer$2.exports; } var hasRequiredBrowser$b; function requireBrowser$b() { if (hasRequiredBrowser$b) return browser$b.exports; hasRequiredBrowser$b = 1; var _ = 65536, B = 4294967295; function A() { throw new Error(`Secure random number generation is not supported by this browser. Use Chrome, Firefox or Internet Explorer 11`); } var c = requireSafeBuffer$2().Buffer, S = commonjsGlobal.crypto || commonjsGlobal.msCrypto; S && S.getRandomValues ? browser$b.exports = a : browser$b.exports = A; function a(w, b) { if (w > B) throw new RangeError("requested too many random bytes"); var v = c.allocUnsafe(w); if (w > 0) if (w > _) for (var m = 0; m < w; m += _) S.getRandomValues(v.slice(m, m + _)); else S.getRandomValues(v); return typeof b == "function" ? distExports.process.nextTick(function() { b(null, v); }) : v; } return browser$b.exports; } var inherits_browser = { exports: {} }, hasRequiredInherits_browser; function requireInherits_browser() { return hasRequiredInherits_browser || (hasRequiredInherits_browser = 1, typeof Object.create == "function" ? inherits_browser.exports = function(B, A) { A && (B.super_ = A, B.prototype = Object.create(A.prototype, { constructor: { value: B, enumerable: !1, writable: !0, configurable: !0 } })); } : inherits_browser.exports = function(B, A) { if (A) { B.super_ = A; var c = function() { }; c.prototype = A.prototype, B.prototype = new c(), B.prototype.constructor = B; } }), inherits_browser.exports; } var events = { exports: {} }, hasRequiredEvents; function requireEvents() { if (hasRequiredEvents) return events.exports; hasRequiredEvents = 1; var _ = typeof Reflect == "object" ? Reflect : null, B = _ && typeof _.apply == "function" ? _.apply : function(L, H, G) { return Function.prototype.apply.call(L, H, G); }, A; _ && typeof _.ownKeys == "function" ? A = _.ownKeys : Object.getOwnPropertySymbols ? A = function(L) { return Object.getOwnPropertyNames(L).concat(Object.getOwnPropertySymbols(L)); } : A = function(L) { return Object.getOwnPropertyNames(L); }; function c(T) { console && console.warn && console.warn(T); } var S = Number.isNaN || function(L) { return L !== L; }; function a() { a.init.call(this); } events.exports = a, events.exports.once = k, a.EventEmitter = a, a.prototype._events = void 0, a.prototype._eventsCount = 0, a.prototype._maxListeners = void 0; var w = 10; function b(T) { if (typeof T != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof T); } Object.defineProperty(a, "defaultMaxListeners", { enumerable: !0, get: function() { return w; }, set: function(T) { if (typeof T != "number" || T < 0 || S(T)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + T + "."); w = T; } }), a.init = function() { (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0; }, a.prototype.setMaxListeners = function(L) { if (typeof L != "number" || L < 0 || S(L)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + L + "."); return this._maxListeners = L, this; }; function v(T) { return T._maxListeners === void 0 ? a.defaultMaxListeners : T._maxListeners; } a.prototype.getMaxListeners = function() { return v(this); }, a.prototype.emit = function(L) { for (var H = [], G = 1; G < arguments.length; G++) H.push(arguments[G]); var V = L === "error", j = this._events; if (j !== void 0) V = V && j.error === void 0; else if (!V) return !1; if (V) { var te; if (H.length > 0 && (te = H[0]), te instanceof Error) throw te; var l = new Error("Unhandled error." + (te ? " (" + te.message + ")" : "")); throw l.context = te, l; } var e = j[L]; if (e === void 0) return !1; if (typeof e == "function") B(e, this, H); else for (var r = e.length, i = x(e, r), G = 0; G < r; ++G) B(i[G], this, H); return !0; }; function m(T, L, H, G) { var V, j, te; if (b(H), j = T._events, j === void 0 ? (j = T._events = /* @__PURE__ */ Object.create(null), T._eventsCount = 0) : (j.newListener !== void 0 && (T.emit( "newListener", L, H.listener ? H.listener : H ), j = T._events), te = j[L]), te === void 0) te = j[L] = H, ++T._eventsCount; else if (typeof te == "function" ? te = j[L] = G ? [H, te] : [te, H] : G ? te.unshift(H) : te.push(H), V = v(T), V > 0 && te.length > V && !te.warned) { te.warned = !0; var l = new Error("Possible EventEmitter memory leak detected. " + te.length + " " + String(L) + " listeners added. Use emitter.setMaxListeners() to increase limit"); l.name = "MaxListenersExceededWarning", l.emitter = T, l.type = L, l.count = te.length, c(l); } return T; } a.prototype.addListener = function(L, H) { return m(this, L, H, !1); }, a.prototype.on = a.prototype.addListener, a.prototype.prependListener = function(L, H) { return m(this, L, H, !0); }; function d() { if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments); } function y(T, L, H) { var G = { fired: !1, wrapFn: void 0, target: T, type: L, listener: H }, V = d.bind(G); return V.listener = H, G.wrapFn = V, V; } a.prototype.once = function(L, H) { return b(H), this.on(L, y(this, L, H)), this; }, a.prototype.prependOnceListener = function(L, H) { return b(H), this.prependListener(L, y(this, L, H)), this; }, a.prototype.removeListener = function(L, H) { var G, V, j, te, l; if (b(H), V = this._events, V === void 0) return this; if (G = V[L], G === void 0) return this; if (G === H || G.listener === H) --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete V[L], V.removeListener && this.emit("removeListener", L, G.listener || H)); else if (typeof G != "function") { for (j = -1, te = G.length - 1; te >= 0; te--) if (G[te] === H || G[te].listener === H) { l = G[te].listener, j = te; break; } if (j < 0) return this; j === 0 ? G.shift() : q(G, j), G.length === 1 && (V[L] = G[0]), V.removeListener !== void 0 && this.emit("removeListener", L, l || H); } return this; }, a.prototype.off = a.prototype.removeListener, a.prototype.removeAllListeners = function(L) { var H, G, V; if (G = this._events, G === void 0) return this; if (G.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : G[L] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete G[L]), this; if (arguments.length === 0) { var j = Object.keys(G), te; for (V = 0; V < j.length; ++V) te = j[V], te !== "removeListener" && this.removeAllListeners(te); return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this; } if (H = G[L], typeof H == "function") this.removeListener(L, H); else if (H !== void 0) for (V = H.length - 1; V >= 0; V--) this.removeListener(L, H[V]); return this; }; function g(T, L, H) { var G = T._events; if (G === void 0) return []; var V = G[L]; return V === void 0 ? [] : typeof V == "function" ? H ? [V.listener || V] : [V] : H ? P(V) : x(V, V.length); } a.prototype.listeners = function(L) { return g(this, L, !0); }, a.prototype.rawListeners = function(L) { return g(this, L, !1); }, a.listenerCount = function(T, L) { return typeof T.listenerCount == "function" ? T.listenerCount(L) : M.call(T, L); }, a.prototype.listenerCount = M; function M(T) { var L = this._events; if (L !== void 0) { var H = L[T]; if (typeof H == "function") return 1; if (H !== void 0) return H.length; } return 0; } a.prototype.eventNames = function() { return this._eventsCount > 0 ? A(this._events) : []; }; function x(T, L) { for (var H = new Array(L), G = 0; G < L; ++G) H[G] = T[G]; return H; } function q(T, L) { for (; L + 1 < T.length; L++) T[L] = T[L + 1]; T.pop(); } function P(T) { for (var L = new Array(T.length), H = 0; H < L.length; ++H) L[H] = T[H].listener || T[H]; return L; } function k(T, L) { return new Promise(function(H, G) { function V(te) { T.removeListener(L, j), G(te); } function j() { typeof T.removeListener == "function" && T.removeListener("error", V), H([].slice.call(arguments)); } $(T, L, j, { once: !0 }), L !== "error" && E(T, V, { once: !0 }); }); } function E(T, L, H) { typeof T.on == "function" && $(T, "error", L, H); } function $(T, L, H, G) { if (typeof T.on == "function") G.once ? T.once(L, H) : T.on(L, H); else if (typeof T.addEventListener == "function") T.addEventListener(L, function V(j) { G.once && T.removeEventListener(L, V), H(j); }); else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof T); } return events.exports; } var streamBrowser$1, hasRequiredStreamBrowser$1; function requireStreamBrowser$1() { return hasRequiredStreamBrowser$1 || (hasRequiredStreamBrowser$1 = 1, streamBrowser$1 = requireEvents().EventEmitter), streamBrowser$1; } var util$1 = {}, types = {}, shams$1, hasRequiredShams$1; function requireShams$1() { return hasRequiredShams$1 || (hasRequiredShams$1 = 1, shams$1 = function() { if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1; if (typeof Symbol.iterator == "symbol") return !0; var B = {}, A = Symbol("test"), c = Object(A); if (typeof A == "string" || Object.prototype.toString.call(A) !== "[object Symbol]" || Object.prototype.toString.call(c) !== "[object Symbol]") return !1; var S = 42; B[A] = S; for (var a in B) return !1; if (typeof Object.keys == "function" && Object.keys(B).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(B).length !== 0) return !1; var w = Object.getOwnPropertySymbols(B); if (w.length !== 1 || w[0] !== A || !Object.prototype.propertyIsEnumerable.call(B, A)) return !1; if (typeof Object.getOwnPropertyDescriptor == "function") { var b = ( /** @type {PropertyDescriptor} */ Object.getOwnPropertyDescriptor(B, A) ); if (b.value !== S || b.enumerable !== !0) return !1; } return !0; }), shams$1; } var shams, hasRequiredShams; function requireShams() { if (hasRequiredShams) return shams; hasRequiredShams = 1; var _ = requireShams$1(); return shams = function() { return _() && !!Symbol.toStringTag; }, shams; } var esObjectAtoms, hasRequiredEsObjectAtoms; function requireEsObjectAtoms() { return hasRequiredEsObjectAtoms || (hasRequiredEsObjectAtoms = 1, esObjectAtoms = Object), esObjectAtoms; } var esErrors, hasRequiredEsErrors; function requireEsErrors() { return hasRequiredEsErrors || (hasRequiredEsErrors = 1, esErrors = Error), esErrors; } var _eval, hasRequired_eval; function require_eval() { return hasRequired_eval || (hasRequired_eval = 1, _eval = EvalError), _eval; } var range, hasRequiredRange; function requireRange() { return hasRequiredRange || (hasRequiredRange = 1, range = RangeError), range; } var ref, hasRequiredRef; function requireRef() { return hasRequiredRef || (hasRequiredRef = 1, ref = ReferenceError), ref; } var syntax, hasRequiredSyntax; function requireSyntax() { return hasRequiredSyntax || (hasRequiredSyntax = 1, syntax = SyntaxError), syntax; } var type, hasRequiredType; function requireType() { return hasRequiredType || (hasRequiredType = 1, type = TypeError), type; } var uri, hasRequiredUri; function requireUri() { return hasRequiredUri || (hasRequiredUri = 1, uri = URIError), uri; } var abs, hasRequiredAbs; function requireAbs() { return hasRequiredAbs || (hasRequiredAbs = 1, abs = Math.abs), abs; } var floor, hasRequiredFloor; function requireFloor() { return hasRequiredFloor || (hasRequiredFloor = 1, floor = Math.floor), floor; } var max, hasRequiredMax; function requireMax() { return hasRequiredMax || (hasRequiredMax = 1, max = Math.max), max; } var min, hasRequiredMin; function requireMin() { return hasRequiredMin || (hasRequiredMin = 1, min = Math.min), min; } var pow, hasRequiredPow; function requirePow() { return hasRequiredPow || (hasRequiredPow = 1, pow = Math.pow), pow; } var round, hasRequiredRound; function requireRound() { return hasRequiredRound || (hasRequiredRound = 1, round = Math.round), round; } var _isNaN, hasRequired_isNaN; function require_isNaN() { return hasRequired_isNaN || (hasRequired_isNaN = 1, _isNaN = Number.isNaN || function(B) { return B !== B; }), _isNaN; } var sign$1, hasRequiredSign$1; function requireSign$1() { if (hasRequiredSign$1) return sign$1; hasRequiredSign$1 = 1; var _ = /* @__PURE__ */ require_isNaN(); return sign$1 = function(A) { return _(A) || A === 0 ? A : A < 0 ? -1 : 1; }, sign$1; } var gOPD, hasRequiredGOPD; function requireGOPD() { return hasRequiredGOPD || (hasRequiredGOPD = 1, gOPD = Object.getOwnPropertyDescriptor), gOPD; } var gopd, hasRequiredGopd; function requireGopd() { if (hasRequiredGopd) return gopd; hasRequiredGopd = 1; var _ = /* @__PURE__ */ requireGOPD(); if (_) try { _([], "length"); } catch { _ = null; } return gopd = _, gopd; } var esDefineProperty, hasRequiredEsDefineProperty; function requireEsDefineProperty() { if (hasRequiredEsDefineProperty) return esDefineProperty; hasRequiredEsDefineProperty = 1; var _ = Object.defineProperty || !1; if (_) try { _({}, "a", { value: 1 }); } catch { _ = !1; } return esDefineProperty = _, esDefineProperty; } var hasSymbols, hasRequiredHasSymbols; function requireHasSymbols() { if (hasRequiredHasSymbols) return hasSymbols; hasRequiredHasSymbols = 1; var _ = typeof Symbol < "u" && Symbol, B = requireShams$1(); return hasSymbols = function() { return typeof _ != "function" || typeof Symbol != "function" || typeof _("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : B(); }, hasSymbols; } var Reflect_getPrototypeOf, hasRequiredReflect_getPrototypeOf; function requireReflect_getPrototypeOf() { return hasRequiredReflect_getPrototypeOf || (hasRequiredReflect_getPrototypeOf = 1, Reflect_getPrototypeOf = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Reflect_getPrototypeOf; } var Object_getPrototypeOf, hasRequiredObject_getPrototypeOf; function requireObject_getPrototypeOf() { if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf; hasRequiredObject_getPrototypeOf = 1; var _ = /* @__PURE__ */ requireEsObjectAtoms(); return Object_getPrototypeOf = _.getPrototypeOf || null, Object_getPrototypeOf; } var implementation, hasRequiredImplementation; function requireImplementation() { if (hasRequiredImplementation) return implementation; hasRequiredImplementation = 1; var _ = "Function.prototype.bind called on incompatible ", B = Object.prototype.toString, A = Math.max, c = "[object Function]", S = function(v, m) { for (var d = [], y = 0; y < v.length; y += 1) d[y] = v[y]; for (var g = 0; g < m.length; g += 1) d[g + v.length] = m[g]; return d; }, a = function(v, m) { for (var d = [], y = m, g = 0; y < v.length; y += 1, g += 1) d[g] = v[y]; return d; }, w = function(b, v) { for (var m = "", d = 0; d < b.length; d += 1) m += b[d], d + 1 < b.length && (m += v); return m; }; return implementation = function(v) { var m = this; if (typeof m != "function" || B.apply(m) !== c) throw new TypeError(_ + m); for (var d = a(arguments, 1), y, g = function() { if (this instanceof y) { var k = m.apply( this, S(d, arguments) ); return Object(k) === k ? k : this; } return m.apply( v, S(d, arguments) ); }, M = A(0, m.length - d.length), x = [], q = 0; q < M; q++) x[q] = "$" + q; if (y = Function("binder", "return function (" + w(x, ",") + "){ return binder.apply(this,arguments); }")(g), m.prototype) { var P = function() { }; P.prototype = m.prototype, y.prototype = new P(), P.prototype = null; } return y; }, implementation; } var functionBind, hasRequiredFunctionBind; function requireFunctionBind() { if (hasRequiredFunctionBind) return functionBind; hasRequiredFunctionBind = 1; var _ = requireImplementation(); return functionBind = Function.prototype.bind || _, functionBind; } var functionCall, hasRequiredFunctionCall; function requireFunctionCall() { return hasRequiredFunctionCall || (hasRequiredFunctionCall = 1, functionCall = Function.prototype.call), functionCall; } var functionApply, hasRequiredFunctionApply; function requireFunctionApply() { return hasRequiredFunctionApply || (hasRequiredFunctionApply = 1, functionApply = Function.prototype.apply), functionApply; } var reflectApply, hasRequiredReflectApply; function requireReflectApply() { return hasRequiredReflectApply || (hasRequiredReflectApply = 1, reflectApply = typeof Reflect < "u" && Reflect && Reflect.apply), reflectApply; } var actualApply, hasRequiredActualApply; function requireActualApply() { if (hasRequiredActualApply) return actualApply; hasRequiredActualApply = 1; var _ = requireFunctionBind(), B = requireFunctionApply(), A = requireFunctionCall(), c = requireReflectApply(); return actualApply = c || _.call(A, B), actualApply; } var callBindApplyHelpers, hasRequiredCallBindApplyHelpers; function requireCallBindApplyHelpers() { if (hasRequiredCallBindApplyHelpers) return callBindApplyHelpers; hasRequiredCallBindApplyHelpers = 1; var _ = requireFunctionBind(), B = /* @__PURE__ */ requireType(), A = requireFunctionCall(), c = requireActualApply(); return callBindApplyHelpers = function(a) { if (a.length < 1 || typeof a[0] != "function") throw new B("a function is required"); return c(_, A, a); }, callBindApplyHelpers; } var get, hasRequiredGet; function requireGet() { if (hasRequiredGet) return get; hasRequiredGet = 1; var _ = requireCallBindApplyHelpers(), B = /* @__PURE__ */ requireGopd(), A; try { A = /** @type {{ __proto__?: typeof Array.prototype }} */ [].__proto__ === Array.prototype; } catch (w) { if (!w || typeof w != "object" || !("code" in w) || w.code !== "ERR_PROTO_ACCESS") throw w; } var c = !!A && B && B( Object.prototype, /** @type {keyof typeof Object.prototype} */ "__proto__" ), S = Object, a = S.getPrototypeOf; return get = c && typeof c.get == "function" ? _([c.get]) : typeof a == "function" ? ( /** @type {import('./get')} */ function(b) { return a(b == null ? b : S(b)); } ) : !1, get; } var getProto, hasRequiredGetProto; function requireGetProto() { if (hasRequiredGetProto) return getProto; hasRequiredGetProto = 1; var _ = requireReflect_getPrototypeOf(), B = requireObject_getPrototypeOf(), A = /* @__PURE__ */ requireGet(); return getProto = _ ? function(S) { return _(S); } : B ? function(S) { if (!S || typeof S != "object" && typeof S != "function") throw new TypeError("getProto: not an object"); return B(S); } : A ? function(S) { return A(S); } : null, getProto; } var hasown, hasRequiredHasown; function requireHasown() { if (hasRequiredHasown) return hasown; hasRequiredHasown = 1; var _ = Function.prototype.call, B = Object.prototype.hasOwnProperty, A = requireFunctionBind(); return hasown = A.call(_, B), hasown; } var getIntrinsic, hasRequiredGetIntrinsic; function requireGetIntrinsic() { if (hasRequiredGetIntrinsic) return getIntrinsic; hasRequiredGetIntrinsic = 1; var _, B = /* @__PURE__ */ requireEsObjectAtoms(), A = /* @__PURE__ */ requireEsErrors(), c = /* @__PURE__ */ require_eval(), S = /* @__PURE__ */ requireRange(), a = /* @__PURE__ */ requireRef(), w = /* @__PURE__ */ requireSyntax(), b = /* @__PURE__ */ requireType(), v = /* @__PURE__ */ requireUri(), m = /* @__PURE__ */ requireAbs(), d = /* @__PURE__ */ requireFloor(), y = /* @__PURE__ */ requireMax(), g = /* @__PURE__ */ requireMin(), M = /* @__PURE__ */ requirePow(), x = /* @__PURE__ */ requireRound(), q = /* @__PURE__ */ requireSign$1(), P = Function, k = function(F) { try { return P('"use strict"; return (' + F + ").constructor;")(); } catch { } }, E = /* @__PURE__ */ requireGopd(), $ = /* @__PURE__ */ requireEsDefineProperty(), T = function() { throw new b(); }, L = E ? function() { try { return arguments.callee, T; } catch { try { return E(arguments, "callee").get; } catch { return T; } } }() : T, H = requireHasSymbols()(), G = requireGetProto(), V = requireObject_getPrototypeOf(), j = requireReflect_getPrototypeOf(), te = requireFunctionApply(), l = requireFunctionCall(), e = {}, r = typeof Uint8Array > "u" || !G ? _ : G(Uint8Array), i = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? _ : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? _ : ArrayBuffer, "%ArrayIteratorPrototype%": H && G ? G([][Symbol.iterator]()) : _, "%AsyncFromSyncIteratorPrototype%": _, "%AsyncFunction%": e, "%AsyncGenerator%": e, "%AsyncGeneratorFunction%": e, "%AsyncIteratorPrototype%": e, "%Atomics%": typeof Atomics > "u" ? _ : Atomics, "%BigInt%": typeof BigInt > "u" ? _ : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? _ : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? _ : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? _ : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": A, "%eval%": eval, // eslint-disable-line no-eval "%EvalError%": c, "%Float16Array%": typeof Float16Array > "u" ? _ : Float16Array, "%Float32Array%": typeof Float32Array > "u" ? _ : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? _ : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? _ : FinalizationRegistry, "%Function%": P, "%GeneratorFunction%": e, "%Int8Array%": typeof Int8Array > "u" ? _ : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? _ : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? _ : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": H && G ? G(G([][Symbol.iterator]())) : _, "%JSON%": typeof JSON == "object" ? JSON : _, "%Map%": typeof Map > "u" ? _ : Map, "%MapIteratorPrototype%": typeof Map > "u" || !H || !G ? _ : G((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": B, "%Object.getOwnPropertyDescriptor%": E, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? _ : Promise, "%Proxy%": typeof Proxy > "u" ? _ : Proxy, "%RangeError%": S, "%ReferenceError%": a, "%Reflect%": typeof Reflect > "u" ? _ : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? _ : Set, "%SetIteratorPrototype%": typeof Set > "u" || !H || !G ? _ : G((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? _ : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": H && G ? G(""[Symbol.iterator]()) : _, "%Symbol%": H ? Symbol : _, "%SyntaxError%": w, "%ThrowTypeError%": L, "%TypedArray%": r, "%TypeError%": b, "%Uint8Array%": typeof Uint8Array > "u" ? _ : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? _ : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? _ : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? _ : Uint32Array, "%URIError%": v, "%WeakMap%": typeof WeakMap > "u" ? _ : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? _ : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? _ : WeakSet, "%Function.prototype.call%": l, "%Function.prototype.apply%": te, "%Object.defineProperty%": $, "%Object.getPrototypeOf%": V, "%Math.abs%": m, "%Math.floor%": d, "%Math.max%": y, "%Math.min%": g, "%Math.pow%": M, "%Math.round%": x, "%Math.sign%": q, "%Reflect.getPrototypeOf%": j }; if (G) try { null.error; } catch (F) { var n = G(G(F)); i["%Error.prototype%"] = n; } var s = function F(K) { var z; if (K === "%AsyncFunction%") z = k("async function () {}"); else if (K === "%GeneratorFunction%") z = k("function* () {}"); else if (K === "%AsyncGeneratorFunction%") z = k("async function* () {}"); else if (K === "%AsyncGenerator%") { var O = F("%AsyncGeneratorFunction%"); O && (z = O.prototype); } else if (K === "%AsyncIteratorPrototype%") { var W = F("%AsyncGenerator%"); W && G && (z = G(W.prototype)); } return i[K] = z, z; }, h = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, u = requireFunctionBind(), f = /* @__PURE__ */ requireHasown(), t = u.call(l, Array.prototype.concat), o = u.call(te, Array.prototype.splice), p = u.call(l, String.prototype.replace), R = u.call(l, String.prototype.slice), C = u.call(l, RegExp.prototype.exec), U = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, N = /\\(\\)?/g, I = function(K) { var z = R(K, 0, 1), O = R(K, -1); if (z === "%" && O !== "%") throw new w("invalid intrinsic syntax, expected closing `%`"); if (O === "%" && z !== "%") throw new w("invalid intrinsic syntax, expected opening `%`"); var W = []; return p(K, U, function(me, J, X, Ee) { W[W.length] = X ? p(Ee, N, "$1") : J || me; }), W; }, D = function(K, z) { var O = K, W; if (f(h, O) && (W = h[O], O = "%" + W[0] + "%"), f(i, O)) { var me = i[O]; if (me === e && (me = s(O)), typeof me > "u" && !z) throw new b("intrinsic " + K + " exists, but is not available. Please file an issue!"); return { alias: W, name: O, value: me }; } throw new w("intrinsic " + K + " does not exist!"); }; return getIntrinsic = function(K, z) { if (typeof K != "string" || K.length === 0) throw new b("intrinsic name must be a non-empty string"); if (arguments.length > 1 && typeof z != "boolean") throw new b('"allowMissing" argument must be a boolean'); if (C(/^%?[^%]*%?$/, K) === null) throw new w("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); var O = I(K), W = O.length > 0 ? O[0] : "", me = D("%" + W + "%", z), J = me.name, X = me.value, Ee = !1, Q = me.alias; Q && (W = Q[0], o(O, t([0, 1], Q))); for (var Z = 1, ke = !0; Z < O.length; Z += 1) { var Y = O[Z], ie = R(Y, 0, 1), Ie = R(Y, -1); if ((ie === '"' || ie === "'" || ie === "`" || Ie === '"' || Ie === "'" || Ie === "`") && ie !== Ie) throw new w("property names with quotes must have matching quotes"); if ((Y === "constructor" || !ke) && (Ee = !0), W += "." + Y, J = "%" + W + "%", f(i, J)) X = i[J]; else if (X != null) { if (!(Y in X)) { if (!z) throw new b("base intrinsic for " + K + " exists, but the property is not available."); return; } if (E && Z + 1 >= O.length) { var ee = E(X, Y); ke = !!ee, ke && "get" in ee && !("originalValue" in ee.get) ? X = ee.get : X = X[Y]; } else ke = f(X, Y), X = X[Y]; ke && !Ee && (i[J] = X); } } return X; }, getIntrinsic; } var callBound, hasRequiredCallBound; function requireCallBound() { if (hasRequiredCallBound) return callBound; hasRequiredCallBound = 1; var _ = /* @__PURE__ */ requireGetIntrinsic(), B = requireCallBindApplyHelpers(), A = B([_("%String.prototype.indexOf%")]); return callBound = function(S, a) { var w = ( /** @type {(this: unknown, ...args: unknown[]) => unknown} */ _(S, !!a) ); return typeof w == "function" && A(S, ".prototype.") > -1 ? B( /** @type {const} */ [w] ) : w; }, callBound; } var isArguments, hasRequiredIsArguments; function requireIsArguments() { if (hasRequiredIsArguments) return isArguments; hasRequiredIsArguments = 1; var _ = requireShams()(), B = /* @__PURE__ */ requireCallBound(), A = B("Object.prototype.toString"), c = function(b) { return _ && b && typeof b == "object" && Symbol.toStringTag in b ? !1 : A(b) === "[object Arguments]"; }, S = function(b) { return c(b) ? !0 : b !== null && typeof b == "object" && "length" in b && typeof b.length == "number" && b.length >= 0 && A(b) !== "[object Array]" && "callee" in b && A(b.callee) === "[object Function]"; }, a = function() { return c(arguments); }(); return c.isLegacyArguments = S, isArguments = a ? c : S, isArguments; } var isRegex, hasRequiredIsRegex; function requireIsRegex() { if (hasRequiredIsRegex) return isRegex; hasRequiredIsRegex = 1; var _ = /* @__PURE__ */ requireCallBound(), B = requireShams()(), A = /* @__PURE__ */ requireHasown(), c = /* @__PURE__ */ requireGopd(), S; if (B) { var a = _("RegExp.prototype.exec"), w = {}, b = function() { throw w; }, v = { toString: b, valueOf: b }; typeof Symbol.toPrimitive == "symbol" && (v[Symbol.toPrimitive] = b), S = function(g) { if (!g || typeof g != "object") return !1; var M = ( /** @type {NonNullable<typeof gOPD>} */ c( /** @type {{ lastIndex?: unknown }} */ g, "lastIndex" ) ), x = M && A(M, "value"); if (!x) return !1; try { a( g, /** @type {string} */ /** @type {unknown} */ v ); } catch (q) { return q === w; } }; } else { var m = _("Object.prototype.toString"), d = "[object RegExp]"; S = function(g) { return !g || typeof g != "object" && typeof g != "function" ? !1 : m(g) === d; }; } return isRegex = S, isRegex; } var safeRegexTest, hasRequiredSafeRegexTest; function requireSafeRegexTest() { if (hasRequiredSafeRegexTest) return safeRegexTest; hasRequiredSafeRegexTest = 1; var _ = /* @__PURE__ */ requireCallBound(), B = requireIsRegex(), A = _("RegExp.prototype.exec"), c = /* @__PURE__ */ requireType(); return safeRegexTest = function(a) { if (!B(a)) throw new c("`regex` must be a RegExp"); return function(b) { return A(a, b) !== null; }; }, safeRegexTest; } var isGeneratorFunction, hasRequiredIsGeneratorFunction; function requireIsGeneratorFunction() { if (hasRequiredIsGeneratorFunction) return isGeneratorFunction; hasRequiredIsGeneratorFunction = 1; var _ = /* @__PURE__ */ requireCallBound(), B = /* @__PURE__ */ requireSafeRegexTest(), A = B(/^\s*(?:function)?\*/), c = requireShams()(), S = requireGetProto(), a = _("Object.prototype.toString"), w = _("Function.prototype.toString"), b = function() { if (!c) return !1; try { return Function("return function*() {}")(); } catch { } }, v; return isGeneratorFunction = function(d) { if (typeof d != "function") return !1; if (A(w(d))) return !0; if (!c) { var y = a(d); return y === "[object GeneratorFunction]"; } if (!S) return !1; if (typeof v > "u") { var g = b(); v = g ? ( /** @type {GeneratorFunctionConstructor} */ S(g) ) : !1; } return S(d) === v; }, isGeneratorFunction; } var isCallable, hasRequiredIsCallable; function requireIsCallable() { if (hasRequiredIsCallable) return isCallable; hasRequiredIsCallable = 1; var _ = Function.prototype.toString, B = typeof Reflect == "object" && Reflect !== null && Reflect.apply, A, c; if (typeof B == "function" && typeof Object.defineProperty == "function") try { A = Object.defineProperty({}, "length", { get: function() { throw c; } }), c = {}, B(function() { throw 42; }, null, A); } catch (E) { E !== c && (B = null); } else B = null; var S = /^\s*class\b/, a = function($) { try { var T = _.call($); return S.test(T); } catch { return !1; } }, w = function($) { try { return a($) ? !1 : (_.call($), !0); } catch { return !1; } }, b = Object.prototype.toString, v = "[object Object]", m = "[object Function]", d = "[object GeneratorFunction]", y = "[object HTMLAllCollection]", g = "[object HTML document.all class]", M = "[object HTMLCollection]", x = typeof Symbol == "function" && !!Symbol.toStringTag, q = !(0 in [,]), P = function() { return !1; }; if (typeof document == "object") { var k = document.all; b.call(k) === b.call(document.all) && (P = function($) { if ((q || !$) && (typeof $ > "u" || typeof $ == "object")) try { var T = b.call($); return (T === y || T === g || T === M || T === v) && $("") == null; } catch { } return !1; }); } return isCallable = B ? function($) { if (P($)) return !0; if (!$ || typeof $ != "function" && typeof $ != "object") return !1; try { B($, null, A); } catch (T) { if (T !== c) return !1; } return !a($) && w($); } : function($) { if (P($)) return !0; if (!$ || typeof $ != "function" && typeof $ != "object") return !1; if (x) return w($); if (a($)) return !1; var T = b.call($); return T !== m && T !== d && !/^\[object HTML/.test(T) ? !1 : w($); }, isCallable; } var forEach, hasRequiredForEach; function requireForEach() { if (hasRequiredForEach) return forEach; hasRequiredForEach = 1; var _ = requireIsCallable(), B = Object.prototype.toString, A = Object.prototype.hasOwnProperty, c = function(v, m, d) { for (var y = 0, g = v.length; y < g; y++) A.call(v, y) && (d == null ? m(v[y], y, v) : m.call(d, v[y], y, v)); }, S = function(v, m, d) { for (var y = 0, g = v.length; y < g; y++) d == null ? m(v.charAt(y), y, v) : m.call(d, v.charAt(y), y, v); }, a = function(v, m, d) { for (var y in v) A.call(v, y) && (d == null ? m(v[y], y, v) : m.call(d, v[y], y, v)); }; function w(b) { return B.call(b) === "[object Array]"; } return forEach = function(v, m, d) { if (!_(m)) throw new TypeError("iterator must be a function"); var y; arguments.length >= 3 && (y = d), w(v) ? c(v, m, y) : typeof v == "string" ? S(v, m, y) : a(v, m, y); }, forEach; } var possibleTypedArrayNames, hasRequiredPossibleTypedArrayNames; function requirePossibleTypedArrayNames() { return hasRequiredPossibleTypedArrayNames || (hasRequiredPossibleTypedArrayNames = 1, possibleTypedArrayNames = [ "Float16Array", "Float32Array", "Float64Array", "Int8Array", "Int16Array", "Int32Array", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array" ]), possibleTypedArrayNames; } var availableTypedArrays, hasRequiredAvailableTypedArrays; function requireAvailableTypedArrays() { if (hasRequiredAvailableTypedArrays) return availableTypedArrays; hasRequiredAvailableTypedArrays = 1; var _ = /* @__PURE__ */ requirePossibleTypedArrayNames(), B = typeof globalThis > "u" ? commonjsGlobal : globalThis; return availableTypedArrays = function() { for (var c = [], S = 0; S < _.length; S++) typeof B[_[S]] == "function" && (c[c.length] = _[S]); return c; }, availableTypedArrays; } var callBind = { exports: {} }, defineDataProperty, hasRequiredDefineDataProperty; function requireDefineDataProperty() { if (hasRequiredDefineDataProperty) return defineDataProperty; hasRequiredDefineDataProperty = 1; var _ = /* @__PURE__ */ requireEsDefineProperty(), B = /* @__PURE__ */ requireSyntax(), A = /* @__PURE__ */ requireType(), c = /* @__PURE__ */ requireGopd(); return defineDataProperty = function(a, w, b) { if (!a || typeof a != "object" && typeof a != "function") throw new A("`obj` must be an object or a function`"); if (typeof w != "string" && typeof w != "symbol") throw new A("`property` must be a string or a symbol`"); if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null) throw new A("`nonEnumerable`, if provided, must be a boolean or null"); if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null) throw new A("`nonWritable`, if provided, must be a boolean or null"); if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null) throw new A("`nonConfigurable`, if provided, must be a boolean or null"); if (arguments.length > 6 && typeof arguments[6] != "boolean") throw new A("`loose`, if provided, must be a boolean"); var v = arguments.length > 3 ? arguments[3] : null, m = arguments.length > 4 ? arguments[4] : null, d = arguments.length > 5 ? arguments[5] : null, y = arguments.length > 6 ? arguments[6] : !1, g = !!c && c(a, w); if (_) _(a, w, { configurable: d === null && g ? g.configurable : !d, enumerable: v === null && g ? g.enumerable : !v, value: b, writable: m === null && g ? g.writable : !m }); else if (y || !v && !m && !d) a[w] = b; else throw new B("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable."); }, defineDataProperty; } var hasPropertyDescriptors_1, hasRequiredHasPropertyDescriptors; function requireHasPropertyDescriptors() { if (hasRequiredHasPropertyDescriptors) return hasPropertyDescriptors_1; hasRequiredHasPropertyDescriptors = 1; var _ = /* @__PURE__ */ requireEsDefineProperty(), B = function() { return !!_; }; return B.hasArrayLengthDefineBug = function() { if (!_) return null; try { return _([], "length", { value: 1 }).length !== 1; } catch { return !0; } }, hasPropertyDescriptors_1 = B, hasPropertyDescriptors_1; } var setFunctionLength, hasRequiredSetFunctionLength; function requireSetFunctionLength() { if (hasRequiredSetFunctionLength) return setFunctionLength; hasRequiredSetFunctionLength = 1; var _ = /* @__PURE__ */ requireGetIntrinsic(), B = /* @__PURE__ */ requireDefineDataProperty(), A = /* @__PURE__ */ requireHasPropertyDescriptors()(), c = /* @__PURE__ */ requireGopd(), S = /* @__PURE__ */ requireType(), a = _("%Math.floor%"); return setFunctionLength = function(b, v) { if (typeof b != "function") throw new S("`fn` is not a function"); if (typeof v != "number" || v < 0 || v > 4294967295 || a(v) !== v) throw new S("`length` must be a positive 32-bit integer"); var m = arguments.length > 2 && !!arguments[2], d = !0, y = !0; if ("length" in b && c) { var g = c(b, "length"); g && !g.configurable && (d = !1), g && !g.writable && (y = !1); } return (d || y || !m) && (A ? B( /** @type {Parameters<define>[0]} */ b, "length", v, !0, !0 ) : B( /** @type {Parameters<define>[0]} */ b, "length", v )), b; }, setFunctionLength; } var applyBind, hasRequiredApplyBind; function requireApplyBind() { if (hasRequiredApplyBind) return applyBind; hasRequiredApplyBind = 1; var _ = requireFunctionBind(), B = requireFunctionApply(), A = requireActualApply(); return applyBind = function() { return A(_, B, arguments); }, applyBind; } var hasRequiredCallBind; function requireCallBind() { return hasRequiredCallBind || (hasRequiredCallBind = 1, function(_) { var B = /* @__PURE__ */ requireSetFunctionLength(), A = /* @__PURE__ */ requireEsDefineProperty(), c = requireCallBindApplyHelpers(), S = requireApplyBind(); _.exports = function(w) { var b = c(arguments), v = w.length - (arguments.length - 1); return B( b, 1 + (v > 0 ? v : 0), !0 ); }, A ? A(_.exports, "apply", { value: S }) : _.exports.apply = S; }(callBind)), callBind.exports; } var whichTypedArray, hasRequiredWhichTypedArray; function requireWhichTypedArray() { if (hasRequiredWhichTypedArray) return whichTypedArray; hasRequiredWhichTypedArray = 1; var _ = requireForEach(), B = /* @__PURE__ */ requireAvailableTypedArrays(), A = requireCallBind(), c = /* @__PURE__ */ requireCallBound(), S = /* @__PURE__ */ requireGopd(), a = requireGetProto(), w = c("Object.prototype.toString"), b = requireShams()(), v = typeof globalThis > "u" ? commonjsGlobal : globalThis, m = B(), d = c("String.prototype.slice"), y = c("Array.prototype.indexOf", !0) || function(P, k) { for (var E = 0; E < P.length; E += 1) if (P[E] === k) return E; return -1; }, g = { __proto__: null }; b && S && a ? _(m, function(q) { var P = new v[q](); if (Symbol.toStringTag in P && a) { var k = a(P), E = S(k, Symbol.toStringTag); if (!E && k) { var $ = a(k); E = S($, Symbol.toStringTag); } g["$" + q] = A(E.get); } }) : _(m, function(q) { var P = new v[q](), k = P.slice || P.set; k && (g[ /** @type {`$${import('.').TypedArrayName}`} */ "$" + q ] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */ // @ts-expect-error TODO FIXME A(k)); }); var M = function(P) { var k = !1; return _( /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */ g, /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */ function(E, $) { if (!k) try { "$" + E(P) === $ && (k = /** @type {import('.').TypedArrayName} */ d($, 1)); } catch { } } ), k; }, x = function(P) { var k = !1; return _( /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */ g, /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */ function(E, $) { if (!k) try { E(P), k = /** @type {import('.').TypedArrayName} */ d($, 1); } catch { } } ), k; }; return whichTypedArray = function(P) { if (!P || typeof P != "object") return !1; if (!b) { var k = d(w(P), 8, -1); return y(m, k) > -1 ? k : k !== "Object" ? !1 : x(P); } return S ? M(P) : null; }, whichTypedArray; } var isTypedArray, hasRequiredIsTypedArray; function requireIsTypedArray() { if (hasRequiredIsTypedArray) return isTypedArray; hasRequiredIsTypedArray = 1; var _ = /* @__PURE__ */ requireWhichTypedArray(); return isTypedArray = function(A) { return !!_(A); }, isTypedArray; } var hasRequiredTypes; function requireTypes() { return hasRequiredTypes || (hasRequiredTypes = 1, function(_) { var B = /* @__PURE__ */ requireIsArguments(), A = requireIsGeneratorFunction(), c = /* @__PURE__ */ requireWhichTypedArray(), S = /* @__PURE__ */ requireIsTypedArray(); function a(Z) { return Z.call.bind(Z); } var w = typeof BigInt < "u", b = typeof Symbol < "u", v = a(Object.prototype.toString), m = a(Number.prototype.valueOf), d = a(String.prototype.valueOf), y = a(Boolean.prototype.valueOf); if (w) var g = a(BigInt.prototype.valueOf); if (b) var M = a(Symbol.prototype.valueOf); function x(Z, ke) { if (typeof Z != "object") return !1; try { return ke(Z), !0; } catch { return !1; } } _.isArgumentsObject = B, _.isGeneratorFunction = A, _.isTypedArray = S; function q(Z) { return typeof Promise < "u" && Z instanceof Promise || Z !== null && typeof Z == "object" && typeof Z.then == "function" && typeof Z.catch == "function"; } _.isPromise = q; function P(Z) { return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(Z) : S(Z) || R(Z); } _.isArrayBufferView = P; function k(Z) { return c(Z) === "Uint8