randmarcomps 1.294.0 → 1.296.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- var Gn = Object.defineProperty;
2
- var kn = (t) => {
1
+ var Kn = Object.defineProperty;
2
+ var Mn = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var Wn = (t, e, n) => e in t ? Gn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var nr = (t, e, n) => Wn(t, typeof e != "symbol" ? e + "" : e, n), Kn = (t, e, n) => e.has(t) || kn("Cannot " + n);
7
- var ir = (t, e, n) => (Kn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Fr = (t, e, n) => e.has(t) ? kn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n);
5
+ var Yn = (t, e, n) => e in t ? Kn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
+ var Qt = (t, e, n) => Yn(t, typeof e != "symbol" ? e + "" : e, n), Zn = (t, e, n) => e.has(t) || Mn("Cannot " + n);
7
+ var ir = (t, e, n) => (Zn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), qr = (t, e, n) => e.has(t) ? Mn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n);
8
8
  import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
9
9
  import * as React from "react";
10
10
  import React__default, { forwardRef, createElement, useState, useLayoutEffect, useCallback, useDebugValue, useMemo, useEffect, useRef, createContext, useContext, isValidElement, Children, PureComponent, useImperativeHandle, cloneElement, Component, Fragment as Fragment$2 } from "react";
@@ -11334,7 +11334,7 @@ var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXI
11334
11334
  type-only property to distinguish between RejectWithValue and FulfillWithMeta
11335
11335
  does not exist at runtime
11336
11336
  */
11337
- nr(this, "_type");
11337
+ Qt(this, "_type");
11338
11338
  this.payload = t, this.meta = e;
11339
11339
  }
11340
11340
  }, FulfillWithMeta = class {
@@ -11343,7 +11343,7 @@ var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXI
11343
11343
  type-only property to distinguish between RejectWithValue and FulfillWithMeta
11344
11344
  does not exist at runtime
11345
11345
  */
11346
- nr(this, "_type");
11346
+ Qt(this, "_type");
11347
11347
  this.payload = t, this.meta = e;
11348
11348
  }
11349
11349
  }, miniSerializeError = (t) => {
@@ -11709,7 +11709,7 @@ var SchemaError = class extends Error {
11709
11709
  /**
11710
11710
  * The schema issues.
11711
11711
  */
11712
- nr(this, "issues");
11712
+ Qt(this, "issues");
11713
11713
  this.name = "SchemaError", this.issues = e;
11714
11714
  }
11715
11715
  }, QueryStatus = /* @__PURE__ */ ((t) => (t.uninitialized = "uninitialized", t.pending = "pending", t.fulfilled = "fulfilled", t.rejected = "rejected", t))(QueryStatus || {});
@@ -58291,10 +58291,10 @@ function indentCodeCompensation(t, e, n) {
58291
58291
  var _Tokenizer = class {
58292
58292
  // set by the lexer
58293
58293
  constructor(t) {
58294
- nr(this, "options");
58295
- nr(this, "rules");
58294
+ Qt(this, "options");
58295
+ Qt(this, "rules");
58296
58296
  // set by the lexer
58297
- nr(this, "lexer");
58297
+ Qt(this, "lexer");
58298
58298
  this.options = t || _defaults;
58299
58299
  }
58300
58300
  space(t) {
@@ -58770,13 +58770,13 @@ ${_}` : _;
58770
58770
  };
58771
58771
  }
58772
58772
  }
58773
- }, _Lexer = class mn {
58773
+ }, _Lexer = class yn {
58774
58774
  constructor(e) {
58775
- nr(this, "tokens");
58776
- nr(this, "options");
58777
- nr(this, "state");
58778
- nr(this, "tokenizer");
58779
- nr(this, "inlineQueue");
58775
+ Qt(this, "tokens");
58776
+ Qt(this, "options");
58777
+ Qt(this, "state");
58778
+ Qt(this, "tokenizer");
58779
+ Qt(this, "inlineQueue");
58780
58780
  this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || _defaults, this.options.tokenizer = this.options.tokenizer || new _Tokenizer(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
58781
58781
  inLink: !1,
58782
58782
  inRawBlock: !1,
@@ -58802,13 +58802,13 @@ ${_}` : _;
58802
58802
  * Static Lex Method
58803
58803
  */
58804
58804
  static lex(e, n) {
58805
- return new mn(n).lex(e);
58805
+ return new yn(n).lex(e);
58806
58806
  }
58807
58807
  /**
58808
58808
  * Static Lex Inline Method
58809
58809
  */
58810
58810
  static lexInline(e, n) {
58811
- return new mn(n).inlineTokens(e);
58811
+ return new yn(n).inlineTokens(e);
58812
58812
  }
58813
58813
  /**
58814
58814
  * Preprocessing
@@ -59017,8 +59017,8 @@ ${_}` : _;
59017
59017
  }, _Renderer = class {
59018
59018
  // set by the parser
59019
59019
  constructor(t) {
59020
- nr(this, "options");
59021
- nr(this, "parser");
59020
+ Qt(this, "options");
59021
+ Qt(this, "parser");
59022
59022
  this.options = t || _defaults;
59023
59023
  }
59024
59024
  space(t) {
@@ -59178,24 +59178,24 @@ ${t}</tr>
59178
59178
  br() {
59179
59179
  return "";
59180
59180
  }
59181
- }, _Parser = class gn {
59181
+ }, _Parser = class vn {
59182
59182
  constructor(e) {
59183
- nr(this, "options");
59184
- nr(this, "renderer");
59185
- nr(this, "textRenderer");
59183
+ Qt(this, "options");
59184
+ Qt(this, "renderer");
59185
+ Qt(this, "textRenderer");
59186
59186
  this.options = e || _defaults, this.options.renderer = this.options.renderer || new _Renderer(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new _TextRenderer();
59187
59187
  }
59188
59188
  /**
59189
59189
  * Static Parse Method
59190
59190
  */
59191
59191
  static parse(e, n) {
59192
- return new gn(n).parse(e);
59192
+ return new vn(n).parse(e);
59193
59193
  }
59194
59194
  /**
59195
59195
  * Static Parse Inline Method
59196
59196
  */
59197
59197
  static parseInline(e, n) {
59198
- return new gn(n).parseInline(e);
59198
+ return new vn(n).parseInline(e);
59199
59199
  }
59200
59200
  /**
59201
59201
  * Parse Loop
@@ -59340,10 +59340,10 @@ ${t}</tr>
59340
59340
  }
59341
59341
  return o;
59342
59342
  }
59343
- }, pn, _Hooks = (pn = class {
59343
+ }, gn, _Hooks = (gn = class {
59344
59344
  constructor(t) {
59345
- nr(this, "options");
59346
- nr(this, "block");
59345
+ Qt(this, "options");
59346
+ Qt(this, "block");
59347
59347
  this.options = t || _defaults;
59348
59348
  }
59349
59349
  /**
@@ -59376,22 +59376,22 @@ ${t}</tr>
59376
59376
  provideParser() {
59377
59377
  return this.block ? _Parser.parse : _Parser.parseInline;
59378
59378
  }
59379
- }, nr(pn, "passThroughHooks", /* @__PURE__ */ new Set([
59379
+ }, Qt(gn, "passThroughHooks", /* @__PURE__ */ new Set([
59380
59380
  "preprocess",
59381
59381
  "postprocess",
59382
59382
  "processAllTokens"
59383
- ])), pn), Marked = class {
59383
+ ])), gn), Marked = class {
59384
59384
  constructor(...t) {
59385
- nr(this, "defaults", _getDefaults());
59386
- nr(this, "options", this.setOptions);
59387
- nr(this, "parse", this.parseMarkdown(!0));
59388
- nr(this, "parseInline", this.parseMarkdown(!1));
59389
- nr(this, "Parser", _Parser);
59390
- nr(this, "Renderer", _Renderer);
59391
- nr(this, "TextRenderer", _TextRenderer);
59392
- nr(this, "Lexer", _Lexer);
59393
- nr(this, "Tokenizer", _Tokenizer);
59394
- nr(this, "Hooks", _Hooks);
59385
+ Qt(this, "defaults", _getDefaults());
59386
+ Qt(this, "options", this.setOptions);
59387
+ Qt(this, "parse", this.parseMarkdown(!0));
59388
+ Qt(this, "parseInline", this.parseMarkdown(!1));
59389
+ Qt(this, "Parser", _Parser);
59390
+ Qt(this, "Renderer", _Renderer);
59391
+ Qt(this, "TextRenderer", _TextRenderer);
59392
+ Qt(this, "Lexer", _Lexer);
59393
+ Qt(this, "Tokenizer", _Tokenizer);
59394
+ Qt(this, "Hooks", _Hooks);
59395
59395
  this.use(...t);
59396
59396
  }
59397
59397
  /**
@@ -59807,20 +59807,20 @@ function createDOMPurify() {
59807
59807
  const ar = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
59808
59808
  let cr = null;
59809
59809
  const pt = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), xr = "http://www.w3.org/1998/Math/MathML", mt = "http://www.w3.org/2000/svg", Zt = "http://www.w3.org/1999/xhtml";
59810
- let Wt = Zt, rr = !1, sr = null;
59811
- const Ar = addToSet({}, [xr, mt, Zt], stringToString);
59810
+ let Wt = Zt, nr = !1, sr = null;
59811
+ const Nr = addToSet({}, [xr, mt, Zt], stringToString);
59812
59812
  let Cr = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), pr = addToSet({}, ["annotation-xml"]);
59813
59813
  const yr = addToSet({}, ["title", "style", "font", "a", "script"]);
59814
- let er = null;
59815
- const Ir = ["application/xhtml+xml", "text/html"], Xt = "text/html";
59816
- let dr = null, Rr = null;
59817
- const hn = n.createElement("form"), Vr = function(nt) {
59814
+ let tr = null;
59815
+ const Mr = ["application/xhtml+xml", "text/html"], Xt = "text/html";
59816
+ let dr = null, Ar = null;
59817
+ const mn = n.createElement("form"), Br = function(nt) {
59818
59818
  return nt instanceof RegExp || nt instanceof Function;
59819
59819
  }, Tr = function() {
59820
59820
  let nt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
59821
- if (!(Rr && Rr === nt)) {
59822
- if ((!nt || typeof nt != "object") && (nt = {}), nt = clone(nt), er = // eslint-disable-next-line unicorn/prefer-includes
59823
- Ir.indexOf(nt.PARSER_MEDIA_TYPE) === -1 ? Xt : nt.PARSER_MEDIA_TYPE, dr = er === "application/xhtml+xml" ? stringToString : stringToLowerCase, Ge = objectHasOwnProperty(nt, "ALLOWED_TAGS") ? addToSet({}, nt.ALLOWED_TAGS, dr) : He, Ze = objectHasOwnProperty(nt, "ALLOWED_ATTR") ? addToSet({}, nt.ALLOWED_ATTR, dr) : tt, sr = objectHasOwnProperty(nt, "ALLOWED_NAMESPACES") ? addToSet({}, nt.ALLOWED_NAMESPACES, stringToString) : Ar, cr = objectHasOwnProperty(nt, "ADD_URI_SAFE_ATTR") ? addToSet(clone(pt), nt.ADD_URI_SAFE_ATTR, dr) : pt, Yt = objectHasOwnProperty(nt, "ADD_DATA_URI_TAGS") ? addToSet(clone(ar), nt.ADD_DATA_URI_TAGS, dr) : ar, Ct = objectHasOwnProperty(nt, "FORBID_CONTENTS") ? addToSet({}, nt.FORBID_CONTENTS, dr) : zt, rt = objectHasOwnProperty(nt, "FORBID_TAGS") ? addToSet({}, nt.FORBID_TAGS, dr) : clone({}), Xe = objectHasOwnProperty(nt, "FORBID_ATTR") ? addToSet({}, nt.FORBID_ATTR, dr) : clone({}), dt = objectHasOwnProperty(nt, "USE_PROFILES") ? nt.USE_PROFILES : !1, it = nt.ALLOW_ARIA_ATTR !== !1, et = nt.ALLOW_DATA_ATTR !== !1, ot = nt.ALLOW_UNKNOWN_PROTOCOLS || !1, st = nt.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ue = nt.SAFE_FOR_TEMPLATES || !1, Rt = nt.SAFE_FOR_XML !== !1, Je = nt.WHOLE_DOCUMENT || !1, qt = nt.RETURN_DOM || !1, Ht = nt.RETURN_DOM_FRAGMENT || !1, Ft = nt.RETURN_TRUSTED_TYPE || !1, Mt = nt.FORCE_BODY || !1, Ke = nt.SANITIZE_DOM !== !1, at = nt.SANITIZE_NAMED_PROPS || !1, ut = nt.KEEP_CONTENT !== !1, ft = nt.IN_PLACE || !1, qe = nt.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, Wt = nt.NAMESPACE || Zt, Cr = nt.MATHML_TEXT_INTEGRATION_POINTS || Cr, pr = nt.HTML_INTEGRATION_POINTS || pr, Ye = nt.CUSTOM_ELEMENT_HANDLING || {}, nt.CUSTOM_ELEMENT_HANDLING && Vr(nt.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Ye.tagNameCheck = nt.CUSTOM_ELEMENT_HANDLING.tagNameCheck), nt.CUSTOM_ELEMENT_HANDLING && Vr(nt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Ye.attributeNameCheck = nt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), nt.CUSTOM_ELEMENT_HANDLING && typeof nt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Ye.allowCustomizedBuiltInElements = nt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ue && (et = !1), Ht && (qt = !0), dt && (Ge = addToSet({}, text$1), Ze = [], dt.html === !0 && (addToSet(Ge, html$1), addToSet(Ze, html)), dt.svg === !0 && (addToSet(Ge, svg$1), addToSet(Ze, svg), addToSet(Ze, xml)), dt.svgFilters === !0 && (addToSet(Ge, svgFilters), addToSet(Ze, svg), addToSet(Ze, xml)), dt.mathMl === !0 && (addToSet(Ge, mathMl$1), addToSet(Ze, mathMl), addToSet(Ze, xml))), nt.ADD_TAGS && (Ge === He && (Ge = clone(Ge)), addToSet(Ge, nt.ADD_TAGS, dr)), nt.ADD_ATTR && (Ze === tt && (Ze = clone(Ze)), addToSet(Ze, nt.ADD_ATTR, dr)), nt.ADD_URI_SAFE_ATTR && addToSet(cr, nt.ADD_URI_SAFE_ATTR, dr), nt.FORBID_CONTENTS && (Ct === zt && (Ct = clone(Ct)), addToSet(Ct, nt.FORBID_CONTENTS, dr)), ut && (Ge["#text"] = !0), Je && addToSet(Ge, ["html", "head", "body"]), Ge.table && (addToSet(Ge, ["tbody"]), delete rt.tbody), nt.TRUSTED_TYPES_POLICY) {
59821
+ if (!(Ar && Ar === nt)) {
59822
+ if ((!nt || typeof nt != "object") && (nt = {}), nt = clone(nt), tr = // eslint-disable-next-line unicorn/prefer-includes
59823
+ Mr.indexOf(nt.PARSER_MEDIA_TYPE) === -1 ? Xt : nt.PARSER_MEDIA_TYPE, dr = tr === "application/xhtml+xml" ? stringToString : stringToLowerCase, Ge = objectHasOwnProperty(nt, "ALLOWED_TAGS") ? addToSet({}, nt.ALLOWED_TAGS, dr) : He, Ze = objectHasOwnProperty(nt, "ALLOWED_ATTR") ? addToSet({}, nt.ALLOWED_ATTR, dr) : tt, sr = objectHasOwnProperty(nt, "ALLOWED_NAMESPACES") ? addToSet({}, nt.ALLOWED_NAMESPACES, stringToString) : Nr, cr = objectHasOwnProperty(nt, "ADD_URI_SAFE_ATTR") ? addToSet(clone(pt), nt.ADD_URI_SAFE_ATTR, dr) : pt, Yt = objectHasOwnProperty(nt, "ADD_DATA_URI_TAGS") ? addToSet(clone(ar), nt.ADD_DATA_URI_TAGS, dr) : ar, Ct = objectHasOwnProperty(nt, "FORBID_CONTENTS") ? addToSet({}, nt.FORBID_CONTENTS, dr) : zt, rt = objectHasOwnProperty(nt, "FORBID_TAGS") ? addToSet({}, nt.FORBID_TAGS, dr) : clone({}), Xe = objectHasOwnProperty(nt, "FORBID_ATTR") ? addToSet({}, nt.FORBID_ATTR, dr) : clone({}), dt = objectHasOwnProperty(nt, "USE_PROFILES") ? nt.USE_PROFILES : !1, it = nt.ALLOW_ARIA_ATTR !== !1, et = nt.ALLOW_DATA_ATTR !== !1, ot = nt.ALLOW_UNKNOWN_PROTOCOLS || !1, st = nt.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ue = nt.SAFE_FOR_TEMPLATES || !1, Rt = nt.SAFE_FOR_XML !== !1, Je = nt.WHOLE_DOCUMENT || !1, qt = nt.RETURN_DOM || !1, Ht = nt.RETURN_DOM_FRAGMENT || !1, Ft = nt.RETURN_TRUSTED_TYPE || !1, Mt = nt.FORCE_BODY || !1, Ke = nt.SANITIZE_DOM !== !1, at = nt.SANITIZE_NAMED_PROPS || !1, ut = nt.KEEP_CONTENT !== !1, ft = nt.IN_PLACE || !1, qe = nt.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, Wt = nt.NAMESPACE || Zt, Cr = nt.MATHML_TEXT_INTEGRATION_POINTS || Cr, pr = nt.HTML_INTEGRATION_POINTS || pr, Ye = nt.CUSTOM_ELEMENT_HANDLING || {}, nt.CUSTOM_ELEMENT_HANDLING && Br(nt.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Ye.tagNameCheck = nt.CUSTOM_ELEMENT_HANDLING.tagNameCheck), nt.CUSTOM_ELEMENT_HANDLING && Br(nt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Ye.attributeNameCheck = nt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), nt.CUSTOM_ELEMENT_HANDLING && typeof nt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Ye.allowCustomizedBuiltInElements = nt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ue && (et = !1), Ht && (qt = !0), dt && (Ge = addToSet({}, text$1), Ze = [], dt.html === !0 && (addToSet(Ge, html$1), addToSet(Ze, html)), dt.svg === !0 && (addToSet(Ge, svg$1), addToSet(Ze, svg), addToSet(Ze, xml)), dt.svgFilters === !0 && (addToSet(Ge, svgFilters), addToSet(Ze, svg), addToSet(Ze, xml)), dt.mathMl === !0 && (addToSet(Ge, mathMl$1), addToSet(Ze, mathMl), addToSet(Ze, xml))), nt.ADD_TAGS && (Ge === He && (Ge = clone(Ge)), addToSet(Ge, nt.ADD_TAGS, dr)), nt.ADD_ATTR && (Ze === tt && (Ze = clone(Ze)), addToSet(Ze, nt.ADD_ATTR, dr)), nt.ADD_URI_SAFE_ATTR && addToSet(cr, nt.ADD_URI_SAFE_ATTR, dr), nt.FORBID_CONTENTS && (Ct === zt && (Ct = clone(Ct)), addToSet(Ct, nt.FORBID_CONTENTS, dr)), ut && (Ge["#text"] = !0), Je && addToSet(Ge, ["html", "head", "body"]), Ge.table && (addToSet(Ge, ["tbody"]), delete rt.tbody), nt.TRUSTED_TYPES_POLICY) {
59824
59824
  if (typeof nt.TRUSTED_TYPES_POLICY.createHTML != "function")
59825
59825
  throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
59826
59826
  if (typeof nt.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -59828,16 +59828,16 @@ function createDOMPurify() {
59828
59828
  Q = nt.TRUSTED_TYPES_POLICY, j = Q.createHTML("");
59829
59829
  } else
59830
59830
  Q === void 0 && (Q = _createTrustedTypesPolicy(R, l)), Q !== null && typeof j == "string" && (j = Q.createHTML(""));
59831
- freeze && freeze(nt), Rr = nt;
59831
+ freeze && freeze(nt), Ar = nt;
59832
59832
  }
59833
- }, Qr = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]), $r = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), Dr = function(nt) {
59833
+ }, tn = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]), Vr = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), Lr = function(nt) {
59834
59834
  let It = z(nt);
59835
59835
  (!It || !It.tagName) && (It = {
59836
59836
  namespaceURI: Wt,
59837
59837
  tagName: "template"
59838
59838
  });
59839
59839
  const Ut = stringToLowerCase(nt.tagName), lr = stringToLowerCase(It.tagName);
59840
- return sr[nt.namespaceURI] ? nt.namespaceURI === mt ? It.namespaceURI === Zt ? Ut === "svg" : It.namespaceURI === xr ? Ut === "svg" && (lr === "annotation-xml" || Cr[lr]) : !!Qr[Ut] : nt.namespaceURI === xr ? It.namespaceURI === Zt ? Ut === "math" : It.namespaceURI === mt ? Ut === "math" && pr[lr] : !!$r[Ut] : nt.namespaceURI === Zt ? It.namespaceURI === mt && !pr[lr] || It.namespaceURI === xr && !Cr[lr] ? !1 : !$r[Ut] && (yr[Ut] || !Qr[Ut]) : !!(er === "application/xhtml+xml" && sr[nt.namespaceURI]) : !1;
59840
+ return sr[nt.namespaceURI] ? nt.namespaceURI === mt ? It.namespaceURI === Zt ? Ut === "svg" : It.namespaceURI === xr ? Ut === "svg" && (lr === "annotation-xml" || Cr[lr]) : !!tn[Ut] : nt.namespaceURI === xr ? It.namespaceURI === Zt ? Ut === "math" : It.namespaceURI === mt ? Ut === "math" && pr[lr] : !!Vr[Ut] : nt.namespaceURI === Zt ? It.namespaceURI === mt && !pr[lr] || It.namespaceURI === xr && !Cr[lr] ? !1 : !Vr[Ut] && (yr[Ut] || !tn[Ut]) : !!(tr === "application/xhtml+xml" && sr[nt.namespaceURI]) : !1;
59841
59841
  }, Sr = function(nt) {
59842
59842
  arrayPush(e.removed, {
59843
59843
  element: nt
@@ -59847,7 +59847,7 @@ function createDOMPurify() {
59847
59847
  } catch {
59848
59848
  M(nt);
59849
59849
  }
59850
- }, Nr = function(nt, It) {
59850
+ }, $r = function(nt, It) {
59851
59851
  try {
59852
59852
  arrayPush(e.removed, {
59853
59853
  attribute: It.getAttributeNode(nt),
@@ -59870,7 +59870,7 @@ function createDOMPurify() {
59870
59870
  It.setAttribute(nt, "");
59871
59871
  } catch {
59872
59872
  }
59873
- }, Gr = function(nt) {
59873
+ }, Kr = function(nt) {
59874
59874
  let It = null, Ut = null;
59875
59875
  if (Mt)
59876
59876
  nt = "<remove></remove>" + nt;
@@ -59878,23 +59878,23 @@ function createDOMPurify() {
59878
59878
  const ur = stringMatch(nt, /^[\r\n\t ]+/);
59879
59879
  Ut = ur && ur[0];
59880
59880
  }
59881
- er === "application/xhtml+xml" && Wt === Zt && (nt = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + nt + "</body></html>");
59881
+ tr === "application/xhtml+xml" && Wt === Zt && (nt = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + nt + "</body></html>");
59882
59882
  const lr = Q ? Q.createHTML(nt) : nt;
59883
59883
  if (Wt === Zt)
59884
59884
  try {
59885
- It = new E().parseFromString(lr, er);
59885
+ It = new E().parseFromString(lr, tr);
59886
59886
  } catch {
59887
59887
  }
59888
59888
  if (!It || !It.documentElement) {
59889
59889
  It = F.createDocument(Wt, "template", null);
59890
59890
  try {
59891
- It.documentElement.innerHTML = rr ? j : lr;
59891
+ It.documentElement.innerHTML = nr ? j : lr;
59892
59892
  } catch {
59893
59893
  }
59894
59894
  }
59895
59895
  const gr = It.body || It.documentElement;
59896
59896
  return nt && Ut && gr.insertBefore(n.createTextNode(Ut), gr.childNodes[0] || null), Wt === Zt ? oe.call(It, Je ? "html" : "body")[0] : Je ? It.documentElement : gr;
59897
- }, Wr = function(nt) {
59897
+ }, Yr = function(nt) {
59898
59898
  return te.call(
59899
59899
  nt.ownerDocument || nt,
59900
59900
  nt,
@@ -59902,28 +59902,28 @@ function createDOMPurify() {
59902
59902
  S.SHOW_ELEMENT | S.SHOW_COMMENT | S.SHOW_TEXT | S.SHOW_PROCESSING_INSTRUCTION | S.SHOW_CDATA_SECTION,
59903
59903
  null
59904
59904
  );
59905
- }, jr = function(nt) {
59905
+ }, Ur = function(nt) {
59906
59906
  return nt instanceof C && (typeof nt.nodeName != "string" || typeof nt.textContent != "string" || typeof nt.removeChild != "function" || !(nt.attributes instanceof _) || typeof nt.removeAttribute != "function" || typeof nt.setAttribute != "function" || typeof nt.namespaceURI != "string" || typeof nt.insertBefore != "function" || typeof nt.hasChildNodes != "function");
59907
- }, Kr = function(nt) {
59907
+ }, Zr = function(nt) {
59908
59908
  return typeof g == "function" && nt instanceof g;
59909
59909
  };
59910
- function Er(Kt, nt, It) {
59910
+ function Rr(Kt, nt, It) {
59911
59911
  arrayForEach(Kt, (Ut) => {
59912
- Ut.call(e, nt, It, Rr);
59912
+ Ut.call(e, nt, It, Ar);
59913
59913
  });
59914
59914
  }
59915
- const en = function(nt) {
59915
+ const rn = function(nt) {
59916
59916
  let It = null;
59917
- if (Er(se.beforeSanitizeElements, nt, null), jr(nt))
59917
+ if (Rr(se.beforeSanitizeElements, nt, null), Ur(nt))
59918
59918
  return Sr(nt), !0;
59919
59919
  const Ut = dr(nt.nodeName);
59920
- if (Er(se.uponSanitizeElement, nt, {
59920
+ if (Rr(se.uponSanitizeElement, nt, {
59921
59921
  tagName: Ut,
59922
59922
  allowedTags: Ge
59923
- }), Rt && nt.hasChildNodes() && !Kr(nt.firstElementChild) && regExpTest(/<[/\w!]/g, nt.innerHTML) && regExpTest(/<[/\w!]/g, nt.textContent) || nt.nodeType === NODE_TYPE.progressingInstruction || Rt && nt.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, nt.data))
59923
+ }), Rt && nt.hasChildNodes() && !Zr(nt.firstElementChild) && regExpTest(/<[/\w!]/g, nt.innerHTML) && regExpTest(/<[/\w!]/g, nt.textContent) || nt.nodeType === NODE_TYPE.progressingInstruction || Rt && nt.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, nt.data))
59924
59924
  return Sr(nt), !0;
59925
59925
  if (!Ge[Ut] || rt[Ut]) {
59926
- if (!rt[Ut] && rn(Ut) && (Ye.tagNameCheck instanceof RegExp && regExpTest(Ye.tagNameCheck, Ut) || Ye.tagNameCheck instanceof Function && Ye.tagNameCheck(Ut)))
59926
+ if (!rt[Ut] && an(Ut) && (Ye.tagNameCheck instanceof RegExp && regExpTest(Ye.tagNameCheck, Ut) || Ye.tagNameCheck instanceof Function && Ye.tagNameCheck(Ut)))
59927
59927
  return !1;
59928
59928
  if (ut && !Ct[Ut]) {
59929
59929
  const lr = z(nt) || nt.parentNode, gr = q(nt) || nt.childNodes;
@@ -59937,13 +59937,13 @@ function createDOMPurify() {
59937
59937
  }
59938
59938
  return Sr(nt), !0;
59939
59939
  }
59940
- return nt instanceof b && !Dr(nt) || (Ut === "noscript" || Ut === "noembed" || Ut === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, nt.innerHTML) ? (Sr(nt), !0) : (Ue && nt.nodeType === NODE_TYPE.text && (It = nt.textContent, arrayForEach([Ae, $e, Ne], (lr) => {
59940
+ return nt instanceof b && !Lr(nt) || (Ut === "noscript" || Ut === "noembed" || Ut === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, nt.innerHTML) ? (Sr(nt), !0) : (Ue && nt.nodeType === NODE_TYPE.text && (It = nt.textContent, arrayForEach([Ae, $e, Ne], (lr) => {
59941
59941
  It = stringReplace(It, lr, " ");
59942
59942
  }), nt.textContent !== It && (arrayPush(e.removed, {
59943
59943
  element: nt.cloneNode()
59944
- }), nt.textContent = It)), Er(se.afterSanitizeElements, nt, null), !1);
59945
- }, tn = function(nt, It, Ut) {
59946
- if (Ke && (It === "id" || It === "name") && (Ut in n || Ut in hn))
59944
+ }), nt.textContent = It)), Rr(se.afterSanitizeElements, nt, null), !1);
59945
+ }, nn = function(nt, It, Ut) {
59946
+ if (Ke && (It === "id" || It === "name") && (Ut in n || Ut in mn))
59947
59947
  return !1;
59948
59948
  if (!(et && !Xe[It] && regExpTest(Ve, It))) {
59949
59949
  if (!(it && regExpTest(je, It))) {
@@ -59952,7 +59952,7 @@ function createDOMPurify() {
59952
59952
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
59953
59953
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
59954
59954
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
59955
- !(rn(nt) && (Ye.tagNameCheck instanceof RegExp && regExpTest(Ye.tagNameCheck, nt) || Ye.tagNameCheck instanceof Function && Ye.tagNameCheck(nt)) && (Ye.attributeNameCheck instanceof RegExp && regExpTest(Ye.attributeNameCheck, It) || Ye.attributeNameCheck instanceof Function && Ye.attributeNameCheck(It)) || // Alternative, second condition checks if it's an `is`-attribute, AND
59955
+ !(an(nt) && (Ye.tagNameCheck instanceof RegExp && regExpTest(Ye.tagNameCheck, nt) || Ye.tagNameCheck instanceof Function && Ye.tagNameCheck(nt)) && (Ye.attributeNameCheck instanceof RegExp && regExpTest(Ye.attributeNameCheck, It) || Ye.attributeNameCheck instanceof Function && Ye.attributeNameCheck(It)) || // Alternative, second condition checks if it's an `is`-attribute, AND
59956
59956
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
59957
59957
  It === "is" && Ye.allowCustomizedBuiltInElements && (Ye.tagNameCheck instanceof RegExp && regExpTest(Ye.tagNameCheck, Ut) || Ye.tagNameCheck instanceof Function && Ye.tagNameCheck(Ut)))
59958
59958
  ) return !1;
@@ -59969,14 +59969,14 @@ function createDOMPurify() {
59969
59969
  }
59970
59970
  }
59971
59971
  return !0;
59972
- }, rn = function(nt) {
59972
+ }, an = function(nt) {
59973
59973
  return nt !== "annotation-xml" && stringMatch(nt, Le);
59974
- }, Yr = function(nt) {
59975
- Er(se.beforeSanitizeAttributes, nt, null);
59974
+ }, Xr = function(nt) {
59975
+ Rr(se.beforeSanitizeAttributes, nt, null);
59976
59976
  const {
59977
59977
  attributes: It
59978
59978
  } = nt;
59979
- if (!It || jr(nt))
59979
+ if (!It || Ur(nt))
59980
59980
  return;
59981
59981
  const Ut = {
59982
59982
  attrName: "",
@@ -59991,32 +59991,32 @@ function createDOMPurify() {
59991
59991
  name: ur,
59992
59992
  namespaceURI: vr,
59993
59993
  value: _r
59994
- } = gr, Or = dr(ur), Zr = _r;
59995
- let Vt = ur === "value" ? Zr : stringTrim(Zr);
59996
- if (Ut.attrName = Or, Ut.attrValue = Vt, Ut.keepAttr = !0, Ut.forceKeepAttr = void 0, Er(se.uponSanitizeAttribute, nt, Ut), Vt = Ut.attrValue, at && (Or === "id" || Or === "name") && (Nr(ur, nt), Vt = Qe + Vt), Rt && regExpTest(/((--!?|])>)|<\/(style|title)/i, Vt)) {
59997
- Nr(ur, nt);
59994
+ } = gr, Dr = dr(ur), Jr = _r;
59995
+ let Vt = ur === "value" ? Jr : stringTrim(Jr);
59996
+ if (Ut.attrName = Dr, Ut.attrValue = Vt, Ut.keepAttr = !0, Ut.forceKeepAttr = void 0, Rr(se.uponSanitizeAttribute, nt, Ut), Vt = Ut.attrValue, at && (Dr === "id" || Dr === "name") && ($r(ur, nt), Vt = Qe + Vt), Rt && regExpTest(/((--!?|])>)|<\/(style|title)/i, Vt)) {
59997
+ $r(ur, nt);
59998
59998
  continue;
59999
59999
  }
60000
60000
  if (Ut.forceKeepAttr)
60001
60001
  continue;
60002
60002
  if (!Ut.keepAttr) {
60003
- Nr(ur, nt);
60003
+ $r(ur, nt);
60004
60004
  continue;
60005
60005
  }
60006
60006
  if (!st && regExpTest(/\/>/i, Vt)) {
60007
- Nr(ur, nt);
60007
+ $r(ur, nt);
60008
60008
  continue;
60009
60009
  }
60010
60010
  Ue && arrayForEach([Ae, $e, Ne], (Pr) => {
60011
60011
  Vt = stringReplace(Vt, Pr, " ");
60012
60012
  });
60013
- const Br = dr(nt.nodeName);
60014
- if (!tn(Br, Or, Vt)) {
60015
- Nr(ur, nt);
60013
+ const Fr = dr(nt.nodeName);
60014
+ if (!nn(Fr, Dr, Vt)) {
60015
+ $r(ur, nt);
60016
60016
  continue;
60017
60017
  }
60018
60018
  if (Q && typeof R == "object" && typeof R.getAttributeType == "function" && !vr)
60019
- switch (R.getAttributeType(Br, Or)) {
60019
+ switch (R.getAttributeType(Fr, Dr)) {
60020
60020
  case "TrustedHTML": {
60021
60021
  Vt = Q.createHTML(Vt);
60022
60022
  break;
@@ -60026,24 +60026,24 @@ function createDOMPurify() {
60026
60026
  break;
60027
60027
  }
60028
60028
  }
60029
- if (Vt !== Zr)
60029
+ if (Vt !== Jr)
60030
60030
  try {
60031
- vr ? nt.setAttributeNS(vr, ur, Vt) : nt.setAttribute(ur, Vt), jr(nt) ? Sr(nt) : arrayPop(e.removed);
60031
+ vr ? nt.setAttributeNS(vr, ur, Vt) : nt.setAttribute(ur, Vt), Ur(nt) ? Sr(nt) : arrayPop(e.removed);
60032
60032
  } catch {
60033
- Nr(ur, nt);
60033
+ $r(ur, nt);
60034
60034
  }
60035
60035
  }
60036
- Er(se.afterSanitizeAttributes, nt, null);
60037
- }, nn = function Kt(nt) {
60036
+ Rr(se.afterSanitizeAttributes, nt, null);
60037
+ }, on = function Kt(nt) {
60038
60038
  let It = null;
60039
- const Ut = Wr(nt);
60040
- for (Er(se.beforeSanitizeShadowDOM, nt, null); It = Ut.nextNode(); )
60041
- Er(se.uponSanitizeShadowNode, It, null), en(It), Yr(It), It.content instanceof d && Kt(It.content);
60042
- Er(se.afterSanitizeShadowDOM, nt, null);
60039
+ const Ut = Yr(nt);
60040
+ for (Rr(se.beforeSanitizeShadowDOM, nt, null); It = Ut.nextNode(); )
60041
+ Rr(se.uponSanitizeShadowNode, It, null), rn(It), Xr(It), It.content instanceof d && Kt(It.content);
60042
+ Rr(se.afterSanitizeShadowDOM, nt, null);
60043
60043
  };
60044
60044
  return e.sanitize = function(Kt) {
60045
60045
  let nt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, It = null, Ut = null, lr = null, gr = null;
60046
- if (rr = !Kt, rr && (Kt = "<!-->"), typeof Kt != "string" && !Kr(Kt))
60046
+ if (nr = !Kt, nr && (Kt = "<!-->"), typeof Kt != "string" && !Zr(Kt))
60047
60047
  if (typeof Kt.toString == "function") {
60048
60048
  if (Kt = Kt.toString(), typeof Kt != "string")
60049
60049
  throw typeErrorCreate("dirty is not a string, aborting");
@@ -60058,18 +60058,18 @@ function createDOMPurify() {
60058
60058
  throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
60059
60059
  }
60060
60060
  } else if (Kt instanceof g)
60061
- It = Gr("<!---->"), Ut = It.ownerDocument.importNode(Kt, !0), Ut.nodeType === NODE_TYPE.element && Ut.nodeName === "BODY" || Ut.nodeName === "HTML" ? It = Ut : It.appendChild(Ut);
60061
+ It = Kr("<!---->"), Ut = It.ownerDocument.importNode(Kt, !0), Ut.nodeType === NODE_TYPE.element && Ut.nodeName === "BODY" || Ut.nodeName === "HTML" ? It = Ut : It.appendChild(Ut);
60062
60062
  else {
60063
60063
  if (!qt && !Ue && !Je && // eslint-disable-next-line unicorn/prefer-includes
60064
60064
  Kt.indexOf("<") === -1)
60065
60065
  return Q && Ft ? Q.createHTML(Kt) : Kt;
60066
- if (It = Gr(Kt), !It)
60066
+ if (It = Kr(Kt), !It)
60067
60067
  return qt ? null : Ft ? j : "";
60068
60068
  }
60069
60069
  It && Mt && Sr(It.firstChild);
60070
- const ur = Wr(ft ? Kt : It);
60070
+ const ur = Yr(ft ? Kt : It);
60071
60071
  for (; lr = ur.nextNode(); )
60072
- en(lr), Yr(lr), lr.content instanceof d && nn(lr.content);
60072
+ rn(lr), Xr(lr), lr.content instanceof d && on(lr.content);
60073
60073
  if (ft)
60074
60074
  return Kt;
60075
60075
  if (qt) {
@@ -60089,11 +60089,11 @@ function createDOMPurify() {
60089
60089
  let Kt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
60090
60090
  Tr(Kt), yt = !0;
60091
60091
  }, e.clearConfig = function() {
60092
- Rr = null, yt = !1;
60092
+ Ar = null, yt = !1;
60093
60093
  }, e.isValidAttribute = function(Kt, nt, It) {
60094
- Rr || Tr({});
60094
+ Ar || Tr({});
60095
60095
  const Ut = dr(Kt), lr = dr(nt);
60096
- return tn(Ut, lr, It);
60096
+ return nn(Ut, lr, It);
60097
60097
  }, e.addHook = function(Kt, nt) {
60098
60098
  typeof nt == "function" && arrayPush(se[Kt], nt);
60099
60099
  }, e.removeHook = function(Kt, nt) {
@@ -60429,7 +60429,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60429
60429
  (async () => {
60430
60430
  const Wt = g.map(async (sr) => {
60431
60431
  var Cr, pr, yr;
60432
- const Ar = await q({
60432
+ const Nr = await q({
60433
60433
  routeApplicationId: t,
60434
60434
  conversationId: sr.ConversationId
60435
60435
  });
@@ -60437,20 +60437,20 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60437
60437
  partner1: sr.Participant1,
60438
60438
  partner2: sr.Participant2,
60439
60439
  name: ((Cr = sr.Participant) == null ? void 0 : Cr.PublicName) ?? "missing public name",
60440
- unread: ((pr = Ar.data) == null ? void 0 : pr.filter((er) => !er.Read && er.SenderId != t).length) ?? 0,
60440
+ unread: ((pr = Nr.data) == null ? void 0 : pr.filter((tr) => !tr.Read && tr.SenderId != t).length) ?? 0,
60441
60441
  pending: sr.Status !== "Approved",
60442
- messages: ((yr = Ar.data) == null ? void 0 : yr.map((er) => ({
60443
- id: "history" + er.MessageId,
60444
- fromPartnerID: er.SenderId,
60445
- toPartnerID: er.SenderId == sr.Participant1 ? sr.Participant2 : sr.Participant1,
60446
- senderName: er.SenderName ?? "missing name",
60447
- timestamp: (/* @__PURE__ */ new Date(er.SentDate + "Z")).getTime(),
60448
- content: er.Content ?? "no content"
60442
+ messages: ((yr = Nr.data) == null ? void 0 : yr.map((tr) => ({
60443
+ id: "history" + tr.MessageId,
60444
+ fromPartnerID: tr.SenderId,
60445
+ toPartnerID: tr.SenderId == sr.Participant1 ? sr.Participant2 : sr.Participant1,
60446
+ senderName: tr.SenderName ?? "missing name",
60447
+ timestamp: (/* @__PURE__ */ new Date(tr.SentDate + "Z")).getTime(),
60448
+ content: tr.Content ?? "no content"
60449
60449
  }))) ?? [],
