randmarcomps 1.295.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)));
@@ -68073,8 +68073,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68073
68073
  default:
68074
68074
  if (this.isAsyncFunction())
68075
68075
  return V && this.unexpected(), this.next(), this.parseFunctionStatement(We, !0, !V);
68076
- var Qt = this.value, Jt = this.parseExpression();
68077
- 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);
68078
68078
  }
68079
68079
  }, pt.parseBreakContinueStatement = function(V, ae) {
68080
68080
  var Be = ae === "break";
@@ -68099,10 +68099,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68099
68099
  var Fe = this.startNode(), We = Be ? "let" : this.value;
68100
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));
68101
68101
  }
68102
- 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);
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 === 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));
68104
68104
  }, pt.parseFunctionStatement = function(V, ae, Be) {
68105
- 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);
68106
68106
  }, pt.parseIfStatement = function(V) {
68107
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");
68108
68108
  }, pt.parseReturnStatement = function(V) {
@@ -68143,9 +68143,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68143
68143
  ct.name === ae && this.raise(Be.start, "Label '" + ae + "' is already declared");
68144
68144
  }
68145
68145
  for (var $t = this.type.isLoop ? "loop" : this.type === F._switch ? "switch" : null, Dt = this.labels.length - 1; Dt >= 0; Dt--) {
68146
- var Qt = this.labels[Dt];
68147
- if (Qt.statementStart === V.start)
68148
- 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;
68149
68149
  else
68150
68150
  break;
68151
68151
  }
@@ -68173,9 +68173,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68173
68173
  }, pt.parseVarId = function(V, ae) {
68174
68174
  V.id = this.parseBindingAtom(), this.checkLValPattern(V.id, ae === "var" ? at : Qe, !1);
68175
68175
  };
68176
- var Wt = 1, rr = 2, sr = 4;
68176
+ var Wt = 1, nr = 2, sr = 4;
68177
68177
  pt.parseFunction = function(V, ae, Be, Fe, We) {
68178
- 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));
68179
68179
  var lt = this.yieldPos, ct = this.awaitPos, $t = this.awaitIdentPos;
68180
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");
68181
68181
  }, pt.parseFunctionParams = function(V) {
@@ -68187,7 +68187,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68187
68187
  var Fe = this.enterClassBody(), We = this.startNode(), lt = !1;
68188
68188
  for (We.body = [], this.expect(F.braceL); this.type !== F.braceR; ) {
68189
68189
  var ct = this.parseClassElement(V.superClass !== null);
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" && 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"));
68191
68191
  }
68192
68192
  return this.strict = Be, this.next(), V.body = this.finishNode(We, "ClassBody"), this.exitClassBody(), this.finishNode(V, ae ? "ClassDeclaration" : "ClassExpression");
68193
68193
  }, pt.parseClassElement = function(V) {
@@ -68204,8 +68204,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68204
68204
  (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ct = Dt : Fe = Dt);
68205
68205
  }
68206
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) {
68207
- var Qt = !Be.static && Cr(Be, "constructor"), Jt = Qt && V;
68208
- 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);
68209
68209
  } else
68210
68210
  this.parseClassField(Be);
68211
68211
  return Be;
@@ -68248,7 +68248,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68248
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"));
68249
68249
  }
68250
68250
  };
68251
- function Ar(V, ae) {
68251
+ function Nr(V, ae) {
68252
68252
  var Be = ae.key.name, Fe = V[Be], We = "true";
68253
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);
68254
68254
  }
@@ -68515,7 +68515,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68515
68515
  };
68516
68516
  var yr = function(ae, Be, Fe, We, lt) {
68517
68517
  this.token = ae, this.isExpr = !!Be, this.preserveSpace = !!Fe, this.override = We, this.generator = !!lt;
68518
- }, er = {
68518
+ }, tr = {
68519
68519
  b_stat: new yr("{", !1),
68520
68520
  b_expr: new yr("{", !0),
68521
68521
  b_tmpl: new yr("${", !1),
@@ -68528,25 +68528,25 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68528
68528
  f_expr: new yr("function", !0),
68529
68529
  f_expr_gen: new yr("function", !0, !1, null, !0),
68530
68530
  f_gen: new yr("function", !1, !1, null, !0)
68531
- }, Ir = Ct.prototype;
68532
- Ir.initialContext = function() {
68533
- return [er.b_stat];
68534
- }, Ir.curContext = function() {
68531
+ }, Mr = Ct.prototype;
68532
+ Mr.initialContext = function() {
68533
+ return [tr.b_stat];
68534
+ }, Mr.curContext = function() {
68535
68535
  return this.context[this.context.length - 1];
68536
- }, Ir.braceIsBlock = function(V) {
68536
+ }, Mr.braceIsBlock = function(V) {
68537
68537
  var ae = this.curContext();
68538
- 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;
68539
- }, 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() {
68540
68540
  for (var V = this.context.length - 1; V >= 1; V--) {
68541
68541
  var ae = this.context[V];
68542
68542
  if (ae.token === "function")
68543
68543
  return ae.generator;
68544
68544
  }
68545
68545
  return !1;
68546
- }, Ir.updateContext = function(V) {
68546
+ }, Mr.updateContext = function(V) {
68547
68547
  var ae, Be = this.type;
68548
68548
  Be.keyword && V === F.dot ? this.exprAllowed = !1 : (ae = Be.updateContext) ? ae.call(this, V) : this.exprAllowed = Be.beforeExpr;
68549
- }, Ir.overrideContext = function(V) {
68549
+ }, Mr.overrideContext = function(V) {
68550
68550
  this.curContext() !== V && (this.context[this.context.length - 1] = V);
68551
68551
  }, F.parenR.updateContext = F.braceR.updateContext = function() {
68552
68552
  if (this.context.length === 1) {
@@ -68554,25 +68554,25 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68554
68554
  return;
68555
68555
  }
68556
68556
  var V = this.context.pop();
68557
- 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;
68558
68558
  }, F.braceL.updateContext = function(V) {
68559
- 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;
68560
68560
  }, F.dollarBraceL.updateContext = function() {
68561
- this.context.push(er.b_tmpl), this.exprAllowed = !0;
68561
+ this.context.push(tr.b_tmpl), this.exprAllowed = !0;
68562
68562
  }, F.parenL.updateContext = function(V) {
68563
68563
  var ae = V === F._if || V === F._for || V === F._with || V === F._while;
68564
- 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;
68565
68565
  }, F.incDec.updateContext = function() {
68566
68566
  }, F._function.updateContext = F._class.updateContext = function(V) {
68567
- 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;
68568
68568
  }, F.colon.updateContext = function() {
68569
68569
  this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
68570
68570
  }, F.backQuote.updateContext = function() {
68571
- 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;
68572
68572
  }, F.star.updateContext = function(V) {
68573
68573
  if (V === F._function) {
68574
68574
  var ae = this.context.length - 1;
68575
- 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;
68576
68576
  }
68577
68577
  this.exprAllowed = !0;
68578
68578
  }, F.name.updateContext = function(V) {
@@ -68630,13 +68630,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68630
68630
  ae ? (We = ae.parenthesizedAssign, lt = ae.trailingComma, ct = ae.doubleProto, ae.parenthesizedAssign = ae.trailingComma = -1) : (ae = new cr(), Fe = !0);
68631
68631
  var $t = this.start, Dt = this.startLoc;
68632
68632
  (this.type === F.parenL || this.type === F.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = V === "await");
68633
- var Qt = this.parseMaybeConditional(V, ae);
68634
- 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) {
68635
68635
  var Jt = this.startNodeAt($t, Dt);
68636
- 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");
68637
68637
  } else
68638
68638
  Fe && this.checkExpressionErrors(ae, !0);
