@tech_carthagos/page-builder 1.0.52 → 1.0.53

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
@@ -1,6 +1,6 @@
1
1
  import { jsx as h, Fragment as Qt, jsxs as k } from "react/jsx-runtime";
2
2
  import * as y from "react";
3
- import P, { createContext as Pn, useContext as ir, forwardRef as Ki, createElement as Xa, useMemo as Re, useRef as Ye, useCallback as Ka, useEffect as Me, useState as be, isValidElement as io, cloneElement as kp, Fragment as Pp, Children as _p, useLayoutEffect as Rp, Suspense as Ip } from "react";
3
+ import _, { createContext as Pn, useContext as ir, forwardRef as Ki, createElement as Xa, useMemo as Re, useRef as Ye, useCallback as Ka, useEffect as Me, useState as be, isValidElement as io, cloneElement as kp, Fragment as Pp, Children as _p, useLayoutEffect as Rp, Suspense as Ip } from "react";
4
4
  import * as Ec from "react-dom";
5
5
  import Nc from "react-dom";
6
6
  import { useQuery as Dp } from "@tanstack/react-query";
@@ -194,9 +194,9 @@ const Ji = "-", Mp = (t) => {
194
194
  if (a.includes(x))
195
195
  continue;
196
196
  a.push(x);
197
- const S = o(g, b);
198
- for (let w = 0; w < S.length; ++w) {
199
- const T = S[w];
197
+ const w = o(g, b);
198
+ for (let C = 0; C < w.length; ++C) {
199
+ const T = w[C];
200
200
  a.push(v + T);
201
201
  }
202
202
  u = l + (u.length > 0 ? " " + u : u);
@@ -246,7 +246,7 @@ const ue = (t) => {
246
246
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
247
247
  Jp.test(t) && !Zp.test(t)
248
248
  ), _c = () => !1, lh = (t) => Qp.test(t), ch = (t) => eh.test(t), dh = () => {
249
- const t = ue("colors"), e = ue("spacing"), r = ue("blur"), n = ue("brightness"), o = ue("borderColor"), a = ue("borderRadius"), i = ue("borderSpacing"), u = ue("borderWidth"), s = ue("contrast"), l = ue("grayscale"), c = ue("hueRotate"), p = ue("invert"), f = ue("gap"), d = ue("gradientColorStops"), b = ue("gradientColorStopPositions"), g = ue("inset"), m = ue("margin"), v = ue("opacity"), x = ue("padding"), S = ue("saturate"), w = ue("scale"), T = ue("sepia"), _ = ue("skew"), I = ue("space"), L = ue("translate"), $ = () => ["auto", "contain", "none"], B = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", G, e], N = () => [G, e], R = () => ["", bt, It], M = () => ["auto", Sr, G], E = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], O = () => ["solid", "dashed", "dotted", "double", "none"], A = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], j = () => ["", "0", G], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], pe = () => [Sr, G];
249
+ const t = ue("colors"), e = ue("spacing"), r = ue("blur"), n = ue("brightness"), o = ue("borderColor"), a = ue("borderRadius"), i = ue("borderSpacing"), u = ue("borderWidth"), s = ue("contrast"), l = ue("grayscale"), c = ue("hueRotate"), p = ue("invert"), f = ue("gap"), d = ue("gradientColorStops"), b = ue("gradientColorStopPositions"), g = ue("inset"), m = ue("margin"), v = ue("opacity"), x = ue("padding"), w = ue("saturate"), C = ue("scale"), T = ue("sepia"), P = ue("skew"), I = ue("space"), L = ue("translate"), $ = () => ["auto", "contain", "none"], B = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", G, e], N = () => [G, e], R = () => ["", bt, It], M = () => ["auto", Sr, G], E = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], O = () => ["solid", "dashed", "dotted", "double", "none"], A = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], j = () => ["", "0", G], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], pe = () => [Sr, G];
250
250
  return {
251
251
  cacheSize: 500,
252
252
  separator: ":",
@@ -266,8 +266,8 @@ const ue = (t) => {
266
266
  gap: N(),
267
267
  gradientColorStops: [t],
268
268
  gradientColorStopPositions: [th, It],
269
- inset: C(),
270
- margin: C(),
269
+ inset: S(),
270
+ margin: S(),
271
271
  opacity: pe(),
272
272
  padding: N(),
273
273
  saturate: pe(),
@@ -499,7 +499,7 @@ const ue = (t) => {
499
499
  * @see https://tailwindcss.com/docs/flex-basis
500
500
  */
501
501
  basis: [{
502
- basis: C()
502
+ basis: S()
503
503
  }],
504
504
  /**
505
505
  * Flex Direction
@@ -1712,7 +1712,7 @@ const ue = (t) => {
1712
1712
  * @see https://tailwindcss.com/docs/saturate
1713
1713
  */
1714
1714
  saturate: [{
1715
- saturate: [S]
1715
+ saturate: [w]
1716
1716
  }],
1717
1717
  /**
1718
1718
  * Sepia
@@ -1783,7 +1783,7 @@ const ue = (t) => {
1783
1783
  * @see https://tailwindcss.com/docs/backdrop-saturate
1784
1784
  */
1785
1785
  "backdrop-saturate": [{
1786
- "backdrop-saturate": [S]
1786
+ "backdrop-saturate": [w]
1787
1787
  }],
1788
1788
  /**
1789
1789
  * Backdrop Sepia
@@ -1884,21 +1884,21 @@ const ue = (t) => {
1884
1884
  * @see https://tailwindcss.com/docs/scale
1885
1885
  */
1886
1886
  scale: [{
1887
- scale: [w]
1887
+ scale: [C]
1888
1888
  }],
1889
1889
  /**
1890
1890
  * Scale X
1891
1891
  * @see https://tailwindcss.com/docs/scale
1892
1892
  */
1893
1893
  "scale-x": [{
1894
- "scale-x": [w]
1894
+ "scale-x": [C]
1895
1895
  }],
1896
1896
  /**
1897
1897
  * Scale Y
1898
1898
  * @see https://tailwindcss.com/docs/scale
1899
1899
  */
1900
1900
  "scale-y": [{
1901
- "scale-y": [w]
1901
+ "scale-y": [C]
1902
1902
  }],
1903
1903
  /**
1904
1904
  * Rotate
@@ -1926,14 +1926,14 @@ const ue = (t) => {
1926
1926
  * @see https://tailwindcss.com/docs/skew
1927
1927
  */
1928
1928
  "skew-x": [{
1929
- "skew-x": [_]
1929
+ "skew-x": [P]
1930
1930
  }],
1931
1931
  /**
1932
1932
  * Skew Y
1933
1933
  * @see https://tailwindcss.com/docs/skew
1934
1934
  */
1935
1935
  "skew-y": [{
1936
- "skew-y": [_]
1936
+ "skew-y": [P]
1937
1937
  }],
1938
1938
  /**
1939
1939
  * Transform Origin
@@ -3261,8 +3261,8 @@ function tm() {
3261
3261
  l.push({ op: "replace", path: v, value: e(d[m]) }), c.push({ op: "replace", path: v, value: e(p[m]) });
3262
3262
  }
3263
3263
  for (var x = p.length; x < d.length; x++) {
3264
- var S = s.concat([x]);
3265
- l.push({ op: r, path: S, value: e(d[x]) });
3264
+ var w = s.concat([x]);
3265
+ l.push({ op: r, path: w, value: e(d[x]) });
3266
3266
  }
3267
3267
  p.length < d.length && c.push({ op: "replace", path: s.concat(["length"]), value: p.length });
3268
3268
  }(n, o, a, i);
@@ -3489,10 +3489,10 @@ var sm = function() {
3489
3489
  return function(g) {
3490
3490
  var m = this;
3491
3491
  g === void 0 && (g = u);
3492
- for (var v = arguments.length, x = Array(v > 1 ? v - 1 : 0), S = 1; S < v; S++) x[S - 1] = arguments[S];
3493
- return s.produce(g, function(w) {
3492
+ for (var v = arguments.length, x = Array(v > 1 ? v - 1 : 0), w = 1; w < v; w++) x[w - 1] = arguments[w];
3493
+ return s.produce(g, function(C) {
3494
3494
  var T;
3495
- return (T = a).call.apply(T, [m, w].concat(x));
3495
+ return (T = a).call.apply(T, [m, C].concat(x));
3496
3496
  });
3497
3497
  };
3498
3498
  }
@@ -4101,16 +4101,16 @@ function e2(t, e, r, n, o, a) {
4101
4101
  f = u[p];
4102
4102
  var v = t[f], x = e[f];
4103
4103
  if (n)
4104
- var S = i ? n(x, v, f, e, t, a) : n(v, x, f, t, e, a);
4105
- if (!(S === void 0 ? v === x || o(v, x, r, n, a) : S)) {
4104
+ var w = i ? n(x, v, f, e, t, a) : n(v, x, f, t, e, a);
4105
+ if (!(w === void 0 ? v === x || o(v, x, r, n, a) : w)) {
4106
4106
  g = !1;
4107
4107
  break;
4108
4108
  }
4109
4109
  m || (m = f == "constructor");
4110
4110
  }
4111
4111
  if (g && !m) {
4112
- var w = t.constructor, T = e.constructor;
4113
- w != T && "constructor" in t && "constructor" in e && !(typeof w == "function" && w instanceof w && typeof T == "function" && T instanceof T) && (g = !1);
4112
+ var C = t.constructor, T = e.constructor;
4113
+ C != T && "constructor" in t && "constructor" in e && !(typeof C == "function" && C instanceof C && typeof T == "function" && T instanceof T) && (g = !1);
4114
4114
  }
4115
4115
  return a.delete(t), a.delete(e), g;
4116
4116
  }
@@ -4382,32 +4382,32 @@ function ix(t, e, r, n) {
4382
4382
  s.current = n;
4383
4383
  var l = Ye(e), c = Re(function() {
4384
4384
  var m = u.current, v = i.current, x = s.current;
4385
- return function(S, w) {
4386
- var T, _ = r && ml(r, function() {
4387
- return S;
4388
- }, a), I = ud($s(S, function(C) {
4385
+ return function(w, C) {
4386
+ var T, P = r && ml(r, function() {
4387
+ return w;
4388
+ }, a), I = ud($s(w, function(S) {
4389
4389
  var N, R;
4390
- switch (w.type) {
4390
+ switch (C.type) {
4391
4391
  case he.UNDO:
4392
- return a.undo(C);
4392
+ return a.undo(S);
4393
4393
  case he.REDO:
4394
- return a.redo(C);
4394
+ return a.redo(S);
4395
4395
  case he.CLEAR:
4396
- return a.clear(), $e({}, C);
4396
+ return a.clear(), $e({}, S);
4397
4397
  case he.IGNORE:
4398
4398
  case he.MERGE:
4399
4399
  case he.THROTTLE:
4400
- var M, E = sd(R = w.payload) || ld(R) || yu(R) || cd(), O = E[0], A = E.slice(1);
4401
- (M = o(C, _))[O].apply(M, Ae(A));
4400
+ var M, E = sd(R = C.payload) || ld(R) || yu(R) || cd(), O = E[0], A = E.slice(1);
4401
+ (M = o(S, P))[O].apply(M, Ae(A));
4402
4402
  break;
4403
4403
  default:
4404
- (N = o(C, _))[w.type].apply(N, Ae(w.payload));
4404
+ (N = o(S, P))[C.type].apply(N, Ae(C.payload));
4405
4405
  }
4406
4406
  }), 3), L = I[0], $ = I[1], B = I[2];
4407
- return T = L, x && x(L, S, { type: w.type, params: w.payload, patches: $ }, _, function(C) {
4408
- var N = $s(L, C);
4407
+ return T = L, x && x(L, w, { type: C.type, params: C.payload, patches: $ }, P, function(S) {
4408
+ var N = $s(L, S);
4409
4409
  T = N[0], $ = [].concat(Ae($), Ae(N[1])), B = [].concat(Ae(N[2]), Ae(B));
4410
- }), [he.UNDO, he.REDO].includes(w.type) && m && (T = lm(T, m)), [].concat(Ae(v), [he.UNDO, he.REDO, he.IGNORE, he.CLEAR]).includes(w.type) || (w.type === he.THROTTLE ? a.throttleAdd($, B, w.config && w.config.rate) : w.type === he.MERGE ? a.merge($, B) : a.add($, B)), T;
4410
+ }), [he.UNDO, he.REDO].includes(C.type) && m && (T = lm(T, m)), [].concat(Ae(v), [he.UNDO, he.REDO, he.IGNORE, he.CLEAR]).includes(C.type) || (C.type === he.THROTTLE ? a.throttleAdd($, B, C.config && C.config.rate) : C.type === he.MERGE ? a.merge($, B) : a.add($, B)), T;
4411
4411
  };
4412
4412
  }, [a, o, r]), p = Ka(function() {
4413
4413
  return l.current;
@@ -4426,10 +4426,10 @@ function ix(t, e, r, n) {
4426
4426
  }, a) : [];
4427
4427
  }, [a, r]), g = Re(function() {
4428
4428
  var m = Object.keys(o(null, null)), v = i.current;
4429
- return $e($e({}, m.reduce(function(x, S) {
4430
- return x[S] = function() {
4431
- for (var w = arguments.length, T = new Array(w), _ = 0; _ < w; _++) T[_] = arguments[_];
4432
- return d({ type: S, payload: T });
4429
+ return $e($e({}, m.reduce(function(x, w) {
4430
+ return x[w] = function() {
4431
+ for (var C = arguments.length, T = new Array(C), P = 0; P < C; P++) T[P] = arguments[P];
4432
+ return d({ type: w, payload: T });
4433
4433
  }, x;
4434
4434
  }, {})), {}, { history: { undo: function() {
4435
4435
  return d({ type: he.UNDO });
@@ -4438,30 +4438,30 @@ function ix(t, e, r, n) {
4438
4438
  }, clear: function() {
4439
4439
  return d({ type: he.CLEAR });
4440
4440
  }, throttle: function(x) {
4441
- return $e({}, m.filter(function(S) {
4442
- return !v.includes(S);
4443
- }).reduce(function(S, w) {
4444
- return S[w] = function() {
4445
- for (var T = arguments.length, _ = new Array(T), I = 0; I < T; I++) _[I] = arguments[I];
4446
- return d({ type: he.THROTTLE, payload: [w].concat(_), config: { rate: x } });
4447
- }, S;
4441
+ return $e({}, m.filter(function(w) {
4442
+ return !v.includes(w);
4443
+ }).reduce(function(w, C) {
4444
+ return w[C] = function() {
4445
+ for (var T = arguments.length, P = new Array(T), I = 0; I < T; I++) P[I] = arguments[I];
4446
+ return d({ type: he.THROTTLE, payload: [C].concat(P), config: { rate: x } });
4447
+ }, w;
4448
4448
  }, {}));
4449
4449
  }, ignore: function() {
4450
4450
  return $e({}, m.filter(function(x) {
4451
4451
  return !v.includes(x);
4452
- }).reduce(function(x, S) {
4453
- return x[S] = function() {
4454
- for (var w = arguments.length, T = new Array(w), _ = 0; _ < w; _++) T[_] = arguments[_];
4455
- return d({ type: he.IGNORE, payload: [S].concat(T) });
4452
+ }).reduce(function(x, w) {
4453
+ return x[w] = function() {
4454
+ for (var C = arguments.length, T = new Array(C), P = 0; P < C; P++) T[P] = arguments[P];
4455
+ return d({ type: he.IGNORE, payload: [w].concat(T) });
4456
4456
  }, x;
4457
4457
  }, {}));
4458
4458
  }, merge: function() {
4459
4459
  return $e({}, m.filter(function(x) {
4460
4460
  return !v.includes(x);
4461
- }).reduce(function(x, S) {
4462
- return x[S] = function() {
4463
- for (var w = arguments.length, T = new Array(w), _ = 0; _ < w; _++) T[_] = arguments[_];
4464
- return d({ type: he.MERGE, payload: [S].concat(T) });
4461
+ }).reduce(function(x, w) {
4462
+ return x[w] = function() {
4463
+ for (var C = arguments.length, T = new Array(C), P = 0; P < C; P++) T[P] = arguments[P];
4464
+ return d({ type: he.MERGE, payload: [w].concat(T) });
4465
4465
  }, x;
4466
4466
  }, {}));
4467
4467
  } } });
@@ -4760,7 +4760,7 @@ function hd(t) {
4760
4760
  return Object.keys(t).reduce((e, r) => (e[r] = px((...n) => t[r](...n)), e), {});
4761
4761
  }
4762
4762
  const hx = ({ style: t, className: e, parentDom: r }) => {
4763
- const n = P.createElement("div", { className: e, style: { position: "fixed", display: "block", opacity: 1, borderStyle: "solid", borderWidth: "1px", borderColor: "transparent", zIndex: 99999, ...t } });
4763
+ const n = _.createElement("div", { className: e, style: { position: "fixed", display: "block", opacity: 1, borderStyle: "solid", borderWidth: "1px", borderColor: "transparent", zIndex: 99999, ...t } });
4764
4764
  return r && r.ownerDocument !== document ? Nc.createPortal(n, r.ownerDocument.body) : n;
4765
4765
  };
4766
4766
  var Ht = function(t, e) {
@@ -4800,7 +4800,7 @@ yl && yl.isMap;
4800
4800
  var xl = vu;
4801
4801
  xl && xl.isSet;
4802
4802
  typeof window < "u" && (window.__CRAFTJS__ || (window.__CRAFTJS__ = {}), window.__CRAFTJS__["@craftjs/core"] = "0.2.12");
4803
- const bd = P.createContext(null), gd = ({ id: t, related: e = !1, children: r }) => P.createElement(bd.Provider, { value: { id: t, related: e } }, r);
4803
+ const bd = _.createContext(null), gd = ({ id: t, related: e = !1, children: r }) => _.createElement(bd.Provider, { value: { id: t, related: e } }, r);
4804
4804
  function wl(t, e) {
4805
4805
  var r = Object.keys(t);
4806
4806
  if (Object.getOwnPropertySymbols) {
@@ -5012,19 +5012,19 @@ function ae(t) {
5012
5012
  }
5013
5013
  const wx = ({ render: t }) => {
5014
5014
  const { connectors: { connect: e, drag: r } } = ae();
5015
- return typeof t.type == "string" ? e(r(P.cloneElement(t))) : t;
5015
+ return typeof t.type == "string" ? e(r(_.cloneElement(t))) : t;
5016
5016
  }, Sx = () => {
5017
5017
  const { type: t, props: e, nodes: r, hydrationTimestamp: n } = oa((o) => ({ type: o.data.type, props: o.data.props, nodes: o.data.nodes, hydrationTimestamp: o._hydrationTimestamp }));
5018
5018
  return Re(() => {
5019
5019
  let o = e.children;
5020
- r && r.length > 0 && (o = P.createElement(P.Fragment, null, r.map((i) => P.createElement(Eu, { id: i, key: i }))));
5021
- const a = P.createElement(t, e, o);
5022
- return typeof t == "string" ? P.createElement(wx, { render: a }) : a;
5020
+ r && r.length > 0 && (o = _.createElement(_.Fragment, null, r.map((i) => _.createElement(Eu, { id: i, key: i }))));
5021
+ const a = _.createElement(t, e, o);
5022
+ return typeof t == "string" ? _.createElement(wx, { render: a }) : a;
5023
5023
  }, [t, e, n, r]);
5024
5024
  }, Cx = ({ render: t }) => {
5025
5025
  const { hidden: e } = oa((n) => ({ hidden: n.data.hidden })), { onRender: r } = sr((n) => ({ onRender: n.options.onRender }));
5026
- return e ? null : P.createElement(r, { render: t || P.createElement(Sx, null) });
5027
- }, Eu = ({ id: t, render: e }) => P.createElement(gd, { id: t }, P.createElement(Cx, { render: e })), pi = { is: "div", canvas: !1, custom: {}, hidden: !1 }, Ex = { is: "type", canvas: "isCanvas" };
5026
+ return e ? null : _.createElement(r, { render: t || _.createElement(Sx, null) });
5027
+ }, Eu = ({ id: t, render: e }) => _.createElement(gd, { id: t }, _.createElement(Cx, { render: e })), pi = { is: "div", canvas: !1, custom: {}, hidden: !1 }, Ex = { is: "type", canvas: "isCanvas" };
5028
5028
  function jt({ id: t, children: e, ...r }) {
5029
5029
  const { is: n } = { ...pi, ...r }, { query: o, actions: a } = sr(), { id: i, inNodeContext: u } = oa(), [s] = be(() => {
5030
5030
  ie(!!t, V2);
@@ -5032,20 +5032,20 @@ function jt({ id: t, children: e, ...r }) {
5032
5032
  if (u) {
5033
5033
  const c = l.data.linkedNodes[t] ? o.node(l.data.linkedNodes[t]).get() : null;
5034
5034
  if (c && c.data.type === n) return c.id;
5035
- const p = P.createElement(jt, r, e), f = o.parseReactElement(p).toNodeTree();
5035
+ const p = _.createElement(jt, r, e), f = o.parseReactElement(p).toNodeTree();
5036
5036
  return a.history.ignore().addLinkedNodeFromTree(f, i, t), f.rootNodeId;
5037
5037
  }
5038
5038
  return null;
5039
5039
  });
5040
- return s ? P.createElement(Eu, { id: s }) : null;
5040
+ return s ? _.createElement(Eu, { id: s }) : null;
5041
5041
  }
5042
5042
  const Cd = () => Ht("<Canvas />", { suggest: "<Element canvas={true} />" });
5043
5043
  function hi({ ...t }) {
5044
- return Me(() => Cd(), []), P.createElement(jt, { ...t, canvas: !0 });
5044
+ return Me(() => Cd(), []), _.createElement(jt, { ...t, canvas: !0 });
5045
5045
  }
5046
5046
  const Nx = () => {
5047
5047
  const { timestamp: t } = sr((e) => ({ timestamp: e.nodes[St] && e.nodes[St]._hydrationTimestamp }));
5048
- return t ? P.createElement(Eu, { id: St, key: t }) : null;
5048
+ return t ? _.createElement(Eu, { id: St, key: t }) : null;
5049
5049
  }, Nu = ({ children: t, json: e, data: r }) => {
5050
5050
  const { actions: n, query: o } = sr();
5051
5051
  e && Ht("<Frame json={...} />", { suggest: "<Frame data={...} />" });
@@ -5054,12 +5054,12 @@ const Nx = () => {
5054
5054
  const i = r || e;
5055
5055
  if (i) n.history.ignore().deserialize(i);
5056
5056
  else if (t) {
5057
- const u = P.Children.only(t), s = o.parseReactElement(u).toNodeTree((l, c) => (c === u && (l.id = St), l));
5057
+ const u = _.Children.only(t), s = o.parseReactElement(u).toNodeTree((l, c) => (c === u && (l.id = St), l));
5058
5058
  n.history.ignore().addNodeTree(s);
5059
5059
  }
5060
5060
  a.current = !0;
5061
5061
  }
5062
- return P.createElement(Nx, null);
5062
+ return _.createElement(Nx, null);
5063
5063
  };
5064
5064
  var Sl;
5065
5065
  (function(t) {
@@ -5245,7 +5245,7 @@ function Cl(t, e) {
5245
5245
  var i = { id: n.id, related: !0 };
5246
5246
  Object.keys(a.related).forEach(function(u) {
5247
5247
  n.related[u] = function(s) {
5248
- return P.createElement(gd, i, P.createElement(a.related[u], s));
5248
+ return _.createElement(gd, i, _.createElement(a.related[u], s));
5249
5249
  };
5250
5250
  });
5251
5251
  }
@@ -5261,7 +5261,7 @@ const gi = (t, e, r) => {
5261
5261
  const l = o[s];
5262
5262
  return u[s] = l == null ? null : typeof l == "object" && l.resolvedName ? gi(l, e) : s === "children" && Array.isArray(l) ? l.map((c) => typeof c == "string" ? c : gi(c, e)) : l, u;
5263
5263
  }, {});
5264
- const i = { ...P.createElement(a, { ...o }) };
5264
+ const i = { ..._.createElement(a, { ...o }) };
5265
5265
  return { ...i, name: To(e, i.type) };
5266
5266
  }, kx = (t, e) => {
5267
5267
  const { type: r, props: n, ...o } = t;
@@ -5320,14 +5320,14 @@ function Td(t) {
5320
5320
  }, parseReactElement: (n) => ({ toNodeTree(o) {
5321
5321
  let a = function(u, s) {
5322
5322
  let l = u;
5323
- return typeof l == "string" && (l = P.createElement(Pp, {}, l)), Cl({ data: { type: l.type, props: { ...l.props } } }, (c) => {
5323
+ return typeof l == "string" && (l = _.createElement(Pp, {}, l)), Cl({ data: { type: l.type, props: { ...l.props } } }, (c) => {
5324
5324
  s && s(c, l);
5325
5325
  });
5326
5326
  }(n, (u, s) => {
5327
5327
  const l = To(t.options.resolver, u.data.type);
5328
5328
  u.data.displayName = u.data.displayName || l, u.data.name = l, o && o(u, s);
5329
5329
  }), i = [];
5330
- return n.props && n.props.children && (i = P.Children.toArray(n.props.children).reduce((u, s) => (P.isValidElement(s) && u.push(r().parseReactElement(s).toNodeTree(o)), u), [])), _x(a, i);
5330
+ return n.props && n.props.children && (i = _.Children.toArray(n.props.children).reduce((u, s) => (_.isValidElement(s) && u.push(r().parseReactElement(s).toNodeTree(o)), u), [])), _x(a, i);
5331
5331
  } }), parseSerializedNode: (n) => ({ toNode(o) {
5332
5332
  const a = kx(n, t.options.resolver);
5333
5333
  ie(a.type, Co);
@@ -5522,7 +5522,7 @@ var Nl = function(t, e) {
5522
5522
  var p;
5523
5523
  if (c.craft.stopPropagation(), typeof i == "function") {
5524
5524
  var f = i();
5525
- p = P.isValidElement(f) ? o.query.parseReactElement(f).toNodeTree() : f;
5525
+ p = _.isValidElement(f) ? o.query.parseReactElement(f).toNodeTree() : f;
5526
5526
  } else p = o.query.parseReactElement(i).toNodeTree();
5527
5527
  n.draggedElementShadow = Nl(c, [c.currentTarget], r.forceSingleDragShadow), n.dragTarget = { type: "new", tree: p }, n.positioner = new vi(n.options.store, n.dragTarget);
5528
5528
  }), l = n.addCraftEventListener(a, "dragend", function(c) {
@@ -5551,10 +5551,10 @@ const Dx = () => {
5551
5551
  const { indicator: t, indicatorOptions: e, enabled: r } = sr((o) => ({ indicator: o.indicator, indicatorOptions: o.options.indicator, enabled: o.options.enabled })), n = Sd();
5552
5552
  return Me(() => {
5553
5553
  n && (r ? n.enable() : n.disable());
5554
- }, [r, n]), t ? P.createElement(hx, { className: e.className, style: { ...Ix(t.placement, mn(t.placement.parent.dom), t.placement.currentNode && mn(t.placement.currentNode.dom), e.thickness), backgroundColor: t.error ? e.error : e.success, transition: e.transition || "0.2s ease-in", ...e.style ?? {} }, parentDom: t.placement.parent.dom }) : null;
5554
+ }, [r, n]), t ? _.createElement(hx, { className: e.className, style: { ...Ix(t.placement, mn(t.placement.parent.dom), t.placement.currentNode && mn(t.placement.currentNode.dom), e.thickness), backgroundColor: t.error ? e.error : e.success, transition: e.transition || "0.2s ease-in", ...e.style ?? {} }, parentDom: t.placement.parent.dom }) : null;
5555
5555
  }, Mx = ({ children: t }) => {
5556
5556
  const e = ir(Cu), r = Re(() => e.query.getOptions().handlers(e), [e]);
5557
- return r ? P.createElement(wd.Provider, { value: r }, P.createElement(Dx, null), t) : null;
5557
+ return r ? _.createElement(wd.Provider, { value: r }, _.createElement(Dx, null), t) : null;
5558
5558
  }, Tl = { nodes: {}, events: { dragged: /* @__PURE__ */ new Set(), selected: /* @__PURE__ */ new Set(), hovered: /* @__PURE__ */ new Set() }, indicator: null, options: { onNodesChange: () => null, onRender: ({ render: t }) => t, onBeforeMoveEnd: () => null, resolver: {}, enabled: !0, indicator: { error: "red", success: "rgb(98, 196, 98)" }, handlers: (t) => new Ad({ store: t, removeHoverOnMouseleave: !1, isMultiSelectEnabled: (e) => !!e.metaKey }), normalizeNodes: () => {
5559
5559
  } } }, Lx = { methods: function(t, e) {
5560
5560
  return le(le({}, /* @__PURE__ */ function(r, n) {
@@ -5629,13 +5629,13 @@ const Dx = () => {
5629
5629
  var c = wt(r.nodes, u, { existOnly: !0 }), p = r.nodes[s], f = /* @__PURE__ */ new Set();
5630
5630
  c.forEach(function(d, b) {
5631
5631
  var g = d.node, m = g.id, v = g.data.parent;
5632
- n.node(s).isDroppable([m], function(w) {
5633
- throw new Error(w);
5632
+ n.node(s).isDroppable([m], function(C) {
5633
+ throw new Error(C);
5634
5634
  }), r.options.onBeforeMoveEnd(g, p, r.nodes[v]);
5635
5635
  var x = r.nodes[v].data.nodes;
5636
5636
  f.add(x);
5637
- var S = x.indexOf(m);
5638
- x[S] = "$$", p.data.nodes.splice(l + b, 0, m), r.nodes[m].data.parent = s;
5637
+ var w = x.indexOf(m);
5638
+ x[w] = "$$", p.data.nodes.splice(l + b, 0, m), r.nodes[m].data.parent = s;
5639
5639
  }), f.forEach(function(d) {
5640
5640
  var b = d.length;
5641
5641
  bn(d).reverse().forEach(function(g, m) {
@@ -5901,10 +5901,10 @@ var Yx = "DismissableLayer", wi = "dismissableLayer.update", Xx = "dismissableLa
5901
5901
  onInteractOutside: i,
5902
5902
  onDismiss: u,
5903
5903
  ...s
5904
- } = t, l = y.useContext(kd), [c, p] = y.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = y.useState({}), b = Ee(e, (I) => p(I)), g = Array.from(l.layers), [m] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), v = g.indexOf(m), x = c ? g.indexOf(c) : -1, S = l.layersWithOutsidePointerEventsDisabled.size > 0, w = x >= v, T = Qx((I) => {
5904
+ } = t, l = y.useContext(kd), [c, p] = y.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = y.useState({}), b = Ee(e, (I) => p(I)), g = Array.from(l.layers), [m] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), v = g.indexOf(m), x = c ? g.indexOf(c) : -1, w = l.layersWithOutsidePointerEventsDisabled.size > 0, C = x >= v, T = Qx((I) => {
5905
5905
  const L = I.target, $ = [...l.branches].some((B) => B.contains(L));
5906
- !w || $ || (o == null || o(I), i == null || i(I), I.defaultPrevented || u == null || u());
5907
- }, f), _ = ew((I) => {
5906
+ !C || $ || (o == null || o(I), i == null || i(I), I.defaultPrevented || u == null || u());
5907
+ }, f), P = ew((I) => {
5908
5908
  const L = I.target;
5909
5909
  [...l.branches].some((B) => B.contains(L)) || (a == null || a(I), i == null || i(I), I.defaultPrevented || u == null || u());
5910
5910
  }, f);
@@ -5926,11 +5926,11 @@ var Yx = "DismissableLayer", wi = "dismissableLayer.update", Xx = "dismissableLa
5926
5926
  ...s,
5927
5927
  ref: b,
5928
5928
  style: {
5929
- pointerEvents: S ? w ? "auto" : "none" : void 0,
5929
+ pointerEvents: w ? C ? "auto" : "none" : void 0,
5930
5930
  ...t.style
5931
5931
  },
5932
- onFocusCapture: ce(t.onFocusCapture, _.onFocusCapture),
5933
- onBlurCapture: ce(t.onBlurCapture, _.onBlurCapture),
5932
+ onFocusCapture: ce(t.onFocusCapture, P.onFocusCapture),
5933
+ onBlurCapture: ce(t.onBlurCapture, P.onBlurCapture),
5934
5934
  onPointerDownCapture: ce(
5935
5935
  t.onPointerDownCapture,
5936
5936
  T.onPointerDownCapture
@@ -6187,8 +6187,8 @@ const hw = async (t, e, r) => {
6187
6187
  fn: v
6188
6188
  } = u[g], {
6189
6189
  x,
6190
- y: S,
6191
- data: w,
6190
+ y: w,
6191
+ data: C,
6192
6192
  reset: T
6193
6193
  } = await v({
6194
6194
  x: c,
@@ -6204,11 +6204,11 @@ const hw = async (t, e, r) => {
6204
6204
  floating: e
6205
6205
  }
6206
6206
  });
6207
- c = x ?? c, p = S ?? p, d = {
6207
+ c = x ?? c, p = w ?? p, d = {
6208
6208
  ...d,
6209
6209
  [m]: {
6210
6210
  ...d[m],
6211
- ...w
6211
+ ...C
6212
6212
  }
6213
6213
  }, T && b <= 50 && (b++, typeof T == "object" && (T.placement && (f = T.placement), T.rects && (l = T.rects === !0 ? await i.getElementRects({
6214
6214
  reference: t,
@@ -6253,7 +6253,7 @@ async function gn(t, e) {
6253
6253
  y: o,
6254
6254
  width: i.floating.width,
6255
6255
  height: i.floating.height
6256
- } : i.reference, S = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u.floating)), w = await (a.isElement == null ? void 0 : a.isElement(S)) ? await (a.getScale == null ? void 0 : a.getScale(S)) || {
6256
+ } : i.reference, w = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u.floating)), C = await (a.isElement == null ? void 0 : a.isElement(w)) ? await (a.getScale == null ? void 0 : a.getScale(w)) || {
6257
6257
  x: 1,
6258
6258
  y: 1
6259
6259
  } : {
@@ -6262,14 +6262,14 @@ async function gn(t, e) {
6262
6262
  }, T = ko(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
6263
6263
  elements: u,
6264
6264
  rect: x,
6265
- offsetParent: S,
6265
+ offsetParent: w,
6266
6266
  strategy: s
6267
6267
  }) : x);
6268
6268
  return {
6269
- top: (v.top - T.top + b.top) / w.y,
6270
- bottom: (T.bottom - v.bottom + b.bottom) / w.y,
6271
- left: (v.left - T.left + b.left) / w.x,
6272
- right: (T.right - v.right + b.right) / w.x
6269
+ top: (v.top - T.top + b.top) / C.y,
6270
+ bottom: (T.bottom - v.bottom + b.bottom) / C.y,
6271
+ left: (v.left - T.left + b.left) / C.x,
6272
+ right: (T.right - v.right + b.right) / C.x
6273
6273
  };
6274
6274
  }
6275
6275
  const mw = (t) => ({
@@ -6293,10 +6293,10 @@ const mw = (t) => ({
6293
6293
  const p = Id(c), f = {
6294
6294
  x: r,
6295
6295
  y: n
6296
- }, d = Ou(o), b = Au(d), g = await i.getDimensions(l), m = d === "y", v = m ? "top" : "left", x = m ? "bottom" : "right", S = m ? "clientHeight" : "clientWidth", w = a.reference[b] + a.reference[d] - f[d] - a.floating[b], T = f[d] - a.reference[d], _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
6297
- let I = _ ? _[S] : 0;
6298
- (!I || !await (i.isElement == null ? void 0 : i.isElement(_))) && (I = u.floating[S] || a.floating[b]);
6299
- const L = w / 2 - T / 2, $ = I / 2 - g[b] / 2 - 1, B = Ft(p[v], $), C = Ft(p[x], $), N = B, R = I - g[b] - C, M = I / 2 - g[b] / 2 + L, E = Si(N, M, R), O = !s.arrow && Wr(o) != null && M !== E && a.reference[b] / 2 - (M < N ? B : C) - g[b] / 2 < 0, A = O ? M < N ? M - N : M - R : 0;
6296
+ }, d = Ou(o), b = Au(d), g = await i.getDimensions(l), m = d === "y", v = m ? "top" : "left", x = m ? "bottom" : "right", w = m ? "clientHeight" : "clientWidth", C = a.reference[b] + a.reference[d] - f[d] - a.floating[b], T = f[d] - a.reference[d], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
6297
+ let I = P ? P[w] : 0;
6298
+ (!I || !await (i.isElement == null ? void 0 : i.isElement(P))) && (I = u.floating[w] || a.floating[b]);
6299
+ const L = C / 2 - T / 2, $ = I / 2 - g[b] / 2 - 1, B = Ft(p[v], $), S = Ft(p[x], $), N = B, R = I - g[b] - S, M = I / 2 - g[b] / 2 + L, E = Si(N, M, R), O = !s.arrow && Wr(o) != null && M !== E && a.reference[b] / 2 - (M < N ? B : S) - g[b] / 2 < 0, A = O ? M < N ? M - N : M - R : 0;
6300
6300
  return {
6301
6301
  [d]: f[d] + A,
6302
6302
  data: {
@@ -6333,20 +6333,20 @@ const mw = (t) => ({
6333
6333
  } = Et(t, e);
6334
6334
  if ((r = a.arrow) != null && r.alignmentOffset)
6335
6335
  return {};
6336
- const v = Nt(o), x = rt(u), S = Nt(u) === u, w = await (s.isRTL == null ? void 0 : s.isRTL(l.floating)), T = f || (S || !g ? [Oo(u)] : sw(u)), _ = b !== "none";
6337
- !f && _ && T.push(...fw(u, g, b, w));
6336
+ const v = Nt(o), x = rt(u), w = Nt(u) === u, C = await (s.isRTL == null ? void 0 : s.isRTL(l.floating)), T = f || (w || !g ? [Oo(u)] : sw(u)), P = b !== "none";
6337
+ !f && P && T.push(...fw(u, g, b, C));
6338
6338
  const I = [u, ...T], L = await gn(e, m), $ = [];
6339
6339
  let B = ((n = a.flip) == null ? void 0 : n.overflows) || [];
6340
6340
  if (c && $.push(L[v]), p) {
6341
- const M = uw(o, i, w);
6341
+ const M = uw(o, i, C);
6342
6342
  $.push(L[M[0]], L[M[1]]);
6343
6343
  }
6344
6344
  if (B = [...B, {
6345
6345
  placement: o,
6346
6346
  overflows: $
6347
6347
  }], !$.every((M) => M <= 0)) {
6348
- var C, N;
6349
- const M = (((C = a.flip) == null ? void 0 : C.index) || 0) + 1, E = I[M];
6348
+ var S, N;
6349
+ const M = (((S = a.flip) == null ? void 0 : S.index) || 0) + 1, E = I[M];
6350
6350
  if (E && (!(p === "alignment" ? x !== rt(E) : !1) || // We leave the current main axis only if every placement on that axis
6351
6351
  // overflows the main axis.
6352
6352
  B.every((D) => rt(D.placement) === x ? D.overflows[0] > 0 : !0)))
@@ -6365,7 +6365,7 @@ const mw = (t) => ({
6365
6365
  case "bestFit": {
6366
6366
  var R;
6367
6367
  const A = (R = B.filter((D) => {
6368
- if (_) {
6368
+ if (P) {
6369
6369
  const j = rt(D.placement);
6370
6370
  return j === x || // Create a bias to the `y` side axis due to horizontal
6371
6371
  // reading directions favoring greater width.
@@ -6524,12 +6524,12 @@ const yw = function(t) {
6524
6524
  }, c = await gn(e, s), p = rt(Nt(o)), f = Tu(p);
6525
6525
  let d = l[f], b = l[p];
6526
6526
  if (a) {
6527
- const m = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", x = d + c[m], S = d - c[v];
6528
- d = Si(x, d, S);
6527
+ const m = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", x = d + c[m], w = d - c[v];
6528
+ d = Si(x, d, w);
6529
6529
  }
6530
6530
  if (i) {
6531
- const m = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", x = b + c[m], S = b - c[v];
6532
- b = Si(x, b, S);
6531
+ const m = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", x = b + c[m], w = b - c[v];
6532
+ b = Si(x, b, w);
6533
6533
  }
6534
6534
  const g = u.fn({
6535
6535
  ...e,
@@ -6577,13 +6577,13 @@ const yw = function(t) {
6577
6577
  ...g
6578
6578
  };
6579
6579
  if (s) {
6580
- const S = f === "y" ? "height" : "width", w = a.reference[f] - a.floating[S] + m.mainAxis, T = a.reference[f] + a.reference[S] - m.mainAxis;
6581
- d < w ? d = w : d > T && (d = T);
6580
+ const w = f === "y" ? "height" : "width", C = a.reference[f] - a.floating[w] + m.mainAxis, T = a.reference[f] + a.reference[w] - m.mainAxis;
6581
+ d < C ? d = C : d > T && (d = T);
6582
6582
  }
6583
6583
  if (l) {
6584
6584
  var v, x;
6585
- const S = f === "y" ? "width" : "height", w = Dd.has(Nt(o)), T = a.reference[p] - a.floating[S] + (w && ((v = i.offset) == null ? void 0 : v[p]) || 0) + (w ? 0 : m.crossAxis), _ = a.reference[p] + a.reference[S] + (w ? 0 : ((x = i.offset) == null ? void 0 : x[p]) || 0) - (w ? m.crossAxis : 0);
6586
- b < T ? b = T : b > _ && (b = _);
6585
+ const w = f === "y" ? "width" : "height", C = Dd.has(Nt(o)), T = a.reference[p] - a.floating[w] + (C && ((v = i.offset) == null ? void 0 : v[p]) || 0) + (C ? 0 : m.crossAxis), P = a.reference[p] + a.reference[w] + (C ? 0 : ((x = i.offset) == null ? void 0 : x[p]) || 0) - (C ? m.crossAxis : 0);
6586
+ b < T ? b = T : b > P && (b = P);
6587
6587
  }
6588
6588
  return {
6589
6589
  [f]: d,
@@ -6612,11 +6612,11 @@ const yw = function(t) {
6612
6612
  } = a.floating;
6613
6613
  let m, v;
6614
6614
  p === "top" || p === "bottom" ? (m = p, v = f === (await (i.isRTL == null ? void 0 : i.isRTL(u.floating)) ? "start" : "end") ? "left" : "right") : (v = p, m = f === "end" ? "top" : "bottom");
6615
- const x = g - c.top - c.bottom, S = b - c.left - c.right, w = Ft(g - c[m], x), T = Ft(b - c[v], S), _ = !e.middlewareData.shift;
6616
- let I = w, L = T;
6617
- if ((r = e.middlewareData.shift) != null && r.enabled.x && (L = S), (n = e.middlewareData.shift) != null && n.enabled.y && (I = x), _ && !f) {
6618
- const B = Ie(c.left, 0), C = Ie(c.right, 0), N = Ie(c.top, 0), R = Ie(c.bottom, 0);
6619
- d ? L = b - 2 * (B !== 0 || C !== 0 ? B + C : Ie(c.left, c.right)) : I = g - 2 * (N !== 0 || R !== 0 ? N + R : Ie(c.top, c.bottom));
6615
+ const x = g - c.top - c.bottom, w = b - c.left - c.right, C = Ft(g - c[m], x), T = Ft(b - c[v], w), P = !e.middlewareData.shift;
6616
+ let I = C, L = T;
6617
+ if ((r = e.middlewareData.shift) != null && r.enabled.x && (L = w), (n = e.middlewareData.shift) != null && n.enabled.y && (I = x), P && !f) {
6618
+ const B = Ie(c.left, 0), S = Ie(c.right, 0), N = Ie(c.top, 0), R = Ie(c.bottom, 0);
6619
+ d ? L = b - 2 * (B !== 0 || S !== 0 ? B + S : Ie(c.left, c.right)) : I = g - 2 * (N !== 0 || R !== 0 ? N + R : Ie(c.top, c.bottom));
6620
6620
  }
6621
6621
  await s({
6622
6622
  ...e,
@@ -6796,8 +6796,8 @@ function rr(t, e, r, n) {
6796
6796
  const f = De(a), d = n && Xe(n) ? De(n) : n;
6797
6797
  let b = f, g = Ei(b);
6798
6798
  for (; g && n && d !== b; ) {
6799
- const m = Er(g), v = g.getBoundingClientRect(), x = Ke(g), S = v.left + (g.clientLeft + parseFloat(x.paddingLeft)) * m.x, w = v.top + (g.clientTop + parseFloat(x.paddingTop)) * m.y;
6800
- s *= m.x, l *= m.y, c *= m.x, p *= m.y, s += S, l += w, b = De(g), g = Ei(b);
6799
+ const m = Er(g), v = g.getBoundingClientRect(), x = Ke(g), w = v.left + (g.clientLeft + parseFloat(x.paddingLeft)) * m.x, C = v.top + (g.clientTop + parseFloat(x.paddingTop)) * m.y;
6800
+ s *= m.x, l *= m.y, c *= m.x, p *= m.y, s += w, l += C, b = De(g), g = Ei(b);
6801
6801
  }
6802
6802
  }
6803
6803
  return ko({
@@ -7054,30 +7054,30 @@ function Gw(t, e) {
7054
7054
  } = l;
7055
7055
  if (u || e(), !f || !d)
7056
7056
  return;
7057
- const b = Gn(p), g = Gn(o.clientWidth - (c + f)), m = Gn(o.clientHeight - (p + d)), v = Gn(c), S = {
7057
+ const b = Gn(p), g = Gn(o.clientWidth - (c + f)), m = Gn(o.clientHeight - (p + d)), v = Gn(c), w = {
7058
7058
  rootMargin: -b + "px " + -g + "px " + -m + "px " + -v + "px",
7059
7059
  threshold: Ie(0, Ft(1, s)) || 1
7060
7060
  };
7061
- let w = !0;
7062
- function T(_) {
7063
- const I = _[0].intersectionRatio;
7061
+ let C = !0;
7062
+ function T(P) {
7063
+ const I = P[0].intersectionRatio;
7064
7064
  if (I !== s) {
7065
- if (!w)
7065
+ if (!C)
7066
7066
  return i();
7067
7067
  I ? i(!1, I) : n = setTimeout(() => {
7068
7068
  i(!1, 1e-7);
7069
7069
  }, 1e3);
7070
7070
  }
7071
- I === 1 && !Fd(l, t.getBoundingClientRect()) && i(), w = !1;
7071
+ I === 1 && !Fd(l, t.getBoundingClientRect()) && i(), C = !1;
7072
7072
  }
7073
7073
  try {
7074
7074
  r = new IntersectionObserver(T, {
7075
- ...S,
7075
+ ...w,
7076
7076
  // Handle <iframe>s
7077
7077
  root: o.ownerDocument
7078
7078
  });
7079
7079
  } catch {
7080
- r = new IntersectionObserver(T, S);
7080
+ r = new IntersectionObserver(T, w);
7081
7081
  }
7082
7082
  r.observe(t);
7083
7083
  }
@@ -7102,8 +7102,8 @@ function Yw(t, e, r, n) {
7102
7102
  i && (d = new ResizeObserver((v) => {
7103
7103
  let [x] = v;
7104
7104
  x && x.target === l && d && (d.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
7105
- var S;
7106
- (S = d) == null || S.observe(e);
7105
+ var w;
7106
+ (w = d) == null || w.observe(e);
7107
7107
  })), r();
7108
7108
  }), l && !s && d.observe(l), d.observe(e));
7109
7109
  let b, g = s ? rr(t) : null;
@@ -7201,18 +7201,18 @@ function o3(t) {
7201
7201
  }), [f, d] = y.useState(n);
7202
7202
  Po(f, n) || d(n);
7203
7203
  const [b, g] = y.useState(null), [m, v] = y.useState(null), x = y.useCallback((D) => {
7204
- D !== _.current && (_.current = D, g(D));
7205
- }, []), S = y.useCallback((D) => {
7204
+ D !== P.current && (P.current = D, g(D));
7205
+ }, []), w = y.useCallback((D) => {
7206
7206
  D !== I.current && (I.current = D, v(D));
7207
- }, []), w = a || b, T = i || m, _ = y.useRef(null), I = y.useRef(null), L = y.useRef(c), $ = s != null, B = za(s), C = za(o), N = za(l), R = y.useCallback(() => {
7208
- if (!_.current || !I.current)
7207
+ }, []), C = a || b, T = i || m, P = y.useRef(null), I = y.useRef(null), L = y.useRef(c), $ = s != null, B = za(s), S = za(o), N = za(l), R = y.useCallback(() => {
7208
+ if (!P.current || !I.current)
7209
7209
  return;
7210
7210
  const D = {
7211
7211
  placement: e,
7212
7212
  strategy: r,
7213
7213
  middleware: f
7214
7214
  };
7215
- C.current && (D.platform = C.current), t3(_.current, I.current, D).then((j) => {
7215
+ S.current && (D.platform = S.current), t3(P.current, I.current, D).then((j) => {
7216
7216
  const U = {
7217
7217
  ...j,
7218
7218
  // The floating element's position may be recomputed while it's closed
@@ -7225,7 +7225,7 @@ function o3(t) {
7225
7225
  p(U);
7226
7226
  }));
7227
7227
  });
7228
- }, [f, e, r, C, N]);
7228
+ }, [f, e, r, S, N]);
7229
7229
  so(() => {
7230
7230
  l === !1 && L.current.isPositioned && (L.current.isPositioned = !1, p((D) => ({
7231
7231
  ...D,
@@ -7236,21 +7236,21 @@ function o3(t) {
7236
7236
  so(() => (M.current = !0, () => {
7237
7237
  M.current = !1;
7238
7238
  }), []), so(() => {
7239
- if (w && (_.current = w), T && (I.current = T), w && T) {
7239
+ if (C && (P.current = C), T && (I.current = T), C && T) {
7240
7240
  if (B.current)
7241
- return B.current(w, T, R);
7241
+ return B.current(C, T, R);
7242
7242
  R();
7243
7243
  }
7244
- }, [w, T, R, B, $]);
7244
+ }, [C, T, R, B, $]);
7245
7245
  const E = y.useMemo(() => ({
7246
- reference: _,
7246
+ reference: P,
7247
7247
  floating: I,
7248
7248
  setReference: x,
7249
- setFloating: S
7250
- }), [x, S]), O = y.useMemo(() => ({
7251
- reference: w,
7249
+ setFloating: w
7250
+ }), [x, w]), O = y.useMemo(() => ({
7251
+ reference: C,
7252
7252
  floating: T
7253
- }), [w, T]), A = y.useMemo(() => {
7253
+ }), [C, T]), A = y.useMemo(() => {
7254
7254
  const D = {
7255
7255
  position: r,
7256
7256
  left: 0,
@@ -7394,9 +7394,9 @@ var Iu = "PopperContent", [b3, g3] = Wd(Iu), Zd = y.forwardRef(
7394
7394
  updatePositionStrategy: d = "optimized",
7395
7395
  onPlaced: b,
7396
7396
  ...g
7397
- } = t, m = Yd(Iu, r), [v, x] = y.useState(null), S = Ee(e, (Qe) => x(Qe)), [w, T] = y.useState(null), _ = Vd(w), I = (_ == null ? void 0 : _.width) ?? 0, L = (_ == null ? void 0 : _.height) ?? 0, $ = n + (a !== "center" ? "-" + a : ""), B = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, C = Array.isArray(l) ? l : [l], N = C.length > 0, R = {
7397
+ } = t, m = Yd(Iu, r), [v, x] = y.useState(null), w = Ee(e, (Qe) => x(Qe)), [C, T] = y.useState(null), P = Vd(C), I = (P == null ? void 0 : P.width) ?? 0, L = (P == null ? void 0 : P.height) ?? 0, $ = n + (a !== "center" ? "-" + a : ""), B = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, S = Array.isArray(l) ? l : [l], N = S.length > 0, R = {
7398
7398
  padding: B,
7399
- boundary: C.filter(y3),
7399
+ boundary: S.filter(y3),
7400
7400
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
7401
7401
  altBoundary: N
7402
7402
  }, { refs: M, floatingStyles: E, placement: O, isPositioned: A, middlewareData: D } = o3({
@@ -7425,7 +7425,7 @@ var Iu = "PopperContent", [b3, g3] = Wd(Iu), Zd = y.forwardRef(
7425
7425
  pr.setProperty("--radix-popper-available-width", `${Na}px`), pr.setProperty("--radix-popper-available-height", `${zn}px`), pr.setProperty("--radix-popper-anchor-width", `${Ta}px`), pr.setProperty("--radix-popper-anchor-height", `${Jr}px`);
7426
7426
  }
7427
7427
  }),
7428
- w && f3({ element: w, padding: u }),
7428
+ C && f3({ element: C, padding: u }),
7429
7429
  x3({ arrowWidth: I, arrowHeight: L }),
7430
7430
  f && d3({ strategy: "referenceHidden", ...R })
7431
7431
  ]
@@ -7475,7 +7475,7 @@ var Iu = "PopperContent", [b3, g3] = Wd(Iu), Zd = y.forwardRef(
7475
7475
  "data-side": j,
7476
7476
  "data-align": U,
7477
7477
  ...g,
7478
- ref: S,
7478
+ ref: w,
7479
7479
  style: {
7480
7480
  ...g.style,
7481
7481
  // if the PopperContent hasn't been placed yet (not all measurements done)
@@ -7757,11 +7757,11 @@ var yn = "Tooltip", [$3, da] = la(yn), af = (t) => {
7757
7757
  I ? (s.onOpen(), document.dispatchEvent(new CustomEvent(Ni))) : s.onClose(), a == null || a(I);
7758
7758
  },
7759
7759
  caller: yn
7760
- }), S = y.useMemo(() => v ? m.current ? "delayed-open" : "instant-open" : "closed", [v]), w = y.useCallback(() => {
7760
+ }), w = y.useMemo(() => v ? m.current ? "delayed-open" : "instant-open" : "closed", [v]), C = y.useCallback(() => {
7761
7761
  window.clearTimeout(d.current), d.current = 0, m.current = !1, x(!0);
7762
7762
  }, [x]), T = y.useCallback(() => {
7763
7763
  window.clearTimeout(d.current), d.current = 0, x(!1);
7764
- }, [x]), _ = y.useCallback(() => {
7764
+ }, [x]), P = y.useCallback(() => {
7765
7765
  window.clearTimeout(d.current), d.current = window.setTimeout(() => {
7766
7766
  m.current = !0, x(!0), d.current = 0;
7767
7767
  }, g);
@@ -7774,16 +7774,16 @@ var yn = "Tooltip", [$3, da] = la(yn), af = (t) => {
7774
7774
  scope: e,
7775
7775
  contentId: f,
7776
7776
  open: v,
7777
- stateAttribute: S,
7777
+ stateAttribute: w,
7778
7778
  trigger: c,
7779
7779
  onTriggerChange: p,
7780
7780
  onTriggerEnter: y.useCallback(() => {
7781
- s.isOpenDelayedRef.current ? _() : w();
7782
- }, [s.isOpenDelayedRef, _, w]),
7781
+ s.isOpenDelayedRef.current ? P() : C();
7782
+ }, [s.isOpenDelayedRef, P, C]),
7783
7783
  onTriggerLeave: y.useCallback(() => {
7784
7784
  b ? T() : (window.clearTimeout(d.current), d.current = 0);
7785
7785
  }, [T, b]),
7786
- onOpen: w,
7786
+ onOpen: C,
7787
7787
  onClose: T,
7788
7788
  disableHoverableContent: b,
7789
7789
  children: r
@@ -7832,7 +7832,7 @@ var B3 = "TooltipPortal", [kC, H3] = la(B3, {
7832
7832
  u(null), p(!1);
7833
7833
  }, [p]), d = y.useCallback(
7834
7834
  (b, g) => {
7835
- const m = b.currentTarget, v = { x: b.clientX, y: b.clientY }, x = W3(v, m.getBoundingClientRect()), S = G3(v, x), w = Y3(g.getBoundingClientRect()), T = K3([...S, ...w]);
7835
+ const m = b.currentTarget, v = { x: b.clientX, y: b.clientY }, x = W3(v, m.getBoundingClientRect()), w = G3(v, x), C = Y3(g.getBoundingClientRect()), T = K3([...w, ...C]);
7836
7836
  u(T), p(!0);
7837
7837
  },
7838
7838
  [p]
@@ -7847,8 +7847,8 @@ var B3 = "TooltipPortal", [kC, H3] = la(B3, {
7847
7847
  }, [s, c, d, f]), y.useEffect(() => {
7848
7848
  if (i) {
7849
7849
  const b = (g) => {
7850
- const m = g.target, v = { x: g.clientX, y: g.clientY }, x = (s == null ? void 0 : s.contains(m)) || (c == null ? void 0 : c.contains(m)), S = !X3(v, i);
7851
- x ? f() : S && (f(), l());
7850
+ const m = g.target, v = { x: g.clientX, y: g.clientY }, x = (s == null ? void 0 : s.contains(m)) || (c == null ? void 0 : c.contains(m)), w = !X3(v, i);
7851
+ x ? f() : w && (f(), l());
7852
7852
  };
7853
7853
  return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
7854
7854
  }
@@ -8096,7 +8096,7 @@ const Nr = {
8096
8096
  {
8097
8097
  onClick: () => l(!s),
8098
8098
  className: `p-1 rounded transition-colors ${s || b ? "bg-primary/10 text-primary" : "text-muted-foreground hover:text-foreground"}`,
8099
- children: P.createElement(Nr[u].icon, {
8099
+ children: _.createElement(Nr[u].icon, {
8100
8100
  className: "h-3 w-3"
8101
8101
  })
8102
8102
  }
@@ -8106,7 +8106,7 @@ const Nr = {
8106
8106
  ] }),
8107
8107
  s ? /* @__PURE__ */ h("div", { className: "space-y-1.5 pl-2 border-l-2 border-primary/20", children: Ge.map((g) => {
8108
8108
  const m = Nr[g].icon, v = c[g], x = v === void 0 ? Ge.find(
8109
- (S) => Ge.indexOf(S) > Ge.indexOf(g) && c[S] !== void 0
8109
+ (w) => Ge.indexOf(w) > Ge.indexOf(g) && c[w] !== void 0
8110
8110
  ) || "desktop" : null;
8111
8111
  return /* @__PURE__ */ k("div", { className: "flex items-center gap-2", children: [
8112
8112
  /* @__PURE__ */ h(xn, { children: /* @__PURE__ */ k(Pr, { children: [
@@ -8125,9 +8125,9 @@ const Nr = {
8125
8125
  type: "number",
8126
8126
  value: v ?? "",
8127
8127
  placeholder: x ? `${c[x] ?? i}` : "",
8128
- onChange: (S) => {
8129
- const w = S.target.value === "" ? void 0 : parseInt(S.target.value) || 0;
8130
- f(g, w);
8128
+ onChange: (w) => {
8129
+ const C = w.target.value === "" ? void 0 : parseInt(w.target.value) || 0;
8130
+ f(g, C);
8131
8131
  },
8132
8132
  min: n,
8133
8133
  max: o,
@@ -8343,7 +8343,7 @@ const Nr = {
8343
8343
  {
8344
8344
  onClick: () => l(!s),
8345
8345
  className: `p-1 rounded transition-colors ${s || d ? "bg-primary/10 text-primary" : "text-muted-foreground hover:text-foreground"}`,
8346
- children: P.createElement(Nr[u].icon, {
8346
+ children: _.createElement(Nr[u].icon, {
8347
8347
  className: "h-3 w-3"
8348
8348
  })
8349
8349
  }
@@ -8412,34 +8412,34 @@ const Nr = {
8412
8412
  opacity: g = 100
8413
8413
  }) => {
8414
8414
  const m = Te();
8415
- let v, x, S;
8415
+ let v, x, w;
8416
8416
  try {
8417
8417
  const { connectors: M, events: E } = ae((O) => ({
8418
8418
  events: O.events
8419
8419
  }));
8420
- v = M.connect, x = M.drag, S = E.selected;
8420
+ v = M.connect, x = M.drag, w = E.selected;
8421
8421
  } catch {
8422
8422
  }
8423
- const w = {
8423
+ const C = {
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
- }, T = w[r] || w.md, _ = p === "auto" ? T.px : p, I = f === "auto" ? T.py : f, L = l === "auto" ? T.fs : l, $ = typeof d[m] == "object" ? `${d[m].top}px ${d[m].right}px ${d[m].bottom}px ${d[m].left}px` : `${d[m]}px`, B = e === "outline" ? "transparent" : n, C = e === "outline" ? n : o, N = e === "outline" ? 2 : i, R = e === "outline" ? n : a;
8427
+ }, T = C[r] || C.md, P = p === "auto" ? T.px : p, I = f === "auto" ? T.py : f, L = l === "auto" ? T.fs : l, $ = typeof d[m] == "object" ? `${d[m].top}px ${d[m].right}px ${d[m].bottom}px ${d[m].left}px` : `${d[m]}px`, B = e === "outline" ? "transparent" : n, S = e === "outline" ? n : o, N = e === "outline" ? 2 : i, R = e === "outline" ? n : a;
8428
8428
  return /* @__PURE__ */ h(
8429
8429
  "button",
8430
8430
  {
8431
8431
  ref: (M) => M && v && x && (v == null ? void 0 : v(x == null ? void 0 : x(M))),
8432
- className: `cursor-move transition-all hover:opacity-90 ${S ? "ring-2 ring-primary ring-offset-2" : ""}`,
8432
+ className: `cursor-move transition-all hover:opacity-90 ${w ? "ring-2 ring-primary ring-offset-2" : ""}`,
8433
8433
  style: {
8434
8434
  backgroundColor: B,
8435
- color: C,
8435
+ color: S,
8436
8436
  borderWidth: `${N}px`,
8437
8437
  borderColor: R,
8438
8438
  borderStyle: "solid",
8439
8439
  borderRadius: `${u}px`,
8440
8440
  fontWeight: s,
8441
8441
  fontSize: `${L}px`,
8442
- padding: `${I}px ${_}px`,
8442
+ padding: `${I}px ${P}px`,
8443
8443
  margin: $,
8444
8444
  width: c === "full" ? "100%" : "auto",
8445
8445
  boxShadow: b === "none" ? "none" : b,
@@ -8659,7 +8659,7 @@ Mu.craft = {
8659
8659
  settings: t6
8660
8660
  }
8661
8661
  };
8662
- const Z = (t, e) => t[e] || t.desktop || t.small || t.tablet || t.mobile || t || "", vr = ({ label: t, value: e, onChange: r, max: n = 1e4 }) => {
8662
+ const Z = (t, e) => t && (t[e] || t.desktop || t.small || t.tablet || t.mobile || t) || "", vr = ({ label: t, value: e, onChange: r, max: n = 1e4 }) => {
8663
8663
  var p, f, d;
8664
8664
  const o = Te(), a = ((p = e == null ? void 0 : e[o]) == null ? void 0 : p.type) || "custom", i = (f = e == null ? void 0 : e[o]) == null ? void 0 : f.value, u = ((d = e == null ? void 0 : e[o]) == null ? void 0 : d.unit) || "%";
8665
8665
  return /* @__PURE__ */ k("div", { className: "space-y-2", children: [
@@ -9237,25 +9237,25 @@ var Oi = {};
9237
9237
  t.default = o;
9238
9238
  })(Oi);
9239
9239
  (function(t) {
9240
- var e = q && q.__createBinding || (Object.create ? function(C, N, R, M) {
9240
+ var e = q && q.__createBinding || (Object.create ? function(S, N, R, M) {
9241
9241
  M === void 0 && (M = R);
9242
9242
  var E = Object.getOwnPropertyDescriptor(N, R);
9243
9243
  (!E || ("get" in E ? !N.__esModule : E.writable || E.configurable)) && (E = { enumerable: !0, get: function() {
9244
9244
  return N[R];
9245
- } }), Object.defineProperty(C, M, E);
9246
- } : function(C, N, R, M) {
9247
- M === void 0 && (M = R), C[M] = N[R];
9248
- }), r = q && q.__setModuleDefault || (Object.create ? function(C, N) {
9249
- Object.defineProperty(C, "default", { enumerable: !0, value: N });
9250
- } : function(C, N) {
9251
- C.default = N;
9252
- }), n = q && q.__importStar || function(C) {
9253
- if (C && C.__esModule) return C;
9245
+ } }), Object.defineProperty(S, M, E);
9246
+ } : function(S, N, R, M) {
9247
+ M === void 0 && (M = R), S[M] = N[R];
9248
+ }), r = q && q.__setModuleDefault || (Object.create ? function(S, N) {
9249
+ Object.defineProperty(S, "default", { enumerable: !0, value: N });
9250
+ } : function(S, N) {
9251
+ S.default = N;
9252
+ }), n = q && q.__importStar || function(S) {
9253
+ if (S && S.__esModule) return S;
9254
9254
  var N = {};
9255
- if (C != null) for (var R in C) R !== "default" && Object.prototype.hasOwnProperty.call(C, R) && e(N, C, R);
9256
- return r(N, C), N;
9257
- }, o = q && q.__importDefault || function(C) {
9258
- return C && C.__esModule ? C : { default: C };
9255
+ if (S != null) for (var R in S) R !== "default" && Object.prototype.hasOwnProperty.call(S, R) && e(N, S, R);
9256
+ return r(N, S), N;
9257
+ }, o = q && q.__importDefault || function(S) {
9258
+ return S && S.__esModule ? S : { default: S };
9259
9259
  };
9260
9260
  Object.defineProperty(t, "__esModule", { value: !0 }), t.decodeXML = t.decodeHTMLStrict = t.decodeHTMLAttribute = t.decodeHTML = t.determineBranch = t.EntityDecoder = t.DecodingMode = t.BinTrieFlags = t.fromCodePoint = t.replaceCodePoint = t.decodeCodePoint = t.xmlDecodeTree = t.htmlDecodeTree = void 0;
9261
9261
  var a = o($u);
@@ -9271,42 +9271,42 @@ var Oi = {};
9271
9271
  return s.fromCodePoint;
9272
9272
  } });
9273
9273
  var l;
9274
- (function(C) {
9275
- C[C.NUM = 35] = "NUM", C[C.SEMI = 59] = "SEMI", C[C.EQUALS = 61] = "EQUALS", C[C.ZERO = 48] = "ZERO", C[C.NINE = 57] = "NINE", C[C.LOWER_A = 97] = "LOWER_A", C[C.LOWER_F = 102] = "LOWER_F", C[C.LOWER_X = 120] = "LOWER_X", C[C.LOWER_Z = 122] = "LOWER_Z", C[C.UPPER_A = 65] = "UPPER_A", C[C.UPPER_F = 70] = "UPPER_F", C[C.UPPER_Z = 90] = "UPPER_Z";
9274
+ (function(S) {
9275
+ S[S.NUM = 35] = "NUM", S[S.SEMI = 59] = "SEMI", S[S.EQUALS = 61] = "EQUALS", S[S.ZERO = 48] = "ZERO", S[S.NINE = 57] = "NINE", S[S.LOWER_A = 97] = "LOWER_A", S[S.LOWER_F = 102] = "LOWER_F", S[S.LOWER_X = 120] = "LOWER_X", S[S.LOWER_Z = 122] = "LOWER_Z", S[S.UPPER_A = 65] = "UPPER_A", S[S.UPPER_F = 70] = "UPPER_F", S[S.UPPER_Z = 90] = "UPPER_Z";
9276
9276
  })(l || (l = {}));
9277
9277
  var c = 32, p;
9278
- (function(C) {
9279
- C[C.VALUE_LENGTH = 49152] = "VALUE_LENGTH", C[C.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", C[C.JUMP_TABLE = 127] = "JUMP_TABLE";
9278
+ (function(S) {
9279
+ S[S.VALUE_LENGTH = 49152] = "VALUE_LENGTH", S[S.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", S[S.JUMP_TABLE = 127] = "JUMP_TABLE";
9280
9280
  })(p = t.BinTrieFlags || (t.BinTrieFlags = {}));
9281
- function f(C) {
9282
- return C >= l.ZERO && C <= l.NINE;
9281
+ function f(S) {
9282
+ return S >= l.ZERO && S <= l.NINE;
9283
9283
  }
9284
- function d(C) {
9285
- return C >= l.UPPER_A && C <= l.UPPER_F || C >= l.LOWER_A && C <= l.LOWER_F;
9284
+ function d(S) {
9285
+ return S >= l.UPPER_A && S <= l.UPPER_F || S >= l.LOWER_A && S <= l.LOWER_F;
9286
9286
  }
9287
- function b(C) {
9288
- return C >= l.UPPER_A && C <= l.UPPER_Z || C >= l.LOWER_A && C <= l.LOWER_Z || f(C);
9287
+ function b(S) {
9288
+ return S >= l.UPPER_A && S <= l.UPPER_Z || S >= l.LOWER_A && S <= l.LOWER_Z || f(S);
9289
9289
  }
9290
- function g(C) {
9291
- return C === l.EQUALS || b(C);
9290
+ function g(S) {
9291
+ return S === l.EQUALS || b(S);
9292
9292
  }
9293
9293
  var m;
9294
- (function(C) {
9295
- C[C.EntityStart = 0] = "EntityStart", C[C.NumericStart = 1] = "NumericStart", C[C.NumericDecimal = 2] = "NumericDecimal", C[C.NumericHex = 3] = "NumericHex", C[C.NamedEntity = 4] = "NamedEntity";
9294
+ (function(S) {
9295
+ S[S.EntityStart = 0] = "EntityStart", S[S.NumericStart = 1] = "NumericStart", S[S.NumericDecimal = 2] = "NumericDecimal", S[S.NumericHex = 3] = "NumericHex", S[S.NamedEntity = 4] = "NamedEntity";
9296
9296
  })(m || (m = {}));
9297
9297
  var v;
9298
- (function(C) {
9299
- C[C.Legacy = 0] = "Legacy", C[C.Strict = 1] = "Strict", C[C.Attribute = 2] = "Attribute";
9298
+ (function(S) {
9299
+ S[S.Legacy = 0] = "Legacy", S[S.Strict = 1] = "Strict", S[S.Attribute = 2] = "Attribute";
9300
9300
  })(v = t.DecodingMode || (t.DecodingMode = {}));
9301
9301
  var x = (
9302
9302
  /** @class */
9303
9303
  function() {
9304
- function C(N, R, M) {
9304
+ function S(N, R, M) {
9305
9305
  this.decodeTree = N, this.emitCodePoint = R, this.errors = M, this.state = m.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = v.Strict;
9306
9306
  }
9307
- return C.prototype.startEntity = function(N) {
9307
+ return S.prototype.startEntity = function(N) {
9308
9308
  this.decodeMode = N, this.state = m.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
9309
- }, C.prototype.write = function(N, R) {
9309
+ }, S.prototype.write = function(N, R) {
9310
9310
  switch (this.state) {
9311
9311
  case m.EntityStart:
9312
9312
  return N.charCodeAt(R) === l.NUM ? (this.state = m.NumericStart, this.consumed += 1, this.stateNumericStart(N, R + 1)) : (this.state = m.NamedEntity, this.stateNamedEntity(N, R));
@@ -9319,14 +9319,14 @@ var Oi = {};
9319
9319
  case m.NamedEntity:
9320
9320
  return this.stateNamedEntity(N, R);
9321
9321
  }
9322
- }, C.prototype.stateNumericStart = function(N, R) {
9322
+ }, S.prototype.stateNumericStart = function(N, R) {
9323
9323
  return R >= N.length ? -1 : (N.charCodeAt(R) | c) === l.LOWER_X ? (this.state = m.NumericHex, this.consumed += 1, this.stateNumericHex(N, R + 1)) : (this.state = m.NumericDecimal, this.stateNumericDecimal(N, R));
9324
- }, C.prototype.addToNumericResult = function(N, R, M, E) {
9324
+ }, S.prototype.addToNumericResult = function(N, R, M, E) {
9325
9325
  if (R !== M) {
9326
9326
  var O = M - R;
9327
9327
  this.result = this.result * Math.pow(E, O) + parseInt(N.substr(R, O), E), this.consumed += O;
9328
9328
  }
9329
- }, C.prototype.stateNumericHex = function(N, R) {
9329
+ }, S.prototype.stateNumericHex = function(N, R) {
9330
9330
  for (var M = R; R < N.length; ) {
9331
9331
  var E = N.charCodeAt(R);
9332
9332
  if (f(E) || d(E))
@@ -9335,7 +9335,7 @@ var Oi = {};
9335
9335
  return this.addToNumericResult(N, M, R, 16), this.emitNumericEntity(E, 3);
9336
9336
  }
9337
9337
  return this.addToNumericResult(N, M, R, 16), -1;
9338
- }, C.prototype.stateNumericDecimal = function(N, R) {
9338
+ }, S.prototype.stateNumericDecimal = function(N, R) {
9339
9339
  for (var M = R; R < N.length; ) {
9340
9340
  var E = N.charCodeAt(R);
9341
9341
  if (f(E))
@@ -9344,7 +9344,7 @@ var Oi = {};
9344
9344
  return this.addToNumericResult(N, M, R, 10), this.emitNumericEntity(E, 2);
9345
9345
  }
9346
9346
  return this.addToNumericResult(N, M, R, 10), -1;
9347
- }, C.prototype.emitNumericEntity = function(N, R) {
9347
+ }, S.prototype.emitNumericEntity = function(N, R) {
9348
9348
  var M;
9349
9349
  if (this.consumed <= R)
9350
9350
  return (M = this.errors) === null || M === void 0 || M.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
@@ -9353,10 +9353,10 @@ var Oi = {};
9353
9353
  else if (this.decodeMode === v.Strict)
9354
9354
  return 0;
9355
9355
  return this.emitCodePoint((0, u.replaceCodePoint)(this.result), this.consumed), this.errors && (N !== l.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
9356
- }, C.prototype.stateNamedEntity = function(N, R) {
9356
+ }, S.prototype.stateNamedEntity = function(N, R) {
9357
9357
  for (var M = this.decodeTree, E = M[this.treeIndex], O = (E & p.VALUE_LENGTH) >> 14; R < N.length; R++, this.excess++) {
9358
9358
  var A = N.charCodeAt(R);
9359
- if (this.treeIndex = w(M, E, this.treeIndex + Math.max(1, O), A), this.treeIndex < 0)
9359
+ if (this.treeIndex = C(M, E, this.treeIndex + Math.max(1, O), A), this.treeIndex < 0)
9360
9360
  return this.result === 0 || // If we are parsing an attribute
9361
9361
  this.decodeMode === v.Attribute && // We shouldn't have consumed any characters after the entity,
9362
9362
  (O === 0 || // And there should be no invalid characters.
@@ -9368,13 +9368,13 @@ var Oi = {};
9368
9368
  }
9369
9369
  }
9370
9370
  return -1;
9371
- }, C.prototype.emitNotTerminatedNamedEntity = function() {
9371
+ }, S.prototype.emitNotTerminatedNamedEntity = function() {
9372
9372
  var N, R = this, M = R.result, E = R.decodeTree, O = (E[M] & p.VALUE_LENGTH) >> 14;
9373
9373
  return this.emitNamedEntityData(M, O, this.consumed), (N = this.errors) === null || N === void 0 || N.missingSemicolonAfterCharacterReference(), this.consumed;
9374
- }, C.prototype.emitNamedEntityData = function(N, R, M) {
9374
+ }, S.prototype.emitNamedEntityData = function(N, R, M) {
9375
9375
  var E = this.decodeTree;
9376
9376
  return this.emitCodePoint(R === 1 ? E[N] & ~p.VALUE_LENGTH : E[N + 1], M), R === 3 && this.emitCodePoint(E[N + 2], M), M;
9377
- }, C.prototype.end = function() {
9377
+ }, S.prototype.end = function() {
9378
9378
  var N;
9379
9379
  switch (this.state) {
9380
9380
  case m.NamedEntity:
@@ -9388,12 +9388,12 @@ var Oi = {};
9388
9388
  case m.EntityStart:
9389
9389
  return 0;
9390
9390
  }
9391
- }, C;
9391
+ }, S;
9392
9392
  }()
9393
9393
  );
9394
9394
  t.EntityDecoder = x;
9395
- function S(C) {
9396
- var N = "", R = new x(C, function(M) {
9395
+ function w(S) {
9396
+ var N = "", R = new x(S, function(M) {
9397
9397
  return N += (0, u.fromCodePoint)(M);
9398
9398
  });
9399
9399
  return function(E, O) {
@@ -9414,41 +9414,41 @@ var Oi = {};
9414
9414
  return N = "", U;
9415
9415
  };
9416
9416
  }
9417
- function w(C, N, R, M) {
9417
+ function C(S, N, R, M) {
9418
9418
  var E = (N & p.BRANCH_LENGTH) >> 7, O = N & p.JUMP_TABLE;
9419
9419
  if (E === 0)
9420
9420
  return O !== 0 && M === O ? R : -1;
9421
9421
  if (O) {
9422
9422
  var A = M - O;
9423
- return A < 0 || A >= E ? -1 : C[R + A] - 1;
9423
+ return A < 0 || A >= E ? -1 : S[R + A] - 1;
9424
9424
  }
9425
9425
  for (var D = R, j = D + E - 1; D <= j; ) {
9426
- var U = D + j >>> 1, pe = C[U];
9426
+ var U = D + j >>> 1, pe = S[U];
9427
9427
  if (pe < M)
9428
9428
  D = U + 1;
9429
9429
  else if (pe > M)
9430
9430
  j = U - 1;
9431
9431
  else
9432
- return C[U + E];
9432
+ return S[U + E];
9433
9433
  }
9434
9434
  return -1;
9435
9435
  }
9436
- t.determineBranch = w;
9437
- var T = S(a.default), _ = S(i.default);
9438
- function I(C, N) {
9439
- return N === void 0 && (N = v.Legacy), T(C, N);
9436
+ t.determineBranch = C;
9437
+ var T = w(a.default), P = w(i.default);
9438
+ function I(S, N) {
9439
+ return N === void 0 && (N = v.Legacy), T(S, N);
9440
9440
  }
9441
9441
  t.decodeHTML = I;
9442
- function L(C) {
9443
- return T(C, v.Attribute);
9442
+ function L(S) {
9443
+ return T(S, v.Attribute);
9444
9444
  }
9445
9445
  t.decodeHTMLAttribute = L;
9446
- function $(C) {
9447
- return T(C, v.Strict);
9446
+ function $(S) {
9447
+ return T(S, v.Strict);
9448
9448
  }
9449
9449
  t.decodeHTMLStrict = $;
9450
- function B(C) {
9451
- return _(C, v.Strict);
9450
+ function B(S) {
9451
+ return P(S, v.Strict);
9452
9452
  }
9453
9453
  t.decodeXML = B;
9454
9454
  })(Cn);
@@ -11315,14 +11315,14 @@ function m4(t) {
11315
11315
  } });
11316
11316
  })(lo);
11317
11317
  (function(t) {
11318
- var e = q && q.__createBinding || (Object.create ? function(v, x, S, w) {
11319
- w === void 0 && (w = S);
11320
- var T = Object.getOwnPropertyDescriptor(x, S);
11318
+ var e = q && q.__createBinding || (Object.create ? function(v, x, w, C) {
11319
+ C === void 0 && (C = w);
11320
+ var T = Object.getOwnPropertyDescriptor(x, w);
11321
11321
  (!T || ("get" in T ? !x.__esModule : T.writable || T.configurable)) && (T = { enumerable: !0, get: function() {
11322
- return x[S];
11323
- } }), Object.defineProperty(v, w, T);
11324
- } : function(v, x, S, w) {
11325
- w === void 0 && (w = S), v[w] = x[S];
11322
+ return x[w];
11323
+ } }), Object.defineProperty(v, C, T);
11324
+ } : function(v, x, w, C) {
11325
+ C === void 0 && (C = w), v[C] = x[w];
11326
11326
  }), r = q && q.__setModuleDefault || (Object.create ? function(v, x) {
11327
11327
  Object.defineProperty(v, "default", { enumerable: !0, value: x });
11328
11328
  } : function(v, x) {
@@ -11330,7 +11330,7 @@ function m4(t) {
11330
11330
  }), n = q && q.__importStar || function(v) {
11331
11331
  if (v && v.__esModule) return v;
11332
11332
  var x = {};
11333
- if (v != null) for (var S in v) S !== "default" && Object.prototype.hasOwnProperty.call(v, S) && e(x, v, S);
11333
+ if (v != null) for (var w in v) w !== "default" && Object.prototype.hasOwnProperty.call(v, w) && e(x, v, w);
11334
11334
  return r(x, v), x;
11335
11335
  }, o = q && q.__importDefault || function(v) {
11336
11336
  return v && v.__esModule ? v : { default: v };
@@ -11347,17 +11347,17 @@ function m4(t) {
11347
11347
  return s.DomHandler;
11348
11348
  } });
11349
11349
  function l(v, x) {
11350
- var S = new u.DomHandler(void 0, x);
11351
- return new a.Parser(S, x).end(v), S.root;
11350
+ var w = new u.DomHandler(void 0, x);
11351
+ return new a.Parser(w, x).end(v), w.root;
11352
11352
  }
11353
11353
  t.parseDocument = l;
11354
11354
  function c(v, x) {
11355
11355
  return l(v, x).children;
11356
11356
  }
11357
11357
  t.parseDOM = c;
11358
- function p(v, x, S) {
11359
- var w = new u.DomHandler(v, x, S);
11360
- return new a.Parser(w, x);
11358
+ function p(v, x, w) {
11359
+ var C = new u.DomHandler(v, x, w);
11360
+ return new a.Parser(C, x);
11361
11361
  }
11362
11362
  t.createDomStream = p;
11363
11363
  var f = ju;
@@ -11469,23 +11469,23 @@ var P4 = Ir, _4 = P4, Hf = { exports: {} };
11469
11469
  t.exports ? t.exports = r() : e.parseSrcset = r();
11470
11470
  })(q, function() {
11471
11471
  return function(e) {
11472
- function r(w) {
11473
- return w === " " || // space
11474
- w === " " || // horizontal tab
11475
- w === `
11472
+ function r(C) {
11473
+ return C === " " || // space
11474
+ C === " " || // horizontal tab
11475
+ C === `
11476
11476
  ` || // new line
11477
- w === "\f" || // form feed
11478
- w === "\r";
11477
+ C === "\f" || // form feed
11478
+ C === "\r";
11479
11479
  }
11480
- function n(w) {
11481
- var T, _ = w.exec(e.substring(m));
11482
- if (_)
11483
- return T = _[0], m += T.length, T;
11480
+ function n(C) {
11481
+ var T, P = C.exec(e.substring(m));
11482
+ if (P)
11483
+ return T = P[0], m += T.length, T;
11484
11484
  }
11485
11485
  for (var o = e.length, a = /^[ \t\n\r\u000c]+/, i = /^[, \t\n\r\u000c]+/, u = /^[^ \t\n\r\u000c]+/, s = /[,]+$/, l = /^\d+$/, c = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, p, f, d, b, g, m = 0, v = []; ; ) {
11486
11486
  if (n(i), m >= o)
11487
11487
  return v;
11488
- p = n(u), f = [], p.slice(-1) === "," ? (p = p.replace(s, ""), S()) : x();
11488
+ p = n(u), f = [], p.slice(-1) === "," ? (p = p.replace(s, ""), w()) : x();
11489
11489
  }
11490
11490
  function x() {
11491
11491
  for (n(a), d = "", b = "in descriptor"; ; ) {
@@ -11493,12 +11493,12 @@ var P4 = Ir, _4 = P4, Hf = { exports: {} };
11493
11493
  if (r(g))
11494
11494
  d && (f.push(d), d = "", b = "after descriptor");
11495
11495
  else if (g === ",") {
11496
- m += 1, d && f.push(d), S();
11496
+ m += 1, d && f.push(d), w();
11497
11497
  return;
11498
11498
  } else if (g === "(")
11499
11499
  d = d + g, b = "in parens";
11500
11500
  else if (g === "") {
11501
- d && f.push(d), S();
11501
+ d && f.push(d), w();
11502
11502
  return;
11503
11503
  } else
11504
11504
  d = d + g;
@@ -11506,24 +11506,24 @@ var P4 = Ir, _4 = P4, Hf = { exports: {} };
11506
11506
  if (g === ")")
11507
11507
  d = d + g, b = "in descriptor";
11508
11508
  else if (g === "") {
11509
- f.push(d), S();
11509
+ f.push(d), w();
11510
11510
  return;
11511
11511
  } else
11512
11512
  d = d + g;
11513
11513
  else if (b === "after descriptor" && !r(g))
11514
11514
  if (g === "") {
11515
- S();
11515
+ w();
11516
11516
  return;
11517
11517
  } else
11518
11518
  b = "in descriptor", m -= 1;
11519
11519
  m += 1;
11520
11520
  }
11521
11521
  }
11522
- function S() {
11523
- var w = !1, T, _, I, L, $ = {}, B, C, N, R, M;
11522
+ function w() {
11523
+ var C = !1, T, P, I, L, $ = {}, B, S, N, R, M;
11524
11524
  for (L = 0; L < f.length; L++)
11525
- B = f[L], C = B[B.length - 1], N = B.substring(0, B.length - 1), R = parseInt(N, 10), M = parseFloat(N), l.test(N) && C === "w" ? ((T || _) && (w = !0), R === 0 ? w = !0 : T = R) : c.test(N) && C === "x" ? ((T || _ || I) && (w = !0), M < 0 ? w = !0 : _ = M) : l.test(N) && C === "h" ? ((I || _) && (w = !0), R === 0 ? w = !0 : I = R) : w = !0;
11526
- w ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + B + "'.") : ($.url = p, T && ($.w = T), _ && ($.d = _), I && ($.h = I), v.push($));
11525
+ B = f[L], S = B[B.length - 1], N = B.substring(0, B.length - 1), R = parseInt(N, 10), M = parseFloat(N), l.test(N) && S === "w" ? ((T || P) && (C = !0), R === 0 ? C = !0 : T = R) : c.test(N) && S === "x" ? ((T || P || I) && (C = !0), M < 0 ? C = !0 : P = M) : l.test(N) && S === "h" ? ((I || P) && (C = !0), R === 0 ? C = !0 : I = R) : C = !0;
11526
+ C ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + B + "'.") : ($.url = p, T && ($.w = T), P && ($.d = P), I && ($.h = I), v.push($));
11527
11527
  }
11528
11528
  };
11529
11529
  });
@@ -11562,9 +11562,9 @@ let Kl = I4, Jl = Je, _i = class Ff extends Error {
11562
11562
  let g = 20, m = Math.max(0, this.column - g), v = Math.max(
11563
11563
  this.column + g,
11564
11564
  this.endColumn + g
11565
- ), x = c.slice(m, v), S = n(d.replace(/\d/g, " ")) + c.slice(0, Math.min(this.column - 1, g - 1)).replace(/[^\t]/g, " ");
11565
+ ), x = c.slice(m, v), 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) + a(x) + `
11567
- ` + S + o("^");
11567
+ ` + w + o("^");
11568
11568
  }
11569
11569
  let b = n(d.replace(/\d/g, " ")) + c.slice(0, this.column - 1).replace(/[^\t]/g, " ");
11570
11570
  return o(">") + n(d) + a(c) + `
@@ -12774,16 +12774,16 @@ var f0 = b8;
12774
12774
  const Wa = 39, ic = 34, Zn = 92, uc = 47, Qn = 10, nn = 32, eo = 12, to = 9, ro = 13, g8 = 91, v8 = 93, y8 = 40, x8 = 41, w8 = 123, S8 = 125, C8 = 59, E8 = 42, N8 = 58, T8 = 64, no = /[\t\n\f\r "#'()/;[\\\]{}]/g, oo = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, A8 = /.[\r\n"'(/\\]/, sc = /[\da-f]/i;
12775
12775
  var O8 = function(e, r = {}) {
12776
12776
  let n = e.css.valueOf(), o = r.ignoreErrors, a, i, u, s, l, c, p, f, d, b, g = n.length, m = 0, v = [], x = [];
12777
- function S() {
12777
+ function w() {
12778
12778
  return m;
12779
12779
  }
12780
- function w(L) {
12780
+ function C(L) {
12781
12781
  throw e.error("Unclosed " + L, m);
12782
12782
  }
12783
12783
  function T() {
12784
12784
  return x.length === 0 && m >= g;
12785
12785
  }
12786
- function _(L) {
12786
+ function P(L) {
12787
12787
  if (x.length) return x.pop();
12788
12788
  if (m >= g) return;
12789
12789
  let $ = L ? L.ignoreUnclosed : !1;
@@ -12820,7 +12820,7 @@ var O8 = function(e, r = {}) {
12820
12820
  s = m;
12821
12821
  break;
12822
12822
  } else
12823
- w("bracket");
12823
+ C("bracket");
12824
12824
  for (f = s; n.charCodeAt(f - 1) === Zn; )
12825
12825
  f -= 1, p = !p;
12826
12826
  } while (p);
@@ -12838,7 +12838,7 @@ var O8 = function(e, r = {}) {
12838
12838
  s = m + 1;
12839
12839
  break;
12840
12840
  } else
12841
- w("string");
12841
+ C("string");
12842
12842
  for (f = s; n.charCodeAt(f - 1) === Zn; )
12843
12843
  f -= 1, p = !p;
12844
12844
  } while (p);
@@ -12861,7 +12861,7 @@ var O8 = function(e, r = {}) {
12861
12861
  break;
12862
12862
  }
12863
12863
  default: {
12864
- a === uc && n.charCodeAt(m + 1) === E8 ? (s = n.indexOf("*/", m + 2) + 1, s === 0 && (o || $ ? s = n.length : w("comment")), c = ["comment", n.slice(m, s + 1), m, s], m = s) : (oo.lastIndex = m + 1, oo.test(n), oo.lastIndex === 0 ? s = n.length - 1 : s = oo.lastIndex - 2, c = ["word", n.slice(m, s + 1), m, s], v.push(c), m = s);
12864
+ a === uc && n.charCodeAt(m + 1) === E8 ? (s = n.indexOf("*/", m + 2) + 1, s === 0 && (o || $ ? s = n.length : C("comment")), c = ["comment", n.slice(m, s + 1), m, s], m = s) : (oo.lastIndex = m + 1, oo.test(n), oo.lastIndex === 0 ? s = n.length - 1 : s = oo.lastIndex - 2, c = ["word", n.slice(m, s + 1), m, s], v.push(c), m = s);
12865
12865
  break;
12866
12866
  }
12867
12867
  }
@@ -12873,8 +12873,8 @@ var O8 = function(e, r = {}) {
12873
12873
  return {
12874
12874
  back: I,
12875
12875
  endOfFile: T,
12876
- nextToken: _,
12877
- position: S
12876
+ nextToken: P,
12877
+ position: w
12878
12878
  };
12879
12879
  };
12880
12880
  let k8 = Ju, P8 = ya, _8 = xa, R8 = $n, lc = Qu, I8 = O8;
@@ -13841,12 +13841,12 @@ and ensure you are accounting for this risk.
13841
13841
  let A;
13842
13842
  typeof E == "function" ? A = E : typeof E == "string" && (A = kn.simpleTransform(E)), O === "*" ? b = A : d[O] = A;
13843
13843
  });
13844
- let g, m, v, x, S, w, T = !1;
13844
+ let g, m, v, x, w, C, T = !1;
13845
13845
  I();
13846
- const _ = new w5.Parser({
13846
+ const P = new w5.Parser({
13847
13847
  onopentag: function(E, O) {
13848
- if (e.onOpenTag && e.onOpenTag(E, O), e.enforceHtmlBoundary && E === "html" && I(), S) {
13849
- w++;
13848
+ if (e.onOpenTag && e.onOpenTag(E, O), e.enforceHtmlBoundary && E === "html" && I(), w) {
13849
+ C++;
13850
13850
  return;
13851
13851
  }
13852
13852
  const A = new a(E, O);
@@ -13854,7 +13854,7 @@ and ensure you are accounting for this risk.
13854
13854
  let D = !1;
13855
13855
  const j = !!A.text;
13856
13856
  let U;
13857
- if (yt(d, E) && (U = d[E](E, O), A.attribs = O = U.attribs, U.text !== void 0 && (A.innerText = U.text), E !== U.tagName && (A.name = E = U.tagName, x[g] = U.tagName)), b && (U = b(E, O), A.attribs = O = U.attribs, E !== U.tagName && (A.name = E = U.tagName, x[g] = U.tagName)), (!i(E) || e.disallowedTagsMode === "recursiveEscape" && !A5(v) || e.nestingLimit != null && g >= e.nestingLimit) && (D = !0, v[g] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && u.indexOf(E) !== -1 && (S = !0, w = 1)), g++, D) {
13857
+ if (yt(d, E) && (U = d[E](E, O), A.attribs = O = U.attribs, U.text !== void 0 && (A.innerText = U.text), E !== U.tagName && (A.name = E = U.tagName, x[g] = U.tagName)), b && (U = b(E, O), A.attribs = O = U.attribs, E !== U.tagName && (A.name = E = U.tagName, x[g] = U.tagName)), (!i(E) || e.disallowedTagsMode === "recursiveEscape" && !A5(v) || e.nestingLimit != null && g >= e.nestingLimit) && (D = !0, v[g] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && u.indexOf(E) !== -1 && (w = !0, C = 1)), g++, D) {
13858
13858
  if (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
13859
13859
  if (A.innerText && !j) {
13860
13860
  const H = L(A.innerText);
@@ -13972,7 +13972,7 @@ and ensure you are accounting for this risk.
13972
13972
  if (z === "style") {
13973
13973
  if (e.parseStyleAttributes)
13974
13974
  try {
13975
- const K = E5(E + " {" + H + "}", { map: !1 }), F = C(K, e.allowedStyles);
13975
+ const K = E5(E + " {" + H + "}", { map: !1 }), F = S(K, e.allowedStyles);
13976
13976
  if (H = N(F), H.length === 0) {
13977
13977
  delete A.attribs[z];
13978
13978
  return;
@@ -13990,7 +13990,7 @@ and ensure you are accounting for this risk.
13990
13990
  }), e.selfClosing.indexOf(E) !== -1 ? n += " />" : (n += ">", A.innerText && !j && !e.textFilter && (n += L(A.innerText), T = !0)), D && (n = o + L(n), o = ""), A.openingTagLength = n.length - A.tagPosition;
13991
13991
  },
13992
13992
  ontext: function(E) {
13993
- if (S)
13993
+ if (w)
13994
13994
  return;
13995
13995
  const O = m[m.length - 1];
13996
13996
  let A;
@@ -14008,9 +14008,9 @@ and ensure you are accounting for this risk.
14008
14008
  }
14009
14009
  },
14010
14010
  onclosetag: function(E, O) {
14011
- if (e.onCloseTag && e.onCloseTag(E, O), S)
14012
- if (w--, !w)
14013
- S = !1;
14011
+ if (e.onCloseTag && e.onCloseTag(E, O), w)
14012
+ if (C--, !C)
14013
+ w = !1;
14014
14014
  else
14015
14015
  return;
14016
14016
  const A = m.pop();
@@ -14020,7 +14020,7 @@ and ensure you are accounting for this risk.
14020
14020
  m.push(A);
14021
14021
  return;
14022
14022
  }
14023
- S = e.enforceHtmlBoundary ? E === "html" : !1, g--;
14023
+ w = e.enforceHtmlBoundary ? E === "html" : !1, g--;
14024
14024
  const D = v[g];
14025
14025
  if (D) {
14026
14026
  if (delete v[g], e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
@@ -14048,9 +14048,9 @@ and ensure you are accounting for this risk.
14048
14048
  n += "</" + E + ">", D && (n = o + L(n), o = ""), T = !1;
14049
14049
  }
14050
14050
  }, e.parser);
14051
- return _.write(t), _.end(), n;
14051
+ return P.write(t), P.end(), n;
14052
14052
  function I() {
14053
- n = "", g = 0, m = [], v = {}, x = {}, S = !1, w = 0;
14053
+ n = "", g = 0, m = [], v = {}, x = {}, w = !1, C = 0;
14054
14054
  }
14055
14055
  function L(E, O) {
14056
14056
  return typeof E != "string" && (E = E + ""), e.parser.decodeEntities && (E = E.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), O && (E = E.replace(/"/g, "&quot;"))), E = E.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), O && (E = E.replace(/"/g, "&quot;")), E;
@@ -14083,7 +14083,7 @@ and ensure you are accounting for this risk.
14083
14083
  url: A
14084
14084
  };
14085
14085
  }
14086
- function C(E, O) {
14086
+ function S(E, O) {
14087
14087
  if (!O)
14088
14088
  return E;
14089
14089
  const A = E.nodes[0];
@@ -14495,8 +14495,8 @@ const E0 = /* @__PURE__ */ Yo(k5), R5 = [
14495
14495
  "button",
14496
14496
  {
14497
14497
  type: "button",
14498
- onMouseDown: (S) => {
14499
- S.preventDefault(), l(m);
14498
+ onMouseDown: (w) => {
14499
+ w.preventDefault(), l(m);
14500
14500
  },
14501
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(v, { className: "h-3.5 w-3.5" })
@@ -14618,21 +14618,21 @@ const E0 = /* @__PURE__ */ Yo(k5), R5 = [
14618
14618
  g = L.connect, m = L.drag, v = $.selected;
14619
14619
  } catch {
14620
14620
  }
14621
- const x = Ai(t, b), S = typeof Z(l, d) == "object" ? `${Z(l, d).top}px ${Z(l, d).right}px ${Z(l, d).bottom}px ${Z(l, d).left}px` : `${Z(l, d)}px`, w = Mt(r, d, 16), T = Mt(a, d, 150) / 100, _ = Mt(i, d, 0), I = /<[^>]+>/.test(x);
14621
+ const x = Ai(t, b), w = typeof Z(l, d) == "object" ? `${Z(l, d).top}px ${Z(l, d).right}px ${Z(l, d).bottom}px ${Z(l, d).left}px` : `${Z(l, d)}px`, C = Mt(r, d, 16), T = Mt(a, d, 150) / 100, P = Mt(i, d, 0), I = /<[^>]+>/.test(x);
14622
14622
  return /* @__PURE__ */ h(
14623
14623
  "div",
14624
14624
  {
14625
14625
  ref: (L) => L && g && m && g(m(L)),
14626
14626
  className: `cursor-move ${v ? "outline outline-blue-500" : ""}`,
14627
14627
  style: {
14628
- fontSize: `${w}px`,
14628
+ fontSize: `${C}px`,
14629
14629
  fontWeight: n,
14630
14630
  fontFamily: o,
14631
14631
  lineHeight: T,
14632
- letterSpacing: `${_}px`,
14632
+ letterSpacing: `${P}px`,
14633
14633
  textAlign: u,
14634
14634
  color: s,
14635
- margin: S,
14635
+ margin: w,
14636
14636
  textDecoration: c,
14637
14637
  textTransform: p,
14638
14638
  opacity: f / 100
@@ -14852,40 +14852,40 @@ const fn = {
14852
14852
  const f = Te(), d = Uo();
14853
14853
  let b, g, m;
14854
14854
  try {
14855
- const { connectors: C, events: N } = ae((R) => ({
14855
+ const { connectors: S, events: N } = ae((R) => ({
14856
14856
  events: R.events
14857
14857
  }));
14858
- b = C.connect, g = C.drag, m = N.selected;
14858
+ b = S.connect, g = S.drag, m = N.selected;
14859
14859
  } catch {
14860
14860
  }
14861
14861
  const v = Ai(t, d), x = `h${e}`;
14862
- let S;
14863
- i === "auto" ? S = ((L = fn[e]) == null ? void 0 : L[f]) || (($ = fn[e]) == null ? void 0 : $.desktop) || 36 : S = Mt(
14862
+ let w;
14863
+ i === "auto" ? w = ((L = fn[e]) == null ? void 0 : L[f]) || (($ = fn[e]) == null ? void 0 : $.desktop) || 36 : w = Mt(
14864
14864
  i,
14865
14865
  f,
14866
14866
  ((B = fn[e]) == null ? void 0 : B.desktop) || 36
14867
14867
  );
14868
- const w = Mt(u, f, 120) / 100, T = Mt(
14868
+ const C = Mt(u, f, 120) / 100, T = Mt(
14869
14869
  s,
14870
14870
  f,
14871
14871
  -0.5
14872
- ), _ = Mt(p, f, 100), I = typeof Z(l, f) == "object" ? `${Z(l, f).top}px ${Z(l, f).right}px ${Z(l, f).bottom}px ${Z(l, f).left}px` : `${Z(l, f)}px`;
14872
+ ), P = Mt(p, f, 100), I = typeof Z(l, f) == "object" ? `${Z(l, f).top}px ${Z(l, f).right}px ${Z(l, f).bottom}px ${Z(l, f).left}px` : `${Z(l, f)}px`;
14873
14873
  return /* @__PURE__ */ h(
14874
14874
  x,
14875
14875
  {
14876
- ref: (C) => C && b && g && b(g(C)),
14876
+ ref: (S) => S && b && g && b(g(S)),
14877
14877
  className: `cursor-move ${m ? "outline outline-blue-500" : ""}`,
14878
14878
  style: {
14879
14879
  textAlign: r,
14880
14880
  color: n,
14881
14881
  fontWeight: o,
14882
14882
  fontFamily: a,
14883
- fontSize: `${S}px`,
14884
- lineHeight: w,
14883
+ fontSize: `${w}px`,
14884
+ lineHeight: C,
14885
14885
  letterSpacing: `${T}px`,
14886
14886
  margin: I,
14887
14887
  textTransform: c,
14888
- opacity: _ / 100
14888
+ opacity: P / 100
14889
14889
  },
14890
14890
  children: v
14891
14891
  }
@@ -15547,10 +15547,10 @@ function Y5(t) {
15547
15547
  defaultProp: o ?? !1,
15548
15548
  onChange: s,
15549
15549
  caller: Sa
15550
- }), [b, g] = y.useState(null), [m, v] = y.useState(null), x = y.useRef(!1), S = b ? !!i || !!b.closest("form") : (
15550
+ }), [b, g] = y.useState(null), [m, v] = y.useState(null), x = y.useRef(!1), w = b ? !!i || !!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
- ), w = {
15553
+ ), C = {
15554
15554
  checked: f,
15555
15555
  disabled: a,
15556
15556
  setChecked: d,
@@ -15562,7 +15562,7 @@ function Y5(t) {
15562
15562
  hasConsumerStoppedPropagationRef: x,
15563
15563
  required: l,
15564
15564
  defaultChecked: $t(o) ? !1 : o,
15565
- isFormControl: S,
15565
+ isFormControl: w,
15566
15566
  bubbleInput: m,
15567
15567
  setBubbleInput: v
15568
15568
  };
@@ -15570,8 +15570,8 @@ function Y5(t) {
15570
15570
  G5,
15571
15571
  {
15572
15572
  scope: e,
15573
- ...w,
15574
- children: X5(p) ? p(w) : n
15573
+ ...C,
15574
+ children: X5(p) ? p(C) : n
15575
15575
  }
15576
15576
  );
15577
15577
  }
@@ -15706,12 +15706,12 @@ var k0 = "CheckboxBubbleInput", P0 = y.forwardRef(
15706
15706
  y.useEffect(() => {
15707
15707
  const x = f;
15708
15708
  if (!x) return;
15709
- const S = window.HTMLInputElement.prototype, T = Object.getOwnPropertyDescriptor(
15710
- S,
15709
+ const w = window.HTMLInputElement.prototype, T = Object.getOwnPropertyDescriptor(
15710
+ w,
15711
15711
  "checked"
15712
- ).set, _ = !o.current;
15712
+ ).set, P = !o.current;
15713
15713
  if (g !== a && T) {
15714
- const I = new Event("click", { bubbles: _ });
15714
+ const I = new Event("click", { bubbles: P });
15715
15715
  x.indeterminate = $t(a), T.call(x, $t(a) ? !1 : a), x.dispatchEvent(I);
15716
15716
  }
15717
15717
  }, [f, g, a, o]);
@@ -15879,7 +15879,7 @@ const Z5 = (t, e) => {
15879
15879
  editorEnabled: r,
15880
15880
  videoTitle: n
15881
15881
  }) => {
15882
- const o = P.useRef(null), { data: a, isLoading: i, error: u } = Dp({
15882
+ const o = _.useRef(null), { data: a, isLoading: i, error: u } = Dp({
15883
15883
  queryKey: ["video", t, e],
15884
15884
  queryFn: () => U5(t, e),
15885
15885
  enabled: !!t
@@ -16679,15 +16679,15 @@ const L0 = ({
16679
16679
  children: m
16680
16680
  }) => {
16681
16681
  Te();
16682
- let v, x, S;
16682
+ let v, x, w;
16683
16683
  try {
16684
16684
  const { connectors: I, events: L } = ae(($) => ({
16685
16685
  events: $.events
16686
16686
  }));
16687
- v = I.connect, x = I.drag, S = L.selected;
16687
+ v = I.connect, x = I.drag, w = L.selected;
16688
16688
  } catch {
16689
16689
  }
16690
- const w = typeof Z(e) == "object" ? `${Z(e).top}px ${Z(e).right}px ${Z(e).bottom}px ${Z(e).left}px` : `${Z(e)}px`, T = typeof Z(r) == "object" ? `${Z(r).top}px ${Z(r).right}px ${Z(r).bottom}px ${Z(r).left}px` : `${Z(r)}px`, _ = [
16690
+ const C = typeof Z(e) == "object" ? `${Z(e).top}px ${Z(e).right}px ${Z(e).bottom}px ${Z(e).left}px` : `${Z(e)}px`, T = typeof Z(r) == "object" ? `${Z(r).top}px ${Z(r).right}px ${Z(r).bottom}px ${Z(r).left}px` : `${Z(r)}px`, P = [
16691
16691
  {
16692
16692
  url: "https://myracereel.com/privacy-data-privacy",
16693
16693
  name: "Privacy & Data Policy"
@@ -16704,7 +16704,7 @@ const L0 = ({
16704
16704
  {
16705
16705
  style: {
16706
16706
  backgroundColor: t,
16707
- padding: w,
16707
+ padding: C,
16708
16708
  margin: T,
16709
16709
  width: n === "auto" ? "100%" : n,
16710
16710
  minHeight: `${o}px`,
@@ -16724,7 +16724,7 @@ const L0 = ({
16724
16724
  ref: (I) => I && v && x && v(x(I)),
16725
16725
  children: /* @__PURE__ */ h("div", { className: "flex justify-center w-full", children: /* @__PURE__ */ k("div", { className: "w-full flex flex-col py-10 gap-y-3.5 ", children: [
16726
16726
  /* @__PURE__ */ h("div", { className: "flex w-full gap-x-1 justify-center items-center", children: /* @__PURE__ */ h("div", { className: "text-white text-sm", children: "Powered by MyRaceReel" }) }),
16727
- /* @__PURE__ */ h("div", { className: "flex @md:flex-row @max-md:flex-col md:flex-row justify-center items-center gap-x-6 gap-y-2 w-full flex-col", children: _.map((I) => /* @__PURE__ */ h(
16727
+ /* @__PURE__ */ h("div", { className: "flex @md:flex-row @max-md:flex-col md:flex-row justify-center items-center gap-x-6 gap-y-2 w-full flex-col", children: P.map((I) => /* @__PURE__ */ h(
16728
16728
  "a",
16729
16729
  {
16730
16730
  className: "text-white",
@@ -16864,7 +16864,7 @@ var hs = "ScrollArea", [j0] = lr(hs), [sS, ze] = j0(hs), $0 = y.forwardRef(
16864
16864
  dir: o,
16865
16865
  scrollHideDelay: a = 600,
16866
16866
  ...i
16867
- } = t, [u, s] = y.useState(null), [l, c] = y.useState(null), [p, f] = y.useState(null), [d, b] = y.useState(null), [g, m] = y.useState(null), [v, x] = y.useState(0), [S, w] = y.useState(0), [T, _] = y.useState(!1), [I, L] = y.useState(!1), $ = Ee(e, (C) => s(C)), B = ps(o);
16867
+ } = t, [u, s] = y.useState(null), [l, c] = y.useState(null), [p, f] = y.useState(null), [d, b] = y.useState(null), [g, m] = y.useState(null), [v, x] = y.useState(0), [w, C] = y.useState(0), [T, P] = y.useState(!1), [I, L] = y.useState(!1), $ = Ee(e, (S) => s(S)), B = ps(o);
16868
16868
  return /* @__PURE__ */ h(
16869
16869
  sS,
16870
16870
  {
@@ -16880,13 +16880,13 @@ var hs = "ScrollArea", [j0] = lr(hs), [sS, ze] = j0(hs), $0 = y.forwardRef(
16880
16880
  scrollbarX: d,
16881
16881
  onScrollbarXChange: b,
16882
16882
  scrollbarXEnabled: T,
16883
- onScrollbarXEnabledChange: _,
16883
+ onScrollbarXEnabledChange: P,
16884
16884
  scrollbarY: g,
16885
16885
  onScrollbarYChange: m,
16886
16886
  scrollbarYEnabled: I,
16887
16887
  onScrollbarYEnabledChange: L,
16888
16888
  onCornerWidthChange: x,
16889
- onCornerHeightChange: w,
16889
+ onCornerHeightChange: C,
16890
16890
  children: /* @__PURE__ */ h(
16891
16891
  ve.div,
16892
16892
  {
@@ -16897,7 +16897,7 @@ var hs = "ScrollArea", [j0] = lr(hs), [sS, ze] = j0(hs), $0 = y.forwardRef(
16897
16897
  position: "relative",
16898
16898
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
16899
16899
  "--radix-scroll-area-corner-width": v + "px",
16900
- "--radix-scroll-area-corner-height": S + "px",
16900
+ "--radix-scroll-area-corner-height": w + "px",
16901
16901
  ...t.style
16902
16902
  }
16903
16903
  }
@@ -17186,20 +17186,20 @@ var lS = y.forwardRef((t, e) => {
17186
17186
  onWheelScroll: c,
17187
17187
  onResize: p,
17188
17188
  ...f
17189
- } = t, d = ze(ht, r), [b, g] = y.useState(null), m = Ee(e, ($) => g($)), v = y.useRef(null), x = y.useRef(""), S = d.viewport, w = n.content - n.viewport, T = Be(c), _ = Be(s), I = Ea(p, 10);
17189
+ } = t, d = ze(ht, r), [b, g] = y.useState(null), m = Ee(e, ($) => g($)), v = y.useRef(null), x = y.useRef(""), w = d.viewport, C = n.content - n.viewport, T = Be(c), P = Be(s), I = Ea(p, 10);
17190
17190
  function L($) {
17191
17191
  if (v.current) {
17192
- const B = $.clientX - v.current.left, C = $.clientY - v.current.top;
17193
- l({ x: B, y: C });
17192
+ const B = $.clientX - v.current.left, S = $.clientY - v.current.top;
17193
+ l({ x: B, y: S });
17194
17194
  }
17195
17195
  }
17196
17196
  return y.useEffect(() => {
17197
17197
  const $ = (B) => {
17198
- const C = B.target;
17199
- (b == null ? void 0 : b.contains(C)) && T(B, w);
17198
+ const S = B.target;
17199
+ (b == null ? void 0 : b.contains(S)) && T(B, C);
17200
17200
  };
17201
17201
  return document.addEventListener("wheel", $, { passive: !1 }), () => document.removeEventListener("wheel", $, { passive: !1 });
17202
- }, [S, b, w, T]), y.useEffect(_, [n, _]), jr(b, I), jr(d.content, I), /* @__PURE__ */ h(
17202
+ }, [w, b, C, T]), y.useEffect(P, [n, P]), jr(b, I), jr(d.content, I), /* @__PURE__ */ h(
17203
17203
  pS,
17204
17204
  {
17205
17205
  scope: r,
@@ -17207,7 +17207,7 @@ var lS = y.forwardRef((t, e) => {
17207
17207
  hasThumb: o,
17208
17208
  onThumbChange: Be(a),
17209
17209
  onThumbPointerUp: Be(i),
17210
- onThumbPositionChange: _,
17210
+ onThumbPositionChange: P,
17211
17211
  onThumbPointerDown: Be(u),
17212
17212
  children: /* @__PURE__ */ h(
17213
17213
  ve.div,
@@ -17414,7 +17414,7 @@ const xS = () => {
17414
17414
  }
17415
17415
  )
17416
17416
  ] }),
17417
- /* @__PURE__ */ h(vs, { className: "flex-1 -mr-4 pr-4", children: t.settings && P.createElement(t.settings) })
17417
+ /* @__PURE__ */ h(vs, { className: "flex-1 -mr-4 pr-4", children: t.settings && _.createElement(t.settings) })
17418
17418
  ] }) : /* @__PURE__ */ h("div", { className: "text-center py-8", children: /* @__PURE__ */ h("p", { className: "text-sm text-muted-foreground", children: "Select an element to edit its properties" }) }) });
17419
17419
  }, wS = (t) => {
17420
17420
  switch (t) {
@@ -17453,7 +17453,7 @@ const xS = () => {
17453
17453
  };
17454
17454
  }), [p, f] = be(!0), [d, b] = be(!1);
17455
17455
  if (!i) return null;
17456
- const g = i.data.displayName || i.data.name || "Unknown", m = l.length > 0, v = s === t, x = t === "ROOT", S = wS(g), w = a === t, T = i.data.isCanvas, _ = (N) => {
17456
+ const g = i.data.displayName || i.data.name || "Unknown", m = l.length > 0, v = s === t, x = t === "ROOT", w = wS(g), C = a === t, T = i.data.isCanvas, P = (N) => {
17457
17457
  N.stopPropagation(), x || u.selectNode(t);
17458
17458
  }, I = (N) => {
17459
17459
  N.stopPropagation(), f(!p);
@@ -17467,25 +17467,25 @@ const xS = () => {
17467
17467
  N.preventDefault(), N.stopPropagation(), a && a !== t && T && b(!0);
17468
17468
  }, B = (N) => {
17469
17469
  N.stopPropagation(), b(!1);
17470
- }, C = (N) => {
17470
+ }, S = (N) => {
17471
17471
  N.preventDefault(), N.stopPropagation(), b(!1), a && a !== t && o(t);
17472
17472
  };
17473
17473
  return /* @__PURE__ */ k("div", { className: "select-none", children: [
17474
17474
  /* @__PURE__ */ k(
17475
17475
  "div",
17476
17476
  {
17477
- className: `flex items-center gap-1 py-1 px-1 rounded cursor-pointer text-sm transition-colors ${v ? "bg-primary/10 text-primary" : "hover:bg-secondary/50"} ${w ? "opacity-50" : ""} ${d ? "bg-primary/20 ring-1 ring-primary" : ""}`,
17477
+ className: `flex items-center gap-1 py-1 px-1 rounded cursor-pointer text-sm transition-colors ${v ? "bg-primary/10 text-primary" : "hover:bg-secondary/50"} ${C ? "opacity-50" : ""} ${d ? "bg-primary/20 ring-1 ring-primary" : ""}`,
17478
17478
  style: { paddingLeft: `${e * 12 + 4}px` },
17479
- onClick: _,
17479
+ onClick: P,
17480
17480
  draggable: !x,
17481
17481
  onDragStart: L,
17482
17482
  onDragOver: $,
17483
17483
  onDragLeave: B,
17484
- onDrop: C,
17484
+ onDrop: S,
17485
17485
  children: [
17486
17486
  !x && /* @__PURE__ */ h(Nh, { className: "h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing" }),
17487
17487
  m ? /* @__PURE__ */ h("button", { onClick: I, className: "p-0.5 hover:bg-secondary rounded", children: p ? /* @__PURE__ */ h(ru, { className: "h-3 w-3" }) : /* @__PURE__ */ h(nu, { className: "h-3 w-3" }) }) : /* @__PURE__ */ h("span", { className: "w-4" }),
17488
- /* @__PURE__ */ h(S, { className: "h-3.5 w-3.5 text-muted-foreground shrink-0" }),
17488
+ /* @__PURE__ */ h(w, { className: "h-3.5 w-3.5 text-muted-foreground shrink-0" }),
17489
17489
  /* @__PURE__ */ h("span", { className: `truncate ${x ? "font-medium" : ""}`, children: x ? "Root" : g })
17490
17490
  ]
17491
17491
  }
@@ -17582,32 +17582,32 @@ function OS(t) {
17582
17582
  e,
17583
17583
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
17584
17584
  ), i = (g) => {
17585
- const { scope: m, children: v } = g, x = P.useRef(null), S = P.useRef(/* @__PURE__ */ new Map()).current;
17586
- return /* @__PURE__ */ h(o, { scope: m, itemMap: S, collectionRef: x, children: v });
17585
+ const { scope: m, children: v } = g, x = _.useRef(null), w = _.useRef(/* @__PURE__ */ new Map()).current;
17586
+ return /* @__PURE__ */ h(o, { scope: m, itemMap: w, collectionRef: x, children: v });
17587
17587
  };
17588
17588
  i.displayName = e;
17589
- const u = t + "CollectionSlot", s = /* @__PURE__ */ yc(u), l = P.forwardRef(
17589
+ const u = t + "CollectionSlot", s = /* @__PURE__ */ yc(u), l = _.forwardRef(
17590
17590
  (g, m) => {
17591
- const { scope: v, children: x } = g, S = a(u, v), w = Ee(m, S.collectionRef);
17592
- return /* @__PURE__ */ h(s, { ref: w, children: x });
17591
+ const { scope: v, children: x } = g, w = a(u, v), C = Ee(m, w.collectionRef);
17592
+ return /* @__PURE__ */ h(s, { ref: C, children: x });
17593
17593
  }
17594
17594
  );
17595
17595
  l.displayName = u;
17596
- const c = t + "CollectionItemSlot", p = "data-radix-collection-item", f = /* @__PURE__ */ yc(c), d = P.forwardRef(
17596
+ const c = t + "CollectionItemSlot", p = "data-radix-collection-item", f = /* @__PURE__ */ yc(c), d = _.forwardRef(
17597
17597
  (g, m) => {
17598
- const { scope: v, children: x, ...S } = g, w = P.useRef(null), T = Ee(m, w), _ = a(c, v);
17599
- return P.useEffect(() => (_.itemMap.set(w, { ref: w, ...S }), () => void _.itemMap.delete(w))), /* @__PURE__ */ h(f, { [p]: "", ref: T, children: x });
17598
+ const { scope: v, children: x, ...w } = g, C = _.useRef(null), T = Ee(m, C), P = a(c, v);
17599
+ return _.useEffect(() => (P.itemMap.set(C, { ref: C, ...w }), () => void P.itemMap.delete(C))), /* @__PURE__ */ h(f, { [p]: "", ref: T, children: x });
17600
17600
  }
17601
17601
  );
17602
17602
  d.displayName = c;
17603
17603
  function b(g) {
17604
17604
  const m = a(t + "CollectionConsumer", g);
17605
- return P.useCallback(() => {
17605
+ return _.useCallback(() => {
17606
17606
  const x = m.collectionRef.current;
17607
17607
  if (!x) return [];
17608
- const S = Array.from(x.querySelectorAll(`[${p}]`));
17608
+ const w = Array.from(x.querySelectorAll(`[${p}]`));
17609
17609
  return Array.from(m.itemMap.values()).sort(
17610
- (_, I) => S.indexOf(_.ref.current) - S.indexOf(I.ref.current)
17610
+ (P, I) => w.indexOf(P.ref.current) - w.indexOf(I.ref.current)
17611
17611
  );
17612
17612
  }, [m.collectionRef, m.itemMap]);
17613
17613
  }
@@ -17641,12 +17641,12 @@ var DS = y.forwardRef((t, e) => {
17641
17641
  defaultProp: u ?? null,
17642
17642
  onChange: s,
17643
17643
  caller: Bn
17644
- }), [v, x] = y.useState(!1), S = Be(l), w = Z0(r), T = y.useRef(!1), [_, I] = y.useState(0);
17644
+ }), [v, x] = y.useState(!1), w = Be(l), C = Z0(r), T = y.useRef(!1), [P, I] = y.useState(0);
17645
17645
  return y.useEffect(() => {
17646
17646
  const L = f.current;
17647
17647
  if (L)
17648
- return L.addEventListener(Ga, S), () => L.removeEventListener(Ga, S);
17649
- }, [S]), /* @__PURE__ */ h(
17648
+ return L.addEventListener(Ga, w), () => L.removeEventListener(Ga, w);
17649
+ }, [w]), /* @__PURE__ */ h(
17650
17650
  RS,
17651
17651
  {
17652
17652
  scope: r,
@@ -17670,7 +17670,7 @@ var DS = y.forwardRef((t, e) => {
17670
17670
  children: /* @__PURE__ */ h(
17671
17671
  ve.div,
17672
17672
  {
17673
- tabIndex: v || _ === 0 ? -1 : 0,
17673
+ tabIndex: v || P === 0 ? -1 : 0,
17674
17674
  "data-orientation": n,
17675
17675
  ...p,
17676
17676
  ref: d,
@@ -17683,7 +17683,7 @@ var DS = y.forwardRef((t, e) => {
17683
17683
  if (L.target === L.currentTarget && $ && !v) {
17684
17684
  const B = new CustomEvent(Ga, kS);
17685
17685
  if (L.currentTarget.dispatchEvent(B), !B.defaultPrevented) {
17686
- const C = w().filter((O) => O.focusable), N = C.find((O) => O.active), R = C.find((O) => O.id === g), E = [N, R, ...C].filter(
17686
+ const S = C().filter((O) => O.focusable), N = S.find((O) => O.active), R = S.find((O) => O.id === g), E = [N, R, ...S].filter(
17687
17687
  Boolean
17688
17688
  ).map((O) => O.ref.current);
17689
17689
  np(E, c);
@@ -17737,14 +17737,14 @@ var DS = y.forwardRef((t, e) => {
17737
17737
  if (v !== void 0) {
17738
17738
  if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
17739
17739
  m.preventDefault();
17740
- let S = f().filter((w) => w.focusable).map((w) => w.ref.current);
17741
- if (v === "last") S.reverse();
17740
+ let w = f().filter((C) => C.focusable).map((C) => C.ref.current);
17741
+ if (v === "last") w.reverse();
17742
17742
  else if (v === "prev" || v === "next") {
17743
- v === "prev" && S.reverse();
17744
- const w = S.indexOf(m.currentTarget);
17745
- S = c.loop ? $S(S, w + 1) : S.slice(w + 1);
17743
+ v === "prev" && w.reverse();
17744
+ const C = w.indexOf(m.currentTarget);
17745
+ w = c.loop ? $S(w, C + 1) : w.slice(C + 1);
17746
17746
  }
17747
- setTimeout(() => np(S));
17747
+ setTimeout(() => np(w));
17748
17748
  }
17749
17749
  }),
17750
17750
  children: typeof i == "function" ? i({ isCurrentTabStop: p, hasTabStop: g != null }) : i
@@ -17806,7 +17806,7 @@ var BS = ep, HS = rp, op = "Toggle", ys = y.forwardRef((t, e) => {
17806
17806
  ys.displayName = op;
17807
17807
  var ap = ys, Yt = "ToggleGroup", [ip] = lr(Yt, [
17808
17808
  Q0
17809
- ]), up = Q0(), xs = P.forwardRef((t, e) => {
17809
+ ]), up = Q0(), xs = _.forwardRef((t, e) => {
17810
17810
  const { type: r, ...n } = t;
17811
17811
  if (r === "single")
17812
17812
  return /* @__PURE__ */ h(zS, { ...n, ref: e });
@@ -17815,7 +17815,7 @@ var ap = ys, Yt = "ToggleGroup", [ip] = lr(Yt, [
17815
17815
  throw new Error(`Missing prop \`type\` expected on \`${Yt}\``);
17816
17816
  });
17817
17817
  xs.displayName = Yt;
17818
- var [sp, lp] = ip(Yt), zS = P.forwardRef((t, e) => {
17818
+ var [sp, lp] = ip(Yt), zS = _.forwardRef((t, e) => {
17819
17819
  const {
17820
17820
  value: r,
17821
17821
  defaultValue: n,
@@ -17833,13 +17833,13 @@ var [sp, lp] = ip(Yt), zS = P.forwardRef((t, e) => {
17833
17833
  {
17834
17834
  scope: t.__scopeToggleGroup,
17835
17835
  type: "single",
17836
- value: P.useMemo(() => i ? [i] : [], [i]),
17836
+ value: _.useMemo(() => i ? [i] : [], [i]),
17837
17837
  onItemActivate: u,
17838
- onItemDeactivate: P.useCallback(() => u(""), [u]),
17838
+ onItemDeactivate: _.useCallback(() => u(""), [u]),
17839
17839
  children: /* @__PURE__ */ h(cp, { ...a, ref: e })
17840
17840
  }
17841
17841
  );
17842
- }), FS = P.forwardRef((t, e) => {
17842
+ }), FS = _.forwardRef((t, e) => {
17843
17843
  const {
17844
17844
  value: r,
17845
17845
  defaultValue: n,
@@ -17851,10 +17851,10 @@ var [sp, lp] = ip(Yt), zS = P.forwardRef((t, e) => {
17851
17851
  defaultProp: n ?? [],
17852
17852
  onChange: o,
17853
17853
  caller: Yt
17854
- }), s = P.useCallback(
17854
+ }), s = _.useCallback(
17855
17855
  (c) => u((p = []) => [...p, c]),
17856
17856
  [u]
17857
- ), l = P.useCallback(
17857
+ ), l = _.useCallback(
17858
17858
  (c) => u((p = []) => p.filter((f) => f !== c)),
17859
17859
  [u]
17860
17860
  );
@@ -17871,7 +17871,7 @@ var [sp, lp] = ip(Yt), zS = P.forwardRef((t, e) => {
17871
17871
  );
17872
17872
  });
17873
17873
  xs.displayName = Yt;
17874
- var [qS, US] = ip(Yt), cp = P.forwardRef(
17874
+ var [qS, US] = ip(Yt), cp = _.forwardRef(
17875
17875
  (t, e) => {
17876
17876
  const {
17877
17877
  __scopeToggleGroup: r,
@@ -17894,9 +17894,9 @@ var [qS, US] = ip(Yt), cp = P.forwardRef(
17894
17894
  }
17895
17895
  ) : /* @__PURE__ */ h(ve.div, { ...p, ref: e }) });
17896
17896
  }
17897
- ), qo = "ToggleGroupItem", dp = P.forwardRef(
17897
+ ), qo = "ToggleGroupItem", dp = _.forwardRef(
17898
17898
  (t, e) => {
17899
- const r = lp(qo, t.__scopeToggleGroup), n = US(qo, t.__scopeToggleGroup), o = up(t.__scopeToggleGroup), a = r.value.includes(t.value), i = n.disabled || t.disabled, u = { ...t, pressed: a, disabled: i }, s = P.useRef(null);
17899
+ const r = lp(qo, t.__scopeToggleGroup), n = US(qo, t.__scopeToggleGroup), o = up(t.__scopeToggleGroup), a = r.value.includes(t.value), i = n.disabled || t.disabled, u = { ...t, pressed: a, disabled: i }, s = _.useRef(null);
17900
17900
  return n.rovingFocus ? /* @__PURE__ */ h(
17901
17901
  HS,
17902
17902
  {
@@ -17911,7 +17911,7 @@ var [qS, US] = ip(Yt), cp = P.forwardRef(
17911
17911
  }
17912
17912
  );
17913
17913
  dp.displayName = qo;
17914
- var xc = P.forwardRef(
17914
+ var xc = _.forwardRef(
17915
17915
  (t, e) => {
17916
17916
  const { __scopeToggleGroup: r, value: n, ...o } = t, a = lp(qo, r), i = { role: "radio", "aria-checked": t.pressed, "aria-pressed": void 0 }, u = a.type === "single" ? i : void 0;
17917
17917
  return /* @__PURE__ */ h(
@@ -17985,9 +17985,9 @@ var WS = (t) => {
17985
17985
  default:
17986
17986
  return null;
17987
17987
  }
17988
- }, GS = Array(12).fill(0), YS = ({ visible: t, className: e }) => P.createElement("div", { className: ["sonner-loading-wrapper", e].filter(Boolean).join(" "), "data-visible": t }, P.createElement("div", { className: "sonner-spinner" }, GS.map((r, n) => P.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${n}` })))), XS = P.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, P.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), KS = P.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, P.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), JS = P.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, P.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), ZS = P.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, P.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), QS = P.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, P.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), P.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" })), eC = () => {
17989
- let [t, e] = P.useState(document.hidden);
17990
- return P.useEffect(() => {
17988
+ }, GS = Array(12).fill(0), YS = ({ visible: t, className: e }) => _.createElement("div", { className: ["sonner-loading-wrapper", e].filter(Boolean).join(" "), "data-visible": t }, _.createElement("div", { className: "sonner-spinner" }, GS.map((r, n) => _.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${n}` })))), XS = _.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, _.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), KS = _.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, _.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), JS = _.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, _.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), ZS = _.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, _.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), QS = _.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, _.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), _.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" })), eC = () => {
17989
+ let [t, e] = _.useState(document.hidden);
17990
+ return _.useEffect(() => {
17991
17991
  let r = () => {
17992
17992
  e(document.hidden);
17993
17993
  };
@@ -18013,7 +18013,7 @@ var WS = (t) => {
18013
18013
  let r;
18014
18014
  e.loading !== void 0 && (r = this.create({ ...e, promise: t, type: "loading", message: e.loading, description: typeof e.description != "function" ? e.description : void 0 }));
18015
18015
  let n = t instanceof Promise ? t : t(), o = r !== void 0, a, i = n.then(async (s) => {
18016
- if (a = ["resolve", s], P.isValidElement(s)) o = !1, this.create({ id: r, type: "default", message: s });
18016
+ if (a = ["resolve", s], _.isValidElement(s)) o = !1, this.create({ id: r, type: "default", message: s });
18017
18017
  else if (nC(s) && !s.ok) {
18018
18018
  o = !1;
18019
18019
  let l = typeof e.error == "function" ? await e.error(`HTTP error! status: ${s.status}`) : e.error, c = typeof e.description == "function" ? await e.description(`HTTP error! status: ${s.status}`) : e.description;
@@ -18063,33 +18063,33 @@ function bC(t) {
18063
18063
  }
18064
18064
  var gC = (t) => {
18065
18065
  var e, r, n, o, a, i, u, s, l, c, p;
18066
- let { invert: f, toast: d, unstyled: b, interacting: g, setHeights: m, visibleToasts: v, heights: x, index: S, toasts: w, expanded: T, removeToast: _, defaultRichColors: I, closeButton: L, style: $, cancelButtonStyle: B, actionButtonStyle: C, className: N = "", descriptionClassName: R = "", duration: M, position: E, gap: O, loadingIcon: A, expandByDefault: D, classNames: j, icons: U, closeButtonAriaLabel: pe = "Close toast", pauseWhenPageIsHidden: ee } = t, [H, z] = P.useState(null), [ge, K] = P.useState(null), [F, Oe] = P.useState(!1), [Se, ye] = P.useState(!1), [Ze, mt] = P.useState(!1), [Qe, Hn] = P.useState(!1), [Na, zn] = P.useState(!1), [Ta, Jr] = P.useState(0), [pr, ws] = P.useState(0), Zr = P.useRef(d.duration || M || wc), Ss = P.useRef(null), Xt = P.useRef(null), xp = S === 0, wp = S + 1 <= v, je = d.type, hr = d.dismissible !== !1, Sp = d.className || "", Cp = d.descriptionClassName || "", Fn = P.useMemo(() => x.findIndex((V) => V.toastId === d.id) || 0, [x, d.id]), Ep = P.useMemo(() => {
18066
+ let { invert: f, toast: d, unstyled: b, interacting: g, setHeights: m, visibleToasts: v, heights: x, index: w, toasts: C, expanded: T, removeToast: P, defaultRichColors: I, closeButton: L, style: $, cancelButtonStyle: B, actionButtonStyle: S, className: N = "", descriptionClassName: R = "", duration: M, position: E, gap: O, loadingIcon: A, expandByDefault: D, classNames: j, icons: U, closeButtonAriaLabel: pe = "Close toast", pauseWhenPageIsHidden: ee } = t, [H, z] = _.useState(null), [ge, K] = _.useState(null), [F, Oe] = _.useState(!1), [Se, ye] = _.useState(!1), [Ze, mt] = _.useState(!1), [Qe, Hn] = _.useState(!1), [Na, zn] = _.useState(!1), [Ta, Jr] = _.useState(0), [pr, ws] = _.useState(0), Zr = _.useRef(d.duration || M || wc), Ss = _.useRef(null), Xt = _.useRef(null), xp = w === 0, wp = w + 1 <= v, je = d.type, hr = d.dismissible !== !1, Sp = d.className || "", Cp = d.descriptionClassName || "", Fn = _.useMemo(() => x.findIndex((V) => V.toastId === d.id) || 0, [x, d.id]), Ep = _.useMemo(() => {
18067
18067
  var V;
18068
18068
  return (V = d.closeButton) != null ? V : L;
18069
- }, [d.closeButton, L]), Cs = P.useMemo(() => d.duration || M || wc, [d.duration, M]), Aa = P.useRef(0), mr = P.useRef(0), Es = P.useRef(0), br = P.useRef(null), [Np, Tp] = E.split("-"), Ns = P.useMemo(() => x.reduce((V, ne, de) => de >= Fn ? V : V + ne.height, 0), [x, Fn]), Ts = eC(), Ap = d.invert || f, Oa = je === "loading";
18070
- mr.current = P.useMemo(() => Fn * O + Ns, [Fn, Ns]), P.useEffect(() => {
18069
+ }, [d.closeButton, L]), Cs = _.useMemo(() => d.duration || M || wc, [d.duration, M]), Aa = _.useRef(0), mr = _.useRef(0), Es = _.useRef(0), br = _.useRef(null), [Np, Tp] = E.split("-"), Ns = _.useMemo(() => x.reduce((V, ne, de) => de >= Fn ? V : V + ne.height, 0), [x, Fn]), Ts = eC(), Ap = d.invert || f, Oa = je === "loading";
18070
+ mr.current = _.useMemo(() => Fn * O + Ns, [Fn, Ns]), _.useEffect(() => {
18071
18071
  Zr.current = Cs;
18072
- }, [Cs]), P.useEffect(() => {
18072
+ }, [Cs]), _.useEffect(() => {
18073
18073
  Oe(!0);
18074
- }, []), P.useEffect(() => {
18074
+ }, []), _.useEffect(() => {
18075
18075
  let V = Xt.current;
18076
18076
  if (V) {
18077
18077
  let ne = V.getBoundingClientRect().height;
18078
18078
  return ws(ne), m((de) => [{ toastId: d.id, height: ne, position: d.position }, ...de]), () => m((de) => de.filter((Fe) => Fe.toastId !== d.id));
18079
18079
  }
18080
- }, [m, d.id]), P.useLayoutEffect(() => {
18080
+ }, [m, d.id]), _.useLayoutEffect(() => {
18081
18081
  if (!F) return;
18082
18082
  let V = Xt.current, ne = V.style.height;
18083
18083
  V.style.height = "auto";
18084
18084
  let de = V.getBoundingClientRect().height;
18085
18085
  V.style.height = ne, ws(de), m((Fe) => Fe.find((qe) => qe.toastId === d.id) ? Fe.map((qe) => qe.toastId === d.id ? { ...qe, height: de } : qe) : [{ toastId: d.id, height: de, position: d.position }, ...Fe]);
18086
18086
  }, [F, d.title, d.description, m, d.id]);
18087
- let Pt = P.useCallback(() => {
18087
+ let Pt = _.useCallback(() => {
18088
18088
  ye(!0), Jr(mr.current), m((V) => V.filter((ne) => ne.toastId !== d.id)), setTimeout(() => {
18089
- _(d);
18089
+ P(d);
18090
18090
  }, mC);
18091
- }, [d, _, m, mr]);
18092
- P.useEffect(() => {
18091
+ }, [d, P, m, mr]);
18092
+ _.useEffect(() => {
18093
18093
  if (d.promise && je === "loading" || d.duration === 1 / 0 || d.type === "loading") return;
18094
18094
  let V;
18095
18095
  return T || g || ee && Ts ? (() => {
@@ -18102,14 +18102,14 @@ var gC = (t) => {
18102
18102
  var ne;
18103
18103
  (ne = d.onAutoClose) == null || ne.call(d, d), Pt();
18104
18104
  }, Zr.current)), () => clearTimeout(V);
18105
- }, [T, g, d, je, ee, Ts, Pt]), P.useEffect(() => {
18105
+ }, [T, g, d, je, ee, Ts, Pt]), _.useEffect(() => {
18106
18106
  d.delete && Pt();
18107
18107
  }, [Pt, d.delete]);
18108
18108
  function Op() {
18109
18109
  var V, ne, de;
18110
- return U != null && U.loading ? P.createElement("div", { className: Ve(j == null ? void 0 : j.loader, (V = d == null ? void 0 : d.classNames) == null ? void 0 : V.loader, "sonner-loader"), "data-visible": je === "loading" }, U.loading) : A ? P.createElement("div", { className: Ve(j == null ? void 0 : j.loader, (ne = d == null ? void 0 : d.classNames) == null ? void 0 : ne.loader, "sonner-loader"), "data-visible": je === "loading" }, A) : P.createElement(YS, { className: Ve(j == null ? void 0 : j.loader, (de = d == null ? void 0 : d.classNames) == null ? void 0 : de.loader), visible: je === "loading" });
18110
+ return U != null && U.loading ? _.createElement("div", { className: Ve(j == null ? void 0 : j.loader, (V = d == null ? void 0 : d.classNames) == null ? void 0 : V.loader, "sonner-loader"), "data-visible": je === "loading" }, U.loading) : A ? _.createElement("div", { className: Ve(j == null ? void 0 : j.loader, (ne = d == null ? void 0 : d.classNames) == null ? void 0 : ne.loader, "sonner-loader"), "data-visible": je === "loading" }, A) : _.createElement(YS, { className: Ve(j == null ? void 0 : j.loader, (de = d == null ? void 0 : d.classNames) == null ? void 0 : de.loader), visible: je === "loading" });
18111
18111
  }
18112
- return P.createElement("li", { tabIndex: 0, ref: Xt, className: Ve(N, Sp, j == null ? void 0 : j.toast, (e = d == null ? void 0 : d.classNames) == null ? void 0 : e.toast, j == null ? void 0 : j.default, j == null ? void 0 : j[je], (r = d == null ? void 0 : d.classNames) == null ? void 0 : r[je]), "data-sonner-toast": "", "data-rich-colors": (n = d.richColors) != null ? n : I, "data-styled": !(d.jsx || d.unstyled || b), "data-mounted": F, "data-promise": !!d.promise, "data-swiped": Na, "data-removed": Se, "data-visible": wp, "data-y-position": Np, "data-x-position": Tp, "data-index": S, "data-front": xp, "data-swiping": Ze, "data-dismissible": hr, "data-type": je, "data-invert": Ap, "data-swipe-out": Qe, "data-swipe-direction": ge, "data-expanded": !!(T || D && F), style: { "--index": S, "--toasts-before": S, "--z-index": w.length - S, "--offset": `${Se ? Ta : mr.current}px`, "--initial-height": D ? "auto" : `${pr}px`, ...$, ...d.style }, onDragEnd: () => {
18112
+ return _.createElement("li", { tabIndex: 0, ref: Xt, className: Ve(N, Sp, j == null ? void 0 : j.toast, (e = d == null ? void 0 : d.classNames) == null ? void 0 : e.toast, j == null ? void 0 : j.default, j == null ? void 0 : j[je], (r = d == null ? void 0 : d.classNames) == null ? void 0 : r[je]), "data-sonner-toast": "", "data-rich-colors": (n = d.richColors) != null ? n : I, "data-styled": !(d.jsx || d.unstyled || b), "data-mounted": F, "data-promise": !!d.promise, "data-swiped": Na, "data-removed": Se, "data-visible": wp, "data-y-position": Np, "data-x-position": Tp, "data-index": w, "data-front": xp, "data-swiping": Ze, "data-dismissible": hr, "data-type": je, "data-invert": Ap, "data-swipe-out": Qe, "data-swipe-direction": ge, "data-expanded": !!(T || D && F), style: { "--index": w, "--toasts-before": w, "--z-index": C.length - w, "--offset": `${Se ? Ta : mr.current}px`, "--initial-height": D ? "auto" : `${pr}px`, ...$, ...d.style }, onDragEnd: () => {
18113
18113
  mt(!1), z(null), br.current = null;
18114
18114
  }, onPointerDown: (V) => {
18115
18115
  Oa || !hr || (Ss.current = /* @__PURE__ */ new Date(), Jr(mr.current), V.target.setPointerCapture(V.pointerId), V.target.tagName !== "BUTTON" && (mt(!0), br.current = { x: V.clientX, y: V.clientY }));
@@ -18130,14 +18130,14 @@ var gC = (t) => {
18130
18130
  !H && (Math.abs(Kt) > 1 || Math.abs(_t) > 1) && z(Math.abs(Kt) > Math.abs(_t) ? "x" : "y");
18131
18131
  let Rt = { x: 0, y: 0 };
18132
18132
  H === "y" ? (Ue.includes("top") || Ue.includes("bottom")) && (Ue.includes("top") && _t < 0 || Ue.includes("bottom") && _t > 0) && (Rt.y = _t) : H === "x" && (Ue.includes("left") || Ue.includes("right")) && (Ue.includes("left") && Kt < 0 || Ue.includes("right") && Kt > 0) && (Rt.x = Kt), (Math.abs(Rt.x) > 0 || Math.abs(Rt.y) > 0) && zn(!0), (Fe = Xt.current) == null || Fe.style.setProperty("--swipe-amount-x", `${Rt.x}px`), (qe = Xt.current) == null || qe.style.setProperty("--swipe-amount-y", `${Rt.y}px`);
18133
- } }, Ep && !d.jsx ? P.createElement("button", { "aria-label": pe, "data-disabled": Oa, "data-close-button": !0, onClick: Oa || !hr ? () => {
18133
+ } }, Ep && !d.jsx ? _.createElement("button", { "aria-label": pe, "data-disabled": Oa, "data-close-button": !0, onClick: Oa || !hr ? () => {
18134
18134
  } : () => {
18135
18135
  var V;
18136
18136
  Pt(), (V = d.onDismiss) == null || V.call(d, d);
18137
- }, className: Ve(j == null ? void 0 : j.closeButton, (o = d == null ? void 0 : d.classNames) == null ? void 0 : o.closeButton) }, (a = U == null ? void 0 : U.close) != null ? a : QS) : null, d.jsx || io(d.title) ? d.jsx ? d.jsx : typeof d.title == "function" ? d.title() : d.title : P.createElement(P.Fragment, null, je || d.icon || d.promise ? P.createElement("div", { "data-icon": "", className: Ve(j == null ? void 0 : j.icon, (i = d == null ? void 0 : d.classNames) == null ? void 0 : i.icon) }, d.promise || d.type === "loading" && !d.icon ? d.icon || Op() : null, d.type !== "loading" ? d.icon || (U == null ? void 0 : U[je]) || WS(je) : null) : null, P.createElement("div", { "data-content": "", className: Ve(j == null ? void 0 : j.content, (u = d == null ? void 0 : d.classNames) == null ? void 0 : u.content) }, P.createElement("div", { "data-title": "", className: Ve(j == null ? void 0 : j.title, (s = d == null ? void 0 : d.classNames) == null ? void 0 : s.title) }, typeof d.title == "function" ? d.title() : d.title), d.description ? P.createElement("div", { "data-description": "", className: Ve(R, Cp, j == null ? void 0 : j.description, (l = d == null ? void 0 : d.classNames) == null ? void 0 : l.description) }, typeof d.description == "function" ? d.description() : d.description) : null), io(d.cancel) ? d.cancel : d.cancel && ao(d.cancel) ? P.createElement("button", { "data-button": !0, "data-cancel": !0, style: d.cancelButtonStyle || B, onClick: (V) => {
18137
+ }, className: Ve(j == null ? void 0 : j.closeButton, (o = d == null ? void 0 : d.classNames) == null ? void 0 : o.closeButton) }, (a = U == null ? void 0 : U.close) != null ? a : QS) : null, d.jsx || io(d.title) ? d.jsx ? d.jsx : typeof d.title == "function" ? d.title() : d.title : _.createElement(_.Fragment, null, je || d.icon || d.promise ? _.createElement("div", { "data-icon": "", className: Ve(j == null ? void 0 : j.icon, (i = d == null ? void 0 : d.classNames) == null ? void 0 : i.icon) }, d.promise || d.type === "loading" && !d.icon ? d.icon || Op() : null, d.type !== "loading" ? d.icon || (U == null ? void 0 : U[je]) || WS(je) : null) : null, _.createElement("div", { "data-content": "", className: Ve(j == null ? void 0 : j.content, (u = d == null ? void 0 : d.classNames) == null ? void 0 : u.content) }, _.createElement("div", { "data-title": "", className: Ve(j == null ? void 0 : j.title, (s = d == null ? void 0 : d.classNames) == null ? void 0 : s.title) }, typeof d.title == "function" ? d.title() : d.title), d.description ? _.createElement("div", { "data-description": "", className: Ve(R, Cp, j == null ? void 0 : j.description, (l = d == null ? void 0 : d.classNames) == null ? void 0 : l.description) }, typeof d.description == "function" ? d.description() : d.description) : null), io(d.cancel) ? d.cancel : d.cancel && ao(d.cancel) ? _.createElement("button", { "data-button": !0, "data-cancel": !0, style: d.cancelButtonStyle || B, onClick: (V) => {
18138
18138
  var ne, de;
18139
18139
  ao(d.cancel) && hr && ((de = (ne = d.cancel).onClick) == null || de.call(ne, V), Pt());
18140
- }, className: Ve(j == null ? void 0 : j.cancelButton, (c = d == null ? void 0 : d.classNames) == null ? void 0 : c.cancelButton) }, d.cancel.label) : null, io(d.action) ? d.action : d.action && ao(d.action) ? P.createElement("button", { "data-button": !0, "data-action": !0, style: d.actionButtonStyle || C, onClick: (V) => {
18140
+ }, className: Ve(j == null ? void 0 : j.cancelButton, (c = d == null ? void 0 : d.classNames) == null ? void 0 : c.cancelButton) }, d.cancel.label) : null, io(d.action) ? d.action : d.action && ao(d.action) ? _.createElement("button", { "data-button": !0, "data-action": !0, style: d.actionButtonStyle || S, onClick: (V) => {
18141
18141
  var ne, de;
18142
18142
  ao(d.action) && ((de = (ne = d.action).onClick) == null || de.call(ne, V), !V.defaultPrevented && Pt());
18143
18143
  }, className: Ve(j == null ? void 0 : j.actionButton, (p = d == null ? void 0 : d.classNames) == null ? void 0 : p.actionButton) }, d.action.label) : null));
@@ -18162,13 +18162,13 @@ function vC(t, e) {
18162
18162
  }), r;
18163
18163
  }
18164
18164
  Ki(function(t, e) {
18165
- let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: a, closeButton: i, className: u, offset: s, mobileOffset: l, theme: c = "light", richColors: p, duration: f, style: d, visibleToasts: b = lC, toastOptions: g, dir: m = Sc(), gap: v = pC, loadingIcon: x, icons: S, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: T } = t, [_, I] = P.useState([]), L = P.useMemo(() => Array.from(new Set([n].concat(_.filter((ee) => ee.position).map((ee) => ee.position)))), [_, n]), [$, B] = P.useState([]), [C, N] = P.useState(!1), [R, M] = P.useState(!1), [E, O] = P.useState(c !== "system" ? c : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), A = P.useRef(null), D = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), j = P.useRef(null), U = P.useRef(!1), pe = P.useCallback((ee) => {
18165
+ let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: a, closeButton: i, className: u, offset: s, mobileOffset: l, theme: c = "light", richColors: p, duration: f, style: d, visibleToasts: b = lC, toastOptions: g, dir: m = Sc(), gap: v = pC, loadingIcon: x, icons: w, containerAriaLabel: C = "Notifications", pauseWhenPageIsHidden: T } = t, [P, I] = _.useState([]), L = _.useMemo(() => Array.from(new Set([n].concat(P.filter((ee) => ee.position).map((ee) => ee.position)))), [P, n]), [$, B] = _.useState([]), [S, N] = _.useState(!1), [R, M] = _.useState(!1), [E, O] = _.useState(c !== "system" ? c : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), A = _.useRef(null), D = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), j = _.useRef(null), U = _.useRef(!1), pe = _.useCallback((ee) => {
18166
18166
  I((H) => {
18167
18167
  var z;
18168
18168
  return (z = H.find((ge) => ge.id === ee.id)) != null && z.delete || ke.dismiss(ee.id), H.filter(({ id: ge }) => ge !== ee.id);
18169
18169
  });
18170
18170
  }, []);
18171
- return P.useEffect(() => ke.subscribe((ee) => {
18171
+ return _.useEffect(() => ke.subscribe((ee) => {
18172
18172
  if (ee.dismiss) {
18173
18173
  I((H) => H.map((z) => z.id === ee.id ? { ...z, delete: !0 } : z));
18174
18174
  return;
@@ -18181,7 +18181,7 @@ Ki(function(t, e) {
18181
18181
  });
18182
18182
  });
18183
18183
  });
18184
- }), []), P.useEffect(() => {
18184
+ }), []), _.useEffect(() => {
18185
18185
  if (c !== "system") {
18186
18186
  O(c);
18187
18187
  return;
@@ -18201,22 +18201,22 @@ Ki(function(t, e) {
18201
18201
  }
18202
18202
  });
18203
18203
  }
18204
- }, [c]), P.useEffect(() => {
18205
- _.length <= 1 && N(!1);
18206
- }, [_]), P.useEffect(() => {
18204
+ }, [c]), _.useEffect(() => {
18205
+ P.length <= 1 && N(!1);
18206
+ }, [P]), _.useEffect(() => {
18207
18207
  let ee = (H) => {
18208
18208
  var z, ge;
18209
18209
  o.every((K) => H[K] || H.code === K) && (N(!0), (z = A.current) == null || z.focus()), H.code === "Escape" && (document.activeElement === A.current || (ge = A.current) != null && ge.contains(document.activeElement)) && N(!1);
18210
18210
  };
18211
18211
  return document.addEventListener("keydown", ee), () => document.removeEventListener("keydown", ee);
18212
- }, [o]), P.useEffect(() => {
18212
+ }, [o]), _.useEffect(() => {
18213
18213
  if (A.current) return () => {
18214
18214
  j.current && (j.current.focus({ preventScroll: !0 }), j.current = null, U.current = !1);
18215
18215
  };
18216
- }, [A.current]), P.createElement("section", { ref: e, "aria-label": `${w} ${D}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, L.map((ee, H) => {
18216
+ }, [A.current]), _.createElement("section", { ref: e, "aria-label": `${C} ${D}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, L.map((ee, H) => {
18217
18217
  var z;
18218
18218
  let [ge, K] = ee.split("-");
18219
- return _.length ? P.createElement("ol", { key: ee, dir: m === "auto" ? Sc() : m, tabIndex: -1, ref: A, className: u, "data-sonner-toaster": !0, "data-theme": E, "data-y-position": ge, "data-lifted": C && _.length > 1 && !a, "data-x-position": K, style: { "--front-toast-height": `${((z = $[0]) == null ? void 0 : z.height) || 0}px`, "--width": `${fC}px`, "--gap": `${v}px`, ...d, ...vC(s, l) }, onBlur: (F) => {
18219
+ return P.length ? _.createElement("ol", { key: ee, dir: m === "auto" ? Sc() : m, tabIndex: -1, ref: A, className: u, "data-sonner-toaster": !0, "data-theme": E, "data-y-position": ge, "data-lifted": S && P.length > 1 && !a, "data-x-position": K, style: { "--front-toast-height": `${((z = $[0]) == null ? void 0 : z.height) || 0}px`, "--width": `${fC}px`, "--gap": `${v}px`, ...d, ...vC(s, l) }, onBlur: (F) => {
18220
18220
  U.current && !F.currentTarget.contains(F.relatedTarget) && (U.current = !1, j.current && (j.current.focus({ preventScroll: !0 }), j.current = null));
18221
18221
  }, onFocus: (F) => {
18222
18222
  F.target instanceof HTMLElement && F.target.dataset.dismissible === "false" || U.current || (U.current = !0, j.current = F.relatedTarget);
@@ -18224,9 +18224,9 @@ Ki(function(t, e) {
18224
18224
  R || N(!1);
18225
18225
  }, onDragEnd: () => N(!1), onPointerDown: (F) => {
18226
18226
  F.target instanceof HTMLElement && F.target.dataset.dismissible === "false" || M(!0);
18227
- }, onPointerUp: () => M(!1) }, _.filter((F) => !F.position && H === 0 || F.position === ee).map((F, Oe) => {
18227
+ }, onPointerUp: () => M(!1) }, P.filter((F) => !F.position && H === 0 || F.position === ee).map((F, Oe) => {
18228
18228
  var Se, ye;
18229
- return P.createElement(gC, { key: F.id, icons: S, index: Oe, toast: F, defaultRichColors: p, duration: (Se = g == null ? void 0 : g.duration) != null ? Se : f, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: r, visibleToasts: b, closeButton: (ye = g == null ? void 0 : g.closeButton) != null ? ye : i, interacting: R, position: ee, 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: pe, toasts: _.filter((Ze) => Ze.position == F.position), heights: $.filter((Ze) => Ze.position == F.position), setHeights: B, expandByDefault: a, gap: v, loadingIcon: x, expanded: C, pauseWhenPageIsHidden: T, swipeDirections: t.swipeDirections });
18229
+ return _.createElement(gC, { key: F.id, icons: w, index: Oe, toast: F, defaultRichColors: p, duration: (Se = g == null ? void 0 : g.duration) != null ? Se : f, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: r, visibleToasts: b, closeButton: (ye = g == null ? void 0 : g.closeButton) != null ? ye : i, interacting: R, position: ee, 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: pe, toasts: P.filter((Ze) => Ze.position == F.position), heights: $.filter((Ze) => Ze.position == F.position), setHeights: B, expandByDefault: a, gap: v, loadingIcon: x, expanded: S, pauseWhenPageIsHidden: T, swipeDirections: t.swipeDirections });
18230
18230
  })) : null;
18231
18231
  }));
18232
18232
  });
@@ -18441,71 +18441,72 @@ const Cc = ({ htmlJson: t, editorState: e }) => {
18441
18441
  }, wC = ({
18442
18442
  handleSavePopup: t,
18443
18443
  popupEditorState: e,
18444
- handleStateChangePopup: r,
18445
- editorState: n,
18446
- setIsOpen: o,
18447
- initialData: a,
18448
- onSave: i,
18449
- onStateChange: u,
18450
- enabled: s = !0
18444
+ popupHtmlJson: r,
18445
+ handleStateChangePopup: n,
18446
+ editorState: o,
18447
+ setIsOpen: a,
18448
+ initialData: i,
18449
+ onSave: u,
18450
+ onStateChange: s,
18451
+ enabled: l = !0
18451
18452
  }) => {
18452
- var S;
18453
- const l = Uo(), [c, p] = be("desktop"), [f, d] = be(!1), b = Ye(f);
18454
- b.current = f;
18455
- const [g, m] = be(
18456
- ((S = Yi[c]) == null ? void 0 : S.width) || "100%"
18453
+ var C;
18454
+ const c = Uo(), [p, f] = be("desktop"), [d, b] = be(!1), g = Ye(d);
18455
+ g.current = d;
18456
+ const [m, v] = be(
18457
+ ((C = Yi[p]) == null ? void 0 : C.width) || "100%"
18457
18458
  );
18458
18459
  Me(() => {
18459
- var T;
18460
- const w = ((T = Yi[c]) == null ? void 0 : T.width) || "100%";
18461
- m(w);
18462
- }, [c]), Me(() => {
18463
- if (!s) {
18464
- const w = () => {
18465
- const T = window.innerWidth;
18466
- T < 640 ? p("mobile") : T < 1024 ? p("tablet") : T < 1280 ? p("small") : p("desktop");
18460
+ var P;
18461
+ const T = ((P = Yi[p]) == null ? void 0 : P.width) || "100%";
18462
+ v(T);
18463
+ }, [p]), Me(() => {
18464
+ if (!l) {
18465
+ const T = () => {
18466
+ const P = window.innerWidth;
18467
+ P < 640 ? f("mobile") : P < 1024 ? f("tablet") : P < 1280 ? f("small") : f("desktop");
18467
18468
  };
18468
- return window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
18469
+ return window.addEventListener("resize", T), () => window.removeEventListener("resize", T);
18469
18470
  }
18470
- }, [s]);
18471
- const v = (w) => {
18472
- if (u)
18471
+ }, [l]);
18472
+ const x = (T) => {
18473
+ if (s)
18473
18474
  try {
18474
- const T = w.serialize();
18475
- u(T);
18476
- } catch (T) {
18477
- console.log(T);
18475
+ const P = T.serialize();
18476
+ s(P);
18477
+ } catch (P) {
18478
+ console.log(P);
18478
18479
  }
18479
- }, x = (w) => {
18480
- if (r)
18480
+ }, w = (T) => {
18481
+ if (n)
18481
18482
  try {
18482
- const T = w.serialize();
18483
- r(T);
18484
- } catch (T) {
18485
- console.log(T);
18483
+ const P = T.serialize();
18484
+ n(P);
18485
+ } catch (P) {
18486
+ console.log(P);
18486
18487
  }
18487
18488
  };
18488
- return s ? /* @__PURE__ */ h(
18489
+ return l ? /* @__PURE__ */ h(
18489
18490
  yi,
18490
18491
  {
18491
18492
  resolver: Xi,
18492
- enabled: s,
18493
- onNodesChange: (w) => {
18494
- b.current ? x(w) : v(w);
18493
+ enabled: l,
18494
+ onNodesChange: (T) => {
18495
+ g.current ? w(T) : x(T);
18495
18496
  },
18496
- children: /* @__PURE__ */ h(xi, { value: c, children: /* @__PURE__ */ h(ho, { value: l, children: /* @__PURE__ */ k("div", { className: "flex flex-col h-full", children: [
18497
+ children: /* @__PURE__ */ h(xi, { value: p, children: /* @__PURE__ */ h(ho, { value: c, children: /* @__PURE__ */ k("div", { className: "flex flex-col h-full", children: [
18497
18498
  /* @__PURE__ */ k("div", { className: "flex items-center justify-between pb-4 border-b border-border", children: [
18498
- /* @__PURE__ */ h("h2", { className: "text-lg font-semibold", children: f ? "Popup Builder" : "Page Builder" }),
18499
+ /* @__PURE__ */ h("h2", { className: "text-lg font-semibold", children: d ? "Popup Builder" : "Page Builder" }),
18499
18500
  /* @__PURE__ */ h(
18500
18501
  yC,
18501
18502
  {
18502
- setIsOpen: o,
18503
- onSave: i,
18503
+ setIsOpen: a,
18504
+ onSave: u,
18504
18505
  handleSavePopup: t,
18505
- deviceSize: c,
18506
- onDeviceSizeChange: p,
18507
- editPopup: f,
18508
- setEditPopup: d
18506
+ deviceSize: p,
18507
+ onDeviceSizeChange: f,
18508
+ editPopup: d,
18509
+ setEditPopup: b
18509
18510
  }
18510
18511
  )
18511
18512
  ] }),
@@ -18519,20 +18520,21 @@ const Cc = ({ htmlJson: t, editorState: e }) => {
18519
18520
  {
18520
18521
  className: "bg-white rounded-lg min-h-full border border-dashed transition-all duration-300 ",
18521
18522
  style: {
18522
- width: typeof g == "number" ? `${g}px` : g,
18523
+ width: typeof m == "number" ? `${m}px` : m,
18523
18524
  maxWidth: "100%"
18524
18525
  },
18525
- children: f ? /* @__PURE__ */ h(
18526
+ children: d ? /* @__PURE__ */ h(
18526
18527
  xC,
18527
18528
  {
18528
18529
  popupEditorState: e,
18529
- enabled: s
18530
+ enabled: l,
18531
+ htmlJson: r
18530
18532
  }
18531
18533
  ) : /* @__PURE__ */ h(
18532
18534
  Cc,
18533
18535
  {
18534
- editorState: n,
18535
- htmlJson: a
18536
+ editorState: o,
18537
+ htmlJson: i
18536
18538
  }
18537
18539
  )
18538
18540
  }
@@ -18541,7 +18543,7 @@ const Cc = ({ htmlJson: t, editorState: e }) => {
18541
18543
  ] })
18542
18544
  ] }) }) })
18543
18545
  }
18544
- ) : /* @__PURE__ */ h(xi, { value: c, children: /* @__PURE__ */ h(ho, { value: l, children: /* @__PURE__ */ h(yi, { resolver: Xi, enabled: s, children: /* @__PURE__ */ h(Cc, { htmlJson: a }) }) }) });
18546
+ ) : /* @__PURE__ */ h(xi, { value: p, children: /* @__PURE__ */ h(ho, { value: c, children: /* @__PURE__ */ h(yi, { resolver: Xi, enabled: l, children: /* @__PURE__ */ h(Cc, { htmlJson: i }) }) }) });
18545
18547
  }, Ya = {
18546
18548
  mobile: { width: 375, label: "Mobile", icon: iu },
18547
18549
  tablet: { width: 768, label: "Tablet", icon: uu },
@@ -18624,16 +18626,17 @@ const Cc = ({ htmlJson: t, editorState: e }) => {
18624
18626
  }, XC = ({
18625
18627
  handleSavePopup: t,
18626
18628
  popupEditorState: e,
18627
- handleStateChangePopup: r,
18628
- editorState: n,
18629
- initialData: o,
18630
- onSave: a,
18631
- onStateChange: i,
18632
- eventData: u,
18633
- enabled: s = !0
18629
+ popupHtmlJson: r,
18630
+ handleStateChangePopup: n,
18631
+ editorState: o,
18632
+ initialData: a,
18633
+ onSave: i,
18634
+ onStateChange: u,
18635
+ eventData: s,
18636
+ enabled: l = !0
18634
18637
  }) => {
18635
- const [l, c] = P.useState(!1);
18636
- return /* @__PURE__ */ h(ho, { value: u, children: /* @__PURE__ */ k(
18638
+ const [c, p] = _.useState(!1);
18639
+ return /* @__PURE__ */ h(ho, { value: s, children: /* @__PURE__ */ k(
18637
18640
  Ip,
18638
18641
  {
18639
18642
  fallback: /* @__PURE__ */ h(sn, { children: /* @__PURE__ */ h(ln, { className: "p-4", children: /* @__PURE__ */ k("div", { className: "space-y-4", children: [
@@ -18648,25 +18651,26 @@ const Cc = ({ htmlJson: t, editorState: e }) => {
18648
18651
  /* @__PURE__ */ h(
18649
18652
  wC,
18650
18653
  {
18654
+ popupHtmlJson: r,
18651
18655
  popupEditorState: e,
18652
- handleStateChangePopup: r,
18653
- editorState: n,
18654
- enabled: s,
18655
- setIsOpen: c,
18656
- initialData: o,
18657
- onSave: a,
18656
+ handleStateChangePopup: n,
18657
+ editorState: o,
18658
+ enabled: l,
18659
+ setIsOpen: p,
18660
+ initialData: a,
18661
+ onSave: i,
18658
18662
  handleSavePopup: t,
18659
- onStateChange: i
18663
+ onStateChange: u
18660
18664
  }
18661
18665
  ),
18662
- s ? /* @__PURE__ */ h(
18666
+ l ? /* @__PURE__ */ h(
18663
18667
  EC,
18664
18668
  {
18665
18669
  popupEditorState: e,
18666
- eventData: u,
18667
- editorState: n,
18668
- isOpen: l,
18669
- onClose: () => c(!1)
18670
+ eventData: s,
18671
+ editorState: o,
18672
+ isOpen: c,
18673
+ onClose: () => p(!1)
18670
18674
  }
18671
18675
  ) : null
18672
18676
  ]