60450
60450
  conversationID: sr.ConversationId
60451
60451
  };
60452
- }), rr = await Promise.all(Wt);
60453
- rr.sort(sortChats), Ge([mt, ...rr]), setTimeout(() => {
60452
+ }), nr = await Promise.all(Wt);
60453
+ nr.sort(sortChats), Ge([mt, ...nr]), setTimeout(() => {
60454
60454
  var sr;
60455
60455
  return (sr = Ue.current) == null ? void 0 : sr.focus();
60456
60456
  }, 50);
@@ -60491,8 +60491,8 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60491
60491
  }, [Q]);
60492
60492
  function Ft(mt) {
60493
60493
  Ge((Zt) => Zt.map((Wt) => {
60494
- let rr = Wt.partner1 === mt.fromPartnerID && Wt.partner2 === mt.toPartnerID;
60495
- return rr || (rr = Wt.partner1 === mt.toPartnerID && Wt.partner2 === mt.fromPartnerID), !rr || Wt.messages.some((sr) => sr.id === mt.id) ? Wt : (Le([Wt.partner1, Wt.partner2]), { ...Wt, unread: Wt.unread + 1, messages: [...Wt.messages, mt] });
60494
+ let nr = Wt.partner1 === mt.fromPartnerID && Wt.partner2 === mt.toPartnerID;
60495
+ return nr || (nr = Wt.partner1 === mt.toPartnerID && Wt.partner2 === mt.fromPartnerID), !nr || Wt.messages.some((sr) => sr.id === mt.id) ? Wt : (Le([Wt.partner1, Wt.partner2]), { ...Wt, unread: Wt.unread + 1, messages: [...Wt.messages, mt] });
60496
60496
  }).sort(sortChats));
60497
60497
  }