68639
- 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;
68640
68640
  }, Xt.parseMaybeConditional = function(V, ae) {
68641
68641
  var Be = this.start, Fe = this.startLoc, We = this.parseExprOps(V, ae);
68642
68642
  if (this.checkExpressionErrors(ae))
@@ -68656,8 +68656,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68656
68656
  $t && (lt = F.logicalAND.binop);
68657
68657
  var Dt = this.value;
68658
68658
  this.next();
68659
- 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);
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(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);
68661
68661
  }
68662
68662
  return V;
68663
68663
  }, Xt.buildBinary = function(V, ae, Be, Fe, We, lt) {
@@ -68670,15 +68670,15 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68670
68670
  ct = this.parseAwait(Fe), ae = !0;
68671
68671
  else if (this.type.prefix) {
68672
68672
  var $t = this.startNode(), Dt = this.type === F.incDec;
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" && 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");
68674
68674
  } else if (!ae && this.type === F.privateId)
68675
68675
  (Fe || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), ct = this.parsePrivateIdent(), this.type !== F._in && this.unexpected();
68676
68676
  else {
68677
68677
  if (ct = this.parseExprSubscripts(V, Fe), this.checkExpressionErrors(V))
68678
68678
  return ct;
68679
68679
  for (; this.type.postfix && !this.canInsertSemicolon(); ) {
68680
- var Qt = this.startNodeAt(We, lt);
68681
- 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");
68682
68682
  }
68683
68683
  }
68684
68684
  if (!Be && this.eat(F.starstar))
@@ -68692,8 +68692,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68692
68692
  function dr(V) {
68693
68693
  return V.type === "Identifier" || V.type === "ParenthesizedExpression" && dr(V.expression);
68694
68694
  }
68695
- function Rr(V) {
68696
- 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);
68697
68697
  }
68698
68698
  Xt.parseExprSubscripts = function(V, ae) {
68699
68699
  var Be = this.start, Fe = this.startLoc, We = this.parseExprAtom(V, ae);
@@ -68720,23 +68720,23 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68720
68720
  }, Xt.parseSubscript = function(V, ae, Be, Fe, We, lt, ct) {
68721
68721
  var $t = this.options.ecmaVersion >= 11, Dt = $t && this.eat(F.questionDot);
68722
68722
  Fe && Dt && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
68723
- var Qt = this.eat(F.bracketL);
68724
- 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)) {
68725
68725
  var Jt = this.startNodeAt(ae, Be);
68726
- 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");
68727
68727
  } else if (!Fe && this.eat(F.parenL)) {
68728
- 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;
68729
68729
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
68730
- 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);
68731
68731
  if (We && !Dt && this.shouldParseAsyncArrow())
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 = Lr, this.awaitPos = Xr, this.awaitIdentPos = qr, this.parseSubscriptAsyncArrow(ae, Be, sn, ct);
68733
- this.checkExpressionErrors(mr, !0), this.yieldPos = Lr || this.yieldPos, this.awaitPos = Xr || this.awaitPos, this.awaitIdentPos = qr || this.awaitIdentPos;
68734
- var Ur = this.startNodeAt(ae, Be);
68735
- 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");
68736
68736
  } else if (this.type === F.backQuote) {
68737
68737
  (Dt || lt) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
68738
- var Hr = this.startNodeAt(ae, Be);
68739
- 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");
68740
68740
  }
68741
68741
  return V;
68742
68742
  }, Xt.parseExprAtom = function(V, ae, Be) {
@@ -68750,7 +68750,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68750
68750
  case F.name:
68751
68751
  var lt = this.start, ct = this.startLoc, $t = this.containsEsc, Dt = this.parseIdent(!1);
68752
68752
  if (this.options.ecmaVersion >= 8 && !$t && Dt.name === "async" && !this.canInsertSemicolon() && this.eat(F._function))
68753
- 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);
68754
68754
  if (We && !this.canInsertSemicolon()) {
68755
68755
  if (this.eat(F.arrow))
68756
68756
  return this.parseArrowExpression(this.startNodeAt(lt, ct), [Dt], !1, ae);
@@ -68759,8 +68759,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68759
68759
  }
68760
68760
  return Dt;
68761
68761
  case F.regexp:
68762
- var Qt = this.value;
68763
- 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;
68764
68764
  case F.num:
68765
68765
  case F.string:
68766
68766
  return this.parseLiteral(this.value);
@@ -68774,7 +68774,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68774
68774
  case F.bracketL:
68775
68775
  return Fe = this.startNode(), this.next(), Fe.elements = this.parseExprList(F.bracketR, !0, !0, V), this.finishNode(Fe, "ArrayExpression");
68776
68776
  case F.braceL:
68777
- return this.overrideContext(er.b_expr), this.parseObj(!1, V);
68777
+ return this.overrideContext(tr.b_expr), this.parseObj(!1, V);
68778
68778
  case F._function:
68779
68779
  return Fe = this.startNode(), this.next(), this.parseFunction(Fe, 0);
68780
68780
  case F._class:
@@ -68822,25 +68822,25 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68822
68822
  var Be = this.start, Fe = this.startLoc, We, lt = this.options.ecmaVersion >= 8;
68823
68823
  if (this.options.ecmaVersion >= 6) {
68824
68824
  this.next();
68825
- 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;
68826
68826
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== F.parenR; )
68827
- 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)) {
68828
68828
  Jt = !0;
68829
68829
  break;
68830
68830
  } else if (this.type === F.ellipsis) {
68831
- 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");
68832
68832
  break;
68833
68833
  } else
68834
68834
  Dt.push(this.parseMaybeAssign(!1, mr, this.parseParenItem));
68835
- var sn = this.lastTokEnd, Ur = this.lastTokEndLoc;
68835
+ var dn = this.lastTokEnd, zr = this.lastTokEndLoc;
68836
68836
  if (this.expect(F.parenR), V && this.shouldParseArrow(Dt) && this.eat(F.arrow))
68837
- return this.checkPatternErrors(mr, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = Lr, this.awaitPos = Xr, this.parseParenArrowList(Be, Fe, Dt, ae);
68838
- (!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];
68839
68839
  } else
68840
68840
  We = this.parseParenExpression();
68841
68841
  if (this.options.preserveParens) {
68842
- var Hr = this.startNodeAt(Be, Fe);
68843
- return Hr.expression = We, this.finishNode(Hr, "ParenthesizedExpression");
68842
+ var Gr = this.startNodeAt(Be, Fe);
68843
+ return Gr.expression = We, this.finishNode(Gr, "ParenthesizedExpression");
68844
68844
  } else
68845
68845
  return We;
68846
68846
  }, Xt.parseParenItem = function(V) {
@@ -68848,7 +68848,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68848
68848
  }, Xt.parseParenArrowList = function(V, ae, Be, Fe) {
68849
68849
  return this.parseArrowExpression(this.startNodeAt(V, ae), Be, !1, Fe);
68850
68850
  };
68851
- var hn = [];
68851
+ var mn = [];
68852
68852
  Xt.parseNew = function() {
68853
68853
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
68854
68854
  var V = this.startNode();
@@ -68859,7 +68859,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68859
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");
68860
68860
  }
