@streamoid/agent 0.10.12 → 0.10.13

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.
package/dist/index.js CHANGED
@@ -24180,8 +24180,8 @@ function requireDist$1() {
24180
24180
  fr % 2 == 1 && (Kn *= Math.sqrt(2 * Zn / qn));
24181
24181
  let ur = fr;
24182
24182
  for (; ur >= 2; ) Kn = Kn * Zn / ur, ur -= 2;
24183
- let Lr = Kn, Yr = fr;
24184
- for (; Lr > 1e-10 * Kn; ) Yr += 2, Lr = Lr * Zn / Yr, Kn += Lr;
24183
+ let Lr = Kn, Kr = fr;
24184
+ for (; Lr > 1e-10 * Kn; ) Kr += 2, Lr = Lr * Zn / Kr, Kn += Lr;
24185
24185
  return 1 - Kn;
24186
24186
  })(Cn, un)) / 1e6;
24187
24187
  };
@@ -24492,7 +24492,7 @@ function requireDist$1() {
24492
24492
  const Ze = Math.pow(z, ee);
24493
24493
  return isNaN(Ze) ? F : Ze;
24494
24494
  }
24495
- function or() {
24495
+ function lr() {
24496
24496
  const z = De(arguments).filter(((Ze) => Ze != null));
24497
24497
  if (z.length === 0) return 0;
24498
24498
  const ee = nt(z);
@@ -24543,7 +24543,7 @@ function requireDist$1() {
24543
24543
  return arguments.length !== 2 ? Z : dr(z, ee);
24544
24544
  } });