60498
60498
  useEffect(() => {
@@ -60513,7 +60513,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60513
60513
  var Zt;
60514
60514
  if (!Ae) return;
60515
60515
  const mt = yt();
60516
- mt && ((Zt = Ue.current) == null || Zt.focus(), mt.unread > 0 && (qt(), Ge((Wt) => Wt.map((rr) => rr.partner1 === Ae[0] && rr.partner2 === Ae[1] ? { ...rr, unread: 0 } : rr))), setTimeout(() => {
60516
+ mt && ((Zt = Ue.current) == null || Zt.focus(), mt.unread > 0 && (qt(), Ge((Wt) => Wt.map((nr) => nr.partner1 === Ae[0] && nr.partner2 === Ae[1] ? { ...nr, unread: 0 } : nr))), setTimeout(() => {
60517
60517
  var Wt;
60518
60518
  return (Wt = rt.current) == null ? void 0 : Wt.scrollIntoView({ behavior: "smooth" });
60519
60519
  }, 50));
@@ -60528,10 +60528,10 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60528
60528
  content: mt + (it ? ` (${it == null ? void 0 : it.name} attached)` : ""),
60529
60529
  timestamp: Date.now()
60530
60530
  };
60531
- Ge((Wt) => Wt.map((rr) => rr.partner1 === Ae[0] && rr.partner2 === Ae[1] ? { ...rr, messages: [...rr.messages, Zt] } : rr)), Le([Ae[0], Ae[1]]), Zt.toPartnerID == ASSISTANT_ID ? (z(Zt.content, it ?? void 0), it && st((Wt) => [...Wt, it.name])) : tt.invoke("NewMessage", Zt).catch((Wt) => console.error("Error sending message:", Wt)), Ve(""), et(null), Rt.current && (Rt.current.value = "");
60531
+ Ge((Wt) => Wt.map((nr) => nr.partner1 === Ae[0] && nr.partner2 === Ae[1] ? { ...nr, messages: [...nr.messages, Zt] } : nr)), Le([Ae[0], Ae[1]]), Zt.toPartnerID == ASSISTANT_ID ? (z(Zt.content, it ?? void 0), it && st((Wt) => [...Wt, it.name])) : tt.invoke("NewMessage", Zt).catch((Wt) => console.error("Error sending message:", Wt)), Ve(""), et(null), Rt.current && (Rt.current.value = "");
60532
60532
  }, at = (mt, Zt) => {
60533
60533
  if (!qe.length || o !== !0 && !tt || !F) return !1;
60534
- const Wt = qe.find((rr) => rr.conversationID === mt);
60534
+ const Wt = qe.find((nr) => nr.conversationID === mt);
60535
60535
  return Wt ? (Wt.pending && setTimeout(() => se("pending"), 300), $e([Wt.partner1, Wt.partner2]), Zt && ze(Zt), !0) : !1;
60536
60536
  };
60537
60537
  if (useImperativeHandle(f, () => ({
@@ -60546,9 +60546,9 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60546
60546
  if (!Mt()) return;
60547
60547
  const Zt = (Wt = mt.clipboardData) == null ? void 0 : Wt.items;
60548
60548
  if (Zt) {
60549
- for (let rr = 0; rr < Zt.length; rr++)
60550
- if (Zt[rr].type.indexOf("image") !== -1) {
60551
- const sr = Zt[rr].getAsFile();
60549
+ for (let nr = 0; nr < Zt.length; nr++)
60550
+ if (Zt[nr].type.indexOf("image") !== -1) {
60551
+ const sr = Zt[nr].getAsFile();
60552
60552
  if (sr) {
60553
60553
  et(sr);
60554
60554
  return;
@@ -61399,10 +61399,10 @@ function createFormControl(t = {}) {
61399
61399
  }), xr)
61400
61400
  return (_.isValid || C.isValid) && (e.mode === "onBlur" ? pt && I() : pt || I()), Wt && E.state.next({ name: Qe, ...mt ? {} : Zt });
61401
61401
  if (!pt && mt && E.state.next({ ...n }), e.resolver) {
61402
- const { errors: rr } = await te([Qe]);
61402
+ const { errors: nr } = await te([Qe]);
61403
61403
  if (dt(cr), ut) {
61404
- const sr = schemaErrorLookup(n.errors, o, Qe), Ar = schemaErrorLookup(rr, o, sr.name || Qe);
61405
- Yt = Ar.error, Qe = Ar.name, ar = isEmptyObject$1(rr);
61404
+ const sr = schemaErrorLookup(n.errors, o, Qe), Nr = schemaErrorLookup(nr, o, sr.name || Qe);
61405
+ Yt = Nr.error, Qe = Nr.name, ar = isEmptyObject$1(nr);
61406
61406
  }
61407
61407
  } else
61408
61408
  M([Qe], !0), Yt = (await validateField(ft, g.disabled, d, R, e.shouldUseNativeValidation))[Qe], M([Qe]), dt(cr), ut && (Yt ? ar = !1 : (_.isValid || C.isValid) && (ar = await oe(o, !0)));
@@ -63244,7 +63244,6 @@ function ManufacturerOverviewPage({
63244
63244
  manufacturer: o,
63245
63245
  userEmail: l
63246
63246
  }) {
63247
- var A;
63248
63247
  const {
63249
63248
  data: d,
63250
63249
  isLoading: f,
@@ -63263,13 +63262,13 @@ function ManufacturerOverviewPage({
63263
63262
  hasUnsavedChanges: !1
63264
63263
  }
63265
63264
  // Add other forms here if needed
63266
- }), _ = useCallback(() => e ? !1 : b.publicInfo.hasUnsavedChanges || b.qualifications.hasUnsavedChanges || b.billingInfo.hasUnsavedChanges, [e, b]), C = useCallback((I, M) => {
63267
- S((O) => {
63268
- var q;
63269
- return ((q = O[I]) == null ? void 0 : q.hasUnsavedChanges) !== M.hasUnsavedChanges ? (console.log(`Updating form state for ${I}:`, M.hasUnsavedChanges), {
63270
- ...O,
63271
- [I]: M
63272
- }) : O;
63265
+ }), _ = useCallback(() => e ? !1 : b.publicInfo.hasUnsavedChanges || b.qualifications.hasUnsavedChanges || b.billingInfo.hasUnsavedChanges, [e, b]), C = useCallback((A, I) => {
63266
+ S((M) => {
63267
+ var O;
63268
+ return ((O = M[A]) == null ? void 0 : O.hasUnsavedChanges) !== I.hasUnsavedChanges ? (console.log(`Updating form state for ${A}:`, I.hasUnsavedChanges), {
63269
+ ...M,
63270
+ [A]: I
63271
+ }) : M;
63273
63272
  });
63274
63273
  }, []), { NavigationGuardDialog: E } = useRouterNavigationGuard(_), R = o ?? d;
63275
63274
  return /* @__PURE__ */ jsxs("div", { className: "@container", children: [
@@ -63332,7 +63331,7 @@ function ManufacturerOverviewPage({
63332
63331
  manufacturer: R,
63333
63332
  readonly: e,
63334
63333
  isLoading: f,
63335
- onUnsavedChanges: (I) => C("publicInfo", { hasUnsavedChanges: I })
63334
+ onUnsavedChanges: (A) => C("publicInfo", { hasUnsavedChanges: A })
63336
63335
  }
63337
63336
  ),
63338
63337
  n && /* @__PURE__ */ jsx(
@@ -63349,7 +63348,7 @@ function ManufacturerOverviewPage({
63349
63348
  manufacturer: R,
63350
63349
  readonly: e,
63351
63350
  isLoading: f,
63352
- onUnsavedChanges: (I) => C("billingInfo", { hasUnsavedChanges: I })
63351
+ onUnsavedChanges: (A) => C("billingInfo", { hasUnsavedChanges: A })
63353
63352
  }
63354
63353
  ),
63355
63354
  n && /* @__PURE__ */ jsx(
@@ -63358,7 +63357,7 @@ function ManufacturerOverviewPage({
63358
63357
  manufacturer: R,
63359
63358
  readonly: e,
63360
63359
  isLoading: f,
63361
- onUnsavedChanges: (I) => C("qualifications", { hasUnsavedChanges: I })
63360
+ onUnsavedChanges: (A) => C("qualifications", { hasUnsavedChanges: A })
63362
63361
  }
63363
63362
  )
63364
63363
  ] }),
@@ -63369,8 +63368,7 @@ function ManufacturerOverviewPage({
63369
63368
  userEmail: l,
63370
63369
  isLoading: f
63371
63370
  }
63372
- ),
63373
- (R == null ? void 0 : R.ManufacturerId) && !((A = R.SalesStatistics) != null && A.length) && /* @__PURE__ */ jsx(AssistantChat, { userId: t, userName: l ?? "Partner", initialPrompt: `Please give me an extended report on Manufacturer #${R == null ? void 0 : R.ManufacturerId}. What types of product do they sell? I'd like to know if it would make sense for me to start reselling their products.` })
63371
+ )
63374
63372
  ] }),
63375
63373
  /* @__PURE__ */ jsx(E, {})
63376
63374
  ] });
@@ -68075,8 +68073,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68075
68073
  default:
68076
68074
  if (this.isAsyncFunction())
68077
68075
  return V && this.unexpected(), this.next(), this.parseFunctionStatement(We, !0, !V);
68078
- var Qt = this.value, Jt = this.parseExpression();
68079
- return Fe === F.name && Jt.type === "Identifier" && this.eat(F.colon) ? this.parseLabeledStatement(We, Qt, Jt, V) : this.parseExpressionStatement(We, Jt);
68076
+ var er = this.value, Jt = this.parseExpression();
68077
+ return Fe === F.name && Jt.type === "Identifier" && this.eat(F.colon) ? this.parseLabeledStatement(We, er, Jt, V) : this.parseExpressionStatement(We, Jt);
68080
68078
  }
68081
68079
  }, pt.parseBreakContinueStatement = function(V, ae) {
68082
68080
  var Be = ae === "break";
@@ -68101,10 +68099,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68101
68099
  var Fe = this.startNode(), We = Be ? "let" : this.value;
68102
68100
  return this.next(), this.parseVar(Fe, !0, We), this.finishNode(Fe, "VariableDeclaration"), (this.type === F._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && Fe.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === F._in ? ae > -1 && this.unexpected(ae) : V.await = ae > -1), this.parseForIn(V, Fe)) : (ae > -1 && this.unexpected(ae), this.parseFor(V, Fe));
68103
68101
  }
68104
- var lt = this.isContextual("let"), ct = !1, $t = this.containsEsc, Dt = new cr(), Qt = this.start, Jt = ae > -1 ? this.parseExprSubscripts(Dt, "await") : this.parseExpression(!0, Dt);
68105
- return this.type === F._in || (ct = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (ae > -1 ? (this.type === F._in && this.unexpected(ae), V.await = !0) : ct && this.options.ecmaVersion >= 8 && (Jt.start === Qt && !$t && Jt.type === "Identifier" && Jt.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (V.await = !1)), lt && ct && this.raise(Jt.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(Jt, !1, Dt), this.checkLValPattern(Jt), this.parseForIn(V, Jt)) : (this.checkExpressionErrors(Dt, !0), ae > -1 && this.unexpected(ae), this.parseFor(V, Jt));
68102
+ var lt = this.isContextual("let"), ct = !1, $t = this.containsEsc, Dt = new cr(), er = this.start, Jt = ae > -1 ? this.parseExprSubscripts(Dt, "await") : this.parseExpression(!0, Dt);
68103
+ return this.type === F._in || (ct = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (ae > -1 ? (this.type === F._in && this.unexpected(ae), V.await = !0) : ct && this.options.ecmaVersion >= 8 && (Jt.start === er && !$t && Jt.type === "Identifier" && Jt.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (V.await = !1)), lt && ct && this.raise(Jt.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(Jt, !1, Dt), this.checkLValPattern(Jt), this.parseForIn(V, Jt)) : (this.checkExpressionErrors(Dt, !0), ae > -1 && this.unexpected(ae), this.parseFor(V, Jt));
68106
68104
  }, pt.parseFunctionStatement = function(V, ae, Be) {
68107
- return this.next(), this.parseFunction(V, Wt | (Be ? 0 : rr), !1, ae);
68105
+ return this.next(), this.parseFunction(V, Wt | (Be ? 0 : nr), !1, ae);
68108
68106
  }, pt.parseIfStatement = function(V) {
68109
68107
  return this.next(), V.test = this.parseParenExpression(), V.consequent = this.parseStatement("if"), V.alternate = this.eat(F._else) ? this.parseStatement("if") : null, this.finishNode(V, "IfStatement");
68110
68108
  }, pt.parseReturnStatement = function(V) {
@@ -68145,9 +68143,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68145
68143
  ct.name === ae && this.raise(Be.start, "Label '" + ae + "' is already declared");
68146
68144
  }
68147
68145
  for (var $t = this.type.isLoop ? "loop" : this.type === F._switch ? "switch" : null, Dt = this.labels.length - 1; Dt >= 0; Dt--) {
68148
- var Qt = this.labels[Dt];
68149
- if (Qt.statementStart === V.start)
68150
- Qt.statementStart = this.start, Qt.kind = $t;
68146
+ var er = this.labels[Dt];
68147
+ if (er.statementStart === V.start)
68148
+ er.statementStart = this.start, er.kind = $t;
68151
68149
  else
68152
68150
  break;
68153
68151
  }
@@ -68175,9 +68173,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68175
68173
  }, pt.parseVarId = function(V, ae) {
68176
68174
  V.id = this.parseBindingAtom(), this.checkLValPattern(V.id, ae === "var" ? at : Qe, !1);
68177
68175
  };
68178
- var Wt = 1, rr = 2, sr = 4;
68176
+ var Wt = 1, nr = 2, sr = 4;
68179
68177
  pt.parseFunction = function(V, ae, Be, Fe, We) {
68180
- this.initFunction(V), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !Fe) && (this.type === F.star && ae & rr && this.unexpected(), V.generator = this.eat(F.star)), this.options.ecmaVersion >= 8 && (V.async = !!Fe), ae & Wt && (V.id = ae & sr && this.type !== F.name ? null : this.parseIdent(), V.id && !(ae & rr) && this.checkLValSimple(V.id, this.strict || V.generator || V.async ? this.treatFunctionsAsVar ? at : Qe : ut));
68178
+ this.initFunction(V), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !Fe) && (this.type === F.star && ae & nr && this.unexpected(), V.generator = this.eat(F.star)), this.options.ecmaVersion >= 8 && (V.async = !!Fe), ae & Wt && (V.id = ae & sr && this.type !== F.name ? null : this.parseIdent(), V.id && !(ae & nr) && this.checkLValSimple(V.id, this.strict || V.generator || V.async ? this.treatFunctionsAsVar ? at : Qe : ut));
68181
68179
  var lt = this.yieldPos, ct = this.awaitPos, $t = this.awaitIdentPos;
68182
68180
  return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ft(V.async, V.generator)), ae & Wt || (V.id = this.type === F.name ? this.parseIdent() : null), this.parseFunctionParams(V), this.parseFunctionBody(V, Be, !1, We), this.yieldPos = lt, this.awaitPos = ct, this.awaitIdentPos = $t, this.finishNode(V, ae & Wt ? "FunctionDeclaration" : "FunctionExpression");
68183
68181
  }, pt.parseFunctionParams = function(V) {
@@ -68189,7 +68187,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68189
68187
  var Fe = this.enterClassBody(), We = this.startNode(), lt = !1;
68190
68188
  for (We.body = [], this.expect(F.braceL); this.type !== F.braceR; ) {
68191
68189
  var ct = this.parseClassElement(V.superClass !== null);
68192
- ct && (We.body.push(ct), ct.type === "MethodDefinition" && ct.kind === "constructor" ? (lt && this.raiseRecoverable(ct.start, "Duplicate constructor in the same class"), lt = !0) : ct.key && ct.key.type === "PrivateIdentifier" && Ar(Fe, ct) && this.raiseRecoverable(ct.key.start, "Identifier '#" + ct.key.name + "' has already been declared"));
68190
+ ct && (We.body.push(ct), ct.type === "MethodDefinition" && ct.kind === "constructor" ? (lt && this.raiseRecoverable(ct.start, "Duplicate constructor in the same class"), lt = !0) : ct.key && ct.key.type === "PrivateIdentifier" && Nr(Fe, ct) && this.raiseRecoverable(ct.key.start, "Identifier '#" + ct.key.name + "' has already been declared"));
68193
68191
  }
68194
68192
  return this.strict = Be, this.next(), V.body = this.finishNode(We, "ClassBody"), this.exitClassBody(), this.finishNode(V, ae ? "ClassDeclaration" : "ClassExpression");
68195
68193
  }, pt.parseClassElement = function(V) {
@@ -68206,8 +68204,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68206
68204
  (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ct = Dt : Fe = Dt);
68207
68205
  }
68208
68206
  if (Fe ? (Be.computed = !1, Be.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), Be.key.name = Fe, this.finishNode(Be.key, "Identifier")) : this.parseClassElementName(Be), ae < 13 || this.type === F.parenL || ct !== "method" || We || lt) {
68209
- var Qt = !Be.static && Cr(Be, "constructor"), Jt = Qt && V;
68210
- Qt && ct !== "method" && this.raise(Be.key.start, "Constructor can't have get/set modifier"), Be.kind = Qt ? "constructor" : ct, this.parseClassMethod(Be, We, lt, Jt);
68207
+ var er = !Be.static && Cr(Be, "constructor"), Jt = er && V;
68208
+ er && ct !== "method" && this.raise(Be.key.start, "Constructor can't have get/set modifier"), Be.kind = er ? "constructor" : ct, this.parseClassMethod(Be, We, lt, Jt);
68211
68209
  } else
68212
68210
  this.parseClassField(Be);
68213
68211
  return Be;
@@ -68250,7 +68248,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68250
68248
  je(ae, ct.name) || (We ? We.used.push(ct) : this.raiseRecoverable(ct.start, "Private field '#" + ct.name + "' must be declared in an enclosing class"));
68251
68249
  }
68252
68250
  };
68253
- function Ar(V, ae) {
68251
+ function Nr(V, ae) {
68254
68252
  var Be = ae.key.name, Fe = V[Be], We = "true";
68255
68253
  return ae.type === "MethodDefinition" && (ae.kind === "get" || ae.kind === "set") && (We = (ae.static ? "s" : "i") + ae.kind), Fe === "iget" && We === "iset" || Fe === "iset" && We === "iget" || Fe === "sget" && We === "sset" || Fe === "sset" && We === "sget" ? (V[Be] = "true", !1) : Fe ? !0 : (V[Be] = We, !1);
68256
68254
  }
@@ -68517,7 +68515,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68517
68515
  };