68861
68861
  var Fe = this.start, We = this.startLoc;
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 = 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");
68863
68863
  }, Xt.parseTemplateElement = function(V) {
68864
68864
  var ae = V.isTagged, Be = this.startNode();
68865
68865
  return this.type === F.invalidTemplate ? (ae || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), Be.value = {
@@ -68983,21 +68983,21 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68983
68983
  var ae = this.startNode();
68984
68984
  return this.next(), ae.argument = this.parseMaybeUnary(null, !0, !1, V), this.finishNode(ae, "AwaitExpression");
68985
68985
  };
68986
- var Vr = Ct.prototype;
68987
- Vr.raise = function(V, ae) {
68986
+ var Br = Ct.prototype;
68987
+ Br.raise = function(V, ae) {
68988
68988
  var Be = tt(this.input, V);
68989
68989
  ae += " (" + Be.line + ":" + Be.column + ")";
68990
68990
  var Fe = new SyntaxError(ae);
68991
68991
  throw Fe.pos = V, Fe.loc = Be, Fe.raisedAt = this.pos, Fe;
68992
- }, Vr.raiseRecoverable = Vr.raise, Vr.curPosition = function() {
68992
+ }, Br.raiseRecoverable = Br.raise, Br.curPosition = function() {
68993
68993
  if (this.options.locations)
68994
68994
  return new He(this.curLine, this.pos - this.lineStart);
68995
68995
  };
68996
- var Tr = Ct.prototype, Qr = function(ae) {
68996
+ var Tr = Ct.prototype, tn = function(ae) {
68997
68997
  this.flags = ae, this.var = [], this.lexical = [], this.functions = [], this.inClassFieldInit = !1;
68998
68998
  };
68999
68999
  Tr.enterScope = function(V) {
69000
- this.scopeStack.push(new Qr(V));
69000
+ this.scopeStack.push(new tn(V));
69001
69001
  }, Tr.exitScope = function() {
69002
69002
  this.scopeStack.pop();
69003
69003
  }, Tr.treatFunctionsAsVarInScope = function(V) {
@@ -69041,43 +69041,43 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69041
69041
  return ae;
69042
69042
  }
69043
69043
  };
69044
- var $r = function(ae, Be, Fe) {
69044
+ var Vr = function(ae, Be, Fe) {
69045
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]);
69046
- }, Dr = Ct.prototype;
69047
- Dr.startNode = function() {
69048
- return new $r(this, this.start, this.startLoc);
69049
- }, Dr.startNodeAt = function(V, ae) {
69050
- 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);
69051
69051
  };
69052
69052
  function Sr(V, ae, Be, Fe) {
69053
69053
  return V.type = ae, V.end = Be, this.options.locations && (V.loc.end = Fe), this.options.ranges && (V.range[1] = Be), V;
69054
69054
  }
69055
- Dr.finishNode = function(V, ae) {
69055
+ Lr.finishNode = function(V, ae) {
69056
69056
  return Sr.call(this, V, ae, this.lastTokEnd, this.lastTokEndLoc);
69057
- }, Dr.finishNodeAt = function(V, ae, Be, Fe) {
69057
+ }, Lr.finishNodeAt = function(V, ae, Be, Fe) {
69058
69058
  return Sr.call(this, V, ae, Be, Fe);
69059
- }, Dr.copyNode = function(V) {
69060
- var ae = new $r(this, V.start, this.startLoc);
69059
+ }, Lr.copyNode = function(V) {
69060
+ var ae = new Vr(this, V.start, this.startLoc);
69061
69061
  for (var Be in V)
69062
69062
  ae[Be] = V[Be];
69063
69063
  return ae;
69064
69064
  };
69065
- 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 = {
69066
- 9: Nr,
69067
- 10: Gr,
69068
- 11: Wr,
69069
- 12: jr,
69070
- 13: Kr,
69071
- 14: Er
69072
- }, 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 = {
69073
69073
  9: "",
69074
69074
  10: "",
69075
69075
  11: "",
69076
69076
  12: "",
69077
69077
  13: "",
69078
- 14: tn
69079
- }, 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 = {
69080
- 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,
69081
69081
  10: Kt,
69082
69082
  11: nt,
69083
69083
  12: It,
@@ -69086,30 +69086,30 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69086
69086
  }, ur = {};
69087
69087
  function vr(V) {
69088
69088
  var ae = ur[V] = {
69089
- binary: Le(en[V] + " " + Yr),
69090
- binaryOfStrings: Le(rn[V]),
69089
+ binary: Le(rn[V] + " " + Xr),
69090
+ binaryOfStrings: Le(an[V]),
69091
69091
  nonBinary: {
69092
- General_Category: Le(Yr),
69092
+ General_Category: Le(Xr),
69093
69093
  Script: Le(gr[V])
69094
69094
  }
69095
69095
  };
69096
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;
69097
69097
  }
69098
- for (var _r = 0, Or = [9, 10, 11, 12, 13, 14]; _r < Or.length; _r += 1) {
69099
- var Zr = Or[_r];
69100
- 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);
69101
69101
  }
69102
- var Vt = Ct.prototype, Br = function(ae, Be) {
69102
+ var Vt = Ct.prototype, Fr = function(ae, Be) {
69103
69103
  this.parent = ae, this.base = Be || this;
69104
69104
  };
69105
- Br.prototype.separatedFrom = function(ae) {
69105
+ Fr.prototype.separatedFrom = function(ae) {
69106
69106
  for (var Be = this; Be; Be = Be.parent)
69107
69107
  for (var Fe = ae; Fe; Fe = Fe.parent)
69108
69108
  if (Be.base === Fe.base && Be !== Fe)
69109
69109
  return !0;
69110
69110
  return !1;
69111
- }, Br.prototype.sibling = function() {
69112
- return new Br(this.parent, this.base);
69111
+ }, Fr.prototype.sibling = function() {
69112
+ return new Fr(this.parent, this.base);
69113
69113
  };
69114
69114
  var Pr = function(ae) {
69115
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;
@@ -69160,13 +69160,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69160
69160
  }
69161
69161
  this.options.ecmaVersion >= 15 && Fe && We && this.raise(V.start, "Invalid regular expression flag");
69162
69162
  };
69163
- function Mn(V) {
69163
+ function On(V) {
69164
69164
  for (var ae in V)
69165
69165
  return !0;
69166
69166
  return !1;
69167
69167
  }
69168
69168
  Vt.validateRegExpPattern = function(V) {
69169
- 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));
69170
69170
  }, Vt.regexp_pattern = function(V) {
69171
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");
69172
69172
  for (var ae = 0, Be = V.backReferenceNames; ae < Be.length; ae += 1) {
@@ -69175,7 +69175,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69175
69175
  }
69176
69176
  }, Vt.regexp_disjunction = function(V) {
69177
69177
  var ae = this.options.ecmaVersion >= 16;
69178
- 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); )
69179
69179
  ae && (V.branchID = V.branchID.sibling()), this.regexp_alternative(V);
69180
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");
69181
69181
  }, Vt.regexp_alternative = function(V) {
@@ -69245,13 +69245,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69245
69245
  return this.regexp_eatBracedQuantifier(V, !0) && V.raise("Nothing to repeat"), !1;
69246
69246
  }, Vt.regexp_eatSyntaxCharacter = function(V) {
69247
69247
  var ae = V.current();
69248
- return Sn(ae) ? (V.lastIntValue = ae, V.advance(), !0) : !1;
69248
+ return Pn(ae) ? (V.lastIntValue = ae, V.advance(), !0) : !1;
69249
69249
  };
69250
- function Sn(V) {
69250
+ function Pn(V) {
69251
69251
  return V === 36 || V >= 40 && V <= 43 || V === 46 || V === 63 || V >= 91 && V <= 94 || V >= 123 && V <= 125;
69252
69252
  }
69253
69253
  Vt.regexp_eatPatternCharacters = function(V) {
69254
- 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); )
69255
69255
  V.advance();
69256
69256
  return V.pos !== ae;
69257
69257
  }, Vt.regexp_eatExtendedPatternCharacter = function(V) {
@@ -69287,16 +69287,16 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69287
69287
  return !1;
69288
69288
  }, Vt.regexp_eatRegExpIdentifierStart = function(V) {
69289
69289
  var ae = V.pos, Be = this.options.ecmaVersion >= 11, Fe = V.current(Be);
69290
- 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);
69291
69291
  };
69292
- function $n(V) {
69292
+ function Vn(V) {
69293
69293
  return A(V, !0) || V === 36 || V === 95;
69294
69294
  }
69295
69295
  Vt.regexp_eatRegExpIdentifierPart = function(V) {
69296
69296
  var ae = V.pos, Be = this.options.ecmaVersion >= 11, Fe = V.current(Be);
69297
- 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);
69298
69298
  };
