@overmap-ai/forms 1.0.40-file-component-improvements.1 → 1.0.40-file-component-improvements.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/forms.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var zs = Object.defineProperty;
2
2
  var Us = (r, e, t) => e in r ? zs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var R = (r, e, t) => Us(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { jsxs as _, Fragment as Le, jsx as p } from "react/jsx-runtime";
5
- import { Card as pt, LuIcon as N, Text as pe, Spinner as ti, Overlay as xt, preventDefault as Hs, ButtonGroup as ue, Tooltip as Xt, IconButton as ne, Separator as Ft, Input as ge, Badge as ye, Checkbox as Hr, CheckboxGroup as En, Popover as xe, Button as B, DayPicker as za, Menu as D, OneTimePasswordField as Sn, stopPropagation as mt, RadioGroup as Wt, TextArea as or, Rating as Fi, Heading as Gs, toast as qe, ToggleGroup as bn, useAlertDialog as qs } from "@overmap-ai/blocks";
6
- import { cx as Ct, cva as ri } from "class-variance-authority";
4
+ import { jsxs as _, Fragment as Ie, jsx as p } from "react/jsx-runtime";
5
+ import { Card as pt, LuIcon as N, Text as pe, Spinner as ti, Overlay as xt, preventDefault as Hs, ButtonGroup as ue, Tooltip as Xt, IconButton as ne, Separator as Vt, Input as ge, Badge as ye, Checkbox as Hr, CheckboxGroup as En, Popover as xe, Button as B, DayPicker as za, Menu as D, OneTimePasswordField as Sn, stopPropagation as mt, RadioGroup as Wt, TextArea as or, Rating as Fi, Heading as Gs, toast as qe, ToggleGroup as bn, useAlertDialog as qs } from "@overmap-ai/blocks";
6
+ import { cx as kt, cva as ri } from "class-variance-authority";
7
7
  import { forwardRef as ni, createElement as kn, memo as L, createContext as jr, useState as Xe, useEffect as dt, useContext as Xs, useCallback as b, Fragment as ii, use as ce, useMemo as se, useRef as Yr, useLayoutEffect as Ws } from "react";
8
8
  import "@xyflow/react/dist/style.css";
9
9
  import { getBezierPath as $s, Position as yt, BaseEdge as js, EdgeLabelRenderer as Ys, NodeToolbar as Zs, Handle as Pi, MarkerType as Ks, useNodesState as Qs, useEdgesState as Js, ReactFlow as el, Panel as In } from "@xyflow/react";
@@ -651,15 +651,15 @@ const Mc = [
651
651
  const Fc = [
652
652
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
653
653
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
654
- ], It = q("x", Fc), so = L((r) => {
655
- const { ref: e, file: t, className: n, error: i, rightSlot: a, size: o, ...s } = r, l = () => i ? /* @__PURE__ */ _(Le, { children: [
654
+ ], bt = q("x", Fc), so = L((r) => {
655
+ const { ref: e, file: t, className: n, error: i, rightSlot: a, size: o, ...s } = r, l = () => i ? /* @__PURE__ */ _(Ie, { children: [
656
656
  /* @__PURE__ */ p(N, { icon: bl, color: "var(--base-a11)" }),
657
657
  /* @__PURE__ */ p(pe, { accentColor: "base", className: "truncate", size: o, children: i })
658
- ] }) : t ? /* @__PURE__ */ _(Le, { children: [
658
+ ] }) : t ? /* @__PURE__ */ _(Ie, { children: [
659
659
  /* @__PURE__ */ p(N, { icon: Yl, color: "var(--base-a11)" }),
660
660
  /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: t.name })
661
- ] }) : /* @__PURE__ */ p(Le, { children: /* @__PURE__ */ p("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ p(ti, { size: o }) }) });
662
- return /* @__PURE__ */ _(pt, { className: Ct(n, "flex w-full items-center gap-2"), ref: e, size: "xs", ...s, children: [
661
+ ] }) : /* @__PURE__ */ p(Ie, { children: /* @__PURE__ */ p("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ p(ti, { size: o }) }) });
662
+ return /* @__PURE__ */ _(pt, { className: kt(n, "flex w-full items-center gap-2"), ref: e, size: "xs", ...s, children: [
663
663
  l(),
664
664
  a
665
665
  ] });
@@ -799,8 +799,8 @@ const uo = jr(() => {
799
799
  /* @__PURE__ */ p(Xt.Trigger, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: n, "aria-label": "download", children: /* @__PURE__ */ p(N, { icon: Ja }) }) }),
800
800
  /* @__PURE__ */ p(Xt.Content, { size: "sm", children: "Download" })
801
801
  ] }),
802
- /* @__PURE__ */ p(Ft, { orientation: "vertical", size: "sm" }),
803
- /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: t, "aria-label": "close", children: /* @__PURE__ */ p(N, { icon: It }) }) })
802
+ /* @__PURE__ */ p(Vt, { orientation: "vertical", size: "sm" }),
803
+ /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: t, "aria-label": "close", children: /* @__PURE__ */ p(N, { icon: bt }) }) })
804
804
  ]
805
805
  }
806
806
  ),
@@ -825,7 +825,7 @@ const Pc = L((r) => {
825
825
  ] });
826
826
  });
827
827
  Pc.displayName = "FileViewerProvider";
828
- const Re = L((r) => {
828
+ const Me = L((r) => {
829
829
  const { label: e, error: t, description: n, required: i, children: a, inputId: o, image: s, size: l } = r, [c, u] = Xe(void 0), d = si();
830
830
  dt(() => {
831
831
  s instanceof Promise ? s.then(u).catch(console.error) : u(s);
@@ -852,7 +852,7 @@ const Re = L((r) => {
852
852
  !!t && /* @__PURE__ */ p(pe, { accentColor: "danger", size: l, children: t })
853
853
  ] });
854
854
  });
855
- Re.displayName = "InputWithLabel";
855
+ Me.displayName = "InputWithLabel";
856
856
  const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e.identifier)), Ln = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e.identifier)), ze = (r) => {
857
857
  const { field: e } = r, {
858
858
  field: { value: t, name: n, onChange: i, onBlur: a, disabled: o },
@@ -910,7 +910,7 @@ const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e
910
910
  a();
911
911
  }, [a]);
