@factorialco/f0-react 7.36.0 → 7.38.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.
Files changed (30) hide show
  1. package/dist/{ChatPdfThumbnail-DtfR1SAC.js → ChatPdfThumbnail-CMvCc937.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-CxaeR8Vv.js → ChatPostComposerDialog-u_Le7t4Z.js} +3 -3
  3. package/dist/{DocumentToolbar-Cu151FpB.js → DocumentToolbar-Ck6HFBwZ.js} +2 -2
  4. package/dist/{DocxViewer-BqD75taI.js → DocxViewer-DEAMaHr0.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-Bwmzd2o8.js → F0AiProcessingOverlay-rN9DzM28.js} +1 -1
  6. package/dist/{F0CanvasPanel-DvxjOp3m.js → F0CanvasPanel-BlJYT_pW.js} +154 -153
  7. package/dist/{F0Map-CGZjOG11.js → F0Map-C2EKYiXw.js} +4 -4
  8. package/dist/{F0VideoPlayer-B_IfaZ6N.js → F0VideoPlayer-Yz3ucbhY.js} +2 -2
  9. package/dist/{MapProvider-By9Tk09N.js → MapProvider-DSjJO2ic.js} +11233 -10997
  10. package/dist/{SheetViewer-CspxsxLt.js → SheetViewer-BRjWtP83.js} +2 -2
  11. package/dist/{TextViewer-DIsaa4Y4.js → TextViewer-Ppmxk6uD.js} +2 -2
  12. package/dist/ai.d.ts +13 -13
  13. package/dist/ai.js +2 -2
  14. package/dist/component-status.d.ts +13 -13
  15. package/dist/component-status.js +1 -1
  16. package/dist/{experimental-BD0iEWNv.js → experimental-BcKLQk0y.js} +7 -7
  17. package/dist/experimental.d.ts +32 -23
  18. package/dist/experimental.js +4 -4
  19. package/dist/f0.d.ts +20 -13
  20. package/dist/f0.js +10 -10
  21. package/dist/i18n-provider-defaults.d.ts +13 -13
  22. package/dist/{index-UiHhshSR.js → index-C-CsghTJ.js} +3 -3
  23. package/dist/index-DDEc0h31.js +4 -0
  24. package/dist/{index-DcZSmX1C.js → index-DlNTBsNK.js} +1 -1
  25. package/dist/{index-DUKAr0H2.js → index-Dr09V1eU.js} +3 -3
  26. package/dist/{index-DcQIDzx6.js → index-Jt6rwX6i.js} +2 -2
  27. package/dist/{pdfWorker-By8Miy58.js → pdfWorker-Dcq5UFEa.js} +2 -2
  28. package/dist/styles.css +1 -1
  29. package/package.json +1 -1
  30. package/dist/index-DtGGGJrE.js +0 -4
@@ -5773,7 +5773,7 @@ var yx = {};
5773
5773
  function q(k, O) {
5774
5774
  var z = !k, N = !!y(O || {}, "resize"), o2 = !1, u2 = y(O, "disableForReducedMotion", Boolean), h2 = o && !!y(O || {}, "useWorker"), a2 = h2 ? h() : null, i2 = z ? S : H, r2 = k && a2 ? !!k.__confetti_initialized : !1, c2 = typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion)").matches, v2;