69299
- function On(V) {
69299
+ function Dn(V) {
69300
69300
  return I(V, !0) || V === 36 || V === 95 || V === 8204 || V === 8205;
69301
69301
  }
69302
69302
  Vt.regexp_eatAtomEscape = function(V) {
@@ -69330,15 +69330,15 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69330
69330
  }
69331
69331
  return !1;
69332
69332
  }, Vt.regexp_eatZero = function(V) {
69333
- 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;
69334
69334
  }, Vt.regexp_eatControlEscape = function(V) {
69335
69335
  var ae = V.current();
69336
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;
69337
69337
  }, Vt.regexp_eatControlLetter = function(V) {
69338
69338
  var ae = V.current();
69339
- return _n(ae) ? (V.lastIntValue = ae % 32, V.advance(), !0) : !1;
69339
+ return Cn(ae) ? (V.lastIntValue = ae % 32, V.advance(), !0) : !1;
69340
69340
  };
69341
- function _n(V) {
69341
+ function Cn(V) {
69342
69342
  return V >= 65 && V <= 90 || V >= 97 && V <= 122;
69343
69343
  }
69344
69344
  Vt.regexp_eatRegExpUnicodeEscapeSequence = function(V, ae) {
@@ -69358,13 +69358,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69358
69358
  }
69359
69359
  return !0;
69360
69360
  }
69361
- 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))
69362
69362
  return !0;
69363
69363
  Fe && V.raise("Invalid unicode escape"), V.pos = Be;
69364
69364
  }
69365
69365
  return !1;
69366
69366
  };
69367
- function Vn(V) {
69367
+ function Bn(V) {
69368
69368
  return V >= 0 && V <= 1114111;
69369
69369
  }
69370
69370
  Vt.regexp_eatIdentityEscape = function(V) {
@@ -69383,11 +69383,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69383
69383
  }
69384
69384
  return !1;
69385
69385
  };
69386
- var Pn = 0, Mr = 1, wr = 2;
69386
+ var Tn = 0, Or = 1, wr = 2;
69387
69387
  Vt.regexp_eatCharacterClassEscape = function(V) {
69388
69388
  var ae = V.current();
69389
- if (Dn(ae))
69390
- return V.lastIntValue = -1, V.advance(), Mr;
69389
+ if (Ln(ae))
69390
+ return V.lastIntValue = -1, V.advance(), Or;
69391
69391
  var Be = !1;
69392
69392
  if (V.switchU && this.options.ecmaVersion >= 9 && ((Be = ae === 80) || ae === 112)) {
69393
69393
  V.lastIntValue = -1, V.advance();
@@ -69396,9 +69396,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69396
69396
  return Be && Fe === wr && V.raise("Invalid property name"), Fe;
69397
69397
  V.raise("Invalid property name");
69398
69398
  }
69399
- return Pn;
69399
+ return Tn;
69400
69400
  };
69401
- function Dn(V) {
69401
+ function Ln(V) {
69402
69402
  return V === 100 || V === 68 || V === 115 || V === 83 || V === 119 || V === 87;
69403
69403
  }
69404
69404
  Vt.regexp_eatUnicodePropertyValueExpression = function(V) {
@@ -69407,39 +69407,39 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69407
69407
  var Be = V.lastStringValue;
69408
69408
  if (this.regexp_eatUnicodePropertyValue(V)) {
69409
69409
  var Fe = V.lastStringValue;
69410
- return this.regexp_validateUnicodePropertyNameAndValue(V, Be, Fe), Mr;
69410
+ return this.regexp_validateUnicodePropertyNameAndValue(V, Be, Fe), Or;
69411
69411
  }
69412
69412
  }
69413
69413
  if (V.pos = ae, this.regexp_eatLoneUnicodePropertyNameOrValue(V)) {
69414
69414
  var We = V.lastStringValue;
69415
69415
  return this.regexp_validateUnicodePropertyNameOrValue(V, We);
69416
69416
  }
69417
- return Pn;
69417
+ return Tn;
69418
69418
  }, Vt.regexp_validateUnicodePropertyNameAndValue = function(V, ae, Be) {
69419
69419
  je(V.unicodeProperties.nonBinary, ae) || V.raise("Invalid property name"), V.unicodeProperties.nonBinary[ae].test(Be) || V.raise("Invalid property value");
69420
69420
  }, Vt.regexp_validateUnicodePropertyNameOrValue = function(V, ae) {
69421
69421
  if (V.unicodeProperties.binary.test(ae))
69422
- return Mr;
69422
+ return Or;
69423
69423
  if (V.switchV && V.unicodeProperties.binaryOfStrings.test(ae))
69424
69424
  return wr;
69425
69425
  V.raise("Invalid property name");
69426
69426
  }, Vt.regexp_eatUnicodePropertyName = function(V) {
69427
69427
  var ae = 0;
69428
- for (V.lastStringValue = ""; Cn(ae = V.current()); )
69428
+ for (V.lastStringValue = ""; wn(ae = V.current()); )
69429
69429
  V.lastStringValue += qe(ae), V.advance();
69430
69430
  return V.lastStringValue !== "";
69431
69431
  };
69432
- function Cn(V) {
69433
- return _n(V) || V === 95;
69432
+ function wn(V) {
69433
+ return Cn(V) || V === 95;
69434
69434
  }
69435
69435
  Vt.regexp_eatUnicodePropertyValue = function(V) {
69436
69436
  var ae = 0;
69437
- for (V.lastStringValue = ""; Bn(ae = V.current()); )
69437
+ for (V.lastStringValue = ""; Fn(ae = V.current()); )
69438
69438
  V.lastStringValue += qe(ae), V.advance();
69439
69439
  return V.lastStringValue !== "";
69440
69440
  };
69441
- function Bn(V) {
69442
- return Cn(V) || an(V);
69441
+ function Fn(V) {
69442
+ return wn(V) || sn(V);
69443
69443
  }
69444
69444
  Vt.regexp_eatLoneUnicodePropertyNameOrValue = function(V) {
69445
69445
  return this.regexp_eatUnicodePropertyValue(V);
@@ -69450,7 +69450,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69450
69450
  }
69451
69451
  return !1;
69452
69452
  }, Vt.regexp_classContents = function(V) {
69453
- 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);
69454
69454
  }, Vt.regexp_nonEmptyClassRanges = function(V) {
69455
69455
  for (; this.regexp_eatClassAtom(V); ) {
69456
69456
  var ae = V.lastIntValue;
@@ -69466,7 +69466,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69466
69466
  return !0;
69467
69467
  if (V.switchU) {
69468
69468
  var Be = V.current();
69469
- (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");
69470
69470
  }
69471
69471
  V.pos = ae;
69472
69472
  }
@@ -69485,13 +69485,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69485
69485
  }
69486
69486
  return this.regexp_eatCharacterClassEscape(V) || this.regexp_eatCharacterEscape(V);
69487
69487
  }, Vt.regexp_classSetExpression = function(V) {
69488
- var ae = Mr, Be;
69488
+ var ae = Or, Be;
69489
69489
  if (!this.regexp_eatClassSetRange(V))
69490
69490
  if (Be = this.regexp_eatClassSetOperand(V)) {
69491
69491
  Be === wr && (ae = wr);
69492
69492
  for (var Fe = V.pos; V.eatChars([38, 38]); ) {
69493
69493
  if (V.current() !== 38 && (Be = this.regexp_eatClassSetOperand(V))) {
69494
- Be !== wr && (ae = Mr);
69494
+ Be !== wr && (ae = Or);
69495
69495
  continue;
69496
69496
  }
69497
69497
  V.raise("Invalid character in character class");
@@ -69522,7 +69522,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69522
69522
  }
69523
69523
  return !1;
69524
69524
  }, Vt.regexp_eatClassSetOperand = function(V) {
69525
- 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);
69526
69526
  }, Vt.regexp_eatNestedClass = function(V) {
69527
69527
  var ae = V.pos;
69528
69528
  if (V.eat(91)) {
@@ -69557,30 +69557,30 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69557
69557
  }, Vt.regexp_classString = function(V) {
69558
69558
  for (var ae = 0; this.regexp_eatClassSetCharacter(V); )
69559
69559
  ae++;
69560
- return ae === 1 ? Mr : wr;
69560
+ return ae === 1 ? Or : wr;
69561
69561
  }, Vt.regexp_eatClassSetCharacter = function(V) {
69562
69562
  var ae = V.pos;
69563
69563
  if (V.eat(92))
69564
69564
  return this.regexp_eatCharacterEscape(V) || this.regexp_eatClassSetReservedPunctuator(V) ? !0 : V.eat(98) ? (V.lastIntValue = 8, !0) : (V.pos = ae, !1);
69565
69565
  var Be = V.current();
69566
- 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);
69567
69567
  };
