@api.global/typedserver
Version:
A TypeScript-based project for easy serving of static files with support for live reloading, compression, and typed requests.
1,146 lines (1,121 loc) • 9.95 MB
JavaScript
var __create = Object.create;
var __freeze = Object.freeze;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
var __typeError = (msg) => {
throw TypeError(msg);
};
var __defNormalProp = (obj, key2, value2) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key2] = value2;
var __name = (target, value2) => __defProp(target, "name", { value: value2, configurable: true });
var __require = /* @__PURE__ */ ((x4) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x4, {
get: (a6, b6) => (typeof require !== "undefined" ? require : a6)[b6]
}) : x4)(function(x4) {
if (typeof require !== "undefined") return require.apply(this, arguments);
throw Error('Dynamic require of "' + x4 + '" is not supported');
});
var __esm = (fn, res) => function __init() {
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
};
var __commonJS = (cb, mod) => function __require2() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var __export = (target, all3) => {
for (var name in all3)
__defProp(target, name, { get: all3[name], enumerable: true });
};
var __copyProps = (to2, from3, except, desc) => {
if (from3 && typeof from3 === "object" || typeof from3 === "function") {
for (let key2 of __getOwnPropNames(from3))
if (!__hasOwnProp.call(to2, key2) && key2 !== except)
__defProp(to2, key2, { get: () => from3[key2], enumerable: !(desc = __getOwnPropDesc(from3, key2)) || desc.enumerable });
}
return to2;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __decoratorStart = (base2) => [, , , __create(base2?.[__knownSymbol("metadata")] ?? null)];
var __decoratorStrings = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"];
var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError("Function expected") : fn;
var __decoratorContext = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null)) });
var __decoratorMetadata = (array, target) => __defNormalProp(target, __knownSymbol("metadata"), array[3]);
var __runInitializers = (array, flags, self2, value2) => {
for (var i12 = 0, fns = array[flags >> 1], n14 = fns && fns.length; i12 < n14; i12++) flags & 1 ? fns[i12].call(self2) : value2 = fns[i12].call(self2, value2);
return value2;
};
var __decorateElement = (array, flags, name, decorators, target, extra) => {
var fn, it2, done, ctx, access, k4 = flags & 7, s10 = !!(flags & 8), p8 = !!(flags & 16);
var j4 = k4 > 3 ? array.length + 1 : k4 ? s10 ? 1 : 2 : 0, key2 = __decoratorStrings[k4 + 5];
var initializers = k4 > 3 && (array[j4 - 1] = []), extraInitializers = array[j4] || (array[j4] = []);
var desc = k4 && (!p8 && !s10 && (target = target.prototype), k4 < 5 && (k4 > 3 || !p8) && __getOwnPropDesc(k4 < 4 ? target : { get [name]() {
return __privateGet(this, extra);
}, set [name](x4) {
return __privateSet(this, extra, x4);
} }, name));
k4 ? p8 && k4 < 4 && __name(extra, (k4 > 2 ? "set " : k4 > 1 ? "get " : "") + name) : __name(target, name);
for (var i12 = decorators.length - 1; i12 >= 0; i12--) {
ctx = __decoratorContext(k4, name, done = {}, array[3], extraInitializers);
if (k4) {
ctx.static = s10, ctx.private = p8, access = ctx.access = { has: p8 ? (x4) => __privateIn(target, x4) : (x4) => name in x4 };
if (k4 ^ 3) access.get = p8 ? (x4) => (k4 ^ 1 ? __privateGet : __privateMethod)(x4, target, k4 ^ 4 ? extra : desc.get) : (x4) => x4[name];
if (k4 > 2) access.set = p8 ? (x4, y6) => __privateSet(x4, target, y6, k4 ^ 4 ? extra : desc.set) : (x4, y6) => x4[name] = y6;
}
it2 = (0, decorators[i12])(k4 ? k4 < 4 ? p8 ? extra : desc[key2] : k4 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
if (k4 ^ 4 || it2 === void 0) __expectFn(it2) && (k4 > 4 ? initializers.unshift(it2) : k4 ? p8 ? extra = it2 : desc[key2] = it2 : target = it2);
else if (typeof it2 !== "object" || it2 === null) __typeError("Object expected");
else __expectFn(fn = it2.get) && (desc.get = fn), __expectFn(fn = it2.set) && (desc.set = fn), __expectFn(fn = it2.init) && initializers.unshift(fn);
}
return k4 || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p8 ? k4 ^ 4 ? extra : desc : target;
};
var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value2);
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
var __privateAdd = (obj, member, value2) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value2);
var __privateSet = (obj, member, value2, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value2) : member.set(obj, value2), value2);
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
var __template = (cooked, raw2) => __freeze(__defProp(cooked, "raw", { value: __freeze(raw2 || cooked.slice()) }));
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js
var t, e, s, o, n, r, i, S, c;
var init_css_tag = __esm({
"node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js"() {
t = globalThis, e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s = Symbol(), o = /* @__PURE__ */ new WeakMap();
n = class {
constructor(t10, e12, o14) {
if (this._$cssResult$ = true, o14 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
this.cssText = t10, this.t = e12;
}
get styleSheet() {
let t10 = this.o;
const s10 = this.t;
if (e && void 0 === t10) {
const e12 = void 0 !== s10 && 1 === s10.length;
e12 && (t10 = o.get(s10)), void 0 === t10 && ((this.o = t10 = new CSSStyleSheet()).replaceSync(this.cssText), e12 && o.set(s10, t10));
}
return t10;
}
toString() {
return this.cssText;
}
};
r = (t10) => new n("string" == typeof t10 ? t10 : t10 + "", void 0, s), i = (t10, ...e12) => {
const o14 = 1 === t10.length ? t10[0] : e12.reduce(((e13, s10, o15) => e13 + ((t11) => {
if (true === t11._$cssResult$) return t11.cssText;
if ("number" == typeof t11) return t11;
throw Error("Value passed to 'css' function must be a 'css' function result: " + t11 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
})(s10) + t10[o15 + 1]), t10[0]);
return new n(o14, t10, s);
}, S = (s10, o14) => {
if (e) s10.adoptedStyleSheets = o14.map(((t10) => t10 instanceof CSSStyleSheet ? t10 : t10.styleSheet));
else for (const e12 of o14) {
const o15 = document.createElement("style"), n14 = t.litNonce;
void 0 !== n14 && o15.setAttribute("nonce", n14), o15.textContent = e12.cssText, s10.appendChild(o15);
}
}, c = e ? (t10) => t10 : (t10) => t10 instanceof CSSStyleSheet ? ((t11) => {
let e12 = "";
for (const s10 of t11.cssRules) e12 += s10.cssText;
return r(e12);
})(t10) : t10;
}
});
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js
var i2, e2, h, r2, o2, n2, a, c2, l, p, d, u, f, b, y;
var init_reactive_element = __esm({
"node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js"() {
init_css_tag();
init_css_tag();
({ is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object), a = globalThis, c2 = a.trustedTypes, l = c2 ? c2.emptyScript : "", p = a.reactiveElementPolyfillSupport, d = (t10, s10) => t10, u = { toAttribute(t10, s10) {
switch (s10) {
case Boolean:
t10 = t10 ? l : null;
break;
case Object:
case Array:
t10 = null == t10 ? t10 : JSON.stringify(t10);
}
return t10;
}, fromAttribute(t10, s10) {
let i12 = t10;
switch (s10) {
case Boolean:
i12 = null !== t10;
break;
case Number:
i12 = null === t10 ? null : Number(t10);
break;
case Object:
case Array:
try {
i12 = JSON.parse(t10);
} catch (t11) {
i12 = null;
}
}
return i12;
} }, f = (t10, s10) => !i2(t10, s10), b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
y = class extends HTMLElement {
static addInitializer(t10) {
this._$Ei(), (this.l ??= []).push(t10);
}
static get observedAttributes() {
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
}
static createProperty(t10, s10 = b) {
if (s10.state && (s10.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t10) && ((s10 = Object.create(s10)).wrapped = true), this.elementProperties.set(t10, s10), !s10.noAccessor) {
const i12 = Symbol(), h9 = this.getPropertyDescriptor(t10, i12, s10);
void 0 !== h9 && e2(this.prototype, t10, h9);
}
}
static getPropertyDescriptor(t10, s10, i12) {
const { get: e12, set: r12 } = h(this.prototype, t10) ?? { get() {
return this[s10];
}, set(t11) {
this[s10] = t11;
} };
return { get: e12, set(s11) {
const h9 = e12?.call(this);
r12?.call(this, s11), this.requestUpdate(t10, h9, i12);
}, configurable: true, enumerable: true };
}
static getPropertyOptions(t10) {
return this.elementProperties.get(t10) ?? b;
}
static _$Ei() {
if (this.hasOwnProperty(d("elementProperties"))) return;
const t10 = n2(this);
t10.finalize(), void 0 !== t10.l && (this.l = [...t10.l]), this.elementProperties = new Map(t10.elementProperties);
}
static finalize() {
if (this.hasOwnProperty(d("finalized"))) return;
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
const t11 = this.properties, s10 = [...r2(t11), ...o2(t11)];
for (const i12 of s10) this.createProperty(i12, t11[i12]);
}
const t10 = this[Symbol.metadata];
if (null !== t10) {
const s10 = litPropertyMetadata.get(t10);
if (void 0 !== s10) for (const [t11, i12] of s10) this.elementProperties.set(t11, i12);
}
this._$Eh = /* @__PURE__ */ new Map();
for (const [t11, s10] of this.elementProperties) {
const i12 = this._$Eu(t11, s10);
void 0 !== i12 && this._$Eh.set(i12, t11);
}
this.elementStyles = this.finalizeStyles(this.styles);
}
static finalizeStyles(s10) {
const i12 = [];
if (Array.isArray(s10)) {
const e12 = new Set(s10.flat(1 / 0).reverse());
for (const s11 of e12) i12.unshift(c(s11));
} else void 0 !== s10 && i12.push(c(s10));
return i12;
}
static _$Eu(t10, s10) {
const i12 = s10.attribute;
return false === i12 ? void 0 : "string" == typeof i12 ? i12 : "string" == typeof t10 ? t10.toLowerCase() : void 0;
}
constructor() {
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
}
_$Ev() {
this._$ES = new Promise(((t10) => this.enableUpdating = t10)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((t10) => t10(this)));
}
addController(t10) {
(this._$EO ??= /* @__PURE__ */ new Set()).add(t10), void 0 !== this.renderRoot && this.isConnected && t10.hostConnected?.();
}
removeController(t10) {
this._$EO?.delete(t10);
}
_$E_() {
const t10 = /* @__PURE__ */ new Map(), s10 = this.constructor.elementProperties;
for (const i12 of s10.keys()) this.hasOwnProperty(i12) && (t10.set(i12, this[i12]), delete this[i12]);
t10.size > 0 && (this._$Ep = t10);
}
createRenderRoot() {
const t10 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
return S(t10, this.constructor.elementStyles), t10;
}
connectedCallback() {
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(((t10) => t10.hostConnected?.()));
}
enableUpdating(t10) {
}
disconnectedCallback() {
this._$EO?.forEach(((t10) => t10.hostDisconnected?.()));
}
attributeChangedCallback(t10, s10, i12) {
this._$AK(t10, i12);
}
_$ET(t10, s10) {
const i12 = this.constructor.elementProperties.get(t10), e12 = this.constructor._$Eu(t10, i12);
if (void 0 !== e12 && true === i12.reflect) {
const h9 = (void 0 !== i12.converter?.toAttribute ? i12.converter : u).toAttribute(s10, i12.type);
this._$Em = t10, null == h9 ? this.removeAttribute(e12) : this.setAttribute(e12, h9), this._$Em = null;
}
}
_$AK(t10, s10) {
const i12 = this.constructor, e12 = i12._$Eh.get(t10);
if (void 0 !== e12 && this._$Em !== e12) {
const t11 = i12.getPropertyOptions(e12), h9 = "function" == typeof t11.converter ? { fromAttribute: t11.converter } : void 0 !== t11.converter?.fromAttribute ? t11.converter : u;
this._$Em = e12;
const r12 = h9.fromAttribute(s10, t11.type);
this[e12] = r12 ?? this._$Ej?.get(e12) ?? r12, this._$Em = null;
}
}
requestUpdate(t10, s10, i12) {
if (void 0 !== t10) {
const e12 = this.constructor, h9 = this[t10];
if (i12 ??= e12.getPropertyOptions(t10), !((i12.hasChanged ?? f)(h9, s10) || i12.useDefault && i12.reflect && h9 === this._$Ej?.get(t10) && !this.hasAttribute(e12._$Eu(t10, i12)))) return;
this.C(t10, s10, i12);
}
false === this.isUpdatePending && (this._$ES = this._$EP());
}
C(t10, s10, { useDefault: i12, reflect: e12, wrapped: h9 }, r12) {
i12 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t10) && (this._$Ej.set(t10, r12 ?? s10 ?? this[t10]), true !== h9 || void 0 !== r12) || (this._$AL.has(t10) || (this.hasUpdated || i12 || (s10 = void 0), this._$AL.set(t10, s10)), true === e12 && this._$Em !== t10 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t10));
}
async _$EP() {
this.isUpdatePending = true;
try {
await this._$ES;
} catch (t11) {
Promise.reject(t11);
}
const t10 = this.scheduleUpdate();
return null != t10 && await t10, !this.isUpdatePending;
}
scheduleUpdate() {
return this.performUpdate();
}
performUpdate() {
if (!this.isUpdatePending) return;
if (!this.hasUpdated) {
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
for (const [t12, s11] of this._$Ep) this[t12] = s11;
this._$Ep = void 0;
}
const t11 = this.constructor.elementProperties;
if (t11.size > 0) for (const [s11, i12] of t11) {
const { wrapped: t12 } = i12, e12 = this[s11];
true !== t12 || this._$AL.has(s11) || void 0 === e12 || this.C(s11, void 0, i12, e12);
}
}
let t10 = false;
const s10 = this._$AL;
try {
t10 = this.shouldUpdate(s10), t10 ? (this.willUpdate(s10), this._$EO?.forEach(((t11) => t11.hostUpdate?.())), this.update(s10)) : this._$EM();
} catch (s11) {
throw t10 = false, this._$EM(), s11;
}
t10 && this._$AE(s10);
}
willUpdate(t10) {
}
_$AE(t10) {
this._$EO?.forEach(((t11) => t11.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t10)), this.updated(t10);
}
_$EM() {
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
}
get updateComplete() {
return this.getUpdateComplete();
}
getUpdateComplete() {
return this._$ES;
}
shouldUpdate(t10) {
return true;
}
update(t10) {
this._$Eq &&= this._$Eq.forEach(((t11) => this._$ET(t11, this[t11]))), this._$EM();
}
updated(t10) {
}
firstUpdated(t10) {
}
};
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ??= []).push("2.1.1");
}
});
// node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js
function P(t10, i12) {
if (!a2(t10) || !t10.hasOwnProperty("raw")) throw Error("invalid template strings array");
return void 0 !== s2 ? s2.createHTML(i12) : i12;
}
function S2(t10, i12, s10 = t10, e12) {
if (i12 === T) return i12;
let h9 = void 0 !== e12 ? s10._$Co?.[e12] : s10._$Cl;
const o14 = c3(i12) ? void 0 : i12._$litDirective$;
return h9?.constructor !== o14 && (h9?._$AO?.(false), void 0 === o14 ? h9 = void 0 : (h9 = new o14(t10), h9._$AT(t10, s10, e12)), void 0 !== e12 ? (s10._$Co ??= [])[e12] = h9 : s10._$Cl = h9), void 0 !== h9 && (i12 = S2(t10, h9._$AS(t10, i12.values), h9, e12)), i12;
}
var t2, i3, s2, e3, h2, o3, n3, r3, l2, c3, a2, u2, d2, f2, v, _, m, p2, g, $, y2, x, b2, w, T, E, A, C, V, N, M, R, k, H, I, L, z, Z, j2, B;
var init_lit_html = __esm({
"node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js"() {
t2 = globalThis, i3 = t2.trustedTypes, s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t10) => t10 }) : void 0, e3 = "$lit$", h2 = `lit$${Math.random().toFixed(9).slice(2)}$`, o3 = "?" + h2, n3 = `<${o3}>`, r3 = document, l2 = () => r3.createComment(""), c3 = (t10) => null === t10 || "object" != typeof t10 && "function" != typeof t10, a2 = Array.isArray, u2 = (t10) => a2(t10) || "function" == typeof t10?.[Symbol.iterator], d2 = "[ \n\f\r]", f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`, "g"), p2 = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y2 = (t10) => (i12, ...s10) => ({ _$litType$: t10, strings: i12, values: s10 }), x = y2(1), b2 = y2(2), w = y2(3), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r3.createTreeWalker(r3, 129);
V = (t10, i12) => {
const s10 = t10.length - 1, o14 = [];
let r12, l8 = 2 === i12 ? "<svg>" : 3 === i12 ? "<math>" : "", c12 = f2;
for (let i13 = 0; i13 < s10; i13++) {
const s11 = t10[i13];
let a6, u8, d7 = -1, y6 = 0;
for (; y6 < s11.length && (c12.lastIndex = y6, u8 = c12.exec(s11), null !== u8); ) y6 = c12.lastIndex, c12 === f2 ? "!--" === u8[1] ? c12 = v : void 0 !== u8[1] ? c12 = _ : void 0 !== u8[2] ? ($.test(u8[2]) && (r12 = RegExp("</" + u8[2], "g")), c12 = m) : void 0 !== u8[3] && (c12 = m) : c12 === m ? ">" === u8[0] ? (c12 = r12 ?? f2, d7 = -1) : void 0 === u8[1] ? d7 = -2 : (d7 = c12.lastIndex - u8[2].length, a6 = u8[1], c12 = void 0 === u8[3] ? m : '"' === u8[3] ? g : p2) : c12 === g || c12 === p2 ? c12 = m : c12 === v || c12 === _ ? c12 = f2 : (c12 = m, r12 = void 0);
const x4 = c12 === m && t10[i13 + 1].startsWith("/>") ? " " : "";
l8 += c12 === f2 ? s11 + n3 : d7 >= 0 ? (o14.push(a6), s11.slice(0, d7) + e3 + s11.slice(d7) + h2 + x4) : s11 + h2 + (-2 === d7 ? i13 : x4);
}
return [P(t10, l8 + (t10[s10] || "<?>") + (2 === i12 ? "</svg>" : 3 === i12 ? "</math>" : "")), o14];
};
N = class _N {
constructor({ strings: t10, _$litType$: s10 }, n14) {
let r12;
this.parts = [];
let c12 = 0, a6 = 0;
const u8 = t10.length - 1, d7 = this.parts, [f8, v6] = V(t10, s10);
if (this.el = _N.createElement(f8, n14), C.currentNode = this.el.content, 2 === s10 || 3 === s10) {
const t11 = this.el.content.firstChild;
t11.replaceWith(...t11.childNodes);
}
for (; null !== (r12 = C.nextNode()) && d7.length < u8; ) {
if (1 === r12.nodeType) {
if (r12.hasAttributes()) for (const t11 of r12.getAttributeNames()) if (t11.endsWith(e3)) {
const i12 = v6[a6++], s11 = r12.getAttribute(t11).split(h2), e12 = /([.?@])?(.*)/.exec(i12);
d7.push({ type: 1, index: c12, name: e12[2], strings: s11, ctor: "." === e12[1] ? H : "?" === e12[1] ? I : "@" === e12[1] ? L : k }), r12.removeAttribute(t11);
} else t11.startsWith(h2) && (d7.push({ type: 6, index: c12 }), r12.removeAttribute(t11));
if ($.test(r12.tagName)) {
const t11 = r12.textContent.split(h2), s11 = t11.length - 1;
if (s11 > 0) {
r12.textContent = i3 ? i3.emptyScript : "";
for (let i12 = 0; i12 < s11; i12++) r12.append(t11[i12], l2()), C.nextNode(), d7.push({ type: 2, index: ++c12 });
r12.append(t11[s11], l2());
}
}
} else if (8 === r12.nodeType) if (r12.data === o3) d7.push({ type: 2, index: c12 });
else {
let t11 = -1;
for (; -1 !== (t11 = r12.data.indexOf(h2, t11 + 1)); ) d7.push({ type: 7, index: c12 }), t11 += h2.length - 1;
}
c12++;
}
}
static createElement(t10, i12) {
const s10 = r3.createElement("template");
return s10.innerHTML = t10, s10;
}
};
M = class {
constructor(t10, i12) {
this._$AV = [], this._$AN = void 0, this._$AD = t10, this._$AM = i12;
}
get parentNode() {
return this._$AM.parentNode;
}
get _$AU() {
return this._$AM._$AU;
}
u(t10) {
const { el: { content: i12 }, parts: s10 } = this._$AD, e12 = (t10?.creationScope ?? r3).importNode(i12, true);
C.currentNode = e12;
let h9 = C.nextNode(), o14 = 0, n14 = 0, l8 = s10[0];
for (; void 0 !== l8; ) {
if (o14 === l8.index) {
let i13;
2 === l8.type ? i13 = new R(h9, h9.nextSibling, this, t10) : 1 === l8.type ? i13 = new l8.ctor(h9, l8.name, l8.strings, this, t10) : 6 === l8.type && (i13 = new z(h9, this, t10)), this._$AV.push(i13), l8 = s10[++n14];
}
o14 !== l8?.index && (h9 = C.nextNode(), o14++);
}
return C.currentNode = r3, e12;
}
p(t10) {
let i12 = 0;
for (const s10 of this._$AV) void 0 !== s10 && (void 0 !== s10.strings ? (s10._$AI(t10, s10, i12), i12 += s10.strings.length - 2) : s10._$AI(t10[i12])), i12++;
}
};
R = class _R {
get _$AU() {
return this._$AM?._$AU ?? this._$Cv;
}
constructor(t10, i12, s10, e12) {
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t10, this._$AB = i12, this._$AM = s10, this.options = e12, this._$Cv = e12?.isConnected ?? true;
}
get parentNode() {
let t10 = this._$AA.parentNode;
const i12 = this._$AM;
return void 0 !== i12 && 11 === t10?.nodeType && (t10 = i12.parentNode), t10;
}
get startNode() {
return this._$AA;
}
get endNode() {
return this._$AB;
}
_$AI(t10, i12 = this) {
t10 = S2(this, t10, i12), c3(t10) ? t10 === E || null == t10 || "" === t10 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t10 !== this._$AH && t10 !== T && this._(t10) : void 0 !== t10._$litType$ ? this.$(t10) : void 0 !== t10.nodeType ? this.T(t10) : u2(t10) ? this.k(t10) : this._(t10);
}
O(t10) {
return this._$AA.parentNode.insertBefore(t10, this._$AB);
}
T(t10) {
this._$AH !== t10 && (this._$AR(), this._$AH = this.O(t10));
}
_(t10) {
this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t10 : this.T(r3.createTextNode(t10)), this._$AH = t10;
}
$(t10) {
const { values: i12, _$litType$: s10 } = t10, e12 = "number" == typeof s10 ? this._$AC(t10) : (void 0 === s10.el && (s10.el = N.createElement(P(s10.h, s10.h[0]), this.options)), s10);
if (this._$AH?._$AD === e12) this._$AH.p(i12);
else {
const t11 = new M(e12, this), s11 = t11.u(this.options);
t11.p(i12), this.T(s11), this._$AH = t11;
}
}
_$AC(t10) {
let i12 = A.get(t10.strings);
return void 0 === i12 && A.set(t10.strings, i12 = new N(t10)), i12;
}
k(t10) {
a2(this._$AH) || (this._$AH = [], this._$AR());
const i12 = this._$AH;
let s10, e12 = 0;
for (const h9 of t10) e12 === i12.length ? i12.push(s10 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s10 = i12[e12], s10._$AI(h9), e12++;
e12 < i12.length && (this._$AR(s10 && s10._$AB.nextSibling, e12), i12.length = e12);
}
_$AR(t10 = this._$AA.nextSibling, i12) {
for (this._$AP?.(false, true, i12); t10 !== this._$AB; ) {
const i13 = t10.nextSibling;
t10.remove(), t10 = i13;
}
}
setConnected(t10) {
void 0 === this._$AM && (this._$Cv = t10, this._$AP?.(t10));
}
};
k = class {
get tagName() {
return this.element.tagName;
}
get _$AU() {
return this._$AM._$AU;
}
constructor(t10, i12, s10, e12, h9) {
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t10, this.name = i12, this._$AM = e12, this.options = h9, s10.length > 2 || "" !== s10[0] || "" !== s10[1] ? (this._$AH = Array(s10.length - 1).fill(new String()), this.strings = s10) : this._$AH = E;
}
_$AI(t10, i12 = this, s10, e12) {
const h9 = this.strings;
let o14 = false;
if (void 0 === h9) t10 = S2(this, t10, i12, 0), o14 = !c3(t10) || t10 !== this._$AH && t10 !== T, o14 && (this._$AH = t10);
else {
const e13 = t10;
let n14, r12;
for (t10 = h9[0], n14 = 0; n14 < h9.length - 1; n14++) r12 = S2(this, e13[s10 + n14], i12, n14), r12 === T && (r12 = this._$AH[n14]), o14 ||= !c3(r12) || r12 !== this._$AH[n14], r12 === E ? t10 = E : t10 !== E && (t10 += (r12 ?? "") + h9[n14 + 1]), this._$AH[n14] = r12;
}
o14 && !e12 && this.j(t10);
}
j(t10) {
t10 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t10 ?? "");
}
};
H = class extends k {
constructor() {
super(...arguments), this.type = 3;
}
j(t10) {
this.element[this.name] = t10 === E ? void 0 : t10;
}
};
I = class extends k {
constructor() {
super(...arguments), this.type = 4;
}
j(t10) {
this.element.toggleAttribute(this.name, !!t10 && t10 !== E);
}
};
L = class extends k {
constructor(t10, i12, s10, e12, h9) {
super(t10, i12, s10, e12, h9), this.type = 5;
}
_$AI(t10, i12 = this) {
if ((t10 = S2(this, t10, i12, 0) ?? E) === T) return;
const s10 = this._$AH, e12 = t10 === E && s10 !== E || t10.capture !== s10.capture || t10.once !== s10.once || t10.passive !== s10.passive, h9 = t10 !== E && (s10 === E || e12);
e12 && this.element.removeEventListener(this.name, this, s10), h9 && this.element.addEventListener(this.name, this, t10), this._$AH = t10;
}
handleEvent(t10) {
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t10) : this._$AH.handleEvent(t10);
}
};
z = class {
constructor(t10, i12, s10) {
this.element = t10, this.type = 6, this._$AN = void 0, this._$AM = i12, this.options = s10;
}
get _$AU() {
return this._$AM._$AU;
}
_$AI(t10) {
S2(this, t10);
}
};
Z = { M: e3, P: h2, A: o3, C: 1, L: V, R: M, D: u2, V: S2, I: R, H: k, N: I, U: L, B: H, F: z }, j2 = t2.litHtmlPolyfillSupport;
j2?.(N, R), (t2.litHtmlVersions ??= []).push("3.3.1");
B = (t10, i12, s10) => {
const e12 = s10?.renderBefore ?? i12;
let h9 = e12._$litPart$;
if (void 0 === h9) {
const t11 = s10?.renderBefore ?? null;
e12._$litPart$ = h9 = new R(i12.insertBefore(l2(), t11), t11, void 0, s10 ?? {});
}
return h9._$AI(t10), h9;
};
}
});
// node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js
var s3, i4, o4, n4;
var init_lit_element = __esm({
"node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js"() {
init_reactive_element();
init_reactive_element();
init_lit_html();
init_lit_html();
s3 = globalThis;
i4 = class extends y {
constructor() {
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
}
createRenderRoot() {
const t10 = super.createRenderRoot();
return this.renderOptions.renderBefore ??= t10.firstChild, t10;
}
update(t10) {
const r12 = this.render();
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t10), this._$Do = B(r12, this.renderRoot, this.renderOptions);
}
connectedCallback() {
super.connectedCallback(), this._$Do?.setConnected(true);
}
disconnectedCallback() {
super.disconnectedCallback(), this._$Do?.setConnected(false);
}
render() {
return T;
}
};
i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 });
o4 = s3.litElementPolyfillSupport;
o4?.({ LitElement: i4 });
n4 = { _$AK: (t10, e12, r12) => {
t10._$AK(e12, r12);
}, _$AL: (t10) => t10._$AL };
(s3.litElementVersions ??= []).push("4.2.1");
}
});
// node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/is-server.js
var o5;
var init_is_server = __esm({
"node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/is-server.js"() {
o5 = false;
}
});
// node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js
var init_lit = __esm({
"node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js"() {
init_reactive_element();
init_lit_html();
init_lit_element();
init_is_server();
}
});
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/custom-element.js
var t3;
var init_custom_element = __esm({
"node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/custom-element.js"() {
t3 = (t10) => (e12, o14) => {
void 0 !== o14 ? o14.addInitializer((() => {
customElements.define(t10, e12);
})) : customElements.define(t10, e12);
};
}
});
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js
function n5(t10) {
return (e12, o14) => "object" == typeof o14 ? r4(t10, e12, o14) : ((t11, e13, o15) => {
const r12 = e13.hasOwnProperty(o15);
return e13.constructor.createProperty(o15, t11), r12 ? Object.getOwnPropertyDescriptor(e13, o15) : void 0;
})(t10, e12, o14);
}
var o6, r4;
var init_property = __esm({
"node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js"() {
init_reactive_element();
o6 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f }, r4 = (t10 = o6, e12, r12) => {
const { kind: n14, metadata: i12 } = r12;
let s10 = globalThis.litPropertyMetadata.get(i12);
if (void 0 === s10 && globalThis.litPropertyMetadata.set(i12, s10 = /* @__PURE__ */ new Map()), "setter" === n14 && ((t10 = Object.create(t10)).wrapped = true), s10.set(r12.name, t10), "accessor" === n14) {
const { name: o14 } = r12;
return { set(r13) {
const n15 = e12.get.call(this);
e12.set.call(this, r13), this.requestUpdate(o14, n15, t10);
}, init(e13) {
return void 0 !== e13 && this.C(o14, void 0, t10, e13), e13;
} };
}
if ("setter" === n14) {
const { name: o14 } = r12;
return function(r13) {
const n15 = this[o14];
e12.call(this, r13), this.requestUpdate(o14, n15, t10);
};
}
throw Error("Unsupported decorator location: " + n14);
};
}
});
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js
function r5(r12) {
return n5({ ...r12, state: true, attribute: false });
}
var init_state = __esm({
"node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js"() {
init_property();
}
});
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/event-options.js
function t4(t10) {
return (n14, o14) => {
const c12 = "function" == typeof n14 ? n14 : n14[o14];
Object.assign(c12, t10);
};
}
var init_event_options = __esm({
"node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/event-options.js"() {
}
});
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/base.js
var e4;
var init_base = __esm({
"node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/base.js"() {
e4 = (e12, t10, c12) => (c12.configurable = true, c12.enumerable = true, Reflect.decorate && "object" != typeof t10 && Object.defineProperty(e12, t10, c12), c12);
}
});
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js
function e5(e12, r12) {
return (n14, s10, i12) => {
const o14 = (t10) => t10.renderRoot?.querySelector(e12) ?? null;
if (r12) {
const { get: e13, set: r13 } = "object" == typeof s10 ? n14 : i12 ?? (() => {
const t10 = Symbol();
return { get() {
return this[t10];
}, set(e14) {
this[t10] = e14;
} };
})();
return e4(n14, s10, { get() {
let t10 = e13.call(this);
return void 0 === t10 && (t10 = o14(this), (null !== t10 || this.hasUpdated) && r13.call(this, t10)), t10;
} });
}
return e4(n14, s10, { get() {
return o14(this);
} });
};
}
var init_query = __esm({
"node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js"() {
init_base();
}
});
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-all.js
function r6(r12) {
return (n14, o14) => e4(n14, o14, { get() {
return (this.renderRoot ?? (e6 ??= document.createDocumentFragment())).querySelectorAll(r12);
} });
}
var e6;
var init_query_all = __esm({
"node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-all.js"() {
init_base();
}
});
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-async.js
function r7(r12) {
return (n14, e12) => e4(n14, e12, { async get() {
return await this.updateComplete, this.renderRoot?.querySelector(r12) ?? null;
} });
}
var init_query_async = __esm({
"node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-async.js"() {
init_base();
}
});
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js
function o7(o14) {
return (e12, n14) => {
const { slot: r12, selector: s10 } = o14 ?? {}, c12 = "slot" + (r12 ? `[name=${r12}]` : ":not([name])");
return e4(e12, n14, { get() {
const t10 = this.renderRoot?.querySelector(c12), e13 = t10?.assignedElements(o14) ?? [];
return void 0 === s10 ? e13 : e13.filter(((t11) => t11.matches(s10)));
} });
};
}
var init_query_assigned_elements = __esm({
"node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js"() {
init_base();
}
});
// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js
function n6(n14) {
return (o14, r12) => {
const { slot: e12 } = n14 ?? {}, s10 = "slot" + (e12 ? `[name=${e12}]` : ":not([name])");
return e4(o14, r12, { get() {
const t10 = this.renderRoot?.querySelector(s10);
return t10?.assignedNodes(n14) ?? [];
} });
};
}
var init_query_assigned_nodes = __esm({
"node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js"() {
init_base();
}
});
// node_modules/.pnpm/lit@3.3.1/node_modules/lit/decorators.js
var init_decorators = __esm({
"node_modules/.pnpm/lit@3.3.1/node_modules/lit/decorators.js"() {
init_custom_element();
init_property();
init_state();
init_event_options();
init_query();
init_query_all();
init_query_async();
init_query_assigned_elements();
init_query_assigned_nodes();
}
});
// node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/smartpromise.classes.deferred.js
var Deferred, defer;
var init_smartpromise_classes_deferred = __esm({
"node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/smartpromise.classes.deferred.js"() {
Deferred = class {
claim() {
if (this.claimed) {
throw new Error("Deferred already claimed");
}
this.claimed = true;
}
get duration() {
if (this.stoppedAt) {
return this.stoppedAt - this.startedAt;
} else {
return Date.now() - this.startedAt;
}
}
constructor() {
this.claimed = false;
this.promise = new Promise((resolve2, reject) => {
this.resolve = (valueArg) => {
this.status = "fulfilled";
this.stoppedAt = Date.now();
resolve2(valueArg);
};
this.reject = (reason) => {
this.status = "rejected";
this.stoppedAt = Date.now();
reject(reason);
};
this.startedAt = Date.now();
this.status = "pending";
});
}
};
defer = () => {
return new Deferred();
};
}
});
// node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/smartpromise.classes.cumulativedeferred.js
var CumulativeDeferred, cumulativeDefer;
var init_smartpromise_classes_cumulativedeferred = __esm({
"node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/smartpromise.classes.cumulativedeferred.js"() {
init_smartpromise_classes_deferred();
CumulativeDeferred = class {
constructor() {
this.accumulatedPromises = [];
this.deferred = defer();
this.promise = this.deferred.promise;
setTimeout(async () => {
while (this.accumulatedPromises.length > 0) {
const poppedPromise = this.accumulatedPromises.shift();
await poppedPromise;
}
this.deferred.resolve();
}, 0);
}
subDefer() {
const done = defer();
this.addPromise(done.promise);
return done;
}
addPromise(promiseArg) {
this.accumulatedPromises.push(promiseArg);
}
};
cumulativeDefer = () => {
return new CumulativeDeferred();
};
}
});
// node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/index.js
var dist_ts_exports = {};
__export(dist_ts_exports, {
CumulativeDeferred: () => CumulativeDeferred,
Deferred: () => Deferred,
cumulativeDefer: () => cumulativeDefer,
defer: () => defer,
fromCallback: () => fromCallback,
getFirstTrueOrFalse: () => getFirstTrueOrFalse,
map: () => map,
rejectedPromise: () => rejectedPromise,
resolvedPromise: () => resolvedPromise,
timeoutAndContinue: () => timeoutAndContinue,
timeoutWrap: () => timeoutWrap
});
var resolvedPromise, rejectedPromise, map, timeoutWrap, timeoutAndContinue, getFirstTrueOrFalse, fromCallback;
var init_dist_ts = __esm({
"node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/index.js"() {
init_smartpromise_classes_deferred();
init_smartpromise_classes_cumulativedeferred();
init_smartpromise_classes_deferred();
resolvedPromise = (value2) => {
return Promise.resolve(value2);
};
rejectedPromise = (err) => {
return Promise.reject(err);
};
map = async (inputArg, functionArg) => {
const promiseArray = [];
const resultArray = [];
for (const item of inputArg) {
const promise = functionArg(item);
promiseArray.push(promise);
promise.then((x4) => {
resultArray.push(x4);
});
}
await Promise.all(promiseArray);
return resultArray;
};
timeoutWrap = async (promiseArg, timeoutInMsArg, rejectArg = true) => {
return new Promise((resolve2, reject) => {
setTimeout(() => {
if (rejectArg) {
reject(new Error("timeout"));
} else {
resolve2(null);
}
}, timeoutInMsArg);
promiseArg.then(resolve2, reject);
});
};
timeoutAndContinue = async (promiseArg, timeoutInMsArg = 6e4) => {
return timeoutWrap(promiseArg, timeoutInMsArg, false);
};
getFirstTrueOrFalse = async (promisesArg) => {
const done = defer();
for (const promiseArg of promisesArg) {
promiseArg.then((resultArg) => {
if (resultArg === true) {
done.resolve(true);
}
});
}
Promise.all(promisesArg).then(() => {
done.resolve(false);
});
return done.promise;
};
fromCallback = (fn) => {
return new Promise((resolve2, reject) => {
fn((err, result) => {
if (err) {
reject(err);
} else {
resolve2(result);
}
});
});
};
}
});
// node_modules/.pnpm/@push.rocks+smartdelay@3.0.5/node_modules/@push.rocks/smartdelay/dist_ts/index.js
var dist_ts_exports2 = {};
__export(dist_ts_exports2, {
Timeout: () => Timeout,
delayFor: () => delayFor,
delayForRandom: () => delayForRandom
});
var delayFor, delayForRandom, Timeout;
var init_dist_ts2 = __esm({
"node_modules/.pnpm/@push.rocks+smartdelay@3.0.5/node_modules/@push.rocks/smartdelay/dist_ts/index.js"() {
init_dist_ts();
delayFor = async (timeInMillisecondArg, passOnArg, unrefedArg = false) => {
const timeout2 = new Timeout(timeInMillisecondArg, null, unrefedArg);
await timeout2.promise;
return passOnArg;
};
delayForRandom = async (timeMinInMillisecondArg, timeMaxInMillisecondArg, passOnArg, unrefedArg = false) => {
await delayFor(Math.random() * (timeMaxInMillisecondArg - timeMinInMillisecondArg) + timeMinInMillisecondArg, null, unrefedArg);
return passOnArg;
};
Timeout = class {
constructor(timeInMillisecondArg, passOn, unrefedArg = false) {
this._cancelled = false;
this.timeoutInMillis = timeInMillisecondArg;
this._deferred = defer();
this.promise = this._deferred.promise;
this._timeout = setTimeout(() => {
if (!this._cancelled) {
this._deferred.resolve(passOn);
}
}, timeInMillisecondArg);
this.started = Date.now();
if (unrefedArg) {
this.makeUnrefed();
}
}
/**
* unreffing a timeout causes the node process to not wait for completion before exit
*/
makeUnrefed() {
this._timeout.unref();
}
/**
* cancels the timer
*/
cancel() {
this._cancelled = true;
clearTimeout(this._timeout);
}
getTimeLeft() {
const result = this.started + this.timeoutInMillis - Date.now();
return result > 0 ? result : 0;
}
};
}
});
// node_modules/.pnpm/@api.global+typedrequest-interfaces@3.0.19/node_modules/@api.global/typedrequest-interfaces/dist_ts/index.js
var dist_ts_exports3 = {};
var init_dist_ts3 = __esm({
"node_modules/.pnpm/@api.global+typedrequest-interfaces@3.0.19/node_modules/@api.global/typedrequest-interfaces/dist_ts/index.js"() {
}
});
// node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js
var require_dist_ts = __commonJS({
"node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.uni = void 0;
var uni3 = (prefix4 = "uni") => {
return `${prefix4}_${`xxxxxxxxxxxxxxxxxxxxxxxx`.replace(/[xy]/g, (c12) => {
const r12 = Math.random() * 16 | 0;
const v6 = c12 === "x" ? r12 : r12 & 3 | 8;
return v6.toString(16);
})}`;
};
exports.uni = uni3;
}
});
// node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js
function escapeStringRegexp(string3) {
if (typeof string3 !== "string") {
throw new TypeError("Expected a string");
}
return string3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
}
var init_escape_string_regexp = __esm({
"node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js"() {
}
});
// node_modules/.pnpm/matcher@5.0.0/node_modules/matcher/index.js
var matcher_exports = {};
__export(matcher_exports, {
isMatch: () => isMatch,
matcher: () => matcher
});
function matcher(inputs, patterns2, options2) {
return baseMatcher(inputs, patterns2, options2, false);
}
function isMatch(inputs, patterns2, options2) {
return baseMatcher(inputs, patterns2, options2, true).length > 0;
}
var regexpCache, sanitizeArray, makeRegexp, baseMatcher;
var init_matcher = __esm({
"node_modules/.pnpm/matcher@5.0.0/node_modules/matcher/index.js"() {
init_escape_string_regexp();
regexpCache = /* @__PURE__ */ new Map();
sanitizeArray = (input, inputName) => {
if (!Array.isArray(input)) {
switch (typeof input) {
case "string":
input = [input];
break;
case "undefined":
input = [];
break;
default:
throw new TypeError(`Expected '${inputName}' to be a string or an array, but got a type of '${typeof input}'`);
}
}
return input.filter((string3) => {
if (typeof string3 !== "string") {
if (typeof string3 === "undefined") {
return false;
}
throw new TypeError(`Expected '${inputName}' to be an array of strings, but found a type of '${typeof string3}' in the array`);
}
return true;
});
};
makeRegexp = (pattern, options2) => {
options2 = {
caseSensitive: false,
...options2
};
const cacheKey = pattern + JSON.stringify(options2);
if (regexpCache.has(cacheKey)) {
return regexpCache.get(cacheKey);
}
const negated = pattern[0] === "!";
if (negated) {
pattern = pattern.slice(1);
}
pattern = escapeStringRegexp(pattern).replace(/\\\*/g, "[\\s\\S]*");
const regexp2 = new RegExp(`^${pattern}$`, options2.caseSensitive ? "" : "i");
regexp2.negated = negated;
regexpCache.set(cacheKey, regexp2);
return regexp2;
};
baseMatcher = (inputs, patterns2, options2, firstMatchOnly) => {
inputs = sanitizeArray(inputs, "inputs");
patterns2 = sanitizeArray(patterns2, "patterns");
if (patterns2.length === 0) {
return [];
}
patterns2 = patterns2.map((pattern) => makeRegexp(pattern, options2));
const { allPatterns } = options2 || {};
const result = [];
for (const input of inputs) {
let matches2;
const didFit = [...patterns2].fill(false);
for (const [index3, pattern] of patterns2.entries()) {
if (pattern.test(input)) {
didFit[index3] = true;
matches2 = !patte