5775
5775
  function J(l2, b2, T2) {
5776
- for (var k2 = y(l2, "particleCount", b), U2 = y(l2, "angle", Number), J2 = y(l2, "spread", Number), _2 = y(l2, "startVelocity", Number), z2 = y(l2, "decay", Number), l1 = y(l2, "gravity", Number), e1 = y(l2, "drift", Number), s1 = y(l2, "colors", $), D2 = y(l2, "ticks", Number), f2 = y(l2, "shapes"), w2 = y(l2, "scalar"), N2 = !!y(l2, "flat"), I2 = P(l2), h1 = k2, _1 = [], x1 = k.width * I2.x, $1 = k.height * I2.y; h1--; )
5776
+ for (var k2 = y(l2, "particleCount", b), U2 = y(l2, "angle", Number), J2 = y(l2, "spread", Number), _2 = y(l2, "startVelocity", Number), z2 = y(l2, "decay", Number), l1 = y(l2, "gravity", Number), e1 = y(l2, "drift", Number), s1 = y(l2, "colors", $), D2 = y(l2, "ticks", Number), f2 = y(l2, "shapes"), w2 = y(l2, "scalar"), N2 = !!y(l2, "flat"), R2 = P(l2), h1 = k2, _1 = [], x1 = k.width * R2.x, $1 = k.height * R2.y; h1--; )
5777
5777
  _1.push(
5778
5778
  E({
5779
5779
  x: x1,
@@ -6544,11 +6544,11 @@ function Hq() {
6544
6544
  const e1 = "user-content-";
6545
6545
  let s1 = !0, D2 = !1, f2 = {}, w2 = null;
6546
6546
  const N2 = t3({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
6547
- let I2 = null;
6547
+ let R2 = null;
6548
6548
  const h1 = t3({}, ["audio", "video", "img", "source", "image", "track"]);
6549
6549
  let _1 = null;
6550
6550
  const x1 = t3({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), $1 = "http://www.w3.org/1998/Math/MathML", S2 = "http://www.w3.org/2000/svg", O2 = "http://www.w3.org/1999/xhtml";
6551
- let M2 = O2, R2 = !1, S1 = null;
6551
+ let M2 = O2, I2 = !1, S1 = null;
6552
6552
  const B2 = t3({}, [$1, S2, O2], Fh);
6553
6553
  let X2 = t3({}, ["mi", "mo", "mn", "ms", "mtext"]), r1 = t3({}, ["annotation-xml"]);
6554
6554
  const g1 = t3({}, ["title", "style", "font", "a", "script"]);
@@ -6561,7 +6561,7 @@ function Hq() {
6561
6561
  let d2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6562
6562
  if (!(a1 && a1 === d2)) {
6563
6563
  if ((!d2 || typeof d2 != "object") && (d2 = {}), d2 = Wt(d2), v1 = // eslint-disable-next-line unicorn/prefer-includes
6564
- a3.indexOf(d2.PARSER_MEDIA_TYPE) === -1 ? m1 : d2.PARSER_MEDIA_TYPE, G1 = v1 === "application/xhtml+xml" ? Fh : hu, O = C5(d2, "ALLOWED_TAGS") ? t3({}, d2.ALLOWED_TAGS, G1) : z, N = C5(d2, "ALLOWED_ATTR") ? t3({}, d2.ALLOWED_ATTR, G1) : o2, S1 = C5(d2, "ALLOWED_NAMESPACES") ? t3({}, d2.ALLOWED_NAMESPACES, Fh) : B2, _1 = C5(d2, "ADD_URI_SAFE_ATTR") ? t3(Wt(x1), d2.ADD_URI_SAFE_ATTR, G1) : x1, I2 = C5(d2, "ADD_DATA_URI_TAGS") ? t3(Wt(h1), d2.ADD_DATA_URI_TAGS, G1) : h1, w2 = C5(d2, "FORBID_CONTENTS") ? t3({}, d2.FORBID_CONTENTS, G1) : N2, h2 = C5(d2, "FORBID_TAGS") ? t3({}, d2.FORBID_TAGS, G1) : Wt({}), a2 = C5(d2, "FORBID_ATTR") ? t3({}, d2.FORBID_ATTR, G1) : Wt({}), f2 = C5(d2, "USE_PROFILES") ? d2.USE_PROFILES : !1, r2 = d2.ALLOW_ARIA_ATTR !== !1, c2 = d2.ALLOW_DATA_ATTR !== !1, v2 = d2.ALLOW_UNKNOWN_PROTOCOLS || !1, J = d2.ALLOW_SELF_CLOSE_IN_ATTR !== !1, F2 = d2.SAFE_FOR_TEMPLATES || !1, l2 = d2.SAFE_FOR_XML !== !1, b2 = d2.WHOLE_DOCUMENT || !1, U2 = d2.RETURN_DOM || !1, J2 = d2.RETURN_DOM_FRAGMENT || !1, _2 = d2.RETURN_TRUSTED_TYPE || !1, k2 = d2.FORCE_BODY || !1, z2 = d2.SANITIZE_DOM !== !1, l1 = d2.SANITIZE_NAMED_PROPS || !1, s1 = d2.KEEP_CONTENT !== !1, D2 = d2.IN_PLACE || !1, k = d2.ALLOWED_URI_REGEXP || Sq, M2 = d2.NAMESPACE || O2, X2 = d2.MATHML_TEXT_INTEGRATION_POINTS || X2, r1 = d2.HTML_INTEGRATION_POINTS || r1, u2 = d2.CUSTOM_ELEMENT_HANDLING || {}, d2.CUSTOM_ELEMENT_HANDLING && de(d2.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u2.tagNameCheck = d2.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d2.CUSTOM_ELEMENT_HANDLING && de(d2.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u2.attributeNameCheck = d2.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d2.CUSTOM_ELEMENT_HANDLING && typeof d2.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u2.allowCustomizedBuiltInElements = d2.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), F2 && (c2 = !1), J2 && (U2 = !0), f2 && (O = t3({}, fk), N = Cu(null), f2.html === !0 && (t3(O, dk), t3(N, Ck)), f2.svg === !0 && (t3(O, Vh), t3(N, Eh), t3(N, dl)), f2.svgFilters === !0 && (t3(O, kh), t3(N, Eh), t3(N, dl)), f2.mathMl === !0 && (t3(O, Ah), t3(N, hk), t3(N, dl))), C5(d2, "ADD_TAGS") || (i2.tagCheck = null), C5(d2, "ADD_ATTR") || (i2.attributeCheck = null), d2.ADD_TAGS && (typeof d2.ADD_TAGS == "function" ? i2.tagCheck = d2.ADD_TAGS : (O === z && (O = Wt(O)), t3(O, d2.ADD_TAGS, G1))), d2.ADD_ATTR && (typeof d2.ADD_ATTR == "function" ? i2.attributeCheck = d2.ADD_ATTR : (N === o2 && (N = Wt(N)), t3(N, d2.ADD_ATTR, G1))), d2.ADD_URI_SAFE_ATTR && t3(_1, d2.ADD_URI_SAFE_ATTR, G1), d2.FORBID_CONTENTS && (w2 === N2 && (w2 = Wt(w2)), t3(w2, d2.FORBID_CONTENTS, G1)), d2.ADD_FORBID_CONTENTS && (w2 === N2 && (w2 = Wt(w2)), t3(w2, d2.ADD_FORBID_CONTENTS, G1)), s1 && (O["#text"] = !0), b2 && t3(O, ["html", "head", "body"]), O.table && (t3(O, ["tbody"]), delete h2.tbody), d2.TRUSTED_TYPES_POLICY) {
6564
+ a3.indexOf(d2.PARSER_MEDIA_TYPE) === -1 ? m1 : d2.PARSER_MEDIA_TYPE, G1 = v1 === "application/xhtml+xml" ? Fh : hu, O = C5(d2, "ALLOWED_TAGS") ? t3({}, d2.ALLOWED_TAGS, G1) : z, N = C5(d2, "ALLOWED_ATTR") ? t3({}, d2.ALLOWED_ATTR, G1) : o2, S1 = C5(d2, "ALLOWED_NAMESPACES") ? t3({}, d2.ALLOWED_NAMESPACES, Fh) : B2, _1 = C5(d2, "ADD_URI_SAFE_ATTR") ? t3(Wt(x1), d2.ADD_URI_SAFE_ATTR, G1) : x1, R2 = C5(d2, "ADD_DATA_URI_TAGS") ? t3(Wt(h1), d2.ADD_DATA_URI_TAGS, G1) : h1, w2 = C5(d2, "FORBID_CONTENTS") ? t3({}, d2.FORBID_CONTENTS, G1) : N2, h2 = C5(d2, "FORBID_TAGS") ? t3({}, d2.FORBID_TAGS, G1) : Wt({}), a2 = C5(d2, "FORBID_ATTR") ? t3({}, d2.FORBID_ATTR, G1) : Wt({}), f2 = C5(d2, "USE_PROFILES") ? d2.USE_PROFILES : !1, r2 = d2.ALLOW_ARIA_ATTR !== !1, c2 = d2.ALLOW_DATA_ATTR !== !1, v2 = d2.ALLOW_UNKNOWN_PROTOCOLS || !1, J = d2.ALLOW_SELF_CLOSE_IN_ATTR !== !1, F2 = d2.SAFE_FOR_TEMPLATES || !1, l2 = d2.SAFE_FOR_XML !== !1, b2 = d2.WHOLE_DOCUMENT || !1, U2 = d2.RETURN_DOM || !1, J2 = d2.RETURN_DOM_FRAGMENT || !1, _2 = d2.RETURN_TRUSTED_TYPE || !1, k2 = d2.FORCE_BODY || !1, z2 = d2.SANITIZE_DOM !== !1, l1 = d2.SANITIZE_NAMED_PROPS || !1, s1 = d2.KEEP_CONTENT !== !1, D2 = d2.IN_PLACE || !1, k = d2.ALLOWED_URI_REGEXP || Sq, M2 = d2.NAMESPACE || O2, X2 = d2.MATHML_TEXT_INTEGRATION_POINTS || X2, r1 = d2.HTML_INTEGRATION_POINTS || r1, u2 = d2.CUSTOM_ELEMENT_HANDLING || {}, d2.CUSTOM_ELEMENT_HANDLING && de(d2.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u2.tagNameCheck = d2.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d2.CUSTOM_ELEMENT_HANDLING && de(d2.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u2.attributeNameCheck = d2.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d2.CUSTOM_ELEMENT_HANDLING && typeof d2.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u2.allowCustomizedBuiltInElements = d2.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), F2 && (c2 = !1), J2 && (U2 = !0), f2 && (O = t3({}, fk), N = Cu(null), f2.html === !0 && (t3(O, dk), t3(N, Ck)), f2.svg === !0 && (t3(O, Vh), t3(N, Eh), t3(N, dl)), f2.svgFilters === !0 && (t3(O, kh), t3(N, Eh), t3(N, dl)), f2.mathMl === !0 && (t3(O, Ah), t3(N, hk), t3(N, dl))), C5(d2, "ADD_TAGS") || (i2.tagCheck = null), C5(d2, "ADD_ATTR") || (i2.attributeCheck = null), d2.ADD_TAGS && (typeof d2.ADD_TAGS == "function" ? i2.tagCheck = d2.ADD_TAGS : (O === z && (O = Wt(O)), t3(O, d2.ADD_TAGS, G1))), d2.ADD_ATTR && (typeof d2.ADD_ATTR == "function" ? i2.attributeCheck = d2.ADD_ATTR : (N === o2 && (N = Wt(N)), t3(N, d2.ADD_ATTR, G1))), d2.ADD_URI_SAFE_ATTR && t3(_1, d2.ADD_URI_SAFE_ATTR, G1), d2.FORBID_CONTENTS && (w2 === N2 && (w2 = Wt(w2)), t3(w2, d2.FORBID_CONTENTS, G1)), d2.ADD_FORBID_CONTENTS && (w2 === N2 && (w2 = Wt(w2)), t3(w2, d2.ADD_FORBID_CONTENTS, G1)), s1 && (O["#text"] = !0), b2 && t3(O, ["html", "head", "body"]), O.table && (t3(O, ["tbody"]), delete h2.tbody), d2.TRUSTED_TYPES_POLICY) {
6565
6565
  if (typeof d2.TRUSTED_TYPES_POLICY.createHTML != "function")
6566
6566
  throw Qr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
6567
6567
  if (typeof d2.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -6629,7 +6629,7 @@ function Hq() {
6629
6629
  if (!W2 || !W2.documentElement) {
6630
6630
  W2 = P.createDocument(M2, "template", null);
6631
6631
  try {
6632
- W2.documentElement.innerHTML = R2 ? L : y3;
6632
+ W2.documentElement.innerHTML = I2 ? L : y3;
6633
6633
  } catch {
6634
6634
  }
6635
6635
  }
@@ -6700,7 +6700,7 @@ function Hq() {
6700
6700
  ) return !1;
6701
6701
  } else if (!_1[W2]) {
6702
6702
  if (!x4(k, Kr(o1, Q, ""))) {
6703
- if (!((W2 === "src" || W2 === "xlink:href" || W2 === "href") && d2 !== "script" && iu2(o1, "data:") === 0 && I2[d2])) {
6703
+ if (!((W2 === "src" || W2 === "xlink:href" || W2 === "href") && d2 !== "script" && iu2(o1, "data:") === 0 && R2[d2])) {
6704
6704
  if (!(v2 && !x4(X, Kr(o1, Q, "")))) {
6705
6705
  if (o1)
6706
6706
  return !1;
@@ -6790,7 +6790,7 @@ function Hq() {
6790
6790
  };
6791
6791
  return t.sanitize = function(y1) {
6792
6792
  let d2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, W2 = null, o1 = null, y3 = null, ne = null;
6793
- if (R2 = !y1, R2 && (y1 = "<!-->"), typeof y1 != "string" && !Mr(y1))
6793
+ if (I2 = !y1, I2 && (y1 = "<!-->"), typeof y1 != "string" && !Mr(y1))
6794
6794
  if (typeof y1.toString == "function") {
6795
6795
  if (y1 = y1.toString(), typeof y1 != "string")
6796
6796
  throw Qr("dirty is not a string, aborting");
@@ -13278,14 +13278,14 @@ function Qh2(e) {
13278
13278
  buffer: s,
13279
13279
  resume: d,
13280
13280
  data: n
13281
- }, I2 = [];
13281
+ }, R2 = [];
13282
13282
  let h1 = -1;
13283
13283
  for (; ++h1 < f2.length; )
13284
13284
  if (f2[h1][1].type === "listOrdered" || f2[h1][1].type === "listUnordered")
13285
13285
  if (f2[h1][0] === "enter")
13286
- I2.push(h1);
13286
+ R2.push(h1);
13287
13287
  else {
13288
- const _1 = I2.pop();
13288
+ const _1 = R2.pop();
13289
13289
  h1 = a(f2, _1, h1);
13290
13290
  }
13291
13291
  for (h1 = -1; ++h1 < f2.length; ) {
@@ -13314,9 +13314,9 @@ function Qh2(e) {
13314
13314
  return w2;
13315
13315
  }
13316
13316
  function a(f2, w2, N2) {
13317
- let I2 = w2 - 1, h1 = -1, _1 = !1, x1, $1, S2, O2;
13318
- for (; ++I2 <= N2; ) {
13319
- const M2 = f2[I2];
13317
+ let R2 = w2 - 1, h1 = -1, _1 = !1, x1, $1, S2, O2;
13318
+ for (; ++R2 <= N2; ) {
13319
+ const M2 = f2[R2];
13320
13320
  switch (M2[1].type) {
13321
13321
  case "listUnordered":
13322
13322
  case "listOrdered":
@@ -13325,7 +13325,7 @@ function Qh2(e) {
13325
13325
  break;
13326
13326
  }
13327
13327
  case "lineEndingBlank": {
13328
- M2[0] === "enter" && (x1 && !O2 && !h1 && !S2 && (S2 = I2), O2 = void 0);
13328
+ M2[0] === "enter" && (x1 && !O2 && !h1 && !S2 && (S2 = R2), O2 = void 0);
13329
13329
  break;
13330
13330
  }
13331
13331
  case "linePrefix":
@@ -13339,25 +13339,25 @@ function Qh2(e) {
13339
13339
  }
13340
13340
  if (!h1 && M2[0] === "enter" && M2[1].type === "listItemPrefix" || h1 === -1 && M2[0] === "exit" && (M2[1].type === "listUnordered" || M2[1].type === "listOrdered")) {
13341
13341
  if (x1) {
13342
- let R2 = I2;
13343
- for ($1 = void 0; R2--; ) {
13344
- const S1 = f2[R2];
13342
+ let I2 = R2;
13343
+ for ($1 = void 0; I2--; ) {
13344
+ const S1 = f2[I2];
13345
13345
  if (S1[1].type === "lineEnding" || S1[1].type === "lineEndingBlank") {
13346
13346
  if (S1[0] === "exit") continue;
13347
- $1 && (f2[$1][1].type = "lineEndingBlank", _1 = !0), S1[1].type = "lineEnding", $1 = R2;
13347
+ $1 && (f2[$1][1].type = "lineEndingBlank", _1 = !0), S1[1].type = "lineEnding", $1 = I2;
13348
13348
  } else if (!(S1[1].type === "linePrefix" || S1[1].type === "blockQuotePrefix" || S1[1].type === "blockQuotePrefixWhitespace" || S1[1].type === "blockQuoteMarker" || S1[1].type === "listItemIndent")) break;
13349
13349
  }
13350
- S2 && (!$1 || S2 < $1) && (x1._spread = !0), x1.end = Object.assign({}, $1 ? f2[$1][1].start : M2[1].end), f2.splice($1 || I2, 0, ["exit", x1, M2[2]]), I2++, N2++;
13350
+ S2 && (!$1 || S2 < $1) && (x1._spread = !0), x1.end = Object.assign({}, $1 ? f2[$1][1].start : M2[1].end), f2.splice($1 || R2, 0, ["exit", x1, M2[2]]), R2++, N2++;
13351
13351
  }
13352
13352
  if (M2[1].type === "listItemPrefix") {
13353
- const R2 = {
13353
+ const I2 = {
13354
13354
  type: "listItem",
13355
13355
  _spread: !1,
13356
13356
  start: Object.assign({}, M2[1].start),
13357
13357
  // @ts-expect-error: we’ll add `end` in a second.
13358
13358
  end: void 0
13359
13359
  };
13360
- x1 = R2, f2.splice(I2, 0, ["enter", R2, M2[2]]), I2++, N2++, S2 = void 0, O2 = !0;
13360
+ x1 = I2, f2.splice(R2, 0, ["enter", I2, M2[2]]), R2++, N2++, S2 = void 0, O2 = !0;
13361
13361
  }
13362
13362
  }
13363
13363
  }
@@ -13365,8 +13365,8 @@ function Qh2(e) {
13365
13365
  }
13366
13366
  function o(f2, w2) {
13367
13367
  return N2;
13368
- function N2(I2) {
13369
- l.call(this, f2(I2), I2), w2 && w2.call(this, I2);
13368
+ function N2(R2) {
13369
+ l.call(this, f2(R2), R2), w2 && w2.call(this, R2);
13370
13370
  }
13371
13371
  }
13372
13372
  function s() {
@@ -13389,9 +13389,9 @@ function Qh2(e) {
13389
13389
  }
13390
13390
  }
13391
13391
  function c(f2, w2) {
13392
- const N2 = this.stack.pop(), I2 = this.tokenStack.pop();
13393
- if (I2)
13394
- I2[0].type !== f2.type && (w2 ? w2.call(this, f2, I2[0]) : (I2[1] || jk).call(this, f2, I2[0]));
13392
+ const N2 = this.stack.pop(), R2 = this.tokenStack.pop();
13393
+ if (R2)
13394
+ R2[0].type !== f2.type && (w2 ? w2.call(this, f2, R2[0]) : (R2[1] || jk).call(this, f2, R2[0]));
13395
13395
  else throw new Error("Cannot close `" + f2.type + "` (" + za({
13396
13396
  start: f2.start,
13397
13397
  end: f2.end
@@ -13460,12 +13460,12 @@ function Qh2(e) {
13460
13460
  }
13461
13461
  function F(f2) {
13462
13462
  const N2 = this.stack[this.stack.length - 1].children;
13463
- let I2 = N2[N2.length - 1];
13464
- (!I2 || I2.type !== "text") && (I2 = s1(), I2.position = {
13463
+ let R2 = N2[N2.length - 1];
13464
+ (!R2 || R2.type !== "text") && (R2 = s1(), R2.position = {
13465
13465
  start: $7(f2.start),
13466
13466
  // @ts-expect-error: we’ll add `end` later.
13467
13467
  end: void 0
13468
- }, N2.push(I2)), this.stack.push(I2);
13468
+ }, N2.push(R2)), this.stack.push(R2);
13469
13469
  }
13470
13470
  function T(f2) {
13471
13471
  const w2 = this.stack.pop();
@@ -13520,8 +13520,8 @@ function Qh2(e) {
13520
13520
  function n2() {
13521
13521
  const f2 = this.stack[this.stack.length - 1], w2 = this.resume(), N2 = this.stack[this.stack.length - 1];
13522
13522
  if (this.data.inReference = !0, N2.type === "link") {
13523
- const I2 = f2.children;
13524
- N2.children = I2;
13523
+ const R2 = f2.children;
13524
+ N2.children = R2;
13525
13525
  } else
13526
13526
  N2.alt = w2;
13527
13527
  }
@@ -13548,10 +13548,10 @@ function Qh2(e) {
13548
13548
  }
13549
13549
  function h2(f2) {
13550
13550
  const w2 = this.sliceSerialize(f2), N2 = this.data.characterReferenceType;
13551
- let I2;
13552
- N2 ? (I2 = uG(w2, N2 === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : I2 = Fx(w2);
13551
+ let R2;
13552
+ N2 ? (R2 = uG(w2, N2 === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : R2 = Fx(w2);
13553
13553
  const h1 = this.stack[this.stack.length - 1];
13554
- h1.value += I2;
13554
+ h1.value += R2;
13555
13555
  }
13556
13556
  function a2(f2) {
13557
13557
  const w2 = this.stack.pop();
@@ -49811,7 +49811,7 @@ function Cj2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: a, s
49811
49811
  function N2() {
49812
49812
  return (window.innerWidth - hL) / window.innerWidth;
49813
49813
  }
49814
- function I2(B2) {
49814
+ function R2(B2) {
49815
49815
  var X2, r1;
49816
49816
  !d && !o || l2.current && !l2.current.contains(B2.target) || (b2.current = ((X2 = l2.current) == null ? void 0 : X2.getBoundingClientRect().height) || 0, T2.current = ((r1 = l2.current) == null ? void 0 : r1.getBoundingClientRect().width) || 0, k(!0), u2.current = /* @__PURE__ */ new Date(), rK() && window.addEventListener("touchend", () => i2.current = !1, {
49817
49817
  once: !0
@@ -50009,7 +50009,7 @@ function Cj2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: a, s
50009
50009
  });
50010
50010
  }, 500));
50011
50011
  }
50012
- function R2(B2, X2) {
50012
+ function I2(B2, X2) {
50013
50013
  if (X2 < 0) return;
50014
50014
  const r1 = (window.innerWidth - W9) / window.innerWidth, g1 = r1 + X2 * (1 - r1), v1 = -W9 + X2 * W9;
50015
50015
  je(l2.current, {
@@ -50044,7 +50044,7 @@ function Cj2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: a, s
50044
50044
  drawerRef: l2,
50045
50045
  overlayRef: N,
50046
50046
  onOpenChange: t,
50047
- onPress: I2,
50047
+ onPress: R2,
50048
50048
  onRelease: O2,
50049
50049
  onDrag: _1,
50050
50050
  dismissible: d,
@@ -50054,7 +50054,7 @@ function Cj2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: a, s
50054
50054
  isDragging: n2,
50055
50055
  shouldFade: D2,
50056
50056
  closeDrawer: x1,
50057
- onNestedDrag: R2,
50057
+ onNestedDrag: I2,
50058
50058
  onNestedOpenChange: M2,
50059
50059
  onNestedRelease: S1,
50060
50060
  keyboardIsOpen: v2,
@@ -106346,7 +106346,7 @@ function Az1() {
106346
106346
  ["partial", L],
106347
106347
  ["partialRight", P],
106348
106348
  ["rearg", H]
106349
- ], u2 = "[object Arguments]", h2 = "[object Array]", a2 = "[object AsyncFunction]", i2 = "[object Boolean]", r2 = "[object Date]", c2 = "[object DOMException]", v2 = "[object Error]", J = "[object Function]", F2 = "[object GeneratorFunction]", l2 = "[object Map]", b2 = "[object Number]", T2 = "[object Null]", k2 = "[object Object]", U2 = "[object Promise]", J2 = "[object Proxy]", _2 = "[object RegExp]", z2 = "[object Set]", l1 = "[object String]", e1 = "[object Symbol]", s1 = "[object Undefined]", D2 = "[object WeakMap]", f2 = "[object WeakSet]", w2 = "[object ArrayBuffer]", N2 = "[object DataView]", I2 = "[object Float32Array]", h1 = "[object Float64Array]", _1 = "[object Int8Array]", x1 = "[object Int16Array]", $1 = "[object Int32Array]", S2 = "[object Uint8Array]", O2 = "[object Uint8ClampedArray]", M2 = "[object Uint16Array]", R2 = "[object Uint32Array]", S1 = /\b__p \+= '';/g, B2 = /\b(__p \+=) '' \+/g, X2 = /(__e\(.*?\)|\b__t\)) \+\n'';/g, r1 = /&(?:amp|lt|gt|quot|#39);/g, g1 = /[&<>"']/g, v1 = RegExp(r1.source), a3 = RegExp(g1.source), m1 = /<%-([\s\S]+?)%>/g, G1 = /<%([\s\S]+?)%>/g, a1 = /<%=([\s\S]+?)%>/g, U1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, de = /^\w*$/, we = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, He = /[\\^$.*+?()[\]{}|]/g, Me = RegExp(He.source), At = /^\s+/, l4 = /\s/, a5 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, C7 = /\{\n\/\* \[wrapped with (.+)\] \*/, h7 = /,? & /, y4 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Mr = /[()=,{}\[\]\/\s]/, D4 = /\\(\\)?/g, zn = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, m6 = /\w*$/, Et = /^[-+]0x[0-9a-f]+$/i, p6 = /^0b[01]+$/i, xr = /^\[object .+?Constructor\]$/, y1 = /^0o[0-7]+$/i, d2 = /^(?:0|[1-9]\d*)$/, W2 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, o1 = /($^)/, y3 = /['\n\r\u2028\u2029\\]/g, ne = "\\ud800-\\udfff", V3 = "\\u0300-\\u036f", Ve = "\\ufe20-\\ufe2f", b4 = "\\u20d0-\\u20ff", R4 = V3 + Ve + b4, ot = "\\u2700-\\u27bf", re = "a-z\\xdf-\\xf6\\xf8-\\xff", _5 = "\\xac\\xb1\\xd7\\xf7", Tt = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Yf = "\\u2000-\\u206f", I4 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", is = "A-Z\\xc0-\\xd6\\xd8-\\xde", os = "\\ufe0e\\ufe0f", ss = _5 + Tt + Yf + I4, Pr = "['’]", _r = "[" + ne + "]", ls = "[" + ss + "]", g6 = "[" + R4 + "]", m7 = "\\d+", Kf = "[" + ot + "]", qn = "[" + re + "]", $r = "[^" + ne + ss + m7 + ot + re + is + "]", v6 = "\\ud83c[\\udffb-\\udfff]", Sr = "(?:" + g6 + "|" + v6 + ")", Gn = "[^" + ne + "]", H9 = "(?:\\ud83c[\\udde6-\\uddff]){2}", V9 = "[\\ud800-\\udbff][\\udc00-\\udfff]", p7 = "[" + is + "]", y6 = "\\u200d", Fr = "(?:" + qn + "|" + $r + ")", us = "(?:" + p7 + "|" + $r + ")", Hr = "(?:" + Pr + "(?:d|ll|m|re|s|t|ve))?", $5 = "(?:" + Pr + "(?:D|LL|M|RE|S|T|VE))?", cs = Sr + "?", ds = "[" + os + "]?", Qf = "(?:" + y6 + "(?:" + [Gn, H9, V9].join("|") + ")" + ds + cs + ")*", Jf = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Vr = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", g7 = ds + cs + Qf, fs = "(?:" + [Kf, H9, V9].join("|") + ")" + g7, Cs = "(?:" + [Gn + g6 + "?", g6, H9, V9, _r].join("|") + ")", eC = RegExp(Pr, "g"), kr = RegExp(g6, "g"), Ar = RegExp(v6 + "(?=" + v6 + ")|" + Cs + g7, "g"), tC = RegExp([
106349
+ ], u2 = "[object Arguments]", h2 = "[object Array]", a2 = "[object AsyncFunction]", i2 = "[object Boolean]", r2 = "[object Date]", c2 = "[object DOMException]", v2 = "[object Error]", J = "[object Function]", F2 = "[object GeneratorFunction]", l2 = "[object Map]", b2 = "[object Number]", T2 = "[object Null]", k2 = "[object Object]", U2 = "[object Promise]", J2 = "[object Proxy]", _2 = "[object RegExp]", z2 = "[object Set]", l1 = "[object String]", e1 = "[object Symbol]", s1 = "[object Undefined]", D2 = "[object WeakMap]", f2 = "[object WeakSet]", w2 = "[object ArrayBuffer]", N2 = "[object DataView]", R2 = "[object Float32Array]", h1 = "[object Float64Array]", _1 = "[object Int8Array]", x1 = "[object Int16Array]", $1 = "[object Int32Array]", S2 = "[object Uint8Array]", O2 = "[object Uint8ClampedArray]", M2 = "[object Uint16Array]", I2 = "[object Uint32Array]", S1 = /\b__p \+= '';/g, B2 = /\b(__p \+=) '' \+/g, X2 = /(__e\(.*?\)|\b__t\)) \+\n'';/g, r1 = /&(?:amp|lt|gt|quot|#39);/g, g1 = /[&<>"']/g, v1 = RegExp(r1.source), a3 = RegExp(g1.source), m1 = /<%-([\s\S]+?)%>/g, G1 = /<%([\s\S]+?)%>/g, a1 = /<%=([\s\S]+?)%>/g, U1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, de = /^\w*$/, we = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, He = /[\\^$.*+?()[\]{}|]/g, Me = RegExp(He.source), At = /^\s+/, l4 = /\s/, a5 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, C7 = /\{\n\/\* \[wrapped with (.+)\] \*/, h7 = /,? & /, y4 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Mr = /[()=,{}\[\]\/\s]/, D4 = /\\(\\)?/g, zn = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, m6 = /\w*$/, Et = /^[-+]0x[0-9a-f]+$/i, p6 = /^0b[01]+$/i, xr = /^\[object .+?Constructor\]$/, y1 = /^0o[0-7]+$/i, d2 = /^(?:0|[1-9]\d*)$/, W2 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, o1 = /($^)/, y3 = /['\n\r\u2028\u2029\\]/g, ne = "\\ud800-\\udfff", V3 = "\\u0300-\\u036f", Ve = "\\ufe20-\\ufe2f", b4 = "\\u20d0-\\u20ff", R4 = V3 + Ve + b4, ot = "\\u2700-\\u27bf", re = "a-z\\xdf-\\xf6\\xf8-\\xff", _5 = "\\xac\\xb1\\xd7\\xf7", Tt = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Yf = "\\u2000-\\u206f", I4 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", is = "A-Z\\xc0-\\xd6\\xd8-\\xde", os = "\\ufe0e\\ufe0f", ss = _5 + Tt + Yf + I4, Pr = "['’]", _r = "[" + ne + "]", ls = "[" + ss + "]", g6 = "[" + R4 + "]", m7 = "\\d+", Kf = "[" + ot + "]", qn = "[" + re + "]", $r = "[^" + ne + ss + m7 + ot + re + is + "]", v6 = "\\ud83c[\\udffb-\\udfff]", Sr = "(?:" + g6 + "|" + v6 + ")", Gn = "[^" + ne + "]", H9 = "(?:\\ud83c[\\udde6-\\uddff]){2}", V9 = "[\\ud800-\\udbff][\\udc00-\\udfff]", p7 = "[" + is + "]", y6 = "\\u200d", Fr = "(?:" + qn + "|" + $r + ")", us = "(?:" + p7 + "|" + $r + ")", Hr = "(?:" + Pr + "(?:d|ll|m|re|s|t|ve))?", $5 = "(?:" + Pr + "(?:D|LL|M|RE|S|T|VE))?", cs = Sr + "?", ds = "[" + os + "]?", Qf = "(?:" + y6 + "(?:" + [Gn, H9, V9].join("|") + ")" + ds + cs + ")*", Jf = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Vr = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", g7 = ds + cs + Qf, fs = "(?:" + [Kf, H9, V9].join("|") + ")" + g7, Cs = "(?:" + [Gn + g6 + "?", g6, H9, V9, _r].join("|") + ")", eC = RegExp(Pr, "g"), kr = RegExp(g6, "g"), Ar = RegExp(v6 + "(?=" + v6 + ")|" + Cs + g7, "g"), tC = RegExp([
106350
106350
  p7 + "?" + qn + "+" + Hr + "(?=" + [ls, p7, "$"].join("|") + ")",
106351
106351
  us + "+" + $5 + "(?=" + [ls, p7 + Fr, "$"].join("|") + ")",
106352
106352
  p7 + "?" + Fr + "+" + Hr,
@@ -106387,9 +106387,9 @@ function Az1() {
106387
106387
  "parseInt",
106388
106388
  "setTimeout"
106389
106389
  ], iC = -1, T3 = {};
106390
- T3[I2] = T3[h1] = T3[_1] = T3[x1] = T3[$1] = T3[S2] = T3[O2] = T3[M2] = T3[R2] = !0, T3[u2] = T3[h2] = T3[w2] = T3[i2] = T3[N2] = T3[r2] = T3[v2] = T3[J] = T3[l2] = T3[b2] = T3[k2] = T3[_2] = T3[z2] = T3[l1] = T3[D2] = !1;
106390
+ T3[R2] = T3[h1] = T3[_1] = T3[x1] = T3[$1] = T3[S2] = T3[O2] = T3[M2] = T3[I2] = !0, T3[u2] = T3[h2] = T3[w2] = T3[i2] = T3[N2] = T3[r2] = T3[v2] = T3[J] = T3[l2] = T3[b2] = T3[k2] = T3[_2] = T3[z2] = T3[l1] = T3[D2] = !1;
106391
106391
  var O3 = {};
106392
- O3[u2] = O3[h2] = O3[w2] = O3[N2] = O3[i2] = O3[r2] = O3[I2] = O3[h1] = O3[_1] = O3[x1] = O3[$1] = O3[l2] = O3[b2] = O3[k2] = O3[_2] = O3[z2] = O3[l1] = O3[e1] = O3[S2] = O3[O2] = O3[M2] = O3[R2] = !0, O3[v2] = O3[J] = O3[D2] = !1;
106392
+ O3[u2] = O3[h2] = O3[w2] = O3[N2] = O3[i2] = O3[r2] = O3[R2] = O3[h1] = O3[_1] = O3[x1] = O3[$1] = O3[l2] = O3[b2] = O3[k2] = O3[_2] = O3[z2] = O3[l1] = O3[e1] = O3[S2] = O3[O2] = O3[M2] = O3[I2] = !0, O3[v2] = O3[J] = O3[D2] = !1;
106393
106393
  var oC = {
106394
106394
  // Latin-1 Supplement block.
106395
106395
  À: "A",
@@ -108372,7 +108372,7 @@ function Az1() {
108372
108372
  return new V(+C);
108373
108373
  case N2:
108374
108374
  return V72(C, x);
108375
- case I2:
108375
+ case R2:
108376
108376
  case h1:
108377
108377
  case _1:
108378
108378
  case x1:
@@ -108380,7 +108380,7 @@ function Az1() {
108380
108380
  case S2:
108381
108381
  case O2:
108382
108382
  case M2:
108383
- case R2:
108383
+ case I2:
108384
108384
  return $F(C, x);
108385
108385
  case l2:
108386
108386
  return new V();
@@ -112703,7 +112703,7 @@ const Uq1 = e3({
112703
112703
  xl: D2,
112704
112704
  ...f2
112705
112705
  }, w2) => {
112706
- const N2 = k && k !== "none" || O && O !== "none" || z && z !== "none" || N && N !== "none", I2 = n2 && n2 !== "none" || N2, h1 = { sm: l1, md: e1, lg: s1, xl: D2 }, _1 = Xq1.map((x1) => {
112706
+ const N2 = k && k !== "none" || O && O !== "none" || z && z !== "none" || N && N !== "none", R2 = n2 && n2 !== "none" || N2, h1 = { sm: l1, md: e1, lg: s1, xl: D2 }, _1 = Xq1.map((x1) => {
112707
112707
  const $1 = h1[x1];
112708
112708
  return $1 ? Gq1(x1, $1) : "";
112709
112709
  }).filter(Boolean).join(" ");
@@ -112774,7 +112774,7 @@ const Uq1 = e3({
112774
112774
  boxShadow: b2
112775
112775
  }),
112776
112776
  _1,
112777
- I2 && !Q && "border-f1-border",
112777
+ R2 && !Q && "border-f1-border",
112778
112778
  F2 && !l2 && "divide-f1-border",
112779
112779
  "scrollbar-macos"
112780
112780
  ),
@@ -118647,7 +118647,7 @@ const AK1 = ({ text: e }) => /* @__PURE__ */ i(
118647
118647
  return;
118648
118648
  J2(O2), v2.onChange?.(O2);
118649
118649
  }, z2 = () => {
118650
- E || _2($), v2.onClear?.(), F2 && I2.current?.focus();
118650
+ E || _2($), v2.onClear?.(), F2 && R2.current?.focus();
118651
118651
  }, l1 = (S2) => {
118652
118652
  t || U?.(S2);
118653
118653
  }, e1 = () => {
@@ -118656,9 +118656,9 @@ const AK1 = ({ text: e }) => /* @__PURE__ */ i(
118656
118656
  t || j?.();
118657
118657
  }, [D2, f2] = y2(!1), w2 = (S2) => {
118658
118658
  S2.animationName === "autofill" && f2(!0);
118659
- }, N2 = p2(null), I2 = p2(null), h1 = ue(v2.inputRef, I2);
118659
+ }, N2 = p2(null), R2 = p2(null), h1 = ue(v2.inputRef, R2);
118660
118660
  $2(() => (D2 && !N2.current && (N2.current = setInterval(() => {
118661
- const S2 = I2.current;
118661
+ const S2 = R2.current;
118662
118662
  S2 && (S2.matches(":-webkit-autofill") || S2.matches(":autofill") || (f2(!1), N2.current && (clearInterval(N2.current), N2.current = null)));
118663
118663
  }, 100)), () => {
118664
118664
  N2.current && (clearInterval(N2.current), N2.current = null);
@@ -119866,30 +119866,31 @@ function J$(e, {
119866
119866
  const _2 = g?.field, z2 = y?.groupBy;
119867
119867
  if (!!_2 && !!z2 && !!z2[_2]) {
119868
119868
  const s1 = JK1(H, _2, F2), D2 = s1.filter(
119869
- (I2) => I2[ti] === void 0
119869
+ (R2) => R2[ti] === void 0
119870
119870
  ), f2 = QK1(
119871
- s1.filter((I2) => I2[ti] !== void 0),
119871
+ s1.filter((R2) => R2[ti] !== void 0),
119872
119872
  ti
119873
- ), w2 = z2[_2], N2 = (g?.thenBy ?? []).map((I2) => String(I2.field)).filter((I2) => !!z2[I2]);
119873
+ ), w2 = z2[_2], N2 = (g?.thenBy ?? []).map((R2) => String(R2.field)).filter((R2) => !!z2[R2]);
119874
119874
  return {
119875
119875
  type: "grouped",
119876
119876
  records: s1,
119877
119877
  ...D2.length && { ungroupedRecords: D2 },
119878
119878
  groups: Array.from(f2.entries()).map(
119879
- ([I2, h1]) => ({
119880
- key: I2,
119881
- label: w2.label(I2, i2),
119879
+ ([R2, h1]) => ({
119880
+ key: R2,
119881
+ label: w2.label(R2, i2),
119882
119882
  itemCount: w2.itemCount?.(
119883
- I2,
119883
+ R2,
119884
119884
  i2
119885
119885
  ),
119886
+ actions: w2.actions?.(R2, i2),
119886
119887
  records: h1,
119887
119888
  ...(() => {
119888
119889
  if (!N2.length)
119889
119890
  return {};
119890
119891
  const _1 = qe2({
119891
119892
  records: h1,
119892
- parentKey: I2,
119893
+ parentKey: R2,
119893
119894
  fields: N2,
119894
119895
  groupByConfig: z2,
119895
119896
  filters: i2
@@ -119986,12 +119987,12 @@ function J$(e, {
119986
119987
  sortings: f2,
119987
119988
  currentPage: z2,
119988
119989
  cursor: s1
119989
- }), I2 = D2();
119990
- if (!("then" in I2 || "subscribe" in I2)) {
119991
- J(I2, e1, void 0, N2);
119990
+ }), R2 = D2();
119991
+ if (!("then" in R2 || "subscribe" in R2)) {
119992
+ J(R2, e1, void 0, N2);
119992
119993
  return;
119993
119994
  }
119994
- const _1 = ("subscribe" in I2 ? I2 : GK1(I2)).subscribe({
119995
+ const _1 = ("subscribe" in R2 ? R2 : GK1(R2)).subscribe({
119995
119996
  next: (x1) => {
119996
119997
  x1.data ? J(x1.data, e1, x1.loading, N2) : x1.loading ? v(!0) : x1.error && b2(x1.error);
119997
119998
  },
@@ -120221,8 +120222,8 @@ function cQ1({
120221
120222
  h
120222
120223
  ]), u2 = Z2(() => t ? "type" in t && t.type === "pages" ? t.currentPage : "cursor" in t ? t.cursor : null : null, [t]), [h2, a2] = Z2(() => {
120223
120224
  const S2 = /* @__PURE__ */ new Map(), O2 = /* @__PURE__ */ new Map();
120224
- for (const [M2, R2] of w.items?.entries() || [])
120225
- R2.checked ? S2.set(M2, R2.item) : O2.set(M2, R2.item);
120225
+ for (const [M2, I2] of w.items?.entries() || [])
120226
+ I2.checked ? S2.set(M2, I2.item) : O2.set(M2, I2.item);
120226
120227
  return [S2, O2];
120227
120228
  }, [w.items]), i2 = h2.size, r2 = a2.size, c2 = Z2(
120228
120229
  () => i2 === o2 && o2 > 0,
@@ -120244,14 +120245,14 @@ function cQ1({
120244
120245
  const S2 = {};
120245
120246
  for (const O2 of e.groups) {
120246
120247
  const M2 = O2.records.map((g1) => g?.(g1)).filter((g1) => g1 !== void 0);
120247
- let R2 = 0, S1 = 0;
120248
+ let I2 = 0, S1 = 0;
120248
120249
  for (const g1 of M2)
120249
- w.items?.get(g1)?.checked ? R2++ : S1++;
120250
- const B2 = M2.length, X2 = R2 === B2 && B2 > 0, r1 = R2 > 0 && R2 < B2;
120250
+ w.items?.get(g1)?.checked ? I2++ : S1++;
120251
+ const B2 = M2.length, X2 = I2 === B2 && B2 > 0, r1 = I2 > 0 && I2 < B2;
120251
120252
  S2[O2.key] = {
120252
120253
  checked: X2 || r1,
120253
120254
  indeterminate: r1,
120254
- selectedCount: R2,
120255
+ selectedCount: I2,
120255
120256
  unselectedCount: S1
120256
120257
  };
120257
120258
  }
@@ -120278,8 +120279,8 @@ function cQ1({
120278
120279
  ]), { itemsStatus: k2, selectedIds: U2 } = Z2(() => {
120279
120280
  const S2 = w.items || /* @__PURE__ */ new Map(), O2 = n.fetchChildren !== void 0, M2 = M && !O2 ? new Set(
120280
120281
  e.records.map((B2) => g?.(B2)).filter((B2) => B2 !== void 0)
120281
- ) : null, R2 = Array.from(S2.values()).filter((B2) => B2.item === void 0 ? !1 : M && M2 ? M2.has(B2.id) : !0).map(({ item: B2, checked: X2 }) => ({ item: B2, checked: X2 })), S1 = Array.from(S2.entries()).filter(([B2, X2]) => X2.checked ? M && M2 ? M2.has(B2) : !0 : !1).map(([B2]) => B2);
120282
- return { itemsStatus: R2, selectedIds: S1 };
120282
+ ) : null, I2 = Array.from(S2.values()).filter((B2) => B2.item === void 0 ? !1 : M && M2 ? M2.has(B2.id) : !0).map(({ item: B2, checked: X2 }) => ({ item: B2, checked: X2 })), S1 = Array.from(S2.entries()).filter(([B2, X2]) => X2.checked ? M && M2 ? M2.has(B2) : !0 : !1).map(([B2]) => B2);
120283
+ return { itemsStatus: I2, selectedIds: S1 };
120283
120284
  }, [
120284
120285
  w.items,
120285
120286
  M,
@@ -120329,7 +120330,7 @@ function cQ1({
120329
120330
  (S2) => {
120330
120331
  if (!S2)
120331
120332
  return "";
120332
- const O2 = Array.from(S2.items?.entries() || []).map(([R2, S1]) => `${R2}:${S1.checked}`).sort().join(","), M2 = Array.from(S2.groups?.entries() || []).map(([R2, S1]) => `${R2}:${S1.checked}`).sort().join(",");
120333
+ const O2 = Array.from(S2.items?.entries() || []).map(([I2, S1]) => `${I2}:${S1.checked}`).sort().join(","), M2 = Array.from(S2.groups?.entries() || []).map(([I2, S1]) => `${I2}:${S1.checked}`).sort().join(",");
120333
120334
  return `${S2.allSelected}|${O2}|${M2}`;
120334
120335
  },
120335
120336
  []
@@ -120337,23 +120338,23 @@ function cQ1({
120337
120338
  (S2) => {
120338
120339
  const O2 = Ij(S2);
120339
120340
  $((M2) => {
120340
- const R2 = /* @__PURE__ */ new Map(), S1 = new Set(O2.items?.keys() || []);
120341
+ const I2 = /* @__PURE__ */ new Map(), S1 = new Set(O2.items?.keys() || []);
120341
120342
  for (const [X2, r1] of M2.items?.entries() || [])
120342
- !v && !S1.has(X2) && r1.checked ? R2.set(X2, { ...r1, checked: !1 }) : R2.set(X2, r1);
120343
+ !v && !S1.has(X2) && r1.checked ? I2.set(X2, { ...r1, checked: !1 }) : I2.set(X2, r1);
120343
120344
  for (const [
120344
120345
  X2,
120345
120346
  r1
120346
120347
  ] of O2.items?.entries() || []) {
120347
- const g1 = R2.get(X2), v1 = l1(X2);
120348
+ const g1 = I2.get(X2), v1 = l1(X2);
120348
120349
  if (!g1)
120349
- R2.set(X2, {
120350
+ I2.set(X2, {
120350
120351
  id: X2,
120351
120352
  checked: r1.checked,
120352
120353
  item: v1
120353
120354
  });
120354
120355
  else {
120355
120356
  const a3 = g1.checked !== r1.checked && (!v || r1.checked), m1 = g1.item === void 0 && v1 !== void 0;
120356
- (m1 || a3) && R2.set(X2, {
120357
+ (m1 || a3) && I2.set(X2, {
120357
120358
  ...g1,
120358
120359
  ...m1 ? { item: v1 } : {},
120359
120360
  ...a3 ? { checked: r1.checked } : {}
@@ -120362,7 +120363,7 @@ function cQ1({
120362
120363
  }
120363
120364
  for (const X2 of e.records) {
120364
120365
  const r1 = g?.(X2);
120365
- r1 && !R2.has(r1) && R2.set(r1, {
120366
+ r1 && !I2.has(r1) && I2.set(r1, {
120366
120367
  id: r1,
120367
120368
  checked: S,
120368
120369
  item: X2
@@ -120379,7 +120380,7 @@ function cQ1({
120379
120380
  });
120380
120381
  return {
120381
120382
  allSelected: M2.allSelected,
120382
- items: R2,
120383
+ items: I2,
120383
120384
  groups: B2
120384
120385
  };
120385
120386
  });
@@ -120392,11 +120393,11 @@ function cQ1({
120392
120393
  v
120393
120394
  ]
120394
120395
  ), f2 = x2(
120395
- (S2, O2, M2 = !1, R2) => {
120396
+ (S2, O2, M2 = !1, I2) => {
120396
120397
  const S1 = (Array.isArray(S2) ? S2 : [S2]).slice(
120397
120398
  0,
120398
120399
  v ? void 0 : 1
120399
- ), B2 = Array.isArray(R2) ? R2 : R2 !== void 0 ? [R2] : [];
120400
+ ), B2 = Array.isArray(I2) ? I2 : I2 !== void 0 ? [I2] : [];
120400
120401
  $((X2) => {
120401
120402
  const r1 = !v && O2 ? /* @__PURE__ */ new Map() : new Map(X2.items);
120402
120403
  let g1 = 0;
@@ -120424,15 +120425,15 @@ function cQ1({
120424
120425
  (S2, O2) => {
120425
120426
  if (!m || e.type !== "grouped")
120426
120427
  return;
120427
- const M2 = lQ1(S2) ? [S2.key] : Array.isArray(S2) ? [...S2] : [S2], R2 = e.groups.filter((B2) => M2.includes(B2.key));
120428
- if (R2.length === 0)
120428
+ const M2 = lQ1(S2) ? [S2.key] : Array.isArray(S2) ? [...S2] : [S2], I2 = e.groups.filter((B2) => M2.includes(B2.key));
120429
+ if (I2.length === 0)
120429
120430
  return;
120430
- const S1 = R2.flatMap(
120431
+ const S1 = I2.flatMap(
120431
120432
  (B2) => B2.records.map((X2) => g?.(X2)).filter((X2) => X2 !== void 0)
120432
120433
  );
120433
120434
  S1.length > 0 && f2(S1, O2), P((B2) => {
120434
120435
  const X2 = new Map(B2);
120435
- for (const r1 of R2)
120436
+ for (const r1 of I2)
120436
120437
  X2.set(r1.key, { group: r1, checked: O2 });
120437
120438
  return X2;
120438
120439
  });
@@ -120441,15 +120442,15 @@ function cQ1({
120441
120442
  ), N2 = x2(() => {
120442
120443
  const S2 = ([, M2]) => y(M2) === !0, O2 = f?.() ?? [];
120443
120444
  return O2.length > 0 ? O2.filter((M2) => !S2(M2)) : e.records.map((M2) => {
120444
- const R2 = g?.(M2);
120445
- return R2 === void 0 ? void 0 : [R2, M2];
120445
+ const I2 = g?.(M2);
120446
+ return I2 === void 0 ? void 0 : [I2, M2];
120446
120447
  }).filter((M2) => M2 !== void 0).filter((M2) => !S2(M2));
120447
120448
  }, [
120448
120449
  f,
120449
120450
  e.records,
120450
120451
  g,
120451
120452
  y
120452
- ]), I2 = x2(
120453
+ ]), R2 = x2(
120453
120454
  (S2, O2) => {
120454
120455
  if (uQ1(S2, g !== void 0)) {
120455
120456
  if (y(S2))
@@ -120474,13 +120475,13 @@ function cQ1({
120474
120475
  return;
120475
120476
  }
120476
120477
  const O2 = m && e.type === "grouped" ? [] : N2(), M2 = O2.length || e.records?.length || 0;
120477
- if (S2 && T((R2) => R2 !== null ? R2 : M2), m && e.type === "grouped") {
120478
- const R2 = e.groups.map((S1) => S1.key);
120479
- R2.length > 0 && w2(R2, S2);
120478
+ if (S2 && T((I2) => I2 !== null ? I2 : M2), m && e.type === "grouped") {
120479
+ const I2 = e.groups.map((S1) => S1.key);
120480
+ I2.length > 0 && w2(I2, S2);
120480
120481
  } else {
120481
- const R2 = O2.map(([B2]) => B2), S1 = O2.map(([, B2]) => B2);
120482
- R2.length > 0 && f2(
120483
- R2,
120482
+ const I2 = O2.map(([B2]) => B2), S1 = O2.map(([, B2]) => B2);
120483
+ I2.length > 0 && f2(
120484
+ I2,
120484
120485
  S2,
120485
120486
  !1,
120486
120487
  S1
@@ -120506,9 +120507,9 @@ function cQ1({
120506
120507
  } else if (S2) {
120507
120508
  const O2 = N2();
120508
120509
  $((M2) => {
120509
- const R2 = /* @__PURE__ */ new Map();
120510
+ const I2 = /* @__PURE__ */ new Map();
120510
120511
  for (const [S1, B2] of O2)
120511
- R2.set(S1, {
120512
+ I2.set(S1, {
120512
120513
  id: S1,
120513
120514
  checked: !0,
120514
120515
  item: B2
@@ -120516,20 +120517,20 @@ function cQ1({
120516
120517
  return {
120517
120518
  ...M2,
120518
120519
  allSelected: !0,
120519
- items: R2
120520
+ items: I2
120520
120521
  };
120521
120522
  });
120522
120523
  } else {
120523
120524
  const O2 = N2().map(([M2]) => M2);
120524
120525
  O2.length > 0 && f2(O2, !1), $((M2) => {
120525
- const R2 = new Map(M2.items);
120526
+ const I2 = new Map(M2.items);
120526
120527
  let S1 = !1;
120527
- for (const [B2, X2] of R2.entries())
120528
- X2.checked !== !1 && (R2.set(B2, { ...X2, checked: !1 }), S1 = !0);
120528
+ for (const [B2, X2] of I2.entries())
120529
+ X2.checked !== !1 && (I2.set(B2, { ...X2, checked: !1 }), S1 = !0);
120529
120530
  return S1 ? {
120530
120531
  ...M2,
120531
120532
  allSelected: !1,
120532
- items: R2
120533
+ items: I2
120533
120534
  } : M2;
120534
120535
  });
120535
120536
  }
@@ -120605,8 +120606,8 @@ function cQ1({
120605
120606
  const M2 = g?.(O2);
120606
120607
  if (M2 === void 0)
120607
120608
  continue;
120608
- const R2 = O2[ti];
120609
- R2 && L.get(R2)?.checked && f2(M2, !0, !0);
120609
+ const I2 = O2[ti];
120610
+ I2 && L.get(I2)?.checked && f2(M2, !0, !0);
120610
120611
  }
120611
120612
  },
120612
120613
  [g, L, f2]
@@ -120615,7 +120616,7 @@ function cQ1({
120615
120616
  const S2 = e1();
120616
120617
  if (S2.length === 0)
120617
120618
  return;
120618
- const O2 = S2.map((R2) => g?.(R2)).filter((R2) => R2 !== void 0), M2 = O2.join(",");
120619
+ const O2 = S2.map((I2) => g?.(I2)).filter((I2) => I2 !== void 0), M2 = O2.join(",");
120619
120620
  if (M2 !== n2.current) {
120620
120621
  if (n2.current = M2, z.current) {
120621
120622
  z.current = !1;
@@ -120625,9 +120626,9 @@ function cQ1({
120625
120626
  O2,
120626
120627
  O.current,
120627
120628
  !0
120628
- ), $((R2) => {
120629
+ ), $((I2) => {
120629
120630
  let S1 = !1;
120630
- const B2 = new Map(R2.items);
120631
+ const B2 = new Map(I2.items);
120631
120632
  for (const [X2, r1] of B2.entries())
120632
120633
  if (r1.item === void 0) {
120633
120634
  const g1 = S2.find((v1) => {
@@ -120640,9 +120641,9 @@ function cQ1({
120640
120641
  }), S1 = !0);
120641
120642
  }
120642
120643
  return S1 ? {
120643
- ...R2,
120644
+ ...I2,
120644
120645
  items: B2
120645
- } : R2;
120646
+ } : I2;
120646
120647
  });
120647
120648
  }
120648
120649
  }, [
@@ -120691,7 +120692,7 @@ function cQ1({
120691
120692
  selectedGroups: l2,
120692
120693
  allSelectedStatus: z2,
120693
120694
  clearSelection: x1,
120694
- handleSelectItemChange: I2,
120695
+ handleSelectItemChange: R2,
120695
120696
  handleSelectAll: h1,
120696
120697
  handleSelectAllItems: _1,
120697
120698
  handleSelectGroupChange: w2,
@@ -124384,8 +124385,8 @@ const aM = Z(function({
124384
124385
  const D2 = e1.nativeEvent.data;
124385
124386
  if (!D2)
124386
124387
  return;
124387
- const f2 = e1.currentTarget, w2 = f2.selectionStart ?? 0, N2 = f2.selectionEnd ?? 0, I2 = f2.value.slice(0, w2) + D2 + f2.value.slice(N2);
124388
- (!iu(I2, { maxDecimals: a }) || a === 0 && /[.,]/.test(D2)) && e1.preventDefault();
124388
+ const f2 = e1.currentTarget, w2 = f2.selectionStart ?? 0, N2 = f2.selectionEnd ?? 0, R2 = f2.value.slice(0, w2) + D2 + f2.value.slice(N2);
124389
+ (!iu(R2, { maxDecimals: a }) || a === 0 && /[.,]/.test(D2)) && e1.preventDefault();
124389
124390
  },
124390
124391
  [a]
124391
124392
  ), J2 = (e1) => {
@@ -124468,7 +124469,7 @@ const aM = Z(function({
124468
124469
  align: D2 = "start",
124469
124470
  triggerLabel: f2,
124470
124471
  apply: w2
124471
- } = m, N2 = i2, I2 = w2?.label ?? q.actions.apply, h1 = w2?.icon ?? Fd, _1 = w2?.closeOnApply ?? !0, x1 = () => {
124472
+ } = m, N2 = i2, R2 = w2?.label ?? q.actions.apply, h1 = w2?.icon ?? Fd, _1 = w2?.closeOnApply ?? !0, x1 = () => {
124472
124473
  c?.(N), _1 && l2(!1);
124473
124474
  };
124474
124475
  return /* @__PURE__ */ _(Kd, { open: X, onOpenChange: l2, children: [
@@ -124509,7 +124510,7 @@ const aM = Z(function({
124509
124510
  {
124510
124511
  variant: "default",
124511
124512
  icon: h1,
124512
- label: I2,
124513
+ label: R2,
124513
124514
  onClick: x1
124514
124515
  }
124515
124516
  ) : void 0,
@@ -126459,10 +126460,10 @@ const L23 = Z(function({
126459
126460
  // Convert to strings for consistent handling
126460
126461
  () => w2.map((L2) => String(L2.value)),
126461
126462
  [w2]
126462
- ), [I2, h1] = y2(() => (W5(l) ?? N2 ?? []).map(String)), _1 = t === "inline" && typeof l == "string" ? String(l) : void 0;
126463
+ ), [R2, h1] = y2(() => (W5(l) ?? N2 ?? []).map(String)), _1 = t === "inline" && typeof l == "string" ? String(l) : void 0;
126463
126464
  $2(() => {
126464
126465
  const L2 = (W5(l) ?? []).map(String);
126465
- if (!z12.isEqual(L2, I2 ?? [])) {
126466
+ if (!z12.isEqual(L2, R2 ?? [])) {
126466
126467
  const K2 = W5(l) ?? N2 ?? [];
126467
126468
  h1(Array.from(new Set(K2.map(String))));
126468
126469
  }
@@ -126517,7 +126518,7 @@ const L23 = Z(function({
126517
126518
  },
126518
126519
  [c, H]
126519
126520
  ), {
126520
- data: R2,
126521
+ data: I2,
126521
126522
  isInitialLoading: S1,
126522
126523
  loadMore: B2,
126523
126524
  isLoadingMore: X2,
@@ -126525,7 +126526,7 @@ const L23 = Z(function({
126525
126526
  paginationInfo: g1
126526
126527
  } = J$(O2), { currentSearch: v1, setCurrentSearch: a3 } = O2, m1 = S2 && $1 && !O2.filters, G1 = S2 && !m1, a1 = p2(/* @__PURE__ */ new Map()), U1 = Z2(() => {
126527
126528
  const L2 = [];
126528
- for (const K2 of R2.records) {
126529
+ for (const K2 of I2.records) {
126529
126530
  const b1 = M2(K2);
126530
126531
  b1.type !== "separator" && L2.push([
126531
126532
  String(b1.value),
@@ -126533,7 +126534,7 @@ const L23 = Z(function({
126533
126534
  ]);
126534
126535
  }
126535
126536
  return Object.fromEntries(L2);
126536
- }, [R2, M2]), de = Z2(() => {
126537
+ }, [I2, M2]), de = Z2(() => {
126537
126538
  const L2 = W5(l) ?? N2 ?? [];
126538
126539
  if (L2.length === 0)
126539
126540
  return;
@@ -126558,7 +126559,7 @@ const L23 = Z(function({
126558
126559
  clearSelection: At,
126559
126560
  selectionMeta: l4
126560
126561
  } = cQ1({
126561
- data: R2,
126562
+ data: I2,
126562
126563
  paginationInfo: g1,
126563
126564
  source: O2,
126564
126565
  selectionMode: n2 ? "multi" : "single",
@@ -126594,7 +126595,7 @@ const L23 = Z(function({
126594
126595
  }
126595
126596
  ), y4 = Z2(() => {
126596
126597
  const L2 = [];
126597
- for (const K2 of I2) {
126598
+ for (const K2 of R2) {
126598
126599
  const b1 = String(K2), c3 = U1[b1];
126599
126600
  if (c3) {
126600
126601
  a1.current.set(b1, c3.option), L2.push(c3.option);
@@ -126614,9 +126615,9 @@ const L23 = Z(function({
126614
126615
  ...K2,
126615
126616
  selectedLabel: h2({ option: K2, item: K2.item })
126616
126617
  })) : L2;
126617
- }, [I2, U1, w2, h2]), D4 = Z2(() => R2.records.some(
126618
+ }, [R2, U1, w2, h2]), D4 = Z2(() => I2.records.some(
126618
126619
  (K2) => nb(M2(K2)) === "status"
126619
- ) || y4.some((K2) => nb(K2) === "status"), [R2.records, M2, y4]) ? "md" : v2, zn = u2 ?? t === "inline", m6 = (L2) => {
126620
+ ) || y4.some((K2) => nb(K2) === "status"), [I2.records, M2, y4]) ? "md" : v2, zn = u2 ?? t === "inline", m6 = (L2) => {
126620
126621
  a3(L2), y?.(L2);
126621
126622
  }, Et = p2(null), p6 = x2(() => {
126622
126623
  Et.current !== null && (clearTimeout(Et.current), Et.current = null);
@@ -126634,7 +126635,7 @@ const L23 = Z(function({
126634
126635
  null
126635
126636
  ), ne = p2(null), V3 = x2(
126636
126637
  (L2, K2) => {
126637
- if (!n2 && !D && !K2 && I2[0] === L2)
126638
+ if (!n2 && !D && !K2 && R2[0] === L2)
126638
126639
  return;
126639
126640
  W2.current = !0, He(L2, K2);
126640
126641
  const b1 = U1[String(L2)];
@@ -126647,7 +126648,7 @@ const L23 = Z(function({
126647
126648
  He,
126648
126649
  n2,
126649
126650
  D,
126650
- I2
126651
+ R2
126651
126652
  ]
126652
126653
  ), Ve = p2(!1), b4 = x2(
126653
126654
  (L2) => {
@@ -126785,7 +126786,7 @@ const L23 = Z(function({
126785
126786
  o2
126786
126787
  ]);
126787
126788
  const m7 = O2.grouping?.collapsible ?? !1, Kf = O2.grouping?.defaultOpenGroups, { openGroups: qn, setGroupOpen: $r } = oQ1(
126788
- R2?.type === "grouped" ? R2.groups : [],
126789
+ I2?.type === "grouped" ? I2.groups : [],
126789
126790
  Kf
126790
126791
  ), v6 = x2(
126791
126792
  (L2, K2) => L2.map((b1, c3) => {
@@ -126880,18 +126881,18 @@ const L23 = Z(function({
126880
126881
  [Gn, m7, qn, $r]
126881
126882
  ), V9 = Z2(() => {
126882
126883
  const L2 = /* @__PURE__ */ new Set();
126883
- return R2.type === "grouped" ? [
126884
- ...v6(R2.ungroupedRecords ?? [], L2).map((K2) => ({
126884
+ return I2.type === "grouped" ? [
126885
+ ...v6(I2.ungroupedRecords ?? [], L2).map((K2) => ({
126885
126886
  ...K2,
126886
126887
  key: `ungrouped:${K2.key}`
126887
126888
  })),
126888
- ...H9(R2.groups, 0, L2)
126889
- ] : v6(R2.records, L2);
126889
+ ...H9(I2.groups, 0, L2)
126890
+ ] : v6(I2.records, L2);
126890
126891
  }, [
126891
- R2.records,
126892
- R2.type,
126893
- R2.groups,
126894
- R2.ungroupedRecords,
126892
+ I2.records,
126893
+ I2.type,
126894
+ I2.groups,
126895
+ I2.ungroupedRecords,
126895
126896
  v6,
126896
126897
  H9
126897
126898
  ]), p7 = () => {
@@ -126925,7 +126926,7 @@ const L23 = Z(function({
126925
126926
  _2(void 0);
126926
126927
  return;
126927
126928
  }
126928
- _2((L2) => L2 && $5.includes(L2) ? L2 : I2.find(
126929
+ _2((L2) => L2 && $5.includes(L2) ? L2 : R2.find(
126929
126930
  (b1) => $5.includes(b1)
126930
126931
  ) ?? $5[0]);
126931
126932
  }
@@ -126943,12 +126944,12 @@ const L23 = Z(function({
126943
126944
  ), ds = x2(() => {
126944
126945
  if (!J2)
126945
126946
  return !1;
126946
- const L2 = I2.includes(J2);
126947
+ const L2 = R2.includes(J2);
126947
126948
  return W2.current = !0, V3(J2, n2 ? !L2 : !0), n2 || I4(!1), !0;
126948
- }, [J2, I2, n2, V3]), Qf = x2(() => {
126949
- const L2 = I2[I2.length - 1];
126949
+ }, [J2, R2, n2, V3]), Qf = x2(() => {
126950
+ const L2 = R2[R2.length - 1];
126950
126951
  return !n2 || !L2 ? !1 : (W2.current = !0, V3(L2, !1), !0);
126951
- }, [I2, n2, V3]), Jf = !n2 && y4[0] ? String(rM(y4[0])) : "", Vr = n2 ? Math.max(I2.length, l4.selectedItemsCount) : I2[0] ? 1 : 0, g7 = Vr > 0, fs = () => {
126952
+ }, [R2, n2, V3]), Jf = !n2 && y4[0] ? String(rM(y4[0])) : "", Vr = n2 ? Math.max(R2.length, l4.selectedItemsCount) : R2[0] ? 1 : 0, g7 = Vr > 0, fs = () => {
126952
126953
  W2.current = !0, At(), a1.current.clear(), s?.(void 0, !1);
126953
126954
  }, {
126954
126955
  draft: Cs,
@@ -127165,7 +127166,7 @@ const L23 = Z(function({
127165
127166
  label: F,
127166
127167
  placeholder: n,
127167
127168
  selection: y4,
127168
- hasValue: !!I2[0]
127169
+ hasValue: !!R2[0]
127169
127170
  }
127170
127171
  ) : /* @__PURE__ */ i(
127171
127172
  oS,
@@ -127191,7 +127192,7 @@ const L23 = Z(function({
127191
127192
  icon: T,
127192
127193
  labelIcon: E,
127193
127194
  hideLabel: m,
127194
- value: m1 ? Cs : n2 ? Vr.toString() : I2[0] ?? void 0,
127195
+ value: m1 ? Cs : n2 ? Vr.toString() : R2[0] ?? void 0,
127195
127196
  isEmpty: (L2) => m1 ? (
127196
127197
  // The placeholder follows the text; `canClear` below
127197
127198
  // answers what can be cleared.
@@ -137938,13 +137939,13 @@ const bt2 = J1(null), qt3 = () => {
137938
137939
  }, [i2, U2]);
137939
137940
  const [_2, z2] = y2(!1), [l1, e1] = y2(!1), [s1, D2] = y2(
137940
137941
  null
137941
- ), [f2, w2] = y2(null), N2 = p2(null), I2 = p2([]), h1 = x2((a1) => {
137942
- N2.current ? N2.current(a1) : I2.current.push(a1);
137942
+ ), [f2, w2] = y2(null), N2 = p2(null), R2 = p2([]), h1 = x2((a1) => {
137943
+ N2.current ? N2.current(a1) : R2.current.push(a1);
137943
137944
  }, []), _1 = x2(
137944
137945
  (a1) => {
137945
- if (N2.current = a1, a1 && I2.current.length > 0) {
137946
- const U1 = I2.current;
137947
- I2.current = [], U1.forEach((de) => a1(de));
137946
+ if (N2.current = a1, a1 && R2.current.length > 0) {
137947
+ const U1 = R2.current;
137948
+ R2.current = [], U1.forEach((de) => a1(de));
137948
137949
  }
137949
137950
  },
137950
137951
  []
@@ -137958,7 +137959,7 @@ const bt2 = J1(null), qt3 = () => {
137958
137959
  }, [U]);
137959
137960
  const M2 = p2(!1);
137960
137961
  M2.current = q.activeContent !== null || q.restoringViewId !== null;
137961
- const R2 = x2(
137962
+ const I2 = x2(
137962
137963
  (a1) => {
137963
137964
  M2.current || (l2(a1), a1.coversChat !== !0 && k2.current === "fullscreen" && Q("sidepanel"), U || K(!0));
137964
137965
  },
@@ -138023,7 +138024,7 @@ const bt2 = J1(null), qt3 = () => {
138023
138024
  fileAttachments: L,
138024
138025
  onTranscribe: P,
138025
138026
  canvasContent: F2,
138026
- openCanvas: R2,
138027
+ openCanvas: I2,
138027
138028
  closeCanvas: S1,
138028
138029
  activeGame: B2,
138029
138030
  openGame: r1,
@@ -138876,7 +138877,7 @@ const x63 = ({ onClose: e }) => {
138876
138877
  L.current = { width: f2.width, height: f2.height };
138877
138878
  const w2 = f2.width / 2;
138878
138879
  f.current = w2, h.current = w2, m.current = w2, v.current = { player: 0, ai: 0 }, O({ player: 0, ai: 0 }), S.current = 0, H.current = f5, N(f5), F.current = 0, T.current = 0;
138879
- const N2 = _2(), I2 = (_1) => {
138880
+ const N2 = _2(), R2 = (_1) => {
138880
138881
  const x1 = D2.getBoundingClientRect(), $1 = H.current;
138881
138882
  f.current = G9(
138882
138883
  _1.clientX - x1.left,
@@ -138884,25 +138885,25 @@ const x63 = ({ onClose: e }) => {
138884
138885
  x1.width - $1 / 2 - It
138885
138886
  );
138886
138887
  };
138887
- D2.addEventListener("pointermove", I2);
138888
+ D2.addEventListener("pointermove", R2);
138888
138889
  const h1 = (_1) => {
138889
138890
  w.current || (w.current = _1);
138890
138891
  const x1 = (_1 - w.current) / 16.667, $1 = Math.min(x1, 3);
138891
138892
  w.current = _1;
138892
- const { width: S2, height: O2 } = L.current, M2 = d.current, R2 = H.current;
138893
+ const { width: S2, height: O2 } = L.current, M2 = d.current, I2 = H.current;
138893
138894
  if (c.current.has("ArrowLeft") && (f.current = G9(
138894
138895
  f.current - xB * $1,
138895
- R2 / 2 + It,
138896
- S2 - R2 / 2 - It
138896
+ I2 / 2 + It,
138897
+ S2 - I2 / 2 - It
138897
138898
  )), c.current.has("ArrowRight") && (f.current = G9(
138898
138899
  f.current + xB * $1,
138899
- R2 / 2 + It,
138900
- S2 - R2 / 2 - It
138900
+ I2 / 2 + It,
138901
+ S2 - I2 / 2 - It
138901
138902
  )), P.current > 0 && (P.current *= 0.85, P.current < 0.5 && (P.current = 0)), g.current === "playing") {
138902
138903
  M.current.push({ x: M2.x, y: M2.y }), M.current.length > SB && (M.current = M.current.slice(-SB)), M2.x += M2.vx * $1, M2.y += M2.vy * $1, E.current += D.current * $1, D.current *= 0.96;
138903
138904
  const S1 = It + A6 / 2, B2 = S2 - It - A6 / 2;
138904
138905
  M2.x <= S1 && (M2.x = S1, M2.vx = Math.abs(M2.vx), D.current *= -0.5), M2.x >= B2 && (M2.x = B2, M2.vx = -Math.abs(M2.vx), D.current *= -0.5);
138905
- const X2 = O2 - x8 - $a, r1 = R2 / 2;
138906
+ const X2 = O2 - x8 - $a, r1 = I2 / 2;
138906
138907
  if (M2.y + jt >= X2 && M2.y - jt <= X2 + $a && M2.vy > 0 && M2.x >= f.current - r1 - jt && M2.x <= f.current + r1 + jt) {
138907
138908
  M2.y = X2 - jt;
138908
138909
  const a1 = G9((M2.x - f.current) / r1, -1, 1);
@@ -138939,7 +138940,7 @@ const x63 = ({ onClose: e }) => {
138939
138940
  U({ x: M2.x, y: M2.y }), X(f.current), n2(h.current), r2([...M.current]), v2(P.current), N(H.current), F2(E.current), $.current = requestAnimationFrame(h1);
138940
138941
  };
138941
138942
  return w.current = 0, $.current = requestAnimationFrame(h1), () => {
138942
- cancelAnimationFrame($.current), D2.removeEventListener("pointermove", I2), N2?.();
138943
+ cancelAnimationFrame($.current), D2.removeEventListener("pointermove", R2), N2?.();
138943
138944
  };
138944
138945
  }, [l, l1, _2]), !l)
138945
138946
  return /* @__PURE__ */ i("div", { ref: r });