69568
- function Ln(V) {
69568
+ function jn(V) {
69569
69569
  return V === 33 || V >= 35 && V <= 38 || V >= 42 && V <= 44 || V === 46 || V >= 58 && V <= 64 || V === 94 || V === 96 || V === 126;
69570
69570
  }
69571
- function Fn(V) {
69571
+ function qn(V) {
69572
69572
  return V === 40 || V === 41 || V === 45 || V === 47 || V >= 91 && V <= 93 || V >= 123 && V <= 125;
69573
69573
  }
69574
69574
  Vt.regexp_eatClassSetReservedPunctuator = function(V) {
69575
69575
  var ae = V.current();
69576
- return jn(ae) ? (V.lastIntValue = ae, V.advance(), !0) : !1;
69576
+ return Un(ae) ? (V.lastIntValue = ae, V.advance(), !0) : !1;
69577
69577
  };
69578
- function jn(V) {
69578
+ function Un(V) {
69579
69579
  return V === 33 || V === 35 || V === 37 || V === 38 || V === 44 || V === 45 || V >= 58 && V <= 62 || V === 64 || V === 96 || V === 126;
69580
69580
  }
69581
69581
  Vt.regexp_eatClassControlLetter = function(V) {
69582
69582
  var ae = V.current();
69583
- 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;
69584
69584
  }, Vt.regexp_eatHexEscapeSequence = function(V) {
69585
69585
  var ae = V.pos;
69586
69586
  if (V.eat(120)) {
@@ -69591,23 +69591,23 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69591
69591
  return !1;
69592
69592
  }, Vt.regexp_eatDecimalDigits = function(V) {
69593
69593
  var ae = V.pos, Be = 0;
69594
- for (V.lastIntValue = 0; an(Be = V.current()); )
69594
+ for (V.lastIntValue = 0; sn(Be = V.current()); )
69595
69595
  V.lastIntValue = 10 * V.lastIntValue + (Be - 48), V.advance();
69596
69596
  return V.pos !== ae;
69597
69597
  };
69598
- function an(V) {
69598
+ function sn(V) {
69599
69599
  return V >= 48 && V <= 57;
69600
69600
  }
69601
69601
  Vt.regexp_eatHexDigits = function(V) {
69602
69602
  var ae = V.pos, Be = 0;
69603
- for (V.lastIntValue = 0; Tn(Be = V.current()); )
69604
- 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();
69605
69605
  return V.pos !== ae;
69606
69606
  };
69607
- function Tn(V) {
69607
+ function En(V) {
69608
69608
  return V >= 48 && V <= 57 || V >= 65 && V <= 70 || V >= 97 && V <= 102;
69609
69609
  }
69610
- function wn(V) {
69610
+ function Rn(V) {
69611
69611
  return V >= 65 && V <= 70 ? 10 + (V - 65) : V >= 97 && V <= 102 ? 10 + (V - 97) : V - 48;
69612
69612
  }
69613
69613
  Vt.regexp_eatLegacyOctalEscapeSequence = function(V) {
@@ -69623,9 +69623,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69623
69623
  return !1;
69624
69624
  }, Vt.regexp_eatOctalDigit = function(V) {
69625
69625
  var ae = V.current();
69626
- 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);
69627
69627
  };
69628
- function En(V) {
69628
+ function An(V) {
69629
69629
  return V >= 48 && V <= 55;
69630
69630
  }
69631
69631
  Vt.regexp_eatFixedHexDigits = function(V, ae) {
@@ -69633,20 +69633,20 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69633
69633
  V.lastIntValue = 0;
69634
69634
  for (var Fe = 0; Fe < ae; ++Fe) {
69635
69635
  var We = V.current();
69636
- if (!Tn(We))
69636
+ if (!En(We))
69637
69637
  return V.pos = Be, !1;
69638
- V.lastIntValue = 16 * V.lastIntValue + wn(We), V.advance();
69638
+ V.lastIntValue = 16 * V.lastIntValue + Rn(We), V.advance();
69639
69639
  }
69640
69640
  return !0;
69641
69641
  };
69642
- var on = function(ae) {
69642
+ var un = function(ae) {
69643
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]);
69644
- }, tr = Ct.prototype;
69645
- tr.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 on(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
69647
- }, tr.getToken = function() {
69648
- return this.next(), new on(this);
69649
- }, 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() {
69650
69650
  var V = this;
69651
69651
  return {
69652
69652
  next: function() {
@@ -69657,32 +69657,32 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69657
69657
  };
69658
69658
  }
69659
69659
  };
69660
- }), tr.nextToken = function() {
69660
+ }), rr.nextToken = function() {
69661
69661
  var V = this.curContext();
69662
69662
  if ((!V || !V.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length)
69663
69663
  return this.finishToken(F.eof);
69664
69664
  if (V.override)
69665
69665
  return V.override(this);
69666
69666
  this.readToken(this.fullCharCodeAtPos());
69667
- }, tr.readToken = function(V) {
69667
+ }, rr.readToken = function(V) {
69668
69668
  return A(V, this.options.ecmaVersion >= 6) || V === 92 ? this.readWord() : this.getTokenFromCode(V);
69669
- }, tr.fullCharCodeAtPos = function() {
69669
+ }, rr.fullCharCodeAtPos = function() {
69670
69670
  var V = this.input.charCodeAt(this.pos);
69671
69671
  if (V <= 55295 || V >= 56320)
69672
69672
  return V;
69673
69673
  var ae = this.input.charCodeAt(this.pos + 1);
69674
69674
  return ae <= 56319 || ae >= 57344 ? V : (V << 10) + ae - 56613888;
69675
- }, tr.skipBlockComment = function() {
69675
+ }, rr.skipBlockComment = function() {
69676
69676
  var V = this.options.onComment && this.curPosition(), ae = this.pos, Be = this.input.indexOf("*/", this.pos += 2);
69677
69677
  if (Be === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = Be + 2, this.options.locations)
69678
69678
  for (var Fe = void 0, We = ae; (Fe = ge(this.input, We, this.pos)) > -1; )
69679
69679
  ++this.curLine, We = this.lineStart = Fe;
69680
69680
  this.options.onComment && this.options.onComment(!0, this.input.slice(ae + 2, Be), ae, this.pos, V, this.curPosition());
69681
- }, tr.skipLineComment = function(V) {
69681
+ }, rr.skipLineComment = function(V) {
69682
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); )
69683
69683
  Fe = this.input.charCodeAt(++this.pos);
69684
69684
  this.options.onComment && this.options.onComment(!1, this.input.slice(ae + V, this.pos), ae, this.pos, Be, this.curPosition());
69685
- }, tr.skipSpace = function() {
69685
+ }, rr.skipSpace = function() {
69686
69686
  e:
69687
69687
  for (; this.pos < this.input.length; ) {
69688
69688
  var V = this.input.charCodeAt(this.pos);
@@ -69717,23 +69717,23 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69717
69717
  break e;
69718
69718
  }
69719
69719
  }
69720
- }, tr.finishToken = function(V, ae) {
69720
+ }, rr.finishToken = function(V, ae) {
69721
69721
  this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
69722
69722
  var Be = this.type;
69723
69723
  this.type = V, this.value = ae, this.updateContext(Be);
69724
- }, tr.readToken_dot = function() {
69724
+ }, rr.readToken_dot = function() {
69725
69725
  var V = this.input.charCodeAt(this.pos + 1);
69726
69726
  if (V >= 48 && V <= 57)
69727
69727
  return this.readNumber(!0);
69728
69728
  var ae = this.input.charCodeAt(this.pos + 2);
69729
69729
  return this.options.ecmaVersion >= 6 && V === 46 && ae === 46 ? (this.pos += 3, this.finishToken(F.ellipsis)) : (++this.pos, this.finishToken(F.dot));
69730
- }, tr.readToken_slash = function() {
69730
+ }, rr.readToken_slash = function() {
69731
69731
  var V = this.input.charCodeAt(this.pos + 1);
69732
69732
  return this.exprAllowed ? (++this.pos, this.readRegexp()) : V === 61 ? this.finishOp(F.assign, 2) : this.finishOp(F.slash, 1);
69733
- }, tr.readToken_mult_modulo_exp = function(V) {
69733
+ }, rr.readToken_mult_modulo_exp = function(V) {
69734
69734
  var ae = this.input.charCodeAt(this.pos + 1), Be = 1, Fe = V === 42 ? F.star : F.modulo;
69735
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);
69736
- }, tr.readToken_pipe_amp = function(V) {
69736
+ }, rr.readToken_pipe_amp = function(V) {
69737
69737
  var ae = this.input.charCodeAt(this.pos + 1);
69738
69738
  if (ae === V) {
69739
69739
  if (this.options.ecmaVersion >= 12) {
@@ -69744,19 +69744,19 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69744
69744
  return this.finishOp(V === 124 ? F.logicalOR : F.logicalAND, 2);
69745
69745
  }
69746
69746
  return ae === 61 ? this.finishOp(F.assign, 2) : this.finishOp(V === 124 ? F.bitwiseOR : F.bitwiseAND, 1);
69747
- }, tr.readToken_caret = function() {
69747
+ }, rr.readToken_caret = function() {
69748
69748
  var V = this.input.charCodeAt(this.pos + 1);
69749
69749
  return V === 61 ? this.finishOp(F.assign, 2) : this.finishOp(F.bitwiseXOR, 1);
69750
- }, tr.readToken_plus_min = function(V) {
69750
+ }, rr.readToken_plus_min = function(V) {
69751
69751
  var ae = this.input.charCodeAt(this.pos + 1);
69752
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);
69753
- }, tr.readToken_lt_gt = function(V) {
69753
+ }, rr.readToken_lt_gt = function(V) {
69754
69754
  var ae = this.input.charCodeAt(this.pos + 1), Be = 1;
69755
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));
69756
- }, tr.readToken_eq_excl = function(V) {
69756
+ }, rr.readToken_eq_excl = function(V) {
69757
69757
  var ae = this.input.charCodeAt(this.pos + 1);
69758
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);
69759
- }, tr.readToken_question = function() {
69759
+ }, rr.readToken_question = function() {
69760
69760
  var V = this.options.ecmaVersion;
69761
69761
  if (V >= 11) {
69762
69762
  var ae = this.input.charCodeAt(this.pos + 1);
@@ -69775,12 +69775,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69775
69775
  }
69776
69776
  }