24545
24545
  const ir = new Date(Date.UTC(1900, 0, 1)), cr = [void 0, 0, 1, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, 1, 2, 3, 4, 5, 6, 0], si = [[], [1, 2, 3, 4, 5, 6, 7], [7, 1, 2, 3, 4, 5, 6], [6, 0, 1, 2, 3, 4, 5], [], [], [], [], [], [], [], [7, 1, 2, 3, 4, 5, 6], [6, 7, 1, 2, 3, 4, 5], [5, 6, 7, 1, 2, 3, 4], [4, 5, 6, 7, 1, 2, 3], [3, 4, 5, 6, 7, 1, 2], [2, 3, 4, 5, 6, 7, 1], [1, 2, 3, 4, 5, 6, 7]], Ka = [[], [6, 0], [0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [5, 6], void 0, void 0, void 0, [0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6]];
24546
- function lr(z, ee, Fe) {
24546
+ function sr(z, ee, Fe) {
24547
24547
  Fe = Fe.toUpperCase(), z = Tt(z), ee = Tt(ee);
24548
24548
  const Ze = z.getFullYear(), mt = z.getMonth(), $t = z.getDate(), Ut = ee.getFullYear(), un = ee.getMonth(), Cn = ee.getDate();
24549
24549
  let qn;
@@ -24619,8 +24619,8 @@ function requireDist$1() {
24619
24619
  return Ze === 31 && Ut === 31 ? (Ze = 30, Ut = 30) : Ze === 31 ? Ze = 30 : Ze === 30 && Ut === 31 && (Ut = 30), (Ut + 30 * un + 360 * Cn - (Ze + 30 * mt + 360 * $t)) / 360;
24620
24620
  case 1: {
24621
24621
  const qn = (ur, Lr) => {
24622
- const Yr = ur.getFullYear(), ea = new Date(Yr, 2, 1);
24623
- if (Ba(Yr) && ur < ea && Lr >= ea) return !0;
24622
+ const Kr = ur.getFullYear(), Qr = new Date(Kr, 2, 1);
24623
+ if (Ba(Kr) && ur < Qr && Lr >= Qr) return !0;
24624
24624
  const sa = Lr.getFullYear(), ds = new Date(sa, 2, 1);
24625
24625
  return Ba(sa) && Lr >= ds && ur < ds;
24626
24626
  };
@@ -24682,8 +24682,8 @@ function requireDist$1() {
24682
24682
  const Kn = (/* @__PURE__ */ new Date()).getTimezoneOffset() > 0 ? Zn.getUTCDay() : Zn.getDay();
24683
24683
  let ur = mt ? $t.includes(Kn) : Kn === Fe[0] || Kn === Fe[1];
24684
24684
  for (let Lr = 0; Lr < Ze.length; Lr++) {
24685
- const Yr = Ze[Lr];
24686
- if (Yr.getDate() === Zn.getDate() && Yr.getMonth() === Zn.getMonth() && Yr.getFullYear() === Zn.getFullYear()) {
24685
+ const Kr = Ze[Lr];
24686
+ if (Kr.getDate() === Zn.getDate() && Kr.getMonth() === Zn.getMonth() && Kr.getFullYear() === Zn.getFullYear()) {
24687
24687
  ur = !0;
24688
24688
  break;
24689
24689
  }
@@ -24758,10 +24758,10 @@ function requireDist$1() {
24758
24758
  return isNaN(z) ? R : v.erfc(z);
24759
24759
  }
24760
24760
  function cd(z) {
24761
- const ee = Dr(z), Fe = Xr(z);
24761
+ const ee = Dr(z), Fe = Yr(z);
24762
24762
  return Qe(ee, Fe) ? R : Math.sqrt(Math.pow(ee, 2) + Math.pow(Fe, 2));
24763
24763
  }
24764
- function Xr(z) {
24764
+ function Yr(z) {
24765
24765
  if (z === void 0 || z === !0 || z === !1) return R;
24766
24766
  if (z === 0 || z === "0") return 0;
24767
24767
  if (["i", "j"].indexOf(z) >= 0) return 1;
@@ -24771,23 +24771,23 @@ function requireDist$1() {
24771
24771
  return ee >= 0 || Fe >= 0 ? mt ? ee >= 0 ? isNaN(z.substring(0, ee)) || isNaN(z.substring(ee + 1, z.length - 1)) ? F : Number(z.substring(ee + 1, z.length - 1)) : isNaN(z.substring(0, Fe)) || isNaN(z.substring(Fe + 1, z.length - 1)) ? F : -Number(z.substring(Fe + 1, z.length - 1)) : F : mt ? isNaN(z.substring(0, z.length - 1)) ? F : z.substring(0, z.length - 1) : isNaN(z) ? F : 0;
24772
24772
  }
24773
24773
  function Qa(z) {
24774
- const ee = Dr(z), Fe = Xr(z);
24774
+ const ee = Dr(z), Fe = Yr(z);
24775
24775
  return Qe(ee, Fe) ? R : ee === 0 && Fe === 0 ? T : ee === 0 && Fe > 0 ? Math.PI / 2 : ee === 0 && Fe < 0 ? -Math.PI / 2 : Fe === 0 && ee > 0 ? 0 : Fe === 0 && ee < 0 ? -Math.PI : ee > 0 ? Math.atan(Fe / ee) : ee < 0 && Fe >= 0 ? Math.atan(Fe / ee) + Math.PI : Math.atan(Fe / ee) - Math.PI;
24776
24776
  }
24777
24777
  function ji(z) {
24778
- const ee = Dr(z), Fe = Xr(z);
24778
+ const ee = Dr(z), Fe = Yr(z);
24779
24779
  if (Qe(ee, Fe)) return R;
24780
24780
  let Ze = z.substring(z.length - 1);
24781
24781
  return Ze = Ze === "i" || Ze === "j" ? Ze : "i", Za(Math.cos(ee) * (Math.exp(Fe) + Math.exp(-Fe)) / 2, -Math.sin(ee) * (Math.exp(Fe) - Math.exp(-Fe)) / 2, Ze);
24782
24782
  }
24783
24783
  function Hc(z) {
24784
- const ee = Dr(z), Fe = Xr(z);
24784
+ const ee = Dr(z), Fe = Yr(z);
24785
24785
  if (Qe(ee, Fe)) return R;
24786
24786
  let Ze = z.substring(z.length - 1);
24787
24787
  return Ze = Ze === "i" || Ze === "j" ? Ze : "i", Za(Math.cos(Fe) * (Math.exp(ee) + Math.exp(-ee)) / 2, Math.sin(Fe) * (Math.exp(ee) - Math.exp(-ee)) / 2, Ze);
24788
24788
  }
24789
24789
  function _s(z, ee) {
24790
- const Fe = Dr(z), Ze = Xr(z), mt = Dr(ee), $t = Xr(ee);
24790
+ const Fe = Dr(z), Ze = Yr(z), mt = Dr(ee), $t = Yr(ee);
24791
24791
  if (Qe(Fe, Ze, mt, $t)) return R;
24792
24792
  const Ut = z.substring(z.length - 1), un = ee.substring(ee.length - 1);
24793
24793
  let Cn = "i";
@@ -24804,13 +24804,13 @@ function requireDist$1() {
24804
24804
  return ee >= 0 || Fe >= 0 ? mt ? ee >= 0 ? isNaN(z.substring(0, ee)) || isNaN(z.substring(ee + 1, z.length - 1)) ? F : Number(z.substring(0, ee)) : isNaN(z.substring(0, Fe)) || isNaN(z.substring(Fe + 1, z.length - 1)) ? F : Number(z.substring(0, Fe)) : F : mt ? isNaN(z.substring(0, z.length - 1)) ? F : 0 : isNaN(z) ? F : z;
24805
24805
  }
24806
24806
  function os(z) {
24807
- const ee = Dr(z), Fe = Xr(z);
24807
+ const ee = Dr(z), Fe = Yr(z);
24808
24808
  if (Qe(ee, Fe)) return R;
24809
24809
  let Ze = z.substring(z.length - 1);
24810
24810
  return Ze = Ze === "i" || Ze === "j" ? Ze : "i", Za(Math.sin(ee) * (Math.exp(Fe) + Math.exp(-Fe)) / 2, Math.cos(ee) * (Math.exp(Fe) - Math.exp(-Fe)) / 2, Ze);
24811
24811
  }
24812
24812
  function Kl(z) {
24813
- const ee = Dr(z), Fe = Xr(z);
24813
+ const ee = Dr(z), Fe = Yr(z);
24814
24814
  if (Qe(ee, Fe)) return R;
24815
24815
  let Ze = z.substring(z.length - 1);
24816
24816
  return Ze = Ze === "i" || Ze === "j" ? Ze : "i", Za(Math.cos(Fe) * (Math.exp(ee) - Math.exp(-ee)) / 2, Math.sin(Fe) * (Math.exp(ee) + Math.exp(-ee)) / 2, Ze);
@@ -24927,7 +24927,7 @@ function requireDist$1() {
24927
24927
  case 5:
24928
24928
  return Pt(Fe);
24929
24929
  case 6:
24930
- return or(Fe);
24930
+ return lr(Fe);
24931
24931
  case 7:
24932
24932
  return yt.S(Fe);
24933
24933
  case 8:
@@ -25098,13 +25098,13 @@ function requireDist$1() {
25098
25098
  const ur = mt[ee.substring(0, 2)];
25099
25099
  let Lr = $t[ee.substring(0, 1)];
25100
25100
  ee.substring(0, 2) === "da" && (Lr = ["dekao", 10, "da"]), ur ? (fr = ur[2], qn = ee.substring(2)) : Lr && (fr = Lr[1], qn = ee.substring(Lr[2].length));
25101
- for (let Yr = 0; Yr < Ze.length; Yr++) Ut = Ze[Yr][2] === null ? [] : Ze[Yr][2], (Ze[Yr][1] === qn || Ut.indexOf(qn) >= 0) && (un = Ze[Yr]);
25101
+ for (let Kr = 0; Kr < Ze.length; Kr++) Ut = Ze[Kr][2] === null ? [] : Ze[Kr][2], (Ze[Kr][1] === qn || Ut.indexOf(qn) >= 0) && (un = Ze[Kr]);
25102
25102
  }
25103
25103
  if (Cn === null) {
25104
25104
  const ur = mt[Fe.substring(0, 2)];
25105
25105
  let Lr = $t[Fe.substring(0, 1)];
25106
25106
  Fe.substring(0, 2) === "da" && (Lr = ["dekao", 10, "da"]), ur ? (Kn = ur[2], Zn = Fe.substring(2)) : Lr && (Kn = Lr[1], Zn = Fe.substring(Lr[2].length));
25107
- for (let Yr = 0; Yr < Ze.length; Yr++) Ut = Ze[Yr][2] === null ? [] : Ze[Yr][2], (Ze[Yr][1] === Zn || Ut.indexOf(Zn) >= 0) && (Cn = Ze[Yr]);
25107
+ for (let Kr = 0; Kr < Ze.length; Kr++) Ut = Ze[Kr][2] === null ? [] : Ze[Kr][2], (Ze[Kr][1] === Zn || Ut.indexOf(Zn) >= 0) && (Cn = Ze[Kr]);
25108
25108
  }
25109
25109
  return un === null || Cn === null || un[3] !== Cn[3] ? Z : z * un[6] * fr / (Cn[6] * Kn);
25110
25110
  }, h.CORREL = function(z, ee) {
@@ -25180,7 +25180,7 @@ function requireDist$1() {
25180
25180
  }, h.DATE = function(z, ee, Fe) {
25181
25181
  let Ze;
25182
25182
  return Qe(z = ke(z), ee = ke(ee), Fe = ke(Fe)) ? Ze = R : (Ze = new Date(z, ee - 1, Fe), Ze.getFullYear() < 0 && (Ze = F)), Ze;
25183
- }, h.DATEDIF = lr, h.DATEVALUE = function(z) {
25183
+ }, h.DATEDIF = sr, h.DATEVALUE = function(z) {
25184
25184
  if (typeof z != "string") return R;
25185
25185
  const ee = Date.parse(z);
25186
25186
  return isNaN(ee) ? R : new Date(z);
@@ -25288,10 +25288,10 @@ function requireDist$1() {
25288
25288
  break;
25289
25289
  case 1:
25290
25290
  case 3:
25291
- $t = 365, Ut = lr(z, ee, "D");
25291
+ $t = 365, Ut = sr(z, ee, "D");
25292
25292
  break;
25293
25293
  case 2:
25294
- $t = 360, Ut = lr(z, ee, "D");
25294
+ $t = 360, Ut = sr(z, ee, "D");
25295
25295
  break;
25296
25296
  case 4:
25297
25297
  $t = 360, Ut = _a(z, ee, !0);
@@ -25539,41 +25539,41 @@ function requireDist$1() {
25539
25539
  }, h.IFS = function() {
25540
25540
  for (let z = 0; z < arguments.length / 2; z++) if (arguments[2 * z]) return arguments[2 * z + 1];
25541
25541
  return Z;
25542
- }, h.IMABS = cd, h.IMAGINARY = Xr, h.IMARGUMENT = Qa, h.IMCONJUGATE = function(z) {
25543
- const ee = Dr(z), Fe = Xr(z);
25542
+ }, h.IMABS = cd, h.IMAGINARY = Yr, h.IMARGUMENT = Qa, h.IMCONJUGATE = function(z) {
25543
+ const ee = Dr(z), Fe = Yr(z);
25544
25544
  if (Qe(ee, Fe)) return R;
25545
25545
  let Ze = z.substring(z.length - 1);
25546
25546
  return Ze = Ze === "i" || Ze === "j" ? Ze : "i", Fe !== 0 ? Za(ee, -Fe, Ze) : z;
25547
25547
  }, h.IMCOS = ji, h.IMCOSH = Hc, h.IMCOT = function(z) {
25548
- return Qe(Dr(z), Xr(z)) ? R : _s(ji(z), os(z));
25548
+ return Qe(Dr(z), Yr(z)) ? R : _s(ji(z), os(z));
25549
25549
  }, h.IMCSC = function(z) {
25550
- return z === !0 || z === !1 ? R : Qe(Dr(z), Xr(z)) ? F : _s("1", os(z));
25550
+ return z === !0 || z === !1 ? R : Qe(Dr(z), Yr(z)) ? F : _s("1", os(z));
25551
25551
  }, h.IMCSCH = function(z) {
25552
- return z === !0 || z === !1 ? R : Qe(Dr(z), Xr(z)) ? F : _s("1", Kl(z));
25552
+ return z === !0 || z === !1 ? R : Qe(Dr(z), Yr(z)) ? F : _s("1", Kl(z));
25553
25553
  }, h.IMDIV = _s, h.IMEXP = function(z) {
25554
- const ee = Dr(z), Fe = Xr(z);
25554
+ const ee = Dr(z), Fe = Yr(z);
25555
25555
  if (Qe(ee, Fe)) return R;
25556
25556
  let Ze = z.substring(z.length - 1);
25557
25557
  Ze = Ze === "i" || Ze === "j" ? Ze : "i";
25558
25558
  const mt = Math.exp(ee);
25559
25559
  return Za(mt * Math.cos(Fe), mt * Math.sin(Fe), Ze);
25560
25560
  }, h.IMLN = function(z) {
25561
- const ee = Dr(z), Fe = Xr(z);
25561
+ const ee = Dr(z), Fe = Yr(z);
25562
25562
  if (Qe(ee, Fe)) return R;
25563
25563
  let Ze = z.substring(z.length - 1);
25564
25564
  return Ze = Ze === "i" || Ze === "j" ? Ze : "i", Za(Math.log(Math.sqrt(ee * ee + Fe * Fe)), Math.atan(Fe / ee), Ze);
25565
25565
  }, h.IMLOG10 = function(z) {
25566
- const ee = Dr(z), Fe = Xr(z);
25566
+ const ee = Dr(z), Fe = Yr(z);
25567
25567
  if (Qe(ee, Fe)) return R;
25568
25568
  let Ze = z.substring(z.length - 1);
25569
25569
  return Ze = Ze === "i" || Ze === "j" ? Ze : "i", Za(Math.log(Math.sqrt(ee * ee + Fe * Fe)) / Math.log(10), Math.atan(Fe / ee) / Math.log(10), Ze);
25570
25570
  }, h.IMLOG2 = function(z) {
25571
- const ee = Dr(z), Fe = Xr(z);
25571
+ const ee = Dr(z), Fe = Yr(z);
25572
25572
  if (Qe(ee, Fe)) return R;
25573
25573
  let Ze = z.substring(z.length - 1);
25574
25574
  return Ze = Ze === "i" || Ze === "j" ? Ze : "i", Za(Math.log(Math.sqrt(ee * ee + Fe * Fe)) / Math.log(2), Math.atan(Fe / ee) / Math.log(2), Ze);
25575
25575
  }, h.IMPOWER = function(z, ee) {
25576
- if (Qe(ee = ke(ee), Dr(z), Xr(z))) return R;
25576
+ if (Qe(ee = ke(ee), Dr(z), Yr(z))) return R;
25577
25577
  let Fe = z.substring(z.length - 1);
25578
25578
  Fe = Fe === "i" || Fe === "j" ? Fe : "i";
25579
25579
  const Ze = Math.pow(cd(z), ee), mt = Qa(z);
@@ -25582,23 +25582,23 @@ function requireDist$1() {
25582
25582
  let z = arguments[0];
25583
25583
  if (!arguments.length) return R;
25584
25584
  for (let ee = 1; ee < arguments.length; ee++) {
25585
- const Fe = Dr(z), Ze = Xr(z), mt = Dr(arguments[ee]), $t = Xr(arguments[ee]);
25585
+ const Fe = Dr(z), Ze = Yr(z), mt = Dr(arguments[ee]), $t = Yr(arguments[ee]);
25586
25586
  if (Qe(Fe, Ze, mt, $t)) return R;
25587
25587
  z = Za(Fe * mt - Ze * $t, Fe * $t + Ze * mt);
25588
25588
  }
25589
25589
  return z;
25590
25590
  }, h.IMREAL = Dr, h.IMSEC = function(z) {
25591
- return z === !0 || z === !1 || Qe(Dr(z), Xr(z)) ? R : _s("1", ji(z));
25591
+ return z === !0 || z === !1 || Qe(Dr(z), Yr(z)) ? R : _s("1", ji(z));
25592
25592
  }, h.IMSECH = function(z) {
25593
- return Qe(Dr(z), Xr(z)) ? R : _s("1", Hc(z));
25593
+ return Qe(Dr(z), Yr(z)) ? R : _s("1", Hc(z));
25594
25594
  }, h.IMSIN = os, h.IMSINH = Kl, h.IMSQRT = function(z) {
25595
- if (Qe(Dr(z), Xr(z))) return R;
25595
+ if (Qe(Dr(z), Yr(z))) return R;
25596
25596
  let ee = z.substring(z.length - 1);
25597
25597
  ee = ee === "i" || ee === "j" ? ee : "i";
25598
25598
  const Fe = Math.sqrt(cd(z)), Ze = Qa(z);
25599
25599
  return Za(Fe * Math.cos(Ze / 2), Fe * Math.sin(Ze / 2), ee);
25600
25600
  }, h.IMSUB = function(z, ee) {
25601
- const Fe = Dr(z), Ze = Xr(z), mt = Dr(ee), $t = Xr(ee);
25601
+ const Fe = Dr(z), Ze = Yr(z), mt = Dr(ee), $t = Yr(ee);
25602
25602
  if (Qe(Fe, Ze, mt, $t)) return R;
25603
25603
  const Ut = z.substring(z.length - 1), un = ee.substring(ee.length - 1);
25604
25604
  let Cn = "i";
@@ -25608,13 +25608,13 @@ function requireDist$1() {
25608
25608
  const z = De(arguments);
25609
25609
  let ee = z[0];
25610
25610
  for (let Fe = 1; Fe < z.length; Fe++) {
25611
- const Ze = Dr(ee), mt = Xr(ee), $t = Dr(z[Fe]), Ut = Xr(z[Fe]);
25611
+ const Ze = Dr(ee), mt = Yr(ee), $t = Dr(z[Fe]), Ut = Yr(z[Fe]);
25612
25612
  if (Qe(Ze, mt, $t, Ut)) return R;
25613
25613
  ee = Za(Ze + $t, mt + Ut);
25614
25614
  }
25615
25615
  return ee;
25616
25616
  }, h.IMTAN = function(z) {
25617
- return z === !0 || z === !1 || Qe(Dr(z), Xr(z)) ? R : _s(os(z), ji(z));
25617
+ return z === !0 || z === !1 || Qe(Dr(z), Yr(z)) ? R : _s(os(z), ji(z));
25618
25618
  }, h.INDEX = function(z, ee, Fe) {
25619
25619
  const Ze = et(z, ee, Fe);
25620
25620
  if (Ze) return Ze;
@@ -25632,18 +25632,18 @@ function requireDist$1() {
25632
25632
  }, h.IPMT = Hs, h.IRR = function(z, ee) {
25633
25633
  if (ee = ee || 0, Qe(z = nt(De(z)), ee = ke(ee))) return R;
25634
25634
  const Fe = (Kn, ur, Lr) => {
25635
- const Yr = Lr + 1;
25636
- let ea = Kn[0];
25637
- for (let sa = 1; sa < Kn.length; sa++) ea += Kn[sa] / Math.pow(Yr, (ur[sa] - ur[0]) / 365);
25638
- return ea;
25635
+ const Kr = Lr + 1;
25636
+ let Qr = Kn[0];
25637
+ for (let sa = 1; sa < Kn.length; sa++) Qr += Kn[sa] / Math.pow(Kr, (ur[sa] - ur[0]) / 365);
25638
+ return Qr;
25639
25639
  }, Ze = (Kn, ur, Lr) => {
25640
- const Yr = Lr + 1;
25641
- let ea = 0;
25640
+ const Kr = Lr + 1;
25641
+ let Qr = 0;
25642
25642
  for (let sa = 1; sa < Kn.length; sa++) {
25643
25643
  const ds = (ur[sa] - ur[0]) / 365;
25644
- ea -= ds * Kn[sa] / Math.pow(Yr, ds + 1);
25644
+ Qr -= ds * Kn[sa] / Math.pow(Kr, ds + 1);
25645
25645
  }
25646
- return ea;
25646
+ return Qr;
25647
25647
  }, mt = [];
25648
25648
  let $t = !1, Ut = !1;
25649
25649
  for (let Kn = 0; Kn < z.length; Kn++) mt[Kn] = Kn === 0 ? 0 : mt[Kn - 1] + 365, z[Kn] > 0 && ($t = !0), z[Kn] < 0 && (Ut = !0);
@@ -25859,10 +25859,10 @@ function requireDist$1() {
25859
25859
  break;
25860
25860
  case 1:
25861
25861
  case 3:
25862
- $t = 365, Ut = lr(z, ee, "D");
25862
+ $t = 365, Ut = sr(z, ee, "D");
25863
25863
  break;
25864
25864
  case 2:
25865
- $t = 360, Ut = lr(z, ee, "D");
25865
+ $t = 360, Ut = sr(z, ee, "D");
25866
25866
  break;
25867
25867
  case 4:
25868
25868
  $t = 360, Ut = _a(z, ee, !0);
@@ -25881,7 +25881,7 @@ function requireDist$1() {
25881
25881
  let Ut = 0;
25882
25882
  for (let un = 0; un < $t; un++) mt[un] >= Fe && mt[un] <= Ze && (Ut += ee[z.indexOf(mt[un])]);
25883
25883
  return Ut;
25884
- }, h.PRODUCT = or, h.PRONETIC = function() {
25884
+ }, h.PRODUCT = lr, h.PRONETIC = function() {
25885
25885
  throw new Error("PRONETIC is not implemented");
25886
25886
  }, h.PROPER = function(z) {
25887
25887
  return Qe(z) ? z : isNaN(z) && typeof z == "number" ? R : (z = ht(z)).replace(/\w\S*/g, ((ee) => ee.charAt(0).toUpperCase() + ee.substr(1).toLowerCase()));
@@ -26027,7 +26027,7 @@ function requireDist$1() {
26027
26027
  return Pt(ee);
26028
26028
  case 6:
26029
26029
  case 106:
26030
- return or(ee);
26030
+ return lr(ee);
26031
26031
  case 7:
26032
26032
  case 107:
26033
26033
  return yt.S(ee);
@@ -26234,18 +26234,18 @@ function requireDist$1() {
26234
26234
  }, h.WEIBULL = Ot, h.WEIBULLDIST = Jc, h.WORKDAY = fa, h.WORKDAYINTL = eu, h.XIRR = function(z, ee, Fe) {
26235
26235
  if (Qe(z = nt(De(z)), ee = He(De(ee)), Fe = ke(Fe))) return R;
26236
26236
  const Ze = (Kn, ur, Lr) => {
26237
- const Yr = Lr + 1;
26238
- let ea = Kn[0];
26239
- for (let sa = 1; sa < Kn.length; sa++) ea += Kn[sa] / Math.pow(Yr, ya(ur[sa], ur[0]) / 365);
26240
- return ea;
26237
+ const Kr = Lr + 1;
26238
+ let Qr = Kn[0];
26239
+ for (let sa = 1; sa < Kn.length; sa++) Qr += Kn[sa] / Math.pow(Kr, ya(ur[sa], ur[0]) / 365);
26240
+ return Qr;
26241
26241
  }, mt = (Kn, ur, Lr) => {
26242
- const Yr = Lr + 1;
26243
- let ea = 0;
26242
+ const Kr = Lr + 1;
26243
+ let Qr = 0;
26244
26244
  for (let sa = 1; sa < Kn.length; sa++) {
26245
26245
  const ds = ya(ur[sa], ur[0]) / 365;
26246
- ea -= ds * Kn[sa] / Math.pow(Yr, ds + 1);
26246
+ Qr -= ds * Kn[sa] / Math.pow(Kr, ds + 1);
26247
26247
  }
26248
- return ea;
26248
+ return Qr;
26249
26249
  };
26250
26250
  let $t = !1, Ut = !1;
26251
26251
  for (let Kn = 0; Kn < z.length; Kn++) z[Kn] > 0 && ($t = !0), z[Kn] < 0 && (Ut = !0);
@@ -30719,10 +30719,10 @@ var CRC32 = /* @__PURE__ */ (function() {
30719
30719
  Gt[Gn] = Nn;
30720
30720
  var dr = T(Oe, yt);
30721
30721
  P(Ot, St, dr, yt, Gt);
30722
- var or = Z(dr, Wt, Gt, yt);
30723
- or[Wt].name = "!Directory", ct > 0 && Mt !== We && (or[Mt].name = "!MiniFAT"), or[Gt[0]].name = "!FAT", or.fat_addrs = Gt, or.ssz = yt;
30722
+ var lr = Z(dr, Wt, Gt, yt);
30723
+ lr[Wt].name = "!Directory", ct > 0 && Mt !== We && (lr[Mt].name = "!MiniFAT"), lr[Gt[0]].name = "!FAT", lr.fat_addrs = Gt, lr.ssz = yt;
30724
30724
  var _r = {}, Nr = [], ca = [], ir = [];
30725
- Q(Wt, or, dr, Nr, ct, _r, ca, Mt), R(ca, ir, Nr), Nr.shift();
30725
+ Q(Wt, lr, dr, Nr, ct, _r, ca, Mt), R(ca, ir, Nr), Nr.shift();
30726
30726
  var cr = {
30727
30727
  FileIndex: ca,
30728
30728
  FullPaths: ir
@@ -30835,8 +30835,8 @@ var CRC32 = /* @__PURE__ */ (function() {
30835
30835
  size: 0
30836
30836
  }, dr = Nn.read_shift(2) + Nn.read_shift(2) + Nn.read_shift(2) + Nn.read_shift(2);
30837
30837
  dr !== 0 && (Gn.ct = ne(Nn, Nn.l - 8));
30838
- var or = Nn.read_shift(2) + Nn.read_shift(2) + Nn.read_shift(2) + Nn.read_shift(2);
30839
- or !== 0 && (Gn.mt = ne(Nn, Nn.l - 8)), Gn.start = Nn.read_shift(4, "i"), Gn.size = Nn.read_shift(4, "i"), Gn.size < 0 && Gn.start < 0 && (Gn.size = Gn.type = 0, Gn.start = We, Gn.name = ""), Gn.type === 5 ? (Ot = Gn.start, ct > 0 && Ot !== We && (tt[Ot].name = "!StreamData")) : Gn.size >= 4096 ? (Gn.storage = "fat", tt[Gn.start] === void 0 && (tt[Gn.start] = F(lt, Gn.start, tt.fat_addrs, tt.ssz)), tt[Gn.start].name = Gn.name, Gn.content = tt[Gn.start].data.slice(0, Gn.size)) : (Gn.storage = "minifat", Gn.size < 0 ? Gn.size = 0 : Ot !== We && Gn.start !== We && tt[Ot] && (Gn.content = I(Gn, tt[Ot].data, (tt[Mt] || {}).data))), Gn.content && prep_blob(Gn.content, 0), St[zn] = Gn, Wt.push(Gn);
30838
+ var lr = Nn.read_shift(2) + Nn.read_shift(2) + Nn.read_shift(2) + Nn.read_shift(2);
30839
+ lr !== 0 && (Gn.mt = ne(Nn, Nn.l - 8)), Gn.start = Nn.read_shift(4, "i"), Gn.size = Nn.read_shift(4, "i"), Gn.size < 0 && Gn.start < 0 && (Gn.size = Gn.type = 0, Gn.start = We, Gn.name = ""), Gn.type === 5 ? (Ot = Gn.start, ct > 0 && Ot !== We && (tt[Ot].name = "!StreamData")) : Gn.size >= 4096 ? (Gn.storage = "fat", tt[Gn.start] === void 0 && (tt[Gn.start] = F(lt, Gn.start, tt.fat_addrs, tt.ssz)), tt[Gn.start].name = Gn.name, Gn.content = tt[Gn.start].data.slice(0, Gn.size)) : (Gn.storage = "minifat", Gn.size < 0 ? Gn.size = 0 : Ot !== We && Gn.start !== We && tt[Ot] && (Gn.content = I(Gn, tt[Ot].data, (tt[Mt] || {}).data))), Gn.content && prep_blob(Gn.content, 0), St[zn] = Gn, Wt.push(Gn);
30840
30840
  }
30841
30841
  }
30842
30842
  function ne(Oe, tt) {
@@ -30930,15 +30930,15 @@ var CRC32 = /* @__PURE__ */ (function() {
30930
30930
  return wt(Oe, lt);
30931
30931
  var yt = (function(zn) {
30932
30932
  for (var Nn = 0, Gn = 0, dr = 0; dr < zn.FileIndex.length; ++dr) {
30933
- var or = zn.FileIndex[dr];
30934
- if (or.content) {
30935
- var _r = or.content.length;
30933
+ var lr = zn.FileIndex[dr];
30934
+ if (lr.content) {
30935
+ var _r = lr.content.length;
30936
30936
  _r > 0 && (_r < 4096 ? Nn += _r + 63 >> 6 : Gn += _r + 511 >> 9);
30937
30937
  }
30938
30938
  }
30939
30939
  for (var Nr = zn.FullPaths.length + 3 >> 2, ca = Nn + 7 >> 3, ir = Nn + 127 >> 7, cr = ca + Gn + Nr + ir, si = cr + 127 >> 7, Ka = si <= 109 ? 0 : Math.ceil((si - 109) / 127); cr + si + Ka + 127 >> 7 > si; ) Ka = ++si <= 109 ? 0 : Math.ceil((si - 109) / 127);
30940
- var lr = [1, Ka, si, ir, Nr, Gn, Nn, 0];
30941
- return zn.FileIndex[0].size = Nn << 6, lr[7] = (zn.FileIndex[0].start = lr[0] + lr[1] + lr[2] + lr[3] + lr[4] + lr[5]) + (lr[6] + 7 >> 3), lr;
30940
+ var sr = [1, Ka, si, ir, Nr, Gn, Nn, 0];
30941
+ return zn.FileIndex[0].size = Nn << 6, sr[7] = (zn.FileIndex[0].start = sr[0] + sr[1] + sr[2] + sr[3] + sr[4] + sr[5]) + (sr[6] + 7 >> 3), sr;
30942
30942
  })(Oe), ct = new_buf(yt[7] << 9), St = 0, Wt = 0;
30943
30943
  {
30944
30944
  for (St = 0; St < 8; ++St) ct.write_shift(1, rt[St]);
@@ -31212,8 +31212,8 @@ var CRC32 = /* @__PURE__ */ (function() {
31212
31212
  for (; Mt[Gn + dr] == Mt[Jt + dr] && dr < 250; ) ++dr;
31213
31213
  if (dr > 2) {
31214
31214
  Nn = ct[dr], Nn <= 22 ? Gt = Wn(Ot, Gt, pt[Nn + 1] >> 1) - 1 : (Wn(Ot, Gt, 3), Gt += 5, Wn(Ot, Gt, pt[Nn - 23] >> 5), Gt += 3);
31215
- var or = Nn < 8 ? 0 : Nn - 4 >> 2;
31216
- or > 0 && (Yn(Ot, Gt, dr - gt[Nn]), Gt += or), Nn = tt[Jt - Gn], Gt = Wn(Ot, Gt, pt[Nn] >> 3), Gt -= 3;
31215
+ var lr = Nn < 8 ? 0 : Nn - 4 >> 2;
31216
+ lr > 0 && (Yn(Ot, Gt, dr - gt[Nn]), Gt += lr), Nn = tt[Jt - Gn], Gt = Wn(Ot, Gt, pt[Nn] >> 3), Gt -= 3;
31217
31217
  var _r = Nn < 4 ? 0 : Nn - 2 >> 1;
31218
31218
  _r > 0 && (Yn(Ot, Gt, Jt - Gn - vt[Nn]), Gt += _r);
31219
31219
  for (var Nr = 0; Nr < dr; ++Nr)
@@ -31269,10 +31269,10 @@ var CRC32 = /* @__PURE__ */ (function() {
31269
31269
  dr.push(zn), Ot < zn && (Ot = zn);
31270
31270
  break;
31271
31271
  }
31272
- var or = dr.slice(0, lt), _r = dr.slice(lt);
31273
- for (jn = lt; jn < 286; ++jn) or[jn] = 0;
31272
+ var lr = dr.slice(0, lt), _r = dr.slice(lt);
31273
+ for (jn = lt; jn < 286; ++jn) lr[jn] = 0;
31274
31274
  for (jn = yt; jn < 30; ++jn) _r[jn] = 0;
31275
- return Me = nr(or, Je, 286), bt = nr(_r, st, 30), tt;
31275
+ return Me = nr(lr, Je, 286), bt = nr(_r, st, 30), tt;
31276
31276
  }
31277
31277
  function Lt(Oe, tt) {
31278
31278
  if (Oe[0] == 3 && !(Oe[1] & 3))
@@ -31372,14 +31372,14 @@ var CRC32 = /* @__PURE__ */ (function() {
31372
31372
  default:
31373
31373
  throw new Error("Unsupported ZIP Compression method " + Wt);
31374
31374
  }
31375
- var or = !1;
31376
- St & 8 && (Ot = Oe.read_shift(4), Ot == 134695760 && (Ot = Oe.read_shift(4), or = !0), Gt = Oe.read_shift(4), Jt = Oe.read_shift(4)), Gt != tt && Xe(or, "Bad compressed size: " + tt + " != " + Gt), Jt != lt && Xe(or, "Bad uncompressed size: " + lt + " != " + Jt), on(yt, zn, dr, { unsafe: !0, mt: Mt });
31375
+ var lr = !1;
31376
+ St & 8 && (Ot = Oe.read_shift(4), Ot == 134695760 && (Ot = Oe.read_shift(4), lr = !0), Gt = Oe.read_shift(4), Jt = Oe.read_shift(4)), Gt != tt && Xe(lr, "Bad compressed size: " + tt + " != " + Gt), Jt != lt && Xe(lr, "Bad uncompressed size: " + lt + " != " + Jt), on(yt, zn, dr, { unsafe: !0, mt: Mt });
31377
31377
  }
31378
31378
  function wt(Oe, tt) {
31379
31379
  var lt = tt || {}, yt = [], ct = [], St = new_buf(1), Wt = lt.compression ? 8 : 0, Mt = 0, Ot = 0, Gt = 0, Jt = 0, Sn = 0, jn = Oe.FullPaths[0], zn = jn, Nn = Oe.FileIndex[0], Gn = [], dr = 0;
31380
31380
  for (Ot = 1; Ot < Oe.FullPaths.length; ++Ot)
31381
31381
  if (zn = Oe.FullPaths[Ot].slice(jn.length), Nn = Oe.FileIndex[Ot], !(!Nn.size || !Nn.content || zn == "Sh33tJ5")) {
31382
- var or = Jt, _r = new_buf(zn.length);
31382
+ var lr = Jt, _r = new_buf(zn.length);
31383
31383
  for (Gt = 0; Gt < zn.length; ++Gt) _r.write_shift(1, zn.charCodeAt(Gt) & 127);
31384
31384
  _r = _r.slice(0, _r.l), Gn[Sn] = CRC32.buf(
31385
31385
  /*::((*/
@@ -31395,7 +31395,7 @@ var CRC32 = /* @__PURE__ */ (function() {
31395
31395
  4,
31396
31396
  /*::(*/
31397
31397
  Nn.content.length
31398
- ), St.write_shift(2, _r.length), St.write_shift(2, 0), St.write_shift(2, 0), St.write_shift(2, 0), St.write_shift(2, 0), St.write_shift(4, 0), St.write_shift(4, or), dr += St.l, ct.push(St), dr += _r.length, ct.push(_r), ++Sn;
31398
+ ), St.write_shift(2, _r.length), St.write_shift(2, 0), St.write_shift(2, 0), St.write_shift(2, 0), St.write_shift(2, 0), St.write_shift(4, 0), St.write_shift(4, lr), dr += St.l, ct.push(St), dr += _r.length, ct.push(_r), ++Sn;
31399
31399
  }
31400
31400
  return St = new_buf(22), St.write_shift(4, 101010256), St.write_shift(2, 0), St.write_shift(2, 0), St.write_shift(2, Sn), St.write_shift(2, Sn), St.write_shift(4, dr), St.write_shift(4, Jt), St.write_shift(2, 0), bconcat([bconcat(yt), bconcat(ct), St]);
31401
31401
  }
@@ -76801,140 +76801,6 @@ function DreamerResults({ result: e }) {
76801
76801
  o
76802
76802
  ] });
76803
76803
  }
76804
- const BTF = [
76805
- { key: "best_seller", label: "Best Seller" },
76806
- { key: "trending", label: "Trending" },
76807
- { key: "forecast", label: "Forecast" }
76808
- ], readable = (e) => e.replace(/_/g, " ").replace(/^\w/, (t) => t.toUpperCase());
76809
- function regenerateContext(e) {
76810
- for (let t = e.length - 1; t >= 0; t -= 1) {
76811
- const n = object(object(e[t].props).refineCtx);
76812
- if (Object.keys(object(n.inputs)).length) return n;
76813
- }
76814
- return null;
76815
- }
76816
- function pick(e, t) {
76817
- const n = e.trim().toLowerCase();
76818
- return t.find((s) => s.value.toLowerCase() === n || s.label.toLowerCase() === n)?.value ?? e.trim();
76819
- }
76820
- function initialChoices(e) {
76821
- const t = object(e.inputs), n = object(e.options), s = object(t.btf), o = BTF.every(({ key: d }) => Number.isFinite(Number(s[d]))) ? Object.fromEntries(BTF.map(({ key: d }) => [d, Number(s[d])])) : distributeWeights(BTF.map(({ key: d }) => d)), l = (d, h) => text$1(d).trim() ? [pick(text$1(d), options$2(n[h]))] : [], c = object(t.selected_theme);
76822
- return {
76823
- categories: list(t.bricks).map(String).filter(Boolean),
76824
- btf: o,
76825
- gender: l(t.gender_mix, "gender_mix"),
76826
- total: t.total_options == null || t.total_options === "" ? [] : [String(t.total_options)],
76827
- adherence: l(t.brand_adherence, "brand_adherence"),
76828
- theme: list(c.themes).length ? list(c.themes).map(String) : text$1(c.name).trim() ? [text$1(c.name)] : [],
76829
- notes: text$1(t.notes)
76830
- };
76831
- }
76832
- function regenerateProblem(e) {
76833
- const t = Object.values(e.btf).reduce((n, s) => n + s, 0);
76834
- return e.categories.length ? t !== 100 ? "The BTF mix must total 100%." : e.gender.length ? !e.total.length || e.total.some((n) => !/^\d+$/.test(n) || Number(n) < 1 || Number(n) > 200) ? "Choose between 1 and 200 options." : e.adherence.length ? "" : "Choose a brand adherence." : "Choose a gender mix." : "Pick at least one category.";
76835
- }
76836
- function regenerateMessage(e, t, n) {
76837
- const s = object(n.options), o = (d, h) => d.map((g) => options$2(s[h]).find((v) => v.value === g)?.label ?? g), l = t.categories.map((d) => {
76838
- const h = options$2(s.categories).find((g) => g.value === d);
76839
- return h ? h.label : readable(d);
76840
- }), c = [
76841
- `Regenerate the range plan with these choices (plan_refine thread_id: ${e}):`,
76842
- `- Categories: ${l.join(", ")}`,
76843
- `- BTF mix: ${BTF.map(({ key: d, label: h }) => `${h} ${t.btf[d]}%`).join(" / ")}`,
76844
- `- Gender mix: ${o(t.gender, "gender_mix").join(", ")}`,
76845
- `- Total options: ${t.total.join(", ")}`,
76846
- `- Brand adherence: ${o(t.adherence, "brand_adherence").join(", ")}`,
76847
- `- Theme: ${t.theme.length ? t.theme.join(" | ") : "No theme"}`
76848
- ];
76849
- return t.notes.trim() && c.push(`- Other changes: ${t.notes.trim()}`), c.join(`
76850
- `);
76851
- }
76852
- function MultiField({ label: e, choices: t, values: n, onChange: s, disabled: o, placeholder: l, numeric: c = !1, display: d = (g) => g, children: h }) {
76853
- const [g, v] = useState(""), C = n.filter((R) => !t.some((I) => I.value === R)).map((R) => ({ value: R, label: d(R) })), N = (R) => s(n.includes(R) ? n.filter((I) => I !== R) : [...n, R]), T = () => {
76854
- const R = g.replace(/\s*[,|]\s*/g, " ").replace(/\s+/g, " ").trim();
76855
- if (!R) return;
76856
- const I = t.find((P) => P.label.toLowerCase() === R.toLowerCase() || P.value.toLowerCase() === R.toLowerCase());
76857
- s([.../* @__PURE__ */ new Set([...n, I?.value ?? R])]), v("");
76858
- };
76859
- return /* @__PURE__ */ jsxs("section", { className: "dreamer-stack dreamer-regenerate-field", children: [
76860
- /* @__PURE__ */ jsx("h4", { children: e }),
76861
- /* @__PURE__ */ jsx("p", { className: "dreamer-muted", children: "Select all that apply." }),
76862
- /* @__PURE__ */ jsxs("div", { className: "dreamer-actions", role: "group", "aria-label": e, children: [
76863
- [...t, ...C].map((R) => /* @__PURE__ */ jsx(Action, { disabled: o, selected: n.includes(R.value), onClick: () => N(R.value), children: R.label }, R.value)),
76864
- h
76865
- ] }),
76866
- /* @__PURE__ */ jsxs("div", { className: "dreamer-actions dreamer-typed", children: [
76867
- /* @__PURE__ */ jsx(
76868
- ScTextField,
76869
- {
76870
- "aria-label": `${e}: add your own`,
76871
- placeholder: l,
76872
- value: g,
76873
- disabled: o,
76874
- inputMode: c ? "numeric" : void 0,
76875
- onChange: (R) => v(c ? R.target.value.replace(/[^\d]/g, "") : R.target.value),
76876
- onKeyDown: (R) => {
76877
- R.key === "Enter" && (R.preventDefault(), T());
76878
- }
76879
- }
76880
- ),
76881
- /* @__PURE__ */ jsx(Action, { disabled: o || !g.trim(), onClick: T, children: "Add" })
76882
- ] })
76883
- ] });
76884
- }
76885
- function DreamerRegenerateForm({ ctx: e, threadId: t, onSend: n, onClose: s }) {
76886
- const [o, l] = useState(() => initialChoices(e)), [c, d] = useState(!1), [h, g] = useState(""), v = object(e.options), C = (I) => l((P) => ({ ...P, ...I })), N = Object.values(o.btf).reduce((I, P) => I + P, 0), T = regenerateProblem(o), R = async () => {
76887
- if (!(T || c)) {
76888
- d(!0), g("");
76889
- try {
76890
- await n(regenerateMessage(t, o, e)), s();
76891
- } catch {
76892
- g("Could not send the request. Try again."), d(!1);
76893
- }
76894
- }
76895
- };
76896
- return /* @__PURE__ */ jsxs("section", { className: "dreamer-question-card dreamer-regenerate", "data-testid": "dreamer-regenerate", "aria-label": "Regenerate plan", children: [
76897
- /* @__PURE__ */ jsxs("header", { className: "dreamer-question-header", children: [
76898
- /* @__PURE__ */ jsx("h3", { children: "Regenerate plan" }),
76899
- /* @__PURE__ */ jsx("p", { className: "dreamer-muted", children: "Your previous choices are filled in. Change any of them, then regenerate." })
76900
- ] }),
76901
- /* @__PURE__ */ jsxs("div", { className: "dreamer-question-body dreamer-stack", children: [
76902
- /* @__PURE__ */ jsx(MultiField, { label: "Product categories", choices: options$2(v.categories), values: o.categories, onChange: (I) => C({ categories: I }), disabled: c, placeholder: "Add a category…", display: readable }),
76903
- /* @__PURE__ */ jsxs("section", { className: "dreamer-stack dreamer-regenerate-field", children: [
76904
- /* @__PURE__ */ jsx("h4", { children: "Best Seller / Trending / Forecast mix" }),
76905
- BTF.map(({ key: I, label: P }) => /* @__PURE__ */ jsxs("label", { className: "dreamer-stack", children: [
76906
- /* @__PURE__ */ jsxs("span", { children: [
76907
- P,
76908
- ": ",
76909
- o.btf[I],
76910
- "%"
76911
- ] }),
76912
- /* @__PURE__ */ jsx("input", { "aria-label": P, type: "range", min: 0, max: 100, step: 1, value: o.btf[I], disabled: c, onChange: (F) => C({ btf: updateWeights(o.btf, I, Number(F.target.value)) }) })
76913
- ] }, I)),
76914
- /* @__PURE__ */ jsxs("p", { className: "dreamer-muted", "aria-live": "polite", children: [
76915
- "Total: ",
76916
- N,
76917
- "% of 100%"
76918
- ] })
76919
- ] }),
76920
- /* @__PURE__ */ jsx(MultiField, { label: "Gender mix", choices: options$2(v.gender_mix), values: o.gender, onChange: (I) => C({ gender: I }), disabled: c, placeholder: "Add a mix, e.g. Women 60 / Men 40" }),
76921
- /* @__PURE__ */ jsx(MultiField, { label: "Total design options", choices: options$2(v.total_options), values: o.total, onChange: (I) => C({ total: I }), disabled: c, placeholder: "Add a number", numeric: !0 }),
76922
- /* @__PURE__ */ jsx(MultiField, { label: "Brand adherence", choices: options$2(v.brand_adherence), values: o.adherence, onChange: (I) => C({ adherence: I }), disabled: c, placeholder: "Add high, medium or low" }),
76923
- /* @__PURE__ */ jsx(MultiField, { label: "Theme", choices: options$2(v.themes), values: o.theme, onChange: (I) => C({ theme: I }), disabled: c, placeholder: "Describe your own theme", children: /* @__PURE__ */ jsx(Action, { disabled: c, selected: !o.theme.length, onClick: () => C({ theme: [] }), children: "No theme" }) }),
76924
- /* @__PURE__ */ jsxs("section", { className: "dreamer-stack dreamer-regenerate-field", children: [
76925
- /* @__PURE__ */ jsx("h4", { children: "Other changes" }),
76926
- /* @__PURE__ */ jsx(ScTextArea, { "aria-label": "Other changes", placeholder: "Anything else to change, e.g. more linen, fewer prints…", value: o.notes, disabled: c, onChange: (I) => C({ notes: I.target.value }) })
76927
- ] }),
76928
- (T || h) && /* @__PURE__ */ jsx("p", { role: "alert", className: "dreamer-muted", children: h || T })
76929
- ] }),
76930
- /* @__PURE__ */ jsxs("footer", { className: "dreamer-question-footer", children: [
76931
- /* @__PURE__ */ jsx(Action, { disabled: c || !!T, onClick: () => {
76932
- R();
76933
- }, children: c ? "Regenerating…" : "Regenerate plan" }),
76934
- /* @__PURE__ */ jsx(Action, { disabled: c, onClick: s, children: "Cancel" })
76935
- ] })
76936
- ] });
76937
- }
76938
76804
  function Question({ question: e, storageKey: t, disabled: n, onSubmit: s }) {
76939
76805
  const [o, l] = useState(() => {
76940
76806
  try {
@@ -76955,21 +76821,16 @@ function Question({ question: e, storageKey: t, disabled: n, onSubmit: s }) {
76955
76821
  /* @__PURE__ */ jsx("footer", { className: "dreamer-question-footer", children: /* @__PURE__ */ jsx(Action, { disabled: n, onClick: () => s({ cancel: !0 }), children: "Cancel" }) })
76956
76822
  ] });
76957
76823
  }
76958
- function Regenerate({ ctx: e, threadId: t, send: n }) {
76959
- const [s, o] = useState(!1);
76960
- return s ? /* @__PURE__ */ jsx(DreamerRegenerateForm, { ctx: e, threadId: t, onSend: (l) => n(l), onClose: () => o(!1) }) : /* @__PURE__ */ jsx("div", { className: "dreamer-actions dreamer-regenerate-entry", children: /* @__PURE__ */ jsx(Action, { onClick: () => o(!0), children: "Regenerate" }) });
76961
- }
76962
76824
  function DreamerPanel(e) {
76963
- const t = object(e.uiProps.question), n = text$1(t.id), s = !!(n && e.uiProps.resume && !e.submitted), o = records(e.uiProps.components).map((v) => ({ component: text$1(v.component), title: text$1(v.title), props: object(v.props) })), l = regenerateContext(o), c = text$1(e.uiProps.thread_id), d = e.onSendMessage, h = `artifax:dreamer:${e.workspaceId}:${e.userId}:${e.conversationId}:${n}`, g = (v) => {
76964
- s && e.onSubmit({ question_id: n, answer: v }, answerSummary(v));
76825
+ const t = object(e.uiProps.question), n = text$1(t.id), s = !!(n && e.uiProps.resume && !e.submitted), o = records(e.uiProps.components).map((d) => ({ component: text$1(d.component), title: text$1(d.title), props: object(d.props) })), l = `artifax:dreamer:${e.workspaceId}:${e.userId}:${e.conversationId}:${n}`, c = (d) => {
76826
+ s && e.onSubmit({ question_id: n, answer: d }, answerSummary(d));
76965
76827
  };
76966
- return e.uiProps._inline_question === !0 ? s ? /* @__PURE__ */ jsx("div", { className: "dreamer-panel dreamer-inline-form", children: /* @__PURE__ */ jsx(Question, { question: { id: n, prompt: text$1(t.prompt), config: object(t.config) }, storageKey: h, disabled: !!e.uiProps._submitting, onSubmit: g }, n) }) : null : /* @__PURE__ */ jsxs("div", { className: "dreamer-panel dreamer-stack", "data-testid": "dreamer-panel", "data-run-id": text$1(e.uiProps.run_id), children: [
76828
+ return e.uiProps._inline_question === !0 ? s ? /* @__PURE__ */ jsx("div", { className: "dreamer-panel dreamer-inline-form", children: /* @__PURE__ */ jsx(Question, { question: { id: n, prompt: text$1(t.prompt), config: object(t.config) }, storageKey: l, disabled: !!e.uiProps._submitting, onSubmit: c }, n) }) : null : /* @__PURE__ */ jsxs("div", { className: "dreamer-panel dreamer-stack", "data-testid": "dreamer-panel", "data-run-id": text$1(e.uiProps.run_id), children: [
76967
76829
  /* @__PURE__ */ jsx("h2", { children: text$1(e.uiProps.title) || "Artifax" }),
76968
76830
  text$1(e.uiProps.summary) && /* @__PURE__ */ jsx("p", { children: text$1(e.uiProps.summary) }),
76969
76831
  text$1(e.uiProps.error) && /* @__PURE__ */ jsx("p", { role: "alert", children: text$1(e.uiProps.error) }),
76970
- o.map((v, C) => /* @__PURE__ */ jsx(DreamerResults, { result: v }, C)),
76971
- !s && l && c && d && /* @__PURE__ */ jsx(Regenerate, { ctx: l, threadId: c, send: d }, c),
76972
- s && /* @__PURE__ */ jsx(Question, { question: { id: n, prompt: text$1(t.prompt), config: object(t.config) }, storageKey: h, disabled: !!e.uiProps._submitting, onSubmit: g }, n),
76832
+ o.map((d, h) => /* @__PURE__ */ jsx(DreamerResults, { result: d }, h)),
76833
+ s && /* @__PURE__ */ jsx(Question, { question: { id: n, prompt: text$1(t.prompt), config: object(t.config) }, storageKey: l, disabled: !!e.uiProps._submitting, onSubmit: c }, n),
76973
76834
  !s && n && (e.submitted ? /* @__PURE__ */ jsx(DreamerSubmittedSummary, { ...e, question: t, answer: e.submittedValues?.answer ?? e.submittedValues?.value ?? "Answer received." }) : /* @__PURE__ */ jsx("p", { className: "dreamer-muted", children: "This question is no longer active." })),
76974
76835
  !n && !o.length && !e.uiProps.summary && /* @__PURE__ */ jsx("p", { className: "dreamer-muted", children: "Your Artifax results will appear here." })
76975
76836
  ] });
@@ -94690,7 +94551,7 @@ Error generating stack: ` + te.message + `
94690
94551
  var M = E[Jt];
94691
94552
  return M || (M = E[Jt] = { hoistableStyles: /* @__PURE__ */ new Map(), hoistableScripts: /* @__PURE__ */ new Map() }), M;
94692
94553
  }
94693
- function or(E) {
94554
+ function lr(E) {
94694
94555
  E[Sn] = !0;
94695
94556
  }
94696
94557
  var _r = /* @__PURE__ */ new Set(), Nr = {};
@@ -94704,11 +94565,11 @@ Error generating stack: ` + te.message + `
94704
94565
  var cr = RegExp(
94705
94566
  "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
94706
94567
  ), si = {}, Ka = {};
94707
- function lr(E) {
94568
+ function sr(E) {
94708
94569
  return Fn.call(Ka, E) ? !0 : Fn.call(si, E) ? !1 : cr.test(E) ? Ka[E] = !0 : (si[E] = !0, !1);
94709
94570
  }
94710
94571
  function $a(E, M, V) {
94711
- if (lr(M))
94572
+ if (sr(M))
94712
94573
  if (V === null) E.removeAttribute(M);
94713
94574
  else {
94714
94575
  switch (typeof V) {
@@ -95018,9 +94879,9 @@ Error generating stack: ` + te.message + `
95018
94879
  ["writingMode", "writing-mode"],
95019
94880
  ["xmlnsXlink", "xmlns:xlink"],
95020
94881
  ["xHeight", "x-height"]
95021
- ]), Xr = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
94882
+ ]), Yr = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
95022
94883
  function Qa(E) {
95023
- return Xr.test("" + E) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : E;
94884
+ return Yr.test("" + E) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : E;
95024
94885
  }
95025
94886
  function ji() {
95026
94887
  }
@@ -95483,7 +95344,7 @@ Error generating stack: ` + te.message + `
95483
95344
  for (; E && E.firstChild; ) E = E.firstChild;
95484
95345
  return E;
95485
95346
  }
95486
- function Yr(E, M) {
95347
+ function Kr(E, M) {
95487
95348
  var V = Lr(E);
95488
95349
  E = 0;
95489
95350
  for (var te; V; ) {
@@ -95505,8 +95366,8 @@ Error generating stack: ` + te.message + `
95505
95366
  V = Lr(V);
95506
95367
  }
95507
95368
  }
95508
- function ea(E, M) {
95509
- return E && M ? E === M ? !0 : E && E.nodeType === 3 ? !1 : M && M.nodeType === 3 ? ea(E, M.parentNode) : "contains" in E ? E.contains(M) : E.compareDocumentPosition ? !!(E.compareDocumentPosition(M) & 16) : !1 : !1;
95369
+ function Qr(E, M) {
95370
+ return E && M ? E === M ? !0 : E && E.nodeType === 3 ? !1 : M && M.nodeType === 3 ? Qr(E, M.parentNode) : "contains" in E ? E.contains(M) : E.compareDocumentPosition ? !!(E.compareDocumentPosition(M) & 16) : !1 : !1;
95510
95371
  }
95511
95372
  function sa(E) {
95512
95373
  E = E != null && E.ownerDocument != null && E.ownerDocument.defaultView != null ? E.ownerDocument.defaultView : window;
@@ -95785,31 +95646,31 @@ Error generating stack: ` + te.message + `
95785
95646
  var M = E.stateNode, V = E.type, te = E.memoizedProps;
95786
95647
  switch (M[ct] = E, M[St] = te, V) {
95787
95648
  case "dialog":
95788
- Wr("cancel", M), Wr("close", M);
95649
+ Xr("cancel", M), Xr("close", M);
95789
95650
  break;
95790
95651
  case "iframe":
95791
95652
  case "object":
95792
95653
  case "embed":
95793
- Wr("load", M);
95654
+ Xr("load", M);
95794
95655
  break;
95795
95656
  case "video":
95796
95657
  case "audio":
95797
95658
  for (V = 0; V < Uf.length; V++)
95798
- Wr(Uf[V], M);
95659
+ Xr(Uf[V], M);
95799
95660
  break;
95800
95661
  case "source":
95801
- Wr("error", M);
95662
+ Xr("error", M);
95802
95663
  break;
95803
95664
  case "img":
95804
95665
  case "image":
95805
95666
  case "link":
95806
- Wr("error", M), Wr("load", M);
95667
+ Xr("error", M), Xr("load", M);
95807
95668
  break;
95808
95669
  case "details":
95809
- Wr("toggle", M);
95670
+ Xr("toggle", M);
95810
95671
  break;
95811
95672
  case "input":
95812
- Wr("invalid", M), oi(
95673
+ Xr("invalid", M), oi(
95813
95674
  M,
95814
95675
  te.value,
95815
95676
  te.defaultValue,
@@ -95821,12 +95682,12 @@ Error generating stack: ` + te.message + `
95821
95682
  );
95822
95683
  break;
95823
95684
  case "select":
95824
- Wr("invalid", M);
95685
+ Xr("invalid", M);
95825
95686
  break;
95826
95687
  case "textarea":
95827
- Wr("invalid", M), ld(M, te.value, te.defaultValue, te.children);
95688
+ Xr("invalid", M), ld(M, te.value, te.defaultValue, te.children);
95828
95689
  }
95829
- V = te.children, typeof V != "string" && typeof V != "number" && typeof V != "bigint" || M.textContent === "" + V || te.suppressHydrationWarning === !0 || R0(M.textContent, V) ? (te.popover != null && (Wr("beforetoggle", M), Wr("toggle", M)), te.onScroll != null && Wr("scroll", M), te.onScrollEnd != null && Wr("scrollend", M), te.onClick != null && (M.onclick = ji), M = !0) : M = !1, M || js(E, !0);
95690
+ V = te.children, typeof V != "string" && typeof V != "number" && typeof V != "bigint" || M.textContent === "" + V || te.suppressHydrationWarning === !0 || R0(M.textContent, V) ? (te.popover != null && (Xr("beforetoggle", M), Xr("toggle", M)), te.onScroll != null && Xr("scroll", M), te.onScrollEnd != null && Xr("scrollend", M), te.onClick != null && (M.onclick = ji), M = !0) : M = !1, M || js(E, !0);
95830
95691
  }
95831
95692
  function lc(E) {
95832
95693
  for (ki = E.return; ki; )
@@ -95993,7 +95854,7 @@ Error generating stack: ` + te.message + `
95993
95854
  return V();
95994
95855
  });
95995
95856
  };
95996
- }, Rp = t.unstable_scheduleCallback, Iu = t.unstable_NormalPriority, Qr = {
95857
+ }, Rp = t.unstable_scheduleCallback, Iu = t.unstable_NormalPriority, Jr = {
95997
95858
  $$typeof: ne,
95998
95859
  Consumer: null,
95999
95860
  Provider: null,
@@ -96069,7 +95930,7 @@ Error generating stack: ` + te.message + `
96069
95930
  }
96070
95931
  function vr() {
96071
95932
  var E = Xn();
96072
- return E === null ? null : { parent: Qr._currentValue, pool: E };
95933
+ return E === null ? null : { parent: Jr._currentValue, pool: E };
96073
95934
  }
96074
95935
  var $r = Error(o(460)), wa = Error(o(474)), Oi = Error(o(542)), Ua = { then: function() {
96075
95936
  } };
@@ -96326,7 +96187,7 @@ Error generating stack: ` + te.message + `
96326
96187
  }
96327
96188
  return null;
96328
96189
  }
96329
- function sr(bn, hn, _n, Bn) {
96190
+ function or(bn, hn, _n, Bn) {
96330
96191
  for (var mr = null, oa = null, pr = hn, Ar = hn = 0, Pr = null; pr !== null && Ar < _n.length; Ar++) {
96331
96192
  pr.index > Ar ? (Pr = pr, pr = null) : Pr = pr.sibling;
96332
96193
  var da = Tn(
@@ -96468,7 +96329,7 @@ Error generating stack: ` + te.message + `
96468
96329
  );
96469
96330
  }
96470
96331
  if (et(_n))
96471
- return sr(
96332
+ return or(
96472
96333
  bn,
96473
96334
  hn,
96474
96335
  _n,
@@ -96540,7 +96401,7 @@ Error generating stack: ` + te.message + `
96540
96401
  function sl(E) {
96541
96402
  return { lane: E, tag: 0, payload: null, callback: null, next: null };
96542
96403
  }
96543
- function Kr(E, M, V) {
96404
+ function Gr(E, M, V) {
96544
96405
  var te = E.updateQueue;
96545
96406
  if (te === null) return null;
96546
96407
  if (te = te.shared, (ua & 2) !== 0) {
@@ -96607,7 +96468,7 @@ Error generating stack: ` + te.message + `
96607
96468
  xt = 0, On = En = sn = null, zt = qe;
96608
96469
  do {
96609
96470
  var Tn = zt.lane & -536870913, Ln = Tn !== zt.lane;
96610
- if (Ln ? (Gr & Tn) === Tn : (te & Tn) === Tn) {
96471
+ if (Ln ? (qr & Tn) === Tn : (te & Tn) === Tn) {
96611
96472
  Tn !== 0 && Tn === ms && (jg = !0), On !== null && (On = On.next = {
96612
96473
  lane: 0,
96613
96474
  tag: zt.tag,
@@ -96616,21 +96477,21 @@ Error generating stack: ` + te.message + `
96616
96477
  next: null
96617
96478
  });
96618
96479
  e: {
96619
- var sr = E, yr = zt;
96480
+ var or = E, yr = zt;
96620
96481
  Tn = M;
96621
96482
  var ka = V;
96622
96483
  switch (yr.tag) {
96623
96484
  case 1:
96624
- if (sr = yr.payload, typeof sr == "function") {
96625
- Hn = sr.call(ka, Hn, Tn);
96485
+ if (or = yr.payload, typeof or == "function") {
96486
+ Hn = or.call(ka, Hn, Tn);
96626
96487
  break e;
96627
96488
  }
96628
- Hn = sr;
96489
+ Hn = or;
96629
96490
  break e;
96630
96491
  case 3:
96631
- sr.flags = sr.flags & -65537 | 128;
96492
+ or.flags = or.flags & -65537 | 128;
96632
96493
  case 0:
96633
- if (sr = yr.payload, Tn = typeof sr == "function" ? sr.call(ka, Hn, Tn) : sr, Tn == null) break e;
96494
+ if (or = yr.payload, Tn = typeof or == "function" ? or.call(ka, Hn, Tn) : or, Tn == null) break e;
96634
96495
  Hn = N({}, Hn, Tn);
96635
96496
  break e;
96636
96497
  case 2:
@@ -96859,7 +96720,7 @@ Error generating stack: ` + te.message + `
96859
96720
  var zt = xt = null, sn = null, En = M, On = !1;
96860
96721
  do {
96861
96722
  var Hn = En.lane & -536870913;
96862
- if (Hn !== En.lane ? (Gr & Hn) === Hn : (hc & Hn) === Hn) {
96723
+ if (Hn !== En.lane ? (qr & Hn) === Hn : (hc & Hn) === Hn) {
96863
96724
  var Tn = En.revertLane;
96864
96725
  if (Tn === 0)
96865
96726
  sn !== null && (sn = sn.next = {
@@ -97266,10 +97127,10 @@ Error generating stack: ` + te.message + `
97266
97127
  return V.memoizedState = [te, M], te;
97267
97128
  }
97268
97129
  function zp(E, M, V) {
97269
- return V === void 0 || (hc & 1073741824) !== 0 && (Gr & 261930) === 0 ? E.memoizedState = M : (E.memoizedState = V, E = lv(), Rr.lanes |= E, Fl |= E, V);
97130
+ return V === void 0 || (hc & 1073741824) !== 0 && (qr & 261930) === 0 ? E.memoizedState = M : (E.memoizedState = V, E = lv(), Rr.lanes |= E, Fl |= E, V);
97270
97131
  }
97271
97132
  function xc(E, M, V, te) {
97272
- return Kn(V, M) ? V : Pi.current !== null ? (E = zp(E, V, te), Kn(E, M) || (xi = !0), E) : (hc & 42) === 0 || (hc & 1073741824) !== 0 && (Gr & 261930) === 0 ? (xi = !0, E.memoizedState = V) : (E = lv(), Rr.lanes |= E, Fl |= E, M);
97133
+ return Kn(V, M) ? V : Pi.current !== null ? (E = zp(E, V, te), Kn(E, M) || (xi = !0), E) : (hc & 42) === 0 || (hc & 1073741824) !== 0 && (qr & 261930) === 0 ? (xi = !0, E.memoizedState = V) : (E = lv(), Rr.lanes |= E, Fl |= E, M);
97273
97134
  }
97274
97135
  function om(E, M, V, te, Be) {
97275
97136
  var qe = it.p;
@@ -97379,7 +97240,7 @@ Error generating stack: ` + te.message + `
97379
97240
  case 3:
97380
97241
  var V = wo();
97381
97242
  E = sl(V);
97382
- var te = Kr(M, E, V);
97243
+ var te = Gr(M, E, V);
97383
97244
  te !== null && (io(te, M, V), jl(te, M, V)), M = { cache: Do() }, E.payload = M;
97384
97245
  return;
97385
97246
  }
@@ -97584,7 +97445,7 @@ Error generating stack: ` + te.message + `
97584
97445
  } else {
97585
97446
  if (V = M(), Ca === null)
97586
97447
  throw Error(o(349));
97587
- (Gr & 127) !== 0 || Op(te, M, V);
97448
+ (qr & 127) !== 0 || Op(te, M, V);
97588
97449
  }
97589
97450
  Be.memoizedState = V;
97590
97451
  var qe = { value: V, getSnapshot: M };
@@ -97744,17 +97605,17 @@ Error generating stack: ` + te.message + `
97744
97605
  enqueueSetState: function(E, M, V) {
97745
97606
  E = E._reactInternals;
97746
97607
  var te = wo(), Be = sl(te);
97747
- Be.payload = M, V != null && (Be.callback = V), M = Kr(E, Be, te), M !== null && (io(M, E, te), jl(M, E, te));
97608
+ Be.payload = M, V != null && (Be.callback = V), M = Gr(E, Be, te), M !== null && (io(M, E, te), jl(M, E, te));
97748
97609
  },
97749
97610
  enqueueReplaceState: function(E, M, V) {
97750
97611
  E = E._reactInternals;
97751
97612
  var te = wo(), Be = sl(te);
97752
- Be.tag = 1, Be.payload = M, V != null && (Be.callback = V), M = Kr(E, Be, te), M !== null && (io(M, E, te), jl(M, E, te));
97613
+ Be.tag = 1, Be.payload = M, V != null && (Be.callback = V), M = Gr(E, Be, te), M !== null && (io(M, E, te), jl(M, E, te));
97753
97614
  },
97754
97615
  enqueueForceUpdate: function(E, M) {
97755
97616
  E = E._reactInternals;
97756
97617
  var V = wo(), te = sl(V);
97757
- te.tag = 2, M != null && (te.callback = M), M = Kr(E, te, V), M !== null && (io(M, E, V), jl(M, E, V));
97618
+ te.tag = 2, M != null && (te.callback = M), M = Gr(E, te, V), M !== null && (io(M, E, V), jl(M, E, V));
97758
97619
  }
97759
97620
  };
97760
97621
  function Kg(E, M, V, te, Be, qe, xt) {
@@ -98006,7 +97867,7 @@ Error generating stack: ` + te.message + `
98006
97867
  }
98007
97868
  function eo(E, M, V, te, Be) {
98008
97869
  var qe = Xn();
98009
- return qe = qe === null ? null : { parent: Qr._currentValue, pool: qe }, M.memoizedState = {
97870
+ return qe = qe === null ? null : { parent: Jr._currentValue, pool: qe }, M.memoizedState = {
98010
97871
  baseLanes: V,
98011
97872
  cachePool: qe
98012
97873
  }, E !== null && Qn(M, null), jp(), Wh(M), E !== null && $i(E, M, te, !0), M.childLanes = Be, null;
@@ -98282,7 +98143,7 @@ Error generating stack: ` + te.message + `
98282
98143
  Be,
98283
98144
  V,
98284
98145
  null
98285
- ), zt.flags |= 2), zt.return = M, te.return = M, te.sibling = zt, M.child = te, Hu(null, te), te = M.child, zt = E.child.memoizedState, zt === null ? zt = Wp(V) : (Be = zt.cachePool, Be !== null ? (sn = Qr._currentValue, Be = Be.parent !== sn ? { parent: sn, pool: sn } : Be) : Be = vr(), zt = {
98146
+ ), zt.flags |= 2), zt.return = M, te.return = M, te.sibling = zt, M.child = te, Hu(null, te), te = M.child, zt = E.child.memoizedState, zt === null ? zt = Wp(V) : (Be = zt.cachePool, Be !== null ? (sn = Jr._currentValue, Be = Be.parent !== sn ? { parent: sn, pool: sn } : Be) : Be = vr(), zt = {
98286
98147
  baseLanes: zt.baseLanes | V,
98287
98148
  cachePool: Be
98288
98149
  }), te.memoizedState = zt, te.childLanes = Po(
@@ -98420,7 +98281,7 @@ Error generating stack: ` + te.message + `
98420
98281
  function xm(E, M, V) {
98421
98282
  switch (M.tag) {
98422
98283
  case 3:
98423
- At(M, M.stateNode.containerInfo), Ii(M, Qr, E.memoizedState.cache), Ra();
98284
+ At(M, M.stateNode.containerInfo), Ii(M, Jr, E.memoizedState.cache), Ra();
98424
98285
  break;
98425
98286
  case 27:
98426
98287
  case 5:
@@ -98476,7 +98337,7 @@ Error generating stack: ` + te.message + `
98476
98337
  M.pendingProps
98477
98338
  );
98478
98339
  case 24:
98479
- Ii(M, Qr, E.memoizedState.cache);
98340
+ Ii(M, Jr, E.memoizedState.cache);
98480
98341
  }
98481
98342
  return Fo(E, M, V);
98482
98343
  }
@@ -98569,9 +98430,9 @@ Error generating stack: ` + te.message + `
98569
98430
  var qe = M.memoizedState;
98570
98431
  Be = qe.element, xf(E, M), fc(M, te, null, V);
98571
98432
  var xt = M.memoizedState;
98572
- if (te = xt.cache, Ii(M, Qr, te), te !== qe.cache && hs(
98433
+ if (te = xt.cache, Ii(M, Jr, te), te !== qe.cache && hs(
98573
98434
  M,
98574
- [Qr],
98435
+ [Jr],
98575
98436
  V,
98576
98437
  !0
98577
98438
  ), Fu(), te = xt.element, qe.isDehydrated)
@@ -98628,7 +98489,7 @@ Error generating stack: ` + te.message + `
98628
98489
  null
98629
98490
  )) ? M.memoizedState = V : Ir || (V = M.type, E = M.pendingProps, te = Zu(
98630
98491
  vt.current
98631
- ).createElement(V), te[ct] = M, te[St] = E, gs(te, V, E), or(te), M.stateNode = te) : M.memoizedState = Yf(
98492
+ ).createElement(V), te[ct] = M, te[St] = E, gs(te, V, E), lr(te), M.stateNode = te) : M.memoizedState = Yf(
98632
98493
  M.type,
98633
98494
  E.memoizedProps,
98634
98495
  M.pendingProps,
@@ -98738,9 +98599,9 @@ Error generating stack: ` + te.message + `
98738
98599
  M.pendingProps
98739
98600
  );
98740
98601
  case 24:
98741
- return Sr(M), te = Un(Qr), E === null ? (Be = Xn(), Be === null && (Be = Ca, qe = Do(), Be.pooledCache = qe, qe.refCount++, qe !== null && (Be.pooledCacheLanes |= V), Be = qe), M.memoizedState = { parent: te, cache: Be }, gf(M), Ii(M, Qr, Be)) : ((E.lanes & V) !== 0 && (xf(E, M), fc(M, null, null, V), Fu()), Be = E.memoizedState, qe = M.memoizedState, Be.parent !== te ? (Be = { parent: te, cache: te }, M.memoizedState = Be, M.lanes === 0 && (M.memoizedState = M.updateQueue.baseState = Be), Ii(M, Qr, te)) : (te = qe.cache, Ii(M, Qr, te), te !== Be.cache && hs(
98602
+ return Sr(M), te = Un(Jr), E === null ? (Be = Xn(), Be === null && (Be = Ca, qe = Do(), Be.pooledCache = qe, qe.refCount++, qe !== null && (Be.pooledCacheLanes |= V), Be = qe), M.memoizedState = { parent: te, cache: Be }, gf(M), Ii(M, Jr, Be)) : ((E.lanes & V) !== 0 && (xf(E, M), fc(M, null, null, V), Fu()), Be = E.memoizedState, qe = M.memoizedState, Be.parent !== te ? (Be = { parent: te, cache: te }, M.memoizedState = Be, M.lanes === 0 && (M.memoizedState = M.updateQueue.baseState = Be), Ii(M, Jr, te)) : (te = qe.cache, Ii(M, Jr, te), te !== Be.cache && hs(
98742
98603
  M,
98743
- [Qr],
98604
+ [Jr],
98744
98605
  V,
98745
98606
  !0
98746
98607
  ))), Pa(
@@ -98819,7 +98680,7 @@ Error generating stack: ` + te.message + `
98819
98680
  case 1:
98820
98681
  return Er(M), null;
98821
98682
  case 3:
98822
- return V = M.stateNode, te = null, E !== null && (te = E.memoizedState.cache), M.memoizedState.cache !== te && (M.flags |= 2048), Ks(Qr), pt(), V.pendingContext && (V.context = V.pendingContext, V.pendingContext = null), (E === null || E.child === null) && (Mo(M) ? yc(M) : E === null || E.memoizedState.isDehydrated && (M.flags & 256) === 0 || (M.flags |= 1024, Np())), Er(M), null;
98683
+ return V = M.stateNode, te = null, E !== null && (te = E.memoizedState.cache), M.memoizedState.cache !== te && (M.flags |= 2048), Ks(Jr), pt(), V.pendingContext && (V.context = V.pendingContext, V.pendingContext = null), (E === null || E.child === null) && (Mo(M) ? yc(M) : E === null || E.memoizedState.isDehydrated && (M.flags & 256) === 0 || (M.flags |= 1024, Np())), Er(M), null;
98823
98684
  case 26:
98824
98685
  var Be = M.type, qe = M.memoizedState;
98825
98686
  return E === null ? (yc(M), qe !== null ? (Er(M), c0(M, qe)) : (Er(M), l0(
@@ -99037,7 +98898,7 @@ Error generating stack: ` + te.message + `
99037
98898
  case 23:
99038
98899
  return Js(M), vf(), te = M.memoizedState !== null, E !== null ? E.memoizedState !== null !== te && (M.flags |= 8192) : te && (M.flags |= 8192), te ? (V & 536870912) !== 0 && (M.flags & 128) === 0 && (Er(M), M.subtreeFlags & 6 && (M.flags |= 8192)) : Er(M), V = M.updateQueue, V !== null && Ls(M, V.retryQueue), V = null, E !== null && E.memoizedState !== null && E.memoizedState.cachePool !== null && (V = E.memoizedState.cachePool.pool), te = null, M.memoizedState !== null && M.memoizedState.cachePool !== null && (te = M.memoizedState.cachePool.pool), te !== V && (M.flags |= 2048), E !== null && ke(kn), null;
99039
98900
  case 24:
99040
- return V = null, E !== null && (V = E.memoizedState.cache), M.memoizedState.cache !== V && (M.flags |= 2048), Ks(Qr), Er(M), null;
98901
+ return V = null, E !== null && (V = E.memoizedState.cache), M.memoizedState.cache !== V && (M.flags |= 2048), Ks(Jr), Er(M), null;
99041
98902
  case 25:
99042
98903
  return null;
99043
98904
  case 30:
@@ -99050,7 +98911,7 @@ Error generating stack: ` + te.message + `
99050
98911
  case 1:
99051
98912
  return E = M.flags, E & 65536 ? (M.flags = E & -65537 | 128, M) : null;
99052
98913
  case 3:
99053
- return Ks(Qr), pt(), E = M.flags, (E & 65536) !== 0 && (E & 128) === 0 ? (M.flags = E & -65537 | 128, M) : null;
98914
+ return Ks(Jr), pt(), E = M.flags, (E & 65536) !== 0 && (E & 128) === 0 ? (M.flags = E & -65537 | 128, M) : null;
99054
98915
  case 26:
99055
98916
  case 27:
99056
98917
  case 5:
@@ -99079,7 +98940,7 @@ Error generating stack: ` + te.message + `
99079
98940
  case 23:
99080
98941
  return Js(M), vf(), E !== null && ke(kn), E = M.flags, E & 65536 ? (M.flags = E & -65537 | 128, M) : null;
99081
98942
  case 24:
99082
- return Ks(Qr), null;
98943
+ return Ks(Jr), null;
99083
98944
  case 25:
99084
98945
  return null;
99085
98946
  default:
@@ -99089,7 +98950,7 @@ Error generating stack: ` + te.message + `
99089
98950
  function av(E, M) {
99090
98951
  switch (il(M), M.tag) {
99091
98952
  case 3:
99092
- Ks(Qr), pt();
98953
+ Ks(Jr), pt();
99093
98954
  break;
99094
98955
  case 26:
99095
98956
  case 27:
@@ -99116,7 +98977,7 @@ Error generating stack: ` + te.message + `
99116
98977
  Js(M), vf(), E !== null && ke(kn);
99117
98978
  break;
99118
98979
  case 24:
99119
- Ks(Qr);
98980
+ Ks(Jr);
99120
98981
  }
99121
98982
  }
99122
98983
  function ll(E, M) {
@@ -99354,12 +99215,12 @@ Error generating stack: ` + te.message + `
99354
99215
  if ((E & 1024) !== 0 && qe !== null) {
99355
99216
  E = void 0, V = M, Be = qe.memoizedProps, qe = qe.memoizedState, te = V.stateNode;
99356
99217
  try {
99357
- var sr = Uu(
99218
+ var or = Uu(
99358
99219
  V.type,
99359
99220
  Be
99360
99221
  );
99361
99222
  E = te.getSnapshotBeforeUpdate(
99362
- sr,
99223
+ or,
99363
99224
  qe
99364
99225
  ), te.__reactInternalSnapshotBeforeUpdate = E;
99365
99226
  } catch (yr) {
@@ -99710,7 +99571,7 @@ Error generating stack: ` + te.message + `
99710
99571
  qe = Be.getElementsByTagName("title")[0], (!qe || qe[Sn] || qe[ct] || qe.namespaceURI === "http://www.w3.org/2000/svg" || qe.hasAttribute("itemprop")) && (qe = Be.createElement(te), Be.head.insertBefore(
99711
99572
  qe,
99712
99573
  Be.querySelector("head > title")
99713
- )), gs(qe, te, V), qe[ct] = E, or(qe), te = qe;
99574
+ )), gs(qe, te, V), qe[ct] = E, lr(qe), te = qe;
99714
99575
  break e;
99715
99576
  case "link":
99716
99577
  var xt = z0(
@@ -99744,7 +99605,7 @@ Error generating stack: ` + te.message + `
99744
99605
  default:
99745
99606
  throw Error(o(468, te));
99746
99607
  }
99747
- qe[ct] = E, or(qe), te = qe;
99608
+ qe[ct] = E, lr(qe), te = qe;
99748
99609
  }
99749
99610
  E.stateNode = te;
99750
99611
  } else
@@ -99787,8 +99648,8 @@ Error generating stack: ` + te.message + `
99787
99648
  Be = E.stateNode;
99788
99649
  try {
99789
99650
  ws(Be, "");
99790
- } catch (sr) {
99791
- va(E, E.return, sr);
99651
+ } catch (or) {
99652
+ va(E, E.return, or);
99792
99653
  }
99793
99654
  }
99794
99655
  te & 4 && E.stateNode != null && (Be = E.memoizedProps, ym(
@@ -99804,8 +99665,8 @@ Error generating stack: ` + te.message + `
99804
99665
  te = E.memoizedProps, V = E.stateNode;
99805
99666
  try {
99806
99667
  V.nodeValue = te;
99807
- } catch (sr) {
99808
- va(E, E.return, sr);
99668
+ } catch (or) {
99669
+ va(E, E.return, or);
99809
99670
  }
99810
99671
  }
99811
99672
  break;
@@ -99813,8 +99674,8 @@ Error generating stack: ` + te.message + `
99813
99674
  if (Qf = null, Be = Or, Or = Is(M.containerInfo), ro(M, E), Or = Be, vo(E), te & 4 && V !== null && V.memoizedState.isDehydrated)
99814
99675
  try {
99815
99676
  rp(M.containerInfo);
99816
- } catch (sr) {
99817
- va(E, E.return, sr);
99677
+ } catch (or) {
99678
+ va(E, E.return, or);
99818
99679
  }
99819
99680
  bm && (bm = !1, x0(E));
99820
99681
  break;
@@ -99848,8 +99709,8 @@ Error generating stack: ` + te.message + `
99848
99709
  var Hn = sn.memoizedProps.style, Tn = Hn != null && Hn.hasOwnProperty("display") ? Hn.display : null;
99849
99710
  zt.style.display = Tn == null || typeof Tn == "boolean" ? "" : ("" + Tn).trim();
99850
99711
  }
99851
- } catch (sr) {
99852
- va(sn, sn.return, sr);
99712
+ } catch (or) {
99713
+ va(sn, sn.return, or);
99853
99714
  }
99854
99715
  }
99855
99716
  } else if (M.tag === 6) {
@@ -99857,8 +99718,8 @@ Error generating stack: ` + te.message + `
99857
99718
  sn = M;
99858
99719
  try {
99859
99720
  sn.stateNode.nodeValue = Be ? "" : sn.memoizedProps;
99860
- } catch (sr) {
99861
- va(sn, sn.return, sr);
99721
+ } catch (or) {
99722
+ va(sn, sn.return, or);
99862
99723
  }
99863
99724
  }
99864
99725
  } else if (M.tag === 18) {
@@ -99867,8 +99728,8 @@ Error generating stack: ` + te.message + `
99867
99728
  try {
99868
99729
  var Ln = sn.stateNode;
99869
99730
  Be ? vi(Ln, !0) : vi(sn.stateNode, !1);
99870
- } catch (sr) {
99871
- va(sn, sn.return, sr);
99731
+ } catch (or) {
99732
+ va(sn, sn.return, or);
99872
99733
  }
99873
99734
  }
99874
99735
  } else if ((M.tag !== 22 && M.tag !== 23 || M.memoizedState === null || M === E) && M.child !== null) {
@@ -100453,19 +100314,19 @@ Error generating stack: ` + te.message + `
100453
100314
  }
100454
100315
  var ov = {
100455
100316
  getCacheForType: function(E) {
100456
- var M = Un(Qr), V = M.data.get(E);
100317
+ var M = Un(Jr), V = M.data.get(E);
100457
100318
  return V === void 0 && (V = E(), M.data.set(E, V)), V;
100458
100319
  },
100459
100320
  cacheSignal: function() {
100460
- return Un(Qr).controller.signal;
100321
+ return Un(Jr).controller.signal;
100461
100322
  }
100462
- }, y0 = typeof WeakMap == "function" ? WeakMap : Map, ua = 0, Ca = null, Zr = null, Gr = 0, xa = 0, wr = null, Sc = !1, Xu = !1, km = !1, Pl = 0, Ma = 0, Fl = 0, jd = 0, Tm = 0, ao = 0, ri = 0, eh = null, ai = null, $m = !1, Bl = 0, b0 = 0, pa = 1 / 0, If = null, Ga = null, Fi = 0, pu = null, Yu = null, Cc = 0, bo = 0, Am = null, Nm = null, Of = 0, th = null;
100323
+ }, y0 = typeof WeakMap == "function" ? WeakMap : Map, ua = 0, Ca = null, Zr = null, qr = 0, xa = 0, wr = null, Sc = !1, Xu = !1, km = !1, Pl = 0, Ma = 0, Fl = 0, jd = 0, Tm = 0, ao = 0, ri = 0, eh = null, ai = null, $m = !1, Bl = 0, b0 = 0, pa = 1 / 0, If = null, Ga = null, Fi = 0, pu = null, Yu = null, Cc = 0, bo = 0, Am = null, Nm = null, Of = 0, th = null;
100463
100324
  function wo() {
100464
- return (ua & 2) !== 0 && Gr !== 0 ? Gr & -Gr : Qe.T !== null ? Lm() : tt();
100325
+ return (ua & 2) !== 0 && qr !== 0 ? qr & -qr : Qe.T !== null ? Lm() : tt();
100465
100326
  }
100466
100327
  function lv() {
100467
100328
  if (ao === 0)
100468
- if ((Gr & 536870912) === 0 || Ir) {
100329
+ if ((qr & 536870912) === 0 || Ir) {
100469
100330
  var E = wt;
100470
100331
  wt <<= 1, (wt & 3932160) === 0 && (wt = 262144), ao = E;
100471
100332
  } else ao = 536870912;
@@ -100474,12 +100335,12 @@ Error generating stack: ` + te.message + `
100474
100335
  function io(E, M, V) {
100475
100336
  (E === Ca && (xa === 2 || xa === 9) || E.cancelPendingCommit !== null) && (Ec(E, 0), hu(
100476
100337
  E,
100477
- Gr,
100338
+ qr,
100478
100339
  ao,
100479
100340
  !1
100480
100341
  )), yn(E, V), ((ua & 2) === 0 || E !== Ca) && (E === Ca && ((ua & 2) === 0 && (jd |= V), Ma === 4 && hu(
100481
100342
  E,
100482
- Gr,
100343
+ qr,
100483
100344
  ao,
100484
100345
  !1
100485
100346
  )), kc(E));
@@ -100621,12 +100482,12 @@ Error generating stack: ` + te.message + `
100621
100482
  qe,
100622
100483
  Hn
100623
100484
  );
100624
- var sr = (qe & 62914560) === qe ? Bl - nr() : (qe & 4194048) === qe ? b0 - nr() : 0;
100625
- if (sr = U0(
100485
+ var or = (qe & 62914560) === qe ? Bl - nr() : (qe & 4194048) === qe ? b0 - nr() : 0;
100486
+ if (or = U0(
100626
100487
  Hn,
100627
- sr
100628
- ), sr !== null) {
100629
- Cc = qe, E.cancelPendingCommit = sr(
100488
+ or
100489
+ ), or !== null) {
100490
+ Cc = qe, E.cancelPendingCommit = or(
100630
100491
  vv.bind(
100631
100492
  null,
100632
100493
  E,
@@ -100710,7 +100571,7 @@ Error generating stack: ` + te.message + `
100710
100571
  }
100711
100572
  function Ec(E, M) {
100712
100573
  var V = E.timeoutHandle;
100713
- V !== -1 && (E.timeoutHandle = -1, Dv(V)), V = E.cancelPendingCommit, V !== null && (E.cancelPendingCommit = null, V()), Cc = 0, w0(), Ca = E, Zr = V = Sl(E.current, null), Gr = M, xa = 0, wr = null, Sc = !1, Xu = _t(E, M), km = !1, ri = ao = Tm = jd = Fl = Ma = 0, ai = eh = null, $m = !1, (M & 8) !== 0 && (M |= M & 32);
100574
+ V !== -1 && (E.timeoutHandle = -1, Dv(V)), V = E.cancelPendingCommit, V !== null && (E.cancelPendingCommit = null, V()), Cc = 0, w0(), Ca = E, Zr = V = Sl(E.current, null), qr = M, xa = 0, wr = null, Sc = !1, Xu = _t(E, M), km = !1, ri = ao = Tm = jd = Fl = Ma = 0, ai = eh = null, $m = !1, (M & 8) !== 0 && (M |= M & 32);
100714
100575
  var te = E.entangledLanes;
100715
100576
  if (te !== 0)
100716
100577
  for (E = E.entanglements, te &= M; 0 < te; ) {
@@ -100727,7 +100588,7 @@ Error generating stack: ` + te.message + `
100727
100588
  }
100728
100589
  function dv() {
100729
100590
  var E = Qs.current;
100730
- return E === null ? !0 : (Gr & 4194048) === Gr ? Io === null : (Gr & 62914560) === Gr || (Gr & 536870912) !== 0 ? E === Io : !1;
100591
+ return E === null ? !0 : (qr & 4194048) === qr ? Io === null : (qr & 62914560) === qr || (qr & 536870912) !== 0 ? E === Io : !1;
100731
100592
  }
100732
100593
  function fv() {
100733
100594
  var E = Qe.H;
@@ -100738,9 +100599,9 @@ Error generating stack: ` + te.message + `
100738
100599
  return Qe.A = ov, E;
100739
100600
  }
100740
100601
  function Rm() {
100741
- Ma = 4, Sc || (Gr & 4194048) !== Gr && Qs.current !== null || (Xu = !0), (Fl & 134217727) === 0 && (jd & 134217727) === 0 || Ca === null || hu(
100602
+ Ma = 4, Sc || (qr & 4194048) !== qr && Qs.current !== null || (Xu = !0), (Fl & 134217727) === 0 && (jd & 134217727) === 0 || Ca === null || hu(
100742
100603
  Ca,
100743
- Gr,
100604
+ qr,
100744
100605
  ao,
100745
100606
  !1
100746
100607
  );
@@ -100749,7 +100610,7 @@ Error generating stack: ` + te.message + `
100749
100610
  var te = ua;
100750
100611
  ua |= 2;
100751
100612
  var Be = fv(), qe = pv();
100752
- (Ca !== E || Gr !== M) && (If = null, Ec(E, M)), M = !1;
100613
+ (Ca !== E || qr !== M) && (If = null, Ec(E, M)), M = !1;
100753
100614
  var xt = Ma;
100754
100615
  e: do
100755
100616
  try {
@@ -100780,7 +100641,7 @@ Error generating stack: ` + te.message + `
100780
100641
  Ff(E, On);
100781
100642
  }
100782
100643
  while (!0);
100783
- return M && E.shellSuspendCounter++, Ys = El = null, ua = te, Qe.H = Be, Qe.A = qe, Zr === null && (Ca = null, Gr = 0, Gs()), xt;
100644
+ return M && E.shellSuspendCounter++, Ys = El = null, ua = te, Qe.H = Be, Qe.A = qe, Zr === null && (Ca = null, qr = 0, Gs()), xt;
100784
100645
  }
100785
100646
  function H1() {
100786
100647
  for (; Zr !== null; ) mv(Zr);
@@ -100789,7 +100650,7 @@ Error generating stack: ` + te.message + `
100789
100650
  var V = ua;
100790
100651
  ua |= 2;
100791
100652
  var te = fv(), Be = pv();
100792
- Ca !== E || Gr !== M ? (If = null, pa = nr() + 500, Ec(E, M)) : Xu = _t(
100653
+ Ca !== E || qr !== M ? (If = null, pa = nr() + 500, Ec(E, M)) : Xu = _t(
100793
100654
  E,
100794
100655
  M
100795
100656
  );
@@ -100858,7 +100719,7 @@ Error generating stack: ` + te.message + `
100858
100719
  Ff(E, On);
100859
100720
  }
100860
100721
  while (!0);
100861
- return Ys = El = null, Qe.H = te, Qe.A = Be, ua = V, Zr !== null ? 0 : (Ca = null, Gr = 0, Gs(), Ma);
100722
+ return Ys = El = null, Qe.H = te, Qe.A = Be, ua = V, Zr !== null ? 0 : (Ca = null, qr = 0, Gs(), Ma);
100862
100723
  }
100863
100724
  function Ku() {
100864
100725
  for (; Zr !== null && !er(); )
@@ -100879,7 +100740,7 @@ Error generating stack: ` + te.message + `
100879
100740
  M.pendingProps,
100880
100741
  M.type,
100881
100742
  void 0,
100882
- Gr
100743
+ qr
100883
100744
  );
100884
100745
  break;
100885
100746
  case 11:
@@ -100889,7 +100750,7 @@ Error generating stack: ` + te.message + `
100889
100750
  M.pendingProps,
100890
100751
  M.type.render,
100891
100752
  M.ref,
100892
- Gr
100753
+ qr
100893
100754
  );
100894
100755
  break;
100895
100756
  case 5:
@@ -100908,7 +100769,7 @@ Error generating stack: ` + te.message + `
100908
100769
  Be,
100909
100770
  M,
100910
100771
  V,
100911
- Gr
100772
+ qr
100912
100773
  )) {
100913
100774
  Ma = 1, Tf(
100914
100775
  E,
@@ -100924,7 +100785,7 @@ Error generating stack: ` + te.message + `
100924
100785
  ), Zr = null;
100925
100786
  return;
100926
100787
  }
100927
- M.flags & 32768 ? (Ir || te === 1 ? E = !0 : Xu || (Gr & 536870912) !== 0 ? E = !1 : (Sc = E = !0, (te === 2 || te === 9 || te === 3 || te === 6) && (te = Qs.current, te !== null && te.tag === 13 && (te.flags |= 16384))), xv(M, E)) : rh(M);
100788
+ M.flags & 32768 ? (Ir || te === 1 ? E = !0 : Xu || (qr & 536870912) !== 0 ? E = !1 : (Sc = E = !0, (te === 2 || te === 9 || te === 3 || te === 6) && (te = Qs.current, te !== null && te.tag === 13 && (te.flags |= 16384))), xv(M, E)) : rh(M);
100928
100789
  }
100929
100790
  function rh(E) {
100930
100791
  var M = E;
@@ -100984,7 +100845,7 @@ Error generating stack: ` + te.message + `
100984
100845
  xt,
100985
100846
  zt,
100986
100847
  sn
100987
- ), E === Ca && (Zr = Ca = null, Gr = 0), Yu = M, pu = E, Cc = V, bo = qe, Am = Be, Nm = te, (M.subtreeFlags & 10256) !== 0 || (M.flags & 10256) !== 0 ? (E.callbackNode = null, E.callbackPriority = 0, Tv(Rn, function() {
100848
+ ), E === Ca && (Zr = Ca = null, qr = 0), Yu = M, pu = E, Cc = V, bo = qe, Am = Be, Nm = te, (M.subtreeFlags & 10256) !== 0 || (M.flags & 10256) !== 0 ? (E.callbackNode = null, E.callbackPriority = 0, Tv(Rn, function() {
100988
100849
  return Sv(), null;
100989
100850
  })) : (E.callbackNode = null, E.callbackPriority = 0), te = (M.flags & 13878) !== 0, (M.subtreeFlags & 13878) !== 0 || te) {
100990
100851
  te = Qe.T, Qe.T = null, Be = it.p, it.p = 2, xt = ua, ua |= 4;
@@ -101010,7 +100871,7 @@ Error generating stack: ` + te.message + `
101010
100871
  try {
101011
100872
  wm(M, E);
101012
100873
  var qe = zm, xt = sa(E.containerInfo), zt = qe.focusedElem, sn = qe.selectionRange;
101013
- if (xt !== zt && zt && zt.ownerDocument && ea(
100874
+ if (xt !== zt && zt && zt.ownerDocument && Qr(
101014
100875
  zt.ownerDocument.documentElement,
101015
100876
  zt
101016
100877
  )) {
@@ -101024,12 +100885,12 @@ Error generating stack: ` + te.message + `
101024
100885
  else {
101025
100886
  var Hn = zt.ownerDocument || document, Tn = Hn && Hn.defaultView || window;
101026
100887
  if (Tn.getSelection) {
101027
- var Ln = Tn.getSelection(), sr = zt.textContent.length, yr = Math.min(sn.start, sr), ka = sn.end === void 0 ? yr : Math.min(sn.end, sr);
100888
+ var Ln = Tn.getSelection(), or = zt.textContent.length, yr = Math.min(sn.start, or), ka = sn.end === void 0 ? yr : Math.min(sn.end, or);
101028
100889
  !Ln.extend && yr > ka && (xt = ka, ka = yr, yr = xt);
101029
- var bn = Yr(
100890
+ var bn = Kr(
101030
100891
  zt,
101031
100892
  yr
101032
- ), hn = Yr(
100893
+ ), hn = Kr(
101033
100894
  zt,
101034
100895
  ka
101035
100896
  );
@@ -101142,7 +101003,7 @@ Error generating stack: ` + te.message + `
101142
101003
  }
101143
101004
  }
101144
101005
  function Cv(E, M, V) {
101145
- M = Xi(V, M), M = Qg(E.stateNode, M, 2), E = Kr(E, M, 2), E !== null && (yn(E, 2), kc(E));
101006
+ M = Xi(V, M), M = Qg(E.stateNode, M, 2), E = Gr(E, M, 2), E !== null && (yn(E, 2), kc(E));
101146
101007
  }
101147
101008
  function va(E, M, V) {
101148
101009
  if (E.tag === 3)
@@ -101159,7 +101020,7 @@ Error generating stack: ` + te.message + `
101159
101020
  } else if (M.tag === 1) {
101160
101021
  var te = M.stateNode;
101161
101022
  if (typeof M.type.getDerivedStateFromError == "function" || typeof te.componentDidCatch == "function" && (Ga === null || !Ga.has(te))) {
101162
- E = Xi(V, E), V = Jg(2), te = Kr(M, V, 2), te !== null && (e0(
101023
+ E = Xi(V, E), V = Jg(2), te = Gr(M, V, 2), te !== null && (e0(
101163
101024
  V,
101164
101025
  te,
101165
101026
  M,
@@ -101183,7 +101044,7 @@ Error generating stack: ` + te.message + `
101183
101044
  }
101184
101045
  function _0(E, M, V) {
101185
101046
  var te = E.pingCache;
101186
- te !== null && te.delete(M), E.pingedLanes |= E.suspendedLanes & V, E.warmLanes &= ~V, Ca === E && (Gr & V) === V && (Ma === 4 || Ma === 3 && (Gr & 62914560) === Gr && 300 > nr() - Bl ? (ua & 2) === 0 && Ec(E, 0) : Tm |= V, ri === Gr && (ri = 0)), kc(E);
101047
+ te !== null && te.delete(M), E.pingedLanes |= E.suspendedLanes & V, E.warmLanes &= ~V, Ca === E && (qr & V) === V && (Ma === 4 || Ma === 3 && (qr & 62914560) === qr && 300 > nr() - Bl ? (ua & 2) === 0 && Ec(E, 0) : Tm |= V, ri === qr && (ri = 0)), kc(E);
101187
101048
  }
101188
101049
  function Ev(E, M) {
101189
101050
  M === 0 && (M = Xt()), E = nl(E, M), E !== null && (yn(E, M), kc(E));
@@ -101232,7 +101093,7 @@ Error generating stack: ` + te.message + `
101232
101093
  }
101233
101094
  qe !== 0 && (V = !0, Ld(te, qe));
101234
101095
  } else
101235
- qe = Gr, qe = Bt(
101096
+ qe = qr, qe = Bt(
101236
101097
  te,
101237
101098
  te === Ca ? qe : 0,
101238
101099
  te.cancelPendingCommit !== null || te.timeoutHandle !== -1
@@ -101261,7 +101122,7 @@ Error generating stack: ` + te.message + `
101261
101122
  var xt = 31 - Lt(qe), zt = 1 << xt, sn = Be[xt];
101262
101123
  sn === -1 ? ((zt & V) === 0 || (zt & te) !== 0) && (Be[xt] = Pt(zt, M)) : sn <= M && (E.expiredLanes |= zt), qe &= ~zt;
101263
101124
  }
101264
- if (M = Ca, V = Gr, V = Bt(
101125
+ if (M = Ca, V = qr, V = Bt(
101265
101126
  E,
101266
101127
  E === M ? V : 0,
101267
101128
  E.cancelPendingCommit !== null || E.timeoutHandle !== -1
@@ -101293,7 +101154,7 @@ Error generating stack: ` + te.message + `
101293
101154
  var V = E.callbackNode;
101294
101155
  if (Bf() && E.callbackNode !== V)
101295
101156
  return null;
101296
- var te = Gr;
101157
+ var te = qr;
101297
101158
  return te = Bt(
101298
101159
  E,
101299
101160
  E === Ca ? te : 0,
@@ -101448,7 +101309,7 @@ Error generating stack: ` + te.message + `
101448
101309
  }
101449
101310
  }
101450
101311
  }
101451
- function Wr(E, M) {
101312
+ function Xr(E, M) {
101452
101313
  var V = M[Mt];
101453
101314
  V === void 0 && (V = M[Mt] = /* @__PURE__ */ new Set());
101454
101315
  var te = E + "__bubble";
@@ -101528,7 +101389,7 @@ Error generating stack: ` + te.message + `
101528
101389
  e: {
101529
101390
  var Tn = go.get(E);
101530
101391
  if (Tn !== void 0) {
101531
- var Ln = _i, sr = E;
101392
+ var Ln = _i, or = E;
101532
101393
  switch (E) {
101533
101394
  case "keypress":
101534
101395
  if (Ql(V) === 0) break e;
@@ -101537,10 +101398,10 @@ Error generating stack: ` + te.message + `
101537
101398
  Ln = ec;
101538
101399
  break;
101539
101400
  case "focusin":
101540
- sr = "focus", Ln = Xc;
101401
+ or = "focus", Ln = Xc;
101541
101402
  break;
101542
101403
  case "focusout":
101543
- sr = "blur", Ln = Xc;
101404
+ or = "blur", Ln = Xc;
101544
101405
  break;
101545
101406
  case "beforeblur":
101546
101407
  case "afterblur":
@@ -101619,7 +101480,7 @@ Error generating stack: ` + te.message + `
101619
101480
  }
101620
101481
  0 < yr.length && (Tn = new Ln(
101621
101482
  Tn,
101622
- sr,
101483
+ or,
101623
101484
  null,
101624
101485
  V,
101625
101486
  On
@@ -101628,10 +101489,10 @@ Error generating stack: ` + te.message + `
101628
101489
  }
101629
101490
  if ((M & 7) === 0) {
101630
101491
  e: {
101631
- if (Tn = E === "mouseover" || E === "pointerover", Ln = E === "mouseout" || E === "pointerout", Tn && V !== Hc && (sr = V.relatedTarget || V.fromElement) && (zn(sr) || sr[Wt]))
101492
+ if (Tn = E === "mouseover" || E === "pointerover", Ln = E === "mouseout" || E === "pointerout", Tn && V !== Hc && (or = V.relatedTarget || V.fromElement) && (zn(or) || or[Wt]))
101632
101493
  break e;
101633
- if ((Ln || Tn) && (Tn = On.window === On ? On : (Tn = On.ownerDocument) ? Tn.defaultView || Tn.parentWindow : window, Ln ? (sr = V.relatedTarget || V.toElement, Ln = En, sr = sr ? zn(sr) : null, sr !== null && (ka = c(sr), yr = sr.tag, sr !== ka || yr !== 5 && yr !== 27 && yr !== 6) && (sr = null)) : (Ln = null, sr = En), Ln !== sr)) {
101634
- if (yr = yl, Bn = "onMouseLeave", bn = "onMouseEnter", hn = "mouse", (E === "pointerout" || E === "pointerover") && (yr = Cs, Bn = "onPointerLeave", bn = "onPointerEnter", hn = "pointer"), ka = Ln == null ? Tn : Gn(Ln), _n = sr == null ? Tn : Gn(sr), Tn = new yr(
101494
+ if ((Ln || Tn) && (Tn = On.window === On ? On : (Tn = On.ownerDocument) ? Tn.defaultView || Tn.parentWindow : window, Ln ? (or = V.relatedTarget || V.toElement, Ln = En, or = or ? zn(or) : null, or !== null && (ka = c(or), yr = or.tag, or !== ka || yr !== 5 && yr !== 27 && yr !== 6) && (or = null)) : (Ln = null, or = En), Ln !== or)) {
101495
+ if (yr = yl, Bn = "onMouseLeave", bn = "onMouseEnter", hn = "mouse", (E === "pointerout" || E === "pointerover") && (yr = Cs, Bn = "onPointerLeave", bn = "onPointerEnter", hn = "pointer"), ka = Ln == null ? Tn : Gn(Ln), _n = or == null ? Tn : Gn(or), Tn = new yr(
101635
101496
  Bn,
101636
101497
  hn + "leave",
101637
101498
  Ln,
@@ -101640,12 +101501,12 @@ Error generating stack: ` + te.message + `
101640
101501
  ), Tn.target = ka, Tn.relatedTarget = _n, Bn = null, zn(On) === En && (yr = new yr(
101641
101502
  bn,
101642
101503
  hn + "enter",
101643
- sr,
101504
+ or,
101644
101505
  V,
101645
101506
  On
101646
- ), yr.target = _n, yr.relatedTarget = ka, Bn = yr), ka = Bn, Ln && sr)
101507
+ ), yr.target = _n, yr.relatedTarget = ka, Bn = yr), ka = Bn, Ln && or)
101647
101508
  t: {
101648
- for (yr = Rv, bn = Ln, hn = sr, _n = 0, Bn = bn; Bn; Bn = yr(Bn))
101509
+ for (yr = Rv, bn = Ln, hn = or, _n = 0, Bn = bn; Bn; Bn = yr(Bn))
101649
101510
  _n++;
101650
101511
  Bn = 0;
101651
101512
  for (var mr = hn; mr; mr = yr(mr))
@@ -101670,10 +101531,10 @@ Error generating stack: ` + te.message + `
101670
101531
  Ln,
101671
101532
  yr,
101672
101533
  !1
101673
- ), sr !== null && ka !== null && Pm(
101534
+ ), or !== null && ka !== null && Pm(
101674
101535
  Hn,
101675
101536
  ka,
101676
- sr,
101537
+ or,
101677
101538
  yr,
101678
101539
  !0
101679
101540
  );
@@ -101892,10 +101753,10 @@ Error generating stack: ` + te.message + `
101892
101753
  te != null && (E.onclick = ji);
101893
101754
  break;
101894
101755
  case "onScroll":
101895
- te != null && Wr("scroll", E);
101756
+ te != null && Xr("scroll", E);
101896
101757
  break;
101897
101758
  case "onScrollEnd":
101898
- te != null && Wr("scrollend", E);
101759
+ te != null && Xr("scrollend", E);
101899
101760
  break;
101900
101761
  case "dangerouslySetInnerHTML":
101901
101762
  if (te != null) {
@@ -101983,7 +101844,7 @@ Error generating stack: ` + te.message + `
101983
101844
  te == null || typeof te == "function" || typeof te == "symbol" || isNaN(te) ? E.removeAttribute(V) : E.setAttribute(V, te);
101984
101845
  break;
101985
101846
  case "popover":
101986
- Wr("beforetoggle", E), Wr("toggle", E), $a(E, "popover", te);
101847
+ Xr("beforetoggle", E), Xr("toggle", E), $a(E, "popover", te);
101987
101848
  break;
101988
101849
  case "xlinkActuate":
101989
101850
  _a(
@@ -102086,10 +101947,10 @@ Error generating stack: ` + te.message + `
102086
101947
  typeof te == "string" ? ws(E, te) : (typeof te == "number" || typeof te == "bigint") && ws(E, "" + te);
102087
101948
  break;
102088
101949
  case "onScroll":
102089
- te != null && Wr("scroll", E);
101950
+ te != null && Xr("scroll", E);
102090
101951
  break;
102091
101952
  case "onScrollEnd":
102092
- te != null && Wr("scrollend", E);
101953
+ te != null && Xr("scrollend", E);
102093
101954
  break;
102094
101955
  case "onClick":
102095
101956
  te != null && (E.onclick = ji);
@@ -102125,7 +101986,7 @@ Error generating stack: ` + te.message + `
102125
101986
  case "li":
102126
101987
  break;
102127
101988
  case "img":
102128
- Wr("error", E), Wr("load", E);
101989
+ Xr("error", E), Xr("load", E);
102129
101990
  var te = !1, Be = !1, qe;
102130
101991
  for (qe in V)
102131
101992
  if (V.hasOwnProperty(qe)) {
@@ -102148,7 +102009,7 @@ Error generating stack: ` + te.message + `
102148
102009
  Be && Ea(E, M, "srcSet", V.srcSet, V, null), te && Ea(E, M, "src", V.src, V, null);
102149
102010
  return;
102150
102011
  case "input":
102151
- Wr("invalid", E);
102012
+ Xr("invalid", E);
102152
102013
  var zt = qe = xt = Be = null, sn = null, En = null;
102153
102014
  for (te in V)
102154
102015
  if (V.hasOwnProperty(te)) {
@@ -102194,7 +102055,7 @@ Error generating stack: ` + te.message + `
102194
102055
  );
102195
102056
  return;
102196
102057
  case "select":
102197
- Wr("invalid", E), te = xt = qe = null;
102058
+ Xr("invalid", E), te = xt = qe = null;
102198
102059
  for (Be in V)
102199
102060
  if (V.hasOwnProperty(Be) && (zt = V[Be], zt != null))
102200
102061
  switch (Be) {
@@ -102212,7 +102073,7 @@ Error generating stack: ` + te.message + `
102212
102073
  M = qe, V = xt, E.multiple = !!te, M != null ? co(E, !!te, M, !1) : V != null && co(E, !!te, V, !0);
102213
102074
  return;
102214
102075
  case "textarea":
102215
- Wr("invalid", E), qe = Be = te = null;
102076
+ Xr("invalid", E), qe = Be = te = null;
102216
102077
  for (xt in V)
102217
102078
  if (V.hasOwnProperty(xt) && (zt = V[xt], zt != null))
102218
102079
  switch (xt) {
@@ -102238,27 +102099,27 @@ Error generating stack: ` + te.message + `
102238
102099
  V.hasOwnProperty(sn) && (te = V[sn], te != null) && (sn === "selected" ? E.selected = te && typeof te != "function" && typeof te != "symbol" : Ea(E, M, sn, te, V, null));
102239
102100
  return;
102240
102101
  case "dialog":
102241
- Wr("beforetoggle", E), Wr("toggle", E), Wr("cancel", E), Wr("close", E);
102102
+ Xr("beforetoggle", E), Xr("toggle", E), Xr("cancel", E), Xr("close", E);
102242
102103
  break;
102243
102104
  case "iframe":
102244
102105
  case "object":
102245
- Wr("load", E);
102106
+ Xr("load", E);
102246
102107
  break;
102247
102108
  case "video":
102248
102109
  case "audio":
102249
102110
  for (te = 0; te < Uf.length; te++)
102250
- Wr(Uf[te], E);
102111
+ Xr(Uf[te], E);
102251
102112
  break;
102252
102113
  case "image":
102253
- Wr("error", E), Wr("load", E);
102114
+ Xr("error", E), Xr("load", E);
102254
102115
  break;
102255
102116
  case "details":
102256
- Wr("toggle", E);
102117
+ Xr("toggle", E);
102257
102118
  break;
102258
102119
  case "embed":
102259
102120
  case "source":
102260
102121
  case "link":
102261
- Wr("error", E), Wr("load", E);
102122
+ Xr("error", E), Xr("load", E);
102262
102123
  case "area":
102263
102124
  case "base":
102264
102125
  case "br":
@@ -102447,11 +102308,11 @@ Error generating stack: ` + te.message + `
102447
102308
  pi(E, Tn, Ln);
102448
102309
  return;
102449
102310
  case "option":
102450
- for (var sr in V)
102451
- Tn = V[sr], V.hasOwnProperty(sr) && Tn != null && !te.hasOwnProperty(sr) && (sr === "selected" ? E.selected = !1 : Ea(
102311
+ for (var or in V)
102312
+ Tn = V[or], V.hasOwnProperty(or) && Tn != null && !te.hasOwnProperty(or) && (or === "selected" ? E.selected = !1 : Ea(
102452
102313
  E,
102453
102314
  M,
102454
- sr,
102315
+ or,
102455
102316
  null,
102456
102317
  te,
102457
102318
  Tn
@@ -102825,7 +102686,7 @@ Error generating stack: ` + te.message + `
102825
102686
  var te = Xf;
102826
102687
  if (te && typeof M == "string" && M) {
102827
102688
  var Be = ba(M);
102828
- Be = 'link[rel="' + E + '"][href="' + Be + '"]', typeof V == "string" && (Be += '[crossorigin="' + V + '"]'), gh.has(Be) || (gh.add(Be), E = { rel: E, crossOrigin: V, href: M }, te.querySelector(Be) === null && (M = te.createElement("link"), gs(M, "link", E), or(M), te.head.appendChild(M)));
102689
+ Be = 'link[rel="' + E + '"][href="' + Be + '"]', typeof V == "string" && (Be += '[crossorigin="' + V + '"]'), gh.has(Be) || (gh.add(Be), E = { rel: E, crossOrigin: V, href: M }, te.querySelector(Be) === null && (M = te.createElement("link"), gs(M, "link", E), lr(M), te.head.appendChild(M)));
102829
102690
  }
102830
102691
  }
102831
102692
  function Dn(E) {
@@ -102859,7 +102720,7 @@ Error generating stack: ` + te.message + `
102859
102720
  as: M
102860
102721
  },
102861
102722
  V
102862
- ), _o.set(qe, E), te.querySelector(Be) !== null || M === "style" && te.querySelector(ed(qe)) || M === "script" && te.querySelector(Zf(qe)) || (M = te.createElement("link"), gs(M, "link", E), or(M), te.head.appendChild(M)));
102723
+ ), _o.set(qe, E), te.querySelector(Be) !== null || M === "style" && te.querySelector(ed(qe)) || M === "script" && te.querySelector(Zf(qe)) || (M = te.createElement("link"), gs(M, "link", E), lr(M), te.head.appendChild(M)));
102863
102724
  }
102864
102725
  }
102865
102726
  function P0(E, M) {
@@ -102887,7 +102748,7 @@ Error generating stack: ` + te.message + `
102887
102748
  if (V.querySelector(Zf(qe)))
102888
102749
  return;
102889
102750
  }
102890
- te = V.createElement("link"), gs(te, "link", E), or(te), V.head.appendChild(te);
102751
+ te = V.createElement("link"), gs(te, "link", E), lr(te), V.head.appendChild(te);
102891
102752
  }
102892
102753
  }
102893
102754
  }
@@ -102910,7 +102771,7 @@ Error generating stack: ` + te.message + `
102910
102771
  V
102911
102772
  ), (V = _o.get(qe)) && Hm(E, V);
102912
102773
  var sn = xt = te.createElement("link");
102913
- or(sn), gs(sn, "link", E), sn._p = new Promise(function(En, On) {
102774
+ lr(sn), gs(sn, "link", E), sn._p = new Promise(function(En, On) {
102914
102775
  sn.onload = En, sn.onerror = On;
102915
102776
  }), sn.addEventListener("load", function() {
102916
102777
  zt.loading |= 1;
@@ -102932,7 +102793,7 @@ Error generating stack: ` + te.message + `
102932
102793
  var V = Xf;
102933
102794
  if (V && E) {
102934
102795
  var te = dr(V).hoistableScripts, Be = Fd(E), qe = te.get(Be);
102935
- qe || (qe = V.querySelector(Zf(Be)), qe || (E = N({ src: E, async: !0 }, M), (M = _o.get(Be)) && Gm(E, M), qe = V.createElement("script"), or(qe), gs(qe, "link", E), V.head.appendChild(qe)), qe = {
102796
+ qe || (qe = V.querySelector(Zf(Be)), qe || (E = N({ src: E, async: !0 }, M), (M = _o.get(Be)) && Gm(E, M), qe = V.createElement("script"), lr(qe), gs(qe, "link", E), V.head.appendChild(qe)), qe = {
102936
102797
  type: "script",
102937
102798
  instance: qe,
102938
102799
  count: 1,
@@ -102945,7 +102806,7 @@ Error generating stack: ` + te.message + `
102945
102806
  var V = Xf;
102946
102807
  if (V && E) {
102947
102808
  var te = dr(V).hoistableScripts, Be = Fd(E), qe = te.get(Be);
102948
- qe || (qe = V.querySelector(Zf(Be)), qe || (E = N({ src: E, async: !0, type: "module" }, M), (M = _o.get(Be)) && Gm(E, M), qe = V.createElement("script"), or(qe), gs(qe, "link", E), V.head.appendChild(qe)), qe = {
102809
+ qe || (qe = V.querySelector(Zf(Be)), qe || (E = N({ src: E, async: !0, type: "module" }, M), (M = _o.get(Be)) && Gm(E, M), qe = V.createElement("script"), lr(qe), gs(qe, "link", E), V.head.appendChild(qe)), qe = {
102949
102810
  type: "script",
102950
102811
  instance: qe,
102951
102812
  count: 1,
@@ -103033,7 +102894,7 @@ Error generating stack: ` + te.message + `
103033
102894
  return te.loading |= 1;
103034
102895
  }), M.addEventListener("error", function() {
103035
102896
  return te.loading |= 2;
103036
- }), gs(M, "link", V), or(M), E.head.appendChild(M));
102897
+ }), gs(M, "link", V), lr(M), E.head.appendChild(M));
103037
102898
  }
103038
102899
  function Fd(E) {
103039
102900
  return '[src="' + ba(E) + '"]';
@@ -103049,7 +102910,7 @@ Error generating stack: ` + te.message + `
103049
102910
  'style[data-href~="' + ba(V.href) + '"]'
103050
102911
  );
103051
102912
  if (te)
103052
- return M.instance = te, or(te), te;
102913
+ return M.instance = te, lr(te), te;
103053
102914
  var Be = N({}, V, {
103054
102915
  "data-href": V.href,
103055
102916
  "data-precedence": V.precedence,
@@ -103058,15 +102919,15 @@ Error generating stack: ` + te.message + `
103058
102919
  });
103059
102920
  return te = (E.ownerDocument || E).createElement(
103060
102921
  "style"
103061
- ), or(te), gs(te, "style", Be), xh(te, V.precedence, E), M.instance = te;
102922
+ ), lr(te), gs(te, "style", Be), xh(te, V.precedence, E), M.instance = te;
103062
102923
  case "stylesheet":
103063
102924
  Be = Vo(V.href);
103064
102925
  var qe = E.querySelector(
103065
102926
  ed(Be)
103066
102927
  );
103067
102928
  if (qe)
103068
- return M.state.loading |= 4, M.instance = qe, or(qe), qe;
103069
- te = Kf(V), (Be = _o.get(Be)) && Hm(te, Be), qe = (E.ownerDocument || E).createElement("link"), or(qe);
102929
+ return M.state.loading |= 4, M.instance = qe, lr(qe), qe;
102930
+ te = Kf(V), (Be = _o.get(Be)) && Hm(te, Be), qe = (E.ownerDocument || E).createElement("link"), lr(qe);
103070
102931
  var xt = qe;
103071
102932
  return xt._p = new Promise(function(zt, sn) {
103072
102933
  xt.onload = zt, xt.onerror = sn;
@@ -103074,7 +102935,7 @@ Error generating stack: ` + te.message + `
103074
102935
  case "script":
103075
102936
  return qe = Fd(V.src), (Be = E.querySelector(
103076
102937
  Zf(qe)
103077
- )) ? (M.instance = Be, or(Be), Be) : (te = V, (Be = _o.get(qe)) && (te = N({}, V), Gm(te, Be)), E = E.ownerDocument || E, Be = E.createElement("script"), or(Be), gs(Be, "link", te), E.head.appendChild(Be), M.instance = Be);
102938
+ )) ? (M.instance = Be, lr(Be), Be) : (te = V, (Be = _o.get(qe)) && (te = N({}, V), Gm(te, Be)), E = E.ownerDocument || E, Be = E.createElement("script"), lr(Be), gs(Be, "link", te), E.head.appendChild(Be), M.instance = Be);
103078
102939
  case "void":
103079
102940
  return null;
103080
102941
  default:
@@ -103155,10 +103016,10 @@ Error generating stack: ` + te.message + `
103155
103016
  ed(Be)
103156
103017
  );
103157
103018
  if (qe) {
103158
- M = qe._p, M !== null && typeof M == "object" && typeof M.then == "function" && (E.count++, E = Wm.bind(E), M.then(E, E)), V.state.loading |= 4, V.instance = qe, or(qe);
103019
+ M = qe._p, M !== null && typeof M == "object" && typeof M.then == "function" && (E.count++, E = Wm.bind(E), M.then(E, E)), V.state.loading |= 4, V.instance = qe, lr(qe);
103159
103020
  return;
103160
103021
  }
103161
- qe = M.ownerDocument || M, te = Kf(te), (Be = _o.get(Be)) && Hm(te, Be), qe = qe.createElement("link"), or(qe);
103022
+ qe = M.ownerDocument || M, te = Kf(te), (Be = _o.get(Be)) && Hm(te, Be), qe = qe.createElement("link"), lr(qe);
103162
103023
  var xt = qe;
103163
103024
  xt._p = new Promise(function(zt, sn) {
103164
103025
  xt.onload = zt, xt.onerror = sn;
@@ -103253,7 +103114,7 @@ Error generating stack: ` + te.message + `
103253
103114
  return E ? (E = Li, E) : Li;
103254
103115
  }
103255
103116
  function Fv(E, M, V, te, Be, qe) {
103256
- Be = Bd(Be), te.context === null ? te.context = Be : te.pendingContext = Be, te = sl(M), te.payload = { element: V }, qe = qe === void 0 ? null : qe, qe !== null && (te.callback = qe), V = Kr(E, te, M), V !== null && (io(V, E, M), jl(V, E, M));
103117
+ Be = Bd(Be), te.context === null ? te.context = Be : te.pendingContext = Be, te = sl(M), te.payload = { element: V }, qe = qe === void 0 ? null : qe, qe !== null && (te.callback = qe), V = Gr(E, te, M), V !== null && (io(V, E, M), jl(V, E, M));
103257
103118
  }
103258
103119
  function Zm(E, M) {
103259
103120
  if (E = E.memoizedState, E !== null && E.dehydrated !== null) {
@@ -103804,7 +103665,7 @@ Error generating stack: ` + te.message + `
103804
103665
  xt,
103805
103666
  zt,
103806
103667
  W0
103807
- ), M.context = Bd(null), V = M.current, te = wo(), te = qt(te), Be = sl(te), Be.callback = null, Kr(V, Be, te), V = te, M.current.lanes = V, yn(M, V), kc(M), E[Wt] = M.current, Hf(E), new eg(M);
103668
+ ), M.context = Bd(null), V = M.current, te = wo(), te = qt(te), Be = sl(te), Be.callback = null, Gr(V, Be, te), V = te, M.current.lanes = V, yn(M, V), kc(M), E[Wt] = M.current, Hf(E), new eg(M);
103808
103669
  }, e.version = "19.2.4";
103809
103670
  }
103810
103671
  }), require_react_dom_client_development = __commonJS({
@@ -105092,7 +104953,7 @@ Check the render method of \`` + f + "`." : "";
105092
104953
  function dr(f, b) {
105093
104954
  return f.serverProps === void 0 && f.serverTail.length === 0 && f.children.length === 1 && 3 < f.distanceFromLeaf && f.distanceFromLeaf > 15 - b ? dr(f.children[0], b) : f;
105094
104955
  }
105095
- function or(f) {
104956
+ function lr(f) {
105096
104957
  return " " + " ".repeat(f);
105097
104958
  }
105098
104959
  function _r(f) {
@@ -105140,7 +105001,7 @@ Check the render method of \`` + f + "`." : "";
105140
105001
  ` + Nr(j) + ir(b, q) + `
105141
105002
  `;
105142
105003
  }
105143
- return or(j) + ir(f, q) + `
105004
+ return lr(j) + ir(f, q) + `
105144
105005
  `;
105145
105006
  }
105146
105007
  function si(f) {
@@ -105181,14 +105042,14 @@ Check the render method of \`` + f + "`." : "";
105181
105042
  return String(f);
105182
105043
  }
105183
105044
  }
105184
- function lr(f, b) {
105045
+ function sr(f, b) {
105185
105046
  return typeof f != "string" || qe.test(f) ? "{" + Ka(f, b - 2) + "}" : f.length > b - 2 ? 5 > b ? '"..."' : '"' + f.slice(0, b - 5) + '..."' : '"' + f + '"';
105186
105047
  }
105187
105048
  function $a(f, b, j) {
105188
105049
  var q = 120 - j.length - f.length, _e = [], Ne;
105189
105050
  for (Ne in b)
105190
105051
  if (b.hasOwnProperty(Ne) && Ne !== "children") {
105191
- var Ye = lr(
105052
+ var Ye = sr(
105192
105053
  b[Ne],
105193
105054
  120 - j.length - Ne.length - 1
105194
105055
  );
@@ -105232,7 +105093,7 @@ Check the render method of \`` + f + "`." : "";
105232
105093
  _e += $a(
105233
105094
  f,
105234
105095
  b,
105235
- or(q)
105096
+ lr(q)
105236
105097
  );
105237
105098
  else {
105238
105099
  for (var Ye in b)
@@ -105242,35 +105103,35 @@ Check the render method of \`` + f + "`." : "";
105242
105103
  Ne.delete(Ye.toLowerCase());
105243
105104
  var Dt = b[Ye];
105244
105105
  kt = j[kt];
105245
- var pn = lr(
105106
+ var pn = sr(
105246
105107
  Dt,
105247
105108
  at
105248
105109
  );
105249
- at = lr(
105110
+ at = sr(
105250
105111
  kt,
105251
105112
  at
105252
- ), typeof Dt == "object" && Dt !== null && typeof kt == "object" && kt !== null && si(Dt) === "Object" && si(kt) === "Object" && (2 < Object.keys(Dt).length || 2 < Object.keys(kt).length || -1 < pn.indexOf("...") || -1 < at.indexOf("...")) ? _e += or(q + 1) + Ye + `={{
105113
+ ), typeof Dt == "object" && Dt !== null && typeof kt == "object" && kt !== null && si(Dt) === "Object" && si(kt) === "Object" && (2 < Object.keys(Dt).length || 2 < Object.keys(kt).length || -1 < pn.indexOf("...") || -1 < at.indexOf("...")) ? _e += lr(q + 1) + Ye + `={{
105253
105114
  ` + ya(
105254
105115
  Dt,
105255
105116
  kt,
105256
105117
  q + 2
105257
- ) + or(q + 1) + `}}
105118
+ ) + lr(q + 1) + `}}
105258
105119
  ` : (_e += _r(q + 1) + Ye + "=" + pn + `
105259
105120
  `, _e += Nr(q + 1) + Ye + "=" + at + `
105260
105121
  `);
105261
105122
  } else
105262
- _e += or(q + 1) + Ye + "=" + lr(b[Ye], at) + `
105123
+ _e += lr(q + 1) + Ye + "=" + sr(b[Ye], at) + `
105263
105124
  `;
105264
105125
  }
105265
105126
  Ne.forEach(function(mn) {
105266
105127
  if (mn !== "children") {
105267
105128
  var nn = 120 - 2 * (q + 1) - mn.length - 1;
105268
- _e += Nr(q + 1) + mn + "=" + lr(j[mn], nn) + `
105129
+ _e += Nr(q + 1) + mn + "=" + sr(j[mn], nn) + `
105269
105130
  `;
105270
105131
  }
105271
- }), _e = _e === "" ? or(q) + "<" + f + `>
105272
- ` : or(q) + "<" + f + `
105273
- ` + _e + or(q) + `>
105132
+ }), _e = _e === "" ? lr(q) + "<" + f + `>
105133
+ ` : lr(q) + "<" + f + `
105134
+ ` + _e + lr(q) + `>
105274
105135
  `;
105275
105136
  }
105276
105137
  return f = j.children, b = b.children, typeof f == "string" || typeof f == "number" || typeof f == "bigint" ? (Ne = "", (typeof b == "string" || typeof b == "number" || typeof b == "bigint") && (Ne = "" + b), _e += cr(Ne, "" + f, q + 1)) : (typeof b == "string" || typeof b == "number" || typeof b == "bigint") && (_e = f == null ? _e + cr("" + b, null, q + 1) : _e + cr("" + b, void 0, q + 1)), _e;
@@ -105282,20 +105143,20 @@ Check the render method of \`` + f + "`." : "";
105282
105143
  j += bi(f, b), f = f.sibling;
105283
105144
  return j;
105284
105145
  }
105285
- return or(b) + "<" + j + `>
105146
+ return lr(b) + "<" + j + `>
105286
105147
  `;
105287
105148
  }
105288
105149
  function zs(f, b) {
105289
105150
  var j = dr(f, b);
105290
105151
  if (j !== f && (f.children.length !== 1 || f.children[0] !== j))
105291
- return or(b) + `...
105152
+ return lr(b) + `...
105292
105153
  ` + zs(j, b + 1);
105293
105154
  j = "";
105294
105155
  var q = f.fiber._debugInfo;
105295
105156
  if (q)
105296
105157
  for (var _e = 0; _e < q.length; _e++) {
105297
105158
  var Ne = q[_e].name;
105298
- typeof Ne == "string" && (j += or(b) + "<" + Ne + `>
105159
+ typeof Ne == "string" && (j += lr(b) + "<" + Ne + `>
105299
105160
  `, b++);
105300
105161
  }
105301
105162
  if (q = "", _e = f.fiber.pendingProps, f.fiber.tag === 6)
@@ -105306,14 +105167,14 @@ Check the render method of \`` + f + "`." : "";
105306
105167
  var Ye = 120 - 2 * q - Ne.length - 2, at = "";
105307
105168
  for (Dt in _e)
105308
105169
  if (_e.hasOwnProperty(Dt) && Dt !== "children") {
105309
- var kt = lr(_e[Dt], 15);
105170
+ var kt = sr(_e[Dt], 15);
105310
105171
  if (Ye -= Dt.length + kt.length + 2, 0 > Ye) {
105311
105172
  at += " ...";
105312
105173
  break;
105313
105174
  }
105314
105175
  at += " " + Dt + "=" + kt;
105315
105176
  }
105316
- q = or(q) + "<" + Ne + at + `>
105177
+ q = lr(q) + "<" + Ne + at + `>
105317
105178
  `, b++;
105318
105179
  } else
105319
105180
  f.serverProps === null ? (q = $a(
@@ -105331,7 +105192,7 @@ Check the render method of \`` + f + "`." : "";
105331
105192
  var Dt = "";
105332
105193
  for (_e = f.fiber.child, Ne = 0; _e && Ne < f.children.length; )
105333
105194
  Ye = f.children[Ne], Ye.fiber === _e ? (Dt += zs(Ye, b), Ne++) : Dt += bi(_e, b), _e = _e.sibling;
105334
- for (_e && 0 < f.children.length && (Dt += or(b) + `...
105195
+ for (_e && 0 < f.children.length && (Dt += lr(b) + `...
105335
105196
  `), _e = f.serverTail, f.serverProps === null && b--, f = 0; f < _e.length; f++)
105336
105197
  Ne = _e[f], Dt = typeof Ne == "string" ? Dt + (Nr(b) + ir(Ne, 120 - 2 * b) + `
105337
105198
  `) : Dt + $a(
@@ -105891,7 +105752,7 @@ This will cause a hydration error.%s`,
105891
105752
  f
105892
105753
  );
105893
105754
  }
105894
- function Xr(f) {
105755
+ function Yr(f) {
105895
105756
  return S_.test("" + f) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : f;
105896
105757
  }
105897
105758
  function Qa() {
@@ -107024,7 +106885,7 @@ Check the render method of \`` + Ye + "`."), Ye = 29, j = Error(
107024
106885
  qn(), Dc[Lc++] = Gd, Dc[Lc++] = qd, Dc[Lc++] = Sh, Gd = b.id, qd = b.overflow, Sh = f;
107025
106886
  }
107026
106887
  function qn() {
107027
- Jr || console.error(
106888
+ ea || console.error(
107028
106889
  "Expected to be hydrating. This is a bug in React. Please file an issue."
107029
106890
  );
107030
106891
  }
@@ -107060,7 +106921,7 @@ Check the render method of \`` + Ye + "`."), Ye = 29, j = Error(
107060
106921
  }, j.push(b), b);
107061
106922
  }
107062
106923
  function fr() {
107063
- Jr && console.error(
106924
+ ea && console.error(
107064
106925
  "We should not be hydrating here. This is a bug in React. Please file a bug."
107065
106926
  );
107066
106927
  }
@@ -107143,7 +107004,7 @@ https://react.dev/link/hydration-mismatch` + j
107143
107004
  }
107144
107005
  j = q.children, typeof j != "string" && typeof j != "number" && typeof j != "bigint" || b.textContent === "" + j || q.suppressHydrationWarning === !0 || b0(b.textContent, j) ? (q.popover != null && (wr("beforetoggle", b), wr("toggle", b)), q.onScroll != null && wr("scroll", b), q.onScrollEnd != null && wr("scrollend", b), q.onClick != null && (b.onclick = Qa), b = !0) : b = !1, b || ur(f, !0);
107145
107006
  }
107146
- function Yr(f) {
107007
+ function Kr(f) {
107147
107008
  for (lo = f.return; lo; )
107148
107009
  switch (lo.tag) {
107149
107010
  case 5:
@@ -107159,10 +107020,10 @@ https://react.dev/link/hydration-mismatch` + j
107159
107020
  lo = lo.return;
107160
107021
  }
107161
107022
  }
107162
- function ea(f) {
107023
+ function Qr(f) {
107163
107024
  if (f !== lo) return !1;
107164
- if (!Jr)
107165
- return Yr(f), Jr = !0, !1;
107025
+ if (!ea)
107026
+ return Kr(f), ea = !0, !1;
107166
107027
  var b = f.tag, j;
107167
107028
  if ((j = b !== 3 && b !== 27) && ((j = b === 5) && (j = f.type, j = !(j !== "form" && j !== "button") || Pf(f.type, f.memoizedProps)), j = !j), j && Xa) {
107168
107029
  for (j = Xa; j; ) {
@@ -107171,7 +107032,7 @@ https://react.dev/link/hydration-mismatch` + j
107171
107032
  }
107172
107033
  ur(f);
107173
107034
  }
107174
- if (Yr(f), b === 13) {
107035
+ if (Kr(f), b === 13) {
107175
107036
  if (f = f.memoizedState, f = f !== null ? f.dehydrated : null, !f)
107176
107037
  throw Error(
107177
107038
  "Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."
@@ -107188,7 +107049,7 @@ https://react.dev/link/hydration-mismatch` + j
107188
107049
  return !0;
107189
107050
  }
107190
107051
  function sa() {
107191
- Xa = lo = null, rd = Jr = !1;
107052
+ Xa = lo = null, rd = ea = !1;
107192
107053
  }
107193
107054
  function ds() {
107194
107055
  var f = cp;
@@ -107950,7 +107811,7 @@ It can also happen if the client has a browser extension installed which messes
107950
107811
  ), f && hr && Ui.alternate === null && b(tn, hr), an = Ne(Ui, an, Fr), gr === null ? Tr = Ui : gr.sibling = Ui, gr = Ui, hr = Ya;
107951
107812
  }
107952
107813
  if (Fr === dn.length)
107953
- return j(tn, hr), Jr && Ze(tn, Fr), Tr;
107814
+ return j(tn, hr), ea && Ze(tn, Fr), Tr;
107954
107815
  if (hr === null) {
107955
107816
  for (; Fr < dn.length; Fr++)
107956
107817
  hr = mn(tn, dn[Fr], Pn), hr !== null && (tr = Jn(
@@ -107963,7 +107824,7 @@ It can also happen if the client has a browser extension installed which messes
107963
107824
  an,
107964
107825
  Fr
107965
107826
  ), gr === null ? Tr = hr : gr.sibling = hr, gr = hr);
107966
- return Jr && Ze(tn, Fr), Tr;
107827
+ return ea && Ze(tn, Fr), Tr;
107967
107828
  }
107968
107829
  for (hr = q(hr); Fr < dn.length; Fr++)
107969
107830
  Ya = An(
@@ -107986,7 +107847,7 @@ It can also happen if the client has a browser extension installed which messes
107986
107847
  ), gr === null ? Tr = Ya : gr.sibling = Ya, gr = Ya);
107987
107848
  return f && hr.forEach(function(af) {
107988
107849
  return b(tn, af);
107989
- }), Jr && Ze(tn, Fr), Tr;
107850
+ }), ea && Ze(tn, Fr), Tr;
107990
107851
  }
107991
107852
  function Fa(tn, an, dn, Pn) {
107992
107853
  if (dn == null)
@@ -108006,7 +107867,7 @@ It can also happen if the client has a browser extension installed which messes
108006
107867
  ), f && gr && af.alternate === null && b(tn, gr), an = Ne(af, an, hr), Tr === null ? tr = af : Tr.sibling = af, Tr = af, gr = Fr;
108007
107868
  }
108008
107869
  if (Ui.done)
108009
- return j(tn, gr), Jr && Ze(tn, hr), tr;
107870
+ return j(tn, gr), ea && Ze(tn, hr), tr;
108010
107871
  if (gr === null) {
108011
107872
  for (; !Ui.done; hr++, Ui = dn.next())
108012
107873
  gr = mn(tn, Ui.value, Pn), gr !== null && (Ya = Jn(
@@ -108019,7 +107880,7 @@ It can also happen if the client has a browser extension installed which messes
108019
107880
  an,
108020
107881
  hr
108021
107882
  ), Tr === null ? tr = gr : Tr.sibling = gr, Tr = gr);
108022
- return Jr && Ze(tn, hr), tr;
107883
+ return ea && Ze(tn, hr), tr;
108023
107884
  }
108024
107885
  for (gr = q(gr); !Ui.done; hr++, Ui = dn.next())
108025
107886
  Fr = An(
@@ -108042,7 +107903,7 @@ It can also happen if the client has a browser extension installed which messes
108042
107903
  ), Tr === null ? tr = Fr : Tr.sibling = Fr, Tr = Fr);
108043
107904
  return f && gr.forEach(function(FS) {
108044
107905
  return b(tn, FS);
108045
- }), Jr && Ze(tn, hr), tr;
107906
+ }), ea && Ze(tn, hr), tr;
108046
107907
  }
108047
107908
  function na(tn, an, dn, Pn) {
108048
107909
  if (typeof dn == "object" && dn !== null && dn.type === qf && dn.key === null && (fs(dn, null, tn), dn = dn.props.children), typeof dn == "object" && dn !== null) {
@@ -108562,9 +108423,9 @@ Incoming: %s`,
108562
108423
  Wn(!1);
108563
108424
  }
108564
108425
  }
108565
- return Qr(f, b), Ye;
108426
+ return Jr(f, b), Ye;
108566
108427
  }
108567
- function Qr(f, b) {
108428
+ function Jr(f, b) {
108568
108429
  b._debugHookTypes = Bc, b.dependencies === null ? Qd !== null && (b.dependencies = {
108569
108430
  lanes: 0,
108570
108431
  firstContext: null,
@@ -108806,7 +108667,7 @@ Incoming: %s`,
108806
108667
  }
108807
108668
  function Oi(f, b, j) {
108808
108669
  var q = kr, _e = ti();
108809
- if (Jr) {
108670
+ if (ea) {
108810
108671
  if (j === void 0)
108811
108672
  throw Error(
108812
108673
  "Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
@@ -108841,7 +108702,7 @@ Incoming: %s`,
108841
108702
  ), Ne;
108842
108703
  }
108843
108704
  function Ua(f, b, j) {
108844
- var q = kr, _e = ft(), Ne = Jr;
108705
+ var q = kr, _e = ft(), Ne = ea;
108845
108706
  if (Ne) {
108846
108707
  if (j === void 0)
108847
108708
  throw Error(
@@ -109038,13 +108899,13 @@ Incoming: %s`,
109038
108899
  function sl(f, b) {
109039
108900
  return b;
109040
108901
  }
109041
- function Kr(f, b) {
109042
- if (Jr) {
108902
+ function Gr(f, b) {
108903
+ if (ea) {
109043
108904
  var j = La.formState;
109044
108905
  if (j !== null) {
109045
108906
  e: {
109046
108907
  var q = kr;
109047
- if (Jr) {
108908
+ if (ea) {
109048
108909
  if (Xa) {
109049
108910
  t: {
109050
108911
  for (var _e = Xa, Ne = Ic; _e.nodeType !== 8; ) {
@@ -109446,7 +109307,7 @@ Incoming: %s`,
109446
109307
  }
109447
109308
  function Dp() {
109448
109309
  var f = ti(), b = La.identifierPrefix;
109449
- if (Jr) {
109310
+ if (ea) {
109450
109311
  var j = qd, q = Gd;
109451
109312
  j = (q & ~(1 << 32 - xs(q) - 1)).toString(32) + j, b = "_" + b + "R_" + j, j = p1++, 0 < j && (b += "H" + j.toString(32)), b += "_";
109452
109313
  } else
@@ -109769,7 +109630,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
109769
109630
  j,
109770
109631
  _e,
109771
109632
  !0
109772
- ), Jr && (rd = !0), j = ql.current, j !== null) {
109633
+ ), ea && (rd = !0), j = ql.current, j !== null) {
109773
109634
  switch (j.tag) {
109774
109635
  case 31:
109775
109636
  case 13:
@@ -109787,7 +109648,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
109787
109648
  }
109788
109649
  return wm(f, q, _e), Nf(), !1;
109789
109650
  }
109790
- if (Jr)
109651
+ if (ea)
109791
109652
  return rd = !0, b = ql.current, b !== null ? ((b.flags & 65536) === 0 && (b.flags |= 256), b.flags |= 65536, b.lanes = _e, q !== py && nc(
109792
109653
  Fe(
109793
109654
  Error(
@@ -109862,7 +109723,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
109862
109723
  Ye,
109863
109724
  Ne,
109864
109725
  _e
109865
- ), at = Tl(), f !== null && !rs ? (vd(f, b, _e), Dl(f, b, _e)) : (Jr && at && $t(b), b.flags |= 1, Zi(f, b, q, _e), b.child);
109726
+ ), at = Tl(), f !== null && !rs ? (vd(f, b, _e), Dl(f, b, _e)) : (ea && at && $t(b), b.flags |= 1, Zi(f, b, q, _e), b.child);
109866
109727
  }
109867
109728
  function Ig(f, b, j, q, _e) {
109868
109729
  if (f === null) {
@@ -109989,7 +109850,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
109989
109850
  function qx(f, b, j) {
109990
109851
  var q = b.pendingProps, _e = (b.flags & 128) !== 0;
109991
109852
  if (b.flags &= -129, f === null) {
109992
- if (Jr) {
109853
+ if (ea) {
109993
109854
  if (q.mode === "hidden")
109994
109855
  return f = Pp(b, q), b.lanes = 536870912, kd(null, f);
109995
109856
  if (Ks(b), (f = Xa) ? (j = va(
@@ -110041,7 +109902,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
110041
109902
  } else
110042
109903
  f = Ne.treeContext, Xa = zo(
110043
109904
  Ye.nextSibling
110044
- ), lo = b, Jr = !0, cp = null, rd = !1, Gl = null, Ic = !1, f !== null && Cn(b, f), b = Pp(b, q), b.flags |= 4096;
109905
+ ), lo = b, ea = !0, cp = null, rd = !1, Gl = null, Ic = !1, f !== null && Cn(b, f), b = Pp(b, q), b.flags |= 4096;
110045
109906
  return b;
110046
109907
  }
110047
109908
  return Ne = f.child, q = { mode: q.mode, children: q.children }, (j & 536870912) !== 0 && (j & f.lanes) !== 0 && Af(b), f = Mi(Ne, q), f.ref = b.ref, b.child = f, f.return = b, f;
@@ -110080,7 +109941,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
110080
109941
  q,
110081
109942
  void 0,
110082
109943
  _e
110083
- ), q = Tl(), f !== null && !rs ? (vd(f, b, _e), Dl(f, b, _e)) : (Jr && q && $t(b), b.flags |= 1, Zi(f, b, j, _e), b.child);
109944
+ ), q = Tl(), f !== null && !rs ? (vd(f, b, _e), Dl(f, b, _e)) : (ea && q && $t(b), b.flags |= 1, Zi(f, b, j, _e), b.child);
110084
109945
  }
110085
109946
  function Vg(f, b, j, q, _e, Ne) {
110086
109947
  return rc(b), Jd = -1, Sx = f !== null && f.type !== b.type, b.updateQueue = null, j = Do(
@@ -110088,7 +109949,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
110088
109949
  q,
110089
109950
  j,
110090
109951
  _e
110091
- ), Qr(f, b), q = Tl(), f !== null && !rs ? (vd(f, b, Ne), Dl(f, b, Ne)) : (Jr && q && $t(b), b.flags |= 1, Zi(f, b, j, Ne), b.child);
109952
+ ), Jr(f, b), q = Tl(), f !== null && !rs ? (vd(f, b, Ne), Dl(f, b, Ne)) : (ea && q && $t(b), b.flags |= 1, Zi(f, b, j, Ne), b.child);
110092
109953
  }
110093
109954
  function Td(f, b, j, q, _e) {
110094
109955
  switch (d(b)) {
@@ -110350,7 +110211,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
110350
110211
  c(b) && (b.flags |= 128);
110351
110212
  var Ne = !1, Ye = (b.flags & 128) !== 0;
110352
110213
  if ((q = Ye) || (q = f !== null && f.memoizedState === null ? !1 : (Vi.current & wx) !== 0), q && (Ne = !0, b.flags &= -129), q = (b.flags & 32) !== 0, b.flags &= -33, f === null) {
110353
- if (Jr) {
110214
+ if (ea) {
110354
110215
  if (Ne ? Ii(b) : hs(b), (f = Xa) ? (j = va(
110355
110216
  f,
110356
110217
  Ic
@@ -110473,7 +110334,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
110473
110334
  pn
110474
110335
  ) ? (b.flags |= 192, b.child = f.child, b = null) : (f = Dt.treeContext, Xa = zo(
110475
110336
  pn.nextSibling
110476
- ), lo = b, Jr = !0, cp = null, rd = !1, Gl = null, Ic = !1, f !== null && Cn(b, f), b = Hg(
110337
+ ), lo = b, ea = !0, cp = null, rd = !1, Gl = null, Ic = !1, f !== null && Cn(b, f), b = Hg(
110477
110338
  b,
110478
110339
  _e.children
110479
110340
  ), b.flags |= 4096);
@@ -110615,7 +110476,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
110615
110476
  'A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',
110616
110477
  _e
110617
110478
  );
110618
- if (Zi(f, b, Ye, j), Jr ? (qn(), Ye = ax) : Ye = 0, !q && f !== null && (f.flags & 128) !== 0)
110479
+ if (Zi(f, b, Ye, j), ea ? (qn(), Ye = ax) : Ye = 0, !q && f !== null && (f.flags & 128) !== 0)
110619
110480
  e: for (f = b.child; f !== null; ) {
110620
110481
  if (f.tag === 13)
110621
110482
  f.memoizedState !== null && Gg(f, j, b);
@@ -110829,7 +110690,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
110829
110690
  rs = (f.flags & 131072) !== 0;
110830
110691
  }
110831
110692
  else
110832
- rs = !1, (q = Jr) && (qn(), q = (b.flags & 1048576) !== 0), q && (q = b.index, qn(), mt(b, ax, q));
110693
+ rs = !1, (q = ea) && (qn(), q = (b.flags & 1048576) !== 0), q && (q = b.index, qn(), mt(b, ax, q));
110833
110694
  switch (b.lanes = 0, b.tag) {
110834
110695
  case 16:
110835
110696
  e: if (q = b.pendingProps, f = ei(b.elementType), b.type = f, typeof f == "function")
@@ -110940,7 +110801,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
110940
110801
  );
110941
110802
  break e;
110942
110803
  } else
110943
- for (f = b.stateNode.containerInfo, f.nodeType === 9 ? f = f.body : f = f.nodeName === "HTML" ? f.ownerDocument.body : f, Xa = zo(f.firstChild), lo = b, Jr = !0, cp = null, rd = !1, Gl = null, Ic = !0, j = Jb(
110804
+ for (f = b.stateNode.containerInfo, f.nodeType === 9 ? f = f.body : f = f.nodeName === "HTML" ? f.ownerDocument.body : f, Xa = zo(f.firstChild), lo = b, ea = !0, cp = null, rd = !1, Gl = null, Ic = !0, j = Jb(
110944
110805
  b,
110945
110806
  null,
110946
110807
  q,
@@ -110972,7 +110833,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
110972
110833
  null,
110973
110834
  b.pendingProps,
110974
110835
  null
110975
- )) ? b.memoizedState = j : Jr || (j = b.type, f = b.pendingProps, q = rt(
110836
+ )) ? b.memoizedState = j : ea || (j = b.type, f = b.pendingProps, q = rt(
110976
110837
  Vo.current
110977
110838
  ), q = nh(
110978
110839
  q
@@ -110983,7 +110844,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
110983
110844
  f.memoizedState
110984
110845
  ), null;
110985
110846
  case 27:
110986
- return ot(b), f === null && Jr && (q = rt(Vo.current), _e = it(), q = b.stateNode = mu(
110847
+ return ot(b), f === null && ea && (q = rt(Vo.current), _e = it(), q = b.stateNode = mu(
110987
110848
  b.type,
110988
110849
  b.pendingProps,
110989
110850
  q,
@@ -111003,7 +110864,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
111003
110864
  j
111004
110865
  ), Fp(f, b), f === null && (b.flags |= 4194304), b.child;
111005
110866
  case 5:
111006
- return f === null && Jr && (Ne = it(), q = za(
110867
+ return f === null && ea && (Ne = it(), q = za(
111007
110868
  b.type,
111008
110869
  Ne.ancestorInfo
111009
110870
  ), _e = Xa, (Ye = !_e) || (Ye = Sv(
@@ -111032,7 +110893,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
111032
110893
  j
111033
110894
  ), b.child;
111034
110895
  case 6:
111035
- return f === null && Jr && (j = b.pendingProps, f = it(), q = f.ancestorInfo.current, j = q != null ? oi(
110896
+ return f === null && ea && (j = b.pendingProps, f = it(), q = f.ancestorInfo.current, j = q != null ? oi(
111036
110897
  j,
111037
110898
  q.tag,
111038
110899
  f.ancestorInfo.implicitRootScope
@@ -111180,7 +111041,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
111180
111041
  function Xx(f, b) {
111181
111042
  if (b.type !== "stylesheet" || (b.state.loading & zc) !== Uh)
111182
111043
  f.flags &= -16777217;
111183
- else if (f.flags |= 16777216, !Wr(b))
111044
+ else if (f.flags |= 16777216, !Xr(b))
111184
111045
  if (u0()) f.flags |= 8192;
111185
111046
  else
111186
111047
  throw Rh = c1, _y;
@@ -111189,7 +111050,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
111189
111050
  b !== null && (f.flags |= 4), f.flags & 16384 && (b = f.tag !== 22 ? en() : 536870912, f.lanes |= b, Oh |= b);
111190
111051
  }
111191
111052
  function kf(f, b) {
111192
- if (!Jr)
111053
+ if (!ea)
111193
111054
  switch (f.tailMode) {
111194
111055
  case "hidden":
111195
111056
  b = f.tail;
@@ -111240,7 +111101,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
111240
111101
  case 1:
111241
111102
  return Sa(b), null;
111242
111103
  case 3:
111243
- return j = b.stateNode, q = null, f !== null && (q = f.memoizedState.cache), b.memoizedState.cache !== q && (b.flags |= 2048), $o(es, b), Qe(b), j.pendingContext && (j.context = j.pendingContext, j.pendingContext = null), (f === null || f.child === null) && (ea(b) ? (wl(), xc(b)) : f === null || f.memoizedState.isDehydrated && (b.flags & 256) === 0 || (b.flags |= 1024, ds())), Sa(b), null;
111104
+ return j = b.stateNode, q = null, f !== null && (q = f.memoizedState.cache), b.memoizedState.cache !== q && (b.flags |= 2048), $o(es, b), Qe(b), j.pendingContext && (j.context = j.pendingContext, j.pendingContext = null), (f === null || f.child === null) && (Qr(b) ? (wl(), xc(b)) : f === null || f.memoizedState.isDehydrated && (b.flags & 256) === 0 || (b.flags |= 1024, ds())), Sa(b), null;
111244
111105
  case 26:
111245
111106
  var _e = b.type, Ne = b.memoizedState;
111246
111107
  return f === null ? (xc(b), Ne !== null ? (Sa(b), Xx(
@@ -111273,7 +111134,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
111273
111134
  );
111274
111135
  return Sa(b), null;
111275
111136
  }
111276
- f = it(), ea(b) ? Lr(b) : (f = mu(
111137
+ f = it(), Qr(b) ? Lr(b) : (f = mu(
111277
111138
  _e,
111278
111139
  q,
111279
111140
  j,
@@ -111294,7 +111155,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
111294
111155
  return Sa(b), null;
111295
111156
  }
111296
111157
  var Ye = it();
111297
- if (ea(b))
111158
+ if (Qr(b))
111298
111159
  Lr(b);
111299
111160
  else {
111300
111161
  switch (Ne = rt(Vo.current), za(_e, Ye.ancestorInfo), Ye = Ye.context, Ne = nh(Ne), Ye) {
@@ -111394,7 +111255,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
111394
111255
  throw Error(
111395
111256
  "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
111396
111257
  );
111397
- if (f = rt(Vo.current), j = it(), ea(b)) {
111258
+ if (f = rt(Vo.current), j = it(), Qr(b)) {
111398
111259
  if (f = b.stateNode, j = b.memoizedProps, _e = !rd, q = null, Ne = lo, Ne !== null)
111399
111260
  switch (Ne.tag) {
111400
111261
  case 3:
@@ -111428,7 +111289,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
111428
111289
  return Sa(b), null;
111429
111290
  case 31:
111430
111291
  if (j = b.memoizedState, f === null || f.memoizedState !== null) {
111431
- if (q = ea(b), j !== null) {
111292
+ if (q = Qr(b), j !== null) {
111432
111293
  if (f === null) {
111433
111294
  if (!q)
111434
111295
  throw Error(
@@ -111454,7 +111315,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
111454
111315
  return Sa(b), null;
111455
111316
  case 13:
111456
111317
  if (q = b.memoizedState, f === null || f.memoizedState !== null && f.memoizedState.dehydrated !== null) {
111457
- if (_e = q, Ne = ea(b), _e !== null && _e.dehydrated !== null) {
111318
+ if (_e = q, Ne = Qr(b), _e !== null && _e.dehydrated !== null) {
111458
111319
  if (f === null) {
111459
111320
  if (!Ne)
111460
111321
  throw Error(
@@ -111494,7 +111355,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
111494
111355
  Vi,
111495
111356
  Vi.current & vg | wx,
111496
111357
  b
111497
- ), Jr && Ze(b, q.treeForkCount), b.child;
111358
+ ), ea && Ze(b, q.treeForkCount), b.child;
111498
111359
  }
111499
111360
  f = f.sibling;
111500
111361
  }
@@ -111503,13 +111364,13 @@ https://react.dev/link/unsafe-component-lifecycles`,
111503
111364
  else {
111504
111365
  if (!_e)
111505
111366
  if (f = iu(Ne), f !== null) {
111506
- if (b.flags |= 128, _e = !0, f = f.updateQueue, b.updateQueue = f, Ef(b, f), kf(q, !0), q.tail === null && q.tailMode === "hidden" && !Ne.alternate && !Jr)
111367
+ if (b.flags |= 128, _e = !0, f = f.updateQueue, b.updateQueue = f, Ef(b, f), kf(q, !0), q.tail === null && q.tailMode === "hidden" && !Ne.alternate && !ea)
111507
111368
  return Sa(b), null;
111508
111369
  } else
111509
111370
  2 * Ji() - q.renderingStartTime > _1 && j !== 536870912 && (b.flags |= 128, _e = !0, kf(q, !1), b.lanes = 4194304);
111510
111371
  q.isBackwards ? (Ne.sibling = b.child, b.child = Ne) : (f = q.last, f !== null ? f.sibling = Ne : b.child = Ne, q.last = Ne);
111511
111372
  }
111512
- return q.tail !== null ? (f = q.tail, q.rendering = f, q.tail = f.sibling, q.renderingStartTime = Ji(), f.sibling = null, j = Vi.current, j = _e ? j & vg | wx : j & vg, Ke(Vi, j, b), Jr && Ze(b, q.treeForkCount), f) : (Sa(b), null);
111373
+ return q.tail !== null ? (f = q.tail, q.rendering = f, q.tail = f.sibling, q.renderingStartTime = Ji(), f.sibling = null, j = Vi.current, j = _e ? j & vg | wx : j & vg, Ke(Vi, j, b), ea && Ze(b, q.treeForkCount), f) : (Sa(b), null);
111513
111374
  case 22:
111514
111375
  case 23:
111515
111376
  return $i(b), Ys(b), q = b.memoizedState !== null, f !== null ? f.memoizedState !== null !== q && (b.flags |= 8192) : q && (b.flags |= 8192), q ? (j & 536870912) !== 0 && (b.flags & 128) === 0 && (Sa(b), b.subtreeFlags & 6 && (b.flags |= 8192)) : Sa(b), j = b.updateQueue, j !== null && Ef(b, j.retryQueue), j = null, f !== null && f.memoizedState !== null && f.memoizedState.cachePool !== null && (j = f.memoizedState.cachePool.pool), q = null, b.memoizedState !== null && b.memoizedState.cachePool !== null && (q = b.memoizedState.cachePool.pool), q !== j && (b.flags |= 2048), f !== null && We(Ah, b), null;
@@ -113575,7 +113436,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
113575
113436
  }
113576
113437
  function $f() {
113577
113438
  if (hl === 0)
113578
- if ((Ur & 536870912) === 0 || Jr) {
113439
+ if ((Ur & 536870912) === 0 || ea) {
113579
113440
  var f = bh;
113580
113441
  bh <<= 1, (bh & 3932160) === 0 && (bh = 262144), hl = f;
113581
113442
  } else hl = 536870912;
@@ -113593,7 +113454,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
113593
113454
  case 0:
113594
113455
  case 11:
113595
113456
  case 15:
113596
- f = qr && Ve(qr) || "Unknown", Uw.has(f) || (Uw.add(f), b = Ve(b) || "Unknown", console.error(
113457
+ f = Wr && Ve(Wr) || "Unknown", Uw.has(f) || (Uw.add(f), b = Ve(b) || "Unknown", console.error(
113597
113458
  "Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",
113598
113459
  b,
113599
113460
  f,
@@ -113616,8 +113477,8 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
113616
113477
  function nv(f, b, j) {
113617
113478
  if ((la & (bs | Xl)) !== Bs)
113618
113479
  throw Error("Should not already be working.");
113619
- if (Ur !== 0 && qr !== null) {
113620
- var q = qr, _e = Ji();
113480
+ if (Ur !== 0 && Wr !== null) {
113481
+ var q = Wr, _e = Ji();
113621
113482
  switch (Db) {
113622
113483
  case $x:
113623
113484
  case Lh:
@@ -113937,14 +113798,14 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
113937
113798
  return (la & (bs | Xl)) === Bs ? (_c(0), !1) : !0;
113938
113799
  }
113939
113800
  function vm() {
113940
- if (qr !== null) {
113801
+ if (Wr !== null) {
113941
113802
  if (Ta === pl)
113942
- var f = qr.return;
113803
+ var f = Wr.return;
113943
113804
  else
113944
- f = qr, _l(), ms(f), gg = null, bx = 0, f = qr;
113805
+ f = Wr, _l(), ms(f), gg = null, bx = 0, f = Wr;
113945
113806
  for (; f !== null; )
113946
113807
  Xg(f.alternate, f), f = f.return;
113947
- qr = null;
113808
+ Wr = null;
113948
113809
  }
113949
113810
  }
113950
113811
  function Wu(f, b) {
@@ -114122,7 +113983,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114122
113983
  _e,
114123
113984
  j
114124
113985
  )
114125
- ) : performance.measure(_e, j))), Oc = Kd = -1.1, vy = 0, r1 = -1.1, hp = pp, pp = -1.1, Yd = ts()), (b & 62914560) !== 0 && (a1 & 62914560) !== 0 && (Si(4194304), cs(jb, Ps)), (b & 2080374784) !== 0 && (a1 & 2080374784) !== 0 && (Si(268435456), cs(Mb, Ps)), j = f.timeoutHandle, j !== Vh && (f.timeoutHandle = Vh, jS(j)), j = f.cancelPendingCommit, j !== null && (f.cancelPendingCommit = null, j()), Su = 0, vm(), La = f, qr = j = Mi(
113986
+ ) : performance.measure(_e, j))), Oc = Kd = -1.1, vy = 0, r1 = -1.1, hp = pp, pp = -1.1, Yd = ts()), (b & 62914560) !== 0 && (a1 & 62914560) !== 0 && (Si(4194304), cs(jb, Ps)), (b & 2080374784) !== 0 && (a1 & 2080374784) !== 0 && (Si(268435456), cs(Mb, Ps)), j = f.timeoutHandle, j !== Vh && (f.timeoutHandle = Vh, jS(j)), j = f.cancelPendingCommit, j !== null && (f.cancelPendingCommit = null, j()), Su = 0, vm(), La = f, Wr = j = Mi(
114126
113987
  f.current,
114127
113988
  null
114128
113989
  ), Ur = b, Ta = pl, Yl = null, xp = !1, Eg = nr(f, b), Oy = !1, di = tf, Oh = hl = Py = yp = vp = 0, Yo = Nx = null, b1 = !1, (b & 8) !== 0 && (b |= b & 32), q = f.entangledLanes, q !== 0)
@@ -114132,7 +113993,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114132
113993
  }
114133
113994
  function Il(f, b) {
114134
113995
  kr = null, Dn.H = Cx, Dn.getCurrentStack = null, Tc = !1, So = null, b === mg || b === l1 ? (b = al(), Ta = $x) : b === _y ? (b = al(), Ta = Nw) : Ta = b === jy ? Iy : b !== null && typeof b == "object" && typeof b.then == "function" ? Ax : v1, Yl = b;
114135
- var j = qr;
113996
+ var j = Wr;
114136
113997
  j === null ? (di = Tx, Op(
114137
113998
  f,
114138
113999
  Fe(b, f.current)
@@ -114175,8 +114036,8 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114175
114036
  b = !1, Ye = di;
114176
114037
  e: do
114177
114038
  try {
114178
- if (Ta !== pl && qr !== null) {
114179
- var at = qr, kt = Yl;
114039
+ if (Ta !== pl && Wr !== null) {
114040
+ var at = Wr, kt = Yl;
114180
114041
  switch (Ta) {
114181
114042
  case Iy:
114182
114043
  vm(), Ye = x1;
@@ -114202,10 +114063,10 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114202
114063
  Il(f, pn);
114203
114064
  }
114204
114065
  while (!0);
114205
- return b && f.shellSuspendCounter++, _l(), la = q, Dn.H = _e, Dn.A = Ne, qr === null && (La = null, Ur = 0, Qo()), Ye;
114066
+ return b && f.shellSuspendCounter++, _l(), la = q, Dn.H = _e, Dn.A = Ne, Wr === null && (La = null, Ur = 0, Qo()), Ye;
114206
114067
  }
114207
114068
  function f0() {
114208
- for (; qr !== null; ) bm(qr);
114069
+ for (; Wr !== null; ) bm(Wr);
114209
114070
  }
114210
114071
  function du(f, b) {
114211
114072
  var j = la;
@@ -114224,8 +114085,8 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114224
114085
  );
114225
114086
  e: do
114226
114087
  try {
114227
- if (Ta !== pl && qr !== null)
114228
- t: switch (b = qr, Ne = Yl, Ta) {
114088
+ if (Ta !== pl && Wr !== null)
114089
+ t: switch (b = Wr, Ne = Yl, Ta) {
114229
114090
  case v1:
114230
114091
  Ta = pl, Yl = null, jf(
114231
114092
  f,
@@ -114260,19 +114121,19 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114260
114121
  break;
114261
114122
  case Ly:
114262
114123
  var Ye = null;
114263
- switch (qr.tag) {
114124
+ switch (Wr.tag) {
114264
114125
  case 26:
114265
- Ye = qr.memoizedState;
114126
+ Ye = Wr.memoizedState;
114266
114127
  case 5:
114267
114128
  case 27:
114268
- var at = qr;
114269
- if (Ye ? Wr(Ye) : at.stateNode.complete) {
114129
+ var at = Wr;
114130
+ if (Ye ? Xr(Ye) : at.stateNode.complete) {
114270
114131
  Ta = pl, Yl = null;
114271
114132
  var kt = at.sibling;
114272
- if (kt !== null) qr = kt;
114133
+ if (kt !== null) Wr = kt;
114273
114134
  else {
114274
114135
  var Dt = at.return;
114275
- Dt !== null ? (qr = Dt, Yp(Dt)) : qr = null;
114136
+ Dt !== null ? (Wr = Dt, Yp(Dt)) : Wr = null;
114276
114137
  }
114277
114138
  break t;
114278
114139
  }
@@ -114311,11 +114172,11 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114311
114172
  Il(f, pn);
114312
114173
  }
114313
114174
  while (!0);
114314
- return _l(), Dn.H = q, Dn.A = _e, la = j, qr !== null ? tf : (La = null, Ur = 0, Qo(), di);
114175
+ return _l(), Dn.H = q, Dn.A = _e, la = j, Wr !== null ? tf : (La = null, Ur = 0, Qo(), di);
114315
114176
  }
114316
114177
  function Ai() {
114317
- for (; qr !== null && !Xm(); )
114318
- bm(qr);
114178
+ for (; Wr !== null && !Xm(); )
114179
+ bm(Wr);
114319
114180
  }
114320
114181
  function bm(f) {
114321
114182
  var b = f.alternate;
@@ -114331,11 +114192,11 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114331
114192
  b,
114332
114193
  f,
114333
114194
  od
114334
- ), f.memoizedProps = f.pendingProps, b === null ? Yp(f) : qr = b;
114195
+ ), f.memoizedProps = f.pendingProps, b === null ? Yp(f) : Wr = b;
114335
114196
  }
114336
114197
  function p0(f) {
114337
114198
  var b = ut(f, Qi, f);
114338
- f.memoizedProps = f.pendingProps, b === null ? Yp(f) : qr = b;
114199
+ f.memoizedProps = f.pendingProps, b === null ? Yp(f) : Wr = b;
114339
114200
  }
114340
114201
  function Qi(f) {
114341
114202
  var b = f.alternate, j = (f.mode & zr) !== Cr;
@@ -114364,7 +114225,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114364
114225
  case 5:
114365
114226
  ms(f);
114366
114227
  default:
114367
- Xg(b, f), f = qr = $s(f, od), b = zp(b, f, od);
114228
+ Xg(b, f), f = Wr = $s(f, od), b = zp(b, f, od);
114368
114229
  }
114369
114230
  return j && gd(f), b;
114370
114231
  }
@@ -114382,18 +114243,18 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114382
114243
  di = Tx, Op(
114383
114244
  f,
114384
114245
  Fe(j, f.current)
114385
- ), qr = null;
114246
+ ), Wr = null;
114386
114247
  return;
114387
114248
  }
114388
114249
  } catch (Ne) {
114389
- if (_e !== null) throw qr = _e, Ne;
114250
+ if (_e !== null) throw Wr = _e, Ne;
114390
114251
  di = Tx, Op(
114391
114252
  f,
114392
114253
  Fe(j, f.current)
114393
- ), qr = null;
114254
+ ), Wr = null;
114394
114255
  return;
114395
114256
  }
114396
- b.flags & 32768 ? (Jr || q === v1 ? f = !0 : Eg || (Ur & 536870912) !== 0 ? f = !1 : (xp = f = !0, (q === Lh || q === Ih || q === $x || q === Ax) && (q = ql.current, q !== null && q.tag === 13 && (q.flags |= 16384))), h0(b, f)) : Yp(b);
114257
+ b.flags & 32768 ? (ea || q === v1 ? f = !0 : Eg || (Ur & 536870912) !== 0 ? f = !1 : (xp = f = !0, (q === Lh || q === Ih || q === $x || q === Ax) && (q = ql.current, q !== null && q.tag === 13 && (q.flags |= 16384))), h0(b, f)) : Yp(b);
114397
114258
  }
114398
114259
  function Yp(f) {
114399
114260
  var b = f;
@@ -114413,14 +114274,14 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114413
114274
  b,
114414
114275
  od
114415
114276
  ), (b.mode & zr) !== Cr && ic(b), j !== null) {
114416
- qr = j;
114277
+ Wr = j;
114417
114278
  return;
114418
114279
  }
114419
114280
  if (b = b.sibling, b !== null) {
114420
- qr = b;
114281
+ Wr = b;
114421
114282
  return;
114422
114283
  }
114423
- qr = b = f;
114284
+ Wr = b = f;
114424
114285
  } while (b !== null);
114425
114286
  di === tf && (di = Aw);
114426
114287
  }
@@ -114428,7 +114289,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114428
114289
  do {
114429
114290
  var j = Yx(f.alternate, f);
114430
114291
  if (j !== null) {
114431
- j.flags &= 32767, qr = j;
114292
+ j.flags &= 32767, Wr = j;
114432
114293
  return;
114433
114294
  }
114434
114295
  if ((f.mode & zr) !== Cr) {
@@ -114438,12 +114299,12 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114438
114299
  f.actualDuration = j;
114439
114300
  }
114440
114301
  if (j = f.return, j !== null && (j.flags |= 32768, j.subtreeFlags = 0, j.deletions = null), !b && (f = f.sibling, f !== null)) {
114441
- qr = f;
114302
+ Wr = f;
114442
114303
  return;
114443
114304
  }
114444
- qr = f = j;
114305
+ Wr = f = j;
114445
114306
  } while (f !== null);
114446
- di = x1, qr = null;
114307
+ di = x1, Wr = null;
114447
114308
  }
114448
114309
  function ja(f, b, j, q, _e, Ne, Ye, at, kt, Dt, pn, mn, nn, An) {
114449
114310
  f.cancelPendingCommit = null;
@@ -114483,7 +114344,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
114483
114344
  Ye,
114484
114345
  at,
114485
114346
  kt
114486
- ), f === La && (qr = La = null, Ur = 0), kg = b, _p = f, Su = j, zy = Ne, Uy = _e, Fw = q, Vy = An, Bw = mn, Cu = S1, zw = null, b.actualDuration !== 0 || (b.subtreeFlags & 10256) !== 0 || (b.flags & 10256) !== 0 ? (f.callbackNode = null, f.callbackPriority = 0, Df(Bd, function() {
114347
+ ), f === La && (Wr = La = null, Ur = 0), kg = b, _p = f, Su = j, zy = Ne, Uy = _e, Fw = q, Vy = An, Bw = mn, Cu = S1, zw = null, b.actualDuration !== 0 || (b.subtreeFlags & 10256) !== 0 || (b.flags & 10256) !== 0 ? (f.callbackNode = null, f.callbackPriority = 0, Df(Bd, function() {
114487
114348
  return Ox = window.event, Cu === S1 && (Cu = By), Zp(), null;
114488
114349
  })) : (f.callbackNode = null, f.callbackPriority = 0), Xd = null, dp = ts(), mn !== null && fo(
114489
114350
  An,
@@ -115103,7 +114964,7 @@ This ensures that you're testing the behavior the user would see in the browser.
115103
114964
  return Sp;
115104
114965
  }
115105
114966
  function ua(f) {
115106
- return f == null || typeof f == "symbol" || typeof f == "boolean" ? null : typeof f == "function" ? f : (fn(f, "action"), Xr("" + f));
114967
+ return f == null || typeof f == "symbol" || typeof f == "boolean" ? null : typeof f == "function" ? f : (fn(f, "action"), Yr("" + f));
115107
114968
  }
115108
114969
  function Ca(f, b) {
115109
114970
  var j = b.ownerDocument.createElement("input");
@@ -115168,7 +115029,7 @@ This ensures that you're testing the behavior the user would see in the browser.
115168
115029
  });
115169
115030
  }
115170
115031
  }
115171
- function Gr(f, b, j) {
115032
+ function qr(f, b, j) {
115172
115033
  f.currentTarget = j;
115173
115034
  try {
115174
115035
  b(f);
@@ -115190,11 +115051,11 @@ This ensures that you're testing the behavior the user would see in the browser.
115190
115051
  break e;
115191
115052
  kt !== null ? ut(
115192
115053
  kt,
115193
- Gr,
115054
+ qr,
115194
115055
  Ne,
115195
115056
  at,
115196
115057
  Dt
115197
- ) : Gr(Ne, at, Dt), _e = kt;
115058
+ ) : qr(Ne, at, Dt), _e = kt;
115198
115059
  }
115199
115060
  else
115200
115061
  for (Ye = 0; Ye < q.length; Ye++) {
@@ -115202,11 +115063,11 @@ This ensures that you're testing the behavior the user would see in the browser.
115202
115063
  break e;
115203
115064
  kt !== null ? ut(
115204
115065
  kt,
115205
- Gr,
115066
+ qr,
115206
115067
  Ne,
115207
115068
  at,
115208
115069
  Dt
115209
- ) : Gr(Ne, at, Dt), _e = kt;
115070
+ ) : qr(Ne, at, Dt), _e = kt;
115210
115071
  }
115211
115072
  }
115212
115073
  }
@@ -115695,7 +115556,7 @@ This ensures that you're testing the behavior the user would see in the browser.
115695
115556
  f.removeAttribute(j);
115696
115557
  break;
115697
115558
  }
115698
- fn(q, j), q = Xr("" + q), f.setAttribute(j, q);
115559
+ fn(q, j), q = Yr("" + q), f.setAttribute(j, q);
115699
115560
  break;
115700
115561
  case "action":
115701
115562
  case "formAction":
@@ -115766,7 +115627,7 @@ This ensures that you're testing the behavior the user would see in the browser.
115766
115627
  f.removeAttribute(j);
115767
115628
  break;
115768
115629
  }
115769
- fn(q, j), q = Xr("" + q), f.setAttribute(j, q);
115630
+ fn(q, j), q = Yr("" + q), f.setAttribute(j, q);
115770
115631
  break;
115771
115632
  case "onClick":
115772
115633
  q != null && (typeof q != "function" && ai(j, q), f.onclick = Qa);
@@ -115812,7 +115673,7 @@ This ensures that you're testing the behavior the user would see in the browser.
115812
115673
  f.removeAttribute("xlink:href");
115813
115674
  break;
115814
115675
  }
115815
- fn(q, j), j = Xr("" + q), f.setAttributeNS(Fh, "xlink:href", j);
115676
+ fn(q, j), j = Yr("" + q), f.setAttributeNS(Fh, "xlink:href", j);
115816
115677
  break;
115817
115678
  case "contentEditable":
115818
115679
  case "spellCheck":
@@ -116507,7 +116368,7 @@ This ensures that you're testing the behavior the user would see in the browser.
116507
116368
  for (Ne in b)
116508
116369
  if (b.hasOwnProperty(Ne)) {
116509
116370
  var Ye = b[Ne];
116510
- Ye != null && typeof Ye != "boolean" && Ye !== "" && (Ne.indexOf("--") === 0 ? (In(Ye, Ne), q += _e + Ne + ":" + ("" + Ye).trim()) : typeof Ye != "number" || Ye === 0 || pr.has(Ne) ? (In(Ye, Ne), q += _e + Ne.replace(Ln, "-$1").toLowerCase().replace(sr, "-ms-") + ":" + ("" + Ye).trim()) : q += _e + Ne.replace(Ln, "-$1").toLowerCase().replace(sr, "-ms-") + ":" + Ye + "px", _e = ";");
116371
+ Ye != null && typeof Ye != "boolean" && Ye !== "" && (Ne.indexOf("--") === 0 ? (In(Ye, Ne), q += _e + Ne + ":" + ("" + Ye).trim()) : typeof Ye != "number" || Ye === 0 || pr.has(Ne) ? (In(Ye, Ne), q += _e + Ne.replace(Ln, "-$1").toLowerCase().replace(or, "-ms-") + ":" + ("" + Ye).trim()) : q += _e + Ne.replace(Ln, "-$1").toLowerCase().replace(or, "-ms-") + ":" + Ye + "px", _e = ";");
116511
116372
  }
116512
116373
  q = q || null, b = f.getAttribute("style"), b !== q && (q = Bl(q), Bl(b) !== q && (j.style = Yu(f)));
116513
116374
  }
@@ -116609,7 +116470,7 @@ This ensures that you're testing the behavior the user would see in the browser.
116609
116470
  case "boolean":
116610
116471
  break;
116611
116472
  default:
116612
- if (fn(q, b), j = Xr("" + q), f === j)
116473
+ if (fn(q, b), j = Yr("" + q), f === j)
116613
116474
  return;
116614
116475
  }
116615
116476
  ri(b, f, q, Ne);
@@ -117808,7 +117669,7 @@ This ensures that you're testing the behavior the user would see in the browser.
117808
117669
  }
117809
117670
  return !1;
117810
117671
  }
117811
- function Wr(f) {
117672
+ function Xr(f) {
117812
117673
  return !(f.type === "stylesheet" && (f.state.loading & e_) === Uh);
117813
117674
  }
117814
117675
  function T0(f, b, j, q) {
@@ -118569,7 +118430,7 @@ Check the render method of %s.`,
118569
118430
  "transitionTimingFunction"
118570
118431
  ],
118571
118432
  wordWrap: ["overflowWrap"]
118572
- }, Ln = /([A-Z])/g, sr = /^ms-/, yr = /^(?:webkit|moz|o)[A-Z]/, ka = /^-ms-/, bn = /-(.)/g, hn = /;\s*$/, _n = {}, Bn = {}, mr = !1, oa = !1, pr = new Set(
118433
+ }, Ln = /([A-Z])/g, or = /^ms-/, yr = /^(?:webkit|moz|o)[A-Z]/, ka = /^-ms-/, bn = /-(.)/g, hn = /;\s*$/, _n = {}, Bn = {}, mr = !1, oa = !1, pr = new Set(
118573
118434
  "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(
118574
118435
  " "
118575
118436
  )
@@ -119454,7 +119315,7 @@ Check the render method of %s.`,
119454
119315
  } catch {
119455
119316
  Tb = !0;
119456
119317
  }
119457
- var fy = /* @__PURE__ */ new WeakMap(), cg = [], ug = 0, Qv = null, ax = 0, Dc = [], Lc = 0, Sh = null, Gd = 1, qd = "", lo = null, Xa = null, Jr = !1, rd = !1, Gl = null, cp = null, Ic = !1, py = Error(
119318
+ var fy = /* @__PURE__ */ new WeakMap(), cg = [], ug = 0, Qv = null, ax = 0, Dc = [], Lc = 0, Sh = null, Gd = 1, qd = "", lo = null, Xa = null, ea = !1, rd = !1, Gl = null, cp = null, Ic = !1, py = Error(
119458
119319
  "Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."
119459
119320
  ), hy = ze(null), my = ze(null), Ab = {}, Jv = null, dg = null, fg = !1, lS = typeof AbortController < "u" ? AbortController : function() {
119460
119321
  var f = [], b = this.signal = {
@@ -119856,10 +119717,10 @@ Check the top-level render call using <` + q + ">.");
119856
119717
  return Mn = "useId", Sr(), Dp();
119857
119718
  },
119858
119719
  useFormState: function(f, b) {
119859
- return Mn = "useFormState", Sr(), xd(), Kr(f, b);
119720
+ return Mn = "useFormState", Sr(), xd(), Gr(f, b);
119860
119721
  },
119861
119722
  useActionState: function(f, b) {
119862
- return Mn = "useActionState", Sr(), Kr(f, b);
119723
+ return Mn = "useActionState", Sr(), Gr(f, b);
119863
119724
  },
119864
119725
  useOptimistic: function(f) {
119865
119726
  return Mn = "useOptimistic", Sr(), su(f);
@@ -119948,10 +119809,10 @@ Check the top-level render call using <` + q + ">.");
119948
119809
  return Mn = "useId", Un(), Dp();
119949
119810
  },
119950
119811
  useActionState: function(f, b) {
119951
- return Mn = "useActionState", Un(), Kr(f, b);
119812
+ return Mn = "useActionState", Un(), Gr(f, b);
119952
119813
  },
119953
119814
  useFormState: function(f, b) {
119954
- return Mn = "useFormState", Un(), xd(), Kr(f, b);
119815
+ return Mn = "useFormState", Un(), xd(), Gr(f, b);
119955
119816
  },
119956
119817
  useOptimistic: function(f) {
119957
119818
  return Mn = "useOptimistic", Un(), su(f);
@@ -120226,10 +120087,10 @@ Check the top-level render call using <` + q + ">.");
120226
120087
  return Mn = "useId", h(), Sr(), Dp();
120227
120088
  },
120228
120089
  useFormState: function(f, b) {
120229
- return Mn = "useFormState", h(), Sr(), Kr(f, b);
120090
+ return Mn = "useFormState", h(), Sr(), Gr(f, b);
120230
120091
  },
120231
120092
  useActionState: function(f, b) {
120232
- return Mn = "useActionState", h(), Sr(), Kr(f, b);
120093
+ return Mn = "useActionState", h(), Sr(), Gr(f, b);
120233
120094
  },
120234
120095
  useOptimistic: function(f) {
120235
120096
  return Mn = "useOptimistic", h(), Sr(), su(f);
@@ -120480,7 +120341,7 @@ Check the top-level render call using <` + q + ">.");
120480
120341
  var kx = Symbol.for;
120481
120342
  kx("selector.component"), kx("selector.has_pseudo_class"), kx("selector.role"), kx("selector.test_id"), kx("selector.text");
120482
120343
  }
120483
- var yS = [], bS = typeof WeakMap == "function" ? WeakMap : Map, Bs = 0, bs = 2, Xl = 4, tf = 0, Tx = 1, Dh = 2, g1 = 3, gp = 4, x1 = 6, Aw = 5, la = Bs, La = null, qr = null, Ur = 0, pl = 0, v1 = 1, Lh = 2, $x = 3, Nw = 4, Ly = 5, Ax = 6, y1 = 7, Iy = 8, Ih = 9, Ta = pl, Yl = null, xp = !1, Eg = !1, Oy = !1, od = 0, di = tf, vp = 0, yp = 0, Py = 0, hl = 0, Oh = 0, Nx = null, Yo = null, b1 = !1, w1 = 0, Rw = 0, jw = 300, _1 = 1 / 0, Mw = 500, Rx = null, Ri = null, bp = null, S1 = 0, Fy = 1, By = 2, Dw = 3, wp = 0, Lw = 1, Iw = 2, Ow = 3, Pw = 4, C1 = 5, ss = 0, _p = null, kg = null, Su = 0, zy = 0, Vy = -0, Uy = null, Fw = null, Bw = null, Cu = S1, zw = null, wS = 50, jx = 0, Hy = null, Gy = !1, E1 = !1, _S = 50, Ph = 0, Mx = null, Tg = !1, k1 = null, Vw = !1, Uw = /* @__PURE__ */ new Set(), SS = {}, T1 = null, $g = null, qy = !1, Wy = !1, $1 = !1, Xy = !1, Sp = 0, Yy = {};
120344
+ var yS = [], bS = typeof WeakMap == "function" ? WeakMap : Map, Bs = 0, bs = 2, Xl = 4, tf = 0, Tx = 1, Dh = 2, g1 = 3, gp = 4, x1 = 6, Aw = 5, la = Bs, La = null, Wr = null, Ur = 0, pl = 0, v1 = 1, Lh = 2, $x = 3, Nw = 4, Ly = 5, Ax = 6, y1 = 7, Iy = 8, Ih = 9, Ta = pl, Yl = null, xp = !1, Eg = !1, Oy = !1, od = 0, di = tf, vp = 0, yp = 0, Py = 0, hl = 0, Oh = 0, Nx = null, Yo = null, b1 = !1, w1 = 0, Rw = 0, jw = 300, _1 = 1 / 0, Mw = 500, Rx = null, Ri = null, bp = null, S1 = 0, Fy = 1, By = 2, Dw = 3, wp = 0, Lw = 1, Iw = 2, Ow = 3, Pw = 4, C1 = 5, ss = 0, _p = null, kg = null, Su = 0, zy = 0, Vy = -0, Uy = null, Fw = null, Bw = null, Cu = S1, zw = null, wS = 50, jx = 0, Hy = null, Gy = !1, E1 = !1, _S = 50, Ph = 0, Mx = null, Tg = !1, k1 = null, Vw = !1, Uw = /* @__PURE__ */ new Set(), SS = {}, T1 = null, $g = null, qy = !1, Wy = !1, $1 = !1, Xy = !1, Sp = 0, Yy = {};
120484
120345
  (function() {
120485
120346
  for (var f = 0; f < sy.length; f++) {
120486
120347
  var b = sy[f], j = b.toLowerCase();
@@ -123482,10 +123343,10 @@ var ApiError = class extends Error {
123482
123343
  }), jn = (0, import_react7.useCallback)(async () => {
123483
123344
  try {
123484
123345
  s(!0);
123485
- const lr = "/api/items", $a = c || l ? `/api/items?workspace_id=${encodeURIComponent(
123346
+ const sr = "/api/items", $a = c || l ? `/api/items?workspace_id=${encodeURIComponent(
123486
123347
  c || l
123487
123348
  )}` : void 0, [ya, _a] = await Promise.all([
123488
- apiJson(lr),
123349
+ apiJson(sr),
123489
123350
  $a ? apiJson($a) : Promise.resolve([])
123490
123351
  ]), zs = ((wi, Gi) => {
123491
123352
  const ba = /* @__PURE__ */ new Map(), za = (oi, fi) => {
@@ -123520,8 +123381,8 @@ var ApiError = class extends Error {
123520
123381
  ), De(Hi(INITIAL_PROPS, fa.props)), ze(
123521
123382
  Ba(INITIAL_MODEL_STYLE_CATEGORIES, fa.modelStyleCategories)
123522
123383
  ), Ke(Hi(INITIAL_MODEL_STYLES, fa.modelStyles)), et(Hi(INITIAL_POSES, fa.poses)), it(Ba(INITIAL_MOTION_PRESETS, fa.motionPresets)), Ge(Ba(INITIAL_SYSTEM_PROMPTS, fa.systemPrompts));
123523
- } catch (lr) {
123524
- console.error("Error loading CMS data, using defaults:", lr), Bt(INITIAL_PRODUCTS), Pt(INITIAL_TEMPLATES_DATA), ln(INITIAL_PROMPTS), Ht(INITIAL_HOMEPAGE_CARDS), Qt(INITIAL_UPLOAD_CONFIGS), h(INITIAL_BG_CATEGORIES), v(INITIAL_BACKGROUNDS), N(INITIAL_MODEL_CATEGORIES), R(INITIAL_MODELS), P(INITIAL_AD_TEMPLATES), Z(INITIAL_AD_TEMPLATE_CATEGORIES), ne(INITIAL_STYLING_CATEGORIES), Ae(INITIAL_STYLING_ITEMS), je(INITIAL_PROP_CATEGORIES), De(INITIAL_PROPS), ze(INITIAL_MODEL_STYLE_CATEGORIES), Ke(INITIAL_MODEL_STYLES), et(INITIAL_POSES), it(INITIAL_MOTION_PRESETS), Ge(INITIAL_SYSTEM_PROMPTS);
123384
+ } catch (sr) {
123385
+ console.error("Error loading CMS data, using defaults:", sr), Bt(INITIAL_PRODUCTS), Pt(INITIAL_TEMPLATES_DATA), ln(INITIAL_PROMPTS), Ht(INITIAL_HOMEPAGE_CARDS), Qt(INITIAL_UPLOAD_CONFIGS), h(INITIAL_BG_CATEGORIES), v(INITIAL_BACKGROUNDS), N(INITIAL_MODEL_CATEGORIES), R(INITIAL_MODELS), P(INITIAL_AD_TEMPLATES), Z(INITIAL_AD_TEMPLATE_CATEGORIES), ne(INITIAL_STYLING_CATEGORIES), Ae(INITIAL_STYLING_ITEMS), je(INITIAL_PROP_CATEGORIES), De(INITIAL_PROPS), ze(INITIAL_MODEL_STYLE_CATEGORIES), Ke(INITIAL_MODEL_STYLES), et(INITIAL_POSES), it(INITIAL_MOTION_PRESETS), Ge(INITIAL_SYSTEM_PROMPTS);
123525
123386
  } finally {
123526
123387
  s(!1);
123527
123388
  }
@@ -123529,29 +123390,29 @@ var ApiError = class extends Error {
123529
123390
  (0, import_react7.useEffect)(() => {
123530
123391
  o.pathname.includes("/workspace/") && !l || jn();
123531
123392
  }, [jn, o.pathname, l]), (0, import_react7.useEffect)(() => {
123532
- const lr = () => {
123393
+ const sr = () => {
123533
123394
  o.pathname.includes("/workspace/") && !l || jn();
123534
123395
  };
123535
- return window.addEventListener("cms:refresh", lr), () => window.removeEventListener("cms:refresh", lr);
123396
+ return window.addEventListener("cms:refresh", sr), () => window.removeEventListener("cms:refresh", sr);
123536
123397
  }, [jn, o.pathname, l]);
123537
123398
  const [zn, Nn] = (0, import_react7.useState)(
123538
123399
  /* @__PURE__ */ new Set()
123539
- ), [Gn, dr] = (0, import_react7.useState)(/* @__PURE__ */ new Set()), [or, _r] = (0, import_react7.useState)({}), Nr = (lr, $a) => {
123400
+ ), [Gn, dr] = (0, import_react7.useState)(/* @__PURE__ */ new Set()), [lr, _r] = (0, import_react7.useState)({}), Nr = (sr, $a) => {
123540
123401
  _r((ya) => {
123541
- const _a = new Set(ya[lr] || []);
123542
- return _a.has($a) ? _a.delete($a) : _a.add($a), { ...ya, [lr]: _a };
123402
+ const _a = new Set(ya[sr] || []);
123403
+ return _a.has($a) ? _a.delete($a) : _a.add($a), { ...ya, [sr]: _a };
123543
123404
  });
123544
- }, ca = (lr) => {
123405
+ }, ca = (sr) => {
123545
123406
  Nn(($a) => {
123546
123407
  const ya = new Set($a);
123547
- return ya.has(lr) ? ya.delete(lr) : ya.add(lr), ya;
123408
+ return ya.has(sr) ? ya.delete(sr) : ya.add(sr), ya;
123548
123409
  });
123549
- }, ir = (lr) => {
123410
+ }, ir = (sr) => {
123550
123411
  dr(($a) => {
123551
123412
  const ya = new Set($a);
123552
- return ya.has(lr) ? ya.delete(lr) : ya.add(lr), ya;
123413
+ return ya.has(sr) ? ya.delete(sr) : ya.add(sr), ya;
123553
123414
  });
123554
- }, cr = (lr) => ot.find(($a) => $a.id === lr)?.prompt, si = async () => {
123415
+ }, cr = (sr) => ot.find(($a) => $a.id === sr)?.prompt, si = async () => {
123555
123416
  }, Ka = (0, import_react7.useMemo)(
123556
123417
  () => ({
123557
123418
  products: It,
@@ -123636,7 +123497,7 @@ var ApiError = class extends Error {
123636
123497
  isLoading: n,
123637
123498
  favoriteModelIds: zn,
123638
123499
  favoriteBgIds: Gn,
123639
- favoritesByType: or,
123500
+ favoritesByType: lr,
123640
123501
  toggleFavorite: Nr,
123641
123502
  toggleFavoriteModel: ca,
123642
123503
  toggleFavoriteBg: ir
@@ -123666,7 +123527,7 @@ var ApiError = class extends Error {
123666
123527
  n,
123667
123528
  zn,
123668
123529
  Gn,
123669
- or
123530
+ lr
123670
123531
  ]
123671
123532
  );
123672
123533
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CMSContext.Provider, { value: Ka, children: e });
@@ -137923,6 +137784,148 @@ function AttachedBoardPreview({ anchor: e, open: t, onBack: n, children: s }) {
137923
137784
  }
137924
137785
  ), document.body);
137925
137786
  }
137787
+ const BTF = [
137788
+ { key: "best_seller", label: "Best Seller" },
137789
+ { key: "trending", label: "Trending" },
137790
+ { key: "forecast", label: "Forecast" }
137791
+ ], readable = (e) => e.replace(/_/g, " ").replace(/^\w/, (t) => t.toUpperCase());
137792
+ function regenerateContext(e) {
137793
+ for (let t = e.length - 1; t >= 0; t -= 1) {
137794
+ const n = object(object(e[t].props).refineCtx);
137795
+ if (Object.keys(object(n.inputs)).length) return n;
137796
+ }
137797
+ return null;
137798
+ }
137799
+ function pick(e, t) {
137800
+ const n = e.trim().toLowerCase();
137801
+ return t.find((s) => s.value.toLowerCase() === n || s.label.toLowerCase() === n)?.value ?? e.trim();
137802
+ }
137803
+ function initialChoices(e) {
137804
+ const t = object(e.inputs), n = object(e.options), s = object(t.btf), o = BTF.every(({ key: d }) => Number.isFinite(Number(s[d]))) ? Object.fromEntries(BTF.map(({ key: d }) => [d, Number(s[d])])) : distributeWeights(BTF.map(({ key: d }) => d)), l = (d, h) => text$1(d).trim() ? [pick(text$1(d), options$2(n[h]))] : [], c = object(t.selected_theme);
137805
+ return {
137806
+ categories: list(t.bricks).map(String).filter(Boolean),
137807
+ btf: o,
137808
+ gender: l(t.gender_mix, "gender_mix"),
137809
+ total: t.total_options == null || t.total_options === "" ? [] : [String(t.total_options)],
137810
+ adherence: l(t.brand_adherence, "brand_adherence"),
137811
+ theme: list(c.themes).length ? list(c.themes).map(String) : text$1(c.name).trim() ? [text$1(c.name)] : [],
137812
+ notes: text$1(t.notes)
137813
+ };
137814
+ }
137815
+ function regenerateProblem(e) {
137816
+ const t = Object.values(e.btf).reduce((n, s) => n + s, 0);
137817
+ return e.categories.length ? t !== 100 ? "The BTF mix must total 100%." : e.gender.length ? !e.total.length || e.total.some((n) => !/^\d+$/.test(n) || Number(n) < 1 || Number(n) > 200) ? "Choose between 1 and 200 options." : e.adherence.length ? "" : "Choose a brand adherence." : "Choose a gender mix." : "Pick at least one category.";
137818
+ }
137819
+ function regenerateMessage(e, t, n) {
137820
+ const s = object(n.options), o = (d, h) => d.map((g) => options$2(s[h]).find((v) => v.value === g)?.label ?? g), l = t.categories.map((d) => {
137821
+ const h = options$2(s.categories).find((g) => g.value === d);
137822
+ return h ? h.label : readable(d);
137823
+ }), c = [
137824
+ `Regenerate the range plan with these choices (plan_refine thread_id: ${e}):`,
137825
+ `- Categories: ${l.join(", ")}`,
137826
+ `- BTF mix: ${BTF.map(({ key: d, label: h }) => `${h} ${t.btf[d]}%`).join(" / ")}`,
137827
+ `- Gender mix: ${o(t.gender, "gender_mix").join(", ")}`,
137828
+ `- Total options: ${t.total.join(", ")}`,
137829
+ `- Brand adherence: ${o(t.adherence, "brand_adherence").join(", ")}`,
137830
+ `- Theme: ${t.theme.length ? t.theme.join(" | ") : "No theme"}`
137831
+ ];
137832
+ return t.notes.trim() && c.push(`- Other changes: ${t.notes.trim()}`), c.join(`
137833
+ `);
137834
+ }
137835
+ function MultiField({ label: e, choices: t, values: n, onChange: s, disabled: o, placeholder: l, numeric: c = !1, display: d = (g) => g, children: h }) {
137836
+ const [g, v] = useState(""), C = n.filter((R) => !t.some((I) => I.value === R)).map((R) => ({ value: R, label: d(R) })), N = (R) => s(n.includes(R) ? n.filter((I) => I !== R) : [...n, R]), T = () => {
137837
+ const R = g.replace(/\s*[,|]\s*/g, " ").replace(/\s+/g, " ").trim();
137838
+ if (!R) return;
137839
+ const I = t.find((P) => P.label.toLowerCase() === R.toLowerCase() || P.value.toLowerCase() === R.toLowerCase());
137840
+ s([.../* @__PURE__ */ new Set([...n, I?.value ?? R])]), v("");
137841
+ };
137842
+ return /* @__PURE__ */ jsxs("section", { className: "dreamer-stack dreamer-regenerate-field", children: [
137843
+ /* @__PURE__ */ jsx("h4", { children: e }),
137844
+ /* @__PURE__ */ jsx("p", { className: "dreamer-muted", children: "Select all that apply." }),
137845
+ /* @__PURE__ */ jsxs("div", { className: "dreamer-actions", role: "group", "aria-label": e, children: [
137846
+ [...t, ...C].map((R) => /* @__PURE__ */ jsx(Action, { disabled: o, selected: n.includes(R.value), onClick: () => N(R.value), children: R.label }, R.value)),
137847
+ h
137848
+ ] }),
137849
+ /* @__PURE__ */ jsxs("div", { className: "dreamer-actions dreamer-typed", children: [
137850
+ /* @__PURE__ */ jsx(
137851
+ ScTextField,
137852
+ {
137853
+ "aria-label": `${e}: add your own`,
137854
+ placeholder: l,
137855
+ value: g,
137856
+ disabled: o,
137857
+ inputMode: c ? "numeric" : void 0,
137858
+ onChange: (R) => v(c ? R.target.value.replace(/[^\d]/g, "") : R.target.value),
137859
+ onKeyDown: (R) => {
137860
+ R.key === "Enter" && (R.preventDefault(), T());
137861
+ }
137862
+ }
137863
+ ),
137864
+ /* @__PURE__ */ jsx(Action, { disabled: o || !g.trim(), onClick: T, children: "Add" })
137865
+ ] })
137866
+ ] });
137867
+ }
137868
+ function DreamerRegenerateForm({ ctx: e, threadId: t, onSend: n, onClose: s }) {
137869
+ const [o, l] = useState(() => initialChoices(e)), [c, d] = useState(!1), [h, g] = useState(""), v = object(e.options), C = (P) => l((F) => ({ ...F, ...P })), N = Object.values(o.btf).reduce((P, F) => P + F, 0), T = regenerateProblem(o), R = useRef(null);
137870
+ useEffect(() => {
137871
+ R.current?.scrollIntoView?.({ block: "nearest", behavior: "smooth" });
137872
+ }, []);
137873
+ const I = async () => {
137874
+ if (!(T || c)) {
137875
+ d(!0), g("");
137876
+ try {
137877
+ await n(regenerateMessage(t, o, e)), s();
137878
+ } catch {
137879
+ g("Could not send the request. Try again."), d(!1);
137880
+ }
137881
+ }
137882
+ };
137883
+ return /* @__PURE__ */ jsxs("section", { ref: R, className: "dreamer-question-card dreamer-regenerate", "data-testid": "dreamer-regenerate", "aria-label": "Regenerate plan", children: [
137884
+ /* @__PURE__ */ jsxs("header", { className: "dreamer-question-header", children: [
137885
+ /* @__PURE__ */ jsx("h3", { children: "Regenerate plan" }),
137886
+ /* @__PURE__ */ jsx("p", { className: "dreamer-muted", children: "Your previous choices are filled in. Change any of them, then regenerate." })
137887
+ ] }),
137888
+ /* @__PURE__ */ jsxs("div", { className: "dreamer-question-body dreamer-stack", children: [
137889
+ /* @__PURE__ */ jsx(MultiField, { label: "Product categories", choices: options$2(v.categories), values: o.categories, onChange: (P) => C({ categories: P }), disabled: c, placeholder: "Add a category…", display: readable }),
137890
+ /* @__PURE__ */ jsxs("section", { className: "dreamer-stack dreamer-regenerate-field", children: [
137891
+ /* @__PURE__ */ jsx("h4", { children: "Best Seller / Trending / Forecast mix" }),
137892
+ BTF.map(({ key: P, label: F }) => /* @__PURE__ */ jsxs("label", { className: "dreamer-stack", children: [
137893
+ /* @__PURE__ */ jsxs("span", { children: [
137894
+ F,
137895
+ ": ",
137896
+ o.btf[P],
137897
+ "%"
137898
+ ] }),
137899
+ /* @__PURE__ */ jsx("input", { "aria-label": F, type: "range", min: 0, max: 100, step: 1, value: o.btf[P], disabled: c, onChange: (Z) => C({ btf: updateWeights(o.btf, P, Number(Z.target.value)) }) })
137900
+ ] }, P)),
137901
+ /* @__PURE__ */ jsxs("p", { className: "dreamer-muted", "aria-live": "polite", children: [
137902
+ "Total: ",
137903
+ N,
137904
+ "% of 100%"
137905
+ ] })
137906
+ ] }),
137907
+ /* @__PURE__ */ jsx(MultiField, { label: "Gender mix", choices: options$2(v.gender_mix), values: o.gender, onChange: (P) => C({ gender: P }), disabled: c, placeholder: "Add a mix, e.g. Women 60 / Men 40" }),
137908
+ /* @__PURE__ */ jsx(MultiField, { label: "Total design options", choices: options$2(v.total_options), values: o.total, onChange: (P) => C({ total: P }), disabled: c, placeholder: "Add a number", numeric: !0 }),
137909
+ /* @__PURE__ */ jsx(MultiField, { label: "Brand adherence", choices: options$2(v.brand_adherence), values: o.adherence, onChange: (P) => C({ adherence: P }), disabled: c, placeholder: "Add high, medium or low" }),
137910
+ /* @__PURE__ */ jsx(MultiField, { label: "Theme", choices: options$2(v.themes), values: o.theme, onChange: (P) => C({ theme: P }), disabled: c, placeholder: "Describe your own theme", children: /* @__PURE__ */ jsx(Action, { disabled: c, selected: !o.theme.length, onClick: () => C({ theme: [] }), children: "No theme" }) }),
137911
+ /* @__PURE__ */ jsxs("section", { className: "dreamer-stack dreamer-regenerate-field", children: [
137912
+ /* @__PURE__ */ jsx("h4", { children: "Other changes" }),
137913
+ /* @__PURE__ */ jsx(ScTextArea, { "aria-label": "Other changes", placeholder: "Anything else to change, e.g. more linen, fewer prints…", value: o.notes, disabled: c, onChange: (P) => C({ notes: P.target.value }) })
137914
+ ] }),
137915
+ (T || h) && /* @__PURE__ */ jsx("p", { role: "alert", className: "dreamer-muted", children: h || T })
137916
+ ] }),
137917
+ /* @__PURE__ */ jsxs("footer", { className: "dreamer-question-footer", children: [
137918
+ /* @__PURE__ */ jsx(Action, { disabled: c || !!T, onClick: () => {
137919
+ I();
137920
+ }, children: c ? "Regenerating…" : "Regenerate plan" }),
137921
+ /* @__PURE__ */ jsx(Action, { disabled: c, onClick: s, children: "Cancel" })
137922
+ ] })
137923
+ ] });
137924
+ }
137925
+ function DreamerRegenerate({ uiProps: e, onSend: t, disabled: n = !1 }) {
137926
+ const [s, o] = useState(!1), l = e.resume === !0 && !!text$1(object(e.question).id), c = regenerateContext(records(e.components).map((h) => ({ props: object(h.props) }))), d = text$1(e.thread_id);
137927
+ return l || !c || !d ? null : /* @__PURE__ */ jsx("div", { className: "dreamer-panel dreamer-inline-form dreamer-regenerate-chat", "data-testid": "dreamer-regenerate-chat", children: s ? /* @__PURE__ */ jsx(DreamerRegenerateForm, { ctx: c, threadId: d, onSend: t, onClose: () => o(!1) }) : /* @__PURE__ */ jsx("div", { className: "dreamer-actions dreamer-regenerate-entry", children: /* @__PURE__ */ jsx(Action, { disabled: n, onClick: () => o(!0), children: "Regenerate" }) }) });
137928
+ }
137926
137929
  function PaneAwaitBar({ title: e, showing: t, onFocus: n }) {
137927
137930
  return /* @__PURE__ */ jsxs(
137928
137931
  "div",
@@ -142946,7 +142949,7 @@ function ChatScreen() {
142946
142949
  const Gt = useRef(!1), Jt = useRef(null), Sn = useRef(() => {
142947
142950
  }), jn = useRef(null), zn = useRef(() => {
142948
142951
  }), Nn = useRef(!1), Gn = useRef(() => {
142949
- }), [dr, or] = useState(!1), _r = useRef(null), [Nr, ca] = useState(() => /* @__PURE__ */ new Map()), [ir, cr] = useState([]), [si, Ka] = useState(!1), [lr, $a] = useState(!1), [ya, _a] = useState(null), [bi, zs] = useState(!1), [fa, Ba] = useState(!1), [Hi, wi] = useState(null), Gi = useBackendReachable(), [ba, za] = useState(!1), [oi, fi] = useState("general"), [co, pi] = useState(!1), [ld, ws] = useState(!1), [ml, Za] = useState([]), [hi, Uc] = useState(!1), [cd, Xr] = useState(!1), [Qa, ji] = useState([]), [Hc, _s] = useState(!1), [Dr, os] = useState(0), [Kl, Eo] = useState("cursor-end"), [Eu, Ia] = useState(0), uo = useRef(!1), { notifyProcessingComplete: Zl } = useNotifications({
142952
+ }), [dr, lr] = useState(!1), _r = useRef(null), [Nr, ca] = useState(() => /* @__PURE__ */ new Map()), [ir, cr] = useState([]), [si, Ka] = useState(!1), [sr, $a] = useState(!1), [ya, _a] = useState(null), [bi, zs] = useState(!1), [fa, Ba] = useState(!1), [Hi, wi] = useState(null), Gi = useBackendReachable(), [ba, za] = useState(!1), [oi, fi] = useState("general"), [co, pi] = useState(!1), [ld, ws] = useState(!1), [ml, Za] = useState([]), [hi, Uc] = useState(!1), [cd, Yr] = useState(!1), [Qa, ji] = useState([]), [Hc, _s] = useState(!1), [Dr, os] = useState(0), [Kl, Eo] = useState("cursor-end"), [Eu, Ia] = useState(0), uo = useRef(!1), { notifyProcessingComplete: Zl } = useNotifications({
142950
142953
  hasPendingAttentionInput: () => uo.current
142951
142954
  }), [gl, ko] = useState(!1), xl = useRef(null), ku = useCallback((ft) => {
142952
142955
  console.info("[SSE] reconnect -> silent refetch", { chatId: ft }), xl.current?.(ft, !0);
@@ -142975,7 +142978,7 @@ function ChatScreen() {
142975
142978
  useEffect(() => subscribeToChatPrompts(of), [of]);
142976
142979
  const Jl = useRef(0), vl = useRef(0), Ko = useCallback(async () => {
142977
142980
  const ft = ++Jl.current;
142978
- Xr(!0);
142981
+ Yr(!0);
142979
142982
  try {
142980
142983
  const Yt = normalizeSpecializationKey(F), Zt = await listQuickPrompts({
142981
142984
  page: 1,
@@ -142993,7 +142996,7 @@ function ChatScreen() {
142993
142996
  if (ft !== Jl.current) return;
142994
142997
  console.error("Failed to load quick prompts", Yt), Za([]);
142995
142998
  } finally {
142996
- ft === Jl.current && Xr(!1);
142999
+ ft === Jl.current && Yr(!1);
142997
143000
  }
142998
143001
  }, [F]);
142999
143002
  useEffect(() => {
@@ -143324,8 +143327,8 @@ function ChatScreen() {
143324
143327
  [T, Qt]
143325
143328
  ), Kn = useCallback((ft) => {
143326
143329
  cr((Yt) => Yt.filter((Zt) => Zt.id !== ft));
143327
- }, []), ur = ir.find((ft) => ft.uploadStatus === "error"), Lr = ur ? `${ur.uploadError ?? `Couldn't upload "${ur.file.name}".`} Remove it to send your message.` : null, Yr = fr, ea = useCallback(async (ft, Yt) => {
143328
- if (!T || !R || !I || lr) return !1;
143330
+ }, []), ur = ir.find((ft) => ft.uploadStatus === "error"), Lr = ur ? `${ur.uploadError ?? `Couldn't upload "${ur.file.name}".`} Remove it to send your message.` : null, Kr = fr, Qr = useCallback(async (ft, Yt) => {
143331
+ if (!T || !R || !I || sr) return !1;
143329
143332
  const Zt = typeof ft == "string" ? ft.trim() : "";
143330
143333
  if (!Zt) return !1;
143331
143334
  const $n = Yt?.forceNewConversation ?? !1, kn = Yt?.hostEvent ? eventConversation(T, R) : null, Xn = Yt?.hostEvent ? kn ?? uuidv7() : $n ? uuidv7() : Qt || uuidv7(), Qn = Yt?.hostEvent ? !kn : $n || !Qt;
@@ -143345,7 +143348,7 @@ function ChatScreen() {
143345
143348
  ht(($l) => [
143346
143349
  ...$l.filter((Ds) => !Yt?.hostEvent || Ds.chatId !== Xn || getMessageClientMessageId(Ds) !== vr),
143347
143350
  wa
143348
- ]), Me.current = !0, bt.current = !0, Nn.current = !1, or(!1), requestAnimationFrame(() => {
143351
+ ]), Me.current = !0, bt.current = !0, Nn.current = !1, lr(!1), requestAnimationFrame(() => {
143349
143352
  Gn.current(), Rn.current?.scrollHeight, fo("user-submit", { force: !0, delayMs: 150 });
143350
143353
  }), Yt?.clearComposer && Oe(""), Yt?.clearPendingFiles && cr([]), _i(Xn), (Qn || Yt?.hostEvent && Xn !== Qt) && C(Xn);
143351
143354
  const Oi = To(Xn).then(
@@ -143383,7 +143386,7 @@ function ChatScreen() {
143383
143386
  T,
143384
143387
  R,
143385
143388
  I,
143386
- lr,
143389
+ sr,
143387
143390
  Qt,
143388
143391
  vt,
143389
143392
  P,
@@ -143400,11 +143403,11 @@ function ChatScreen() {
143400
143403
  Zo
143401
143404
  ]);
143402
143405
  useEffect(() => {
143403
- if (!e?.active || Z !== "inline_ask" || !T || !R || lr || Ja || s.current || Date.now() < o.current) return;
143406
+ if (!e?.active || Z !== "inline_ask" || !T || !R || sr || Ja || s.current || Date.now() < o.current) return;
143404
143407
  const ft = pendingAgentEvents(T, R)[0];
143405
143408
  if (!ft) return;
143406
143409
  const Yt = `${R}:${T}:${ft.id}`;
143407
- l.current.has(Yt) && (Qt !== eventConversation(T, R) || useSupportStore.getState().active) || (l.current.add(Yt), s.current = !0, ea(ft.label, { hostEvent: ft }).then((Zt) => {
143410
+ l.current.has(Yt) && (Qt !== eventConversation(T, R) || useSupportStore.getState().active) || (l.current.add(Yt), s.current = !0, Qr(ft.label, { hostEvent: ft }).then((Zt) => {
143408
143411
  Zt ? (l.current.delete(Yt), acknowledgeAgentEvent(ft)) : o.current = Date.now() + 3e4;
143409
143412
  }).finally(() => {
143410
143413
  s.current = !1, window.setTimeout(
@@ -143417,8 +143420,8 @@ function ChatScreen() {
143417
143420
  Z,
143418
143421
  T,
143419
143422
  R,
143420
- lr,
143421
- ea,
143423
+ sr,
143424
+ Qr,
143422
143425
  t,
143423
143426
  Ja,
143424
143427
  Qt
@@ -143427,22 +143430,22 @@ function ChatScreen() {
143427
143430
  const Zt = ft.chatId, $n = getMessageClientMessageId(
143428
143431
  ft
143429
143432
  );
143430
- ht((kn) => kn.filter((Xn) => !(Xn.role === "user" && Xn.chatId === Zt && getMessageClientMessageId(Xn) === $n))), await ea(Yt);
143431
- }, [ht, ea]), ds = useCallback(async (ft, Yt) => {
143433
+ ht((kn) => kn.filter((Xn) => !(Xn.role === "user" && Xn.chatId === Zt && getMessageClientMessageId(Xn) === $n))), await Qr(Yt);
143434
+ }, [ht, Qr]), ds = useCallback(async (ft, Yt) => {
143432
143435
  const Zt = Yt || ft;
143433
- if (!(_t.current || lr)) {
143436
+ if (!(_t.current || sr)) {
143434
143437
  _t.current = Zt, _a(Zt);
143435
143438
  try {
143436
- await ea(ft);
143439
+ await Qr(ft);
143437
143440
  } finally {
143438
143441
  _t.current = null, _a(null);
143439
143442
  }
143440
143443
  }
143441
- }, [lr, ea]);
143444
+ }, [sr, Qr]);
143442
143445
  useEffect(() => {
143443
- if (!T || !R || !I || lr || yn || on.current !== null || ln.current[0]?.samples?.length) return;
143446
+ if (!T || !R || !I || sr || yn || on.current !== null || ln.current[0]?.samples?.length) return;
143444
143447
  const ft = ln.current.shift();
143445
- ft && (on.current = "plain", Ia((Yt) => Yt + 1), ea(ft.prompt, {
143448
+ ft && (on.current = "plain", Ia((Yt) => Yt + 1), Qr(ft.prompt, {
143446
143449
  forceNewConversation: ft.forceNewConversation
143447
143450
  }).finally(() => {
143448
143451
  on.current = null, Ia((Yt) => Yt + 1);
@@ -143451,13 +143454,13 @@ function ChatScreen() {
143451
143454
  T,
143452
143455
  R,
143453
143456
  I,
143454
- lr,
143457
+ sr,
143455
143458
  yn,
143456
- ea,
143459
+ Qr,
143457
143460
  Eu
143458
143461
  ]);
143459
143462
  const nc = useCallback(async () => {
143460
- if (!T || !R || !I || lr) return;
143463
+ if (!T || !R || !I || sr) return;
143461
143464
  const ft = qt.trim();
143462
143465
  if (!ft && ir.length === 0) {
143463
143466
  Ka(!1), Ht(!1), on.current === "sampled" && (on.current = null);
@@ -143466,7 +143469,7 @@ function ChatScreen() {
143466
143469
  if (!canAutoSendQueuedSubmission(ir))
143467
143470
  return;
143468
143471
  const Yt = buildMessageWithAttachments(ft, ir);
143469
- Ka(!1), Ht(!1), on.current === "sampled" && (on.current = null), await ea(Yt, {
143472
+ Ka(!1), Ht(!1), on.current === "sampled" && (on.current = null), await Qr(Yt, {
143470
143473
  clearComposer: !0,
143471
143474
  clearPendingFiles: !0
143472
143475
  });
@@ -143474,22 +143477,22 @@ function ChatScreen() {
143474
143477
  T,
143475
143478
  R,
143476
143479
  I,
143477
- lr,
143480
+ sr,
143478
143481
  qt,
143479
143482
  ir,
143480
- ea
143483
+ Qr
143481
143484
  ]), wl = useCallback(async () => {
143482
- if (!(!T || !R || !I || lr || !Gi || !qt.trim() && ir.length === 0)) {
143485
+ if (!(!T || !R || !I || sr || !Gi || !qt.trim() && ir.length === 0)) {
143483
143486
  if (ir.length > 0 && !qn) {
143484
143487
  Ka(!0);
143485
143488
  return;
143486
143489
  }
143487
143490
  await nc();
143488
143491
  }
143489
- }, [T, R, I, lr, qt, ir, qn, nc, Gi]);
143492
+ }, [T, R, I, sr, qt, ir, qn, nc, Gi]);
143490
143493
  useEffect(() => {
143491
- !si || lr || canAutoSendQueuedSubmission(ir) && nc();
143492
- }, [si, lr, ir, nc]);
143494
+ !si || sr || canAutoSendQueuedSubmission(ir) && nc();
143495
+ }, [si, sr, ir, nc]);
143493
143496
  const _l = useCallback(async (ft) => {
143494
143497
  if (ft.length === 0) return;
143495
143498
  const Yt = ft.map(
@@ -143498,7 +143501,7 @@ function ChatScreen() {
143498
143501
  cr((Zt) => [...Zt, ...Yt]);
143499
143502
  }, []);
143500
143503
  useEffect(() => {
143501
- if (!T || !R || !I || lr || si || yn || on.current !== null) return;
143504
+ if (!T || !R || !I || sr || si || yn || on.current !== null) return;
143502
143505
  const ft = ln.current[0];
143503
143506
  if (!ft?.samples?.length) return;
143504
143507
  ln.current.shift(), on.current = "sampled", Ht(!0), Ia((Zt) => Zt + 1);
@@ -143516,7 +143519,7 @@ function ChatScreen() {
143516
143519
  T,
143517
143520
  R,
143518
143521
  I,
143519
- lr,
143522
+ sr,
143520
143523
  si,
143521
143524
  yn,
143522
143525
  _l,
@@ -143538,9 +143541,9 @@ function ChatScreen() {
143538
143541
  );
143539
143542
  const $o = useCallback(
143540
143543
  (ft) => {
143541
- ea(ft.prompt, { forceNewConversation: !0 });
143544
+ Qr(ft.prompt, { forceNewConversation: !0 });
143542
143545
  },
143543
- [ea]
143546
+ [Qr]
143544
143547
  ), md = useCallback((ft) => (ft.sampleTitle ?? "").toLowerCase().replace(/^(the|this|these|those|a|an)\s+/, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 60) || ft.sampleId || "sample", []), mo = useCallback(
143545
143548
  (ft, Yt) => {
143546
143549
  if (ft.sampleData) {
@@ -143700,7 +143703,7 @@ function ChatScreen() {
143700
143703
  },
143701
143704
  [Ut, d]
143702
143705
  ), Li = ma ? ic(ma) : null, ff = isReviewGate(ma), jr = ma && (Li === "inline" || ff) ? ma : null, { isDragging: sc, dropHandlers: Sl } = useFileDrop({
143703
- onFiles: Yr,
143706
+ onFiles: Kr,
143704
143707
  /* An interactive component owns the turn: the composer is disabled and an
143705
143708
  * attachment would have nowhere to go. True whether it is drawn in the dock
143706
143709
  * or in the pane — the run is parked either way. */
@@ -144259,11 +144262,11 @@ function ChatScreen() {
144259
144262
  const ft = Rn.current;
144260
144263
  if (!ft) return;
144261
144264
  const Yt = ft.scrollHeight - ft.scrollTop - ft.clientHeight, Zt = Nu.current && !Nn.current;
144262
- or(!Zt && Yt > 120);
144265
+ lr(!Zt && Yt > 120);
144263
144266
  }, []);
144264
144267
  zn.current = Un;
144265
144268
  const kl = useCallback(() => {
144266
- Nn.current = !1, bt.current = !0, Me.current = !0, or(!1), Ii() ? Ks("smooth") : mi("smooth");
144269
+ Nn.current = !1, bt.current = !0, Me.current = !0, lr(!1), Ii() ? Ks("smooth") : mi("smooth");
144267
144270
  }, [Ii, Ks, mi]);
144268
144271
  useEffect(() => {
144269
144272
  Ys(), !Gt.current && (fo("follow-tail", {
@@ -144333,7 +144336,7 @@ function ChatScreen() {
144333
144336
  for (let ft = Ra.length - 1; ft >= 0; ft--)
144334
144337
  if (isScrollAnchorRow(Ra[ft].kind)) return ft;
144335
144338
  return -1;
144336
- })(), Iu = Qt ? "active" : "empty", Qr = Iu === "empty", Do = Qr && (We || Ke !== null), Ou = Qr && !$e && !Do && hi && ud !== null, Tl = useSupportOverview(We, T, rt), vd = Do ? pickIncident(Tl?.products, typeof ne == "string" ? ne : je) : null, ms = usePrefersReducedMotion(), ti = useRef(!1);
144339
+ })(), Iu = Qt ? "active" : "empty", Jr = Iu === "empty", Do = Jr && (We || Ke !== null), Ou = Jr && !$e && !Do && hi && ud !== null, Tl = useSupportOverview(We, T, rt), vd = Do ? pickIncident(Tl?.products, typeof ne == "string" ? ne : je) : null, ms = usePrefersReducedMotion(), ti = useRef(!1);
144337
144340
  return useComposerTravel(tt, Iu, ms, ti), /* The query container is this wrapper; the split is one level in, because an
144338
144341
  * element is never its own query container.
144339
144342
  *
@@ -144377,7 +144380,7 @@ function ChatScreen() {
144377
144380
  /* @__PURE__ */ jsxs(
144378
144381
  "div",
144379
144382
  {
144380
- className: `sa-chat-column-root flex min-h-0 flex-col min-w-0 relative flex-1 ${Di ? "h-full" : ""} ${Qr ? "overflow-y-auto themed-scrollbar" : "overflow-hidden"}`,
144383
+ className: `sa-chat-column-root flex min-h-0 flex-col min-w-0 relative flex-1 ${Di ? "h-full" : ""} ${Jr ? "overflow-y-auto themed-scrollbar" : "overflow-hidden"}`,
144381
144384
  children: [
144382
144385
  Gi ? gl && Qt ? /* @__PURE__ */ jsxs(
144383
144386
  "div",
@@ -144406,7 +144409,7 @@ function ChatScreen() {
144406
144409
  "div",
144407
144410
  {
144408
144411
  ref: yl,
144409
- className: `relative flex min-h-0 flex-col ${Qr ? $e || Do ? "" : Ou ? "shrink-0" : "mt-auto shrink-0" : "flex-1"}`,
144412
+ className: `relative flex min-h-0 flex-col ${Jr ? $e || Do ? "" : Ou ? "shrink-0" : "mt-auto shrink-0" : "flex-1"}`,
144410
144413
  style: Ou ? { marginTop: ud ?? 0 } : void 0,
144411
144414
  children: [
144412
144415
  /* @__PURE__ */ jsxs(
@@ -144419,9 +144422,9 @@ function ChatScreen() {
144419
144422
  onKeyDown: Sr,
144420
144423
  "data-testid": "chat-scroll",
144421
144424
  "data-chat-mode": Iu,
144422
- className: `min-h-0 flex-1 overflow-y-auto pb-4 themed-scrollbar ${Qr ? "flex flex-col justify-start pt-[28px]" : "pt-2"}`,
144425
+ className: `min-h-0 flex-1 overflow-y-auto pb-4 themed-scrollbar ${Jr ? "flex flex-col justify-start pt-[28px]" : "pt-2"}`,
144423
144426
  children: [
144424
- Qr && /* @__PURE__ */ jsx("div", { className: "sa-chat-column pb-[8px]", children: Do ? /* @__PURE__ */ jsx(
144427
+ Jr && /* @__PURE__ */ jsx("div", { className: "sa-chat-column pb-[8px]", children: Do ? /* @__PURE__ */ jsx(
144425
144428
  SupportHomeHero,
144426
144429
  {
144427
144430
  incident: vd,
@@ -144437,7 +144440,7 @@ function ChatScreen() {
144437
144440
  "div",
144438
144441
  {
144439
144442
  ref: xn,
144440
- className: `sa-transcript sa-chat-column flex flex-col gap-6 ${Qr ? "hidden" : ""} ${dr ? "pb-[56px]" : ""}`,
144443
+ className: `sa-transcript sa-chat-column flex flex-col gap-6 ${Jr ? "hidden" : ""} ${dr ? "pb-[56px]" : ""}`,
144441
144444
  style: yt ? { paddingBottom: yt + 12 } : void 0,
144442
144445
  children: [
144443
144446
  Ra.map((ft, Yt) => {
@@ -144455,18 +144458,18 @@ function ChatScreen() {
144455
144458
  const Xn = !!Ti && ft.turnKey === Ti, Qn = !!ft.message?.additional_kwargs?.ui_components, vr = Xn ? Qn ? !0 : "position" : !1, $r = Yt > 0 ? getRowSpeaker(Ra[Yt - 1].kind) : null, wa = (() => {
144456
144459
  if (isUserSideRow(ft.kind))
144457
144460
  return $r !== getRowSpeaker(ft.kind);
144458
- for (let Kr = Yt + 1; Kr < Ra.length; Kr++)
144459
- if (!isUserSideRow(Ra[Kr].kind)) return !1;
144461
+ for (let Gr = Yt + 1; Gr < Ra.length; Gr++)
144462
+ if (!isUserSideRow(Ra[Gr].kind)) return !1;
144460
144463
  return !0;
144461
144464
  })(), Oi = Yt === Rp, Ua = ["host_actions", "tactix:onboarding"].includes(String(Zt?.additional_kwargs?.ui_components?.name ?? "")), Lo = ft.kind === "assistant" && xd(Yt) && (!Ua || Yt === Oa), $l = (() => {
144462
- for (let Kr = Yt - 1; Kr >= 0; Kr -= 1) {
144463
- if (!isUserSideRow(Ra[Kr].kind)) continue;
144464
- const jl = Ra[Kr].message?.created_at;
144465
+ for (let Gr = Yt - 1; Gr >= 0; Gr -= 1) {
144466
+ if (!isUserSideRow(Ra[Gr].kind)) continue;
144467
+ const jl = Ra[Gr].message?.created_at;
144465
144468
  return typeof jl == "string" ? jl : null;
144466
144469
  }
144467
144470
  return null;
144468
144471
  })(), Ds = ft.kind === "reasoning" && ft.turnKey === Ti && !Ra.slice(Yt + 1).some(
144469
- (Kr) => Kr.kind === "reasoning" && Kr.turnKey === ft.turnKey
144472
+ (Gr) => Gr.kind === "reasoning" && Gr.turnKey === ft.turnKey
144470
144473
  ), Al = ft.kind === "reasoning" && hasDisplayOnlyUIComponent(Zt);
144471
144474
  if (ft.kind === "reasoning")
144472
144475
  return !(Ja && Ds || traceHasContent(kn, As.get(ft.sourceIndex))) && !Al ? null : /* @__PURE__ */ jsx(
@@ -144544,7 +144547,7 @@ function ChatScreen() {
144544
144547
  onClick: () => {
144545
144548
  sa(Zt, kn);
144546
144549
  },
144547
- disabled: lr,
144550
+ disabled: sr,
144548
144551
  className: "rounded-[6px] px-1.5 py-0.5 underline underline-offset-2 outline-none transition-colors hover:bg-[var(--alias-fill-neutral-neutralhover)] focus-visible:ring-2 focus-visible:ring-[var(--alias-border-focus)] disabled:opacity-50",
144549
144552
  children: "Retry"
144550
144553
  }
@@ -144673,18 +144676,18 @@ function ChatScreen() {
144673
144676
  chatId: Qt ?? "",
144674
144677
  message: Zt,
144675
144678
  isActive: Lo,
144676
- onSubmitStart: (Kr) => {
144677
- Mt(Kr), Qt && _i(Qt);
144679
+ onSubmitStart: (Gr) => {
144680
+ Mt(Gr), Qt && _i(Qt);
144678
144681
  },
144679
- onSubmitFailed: (Kr) => {
144680
- Ot(Kr), Qt && ls(Qt);
144682
+ onSubmitFailed: (Gr) => {
144683
+ Ot(Gr), Qt && ls(Qt);
144681
144684
  }
144682
144685
  },
144683
144686
  ft.key
144684
144687
  );
144685
144688
  const cc = RECEIPT_BEARING_COMPONENTS.has(
144686
144689
  String(Nl?.name ?? "")
144687
- ), su = !!Nl && Zt !== jr, bd = ic(Zt) === "side-pane", uc = !(Ja && ft.turnKey === Ti), Pu = $n === "message" && !yd && uc, dc = ft.turnKey ? Ap.get(ft.turnKey) ?? null : null, Zs = Nl?.name === "tactix:onboarding", ou = Zt.additional_kwargs?.tactix_data_blocked, Rl = Zt === pf && dc && uc && Array.isArray(ou?.requiredSources) && ou.requiredSources.length > 0 && ou.requiredSources.every((Kr) => typeof Kr == "string" && sourceIsConnected(Q, Kr)), xf = !!Zt.additional_kwargs?.sample_data || isTactixSample(Q), sl = /* @__PURE__ */ jsxs(Fragment, { children: [
144690
+ ), su = !!Nl && Zt !== jr, bd = ic(Zt) === "side-pane", uc = !(Ja && ft.turnKey === Ti), Pu = $n === "message" && !yd && uc, dc = ft.turnKey ? Ap.get(ft.turnKey) ?? null : null, Zs = Nl?.name === "tactix:onboarding", ou = Zt.additional_kwargs?.tactix_data_blocked, Rl = Zt === pf && dc && uc && Array.isArray(ou?.requiredSources) && ou.requiredSources.length > 0 && ou.requiredSources.every((Gr) => typeof Gr == "string" && sourceIsConnected(Q, Gr)), xf = !!Zt.additional_kwargs?.sample_data || isTactixSample(Q), sl = /* @__PURE__ */ jsxs(Fragment, { children: [
144688
144691
  Pu && /* @__PURE__ */ jsx(
144689
144692
  MessageFeedbackControls,
144690
144693
  {
@@ -144698,7 +144701,7 @@ function ChatScreen() {
144698
144701
  onRetry: dc ? () => {
144699
144702
  ds(dc, ft.turnKey);
144700
144703
  } : void 0,
144701
- retryDisabled: lr || !dc || ya === (ft.turnKey || dc),
144704
+ retryDisabled: sr || !dc || ya === (ft.turnKey || dc),
144702
144705
  leadingAction: /* @__PURE__ */ jsx(
144703
144706
  CopyContentButton,
144704
144707
  {
@@ -144740,27 +144743,39 @@ function ChatScreen() {
144740
144743
  }
144741
144744
  ) }),
144742
144745
  !Zs && sl,
144743
- su && (!yd || cc) && /* @__PURE__ */ jsx("div", { "data-ui-component-anchor": !0, className: "w-full", children: bd ? /* @__PURE__ */ jsx(
144744
- PanelCardForMessage,
144745
- {
144746
- message: Zt,
144747
- activePanelId: d && !h ? null : Vn,
144748
- panels: In,
144749
- onOpen: al,
144750
- onClose: Yn,
144751
- disabled: !Qt
144752
- }
144753
- ) : /* @__PURE__ */ jsx(
144746
+ su && (!yd || cc) && /* @__PURE__ */ jsx("div", { "data-ui-component-anchor": !0, className: "w-full", children: bd ? /* @__PURE__ */ jsxs(Fragment, { children: [
144747
+ /* @__PURE__ */ jsx(
144748
+ PanelCardForMessage,
144749
+ {
144750
+ message: Zt,
144751
+ activePanelId: d && !h ? null : Vn,
144752
+ panels: In,
144753
+ onOpen: al,
144754
+ onClose: Yn,
144755
+ disabled: !Qt
144756
+ }
144757
+ ),
144758
+ getUIComponent(Zt)?.name === "artifax:dreamer-panel" && /* @__PURE__ */ jsx(
144759
+ DreamerRegenerate,
144760
+ {
144761
+ uiProps: getUIComponent(Zt)?.props || {},
144762
+ disabled: !Qt || sr,
144763
+ onSend: async (Gr) => {
144764
+ if (!await Qr(Gr)) throw new Error("The request was not sent.");
144765
+ }
144766
+ }
144767
+ )
144768
+ ] }) : /* @__PURE__ */ jsx(
144754
144769
  UIComponents,
144755
144770
  {
144756
144771
  chatId: Qt ?? "",
144757
144772
  message: Zt,
144758
144773
  isActive: Lo,
144759
- onSubmitStart: (Kr) => {
144760
- Mt(Kr), Qt && _i(Qt);
144774
+ onSubmitStart: (Gr) => {
144775
+ Mt(Gr), Qt && _i(Qt);
144761
144776
  },
144762
- onSubmitFailed: (Kr) => {
144763
- Ot(Kr), Qt && ls(Qt);
144777
+ onSubmitFailed: (Gr) => {
144778
+ Ot(Gr), Qt && ls(Qt);
144764
144779
  }
144765
144780
  }
144766
144781
  ) }),
@@ -144771,7 +144786,7 @@ function ChatScreen() {
144771
144786
  variant: "outline",
144772
144787
  "data-testid": "run-with-data",
144773
144788
  text: ou?.requiredSources?.length === 1 && ou.requiredSources[0] === "sales" ? "Run again with your sales" : "Run again with your data",
144774
- state: lr ? "disabled" : "default",
144789
+ state: sr ? "disabled" : "default",
144775
144790
  onClick: () => {
144776
144791
  dc && ds(dc, ft.turnKey);
144777
144792
  }
@@ -144793,7 +144808,7 @@ function ChatScreen() {
144793
144808
  },
144794
144809
  "active-form-anchor"
144795
144810
  ),
144796
- Gc && Gc.chatId === Qt && !lr && /* @__PURE__ */ jsxs(
144811
+ Gc && Gc.chatId === Qt && !sr && /* @__PURE__ */ jsxs(
144797
144812
  "div",
144798
144813
  {
144799
144814
  role: "alert",
@@ -144840,7 +144855,7 @@ function ChatScreen() {
144840
144855
  ref: tt,
144841
144856
  "data-testid": "composer-dock",
144842
144857
  "data-chat-mode": Iu,
144843
- className: `sa-chat-column relative z-10 flex flex-col gap-2 pt-2 ${Qr ? "pb-0" : "pb-4"}`,
144858
+ className: `sa-chat-column relative z-10 flex flex-col gap-2 pt-2 ${Jr ? "pb-0" : "pb-4"}`,
144844
144859
  transition: chatLayoutTransition,
144845
144860
  children: [
144846
144861
  /* @__PURE__ */ jsx(AnimatePresence$1, { initial: !1, children: jr && /* @__PURE__ */ jsx(
@@ -144911,7 +144926,7 @@ function ChatScreen() {
144911
144926
  PromptBar,
144912
144927
  {
144913
144928
  contextChip: ze && Ie ? { label: Ie.label, onRemove: De } : null,
144914
- compact: !Qr,
144929
+ compact: !Jr,
144915
144930
  placeholder: Do ? SUPPORT_PLACEHOLDER : Ve?.placeholder,
144916
144931
  onClick: () => {
144917
144932
  },
@@ -144944,8 +144959,8 @@ function ChatScreen() {
144944
144959
  ]
144945
144960
  }
144946
144961
  ),
144947
- Z !== "inline_ask" && !(Qr && We) && /* @__PURE__ */ jsx(SampleDataToggle, { chatId: Qr ? null : Qt ?? null, editable: Qr }),
144948
- Qr && Do && /* @__PURE__ */ jsx("div", { className: "mb-auto shrink-0 overflow-visible pb-4", children: /* @__PURE__ */ jsx("div", { className: "sa-chat-column", children: /* @__PURE__ */ jsx(
144962
+ Z !== "inline_ask" && !(Jr && We) && /* @__PURE__ */ jsx(SampleDataToggle, { chatId: Jr ? null : Qt ?? null, editable: Jr }),
144963
+ Jr && Do && /* @__PURE__ */ jsx("div", { className: "mb-auto shrink-0 overflow-visible pb-4", children: /* @__PURE__ */ jsx("div", { className: "sa-chat-column", children: /* @__PURE__ */ jsx(
144949
144964
  SupportHomeBelow,
144950
144965
  {
144951
144966
  cards: buildSupportCards({ overview: Tl, availableCredits: He }),
@@ -144959,10 +144974,10 @@ function ChatScreen() {
144959
144974
  includeContext: Ge,
144960
144975
  onIncludeContextChange: Tt,
144961
144976
  onCardClick: $o,
144962
- disabled: !Gi || lr
144977
+ disabled: !Gi || sr
144963
144978
  }
144964
144979
  ) }) }),
144965
- Qr && !Do && /* @__PURE__ */ jsx("div", { className: "mb-auto shrink-0 overflow-visible pb-4", children: /* @__PURE__ */ jsxs("div", { className: "sa-chat-column", children: [
144980
+ Jr && !Do && /* @__PURE__ */ jsx("div", { className: "mb-auto shrink-0 overflow-visible pb-4", children: /* @__PURE__ */ jsxs("div", { className: "sa-chat-column", children: [
144966
144981
  tl && /* @__PURE__ */ jsx("div", { className: "sa-scope-featured", "data-testid": "featured-task", children: /* @__PURE__ */ jsx(
144967
144982
  QuickPrompt,
144968
144983
  {