reactjs-tiptap-editor
Version:
A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React
1,530 lines • 85 kB
JavaScript
import { h as Po, N as Io, k as Ro, n as $o, m as Eo } from "./clsx-DaPvp9ji.js";
import { jsx as er, jsxs as Nr } from "react/jsx-runtime";
import { useState as Ur, useRef as xo, useEffect as Bo, useMemo as Hr, useCallback as To } from "react";
import Xa from "katex";
import { u as Mo, d as jo, h as Co, D as Do, m as Fo, A as _o, n as No, o as Wo, L as un, p as ko, B as Lo } from "./index-RcSPeQHn.js";
import "./theme.js";
import { T as fn } from "./textarea-CkVKMPqK.js";
import { u as Uo } from "./index-C07N8gA1.js";
var Gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Ho(r) {
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
}
function Go(r) {
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
var e = r.default;
if (typeof e == "function") {
var n = function a() {
return this instanceof a ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
};
n.prototype = e.prototype;
} else n = {};
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(r).forEach(function(a) {
var t = Object.getOwnPropertyDescriptor(r, a);
Object.defineProperty(n, a, t.get ? t : {
enumerable: !0,
get: function() {
return r[a];
}
});
}), n;
}
var ae, sn;
function Qa() {
if (sn) return ae;
sn = 1;
var r = Object.prototype.toString;
return ae = function(n) {
var a = r.call(n), t = a === "[object Arguments]";
return t || (t = a !== "[object Array]" && n !== null && typeof n == "object" && typeof n.length == "number" && n.length >= 0 && r.call(n.callee) === "[object Function]"), t;
}, ae;
}
var oe, ln;
function zo() {
if (ln) return oe;
ln = 1;
var r;
if (!Object.keys) {
var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, a = Qa(), t = Object.prototype.propertyIsEnumerable, f = !t.call({ toString: null }, "toString"), i = t.call(function() {
}, "prototype"), o = [
"toString",
"toLocaleString",
"valueOf",
"hasOwnProperty",
"isPrototypeOf",
"propertyIsEnumerable",
"constructor"
], u = function(y) {
var h = y.constructor;
return h && h.prototype === y;
}, c = {
$applicationCache: !0,
$console: !0,
$external: !0,
$frame: !0,
$frameElement: !0,
$frames: !0,
$innerHeight: !0,
$innerWidth: !0,
$onmozfullscreenchange: !0,
$onmozfullscreenerror: !0,
$outerHeight: !0,
$outerWidth: !0,
$pageXOffset: !0,
$pageYOffset: !0,
$parent: !0,
$scrollLeft: !0,
$scrollTop: !0,
$scrollX: !0,
$scrollY: !0,
$self: !0,
$webkitIndexedDB: !0,
$webkitStorageInfo: !0,
$window: !0
}, v = (function() {
if (typeof window > "u")
return !1;
for (var y in window)
try {
if (!c["$" + y] && e.call(window, y) && window[y] !== null && typeof window[y] == "object")
try {
u(window[y]);
} catch {
return !0;
}
} catch {
return !0;
}
return !1;
})(), p = function(y) {
if (typeof window > "u" || !v)
return u(y);
try {
return u(y);
} catch {
return !1;
}
};
r = function(h) {
var S = h !== null && typeof h == "object", R = n.call(h) === "[object Function]", w = a(h), q = S && n.call(h) === "[object String]", O = [];
if (!S && !R && !w)
throw new TypeError("Object.keys called on a non-object");
var m = i && R;
if (q && h.length > 0 && !e.call(h, 0))
for (var T = 0; T < h.length; ++T)
O.push(String(T));
if (w && h.length > 0)
for (var X = 0; X < h.length; ++X)
O.push(String(X));
else
for (var H in h)
!(m && H === "prototype") && e.call(h, H) && O.push(String(H));
if (f)
for (var F = p(h), D = 0; D < o.length; ++D)
!(F && o[D] === "constructor") && e.call(h, o[D]) && O.push(o[D]);
return O;
};
}
return oe = r, oe;
}
var ie, cn;
function Wt() {
if (cn) return ie;
cn = 1;
var r = Array.prototype.slice, e = Qa(), n = Object.keys, a = n ? function(i) {
return n(i);
} : zo(), t = Object.keys;
return a.shim = function() {
if (Object.keys) {
var i = (function() {
var o = Object.keys(arguments);
return o && o.length === arguments.length;
})(1, 2);
i || (Object.keys = function(u) {
return e(u) ? t(r.call(u)) : t(u);
});
} else
Object.keys = a;
return Object.keys || a;
}, ie = a, ie;
}
var ue, pn;
function zr() {
if (pn) return ue;
pn = 1;
var r = Object.defineProperty || !1;
if (r)
try {
r({}, "a", { value: 1 });
} catch {
r = !1;
}
return ue = r, ue;
}
var fe, yn;
function kt() {
return yn || (yn = 1, fe = SyntaxError), fe;
}
var se, vn;
function nr() {
return vn || (vn = 1, se = TypeError), se;
}
var le, gn;
function Vo() {
return gn || (gn = 1, le = Object.getOwnPropertyDescriptor), le;
}
var ce, hn;
function Or() {
if (hn) return ce;
hn = 1;
var r = /* @__PURE__ */ Vo();
if (r)
try {
r([], "length");
} catch {
r = null;
}
return ce = r, ce;
}
var pe, dn;
function Lt() {
if (dn) return pe;
dn = 1;
var r = /* @__PURE__ */ zr(), e = /* @__PURE__ */ kt(), n = /* @__PURE__ */ nr(), a = /* @__PURE__ */ Or();
return pe = function(f, i, o) {
if (!f || typeof f != "object" && typeof f != "function")
throw new n("`obj` must be an object or a function`");
if (typeof i != "string" && typeof i != "symbol")
throw new n("`property` must be a string or a symbol`");
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
throw new n("`nonEnumerable`, if provided, must be a boolean or null");
if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
throw new n("`nonWritable`, if provided, must be a boolean or null");
if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
throw new n("`nonConfigurable`, if provided, must be a boolean or null");
if (arguments.length > 6 && typeof arguments[6] != "boolean")
throw new n("`loose`, if provided, must be a boolean");
var u = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, v = arguments.length > 5 ? arguments[5] : null, p = arguments.length > 6 ? arguments[6] : !1, y = !!a && a(f, i);
if (r)
r(f, i, {
configurable: v === null && y ? y.configurable : !v,
enumerable: u === null && y ? y.enumerable : !u,
value: o,
writable: c === null && y ? y.writable : !c
});
else if (p || !u && !c && !v)
f[i] = o;
else
throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
}, pe;
}
var ye, mn;
function Ut() {
if (mn) return ye;
mn = 1;
var r = /* @__PURE__ */ zr(), e = function() {
return !!r;
};
return e.hasArrayLengthDefineBug = function() {
if (!r)
return null;
try {
return r([], "length", { value: 1 }).length !== 1;
} catch {
return !0;
}
}, ye = e, ye;
}
var ve, Sn;
function wr() {
if (Sn) return ve;
Sn = 1;
var r = Wt(), e = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", n = Object.prototype.toString, a = Array.prototype.concat, t = /* @__PURE__ */ Lt(), f = function(c) {
return typeof c == "function" && n.call(c) === "[object Function]";
}, i = /* @__PURE__ */ Ut()(), o = function(c, v, p, y) {
if (v in c) {
if (y === !0) {
if (c[v] === p)
return;
} else if (!f(y) || !y())
return;
}
i ? t(c, v, p, !0) : t(c, v, p);
}, u = function(c, v) {
var p = arguments.length > 2 ? arguments[2] : {}, y = r(v);
e && (y = a.call(y, Object.getOwnPropertySymbols(v)));
for (var h = 0; h < y.length; h += 1)
o(c, y[h], v[y[h]], p[y[h]]);
};
return u.supportsDescriptors = !!i, ve = u, ve;
}
var ge = { exports: {} }, he, bn;
function Ht() {
return bn || (bn = 1, he = Object), he;
}
var de, An;
function Za() {
return An || (An = 1, de = Error), de;
}
var me, On;
function Ko() {
return On || (On = 1, me = EvalError), me;
}
var Se, wn;
function Jo() {
return wn || (wn = 1, Se = RangeError), Se;
}
var be, qn;
function Yo() {
return qn || (qn = 1, be = ReferenceError), be;
}
var Ae, Pn;
function Xo() {
return Pn || (Pn = 1, Ae = URIError), Ae;
}
var Oe, In;
function Qo() {
return In || (In = 1, Oe = Math.abs), Oe;
}
var we, Rn;
function Zo() {
return Rn || (Rn = 1, we = Math.floor), we;
}
var qe, $n;
function ri() {
return $n || ($n = 1, qe = Math.max), qe;
}
var Pe, En;
function ei() {
return En || (En = 1, Pe = Math.min), Pe;
}
var Ie, xn;
function ti() {
return xn || (xn = 1, Ie = Math.pow), Ie;
}
var Re, Bn;
function ni() {
return Bn || (Bn = 1, Re = Math.round), Re;
}
var $e, Tn;
function ai() {
return Tn || (Tn = 1, $e = Number.isNaN || function(e) {
return e !== e;
}), $e;
}
var Ee, Mn;
function oi() {
if (Mn) return Ee;
Mn = 1;
var r = /* @__PURE__ */ ai();
return Ee = function(n) {
return r(n) || n === 0 ? n : n < 0 ? -1 : 1;
}, Ee;
}
var xe, jn;
function Vr() {
return jn || (jn = 1, xe = function() {
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
return !1;
if (typeof Symbol.iterator == "symbol")
return !0;
var e = {}, n = Symbol("test"), a = Object(n);
if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(a) !== "[object Symbol]")
return !1;
var t = 42;
e[n] = t;
for (var f in e)
return !1;
if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
return !1;
var i = Object.getOwnPropertySymbols(e);
if (i.length !== 1 || i[0] !== n || !Object.prototype.propertyIsEnumerable.call(e, n))
return !1;
if (typeof Object.getOwnPropertyDescriptor == "function") {
var o = (
/** @type {PropertyDescriptor} */
Object.getOwnPropertyDescriptor(e, n)
);
if (o.value !== t || o.enumerable !== !0)
return !1;
}
return !0;
}), xe;
}
var Be, Cn;
function Gt() {
if (Cn) return Be;
Cn = 1;
var r = typeof Symbol < "u" && Symbol, e = Vr();
return Be = function() {
return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
}, Be;
}
var Te, Dn;
function ro() {
return Dn || (Dn = 1, Te = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Te;
}
var Me, Fn;
function eo() {
if (Fn) return Me;
Fn = 1;
var r = /* @__PURE__ */ Ht();
return Me = r.getPrototypeOf || null, Me;
}
var je, _n;
function ii() {
if (_n) return je;
_n = 1;
var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, a = "[object Function]", t = function(u, c) {
for (var v = [], p = 0; p < u.length; p += 1)
v[p] = u[p];
for (var y = 0; y < c.length; y += 1)
v[y + u.length] = c[y];
return v;
}, f = function(u, c) {
for (var v = [], p = c, y = 0; p < u.length; p += 1, y += 1)
v[y] = u[p];
return v;
}, i = function(o, u) {
for (var c = "", v = 0; v < o.length; v += 1)
c += o[v], v + 1 < o.length && (c += u);
return c;
};
return je = function(u) {
var c = this;
if (typeof c != "function" || e.apply(c) !== a)
throw new TypeError(r + c);
for (var v = f(arguments, 1), p, y = function() {
if (this instanceof p) {
var q = c.apply(
this,
t(v, arguments)
);
return Object(q) === q ? q : this;
}
return c.apply(
u,
t(v, arguments)
);
}, h = n(0, c.length - v.length), S = [], R = 0; R < h; R++)
S[R] = "$" + R;
if (p = Function("binder", "return function (" + i(S, ",") + "){ return binder.apply(this,arguments); }")(y), c.prototype) {
var w = function() {
};
w.prototype = c.prototype, p.prototype = new w(), w.prototype = null;
}
return p;
}, je;
}
var Ce, Nn;
function jr() {
if (Nn) return Ce;
Nn = 1;
var r = ii();
return Ce = Function.prototype.bind || r, Ce;
}
var De, Wn;
function zt() {
return Wn || (Wn = 1, De = Function.prototype.call), De;
}
var Fe, kn;
function Vt() {
return kn || (kn = 1, Fe = Function.prototype.apply), Fe;
}
var _e, Ln;
function ui() {
return Ln || (Ln = 1, _e = typeof Reflect < "u" && Reflect && Reflect.apply), _e;
}
var Ne, Un;
function to() {
if (Un) return Ne;
Un = 1;
var r = jr(), e = Vt(), n = zt(), a = ui();
return Ne = a || r.call(n, e), Ne;
}
var We, Hn;
function Kt() {
if (Hn) return We;
Hn = 1;
var r = jr(), e = /* @__PURE__ */ nr(), n = zt(), a = to();
return We = function(f) {
if (f.length < 1 || typeof f[0] != "function")
throw new e("a function is required");
return a(r, n, f);
}, We;
}
var ke, Gn;
function fi() {
if (Gn) return ke;
Gn = 1;
var r = Kt(), e = /* @__PURE__ */ Or(), n;
try {
n = /** @type {{ __proto__?: typeof Array.prototype }} */
[].__proto__ === Array.prototype;
} catch (i) {
if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
throw i;
}
var a = !!n && e && e(
Object.prototype,
/** @type {keyof typeof Object.prototype} */
"__proto__"
), t = Object, f = t.getPrototypeOf;
return ke = a && typeof a.get == "function" ? r([a.get]) : typeof f == "function" ? (
/** @type {import('./get')} */
function(o) {
return f(o == null ? o : t(o));
}
) : !1, ke;
}
var Le, zn;
function Jt() {
if (zn) return Le;
zn = 1;
var r = ro(), e = eo(), n = /* @__PURE__ */ fi();
return Le = r ? function(t) {
return r(t);
} : e ? function(t) {
if (!t || typeof t != "object" && typeof t != "function")
throw new TypeError("getProto: not an object");
return e(t);
} : n ? function(t) {
return n(t);
} : null, Le;
}
var Ue, Vn;
function Yt() {
if (Vn) return Ue;
Vn = 1;
var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = jr();
return Ue = n.call(r, e), Ue;
}
var He, Kn;
function pr() {
if (Kn) return He;
Kn = 1;
var r, e = /* @__PURE__ */ Ht(), n = /* @__PURE__ */ Za(), a = /* @__PURE__ */ Ko(), t = /* @__PURE__ */ Jo(), f = /* @__PURE__ */ Yo(), i = /* @__PURE__ */ kt(), o = /* @__PURE__ */ nr(), u = /* @__PURE__ */ Xo(), c = /* @__PURE__ */ Qo(), v = /* @__PURE__ */ Zo(), p = /* @__PURE__ */ ri(), y = /* @__PURE__ */ ei(), h = /* @__PURE__ */ ti(), S = /* @__PURE__ */ ni(), R = /* @__PURE__ */ oi(), w = Function, q = function(j) {
try {
return w('"use strict"; return (' + j + ").constructor;")();
} catch {
}
}, O = /* @__PURE__ */ Or(), m = /* @__PURE__ */ zr(), T = function() {
throw new o();
}, X = O ? (function() {
try {
return arguments.callee, T;
} catch {
try {
return O(arguments, "callee").get;
} catch {
return T;
}
}
})() : T, H = Gt()(), F = Jt(), D = eo(), P = ro(), _ = Vt(), L = zt(), N = {}, U = typeof Uint8Array > "u" || !F ? r : F(Uint8Array), V = {
__proto__: null,
"%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
"%Array%": Array,
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer,
"%ArrayIteratorPrototype%": H && F ? F([][Symbol.iterator]()) : r,
"%AsyncFromSyncIteratorPrototype%": r,
"%AsyncFunction%": N,
"%AsyncGenerator%": N,
"%AsyncGeneratorFunction%": N,
"%AsyncIteratorPrototype%": N,
"%Atomics%": typeof Atomics > "u" ? r : Atomics,
"%BigInt%": typeof BigInt > "u" ? r : BigInt,
"%BigInt64Array%": typeof BigInt64Array > "u" ? r : BigInt64Array,
"%BigUint64Array%": typeof BigUint64Array > "u" ? r : BigUint64Array,
"%Boolean%": Boolean,
"%DataView%": typeof DataView > "u" ? r : DataView,
"%Date%": Date,
"%decodeURI%": decodeURI,
"%decodeURIComponent%": decodeURIComponent,
"%encodeURI%": encodeURI,
"%encodeURIComponent%": encodeURIComponent,
"%Error%": n,
"%eval%": eval,
// eslint-disable-line no-eval
"%EvalError%": a,
"%Float16Array%": typeof Float16Array > "u" ? r : Float16Array,
"%Float32Array%": typeof Float32Array > "u" ? r : Float32Array,
"%Float64Array%": typeof Float64Array > "u" ? r : Float64Array,
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? r : FinalizationRegistry,
"%Function%": w,
"%GeneratorFunction%": N,
"%Int8Array%": typeof Int8Array > "u" ? r : Int8Array,
"%Int16Array%": typeof Int16Array > "u" ? r : Int16Array,
"%Int32Array%": typeof Int32Array > "u" ? r : Int32Array,
"%isFinite%": isFinite,
"%isNaN%": isNaN,
"%IteratorPrototype%": H && F ? F(F([][Symbol.iterator]())) : r,
"%JSON%": typeof JSON == "object" ? JSON : r,
"%Map%": typeof Map > "u" ? r : Map,
"%MapIteratorPrototype%": typeof Map > "u" || !H || !F ? r : F((/* @__PURE__ */ new Map())[Symbol.iterator]()),
"%Math%": Math,
"%Number%": Number,
"%Object%": e,
"%Object.getOwnPropertyDescriptor%": O,
"%parseFloat%": parseFloat,
"%parseInt%": parseInt,
"%Promise%": typeof Promise > "u" ? r : Promise,
"%Proxy%": typeof Proxy > "u" ? r : Proxy,
"%RangeError%": t,
"%ReferenceError%": f,
"%Reflect%": typeof Reflect > "u" ? r : Reflect,
"%RegExp%": RegExp,
"%Set%": typeof Set > "u" ? r : Set,
"%SetIteratorPrototype%": typeof Set > "u" || !H || !F ? r : F((/* @__PURE__ */ new Set())[Symbol.iterator]()),
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer,
"%String%": String,
"%StringIteratorPrototype%": H && F ? F(""[Symbol.iterator]()) : r,
"%Symbol%": H ? Symbol : r,
"%SyntaxError%": i,
"%ThrowTypeError%": X,
"%TypedArray%": U,
"%TypeError%": o,
"%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
"%Uint16Array%": typeof Uint16Array > "u" ? r : Uint16Array,
"%Uint32Array%": typeof Uint32Array > "u" ? r : Uint32Array,
"%URIError%": u,
"%WeakMap%": typeof WeakMap > "u" ? r : WeakMap,
"%WeakRef%": typeof WeakRef > "u" ? r : WeakRef,
"%WeakSet%": typeof WeakSet > "u" ? r : WeakSet,
"%Function.prototype.call%": L,
"%Function.prototype.apply%": _,
"%Object.defineProperty%": m,
"%Object.getPrototypeOf%": D,
"%Math.abs%": c,
"%Math.floor%": v,
"%Math.max%": p,
"%Math.min%": y,
"%Math.pow%": h,
"%Math.round%": S,
"%Math.sign%": R,
"%Reflect.getPrototypeOf%": P
};
if (F)
try {
null.error;
} catch (j) {
var ur = F(F(j));
V["%Error.prototype%"] = ur;
}
var Pr = function j(A) {
var I;
if (A === "%AsyncFunction%")
I = q("async function () {}");
else if (A === "%GeneratorFunction%")
I = q("function* () {}");
else if (A === "%AsyncGeneratorFunction%")
I = q("async function* () {}");
else if (A === "%AsyncGenerator%") {
var b = j("%AsyncGeneratorFunction%");
b && (I = b.prototype);
} else if (A === "%AsyncIteratorPrototype%") {
var x = j("%AsyncGenerator%");
x && F && (I = F(x.prototype));
}
return V[A] = I, I;
}, mr = {
__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"]
}, ar = jr(), G = /* @__PURE__ */ Yt(), Sr = ar.call(L, Array.prototype.concat), Ir = ar.call(_, Array.prototype.splice), br = ar.call(L, String.prototype.replace), yr = ar.call(L, String.prototype.slice), g = ar.call(L, RegExp.prototype.exec), d = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, E = /\\(\\)?/g, $ = function(A) {
var I = yr(A, 0, 1), b = yr(A, -1);
if (I === "%" && b !== "%")
throw new i("invalid intrinsic syntax, expected closing `%`");
if (b === "%" && I !== "%")
throw new i("invalid intrinsic syntax, expected opening `%`");
var x = [];
return br(A, d, function(z, K, J, Y) {
x[x.length] = J ? br(Y, E, "$1") : K || z;
}), x;
}, M = function(A, I) {
var b = A, x;
if (G(mr, b) && (x = mr[b], b = "%" + x[0] + "%"), G(V, b)) {
var z = V[b];
if (z === N && (z = Pr(b)), typeof z > "u" && !I)
throw new o("intrinsic " + A + " exists, but is not available. Please file an issue!");
return {
alias: x,
name: b,
value: z
};
}
throw new i("intrinsic " + A + " does not exist!");
};
return He = function(A, I) {
if (typeof A != "string" || A.length === 0)
throw new o("intrinsic name must be a non-empty string");
if (arguments.length > 1 && typeof I != "boolean")
throw new o('"allowMissing" argument must be a boolean');
if (g(/^%?[^%]*%?$/, A) === null)
throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
var b = $(A), x = b.length > 0 ? b[0] : "", z = M("%" + x + "%", I), K = z.name, J = z.value, Y = !1, Z = z.alias;
Z && (x = Z[0], Ir(b, Sr([0, 1], Z)));
for (var fr = 1, or = !0; fr < b.length; fr += 1) {
var rr = b[fr], sr = yr(rr, 0, 1), lr = yr(rr, -1);
if ((sr === '"' || sr === "'" || sr === "`" || lr === '"' || lr === "'" || lr === "`") && sr !== lr)
throw new i("property names with quotes must have matching quotes");
if ((rr === "constructor" || !or) && (Y = !0), x += "." + rr, K = "%" + x + "%", G(V, K))
J = V[K];
else if (J != null) {
if (!(rr in J)) {
if (!I)
throw new o("base intrinsic for " + A + " exists, but the property is not available.");
return;
}
if (O && fr + 1 >= b.length) {
var cr = O(J, rr);
or = !!cr, or && "get" in cr && !("originalValue" in cr.get) ? J = cr.get : J = J[rr];
} else
or = G(J, rr), J = J[rr];
or && !Y && (V[K] = J);
}
}
return J;
}, He;
}
var Ge, Jn;
function si() {
if (Jn) return Ge;
Jn = 1;
var r = /* @__PURE__ */ pr(), e = /* @__PURE__ */ Lt(), n = /* @__PURE__ */ Ut()(), a = /* @__PURE__ */ Or(), t = /* @__PURE__ */ nr(), f = r("%Math.floor%");
return Ge = function(o, u) {
if (typeof o != "function")
throw new t("`fn` is not a function");
if (typeof u != "number" || u < 0 || u > 4294967295 || f(u) !== u)
throw new t("`length` must be a positive 32-bit integer");
var c = arguments.length > 2 && !!arguments[2], v = !0, p = !0;
if ("length" in o && a) {
var y = a(o, "length");
y && !y.configurable && (v = !1), y && !y.writable && (p = !1);
}
return (v || p || !c) && (n ? e(
/** @type {Parameters<define>[0]} */
o,
"length",
u,
!0,
!0
) : e(
/** @type {Parameters<define>[0]} */
o,
"length",
u
)), o;
}, Ge;
}
var ze, Yn;
function li() {
if (Yn) return ze;
Yn = 1;
var r = jr(), e = Vt(), n = to();
return ze = function() {
return n(r, e, arguments);
}, ze;
}
var Xn;
function xr() {
return Xn || (Xn = 1, (function(r) {
var e = /* @__PURE__ */ si(), n = /* @__PURE__ */ zr(), a = Kt(), t = li();
r.exports = function(i) {
var o = a(arguments), u = i.length - (arguments.length - 1);
return e(
o,
1 + (u > 0 ? u : 0),
!0
);
}, n ? n(r.exports, "apply", { value: t }) : r.exports.apply = t;
})(ge)), ge.exports;
}
var Ve, Qn;
function Q() {
if (Qn) return Ve;
Qn = 1;
var r = /* @__PURE__ */ pr(), e = Kt(), n = e([r("%String.prototype.indexOf%")]);
return Ve = function(t, f) {
var i = (
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
r(t, !!f)
);
return typeof i == "function" && n(t, ".prototype.") > -1 ? e(
/** @type {const} */
[i]
) : i;
}, Ve;
}
var Ke, Zn;
function no() {
if (Zn) return Ke;
Zn = 1;
var r = Wt(), e = Vr()(), n = /* @__PURE__ */ Q(), a = /* @__PURE__ */ Ht(), t = n("Array.prototype.push"), f = n("Object.prototype.propertyIsEnumerable"), i = e ? a.getOwnPropertySymbols : null;
return Ke = function(u, c) {
if (u == null)
throw new TypeError("target must be an object");
var v = a(u);
if (arguments.length === 1)
return v;
for (var p = 1; p < arguments.length; ++p) {
var y = a(arguments[p]), h = r(y), S = e && (a.getOwnPropertySymbols || i);
if (S)
for (var R = S(y), w = 0; w < R.length; ++w) {
var q = R[w];
f(y, q) && t(h, q);
}
for (var O = 0; O < h.length; ++O) {
var m = h[O];
if (f(y, m)) {
var T = y[m];
v[m] = T;
}
}
}
return v;
}, Ke;
}
var Je, ra;
function ao() {
if (ra) return Je;
ra = 1;
var r = no(), e = function() {
if (!Object.assign)
return !1;
for (var a = "abcdefghijklmnopqrst", t = a.split(""), f = {}, i = 0; i < t.length; ++i)
f[t[i]] = t[i];
var o = Object.assign({}, f), u = "";
for (var c in o)
u += c;
return a !== u;
}, n = function() {
if (!Object.assign || !Object.preventExtensions)
return !1;
var a = Object.preventExtensions({ 1: 2 });
try {
Object.assign(a, "xy");
} catch {
return a[1] === "y";
}
return !1;
};
return Je = function() {
return !Object.assign || e() || n() ? r : Object.assign;
}, Je;
}
var Ye, ea;
function ci() {
if (ea) return Ye;
ea = 1;
var r = wr(), e = ao();
return Ye = function() {
var a = e();
return r(
Object,
{ assign: a },
{ assign: function() {
return Object.assign !== a;
} }
), a;
}, Ye;
}
var Xe, ta;
function pi() {
if (ta) return Xe;
ta = 1;
var r = wr(), e = xr(), n = no(), a = ao(), t = ci(), f = e.apply(a()), i = function(u, c) {
return f(Object, arguments);
};
return r(i, {
getPolyfill: a,
implementation: n,
shim: t
}), Xe = i, Xe;
}
var Qe, na;
function oo() {
if (na) return Qe;
na = 1;
var r = /* @__PURE__ */ pr(), e = xr(), n = e(r("String.prototype.indexOf"));
return Qe = function(t, f) {
var i = r(t, !!f);
return typeof i == "function" && n(t, ".prototype.") > -1 ? e(i) : i;
}, Qe;
}
var Ze, aa;
function yi() {
if (aa) return Ze;
aa = 1;
var r = function() {
return typeof (function() {
}).name == "string";
}, e = Object.getOwnPropertyDescriptor;
if (e)
try {
e([], "length");
} catch {
e = null;
}
r.functionsHaveConfigurableNames = function() {
if (!r() || !e)
return !1;
var t = e(function() {
}, "name");
return !!t && !!t.configurable;
};
var n = Function.prototype.bind;
return r.boundFunctionsHaveNames = function() {
return r() && typeof n == "function" && (function() {
}).bind().name !== "";
}, Ze = r, Ze;
}
var rt, oa;
function vi() {
if (oa) return rt;
oa = 1;
var r = /* @__PURE__ */ Lt(), e = /* @__PURE__ */ Ut()(), n = yi().functionsHaveConfigurableNames(), a = /* @__PURE__ */ nr();
return rt = function(f, i) {
if (typeof f != "function")
throw new a("`fn` is not a function");
var o = arguments.length > 2 && !!arguments[2];
return (!o || n) && (e ? r(
/** @type {Parameters<define>[0]} */
f,
"name",
i,
!0,
!0
) : r(
/** @type {Parameters<define>[0]} */
f,
"name",
i
)), f;
}, rt;
}
var et, ia;
function io() {
if (ia) return et;
ia = 1;
var r = vi(), e = /* @__PURE__ */ nr(), n = Object;
return et = r(function() {
if (this == null || this !== n(this))
throw new e("RegExp.prototype.flags getter called on non-object");
var t = "";
return this.hasIndices && (t += "d"), this.global && (t += "g"), this.ignoreCase && (t += "i"), this.multiline && (t += "m"), this.dotAll && (t += "s"), this.unicode && (t += "u"), this.unicodeSets && (t += "v"), this.sticky && (t += "y"), t;
}, "get flags", !0), et;
}
var tt, ua;
function uo() {
if (ua) return tt;
ua = 1;
var r = io(), e = wr().supportsDescriptors, n = Object.getOwnPropertyDescriptor;
return tt = function() {
if (e && /a/mig.flags === "gim") {
var t = n(RegExp.prototype, "flags");
if (t && typeof t.get == "function" && "dotAll" in RegExp.prototype && "hasIndices" in RegExp.prototype) {
var f = "", i = {};
if (Object.defineProperty(i, "hasIndices", {
get: function() {
f += "d";
}
}), Object.defineProperty(i, "sticky", {
get: function() {
f += "y";
}
}), t.get.call(i), f === "dy")
return t.get;
}
}
return r;
}, tt;
}
var nt, fa;
function gi() {
if (fa) return nt;
fa = 1;
var r = wr().supportsDescriptors, e = uo(), n = /* @__PURE__ */ Or(), a = Object.defineProperty, t = /* @__PURE__ */ Za(), f = Jt(), i = /a/;
return nt = function() {
if (!r || !f)
throw new t("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
var u = e(), c = f(i), v = n(c, "flags");
return (!v || v.get !== u) && a(c, "flags", {
configurable: !0,
enumerable: !1,
get: u
}), u;
}, nt;
}
var at, sa;
function hi() {
if (sa) return at;
sa = 1;
var r = wr(), e = xr(), n = io(), a = uo(), t = gi(), f = e(a());
return r(f, {
getPolyfill: a,
implementation: n,
shim: t
}), at = f, at;
}
var Mr = { exports: {} }, ot, la;
function qr() {
if (la) return ot;
la = 1;
var r = Vr();
return ot = function() {
return r() && !!Symbol.toStringTag;
}, ot;
}
var it, ca;
function fo() {
if (ca) return it;
ca = 1;
var r = qr()(), e = /* @__PURE__ */ Q(), n = e("Object.prototype.toString"), a = function(o) {
return r && o && typeof o == "object" && Symbol.toStringTag in o ? !1 : n(o) === "[object Arguments]";
}, t = function(o) {
return a(o) ? !0 : o !== null && typeof o == "object" && "length" in o && typeof o.length == "number" && o.length >= 0 && n(o) !== "[object Array]" && "callee" in o && n(o.callee) === "[object Function]";
}, f = (function() {
return a(arguments);
})();
return a.isLegacyArguments = t, it = f ? a : t, it;
}
const di = {}, mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: di
}, Symbol.toStringTag, { value: "Module" })), Si = /* @__PURE__ */ Go(mi);
var ut, pa;
function Kr() {
if (pa) return ut;
pa = 1;
var r = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, n = r && e && typeof e.get == "function" ? e.get : null, a = r && Map.prototype.forEach, t = typeof Set == "function" && Set.prototype, f = Object.getOwnPropertyDescriptor && t ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, i = t && f && typeof f.get == "function" ? f.get : null, o = t && Set.prototype.forEach, u = typeof WeakMap == "function" && WeakMap.prototype, c = u ? WeakMap.prototype.has : null, v = typeof WeakSet == "function" && WeakSet.prototype, p = v ? WeakSet.prototype.has : null, y = typeof WeakRef == "function" && WeakRef.prototype, h = y ? WeakRef.prototype.deref : null, S = Boolean.prototype.valueOf, R = Object.prototype.toString, w = Function.prototype.toString, q = String.prototype.match, O = String.prototype.slice, m = String.prototype.replace, T = String.prototype.toUpperCase, X = String.prototype.toLowerCase, H = RegExp.prototype.test, F = Array.prototype.concat, D = Array.prototype.join, P = Array.prototype.slice, _ = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, N = Object.getOwnPropertySymbols, U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, V = typeof Symbol == "function" && typeof Symbol.iterator == "object", ur = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === V || !0) ? Symbol.toStringTag : null, Pr = Object.prototype.propertyIsEnumerable, mr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(s) {
return s.__proto__;
} : null);
function ar(s, l) {
if (s === 1 / 0 || s === -1 / 0 || s !== s || s && s > -1e3 && s < 1e3 || H.call(/e/, l))
return l;
var C = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
if (typeof s == "number") {
var W = s < 0 ? -_(-s) : _(s);
if (W !== s) {
var k = String(W), B = O.call(l, k.length + 1);
return m.call(k, C, "$&_") + "." + m.call(m.call(B, /([0-9]{3})/g, "$&_"), /_$/, "");
}
}
return m.call(l, C, "$&_");
}
var G = Si, Sr = G.custom, Ir = z(Sr) ? Sr : null, br = {
__proto__: null,
double: '"',
single: "'"
}, yr = {
__proto__: null,
double: /(["\\])/g,
single: /(['\\])/g
};
ut = function s(l, C, W, k) {
var B = C || {};
if (Y(B, "quoteStyle") && !Y(br, B.quoteStyle))
throw new TypeError('option "quoteStyle" must be "single" or "double"');
if (Y(B, "maxStringLength") && (typeof B.maxStringLength == "number" ? B.maxStringLength < 0 && B.maxStringLength !== 1 / 0 : B.maxStringLength !== null))
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
var hr = Y(B, "customInspect") ? B.customInspect : !0;
if (typeof hr != "boolean" && hr !== "symbol")
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
if (Y(B, "indent") && B.indent !== null && B.indent !== " " && !(parseInt(B.indent, 10) === B.indent && B.indent > 0))
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
if (Y(B, "numericSeparator") && typeof B.numericSeparator != "boolean")
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
var Ar = B.numericSeparator;
if (typeof l > "u")
return "undefined";
if (l === null)
return "null";
if (typeof l == "boolean")
return l ? "true" : "false";
if (typeof l == "string")
return Rr(l, B);
if (typeof l == "number") {
if (l === 0)
return 1 / 0 / l > 0 ? "0" : "-0";
var tr = String(l);
return Ar ? ar(l, tr) : tr;
}
if (typeof l == "bigint") {
var dr = String(l) + "n";
return Ar ? ar(l, dr) : dr;
}
var Xr = typeof B.depth > "u" ? 5 : B.depth;
if (typeof W > "u" && (W = 0), W >= Xr && Xr > 0 && typeof l == "object")
return $(l) ? "[Array]" : "[Object]";
var $r = Oo(B, W);
if (typeof k > "u")
k = [];
else if (or(k, l) >= 0)
return "[Circular]";
function ir(Er, _r, qo) {
if (_r && (k = P.call(k), k.push(_r)), qo) {
var on = {
depth: B.depth
};
return Y(B, "quoteStyle") && (on.quoteStyle = B.quoteStyle), s(Er, on, W + 1, k);
}
return s(Er, B, W + 1, k);
}
if (typeof l == "function" && !j(l)) {
var Qt = fr(l), Zt = Dr(l, ir);
return "[Function" + (Qt ? ": " + Qt : " (anonymous)") + "]" + (Zt.length > 0 ? " { " + D.call(Zt, ", ") + " }" : "");
}
if (z(l)) {
var rn = V ? m.call(String(l), /^(Symbol\(.*\))_[^)]*$/, "$1") : U.call(l);
return typeof l == "object" && !V ? gr(rn) : rn;
}
if (vr(l)) {
for (var Tr = "<" + X.call(String(l.nodeName)), Qr = l.attributes || [], Fr = 0; Fr < Qr.length; Fr++)
Tr += " " + Qr[Fr].name + "=" + g(d(Qr[Fr].value), "double", B);
return Tr += ">", l.childNodes && l.childNodes.length && (Tr += "..."), Tr += "</" + X.call(String(l.nodeName)) + ">", Tr;
}
if ($(l)) {
if (l.length === 0)
return "[]";
var Zr = Dr(l, ir);
return $r && !Ao(Zr) ? "[" + Yr(Zr, $r) + "]" : "[ " + D.call(Zr, ", ") + " ]";
}
if (A(l)) {
var re = Dr(l, ir);
return !("cause" in Error.prototype) && "cause" in l && !Pr.call(l, "cause") ? "{ [" + String(l) + "] " + D.call(F.call("[cause]: " + ir(l.cause), re), ", ") + " }" : re.length === 0 ? "[" + String(l) + "]" : "{ [" + String(l) + "] " + D.call(re, ", ") + " }";
}
if (typeof l == "object" && hr) {
if (Ir && typeof l[Ir] == "function" && G)
return G(l, { depth: Xr - W });
if (hr !== "symbol" && typeof l.inspect == "function")
return l.inspect();
}
if (rr(l)) {
var en = [];
return a && a.call(l, function(Er, _r) {
en.push(ir(_r, l, !0) + " => " + ir(Er, l));
}), Xt("Map", n.call(l), en, $r);
}
if (cr(l)) {
var tn = [];
return o && o.call(l, function(Er) {
tn.push(ir(Er, l));
}), Xt("Set", i.call(l), tn, $r);
}
if (sr(l))
return Jr("WeakMap");
if (Cr(l))
return Jr("WeakSet");
if (lr(l))
return Jr("WeakRef");
if (b(l))
return gr(ir(Number(l)));
if (K(l))
return gr(ir(L.call(l)));
if (x(l))
return gr(S.call(l));
if (I(l))
return gr(ir(String(l)));
if (typeof window < "u" && l === window)
return "{ [object Window] }";
if (typeof globalThis < "u" && l === globalThis || typeof Gr < "u" && l === Gr)
return "{ [object globalThis] }";
if (!M(l) && !j(l)) {
var ee = Dr(l, ir), nn = mr ? mr(l) === Object.prototype : l instanceof Object || l.constructor === Object, te = l instanceof Object ? "" : "null prototype", an = !nn && ur && Object(l) === l && ur in l ? O.call(Z(l), 8, -1) : te ? "Object" : "", wo = nn || typeof l.constructor != "function" ? "" : l.constructor.name ? l.constructor.name + " " : "", ne = wo + (an || te ? "[" + D.call(F.call([], an || [], te || []), ": ") + "] " : "");
return ee.length === 0 ? ne + "{}" : $r ? ne + "{" + Yr(ee, $r) + "}" : ne + "{ " + D.call(ee, ", ") + " }";
}
return String(l);
};
function g(s, l, C) {
var W = C.quoteStyle || l, k = br[W];
return k + s + k;
}
function d(s) {
return m.call(String(s), /"/g, """);
}
function E(s) {
return !ur || !(typeof s == "object" && (ur in s || typeof s[ur] < "u"));
}
function $(s) {
return Z(s) === "[object Array]" && E(s);
}
function M(s) {
return Z(s) === "[object Date]" && E(s);
}
function j(s) {
return Z(s) === "[object RegExp]" && E(s);
}
function A(s) {
return Z(s) === "[object Error]" && E(s);
}
function I(s) {
return Z(s) === "[object String]" && E(s);
}
function b(s) {
return Z(s) === "[object Number]" && E(s);
}
function x(s) {
return Z(s) === "[object Boolean]" && E(s);
}
function z(s) {
if (V)
return s && typeof s == "object" && s instanceof Symbol;
if (typeof s == "symbol")
return !0;
if (!s || typeof s != "object" || !U)
return !1;
try {
return U.call(s), !0;
} catch {
}
return !1;
}
function K(s) {
if (!s || typeof s != "object" || !L)
return !1;
try {
return L.call(s), !0;
} catch {
}
return !1;
}
var J = Object.prototype.hasOwnProperty || function(s) {
return s in this;
};
function Y(s, l) {
return J.call(s, l);
}
function Z(s) {
return R.call(s);
}
function fr(s) {
if (s.name)
return s.name;
var l = q.call(w.call(s), /^function\s*([\w$]+)/);
return l ? l[1] : null;
}
function or(s, l) {
if (s.indexOf)
return s.indexOf(l);
for (var C = 0, W = s.length; C < W; C++)
if (s[C] === l)
return C;
return -1;
}
function rr(s) {
if (!n || !s || typeof s != "object")
return !1;
try {
n.call(s);
try {
i.call(s);
} catch {
return !0;
}
return s instanceof Map;
} catch {
}
return !1;
}
function sr(s) {
if (!c || !s || typeof s != "object")
return !1;
try {
c.call(s, c);
try {
p.call(s, p);
} catch {
return !0;
}
return s instanceof WeakMap;
} catch {
}
return !1;
}
function lr(s) {
if (!h || !s || typeof s != "object")
return !1;
try {
return h.call(s), !0;
} catch {
}
return !1;
}
function cr(s) {
if (!i || !s || typeof s != "object")
return !1;
try {
i.call(s);
try {
n.call(s);
} catch {
return !0;
}
return s instanceof Set;
} catch {
}
return !1;
}
function Cr(s) {
if (!p || !s || typeof s != "object")
return !1;
try {
p.call(s, p);
try {
c.call(s, c);
} catch {
return !0;
}
return s instanceof WeakSet;
} catch {
}
return !1;
}
function vr(s) {
return !s || typeof s != "object" ? !1 : typeof HTMLElement < "u" && s instanceof HTMLElement ? !0 : typeof s.nodeName == "string" && typeof s.getAttribute == "function";
}
function Rr(s, l) {
if (s.length > l.maxStringLength) {
var C = s.length - l.maxStringLength, W = "... " + C + " more character" + (C > 1 ? "s" : "");
return Rr(O.call(s, 0, l.maxStringLength), l) + W;
}
var k = yr[l.quoteStyle || "single"];
k.lastIndex = 0;
var B = m.call(m.call(s, k, "\\$1"), /[\x00-\x1f]/g, Br);
return g(B, "single", l);
}
function Br(s) {
var l = s.charCodeAt(0), C = {
8: "b",
9: "t",
10: "n",
12: "f",
13: "r"
}[l];
return C ? "\\" + C : "\\x" + (l < 16 ? "0" : "") + T.call(l.toString(16));
}
function gr(s) {
return "Object(" + s + ")";
}
function Jr(s) {
return s + " { ? }";
}
function Xt(s, l, C, W) {
var k = W ? Yr(C, W) : D.call(C, ", ");
return s + " (" + l + ") {" + k + "}";
}
function Ao(s) {
for (var l = 0; l < s.length; l++)
if (or(s[l], `
`) >= 0)
return !1;
return !0;
}
function Oo(s, l) {
var C;
if (s.indent === " ")
C = " ";
else if (typeof s.indent == "number" && s.indent > 0)
C = D.call(Array(s.indent + 1), " ");
else
return null;
return {
base: C,
prev: D.call(Array(l + 1), C)
};
}
function Yr(s, l) {
if (s.length === 0)
return "";
var C = `
` + l.prev + l.base;
return C + D.call(s, "," + C) + `
` + l.prev;
}
function Dr(s, l) {
var C = $(s), W = [];
if (C) {
W.length = s.length;
for (var k = 0; k < s.length; k++)
W[k] = Y(s, k) ? l(s[k], s) : "";
}
var B = typeof N == "function" ? N(s) : [], hr;
if (V) {
hr = {};
for (var Ar = 0; Ar < B.length; Ar++)
hr["$" + B[Ar]] = B[Ar];
}
for (var tr in s)
Y(s, tr) && (C && String(Number(tr)) === tr && tr < s.length || V && hr["$" + tr] instanceof Symbol || (H.call(/[^\w$]/, tr) ? W.push(l(tr, s) + ": " + l(s[tr], s)) : W.push(tr + ": " + l(s[tr], s))));
if (typeof N == "function")
for (var dr = 0; dr < B.length; dr++)
Pr.call(s, B[dr]) && W.push("[" + l(B[dr]) + "]: " + l(s[B[dr]], s));
return W;
}
return ut;
}
var ft, ya;
function bi() {
if (ya) return ft;
ya = 1;
var r = /* @__PURE__ */ Kr(), e = /* @__PURE__ */ nr(), n = function(o, u, c) {
for (var v = o, p; (p = v.next) != null; v = p)
if (p.key === u)
return v.next = p.next, c || (p.next = /** @type {NonNullable<typeof list.next>} */
o.next, o.next = p), p;
}, a = function(o, u) {
if (o) {
var c = n(o, u);
return c && c.value;
}
}, t = function(o, u, c) {
var v = n(o, u);
v ? v.value = c : o.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
{
// eslint-disable-line no-param-reassign, no-extra-parens
key: u,
next: o.next,
value: c
};
}, f = function(o, u) {
return o ? !!n(o, u) : !1;
}, i = function(o, u) {
if (o)
return n(o, u, !0);
};
return ft = function() {
var u, c = {
assert: function(v) {
if (!c.has(v))
throw new e("Side channel does not contain " + r(v));
},
delete: function(v) {
var p = u && u.next, y = i(u, v);
return y && p && p === y && (u = void 0), !!y;
},
get: function(v) {
return a(u, v);
},
has: function(v) {
return f(u, v);
},
set: function(v, p) {
u || (u = {
next: void 0
}), t(
/** @type {NonNullable<typeof $o>} */
u,
v,
p
);
}
};
return c;
}, ft;
}
var st, va;
function so() {
if (va) return st;
va = 1;
var r = /* @__PURE__ */ pr(), e = /* @__PURE__ */ Q(), n = /* @__PURE__ */ Kr(), a = /* @__PURE__ */ nr(), t = r("%Map%", !0), f = e("Map.prototype.get", !0), i = e("Map.prototype.set", !0), o = e("Map.prototype.has", !0), u = e("Map.prototype.delete", !0), c = e("Map.prototype.size", !0);
return st = !!t && /** @type {Exclude<import('.'), false>} */
function() {
var p, y = {
assert: function(h) {
if (!y.has(h))
throw new a("Side channel does not contain " + n(h));
},
delete: function(h) {
if (p) {
var S = u(p, h);
return c(p) === 0 && (p = void 0), S;
}
return !1;
},
get: function(h) {
if (p)
return f(p, h);
},
has: function(h) {
return p ? o(p, h) : !1;
},
set: function(h, S) {
p || (p = new t()), i(p, h, S);
}
};
return y;
}, st;
}
var lt, ga;
function Ai() {
if (ga) return lt;
ga = 1;
var r = /* @__PURE__ */ pr(), e = /* @__PURE__ */ Q(), n = /* @__PURE__ */ Kr(), a = so(), t = /* @__PURE__ */ nr(), f = r("%WeakMap%", !0), i = e("WeakMap.prototype.get", !0), o = e("WeakMap.prototype.set", !0), u = e("WeakMap.prototype.has", !0), c = e("WeakMap.prototype.delete", !0);
return lt = f ? (
/** @type {Exclude<import('.'), false>} */
function() {
var p, y, h = {
assert: function(S) {
if (!h.has(S))
throw new t("Side channel does not contain " + n(S));
},
delete: function(S) {
if (f && S && (typeof S == "object" || typeof S == "function")) {
if (p)
return c(p, S);
} else if (a && y)
return y.delete(S);
return !1;
},
get: function(S) {
return f &&