From 4cf62f4d98a2263f1e8b912903211d8810fb832e Mon Sep 17 00:00:00 2001 From: carddamom Date: Fri, 11 Sep 2026 13:54:18 +0100 Subject: [PATCH] Update mermaid versions --- web/mermaid-zenuml.js | 82076 +--------------------------------------- web/mermaid.min.js | 2967 +- 2 files changed, 3012 insertions(+), 82031 deletions(-) diff --git a/web/mermaid-zenuml.js b/web/mermaid-zenuml.js index d181ee3..483e3f0 100644 --- a/web/mermaid-zenuml.js +++ b/web/mermaid-zenuml.js @@ -1,73775 +1,36 @@ -"use strict"; -var __esbuild_esm_mermaid_nm; -(__esbuild_esm_mermaid_nm ||= {})["mermaid-zenuml"] = (() => { - var __defProp = Object.defineProperty; - var __getOwnPropDesc = Object.getOwnPropertyDescriptor; - var __getOwnPropNames = Object.getOwnPropertyNames; - var __hasOwnProp = Object.prototype.hasOwnProperty; - var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); - var __esm = (fn, res) => function __init() { - return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; - }; - var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); - }; - var __copyProps = (to2, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to2, key) && key !== except) - __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to2; - }; - var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - - // src/mermaidUtils.ts - var warning, log, setLogLevel, getConfig, sanitizeText, setupGraphViewbox, injectUtils; - var init_mermaidUtils = __esm({ - "src/mermaidUtils.ts"() { - "use strict"; - warning = /* @__PURE__ */ __name((s) => { - console.error("Log function was called before initialization", s); - }, "warning"); - log = { - trace: warning, - debug: warning, - info: warning, - warn: warning, - error: warning, - fatal: warning - }; - injectUtils = /* @__PURE__ */ __name((_log, _setLogLevel, _getConfig, _sanitizeText, _setupGraphViewbox) => { - _log.info("Mermaid utils injected"); - log.trace = _log.trace; - log.debug = _log.debug; - log.info = _log.info; - log.warn = _log.warn; - log.error = _log.error; - log.fatal = _log.fatal; - setLogLevel = _setLogLevel; - getConfig = _getConfig; - sanitizeText = _sanitizeText; - setupGraphViewbox = _setupGraphViewbox; - }, "injectUtils"); - } - }); - - // src/parser.ts - var parser_default; - var init_parser = __esm({ - "src/parser.ts"() { - "use strict"; - parser_default = { - parse: /* @__PURE__ */ __name(() => { - }, "parse") - }; - } - }); - - // ../../node_modules/.pnpm/@zenuml+core@3.35.2/node_modules/@zenuml/core/dist/zenuml.esm.mjs - function hb(i, e) { - for (var t = 0; t < e.length; t++) { - const n = e[t]; - if (typeof n != "string" && !Array.isArray(n)) { - for (const s in n) - if (s !== "default" && !(s in i)) { - const l = Object.getOwnPropertyDescriptor(n, s); - l && Object.defineProperty(i, s, l.get ? l : { - enumerable: true, - get: /* @__PURE__ */ __name(() => n[s], "get") - }); - } - } - } - return Object.freeze(Object.defineProperty(i, Symbol.toStringTag, { value: "Module" })); - } - function K4(i) { - return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i; - } - function fb() { - if (l_) return T5; - l_ = 1; - var i = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment"); - function t(n, s, l) { - var c = null; - if (l !== void 0 && (c = "" + l), s.key !== void 0 && (c = "" + s.key), "key" in s) { - l = {}; - for (var L in s) - L !== "key" && (l[L] = s[L]); - } else l = s; - return s = l.ref, { - $$typeof: i, - type: n, - key: c, - ref: s !== void 0 ? s : null, - props: l - }; - } - __name(t, "t"); - return T5.Fragment = e, T5.jsx = t, T5.jsxs = t, T5; - } - function Eb() { - return c_ || (c_ = 1, Wi.exports = fb()), Wi.exports; - } - function Sb() { - if (u_) return $i; - u_ = 1; - function i(t) { - try { - return JSON.stringify(t); - } catch { - return '"[Circular]"'; - } - } - __name(i, "i"); - $i = e; - function e(t, n, s) { - var l = s && s.stringify || i, c = 1; - if (typeof t == "object" && t !== null) { - var L = n.length + c; - if (L === 1) return t; - var d = new Array(L); - d[0] = l(t); - for (var _ = 1; _ < L; _++) - d[_] = l(n[_]); - return d.join(" "); - } - if (typeof t != "string") - return t; - var p = n.length; - if (p === 0) return t; - for (var m = "", f = 1 - c, h = -1, R = t && t.length || 0, b = 0; b < R; ) { - if (t.charCodeAt(b) === 37 && b + 1 < R) { - switch (h = h > -1 ? h : 0, t.charCodeAt(b + 1)) { - case 100: - // 'd' - case 102: - if (f >= p || n[f] == null) break; - h < b && (m += t.slice(h, b)), m += Number(n[f]), h = b + 2, b++; - break; - case 105: - if (f >= p || n[f] == null) break; - h < b && (m += t.slice(h, b)), m += Math.floor(Number(n[f])), h = b + 2, b++; - break; - case 79: - // 'O' - case 111: - // 'o' - case 106: - if (f >= p || n[f] === void 0) break; - h < b && (m += t.slice(h, b)); - var M = typeof n[f]; - if (M === "string") { - m += "'" + n[f] + "'", h = b + 2, b++; - break; - } - if (M === "function") { - m += n[f].name || "", h = b + 2, b++; - break; - } - m += l(n[f]), h = b + 2, b++; - break; - case 115: - if (f >= p) - break; - h < b && (m += t.slice(h, b)), m += String(n[f]), h = b + 2, b++; - break; - case 37: - h < b && (m += t.slice(h, b)), m += "%", h = b + 2, b++, f--; - break; - } - ++f; - } - ++b; - } - return h === -1 ? t : (h < R && (m += t.slice(h)), m); - } - __name(e, "e"); - return $i; - } - function Tb() { - if (L_) return v5.exports; - L_ = 1; - const i = Sb(); - v5.exports = p; - const e = R2().console || {}, t = { - mapHttpRequest: k, - mapHttpResponse: k, - wrapRequestSerializer: n2, - wrapResponseSerializer: n2, - wrapErrorSerializer: n2, - req: k, - res: k, - err: F, - errWithCause: F - }; - function n(H, A) { - return H === "silent" ? 1 / 0 : A.levels.values[H]; - } - __name(n, "n"); - const s = Symbol("pino.logFuncs"), l = Symbol("pino.hierarchy"), c = { - error: "log", - fatal: "error", - warn: "error", - info: "log", - debug: "log", - trace: "log" - }; - function L(H, A) { - const B = { - logger: A, - parent: H[l] - }; - A[l] = B; - } - __name(L, "L"); - function d(H, A, B) { - const e2 = {}; - A.forEach((u2) => { - e2[u2] = B[u2] ? B[u2] : e[u2] || e[c[u2] || "log"] || K; - }), H[s] = e2; - } - __name(d, "d"); - function _(H, A) { - return Array.isArray(H) ? H.filter(function(e2) { - return e2 !== "!stdSerializers.err"; - }) : H === true ? Object.keys(A) : false; - } - __name(_, "_"); - function p(H) { - H = H || {}, H.browser = H.browser || {}; - const A = H.browser.transmit; - if (A && typeof A.send != "function") - throw Error("pino: transmit option must have a send function"); - const B = H.browser.write || e; - H.browser.write && (H.browser.asObject = true); - const e2 = H.serializers || {}, u2 = _(H.browser.serialize, e2); - let y = H.browser.serialize; - Array.isArray(H.browser.serialize) && H.browser.serialize.indexOf("!stdSerializers.err") > -1 && (y = false); - const q = Object.keys(H.customLevels || {}), s2 = ["error", "fatal", "warn", "info", "debug", "trace"].concat(q); - typeof B == "function" && s2.forEach(function(p1) { - B[p1] = B; - }), (H.enabled === false || H.browser.disabled) && (H.level = "silent"); - const i2 = H.level || "info", a2 = Object.create(B); - a2.log || (a2.log = K), d(a2, s2, B), L({}, a2), Object.defineProperty(a2, "levelVal", { - get: f2 - }), Object.defineProperty(a2, "level", { - get: V2, - set: q2 - }); - const _2 = { - transmit: A, - serialize: u2, - asObject: H.browser.asObject, - formatters: H.browser.formatters, - levels: s2, - timestamp: U(H) - }; - a2.levels = m(H), a2.level = i2, a2.setMaxListeners = a2.getMaxListeners = a2.emit = a2.addListener = a2.on = a2.prependListener = a2.once = a2.prependOnceListener = a2.removeListener = a2.removeAllListeners = a2.listeners = a2.listenerCount = a2.eventNames = a2.write = a2.flush = K, a2.serializers = e2, a2._serialize = u2, a2._stdErrSerialize = y, a2.child = v1, A && (a2._logEvent = N()); - function f2() { - return n(this.level, this); - } - __name(f2, "f2"); - function V2() { - return this._level; - } - __name(V2, "V2"); - function q2(p1) { - if (p1 !== "silent" && !this.levels.values[p1]) - throw Error("unknown level " + p1); - this._level = p1, R(this, _2, a2, "error"), R(this, _2, a2, "fatal"), R(this, _2, a2, "warn"), R(this, _2, a2, "info"), R(this, _2, a2, "debug"), R(this, _2, a2, "trace"), q.forEach((P1) => { - R(this, _2, a2, P1); - }); - } - __name(q2, "q2"); - function v1(p1, P1) { - if (!p1) - throw new Error("missing bindings for child Pino"); - P1 = P1 || {}, u2 && p1.serializers && (P1.serializers = p1.serializers); - const z1 = P1.serializers; - if (u2 && z1) { - var he = Object.assign({}, e2, z1), de = H.browser.serialize === true ? Object.keys(he) : u2; - delete p1.serializers, O([p1], de, he, this._stdErrSerialize); - } - function g3(O1) { - this._childLevel = (O1._childLevel | 0) + 1, this.bindings = p1, he && (this.serializers = he, this._serialize = de), A && (this._logEvent = N( - [].concat(O1._logEvent.bindings, p1) - )); - } - __name(g3, "g3"); - g3.prototype = this; - const we = new g3(this); - return L(this, we), we.level = this.level, we; - } - __name(v1, "v1"); - return a2; - } - __name(p, "p"); - function m(H) { - const A = H.customLevels || {}, B = Object.assign({}, p.levels.values, A), e2 = Object.assign({}, p.levels.labels, f(A)); - return { - values: B, - labels: e2 - }; - } - __name(m, "m"); - function f(H) { - const A = {}; - return Object.keys(H).forEach(function(B) { - A[H[B]] = B; - }), A; - } - __name(f, "f"); - p.levels = { - values: { - fatal: 60, - error: 50, - warn: 40, - info: 30, - debug: 20, - trace: 10 - }, - labels: { - 10: "trace", - 20: "debug", - 30: "info", - 40: "warn", - 50: "error", - 60: "fatal" - } - }, p.stdSerializers = t, p.stdTimeFunctions = Object.assign({}, { nullTime: X, epochTime: r2, unixTime: t2, isoTime: g2 }); - function h(H) { - const A = []; - H.bindings && A.push(H.bindings); - let B = H[l]; - for (; B.parent; ) - B = B.parent, B.logger.bindings && A.push(B.logger.bindings); - return A.reverse(); - } - __name(h, "h"); - function R(H, A, B, e2) { - if (Object.defineProperty(H, e2, { - value: n(H.level, B) > n(e2, B) ? K : B[s][e2], - writable: true, - enumerable: true, - configurable: true - }), !A.transmit && H[e2] === K) - return; - H[e2] = M(H, A, B, e2); - const u2 = h(H); - u2.length !== 0 && (H[e2] = b(u2, H[e2])); - } - __name(R, "R"); - function b(H, A) { - return function() { - return A.apply(this, [...H, ...arguments]); - }; - } - __name(b, "b"); - function M(H, A, B, e2) { - return /* @__PURE__ */ function(u2) { - return function() { - const q = A.timestamp(), s2 = new Array(arguments.length), i2 = Object.getPrototypeOf && Object.getPrototypeOf(this) === e ? e : this; - for (var a2 = 0; a2 < s2.length; a2++) s2[a2] = arguments[a2]; - if (A.serialize && !A.asObject && O(s2, this._serialize, this.serializers, this._stdErrSerialize), A.asObject || A.formatters ? u2.call(i2, w(this, e2, s2, q, A.formatters)) : u2.apply(i2, s2), A.transmit) { - const _2 = A.transmit.level || H._level, f2 = B.levels.values[_2], V2 = B.levels.values[e2]; - if (V2 < f2) return; - D(this, { - ts: q, - methodLevel: e2, - methodValue: V2, - transmitValue: B.levels.values[A.transmit.level || H._level], - send: A.transmit.send, - val: n(H._level, B) - }, s2); - } - }; - }(H[s][e2]); - } - __name(M, "M"); - function w(H, A, B, e2, u2 = {}) { - const { - level: y = /* @__PURE__ */ __name(() => H.levels.values[A], "y"), - log: q = /* @__PURE__ */ __name((V2) => V2, "q") - } = u2; - H._serialize && O(B, H._serialize, H.serializers, H._stdErrSerialize); - const s2 = B.slice(); - let i2 = s2[0]; - const a2 = {}; - e2 && (a2.time = e2), a2.level = y(A, H.levels.values[A]); - let _2 = (H._childLevel | 0) + 1; - if (_2 < 1 && (_2 = 1), i2 !== null && typeof i2 == "object") { - for (; _2-- && typeof s2[0] == "object"; ) - Object.assign(a2, s2.shift()); - i2 = s2.length ? i(s2.shift(), s2) : void 0; - } else typeof i2 == "string" && (i2 = i(s2.shift(), s2)); - return i2 !== void 0 && (a2.msg = i2), q(a2); - } - __name(w, "w"); - function O(H, A, B, e2) { - for (const u2 in H) - if (e2 && H[u2] instanceof Error) - H[u2] = p.stdSerializers.err(H[u2]); - else if (typeof H[u2] == "object" && !Array.isArray(H[u2])) - for (const y in H[u2]) - A && A.indexOf(y) > -1 && y in B && (H[u2][y] = B[y](H[u2][y])); - } - __name(O, "O"); - function D(H, A, B) { - const e2 = A.send, u2 = A.ts, y = A.methodLevel, q = A.methodValue, s2 = A.val, i2 = H._logEvent.bindings; - O( - B, - H._serialize || Object.keys(H.serializers), - H.serializers, - H._stdErrSerialize === void 0 ? true : H._stdErrSerialize - ), H._logEvent.ts = u2, H._logEvent.messages = B.filter(function(a2) { - return i2.indexOf(a2) === -1; - }), H._logEvent.level.label = y, H._logEvent.level.value = q, e2(y, H._logEvent, s2), H._logEvent = N(i2); - } - __name(D, "D"); - function N(H) { - return { - ts: 0, - messages: [], - bindings: H || [], - level: { label: "", value: 0 } - }; - } - __name(N, "N"); - function F(H) { - const A = { - type: H.constructor.name, - msg: H.message, - stack: H.stack - }; - for (const B in H) - A[B] === void 0 && (A[B] = H[B]); - return A; - } - __name(F, "F"); - function U(H) { - return typeof H.timestamp == "function" ? H.timestamp : H.timestamp === false ? X : r2; - } - __name(U, "U"); - function k() { - return {}; - } - __name(k, "k"); - function n2(H) { - return H; - } - __name(n2, "n2"); - function K() { - } - __name(K, "K"); - function X() { - return false; - } - __name(X, "X"); - function r2() { - return Date.now(); - } - __name(r2, "r2"); - function t2() { - return Math.round(Date.now() / 1e3); - } - __name(t2, "t2"); - function g2() { - return new Date(Date.now()).toISOString(); - } - __name(g2, "g2"); - function R2() { - function H(A) { - return typeof A < "u" && A; - } - __name(H, "H"); - try { - return typeof globalThis < "u" || Object.defineProperty(Object.prototype, "globalThis", { - get: /* @__PURE__ */ __name(function() { - return delete Object.prototype.globalThis, this.globalThis = this; - }, "get"), - configurable: true - }), globalThis; - } catch { - return H(self) || H(window) || H(this) || {}; - } - } - __name(R2, "R2"); - return v5.exports.default = p, v5.exports.pino = p, v5.exports; - } - function xb(i, e) { - i[e] = (console[e] || console.log).bind(console); - } - function wb(i, e, t) { - i[e] = (console[e] || console.log).bind( - console, - t[0], - t[1] - ); - } - function Mb(i) { - d_.forEach((t) => xb(i, t)); - const e = i.child; - return i.child = function(t) { - const n = e.call(i, t); - return d_.forEach( - (s) => wb(n, s, ["%c" + t.name || "", "color: #00f"]) - ), n; - }, i; - } - function J1(i, e) { - const t = `atom${++kb}`, n = { - toString() { - return (oc ? "production" : void 0) !== "production" && this.debugLabel ? t + ":" + this.debugLabel : t; - } - }; - return typeof i == "function" ? n.read = i : (n.init = i, n.read = Pb, n.write = Fb), e && (n.write = e), n; - } - function Pb(i) { - return i(this); - } - function Fb(i, e, t) { - return e( - this, - typeof t == "function" ? t(i(this)) : t - ); - } - function lc() { - return (oc ? "production" : void 0) !== "production" ? Ub() : eE(); - } - function Zb() { - return R5 || (R5 = lc(), (oc ? "production" : void 0) !== "production" && (globalThis.__JOTAI_DEFAULT_STORE__ || (globalThis.__JOTAI_DEFAULT_STORE__ = R5), globalThis.__JOTAI_DEFAULT_STORE__ !== R5 && console.warn( - "Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044" - ))), R5; - } - function Bb() { - if (f_) return J2; - f_ = 1; - var i = Symbol.for("react.transitional.element"), e = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.consumer"), c = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), _ = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.iterator; - function f(y) { - return y === null || typeof y != "object" ? null : (y = m && y[m] || y["@@iterator"], typeof y == "function" ? y : null); - } - __name(f, "f"); - var h = { - isMounted: /* @__PURE__ */ __name(function() { - return false; - }, "isMounted"), - enqueueForceUpdate: /* @__PURE__ */ __name(function() { - }, "enqueueForceUpdate"), - enqueueReplaceState: /* @__PURE__ */ __name(function() { - }, "enqueueReplaceState"), - enqueueSetState: /* @__PURE__ */ __name(function() { - }, "enqueueSetState") - }, R = Object.assign, b = {}; - function M(y, q, s2) { - this.props = y, this.context = q, this.refs = b, this.updater = s2 || h; - } - __name(M, "M"); - M.prototype.isReactComponent = {}, M.prototype.setState = function(y, q) { - if (typeof y != "object" && typeof y != "function" && y != null) - throw Error( - "takes an object of state variables to update or a function which returns an object of state variables." - ); - this.updater.enqueueSetState(this, y, q, "setState"); - }, M.prototype.forceUpdate = function(y) { - this.updater.enqueueForceUpdate(this, y, "forceUpdate"); - }; - function w() { - } - __name(w, "w"); - w.prototype = M.prototype; - function O(y, q, s2) { - this.props = y, this.context = q, this.refs = b, this.updater = s2 || h; - } - __name(O, "O"); - var D = O.prototype = new w(); - D.constructor = O, R(D, M.prototype), D.isPureReactComponent = true; - var N = Array.isArray, F = { H: null, A: null, T: null, S: null, V: null }, U = Object.prototype.hasOwnProperty; - function k(y, q, s2, i2, a2, _2) { - return s2 = _2.ref, { - $$typeof: i, - type: y, - key: q, - ref: s2 !== void 0 ? s2 : null, - props: _2 - }; - } - __name(k, "k"); - function n2(y, q) { - return k( - y.type, - q, - void 0, - void 0, - void 0, - y.props - ); - } - __name(n2, "n2"); - function K(y) { - return typeof y == "object" && y !== null && y.$$typeof === i; - } - __name(K, "K"); - function X(y) { - var q = { "=": "=0", ":": "=2" }; - return "$" + y.replace(/[=:]/g, function(s2) { - return q[s2]; - }); - } - __name(X, "X"); - var r2 = /\/+/g; - function t2(y, q) { - return typeof y == "object" && y !== null && y.key != null ? X("" + y.key) : q.toString(36); - } - __name(t2, "t2"); - function g2() { - } - __name(g2, "g2"); - function R2(y) { - switch (y.status) { - case "fulfilled": - return y.value; - case "rejected": - throw y.reason; - default: - switch (typeof y.status == "string" ? y.then(g2, g2) : (y.status = "pending", y.then( - function(q) { - y.status === "pending" && (y.status = "fulfilled", y.value = q); - }, - function(q) { - y.status === "pending" && (y.status = "rejected", y.reason = q); - } - )), y.status) { - case "fulfilled": - return y.value; - case "rejected": - throw y.reason; - } - } - throw y; - } - __name(R2, "R2"); - function H(y, q, s2, i2, a2) { - var _2 = typeof y; - (_2 === "undefined" || _2 === "boolean") && (y = null); - var f2 = false; - if (y === null) f2 = true; - else - switch (_2) { - case "bigint": - case "string": - case "number": - f2 = true; - break; - case "object": - switch (y.$$typeof) { - case i: - case e: - f2 = true; - break; - case p: - return f2 = y._init, H( - f2(y._payload), - q, - s2, - i2, - a2 - ); - } - } - if (f2) - return a2 = a2(y), f2 = i2 === "" ? "." + t2(y, 0) : i2, N(a2) ? (s2 = "", f2 != null && (s2 = f2.replace(r2, "$&/") + "/"), H(a2, q, s2, "", function(v1) { - return v1; - })) : a2 != null && (K(a2) && (a2 = n2( - a2, - s2 + (a2.key == null || y && y.key === a2.key ? "" : ("" + a2.key).replace( - r2, - "$&/" - ) + "/") + f2 - )), q.push(a2)), 1; - f2 = 0; - var V2 = i2 === "" ? "." : i2 + ":"; - if (N(y)) - for (var q2 = 0; q2 < y.length; q2++) - i2 = y[q2], _2 = V2 + t2(i2, q2), f2 += H( - i2, - q, - s2, - _2, - a2 - ); - else if (q2 = f(y), typeof q2 == "function") - for (y = q2.call(y), q2 = 0; !(i2 = y.next()).done; ) - i2 = i2.value, _2 = V2 + t2(i2, q2++), f2 += H( - i2, - q, - s2, - _2, - a2 - ); - else if (_2 === "object") { - if (typeof y.then == "function") - return H( - R2(y), - q, - s2, - i2, - a2 - ); - throw q = String(y), Error( - "Objects are not valid as a React child (found: " + (q === "[object Object]" ? "object with keys {" + Object.keys(y).join(", ") + "}" : q) + "). If you meant to render a collection of children, use an array instead." - ); - } - return f2; - } - __name(H, "H"); - function A(y, q, s2) { - if (y == null) return y; - var i2 = [], a2 = 0; - return H(y, i2, "", "", function(_2) { - return q.call(s2, _2, a2++); - }), i2; - } - __name(A, "A"); - function B(y) { - if (y._status === -1) { - var q = y._result; - q = q(), q.then( - function(s2) { - (y._status === 0 || y._status === -1) && (y._status = 1, y._result = s2); - }, - function(s2) { - (y._status === 0 || y._status === -1) && (y._status = 2, y._result = s2); - } - ), y._status === -1 && (y._status = 0, y._result = q); - } - if (y._status === 1) return y._result.default; - throw y._result; - } - __name(B, "B"); - var e2 = typeof reportError == "function" ? reportError : function(y) { - if (typeof window == "object" && typeof window.ErrorEvent == "function") { - var q = new window.ErrorEvent("error", { - bubbles: true, - cancelable: true, - message: typeof y == "object" && y !== null && typeof y.message == "string" ? String(y.message) : String(y), - error: y - }); - if (!window.dispatchEvent(q)) return; - } else if (typeof process == "object" && typeof process.emit == "function") { - process.emit("uncaughtException", y); - return; - } - console.error(y); - }; - function u2() { - } - __name(u2, "u2"); - return J2.Children = { - map: A, - forEach: /* @__PURE__ */ __name(function(y, q, s2) { - A( - y, - function() { - q.apply(this, arguments); - }, - s2 - ); - }, "forEach"), - count: /* @__PURE__ */ __name(function(y) { - var q = 0; - return A(y, function() { - q++; - }), q; - }, "count"), - toArray: /* @__PURE__ */ __name(function(y) { - return A(y, function(q) { - return q; - }) || []; - }, "toArray"), - only: /* @__PURE__ */ __name(function(y) { - if (!K(y)) - throw Error( - "React.Children.only expected to receive a single React element child." - ); - return y; - }, "only") - }, J2.Component = M, J2.Fragment = t, J2.Profiler = s, J2.PureComponent = O, J2.StrictMode = n, J2.Suspense = d, J2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = F, J2.__COMPILER_RUNTIME = { - __proto__: null, - c: /* @__PURE__ */ __name(function(y) { - return F.H.useMemoCache(y); - }, "c") - }, J2.cache = function(y) { - return function() { - return y.apply(null, arguments); - }; - }, J2.cloneElement = function(y, q, s2) { - if (y == null) - throw Error( - "The argument must be a React element, but you passed " + y + "." - ); - var i2 = R({}, y.props), a2 = y.key, _2 = void 0; - if (q != null) - for (f2 in q.ref !== void 0 && (_2 = void 0), q.key !== void 0 && (a2 = "" + q.key), q) - !U.call(q, f2) || f2 === "key" || f2 === "__self" || f2 === "__source" || f2 === "ref" && q.ref === void 0 || (i2[f2] = q[f2]); - var f2 = arguments.length - 2; - if (f2 === 1) i2.children = s2; - else if (1 < f2) { - for (var V2 = Array(f2), q2 = 0; q2 < f2; q2++) - V2[q2] = arguments[q2 + 2]; - i2.children = V2; - } - return k(y.type, a2, void 0, void 0, _2, i2); - }, J2.createContext = function(y) { - return y = { - $$typeof: c, - _currentValue: y, - _currentValue2: y, - _threadCount: 0, - Provider: null, - Consumer: null - }, y.Provider = y, y.Consumer = { - $$typeof: l, - _context: y - }, y; - }, J2.createElement = function(y, q, s2) { - var i2, a2 = {}, _2 = null; - if (q != null) - for (i2 in q.key !== void 0 && (_2 = "" + q.key), q) - U.call(q, i2) && i2 !== "key" && i2 !== "__self" && i2 !== "__source" && (a2[i2] = q[i2]); - var f2 = arguments.length - 2; - if (f2 === 1) a2.children = s2; - else if (1 < f2) { - for (var V2 = Array(f2), q2 = 0; q2 < f2; q2++) - V2[q2] = arguments[q2 + 2]; - a2.children = V2; - } - if (y && y.defaultProps) - for (i2 in f2 = y.defaultProps, f2) - a2[i2] === void 0 && (a2[i2] = f2[i2]); - return k(y, _2, void 0, void 0, null, a2); - }, J2.createRef = function() { - return { current: null }; - }, J2.forwardRef = function(y) { - return { $$typeof: L, render: y }; - }, J2.isValidElement = K, J2.lazy = function(y) { - return { - $$typeof: p, - _payload: { _status: -1, _result: y }, - _init: B - }; - }, J2.memo = function(y, q) { - return { - $$typeof: _, - type: y, - compare: q === void 0 ? null : q - }; - }, J2.startTransition = function(y) { - var q = F.T, s2 = {}; - F.T = s2; - try { - var i2 = y(), a2 = F.S; - a2 !== null && a2(s2, i2), typeof i2 == "object" && i2 !== null && typeof i2.then == "function" && i2.then(u2, e2); - } catch (_2) { - e2(_2); - } finally { - F.T = q; - } - }, J2.unstable_useCacheRefresh = function() { - return F.H.useCacheRefresh(); - }, J2.use = function(y) { - return F.H.use(y); - }, J2.useActionState = function(y, q, s2) { - return F.H.useActionState(y, q, s2); - }, J2.useCallback = function(y, q) { - return F.H.useCallback(y, q); - }, J2.useContext = function(y) { - return F.H.useContext(y); - }, J2.useDebugValue = function() { - }, J2.useDeferredValue = function(y, q) { - return F.H.useDeferredValue(y, q); - }, J2.useEffect = function(y, q, s2) { - var i2 = F.H; - if (typeof s2 == "function") - throw Error( - "useEffect CRUD overload is not enabled in this build of React." - ); - return i2.useEffect(y, q); - }, J2.useId = function() { - return F.H.useId(); - }, J2.useImperativeHandle = function(y, q, s2) { - return F.H.useImperativeHandle(y, q, s2); - }, J2.useInsertionEffect = function(y, q) { - return F.H.useInsertionEffect(y, q); - }, J2.useLayoutEffect = function(y, q) { - return F.H.useLayoutEffect(y, q); - }, J2.useMemo = function(y, q) { - return F.H.useMemo(y, q); - }, J2.useOptimistic = function(y, q) { - return F.H.useOptimistic(y, q); - }, J2.useReducer = function(y, q, s2) { - return F.H.useReducer(y, q, s2); - }, J2.useRef = function(y) { - return F.H.useRef(y); - }, J2.useState = function(y) { - return F.H.useState(y); - }, J2.useSyncExternalStore = function(y, q, s2) { - return F.H.useSyncExternalStore( - y, - q, - s2 - ); - }, J2.useTransition = function() { - return F.H.useTransition(); - }, J2.version = "19.1.0", J2; - } - function cc() { - return E_ || (E_ = 1, Xi.exports = Bb()), Xi.exports; - } - function uc(i) { - return v.useContext(tE) || Zb(); - } - function zb({ - children: i, - store: e - }) { - const t = v.useRef(void 0); - return !e && !t.current && (t.current = lc()), v.createElement( - tE.Provider, - { - value: e || t.current - }, - i - ); - } - function j2(i, e) { - const t = uc(), [[n, s, l], c] = v.useReducer( - (_) => { - const p = t.get(i); - return Object.is(_[0], p) && _[1] === t && _[2] === i ? _ : [p, t, i]; - }, - void 0, - () => [t.get(i), t, i] - ); - let L = n; - if ((s !== t || l !== i) && (c(), L = t.get(i)), v.useEffect(() => { - const _ = t.sub(i, () => { - c(); - }); - return c(), _; - }, [t, i, void 0]), v.useDebugValue(L), nE(L)) { - const _ = Vb(L, () => t.get(i)); - return Yb(_); - } - return L; - } - function E0(i, e) { - const t = uc(); - return v.useCallback( - (...s) => { - if ((Gb ? "production" : void 0) !== "production" && !("write" in i)) - throw new Error("not writable atom"); - return t.set(i, ...s); - }, - [t, i] - ); - } - function c4(i, e) { - return [ - j2(i), - // We do wrong type assertion here, which results in throwing an error. - E0(i) - ]; - } - function C0(i, e) { - if (!Array.isArray(i) || !Array.isArray(e)) - return false; - if (i === e) - return true; - if (i.length !== e.length) - return false; - for (let t = 0; t < i.length; t++) - if (i[t] !== e[t] && (!i[t].equals || !i[t].equals(e[t]))) - return false; - return true; - } - function rE(i) { - return i ? i.hashCode() : -1; - } - function aE(i, e) { - return i ? i.equals(e) : i === e; - } - function qb(i) { - return i === null ? "null" : i; - } - function It(i) { - return Array.isArray(i) ? "[" + i.map(qb).join(", ") + "]" : "null"; - } - function sE(i) { - const e = []; - return i.values().map(function(t) { - t instanceof g1.PrecedencePredicate && e.push(t); - }), e; - } - function S_(i, e) { - if (i === null) { - const t = { state: null, alt: null, context: null, semanticContext: null }; - return e && (t.reachesIntoOuterContext = 0), t; - } else { - const t = {}; - return t.state = i.state || null, t.alt = i.alt === void 0 ? null : i.alt, t.context = i.context || null, t.semanticContext = i.semanticContext || null, e && (t.reachesIntoOuterContext = i.reachesIntoOuterContext || 0, t.precedenceFilterSuppressed = i.precedenceFilterSuppressed || false), t; - } - } - function Kb(i, e) { - return i = i.replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r"), i; - } - function _c(i, e) { - if (e == null && (e = _0.EMPTY), e.parentCtx === null || e === _0.EMPTY) - return t1.EMPTY; - const t = _c(i, e.parentCtx), s = i.states[e.invokingState].transitions[0]; - return We.create(t, s.followState.stateNumber); - } - function cE(i, e, t) { - if (i.isEmpty()) - return i; - let n = t.get(i) || null; - if (n !== null) - return n; - if (n = e.get(i), n !== null) - return t.set(i, n), n; - let s = false, l = []; - for (let L = 0; L < l.length; L++) { - const d = cE(i.getParent(L), e, t); - if (s || d !== i.getParent(L)) { - if (!s) { - l = []; - for (let _ = 0; _ < i.length; _++) - l[_] = i.getParent(_); - s = true; - } - l[L] = d; - } - } - if (!s) - return e.add(i), t.set(i, i), i; - let c = null; - return l.length === 0 ? c = t1.EMPTY : l.length === 1 ? c = We.create(l[0], i.getReturnState(0)) : c = new x4(l, i.returnStates), e.add(c), t.set(c, c), t.set(i, c), c; - } - function gc(i, e, t, n) { - if (i === e) - return i; - if (i instanceof We && e instanceof We) - return Xb(i, e, t, n); - if (t) { - if (i instanceof Sl) - return i; - if (e instanceof Sl) - return e; - } - return i instanceof We && (i = new x4([i.getParent()], [i.returnState])), e instanceof We && (e = new x4([e.getParent()], [e.returnState])), Qb(i, e, t, n); - } - function Qb(i, e, t, n) { - if (n !== null) { - let p = n.get(i, e); - if (p !== null || (p = n.get(e, i), p !== null)) - return p; - } - let s = 0, l = 0, c = 0, L = [], d = []; - for (; s < i.returnStates.length && l < e.returnStates.length; ) { - const p = i.parents[s], m = e.parents[l]; - if (i.returnStates[s] === e.returnStates[l]) { - const f = i.returnStates[s]; - f === t1.EMPTY_RETURN_STATE && p === null && m === null || p !== null && m !== null && p === m ? (d[c] = p, L[c] = f) : (d[c] = gc(p, m, t, n), L[c] = f), s += 1, l += 1; - } else i.returnStates[s] < e.returnStates[l] ? (d[c] = p, L[c] = i.returnStates[s], s += 1) : (d[c] = m, L[c] = e.returnStates[l], l += 1); - c += 1; - } - if (s < i.returnStates.length) - for (let p = s; p < i.returnStates.length; p++) - d[c] = i.parents[p], L[c] = i.returnStates[p], c += 1; - else - for (let p = l; p < e.returnStates.length; p++) - d[c] = e.parents[p], L[c] = e.returnStates[p], c += 1; - if (c < d.length) { - if (c === 1) { - const p = We.create( - d[0], - L[0] - ); - return n !== null && n.set(i, e, p), p; - } - d = d.slice(0, c), L = L.slice(0, c); - } - const _ = new x4(d, L); - return _ === i ? (n !== null && n.set(i, e, i), i) : _ === e ? (n !== null && n.set(i, e, e), e) : (jb(d), n !== null && n.set(i, e, _), _); - } - function jb(i) { - const e = new nn(); - for (let t = 0; t < i.length; t++) { - const n = i[t]; - e.containsKey(n) || e.set(n, n); - } - for (let t = 0; t < i.length; t++) - i[t] = e.get(i[t]); - } - function Xb(i, e, t, n) { - if (n !== null) { - let l = n.get(i, e); - if (l !== null || (l = n.get(e, i), l !== null)) - return l; - } - const s = Jb(i, e, t); - if (s !== null) - return n !== null && n.set(i, e, s), s; - if (i.returnState === e.returnState) { - const l = gc(i.parentCtx, e.parentCtx, t, n); - if (l === i.parentCtx) - return i; - if (l === e.parentCtx) - return e; - const c = We.create(l, i.returnState); - return n !== null && n.set(i, e, c), c; - } else { - let l = null; - if ((i === e || i.parentCtx !== null && i.parentCtx === e.parentCtx) && (l = i.parentCtx), l !== null) { - const _ = [i.returnState, e.returnState]; - i.returnState > e.returnState && (_[0] = e.returnState, _[1] = i.returnState); - const p = [l, l], m = new x4(p, _); - return n !== null && n.set(i, e, m), m; - } - const c = [i.returnState, e.returnState]; - let L = [i.parentCtx, e.parentCtx]; - i.returnState > e.returnState && (c[0] = e.returnState, c[1] = i.returnState, L = [e.parentCtx, i.parentCtx]); - const d = new x4(L, c); - return n !== null && n.set(i, e, d), d; - } - } - function Jb(i, e, t) { - if (t) { - if (i === t1.EMPTY || e === t1.EMPTY) - return t1.EMPTY; - } else { - if (i === t1.EMPTY && e === t1.EMPTY) - return t1.EMPTY; - if (i === t1.EMPTY) { - const n = [ - e.returnState, - t1.EMPTY_RETURN_STATE - ], s = [e.parentCtx, null]; - return new x4(s, n); - } else if (e === t1.EMPTY) { - const n = [i.returnState, t1.EMPTY_RETURN_STATE], s = [i.parentCtx, null]; - return new x4(s, n); - } - } - return null; - } - function R8(i, e) { - const t = []; - return t[i - 1] = e, t.map(function(n) { - return e; - }); - } - function rx(i) { - return i.hashCodeForConfigSet(); - } - function ax(i, e) { - return i === e ? true : i === null || e === null ? false : i.equalsForConfigSet(e); - } - function M_(i) { - i.index = -1, i.line = 0, i.column = -1, i.dfaState = null; - } - function gx(i, e) { - return e !== null ? e : "failed predicate: {" + i + "}?"; - } - function VE(i) { - try { - if (i == null) return false; - const e = this.start.start, t = this.Body().stop.stop + 1; - return i >= e && i <= t; - } catch { - return false; - } - } - function ou(i) { - for (; i; ) { - if (i instanceof T0 || i instanceof su) - return i.Owner(); - i = i.parentCtx; - } - } - function tS() { - if (I_) return ar; - I_ = 1; - function i(e, t) { - switch (e) { - case 0: - return function() { - return t.apply(this, arguments); - }; - case 1: - return function(n) { - return t.apply(this, arguments); - }; - case 2: - return function(n, s) { - return t.apply(this, arguments); - }; - case 3: - return function(n, s, l) { - return t.apply(this, arguments); - }; - case 4: - return function(n, s, l, c) { - return t.apply(this, arguments); - }; - case 5: - return function(n, s, l, c, L) { - return t.apply(this, arguments); - }; - case 6: - return function(n, s, l, c, L, d) { - return t.apply(this, arguments); - }; - case 7: - return function(n, s, l, c, L, d, _) { - return t.apply(this, arguments); - }; - case 8: - return function(n, s, l, c, L, d, _, p) { - return t.apply(this, arguments); - }; - case 9: - return function(n, s, l, c, L, d, _, p, m) { - return t.apply(this, arguments); - }; - case 10: - return function(n, s, l, c, L, d, _, p, m, f) { - return t.apply(this, arguments); - }; - default: - throw new Error("First argument to _arity must be a non-negative integer no greater than ten"); - } - } - __name(i, "i"); - return ar = i, ar; - } - function aw() { - if (D_) return sr; - D_ = 1; - function i(e, t) { - return function() { - return t.call(this, e.apply(this, arguments)); - }; - } - __name(i, "i"); - return sr = i, sr; - } - function cu() { - if (k_) return or; - k_ = 1; - function i(e) { - return e != null && typeof e == "object" && e["@@functional/placeholder"] === true; - } - __name(i, "i"); - return or = i, or; - } - function b6() { - if (P_) return lr; - P_ = 1; - var i = /* @__PURE__ */ cu(); - function e(t) { - return /* @__PURE__ */ __name(function n(s) { - return arguments.length === 0 || i(s) ? n : t.apply(this, arguments); - }, "n"); - } - __name(e, "e"); - return lr = e, lr; - } - function nS() { - if (F_) return cr; - F_ = 1; - var i = /* @__PURE__ */ b6(), e = /* @__PURE__ */ cu(); - function t(n) { - return /* @__PURE__ */ __name(function s(l, c) { - switch (arguments.length) { - case 0: - return s; - case 1: - return e(l) ? s : i(function(L) { - return n(l, L); - }); - default: - return e(l) && e(c) ? s : e(l) ? i(function(L) { - return n(L, c); - }) : e(c) ? i(function(L) { - return n(l, L); - }) : n(l, c); - } - }, "s"); - } - __name(t, "t"); - return cr = t, cr; - } - function uu() { - if (U_) return ur; - U_ = 1; - var i = /* @__PURE__ */ b6(), e = /* @__PURE__ */ nS(), t = /* @__PURE__ */ cu(); - function n(s) { - return /* @__PURE__ */ __name(function l(c, L, d) { - switch (arguments.length) { - case 0: - return l; - case 1: - return t(c) ? l : e(function(_, p) { - return s(c, _, p); - }); - case 2: - return t(c) && t(L) ? l : t(c) ? e(function(_, p) { - return s(_, L, p); - }) : t(L) ? e(function(_, p) { - return s(c, _, p); - }) : i(function(_) { - return s(c, L, _); - }); - default: - return t(c) && t(L) && t(d) ? l : t(c) && t(L) ? e(function(_, p) { - return s(_, p, d); - }) : t(c) && t(d) ? e(function(_, p) { - return s(_, L, p); - }) : t(L) && t(d) ? e(function(_, p) { - return s(c, _, p); - }) : t(c) ? i(function(_) { - return s(_, L, d); - }) : t(L) ? i(function(_) { - return s(c, _, d); - }) : t(d) ? i(function(_) { - return s(c, L, _); - }) : s(c, L, d); - } - }, "l"); - } - __name(n, "n"); - return ur = n, ur; - } - function iS() { - return Z_ || (Z_ = 1, Lr = Array.isArray || function(e) { - return e != null && e.length >= 0 && Object.prototype.toString.call(e) === "[object Array]"; - }), Lr; - } - function sw() { - if (B_) return dr; - B_ = 1; - function i(e) { - return Object.prototype.toString.call(e) === "[object String]"; - } - __name(i, "i"); - return dr = i, dr; - } - function ow() { - if (G_) return Cr; - G_ = 1; - var i = /* @__PURE__ */ b6(), e = /* @__PURE__ */ iS(), t = /* @__PURE__ */ sw(), n = /* @__PURE__ */ i(function(l) { - return e(l) ? true : !l || typeof l != "object" || t(l) ? false : l.length === 0 ? true : l.length > 0 ? l.hasOwnProperty(0) && l.hasOwnProperty(l.length - 1) : false; - }); - return Cr = n, Cr; - } - function lw() { - if (z_) return _r; - z_ = 1; - var i = /* @__PURE__ */ function() { - function t(n) { - this.f = n; - } - __name(t, "t"); - return t.prototype["@@transducer/init"] = function() { - throw new Error("init not implemented on XWrap"); - }, t.prototype["@@transducer/result"] = function(n) { - return n; - }, t.prototype["@@transducer/step"] = function(n, s) { - return this.f(n, s); - }, t; - }(); - function e(t) { - return new i(t); - } - __name(e, "e"); - return _r = e, _r; - } - function cw() { - if (H_) return gr; - H_ = 1; - var i = /* @__PURE__ */ tS(), e = /* @__PURE__ */ nS(), t = /* @__PURE__ */ e(function(s, l) { - return i(s.length, function() { - return s.apply(l, arguments); - }); - }); - return gr = t, gr; - } - function uw() { - if (Y_) return pr; - Y_ = 1; - var i = /* @__PURE__ */ ow(), e = /* @__PURE__ */ lw(), t = /* @__PURE__ */ cw(); - function n(d, _, p) { - for (var m = 0, f = p.length; m < f; ) { - if (_ = d["@@transducer/step"](_, p[m]), _ && _["@@transducer/reduced"]) { - _ = _["@@transducer/value"]; - break; - } - m += 1; - } - return d["@@transducer/result"](_); - } - __name(n, "n"); - function s(d, _, p) { - for (var m = p.next(); !m.done; ) { - if (_ = d["@@transducer/step"](_, m.value), _ && _["@@transducer/reduced"]) { - _ = _["@@transducer/value"]; - break; - } - m = p.next(); - } - return d["@@transducer/result"](_); - } - __name(s, "s"); - function l(d, _, p, m) { - return d["@@transducer/result"](p[m](t(d["@@transducer/step"], d), _)); - } - __name(l, "l"); - var c = typeof Symbol < "u" ? Symbol.iterator : "@@iterator"; - function L(d, _, p) { - if (typeof d == "function" && (d = e(d)), i(p)) - return n(d, _, p); - if (typeof p["fantasy-land/reduce"] == "function") - return l(d, _, p, "fantasy-land/reduce"); - if (p[c] != null) - return s(d, _, p[c]()); - if (typeof p.next == "function") - return s(d, _, p); - if (typeof p.reduce == "function") - return l(d, _, p, "reduce"); - throw new TypeError("reduce: list must be array or iterable"); - } - __name(L, "L"); - return pr = L, pr; - } - function Lw() { - if (V_) return mr; - V_ = 1; - var i = /* @__PURE__ */ uu(), e = /* @__PURE__ */ uw(), t = /* @__PURE__ */ i(e); - return mr = t, mr; - } - function rS() { - if (q_) return hr; - q_ = 1; - var i = /* @__PURE__ */ iS(); - function e(t, n) { - return function() { - var s = arguments.length; - if (s === 0) - return n(); - var l = arguments[s - 1]; - return i(l) || typeof l[t] != "function" ? n.apply(this, arguments) : l[t].apply(l, Array.prototype.slice.call(arguments, 0, s - 1)); - }; - } - __name(e, "e"); - return hr = e, hr; - } - function dw() { - if (W_) return fr; - W_ = 1; - var i = /* @__PURE__ */ rS(), e = /* @__PURE__ */ uu(), t = /* @__PURE__ */ e( - /* @__PURE__ */ i("slice", function(s, l, c) { - return Array.prototype.slice.call(c, s, l); - }) - ); - return fr = t, fr; - } - function Cw() { - if ($_) return Er; - $_ = 1; - var i = /* @__PURE__ */ rS(), e = /* @__PURE__ */ b6(), t = /* @__PURE__ */ dw(), n = /* @__PURE__ */ e( - /* @__PURE__ */ i( - "tail", - /* @__PURE__ */ t(1, 1 / 0) - ) - ); - return Er = n, Er; - } - function _w() { - if (K_) return Sr; - K_ = 1; - var i = /* @__PURE__ */ tS(), e = /* @__PURE__ */ aw(), t = /* @__PURE__ */ Lw(), n = /* @__PURE__ */ Cw(); - function s() { - if (arguments.length === 0) - throw new Error("pipe requires at least one argument"); - return i(arguments[0].length, t(e, arguments[0], n(arguments))); - } - __name(s, "s"); - return Sr = s, Sr; - } - function mw() { - if (Q_) return Tr; - Q_ = 1; - var i = /* @__PURE__ */ uu(), e = /* @__PURE__ */ i(function(n, s, l) { - return l.replace(n, s); - }); - return Tr = e, Tr; - } - function ww(i) { - const e = new $.InputStream(i), t = new S2(e), n = new $.CommonTokenStream(t), s = new T(n); - return s.addErrorListener(new xw()), s._syntaxErrors ? null : s.prog(); - } - function Aw(i, e) { - const t = `WidthProviderOnBrowser_${i}_${e}`, n = Il(t); - if (n != null) - return n; - let s = document.querySelector( - ".textarea-hidden-div" - ); - if (!s) { - const c = document.createElement("div"); - c.className = "textarea-hidden-div ", c.style.fontSize = e === j8.MessageContent ? "0.875rem" : "1rem", c.style.fontFamily = "Helvetica, Verdana, serif", c.style.display = "inline", c.style.whiteSpace = "nowrap", c.style.visibility = "hidden", c.style.position = "absolute", c.style.top = "0", c.style.left = "0", c.style.overflow = "hidden", c.style.width = "0px", c.style.paddingLeft = "0px", c.style.paddingRight = "0px", c.style.margin = "0px", c.style.border = "0px", document.body.appendChild(c), s = c; - } - s.textContent = i; - const l = s.scrollWidth; - return Dl(t, l, true), l; - } - function x6(i) { - const e = $.tree.ParseTreeWalker.DEFAULT, t = new Dw(); - return e.walk(t, i), t.result(); - } - function Pw(i) { - const e = Be.getParticipants(i), t = Array.from(e.participants.entries()), n = x6(i), s = n.length === 0 && t.length === 0, l = n.some((L) => !L.from); - return (s || l) && t.unshift([ - Ze, - { ...zE, name: Ze, isStarter: true } - ]), t.map((L, d, _) => { - const p = L[1], m = d > 0 ? _[d - 1][1].name : ""; - return new kw( - p.name, - m, - p.label, - p.type - ); - }); - } - function w6(i, e) { - return { position: i, velocity: e }; - } - function eg(i, e) { - return w6(i.position + e.position, i.velocity + e.velocity); - } - function Fw(i, e) { - const t = i.position - e.position; - return t < -tg || Math.abs(t) <= tg && i.velocity < e.velocity; - } - function Uw() { - return { - delta: 1 / 0, - dualLessThan: /* @__PURE__ */ __name(function(i, e) { - const t = Fw(i, e); - return t && ([i, e] = [e, i]), i.velocity < e.velocity && (this.delta = Math.min( - this.delta, - (i.position - e.position) / (e.velocity - i.velocity) - )), t; - }, "dualLessThan") - }; - } - function Zw(i, e) { - const t = Array(); - for (let n = 0; n < i; n++) { - t.push([]); - for (let s = 0; s < n; s++) - e[s][n] > 0 && t[n].push({ i: s, length: w6(e[s][n], 0) }); - } - return t; - } - function Bw(i, e) { - const t = Uw(); - let n = w6(0, 0); - const s = []; - for (let l = 0; l < i.length; l++) { - let c = null; - l > 0 && (n = eg(n, e[l - 1])); - for (const L of i[l]) { - const d = eg(s[L.i].maximum, L.length); - t.dualLessThan(n, d) && (c = L.i, n = d); - } - s.push({ argument: c, maximum: n }); - } - return [t.delta, s]; - } - function Gw(i, e, t) { - let n = i.length - 1; - for (; n > 0; ) { - const s = i[n].argument; - s !== null ? n = s : (n--, t[n].velocity = 0); - } - } - function zw(i, e) { - for (let t = 0; t < i.length; t++) - i[t].position += i[t].velocity * e; - } - function Hw(i) { - const e = []; - for (const t of i) - e.push(t.maximum.position); - return e; - } - function Yw(i) { - const e = i.length, t = Zw(e, i), n = []; - for (let s = 1; s < e; s++) - n.push(w6(0, 1)); - for (; ; ) { - const [s, l] = Bw(t, n); - if (s == 1 / 0) - return Hw(l); - l[e - 1].maximum.velocity > 0 ? Gw(l, t, n) : zw(n, s); - } - } - function $w(i, e) { - if (i.match(/^[a-z]+:\/\//i)) - return i; - if (i.match(/^\/\//)) - return window.location.protocol + i; - if (i.match(/^[a-z]+:/i)) - return i; - const t = document.implementation.createHTMLDocument(), n = t.createElement("base"), s = t.createElement("a"); - return t.head.appendChild(n), t.body.appendChild(s), e && (n.href = e), s.href = i, s.href; - } - function kt(i) { - const e = []; - for (let t = 0, n = i.length; t < n; t++) - e.push(i[t]); - return e; - } - function hS(i = {}) { - return r0 || (i.includeStyleProperties ? (r0 = i.includeStyleProperties, r0) : (r0 = kt(window.getComputedStyle(document.documentElement)), r0)); - } - function X8(i, e) { - const n = (i.ownerDocument.defaultView || window).getComputedStyle(i).getPropertyValue(e); - return n ? parseFloat(n.replace("px", "")) : 0; - } - function Qw(i) { - const e = X8(i, "border-left-width"), t = X8(i, "border-right-width"); - return i.clientWidth + e + t; - } - function jw(i) { - const e = X8(i, "border-top-width"), t = X8(i, "border-bottom-width"); - return i.clientHeight + e + t; - } - function fS(i, e = {}) { - const t = e.width || Qw(i), n = e.height || jw(i); - return { width: t, height: n }; - } - function Xw() { - let i, e; - try { - e = process; - } catch { - } - const t = e && e.env ? e.env.devicePixelRatio : null; - return t && (i = parseInt(t, 10), Number.isNaN(i) && (i = 1)), i || window.devicePixelRatio || 1; - } - function Jw(i) { - (i.width > A3 || i.height > A3) && (i.width > A3 && i.height > A3 ? i.width > i.height ? (i.height *= A3 / i.width, i.width = A3) : (i.width *= A3 / i.height, i.height = A3) : i.width > A3 ? (i.height *= A3 / i.width, i.width = A3) : (i.width *= A3 / i.height, i.height = A3)); - } - function eM(i, e = {}) { - return i.toBlob ? new Promise((t) => { - i.toBlob(t, e.type ? e.type : "image/png", e.quality ? e.quality : 1); - }) : new Promise((t) => { - const n = window.atob(i.toDataURL(e.type ? e.type : void 0, e.quality ? e.quality : void 0).split(",")[1]), s = n.length, l = new Uint8Array(s); - for (let c = 0; c < s; c += 1) - l[c] = n.charCodeAt(c); - t(new Blob([l], { - type: e.type ? e.type : "image/png" - })); - }); - } - function J8(i) { - return new Promise((e, t) => { - const n = new Image(); - n.onload = () => { - n.decode().then(() => { - requestAnimationFrame(() => e(n)); - }); - }, n.onerror = t, n.crossOrigin = "anonymous", n.decoding = "async", n.src = i; - }); - } - async function tM(i) { - return Promise.resolve().then(() => new XMLSerializer().serializeToString(i)).then(encodeURIComponent).then((e) => `data:image/svg+xml;charset=utf-8,${e}`); - } - async function nM(i, e, t) { - const n = "http://www.w3.org/2000/svg", s = document.createElementNS(n, "svg"), l = document.createElementNS(n, "foreignObject"); - return s.setAttribute("width", `${e}`), s.setAttribute("height", `${t}`), s.setAttribute("viewBox", `0 0 ${e} ${t}`), l.setAttribute("width", "100%"), l.setAttribute("height", "100%"), l.setAttribute("x", "0"), l.setAttribute("y", "0"), l.setAttribute("externalResourcesRequired", "true"), s.appendChild(l), l.appendChild(i), tM(s); - } - function iM(i) { - const e = i.getPropertyValue("content"); - return `${i.cssText} content: '${e.replace(/'|"/g, "")}';`; - } - function rM(i, e) { - return hS(e).map((t) => { - const n = i.getPropertyValue(t), s = i.getPropertyPriority(t); - return `${t}: ${n}${s ? " !important" : ""};`; - }).join(" "); - } - function aM(i, e, t, n) { - const s = `.${i}:${e}`, l = t.cssText ? iM(t) : rM(t, n); - return document.createTextNode(`${s}{${l}}`); - } - function rg(i, e, t, n) { - const s = window.getComputedStyle(i, t), l = s.getPropertyValue("content"); - if (l === "" || l === "none") - return; - const c = Kw(); - try { - e.className = `${e.className} ${c}`; - } catch { - return; - } - const L = document.createElement("style"); - L.appendChild(aM(c, t, s, n)), e.appendChild(L); - } - function sM(i, e, t) { - rg(i, e, ":before", t), rg(i, e, ":after", t); - } - function lM(i) { - const e = /\.([^./]*?)$/g.exec(i); - return e ? e[1] : ""; - } - function hu(i) { - const e = lM(i).toLowerCase(); - return oM[e] || ""; - } - function cM(i) { - return i.split(/,/)[1]; - } - function Pl(i) { - return i.search(/^(data:)/) !== -1; - } - function uM(i, e) { - return `data:${e};base64,${i}`; - } - async function ES(i, e, t) { - const n = await fetch(i, e); - if (n.status === 404) - throw new Error(`Resource "${n.url}" not found`); - const s = await n.blob(); - return new Promise((l, c) => { - const L = new FileReader(); - L.onerror = c, L.onloadend = () => { - try { - l(t({ res: n, result: L.result })); - } catch (d) { - c(d); - } - }, L.readAsDataURL(s); - }); - } - function LM(i, e, t) { - let n = i.replace(/\?.*/, ""); - return t && (n = i), /ttf|otf|eot|woff2?/i.test(n) && (n = n.replace(/.*\//, "")), e ? `[${e}]${n}` : n; - } - async function fu(i, e, t) { - const n = LM(i, e, t.includeQueryParams); - if (vr[n] != null) - return vr[n]; - t.cacheBust && (i += (/\?/.test(i) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime()); - let s; - try { - const l = await ES(i, t.fetchRequestInit, ({ res: c, result: L }) => (e || (e = c.headers.get("Content-Type") || ""), cM(L))); - s = uM(l, e); - } catch (l) { - s = t.imagePlaceholder || ""; - let c = `Failed to fetch resource: ${i}`; - l && (c = typeof l == "string" ? l : l.message), c && console.warn(c); - } - return vr[n] = s, s; - } - async function dM(i) { - const e = i.toDataURL(); - return e === "data:," ? i.cloneNode(false) : J8(e); - } - async function CM(i, e) { - if (i.currentSrc) { - const l = document.createElement("canvas"), c = l.getContext("2d"); - l.width = i.clientWidth, l.height = i.clientHeight, c == null || c.drawImage(i, 0, 0, l.width, l.height); - const L = l.toDataURL(); - return J8(L); - } - const t = i.poster, n = hu(t), s = await fu(t, n, e); - return J8(s); - } - async function _M(i, e) { - var t; - try { - if (!((t = i == null ? void 0 : i.contentDocument) === null || t === void 0) && t.body) - return await A6(i.contentDocument.body, e, true); - } catch { - } - return i.cloneNode(false); - } - async function gM(i, e) { - return d3(i, HTMLCanvasElement) ? dM(i) : d3(i, HTMLVideoElement) ? CM(i, e) : d3(i, HTMLIFrameElement) ? _M(i, e) : i.cloneNode(SS(i)); - } - async function mM(i, e, t) { - var n, s; - if (SS(e)) - return e; - let l = []; - return pM(i) && i.assignedNodes ? l = kt(i.assignedNodes()) : d3(i, HTMLIFrameElement) && (!((n = i.contentDocument) === null || n === void 0) && n.body) ? l = kt(i.contentDocument.body.childNodes) : l = kt(((s = i.shadowRoot) !== null && s !== void 0 ? s : i).childNodes), l.length === 0 || d3(i, HTMLVideoElement) || await l.reduce((c, L) => c.then(() => A6(L, t)).then((d) => { - d && e.appendChild(d); - }), Promise.resolve()), e; - } - function hM(i, e, t) { - const n = e.style; - if (!n) - return; - const s = window.getComputedStyle(i); - s.cssText ? (n.cssText = s.cssText, n.transformOrigin = s.transformOrigin) : hS(t).forEach((l) => { - let c = s.getPropertyValue(l); - l === "font-size" && c.endsWith("px") && (c = `${Math.floor(parseFloat(c.substring(0, c.length - 2))) - 0.1}px`), d3(i, HTMLIFrameElement) && l === "display" && c === "inline" && (c = "block"), l === "d" && e.getAttribute("d") && (c = `path(${e.getAttribute("d")})`), n.setProperty(l, c, s.getPropertyPriority(l)); - }); - } - function fM(i, e) { - d3(i, HTMLTextAreaElement) && (e.innerHTML = i.value), d3(i, HTMLInputElement) && e.setAttribute("value", i.value); - } - function EM(i, e) { - if (d3(i, HTMLSelectElement)) { - const t = e, n = Array.from(t.children).find((s) => i.value === s.getAttribute("value")); - n && n.setAttribute("selected", ""); - } - } - function SM(i, e, t) { - return d3(e, Element) && (hM(i, e, t), sM(i, e, t), fM(i, e), EM(i, e)), e; - } - async function TM(i, e) { - const t = i.querySelectorAll ? i.querySelectorAll("use") : []; - if (t.length === 0) - return i; - const n = {}; - for (let l = 0; l < t.length; l++) { - const L = t[l].getAttribute("xlink:href"); - if (L) { - const d = i.querySelector(L), _ = document.querySelector(L); - !d && _ && !n[L] && (n[L] = await A6(_, e, true)); - } - } - const s = Object.values(n); - if (s.length) { - const l = "http://www.w3.org/1999/xhtml", c = document.createElementNS(l, "svg"); - c.setAttribute("xmlns", l), c.style.position = "absolute", c.style.width = "0", c.style.height = "0", c.style.overflow = "hidden", c.style.display = "none"; - const L = document.createElementNS(l, "defs"); - c.appendChild(L); - for (let d = 0; d < s.length; d++) - L.appendChild(s[d]); - i.appendChild(c); - } - return i; - } - async function A6(i, e, t) { - return !t && e.filter && !e.filter(i) ? null : Promise.resolve(i).then((n) => gM(n, e)).then((n) => mM(i, n, e)).then((n) => SM(i, n, e)).then((n) => TM(n, e)); - } - function bM(i) { - const e = i.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1"); - return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`, "g"); - } - function xM(i) { - const e = []; - return i.replace(TS, (t, n, s) => (e.push(s), t)), e.filter((t) => !Pl(t)); - } - async function wM(i, e, t, n, s) { - try { - const l = t ? $w(e, t) : e, c = hu(e); - let L; - return s || (L = await fu(l, c, n)), i.replace(bM(e), `$1${L}$3`); - } catch { - } - return i; - } - function MM(i, { preferredFontFormat: e }) { - return e ? i.replace(RM, (t) => { - for (; ; ) { - const [n, , s] = vM.exec(t) || []; - if (!s) - return ""; - if (s === e) - return `src: ${n};`; - } - }) : i; - } - function vS(i) { - return i.search(TS) !== -1; - } - async function RS(i, e, t) { - if (!vS(i)) - return i; - const n = MM(i, t); - return xM(n).reduce((l, c) => l.then((L) => wM(L, c, e, t)), Promise.resolve(n)); - } - async function a0(i, e, t) { - var n; - const s = (n = e.style) === null || n === void 0 ? void 0 : n.getPropertyValue(i); - if (s) { - const l = await RS(s, null, t); - return e.style.setProperty(i, l, e.style.getPropertyPriority(i)), true; - } - return false; - } - async function AM(i, e) { - await a0("background", i, e) || await a0("background-image", i, e), await a0("mask", i, e) || await a0("-webkit-mask", i, e) || await a0("mask-image", i, e) || await a0("-webkit-mask-image", i, e); - } - async function yM(i, e) { - const t = d3(i, HTMLImageElement); - if (!(t && !Pl(i.src)) && !(d3(i, SVGImageElement) && !Pl(i.href.baseVal))) - return; - const n = t ? i.src : i.href.baseVal, s = await fu(n, hu(n), e); - await new Promise((l, c) => { - i.onload = l, i.onerror = e.onImageErrorHandler ? (...d) => { - try { - l(e.onImageErrorHandler(...d)); - } catch (_) { - c(_); - } - } : c; - const L = i; - L.decode && (L.decode = l), L.loading === "lazy" && (L.loading = "eager"), t ? (i.srcset = "", i.src = s) : i.href.baseVal = s; - }); - } - async function NM(i, e) { - const n = kt(i.childNodes).map((s) => bS(s, e)); - await Promise.all(n).then(() => i); - } - async function bS(i, e) { - d3(i, Element) && (await AM(i, e), await yM(i, e), await NM(i, e)); - } - function OM(i, e) { - const { style: t } = i; - e.backgroundColor && (t.backgroundColor = e.backgroundColor), e.width && (t.width = `${e.width}px`), e.height && (t.height = `${e.height}px`); - const n = e.style; - return n != null && Object.keys(n).forEach((s) => { - t[s] = n[s]; - }), i; - } - async function lg(i) { - let e = og[i]; - if (e != null) - return e; - const n = await (await fetch(i)).text(); - return e = { url: i, cssText: n }, og[i] = e, e; - } - async function cg(i, e) { - let t = i.cssText; - const n = /url\(["']?([^"')]+)["']?\)/g, l = (t.match(/url\([^)]+\)/g) || []).map(async (c) => { - let L = c.replace(n, "$1"); - return L.startsWith("https://") || (L = new URL(L, i.url).href), ES(L, e.fetchRequestInit, ({ result: d }) => (t = t.replace(c, `url(${d})`), [c, d])); - }); - return Promise.all(l).then(() => t); - } - function ug(i) { - if (i == null) - return []; - const e = [], t = /(\/\*[\s\S]*?\*\/)/gi; - let n = i.replace(t, ""); - const s = new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})", "gi"); - for (; ; ) { - const d = s.exec(n); - if (d === null) - break; - e.push(d[0]); - } - n = n.replace(s, ""); - const l = /@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi, c = "((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})", L = new RegExp(c, "gi"); - for (; ; ) { - let d = l.exec(n); - if (d === null) { - if (d = L.exec(n), d === null) - break; - l.lastIndex = L.lastIndex; - } else - L.lastIndex = l.lastIndex; - e.push(d[0]); - } - return e; - } - async function IM(i, e) { - const t = [], n = []; - return i.forEach((s) => { - if ("cssRules" in s) - try { - kt(s.cssRules || []).forEach((l, c) => { - if (l.type === CSSRule.IMPORT_RULE) { - let L = c + 1; - const d = l.href, _ = lg(d).then((p) => cg(p, e)).then((p) => ug(p).forEach((m) => { - try { - s.insertRule(m, m.startsWith("@import") ? L += 1 : s.cssRules.length); - } catch (f) { - console.error("Error inserting rule from remote css", { - rule: m, - error: f - }); - } - })).catch((p) => { - console.error("Error loading remote css", p.toString()); - }); - n.push(_); - } - }); - } catch (l) { - const c = i.find((L) => L.href == null) || document.styleSheets[0]; - s.href != null && n.push(lg(s.href).then((L) => cg(L, e)).then((L) => ug(L).forEach((d) => { - c.insertRule(d, c.cssRules.length); - })).catch((L) => { - console.error("Error loading remote stylesheet", L); - })), console.error("Error inlining remote css file", l); - } - }), Promise.all(n).then(() => (i.forEach((s) => { - if ("cssRules" in s) - try { - kt(s.cssRules || []).forEach((l) => { - t.push(l); - }); - } catch (l) { - console.error(`Error while reading CSS rules from ${s.href}`, l); - } - }), t)); - } - function DM(i) { - return i.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) => vS(e.style.getPropertyValue("src"))); - } - async function kM(i, e) { - if (i.ownerDocument == null) - throw new Error("Provided element is not within a Document"); - const t = kt(i.ownerDocument.styleSheets), n = await IM(t, e); - return DM(n); - } - function xS(i) { - return i.trim().replace(/["']/g, ""); - } - function PM(i) { - const e = /* @__PURE__ */ new Set(); - function t(n) { - (n.style.fontFamily || getComputedStyle(n).fontFamily).split(",").forEach((l) => { - e.add(xS(l)); - }), Array.from(n.children).forEach((l) => { - l instanceof HTMLElement && t(l); - }); - } - __name(t, "t"); - return t(i), e; - } - async function FM(i, e) { - const t = await kM(i, e), n = PM(i); - return (await Promise.all(t.filter((l) => n.has(xS(l.style.fontFamily))).map((l) => { - const c = l.parentStyleSheet ? l.parentStyleSheet.href : null; - return RS(l.cssText, c, e); - }))).join(` -`); - } - async function UM(i, e) { - const t = e.fontEmbedCSS != null ? e.fontEmbedCSS : e.skipFonts ? null : await FM(i, e); - if (t) { - const n = document.createElement("style"), s = document.createTextNode(t); - n.appendChild(s), i.firstChild ? i.insertBefore(n, i.firstChild) : i.appendChild(n); - } - } - async function Eu(i, e = {}) { - const { width: t, height: n } = fS(i, e), s = await A6(i, e, true); - return await UM(s, e), await bS(s, e), OM(s, e), await nM(s, t, n); - } - async function Su(i, e = {}) { - const { width: t, height: n } = fS(i, e), s = await Eu(i, e), l = await J8(s), c = document.createElement("canvas"), L = c.getContext("2d"), d = e.pixelRatio || Xw(), _ = e.canvasWidth || t, p = e.canvasHeight || n; - return c.width = _ * d, c.height = p * d, e.skipAutoScale || Jw(c), c.style.width = `${_}`, c.style.height = `${p}`, e.backgroundColor && (L.fillStyle = e.backgroundColor, L.fillRect(0, 0, c.width, c.height)), L.drawImage(l, 0, 0, c.width, c.height), c; - } - async function wS(i, e = {}) { - return (await Su(i, e)).toDataURL(); - } - async function ZM(i, e = {}) { - return (await Su(i, e)).toDataURL("image/jpeg", e.quality || 1); - } - async function BM(i, e = {}) { - const t = await Su(i, e); - return await eM(t); - } - function MS(i) { - var e, t, n = ""; - if (typeof i == "string" || typeof i == "number") n += i; - else if (typeof i == "object") if (Array.isArray(i)) { - var s = i.length; - for (e = 0; e < s; e++) i[e] && (t = MS(i[e])) && (n && (n += " "), n += t); - } else for (t in i) i[t] && (n && (n += " "), n += t); - return n; - } - function GM() { - for (var i, e, t = 0, n = "", s = arguments.length; t < s; t++) (i = arguments[t]) && (e = MS(i)) && (n && (n += " "), n += e); - return n; - } - function eA() { - let i = 0, e, t, n = ""; - for (; i < arguments.length; ) - (e = arguments[i++]) && (t = yS(e)) && (n && (n += " "), n += t); - return n; - } - function tA(i, ...e) { - let t, n, s, l = c; - function c(d) { - const _ = e.reduce((p, m) => m(p), i()); - return t = jM(_), n = t.cache.get, s = t.cache.set, l = L, L(d); - } - __name(c, "c"); - function L(d) { - const _ = n(d); - if (_) - return _; - const p = JM(d, t); - return s(d, p), p; - } - __name(L, "L"); - return function() { - return l(eA.apply(null, arguments)); - }; - } - function z2(...i) { - return MA(GM(i)); - } - function LZ(i) { - const e = v.useRef(null); - return FS(() => { - e.current = i; - }, [ - i - ]), v.useCallback((...t) => { - const n = e.current; - return n == null ? void 0 : n(...t); - }, []); - } - function dZ(i) { - return i !== null && typeof i == "object" && "nodeType" in i && typeof i.nodeType == "number"; - } - function CZ(i) { - return dZ(i) && i.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in i; - } - function Ru() { - return _Z; - } - function US(i, e) { - if (!Ru()) return e && i ? i.contains(e) : false; - if (!i || !e) return false; - let t = e; - for (; t !== null; ) { - if (t === i) return true; - t.tagName === "SLOT" && t.assignedSlot ? t = t.assignedSlot.parentNode : CZ(t) ? t = t.host : t = t.parentNode; - } - return false; - } - function ZS(i) { - return Ru() && i.target.shadowRoot && i.composedPath ? i.composedPath()[0] : i.target; - } - function gZ(i) { - var e; - return typeof window > "u" || window.navigator == null ? false : ((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.brands.some((t) => i.test(t.brand))) || i.test(window.navigator.userAgent); - } - function pZ(i) { - var e; - return typeof window < "u" && window.navigator != null ? i.test(((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.platform) || window.navigator.platform) : false; - } - function BS(i) { - let e = null; - return () => (e == null && (e = i()), e); - } - function GS() { - let i = v.useRef(/* @__PURE__ */ new Map()), e = v.useCallback((s, l, c, L) => { - let d = L != null && L.once ? (..._) => { - i.current.delete(c), c(..._); - } : c; - i.current.set(c, { - type: l, - eventTarget: s, - fn: d, - options: L - }), s.addEventListener(l, d, L); - }, []), t = v.useCallback((s, l, c, L) => { - var d; - let _ = ((d = i.current.get(c)) === null || d === void 0 ? void 0 : d.fn) || c; - s.removeEventListener(l, _, L), i.current.delete(c); - }, []), n = v.useCallback(() => { - i.current.forEach((s, l) => { - t(s.eventTarget, s.type, l, s.options); - }); - }, [ - t - ]); - return v.useEffect(() => n, [ - n - ]), { - addGlobalListener: e, - removeGlobalListener: t, - removeAllGlobalListeners: n - }; - } - function fZ(i) { - return i.mozInputSource === 0 && i.isTrusted ? true : hZ() && i.pointerType ? i.type === "click" && i.buttons === 1 : i.detail === 0 && !i.pointerType; - } - function EZ() { - if (yg) return ke; - yg = 1; - var i = cc(); - function e(d) { - var _ = "https://react.dev/errors/" + d; - if (1 < arguments.length) { - _ += "?args[]=" + encodeURIComponent(arguments[1]); - for (var p = 2; p < arguments.length; p++) - _ += "&args[]=" + encodeURIComponent(arguments[p]); - } - return "Minified React error #" + d + "; visit " + _ + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; - } - __name(e, "e"); - function t() { - } - __name(t, "t"); - var n = { - d: { - f: t, - r: /* @__PURE__ */ __name(function() { - throw Error(e(522)); - }, "r"), - D: t, - C: t, - L: t, - m: t, - X: t, - S: t, - M: t - }, - p: 0, - findDOMNode: null - }, s = Symbol.for("react.portal"); - function l(d, _, p) { - var m = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; - return { - $$typeof: s, - key: m == null ? null : "" + m, - children: d, - containerInfo: _, - implementation: p - }; - } - __name(l, "l"); - var c = i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; - function L(d, _) { - if (d === "font") return ""; - if (typeof _ == "string") - return _ === "use-credentials" ? _ : ""; - } - __name(L, "L"); - return ke.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, ke.createPortal = function(d, _) { - var p = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; - if (!_ || _.nodeType !== 1 && _.nodeType !== 9 && _.nodeType !== 11) - throw Error(e(299)); - return l(d, _, null, p); - }, ke.flushSync = function(d) { - var _ = c.T, p = n.p; - try { - if (c.T = null, n.p = 2, d) return d(); - } finally { - c.T = _, n.p = p, n.d.f(); - } - }, ke.preconnect = function(d, _) { - typeof d == "string" && (_ ? (_ = _.crossOrigin, _ = typeof _ == "string" ? _ === "use-credentials" ? _ : "" : void 0) : _ = null, n.d.C(d, _)); - }, ke.prefetchDNS = function(d) { - typeof d == "string" && n.d.D(d); - }, ke.preinit = function(d, _) { - if (typeof d == "string" && _ && typeof _.as == "string") { - var p = _.as, m = L(p, _.crossOrigin), f = typeof _.integrity == "string" ? _.integrity : void 0, h = typeof _.fetchPriority == "string" ? _.fetchPriority : void 0; - p === "style" ? n.d.S( - d, - typeof _.precedence == "string" ? _.precedence : void 0, - { - crossOrigin: m, - integrity: f, - fetchPriority: h - } - ) : p === "script" && n.d.X(d, { - crossOrigin: m, - integrity: f, - fetchPriority: h, - nonce: typeof _.nonce == "string" ? _.nonce : void 0 - }); - } - }, ke.preinitModule = function(d, _) { - if (typeof d == "string") - if (typeof _ == "object" && _ !== null) { - if (_.as == null || _.as === "script") { - var p = L( - _.as, - _.crossOrigin - ); - n.d.M(d, { - crossOrigin: p, - integrity: typeof _.integrity == "string" ? _.integrity : void 0, - nonce: typeof _.nonce == "string" ? _.nonce : void 0 - }); - } - } else _ == null && n.d.M(d); - }, ke.preload = function(d, _) { - if (typeof d == "string" && typeof _ == "object" && _ !== null && typeof _.as == "string") { - var p = _.as, m = L(p, _.crossOrigin); - n.d.L(d, p, { - crossOrigin: m, - integrity: typeof _.integrity == "string" ? _.integrity : void 0, - nonce: typeof _.nonce == "string" ? _.nonce : void 0, - type: typeof _.type == "string" ? _.type : void 0, - fetchPriority: typeof _.fetchPriority == "string" ? _.fetchPriority : void 0, - referrerPolicy: typeof _.referrerPolicy == "string" ? _.referrerPolicy : void 0, - imageSrcSet: typeof _.imageSrcSet == "string" ? _.imageSrcSet : void 0, - imageSizes: typeof _.imageSizes == "string" ? _.imageSizes : void 0, - media: typeof _.media == "string" ? _.media : void 0 - }); - } - }, ke.preloadModule = function(d, _) { - if (typeof d == "string") - if (_) { - var p = L(_.as, _.crossOrigin); - n.d.m(d, { - as: typeof _.as == "string" && _.as !== "script" ? _.as : void 0, - crossOrigin: p, - integrity: typeof _.integrity == "string" ? _.integrity : void 0 - }); - } else n.d.m(d); - }, ke.requestFormReset = function(d) { - n.d.r(d); - }, ke.unstable_batchedUpdates = function(d, _) { - return d(_); - }, ke.useFormState = function(d, _, p) { - return c.H.useFormState(d, _, p); - }, ke.useFormStatus = function() { - return c.H.useHostTransitionStatus(); - }, ke.version = "19.1.0", ke; - } - function zS() { - if (Ng) return wr.exports; - Ng = 1; - function i() { - if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) - try { - __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i); - } catch (e) { - console.error(e); - } - } - __name(i, "i"); - return i(), wr.exports = EZ(), wr.exports; - } - function HS(i) { - let e = i; - return e.nativeEvent = i, e.isDefaultPrevented = () => e.defaultPrevented, e.isPropagationStopped = () => e.cancelBubble, e.persist = () => { - }, e; - } - function SZ(i, e) { - Object.defineProperty(i, "target", { - value: e - }), Object.defineProperty(i, "currentTarget", { - value: e - }); - } - function YS(i) { - let e = v.useRef({ - isFocused: false, - observer: null - }); - FS(() => { - const n = e.current; - return () => { - n.observer && (n.observer.disconnect(), n.observer = null); - }; - }, []); - let t = LZ((n) => { - i == null || i(n); - }); - return v.useCallback((n) => { - if (n.target instanceof HTMLButtonElement || n.target instanceof HTMLInputElement || n.target instanceof HTMLTextAreaElement || n.target instanceof HTMLSelectElement) { - e.current.isFocused = true; - let s = n.target, l = /* @__PURE__ */ __name((c) => { - if (e.current.isFocused = false, s.disabled) { - let L = HS(c); - t(L); - } - e.current.observer && (e.current.observer.disconnect(), e.current.observer = null); - }, "l"); - s.addEventListener("focusout", l, { - once: true - }), e.current.observer = new MutationObserver(() => { - if (e.current.isFocused && s.disabled) { - var c; - (c = e.current.observer) === null || c === void 0 || c.disconnect(); - let L = s === document.activeElement ? null : document.activeElement; - s.dispatchEvent(new FocusEvent("blur", { - relatedTarget: L - })), s.dispatchEvent(new FocusEvent("focusout", { - bubbles: true, - relatedTarget: L - })); - } - }), e.current.observer.observe(s, { - attributes: true, - attributeFilter: [ - "disabled" - ] - }); - } - }, [ - t - ]); - } - function xu(i, e) { - for (let t of zl) t(i, e); - } - function RZ(i) { - return !(i.metaKey || !mZ() && i.altKey || i.ctrlKey || i.key === "Control" || i.key === "Shift" || i.key === "Meta"); - } - function e6(i) { - T9 = true, RZ(i) && (un = "keyboard", xu("keyboard", i)); - } - function L0(i) { - un = "pointer", (i.type === "mousedown" || i.type === "pointerdown") && (T9 = true, xu("pointer", i)); - } - function VS(i) { - fZ(i) && (T9 = true, un = "virtual"); - } - function qS(i) { - i.target === window || i.target === document || TZ || !i.isTrusted || (!T9 && !Hl && (un = "virtual", xu("virtual", i)), T9 = false, Hl = false); - } - function WS() { - T9 = false, Hl = true; - } - function Yl(i) { - if (typeof window > "u" || G5.get(g9(i))) return; - const e = g9(i), t = zt(i); - let n = e.HTMLElement.prototype.focus; - e.HTMLElement.prototype.focus = function() { - T9 = true, n.apply(this, arguments); - }, t.addEventListener("keydown", e6, true), t.addEventListener("keyup", e6, true), t.addEventListener("click", VS, true), e.addEventListener("focus", qS, true), e.addEventListener("blur", WS, false), typeof PointerEvent < "u" && (t.addEventListener("pointerdown", L0, true), t.addEventListener("pointermove", L0, true), t.addEventListener("pointerup", L0, true)), e.addEventListener("beforeunload", () => { - $S(i); - }, { - once: true - }), G5.set(e, { - focus: n - }); - } - function bZ(i) { - const e = zt(i); - let t; - return e.readyState !== "loading" ? Yl(i) : (t = /* @__PURE__ */ __name(() => { - Yl(i); - }, "t"), e.addEventListener("DOMContentLoaded", t)), () => $S(i, t); - } - function KS() { - return un !== "pointer"; - } - function wZ(i, e, t) { - let n = zt(t == null ? void 0 : t.target); - const s = typeof window < "u" ? g9(t == null ? void 0 : t.target).HTMLInputElement : HTMLInputElement, l = typeof window < "u" ? g9(t == null ? void 0 : t.target).HTMLTextAreaElement : HTMLTextAreaElement, c = typeof window < "u" ? g9(t == null ? void 0 : t.target).HTMLElement : HTMLElement, L = typeof window < "u" ? g9(t == null ? void 0 : t.target).KeyboardEvent : KeyboardEvent; - return i = i || n.activeElement instanceof s && !xZ.has(n.activeElement.type) || n.activeElement instanceof l || n.activeElement instanceof c && n.activeElement.isContentEditable, !(i && e === "keyboard" && t instanceof L && !vZ[t.key]); - } - function MZ(i, e, t) { - Yl(), v.useEffect(() => { - let n = /* @__PURE__ */ __name((s, l) => { - wZ(!!(t != null && t.isTextInput), s, l) && i(KS()); - }, "n"); - return zl.add(n), () => { - zl.delete(n); - }; - }, e); - } - function AZ(i) { - let { isDisabled: e, onFocus: t, onBlur: n, onFocusChange: s } = i; - const l = v.useCallback((d) => { - if (d.target === d.currentTarget) - return n && n(d), s && s(false), true; - }, [ - n, - s - ]), c = YS(l), L = v.useCallback((d) => { - const _ = zt(d.target), p = _ ? Gl(_) : Gl(); - d.target === d.currentTarget && p === ZS(d.nativeEvent) && (t && t(d), s && s(true), c(d)); - }, [ - s, - t, - c - ]); - return { - focusProps: { - onFocus: !e && (t || s || n) ? L : void 0, - onBlur: !e && (n || s) ? l : void 0 - } - }; - } - function yZ(i) { - let { isDisabled: e, onBlurWithin: t, onFocusWithin: n, onFocusWithinChange: s } = i, l = v.useRef({ - isFocusWithin: false - }), { addGlobalListener: c, removeAllGlobalListeners: L } = GS(), d = v.useCallback((m) => { - m.currentTarget.contains(m.target) && l.current.isFocusWithin && !m.currentTarget.contains(m.relatedTarget) && (l.current.isFocusWithin = false, L(), t && t(m), s && s(false)); - }, [ - t, - s, - l, - L - ]), _ = YS(d), p = v.useCallback((m) => { - if (!m.currentTarget.contains(m.target)) return; - const f = zt(m.target), h = Gl(f); - if (!l.current.isFocusWithin && h === ZS(m.nativeEvent)) { - n && n(m), s && s(true), l.current.isFocusWithin = true, _(m); - let R = m.currentTarget; - c(f, "focus", (b) => { - if (l.current.isFocusWithin && !US(R, b.target)) { - let M = new f.defaultView.FocusEvent("blur", { - relatedTarget: b.target - }); - SZ(M, R); - let w = HS(M); - d(w); - } - }, { - capture: true - }); - } - }, [ - n, - s, - _, - c, - d - ]); - return e ? { - focusWithinProps: { - // These cannot be null, that would conflict in mergeProps - onFocus: void 0, - onBlur: void 0 - } - } : { - focusWithinProps: { - onFocus: p, - onBlur: d - } - }; - } - function NZ() { - Vl = true, setTimeout(() => { - Vl = false; - }, 50); - } - function Og(i) { - i.pointerType === "touch" && NZ(); - } - function OZ() { - if (!(typeof document > "u")) - return typeof PointerEvent < "u" && document.addEventListener("pointerup", Og), Mr++, () => { - Mr--, !(Mr > 0) && typeof PointerEvent < "u" && document.removeEventListener("pointerup", Og); - }; - } - function QS(i) { - let { onHoverStart: e, onHoverChange: t, onHoverEnd: n, isDisabled: s } = i, [l, c] = v.useState(false), L = v.useRef({ - isHovered: false, - ignoreEmulatedMouseEvents: false, - pointerType: "", - target: null - }).current; - v.useEffect(OZ, []); - let { addGlobalListener: d, removeAllGlobalListeners: _ } = GS(), { hoverProps: p, triggerHoverEnd: m } = v.useMemo(() => { - let f = /* @__PURE__ */ __name((b, M) => { - if (L.pointerType = M, s || M === "touch" || L.isHovered || !b.currentTarget.contains(b.target)) return; - L.isHovered = true; - let w = b.currentTarget; - L.target = w, d(zt(b.target), "pointerover", (O) => { - L.isHovered && L.target && !US(L.target, O.target) && h(O, O.pointerType); - }, { - capture: true - }), e && e({ - type: "hoverstart", - target: w, - pointerType: M - }), t && t(true), c(true); - }, "f"), h = /* @__PURE__ */ __name((b, M) => { - let w = L.target; - L.pointerType = "", L.target = null, !(M === "touch" || !L.isHovered || !w) && (L.isHovered = false, _(), n && n({ - type: "hoverend", - target: w, - pointerType: M - }), t && t(false), c(false)); - }, "h"), R = {}; - return typeof PointerEvent < "u" && (R.onPointerEnter = (b) => { - Vl && b.pointerType === "mouse" || f(b, b.pointerType); - }, R.onPointerLeave = (b) => { - !s && b.currentTarget.contains(b.target) && h(b, b.pointerType); - }), { - hoverProps: R, - triggerHoverEnd: h - }; - }, [ - e, - t, - n, - s, - L, - d, - _ - ]); - return v.useEffect(() => { - s && m({ - currentTarget: L.target - }, L.pointerType); - }, [ - s - ]), { - hoverProps: p, - isHovered: l - }; - } - function jS(i = {}) { - let { autoFocus: e = false, isTextInput: t, within: n } = i, s = v.useRef({ - isFocused: false, - isFocusVisible: e || KS() - }), [l, c] = v.useState(false), [L, d] = v.useState(() => s.current.isFocused && s.current.isFocusVisible), _ = v.useCallback(() => d(s.current.isFocused && s.current.isFocusVisible), []), p = v.useCallback((h) => { - s.current.isFocused = h, c(h), _(); - }, [ - _ - ]); - MZ((h) => { - s.current.isFocusVisible = h, _(); - }, [], { - isTextInput: t - }); - let { focusProps: m } = AZ({ - isDisabled: n, - onFocusChange: p - }), { focusWithinProps: f } = yZ({ - isDisabled: !n, - onFocusWithinChange: p - }); - return { - isFocused: l, - isFocusVisible: L, - focusProps: n ? f : m - }; - } - function Ln(i) { - var e, t; - return m9.isServer ? null : i ? "ownerDocument" in i ? i.ownerDocument : "current" in i ? (t = (e = i.current) == null ? void 0 : e.ownerDocument) != null ? t : document : null : document; - } - function y6(i) { - typeof queueMicrotask == "function" ? queueMicrotask(i) : Promise.resolve().then(i).catch((e) => setTimeout(() => { - throw e; - })); - } - function Ht() { - let i = [], e = { addEventListener(t, n, s, l) { - return t.addEventListener(n, s, l), e.add(() => t.removeEventListener(n, s, l)); - }, requestAnimationFrame(...t) { - let n = requestAnimationFrame(...t); - return e.add(() => cancelAnimationFrame(n)); - }, nextFrame(...t) { - return e.requestAnimationFrame(() => e.requestAnimationFrame(...t)); - }, setTimeout(...t) { - let n = setTimeout(...t); - return e.add(() => clearTimeout(n)); - }, microTask(...t) { - let n = { current: true }; - return y6(() => { - n.current && t[0](); - }), e.add(() => { - n.current = false; - }); - }, style(t, n, s) { - let l = t.style.getPropertyValue(n); - return Object.assign(t.style, { [n]: s }), this.add(() => { - Object.assign(t.style, { [n]: l }); - }); - }, group(t) { - let n = Ht(); - return t(n), this.add(() => n.dispose()); - }, add(t) { - return i.includes(t) || i.push(t), () => { - let n = i.indexOf(t); - if (n >= 0) for (let s of i.splice(n, 1)) s(); - }; - }, dispose() { - for (let t of i.splice(0)) t(); - } }; - return e; - } - function N6() { - let [i] = v.useState(Ht); - return v.useEffect(() => () => i.dispose(), [i]), i; - } - function X4(i) { - let e = v.useRef(i); - return be(() => { - e.current = i; - }, [i]), e; - } - function O6() { - return v.useContext(PZ); - } - function ql(...i) { - return Array.from(new Set(i.flatMap((e) => typeof e == "string" ? e.split(" ") : []))).filter(Boolean).join(" "); - } - function $4(i, e, ...t) { - if (i in e) { - let s = e[i]; - return typeof s == "function" ? s(...t) : s; - } - let n = new Error(`Tried to handle "${i}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map((s) => `"${s}"`).join(", ")}.`); - throw Error.captureStackTrace && Error.captureStackTrace(n, $4), n; - } - function Ge() { - let i = UZ(); - return v.useCallback((e) => FZ({ mergeRefs: i, ...e }), [i]); - } - function FZ({ ourProps: i, theirProps: e, slot: t, defaultTag: n, features: s, visible: l = true, name: c, mergeRefs: L }) { - L = L ?? ZZ; - let d = XS(e, i); - if (l) return x8(d, t, n, c, L); - let _ = s ?? 0; - if (_ & 2) { - let { static: p = false, ...m } = d; - if (p) return x8(m, t, n, c, L); - } - if (_ & 1) { - let { unmount: p = true, ...m } = d; - return $4(p ? 0 : 1, { 0() { - return null; - }, 1() { - return x8({ ...m, hidden: true, style: { display: "none" } }, t, n, c, L); - } }); - } - return x8(d, t, n, c, L); - } - function x8(i, e = {}, t, n, s) { - let { as: l = t, children: c, refName: L = "ref", ...d } = yr(i, ["unmount", "static"]), _ = i.ref !== void 0 ? { [L]: i.ref } : {}, p = typeof c == "function" ? c(e) : c; - "className" in d && d.className && typeof d.className == "function" && (d.className = d.className(e)), d["aria-labelledby"] && d["aria-labelledby"] === d.id && (d["aria-labelledby"] = void 0); - let m = {}; - if (e) { - let f = false, h = []; - for (let [R, b] of Object.entries(e)) typeof b == "boolean" && (f = true), b === true && h.push(R.replace(/([A-Z])/g, (M) => `-${M.toLowerCase()}`)); - if (f) { - m["data-headlessui-state"] = h.join(" "); - for (let R of h) m[`data-${R}`] = ""; - } - } - if (l === v.Fragment && (Object.keys(yt(d)).length > 0 || Object.keys(yt(m)).length > 0)) if (!v.isValidElement(p) || Array.isArray(p) && p.length > 1) { - if (Object.keys(yt(d)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(yt(d)).concat(Object.keys(yt(m))).map((f) => ` - ${f}`).join(` -`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((f) => ` - ${f}`).join(` -`)].join(` -`)); - } else { - let f = p.props, h = f == null ? void 0 : f.className, R = typeof h == "function" ? (...w) => ql(h(...w), d.className) : ql(h, d.className), b = R ? { className: R } : {}, M = XS(p.props, yt(yr(d, ["ref"]))); - for (let w in m) w in M && delete m[w]; - return v.cloneElement(p, Object.assign({}, M, m, _, { ref: s(BZ(p), _.ref) }, b)); - } - return v.createElement(l, Object.assign({}, yr(d, ["ref"]), l !== v.Fragment && _, l !== v.Fragment && m), p); - } - function UZ() { - let i = v.useRef([]), e = v.useCallback((t) => { - for (let n of i.current) n != null && (typeof n == "function" ? n(t) : n.current = t); - }, []); - return (...t) => { - if (!t.every((n) => n == null)) return i.current = t, e; - }; - } - function ZZ(...i) { - return i.every((e) => e == null) ? void 0 : (e) => { - for (let t of i) t != null && (typeof t == "function" ? t(e) : t.current = e); - }; - } - function XS(...i) { - if (i.length === 0) return {}; - if (i.length === 1) return i[0]; - let e = {}, t = {}; - for (let n of i) for (let s in n) s.startsWith("on") && typeof n[s] == "function" ? (t[s] != null || (t[s] = []), t[s].push(n[s])) : e[s] = n[s]; - if (e.disabled || e["aria-disabled"]) for (let n in t) /^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(n) && (t[n] = [(s) => { - var l; - return (l = s == null ? void 0 : s.preventDefault) == null ? void 0 : l.call(s); - }]); - for (let n in t) Object.assign(e, { [n](s, ...l) { - let c = t[n]; - for (let L of c) { - if ((s instanceof Event || (s == null ? void 0 : s.nativeEvent) instanceof Event) && s.defaultPrevented) return; - L(s, ...l); - } - } }); - return e; - } - function JS(...i) { - if (i.length === 0) return {}; - if (i.length === 1) return i[0]; - let e = {}, t = {}; - for (let n of i) for (let s in n) s.startsWith("on") && typeof n[s] == "function" ? (t[s] != null || (t[s] = []), t[s].push(n[s])) : e[s] = n[s]; - for (let n in t) Object.assign(e, { [n](...s) { - let l = t[n]; - for (let c of l) c == null || c(...s); - } }); - return e; - } - function xe(i) { - var e; - return Object.assign(v.forwardRef(i), { displayName: (e = i.displayName) != null ? e : i.name }); - } - function yt(i) { - let e = Object.assign({}, i); - for (let t in e) e[t] === void 0 && delete e[t]; - return e; - } - function yr(i, e = []) { - let t = Object.assign({}, i); - for (let n of e) n in t && delete t[n]; - return t; - } - function BZ(i) { - return I2.version.split(".")[0] >= "19" ? i.props.ref : i.ref; - } - function GZ(i, e, t) { - let [n, s] = v.useState(t), l = i !== void 0, c = v.useRef(l), L = v.useRef(false), d = v.useRef(false); - return l && !c.current && !L.current ? (L.current = true, c.current = l, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !l && c.current && !d.current && (d.current = true, c.current = l, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [l ? i : n, f1((_) => (l || s(_), e == null ? void 0 : e(_)))]; - } - function zZ(i) { - let [e] = v.useState(i); - return e; - } - function eT(i = {}, e = null, t = []) { - for (let [n, s] of Object.entries(i)) nT(t, tT(e, n), s); - return t; - } - function tT(i, e) { - return i ? i + "[" + e + "]" : e; - } - function nT(i, e, t) { - if (Array.isArray(t)) for (let [n, s] of t.entries()) nT(i, tT(e, n.toString()), s); - else t instanceof Date ? i.push([e, t.toISOString()]) : typeof t == "boolean" ? i.push([e, t ? "1" : "0"]) : typeof t == "string" ? i.push([e, t]) : typeof t == "number" ? i.push([e, `${t}`]) : t == null ? i.push([e, ""]) : eT(t, e, i); - } - function HZ(i) { - var e, t; - let n = (e = i == null ? void 0 : i.form) != null ? e : i.closest("form"); - if (n) { - for (let s of n.elements) if (s !== i && (s.tagName === "INPUT" && s.type === "submit" || s.tagName === "BUTTON" && s.type === "submit" || s.nodeName === "INPUT" && s.type === "image")) { - s.click(); - return; - } - (t = n.requestSubmit) == null || t.call(n); - } - } - function VZ(i, e) { - var t; - let { features: n = 1, ...s } = i, l = { ref: e, "aria-hidden": (n & 2) === 2 ? true : (t = s["aria-hidden"]) != null ? t : void 0, hidden: (n & 4) === 4 ? true : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(n & 4) === 4 && (n & 2) !== 2 && { display: "none" } } }; - return Ge()({ ourProps: l, theirProps: s, slot: {}, defaultTag: YZ, name: "Hidden" }); - } - function WZ({ children: i }) { - let e = v.useContext(qZ); - if (!e) return I2.createElement(I2.Fragment, null, i); - let { target: t } = e; - return t ? bu.createPortal(I2.createElement(I2.Fragment, null, i), t) : null; - } - function $Z({ data: i, form: e, disabled: t, onReset: n, overrides: s }) { - let [l, c] = v.useState(null), L = N6(); - return v.useEffect(() => { - if (n && l) return L.addEventListener(l, "reset", n); - }, [l, e, n]), I2.createElement(WZ, null, I2.createElement(KZ, { setForm: c, formId: e }), eT(i).map(([d, _]) => I2.createElement(K5, { features: m0.Hidden, ...yt({ key: d, as: "input", type: "hidden", hidden: true, readOnly: true, form: e, disabled: t, name: d, value: _, ...s }) }))); - } - function KZ({ setForm: i, formId: e }) { - return v.useEffect(() => { - if (e) { - let t = document.getElementById(e); - t && i(t); - } - }, [i, e]), e ? null : I2.createElement(K5, { features: m0.Hidden, as: "input", type: "hidden", hidden: true, readOnly: true, ref: /* @__PURE__ */ __name((t) => { - if (!t) return; - let n = t.closest("form"); - n && i(n); - }, "ref") }); - } - function iT() { - return v.useContext(QZ); - } - function rT(i) { - let e = i.parentElement, t = null; - for (; e && !(e instanceof HTMLFieldSetElement); ) e instanceof HTMLLegendElement && (t = e), e = e.parentElement; - let n = (e == null ? void 0 : e.getAttribute("disabled")) === ""; - return n && jZ(t) ? false : n; - } - function jZ(i) { - if (!i) return false; - let e = i.previousElementSibling; - for (; e !== null; ) { - if (e instanceof HTMLLegendElement) return false; - e = e.previousElementSibling; - } - return true; - } - function XZ(i, e = true) { - return Object.assign(i, { [aT]: e }); - } - function _3(...i) { - let e = v.useRef(i); - v.useEffect(() => { - e.current = i; - }, [i]); - let t = f1((n) => { - for (let s of e.current) s != null && (typeof s == "function" ? s(n) : s.current = n); - }); - return i.every((n) => n == null || (n == null ? void 0 : n[aT])) ? void 0 : t; - } - function sT() { - let i = v.useContext(I6); - if (i === null) { - let e = new Error("You used a component, but it is not inside a relevant parent."); - throw Error.captureStackTrace && Error.captureStackTrace(e, sT), e; - } - return i; - } - function JZ() { - var i, e; - return (e = (i = v.useContext(I6)) == null ? void 0 : i.value) != null ? e : void 0; - } - function wu() { - let [i, e] = v.useState([]); - return [i.length > 0 ? i.join(" ") : void 0, v.useMemo(() => function(t) { - let n = f1((l) => (e((c) => [...c, l]), () => e((c) => { - let L = c.slice(), d = L.indexOf(l); - return d !== -1 && L.splice(d, 1), L; - }))), s = v.useMemo(() => ({ register: n, slot: t.slot, name: t.name, props: t.props, value: t.value }), [n, t.slot, t.name, t.props, t.value]); - return I2.createElement(I6.Provider, { value: s }, t.children); - }, [e])]; - } - function tB(i, e) { - let t = v.useId(), n = O6(), { id: s = `headlessui-description-${t}`, ...l } = i, c = sT(), L = _3(e); - be(() => c.register(s), [s, c.register]); - let d = n || false, _ = v.useMemo(() => ({ ...c.slot, disabled: d }), [c.slot, d]), p = { ref: L, ...c.props, id: s }; - return Ge()({ ourProps: p, theirProps: l, slot: _, defaultTag: eB, name: c.name || "Description" }); - } - function lT() { - let i = v.useContext(D6); - if (i === null) { - let e = new Error("You used a