@tech_carthagos/page-builder 1.0.69 → 1.0.70

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.es.js CHANGED
@@ -126,25 +126,25 @@ const Ls = "-", um = (t) => {
126
126
  } = t, n = e.length === 1, o = e[0], i = e.length, a = (s) => {
127
127
  const u = [];
128
128
  let l = 0, c = 0, p;
129
- for (let b = 0; b < s.length; b++) {
130
- let y = s[b];
129
+ for (let m = 0; m < s.length; m++) {
130
+ let y = s[m];
131
131
  if (l === 0) {
132
- if (y === o && (n || s.slice(b, b + i) === e)) {
133
- u.push(s.slice(c, b)), c = b + i;
132
+ if (y === o && (n || s.slice(m, m + i) === e)) {
133
+ u.push(s.slice(c, m)), c = m + i;
134
134
  continue;
135
135
  }
136
136
  if (y === "/") {
137
- p = b;
137
+ p = m;
138
138
  continue;
139
139
  }
140
140
  }
141
141
  y === "[" ? l++ : y === "]" && l--;
142
142
  }
143
- const f = u.length === 0 ? s : s.substring(c), d = f.startsWith(Dd), m = d ? f.substring(1) : f, g = p && p > c ? p - c : void 0;
143
+ const f = u.length === 0 ? s : s.substring(c), d = f.startsWith(Dd), b = d ? f.substring(1) : f, g = p && p > c ? p - c : void 0;
144
144
  return {
145
145
  modifiers: u,
146
146
  hasImportantModifier: d,
147
- baseClassName: m,
147
+ baseClassName: b,
148
148
  maybePostfixModifierPosition: g
149
149
  };
150
150
  };
@@ -178,9 +178,9 @@ const Ls = "-", um = (t) => {
178
178
  baseClassName: f,
179
179
  maybePostfixModifierPosition: d
180
180
  } = r(l);
181
- let m = !!d, g = n(m ? f.substring(0, d) : f);
181
+ let b = !!d, g = n(b ? f.substring(0, d) : f);
182
182
  if (!g) {
183
- if (!m) {
183
+ if (!b) {
184
184
  s = l + (s.length > 0 ? " " + s : s);
185
185
  continue;
186
186
  }
@@ -188,13 +188,13 @@ const Ls = "-", um = (t) => {
188
188
  s = l + (s.length > 0 ? " " + s : s);
189
189
  continue;
190
190
  }
191
- m = !1;
191
+ b = !1;
192
192
  }
193
- const b = mm(c).join(":"), y = p ? b + Dd : b, x = y + g;
193
+ const m = mm(c).join(":"), y = p ? m + Dd : m, x = y + g;
194
194
  if (i.includes(x))
195
195
  continue;
196
196
  i.push(x);
197
- const w = o(g, m);
197
+ const w = o(g, b);
198
198
  for (let S = 0; S < w.length; ++S) {
199
199
  const N = w[S];
200
200
  i.push(y + N);
@@ -246,7 +246,7 @@ const ce = (t) => {
246
246
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
247
247
  Cm.test(t) && !Tm.test(t)
248
248
  ), jd = () => !1, Mm = (t) => Nm.test(t), jm = (t) => Am.test(t), $m = () => {
249
- const t = ce("colors"), e = ce("spacing"), r = ce("blur"), n = ce("brightness"), o = ce("borderColor"), i = ce("borderRadius"), a = ce("borderSpacing"), s = ce("borderWidth"), u = ce("contrast"), l = ce("grayscale"), c = ce("hueRotate"), p = ce("invert"), f = ce("gap"), d = ce("gradientColorStops"), m = ce("gradientColorStopPositions"), g = ce("inset"), b = ce("margin"), y = ce("opacity"), x = ce("padding"), w = ce("saturate"), S = ce("scale"), N = ce("sepia"), R = ce("skew"), k = ce("space"), L = ce("translate"), $ = () => ["auto", "contain", "none"], F = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", X, e], C = () => [X, e], D = () => ["", Ct, Ht], j = () => ["auto", Ir, X], T = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], A = () => ["solid", "dashed", "dotted", "double", "none"], _ = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", X], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ne = () => [Ir, X];
249
+ const t = ce("colors"), e = ce("spacing"), r = ce("blur"), n = ce("brightness"), o = ce("borderColor"), i = ce("borderRadius"), a = ce("borderSpacing"), s = ce("borderWidth"), u = ce("contrast"), l = ce("grayscale"), c = ce("hueRotate"), p = ce("invert"), f = ce("gap"), d = ce("gradientColorStops"), b = ce("gradientColorStopPositions"), g = ce("inset"), m = ce("margin"), y = ce("opacity"), x = ce("padding"), w = ce("saturate"), S = ce("scale"), N = ce("sepia"), R = ce("skew"), k = ce("space"), $ = ce("translate"), j = () => ["auto", "contain", "none"], F = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", X, e], C = () => [X, e], D = () => ["", Ct, Ht], L = () => ["auto", Ir, X], T = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], A = () => ["solid", "dashed", "dotted", "double", "none"], _ = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", X], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ne = () => [Ir, X];
250
250
  return {
251
251
  cacheSize: 500,
252
252
  separator: ":",
@@ -397,21 +397,21 @@ const ce = (t) => {
397
397
  * @see https://tailwindcss.com/docs/overscroll-behavior
398
398
  */
399
399
  overscroll: [{
400
- overscroll: $()
400
+ overscroll: j()
401
401
  }],
402
402
  /**
403
403
  * Overscroll Behavior X
404
404
  * @see https://tailwindcss.com/docs/overscroll-behavior
405
405
  */
406
406
  "overscroll-x": [{
407
- "overscroll-x": $()
407
+ "overscroll-x": j()
408
408
  }],
409
409
  /**
410
410
  * Overscroll Behavior Y
411
411
  * @see https://tailwindcss.com/docs/overscroll-behavior
412
412
  */
413
413
  "overscroll-y": [{
414
- "overscroll-y": $()
414
+ "overscroll-y": j()
415
415
  }],
416
416
  /**
417
417
  * Position
@@ -564,14 +564,14 @@ const ce = (t) => {
564
564
  * @see https://tailwindcss.com/docs/grid-column
565
565
  */
566
566
  "col-start": [{
567
- "col-start": j()
567
+ "col-start": L()
568
568
  }],
569
569
  /**
570
570
  * Grid Column End
571
571
  * @see https://tailwindcss.com/docs/grid-column
572
572
  */
573
573
  "col-end": [{
574
- "col-end": j()
574
+ "col-end": L()
575
575
  }],
576
576
  /**
577
577
  * Grid Template Rows
@@ -594,14 +594,14 @@ const ce = (t) => {
594
594
  * @see https://tailwindcss.com/docs/grid-row
595
595
  */
596
596
  "row-start": [{
597
- "row-start": j()
597
+ "row-start": L()
598
598
  }],
599
599
  /**
600
600
  * Grid Row End
601
601
  * @see https://tailwindcss.com/docs/grid-row
602
602
  */
603
603
  "row-end": [{
604
- "row-end": j()
604
+ "row-end": L()
605
605
  }],
606
606
  /**
607
607
  * Grid Auto Flow
@@ -777,63 +777,63 @@ const ce = (t) => {
777
777
  * @see https://tailwindcss.com/docs/margin
778
778
  */
779
779
  m: [{
780
- m: [b]
780
+ m: [m]
781
781
  }],
782
782
  /**
783
783
  * Margin X
784
784
  * @see https://tailwindcss.com/docs/margin
785
785
  */
786
786
  mx: [{
787
- mx: [b]
787
+ mx: [m]
788
788
  }],
789
789
  /**
790
790
  * Margin Y
791
791
  * @see https://tailwindcss.com/docs/margin
792
792
  */
793
793
  my: [{
794
- my: [b]
794
+ my: [m]
795
795
  }],
796
796
  /**
797
797
  * Margin Start
798
798
  * @see https://tailwindcss.com/docs/margin
799
799
  */
800
800
  ms: [{
801
- ms: [b]
801
+ ms: [m]
802
802
  }],
803
803
  /**
804
804
  * Margin End
805
805
  * @see https://tailwindcss.com/docs/margin
806
806
  */
807
807
  me: [{
808
- me: [b]
808
+ me: [m]
809
809
  }],
810
810
  /**
811
811
  * Margin Top
812
812
  * @see https://tailwindcss.com/docs/margin
813
813
  */
814
814
  mt: [{
815
- mt: [b]
815
+ mt: [m]
816
816
  }],
817
817
  /**
818
818
  * Margin Right
819
819
  * @see https://tailwindcss.com/docs/margin
820
820
  */
821
821
  mr: [{
822
- mr: [b]
822
+ mr: [m]
823
823
  }],
824
824
  /**
825
825
  * Margin Bottom
826
826
  * @see https://tailwindcss.com/docs/margin
827
827
  */
828
828
  mb: [{
829
- mb: [b]
829
+ mb: [m]
830
830
  }],
831
831
  /**
832
832
  * Margin Left
833
833
  * @see https://tailwindcss.com/docs/margin
834
834
  */
835
835
  ml: [{
836
- ml: [b]
836
+ ml: [m]
837
837
  }],
838
838
  /**
839
839
  * Space Between X
@@ -1217,21 +1217,21 @@ const ce = (t) => {
1217
1217
  * @see https://tailwindcss.com/docs/gradient-color-stops
1218
1218
  */
1219
1219
  "gradient-from-pos": [{
1220
- from: [m]
1220
+ from: [b]
1221
1221
  }],
1222
1222
  /**
1223
1223
  * Gradient Color Stops Via Position
1224
1224
  * @see https://tailwindcss.com/docs/gradient-color-stops
1225
1225
  */
1226
1226
  "gradient-via-pos": [{
1227
- via: [m]
1227
+ via: [b]
1228
1228
  }],
1229
1229
  /**
1230
1230
  * Gradient Color Stops To Position
1231
1231
  * @see https://tailwindcss.com/docs/gradient-color-stops
1232
1232
  */
1233
1233
  "gradient-to-pos": [{
1234
- to: [m]
1234
+ to: [b]
1235
1235
  }],
1236
1236
  /**
1237
1237
  * Gradient Color Stops From
@@ -1912,14 +1912,14 @@ const ce = (t) => {
1912
1912
  * @see https://tailwindcss.com/docs/translate
1913
1913
  */
1914
1914
  "translate-x": [{
1915
- "translate-x": [L]
1915
+ "translate-x": [$]
1916
1916
  }],
1917
1917
  /**
1918
1918
  * Translate Y
1919
1919
  * @see https://tailwindcss.com/docs/translate
1920
1920
  */
1921
1921
  "translate-y": [{
1922
- "translate-y": [L]
1922
+ "translate-y": [$]
1923
1923
  }],
1924
1924
  /**
1925
1925
  * Skew X
@@ -2937,15 +2937,15 @@ const vl = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, xl = mt, X
2937
2937
  return f === void 0 || (l[p] = f), l;
2938
2938
  }, {}), u = e == null || (n = e.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((l, c) => {
2939
2939
  let { class: p, className: f, ...d } = c;
2940
- return Object.entries(d).every((m) => {
2941
- let [g, b] = m;
2942
- return Array.isArray(b) ? b.includes({
2940
+ return Object.entries(d).every((b) => {
2941
+ let [g, m] = b;
2942
+ return Array.isArray(m) ? m.includes({
2943
2943
  ...i,
2944
2944
  ...s
2945
2945
  }[g]) : {
2946
2946
  ...i,
2947
2947
  ...s
2948
- }[g] === b;
2948
+ }[g] === m;
2949
2949
  }) ? [
2950
2950
  ...l,
2951
2951
  p,
@@ -3194,38 +3194,38 @@ function Ob() {
3194
3194
  var c = Gt(u), p = a[l];
3195
3195
  typeof p != "string" && typeof p != "number" && (p = "" + p), c !== 0 && c !== 1 || p !== "__proto__" && p !== "constructor" || ge(24), typeof u == "function" && p === "prototype" && ge(24), typeof (u = Ro(u, p)) != "object" && ge(15, a.join("/"));
3196
3196
  }
3197
- var f = Gt(u), d = t(i.value), m = a[a.length - 1];
3197
+ var f = Gt(u), d = t(i.value), b = a[a.length - 1];
3198
3198
  switch (s) {
3199
3199
  case "replace":
3200
3200
  switch (f) {
3201
3201
  case 2:
3202
- return u.set(m, d);
3202
+ return u.set(b, d);
3203
3203
  case 3:
3204
3204
  ge(16);
3205
3205
  default:
3206
- return u[m] = d;
3206
+ return u[b] = d;
3207
3207
  }
3208
3208
  case r:
3209
3209
  switch (f) {
3210
3210
  case 1:
3211
- return m === "-" ? u.push(d) : u.splice(m, 0, d);
3211
+ return b === "-" ? u.push(d) : u.splice(b, 0, d);
3212
3212
  case 2:
3213
- return u.set(m, d);
3213
+ return u.set(b, d);
3214
3214
  case 3:
3215
3215
  return u.add(d);
3216
3216
  default:
3217
- return u[m] = d;
3217
+ return u[b] = d;
3218
3218
  }
3219
3219
  case "remove":
3220
3220
  switch (f) {
3221
3221
  case 1:
3222
- return u.splice(m, 1);
3222
+ return u.splice(b, 1);
3223
3223
  case 2:
3224
- return u.delete(m);
3224
+ return u.delete(b);
3225
3225
  case 3:
3226
3226
  return u.delete(i.value);
3227
3227
  default:
3228
- return delete u[m];
3228
+ return delete u[b];
3229
3229
  }
3230
3230
  default:
3231
3231
  ge(17, s);
@@ -3238,11 +3238,11 @@ function Ob() {
3238
3238
  case 2:
3239
3239
  return function(s, u, l, c) {
3240
3240
  var p = s.t, f = s.o;
3241
- dr(s.R, function(d, m) {
3242
- var g = Ro(p, d), b = Ro(f, d), y = m ? On(p, d) ? "replace" : r : "remove";
3243
- if (g !== b || y !== "replace") {
3241
+ dr(s.R, function(d, b) {
3242
+ var g = Ro(p, d), m = Ro(f, d), y = b ? On(p, d) ? "replace" : r : "remove";
3243
+ if (g !== m || y !== "replace") {
3244
3244
  var x = u.concat(d);
3245
- l.push(y === "remove" ? { op: y, path: x } : { op: y, path: x, value: b }), c.push(y === r ? { op: "remove", path: x } : y === "remove" ? { op: r, path: x, value: e(g) } : { op: "replace", path: x, value: e(g) });
3245
+ l.push(y === "remove" ? { op: y, path: x } : { op: y, path: x, value: m }), c.push(y === r ? { op: "remove", path: x } : y === "remove" ? { op: r, path: x, value: e(g) } : { op: "replace", path: x, value: e(g) });
3246
3246
  }
3247
3247
  });
3248
3248
  }(n, o, i, a);
@@ -3251,14 +3251,14 @@ function Ob() {
3251
3251
  return function(s, u, l, c) {
3252
3252
  var p = s.t, f = s.R, d = s.o;
3253
3253
  if (d.length < p.length) {
3254
- var m = [d, p];
3255
- p = m[0], d = m[1];
3254
+ var b = [d, p];
3255
+ p = b[0], d = b[1];
3256
3256
  var g = [c, l];
3257
3257
  l = g[0], c = g[1];
3258
3258
  }
3259
- for (var b = 0; b < p.length; b++) if (f[b] && d[b] !== p[b]) {
3260
- var y = u.concat([b]);
3261
- l.push({ op: "replace", path: y, value: e(d[b]) }), c.push({ op: "replace", path: y, value: e(p[b]) });
3259
+ for (var m = 0; m < p.length; m++) if (f[m] && d[m] !== p[m]) {
3260
+ var y = u.concat([m]);
3261
+ l.push({ op: "replace", path: y, value: e(d[m]) }), c.push({ op: "replace", path: y, value: e(p[m]) });
3262
3262
  }
3263
3263
  for (var x = p.length; x < d.length; x++) {
3264
3264
  var w = u.concat([x]);
@@ -3269,16 +3269,16 @@ function Ob() {
3269
3269
  case 3:
3270
3270
  return function(s, u, l, c) {
3271
3271
  var p = s.t, f = s.o, d = 0;
3272
- p.forEach(function(m) {
3273
- if (!f.has(m)) {
3272
+ p.forEach(function(b) {
3273
+ if (!f.has(b)) {
3274
3274
  var g = u.concat([d]);
3275
- l.push({ op: "remove", path: g, value: m }), c.unshift({ op: r, path: g, value: m });
3275
+ l.push({ op: "remove", path: g, value: b }), c.unshift({ op: r, path: g, value: b });
3276
3276
  }
3277
3277
  d++;
3278
- }), d = 0, f.forEach(function(m) {
3279
- if (!p.has(m)) {
3278
+ }), d = 0, f.forEach(function(b) {
3279
+ if (!p.has(b)) {
3280
3280
  var g = u.concat([d]);
3281
- l.push({ op: r, path: g, value: m }), c.unshift({ op: "remove", path: g, value: m });
3281
+ l.push({ op: r, path: g, value: b }), c.unshift({ op: "remove", path: g, value: b });
3282
3282
  }
3283
3283
  d++;
3284
3284
  });
@@ -3487,12 +3487,12 @@ var Lb = function() {
3487
3487
  i = o;
3488
3488
  var u = n;
3489
3489
  return function(g) {
3490
- var b = this;
3490
+ var m = this;
3491
3491
  g === void 0 && (g = s);
3492
3492
  for (var y = arguments.length, x = Array(y > 1 ? y - 1 : 0), w = 1; w < y; w++) x[w - 1] = arguments[w];
3493
3493
  return u.produce(g, function(S) {
3494
3494
  var N;
3495
- return (N = i).call.apply(N, [b, S].concat(x));
3495
+ return (N = i).call.apply(N, [m, S].concat(x));
3496
3496
  });
3497
3497
  };
3498
3498
  }
@@ -3512,8 +3512,8 @@ var Lb = function() {
3512
3512
  }
3513
3513
  if (!o || typeof o != "object") {
3514
3514
  if ((l = i(o)) === void 0 && (l = o), l === Js && (l = void 0), n.D && Ys(l, !0), a) {
3515
- var d = [], m = [];
3516
- dt("Patches").M(o, l, d, m), a(d, m);
3515
+ var d = [], b = [];
3516
+ dt("Patches").M(o, l, d, b), a(d, b);
3517
3517
  }
3518
3518
  return l;
3519
3519
  }
@@ -3877,24 +3877,24 @@ function Xy(t, e, r, n, o, i) {
3877
3877
  return l == e && c == t;
3878
3878
  var p = -1, f = !0, d = r & Yy ? new Uy() : void 0;
3879
3879
  for (i.set(t, e), i.set(e, t); ++p < s; ) {
3880
- var m = t[p], g = e[p];
3880
+ var b = t[p], g = e[p];
3881
3881
  if (n)
3882
- var b = a ? n(g, m, p, e, t, i) : n(m, g, p, t, e, i);
3883
- if (b !== void 0) {
3884
- if (b)
3882
+ var m = a ? n(g, b, p, e, t, i) : n(b, g, p, t, e, i);
3883
+ if (m !== void 0) {
3884
+ if (m)
3885
3885
  continue;
3886
3886
  f = !1;
3887
3887
  break;
3888
3888
  }
3889
3889
  if (d) {
3890
3890
  if (!Vy(e, function(y, x) {
3891
- if (!Wy(d, x) && (m === y || o(m, y, r, n, i)))
3891
+ if (!Wy(d, x) && (b === y || o(b, y, r, n, i)))
3892
3892
  return d.push(x);
3893
3893
  })) {
3894
3894
  f = !1;
3895
3895
  break;
3896
3896
  }
3897
- } else if (!(m === g || o(m, g, r, n, i))) {
3897
+ } else if (!(b === g || o(b, g, r, n, i))) {
3898
3898
  f = !1;
3899
3899
  break;
3900
3900
  }
@@ -4092,12 +4092,12 @@ function Ax(t, e, r, n, o, i) {
4092
4092
  if (!(a ? f in e : Nx.call(e, f)))
4093
4093
  return !1;
4094
4094
  }
4095
- var d = i.get(t), m = i.get(e);
4096
- if (d && m)
4097
- return d == e && m == t;
4095
+ var d = i.get(t), b = i.get(e);
4096
+ if (d && b)
4097
+ return d == e && b == t;
4098
4098
  var g = !0;
4099
4099
  i.set(t, e), i.set(e, t);
4100
- for (var b = a; ++p < u; ) {
4100
+ for (var m = a; ++p < u; ) {
4101
4101
  f = s[p];
4102
4102
  var y = t[f], x = e[f];
4103
4103
  if (n)
@@ -4106,9 +4106,9 @@ function Ax(t, e, r, n, o, i) {
4106
4106
  g = !1;
4107
4107
  break;
4108
4108
  }
4109
- b || (b = f == "constructor");
4109
+ m || (m = f == "constructor");
4110
4110
  }
4111
- if (g && !b) {
4111
+ if (g && !m) {
4112
4112
  var S = t.constructor, N = e.constructor;
4113
4113
  S != N && "constructor" in t && "constructor" in e && !(typeof S == "function" && S instanceof S && typeof N == "function" && N instanceof N) && (g = !1);
4114
4114
  }
@@ -4145,10 +4145,10 @@ function ow(t, e, r, n, o, i) {
4145
4145
  if (f && !c)
4146
4146
  return i || (i = new fa()), a || tw(t) ? Zx(t, e, r, n, o, i) : Qx(t, e, u, r, n, o, i);
4147
4147
  if (!(r & rw)) {
4148
- var d = c && Ql.call(t, "__wrapped__"), m = p && Ql.call(e, "__wrapped__");
4149
- if (d || m) {
4150
- var g = d ? t.value() : t, b = m ? e.value() : e;
4151
- return i || (i = new fa()), o(g, b, r, n, i);
4148
+ var d = c && Ql.call(t, "__wrapped__"), b = p && Ql.call(e, "__wrapped__");
4149
+ if (d || b) {
4150
+ var g = d ? t.value() : t, m = b ? e.value() : e;
4151
+ return i || (i = new fa()), o(g, m, r, n, i);
4152
4152
  }
4153
4153
  }
4154
4154
  return f ? (i || (i = new fa()), ew(t, e, r, n, o, i)) : !1;
@@ -4381,7 +4381,7 @@ function Iw(t, e, r, n) {
4381
4381
  var u = tt(n);
4382
4382
  u.current = n;
4383
4383
  var l = tt(e), c = Be(function() {
4384
- var b = s.current, y = a.current, x = u.current;
4384
+ var m = s.current, y = a.current, x = u.current;
4385
4385
  return function(w, S) {
4386
4386
  var N, R = r && oc(r, function() {
4387
4387
  return w;
@@ -4397,36 +4397,36 @@ function Iw(t, e, r, n) {
4397
4397
  case ye.IGNORE:
4398
4398
  case ye.MERGE:
4399
4399
  case ye.THROTTLE:
4400
- var j, T = mf(D = S.payload) || bf(D) || nu(D) || gf(), A = T[0], _ = T.slice(1);
4401
- (j = o(E, R))[A].apply(j, Pe(_));
4400
+ var L, T = mf(D = S.payload) || bf(D) || nu(D) || gf(), A = T[0], _ = T.slice(1);
4401
+ (L = o(E, R))[A].apply(L, Pe(_));
4402
4402
  break;
4403
4403
  default:
4404
4404
  (C = o(E, R))[S.type].apply(C, Pe(S.payload));
4405
4405
  }
4406
- }), 3), L = k[0], $ = k[1], F = k[2];
4407
- return N = L, x && x(L, w, { type: S.type, params: S.payload, patches: $ }, R, function(E) {
4408
- var C = Al(L, E);
4409
- N = C[0], $ = [].concat(Pe($), Pe(C[1])), F = [].concat(Pe(C[2]), Pe(F));
4410
- }), [ye.UNDO, ye.REDO].includes(S.type) && b && (N = Mb(N, b)), [].concat(Pe(y), [ye.UNDO, ye.REDO, ye.IGNORE, ye.CLEAR]).includes(S.type) || (S.type === ye.THROTTLE ? i.throttleAdd($, F, S.config && S.config.rate) : S.type === ye.MERGE ? i.merge($, F) : i.add($, F)), N;
4406
+ }), 3), $ = k[0], j = k[1], F = k[2];
4407
+ return N = $, x && x($, w, { type: S.type, params: S.payload, patches: j }, R, function(E) {
4408
+ var C = Al($, E);
4409
+ N = C[0], j = [].concat(Pe(j), Pe(C[1])), F = [].concat(Pe(C[2]), Pe(F));
4410
+ }), [ye.UNDO, ye.REDO].includes(S.type) && m && (N = Mb(N, m)), [].concat(Pe(y), [ye.UNDO, ye.REDO, ye.IGNORE, ye.CLEAR]).includes(S.type) || (S.type === ye.THROTTLE ? i.throttleAdd(j, F, S.config && S.config.rate) : S.type === ye.MERGE ? i.merge(j, F) : i.add(j, F)), N;
4411
4411
  };
4412
4412
  }, [i, o, r]), p = _a(function() {
4413
4413
  return l.current;
4414
4414
  }, []), f = Be(function() {
4415
4415
  return new Dw(p);
4416
- }, [p]), d = _a(function(b) {
4417
- var y = c(l.current, b);
4416
+ }, [p]), d = _a(function(m) {
4417
+ var y = c(l.current, m);
4418
4418
  l.current = y, f.notify();
4419
4419
  }, [c, f]);
4420
4420
  ke(function() {
4421
4421
  f.notify();
4422
4422
  }, [f]);
4423
- var m = Be(function() {
4423
+ var b = Be(function() {
4424
4424
  return r ? oc(r, function() {
4425
4425
  return l.current;
4426
4426
  }, i) : [];
4427
4427
  }, [i, r]), g = Be(function() {
4428
- var b = Object.keys(o(null, null)), y = a.current;
4429
- return Ve(Ve({}, b.reduce(function(x, w) {
4428
+ var m = Object.keys(o(null, null)), y = a.current;
4429
+ return Ve(Ve({}, m.reduce(function(x, w) {
4430
4430
  return x[w] = function() {
4431
4431
  for (var S = arguments.length, N = new Array(S), R = 0; R < S; R++) N[R] = arguments[R];
4432
4432
  return d({ type: w, payload: N });
@@ -4438,7 +4438,7 @@ function Iw(t, e, r, n) {
4438
4438
  }, clear: function() {
4439
4439
  return d({ type: ye.CLEAR });
4440
4440
  }, throttle: function(x) {
4441
- return Ve({}, b.filter(function(w) {
4441
+ return Ve({}, m.filter(function(w) {
4442
4442
  return !y.includes(w);
4443
4443
  }).reduce(function(w, S) {
4444
4444
  return w[S] = function() {
@@ -4447,7 +4447,7 @@ function Iw(t, e, r, n) {
4447
4447
  }, w;
4448
4448
  }, {}));
4449
4449
  }, ignore: function() {
4450
- return Ve({}, b.filter(function(x) {
4450
+ return Ve({}, m.filter(function(x) {
4451
4451
  return !y.includes(x);
4452
4452
  }).reduce(function(x, w) {
4453
4453
  return x[w] = function() {
@@ -4456,7 +4456,7 @@ function Iw(t, e, r, n) {
4456
4456
  }, x;
4457
4457
  }, {}));
4458
4458
  }, merge: function() {
4459
- return Ve({}, b.filter(function(x) {
4459
+ return Ve({}, m.filter(function(x) {
4460
4460
  return !y.includes(x);
4461
4461
  }).reduce(function(x, w) {
4462
4462
  return x[w] = function() {
@@ -4467,10 +4467,10 @@ function Iw(t, e, r, n) {
4467
4467
  } } });
4468
4468
  }, [d, o]);
4469
4469
  return Be(function() {
4470
- return { getState: p, subscribe: function(b, y, x) {
4471
- return f.subscribe(b, y, x);
4472
- }, actions: g, query: m, history: i };
4473
- }, [g, m, f, p, i]);
4470
+ return { getState: p, subscribe: function(m, y, x) {
4471
+ return f.subscribe(m, y, x);
4472
+ }, actions: g, query: b, history: i };
4473
+ }, [g, b, f, p, i]);
4474
4474
  }
4475
4475
  function oc(t, e, r) {
4476
4476
  var n = Object.keys(t()).reduce(function(o, i) {
@@ -4521,8 +4521,8 @@ var Dw = function() {
4521
4521
  }(), _n = function(t) {
4522
4522
  var e = t.getBoundingClientRect(), r = e.x, n = e.y, o = e.top, i = e.left, a = e.bottom, s = e.right, u = e.width, l = e.height, c = window.getComputedStyle(t), p = { left: parseInt(c.marginLeft), right: parseInt(c.marginRight), bottom: parseInt(c.marginBottom), top: parseInt(c.marginTop) }, f = { left: parseInt(c.paddingLeft), right: parseInt(c.paddingRight), bottom: parseInt(c.paddingBottom), top: parseInt(c.paddingTop) };
4523
4523
  return { x: r, y: n, top: o, left: i, bottom: a, right: s, width: u, height: l, outerWidth: Math.round(u + p.left + p.right), outerHeight: Math.round(l + p.top + p.bottom), margin: p, padding: f, inFlow: t.parentElement && !!function(d) {
4524
- var m = getComputedStyle(d);
4525
- if (!(c.overflow && c.overflow !== "visible" || m.float !== "none" || m.display === "grid" || m.display === "flex" && m["flex-direction"] !== "column")) {
4524
+ var b = getComputedStyle(d);
4525
+ if (!(c.overflow && c.overflow !== "visible" || b.float !== "none" || b.display === "grid" || b.display === "flex" && b["flex-direction"] !== "column")) {
4526
4526
  switch (c.position) {
4527
4527
  case "static":
4528
4528
  case "relative":
@@ -4656,11 +4656,11 @@ var xf = function() {
4656
4656
  return { connectors: Object.entries(r).reduce(function(a, s) {
4657
4657
  var u = hf(s, 2), l = u[0], c = u[1];
4658
4658
  return Ve(Ve({}, a), {}, Ce({}, l, function(p, f, d) {
4659
- var m = function() {
4659
+ var b = function() {
4660
4660
  var g = e.registry.register(p, { required: f, name: l, options: d, connector: c });
4661
4661
  return n.add(g.id), g;
4662
4662
  };
4663
- return i.set(e.registry.getConnectorId(p, l), m), o && m(), p;
4663
+ return i.set(e.registry.getConnectorId(p, l), b), o && b(), p;
4664
4664
  }));
4665
4665
  }, {}), register: function() {
4666
4666
  o = !0, i.forEach(function(a) {
@@ -5281,16 +5281,16 @@ function If(t) {
5281
5281
  return { getDropPlaceholder: (n, o, i, a = (s) => t.nodes[s.id].dom) => {
5282
5282
  const s = t.nodes[o], u = r().node(s.id).isCanvas() ? s : t.nodes[s.data.parent];
5283
5283
  if (!u) return;
5284
- const l = u.data.nodes || [], c = kf(u, l ? l.reduce((d, m) => {
5285
- const g = a(t.nodes[m]);
5284
+ const l = u.data.nodes || [], c = kf(u, l ? l.reduce((d, b) => {
5285
+ const g = a(t.nodes[b]);
5286
5286
  if (g) {
5287
- const b = { id: m, ..._n(g) };
5288
- d.push(b);
5287
+ const m = { id: b, ..._n(g) };
5288
+ d.push(m);
5289
5289
  }
5290
5290
  return d;
5291
5291
  }, []) : [], i.x, i.y), p = l.length && t.nodes[l[c.index]], f = { placement: { ...c, currentNode: p }, error: null };
5292
- return Rt(t.nodes, n).forEach(({ node: d, exists: m }) => {
5293
- m && r().node(d.id).isDraggable((g) => f.error = g);
5292
+ return Rt(t.nodes, n).forEach(({ node: d, exists: b }) => {
5293
+ b && r().node(d.id).isDraggable((g) => f.error = g);
5294
5294
  }), r().node(u.id).isDroppable(n, (d) => f.error = d), f;
5295
5295
  }, getOptions: () => e, getNodes: () => t.nodes, node: (n) => Ka(t, n), getSerializedNodes() {
5296
5296
  const n = Object.keys(t.nodes).map((o) => [o, this.node(o).toSerializedNode()]);
@@ -5462,8 +5462,8 @@ var hc = function(t, e) {
5462
5462
  if (a) {
5463
5463
  var p = o.query, f = p.getEvent("selected").all();
5464
5464
  (n.options.isMultiSelectEnabled(l) || f.includes(a)) && (c = f.filter(function(d) {
5465
- var m = p.node(d).descendants(!0), g = p.node(d).ancestors(!0);
5466
- return !m.includes(a) && !g.includes(a);
5465
+ var b = p.node(d).descendants(!0), g = p.node(d).ancestors(!0);
5466
+ return !b.includes(a) && !g.includes(a);
5467
5467
  })), c.includes(a) || c.push(a);
5468
5468
  }
5469
5469
  o.actions.setNodeEvent("selected", c);
@@ -5504,10 +5504,10 @@ var hc = function(t, e) {
5504
5504
  l.craft.stopPropagation();
5505
5505
  var c = o.query, p = o.actions, f = c.getEvent("selected").all(), d = n.options.isMultiSelectEnabled(l);
5506
5506
  n.currentSelectedElementIds.includes(a) || (f = d ? [].concat(Pn(f), [a]) : [a], o.actions.setNodeEvent("selected", f)), p.setNodeEvent("dragged", f);
5507
- var m = f.map(function(g) {
5507
+ var b = f.map(function(g) {
5508
5508
  return c.node(g).get().dom;
5509
5509
  });
5510
- n.draggedElementShadow = hc(l, m, r.forceSingleDragShadow), n.dragTarget = { type: "existing", nodes: f }, n.positioner = new Za(n.options.store, n.dragTarget);
5510
+ n.draggedElementShadow = hc(l, b, r.forceSingleDragShadow), n.dragTarget = { type: "existing", nodes: f }, n.positioner = new Za(n.options.store, n.dragTarget);
5511
5511
  }), u = n.addCraftEventListener(i, "dragend", function(l) {
5512
5512
  l.craft.stopPropagation(), n.dropElement(function(c, p) {
5513
5513
  c.type !== "new" && o.actions.move(c.nodes, p.placement.parent.id, p.placement.index + (p.placement.where === "after" ? 1 : 0));
@@ -5559,12 +5559,12 @@ const s3 = () => {
5559
5559
  } } }, l3 = { methods: function(t, e) {
5560
5560
  return fe(fe({}, /* @__PURE__ */ function(r, n) {
5561
5561
  var o = function(s, u, l) {
5562
- if (function f(d, m) {
5562
+ if (function f(d, b) {
5563
5563
  var g = s.nodes[d];
5564
- typeof g.data.type != "string" && le(r.options.resolver[g.data.name], Go.replace("%node_type%", "".concat(g.data.type.name))), r.nodes[d] = fe(fe({}, g), {}, { data: fe(fe({}, g.data), {}, { parent: m }) }), g.data.nodes.length > 0 && (delete r.nodes[d].data.props.children, g.data.nodes.forEach(function(b) {
5565
- return f(b, g.id);
5566
- })), Object.values(g.data.linkedNodes).forEach(function(b) {
5567
- return f(b, g.id);
5564
+ typeof g.data.type != "string" && le(r.options.resolver[g.data.name], Go.replace("%node_type%", "".concat(g.data.type.name))), r.nodes[d] = fe(fe({}, g), {}, { data: fe(fe({}, g.data), {}, { parent: b }) }), g.data.nodes.length > 0 && (delete r.nodes[d].data.props.children, g.data.nodes.forEach(function(m) {
5565
+ return f(m, g.id);
5566
+ })), Object.values(g.data.linkedNodes).forEach(function(m) {
5567
+ return f(m, g.id);
5568
5568
  });
5569
5569
  }(s.rootNodeId, u), u || s.rootNodeId !== _t) {
5570
5570
  var c = i(u);
@@ -5593,11 +5593,11 @@ const s3 = () => {
5593
5593
  });
5594
5594
  f && delete c.data.linkedNodes[f];
5595
5595
  }
5596
- (function(d, m) {
5596
+ (function(d, b) {
5597
5597
  Object.keys(d.events).forEach(function(g) {
5598
- var b = d.events[g];
5599
- b && b.has && b.has(m) && (d.events[g] = new Set(Array.from(b).filter(function(y) {
5600
- return m !== y;
5598
+ var m = d.events[g];
5599
+ m && m.has && m.has(b) && (d.events[g] = new Set(Array.from(m).filter(function(y) {
5600
+ return b !== y;
5601
5601
  })));
5602
5602
  });
5603
5603
  })(r, u), delete r.nodes[u];
@@ -5627,19 +5627,19 @@ const s3 = () => {
5627
5627
  this.replaceNodes(Pf(l));
5628
5628
  }, move: function(s, u, l) {
5629
5629
  var c = Rt(r.nodes, s, { existOnly: !0 }), p = r.nodes[u], f = /* @__PURE__ */ new Set();
5630
- c.forEach(function(d, m) {
5631
- var g = d.node, b = g.id, y = g.data.parent;
5632
- n.node(u).isDroppable([b], function(S) {
5630
+ c.forEach(function(d, b) {
5631
+ var g = d.node, m = g.id, y = g.data.parent;
5632
+ n.node(u).isDroppable([m], function(S) {
5633
5633
  throw new Error(S);
5634
5634
  }), r.options.onBeforeMoveEnd(g, p, r.nodes[y]);
5635
5635
  var x = r.nodes[y].data.nodes;
5636
5636
  f.add(x);
5637
- var w = x.indexOf(b);
5638
- x[w] = "$$", p.data.nodes.splice(l + m, 0, b), r.nodes[b].data.parent = u;
5637
+ var w = x.indexOf(m);
5638
+ x[w] = "$$", p.data.nodes.splice(l + b, 0, m), r.nodes[m].data.parent = u;
5639
5639
  }), f.forEach(function(d) {
5640
- var m = d.length;
5641
- Pn(d).reverse().forEach(function(g, b) {
5642
- g === "$$" && d.splice(m - 1 - b, 1);
5640
+ var b = d.length;
5641
+ Pn(d).reverse().forEach(function(g, m) {
5642
+ g === "$$" && d.splice(b - 1 - m, 1);
5643
5643
  });
5644
5644
  });
5645
5645
  }, replaceNodes: function(s) {
@@ -5707,8 +5707,8 @@ const s3 = () => {
5707
5707
  for (let p = 0; p < l.length; p++) {
5708
5708
  const { path: f } = l[p], d = f.length > 2 && f[0] === "nodes" && f[2] === "data";
5709
5709
  if ([ye.IGNORE, ye.THROTTLE].includes(c.type) && c.params && (c.type = c.params[0]), ["setState", "deserialize"].includes(c.type) || d) {
5710
- u((m) => {
5711
- o.options.normalizeNodes && o.options.normalizeNodes(m, i, c, s);
5710
+ u((b) => {
5711
+ o.options.normalizeNodes && o.options.normalizeNodes(b, i, c, s);
5712
5712
  });
5713
5713
  break;
5714
5714
  }
@@ -5754,14 +5754,14 @@ function xr(t, e = []) {
5754
5754
  r = [...r, a];
5755
5755
  const l = (p) => {
5756
5756
  var y;
5757
- const { scope: f, children: d, ...m } = p, g = ((y = f == null ? void 0 : f[t]) == null ? void 0 : y[u]) || s, b = v.useMemo(() => m, Object.values(m));
5758
- return /* @__PURE__ */ h(g.Provider, { value: b, children: d });
5757
+ const { scope: f, children: d, ...b } = p, g = ((y = f == null ? void 0 : f[t]) == null ? void 0 : y[u]) || s, m = v.useMemo(() => b, Object.values(b));
5758
+ return /* @__PURE__ */ h(g.Provider, { value: m, children: d });
5759
5759
  };
5760
5760
  l.displayName = i + "Provider";
5761
5761
  function c(p, f) {
5762
5762
  var g;
5763
- const d = ((g = f == null ? void 0 : f[t]) == null ? void 0 : g[u]) || s, m = v.useContext(d);
5764
- if (m) return m;
5763
+ const d = ((g = f == null ? void 0 : f[t]) == null ? void 0 : g[u]) || s, b = v.useContext(d);
5764
+ if (b) return b;
5765
5765
  if (a !== void 0) return a;
5766
5766
  throw new Error(`\`${p}\` must be used within \`${i}\``);
5767
5767
  }
@@ -5901,12 +5901,12 @@ var w3 = "DismissableLayer", ts = "dismissableLayer.update", S3 = "dismissableLa
5901
5901
  onInteractOutside: a,
5902
5902
  onDismiss: s,
5903
5903
  ...u
5904
- } = t, l = v.useContext(Mf), [c, p] = v.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = v.useState({}), m = Ae(e, (k) => p(k)), g = Array.from(l.layers), [b] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(b), x = c ? g.indexOf(c) : -1, w = l.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= y, N = N3((k) => {
5905
- const L = k.target, $ = [...l.branches].some((F) => F.contains(L));
5906
- !S || $ || (o == null || o(k), a == null || a(k), k.defaultPrevented || s == null || s());
5904
+ } = t, l = v.useContext(Mf), [c, p] = v.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = v.useState({}), b = Ae(e, (k) => p(k)), g = Array.from(l.layers), [m] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(m), x = c ? g.indexOf(c) : -1, w = l.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= y, N = N3((k) => {
5905
+ const $ = k.target, j = [...l.branches].some((F) => F.contains($));
5906
+ !S || j || (o == null || o(k), a == null || a(k), k.defaultPrevented || s == null || s());
5907
5907
  }, f), R = A3((k) => {
5908
- const L = k.target;
5909
- [...l.branches].some((F) => F.contains(L)) || (i == null || i(k), a == null || a(k), k.defaultPrevented || s == null || s());
5908
+ const $ = k.target;
5909
+ [...l.branches].some((F) => F.contains($)) || (i == null || i(k), a == null || a(k), k.defaultPrevented || s == null || s());
5910
5910
  }, f);
5911
5911
  return x3((k) => {
5912
5912
  x === l.layers.size - 1 && (n == null || n(k), !k.defaultPrevented && s && (k.preventDefault(), s()));
@@ -5924,7 +5924,7 @@ var w3 = "DismissableLayer", ts = "dismissableLayer.update", S3 = "dismissableLa
5924
5924
  we.div,
5925
5925
  {
5926
5926
  ...u,
5927
- ref: m,
5927
+ ref: b,
5928
5928
  style: {
5929
5929
  pointerEvents: w ? S ? "auto" : "none" : void 0,
5930
5930
  ...t.style
@@ -6180,10 +6180,10 @@ const H3 = async (t, e, r) => {
6180
6180
  }), {
6181
6181
  x: c,
6182
6182
  y: p
6183
- } = xc(l, n, u), f = n, d = {}, m = 0;
6183
+ } = xc(l, n, u), f = n, d = {}, b = 0;
6184
6184
  for (let g = 0; g < s.length; g++) {
6185
6185
  const {
6186
- name: b,
6186
+ name: m,
6187
6187
  fn: y
6188
6188
  } = s[g], {
6189
6189
  x,
@@ -6206,11 +6206,11 @@ const H3 = async (t, e, r) => {
6206
6206
  });
6207
6207
  c = x ?? c, p = w ?? p, d = {
6208
6208
  ...d,
6209
- [b]: {
6210
- ...d[b],
6209
+ [m]: {
6210
+ ...d[m],
6211
6211
  ...S
6212
6212
  }
6213
- }, N && m <= 50 && (m++, typeof N == "object" && (N.placement && (f = N.placement), N.rects && (l = N.rects === !0 ? await a.getElementRects({
6213
+ }, N && b <= 50 && (b++, typeof N == "object" && (N.placement && (f = N.placement), N.rects && (l = N.rects === !0 ? await a.getElementRects({
6214
6214
  reference: t,
6215
6215
  floating: e,
6216
6216
  strategy: o
@@ -6243,8 +6243,8 @@ async function kn(t, e) {
6243
6243
  elementContext: p = "floating",
6244
6244
  altBoundary: f = !1,
6245
6245
  padding: d = 0
6246
- } = kt(e, t), m = Ff(d), b = s[f ? p === "floating" ? "reference" : "floating" : p], y = Qo(await i.getClippingRect({
6247
- element: (r = await (i.isElement == null ? void 0 : i.isElement(b))) == null || r ? b : b.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
6246
+ } = kt(e, t), b = Ff(d), m = s[f ? p === "floating" ? "reference" : "floating" : p], y = Qo(await i.getClippingRect({
6247
+ element: (r = await (i.isElement == null ? void 0 : i.isElement(m))) == null || r ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
6248
6248
  boundary: l,
6249
6249
  rootBoundary: c,
6250
6250
  strategy: u
@@ -6266,10 +6266,10 @@ async function kn(t, e) {
6266
6266
  strategy: u
6267
6267
  }) : x);
6268
6268
  return {
6269
- top: (y.top - N.top + m.top) / S.y,
6270
- bottom: (N.bottom - y.bottom + m.bottom) / S.y,
6271
- left: (y.left - N.left + m.left) / S.x,
6272
- right: (N.right - y.right + m.right) / S.x
6269
+ top: (y.top - N.top + b.top) / S.y,
6270
+ bottom: (N.bottom - y.bottom + b.bottom) / S.y,
6271
+ left: (y.left - N.left + b.left) / S.x,
6272
+ right: (N.right - y.right + b.right) / S.x
6273
6273
  };
6274
6274
  }
6275
6275
  const q3 = (t) => ({
@@ -6293,15 +6293,15 @@ const q3 = (t) => ({
6293
6293
  const p = Ff(c), f = {
6294
6294
  x: r,
6295
6295
  y: n
6296
- }, d = fu(o), m = du(d), g = await a.getDimensions(l), b = d === "y", y = b ? "top" : "left", x = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", S = i.reference[m] + i.reference[d] - f[d] - i.floating[m], N = f[d] - i.reference[d], R = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
6296
+ }, d = fu(o), b = du(d), g = await a.getDimensions(l), m = d === "y", y = m ? "top" : "left", x = m ? "bottom" : "right", w = m ? "clientHeight" : "clientWidth", S = i.reference[b] + i.reference[d] - f[d] - i.floating[b], N = f[d] - i.reference[d], R = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
6297
6297
  let k = R ? R[w] : 0;
6298
- (!k || !await (a.isElement == null ? void 0 : a.isElement(R))) && (k = s.floating[w] || i.floating[m]);
6299
- const L = S / 2 - N / 2, $ = k / 2 - g[m] / 2 - 1, F = Kt(p[y], $), E = Kt(p[x], $), C = F, D = k - g[m] - E, j = k / 2 - g[m] / 2 + L, T = rs(C, j, D), A = !u.arrow && on(o) != null && j !== T && i.reference[m] / 2 - (j < C ? F : E) - g[m] / 2 < 0, _ = A ? j < C ? j - C : j - D : 0;
6298
+ (!k || !await (a.isElement == null ? void 0 : a.isElement(R))) && (k = s.floating[w] || i.floating[b]);
6299
+ const $ = S / 2 - N / 2, j = k / 2 - g[b] / 2 - 1, F = Kt(p[y], j), E = Kt(p[x], j), C = F, D = k - g[b] - E, L = k / 2 - g[b] / 2 + $, T = rs(C, L, D), A = !u.arrow && on(o) != null && L !== T && i.reference[b] / 2 - (L < C ? F : E) - g[b] / 2 < 0, _ = A ? L < C ? L - C : L - D : 0;
6300
6300
  return {
6301
6301
  [d]: f[d] + _,
6302
6302
  data: {
6303
6303
  [d]: T,
6304
- centerOffset: j - T - _,
6304
+ centerOffset: L - T - _,
6305
6305
  ...A && {
6306
6306
  alignmentOffset: _
6307
6307
  }
@@ -6327,32 +6327,32 @@ const q3 = (t) => ({
6327
6327
  crossAxis: p = !0,
6328
6328
  fallbackPlacements: f,
6329
6329
  fallbackStrategy: d = "bestFit",
6330
- fallbackAxisSideDirection: m = "none",
6330
+ fallbackAxisSideDirection: b = "none",
6331
6331
  flipAlignment: g = !0,
6332
- ...b
6332
+ ...m
6333
6333
  } = kt(t, e);
6334
6334
  if ((r = i.arrow) != null && r.alignmentOffset)
6335
6335
  return {};
6336
- const y = It(o), x = ct(s), w = It(s) === s, S = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), N = f || (w || !g ? [Zo(s)] : L3(s)), R = m !== "none";
6337
- !f && R && N.push(...B3(s, g, m, S));
6338
- const k = [s, ...N], L = await kn(e, b), $ = [];
6336
+ const y = It(o), x = ct(s), w = It(s) === s, S = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), N = f || (w || !g ? [Zo(s)] : L3(s)), R = b !== "none";
6337
+ !f && R && N.push(...B3(s, g, b, S));
6338
+ const k = [s, ...N], $ = await kn(e, m), j = [];
6339
6339
  let F = ((n = i.flip) == null ? void 0 : n.overflows) || [];
6340
- if (c && $.push(L[y]), p) {
6341
- const j = D3(o, a, S);
6342
- $.push(L[j[0]], L[j[1]]);
6340
+ if (c && j.push($[y]), p) {
6341
+ const L = D3(o, a, S);
6342
+ j.push($[L[0]], $[L[1]]);
6343
6343
  }
6344
6344
  if (F = [...F, {
6345
6345
  placement: o,
6346
- overflows: $
6347
- }], !$.every((j) => j <= 0)) {
6346
+ overflows: j
6347
+ }], !j.every((L) => L <= 0)) {
6348
6348
  var E, C;
6349
- const j = (((E = i.flip) == null ? void 0 : E.index) || 0) + 1, T = k[j];
6349
+ const L = (((E = i.flip) == null ? void 0 : E.index) || 0) + 1, T = k[L];
6350
6350
  if (T && (!(p === "alignment" ? x !== ct(T) : !1) || // We leave the current main axis only if every placement on that axis
6351
6351
  // overflows the main axis.
6352
6352
  F.every((M) => ct(M.placement) === x ? M.overflows[0] > 0 : !0)))
6353
6353
  return {
6354
6354
  data: {
6355
- index: j,
6355
+ index: L,
6356
6356
  overflows: F
6357
6357
  },
6358
6358
  reset: {
@@ -6453,7 +6453,7 @@ async function V3(t, e) {
6453
6453
  let {
6454
6454
  mainAxis: f,
6455
6455
  crossAxis: d,
6456
- alignmentAxis: m
6456
+ alignmentAxis: b
6457
6457
  } = typeof p == "number" ? {
6458
6458
  mainAxis: p,
6459
6459
  crossAxis: 0,
@@ -6463,7 +6463,7 @@ async function V3(t, e) {
6463
6463
  crossAxis: p.crossAxis || 0,
6464
6464
  alignmentAxis: p.alignmentAxis
6465
6465
  };
6466
- return s && typeof m == "number" && (d = s === "end" ? m * -1 : m), u ? {
6466
+ return s && typeof b == "number" && (d = s === "end" ? b * -1 : b), u ? {
6467
6467
  x: d * c,
6468
6468
  y: f * l
6469
6469
  } : {
@@ -6506,11 +6506,11 @@ const W3 = function(t) {
6506
6506
  mainAxis: i = !0,
6507
6507
  crossAxis: a = !1,
6508
6508
  limiter: s = {
6509
- fn: (b) => {
6509
+ fn: (m) => {
6510
6510
  let {
6511
6511
  x: y,
6512
6512
  y: x
6513
- } = b;
6513
+ } = m;
6514
6514
  return {
6515
6515
  x: y,
6516
6516
  y: x
@@ -6522,19 +6522,19 @@ const W3 = function(t) {
6522
6522
  x: r,
6523
6523
  y: n
6524
6524
  }, c = await kn(e, u), p = ct(It(o)), f = cu(p);
6525
- let d = l[f], m = l[p];
6525
+ let d = l[f], b = l[p];
6526
6526
  if (i) {
6527
- const b = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", x = d + c[b], w = d - c[y];
6527
+ const m = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", x = d + c[m], w = d - c[y];
6528
6528
  d = rs(x, d, w);
6529
6529
  }
6530
6530
  if (a) {
6531
- const b = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", x = m + c[b], w = m - c[y];
6532
- m = rs(x, m, w);
6531
+ const m = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", x = b + c[m], w = b - c[y];
6532
+ b = rs(x, b, w);
6533
6533
  }
6534
6534
  const g = s.fn({
6535
6535
  ...e,
6536
6536
  [f]: d,
6537
- [p]: m
6537
+ [p]: b
6538
6538
  });
6539
6539
  return {
6540
6540
  ...g,
@@ -6567,8 +6567,8 @@ const W3 = function(t) {
6567
6567
  x: r,
6568
6568
  y: n
6569
6569
  }, p = ct(o), f = cu(p);
6570
- let d = c[f], m = c[p];
6571
- const g = kt(s, e), b = typeof g == "number" ? {
6570
+ let d = c[f], b = c[p];
6571
+ const g = kt(s, e), m = typeof g == "number" ? {
6572
6572
  mainAxis: g,
6573
6573
  crossAxis: 0
6574
6574
  } : {
@@ -6577,17 +6577,17 @@ const W3 = function(t) {
6577
6577
  ...g
6578
6578
  };
6579
6579
  if (u) {
6580
- const w = f === "y" ? "height" : "width", S = i.reference[f] - i.floating[w] + b.mainAxis, N = i.reference[f] + i.reference[w] - b.mainAxis;
6580
+ const w = f === "y" ? "height" : "width", S = i.reference[f] - i.floating[w] + m.mainAxis, N = i.reference[f] + i.reference[w] - m.mainAxis;
6581
6581
  d < S ? d = S : d > N && (d = N);
6582
6582
  }
6583
6583
  if (l) {
6584
6584
  var y, x;
6585
- const w = f === "y" ? "width" : "height", S = Hf.has(It(o)), N = i.reference[p] - i.floating[w] + (S && ((y = a.offset) == null ? void 0 : y[p]) || 0) + (S ? 0 : b.crossAxis), R = i.reference[p] + i.reference[w] + (S ? 0 : ((x = a.offset) == null ? void 0 : x[p]) || 0) - (S ? b.crossAxis : 0);
6586
- m < N ? m = N : m > R && (m = R);
6585
+ const w = f === "y" ? "width" : "height", S = Hf.has(It(o)), N = i.reference[p] - i.floating[w] + (S && ((y = a.offset) == null ? void 0 : y[p]) || 0) + (S ? 0 : m.crossAxis), R = i.reference[p] + i.reference[w] + (S ? 0 : ((x = a.offset) == null ? void 0 : x[p]) || 0) - (S ? m.crossAxis : 0);
6586
+ b < N ? b = N : b > R && (b = R);
6587
6587
  }
6588
6588
  return {
6589
6589
  [f]: d,
6590
- [p]: m
6590
+ [p]: b
6591
6591
  };
6592
6592
  }
6593
6593
  };
@@ -6607,24 +6607,24 @@ const W3 = function(t) {
6607
6607
  },
6608
6608
  ...l
6609
6609
  } = kt(t, e), c = await kn(e, l), p = It(o), f = on(o), d = ct(o) === "y", {
6610
- width: m,
6610
+ width: b,
6611
6611
  height: g
6612
6612
  } = i.floating;
6613
- let b, y;
6614
- p === "top" || p === "bottom" ? (b = p, y = f === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (y = p, b = f === "end" ? "top" : "bottom");
6615
- const x = g - c.top - c.bottom, w = m - c.left - c.right, S = Kt(g - c[b], x), N = Kt(m - c[y], w), R = !e.middlewareData.shift;
6616
- let k = S, L = N;
6617
- if ((r = e.middlewareData.shift) != null && r.enabled.x && (L = w), (n = e.middlewareData.shift) != null && n.enabled.y && (k = x), R && !f) {
6613
+ let m, y;
6614
+ p === "top" || p === "bottom" ? (m = p, y = f === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (y = p, m = f === "end" ? "top" : "bottom");
6615
+ const x = g - c.top - c.bottom, w = b - c.left - c.right, S = Kt(g - c[m], x), N = Kt(b - c[y], w), R = !e.middlewareData.shift;
6616
+ let k = S, $ = N;
6617
+ if ((r = e.middlewareData.shift) != null && r.enabled.x && ($ = w), (n = e.middlewareData.shift) != null && n.enabled.y && (k = x), R && !f) {
6618
6618
  const F = Fe(c.left, 0), E = Fe(c.right, 0), C = Fe(c.top, 0), D = Fe(c.bottom, 0);
6619
- d ? L = m - 2 * (F !== 0 || E !== 0 ? F + E : Fe(c.left, c.right)) : k = g - 2 * (C !== 0 || D !== 0 ? C + D : Fe(c.top, c.bottom));
6619
+ d ? $ = b - 2 * (F !== 0 || E !== 0 ? F + E : Fe(c.left, c.right)) : k = g - 2 * (C !== 0 || D !== 0 ? C + D : Fe(c.top, c.bottom));
6620
6620
  }
6621
6621
  await u({
6622
6622
  ...e,
6623
- availableWidth: L,
6623
+ availableWidth: $,
6624
6624
  availableHeight: k
6625
6625
  });
6626
- const $ = await a.getDimensions(s.floating);
6627
- return m !== $.width || g !== $.height ? {
6626
+ const j = await a.getDimensions(s.floating);
6627
+ return b !== j.width || g !== j.height ? {
6628
6628
  reset: {
6629
6629
  rects: !0
6630
6630
  }
@@ -6794,10 +6794,10 @@ function fr(t, e, r, n) {
6794
6794
  let u = (o.left + s.x) / a.x, l = (o.top + s.y) / a.y, c = o.width / a.x, p = o.height / a.y;
6795
6795
  if (i) {
6796
6796
  const f = He(i), d = n && rt(n) ? He(n) : n;
6797
- let m = f, g = os(m);
6798
- for (; g && n && d !== m; ) {
6799
- const b = Lr(g), y = g.getBoundingClientRect(), x = nt(g), w = y.left + (g.clientLeft + parseFloat(x.paddingLeft)) * b.x, S = y.top + (g.clientTop + parseFloat(x.paddingTop)) * b.y;
6800
- u *= b.x, l *= b.y, c *= b.x, p *= b.y, u += w, l += S, m = He(g), g = os(m);
6797
+ let b = f, g = os(b);
6798
+ for (; g && n && d !== b; ) {
6799
+ const m = Lr(g), y = g.getBoundingClientRect(), x = nt(g), w = y.left + (g.clientLeft + parseFloat(x.paddingLeft)) * m.x, S = y.top + (g.clientTop + parseFloat(x.paddingTop)) * m.y;
6800
+ u *= m.x, l *= m.y, c *= m.x, p *= m.y, u += w, l += S, b = He(g), g = os(b);
6801
6801
  }
6802
6802
  }
6803
6803
  return Qo({
@@ -6870,8 +6870,8 @@ function c6(t, e) {
6870
6870
  }
6871
6871
  const l = Ii(n);
6872
6872
  if (l <= 0) {
6873
- const c = n.ownerDocument, p = c.body, f = getComputedStyle(p), d = c.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, m = Math.abs(n.clientWidth - p.clientWidth - d);
6874
- m <= Cc && (i -= m);
6873
+ const c = n.ownerDocument, p = c.body, f = getComputedStyle(p), d = c.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, b = Math.abs(n.clientWidth - p.clientWidth - d);
6874
+ b <= Cc && (i -= b);
6875
6875
  } else l <= Cc && (i += l);
6876
6876
  return {
6877
6877
  width: i,
@@ -7054,8 +7054,8 @@ function x6(t, e) {
7054
7054
  } = l;
7055
7055
  if (s || e(), !f || !d)
7056
7056
  return;
7057
- const m = ho(p), g = ho(o.clientWidth - (c + f)), b = ho(o.clientHeight - (p + d)), y = ho(c), w = {
7058
- rootMargin: -m + "px " + -g + "px " + -b + "px " + -y + "px",
7057
+ const b = ho(p), g = ho(o.clientWidth - (c + f)), m = ho(o.clientHeight - (p + d)), y = ho(c), w = {
7058
+ rootMargin: -b + "px " + -g + "px " + -m + "px " + -y + "px",
7059
7059
  threshold: Fe(0, Kt(1, u)) || 1
7060
7060
  };
7061
7061
  let S = !0;
@@ -7106,17 +7106,17 @@ function w6(t, e, r, n) {
7106
7106
  (w = d) == null || w.observe(e);
7107
7107
  })), r();
7108
7108
  }), l && !u && d.observe(l), d.observe(e));
7109
- let m, g = u ? fr(t) : null;
7110
- u && b();
7111
- function b() {
7109
+ let b, g = u ? fr(t) : null;
7110
+ u && m();
7111
+ function m() {
7112
7112
  const y = fr(t);
7113
- g && !Xf(g, y) && r(), g = y, m = requestAnimationFrame(b);
7113
+ g && !Xf(g, y) && r(), g = y, b = requestAnimationFrame(m);
7114
7114
  }
7115
7115
  return r(), () => {
7116
7116
  var y;
7117
7117
  c.forEach((x) => {
7118
7118
  o && x.removeEventListener("scroll", r), i && x.removeEventListener("resize", r);
7119
- }), p == null || p(), (y = d) == null || y.disconnect(), d = null, u && cancelAnimationFrame(m);
7119
+ }), p == null || p(), (y = d) == null || y.disconnect(), d = null, u && cancelAnimationFrame(b);
7120
7120
  };
7121
7121
  }
7122
7122
  const S6 = W3, E6 = G3, C6 = z3, T6 = X3, N6 = U3, Ac = q3, A6 = Y3, O6 = (t, e, r) => {
@@ -7200,11 +7200,11 @@ function P6(t) {
7200
7200
  isPositioned: !1
7201
7201
  }), [f, d] = v.useState(n);
7202
7202
  ei(f, n) || d(n);
7203
- const [m, g] = v.useState(null), [b, y] = v.useState(null), x = v.useCallback((M) => {
7203
+ const [b, g] = v.useState(null), [m, y] = v.useState(null), x = v.useCallback((M) => {
7204
7204
  M !== R.current && (R.current = M, g(M));
7205
7205
  }, []), w = v.useCallback((M) => {
7206
7206
  M !== k.current && (k.current = M, y(M));
7207
- }, []), S = i || m, N = a || b, R = v.useRef(null), k = v.useRef(null), L = v.useRef(c), $ = u != null, F = ga(u), E = ga(o), C = ga(l), D = v.useCallback(() => {
7207
+ }, []), S = i || b, N = a || m, R = v.useRef(null), k = v.useRef(null), $ = v.useRef(c), j = u != null, F = ga(u), E = ga(o), C = ga(l), D = v.useCallback(() => {
7208
7208
  if (!R.current || !k.current)
7209
7209
  return;
7210
7210
  const M = {
@@ -7221,27 +7221,27 @@ function P6(t) {
7221
7221
  // setting it to `true` when `open === false` (must be specified).
7222
7222
  isPositioned: C.current !== !1
7223
7223
  };
7224
- j.current && !ei(L.current, U) && (L.current = U, _d.flushSync(() => {
7224
+ L.current && !ei($.current, U) && ($.current = U, _d.flushSync(() => {
7225
7225
  p(U);
7226
7226
  }));
7227
7227
  });
7228
7228
  }, [f, e, r, E, C]);
7229
7229
  _o(() => {
7230
- l === !1 && L.current.isPositioned && (L.current.isPositioned = !1, p((M) => ({
7230
+ l === !1 && $.current.isPositioned && ($.current.isPositioned = !1, p((M) => ({
7231
7231
  ...M,
7232
7232
  isPositioned: !1
7233
7233
  })));
7234
7234
  }, [l]);
7235
- const j = v.useRef(!1);
7236
- _o(() => (j.current = !0, () => {
7237
- j.current = !1;
7235
+ const L = v.useRef(!1);
7236
+ _o(() => (L.current = !0, () => {
7237
+ L.current = !1;
7238
7238
  }), []), _o(() => {
7239
7239
  if (S && (R.current = S), N && (k.current = N), S && N) {
7240
7240
  if (F.current)
7241
7241
  return F.current(S, N, D);
7242
7242
  D();
7243
7243
  }
7244
- }, [S, N, D, F, $]);
7244
+ }, [S, N, D, F, j]);
7245
7245
  const T = v.useMemo(() => ({
7246
7246
  reference: R,
7247
7247
  floating: k,
@@ -7392,25 +7392,25 @@ var gu = "PopperContent", [z6, U6] = Qf(gu), i0 = v.forwardRef(
7392
7392
  sticky: p = "partial",
7393
7393
  hideWhenDetached: f = !1,
7394
7394
  updatePositionStrategy: d = "optimized",
7395
- onPlaced: m,
7395
+ onPlaced: b,
7396
7396
  ...g
7397
- } = t, b = t0(gu, r), [y, x] = v.useState(null), w = Ae(e, (st) => x(st)), [S, N] = v.useState(null), R = Zf(S), k = (R == null ? void 0 : R.width) ?? 0, L = (R == null ? void 0 : R.height) ?? 0, $ = n + (i !== "center" ? "-" + i : ""), F = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, E = Array.isArray(l) ? l : [l], C = E.length > 0, D = {
7397
+ } = t, m = t0(gu, r), [y, x] = v.useState(null), w = Ae(e, (st) => x(st)), [S, N] = v.useState(null), R = Zf(S), k = (R == null ? void 0 : R.width) ?? 0, $ = (R == null ? void 0 : R.height) ?? 0, j = n + (i !== "center" ? "-" + i : ""), F = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, E = Array.isArray(l) ? l : [l], C = E.length > 0, D = {
7398
7398
  padding: F,
7399
7399
  boundary: E.filter(W6),
7400
7400
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
7401
7401
  altBoundary: C
7402
- }, { refs: j, floatingStyles: T, placement: A, isPositioned: _, middlewareData: M } = P6({
7402
+ }, { refs: L, floatingStyles: T, placement: A, isPositioned: _, middlewareData: M } = P6({
7403
7403
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
7404
7404
  strategy: "fixed",
7405
- placement: $,
7405
+ placement: j,
7406
7406
  whileElementsMounted: (...st) => w6(...st, {
7407
7407
  animationFrame: d === "always"
7408
7408
  }),
7409
7409
  elements: {
7410
- reference: b.anchor
7410
+ reference: m.anchor
7411
7411
  },
7412
7412
  middleware: [
7413
- I6({ mainAxis: o + L, alignmentAxis: a }),
7413
+ I6({ mainAxis: o + $, alignmentAxis: a }),
7414
7414
  u && D6({
7415
7415
  mainAxis: !0,
7416
7416
  crossAxis: !1,
@@ -7426,10 +7426,10 @@ var gu = "PopperContent", [z6, U6] = Qf(gu), i0 = v.forwardRef(
7426
7426
  }
7427
7427
  }),
7428
7428
  S && B6({ element: S, padding: s }),
7429
- G6({ arrowWidth: k, arrowHeight: L }),
7429
+ G6({ arrowWidth: k, arrowHeight: $ }),
7430
7430
  f && $6({ strategy: "referenceHidden", ...D })
7431
7431
  ]
7432
- }), [B, U] = u0(A), ne = We(m);
7432
+ }), [B, U] = u0(A), ne = We(b);
7433
7433
  Xt(() => {
7434
7434
  _ && (ne == null || ne());
7435
7435
  }, [_, ne]);
@@ -7439,7 +7439,7 @@ var gu = "PopperContent", [z6, U6] = Qf(gu), i0 = v.forwardRef(
7439
7439
  }, [y]), /* @__PURE__ */ h(
7440
7440
  "div",
7441
7441
  {
7442
- ref: j.setFloating,
7442
+ ref: L.setFloating,
7443
7443
  "data-radix-popper-content-wrapper": "",
7444
7444
  style: {
7445
7445
  ...T,
@@ -7549,10 +7549,10 @@ var G6 = (t) => ({
7549
7549
  name: "transformOrigin",
7550
7550
  options: t,
7551
7551
  fn(e) {
7552
- var b, y, x;
7553
- const { placement: r, rects: n, middlewareData: o } = e, a = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, s = a ? 0 : t.arrowWidth, u = a ? 0 : t.arrowHeight, [l, c] = u0(r), p = { start: "0%", center: "50%", end: "100%" }[c], f = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + s / 2, d = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + u / 2;
7554
- let m = "", g = "";
7555
- return l === "bottom" ? (m = a ? p : `${f}px`, g = `${-u}px`) : l === "top" ? (m = a ? p : `${f}px`, g = `${n.floating.height + u}px`) : l === "right" ? (m = `${-u}px`, g = a ? p : `${d}px`) : l === "left" && (m = `${n.floating.width + u}px`, g = a ? p : `${d}px`), { data: { x: m, y: g } };
7552
+ var m, y, x;
7553
+ const { placement: r, rects: n, middlewareData: o } = e, a = ((m = o.arrow) == null ? void 0 : m.centerOffset) !== 0, s = a ? 0 : t.arrowWidth, u = a ? 0 : t.arrowHeight, [l, c] = u0(r), p = { start: "0%", center: "50%", end: "100%" }[c], f = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + s / 2, d = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + u / 2;
7554
+ let b = "", g = "";
7555
+ return l === "bottom" ? (b = a ? p : `${f}px`, g = `${-u}px`) : l === "top" ? (b = a ? p : `${f}px`, g = `${n.floating.height + u}px`) : l === "right" ? (b = `${-u}px`, g = a ? p : `${d}px`) : l === "left" && (b = `${n.floating.width + u}px`, g = a ? p : `${d}px`), { data: { x: b, y: g } };
7556
7556
  }
7557
7557
  });
7558
7558
  function u0(t) {
@@ -7597,9 +7597,9 @@ function Q6(t) {
7597
7597
  const c = e.ownerDocument.defaultView ?? window, p = (d) => {
7598
7598
  const g = mo(n.current).includes(CSS.escape(d.animationName));
7599
7599
  if (d.target === e && g && (u("ANIMATION_END"), !o.current)) {
7600
- const b = e.style.animationFillMode;
7600
+ const m = e.style.animationFillMode;
7601
7601
  e.style.animationFillMode = "forwards", l = c.setTimeout(() => {
7602
- e.style.animationFillMode === "forwards" && (e.style.animationFillMode = b);
7602
+ e.style.animationFillMode === "forwards" && (e.style.animationFillMode = m);
7603
7603
  });
7604
7604
  }
7605
7605
  }, f = (d) => {
@@ -7750,20 +7750,20 @@ var Dn = "Tooltip", [d4, Mi] = Di(Dn), f0 = (t) => {
7750
7750
  onOpenChange: i,
7751
7751
  disableHoverableContent: a,
7752
7752
  delayDuration: s
7753
- } = t, u = yu(Dn, t.__scopeTooltip), l = Li(e), [c, p] = v.useState(null), f = Bf(), d = v.useRef(0), m = a ?? u.disableHoverableContent, g = s ?? u.delayDuration, b = v.useRef(!1), [y, x] = sn({
7753
+ } = t, u = yu(Dn, t.__scopeTooltip), l = Li(e), [c, p] = v.useState(null), f = Bf(), d = v.useRef(0), b = a ?? u.disableHoverableContent, g = s ?? u.delayDuration, m = v.useRef(!1), [y, x] = sn({
7754
7754
  prop: n,
7755
7755
  defaultProp: o ?? !1,
7756
7756
  onChange: (k) => {
7757
7757
  k ? (u.onOpen(), document.dispatchEvent(new CustomEvent(is))) : u.onClose(), i == null || i(k);
7758
7758
  },
7759
7759
  caller: Dn
7760
- }), w = v.useMemo(() => y ? b.current ? "delayed-open" : "instant-open" : "closed", [y]), S = v.useCallback(() => {
7761
- window.clearTimeout(d.current), d.current = 0, b.current = !1, x(!0);
7760
+ }), w = v.useMemo(() => y ? m.current ? "delayed-open" : "instant-open" : "closed", [y]), S = v.useCallback(() => {
7761
+ window.clearTimeout(d.current), d.current = 0, m.current = !1, x(!0);
7762
7762
  }, [x]), N = v.useCallback(() => {
7763
7763
  window.clearTimeout(d.current), d.current = 0, x(!1);
7764
7764
  }, [x]), R = v.useCallback(() => {
7765
7765
  window.clearTimeout(d.current), d.current = window.setTimeout(() => {
7766
- b.current = !0, x(!0), d.current = 0;
7766
+ m.current = !0, x(!0), d.current = 0;
7767
7767
  }, g);
7768
7768
  }, [g, x]);
7769
7769
  return v.useEffect(() => () => {
@@ -7781,11 +7781,11 @@ var Dn = "Tooltip", [d4, Mi] = Di(Dn), f0 = (t) => {
7781
7781
  u.isOpenDelayedRef.current ? R() : S();
7782
7782
  }, [u.isOpenDelayedRef, R, S]),
7783
7783
  onTriggerLeave: v.useCallback(() => {
7784
- m ? N() : (window.clearTimeout(d.current), d.current = 0);
7785
- }, [N, m]),
7784
+ b ? N() : (window.clearTimeout(d.current), d.current = 0);
7785
+ }, [N, b]),
7786
7786
  onOpen: S,
7787
7787
  onClose: N,
7788
- disableHoverableContent: m,
7788
+ disableHoverableContent: b,
7789
7789
  children: r
7790
7790
  }
7791
7791
  ) });
@@ -7831,26 +7831,26 @@ var f4 = "TooltipPortal", [$N, p4] = Di(f4, {
7831
7831
  const r = Mi(Fr, t.__scopeTooltip), n = yu(Fr, t.__scopeTooltip), o = v.useRef(null), i = Ae(e, o), [a, s] = v.useState(null), { trigger: u, onClose: l } = r, c = o.current, { onPointerInTransitChange: p } = n, f = v.useCallback(() => {
7832
7832
  s(null), p(!1);
7833
7833
  }, [p]), d = v.useCallback(
7834
- (m, g) => {
7835
- const b = m.currentTarget, y = { x: m.clientX, y: m.clientY }, x = v4(y, b.getBoundingClientRect()), w = x4(y, x), S = w4(g.getBoundingClientRect()), N = E4([...w, ...S]);
7834
+ (b, g) => {
7835
+ const m = b.currentTarget, y = { x: b.clientX, y: b.clientY }, x = v4(y, m.getBoundingClientRect()), w = x4(y, x), S = w4(g.getBoundingClientRect()), N = E4([...w, ...S]);
7836
7836
  s(N), p(!0);
7837
7837
  },
7838
7838
  [p]
7839
7839
  );
7840
7840
  return v.useEffect(() => () => f(), [f]), v.useEffect(() => {
7841
7841
  if (u && c) {
7842
- const m = (b) => d(b, c), g = (b) => d(b, u);
7843
- return u.addEventListener("pointerleave", m), c.addEventListener("pointerleave", g), () => {
7844
- u.removeEventListener("pointerleave", m), c.removeEventListener("pointerleave", g);
7842
+ const b = (m) => d(m, c), g = (m) => d(m, u);
7843
+ return u.addEventListener("pointerleave", b), c.addEventListener("pointerleave", g), () => {
7844
+ u.removeEventListener("pointerleave", b), c.removeEventListener("pointerleave", g);
7845
7845
  };
7846
7846
  }
7847
7847
  }, [u, c, d, f]), v.useEffect(() => {
7848
7848
  if (a) {
7849
- const m = (g) => {
7850
- const b = g.target, y = { x: g.clientX, y: g.clientY }, x = (u == null ? void 0 : u.contains(b)) || (c == null ? void 0 : c.contains(b)), w = !S4(y, a);
7849
+ const b = (g) => {
7850
+ const m = g.target, y = { x: g.clientX, y: g.clientY }, x = (u == null ? void 0 : u.contains(m)) || (c == null ? void 0 : c.contains(m)), w = !S4(y, a);
7851
7851
  x ? f() : w && (f(), l());
7852
7852
  };
7853
- return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
7853
+ return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
7854
7854
  }
7855
7855
  }, [u, c, a, l, f]), /* @__PURE__ */ h(m0, { ...t, ref: i });
7856
7856
  }), [m4, b4] = Di(Dn, { isInside: !1 }), g4 = /* @__PURE__ */ r4("TooltipContent"), m0 = v.forwardRef(
@@ -8079,12 +8079,12 @@ const Mr = {
8079
8079
  unit: i = "px",
8080
8080
  defaultValue: a = 16
8081
8081
  }) => {
8082
- const s = _e(), [u, l] = me(!1), c = typeof e == "object" && e !== null && !("top" in e) ? e : { desktop: e ?? a }, p = () => c[s] ?? c.desktop ?? a, f = (g, b) => {
8083
- const y = { ...c, [g]: b };
8082
+ const s = _e(), [u, l] = me(!1), c = typeof e == "object" && e !== null && !("top" in e) ? e : { desktop: e ?? a }, p = () => c[s] ?? c.desktop ?? a, f = (g, m) => {
8083
+ const y = { ...c, [g]: m };
8084
8084
  r(y);
8085
8085
  }, d = (g) => {
8086
8086
  f(s, g);
8087
- }, m = et.some(
8087
+ }, b = et.some(
8088
8088
  (g) => g !== "desktop" && c[g] !== void 0
8089
8089
  );
8090
8090
  return /* @__PURE__ */ P("div", { className: "space-y-1.5", children: [
@@ -8095,7 +8095,7 @@ const Mr = {
8095
8095
  "button",
8096
8096
  {
8097
8097
  onClick: () => l(!u),
8098
- className: `p-1 rounded transition-colors ${u || m ? "bg-primary/10 text-primary" : "text-muted-foreground hover:text-foreground"}`,
8098
+ className: `p-1 rounded transition-colors ${u || b ? "bg-primary/10 text-primary" : "text-muted-foreground hover:text-foreground"}`,
8099
8099
  children: I.createElement(Mr[s].icon, {
8100
8100
  className: "h-3 w-3"
8101
8101
  })
@@ -8105,7 +8105,7 @@ const Mr = {
8105
8105
  ] }) })
8106
8106
  ] }),
8107
8107
  u ? /* @__PURE__ */ h("div", { className: "space-y-1.5 pl-2 border-l-2 border-primary/20", children: et.map((g) => {
8108
- const b = Mr[g].icon, y = c[g], x = y === void 0 ? et.find(
8108
+ const m = Mr[g].icon, y = c[g], x = y === void 0 ? et.find(
8109
8109
  (w) => et.indexOf(w) > et.indexOf(g) && c[w] !== void 0
8110
8110
  ) || "desktop" : null;
8111
8111
  return /* @__PURE__ */ P("div", { className: "flex items-center gap-2", children: [
@@ -8114,7 +8114,7 @@ const Mr = {
8114
8114
  "div",
8115
8115
  {
8116
8116
  className: `p-1 rounded ${g === s ? "bg-primary/10" : ""}`,
8117
- children: /* @__PURE__ */ h(b, { className: "h-3 w-3 text-muted-foreground" })
8117
+ children: /* @__PURE__ */ h(m, { className: "h-3 w-3 text-muted-foreground" })
8118
8118
  }
8119
8119
  ) }),
8120
8120
  /* @__PURE__ */ h(pr, { side: "left", children: /* @__PURE__ */ h("p", { children: Mr[g].label }) })
@@ -8323,11 +8323,11 @@ const Mr = {
8323
8323
  unit: i = "",
8324
8324
  defaultValue: a = 50
8325
8325
  }) => {
8326
- const s = _e(), [u, l] = me(!1), c = typeof e == "object" && e !== null && !("top" in e) ? e : { desktop: e ?? a }, p = () => c[s] ?? c.desktop ?? a, f = (m, g) => {
8327
- const b = { ...c, [m]: g };
8328
- r(b);
8326
+ const s = _e(), [u, l] = me(!1), c = typeof e == "object" && e !== null && !("top" in e) ? e : { desktop: e ?? a }, p = () => c[s] ?? c.desktop ?? a, f = (b, g) => {
8327
+ const m = { ...c, [b]: g };
8328
+ r(m);
8329
8329
  }, d = et.some(
8330
- (m) => m !== "desktop" && c[m] !== void 0
8330
+ (b) => b !== "desktop" && c[b] !== void 0
8331
8331
  );
8332
8332
  return /* @__PURE__ */ P("div", { className: "space-y-1.5", children: [
8333
8333
  /* @__PURE__ */ P("div", { className: "flex items-center justify-between", children: [
@@ -8352,41 +8352,41 @@ const Mr = {
8352
8352
  ] }) })
8353
8353
  ] })
8354
8354
  ] }),
8355
- u ? /* @__PURE__ */ h("div", { className: "space-y-2 pl-2 border-l-2 border-primary/20", children: et.map((m) => {
8356
- const g = Mr[m].icon, b = c[m];
8355
+ u ? /* @__PURE__ */ h("div", { className: "space-y-2 pl-2 border-l-2 border-primary/20", children: et.map((b) => {
8356
+ const g = Mr[b].icon, m = c[b];
8357
8357
  return /* @__PURE__ */ P("div", { className: "space-y-1", children: [
8358
8358
  /* @__PURE__ */ P("div", { className: "flex items-center gap-2", children: [
8359
8359
  /* @__PURE__ */ h(
8360
8360
  "div",
8361
8361
  {
8362
- className: `p-1 rounded ${m === s ? "bg-primary/10" : ""}`,
8362
+ className: `p-1 rounded ${b === s ? "bg-primary/10" : ""}`,
8363
8363
  children: /* @__PURE__ */ h(g, { className: "h-3 w-3 text-muted-foreground" })
8364
8364
  }
8365
8365
  ),
8366
- /* @__PURE__ */ h("span", { className: "text-xs text-muted-foreground flex-1", children: Mr[m].label }),
8366
+ /* @__PURE__ */ h("span", { className: "text-xs text-muted-foreground flex-1", children: Mr[b].label }),
8367
8367
  /* @__PURE__ */ P("span", { className: "text-xs", children: [
8368
- b ?? "-",
8369
- b !== void 0 ? i : ""
8368
+ m ?? "-",
8369
+ m !== void 0 ? i : ""
8370
8370
  ] })
8371
8371
  ] }),
8372
8372
  /* @__PURE__ */ h(
8373
8373
  "input",
8374
8374
  {
8375
8375
  type: "range",
8376
- value: b ?? c.desktop ?? a,
8377
- onChange: (y) => f(m, parseInt(y.target.value)),
8376
+ value: m ?? c.desktop ?? a,
8377
+ onChange: (y) => f(b, parseInt(y.target.value)),
8378
8378
  min: n,
8379
8379
  max: o,
8380
8380
  className: "w-full h-1.5 accent-primary"
8381
8381
  }
8382
8382
  )
8383
- ] }, m);
8383
+ ] }, b);
8384
8384
  }) }) : /* @__PURE__ */ h(
8385
8385
  "input",
8386
8386
  {
8387
8387
  type: "range",
8388
8388
  value: p(),
8389
- onChange: (m) => f(s, parseInt(m.target.value)),
8389
+ onChange: (b) => f(s, parseInt(b.target.value)),
8390
8390
  min: n,
8391
8391
  max: o,
8392
8392
  className: "w-full h-1.5 accent-primary"
@@ -8408,27 +8408,27 @@ const Mr = {
8408
8408
  paddingX: p = 16,
8409
8409
  paddingY: f = 10,
8410
8410
  margin: d = { top: 0, right: 0, bottom: 0, left: 0 },
8411
- boxShadow: m = "none",
8411
+ boxShadow: b = "none",
8412
8412
  opacity: g = 100
8413
8413
  }) => {
8414
- const b = _e();
8414
+ const m = _e();
8415
8415
  let y, x, w;
8416
8416
  try {
8417
- const { connectors: j, events: T } = ue((A) => ({
8417
+ const { connectors: L, events: T } = ue((A) => ({
8418
8418
  events: A.events
8419
8419
  }));
8420
- y = j.connect, x = j.drag, w = T.selected;
8420
+ y = L.connect, x = L.drag, w = T.selected;
8421
8421
  } catch {
8422
8422
  }
8423
8423
  const S = {
8424
8424
  sm: { px: 12, py: 6, fs: 14 },
8425
8425
  md: { px: 16, py: 10, fs: 16 },
8426
8426
  lg: { px: 24, py: 14, fs: 18 }
8427
- }, N = S[r] || S.md, R = p === "auto" ? N.px : p, k = f === "auto" ? N.py : f, L = l === "auto" ? N.fs : l, $ = typeof d[b] == "object" ? `${d[b].top}px ${d[b].right}px ${d[b].bottom}px ${d[b].left}px` : `${d[b]}px`, F = e === "outline" ? "transparent" : n, E = e === "outline" ? n : o, C = e === "outline" ? 2 : a, D = e === "outline" ? n : i;
8427
+ }, N = S[r] || S.md, R = p === "auto" ? N.px : p, k = f === "auto" ? N.py : f, $ = l === "auto" ? N.fs : l, j = typeof d[m] == "object" ? `${d[m].top}px ${d[m].right}px ${d[m].bottom}px ${d[m].left}px` : `${d[m]}px`, F = e === "outline" ? "transparent" : n, E = e === "outline" ? n : o, C = e === "outline" ? 2 : a, D = e === "outline" ? n : i;
8428
8428
  return /* @__PURE__ */ h(
8429
8429
  "button",
8430
8430
  {
8431
- ref: (j) => j && y && x && (y == null ? void 0 : y(x == null ? void 0 : x(j))),
8431
+ ref: (L) => L && y && x && (y == null ? void 0 : y(x == null ? void 0 : x(L))),
8432
8432
  className: `cursor-move transition-all hover:opacity-90 ${w ? "ring-2 ring-primary ring-offset-2" : ""}`,
8433
8433
  style: {
8434
8434
  backgroundColor: F,
@@ -8438,11 +8438,11 @@ const Mr = {
8438
8438
  borderStyle: "solid",
8439
8439
  borderRadius: `${s}px`,
8440
8440
  fontWeight: u,
8441
- fontSize: `${L}px`,
8441
+ fontSize: `${$}px`,
8442
8442
  padding: `${k}px ${R}px`,
8443
- margin: $,
8443
+ margin: j,
8444
8444
  width: c === "full" ? "100%" : "auto",
8445
- boxShadow: m === "none" ? "none" : m,
8445
+ boxShadow: b === "none" ? "none" : b,
8446
8446
  opacity: g / 100
8447
8447
  },
8448
8448
  children: t
@@ -8674,8 +8674,8 @@ const te = (t, e) => t && (t[e] || t.desktop || t.small || t.tablet || t.mobile
8674
8674
  { value: "auto", label: "Auto" },
8675
8675
  { value: "custom", label: "Custom" }
8676
8676
  ],
8677
- onChange: (m) => {
8678
- r(m === "none" ? { [o]: { type: "none" } } : m === "auto" ? { [o]: { type: "auto" } } : { [o]: { type: "custom", value: a, unit: s } });
8677
+ onChange: (b) => {
8678
+ r(b === "none" ? { [o]: { type: "none" } } : b === "auto" ? { [o]: { type: "auto" } } : { [o]: { type: "custom", value: a, unit: s } });
8679
8679
  }
8680
8680
  }
8681
8681
  ),
@@ -8685,8 +8685,8 @@ const te = (t, e) => t && (t[e] || t.desktop || t.small || t.tablet || t.mobile
8685
8685
  {
8686
8686
  inputClassName: "w-full h-8 rounded-l-lg",
8687
8687
  value: a,
8688
- onChange: (m) => {
8689
- r({ [o]: { type: "custom", value: m, unit: s } });
8688
+ onChange: (b) => {
8689
+ r({ [o]: { type: "custom", value: b, unit: s } });
8690
8690
  },
8691
8691
  max: n
8692
8692
  }
@@ -8704,9 +8704,9 @@ const te = (t, e) => t && (t[e] || t.desktop || t.small || t.tablet || t.mobile
8704
8704
  { value: "vh", label: "vh" },
8705
8705
  { value: "vw", label: "vw" }
8706
8706
  ],
8707
- onChange: (m) => {
8707
+ onChange: (b) => {
8708
8708
  r({
8709
- [o]: { type: "custom", value: a, unit: m }
8709
+ [o]: { type: "custom", value: a, unit: b }
8710
8710
  });
8711
8711
  }
8712
8712
  }
@@ -9237,14 +9237,14 @@ var us = {};
9237
9237
  t.default = o;
9238
9238
  })(us);
9239
9239
  (function(t) {
9240
- var e = V && V.__createBinding || (Object.create ? function(E, C, D, j) {
9241
- j === void 0 && (j = D);
9240
+ var e = V && V.__createBinding || (Object.create ? function(E, C, D, L) {
9241
+ L === void 0 && (L = D);
9242
9242
  var T = Object.getOwnPropertyDescriptor(C, D);
9243
9243
  (!T || ("get" in T ? !C.__esModule : T.writable || T.configurable)) && (T = { enumerable: !0, get: function() {
9244
9244
  return C[D];
9245
- } }), Object.defineProperty(E, j, T);
9246
- } : function(E, C, D, j) {
9247
- j === void 0 && (j = D), E[j] = C[D];
9245
+ } }), Object.defineProperty(E, L, T);
9246
+ } : function(E, C, D, L) {
9247
+ L === void 0 && (L = D), E[L] = C[D];
9248
9248
  }), r = V && V.__setModuleDefault || (Object.create ? function(E, C) {
9249
9249
  Object.defineProperty(E, "default", { enumerable: !0, value: C });
9250
9250
  } : function(E, C) {
@@ -9284,16 +9284,16 @@ var us = {};
9284
9284
  function d(E) {
9285
9285
  return E >= l.UPPER_A && E <= l.UPPER_F || E >= l.LOWER_A && E <= l.LOWER_F;
9286
9286
  }
9287
- function m(E) {
9287
+ function b(E) {
9288
9288
  return E >= l.UPPER_A && E <= l.UPPER_Z || E >= l.LOWER_A && E <= l.LOWER_Z || f(E);
9289
9289
  }
9290
9290
  function g(E) {
9291
- return E === l.EQUALS || m(E);
9291
+ return E === l.EQUALS || b(E);
9292
9292
  }
9293
- var b;
9293
+ var m;
9294
9294
  (function(E) {
9295
9295
  E[E.EntityStart = 0] = "EntityStart", E[E.NumericStart = 1] = "NumericStart", E[E.NumericDecimal = 2] = "NumericDecimal", E[E.NumericHex = 3] = "NumericHex", E[E.NamedEntity = 4] = "NamedEntity";
9296
- })(b || (b = {}));
9296
+ })(m || (m = {}));
9297
9297
  var y;
9298
9298
  (function(E) {
9299
9299
  E[E.Legacy = 0] = "Legacy", E[E.Strict = 1] = "Strict", E[E.Attribute = 2] = "Attribute";
@@ -9301,67 +9301,67 @@ var us = {};
9301
9301
  var x = (
9302
9302
  /** @class */
9303
9303
  function() {
9304
- function E(C, D, j) {
9305
- this.decodeTree = C, this.emitCodePoint = D, this.errors = j, this.state = b.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = y.Strict;
9304
+ function E(C, D, L) {
9305
+ this.decodeTree = C, this.emitCodePoint = D, this.errors = L, this.state = m.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = y.Strict;
9306
9306
  }
9307
9307
  return E.prototype.startEntity = function(C) {
9308
- this.decodeMode = C, this.state = b.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
9308
+ this.decodeMode = C, this.state = m.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
9309
9309
  }, E.prototype.write = function(C, D) {
9310
9310
  switch (this.state) {
9311
- case b.EntityStart:
9312
- return C.charCodeAt(D) === l.NUM ? (this.state = b.NumericStart, this.consumed += 1, this.stateNumericStart(C, D + 1)) : (this.state = b.NamedEntity, this.stateNamedEntity(C, D));
9313
- case b.NumericStart:
9311
+ case m.EntityStart:
9312
+ return C.charCodeAt(D) === l.NUM ? (this.state = m.NumericStart, this.consumed += 1, this.stateNumericStart(C, D + 1)) : (this.state = m.NamedEntity, this.stateNamedEntity(C, D));
9313
+ case m.NumericStart:
9314
9314
  return this.stateNumericStart(C, D);
9315
- case b.NumericDecimal:
9315
+ case m.NumericDecimal:
9316
9316
  return this.stateNumericDecimal(C, D);
9317
- case b.NumericHex:
9317
+ case m.NumericHex:
9318
9318
  return this.stateNumericHex(C, D);
9319
- case b.NamedEntity:
9319
+ case m.NamedEntity:
9320
9320
  return this.stateNamedEntity(C, D);
9321
9321
  }
9322
9322
  }, E.prototype.stateNumericStart = function(C, D) {
9323
- return D >= C.length ? -1 : (C.charCodeAt(D) | c) === l.LOWER_X ? (this.state = b.NumericHex, this.consumed += 1, this.stateNumericHex(C, D + 1)) : (this.state = b.NumericDecimal, this.stateNumericDecimal(C, D));
9324
- }, E.prototype.addToNumericResult = function(C, D, j, T) {
9325
- if (D !== j) {
9326
- var A = j - D;
9323
+ return D >= C.length ? -1 : (C.charCodeAt(D) | c) === l.LOWER_X ? (this.state = m.NumericHex, this.consumed += 1, this.stateNumericHex(C, D + 1)) : (this.state = m.NumericDecimal, this.stateNumericDecimal(C, D));
9324
+ }, E.prototype.addToNumericResult = function(C, D, L, T) {
9325
+ if (D !== L) {
9326
+ var A = L - D;
9327
9327
  this.result = this.result * Math.pow(T, A) + parseInt(C.substr(D, A), T), this.consumed += A;
9328
9328
  }
9329
9329
  }, E.prototype.stateNumericHex = function(C, D) {
9330
- for (var j = D; D < C.length; ) {
9330
+ for (var L = D; D < C.length; ) {
9331
9331
  var T = C.charCodeAt(D);
9332
9332
  if (f(T) || d(T))
9333
9333
  D += 1;
9334
9334
  else
9335
- return this.addToNumericResult(C, j, D, 16), this.emitNumericEntity(T, 3);
9335
+ return this.addToNumericResult(C, L, D, 16), this.emitNumericEntity(T, 3);
9336
9336
  }
9337
- return this.addToNumericResult(C, j, D, 16), -1;
9337
+ return this.addToNumericResult(C, L, D, 16), -1;
9338
9338
  }, E.prototype.stateNumericDecimal = function(C, D) {
9339
- for (var j = D; D < C.length; ) {
9339
+ for (var L = D; D < C.length; ) {
9340
9340
  var T = C.charCodeAt(D);
9341
9341
  if (f(T))
9342
9342
  D += 1;
9343
9343
  else
9344
- return this.addToNumericResult(C, j, D, 10), this.emitNumericEntity(T, 2);
9344
+ return this.addToNumericResult(C, L, D, 10), this.emitNumericEntity(T, 2);
9345
9345
  }
9346
- return this.addToNumericResult(C, j, D, 10), -1;
9346
+ return this.addToNumericResult(C, L, D, 10), -1;
9347
9347
  }, E.prototype.emitNumericEntity = function(C, D) {
9348
- var j;
9348
+ var L;
9349
9349
  if (this.consumed <= D)
9350
- return (j = this.errors) === null || j === void 0 || j.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
9350
+ return (L = this.errors) === null || L === void 0 || L.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
9351
9351
  if (C === l.SEMI)
9352
9352
  this.consumed += 1;
9353
9353
  else if (this.decodeMode === y.Strict)
9354
9354
  return 0;
9355
9355
  return this.emitCodePoint((0, s.replaceCodePoint)(this.result), this.consumed), this.errors && (C !== l.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
9356
9356
  }, E.prototype.stateNamedEntity = function(C, D) {
9357
- for (var j = this.decodeTree, T = j[this.treeIndex], A = (T & p.VALUE_LENGTH) >> 14; D < C.length; D++, this.excess++) {
9357
+ for (var L = this.decodeTree, T = L[this.treeIndex], A = (T & p.VALUE_LENGTH) >> 14; D < C.length; D++, this.excess++) {
9358
9358
  var _ = C.charCodeAt(D);
9359
- if (this.treeIndex = S(j, T, this.treeIndex + Math.max(1, A), _), this.treeIndex < 0)
9359
+ if (this.treeIndex = S(L, T, this.treeIndex + Math.max(1, A), _), this.treeIndex < 0)
9360
9360
  return this.result === 0 || // If we are parsing an attribute
9361
9361
  this.decodeMode === y.Attribute && // We shouldn't have consumed any characters after the entity,
9362
9362
  (A === 0 || // And there should be no invalid characters.
9363
9363
  g(_)) ? 0 : this.emitNotTerminatedNamedEntity();
9364
- if (T = j[this.treeIndex], A = (T & p.VALUE_LENGTH) >> 14, A !== 0) {
9364
+ if (T = L[this.treeIndex], A = (T & p.VALUE_LENGTH) >> 14, A !== 0) {
9365
9365
  if (_ === l.SEMI)
9366
9366
  return this.emitNamedEntityData(this.treeIndex, A, this.consumed + this.excess);
9367
9367
  this.decodeMode !== y.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
@@ -9369,23 +9369,23 @@ var us = {};
9369
9369
  }
9370
9370
  return -1;
9371
9371
  }, E.prototype.emitNotTerminatedNamedEntity = function() {
9372
- var C, D = this, j = D.result, T = D.decodeTree, A = (T[j] & p.VALUE_LENGTH) >> 14;
9373
- return this.emitNamedEntityData(j, A, this.consumed), (C = this.errors) === null || C === void 0 || C.missingSemicolonAfterCharacterReference(), this.consumed;
9374
- }, E.prototype.emitNamedEntityData = function(C, D, j) {
9372
+ var C, D = this, L = D.result, T = D.decodeTree, A = (T[L] & p.VALUE_LENGTH) >> 14;
9373
+ return this.emitNamedEntityData(L, A, this.consumed), (C = this.errors) === null || C === void 0 || C.missingSemicolonAfterCharacterReference(), this.consumed;
9374
+ }, E.prototype.emitNamedEntityData = function(C, D, L) {
9375
9375
  var T = this.decodeTree;
9376
- return this.emitCodePoint(D === 1 ? T[C] & ~p.VALUE_LENGTH : T[C + 1], j), D === 3 && this.emitCodePoint(T[C + 2], j), j;
9376
+ return this.emitCodePoint(D === 1 ? T[C] & ~p.VALUE_LENGTH : T[C + 1], L), D === 3 && this.emitCodePoint(T[C + 2], L), L;
9377
9377
  }, E.prototype.end = function() {
9378
9378
  var C;
9379
9379
  switch (this.state) {
9380
- case b.NamedEntity:
9380
+ case m.NamedEntity:
9381
9381
  return this.result !== 0 && (this.decodeMode !== y.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
9382
- case b.NumericDecimal:
9382
+ case m.NumericDecimal:
9383
9383
  return this.emitNumericEntity(0, 2);
9384
- case b.NumericHex:
9384
+ case m.NumericHex:
9385
9385
  return this.emitNumericEntity(0, 3);
9386
- case b.NumericStart:
9386
+ case m.NumericStart:
9387
9387
  return (C = this.errors) === null || C === void 0 || C.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
9388
- case b.EntityStart:
9388
+ case m.EntityStart:
9389
9389
  return 0;
9390
9390
  }
9391
9391
  }, E;
@@ -9393,8 +9393,8 @@ var us = {};
9393
9393
  );
9394
9394
  t.EntityDecoder = x;
9395
9395
  function w(E) {
9396
- var C = "", D = new x(E, function(j) {
9397
- return C += (0, s.fromCodePoint)(j);
9396
+ var C = "", D = new x(E, function(L) {
9397
+ return C += (0, s.fromCodePoint)(L);
9398
9398
  });
9399
9399
  return function(T, A) {
9400
9400
  for (var _ = 0, M = 0; (M = T.indexOf("&", M)) >= 0; ) {
@@ -9414,19 +9414,19 @@ var us = {};
9414
9414
  return C = "", U;
9415
9415
  };
9416
9416
  }
9417
- function S(E, C, D, j) {
9417
+ function S(E, C, D, L) {
9418
9418
  var T = (C & p.BRANCH_LENGTH) >> 7, A = C & p.JUMP_TABLE;
9419
9419
  if (T === 0)
9420
- return A !== 0 && j === A ? D : -1;
9420
+ return A !== 0 && L === A ? D : -1;
9421
9421
  if (A) {
9422
- var _ = j - A;
9422
+ var _ = L - A;
9423
9423
  return _ < 0 || _ >= T ? -1 : E[D + _] - 1;
9424
9424
  }
9425
9425
  for (var M = D, B = M + T - 1; M <= B; ) {
9426
9426
  var U = M + B >>> 1, ne = E[U];
9427
- if (ne < j)
9427
+ if (ne < L)
9428
9428
  M = U + 1;
9429
- else if (ne > j)
9429
+ else if (ne > L)
9430
9430
  B = U - 1;
9431
9431
  else
9432
9432
  return E[U + T];
@@ -9439,14 +9439,14 @@ var us = {};
9439
9439
  return C === void 0 && (C = y.Legacy), N(E, C);
9440
9440
  }
9441
9441
  t.decodeHTML = k;
9442
- function L(E) {
9442
+ function $(E) {
9443
9443
  return N(E, y.Attribute);
9444
9444
  }
9445
- t.decodeHTMLAttribute = L;
9446
- function $(E) {
9445
+ t.decodeHTMLAttribute = $;
9446
+ function j(E) {
9447
9447
  return N(E, y.Strict);
9448
9448
  }
9449
- t.decodeHTMLStrict = $;
9449
+ t.decodeHTMLStrict = j;
9450
9450
  function F(E) {
9451
9451
  return R(E, y.Strict);
9452
9452
  }
@@ -9492,9 +9492,9 @@ var us = {};
9492
9492
  }, p = (
9493
9493
  /** @class */
9494
9494
  function() {
9495
- function f(d, m) {
9496
- var g = d.xmlMode, b = g === void 0 ? !1 : g, y = d.decodeEntities, x = y === void 0 ? !0 : y;
9497
- this.cbs = m, this.state = n.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = n.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.trieIndex = 0, this.trieCurrent = 0, this.entityResult = 0, this.entityExcess = 0, this.xmlMode = b, this.decodeEntities = x, this.entityTrie = b ? e.xmlDecodeTree : e.htmlDecodeTree;
9495
+ function f(d, b) {
9496
+ var g = d.xmlMode, m = g === void 0 ? !1 : g, y = d.decodeEntities, x = y === void 0 ? !0 : y;
9497
+ this.cbs = b, this.state = n.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = n.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.trieIndex = 0, this.trieCurrent = 0, this.entityResult = 0, this.entityExcess = 0, this.xmlMode = m, this.decodeEntities = x, this.entityTrie = m ? e.xmlDecodeTree : e.htmlDecodeTree;
9498
9498
  }
9499
9499
  return f.prototype.reset = function() {
9500
9500
  this.state = n.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = n.Text, this.currentSequence = void 0, this.running = !0, this.offset = 0;
@@ -9513,7 +9513,7 @@ var us = {};
9513
9513
  }, f.prototype.stateText = function(d) {
9514
9514
  d === r.Lt || !this.decodeEntities && this.fastForwardTo(r.Lt) ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state = n.BeforeTagName, this.sectionStart = this.index) : this.decodeEntities && d === r.Amp && (this.state = n.BeforeEntity);
9515
9515
  }, f.prototype.stateSpecialStartSequence = function(d) {
9516
- var m = this.sequenceIndex === this.currentSequence.length, g = m ? (
9516
+ var b = this.sequenceIndex === this.currentSequence.length, g = b ? (
9517
9517
  // If we are at the end of the sequence, make sure the tag name has ended
9518
9518
  i(d)
9519
9519
  ) : (
@@ -9522,7 +9522,7 @@ var us = {};
9522
9522
  );
9523
9523
  if (!g)
9524
9524
  this.isSpecial = !1;
9525
- else if (!m) {
9525
+ else if (!b) {
9526
9526
  this.sequenceIndex++;
9527
9527
  return;
9528
9528
  }
@@ -9530,12 +9530,12 @@ var us = {};
9530
9530
  }, f.prototype.stateInSpecialTag = function(d) {
9531
9531
  if (this.sequenceIndex === this.currentSequence.length) {
9532
9532
  if (d === r.Gt || o(d)) {
9533
- var m = this.index - this.currentSequence.length;
9534
- if (this.sectionStart < m) {
9533
+ var b = this.index - this.currentSequence.length;
9534
+ if (this.sectionStart < b) {
9535
9535
  var g = this.index;
9536
- this.index = m, this.cbs.ontext(this.sectionStart, m), this.index = g;
9536
+ this.index = b, this.cbs.ontext(this.sectionStart, b), this.index = g;
9537
9537
  }
9538
- this.isSpecial = !1, this.sectionStart = m + 2, this.stateInClosingTagName(d);
9538
+ this.isSpecial = !1, this.sectionStart = b + 2, this.stateInClosingTagName(d);
9539
9539
  return;
9540
9540
  }
9541
9541
  this.sequenceIndex = 0;
@@ -9552,16 +9552,16 @@ var us = {};
9552
9552
  d === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence === c.CdataEnd ? this.cbs.oncdata(this.sectionStart, this.index, 2) : this.cbs.oncomment(this.sectionStart, this.index, 2), this.sequenceIndex = 0, this.sectionStart = this.index + 1, this.state = n.Text) : this.sequenceIndex === 0 ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : d !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0);
9553
9553
  }, f.prototype.isTagStartChar = function(d) {
9554
9554
  return this.xmlMode ? !i(d) : s(d);
9555
- }, f.prototype.startSpecial = function(d, m) {
9556
- this.isSpecial = !0, this.currentSequence = d, this.sequenceIndex = m, this.state = n.SpecialStartSequence;
9555
+ }, f.prototype.startSpecial = function(d, b) {
9556
+ this.isSpecial = !0, this.currentSequence = d, this.sequenceIndex = b, this.state = n.SpecialStartSequence;
9557
9557
  }, f.prototype.stateBeforeTagName = function(d) {
9558
9558
  if (d === r.ExclamationMark)
9559
9559
  this.state = n.BeforeDeclaration, this.sectionStart = this.index + 1;
9560
9560
  else if (d === r.Questionmark)
9561
9561
  this.state = n.InProcessingInstruction, this.sectionStart = this.index + 1;
9562
9562
  else if (this.isTagStartChar(d)) {
9563
- var m = d | 32;
9564
- this.sectionStart = this.index, !this.xmlMode && m === c.TitleEnd[2] ? this.startSpecial(c.TitleEnd, 3) : this.state = !this.xmlMode && m === c.ScriptEnd[2] ? n.BeforeSpecialS : n.InTagName;
9563
+ var b = d | 32;
9564
+ this.sectionStart = this.index, !this.xmlMode && b === c.TitleEnd[2] ? this.startSpecial(c.TitleEnd, 3) : this.state = !this.xmlMode && b === c.ScriptEnd[2] ? n.BeforeSpecialS : n.InTagName;
9565
9565
  } else d === r.Slash ? this.state = n.BeforeClosingTagName : (this.state = n.Text, this.stateText(d));
9566
9566
  }, f.prototype.stateInTagName = function(d) {
9567
9567
  i(d) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = n.BeforeAttributeName, this.stateBeforeAttributeName(d));
@@ -9581,8 +9581,8 @@ var us = {};
9581
9581
  d === r.Eq ? this.state = n.BeforeAttributeValue : d === r.Slash || d === r.Gt ? (this.cbs.onattribend(l.NoValue, this.index), this.state = n.BeforeAttributeName, this.stateBeforeAttributeName(d)) : o(d) || (this.cbs.onattribend(l.NoValue, this.index), this.state = n.InAttributeName, this.sectionStart = this.index);
9582
9582
  }, f.prototype.stateBeforeAttributeValue = function(d) {
9583
9583
  d === r.DoubleQuote ? (this.state = n.InAttributeValueDq, this.sectionStart = this.index + 1) : d === r.SingleQuote ? (this.state = n.InAttributeValueSq, this.sectionStart = this.index + 1) : o(d) || (this.sectionStart = this.index, this.state = n.InAttributeValueNq, this.stateInAttributeValueNoQuotes(d));
9584
- }, f.prototype.handleInAttributeValue = function(d, m) {
9585
- d === m || !this.decodeEntities && this.fastForwardTo(m) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(m === r.DoubleQuote ? l.Double : l.Single, this.index), this.state = n.BeforeAttributeName) : this.decodeEntities && d === r.Amp && (this.baseState = this.state, this.state = n.BeforeEntity);
9584
+ }, f.prototype.handleInAttributeValue = function(d, b) {
9585
+ d === b || !this.decodeEntities && this.fastForwardTo(b) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(b === r.DoubleQuote ? l.Double : l.Single, this.index), this.state = n.BeforeAttributeName) : this.decodeEntities && d === r.Amp && (this.baseState = this.state, this.state = n.BeforeEntity);
9586
9586
  }, f.prototype.stateInAttributeValueDoubleQuotes = function(d) {
9587
9587
  this.handleInAttributeValue(d, r.DoubleQuote);
9588
9588
  }, f.prototype.stateInAttributeValueSingleQuotes = function(d) {
@@ -9600,8 +9600,8 @@ var us = {};
9600
9600
  }, f.prototype.stateInSpecialComment = function(d) {
9601
9601
  (d === r.Gt || this.fastForwardTo(r.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = n.Text, this.sectionStart = this.index + 1);
9602
9602
  }, f.prototype.stateBeforeSpecialS = function(d) {
9603
- var m = d | 32;
9604
- m === c.ScriptEnd[3] ? this.startSpecial(c.ScriptEnd, 4) : m === c.StyleEnd[3] ? this.startSpecial(c.StyleEnd, 4) : (this.state = n.InTagName, this.stateInTagName(d));
9603
+ var b = d | 32;
9604
+ b === c.ScriptEnd[3] ? this.startSpecial(c.ScriptEnd, 4) : b === c.StyleEnd[3] ? this.startSpecial(c.StyleEnd, 4) : (this.state = n.InTagName, this.stateInTagName(d));
9605
9605
  }, f.prototype.stateBeforeEntity = function(d) {
9606
9606
  this.entityExcess = 1, this.entityResult = 0, d === r.Number ? this.state = n.BeforeNumericEntity : d === r.Amp || (this.trieIndex = 0, this.trieCurrent = this.entityTrie[0], this.state = n.InNamedEntity, this.stateInNamedEntity(d));
9607
9607
  }, f.prototype.stateInNamedEntity = function(d) {
@@ -9610,14 +9610,14 @@ var us = {};
9610
9610
  return;
9611
9611
  }
9612
9612
  this.trieCurrent = this.entityTrie[this.trieIndex];
9613
- var m = this.trieCurrent & e.BinTrieFlags.VALUE_LENGTH;
9614
- if (m) {
9615
- var g = (m >> 14) - 1;
9613
+ var b = this.trieCurrent & e.BinTrieFlags.VALUE_LENGTH;
9614
+ if (b) {
9615
+ var g = (b >> 14) - 1;
9616
9616
  if (!this.allowLegacyEntity() && d !== r.Semi)
9617
9617
  this.trieIndex += g;
9618
9618
  else {
9619
- var b = this.index - this.entityExcess + 1;
9620
- b > this.sectionStart && this.emitPartial(this.sectionStart, b), this.entityResult = this.trieIndex, this.trieIndex += g, this.entityExcess = 0, this.sectionStart = this.index + 1, g === 0 && this.emitNamedEntity();
9619
+ var m = this.index - this.entityExcess + 1;
9620
+ m > this.sectionStart && this.emitPartial(this.sectionStart, m), this.entityResult = this.trieIndex, this.trieIndex += g, this.entityExcess = 0, this.sectionStart = this.index + 1, g === 0 && this.emitNamedEntity();
9621
9621
  }
9622
9622
  }
9623
9623
  }, f.prototype.emitNamedEntity = function() {
@@ -9639,8 +9639,8 @@ var us = {};
9639
9639
  }, f.prototype.stateBeforeNumericEntity = function(d) {
9640
9640
  (d | 32) === r.LowerX ? (this.entityExcess++, this.state = n.InHexEntity) : (this.state = n.InNumericEntity, this.stateInNumericEntity(d));
9641
9641
  }, f.prototype.emitNumericEntity = function(d) {
9642
- var m = this.index - this.entityExcess - 1, g = m + 2 + +(this.state === n.InHexEntity);
9643
- g !== this.index && (m > this.sectionStart && this.emitPartial(this.sectionStart, m), this.sectionStart = this.index + Number(d), this.emitCodePoint((0, e.replaceCodePoint)(this.entityResult))), this.state = this.baseState;
9642
+ var b = this.index - this.entityExcess - 1, g = b + 2 + +(this.state === n.InHexEntity);
9643
+ g !== this.index && (b > this.sectionStart && this.emitPartial(this.sectionStart, b), this.sectionStart = this.index + Number(d), this.emitCodePoint((0, e.replaceCodePoint)(this.entityResult))), this.state = this.baseState;
9644
9644
  }, f.prototype.stateInNumericEntity = function(d) {
9645
9645
  d === r.Semi ? this.emitNumericEntity(!0) : a(d) ? (this.entityResult = this.entityResult * 10 + (d - r.Zero), this.entityExcess++) : (this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state = this.baseState, this.index--);
9646
9646
  }, f.prototype.stateInHexEntity = function(d) {
@@ -9778,8 +9778,8 @@ var us = {};
9778
9778
  }, f.prototype.handleTrailingData = function() {
9779
9779
  var d = this.buffer.length + this.offset;
9780
9780
  this.state === n.InCommentLike ? this.currentSequence === c.CdataEnd ? this.cbs.oncdata(this.sectionStart, d, 0) : this.cbs.oncomment(this.sectionStart, d, 0) : this.state === n.InNumericEntity && this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state === n.InHexEntity && this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state === n.InTagName || this.state === n.BeforeAttributeName || this.state === n.BeforeAttributeValue || this.state === n.AfterAttributeName || this.state === n.InAttributeName || this.state === n.InAttributeValueSq || this.state === n.InAttributeValueDq || this.state === n.InAttributeValueNq || this.state === n.InClosingTagName || this.cbs.ontext(this.sectionStart, d);
9781
- }, f.prototype.emitPartial = function(d, m) {
9782
- this.baseState !== n.Text && this.baseState !== n.InSpecialTag ? this.cbs.onattribdata(d, m) : this.cbs.ontext(d, m);
9781
+ }, f.prototype.emitPartial = function(d, b) {
9782
+ this.baseState !== n.Text && this.baseState !== n.InSpecialTag ? this.cbs.onattribdata(d, b) : this.cbs.ontext(d, b);
9783
9783
  }, f.prototype.emitCodePoint = function(d) {
9784
9784
  this.baseState !== n.Text && this.baseState !== n.InSpecialTag ? this.cbs.onattribentity(d) : this.cbs.ontextentity(d);
9785
9785
  }, f;
@@ -9986,8 +9986,8 @@ var bo = $4(wu), Rc = $n, _r = /* @__PURE__ */ new Set([
9986
9986
  }, t.prototype.oncdata = function(e, r, n) {
9987
9987
  var o, i, a, s, u, l, c, p, f, d;
9988
9988
  this.endIndex = r;
9989
- var m = this.getSlice(e, r - n);
9990
- this.options.xmlMode || this.options.recognizeCDATA ? ((i = (o = this.cbs).oncdatastart) === null || i === void 0 || i.call(o), (s = (a = this.cbs).ontext) === null || s === void 0 || s.call(a, m), (l = (u = this.cbs).oncdataend) === null || l === void 0 || l.call(u)) : ((p = (c = this.cbs).oncomment) === null || p === void 0 || p.call(c, "[CDATA[".concat(m, "]]")), (d = (f = this.cbs).oncommentend) === null || d === void 0 || d.call(f)), this.startIndex = r + 1;
9989
+ var b = this.getSlice(e, r - n);
9990
+ this.options.xmlMode || this.options.recognizeCDATA ? ((i = (o = this.cbs).oncdatastart) === null || i === void 0 || i.call(o), (s = (a = this.cbs).ontext) === null || s === void 0 || s.call(a, b), (l = (u = this.cbs).oncdataend) === null || l === void 0 || l.call(u)) : ((p = (c = this.cbs).oncomment) === null || p === void 0 || p.call(c, "[CDATA[".concat(b, "]]")), (d = (f = this.cbs).oncommentend) === null || d === void 0 || d.call(f)), this.startIndex = r + 1;
9991
9991
  }, t.prototype.onend = function() {
9992
9992
  var e, r;
9993
9993
  if (this.cbs.onclosetag) {
@@ -10579,8 +10579,8 @@ function D0(t, e) {
10579
10579
  })(i = t.EncodingMode || (t.EncodingMode = {}));
10580
10580
  function a(f, d) {
10581
10581
  d === void 0 && (d = o.XML);
10582
- var m = typeof d == "number" ? d : d.level;
10583
- if (m === o.HTML) {
10582
+ var b = typeof d == "number" ? d : d.level;
10583
+ if (b === o.HTML) {
10584
10584
  var g = typeof d == "object" ? d.mode : void 0;
10585
10585
  return (0, e.decodeHTML)(f, g);
10586
10586
  }
@@ -10588,16 +10588,16 @@ function D0(t, e) {
10588
10588
  }
10589
10589
  t.decode = a;
10590
10590
  function s(f, d) {
10591
- var m;
10591
+ var b;
10592
10592
  d === void 0 && (d = o.XML);
10593
10593
  var g = typeof d == "number" ? { level: d } : d;
10594
- return (m = g.mode) !== null && m !== void 0 || (g.mode = e.DecodingMode.Strict), a(f, g);
10594
+ return (b = g.mode) !== null && b !== void 0 || (g.mode = e.DecodingMode.Strict), a(f, g);
10595
10595
  }
10596
10596
  t.decodeStrict = s;
10597
10597
  function u(f, d) {
10598
10598
  d === void 0 && (d = o.XML);
10599
- var m = typeof d == "number" ? { level: d } : d;
10600
- return m.mode === i.UTF8 ? (0, n.escapeUTF8)(f) : m.mode === i.Attribute ? (0, n.escapeAttribute)(f) : m.mode === i.Text ? (0, n.escapeText)(f) : m.level === o.HTML ? m.mode === i.ASCII ? (0, r.encodeNonAsciiHTML)(f) : (0, r.encodeHTML)(f) : (0, n.encodeXML)(f);
10599
+ var b = typeof d == "number" ? { level: d } : d;
10600
+ return b.mode === i.UTF8 ? (0, n.escapeUTF8)(f) : b.mode === i.Attribute ? (0, n.escapeAttribute)(f) : b.mode === i.Text ? (0, n.escapeText)(f) : b.level === o.HTML ? b.mode === i.ASCII ? (0, r.encodeNonAsciiHTML)(f) : (0, r.encodeHTML)(f) : (0, n.encodeXML)(f);
10601
10601
  }
10602
10602
  t.encode = u;
10603
10603
  var l = ni;
@@ -11364,15 +11364,15 @@ function qS(t) {
11364
11364
  Object.defineProperty(t, "Tokenizer", { enumerable: !0, get: function() {
11365
11365
  return o(f).default;
11366
11366
  } }), t.ElementType = n(un);
11367
- var d = Po, m = Po;
11367
+ var d = Po, b = Po;
11368
11368
  Object.defineProperty(t, "getFeed", { enumerable: !0, get: function() {
11369
- return m.getFeed;
11369
+ return b.getFeed;
11370
11370
  } });
11371
11371
  var g = { xmlMode: !0 };
11372
- function b(y, x) {
11372
+ function m(y, x) {
11373
11373
  return x === void 0 && (x = g), (0, d.getFeed)(c(y, x));
11374
11374
  }
11375
- t.parseFeed = b, t.DomUtils = n(Po);
11375
+ t.parseFeed = m, t.DomUtils = n(Po);
11376
11376
  })(v0);
11377
11377
  var zS = (t) => {
11378
11378
  if (typeof t != "string")
@@ -11478,52 +11478,52 @@ var nE = Ur, oE = nE, W0 = { exports: {} };
11478
11478
  S === "\r";
11479
11479
  }
11480
11480
  function n(S) {
11481
- var N, R = S.exec(e.substring(b));
11481
+ var N, R = S.exec(e.substring(m));
11482
11482
  if (R)
11483
- return N = R[0], b += N.length, N;
11483
+ return N = R[0], m += N.length, N;
11484
11484
  }
11485
- for (var o = e.length, i = /^[ \t\n\r\u000c]+/, a = /^[, \t\n\r\u000c]+/, s = /^[^ \t\n\r\u000c]+/, u = /[,]+$/, l = /^\d+$/, c = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, p, f, d, m, g, b = 0, y = []; ; ) {
11486
- if (n(a), b >= o)
11485
+ for (var o = e.length, i = /^[ \t\n\r\u000c]+/, a = /^[, \t\n\r\u000c]+/, s = /^[^ \t\n\r\u000c]+/, u = /[,]+$/, l = /^\d+$/, c = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, p, f, d, b, g, m = 0, y = []; ; ) {
11486
+ if (n(a), m >= o)
11487
11487
  return y;
11488
11488
  p = n(s), f = [], p.slice(-1) === "," ? (p = p.replace(u, ""), w()) : x();
11489
11489
  }
11490
11490
  function x() {
11491
- for (n(i), d = "", m = "in descriptor"; ; ) {
11492
- if (g = e.charAt(b), m === "in descriptor")
11491
+ for (n(i), d = "", b = "in descriptor"; ; ) {
11492
+ if (g = e.charAt(m), b === "in descriptor")
11493
11493
  if (r(g))
11494
- d && (f.push(d), d = "", m = "after descriptor");
11494
+ d && (f.push(d), d = "", b = "after descriptor");
11495
11495
  else if (g === ",") {
11496
- b += 1, d && f.push(d), w();
11496
+ m += 1, d && f.push(d), w();
11497
11497
  return;
11498
11498
  } else if (g === "(")
11499
- d = d + g, m = "in parens";
11499
+ d = d + g, b = "in parens";
11500
11500
  else if (g === "") {
11501
11501
  d && f.push(d), w();
11502
11502
  return;
11503
11503
  } else
11504
11504
  d = d + g;
11505
- else if (m === "in parens")
11505
+ else if (b === "in parens")
11506
11506
  if (g === ")")
11507
- d = d + g, m = "in descriptor";
11507
+ d = d + g, b = "in descriptor";
11508
11508
  else if (g === "") {
11509
11509
  f.push(d), w();
11510
11510
  return;
11511
11511
  } else
11512
11512
  d = d + g;
11513
- else if (m === "after descriptor" && !r(g))
11513
+ else if (b === "after descriptor" && !r(g))
11514
11514
  if (g === "") {
11515
11515
  w();
11516
11516
  return;
11517
11517
  } else
11518
- m = "in descriptor", b -= 1;
11519
- b += 1;
11518
+ b = "in descriptor", m -= 1;
11519
+ m += 1;
11520
11520
  }
11521
11521
  }
11522
11522
  function w() {
11523
- var S = !1, N, R, k, L, $ = {}, F, E, C, D, j;
11524
- for (L = 0; L < f.length; L++)
11525
- F = f[L], E = F[F.length - 1], C = F.substring(0, F.length - 1), D = parseInt(C, 10), j = parseFloat(C), l.test(C) && E === "w" ? ((N || R) && (S = !0), D === 0 ? S = !0 : N = D) : c.test(C) && E === "x" ? ((N || R || k) && (S = !0), j < 0 ? S = !0 : R = j) : l.test(C) && E === "h" ? ((k || R) && (S = !0), D === 0 ? S = !0 : k = D) : S = !0;
11526
- S ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + F + "'.") : ($.url = p, N && ($.w = N), R && ($.d = R), k && ($.h = k), y.push($));
11523
+ var S = !1, N, R, k, $, j = {}, F, E, C, D, L;
11524
+ for ($ = 0; $ < f.length; $++)
11525
+ F = f[$], E = F[F.length - 1], C = F.substring(0, F.length - 1), D = parseInt(C, 10), L = parseFloat(C), l.test(C) && E === "w" ? ((N || R) && (S = !0), D === 0 ? S = !0 : N = D) : c.test(C) && E === "x" ? ((N || R || k) && (S = !0), L < 0 ? S = !0 : R = L) : l.test(C) && E === "h" ? ((k || R) && (S = !0), D === 0 ? S = !0 : k = D) : S = !0;
11526
+ S ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + F + "'.") : (j.url = p, N && (j.w = N), R && (j.d = R), k && (j.h = k), y.push(j));
11527
11527
  }
11528
11528
  };
11529
11529
  });
@@ -11559,16 +11559,16 @@ let Bc = aE, Fc = ot, ds = class Y0 extends Error {
11559
11559
  let f = s + 1 + p, d = " " + (" " + f).slice(-l) + " | ";
11560
11560
  if (f === this.line) {
11561
11561
  if (c.length > 160) {
11562
- let g = 20, b = Math.max(0, this.column - g), y = Math.max(
11562
+ let g = 20, m = Math.max(0, this.column - g), y = Math.max(
11563
11563
  this.column + g,
11564
11564
  this.endColumn + g
11565
- ), x = c.slice(b, y), w = n(d.replace(/\d/g, " ")) + c.slice(0, Math.min(this.column - 1, g - 1)).replace(/[^\t]/g, " ");
11565
+ ), x = c.slice(m, y), w = n(d.replace(/\d/g, " ")) + c.slice(0, Math.min(this.column - 1, g - 1)).replace(/[^\t]/g, " ");
11566
11566
  return o(">") + n(d) + i(x) + `
11567
11567
  ` + w + o("^");
11568
11568
  }
11569
- let m = n(d.replace(/\d/g, " ")) + c.slice(0, this.column - 1).replace(/[^\t]/g, " ");
11569
+ let b = n(d.replace(/\d/g, " ")) + c.slice(0, this.column - 1).replace(/[^\t]/g, " ");
11570
11570
  return o(">") + n(d) + i(c) + `
11571
- ` + m + o("^");
11571
+ ` + b + o("^");
11572
11572
  }
11573
11573
  return " " + n(d) + i(c);
11574
11574
  }).join(`
@@ -12773,31 +12773,31 @@ let { dirname: Io, relative: hp, resolve: mp, sep: bp } = ot, { SourceMapConsume
12773
12773
  var yp = zE;
12774
12774
  const Sa = 39, Xc = 34, vo = 92, Kc = 47, xo = 10, gn = 32, wo = 12, So = 9, Eo = 13, UE = 91, VE = 93, WE = 40, GE = 41, YE = 123, XE = 125, KE = 59, JE = 42, ZE = 58, QE = 64, Co = /[\t\n\f\r "#'()/;[\\\]{}]/g, To = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, e5 = /.[\r\n"'(/\\]/, Jc = /[\da-f]/i;
12775
12775
  var t5 = function(e, r = {}) {
12776
- let n = e.css.valueOf(), o = r.ignoreErrors, i, a, s, u, l, c, p, f, d, m, g = n.length, b = 0, y = [], x = [];
12776
+ let n = e.css.valueOf(), o = r.ignoreErrors, i, a, s, u, l, c, p, f, d, b, g = n.length, m = 0, y = [], x = [];
12777
12777
  function w() {
12778
- return b;
12778
+ return m;
12779
12779
  }
12780
- function S(L) {
12781
- throw e.error("Unclosed " + L, b);
12780
+ function S($) {
12781
+ throw e.error("Unclosed " + $, m);
12782
12782
  }
12783
12783
  function N() {
12784
- return x.length === 0 && b >= g;
12784
+ return x.length === 0 && m >= g;
12785
12785
  }
12786
- function R(L) {
12786
+ function R($) {
12787
12787
  if (x.length) return x.pop();
12788
- if (b >= g) return;
12789
- let $ = L ? L.ignoreUnclosed : !1;
12790
- switch (i = n.charCodeAt(b), i) {
12788
+ if (m >= g) return;
12789
+ let j = $ ? $.ignoreUnclosed : !1;
12790
+ switch (i = n.charCodeAt(m), i) {
12791
12791
  case xo:
12792
12792
  case gn:
12793
12793
  case So:
12794
12794
  case Eo:
12795
12795
  case wo: {
12796
- u = b;
12796
+ u = m;
12797
12797
  do
12798
12798
  u += 1, i = n.charCodeAt(u);
12799
12799
  while (i === gn || i === xo || i === So || i === Eo || i === wo);
12800
- c = ["space", n.slice(b, u)], b = u - 1;
12800
+ c = ["space", n.slice(m, u)], m = u - 1;
12801
12801
  break;
12802
12802
  }
12803
12803
  case UE:
@@ -12808,67 +12808,67 @@ var t5 = function(e, r = {}) {
12808
12808
  case KE:
12809
12809
  case GE: {
12810
12810
  let F = String.fromCharCode(i);
12811
- c = [F, F, b];
12811
+ c = [F, F, m];
12812
12812
  break;
12813
12813
  }
12814
12814
  case WE: {
12815
- if (m = y.length ? y.pop()[1] : "", d = n.charCodeAt(b + 1), m === "url" && d !== Sa && d !== Xc && d !== gn && d !== xo && d !== So && d !== wo && d !== Eo) {
12816
- u = b;
12815
+ if (b = y.length ? y.pop()[1] : "", d = n.charCodeAt(m + 1), b === "url" && d !== Sa && d !== Xc && d !== gn && d !== xo && d !== So && d !== wo && d !== Eo) {
12816
+ u = m;
12817
12817
  do {
12818
12818
  if (p = !1, u = n.indexOf(")", u + 1), u === -1)
12819
- if (o || $) {
12820
- u = b;
12819
+ if (o || j) {
12820
+ u = m;
12821
12821
  break;
12822
12822
  } else
12823
12823
  S("bracket");
12824
12824
  for (f = u; n.charCodeAt(f - 1) === vo; )
12825
12825
  f -= 1, p = !p;
12826
12826
  } while (p);
12827
- c = ["brackets", n.slice(b, u + 1), b, u], b = u;
12827
+ c = ["brackets", n.slice(m, u + 1), m, u], m = u;
12828
12828
  } else
12829
- u = n.indexOf(")", b + 1), a = n.slice(b, u + 1), u === -1 || e5.test(a) ? c = ["(", "(", b] : (c = ["brackets", a, b, u], b = u);
12829
+ u = n.indexOf(")", m + 1), a = n.slice(m, u + 1), u === -1 || e5.test(a) ? c = ["(", "(", m] : (c = ["brackets", a, m, u], m = u);
12830
12830
  break;
12831
12831
  }
12832
12832
  case Sa:
12833
12833
  case Xc: {
12834
- l = i === Sa ? "'" : '"', u = b;
12834
+ l = i === Sa ? "'" : '"', u = m;
12835
12835
  do {
12836
12836
  if (p = !1, u = n.indexOf(l, u + 1), u === -1)
12837
- if (o || $) {
12838
- u = b + 1;
12837
+ if (o || j) {
12838
+ u = m + 1;
12839
12839
  break;
12840
12840
  } else
12841
12841
  S("string");
12842
12842
  for (f = u; n.charCodeAt(f - 1) === vo; )
12843
12843
  f -= 1, p = !p;
12844
12844
  } while (p);
12845
- c = ["string", n.slice(b, u + 1), b, u], b = u;
12845
+ c = ["string", n.slice(m, u + 1), m, u], m = u;
12846
12846
  break;
12847
12847
  }
12848
12848
  case QE: {
12849
- Co.lastIndex = b + 1, Co.test(n), Co.lastIndex === 0 ? u = n.length - 1 : u = Co.lastIndex - 2, c = ["at-word", n.slice(b, u + 1), b, u], b = u;
12849
+ Co.lastIndex = m + 1, Co.test(n), Co.lastIndex === 0 ? u = n.length - 1 : u = Co.lastIndex - 2, c = ["at-word", n.slice(m, u + 1), m, u], m = u;
12850
12850
  break;
12851
12851
  }
12852
12852
  case vo: {
12853
- for (u = b, s = !0; n.charCodeAt(u + 1) === vo; )
12853
+ for (u = m, s = !0; n.charCodeAt(u + 1) === vo; )
12854
12854
  u += 1, s = !s;
12855
12855
  if (i = n.charCodeAt(u + 1), s && i !== Kc && i !== gn && i !== xo && i !== So && i !== Eo && i !== wo && (u += 1, Jc.test(n.charAt(u)))) {
12856
12856
  for (; Jc.test(n.charAt(u + 1)); )
12857
12857
  u += 1;
12858
12858
  n.charCodeAt(u + 1) === gn && (u += 1);
12859
12859
  }
12860
- c = ["word", n.slice(b, u + 1), b, u], b = u;
12860
+ c = ["word", n.slice(m, u + 1), m, u], m = u;
12861
12861
  break;
12862
12862
  }
12863
12863
  default: {
12864
- i === Kc && n.charCodeAt(b + 1) === JE ? (u = n.indexOf("*/", b + 2) + 1, u === 0 && (o || $ ? u = n.length : S("comment")), c = ["comment", n.slice(b, u + 1), b, u], b = u) : (To.lastIndex = b + 1, To.test(n), To.lastIndex === 0 ? u = n.length - 1 : u = To.lastIndex - 2, c = ["word", n.slice(b, u + 1), b, u], y.push(c), b = u);
12864
+ i === Kc && n.charCodeAt(m + 1) === JE ? (u = n.indexOf("*/", m + 2) + 1, u === 0 && (o || j ? u = n.length : S("comment")), c = ["comment", n.slice(m, u + 1), m, u], m = u) : (To.lastIndex = m + 1, To.test(n), To.lastIndex === 0 ? u = n.length - 1 : u = To.lastIndex - 2, c = ["word", n.slice(m, u + 1), m, u], y.push(c), m = u);
12865
12865
  break;
12866
12866
  }
12867
12867
  }
12868
- return b++, c;
12868
+ return m++, c;
12869
12869
  }
12870
- function k(L) {
12871
- x.push(L);
12870
+ function k($) {
12871
+ x.push($);
12872
12872
  }
12873
12873
  return {
12874
12874
  back: k,
@@ -13116,7 +13116,7 @@ let u5 = class {
13116
13116
  for (let f = 0; f < s; f += 1)
13117
13117
  i = n[f], a = i[0], a === "space" && f === s - 1 && !o ? l = !1 : a === "comment" ? (p = n[f - 1] ? n[f - 1][0] : "empty", c = n[f + 1] ? n[f + 1][0] : "empty", !Qc[p] && !Qc[c] ? u.slice(-1) === "," ? l = !1 : u += i[1] : l = !1) : u += i[1];
13118
13118
  if (!l) {
13119
- let f = n.reduce((d, m) => d + m[1], "");
13119
+ let f = n.reduce((d, b) => d + b[1], "");
13120
13120
  e.raws[r] = { raw: f, value: u };
13121
13121
  }
13122
13122
  e[r] = u;
@@ -13790,12 +13790,12 @@ function Un(t, e, r) {
13790
13790
  function i(T, A) {
13791
13791
  const _ = this;
13792
13792
  this.tag = T, this.attribs = A || {}, this.tagPosition = n.length, this.text = "", this.openingTagLength = 0, this.mediaChildren = [], this.updateParentNodeText = function() {
13793
- if (b.length) {
13794
- const M = b[b.length - 1];
13793
+ if (m.length) {
13794
+ const M = m[m.length - 1];
13795
13795
  M.text += _.text;
13796
13796
  }
13797
13797
  }, this.updateParentNodeMediaChildren = function() {
13798
- b.length && Z5.includes(this.tag) && b[b.length - 1].mediaChildren.push(this.tag);
13798
+ m.length && Z5.includes(this.tag) && m[m.length - 1].mediaChildren.push(this.tag);
13799
13799
  };
13800
13800
  }
13801
13801
  e = Object.assign({}, Un.defaults, e), e.parser = Object.assign({}, o8, e.parser);
@@ -13836,12 +13836,12 @@ and ensure you are accounting for this risk.
13836
13836
  }
13837
13837
  });
13838
13838
  const d = {};
13839
- let m;
13839
+ let b;
13840
13840
  Pr(e.transformTags, function(T, A) {
13841
13841
  let _;
13842
- typeof T == "function" ? _ = T : typeof T == "string" && (_ = Un.simpleTransform(T)), A === "*" ? m = _ : d[A] = _;
13842
+ typeof T == "function" ? _ = T : typeof T == "string" && (_ = Un.simpleTransform(T)), A === "*" ? b = _ : d[A] = _;
13843
13843
  });
13844
- let g, b, y, x, w, S, N = !1;
13844
+ let g, m, y, x, w, S, N = !1;
13845
13845
  k();
13846
13846
  const R = new Y5.Parser({
13847
13847
  onopentag: function(T, A) {
@@ -13850,14 +13850,14 @@ and ensure you are accounting for this risk.
13850
13850
  return;
13851
13851
  }
13852
13852
  const _ = new i(T, A);
13853
- b.push(_);
13853
+ m.push(_);
13854
13854
  let M = !1;
13855
13855
  const B = !!_.text;
13856
13856
  let U;
13857
- if (At(d, T) && (U = d[T](T, A), _.attribs = A = U.attribs, U.text !== void 0 && (_.innerText = U.text), T !== U.tagName && (_.name = T = U.tagName, x[g] = U.tagName)), m && (U = m(T, A), _.attribs = A = U.attribs, T !== U.tagName && (_.name = T = U.tagName, x[g] = U.tagName)), (!a(T) || e.disallowedTagsMode === "recursiveEscape" && !e8(y) || e.nestingLimit != null && g >= e.nestingLimit) && (M = !0, y[g] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && s.indexOf(T) !== -1 && (w = !0, S = 1)), g++, M) {
13857
+ if (At(d, T) && (U = d[T](T, A), _.attribs = A = U.attribs, U.text !== void 0 && (_.innerText = U.text), T !== U.tagName && (_.name = T = U.tagName, x[g] = U.tagName)), b && (U = b(T, A), _.attribs = A = U.attribs, T !== U.tagName && (_.name = T = U.tagName, x[g] = U.tagName)), (!a(T) || e.disallowedTagsMode === "recursiveEscape" && !e8(y) || e.nestingLimit != null && g >= e.nestingLimit) && (M = !0, y[g] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && s.indexOf(T) !== -1 && (w = !0, S = 1)), g++, M) {
13858
13858
  if (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
13859
13859
  if (_.innerText && !B) {
13860
- const q = L(_.innerText);
13860
+ const q = $(_.innerText);
13861
13861
  e.textFilter ? n += e.textFilter(q, T) : n += q, N = !0;
13862
13862
  }
13863
13863
  return;
@@ -13865,7 +13865,7 @@ and ensure you are accounting for this risk.
13865
13865
  o = n, n = "";
13866
13866
  }
13867
13867
  n += "<" + T, T === "script" && (e.allowedScriptHostnames || e.allowedScriptDomains) && (_.innerText = ""), M && (e.disallowedTagsMode === "escape" || e.disallowedTagsMode === "recursiveEscape") && e.preserveEscapedAttributes ? Pr(A, function(q, H) {
13868
- n += " " + H + '="' + L(q || "", !0) + '"';
13868
+ n += " " + H + '="' + $(q || "", !0) + '"';
13869
13869
  }) : (!u || At(u, T) || u["*"]) && Pr(A, function(q, H) {
13870
13870
  if (!n8.test(H)) {
13871
13871
  delete _.attribs[H];
@@ -13892,7 +13892,7 @@ and ensure you are accounting for this risk.
13892
13892
  }
13893
13893
  }
13894
13894
  if (be) {
13895
- if (e.allowedSchemesAppliedToAttributes.indexOf(H) !== -1 && $(T, q)) {
13895
+ if (e.allowedSchemesAppliedToAttributes.indexOf(H) !== -1 && j(T, q)) {
13896
13896
  delete _.attribs[H];
13897
13897
  return;
13898
13898
  }
@@ -13942,7 +13942,7 @@ and ensure you are accounting for this risk.
13942
13942
  try {
13943
13943
  let Z = K5(q);
13944
13944
  if (Z.forEach(function(z) {
13945
- $("srcset", z.url) && (z.evil = !0);
13945
+ j("srcset", z.url) && (z.evil = !0);
13946
13946
  }), Z = id(Z, function(z) {
13947
13947
  return !z.evil;
13948
13948
  }), Z.length)
@@ -13964,7 +13964,7 @@ and ensure you are accounting for this risk.
13964
13964
  ].concat(Te, Se).filter(function(st) {
13965
13965
  return st;
13966
13966
  });
13967
- if (Z && z ? q = j(q, od(Z, z), Et) : q = j(q, Z || z, Et), !q.length) {
13967
+ if (Z && z ? q = L(q, od(Z, z), Et) : q = L(q, Z || z, Et), !q.length) {
13968
13968
  delete _.attribs[H];
13969
13969
  return;
13970
13970
  }
@@ -13984,26 +13984,26 @@ and ensure you are accounting for this risk.
13984
13984
  else if (e.allowedStyles)
13985
13985
  throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");
13986
13986
  }
13987
- n += " " + H, q && q.length ? n += '="' + L(q, !0) + '"' : e.allowedEmptyAttributes.includes(H) && (n += '=""');
13987
+ n += " " + H, q && q.length ? n += '="' + $(q, !0) + '"' : e.allowedEmptyAttributes.includes(H) && (n += '=""');
13988
13988
  } else
13989
13989
  delete _.attribs[H];
13990
- }), e.selfClosing.indexOf(T) !== -1 ? n += " />" : (n += ">", _.innerText && !B && !e.textFilter && (n += L(_.innerText), N = !0)), M && (n = o + L(n), o = ""), _.openingTagLength = n.length - _.tagPosition;
13990
+ }), e.selfClosing.indexOf(T) !== -1 ? n += " />" : (n += ">", _.innerText && !B && !e.textFilter && (n += $(_.innerText), N = !0)), M && (n = o + $(n), o = ""), _.openingTagLength = n.length - _.tagPosition;
13991
13991
  },
13992
13992
  ontext: function(T) {
13993
13993
  if (w)
13994
13994
  return;
13995
- const A = b[b.length - 1];
13995
+ const A = m[m.length - 1];
13996
13996
  let _;
13997
13997
  if (A && (_ = A.tag, T = A.innerText !== void 0 ? A.innerText : T), e.disallowedTagsMode === "completelyDiscard" && !a(_))
13998
13998
  T = "";
13999
13999
  else if ((e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && (_ === "script" || _ === "style"))
14000
14000
  n += T;
14001
14001
  else if (!N) {
14002
- const M = L(T, !1);
14002
+ const M = $(T, !1);
14003
14003
  e.textFilter ? n += e.textFilter(M, _) : n += M;
14004
14004
  }
14005
- if (b.length) {
14006
- const M = b[b.length - 1];
14005
+ if (m.length) {
14006
+ const M = m[m.length - 1];
14007
14007
  M.text += T;
14008
14008
  }
14009
14009
  },
@@ -14013,11 +14013,11 @@ and ensure you are accounting for this risk.
14013
14013
  w = !1;
14014
14014
  else
14015
14015
  return;
14016
- const _ = b.pop();
14016
+ const _ = m.pop();
14017
14017
  if (!_)
14018
14018
  return;
14019
14019
  if (_.tag !== T) {
14020
- b.push(_);
14020
+ m.push(_);
14021
14021
  return;
14022
14022
  }
14023
14023
  w = e.enforceHtmlBoundary ? T === "html" : !1, g--;
@@ -14045,17 +14045,17 @@ and ensure you are accounting for this risk.
14045
14045
  M && (n = o, o = "");
14046
14046
  return;
14047
14047
  }
14048
- n += "</" + T + ">", M && (n = o + L(n), o = ""), N = !1;
14048
+ n += "</" + T + ">", M && (n = o + $(n), o = ""), N = !1;
14049
14049
  }
14050
14050
  }, e.parser);
14051
14051
  return R.write(t), R.end(), n;
14052
14052
  function k() {
14053
- n = "", g = 0, b = [], y = {}, x = {}, w = !1, S = 0;
14053
+ n = "", g = 0, m = [], y = {}, x = {}, w = !1, S = 0;
14054
14054
  }
14055
- function L(T, A) {
14055
+ function $(T, A) {
14056
14056
  return typeof T != "string" && (T = T + ""), e.parser.decodeEntities && (T = T.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), A && (T = T.replace(/"/g, "&quot;"))), T = T.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), A && (T = T.replace(/"/g, "&quot;")), T;
14057
14057
  }
14058
- function $(T, A) {
14058
+ function j(T, A) {
14059
14059
  for (A = A.replace(/[\x00-\x20]+/g, ""); ; ) {
14060
14060
  const B = A.indexOf("<!--");
14061
14061
  if (B === -1)
@@ -14107,7 +14107,7 @@ and ensure you are accounting for this risk.
14107
14107
  }) && A.push(_), A;
14108
14108
  };
14109
14109
  }
14110
- function j(T, A, _) {
14110
+ function L(T, A, _) {
14111
14111
  return A ? (T = T.split(/\s+/), T.filter(function(M) {
14112
14112
  return A.indexOf(M) !== -1 || _.some(function(B) {
14113
14113
  return B.test(M);
@@ -14450,26 +14450,26 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
14450
14450
  ke(() => {
14451
14451
  n.current && n.current.innerHTML !== e && (n.current.innerHTML = e || "");
14452
14452
  }, []);
14453
- const l = (b) => {
14453
+ const l = (m) => {
14454
14454
  var y;
14455
- document.execCommand(b, !1, null), (y = n.current) == null || y.focus(), c();
14455
+ document.execCommand(m, !1, null), (y = n.current) == null || y.focus(), c();
14456
14456
  }, c = () => {
14457
14457
  if (n.current) {
14458
- const b = n.current.innerHTML, y = _p(b, a8);
14458
+ const m = n.current.innerHTML, y = _p(m, a8);
14459
14459
  r(y);
14460
14460
  }
14461
14461
  }, p = () => {
14462
- const b = window.getSelection();
14463
- b && b.rangeCount > 0 && (u.current = b.getRangeAt(0));
14462
+ const m = window.getSelection();
14463
+ m && m.rangeCount > 0 && (u.current = m.getRangeAt(0));
14464
14464
  }, f = () => {
14465
14465
  if (u.current) {
14466
- const b = window.getSelection();
14467
- b == null || b.removeAllRanges(), b == null || b.addRange(u.current);
14466
+ const m = window.getSelection();
14467
+ m == null || m.removeAllRanges(), m == null || m.addRange(u.current);
14468
14468
  }
14469
14469
  }, d = () => {
14470
14470
  p(), i(!0);
14471
- }, m = () => {
14472
- var b;
14471
+ }, b = () => {
14472
+ var m;
14473
14473
  if (a) {
14474
14474
  f();
14475
14475
  let y = a.trim();
@@ -14479,10 +14479,10 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
14479
14479
  } catch {
14480
14480
  }
14481
14481
  }
14482
- i(!1), s(""), (b = n.current) == null || b.focus();
14483
- }, g = (b) => {
14482
+ i(!1), s(""), (m = n.current) == null || m.focus();
14483
+ }, g = (m) => {
14484
14484
  try {
14485
- return document.queryCommandState(b);
14485
+ return document.queryCommandState(m);
14486
14486
  } catch {
14487
14487
  return !1;
14488
14488
  }
@@ -14490,28 +14490,28 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
14490
14490
  return /* @__PURE__ */ P("div", { className: "space-y-1.5", children: [
14491
14491
  /* @__PURE__ */ h("label", { className: "text-xs text-muted-foreground", children: t }),
14492
14492
  /* @__PURE__ */ h("div", { className: "flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0", children: /* @__PURE__ */ P(Ln, { children: [
14493
- i8.map(({ command: b, icon: y, label: x }) => /* @__PURE__ */ P(Hr, { children: [
14493
+ i8.map(({ command: m, icon: y, label: x }) => /* @__PURE__ */ P(Hr, { children: [
14494
14494
  /* @__PURE__ */ h(qr, { asChild: !0, children: /* @__PURE__ */ h(
14495
14495
  "button",
14496
14496
  {
14497
14497
  type: "button",
14498
14498
  onMouseDown: (w) => {
14499
- w.preventDefault(), l(b);
14499
+ w.preventDefault(), l(m);
14500
14500
  },
14501
- className: `p-1.5 rounded hover:bg-background transition-colors ${g(b) ? "bg-background text-primary" : "text-muted-foreground"}`,
14501
+ className: `p-1.5 rounded hover:bg-background transition-colors ${g(m) ? "bg-background text-primary" : "text-muted-foreground"}`,
14502
14502
  children: /* @__PURE__ */ h(y, { className: "h-3.5 w-3.5" })
14503
14503
  }
14504
14504
  ) }),
14505
14505
  /* @__PURE__ */ h(pr, { side: "top", children: /* @__PURE__ */ h("p", { children: x }) })
14506
- ] }, b)),
14506
+ ] }, m)),
14507
14507
  /* @__PURE__ */ h("div", { className: "w-px h-4 bg-border mx-1" }),
14508
14508
  /* @__PURE__ */ P(Hr, { children: [
14509
14509
  /* @__PURE__ */ h(qr, { asChild: !0, children: /* @__PURE__ */ h(
14510
14510
  "button",
14511
14511
  {
14512
14512
  type: "button",
14513
- onMouseDown: (b) => {
14514
- b.preventDefault(), d();
14513
+ onMouseDown: (m) => {
14514
+ m.preventDefault(), d();
14515
14515
  },
14516
14516
  className: "p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",
14517
14517
  children: /* @__PURE__ */ h(qs, { className: "h-3.5 w-3.5" })
@@ -14538,12 +14538,12 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
14538
14538
  {
14539
14539
  type: "url",
14540
14540
  value: a,
14541
- onChange: (b) => s(b.target.value),
14541
+ onChange: (m) => s(m.target.value),
14542
14542
  placeholder: "https://example.com",
14543
14543
  className: "w-full px-3 py-2 text-sm rounded border border-input bg-background",
14544
14544
  autoFocus: !0,
14545
- onKeyDown: (b) => {
14546
- b.key === "Enter" && (b.preventDefault(), m()), b.key === "Escape" && (i(!1), s(""));
14545
+ onKeyDown: (m) => {
14546
+ m.key === "Enter" && (m.preventDefault(), b()), m.key === "Escape" && (i(!1), s(""));
14547
14547
  }
14548
14548
  }
14549
14549
  ),
@@ -14561,7 +14561,7 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
14561
14561
  /* @__PURE__ */ h(
14562
14562
  "button",
14563
14563
  {
14564
- onClick: m,
14564
+ onClick: b,
14565
14565
  className: "px-3 py-1.5 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",
14566
14566
  children: "Insert"
14567
14567
  }
@@ -14609,20 +14609,20 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
14609
14609
  textTransform: p = "none",
14610
14610
  opacity: f = 100
14611
14611
  }) => {
14612
- const d = _e(), m = mi();
14613
- let g, b, y;
14612
+ const d = _e(), b = mi();
14613
+ let g, m, y;
14614
14614
  try {
14615
- const { connectors: L, events: $ } = ue((F) => ({
14615
+ const { connectors: $, events: j } = ue((F) => ({
14616
14616
  events: F.events
14617
14617
  }));
14618
- g = L.connect, b = L.drag, y = $.selected;
14618
+ g = $.connect, m = $.drag, y = j.selected;
14619
14619
  } catch {
14620
14620
  }
14621
- const x = ss(t, m), w = typeof te(l, d) == "object" ? `${te(l, d).top}px ${te(l, d).right}px ${te(l, d).bottom}px ${te(l, d).left}px` : `${te(l, d)}px`, S = zt(r, d, 16), N = zt(i, d, 150) / 100, R = zt(a, d, 0), k = /<[^>]+>/.test(x);
14621
+ const x = ss(t, b), w = typeof te(l, d) == "object" ? `${te(l, d).top}px ${te(l, d).right}px ${te(l, d).bottom}px ${te(l, d).left}px` : `${te(l, d)}px`, S = zt(r, d, 16), N = zt(i, d, 150) / 100, R = zt(a, d, 0), k = /<[^>]+>/.test(x);
14622
14622
  return /* @__PURE__ */ h(
14623
14623
  "div",
14624
14624
  {
14625
- ref: (L) => L && g && b && g(b(L)),
14625
+ ref: ($) => $ && g && m && g(m($)),
14626
14626
  className: `cursor-move ${y ? "outline outline-blue-500" : ""}`,
14627
14627
  style: {
14628
14628
  fontSize: `${S}px`,
@@ -14642,7 +14642,7 @@ const _p = /* @__PURE__ */ vi(r8), i8 = [
14642
14642
  {
14643
14643
  dangerouslySetInnerHTML: {
14644
14644
  __html: _p(
14645
- ss(e || x, m),
14645
+ ss(e || x, b),
14646
14646
  u8
14647
14647
  )
14648
14648
  },
@@ -14848,19 +14848,19 @@ const An = {
14848
14848
  textTransform: c = "none",
14849
14849
  opacity: p = { desktop: 100 }
14850
14850
  }) => {
14851
- var L, $, F;
14851
+ var $, j, F;
14852
14852
  const f = _e(), d = mi();
14853
- let m, g, b;
14853
+ let b, g, m;
14854
14854
  try {
14855
14855
  const { connectors: E, events: C } = ue((D) => ({
14856
14856
  events: D.events
14857
14857
  }));
14858
- m = E.connect, g = E.drag, b = C.selected;
14858
+ b = E.connect, g = E.drag, m = C.selected;
14859
14859
  } catch {
14860
14860
  }
14861
14861
  const y = ss(t, d), x = `h${e}`;
14862
14862
  let w;
14863
- a === "auto" ? w = ((L = An[e]) == null ? void 0 : L[f]) || (($ = An[e]) == null ? void 0 : $.desktop) || 36 : w = zt(
14863
+ a === "auto" ? w = (($ = An[e]) == null ? void 0 : $[f]) || ((j = An[e]) == null ? void 0 : j.desktop) || 36 : w = zt(
14864
14864
  a,
14865
14865
  f,
14866
14866
  ((F = An[e]) == null ? void 0 : F.desktop) || 36
@@ -14873,8 +14873,8 @@ const An = {
14873
14873
  return /* @__PURE__ */ h(
14874
14874
  x,
14875
14875
  {
14876
- ref: (E) => E && m && g && m(g(E)),
14877
- className: `cursor-move ${b ? "outline outline-blue-500" : ""}`,
14876
+ ref: (E) => E && b && g && b(g(E)),
14877
+ className: `cursor-move ${m ? "outline outline-blue-500" : ""}`,
14878
14878
  style: {
14879
14879
  textAlign: r,
14880
14880
  color: n,
@@ -15104,13 +15104,13 @@ const zu = ({
15104
15104
  const c = _e();
15105
15105
  let p, f, d;
15106
15106
  try {
15107
- const { connectors: g, events: b } = ue((y) => ({
15107
+ const { connectors: g, events: m } = ue((y) => ({
15108
15108
  events: y.events
15109
15109
  }));
15110
- p = g.connect, f = g.drag, d = b.selected;
15110
+ p = g.connect, f = g.drag, d = m.selected;
15111
15111
  } catch {
15112
15112
  }
15113
- const m = typeof s[c] == "object" ? `${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px` : `${s[c]}px`;
15113
+ const b = typeof s[c] == "object" ? `${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px` : `${s[c]}px`;
15114
15114
  return /* @__PURE__ */ h(
15115
15115
  "img",
15116
15116
  {
@@ -15124,7 +15124,7 @@ const zu = ({
15124
15124
  maxWidth: o === "none" ? "none" : `${o}px`,
15125
15125
  objectFit: i,
15126
15126
  borderRadius: `${a}px`,
15127
- margin: m,
15127
+ margin: b,
15128
15128
  opacity: u / 100,
15129
15129
  boxShadow: l === "none" ? "none" : l,
15130
15130
  display: "block"
@@ -15547,14 +15547,14 @@ function w8(t) {
15547
15547
  defaultProp: o ?? !1,
15548
15548
  onChange: u,
15549
15549
  caller: Gi
15550
- }), [m, g] = v.useState(null), [b, y] = v.useState(null), x = v.useRef(!1), w = m ? !!a || !!m.closest("form") : (
15550
+ }), [b, g] = v.useState(null), [m, y] = v.useState(null), x = v.useRef(!1), w = b ? !!a || !!b.closest("form") : (
15551
15551
  // We set this to true by default so that events bubble to forms without JS (SSR)
15552
15552
  !0
15553
15553
  ), S = {
15554
15554
  checked: f,
15555
15555
  disabled: i,
15556
15556
  setChecked: d,
15557
- control: m,
15557
+ control: b,
15558
15558
  setControl: g,
15559
15559
  name: s,
15560
15560
  form: a,
@@ -15563,7 +15563,7 @@ function w8(t) {
15563
15563
  required: l,
15564
15564
  defaultChecked: Wt(o) ? !1 : o,
15565
15565
  isFormControl: w,
15566
- bubbleInput: b,
15566
+ bubbleInput: m,
15567
15567
  setBubbleInput: y
15568
15568
  };
15569
15569
  return /* @__PURE__ */ h(
@@ -15587,12 +15587,12 @@ var Pp = "CheckboxTrigger", kp = v.forwardRef(
15587
15587
  setChecked: p,
15588
15588
  hasConsumerStoppedPropagationRef: f,
15589
15589
  isFormControl: d,
15590
- bubbleInput: m
15591
- } = Wu(Pp, t), g = Ae(o, c), b = v.useRef(u);
15590
+ bubbleInput: b
15591
+ } = Wu(Pp, t), g = Ae(o, c), m = v.useRef(u);
15592
15592
  return v.useEffect(() => {
15593
15593
  const y = i == null ? void 0 : i.form;
15594
15594
  if (y) {
15595
- const x = () => p(b.current);
15595
+ const x = () => p(m.current);
15596
15596
  return y.addEventListener("reset", x), () => y.removeEventListener("reset", x);
15597
15597
  }
15598
15598
  }, [i, p]), /* @__PURE__ */ h(
@@ -15612,7 +15612,7 @@ var Pp = "CheckboxTrigger", kp = v.forwardRef(
15612
15612
  y.key === "Enter" && y.preventDefault();
15613
15613
  }),
15614
15614
  onClick: pe(r, (y) => {
15615
- p((x) => Wt(x) ? !0 : !x), m && d && (f.current = y.isPropagationStopped(), f.current || y.stopPropagation());
15615
+ p((x) => Wt(x) ? !0 : !x), b && d && (f.current = y.isPropagationStopped(), f.current || y.stopPropagation());
15616
15616
  })
15617
15617
  }
15618
15618
  );
@@ -15702,7 +15702,7 @@ var Lp = "CheckboxBubbleInput", Mp = v.forwardRef(
15702
15702
  form: p,
15703
15703
  bubbleInput: f,
15704
15704
  setBubbleInput: d
15705
- } = Wu(Lp, t), m = Ae(r, d), g = y8(i), b = Zf(n);
15705
+ } = Wu(Lp, t), b = Ae(r, d), g = y8(i), m = Zf(n);
15706
15706
  v.useEffect(() => {
15707
15707
  const x = f;
15708
15708
  if (!x) return;
@@ -15729,10 +15729,10 @@ var Lp = "CheckboxBubbleInput", Mp = v.forwardRef(
15729
15729
  form: p,
15730
15730
  ...e,
15731
15731
  tabIndex: -1,
15732
- ref: m,
15732
+ ref: b,
15733
15733
  style: {
15734
15734
  ...e.style,
15735
- ...b,
15735
+ ...m,
15736
15736
  position: "absolute",
15737
15737
  pointerEvents: "none",
15738
15738
  opacity: 0,
@@ -16183,31 +16183,31 @@ function Ji(t, e, r) {
16183
16183
  indexes: !1
16184
16184
  },
16185
16185
  !1,
16186
- function(g, b) {
16187
- return !O.isUndefined(b[g]);
16186
+ function(g, m) {
16187
+ return !O.isUndefined(m[g]);
16188
16188
  }
16189
16189
  );
16190
16190
  const n = r.metaTokens, o = r.visitor || c, i = r.dots, a = r.indexes, u = (r.Blob || typeof Blob < "u" && Blob) && O.isSpecCompliantForm(e);
16191
16191
  if (!O.isFunction(o))
16192
16192
  throw new TypeError("visitor must be a function");
16193
- function l(m) {
16194
- if (m === null) return "";
16195
- if (O.isDate(m))
16196
- return m.toISOString();
16197
- if (O.isBoolean(m))
16198
- return m.toString();
16199
- if (!u && O.isBlob(m))
16193
+ function l(b) {
16194
+ if (b === null) return "";
16195
+ if (O.isDate(b))
16196
+ return b.toISOString();
16197
+ if (O.isBoolean(b))
16198
+ return b.toString();
16199
+ if (!u && O.isBlob(b))
16200
16200
  throw new W("Blob is not supported. Use a Buffer instead.");
16201
- return O.isArrayBuffer(m) || O.isTypedArray(m) ? u && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
16201
+ return O.isArrayBuffer(b) || O.isTypedArray(b) ? u && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b;
16202
16202
  }
16203
- function c(m, g, b) {
16204
- let y = m;
16205
- if (O.isReactNative(e) && O.isReactNativeBlob(m))
16206
- return e.append(Ea(b, g, i), l(m)), !1;
16207
- if (m && !b && typeof m == "object") {
16203
+ function c(b, g, m) {
16204
+ let y = b;
16205
+ if (O.isReactNative(e) && O.isReactNativeBlob(b))
16206
+ return e.append(Ea(m, g, i), l(b)), !1;
16207
+ if (b && !m && typeof b == "object") {
16208
16208
  if (O.endsWith(g, "{}"))
16209
- g = n ? g : g.slice(0, -2), m = JSON.stringify(m);
16210
- else if (O.isArray(m) && hC(m) || (O.isFileList(m) || O.endsWith(g, "[]")) && (y = O.toArray(m)))
16209
+ g = n ? g : g.slice(0, -2), b = JSON.stringify(b);
16210
+ else if (O.isArray(b) && hC(b) || (O.isFileList(b) || O.endsWith(g, "[]")) && (y = O.toArray(b)))
16211
16211
  return g = Gp(g), y.forEach(function(w, S) {
16212
16212
  !(O.isUndefined(w) || w === null) && e.append(
16213
16213
  // eslint-disable-next-line no-nested-ternary
@@ -16216,18 +16216,18 @@ function Ji(t, e, r) {
16216
16216
  );
16217
16217
  }), !1;
16218
16218
  }
16219
- return As(m) ? !0 : (e.append(Ea(b, g, i), l(m)), !1);
16219
+ return As(b) ? !0 : (e.append(Ea(m, g, i), l(b)), !1);
16220
16220
  }
16221
16221
  const p = [], f = Object.assign(mC, {
16222
16222
  defaultVisitor: c,
16223
16223
  convertValue: l,
16224
16224
  isVisitable: As
16225
16225
  });
16226
- function d(m, g) {
16227
- if (!O.isUndefined(m)) {
16228
- if (p.indexOf(m) !== -1)
16226
+ function d(b, g) {
16227
+ if (!O.isUndefined(b)) {
16228
+ if (p.indexOf(b) !== -1)
16229
16229
  throw Error("Circular reference detected in " + g.join("."));
16230
- p.push(m), O.forEach(m, function(y, x) {
16230
+ p.push(b), O.forEach(b, function(y, x) {
16231
16231
  (!(O.isUndefined(y) || y === null) && o.call(e, y, O.isString(x) ? x.trim() : x, g, f)) === !0 && d(y, g ? g.concat(x) : [x]);
16232
16232
  }), p.pop();
16233
16233
  }
@@ -16924,24 +16924,24 @@ const eh = (t) => {
16924
16924
  const o = eh(t);
16925
16925
  let i = o.data;
16926
16926
  const a = $e.from(o.headers).normalize();
16927
- let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, f, d, m;
16927
+ let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, f, d, b;
16928
16928
  function g() {
16929
- d && d(), m && m(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
16929
+ d && d(), b && b(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
16930
16930
  }
16931
- let b = new XMLHttpRequest();
16932
- b.open(o.method.toUpperCase(), o.url, !0), b.timeout = o.timeout;
16931
+ let m = new XMLHttpRequest();
16932
+ m.open(o.method.toUpperCase(), o.url, !0), m.timeout = o.timeout;
16933
16933
  function y() {
16934
- if (!b)
16934
+ if (!m)
16935
16935
  return;
16936
16936
  const w = $e.from(
16937
- "getAllResponseHeaders" in b && b.getAllResponseHeaders()
16937
+ "getAllResponseHeaders" in m && m.getAllResponseHeaders()
16938
16938
  ), N = {
16939
- data: !s || s === "text" || s === "json" ? b.responseText : b.response,
16940
- status: b.status,
16941
- statusText: b.statusText,
16939
+ data: !s || s === "text" || s === "json" ? m.responseText : m.response,
16940
+ status: m.status,
16941
+ statusText: m.statusText,
16942
16942
  headers: w,
16943
16943
  config: t,
16944
- request: b
16944
+ request: m
16945
16945
  };
16946
16946
  Zp(
16947
16947
  function(k) {
@@ -16951,16 +16951,16 @@ const eh = (t) => {
16951
16951
  n(k), g();
16952
16952
  },
16953
16953
  N
16954
- ), b = null;
16955
- }
16956
- "onloadend" in b ? b.onloadend = y : b.onreadystatechange = function() {
16957
- !b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(y);
16958
- }, b.onabort = function() {
16959
- b && (n(new W("Request aborted", W.ECONNABORTED, t, b)), b = null);
16960
- }, b.onerror = function(S) {
16961
- const N = S && S.message ? S.message : "Network Error", R = new W(N, W.ERR_NETWORK, t, b);
16962
- R.event = S || null, n(R), b = null;
16963
- }, b.ontimeout = function() {
16954
+ ), m = null;
16955
+ }
16956
+ "onloadend" in m ? m.onloadend = y : m.onreadystatechange = function() {
16957
+ !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(y);
16958
+ }, m.onabort = function() {
16959
+ m && (n(new W("Request aborted", W.ECONNABORTED, t, m)), m = null);
16960
+ }, m.onerror = function(S) {
16961
+ const N = S && S.message ? S.message : "Network Error", R = new W(N, W.ERR_NETWORK, t, m);
16962
+ R.event = S || null, n(R), m = null;
16963
+ }, m.ontimeout = function() {
16964
16964
  let S = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
16965
16965
  const N = o.transitional || Ku;
16966
16966
  o.timeoutErrorMessage && (S = o.timeoutErrorMessage), n(
@@ -16968,13 +16968,13 @@ const eh = (t) => {
16968
16968
  S,
16969
16969
  N.clarifyTimeoutError ? W.ETIMEDOUT : W.ECONNABORTED,
16970
16970
  t,
16971
- b
16971
+ m
16972
16972
  )
16973
- ), b = null;
16974
- }, i === void 0 && a.setContentType(null), "setRequestHeader" in b && O.forEach(a.toJSON(), function(S, N) {
16975
- b.setRequestHeader(N, S);
16976
- }), O.isUndefined(o.withCredentials) || (b.withCredentials = !!o.withCredentials), s && s !== "json" && (b.responseType = o.responseType), l && ([f, m] = di(l, !0), b.addEventListener("progress", f)), u && b.upload && ([p, d] = di(u), b.upload.addEventListener("progress", p), b.upload.addEventListener("loadend", d)), (o.cancelToken || o.signal) && (c = (w) => {
16977
- b && (n(!w || w.type ? new oo(null, t, b) : w), b.abort(), b = null);
16973
+ ), m = null;
16974
+ }, i === void 0 && a.setContentType(null), "setRequestHeader" in m && O.forEach(a.toJSON(), function(S, N) {
16975
+ m.setRequestHeader(N, S);
16976
+ }), O.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), s && s !== "json" && (m.responseType = o.responseType), l && ([f, b] = di(l, !0), m.addEventListener("progress", f)), u && m.upload && ([p, d] = di(u), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", d)), (o.cancelToken || o.signal) && (c = (w) => {
16977
+ m && (n(!w || w.type ? new oo(null, t, m) : w), m.abort(), m = null);
16978
16978
  }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
16979
16979
  const x = LC(o.url);
16980
16980
  if (x && Re.protocols.indexOf(x) === -1) {
@@ -16987,7 +16987,7 @@ const eh = (t) => {
16987
16987
  );
16988
16988
  return;
16989
16989
  }
16990
- b.send(i || null);
16990
+ m.send(i || null);
16991
16991
  });
16992
16992
  }, UC = (t, e) => {
16993
16993
  const { length: r } = t = t ? t.filter(Boolean) : [];
@@ -17094,53 +17094,53 @@ const eh = (t) => {
17094
17094
  const { fetch: e, Request: r, Response: n } = t, o = e ? No(e) : typeof fetch == "function", i = No(r), a = No(n);
17095
17095
  if (!o)
17096
17096
  return !1;
17097
- const s = o && No(gd), u = o && (typeof yd == "function" ? /* @__PURE__ */ ((m) => (g) => m.encode(g))(new yd()) : async (m) => new Uint8Array(await new r(m).arrayBuffer())), l = i && s && vd(() => {
17098
- let m = !1;
17097
+ const s = o && No(gd), u = o && (typeof yd == "function" ? /* @__PURE__ */ ((b) => (g) => b.encode(g))(new yd()) : async (b) => new Uint8Array(await new r(b).arrayBuffer())), l = i && s && vd(() => {
17098
+ let b = !1;
17099
17099
  const g = new r(Re.origin, {
17100
17100
  body: new gd(),
17101
17101
  method: "POST",
17102
17102
  get duplex() {
17103
- return m = !0, "half";
17103
+ return b = !0, "half";
17104
17104
  }
17105
17105
  }).headers.has("Content-Type");
17106
- return m && !g;
17106
+ return b && !g;
17107
17107
  }), c = a && s && vd(() => O.isReadableStream(new n("").body)), p = {
17108
- stream: c && ((m) => m.body)
17108
+ stream: c && ((b) => b.body)
17109
17109
  };
17110
- o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((m) => {
17111
- !p[m] && (p[m] = (g, b) => {
17112
- let y = g && g[m];
17110
+ o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((b) => {
17111
+ !p[b] && (p[b] = (g, m) => {
17112
+ let y = g && g[b];
17113
17113
  if (y)
17114
17114
  return y.call(g);
17115
17115
  throw new W(
17116
- `Response type '${m}' is not supported`,
17116
+ `Response type '${b}' is not supported`,
17117
17117
  W.ERR_NOT_SUPPORT,
17118
- b
17118
+ m
17119
17119
  );
17120
17120
  });
17121
17121
  });
17122
- const f = async (m) => {
17123
- if (m == null)
17122
+ const f = async (b) => {
17123
+ if (b == null)
17124
17124
  return 0;
17125
- if (O.isBlob(m))
17126
- return m.size;
17127
- if (O.isSpecCompliantForm(m))
17125
+ if (O.isBlob(b))
17126
+ return b.size;
17127
+ if (O.isSpecCompliantForm(b))
17128
17128
  return (await new r(Re.origin, {
17129
17129
  method: "POST",
17130
- body: m
17130
+ body: b
17131
17131
  }).arrayBuffer()).byteLength;
17132
- if (O.isArrayBufferView(m) || O.isArrayBuffer(m))
17133
- return m.byteLength;
17134
- if (O.isURLSearchParams(m) && (m = m + ""), O.isString(m))
17135
- return (await u(m)).byteLength;
17136
- }, d = async (m, g) => {
17137
- const b = O.toFiniteNumber(m.getContentLength());
17138
- return b ?? f(g);
17132
+ if (O.isArrayBufferView(b) || O.isArrayBuffer(b))
17133
+ return b.byteLength;
17134
+ if (O.isURLSearchParams(b) && (b = b + ""), O.isString(b))
17135
+ return (await u(b)).byteLength;
17136
+ }, d = async (b, g) => {
17137
+ const m = O.toFiniteNumber(b.getContentLength());
17138
+ return m ?? f(g);
17139
17139
  };
17140
- return async (m) => {
17140
+ return async (b) => {
17141
17141
  let {
17142
17142
  url: g,
17143
- method: b,
17143
+ method: m,
17144
17144
  data: y,
17145
17145
  signal: x,
17146
17146
  cancelToken: w,
@@ -17148,27 +17148,27 @@ const eh = (t) => {
17148
17148
  onDownloadProgress: N,
17149
17149
  onUploadProgress: R,
17150
17150
  responseType: k,
17151
- headers: L,
17152
- withCredentials: $ = "same-origin",
17151
+ headers: $,
17152
+ withCredentials: j = "same-origin",
17153
17153
  fetchOptions: F
17154
- } = eh(m), E = e || fetch;
17154
+ } = eh(b), E = e || fetch;
17155
17155
  k = k ? (k + "").toLowerCase() : "text";
17156
17156
  let C = UC(
17157
17157
  [x, w && w.toAbortSignal()],
17158
17158
  S
17159
17159
  ), D = null;
17160
- const j = C && C.unsubscribe && (() => {
17160
+ const L = C && C.unsubscribe && (() => {
17161
17161
  C.unsubscribe();
17162
17162
  });
17163
17163
  let T;
17164
17164
  try {
17165
- if (R && l && b !== "get" && b !== "head" && (T = await d(L, y)) !== 0) {
17165
+ if (R && l && m !== "get" && m !== "head" && (T = await d($, y)) !== 0) {
17166
17166
  let ne = new r(g, {
17167
17167
  method: "POST",
17168
17168
  body: y,
17169
17169
  duplex: "half"
17170
17170
  }), Q;
17171
- if (O.isFormData(y) && (Q = ne.headers.get("content-type")) && L.setContentType(Q), ne.body) {
17171
+ if (O.isFormData(y) && (Q = ne.headers.get("content-type")) && $.setContentType(Q), ne.body) {
17172
17172
  const [q, H] = fd(
17173
17173
  T,
17174
17174
  di(pd(R))
@@ -17176,20 +17176,20 @@ const eh = (t) => {
17176
17176
  y = md(ne.body, bd, q, H);
17177
17177
  }
17178
17178
  }
17179
- O.isString($) || ($ = $ ? "include" : "omit");
17179
+ O.isString(j) || (j = j ? "include" : "omit");
17180
17180
  const A = i && "credentials" in r.prototype, _ = {
17181
17181
  ...F,
17182
17182
  signal: C,
17183
- method: b.toUpperCase(),
17184
- headers: L.normalize().toJSON(),
17183
+ method: m.toUpperCase(),
17184
+ headers: $.normalize().toJSON(),
17185
17185
  body: y,
17186
17186
  duplex: "half",
17187
- credentials: A ? $ : void 0
17187
+ credentials: A ? j : void 0
17188
17188
  };
17189
17189
  D = i && new r(g, _);
17190
17190
  let M = await (i ? E(D, F) : E(g, _));
17191
17191
  const B = c && (k === "stream" || k === "response");
17192
- if (c && (N || B && j)) {
17192
+ if (c && (N || B && L)) {
17193
17193
  const ne = {};
17194
17194
  ["status", "statusText", "headers"].forEach((be) => {
17195
17195
  ne[be] = M[be];
@@ -17200,7 +17200,7 @@ const eh = (t) => {
17200
17200
  ) || [];
17201
17201
  M = new n(
17202
17202
  md(M.body, bd, q, () => {
17203
- H && H(), j && j();
17203
+ H && H(), L && L();
17204
17204
  }),
17205
17205
  ne
17206
17206
  );
@@ -17208,31 +17208,31 @@ const eh = (t) => {
17208
17208
  k = k || "text";
17209
17209
  let U = await p[O.findKey(p, k) || "text"](
17210
17210
  M,
17211
- m
17211
+ b
17212
17212
  );
17213
- return !B && j && j(), await new Promise((ne, Q) => {
17213
+ return !B && L && L(), await new Promise((ne, Q) => {
17214
17214
  Zp(ne, Q, {
17215
17215
  data: U,
17216
17216
  headers: $e.from(M.headers),
17217
17217
  status: M.status,
17218
17218
  statusText: M.statusText,
17219
- config: m,
17219
+ config: b,
17220
17220
  request: D
17221
17221
  });
17222
17222
  });
17223
17223
  } catch (A) {
17224
- throw j && j(), A && A.name === "TypeError" && /Load failed|fetch/i.test(A.message) ? Object.assign(
17224
+ throw L && L(), A && A.name === "TypeError" && /Load failed|fetch/i.test(A.message) ? Object.assign(
17225
17225
  new W(
17226
17226
  "Network Error",
17227
17227
  W.ERR_NETWORK,
17228
- m,
17228
+ b,
17229
17229
  D,
17230
17230
  A && A.response
17231
17231
  ),
17232
17232
  {
17233
17233
  cause: A.cause || A
17234
17234
  }
17235
- ) : W.from(A, A && A.code, m, D, A && A.response);
17235
+ ) : W.from(A, A && A.code, b, D, A && A.response);
17236
17236
  }
17237
17237
  };
17238
17238
  }, KC = /* @__PURE__ */ new Map(), th = (t) => {
@@ -17433,8 +17433,8 @@ let ur = class {
17433
17433
  !0
17434
17434
  ), r.method = (r.method || this.defaults.method || "get").toLowerCase();
17435
17435
  let a = i && O.merge(i.common, i[r.method]);
17436
- i && O.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (m) => {
17437
- delete i[m];
17436
+ i && O.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (b) => {
17437
+ delete i[b];
17438
17438
  }), r.headers = $e.concat(a, i);
17439
17439
  const s = [];
17440
17440
  let u = !0;
@@ -17442,8 +17442,8 @@ let ur = class {
17442
17442
  if (typeof g.runWhen == "function" && g.runWhen(r) === !1)
17443
17443
  return;
17444
17444
  u = u && g.synchronous;
17445
- const b = r.transitional || Ku;
17446
- b && b.legacyInterceptorReqResOrdering ? s.unshift(g.fulfilled, g.rejected) : s.push(g.fulfilled, g.rejected);
17445
+ const m = r.transitional || Ku;
17446
+ m && m.legacyInterceptorReqResOrdering ? s.unshift(g.fulfilled, g.rejected) : s.push(g.fulfilled, g.rejected);
17447
17447
  });
17448
17448
  const l = [];
17449
17449
  this.interceptors.response.forEach(function(g) {
@@ -17451,26 +17451,26 @@ let ur = class {
17451
17451
  });
17452
17452
  let c, p = 0, f;
17453
17453
  if (!u) {
17454
- const m = [wd.bind(this), void 0];
17455
- for (m.unshift(...s), m.push(...l), f = m.length, c = Promise.resolve(r); p < f; )
17456
- c = c.then(m[p++], m[p++]);
17454
+ const b = [wd.bind(this), void 0];
17455
+ for (b.unshift(...s), b.push(...l), f = b.length, c = Promise.resolve(r); p < f; )
17456
+ c = c.then(b[p++], b[p++]);
17457
17457
  return c;
17458
17458
  }
17459
17459
  f = s.length;
17460
17460
  let d = r;
17461
17461
  for (; p < f; ) {
17462
- const m = s[p++], g = s[p++];
17462
+ const b = s[p++], g = s[p++];
17463
17463
  try {
17464
- d = m(d);
17465
- } catch (b) {
17466
- g.call(this, b);
17464
+ d = b(d);
17465
+ } catch (m) {
17466
+ g.call(this, m);
17467
17467
  break;
17468
17468
  }
17469
17469
  }
17470
17470
  try {
17471
17471
  c = wd.call(this, d);
17472
- } catch (m) {
17473
- return Promise.reject(m);
17472
+ } catch (b) {
17473
+ return Promise.reject(b);
17474
17474
  }
17475
17475
  for (p = 0, f = l.length; p < f; )
17476
17476
  c = c.then(l[p++], l[p++]);
@@ -17791,138 +17791,139 @@ const sT = (t, e) => {
17791
17791
  }, uT = ({
17792
17792
  locationId: t,
17793
17793
  bibId: e,
17794
- editorEnabled: r,
17795
- videoTitle: n
17794
+ eventId: r,
17795
+ editorEnabled: n,
17796
+ videoTitle: o
17796
17797
  }) => {
17797
- const o = I.useRef(null), { data: i, isLoading: a, error: s } = sm({
17798
+ const i = I.useRef(null), { data: a, isLoading: s, error: u } = sm({
17798
17799
  queryKey: ["video", t, e],
17799
17800
  queryFn: () => g8(t, e),
17800
17801
  enabled: !!t
17801
- }), { postVideoAnalytics: u } = iT();
17802
- let l = 0, c = Date.now();
17802
+ }), { postVideoAnalytics: l } = iT();
17803
+ let c = 0, p = Date.now();
17803
17804
  if (ke(() => {
17804
- const d = (L) => {
17805
- L.target.nodeName === "VIDEO" && L.preventDefault();
17805
+ const b = (j) => {
17806
+ j.target.nodeName === "VIDEO" && j.preventDefault();
17806
17807
  };
17807
- document.addEventListener("contextmenu", d);
17808
- const m = o.current;
17809
- if (!m || !i) return;
17810
- const g = m.dataset.videoId, b = m.dataset.title;
17811
- if (!g) return;
17812
- let y = /* @__PURE__ */ new Set();
17813
- m.addEventListener("timeupdate", () => {
17814
- var C, D;
17815
- const L = Math.floor(m.currentTime / m.duration * 100), $ = Math.floor(L / 10) * 10;
17816
- !y.has($) && $ % 10 === 0 && $ <= 100 && (y.add($), localStorage.getItem(xn(g)) || ((C = window.gtag) == null || C.call(window, "event", "video_progress", {
17817
- video_id: g,
17818
- progress_percent: $,
17819
- video_title: m.dataset.title || "",
17808
+ document.addEventListener("contextmenu", b);
17809
+ const g = i.current;
17810
+ if (!g || !a) return;
17811
+ const m = g.dataset.videoId, y = g.dataset.title;
17812
+ if (!m) return;
17813
+ let x = /* @__PURE__ */ new Set();
17814
+ g.addEventListener("timeupdate", () => {
17815
+ var D, L;
17816
+ const j = Math.floor(g.currentTime / g.duration * 100), F = Math.floor(j / 10) * 10;
17817
+ !x.has(F) && F % 10 === 0 && F <= 100 && (x.add(F), localStorage.getItem(xn(m)) || ((D = window.gtag) == null || D.call(window, "event", "video_progress", {
17818
+ video_id: m,
17819
+ progress_percent: F,
17820
+ video_title: g.dataset.title || "",
17820
17821
  // optional
17821
- video_duration: m.duration
17822
- }), u({
17822
+ video_duration: g.duration
17823
+ }), l({
17823
17824
  type: "milestone",
17824
17825
  bibId: e,
17825
- eventId,
17826
+ eventId: r,
17826
17827
  locationId: t,
17827
- data: { percent: $ }
17828
+ data: { percent: F }
17828
17829
  })));
17829
- const F = Date.now(), E = (F - c) / 1e3;
17830
- c = F, E < 1.5 && (l += E), l >= 5 && (localStorage.getItem(xn(g)) || ((D = window.gtag) == null || D.call(window, "event", "video_watch_time", {
17831
- video_id: g,
17832
- watched_seconds: Math.round(l),
17833
- video_title: m.dataset.title || "",
17834
- video_duration: m.duration
17835
- }), u({
17830
+ const E = Date.now(), C = (E - p) / 1e3;
17831
+ p = E, C < 1.5 && (c += C), c >= 5 && (localStorage.getItem(xn(m)) || ((L = window.gtag) == null || L.call(window, "event", "video_watch_time", {
17832
+ video_id: m,
17833
+ watched_seconds: Math.round(c),
17834
+ video_title: g.dataset.title || "",
17835
+ video_duration: g.duration
17836
+ }), l({
17836
17837
  bibId: e,
17837
- eventId,
17838
+ eventId: r,
17838
17839
  locationId: t,
17839
17840
  type: "watch_time",
17840
- data: { seconds: Math.round(l) }
17841
- })), l = 0);
17841
+ data: { seconds: Math.round(c) }
17842
+ })), c = 0);
17842
17843
  });
17843
- const x = () => {
17844
- var L;
17845
- (L = window.gtag) == null || L.call(window, "event", "video_start", {
17846
- video_id: g,
17847
- video_title: b,
17848
- video_duration: m.duration
17849
- }), u({ bibId: e, locationId: t, eventId, type: "start" }), localStorage.getItem(xn(g)) || (localStorage.setItem(xn(g), "true"), u({ bibId: e, eventId, locationId: t, type: "unique" }));
17850
- }, w = () => {
17851
- var L;
17852
- (L = window.gtag) == null || L.call(window, "event", "video_pause", {
17853
- video_id: g,
17854
- video_title: b,
17855
- video_duration: m.duration,
17856
- video_currentTime: m.currentTime
17857
- });
17844
+ const w = () => {
17845
+ var j;
17846
+ (j = window.gtag) == null || j.call(window, "event", "video_start", {
17847
+ video_id: m,
17848
+ video_title: y,
17849
+ video_duration: g.duration
17850
+ }), l({ bibId: e, locationId: t, eventId: r, type: "start" }), localStorage.getItem(xn(m)) || (localStorage.setItem(xn(m), "true"), l({ bibId: e, eventId: r, locationId: t, type: "unique" }));
17858
17851
  }, S = () => {
17859
- m.currentTime >= MAX_TIME && (m.pause(), m.currentTime = MAX_TIME - 1, setOpen(!0));
17852
+ var j;
17853
+ (j = window.gtag) == null || j.call(window, "event", "video_pause", {
17854
+ video_id: m,
17855
+ video_title: y,
17856
+ video_duration: g.duration,
17857
+ video_currentTime: g.currentTime
17858
+ });
17860
17859
  }, N = () => {
17861
- m.currentTime > MAX_TIME && (m.pause(), m.currentTime = MAX_TIME - 1, setOpen(!0));
17860
+ g.currentTime >= MAX_TIME && (g.pause(), g.currentTime = MAX_TIME - 1, setOpen(!0));
17862
17861
  }, R = () => {
17863
- var L;
17864
- m.currentTime = 0, setOpen(!0), (L = window.gtag) == null || L.call(window, "event", "video_complete", {
17865
- video_id: g,
17866
- video_title: b,
17867
- video_duration: m.duration,
17868
- video_currentTime: m.currentTime
17862
+ g.currentTime > MAX_TIME && (g.pause(), g.currentTime = MAX_TIME - 1, setOpen(!0));
17863
+ }, k = () => {
17864
+ var j;
17865
+ g.currentTime = 0, setOpen(!0), (j = window.gtag) == null || j.call(window, "event", "video_complete", {
17866
+ video_id: m,
17867
+ video_title: y,
17868
+ video_duration: g.duration,
17869
+ video_currentTime: g.currentTime
17869
17870
  });
17870
- }, k = (L) => {
17871
- ["ArrowRight", "ArrowLeft"].includes(L.code) && L.preventDefault();
17871
+ }, $ = (j) => {
17872
+ ["ArrowRight", "ArrowLeft"].includes(j.code) && j.preventDefault();
17872
17873
  };
17873
- return m.addEventListener("play", x), m.addEventListener("pause", w), m.addEventListener("timeupdate", S), m.addEventListener("seeking", N), m.addEventListener("ended", R), document.addEventListener("keydown", k), () => {
17874
- m.removeEventListener("play", x), m.removeEventListener("pause", w), m.removeEventListener("timeupdate", S), m.removeEventListener("seeking", N), m.removeEventListener("ended", R), document.removeEventListener("keydown", k), document.removeEventListener("contextmenu", d);
17874
+ return g.addEventListener("play", w), g.addEventListener("pause", S), g.addEventListener("timeupdate", N), g.addEventListener("seeking", R), g.addEventListener("ended", k), document.addEventListener("keydown", $), () => {
17875
+ g.removeEventListener("play", w), g.removeEventListener("pause", S), g.removeEventListener("timeupdate", N), g.removeEventListener("seeking", R), g.removeEventListener("ended", k), document.removeEventListener("keydown", $), document.removeEventListener("contextmenu", b);
17875
17876
  };
17876
- }, [o.current, i]), a)
17877
+ }, [i.current, a]), s)
17877
17878
  return /* @__PURE__ */ h("div", { className: "flex items-center justify-center h-48 bg-muted rounded-lg", children: /* @__PURE__ */ h("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-muted-foreground border-t-transparent" }) });
17878
- if (s || !i)
17879
- return r ? /* @__PURE__ */ P("div", { className: "flex flex-col items-center gap-1 justify-center py-6 px-4 bg-muted/50 rounded-lg border border-dashed border-muted-foreground/30", children: [
17879
+ if (u || !a)
17880
+ return n ? /* @__PURE__ */ P("div", { className: "flex flex-col items-center gap-1 justify-center py-6 px-4 bg-muted/50 rounded-lg border border-dashed border-muted-foreground/30", children: [
17880
17881
  /* @__PURE__ */ P("div", { className: "flex items-center gap-2", children: [
17881
17882
  /* @__PURE__ */ h(Gm, { className: "h-5 w-5 text-muted-foreground" }),
17882
17883
  /* @__PURE__ */ h("p", { className: "text-muted-foreground text-sm font-medium", children: "Video not found (404)" })
17883
17884
  ] }),
17884
17885
  /* @__PURE__ */ h("p", { className: "text-muted-foreground/70 text-xs", children: "This will be hidden on the live page" })
17885
17886
  ] }) : null;
17886
- const { videoFromIrewind: p } = i, f = async () => {
17887
- if (!r)
17887
+ const { videoFromIrewind: f } = a, d = async () => {
17888
+ if (!n)
17888
17889
  try {
17889
- const d = o.current;
17890
- if (!d) return;
17891
- const m = d.dataset.videoId || "";
17892
- localStorage.getItem(xn(m)) || await u({
17890
+ const b = i.current;
17891
+ if (!b) return;
17892
+ const g = b.dataset.videoId || "";
17893
+ localStorage.getItem(xn(g)) || await l({
17893
17894
  bibId: e,
17894
- eventId,
17895
+ eventId: r,
17895
17896
  locationId: t,
17896
17897
  type: "download"
17897
17898
  });
17898
- const g = document.createElement("a");
17899
- g.href = p.mp4_hr_url, g.download = `${p.name || e}-video`, g.style.display = "none", document.body.appendChild(g), g.click(), document.body.removeChild(g);
17900
- } catch (d) {
17901
- console.error("Download failed:", d);
17899
+ const m = document.createElement("a");
17900
+ m.href = f.mp4_hr_url, m.download = `${f.name || e}-video`, m.style.display = "none", document.body.appendChild(m), m.click(), document.body.removeChild(m);
17901
+ } catch (b) {
17902
+ console.error("Download failed:", b);
17902
17903
  }
17903
17904
  };
17904
17905
  return /* @__PURE__ */ h(cn, { children: /* @__PURE__ */ h(Gn, { children: /* @__PURE__ */ h("div", { className: "w-full", children: /* @__PURE__ */ P("div", { className: "flex flex-col items-center", children: [
17905
- /* @__PURE__ */ h("p", { className: "text-sm text-muted-foreground mb-1", children: n }),
17906
+ /* @__PURE__ */ h("p", { className: "text-sm text-muted-foreground mb-1", children: o }),
17906
17907
  /* @__PURE__ */ P("h3", { className: "text-lg font-semibold text-foreground mb-3", children: [
17907
- p.name,
17908
+ f.name,
17908
17909
  " (",
17909
- p.start_no,
17910
+ f.start_no,
17910
17911
  ")"
17911
17912
  ] }),
17912
17913
  /* @__PURE__ */ P(
17913
17914
  "video",
17914
17915
  {
17915
17916
  "data-video-id": `${t}-${e}`,
17916
- "data-title": n,
17917
- ref: o,
17917
+ "data-title": o,
17918
+ ref: i,
17918
17919
  className: "irewind_video_player",
17919
17920
  controls: !0,
17920
17921
  preload: "auto",
17921
- poster: i.videoFromIrewind.thumbnail_url,
17922
+ poster: a.videoFromIrewind.thumbnail_url,
17922
17923
  controlsList: "nodownload",
17923
17924
  style: { width: "100%", maxWidth: "600px" },
17924
17925
  children: [
17925
- /* @__PURE__ */ h("source", { src: p.mp4_hr_url, type: "video/mp4" }),
17926
+ /* @__PURE__ */ h("source", { src: f.mp4_hr_url, type: "video/mp4" }),
17926
17927
  "Your browser does not support HTML5 video."
17927
17928
  ]
17928
17929
  }
@@ -17930,8 +17931,8 @@ const sT = (t, e) => {
17930
17931
  /* @__PURE__ */ h(
17931
17932
  C8,
17932
17933
  {
17933
- onDownload: f,
17934
- disabled: r
17934
+ onDownload: d,
17935
+ disabled: n
17935
17936
  }
17936
17937
  )
17937
17938
  ] }) }) }) });
@@ -17945,18 +17946,18 @@ const sT = (t, e) => {
17945
17946
  const i = _e(), a = mi();
17946
17947
  let s, u, l;
17947
17948
  try {
17948
- const { connectors: b, events: y } = ue((x) => ({
17949
+ const { connectors: m, events: y } = ue((x) => ({
17949
17950
  events: x.events
17950
17951
  }));
17951
- s = b.connect, u = b.drag, l = y.selected;
17952
+ s = m.connect, u = m.drag, l = y.selected;
17952
17953
  } catch {
17953
17954
  }
17954
17955
  let c = !1;
17955
17956
  try {
17956
- let { options: b } = vt((y) => ({
17957
+ let { options: m } = vt((y) => ({
17957
17958
  options: y.options
17958
17959
  }));
17959
- c = b.enabled;
17960
+ c = m.enabled;
17960
17961
  } catch {
17961
17962
  }
17962
17963
  const p = sT(t, i), f = {
@@ -17974,23 +17975,27 @@ const sT = (t, e) => {
17974
17975
  background: r,
17975
17976
  borderRadius: `${n}px`,
17976
17977
  boxShadow: f[o] || "none"
17977
- }, m = (a == null ? void 0 : a.videos) || [], g = m.length > 0;
17978
+ }, b = (a == null ? void 0 : a.videos) || [], g = b.length > 0;
17978
17979
  return /* @__PURE__ */ h(
17979
17980
  "div",
17980
17981
  {
17981
- ref: (b) => b && s && u && s(u(b)),
17982
+ ref: (m) => m && s && u && s(u(m)),
17982
17983
  style: d,
17983
17984
  className: `transition-all ${l ? "ring-2 ring-primary ring-offset-2" : ""}`,
17984
- children: g ? /* @__PURE__ */ h("div", { className: "space-y-6", children: m.map((b) => /* @__PURE__ */ h(
17985
- uT,
17986
- {
17987
- locationId: b.locationId,
17988
- bibId: a == null ? void 0 : a.bibId,
17989
- editorEnabled: c,
17990
- videoTitle: b.name || b.locationId
17991
- },
17992
- b.locationId
17993
- )) }) : /* @__PURE__ */ P("div", { className: "flex flex-col items-center justify-center h-48 bg-muted rounded-lg border-2 border-dashed border-muted-foreground/30", children: [
17985
+ children: g ? /* @__PURE__ */ h("div", { className: "space-y-6", children: b.map((m) => {
17986
+ var y, x;
17987
+ return /* @__PURE__ */ h(
17988
+ uT,
17989
+ {
17990
+ eventId: ((y = a == null ? void 0 : a.event) == null ? void 0 : y.id) || ((x = a == null ? void 0 : a.event) == null ? void 0 : x._id),
17991
+ locationId: m.locationId,
17992
+ bibId: a == null ? void 0 : a.bibId,
17993
+ editorEnabled: c,
17994
+ videoTitle: m.name || m.locationId
17995
+ },
17996
+ m.locationId
17997
+ );
17998
+ }) }) : /* @__PURE__ */ P("div", { className: "flex flex-col items-center justify-center h-48 bg-muted rounded-lg border-2 border-dashed border-muted-foreground/30", children: [
17994
17999
  /* @__PURE__ */ h(Hd, { className: "h-10 w-10 text-muted-foreground mb-2" }),
17995
18000
  /* @__PURE__ */ P("p", { className: "text-muted-foreground text-sm text-center", children: [
17996
18001
  "No video locations available.",
@@ -18104,8 +18109,8 @@ const ah = ({
18104
18109
  const a = _e();
18105
18110
  let s, u, l;
18106
18111
  try {
18107
- const { connectors: f, events: d } = ue((m) => ({
18108
- events: m.events
18112
+ const { connectors: f, events: d } = ue((b) => ({
18113
+ events: b.events
18109
18114
  }));
18110
18115
  s = f.connect, u = f.drag, l = d.selected;
18111
18116
  } catch {
@@ -18221,24 +18226,24 @@ const el = ({
18221
18226
  opacity: c = 100
18222
18227
  }) => {
18223
18228
  const p = _e();
18224
- let f, d, m;
18229
+ let f, d, b;
18225
18230
  try {
18226
- const { connectors: b, events: y } = ue((x) => ({
18231
+ const { connectors: m, events: y } = ue((x) => ({
18227
18232
  events: x.events
18228
18233
  }));
18229
- f = b.connect, d = b.drag, m = y.selected;
18234
+ f = m.connect, d = m.drag, b = y.selected;
18230
18235
  } catch {
18231
18236
  }
18232
18237
  const g = typeof l[p] == "object" ? `${l[p].top}px ${l[p].right}px ${l[p].bottom}px ${l[p].left}px` : `${l[p]}px`;
18233
18238
  return /* @__PURE__ */ h(
18234
18239
  "a",
18235
18240
  {
18236
- ref: (b) => b && f && d && f(d(b)),
18241
+ ref: (m) => m && f && d && f(d(m)),
18237
18242
  href: e,
18238
18243
  target: r,
18239
18244
  rel: r === "_blank" ? "noopener noreferrer" : void 0,
18240
- onClick: (b) => b.preventDefault(),
18241
- className: `cursor-move inline-block transition-colors hover:opacity-80 ${m ? "ring-2 ring-primary ring-offset-2" : ""}`,
18245
+ onClick: (m) => m.preventDefault(),
18246
+ className: `cursor-move inline-block transition-colors hover:opacity-80 ${b ? "ring-2 ring-primary ring-offset-2" : ""}`,
18242
18247
  style: {
18243
18248
  fontSize: `${n}px`,
18244
18249
  fontWeight: o,
@@ -18407,13 +18412,13 @@ const sh = ({
18407
18412
  const c = _e();
18408
18413
  let p, f, d;
18409
18414
  try {
18410
- const { connectors: g, events: b } = ue((y) => ({
18415
+ const { connectors: g, events: m } = ue((y) => ({
18411
18416
  events: y.events
18412
18417
  }));
18413
- p = g.connect, f = g.drag, d = b.selected;
18418
+ p = g.connect, f = g.drag, d = m.selected;
18414
18419
  } catch {
18415
18420
  }
18416
- const m = typeof s[c] == "object" ? `${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px` : `${s[c]}px`;
18421
+ const b = typeof s[c] == "object" ? `${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px` : `${s[c]}px`;
18417
18422
  return /* @__PURE__ */ h(
18418
18423
  "img",
18419
18424
  {
@@ -18427,7 +18432,7 @@ const sh = ({
18427
18432
  maxWidth: o === "none" ? "none" : `${o}px`,
18428
18433
  objectFit: i,
18429
18434
  borderRadius: `${a}px`,
18430
- margin: m,
18435
+ margin: b,
18431
18436
  opacity: u / 100,
18432
18437
  boxShadow: l === "none" ? "none" : l,
18433
18438
  display: "block"
@@ -18677,17 +18682,17 @@ const lh = ({
18677
18682
  borderRadius: p = 8,
18678
18683
  borderWidth: f = 1,
18679
18684
  borderColor: d = "transparent",
18680
- borderStyle: m = "dashed",
18685
+ borderStyle: b = "dashed",
18681
18686
  boxShadow: g = "none",
18682
- children: b
18687
+ children: m
18683
18688
  }) => {
18684
18689
  _e();
18685
18690
  let y, x, w;
18686
18691
  try {
18687
- const { connectors: k, events: L } = ue(($) => ({
18688
- events: $.events
18692
+ const { connectors: k, events: $ } = ue((j) => ({
18693
+ events: j.events
18689
18694
  }));
18690
- y = k.connect, x = k.drag, w = L.selected;
18695
+ y = k.connect, x = k.drag, w = $.selected;
18691
18696
  } catch {
18692
18697
  }
18693
18698
  const S = typeof te(e) == "object" ? `${te(e).top}px ${te(e).right}px ${te(e).bottom}px ${te(e).left}px` : `${te(e)}px`, N = typeof te(r) == "object" ? `${te(r).top}px ${te(r).right}px ${te(r).bottom}px ${te(r).left}px` : `${te(r)}px`, R = [
@@ -18720,7 +18725,7 @@ const lh = ({
18720
18725
  borderRadius: `${p}px`,
18721
18726
  borderWidth: `${f}px`,
18722
18727
  borderColor: d,
18723
- borderStyle: m,
18728
+ borderStyle: b,
18724
18729
  boxShadow: g === "none" ? "none" : g
18725
18730
  },
18726
18731
  className: "bg-black",
@@ -18867,7 +18872,7 @@ var nl = "ScrollArea", [ch] = xr(nl), [gT, Ye] = ch(nl), dh = v.forwardRef(
18867
18872
  dir: o,
18868
18873
  scrollHideDelay: i = 600,
18869
18874
  ...a
18870
- } = t, [s, u] = v.useState(null), [l, c] = v.useState(null), [p, f] = v.useState(null), [d, m] = v.useState(null), [g, b] = v.useState(null), [y, x] = v.useState(0), [w, S] = v.useState(0), [N, R] = v.useState(!1), [k, L] = v.useState(!1), $ = Ae(e, (E) => u(E)), F = rl(o);
18875
+ } = t, [s, u] = v.useState(null), [l, c] = v.useState(null), [p, f] = v.useState(null), [d, b] = v.useState(null), [g, m] = v.useState(null), [y, x] = v.useState(0), [w, S] = v.useState(0), [N, R] = v.useState(!1), [k, $] = v.useState(!1), j = Ae(e, (E) => u(E)), F = rl(o);
18871
18876
  return /* @__PURE__ */ h(
18872
18877
  gT,
18873
18878
  {
@@ -18881,13 +18886,13 @@ var nl = "ScrollArea", [ch] = xr(nl), [gT, Ye] = ch(nl), dh = v.forwardRef(
18881
18886
  content: p,
18882
18887
  onContentChange: f,
18883
18888
  scrollbarX: d,
18884
- onScrollbarXChange: m,
18889
+ onScrollbarXChange: b,
18885
18890
  scrollbarXEnabled: N,
18886
18891
  onScrollbarXEnabledChange: R,
18887
18892
  scrollbarY: g,
18888
- onScrollbarYChange: b,
18893
+ onScrollbarYChange: m,
18889
18894
  scrollbarYEnabled: k,
18890
- onScrollbarYEnabledChange: L,
18895
+ onScrollbarYEnabledChange: $,
18891
18896
  onCornerWidthChange: x,
18892
18897
  onCornerHeightChange: S,
18893
18898
  children: /* @__PURE__ */ h(
@@ -18895,7 +18900,7 @@ var nl = "ScrollArea", [ch] = xr(nl), [gT, Ye] = ch(nl), dh = v.forwardRef(
18895
18900
  {
18896
18901
  dir: F,
18897
18902
  ...a,
18898
- ref: $,
18903
+ ref: j,
18899
18904
  style: {
18900
18905
  position: "relative",
18901
18906
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
@@ -19189,24 +19194,24 @@ var yT = v.forwardRef((t, e) => {
19189
19194
  onWheelScroll: c,
19190
19195
  onResize: p,
19191
19196
  ...f
19192
- } = t, d = Ye(St, r), [m, g] = v.useState(null), b = Ae(e, ($) => g($)), y = v.useRef(null), x = v.useRef(""), w = d.viewport, S = n.content - n.viewport, N = We(c), R = We(u), k = ea(p, 10);
19193
- function L($) {
19197
+ } = t, d = Ye(St, r), [b, g] = v.useState(null), m = Ae(e, (j) => g(j)), y = v.useRef(null), x = v.useRef(""), w = d.viewport, S = n.content - n.viewport, N = We(c), R = We(u), k = ea(p, 10);
19198
+ function $(j) {
19194
19199
  if (y.current) {
19195
- const F = $.clientX - y.current.left, E = $.clientY - y.current.top;
19200
+ const F = j.clientX - y.current.left, E = j.clientY - y.current.top;
19196
19201
  l({ x: F, y: E });
19197
19202
  }
19198
19203
  }
19199
19204
  return v.useEffect(() => {
19200
- const $ = (F) => {
19205
+ const j = (F) => {
19201
19206
  const E = F.target;
19202
- (m == null ? void 0 : m.contains(E)) && N(F, S);
19207
+ (b == null ? void 0 : b.contains(E)) && N(F, S);
19203
19208
  };
19204
- return document.addEventListener("wheel", $, { passive: !1 }), () => document.removeEventListener("wheel", $, { passive: !1 });
19205
- }, [w, m, S, N]), v.useEffect(R, [n, R]), Xr(m, k), Xr(d.content, k), /* @__PURE__ */ h(
19209
+ return document.addEventListener("wheel", j, { passive: !1 }), () => document.removeEventListener("wheel", j, { passive: !1 });
19210
+ }, [w, b, S, N]), v.useEffect(R, [n, R]), Xr(b, k), Xr(d.content, k), /* @__PURE__ */ h(
19206
19211
  ST,
19207
19212
  {
19208
19213
  scope: r,
19209
- scrollbar: m,
19214
+ scrollbar: b,
19210
19215
  hasThumb: o,
19211
19216
  onThumbChange: We(i),
19212
19217
  onThumbPointerUp: We(a),
@@ -19216,15 +19221,15 @@ var yT = v.forwardRef((t, e) => {
19216
19221
  we.div,
19217
19222
  {
19218
19223
  ...f,
19219
- ref: b,
19224
+ ref: m,
19220
19225
  style: { position: "absolute", ...f.style },
19221
- onPointerDown: pe(t.onPointerDown, ($) => {
19222
- $.button === 0 && ($.target.setPointerCapture($.pointerId), y.current = m.getBoundingClientRect(), x.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", d.viewport && (d.viewport.style.scrollBehavior = "auto"), L($));
19226
+ onPointerDown: pe(t.onPointerDown, (j) => {
19227
+ j.button === 0 && (j.target.setPointerCapture(j.pointerId), y.current = b.getBoundingClientRect(), x.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", d.viewport && (d.viewport.style.scrollBehavior = "auto"), $(j));
19223
19228
  }),
19224
- onPointerMove: pe(t.onPointerMove, L),
19225
- onPointerUp: pe(t.onPointerUp, ($) => {
19226
- const F = $.target;
19227
- F.hasPointerCapture($.pointerId) && F.releasePointerCapture($.pointerId), document.body.style.webkitUserSelect = x.current, d.viewport && (d.viewport.style.scrollBehavior = ""), y.current = null;
19229
+ onPointerMove: pe(t.onPointerMove, $),
19230
+ onPointerUp: pe(t.onPointerUp, (j) => {
19231
+ const F = j.target;
19232
+ F.hasPointerCapture(j.pointerId) && F.releasePointerCapture(j.pointerId), document.body.style.webkitUserSelect = x.current, d.viewport && (d.viewport.style.scrollBehavior = ""), y.current = null;
19228
19233
  })
19229
19234
  }
19230
19235
  )
@@ -19266,8 +19271,8 @@ var yT = v.forwardRef((t, e) => {
19266
19271
  ...n
19267
19272
  },
19268
19273
  onPointerDownCapture: pe(t.onPointerDownCapture, (p) => {
19269
- const d = p.target.getBoundingClientRect(), m = p.clientX - d.left, g = p.clientY - d.top;
19270
- a.onThumbPointerDown({ x: m, y: g });
19274
+ const d = p.target.getBoundingClientRect(), b = p.clientX - d.left, g = p.clientY - d.top;
19275
+ a.onThumbPointerDown({ x: b, y: g });
19271
19276
  }),
19272
19277
  onPointerUp: pe(t.onPointerUp, a.onThumbPointerUp)
19273
19278
  }
@@ -19447,31 +19452,31 @@ const RT = () => {
19447
19452
  }, Ch = ({ nodeId: t, depth: e = 0, onDragStart: r, onDragOver: n, onDrop: o, draggedId: i }) => {
19448
19453
  const { node: a, actions: s, selectedNodeId: u, childNodes: l, parentId: c } = vt((C, D) => {
19449
19454
  var M, B;
19450
- const j = C.nodes[t], T = ((M = j == null ? void 0 : j.data) == null ? void 0 : M.nodes) || [], A = C.events.selected ? Array.from(C.events.selected)[0] : null, _ = (B = j == null ? void 0 : j.data) == null ? void 0 : B.parent;
19455
+ const L = C.nodes[t], T = ((M = L == null ? void 0 : L.data) == null ? void 0 : M.nodes) || [], A = C.events.selected ? Array.from(C.events.selected)[0] : null, _ = (B = L == null ? void 0 : L.data) == null ? void 0 : B.parent;
19451
19456
  return {
19452
- node: j,
19457
+ node: L,
19453
19458
  childNodes: T,
19454
19459
  selectedNodeId: A,
19455
19460
  parentId: _
19456
19461
  };
19457
- }), [p, f] = me(!0), [d, m] = me(!1);
19462
+ }), [p, f] = me(!0), [d, b] = me(!1);
19458
19463
  if (!a) return null;
19459
- const g = a.data.displayName || a.data.name || "Unknown", b = l.length > 0, y = u === t, x = t === "ROOT", w = _T(g), S = i === t, N = a.data.isCanvas, R = (C) => {
19464
+ const g = a.data.displayName || a.data.name || "Unknown", m = l.length > 0, y = u === t, x = t === "ROOT", w = _T(g), S = i === t, N = a.data.isCanvas, R = (C) => {
19460
19465
  C.stopPropagation(), x || s.selectNode(t);
19461
19466
  }, k = (C) => {
19462
19467
  C.stopPropagation(), f(!p);
19463
- }, L = (C) => {
19468
+ }, $ = (C) => {
19464
19469
  if (x) {
19465
19470
  C.preventDefault();
19466
19471
  return;
19467
19472
  }
19468
19473
  C.stopPropagation(), r(t, c);
19469
- }, $ = (C) => {
19470
- C.preventDefault(), C.stopPropagation(), i && i !== t && N && m(!0);
19474
+ }, j = (C) => {
19475
+ C.preventDefault(), C.stopPropagation(), i && i !== t && N && b(!0);
19471
19476
  }, F = (C) => {
19472
- C.stopPropagation(), m(!1);
19477
+ C.stopPropagation(), b(!1);
19473
19478
  }, E = (C) => {
19474
- C.preventDefault(), C.stopPropagation(), m(!1), i && i !== t && o(t);
19479
+ C.preventDefault(), C.stopPropagation(), b(!1), i && i !== t && o(t);
19475
19480
  };
19476
19481
  return /* @__PURE__ */ P("div", { className: "select-none", children: [
19477
19482
  /* @__PURE__ */ P(
@@ -19481,19 +19486,19 @@ const RT = () => {
19481
19486
  style: { paddingLeft: `${e * 12 + 4}px` },
19482
19487
  onClick: R,
19483
19488
  draggable: !x,
19484
- onDragStart: L,
19485
- onDragOver: $,
19489
+ onDragStart: $,
19490
+ onDragOver: j,
19486
19491
  onDragLeave: F,
19487
19492
  onDrop: E,
19488
19493
  children: [
19489
19494
  !x && /* @__PURE__ */ h(Zm, { className: "h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing" }),
19490
- b ? /* @__PURE__ */ h("button", { onClick: k, className: "p-0.5 hover:bg-secondary rounded", children: p ? /* @__PURE__ */ h(Fs, { className: "h-3 w-3" }) : /* @__PURE__ */ h(Hs, { className: "h-3 w-3" }) }) : /* @__PURE__ */ h("span", { className: "w-4" }),
19495
+ m ? /* @__PURE__ */ h("button", { onClick: k, className: "p-0.5 hover:bg-secondary rounded", children: p ? /* @__PURE__ */ h(Fs, { className: "h-3 w-3" }) : /* @__PURE__ */ h(Hs, { className: "h-3 w-3" }) }) : /* @__PURE__ */ h("span", { className: "w-4" }),
19491
19496
  /* @__PURE__ */ h(w, { className: "h-3.5 w-3.5 text-muted-foreground shrink-0" }),
19492
19497
  /* @__PURE__ */ h("span", { className: `truncate ${x ? "font-medium" : ""}`, children: x ? "Root" : g })
19493
19498
  ]
19494
19499
  }
19495
19500
  ),
19496
- b && p && /* @__PURE__ */ h("div", { children: l.map((C) => /* @__PURE__ */ h(
19501
+ m && p && /* @__PURE__ */ h("div", { children: l.map((C) => /* @__PURE__ */ h(
19497
19502
  Ch,
19498
19503
  {
19499
19504
  nodeId: C,
@@ -19585,38 +19590,38 @@ function jT(t) {
19585
19590
  e,
19586
19591
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
19587
19592
  ), a = (g) => {
19588
- const { scope: b, children: y } = g, x = I.useRef(null), w = I.useRef(/* @__PURE__ */ new Map()).current;
19589
- return /* @__PURE__ */ h(o, { scope: b, itemMap: w, collectionRef: x, children: y });
19593
+ const { scope: m, children: y } = g, x = I.useRef(null), w = I.useRef(/* @__PURE__ */ new Map()).current;
19594
+ return /* @__PURE__ */ h(o, { scope: m, itemMap: w, collectionRef: x, children: y });
19590
19595
  };
19591
19596
  a.displayName = e;
19592
19597
  const s = t + "CollectionSlot", u = /* @__PURE__ */ Td(s), l = I.forwardRef(
19593
- (g, b) => {
19594
- const { scope: y, children: x } = g, w = i(s, y), S = Ae(b, w.collectionRef);
19598
+ (g, m) => {
19599
+ const { scope: y, children: x } = g, w = i(s, y), S = Ae(m, w.collectionRef);
19595
19600
  return /* @__PURE__ */ h(u, { ref: S, children: x });
19596
19601
  }
19597
19602
  );
19598
19603
  l.displayName = s;
19599
19604
  const c = t + "CollectionItemSlot", p = "data-radix-collection-item", f = /* @__PURE__ */ Td(c), d = I.forwardRef(
19600
- (g, b) => {
19601
- const { scope: y, children: x, ...w } = g, S = I.useRef(null), N = Ae(b, S), R = i(c, y);
19605
+ (g, m) => {
19606
+ const { scope: y, children: x, ...w } = g, S = I.useRef(null), N = Ae(m, S), R = i(c, y);
19602
19607
  return I.useEffect(() => (R.itemMap.set(S, { ref: S, ...w }), () => void R.itemMap.delete(S))), /* @__PURE__ */ h(f, { [p]: "", ref: N, children: x });
19603
19608
  }
19604
19609
  );
19605
19610
  d.displayName = c;
19606
- function m(g) {
19607
- const b = i(t + "CollectionConsumer", g);
19611
+ function b(g) {
19612
+ const m = i(t + "CollectionConsumer", g);
19608
19613
  return I.useCallback(() => {
19609
- const x = b.collectionRef.current;
19614
+ const x = m.collectionRef.current;
19610
19615
  if (!x) return [];
19611
19616
  const w = Array.from(x.querySelectorAll(`[${p}]`));
19612
- return Array.from(b.itemMap.values()).sort(
19617
+ return Array.from(m.itemMap.values()).sort(
19613
19618
  (R, k) => w.indexOf(R.ref.current) - w.indexOf(k.ref.current)
19614
19619
  );
19615
- }, [b.collectionRef, b.itemMap]);
19620
+ }, [m.collectionRef, m.itemMap]);
19616
19621
  }
19617
19622
  return [
19618
19623
  { Provider: a, Slot: l, ItemSlot: d },
19619
- m,
19624
+ b,
19620
19625
  n
19621
19626
  ];
19622
19627
  }
@@ -19639,35 +19644,35 @@ var zT = v.forwardRef((t, e) => {
19639
19644
  onEntryFocus: l,
19640
19645
  preventScrollOnEntryFocus: c = !1,
19641
19646
  ...p
19642
- } = t, f = v.useRef(null), d = Ae(e, f), m = rl(i), [g, b] = sn({
19647
+ } = t, f = v.useRef(null), d = Ae(e, f), b = rl(i), [g, m] = sn({
19643
19648
  prop: a,
19644
19649
  defaultProp: s ?? null,
19645
19650
  onChange: u,
19646
19651
  caller: io
19647
19652
  }), [y, x] = v.useState(!1), w = We(l), S = Th(r), N = v.useRef(!1), [R, k] = v.useState(0);
19648
19653
  return v.useEffect(() => {
19649
- const L = f.current;
19650
- if (L)
19651
- return L.addEventListener(Aa, w), () => L.removeEventListener(Aa, w);
19654
+ const $ = f.current;
19655
+ if ($)
19656
+ return $.addEventListener(Aa, w), () => $.removeEventListener(Aa, w);
19652
19657
  }, [w]), /* @__PURE__ */ h(
19653
19658
  HT,
19654
19659
  {
19655
19660
  scope: r,
19656
19661
  orientation: n,
19657
- dir: m,
19662
+ dir: b,
19658
19663
  loop: o,
19659
19664
  currentTabStopId: g,
19660
19665
  onItemFocus: v.useCallback(
19661
- (L) => b(L),
19662
- [b]
19666
+ ($) => m($),
19667
+ [m]
19663
19668
  ),
19664
19669
  onItemShiftTab: v.useCallback(() => x(!0), []),
19665
19670
  onFocusableItemAdd: v.useCallback(
19666
- () => k((L) => L + 1),
19671
+ () => k(($) => $ + 1),
19667
19672
  []
19668
19673
  ),
19669
19674
  onFocusableItemRemove: v.useCallback(
19670
- () => k((L) => L - 1),
19675
+ () => k(($) => $ - 1),
19671
19676
  []
19672
19677
  ),
19673
19678
  children: /* @__PURE__ */ h(
@@ -19681,11 +19686,11 @@ var zT = v.forwardRef((t, e) => {
19681
19686
  onMouseDown: pe(t.onMouseDown, () => {
19682
19687
  N.current = !0;
19683
19688
  }),
19684
- onFocus: pe(t.onFocus, (L) => {
19685
- const $ = !N.current;
19686
- if (L.target === L.currentTarget && $ && !y) {
19689
+ onFocus: pe(t.onFocus, ($) => {
19690
+ const j = !N.current;
19691
+ if ($.target === $.currentTarget && j && !y) {
19687
19692
  const F = new CustomEvent(Aa, $T);
19688
- if (L.currentTarget.dispatchEvent(F), !F.defaultPrevented) {
19693
+ if ($.currentTarget.dispatchEvent(F), !F.defaultPrevented) {
19689
19694
  const E = S().filter((A) => A.focusable), C = E.find((A) => A.active), D = E.find((A) => A.id === g), T = [C, D, ...E].filter(
19690
19695
  Boolean
19691
19696
  ).map((A) => A.ref.current);
@@ -19708,11 +19713,11 @@ var zT = v.forwardRef((t, e) => {
19708
19713
  tabStopId: i,
19709
19714
  children: a,
19710
19715
  ...s
19711
- } = t, u = Bf(), l = i || u, c = qT(Oh, r), p = c.currentTabStopId === l, f = Th(r), { onFocusableItemAdd: d, onFocusableItemRemove: m, currentTabStopId: g } = c;
19716
+ } = t, u = Bf(), l = i || u, c = qT(Oh, r), p = c.currentTabStopId === l, f = Th(r), { onFocusableItemAdd: d, onFocusableItemRemove: b, currentTabStopId: g } = c;
19712
19717
  return v.useEffect(() => {
19713
19718
  if (n)
19714
- return d(), () => m();
19715
- }, [n, d, m]), /* @__PURE__ */ h(
19719
+ return d(), () => b();
19720
+ }, [n, d, b]), /* @__PURE__ */ h(
19716
19721
  _s.ItemSlot,
19717
19722
  {
19718
19723
  scope: r,
@@ -19726,25 +19731,25 @@ var zT = v.forwardRef((t, e) => {
19726
19731
  "data-orientation": c.orientation,
19727
19732
  ...s,
19728
19733
  ref: e,
19729
- onMouseDown: pe(t.onMouseDown, (b) => {
19730
- n ? c.onItemFocus(l) : b.preventDefault();
19734
+ onMouseDown: pe(t.onMouseDown, (m) => {
19735
+ n ? c.onItemFocus(l) : m.preventDefault();
19731
19736
  }),
19732
19737
  onFocus: pe(t.onFocus, () => c.onItemFocus(l)),
19733
- onKeyDown: pe(t.onKeyDown, (b) => {
19734
- if (b.key === "Tab" && b.shiftKey) {
19738
+ onKeyDown: pe(t.onKeyDown, (m) => {
19739
+ if (m.key === "Tab" && m.shiftKey) {
19735
19740
  c.onItemShiftTab();
19736
19741
  return;
19737
19742
  }
19738
- if (b.target !== b.currentTarget) return;
19739
- const y = WT(b, c.orientation, c.dir);
19743
+ if (m.target !== m.currentTarget) return;
19744
+ const y = WT(m, c.orientation, c.dir);
19740
19745
  if (y !== void 0) {
19741
- if (b.metaKey || b.ctrlKey || b.altKey || b.shiftKey) return;
19742
- b.preventDefault();
19746
+ if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
19747
+ m.preventDefault();
19743
19748
  let w = f().filter((S) => S.focusable).map((S) => S.ref.current);
19744
19749
  if (y === "last") w.reverse();
19745
19750
  else if (y === "prev" || y === "next") {
19746
19751
  y === "prev" && w.reverse();
19747
- const S = w.indexOf(b.currentTarget);
19752
+ const S = w.indexOf(m.currentTarget);
19748
19753
  w = c.loop ? GT(w, S + 1) : w.slice(S + 1);
19749
19754
  }
19750
19755
  setTimeout(() => _h(w));
@@ -20066,10 +20071,10 @@ function TN(t) {
20066
20071
  }
20067
20072
  var NN = (t) => {
20068
20073
  var e, r, n, o, i, a, s, u, l, c, p;
20069
- let { invert: f, toast: d, unstyled: m, interacting: g, setHeights: b, visibleToasts: y, heights: x, index: w, toasts: S, expanded: N, removeToast: R, defaultRichColors: k, closeButton: L, style: $, cancelButtonStyle: F, actionButtonStyle: E, className: C = "", descriptionClassName: D = "", duration: j, position: T, gap: A, loadingIcon: _, expandByDefault: M, classNames: B, icons: U, closeButtonAriaLabel: ne = "Close toast", pauseWhenPageIsHidden: Q } = t, [q, H] = I.useState(null), [be, Z] = I.useState(null), [z, Ie] = I.useState(!1), [Te, Se] = I.useState(!1), [at, Et] = I.useState(!1), [st, ao] = I.useState(!1), [ta, so] = I.useState(!1), [ra, dn] = I.useState(0), [Cr, cl] = I.useState(0), fn = I.useRef(d.duration || j || Ad), dl = I.useRef(null), nr = I.useRef(null), Gh = w === 0, Yh = w + 1 <= y, ze = d.type, Tr = d.dismissible !== !1, Xh = d.className || "", Kh = d.descriptionClassName || "", uo = I.useMemo(() => x.findIndex((G) => G.toastId === d.id) || 0, [x, d.id]), Jh = I.useMemo(() => {
20074
+ let { invert: f, toast: d, unstyled: b, interacting: g, setHeights: m, visibleToasts: y, heights: x, index: w, toasts: S, expanded: N, removeToast: R, defaultRichColors: k, closeButton: $, style: j, cancelButtonStyle: F, actionButtonStyle: E, className: C = "", descriptionClassName: D = "", duration: L, position: T, gap: A, loadingIcon: _, expandByDefault: M, classNames: B, icons: U, closeButtonAriaLabel: ne = "Close toast", pauseWhenPageIsHidden: Q } = t, [q, H] = I.useState(null), [be, Z] = I.useState(null), [z, Ie] = I.useState(!1), [Te, Se] = I.useState(!1), [at, Et] = I.useState(!1), [st, ao] = I.useState(!1), [ta, so] = I.useState(!1), [ra, dn] = I.useState(0), [Cr, cl] = I.useState(0), fn = I.useRef(d.duration || L || Ad), dl = I.useRef(null), nr = I.useRef(null), Gh = w === 0, Yh = w + 1 <= y, ze = d.type, Tr = d.dismissible !== !1, Xh = d.className || "", Kh = d.descriptionClassName || "", uo = I.useMemo(() => x.findIndex((G) => G.toastId === d.id) || 0, [x, d.id]), Jh = I.useMemo(() => {
20070
20075
  var G;
20071
- return (G = d.closeButton) != null ? G : L;
20072
- }, [d.closeButton, L]), fl = I.useMemo(() => d.duration || j || Ad, [d.duration, j]), na = I.useRef(0), Nr = I.useRef(0), pl = I.useRef(0), Ar = I.useRef(null), [Zh, Qh] = T.split("-"), hl = I.useMemo(() => x.reduce((G, ae, he) => he >= uo ? G : G + ae.height, 0), [x, uo]), ml = lN(), em = d.invert || f, oa = ze === "loading";
20076
+ return (G = d.closeButton) != null ? G : $;
20077
+ }, [d.closeButton, $]), fl = I.useMemo(() => d.duration || L || Ad, [d.duration, L]), na = I.useRef(0), Nr = I.useRef(0), pl = I.useRef(0), Ar = I.useRef(null), [Zh, Qh] = T.split("-"), hl = I.useMemo(() => x.reduce((G, ae, he) => he >= uo ? G : G + ae.height, 0), [x, uo]), ml = lN(), em = d.invert || f, oa = ze === "loading";
20073
20078
  Nr.current = I.useMemo(() => uo * A + hl, [uo, hl]), I.useEffect(() => {
20074
20079
  fn.current = fl;
20075
20080
  }, [fl]), I.useEffect(() => {
@@ -20078,20 +20083,20 @@ var NN = (t) => {
20078
20083
  let G = nr.current;
20079
20084
  if (G) {
20080
20085
  let ae = G.getBoundingClientRect().height;
20081
- return cl(ae), b((he) => [{ toastId: d.id, height: ae, position: d.position }, ...he]), () => b((he) => he.filter((Xe) => Xe.toastId !== d.id));
20086
+ return cl(ae), m((he) => [{ toastId: d.id, height: ae, position: d.position }, ...he]), () => m((he) => he.filter((Xe) => Xe.toastId !== d.id));
20082
20087
  }
20083
- }, [b, d.id]), I.useLayoutEffect(() => {
20088
+ }, [m, d.id]), I.useLayoutEffect(() => {
20084
20089
  if (!z) return;
20085
20090
  let G = nr.current, ae = G.style.height;
20086
20091
  G.style.height = "auto";
20087
20092
  let he = G.getBoundingClientRect().height;
20088
- G.style.height = ae, cl(he), b((Xe) => Xe.find((Ke) => Ke.toastId === d.id) ? Xe.map((Ke) => Ke.toastId === d.id ? { ...Ke, height: he } : Ke) : [{ toastId: d.id, height: he, position: d.position }, ...Xe]);
20089
- }, [z, d.title, d.description, b, d.id]);
20093
+ G.style.height = ae, cl(he), m((Xe) => Xe.find((Ke) => Ke.toastId === d.id) ? Xe.map((Ke) => Ke.toastId === d.id ? { ...Ke, height: he } : Ke) : [{ toastId: d.id, height: he, position: d.position }, ...Xe]);
20094
+ }, [z, d.title, d.description, m, d.id]);
20090
20095
  let $t = I.useCallback(() => {
20091
- Se(!0), dn(Nr.current), b((G) => G.filter((ae) => ae.toastId !== d.id)), setTimeout(() => {
20096
+ Se(!0), dn(Nr.current), m((G) => G.filter((ae) => ae.toastId !== d.id)), setTimeout(() => {
20092
20097
  R(d);
20093
20098
  }, CN);
20094
- }, [d, R, b, Nr]);
20099
+ }, [d, R, m, Nr]);
20095
20100
  I.useEffect(() => {
20096
20101
  if (d.promise && ze === "loading" || d.duration === 1 / 0 || d.type === "loading") return;
20097
20102
  let G;
@@ -20112,7 +20117,7 @@ var NN = (t) => {
20112
20117
  var G, ae, he;
20113
20118
  return U != null && U.loading ? I.createElement("div", { className: Ze(B == null ? void 0 : B.loader, (G = d == null ? void 0 : d.classNames) == null ? void 0 : G.loader, "sonner-loader"), "data-visible": ze === "loading" }, U.loading) : _ ? I.createElement("div", { className: Ze(B == null ? void 0 : B.loader, (ae = d == null ? void 0 : d.classNames) == null ? void 0 : ae.loader, "sonner-loader"), "data-visible": ze === "loading" }, _) : I.createElement(nN, { className: Ze(B == null ? void 0 : B.loader, (he = d == null ? void 0 : d.classNames) == null ? void 0 : he.loader), visible: ze === "loading" });
20114
20119
  }
20115
- return I.createElement("li", { tabIndex: 0, ref: nr, className: Ze(C, Xh, B == null ? void 0 : B.toast, (e = d == null ? void 0 : d.classNames) == null ? void 0 : e.toast, B == null ? void 0 : B.default, B == null ? void 0 : B[ze], (r = d == null ? void 0 : d.classNames) == null ? void 0 : r[ze]), "data-sonner-toast": "", "data-rich-colors": (n = d.richColors) != null ? n : k, "data-styled": !(d.jsx || d.unstyled || m), "data-mounted": z, "data-promise": !!d.promise, "data-swiped": ta, "data-removed": Te, "data-visible": Yh, "data-y-position": Zh, "data-x-position": Qh, "data-index": w, "data-front": Gh, "data-swiping": at, "data-dismissible": Tr, "data-type": ze, "data-invert": em, "data-swipe-out": st, "data-swipe-direction": be, "data-expanded": !!(N || M && z), style: { "--index": w, "--toasts-before": w, "--z-index": S.length - w, "--offset": `${Te ? ra : Nr.current}px`, "--initial-height": M ? "auto" : `${Cr}px`, ...$, ...d.style }, onDragEnd: () => {
20120
+ return I.createElement("li", { tabIndex: 0, ref: nr, className: Ze(C, Xh, B == null ? void 0 : B.toast, (e = d == null ? void 0 : d.classNames) == null ? void 0 : e.toast, B == null ? void 0 : B.default, B == null ? void 0 : B[ze], (r = d == null ? void 0 : d.classNames) == null ? void 0 : r[ze]), "data-sonner-toast": "", "data-rich-colors": (n = d.richColors) != null ? n : k, "data-styled": !(d.jsx || d.unstyled || b), "data-mounted": z, "data-promise": !!d.promise, "data-swiped": ta, "data-removed": Te, "data-visible": Yh, "data-y-position": Zh, "data-x-position": Qh, "data-index": w, "data-front": Gh, "data-swiping": at, "data-dismissible": Tr, "data-type": ze, "data-invert": em, "data-swipe-out": st, "data-swipe-direction": be, "data-expanded": !!(N || M && z), style: { "--index": w, "--toasts-before": w, "--z-index": S.length - w, "--offset": `${Te ? ra : Nr.current}px`, "--initial-height": M ? "auto" : `${Cr}px`, ...j, ...d.style }, onDragEnd: () => {
20116
20121
  Et(!1), H(null), Ar.current = null;
20117
20122
  }, onPointerDown: (G) => {
20118
20123
  oa || !Tr || (dl.current = /* @__PURE__ */ new Date(), dn(Nr.current), G.target.setPointerCapture(G.pointerId), G.target.tagName !== "BUTTON" && (Et(!0), Ar.current = { x: G.clientX, y: G.clientY }));
@@ -20165,7 +20170,7 @@ function AN(t, e) {
20165
20170
  }), r;
20166
20171
  }
20167
20172
  Ds(function(t, e) {
20168
- let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: a, className: s, offset: u, mobileOffset: l, theme: c = "light", richColors: p, duration: f, style: d, visibleToasts: m = yN, toastOptions: g, dir: b = Od(), gap: y = SN, loadingIcon: x, icons: w, containerAriaLabel: S = "Notifications", pauseWhenPageIsHidden: N } = t, [R, k] = I.useState([]), L = I.useMemo(() => Array.from(new Set([n].concat(R.filter((Q) => Q.position).map((Q) => Q.position)))), [R, n]), [$, F] = I.useState([]), [E, C] = I.useState(!1), [D, j] = I.useState(!1), [T, A] = I.useState(c !== "system" ? c : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), _ = I.useRef(null), M = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), B = I.useRef(null), U = I.useRef(!1), ne = I.useCallback((Q) => {
20173
+ let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: a, className: s, offset: u, mobileOffset: l, theme: c = "light", richColors: p, duration: f, style: d, visibleToasts: b = yN, toastOptions: g, dir: m = Od(), gap: y = SN, loadingIcon: x, icons: w, containerAriaLabel: S = "Notifications", pauseWhenPageIsHidden: N } = t, [R, k] = I.useState([]), $ = I.useMemo(() => Array.from(new Set([n].concat(R.filter((Q) => Q.position).map((Q) => Q.position)))), [R, n]), [j, F] = I.useState([]), [E, C] = I.useState(!1), [D, L] = I.useState(!1), [T, A] = I.useState(c !== "system" ? c : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), _ = I.useRef(null), M = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), B = I.useRef(null), U = I.useRef(!1), ne = I.useCallback((Q) => {
20169
20174
  k((q) => {
20170
20175
  var H;
20171
20176
  return (H = q.find((be) => be.id === Q.id)) != null && H.delete || De.dismiss(Q.id), q.filter(({ id: be }) => be !== Q.id);
@@ -20216,20 +20221,20 @@ Ds(function(t, e) {
20216
20221
  if (_.current) return () => {
20217
20222
  B.current && (B.current.focus({ preventScroll: !0 }), B.current = null, U.current = !1);
20218
20223
  };
20219
- }, [_.current]), I.createElement("section", { ref: e, "aria-label": `${S} ${M}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, L.map((Q, q) => {
20224
+ }, [_.current]), I.createElement("section", { ref: e, "aria-label": `${S} ${M}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, $.map((Q, q) => {
20220
20225
  var H;
20221
20226
  let [be, Z] = Q.split("-");
20222
- return R.length ? I.createElement("ol", { key: Q, dir: b === "auto" ? Od() : b, tabIndex: -1, ref: _, className: s, "data-sonner-toaster": !0, "data-theme": T, "data-y-position": be, "data-lifted": E && R.length > 1 && !i, "data-x-position": Z, style: { "--front-toast-height": `${((H = $[0]) == null ? void 0 : H.height) || 0}px`, "--width": `${wN}px`, "--gap": `${y}px`, ...d, ...AN(u, l) }, onBlur: (z) => {
20227
+ return R.length ? I.createElement("ol", { key: Q, dir: m === "auto" ? Od() : m, tabIndex: -1, ref: _, className: s, "data-sonner-toaster": !0, "data-theme": T, "data-y-position": be, "data-lifted": E && R.length > 1 && !i, "data-x-position": Z, style: { "--front-toast-height": `${((H = j[0]) == null ? void 0 : H.height) || 0}px`, "--width": `${wN}px`, "--gap": `${y}px`, ...d, ...AN(u, l) }, onBlur: (z) => {
20223
20228
  U.current && !z.currentTarget.contains(z.relatedTarget) && (U.current = !1, B.current && (B.current.focus({ preventScroll: !0 }), B.current = null));
20224
20229
  }, onFocus: (z) => {
20225
20230
  z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || U.current || (U.current = !0, B.current = z.relatedTarget);
20226
20231
  }, onMouseEnter: () => C(!0), onMouseMove: () => C(!0), onMouseLeave: () => {
20227
20232
  D || C(!1);
20228
20233
  }, onDragEnd: () => C(!1), onPointerDown: (z) => {
20229
- z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || j(!0);
20230
- }, onPointerUp: () => j(!1) }, R.filter((z) => !z.position && q === 0 || z.position === Q).map((z, Ie) => {
20234
+ z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || L(!0);
20235
+ }, onPointerUp: () => L(!1) }, R.filter((z) => !z.position && q === 0 || z.position === Q).map((z, Ie) => {
20231
20236
  var Te, Se;
20232
- return I.createElement(NN, { key: z.id, icons: w, index: Ie, toast: z, defaultRichColors: p, duration: (Te = g == null ? void 0 : g.duration) != null ? Te : f, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: r, visibleToasts: m, closeButton: (Se = g == null ? void 0 : g.closeButton) != null ? Se : a, interacting: D, position: Q, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: ne, toasts: R.filter((at) => at.position == z.position), heights: $.filter((at) => at.position == z.position), setHeights: F, expandByDefault: i, gap: y, loadingIcon: x, expanded: E, pauseWhenPageIsHidden: N, swipeDirections: t.swipeDirections });
20237
+ return I.createElement(NN, { key: z.id, icons: w, index: Ie, toast: z, defaultRichColors: p, duration: (Te = g == null ? void 0 : g.duration) != null ? Te : f, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: r, visibleToasts: b, closeButton: (Se = g == null ? void 0 : g.closeButton) != null ? Se : a, interacting: D, position: Q, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: ne, toasts: R.filter((at) => at.position == z.position), heights: j.filter((at) => at.position == z.position), setHeights: F, expandByDefault: i, gap: y, loadingIcon: x, expanded: E, pauseWhenPageIsHidden: N, swipeDirections: t.swipeDirections });
20233
20238
  })) : null;
20234
20239
  }));
20235
20240
  });
@@ -20262,7 +20267,7 @@ const ks = {
20262
20267
  value: n,
20263
20268
  onValueChange: (f) => f && o(f),
20264
20269
  className: "bg-muted rounded-md p-1",
20265
- children: Object.entries(ks).map(([f, { icon: d, label: m }]) => /* @__PURE__ */ P(Hr, { children: [
20270
+ children: Object.entries(ks).map(([f, { icon: d, label: b }]) => /* @__PURE__ */ P(Hr, { children: [
20266
20271
  /* @__PURE__ */ h(qr, { asChild: !0, children: /* @__PURE__ */ h(
20267
20272
  Uh,
20268
20273
  {
@@ -20272,7 +20277,7 @@ const ks = {
20272
20277
  children: /* @__PURE__ */ h(d, { className: "h-4 w-4" })
20273
20278
  }
20274
20279
  ) }),
20275
- /* @__PURE__ */ h(pr, { side: "bottom", children: /* @__PURE__ */ h("p", { children: m }) })
20280
+ /* @__PURE__ */ h(pr, { side: "bottom", children: /* @__PURE__ */ h("p", { children: b }) })
20276
20281
  ] }, f))
20277
20282
  }
20278
20283
  ) }),
@@ -20454,9 +20459,9 @@ const Rd = ({ htmlJson: t, editorState: e }) => {
20454
20459
  enabled: l = !0
20455
20460
  }) => {
20456
20461
  var S;
20457
- const c = mi(), [p, f] = me("desktop"), [d, m] = me(!1), g = tt(d);
20462
+ const c = mi(), [p, f] = me("desktop"), [d, b] = me(!1), g = tt(d);
20458
20463
  g.current = d;
20459
- const [b, y] = me(
20464
+ const [m, y] = me(
20460
20465
  ((S = ks[p]) == null ? void 0 : S.width) || "100%"
20461
20466
  );
20462
20467
  ke(() => {
@@ -20521,7 +20526,7 @@ const Rd = ({ htmlJson: t, editorState: e }) => {
20521
20526
  deviceSize: p,
20522
20527
  onDeviceSizeChange: f,
20523
20528
  editPopup: d,
20524
- setEditPopup: m
20529
+ setEditPopup: b
20525
20530
  }
20526
20531
  )
20527
20532
  ] }),
@@ -20535,7 +20540,7 @@ const Rd = ({ htmlJson: t, editorState: e }) => {
20535
20540
  {
20536
20541
  className: "bg-white rounded-lg min-h-full border border-dashed transition-all duration-300 ",
20537
20542
  style: {
20538
- width: typeof b == "number" ? `${b}px` : b,
20543
+ width: typeof m == "number" ? `${m}px` : m,
20539
20544
  maxWidth: "100%"
20540
20545
  },
20541
20546
  children: d ? /* @__PURE__ */ h(