69777
69777
  return this.finishOp(F.question, 1);
69778
- }, tr.readToken_numberSign = function() {
69778
+ }, rr.readToken_numberSign = function() {
69779
69779
  var V = this.options.ecmaVersion, ae = 35;
69780
69780
  if (V >= 13 && (++this.pos, ae = this.fullCharCodeAtPos(), A(ae, !0) || ae === 92))
69781
69781
  return this.finishToken(F.privateId, this.readWord1());
69782
69782
  this.raise(this.pos, "Unexpected character '" + qe(ae) + "'");
69783
- }, tr.getTokenFromCode = function(V) {
69783
+ }, rr.getTokenFromCode = function(V) {
69784
69784
  switch (V) {
69785
69785
  case 46:
69786
69786
  return this.readToken_dot();
@@ -69856,10 +69856,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69856
69856
  return this.readToken_numberSign();
69857
69857
  }
69858
69858
  this.raise(this.pos, "Unexpected character '" + qe(V) + "'");
69859
- }, tr.finishOp = function(V, ae) {
69859
+ }, rr.finishOp = function(V, ae) {
69860
69860
  var Be = this.input.slice(this.pos, this.pos + ae);
69861
69861
  return this.pos += ae, this.finishToken(V, Be);
69862
- }, tr.readRegexp = function() {
69862
+ }, rr.readRegexp = function() {
69863
69863
  for (var V, ae, Be = this.pos; ; ) {
69864
69864
  this.pos >= this.input.length && this.raise(Be, "Unterminated regular expression");
69865
69865
  var Fe = this.input.charAt(this.pos);
@@ -69888,8 +69888,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69888
69888
  } catch {
69889
69889
  }
69890
69890
  return this.finishToken(F.regexp, { pattern: We, flags: ct, value: Dt });
69891
- }, tr.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, 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) {
69893
69893
  var Jt = this.input.charCodeAt(this.pos), mr = void 0;
69894
69894
  if (Fe && Jt === 95) {
69895
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;
@@ -69901,31 +69901,31 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69901
69901
  }
69902
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;
69903
69903
  };