912
912
  return /* @__PURE__ */ p(rl, { onDragEnd: C, children: /* @__PURE__ */ _(
913
- Re,
913
+ Me,
914
914
  {
915
915
  size: t,
916
916
  inputId: e.identifier,
@@ -991,7 +991,7 @@ const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e
991
991
  onClick: () => {
992
992
  m(O);
993
993
  },
994
- children: /* @__PURE__ */ p(N, { icon: It })
994
+ children: /* @__PURE__ */ p(N, { icon: bt })
995
995
  }
996
996
  )
997
997
  ]
@@ -1137,7 +1137,7 @@ const po = L((r) => {
1137
1137
  a();
1138
1138
  }, [a]);
1139
1139
  return /* @__PURE__ */ p(
1140
- Re,
1140
+ Me,
1141
1141
  {
1142
1142
  size: t,
1143
1143
  inputId: e.identifier,
@@ -1229,7 +1229,7 @@ const vo = L((r) => {
1229
1229
  f.key === "Enter" && f.preventDefault();
1230
1230
  }, []);
1231
1231
  return /* @__PURE__ */ p(
1232
- Re,
1232
+ Me,
1233
1233
  {
1234
1234
  size: t,
1235
1235
  inputId: e.identifier,
@@ -1488,7 +1488,7 @@ const xo = L((r) => {
1488
1488
  a();
1489
1489
  }, [a]);
1490
1490
  return /* @__PURE__ */ p(
1491
- Re,
1491
+ Me,
1492
1492
  {
1493
1493
  size: t,
1494
1494
  inputId: e.identifier,
@@ -1591,7 +1591,7 @@ const yo = L((r) => {
1591
1591
  [a]
1592
1592
  );
1593
1593
  return /* @__PURE__ */ p(
1594
- Re,
1594
+ Me,
1595
1595
  {
1596
1596
  size: t,
1597
1597
  inputId: e.identifier,
@@ -1703,7 +1703,7 @@ const mo = L((r) => {
1703
1703
  [a]
1704
1704
  );
1705
1705
  return /* @__PURE__ */ p(
1706
- Re,
1706
+ Me,
1707
1707
  {
1708
1708
  size: t,
1709
1709
  inputId: e.identifier,
@@ -1752,7 +1752,7 @@ const mo = L((r) => {
1752
1752
  );
1753
1753
  });
1754
1754
  mo.displayName = "MultiSelectFieldInput";
1755
- class bt extends Qr {
1755
+ class St extends Qr {
1756
1756
  constructor(t) {
1757
1757
  const { placeholder: n, ...i } = t;
1758
1758
  super(i);
@@ -1770,7 +1770,7 @@ class bt extends Qr {
1770
1770
  };
1771
1771
  }
1772
1772
  duplicate(t) {
1773
- return new bt({
1773
+ return new St({
1774
1774
  ...this.getOptions(),
1775
1775
  identifier: t
1776
1776
  });
@@ -1780,7 +1780,7 @@ class bt extends Qr {
1780
1780
  this.placeholder = n, super.setOptions(t);
1781
1781
  }
1782
1782
  static deserialize(t) {
1783
- return new bt(t);
1783
+ return new St(t);
1784
1784
  }
1785
1785
  serializeValue(t) {
1786
1786
  return t;
@@ -1827,7 +1827,7 @@ const Co = L((r) => {
1827
1827
  [a]
1828
1828
  ), d = se(() => e.options.find((f) => f.value === n), [e.options, n]);
1829
1829
  return /* @__PURE__ */ p(
1830
- Re,
1830
+ Me,
1831
1831
  {
1832
1832
  size: t,
1833
1833
  inputId: e.identifier,
@@ -1870,7 +1870,7 @@ const Co = L((r) => {
1870
1870
  );
1871
1871
  });
1872
1872
  Co.displayName = "SelectFieldInput";
1873
- class Pt extends Qr {
1873
+ class Ft extends Qr {
1874
1874
  constructor(t) {
1875
1875
  const { placeholder: n, ...i } = t;
1876
1876
  super(i);
@@ -1888,7 +1888,7 @@ class Pt extends Qr {
1888
1888
  };
1889
1889
  }
1890
1890
  duplicate(t) {
1891
- return new Pt({
1891
+ return new Ft({
1892
1892
  ...this.getOptions(),
1893
1893
  identifier: t
1894
1894
  });
@@ -1898,7 +1898,7 @@ class Pt extends Qr {
1898
1898
  this.placeholder = n, super.setOptions(t);
1899
1899
  }
1900
1900
  static deserialize(t) {
1901
- return new Pt(t);
1901
+ return new Ft(t);
1902
1902
  }
1903
1903
  serializeValue(t) {
1904
1904
  return t;
@@ -1938,7 +1938,7 @@ const wo = L((r) => {
1938
1938
  a();
1939
1939
  }, [a]), d = se(() => Array.from({ length: e.length }, () => G()), [e.length]);
1940
1940
  return /* @__PURE__ */ p(
1941
- Re,
1941
+ Me,
1942
1942
  {
1943
1943
  size: t,
1944
1944
  inputId: e.identifier,
@@ -2002,7 +2002,7 @@ class Kt extends tt {
2002
2002
  showDirectly: !1
2003
2003
  },
2004
2004
  {
2005
- field: new Pt({
2005
+ field: new Ft({
2006
2006
  label: "Type",
2007
2007
  required: !1,
2008
2008
  identifier: `${n}validationType`,
@@ -2105,14 +2105,14 @@ const $t = {
2105
2105
  icon: Rl
2106
2106
  }
2107
2107
  }, wr = Object.keys($t);
2108
- class Bt extends File {
2108
+ class Pt extends File {
2109
2109
  constructor(t, ...n) {
2110
2110
  super(...n);
2111
2111
  R(this, "uuid");
2112
2112
  this.uuid = t;
2113
2113
  }
2114
2114
  static from(t, n) {
2115
- return new Bt(t, [n], n.name, {
2115
+ return new Pt(t, [n], n.name, {
2116
2116
  lastModified: n.lastModified,
2117
2117
  type: n.type
2118
2118
  });
@@ -2150,7 +2150,7 @@ class br extends Promise {
2150
2150
  }
2151
2151
  }
2152
2152
  function kc(r) {
2153
- return Array.isArray(r) ? r.every((e) => e instanceof br || e instanceof Bt) : !1;
2153
+ return Array.isArray(r) ? r.every((e) => e instanceof br || e instanceof Pt) : !1;
2154
2154
  }
2155
2155
  function li(r, e) {
2156
2156
  const t = new Set(r.map(({ uuid: i }) => i)), n = new Set(e.map(({ uuid: i }) => i));
@@ -2161,27 +2161,21 @@ const _o = L((r) => {
2161
2161
  return /* @__PURE__ */ _(
2162
2162
  pt,
2163
2163
  {
2164
- className: Ct(a, "p-0! relative flex h-48 w-full flex-col items-center"),
2164
+ className: kt(a, "p-0! relative flex h-48 w-full flex-col overflow-hidden"),
2165
2165
  ref: e,
2166
2166
  size: "xs",
2167
2167
  ...s,
2168
2168
  children: [
2169
2169
  !t && !n && /* @__PURE__ */ p("div", { className: "absolute inset-0 flex grow items-center justify-center", children: /* @__PURE__ */ p(ti, {}) }),
2170
- !!t && !n && /* @__PURE__ */ p("div", { className: "flex w-full grow items-center justify-center overflow-hidden bg-clip-padding p-3", children: /* @__PURE__ */ p(Sr, { className: "size-full max-w-full object-cover", file: t }) }),
2171
- /* @__PURE__ */ p(Ft, { size: "full" }),
2172
- (!!t || !!n) && /* @__PURE__ */ _(
2173
- "div",
2174
- {
2175
- className: Ct("flex w-full items-center gap-2 self-end p-3", {
2176
- "bg-transparent": !t
2177
- }),
2178
- children: [
2179
- n ? /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: ro }),
2180
- /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: n ?? (t == null ? void 0 : t.name) }),
2181
- i
2182
- ]
2183
- }
2184
- )
2170
+ !!t && !n && /* @__PURE__ */ p("div", { className: "flex grow items-center justify-center overflow-hidden p-3", children: /* @__PURE__ */ p(Sr, { className: "size-full max-w-full object-cover", file: t }) }),
2171
+ (!!t || !!n) && /* @__PURE__ */ _(Ie, { children: [
2172
+ /* @__PURE__ */ p(Vt, { size: "full" }),
2173
+ /* @__PURE__ */ _("div", { className: "flex w-full shrink-0 items-center gap-2 self-end p-3", children: [
2174
+ n ? /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: ro }),
2175
+ /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: n ?? (t == null ? void 0 : t.name) }),
2176
+ i
2177
+ ] })
2178
+ ] })
2185
2179
  ]
2186
2180
  }
2187
2181
  );
@@ -2197,27 +2191,21 @@ const Eo = L((r) => {
2197
2191
  return /* @__PURE__ */ _(
2198
2192
  pt,
2199
2193
  {
2200
- className: Ct(n, "p-0! relative flex h-48 w-full flex-col items-center"),
2194
+ className: kt(n, "p-0! relative flex h-48 w-full flex-col overflow-hidden"),
2201
2195
  ref: e,
2202
2196
  size: "xs",
2203
2197
  ...s,
2204
2198
  children: [
2205
2199
  !t && !i && /* @__PURE__ */ p("div", { className: "absolute inset-0 flex grow items-center justify-center", children: /* @__PURE__ */ p(ti, {}) }),
2206
- !!t && !i && /* @__PURE__ */ p("div", { className: "flex w-full grow items-center justify-center overflow-hidden bg-clip-padding p-3", children: /* @__PURE__ */ p(Ao, { className: "size-full max-w-full object-cover", file: t, controls: !0 }) }),
2207
- /* @__PURE__ */ p(Ft, { size: "full" }),
2208
- (!!t || !!i) && /* @__PURE__ */ _(
2209
- "div",
2210
- {
2211
- className: Ct("flex w-full items-center gap-2 self-end p-3", {
2212
- "bg-transparent": !t
2213
- }),
2214
- children: [
2215
- i ? /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: Vc }),
2216
- /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: i ?? (t == null ? void 0 : t.name) }),
2217
- a
2218
- ]
2219
- }
2220
- )
2200
+ !!t && !i && /* @__PURE__ */ p("div", { className: "flex grow items-center justify-center overflow-hidden p-3", children: /* @__PURE__ */ p(Ao, { className: "size-full max-w-full object-cover", file: t, controls: !0 }) }),
2201
+ (!!t || !!i) && /* @__PURE__ */ _(Ie, { children: [
2202
+ /* @__PURE__ */ p(Vt, { size: "full" }),
2203
+ /* @__PURE__ */ _("div", { className: "flex w-full shrink-0 items-center gap-2 self-end p-3", children: [
2204
+ i ? /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: Vc }),
2205
+ /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: i ?? (t == null ? void 0 : t.name) }),
2206
+ a
2207
+ ] })
2208
+ ] })
2221
2209
  ]
2222
2210
  }
2223
2211
  );
@@ -2278,7 +2266,7 @@ const ci = L((r) => {
2278
2266
  /* @__PURE__ */ p(N, { icon: Ja }),
2279
2267
  " Download"
2280
2268
  ] }),
2281
- n ? null : /* @__PURE__ */ _(Le, { children: [
2269
+ n ? null : /* @__PURE__ */ _(Ie, { children: [
2282
2270
  /* @__PURE__ */ p(D.Separator, {}),
2283
2271
  /* @__PURE__ */ _(D.Item, { onSelect: d, children: [
2284
2272
  /* @__PURE__ */ p(N, { icon: Lt }),
@@ -2357,7 +2345,7 @@ const So = L((r) => {
2357
2345
  (w = c.current) == null || w.click();
2358
2346
  }, []), g = b(
2359
2347
  (w) => {
2360
- const S = Array.from(w.target.files ?? []).map((T) => Bt.from(G(), T)), O = {
2348
+ const S = Array.from(w.target.files ?? []).map((T) => Pt.from(G(), T)), O = {
2361
2349
  ...n,
2362
2350
  files: [...n.files, ...S]
2363
2351
  };
@@ -2382,7 +2370,7 @@ const So = L((r) => {
2382
2370
  }, [a, n]);
2383
2371
  const y = n.status && e.showNotesAndFilesOn.includes(n.status), m = `${e.identifier}-status`, C = `${e.identifier}-notes`, A = `${e.identifier}-files`;
2384
2372
  return /* @__PURE__ */ p(
2385
- Re,
2373
+ Me,
2386
2374
  {
2387
2375
  size: t,
2388
2376
  inputId: e.identifier,
@@ -2413,7 +2401,7 @@ const So = L((r) => {
2413
2401
  })
2414
2402
  }
2415
2403
  ),
2416
- y && /* @__PURE__ */ _(Le, { children: [
2404
+ y && /* @__PURE__ */ _(Ie, { children: [
2417
2405
  /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
2418
2406
  or,
2419
2407
  {
@@ -2499,7 +2487,7 @@ class Qt extends tt {
2499
2487
  const n = t && `${t}.`;
2500
2488
  return [
2501
2489
  {
2502
- field: new bt({
2490
+ field: new St({
2503
2491
  identifier: `${n}showNotesAndFilesOn`,
2504
2492
  label: "Show notes and files on",
2505
2493
  description: "Show the notes and files on desired statuses.",
@@ -2612,7 +2600,7 @@ const Io = L((r) => {
2612
2600
  o(null), a();
2613
2601
  }, [a, o]);
2614
2602
  return /* @__PURE__ */ p(
2615
- Re,
2603
+ Me,
2616
2604
  {
2617
2605
  size: t,
2618
2606
  inputId: e.identifier,
@@ -2655,7 +2643,7 @@ const Io = L((r) => {
2655
2643
  accentColor: "base",
2656
2644
  size: t,
2657
2645
  children: [
2658
- /* @__PURE__ */ p(N, { icon: It }),
2646
+ /* @__PURE__ */ p(N, { icon: bt }),
2659
2647
  "Clear"
2660
2648
  ]
2661
2649
  }
@@ -2743,7 +2731,7 @@ const Xc = ri(
2743
2731
  o(null), a();
2744
2732
  }, [a, o]), d = Array.from({ length: e.maxRating }, (f, h) => h + 1);
2745
2733
  return /* @__PURE__ */ p(
2746
- Re,
2734
+ Me,
2747
2735
  {
2748
2736
  size: t,
2749
2737
  inputId: e.identifier,
@@ -2773,7 +2761,7 @@ const Xc = ri(
2773
2761
  ))
2774
2762
  }
2775
2763
  ),
2776
- !l && n !== null && /* @__PURE__ */ p(ne, { onClick: u, type: "button", variant: "ghost", accentColor: "base", size: t, children: /* @__PURE__ */ p(N, { icon: It }) })
2764
+ !l && n !== null && /* @__PURE__ */ p(ne, { onClick: u, type: "button", variant: "ghost", accentColor: "base", size: t, children: /* @__PURE__ */ p(N, { icon: bt }) })
2777
2765
  ] })
2778
2766
  }
2779
2767
  );
@@ -3034,7 +3022,7 @@ var jc = /* @__PURE__ */ function() {
3034
3022
  }
3035
3023
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
3036
3024
  };
3037
- }(), Te = (
3025
+ }(), De = (
3038
3026
  /** @class */
3039
3027
  function(r) {
3040
3028
  eu(e, r);
@@ -3248,7 +3236,7 @@ var jc = /* @__PURE__ */ function() {
3248
3236
  return t === void 0 && (t = void 0), parseInt(e, t);
3249
3237
  }, r.MIN_VALUE_32_BITS = -2147483648, r.MAX_VALUE = Number.MAX_SAFE_INTEGER, r;
3250
3238
  }()
3251
- ), De = (
3239
+ ), Re = (
3252
3240
  /** @class */
3253
3241
  function() {
3254
3242
  function r(e, t) {
@@ -3701,7 +3689,7 @@ var Ee = (
3701
3689
  }, r.prototype.xor = function(e) {
3702
3690
  if (this.width !== e.getWidth() || this.height !== e.getHeight() || this.rowSize !== e.getRowSize())
3703
3691
  throw new H("input matrix dimensions do not match");
3704
- for (var t = new De(Math.floor(this.width / 32) + 1), n = this.rowSize, i = this.bits, a = 0, o = this.height; a < o; a++)
3692
+ for (var t = new Re(Math.floor(this.width / 32) + 1), n = this.rowSize, i = this.bits, a = 0, o = this.height; a < o; a++)
3705
3693
  for (var s = a * n, l = e.getRow(a, t).getBitArray(), c = 0; c < n; c++)
3706
3694
  i[s + c] ^= l[c];
3707
3695
  }, r.prototype.clear = function() {
@@ -3719,14 +3707,14 @@ var Ee = (
3719
3707
  for (var u = c * s, d = e; d < a; d++)
3720
3708
  l[u + Math.floor(d / 32)] |= 1 << (d & 31) & 4294967295;
3721
3709
  }, r.prototype.getRow = function(e, t) {
3722
- t == null || t.getSize() < this.width ? t = new De(this.width) : t.clear();
3710
+ t == null || t.getSize() < this.width ? t = new Re(this.width) : t.clear();
3723
3711
  for (var n = this.rowSize, i = this.bits, a = e * n, o = 0; o < n; o++)
3724
3712
  t.setBulk(o * 32, i[a + o]);
3725
3713
  return t;
3726
3714
  }, r.prototype.setRow = function(e, t) {
3727
3715
  de.arraycopy(t.getBitArray(), 0, this.bits, e * this.rowSize, this.rowSize);
3728
3716
  }, r.prototype.rotate180 = function() {
3729
- for (var e = this.getWidth(), t = this.getHeight(), n = new De(e), i = new De(e), a = 0, o = Math.floor((t + 1) / 2); a < o; a++)
3717
+ for (var e = this.getWidth(), t = this.getHeight(), n = new Re(e), i = new Re(e), a = 0, o = Math.floor((t + 1) / 2); a < o; a++)
3730
3718
  n = this.getRow(a, n), i = this.getRow(t - 1 - a, i), n.reverse(), i.reverse(), this.setRow(a, i), this.setRow(t - 1 - a, n);
3731
3719
  }, r.prototype.getEnclosingRectangle = function() {
3732
3720
  for (var e = this.width, t = this.height, n = this.rowSize, i = this.bits, a = e, o = t, s = -1, l = -1, c = 0; c < t; c++)
@@ -3841,7 +3829,7 @@ var Ee = (
3841
3829
  }
3842
3830
  return e.prototype.getBlackRow = function(t, n) {
3843
3831
  var i = this.getLuminanceSource(), a = i.getWidth();
3844
- n == null || n.getSize() < a ? n = new De(a) : n.clear(), this.initArrays(a);
3832
+ n == null || n.getSize() < a ? n = new Re(a) : n.clear(), this.initArrays(a);
3845
3833
  for (var o = i.getRow(t, this.luminances), s = this.buckets, l = 0; l < a; l++)
3846
3834
  s[(o[l] & 255) >> e.LUMINANCE_SHIFT]++;
3847
3835
  var c = e.estimateBlackPoint(s);
@@ -4644,7 +4632,7 @@ var Ee = (
4644
4632
  var l = i.decode(e);
4645
4633
  o(l);
4646
4634
  } catch (f) {
4647
- var c = t && f instanceof I, u = f instanceof Te || f instanceof M, d = u && n;
4635
+ var c = t && f instanceof I, u = f instanceof De || f instanceof M, d = u && n;
4648
4636
  if (c || d)
4649
4637
  return setTimeout(a, i._timeBetweenDecodingAttempts, o, s);
4650
4638
  s(f);
@@ -4666,7 +4654,7 @@ var Ee = (
4666
4654
  t(a, null), setTimeout(i, n.timeBetweenScansMillis);
4667
4655
  } catch (l) {
4668
4656
  t(null, l);
4669
- var o = l instanceof Te || l instanceof M, s = l instanceof I;
4657
+ var o = l instanceof De || l instanceof M, s = l instanceof I;
4670
4658
  (o || s) && setTimeout(i, n._timeBetweenDecodingAttempts);
4671
4659
  }
4672
4660
  };
@@ -4796,7 +4784,7 @@ var Hn;
4796
4784
  (function(r) {
4797
4785
  r[r.OTHER = 0] = "OTHER", r[r.ORIENTATION = 1] = "ORIENTATION", r[r.BYTE_SEGMENTS = 2] = "BYTE_SEGMENTS", r[r.ERROR_CORRECTION_LEVEL = 3] = "ERROR_CORRECTION_LEVEL", r[r.ISSUE_NUMBER = 4] = "ISSUE_NUMBER", r[r.SUGGESTED_PRICE = 5] = "SUGGESTED_PRICE", r[r.POSSIBLE_COUNTRY = 6] = "POSSIBLE_COUNTRY", r[r.UPC_EAN_EXTENSION = 7] = "UPC_EAN_EXTENSION", r[r.PDF417_EXTRA_METADATA = 8] = "PDF417_EXTRA_METADATA", r[r.STRUCTURED_APPEND_SEQUENCE = 9] = "STRUCTURED_APPEND_SEQUENCE", r[r.STRUCTURED_APPEND_PARITY = 10] = "STRUCTURED_APPEND_PARITY";
4798
4786
  })(Hn || (Hn = {}));
4799
- const ke = Hn;
4787
+ const Le = Hn;
4800
4788
  var en = (
4801
4789
  /** @class */
4802
4790
  function() {
@@ -4850,7 +4838,7 @@ var en = (
4850
4838
  return e ^ t;
4851
4839
  }, r;
4852
4840
  }()
4853
- ), Et = (
4841
+ ), At = (
4854
4842
  /** @class */
4855
4843
  function() {
4856
4844
  function r(e, t) {
@@ -5006,7 +4994,7 @@ var en = (
5006
4994
  a.expTable = o;
5007
4995
  for (var c = new Int32Array(n), l = 0; l < n - 1; l++)
5008
4996
  c[o[l]] = l;
5009
- return a.logTable = c, a.zero = new Et(a, Int32Array.from([0])), a.one = new Et(a, Int32Array.from([1])), a;
4997
+ return a.logTable = c, a.zero = new At(a, Int32Array.from([0])), a.one = new At(a, Int32Array.from([1])), a;
5010
4998
  }
5011
4999
  return e.prototype.getZero = function() {
5012
5000
  return this.zero;
@@ -5018,7 +5006,7 @@ var en = (
5018
5006
  if (n === 0)
5019
5007
  return this.zero;
5020
5008
  var i = new Int32Array(t + 1);
5021
- return i[0] = n, new Et(this, i);
5009
+ return i[0] = n, new At(this, i);
5022
5010
  }, e.prototype.inverse = function(t) {
5023
5011
  if (t === 0)
5024
5012
  throw new To();
@@ -5090,12 +5078,12 @@ var en = (
5090
5078
  this.field = e;
5091
5079
  }
5092
5080
  return r.prototype.decode = function(e, t) {
5093
- for (var n = this.field, i = new Et(n, e), a = new Int32Array(t), o = !0, s = 0; s < t; s++) {
5081
+ for (var n = this.field, i = new At(n, e), a = new Int32Array(t), o = !0, s = 0; s < t; s++) {
5094
5082
  var l = i.evaluateAt(n.exp(s + n.getGeneratorBase()));
5095
5083
  a[a.length - 1 - s] = l, l !== 0 && (o = !1);
5096
5084
  }
5097
5085
  if (!o)
5098
- for (var c = new Et(n, a), u = this.runEuclideanAlgorithm(n.buildMonomial(t, 1), c, t), d = u[0], f = u[1], h = this.findErrorLocations(d), v = this.findErrorMagnitudes(f, h), s = 0; s < h.length; s++) {
5086
+ for (var c = new At(n, a), u = this.runEuclideanAlgorithm(n.buildMonomial(t, 1), c, t), d = u[0], f = u[1], h = this.findErrorLocations(d), v = this.findErrorMagnitudes(f, h), s = 0; s < h.length; s++) {
5099
5087
  var g = e.length - 1 - n.log(h[s]);
5100
5088
  if (g < 0)
5101
5089
  throw new Dr("Bad error location");
@@ -5144,10 +5132,10 @@ var en = (
5144
5132
  return i;
5145
5133
  }, r;
5146
5134
  }()
5147
- ), Pe;
5135
+ ), Be;
5148
5136
  (function(r) {
5149
5137
  r[r.UPPER = 0] = "UPPER", r[r.LOWER = 1] = "LOWER", r[r.MIXED = 2] = "MIXED", r[r.DIGIT = 3] = "DIGIT", r[r.PUNCT = 4] = "PUNCT", r[r.BINARY = 5] = "BINARY";
5150
- })(Pe || (Pe = {}));
5138
+ })(Be || (Be = {}));
5151
5139
  var zi = (
5152
5140
  /** @class */
5153
5141
  function() {
@@ -5160,8 +5148,8 @@ var zi = (
5160
5148
  }, r.highLevelDecode = function(e) {
5161
5149
  return this.getEncodedData(e);
5162
5150
  }, r.getEncodedData = function(e) {
5163
- for (var t = e.length, n = Pe.UPPER, i = Pe.UPPER, a = "", o = 0; o < t; )
5164
- if (i === Pe.BINARY) {
5151
+ for (var t = e.length, n = Be.UPPER, i = Be.UPPER, a = "", o = 0; o < t; )
5152
+ if (i === Be.BINARY) {
5165
5153
  if (t - o < 5)
5166
5154
  break;
5167
5155
  var s = r.readCode(e, o, 5);
@@ -5181,7 +5169,7 @@ var zi = (
5181
5169
  }
5182
5170
  i = n;
5183
5171
  } else {
5184
- var u = i === Pe.DIGIT ? 4 : 5;
5172
+ var u = i === Be.DIGIT ? 4 : 5;
5185
5173
  if (t - o < u)
5186
5174
  break;
5187
5175
  var c = r.readCode(e, o, u);
@@ -5193,30 +5181,30 @@ var zi = (
5193
5181
  }, r.getTable = function(e) {
5194
5182
  switch (e) {
5195
5183
  case "L":
5196
- return Pe.LOWER;
5184
+ return Be.LOWER;
5197
5185
  case "P":
5198
- return Pe.PUNCT;
5186
+ return Be.PUNCT;
5199
5187
  case "M":
5200
- return Pe.MIXED;
5188
+ return Be.MIXED;
5201
5189
  case "D":
5202
- return Pe.DIGIT;
5190
+ return Be.DIGIT;
5203
5191
  case "B":
5204
- return Pe.BINARY;
5192
+ return Be.BINARY;
5205
5193
  case "U":
5206
5194
  default:
5207
- return Pe.UPPER;
5195
+ return Be.UPPER;
5208
5196
  }
5209
5197
  }, r.getCharacter = function(e, t) {
5210
5198
  switch (e) {
5211
- case Pe.UPPER:
5199
+ case Be.UPPER:
5212
5200
  return r.UPPER_TABLE[t];
5213
- case Pe.LOWER:
5201
+ case Be.LOWER:
5214
5202
  return r.LOWER_TABLE[t];
5215
- case Pe.MIXED:
5203
+ case Be.MIXED:
5216
5204
  return r.MIXED_TABLE[t];
5217
- case Pe.PUNCT:
5205
+ case Be.PUNCT:
5218
5206
  return r.PUNCT_TABLE[t];
5219
- case Pe.DIGIT:
5207
+ case Be.DIGIT:
5220
5208
  return r.DIGIT_TABLE[t];
5221
5209
  default:
5222
5210
  throw new Ir("Bad table");
@@ -5947,9 +5935,9 @@ var zi = (
5947
5935
  throw n ?? d;
5948
5936
  }
5949
5937
  var l = new We(o.getText(), o.getRawBytes(), o.getNumBits(), a, P.AZTEC, de.currentTimeMillis()), c = o.getByteSegments();
5950
- c != null && l.putMetadata(ke.BYTE_SEGMENTS, c);
5938
+ c != null && l.putMetadata(Le.BYTE_SEGMENTS, c);
5951
5939
  var u = o.getECLevel();
5952
- return u != null && l.putMetadata(ke.ERROR_CORRECTION_LEVEL, u), l;
5940
+ return u != null && l.putMetadata(Le.ERROR_CORRECTION_LEVEL, u), l;
5953
5941
  }, r.prototype.reportFoundResultPoints = function(e, t) {
5954
5942
  if (e != null) {
5955
5943
  var n = e.get(ve.NEED_RESULT_POINT_CALLBACK);
@@ -5995,7 +5983,7 @@ var be = (
5995
5983
  var n = t && t.get(ve.TRY_HARDER) === !0;
5996
5984
  if (n && e.isRotateSupported()) {
5997
5985
  var i = e.rotateCounterClockwise(), a = this.doDecode(i, t), o = a.getResultMetadata(), s = 270;
5998
- o !== null && o.get(ke.ORIENTATION) === !0 && (s = s + o.get(ke.ORIENTATION) % 360), a.putMetadata(ke.ORIENTATION, s);
5986
+ o !== null && o.get(Le.ORIENTATION) === !0 && (s = s + o.get(Le.ORIENTATION) % 360), a.putMetadata(Le.ORIENTATION, s);
5999
5987
  var l = a.getResultPoints();
6000
5988
  if (l !== null)
6001
5989
  for (var c = i.getHeight(), u = 0; u < l.length; u++)
@@ -6006,7 +5994,7 @@ var be = (
6006
5994
  }
6007
5995
  }, r.prototype.reset = function() {
6008
5996
  }, r.prototype.doDecode = function(e, t) {
6009
- var n = e.getWidth(), i = e.getHeight(), a = new De(n), o = t && t.get(ve.TRY_HARDER) === !0, s = Math.max(1, i >> (o ? 8 : 5)), l;
5997
+ var n = e.getWidth(), i = e.getHeight(), a = new Re(n), o = t && t.get(ve.TRY_HARDER) === !0, s = Math.max(1, i >> (o ? 8 : 5)), l;
6010
5998
  o ? l = i : l = 15;
6011
5999
  for (var c = Math.trunc(i / 2), u = 0; u < l; u++) {
6012
6000
  var d = Math.trunc((u + 1) / 2), f = (u & 1) === 0, h = c + s * (f ? d : -d);
@@ -6027,7 +6015,7 @@ var be = (
6027
6015
  try {
6028
6016
  var w = g.decodeRow(h, a, t);
6029
6017
  if (C === 1) {
6030
- w.putMetadata(ke.ORIENTATION, 180);
6018
+ w.putMetadata(Le.ORIENTATION, 180);
6031
6019
  var S = w.getResultPoints();
6032
6020
  S !== null && (S[0] = new k(n - S[0].getX() - 1, S[0].getY()), S[1] = new k(n - S[1].getX() - 1, S[1].getY()));
6033
6021
  }
@@ -6242,15 +6230,15 @@ var be = (
6242
6230
  if (g = n.getNextUnset(g), !n.isRange(g, Math.min(n.getSize(), g + (g - v) / 2), !1))
6243
6231
  throw new I();
6244
6232
  if (A -= w * m, A % 103 !== m)
6245
- throw new Te();
6233
+ throw new De();
6246
6234
  var U = h.length;
6247
6235
  if (U === 0)
6248
6236
  throw new I();
6249
6237
  U > 0 && S && (u === e.CODE_CODE_C ? h = h.substring(0, U - 2) : h = h.substring(0, U - 1));
6250
- for (var Z = (o[1] + o[0]) / 2, X = v + z / 2, K = c.length, Fe = new Uint8Array(K), Ze = 0; Ze < K; Ze++)
6251
- Fe[Ze] = c[Ze];
6238
+ for (var Z = (o[1] + o[0]) / 2, X = v + z / 2, K = c.length, Pe = new Uint8Array(K), Ze = 0; Ze < K; Ze++)
6239
+ Pe[Ze] = c[Ze];
6252
6240
  var ur = [new k(Z, t), new k(X, t)];
6253
- return new We(h, Fe, 0, ur, P.CODE_128, (/* @__PURE__ */ new Date()).getTime());
6241
+ return new We(h, Pe, 0, ur, P.CODE_128, (/* @__PURE__ */ new Date()).getTime());
6254
6242
  }, e.CODE_PATTERNS = [
6255
6243
  Int32Array.from([2, 1, 2, 2, 2, 2]),
6256
6244
  Int32Array.from([2, 2, 2, 1, 2, 2]),
@@ -6443,7 +6431,7 @@ var be = (
6443
6431
  for (var T = this.decodeRowResult.length - 1, F = 0, z = 0; z < T; z++)
6444
6432
  F += e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(z));
6445
6433
  if (this.decodeRowResult.charAt(T) !== e.ALPHABET_STRING.charAt(F % 43))
6446
- throw new Te();
6434
+ throw new De();
6447
6435
  this.decodeRowResult = this.decodeRowResult.substring(0, T);
6448
6436
  }
6449
6437
  if (this.decodeRowResult.length === 0)
@@ -6795,7 +6783,7 @@ var be = (
6795
6783
  for (var a = 1, o = 0, s = n - 1; s >= 0; s--)
6796
6784
  o += a * e.ALPHABET_STRING.indexOf(t.charAt(s)), ++a > i && (a = 1);
6797
6785
  if (t.charAt(n) !== e.ALPHABET_STRING[o % 47])
6798
- throw new Te();
6786
+ throw new De();
6799
6787
  }, e.ALPHABET_STRING = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*", e.CHARACTER_ENCODINGS = [
6800
6788
  276,
6801
6789
  328,
@@ -7175,7 +7163,7 @@ var be = (
7175
7163
  if (e.length !== 5)
7176
7164
  return null;
7177
7165
  var t = r.parseExtension5String(e);
7178
- return t == null ? null : /* @__PURE__ */ new Map([[ke.SUGGESTED_PRICE, t]]);
7166
+ return t == null ? null : /* @__PURE__ */ new Map([[Le.SUGGESTED_PRICE, t]]);
7179
7167
  }, r.parseExtension5String = function(e) {
7180
7168
  var t;
7181
7169
  switch (e.charAt(0)) {
@@ -7253,7 +7241,7 @@ var be = (
7253
7241
  throw new I();
7254
7242
  return l;
7255
7243
  }, r.parseExtensionString = function(e) {
7256
- return e.length !== 2 ? null : /* @__PURE__ */ new Map([[ke.ISSUE_NUMBER, parseInt(e)]]);
7244
+ return e.length !== 2 ? null : /* @__PURE__ */ new Map([[Le.ISSUE_NUMBER, parseInt(e)]]);
7257
7245
  }, r;
7258
7246
  }()
7259
7247
  ), ku = (
@@ -7326,11 +7314,11 @@ var be = (
7326
7314
  if (y.length < 8)
7327
7315
  throw new M();
7328
7316
  if (!e.checkChecksum(y))
7329
- throw new Te();
7317
+ throw new De();
7330
7318
  var m = (a[1] + a[0]) / 2, C = (f[1] + f[0]) / 2, A = this.getBarcodeFormat(), w = [new k(m, t), new k(C, t)], S = new We(y, null, 0, w, A, (/* @__PURE__ */ new Date()).getTime()), O = 0;
7331
7319
  try {
7332
7320
  var T = ku.decodeRow(t, n, f[1]);
7333
- S.putMetadata(ke.UPC_EAN_EXTENSION, T.getText()), S.putAllMetadata(T.getResultMetadata()), S.addResultPoints(T.getResultPoints()), O = T.getText().length;
7321
+ S.putMetadata(Le.UPC_EAN_EXTENSION, T.getText()), S.putAllMetadata(T.getResultMetadata()), S.addResultPoints(T.getResultPoints()), O = T.getText().length;
7334
7322
  } catch {
7335
7323
  }
7336
7324
  var F = i == null ? null : i.get(ve.ALLOWED_EAN_EXTENSIONS);
@@ -7865,7 +7853,7 @@ var be = (
7865
7853
  }
7866
7854
  };
7867
7855
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
7868
- }, Tt = (
7856
+ }, Nt = (
7869
7857
  /** @class */
7870
7858
  function(r) {
7871
7859
  ju(e, r);
@@ -8027,7 +8015,7 @@ var be = (
8027
8015
  return r.buildBitArray = function(e) {
8028
8016
  var t = e.length * 2 - 1;
8029
8017
  e[e.length - 1].getRightChar() == null && (t -= 1);
8030
- for (var n = 12 * t, i = new De(n), a = 0, o = e[0], s = o.getRightChar().getValue(), l = 11; l >= 0; --l)
8018
+ for (var n = 12 * t, i = new Re(n), a = 0, o = e[0], s = o.getRightChar().getValue(), l = 11; l >= 0; --l)
8031
8019
  (s & 1 << l) !== 0 && i.set(a), a++;
8032
8020
  for (var l = 1; l < e.length; ++l) {
8033
8021
  for (var c = e[l], u = c.getLeftChar().getValue(), d = 11; d >= 0; --d)
@@ -8039,7 +8027,7 @@ var be = (
8039
8027
  return i;
8040
8028
  }, r;
8041
8029
  }()
8042
- ), Ot = (
8030
+ ), It = (
8043
8031
  /** @class */
8044
8032
  function() {
8045
8033
  function r(e, t) {
@@ -8105,7 +8093,7 @@ var be = (
8105
8093
  }
8106
8094
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
8107
8095
  };
8108
- }(), Nt = (
8096
+ }(), Ot = (
8109
8097
  /** @class */
8110
8098
  function(r) {
8111
8099
  Ju(e, r);
@@ -8431,7 +8419,7 @@ var be = (
8431
8419
  }, r.prototype.decodeGeneralPurposeField = function(e, t) {
8432
8420
  this.buffer.setLengthToZero(), t != null && this.buffer.append(t), this.current.setPosition(e);
8433
8421
  var n = this.parseBlocks();
8434
- return n != null && n.isRemaining() ? new Nt(this.current.getPosition(), this.buffer.toString(), n.getRemainingValue()) : new Nt(this.current.getPosition(), this.buffer.toString());
8422
+ return n != null && n.isRemaining() ? new Ot(this.current.getPosition(), this.buffer.toString(), n.getRemainingValue()) : new Ot(this.current.getPosition(), this.buffer.toString());
8435
8423
  }, r.prototype.parseBlocks = function() {
8436
8424
  var e, t;
8437
8425
  do {
@@ -8447,35 +8435,35 @@ var be = (
8447
8435
  var e = this.decodeNumeric(this.current.getPosition());
8448
8436
  if (this.current.setPosition(e.getNewPosition()), e.isFirstDigitFNC1()) {
8449
8437
  var t = void 0;
8450
- return e.isSecondDigitFNC1() ? t = new Nt(this.current.getPosition(), this.buffer.toString()) : t = new Nt(this.current.getPosition(), this.buffer.toString(), e.getSecondDigit()), new Ot(!0, t);
8438
+ return e.isSecondDigitFNC1() ? t = new Ot(this.current.getPosition(), this.buffer.toString()) : t = new Ot(this.current.getPosition(), this.buffer.toString(), e.getSecondDigit()), new It(!0, t);
8451
8439
  }
8452
8440
  if (this.buffer.append(e.getFirstDigit()), e.isSecondDigitFNC1()) {
8453
- var t = new Nt(this.current.getPosition(), this.buffer.toString());
8454
- return new Ot(!0, t);
8441
+ var t = new Ot(this.current.getPosition(), this.buffer.toString());
8442
+ return new It(!0, t);
8455
8443
  }
8456
8444
  this.buffer.append(e.getSecondDigit());
8457
8445
  }
8458
- return this.isNumericToAlphaNumericLatch(this.current.getPosition()) && (this.current.setAlpha(), this.current.incrementPosition(4)), new Ot(!1);
8446
+ return this.isNumericToAlphaNumericLatch(this.current.getPosition()) && (this.current.setAlpha(), this.current.incrementPosition(4)), new It(!1);
8459
8447
  }, r.prototype.parseIsoIec646Block = function() {
8460
8448
  for (; this.isStillIsoIec646(this.current.getPosition()); ) {
8461
8449
  var e = this.decodeIsoIec646(this.current.getPosition());
8462
8450
  if (this.current.setPosition(e.getNewPosition()), e.isFNC1()) {
8463
- var t = new Nt(this.current.getPosition(), this.buffer.toString());
8464
- return new Ot(!0, t);
8451
+ var t = new Ot(this.current.getPosition(), this.buffer.toString());
8452
+ return new It(!0, t);
8465
8453
  }
8466
8454
  this.buffer.append(e.getValue());
8467
8455
  }
8468
- return this.isAlphaOr646ToNumericLatch(this.current.getPosition()) ? (this.current.incrementPosition(3), this.current.setNumeric()) : this.isAlphaTo646ToAlphaLatch(this.current.getPosition()) && (this.current.getPosition() + 5 < this.information.getSize() ? this.current.incrementPosition(5) : this.current.setPosition(this.information.getSize()), this.current.setAlpha()), new Ot(!1);
8456
+ return this.isAlphaOr646ToNumericLatch(this.current.getPosition()) ? (this.current.incrementPosition(3), this.current.setNumeric()) : this.isAlphaTo646ToAlphaLatch(this.current.getPosition()) && (this.current.getPosition() + 5 < this.information.getSize() ? this.current.incrementPosition(5) : this.current.setPosition(this.information.getSize()), this.current.setAlpha()), new It(!1);
8469
8457
  }, r.prototype.parseAlphaBlock = function() {
8470
8458
  for (; this.isStillAlpha(this.current.getPosition()); ) {
8471
8459
  var e = this.decodeAlphanumeric(this.current.getPosition());
8472
8460
  if (this.current.setPosition(e.getNewPosition()), e.isFNC1()) {
8473
- var t = new Nt(this.current.getPosition(), this.buffer.toString());
8474
- return new Ot(!0, t);
8461
+ var t = new Ot(this.current.getPosition(), this.buffer.toString());
8462
+ return new It(!0, t);
8475
8463
  }
8476
8464
  this.buffer.append(e.getValue());
8477
8465
  }
8478
- return this.isAlphaOr646ToNumericLatch(this.current.getPosition()) ? (this.current.incrementPosition(3), this.current.setNumeric()) : this.isAlphaTo646ToAlphaLatch(this.current.getPosition()) && (this.current.getPosition() + 5 < this.information.getSize() ? this.current.incrementPosition(5) : this.current.setPosition(this.information.getSize()), this.current.setIsoIec646()), new Ot(!1);
8466
+ return this.isAlphaOr646ToNumericLatch(this.current.getPosition()) ? (this.current.incrementPosition(3), this.current.setNumeric()) : this.isAlphaTo646ToAlphaLatch(this.current.getPosition()) && (this.current.getPosition() + 5 < this.information.getSize() ? this.current.incrementPosition(5) : this.current.setPosition(this.information.getSize()), this.current.setIsoIec646()), new It(!1);
8479
8467
  }, r.prototype.isStillIsoIec646 = function(e) {
8480
8468
  if (e + 5 > this.information.getSize())
8481
8469
  return !1;
@@ -8943,7 +8931,7 @@ var be = (
8943
8931
  }
8944
8932
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
8945
8933
  };
8946
- }(), wt = (
8934
+ }(), Ct = (
8947
8935
  /** @class */
8948
8936
  function(r) {
8949
8937
  xd(e, r);
@@ -8997,21 +8985,21 @@ function yd(r) {
8997
8985
  var n = kr.extractNumericValueFromBitArray(r, 1, 7);
8998
8986
  switch (n) {
8999
8987
  case 56:
9000
- return new wt(r, "310", "11");
8988
+ return new Ct(r, "310", "11");
9001
8989
  case 57:
9002
- return new wt(r, "320", "11");
8990
+ return new Ct(r, "320", "11");
9003
8991
  case 58:
9004
- return new wt(r, "310", "13");
8992
+ return new Ct(r, "310", "13");
9005
8993
  case 59:
9006
- return new wt(r, "320", "13");
8994
+ return new Ct(r, "320", "13");
9007
8995
  case 60:
9008
- return new wt(r, "310", "15");
8996
+ return new Ct(r, "310", "15");
9009
8997
  case 61:
9010
- return new wt(r, "320", "15");
8998
+ return new Ct(r, "320", "15");
9011
8999
  case 62:
9012
- return new wt(r, "310", "17");
9000
+ return new Ct(r, "310", "17");
9013
9001
  case 63:
9014
- return new wt(r, "320", "17");
9002
+ return new Ct(r, "320", "17");
9015
9003
  }
9016
9004
  } catch (i) {
9017
9005
  throw console.log(i), new Ir("unknown decoder: " + r);
@@ -9088,7 +9076,7 @@ var Qi = (
9088
9076
  }
9089
9077
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
9090
9078
  };
9091
- }(), _t = function(r) {
9079
+ }(), wt = function(r) {
9092
9080
  var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
9093
9081
  if (t) return t.call(r);
9094
9082
  if (r && typeof r.length == "number") return {
@@ -9150,7 +9138,7 @@ var Qi = (
9150
9138
  var s = this.rows[o];
9151
9139
  this.pairs.length = 0;
9152
9140
  try {
9153
- for (var l = (i = void 0, _t(t)), c = l.next(); !c.done; c = l.next()) {
9141
+ for (var l = (i = void 0, wt(t)), c = l.next(); !c.done; c = l.next()) {
9154
9142
  var u = c.value;
9155
9143
  this.pairs.push(u.getPairs());
9156
9144
  }
@@ -9179,7 +9167,7 @@ var Qi = (
9179
9167
  }, e.isValidSequence = function(t) {
9180
9168
  var n, i;
9181
9169
  try {
9182
- for (var a = _t(e.FINDER_PATTERN_SEQUENCES), o = a.next(); !o.done; o = a.next()) {
9170
+ for (var a = wt(e.FINDER_PATTERN_SEQUENCES), o = a.next(); !o.done; o = a.next()) {
9183
9171
  var s = o.value;
9184
9172
  if (!(t.length > s.length)) {
9185
9173
  for (var l = !0, c = 0; c < t.length; c++)
@@ -9214,15 +9202,15 @@ var Qi = (
9214
9202
  }, e.prototype.removePartialRows = function(t, n) {
9215
9203
  var i, a, o, s, l, c;
9216
9204
  try {
9217
- for (var u = _t(n), d = u.next(); !d.done; d = u.next()) {
9205
+ for (var u = wt(n), d = u.next(); !d.done; d = u.next()) {
9218
9206
  var f = d.value;
9219
9207
  if (f.getPairs().length !== t.length) {
9220
9208
  var h = !0;
9221
9209
  try {
9222
- for (var v = (o = void 0, _t(f.getPairs())), g = v.next(); !g.done; g = v.next()) {
9210
+ for (var v = (o = void 0, wt(f.getPairs())), g = v.next(); !g.done; g = v.next()) {
9223
9211
  var y = g.value, m = !1;
9224
9212
  try {
9225
- for (var C = (l = void 0, _t(t)), A = C.next(); !A.done; A = C.next()) {
9213
+ for (var C = (l = void 0, wt(t)), A = C.next(); !A.done; A = C.next()) {
9226
9214
  var w = A.value;
9227
9215
  if (Qi.equals(y, w)) {
9228
9216
  m = !0;
@@ -9263,13 +9251,13 @@ var Qi = (
9263
9251
  }, e.isPartialRow = function(t, n) {
9264
9252
  var i, a, o, s, l, c;
9265
9253
  try {
9266
- for (var u = _t(n), d = u.next(); !d.done; d = u.next()) {
9254
+ for (var u = wt(n), d = u.next(); !d.done; d = u.next()) {
9267
9255
  var f = d.value, h = !0;
9268
9256
  try {
9269
- for (var v = (o = void 0, _t(t)), g = v.next(); !g.done; g = v.next()) {
9257
+ for (var v = (o = void 0, wt(t)), g = v.next(); !g.done; g = v.next()) {
9270
9258
  var y = g.value, m = !1;
9271
9259
  try {
9272
- for (var C = (l = void 0, _t(f.getPairs())), A = C.next(); !A.done; A = C.next()) {
9260
+ for (var C = (l = void 0, wt(f.getPairs())), A = C.next(); !A.done; A = C.next()) {
9273
9261
  var w = A.value;
9274
9262
  if (y.equals(w)) {
9275
9263
  m = !0;
@@ -9450,7 +9438,7 @@ var Qi = (
9450
9438
  var U = T + z;
9451
9439
  if ((O & 1) !== 0 || O > 13 || O < 4)
9452
9440
  throw new I();
9453
- var Z = (13 - O) / 2, X = e.SYMBOL_WIDEST[Z], K = 9 - X, Fe = Gt.getRSSvalue(v, X, !0), Ze = Gt.getRSSvalue(g, K, !1), ur = e.EVEN_TOTAL_SUBSET[Z], _n = e.GSUM[Z], An = Fe * ur + Ze + _n;
9441
+ var Z = (13 - O) / 2, X = e.SYMBOL_WIDEST[Z], K = 9 - X, Pe = Gt.getRSSvalue(v, X, !0), Ze = Gt.getRSSvalue(g, K, !1), ur = e.EVEN_TOTAL_SUBSET[Z], _n = e.GSUM[Z], An = Pe * ur + Ze + _n;
9454
9442
  return new Wr(An, U);
9455
9443
  }, e.isNotA1left = function(t, n, i) {
9456
9444
  return !(t.getValue() === 0 && n && i);
@@ -9615,7 +9603,7 @@ var Qi = (
9615
9603
  e.FINDER_PAT_F
9616
9604
  ]
9617
9605
  ], e.MAX_PAIRS = 11, e;
9618
- }(Tt)
9606
+ }(Nt)
9619
9607
  ), _d = /* @__PURE__ */ function() {
9620
9608
  var r = function(e, t) {
9621
9609
  return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
@@ -9792,13 +9780,13 @@ var Qi = (
9792
9780
  if (i) {
9793
9781
  if ((A & 1) !== 0 || A > 12 || A < 4)
9794
9782
  throw new I();
9795
- var F = (12 - A) / 2, z = e.OUTSIDE_ODD_WIDEST[F], U = 9 - z, Z = Gt.getRSSvalue(f, z, !1), X = Gt.getRSSvalue(h, U, !0), K = e.OUTSIDE_EVEN_TOTAL_SUBSET[F], Fe = e.OUTSIDE_GSUM[F];
9796
- return new Wr(Z * K + X + Fe, T);
9783
+ var F = (12 - A) / 2, z = e.OUTSIDE_ODD_WIDEST[F], U = 9 - z, Z = Gt.getRSSvalue(f, z, !1), X = Gt.getRSSvalue(h, U, !0), K = e.OUTSIDE_EVEN_TOTAL_SUBSET[F], Pe = e.OUTSIDE_GSUM[F];
9784
+ return new Wr(Z * K + X + Pe, T);
9797
9785
  } else {
9798
9786
  if ((O & 1) !== 0 || O > 10 || O < 4)
9799
9787
  throw new I();
9800
- var F = (10 - O) / 2, z = e.INSIDE_ODD_WIDEST[F], U = 9 - z, Z = Gt.getRSSvalue(f, z, !0), X = Gt.getRSSvalue(h, U, !1), Ze = e.INSIDE_ODD_TOTAL_SUBSET[F], Fe = e.INSIDE_GSUM[F];
9801
- return new Wr(X * Ze + Z + Fe, T);
9788
+ var F = (10 - O) / 2, z = e.INSIDE_ODD_WIDEST[F], U = 9 - z, Z = Gt.getRSSvalue(f, z, !0), X = Gt.getRSSvalue(h, U, !1), Ze = e.INSIDE_ODD_TOTAL_SUBSET[F], Pe = e.INSIDE_GSUM[F];
9789
+ return new Wr(X * Ze + Z + Pe, T);
9802
9790
  }
9803
9791
  }, e.prototype.findFinderPattern = function(t, n) {
9804
9792
  var i = this.getDecodeFinderCounters();
@@ -9810,7 +9798,7 @@ var Qi = (
9810
9798
  i[l]++;
9811
9799
  else {
9812
9800
  if (l === 3) {
9813
- if (Tt.isFinderPattern(i))
9801
+ if (Nt.isFinderPattern(i))
9814
9802
  return [c, u];
9815
9803
  c += i[0] + i[1], i[0] = i[2], i[1] = i[3], i[2] = 0, i[3] = 0, l--;
9816
9804
  } else
@@ -9862,14 +9850,14 @@ var Qi = (
9862
9850
  if (o) {
9863
9851
  if (s)
9864
9852
  throw new I();
9865
- Tt.increment(this.getOddCounts(), this.getOddRoundingErrors());
9853
+ Nt.increment(this.getOddCounts(), this.getOddRoundingErrors());
9866
9854
  }
9867
- if (s && Tt.decrement(this.getOddCounts(), this.getOddRoundingErrors()), l) {
9855
+ if (s && Nt.decrement(this.getOddCounts(), this.getOddRoundingErrors()), l) {
9868
9856
  if (c)
9869
9857
  throw new I();
9870
- Tt.increment(this.getEvenCounts(), this.getOddRoundingErrors());
9858
+ Nt.increment(this.getEvenCounts(), this.getOddRoundingErrors());
9871
9859
  }
9872
- c && Tt.decrement(this.getEvenCounts(), this.getEvenRoundingErrors());
9860
+ c && Nt.decrement(this.getEvenCounts(), this.getEvenRoundingErrors());
9873
9861
  }, e.OUTSIDE_EVEN_TOTAL_SUBSET = [1, 10, 34, 70, 126], e.INSIDE_ODD_TOTAL_SUBSET = [4, 20, 48, 81], e.OUTSIDE_GSUM = [0, 161, 961, 2015, 2715], e.INSIDE_GSUM = [0, 336, 1036, 1516], e.OUTSIDE_ODD_WIDEST = [8, 6, 4, 3, 1], e.INSIDE_ODD_WIDEST = [2, 4, 6, 8], e.FINDER_PATTERNS = [
9874
9862
  Int32Array.from([3, 8, 2, 1]),
9875
9863
  Int32Array.from([3, 5, 5, 1]),
@@ -9881,7 +9869,7 @@ var Qi = (
9881
9869
  Int32Array.from([1, 5, 7, 1]),
9882
9870
  Int32Array.from([1, 3, 9, 1])
9883
9871
  ], e;
9884
- }(Tt)
9872
+ }(Nt)
9885
9873
  ), Sd = /* @__PURE__ */ function() {
9886
9874
  var r = function(e, t) {
9887
9875
  return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
@@ -10165,8 +10153,8 @@ var ea = function(r) {
10165
10153
  var f = d.value;
10166
10154
  l += f.getCount();
10167
10155
  }
10168
- } catch (Fe) {
10169
- n = { error: Fe };
10156
+ } catch (Pe) {
10157
+ n = { error: Pe };
10170
10158
  } finally {
10171
10159
  try {
10172
10160
  d && !d.done && (i = u.return) && i.call(u);
@@ -10181,8 +10169,8 @@ var ea = function(r) {
10181
10169
  var C = f.getDataCodewords(), A = s.getECCodewords() + C;
10182
10170
  h[v++] = new r(C, new Uint8Array(A));
10183
10171
  }
10184
- } catch (Fe) {
10185
- a = { error: Fe };
10172
+ } catch (Pe) {
10173
+ a = { error: Pe };
10186
10174
  } finally {
10187
10175
  try {
10188
10176
  y && !y.done && (o = g.return) && o.call(g);
@@ -10688,7 +10676,7 @@ var Td = (
10688
10676
  try {
10689
10677
  this.rsDecoder.decode(n, e.length - t);
10690
10678
  } catch {
10691
- throw new Te();
10679
+ throw new De();
10692
10680
  }
10693
10681
  for (var i = 0; i < t; i++)
10694
10682
  e[i] = n[i];
@@ -10777,9 +10765,9 @@ var Td = (
10777
10765
  n = this.decoder.decode(o.getBits()), i = o.getPoints();
10778
10766
  }
10779
10767
  var s = n.getRawBytes(), l = new We(n.getText(), s, 8 * s.length, i, P.DATA_MATRIX, de.currentTimeMillis()), c = n.getByteSegments();
10780
- c != null && l.putMetadata(ke.BYTE_SEGMENTS, c);
10768
+ c != null && l.putMetadata(Le.BYTE_SEGMENTS, c);
10781
10769
  var u = n.getECLevel();
10782
- return u != null && l.putMetadata(ke.ERROR_CORRECTION_LEVEL, u), l;
10770
+ return u != null && l.putMetadata(Le.ERROR_CORRECTION_LEVEL, u), l;
10783
10771
  }, r.prototype.reset = function() {
10784
10772
  }, r.extractPureBits = function(e) {
10785
10773
  var t = e.getTopLeftOnBit(), n = e.getBottomRightOnBit();
@@ -11018,7 +11006,7 @@ var Fd = (
11018
11006
  }
11019
11007
  };
11020
11008
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
11021
- }, Rt = (
11009
+ }, Dt = (
11022
11010
  /** @class */
11023
11011
  function() {
11024
11012
  function r(e, t) {
@@ -11160,10 +11148,10 @@ var Fd = (
11160
11148
  new r(40, Int32Array.from([6, 30, 58, 86, 114, 142, 170]), new E(30, new x(19, 118), new x(6, 119)), new E(28, new x(18, 47), new x(31, 48)), new E(30, new x(34, 24), new x(34, 25)), new E(30, new x(20, 15), new x(61, 16)))
11161
11149
  ], r;
11162
11150
  }()
11163
- ), Ie;
11151
+ ), Oe;
11164
11152
  (function(r) {
11165
11153
  r[r.DATA_MASK_000 = 0] = "DATA_MASK_000", r[r.DATA_MASK_001 = 1] = "DATA_MASK_001", r[r.DATA_MASK_010 = 2] = "DATA_MASK_010", r[r.DATA_MASK_011 = 3] = "DATA_MASK_011", r[r.DATA_MASK_100 = 4] = "DATA_MASK_100", r[r.DATA_MASK_101 = 5] = "DATA_MASK_101", r[r.DATA_MASK_110 = 6] = "DATA_MASK_110", r[r.DATA_MASK_111 = 7] = "DATA_MASK_111";
11166
- })(Ie || (Ie = {}));
11154
+ })(Oe || (Oe = {}));
11167
11155
  var ra = (
11168
11156
  /** @class */
11169
11157
  function() {
@@ -11178,52 +11166,52 @@ var ra = (
11178
11166
  /**
11179
11167
  * 000: mask bits for which (x + y) mod 2 == 0
11180
11168
  */
11181
- [Ie.DATA_MASK_000, new r(Ie.DATA_MASK_000, function(e, t) {
11169
+ [Oe.DATA_MASK_000, new r(Oe.DATA_MASK_000, function(e, t) {
11182
11170
  return (e + t & 1) === 0;
11183
11171
  })],
11184
11172
  /**
11185
11173
  * 001: mask bits for which x mod 2 == 0
11186
11174
  */
11187
- [Ie.DATA_MASK_001, new r(Ie.DATA_MASK_001, function(e, t) {
11175
+ [Oe.DATA_MASK_001, new r(Oe.DATA_MASK_001, function(e, t) {
11188
11176
  return (e & 1) === 0;
11189
11177
  })],
11190
11178
  /**
11191
11179
  * 010: mask bits for which y mod 3 == 0
11192
11180
  */
11193
- [Ie.DATA_MASK_010, new r(Ie.DATA_MASK_010, function(e, t) {
11181
+ [Oe.DATA_MASK_010, new r(Oe.DATA_MASK_010, function(e, t) {
11194
11182
  return t % 3 === 0;
11195
11183
  })],
11196
11184
  /**
11197
11185
  * 011: mask bits for which (x + y) mod 3 == 0
11198
11186
  */
11199
- [Ie.DATA_MASK_011, new r(Ie.DATA_MASK_011, function(e, t) {
11187
+ [Oe.DATA_MASK_011, new r(Oe.DATA_MASK_011, function(e, t) {
11200
11188
  return (e + t) % 3 === 0;
11201
11189
  })],
11202
11190
  /**
11203
11191
  * 100: mask bits for which (x/2 + y/3) mod 2 == 0
11204
11192
  */
11205
- [Ie.DATA_MASK_100, new r(Ie.DATA_MASK_100, function(e, t) {
11193
+ [Oe.DATA_MASK_100, new r(Oe.DATA_MASK_100, function(e, t) {
11206
11194
  return (Math.floor(e / 2) + Math.floor(t / 3) & 1) === 0;
11207
11195
  })],
11208
11196
  /**
11209
11197
  * 101: mask bits for which xy mod 2 + xy mod 3 == 0
11210
11198
  * equivalently, such that xy mod 6 == 0
11211
11199
  */
11212
- [Ie.DATA_MASK_101, new r(Ie.DATA_MASK_101, function(e, t) {
11200
+ [Oe.DATA_MASK_101, new r(Oe.DATA_MASK_101, function(e, t) {
11213
11201
  return e * t % 6 === 0;
11214
11202
  })],
11215
11203
  /**
11216
11204
  * 110: mask bits for which (xy mod 2 + xy mod 3) mod 2 == 0
11217
11205
  * equivalently, such that xy mod 6 < 3
11218
11206
  */
11219
- [Ie.DATA_MASK_110, new r(Ie.DATA_MASK_110, function(e, t) {
11207
+ [Oe.DATA_MASK_110, new r(Oe.DATA_MASK_110, function(e, t) {
11220
11208
  return e * t % 6 < 3;
11221
11209
  })],
11222
11210
  /**
11223
11211
  * 111: mask bits for which ((x+y)mod 2 + xy mod 3) mod 2 == 0
11224
11212
  * equivalently, such that (x + y + xy mod 3) mod 2 == 0
11225
11213
  */
11226
- [Ie.DATA_MASK_111, new r(Ie.DATA_MASK_111, function(e, t) {
11214
+ [Oe.DATA_MASK_111, new r(Oe.DATA_MASK_111, function(e, t) {
11227
11215
  return (e + t + e * t % 3 & 1) === 0;
11228
11216
  })]
11229
11217
  ]), r;
@@ -11257,18 +11245,18 @@ var ra = (
11257
11245
  return this.parsedVersion;
11258
11246
  var e = this.bitMatrix.getHeight(), t = Math.floor((e - 17) / 4);
11259
11247
  if (t <= 6)
11260
- return Rt.getVersionForNumber(t);
11248
+ return Dt.getVersionForNumber(t);
11261
11249
  for (var n = 0, i = e - 11, a = 5; a >= 0; a--)
11262
11250
  for (var o = e - 9; o >= i; o--)
11263
11251
  n = this.copyBit(o, a, n);
11264
- var s = Rt.decodeVersionInformation(n);
11252
+ var s = Dt.decodeVersionInformation(n);
11265
11253
  if (s !== null && s.getDimensionForVersion() === e)
11266
11254
  return this.parsedVersion = s, s;
11267
11255
  n = 0;
11268
11256
  for (var o = 5; o >= 0; o--)
11269
11257
  for (var a = e - 9; a >= i; a--)
11270
11258
  n = this.copyBit(o, a, n);
11271
- if (s = Rt.decodeVersionInformation(n), s !== null && s.getDimensionForVersion() === e)
11259
+ if (s = Dt.decodeVersionInformation(n), s !== null && s.getDimensionForVersion() === e)
11272
11260
  return this.parsedVersion = s, s;
11273
11261
  throw new M();
11274
11262
  }, r.prototype.copyBit = function(e, t, n) {
@@ -11653,7 +11641,7 @@ var he = (
11653
11641
  try {
11654
11642
  this.rsDecoder.decode(n, e.length - t);
11655
11643
  } catch {
11656
- throw new Te();
11644
+ throw new De();
11657
11645
  }
11658
11646
  for (var i = 0; i < t; i++)
11659
11647
  e[i] = /*(byte) */
@@ -12198,7 +12186,7 @@ var he = (
12198
12186
  var t = e.getTopLeft(), n = e.getTopRight(), i = e.getBottomLeft(), a = this.calculateModuleSize(t, n, i);
12199
12187
  if (a < 1)
12200
12188
  throw new I("No pattern found in proccess finder.");
12201
- var o = r.computeDimension(t, n, i, a), s = Rt.getProvisionalVersionForDimension(o), l = s.getDimensionForVersion() - 7, c = null;
12189
+ var o = r.computeDimension(t, n, i, a), s = Dt.getProvisionalVersionForDimension(o), l = s.getDimensionForVersion() - 7, c = null;
12202
12190
  if (s.getAlignmentPatternCenters().length > 0)
12203
12191
  for (var u = n.getX() - t.getX() + i.getX(), d = n.getY() - t.getY() + i.getY(), f = 1 - 3 / l, h = (
12204
12192
  /*(int) */
@@ -12326,9 +12314,9 @@ var he = (
12326
12314
  }
12327
12315
  n.getOther() instanceof Bo && n.getOther().applyMirroredCorrection(i);
12328
12316
  var s = new We(n.getText(), n.getRawBytes(), void 0, i, P.QR_CODE, void 0), l = n.getByteSegments();
12329
- l !== null && s.putMetadata(ke.BYTE_SEGMENTS, l);
12317
+ l !== null && s.putMetadata(Le.BYTE_SEGMENTS, l);
12330
12318
  var c = n.getECLevel();
12331
- return c !== null && s.putMetadata(ke.ERROR_CORRECTION_LEVEL, c), n.hasStructuredAppend() && (s.putMetadata(ke.STRUCTURED_APPEND_SEQUENCE, n.getStructuredAppendSequenceNumber()), s.putMetadata(ke.STRUCTURED_APPEND_PARITY, n.getStructuredAppendParity())), s;
12319
+ return c !== null && s.putMetadata(Le.ERROR_CORRECTION_LEVEL, c), n.hasStructuredAppend() && (s.putMetadata(Le.STRUCTURED_APPEND_SEQUENCE, n.getStructuredAppendSequenceNumber()), s.putMetadata(Le.STRUCTURED_APPEND_PARITY, n.getStructuredAppendParity())), s;
12332
12320
  }, r.prototype.reset = function() {
12333
12321
  }, r.extractPureBits = function(e) {
12334
12322
  var t = e.getTopLeftOnBit(), n = e.getBottomRightOnBit();
@@ -18147,7 +18135,7 @@ var he = (
18147
18135
  }
18148
18136
  };
18149
18137
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
18150
- }, Dt = (
18138
+ }, Tt = (
18151
18139
  /** @class */
18152
18140
  function() {
18153
18141
  function r(e, t) {
@@ -18352,7 +18340,7 @@ var he = (
18352
18340
  i.expTable[o] = a, a = a * n % t;
18353
18341
  for (var o = 0; o < t - 1; o++)
18354
18342
  i.logTable[i.expTable[o]] = o;
18355
- return i.zero = new Dt(i, new Int32Array([0])), i.one = new Dt(i, new Int32Array([1])), i;
18343
+ return i.zero = new Tt(i, new Int32Array([0])), i.one = new Tt(i, new Int32Array([1])), i;
18356
18344
  }
18357
18345
  return e.prototype.getZero = function() {
18358
18346
  return this.zero;
@@ -18364,7 +18352,7 @@ var he = (
18364
18352
  if (n === 0)
18365
18353
  return this.zero;
18366
18354
  var i = new Int32Array(t + 1);
18367
- return i[0] = n, new Dt(this, i);
18355
+ return i[0] = n, new Tt(this, i);
18368
18356
  }, e.PDF417_GF = new e(Q.NUMBER_OF_CODEWORDS, 3), e;
18369
18357
  }(nf)
18370
18358
  ), sf = function(r) {
@@ -18383,7 +18371,7 @@ var he = (
18383
18371
  this.field = of.PDF417_GF;
18384
18372
  }
18385
18373
  return r.prototype.decode = function(e, t, n) {
18386
- for (var i, a, o = new Dt(this.field, e), s = new Int32Array(t), l = !1, c = t; c > 0; c--) {
18374
+ for (var i, a, o = new Tt(this.field, e), s = new Int32Array(t), l = !1, c = t; c > 0; c--) {
18387
18375
  var u = o.evaluateAt(this.field.exp(c));
18388
18376
  s[t - c] = u, u !== 0 && (l = !0);
18389
18377
  }
@@ -18393,7 +18381,7 @@ var he = (
18393
18381
  if (n != null)
18394
18382
  try {
18395
18383
  for (var f = sf(n), h = f.next(); !h.done; h = f.next()) {
18396
- var v = h.value, g = this.field.exp(e.length - 1 - v), y = new Dt(this.field, new Int32Array([this.field.subtract(0, g), 1]));
18384
+ var v = h.value, g = this.field.exp(e.length - 1 - v), y = new Tt(this.field, new Int32Array([this.field.subtract(0, g), 1]));
18397
18385
  d = d.multiply(y);
18398
18386
  }
18399
18387
  } catch (F) {
@@ -18405,10 +18393,10 @@ var he = (
18405
18393
  if (i) throw i.error;
18406
18394
  }
18407
18395
  }
18408
- for (var m = new Dt(this.field, s), C = this.runEuclideanAlgorithm(this.field.buildMonomial(t, 1), m, t), A = C[0], w = C[1], S = this.findErrorLocations(A), O = this.findErrorMagnitudes(w, A, S), c = 0; c < S.length; c++) {
18396
+ for (var m = new Tt(this.field, s), C = this.runEuclideanAlgorithm(this.field.buildMonomial(t, 1), m, t), A = C[0], w = C[1], S = this.findErrorLocations(A), O = this.findErrorMagnitudes(w, A, S), c = 0; c < S.length; c++) {
18409
18397
  var T = e.length - 1 - this.field.log(S[c]);
18410
18398
  if (T < 0)
18411
- throw Te.getChecksumInstance();
18399
+ throw De.getChecksumInstance();
18412
18400
  e[T] = this.field.subtract(e[T], O[c]);
18413
18401
  }
18414
18402
  return S.length;
@@ -18420,7 +18408,7 @@ var he = (
18420
18408
  for (var a = e, o = t, s = this.field.getZero(), l = this.field.getOne(); o.getDegree() >= Math.round(n / 2); ) {
18421
18409
  var c = a, u = s;
18422
18410
  if (a = o, s = l, a.isZero())
18423
- throw Te.getChecksumInstance();
18411
+ throw De.getChecksumInstance();
18424
18412
  o = c;
18425
18413
  for (var d = this.field.getZero(), f = a.getCoefficient(a.getDegree()), h = this.field.inverse(f); o.getDegree() >= a.getDegree() && !o.isZero(); ) {
18426
18414
  var v = o.getDegree() - a.getDegree(), g = this.field.multiply(o.getCoefficient(o.getDegree()), h);
@@ -18430,19 +18418,19 @@ var he = (
18430
18418
  }
18431
18419
  var y = l.getCoefficient(0);
18432
18420
  if (y === 0)
18433
- throw Te.getChecksumInstance();
18421
+ throw De.getChecksumInstance();
18434
18422
  var m = this.field.inverse(y), C = l.multiply(m), A = o.multiply(m);
18435
18423
  return [C, A];
18436
18424
  }, r.prototype.findErrorLocations = function(e) {
18437
18425
  for (var t = e.getDegree(), n = new Int32Array(t), i = 0, a = 1; a < this.field.getSize() && i < t; a++)
18438
18426
  e.evaluateAt(a) === 0 && (n[i] = this.field.inverse(a), i++);
18439
18427
  if (i !== t)
18440
- throw Te.getChecksumInstance();
18428
+ throw De.getChecksumInstance();
18441
18429
  return n;
18442
18430
  }, r.prototype.findErrorMagnitudes = function(e, t, n) {
18443
18431
  for (var i = t.getDegree(), a = new Int32Array(i), o = 1; o <= i; o++)
18444
18432
  a[i - o] = this.field.multiply(o, t.getCoefficient(o));
18445
- for (var s = new Dt(this.field, a), l = n.length, c = new Int32Array(l), o = 0; o < l; o++) {
18433
+ for (var s = new Tt(this.field, a), l = n.length, c = new Int32Array(l), o = 0; o < l; o++) {
18446
18434
  var u = this.field.inverse(n[o]), d = this.field.subtract(0, e.evaluateAt(u)), f = this.field.inverse(s.evaluateAt(u));
18447
18435
  c[o] = this.field.multiply(d, f);
18448
18436
  }
@@ -19282,15 +19270,15 @@ function Lo() {
19282
19270
  throw new Error("Can't search globals for BigInt!");
19283
19271
  }
19284
19272
  var Mr;
19285
- function At(r) {
19273
+ function _t(r) {
19286
19274
  if (typeof Mr > "u" && (Mr = Lo()), Mr === null)
19287
19275
  throw new Error("BigInt is not supported!");
19288
19276
  return Mr(r);
19289
19277
  }
19290
19278
  function bf() {
19291
19279
  var r = [];
19292
- r[0] = At(1);
19293
- var e = At(900);
19280
+ r[0] = _t(1);
19281
+ var e = _t(900);
19294
19282
  r[1] = e;
19295
19283
  for (var t = 2; t < 16; t++)
19296
19284
  r[t] = r[t - 1] * e;
@@ -19604,7 +19592,7 @@ var If = (
19604
19592
  for (var f = 0; f < 6; ++f)
19605
19593
  o.write(
19606
19594
  /*(byte)*/
19607
- Number(At(l) >> At(8 * (5 - f)))
19595
+ Number(_t(l) >> _t(8 * (5 - f)))
19608
19596
  );
19609
19597
  l = 0, s = 0;
19610
19598
  }
@@ -19638,7 +19626,7 @@ var If = (
19638
19626
  for (var f = 0; f < 6; ++f)
19639
19627
  o.write(
19640
19628
  /*(byte)*/
19641
- Number(At(l) >> At(8 * (5 - f)))
19629
+ Number(_t(l) >> _t(8 * (5 - f)))
19642
19630
  );
19643
19631
  l = 0, s = 0;
19644
19632
  }
@@ -19666,8 +19654,8 @@ var If = (
19666
19654
  }
19667
19655
  return t;
19668
19656
  }, r.decodeBase900toBase10 = function(e, t) {
19669
- for (var n = At(0), i = 0; i < t; i++)
19670
- n += r.EXP900[t - i - 1] * At(e[i]);
19657
+ for (var n = _t(0), i = 0; i < t; i++)
19658
+ n += r.EXP900[t - i - 1] * _t(e[i]);
19671
19659
  var a = n.toString();
19672
19660
  if (a.charAt(0) !== "1")
19673
19661
  throw new M();
@@ -19819,20 +19807,20 @@ var If = (
19819
19807
  try {
19820
19808
  return r.decodeCodewords(t, e, n);
19821
19809
  } catch (u) {
19822
- var c = u instanceof Te;
19810
+ var c = u instanceof De;
19823
19811
  if (!c)
19824
19812
  throw u;
19825
19813
  }
19826
19814
  if (o.length === 0)
19827
- throw Te.getChecksumInstance();
19815
+ throw De.getChecksumInstance();
19828
19816
  for (var l = 0; l < o.length; l++)
19829
19817
  if (o[l] < a[l].length - 1) {
19830
19818
  o[l]++;
19831
19819
  break;
19832
19820
  } else if (o[l] = 0, l === o.length - 1)
19833
- throw Te.getChecksumInstance();
19821
+ throw De.getChecksumInstance();
19834
19822
  }
19835
- throw Te.getChecksumInstance();
19823
+ throw De.getChecksumInstance();
19836
19824
  }, r.createBarcodeMatrix = function(e) {
19837
19825
  for (var t, n, i, a, o = Array.from({ length: e.getBarcodeRowCount() }, function() {
19838
19826
  return new Array(e.getBarcodeColumnCount() + 2);
@@ -19953,7 +19941,7 @@ var If = (
19953
19941
  return o.setErrorsCorrected(a), o.setErasures(n.length), o;
19954
19942
  }, r.correctErrors = function(e, t, n) {
19955
19943
  if (t != null && t.length > n / 2 + r.MAX_ERRORS || n < 0 || n > r.MAX_EC_CODEWORDS)
19956
- throw Te.getChecksumInstance();
19944
+ throw De.getChecksumInstance();
19957
19945
  return r.errorCorrection.decode(e, n, t);
19958
19946
  }, r.verifyCodewordCount = function(e, t) {
19959
19947
  if (e.length < 4)
@@ -20013,16 +20001,16 @@ var If = (
20013
20001
  try {
20014
20002
  return r.decode(e, t, !0);
20015
20003
  } catch (n) {
20016
- throw n instanceof M || n instanceof Te ? I.getNotFoundInstance() : n;
20004
+ throw n instanceof M || n instanceof De ? I.getNotFoundInstance() : n;
20017
20005
  }
20018
20006
  }, r.decode = function(e, t, n) {
20019
20007
  var i, a, o = new Array(), s = tf.detectMultiple(e, t, n);
20020
20008
  try {
20021
20009
  for (var l = Nf(s.getPoints()), c = l.next(); !c.done; c = l.next()) {
20022
20010
  var u = c.value, d = Of.decode(s.getBits(), u[4], u[5], u[6], u[7], r.getMinCodewordWidth(u), r.getMaxCodewordWidth(u)), f = new We(d.getText(), d.getRawBytes(), void 0, u, P.PDF_417);
20023
- f.putMetadata(ke.ERROR_CORRECTION_LEVEL, d.getECLevel());
20011
+ f.putMetadata(Le.ERROR_CORRECTION_LEVEL, d.getECLevel());
20024
20012
  var h = d.getOther();
20025
- h != null && f.putMetadata(ke.PDF417_EXTRA_METADATA, h), o.push(f);
20013
+ h != null && f.putMetadata(Le.PDF417_EXTRA_METADATA, h), o.push(f);
20026
20014
  }
20027
20015
  } catch (v) {
20028
20016
  i = { error: v };
@@ -20224,13 +20212,13 @@ var zo = (
20224
20212
  /** @class */
20225
20213
  function() {
20226
20214
  function r(e) {
20227
- this.field = e, this.cachedGenerators = [], this.cachedGenerators.push(new Et(e, Int32Array.from([1])));
20215
+ this.field = e, this.cachedGenerators = [], this.cachedGenerators.push(new At(e, Int32Array.from([1])));
20228
20216
  }
20229
20217
  return r.prototype.buildGenerator = function(e) {
20230
20218
  var t = this.cachedGenerators;
20231
20219
  if (e >= t.length)
20232
20220
  for (var n = t[t.length - 1], i = this.field, a = t.length; a <= e; a++) {
20233
- var o = n.multiply(new Et(i, Int32Array.from([1, i.exp(a - 1 + i.getGeneratorBase())])));
20221
+ var o = n.multiply(new At(i, Int32Array.from([1, i.exp(a - 1 + i.getGeneratorBase())])));
20234
20222
  t.push(o), n = o;
20235
20223
  }
20236
20224
  return t[e];
@@ -20242,7 +20230,7 @@ var zo = (
20242
20230
  throw new H("No data bytes provided");
20243
20231
  var i = this.buildGenerator(t), a = new Int32Array(n);
20244
20232
  de.arraycopy(e, 0, a, 0, n);
20245
- var o = new Et(this.field, a);
20233
+ var o = new At(this.field, a);
20246
20234
  o = o.multiplyByMonomial(t, 1);
20247
20235
  for (var s = o.divide(i)[1], l = s.getCoefficients(), c = t - l.length, u = 0; u < c; u++)
20248
20236
  e[n + u] = 0;
@@ -20490,7 +20478,7 @@ var zo = (
20490
20478
  }, r.embedBasicPatterns = function(e, t) {
20491
20479
  r.embedPositionDetectionPatternsAndSeparators(t), r.embedDarkDotAtLeftBottomCorner(t), r.maybeEmbedPositionAdjustmentPatterns(e, t), r.embedTimingPatterns(t);
20492
20480
  }, r.embedTypeInfo = function(e, t, n) {
20493
- var i = new De();
20481
+ var i = new Re();
20494
20482
  r.makeTypeInfoBits(e, t, i);
20495
20483
  for (var a = 0, o = i.getSize(); a < o; ++a) {
20496
20484
  var s = i.get(i.getSize() - 1 - a), l = r.TYPE_INFO_COORDINATES[a], c = l[0], u = l[1];
@@ -20504,7 +20492,7 @@ var zo = (
20504
20492
  }
20505
20493
  }, r.maybeEmbedVersionInfo = function(e, t) {
20506
20494
  if (!(e.getVersionNumber() < 7)) {
20507
- var n = new De();
20495
+ var n = new Re();
20508
20496
  r.makeVersionInfoBits(e, n);
20509
20497
  for (var i = 17, a = 0; a < 6; ++a)
20510
20498
  for (var o = 0; o < 3; ++o) {
@@ -20544,7 +20532,7 @@ var zo = (
20544
20532
  n.appendBits(i, 5);
20545
20533
  var a = r.calculateBCHCode(i, r.TYPE_INFO_POLY);
20546
20534
  n.appendBits(a, 10);
20547
- var o = new De();
20535
+ var o = new Re();
20548
20536
  if (o.appendBits(r.TYPE_INFO_MASK_PATTERN, 15), n.xor(o), n.getSize() !== 15)
20549
20537
  throw new fe("should not happen but we got: " + n.getSize());
20550
20538
  }, r.makeVersionInfoBits = function(e, t) {
@@ -20704,24 +20692,24 @@ var zo = (
20704
20692
  n === void 0 && (n = null);
20705
20693
  var i = r.DEFAULT_BYTE_MODE_ENCODING, a = n !== null && n.get(Vr.CHARACTER_SET) !== void 0;
20706
20694
  a && (i = n.get(Vr.CHARACTER_SET).toString());
20707
- var o = this.chooseMode(e, i), s = new De();
20695
+ var o = this.chooseMode(e, i), s = new Re();
20708
20696
  if (o === he.BYTE && (a || r.DEFAULT_BYTE_MODE_ENCODING !== i)) {
20709
20697
  var l = Ee.getCharacterSetECIByName(i);
20710
20698
  l !== void 0 && this.appendECI(l, s);
20711
20699
  }
20712
20700
  this.appendModeInfo(o, s);
20713
- var c = new De();
20701
+ var c = new Re();
20714
20702
  this.appendBytes(e, o, c, i);
20715
20703
  var u;
20716
20704
  if (n !== null && n.get(Vr.QR_VERSION) !== void 0) {
20717
20705
  var d = Number.parseInt(n.get(Vr.QR_VERSION).toString(), 10);
20718
- u = Rt.getVersionForNumber(d);
20706
+ u = Dt.getVersionForNumber(d);
20719
20707
  var f = this.calculateBitsNeeded(o, s, c, u);
20720
20708
  if (!this.willFit(f, u, t))
20721
20709
  throw new fe("Data too big for requested version");
20722
20710
  } else
20723
20711
  u = this.recommendVersion(t, o, s, c);
20724
- var h = new De();
20712
+ var h = new Re();
20725
20713
  h.appendBitArray(s);
20726
20714
  var v = o === he.BYTE ? c.getSizeInBytes() : e.length;
20727
20715
  this.appendLengthInfo(v, u, o, h), h.appendBitArray(c);
@@ -20732,7 +20720,7 @@ var zo = (
20732
20720
  var A = u.getDimensionForVersion(), w = new Pf(A, A), S = this.chooseMaskPattern(m, t, u, w);
20733
20721
  return C.setMaskPattern(S), ca.buildMatrix(m, t, u, S, w), C.setMatrix(w), C;
20734
20722
  }, r.recommendVersion = function(e, t, n, i) {
20735
- var a = this.calculateBitsNeeded(t, n, i, Rt.getVersionForNumber(1)), o = this.chooseVersion(a, e), s = this.calculateBitsNeeded(t, n, i, o);
20723
+ var a = this.calculateBitsNeeded(t, n, i, Dt.getVersionForNumber(1)), o = this.chooseVersion(a, e), s = this.calculateBitsNeeded(t, n, i, o);
20736
20724
  return this.chooseVersion(s, e);
20737
20725
  }, r.calculateBitsNeeded = function(e, t, n, i) {
20738
20726
  return t.getSize() + e.getCharacterCountBits(i) + n.getSize();
@@ -20776,7 +20764,7 @@ var zo = (
20776
20764
  return o;
20777
20765
  }, r.chooseVersion = function(e, t) {
20778
20766
  for (var n = 1; n <= 40; n++) {
20779
- var i = Rt.getVersionForNumber(n);
20767
+ var i = Dt.getVersionForNumber(n);
20780
20768
  if (r.willFit(e, i, t))
20781
20769
  return i;
20782
20770
  }
@@ -20823,7 +20811,7 @@ var zo = (
20823
20811
  }
20824
20812
  if (n !== c)
20825
20813
  throw new fe("Data bytes does not match offset");
20826
- for (var A = new De(), h = 0; h < u; ++h)
20814
+ for (var A = new Re(), h = 0; h < u; ++h)
20827
20815
  try {
20828
20816
  for (var w = (a = void 0, ua(f)), S = w.next(); !S.done; S = w.next()) {
20829
20817
  var O = S.value, m = O.getDataBytes();
@@ -21221,7 +21209,7 @@ var da;
21221
21209
  (function(r) {
21222
21210
  r[r.FORCE_NONE = 0] = "FORCE_NONE", r[r.FORCE_SQUARE = 1] = "FORCE_SQUARE", r[r.FORCE_RECTANGLE = 2] = "FORCE_RECTANGLE";
21223
21211
  })(da || (da = {}));
21224
- var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 239, Qf = 240, Mn = 254, Jf = 254, ha = "[)>05", pa = "[)>06", va = "", oe = 0, Be = 1, Ye = 2, _e = 3, Oe = 4, Ge = 5, e1 = (
21212
+ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 239, Qf = 240, Mn = 254, Jf = 254, ha = "[)>05", pa = "[)>06", va = "", oe = 0, ke = 1, Ye = 2, _e = 3, Ne = 4, Ge = 5, e1 = (
21225
21213
  /** @class */
21226
21214
  function() {
21227
21215
  function r() {
@@ -21239,8 +21227,8 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21239
21227
  case Ge:
21240
21228
  e.writeCodeword(Wf), e.signalEncoderChange(Ge);
21241
21229
  return;
21242
- case Be:
21243
- e.writeCodeword(Uo), e.signalEncoderChange(Be);
21230
+ case ke:
21231
+ e.writeCodeword(Uo), e.signalEncoderChange(ke);
21244
21232
  return;
21245
21233
  case _e:
21246
21234
  e.writeCodeword(Zf), e.signalEncoderChange(_e);
@@ -21248,8 +21236,8 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21248
21236
  case Ye:
21249
21237
  e.writeCodeword(Kf), e.signalEncoderChange(Ye);
21250
21238
  break;
21251
- case Oe:
21252
- e.writeCodeword(Qf), e.signalEncoderChange(Oe);
21239
+ case Ne:
21240
+ e.writeCodeword(Qf), e.signalEncoderChange(Ne);
21253
21241
  break;
21254
21242
  default:
21255
21243
  throw new Error("Illegal mode: " + i);
@@ -21305,7 +21293,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21305
21293
  function r() {
21306
21294
  }
21307
21295
  return r.prototype.getEncodingMode = function() {
21308
- return Be;
21296
+ return ke;
21309
21297
  }, r.prototype.encodeMaximal = function(e) {
21310
21298
  for (var t = new $(), n = 0, i = e.pos, a = 0; e.hasMoreCharacters(); ) {
21311
21299
  var o = e.getCurrentChar();
@@ -21400,7 +21388,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21400
21388
  function r() {
21401
21389
  }
21402
21390
  return r.prototype.getEncodingMode = function() {
21403
- return Oe;
21391
+ return Ne;
21404
21392
  }, r.prototype.encode = function(e) {
21405
21393
  for (var t = new $(); e.hasMoreCharacters(); ) {
21406
21394
  var n = e.getCurrentChar();
@@ -21796,7 +21784,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21796
21784
  var u = l.getCodewordCount();
21797
21785
  l.updateSymbolInfo();
21798
21786
  var d = l.getSymbolInfo().getDataCapacity();
21799
- u < d && c !== oe && c !== Ge && c !== Oe && l.writeCodeword("þ");
21787
+ u < d && c !== oe && c !== Ge && c !== Ne && l.writeCodeword("þ");
21800
21788
  var f = l.getCodewords();
21801
21789
  for (f.length() < d && f.append(fa); f.length() < d; )
21802
21790
  f.append(this.randomize253State(f.length() + 1));
@@ -21807,7 +21795,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21807
21795
  for (var a = Math.min(t + 3, e.length), o = t; o < a; o++)
21808
21796
  if (!this.isNativeX12(e.charCodeAt(o)))
21809
21797
  return oe;
21810
- } else if (n === Oe && i === Oe) {
21798
+ } else if (n === Ne && i === Ne) {
21811
21799
  for (var a = Math.min(t + 4, e.length), o = t; o < a; o++)
21812
21800
  if (!this.isNativeEDIFACT(e.charCodeAt(o)))
21813
21801
  return oe;
@@ -21827,31 +21815,31 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21827
21815
  if (c === 1) {
21828
21816
  if (o[Ge] > 0)
21829
21817
  return Ge;
21830
- if (o[Oe] > 0)
21831
- return Oe;
21818
+ if (o[Ne] > 0)
21819
+ return Ne;
21832
21820
  if (o[Ye] > 0)
21833
21821
  return Ye;
21834
21822
  if (o[_e] > 0)
21835
21823
  return _e;
21836
21824
  }
21837
- return Be;
21825
+ return ke;
21838
21826
  }
21839
21827
  var u = e.charCodeAt(t + a);
21840
- if (a++, this.isDigit(u) ? i[oe] += 0.5 : this.isExtendedASCII(u) ? (i[oe] = Math.ceil(i[oe]), i[oe] += 2) : (i[oe] = Math.ceil(i[oe]), i[oe]++), this.isNativeC40(u) ? i[Be] += 2 / 3 : this.isExtendedASCII(u) ? i[Be] += 8 / 3 : i[Be] += 4 / 3, this.isNativeText(u) ? i[Ye] += 2 / 3 : this.isExtendedASCII(u) ? i[Ye] += 8 / 3 : i[Ye] += 4 / 3, this.isNativeX12(u) ? i[_e] += 2 / 3 : this.isExtendedASCII(u) ? i[_e] += 13 / 3 : i[_e] += 10 / 3, this.isNativeEDIFACT(u) ? i[Oe] += 3 / 4 : this.isExtendedASCII(u) ? i[Oe] += 17 / 4 : i[Oe] += 13 / 4, this.isSpecialB256(u) ? i[Ge] += 4 : i[Ge]++, a >= 4) {
21841
- if (Se.fill(o, 0), Se.fill(s, 0), this.findMinimums(i, s, j.MAX_VALUE, o), s[oe] < this.min(s[Ge], s[Be], s[Ye], s[_e], s[Oe]))
21828
+ if (a++, this.isDigit(u) ? i[oe] += 0.5 : this.isExtendedASCII(u) ? (i[oe] = Math.ceil(i[oe]), i[oe] += 2) : (i[oe] = Math.ceil(i[oe]), i[oe]++), this.isNativeC40(u) ? i[ke] += 2 / 3 : this.isExtendedASCII(u) ? i[ke] += 8 / 3 : i[ke] += 4 / 3, this.isNativeText(u) ? i[Ye] += 2 / 3 : this.isExtendedASCII(u) ? i[Ye] += 8 / 3 : i[Ye] += 4 / 3, this.isNativeX12(u) ? i[_e] += 2 / 3 : this.isExtendedASCII(u) ? i[_e] += 13 / 3 : i[_e] += 10 / 3, this.isNativeEDIFACT(u) ? i[Ne] += 3 / 4 : this.isExtendedASCII(u) ? i[Ne] += 17 / 4 : i[Ne] += 13 / 4, this.isSpecialB256(u) ? i[Ge] += 4 : i[Ge]++, a >= 4) {
21829
+ if (Se.fill(o, 0), Se.fill(s, 0), this.findMinimums(i, s, j.MAX_VALUE, o), s[oe] < this.min(s[Ge], s[ke], s[Ye], s[_e], s[Ne]))
21842
21830
  return oe;
21843
- if (s[Ge] < s[oe] || s[Ge] + 1 < this.min(s[Be], s[Ye], s[_e], s[Oe]))
21831
+ if (s[Ge] < s[oe] || s[Ge] + 1 < this.min(s[ke], s[Ye], s[_e], s[Ne]))
21844
21832
  return Ge;
21845
- if (s[Oe] + 1 < this.min(s[Ge], s[Be], s[Ye], s[_e], s[oe]))
21846
- return Oe;
21847
- if (s[Ye] + 1 < this.min(s[Ge], s[Be], s[Oe], s[_e], s[oe]))
21833
+ if (s[Ne] + 1 < this.min(s[Ge], s[ke], s[Ye], s[_e], s[oe]))
21834
+ return Ne;
21835
+ if (s[Ye] + 1 < this.min(s[Ge], s[ke], s[Ne], s[_e], s[oe]))
21848
21836
  return Ye;
21849
- if (s[_e] + 1 < this.min(s[Ge], s[Be], s[Oe], s[Ye], s[oe]))
21837
+ if (s[_e] + 1 < this.min(s[Ge], s[ke], s[Ne], s[Ye], s[oe]))
21850
21838
  return _e;
21851
- if (s[Be] + 1 < this.min(s[oe], s[Ge], s[Oe], s[Ye])) {
21852
- if (s[Be] < s[_e])
21853
- return Be;
21854
- if (s[Be] === s[_e]) {
21839
+ if (s[ke] + 1 < this.min(s[oe], s[Ge], s[Ne], s[Ye])) {
21840
+ if (s[ke] < s[_e])
21841
+ return ke;
21842
+ if (s[ke] === s[_e]) {
21855
21843
  for (var d = t + a + 1; d < e.length; ) {
21856
21844
  var f = e.charCodeAt(d);
21857
21845
  if (this.isX12TermSep(f))
@@ -21860,7 +21848,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21860
21848
  break;
21861
21849
  d++;
21862
21850
  }
21863
- return Be;
21851
+ return ke;
21864
21852
  }
21865
21853
  }
21866
21854
  }
@@ -22314,7 +22302,7 @@ var _1 = [
22314
22302
  "DIGIT",
22315
22303
  "MIXED",
22316
22304
  "PUNCT"
22317
- ], St = 0, $r = 1, it = 2, Ho = 3, ht = 4, A1 = new xi(null, 0, 0), Fn = [
22305
+ ], Et = 0, $r = 1, it = 2, Ho = 3, ht = 4, A1 = new xi(null, 0, 0), Fn = [
22318
22306
  Int32Array.from([
22319
22307
  0,
22320
22308
  (5 << 16) + 28,
@@ -22380,7 +22368,7 @@ function S1(r) {
22380
22368
  if (e) throw e.error;
22381
22369
  }
22382
22370
  }
22383
- return r[St][ht] = 0, r[$r][ht] = 0, r[$r][St] = 28, r[Ho][ht] = 0, r[it][ht] = 0, r[it][St] = 15, r;
22371
+ return r[Et][ht] = 0, r[$r][ht] = 0, r[$r][Et] = 28, r[Ho][ht] = 0, r[it][ht] = 0, r[it][Et] = 15, r;
22384
22372
  }
22385
22373
  var Go = S1(Se.createInt32Array(6, 6)), b1 = function(r) {
22386
22374
  var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
@@ -22419,8 +22407,8 @@ var Go = S1(Se.createInt32Array(6, 6)), b1 = function(r) {
22419
22407
  }, r.prototype.addBinaryShiftChar = function(e) {
22420
22408
  var t = this.token, n = this.mode, i = this.bitCount;
22421
22409
  if (this.mode === ht || this.mode === it) {
22422
- var a = Fn[n][St];
22423
- t = hr(t, a & 65535, a >> 16), i += a >> 16, n = St;
22410
+ var a = Fn[n][Et];
22411
+ t = hr(t, a & 65535, a >> 16), i += a >> 16, n = Et;
22424
22412
  }
22425
22413
  var o = this.binaryShiftByteCount === 0 || this.binaryShiftByteCount === 31 ? 18 : this.binaryShiftByteCount === 62 ? 9 : 8, s = new r(t, n, this.binaryShiftByteCount + 1, i + o);
22426
22414
  return s.binaryShiftByteCount === 2078 && (s = s.endBinaryShift(e + 1)), s;
@@ -22435,7 +22423,7 @@ var Go = S1(Se.createInt32Array(6, 6)), b1 = function(r) {
22435
22423
  }, r.prototype.toBitArray = function(e) {
22436
22424
  for (var t, n, i = [], a = this.endBinaryShift(e.length).token; a !== null; a = a.getPrevious())
22437
22425
  i.unshift(a);
22438
- var o = new De();
22426
+ var o = new Re();
22439
22427
  try {
22440
22428
  for (var s = b1(i), l = s.next(); !l.done; l = s.next()) {
22441
22429
  var c = l.value;
@@ -22455,14 +22443,14 @@ var Go = S1(Se.createInt32Array(6, 6)), b1 = function(r) {
22455
22443
  return Y.format("%s bits=%d bytes=%d", _1[this.mode], this.bitCount, this.binaryShiftByteCount);
22456
22444
  }, r.calculateBinaryShiftCost = function(e) {
22457
22445
  return e.binaryShiftByteCount > 62 ? 21 : e.binaryShiftByteCount > 31 ? 20 : e.binaryShiftByteCount > 0 ? 10 : 0;
22458
- }, r.INITIAL_STATE = new r(A1, St, 0, 0), r;
22446
+ }, r.INITIAL_STATE = new r(A1, Et, 0, 0), r;
22459
22447
  }()
22460
22448
  );
22461
22449
  function O1(r) {
22462
22450
  var e = Y.getCharCode(" "), t = Y.getCharCode("."), n = Y.getCharCode(",");
22463
- r[St][e] = 1;
22451
+ r[Et][e] = 1;
22464
22452
  for (var i = Y.getCharCode("Z"), a = Y.getCharCode("A"), o = a; o <= i; o++)
22465
- r[St][o] = o - a + 2;
22453
+ r[Et][o] = o - a + 2;
22466
22454
  r[$r][e] = 1;
22467
22455
  for (var s = Y.getCharCode("z"), l = Y.getCharCode("a"), o = l; o <= s; o++)
22468
22456
  r[$r][o] = o - l + 2;
@@ -22754,7 +22742,7 @@ var Pn = O1(Se.createInt32Array(5, 256)), Fr = function(r) {
22754
22742
  e.set(a, t - i), e.set(a, t + i), e.set(t - i, a), e.set(t + i, a);
22755
22743
  e.set(t - n, t - n), e.set(t - n + 1, t - n), e.set(t - n, t - n + 1), e.set(t + n, t - n), e.set(t + n, t - n + 1), e.set(t + n, t + n - 1);
22756
22744
  }, r.generateModeMessage = function(e, t, n) {
22757
- var i = new De();
22745
+ var i = new Re();
22758
22746
  return e ? (i.appendBits(t - 1, 2), i.appendBits(n - 1, 6), i = r.generateCheckWords(i, 28, 4)) : (i.appendBits(t - 1, 5), i.appendBits(n - 1, 11), i = r.generateCheckWords(i, 40, 4)), i;
22759
22747
  }, r.drawModeMessage = function(e, t, n, i) {
22760
22748
  var a = j.truncDivision(n, 2);
@@ -22771,7 +22759,7 @@ var Pn = O1(Se.createInt32Array(5, 256)), Fr = function(r) {
22771
22759
  }, r.generateCheckWords = function(e, t, n) {
22772
22760
  var i, a, o = e.getSize() / n, s = new zo(r.getGF(n)), l = j.truncDivision(t, n), c = r.bitsToWords(e, n, l);
22773
22761
  s.encode(c, l - o);
22774
- var u = t % n, d = new De();
22762
+ var u = t % n, d = new Re();
22775
22763
  d.appendBits(0, u);
22776
22764
  try {
22777
22765
  for (var f = T1(Array.from(c)), h = f.next(); !h.done; h = f.next()) {
@@ -22812,7 +22800,7 @@ var Pn = O1(Se.createInt32Array(5, 256)), Fr = function(r) {
22812
22800
  throw new H("Unsupported word size " + e);
22813
22801
  }
22814
22802
  }, r.stuffBits = function(e, t) {
22815
- for (var n = new De(), i = e.getSize(), a = (1 << t) - 2, o = 0; o < i; o += t) {
22803
+ for (var n = new Re(), i = e.getSize(), a = (1 << t) - 2, o = 0; o < i; o += t) {
22816
22804
  for (var s = 0, l = 0; l < t; l++)
22817
22805
  (o + l >= i || e.get(o + l)) && (s |= 1 << t - 1 - l);
22818
22806
  (s & a) === a ? (n.appendBits(s & a, t), o--) : (s & a) === 0 ? (n.appendBits(s | 1, t), o--) : n.appendBits(s, t);
@@ -22909,7 +22897,7 @@ const qo = L((r) => {
22909
22897
  hints: D1
22910
22898
  });
22911
22899
  return /* @__PURE__ */ _("div", { className: "bg-(--color-background) flex size-full flex-col justify-center overflow-hidden", children: [
22912
- /* @__PURE__ */ p("div", { className: "flex w-full justify-end p-4", children: /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { "aria-label": "close", variant: "soft", accentColor: "base", children: /* @__PURE__ */ p(N, { icon: It }) }) }) }),
22900
+ /* @__PURE__ */ p("div", { className: "flex w-full justify-end p-4", children: /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { "aria-label": "close", variant: "soft", accentColor: "base", children: /* @__PURE__ */ p(N, { icon: bt }) }) }) }),
22913
22901
  /* @__PURE__ */ p("div", { className: "max-h-full w-full grow overflow-hidden p-4", children: /* @__PURE__ */ p("video", { className: "size-full", ref: o }) })
22914
22902
  ] });
22915
22903
  });
@@ -22951,7 +22939,7 @@ const Xo = L((r) => {
22951
22939
  u(!1), a();
22952
22940
  }, [a]);
22953
22941
  return /* @__PURE__ */ _(
22954
- Re,
22942
+ Me,
22955
22943
  {
22956
22944
  size: t,
22957
22945
  inputId: e.identifier,
@@ -23063,7 +23051,7 @@ const Ca = 500, Wo = L((r) => {
23063
23051
  f.key === "Enter" && f.preventDefault();
23064
23052
  }, []);
23065
23053
  return /* @__PURE__ */ p(
23066
- Re,
23054
+ Me,
23067
23055
  {
23068
23056
  size: t,
23069
23057
  inputId: e.identifier,
@@ -23136,7 +23124,7 @@ const $o = L((r) => {
23136
23124
  a();
23137
23125
  }, [a]);
23138
23126
  return /* @__PURE__ */ p(
23139
- Re,
23127
+ Me,
23140
23128
  {
23141
23129
  size: t,
23142
23130
  inputId: e.identifier,
@@ -23238,13 +23226,13 @@ const rn = (r) => {
23238
23226
  minutes: Number(e[2]),
23239
23227
  utcOffset: t
23240
23228
  } : null;
23241
- }, Ne = (r) => typeof r == "string" && rn(r) !== null, _a = (r, e, t = B1()) => {
23229
+ }, Te = (r) => typeof r == "string" && rn(r) !== null, _a = (r, e, t = B1()) => {
23242
23230
  if (!Number.isInteger(r) || r < 0 || r > 23) throw new Error(`Invalid hour: ${r}`);
23243
23231
  if (!Number.isInteger(e) || e < 0 || e > 59) throw new Error(`Invalid minute: ${e}`);
23244
23232
  if (!mi(t)) throw new Error("Unsupported UTC offset");
23245
23233
  const n = r.toString().padStart(2, "0"), i = e.toString().padStart(2, "0");
23246
23234
  return `T${n}:${i}:00${t}`;
23247
- }, ei = (r) => `UTC${r}`, Mt = (r) => {
23235
+ }, ei = (r) => `UTC${r}`, Rt = (r) => {
23248
23236
  const e = rn(r);
23249
23237
  if (!e) throw new Error(`Invalid time value: ${r}`);
23250
23238
  return (e.hours * 60 + e.minutes - k1(e.utcOffset) + 1440) % 1440;
@@ -23253,8 +23241,8 @@ const rn = (r) => {
23253
23241
  if (!t) throw new Error(`Invalid time value: ${r}`);
23254
23242
  const n = (t.hours % 12 || 12).toString().padStart(2, "0"), i = t.minutes.toString().padStart(2, "0"), a = t.hours >= 12 ? "PM" : "AM", o = `${n}:${i} ${a}`;
23255
23243
  return e ? `${o} ${ei(t.utcOffset)}` : o;
23256
- }, Pr = (r) => typeof r == "object" && (Ne(r.from) || Ne(r.to)), Yo = (r, e) => {
23257
- const t = Mt(r), n = e.from ? Mt(e.from) : null, i = e.to ? Mt(e.to) : null;
23244
+ }, Pr = (r) => typeof r == "object" && (Te(r.from) || Te(r.to)), Yo = (r, e) => {
23245
+ const t = Rt(r), n = e.from ? Rt(e.from) : null, i = e.to ? Rt(e.to) : null;
23258
23246
  return n === null && i === null ? !0 : n === null ? t <= i : i === null ? t >= n : n <= i ? t >= n && t <= i : t >= n || t <= i;
23259
23247
  }, Ci = L((r) => {
23260
23248
  const { value: e, onChange: t, onBlur: n, disabled: i, size: a = "md", id: o, name: s, compact: l = !1 } = r, c = e ? rn(e) : null, u = c ? `${c.hours.toString().padStart(2, "0")}:${c.minutes.toString().padStart(2, "0")}` : "", d = b(
@@ -23285,7 +23273,7 @@ const rn = (r) => {
23285
23273
  {
23286
23274
  id: o,
23287
23275
  name: s,
23288
- className: Ct(
23276
+ className: kt(
23289
23277
  "[&::-webkit-calendar-picker-indicator]:invert-40 dark:[&::-webkit-calendar-picker-indicator]:invert-60",
23290
23278
  {
23291
23279
  "[&::-webkit-datetime-edit]:opacity-60": !e
@@ -23334,7 +23322,7 @@ Ci.displayName = "TimeFieldControl";
23334
23322
  const Zo = L((r) => {
23335
23323
  const { field: e } = r, { size: t } = ce(Ce), { value: n, name: i, onBlur: a, onChange: o, error: s, disabled: l } = ze({ field: e });
23336
23324
  return /* @__PURE__ */ p(
23337
- Re,
23325
+ Me,
23338
23326
  {
23339
23327
  size: t,
23340
23328
  inputId: e.identifier,
@@ -23389,10 +23377,10 @@ class Ar extends tt {
23389
23377
  return /* @__PURE__ */ p(Zo, { field: this });
23390
23378
  }
23391
23379
  isSerializedValue(t) {
23392
- return t === null || Ne(t);
23380
+ return t === null || Te(t);
23393
23381
  }
23394
23382
  isValue(t) {
23395
- return t === null || Ne(t);
23383
+ return t === null || Te(t);
23396
23384
  }
23397
23385
  blankValue() {
23398
23386
  return null;
@@ -23419,7 +23407,7 @@ const Ko = L((r) => {
23419
23407
  a();
23420
23408
  return;
23421
23409
  }
23422
- const C = Array.from(m).map((w) => Bt.from(G(), w)), A = [...n, ...C];
23410
+ const C = Array.from(m).map((w) => Pt.from(G(), w)), A = [...n, ...C];
23423
23411
  o(A), a();
23424
23412
  }, [a, o, n]), f = b(
23425
23413
  (m) => {
@@ -23445,7 +23433,7 @@ const Ko = L((r) => {
23445
23433
  }, [a, n]);
23446
23434
  const g = e.maxFiles > 1 ? "Select files" : "Select a file";
23447
23435
  return /* @__PURE__ */ _(
23448
- Re,
23436
+ Me,
23449
23437
  {
23450
23438
  size: t,
23451
23439
  inputId: e.identifier,
@@ -23485,7 +23473,7 @@ const Ko = L((r) => {
23485
23473
  value: ""
23486
23474
  }
23487
23475
  ),
23488
- n.length > 0 && /* @__PURE__ */ p("div", { className: "flex h-max flex-col gap-2", children: n.map((m) => /* @__PURE__ */ p(
23476
+ n.length > 0 && /* @__PURE__ */ p("div", { className: "mt-1 flex h-max flex-col gap-2", children: n.map((m) => /* @__PURE__ */ p(
23489
23477
  ci,
23490
23478
  {
23491
23479
  size: t,
@@ -23538,7 +23526,7 @@ class ir extends tt {
23538
23526
  showDirectly: !1
23539
23527
  },
23540
23528
  {
23541
- field: new bt({
23529
+ field: new St({
23542
23530
  label: "Accepted file types",
23543
23531
  description: "Types of allowed files to upload. If left blank, all files will be accepted.",
23544
23532
  required: !1,
@@ -23573,7 +23561,7 @@ class ir extends tt {
23573
23561
  getFieldValidators() {
23574
23562
  const t = super.getFieldValidators(), n = this.maxFileSize ?? yr, i = n * 1e3 * 1e3, a = this.maxFiles || 1;
23575
23563
  return t.push((o) => {
23576
- if (o.some((s) => s instanceof Bt && s.size > i))
23564
+ if (o.some((s) => s instanceof Pt && s.size > i))
23577
23565
  return `Files must be at most ${n}MB.`;
23578
23566
  }), t.push((o) => {
23579
23567
  if (o.length > a)
@@ -23622,7 +23610,7 @@ class ir extends tt {
23622
23610
  return Array.isArray(t) && t.length === 0;
23623
23611
  }
23624
23612
  isValue(t) {
23625
- return Array.isArray(t) ? t.every((n) => n instanceof br || n instanceof Bt) : !1;
23613
+ return Array.isArray(t) ? t.every((n) => n instanceof br || n instanceof Pt) : !1;
23626
23614
  }
23627
23615
  areValuesEqual(t, n) {
23628
23616
  return li(t, n);
@@ -23652,7 +23640,7 @@ const Qo = L((r) => {
23652
23640
  n !== null && window.open(n, "_blank", "noopener,noreferrer");
23653
23641
  }, [n]);
23654
23642
  return /* @__PURE__ */ p(
23655
- Re,
23643
+ Me,
23656
23644
  {
23657
23645
  size: t,
23658
23646
  inputId: e.identifier,
@@ -23761,14 +23749,14 @@ const Jo = {
23761
23749
  time: Ar,
23762
23750
  number: Je,
23763
23751
  boolean: Yt,
23764
- select: Pt,
23752
+ select: Ft,
23765
23753
  string: rr,
23766
23754
  url: Er,
23767
23755
  text: nr,
23768
23756
  upload: ir,
23769
23757
  qr: _r,
23770
23758
  "multi-string": jt,
23771
- "multi-select": bt,
23759
+ "multi-select": St,
23772
23760
  radio: Jt,
23773
23761
  "checkbox-list": Zt,
23774
23762
  "pass-fail": Qt,
@@ -23885,7 +23873,7 @@ const Jo = {
23885
23873
  [J.Temporal]: { name: "Temporal" },
23886
23874
  [J.Text]: { name: "Text" },
23887
23875
  [J.Verification]: { name: "Verification" }
23888
- }, yr = 50, U1 = yr * 1e3, H1 = U1 * 1e3, Me = "Unlabelled", es = "Unlabelled";
23876
+ }, yr = 50, U1 = yr * 1e3, H1 = U1 * 1e3, Ve = "Unlabelled", es = "Unlabelled";
23889
23877
  class W {
23890
23878
  constructor(e) {
23891
23879
  R(this, "id");
@@ -24173,13 +24161,13 @@ const G1 = W.create({
24173
24161
  }), a0 = W.create({
24174
24162
  id: "time-before",
24175
24163
  label: "before",
24176
- getApplyFn: (r) => (e) => Mt(e) < Mt(r),
24164
+ getApplyFn: (r) => (e) => Rt(e) < Rt(r),
24177
24165
  serialize: (r) => r,
24178
24166
  deserialize: (r) => r
24179
24167
  }), o0 = W.create({
24180
24168
  id: "time-after",
24181
24169
  label: "after",
24182
- getApplyFn: (r) => (e) => Mt(e) > Mt(r),
24170
+ getApplyFn: (r) => (e) => Rt(e) > Rt(r),
24183
24171
  serialize: (r) => r,
24184
24172
  deserialize: (r) => r
24185
24173
  }), s0 = W.create({
@@ -24238,12 +24226,12 @@ class Ue extends Kr {
24238
24226
  return t;
24239
24227
  }
24240
24228
  }
24241
- const ds = L, kt = ds(function(r) {
24229
+ const ds = L, Bt = ds(function(r) {
24242
24230
  const { ref: e, children: t, ...n } = r, i = b(
24243
- (a) => typeof t == "function" ? /* @__PURE__ */ _(Le, { children: [
24231
+ (a) => typeof t == "function" ? /* @__PURE__ */ _(Ie, { children: [
24244
24232
  t(a),
24245
24233
  /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(N, { icon: et }) })
24246
- ] }) : /* @__PURE__ */ _(Le, { children: [
24234
+ ] }) : /* @__PURE__ */ _(Ie, { children: [
24247
24235
  t,
24248
24236
  /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(N, { icon: et }) })
24249
24237
  ] }),
@@ -24252,10 +24240,10 @@ const ds = L, kt = ds(function(r) {
24252
24240
  return /* @__PURE__ */ p(D.SelectItem, { ref: e, ...n, children: i });
24253
24241
  }), fs = ds(function(r) {
24254
24242
  const { ref: e, children: t, ...n } = r, i = b(
24255
- (a) => typeof t == "function" ? /* @__PURE__ */ _(Le, { children: [
24243
+ (a) => typeof t == "function" ? /* @__PURE__ */ _(Ie, { children: [
24256
24244
  t(a),
24257
24245
  /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(N, { icon: et }) })
24258
- ] }) : /* @__PURE__ */ _(Le, { children: [
24246
+ ] }) : /* @__PURE__ */ _(Ie, { children: [
24259
24247
  t,
24260
24248
  /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(N, { icon: et }) })
24261
24249
  ] }),
@@ -24264,10 +24252,10 @@ const ds = L, kt = ds(function(r) {
24264
24252
  return /* @__PURE__ */ p(D.MultiSelectItem, { ref: e, ...n, children: i });
24265
24253
  }), bi = L((r) => {
24266
24254
  const { ref: e, children: t, ...n } = r, i = b(
24267
- (a) => typeof t == "function" ? /* @__PURE__ */ _(Le, { children: [
24255
+ (a) => typeof t == "function" ? /* @__PURE__ */ _(Ie, { children: [
24268
24256
  t(a),
24269
24257
  /* @__PURE__ */ p(D.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(N, { icon: Gr }) : /* @__PURE__ */ p(N, { icon: et }) })
24270
- ] }) : /* @__PURE__ */ _(Le, { children: [
24258
+ ] }) : /* @__PURE__ */ _(Ie, { children: [
24271
24259
  t,
24272
24260
  /* @__PURE__ */ p(D.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(N, { icon: Gr }) : /* @__PURE__ */ p(N, { icon: et }) })
24273
24261
  ] }),
@@ -24285,7 +24273,7 @@ const He = (r) => {
24285
24273
  );
24286
24274
  return /* @__PURE__ */ _(D.Root, { align: "start", children: [
24287
24275
  /* @__PURE__ */ p(D.ClickTrigger, { children: e }),
24288
- /* @__PURE__ */ p(D.Content, { size: n, variant: i, radius: o, accentColor: a, children: /* @__PURE__ */ p(D.SelectGroup, { required: !0, value: t.getConditionModifier(), onValueChange: s, children: t.getConditionModifiers().map(([l, c]) => /* @__PURE__ */ p(kt, { value: l, children: c.modifier.label }, l)) }) })
24276
+ /* @__PURE__ */ p(D.Content, { size: n, variant: i, radius: o, accentColor: a, children: /* @__PURE__ */ p(D.SelectGroup, { required: !0, value: t.getConditionModifier(), onValueChange: s, children: t.getConditionModifiers().map(([l, c]) => /* @__PURE__ */ p(Bt, { value: l, children: c.modifier.label }, l)) }) })
24289
24277
  ] });
24290
24278
  }, zr = L((r) => {
24291
24279
  const { children: e, open: t, onOpenChange: n, defaultOpen: i, modal: a, size: o, align: s, accentColor: l = "base", ...c } = r;
@@ -24369,7 +24357,7 @@ const hs = L((r) => {
24369
24357
  onClick: () => {
24370
24358
  m(A);
24371
24359
  },
24372
- children: /* @__PURE__ */ p(N, { icon: It })
24360
+ children: /* @__PURE__ */ p(N, { icon: bt })
24373
24361
  }
24374
24362
  )
24375
24363
  ]
@@ -24380,7 +24368,7 @@ const hs = L((r) => {
24380
24368
  ] });
24381
24369
  });
24382
24370
  hs.displayName = "NumberInputPopover";
24383
- const Vt = L((r) => {
24371
+ const Mt = L((r) => {
24384
24372
  const {
24385
24373
  children: e,
24386
24374
  open: t,
@@ -24421,14 +24409,14 @@ const Vt = L((r) => {
24421
24409
  ) }) })
24422
24410
  ] });
24423
24411
  });
24424
- Vt.displayName = "NumberInputPopover";
24425
- const Ve = (r) => {
24412
+ Mt.displayName = "NumberInputPopover";
24413
+ const Fe = (r) => {
24426
24414
  const { condition: e, onClick: t, ...n } = r, i = b(() => {
24427
24415
  t(e);
24428
24416
  }, [e, t]);
24429
- return /* @__PURE__ */ p(ne, { onClick: i, ...n, children: /* @__PURE__ */ p(N, { icon: It }) });
24417
+ return /* @__PURE__ */ p(ne, { onClick: i, ...n, children: /* @__PURE__ */ p(N, { icon: bt }) });
24430
24418
  };
24431
- Ve.displayName = "RemoveConditionButton";
24419
+ Fe.displayName = "RemoveConditionButton";
24432
24420
  const Tr = L((r) => {
24433
24421
  const { ref: e, selectFieldOptions: t, ...n } = r, i = se(() => t.map(
24434
24422
  (a) => typeof a == "string" ? {
@@ -24449,7 +24437,7 @@ const Ii = L((r) => {
24449
24437
  label: a
24450
24438
  } : a
24451
24439
  ), [t]);
24452
- return /* @__PURE__ */ p(D.SelectGroup, { ref: e, ...n, children: i.map((a) => /* @__PURE__ */ p(kt, { value: a.value, children: /* @__PURE__ */ p("span", { className: "truncate", children: a.label }) }, a.value)) });
24440
+ return /* @__PURE__ */ p(D.SelectGroup, { ref: e, ...n, children: i.map((a) => /* @__PURE__ */ p(Bt, { value: a.value, children: /* @__PURE__ */ p("span", { className: "truncate", children: a.label }) }, a.value)) });
24453
24441
  });
24454
24442
  Ii.displayName = "SelectFieldOptionSelectGroup";
24455
24443
  const lr = L((r) => {
@@ -24526,7 +24514,7 @@ const c0 = (r) => {
24526
24514
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
24527
24515
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
24528
24516
  /* @__PURE__ */ p(N, { icon: me[e.field.type].icon }),
24529
- /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Me })
24517
+ /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Ve })
24530
24518
  ] }),
24531
24519
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[i].modifier.label }) }),
24532
24520
  /* @__PURE__ */ _(D.Root, { children: [
@@ -24538,13 +24526,13 @@ const c0 = (r) => {
24538
24526
  value: n,
24539
24527
  onValueChange: e.setConditionValue,
24540
24528
  children: [
24541
- /* @__PURE__ */ p(kt, { value: !0, children: "true" }),
24542
- /* @__PURE__ */ p(kt, { value: !1, children: "false" })
24529
+ /* @__PURE__ */ p(Bt, { value: !0, children: "true" }),
24530
+ /* @__PURE__ */ p(Bt, { value: !1, children: "false" })
24543
24531
  ]
24544
24532
  }
24545
24533
  ) })
24546
24534
  ] }),
24547
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
24535
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
24548
24536
  ] });
24549
24537
  }, Aa = {
24550
24538
  equals: V({
@@ -24593,7 +24581,7 @@ const cr = [], u0 = (r) => {
24593
24581
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "soft", accentColor: "base", children: [
24594
24582
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "soft", accentColor: "base", children: [
24595
24583
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
24596
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
24584
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
24597
24585
  ] }),
24598
24586
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
24599
24587
  /* @__PURE__ */ _(D.Root, { children: [
@@ -24607,7 +24595,7 @@ const cr = [], u0 = (r) => {
24607
24595
  }
24608
24596
  ) })
24609
24597
  ] }),
24610
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
24598
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
24611
24599
  ] });
24612
24600
  }, Ea = {
24613
24601
  equals: V({
@@ -24744,11 +24732,11 @@ const dh = (r, e) => se(() => {
24744
24732
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
24745
24733
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
24746
24734
  /* @__PURE__ */ p(N, { icon: me[e.field.type].icon }),
24747
- /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Me })
24735
+ /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Ve })
24748
24736
  ] }),
24749
24737
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[i].modifier.label }) }),
24750
24738
  a(),
24751
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
24739
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
24752
24740
  ] });
24753
24741
  }, Sa = {
24754
24742
  equals: V({
@@ -24823,7 +24811,7 @@ const f0 = (r) => {
24823
24811
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
24824
24812
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
24825
24813
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
24826
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
24814
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
24827
24815
  ] }),
24828
24816
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
24829
24817
  /* @__PURE__ */ _(D.Root, { children: [
@@ -24837,7 +24825,7 @@ const f0 = (r) => {
24837
24825
  }
24838
24826
  ) })
24839
24827
  ] }),
24840
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
24828
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
24841
24829
  ] });
24842
24830
  }, ba = {
24843
24831
  equals: V({
@@ -24905,11 +24893,11 @@ const h0 = (r) => {
24905
24893
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
24906
24894
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
24907
24895
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
24908
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
24896
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
24909
24897
  ] }),
24910
24898
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
24911
24899
  /* @__PURE__ */ p(hs, { values: i ?? cr, onValuesChange: o, children: /* @__PURE__ */ p(B, { type: "button", className: "truncate", children: s() }) }),
24912
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
24900
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
24913
24901
  ] });
24914
24902
  }, Ia = {
24915
24903
  equals: V({
@@ -24971,7 +24959,7 @@ const p0 = (r) => {
24971
24959
  case "lessThan": {
24972
24960
  const l = e.modifiers.greaterThan, c = i !== void 0 && l.isConditionValueValid(i) ? i : void 0;
24973
24961
  return /* @__PURE__ */ p(
24974
- Vt,
24962
+ Mt,
24975
24963
  {
24976
24964
  value: c ?? null,
24977
24965
  onValueChange: o,
@@ -24983,9 +24971,9 @@ const p0 = (r) => {
24983
24971
  case "inRange":
24984
24972
  case "notInRange": {
24985
24973
  const l = e.modifiers.inRange, c = i !== void 0 && l.isConditionValueValid(i) ? i : void 0;
24986
- return /* @__PURE__ */ _(Le, { children: [
24974
+ return /* @__PURE__ */ _(Ie, { children: [
24987
24975
  /* @__PURE__ */ p(
24988
- Vt,
24976
+ Mt,
24989
24977
  {
24990
24978
  value: (c == null ? void 0 : c.from) ?? null,
24991
24979
  onValueChange: (u) => {
@@ -24999,7 +24987,7 @@ const p0 = (r) => {
24999
24987
  }
25000
24988
  ),
25001
24989
  /* @__PURE__ */ p(
25002
- Vt,
24990
+ Mt,
25003
24991
  {
25004
24992
  value: (c == null ? void 0 : c.to) ?? null,
25005
24993
  onValueChange: (u) => {
@@ -25019,11 +25007,11 @@ const p0 = (r) => {
25019
25007
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25020
25008
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25021
25009
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25022
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25010
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25023
25011
  ] }),
25024
25012
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25025
25013
  s(),
25026
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25014
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25027
25015
  ] });
25028
25016
  }, Oa = {
25029
25017
  equals: V({
@@ -25112,11 +25100,11 @@ const v0 = (r) => {
25112
25100
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25113
25101
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25114
25102
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25115
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25103
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25116
25104
  ] }),
25117
25105
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25118
25106
  o(),
25119
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25107
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25120
25108
  ] });
25121
25109
  }, Na = {
25122
25110
  equals: V({
@@ -25173,7 +25161,7 @@ const g0 = (r) => {
25173
25161
  onValueChange: e.setConditionValue,
25174
25162
  children: wr.map((c) => {
25175
25163
  const { label: u } = $t[c];
25176
- return /* @__PURE__ */ p(kt, { value: c, children: /* @__PURE__ */ p("span", { className: "truncate", children: u }) }, c);
25164
+ return /* @__PURE__ */ p(Bt, { value: c, children: /* @__PURE__ */ p("span", { className: "truncate", children: u }) }, c);
25177
25165
  })
25178
25166
  }
25179
25167
  ) })
@@ -25208,11 +25196,11 @@ const g0 = (r) => {
25208
25196
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25209
25197
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25210
25198
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25211
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25199
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25212
25200
  ] }),
25213
25201
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25214
25202
  o(),
25215
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25203
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25216
25204
  ] });
25217
25205
  }, Ta = {
25218
25206
  equals: V({
@@ -25308,11 +25296,11 @@ const x0 = (r) => {
25308
25296
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25309
25297
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25310
25298
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25311
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25299
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25312
25300
  ] }),
25313
25301
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25314
25302
  l(),
25315
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25303
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25316
25304
  ] });
25317
25305
  }, Da = {
25318
25306
  equals: V({
@@ -25367,7 +25355,7 @@ const y0 = (r) => {
25367
25355
  case "lessThan": {
25368
25356
  const s = e.modifiers[a], l = i !== void 0 && s.isConditionValueValid(i) ? i : void 0;
25369
25357
  return /* @__PURE__ */ p(
25370
- Vt,
25358
+ Mt,
25371
25359
  {
25372
25360
  value: l ?? null,
25373
25361
  onValueChange: (c) => e.setConditionValue(c ?? void 0),
@@ -25379,9 +25367,9 @@ const y0 = (r) => {
25379
25367
  case "inRange":
25380
25368
  case "notInRange": {
25381
25369
  const s = e.modifiers.inRange, l = i !== void 0 && s.isConditionValueValid(i) ? i : void 0;
25382
- return /* @__PURE__ */ _(Le, { children: [
25370
+ return /* @__PURE__ */ _(Ie, { children: [
25383
25371
  /* @__PURE__ */ p(
25384
- Vt,
25372
+ Mt,
25385
25373
  {
25386
25374
  value: (l == null ? void 0 : l.from) ?? null,
25387
25375
  onValueChange: (c) => {
@@ -25395,7 +25383,7 @@ const y0 = (r) => {
25395
25383
  }
25396
25384
  ),
25397
25385
  /* @__PURE__ */ p(
25398
- Vt,
25386
+ Mt,
25399
25387
  {
25400
25388
  value: (l == null ? void 0 : l.to) ?? null,
25401
25389
  onValueChange: (c) => {
@@ -25415,11 +25403,11 @@ const y0 = (r) => {
25415
25403
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25416
25404
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25417
25405
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25418
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25406
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25419
25407
  ] }),
25420
25408
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25421
25409
  o(),
25422
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25410
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25423
25411
  ] });
25424
25412
  }, Ra = {
25425
25413
  equals: V({
@@ -25508,11 +25496,11 @@ const m0 = (r) => {
25508
25496
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25509
25497
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25510
25498
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25511
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25499
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25512
25500
  ] }),
25513
25501
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25514
25502
  o(),
25515
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25503
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25516
25504
  ] });
25517
25505
  }, Ma = {
25518
25506
  equals: V({
@@ -25607,11 +25595,11 @@ const C0 = (r) => {
25607
25595
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25608
25596
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25609
25597
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25610
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25598
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25611
25599
  ] }),
25612
25600
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25613
25601
  c(),
25614
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25602
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25615
25603
  ] });
25616
25604
  }, Va = {
25617
25605
  equals: V({
@@ -25676,11 +25664,11 @@ const w0 = (r) => {
25676
25664
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25677
25665
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25678
25666
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25679
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25667
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25680
25668
  ] }),
25681
25669
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25682
25670
  o(),
25683
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25671
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25684
25672
  ] });
25685
25673
  }, Fa = {
25686
25674
  equals: V({
@@ -25742,11 +25730,11 @@ const _0 = (r) => {
25742
25730
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25743
25731
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25744
25732
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25745
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25733
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25746
25734
  ] }),
25747
25735
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25748
25736
  o(),
25749
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25737
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25750
25738
  ] });
25751
25739
  }, Pa = {
25752
25740
  equals: V({
@@ -25810,7 +25798,7 @@ const A0 = (r) => {
25810
25798
  const o = n && typeof n == "object" ? n : void 0, s = (l) => {
25811
25799
  e.setConditionValue(l.from || l.to ? l : void 0);
25812
25800
  };
25813
- return /* @__PURE__ */ _(Le, { children: [
25801
+ return /* @__PURE__ */ _(Ie, { children: [
25814
25802
  /* @__PURE__ */ p(
25815
25803
  Ur,
25816
25804
  {
@@ -25836,46 +25824,46 @@ const A0 = (r) => {
25836
25824
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25837
25825
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25838
25826
  /* @__PURE__ */ p(N, { icon: me[e.field.type].icon }),
25839
- /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Me })
25827
+ /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Ve })
25840
25828
  ] }),
25841
25829
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[i].modifier.label }) }),
25842
25830
  a(),
25843
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25831
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25844
25832
  ] });
25845
25833
  }, Ba = {
25846
25834
  equals: V({
25847
25835
  modifier: n0,
25848
- isValueValid: (r) => Ne(r),
25849
- isConditionValueValid: (r) => Ne(r),
25850
- isSerializedValueValid: (r) => Ne(r)
25836
+ isValueValid: (r) => Te(r),
25837
+ isConditionValueValid: (r) => Te(r),
25838
+ isSerializedValueValid: (r) => Te(r)
25851
25839
  }),
25852
25840
  notEquals: V({
25853
25841
  modifier: i0,
25854
- isValueValid: (r) => Ne(r),
25855
- isConditionValueValid: (r) => Ne(r),
25856
- isSerializedValueValid: (r) => Ne(r)
25842
+ isValueValid: (r) => Te(r),
25843
+ isConditionValueValid: (r) => Te(r),
25844
+ isSerializedValueValid: (r) => Te(r)
25857
25845
  }),
25858
25846
  before: V({
25859
25847
  modifier: a0,
25860
- isValueValid: (r) => Ne(r),
25861
- isConditionValueValid: (r) => Ne(r),
25862
- isSerializedValueValid: (r) => Ne(r)
25848
+ isValueValid: (r) => Te(r),
25849
+ isConditionValueValid: (r) => Te(r),
25850
+ isSerializedValueValid: (r) => Te(r)
25863
25851
  }),
25864
25852
  after: V({
25865
25853
  modifier: o0,
25866
- isValueValid: (r) => Ne(r),
25867
- isConditionValueValid: (r) => Ne(r),
25868
- isSerializedValueValid: (r) => Ne(r)
25854
+ isValueValid: (r) => Te(r),
25855
+ isConditionValueValid: (r) => Te(r),
25856
+ isSerializedValueValid: (r) => Te(r)
25869
25857
  }),
25870
25858
  in: V({
25871
25859
  modifier: s0,
25872
- isValueValid: (r) => Ne(r),
25860
+ isValueValid: (r) => Te(r),
25873
25861
  isConditionValueValid: (r) => Pr(r),
25874
25862
  isSerializedValueValid: (r) => Pr(r)
25875
25863
  }),
25876
25864
  notIn: V({
25877
25865
  modifier: l0,
25878
- isValueValid: (r) => Ne(r),
25866
+ isValueValid: (r) => Te(r),
25879
25867
  isConditionValueValid: (r) => Pr(r),
25880
25868
  isSerializedValueValid: (r) => Pr(r)
25881
25869
  })
@@ -25912,7 +25900,7 @@ const E0 = (r) => {
25912
25900
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25913
25901
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25914
25902
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25915
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25903
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25916
25904
  ] }),
25917
25905
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25918
25906
  /* @__PURE__ */ _(D.Root, { children: [
@@ -25924,13 +25912,13 @@ const E0 = (r) => {
25924
25912
  value: i,
25925
25913
  onValueChange: e.setConditionValue,
25926
25914
  children: [
25927
- /* @__PURE__ */ p(kt, { value: !0, children: "empty" }),
25928
- /* @__PURE__ */ p(kt, { value: !1, children: "not empty" })
25915
+ /* @__PURE__ */ p(Bt, { value: !0, children: "empty" }),
25916
+ /* @__PURE__ */ p(Bt, { value: !1, children: "not empty" })
25929
25917
  ]
25930
25918
  }
25931
25919
  ) })
25932
25920
  ] }),
25933
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25921
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25934
25922
  ] });
25935
25923
  }, ka = {
25936
25924
  equals: V({
@@ -25980,11 +25968,11 @@ const S0 = (r) => {
25980
25968
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25981
25969
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25982
25970
  /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25983
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25971
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25984
25972
  ] }),
25985
25973
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25986
25974
  o(),
25987
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25975
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25988
25976
  ] });
25989
25977
  }, La = {
25990
25978
  equals: V({
@@ -26224,10 +26212,10 @@ const V0 = (r, e) => {
26224
26212
  const h = f.getConditions(e.identifier);
26225
26213
  return new Oi(h).applyConditions(i);
26226
26214
  }), [c, e, i]), d = Ln(e.fields);
26227
- return u ? /* @__PURE__ */ _(Le, { children: [
26228
- l !== 0 ? /* @__PURE__ */ p(Ft, { size: "full" }) : null,
26215
+ return u ? /* @__PURE__ */ _(Ie, { children: [
26216
+ l !== 0 ? /* @__PURE__ */ p(Vt, { size: "full" }) : null,
26229
26217
  /* @__PURE__ */ _("div", { className: "flex flex-col gap-4", children: [
26230
- (t || n) && /* @__PURE__ */ p(Le, { children: /* @__PURE__ */ _("div", { className: "flex flex-col gap-1", children: [
26218
+ (t || n) && /* @__PURE__ */ p(Ie, { children: /* @__PURE__ */ _("div", { className: "flex flex-col gap-1", children: [
26231
26219
  /* @__PURE__ */ p(Gs, { size: o, children: t }),
26232
26220
  n && /* @__PURE__ */ p(pe, { accentColor: "base", size: o, children: n })
26233
26221
  ] }) }),
@@ -26462,7 +26450,7 @@ const Ri = (r) => {
26462
26450
  identifier: G()
26463
26451
  });
26464
26452
  case "select":
26465
- return new Pt({
26453
+ return new Ft({
26466
26454
  label: "",
26467
26455
  options: [],
26468
26456
  required: !1,
@@ -26475,7 +26463,7 @@ const Ri = (r) => {
26475
26463
  identifier: G()
26476
26464
  });
26477
26465
  case "multi-select":
26478
- return new bt({
26466
+ return new St({
26479
26467
  label: "",
26480
26468
  options: [],
26481
26469
  required: !1,
@@ -26655,13 +26643,13 @@ const Ri = (r) => {
26655
26643
  case "checkbox-list":
26656
26644
  return Zt.getFieldCreationSchema(e);
26657
26645
  case "multi-select":
26658
- return bt.getFieldCreationSchema(e);
26646
+ return St.getFieldCreationSchema(e);
26659
26647
  case "number":
26660
26648
  return Je.getFieldCreationSchema(e);
26661
26649
  case "radio":
26662
26650
  return Jt.getFieldCreationSchema(e);
26663
26651
  case "select":
26664
- return Pt.getFieldCreationSchema(e);
26652
+ return Ft.getFieldCreationSchema(e);
26665
26653
  case "string":
26666
26654
  return rr.getFieldCreationSchema(e);
26667
26655
  case "text":
@@ -26684,7 +26672,7 @@ const Ri = (r) => {
26684
26672
  /* @__PURE__ */ p(N, { icon: wc }),
26685
26673
  "Settings"
26686
26674
  ] }) }),
26687
- /* @__PURE__ */ p(xe.Content, { size: "sm", ...t, children: /* @__PURE__ */ p("div", { className: Ct("flex w-full max-w-[350px] flex-col", Di({ size: "sm" })), children: e }) })
26675
+ /* @__PURE__ */ p(xe.Content, { size: "sm", ...t, children: /* @__PURE__ */ p("div", { className: kt("flex w-full max-w-[350px] flex-col", Di({ size: "sm" })), children: e }) })
26688
26676
  ] });
26689
26677
  });
26690
26678
  Es.displayName = "FieldSettingsPopover";
@@ -26788,7 +26776,7 @@ const Ss = L((r) => {
26788
26776
  }
26789
26777
  )
26790
26778
  ] }),
26791
- c.length > 0 && /* @__PURE__ */ p("div", { className: Ct("w-full", Di({ size: "sm" })), children: d })
26779
+ c.length > 0 && /* @__PURE__ */ p("div", { className: kt("w-full", Di({ size: "sm" })), children: d })
26792
26780
  ] });
26793
26781
  });
26794
26782
  Ss.displayName = "FieldBuilder";
@@ -26863,7 +26851,7 @@ const bs = L((r) => {
26863
26851
  }, [e, t]);
26864
26852
  return /* @__PURE__ */ _(D.Item, { onSelect: n, children: [
26865
26853
  /* @__PURE__ */ p(N, { icon: me[e.type].icon }),
26866
- e.label || Me
26854
+ e.label || Ve
26867
26855
  ] });
26868
26856
  });
26869
26857
  bs.displayName = "FieldDropdownMenuItem";
@@ -26913,7 +26901,7 @@ const Ns = L((r) => {
26913
26901
  targetY: a,
26914
26902
  targetPosition: d === "LR" ? yt.Left : yt.Top
26915
26903
  });
26916
- return /* @__PURE__ */ _(Le, { children: [
26904
+ return /* @__PURE__ */ _(Ie, { children: [
26917
26905
  /* @__PURE__ */ p(js, { id: e, path: y, style: o, markerEnd: s, labelX: m, labelY: C }),
26918
26906
  /* @__PURE__ */ p(Ys, { children: /* @__PURE__ */ _(
26919
26907
  pt,
@@ -27132,8 +27120,8 @@ const L0 = {
27132
27120
  for (const K of i.fieldSections)
27133
27121
  X[K.identifier] = K;
27134
27122
  for (const K of i.fieldSections) {
27135
- const Fe = K.conditions;
27136
- for (const [Ze, ur] of Object.entries(Fe))
27123
+ const Pe = K.conditions;
27124
+ for (const [Ze, ur] of Object.entries(Pe))
27137
27125
  Z.push({
27138
27126
  id: `${K.identifier}-${Ze}`,
27139
27127
  source: K.identifier,
@@ -27160,10 +27148,10 @@ const L0 = {
27160
27148
  i.addFieldSection(new ot({ identifier: G(), fields: [] }));
27161
27149
  }, [i]), S = b(
27162
27150
  (Z) => {
27163
- const { source: X, target: K } = Z, Fe = i.fieldSections.find(({ identifier: Ze }) => Ze === X);
27164
- Fe.setOptions({
27151
+ const { source: X, target: K } = Z, Pe = i.fieldSections.find(({ identifier: Ze }) => Ze === X);
27152
+ Pe.setOptions({
27165
27153
  conditions: {
27166
- ...Fe.conditions,
27154
+ ...Pe.conditions,
27167
27155
  [K]: []
27168
27156
  }
27169
27157
  });
@@ -27223,7 +27211,7 @@ const L0 = {
27223
27211
  ]
27224
27212
  }
27225
27213
  ),
27226
- /* @__PURE__ */ p(Ft, { size: "sm" }),
27214
+ /* @__PURE__ */ p(Vt, { size: "sm" }),
27227
27215
  /* @__PURE__ */ _(ue, { className: "flex flex-col", size: "sm", accentColor: "base", variant: "soft", children: [
27228
27216
  /* @__PURE__ */ p(ne, { className: "rounded-b-none", onClick: F, type: "button", children: /* @__PURE__ */ p(N, { icon: ft }) }),
27229
27217
  /* @__PURE__ */ p(ne, { onClick: T, radius: "none", type: "button", children: /* @__PURE__ */ p(N, { icon: Gr }) }),
@@ -27520,7 +27508,7 @@ const Vs = L((r) => {
27520
27508
  }
27521
27509
  )
27522
27510
  ] }),
27523
- /* @__PURE__ */ p(Ft, { size: "full" }),
27511
+ /* @__PURE__ */ p(Vt, { size: "full" }),
27524
27512
  /* @__PURE__ */ _("div", { className: "flex flex-col gap-2", children: [
27525
27513
  /* @__PURE__ */ _("div", { className: "flex justify-between gap-2", children: [
27526
27514
  /* @__PURE__ */ p(pe, { accentColor: "base", children: "Conditions" }),
@@ -27545,7 +27533,7 @@ const Vs = L((r) => {
27545
27533
  l.identifier
27546
27534
  ))
27547
27535
  ] }),
27548
- /* @__PURE__ */ p(Ft, { size: "full" })
27536
+ /* @__PURE__ */ p(Vt, { size: "full" })
27549
27537
  ] });
27550
27538
  });
27551
27539
  Vs.displayName = "FieldSectionBuilder";
@@ -27862,7 +27850,7 @@ const X0 = L(
27862
27850
  "form",
27863
27851
  {
27864
27852
  ref: e,
27865
- className: Ct(f, "flex flex-col gap-4"),
27853
+ className: kt(f, "flex flex-col gap-4"),
27866
27854
  onSubmit: C.handleSubmit(m),
27867
27855
  children: [
27868
27856
  /* @__PURE__ */ p("div", { className: k0({ size: g }), children: w }),
@@ -27876,7 +27864,7 @@ const X0 = L(
27876
27864
  onClick: u,
27877
27865
  ...v,
27878
27866
  children: [
27879
- /* @__PURE__ */ p(N, { icon: It }),
27867
+ /* @__PURE__ */ p(N, { icon: bt }),
27880
27868
  c
27881
27869
  ]
27882
27870
  }
@@ -28019,9 +28007,9 @@ export {
28019
28007
  Sr as ImageFile,
28020
28008
  fo as ImageViewer,
28021
28009
  Pc as ImageViewerProvider,
28022
- Re as InputWithLabel,
28010
+ Me as InputWithLabel,
28023
28011
  Xr as LONG_TEXT_FIELD_MAX_LENGTH,
28024
- bt as MultiSelectField,
28012
+ St as MultiSelectField,
28025
28013
  sn as MultiSelectFieldCondition,
28026
28014
  f0 as MultiSelectFieldConditionCell,
28027
28015
  mo as MultiSelectFieldInput,
@@ -28069,7 +28057,7 @@ export {
28069
28057
  Xo as ScanFieldInput,
28070
28058
  yi as Scanner,
28071
28059
  R1 as ScannerProvider,
28072
- Pt as SelectField,
28060
+ Ft as SelectField,
28073
28061
  vn as SelectFieldCondition,
28074
28062
  C0 as SelectFieldConditionCell,
28075
28063
  Co as SelectFieldInput,
@@ -28103,7 +28091,7 @@ export {
28103
28091
  i0 as TimeNotEqualsConditionModifier,
28104
28092
  s0 as TimeRangeInConditionModifier,
28105
28093
  l0 as TimeRangeNotInConditionModifier,
28106
- Me as UNLABELLED_FIELD_LABEL,
28094
+ Ve as UNLABELLED_FIELD_LABEL,
28107
28095
  es as UNLABELLED_SECTION_LABEL,
28108
28096
  Er as URLField,
28109
28097
  Cn as URLFieldCondition,
@@ -28111,7 +28099,7 @@ export {
28111
28099
  Qo as URLFieldInput,
28112
28100
  jo as UTC_OFFSETS,
28113
28101
  M1 as UTC_OFFSETS_SET,
28114
- Bt as UUIDFile,
28102
+ Pt as UUIDFile,
28115
28103
  br as UUIDPromise,
28116
28104
  ir as UploadField,
28117
28105
  mn as UploadFieldCondition,
@@ -28152,7 +28140,7 @@ export {
28152
28140
  ei as formatUTCOffset,
28153
28141
  B1 as getCurrentUTCOffset,
28154
28142
  vh as getFieldsMapping,
28155
- Mt as getUTCMinuteOfDay,
28143
+ Rt as getUTCMinuteOfDay,
28156
28144
  k1 as getUTCOffsetMinutes,
28157
28145
  V0 as initializeFieldValues,
28158
28146
  M0 as insertFilesAndPromisesToFieldValues,
@@ -28161,7 +28149,7 @@ export {
28161
28149
  zc as isPassFailFieldValue,
28162
28150
  Lc as isSerializedPassFailFieldValue,
28163
28151
  qr as isStringArray,
28164
- Ne as isTime,
28152
+ Te as isTime,
28165
28153
  Yo as isTimeInRange,
28166
28154
  Pr as isTimeRange,
28167
28155
  mi as isUTCOffset,