68518
68516
  var yr = function(ae, Be, Fe, We, lt) {
68519
68517
  this.token = ae, this.isExpr = !!Be, this.preserveSpace = !!Fe, this.override = We, this.generator = !!lt;
68520
- }, er = {
68518
+ }, tr = {
68521
68519
  b_stat: new yr("{", !1),
68522
68520
  b_expr: new yr("{", !0),
68523
68521
  b_tmpl: new yr("${", !1),
@@ -68530,25 +68528,25 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68530
68528
  f_expr: new yr("function", !0),
68531
68529
  f_expr_gen: new yr("function", !0, !1, null, !0),
68532
68530
  f_gen: new yr("function", !1, !1, null, !0)
68533
- }, Ir = Ct.prototype;
68534
- Ir.initialContext = function() {
68535
- return [er.b_stat];
68536
- }, Ir.curContext = function() {
68531
+ }, Mr = Ct.prototype;
68532
+ Mr.initialContext = function() {
68533
+ return [tr.b_stat];
68534
+ }, Mr.curContext = function() {
68537
68535
  return this.context[this.context.length - 1];
68538
- }, Ir.braceIsBlock = function(V) {
68536
+ }, Mr.braceIsBlock = function(V) {
68539
68537
  var ae = this.curContext();
68540
- return ae === er.f_expr || ae === er.f_stat ? !0 : V === F.colon && (ae === er.b_stat || ae === er.b_expr) ? !ae.isExpr : V === F._return || V === F.name && this.exprAllowed ? te.test(this.input.slice(this.lastTokEnd, this.start)) : V === F._else || V === F.semi || V === F.eof || V === F.parenR || V === F.arrow ? !0 : V === F.braceL ? ae === er.b_stat : V === F._var || V === F._const || V === F.name ? !1 : !this.exprAllowed;
68541
- }, Ir.inGeneratorContext = function() {
68538
+ return ae === tr.f_expr || ae === tr.f_stat ? !0 : V === F.colon && (ae === tr.b_stat || ae === tr.b_expr) ? !ae.isExpr : V === F._return || V === F.name && this.exprAllowed ? te.test(this.input.slice(this.lastTokEnd, this.start)) : V === F._else || V === F.semi || V === F.eof || V === F.parenR || V === F.arrow ? !0 : V === F.braceL ? ae === tr.b_stat : V === F._var || V === F._const || V === F.name ? !1 : !this.exprAllowed;
68539
+ }, Mr.inGeneratorContext = function() {
68542
68540
  for (var V = this.context.length - 1; V >= 1; V--) {
68543
68541
  var ae = this.context[V];
68544
68542
  if (ae.token === "function")
68545
68543
  return ae.generator;
68546
68544
  }
68547
68545
  return !1;
68548
- }, Ir.updateContext = function(V) {
68546
+ }, Mr.updateContext = function(V) {
68549
68547
  var ae, Be = this.type;
68550
68548
  Be.keyword && V === F.dot ? this.exprAllowed = !1 : (ae = Be.updateContext) ? ae.call(this, V) : this.exprAllowed = Be.beforeExpr;
68551
- }, Ir.overrideContext = function(V) {
68549
+ }, Mr.overrideContext = function(V) {
68552
68550
  this.curContext() !== V && (this.context[this.context.length - 1] = V);
68553
68551
  }, F.parenR.updateContext = F.braceR.updateContext = function() {
68554
68552
  if (this.context.length === 1) {
@@ -68556,25 +68554,25 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68556
68554
  return;
68557
68555
  }
68558
68556
  var V = this.context.pop();
68559
- V === er.b_stat && this.curContext().token === "function" && (V = this.context.pop()), this.exprAllowed = !V.isExpr;
68557
+ V === tr.b_stat && this.curContext().token === "function" && (V = this.context.pop()), this.exprAllowed = !V.isExpr;
68560
68558
  }, F.braceL.updateContext = function(V) {
68561
- this.context.push(this.braceIsBlock(V) ? er.b_stat : er.b_expr), this.exprAllowed = !0;
68559
+ this.context.push(this.braceIsBlock(V) ? tr.b_stat : tr.b_expr), this.exprAllowed = !0;
68562
68560
  }, F.dollarBraceL.updateContext = function() {
68563
- this.context.push(er.b_tmpl), this.exprAllowed = !0;
68561
+ this.context.push(tr.b_tmpl), this.exprAllowed = !0;
68564
68562
  }, F.parenL.updateContext = function(V) {
68565
68563
  var ae = V === F._if || V === F._for || V === F._with || V === F._while;
68566
- this.context.push(ae ? er.p_stat : er.p_expr), this.exprAllowed = !0;
68564
+ this.context.push(ae ? tr.p_stat : tr.p_expr), this.exprAllowed = !0;
68567
68565
  }, F.incDec.updateContext = function() {
68568
68566
  }, F._function.updateContext = F._class.updateContext = function(V) {
68569
- V.beforeExpr && V !== F._else && !(V === F.semi && this.curContext() !== er.p_stat) && !(V === F._return && te.test(this.input.slice(this.lastTokEnd, this.start))) && !((V === F.colon || V === F.braceL) && this.curContext() === er.b_stat) ? this.context.push(er.f_expr) : this.context.push(er.f_stat), this.exprAllowed = !1;
68567
+ V.beforeExpr && V !== F._else && !(V === F.semi && this.curContext() !== tr.p_stat) && !(V === F._return && te.test(this.input.slice(this.lastTokEnd, this.start))) && !((V === F.colon || V === F.braceL) && this.curContext() === tr.b_stat) ? this.context.push(tr.f_expr) : this.context.push(tr.f_stat), this.exprAllowed = !1;
68570
68568
  }, F.colon.updateContext = function() {
68571
68569
  this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
68572
68570
  }, F.backQuote.updateContext = function() {
68573
- this.curContext() === er.q_tmpl ? this.context.pop() : this.context.push(er.q_tmpl), this.exprAllowed = !1;
68571
+ this.curContext() === tr.q_tmpl ? this.context.pop() : this.context.push(tr.q_tmpl), this.exprAllowed = !1;
68574
68572
  }, F.star.updateContext = function(V) {
68575
68573
  if (V === F._function) {
68576
68574
  var ae = this.context.length - 1;
68577
- this.context[ae] === er.f_expr ? this.context[ae] = er.f_expr_gen : this.context[ae] = er.f_gen;
68575
+ this.context[ae] === tr.f_expr ? this.context[ae] = tr.f_expr_gen : this.context[ae] = tr.f_gen;
68578
68576
  }
68579
68577
  this.exprAllowed = !0;
68580
68578
  }, F.name.updateContext = function(V) {
@@ -68632,13 +68630,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68632
68630
  ae ? (We = ae.parenthesizedAssign, lt = ae.trailingComma, ct = ae.doubleProto, ae.parenthesizedAssign = ae.trailingComma = -1) : (ae = new cr(), Fe = !0);
68633
68631
  var $t = this.start, Dt = this.startLoc;
68634
68632
  (this.type === F.parenL || this.type === F.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = V === "await");
68635
- var Qt = this.parseMaybeConditional(V, ae);
68636
- if (Be && (Qt = Be.call(this, Qt, $t, Dt)), this.type.isAssign) {
68633
+ var er = this.parseMaybeConditional(V, ae);
68634
+ if (Be && (er = Be.call(this, er, $t, Dt)), this.type.isAssign) {
68637
68635
  var Jt = this.startNodeAt($t, Dt);
68638
- return Jt.operator = this.value, this.type === F.eq && (Qt = this.toAssignable(Qt, !1, ae)), Fe || (ae.parenthesizedAssign = ae.trailingComma = ae.doubleProto = -1), ae.shorthandAssign >= Qt.start && (ae.shorthandAssign = -1), this.type === F.eq ? this.checkLValPattern(Qt) : this.checkLValSimple(Qt), Jt.left = Qt, this.next(), Jt.right = this.parseMaybeAssign(V), ct > -1 && (ae.doubleProto = ct), this.finishNode(Jt, "AssignmentExpression");
68636
+ return Jt.operator = this.value, this.type === F.eq && (er = this.toAssignable(er, !1, ae)), Fe || (ae.parenthesizedAssign = ae.trailingComma = ae.doubleProto = -1), ae.shorthandAssign >= er.start && (ae.shorthandAssign = -1), this.type === F.eq ? this.checkLValPattern(er) : this.checkLValSimple(er), Jt.left = er, this.next(), Jt.right = this.parseMaybeAssign(V), ct > -1 && (ae.doubleProto = ct), this.finishNode(Jt, "AssignmentExpression");
68639
68637
  } else
68640
68638
  Fe && this.checkExpressionErrors(ae, !0);
68641
- return We > -1 && (ae.parenthesizedAssign = We), lt > -1 && (ae.trailingComma = lt), Qt;
68639
+ return We > -1 && (ae.parenthesizedAssign = We), lt > -1 && (ae.trailingComma = lt), er;
68642
68640
  }, Xt.parseMaybeConditional = function(V, ae) {
68643
68641
  var Be = this.start, Fe = this.startLoc, We = this.parseExprOps(V, ae);
68644
68642
  if (this.checkExpressionErrors(ae))
@@ -68658,8 +68656,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68658
68656
  $t && (lt = F.logicalAND.binop);
68659
68657
  var Dt = this.value;
68660
68658
  this.next();
68661
- var Qt = this.start, Jt = this.startLoc, mr = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, We), Qt, Jt, lt, We), Lr = this.buildBinary(ae, Be, V, mr, Dt, ct || $t);
68662
- return (ct && this.type === F.coalesce || $t && (this.type === F.logicalOR || this.type === F.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(Lr, ae, Be, Fe, We);
68659
+ var er = this.start, Jt = this.startLoc, mr = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, We), er, Jt, lt, We), jr = this.buildBinary(ae, Be, V, mr, Dt, ct || $t);
68660
+ return (ct && this.type === F.coalesce || $t && (this.type === F.logicalOR || this.type === F.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(jr, ae, Be, Fe, We);
68663
68661
  }
68664
68662
  return V;
68665
68663
  }, Xt.buildBinary = function(V, ae, Be, Fe, We, lt) {
@@ -68672,15 +68670,15 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68672
68670
  ct = this.parseAwait(Fe), ae = !0;
68673
68671
  else if (this.type.prefix) {
68674
68672
  var $t = this.startNode(), Dt = this.type === F.incDec;
68675
- $t.operator = this.value, $t.prefix = !0, this.next(), $t.argument = this.parseMaybeUnary(null, !0, Dt, Fe), this.checkExpressionErrors(V, !0), Dt ? this.checkLValSimple($t.argument) : this.strict && $t.operator === "delete" && dr($t.argument) ? this.raiseRecoverable($t.start, "Deleting local variable in strict mode") : $t.operator === "delete" && Rr($t.argument) ? this.raiseRecoverable($t.start, "Private fields can not be deleted") : ae = !0, ct = this.finishNode($t, Dt ? "UpdateExpression" : "UnaryExpression");
68673
+ $t.operator = this.value, $t.prefix = !0, this.next(), $t.argument = this.parseMaybeUnary(null, !0, Dt, Fe), this.checkExpressionErrors(V, !0), Dt ? this.checkLValSimple($t.argument) : this.strict && $t.operator === "delete" && dr($t.argument) ? this.raiseRecoverable($t.start, "Deleting local variable in strict mode") : $t.operator === "delete" && Ar($t.argument) ? this.raiseRecoverable($t.start, "Private fields can not be deleted") : ae = !0, ct = this.finishNode($t, Dt ? "UpdateExpression" : "UnaryExpression");
68676
68674
  } else if (!ae && this.type === F.privateId)
68677
68675
  (Fe || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), ct = this.parsePrivateIdent(), this.type !== F._in && this.unexpected();
68678
68676
  else {
68679
68677
  if (ct = this.parseExprSubscripts(V, Fe), this.checkExpressionErrors(V))
68680
68678
  return ct;
68681
68679
  for (; this.type.postfix && !this.canInsertSemicolon(); ) {
68682
- var Qt = this.startNodeAt(We, lt);
68683
- Qt.operator = this.value, Qt.prefix = !1, Qt.argument = ct, this.checkLValSimple(ct), this.next(), ct = this.finishNode(Qt, "UpdateExpression");
68680
+ var er = this.startNodeAt(We, lt);
68681
+ er.operator = this.value, er.prefix = !1, er.argument = ct, this.checkLValSimple(ct), this.next(), ct = this.finishNode(er, "UpdateExpression");
68684
68682
  }
68685
68683
  }
68686
68684
  if (!Be && this.eat(F.starstar))
@@ -68694,8 +68692,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68694
68692
  function dr(V) {
68695
68693
  return V.type === "Identifier" || V.type === "ParenthesizedExpression" && dr(V.expression);
68696
68694
  }
68697
- function Rr(V) {
68698
- return V.type === "MemberExpression" && V.property.type === "PrivateIdentifier" || V.type === "ChainExpression" && Rr(V.expression) || V.type === "ParenthesizedExpression" && Rr(V.expression);
68695
+ function Ar(V) {
68696
+ return V.type === "MemberExpression" && V.property.type === "PrivateIdentifier" || V.type === "ChainExpression" && Ar(V.expression) || V.type === "ParenthesizedExpression" && Ar(V.expression);
68699
68697
  }
68700
68698
  Xt.parseExprSubscripts = function(V, ae) {
68701
68699
  var Be = this.start, Fe = this.startLoc, We = this.parseExprAtom(V, ae);
@@ -68722,23 +68720,23 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68722
68720
  }, Xt.parseSubscript = function(V, ae, Be, Fe, We, lt, ct) {
68723
68721
  var $t = this.options.ecmaVersion >= 11, Dt = $t && this.eat(F.questionDot);
68724
68722
  Fe && Dt && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
68725
- var Qt = this.eat(F.bracketL);
68726
- if (Qt || Dt && this.type !== F.parenL && this.type !== F.backQuote || this.eat(F.dot)) {
68723
+ var er = this.eat(F.bracketL);
68724
+ if (er || Dt && this.type !== F.parenL && this.type !== F.backQuote || this.eat(F.dot)) {
68727
68725
  var Jt = this.startNodeAt(ae, Be);
68728
- Jt.object = V, Qt ? (Jt.property = this.parseExpression(), this.expect(F.bracketR)) : this.type === F.privateId && V.type !== "Super" ? Jt.property = this.parsePrivateIdent() : Jt.property = this.parseIdent(this.options.allowReserved !== "never"), Jt.computed = !!Qt, $t && (Jt.optional = Dt), V = this.finishNode(Jt, "MemberExpression");
68726
+ Jt.object = V, er ? (Jt.property = this.parseExpression(), this.expect(F.bracketR)) : this.type === F.privateId && V.type !== "Super" ? Jt.property = this.parsePrivateIdent() : Jt.property = this.parseIdent(this.options.allowReserved !== "never"), Jt.computed = !!er, $t && (Jt.optional = Dt), V = this.finishNode(Jt, "MemberExpression");
68729
68727
  } else if (!Fe && this.eat(F.parenL)) {
68730
- var mr = new cr(), Lr = this.yieldPos, Xr = this.awaitPos, qr = this.awaitIdentPos;
68728
+ var mr = new cr(), jr = this.yieldPos, Qr = this.awaitPos, Hr = this.awaitIdentPos;
68731
68729
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
68732
- var sn = this.parseExprList(F.parenR, this.options.ecmaVersion >= 8, !1, mr);
68730
+ var dn = this.parseExprList(F.parenR, this.options.ecmaVersion >= 8, !1, mr);
68733
68731
  if (We && !Dt && this.shouldParseAsyncArrow())
68734
- return this.checkPatternErrors(mr, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = Lr, this.awaitPos = Xr, this.awaitIdentPos = qr, this.parseSubscriptAsyncArrow(ae, Be, sn, ct);
68735
- this.checkExpressionErrors(mr, !0), this.yieldPos = Lr || this.yieldPos, this.awaitPos = Xr || this.awaitPos, this.awaitIdentPos = qr || this.awaitIdentPos;
68736
- var Ur = this.startNodeAt(ae, Be);
68737
- Ur.callee = V, Ur.arguments = sn, $t && (Ur.optional = Dt), V = this.finishNode(Ur, "CallExpression");
68732
+ return this.checkPatternErrors(mr, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = jr, this.awaitPos = Qr, this.awaitIdentPos = Hr, this.parseSubscriptAsyncArrow(ae, Be, dn, ct);
68733
+ this.checkExpressionErrors(mr, !0), this.yieldPos = jr || this.yieldPos, this.awaitPos = Qr || this.awaitPos, this.awaitIdentPos = Hr || this.awaitIdentPos;
68734
+ var zr = this.startNodeAt(ae, Be);
68735
+ zr.callee = V, zr.arguments = dn, $t && (zr.optional = Dt), V = this.finishNode(zr, "CallExpression");
68738
68736
  } else if (this.type === F.backQuote) {
68739
68737
  (Dt || lt) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
68740
- var Hr = this.startNodeAt(ae, Be);
68741
- Hr.tag = V, Hr.quasi = this.parseTemplate({ isTagged: !0 }), V = this.finishNode(Hr, "TaggedTemplateExpression");
68738
+ var Gr = this.startNodeAt(ae, Be);
68739
+ Gr.tag = V, Gr.quasi = this.parseTemplate({ isTagged: !0 }), V = this.finishNode(Gr, "TaggedTemplateExpression");
68742
68740
  }
68743
68741
  return V;
68744
68742
  }, Xt.parseExprAtom = function(V, ae, Be) {
@@ -68752,7 +68750,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68752
68750
  case F.name:
68753
68751
  var lt = this.start, ct = this.startLoc, $t = this.containsEsc, Dt = this.parseIdent(!1);
68754
68752
  if (this.options.ecmaVersion >= 8 && !$t && Dt.name === "async" && !this.canInsertSemicolon() && this.eat(F._function))
68755
- return this.overrideContext(er.f_expr), this.parseFunction(this.startNodeAt(lt, ct), 0, !1, !0, ae);
68753
+ return this.overrideContext(tr.f_expr), this.parseFunction(this.startNodeAt(lt, ct), 0, !1, !0, ae);
68756
68754
  if (We && !this.canInsertSemicolon()) {
68757
68755
  if (this.eat(F.arrow))
68758
68756
  return this.parseArrowExpression(this.startNodeAt(lt, ct), [Dt], !1, ae);
@@ -68761,8 +68759,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68761
68759
  }
68762
68760
  return Dt;
68763
68761
  case F.regexp:
68764
- var Qt = this.value;
68765
- return Fe = this.parseLiteral(Qt.value), Fe.regex = { pattern: Qt.pattern, flags: Qt.flags }, Fe;
68762
+ var er = this.value;
68763
+ return Fe = this.parseLiteral(er.value), Fe.regex = { pattern: er.pattern, flags: er.flags }, Fe;
68766
68764
  case F.num:
68767
68765
  case F.string:
68768
68766
  return this.parseLiteral(this.value);
@@ -68776,7 +68774,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68776
68774
  case F.bracketL:
68777
68775
  return Fe = this.startNode(), this.next(), Fe.elements = this.parseExprList(F.bracketR, !0, !0, V), this.finishNode(Fe, "ArrayExpression");
68778
68776
  case F.braceL:
68779
- return this.overrideContext(er.b_expr), this.parseObj(!1, V);
68777
+ return this.overrideContext(tr.b_expr), this.parseObj(!1, V);
68780
68778
  case F._function:
68781
68779
  return Fe = this.startNode(), this.next(), this.parseFunction(Fe, 0);
68782
68780
  case F._class:
@@ -68824,25 +68822,25 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68824
68822
  var Be = this.start, Fe = this.startLoc, We, lt = this.options.ecmaVersion >= 8;
68825
68823
  if (this.options.ecmaVersion >= 6) {
68826
68824
  this.next();
68827
- var ct = this.start, $t = this.startLoc, Dt = [], Qt = !0, Jt = !1, mr = new cr(), Lr = this.yieldPos, Xr = this.awaitPos, qr;
68825
+ var ct = this.start, $t = this.startLoc, Dt = [], er = !0, Jt = !1, mr = new cr(), jr = this.yieldPos, Qr = this.awaitPos, Hr;
68828
68826
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== F.parenR; )
68829
- if (Qt ? Qt = !1 : this.expect(F.comma), lt && this.afterTrailingComma(F.parenR, !0)) {
68827
+ if (er ? er = !1 : this.expect(F.comma), lt && this.afterTrailingComma(F.parenR, !0)) {
68830
68828
  Jt = !0;
68831
68829
  break;
68832
68830
  } else if (this.type === F.ellipsis) {
68833
- qr = this.start, Dt.push(this.parseParenItem(this.parseRestBinding())), this.type === F.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
68831
+ Hr = this.start, Dt.push(this.parseParenItem(this.parseRestBinding())), this.type === F.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
68834
68832
  break;
68835
68833
  } else
68836
68834
  Dt.push(this.parseMaybeAssign(!1, mr, this.parseParenItem));
68837
- var sn = this.lastTokEnd, Ur = this.lastTokEndLoc;
68835
+ var dn = this.lastTokEnd, zr = this.lastTokEndLoc;
68838
68836
  if (this.expect(F.parenR), V && this.shouldParseArrow(Dt) && this.eat(F.arrow))
68839
- return this.checkPatternErrors(mr, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = Lr, this.awaitPos = Xr, this.parseParenArrowList(Be, Fe, Dt, ae);
68840
- (!Dt.length || Jt) && this.unexpected(this.lastTokStart), qr && this.unexpected(qr), this.checkExpressionErrors(mr, !0), this.yieldPos = Lr || this.yieldPos, this.awaitPos = Xr || this.awaitPos, Dt.length > 1 ? (We = this.startNodeAt(ct, $t), We.expressions = Dt, this.finishNodeAt(We, "SequenceExpression", sn, Ur)) : We = Dt[0];
68837
+ return this.checkPatternErrors(mr, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = jr, this.awaitPos = Qr, this.parseParenArrowList(Be, Fe, Dt, ae);
68838
+ (!Dt.length || Jt) && this.unexpected(this.lastTokStart), Hr && this.unexpected(Hr), this.checkExpressionErrors(mr, !0), this.yieldPos = jr || this.yieldPos, this.awaitPos = Qr || this.awaitPos, Dt.length > 1 ? (We = this.startNodeAt(ct, $t), We.expressions = Dt, this.finishNodeAt(We, "SequenceExpression", dn, zr)) : We = Dt[0];
68841
68839
  } else
68842
68840
  We = this.parseParenExpression();
68843
68841
  if (this.options.preserveParens) {
68844
- var Hr = this.startNodeAt(Be, Fe);
68845
- return Hr.expression = We, this.finishNode(Hr, "ParenthesizedExpression");
68842
+ var Gr = this.startNodeAt(Be, Fe);
68843
+ return Gr.expression = We, this.finishNode(Gr, "ParenthesizedExpression");
68846
68844
  } else
68847
68845
  return We;
68848
68846
  }, Xt.parseParenItem = function(V) {
@@ -68850,7 +68848,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68850
68848
  }, Xt.parseParenArrowList = function(V, ae, Be, Fe) {
68851
68849
  return this.parseArrowExpression(this.startNodeAt(V, ae), Be, !1, Fe);
68852
68850
  };
68853
- var hn = [];
68851
+ var mn = [];
68854
68852
  Xt.parseNew = function() {
68855
68853
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
68856
68854
  var V = this.startNode();
@@ -68861,7 +68859,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68861
68859
  return V.property = this.parseIdent(!0), V.property.name !== "target" && this.raiseRecoverable(V.property.start, "The only valid meta property for new is 'new.target'"), Be && this.raiseRecoverable(V.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(V.start, "'new.target' can only be used in functions and class static block"), this.finishNode(V, "MetaProperty");
68862
68860
  }
68863
68861
  var Fe = this.start, We = this.startLoc;
68864
- return V.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), Fe, We, !0, !1), this.eat(F.parenL) ? V.arguments = this.parseExprList(F.parenR, this.options.ecmaVersion >= 8, !1) : V.arguments = hn, this.finishNode(V, "NewExpression");
68862
+ return V.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), Fe, We, !0, !1), this.eat(F.parenL) ? V.arguments = this.parseExprList(F.parenR, this.options.ecmaVersion >= 8, !1) : V.arguments = mn, this.finishNode(V, "NewExpression");
68865
68863
  }, Xt.parseTemplateElement = function(V) {
68866
68864
  var ae = V.isTagged, Be = this.startNode();
68867
68865
  return this.type === F.invalidTemplate ? (ae || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), Be.value = {
@@ -68985,21 +68983,21 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68985
68983
  var ae = this.startNode();
68986
68984
  return this.next(), ae.argument = this.parseMaybeUnary(null, !0, !1, V), this.finishNode(ae, "AwaitExpression");
68987
68985
  };
68988
- var Vr = Ct.prototype;
68989
- Vr.raise = function(V, ae) {
68986
+ var Br = Ct.prototype;
68987
+ Br.raise = function(V, ae) {
68990
68988
  var Be = tt(this.input, V);
68991
68989
  ae += " (" + Be.line + ":" + Be.column + ")";
68992
68990
  var Fe = new SyntaxError(ae);
68993
68991
  throw Fe.pos = V, Fe.loc = Be, Fe.raisedAt = this.pos, Fe;
68994
- }, Vr.raiseRecoverable = Vr.raise, Vr.curPosition = function() {
68992
+ }, Br.raiseRecoverable = Br.raise, Br.curPosition = function() {
68995
68993
  if (this.options.locations)
68996
68994
  return new He(this.curLine, this.pos - this.lineStart);
68997
68995
  };
68998
- var Tr = Ct.prototype, Qr = function(ae) {
68996
+ var Tr = Ct.prototype, tn = function(ae) {
68999
68997
  this.flags = ae, this.var = [], this.lexical = [], this.functions = [], this.inClassFieldInit = !1;
69000
68998
  };
69001
68999
  Tr.enterScope = function(V) {
69002
- this.scopeStack.push(new Qr(V));
69000
+ this.scopeStack.push(new tn(V));
69003
69001
  }, Tr.exitScope = function() {
69004
69002
  this.scopeStack.pop();
69005
69003
  }, Tr.treatFunctionsAsVarInScope = function(V) {
@@ -69043,43 +69041,43 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69043
69041
  return ae;
69044
69042
  }
69045
69043
  };
69046
- var $r = function(ae, Be, Fe) {
69044
+ var Vr = function(ae, Be, Fe) {
69047
69045
  this.type = "", this.start = Be, this.end = 0, ae.options.locations && (this.loc = new Ze(ae, Fe)), ae.options.directSourceFile && (this.sourceFile = ae.options.directSourceFile), ae.options.ranges && (this.range = [Be, 0]);
69048
- }, Dr = Ct.prototype;
69049
- Dr.startNode = function() {
69050
- return new $r(this, this.start, this.startLoc);
69051
- }, Dr.startNodeAt = function(V, ae) {
69052
- return new $r(this, V, ae);
69046
+ }, Lr = Ct.prototype;
69047
+ Lr.startNode = function() {
69048
+ return new Vr(this, this.start, this.startLoc);
69049
+ }, Lr.startNodeAt = function(V, ae) {
69050
+ return new Vr(this, V, ae);
69053
69051
  };
69054
69052
  function Sr(V, ae, Be, Fe) {
69055
69053
  return V.type = ae, V.end = Be, this.options.locations && (V.loc.end = Fe), this.options.ranges && (V.range[1] = Be), V;
69056
69054
  }
69057
- Dr.finishNode = function(V, ae) {
69055
+ Lr.finishNode = function(V, ae) {
69058
69056
  return Sr.call(this, V, ae, this.lastTokEnd, this.lastTokEndLoc);
69059
- }, Dr.finishNodeAt = function(V, ae, Be, Fe) {
69057
+ }, Lr.finishNodeAt = function(V, ae, Be, Fe) {
69060
69058
  return Sr.call(this, V, ae, Be, Fe);
69061
- }, Dr.copyNode = function(V) {
69062
- var ae = new $r(this, V.start, this.startLoc);
69059
+ }, Lr.copyNode = function(V) {
69060
+ var ae = new Vr(this, V.start, this.startLoc);
69063
69061
  for (var Be in V)
69064
69062
  ae[Be] = V[Be];
69065
69063
  return ae;
69066
69064
  };
69067
- var Nr = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Gr = Nr + " Extended_Pictographic", Wr = Gr, jr = Wr + " EBase EComp EMod EPres ExtPict", Kr = jr, Er = Kr, en = {
69068
- 9: Nr,
69069
- 10: Gr,
69070
- 11: Wr,
69071
- 12: jr,
69072
- 13: Kr,
69073
- 14: Er
69074
- }, tn = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", rn = {
69065
+ var $r = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Kr = $r + " Extended_Pictographic", Yr = Kr, Ur = Yr + " EBase EComp EMod EPres ExtPict", Zr = Ur, Rr = Zr, rn = {
69066
+ 9: $r,
69067
+ 10: Kr,
69068
+ 11: Yr,
69069
+ 12: Ur,
69070
+ 13: Zr,
69071
+ 14: Rr
69072
+ }, nn = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", an = {
69075
69073
  9: "",
69076
69074
  10: "",
69077
69075
  11: "",
69078
69076
  12: "",
69079
69077
  13: "",
69080
- 14: tn
69081
- }, Yr = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", nn = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Kt = nn + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", nt = Kt + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", It = nt + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Ut = It + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", lr = Ut + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz", gr = {
69082
- 9: nn,
69078
+ 14: nn
69079
+ }, Xr = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", on = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Kt = on + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", nt = Kt + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", It = nt + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Ut = It + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", lr = Ut + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz", gr = {
69080
+ 9: on,
69083
69081
  10: Kt,
69084
69082
  11: nt,
69085
69083
  12: It,
@@ -69088,30 +69086,30 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69088
69086
  }, ur = {};
69089
69087
  function vr(V) {
69090
69088
  var ae = ur[V] = {
69091
- binary: Le(en[V] + " " + Yr),
69092
- binaryOfStrings: Le(rn[V]),
69089
+ binary: Le(rn[V] + " " + Xr),
69090
+ binaryOfStrings: Le(an[V]),
69093
69091
  nonBinary: {
69094
- General_Category: Le(Yr),
69092
+ General_Category: Le(Xr),
69095
69093
  Script: Le(gr[V])
69096
69094
  }
69097
69095
  };
69098
69096
  ae.nonBinary.Script_Extensions = ae.nonBinary.Script, ae.nonBinary.gc = ae.nonBinary.General_Category, ae.nonBinary.sc = ae.nonBinary.Script, ae.nonBinary.scx = ae.nonBinary.Script_Extensions;
69099
69097
  }
69100
- for (var _r = 0, Or = [9, 10, 11, 12, 13, 14]; _r < Or.length; _r += 1) {
69101
- var Zr = Or[_r];
69102
- vr(Zr);
69098
+ for (var _r = 0, Dr = [9, 10, 11, 12, 13, 14]; _r < Dr.length; _r += 1) {
69099
+ var Jr = Dr[_r];
69100
+ vr(Jr);
69103
69101
  }
69104
- var Vt = Ct.prototype, Br = function(ae, Be) {
69102
+ var Vt = Ct.prototype, Fr = function(ae, Be) {
69105
69103
  this.parent = ae, this.base = Be || this;
69106
69104
  };
69107
- Br.prototype.separatedFrom = function(ae) {
69105
+ Fr.prototype.separatedFrom = function(ae) {
69108
69106
  for (var Be = this; Be; Be = Be.parent)
69109
69107
  for (var Fe = ae; Fe; Fe = Fe.parent)
69110
69108
  if (Be.base === Fe.base && Be !== Fe)
69111
69109
  return !0;
69112
69110
  return !1;
69113
- }, Br.prototype.sibling = function() {
69114
- return new Br(this.parent, this.base);
69111
+ }, Fr.prototype.sibling = function() {
69112
+ return new Fr(this.parent, this.base);
69115
69113
  };
69116
69114
  var Pr = function(ae) {
69117
69115
  this.parser = ae, this.validFlags = "gim" + (ae.options.ecmaVersion >= 6 ? "uy" : "") + (ae.options.ecmaVersion >= 9 ? "s" : "") + (ae.options.ecmaVersion >= 13 ? "d" : "") + (ae.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = ur[ae.options.ecmaVersion >= 14 ? 14 : ae.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
@@ -69162,13 +69160,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69162
69160
  }
69163
69161
  this.options.ecmaVersion >= 15 && Fe && We && this.raise(V.start, "Invalid regular expression flag");
69164
69162
  };
69165
- function Mn(V) {
69163
+ function On(V) {
69166
69164
  for (var ae in V)
69167
69165
  return !0;
69168
69166
  return !1;
69169
69167
  }
69170
69168
  Vt.validateRegExpPattern = function(V) {
69171
- this.regexp_pattern(V), !V.switchN && this.options.ecmaVersion >= 9 && Mn(V.groupNames) && (V.switchN = !0, this.regexp_pattern(V));
69169
+ this.regexp_pattern(V), !V.switchN && this.options.ecmaVersion >= 9 && On(V.groupNames) && (V.switchN = !0, this.regexp_pattern(V));
69172
69170
  }, Vt.regexp_pattern = function(V) {
69173
69171
  V.pos = 0, V.lastIntValue = 0, V.lastStringValue = "", V.lastAssertionIsQuantifiable = !1, V.numCapturingParens = 0, V.maxBackReference = 0, V.groupNames = /* @__PURE__ */ Object.create(null), V.backReferenceNames.length = 0, V.branchID = null, this.regexp_disjunction(V), V.pos !== V.source.length && (V.eat(41) && V.raise("Unmatched ')'"), (V.eat(93) || V.eat(125)) && V.raise("Lone quantifier brackets")), V.maxBackReference > V.numCapturingParens && V.raise("Invalid escape");
69174
69172
  for (var ae = 0, Be = V.backReferenceNames; ae < Be.length; ae += 1) {
@@ -69177,7 +69175,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69177
69175
  }
69178
69176
  }, Vt.regexp_disjunction = function(V) {
69179
69177
  var ae = this.options.ecmaVersion >= 16;
69180
- for (ae && (V.branchID = new Br(V.branchID, null)), this.regexp_alternative(V); V.eat(124); )
69178
+ for (ae && (V.branchID = new Fr(V.branchID, null)), this.regexp_alternative(V); V.eat(124); )
69181
69179
  ae && (V.branchID = V.branchID.sibling()), this.regexp_alternative(V);
69182
69180
  ae && (V.branchID = V.branchID.parent), this.regexp_eatQuantifier(V, !0) && V.raise("Nothing to repeat"), V.eat(123) && V.raise("Lone quantifier brackets");
69183
69181
  }, Vt.regexp_alternative = function(V) {
@@ -69247,13 +69245,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69247
69245
  return this.regexp_eatBracedQuantifier(V, !0) && V.raise("Nothing to repeat"), !1;
69248
69246
  }, Vt.regexp_eatSyntaxCharacter = function(V) {
69249
69247
  var ae = V.current();
69250
- return Sn(ae) ? (V.lastIntValue = ae, V.advance(), !0) : !1;
69248
+ return Pn(ae) ? (V.lastIntValue = ae, V.advance(), !0) : !1;
69251
69249
  };
69252
- function Sn(V) {
69250
+ function Pn(V) {
69253
69251
  return V === 36 || V >= 40 && V <= 43 || V === 46 || V === 63 || V >= 91 && V <= 94 || V >= 123 && V <= 125;
69254
69252
  }
69255
69253
  Vt.regexp_eatPatternCharacters = function(V) {
69256
- for (var ae = V.pos, Be = 0; (Be = V.current()) !== -1 && !Sn(Be); )
69254
+ for (var ae = V.pos, Be = 0; (Be = V.current()) !== -1 && !Pn(Be); )
69257
69255
  V.advance();
69258
69256
  return V.pos !== ae;
69259
69257
  }, Vt.regexp_eatExtendedPatternCharacter = function(V) {
@@ -69289,16 +69287,16 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69289
69287
  return !1;
69290
69288
  }, Vt.regexp_eatRegExpIdentifierStart = function(V) {
69291
69289
  var ae = V.pos, Be = this.options.ecmaVersion >= 11, Fe = V.current(Be);
69292
- return V.advance(Be), Fe === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(V, Be) && (Fe = V.lastIntValue), $n(Fe) ? (V.lastIntValue = Fe, !0) : (V.pos = ae, !1);
69290
+ return V.advance(Be), Fe === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(V, Be) && (Fe = V.lastIntValue), Vn(Fe) ? (V.lastIntValue = Fe, !0) : (V.pos = ae, !1);
69293
69291
  };
69294
- function $n(V) {
69292
+ function Vn(V) {
69295
69293
  return A(V, !0) || V === 36 || V === 95;
69296
69294
  }
69297
69295
  Vt.regexp_eatRegExpIdentifierPart = function(V) {
69298
69296
  var ae = V.pos, Be = this.options.ecmaVersion >= 11, Fe = V.current(Be);
69299
- return V.advance(Be), Fe === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(V, Be) && (Fe = V.lastIntValue), On(Fe) ? (V.lastIntValue = Fe, !0) : (V.pos = ae, !1);
69297
+ return V.advance(Be), Fe === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(V, Be) && (Fe = V.lastIntValue), Dn(Fe) ? (V.lastIntValue = Fe, !0) : (V.pos = ae, !1);
69300
69298
  };
69301
- function On(V) {
69299
+ function Dn(V) {
69302
69300
  return I(V, !0) || V === 36 || V === 95 || V === 8204 || V === 8205;
69303
69301
  }
69304
69302
  Vt.regexp_eatAtomEscape = function(V) {
@@ -69332,15 +69330,15 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69332
69330
  }
69333
69331
  return !1;
69334
69332
  }, Vt.regexp_eatZero = function(V) {
69335
- return V.current() === 48 && !an(V.lookahead()) ? (V.lastIntValue = 0, V.advance(), !0) : !1;
69333
+ return V.current() === 48 && !sn(V.lookahead()) ? (V.lastIntValue = 0, V.advance(), !0) : !1;
69336
69334
  }, Vt.regexp_eatControlEscape = function(V) {
69337
69335
  var ae = V.current();
69338
69336
  return ae === 116 ? (V.lastIntValue = 9, V.advance(), !0) : ae === 110 ? (V.lastIntValue = 10, V.advance(), !0) : ae === 118 ? (V.lastIntValue = 11, V.advance(), !0) : ae === 102 ? (V.lastIntValue = 12, V.advance(), !0) : ae === 114 ? (V.lastIntValue = 13, V.advance(), !0) : !1;
69339
69337
  }, Vt.regexp_eatControlLetter = function(V) {
69340
69338
  var ae = V.current();
69341
- return _n(ae) ? (V.lastIntValue = ae % 32, V.advance(), !0) : !1;
69339
+ return Cn(ae) ? (V.lastIntValue = ae % 32, V.advance(), !0) : !1;
69342
69340
  };
69343
- function _n(V) {
69341
+ function Cn(V) {
69344
69342
  return V >= 65 && V <= 90 || V >= 97 && V <= 122;
69345
69343
  }
69346
69344
  Vt.regexp_eatRegExpUnicodeEscapeSequence = function(V, ae) {
@@ -69360,13 +69358,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69360
69358
  }
69361
69359
  return !0;
69362
69360
  }
69363
- if (Fe && V.eat(123) && this.regexp_eatHexDigits(V) && V.eat(125) && Vn(V.lastIntValue))
69361
+ if (Fe && V.eat(123) && this.regexp_eatHexDigits(V) && V.eat(125) && Bn(V.lastIntValue))
69364
69362
  return !0;
69365
69363
  Fe && V.raise("Invalid unicode escape"), V.pos = Be;
69366
69364
  }
69367
69365
  return !1;
69368
69366
  };
69369
- function Vn(V) {
69367
+ function Bn(V) {
69370
69368
  return V >= 0 && V <= 1114111;
69371
69369
  }
69372
69370
  Vt.regexp_eatIdentityEscape = function(V) {
@@ -69385,11 +69383,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69385
69383
  }
69386
69384
  return !1;
69387
69385
  };
69388
- var Pn = 0, Mr = 1, wr = 2;
69386
+ var Tn = 0, Or = 1, wr = 2;
69389
69387
  Vt.regexp_eatCharacterClassEscape = function(V) {
69390
69388
  var ae = V.current();
69391
- if (Dn(ae))
69392
- return V.lastIntValue = -1, V.advance(), Mr;
69389
+ if (Ln(ae))
69390
+ return V.lastIntValue = -1, V.advance(), Or;
69393
69391
  var Be = !1;
69394
69392
  if (V.switchU && this.options.ecmaVersion >= 9 && ((Be = ae === 80) || ae === 112)) {
69395
69393
  V.lastIntValue = -1, V.advance();
@@ -69398,9 +69396,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69398
69396
  return Be && Fe === wr && V.raise("Invalid property name"), Fe;
69399
69397
  V.raise("Invalid property name");
69400
69398
  }
69401
- return Pn;
69399
+ return Tn;
69402
69400
  };
69403
- function Dn(V) {
69401
+ function Ln(V) {
69404
69402
  return V === 100 || V === 68 || V === 115 || V === 83 || V === 119 || V === 87;
69405
69403
  }
69406
69404
  Vt.regexp_eatUnicodePropertyValueExpression = function(V) {
@@ -69409,39 +69407,39 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69409
69407
  var Be = V.lastStringValue;
69410
69408
  if (this.regexp_eatUnicodePropertyValue(V)) {
69411
69409
  var Fe = V.lastStringValue;
69412
- return this.regexp_validateUnicodePropertyNameAndValue(V, Be, Fe), Mr;
69410
+ return this.regexp_validateUnicodePropertyNameAndValue(V, Be, Fe), Or;
69413
69411
  }
69414
69412
  }
69415
69413
  if (V.pos = ae, this.regexp_eatLoneUnicodePropertyNameOrValue(V)) {
69416
69414
  var We = V.lastStringValue;
69417
69415
  return this.regexp_validateUnicodePropertyNameOrValue(V, We);
69418
69416
  }
69419
- return Pn;
69417
+ return Tn;
69420
69418
  }, Vt.regexp_validateUnicodePropertyNameAndValue = function(V, ae, Be) {
69421
69419
  je(V.unicodeProperties.nonBinary, ae) || V.raise("Invalid property name"), V.unicodeProperties.nonBinary[ae].test(Be) || V.raise("Invalid property value");
69422
69420
  }, Vt.regexp_validateUnicodePropertyNameOrValue = function(V, ae) {
69423
69421
  if (V.unicodeProperties.binary.test(ae))
69424
- return Mr;
69422
+ return Or;
69425
69423
  if (V.switchV && V.unicodeProperties.binaryOfStrings.test(ae))
69426
69424
  return wr;
69427
69425
  V.raise("Invalid property name");
69428
69426
  }, Vt.regexp_eatUnicodePropertyName = function(V) {
69429
69427
  var ae = 0;
69430
- for (V.lastStringValue = ""; Cn(ae = V.current()); )
69428
+ for (V.lastStringValue = ""; wn(ae = V.current()); )
69431
69429
  V.lastStringValue += qe(ae), V.advance();
69432
69430
  return V.lastStringValue !== "";
69433
69431
  };
69434
- function Cn(V) {
69435
- return _n(V) || V === 95;
69432
+ function wn(V) {
69433
+ return Cn(V) || V === 95;
69436
69434
  }
69437
69435
  Vt.regexp_eatUnicodePropertyValue = function(V) {
69438
69436
  var ae = 0;
69439
- for (V.lastStringValue = ""; Bn(ae = V.current()); )
69437
+ for (V.lastStringValue = ""; Fn(ae = V.current()); )
69440
69438
  V.lastStringValue += qe(ae), V.advance();
69441
69439
  return V.lastStringValue !== "";
69442
69440
  };
69443
- function Bn(V) {
69444
- return Cn(V) || an(V);
69441
+ function Fn(V) {
69442
+ return wn(V) || sn(V);
69445
69443
  }
69446
69444
  Vt.regexp_eatLoneUnicodePropertyNameOrValue = function(V) {
69447
69445
  return this.regexp_eatUnicodePropertyValue(V);
@@ -69452,7 +69450,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69452
69450
  }
69453
69451
  return !1;
69454
69452
  }, Vt.regexp_classContents = function(V) {
69455
- return V.current() === 93 ? Mr : V.switchV ? this.regexp_classSetExpression(V) : (this.regexp_nonEmptyClassRanges(V), Mr);
69453
+ return V.current() === 93 ? Or : V.switchV ? this.regexp_classSetExpression(V) : (this.regexp_nonEmptyClassRanges(V), Or);
69456
69454
  }, Vt.regexp_nonEmptyClassRanges = function(V) {
69457
69455
  for (; this.regexp_eatClassAtom(V); ) {
69458
69456
  var ae = V.lastIntValue;
@@ -69468,7 +69466,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69468
69466
  return !0;
69469
69467
  if (V.switchU) {
69470
69468
  var Be = V.current();
69471
- (Be === 99 || En(Be)) && V.raise("Invalid class escape"), V.raise("Invalid escape");
69469
+ (Be === 99 || An(Be)) && V.raise("Invalid class escape"), V.raise("Invalid escape");
69472
69470
  }
69473
69471
  V.pos = ae;
69474
69472
  }
@@ -69487,13 +69485,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69487
69485
  }
69488
69486
  return this.regexp_eatCharacterClassEscape(V) || this.regexp_eatCharacterEscape(V);
69489
69487
  }, Vt.regexp_classSetExpression = function(V) {
69490
- var ae = Mr, Be;
69488
+ var ae = Or, Be;
69491
69489
  if (!this.regexp_eatClassSetRange(V))
69492
69490
  if (Be = this.regexp_eatClassSetOperand(V)) {
69493
69491
  Be === wr && (ae = wr);
69494
69492
  for (var Fe = V.pos; V.eatChars([38, 38]); ) {
69495
69493
  if (V.current() !== 38 && (Be = this.regexp_eatClassSetOperand(V))) {
69496
- Be !== wr && (ae = Mr);
69494
+ Be !== wr && (ae = Or);
69497
69495
  continue;
69498
69496
  }
69499
69497
  V.raise("Invalid character in character class");
@@ -69524,7 +69522,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69524
69522
  }
69525
69523
  return !1;
69526
69524
  }, Vt.regexp_eatClassSetOperand = function(V) {
69527
- return this.regexp_eatClassSetCharacter(V) ? Mr : this.regexp_eatClassStringDisjunction(V) || this.regexp_eatNestedClass(V);
69525
+ return this.regexp_eatClassSetCharacter(V) ? Or : this.regexp_eatClassStringDisjunction(V) || this.regexp_eatNestedClass(V);
69528
69526
  }, Vt.regexp_eatNestedClass = function(V) {
69529
69527
  var ae = V.pos;
69530
69528
  if (V.eat(91)) {
@@ -69559,30 +69557,30 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69559
69557
  }, Vt.regexp_classString = function(V) {
69560
69558
  for (var ae = 0; this.regexp_eatClassSetCharacter(V); )
69561
69559
  ae++;
69562
- return ae === 1 ? Mr : wr;
69560
+ return ae === 1 ? Or : wr;
69563
69561
  }, Vt.regexp_eatClassSetCharacter = function(V) {
69564
69562
  var ae = V.pos;
69565
69563
  if (V.eat(92))
69566
69564
  return this.regexp_eatCharacterEscape(V) || this.regexp_eatClassSetReservedPunctuator(V) ? !0 : V.eat(98) ? (V.lastIntValue = 8, !0) : (V.pos = ae, !1);
69567
69565
  var Be = V.current();
69568
- return Be < 0 || Be === V.lookahead() && Ln(Be) || Fn(Be) ? !1 : (V.advance(), V.lastIntValue = Be, !0);
69566
+ return Be < 0 || Be === V.lookahead() && jn(Be) || qn(Be) ? !1 : (V.advance(), V.lastIntValue = Be, !0);
69569
69567
  };
69570
- function Ln(V) {
69568
+ function jn(V) {
69571
69569
  return V === 33 || V >= 35 && V <= 38 || V >= 42 && V <= 44 || V === 46 || V >= 58 && V <= 64 || V === 94 || V === 96 || V === 126;
69572
69570
  }
69573
- function Fn(V) {
69571
+ function qn(V) {
69574
69572
  return V === 40 || V === 41 || V === 45 || V === 47 || V >= 91 && V <= 93 || V >= 123 && V <= 125;
69575
69573
  }
69576
69574
  Vt.regexp_eatClassSetReservedPunctuator = function(V) {
69577
69575
  var ae = V.current();
69578
- return jn(ae) ? (V.lastIntValue = ae, V.advance(), !0) : !1;
69576
+ return Un(ae) ? (V.lastIntValue = ae, V.advance(), !0) : !1;
69579
69577
  };
69580
- function jn(V) {
69578
+ function Un(V) {
69581
69579
  return V === 33 || V === 35 || V === 37 || V === 38 || V === 44 || V === 45 || V >= 58 && V <= 62 || V === 64 || V === 96 || V === 126;
69582
69580
  }
69583
69581
  Vt.regexp_eatClassControlLetter = function(V) {
69584
69582
  var ae = V.current();
69585
- return an(ae) || ae === 95 ? (V.lastIntValue = ae % 32, V.advance(), !0) : !1;
69583
+ return sn(ae) || ae === 95 ? (V.lastIntValue = ae % 32, V.advance(), !0) : !1;
69586
69584
  }, Vt.regexp_eatHexEscapeSequence = function(V) {
69587
69585
  var ae = V.pos;
69588
69586
  if (V.eat(120)) {
@@ -69593,23 +69591,23 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69593
69591
  return !1;
69594
69592
  }, Vt.regexp_eatDecimalDigits = function(V) {
69595
69593
  var ae = V.pos, Be = 0;
69596
- for (V.lastIntValue = 0; an(Be = V.current()); )
69594
+ for (V.lastIntValue = 0; sn(Be = V.current()); )
69597
69595
  V.lastIntValue = 10 * V.lastIntValue + (Be - 48), V.advance();
69598
69596
  return V.pos !== ae;
69599
69597
  };
69600
- function an(V) {
69598
+ function sn(V) {
69601
69599
  return V >= 48 && V <= 57;
69602
69600
  }
69603
69601
  Vt.regexp_eatHexDigits = function(V) {
69604
69602
  var ae = V.pos, Be = 0;
69605
- for (V.lastIntValue = 0; Tn(Be = V.current()); )
69606
- V.lastIntValue = 16 * V.lastIntValue + wn(Be), V.advance();
69603
+ for (V.lastIntValue = 0; En(Be = V.current()); )
69604
+ V.lastIntValue = 16 * V.lastIntValue + Rn(Be), V.advance();
69607
69605
  return V.pos !== ae;
69608
69606
  };
69609
- function Tn(V) {
69607
+ function En(V) {
69610
69608
  return V >= 48 && V <= 57 || V >= 65 && V <= 70 || V >= 97 && V <= 102;
69611
69609
  }
69612
- function wn(V) {
69610
+ function Rn(V) {
69613
69611
  return V >= 65 && V <= 70 ? 10 + (V - 65) : V >= 97 && V <= 102 ? 10 + (V - 97) : V - 48;
69614
69612
  }
69615
69613
  Vt.regexp_eatLegacyOctalEscapeSequence = function(V) {
@@ -69625,9 +69623,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69625
69623
  return !1;
69626
69624
  }, Vt.regexp_eatOctalDigit = function(V) {
69627
69625
  var ae = V.current();
69628
- return En(ae) ? (V.lastIntValue = ae - 48, V.advance(), !0) : (V.lastIntValue = 0, !1);
69626
+ return An(ae) ? (V.lastIntValue = ae - 48, V.advance(), !0) : (V.lastIntValue = 0, !1);
69629
69627
  };
69630
- function En(V) {
69628
+ function An(V) {
69631
69629
  return V >= 48 && V <= 55;
69632
69630
  }
69633
69631
  Vt.regexp_eatFixedHexDigits = function(V, ae) {
@@ -69635,20 +69633,20 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69635
69633
  V.lastIntValue = 0;
69636
69634
  for (var Fe = 0; Fe < ae; ++Fe) {
69637
69635
  var We = V.current();
69638
- if (!Tn(We))
69636
+ if (!En(We))
69639
69637
  return V.pos = Be, !1;
69640
- V.lastIntValue = 16 * V.lastIntValue + wn(We), V.advance();
69638
+ V.lastIntValue = 16 * V.lastIntValue + Rn(We), V.advance();
69641
69639
  }
69642
69640
  return !0;
69643
69641
  };
69644
- var on = function(ae) {
69642
+ var un = function(ae) {
69645
69643
  this.type = ae.type, this.value = ae.value, this.start = ae.start, this.end = ae.end, ae.options.locations && (this.loc = new Ze(ae, ae.startLoc, ae.endLoc)), ae.options.ranges && (this.range = [ae.start, ae.end]);
69646
- }, tr = Ct.prototype;
69647
- tr.next = function(V) {
69648
- !V && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new on(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
69649
- }, tr.getToken = function() {
69650
- return this.next(), new on(this);
69651
- }, typeof Symbol < "u" && (tr[Symbol.iterator] = function() {
69644
+ }, rr = Ct.prototype;
69645
+ rr.next = function(V) {
69646
+ !V && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new un(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
69647
+ }, rr.getToken = function() {
69648
+ return this.next(), new un(this);
69649
+ }, typeof Symbol < "u" && (rr[Symbol.iterator] = function() {
69652
69650
  var V = this;
69653
69651
  return {
69654
69652
  next: function() {
@@ -69659,32 +69657,32 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69659
69657
  };
69660
69658
  }
69661
69659
  };
69662
- }), tr.nextToken = function() {
69660
+ }), rr.nextToken = function() {
69663
69661
  var V = this.curContext();
69664
69662
  if ((!V || !V.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length)
69665
69663
  return this.finishToken(F.eof);
69666
69664
  if (V.override)
69667
69665
  return V.override(this);
69668
69666
  this.readToken(this.fullCharCodeAtPos());
69669
- }, tr.readToken = function(V) {
69667
+ }, rr.readToken = function(V) {
69670
69668
  return A(V, this.options.ecmaVersion >= 6) || V === 92 ? this.readWord() : this.getTokenFromCode(V);
69671
- }, tr.fullCharCodeAtPos = function() {
69669
+ }, rr.fullCharCodeAtPos = function() {
69672
69670
  var V = this.input.charCodeAt(this.pos);
69673
69671
  if (V <= 55295 || V >= 56320)
69674
69672
  return V;
69675
69673
  var ae = this.input.charCodeAt(this.pos + 1);
69676
69674
  return ae <= 56319 || ae >= 57344 ? V : (V << 10) + ae - 56613888;
69677
- }, tr.skipBlockComment = function() {
69675
+ }, rr.skipBlockComment = function() {
69678
69676
  var V = this.options.onComment && this.curPosition(), ae = this.pos, Be = this.input.indexOf("*/", this.pos += 2);
69679
69677
  if (Be === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = Be + 2, this.options.locations)
69680
69678
  for (var Fe = void 0, We = ae; (Fe = ge(this.input, We, this.pos)) > -1; )
69681
69679
  ++this.curLine, We = this.lineStart = Fe;
69682
69680
  this.options.onComment && this.options.onComment(!0, this.input.slice(ae + 2, Be), ae, this.pos, V, this.curPosition());
69683
- }, tr.skipLineComment = function(V) {
69681
+ }, rr.skipLineComment = function(V) {
69684
69682
  for (var ae = this.pos, Be = this.options.onComment && this.curPosition(), Fe = this.input.charCodeAt(this.pos += V); this.pos < this.input.length && !oe(Fe); )
69685
69683
  Fe = this.input.charCodeAt(++this.pos);
69686
69684
  this.options.onComment && this.options.onComment(!1, this.input.slice(ae + V, this.pos), ae, this.pos, Be, this.curPosition());
69687
- }, tr.skipSpace = function() {
69685
+ }, rr.skipSpace = function() {
69688
69686
  e:
69689
69687
  for (; this.pos < this.input.length; ) {
69690
69688
  var V = this.input.charCodeAt(this.pos);
@@ -69719,23 +69717,23 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69719
69717
  break e;
69720
69718
  }
69721
69719
  }
69722
- }, tr.finishToken = function(V, ae) {
69720
+ }, rr.finishToken = function(V, ae) {
69723
69721
  this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
69724
69722
  var Be = this.type;
69725
69723
  this.type = V, this.value = ae, this.updateContext(Be);
69726
- }, tr.readToken_dot = function() {
69724
+ }, rr.readToken_dot = function() {
69727
69725
  var V = this.input.charCodeAt(this.pos + 1);
69728
69726
  if (V >= 48 && V <= 57)
69729
69727
  return this.readNumber(!0);
69730
69728
  var ae = this.input.charCodeAt(this.pos + 2);
69731
69729
  return this.options.ecmaVersion >= 6 && V === 46 && ae === 46 ? (this.pos += 3, this.finishToken(F.ellipsis)) : (++this.pos, this.finishToken(F.dot));
69732
- }, tr.readToken_slash = function() {
69730
+ }, rr.readToken_slash = function() {
69733
69731
  var V = this.input.charCodeAt(this.pos + 1);
69734
69732
  return this.exprAllowed ? (++this.pos, this.readRegexp()) : V === 61 ? this.finishOp(F.assign, 2) : this.finishOp(F.slash, 1);
69735
- }, tr.readToken_mult_modulo_exp = function(V) {
69733
+ }, rr.readToken_mult_modulo_exp = function(V) {
69736
69734
  var ae = this.input.charCodeAt(this.pos + 1), Be = 1, Fe = V === 42 ? F.star : F.modulo;
69737
69735
  return this.options.ecmaVersion >= 7 && V === 42 && ae === 42 && (++Be, Fe = F.starstar, ae = this.input.charCodeAt(this.pos + 2)), ae === 61 ? this.finishOp(F.assign, Be + 1) : this.finishOp(Fe, Be);
69738
- }, tr.readToken_pipe_amp = function(V) {
69736
+ }, rr.readToken_pipe_amp = function(V) {
69739
69737
  var ae = this.input.charCodeAt(this.pos + 1);
69740
69738
  if (ae === V) {
69741
69739
  if (this.options.ecmaVersion >= 12) {
@@ -69746,19 +69744,19 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69746
69744
  return this.finishOp(V === 124 ? F.logicalOR : F.logicalAND, 2);
69747
69745
  }
69748
69746
  return ae === 61 ? this.finishOp(F.assign, 2) : this.finishOp(V === 124 ? F.bitwiseOR : F.bitwiseAND, 1);
69749
- }, tr.readToken_caret = function() {
69747
+ }, rr.readToken_caret = function() {
69750
69748
  var V = this.input.charCodeAt(this.pos + 1);
69751
69749
  return V === 61 ? this.finishOp(F.assign, 2) : this.finishOp(F.bitwiseXOR, 1);
69752
- }, tr.readToken_plus_min = function(V) {
69750
+ }, rr.readToken_plus_min = function(V) {
69753
69751
  var ae = this.input.charCodeAt(this.pos + 1);
69754
69752
  return ae === V ? ae === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || te.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(F.incDec, 2) : ae === 61 ? this.finishOp(F.assign, 2) : this.finishOp(F.plusMin, 1);
69755
- }, tr.readToken_lt_gt = function(V) {
69753
+ }, rr.readToken_lt_gt = function(V) {
69756
69754
  var ae = this.input.charCodeAt(this.pos + 1), Be = 1;
69757
69755
  return ae === V ? (Be = V === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + Be) === 61 ? this.finishOp(F.assign, Be + 1) : this.finishOp(F.bitShift, Be)) : ae === 33 && V === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (ae === 61 && (Be = 2), this.finishOp(F.relational, Be));
69758
- }, tr.readToken_eq_excl = function(V) {
69756
+ }, rr.readToken_eq_excl = function(V) {
69759
69757
  var ae = this.input.charCodeAt(this.pos + 1);
69760
69758
  return ae === 61 ? this.finishOp(F.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : V === 61 && ae === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(F.arrow)) : this.finishOp(V === 61 ? F.eq : F.prefix, 1);
69761
- }, tr.readToken_question = function() {
69759
+ }, rr.readToken_question = function() {
69762
69760
  var V = this.options.ecmaVersion;
69763
69761
  if (V >= 11) {
69764
69762
  var ae = this.input.charCodeAt(this.pos + 1);
@@ -69777,12 +69775,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69777
69775
  }
69778
69776
  }
69779
69777
  return this.finishOp(F.question, 1);
69780
- }, tr.readToken_numberSign = function() {
69778
+ }, rr.readToken_numberSign = function() {
69781
69779
  var V = this.options.ecmaVersion, ae = 35;
69782
69780
  if (V >= 13 && (++this.pos, ae = this.fullCharCodeAtPos(), A(ae, !0) || ae === 92))
69783
69781
  return this.finishToken(F.privateId, this.readWord1());
69784
69782
  this.raise(this.pos, "Unexpected character '" + qe(ae) + "'");
69785
- }, tr.getTokenFromCode = function(V) {
69783
+ }, rr.getTokenFromCode = function(V) {
69786
69784
  switch (V) {
69787
69785
  case 46:
69788
69786
  return this.readToken_dot();
@@ -69858,10 +69856,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69858
69856
  return this.readToken_numberSign();
69859
69857
  }
69860
69858
  this.raise(this.pos, "Unexpected character '" + qe(V) + "'");
69861
- }, tr.finishOp = function(V, ae) {
69859
+ }, rr.finishOp = function(V, ae) {
69862
69860
  var Be = this.input.slice(this.pos, this.pos + ae);
69863
69861
  return this.pos += ae, this.finishToken(V, Be);
69864
- }, tr.readRegexp = function() {
69862
+ }, rr.readRegexp = function() {
69865
69863
  for (var V, ae, Be = this.pos; ; ) {
69866
69864
  this.pos >= this.input.length && this.raise(Be, "Unterminated regular expression");
69867
69865
  var Fe = this.input.charAt(this.pos);
@@ -69890,8 +69888,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69890
69888
  } catch {
69891
69889
  }
69892
69890
  return this.finishToken(F.regexp, { pattern: We, flags: ct, value: Dt });
69893
- }, tr.readInt = function(V, ae, Be) {
69894
- for (var Fe = this.options.ecmaVersion >= 12 && ae === void 0, We = Be && this.input.charCodeAt(this.pos) === 48, lt = this.pos, ct = 0, $t = 0, Dt = 0, Qt = ae ?? 1 / 0; Dt < Qt; ++Dt, ++this.pos) {
69891
+ }, rr.readInt = function(V, ae, Be) {
69892
+ for (var Fe = this.options.ecmaVersion >= 12 && ae === void 0, We = Be && this.input.charCodeAt(this.pos) === 48, lt = this.pos, ct = 0, $t = 0, Dt = 0, er = ae ?? 1 / 0; Dt < er; ++Dt, ++this.pos) {
69895
69893
  var Jt = this.input.charCodeAt(this.pos), mr = void 0;
69896
69894
  if (Fe && Jt === 95) {
69897
69895
  We && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), $t === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), Dt === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), $t = Jt;
@@ -69903,31 +69901,31 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69903
69901
  }
69904
69902
  return Fe && $t === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === lt || ae != null && this.pos - lt !== ae ? null : ct;
69905
69903
  };
69906
- function qn(V, ae) {
69904
+ function Hn(V, ae) {
69907
69905
  return ae ? parseInt(V, 8) : parseFloat(V.replace(/_/g, ""));
69908
69906
  }
69909
- function Rn(V) {
69907
+ function In(V) {
69910
69908
  return typeof BigInt != "function" ? null : BigInt(V.replace(/_/g, ""));
69911
69909
  }
69912
- tr.readRadixNumber = function(V) {
69910
+ rr.readRadixNumber = function(V) {
69913
69911
  var ae = this.pos;
69914
69912
  this.pos += 2;
69915
69913
  var Be = this.readInt(V);
69916
- return Be == null && this.raise(this.start + 2, "Expected number in radix " + V), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (Be = Rn(this.input.slice(ae, this.pos)), ++this.pos) : A(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(F.num, Be);
69917
- }, tr.readNumber = function(V) {
69914
+ return Be == null && this.raise(this.start + 2, "Expected number in radix " + V), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (Be = In(this.input.slice(ae, this.pos)), ++this.pos) : A(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(F.num, Be);
69915
+ }, rr.readNumber = function(V) {
69918
69916
  var ae = this.pos;
69919
69917
  !V && this.readInt(10, void 0, !0) === null && this.raise(ae, "Invalid number");
69920
69918
  var Be = this.pos - ae >= 2 && this.input.charCodeAt(ae) === 48;
69921
69919
  Be && this.strict && this.raise(ae, "Invalid number");
69922
69920
  var Fe = this.input.charCodeAt(this.pos);
69923
69921
  if (!Be && !V && this.options.ecmaVersion >= 11 && Fe === 110) {
69924
- var We = Rn(this.input.slice(ae, this.pos));
69922
+ var We = In(this.input.slice(ae, this.pos));
69925
69923
  return ++this.pos, A(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(F.num, We);
69926
69924
  }
69927
69925
  Be && /[89]/.test(this.input.slice(ae, this.pos)) && (Be = !1), Fe === 46 && !Be && (++this.pos, this.readInt(10), Fe = this.input.charCodeAt(this.pos)), (Fe === 69 || Fe === 101) && !Be && (Fe = this.input.charCodeAt(++this.pos), (Fe === 43 || Fe === 45) && ++this.pos, this.readInt(10) === null && this.raise(ae, "Invalid number")), A(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
69928
- var lt = qn(this.input.slice(ae, this.pos), Be);
69926
+ var lt = Hn(this.input.slice(ae, this.pos), Be);
69929
69927
  return this.finishToken(F.num, lt);
69930
- }, tr.readCodePoint = function() {
69928
+ }, rr.readCodePoint = function() {
69931
69929
  var V = this.input.charCodeAt(this.pos), ae;
69932
69930
  if (V === 123) {
69933
69931
  this.options.ecmaVersion < 6 && this.unexpected();
@@ -69936,7 +69934,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69936
69934
  } else
69937
69935
  ae = this.readHexChar(4);
69938
69936
  return ae;
69939
- }, tr.readString = function(V) {
69937
+ }, rr.readString = function(V) {
69940
69938
  for (var ae = "", Be = ++this.pos; ; ) {
69941
69939
  this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
69942
69940
  var Fe = this.input.charCodeAt(this.pos);
@@ -69946,23 +69944,23 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69946
69944
  }
69947
69945
  return ae += this.input.slice(Be, this.pos++), this.finishToken(F.string, ae);
69948
69946
  };
69949
- var An = {};
69950
- tr.tryReadTemplateToken = function() {
69947
+ var kn = {};
69948
+ rr.tryReadTemplateToken = function() {
69951
69949
  this.inTemplateElement = !0;
69952
69950
  try {
69953
69951
  this.readTmplToken();
69954
69952
  } catch (V) {
69955
- if (V === An)
69953
+ if (V === kn)
69956
69954
  this.readInvalidTemplateToken();
69957
69955
  else
69958
69956
  throw V;
69959
69957
  }
69960
69958
  this.inTemplateElement = !1;
69961
- }, tr.invalidStringToken = function(V, ae) {
69959
+ }, rr.invalidStringToken = function(V, ae) {
69962
69960
  if (this.inTemplateElement && this.options.ecmaVersion >= 9)
69963
- throw An;
69961
+ throw kn;
69964
69962
  this.raise(V, ae);
69965
- }, tr.readTmplToken = function() {
69963
+ }, rr.readTmplToken = function() {
69966
69964
  for (var V = "", ae = this.pos; ; ) {
69967
69965
  this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
69968
69966
  var Be = this.input.charCodeAt(this.pos);
@@ -69986,7 +69984,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69986
69984
  } else
69987
69985
  ++this.pos;
69988
69986
  }
69989
- }, tr.readInvalidTemplateToken = function() {
69987
+ }, rr.readInvalidTemplateToken = function() {
69990
69988
  for (; this.pos < this.input.length; this.pos++)
69991
69989
  switch (this.input[this.pos]) {
69992
69990
  case "\\":
@@ -70008,7 +70006,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
70008
70006
  break;
70009
70007
  }
70010
70008
  this.raise(this.start, "Unterminated template");
70011
- }, tr.readEscapedChar = function(V) {
70009
+ }, rr.readEscapedChar = function(V) {
70012
70010
  var ae = this.input.charCodeAt(++this.pos);
70013
70011
  switch (++this.pos, ae) {
70014
70012
  case 110:
@@ -70045,10 +70043,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
70045
70043
  }
70046
70044
  return oe(ae) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(ae);
70047
70045
  }
70048
- }, tr.readHexChar = function(V) {
70046
+ }, rr.readHexChar = function(V) {
70049
70047
  var ae = this.pos, Be = this.readInt(16, V);
70050
70048
  return Be === null && this.invalidStringToken(ae, "Bad character escape sequence"), Be;
70051
- }, tr.readWord1 = function() {
70049
+ }, rr.readWord1 = function() {
70052
70050
  this.containsEsc = !1;
70053
70051
  for (var V = "", ae = !0, Be = this.pos, Fe = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
70054
70052
  var We = this.fullCharCodeAtPos();
@@ -70065,42 +70063,42 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
70065
70063
  ae = !1;
70066
70064
  }
70067
70065
  return V + this.input.slice(Be, this.pos);
70068
- }, tr.readWord = function() {
70066
+ }, rr.readWord = function() {
70069
70067
  var V = this.readWord1(), ae = F.name;
70070
70068
  return this.keywords.test(V) && (ae = Q[V]), this.finishToken(ae, V);
70071
70069
  };
70072
- var In = "8.12.1";
70070
+ var Nn = "8.12.1";
70073
70071
  Ct.acorn = {
70074
70072
  Parser: Ct,
70075
- version: In,
70073
+ version: Nn,
70076
70074
  defaultOptions: Ye,
70077
70075
  Position: He,
70078
70076
  SourceLocation: Ze,
70079
70077
  getLineInfo: tt,
70080
- Node: $r,
70078
+ Node: Vr,
70081
70079
  TokenType: M,
70082
70080
  tokTypes: F,
70083
70081
  keywordTypes: Q,
70084
70082
  TokContext: yr,
70085
- tokContexts: er,
70083
+ tokContexts: tr,
70086
70084
  isIdentifierChar: I,
70087
70085
  isIdentifierStart: A,
70088
- Token: on,
70086
+ Token: un,
70089
70087
  isNewLine: oe,
70090
70088
  lineBreak: te,
70091
70089
  lineBreakG: ne,
70092
70090
  nonASCIIwhitespace: se
70093
70091
  };
70094
- function Un(V, ae) {
70092
+ function zn(V, ae) {
70095
70093
  return Ct.parse(V, ae);
70096
70094
  }
70097
- function Hn(V, ae, Be) {
70095
+ function Gn(V, ae, Be) {
70098
70096
  return Ct.parseExpressionAt(V, ae, Be);
70099
70097
  }
70100
- function zn(V, ae) {
70098
+ function Wn(V, ae) {
70101
70099
  return Ct.tokenizer(V, ae);
70102
70100
  }
70103
- n.Node = $r, n.Parser = Ct, n.Position = He, n.SourceLocation = Ze, n.TokContext = yr, n.Token = on, n.TokenType = M, n.defaultOptions = Ye, n.getLineInfo = tt, n.isIdentifierChar = I, n.isIdentifierStart = A, n.isNewLine = oe, n.keywordTypes = Q, n.lineBreak = te, n.lineBreakG = ne, n.nonASCIIwhitespace = se, n.parse = Un, n.parseExpressionAt = Hn, n.tokContexts = er, n.tokTypes = F, n.tokenizer = zn, n.version = In;
70101
+ n.Node = Vr, n.Parser = Ct, n.Position = He, n.SourceLocation = Ze, n.TokContext = yr, n.Token = un, n.TokenType = M, n.defaultOptions = Ye, n.getLineInfo = tt, n.isIdentifierChar = I, n.isIdentifierStart = A, n.isNewLine = oe, n.keywordTypes = Q, n.lineBreak = te, n.lineBreakG = ne, n.nonASCIIwhitespace = se, n.parse = zn, n.parseExpressionAt = Gn, n.tokContexts = tr, n.tokTypes = F, n.tokenizer = Wn, n.version = Nn;
70104
70102
  });
70105
70103
  }), require_acorn_jsx = __commonJS((t, e) => {
70106
70104
  var n = require_xhtml(), o = /^[\da-fA-F]+$/, l = /^\d+$/, d = /* @__PURE__ */ new WeakMap();
@@ -73134,12 +73132,12 @@ var hash = (t = "", e = 16) => {
73134
73132
  function handleNaN(t) {
73135
73133
  return Number.isNaN(t) ? "NaN" : t;
73136
73134
  }
73137
- var un, or, dn, fn, zr, Jr;
73135
+ var fn, or, hn, pn, Wr, en;
73138
73136
  class JsxParser extends React__default.Component {
73139
73137
  constructor() {
73140
73138
  super(...arguments);
73141
- nr(this, "ParsedChildren", null);
73142
- Fr(this, un, (n) => {
73139
+ Qt(this, "ParsedChildren", null);
73140
+ qr(this, fn, (n) => {
73143
73141
  const o = Parser.extend(AcornJSX.default({
73144
73142
  autoCloseVoidElements: this.props.autoCloseVoidElements
73145
73143
  })), l = `<root>${n}</root>`;
@@ -73151,14 +73149,14 @@ class JsxParser extends React__default.Component {
73151
73149
  }
73152
73150
  return d.map((f) => ir(this, or).call(this, f)).filter(Boolean);
73153
73151
  });
73154
- Fr(this, or, (n, o) => {
73152
+ qr(this, or, (n, o) => {
73155
73153
  var l, d;
73156
73154
  switch (n.type) {
73157
73155
  case "JSXAttribute":
73158
73156
  return n.value === null ? !0 : ir(this, or).call(this, n.value, o);
73159
73157
  case "JSXElement":
73160
73158
  case "JSXFragment":
73161
- return ir(this, Jr).call(this, n, o);
73159
+ return ir(this, en).call(this, n, o);
73162
73160
  case "JSXExpressionContainer":
73163
73161
  return ir(this, or).call(this, n.expression, o);
73164
73162
  case "JSXText":
@@ -73240,9 +73238,9 @@ class JsxParser extends React__default.Component {
73240
73238
  const C = ir(this, or).call(this, n.left, o);
73241
73239
  return n.operator === "||" && C ? C : n.operator === "&&" && C || n.operator === "||" && !C ? ir(this, or).call(this, n.right, o) : !1;
73242
73240
  case "MemberExpression":
73243
- return ir(this, fn).call(this, n, o);
73241
+ return ir(this, pn).call(this, n, o);
73244
73242
  case "ChainExpression":
73245
- return ir(this, dn).call(this, n, o);
73243
+ return ir(this, hn).call(this, n, o);
73246
73244
  case "ObjectExpression":
73247
73245
  const E = {};
73248
73246
  return n.properties.forEach((A) => {
@@ -73275,7 +73273,7 @@ class JsxParser extends React__default.Component {
73275
73273
  return;
73276
73274
  }
73277
73275
  });
73278
- Fr(this, dn, (n, o) => {
73276
+ qr(this, hn, (n, o) => {
73279
73277
  try {
73280
73278
  return ir(this, or).call(this, n.expression, o);
73281
73279
  } catch (l) {
@@ -73284,7 +73282,7 @@ class JsxParser extends React__default.Component {
73284
73282
  throw l;
73285
73283
  }
73286
73284
  });
73287
- Fr(this, fn, (n, o) => {
73285
+ qr(this, pn, (n, o) => {
73288
73286
  const l = ir(this, or).call(this, n.object, o);
73289
73287
  let d;
73290
73288
  if (n.computed)
@@ -73306,11 +73304,11 @@ class JsxParser extends React__default.Component {
73306
73304
  }
73307
73305
  return typeof f == "function" ? f.bind(l) : f;
73308
73306
  });
73309
- Fr(this, zr, (n) => n.type === "JSXIdentifier" ? n.name : `${ir(this, zr).call(this, n.object)}.${ir(this, zr).call(this, n.property)}`);
73310
- Fr(this, Jr, (n, o) => {
73311
- const { allowUnknownElements: l, components: d, componentsOnly: f, onError: g } = this.props, { children: b = [] } = n, S = n.type === "JSXElement" ? n.openingElement : n.openingFragment, { attributes: _ = [] } = S, C = n.type === "JSXElement" ? ir(this, zr).call(this, S.name) : "", E = (this.props.blacklistedAttrs || []).map((z) => z instanceof RegExp ? z : new RegExp(z, "i")), R = (this.props.blacklistedTags || []).map((z) => z.trim().toLowerCase()).filter(Boolean);
73307
+ qr(this, Wr, (n) => n.type === "JSXIdentifier" ? n.name : `${ir(this, Wr).call(this, n.object)}.${ir(this, Wr).call(this, n.property)}`);
73308
+ qr(this, en, (n, o) => {
73309
+ const { allowUnknownElements: l, components: d, componentsOnly: f, onError: g } = this.props, { children: b = [] } = n, S = n.type === "JSXElement" ? n.openingElement : n.openingFragment, { attributes: _ = [] } = S, C = n.type === "JSXElement" ? ir(this, Wr).call(this, S.name) : "", E = (this.props.blacklistedAttrs || []).map((z) => z instanceof RegExp ? z : new RegExp(z, "i")), R = (this.props.blacklistedTags || []).map((z) => z.trim().toLowerCase()).filter(Boolean);
73312
73310
  if (/^(html|head|body)$/i.test(C))
73313
- return b.map((z) => ir(this, Jr).call(this, z, o));
73311
+ return b.map((z) => ir(this, en).call(this, z, o));
73314
73312
  const A = C.trim().toLowerCase();
73315
73313
  if (R.indexOf(A) !== -1)
73316
73314
  return g(new Error(`The tag <${C}> is blacklisted, and will not be rendered.`)), null;
@@ -73351,14 +73349,14 @@ class JsxParser extends React__default.Component {
73351
73349
  }
73352
73350
  render() {
73353
73351
  const n = (this.props.jsx || "").trim().replace(/<!DOCTYPE([^>]*)>/g, "");
73354
- this.ParsedChildren = ir(this, un).call(this, n);
73352
+ this.ParsedChildren = ir(this, fn).call(this, n);
73355
73353
  const o = [.../* @__PURE__ */ new Set(["jsx-parser", ...String(this.props.className).split(" ")])].filter(Boolean).join(" ");
73356
73354
  return this.props.renderInWrapper ? /* @__PURE__ */ React__default.createElement("div", {
73357
73355
  className: o
73358
73356
  }, this.ParsedChildren) : this.ParsedChildren;
73359
73357
  }
73360
73358
  }
73361
- un = new WeakMap(), or = new WeakMap(), dn = new WeakMap(), fn = new WeakMap(), zr = new WeakMap(), Jr = new WeakMap(), nr(JsxParser, "displayName", "JsxParser"), nr(JsxParser, "defaultProps", {
73359
+ fn = new WeakMap(), or = new WeakMap(), hn = new WeakMap(), pn = new WeakMap(), Wr = new WeakMap(), en = new WeakMap(), Qt(JsxParser, "displayName", "JsxParser"), Qt(JsxParser, "defaultProps", {
73362
73360
  allowUnknownElements: !0,
73363
73361
  autoCloseVoidElements: !1,
73364
73362
  bindings: {},
@@ -77371,7 +77369,7 @@ function compareDeep(t, e) {
77371
77369
  }
77372
77370
  return !0;
77373
77371
  }
77374
- let Mark$1 = class yn {
77372
+ let Mark$1 = class xn {
77375
77373
  /**
77376
77374
  @internal
77377
77375
  */
@@ -77469,8 +77467,8 @@ let Mark$1 = class yn {
77469
77467
  */
77470
77468
  static setFrom(e) {
77471
77469
  if (!e || Array.isArray(e) && e.length == 0)
77472
- return yn.none;
77473
- if (e instanceof yn)
77470
+ return xn.none;
77471
+ if (e instanceof xn)
77474
77472
  return [e];
77475
77473
  let n = e.slice();
77476
77474
  return n.sort((o, l) => o.type.rank - l.type.rank), n;
@@ -77937,7 +77935,7 @@ class NodeRange {
77937
77935
  }
77938
77936
  }
77939
77937
  const emptyAttrs = /* @__PURE__ */ Object.create(null);
77940
- let Node$2 = class vn {
77938
+ let Node$2 = class bn {
77941
77939
  /**
77942
77940
  @internal
77943
77941
  */
@@ -78062,14 +78060,14 @@ let Node$2 = class vn {
78062
78060
  the given content (or empty, if no content is given).
78063
78061
  */
78064
78062
  copy(e = null) {
78065
- return e == this.content ? this : new vn(this.type, this.attrs, e, this.marks);
78063
+ return e == this.content ? this : new bn(this.type, this.attrs, e, this.marks);
78066
78064
  }
78067
78065
  /**
78068
78066
  Create a copy of this node, with the given set of marks instead
78069
78067
  of the node's own marks.
78070
78068
  */
78071
78069
  mark(e) {
78072
- return e == this.marks ? this : new vn(this.type, this.attrs, this.content, e);
78070
+ return e == this.marks ? this : new bn(this.type, this.attrs, this.content, e);
78073
78071
  }
78074
78072
  /**
78075
78073
  Create a copy of this node with only the content between the
@@ -78734,7 +78732,7 @@ function initAttrs(t, e) {
78734
78732
  n[o] = new Attribute(t, o, e[o]);
78735
78733
  return n;
78736
78734
  }
78737
- let NodeType$1 = class Nn {
78735
+ let NodeType$1 = class $n {
78738
78736
  /**
78739
78737
  @internal
78740
78738
  */
@@ -78902,7 +78900,7 @@ let NodeType$1 = class Nn {
78902
78900
  */
78903
78901
  static compile(e, n) {
78904
78902
  let o = /* @__PURE__ */ Object.create(null);
78905
- e.forEach((d, f) => o[d] = new Nn(d, n, f));
78903
+ e.forEach((d, f) => o[d] = new $n(d, n, f));
78906
78904
  let l = n.spec.topNode || "doc";
78907
78905
  if (!o[l])
78908
78906
  throw new RangeError("Schema is missing its top node type ('" + l + "')");
@@ -79089,7 +79087,7 @@ function isTagRule(t) {
79089
79087
  function isStyleRule(t) {
79090
79088
  return t.style != null;
79091
79089
  }
79092
- let DOMParser$1 = class xn {
79090
+ let DOMParser$1 = class Sn {
79093
79091
  /**
79094
79092
  Create a parser that targets the given schema, using the given
79095
79093
  parsing rules.
@@ -79201,7 +79199,7 @@ let DOMParser$1 = class xn {
79201
79199
  [priority](https://prosemirror.net/docs/ref/#model.ParseRule.priority).
79202
79200
  */
79203
79201
  static fromSchema(e) {
79204
- return e.cached.domParser || (e.cached.domParser = new xn(e, xn.schemaRules(e)));
79202
+ return e.cached.domParser || (e.cached.domParser = new Sn(e, Sn.schemaRules(e)));
79205
79203
  }
79206
79204
  };
79207
79205
  const blockTags = {
@@ -89016,7 +89014,7 @@ function wrappingInputRule(t) {
89016
89014
  }
89017
89015
  });
89018
89016
  }
89019
- let Node$1 = class bn {
89017
+ let Node$1 = class _n {
89020
89018
  constructor(e = {}) {
89021
89019
  this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
89022
89020
  name: this.name,
@@ -89032,7 +89030,7 @@ let Node$1 = class bn {
89032
89030
  })) || {};
89033
89031
  }
89034
89032
  static create(e = {}) {
89035
- return new bn(e);
89033
+ return new _n(e);
89036
89034
  }
89037
89035
  configure(e = {}) {
89038
89036
  const n = this.extend({
@@ -89042,7 +89040,7 @@ let Node$1 = class bn {
89042
89040
  return n.name = this.name, n.parent = this.parent, n;
89043
89041
  }
89044
89042
  extend(e = {}) {
89045
- const n = new bn(e);
89043
+ const n = new _n(e);
89046
89044
  return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = callOrReturn(getExtensionField(n, "addOptions", {
89047
89045
  name: n.name
89048
89046
  })), n.storage = callOrReturn(getExtensionField(n, "addStorage", {
@@ -92213,6 +92211,705 @@ function SalesChart({
92213
92211
  ) })
92214
92212
  ] });
92215
92213
  }
92214
+ function useLoadScript(t) {
92215
+ const [e, n] = useState(!0), [o, l] = useState(null), [d, f] = useState(!1), g = () => {
92216
+ n(!1), f(!0);
92217
+ };
92218
+ return useEffect(() => {
92219
+ if (!document) {
92220
+ const C = new Error(`[ScriptLoadingError] document not defined when attempting to load ${t}`);
92221
+ l(C);
92222
+ return;
92223
+ }
92224
+ const b = document.querySelector(`script[src="${t}"]`);
92225
+ if (b != null && b.dataset.loaded) {
92226
+ g();
92227
+ return;
92228
+ }
92229
+ const S = b || document.createElement("script");
92230
+ b || (S.src = t);
92231
+ const _ = () => {
92232
+ S.dataset.loaded = "1", g();
92233
+ };
92234
+ S.addEventListener("load", _), S.addEventListener("error", (C) => {
92235
+ console.error("Failed to load script:", t, C);
92236
+ const E = new Error(`[ScriptLoadingError] Failed to load script: ${t}`);
92237
+ l(E);
92238
+ }), b || document.head.append(S);
92239
+ }, []), {
92240
+ isLoading: e,
92241
+ error: o,
92242
+ isSuccess: d
92243
+ };
92244
+ }
92245
+ const isGoogleReady = (t) => t && t.charts, isGoogleChartsReady = (t, e) => {
92246
+ const { controls: n, toolbarItems: o, getChartEditor: l } = t;
92247
+ return e && e.charts && e.visualization && e.visualization.ChartWrapper && e.visualization.Dashboard && (!n || e.visualization.ChartWrapper) && (!l || e.visualization.ChartEditor) && (!o || e.visualization.drawToolbar);
92248
+ }, getGoogleInstanceFromWindow = (t) => window.google;
92249
+ function useLoadGoogleCharts(t) {
92250
+ const { chartVersion: e = "current", chartPackages: n = [
92251
+ "corechart",
92252
+ "controls"
92253
+ ], chartLanguage: o = "en", mapsApiKey: l } = t, [d, f] = useState(null), [g, b] = useState(null), [S, _] = useState(null), { isLoading: C, error: E, isSuccess: R } = useLoadScript(t.chartLoaderScriptUrl || "https://www.gstatic.com/charts/loader.js");
92254
+ return useEffect(() => {
92255
+ if (!R)
92256
+ return;
92257
+ const A = getGoogleInstanceFromWindow();
92258
+ if (!isGoogleReady(A)) {
92259
+ const I = new Error("[ScriptInitializationError] Script loaded but Google not attached to window.");
92260
+ b(I);
92261
+ return;
92262
+ }
92263
+ if (isGoogleChartsReady(t, A)) {
92264
+ f(A);
92265
+ return;
92266
+ }
92267
+ A.charts.load(e, {
92268
+ packages: n,
92269
+ language: o,
92270
+ mapsApiKey: l
92271
+ }), A.charts.setOnLoadCallback(() => {
92272
+ if (!isGoogleChartsReady(t, A)) {
92273
+ const I = new Error("[GoogleChartsInitializationError] Google Charts not ready after load callback.");
92274
+ console.error(I), _(I);
92275
+ return;
92276
+ }
92277
+ f(A);
92278
+ });
92279
+ }, [
92280
+ R
92281
+ ]), {
92282
+ error: E || g || S,
92283
+ isLoading: C,
92284
+ google: d
92285
+ };
92286
+ }
92287
+ const chartDefaultProps = {
92288
+ // <DEPRECATED_PROPS>
92289
+ legend_toggle: !1,
92290
+ // </DEPRECATED_PROPS>
92291
+ options: {},
92292
+ legendToggle: !1,
92293
+ getChartWrapper: () => {
92294
+ },
92295
+ spreadSheetQueryParameters: {
92296
+ headers: 1,
92297
+ gid: 1
92298
+ },
92299
+ rootProps: {},
92300
+ chartWrapperParams: {},
92301
+ chartLoaderScriptUrl: "https://www.gstatic.com/charts/loader.js"
92302
+ }, GoogleChartControls = (t) => {
92303
+ const { isReady: e, chartControls: n, filter: o } = t;
92304
+ return !e || !n || !(n != null && n.length) ? null : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, n.filter((l) => {
92305
+ let { controlProp: d, control: f } = l;
92306
+ return o ? o({
92307
+ control: f,
92308
+ controlProp: d
92309
+ }) : !0;
92310
+ }).map((l) => {
92311
+ let { control: d } = l;
92312
+ return /* @__PURE__ */ React__default.createElement("div", {
92313
+ key: d.getContainerId(),
92314
+ id: d.getContainerId()
92315
+ });
92316
+ }));
92317
+ };
92318
+ let uniqueID = 0;
92319
+ const generateUniqueID = () => (uniqueID += 1, `reactgooglegraph-${uniqueID}`), Ir = class Ir {
92320
+ };
92321
+ /**
92322
+ * Initialize the controls once chart is ready
92323
+ */
92324
+ Qt(Ir, "initializeControls", (e) => {
92325
+ for (let n = 0; n < e.length; n += 1) {
92326
+ const { controlType: o, options: l, controlWrapperParams: d } = e[n].controlProp;
92327
+ d && "state" in d && e[n].control.setState(d.state), e[n].control.setOptions(l), e[n].control.setControlType(o);
92328
+ }
92329
+ }), /**
92330
+ * listen to the control events (ready, statechange, error) specified in the controlEvents prop
92331
+ */
92332
+ Qt(Ir, "listenToControlEvents", (e, n) => {
92333
+ const { google: o } = n;
92334
+ return e.flatMap((l) => {
92335
+ const { control: d, controlProp: f } = l, { controlEvents: g = [] } = f;
92336
+ return g.map((b) => {
92337
+ const { callback: S, eventName: _ } = b;
92338
+ return o.visualization.events.addListener(d, _, function() {
92339
+ for (var C = arguments.length, E = new Array(C), R = 0; R < C; R++)
92340
+ E[R] = arguments[R];
92341
+ S({
92342
+ chartWrapper: null,
92343
+ controlWrapper: d,
92344
+ props: n,
92345
+ google: o,
92346
+ eventArgs: E
92347
+ });
92348
+ });
92349
+ });
92350
+ });
92351
+ }), /**
92352
+ * If controlID is not provided, generate a unique controlID
92353
+ */
92354
+ Qt(Ir, "createControlId", (e) => {
92355
+ let n;
92356
+ return typeof e > "u" ? n = `googlechart-control-${generateUniqueID()}` : n = e, n;
92357
+ }), /**
92358
+ * Map the control props to Google Chart Controls
92359
+ */
92360
+ Qt(Ir, "createChartControls", (e) => {
92361
+ const { controls: n, google: o } = e;
92362
+ return n ? n.map((l, d) => {
92363
+ const { controlID: f, controlType: g, options: b, controlWrapperParams: S } = l, _ = Ir.createControlId(f);
92364
+ return {
92365
+ controlProp: l,
92366
+ control: new o.visualization.ControlWrapper({
92367
+ containerId: _,
92368
+ controlType: g,
92369
+ options: b,
92370
+ ...S
92371
+ })
92372
+ };
92373
+ }) : null;
92374
+ }), Qt(Ir, "addControls", (e) => {
92375
+ const { chartWrapper: n, chartDashboard: o } = e, l = Ir.createChartControls(e);
92376
+ return !l || !o || !n ? null : (o.bind(l.map((d) => {
92377
+ let { control: f } = d;
92378
+ return f;
92379
+ }), n), Ir.initializeControls(l), l);
92380
+ });
92381
+ let GoogleChartControlsInternal = Ir;
92382
+ const useCreateChartControls = (t) => {
92383
+ const [e, n] = React.useState(null);
92384
+ return [
92385
+ React.useMemo(() => !e || !t ? null : t.map((l, d) => {
92386
+ const f = e[d];
92387
+ return f ? {
92388
+ controlProp: l,
92389
+ control: f
92390
+ } : void 0;
92391
+ }).flatMap((l) => l ? [
92392
+ l
92393
+ ] : []), [
92394
+ e,
92395
+ t
92396
+ ]),
92397
+ n
92398
+ ];
92399
+ }, useListenToControlEvents = (t, e) => {
92400
+ React.useEffect(() => {
92401
+ const n = GoogleChartControlsInternal.listenToControlEvents(t ?? [], e);
92402
+ return () => {
92403
+ n.forEach((o) => {
92404
+ e.google.visualization.events.removeListener(o);
92405
+ });
92406
+ };
92407
+ }, [
92408
+ t,
92409
+ e
92410
+ ]);
92411
+ }, useChartControls = (t) => {
92412
+ const [e, n] = useCreateChartControls(t.controls);
92413
+ return useListenToControlEvents(e ?? [], t), {
92414
+ addControls: (l) => {
92415
+ const d = GoogleChartControlsInternal.addControls(l);
92416
+ n((d == null ? void 0 : d.map((f) => f.control)) ?? null);
92417
+ },
92418
+ renderControl: (l) => {
92419
+ const { chartWrapper: d, chartDashboard: f } = t;
92420
+ return /* @__PURE__ */ React.createElement(GoogleChartControls, {
92421
+ ...t,
92422
+ isReady: !!(d && f),
92423
+ chartControls: e,
92424
+ filter: l
92425
+ });
92426
+ }
92427
+ };
92428
+ }, useChartId = (t) => {
92429
+ const e = React.useRef(null);
92430
+ return {
92431
+ chartId: (() => {
92432
+ const { graphID: l, graph_id: d } = t, f = l || d;
92433
+ let g;
92434
+ return f ? g = f : g = e.current || generateUniqueID(), e.current = g, e.current;
92435
+ })()
92436
+ };
92437
+ }, DEFAULT_CHART_COLORS = [
92438
+ "#3366CC",
92439
+ "#DC3912",
92440
+ "#FF9900",
92441
+ "#109618",
92442
+ "#990099",
92443
+ "#3B3EAC",
92444
+ "#0099C6",
92445
+ "#DD4477",
92446
+ "#66AA00",
92447
+ "#B82E2E",
92448
+ "#316395",
92449
+ "#994499",
92450
+ "#22AA99",
92451
+ "#AAAA11",
92452
+ "#6633CC",
92453
+ "#E67300",
92454
+ "#8B0707",
92455
+ "#329262",
92456
+ "#5574A6",
92457
+ "#3B3EAC"
92458
+ ], loadDataTableFromSpreadSheet = async function(t, e) {
92459
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
92460
+ return new Promise((o, l) => {
92461
+ const d = `${n.headers ? `headers=${n.headers}` : "headers=0"}`, f = `${n.query ? `&tq=${encodeURIComponent(n.query)}` : ""}`, g = `${n.gid ? `&gid=${n.gid}` : ""}`, b = `${n.sheet ? `&sheet=${n.sheet}` : ""}`, S = `${n.access_token ? `&access_token=${n.access_token}` : ""}`, _ = `${d}${g}${b}${f}${S}`, C = `${e}/gviz/tq?${_}`;
92462
+ new t.visualization.Query(C).send((R) => {
92463
+ R.isError() ? l(`Error in query: ${R.getMessage()} ${R.getDetailedMessage()}`) : o(R.getDataTable());
92464
+ });
92465
+ });
92466
+ }, GRAY_COLOR = "#CCCCCC", Er = class Er {
92467
+ };
92468
+ Qt(Er, "grayOutHiddenColumnsLabel", (e, n) => {
92469
+ const { googleChartWrapper: o, options: l } = e;
92470
+ if (!o) {
92471
+ console.error("googleChartWrapper is not defined");
92472
+ return;
92473
+ }
92474
+ const d = o.getDataTable();
92475
+ if (!d) return;
92476
+ const f = d.getNumberOfColumns();
92477
+ if (n.length > 0 === !1) return;
92478
+ const b = Array.from({
92479
+ length: f - 1
92480
+ }).map((S, _) => {
92481
+ const C = Er.getColumnId(d, _ + 1);
92482
+ return n.includes(C) ? GRAY_COLOR : l && l.colors ? l.colors[_] : DEFAULT_CHART_COLORS[_];
92483
+ });
92484
+ o.setOptions({
92485
+ ...l,
92486
+ colors: b
92487
+ }), o.draw();
92488
+ }), /**
92489
+ * Listens to user clicking on the legend to toggle the visibility of a column.
92490
+ * When a user clicks on a legend item, the column id is added to / removed from the hiddenColumns state.
92491
+ */
92492
+ Qt(Er, "listenToLegendToggle", (e, n) => {
92493
+ const [o, l] = n, { google: d, googleChartWrapper: f } = e;
92494
+ if (!f) {
92495
+ console.error("googleChartWrapper is not defined");
92496
+ return;
92497
+ }
92498
+ return d.visualization.events.addListener(f, "select", () => {
92499
+ const b = f.getChart().getSelection(), S = f.getDataTable();
92500
+ if (b.length === 0 || // We want to listen to when a whole row is selected. This is the case only when row === null
92501
+ b[0].row !== null || !S)
92502
+ return;
92503
+ const _ = b[0].column, C = Er.getColumnId(S, _);
92504
+ o != null && o.includes(C) ? l((E) => [
92505
+ ...E.filter((R) => R !== C)
92506
+ ]) : l((E) => [
92507
+ ...E,
92508
+ C
92509
+ ]);
92510
+ });
92511
+ }), /**
92512
+ * (Re-)Draw a Google Chart with the given data, options, and chart type.
92513
+ */
92514
+ Qt(Er, "draw", async (e) => {
92515
+ const { data: n, diffdata: o, rows: l, columns: d, options: f, chartType: g, formatters: b, spreadSheetUrl: S, spreadSheetQueryParameters: _, googleChartDashboard: C, googleChartWrapper: E, google: R, hiddenColumns: A, legendToggle: I, legend_toggle: M } = e;
92516
+ if (!E) {
92517
+ console.error("draw was called with googleChartWrapper = null");
92518
+ return;
92519
+ }
92520
+ let O, q = null;
92521
+ if (o) {
92522
+ const te = R.visualization.arrayToDataTable(o.old), ne = R.visualization.arrayToDataTable(o.new);
92523
+ q = R.visualization[g].prototype.computeDiff(te, ne);
92524
+ }
92525
+ n ? n instanceof R.visualization.DataTable ? O = n : Array.isArray(n) ? O = R.visualization.arrayToDataTable(n) : O = new R.visualization.DataTable(n) : l && d ? O = R.visualization.arrayToDataTable([
92526
+ d,
92527
+ ...l
92528
+ ]) : S ? O = await loadDataTableFromSpreadSheet(R, S, _) : O = R.visualization.arrayToDataTable([]);
92529
+ const z = O.getNumberOfColumns(), Q = Array(z).fill(0).map((te, ne) => {
92530
+ const oe = Er.getColumnId(O, ne);
92531
+ return A.includes(oe) ? {
92532
+ label: O.getColumnLabel(ne),
92533
+ type: O.getColumnType(ne),
92534
+ calc: () => null
92535
+ } : ne;
92536
+ }), j = E.getChart();
92537
+ E.getChartType() === "Timeline" && j && j.clearChart(), E.setChartType(g), E.setOptions(f || {});
92538
+ const F = new R.visualization.DataView(O);
92539
+ F.setColumns(Q), E.setDataTable(F), E.draw(), C && C.draw(O), q && (E.setDataTable(q), E.draw()), b && (Er.applyFormatters({
92540
+ dataTable: O,
92541
+ formatters: b,
92542
+ google: R
92543
+ }), E.setDataTable(O), E.draw()), (I === !0 || M === !0) && Er.grayOutHiddenColumnsLabel(e, A);
92544
+ }), /**
92545
+ * Get the column ID of a column in a GoogleDataTable.
92546
+ * If the column has an ID, return the ID, otherwise return the label.
92547
+ */
92548
+ Qt(Er, "getColumnId", (e, n) => e.getColumnId(n) || e.getColumnLabel(n)), /**
92549
+ * Apply Chart Formatters passed under the formatters prop to the GoogleDataTable
92550
+ */
92551
+ Qt(Er, "applyFormatters", (e) => {
92552
+ let { dataTable: n, formatters: o, google: l } = e;
92553
+ for (let d of o)
92554
+ switch (d.type) {
92555
+ case "ArrowFormat": {
92556
+ new l.visualization.ArrowFormat(d.options).format(n, d.column);
92557
+ return;
92558
+ }
92559
+ case "BarFormat": {
92560
+ new l.visualization.BarFormat(d.options).format(n, d.column);
92561
+ return;
92562
+ }
92563
+ case "ColorFormat": {
92564
+ const f = new l.visualization.ColorFormat(d.options), { ranges: g } = d;
92565
+ if (g)
92566
+ for (let b of g)
92567
+ f.addRange(...b);
92568
+ f.format(n, d.column);
92569
+ return;
92570
+ }
92571
+ case "DateFormat": {
92572
+ new l.visualization.DateFormat(d.options).format(n, d.column);
92573
+ return;
92574
+ }
92575
+ case "NumberFormat": {
92576
+ new l.visualization.NumberFormat(d.options).format(n, d.column);
92577
+ return;
92578
+ }
92579
+ case "PatternFormat": {
92580
+ new l.visualization.PatternFormat(d.options).format(n, d.column);
92581
+ return;
92582
+ }
92583
+ default: {
92584
+ console.warn(`Unknown formatter type: ${d.type}`);
92585
+ return;
92586
+ }
92587
+ }
92588
+ });
92589
+ let GoogleChartInternal = Er;
92590
+ const useGoogleChartDataTable = (t) => {
92591
+ const { google: e, googleChartWrapper: n, googleChartDashboard: o } = t, [l, d] = React.useState([]);
92592
+ React.useEffect(() => {
92593
+ n && GoogleChartInternal.draw({
92594
+ ...t,
92595
+ hiddenColumns: l,
92596
+ googleChartWrapper: n,
92597
+ googleChartDashboard: o,
92598
+ google: e
92599
+ });
92600
+ }, [
92601
+ l,
92602
+ t.data,
92603
+ t.rows,
92604
+ t.columns,
92605
+ t.options,
92606
+ t.chartLoaderScriptUrl,
92607
+ t.chartType,
92608
+ t.formatters,
92609
+ t.spreadSheetUrl,
92610
+ t.spreadSheetQueryParameters,
92611
+ t.legendToggle,
92612
+ t.legend_toggle
92613
+ ]);
92614
+ const f = () => {
92615
+ const { googleChartWrapper: S } = t;
92616
+ S && S.draw();
92617
+ }, g = (S) => {
92618
+ const _ = [], { legendToggle: C, legend_toggle: E } = t;
92619
+ if (GoogleChartInternal.draw({
92620
+ ...t,
92621
+ hiddenColumns: l,
92622
+ googleChartWrapper: S,
92623
+ googleChartDashboard: o,
92624
+ google: e
92625
+ }), window.addEventListener("resize", f), E || C) {
92626
+ const R = GoogleChartInternal.listenToLegendToggle(t, [
92627
+ l,
92628
+ d
92629
+ ]);
92630
+ R && _.push(R);
92631
+ }
92632
+ return _;
92633
+ }, b = (S, _) => {
92634
+ window.removeEventListener("resize", f), _.forEach((C) => {
92635
+ e.visualization.events.removeListener(C);
92636
+ }), S.getChartType() === "Timeline" && S.getChart() && S.getChart().clearChart();
92637
+ };
92638
+ React.useEffect(() => {
92639
+ if (!n)
92640
+ return;
92641
+ const S = g(n);
92642
+ return () => {
92643
+ b(n, S);
92644
+ };
92645
+ }, [
92646
+ n,
92647
+ g,
92648
+ b
92649
+ ]);
92650
+ }, listenToEvents = (t) => {
92651
+ const { chartEvents: e, google: n, googleChartWrapper: o } = t;
92652
+ if (e) {
92653
+ if (!o) {
92654
+ console.warn("listenToEvents was called before chart wrapper ready.");
92655
+ return;
92656
+ }
92657
+ return e.map((l) => {
92658
+ let { eventName: d, callback: f } = l;
92659
+ return n.visualization.events.addListener(o, d, function() {
92660
+ for (var g = arguments.length, b = new Array(g), S = 0; S < g; S++)
92661
+ b[S] = arguments[S];
92662
+ f({
92663
+ chartWrapper: o,
92664
+ props: t,
92665
+ google: n,
92666
+ eventArgs: b
92667
+ });
92668
+ });
92669
+ });
92670
+ }
92671
+ }, useGoogleChartEvents = (t) => {
92672
+ useEffect(() => {
92673
+ if (!t.googleChartWrapper) return;
92674
+ const e = listenToEvents(t);
92675
+ return () => {
92676
+ e == null || e.forEach((n) => {
92677
+ t.google.visualization.events.removeListener(n);
92678
+ });
92679
+ };
92680
+ }, [
92681
+ t
92682
+ ]);
92683
+ }, GoogleChart = (t) => {
92684
+ const [e, n] = React.useState(null), [o, l] = React.useState(null), { addControls: d, renderControl: f } = useChartControls({
92685
+ ...t,
92686
+ chartDashboard: o,
92687
+ chartWrapper: e
92688
+ });
92689
+ useGoogleChartEvents({
92690
+ ...t,
92691
+ googleChartWrapper: e
92692
+ });
92693
+ const { chartId: g } = useChartId(t), b = React.useRef(null), S = React.useRef(null);
92694
+ React.useEffect(() => {
92695
+ const { options: O, google: q, chartType: z, chartWrapperParams: Q, toolbarItems: j, getChartEditor: F, getChartWrapper: te, onLoad: ne } = t, oe = {
92696
+ chartType: z,
92697
+ options: O,
92698
+ containerId: g,
92699
+ ...Q
92700
+ }, ge = new q.visualization.ChartWrapper(oe);
92701
+ ge.setOptions(O || {}), te == null || te(ge, q);
92702
+ const se = new q.visualization.Dashboard(b.current);
92703
+ j && q.visualization.drawToolbar(S.current, j);
92704
+ let Ae = null;
92705
+ F && (Ae = new q.visualization.ChartEditor(), F({
92706
+ chartEditor: Ae,
92707
+ chartWrapper: ge,
92708
+ google: q
92709
+ })), d({
92710
+ ...t,
92711
+ chartDashboard: se,
92712
+ chartWrapper: ge
92713
+ }), n(ge), l(se), ne == null || ne(q, {
92714
+ google: q,
92715
+ chartWrapper: ge,
92716
+ chartEditor: Ae,
92717
+ chartDashboard: se
92718
+ });
92719
+ }, []), useGoogleChartDataTable({
92720
+ ...t,
92721
+ googleChartWrapper: e,
92722
+ googleChartDashboard: o
92723
+ });
92724
+ const _ = () => {
92725
+ const { width: O, height: q, options: z, style: Q, className: j, rootProps: F, google: te } = t, ne = {
92726
+ height: q || z && z.height,
92727
+ width: O || z && z.width,
92728
+ ...Q
92729
+ };
92730
+ return /* @__PURE__ */ React.createElement("div", {
92731
+ id: g,
92732
+ style: ne,
92733
+ className: j,
92734
+ ...F
92735
+ });
92736
+ }, C = () => t.toolbarItems ? /* @__PURE__ */ React.createElement("div", {
92737
+ ref: S
92738
+ }) : null, { width: E, height: R, options: A, style: I } = t, M = {
92739
+ height: R || A && A.height,
92740
+ width: E || A && A.width,
92741
+ ...I
92742
+ };
92743
+ return t.render ? /* @__PURE__ */ React.createElement("div", {
92744
+ ref: b,
92745
+ style: M
92746
+ }, /* @__PURE__ */ React.createElement("div", {
92747
+ ref: S,
92748
+ id: "toolbar"
92749
+ }), t.render({
92750
+ renderChart: _,
92751
+ renderControl: f,
92752
+ renderToolbar: C
92753
+ })) : /* @__PURE__ */ React.createElement("div", {
92754
+ ref: b,
92755
+ style: M
92756
+ }, f((O) => {
92757
+ let { controlProp: q } = O;
92758
+ return q.controlPosition !== "bottom";
92759
+ }), _(), f((O) => {
92760
+ let { controlProp: q } = O;
92761
+ return q.controlPosition === "bottom";
92762
+ }), C());
92763
+ }, ChartContext = /* @__PURE__ */ React.createContext(chartDefaultProps), ContextProvider = (t) => {
92764
+ let { children: e, value: n } = t;
92765
+ return /* @__PURE__ */ React.createElement(ChartContext.Provider, {
92766
+ value: n
92767
+ }, e);
92768
+ }, ChartView = (t) => {
92769
+ const { google: e, isLoading: n, error: o } = useLoadGoogleCharts(t);
92770
+ return n ? t.loader ?? null : o ? t.errorElement ?? null : e ? /* @__PURE__ */ React__default.createElement(GoogleChart, {
92771
+ google: e,
92772
+ ...t
92773
+ }) : null;
92774
+ }, Chart = (t) => {
92775
+ const e = {
92776
+ ...chartDefaultProps,
92777
+ ...t
92778
+ };
92779
+ return /* @__PURE__ */ React__default.createElement(ContextProvider, {
92780
+ value: e
92781
+ }, /* @__PURE__ */ React__default.createElement(ChartView, e));
92782
+ };
92783
+ var GoogleDataTableColumnRoleType;
92784
+ (function(t) {
92785
+ t.annotation = "annotation", t.annotationText = "annotationText", t.certainty = "certainty", t.emphasis = "emphasis", t.interval = "interval", t.scope = "scope", t.style = "style", t.tooltip = "tooltip", t.domain = "domain";
92786
+ })(GoogleDataTableColumnRoleType || (GoogleDataTableColumnRoleType = {}));
92787
+ function parseHsl(t) {
92788
+ const e = t.match(/(\d+\.?\d*)\s*(\d+\.?\d*)%\s*(\d+\.?\d*)%/);
92789
+ return e ? {
92790
+ h: parseFloat(e[1]),
92791
+ s: parseFloat(e[2]),
92792
+ l: parseFloat(e[3])
92793
+ } : null;
92794
+ }
92795
+ function hslToHex(t, e, n) {
92796
+ n /= 100;
92797
+ const o = e * Math.min(n, 1 - n) / 100, l = (d) => {
92798
+ const f = (d + t / 30) % 12, g = n - o * Math.max(Math.min(f - 3, 9 - f, 1), -1);
92799
+ return Math.round(255 * g).toString(16).padStart(2, "0");
92800
+ };
92801
+ return `#${l(0)}${l(8)}${l(4)}`;
92802
+ }
92803
+ const Treemap = React.forwardRef(
92804
+ ({ data: t, options: e, height: n = "500px", className: o, loading: l, ...d }, f) => {
92805
+ const g = React.useRef(null), [b, S] = React.useState(null);
92806
+ React.useEffect(() => {
92807
+ if (!g.current) return;
92808
+ const C = getComputedStyle(g.current).getPropertyValue("--primary"), E = parseHsl(C.trim());
92809
+ if (E) {
92810
+ const { h: R, s: A, l: I } = E;
92811
+ S({
92812
+ minColor: hslToHex(R, A, Math.min(100, I + 50)),
92813
+ midColor: hslToHex(R, A, Math.min(100, I + 35)),
92814
+ maxColor: hslToHex(R, A, Math.min(100, I + 20))
92815
+ });
92816
+ }
92817
+ }, []);
92818
+ const _ = React.useMemo(() => {
92819
+ const C = {
92820
+ headerHeight: 24,
92821
+ fontSize: 14,
92822
+ showScale: !0,
92823
+ isHtml: !0,
92824
+ generateTooltip: (E, R) => {
92825
+ var M;
92826
+ const A = (M = t[E + 1]) == null ? void 0 : M[0];
92827
+ if (!A) return "";
92828
+ const I = formatMoney(R);
92829
+ return `<div class="p-2 bg-background text-foreground border rounded-md shadow-lg">
92830
+ <strong>${A}</strong><br>Value: ${I}
92831
+ </div>`;
92832
+ }
92833
+ };
92834
+ return b && (!e || !e.colorAxis) && (C.minColor = b.minColor, C.midColor = b.midColor, C.maxColor = b.maxColor), { ...C, ...e };
92835
+ }, [t, e, b]);
92836
+ return React.useImperativeHandle(f, () => g.current, []), l ? /* @__PURE__ */ jsx(
92837
+ "div",
92838
+ {
92839
+ ref: g,
92840
+ className: cn("w-full", o),
92841
+ style: { height: n },
92842
+ ...d,
92843
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-full w-full" })
92844
+ }
92845
+ ) : /* @__PURE__ */ jsx(
92846
+ "div",
92847
+ {
92848
+ ref: g,
92849
+ className: cn("w-full", o),
92850
+ style: { height: n },
92851
+ ...d,
92852
+ children: /* @__PURE__ */ jsx(
92853
+ Chart,
92854
+ {
92855
+ chartType: "TreeMap",
92856
+ width: "100%",
92857
+ height: "100%",
92858
+ data: t,
92859
+ options: _,
92860
+ loader: /* @__PURE__ */ jsx(Skeleton, { className: "h-full w-full" })
92861
+ }
92862
+ )
92863
+ }
92864
+ );
92865
+ }
92866
+ );
92867
+ Treemap.displayName = "Treemap";
92868
+ const TopPercentTreemap = ({
92869
+ data: t,
92870
+ topPercent: e = 80,
92871
+ title: n,
92872
+ ...o
92873
+ }) => {
92874
+ const l = React.useMemo(() => {
92875
+ if (!t || t.length === 0)
92876
+ return [["ID", "Parent", "Value"], ["Root", null, 0]];
92877
+ const f = [...t].sort((R, A) => A.value - R.value), b = f.reduce((R, A) => R + A.value, 0) * (e / 100), S = [
92878
+ ["ID", "Parent", "Value"],
92879
+ ["Root", null, 0]
92880
+ ], _ = [], C = [];
92881
+ let E = 0;
92882
+ for (const R of f)
92883
+ E < b ? (_.push(R), E += R.value) : C.push(R);
92884
+ if (_.forEach((R) => {
92885
+ S.push([R.name, "Root", R.value]);
92886
+ }), C.length > 0) {
92887
+ const R = `More... (${C.length} items)`;
92888
+ S.push([R, "Root", 0]), C.forEach((A) => {
92889
+ S.push([A.name, R, A.value]);
92890
+ });
92891
+ }
92892
+ return S;
92893
+ }, [t, e]), d = React.useMemo(() => ({
92894
+ title: n,
92895
+ maxDepth: 1,
92896
+ // Start view at the top level
92897
+ goUpButton: {
92898
+ // Configure the native "back" button
92899
+ text: "← Go Back to Top Level",
92900
+ visible: !0
92901
+ }
92902
+ }), [n]);
92903
+ return /* @__PURE__ */ jsx(
92904
+ Treemap,
92905
+ {
92906
+ data: l,
92907
+ options: d,
92908
+ className: cn("h-full", o.className),
92909
+ ...o
92910
+ }
92911
+ );
92912
+ };
92216
92913
  export {
92217
92914
  ActiveOrdersCard,
92218
92915
  AiGeneratedContent,
@@ -92393,7 +93090,9 @@ export {
92393
93090
  TooltipContent,
92394
93091
  TooltipProvider,
92395
93092
  TooltipTrigger,
93093
+ TopPercentTreemap,
92396
93094
  Topbar,
93095
+ Treemap,
92397
93096
  badgeVariants,
92398
93097
  buttonVariants,
92399
93098
  toast,