69904
- function qn(V, ae) {
69904
+ function Hn(V, ae) {
69905
69905
  return ae ? parseInt(V, 8) : parseFloat(V.replace(/_/g, ""));
69906
69906
  }
69907
- function Rn(V) {
69907
+ function In(V) {
69908
69908
  return typeof BigInt != "function" ? null : BigInt(V.replace(/_/g, ""));
69909
69909
  }
69910
- tr.readRadixNumber = function(V) {
69910
+ rr.readRadixNumber = function(V) {
69911
69911
  var ae = this.pos;
69912
69912
  this.pos += 2;
69913
69913
  var Be = this.readInt(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 = 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);
69915
- }, 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) {
69916
69916
  var ae = this.pos;
69917
69917
  !V && this.readInt(10, void 0, !0) === null && this.raise(ae, "Invalid number");
69918
69918
  var Be = this.pos - ae >= 2 && this.input.charCodeAt(ae) === 48;
69919
69919
  Be && this.strict && this.raise(ae, "Invalid number");
69920
69920
  var Fe = this.input.charCodeAt(this.pos);
69921
69921
  if (!Be && !V && this.options.ecmaVersion >= 11 && Fe === 110) {
69922
- var We = Rn(this.input.slice(ae, this.pos));
69922
+ var We = In(this.input.slice(ae, this.pos));
69923
69923
  return ++this.pos, A(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(F.num, We);
69924
69924
  }
69925
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");
69926
- var lt = qn(this.input.slice(ae, this.pos), Be);
69926
+ var lt = Hn(this.input.slice(ae, this.pos), Be);
69927
69927
  return this.finishToken(F.num, lt);
69928
- }, tr.readCodePoint = function() {
69928
+ }, rr.readCodePoint = function() {
69929
69929
  var V = this.input.charCodeAt(this.pos), ae;
69930
69930
  if (V === 123) {
69931
69931
  this.options.ecmaVersion < 6 && this.unexpected();
@@ -69934,7 +69934,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69934
69934
  } else
69935
69935
  ae = this.readHexChar(4);
69936
69936
  return ae;
69937
- }, tr.readString = function(V) {
69937
+ }, rr.readString = function(V) {
69938
69938
  for (var ae = "", Be = ++this.pos; ; ) {
69939
69939
  this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
69940
69940
  var Fe = this.input.charCodeAt(this.pos);
@@ -69944,23 +69944,23 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69944
69944
  }
69945
69945
  return ae += this.input.slice(Be, this.pos++), this.finishToken(F.string, ae);
69946
69946
  };
69947
- var An = {};
69948
- tr.tryReadTemplateToken = function() {
69947
+ var kn = {};
69948
+ rr.tryReadTemplateToken = function() {
69949
69949
  this.inTemplateElement = !0;
69950
69950
  try {
69951
69951
  this.readTmplToken();
69952
69952
  } catch (V) {
69953
- if (V === An)
69953
+ if (V === kn)
69954
69954
  this.readInvalidTemplateToken();
69955
69955
  else
69956
69956
  throw V;
69957
69957
  }
69958
69958
  this.inTemplateElement = !1;
69959
- }, tr.invalidStringToken = function(V, ae) {
69959
+ }, rr.invalidStringToken = function(V, ae) {
69960
69960
  if (this.inTemplateElement && this.options.ecmaVersion >= 9)
69961
- throw An;
69961
+ throw kn;
69962
69962
  this.raise(V, ae);
69963
- }, tr.readTmplToken = function() {
69963
+ }, rr.readTmplToken = function() {
69964
69964
  for (var V = "", ae = this.pos; ; ) {
69965
69965
  this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
69966
69966
  var Be = this.input.charCodeAt(this.pos);
@@ -69984,7 +69984,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69984
69984
  } else
69985
69985
  ++this.pos;
69986
69986
  }
69987
- }, tr.readInvalidTemplateToken = function() {
69987
+ }, rr.readInvalidTemplateToken = function() {
69988
69988
  for (; this.pos < this.input.length; this.pos++)
69989
69989
  switch (this.input[this.pos]) {
69990
69990
  case "\\":
@@ -70006,7 +70006,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
70006
70006
  break;
70007
70007
  }
70008
70008
  this.raise(this.start, "Unterminated template");
70009
- }, tr.readEscapedChar = function(V) {
70009
+ }, rr.readEscapedChar = function(V) {
70010
70010
  var ae = this.input.charCodeAt(++this.pos);
70011
70011
  switch (++this.pos, ae) {
70012
70012
  case 110:
@@ -70043,10 +70043,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
70043
70043
  }
70044
70044
  return oe(ae) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(ae);
70045
70045
  }
70046
- }, tr.readHexChar = function(V) {
70046
+ }, rr.readHexChar = function(V) {
70047
70047
  var ae = this.pos, Be = this.readInt(16, V);
70048
70048
  return Be === null && this.invalidStringToken(ae, "Bad character escape sequence"), Be;
70049
- }, tr.readWord1 = function() {
70049
+ }, rr.readWord1 = function() {
70050
70050
  this.containsEsc = !1;
70051
70051
  for (var V = "", ae = !0, Be = this.pos, Fe = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
70052
70052
  var We = this.fullCharCodeAtPos();
@@ -70063,42 +70063,42 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
70063
70063
  ae = !1;
70064
70064
  }
70065
70065
  return V + this.input.slice(Be, this.pos);
70066
- }, tr.readWord = function() {
70066
+ }, rr.readWord = function() {
70067
70067
  var V = this.readWord1(), ae = F.name;
70068
70068
  return this.keywords.test(V) && (ae = Q[V]), this.finishToken(ae, V);
70069
70069
  };
70070
- var In = "8.12.1";
70070
+ var Nn = "8.12.1";
70071
70071
  Ct.acorn = {
70072
70072
  Parser: Ct,
70073
- version: In,
70073
+ version: Nn,
70074
70074
  defaultOptions: Ye,
70075
70075
  Position: He,
70076
70076
  SourceLocation: Ze,
70077
70077
  getLineInfo: tt,
70078
- Node: $r,
70078
+ Node: Vr,
70079
70079
  TokenType: M,
70080
70080
  tokTypes: F,
70081
70081
  keywordTypes: Q,
70082
70082
  TokContext: yr,
70083
- tokContexts: er,
70083
+ tokContexts: tr,
70084
70084
  isIdentifierChar: I,
70085
70085
  isIdentifierStart: A,
70086
- Token: on,
70086
+ Token: un,
70087
70087
  isNewLine: oe,
70088
70088
  lineBreak: te,
70089
70089
  lineBreakG: ne,
70090
70090
  nonASCIIwhitespace: se
70091
70091
  };
70092
- function Un(V, ae) {
70092
+ function zn(V, ae) {
70093
70093
  return Ct.parse(V, ae);
70094
70094
  }
70095
- function Hn(V, ae, Be) {
70095
+ function Gn(V, ae, Be) {
70096
70096
  return Ct.parseExpressionAt(V, ae, Be);
70097
70097
  }
70098
- function zn(V, ae) {
70098
+ function Wn(V, ae) {
70099
70099
  return Ct.tokenizer(V, ae);
70100
70100
  }
70101
- 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;
70102
70102
  });
70103
70103
  }), require_acorn_jsx = __commonJS((t, e) => {
70104
70104
  var n = require_xhtml(), o = /^[\da-fA-F]+$/, l = /^\d+$/, d = /* @__PURE__ */ new WeakMap();
@@ -73132,12 +73132,12 @@ var hash = (t = "", e = 16) => {
73132
73132
  function handleNaN(t) {
73133
73133
  return Number.isNaN(t) ? "NaN" : t;
73134
73134
  }
73135
- var un, or, dn, fn, zr, Jr;
73135
+ var fn, or, hn, pn, Wr, en;
73136
73136
  class JsxParser extends React__default.Component {
73137
73137
  constructor() {
73138
73138
  super(...arguments);
73139
- nr(this, "ParsedChildren", null);
73140
- Fr(this, un, (n) => {
73139
+ Qt(this, "ParsedChildren", null);
73140
+ qr(this, fn, (n) => {
73141
73141
  const o = Parser.extend(AcornJSX.default({
73142
73142
  autoCloseVoidElements: this.props.autoCloseVoidElements
73143
73143
  })), l = `<root>${n}</root>`;
@@ -73149,14 +73149,14 @@ class JsxParser extends React__default.Component {
73149
73149
  }
73150
73150
  return d.map((f) => ir(this, or).call(this, f)).filter(Boolean);
73151
73151
  });
73152
- Fr(this, or, (n, o) => {
73152
+ qr(this, or, (n, o) => {
73153
73153
  var l, d;
73154
73154
  switch (n.type) {
73155
73155
  case "JSXAttribute":
73156
73156
  return n.value === null ? !0 : ir(this, or).call(this, n.value, o);
73157
73157
  case "JSXElement":
73158
73158
  case "JSXFragment":
73159
- return ir(this, Jr).call(this, n, o);
73159
+ return ir(this, en).call(this, n, o);
73160
73160
  case "JSXExpressionContainer":
73161
73161
  return ir(this, or).call(this, n.expression, o);
73162
73162
  case "JSXText":
@@ -73238,9 +73238,9 @@ class JsxParser extends React__default.Component {
73238
73238
  const C = ir(this, or).call(this, n.left, o);
73239
73239
  return n.operator === "||" && C ? C : n.operator === "&&" && C || n.operator === "||" && !C ? ir(this, or).call(this, n.right, o) : !1;
73240
73240
  case "MemberExpression":
73241
- return ir(this, fn).call(this, n, o);
73241
+ return ir(this, pn).call(this, n, o);
73242
73242
  case "ChainExpression":
73243
- return ir(this, dn).call(this, n, o);
73243
+ return ir(this, hn).call(this, n, o);
73244
73244
  case "ObjectExpression":
73245
73245
  const E = {};
73246
73246
  return n.properties.forEach((A) => {
@@ -73273,7 +73273,7 @@ class JsxParser extends React__default.Component {
73273
73273
  return;
73274
73274
  }
73275
73275
  });
73276
- Fr(this, dn, (n, o) => {
73276
+ qr(this, hn, (n, o) => {
73277
73277
  try {
73278
73278
  return ir(this, or).call(this, n.expression, o);
73279
73279
  } catch (l) {
@@ -73282,7 +73282,7 @@ class JsxParser extends React__default.Component {
73282
73282
  throw l;
73283
73283
  }
73284
73284
  });
73285
- Fr(this, fn, (n, o) => {
73285
+ qr(this, pn, (n, o) => {
73286
73286
  const l = ir(this, or).call(this, n.object, o);
73287
73287
  let d;
73288
73288
  if (n.computed)
@@ -73304,11 +73304,11 @@ class JsxParser extends React__default.Component {
73304
73304
  }
73305
73305
  return typeof f == "function" ? f.bind(l) : f;
73306
73306
  });
73307
- Fr(this, zr, (n) => n.type === "JSXIdentifier" ? n.name : `${ir(this, zr).call(this, n.object)}.${ir(this, zr).call(this, n.property)}`);
73308
- Fr(this, Jr, (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, 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);
73310
73310
  if (/^(html|head|body)$/i.test(C))
73311
- return b.map((z) => ir(this, Jr).call(this, z, o));
73311
+ return b.map((z) => ir(this, en).call(this, z, o));
73312
73312
  const A = C.trim().toLowerCase();
73313
73313
  if (R.indexOf(A) !== -1)
73314
73314
  return g(new Error(`The tag <${C}> is blacklisted, and will not be rendered.`)), null;
@@ -73349,14 +73349,14 @@ class JsxParser extends React__default.Component {
73349
73349
  }
73350
73350
  render() {
73351
73351
  const n = (this.props.jsx || "").trim().replace(/<!DOCTYPE([^>]*)>/g, "");
73352
- this.ParsedChildren = ir(this, un).call(this, n);
73352
+ this.ParsedChildren = ir(this, fn).call(this, n);
73353
73353
  const o = [.../* @__PURE__ */ new Set(["jsx-parser", ...String(this.props.className).split(" ")])].filter(Boolean).join(" ");
73354
73354
  return this.props.renderInWrapper ? /* @__PURE__ */ React__default.createElement("div", {
73355
73355
  className: o
73356
73356
  }, this.ParsedChildren) : this.ParsedChildren;
73357
73357
  }
73358
73358
  }
73359
- 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", {
73360
73360
  allowUnknownElements: !0,
73361
73361
  autoCloseVoidElements: !1,
73362
73362
  bindings: {},
@@ -77369,7 +77369,7 @@ function compareDeep(t, e) {
77369
77369
  }
77370
77370
  return !0;
77371
77371
  }
77372
- let Mark$1 = class yn {
77372
+ let Mark$1 = class xn {
77373
77373
  /**
77374
77374
  @internal
77375
77375
  */
@@ -77467,8 +77467,8 @@ let Mark$1 = class yn {
77467
77467
  */
77468
77468
  static setFrom(e) {
77469
77469
  if (!e || Array.isArray(e) && e.length == 0)
77470
- return yn.none;
77471
- if (e instanceof yn)
77470
+ return xn.none;
77471
+ if (e instanceof xn)
77472
77472
  return [e];
77473
77473
  let n = e.slice();
77474
77474
  return n.sort((o, l) => o.type.rank - l.type.rank), n;
@@ -77935,7 +77935,7 @@ class NodeRange {
77935
77935
  }
77936
77936
  }
77937
77937
  const emptyAttrs = /* @__PURE__ */ Object.create(null);
77938
- let Node$2 = class vn {
77938
+ let Node$2 = class bn {
77939
77939
  /**
77940
77940
  @internal
77941
77941
  */
@@ -78060,14 +78060,14 @@ let Node$2 = class vn {
78060
78060
  the given content (or empty, if no content is given).
78061
78061
  */
78062
78062
  copy(e = null) {
78063
- 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);
78064
78064
  }
78065
78065
  /**
78066
78066
  Create a copy of this node, with the given set of marks instead
78067
78067
  of the node's own marks.
78068
78068
  */
78069
78069
  mark(e) {
78070
- 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);
78071
78071
  }
78072
78072
  /**
78073
78073
  Create a copy of this node with only the content between the
@@ -78732,7 +78732,7 @@ function initAttrs(t, e) {
78732
78732
  n[o] = new Attribute(t, o, e[o]);
78733
78733
  return n;
78734
78734
  }
78735
- let NodeType$1 = class Nn {
78735
+ let NodeType$1 = class $n {
78736
78736
  /**
78737
78737
  @internal
78738
78738
  */
@@ -78900,7 +78900,7 @@ let NodeType$1 = class Nn {
78900
78900
  */
78901
78901
  static compile(e, n) {
78902
78902
  let o = /* @__PURE__ */ Object.create(null);
78903
- e.forEach((d, f) => o[d] = new Nn(d, n, f));
78903
+ e.forEach((d, f) => o[d] = new $n(d, n, f));
78904
78904
  let l = n.spec.topNode || "doc";
78905
78905
  if (!o[l])
78906
78906
  throw new RangeError("Schema is missing its top node type ('" + l + "')");
@@ -79087,7 +79087,7 @@ function isTagRule(t) {
79087
79087
  function isStyleRule(t) {
79088
79088
  return t.style != null;
79089
79089
  }
79090
- let DOMParser$1 = class xn {
79090
+ let DOMParser$1 = class Sn {
79091
79091
  /**
79092
79092
  Create a parser that targets the given schema, using the given
79093
79093
  parsing rules.
@@ -79199,7 +79199,7 @@ let DOMParser$1 = class xn {
79199
79199
  [priority](https://prosemirror.net/docs/ref/#model.ParseRule.priority).
79200
79200
  */
79201
79201
  static fromSchema(e) {
79202
- 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)));
79203
79203
  }
79204
79204
  };
79205
79205
  const blockTags = {
@@ -89014,7 +89014,7 @@ function wrappingInputRule(t) {
89014
89014
  }
89015
89015
  });
89016
89016
  }
89017
- let Node$1 = class bn {
89017
+ let Node$1 = class _n {
89018
89018
  constructor(e = {}) {
89019
89019
  this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
89020
89020
  name: this.name,
@@ -89030,7 +89030,7 @@ let Node$1 = class bn {
89030
89030
  })) || {};
89031
89031
  }
89032
89032
  static create(e = {}) {
89033
- return new bn(e);
89033
+ return new _n(e);
89034
89034
  }
89035
89035
  configure(e = {}) {
89036
89036
  const n = this.extend({
@@ -89040,7 +89040,7 @@ let Node$1 = class bn {
89040
89040
  return n.name = this.name, n.parent = this.parent, n;
89041
89041
  }
89042
89042
  extend(e = {}) {
89043
- const n = new bn(e);
89043
+ const n = new _n(e);
89044
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", {
89045
89045
  name: n.name
89046
89046
  })), n.storage = callOrReturn(getExtensionField(n, "addStorage", {
@@ -92211,6 +92211,705 @@ function SalesChart({
92211
92211
  ) })
92212
92212
  ] });
92213
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
+ };
92214
92913
  export {
92215
92914
  ActiveOrdersCard,
92216
92915
  AiGeneratedContent,
@@ -92391,7 +93090,9 @@ export {
92391
93090
  TooltipContent,
92392
93091
  TooltipProvider,
92393
93092
  TooltipTrigger,
93093
+ TopPercentTreemap,
92394
93094
  Topbar,
93095
+ Treemap,
92395
93096
  badgeVariants,
92396
93097
  buttonVariants,
92397
93098
  toast,