etudes 10.2.0 → 10.2.1

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/build/etudes.js CHANGED
@@ -1,4 +1,4 @@
1
- import Oo, { useState as ke, useEffect as he, useRef as Te, Fragment as ti, Children as kn, isValidElement as On, cloneElement as Ao, forwardRef as Se, useCallback as xr, createContext as Mo, useContext as Co } from "react";
1
+ import Oo, { useState as ke, useEffect as he, useRef as Te, Fragment as ti, Children as On, isValidElement as An, cloneElement as Ao, forwardRef as Se, useCallback as wr, createContext as Mo, useContext as Co } from "react";
2
2
  import { Link as Io, NavLink as $o, useSearchParams as _o } from "react-router";
3
3
  function ni(r) {
4
4
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
@@ -13,10 +13,10 @@ var Lt = { exports: {} }, xt = {};
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
- var wr;
16
+ var Er;
17
17
  function jo() {
18
- if (wr) return xt;
19
- wr = 1;
18
+ if (Er) return xt;
19
+ Er = 1;
20
20
  var r = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
21
21
  function s(c, l, u) {
22
22
  var p = null;
@@ -45,13 +45,13 @@ var wt = {};
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
47
  */
48
- var Er;
48
+ var Tr;
49
49
  function Ro() {
50
- return Er || (Er = 1, process.env.NODE_ENV !== "production" && function() {
50
+ return Tr || (Tr = 1, process.env.NODE_ENV !== "production" && function() {
51
51
  function r(k) {
52
52
  if (k == null) return null;
53
53
  if (typeof k == "function")
54
- return k.$$typeof === V ? null : k.displayName || k.name || null;
54
+ return k.$$typeof === X ? null : k.displayName || k.name || null;
55
55
  if (typeof k == "string") return k;
56
56
  switch (k) {
57
57
  case B:
@@ -75,7 +75,7 @@ function Ro() {
75
75
  return "Portal";
76
76
  case j:
77
77
  return (k.displayName || "Context") + ".Provider";
78
- case X:
78
+ case V:
79
79
  return (k._context.displayName || "Context") + ".Consumer";
80
80
  case Y:
81
81
  var J = k.render;
@@ -238,7 +238,7 @@ React keys must be passed directly to JSX without using spread:
238
238
  function N(k) {
239
239
  typeof k == "object" && k !== null && k.$$typeof === M && k._store && (k._store.validated = 1);
240
240
  }
241
- var O = Oo, M = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), j = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), V = Symbol.for("react.client.reference"), ee = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, L = Array.isArray, R = console.createTask ? console.createTask : function() {
241
+ var O = Oo, M = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), j = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), ee = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, L = Array.isArray, R = console.createTask ? console.createTask : function() {
242
242
  return null;
243
243
  };
244
244
  O = {
@@ -277,9 +277,9 @@ React keys must be passed directly to JSX without using spread:
277
277
  };
278
278
  }()), wt;
279
279
  }
280
- var Tr;
280
+ var Sr;
281
281
  function zo() {
282
- return Tr || (Tr = 1, process.env.NODE_ENV === "production" ? Lt.exports = /* @__PURE__ */ jo() : Lt.exports = /* @__PURE__ */ Ro()), Lt.exports;
282
+ return Sr || (Sr = 1, process.env.NODE_ENV === "production" ? Lt.exports = /* @__PURE__ */ jo() : Lt.exports = /* @__PURE__ */ Ro()), Lt.exports;
283
283
  }
284
284
  var S = /* @__PURE__ */ zo();
285
285
  function ri(r) {
@@ -295,9 +295,9 @@ function ue() {
295
295
  for (var r, n, s = 0, c = "", l = arguments.length; s < l; s++) (r = arguments[s]) && (n = ri(r)) && (c && (c += " "), c += n);
296
296
  return c;
297
297
  }
298
- var gn, Sr;
298
+ var gn, Nr;
299
299
  function Lo() {
300
- return Sr || (Sr = 1, gn = function r(n, s) {
300
+ return Nr || (Nr = 1, gn = function r(n, s) {
301
301
  if (n === s) return !0;
302
302
  if (n && s && typeof n == "object" && typeof s == "object") {
303
303
  if (n.constructor !== s.constructor) return !1;
@@ -967,7 +967,7 @@ class se {
967
967
  });
968
968
  }
969
969
  }
970
- function An(r, { onResize: n } = {}, s = []) {
970
+ function Mn(r, { onResize: n } = {}, s = []) {
971
971
  const c = Te(void 0);
972
972
  he(() => (c.current = new ResizeObserver(() => {
973
973
  const l = r.current;
@@ -981,7 +981,7 @@ function Ho(r) {
981
981
  const u = se.from(l);
982
982
  u && s(u);
983
983
  };
984
- return An(r, {
984
+ return Mn(r, {
985
985
  onResize: (l) => c(l)
986
986
  }), n.size;
987
987
  }
@@ -995,7 +995,7 @@ function Za({ children: r, if: n }) {
995
995
  return console.error(`[etudes::Conditional] The type of provided condition ${n} is not supported.`), /* @__PURE__ */ S.jsx(S.Fragment, {});
996
996
  }
997
997
  }
998
- function Mn({
998
+ function Cn({
999
999
  in: r,
1000
1000
  children: n,
1001
1001
  render: s
@@ -1009,8 +1009,8 @@ function Qa(r) {
1009
1009
  }
1010
1010
  function He(r, n = {}) {
1011
1011
  const s = Object.keys(n), c = Object.values(n), l = {};
1012
- return kn.forEach(r, (u) => {
1013
- if (!On(u)) throw Error("Invalid child detected");
1012
+ return On.forEach(r, (u) => {
1013
+ if (!An(u)) throw Error("Invalid child detected");
1014
1014
  const p = c.indexOf(u.type);
1015
1015
  if (p < 0) throw Error(`Unsupported child, only the following children are allowed: ${c}`);
1016
1016
  const g = s[p];
@@ -1036,8 +1036,8 @@ function Ne(r, n = {}, ...s) {
1036
1036
  function Ut(r) {
1037
1037
  return r == null ? "" : typeof r == "string" || typeof r == "number" || typeof r == "boolean" ? String(r) : typeof r == "function" ? r.toString() : r instanceof Date ? r.toISOString() : r instanceof RegExp ? r.toString() : r instanceof Map ? JSON.stringify(Array.from(r.entries())) : r instanceof Set ? JSON.stringify(Array.from(r.values())) : r instanceof WeakMap || r instanceof WeakSet ? "" : r instanceof ArrayBuffer ? r.toString() : Array.isArray(r) ? JSON.stringify(r.map(Ut)) : typeof r == "object" ? JSON.stringify(Object.entries(r).sort(([n], [s]) => n.localeCompare(s))) : "";
1038
1038
  }
1039
- function Nr(r) {
1040
- return r == null ? "" : Array.isArray(r) ? JSON.stringify(r.map(Nr)) : typeof r == "object" ? JSON.stringify(Object.entries(r).sort(([n], [s]) => n.localeCompare(s)).map(([n, s]) => [n, Nr(s)])) : Ut(r);
1039
+ function Pr(r) {
1040
+ return r == null ? "" : Array.isArray(r) ? JSON.stringify(r.map(Pr)) : typeof r == "object" ? JSON.stringify(Object.entries(r).sort(([n], [s]) => n.localeCompare(s)).map(([n, s]) => [n, Pr(s)])) : Ut(r);
1041
1041
  }
1042
1042
  function le(...r) {
1043
1043
  return r.reduce((n, s) => ({
@@ -1048,17 +1048,17 @@ function le(...r) {
1048
1048
  const Vo = /* @__PURE__ */ Se(({
1049
1049
  children: r,
1050
1050
  ...n
1051
- }, s) => (Array.isArray(r) && console.error(`[etudes::ExtractChild] Only one child is expected, but found ${r.length}. Only the first child is extracted while the rest are discarded.`), /* @__PURE__ */ S.jsx(S.Fragment, { children: kn.map(r, (c, l) => {
1051
+ }, s) => (Array.isArray(r) && console.error(`[etudes::ExtractChild] Only one child is expected, but found ${r.length}. Only the first child is extracted while the rest are discarded.`), /* @__PURE__ */ S.jsx(S.Fragment, { children: On.map(r, (c, l) => {
1052
1052
  if (!(l > 0))
1053
- return On(c) ? Ne(c, { ...n, ref: s }) : c;
1053
+ return An(c) ? Ne(c, { ...n, ref: s }) : c;
1054
1054
  }) })));
1055
1055
  function tc({
1056
1056
  children: r,
1057
1057
  ...n
1058
1058
  }) {
1059
- return /* @__PURE__ */ S.jsx(S.Fragment, { children: kn.map(r, (s) => On(s) ? Ne(s, { ...n }) : s) });
1059
+ return /* @__PURE__ */ S.jsx(S.Fragment, { children: On.map(r, (s) => An(s) ? Ne(s, { ...n }) : s) });
1060
1060
  }
1061
- function Pr({
1061
+ function kr({
1062
1062
  count: r = 1,
1063
1063
  children: n,
1064
1064
  render: s
@@ -1084,15 +1084,15 @@ const ii = /* @__PURE__ */ Se(({
1084
1084
  onSelectionChange: B,
1085
1085
  ItemComponent: W,
1086
1086
  ...D
1087
- }, X) => {
1088
- const j = (C) => !!(isNaN(C) || C >= u.length || C < 0), Y = (C) => kr(C).filter((z) => !j(z)), U = (C) => ee.indexOf(C) >= 0, H = (C) => {
1087
+ }, V) => {
1088
+ const j = (C) => !!(isNaN(C) || C >= u.length || C < 0), Y = (C) => Or(C).filter((z) => !j(z)), U = (C) => ee.indexOf(C) >= 0, H = (C) => {
1089
1089
  U(C) ? re(C) : T(C);
1090
1090
  }, T = (C) => {
1091
1091
  if (U(C)) return;
1092
1092
  let z;
1093
1093
  switch (w) {
1094
1094
  case "multiple": {
1095
- z = (Z) => kr([...Z.filter((Q) => Q !== C), C]);
1095
+ z = (Z) => Or([...Z.filter((Q) => Q !== C), C]);
1096
1096
  break;
1097
1097
  }
1098
1098
  case "single": {
@@ -1103,30 +1103,30 @@ const ii = /* @__PURE__ */ Se(({
1103
1103
  return;
1104
1104
  }
1105
1105
  const G = z(ee);
1106
- L.current = G, V(ee, G);
1106
+ L.current = G, X(ee, G);
1107
1107
  }, re = (C) => {
1108
1108
  if (!U(C)) return;
1109
1109
  const G = ((Z) => Z.filter((Q) => Q !== C))(ee);
1110
- L.current = G, V(ee, G);
1110
+ L.current = G, X(ee, G);
1111
1111
  }, ie = (C) => {
1112
1112
  N?.(C), w !== "none" && (s ? H(C) : T(C));
1113
- }, V = (C, z) => {
1113
+ }, X = (C, z) => {
1114
1114
  if (Ge(C, z)) return;
1115
1115
  const G = C?.filter((Q) => z.indexOf(Q) === -1) ?? [], Z = z.filter((Q) => C?.indexOf(Q) === -1);
1116
1116
  G.forEach((Q) => O?.(Q)), Z.forEach((Q) => _?.(Q)), B?.(z);
1117
1117
  }, ee = Y(x ?? []), q = Xo({ itemLength: c, itemPadding: l, layout: p, numSegments: g, orientation: m }), L = Te(void 0), R = L.current;
1118
1118
  return he(() => {
1119
- L.current = ee, R !== void 0 && V(R, ee);
1119
+ L.current = ee, R !== void 0 && X(R, ee);
1120
1120
  }, [Ut(ee)]), /* @__PURE__ */ S.jsx(
1121
1121
  "div",
1122
1122
  {
1123
1123
  ...D,
1124
- ref: X,
1124
+ ref: V,
1125
1125
  "aria-multiselectable": w === "multiple",
1126
1126
  className: ue(r),
1127
1127
  role: p === "grid" ? "grid" : w === "none" ? "list" : "listbox",
1128
1128
  style: le(n, q.root),
1129
- children: W && /* @__PURE__ */ S.jsx(Mn, { in: u, children: (C, z) => /* @__PURE__ */ S.jsx(
1129
+ children: W && /* @__PURE__ */ S.jsx(Cn, { in: u, children: (C, z) => /* @__PURE__ */ S.jsx(
1130
1130
  W,
1131
1131
  {
1132
1132
  "aria-selected": U(z),
@@ -1155,7 +1155,7 @@ const ii = /* @__PURE__ */ Se(({
1155
1155
  }
1156
1156
  );
1157
1157
  });
1158
- function kr(r) {
1158
+ function Or(r) {
1159
1159
  return r.sort((n, s) => n - s);
1160
1160
  }
1161
1161
  function Xo({ itemLength: r = NaN, itemPadding: n = 0, layout: s = "collection", numSegments: c = 1, orientation: l = "vertical" }) {
@@ -1217,7 +1217,7 @@ const nc = /* @__PURE__ */ Se(({
1217
1217
  onItemCustomEvent: B,
1218
1218
  onSelectAt: W,
1219
1219
  onSelectionChange: D,
1220
- HeaderComponent: X,
1220
+ HeaderComponent: V,
1221
1221
  ItemComponent: j,
1222
1222
  ...Y
1223
1223
  }, U) => {
@@ -1225,7 +1225,7 @@ const nc = /* @__PURE__ */ Se(({
1225
1225
  if (H(te)) return !0;
1226
1226
  const ae = p[te].items;
1227
1227
  return oe >= ae.length || oe < 0;
1228
- }, re = (oe, te) => (Z[te]?.indexOf(oe) ?? -1) >= 0, ie = (oe) => Ft(oe).filter((te) => !H(te)), V = (oe) => {
1228
+ }, re = (oe, te) => (Z[te]?.indexOf(oe) ?? -1) >= 0, ie = (oe) => Ft(oe).filter((te) => !H(te)), X = (oe) => {
1229
1229
  const te = {};
1230
1230
  for (const ae in p) {
1231
1231
  if (!Object.hasOwn(p, ae)) continue;
@@ -1276,14 +1276,14 @@ const nc = /* @__PURE__ */ Se(({
1276
1276
  A = [...A, ...Le.map((Ce) => [Ce, we])], ge = [...ge, ...Ve.map((Ce) => [Ce, we])];
1277
1277
  }
1278
1278
  A.forEach((we) => N?.(we[0], we[1])), ge.forEach((we) => W?.(we[0], we[1])), D?.(te);
1279
- }, G = Bo(), Z = V(g ?? {}), Q = ie(c ?? []), k = Do({ orientation: l }), J = Te(void 0), be = J.current, xe = p.map(() => Te(null)), Pe = xe.map((oe) => Ho(oe)), pe = He(r, {
1279
+ }, G = Bo(), Z = X(g ?? {}), Q = ie(c ?? []), k = Do({ orientation: l }), J = Te(void 0), be = J.current, xe = p.map(() => Te(null)), Pe = xe.map((oe) => Ho(oe)), pe = He(r, {
1280
1280
  collapseIcon: Wo,
1281
1281
  expandIcon: Uo,
1282
- header: Or
1282
+ header: Ar
1283
1283
  });
1284
1284
  return he(() => {
1285
1285
  J.current = Z, be !== void 0 && z(be, Z);
1286
- }, [Ut(Z)]), /* @__PURE__ */ S.jsx("div", { ...Y, ref: U, style: le(n, k.root), children: /* @__PURE__ */ S.jsx(Mn, { in: p, children: (oe, te) => {
1286
+ }, [Ut(Z)]), /* @__PURE__ */ S.jsx("div", { ...Y, ref: U, style: le(n, k.root), children: /* @__PURE__ */ S.jsx(Cn, { in: p, children: (oe, te) => {
1287
1287
  const { collectionPadding: ae = 0, items: A, itemLength: ge = 50, itemPadding: we = 0, isSelectionTogglable: Ie, layout: Ue = "list", maxVisible: Le = -1, numSegments: Ve = 1 } = oe, Ce = Ue === "list" ? A.length : Math.ceil(A.length / Ve), ut = Le < 0 ? Ce : Math.min(Ce, Le), Xe = ge * ut + we * (ut - 1), $e = !ee(te), Be = Pe[te];
1288
1288
  return /* @__PURE__ */ S.jsxs(
1289
1289
  "div",
@@ -1307,8 +1307,8 @@ const nc = /* @__PURE__ */ Se(({
1307
1307
  {
1308
1308
  ref: xe[te],
1309
1309
  style: le(k.headerContainer),
1310
- children: X ? /* @__PURE__ */ S.jsx(
1311
- X,
1310
+ children: V ? /* @__PURE__ */ S.jsx(
1311
+ V,
1312
1312
  {
1313
1313
  "aria-expanded": !$e,
1314
1314
  className: ue({ collapsed: $e, expanded: !$e }),
@@ -1321,7 +1321,7 @@ const nc = /* @__PURE__ */ Se(({
1321
1321
  onCustomEvent: (ze, at) => _?.(te, ze, at)
1322
1322
  }
1323
1323
  ) : Ne(
1324
- pe.header ?? /* @__PURE__ */ S.jsx(Or, {}),
1324
+ pe.header ?? /* @__PURE__ */ S.jsx(Ar, {}),
1325
1325
  {
1326
1326
  "aria-expanded": !$e,
1327
1327
  className: ue({ collapsed: $e, expanded: !$e }),
@@ -1378,7 +1378,7 @@ const nc = /* @__PURE__ */ Se(({
1378
1378
  }
1379
1379
  );
1380
1380
  } }) });
1381
- }), Or = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("button", { ...n, children: r }), Uo = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("figure", { ...n, children: r }), Wo = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("figure", { ...n, children: r });
1381
+ }), Ar = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("button", { ...n, children: r }), Uo = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("figure", { ...n, children: r }), Wo = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("figure", { ...n, children: r });
1382
1382
  function Ft(r) {
1383
1383
  return r.sort((n, s) => n - s);
1384
1384
  }
@@ -1444,7 +1444,7 @@ const qo = /* @__PURE__ */ Se(({
1444
1444
  ...p
1445
1445
  }, g) => {
1446
1446
  const m = He(r, {
1447
- bar: Sn
1447
+ bar: Nn
1448
1448
  }), x = {
1449
1449
  root: ue({
1450
1450
  active: s
@@ -1459,7 +1459,7 @@ const qo = /* @__PURE__ */ Se(({
1459
1459
  ...p,
1460
1460
  ref: g,
1461
1461
  className: ue(n, x.root),
1462
- children: /* @__PURE__ */ S.jsx(Pr, { count: l ? 2 : 1, children: (N) => /* @__PURE__ */ S.jsx("div", { "aria-hidden": !0, style: le(w.section, w[`section${N}`]), children: /* @__PURE__ */ S.jsx(Pr, { count: u, children: (O) => Ne(m.bar ?? /* @__PURE__ */ S.jsx(Sn, {}), {
1462
+ children: /* @__PURE__ */ S.jsx(kr, { count: l ? 2 : 1, children: (N) => /* @__PURE__ */ S.jsx("div", { "aria-hidden": !0, style: le(w.section, w[`section${N}`]), children: /* @__PURE__ */ S.jsx(kr, { count: u, children: (O) => Ne(m.bar ?? /* @__PURE__ */ S.jsx(Nn, {}), {
1463
1463
  "aria-hidden": !0,
1464
1464
  className: ue(x.bar),
1465
1465
  style: (() => {
@@ -1474,7 +1474,7 @@ const qo = /* @__PURE__ */ Se(({
1474
1474
  }) }) }) })
1475
1475
  }
1476
1476
  );
1477
- }), Sn = ({ ...r }) => /* @__PURE__ */ S.jsx("span", { ...r });
1477
+ }), Nn = ({ ...r }) => /* @__PURE__ */ S.jsx("span", { ...r });
1478
1478
  function Go({ isActive: r = !1, isSplit: n = !1, isTailHidden: s = !1 }) {
1479
1479
  return {
1480
1480
  section: {
@@ -1577,7 +1577,7 @@ const rc = /* @__PURE__ */ Se(({
1577
1577
  )
1578
1578
  }
1579
1579
  );
1580
- }), ic = Sn;
1580
+ }), ic = Nn;
1581
1581
  function Ko() {
1582
1582
  return {
1583
1583
  root: {
@@ -1715,9 +1715,9 @@ function ts(r, {
1715
1715
  };
1716
1716
  }, [g, n, ...p]);
1717
1717
  }
1718
- var Yt = { exports: {} }, ns = Yt.exports, Ar;
1718
+ var Yt = { exports: {} }, ns = Yt.exports, Mr;
1719
1719
  function rs() {
1720
- return Ar || (Ar = 1, function(r, n) {
1720
+ return Mr || (Mr = 1, function(r, n) {
1721
1721
  (function(s, c) {
1722
1722
  r.exports = c();
1723
1723
  })(ns, function() {
@@ -1833,14 +1833,14 @@ function rs() {
1833
1833
  }
1834
1834
  var W = function(t) {
1835
1835
  return !(!t || !t.Window) && t instanceof t.Window;
1836
- }, D = void 0, X = void 0;
1836
+ }, D = void 0, V = void 0;
1837
1837
  function j(t) {
1838
1838
  D = t;
1839
1839
  var e = t.document.createTextNode("");
1840
- e.ownerDocument !== t.document && typeof t.wrap == "function" && t.wrap(e) === e && (t = t.wrap(t)), X = t;
1840
+ e.ownerDocument !== t.document && typeof t.wrap == "function" && t.wrap(e) === e && (t = t.wrap(t)), V = t;
1841
1841
  }
1842
1842
  function Y(t) {
1843
- return W(t) ? t : (t.ownerDocument || t).defaultView || X.window;
1843
+ return W(t) ? t : (t.ownerDocument || t).defaultView || V.window;
1844
1844
  }
1845
1845
  typeof window < "u" && window && j(window);
1846
1846
  var U = function(t) {
@@ -1848,7 +1848,7 @@ function rs() {
1848
1848
  }, H = function(t) {
1849
1849
  return typeof t == "function";
1850
1850
  }, T = { window: function(t) {
1851
- return t === X || W(t);
1851
+ return t === V || W(t);
1852
1852
  }, docFrag: function(t) {
1853
1853
  return U(t) && t.nodeType === 11;
1854
1854
  }, object: U, func: H, number: function(t) {
@@ -1859,7 +1859,7 @@ function rs() {
1859
1859
  return typeof t == "string";
1860
1860
  }, element: function(t) {
1861
1861
  if (!t || l(t) !== "object") return !1;
1862
- var e = Y(t) || X;
1862
+ var e = Y(t) || V;
1863
1863
  return /object|function/.test(typeof Element > "u" ? "undefined" : l(Element)) ? t instanceof Element || t instanceof e.Element : t.nodeType === 1 && typeof t.nodeName == "string";
1864
1864
  }, plainObject: function(t) {
1865
1865
  return U(t) && !!t.constructor && /function Object\b/.test(t.constructor.toString());
@@ -1883,9 +1883,9 @@ function rs() {
1883
1883
  }
1884
1884
  }
1885
1885
  }
1886
- var V = { id: "actions/drag", install: function(t) {
1886
+ var X = { id: "actions/drag", install: function(t) {
1887
1887
  var e = t.actions, i = t.Interactable, o = t.defaults;
1888
- i.prototype.draggable = V.draggable, e.map.drag = V, e.methodDict.drag = "draggable", o.actions.drag = V.defaults;
1888
+ i.prototype.draggable = X.draggable, e.map.drag = X, e.methodDict.drag = "draggable", o.actions.drag = X.defaults;
1889
1889
  }, listeners: { "interactions:before-action-move": re, "interactions:action-resume": re, "interactions:action-move": ie, "auto-start:check": function(t) {
1890
1890
  var e = t.interaction, i = t.interactable, o = t.buttons, a = i.options.drag;
1891
1891
  if (a && a.enabled && (!e.pointerIsDown || !/mouse|pointer/.test(e.pointerType) || (o & i.options.drag.mouseButtons) != 0)) return t.action = { name: "drag", axis: a.lockAxis === "start" ? a.startAxis : a.lockAxis }, !1;
@@ -1895,7 +1895,7 @@ function rs() {
1895
1895
  return "move";
1896
1896
  }, filterEventType: function(t) {
1897
1897
  return t.search("drag") === 0;
1898
- } }, ee = V, q = { init: function(t) {
1898
+ } }, ee = X, q = { init: function(t) {
1899
1899
  var e = t;
1900
1900
  q.document = e.document, q.DocumentFragment = e.DocumentFragment || L, q.SVGElement = e.SVGElement || L, q.SVGSVGElement = e.SVGSVGElement || L, q.SVGElementInstance = e.SVGElementInstance || L, q.Element = e.Element || L, q.HTMLElement = e.HTMLElement || q.Element, q.Event = e.Event, q.Touch = e.Touch || L, q.PointerEvent = e.PointerEvent || e.MSPointerEvent;
1901
1901
  }, document: null, DocumentFragment: null, SVGElement: null, SVGSVGElement: null, SVGElementInstance: null, Element: null, HTMLElement: null, Event: null, Touch: null, PointerEvent: null };
@@ -1929,7 +1929,7 @@ function rs() {
1929
1929
  return e;
1930
1930
  }
1931
1931
  function k(t, e) {
1932
- return X !== D && (e = e.replace(/\/deep\//g, " ")), t[z.prefixedMatchesSelector](e);
1932
+ return V !== D && (e = e.replace(/\/deep\//g, " ")), t[z.prefixedMatchesSelector](e);
1933
1933
  }
1934
1934
  var J = function(t) {
1935
1935
  return t.parentNode || t.host;
@@ -1955,7 +1955,7 @@ function rs() {
1955
1955
  function oe(t) {
1956
1956
  var e, i = pe(t);
1957
1957
  if (!z.isIOS7 && i) {
1958
- var o = { x: (e = (e = Y(t)) || X).scrollX || e.document.documentElement.scrollLeft, y: e.scrollY || e.document.documentElement.scrollTop };
1958
+ var o = { x: (e = (e = Y(t)) || V).scrollX || e.document.documentElement.scrollLeft, y: e.scrollY || e.document.documentElement.scrollTop };
1959
1959
  i.left += o.x, i.right += o.x, i.top += o.y, i.bottom += o.y;
1960
1960
  }
1961
1961
  return i;
@@ -2042,15 +2042,15 @@ function rs() {
2042
2042
  function kt(t, e, i) {
2043
2043
  return t = t || "page", (i = i || {}).x = e[t + "X"], i.y = e[t + "Y"], i;
2044
2044
  }
2045
- function $n(t, e) {
2045
+ function _n(t, e) {
2046
2046
  return e = e || { x: 0, y: 0 }, z.isOperaMobile && Pt(t) ? (kt("screen", t, e), e.x += window.scrollX, e.y += window.scrollY) : kt("page", t, e), e;
2047
2047
  }
2048
2048
  function ft(t) {
2049
2049
  return T.number(t.pointerId) ? t.pointerId : t.identifier;
2050
2050
  }
2051
2051
  function gi(t, e, i) {
2052
- var o = e.length > 1 ? _n(e) : e[0];
2053
- $n(o, t.page), function(a, f) {
2052
+ var o = e.length > 1 ? jn(e) : e[0];
2053
+ _n(o, t.page), function(a, f) {
2054
2054
  f = f || {}, z.isOperaMobile && Pt(a) ? kt("screen", a, f) : kt("client", a, f);
2055
2055
  }(o, t.client), t.timeStamp = i;
2056
2056
  }
@@ -2058,7 +2058,7 @@ function rs() {
2058
2058
  var e = [];
2059
2059
  return T.array(t) ? (e[0] = t[0], e[1] = t[1]) : t.type === "touchend" ? t.touches.length === 1 ? (e[0] = t.touches[0], e[1] = t.changedTouches[0]) : t.touches.length === 0 && (e[0] = t.changedTouches[0], e[1] = t.changedTouches[1]) : (e[0] = t.touches[0], e[1] = t.touches[1]), e;
2060
2060
  }
2061
- function _n(t) {
2061
+ function jn(t) {
2062
2062
  for (var e = { pageX: 0, pageY: 0, clientX: 0, clientY: 0, screenX: 0, screenY: 0 }, i = 0; i < t.length; i++) {
2063
2063
  var o = t[i];
2064
2064
  for (var a in e) e[a] += o[a];
@@ -2079,10 +2079,10 @@ function rs() {
2079
2079
  var i = e + "X", o = e + "Y", a = Wt(t), f = a[1][i] - a[0][i], d = a[1][o] - a[0][o];
2080
2080
  return 180 * Math.atan2(d, f) / Math.PI;
2081
2081
  }
2082
- function jn(t) {
2082
+ function Rn(t) {
2083
2083
  return T.string(t.pointerType) ? t.pointerType : T.number(t.pointerType) ? [void 0, void 0, "touch", "pen", "mouse"][t.pointerType] : /touch/.test(t.type || "") || t instanceof R.Touch ? "touch" : "mouse";
2084
2084
  }
2085
- function Rn(t) {
2085
+ function zn(t) {
2086
2086
  var e = T.func(t.composedPath) ? t.composedPath() : t.path;
2087
2087
  return [Pe(e ? e[0] : t.target), Pe(t.currentTarget)];
2088
2088
  }
@@ -2101,14 +2101,14 @@ function rs() {
2101
2101
  return this._interaction._proxy;
2102
2102
  }, set: function() {
2103
2103
  } });
2104
- var zn = function(t, e) {
2104
+ var Ln = function(t, e) {
2105
2105
  for (var i = 0; i < e.length; i++) {
2106
2106
  var o = e[i];
2107
2107
  t.push(o);
2108
2108
  }
2109
2109
  return t;
2110
- }, Ln = function(t) {
2111
- return zn([], t);
2110
+ }, Fn = function(t) {
2111
+ return Ln([], t);
2112
2112
  }, dt = function(t, e) {
2113
2113
  for (var i = 0; i < t.length; i++) if (e(t[i], i, t)) return i;
2114
2114
  return -1;
@@ -2141,7 +2141,7 @@ function rs() {
2141
2141
  this.immediatePropagationStopped = this.propagationStopped = !0;
2142
2142
  } }]), i;
2143
2143
  }(Ot);
2144
- function Fn(t, e) {
2144
+ function Bn(t, e) {
2145
2145
  for (var i = 0, o = t.slice(); i < o.length; i++) {
2146
2146
  var a = o[i], f = a.dropzone, d = a.element;
2147
2147
  e.dropzone = f, e.target = d, f.fire(e), e.propagationStopped = e.immediatePropagationStopped = !1;
@@ -2166,7 +2166,7 @@ function rs() {
2166
2166
  }
2167
2167
  return i;
2168
2168
  }
2169
- function Bn(t, e, i) {
2169
+ function Yn(t, e, i) {
2170
2170
  for (var o = t.dropState, a = t.interactable, f = t.element, d = [], h = 0, v = o.activeDrops; h < v.length; h++) {
2171
2171
  var b = v[h], y = b.dropzone, E = b.element, P = b.rect, $ = y.dropCheck(e, i, a, f, E, P);
2172
2172
  d.push($ ? E : null);
@@ -2207,18 +2207,18 @@ function rs() {
2207
2207
  }
2208
2208
  function Zt(t, e) {
2209
2209
  var i = t.dropState, o = i.activeDrops, a = i.cur, f = i.prev;
2210
- e.leave && f.dropzone.fire(e.leave), e.enter && a.dropzone.fire(e.enter), e.move && a.dropzone.fire(e.move), e.drop && a.dropzone.fire(e.drop), e.deactivate && Fn(o, e.deactivate), i.prev.dropzone = a.dropzone, i.prev.element = a.element;
2210
+ e.leave && f.dropzone.fire(e.leave), e.enter && a.dropzone.fire(e.enter), e.move && a.dropzone.fire(e.move), e.drop && a.dropzone.fire(e.drop), e.deactivate && Bn(o, e.deactivate), i.prev.dropzone = a.dropzone, i.prev.element = a.element;
2211
2211
  }
2212
- function Yn(t, e) {
2212
+ function Hn(t, e) {
2213
2213
  var i = t.interaction, o = t.iEvent, a = t.event;
2214
2214
  if (o.type === "dragmove" || o.type === "dragend") {
2215
2215
  var f = i.dropState;
2216
2216
  e.dynamicDrop && (f.activeDrops = Kt(e, i.element));
2217
- var d = o, h = Bn(i, d, a);
2217
+ var d = o, h = Yn(i, d, a);
2218
2218
  f.rejected = f.rejected && !!h && h.dropzone === f.cur.dropzone && h.element === f.cur.element, f.cur.dropzone = h && h.dropzone, f.cur.element = h && h.element, f.events = Jt(i, 0, d);
2219
2219
  }
2220
2220
  }
2221
- var Hn = { id: "actions/drop", install: function(t) {
2221
+ var Vn = { id: "actions/drop", install: function(t) {
2222
2222
  var e = t.actions, i = t.interactStatic, o = t.Interactable, a = t.defaults;
2223
2223
  t.usePlugin(ee), o.prototype.dropzone = function(f) {
2224
2224
  return function(d, h) {
@@ -2239,7 +2239,7 @@ function rs() {
2239
2239
  if (!(K = K || E.getRect(ne))) return !!E.options.drop.checker && E.options.drop.checker(P, $, ce, E, ne, I, F);
2240
2240
  var ve = E.options.drop.overlap;
2241
2241
  if (ve === "pointer") {
2242
- var Ee = Ve(I, F, "drag"), fe = $n(P);
2242
+ var Ee = Ve(I, F, "drag"), fe = _n(P);
2243
2243
  fe.x += Ee.x, fe.y += Ee.y;
2244
2244
  var me = fe.x > K.left && fe.x < K.right, je = fe.y > K.top && fe.y < K.bottom;
2245
2245
  ce = me && je;
@@ -2253,7 +2253,7 @@ function rs() {
2253
2253
  }(this, f, d, h, v, b, y);
2254
2254
  }, i.dynamicDrop = function(f) {
2255
2255
  return T.bool(f) ? (t.dynamicDrop = f, i) : t.dynamicDrop;
2256
- }, A(e.phaselessTypes, { dragenter: !0, dragleave: !0, dropactivate: !0, dropdeactivate: !0, dropmove: !0, drop: !0 }), e.methodDict.drop = "dropzone", t.dynamicDrop = !1, a.actions.drop = Hn.defaults;
2256
+ }, A(e.phaselessTypes, { dragenter: !0, dragleave: !0, dropactivate: !0, dropdeactivate: !0, dropmove: !0, drop: !0 }), e.methodDict.drop = "dropzone", t.dynamicDrop = !1, a.actions.drop = Vn.defaults;
2257
2257
  }, listeners: { "interactions:before-action-start": function(t) {
2258
2258
  var e = t.interaction;
2259
2259
  e.prepared.name === "drag" && (e.dropState = { cur: { dropzone: null, element: null }, prev: { dropzone: null, element: null }, rejected: null, events: null, activeDrops: [] });
@@ -2261,9 +2261,9 @@ function rs() {
2261
2261
  var i = t.interaction, o = t.iEvent;
2262
2262
  if (i.prepared.name === "drag") {
2263
2263
  var a = i.dropState;
2264
- a.activeDrops = [], a.events = {}, a.activeDrops = Kt(e, i.element), a.events = Jt(i, 0, o), a.events.activate && (Fn(a.activeDrops, a.events.activate), e.fire("actions/drop:start", { interaction: i, dragEvent: o }));
2264
+ a.activeDrops = [], a.events = {}, a.activeDrops = Kt(e, i.element), a.events = Jt(i, 0, o), a.events.activate && (Bn(a.activeDrops, a.events.activate), e.fire("actions/drop:start", { interaction: i, dragEvent: o }));
2265
2265
  }
2266
- }, "interactions:action-move": Yn, "interactions:after-action-move": function(t, e) {
2266
+ }, "interactions:action-move": Hn, "interactions:after-action-move": function(t, e) {
2267
2267
  var i = t.interaction, o = t.iEvent;
2268
2268
  if (i.prepared.name === "drag") {
2269
2269
  var a = i.dropState;
@@ -2272,7 +2272,7 @@ function rs() {
2272
2272
  }, "interactions:action-end": function(t, e) {
2273
2273
  if (t.interaction.prepared.name === "drag") {
2274
2274
  var i = t.interaction, o = t.iEvent;
2275
- Yn(t, e), Zt(i, i.dropState.events), e.fire("actions/drop:end", { interaction: i, dragEvent: o });
2275
+ Hn(t, e), Zt(i, i.dropState.events), e.fire("actions/drop:end", { interaction: i, dragEvent: o });
2276
2276
  }
2277
2277
  }, "interactions:stop": function(t) {
2278
2278
  var e = t.interaction;
@@ -2280,9 +2280,9 @@ function rs() {
2280
2280
  var i = e.dropState;
2281
2281
  i && (i.activeDrops = null, i.events = null, i.cur.dropzone = null, i.cur.element = null, i.prev.dropzone = null, i.prev.element = null, i.rejected = !1);
2282
2282
  }
2283
- } }, getActiveDrops: Kt, getDrop: Bn, getDropEvents: Jt, fireDropEvents: Zt, filterEventType: function(t) {
2283
+ } }, getActiveDrops: Kt, getDrop: Yn, getDropEvents: Jt, fireDropEvents: Zt, filterEventType: function(t) {
2284
2284
  return t.search("drag") === 0 || t.search("drop") === 0;
2285
- }, defaults: { enabled: !1, accept: null, overlap: "pointer" } }, vi = Hn;
2285
+ }, defaults: { enabled: !1, accept: null, overlap: "pointer" } }, vi = Vn;
2286
2286
  function Qt(t) {
2287
2287
  var e = t.interaction, i = t.iEvent, o = t.phase;
2288
2288
  if (e.prepared.name === "gesture") {
@@ -2331,7 +2331,7 @@ function rs() {
2331
2331
  }
2332
2332
  return !!T.element(o) && (T.element(e) ? e === o : xe(o, e, a));
2333
2333
  }
2334
- function Vn(t) {
2334
+ function Xn(t) {
2335
2335
  var e = t.iEvent, i = t.interaction;
2336
2336
  if (i.prepared.name === "resize" && i.resizeAxes) {
2337
2337
  var o = e;
@@ -2356,7 +2356,7 @@ function rs() {
2356
2356
  var a = i, f = o.rect;
2357
2357
  o._rects = { start: A({}, f), corrected: A({}, f), previous: A({}, f), delta: { left: 0, right: 0, width: 0, top: 0, bottom: 0, height: 0 } }, a.edges = o.prepared.edges, a.rect = o._rects.corrected, a.deltaRect = o._rects.delta;
2358
2358
  }
2359
- })(t), Vn(t);
2359
+ })(t), Xn(t);
2360
2360
  }, "interactions:action-move": function(t) {
2361
2361
  (function(e) {
2362
2362
  var i = e.iEvent, o = e.interaction;
@@ -2377,7 +2377,7 @@ function rs() {
2377
2377
  for (var F in y.width = y.right - y.left, y.height = y.bottom - y.top, y) E[F] = y[F] - P[F];
2378
2378
  a.edges = o.prepared.edges, a.rect = y, a.deltaRect = E;
2379
2379
  }
2380
- })(t), Vn(t);
2380
+ })(t), Xn(t);
2381
2381
  }, "interactions:action-end": function(t) {
2382
2382
  var e = t.iEvent, i = t.interaction;
2383
2383
  if (i.prepared.name === "resize" && i.prepared.edges) {
@@ -2415,7 +2415,7 @@ function rs() {
2415
2415
  return t.search("resize") === 0;
2416
2416
  }, defaultMargin: null }, bi = De, xi = { id: "actions", install: function(t) {
2417
2417
  t.usePlugin(mi), t.usePlugin(bi), t.usePlugin(ee), t.usePlugin(vi);
2418
- } }, Xn = 0, Ke = { request: function(t) {
2418
+ } }, Un = 0, Ke = { request: function(t) {
2419
2419
  return We(t);
2420
2420
  }, cancel: function(t) {
2421
2421
  return nt(t);
@@ -2425,10 +2425,10 @@ function rs() {
2425
2425
  We = t["".concat(o, "RequestAnimationFrame")], nt = t["".concat(o, "CancelAnimationFrame")] || t["".concat(o, "CancelRequestAnimationFrame")];
2426
2426
  }
2427
2427
  We = We && We.bind(t), nt = nt && nt.bind(t), We || (We = function(a) {
2428
- var f = Date.now(), d = Math.max(0, 16 - (f - Xn)), h = t.setTimeout(function() {
2428
+ var f = Date.now(), d = Math.max(0, 16 - (f - Un)), h = t.setTimeout(function() {
2429
2429
  a(f + d);
2430
2430
  }, d);
2431
- return Xn = f + d, h;
2431
+ return Un = f + d, h;
2432
2432
  }, nt = function(a) {
2433
2433
  return clearTimeout(a);
2434
2434
  });
@@ -2437,13 +2437,13 @@ function rs() {
2437
2437
  }, stop: function() {
2438
2438
  de.isScrolling = !1, de.interaction && (de.interaction.autoScroll = null), Ke.cancel(de.i);
2439
2439
  }, scroll: function() {
2440
- var t = de.interaction, e = t.interactable, i = t.element, o = t.prepared.name, a = e.options[o].autoScroll, f = Un(a.container, e, i), d = de.now(), h = (d - de.prevTime) / 1e3, v = a.speed * h;
2440
+ var t = de.interaction, e = t.interactable, i = t.element, o = t.prepared.name, a = e.options[o].autoScroll, f = Wn(a.container, e, i), d = de.now(), h = (d - de.prevTime) / 1e3, v = a.speed * h;
2441
2441
  if (v >= 1) {
2442
2442
  var b = { x: de.x * v, y: de.y * v };
2443
2443
  if (b.x || b.y) {
2444
- var y = Wn(f);
2444
+ var y = Dn(f);
2445
2445
  T.window(f) ? f.scrollBy(b.x, b.y) : f && (f.scrollLeft += b.x, f.scrollTop += b.y);
2446
- var E = Wn(f), P = { x: E.x - y.x, y: E.y - y.y };
2446
+ var E = Dn(f), P = { x: E.x - y.x, y: E.y - y.y };
2447
2447
  (P.x || P.y) && e.fire({ type: "autoscroll", target: i, interactable: e, delta: P, interaction: t, container: f });
2448
2448
  }
2449
2449
  de.prevTime = d;
@@ -2456,7 +2456,7 @@ function rs() {
2456
2456
  var e = t.interaction, i = t.pointer;
2457
2457
  if (e.interacting() && de.check(e.interactable, e.prepared.name)) if (e.simulation) de.x = de.y = 0;
2458
2458
  else {
2459
- var o, a, f, d, h = e.interactable, v = e.element, b = e.prepared.name, y = h.options[b].autoScroll, E = Un(y.container, h, v);
2459
+ var o, a, f, d, h = e.interactable, v = e.element, b = e.prepared.name, y = h.options[b].autoScroll, E = Wn(y.container, h, v);
2460
2460
  if (T.window(E)) d = i.clientX < de.margin, o = i.clientY < de.margin, a = i.clientX > E.innerWidth - de.margin, f = i.clientY > E.innerHeight - de.margin;
2461
2461
  else {
2462
2462
  var P = pe(E);
@@ -2465,10 +2465,10 @@ function rs() {
2465
2465
  de.x = a ? 1 : d ? -1 : 0, de.y = f ? 1 : o ? -1 : 0, de.isScrolling || (de.margin = y.margin, de.speed = y.speed, de.start(e));
2466
2466
  }
2467
2467
  } };
2468
- function Un(t, e, i) {
2468
+ function Wn(t, e, i) {
2469
2469
  return (T.string(t) ? ge(t, e, i) : t) || Y(i);
2470
2470
  }
2471
- function Wn(t) {
2471
+ function Dn(t) {
2472
2472
  return T.window(t) && (t = window.document.body), { x: t.scrollLeft, y: t.scrollTop };
2473
2473
  }
2474
2474
  var wi = { id: "auto-scroll", install: function(t) {
@@ -2486,7 +2486,7 @@ function rs() {
2486
2486
  function pt(t, e) {
2487
2487
  var i = !1;
2488
2488
  return function() {
2489
- return i || (X.console.warn(e), i = !0), t.apply(this, arguments);
2489
+ return i || (V.console.warn(e), i = !0), t.apply(this, arguments);
2490
2490
  };
2491
2491
  }
2492
2492
  function tn(t, e) {
@@ -2512,20 +2512,20 @@ function rs() {
2512
2512
  return this._backCompatOption("allowFrom", i);
2513
2513
  }, "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), e.prototype.actionChecker = Si, e.prototype.styleCursor = Ti;
2514
2514
  } };
2515
- function Dn(t, e, i, o, a) {
2515
+ function qn(t, e, i, o, a) {
2516
2516
  return e.testIgnoreAllow(e.options[t.name], i, o) && e.options[t.name].enabled && At(e, i, t, a) ? t : null;
2517
2517
  }
2518
2518
  function Pi(t, e, i, o, a, f, d) {
2519
2519
  for (var h = 0, v = o.length; h < v; h++) {
2520
2520
  var b = o[h], y = a[h], E = b.getAction(e, i, t, y);
2521
2521
  if (E) {
2522
- var P = Dn(E, b, y, f, d);
2522
+ var P = qn(E, b, y, f, d);
2523
2523
  if (P) return { action: P, interactable: b, element: y };
2524
2524
  }
2525
2525
  }
2526
2526
  return { action: null, interactable: null, element: null };
2527
2527
  }
2528
- function qn(t, e, i, o, a) {
2528
+ function Gn(t, e, i, o, a) {
2529
2529
  var f = [], d = [], h = o;
2530
2530
  function v(y) {
2531
2531
  f.push(y), d.push(h);
@@ -2538,9 +2538,9 @@ function rs() {
2538
2538
  }
2539
2539
  return { action: null, interactable: null, element: null };
2540
2540
  }
2541
- function Gn(t, e, i) {
2541
+ function Kn(t, e, i) {
2542
2542
  var o = e.action, a = e.interactable, f = e.element;
2543
- o = o || { name: null }, t.interactable = a, t.element = f, tn(t.prepared, o), t.rect = a && o.name ? a.getRect(f) : null, Jn(t, i), i.fire("autoStart:prepared", { interaction: t });
2543
+ o = o || { name: null }, t.interactable = a, t.element = f, tn(t.prepared, o), t.rect = a && o.name ? a.getRect(f) : null, Zn(t, i), i.fire("autoStart:prepared", { interaction: t });
2544
2544
  }
2545
2545
  function At(t, e, i, o) {
2546
2546
  var a = t.options, f = a[i.name].max, d = a[i.name].maxPerElement, h = o.autoStart.maxInteractions, v = 0, b = 0, y = 0;
@@ -2552,14 +2552,14 @@ function rs() {
2552
2552
  }
2553
2553
  return h > 0;
2554
2554
  }
2555
- function Kn(t, e) {
2555
+ function Jn(t, e) {
2556
2556
  return T.number(t) ? (e.autoStart.maxInteractions = t, this) : e.autoStart.maxInteractions;
2557
2557
  }
2558
2558
  function nn(t, e, i) {
2559
2559
  var o = i.autoStart.cursorElement;
2560
2560
  o && o !== t && (o.style.cursor = ""), t.ownerDocument.documentElement.style.cursor = e, t.style.cursor = e, i.autoStart.cursorElement = e ? t : null;
2561
2561
  }
2562
- function Jn(t, e) {
2562
+ function Zn(t, e) {
2563
2563
  var i = t.interactable, o = t.element, a = t.prepared;
2564
2564
  if (t.pointerType === "mouse" && i && i.options.styleCursor) {
2565
2565
  var f = "";
@@ -2573,27 +2573,27 @@ function rs() {
2573
2573
  var ki = { id: "auto-start/base", before: ["actions"], install: function(t) {
2574
2574
  var e = t.interactStatic, i = t.defaults;
2575
2575
  t.usePlugin(Ni), i.base.actionChecker = null, i.base.styleCursor = !0, A(i.perAction, { manualStart: !1, max: 1 / 0, maxPerElement: 1, allowFrom: null, ignoreFrom: null, mouseButtons: 1 }), e.maxInteractions = function(o) {
2576
- return Kn(o, t);
2576
+ return Jn(o, t);
2577
2577
  }, t.autoStart = { maxInteractions: 1 / 0, withinInteractionLimit: At, cursorElement: null };
2578
2578
  }, listeners: { "interactions:down": function(t, e) {
2579
2579
  var i = t.interaction, o = t.pointer, a = t.event, f = t.eventTarget;
2580
- i.interacting() || Gn(i, qn(i, o, a, f, e), e);
2580
+ i.interacting() || Kn(i, Gn(i, o, a, f, e), e);
2581
2581
  }, "interactions:move": function(t, e) {
2582
2582
  (function(i, o) {
2583
2583
  var a = i.interaction, f = i.pointer, d = i.event, h = i.eventTarget;
2584
- a.pointerType !== "mouse" || a.pointerIsDown || a.interacting() || Gn(a, qn(a, f, d, h, o), o);
2584
+ a.pointerType !== "mouse" || a.pointerIsDown || a.interacting() || Kn(a, Gn(a, f, d, h, o), o);
2585
2585
  })(t, e), function(i, o) {
2586
2586
  var a = i.interaction;
2587
2587
  if (a.pointerIsDown && !a.interacting() && a.pointerWasMoved && a.prepared.name) {
2588
2588
  o.fire("autoStart:before-start", i);
2589
2589
  var f = a.interactable, d = a.prepared.name;
2590
- d && f && (f.options[d].manualStart || !At(f, a.element, a.prepared, o) ? a.stop() : (a.start(a.prepared, f, a.element), Jn(a, o)));
2590
+ d && f && (f.options[d].manualStart || !At(f, a.element, a.prepared, o) ? a.stop() : (a.start(a.prepared, f, a.element), Zn(a, o)));
2591
2591
  }
2592
2592
  }(t, e);
2593
2593
  }, "interactions:stop": function(t, e) {
2594
2594
  var i = t.interaction, o = i.interactable;
2595
2595
  o && o.options.styleCursor && nn(i.element, "", e);
2596
- } }, maxInteractions: Kn, withinInteractionLimit: At, validateAction: Dn }, rn = ki, Oi = { id: "auto-start/dragAxis", listeners: { "autoStart:before-start": function(t, e) {
2596
+ } }, maxInteractions: Jn, withinInteractionLimit: At, validateAction: qn }, rn = ki, Oi = { id: "auto-start/dragAxis", listeners: { "autoStart:before-start": function(t, e) {
2597
2597
  var i = t.interaction, o = t.eventTarget, a = t.dx, f = t.dy;
2598
2598
  if (i.prepared.name === "drag") {
2599
2599
  var d = Math.abs(a), h = Math.abs(f), v = i.interactable.options.drag, b = v.startAxis, y = d > h ? "x" : d < h ? "y" : "xy";
@@ -2653,7 +2653,7 @@ function rs() {
2653
2653
  var e = t.interaction, i = t.event;
2654
2654
  e.interactable && e.interactable.checkAndPreventDefault(i);
2655
2655
  }
2656
- var Zn = { id: "core/interactablePreventDefault", install: function(t) {
2656
+ var Qn = { id: "core/interactablePreventDefault", install: function(t) {
2657
2657
  var e = t.Interactable;
2658
2658
  e.prototype.preventDefault = Ii, e.prototype.checkAndPreventDefault = function(i) {
2659
2659
  return function(o, a, f) {
@@ -2684,7 +2684,7 @@ function rs() {
2684
2684
  var e = {};
2685
2685
  for (var i in t) {
2686
2686
  var o = t[i];
2687
- T.plainObject(o) ? e[i] = lt(o) : T.array(o) ? e[i] = Ln(o) : e[i] = o;
2687
+ T.plainObject(o) ? e[i] = lt(o) : T.array(o) ? e[i] = Fn(o) : e[i] = o;
2688
2688
  }
2689
2689
  return e;
2690
2690
  }
@@ -2833,13 +2833,13 @@ function rs() {
2833
2833
  return t.interaction.modification.restoreInteractionCoords(t);
2834
2834
  }, "interactions:stop": function(t) {
2835
2835
  return t.interaction.modification.stop(t);
2836
- } } }, Qn = _i, er = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, an = function(t) {
2836
+ } } }, er = _i, tr = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, an = function(t) {
2837
2837
  x(i, t);
2838
2838
  var e = M(i);
2839
2839
  function i(o, a, f, d, h, v, b) {
2840
2840
  var y;
2841
2841
  u(this, i), (y = e.call(this, o)).relatedTarget = null, y.screenX = void 0, y.screenY = void 0, y.button = void 0, y.buttons = void 0, y.ctrlKey = void 0, y.shiftKey = void 0, y.altKey = void 0, y.metaKey = void 0, y.page = void 0, y.client = void 0, y.delta = void 0, y.rect = void 0, y.x0 = void 0, y.y0 = void 0, y.t0 = void 0, y.dt = void 0, y.duration = void 0, y.clientX0 = void 0, y.clientY0 = void 0, y.velocity = void 0, y.speed = void 0, y.swipe = void 0, y.axes = void 0, y.preEnd = void 0, h = h || o.element;
2842
- var E = o.interactable, P = (E && E.options || er).deltaSource, $ = Ve(E, h, f), I = d === "start", F = d === "end", ne = I ? O(y) : o.prevEvent, K = I ? o.coords.start : F ? { page: ne.page, client: ne.client, timeStamp: o.coords.cur.timeStamp } : o.coords.cur;
2842
+ var E = o.interactable, P = (E && E.options || tr).deltaSource, $ = Ve(E, h, f), I = d === "start", F = d === "end", ne = I ? O(y) : o.prevEvent, K = I ? o.coords.start : F ? { page: ne.page, client: ne.client, timeStamp: o.coords.cur.timeStamp } : o.coords.cur;
2843
2843
  return y.page = A({}, K.page), y.client = A({}, K.client), y.rect = A({}, o.rect), y.timeStamp = K.timeStamp, F || (y.page.x -= $.x, y.page.y -= $.y, y.client.x -= $.x, y.client.y -= $.y), y.ctrlKey = a.ctrlKey, y.altKey = a.altKey, y.shiftKey = a.shiftKey, y.metaKey = a.metaKey, y.button = a.button, y.buttons = a.buttons, y.target = h, y.currentTarget = h, y.preEnd = v, y.type = b || f + (d || ""), y.interactable = E, y.t0 = I ? o.pointers[o.pointers.length - 1].downTime : ne.t0, y.x0 = o.coords.start.page.x - $.x, y.y0 = o.coords.start.page.y - $.y, y.clientX0 = o.coords.start.client.x - $.x, y.clientY0 = o.coords.start.client.y - $.y, y.delta = I || F ? { x: 0, y: 0 } : { x: y[P].x - ne[P].x, y: y[P].y - ne[P].y }, y.dt = o.coords.delta.timeStamp, y.duration = y.timeStamp - y.t0, y.velocity = A({}, o.coords.velocity[P]), y.speed = Xe(y.velocity.x, y.velocity.y), y.swipe = F || d === "inertiastart" ? y.getSwipe() : null, y;
2844
2844
  }
2845
2845
  return g(i, [{ key: "getSwipe", value: function() {
@@ -2893,7 +2893,7 @@ function rs() {
2893
2893
  u(this, t), this.id = void 0, this.pointer = void 0, this.event = void 0, this.downTime = void 0, this.downTarget = void 0, this.id = e, this.pointer = i, this.event = o, this.downTime = a, this.downTarget = f;
2894
2894
  }), Ri = function(t) {
2895
2895
  return t.interactable = "", t.element = "", t.prepared = "", t.pointerIsDown = "", t.pointerWasMoved = "", t._proxy = "", t;
2896
- }({}), tr = function(t) {
2896
+ }({}), nr = function(t) {
2897
2897
  return t.start = "", t.move = "", t.end = "", t.stop = "", t.interacting = "", t;
2898
2898
  }({}), zi = 0, Li = function() {
2899
2899
  function t(e) {
@@ -2914,7 +2914,7 @@ function rs() {
2914
2914
  return f[y].apply(f, arguments);
2915
2915
  } });
2916
2916
  };
2917
- for (var b in tr) v(b);
2917
+ for (var b in nr) v(b);
2918
2918
  this._scopeFire("interactions:new", { interaction: this });
2919
2919
  }
2920
2920
  return g(t, [{ key: "pointerMoveTolerance", get: function() {
@@ -2984,10 +2984,10 @@ function rs() {
2984
2984
  return Date.now();
2985
2985
  } }]), t;
2986
2986
  }();
2987
- function nr(t) {
2988
- rr(t.interaction);
2989
- }
2990
2987
  function rr(t) {
2988
+ ir(t.interaction);
2989
+ }
2990
+ function ir(t) {
2991
2991
  if (!function(i) {
2992
2992
  return !(!i.offset.pending.x && !i.offset.pending.y);
2993
2993
  }(t)) return !1;
@@ -3002,7 +3002,7 @@ function rs() {
3002
3002
  var i = t.page, o = t.client, a = e.x, f = e.y;
3003
3003
  i.x += a, i.y += f, o.x += a, o.y += f;
3004
3004
  }
3005
- tr.offsetBy = "";
3005
+ nr.offsetBy = "";
3006
3006
  var Bi = { id: "offset", before: ["modifiers", "pointer-events", "actions", "inertia"], install: function(t) {
3007
3007
  t.Interaction.prototype.offsetBy = Fi;
3008
3008
  }, listeners: { "interactions:new": function(t) {
@@ -3011,13 +3011,13 @@ function rs() {
3011
3011
  return function(e) {
3012
3012
  e.pointerIsDown && (cn(e.coords.cur, e.offset.total), e.offset.pending.x = 0, e.offset.pending.y = 0);
3013
3013
  }(t.interaction);
3014
- }, "interactions:before-action-start": nr, "interactions:before-action-move": nr, "interactions:before-action-end": function(t) {
3014
+ }, "interactions:before-action-start": rr, "interactions:before-action-move": rr, "interactions:before-action-end": function(t) {
3015
3015
  var e = t.interaction;
3016
- if (rr(e)) return e.move({ offset: !0 }), e.end(), !1;
3016
+ if (ir(e)) return e.move({ offset: !0 }), e.end(), !1;
3017
3017
  }, "interactions:stop": function(t) {
3018
3018
  var e = t.interaction;
3019
3019
  e.offset.total.x = 0, e.offset.total.y = 0, e.offset.pending.x = 0, e.offset.pending.y = 0;
3020
- } } }, ir = Bi, Yi = function() {
3020
+ } } }, or = Bi, Yi = function() {
3021
3021
  function t(e) {
3022
3022
  u(this, t), this.active = !1, this.isModified = !1, this.smoothEnd = !1, this.allowResume = !1, this.modification = void 0, this.modifierCount = 0, this.modifierArg = void 0, this.startCoords = void 0, this.t0 = 0, this.v0 = 0, this.te = 0, this.targetOffset = void 0, this.modifiedOffset = void 0, this.currentOffset = void 0, this.lambda_v0 = 0, this.one_ve_v0 = 0, this.timeout = void 0, this.interaction = void 0, this.interaction = e;
3023
3023
  }
@@ -3052,7 +3052,7 @@ function rs() {
3052
3052
  var e, i, o, a, f, d, h, v = this, b = this.interaction, y = It(b).resistance, E = (b._now() - this.t0) / 1e3;
3053
3053
  if (E < this.te) {
3054
3054
  var P, $ = 1 - (Math.exp(-y * E) - this.lambda_v0) / this.one_ve_v0;
3055
- this.isModified ? (e = 0, i = 0, o = this.targetOffset.x, a = this.targetOffset.y, f = this.modifiedOffset.x, d = this.modifiedOffset.y, P = { x: or(h = $, e, o, f), y: or(h, i, a, d) }) : P = { x: this.targetOffset.x * $, y: this.targetOffset.y * $ };
3055
+ this.isModified ? (e = 0, i = 0, o = this.targetOffset.x, a = this.targetOffset.y, f = this.modifiedOffset.x, d = this.modifiedOffset.y, P = { x: sr(h = $, e, o, f), y: sr(h, i, a, d) }) : P = { x: this.targetOffset.x * $, y: this.targetOffset.y * $ };
3056
3056
  var I = { x: P.x - this.currentOffset.x, y: P.y - this.currentOffset.y };
3057
3057
  this.currentOffset.x += I.x, this.currentOffset.y += I.y, b.offsetBy(I), b.move(), this.onNextFrame(function() {
3058
3058
  return v.inertiaTick();
@@ -3061,7 +3061,7 @@ function rs() {
3061
3061
  } }, { key: "smoothEndTick", value: function() {
3062
3062
  var e = this, i = this.interaction, o = i._now() - this.t0, a = It(i).smoothEndDuration;
3063
3063
  if (o < a) {
3064
- var f = { x: sr(o, 0, this.targetOffset.x, a), y: sr(o, 0, this.targetOffset.y, a) }, d = { x: f.x - this.currentOffset.x, y: f.y - this.currentOffset.y };
3064
+ var f = { x: ar(o, 0, this.targetOffset.x, a), y: ar(o, 0, this.targetOffset.y, a) }, d = { x: f.x - this.currentOffset.x, y: f.y - this.currentOffset.y };
3065
3065
  this.currentOffset.x += d.x, this.currentOffset.y += d.y, i.offsetBy(d), i.move({ skipModifiers: this.modifierCount }), this.onNextFrame(function() {
3066
3066
  return e.smoothEndTick();
3067
3067
  });
@@ -3081,7 +3081,7 @@ function rs() {
3081
3081
  }
3082
3082
  var Hi = { id: "inertia", before: ["modifiers", "actions"], install: function(t) {
3083
3083
  var e = t.defaults;
3084
- t.usePlugin(ir), t.usePlugin(Qn), t.actions.phases.inertiastart = !0, t.actions.phases.resume = !0, e.perAction.inertia = { enabled: !1, resistance: 10, minSpeed: 100, endSpeed: 10, allowResume: !0, smoothEndDuration: 300 };
3084
+ t.usePlugin(or), t.usePlugin(er), t.actions.phases.inertiastart = !0, t.actions.phases.resume = !0, e.perAction.inertia = { enabled: !1, resistance: 10, minSpeed: 100, endSpeed: 10, allowResume: !0, smoothEndDuration: 300 };
3085
3085
  }, listeners: { "interactions:new": function(t) {
3086
3086
  var e = t.interaction;
3087
3087
  e.inertia = new Yi(e);
@@ -3110,31 +3110,31 @@ function rs() {
3110
3110
  }, "interactions:after-action-resume": function(t) {
3111
3111
  return t.interaction.modification.restoreInteractionCoords(t);
3112
3112
  } } };
3113
- function or(t, e, i, o) {
3113
+ function sr(t, e, i, o) {
3114
3114
  var a = 1 - t;
3115
3115
  return a * a * e + 2 * a * t * i + t * t * o;
3116
3116
  }
3117
- function sr(t, e, i, o) {
3117
+ function ar(t, e, i, o) {
3118
3118
  return -i * (t /= o) * (t - 2) + e;
3119
3119
  }
3120
3120
  var Vi = Hi;
3121
- function ar(t, e) {
3121
+ function cr(t, e) {
3122
3122
  for (var i = 0; i < e.length; i++) {
3123
3123
  var o = e[i];
3124
3124
  if (t.immediatePropagationStopped) break;
3125
3125
  o(t);
3126
3126
  }
3127
3127
  }
3128
- var cr = function() {
3128
+ var lr = function() {
3129
3129
  function t(e) {
3130
3130
  u(this, t), this.options = void 0, this.types = {}, this.propagationStopped = !1, this.immediatePropagationStopped = !1, this.global = void 0, this.options = A({}, e || {});
3131
3131
  }
3132
3132
  return g(t, [{ key: "fire", value: function(e) {
3133
3133
  var i, o = this.global;
3134
- (i = this.types[e.type]) && ar(e, i), !e.propagationStopped && o && (i = o[e.type]) && ar(e, i);
3134
+ (i = this.types[e.type]) && cr(e, i), !e.propagationStopped && o && (i = o[e.type]) && cr(e, i);
3135
3135
  } }, { key: "on", value: function(e, i) {
3136
3136
  var o = Ce(e, i);
3137
- for (e in o) this.types[e] = zn(this.types[e] || [], o[e]);
3137
+ for (e in o) this.types[e] = Ln(this.types[e] || [], o[e]);
3138
3138
  } }, { key: "off", value: function(e, i) {
3139
3139
  var o = Ce(e, i);
3140
3140
  for (e in o) {
@@ -3234,7 +3234,7 @@ function rs() {
3234
3234
  }
3235
3235
  }
3236
3236
  function v(y, E) {
3237
- for (var P = vt(E), $ = new Xi(y), I = o[y.type], F = Rn(y)[0], ne = F; T.element(ne); ) {
3237
+ for (var P = vt(E), $ = new Xi(y), I = o[y.type], F = zn(y)[0], ne = F; T.element(ne); ) {
3238
3238
  for (var K = 0; K < I.length; K++) {
3239
3239
  var ce = I[K], ve = ce.selector, Ee = ce.context;
3240
3240
  if (k(ne, ve) && G(Ee, F) && G(Ee, ne)) {
@@ -3280,7 +3280,7 @@ function rs() {
3280
3280
  for (var d = 0, h = f.interactions.list; d < h.length; d++) {
3281
3281
  var v = h[d];
3282
3282
  if (v.pointerType === o) {
3283
- if (v.simulation && !lr(v, i)) continue;
3283
+ if (v.simulation && !ur(v, i)) continue;
3284
3284
  if (v.interacting()) return v;
3285
3285
  e || (e = v);
3286
3286
  }
@@ -3294,7 +3294,7 @@ function rs() {
3294
3294
  }, hasPointer: function(t) {
3295
3295
  for (var e = t.pointerId, i = 0, o = t.scope.interactions.list; i < o.length; i++) {
3296
3296
  var a = o[i];
3297
- if (lr(a, e)) return a;
3297
+ if (ur(a, e)) return a;
3298
3298
  }
3299
3299
  return null;
3300
3300
  }, idle: function(t) {
@@ -3308,19 +3308,19 @@ function rs() {
3308
3308
  }
3309
3309
  return null;
3310
3310
  } };
3311
- function lr(t, e) {
3311
+ function ur(t, e) {
3312
3312
  return t.pointers.some(function(i) {
3313
3313
  return i.id === e;
3314
3314
  });
3315
3315
  }
3316
3316
  var Wi = ln, un = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
3317
- function ur(t, e) {
3317
+ function fr(t, e) {
3318
3318
  return function(i) {
3319
- var o = e.interactions.list, a = jn(i), f = Rn(i), d = f[0], h = f[1], v = [];
3319
+ var o = e.interactions.list, a = Rn(i), f = zn(i), d = f[0], h = f[1], v = [];
3320
3320
  if (/^touch/.test(i.type)) {
3321
3321
  e.prevTouchTime = e.now();
3322
3322
  for (var b = 0, y = i.changedTouches; b < y.length; b++) {
3323
- var E = y[b], P = { pointer: E, pointerId: ft(E), pointerType: a, eventType: i.type, eventTarget: d, curEventTarget: h, scope: e }, $ = fr(P);
3323
+ var E = y[b], P = { pointer: E, pointerId: ft(E), pointerType: a, eventType: i.type, eventTarget: d, curEventTarget: h, scope: e }, $ = dr(P);
3324
3324
  v.push([P.pointer, P.eventTarget, P.curEventTarget, $]);
3325
3325
  }
3326
3326
  } else {
@@ -3330,7 +3330,7 @@ function rs() {
3330
3330
  I = I || e.now() - e.prevTouchTime < 500 || i.timeStamp === 0;
3331
3331
  }
3332
3332
  if (!I) {
3333
- var ne = { pointer: i, pointerId: ft(i), pointerType: a, eventType: i.type, curEventTarget: h, eventTarget: d, scope: e }, K = fr(ne);
3333
+ var ne = { pointer: i, pointerId: ft(i), pointerType: a, eventType: i.type, curEventTarget: h, eventTarget: d, scope: e }, K = dr(ne);
3334
3334
  v.push([ne.pointer, ne.eventTarget, ne.curEventTarget, K]);
3335
3335
  }
3336
3336
  }
@@ -3340,7 +3340,7 @@ function rs() {
3340
3340
  }
3341
3341
  };
3342
3342
  }
3343
- function fr(t) {
3343
+ function dr(t) {
3344
3344
  var e = t.pointerType, i = t.scope, o = { interaction: Wi.search(t), searchDetails: t };
3345
3345
  return i.fire("interactions:find", o), o.interaction || i.interactions.new({ pointerType: e });
3346
3346
  }
@@ -3355,7 +3355,7 @@ function rs() {
3355
3355
  var Di = { id: "core/interactions", install: function(t) {
3356
3356
  for (var e = {}, i = 0; i < un.length; i++) {
3357
3357
  var o = un[i];
3358
- e[o] = ur(o, t);
3358
+ e[o] = fr(o, t);
3359
3359
  }
3360
3360
  var a, f = z.pEventTypes;
3361
3361
  function d() {
@@ -3391,7 +3391,7 @@ function rs() {
3391
3391
  };
3392
3392
  var v = new t.Interaction(h);
3393
3393
  return t.interactions.list.push(v), v;
3394
- }, listeners: e, docEvents: a, pointerMoveTolerance: 1 }, t.usePlugin(Zn);
3394
+ }, listeners: e, docEvents: a, pointerMoveTolerance: 1 }, t.usePlugin(Qn);
3395
3395
  }, listeners: { "scope:add-document": function(t) {
3396
3396
  return fn(t, "add");
3397
3397
  }, "scope:remove-document": function(t) {
@@ -3401,11 +3401,11 @@ function rs() {
3401
3401
  var a = e.interactions.list[o];
3402
3402
  a.interactable === i && (a.stop(), e.fire("interactions:destroy", { interaction: a }), a.destroy(), e.interactions.list.length > 2 && e.interactions.list.splice(o, 1));
3403
3403
  }
3404
- } }, onDocSignal: fn, doOnInteractions: ur, methodNames: un }, qi = Di, Ze = function(t) {
3404
+ } }, onDocSignal: fn, doOnInteractions: fr, methodNames: un }, qi = Di, Ze = function(t) {
3405
3405
  return t[t.On = 0] = "On", t[t.Off = 1] = "Off", t;
3406
3406
  }(Ze || {}), Gi = function() {
3407
3407
  function t(e, i, o, a) {
3408
- u(this, t), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new cr(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = i.actions, this.target = e, this._context = i.context || o, this._win = Y(ae(e) ? this._context : e), this._doc = this._win.document, this._scopeEvents = a, this.set(i);
3408
+ u(this, t), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new lr(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = i.actions, this.target = e, this._context = i.context || o, this._win = Y(ae(e) ? this._context : e), this._doc = this._win.document, this._scopeEvents = a, this.set(i);
3409
3409
  }
3410
3410
  return g(t, [{ key: "_defaults", get: function() {
3411
3411
  return { base: {}, perAction: {}, actions: {} };
@@ -3420,7 +3420,7 @@ function rs() {
3420
3420
  var o = this._defaults;
3421
3421
  for (var a in i) {
3422
3422
  var f = a, d = this.options[e], h = i[f];
3423
- f === "listeners" && this.updatePerActionListeners(e, d.listeners, h), T.array(h) ? d[f] = Ln(h) : T.plainObject(h) ? (d[f] = A(d[f] || {}, lt(h)), T.object(o.perAction[f]) && "enabled" in o.perAction[f] && (d[f].enabled = h.enabled !== !1)) : T.bool(h) && T.object(o.perAction[f]) ? d[f].enabled = h : d[f] = h;
3423
+ f === "listeners" && this.updatePerActionListeners(e, d.listeners, h), T.array(h) ? d[f] = Fn(h) : T.plainObject(h) ? (d[f] = A(d[f] || {}, lt(h)), T.object(o.perAction[f]) && "enabled" in o.perAction[f] && (d[f].enabled = h.enabled !== !1)) : T.bool(h) && T.object(o.perAction[f]) ? d[f].enabled = h : d[f] = h;
3424
3424
  }
3425
3425
  } }, { key: "getRect", value: function(e) {
3426
3426
  return e = e || (T.element(this.target) ? this.target : null), T.string(this.target) && (e = e || this._context.querySelector(this.target)), oe(e);
@@ -3514,12 +3514,12 @@ function rs() {
3514
3514
  }(), Ji = function() {
3515
3515
  function t() {
3516
3516
  var e = this;
3517
- u(this, t), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = z, this.defaults = lt(er), this.Eventable = cr, this.actions = { map: {}, phases: { start: !0, move: !0, end: !0 }, methodDict: {}, phaselessTypes: {} }, this.interactStatic = function(o) {
3517
+ u(this, t), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = z, this.defaults = lt(tr), this.Eventable = lr, this.actions = { map: {}, phases: { start: !0, move: !0, end: !0 }, methodDict: {}, phaselessTypes: {} }, this.interactStatic = function(o) {
3518
3518
  var a = function f(d, h) {
3519
3519
  var v = o.interactables.getExisting(d, h);
3520
3520
  return v || ((v = o.interactables.new(d, h)).events.global = f.globalEvents), v;
3521
3521
  };
3522
- return a.getPointerAverage = _n, a.getTouchBBox = Dt, a.getTouchDistance = qt, a.getTouchAngle = Gt, a.getElementRect = oe, a.getElementClientRect = pe, a.matchesSelector = k, a.closest = Z, a.globalEvents = {}, a.version = "1.10.27", a.scope = o, a.use = function(f, d) {
3522
+ return a.getPointerAverage = jn, a.getTouchBBox = Dt, a.getTouchDistance = qt, a.getTouchAngle = Gt, a.getElementRect = oe, a.getElementClientRect = pe, a.matchesSelector = k, a.closest = Z, a.globalEvents = {}, a.version = "1.10.27", a.scope = o, a.use = function(f, d) {
3523
3523
  return this.scope.usePlugin(f, d), this;
3524
3524
  }, a.isSet = function(f, d) {
3525
3525
  return !!this.scope.interactables.get(f, d && d.context);
@@ -3606,10 +3606,10 @@ function rs() {
3606
3606
  if (this.pluginIsInstalled(e)) return this;
3607
3607
  if (e.id && (this._plugins.map[e.id] = e), this._plugins.list.push(e), e.install && e.install(this, i), e.listeners && e.before) {
3608
3608
  for (var o = 0, a = this.listenerMaps.length, f = e.before.reduce(function(h, v) {
3609
- return h[v] = !0, h[dr(v)] = !0, h;
3609
+ return h[v] = !0, h[hr(v)] = !0, h;
3610
3610
  }, {}); o < a; o++) {
3611
3611
  var d = this.listenerMaps[o].id;
3612
- if (d && (f[d] || f[dr(d)])) break;
3612
+ if (d && (f[d] || f[hr(d)])) break;
3613
3613
  }
3614
3614
  this.listenerMaps.splice(o, 0, { id: e.id, map: e.listeners });
3615
3615
  } else e.listeners && this.listenerMaps.push({ id: e.id, map: e.listeners });
@@ -3631,11 +3631,11 @@ function rs() {
3631
3631
  return (this.window.Date || Date).now();
3632
3632
  } }]), t;
3633
3633
  }();
3634
- function dr(t) {
3634
+ function hr(t) {
3635
3635
  return t && t.replace(/\/.*$/, "");
3636
3636
  }
3637
- var hr = new Ji(), _e = hr.interactStatic, Zi = typeof globalThis < "u" ? globalThis : window;
3638
- hr.init(Zi);
3637
+ var pr = new Ji(), _e = pr.interactStatic, Zi = typeof globalThis < "u" ? globalThis : window;
3638
+ pr.init(Zi);
3639
3639
  var Qi = Object.freeze({ __proto__: null, edgeTarget: function() {
3640
3640
  }, elements: function() {
3641
3641
  }, grid: function(t) {
@@ -3687,10 +3687,10 @@ function rs() {
3687
3687
  i.x = f.x + (b - a.width) * h.x;
3688
3688
  }
3689
3689
  }
3690
- var oo = Je(no, "aspectRatio"), pr = function() {
3690
+ var oo = Je(no, "aspectRatio"), gr = function() {
3691
3691
  };
3692
- pr._defaults = {};
3693
- var _t = pr;
3692
+ gr._defaults = {};
3693
+ var _t = gr;
3694
3694
  function rt(t, e, i) {
3695
3695
  return T.func(t) ? we(t, e.interactable, e.element, [i.x, i.y, e]) : we(t, e.interactable, e.element);
3696
3696
  }
@@ -3713,22 +3713,22 @@ function rs() {
3713
3713
  }(d);
3714
3714
  e.x = Math.max(Math.min(h.right - f.right, e.x), h.left + f.left), e.y = Math.max(Math.min(h.bottom - f.bottom, e.y), h.top + f.top);
3715
3715
  }
3716
- }, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, so = Je(jt, "restrict"), gr = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, vr = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 };
3717
- function mr(t, e) {
3716
+ }, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, so = Je(jt, "restrict"), vr = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, mr = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 };
3717
+ function yr(t, e) {
3718
3718
  for (var i = 0, o = ["top", "left", "bottom", "right"]; i < o.length; i++) {
3719
3719
  var a = o[i];
3720
3720
  a in t || (t[a] = e[a]);
3721
3721
  }
3722
3722
  return t;
3723
3723
  }
3724
- var mt = { noInner: gr, noOuter: vr, start: function(t) {
3724
+ var mt = { noInner: vr, noOuter: mr, start: function(t) {
3725
3725
  var e, i = t.interaction, o = t.startOffset, a = t.state, f = a.options;
3726
3726
  f && (e = Ie(rt(f.offset, i, i.coords.start.page))), e = e || { x: 0, y: 0 }, a.offset = { top: e.y + o.top, left: e.x + o.left, bottom: e.y - o.bottom, right: e.x - o.right };
3727
3727
  }, set: function(t) {
3728
3728
  var e = t.coords, i = t.edges, o = t.interaction, a = t.state, f = a.offset, d = a.options;
3729
3729
  if (i) {
3730
3730
  var h = A({}, e), v = rt(d.inner, o, h) || {}, b = rt(d.outer, o, h) || {};
3731
- mr(v, gr), mr(b, vr), i.top ? e.y = Math.min(Math.max(b.top + f.top, h.y), v.top + f.top) : i.bottom && (e.y = Math.max(Math.min(b.bottom + f.bottom, h.y), v.bottom + f.bottom)), i.left ? e.x = Math.min(Math.max(b.left + f.left, h.x), v.left + f.left) : i.right && (e.x = Math.max(Math.min(b.right + f.right, h.x), v.right + f.right));
3731
+ yr(v, vr), yr(b, mr), i.top ? e.y = Math.min(Math.max(b.top + f.top, h.y), v.top + f.top) : i.bottom && (e.y = Math.max(Math.min(b.bottom + f.bottom, h.y), v.bottom + f.bottom)), i.left ? e.x = Math.min(Math.max(b.left + f.left, h.x), v.left + f.left) : i.right && (e.x = Math.max(Math.min(b.right + f.right, h.x), v.right + f.right));
3732
3732
  }
3733
3733
  }, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, ao = Je(mt, "restrictEdges"), co = A({ get elementRect() {
3734
3734
  return { top: 0, left: 0, bottom: 1, right: 1 };
@@ -3794,16 +3794,16 @@ function rs() {
3794
3794
  return e ? (t.state.targetFields = t.state.targetFields || [[e.left ? "left" : "right", e.top ? "top" : "bottom"]], Rt.start(t)) : null;
3795
3795
  }, set: Rt.set, defaults: A(lt(Rt.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: po, snapSize: go, spring: _t, avoid: _t, transform: _t, rubberband: _t }, vo = { id: "modifiers", install: function(t) {
3796
3796
  var e = t.interactStatic;
3797
- for (var i in t.usePlugin(Qn), t.usePlugin(to), e.modifiers = hn, hn) {
3797
+ for (var i in t.usePlugin(er), t.usePlugin(to), e.modifiers = hn, hn) {
3798
3798
  var o = hn[i], a = o._defaults, f = o._methods;
3799
3799
  a._methods = f, t.defaults.perAction[i] = a;
3800
3800
  }
3801
- } }, mo = vo, yr = function(t) {
3801
+ } }, mo = vo, br = function(t) {
3802
3802
  x(i, t);
3803
3803
  var e = M(i);
3804
3804
  function i(o, a, f, d, h, v) {
3805
3805
  var b;
3806
- if (u(this, i), Be(O(b = e.call(this, h)), f), f !== a && Be(O(b), a), b.timeStamp = v, b.originalEvent = f, b.type = o, b.pointerId = ft(a), b.pointerType = jn(a), b.target = d, b.currentTarget = null, o === "tap") {
3806
+ if (u(this, i), Be(O(b = e.call(this, h)), f), f !== a && Be(O(b), a), b.timeStamp = v, b.originalEvent = f, b.type = o, b.pointerId = ft(a), b.pointerType = Rn(a), b.target = d, b.currentTarget = null, o === "tap") {
3807
3807
  var y = h.getPointerIndex(a);
3808
3808
  b.dt = b.timeStamp - h.pointers[y].downTime;
3809
3809
  var E = b.timeStamp - h.tapTime;
@@ -3854,9 +3854,9 @@ function rs() {
3854
3854
  }(t, e);
3855
3855
  }, "interactions:cancel": function(t, e) {
3856
3856
  pn(t), Qe(t, e);
3857
- } }, PointerEvent: yr, fire: Qe, collectEventTargets: br, defaults: { holdDuration: 600, ignoreFrom: null, allowFrom: null, origin: { x: 0, y: 0 } }, types: { down: !0, move: !0, up: !0, cancel: !0, tap: !0, doubletap: !0, hold: !0 } };
3857
+ } }, PointerEvent: br, fire: Qe, collectEventTargets: xr, defaults: { holdDuration: 600, ignoreFrom: null, allowFrom: null, origin: { x: 0, y: 0 } }, types: { down: !0, move: !0, up: !0, cancel: !0, tap: !0, doubletap: !0, hold: !0 } };
3858
3858
  function Qe(t, e) {
3859
- var i = t.interaction, o = t.pointer, a = t.event, f = t.eventTarget, d = t.type, h = t.targets, v = h === void 0 ? br(t, e) : h, b = new yr(d, o, a, f, i, e.now());
3859
+ var i = t.interaction, o = t.pointer, a = t.event, f = t.eventTarget, d = t.type, h = t.targets, v = h === void 0 ? xr(t, e) : h, b = new br(d, o, a, f, i, e.now());
3860
3860
  e.fire("pointerEvents:new", { pointerEvent: b });
3861
3861
  for (var y = { interaction: i, pointer: o, event: a, eventTarget: f, targets: v, type: d, pointerEvent: b }, E = 0; E < v.length; E++) {
3862
3862
  var P = v[E];
@@ -3870,7 +3870,7 @@ function rs() {
3870
3870
  }
3871
3871
  return b;
3872
3872
  }
3873
- function br(t, e) {
3873
+ function xr(t, e) {
3874
3874
  var i = t.interaction, o = t.pointer, a = t.event, f = t.eventTarget, d = t.type, h = i.getPointerIndex(o), v = i.pointers[h];
3875
3875
  if (d === "tap" && (i.pointerWasMoved || !v || v.downTarget !== f)) return [];
3876
3876
  for (var b = te(f), y = { interaction: i, pointer: o, event: a, eventTarget: f, type: d, path: b, targets: [], node: null }, E = 0; E < b.length; E++) {
@@ -3998,7 +3998,7 @@ function rs() {
3998
3998
  o.splice(o.indexOf(a), 1);
3999
3999
  }(e.interactions.list, i));
4000
4000
  } } }, ko = Po;
4001
- if (_e.use(Zn), _e.use(ir), _e.use(No), _e.use(Vi), _e.use(mo), _e.use(Ci), _e.use(xi), _e.use(Ei), _e.use(ko), _e.default = _e, l(r) === "object" && r) try {
4001
+ if (_e.use(Qn), _e.use(or), _e.use(No), _e.use(Vi), _e.use(mo), _e.use(Ci), _e.use(xi), _e.use(Ei), _e.use(ko), _e.default = _e, l(r) === "object" && r) try {
4002
4002
  r.exports = _e;
4003
4003
  } catch {
4004
4004
  }
@@ -4007,7 +4007,7 @@ function rs() {
4007
4007
  }(Yt)), Yt.exports;
4008
4008
  }
4009
4009
  var is = /* @__PURE__ */ rs();
4010
- const Mr = /* @__PURE__ */ ni(is);
4010
+ const Cr = /* @__PURE__ */ ni(is);
4011
4011
  function Nt(r, {
4012
4012
  initialValue: n,
4013
4013
  transform: s,
@@ -4016,22 +4016,22 @@ function Nt(r, {
4016
4016
  onDragEnd: u,
4017
4017
  ...p
4018
4018
  }, g) {
4019
- const m = (X) => Ge(x.current, X) ? !1 : (x.current = X, !0), x = Te(n), [w, N] = ke(!1), [O, M] = ke(!1), [_, B] = ke(!1), [W, D] = ke(n);
4020
- return he(() => (r.current && Mr(r.current).draggable({
4019
+ const m = (V) => Ge(x.current, V) ? !1 : (x.current = V, !0), x = Te(n), [w, N] = ke(!1), [O, M] = ke(!1), [_, B] = ke(!1), [W, D] = ke(n);
4020
+ return he(() => (r.current && Cr(r.current).draggable({
4021
4021
  inertia: !0,
4022
4022
  ...p,
4023
4023
  onstart: () => {
4024
4024
  N(!0), M(!0), B(!1), c?.();
4025
4025
  },
4026
- onmove: ({ dx: X, dy: j }) => {
4027
- const Y = s(x.current, X, j);
4028
- m(Y) && D(Y), M(!0), B(!1), l?.(X, j);
4026
+ onmove: ({ dx: V, dy: j }) => {
4027
+ const Y = s(x.current, V, j);
4028
+ m(Y) && D(Y), M(!0), B(!1), l?.(V, j);
4029
4029
  },
4030
4030
  onend: () => {
4031
4031
  M(!1), B(!0), u?.();
4032
4032
  }
4033
4033
  }), () => {
4034
- r.current && Mr(r.current).unset();
4034
+ r.current && Cr(r.current).unset();
4035
4035
  }), [...g ?? []]), he(() => {
4036
4036
  w || D(n);
4037
4037
  }, [n]), he(() => {
@@ -4106,7 +4106,7 @@ function st(r) {
4106
4106
  const u = se.from(l);
4107
4107
  u && s(u);
4108
4108
  };
4109
- return An(r, {
4109
+ return Mn(r, {
4110
4110
  onResize: (l) => c(l)
4111
4111
  }), n;
4112
4112
  }
@@ -4141,11 +4141,11 @@ function lc(r, n, {
4141
4141
  }, [w]), [w, N];
4142
4142
  }
4143
4143
  function cs(r = 0, { autoStart: n = !0, onTimeout: s } = {}, c = []) {
4144
- const l = Te(void 0), u = Te(void 0), p = xr(() => {
4144
+ const l = Te(void 0), u = Te(void 0), p = wr(() => {
4145
4145
  g(), !(r < 0) && (l.current = setTimeout(() => {
4146
4146
  g(), u.current?.();
4147
4147
  }, r));
4148
- }, [r]), g = xr(() => {
4148
+ }, [r]), g = wr(() => {
4149
4149
  clearTimeout(l.current), l.current = void 0;
4150
4150
  }, []);
4151
4151
  return he(() => {
@@ -4197,44 +4197,44 @@ const fc = /* @__PURE__ */ Se(({
4197
4197
  ...w
4198
4198
  }, N) => {
4199
4199
  const O = (L) => m?.(L), M = (L) => {
4200
- j.current = ye.make(L.clientX, L.clientY), V(!0);
4200
+ j.current = ye.make(L.clientX, L.clientY), X(!0);
4201
4201
  }, _ = (L) => {
4202
- Y.current = ye.make(L.clientX, L.clientY), ie && V(!1);
4202
+ Y.current = ye.make(L.clientX, L.clientY), ie && X(!1);
4203
4203
  }, B = (L) => {
4204
4204
  const R = j.current, C = Y.current;
4205
4205
  if (!R || !C) return;
4206
4206
  const z = 5, G = R.subtract(C);
4207
4207
  (Math.abs(G.x) > z || Math.abs(G.y) > z) && L.stopPropagation(), j.current = void 0, Y.current = void 0;
4208
4208
  }, W = () => {
4209
- fs(X, n, l), clearTimeout(U.current), U.current = setTimeout(() => {
4209
+ fs(V, n, l), clearTimeout(U.current), U.current = setTimeout(() => {
4210
4210
  clearTimeout(U.current), U.current = void 0;
4211
4211
  }, H);
4212
- }, D = Te(void 0), X = Te(null), j = Te(void 0), Y = Te(void 0), U = Te(void 0), H = 1e3, [T, re] = ke(Cr(X, l)), [ie, V] = ke(!1), ee = hs({ scrollSnapEnabled: !ie, orientation: l }), q = r > 0;
4212
+ }, D = Te(void 0), V = Te(null), j = Te(void 0), Y = Te(void 0), U = Te(void 0), H = 1e3, [T, re] = ke(vn(V, l)), [ie, X] = ke(!1), ee = hs({ scrollSnapEnabled: !ie, orientation: l }), q = r > 0;
4213
4213
  return he(() => {
4214
- const L = X.current;
4214
+ const L = V.current;
4215
4215
  if (!L) return;
4216
4216
  const R = D.current === void 0, C = D.current === n, z = (G) => {
4217
- if (u && re(Cr(X, l)), U.current !== void 0) return;
4217
+ if (u && re(vn(V, l)), U.current !== void 0) return;
4218
4218
  const Z = Math.round(l === "horizontal" ? L.scrollLeft / L.clientWidth : L.scrollTop / L.clientHeight), Q = Math.max(0, Math.min(c.length - 1, Z));
4219
4219
  Q !== n && (D.current = Q, O(Q));
4220
4220
  };
4221
- return L.addEventListener("scroll", z), C || (D.current = n, R || (O(n), W())), () => {
4221
+ return L.addEventListener("scroll", z), u && re(vn(V, l)), C || (D.current = n, R || (O(n), W())), () => {
4222
4222
  L.removeEventListener("scroll", z);
4223
4223
  };
4224
4224
  }, [n, l, u]), he(() => {
4225
4225
  q && (ie ? p?.() : g?.());
4226
- }, [ie, q]), ts(X, {
4226
+ }, [ie, q]), ts(V, {
4227
4227
  isEnabled: s && c.length > 1,
4228
4228
  onDragMove: ({ x: L, y: R }) => {
4229
4229
  switch (l) {
4230
4230
  case "horizontal":
4231
4231
  requestAnimationFrame(() => {
4232
- X.current && (X.current.scrollLeft += L * 1.5);
4232
+ V.current && (V.current.scrollLeft += L * 1.5);
4233
4233
  });
4234
4234
  break;
4235
4235
  case "vertical":
4236
4236
  requestAnimationFrame(() => {
4237
- X.current && (X.current.scrollTop += R * 1.5);
4237
+ V.current && (V.current.scrollTop += R * 1.5);
4238
4238
  });
4239
4239
  break;
4240
4240
  default:
@@ -4257,7 +4257,7 @@ const fc = /* @__PURE__ */ Se(({
4257
4257
  onPointerDown: (L) => M(L),
4258
4258
  onPointerLeave: (L) => _(L),
4259
4259
  onPointerUp: (L) => _(L),
4260
- children: /* @__PURE__ */ S.jsx("div", { ref: X, style: le(ee.viewport), children: /* @__PURE__ */ S.jsx(Mn, { in: c, children: ({ style: L, ...R }, C) => /* @__PURE__ */ S.jsx("div", { style: le(ee.itemContainer), children: /* @__PURE__ */ S.jsx(
4260
+ children: /* @__PURE__ */ S.jsx("div", { ref: V, style: le(ee.viewport), children: /* @__PURE__ */ S.jsx(Cn, { in: c, children: ({ style: L, ...R }, C) => /* @__PURE__ */ S.jsx("div", { style: le(ee.itemContainer), children: /* @__PURE__ */ S.jsx(
4261
4261
  x,
4262
4262
  {
4263
4263
  "aria-hidden": C !== n,
@@ -4275,7 +4275,7 @@ function fs(r, n, s) {
4275
4275
  const l = s === "horizontal" ? 0 : c.clientHeight * n, u = s === "horizontal" ? c.clientWidth * n : 0;
4276
4276
  c.scrollTop === l && c.scrollLeft === u || c.scrollTo({ top: l, left: u, behavior: "smooth" });
4277
4277
  }
4278
- function Cr(r, n) {
4278
+ function vn(r, n) {
4279
4279
  const s = r?.current;
4280
4280
  if (!s) return;
4281
4281
  const c = [];
@@ -4397,9 +4397,9 @@ const ps = /* @__PURE__ */ Se(({
4397
4397
  }, B = (H) => {
4398
4398
  let T = H;
4399
4399
  return isNaN(l) || (T = Math.max(l, T)), isNaN(c) || (T = Math.min(c, T)), T;
4400
- }, [W, D] = ke(M(u)), X = si(u), j = !isNaN(c) && u + 1 > c, Y = !isNaN(l) && u - 1 < l;
4400
+ }, [W, D] = ke(M(u)), V = si(u), j = !isNaN(c) && u + 1 > c, Y = !isNaN(l) && u - 1 < l;
4401
4401
  he(() => {
4402
- if (X === void 0 || X === u) return;
4402
+ if (V === void 0 || V === u) return;
4403
4403
  const H = B(u);
4404
4404
  D(M(H));
4405
4405
  }, [u, l, c]);
@@ -4469,9 +4469,9 @@ const ps = /* @__PURE__ */ Se(({
4469
4469
  if (W !== void 0 && _ !== void 0) throw Error("Only one of `width` or `pixelDensity` can be specified.");
4470
4470
  let D = B;
4471
4471
  if (W !== void 0) {
4472
- const X = Math.floor(W);
4473
- if (!isFinite(X) || String(X) !== String(W) || X <= 0) throw Error("The specified width must be a positive integer greater than 0");
4474
- D += ` ${X}w`;
4472
+ const V = Math.floor(W);
4473
+ if (!isFinite(V) || String(V) !== String(W) || V <= 0) throw Error("The specified width must be a positive integer greater than 0");
4474
+ D += ` ${V}w`;
4475
4475
  } else if (_ !== void 0) {
4476
4476
  if (!isFinite(_) || _ <= 0) throw Error("The specified pixel density must be a positive floating number than 0");
4477
4477
  D += ` ${_}x`;
@@ -4479,9 +4479,9 @@ const ps = /* @__PURE__ */ Se(({
4479
4479
  return D;
4480
4480
  }).join(", "), O = s?.map(({ mediaCondition: _, width: B }, W) => {
4481
4481
  const D = W === s.length - 1;
4482
- let X = B;
4482
+ let V = B;
4483
4483
  if (D && _) throw Error("The last item in `sizes` must not have a `mediaCondition` specified.");
4484
- return _ && (X = `${_} ${X}`), X;
4484
+ return _ && (V = `${_} ${V}`), V;
4485
4485
  }).join(", "), M = oi({
4486
4486
  src: c,
4487
4487
  srcSet: N,
@@ -4521,9 +4521,9 @@ const ps = /* @__PURE__ */ Se(({
4521
4521
  }, O) => {
4522
4522
  const M = (T) => {
4523
4523
  D(T ? T.width / T.height : NaN);
4524
- }, _ = Te(null), B = O ?? _, [W, D] = ke(NaN), X = isNaN(c) ? W : c, j = st(B), Y = j.width / j.height, U = Ae.make(
4525
- Y > 1 ? Math.max(j.width, j.height * X) : Math.max(j.width, Math.max(j.height, j.width / X) * X),
4526
- Y > 1 ? Math.max(j.height, Math.max(j.width, j.height * X) / X) : Math.max(j.height, j.width / X)
4524
+ }, _ = Te(null), B = O ?? _, [W, D] = ke(NaN), V = isNaN(c) ? W : c, j = st(B), Y = j.width / j.height, U = Ae.make(
4525
+ Y > 1 ? Math.max(j.width, j.height * V) : Math.max(j.width, Math.max(j.height, j.width / V) * V),
4526
+ Y > 1 ? Math.max(j.height, Math.max(j.width, j.height * V) / V) : Math.max(j.height, j.width / V)
4527
4527
  ), H = He(r, {
4528
4528
  content: ms,
4529
4529
  viewport: vs
@@ -4533,7 +4533,7 @@ const ps = /* @__PURE__ */ Se(({
4533
4533
  {
4534
4534
  ...N,
4535
4535
  ref: B,
4536
- style: le(n, vn.root),
4536
+ style: le(n, mn.root),
4537
4537
  children: [
4538
4538
  /* @__PURE__ */ S.jsx(
4539
4539
  gs,
@@ -4542,7 +4542,7 @@ const ps = /* @__PURE__ */ Se(({
4542
4542
  sizes: u,
4543
4543
  src: p,
4544
4544
  srcSet: g,
4545
- style: le(vn.viewport, {
4545
+ style: le(mn.viewport, {
4546
4546
  height: `${U.height}px`,
4547
4547
  maxWidth: "unset",
4548
4548
  width: `${U.width}px`
@@ -4554,7 +4554,7 @@ const ps = /* @__PURE__ */ Se(({
4554
4554
  }
4555
4555
  ),
4556
4556
  H.viewport && Ne(H.viewport, {
4557
- style: le(vn.viewport, {
4557
+ style: le(mn.viewport, {
4558
4558
  height: `${U.height}px`,
4559
4559
  pointerEvents: "none",
4560
4560
  width: `${U.width}px`
@@ -4564,7 +4564,7 @@ const ps = /* @__PURE__ */ Se(({
4564
4564
  ]
4565
4565
  }
4566
4566
  );
4567
- }), vs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), ms = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), vn = {
4567
+ }), vs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), ms = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), mn = {
4568
4568
  root: {
4569
4569
  overflow: "hidden"
4570
4570
  },
@@ -4594,8 +4594,8 @@ const ps = /* @__PURE__ */ Se(({
4594
4594
  onSizeChange: B,
4595
4595
  onTimeUpdate: W,
4596
4596
  ...D
4597
- }, X) => {
4598
- const j = Te(null), Y = X ?? j, U = ls({
4597
+ }, V) => {
4598
+ const j = Te(null), Y = V ?? j, U = ls({
4599
4599
  src: p
4600
4600
  }, {
4601
4601
  onLoadStart: w,
@@ -4628,7 +4628,7 @@ const ps = /* @__PURE__ */ Se(({
4628
4628
  _?.();
4629
4629
  }, ie = (R) => {
4630
4630
  M?.();
4631
- }, V = (R) => {
4631
+ }, X = (R) => {
4632
4632
  m?.();
4633
4633
  }, ee = (R) => {
4634
4634
  const C = R.currentTarget;
@@ -4650,7 +4650,7 @@ const ps = /* @__PURE__ */ Se(({
4650
4650
  playsInline: l,
4651
4651
  poster: u,
4652
4652
  onCanPlay: T,
4653
- onEnded: V,
4653
+ onEnded: X,
4654
4654
  onPause: ie,
4655
4655
  onPlay: re,
4656
4656
  onTimeUpdate: ee,
@@ -4676,13 +4676,13 @@ const ps = /* @__PURE__ */ Se(({
4676
4676
  onLoadMetadataComplete: B,
4677
4677
  onLoadMetadataError: W,
4678
4678
  onPause: D,
4679
- onPlay: X,
4679
+ onPlay: V,
4680
4680
  onSizeChange: j,
4681
4681
  ...Y
4682
4682
  }, U) => {
4683
4683
  const H = (z) => {
4684
- V(z ? z.width / z.height : NaN), j?.(z);
4685
- }, T = Te(null), re = U ?? T, [ie, V] = ke(NaN), ee = isNaN(c) ? ie : c, q = st(re), L = q.width / q.height, R = Ae.make(
4684
+ X(z ? z.width / z.height : NaN), j?.(z);
4685
+ }, T = Te(null), re = U ?? T, [ie, X] = ke(NaN), ee = isNaN(c) ? ie : c, q = st(re), L = q.width / q.height, R = Ae.make(
4686
4686
  L > 1 ? Math.max(q.width, q.height * ee) : Math.max(q.width, Math.max(q.height, q.width / ee) * ee),
4687
4687
  L > 1 ? Math.max(q.height, Math.max(q.width, q.height * ee) / ee) : Math.max(q.height, q.width / ee)
4688
4688
  ), C = He(n, {
@@ -4695,7 +4695,7 @@ const ps = /* @__PURE__ */ Se(({
4695
4695
  ...Y,
4696
4696
  ref: re,
4697
4697
  className: r,
4698
- style: le(s, mn.root),
4698
+ style: le(s, yn.root),
4699
4699
  children: [
4700
4700
  /* @__PURE__ */ S.jsx(
4701
4701
  ys,
@@ -4707,7 +4707,7 @@ const ps = /* @__PURE__ */ Se(({
4707
4707
  playsInline: m,
4708
4708
  posterSrc: x,
4709
4709
  src: w,
4710
- style: le(mn.viewport, {
4710
+ style: le(yn.viewport, {
4711
4711
  width: `${R.width}px`,
4712
4712
  height: `${R.height}px`,
4713
4713
  maxWidth: "unset"
@@ -4719,12 +4719,12 @@ const ps = /* @__PURE__ */ Se(({
4719
4719
  onLoadMetadataComplete: B,
4720
4720
  onLoadMetadataError: W,
4721
4721
  onPause: D,
4722
- onPlay: X,
4722
+ onPlay: V,
4723
4723
  onSizeChange: (z) => H(z)
4724
4724
  }
4725
4725
  ),
4726
4726
  C.viewport && Ne(C.viewport, {
4727
- style: le(mn.viewport, {
4727
+ style: le(yn.viewport, {
4728
4728
  height: `${R.height}px`,
4729
4729
  pointerEvents: "none",
4730
4730
  width: `${R.width}px`
@@ -4734,7 +4734,7 @@ const ps = /* @__PURE__ */ Se(({
4734
4734
  ]
4735
4735
  }
4736
4736
  );
4737
- }), bs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), xs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), mn = {
4737
+ }), bs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), xs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), yn = {
4738
4738
  root: {
4739
4739
  overflow: "hidden"
4740
4740
  },
@@ -4852,7 +4852,7 @@ const vc = /* @__PURE__ */ Se(({
4852
4852
  orientation: B = "vertical",
4853
4853
  selection: W = [],
4854
4854
  selectionMode: D = "single",
4855
- onActivateAt: X,
4855
+ onActivateAt: V,
4856
4856
  onCollapse: j,
4857
4857
  onDeselectAt: Y,
4858
4858
  onExpand: U,
@@ -4860,7 +4860,7 @@ const vc = /* @__PURE__ */ Se(({
4860
4860
  onSelectionChange: T,
4861
4861
  onToggleCustomEvent: re,
4862
4862
  ItemComponent: ie,
4863
- ToggleComponent: V,
4863
+ ToggleComponent: X,
4864
4864
  ...ee
4865
4865
  }, q) => {
4866
4866
  const L = (A) => !!(isNaN(A) || A >= O.length || A < 0), R = (A) => Ns(A).filter((ge) => !L(ge)), C = () => {
@@ -4903,8 +4903,8 @@ const vc = /* @__PURE__ */ Se(({
4903
4903
  className: ue(n, { collapsed: u, expanded: !u }),
4904
4904
  style: le(s, te.root),
4905
4905
  children: /* @__PURE__ */ S.jsxs("div", { ref: J, style: le(te.body), children: [
4906
- V ? /* @__PURE__ */ S.jsx(
4907
- V,
4906
+ X ? /* @__PURE__ */ S.jsx(
4907
+ X,
4908
4908
  {
4909
4909
  "aria-expanded": !u,
4910
4910
  "aria-haspopup": "listbox",
@@ -4937,7 +4937,7 @@ const vc = /* @__PURE__ */ Se(({
4937
4937
  selection: k,
4938
4938
  selectionMode: D,
4939
4939
  style: le(te.collection),
4940
- onActivateAt: X,
4940
+ onActivateAt: V,
4941
4941
  onDeselectAt: Y,
4942
4942
  onSelectAt: Z,
4943
4943
  onSelectionChange: Q
@@ -5018,7 +5018,7 @@ function ci(r, n) {
5018
5018
  }
5019
5019
  return s;
5020
5020
  }
5021
- const Cn = function(r) {
5021
+ const In = function(r) {
5022
5022
  const n = As.exec(r);
5023
5023
  return !(n === null || typeof n > "u");
5024
5024
  };
@@ -5239,10 +5239,10 @@ function Me(r, n, s) {
5239
5239
  };
5240
5240
  }
5241
5241
  function Fs(r) {
5242
- return Cn(r);
5242
+ return In(r);
5243
5243
  }
5244
5244
  function Bs(r) {
5245
- return Cn(r);
5245
+ return In(r);
5246
5246
  }
5247
5247
  function Re(r, n) {
5248
5248
  const s = r.substring(0, n).split(/\r?\n/);
@@ -5366,7 +5366,7 @@ function Xs(r, n) {
5366
5366
  let s = "";
5367
5367
  for (; n < r.length && !/\s/.test(r[n]) && r[n] !== '"' && r[n] !== "'"; )
5368
5368
  s += r[n], n++;
5369
- if (In(s), n = et(r, n), r.substring(n, n + 6).toUpperCase() === "SYSTEM")
5369
+ if ($n(s), n = et(r, n), r.substring(n, n + 6).toUpperCase() === "SYSTEM")
5370
5370
  throw new Error("External entities are not supported");
5371
5371
  if (r[n] === "%")
5372
5372
  throw new Error("Parameter entities are not supported");
@@ -5378,7 +5378,7 @@ function Us(r, n) {
5378
5378
  let s = "";
5379
5379
  for (; n < r.length && !/\s/.test(r[n]); )
5380
5380
  s += r[n], n++;
5381
- In(s), n = et(r, n);
5381
+ $n(s), n = et(r, n);
5382
5382
  const c = r.substring(n, n + 6).toUpperCase();
5383
5383
  if (c !== "SYSTEM" && c !== "PUBLIC")
5384
5384
  throw new Error(`Expected SYSTEM or PUBLIC, found "${c}"`);
@@ -5406,7 +5406,7 @@ function Ws(r, n) {
5406
5406
  let s = "";
5407
5407
  for (; n < r.length && !/\s/.test(r[n]); )
5408
5408
  s += r[n], n++;
5409
- if (!In(s))
5409
+ if (!$n(s))
5410
5410
  throw new Error(`Invalid element name: "${s}"`);
5411
5411
  if (n = et(r, n), r[n] !== "(")
5412
5412
  throw new Error(`Expected '(', found "${r[n]}"`);
@@ -5437,8 +5437,8 @@ function Ks(r, n) {
5437
5437
  function Js(r, n) {
5438
5438
  return r[n + 1] === "!" && r[n + 2] === "N" && r[n + 3] === "O" && r[n + 4] === "T" && r[n + 5] === "A" && r[n + 6] === "T" && r[n + 7] === "I" && r[n + 8] === "O" && r[n + 9] === "N";
5439
5439
  }
5440
- function In(r) {
5441
- if (Cn(r))
5440
+ function $n(r) {
5441
+ if (In(r))
5442
5442
  return r;
5443
5443
  throw new Error(`Invalid entity name ${r}`);
5444
5444
  }
@@ -5538,7 +5538,7 @@ function sa(r, n, s, c, l, u, p) {
5538
5538
  if (r !== void 0 && (this.options.trimValues && !c && (r = r.trim()), r.length > 0)) {
5539
5539
  p || (r = this.replaceEntitiesValue(r));
5540
5540
  const g = this.options.tagValueProcessor(n, r, s, l, u);
5541
- return g == null ? r : typeof g != typeof r || g !== r ? g : this.options.trimValues ? Pn(r, this.options.parseTagValue, this.options.numberParseOptions) : r.trim() === r ? Pn(r, this.options.parseTagValue, this.options.numberParseOptions) : r;
5541
+ return g == null ? r : typeof g != typeof r || g !== r ? g : this.options.trimValues ? kn(r, this.options.parseTagValue, this.options.numberParseOptions) : r.trim() === r ? kn(r, this.options.parseTagValue, this.options.numberParseOptions) : r;
5542
5542
  }
5543
5543
  }
5544
5544
  function aa(r) {
@@ -5563,7 +5563,7 @@ function la(r, n, s) {
5563
5563
  if (this.options.transformAttributeName && (x = this.options.transformAttributeName(x)), x === "__proto__" && (x = "#__proto__"), m !== void 0) {
5564
5564
  this.options.trimValues && (m = m.trim()), m = this.replaceEntitiesValue(m);
5565
5565
  const w = this.options.attributeValueProcessor(g, m, n);
5566
- w == null ? u[x] = m : typeof w != typeof m || w !== m ? u[x] = w : u[x] = Pn(
5566
+ w == null ? u[x] = m : typeof w != typeof m || w !== m ? u[x] = w : u[x] = kn(
5567
5567
  m,
5568
5568
  this.options.parseAttributeValue,
5569
5569
  this.options.numberParseOptions
@@ -5600,7 +5600,7 @@ const ua = function(r) {
5600
5600
  let w = 0;
5601
5601
  x && this.options.unpairedTags.indexOf(x) !== -1 ? (w = l.lastIndexOf(".", l.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : w = l.lastIndexOf("."), l = l.substring(0, w), s = this.tagsNodeStack.pop(), c = "", u = g;
5602
5602
  } else if (r[u + 1] === "?") {
5603
- let g = Nn(r, u, !1, "?>");
5603
+ let g = Pn(r, u, !1, "?>");
5604
5604
  if (!g) throw new Error("Pi Tag is not closed.");
5605
5605
  if (c = this.saveTextToParentTag(c, s, l), !(this.options.ignoreDeclaration && g.tagName === "?xml" || this.options.ignorePiTags)) {
5606
5606
  const m = new it(g.tagName);
@@ -5623,7 +5623,7 @@ const ua = function(r) {
5623
5623
  let x = this.parseTextData(m, s.tagname, l, !0, !1, !0, !0);
5624
5624
  x == null && (x = ""), this.options.cdataPropName ? s.add(this.options.cdataPropName, [{ [this.options.textNodeName]: m }]) : s.add(this.options.textNodeName, x), u = g + 2;
5625
5625
  } else {
5626
- let g = Nn(r, u, this.options.removeNSPrefix), m = g.tagName;
5626
+ let g = Pn(r, u, this.options.removeNSPrefix), m = g.tagName;
5627
5627
  const x = g.rawTagName;
5628
5628
  let w = g.tagExp, N = g.attrExpPresent, O = g.closeIndex;
5629
5629
  this.options.transformTagName && (m = this.options.transformTagName(m)), s && c && s.tagname !== "!xml" && (c = this.saveTextToParentTag(c, s, l, !1));
@@ -5731,7 +5731,7 @@ function ot(r, n, s, c) {
5731
5731
  throw new Error(c);
5732
5732
  return l + n.length - 1;
5733
5733
  }
5734
- function Nn(r, n, s, c = ">") {
5734
+ function Pn(r, n, s, c = ">") {
5735
5735
  const l = ga(r, n + 1, c);
5736
5736
  if (!l) return;
5737
5737
  let u = l.data;
@@ -5771,18 +5771,18 @@ function va(r, n, s) {
5771
5771
  else if (r.substr(s + 1, 2) === "![")
5772
5772
  s = ot(r, "]]>", s, "StopNode is not closed.") - 2;
5773
5773
  else {
5774
- const u = Nn(r, s, ">");
5774
+ const u = Pn(r, s, ">");
5775
5775
  u && ((u && u.tagName) === n && u.tagExp[u.tagExp.length - 1] !== "/" && l++, s = u.closeIndex);
5776
5776
  }
5777
5777
  }
5778
- function Pn(r, n, s) {
5778
+ function kn(r, n, s) {
5779
5779
  if (n && typeof r == "string") {
5780
5780
  const c = r.trim();
5781
5781
  return c === "true" ? !0 : c === "false" ? !1 : ta(r, s);
5782
5782
  } else
5783
5783
  return Ms(r) ? r : "";
5784
5784
  }
5785
- const yn = it.getMetaDataSymbol();
5785
+ const bn = it.getMetaDataSymbol();
5786
5786
  function ma(r, n) {
5787
5787
  return ui(r, n);
5788
5788
  }
@@ -5800,7 +5800,7 @@ function ui(r, n, s) {
5800
5800
  if (p[g]) {
5801
5801
  let x = ui(p[g], n, m);
5802
5802
  const w = xa(x, n);
5803
- p[yn] !== void 0 && (x[yn] = p[yn]), p[":@"] ? ba(x, p[":@"], m, n) : Object.keys(x).length === 1 && x[n.textNodeName] !== void 0 && !n.alwaysCreateTextNode ? x = x[n.textNodeName] : Object.keys(x).length === 0 && (n.alwaysCreateTextNode ? x[n.textNodeName] = "" : x = ""), l[g] !== void 0 && l.hasOwnProperty(g) ? (Array.isArray(l[g]) || (l[g] = [l[g]]), l[g].push(x)) : n.isArray(g, m, w) ? l[g] = [x] : l[g] = x;
5803
+ p[bn] !== void 0 && (x[bn] = p[bn]), p[":@"] ? ba(x, p[":@"], m, n) : Object.keys(x).length === 1 && x[n.textNodeName] !== void 0 && !n.alwaysCreateTextNode ? x = x[n.textNodeName] : Object.keys(x).length === 0 && (n.alwaysCreateTextNode ? x[n.textNodeName] = "" : x = ""), l[g] !== void 0 && l.hasOwnProperty(g) ? (Array.isArray(l[g]) || (l[g] = [l[g]]), l[g].push(x)) : n.isArray(g, m, w) ? l[g] = [x] : l[g] = x;
5804
5804
  }
5805
5805
  }
5806
5806
  }
@@ -6106,7 +6106,7 @@ const mc = /* @__PURE__ */ Se(({
6106
6106
  ignorePiTags: !0,
6107
6107
  removeNSPrefix: !0,
6108
6108
  trimValues: !0,
6109
- updateTag: (D, X, j) => {
6109
+ updateTag: (D, V, j) => {
6110
6110
  if (u && D.toLowerCase() === "style") return !1;
6111
6111
  const Y = Object.keys(j);
6112
6112
  for (const U of Y)
@@ -6152,60 +6152,60 @@ const mc = /* @__PURE__ */ Se(({
6152
6152
  verticalSpacing: g = 0,
6153
6153
  ...m
6154
6154
  }, x) => {
6155
- const w = Te(null), [N, O] = ke(NaN), [M, _] = ke(NaN), [B, W] = ke(NaN), [D, X] = ke(NaN), j = () => se.from(w.current)?.width ?? 0, Y = () => se.from(w.current)?.height ?? 0, U = () => {
6155
+ const w = Te(null), [N, O] = ke(NaN), [M, _] = ke(NaN), [B, W] = ke(NaN), [D, V] = ke(NaN), j = () => se.from(w.current)?.width ?? 0, Y = () => se.from(w.current)?.height ?? 0, U = () => {
6156
6156
  const re = w.current;
6157
6157
  if (!re) return;
6158
- const ie = re.children, V = p;
6159
- if (V <= 0) throw new Error("You must specify a minimum of 1 section(s) (a.k.a. row(s) for horizontal orientation, column(s) for vertical orientation) for a MasonryGrid instance");
6158
+ const ie = re.children, X = p;
6159
+ if (X <= 0) throw new Error("You must specify a minimum of 1 section(s) (a.k.a. row(s) for horizontal orientation, column(s) for vertical orientation) for a MasonryGrid instance");
6160
6160
  if (u === "vertical") {
6161
- const ee = [...new Array(V)].map(() => 0);
6161
+ const ee = [...new Array(X)].map(() => 0);
6162
6162
  for (const R of Array.from(ie)) {
6163
6163
  if (!(R instanceof HTMLElement)) continue;
6164
6164
  const C = Wr(R, p), [z, G] = Ur(ee, C);
6165
- R.role = "gridcell", R.style.position = "absolute", R.style.width = `calc(${100 / V * C}% - ${c * (V - 1) / V * C}px + ${c * (C - 1)}px)`, R.style.height = "", R.style.left = `calc(${100 / V * z}% - ${c * (V - 1) / V * z}px + ${c * z}px)`, R.style.top = `${G + (G === 0 ? 0 : g)}px`;
6165
+ R.role = "gridcell", R.style.position = "absolute", R.style.width = `calc(${100 / X * C}% - ${c * (X - 1) / X * C}px + ${c * (C - 1)}px)`, R.style.height = "", R.style.left = `calc(${100 / X * z}% - ${c * (X - 1) / X * z}px + ${c * z}px)`, R.style.top = `${G + (G === 0 ? 0 : g)}px`;
6166
6166
  for (let Z = 0; Z < C; Z++)
6167
6167
  ee[z + Z] = G + (G === 0 ? 0 : g) + (se.from(R)?.height ?? 0);
6168
- if (r && z + C === V) {
6168
+ if (r && z + C === X) {
6169
6169
  const Z = St(ee);
6170
- for (let Q = 0; Q < V; Q++)
6170
+ for (let Q = 0; Q < X; Q++)
6171
6171
  ee[Q] = Z;
6172
6172
  }
6173
6173
  }
6174
- const q = j(), L = St(ee, V);
6174
+ const q = j(), L = St(ee, X);
6175
6175
  if (O(q), _(L), isNaN(L) || (re.style.height = `${L}px`), l)
6176
6176
  for (const R of Array.from(ie))
6177
6177
  R instanceof HTMLElement && (R.style.left = `calc(${q}px - ${R.style.left} - ${R.getBoundingClientRect().width}px)`);
6178
6178
  } else {
6179
- const ee = [...new Array(V)].map(() => 0);
6179
+ const ee = [...new Array(X)].map(() => 0);
6180
6180
  for (const R of Array.from(ie)) {
6181
6181
  if (!(R instanceof HTMLElement)) continue;
6182
6182
  const C = Wr(R, p), [z, G] = Ur(ee, C);
6183
- R.style.position = "absolute", R.style.width = "", R.style.height = `calc(${100 / V * C}% - ${g * (V - 1) / V * C}px + ${g * (C - 1)}px)`, R.style.top = `calc(${100 / V * z}% - ${g * (V - 1) / V * z}px + ${g * z}px)`, R.style.left = `${G + (G === 0 ? 0 : c)}px`;
6183
+ R.style.position = "absolute", R.style.width = "", R.style.height = `calc(${100 / X * C}% - ${g * (X - 1) / X * C}px + ${g * (C - 1)}px)`, R.style.top = `calc(${100 / X * z}% - ${g * (X - 1) / X * z}px + ${g * z}px)`, R.style.left = `${G + (G === 0 ? 0 : c)}px`;
6184
6184
  for (let Z = 0; Z < C; Z++)
6185
6185
  ee[z + Z] = G + (G === 0 ? 0 : c) + (se.from(R)?.width ?? 0);
6186
- if (r && z + C === V) {
6186
+ if (r && z + C === X) {
6187
6187
  const Z = St(ee);
6188
- for (let Q = 0; Q < V; Q++)
6188
+ for (let Q = 0; Q < X; Q++)
6189
6189
  ee[Q] = Z;
6190
6190
  }
6191
6191
  }
6192
- const q = Y(), L = St(ee, V);
6192
+ const q = Y(), L = St(ee, X);
6193
6193
  if (_(q), O(L), isNaN(L) || (re.style.width = `${L}px`), l)
6194
6194
  for (const R of Array.from(ie))
6195
6195
  R instanceof HTMLElement && (R.style.top = `calc(${q}px - ${R.style.top} - ${R.getBoundingClientRect().height}px)`);
6196
6196
  }
6197
6197
  };
6198
- An(w, {
6198
+ Mn(w, {
6199
6199
  onResize: (re) => {
6200
- const ie = se.from(re)?.size ?? Ae.make(), V = j(), ee = Y();
6201
- (N !== V || M !== ee || ie.width !== B || ie.height !== D) && (U(), W(ie.width), X(ie.height));
6200
+ const ie = se.from(re)?.size ?? Ae.make(), X = j(), ee = Y();
6201
+ (N !== X || M !== ee || ie.width !== B || ie.height !== D) && (U(), W(ie.width), V(ie.height));
6202
6202
  }
6203
6203
  }, [r, c, l, p, g, u]), he(() => {
6204
6204
  const re = Ia(w.current?.innerHTML);
6205
6205
  if (re.length === 0) return U();
6206
6206
  const ie = re.length;
6207
- for (let V = 0; V < ie; V++) {
6208
- const ee = re[V], q = new Image();
6207
+ for (let X = 0; X < ie; X++) {
6208
+ const ee = re[X], q = new Image();
6209
6209
  q.src = ee, q.onload = () => U();
6210
6210
  }
6211
6211
  }, [n]);
@@ -6310,11 +6310,11 @@ const bc = /* @__PURE__ */ Se(({
6310
6310
  onImageSizeChange: N,
6311
6311
  ...O
6312
6312
  }, M) => {
6313
- const _ = (re, ie, V) => re - ie * n, B = Te(null), W = st(B), D = oi({ src: s }, {
6313
+ const _ = (re, ie, X) => re - ie * n, B = Te(null), W = st(B), D = oi({ src: s }, {
6314
6314
  onLoadStart: m,
6315
6315
  onLoadComplete: x,
6316
6316
  onLoadError: w
6317
- }), [X, j] = ke(r), { isDragging: [Y], value: [U, H] } = Nt(B, {
6317
+ }), [V, j] = ke(r), { isDragging: [Y], value: [U, H] } = Nt(B, {
6318
6318
  initialValue: 0,
6319
6319
  transform: _,
6320
6320
  onDragStart: p,
@@ -6323,14 +6323,14 @@ const bc = /* @__PURE__ */ Se(({
6323
6323
  he(() => {
6324
6324
  if (Y || !D) return;
6325
6325
  const re = ja(r, D, W.size, c);
6326
- re !== U && H(re), r !== X && j(r);
6326
+ re !== U && H(re), r !== V && j(r);
6327
6327
  }, [r, D, W.width, W.height, c]), he(() => {
6328
6328
  if (!Y || !D) return;
6329
6329
  const re = Ra(U, D, W.size, c);
6330
- X !== re && j(re);
6330
+ V !== re && j(re);
6331
6331
  }, [U, D, W.width, W.height, c]), he(() => {
6332
- l?.(X, Y), u?.(X / 360, Y);
6333
- }, [X]), he(() => {
6332
+ l?.(V, Y), u?.(V / 360, Y);
6333
+ }, [V]), he(() => {
6334
6334
  N?.(D);
6335
6335
  }, [D?.width, D?.height]);
6336
6336
  const T = _a({ src: s, displacement: U });
@@ -6339,7 +6339,7 @@ const bc = /* @__PURE__ */ Se(({
6339
6339
  {
6340
6340
  ...O,
6341
6341
  ref: M,
6342
- "aria-valuenow": X,
6342
+ "aria-valuenow": V,
6343
6343
  role: "slider",
6344
6344
  children: /* @__PURE__ */ S.jsx("div", { ref: B, style: T.body })
6345
6345
  }
@@ -6393,7 +6393,7 @@ const xc = /* @__PURE__ */ Se(({
6393
6393
  onLoadImageStart: B,
6394
6394
  onImageSizeChange: W,
6395
6395
  onPositionChange: D,
6396
- ...X
6396
+ ...V
6397
6397
  }, j) => {
6398
6398
  const Y = () => {
6399
6399
  if (!ee) return 0;
@@ -6401,20 +6401,20 @@ const xc = /* @__PURE__ */ Se(({
6401
6401
  return J === 0 ? 0 : k / J;
6402
6402
  }, U = () => {
6403
6403
  const k = Math.min(360, Math.max(0, u ?? (m ? m.width / (m.height * C) * 360 : 0)));
6404
- return V.width * (k / 360);
6405
- }, H = () => V.width <= 0 ? x : ((V.width - z) * 0.5 + x * z) / V.width, T = () => {
6404
+ return X.width * (k / 360);
6405
+ }, H = () => X.width <= 0 ? x : ((X.width - z) * 0.5 + x * z) / X.width, T = () => {
6406
6406
  R(!0), O?.();
6407
6407
  }, re = () => {
6408
6408
  R(!1), N?.();
6409
- }, ie = Te(null), V = st(ie), [ee, q] = ke(), [L, R] = ke(!1), C = Y(), z = U(), G = H(), Z = He(l, {
6410
- track: bn,
6409
+ }, ie = Te(null), X = st(ie), [ee, q] = ke(), [L, R] = ke(!1), C = Y(), z = U(), G = H(), Z = He(l, {
6410
+ track: xn,
6411
6411
  reticle: Dr,
6412
6412
  indicator: qr
6413
- }), Q = za({ autoDimension: c, panoramaRect: V, aspectRatio: C, reticleWidth: z });
6413
+ }), Q = za({ autoDimension: c, panoramaRect: X, aspectRatio: C, reticleWidth: z });
6414
6414
  return /* @__PURE__ */ S.jsxs(
6415
6415
  "div",
6416
6416
  {
6417
- ...X,
6417
+ ...V,
6418
6418
  ref: j,
6419
6419
  className: ue(r, { dragging: L }),
6420
6420
  style: le(n, Q.root),
@@ -6439,7 +6439,7 @@ const xc = /* @__PURE__ */ Se(({
6439
6439
  }
6440
6440
  ),
6441
6441
  /* @__PURE__ */ S.jsx("div", { style: Q.body, children: /* @__PURE__ */ S.jsxs("div", { style: Q.controls, children: [
6442
- Ne(Z.track ?? /* @__PURE__ */ S.jsx(bn, {}), {
6442
+ Ne(Z.track ?? /* @__PURE__ */ S.jsx(xn, {}), {
6443
6443
  className: ue({ dragging: L }),
6444
6444
  style: le(Q.track)
6445
6445
  }),
@@ -6447,7 +6447,7 @@ const xc = /* @__PURE__ */ Se(({
6447
6447
  className: ue({ dragging: L }),
6448
6448
  style: le(Q.reticle)
6449
6449
  }),
6450
- Ne(Z.track ?? /* @__PURE__ */ S.jsx(bn, {}), {
6450
+ Ne(Z.track ?? /* @__PURE__ */ S.jsx(xn, {}), {
6451
6451
  className: ue({ dragging: L }),
6452
6452
  style: le(Q.track)
6453
6453
  })
@@ -6459,7 +6459,7 @@ const xc = /* @__PURE__ */ Se(({
6459
6459
  ]
6460
6460
  }
6461
6461
  );
6462
- }), bn = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), Dr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), qr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n }));
6462
+ }), xn = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), Dr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), qr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n }));
6463
6463
  function za({ autoDimension: r = "width", panoramaRect: n = se.make(), aspectRatio: s = 0, reticleWidth: c = 0 }) {
6464
6464
  return {
6465
6465
  root: {
@@ -6519,7 +6519,7 @@ const wc = /* @__PURE__ */ Se(({
6519
6519
  onRangeChange: N,
6520
6520
  ...O
6521
6521
  }, M) => {
6522
- const _ = (pe) => (pe - g) / (p - g), B = (pe) => pe / (m === "horizontal" ? H.width : H.height), W = (pe) => pe * (p - g) + g, D = (pe) => W(B(pe)), X = (pe) => pe * (m === "horizontal" ? H.width : H.height), j = (pe) => X(_(pe)), Y = (pe) => {
6522
+ const _ = (pe) => (pe - g) / (p - g), B = (pe) => pe / (m === "horizontal" ? H.width : H.height), W = (pe) => pe * (p - g) + g, D = (pe) => W(B(pe)), V = (pe) => pe * (m === "horizontal" ? H.width : H.height), j = (pe) => V(_(pe)), Y = (pe) => {
6523
6523
  const oe = Q.length;
6524
6524
  let te = 0, ae = 1 / 0;
6525
6525
  for (let A = 0; A < oe; A++) {
@@ -6527,7 +6527,7 @@ const wc = /* @__PURE__ */ Se(({
6527
6527
  we < ae && (ae = we, te = A);
6528
6528
  }
6529
6529
  return Q[te];
6530
- }, U = Te(null), H = st(U), T = Te(null), re = Te(null), [ie, V] = ke(x ?? [g, p]), { isDragging: [ee], isReleasing: [q], value: [L, R] } = Nt(T, {
6530
+ }, U = Te(null), H = st(U), T = Te(null), re = Te(null), [ie, X] = ke(x ?? [g, p]), { isDragging: [ee], isReleasing: [q], value: [L, R] } = Nt(T, {
6531
6531
  initialValue: x?.[0] ?? g,
6532
6532
  transform: (pe, oe, te) => {
6533
6533
  const ae = m === "horizontal" ? oe : te, A = j(g), ge = j(ie[1]), we = j(pe) + ae;
@@ -6541,11 +6541,11 @@ const wc = /* @__PURE__ */ Se(({
6541
6541
  }
6542
6542
  }, [p, m, H.size.width, H.size.height, ie[0]]), Q = [g, ...[...Array(w)].map((pe, oe) => g + (oe + 1) * (p - g) / (1 + w)), p], [k, J] = ie.map(j), be = J - k;
6543
6543
  he(() => {
6544
- ie[0] !== L && (V([L, ie[1]]), N?.(ie));
6544
+ ie[0] !== L && (X([L, ie[1]]), N?.(ie));
6545
6545
  }, [L]), he(() => {
6546
- ie[1] !== G && (V([ie[0], G]), N?.(ie));
6546
+ ie[1] !== G && (X([ie[0], G]), N?.(ie));
6547
6547
  }, [G]), he(() => {
6548
- ee || C || Ge(x, ie) || (V(x ?? [g, p]), R(x?.[0] ?? g), Z(x?.[1] ?? p));
6548
+ ee || C || Ge(x, ie) || (X(x ?? [g, p]), R(x?.[0] ?? g), Z(x?.[1] ?? p));
6549
6549
  }, [x?.[0], x?.[1]]), he(() => {
6550
6550
  w < 0 || R(Y(L));
6551
6551
  }, [q]), he(() => {
@@ -6554,7 +6554,7 @@ const wc = /* @__PURE__ */ Se(({
6554
6554
  const xe = He(r, {
6555
6555
  gutter: Gr,
6556
6556
  highlight: Kr,
6557
- knob: xn,
6557
+ knob: wn,
6558
6558
  label: La
6559
6559
  }), Pe = Fa({ orientation: m, highlightLength: be, start: k, knobPadding: l, knobWidth: u, knobHeight: c });
6560
6560
  return /* @__PURE__ */ S.jsx(
@@ -6574,7 +6574,7 @@ const wc = /* @__PURE__ */ Se(({
6574
6574
  style: le(Pe.highlight)
6575
6575
  }),
6576
6576
  Ne(xe.knob ?? /* @__PURE__ */ S.jsx(
6577
- xn,
6577
+ wn,
6578
6578
  {
6579
6579
  style: le({
6580
6580
  transitionProperty: q ? "opacity, transform" : "opacity"
@@ -6604,7 +6604,7 @@ const wc = /* @__PURE__ */ Se(({
6604
6604
  style: le(Pe.label)
6605
6605
  }, Number(L.toFixed(s)).toLocaleString())),
6606
6606
  Ne(xe.knob ?? /* @__PURE__ */ S.jsx(
6607
- xn,
6607
+ wn,
6608
6608
  {
6609
6609
  style: le({
6610
6610
  transitionProperty: z ? "opacity, transform" : "opacity"
@@ -6636,7 +6636,7 @@ const wc = /* @__PURE__ */ Se(({
6636
6636
  ] })
6637
6637
  }
6638
6638
  );
6639
- }), Gr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), La = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), Kr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), xn = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n }));
6639
+ }), Gr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), La = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), Kr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), wn = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n }));
6640
6640
  function Fa({ orientation: r = "horizontal", knobWidth: n = 0, knobHeight: s = 0, highlightLength: c = 0, start: l = 0, knobPadding: u = 0 }) {
6641
6641
  return {
6642
6642
  body: {
@@ -6744,11 +6744,11 @@ const Ec = /* @__PURE__ */ Se(({
6744
6744
  ..._
6745
6745
  }, B) => {
6746
6746
  const W = (R, C, z) => {
6747
- const G = se.from(X.current) ?? se.make(), Z = s ? 1 - R : R, Q = Z * G.width + C, k = Z * G.height + z, J = g === "vertical" ? Math.max(0, Math.min(1, k / G.height)) : Math.max(0, Math.min(1, Q / G.width));
6747
+ const G = se.from(V.current) ?? se.make(), Z = s ? 1 - R : R, Q = Z * G.width + C, k = Z * G.height + z, J = g === "vertical" ? Math.max(0, Math.min(1, k / G.height)) : Math.max(0, Math.min(1, Q / G.width));
6748
6748
  return s ? 1 - J : J;
6749
6749
  }, D = (R) => {
6750
6750
  if (!c) return;
6751
- const C = se.from(X.current) ?? se.make(), z = se.fromViewport();
6751
+ const C = se.from(V.current) ?? se.make(), z = se.fromViewport();
6752
6752
  switch (g) {
6753
6753
  case "horizontal": {
6754
6754
  const G = (R.clientX + z.left - C.left) / C.width, Z = s ? 1 - G : G;
@@ -6761,12 +6761,12 @@ const Ec = /* @__PURE__ */ Se(({
6761
6761
  break;
6762
6762
  }
6763
6763
  }
6764
- }, X = Te(null), j = Te(null), { isDragging: [Y], isReleasing: [U], value: [H, T] } = Nt(j, {
6764
+ }, V = Te(null), j = Te(null), { isDragging: [Y], isReleasing: [U], value: [H, T] } = Nt(j, {
6765
6765
  initialValue: m,
6766
6766
  transform: W,
6767
6767
  onDragStart: O,
6768
6768
  onDragEnd: N
6769
- }, [s, g]), re = s ? 1 - H : H, ie = s ? H === 0 : H === 1, V = s ? H === 1 : H === 0;
6769
+ }, [s, g]), re = s ? 1 - H : H, ie = s ? H === 0 : H === 1, X = s ? H === 1 : H === 0;
6770
6770
  he(() => {
6771
6771
  Y || m === H || T(m);
6772
6772
  }, [m]), he(() => {
@@ -6777,8 +6777,8 @@ const Ec = /* @__PURE__ */ Se(({
6777
6777
  const ee = He(r, {
6778
6778
  knob: Jr,
6779
6779
  label: Zr,
6780
- track: wn
6781
- }), q = Ba({ orientation: g, isAtEnd: ie, isAtStart: V, isDragging: Y, isReleasing: U }), L = Ya({ orientation: g, isDragging: Y, naturalPosition: re, knobHeight: l, knobWidth: u, isTrackInteractive: c });
6780
+ track: En
6781
+ }), q = Ba({ orientation: g, isAtEnd: ie, isAtStart: X, isDragging: Y, isReleasing: U }), L = Ya({ orientation: g, isDragging: Y, naturalPosition: re, knobHeight: l, knobWidth: u, isTrackInteractive: c });
6782
6782
  return /* @__PURE__ */ S.jsx(
6783
6783
  "div",
6784
6784
  {
@@ -6788,8 +6788,8 @@ const Ec = /* @__PURE__ */ Se(({
6788
6788
  "aria-valuenow": H,
6789
6789
  className: ue(n, q.root),
6790
6790
  role: "slider",
6791
- children: /* @__PURE__ */ S.jsxs("div", { ref: X, style: L.body, children: [
6792
- Ne(ee.track ?? /* @__PURE__ */ S.jsx(wn, {}), {
6791
+ children: /* @__PURE__ */ S.jsxs("div", { ref: V, style: L.body, children: [
6792
+ Ne(ee.track ?? /* @__PURE__ */ S.jsx(En, {}), {
6793
6793
  className: ue("start", q.track),
6794
6794
  style: le(L.track, g === "vertical" ? {
6795
6795
  height: `calc(${re * 100}% - ${x <= 0 ? 0 : l * 0.5}px - ${x}px)`,
@@ -6800,7 +6800,7 @@ const Ec = /* @__PURE__ */ Se(({
6800
6800
  }),
6801
6801
  onClick: D
6802
6802
  }, /* @__PURE__ */ S.jsx("div", { style: L.trackHitBox })),
6803
- Ne(ee.track ?? /* @__PURE__ */ S.jsx(wn, {}), {
6803
+ Ne(ee.track ?? /* @__PURE__ */ S.jsx(En, {}), {
6804
6804
  className: ue("end", q.track),
6805
6805
  style: le(L.track, g === "vertical" ? {
6806
6806
  bottom: "0",
@@ -6821,7 +6821,7 @@ const Ec = /* @__PURE__ */ Se(({
6821
6821
  ] })
6822
6822
  }
6823
6823
  );
6824
- }), wn = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), Jr = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), Zr = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r });
6824
+ }), En = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), Jr = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), Zr = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r });
6825
6825
  function Ba({ orientation: r = "vertical", isAtEnd: n = !1, isAtStart: s = !1, isDragging: c = !1, isReleasing: l = !1 }) {
6826
6826
  return {
6827
6827
  root: ue(r, {
@@ -6927,7 +6927,7 @@ const Sc = /* @__PURE__ */ Se(({
6927
6927
  onPositionChange: B,
6928
6928
  ...W
6929
6929
  }, D) => {
6930
- const X = (Z, Q, k) => {
6930
+ const V = (Z, Q, k) => {
6931
6931
  const J = se.from(Y.current) ?? se.make(), be = c ? 1 - Z : Z, xe = be * J.width + Q, Pe = be * J.height + k, pe = x === "vertical" ? Math.max(0, Math.min(1, Pe / J.height)) : Math.max(0, Math.min(1, xe / J.width));
6932
6932
  return c ? 1 - pe : pe;
6933
6933
  }, j = (Z) => {
@@ -6945,31 +6945,31 @@ const Sc = /* @__PURE__ */ Se(({
6945
6945
  break;
6946
6946
  }
6947
6947
  }
6948
- }, Y = Te(null), U = Te(null), [H, T] = ke(s), { isDragging: [re], isReleasing: [ie], value: [V, ee] } = Nt(U, {
6948
+ }, Y = Te(null), U = Te(null), [H, T] = ke(s), { isDragging: [re], isReleasing: [ie], value: [X, ee] } = Nt(U, {
6949
6949
  initialValue: Vt(s, w),
6950
- transform: X,
6950
+ transform: V,
6951
6951
  onDragStart: M,
6952
6952
  onDragEnd: O
6953
- }, [c, x]), q = c ? 1 - V : V, L = c ? V === 0 : V === 1, R = c ? V === 1 : V === 0, C = He(r, {
6953
+ }, [c, x]), q = c ? 1 - X : X, L = c ? X === 0 : X === 1, R = c ? X === 1 : X === 0, C = He(r, {
6954
6954
  knob: Qr,
6955
6955
  label: ei,
6956
- track: En
6956
+ track: Tn
6957
6957
  }), z = Va({ orientation: x, isAtEnd: L, isAtStart: R, isDragging: re, isReleasing: ie }), G = Xa({ orientation: x, naturalPosition: q, isDragging: re, knobHeight: u, knobWidth: p, isTrackInteractive: l });
6958
6958
  return he(() => {
6959
6959
  if (re) return;
6960
6960
  const Z = Vt(s, w);
6961
- V !== Z && ee(Z), s !== H && T(s);
6961
+ X !== Z && ee(Z), s !== H && T(s);
6962
6962
  }, [s]), he(() => {
6963
6963
  if (re && m) return;
6964
- B?.(V, re);
6965
- const Z = Tn(V, w);
6964
+ B?.(X, re);
6965
+ const Z = Sn(X, w);
6966
6966
  H !== Z && T(Z);
6967
- }, [V]), he(() => {
6967
+ }, [X]), he(() => {
6968
6968
  _?.(H, re);
6969
6969
  }, [H]), he(() => {
6970
6970
  if (re) return;
6971
- const Z = Tn(V, w), Q = Vt(Z, w);
6972
- (Q !== V || m) && (ee(Q), B?.(Q, !0));
6971
+ const Z = Sn(X, w), Q = Vt(Z, w);
6972
+ (Q !== X || m) && (ee(Q), B?.(Q, !0));
6973
6973
  }, [re]), /* @__PURE__ */ S.jsx(
6974
6974
  "div",
6975
6975
  {
@@ -6979,7 +6979,7 @@ const Sc = /* @__PURE__ */ Se(({
6979
6979
  className: ue(n, z.root),
6980
6980
  role: "slider",
6981
6981
  children: /* @__PURE__ */ S.jsxs("div", { ref: Y, style: G.body, children: [
6982
- Ne(C.track ?? /* @__PURE__ */ S.jsx(En, {}), {
6982
+ Ne(C.track ?? /* @__PURE__ */ S.jsx(Tn, {}), {
6983
6983
  className: ue("start", z.track),
6984
6984
  style: le(G.track, x === "vertical" ? {
6985
6985
  height: `calc(${q * 100}% - ${N <= 0 ? 0 : u * 0.5}px - ${N}px)`,
@@ -6990,7 +6990,7 @@ const Sc = /* @__PURE__ */ Se(({
6990
6990
  }),
6991
6991
  onClick: j
6992
6992
  }, /* @__PURE__ */ S.jsx("div", { style: G.trackHitBox })),
6993
- Ne(C.track ?? /* @__PURE__ */ S.jsx(En, {}), {
6993
+ Ne(C.track ?? /* @__PURE__ */ S.jsx(Tn, {}), {
6994
6994
  className: ue("end", z.track),
6995
6995
  style: le(G.track, x === "vertical" ? {
6996
6996
  bottom: "0",
@@ -7007,17 +7007,17 @@ const Sc = /* @__PURE__ */ Se(({
7007
7007
  }, w && g && Ne(C.label ?? /* @__PURE__ */ S.jsx(ei, {}), {
7008
7008
  className: ue(z.label),
7009
7009
  style: le(G.label)
7010
- }, g(V, Tn(V, w)))) })
7010
+ }, g(X, Sn(X, w)))) })
7011
7011
  ] })
7012
7012
  }
7013
7013
  );
7014
- }), En = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), Qr = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), ei = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r });
7014
+ }), Tn = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), Qr = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), ei = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r });
7015
7015
  function Ha(r) {
7016
7016
  if (Math.round(r) !== r) throw new Error("`length` value must be an integer");
7017
7017
  const n = 1 / (r - 1);
7018
7018
  return Array(r).fill(null).map((s, c) => n * c);
7019
7019
  }
7020
- function Tn(r, n) {
7020
+ function Sn(r, n) {
7021
7021
  let s = -1, c = NaN;
7022
7022
  for (let l = 0, u = n.length; l < u; l++) {
7023
7023
  const p = Vt(l, n);
@@ -7127,7 +7127,7 @@ const Nc = /* @__PURE__ */ Se(({
7127
7127
  ...g
7128
7128
  }, m) => {
7129
7129
  const [x, w] = ke(void 0), [N, O] = ke(void 0), [M, _] = ke(NaN), B = (j, Y) => {
7130
- if (isNaN(j) || isNaN(Y)) return X();
7130
+ if (isNaN(j) || isNaN(Y)) return V();
7131
7131
  w(ye.make(j, Y));
7132
7132
  }, W = (j, Y) => {
7133
7133
  const U = x;
@@ -7137,9 +7137,9 @@ const Nc = /* @__PURE__ */ Se(({
7137
7137
  }, D = () => {
7138
7138
  const j = M, Y = x, U = N;
7139
7139
  if (isNaN(j) || Y === void 0 || U === void 0) return;
7140
- const H = Date.now() - j, T = U.x - Y.x, re = U.y - Y.y, ie = T / H, V = re / H;
7141
- n && (Math.abs(ie) >= s && Math.abs(ie) > Math.abs(V) ? ie > 0 ? u?.() : l?.() : Math.abs(V) >= s && Math.abs(V) > Math.abs(ie) && (V > 0 ? c?.() : p?.())), X();
7142
- }, X = () => {
7140
+ const H = Date.now() - j, T = U.x - Y.x, re = U.y - Y.y, ie = T / H, X = re / H;
7141
+ n && (Math.abs(ie) >= s && Math.abs(ie) > Math.abs(X) ? ie > 0 ? u?.() : l?.() : Math.abs(X) >= s && Math.abs(X) > Math.abs(ie) && (X > 0 ? c?.() : p?.())), V();
7142
+ }, V = () => {
7143
7143
  w(void 0), O(void 0), _(NaN);
7144
7144
  };
7145
7145
  return /* @__PURE__ */ S.jsx(
@@ -7148,7 +7148,7 @@ const Nc = /* @__PURE__ */ Se(({
7148
7148
  ...g,
7149
7149
  ref: m,
7150
7150
  onMouseDown: (j) => B(j.clientX, j.clientY),
7151
- onMouseLeave: () => X(),
7151
+ onMouseLeave: () => V(),
7152
7152
  onMouseMove: (j) => W(j.clientX, j.clientY),
7153
7153
  onMouseUp: () => D(),
7154
7154
  onTouchEnd: () => D(),
@@ -7173,7 +7173,7 @@ function Pc({
7173
7173
  const w = () => {
7174
7174
  const W = document.createElement("span");
7175
7175
  W.className = ue(n), W.innerHTML = g, W.role = "tooltip";
7176
- const D = c ?? (M.current ? Wa(M.current, x) : "tl"), X = Ua(W), j = Ga({ alignment: D, arrowSize: Ae.make(u, l), gap: p, maxDialogWidth: m, fullDialogWidth: X.width, targetWidth: B.width }), Y = le(s, j.dialog);
7176
+ const D = c ?? (M.current ? Wa(M.current, x) : "tl"), V = Ua(W), j = Ga({ alignment: D, arrowSize: Ae.make(u, l), gap: p, maxDialogWidth: m, fullDialogWidth: V.width, targetWidth: B.width }), Y = le(s, j.dialog);
7177
7177
  Object.keys(Y).forEach((H) => W.style[H] = Y[H]);
7178
7178
  const U = document.createElement("span");
7179
7179
  return Object.keys(j.arrow).forEach((H) => U.style[H] = j.arrow[H]), W.appendChild(U), W;
@@ -7419,9 +7419,9 @@ export {
7419
7419
  nc as Accordion,
7420
7420
  Wo as AccordionCollapseIcon,
7421
7421
  Uo as AccordionExpandIcon,
7422
- Or as AccordionHeader,
7422
+ Ar as AccordionHeader,
7423
7423
  qo as Burger,
7424
- Sn as BurgerBar,
7424
+ Nn as BurgerBar,
7425
7425
  rc as BurgerButton,
7426
7426
  ic as BurgerButtonBar,
7427
7427
  oc as Button,
@@ -7445,7 +7445,7 @@ export {
7445
7445
  Ss as DropdownCollapseIcon,
7446
7446
  Ts as DropdownExpandIcon,
7447
7447
  Lr as DropdownToggle,
7448
- Mn as Each,
7448
+ Cn as Each,
7449
7449
  Vo as ExtractChild,
7450
7450
  tc as ExtractChildren,
7451
7451
  mc as FlatSVG,
@@ -7456,24 +7456,24 @@ export {
7456
7456
  xc as PanoramaSlider,
7457
7457
  qr as PanoramaSliderIndicator,
7458
7458
  Dr as PanoramaSliderReticle,
7459
- bn as PanoramaSliderTrack,
7459
+ xn as PanoramaSliderTrack,
7460
7460
  wc as RangeSlider,
7461
7461
  Gr as RangeSliderGutter,
7462
7462
  Kr as RangeSliderHighlight,
7463
- xn as RangeSliderKnob,
7463
+ wn as RangeSliderKnob,
7464
7464
  La as RangeSliderLabel,
7465
- Pr as Repeat,
7465
+ kr as Repeat,
7466
7466
  pi as ScrollPositionContext,
7467
7467
  kc as ScrollPositionProvider,
7468
7468
  Ec as SelectableButton,
7469
7469
  Tc as Slider,
7470
7470
  Jr as SliderKnob,
7471
7471
  Zr as SliderLabel,
7472
- wn as SliderTrack,
7472
+ En as SliderTrack,
7473
7473
  Sc as StepwiseSlider,
7474
7474
  Qr as StepwiseSliderKnob,
7475
7475
  ei as StepwiseSliderLabel,
7476
- En as StepwiseSliderTrack,
7476
+ Tn as StepwiseSliderTrack,
7477
7477
  Nc as SwipeRegion,
7478
7478
  ps as TextField,
7479
7479
  ys as Video,
@@ -7483,7 +7483,7 @@ export {
7483
7483
  ec as asStyleDict,
7484
7484
  Ne as cloneStyledElement,
7485
7485
  Ut as createKey,
7486
- Nr as createKeyDeep,
7486
+ Pr as createKeyDeep,
7487
7487
  le as styles,
7488
7488
  sc as useClickOutsideEffect,
7489
7489
  ts as useDragEffect,
@@ -7495,7 +7495,7 @@ export {
7495
7495
  Bo as useMounted,
7496
7496
  si as usePrevious,
7497
7497
  st as useRect,
7498
- An as useResizeEffect,
7498
+ Mn as useResizeEffect,
7499
7499
  Oc as useScrollPosition,
7500
7500
  cc as useScrollPositionEffect,
7501
7501
  lc as useSearchParamState,