desmy-react
Version:
Introducing an easy-to-use, lightning-fast React.js component that streamlines your development process. Our solution prioritizes simplicity, speed, and optimization, making it a breeze to build projects in React.
1,286 lines • 4.16 MB
JavaScript
import * as React2 from "react";
import React2__default, { Component, createRef, createContext, isValidElement, Suspense, lazy, useRef, useLayoutEffect, useEffect, useState, useCallback, useMemo, forwardRef } from "react";
import ReactDOM, { createPortal } from "react-dom";
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function getDefaultExportFromCjs(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function getAugmentedNamespace(e) {
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
var A = e.default;
if (typeof A == "function") {
var l = function o() {
return this instanceof o ? Reflect.construct(A, arguments, this.constructor) : A.apply(this, arguments);
};
l.prototype = A.prototype;
} else l = {};
return Object.defineProperty(l, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
var t = Object.getOwnPropertyDescriptor(e, o);
Object.defineProperty(l, o, t.get ? t : {
enumerable: !0,
get: function() {
return e[o];
}
});
}), l;
}
var jsxRuntime = { exports: {} }, reactJsxRuntime_production = {};
/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var hasRequiredReactJsxRuntime_production;
function requireReactJsxRuntime_production() {
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
hasRequiredReactJsxRuntime_production = 1;
var e = Symbol.for("react.transitional.element"), A = Symbol.for("react.fragment");
function l(o, t, a) {
var n = null;
if (a !== void 0 && (n = "" + a), t.key !== void 0 && (n = "" + t.key), "key" in t) {
a = {};
for (var G in t)
G !== "key" && (a[G] = t[G]);
} else a = t;
return t = a.ref, {
$$typeof: e,
type: o,
key: n,
ref: t !== void 0 ? t : null,
props: a
};
}
return reactJsxRuntime_production.Fragment = A, reactJsxRuntime_production.jsx = l, reactJsxRuntime_production.jsxs = l, reactJsxRuntime_production;
}
var reactJsxRuntime_development = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var hasRequiredReactJsxRuntime_development;
function requireReactJsxRuntime_development() {
return hasRequiredReactJsxRuntime_development || (hasRequiredReactJsxRuntime_development = 1, process.env.NODE_ENV !== "production" && function() {
function e(WI) {
if (WI == null) return null;
if (typeof WI == "function")
return WI.$$typeof === wI ? null : WI.displayName || WI.name || null;
if (typeof WI == "string") return WI;
switch (WI) {
case II:
return "Fragment";
case cI:
return "Profiler";
case lI:
return "StrictMode";
case M:
return "Suspense";
case O:
return "SuspenseList";
case tI:
return "Activity";
}
if (typeof WI == "object")
switch (typeof WI.tag == "number" && console.error(
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
), WI.$$typeof) {
case sI:
return "Portal";
case _:
return (WI.displayName || "Context") + ".Provider";
case E:
return (WI._context.displayName || "Context") + ".Consumer";
case AI:
var pI = WI.render;
return WI = WI.displayName, WI || (WI = pI.displayName || pI.name || "", WI = WI !== "" ? "ForwardRef(" + WI + ")" : "ForwardRef"), WI;
case eI:
return pI = WI.displayName || null, pI !== null ? pI : e(WI.type) || "Memo";
case dI:
pI = WI._payload, WI = WI._init;
try {
return e(WI(pI));
} catch {
}
}
return null;
}
function A(WI) {
return "" + WI;
}
function l(WI) {
try {
A(WI);
var pI = !1;
} catch {
pI = !0;
}
if (pI) {
pI = console;
var xI = pI.error, _I = typeof Symbol == "function" && Symbol.toStringTag && WI[Symbol.toStringTag] || WI.constructor.name || "Object";
return xI.call(
pI,
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
_I
), A(WI);
}
}
function o(WI) {
if (WI === II) return "<>";
if (typeof WI == "object" && WI !== null && WI.$$typeof === dI)
return "<...>";
try {
var pI = e(WI);
return pI ? "<" + pI + ">" : "<...>";
} catch {
return "<...>";
}
}
function t() {
var WI = GI.A;
return WI === null ? null : WI.getOwner();
}
function a() {
return Error("react-stack-top-frame");
}
function n(WI) {
if (DI.call(WI, "key")) {
var pI = Object.getOwnPropertyDescriptor(WI, "key").get;
if (pI && pI.isReactWarning) return !1;
}
return WI.key !== void 0;
}
function G(WI, pI) {
function xI() {
HI || (HI = !0, console.error(
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
pI
));
}
xI.isReactWarning = !0, Object.defineProperty(WI, "key", {
get: xI,
configurable: !0
});
}
function r() {
var WI = e(this.type);
return NI[WI] || (NI[WI] = !0, console.error(
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
)), WI = this.props.ref, WI !== void 0 ? WI : null;
}
function R(WI, pI, xI, _I, RI, aI, mI, VI) {
return xI = aI.ref, WI = {
$$typeof: CI,
type: WI,
key: pI,
props: aI,
_owner: RI
}, (xI !== void 0 ? xI : null) !== null ? Object.defineProperty(WI, "ref", {
enumerable: !1,
get: r
}) : Object.defineProperty(WI, "ref", { enumerable: !1, value: null }), WI._store = {}, Object.defineProperty(WI._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: 0
}), Object.defineProperty(WI, "_debugInfo", {
configurable: !1,
enumerable: !1,
writable: !0,
value: null
}), Object.defineProperty(WI, "_debugStack", {
configurable: !1,
enumerable: !1,
writable: !0,
value: mI
}), Object.defineProperty(WI, "_debugTask", {
configurable: !1,
enumerable: !1,
writable: !0,
value: VI
}), Object.freeze && (Object.freeze(WI.props), Object.freeze(WI)), WI;
}
function H(WI, pI, xI, _I, RI, aI, mI, VI) {
var BI = pI.children;
if (BI !== void 0)
if (_I)
if (KI(BI)) {
for (_I = 0; _I < BI.length; _I++)
gI(BI[_I]);
Object.freeze && Object.freeze(BI);
} else
console.error(
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
);
else gI(BI);
if (DI.call(pI, "key")) {
BI = e(WI);
var iI = Object.keys(pI).filter(function(bI) {
return bI !== "key";
});
_I = 0 < iI.length ? "{key: someKey, " + iI.join(": ..., ") + ": ...}" : "{key: someKey}", hI[BI + _I] || (iI = 0 < iI.length ? "{" + iI.join(": ..., ") + ": ...}" : "{}", console.error(
`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,
_I,
BI,
iI,
BI
), hI[BI + _I] = !0);
}
if (BI = null, xI !== void 0 && (l(xI), BI = "" + xI), n(pI) && (l(pI.key), BI = "" + pI.key), "key" in pI) {
xI = {};
for (var oI in pI)
oI !== "key" && (xI[oI] = pI[oI]);
} else xI = pI;
return BI && G(
xI,
typeof WI == "function" ? WI.displayName || WI.name || "Unknown" : WI
), R(
WI,
BI,
aI,
RI,
t(),
xI,
mI,
VI
);
}
function gI(WI) {
typeof WI == "object" && WI !== null && WI.$$typeof === CI && WI._store && (WI._store.validated = 1);
}
var k = React2__default, CI = Symbol.for("react.transitional.element"), sI = Symbol.for("react.portal"), II = Symbol.for("react.fragment"), lI = Symbol.for("react.strict_mode"), cI = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), AI = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), eI = Symbol.for("react.memo"), dI = Symbol.for("react.lazy"), tI = Symbol.for("react.activity"), wI = Symbol.for("react.client.reference"), GI = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, DI = Object.prototype.hasOwnProperty, KI = Array.isArray, MI = console.createTask ? console.createTask : function() {
return null;
};
k = {
"react-stack-bottom-frame": function(WI) {
return WI();
}
};
var HI, NI = {}, yI = k["react-stack-bottom-frame"].bind(
k,
a
)(), uI = MI(o(a)), hI = {};
reactJsxRuntime_development.Fragment = II, reactJsxRuntime_development.jsx = function(WI, pI, xI, _I, RI) {
var aI = 1e4 > GI.recentlyCreatedOwnerStacks++;
return H(
WI,
pI,
xI,
!1,
_I,
RI,
aI ? Error("react-stack-top-frame") : yI,
aI ? MI(o(WI)) : uI
);
}, reactJsxRuntime_development.jsxs = function(WI, pI, xI, _I, RI) {
var aI = 1e4 > GI.recentlyCreatedOwnerStacks++;
return H(
WI,
pI,
xI,
!0,
_I,
RI,
aI ? Error("react-stack-top-frame") : yI,
aI ? MI(o(WI)) : uI
);
};
}()), reactJsxRuntime_development;
}
var hasRequiredJsxRuntime;
function requireJsxRuntime() {
return hasRequiredJsxRuntime || (hasRequiredJsxRuntime = 1, process.env.NODE_ENV === "production" ? jsxRuntime.exports = requireReactJsxRuntime_production() : jsxRuntime.exports = requireReactJsxRuntime_development()), jsxRuntime.exports;
}
var jsxRuntimeExports = requireJsxRuntime();
function commonjsRequire(e) {
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
}
var pdf = { exports: {} }, dommatrix$1 = { exports: {} };
/*!
* DOMMatrix v1.0.3 (https://thednp.github.io/dommatrix/)
* Copyright 2022 © thednp
* Licensed under MIT (https://github.com/thednp/DOMMatrix/blob/master/LICENSE)
*/
var dommatrix = dommatrix$1.exports, hasRequiredDommatrix;
function requireDommatrix() {
return hasRequiredDommatrix || (hasRequiredDommatrix = 1, function(e, A) {
(function(l, o) {
e.exports = o();
})(dommatrix, function() {
function l(E) {
var _ = new sI(), AI = Array.from(E);
if (!AI.every(function(VI) {
return !Number.isNaN(VI);
}))
throw TypeError('CSSMatrix: "' + E + '" must only have numbers.');
if (AI.length === 16) {
var M = AI[0], O = AI[1], eI = AI[2], dI = AI[3], tI = AI[4], wI = AI[5], GI = AI[6], DI = AI[7], KI = AI[8], MI = AI[9], HI = AI[10], NI = AI[11], yI = AI[12], uI = AI[13], hI = AI[14], WI = AI[15];
_.m11 = M, _.a = M, _.m21 = tI, _.c = tI, _.m31 = KI, _.m41 = yI, _.e = yI, _.m12 = O, _.b = O, _.m22 = wI, _.d = wI, _.m32 = MI, _.m42 = uI, _.f = uI, _.m13 = eI, _.m23 = GI, _.m33 = HI, _.m43 = hI, _.m14 = dI, _.m24 = DI, _.m34 = NI, _.m44 = WI;
} else if (AI.length === 6) {
var pI = AI[0], xI = AI[1], _I = AI[2], RI = AI[3], aI = AI[4], mI = AI[5];
_.m11 = pI, _.a = pI, _.m12 = xI, _.b = xI, _.m21 = _I, _.c = _I, _.m22 = RI, _.d = RI, _.m41 = aI, _.e = aI, _.m42 = mI, _.f = mI;
} else
throw new TypeError("CSSMatrix: expecting an Array of 6/16 values.");
return _;
}
function o(E) {
var _ = Object.keys(new sI());
if (typeof E == "object" && _.every(function(AI) {
return AI in E;
}))
return l(
[
E.m11,
E.m12,
E.m13,
E.m14,
E.m21,
E.m22,
E.m23,
E.m24,
E.m31,
E.m32,
E.m33,
E.m34,
E.m41,
E.m42,
E.m43,
E.m44
]
);
throw TypeError('CSSMatrix: "' + JSON.stringify(E) + '" is not a DOMMatrix / CSSMatrix / JSON compatible object.');
}
function t(E) {
if (typeof E != "string")
throw TypeError('CSSMatrix: "' + E + '" is not a string.');
var _ = String(E).replace(/\s/g, ""), AI = new sI(), M = 'CSSMatrix: invalid transform string "' + E + '"';
return _.split(")").filter(function(O) {
return O;
}).forEach(function(O) {
var eI = O.split("("), dI = eI[0], tI = eI[1];
if (!tI)
throw TypeError(M);
var wI = tI.split(",").map(function(aI) {
return aI.includes("rad") ? parseFloat(aI) * (180 / Math.PI) : parseFloat(aI);
}), GI = wI[0], DI = wI[1], KI = wI[2], MI = wI[3], HI = [GI, DI, KI], NI = [GI, DI, KI, MI];
if (dI === "perspective" && GI && [DI, KI].every(function(aI) {
return aI === void 0;
}))
AI.m34 = -1 / GI;
else if (dI.includes("matrix") && [6, 16].includes(wI.length) && wI.every(function(aI) {
return !Number.isNaN(+aI);
})) {
var yI = wI.map(function(aI) {
return Math.abs(aI) < 1e-6 ? 0 : aI;
});
AI = AI.multiply(l(yI));
} else if (dI === "translate3d" && HI.every(function(aI) {
return !Number.isNaN(+aI);
}))
AI = AI.translate(GI, DI, KI);
else if (dI === "translate" && GI && KI === void 0)
AI = AI.translate(GI, DI || 0, 0);
else if (dI === "rotate3d" && NI.every(function(aI) {
return !Number.isNaN(+aI);
}) && MI)
AI = AI.rotateAxisAngle(GI, DI, KI, MI);
else if (dI === "rotate" && GI && [DI, KI].every(function(aI) {
return aI === void 0;
}))
AI = AI.rotate(0, 0, GI);
else if (dI === "scale3d" && HI.every(function(aI) {
return !Number.isNaN(+aI);
}) && HI.some(function(aI) {
return aI !== 1;
}))
AI = AI.scale(GI, DI, KI);
else if (dI === "scale" && !Number.isNaN(GI) && GI !== 1 && KI === void 0) {
var uI = Number.isNaN(+DI), hI = uI ? GI : DI;
AI = AI.scale(GI, hI, 1);
} else if (dI === "skew" && (GI || !Number.isNaN(GI) && DI) && KI === void 0)
AI = AI.skew(GI, DI || 0);
else if (/[XYZ]/.test(dI) && GI && [DI, KI].every(function(aI) {
return aI === void 0;
}) && ["translate", "rotate", "scale", "skew"].some(function(aI) {
return dI.includes(aI);
}))
if (["skewX", "skewY"].includes(dI))
AI = AI[dI](GI);
else {
var WI = dI.replace(/[XYZ]/, ""), pI = dI.replace(WI, ""), xI = ["X", "Y", "Z"].indexOf(pI), _I = WI === "scale" ? 1 : 0, RI = [
xI === 0 ? GI : _I,
xI === 1 ? GI : _I,
xI === 2 ? GI : _I
];
AI = AI[WI].apply(AI, RI);
}
else
throw TypeError(M);
}), AI;
}
function a(E, _) {
return _ ? [E.a, E.b, E.c, E.d, E.e, E.f] : [
E.m11,
E.m12,
E.m13,
E.m14,
E.m21,
E.m22,
E.m23,
E.m24,
E.m31,
E.m32,
E.m33,
E.m34,
E.m41,
E.m42,
E.m43,
E.m44
];
}
function n(E, _, AI) {
var M = new sI();
return M.m41 = E, M.e = E, M.m42 = _, M.f = _, M.m43 = AI, M;
}
function G(E, _, AI) {
var M = new sI(), O = Math.PI / 180, eI = E * O, dI = _ * O, tI = AI * O, wI = Math.cos(eI), GI = -Math.sin(eI), DI = Math.cos(dI), KI = -Math.sin(dI), MI = Math.cos(tI), HI = -Math.sin(tI), NI = DI * MI, yI = -DI * HI;
M.m11 = NI, M.a = NI, M.m12 = yI, M.b = yI, M.m13 = KI;
var uI = GI * KI * MI + wI * HI;
M.m21 = uI, M.c = uI;
var hI = wI * MI - GI * KI * HI;
return M.m22 = hI, M.d = hI, M.m23 = -GI * DI, M.m31 = GI * HI - wI * KI * MI, M.m32 = GI * MI + wI * KI * HI, M.m33 = wI * DI, M;
}
function r(E, _, AI, M) {
var O = new sI(), eI = Math.sqrt(E * E + _ * _ + AI * AI);
if (eI === 0)
return O;
var dI = E / eI, tI = _ / eI, wI = AI / eI, GI = M * (Math.PI / 360), DI = Math.sin(GI), KI = Math.cos(GI), MI = DI * DI, HI = dI * dI, NI = tI * tI, yI = wI * wI, uI = 1 - 2 * (NI + yI) * MI;
O.m11 = uI, O.a = uI;
var hI = 2 * (dI * tI * MI + wI * DI * KI);
O.m12 = hI, O.b = hI, O.m13 = 2 * (dI * wI * MI - tI * DI * KI);
var WI = 2 * (tI * dI * MI - wI * DI * KI);
O.m21 = WI, O.c = WI;
var pI = 1 - 2 * (yI + HI) * MI;
return O.m22 = pI, O.d = pI, O.m23 = 2 * (tI * wI * MI + dI * DI * KI), O.m31 = 2 * (wI * dI * MI + tI * DI * KI), O.m32 = 2 * (wI * tI * MI - dI * DI * KI), O.m33 = 1 - 2 * (HI + NI) * MI, O;
}
function R(E, _, AI) {
var M = new sI();
return M.m11 = E, M.a = E, M.m22 = _, M.d = _, M.m33 = AI, M;
}
function H(E, _) {
var AI = new sI();
if (E) {
var M = E * Math.PI / 180, O = Math.tan(M);
AI.m21 = O, AI.c = O;
}
if (_) {
var eI = _ * Math.PI / 180, dI = Math.tan(eI);
AI.m12 = dI, AI.b = dI;
}
return AI;
}
function gI(E) {
return H(E, 0);
}
function k(E) {
return H(0, E);
}
function CI(E, _) {
var AI = _.m11 * E.m11 + _.m12 * E.m21 + _.m13 * E.m31 + _.m14 * E.m41, M = _.m11 * E.m12 + _.m12 * E.m22 + _.m13 * E.m32 + _.m14 * E.m42, O = _.m11 * E.m13 + _.m12 * E.m23 + _.m13 * E.m33 + _.m14 * E.m43, eI = _.m11 * E.m14 + _.m12 * E.m24 + _.m13 * E.m34 + _.m14 * E.m44, dI = _.m21 * E.m11 + _.m22 * E.m21 + _.m23 * E.m31 + _.m24 * E.m41, tI = _.m21 * E.m12 + _.m22 * E.m22 + _.m23 * E.m32 + _.m24 * E.m42, wI = _.m21 * E.m13 + _.m22 * E.m23 + _.m23 * E.m33 + _.m24 * E.m43, GI = _.m21 * E.m14 + _.m22 * E.m24 + _.m23 * E.m34 + _.m24 * E.m44, DI = _.m31 * E.m11 + _.m32 * E.m21 + _.m33 * E.m31 + _.m34 * E.m41, KI = _.m31 * E.m12 + _.m32 * E.m22 + _.m33 * E.m32 + _.m34 * E.m42, MI = _.m31 * E.m13 + _.m32 * E.m23 + _.m33 * E.m33 + _.m34 * E.m43, HI = _.m31 * E.m14 + _.m32 * E.m24 + _.m33 * E.m34 + _.m34 * E.m44, NI = _.m41 * E.m11 + _.m42 * E.m21 + _.m43 * E.m31 + _.m44 * E.m41, yI = _.m41 * E.m12 + _.m42 * E.m22 + _.m43 * E.m32 + _.m44 * E.m42, uI = _.m41 * E.m13 + _.m42 * E.m23 + _.m43 * E.m33 + _.m44 * E.m43, hI = _.m41 * E.m14 + _.m42 * E.m24 + _.m43 * E.m34 + _.m44 * E.m44;
return l(
[
AI,
M,
O,
eI,
dI,
tI,
wI,
GI,
DI,
KI,
MI,
HI,
NI,
yI,
uI,
hI
]
);
}
var sI = function() {
for (var _ = [], AI = arguments.length; AI--; ) _[AI] = arguments[AI];
var M = this;
if (M.a = 1, M.b = 0, M.c = 0, M.d = 1, M.e = 0, M.f = 0, M.m11 = 1, M.m12 = 0, M.m13 = 0, M.m14 = 0, M.m21 = 0, M.m22 = 1, M.m23 = 0, M.m24 = 0, M.m31 = 0, M.m32 = 0, M.m33 = 1, M.m34 = 0, M.m41 = 0, M.m42 = 0, M.m43 = 0, M.m44 = 1, _.length) {
var O = [16, 6].some(function(eI) {
return eI === _.length;
}) ? _ : _[0];
return M.setMatrixValue(O);
}
return M;
}, II = { isIdentity: { configurable: !0 }, is2D: { configurable: !0 } };
II.isIdentity.get = function() {
var E = this;
return E.m11 === 1 && E.m12 === 0 && E.m13 === 0 && E.m14 === 0 && E.m21 === 0 && E.m22 === 1 && E.m23 === 0 && E.m24 === 0 && E.m31 === 0 && E.m32 === 0 && E.m33 === 1 && E.m34 === 0 && E.m41 === 0 && E.m42 === 0 && E.m43 === 0 && E.m44 === 1;
}, II.is2D.get = function() {
var E = this;
return E.m31 === 0 && E.m32 === 0 && E.m33 === 1 && E.m34 === 0 && E.m43 === 0 && E.m44 === 1;
}, sI.prototype.setMatrixValue = function(_) {
var AI = this;
return typeof _ == "string" && _.length && _ !== "none" ? t(_) : [Array, Float64Array, Float32Array].some(function(M) {
return _ instanceof M;
}) ? l(_) : [sI, DOMMatrix, Object].some(function(M) {
return _ instanceof M;
}) ? o(_) : AI;
}, sI.prototype.toFloat32Array = function(_) {
return Float32Array.from(a(this, _));
}, sI.prototype.toFloat64Array = function(_) {
return Float64Array.from(a(this, _));
}, sI.prototype.toString = function() {
var _ = this, AI = _.is2D, M = _.toFloat64Array(AI).join(", "), O = AI ? "matrix" : "matrix3d";
return O + "(" + M + ")";
}, sI.prototype.toJSON = function() {
var _ = this, AI = _.is2D, M = _.isIdentity;
return Object.assign({}, _, { is2D: AI, isIdentity: M });
}, sI.prototype.multiply = function(_) {
return CI(this, _);
}, sI.prototype.translate = function(_, AI, M) {
var O = _, eI = AI, dI = M;
return eI === void 0 && (eI = 0), dI === void 0 && (dI = 0), CI(this, n(O, eI, dI));
}, sI.prototype.scale = function(_, AI, M) {
var O = _, eI = AI, dI = M;
return eI === void 0 && (eI = _), dI === void 0 && (dI = 1), CI(this, R(O, eI, dI));
}, sI.prototype.rotate = function(_, AI, M) {
var O = _, eI = AI || 0, dI = M || 0;
return typeof _ == "number" && AI === void 0 && M === void 0 && (dI = O, O = 0, eI = 0), CI(this, G(O, eI, dI));
}, sI.prototype.rotateAxisAngle = function(_, AI, M, O) {
if ([_, AI, M, O].some(function(eI) {
return Number.isNaN(+eI);
}))
throw new TypeError("CSSMatrix: expecting 4 values");
return CI(this, r(_, AI, M, O));
}, sI.prototype.skewX = function(_) {
return CI(this, gI(_));
}, sI.prototype.skewY = function(_) {
return CI(this, k(_));
}, sI.prototype.skew = function(_, AI) {
return CI(this, H(_, AI));
}, sI.prototype.transformPoint = function(_) {
var AI = this, M = AI.m11 * _.x + AI.m21 * _.y + AI.m31 * _.z + AI.m41 * _.w, O = AI.m12 * _.x + AI.m22 * _.y + AI.m32 * _.z + AI.m42 * _.w, eI = AI.m13 * _.x + AI.m23 * _.y + AI.m33 * _.z + AI.m43 * _.w, dI = AI.m14 * _.x + AI.m24 * _.y + AI.m34 * _.z + AI.m44 * _.w;
return _ instanceof DOMPoint ? new DOMPoint(M, O, eI, dI) : {
x: M,
y: O,
z: eI,
w: dI
};
}, Object.defineProperties(sI.prototype, II), Object.assign(sI, {
Translate: n,
Rotate: G,
RotateAxisAngle: r,
Scale: R,
SkewX: gI,
SkewY: k,
Skew: H,
Multiply: CI,
fromArray: l,
fromMatrix: o,
fromString: t,
toArray: a
});
var lI = "1.0.3", cI = lI;
return Object.assign(sI, { Version: cI }), sI;
});
}(dommatrix$1)), dommatrix$1.exports;
}
var ponyfill$1 = { exports: {} };
/**
* @license
* web-streams-polyfill v3.3.3
* Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors.
* This code is released under the MIT license.
* SPDX-License-Identifier: MIT
*/
var ponyfill = ponyfill$1.exports, hasRequiredPonyfill;
function requirePonyfill() {
return hasRequiredPonyfill || (hasRequiredPonyfill = 1, function(e, A) {
(function(l, o) {
o(A);
})(ponyfill, function(l) {
var o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol : function(B) {
return "Symbol(".concat(B, ")");
};
function t(B, j) {
var ZI = { label: 0, sent: function() {
if (kI[0] & 1) throw kI[1];
return kI[1];
}, trys: [], ops: [] }, XI, SI, kI, PI;
return PI = { next: cg(0), throw: cg(1), return: cg(2) }, typeof Symbol == "function" && (PI[Symbol.iterator] = function() {
return this;
}), PI;
function cg(eg) {
return function(Bg) {
return tg([eg, Bg]);
};
}
function tg(eg) {
if (XI) throw new TypeError("Generator is already executing.");
for (; PI && (PI = 0, eg[0] && (ZI = 0)), ZI; ) try {
if (XI = 1, SI && (kI = eg[0] & 2 ? SI.return : eg[0] ? SI.throw || ((kI = SI.return) && kI.call(SI), 0) : SI.next) && !(kI = kI.call(SI, eg[1])).done) return kI;
switch (SI = 0, kI && (eg = [eg[0] & 2, kI.value]), eg[0]) {
case 0:
case 1:
kI = eg;
break;
case 4:
return ZI.label++, { value: eg[1], done: !1 };
case 5:
ZI.label++, SI = eg[1], eg = [0];
continue;
case 7:
eg = ZI.ops.pop(), ZI.trys.pop();
continue;
default:
if (kI = ZI.trys, !(kI = kI.length > 0 && kI[kI.length - 1]) && (eg[0] === 6 || eg[0] === 2)) {
ZI = 0;
continue;
}
if (eg[0] === 3 && (!kI || eg[1] > kI[0] && eg[1] < kI[3])) {
ZI.label = eg[1];
break;
}
if (eg[0] === 6 && ZI.label < kI[1]) {
ZI.label = kI[1], kI = eg;
break;
}
if (kI && ZI.label < kI[2]) {
ZI.label = kI[2], ZI.ops.push(eg);
break;
}
kI[2] && ZI.ops.pop(), ZI.trys.pop();
continue;
}
eg = j.call(B, ZI);
} catch (Bg) {
eg = [6, Bg], SI = 0;
} finally {
XI = kI = 0;
}
if (eg[0] & 5) throw eg[1];
return { value: eg[0] ? eg[1] : void 0, done: !0 };
}
}
function a(B) {
var j = typeof Symbol == "function" && Symbol.iterator, ZI = j && B[j], XI = 0;
if (ZI) return ZI.call(B);
if (B && typeof B.length == "number") return {
next: function() {
return B && XI >= B.length && (B = void 0), { value: B && B[XI++], done: !B };
}
};
throw new TypeError(j ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function n(B) {
return this instanceof n ? (this.v = B, this) : new n(B);
}
function G(B, j, ZI) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var XI = ZI.apply(B, j || []), SI, kI = [];
return SI = {}, PI("next"), PI("throw"), PI("return"), SI[Symbol.asyncIterator] = function() {
return this;
}, SI;
function PI(Xg) {
XI[Xg] && (SI[Xg] = function(xg) {
return new Promise(function(Og, Pg) {
kI.push([Xg, xg, Og, Pg]) > 1 || cg(Xg, xg);
});
});
}
function cg(Xg, xg) {
try {
tg(XI[Xg](xg));
} catch (Og) {
Ng(kI[0][3], Og);
}
}
function tg(Xg) {
Xg.value instanceof n ? Promise.resolve(Xg.value.v).then(eg, Bg) : Ng(kI[0][2], Xg);
}
function eg(Xg) {
cg("next", Xg);
}
function Bg(Xg) {
cg("throw", Xg);
}
function Ng(Xg, xg) {
Xg(xg), kI.shift(), kI.length && cg(kI[0][0], kI[0][1]);
}
}
function r(B) {
var j, ZI;
return j = {}, XI("next"), XI("throw", function(SI) {
throw SI;
}), XI("return"), j[Symbol.iterator] = function() {
return this;
}, j;
function XI(SI, kI) {
j[SI] = B[SI] ? function(PI) {
return (ZI = !ZI) ? { value: n(B[SI](PI)), done: !1 } : kI ? kI(PI) : PI;
} : kI;
}
}
function R(B) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var j = B[Symbol.asyncIterator], ZI;
return j ? j.call(B) : (B = typeof a == "function" ? a(B) : B[Symbol.iterator](), ZI = {}, XI("next"), XI("throw"), XI("return"), ZI[Symbol.asyncIterator] = function() {
return this;
}, ZI);
function XI(kI) {
ZI[kI] = B[kI] && function(PI) {
return new Promise(function(cg, tg) {
PI = B[kI](PI), SI(cg, tg, PI.done, PI.value);
});
};
}
function SI(kI, PI, cg, tg) {
Promise.resolve(tg).then(function(eg) {
kI({ value: eg, done: cg });
}, PI);
}
}
typeof SuppressedError == "function" && SuppressedError;
function H() {
}
function gI(B) {
return typeof B == "object" && B !== null || typeof B == "function";
}
var k = H;
function CI(B, j) {
try {
Object.defineProperty(B, "name", {
value: j,
configurable: !0
});
} catch {
}
}
var sI = Promise, II = Promise.prototype.then, lI = Promise.reject.bind(sI);
function cI(B) {
return new sI(B);
}
function E(B) {
return cI(function(j) {
return j(B);
});
}
function _(B) {
return lI(B);
}
function AI(B, j, ZI) {
return II.call(B, j, ZI);
}
function M(B, j, ZI) {
AI(AI(B, j, ZI), void 0, k);
}
function O(B, j) {
M(B, j);
}
function eI(B, j) {
M(B, void 0, j);
}
function dI(B, j, ZI) {
return AI(B, j, ZI);
}
function tI(B) {
AI(B, void 0, k);
}
var wI = function(B) {
if (typeof queueMicrotask == "function")
wI = queueMicrotask;
else {
var j = E(void 0);
wI = function(ZI) {
return AI(j, ZI);
};
}
return wI(B);
};
function GI(B, j, ZI) {
if (typeof B != "function")
throw new TypeError("Argument is not a function");
return Function.prototype.apply.call(B, j, ZI);
}
function DI(B, j, ZI) {
try {
return E(GI(B, j, ZI));
} catch (XI) {
return _(XI);
}
}
var KI = 16384, MI = (
/** @class */
function() {
function B() {
this._cursor = 0, this._size = 0, this._front = {
_elements: [],
_next: void 0
}, this._back = this._front, this._cursor = 0, this._size = 0;
}
return Object.defineProperty(B.prototype, "length", {
get: function() {
return this._size;
},
enumerable: !1,
configurable: !0
}), B.prototype.push = function(j) {
var ZI = this._back, XI = ZI;
ZI._elements.length === KI - 1 && (XI = {
_elements: [],
_next: void 0
}), ZI._elements.push(j), XI !== ZI && (this._back = XI, ZI._next = XI), ++this._size;
}, B.prototype.shift = function() {
var j = this._front, ZI = j, XI = this._cursor, SI = XI + 1, kI = j._elements, PI = kI[XI];
return SI === KI && (ZI = j._next, SI = 0), --this._size, this._cursor = SI, j !== ZI && (this._front = ZI), kI[XI] = void 0, PI;
}, B.prototype.forEach = function(j) {
for (var ZI = this._cursor, XI = this._front, SI = XI._elements; (ZI !== SI.length || XI._next !== void 0) && !(ZI === SI.length && (XI = XI._next, SI = XI._elements, ZI = 0, SI.length === 0)); )
j(SI[ZI]), ++ZI;
}, B.prototype.peek = function() {
var j = this._front, ZI = this._cursor;
return j._elements[ZI];
}, B;
}()
), HI = o("[[AbortSteps]]"), NI = o("[[ErrorSteps]]"), yI = o("[[CancelSteps]]"), uI = o("[[PullSteps]]"), hI = o("[[ReleaseSteps]]");
function WI(B, j) {
B._ownerReadableStream = j, j._reader = B, j._state === "readable" ? RI(B) : j._state === "closed" ? mI(B) : aI(B, j._storedError);
}
function pI(B, j) {
var ZI = B._ownerReadableStream;
return $g(ZI, j);
}
function xI(B) {
var j = B._ownerReadableStream;
j._state === "readable" ? VI(B, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")) : BI(B, new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")), j._readableStreamController[hI](), j._reader = void 0, B._ownerReadableStream = void 0;
}
function _I(B) {
return new TypeError("Cannot " + B + " a stream using a released reader");
}
function RI(B) {
B._closedPromise = cI(function(j, ZI) {
B._closedPromise_resolve = j, B._closedPromise_reject = ZI;
});
}
function aI(B, j) {
RI(B), VI(B, j);
}
function mI(B) {
RI(B), iI(B);
}
function VI(B, j) {
B._closedPromise_reject !== void 0 && (tI(B._closedPromise), B._closedPromise_reject(j), B._closedPromise_resolve = void 0, B._closedPromise_reject = void 0);
}
function BI(B, j) {
aI(B, j);
}
function iI(B) {
B._closedPromise_resolve !== void 0 && (B._closedPromise_resolve(void 0), B._closedPromise_resolve = void 0, B._closedPromise_reject = void 0);
}
var oI = Number.isFinite || function(B) {
return typeof B == "number" && isFinite(B);
}, bI = Math.trunc || function(B) {
return B < 0 ? Math.ceil(B) : Math.floor(B);
};
function nI(B) {
return typeof B == "object" || typeof B == "function";
}
function YI(B, j) {
if (B !== void 0 && !nI(B))
throw new TypeError("".concat(j, " is not an object."));
}
function rI(B, j) {
if (typeof B != "function")
throw new TypeError("".concat(j, " is not a function."));
}
function FI(B) {
return typeof B == "object" && B !== null || typeof B == "function";
}
function zI(B, j) {
if (!FI(B))
throw new TypeError("".concat(j, " is not an object."));
}
function vI(B, j, ZI) {
if (B === void 0)
throw new TypeError("Parameter ".concat(j, " is required in '").concat(ZI, "'."));
}
function QI(B, j, ZI) {
if (B === void 0)
throw new TypeError("".concat(j, " is required in '").concat(ZI, "'."));
}
function fI(B) {
return Number(B);
}
function OI(B) {
return B === 0 ? 0 : B;
}
function $I(B) {
return OI(bI(B));
}
function Cg(B, j) {
var ZI = 0, XI = Number.MAX_SAFE_INTEGER, SI = Number(B);
if (SI = OI(SI), !oI(SI))
throw new TypeError("".concat(j, " is not a finite number"));
if (SI = $I(SI), SI < ZI || SI > XI)
throw new TypeError("".concat(j, " is outside the accepted range of ").concat(ZI, " to ").concat(XI, ", inclusive"));
return !oI(SI) || SI === 0 ? 0 : SI;
}
function lg(B, j) {
if (!ZC(B))
throw new TypeError("".concat(j, " is not a ReadableStream."));
}
function dg(B) {
return new ag(B);
}
function bg(B, j) {
B._reader._readRequests.push(j);
}
function ig(B, j, ZI) {
var XI = B._reader, SI = XI._readRequests.shift();
ZI ? SI._closeSteps() : SI._chunkSteps(j);
}
function Rg(B) {
return B._reader._readRequests.length;
}
function Kg(B) {
var j = B._reader;
return !(j === void 0 || !sg(j));
}
var ag = (
/** @class */
function() {
function B(j) {
if (vI(j, 1, "ReadableStreamDefaultReader"), lg(j, "First parameter"), tC(j))
throw new TypeError("This stream has already been locked for exclusive reading by another reader");
WI(this, j), this._readRequests = new MI();
}
return Object.defineProperty(B.prototype, "closed", {
/**
* Returns a promise that will be fulfilled when the stream becomes closed,
* or rejected if the stream ever errors or the reader's lock is released before the stream finishes closing.
*/
get: function() {
return sg(this) ? this._closedPromise : _(Mg("closed"));
},
enumerable: !1,
configurable: !0
}), B.prototype.cancel = function(j) {
return j === void 0 && (j = void 0), sg(this) ? this._ownerReadableStream === void 0 ? _(_I("cancel")) : pI(this, j) : _(Mg("cancel"));
}, B.prototype.read = function() {
if (!sg(this))
return _(Mg("read"));
if (this._ownerReadableStream === void 0)
return _(_I("read from"));
var j, ZI, XI = cI(function(kI, PI) {
j = kI, ZI = PI;
}), SI = {
_chunkSteps: function(kI) {
return j({ value: kI, done: !1 });
},
_closeSteps: function() {
return j({ value: void 0, done: !0 });
},
_errorSteps: function(kI) {
return ZI(kI);
}
};
return TI(this, SI), XI;
}, B.prototype.releaseLock = function() {
if (!sg(this))
throw Mg("releaseLock");
this._ownerReadableStream !== void 0 && gg(this);
}, B;
}()
);
Object.defineProperties(ag.prototype, {
cancel: { enumerable: !0 },
read: { enumerable: !0 },
releaseLock: { enumerable: !0 },
closed: { enumerable: !0 }
}), CI(ag.prototype.cancel, "cancel"), CI(ag.prototype.read, "read"), CI(ag.prototype.releaseLock, "releaseLock"), typeof o.toStringTag == "symbol" && Object.defineProperty(ag.prototype, o.toStringTag, {
value: "ReadableStreamDefaultReader",
configurable: !0
});
function sg(B) {
return !gI(B) || !Object.prototype.hasOwnProperty.call(B, "_readRequests") ? !1 : B instanceof ag;
}
function TI(B, j) {
var ZI = B._ownerReadableStream;
ZI._disturbed = !0, ZI._state === "closed" ? j._closeSteps() : ZI._state === "errored" ? j._errorSteps(ZI._storedError) : ZI._readableStreamController[uI](j);
}
function gg(B) {
xI(B);
var j = new TypeError("Reader was released");
Gg(B, j);
}
function Gg(B, j) {
var ZI = B._readRequests;
B._readRequests = new MI(), ZI.forEach(function(XI) {
XI._errorSteps(j);
});
}
function Mg(B) {
return new TypeError("ReadableStreamDefaultReader.prototype.".concat(B, " can only be used on a ReadableStreamDefaultReader"));
}
var Ig, og, Wg;
function UI(B) {
return B.slice();
}
function JI(B, j, ZI, XI, SI) {
new Uint8Array(B).set(new Uint8Array(ZI, XI, SI), j);
}
var LI = function(B) {
return typeof B.transfer == "function" ? LI = function(j) {
return j.transfer();
} : typeof structuredClone == "function" ? LI = function(j) {
return structuredClone(j, { transfer: [j] });
} : LI = function(j) {
return j;
}, LI(B);
}, qI = function(B) {
return typeof B.detached == "boolean" ? qI = function(j) {
return j.detached;
} : qI = function(j) {
return j.byteLength === 0;
}, qI(B);
};
function mg(B, j, ZI) {
if (B.slice)
return B.slice(j, ZI);
var XI = ZI - j, SI = new ArrayBuffer(XI);
return JI(SI, 0, B, j, XI), SI;
}
function wg(B, j) {
var ZI = B[j];
if (ZI != null) {
if (typeof ZI != "function")
throw new TypeError("".concat(String(j), " is not a function"));
return ZI;
}
}
function EI(B) {
var j, ZI = (j = {}, j[o.iterator] = function() {
return B.iterator;
}, j), XI = function() {
return G(this, arguments, function() {
return t(this, function(kI) {
switch (kI.label) {
case 0:
return [5, a(r(R(ZI)))];
case 1:
return [4, n.apply(void 0, [kI.sent()])];
case 2:
return [4, n.apply(void 0, [kI.sent()])];
case 3:
return [2, kI.sent()];
}
});
});
}(), SI = XI.next;
return { iterator: XI, nextMethod: SI, done: !1 };
}
var jI = (Wg = (Ig = o.asyncIterator) !== null && Ig !== void 0 ? Ig : (og = o.for) === null || og === void 0 ? void 0 : og.call(o, "Symbol.asyncIterator")) !== null && Wg !== void 0 ? Wg : "@@asyncIterator";
function Ag(B, j, ZI) {
if (j === void 0 && (j = "sync"), ZI === void 0)
if (j === "async") {
if (ZI = wg(B, jI), ZI === void 0) {
var XI = wg(B, o.iterator), SI = Ag(B, "sync", XI);
return EI(SI);
}
} else
ZI = wg(B, o.iterator);
if (ZI === void 0)
throw new TypeError("The object is not iterable");
var kI = GI(ZI, B, []);
if (!gI(kI))
throw new TypeError("The iterator method must return an object");
var PI = kI.next;
return { iterator: kI, nextMethod: PI, done: !1 };
}
function Zg(B) {
var j = GI(B.nextMethod, B.iterator, []);
if (!gI(j))
throw new TypeError("The iterator.next() method must return an object");
return j;
}
function hg(B) {
return !!B.done;
}
function Vg(B) {
return B.value;
}
var Yg, yg = (Yg = {}, // 25.1.3.1 %AsyncIteratorPrototype% [ @@asyncIterator ] ( )
// https://tc39.github.io/ecma262/#sec-asynciteratorprototype-asynciterator
Yg[jI] = function() {
return this;
}, Yg);
Object.defineProperty(yg, jI, { enumerable: !1 });
var ng = (
/** @class */
function() {
function B(j, ZI) {
this._ongoingPromise = void 0, this._isFinished = !1, this._reader = j, this._preventCancel = ZI;
}
return B.prototype.next = function() {
var j = this, ZI = function() {
return j._nextSteps();
};
return this._ongoingPromise = this._ongoingPromise ? dI(this._ongoingPromise, ZI, ZI) : ZI(), this._ongoingPromise;
}, B.prototype.return = function(j) {
var ZI = this, XI = function() {
return ZI._returnSteps(j);
};
return this._ongoingPromise ? dI(this._ongoingPromise, XI, XI) : XI();
}, B.prototype._nextSteps = function() {
var j = this;
if (this._isFinished)
return Promise.resolve({ value: void 0, done: !0 });
var ZI = this._reader, XI, SI, kI = cI(function(cg, tg) {
XI = cg, SI = tg;
}), PI = {
_chunkSteps: function(cg) {
j._ongoingPromise = void 0, wI(function() {
return XI({ value: cg, done: !1 });
});
},
_closeSteps: function() {
j._ongoingPromise = void 0, j._isFinished = !0, xI(ZI), XI({ value: void 0, done: !0 });
},
_errorSteps: function(cg) {
j._ongoingPromise = void 0, j._isFinished = !0, xI(ZI), SI(cg);
}
};
return TI(ZI, PI), kI;
}, B.prototype._returnSteps = function(j) {
if (this._isFinished)
return Promise.resolve({ value: j, done: !0 });
this._isFinished = !0;
var ZI = this._reader;
if (!this._preventCancel) {
var XI = pI(ZI, j);
return xI(ZI), dI(XI, function() {
return { value: j, done: !0 };
});
}
return xI(ZI), E({ value: j, done: !0 });
}, B;
}()
), pg = {
next: function() {
return rg(this) ? this._asyncIteratorImpl.next() : _(Hg("next"));
},
return: function(B) {
return rg(this) ? this._asyncIteratorImpl.return(B) : _(Hg("return"));
}
};
Object.setPrototypeOf(pg, yg);
function zg(B, j) {
var ZI = dg(B), XI = new ng(ZI, j), SI = Object.create(pg);
return SI._asyncIteratorImpl = XI, SI;
}
function rg(B) {
if (!gI(B) || !Object.prototype.hasOwnProperty.call(B, "_asyncIteratorImpl"))
return !1;
try {
return B._asyncIteratorImpl instanceof ng;
} catch {
return !1;
}
}
function Hg(B) {
return new TypeError("ReadableStreamAsyncIterator.".concat(B, " can only be used on a ReadableSteamAsyncIterator"));
}
var Lg = Number.isNaN || function(B) {
return B !== B;
};
function Sg(B) {
return !(typeof B != "number" || Lg(B) || B < 0);
}
function Tg(B) {
var j = mg(B.buffer, B.byteOffset, B.byteOffset + B.byteLength);
return new Uint8Array(j);
}
function Fg(B) {
var j = B._queue.shift();
return B._queueTotalSize -= j.size, B._queueTotalSize < 0 && (B._queueTotalSize = 0), j.value;
}
function _g(B, j, ZI) {
if (!Sg(ZI) || ZI === 1 / 0)
throw new RangeError("Size must be a finite, non-NaN, non-negative number.");
B._queue.push({ value: j, size: ZI }), B._queueTotalSize += ZI;
}
function eC(B) {
var j = B._queue.peek();
return j.value;
}
function fg(B) {
B._queue = new MI(), B._queueTotalSize = 0;
}
function bC(B) {
return B === DataView;
}
function VC(B) {
return bC(B.constructor);
}
function nC(B) {
return bC(B) ? 1 : B.BYTES_PER_ELEMENT;
}
var Qg = (
/** @class */
function() {
function B() {
throw new TypeError("Illegal constructor");
}
return Object.defineProperty(B.prototype, "view", {
/**
* Returns the view for writing in to, or `null` if the BYOB request has already been responded to.
*/
get: function() {
if (!aA(this))
throw WA("view");
return this._view;
},
enumerable: !1,
configurable: !0
}), B.prototype.respond = function(j) {
if (!aA(this))
throw WA("respond");
if (vI(j, 1, "respond"), j = Cg(j, "First parameter"), this._associatedReadableByteStreamController === void 0)
throw new TypeError("This BYOB request has been invalidated");
if (qI(this._view.buffer))
throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");
fC(this._associatedReadableByteStreamController, j);
}, B.prototype.respondWithNewView = function(j) {
if (!aA(this))
throw WA("respondWithNewView");
if (vI(j, 1, "respondWithNewView"), !ArrayBuffer.isView(j))
throw new TypeError("You can only respond with array buffer views");
if (this._associatedReadableByteStreamController === void 0)
throw new TypeError("This BYOB request has been invalidated");
if (qI(j.buffer))
throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");
QC(this._associatedReadableByteStreamController, j);
}, B;
}()
);
Object.defineProperties(Qg.prototype, {
respond: { enumerable: !0 },
respondWithNewView: { enumerable: !0