@gravitee/graphene-core 2.41.0 → 2.42.0-fix-improve-data-table.e563914

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.
Files changed (29) hide show
  1. package/USAGE_GUIDE.md +160 -0
  2. package/dist/__stories__/fixtures/index.d.ts +1 -1
  3. package/dist/__stories__/fixtures/index.d.ts.map +1 -1
  4. package/dist/__stories__/fixtures/json-schema-form/disableIf.fixture.d.ts +3 -0
  5. package/dist/__stories__/fixtures/json-schema-form/disableIf.fixture.d.ts.map +1 -0
  6. package/dist/__stories__/fixtures/json-schema-form/index.d.ts +1 -0
  7. package/dist/__stories__/fixtures/json-schema-form/index.d.ts.map +1 -1
  8. package/dist/composed/DataTable/DataTable.d.ts +33 -4
  9. package/dist/composed/DataTable/DataTable.d.ts.map +1 -1
  10. package/dist/composed/DataTable/cells.d.ts +38 -0
  11. package/dist/composed/DataTable/cells.d.ts.map +1 -0
  12. package/dist/composed/DataTable/index.d.ts +3 -1
  13. package/dist/composed/DataTable/index.d.ts.map +1 -1
  14. package/dist/composed/DataTableEmptyState/DataTableEmptyState.d.ts +33 -0
  15. package/dist/composed/DataTableEmptyState/DataTableEmptyState.d.ts.map +1 -0
  16. package/dist/composed/DataTableEmptyState/index.d.ts +3 -0
  17. package/dist/composed/DataTableEmptyState/index.d.ts.map +1 -0
  18. package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
  19. package/dist/composed/JsonSchemaForm/conditional/DisabledGate.d.ts +15 -0
  20. package/dist/composed/JsonSchemaForm/conditional/DisabledGate.d.ts.map +1 -0
  21. package/dist/composed/JsonSchemaForm/schema/buildIndex.d.ts.map +1 -1
  22. package/dist/composed/JsonSchemaForm/schema/types.d.ts +4 -0
  23. package/dist/composed/JsonSchemaForm/schema/types.d.ts.map +1 -1
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +1184 -928
  27. package/dist/styles/globals.css +1 -1
  28. package/package.json +2 -1
  29. package/snippets/data-table-list-page.tsx +316 -0
package/dist/index.js CHANGED
@@ -28654,8 +28654,74 @@ function rq(e) {
28654
28654
  })), n.current;
28655
28655
  }
28656
28656
  //#endregion
28657
+ //#region src/composed/DataTablePagination/DataTablePagination.tsx
28658
+ function iq({ page: e, pageSize: n, totalCount: r, pageSizeOptions: i = [
28659
+ 5,
28660
+ 10,
28661
+ 25,
28662
+ 50,
28663
+ 100
28664
+ ], onPageChange: a, onPageSizeChange: o, children: s }) {
28665
+ let c = Math.ceil(r / n) || 0, l = r > 0 ? (e - 1) * n + 1 : 0, u = Math.min(e * n, r);
28666
+ return /* @__PURE__ */ U("div", {
28667
+ className: "flex items-center gap-4 p-2",
28668
+ children: [s && /* @__PURE__ */ H("div", {
28669
+ className: "flex-1",
28670
+ children: s
28671
+ }), /* @__PURE__ */ U("div", {
28672
+ className: "ml-auto flex items-center gap-4",
28673
+ children: [
28674
+ o && /* @__PURE__ */ U("div", {
28675
+ className: "flex items-center gap-2",
28676
+ children: [/* @__PURE__ */ H("span", {
28677
+ className: "text-xs text-muted-foreground",
28678
+ children: "Items per page"
28679
+ }), /* @__PURE__ */ U(tU, {
28680
+ value: String(n),
28681
+ onValueChange: (e) => o(Number(e)),
28682
+ children: [/* @__PURE__ */ H(iU, {
28683
+ className: "h-7 w-16",
28684
+ "aria-label": "Items per page",
28685
+ children: /* @__PURE__ */ H(rU, {})
28686
+ }), /* @__PURE__ */ H(aU, { children: i.map((e) => /* @__PURE__ */ H(sU, {
28687
+ value: String(e),
28688
+ children: e
28689
+ }, e)) })]
28690
+ })]
28691
+ }),
28692
+ /* @__PURE__ */ U("span", {
28693
+ className: "text-xs text-muted-foreground tabular-nums",
28694
+ children: [
28695
+ r > 0 ? `${l}-${u}` : "0",
28696
+ " of ",
28697
+ r
28698
+ ]
28699
+ }),
28700
+ /* @__PURE__ */ U("div", {
28701
+ className: "flex items-center gap-1",
28702
+ children: [/* @__PURE__ */ H(hb, {
28703
+ variant: "ghost",
28704
+ size: "icon-xs",
28705
+ disabled: e <= 1,
28706
+ onClick: () => a(e - 1),
28707
+ "aria-label": "Previous page",
28708
+ children: /* @__PURE__ */ H(y, { className: "size-4" })
28709
+ }), /* @__PURE__ */ H(hb, {
28710
+ variant: "ghost",
28711
+ size: "icon-xs",
28712
+ disabled: e >= c,
28713
+ onClick: () => a(e + 1),
28714
+ "aria-label": "Next page",
28715
+ children: /* @__PURE__ */ H(t, { className: "size-4" })
28716
+ })]
28717
+ })
28718
+ ]
28719
+ })]
28720
+ });
28721
+ }
28722
+ //#endregion
28657
28723
  //#region src/composed/DataTable/DataTableViewOptions.tsx
28658
- function iq({ table: e }) {
28724
+ function aq({ table: e }) {
28659
28725
  return /* @__PURE__ */ U(WL, { children: [/* @__PURE__ */ H(KL, {
28660
28726
  asChild: !0,
28661
28727
  children: /* @__PURE__ */ U(hb, {
@@ -28680,7 +28746,7 @@ function iq({ table: e }) {
28680
28746
  }
28681
28747
  //#endregion
28682
28748
  //#region src/composed/DataTable/DataTable.tsx
28683
- function aq(e, t) {
28749
+ function oq(e, t) {
28684
28750
  let [n, r] = V(!1);
28685
28751
  return R(() => {
28686
28752
  if (!e) return;
@@ -28690,8 +28756,8 @@ function aq(e, t) {
28690
28756
  };
28691
28757
  }, [e, t]), e && n;
28692
28758
  }
28693
- var oq = qK(), sq = QK(), cq = ZK();
28694
- function lq({ header: e, table: t }) {
28759
+ var sq = qK(), cq = QK(), lq = ZK();
28760
+ function uq({ header: e, table: t }) {
28695
28761
  let n = e.getResizeHandler();
28696
28762
  return /* @__PURE__ */ H("div", {
28697
28763
  role: "slider",
@@ -28713,14 +28779,14 @@ function lq({ header: e, table: t }) {
28713
28779
  className: q("absolute top-0 right-0 h-full w-1 cursor-col-resize touch-none select-none", e.column.getIsResizing() ? "bg-primary" : "bg-border/40 hover:bg-border")
28714
28780
  });
28715
28781
  }
28716
- function uq({ columns: e, data: t, selectionMode: n = "none", onSelectionChange: r, bulkActions: i, sorting: a, onSortingChange: o, emptyMessage: s = "No results.", enableColumnVisibility: c, enableColumnResizing: l, stickyHeader: u, loading: d, loadingDelay: f = 200, skeletonCount: p = 5, className: m, toolbar: h, footer: g, serverSide: _, tableOptions: v }) {
28717
- let [y, b] = V({}), [x, S] = V({}), [C, w] = V([]), T = aq(!!d, f), E = f > 0 ? T : !!d, D = a !== void 0, O = D ? a : C, k = D ? o : w, A = re(r);
28718
- A.current = r;
28719
- let j = re(t);
28782
+ function dq({ columns: e, data: t, selectionMode: n = "none", onSelectionChange: r, bulkActions: i, sorting: a, onSortingChange: o, emptyMessage: s = "No results.", enableColumnVisibility: c, enableColumnResizing: l, stickyHeader: u, loading: d, loadingDelay: f = 200, skeletonCount: p = 5, className: m, "aria-label": h, toolbar: g, pagination: _, footer: v, serverSide: y, tableOptions: b }) {
28783
+ let [x, S] = V({}), [C, w] = V({}), [T, E] = V([]), D = oq(!!d, f), O = f > 0 ? D : !!d, k = a !== void 0, A = k ? a : T, j = k ? o : E, M = re(r);
28784
+ M.current = r;
28785
+ let N = re(t);
28720
28786
  R(() => {
28721
- j.current !== t && (j.current = t, S({}), A.current?.([]));
28787
+ N.current !== t && (N.current = t, w({}), M.current?.([]));
28722
28788
  }, [t]);
28723
- let M = B(() => n === "multi" ? [{
28789
+ let P = B(() => n === "multi" ? [{
28724
28790
  id: "_select",
28725
28791
  header: ({ table: e }) => /* @__PURE__ */ H(Hw, {
28726
28792
  checked: e.getIsAllPageRowsSelected() || e.getIsSomePageRowsSelected() && "indeterminate",
@@ -28734,105 +28800,125 @@ function uq({ columns: e, data: t, selectionMode: n = "none", onSelectionChange:
28734
28800
  }),
28735
28801
  enableSorting: !1,
28736
28802
  enableHiding: !1
28737
- }, ...e] : e, [e, n]), N = F((e) => {
28738
- S((n) => {
28803
+ }, ...e] : e, [e, n]), I = F((e) => {
28804
+ w((n) => {
28739
28805
  let i = typeof e == "function" ? e(n) : e;
28740
28806
  if (r) {
28741
- let e = Object.keys(i).filter((e) => i[e]).map((e) => t[Number(e)]);
28807
+ let e = Object.keys(i).filter((e) => i[e]).map((e) => t[Number(e)]).filter((e) => e !== void 0);
28742
28808
  queueMicrotask(() => r(e));
28743
28809
  }
28744
28810
  return i;
28745
28811
  });
28746
- }, [t, r]), P = rq({
28812
+ }, [t, r]), L = rq({
28747
28813
  data: t,
28748
- columns: M,
28814
+ columns: P,
28749
28815
  state: {
28750
- sorting: O,
28751
- columnVisibility: y,
28752
- rowSelection: x
28816
+ sorting: A,
28817
+ columnVisibility: x,
28818
+ rowSelection: C
28753
28819
  },
28754
- onSortingChange: k,
28755
- onColumnVisibilityChange: b,
28756
- onRowSelectionChange: N,
28820
+ onSortingChange: j,
28821
+ onColumnVisibilityChange: S,
28822
+ onRowSelectionChange: I,
28757
28823
  enableColumnResizing: l,
28758
28824
  columnResizeMode: l ? "onChange" : void 0,
28759
- getCoreRowModel: oq,
28760
- getSortedRowModel: _ ? void 0 : sq,
28761
- getFilteredRowModel: _ ? void 0 : cq,
28762
- manualSorting: _,
28763
- manualPagination: _,
28764
- manualFiltering: _,
28765
- ...v
28766
- }), I = i ? P.getFilteredSelectedRowModel().rows.length : 0, L = h || i || c, ee = P.getRowModel().rows;
28767
- function te() {
28768
- return E && !ee.length ? Array.from({ length: p }).map((e, t) => /* @__PURE__ */ H(KW, {
28825
+ getCoreRowModel: sq,
28826
+ getSortedRowModel: y ? void 0 : cq,
28827
+ getFilteredRowModel: y ? void 0 : lq,
28828
+ manualSorting: y,
28829
+ manualPagination: y,
28830
+ manualFiltering: y,
28831
+ ...b
28832
+ }), ee = i ? L.getFilteredSelectedRowModel().rows.length : 0, te = g || i || c, z = L.getRowModel().rows, ne = P.length || 1;
28833
+ function ie() {
28834
+ return O && !z.length ? Array.from({ length: p }).map((e, t) => /* @__PURE__ */ H(KW, {
28769
28835
  className: "border-transparent",
28770
- children: M.map((e, n) => /* @__PURE__ */ U(JW, {
28836
+ children: P.map((e, n) => /* @__PURE__ */ U(JW, {
28771
28837
  className: "relative",
28772
28838
  children: [/* @__PURE__ */ H("div", {
28773
28839
  className: "invisible",
28774
28840
  children: "\xA0"
28775
28841
  }), /* @__PURE__ */ H("div", { className: "absolute inset-1 animate-pulse rounded-md bg-muted" })]
28776
28842
  }, `skeleton-${t}-${n}`))
28777
- }, `skeleton-${t}`)) : ee.length ? ee.map((e) => /* @__PURE__ */ H(KW, {
28843
+ }, `skeleton-${t}`)) : z.length ? z.map((e) => /* @__PURE__ */ H(KW, {
28778
28844
  "data-state": e.getIsSelected() ? "selected" : void 0,
28779
- className: E ? "pointer-events-none border-transparent hover:bg-transparent" : void 0,
28845
+ className: O ? "pointer-events-none border-transparent hover:bg-transparent" : void 0,
28780
28846
  children: e.getVisibleCells().map((e) => /* @__PURE__ */ U(JW, {
28781
- className: E ? "relative" : void 0,
28847
+ className: q("min-w-0", O && "relative", l && "overflow-hidden"),
28782
28848
  children: [/* @__PURE__ */ H("div", {
28783
- className: E ? "invisible h-full" : void 0,
28849
+ className: q("min-w-0", O && "invisible h-full"),
28784
28850
  children: $K(e.column.columnDef.cell, e.getContext())
28785
- }), E && /* @__PURE__ */ H("div", { className: "absolute inset-1 animate-pulse rounded-md bg-muted" })]
28851
+ }), O && /* @__PURE__ */ H("div", { className: "absolute inset-1 animate-pulse rounded-md bg-muted" })]
28786
28852
  }, e.id))
28787
28853
  }, e.id)) : /* @__PURE__ */ H(KW, {
28788
28854
  className: "hover:bg-transparent",
28789
28855
  children: /* @__PURE__ */ H(JW, {
28790
- colSpan: M.length,
28791
- className: "h-24 text-center text-muted-foreground",
28856
+ colSpan: ne,
28857
+ className: q("h-24 text-center", typeof s == "string" && "text-muted-foreground"),
28792
28858
  children: s
28793
28859
  })
28794
28860
  });
28795
28861
  }
28862
+ let ae = /* @__PURE__ */ U(HW, {
28863
+ style: l ? {
28864
+ width: L.getTotalSize(),
28865
+ minWidth: "100%",
28866
+ tableLayout: "fixed"
28867
+ } : void 0,
28868
+ children: [/* @__PURE__ */ H(UW, { children: L.getHeaderGroups().map((e) => /* @__PURE__ */ H(KW, { children: e.headers.map((e) => /* @__PURE__ */ U(qW, {
28869
+ style: l ? { width: e.getSize() } : void 0,
28870
+ "aria-sort": e.column.getIsSorted() === "asc" ? "ascending" : e.column.getIsSorted() === "desc" ? "descending" : e.column.getCanSort() ? "none" : void 0,
28871
+ className: q(l && "relative overflow-hidden", u && "sticky top-0 z-10 bg-background"),
28872
+ children: [e.isPlaceholder ? null : $K(e.column.columnDef.header, e.getContext()), l && e.column.getCanResize() && /* @__PURE__ */ H(uq, {
28873
+ header: e,
28874
+ table: L
28875
+ })]
28876
+ }, e.id)) }, e.id)) }), /* @__PURE__ */ H(WW, { children: ie() })]
28877
+ });
28796
28878
  return /* @__PURE__ */ U("div", {
28797
28879
  className: q("space-y-2", m),
28880
+ "aria-label": h,
28881
+ role: h ? "region" : void 0,
28798
28882
  children: [
28799
- L && /* @__PURE__ */ U("div", {
28883
+ te && /* @__PURE__ */ U("div", {
28800
28884
  className: "flex items-center justify-between gap-2 py-2",
28801
28885
  children: [/* @__PURE__ */ H("div", {
28802
28886
  className: "flex flex-1 items-center gap-2",
28803
- children: h
28887
+ children: g
28804
28888
  }), /* @__PURE__ */ U("div", {
28805
28889
  className: "flex items-center gap-2",
28806
- children: [c && /* @__PURE__ */ H(iq, { table: P }), i && /* @__PURE__ */ H("div", {
28807
- className: q("flex items-center gap-2", I === 0 && "opacity-50"),
28808
- ...I === 0 ? { inert: !0 } : {},
28890
+ children: [c && /* @__PURE__ */ H(aq, { table: L }), i && /* @__PURE__ */ H("div", {
28891
+ className: q("flex items-center gap-2", ee === 0 && "opacity-50"),
28892
+ "aria-disabled": ee === 0,
28893
+ ...ee === 0 ? { inert: !0 } : {},
28809
28894
  children: i
28810
28895
  })]
28811
28896
  })]
28812
28897
  }),
28813
28898
  /* @__PURE__ */ H("div", {
28814
- className: q("overflow-hidden rounded-lg border", u && "**:data-[slot=table-container]:overflow-auto"),
28815
- "aria-busy": E,
28816
- children: /* @__PURE__ */ U(HW, {
28817
- style: l ? { tableLayout: "fixed" } : void 0,
28818
- children: [/* @__PURE__ */ H(UW, { children: P.getHeaderGroups().map((e) => /* @__PURE__ */ H(KW, { children: e.headers.map((e) => /* @__PURE__ */ U(qW, {
28819
- style: l ? { width: e.getSize() } : void 0,
28820
- "aria-sort": e.column.getIsSorted() === "asc" ? "ascending" : e.column.getIsSorted() === "desc" ? "descending" : e.column.getCanSort() ? "none" : void 0,
28821
- className: q(l && "relative", u && "sticky top-0 z-10 bg-background"),
28822
- children: [e.isPlaceholder ? null : $K(e.column.columnDef.header, e.getContext()), l && e.column.getCanResize() && /* @__PURE__ */ H(lq, {
28823
- header: e,
28824
- table: P
28825
- })]
28826
- }, e.id)) }, e.id)) }), /* @__PURE__ */ H(WW, { children: te() })]
28827
- })
28899
+ className: q("overflow-hidden rounded-lg border", !u && "**:data-[slot=table-container]:overflow-x-auto", u && "**:data-[slot=table-container]:!overflow-visible"),
28900
+ "aria-busy": O,
28901
+ "aria-live": O ? "polite" : void 0,
28902
+ children: u ? /* @__PURE__ */ U($H, {
28903
+ "data-slot": "table-scroll",
28904
+ children: [ae, /* @__PURE__ */ H(eU, { orientation: "horizontal" })]
28905
+ }) : ae
28828
28906
  }),
28829
- g
28907
+ v,
28908
+ _ && /* @__PURE__ */ H(iq, {
28909
+ page: _.page,
28910
+ pageSize: _.pageSize,
28911
+ totalCount: _.totalCount,
28912
+ onPageChange: _.onPageChange,
28913
+ onPageSizeChange: _.onPageSizeChange,
28914
+ pageSizeOptions: _.pageSizeOptions
28915
+ })
28830
28916
  ]
28831
28917
  });
28832
28918
  }
28833
28919
  //#endregion
28834
28920
  //#region src/composed/DataTable/DataTableColumnHeader.tsx
28835
- function dq({ column: e, title: t, className: n, ...r }) {
28921
+ function fq({ column: e, title: t, className: n, ...r }) {
28836
28922
  if (!e.getCanSort()) return /* @__PURE__ */ H("div", {
28837
28923
  className: n,
28838
28924
  ...r,
@@ -28852,165 +28938,314 @@ function dq({ column: e, title: t, className: n, ...r }) {
28852
28938
  });
28853
28939
  }
28854
28940
  //#endregion
28855
- //#region src/composed/DataTablePagination/DataTablePagination.tsx
28856
- function fq({ page: e, pageSize: n, totalCount: r, pageSizeOptions: i = [
28857
- 5,
28858
- 10,
28859
- 25,
28860
- 50,
28861
- 100
28862
- ], onPageChange: a, onPageSizeChange: o, children: s }) {
28863
- let c = Math.ceil(r / n) || 0, l = r > 0 ? (e - 1) * n + 1 : 0, u = Math.min(e * n, r);
28864
- return /* @__PURE__ */ U("div", {
28865
- className: "flex items-center gap-4 p-2",
28866
- children: [s && /* @__PURE__ */ H("div", {
28867
- className: "flex-1",
28868
- children: s
28869
- }), /* @__PURE__ */ U("div", {
28870
- className: "ml-auto flex items-center gap-4",
28941
+ //#region src/composed/DataTable/cells.tsx
28942
+ var pq = 6e4, mq = 36e5, hq = 864e5;
28943
+ function gq(e) {
28944
+ let t = Date.now() - e.getTime();
28945
+ return t < pq ? "just now" : t < mq ? `${Math.floor(t / pq)}m ago` : t < hq ? `${Math.floor(t / mq)}h ago` : t < hq * 30 ? `${Math.floor(t / hq)}d ago` : e.toLocaleDateString(void 0, {
28946
+ month: "short",
28947
+ day: "numeric",
28948
+ year: "numeric"
28949
+ });
28950
+ }
28951
+ function _q(e) {
28952
+ return e.toLocaleString(void 0, {
28953
+ month: "short",
28954
+ day: "numeric",
28955
+ year: "numeric",
28956
+ hour: "2-digit",
28957
+ minute: "2-digit"
28958
+ });
28959
+ }
28960
+ function vq({ value: e, format: t = "relative" }) {
28961
+ if (!e) return /* @__PURE__ */ H("span", {
28962
+ className: "text-muted-foreground",
28963
+ children: "—"
28964
+ });
28965
+ let n = e instanceof Date ? e : new Date(e);
28966
+ if (Number.isNaN(n.getTime())) return /* @__PURE__ */ H("span", {
28967
+ className: "text-muted-foreground",
28968
+ children: "—"
28969
+ });
28970
+ let r = t === "relative" ? gq(n) : _q(n), i = _q(n);
28971
+ return /* @__PURE__ */ H(SU, {
28972
+ delayDuration: 300,
28973
+ children: /* @__PURE__ */ U(CU, { children: [/* @__PURE__ */ H(wU, {
28974
+ asChild: !0,
28975
+ children: /* @__PURE__ */ H("span", {
28976
+ className: "text-muted-foreground tabular-nums",
28977
+ children: r
28978
+ })
28979
+ }), /* @__PURE__ */ H(TU, {
28980
+ side: "top",
28981
+ children: /* @__PURE__ */ H("span", {
28982
+ className: "text-xs",
28983
+ children: i
28984
+ })
28985
+ })] })
28986
+ });
28987
+ }
28988
+ function yq({ value: e, variant: t = "default", icon: n }) {
28989
+ if (!e) return /* @__PURE__ */ H("span", {
28990
+ className: "text-muted-foreground",
28991
+ children: "—"
28992
+ });
28993
+ let r = /* @__PURE__ */ U(ob, {
28994
+ variant: t,
28995
+ className: "max-w-[180px] truncate",
28996
+ children: [n, e]
28997
+ });
28998
+ return e.length > 20 ? /* @__PURE__ */ H(SU, {
28999
+ delayDuration: 300,
29000
+ children: /* @__PURE__ */ U(CU, { children: [/* @__PURE__ */ H(wU, {
29001
+ asChild: !0,
29002
+ children: r
29003
+ }), /* @__PURE__ */ H(TU, {
29004
+ side: "top",
29005
+ className: "max-w-sm",
29006
+ children: /* @__PURE__ */ H("span", {
29007
+ className: "text-xs",
29008
+ children: e
29009
+ })
29010
+ })] })
29011
+ }) : r;
29012
+ }
29013
+ function bq({ value: e, maxLength: t = 32 }) {
29014
+ if (!e) return /* @__PURE__ */ H("span", {
29015
+ className: "text-muted-foreground",
29016
+ children: "—"
29017
+ });
29018
+ let n = e.length > t, r = n ? `${e.slice(0, t)}…` : e;
29019
+ return n ? /* @__PURE__ */ H(SU, {
29020
+ delayDuration: 300,
29021
+ children: /* @__PURE__ */ U(CU, { children: [/* @__PURE__ */ H(wU, {
29022
+ asChild: !0,
29023
+ children: /* @__PURE__ */ H("code", {
29024
+ className: "text-xs text-muted-foreground",
29025
+ children: r
29026
+ })
29027
+ }), /* @__PURE__ */ H(TU, {
29028
+ side: "top",
29029
+ className: "max-w-sm",
29030
+ children: /* @__PURE__ */ H("code", {
29031
+ className: "min-w-0 text-xs [overflow-wrap:anywhere]",
29032
+ children: e
29033
+ })
29034
+ })] })
29035
+ }) : /* @__PURE__ */ H("code", {
29036
+ className: "text-xs text-muted-foreground",
29037
+ children: r
29038
+ });
29039
+ }
29040
+ function xq({ value: e, maxLength: t = 24 }) {
29041
+ let [n, i] = V(!1), a = re(void 0), o = F(() => {
29042
+ e && (navigator.clipboard.writeText(e), i(!0), clearTimeout(a.current), a.current = setTimeout(() => i(!1), 2e3));
29043
+ }, [e]);
29044
+ if (!e) return /* @__PURE__ */ H("span", {
29045
+ className: "text-muted-foreground",
29046
+ children: "—"
29047
+ });
29048
+ let s = e.length > t;
29049
+ return /* @__PURE__ */ U("span", {
29050
+ className: "group/copy inline-flex items-center gap-1",
29051
+ children: [/* @__PURE__ */ H(SU, {
29052
+ delayDuration: 300,
29053
+ children: /* @__PURE__ */ U(CU, { children: [/* @__PURE__ */ H(wU, {
29054
+ asChild: !0,
29055
+ children: /* @__PURE__ */ H("code", {
29056
+ className: "text-xs text-muted-foreground",
29057
+ children: s ? `${e.slice(0, t)}…` : e
29058
+ })
29059
+ }), s && /* @__PURE__ */ H(TU, {
29060
+ side: "top",
29061
+ className: "max-w-sm",
29062
+ children: /* @__PURE__ */ H("code", {
29063
+ className: "min-w-0 text-xs [overflow-wrap:anywhere]",
29064
+ children: e
29065
+ })
29066
+ })] })
29067
+ }), /* @__PURE__ */ H(hb, {
29068
+ variant: "ghost",
29069
+ size: "icon-xs",
29070
+ className: q("size-5 opacity-0 transition-opacity group-hover/copy:opacity-100", n && "opacity-100"),
29071
+ onClick: o,
29072
+ "aria-label": n ? "Copied" : "Copy to clipboard",
29073
+ children: H(n ? r : p, { className: "size-3" })
29074
+ })]
29075
+ });
29076
+ }
29077
+ function Sq({ value: e, className: t }) {
29078
+ return e ? /* @__PURE__ */ H(SU, {
29079
+ delayDuration: 500,
29080
+ children: /* @__PURE__ */ U(CU, { children: [/* @__PURE__ */ H(wU, {
29081
+ asChild: !0,
29082
+ children: /* @__PURE__ */ H("span", {
29083
+ className: q("block max-w-[200px] truncate", t),
29084
+ children: e
29085
+ })
29086
+ }), e.length > 30 && /* @__PURE__ */ H(TU, {
29087
+ side: "top",
29088
+ className: "max-w-md",
29089
+ children: /* @__PURE__ */ H("span", {
29090
+ className: "min-w-0 text-xs [overflow-wrap:anywhere]",
29091
+ children: e
29092
+ })
29093
+ })] })
29094
+ }) : /* @__PURE__ */ H("span", {
29095
+ className: "text-muted-foreground",
29096
+ children: "—"
29097
+ });
29098
+ }
29099
+ //#endregion
29100
+ //#region src/composed/DataTableEmptyState/DataTableEmptyState.tsx
29101
+ function Cq(e) {
29102
+ let { variant: t, icon: n, title: r, description: i, className: a } = e, o = r.trim().length > 0, s = i.trim().length > 0;
29103
+ return t === "no-results" ? /* @__PURE__ */ U(aR, {
29104
+ className: q("py-12 text-foreground", a),
29105
+ role: "status",
29106
+ children: [/* @__PURE__ */ U(oR, {
29107
+ className: "max-w-md",
28871
29108
  children: [
28872
- o && /* @__PURE__ */ U("div", {
28873
- className: "flex items-center gap-2",
28874
- children: [/* @__PURE__ */ H("span", {
28875
- className: "text-xs text-muted-foreground",
28876
- children: "Items per page"
28877
- }), /* @__PURE__ */ U(tU, {
28878
- value: String(n),
28879
- onValueChange: (e) => o(Number(e)),
28880
- children: [/* @__PURE__ */ H(iU, {
28881
- className: "h-7 w-16",
28882
- "aria-label": "Items per page",
28883
- children: /* @__PURE__ */ H(rU, {})
28884
- }), /* @__PURE__ */ H(aU, { children: i.map((e) => /* @__PURE__ */ H(sU, {
28885
- value: String(e),
28886
- children: e
28887
- }, e)) })]
28888
- })]
29109
+ n && /* @__PURE__ */ H(cR, {
29110
+ variant: "icon",
29111
+ children: n
28889
29112
  }),
28890
- /* @__PURE__ */ U("span", {
28891
- className: "text-xs text-muted-foreground tabular-nums",
28892
- children: [
28893
- r > 0 ? `${l}-${u}` : "0",
28894
- " of ",
28895
- r
28896
- ]
29113
+ o && /* @__PURE__ */ H(lR, {
29114
+ className: "[overflow-wrap:anywhere] text-foreground",
29115
+ children: r
28897
29116
  }),
28898
- /* @__PURE__ */ U("div", {
28899
- className: "flex items-center gap-1",
28900
- children: [/* @__PURE__ */ H(hb, {
28901
- variant: "ghost",
28902
- size: "icon-xs",
28903
- disabled: e <= 1,
28904
- onClick: () => a(e - 1),
28905
- "aria-label": "Previous page",
28906
- children: /* @__PURE__ */ H(y, { className: "size-4" })
28907
- }), /* @__PURE__ */ H(hb, {
28908
- variant: "ghost",
28909
- size: "icon-xs",
28910
- disabled: e >= c,
28911
- onClick: () => a(e + 1),
28912
- "aria-label": "Next page",
28913
- children: /* @__PURE__ */ H(t, { className: "size-4" })
28914
- })]
29117
+ s && /* @__PURE__ */ H(uR, {
29118
+ className: "[overflow-wrap:anywhere]",
29119
+ children: i
28915
29120
  })
28916
29121
  ]
28917
- })]
29122
+ }), e.action && /* @__PURE__ */ H(dR, { children: e.action })]
29123
+ }) : /* @__PURE__ */ U(aR, {
29124
+ className: q("py-16 text-foreground", a),
29125
+ role: "status",
29126
+ children: [
29127
+ /* @__PURE__ */ U(oR, {
29128
+ className: "max-w-md",
29129
+ children: [
29130
+ n && /* @__PURE__ */ H(cR, {
29131
+ variant: "icon",
29132
+ children: n
29133
+ }),
29134
+ o && /* @__PURE__ */ H(lR, {
29135
+ className: "text-base font-semibold [overflow-wrap:anywhere] text-foreground",
29136
+ children: r
29137
+ }),
29138
+ s && /* @__PURE__ */ H(uR, {
29139
+ className: "[overflow-wrap:anywhere]",
29140
+ children: i
29141
+ })
29142
+ ]
29143
+ }),
29144
+ e.children && /* @__PURE__ */ H("div", {
29145
+ className: "w-full max-w-2xl px-6 pt-2",
29146
+ children: e.children
29147
+ }),
29148
+ (e.primaryAction || e.secondaryAction) && /* @__PURE__ */ H(dR, { children: /* @__PURE__ */ U("div", {
29149
+ className: "flex flex-wrap items-center gap-2",
29150
+ children: [e.secondaryAction, e.primaryAction]
29151
+ }) })
29152
+ ]
28918
29153
  });
28919
29154
  }
28920
29155
  //#endregion
28921
29156
  //#region ../../node_modules/date-fns/constants.js
28922
- var pq = 365.2425, mq = 6048e5, hq = 864e5, gq = 3600 * 24;
28923
- gq * 7, gq * pq / 12 * 3;
28924
- var _q = Symbol.for("constructDateFrom");
29157
+ var wq = 365.2425, Tq = 6048e5, Eq = 864e5, Dq = 3600 * 24;
29158
+ Dq * 7, Dq * wq / 12 * 3;
29159
+ var Oq = Symbol.for("constructDateFrom");
28925
29160
  //#endregion
28926
29161
  //#region ../../node_modules/date-fns/constructFrom.js
28927
- function vq(e, t) {
28928
- return typeof e == "function" ? e(t) : e && typeof e == "object" && _q in e ? e[_q](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
29162
+ function kq(e, t) {
29163
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && Oq in e ? e[Oq](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
28929
29164
  }
28930
29165
  //#endregion
28931
29166
  //#region ../../node_modules/date-fns/toDate.js
28932
- function yq(e, t) {
28933
- return vq(t || e, e);
29167
+ function Aq(e, t) {
29168
+ return kq(t || e, e);
28934
29169
  }
28935
29170
  //#endregion
28936
29171
  //#region ../../node_modules/date-fns/_lib/defaultOptions.js
28937
- var bq = {};
28938
- function xq() {
28939
- return bq;
29172
+ var jq = {};
29173
+ function Mq() {
29174
+ return jq;
28940
29175
  }
28941
29176
  //#endregion
28942
29177
  //#region ../../node_modules/date-fns/startOfWeek.js
28943
- function Sq(e, t) {
28944
- let n = xq(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = yq(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
29178
+ function Nq(e, t) {
29179
+ let n = Mq(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = Aq(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
28945
29180
  return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
28946
29181
  }
28947
29182
  //#endregion
28948
29183
  //#region ../../node_modules/date-fns/startOfISOWeek.js
28949
- function Cq(e, t) {
28950
- return Sq(e, {
29184
+ function Pq(e, t) {
29185
+ return Nq(e, {
28951
29186
  ...t,
28952
29187
  weekStartsOn: 1
28953
29188
  });
28954
29189
  }
28955
29190
  //#endregion
28956
29191
  //#region ../../node_modules/date-fns/getISOWeekYear.js
28957
- function wq(e, t) {
28958
- let n = yq(e, t?.in), r = n.getFullYear(), i = vq(n, 0);
29192
+ function Fq(e, t) {
29193
+ let n = Aq(e, t?.in), r = n.getFullYear(), i = kq(n, 0);
28959
29194
  i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
28960
- let a = Cq(i), o = vq(n, 0);
29195
+ let a = Pq(i), o = kq(n, 0);
28961
29196
  o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
28962
- let s = Cq(o);
29197
+ let s = Pq(o);
28963
29198
  return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
28964
29199
  }
28965
29200
  //#endregion
28966
29201
  //#region ../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
28967
- function Tq(e) {
28968
- let t = yq(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
29202
+ function Iq(e) {
29203
+ let t = Aq(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
28969
29204
  return n.setUTCFullYear(t.getFullYear()), e - +n;
28970
29205
  }
28971
29206
  //#endregion
28972
29207
  //#region ../../node_modules/date-fns/_lib/normalizeDates.js
28973
- function Eq(e, ...t) {
28974
- let n = vq.bind(null, e || t.find((e) => typeof e == "object"));
29208
+ function Lq(e, ...t) {
29209
+ let n = kq.bind(null, e || t.find((e) => typeof e == "object"));
28975
29210
  return t.map(n);
28976
29211
  }
28977
29212
  //#endregion
28978
29213
  //#region ../../node_modules/date-fns/startOfDay.js
28979
- function Dq(e, t) {
28980
- let n = yq(e, t?.in);
29214
+ function Rq(e, t) {
29215
+ let n = Aq(e, t?.in);
28981
29216
  return n.setHours(0, 0, 0, 0), n;
28982
29217
  }
28983
29218
  //#endregion
28984
29219
  //#region ../../node_modules/date-fns/differenceInCalendarDays.js
28985
- function Oq(e, t, n) {
28986
- let [r, i] = Eq(n?.in, e, t), a = Dq(r), o = Dq(i), s = +a - Tq(a), c = +o - Tq(o);
28987
- return Math.round((s - c) / hq);
29220
+ function zq(e, t, n) {
29221
+ let [r, i] = Lq(n?.in, e, t), a = Rq(r), o = Rq(i), s = +a - Iq(a), c = +o - Iq(o);
29222
+ return Math.round((s - c) / Eq);
28988
29223
  }
28989
29224
  //#endregion
28990
29225
  //#region ../../node_modules/date-fns/startOfISOWeekYear.js
28991
- function kq(e, t) {
28992
- let n = wq(e, t), r = vq(t?.in || e, 0);
28993
- return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Cq(r);
29226
+ function Bq(e, t) {
29227
+ let n = Fq(e, t), r = kq(t?.in || e, 0);
29228
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Pq(r);
28994
29229
  }
28995
29230
  //#endregion
28996
29231
  //#region ../../node_modules/date-fns/isDate.js
28997
- function Aq(e) {
29232
+ function Vq(e) {
28998
29233
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
28999
29234
  }
29000
29235
  //#endregion
29001
29236
  //#region ../../node_modules/date-fns/isValid.js
29002
- function jq(e) {
29003
- return !(!Aq(e) && typeof e != "number" || isNaN(+yq(e)));
29237
+ function Hq(e) {
29238
+ return !(!Vq(e) && typeof e != "number" || isNaN(+Aq(e)));
29004
29239
  }
29005
29240
  //#endregion
29006
29241
  //#region ../../node_modules/date-fns/startOfYear.js
29007
- function Mq(e, t) {
29008
- let n = yq(e, t?.in);
29242
+ function Uq(e, t) {
29243
+ let n = Aq(e, t?.in);
29009
29244
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
29010
29245
  }
29011
29246
  //#endregion
29012
29247
  //#region ../../node_modules/date-fns/locale/en-US/_lib/formatDistance.js
29013
- var Nq = {
29248
+ var Wq = {
29014
29249
  lessThanXSeconds: {
29015
29250
  one: "less than a second",
29016
29251
  other: "less than {{count}} seconds"
@@ -29072,20 +29307,20 @@ var Nq = {
29072
29307
  one: "almost 1 year",
29073
29308
  other: "almost {{count}} years"
29074
29309
  }
29075
- }, Pq = (e, t, n) => {
29076
- let r, i = Nq[e];
29310
+ }, Gq = (e, t, n) => {
29311
+ let r, i = Wq[e];
29077
29312
  return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
29078
29313
  };
29079
29314
  //#endregion
29080
29315
  //#region ../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js
29081
- function Fq(e) {
29316
+ function Kq(e) {
29082
29317
  return (t = {}) => {
29083
29318
  let n = t.width ? String(t.width) : e.defaultWidth;
29084
29319
  return e.formats[n] || e.formats[e.defaultWidth];
29085
29320
  };
29086
29321
  }
29087
- var Iq = {
29088
- date: Fq({
29322
+ var qq = {
29323
+ date: Kq({
29089
29324
  formats: {
29090
29325
  full: "EEEE, MMMM do, y",
29091
29326
  long: "MMMM do, y",
@@ -29094,7 +29329,7 @@ var Iq = {
29094
29329
  },
29095
29330
  defaultWidth: "full"
29096
29331
  }),
29097
- time: Fq({
29332
+ time: Kq({
29098
29333
  formats: {
29099
29334
  full: "h:mm:ss a zzzz",
29100
29335
  long: "h:mm:ss a z",
@@ -29103,7 +29338,7 @@ var Iq = {
29103
29338
  },
29104
29339
  defaultWidth: "full"
29105
29340
  }),
29106
- dateTime: Fq({
29341
+ dateTime: Kq({
29107
29342
  formats: {
29108
29343
  full: "{{date}} 'at' {{time}}",
29109
29344
  long: "{{date}} 'at' {{time}}",
@@ -29112,17 +29347,17 @@ var Iq = {
29112
29347
  },
29113
29348
  defaultWidth: "full"
29114
29349
  })
29115
- }, Lq = {
29350
+ }, Jq = {
29116
29351
  lastWeek: "'last' eeee 'at' p",
29117
29352
  yesterday: "'yesterday at' p",
29118
29353
  today: "'today at' p",
29119
29354
  tomorrow: "'tomorrow at' p",
29120
29355
  nextWeek: "eeee 'at' p",
29121
29356
  other: "P"
29122
- }, Rq = (e, t, n, r) => Lq[e];
29357
+ }, Yq = (e, t, n, r) => Jq[e];
29123
29358
  //#endregion
29124
29359
  //#region ../../node_modules/date-fns/locale/_lib/buildLocalizeFn.js
29125
- function zq(e) {
29360
+ function Xq(e) {
29126
29361
  return (t, n) => {
29127
29362
  let r = n?.context ? String(n.context) : "standalone", i;
29128
29363
  if (r === "formatting" && e.formattingValues) {
@@ -29136,7 +29371,7 @@ function zq(e) {
29136
29371
  return i[a];
29137
29372
  };
29138
29373
  }
29139
- var Bq = {
29374
+ var Zq = {
29140
29375
  ordinalNumber: (e, t) => {
29141
29376
  let n = Number(e), r = n % 100;
29142
29377
  if (r > 20 || r < 10) switch (r % 10) {
@@ -29146,7 +29381,7 @@ var Bq = {
29146
29381
  }
29147
29382
  return n + "th";
29148
29383
  },
29149
- era: zq({
29384
+ era: Xq({
29150
29385
  values: {
29151
29386
  narrow: ["B", "A"],
29152
29387
  abbreviated: ["BC", "AD"],
@@ -29154,7 +29389,7 @@ var Bq = {
29154
29389
  },
29155
29390
  defaultWidth: "wide"
29156
29391
  }),
29157
- quarter: zq({
29392
+ quarter: Xq({
29158
29393
  values: {
29159
29394
  narrow: [
29160
29395
  "1",
@@ -29178,7 +29413,7 @@ var Bq = {
29178
29413
  defaultWidth: "wide",
29179
29414
  argumentCallback: (e) => e - 1
29180
29415
  }),
29181
- month: zq({
29416
+ month: Xq({
29182
29417
  values: {
29183
29418
  narrow: [
29184
29419
  "J",
@@ -29225,7 +29460,7 @@ var Bq = {
29225
29460
  },
29226
29461
  defaultWidth: "wide"
29227
29462
  }),
29228
- day: zq({
29463
+ day: Xq({
29229
29464
  values: {
29230
29465
  narrow: [
29231
29466
  "S",
@@ -29266,7 +29501,7 @@ var Bq = {
29266
29501
  },
29267
29502
  defaultWidth: "wide"
29268
29503
  }),
29269
- dayPeriod: zq({
29504
+ dayPeriod: Xq({
29270
29505
  values: {
29271
29506
  narrow: {
29272
29507
  am: "a",
@@ -29337,11 +29572,11 @@ var Bq = {
29337
29572
  };
29338
29573
  //#endregion
29339
29574
  //#region ../../node_modules/date-fns/locale/_lib/buildMatchFn.js
29340
- function Vq(e) {
29575
+ function Qq(e) {
29341
29576
  return (t, n = {}) => {
29342
29577
  let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
29343
29578
  if (!a) return null;
29344
- let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Uq(s, (e) => e.test(o)) : Hq(s, (e) => e.test(o)), l;
29579
+ let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? eJ(s, (e) => e.test(o)) : $q(s, (e) => e.test(o)), l;
29345
29580
  l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
29346
29581
  let u = t.slice(o.length);
29347
29582
  return {
@@ -29350,15 +29585,15 @@ function Vq(e) {
29350
29585
  };
29351
29586
  };
29352
29587
  }
29353
- function Hq(e, t) {
29588
+ function $q(e, t) {
29354
29589
  for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
29355
29590
  }
29356
- function Uq(e, t) {
29591
+ function eJ(e, t) {
29357
29592
  for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
29358
29593
  }
29359
29594
  //#endregion
29360
29595
  //#region ../../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
29361
- function Wq(e) {
29596
+ function tJ(e) {
29362
29597
  return (t, n = {}) => {
29363
29598
  let r = t.match(e.matchPattern);
29364
29599
  if (!r) return null;
@@ -29375,19 +29610,19 @@ function Wq(e) {
29375
29610
  }
29376
29611
  //#endregion
29377
29612
  //#region ../../node_modules/date-fns/locale/en-US.js
29378
- var Gq = {
29613
+ var nJ = {
29379
29614
  code: "en-US",
29380
- formatDistance: Pq,
29381
- formatLong: Iq,
29382
- formatRelative: Rq,
29383
- localize: Bq,
29615
+ formatDistance: Gq,
29616
+ formatLong: qq,
29617
+ formatRelative: Yq,
29618
+ localize: Zq,
29384
29619
  match: {
29385
- ordinalNumber: Wq({
29620
+ ordinalNumber: tJ({
29386
29621
  matchPattern: /^(\d+)(th|st|nd|rd)?/i,
29387
29622
  parsePattern: /\d+/i,
29388
29623
  valueCallback: (e) => parseInt(e, 10)
29389
29624
  }),
29390
- era: Vq({
29625
+ era: Qq({
29391
29626
  matchPatterns: {
29392
29627
  narrow: /^(b|a)/i,
29393
29628
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
@@ -29397,7 +29632,7 @@ var Gq = {
29397
29632
  parsePatterns: { any: [/^b/i, /^(a|c)/i] },
29398
29633
  defaultParseWidth: "any"
29399
29634
  }),
29400
- quarter: Vq({
29635
+ quarter: Qq({
29401
29636
  matchPatterns: {
29402
29637
  narrow: /^[1234]/i,
29403
29638
  abbreviated: /^q[1234]/i,
@@ -29413,7 +29648,7 @@ var Gq = {
29413
29648
  defaultParseWidth: "any",
29414
29649
  valueCallback: (e) => e + 1
29415
29650
  }),
29416
- month: Vq({
29651
+ month: Qq({
29417
29652
  matchPatterns: {
29418
29653
  narrow: /^[jfmasond]/i,
29419
29654
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
@@ -29452,7 +29687,7 @@ var Gq = {
29452
29687
  },
29453
29688
  defaultParseWidth: "any"
29454
29689
  }),
29455
- day: Vq({
29690
+ day: Qq({
29456
29691
  matchPatterns: {
29457
29692
  narrow: /^[smtwf]/i,
29458
29693
  short: /^(su|mo|tu|we|th|fr|sa)/i,
@@ -29482,7 +29717,7 @@ var Gq = {
29482
29717
  },
29483
29718
  defaultParseWidth: "any"
29484
29719
  }),
29485
- dayPeriod: Vq({
29720
+ dayPeriod: Qq({
29486
29721
  matchPatterns: {
29487
29722
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
29488
29723
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
@@ -29508,56 +29743,56 @@ var Gq = {
29508
29743
  };
29509
29744
  //#endregion
29510
29745
  //#region ../../node_modules/date-fns/getDayOfYear.js
29511
- function Kq(e, t) {
29512
- let n = yq(e, t?.in);
29513
- return Oq(n, Mq(n)) + 1;
29746
+ function rJ(e, t) {
29747
+ let n = Aq(e, t?.in);
29748
+ return zq(n, Uq(n)) + 1;
29514
29749
  }
29515
29750
  //#endregion
29516
29751
  //#region ../../node_modules/date-fns/getISOWeek.js
29517
- function qq(e, t) {
29518
- let n = yq(e, t?.in), r = Cq(n) - +kq(n);
29519
- return Math.round(r / mq) + 1;
29752
+ function iJ(e, t) {
29753
+ let n = Aq(e, t?.in), r = Pq(n) - +Bq(n);
29754
+ return Math.round(r / Tq) + 1;
29520
29755
  }
29521
29756
  //#endregion
29522
29757
  //#region ../../node_modules/date-fns/getWeekYear.js
29523
- function Jq(e, t) {
29524
- let n = yq(e, t?.in), r = n.getFullYear(), i = xq(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = vq(t?.in || e, 0);
29758
+ function aJ(e, t) {
29759
+ let n = Aq(e, t?.in), r = n.getFullYear(), i = Mq(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = kq(t?.in || e, 0);
29525
29760
  o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
29526
- let s = Sq(o, t), c = vq(t?.in || e, 0);
29761
+ let s = Nq(o, t), c = kq(t?.in || e, 0);
29527
29762
  c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
29528
- let l = Sq(c, t);
29763
+ let l = Nq(c, t);
29529
29764
  return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
29530
29765
  }
29531
29766
  //#endregion
29532
29767
  //#region ../../node_modules/date-fns/startOfWeekYear.js
29533
- function Yq(e, t) {
29534
- let n = xq(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Jq(e, t), a = vq(t?.in || e, 0);
29535
- return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), Sq(a, t);
29768
+ function oJ(e, t) {
29769
+ let n = Mq(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = aJ(e, t), a = kq(t?.in || e, 0);
29770
+ return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), Nq(a, t);
29536
29771
  }
29537
29772
  //#endregion
29538
29773
  //#region ../../node_modules/date-fns/getWeek.js
29539
- function Xq(e, t) {
29540
- let n = yq(e, t?.in), r = Sq(n, t) - +Yq(n, t);
29541
- return Math.round(r / mq) + 1;
29774
+ function sJ(e, t) {
29775
+ let n = Aq(e, t?.in), r = Nq(n, t) - +oJ(n, t);
29776
+ return Math.round(r / Tq) + 1;
29542
29777
  }
29543
29778
  //#endregion
29544
29779
  //#region ../../node_modules/date-fns/_lib/addLeadingZeros.js
29545
- function Zq(e, t) {
29780
+ function cJ(e, t) {
29546
29781
  return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
29547
29782
  }
29548
29783
  //#endregion
29549
29784
  //#region ../../node_modules/date-fns/_lib/format/lightFormatters.js
29550
- var Qq = {
29785
+ var lJ = {
29551
29786
  y(e, t) {
29552
29787
  let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
29553
- return Zq(t === "yy" ? r % 100 : r, t.length);
29788
+ return cJ(t === "yy" ? r % 100 : r, t.length);
29554
29789
  },
29555
29790
  M(e, t) {
29556
29791
  let n = e.getMonth();
29557
- return t === "M" ? String(n + 1) : Zq(n + 1, 2);
29792
+ return t === "M" ? String(n + 1) : cJ(n + 1, 2);
29558
29793
  },
29559
29794
  d(e, t) {
29560
- return Zq(e.getDate(), t.length);
29795
+ return cJ(e.getDate(), t.length);
29561
29796
  },
29562
29797
  a(e, t) {
29563
29798
  let n = e.getHours() / 12 >= 1 ? "pm" : "am";
@@ -29570,22 +29805,22 @@ var Qq = {
29570
29805
  }
29571
29806
  },
29572
29807
  h(e, t) {
29573
- return Zq(e.getHours() % 12 || 12, t.length);
29808
+ return cJ(e.getHours() % 12 || 12, t.length);
29574
29809
  },
29575
29810
  H(e, t) {
29576
- return Zq(e.getHours(), t.length);
29811
+ return cJ(e.getHours(), t.length);
29577
29812
  },
29578
29813
  m(e, t) {
29579
- return Zq(e.getMinutes(), t.length);
29814
+ return cJ(e.getMinutes(), t.length);
29580
29815
  },
29581
29816
  s(e, t) {
29582
- return Zq(e.getSeconds(), t.length);
29817
+ return cJ(e.getSeconds(), t.length);
29583
29818
  },
29584
29819
  S(e, t) {
29585
29820
  let n = t.length, r = e.getMilliseconds();
29586
- return Zq(Math.trunc(r * 10 ** (n - 3)), t.length);
29821
+ return cJ(Math.trunc(r * 10 ** (n - 3)), t.length);
29587
29822
  }
29588
- }, $q = {
29823
+ }, uJ = {
29589
29824
  am: "am",
29590
29825
  pm: "pm",
29591
29826
  midnight: "midnight",
@@ -29594,7 +29829,7 @@ var Qq = {
29594
29829
  afternoon: "afternoon",
29595
29830
  evening: "evening",
29596
29831
  night: "night"
29597
- }, eJ = {
29832
+ }, dJ = {
29598
29833
  G: function(e, t, n) {
29599
29834
  let r = +(e.getFullYear() > 0);
29600
29835
  switch (t) {
@@ -29610,23 +29845,23 @@ var Qq = {
29610
29845
  let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
29611
29846
  return n.ordinalNumber(r, { unit: "year" });
29612
29847
  }
29613
- return Qq.y(e, t);
29848
+ return lJ.y(e, t);
29614
29849
  },
29615
29850
  Y: function(e, t, n, r) {
29616
- let i = Jq(e, r), a = i > 0 ? i : 1 - i;
29617
- return t === "YY" ? Zq(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : Zq(a, t.length);
29851
+ let i = aJ(e, r), a = i > 0 ? i : 1 - i;
29852
+ return t === "YY" ? cJ(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : cJ(a, t.length);
29618
29853
  },
29619
29854
  R: function(e, t) {
29620
- return Zq(wq(e), t.length);
29855
+ return cJ(Fq(e), t.length);
29621
29856
  },
29622
29857
  u: function(e, t) {
29623
- return Zq(e.getFullYear(), t.length);
29858
+ return cJ(e.getFullYear(), t.length);
29624
29859
  },
29625
29860
  Q: function(e, t, n) {
29626
29861
  let r = Math.ceil((e.getMonth() + 1) / 3);
29627
29862
  switch (t) {
29628
29863
  case "Q": return String(r);
29629
- case "QQ": return Zq(r, 2);
29864
+ case "QQ": return cJ(r, 2);
29630
29865
  case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
29631
29866
  case "QQQ": return n.quarter(r, {
29632
29867
  width: "abbreviated",
@@ -29646,7 +29881,7 @@ var Qq = {
29646
29881
  let r = Math.ceil((e.getMonth() + 1) / 3);
29647
29882
  switch (t) {
29648
29883
  case "q": return String(r);
29649
- case "qq": return Zq(r, 2);
29884
+ case "qq": return cJ(r, 2);
29650
29885
  case "qo": return n.ordinalNumber(r, { unit: "quarter" });
29651
29886
  case "qqq": return n.quarter(r, {
29652
29887
  width: "abbreviated",
@@ -29666,7 +29901,7 @@ var Qq = {
29666
29901
  let r = e.getMonth();
29667
29902
  switch (t) {
29668
29903
  case "M":
29669
- case "MM": return Qq.M(e, t);
29904
+ case "MM": return lJ.M(e, t);
29670
29905
  case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
29671
29906
  case "MMM": return n.month(r, {
29672
29907
  width: "abbreviated",
@@ -29686,7 +29921,7 @@ var Qq = {
29686
29921
  let r = e.getMonth();
29687
29922
  switch (t) {
29688
29923
  case "L": return String(r + 1);
29689
- case "LL": return Zq(r + 1, 2);
29924
+ case "LL": return cJ(r + 1, 2);
29690
29925
  case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
29691
29926
  case "LLL": return n.month(r, {
29692
29927
  width: "abbreviated",
@@ -29703,19 +29938,19 @@ var Qq = {
29703
29938
  }
29704
29939
  },
29705
29940
  w: function(e, t, n, r) {
29706
- let i = Xq(e, r);
29707
- return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : Zq(i, t.length);
29941
+ let i = sJ(e, r);
29942
+ return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : cJ(i, t.length);
29708
29943
  },
29709
29944
  I: function(e, t, n) {
29710
- let r = qq(e);
29711
- return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : Zq(r, t.length);
29945
+ let r = iJ(e);
29946
+ return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : cJ(r, t.length);
29712
29947
  },
29713
29948
  d: function(e, t, n) {
29714
- return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Qq.d(e, t);
29949
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : lJ.d(e, t);
29715
29950
  },
29716
29951
  D: function(e, t, n) {
29717
- let r = Kq(e);
29718
- return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : Zq(r, t.length);
29952
+ let r = rJ(e);
29953
+ return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : cJ(r, t.length);
29719
29954
  },
29720
29955
  E: function(e, t, n) {
29721
29956
  let r = e.getDay();
@@ -29744,7 +29979,7 @@ var Qq = {
29744
29979
  let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
29745
29980
  switch (t) {
29746
29981
  case "e": return String(a);
29747
- case "ee": return Zq(a, 2);
29982
+ case "ee": return cJ(a, 2);
29748
29983
  case "eo": return n.ordinalNumber(a, { unit: "day" });
29749
29984
  case "eee": return n.day(i, {
29750
29985
  width: "abbreviated",
@@ -29768,7 +30003,7 @@ var Qq = {
29768
30003
  let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
29769
30004
  switch (t) {
29770
30005
  case "c": return String(a);
29771
- case "cc": return Zq(a, t.length);
30006
+ case "cc": return cJ(a, t.length);
29772
30007
  case "co": return n.ordinalNumber(a, { unit: "day" });
29773
30008
  case "ccc": return n.day(i, {
29774
30009
  width: "abbreviated",
@@ -29792,7 +30027,7 @@ var Qq = {
29792
30027
  let r = e.getDay(), i = r === 0 ? 7 : r;
29793
30028
  switch (t) {
29794
30029
  case "i": return String(i);
29795
- case "ii": return Zq(i, t.length);
30030
+ case "ii": return cJ(i, t.length);
29796
30031
  case "io": return n.ordinalNumber(i, { unit: "day" });
29797
30032
  case "iii": return n.day(r, {
29798
30033
  width: "abbreviated",
@@ -29836,7 +30071,7 @@ var Qq = {
29836
30071
  },
29837
30072
  b: function(e, t, n) {
29838
30073
  let r = e.getHours(), i;
29839
- switch (i = r === 12 ? $q.noon : r === 0 ? $q.midnight : r / 12 >= 1 ? "pm" : "am", t) {
30074
+ switch (i = r === 12 ? uJ.noon : r === 0 ? uJ.midnight : r / 12 >= 1 ? "pm" : "am", t) {
29840
30075
  case "b":
29841
30076
  case "bb": return n.dayPeriod(i, {
29842
30077
  width: "abbreviated",
@@ -29858,7 +30093,7 @@ var Qq = {
29858
30093
  },
29859
30094
  B: function(e, t, n) {
29860
30095
  let r = e.getHours(), i;
29861
- switch (i = r >= 17 ? $q.evening : r >= 12 ? $q.afternoon : r >= 4 ? $q.morning : $q.night, t) {
30096
+ switch (i = r >= 17 ? uJ.evening : r >= 12 ? uJ.afternoon : r >= 4 ? uJ.morning : uJ.night, t) {
29862
30097
  case "B":
29863
30098
  case "BB":
29864
30099
  case "BBB": return n.dayPeriod(i, {
@@ -29880,45 +30115,45 @@ var Qq = {
29880
30115
  let t = e.getHours() % 12;
29881
30116
  return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
29882
30117
  }
29883
- return Qq.h(e, t);
30118
+ return lJ.h(e, t);
29884
30119
  },
29885
30120
  H: function(e, t, n) {
29886
- return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : Qq.H(e, t);
30121
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : lJ.H(e, t);
29887
30122
  },
29888
30123
  K: function(e, t, n) {
29889
30124
  let r = e.getHours() % 12;
29890
- return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : Zq(r, t.length);
30125
+ return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : cJ(r, t.length);
29891
30126
  },
29892
30127
  k: function(e, t, n) {
29893
30128
  let r = e.getHours();
29894
- return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : Zq(r, t.length);
30129
+ return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : cJ(r, t.length);
29895
30130
  },
29896
30131
  m: function(e, t, n) {
29897
- return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Qq.m(e, t);
30132
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : lJ.m(e, t);
29898
30133
  },
29899
30134
  s: function(e, t, n) {
29900
- return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : Qq.s(e, t);
30135
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : lJ.s(e, t);
29901
30136
  },
29902
30137
  S: function(e, t) {
29903
- return Qq.S(e, t);
30138
+ return lJ.S(e, t);
29904
30139
  },
29905
30140
  X: function(e, t, n) {
29906
30141
  let r = e.getTimezoneOffset();
29907
30142
  if (r === 0) return "Z";
29908
30143
  switch (t) {
29909
- case "X": return nJ(r);
30144
+ case "X": return pJ(r);
29910
30145
  case "XXXX":
29911
- case "XX": return rJ(r);
29912
- default: return rJ(r, ":");
30146
+ case "XX": return mJ(r);
30147
+ default: return mJ(r, ":");
29913
30148
  }
29914
30149
  },
29915
30150
  x: function(e, t, n) {
29916
30151
  let r = e.getTimezoneOffset();
29917
30152
  switch (t) {
29918
- case "x": return nJ(r);
30153
+ case "x": return pJ(r);
29919
30154
  case "xxxx":
29920
- case "xx": return rJ(r);
29921
- default: return rJ(r, ":");
30155
+ case "xx": return mJ(r);
30156
+ default: return mJ(r, ":");
29922
30157
  }
29923
30158
  },
29924
30159
  O: function(e, t, n) {
@@ -29926,8 +30161,8 @@ var Qq = {
29926
30161
  switch (t) {
29927
30162
  case "O":
29928
30163
  case "OO":
29929
- case "OOO": return "GMT" + tJ(r, ":");
29930
- default: return "GMT" + rJ(r, ":");
30164
+ case "OOO": return "GMT" + fJ(r, ":");
30165
+ default: return "GMT" + mJ(r, ":");
29931
30166
  }
29932
30167
  },
29933
30168
  z: function(e, t, n) {
@@ -29935,49 +30170,49 @@ var Qq = {
29935
30170
  switch (t) {
29936
30171
  case "z":
29937
30172
  case "zz":
29938
- case "zzz": return "GMT" + tJ(r, ":");
29939
- default: return "GMT" + rJ(r, ":");
30173
+ case "zzz": return "GMT" + fJ(r, ":");
30174
+ default: return "GMT" + mJ(r, ":");
29940
30175
  }
29941
30176
  },
29942
30177
  t: function(e, t, n) {
29943
- return Zq(Math.trunc(e / 1e3), t.length);
30178
+ return cJ(Math.trunc(e / 1e3), t.length);
29944
30179
  },
29945
30180
  T: function(e, t, n) {
29946
- return Zq(+e, t.length);
30181
+ return cJ(+e, t.length);
29947
30182
  }
29948
30183
  };
29949
- function tJ(e, t = "") {
30184
+ function fJ(e, t = "") {
29950
30185
  let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
29951
- return a === 0 ? n + String(i) : n + String(i) + t + Zq(a, 2);
30186
+ return a === 0 ? n + String(i) : n + String(i) + t + cJ(a, 2);
29952
30187
  }
29953
- function nJ(e, t) {
29954
- return e % 60 == 0 ? (e > 0 ? "-" : "+") + Zq(Math.abs(e) / 60, 2) : rJ(e, t);
30188
+ function pJ(e, t) {
30189
+ return e % 60 == 0 ? (e > 0 ? "-" : "+") + cJ(Math.abs(e) / 60, 2) : mJ(e, t);
29955
30190
  }
29956
- function rJ(e, t = "") {
29957
- let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Zq(Math.trunc(r / 60), 2), a = Zq(r % 60, 2);
30191
+ function mJ(e, t = "") {
30192
+ let n = e > 0 ? "-" : "+", r = Math.abs(e), i = cJ(Math.trunc(r / 60), 2), a = cJ(r % 60, 2);
29958
30193
  return n + i + t + a;
29959
30194
  }
29960
30195
  //#endregion
29961
30196
  //#region ../../node_modules/date-fns/_lib/format/longFormatters.js
29962
- var iJ = (e, t) => {
30197
+ var hJ = (e, t) => {
29963
30198
  switch (e) {
29964
30199
  case "P": return t.date({ width: "short" });
29965
30200
  case "PP": return t.date({ width: "medium" });
29966
30201
  case "PPP": return t.date({ width: "long" });
29967
30202
  default: return t.date({ width: "full" });
29968
30203
  }
29969
- }, aJ = (e, t) => {
30204
+ }, gJ = (e, t) => {
29970
30205
  switch (e) {
29971
30206
  case "p": return t.time({ width: "short" });
29972
30207
  case "pp": return t.time({ width: "medium" });
29973
30208
  case "ppp": return t.time({ width: "long" });
29974
30209
  default: return t.time({ width: "full" });
29975
30210
  }
29976
- }, oJ = {
29977
- p: aJ,
30211
+ }, _J = {
30212
+ p: gJ,
29978
30213
  P: (e, t) => {
29979
30214
  let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
29980
- if (!i) return iJ(e, t);
30215
+ if (!i) return hJ(e, t);
29981
30216
  let a;
29982
30217
  switch (r) {
29983
30218
  case "P":
@@ -29993,42 +30228,42 @@ var iJ = (e, t) => {
29993
30228
  a = t.dateTime({ width: "full" });
29994
30229
  break;
29995
30230
  }
29996
- return a.replace("{{date}}", iJ(r, t)).replace("{{time}}", aJ(i, t));
30231
+ return a.replace("{{date}}", hJ(r, t)).replace("{{time}}", gJ(i, t));
29997
30232
  }
29998
- }, sJ = /^D+$/, cJ = /^Y+$/, lJ = [
30233
+ }, vJ = /^D+$/, yJ = /^Y+$/, bJ = [
29999
30234
  "D",
30000
30235
  "DD",
30001
30236
  "YY",
30002
30237
  "YYYY"
30003
30238
  ];
30004
- function uJ(e) {
30005
- return sJ.test(e);
30239
+ function xJ(e) {
30240
+ return vJ.test(e);
30006
30241
  }
30007
- function dJ(e) {
30008
- return cJ.test(e);
30242
+ function SJ(e) {
30243
+ return yJ.test(e);
30009
30244
  }
30010
- function fJ(e, t, n) {
30011
- let r = pJ(e, t, n);
30012
- if (console.warn(r), lJ.includes(e)) throw RangeError(r);
30245
+ function CJ(e, t, n) {
30246
+ let r = wJ(e, t, n);
30247
+ if (console.warn(r), bJ.includes(e)) throw RangeError(r);
30013
30248
  }
30014
- function pJ(e, t, n) {
30249
+ function wJ(e, t, n) {
30015
30250
  let r = e[0] === "Y" ? "years" : "days of the month";
30016
30251
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
30017
30252
  }
30018
30253
  //#endregion
30019
30254
  //#region ../../node_modules/date-fns/format.js
30020
- var mJ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, hJ = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, gJ = /^'([^]*?)'?$/, _J = /''/g, vJ = /[a-zA-Z]/;
30021
- function yJ(e, t, n) {
30022
- let r = xq(), i = n?.locale ?? r.locale ?? Gq, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = yq(e, n?.in);
30023
- if (!jq(s)) throw RangeError("Invalid time value");
30024
- let c = t.match(hJ).map((e) => {
30255
+ var TJ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, EJ = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, DJ = /^'([^]*?)'?$/, OJ = /''/g, kJ = /[a-zA-Z]/;
30256
+ function AJ(e, t, n) {
30257
+ let r = Mq(), i = n?.locale ?? r.locale ?? nJ, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = Aq(e, n?.in);
30258
+ if (!Hq(s)) throw RangeError("Invalid time value");
30259
+ let c = t.match(EJ).map((e) => {
30025
30260
  let t = e[0];
30026
30261
  if (t === "p" || t === "P") {
30027
- let n = oJ[t];
30262
+ let n = _J[t];
30028
30263
  return n(e, i.formatLong);
30029
30264
  }
30030
30265
  return e;
30031
- }).join("").match(mJ).map((e) => {
30266
+ }).join("").match(TJ).map((e) => {
30032
30267
  if (e === "''") return {
30033
30268
  isToken: !1,
30034
30269
  value: "'"
@@ -30036,13 +30271,13 @@ function yJ(e, t, n) {
30036
30271
  let t = e[0];
30037
30272
  if (t === "'") return {
30038
30273
  isToken: !1,
30039
- value: bJ(e)
30274
+ value: jJ(e)
30040
30275
  };
30041
- if (eJ[t]) return {
30276
+ if (dJ[t]) return {
30042
30277
  isToken: !0,
30043
30278
  value: e
30044
30279
  };
30045
- if (t.match(vJ)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
30280
+ if (t.match(kJ)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
30046
30281
  return {
30047
30282
  isToken: !1,
30048
30283
  value: e
@@ -30057,18 +30292,18 @@ function yJ(e, t, n) {
30057
30292
  return c.map((r) => {
30058
30293
  if (!r.isToken) return r.value;
30059
30294
  let a = r.value;
30060
- (!n?.useAdditionalWeekYearTokens && dJ(a) || !n?.useAdditionalDayOfYearTokens && uJ(a)) && fJ(a, t, String(e));
30061
- let o = eJ[a[0]];
30295
+ (!n?.useAdditionalWeekYearTokens && SJ(a) || !n?.useAdditionalDayOfYearTokens && xJ(a)) && CJ(a, t, String(e));
30296
+ let o = dJ[a[0]];
30062
30297
  return o(s, a, i.localize, l);
30063
30298
  }).join("");
30064
30299
  }
30065
- function bJ(e) {
30066
- let t = e.match(gJ);
30067
- return t ? t[1].replace(_J, "'") : e;
30300
+ function jJ(e) {
30301
+ let t = e.match(DJ);
30302
+ return t ? t[1].replace(OJ, "'") : e;
30068
30303
  }
30069
30304
  //#endregion
30070
30305
  //#region src/composed/DatePicker/DatePicker.tsx
30071
- function xJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disabled: i = !1, dateFormat: a = "PPP", locale: o, className: s, "aria-label": c }) {
30306
+ function MJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disabled: i = !1, dateFormat: a = "PPP", locale: o, className: s, "aria-label": c }) {
30072
30307
  let [l, u] = V(!1);
30073
30308
  return /* @__PURE__ */ U(GB, {
30074
30309
  open: l,
@@ -30084,7 +30319,7 @@ function xJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disa
30084
30319
  "aria-expanded": l,
30085
30320
  "aria-label": c,
30086
30321
  className: q("w-full min-w-[9rem] justify-between font-normal", !t && "text-muted-foreground", s),
30087
- children: [t ? yJ(t, a) : /* @__PURE__ */ H("span", { children: r }), /* @__PURE__ */ H(f, { "aria-hidden": "true" })]
30322
+ children: [t ? AJ(t, a) : /* @__PURE__ */ H("span", { children: r }), /* @__PURE__ */ H(f, { "aria-hidden": "true" })]
30088
30323
  })
30089
30324
  }), /* @__PURE__ */ H(qB, {
30090
30325
  className: "w-auto p-0",
@@ -30101,7 +30336,7 @@ function xJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disa
30101
30336
  }
30102
30337
  //#endregion
30103
30338
  //#region src/composed/DatePicker/DateRangePicker.tsx
30104
- function SJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disabled: i = !1, dateFormat: a = "LLL dd, y", locale: o, numberOfMonths: s = 2, className: c, "aria-label": l }) {
30339
+ function NJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disabled: i = !1, dateFormat: a = "LLL dd, y", locale: o, numberOfMonths: s = 2, className: c, "aria-label": l }) {
30105
30340
  let [u, d] = V(!1);
30106
30341
  return /* @__PURE__ */ U(GB, {
30107
30342
  open: u,
@@ -30118,10 +30353,10 @@ function SJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disa
30118
30353
  "aria-label": l,
30119
30354
  className: q("w-full min-w-[15rem] justify-between font-normal", !(t?.from || t?.to) && "text-muted-foreground", c),
30120
30355
  children: [t?.from || t?.to ? t.from ? t.to ? /* @__PURE__ */ U(oe, { children: [
30121
- yJ(t.from, a),
30356
+ AJ(t.from, a),
30122
30357
  " → ",
30123
- yJ(t.to, a)
30124
- ] }) : /* @__PURE__ */ U(oe, { children: [yJ(t.from, a), " → …"] }) : /* @__PURE__ */ U(oe, { children: ["… → ", yJ(t.to, a)] }) : /* @__PURE__ */ H("span", { children: r }), /* @__PURE__ */ H(f, { "aria-hidden": "true" })]
30358
+ AJ(t.to, a)
30359
+ ] }) : /* @__PURE__ */ U(oe, { children: [AJ(t.from, a), " → …"] }) : /* @__PURE__ */ U(oe, { children: ["… → ", AJ(t.to, a)] }) : /* @__PURE__ */ H("span", { children: r }), /* @__PURE__ */ H(f, { "aria-hidden": "true" })]
30125
30360
  })
30126
30361
  }), /* @__PURE__ */ H(qB, {
30127
30362
  className: "w-auto p-0",
@@ -30139,10 +30374,10 @@ function SJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disa
30139
30374
  }
30140
30375
  //#endregion
30141
30376
  //#region src/composed/DatePicker/date-time.ts
30142
- function CJ(e, t = "00:00:00") {
30143
- return e ? yJ(e, "HH:mm:ss") : t;
30377
+ function PJ(e, t = "00:00:00") {
30378
+ return e ? AJ(e, "HH:mm:ss") : t;
30144
30379
  }
30145
- function wJ(e, t) {
30380
+ function FJ(e, t) {
30146
30381
  let [n = "0", r = "0", i = "0"] = t.split(":"), a = Number(n), o = Number(r), s = Number(i);
30147
30382
  if (Number.isNaN(a) || Number.isNaN(o) || Number.isNaN(s)) return e;
30148
30383
  let c = new Date(e);
@@ -30150,17 +30385,17 @@ function wJ(e, t) {
30150
30385
  }
30151
30386
  //#endregion
30152
30387
  //#region src/composed/DatePicker/DateTimePicker.tsx
30153
- function TJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and time", disabled: i = !1, dateTimeFormat: a = "PP '@' HH:mm:ss", locale: o, className: s, side: c = "bottom", align: l = "start", "aria-label": u }) {
30388
+ function IJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and time", disabled: i = !1, dateTimeFormat: a = "PP '@' HH:mm:ss", locale: o, className: s, side: c = "bottom", align: l = "start", "aria-label": u }) {
30154
30389
  let d = (/* @__PURE__ */ new Date()).getFullYear(), p = new Date(d - 10, 0), m = new Date(d + 10, 11), h = ee(), g = e ?? h, [_, v] = V(!1);
30155
30390
  function y(e) {
30156
30391
  if (!e) {
30157
30392
  n?.(void 0);
30158
30393
  return;
30159
30394
  }
30160
- n?.(wJ(e, t ? CJ(t) : "00:00:00"));
30395
+ n?.(FJ(e, t ? PJ(t) : "00:00:00"));
30161
30396
  }
30162
30397
  function b(e) {
30163
- n?.(wJ(t ?? /* @__PURE__ */ new Date(), e));
30398
+ n?.(FJ(t ?? /* @__PURE__ */ new Date(), e));
30164
30399
  }
30165
30400
  return /* @__PURE__ */ U(GB, {
30166
30401
  open: _,
@@ -30176,7 +30411,7 @@ function TJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
30176
30411
  "aria-expanded": _,
30177
30412
  "aria-label": u,
30178
30413
  className: q("w-full min-w-[13rem] justify-between font-normal", !t && "text-muted-foreground", s),
30179
- children: [t ? yJ(t, a) : r, /* @__PURE__ */ H(f, { "aria-hidden": "true" })]
30414
+ children: [t ? AJ(t, a) : r, /* @__PURE__ */ H(f, { "aria-hidden": "true" })]
30180
30415
  })
30181
30416
  }), /* @__PURE__ */ U(qB, {
30182
30417
  className: "w-auto overflow-hidden p-0",
@@ -30203,7 +30438,7 @@ function TJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
30203
30438
  id: `${g}-time`,
30204
30439
  type: "time",
30205
30440
  step: "1",
30206
- value: CJ(t),
30441
+ value: PJ(t),
30207
30442
  disabled: i,
30208
30443
  onChange: (e) => b(e.target.value),
30209
30444
  className: "ml-auto w-32 appearance-none bg-background [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
@@ -30215,15 +30450,15 @@ function TJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
30215
30450
  }
30216
30451
  //#endregion
30217
30452
  //#region src/composed/DatePicker/DateTimeRangePicker.tsx
30218
- var EJ = "00:00:00", DJ = "23:59:59";
30219
- function OJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and time range", disabled: i = !1, fromLabel: a = "From", toLabel: o = "To", dateTimeFormat: s = "PP '@' HH:mm", locale: c, className: l, side: u = "bottom", align: d = "start", numberOfMonths: p = 2, "aria-label": m }) {
30220
- let h = (/* @__PURE__ */ new Date()).getFullYear(), g = new Date(h - 10, 0), _ = new Date(h + 10, 11), v = ee(), y = e ?? v, [b, x] = V(!1), S = CJ(t?.from, EJ), C = CJ(t?.to, DJ);
30453
+ var LJ = "00:00:00", RJ = "23:59:59";
30454
+ function zJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and time range", disabled: i = !1, fromLabel: a = "From", toLabel: o = "To", dateTimeFormat: s = "PP '@' HH:mm", locale: c, className: l, side: u = "bottom", align: d = "start", numberOfMonths: p = 2, "aria-label": m }) {
30455
+ let h = (/* @__PURE__ */ new Date()).getFullYear(), g = new Date(h - 10, 0), _ = new Date(h + 10, 11), v = ee(), y = e ?? v, [b, x] = V(!1), S = PJ(t?.from, LJ), C = PJ(t?.to, RJ);
30221
30456
  function w(e) {
30222
30457
  if (!e) {
30223
30458
  n?.(void 0);
30224
30459
  return;
30225
30460
  }
30226
- let t = e.from ? wJ(e.from, S) : void 0, r = e.to ? wJ(e.to, C) : void 0;
30461
+ let t = e.from ? FJ(e.from, S) : void 0, r = e.to ? FJ(e.to, C) : void 0;
30227
30462
  n?.({
30228
30463
  from: t,
30229
30464
  to: r
@@ -30232,7 +30467,7 @@ function OJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
30232
30467
  function T(e) {
30233
30468
  let r = t?.from ?? /* @__PURE__ */ new Date();
30234
30469
  n?.({
30235
- from: wJ(r, e),
30470
+ from: FJ(r, e),
30236
30471
  to: t?.to
30237
30472
  });
30238
30473
  }
@@ -30240,11 +30475,11 @@ function OJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
30240
30475
  let r = t?.to ?? t?.from ?? /* @__PURE__ */ new Date();
30241
30476
  n?.({
30242
30477
  from: t?.from,
30243
- to: wJ(r, e)
30478
+ to: FJ(r, e)
30244
30479
  });
30245
30480
  }
30246
30481
  function D() {
30247
- return !t?.from && !t?.to ? r : t?.from && t?.to ? `${yJ(t.from, s)} → ${yJ(t.to, s)}` : t?.from ? `${yJ(t.from, s)} → …` : t?.to ? `… → ${yJ(t.to, s)}` : r;
30482
+ return !t?.from && !t?.to ? r : t?.from && t?.to ? `${AJ(t.from, s)} → ${AJ(t.to, s)}` : t?.from ? `${AJ(t.from, s)} → …` : t?.to ? `… → ${AJ(t.to, s)}` : r;
30248
30483
  }
30249
30484
  return /* @__PURE__ */ U(GB, {
30250
30485
  open: b,
@@ -30317,7 +30552,7 @@ function OJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
30317
30552
  }
30318
30553
  //#endregion
30319
30554
  //#region src/composed/FacetedFilter/FacetedFilter.tsx
30320
- function kJ({ title: e, options: t, selected: n, onChange: r }) {
30555
+ function BJ({ title: e, options: t, selected: n, onChange: r }) {
30321
30556
  let i = B(() => new Set(n), [n]);
30322
30557
  return /* @__PURE__ */ U(GB, { children: [/* @__PURE__ */ H(KB, {
30323
30558
  asChild: !0,
@@ -30359,13 +30594,13 @@ function kJ({ title: e, options: t, selected: n, onChange: r }) {
30359
30594
  }
30360
30595
  //#endregion
30361
30596
  //#region src/composed/FileUpload/FileUploadItem.tsx
30362
- var AJ = /\.(json|ya?ml|js|jsx|ts|tsx|html?|css|py|rb|go|rs|sh)$/i;
30363
- function jJ(e) {
30597
+ var VJ = /\.(json|ya?ml|js|jsx|ts|tsx|html?|css|py|rb|go|rs|sh)$/i;
30598
+ function HJ(e) {
30364
30599
  let t = e.type;
30365
- return t.startsWith("image/") ? "image" : t.startsWith("video/") ? "video" : t.startsWith("audio/") ? "audio" : AJ.test(e.name) ? "code" : t === "application/pdf" || t.includes("document") || t.startsWith("text/") ? "document" : "other";
30600
+ return t.startsWith("image/") ? "image" : t.startsWith("video/") ? "video" : t.startsWith("audio/") ? "audio" : VJ.test(e.name) ? "code" : t === "application/pdf" || t.includes("document") || t.startsWith("text/") ? "document" : "other";
30366
30601
  }
30367
- function MJ({ className: t, file: n }) {
30368
- switch (jJ(n)) {
30602
+ function UJ({ className: t, file: n }) {
30603
+ switch (HJ(n)) {
30369
30604
  case "audio": return /* @__PURE__ */ H(ue, { className: t });
30370
30605
  case "code": return /* @__PURE__ */ H(de, { className: t });
30371
30606
  case "document": return /* @__PURE__ */ H(e, { className: t });
@@ -30374,7 +30609,7 @@ function MJ({ className: t, file: n }) {
30374
30609
  case "other": return /* @__PURE__ */ H(le, { className: t });
30375
30610
  }
30376
30611
  }
30377
- function NJ({ className: e, item: t, onRemove: n, ...r }) {
30612
+ function WJ({ className: e, item: t, onRemove: n, ...r }) {
30378
30613
  let i = ee(), a = t.status ?? "idle", o = t.progress !== void 0 && a !== "error";
30379
30614
  return /* @__PURE__ */ U(DB, {
30380
30615
  variant: "outline",
@@ -30387,7 +30622,7 @@ function NJ({ className: e, item: t, onRemove: n, ...r }) {
30387
30622
  /* @__PURE__ */ H(kB, {
30388
30623
  "aria-hidden": "true",
30389
30624
  className: "text-muted-foreground",
30390
- children: /* @__PURE__ */ H(MJ, {
30625
+ children: /* @__PURE__ */ H(UJ, {
30391
30626
  file: t.file,
30392
30627
  className: "size-5"
30393
30628
  })
@@ -30438,7 +30673,7 @@ function NJ({ className: e, item: t, onRemove: n, ...r }) {
30438
30673
  }
30439
30674
  //#endregion
30440
30675
  //#region src/composed/FileUpload/FileUpload.tsx
30441
- function PJ({ className: e, errors: t, invalid: n, items: r, onFileRemove: i, onFilesAdd: a, onFilesReject: o, ...s }) {
30676
+ function GJ({ className: e, errors: t, invalid: n, items: r, onFileRemove: i, onFilesAdd: a, onFilesReject: o, ...s }) {
30442
30677
  let c = t !== void 0 && t.length > 0;
30443
30678
  return /* @__PURE__ */ U("div", {
30444
30679
  "data-slot": "file-upload",
@@ -30457,7 +30692,7 @@ function PJ({ className: e, errors: t, invalid: n, items: r, onFileRemove: i, on
30457
30692
  }) : null,
30458
30693
  r.length > 0 ? /* @__PURE__ */ H("ul", {
30459
30694
  className: "flex flex-col gap-2",
30460
- children: r.map((e) => /* @__PURE__ */ H("li", { children: /* @__PURE__ */ H(NJ, {
30695
+ children: r.map((e) => /* @__PURE__ */ H("li", { children: /* @__PURE__ */ H(WJ, {
30461
30696
  item: e,
30462
30697
  onRemove: i
30463
30698
  }) }, e.id))
@@ -30467,49 +30702,49 @@ function PJ({ className: e, errors: t, invalid: n, items: r, onFileRemove: i, on
30467
30702
  }
30468
30703
  //#endregion
30469
30704
  //#region ../../node_modules/react-hook-form/dist/index.esm.mjs
30470
- var FJ = (e) => e.type === "checkbox", IJ = (e) => e instanceof Date, LJ = (e) => e == null, RJ = (e) => typeof e == "object", zJ = (e) => !LJ(e) && !Array.isArray(e) && RJ(e) && !IJ(e), BJ = (e) => zJ(e) && e.target ? FJ(e.target) ? e.target.checked : e.target.value : e, VJ = (e, t) => t.split(".").some((t, n, r) => !isNaN(Number(t)) && e.has(r.slice(0, n).join("."))), HJ = (e) => {
30705
+ var KJ = (e) => e.type === "checkbox", qJ = (e) => e instanceof Date, JJ = (e) => e == null, YJ = (e) => typeof e == "object", XJ = (e) => !JJ(e) && !Array.isArray(e) && YJ(e) && !qJ(e), ZJ = (e) => XJ(e) && e.target ? KJ(e.target) ? e.target.checked : e.target.value : e, QJ = (e, t) => t.split(".").some((t, n, r) => !isNaN(Number(t)) && e.has(r.slice(0, n).join("."))), $J = (e) => {
30471
30706
  let t = e.constructor && e.constructor.prototype;
30472
- return zJ(t) && t.hasOwnProperty("isPrototypeOf");
30473
- }, UJ = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
30474
- function WJ(e) {
30707
+ return XJ(t) && t.hasOwnProperty("isPrototypeOf");
30708
+ }, eY = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
30709
+ function tY(e) {
30475
30710
  if (e instanceof Date) return new Date(e);
30476
30711
  let t = typeof FileList < "u" && e instanceof FileList;
30477
- if (UJ && (e instanceof Blob || t)) return e;
30712
+ if (eY && (e instanceof Blob || t)) return e;
30478
30713
  let n = Array.isArray(e);
30479
- if (!n && !(zJ(e) && HJ(e))) return e;
30714
+ if (!n && !(XJ(e) && $J(e))) return e;
30480
30715
  let r = n ? [] : Object.create(Object.getPrototypeOf(e));
30481
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = WJ(e[t]));
30716
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = tY(e[t]));
30482
30717
  return r;
30483
30718
  }
30484
- var GJ = (e) => /^\w*$/.test(e), KJ = (e) => e === void 0, qJ = (e) => Array.isArray(e) ? e.filter(Boolean) : [], JJ = (e) => qJ(e.replace(/["|']|\]/g, "").split(/\.|\[/)), YJ = (e, t, n) => {
30485
- if (!t || !zJ(e)) return n;
30486
- let r = (GJ(t) ? [t] : JJ(t)).reduce((e, t) => LJ(e) ? void 0 : e[t], e);
30487
- return KJ(r) || r === e ? KJ(e[t]) ? n : e[t] : r;
30488
- }, XJ = (e) => typeof e == "boolean", ZJ = (e) => typeof e == "function", QJ = (e, t, n) => {
30489
- let r = -1, i = GJ(t) ? [t] : JJ(t), a = i.length, o = a - 1;
30719
+ var nY = (e) => /^\w*$/.test(e), rY = (e) => e === void 0, iY = (e) => Array.isArray(e) ? e.filter(Boolean) : [], aY = (e) => iY(e.replace(/["|']|\]/g, "").split(/\.|\[/)), oY = (e, t, n) => {
30720
+ if (!t || !XJ(e)) return n;
30721
+ let r = (nY(t) ? [t] : aY(t)).reduce((e, t) => JJ(e) ? void 0 : e[t], e);
30722
+ return rY(r) || r === e ? rY(e[t]) ? n : e[t] : r;
30723
+ }, sY = (e) => typeof e == "boolean", cY = (e) => typeof e == "function", lY = (e, t, n) => {
30724
+ let r = -1, i = nY(t) ? [t] : aY(t), a = i.length, o = a - 1;
30490
30725
  for (; ++r < a;) {
30491
30726
  let t = i[r], a = n;
30492
30727
  if (r !== o) {
30493
30728
  let n = e[t];
30494
- a = zJ(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [];
30729
+ a = XJ(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [];
30495
30730
  }
30496
30731
  if (t === "__proto__" || t === "constructor" || t === "prototype") return;
30497
30732
  e[t] = a, e = e[t];
30498
30733
  }
30499
- }, $J = {
30734
+ }, uY = {
30500
30735
  BLUR: "blur",
30501
30736
  FOCUS_OUT: "focusout",
30502
30737
  CHANGE: "change",
30503
30738
  SUBMIT: "submit",
30504
30739
  TRIGGER: "trigger",
30505
30740
  VALID: "valid"
30506
- }, eY = {
30741
+ }, dY = {
30507
30742
  onBlur: "onBlur",
30508
30743
  onChange: "onChange",
30509
30744
  onSubmit: "onSubmit",
30510
30745
  onTouched: "onTouched",
30511
30746
  all: "all"
30512
- }, tY = {
30747
+ }, fY = {
30513
30748
  max: "max",
30514
30749
  min: "min",
30515
30750
  maxLength: "maxLength",
@@ -30517,18 +30752,18 @@ var GJ = (e) => /^\w*$/.test(e), KJ = (e) => e === void 0, qJ = (e) => Array.isA
30517
30752
  pattern: "pattern",
30518
30753
  required: "required",
30519
30754
  validate: "validate"
30520
- }, nY = "root", rY = A.createContext(null);
30521
- rY.displayName = "HookFormControlContext";
30522
- var iY = () => A.useContext(rY), aY = (e, t, n, r = !0) => {
30755
+ }, pY = "root", mY = A.createContext(null);
30756
+ mY.displayName = "HookFormControlContext";
30757
+ var hY = () => A.useContext(mY), gY = (e, t, n, r = !0) => {
30523
30758
  let i = {};
30524
30759
  for (let a in e) Object.defineProperty(i, a, { get: () => {
30525
30760
  let i = a;
30526
- return t._proxyFormState[i] !== eY.all && (t._proxyFormState[i] = !r || eY.all), n && (n[i] = !0), e[i];
30761
+ return t._proxyFormState[i] !== dY.all && (t._proxyFormState[i] = !r || dY.all), n && (n[i] = !0), e[i];
30527
30762
  } });
30528
30763
  return i;
30529
- }, oY = typeof window < "u" ? A.useLayoutEffect : A.useEffect;
30530
- function sY(e) {
30531
- let t = iY(), { control: n = t, disabled: r, name: i, exact: a } = e || {}, [o, s] = A.useState(() => ({
30764
+ }, _Y = typeof window < "u" ? A.useLayoutEffect : A.useEffect;
30765
+ function vY(e) {
30766
+ let t = hY(), { control: n = t, disabled: r, name: i, exact: a } = e || {}, [o, s] = A.useState(() => ({
30532
30767
  ...n._formState,
30533
30768
  defaultValues: n._defaultValues
30534
30769
  })), c = A.useRef({
@@ -30541,7 +30776,7 @@ function sY(e) {
30541
30776
  isValid: !1,
30542
30777
  errors: !1
30543
30778
  });
30544
- return oY(() => n._subscribe({
30779
+ return _Y(() => n._subscribe({
30545
30780
  name: i,
30546
30781
  formState: c.current,
30547
30782
  exact: a,
@@ -30558,13 +30793,13 @@ function sY(e) {
30558
30793
  a
30559
30794
  ]), A.useEffect(() => {
30560
30795
  c.current.isValid && n._setValid(!0);
30561
- }, [n]), A.useMemo(() => aY(o, n, c.current, !1), [o, n]);
30796
+ }, [n]), A.useMemo(() => gY(o, n, c.current, !1), [o, n]);
30562
30797
  }
30563
- var cY = (e) => typeof e == "string", lY = (e, t, n, r, i) => cY(e) ? (r && t.watch.add(e), YJ(n, e, i)) : Array.isArray(e) ? e.map((e) => (r && t.watch.add(e), YJ(n, e))) : (r && (t.watchAll = !0), n), uY = (e) => LJ(e) || !RJ(e);
30564
- function dY(e, t, n = /* @__PURE__ */ new WeakSet()) {
30798
+ var yY = (e) => typeof e == "string", bY = (e, t, n, r, i) => yY(e) ? (r && t.watch.add(e), oY(n, e, i)) : Array.isArray(e) ? e.map((e) => (r && t.watch.add(e), oY(n, e))) : (r && (t.watchAll = !0), n), xY = (e) => JJ(e) || !YJ(e);
30799
+ function SY(e, t, n = /* @__PURE__ */ new WeakSet()) {
30565
30800
  if (e === t) return !0;
30566
- if (uY(e) || uY(t)) return Object.is(e, t);
30567
- if (IJ(e) && IJ(t)) return Object.is(e.getTime(), t.getTime());
30801
+ if (xY(e) || xY(t)) return Object.is(e, t);
30802
+ if (qJ(e) && qJ(t)) return Object.is(e.getTime(), t.getTime());
30568
30803
  let r = Object.keys(e), i = Object.keys(t);
30569
30804
  if (r.length !== i.length) return !1;
30570
30805
  if (n.has(e) || n.has(t)) return !0;
@@ -30574,19 +30809,19 @@ function dY(e, t, n = /* @__PURE__ */ new WeakSet()) {
30574
30809
  if (!(i in t)) return !1;
30575
30810
  if (i !== "ref") {
30576
30811
  let e = t[i];
30577
- if (IJ(r) && IJ(e) || (zJ(r) || Array.isArray(r)) && (zJ(e) || Array.isArray(e)) ? !dY(r, e, n) : !Object.is(r, e)) return !1;
30812
+ if (qJ(r) && qJ(e) || (XJ(r) || Array.isArray(r)) && (XJ(e) || Array.isArray(e)) ? !SY(r, e, n) : !Object.is(r, e)) return !1;
30578
30813
  }
30579
30814
  }
30580
30815
  return !0;
30581
30816
  }
30582
- function fY(e) {
30583
- let t = iY(), { control: n = t, name: r, defaultValue: i, disabled: a, exact: o, compute: s } = e || {}, c = A.useRef(i), l = A.useRef(s), u = A.useRef(void 0), d = A.useRef(n), f = A.useRef(r);
30817
+ function CY(e) {
30818
+ let t = hY(), { control: n = t, name: r, defaultValue: i, disabled: a, exact: o, compute: s } = e || {}, c = A.useRef(i), l = A.useRef(s), u = A.useRef(void 0), d = A.useRef(n), f = A.useRef(r);
30584
30819
  l.current = s;
30585
30820
  let [p, m] = A.useState(() => {
30586
30821
  let e = n._getWatch(r, c.current);
30587
30822
  return l.current ? l.current(e) : e;
30588
30823
  }), h = A.useCallback((e) => {
30589
- let t = lY(r, n._names, e || n._formValues, !1, c.current);
30824
+ let t = bY(r, n._names, e || n._formValues, !1, c.current);
30590
30825
  return l.current ? l.current(t) : t;
30591
30826
  }, [
30592
30827
  n._formValues,
@@ -30594,10 +30829,10 @@ function fY(e) {
30594
30829
  r
30595
30830
  ]), g = A.useCallback((e) => {
30596
30831
  if (!a) {
30597
- let t = lY(r, n._names, e || n._formValues, !1, c.current);
30832
+ let t = bY(r, n._names, e || n._formValues, !1, c.current);
30598
30833
  if (l.current) {
30599
30834
  let e = l.current(t);
30600
- dY(e, u.current) || (m(e), u.current = e);
30835
+ SY(e, u.current) || (m(e), u.current = e);
30601
30836
  } else m(t);
30602
30837
  }
30603
30838
  }, [
@@ -30606,7 +30841,7 @@ function fY(e) {
30606
30841
  a,
30607
30842
  r
30608
30843
  ]);
30609
- oY(() => ((d.current !== n || !dY(f.current, r)) && (d.current = n, f.current = r, g()), n._subscribe({
30844
+ _Y(() => ((d.current !== n || !SY(f.current, r)) && (d.current = n, f.current = r, g()), n._subscribe({
30610
30845
  name: r,
30611
30846
  formState: { values: !0 },
30612
30847
  exact: o,
@@ -30621,7 +30856,7 @@ function fY(e) {
30621
30856
  ]), A.useEffect(() => n._removeUnmounted());
30622
30857
  let _ = d.current !== n, v = f.current, y = A.useMemo(() => {
30623
30858
  if (a) return null;
30624
- let e = !_ && !dY(v, r);
30859
+ let e = !_ && !SY(v, r);
30625
30860
  return _ || e ? h() : null;
30626
30861
  }, [
30627
30862
  a,
@@ -30632,71 +30867,71 @@ function fY(e) {
30632
30867
  ]);
30633
30868
  return y === null ? p : y;
30634
30869
  }
30635
- function pY(e) {
30636
- let t = iY(), { name: n, disabled: r, control: i = t, shouldUnregister: a, defaultValue: o, exact: s = !0 } = e, c = VJ(i._names.array, n), l = fY({
30870
+ function wY(e) {
30871
+ let t = hY(), { name: n, disabled: r, control: i = t, shouldUnregister: a, defaultValue: o, exact: s = !0 } = e, c = QJ(i._names.array, n), l = CY({
30637
30872
  control: i,
30638
30873
  name: n,
30639
- defaultValue: A.useMemo(() => YJ(i._formValues, n, YJ(i._defaultValues, n, o)), [
30874
+ defaultValue: A.useMemo(() => oY(i._formValues, n, oY(i._defaultValues, n, o)), [
30640
30875
  i,
30641
30876
  n,
30642
30877
  o
30643
30878
  ]),
30644
30879
  exact: s
30645
- }), u = sY({
30880
+ }), u = vY({
30646
30881
  control: i,
30647
30882
  name: n,
30648
30883
  exact: s
30649
30884
  }), d = A.useRef(e), f = A.useRef(i.register(n, {
30650
30885
  ...e.rules,
30651
30886
  value: l,
30652
- ...XJ(e.disabled) ? { disabled: e.disabled } : {}
30887
+ ...sY(e.disabled) ? { disabled: e.disabled } : {}
30653
30888
  }));
30654
30889
  d.current = e;
30655
30890
  let p = A.useMemo(() => Object.defineProperties({}, {
30656
30891
  invalid: {
30657
30892
  enumerable: !0,
30658
- get: () => !!YJ(u.errors, n)
30893
+ get: () => !!oY(u.errors, n)
30659
30894
  },
30660
30895
  isDirty: {
30661
30896
  enumerable: !0,
30662
- get: () => !!YJ(u.dirtyFields, n)
30897
+ get: () => !!oY(u.dirtyFields, n)
30663
30898
  },
30664
30899
  isTouched: {
30665
30900
  enumerable: !0,
30666
- get: () => !!YJ(u.touchedFields, n)
30901
+ get: () => !!oY(u.touchedFields, n)
30667
30902
  },
30668
30903
  isValidating: {
30669
30904
  enumerable: !0,
30670
- get: () => !!YJ(u.validatingFields, n)
30905
+ get: () => !!oY(u.validatingFields, n)
30671
30906
  },
30672
30907
  error: {
30673
30908
  enumerable: !0,
30674
- get: () => YJ(u.errors, n)
30909
+ get: () => oY(u.errors, n)
30675
30910
  }
30676
30911
  }), [u, n]), m = A.useCallback((e) => f.current.onChange({
30677
30912
  target: {
30678
- value: BJ(e),
30913
+ value: ZJ(e),
30679
30914
  name: n
30680
30915
  },
30681
- type: $J.CHANGE
30916
+ type: uY.CHANGE
30682
30917
  }), [n]), h = A.useCallback(() => f.current.onBlur({
30683
30918
  target: {
30684
- value: YJ(i._formValues, n),
30919
+ value: oY(i._formValues, n),
30685
30920
  name: n
30686
30921
  },
30687
- type: $J.BLUR
30922
+ type: uY.BLUR
30688
30923
  }), [n, i._formValues]), g = A.useCallback((e) => {
30689
- let t = YJ(i._fields, n);
30924
+ let t = oY(i._fields, n);
30690
30925
  t && t._f && e && (t._f.ref = {
30691
- focus: () => ZJ(e.focus) && e.focus(),
30692
- select: () => ZJ(e.select) && e.select(),
30693
- setCustomValidity: (t) => ZJ(e.setCustomValidity) && e.setCustomValidity(t),
30694
- reportValidity: () => ZJ(e.reportValidity) && e.reportValidity()
30926
+ focus: () => cY(e.focus) && e.focus(),
30927
+ select: () => cY(e.select) && e.select(),
30928
+ setCustomValidity: (t) => cY(e.setCustomValidity) && e.setCustomValidity(t),
30929
+ reportValidity: () => cY(e.reportValidity) && e.reportValidity()
30695
30930
  });
30696
30931
  }, [i._fields, n]), _ = A.useMemo(() => ({
30697
30932
  name: n,
30698
30933
  value: l,
30699
- ...XJ(r) || u.disabled ? { disabled: u.disabled || r } : {},
30934
+ ...sY(r) || u.disabled ? { disabled: u.disabled || r } : {},
30700
30935
  onChange: m,
30701
30936
  onBlur: h,
30702
30937
  ref: g
@@ -30713,15 +30948,15 @@ function pY(e) {
30713
30948
  let e = i._options.shouldUnregister || a;
30714
30949
  i.register(n, {
30715
30950
  ...d.current.rules,
30716
- ...XJ(d.current.disabled) ? { disabled: d.current.disabled } : {}
30951
+ ...sY(d.current.disabled) ? { disabled: d.current.disabled } : {}
30717
30952
  });
30718
30953
  let t = (e, t) => {
30719
- let n = YJ(i._fields, e);
30954
+ let n = oY(i._fields, e);
30720
30955
  n && n._f && (n._f.mount = t);
30721
30956
  };
30722
30957
  if (t(n, !0), e) {
30723
- let e = WJ(YJ(i._options.defaultValues, n, d.current.defaultValue));
30724
- QJ(i._defaultValues, n, e), KJ(YJ(i._formValues, n)) && QJ(i._formValues, n, e);
30958
+ let e = tY(oY(i._options.defaultValues, n, d.current.defaultValue));
30959
+ lY(i._defaultValues, n, e), rY(oY(i._formValues, n)) && lY(i._formValues, n, e);
30725
30960
  }
30726
30961
  return !c && i.register(n), () => {
30727
30962
  (c ? e && !i._state.action : e) ? i.unregister(n) : t(n, !1);
@@ -30750,23 +30985,23 @@ function pY(e) {
30750
30985
  p
30751
30986
  ]);
30752
30987
  }
30753
- var mY = A.createContext(null);
30754
- mY.displayName = "HookFormContext";
30755
- var hY = (e, t, n, r, i) => t ? {
30988
+ var TY = A.createContext(null);
30989
+ TY.displayName = "HookFormContext";
30990
+ var EY = (e, t, n, r, i) => t ? {
30756
30991
  ...n[e],
30757
30992
  types: {
30758
30993
  ...n[e] && n[e].types ? n[e].types : {},
30759
30994
  [r]: i || !0
30760
30995
  }
30761
- } : {}, gY = (e) => Array.isArray(e) ? e : [e], _Y = (e) => zJ(e) && !Object.keys(e).length, vY = (e) => e.type === "file", yY = (e) => {
30762
- if (!UJ) return !1;
30996
+ } : {}, DY = (e) => Array.isArray(e) ? e : [e], OY = (e) => XJ(e) && !Object.keys(e).length, kY = (e) => e.type === "file", AY = (e) => {
30997
+ if (!eY) return !1;
30763
30998
  let t = e ? e.ownerDocument : 0;
30764
30999
  return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
30765
- }, bY = (e) => e.type === "radio";
30766
- function xY(e, t) {
31000
+ }, jY = (e) => e.type === "radio";
31001
+ function MY(e, t) {
30767
31002
  let n = t.slice(0, -1).length, r = 0;
30768
31003
  for (; r < n;) {
30769
- if (LJ(e)) {
31004
+ if (JJ(e)) {
30770
31005
  e = void 0;
30771
31006
  break;
30772
31007
  }
@@ -30774,22 +31009,22 @@ function xY(e, t) {
30774
31009
  }
30775
31010
  return e;
30776
31011
  }
30777
- function SY(e) {
30778
- for (let t in e) if (e.hasOwnProperty(t) && !KJ(e[t])) return !1;
31012
+ function NY(e) {
31013
+ for (let t in e) if (e.hasOwnProperty(t) && !rY(e[t])) return !1;
30779
31014
  return !0;
30780
31015
  }
30781
- function CY(e, t) {
30782
- if (cY(t) && Object.prototype.hasOwnProperty.call(e, t)) return delete e[t], e;
30783
- let n = Array.isArray(t) ? t : GJ(t) ? [t] : JJ(t), r = n.length === 1 ? e : xY(e, n), i = n.length - 1, a = n[i];
30784
- return r && delete r[a], i !== 0 && (zJ(r) && _Y(r) || Array.isArray(r) && SY(r)) && CY(e, n.slice(0, -1)), e;
31016
+ function PY(e, t) {
31017
+ if (yY(t) && Object.prototype.hasOwnProperty.call(e, t)) return delete e[t], e;
31018
+ let n = Array.isArray(t) ? t : nY(t) ? [t] : aY(t), r = n.length === 1 ? e : MY(e, n), i = n.length - 1, a = n[i];
31019
+ return r && delete r[a], i !== 0 && (XJ(r) && OY(r) || Array.isArray(r) && NY(r)) && PY(e, n.slice(0, -1)), e;
30785
31020
  }
30786
- var wY = {
31021
+ var FY = {
30787
31022
  value: !1,
30788
31023
  isValid: !1
30789
- }, TY = {
31024
+ }, IY = {
30790
31025
  value: !0,
30791
31026
  isValid: !0
30792
- }, EY = (e) => {
31027
+ }, LY = (e) => {
30793
31028
  if (Array.isArray(e)) {
30794
31029
  if (e.length > 1) {
30795
31030
  let t = e.filter((e) => e && e.checked && !e.disabled).map((e) => e.value);
@@ -30798,55 +31033,55 @@ var wY = {
30798
31033
  isValid: !!t.length
30799
31034
  };
30800
31035
  }
30801
- return e[0].checked && !e[0].disabled ? e[0].attributes && !KJ(e[0].attributes.value) ? KJ(e[0].value) || e[0].value === "" ? TY : {
31036
+ return e[0].checked && !e[0].disabled ? e[0].attributes && !rY(e[0].attributes.value) ? rY(e[0].value) || e[0].value === "" ? IY : {
30802
31037
  value: e[0].value,
30803
31038
  isValid: !0
30804
- } : TY : wY;
31039
+ } : IY : FY;
30805
31040
  }
30806
- return wY;
30807
- }, DY = {
31041
+ return FY;
31042
+ }, RY = {
30808
31043
  isValid: !1,
30809
31044
  value: null
30810
- }, OY = (e) => Array.isArray(e) ? e.reduce((e, t) => t && t.checked && !t.disabled ? {
31045
+ }, zY = (e) => Array.isArray(e) ? e.reduce((e, t) => t && t.checked && !t.disabled ? {
30811
31046
  isValid: !0,
30812
31047
  value: t.value
30813
- } : e, DY) : DY, kY = (e) => e instanceof RegExp, AY = (e) => ({
30814
- isOnSubmit: !e || e === eY.onSubmit,
30815
- isOnBlur: e === eY.onBlur,
30816
- isOnChange: e === eY.onChange,
30817
- isOnAll: e === eY.all,
30818
- isOnTouch: e === eY.onTouched
30819
- }), jY = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t) => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length)))), MY = (e, t, n, r) => {
31048
+ } : e, RY) : RY, BY = (e) => e instanceof RegExp, VY = (e) => ({
31049
+ isOnSubmit: !e || e === dY.onSubmit,
31050
+ isOnBlur: e === dY.onBlur,
31051
+ isOnChange: e === dY.onChange,
31052
+ isOnAll: e === dY.all,
31053
+ isOnTouch: e === dY.onTouched
31054
+ }), HY = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t) => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length)))), UY = (e, t, n, r) => {
30820
31055
  for (let i of n || Object.keys(e)) {
30821
- let n = YJ(e, i);
31056
+ let n = oY(e, i);
30822
31057
  if (n) {
30823
31058
  let { _f: e, ...a } = n;
30824
31059
  if (e) {
30825
31060
  if (e.refs && e.refs[0] && t(e.refs[0], i) && !r || e.ref && t(e.ref, e.name) && !r) return !0;
30826
- if (MY(a, t)) break;
30827
- } else if (zJ(a) && MY(a, t)) break;
31061
+ if (UY(a, t)) break;
31062
+ } else if (XJ(a) && UY(a, t)) break;
30828
31063
  }
30829
31064
  }
30830
- }, NY = (e, t, n) => {
30831
- let r = gY(YJ(e, n));
30832
- return QJ(r, nY, t[n]), QJ(e, n, r), e;
31065
+ }, WY = (e, t, n) => {
31066
+ let r = DY(oY(e, n));
31067
+ return lY(r, pY, t[n]), lY(e, n, r), e;
30833
31068
  };
30834
- function PY(e, t, n = "validate") {
30835
- if (cY(e) || Array.isArray(e) && e.every(cY) || XJ(e) && !e) return {
31069
+ function GY(e, t, n = "validate") {
31070
+ if (yY(e) || Array.isArray(e) && e.every(yY) || sY(e) && !e) return {
30836
31071
  type: n,
30837
- message: cY(e) ? e : "",
31072
+ message: yY(e) ? e : "",
30838
31073
  ref: t
30839
31074
  };
30840
31075
  }
30841
- var FY = (e) => zJ(e) && !kY(e) ? e : {
31076
+ var KY = (e) => XJ(e) && !BY(e) ? e : {
30842
31077
  value: e,
30843
31078
  message: ""
30844
- }, IY = async (e, t, n, r, i, a) => {
30845
- let { ref: o, refs: s, required: c, maxLength: l, minLength: u, min: d, max: f, pattern: p, validate: m, name: h, valueAsNumber: g, mount: _ } = e._f, v = YJ(n, h);
31079
+ }, qY = async (e, t, n, r, i, a) => {
31080
+ let { ref: o, refs: s, required: c, maxLength: l, minLength: u, min: d, max: f, pattern: p, validate: m, name: h, valueAsNumber: g, mount: _ } = e._f, v = oY(n, h);
30846
31081
  if (!_ || t.has(h)) return {};
30847
31082
  let y = s ? s[0] : o, b = (e) => {
30848
- i && y.reportValidity && (y.setCustomValidity(XJ(e) ? "" : e || ""), y.reportValidity());
30849
- }, x = {}, S = bY(o), C = FJ(o), w = S || C, T = (g || vY(o)) && KJ(o.value) && KJ(v) || yY(o) && o.value === "" || v === "" || Array.isArray(v) && !v.length || g && typeof v == "number" && isNaN(v), E = hY.bind(null, h, r, x), D = (e, t, n, r = tY.maxLength, i = tY.minLength) => {
31083
+ i && y.reportValidity && (y.setCustomValidity(sY(e) ? "" : e || ""), y.reportValidity());
31084
+ }, x = {}, S = jY(o), C = KJ(o), w = S || C, T = (g || kY(o)) && rY(o.value) && rY(v) || AY(o) && o.value === "" || v === "" || Array.isArray(v) && !v.length || g && typeof v == "number" && isNaN(v), E = EY.bind(null, h, r, x), D = (e, t, n, r = fY.maxLength, i = fY.minLength) => {
30850
31085
  let a = e ? t : n;
30851
31086
  x[h] = {
30852
31087
  type: e ? r : i,
@@ -30855,60 +31090,60 @@ var FY = (e) => zJ(e) && !kY(e) ? e : {
30855
31090
  ...E(e ? r : i, a)
30856
31091
  };
30857
31092
  };
30858
- if (a ? !Array.isArray(v) || !v.length : c && (!w && (T || LJ(v)) || XJ(v) && !v || C && !EY(s).isValid || S && !OY(s).isValid)) {
30859
- let { value: e, message: t } = cY(c) ? {
31093
+ if (a ? !Array.isArray(v) || !v.length : c && (!w && (T || JJ(v)) || sY(v) && !v || C && !LY(s).isValid || S && !zY(s).isValid)) {
31094
+ let { value: e, message: t } = yY(c) ? {
30860
31095
  value: !!c,
30861
31096
  message: c
30862
- } : FY(c);
31097
+ } : KY(c);
30863
31098
  if (e && (x[h] = {
30864
- type: tY.required,
31099
+ type: fY.required,
30865
31100
  message: t,
30866
31101
  ref: y,
30867
- ...E(tY.required, t)
31102
+ ...E(fY.required, t)
30868
31103
  }, !r)) return b(t), x;
30869
31104
  }
30870
- if (!T && (!LJ(d) || !LJ(f))) {
30871
- let e, t, n = FY(f), i = FY(d);
30872
- if (!LJ(v) && !isNaN(v)) {
31105
+ if (!T && (!JJ(d) || !JJ(f))) {
31106
+ let e, t, n = KY(f), i = KY(d);
31107
+ if (!JJ(v) && !isNaN(v)) {
30873
31108
  let r = o.valueAsNumber || v && +v;
30874
- LJ(n.value) || (e = r > n.value), LJ(i.value) || (t = r < i.value);
31109
+ JJ(n.value) || (e = r > n.value), JJ(i.value) || (t = r < i.value);
30875
31110
  } else {
30876
31111
  let r = o.valueAsDate || new Date(v), a = (e) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + e), s = o.type == "time", c = o.type == "week";
30877
- cY(n.value) && v && (e = s ? a(v) > a(n.value) : c ? v > n.value : r > new Date(n.value)), cY(i.value) && v && (t = s ? a(v) < a(i.value) : c ? v < i.value : r < new Date(i.value));
31112
+ yY(n.value) && v && (e = s ? a(v) > a(n.value) : c ? v > n.value : r > new Date(n.value)), yY(i.value) && v && (t = s ? a(v) < a(i.value) : c ? v < i.value : r < new Date(i.value));
30878
31113
  }
30879
- if ((e || t) && (D(!!e, n.message, i.message, tY.max, tY.min), !r)) return b(x[h].message), x;
31114
+ if ((e || t) && (D(!!e, n.message, i.message, fY.max, fY.min), !r)) return b(x[h].message), x;
30880
31115
  }
30881
- if ((l || u) && !T && (cY(v) || a && Array.isArray(v))) {
30882
- let e = FY(l), t = FY(u), n = !LJ(e.value) && v.length > +e.value, i = !LJ(t.value) && v.length < +t.value;
31116
+ if ((l || u) && !T && (yY(v) || a && Array.isArray(v))) {
31117
+ let e = KY(l), t = KY(u), n = !JJ(e.value) && v.length > +e.value, i = !JJ(t.value) && v.length < +t.value;
30883
31118
  if ((n || i) && (D(n, e.message, t.message), !r)) return b(x[h].message), x;
30884
31119
  }
30885
- if (p && !T && cY(v)) {
30886
- let { value: e, message: t } = FY(p);
30887
- if (kY(e) && !v.match(e) && (x[h] = {
30888
- type: tY.pattern,
31120
+ if (p && !T && yY(v)) {
31121
+ let { value: e, message: t } = KY(p);
31122
+ if (BY(e) && !v.match(e) && (x[h] = {
31123
+ type: fY.pattern,
30889
31124
  message: t,
30890
31125
  ref: o,
30891
- ...E(tY.pattern, t)
31126
+ ...E(fY.pattern, t)
30892
31127
  }, !r)) return b(t), x;
30893
31128
  }
30894
31129
  if (m) {
30895
- if (ZJ(m)) {
30896
- let e = PY(await m(v, n), y);
31130
+ if (cY(m)) {
31131
+ let e = GY(await m(v, n), y);
30897
31132
  if (e && (x[h] = {
30898
31133
  ...e,
30899
- ...E(tY.validate, e.message)
31134
+ ...E(fY.validate, e.message)
30900
31135
  }, !r)) return b(e.message), x;
30901
- } else if (zJ(m)) {
31136
+ } else if (XJ(m)) {
30902
31137
  let e = {};
30903
31138
  for (let t in m) {
30904
- if (!_Y(e) && !r) break;
30905
- let i = PY(await m[t](v, n), y, t);
31139
+ if (!OY(e) && !r) break;
31140
+ let i = GY(await m[t](v, n), y, t);
30906
31141
  i && (e = {
30907
31142
  ...i,
30908
31143
  ...E(t, i.message)
30909
31144
  }, b(i.message), r && (x[h] = e));
30910
31145
  }
30911
- if (!_Y(e) && (x[h] = {
31146
+ if (!OY(e) && (x[h] = {
30912
31147
  ref: y,
30913
31148
  ...e
30914
31149
  }, !r)) return x;
@@ -30916,76 +31151,76 @@ var FY = (e) => zJ(e) && !kY(e) ? e : {
30916
31151
  }
30917
31152
  return b(!0), x;
30918
31153
  };
30919
- eY.onSubmit, eY.onChange;
30920
- var LY = () => {
31154
+ dY.onSubmit, dY.onChange;
31155
+ var JY = () => {
30921
31156
  if (typeof crypto < "u" && crypto.randomUUID) return crypto.randomUUID();
30922
31157
  let e = typeof performance > "u" ? Date.now() : performance.now() * 1e3;
30923
31158
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
30924
31159
  let n = (Math.random() * 16 + e) % 16 | 0;
30925
31160
  return (t == "x" ? n : n & 3 | 8).toString(16);
30926
31161
  });
30927
- }, RY = (e, t, n = {}) => n.shouldFocus || KJ(n.shouldFocus) ? n.focusName || `${e}.${KJ(n.focusIndex) ? t : n.focusIndex}.` : "", zY = (e, t) => [...e, ...gY(t)], BY = (e) => Array.isArray(e) ? e.map(() => void 0) : void 0;
30928
- function VY(e, t, n) {
31162
+ }, YY = (e, t, n = {}) => n.shouldFocus || rY(n.shouldFocus) ? n.focusName || `${e}.${rY(n.focusIndex) ? t : n.focusIndex}.` : "", XY = (e, t) => [...e, ...DY(t)], ZY = (e) => Array.isArray(e) ? e.map(() => void 0) : void 0;
31163
+ function QY(e, t, n) {
30929
31164
  return [
30930
31165
  ...e.slice(0, t),
30931
- ...gY(n),
31166
+ ...DY(n),
30932
31167
  ...e.slice(t)
30933
31168
  ];
30934
31169
  }
30935
- var HY = (e, t, n) => Array.isArray(e) ? (KJ(e[n]) && (e[n] = void 0), e.splice(n, 0, e.splice(t, 1)[0]), e) : [], UY = (e, t) => [...gY(t), ...gY(e)];
30936
- function WY(e, t) {
31170
+ var $Y = (e, t, n) => Array.isArray(e) ? (rY(e[n]) && (e[n] = void 0), e.splice(n, 0, e.splice(t, 1)[0]), e) : [], eX = (e, t) => [...DY(t), ...DY(e)];
31171
+ function tX(e, t) {
30937
31172
  let n = 0, r = [...e];
30938
31173
  for (let e of t) r.splice(e - n, 1), n++;
30939
- return qJ(r).length ? r : [];
31174
+ return iY(r).length ? r : [];
30940
31175
  }
30941
- var GY = (e, t) => KJ(t) ? [] : WY(e, gY(t).sort((e, t) => e - t)), KY = (e, t, n) => {
31176
+ var nX = (e, t) => rY(t) ? [] : tX(e, DY(t).sort((e, t) => e - t)), rX = (e, t, n) => {
30942
31177
  [e[t], e[n]] = [e[n], e[t]];
30943
- }, qY = (e, t, n) => (e[t] = n, e);
30944
- function JY(e) {
30945
- let t = iY(), { control: n = t, name: r, keyName: i = "id", shouldUnregister: a, rules: o } = e, [s, c] = A.useState(n._getFieldArray(r)), l = A.useRef(n._getFieldArray(r).map(LY)), u = A.useRef(!1);
31178
+ }, iX = (e, t, n) => (e[t] = n, e);
31179
+ function aX(e) {
31180
+ let t = hY(), { control: n = t, name: r, keyName: i = "id", shouldUnregister: a, rules: o } = e, [s, c] = A.useState(n._getFieldArray(r)), l = A.useRef(n._getFieldArray(r).map(JY)), u = A.useRef(!1);
30946
31181
  n._names.array.add(r), A.useMemo(() => o && s.length >= 0 && n.register(r, o), [
30947
31182
  n,
30948
31183
  r,
30949
31184
  s.length,
30950
31185
  o
30951
- ]), oY(() => n._subjects.array.subscribe({ next: ({ values: e, name: t }) => {
31186
+ ]), _Y(() => n._subjects.array.subscribe({ next: ({ values: e, name: t }) => {
30952
31187
  if (t === r || !t) {
30953
- let t = YJ(e, r);
30954
- Array.isArray(t) && (c(t), l.current = t.map(LY));
31188
+ let t = oY(e, r);
31189
+ Array.isArray(t) && (c(t), l.current = t.map(JY));
30955
31190
  }
30956
31191
  } }).unsubscribe, [n, r]);
30957
31192
  let d = A.useCallback((e) => {
30958
31193
  u.current = !0, n._setFieldArray(r, e);
30959
31194
  }, [n, r]);
30960
31195
  return A.useEffect(() => {
30961
- n._state.action = !1, jY(r, n._names) && n._subjects.state.next({ ...n._formState });
30962
- let e = AY(n._options.mode);
30963
- if (u.current && (!e.isOnSubmit || n._formState.isSubmitted) && !AY(n._options.reValidateMode).isOnSubmit && !e.isOnBlur) if (n._options.resolver) n._runSchema([r]).then((e) => {
31196
+ n._state.action = !1, HY(r, n._names) && n._subjects.state.next({ ...n._formState });
31197
+ let e = VY(n._options.mode);
31198
+ if (u.current && (!e.isOnSubmit || n._formState.isSubmitted) && !VY(n._options.reValidateMode).isOnSubmit && !e.isOnBlur) if (n._options.resolver) n._runSchema([r]).then((e) => {
30964
31199
  n._updateIsValidating([r]);
30965
- let t = YJ(e.errors, r), i = YJ(n._formState.errors, r);
30966
- (i ? !t && i.type || t && (i.type !== t.type || i.message !== t.message) : t && t.type) && (t ? QJ(n._formState.errors, r, t) : CY(n._formState.errors, r), n._subjects.state.next({ errors: n._formState.errors }));
31200
+ let t = oY(e.errors, r), i = oY(n._formState.errors, r);
31201
+ (i ? !t && i.type || t && (i.type !== t.type || i.message !== t.message) : t && t.type) && (t ? lY(n._formState.errors, r, t) : PY(n._formState.errors, r), n._subjects.state.next({ errors: n._formState.errors }));
30967
31202
  });
30968
31203
  else {
30969
- let e = YJ(n._fields, r);
30970
- e && e._f && !(AY(n._options.reValidateMode).isOnSubmit && AY(n._options.mode).isOnSubmit) && IY(e, n._names.disabled, n._formValues, n._options.criteriaMode === eY.all, n._options.shouldUseNativeValidation, !0).then((e) => !_Y(e) && n._subjects.state.next({ errors: NY(n._formState.errors, e, r) }));
31204
+ let e = oY(n._fields, r);
31205
+ e && e._f && !(VY(n._options.reValidateMode).isOnSubmit && VY(n._options.mode).isOnSubmit) && qY(e, n._names.disabled, n._formValues, n._options.criteriaMode === dY.all, n._options.shouldUseNativeValidation, !0).then((e) => !OY(e) && n._subjects.state.next({ errors: WY(n._formState.errors, e, r) }));
30971
31206
  }
30972
31207
  n._subjects.state.next({
30973
31208
  name: r,
30974
- values: WJ(n._formValues)
30975
- }), n._names.focus && MY(n._fields, (e, t) => {
31209
+ values: tY(n._formValues)
31210
+ }), n._names.focus && UY(n._fields, (e, t) => {
30976
31211
  if (n._names.focus && t.startsWith(n._names.focus) && e.focus) return e.focus(), 1;
30977
31212
  }), n._names.focus = "", n._setValid(), u.current = !1;
30978
31213
  }, [
30979
31214
  s,
30980
31215
  r,
30981
31216
  n
30982
- ]), A.useEffect(() => (!YJ(n._formValues, r) && n._setFieldArray(r), () => {
31217
+ ]), A.useEffect(() => (!oY(n._formValues, r) && n._setFieldArray(r), () => {
30983
31218
  let e = !(n._options.shouldUnregister || a);
30984
31219
  u.current && e && n._subjects.state.next({
30985
31220
  name: r,
30986
- values: WJ(n._formValues)
31221
+ values: tY(n._formValues)
30987
31222
  }), e ? ((e, t) => {
30988
- let r = YJ(n._fields, e);
31223
+ let r = oY(n._fields, e);
30989
31224
  r && r._f && (r._f.mount = t);
30990
31225
  })(r, !1) : n.unregister(r);
30991
31226
  }), [
@@ -30996,7 +31231,7 @@ function JY(e) {
30996
31231
  ]), {
30997
31232
  swap: A.useCallback((e, t) => {
30998
31233
  let i = n._getFieldArray(r);
30999
- KY(i, e, t), KY(l.current, e, t), d(i), c(i), n._setFieldArray(r, i, KY, {
31234
+ rX(i, e, t), rX(l.current, e, t), d(i), c(i), n._setFieldArray(r, i, rX, {
31000
31235
  argA: e,
31001
31236
  argB: t
31002
31237
  }, !1);
@@ -31007,7 +31242,7 @@ function JY(e) {
31007
31242
  ]),
31008
31243
  move: A.useCallback((e, t) => {
31009
31244
  let i = n._getFieldArray(r);
31010
- HY(i, e, t), HY(l.current, e, t), d(i), c(i), n._setFieldArray(r, i, HY, {
31245
+ $Y(i, e, t), $Y(l.current, e, t), d(i), c(i), n._setFieldArray(r, i, $Y, {
31011
31246
  argA: e,
31012
31247
  argB: t
31013
31248
  }, !1);
@@ -31017,34 +31252,34 @@ function JY(e) {
31017
31252
  n
31018
31253
  ]),
31019
31254
  prepend: A.useCallback((e, t) => {
31020
- let i = gY(WJ(e)), a = UY(n._getFieldArray(r), i);
31021
- n._names.focus = RY(r, 0, t), l.current = UY(l.current, i.map(LY)), d(a), c(a), n._setFieldArray(r, a, UY, { argA: BY(e) });
31255
+ let i = DY(tY(e)), a = eX(n._getFieldArray(r), i);
31256
+ n._names.focus = YY(r, 0, t), l.current = eX(l.current, i.map(JY)), d(a), c(a), n._setFieldArray(r, a, eX, { argA: ZY(e) });
31022
31257
  }, [
31023
31258
  d,
31024
31259
  r,
31025
31260
  n
31026
31261
  ]),
31027
31262
  append: A.useCallback((e, t) => {
31028
- let i = gY(WJ(e)), a = zY(n._getFieldArray(r), i);
31029
- n._names.focus = RY(r, a.length - 1, t), l.current = zY(l.current, i.map(LY)), d(a), c(a), n._setFieldArray(r, a, zY, { argA: BY(e) });
31263
+ let i = DY(tY(e)), a = XY(n._getFieldArray(r), i);
31264
+ n._names.focus = YY(r, a.length - 1, t), l.current = XY(l.current, i.map(JY)), d(a), c(a), n._setFieldArray(r, a, XY, { argA: ZY(e) });
31030
31265
  }, [
31031
31266
  d,
31032
31267
  r,
31033
31268
  n
31034
31269
  ]),
31035
31270
  remove: A.useCallback((e) => {
31036
- let t = GY(n._getFieldArray(r), e);
31037
- l.current = GY(l.current, e), d(t), c(t), !Array.isArray(YJ(n._fields, r)) && QJ(n._fields, r, void 0), n._setFieldArray(r, t, GY, { argA: e });
31271
+ let t = nX(n._getFieldArray(r), e);
31272
+ l.current = nX(l.current, e), d(t), c(t), !Array.isArray(oY(n._fields, r)) && lY(n._fields, r, void 0), n._setFieldArray(r, t, nX, { argA: e });
31038
31273
  }, [
31039
31274
  d,
31040
31275
  r,
31041
31276
  n
31042
31277
  ]),
31043
31278
  insert: A.useCallback((e, t, i) => {
31044
- let a = gY(WJ(t)), o = VY(n._getFieldArray(r), e, a);
31045
- n._names.focus = RY(r, e, i), l.current = VY(l.current, e, a.map(LY)), d(o), c(o), n._setFieldArray(r, o, VY, {
31279
+ let a = DY(tY(t)), o = QY(n._getFieldArray(r), e, a);
31280
+ n._names.focus = YY(r, e, i), l.current = QY(l.current, e, a.map(JY)), d(o), c(o), n._setFieldArray(r, o, QY, {
31046
31281
  argA: e,
31047
- argB: BY(t)
31282
+ argB: ZY(t)
31048
31283
  });
31049
31284
  }, [
31050
31285
  d,
@@ -31052,8 +31287,8 @@ function JY(e) {
31052
31287
  n
31053
31288
  ]),
31054
31289
  update: A.useCallback((e, t) => {
31055
- let i = WJ(t), a = qY(n._getFieldArray(r), e, i);
31056
- l.current = [...a].map((t, n) => !t || n === e ? LY() : l.current[n]), d(a), c([...a]), n._setFieldArray(r, a, qY, {
31290
+ let i = tY(t), a = iX(n._getFieldArray(r), e, i);
31291
+ l.current = [...a].map((t, n) => !t || n === e ? JY() : l.current[n]), d(a), c([...a]), n._setFieldArray(r, a, iX, {
31057
31292
  argA: e,
31058
31293
  argB: i
31059
31294
  }, !0, !1);
@@ -31063,8 +31298,8 @@ function JY(e) {
31063
31298
  n
31064
31299
  ]),
31065
31300
  replace: A.useCallback((e) => {
31066
- let t = gY(WJ(e));
31067
- l.current = t.map(LY), d([...t]), c([...t]), n._setFieldArray(r, [...t], (e) => e, {}, !0, !1);
31301
+ let t = DY(tY(e));
31302
+ l.current = t.map(JY), d([...t]), c([...t]), n._setFieldArray(r, [...t], (e) => e, {}, !0, !1);
31068
31303
  }, [
31069
31304
  d,
31070
31305
  r,
@@ -31072,21 +31307,21 @@ function JY(e) {
31072
31307
  ]),
31073
31308
  fields: A.useMemo(() => s.map((e, t) => ({
31074
31309
  ...e,
31075
- [i]: l.current[t] || LY()
31310
+ [i]: l.current[t] || JY()
31076
31311
  })), [s, i])
31077
31312
  };
31078
31313
  }
31079
31314
  //#endregion
31080
31315
  //#region src/composed/JsonSchemaForm/models/JsonSchemaFormContext.ts
31081
- var YY = M(null);
31082
- function XY() {
31083
- let e = I(YY);
31316
+ var oX = M(null);
31317
+ function sX() {
31318
+ let e = I(oX);
31084
31319
  if (e === null) throw Error("useJsonSchemaFormContext must be used within a <JsonSchemaForm>");
31085
31320
  return e;
31086
31321
  }
31087
31322
  //#endregion
31088
31323
  //#region src/composed/JsonSchemaForm/conditional/evalCondition.ts
31089
- function ZY(e, t) {
31324
+ function cX(e, t) {
31090
31325
  if (e.$eq.size === 0) return !0;
31091
31326
  for (let [n, r] of e.$eq) {
31092
31327
  let e = t.get(n);
@@ -31096,11 +31331,11 @@ function ZY(e, t) {
31096
31331
  }
31097
31332
  //#endregion
31098
31333
  //#region src/composed/JsonSchemaForm/conditional/ConditionalGate.tsx
31099
- function QY({ condition: e, unregisterOnHide: t, children: n }) {
31100
- let { control: r } = XY(), i = B(() => Array.from(e.$eq.keys()), [e]), a = fY({
31334
+ function lX({ condition: e, unregisterOnHide: t, children: n }) {
31335
+ let { control: r } = sX(), i = B(() => Array.from(e.$eq.keys()), [e]), a = CY({
31101
31336
  control: r,
31102
31337
  name: i
31103
- }), o = ZY(e, B(() => {
31338
+ }), o = cX(e, B(() => {
31104
31339
  let e = /* @__PURE__ */ new Map();
31105
31340
  if (i.length === 0) return e;
31106
31341
  let t = Array.isArray(a) ? a : [a];
@@ -31115,8 +31350,26 @@ function QY({ condition: e, unregisterOnHide: t, children: n }) {
31115
31350
  ]), o ? /* @__PURE__ */ H(oe, { children: n }) : null;
31116
31351
  }
31117
31352
  //#endregion
31353
+ //#region src/composed/JsonSchemaForm/conditional/DisabledGate.tsx
31354
+ function uX({ condition: e, children: t }) {
31355
+ let n = sX(), r = B(() => Array.from(e.$eq.keys()), [e]), i = CY({
31356
+ control: n.control,
31357
+ name: r
31358
+ });
31359
+ return cX(e, B(() => {
31360
+ let e = /* @__PURE__ */ new Map(), t = Array.isArray(i) ? i : [i];
31361
+ return r.forEach((n, r) => e.set(n, t[r])), e;
31362
+ }, [r, i])) ? /* @__PURE__ */ H(oX.Provider, {
31363
+ value: {
31364
+ ...n,
31365
+ disabled: !0
31366
+ },
31367
+ children: t
31368
+ }) : /* @__PURE__ */ H(oe, { children: t });
31369
+ }
31370
+ //#endregion
31118
31371
  //#region src/composed/JsonSchemaForm/conditional/concretizePath.ts
31119
- function $Y(e, t) {
31372
+ function dX(e, t) {
31120
31373
  return e.split(".").map((e, n) => {
31121
31374
  let r = t[n];
31122
31375
  return e === "*" && r !== void 0 && /^\d+$/.test(r) ? r : e;
@@ -31124,13 +31377,13 @@ function $Y(e, t) {
31124
31377
  }
31125
31378
  //#endregion
31126
31379
  //#region src/composed/JsonSchemaForm/conditional/concretizeCondition.ts
31127
- function eX(e, t) {
31380
+ function fX(e, t) {
31128
31381
  let n = t === "" ? [] : t.split(".");
31129
- return { $eq: new Map([...e.$eq].map(([e, t]) => [$Y(e, n), t])) };
31382
+ return { $eq: new Map([...e.$eq].map(([e, t]) => [dX(e, n), t])) };
31130
31383
  }
31131
31384
  //#endregion
31132
31385
  //#region src/composed/JsonSchemaForm/schema/preprocess/walkDependencies.ts
31133
- function tX(e, t) {
31386
+ function pX(e, t) {
31134
31387
  if (!e) return e;
31135
31388
  let n = {};
31136
31389
  for (let [r, i] of Object.entries(e)) n[r] = Array.isArray(i) ? i : t(i);
@@ -31138,17 +31391,17 @@ function tX(e, t) {
31138
31391
  }
31139
31392
  //#endregion
31140
31393
  //#region src/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.ts
31141
- function nX(e) {
31142
- return rX(e);
31394
+ function mX(e) {
31395
+ return hX(e);
31143
31396
  }
31144
- function rX(e) {
31145
- return aX(iX({ ...e }));
31397
+ function hX(e) {
31398
+ return _X(gX({ ...e }));
31146
31399
  }
31147
- function iX(e) {
31400
+ function gX(e) {
31148
31401
  if (!Array.isArray(e.allOf) || e.allOf.length === 0) return e;
31149
31402
  let t = { ...e.properties ?? {} }, n = new Set(e.required ?? []), r = e.gioConfig ? { ...e.gioConfig } : void 0, i = { ...e.dependencies ?? {} };
31150
31403
  for (let a of e.allOf) {
31151
- let e = rX(a);
31404
+ let e = hX(a);
31152
31405
  Object.assign(t, e.properties ?? {}), e.required?.forEach((e) => n.add(e)), e.gioConfig && (r = {
31153
31406
  ...r,
31154
31407
  ...e.gioConfig
@@ -31157,33 +31410,33 @@ function iX(e) {
31157
31410
  let a = { ...e };
31158
31411
  return Object.keys(t).length > 0 && (a.properties = t), n.size > 0 && (a.required = Array.from(n)), r !== void 0 && (a.gioConfig = r), Object.keys(i).length > 0 && (a.dependencies = i), delete a.allOf, a;
31159
31412
  }
31160
- function aX(e) {
31161
- return e.properties &&= oX(e.properties, rX), e.items &&= Array.isArray(e.items) ? e.items.map(rX) : rX(e.items), e.oneOf &&= e.oneOf.map(rX), e.anyOf &&= e.anyOf.map(rX), e.dependencies &&= tX(e.dependencies, rX), e;
31413
+ function _X(e) {
31414
+ return e.properties &&= vX(e.properties, hX), e.items &&= Array.isArray(e.items) ? e.items.map(hX) : hX(e.items), e.oneOf &&= e.oneOf.map(hX), e.anyOf &&= e.anyOf.map(hX), e.dependencies &&= pX(e.dependencies, hX), e;
31162
31415
  }
31163
- function oX(e, t) {
31416
+ function vX(e, t) {
31164
31417
  let n = {};
31165
31418
  for (let [r, i] of Object.entries(e)) n[r] = t(i);
31166
31419
  return n;
31167
31420
  }
31168
31421
  //#endregion
31169
31422
  //#region src/composed/JsonSchemaForm/utils/jsonPointer.ts
31170
- function sX(e) {
31423
+ function yX(e) {
31171
31424
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
31172
31425
  }
31173
- function cX(e) {
31426
+ function bX(e) {
31174
31427
  return e.replace(/~1/g, "/").replace(/~0/g, "~");
31175
31428
  }
31176
31429
  //#endregion
31177
31430
  //#region src/composed/JsonSchemaForm/schema/preprocess/resolveRefs.ts
31178
- function lX(e) {
31179
- return uX(e, e, []);
31431
+ function xX(e) {
31432
+ return SX(e, e, []);
31180
31433
  }
31181
- function uX(e, t, n) {
31434
+ function SX(e, t, n) {
31182
31435
  if (typeof e.$ref == "string") {
31183
31436
  if (n.includes(e.$ref)) throw Error(`Cyclic $ref: ${[...n, e.$ref].join(" → ")}`);
31184
- let r = dX(t, e.$ref);
31437
+ let r = CX(t, e.$ref);
31185
31438
  if (r === void 0) throw Error(`Unresolved $ref: ${e.$ref}`);
31186
- let i = uX(r, t, [...n, e.$ref]), { $ref: a, gioConfig: o, ...s } = e, c = {
31439
+ let i = SX(r, t, [...n, e.$ref]), { $ref: a, gioConfig: o, ...s } = e, c = {
31187
31440
  ...i,
31188
31441
  ...s
31189
31442
  };
@@ -31195,25 +31448,25 @@ function uX(e, t, n) {
31195
31448
  let r = { ...e };
31196
31449
  if (r.properties) {
31197
31450
  let e = {};
31198
- for (let [i, a] of Object.entries(r.properties)) e[i] = uX(a, t, n);
31451
+ for (let [i, a] of Object.entries(r.properties)) e[i] = SX(a, t, n);
31199
31452
  r.properties = e;
31200
31453
  }
31201
- if (r.items &&= Array.isArray(r.items) ? r.items.map((e) => uX(e, t, n)) : uX(r.items, t, n), r.oneOf &&= r.oneOf.map((e) => uX(e, t, n)), r.anyOf &&= r.anyOf.map((e) => uX(e, t, n)), r.allOf &&= r.allOf.map((e) => uX(e, t, n)), r.dependencies &&= tX(r.dependencies, (e) => uX(e, t, n)), r.definitions) {
31454
+ if (r.items &&= Array.isArray(r.items) ? r.items.map((e) => SX(e, t, n)) : SX(r.items, t, n), r.oneOf &&= r.oneOf.map((e) => SX(e, t, n)), r.anyOf &&= r.anyOf.map((e) => SX(e, t, n)), r.allOf &&= r.allOf.map((e) => SX(e, t, n)), r.dependencies &&= pX(r.dependencies, (e) => SX(e, t, n)), r.definitions) {
31202
31455
  let e = {};
31203
- for (let [i, a] of Object.entries(r.definitions)) e[i] = uX(a, t, n);
31456
+ for (let [i, a] of Object.entries(r.definitions)) e[i] = SX(a, t, n);
31204
31457
  r.definitions = e;
31205
31458
  }
31206
31459
  if (r.$defs) {
31207
31460
  let e = {};
31208
- for (let [i, a] of Object.entries(r.$defs)) e[i] = uX(a, t, n);
31461
+ for (let [i, a] of Object.entries(r.$defs)) e[i] = SX(a, t, n);
31209
31462
  r.$defs = e;
31210
31463
  }
31211
31464
  return r;
31212
31465
  }
31213
- function dX(e, t) {
31466
+ function CX(e, t) {
31214
31467
  if (t === "#") return e;
31215
31468
  if (!t.startsWith("#/")) throw Error(`Unsupported $ref format (only local JSON Pointers are supported): ${t}`);
31216
- let n = t.slice(2).split("/").map(cX), r = e;
31469
+ let n = t.slice(2).split("/").map(bX), r = e;
31217
31470
  for (let e of n) {
31218
31471
  if (typeof r != "object" || !r) return;
31219
31472
  r = r[e];
@@ -31222,28 +31475,28 @@ function dX(e, t) {
31222
31475
  }
31223
31476
  //#endregion
31224
31477
  //#region src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts
31225
- function fX(e) {
31478
+ function wX(e) {
31226
31479
  let t;
31227
31480
  try {
31228
- t = nX(lX(e));
31481
+ t = mX(xX(e));
31229
31482
  } catch {
31230
31483
  return;
31231
31484
  }
31232
- return pX(t);
31485
+ return TX(t);
31233
31486
  }
31234
- function pX(e) {
31487
+ function TX(e) {
31235
31488
  if (e.deprecated === !0) return;
31236
31489
  if (Object.prototype.hasOwnProperty.call(e, "default")) return e.default;
31237
31490
  let t = {};
31238
31491
  if (e.properties) for (let [n, r] of Object.entries(e.properties)) {
31239
- let e = pX(r);
31492
+ let e = TX(r);
31240
31493
  e !== void 0 && (t[n] = e);
31241
31494
  }
31242
31495
  let n = (e.oneOf ?? e.anyOf)?.find((e) => e.deprecated !== !0);
31243
31496
  if (n?.properties) {
31244
31497
  for (let [e, r] of Object.entries(n.properties)) if (r.const !== void 0) t[e] = r.const;
31245
31498
  else if (!(e in t)) {
31246
- let n = pX(r);
31499
+ let n = TX(r);
31247
31500
  n !== void 0 && (t[e] = n);
31248
31501
  }
31249
31502
  }
@@ -31251,23 +31504,23 @@ function pX(e) {
31251
31504
  }
31252
31505
  //#endregion
31253
31506
  //#region src/composed/JsonSchemaForm/utils/fieldErrors.ts
31254
- function mX(e) {
31507
+ function EX(e) {
31255
31508
  return e ? e.types ? Object.values(e.types).flat().filter((e) => typeof e == "string").map((e) => ({ message: e })) : [{ message: e.message }] : [];
31256
31509
  }
31257
31510
  //#endregion
31258
31511
  //#region src/composed/JsonSchemaForm/utils/labelOf.ts
31259
- function hX(e) {
31512
+ function DX(e) {
31260
31513
  return e ? e.charAt(0).toUpperCase() + e.slice(1) : "Field";
31261
31514
  }
31262
- function gX(e) {
31263
- return hX(e.split(".").pop());
31515
+ function OX(e) {
31516
+ return DX(e.split(".").pop());
31264
31517
  }
31265
- function _X(e, t) {
31266
- return typeof e.title == "string" && e.title.length > 0 ? e.title : hX(t);
31518
+ function kX(e, t) {
31519
+ return typeof e.title == "string" && e.title.length > 0 ? e.title : DX(t);
31267
31520
  }
31268
31521
  //#endregion
31269
31522
  //#region src/composed/JsonSchemaForm/fields/banner/SchemaBanner.tsx
31270
- function vX({ banner: e }) {
31523
+ function AX({ banner: e }) {
31271
31524
  let t = "title" in e ? e.title : void 0;
31272
31525
  return /* @__PURE__ */ U(Yy, {
31273
31526
  role: "note",
@@ -31287,7 +31540,7 @@ function vX({ banner: e }) {
31287
31540
  }
31288
31541
  //#endregion
31289
31542
  //#region src/composed/JsonSchemaForm/fields/array/buildDefaultForType.ts
31290
- function yX(e) {
31543
+ function jX(e) {
31291
31544
  if (e.default !== void 0) return e.default;
31292
31545
  switch (e.type) {
31293
31546
  case "string": return "";
@@ -31302,11 +31555,11 @@ function yX(e) {
31302
31555
  }
31303
31556
  //#endregion
31304
31557
  //#region src/composed/JsonSchemaForm/fields/array/use-array-field.ts
31305
- function bX(e, t) {
31306
- let n = XY(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = JY({
31558
+ function MX(e, t) {
31559
+ let n = sX(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = aX({
31307
31560
  control: n.control,
31308
31561
  name: r
31309
- }), { fieldState: s } = pY({
31562
+ }), { fieldState: s } = wY({
31310
31563
  control: n.control,
31311
31564
  name: r
31312
31565
  }), c = n.disabled || e.readOnly === !0, l = typeof e.minItems == "number" ? e.minItems : 0, u = typeof e.maxItems == "number" ? e.maxItems : Infinity;
@@ -31324,10 +31577,10 @@ function bX(e, t) {
31324
31577
  }
31325
31578
  //#endregion
31326
31579
  //#region src/composed/JsonSchemaForm/fields/array/ArrayField.tsx
31327
- function xX({ node: e, name: t, depth: n }) {
31328
- let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } = bX(r, t), p = r.items, m = e.items, h = _X(r, t), g = r.gioConfig?.uiBorder === "full";
31580
+ function NX({ node: e, name: t, depth: n }) {
31581
+ let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } = MX(r, t), p = r.items, m = e.items, h = kX(r, t), g = r.gioConfig?.uiBorder === "full";
31329
31582
  function _() {
31330
- s(CX(p), { shouldFocus: !1 });
31583
+ s(FX(p), { shouldFocus: !1 });
31331
31584
  }
31332
31585
  return /* @__PURE__ */ U(pR, {
31333
31586
  "aria-required": r.isRequired || void 0,
@@ -31339,10 +31592,10 @@ function xX({ node: e, name: t, depth: n }) {
31339
31592
  children: h
31340
31593
  }),
31341
31594
  r.description && /* @__PURE__ */ H(xR, { children: r.description }),
31342
- r.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: r.gioConfig.banner }),
31595
+ r.gioConfig?.banner && /* @__PURE__ */ H(AX, { banner: r.gioConfig.banner }),
31343
31596
  /* @__PURE__ */ H("div", {
31344
31597
  className: "flex flex-col",
31345
- children: o.map((e, t) => /* @__PURE__ */ H(SX, {
31598
+ children: o.map((e, t) => /* @__PURE__ */ H(PX, {
31346
31599
  index: t,
31347
31600
  path: a,
31348
31601
  itemsNode: m,
@@ -31364,11 +31617,11 @@ function xX({ node: e, name: t, depth: n }) {
31364
31617
  children: [/* @__PURE__ */ H(E, { "aria-hidden": "true" }), "Add"]
31365
31618
  })
31366
31619
  }),
31367
- /* @__PURE__ */ H(CR, { errors: mX(l.error) })
31620
+ /* @__PURE__ */ H(CR, { errors: EX(l.error) })
31368
31621
  ]
31369
31622
  });
31370
31623
  }
31371
- function SX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove: a, onRemove: o, ctx: c }) {
31624
+ function PX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove: a, onRemove: o, ctx: c }) {
31372
31625
  let l = `${t}.${e}`;
31373
31626
  return /* @__PURE__ */ U(Uw, {
31374
31627
  defaultOpen: !0,
@@ -31397,13 +31650,13 @@ function SX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
31397
31650
  })]
31398
31651
  }), /* @__PURE__ */ H(Gw, { children: /* @__PURE__ */ H("div", {
31399
31652
  className: "pt-2 pb-4 pl-6",
31400
- children: n && /* @__PURE__ */ H(YY.Provider, {
31653
+ children: n && /* @__PURE__ */ H(oX.Provider, {
31401
31654
  value: {
31402
31655
  ...c,
31403
31656
  basePath: l,
31404
31657
  disabled: i
31405
31658
  },
31406
- children: /* @__PURE__ */ H(eZ, {
31659
+ children: /* @__PURE__ */ H(fZ, {
31407
31660
  node: n,
31408
31661
  name: "",
31409
31662
  depth: r + 1
@@ -31412,17 +31665,17 @@ function SX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
31412
31665
  }) })]
31413
31666
  });
31414
31667
  }
31415
- function CX(e) {
31416
- let t = fX(e);
31417
- return t === void 0 ? yX(e) : t;
31668
+ function FX(e) {
31669
+ let t = wX(e);
31670
+ return t === void 0 ? jX(e) : t;
31418
31671
  }
31419
31672
  //#endregion
31420
31673
  //#region src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx
31421
- function wX({ node: e, name: t }) {
31422
- let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } = bX(n, t), d = n.items, f = d && !Array.isArray(d) ? d.properties ?? {} : {}, p = Object.keys(f), m = _X(n, t);
31674
+ function IX({ node: e, name: t }) {
31675
+ let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } = MX(n, t), d = n.items, f = d && !Array.isArray(d) ? d.properties ?? {} : {}, p = Object.keys(f), m = kX(n, t);
31423
31676
  function h() {
31424
31677
  let e = {};
31425
- for (let t of p) e[t] = yX(f[t]);
31678
+ for (let t of p) e[t] = jX(f[t]);
31426
31679
  a(e, { shouldFocus: !1 });
31427
31680
  }
31428
31681
  return /* @__PURE__ */ U(pR, {
@@ -31434,16 +31687,16 @@ function wX({ node: e, name: t }) {
31434
31687
  children: m
31435
31688
  }),
31436
31689
  n.description && /* @__PURE__ */ H(xR, { children: n.description }),
31437
- n.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: n.gioConfig.banner }),
31690
+ n.gioConfig?.banner && /* @__PURE__ */ H(AX, { banner: n.gioConfig.banner }),
31438
31691
  /* @__PURE__ */ H("div", {
31439
31692
  className: "overflow-hidden rounded-lg border",
31440
31693
  children: /* @__PURE__ */ U(HW, { children: [/* @__PURE__ */ H(UW, { children: /* @__PURE__ */ U(KW, { children: [p.map((e) => /* @__PURE__ */ H(qW, {
31441
31694
  scope: "col",
31442
- children: DX(f[e], e)
31695
+ children: zX(f[e], e)
31443
31696
  }, e)), /* @__PURE__ */ H(qW, {
31444
31697
  "aria-hidden": "true",
31445
31698
  className: "w-px"
31446
- })] }) }), /* @__PURE__ */ H(WW, { children: i.map((e, t) => /* @__PURE__ */ H(TX, {
31699
+ })] }) }), /* @__PURE__ */ H(WW, { children: i.map((e, t) => /* @__PURE__ */ H(LX, {
31447
31700
  rowIndex: t,
31448
31701
  rowPath: `${r}.${t}`,
31449
31702
  columnKeys: p,
@@ -31461,12 +31714,12 @@ function wX({ node: e, name: t }) {
31461
31714
  onClick: h,
31462
31715
  children: [/* @__PURE__ */ H(E, { "aria-hidden": "true" }), "Add"]
31463
31716
  }) }),
31464
- /* @__PURE__ */ H(CR, { errors: mX(s.error) })
31717
+ /* @__PURE__ */ H(CR, { errors: EX(s.error) })
31465
31718
  ]
31466
31719
  });
31467
31720
  }
31468
- function TX({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disabled: i, canRemove: a, onRemove: o }) {
31469
- return /* @__PURE__ */ U(KW, { children: [n.map((n) => /* @__PURE__ */ H(EX, {
31721
+ function LX({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disabled: i, canRemove: a, onRemove: o }) {
31722
+ return /* @__PURE__ */ U(KW, { children: [n.map((n) => /* @__PURE__ */ H(RX, {
31470
31723
  columnKey: n,
31471
31724
  cellPath: `${t}.${n}`,
31472
31725
  propSchema: r[n],
@@ -31485,8 +31738,8 @@ function TX({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disable
31485
31738
  })
31486
31739
  })] });
31487
31740
  }
31488
- function EX({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
31489
- let { control: a } = XY(), { field: o, fieldState: s } = pY({
31741
+ function RX({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
31742
+ let { control: a } = sX(), { field: o, fieldState: s } = wY({
31490
31743
  control: a,
31491
31744
  name: t
31492
31745
  }), { ref: c, onBlur: l, onChange: u, value: d } = o;
@@ -31498,21 +31751,21 @@ function EX({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i
31498
31751
  onBlur: l,
31499
31752
  disabled: i,
31500
31753
  "aria-invalid": s.invalid,
31501
- "aria-label": `${DX(n, e)} for row ${r + 1}`,
31754
+ "aria-label": `${zX(n, e)} for row ${r + 1}`,
31502
31755
  placeholder: typeof n.title == "string" ? n.title : void 0
31503
31756
  }) });
31504
31757
  }
31505
- function DX(e, t) {
31758
+ function zX(e, t) {
31506
31759
  return typeof e.title == "string" ? e.title : t.charAt(0).toUpperCase() + t.slice(1);
31507
31760
  }
31508
31761
  //#endregion
31509
31762
  //#region src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx
31510
- function OX({ node: e, name: t }) {
31511
- let { control: n, basePath: r, disabled: i } = XY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = pY({
31763
+ function BX({ node: e, name: t }) {
31764
+ let { control: n, basePath: r, disabled: i } = sX(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = wY({
31512
31765
  control: n,
31513
31766
  name: o,
31514
31767
  defaultValue: typeof a.default == "boolean" ? a.default : !1
31515
- }), l = _X(a, t), u = i || a.readOnly === !0;
31768
+ }), l = kX(a, t), u = i || a.readOnly === !0;
31516
31769
  return /* @__PURE__ */ U(_R, {
31517
31770
  orientation: "horizontal",
31518
31771
  "data-invalid": c.invalid,
@@ -31528,43 +31781,43 @@ function OX({ node: e, name: t }) {
31528
31781
  htmlFor: o,
31529
31782
  children: l
31530
31783
  }),
31531
- a.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: a.gioConfig.banner }),
31784
+ a.gioConfig?.banner && /* @__PURE__ */ H(AX, { banner: a.gioConfig.banner }),
31532
31785
  a.description && /* @__PURE__ */ H(xR, { children: a.description }),
31533
- /* @__PURE__ */ H(CR, { errors: mX(c.error) })
31786
+ /* @__PURE__ */ H(CR, { errors: EX(c.error) })
31534
31787
  ] })]
31535
31788
  });
31536
31789
  }
31537
31790
  //#endregion
31538
31791
  //#region src/composed/JsonSchemaForm/utils/schemaShape.ts
31539
- function kX(e) {
31792
+ function VX(e) {
31540
31793
  return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.every((e) => e.const !== void 0);
31541
31794
  }
31542
- function AX(e) {
31795
+ function HX(e) {
31543
31796
  return e.type !== "array" || e.uniqueItems !== !0 || !e.items || Array.isArray(e.items) ? !1 : Array.isArray(e.items.enum) && e.items.enum.length > 0;
31544
31797
  }
31545
- function jX(e) {
31798
+ function UX(e) {
31546
31799
  return e.type === "array" && e.gioConfig?.uiType === "gio-headers-array";
31547
31800
  }
31548
- function MX(e) {
31549
- return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !kX(e);
31801
+ function WX(e) {
31802
+ return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !VX(e);
31550
31803
  }
31551
- function NX(e) {
31804
+ function GX(e) {
31552
31805
  return Array.isArray(e.anyOf) && e.anyOf.length > 0 && e.anyOf.some((e) => e.properties !== void 0);
31553
31806
  }
31554
31807
  //#endregion
31555
31808
  //#region src/composed/JsonSchemaForm/fields/enum/enumOptions.ts
31556
- function PX(e, t) {
31809
+ function KX(e, t) {
31557
31810
  let n = t?.[String(e)];
31558
31811
  return n === void 0 ? e === null ? "—" : String(e) : n;
31559
31812
  }
31560
- function FX(e, t) {
31813
+ function qX(e, t) {
31561
31814
  return e.map((e, n) => ({
31562
31815
  raw: e,
31563
31816
  key: String(n),
31564
- label: PX(e, t)
31817
+ label: KX(e, t)
31565
31818
  }));
31566
31819
  }
31567
- function IX(e) {
31820
+ function JX(e) {
31568
31821
  return e.map((e, t) => ({
31569
31822
  raw: e.const,
31570
31823
  key: String(t),
@@ -31573,12 +31826,12 @@ function IX(e) {
31573
31826
  }
31574
31827
  //#endregion
31575
31828
  //#region src/composed/JsonSchemaForm/fields/enum/EnumField.tsx
31576
- function LX({ node: e, name: t }) {
31577
- let { control: n, basePath: r, disabled: i } = XY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = pY({
31829
+ function YX({ node: e, name: t }) {
31830
+ let { control: n, basePath: r, disabled: i } = sX(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = wY({
31578
31831
  control: n,
31579
31832
  name: o,
31580
31833
  defaultValue: a.default
31581
- }), { ref: l, onBlur: u } = s, d = _X(a, t), f = i || a.readOnly === !0, p = RX(a), m = p.find((e) => Object.is(e.raw, s.value))?.key ?? "", h = (e) => p.find((t) => t.key === e)?.raw;
31834
+ }), { ref: l, onBlur: u } = s, d = kX(a, t), f = i || a.readOnly === !0, p = XX(a), m = p.find((e) => Object.is(e.raw, s.value))?.key ?? "", h = (e) => p.find((t) => t.key === e)?.raw;
31582
31835
  return /* @__PURE__ */ U(_R, {
31583
31836
  "data-invalid": c.invalid,
31584
31837
  children: [
@@ -31587,7 +31840,7 @@ function LX({ node: e, name: t }) {
31587
31840
  required: a.isRequired,
31588
31841
  children: d
31589
31842
  }),
31590
- a.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: a.gioConfig.banner }),
31843
+ a.gioConfig?.banner && /* @__PURE__ */ H(AX, { banner: a.gioConfig.banner }),
31591
31844
  /* @__PURE__ */ U(tU, {
31592
31845
  value: m,
31593
31846
  onValueChange: (e) => s.onChange(h(e)),
@@ -31605,22 +31858,22 @@ function LX({ node: e, name: t }) {
31605
31858
  }, e.key)) })]
31606
31859
  }),
31607
31860
  a.description && /* @__PURE__ */ H(xR, { children: a.description }),
31608
- /* @__PURE__ */ H(CR, { errors: mX(c.error) })
31861
+ /* @__PURE__ */ H(CR, { errors: EX(c.error) })
31609
31862
  ]
31610
31863
  });
31611
31864
  }
31612
- function RX(e) {
31613
- return kX(e) ? IX(e.oneOf ?? []) : FX(e.enum ?? [], e.gioConfig?.enumLabelMap);
31865
+ function XX(e) {
31866
+ return VX(e) ? JX(e.oneOf ?? []) : qX(e.enum ?? [], e.gioConfig?.enumLabelMap);
31614
31867
  }
31615
31868
  //#endregion
31616
31869
  //#region src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx
31617
- function zX({ node: e, name: t }) {
31618
- let { control: n, basePath: r, disabled: i } = XY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = pY({
31870
+ function ZX({ node: e, name: t }) {
31871
+ let { control: n, basePath: r, disabled: i } = sX(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = wY({
31619
31872
  control: n,
31620
31873
  name: o,
31621
31874
  defaultValue: Array.isArray(a.default) ? a.default : []
31622
- }), { ref: l, onBlur: u, onChange: d, value: f } = s, p = EM(), m = _X(a, t), h = i || a.readOnly === !0, g = a.items, _ = FX(g.enum ?? [], g.gioConfig?.enumLabelMap), v = _.map((e) => e.label), y = (e) => _.find((t) => t.label === e)?.raw, b = (e) => _.find((t) => Object.is(t.raw, e))?.label, x = (Array.isArray(s.value) ? s.value : []).map((e) => b(e)).filter((e) => e !== void 0);
31623
- return BX({
31875
+ }), { ref: l, onBlur: u, onChange: d, value: f } = s, p = EM(), m = kX(a, t), h = i || a.readOnly === !0, g = a.items, _ = qX(g.enum ?? [], g.gioConfig?.enumLabelMap), v = _.map((e) => e.label), y = (e) => _.find((t) => t.label === e)?.raw, b = (e) => _.find((t) => Object.is(t.raw, e))?.label, x = (Array.isArray(s.value) ? s.value : []).map((e) => b(e)).filter((e) => e !== void 0);
31876
+ return QX({
31624
31877
  schema: a,
31625
31878
  options: _,
31626
31879
  value: f,
@@ -31633,7 +31886,7 @@ function zX({ node: e, name: t }) {
31633
31886
  required: a.isRequired,
31634
31887
  children: m
31635
31888
  }),
31636
- a.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: a.gioConfig.banner }),
31889
+ a.gioConfig?.banner && /* @__PURE__ */ H(AX, { banner: a.gioConfig.banner }),
31637
31890
  /* @__PURE__ */ U(uM, {
31638
31891
  multiple: !0,
31639
31892
  autoHighlight: !0,
@@ -31666,27 +31919,27 @@ function zX({ node: e, name: t }) {
31666
31919
  })]
31667
31920
  }),
31668
31921
  a.description && /* @__PURE__ */ H(xR, { children: a.description }),
31669
- /* @__PURE__ */ H(CR, { errors: mX(c.error) })
31922
+ /* @__PURE__ */ H(CR, { errors: EX(c.error) })
31670
31923
  ]
31671
31924
  });
31672
31925
  }
31673
- function BX({ schema: e, options: t, value: n, onReset: r }) {
31926
+ function QX({ schema: e, options: t, value: n, onReset: r }) {
31674
31927
  R(() => {
31675
31928
  (Array.isArray(n) ? n : []).every((e) => t.some((t) => Object.is(t.raw, e))) || r(Array.isArray(e.default) ? e.default : []);
31676
31929
  }, [e]);
31677
31930
  }
31678
31931
  //#endregion
31679
31932
  //#region src/composed/JsonSchemaForm/fields/null/NullField.tsx
31680
- function VX() {
31933
+ function $X() {
31681
31934
  return null;
31682
31935
  }
31683
31936
  //#endregion
31684
31937
  //#region src/composed/JsonSchemaForm/fields/number/NumberField.tsx
31685
- function HX({ node: e, name: t }) {
31686
- let { control: n, basePath: r, disabled: i } = XY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = pY({
31938
+ function eZ({ node: e, name: t }) {
31939
+ let { control: n, basePath: r, disabled: i } = sX(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = wY({
31687
31940
  control: n,
31688
31941
  name: o
31689
- }), l = _X(a, t), u = i || a.readOnly === !0, d = (e) => {
31942
+ }), l = kX(a, t), u = i || a.readOnly === !0, d = (e) => {
31690
31943
  let t = e.target.value;
31691
31944
  if (t === "") {
31692
31945
  s.onChange(null);
@@ -31703,7 +31956,7 @@ function HX({ node: e, name: t }) {
31703
31956
  required: a.isRequired,
31704
31957
  children: l
31705
31958
  }),
31706
- a.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: a.gioConfig.banner }),
31959
+ a.gioConfig?.banner && /* @__PURE__ */ H(AX, { banner: a.gioConfig.banner }),
31707
31960
  /* @__PURE__ */ H(eM, {
31708
31961
  id: o,
31709
31962
  type: "number",
@@ -31718,21 +31971,21 @@ function HX({ node: e, name: t }) {
31718
31971
  step: f
31719
31972
  }),
31720
31973
  a.description && /* @__PURE__ */ H(xR, { children: a.description }),
31721
- /* @__PURE__ */ H(CR, { errors: mX(c.error) })
31974
+ /* @__PURE__ */ H(CR, { errors: EX(c.error) })
31722
31975
  ]
31723
31976
  });
31724
31977
  }
31725
31978
  //#endregion
31726
31979
  //#region src/composed/JsonSchemaForm/utils/pickActiveVariant.ts
31727
- function UX(e, t, n, r) {
31980
+ function tZ(e, t, n, r) {
31728
31981
  if (e.length === 0) return -1;
31729
31982
  let i = n?.get(t);
31730
- return WX(i, e) && GX(e[i], r) ? i : KX(e, r);
31983
+ return nZ(i, e) && rZ(e[i], r) ? i : iZ(e, r);
31731
31984
  }
31732
- function WX(e, t) {
31985
+ function nZ(e, t) {
31733
31986
  return typeof e == "number" && Number.isInteger(e) && t[e] !== void 0;
31734
31987
  }
31735
- function GX(e, t) {
31988
+ function rZ(e, t) {
31736
31989
  return Object.entries(e.properties ?? {}).every(([e, n]) => {
31737
31990
  if (n.const !== void 0) return t(e) === n.const;
31738
31991
  if (typeof n.pattern == "string") {
@@ -31742,18 +31995,18 @@ function GX(e, t) {
31742
31995
  return !0;
31743
31996
  });
31744
31997
  }
31745
- function KX(e, t) {
31998
+ function iZ(e, t) {
31746
31999
  let n = 0, r = {
31747
32000
  viable: !1,
31748
32001
  matches: -1
31749
32002
  };
31750
32003
  return e.forEach((e, i) => {
31751
- let a = qX(e, t);
31752
- JX(a, r) > 0 && (n = i, r = a);
32004
+ let a = aZ(e, t);
32005
+ oZ(a, r) > 0 && (n = i, r = a);
31753
32006
  }), n;
31754
32007
  }
31755
- function qX(e, t) {
31756
- return GX(e, t) ? {
32008
+ function aZ(e, t) {
32009
+ return rZ(e, t) ? {
31757
32010
  viable: (e.required ?? []).every((e) => t(e) !== void 0),
31758
32011
  matches: Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length
31759
32012
  } : {
@@ -31761,13 +32014,13 @@ function qX(e, t) {
31761
32014
  matches: -1
31762
32015
  };
31763
32016
  }
31764
- function JX(e, t) {
32017
+ function oZ(e, t) {
31765
32018
  return e.viable === t.viable ? e.matches - t.matches : e.viable ? 1 : -1;
31766
32019
  }
31767
32020
  //#endregion
31768
32021
  //#region src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx
31769
- function YX({ node: e, depth: t }) {
31770
- let n = XY(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = B(() => e.variants ?? [], [e.variants]), [l, u] = V(() => UX(c.map((e) => e.raw), a, s, (e) => r._getWatch(a ? `${a}.${e}` : e))), d = B(() => c.map((e) => (e.dependencyBranches ?? []).map((e) => Array.from(e.properties.keys()).map((e) => a ? `${a}.${e}` : e))), [c, a]);
32022
+ function sZ({ node: e, depth: t }) {
32023
+ let n = sX(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = B(() => e.variants ?? [], [e.variants]), [l, u] = V(() => tZ(c.map((e) => e.raw), a, s, (e) => r._getWatch(a ? `${a}.${e}` : e))), d = B(() => c.map((e) => (e.dependencyBranches ?? []).map((e) => Array.from(e.properties.keys()).map((e) => a ? `${a}.${e}` : e))), [c, a]);
31771
32024
  if (c.length === 0) return null;
31772
32025
  let f = c[l] ?? c[0], p = f.dependencyBranches ?? [], m = n.disabled || o.readOnly === !0, h = `${a || "root"}-variant`, g = (e) => {
31773
32026
  if (e === l) return;
@@ -31798,21 +32051,21 @@ function YX({ node: e, depth: t }) {
31798
32051
  }, t)) })]
31799
32052
  }),
31800
32053
  t === 0 && o.description && /* @__PURE__ */ H(xR, { children: o.description }),
31801
- o.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: o.gioConfig.banner })
32054
+ o.gioConfig?.banner && /* @__PURE__ */ H(AX, { banner: o.gioConfig.banner })
31802
32055
  ] }),
31803
- f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ H(XX, {
32056
+ f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ H(cZ, {
31804
32057
  path: a ? `${a}.${e}` : e,
31805
32058
  value: t
31806
32059
  }, e)),
31807
- Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ H(eZ, {
32060
+ Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ H(fZ, {
31808
32061
  node: n,
31809
32062
  name: e,
31810
32063
  depth: t + 1
31811
32064
  }, `${l}-${e}`)),
31812
- p.map((e, n) => /* @__PURE__ */ H(QY, {
31813
- condition: eX(e.showIf, a),
32065
+ p.map((e, n) => /* @__PURE__ */ H(lX, {
32066
+ condition: fX(e.showIf, a),
31814
32067
  unregisterOnHide: d[l]?.[n],
31815
- children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ H(eZ, {
32068
+ children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ H(fZ, {
31816
32069
  node: n,
31817
32070
  name: e,
31818
32071
  depth: t + 1
@@ -31820,8 +32073,8 @@ function YX({ node: e, depth: t }) {
31820
32073
  }, `${l}-var-dep-${n}`))
31821
32074
  ] });
31822
32075
  }
31823
- function XX({ path: e, value: t }) {
31824
- let { control: n } = XY(), { field: r } = pY({
32076
+ function cZ({ path: e, value: t }) {
32077
+ let { control: n } = sX(), { field: r } = wY({
31825
32078
  control: n,
31826
32079
  name: e
31827
32080
  }), { onChange: i } = r;
@@ -31831,28 +32084,28 @@ function XX({ path: e, value: t }) {
31831
32084
  }
31832
32085
  //#endregion
31833
32086
  //#region src/composed/JsonSchemaForm/fields/object/ObjectField.tsx
31834
- function ZX({ node: e, name: t, depth: n }) {
31835
- let r = XY(), { schema: i } = e, a = t ? r.basePath ? `${r.basePath}.${t}` : t : r.basePath, o = MX(i) || NX(i), s = B(() => e.dependencyBranches ?? [], [e.dependencyBranches]), c = s.length > 0, l = B(() => s.map((e) => Array.from(e.properties.keys()).map((e) => a ? `${a}.${e}` : e)), [s, a]), u = (e.properties || o || c) && /* @__PURE__ */ H(YY.Provider, {
32087
+ function lZ({ node: e, name: t, depth: n }) {
32088
+ let r = sX(), { schema: i } = e, a = t ? r.basePath ? `${r.basePath}.${t}` : t : r.basePath, o = WX(i) || GX(i), s = B(() => e.dependencyBranches ?? [], [e.dependencyBranches]), c = s.length > 0, l = B(() => s.map((e) => Array.from(e.properties.keys()).map((e) => a ? `${a}.${e}` : e)), [s, a]), u = (e.properties || o || c) && /* @__PURE__ */ H(oX.Provider, {
31836
32089
  value: {
31837
32090
  ...r,
31838
32091
  basePath: a
31839
32092
  },
31840
32093
  children: /* @__PURE__ */ U(hR, { children: [
31841
- e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(eZ, {
32094
+ e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(fZ, {
31842
32095
  node: t,
31843
32096
  name: e,
31844
32097
  depth: n + 1
31845
32098
  }, e)),
31846
- s.map((e, t) => /* @__PURE__ */ H(QY, {
31847
- condition: eX(e.showIf, a),
32099
+ s.map((e, t) => /* @__PURE__ */ H(lX, {
32100
+ condition: fX(e.showIf, a),
31848
32101
  unregisterOnHide: l[t],
31849
- children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(eZ, {
32102
+ children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(fZ, {
31850
32103
  node: t,
31851
32104
  name: e,
31852
32105
  depth: n + 1
31853
32106
  }, e))
31854
32107
  }, `dep-${t}`)),
31855
- o && /* @__PURE__ */ H(YX, {
32108
+ o && /* @__PURE__ */ H(sZ, {
31856
32109
  node: e,
31857
32110
  depth: n
31858
32111
  })
@@ -31864,17 +32117,17 @@ function ZX({ node: e, name: t, depth: n }) {
31864
32117
  /* @__PURE__ */ H(mR, {
31865
32118
  className: f ? "px-2 text-base font-semibold" : "text-base font-semibold",
31866
32119
  required: i.isRequired,
31867
- children: _X(i, t)
32120
+ children: kX(i, t)
31868
32121
  }),
31869
32122
  i.description && /* @__PURE__ */ H(xR, { children: i.description }),
31870
- i.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: i.gioConfig.banner }),
32123
+ i.gioConfig?.banner && /* @__PURE__ */ H(AX, { banner: i.gioConfig.banner }),
31871
32124
  u
31872
32125
  ]
31873
32126
  });
31874
32127
  }
31875
32128
  //#endregion
31876
32129
  //#region src/composed/PasswordInput/PasswordInput.tsx
31877
- function QX({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, ...o }) {
32130
+ function uZ({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, ...o }) {
31878
32131
  let [s, c] = V(!1);
31879
32132
  return /* @__PURE__ */ U(nM, {
31880
32133
  className: e,
@@ -31900,14 +32153,14 @@ function QX({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
31900
32153
  })]
31901
32154
  });
31902
32155
  }
31903
- QX.displayName = "PasswordInput";
32156
+ uZ.displayName = "PasswordInput";
31904
32157
  //#endregion
31905
32158
  //#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
31906
- function $X({ node: e, name: t }) {
31907
- let { control: n, basePath: r, disabled: i } = XY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = pY({
32159
+ function dZ({ node: e, name: t }) {
32160
+ let { control: n, basePath: r, disabled: i } = sX(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = wY({
31908
32161
  control: n,
31909
32162
  name: o
31910
- }), l = _X(a, t), u = i || a.readOnly === !0, d = c.invalid, f = {
32163
+ }), l = kX(a, t), u = i || a.readOnly === !0, d = c.invalid, f = {
31911
32164
  id: o,
31912
32165
  value: typeof s.value == "string" ? s.value : "",
31913
32166
  onChange: s.onChange,
@@ -31926,8 +32179,8 @@ function $X({ node: e, name: t }) {
31926
32179
  required: a.isRequired,
31927
32180
  children: l
31928
32181
  }),
31929
- a.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: a.gioConfig.banner }),
31930
- a.format === "text" ? /* @__PURE__ */ H(tM, { ...f }) : a.format === "password" ? /* @__PURE__ */ H(QX, {
32182
+ a.gioConfig?.banner && /* @__PURE__ */ H(AX, { banner: a.gioConfig.banner }),
32183
+ a.format === "text" ? /* @__PURE__ */ H(tM, { ...f }) : a.format === "password" ? /* @__PURE__ */ H(uZ, {
31931
32184
  ...f,
31932
32185
  pattern: a.pattern
31933
32186
  }) : /* @__PURE__ */ H(eM, {
@@ -31936,141 +32189,144 @@ function $X({ node: e, name: t }) {
31936
32189
  pattern: a.pattern
31937
32190
  }),
31938
32191
  a.description && /* @__PURE__ */ H(xR, { children: a.description }),
31939
- /* @__PURE__ */ H(CR, { errors: mX(c.error) })
32192
+ /* @__PURE__ */ H(CR, { errors: EX(c.error) })
31940
32193
  ]
31941
32194
  });
31942
32195
  }
31943
32196
  //#endregion
31944
32197
  //#region src/composed/JsonSchemaForm/SchemaField.tsx
31945
- function eZ({ node: e, name: t, depth: n = 0 }) {
31946
- let { basePath: r } = XY(), { schema: i } = e, a = t ?? "", o = t ? r ? `${r}.${t}` : t : r, s = B(() => [o], [o]), c = B(() => e.displayIf ? eX(e.displayIf, r) : void 0, [e.displayIf, r]);
32198
+ function fZ({ node: e, name: t, depth: n = 0 }) {
32199
+ let { basePath: r } = sX(), { schema: i } = e, a = t ?? "", o = t ? r ? `${r}.${t}` : t : r, s = B(() => [o], [o]), c = B(() => e.displayIf ? fX(e.displayIf, r) : void 0, [e.displayIf, r]), l = B(() => e.disableIf ? fX(e.disableIf, r) : void 0, [e.disableIf, r]);
31947
32200
  if (i.deprecated === !0) return null;
31948
- let l = tZ(e, a, t, n);
31949
- return l === null ? null : c ? /* @__PURE__ */ H(QY, {
32201
+ let u = pZ(e, a, t, n);
32202
+ return u === null ? null : (l && (u = /* @__PURE__ */ H(uX, {
32203
+ condition: l,
32204
+ children: u
32205
+ })), c ? /* @__PURE__ */ H(lX, {
31950
32206
  condition: c,
31951
32207
  unregisterOnHide: s,
31952
- children: l
31953
- }) : l;
32208
+ children: u
32209
+ }) : u);
31954
32210
  }
31955
- function tZ(e, t, n, r) {
31956
- let { schema: i } = e, a = nZ(i.type);
31957
- return Array.isArray(i.enum) && i.enum.length > 0 || kX(i) ? /* @__PURE__ */ H(LX, {
32211
+ function pZ(e, t, n, r) {
32212
+ let { schema: i } = e, a = mZ(i.type);
32213
+ return Array.isArray(i.enum) && i.enum.length > 0 || VX(i) ? /* @__PURE__ */ H(YX, {
31958
32214
  node: e,
31959
32215
  name: t
31960
- }) : AX(i) ? /* @__PURE__ */ H(zX, {
32216
+ }) : HX(i) ? /* @__PURE__ */ H(ZX, {
31961
32217
  node: e,
31962
32218
  name: t
31963
- }) : jX(i) ? /* @__PURE__ */ H(wX, {
32219
+ }) : UX(i) ? /* @__PURE__ */ H(IX, {
31964
32220
  node: e,
31965
32221
  name: t
31966
- }) : a === "null" ? /* @__PURE__ */ H(VX, {}) : a === "boolean" ? /* @__PURE__ */ H(OX, {
32222
+ }) : a === "null" ? /* @__PURE__ */ H($X, {}) : a === "boolean" ? /* @__PURE__ */ H(BX, {
31967
32223
  node: e,
31968
32224
  name: t
31969
- }) : a === "integer" || a === "number" ? /* @__PURE__ */ H(HX, {
32225
+ }) : a === "integer" || a === "number" ? /* @__PURE__ */ H(eZ, {
31970
32226
  node: e,
31971
32227
  name: t
31972
- }) : a === "string" ? /* @__PURE__ */ H($X, {
32228
+ }) : a === "string" ? /* @__PURE__ */ H(dZ, {
31973
32229
  node: e,
31974
32230
  name: t
31975
- }) : i.properties || a === "object" || MX(i) || NX(i) ? /* @__PURE__ */ H(ZX, {
32231
+ }) : i.properties || a === "object" || WX(i) || GX(i) ? /* @__PURE__ */ H(lZ, {
31976
32232
  node: e,
31977
32233
  name: n,
31978
32234
  depth: r
31979
- }) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ H(xX, {
32235
+ }) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ H(NX, {
31980
32236
  node: e,
31981
32237
  name: n,
31982
32238
  depth: r
31983
- }) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${rZ(i)}). Field is omitted.`), null);
32239
+ }) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${hZ(i)}). Field is omitted.`), null);
31984
32240
  }
31985
- function nZ(e) {
32241
+ function mZ(e) {
31986
32242
  return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
31987
32243
  }
31988
- function rZ(e) {
32244
+ function hZ(e) {
31989
32245
  return e.type ? Array.isArray(e.type) ? e.type.join("|") : e.type : e.oneOf ? "oneOf" : e.anyOf ? "anyOf" : e.allOf ? "allOf" : e.const === void 0 ? "unknown" : "const";
31990
32246
  }
31991
32247
  //#endregion
31992
32248
  //#region src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts
31993
- function iZ(e) {
31994
- return aZ(e);
32249
+ function gZ(e) {
32250
+ return _Z(e);
31995
32251
  }
31996
- function aZ(e) {
32252
+ function _Z(e) {
31997
32253
  let t = { ...e };
31998
32254
  if (t.properties) {
31999
32255
  let e = new Set(t.required ?? []), n = {};
32000
32256
  for (let [r, i] of Object.entries(t.properties)) {
32001
- let t = aZ(i);
32257
+ let t = _Z(i);
32002
32258
  e.has(r) && (t.isRequired = !0, t.type === "string" && t.minLength === void 0 && t.const === void 0 && !Array.isArray(t.enum) && !Array.isArray(t.oneOf) && !Array.isArray(t.anyOf) && (t.minLength = 1), t.type === "array" && t.minItems === void 0 && t.const === void 0 && !Array.isArray(t.enum) && (t.minItems = 1)), n[r] = t;
32003
32259
  }
32004
32260
  t.properties = n;
32005
32261
  }
32006
- return t.items &&= Array.isArray(t.items) ? t.items.map(aZ) : aZ(t.items), t.oneOf &&= t.oneOf.map(aZ), t.anyOf &&= t.anyOf.map(aZ), t.allOf &&= t.allOf.map(aZ), t.dependencies &&= tX(t.dependencies, aZ), t;
32262
+ return t.items &&= Array.isArray(t.items) ? t.items.map(_Z) : _Z(t.items), t.oneOf &&= t.oneOf.map(_Z), t.anyOf &&= t.anyOf.map(_Z), t.allOf &&= t.allOf.map(_Z), t.dependencies &&= pX(t.dependencies, _Z), t;
32007
32263
  }
32008
32264
  //#endregion
32009
32265
  //#region src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts
32010
- function oZ(e) {
32266
+ function vZ(e) {
32011
32267
  if (e.deprecated === !0) return { deprecated: !0 };
32012
32268
  let t = { ...e };
32013
32269
  if (e.properties) {
32014
32270
  let n = [];
32015
32271
  t.properties = {};
32016
- for (let [r, i] of Object.entries(e.properties)) i.deprecated === !0 && n.push(r), t.properties[r] = oZ(i);
32272
+ for (let [r, i] of Object.entries(e.properties)) i.deprecated === !0 && n.push(r), t.properties[r] = vZ(i);
32017
32273
  n.length > 0 && e.required && (t.required = e.required.filter((e) => !n.includes(e)));
32018
32274
  }
32019
- return e.items && !Array.isArray(e.items) && (t.items = oZ(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => e.deprecated !== !0).map(oZ)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => e.deprecated !== !0).map(oZ)), e.dependencies && (t.dependencies = tX(e.dependencies, oZ)), t;
32275
+ return e.items && !Array.isArray(e.items) && (t.items = vZ(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => e.deprecated !== !0).map(vZ)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => e.deprecated !== !0).map(vZ)), e.dependencies && (t.dependencies = pX(e.dependencies, vZ)), t;
32020
32276
  }
32021
32277
  //#endregion
32022
32278
  //#region src/composed/JsonSchemaForm/schema/buildIndex.ts
32023
- function sZ(e, t = "") {
32024
- let n = iZ(oZ(nX(lX(e)))), r = /* @__PURE__ */ new Map();
32279
+ function yZ(e, t = "") {
32280
+ let n = gZ(vZ(mX(xX(e)))), r = /* @__PURE__ */ new Map();
32025
32281
  return {
32026
- root: cZ(n, "", !1, r, "", t),
32282
+ root: bZ(n, "", !1, r, "", t),
32027
32283
  nodeByPath: r,
32028
32284
  variantIndices: /* @__PURE__ */ new Map()
32029
32285
  };
32030
32286
  }
32031
- function cZ(e, t, n, r, i = "", a = "") {
32287
+ function bZ(e, t, n, r, i = "", a = "") {
32032
32288
  let o = {
32033
32289
  rhfPath: t,
32034
32290
  schema: e,
32035
32291
  isRequired: n
32036
32292
  };
32037
- if (e.gioConfig?.displayIf && (o.displayIf = pZ(e.gioConfig.displayIf, i, a)), e.properties) {
32293
+ if (e.gioConfig?.displayIf && (o.displayIf = TZ(e.gioConfig.displayIf, i, a)), e.gioConfig?.disableIf && (o.disableIf = TZ(e.gioConfig.disableIf, i, a)), e.properties) {
32038
32294
  let n = new Set(e.required ?? []), i = /* @__PURE__ */ new Map();
32039
32295
  for (let [o, s] of Object.entries(e.properties)) {
32040
32296
  let e = t ? `${t}.${o}` : o;
32041
- i.set(o, cZ(s, e, n.has(o), r, t, a));
32297
+ i.set(o, bZ(s, e, n.has(o), r, t, a));
32042
32298
  }
32043
32299
  o.properties = i;
32044
32300
  }
32045
32301
  if (e.items && !Array.isArray(e.items)) {
32046
32302
  let n = t ? `${t}.*` : "*";
32047
- o.items = cZ(e.items, n, !1, r, t, a);
32303
+ o.items = bZ(e.items, n, !1, r, t, a);
32048
32304
  }
32049
32305
  let s = e.oneOf ?? e.anyOf;
32050
- if (Array.isArray(s) && s.length > 0 && (o.variants = lZ(s).map((e) => uZ(e, t, a))), e.dependencies) {
32051
- let n = hZ(e.dependencies, t, a);
32306
+ if (Array.isArray(s) && s.length > 0 && (o.variants = xZ(s).map((e) => SZ(e, t, a))), e.dependencies) {
32307
+ let n = DZ(e.dependencies, t, a);
32052
32308
  n.length > 0 && (o.dependencyBranches = n);
32053
32309
  }
32054
32310
  return r.set(t, o), o;
32055
32311
  }
32056
- function lZ(e) {
32312
+ function xZ(e) {
32057
32313
  let t = /* @__PURE__ */ new Set();
32058
32314
  return e.filter((e) => typeof e.title == "string" ? t.has(e.title) ? !1 : (t.add(e.title), !0) : !0);
32059
32315
  }
32060
- function uZ(e, t, n) {
32316
+ function SZ(e, t, n) {
32061
32317
  let r = new Set(e.required ?? []), i = /* @__PURE__ */ new Map(), a = [];
32062
32318
  for (let [o, s] of Object.entries(e.properties ?? {})) {
32063
- let e = dZ(s);
32319
+ let e = CZ(s);
32064
32320
  e && a.push({
32065
32321
  key: o,
32066
32322
  value: e.value
32067
32323
  });
32068
32324
  let c = t ? `${t}.${o}` : o;
32069
- i.set(o, fZ(s, c, r.has(o), t, n));
32325
+ i.set(o, wZ(s, c, r.has(o), t, n));
32070
32326
  }
32071
32327
  let o;
32072
32328
  if (e.dependencies) {
32073
- let r = hZ(e.dependencies, t, n);
32329
+ let r = DZ(e.dependencies, t, n);
32074
32330
  r.length > 0 && (o = r);
32075
32331
  }
32076
32332
  return {
@@ -32081,17 +32337,17 @@ function uZ(e, t, n) {
32081
32337
  raw: e
32082
32338
  };
32083
32339
  }
32084
- function dZ(e) {
32340
+ function CZ(e) {
32085
32341
  if (e.const !== void 0) return { value: e.const };
32086
32342
  if (Array.isArray(e.enum) && e.enum.length === 1) return { value: e.enum[0] };
32087
32343
  }
32088
- function fZ(e, t, n, r, i) {
32089
- return cZ(e, t, n, /* @__PURE__ */ new Map(), r, i);
32344
+ function wZ(e, t, n, r, i) {
32345
+ return bZ(e, t, n, /* @__PURE__ */ new Map(), r, i);
32090
32346
  }
32091
- function pZ(e, t, n) {
32347
+ function TZ(e, t, n) {
32092
32348
  let r = /* @__PURE__ */ new Map();
32093
32349
  for (let [i, a] of Object.entries(e.$eq)) {
32094
- let e = mZ(i, t, n);
32350
+ let e = EZ(i, t, n);
32095
32351
  if (e === null) {
32096
32352
  console.warn(`[JsonSchemaForm] gioConfig path "${i}" is unsupported (expected value.X / ./X / ../X).`);
32097
32353
  continue;
@@ -32100,7 +32356,7 @@ function pZ(e, t, n) {
32100
32356
  }
32101
32357
  return { $eq: r };
32102
32358
  }
32103
- function mZ(e, t, n) {
32359
+ function EZ(e, t, n) {
32104
32360
  let r = null;
32105
32361
  if (e.startsWith("value.")) r = e.slice(6);
32106
32362
  else if (e.startsWith("./")) {
@@ -32114,24 +32370,24 @@ function mZ(e, t, n) {
32114
32370
  }
32115
32371
  return r === null ? null : n ? `${n}.${r}` : r;
32116
32372
  }
32117
- function hZ(e, t, n) {
32373
+ function DZ(e, t, n) {
32118
32374
  return Object.entries(e).flatMap(([e, r]) => {
32119
- let i = gZ(e, r);
32375
+ let i = OZ(e, r);
32120
32376
  if (!i) return [];
32121
32377
  let a = t ? `${t}.${e}` : e;
32122
- return i.map((r) => _Z(r, e, a, t, n));
32378
+ return i.map((r) => kZ(r, e, a, t, n));
32123
32379
  });
32124
32380
  }
32125
- function gZ(e, t) {
32381
+ function OZ(e, t) {
32126
32382
  let n = typeof t == "object" && t && !Array.isArray(t) ? t : null;
32127
- return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && dZ(t.properties[e]) !== void 0) ? n.oneOf : (console.warn(`[JsonSchemaForm] dependencies."${e}".oneOf has at least one variant missing a \`const\` (or single-value \`enum\`) discriminator on "${e}". Skipping the whole dependency (no partial unfold).`), null) : (console.warn(`[JsonSchemaForm] dependencies."${e}" is not a discriminator-oneOf shape (only \`{ oneOf: [...] }\` with const discriminators is supported). Skipping.`), null);
32383
+ return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && CZ(t.properties[e]) !== void 0) ? n.oneOf : (console.warn(`[JsonSchemaForm] dependencies."${e}".oneOf has at least one variant missing a \`const\` (or single-value \`enum\`) discriminator on "${e}". Skipping the whole dependency (no partial unfold).`), null) : (console.warn(`[JsonSchemaForm] dependencies."${e}" is not a discriminator-oneOf shape (only \`{ oneOf: [...] }\` with const discriminators is supported). Skipping.`), null);
32128
32384
  }
32129
- function _Z(e, t, n, r, i) {
32130
- let a = dZ(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
32385
+ function kZ(e, t, n, r, i) {
32386
+ let a = CZ(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
32131
32387
  for (let [n, a] of Object.entries(e.properties ?? {})) {
32132
32388
  if (n === t) continue;
32133
32389
  let e = r ? `${r}.${n}` : n;
32134
- s.set(n, fZ(a, e, o.has(n), r, i));
32390
+ s.set(n, wZ(a, e, o.has(n), r, i));
32135
32391
  }
32136
32392
  let c = i ? `${i}.${n}` : n;
32137
32393
  return {
@@ -32142,10 +32398,10 @@ function _Z(e, t, n, r, i) {
32142
32398
  }
32143
32399
  //#endregion
32144
32400
  //#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
32145
- function vZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i }) {
32401
+ function AZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i }) {
32146
32402
  let a = B(() => {
32147
32403
  try {
32148
- let a = sZ(e, n);
32404
+ let a = yZ(e, n);
32149
32405
  return {
32150
32406
  ok: !0,
32151
32407
  contextValue: {
@@ -32170,9 +32426,9 @@ function vZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
32170
32426
  r,
32171
32427
  i
32172
32428
  ]);
32173
- return a.ok ? /* @__PURE__ */ H(YY.Provider, {
32429
+ return a.ok ? /* @__PURE__ */ H(oX.Provider, {
32174
32430
  value: a.contextValue,
32175
- children: /* @__PURE__ */ H(eZ, { node: a.root })
32431
+ children: /* @__PURE__ */ H(fZ, { node: a.root })
32176
32432
  }) : /* @__PURE__ */ U("p", {
32177
32433
  role: "alert",
32178
32434
  className: "text-sm text-destructive",
@@ -32181,7 +32437,7 @@ function vZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
32181
32437
  }
32182
32438
  //#endregion
32183
32439
  //#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
32184
- function yZ(...e) {
32440
+ function jZ(...e) {
32185
32441
  return async (t, n, r) => {
32186
32442
  let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
32187
32443
  for (let e of i) Object.assign(a, e.errors);
@@ -32196,7 +32452,7 @@ function yZ(...e) {
32196
32452
  }
32197
32453
  //#endregion
32198
32454
  //#region ../../node_modules/ajv/dist/compile/codegen/code.js
32199
- var bZ = /* @__PURE__ */ W(((e) => {
32455
+ var MZ = /* @__PURE__ */ W(((e) => {
32200
32456
  Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
32201
32457
  var t = class {};
32202
32458
  e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
@@ -32301,9 +32557,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
32301
32557
  return new r(e.toString());
32302
32558
  }
32303
32559
  e.regexpCode = g;
32304
- })), xZ = /* @__PURE__ */ W(((e) => {
32560
+ })), NZ = /* @__PURE__ */ W(((e) => {
32305
32561
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
32306
- var t = bZ(), n = class extends Error {
32562
+ var t = MZ(), n = class extends Error {
32307
32563
  constructor(e) {
32308
32564
  super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
32309
32565
  }
@@ -32412,9 +32668,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
32412
32668
  return c;
32413
32669
  }
32414
32670
  };
32415
- })), SZ = /* @__PURE__ */ W(((e) => {
32671
+ })), PZ = /* @__PURE__ */ W(((e) => {
32416
32672
  Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
32417
- var t = bZ(), n = xZ(), r = bZ();
32673
+ var t = MZ(), n = NZ(), r = MZ();
32418
32674
  Object.defineProperty(e, "_", {
32419
32675
  enumerable: !0,
32420
32676
  get: function() {
@@ -32456,7 +32712,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
32456
32712
  return r.Name;
32457
32713
  }
32458
32714
  });
32459
- var i = xZ();
32715
+ var i = NZ();
32460
32716
  Object.defineProperty(e, "Scope", {
32461
32717
  enumerable: !0,
32462
32718
  get: function() {
@@ -32927,9 +33183,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
32927
33183
  function L(e) {
32928
33184
  return e instanceof t.Name ? e : (0, t._)`(${e})`;
32929
33185
  }
32930
- })), CZ = /* @__PURE__ */ W(((e) => {
33186
+ })), FZ = /* @__PURE__ */ W(((e) => {
32931
33187
  Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
32932
- var t = SZ(), n = bZ();
33188
+ var t = PZ(), n = MZ();
32933
33189
  function r(e) {
32934
33190
  let t = {};
32935
33191
  for (let n of e) t[n] = !0;
@@ -33052,9 +33308,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
33052
33308
  }
33053
33309
  }
33054
33310
  e.checkStrictMode = x;
33055
- })), wZ = /* @__PURE__ */ W(((e) => {
33311
+ })), IZ = /* @__PURE__ */ W(((e) => {
33056
33312
  Object.defineProperty(e, "__esModule", { value: !0 });
33057
- var t = SZ();
33313
+ var t = PZ();
33058
33314
  e.default = {
33059
33315
  data: new t.Name("data"),
33060
33316
  valCxt: new t.Name("valCxt"),
@@ -33073,9 +33329,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
33073
33329
  jsonLen: new t.Name("jsonLen"),
33074
33330
  jsonPart: new t.Name("jsonPart")
33075
33331
  };
33076
- })), TZ = /* @__PURE__ */ W(((e) => {
33332
+ })), LZ = /* @__PURE__ */ W(((e) => {
33077
33333
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
33078
- var t = SZ(), n = CZ(), r = wZ();
33334
+ var t = PZ(), n = FZ(), r = IZ();
33079
33335
  e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
33080
33336
  function i(n, r = e.keywordError, i, a) {
33081
33337
  let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
@@ -33137,9 +33393,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
33137
33393
  let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
33138
33394
  a.push([u.keyword, o], [u.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), d.messages && a.push([u.message, typeof i == "function" ? i(e) : i]), d.verbose && a.push([u.schema, c], [u.parentSchema, (0, t._)`${p}${m}`], [r.default.data, s]), f && a.push([u.propertyName, f]);
33139
33395
  }
33140
- })), EZ = /* @__PURE__ */ W(((e) => {
33396
+ })), RZ = /* @__PURE__ */ W(((e) => {
33141
33397
  Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
33142
- var t = TZ(), n = SZ(), r = wZ(), i = { message: "boolean schema is false" };
33398
+ var t = LZ(), n = PZ(), r = IZ(), i = { message: "boolean schema is false" };
33143
33399
  function a(e) {
33144
33400
  let { gen: t, schema: i, validateName: a } = e;
33145
33401
  i === !1 ? s(e, !1) : typeof i == "object" && i.$async === !0 ? t.return(r.default.data) : (t.assign((0, n._)`${a}.errors`, null), t.return(!0));
@@ -33163,7 +33419,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
33163
33419
  };
33164
33420
  (0, t.reportError)(o, i, void 0, n);
33165
33421
  }
33166
- })), DZ = /* @__PURE__ */ W(((e) => {
33422
+ })), zZ = /* @__PURE__ */ W(((e) => {
33167
33423
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
33168
33424
  var t = new Set([
33169
33425
  "string",
@@ -33217,7 +33473,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
33217
33473
  };
33218
33474
  }
33219
33475
  e.getRules = r;
33220
- })), OZ = /* @__PURE__ */ W(((e) => {
33476
+ })), BZ = /* @__PURE__ */ W(((e) => {
33221
33477
  Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
33222
33478
  function t({ schema: e, self: t }, r) {
33223
33479
  let i = t.RULES.types[r];
@@ -33232,9 +33488,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
33232
33488
  return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
33233
33489
  }
33234
33490
  e.shouldUseRule = r;
33235
- })), kZ = /* @__PURE__ */ W(((e) => {
33491
+ })), VZ = /* @__PURE__ */ W(((e) => {
33236
33492
  Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
33237
- var t = DZ(), n = OZ(), r = TZ(), i = SZ(), a = CZ(), o;
33493
+ var t = zZ(), n = BZ(), r = LZ(), i = PZ(), a = FZ(), o;
33238
33494
  (function(e) {
33239
33495
  e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
33240
33496
  })(o || (e.DataType = o = {}));
@@ -33369,9 +33625,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
33369
33625
  it: e
33370
33626
  };
33371
33627
  }
33372
- })), AZ = /* @__PURE__ */ W(((e) => {
33628
+ })), HZ = /* @__PURE__ */ W(((e) => {
33373
33629
  Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
33374
- var t = SZ(), n = CZ();
33630
+ var t = PZ(), n = FZ();
33375
33631
  function r(e, t) {
33376
33632
  let { properties: n, items: r } = e.schema;
33377
33633
  if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
@@ -33389,9 +33645,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
33389
33645
  let u = (0, t._)`${l} === undefined`;
33390
33646
  c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
33391
33647
  }
33392
- })), jZ = /* @__PURE__ */ W(((e) => {
33648
+ })), UZ = /* @__PURE__ */ W(((e) => {
33393
33649
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateUnion = e.validateArray = e.usePattern = e.callValidateCode = e.schemaProperties = e.allSchemaProperties = e.noPropertyInData = e.propertyInData = e.isOwnProperty = e.hasPropFunc = e.reportMissingProp = e.checkMissingProp = e.checkReportMissingProp = void 0;
33394
- var t = SZ(), n = CZ(), r = wZ(), i = CZ();
33650
+ var t = PZ(), n = FZ(), r = IZ(), i = FZ();
33395
33651
  function a(e, n) {
33396
33652
  let { gen: r, data: i, it: a } = e;
33397
33653
  r.if(d(r, i, n, a.opts.ownProperties), () => {
@@ -33493,9 +33749,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
33493
33749
  })), e.result(s, () => e.reset(), () => e.error(!0));
33494
33750
  }
33495
33751
  e.validateUnion = v;
33496
- })), MZ = /* @__PURE__ */ W(((e) => {
33752
+ })), WZ = /* @__PURE__ */ W(((e) => {
33497
33753
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
33498
- var t = SZ(), n = wZ(), r = jZ(), i = TZ();
33754
+ var t = PZ(), n = IZ(), r = UZ(), i = LZ();
33499
33755
  function a(e, n) {
33500
33756
  let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
33501
33757
  s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
@@ -33574,9 +33830,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
33574
33830
  }
33575
33831
  }
33576
33832
  e.validateKeywordUsage = f;
33577
- })), NZ = /* @__PURE__ */ W(((e) => {
33833
+ })), GZ = /* @__PURE__ */ W(((e) => {
33578
33834
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
33579
- var t = SZ(), n = CZ();
33835
+ var t = PZ(), n = FZ();
33580
33836
  function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
33581
33837
  if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
33582
33838
  if (r !== void 0) {
@@ -33620,7 +33876,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
33620
33876
  r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
33621
33877
  }
33622
33878
  e.extendSubschemaMode = a;
33623
- })), PZ = /* @__PURE__ */ W(((e, t) => {
33879
+ })), KZ = /* @__PURE__ */ W(((e, t) => {
33624
33880
  t.exports = function e(t, n) {
33625
33881
  if (t === n) return !0;
33626
33882
  if (t && n && typeof t == "object" && typeof n == "object") {
@@ -33644,7 +33900,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
33644
33900
  }
33645
33901
  return t !== t && n !== n;
33646
33902
  };
33647
- })), FZ = /* @__PURE__ */ W(((e, t) => {
33903
+ })), qZ = /* @__PURE__ */ W(((e, t) => {
33648
33904
  var n = t.exports = function(e, t, n) {
33649
33905
  typeof t == "function" && (n = t, t = {}), n = t.cb || n;
33650
33906
  var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
@@ -33707,9 +33963,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
33707
33963
  function i(e) {
33708
33964
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
33709
33965
  }
33710
- })), IZ = /* @__PURE__ */ W(((e) => {
33966
+ })), JZ = /* @__PURE__ */ W(((e) => {
33711
33967
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
33712
- var t = CZ(), n = PZ(), r = FZ(), i = new Set([
33968
+ var t = FZ(), n = KZ(), r = qZ(), i = new Set([
33713
33969
  "type",
33714
33970
  "format",
33715
33971
  "pattern",
@@ -33798,9 +34054,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
33798
34054
  }
33799
34055
  }
33800
34056
  e.getSchemaRefs = h;
33801
- })), LZ = /* @__PURE__ */ W(((e) => {
34057
+ })), YZ = /* @__PURE__ */ W(((e) => {
33802
34058
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
33803
- var t = EZ(), n = kZ(), r = OZ(), i = kZ(), a = AZ(), o = MZ(), s = NZ(), c = SZ(), l = wZ(), u = IZ(), d = CZ(), f = TZ();
34059
+ var t = RZ(), n = VZ(), r = BZ(), i = VZ(), a = HZ(), o = WZ(), s = GZ(), c = PZ(), l = IZ(), u = JZ(), d = FZ(), f = LZ();
33804
34060
  function p(e) {
33805
34061
  if (S(e) && (w(e), x(e))) {
33806
34062
  _(e);
@@ -34090,23 +34346,23 @@ var bZ = /* @__PURE__ */ W(((e) => {
34090
34346
  }
34091
34347
  }
34092
34348
  e.getData = ae;
34093
- })), RZ = /* @__PURE__ */ W(((e) => {
34349
+ })), XZ = /* @__PURE__ */ W(((e) => {
34094
34350
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
34095
34351
  constructor(e) {
34096
34352
  super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
34097
34353
  }
34098
34354
  };
34099
- })), zZ = /* @__PURE__ */ W(((e) => {
34355
+ })), ZZ = /* @__PURE__ */ W(((e) => {
34100
34356
  Object.defineProperty(e, "__esModule", { value: !0 });
34101
- var t = IZ();
34357
+ var t = JZ();
34102
34358
  e.default = class extends Error {
34103
34359
  constructor(e, n, r, i) {
34104
34360
  super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, t.resolveUrl)(e, n, r), this.missingSchema = (0, t.normalizeId)((0, t.getFullPath)(e, this.missingRef));
34105
34361
  }
34106
34362
  };
34107
- })), BZ = /* @__PURE__ */ W(((e) => {
34363
+ })), QZ = /* @__PURE__ */ W(((e) => {
34108
34364
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
34109
- var t = SZ(), n = RZ(), r = wZ(), i = IZ(), a = CZ(), o = LZ(), s = class {
34365
+ var t = PZ(), n = XZ(), r = IZ(), i = JZ(), a = FZ(), o = YZ(), s = class {
34110
34366
  constructor(e) {
34111
34367
  this.refs = {}, this.dynamicAnchors = {};
34112
34368
  let t;
@@ -34265,27 +34521,27 @@ var bZ = /* @__PURE__ */ W(((e) => {
34265
34521
  baseId: t
34266
34522
  }), o.schema !== o.root.schema) return o;
34267
34523
  }
34268
- })), VZ = /* @__PURE__ */ xe({
34269
- $id: () => HZ,
34524
+ })), $Z = /* @__PURE__ */ xe({
34525
+ $id: () => eQ,
34270
34526
  additionalProperties: () => !1,
34271
- default: () => qZ,
34272
- description: () => UZ,
34273
- properties: () => KZ,
34274
- required: () => GZ,
34275
- type: () => WZ
34276
- }), HZ, UZ, WZ, GZ, KZ, qZ, JZ = be((() => {
34277
- HZ = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", UZ = "Meta-schema for $data reference (JSON AnySchema extension proposal)", WZ = "object", GZ = ["$data"], KZ = { $data: {
34527
+ default: () => aQ,
34528
+ description: () => tQ,
34529
+ properties: () => iQ,
34530
+ required: () => rQ,
34531
+ type: () => nQ
34532
+ }), eQ, tQ, nQ, rQ, iQ, aQ, oQ = be((() => {
34533
+ eQ = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", tQ = "Meta-schema for $data reference (JSON AnySchema extension proposal)", nQ = "object", rQ = ["$data"], iQ = { $data: {
34278
34534
  type: "string",
34279
34535
  anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
34280
- } }, qZ = {
34281
- $id: HZ,
34282
- description: UZ,
34283
- type: WZ,
34284
- required: GZ,
34285
- properties: KZ,
34536
+ } }, aQ = {
34537
+ $id: eQ,
34538
+ description: tQ,
34539
+ type: nQ,
34540
+ required: rQ,
34541
+ properties: iQ,
34286
34542
  additionalProperties: !1
34287
34543
  };
34288
- })), YZ = /* @__PURE__ */ W(((e, t) => {
34544
+ })), sQ = /* @__PURE__ */ W(((e, t) => {
34289
34545
  var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), i = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
34290
34546
  function s(e) {
34291
34547
  let t = "", n = 0, r = 0;
@@ -34497,8 +34753,8 @@ var bZ = /* @__PURE__ */ W(((e) => {
34497
34753
  normalizeIPv6: f,
34498
34754
  stringArrayToHexStripped: s
34499
34755
  };
34500
- })), XZ = /* @__PURE__ */ W(((e, t) => {
34501
- var { isUUID: n } = YZ(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
34756
+ })), cQ = /* @__PURE__ */ W(((e, t) => {
34757
+ var { isUUID: n } = sQ(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
34502
34758
  "http",
34503
34759
  "https",
34504
34760
  "ws",
@@ -34603,8 +34859,8 @@ var bZ = /* @__PURE__ */ W(((e) => {
34603
34859
  isValidSchemeName: a,
34604
34860
  getSchemeHandler: y
34605
34861
  };
34606
- })), ZZ = /* @__PURE__ */ W(((e, t) => {
34607
- var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = YZ(), { SCHEMES: d, getSchemeHandler: f } = XZ();
34862
+ })), lQ = /* @__PURE__ */ W(((e, t) => {
34863
+ var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = sQ(), { SCHEMES: d, getSchemeHandler: f } = cQ();
34608
34864
  function p(e, t) {
34609
34865
  return typeof e == "string" ? e = S(e, t) : typeof e == "object" && (e = x(_(e, t), t)), e;
34610
34866
  }
@@ -34718,20 +34974,20 @@ var bZ = /* @__PURE__ */ W(((e) => {
34718
34974
  parse: x
34719
34975
  };
34720
34976
  t.exports = T, t.exports.default = T, t.exports.fastUri = T;
34721
- })), QZ = /* @__PURE__ */ W(((e) => {
34977
+ })), uQ = /* @__PURE__ */ W(((e) => {
34722
34978
  Object.defineProperty(e, "__esModule", { value: !0 });
34723
- var t = ZZ();
34979
+ var t = lQ();
34724
34980
  t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
34725
- })), $Z = /* @__PURE__ */ W(((e) => {
34981
+ })), dQ = /* @__PURE__ */ W(((e) => {
34726
34982
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
34727
- var t = LZ();
34983
+ var t = YZ();
34728
34984
  Object.defineProperty(e, "KeywordCxt", {
34729
34985
  enumerable: !0,
34730
34986
  get: function() {
34731
34987
  return t.KeywordCxt;
34732
34988
  }
34733
34989
  });
34734
- var n = SZ();
34990
+ var n = PZ();
34735
34991
  Object.defineProperty(e, "_", {
34736
34992
  enumerable: !0,
34737
34993
  get: function() {
@@ -34763,7 +35019,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
34763
35019
  return n.CodeGen;
34764
35020
  }
34765
35021
  });
34766
- var r = RZ(), i = zZ(), a = DZ(), o = BZ(), s = SZ(), c = IZ(), l = kZ(), u = CZ(), d = (JZ(), we(VZ).default), f = QZ(), p = (e, t) => new RegExp(e, t);
35022
+ var r = XZ(), i = ZZ(), a = zZ(), o = QZ(), s = PZ(), c = JZ(), l = VZ(), u = FZ(), d = (oQ(), we($Z).default), f = uQ(), p = (e, t) => new RegExp(e, t);
34767
35023
  p.code = "new RegExp";
34768
35024
  var m = [
34769
35025
  "removeAdditional",
@@ -35149,16 +35405,16 @@ var bZ = /* @__PURE__ */ W(((e) => {
35149
35405
  function F(e) {
35150
35406
  return { anyOf: [e, P] };
35151
35407
  }
35152
- })), eQ = /* @__PURE__ */ W(((e) => {
35408
+ })), fQ = /* @__PURE__ */ W(((e) => {
35153
35409
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
35154
35410
  keyword: "id",
35155
35411
  code() {
35156
35412
  throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
35157
35413
  }
35158
35414
  };
35159
- })), tQ = /* @__PURE__ */ W(((e) => {
35415
+ })), pQ = /* @__PURE__ */ W(((e) => {
35160
35416
  Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
35161
- var t = zZ(), n = jZ(), r = SZ(), i = wZ(), a = BZ(), o = CZ(), s = {
35417
+ var t = ZZ(), n = UZ(), r = PZ(), i = IZ(), a = QZ(), o = FZ(), s = {
35162
35418
  keyword: "$ref",
35163
35419
  schemaType: "string",
35164
35420
  code(e) {
@@ -35231,9 +35487,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35231
35487
  }
35232
35488
  }
35233
35489
  e.callRef = l, e.default = s;
35234
- })), nQ = /* @__PURE__ */ W(((e) => {
35490
+ })), mQ = /* @__PURE__ */ W(((e) => {
35235
35491
  Object.defineProperty(e, "__esModule", { value: !0 });
35236
- var t = eQ(), n = tQ();
35492
+ var t = fQ(), n = pQ();
35237
35493
  e.default = [
35238
35494
  "$schema",
35239
35495
  "$id",
@@ -35244,9 +35500,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35244
35500
  t.default,
35245
35501
  n.default
35246
35502
  ];
35247
- })), rQ = /* @__PURE__ */ W(((e) => {
35503
+ })), hQ = /* @__PURE__ */ W(((e) => {
35248
35504
  Object.defineProperty(e, "__esModule", { value: !0 });
35249
- var t = SZ(), n = t.operators, r = {
35505
+ var t = PZ(), n = t.operators, r = {
35250
35506
  maximum: {
35251
35507
  okStr: "<=",
35252
35508
  ok: n.LTE,
@@ -35282,9 +35538,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35282
35538
  e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
35283
35539
  }
35284
35540
  };
35285
- })), iQ = /* @__PURE__ */ W(((e) => {
35541
+ })), gQ = /* @__PURE__ */ W(((e) => {
35286
35542
  Object.defineProperty(e, "__esModule", { value: !0 });
35287
- var t = SZ();
35543
+ var t = PZ();
35288
35544
  e.default = {
35289
35545
  keyword: "multipleOf",
35290
35546
  type: "number",
@@ -35299,7 +35555,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
35299
35555
  e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
35300
35556
  }
35301
35557
  };
35302
- })), aQ = /* @__PURE__ */ W(((e) => {
35558
+ })), _Q = /* @__PURE__ */ W(((e) => {
35303
35559
  Object.defineProperty(e, "__esModule", { value: !0 });
35304
35560
  function t(e) {
35305
35561
  let t = e.length, n = 0, r = 0, i;
@@ -35307,9 +35563,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35307
35563
  return n;
35308
35564
  }
35309
35565
  e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
35310
- })), oQ = /* @__PURE__ */ W(((e) => {
35566
+ })), vQ = /* @__PURE__ */ W(((e) => {
35311
35567
  Object.defineProperty(e, "__esModule", { value: !0 });
35312
- var t = SZ(), n = CZ(), r = aQ();
35568
+ var t = PZ(), n = FZ(), r = _Q();
35313
35569
  e.default = {
35314
35570
  keyword: ["maxLength", "minLength"],
35315
35571
  type: "string",
@@ -35327,9 +35583,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35327
35583
  e.fail$data((0, t._)`${l} ${c} ${o}`);
35328
35584
  }
35329
35585
  };
35330
- })), sQ = /* @__PURE__ */ W(((e) => {
35586
+ })), yQ = /* @__PURE__ */ W(((e) => {
35331
35587
  Object.defineProperty(e, "__esModule", { value: !0 });
35332
- var t = jZ(), n = CZ(), r = SZ();
35588
+ var t = UZ(), n = FZ(), r = PZ();
35333
35589
  e.default = {
35334
35590
  keyword: "pattern",
35335
35591
  type: "string",
@@ -35350,9 +35606,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35350
35606
  }
35351
35607
  }
35352
35608
  };
35353
- })), cQ = /* @__PURE__ */ W(((e) => {
35609
+ })), bQ = /* @__PURE__ */ W(((e) => {
35354
35610
  Object.defineProperty(e, "__esModule", { value: !0 });
35355
- var t = SZ();
35611
+ var t = PZ();
35356
35612
  e.default = {
35357
35613
  keyword: ["maxProperties", "minProperties"],
35358
35614
  type: "object",
@@ -35370,9 +35626,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35370
35626
  e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
35371
35627
  }
35372
35628
  };
35373
- })), lQ = /* @__PURE__ */ W(((e) => {
35629
+ })), xQ = /* @__PURE__ */ W(((e) => {
35374
35630
  Object.defineProperty(e, "__esModule", { value: !0 });
35375
- var t = jZ(), n = SZ(), r = CZ();
35631
+ var t = UZ(), n = PZ(), r = FZ();
35376
35632
  e.default = {
35377
35633
  keyword: "required",
35378
35634
  type: "object",
@@ -35418,9 +35674,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35418
35674
  }
35419
35675
  }
35420
35676
  };
35421
- })), uQ = /* @__PURE__ */ W(((e) => {
35677
+ })), SQ = /* @__PURE__ */ W(((e) => {
35422
35678
  Object.defineProperty(e, "__esModule", { value: !0 });
35423
- var t = SZ();
35679
+ var t = PZ();
35424
35680
  e.default = {
35425
35681
  keyword: ["maxItems", "minItems"],
35426
35682
  type: "array",
@@ -35438,13 +35694,13 @@ var bZ = /* @__PURE__ */ W(((e) => {
35438
35694
  e.fail$data((0, t._)`${r}.length ${a} ${i}`);
35439
35695
  }
35440
35696
  };
35441
- })), dQ = /* @__PURE__ */ W(((e) => {
35697
+ })), CQ = /* @__PURE__ */ W(((e) => {
35442
35698
  Object.defineProperty(e, "__esModule", { value: !0 });
35443
- var t = PZ();
35699
+ var t = KZ();
35444
35700
  t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
35445
- })), fQ = /* @__PURE__ */ W(((e) => {
35701
+ })), wQ = /* @__PURE__ */ W(((e) => {
35446
35702
  Object.defineProperty(e, "__esModule", { value: !0 });
35447
- var t = kZ(), n = SZ(), r = CZ(), i = dQ();
35703
+ var t = VZ(), n = PZ(), r = FZ(), i = CQ();
35448
35704
  e.default = {
35449
35705
  keyword: "uniqueItems",
35450
35706
  type: "array",
@@ -35485,9 +35741,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35485
35741
  }
35486
35742
  }
35487
35743
  };
35488
- })), pQ = /* @__PURE__ */ W(((e) => {
35744
+ })), TQ = /* @__PURE__ */ W(((e) => {
35489
35745
  Object.defineProperty(e, "__esModule", { value: !0 });
35490
- var t = SZ(), n = CZ(), r = dQ();
35746
+ var t = PZ(), n = FZ(), r = CQ();
35491
35747
  e.default = {
35492
35748
  keyword: "const",
35493
35749
  $data: !0,
@@ -35500,9 +35756,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35500
35756
  o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
35501
35757
  }
35502
35758
  };
35503
- })), mQ = /* @__PURE__ */ W(((e) => {
35759
+ })), EQ = /* @__PURE__ */ W(((e) => {
35504
35760
  Object.defineProperty(e, "__esModule", { value: !0 });
35505
- var t = SZ(), n = CZ(), r = dQ();
35761
+ var t = PZ(), n = FZ(), r = CQ();
35506
35762
  e.default = {
35507
35763
  keyword: "enum",
35508
35764
  schemaType: "array",
@@ -35532,9 +35788,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35532
35788
  }
35533
35789
  }
35534
35790
  };
35535
- })), hQ = /* @__PURE__ */ W(((e) => {
35791
+ })), DQ = /* @__PURE__ */ W(((e) => {
35536
35792
  Object.defineProperty(e, "__esModule", { value: !0 });
35537
- var t = rQ(), n = iQ(), r = oQ(), i = sQ(), a = cQ(), o = lQ(), s = uQ(), c = fQ(), l = pQ(), u = mQ();
35793
+ var t = hQ(), n = gQ(), r = vQ(), i = yQ(), a = bQ(), o = xQ(), s = SQ(), c = wQ(), l = TQ(), u = EQ();
35538
35794
  e.default = [
35539
35795
  t.default,
35540
35796
  n.default,
@@ -35555,9 +35811,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35555
35811
  l.default,
35556
35812
  u.default
35557
35813
  ];
35558
- })), gQ = /* @__PURE__ */ W(((e) => {
35814
+ })), OQ = /* @__PURE__ */ W(((e) => {
35559
35815
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
35560
- var t = SZ(), n = CZ(), r = {
35816
+ var t = PZ(), n = FZ(), r = {
35561
35817
  keyword: "additionalItems",
35562
35818
  type: "array",
35563
35819
  schemaType: ["boolean", "object"],
@@ -35595,9 +35851,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35595
35851
  }
35596
35852
  }
35597
35853
  e.validateAdditionalItems = i, e.default = r;
35598
- })), _Q = /* @__PURE__ */ W(((e) => {
35854
+ })), kQ = /* @__PURE__ */ W(((e) => {
35599
35855
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
35600
- var t = SZ(), n = CZ(), r = jZ(), i = {
35856
+ var t = PZ(), n = FZ(), r = UZ(), i = {
35601
35857
  keyword: "items",
35602
35858
  type: "array",
35603
35859
  schemaType: [
@@ -35632,9 +35888,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35632
35888
  }
35633
35889
  }
35634
35890
  e.validateTuple = a, e.default = i;
35635
- })), vQ = /* @__PURE__ */ W(((e) => {
35891
+ })), AQ = /* @__PURE__ */ W(((e) => {
35636
35892
  Object.defineProperty(e, "__esModule", { value: !0 });
35637
- var t = _Q();
35893
+ var t = kQ();
35638
35894
  e.default = {
35639
35895
  keyword: "prefixItems",
35640
35896
  type: "array",
@@ -35642,9 +35898,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35642
35898
  before: "uniqueItems",
35643
35899
  code: (e) => (0, t.validateTuple)(e, "items")
35644
35900
  };
35645
- })), yQ = /* @__PURE__ */ W(((e) => {
35901
+ })), jQ = /* @__PURE__ */ W(((e) => {
35646
35902
  Object.defineProperty(e, "__esModule", { value: !0 });
35647
- var t = SZ(), n = CZ(), r = jZ(), i = gQ();
35903
+ var t = PZ(), n = FZ(), r = UZ(), i = OQ();
35648
35904
  e.default = {
35649
35905
  keyword: "items",
35650
35906
  type: "array",
@@ -35659,9 +35915,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35659
35915
  o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
35660
35916
  }
35661
35917
  };
35662
- })), bQ = /* @__PURE__ */ W(((e) => {
35918
+ })), MQ = /* @__PURE__ */ W(((e) => {
35663
35919
  Object.defineProperty(e, "__esModule", { value: !0 });
35664
- var t = SZ(), n = CZ();
35920
+ var t = PZ(), n = FZ();
35665
35921
  e.default = {
35666
35922
  keyword: "contains",
35667
35923
  type: "array",
@@ -35714,9 +35970,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35714
35970
  }
35715
35971
  }
35716
35972
  };
35717
- })), xQ = /* @__PURE__ */ W(((e) => {
35973
+ })), NQ = /* @__PURE__ */ W(((e) => {
35718
35974
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
35719
- var t = SZ(), n = CZ(), r = jZ();
35975
+ var t = PZ(), n = FZ(), r = UZ();
35720
35976
  e.error = {
35721
35977
  message: ({ params: { property: e, depsCount: n, deps: r } }) => {
35722
35978
  let i = n === 1 ? "property" : "properties";
@@ -35775,9 +36031,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35775
36031
  }, () => i.var(c, !0)), e.ok(c));
35776
36032
  }
35777
36033
  e.validateSchemaDeps = s, e.default = i;
35778
- })), SQ = /* @__PURE__ */ W(((e) => {
36034
+ })), PQ = /* @__PURE__ */ W(((e) => {
35779
36035
  Object.defineProperty(e, "__esModule", { value: !0 });
35780
- var t = SZ(), n = CZ();
36036
+ var t = PZ(), n = FZ();
35781
36037
  e.default = {
35782
36038
  keyword: "propertyNames",
35783
36039
  type: "object",
@@ -35803,9 +36059,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35803
36059
  }), e.ok(s);
35804
36060
  }
35805
36061
  };
35806
- })), CQ = /* @__PURE__ */ W(((e) => {
36062
+ })), FQ = /* @__PURE__ */ W(((e) => {
35807
36063
  Object.defineProperty(e, "__esModule", { value: !0 });
35808
- var t = jZ(), n = SZ(), r = wZ(), i = CZ();
36064
+ var t = UZ(), n = PZ(), r = IZ(), i = FZ();
35809
36065
  e.default = {
35810
36066
  keyword: "additionalProperties",
35811
36067
  type: ["object"],
@@ -35870,9 +36126,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35870
36126
  }
35871
36127
  }
35872
36128
  };
35873
- })), wQ = /* @__PURE__ */ W(((e) => {
36129
+ })), IQ = /* @__PURE__ */ W(((e) => {
35874
36130
  Object.defineProperty(e, "__esModule", { value: !0 });
35875
- var t = LZ(), n = jZ(), r = CZ(), i = CQ();
36131
+ var t = YZ(), n = UZ(), r = FZ(), i = FQ();
35876
36132
  e.default = {
35877
36133
  keyword: "properties",
35878
36134
  type: "object",
@@ -35899,9 +36155,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35899
36155
  }
35900
36156
  }
35901
36157
  };
35902
- })), TQ = /* @__PURE__ */ W(((e) => {
36158
+ })), LQ = /* @__PURE__ */ W(((e) => {
35903
36159
  Object.defineProperty(e, "__esModule", { value: !0 });
35904
- var t = jZ(), n = SZ(), r = CZ(), i = CZ();
36160
+ var t = UZ(), n = PZ(), r = FZ(), i = FZ();
35905
36161
  e.default = {
35906
36162
  keyword: "patternProperties",
35907
36163
  type: "object",
@@ -35934,9 +36190,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35934
36190
  }
35935
36191
  }
35936
36192
  };
35937
- })), EQ = /* @__PURE__ */ W(((e) => {
36193
+ })), RQ = /* @__PURE__ */ W(((e) => {
35938
36194
  Object.defineProperty(e, "__esModule", { value: !0 });
35939
- var t = CZ();
36195
+ var t = FZ();
35940
36196
  e.default = {
35941
36197
  keyword: "not",
35942
36198
  schemaType: ["object", "boolean"],
@@ -35957,17 +36213,17 @@ var bZ = /* @__PURE__ */ W(((e) => {
35957
36213
  },
35958
36214
  error: { message: "must NOT be valid" }
35959
36215
  };
35960
- })), DQ = /* @__PURE__ */ W(((e) => {
36216
+ })), zQ = /* @__PURE__ */ W(((e) => {
35961
36217
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
35962
36218
  keyword: "anyOf",
35963
36219
  schemaType: "array",
35964
36220
  trackErrors: !0,
35965
- code: jZ().validateUnion,
36221
+ code: UZ().validateUnion,
35966
36222
  error: { message: "must match a schema in anyOf" }
35967
36223
  };
35968
- })), OQ = /* @__PURE__ */ W(((e) => {
36224
+ })), BQ = /* @__PURE__ */ W(((e) => {
35969
36225
  Object.defineProperty(e, "__esModule", { value: !0 });
35970
- var t = SZ(), n = CZ();
36226
+ var t = PZ(), n = FZ();
35971
36227
  e.default = {
35972
36228
  keyword: "oneOf",
35973
36229
  schemaType: "array",
@@ -35997,9 +36253,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
35997
36253
  }
35998
36254
  }
35999
36255
  };
36000
- })), kQ = /* @__PURE__ */ W(((e) => {
36256
+ })), VQ = /* @__PURE__ */ W(((e) => {
36001
36257
  Object.defineProperty(e, "__esModule", { value: !0 });
36002
- var t = CZ();
36258
+ var t = FZ();
36003
36259
  e.default = {
36004
36260
  keyword: "allOf",
36005
36261
  schemaType: "array",
@@ -36018,9 +36274,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
36018
36274
  });
36019
36275
  }
36020
36276
  };
36021
- })), AQ = /* @__PURE__ */ W(((e) => {
36277
+ })), HQ = /* @__PURE__ */ W(((e) => {
36022
36278
  Object.defineProperty(e, "__esModule", { value: !0 });
36023
- var t = SZ(), n = CZ(), r = {
36279
+ var t = PZ(), n = FZ(), r = {
36024
36280
  keyword: "if",
36025
36281
  schemaType: ["object", "boolean"],
36026
36282
  trackErrors: !0,
@@ -36061,9 +36317,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
36061
36317
  return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
36062
36318
  }
36063
36319
  e.default = r;
36064
- })), jQ = /* @__PURE__ */ W(((e) => {
36320
+ })), UQ = /* @__PURE__ */ W(((e) => {
36065
36321
  Object.defineProperty(e, "__esModule", { value: !0 });
36066
- var t = CZ();
36322
+ var t = FZ();
36067
36323
  e.default = {
36068
36324
  keyword: ["then", "else"],
36069
36325
  schemaType: ["object", "boolean"],
@@ -36071,9 +36327,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
36071
36327
  n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
36072
36328
  }
36073
36329
  };
36074
- })), MQ = /* @__PURE__ */ W(((e) => {
36330
+ })), WQ = /* @__PURE__ */ W(((e) => {
36075
36331
  Object.defineProperty(e, "__esModule", { value: !0 });
36076
- var t = gQ(), n = vQ(), r = _Q(), i = yQ(), a = bQ(), o = xQ(), s = SQ(), c = CQ(), l = wQ(), u = TQ(), d = EQ(), f = DQ(), p = OQ(), m = kQ(), h = AQ(), g = jQ();
36332
+ var t = OQ(), n = AQ(), r = kQ(), i = jQ(), a = MQ(), o = NQ(), s = PQ(), c = FQ(), l = IQ(), u = LQ(), d = RQ(), f = zQ(), p = BQ(), m = VQ(), h = HQ(), g = UQ();
36077
36333
  function _(e = !1) {
36078
36334
  let _ = [
36079
36335
  d.default,
@@ -36091,9 +36347,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
36091
36347
  return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
36092
36348
  }
36093
36349
  e.default = _;
36094
- })), NQ = /* @__PURE__ */ W(((e) => {
36350
+ })), GQ = /* @__PURE__ */ W(((e) => {
36095
36351
  Object.defineProperty(e, "__esModule", { value: !0 });
36096
- var t = SZ();
36352
+ var t = PZ();
36097
36353
  e.default = {
36098
36354
  keyword: "format",
36099
36355
  type: ["number", "string"],
@@ -36166,9 +36422,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
36166
36422
  }
36167
36423
  }
36168
36424
  };
36169
- })), PQ = /* @__PURE__ */ W(((e) => {
36170
- Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [NQ().default];
36171
- })), FQ = /* @__PURE__ */ W(((e) => {
36425
+ })), KQ = /* @__PURE__ */ W(((e) => {
36426
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [GQ().default];
36427
+ })), qQ = /* @__PURE__ */ W(((e) => {
36172
36428
  Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
36173
36429
  "title",
36174
36430
  "description",
@@ -36182,9 +36438,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
36182
36438
  "contentEncoding",
36183
36439
  "contentSchema"
36184
36440
  ];
36185
- })), IQ = /* @__PURE__ */ W(((e) => {
36441
+ })), JQ = /* @__PURE__ */ W(((e) => {
36186
36442
  Object.defineProperty(e, "__esModule", { value: !0 });
36187
- var t = nQ(), n = hQ(), r = MQ(), i = PQ(), a = FQ();
36443
+ var t = mQ(), n = DQ(), r = WQ(), i = KQ(), a = qQ();
36188
36444
  e.default = [
36189
36445
  t.default,
36190
36446
  n.default,
@@ -36193,15 +36449,15 @@ var bZ = /* @__PURE__ */ W(((e) => {
36193
36449
  a.metadataVocabulary,
36194
36450
  a.contentVocabulary
36195
36451
  ];
36196
- })), LQ = /* @__PURE__ */ W(((e) => {
36452
+ })), YQ = /* @__PURE__ */ W(((e) => {
36197
36453
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
36198
36454
  var t;
36199
36455
  (function(e) {
36200
36456
  e.Tag = "tag", e.Mapping = "mapping";
36201
36457
  })(t || (e.DiscrError = t = {}));
36202
- })), RQ = /* @__PURE__ */ W(((e) => {
36458
+ })), XQ = /* @__PURE__ */ W(((e) => {
36203
36459
  Object.defineProperty(e, "__esModule", { value: !0 });
36204
- var t = SZ(), n = LQ(), r = BZ(), i = zZ(), a = CZ();
36460
+ var t = PZ(), n = YQ(), r = QZ(), i = ZZ(), a = FZ();
36205
36461
  e.default = {
36206
36462
  keyword: "discriminator",
36207
36463
  type: "object",
@@ -36269,16 +36525,16 @@ var bZ = /* @__PURE__ */ W(((e) => {
36269
36525
  }
36270
36526
  }
36271
36527
  };
36272
- })), zQ = /* @__PURE__ */ xe({
36273
- $id: () => VQ,
36274
- $schema: () => BQ,
36275
- default: () => KQ,
36276
- definitions: () => UQ,
36277
- properties: () => GQ,
36278
- title: () => HQ,
36279
- type: () => WQ
36280
- }), BQ, VQ, HQ, UQ, WQ, GQ, KQ, qQ = be((() => {
36281
- BQ = "http://json-schema.org/draft-07/schema#", VQ = "http://json-schema.org/draft-07/schema#", HQ = "Core schema meta-schema", UQ = {
36528
+ })), ZQ = /* @__PURE__ */ xe({
36529
+ $id: () => $Q,
36530
+ $schema: () => QQ,
36531
+ default: () => i$,
36532
+ definitions: () => t$,
36533
+ properties: () => r$,
36534
+ title: () => e$,
36535
+ type: () => n$
36536
+ }), QQ, $Q, e$, t$, n$, r$, i$, a$ = be((() => {
36537
+ QQ = "http://json-schema.org/draft-07/schema#", $Q = "http://json-schema.org/draft-07/schema#", e$ = "Core schema meta-schema", t$ = {
36282
36538
  schemaArray: {
36283
36539
  type: "array",
36284
36540
  minItems: 1,
@@ -36304,7 +36560,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
36304
36560
  uniqueItems: !0,
36305
36561
  default: []
36306
36562
  }
36307
- }, WQ = ["object", "boolean"], GQ = {
36563
+ }, n$ = ["object", "boolean"], r$ = {
36308
36564
  $id: {
36309
36565
  type: "string",
36310
36566
  format: "uri-reference"
@@ -36403,18 +36659,18 @@ var bZ = /* @__PURE__ */ W(((e) => {
36403
36659
  anyOf: { $ref: "#/definitions/schemaArray" },
36404
36660
  oneOf: { $ref: "#/definitions/schemaArray" },
36405
36661
  not: { $ref: "#" }
36406
- }, KQ = {
36407
- $schema: BQ,
36408
- $id: VQ,
36409
- title: HQ,
36410
- definitions: UQ,
36411
- type: WQ,
36412
- properties: GQ,
36662
+ }, i$ = {
36663
+ $schema: QQ,
36664
+ $id: $Q,
36665
+ title: e$,
36666
+ definitions: t$,
36667
+ type: n$,
36668
+ properties: r$,
36413
36669
  default: !0
36414
36670
  };
36415
- })), JQ = /* @__PURE__ */ W(((e, t) => {
36671
+ })), o$ = /* @__PURE__ */ W(((e, t) => {
36416
36672
  Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv = void 0;
36417
- var n = $Z(), r = IQ(), i = RQ(), a = (qQ(), we(zQ).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
36673
+ var n = dQ(), r = JQ(), i = XQ(), a = (a$(), we(ZQ).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
36418
36674
  _addVocabularies() {
36419
36675
  super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
36420
36676
  }
@@ -36428,14 +36684,14 @@ var bZ = /* @__PURE__ */ W(((e) => {
36428
36684
  }
36429
36685
  };
36430
36686
  e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
36431
- var l = LZ();
36687
+ var l = YZ();
36432
36688
  Object.defineProperty(e, "KeywordCxt", {
36433
36689
  enumerable: !0,
36434
36690
  get: function() {
36435
36691
  return l.KeywordCxt;
36436
36692
  }
36437
36693
  });
36438
- var u = SZ();
36694
+ var u = PZ();
36439
36695
  Object.defineProperty(e, "_", {
36440
36696
  enumerable: !0,
36441
36697
  get: function() {
@@ -36467,21 +36723,21 @@ var bZ = /* @__PURE__ */ W(((e) => {
36467
36723
  return u.CodeGen;
36468
36724
  }
36469
36725
  });
36470
- var d = RZ();
36726
+ var d = XZ();
36471
36727
  Object.defineProperty(e, "ValidationError", {
36472
36728
  enumerable: !0,
36473
36729
  get: function() {
36474
36730
  return d.default;
36475
36731
  }
36476
36732
  });
36477
- var f = zZ();
36733
+ var f = ZZ();
36478
36734
  Object.defineProperty(e, "MissingRefError", {
36479
36735
  enumerable: !0,
36480
36736
  get: function() {
36481
36737
  return f.default;
36482
36738
  }
36483
36739
  });
36484
- })), YQ = /* @__PURE__ */ W(((e) => {
36740
+ })), s$ = /* @__PURE__ */ W(((e) => {
36485
36741
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
36486
36742
  function t(e, t) {
36487
36743
  return {
@@ -36633,9 +36889,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
36633
36889
  return !1;
36634
36890
  }
36635
36891
  }
36636
- })), XQ = /* @__PURE__ */ W(((e) => {
36892
+ })), c$ = /* @__PURE__ */ W(((e) => {
36637
36893
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
36638
- var t = JQ(), n = SZ(), r = n.operators, i = {
36894
+ var t = o$(), n = PZ(), r = n.operators, i = {
36639
36895
  formatMaximum: {
36640
36896
  okStr: "<=",
36641
36897
  ok: r.LTE,
@@ -36695,9 +36951,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
36695
36951
  },
36696
36952
  dependencies: ["format"]
36697
36953
  }, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
36698
- })), ZQ = /* @__PURE__ */ W(((e, t) => {
36954
+ })), l$ = /* @__PURE__ */ W(((e, t) => {
36699
36955
  Object.defineProperty(e, "__esModule", { value: !0 });
36700
- var n = YQ(), r = XQ(), i = SZ(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
36956
+ var n = s$(), r = c$(), i = PZ(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
36701
36957
  if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
36702
36958
  let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
36703
36959
  return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
@@ -36713,9 +36969,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
36713
36969
  for (let r of t) e.addFormat(r, n[r]);
36714
36970
  }
36715
36971
  t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
36716
- })), QQ = /* @__PURE__ */ Ce(JQ(), 1), $Q = /* @__PURE__ */ Ce(ZQ(), 1), e$ = {
36972
+ })), u$ = /* @__PURE__ */ Ce(o$(), 1), d$ = /* @__PURE__ */ Ce(l$(), 1), f$ = {
36717
36973
  required: () => "This field is required",
36718
- type: (e) => `Should be "${n$(e)}".`,
36974
+ type: (e) => `Should be "${m$(e)}".`,
36719
36975
  minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
36720
36976
  maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
36721
36977
  minimum: (e) => `Should be >= ${e.params.limit}`,
@@ -36727,63 +36983,63 @@ var bZ = /* @__PURE__ */ W(((e) => {
36727
36983
  maxItems: (e) => `Should NOT have more than ${e.params.limit} items`,
36728
36984
  uniqueItems: () => "Should NOT have duplicate items",
36729
36985
  const: (e) => `Should be equal to constant "${e.params.allowedValue}"`,
36730
- pattern: (e, t) => `${gX(t)} value does not respect the pattern: ${e.params.pattern}`,
36986
+ pattern: (e, t) => `${OX(t)} value does not respect the pattern: ${e.params.pattern}`,
36731
36987
  format: (e) => `Should be a valid ${e.params.format}`,
36732
36988
  uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
36733
36989
  };
36734
- function t$(e, t) {
36735
- let n = e$[e.keyword];
36990
+ function p$(e, t) {
36991
+ let n = f$[e.keyword];
36736
36992
  return n ? n(e, t) : e.message ?? "Invalid value";
36737
36993
  }
36738
- function n$(e) {
36994
+ function m$(e) {
36739
36995
  let t = e.params.type;
36740
36996
  return String(Array.isArray(t) ? t[0] : t);
36741
36997
  }
36742
36998
  //#endregion
36743
36999
  //#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
36744
- function r$(e, t, n) {
37000
+ function h$(e, t, n) {
36745
37001
  let r = t === "" ? [] : t.split("."), i = e.root, a = n, o = [];
36746
37002
  for (let e of r) {
36747
37003
  if (!i) return {
36748
37004
  node: void 0,
36749
37005
  value: void 0
36750
37006
  };
36751
- i = i$(i, a, n, o), /^\d+$/.test(e) ? (i = i.items, a = Array.isArray(a) ? a[Number(e)] : void 0) : (i = i.properties?.get(e), a = a && typeof a == "object" ? a[e] : void 0), o.push(e);
37007
+ i = g$(i, a, n, o), /^\d+$/.test(e) ? (i = i.items, a = Array.isArray(a) ? a[Number(e)] : void 0) : (i = i.properties?.get(e), a = a && typeof a == "object" ? a[e] : void 0), o.push(e);
36752
37008
  }
36753
37009
  return i ? {
36754
- node: a$(i$(i, a, n, r), r),
37010
+ node: _$(g$(i, a, n, r), r),
36755
37011
  value: a
36756
37012
  } : {
36757
37013
  node: void 0,
36758
37014
  value: a
36759
37015
  };
36760
37016
  }
36761
- function i$(e, t, n, r) {
36762
- let i = new Map(e.properties), a = e.variants ? c$(e.variants, t) : void 0;
37017
+ function g$(e, t, n, r) {
37018
+ let i = new Map(e.properties), a = e.variants ? b$(e.variants, t) : void 0;
36763
37019
  if (a) for (let [e, t] of a.properties) i.set(e, t);
36764
37020
  let o = [...e.dependencyBranches ?? [], ...a?.dependencyBranches ?? []];
36765
37021
  if (o.length > 0) {
36766
- for (let e of o) if (o$(e.showIf.$eq, n, r)) for (let [t, n] of e.properties) i.set(t, n);
37022
+ for (let e of o) if (v$(e.showIf.$eq, n, r)) for (let [t, n] of e.properties) i.set(t, n);
36767
37023
  }
36768
37024
  return i.size > (e.properties?.size ?? 0) ? {
36769
37025
  ...e,
36770
37026
  properties: i
36771
37027
  } : e;
36772
37028
  }
36773
- function a$(e, t) {
37029
+ function _$(e, t) {
36774
37030
  return e.displayIf ? {
36775
37031
  ...e,
36776
- displayIf: { $eq: new Map([...e.displayIf.$eq].map(([e, n]) => [$Y(e, t), n])) }
37032
+ displayIf: { $eq: new Map([...e.displayIf.$eq].map(([e, n]) => [dX(e, t), n])) }
36777
37033
  } : e;
36778
37034
  }
36779
- function o$(e, t, n) {
37035
+ function v$(e, t, n) {
36780
37036
  for (let [r, i] of e) {
36781
- let e = s$(t, $Y(r, n).split("."));
37037
+ let e = y$(t, dX(r, n).split("."));
36782
37038
  if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
36783
37039
  }
36784
37040
  return !0;
36785
37041
  }
36786
- function s$(e, t) {
37042
+ function y$(e, t) {
36787
37043
  let n = e;
36788
37044
  for (let e of t) {
36789
37045
  if (typeof n != "object" || !n) return;
@@ -36791,25 +37047,25 @@ function s$(e, t) {
36791
37047
  }
36792
37048
  return n;
36793
37049
  }
36794
- function c$(e, t) {
37050
+ function b$(e, t) {
36795
37051
  if (typeof t != "object" || !t) return;
36796
37052
  let n = t;
36797
37053
  return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
36798
37054
  }
36799
37055
  //#endregion
36800
37056
  //#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
36801
- var l$ = new QQ.default({
37057
+ var x$ = new u$.default({
36802
37058
  strict: !1,
36803
37059
  allErrors: !0
36804
37060
  });
36805
- (0, $Q.default)(l$), l$.removeKeyword("id"), l$.addKeyword({
37061
+ (0, d$.default)(x$), x$.removeKeyword("id"), x$.addKeyword({
36806
37062
  keyword: "id",
36807
37063
  validate: () => !0
36808
37064
  });
36809
- function u$(e, t = {}) {
37065
+ function S$(e, t = {}) {
36810
37066
  let n;
36811
37067
  try {
36812
- n = sZ(e);
37068
+ n = yZ(e);
36813
37069
  } catch (e) {
36814
37070
  let t = e instanceof Error ? e.message : "Invalid JSON Schema";
36815
37071
  return () => ({
@@ -36822,7 +37078,7 @@ function u$(e, t = {}) {
36822
37078
  }
36823
37079
  let r = n.root.schema, i = n.variantIndices, a;
36824
37080
  try {
36825
- a = l$.compile(r);
37081
+ a = x$.compile(r);
36826
37082
  } catch (e) {
36827
37083
  let t = e instanceof Error ? e.message : "Invalid JSON Schema";
36828
37084
  return () => ({
@@ -36833,15 +37089,15 @@ function u$(e, t = {}) {
36833
37089
  } }
36834
37090
  });
36835
37091
  }
36836
- l$.removeSchema(r);
37092
+ x$.removeSchema(r);
36837
37093
  let o = async (e, t, r) => {
36838
- let o = a(e) ? [] : a.errors ?? [], s = _$(n.root, e, "", i), c = [...o, ...s];
37094
+ let o = a(e) ? [] : a.errors ?? [], s = k$(n.root, e, "", i), c = [...o, ...s];
36839
37095
  return c.length === 0 ? {
36840
37096
  values: e,
36841
37097
  errors: {}
36842
37098
  } : {
36843
37099
  values: {},
36844
- errors: m$(p$(c.filter((t) => !d$(t, n, e))), r.criteriaMode ?? "firstError")
37100
+ errors: E$(T$(c.filter((t) => !C$(t, n, e))), r.criteriaMode ?? "firstError")
36845
37101
  };
36846
37102
  };
36847
37103
  if (!t.basePath) return o;
@@ -36857,12 +37113,12 @@ function u$(e, t = {}) {
36857
37113
  };
36858
37114
  };
36859
37115
  }
36860
- function d$(e, t, n) {
36861
- let { node: r, value: i } = r$(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(cX) : []).join("."), n);
37116
+ function C$(e, t, n) {
37117
+ let { node: r, value: i } = h$(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(bX) : []).join("."), n);
36862
37118
  if (!r) return !1;
36863
37119
  switch (e.keyword) {
36864
37120
  case "const":
36865
- case "enum": return f$(r.schema, i);
37121
+ case "enum": return w$(r.schema, i);
36866
37122
  case "required": {
36867
37123
  let t = e.params.missingProperty;
36868
37124
  return typeof t == "string" && !!r.properties && !r.properties.has(t);
@@ -36870,46 +37126,46 @@ function d$(e, t, n) {
36870
37126
  default: return !1;
36871
37127
  }
36872
37128
  }
36873
- function f$(e, t) {
37129
+ function w$(e, t) {
36874
37130
  return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
36875
37131
  }
36876
- function p$(e) {
37132
+ function T$(e) {
36877
37133
  return e.filter((t) => {
36878
37134
  if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
36879
- let n = h$(t), r = n === "" ? "" : `${n}.`;
37135
+ let n = D$(t), r = n === "" ? "" : `${n}.`;
36880
37136
  return !e.some((e) => {
36881
37137
  if (e === t) return !1;
36882
- let i = h$(e);
37138
+ let i = D$(e);
36883
37139
  return n === "" ? i !== "" : i.startsWith(r);
36884
37140
  });
36885
37141
  });
36886
37142
  }
36887
- function m$(e, t) {
37143
+ function E$(e, t) {
36888
37144
  let n = /* @__PURE__ */ new Map();
36889
37145
  for (let t of e) {
36890
- let e = h$(t), r = n.get(e) ?? [];
37146
+ let e = D$(t), r = n.get(e) ?? [];
36891
37147
  r.push(t), n.set(e, r);
36892
37148
  }
36893
37149
  let r = {};
36894
37150
  for (let [e, i] of n) {
36895
37151
  let n = {
36896
37152
  type: i[0].keyword,
36897
- message: t$(i[0], e)
37153
+ message: p$(i[0], e)
36898
37154
  };
36899
37155
  if (t === "all" && i.length > 0) {
36900
37156
  let t = {};
36901
- for (let n of i) t[n.keyword] = t$(n, e);
37157
+ for (let n of i) t[n.keyword] = p$(n, e);
36902
37158
  n.types = t;
36903
37159
  }
36904
- g$(r, e === "" ? "root" : e, n);
37160
+ O$(r, e === "" ? "root" : e, n);
36905
37161
  }
36906
37162
  return r;
36907
37163
  }
36908
- function h$(e) {
36909
- let t = e.instancePath ? e.instancePath.slice(1).split("/").map(cX) : [];
37164
+ function D$(e) {
37165
+ let t = e.instancePath ? e.instancePath.slice(1).split("/").map(bX) : [];
36910
37166
  return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
36911
37167
  }
36912
- function g$(e, t, n) {
37168
+ function O$(e, t, n) {
36913
37169
  let r = t.split("."), i = e;
36914
37170
  for (let e = 0; e < r.length - 1; e++) {
36915
37171
  let t = r[e];
@@ -36917,7 +37173,7 @@ function g$(e, t, n) {
36917
37173
  }
36918
37174
  i[r[r.length - 1]] = n;
36919
37175
  }
36920
- function _$(e, t, n, r) {
37176
+ function k$(e, t, n, r) {
36921
37177
  if (!e) return [];
36922
37178
  let i = [];
36923
37179
  if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let r of e.schema.gioConfig.uniqueItemProperties) {
@@ -36934,18 +37190,18 @@ function _$(e, t, n, r) {
36934
37190
  }
36935
37191
  }
36936
37192
  let a = typeof t == "object" && !!t && !Array.isArray(t);
36937
- if (e.properties && a) for (let [a, o] of e.properties) i.push(..._$(o, t[a], `${n}/${sX(a)}`, r));
37193
+ if (e.properties && a) for (let [a, o] of e.properties) i.push(...k$(o, t[a], `${n}/${yX(a)}`, r));
36938
37194
  if (e.variants && e.variants.length > 0 && a) {
36939
- let a = t, o = UX(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
36940
- if (s) for (let [e, t] of s.properties) i.push(..._$(t, a[e], `${n}/${sX(e)}`, r));
37195
+ let a = t, o = tZ(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
37196
+ if (s) for (let [e, t] of s.properties) i.push(...k$(t, a[e], `${n}/${yX(e)}`, r));
36941
37197
  }
36942
37198
  return e.items && Array.isArray(t) && t.forEach((t, a) => {
36943
- i.push(..._$(e.items, t, `${n}/${a}`, r));
37199
+ i.push(...k$(e.items, t, `${n}/${a}`, r));
36944
37200
  }), i;
36945
37201
  }
36946
37202
  //#endregion
36947
37203
  //#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
36948
- var v$ = {
37204
+ var A$ = {
36949
37205
  navigation: null,
36950
37206
  contextSidebar: null,
36951
37207
  breadcrumbs: [],
@@ -36953,9 +37209,9 @@ var v$ = {
36953
37209
  viewMode: "global",
36954
37210
  contextExpanded: !0,
36955
37211
  contentVariant: "default"
36956
- }, y$ = M(null);
36957
- function b$({ children: e }) {
36958
- let [t, n] = V(v$), r = F((e, t) => {
37212
+ }, j$ = M(null);
37213
+ function M$({ children: e }) {
37214
+ let [t, n] = V(A$), r = F((e, t) => {
36959
37215
  n((n) => ({
36960
37216
  ...n,
36961
37217
  [e]: t
@@ -36967,7 +37223,7 @@ function b$({ children: e }) {
36967
37223
  }));
36968
37224
  }, []), a = F((e) => {
36969
37225
  n((t) => {
36970
- let n = Object.fromEntries(e.map((e) => [e, v$[e]]));
37226
+ let n = Object.fromEntries(e.map((e) => [e, A$[e]]));
36971
37227
  return {
36972
37228
  ...t,
36973
37229
  ...n
@@ -36984,20 +37240,20 @@ function b$({ children: e }) {
36984
37240
  i,
36985
37241
  a
36986
37242
  ]);
36987
- return /* @__PURE__ */ H(y$.Provider, {
37243
+ return /* @__PURE__ */ H(j$.Provider, {
36988
37244
  value: o,
36989
37245
  children: e
36990
37246
  });
36991
37247
  }
36992
- function x$() {
36993
- let e = I(y$);
37248
+ function N$() {
37249
+ let e = I(j$);
36994
37250
  if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
36995
37251
  return e;
36996
37252
  }
36997
37253
  //#endregion
36998
37254
  //#region src/composed/LayoutSlots/use-layout-config.ts
36999
- function S$(e, t = []) {
37000
- let { setSlots: n, resetSlots: r } = x$();
37255
+ function P$(e, t = []) {
37256
+ let { setSlots: n, resetSlots: r } = N$();
37001
37257
  R(() => {
37002
37258
  n(e);
37003
37259
  let t = Object.keys(e);
@@ -37012,7 +37268,7 @@ function S$(e, t = []) {
37012
37268
  }
37013
37269
  //#endregion
37014
37270
  //#region src/composed/TopNavUser/TopNavUser.tsx
37015
- var C$ = [
37271
+ var F$ = [
37016
37272
  {
37017
37273
  value: "light",
37018
37274
  label: "Light"
@@ -37026,7 +37282,7 @@ var C$ = [
37026
37282
  label: "System"
37027
37283
  }
37028
37284
  ];
37029
- function w$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSignOut: a }) {
37285
+ function I$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSignOut: a }) {
37030
37286
  let o = r ?? e.slice(0, 2).toUpperCase(), { mode: s, setMode: c } = D();
37031
37287
  return /* @__PURE__ */ U(WL, { children: [/* @__PURE__ */ H(KL, {
37032
37288
  asChild: !0,
@@ -37055,7 +37311,7 @@ function w$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSign
37055
37311
  /* @__PURE__ */ H(ZL, {
37056
37312
  value: s,
37057
37313
  onValueChange: (e) => c(e),
37058
- children: C$.map((e) => /* @__PURE__ */ H(QL, {
37314
+ children: F$.map((e) => /* @__PURE__ */ H(QL, {
37059
37315
  value: e.value,
37060
37316
  children: e.label
37061
37317
  }, e.value))
@@ -37068,6 +37324,6 @@ function w$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSign
37068
37324
  ]
37069
37325
  })] });
37070
37326
  }
37071
- w$.displayName = "TopNavUser";
37327
+ I$.displayName = "TopNavUser";
37072
37328
  //#endregion
37073
- export { Vy as Accordion, Wy as AccordionContent, Hy as AccordionItem, Uy as AccordionTrigger, Yy as Alert, Qy as AlertAction, Zy as AlertDescription, Xy as AlertTitle, lG as AppContextBar, yG as AppLayout, CG as AppSidebar, oG as AppSwitcher, $y as Avatar, nb as AvatarBadge, tb as AvatarFallback, rb as AvatarGroup, ib as AvatarGroupCount, eb as AvatarImage, ob as Badge, sb as Breadcrumb, pb as BreadcrumbEllipsis, lb as BreadcrumbItem, ub as BreadcrumbLink, cb as BreadcrumbList, db as BreadcrumbPage, fb as BreadcrumbSeparator, hb as Button, vb as ButtonGroup, bb as ButtonGroupSeparator, yb as ButtonGroupText, Nw as Calendar, Pw as CalendarDayButton, Fw as Card, zw as CardAction, Bw as CardContent, Rw as CardDescription, Vw as CardFooter, Iw as CardHeader, Lw as CardTitle, Hw as Checkbox, Uw as Collapsible, Gw as CollapsibleContent, Ww as CollapsibleTrigger, uM as Combobox, wM as ComboboxChip, CM as ComboboxChips, TM as ComboboxChipsInput, bM as ComboboxCollection, hM as ComboboxContent, xM as ComboboxEmpty, vM as ComboboxGroup, mM as ComboboxInput, _M as ComboboxItem, yM as ComboboxLabel, gM as ComboboxList, SM as ComboboxSeparator, fM as ComboboxTrigger, dM as ComboboxValue, aI as Command, oI as CommandDialog, lI as CommandEmpty, uI as CommandGroup, sI as CommandInput, fI as CommandItem, cI as CommandList, dI as CommandSeparator, pI as CommandShortcut, OG as ContentHeader, mI as ContextMenu, wI as ContextMenuCheckboxItem, bI as ContextMenuContent, gI as ContextMenuGroup, xI as ContextMenuItem, EI as ContextMenuLabel, _I as ContextMenuPortal, yI as ContextMenuRadioGroup, TI as ContextMenuRadioItem, DI as ContextMenuSeparator, OI as ContextMenuShortcut, vI as ContextMenuSub, CI as ContextMenuSubContent, SI as ContextMenuSubTrigger, hI as ContextMenuTrigger, TG as ContextSidebar, EG as ContextToggleButton, kG as CopyableText, v$ as DEFAULT_SLOTS, uq as DataTable, dq as DataTableColumnHeader, fq as DataTablePagination, iq as DataTableViewOptions, xJ as DatePicker, SJ as DateRangePicker, TJ as DateTimePicker, OJ as DateTimeRangePicker, YF as Dialog, QF as DialogClose, eI as DialogContent, iI as DialogDescription, nI as DialogFooter, tI as DialogHeader, $F as DialogOverlay, ZF as DialogPortal, rI as DialogTitle, XF as DialogTrigger, PL as Drawer, LL as DrawerClose, zL as DrawerContent, UL as DrawerDescription, VL as DrawerFooter, BL as DrawerHeader, RL as DrawerOverlay, IL as DrawerPortal, HL as DrawerTitle, FL as DrawerTrigger, WL as DropdownMenu, XL as DropdownMenuCheckboxItem, qL as DropdownMenuContent, JL as DropdownMenuGroup, YL as DropdownMenuItem, $L as DropdownMenuLabel, GL as DropdownMenuPortal, ZL as DropdownMenuRadioGroup, QL as DropdownMenuRadioItem, eR as DropdownMenuSeparator, tR as DropdownMenuShortcut, nR as DropdownMenuSub, iR as DropdownMenuSubContent, rR as DropdownMenuSubTrigger, KL as DropdownMenuTrigger, aR as Empty, dR as EmptyContent, uR as EmptyDescription, oR as EmptyHeader, cR as EmptyMedia, lR as EmptyTitle, kJ as FacetedFilter, _R as Field, vR as FieldContent, xR as FieldDescription, CR as FieldError, hR as FieldGroup, yR as FieldLabel, mR as FieldLegend, SR as FieldSeparator, pR as FieldSet, bR as FieldTitle, PJ as FileUpload, _B as FileUploadInput, NJ as FileUploadItem, vB as HoverCard, bB as HoverCardContent, CB as HoverCardDescription, xB as HoverCardHeader, SB as HoverCardTitle, yB as HoverCardTrigger, eM as Input, nM as InputGroup, iM as InputGroupAddon, oM as InputGroupButton, cM as InputGroupInput, sM as InputGroupText, lM as InputGroupTextarea, DB as Item, NB as ItemActions, AB as ItemContent, MB as ItemDescription, FB as ItemFooter, wB as ItemGroup, PB as ItemHeader, kB as ItemMedia, TB as ItemSeparator, jB as ItemTitle, vZ as JsonSchemaForm, IB as Kbd, LB as KbdGroup, fR as Label, b$ as LayoutSlotsProvider, RB as Pagination, zB as PaginationContent, WB as PaginationEllipsis, BB as PaginationItem, VB as PaginationLink, UB as PaginationNext, HB as PaginationPrevious, QX as PasswordInput, GB as Popover, JB as PopoverAnchor, qB as PopoverContent, ZB as PopoverDescription, YB as PopoverHeader, XB as PopoverTitle, KB as PopoverTrigger, en as PortalContainerProvider, QB as Progress, eV as Prose, tV as RadioGroup, nV as RadioGroupItem, QH as ResizableHandle, ZH as ResizablePanel, XH as ResizablePanelGroup, $H as ScrollArea, eU as ScrollBar, tU as Select, aU as SelectContent, nU as SelectGroup, sU as SelectItem, oU as SelectLabel, uU as SelectScrollDownButton, lU as SelectScrollUpButton, cU as SelectSeparator, iU as SelectTrigger, rU as SelectValue, sG as SelectorDropdown, cG as SelectorTriggerButton, gb as Separator, dU as Sheet, pU as SheetClose, gU as SheetContent, bU as SheetDescription, vU as SheetFooter, _U as SheetHeader, yU as SheetTitle, fU as SheetTrigger, BU as Sidebar, JU as SidebarContent, KU as SidebarFooter, YU as SidebarGroup, ZU as SidebarGroupAction, QU as SidebarGroupContent, XU as SidebarGroupLabel, GU as SidebarHeader, WU as SidebarInput, UU as SidebarInset, $U as SidebarMenu, rW as SidebarMenuAction, iW as SidebarMenuBadge, nW as SidebarMenuButton, eW as SidebarMenuItem, aW as SidebarMenuSkeleton, oW as SidebarMenuSub, cW as SidebarMenuSubButton, sW as SidebarMenuSubItem, _G as SidebarModeControl, hG as SidebarModeProvider, wG as SidebarNavigation, zU as SidebarProvider, HU as SidebarRail, qU as SidebarSeparator, VU as SidebarTrigger, xU as Skeleton, BW as Spinner, VW as Switch, HW as Table, WW as TableBody, YW as TableCaption, JW as TableCell, GW as TableFooter, qW as TableHead, UW as TableHeader, KW as TableRow, XW as Tabs, eG as TabsContent, QW as TabsList, $W as TabsTrigger, tM as Textarea, O as ThemeProvider, zW as Toaster, nG as Toggle, iG as ToggleGroup, aG as ToggleGroupItem, CU as Tooltip, TU as TooltipContent, SU as TooltipProvider, wU as TooltipTrigger, w$ as TopNavUser, Jy as alertVariants, ab as badgeVariants, AG as buildLinearBreadcrumbs, _b as buttonGroupVariants, mb as buttonVariants, q as cn, yZ as composeResolvers, fX as extractDefaults, u$ as jsonSchemaResolver, ZW as tabsListVariants, CW as toast, tG as toggleVariants, EM as useComboboxAnchor, S$ as useLayoutConfig, x$ as useLayoutSlots, tn as usePortalContainer, RU as useSidebar, fG as useSidebarMode, D as useTheme };
37329
+ export { Vy as Accordion, Wy as AccordionContent, Hy as AccordionItem, Uy as AccordionTrigger, Yy as Alert, Qy as AlertAction, Zy as AlertDescription, Xy as AlertTitle, lG as AppContextBar, yG as AppLayout, CG as AppSidebar, oG as AppSwitcher, $y as Avatar, nb as AvatarBadge, tb as AvatarFallback, rb as AvatarGroup, ib as AvatarGroupCount, eb as AvatarImage, ob as Badge, yq as BadgeCell, sb as Breadcrumb, pb as BreadcrumbEllipsis, lb as BreadcrumbItem, ub as BreadcrumbLink, cb as BreadcrumbList, db as BreadcrumbPage, fb as BreadcrumbSeparator, hb as Button, vb as ButtonGroup, bb as ButtonGroupSeparator, yb as ButtonGroupText, Nw as Calendar, Pw as CalendarDayButton, Fw as Card, zw as CardAction, Bw as CardContent, Rw as CardDescription, Vw as CardFooter, Iw as CardHeader, Lw as CardTitle, Hw as Checkbox, Uw as Collapsible, Gw as CollapsibleContent, Ww as CollapsibleTrigger, uM as Combobox, wM as ComboboxChip, CM as ComboboxChips, TM as ComboboxChipsInput, bM as ComboboxCollection, hM as ComboboxContent, xM as ComboboxEmpty, vM as ComboboxGroup, mM as ComboboxInput, _M as ComboboxItem, yM as ComboboxLabel, gM as ComboboxList, SM as ComboboxSeparator, fM as ComboboxTrigger, dM as ComboboxValue, aI as Command, oI as CommandDialog, lI as CommandEmpty, uI as CommandGroup, sI as CommandInput, fI as CommandItem, cI as CommandList, dI as CommandSeparator, pI as CommandShortcut, OG as ContentHeader, mI as ContextMenu, wI as ContextMenuCheckboxItem, bI as ContextMenuContent, gI as ContextMenuGroup, xI as ContextMenuItem, EI as ContextMenuLabel, _I as ContextMenuPortal, yI as ContextMenuRadioGroup, TI as ContextMenuRadioItem, DI as ContextMenuSeparator, OI as ContextMenuShortcut, vI as ContextMenuSub, CI as ContextMenuSubContent, SI as ContextMenuSubTrigger, hI as ContextMenuTrigger, TG as ContextSidebar, EG as ContextToggleButton, xq as CopyableCell, kG as CopyableText, A$ as DEFAULT_SLOTS, dq as DataTable, fq as DataTableColumnHeader, Cq as DataTableEmptyState, iq as DataTablePagination, aq as DataTableViewOptions, vq as DateCell, MJ as DatePicker, NJ as DateRangePicker, IJ as DateTimePicker, zJ as DateTimeRangePicker, YF as Dialog, QF as DialogClose, eI as DialogContent, iI as DialogDescription, nI as DialogFooter, tI as DialogHeader, $F as DialogOverlay, ZF as DialogPortal, rI as DialogTitle, XF as DialogTrigger, PL as Drawer, LL as DrawerClose, zL as DrawerContent, UL as DrawerDescription, VL as DrawerFooter, BL as DrawerHeader, RL as DrawerOverlay, IL as DrawerPortal, HL as DrawerTitle, FL as DrawerTrigger, WL as DropdownMenu, XL as DropdownMenuCheckboxItem, qL as DropdownMenuContent, JL as DropdownMenuGroup, YL as DropdownMenuItem, $L as DropdownMenuLabel, GL as DropdownMenuPortal, ZL as DropdownMenuRadioGroup, QL as DropdownMenuRadioItem, eR as DropdownMenuSeparator, tR as DropdownMenuShortcut, nR as DropdownMenuSub, iR as DropdownMenuSubContent, rR as DropdownMenuSubTrigger, KL as DropdownMenuTrigger, aR as Empty, dR as EmptyContent, uR as EmptyDescription, oR as EmptyHeader, cR as EmptyMedia, lR as EmptyTitle, BJ as FacetedFilter, _R as Field, vR as FieldContent, xR as FieldDescription, CR as FieldError, hR as FieldGroup, yR as FieldLabel, mR as FieldLegend, SR as FieldSeparator, pR as FieldSet, bR as FieldTitle, GJ as FileUpload, _B as FileUploadInput, WJ as FileUploadItem, vB as HoverCard, bB as HoverCardContent, CB as HoverCardDescription, xB as HoverCardHeader, SB as HoverCardTitle, yB as HoverCardTrigger, eM as Input, nM as InputGroup, iM as InputGroupAddon, oM as InputGroupButton, cM as InputGroupInput, sM as InputGroupText, lM as InputGroupTextarea, DB as Item, NB as ItemActions, AB as ItemContent, MB as ItemDescription, FB as ItemFooter, wB as ItemGroup, PB as ItemHeader, kB as ItemMedia, TB as ItemSeparator, jB as ItemTitle, AZ as JsonSchemaForm, IB as Kbd, LB as KbdGroup, fR as Label, M$ as LayoutSlotsProvider, bq as MonoCell, RB as Pagination, zB as PaginationContent, WB as PaginationEllipsis, BB as PaginationItem, VB as PaginationLink, UB as PaginationNext, HB as PaginationPrevious, uZ as PasswordInput, GB as Popover, JB as PopoverAnchor, qB as PopoverContent, ZB as PopoverDescription, YB as PopoverHeader, XB as PopoverTitle, KB as PopoverTrigger, en as PortalContainerProvider, QB as Progress, eV as Prose, tV as RadioGroup, nV as RadioGroupItem, QH as ResizableHandle, ZH as ResizablePanel, XH as ResizablePanelGroup, $H as ScrollArea, eU as ScrollBar, tU as Select, aU as SelectContent, nU as SelectGroup, sU as SelectItem, oU as SelectLabel, uU as SelectScrollDownButton, lU as SelectScrollUpButton, cU as SelectSeparator, iU as SelectTrigger, rU as SelectValue, sG as SelectorDropdown, cG as SelectorTriggerButton, gb as Separator, dU as Sheet, pU as SheetClose, gU as SheetContent, bU as SheetDescription, vU as SheetFooter, _U as SheetHeader, yU as SheetTitle, fU as SheetTrigger, BU as Sidebar, JU as SidebarContent, KU as SidebarFooter, YU as SidebarGroup, ZU as SidebarGroupAction, QU as SidebarGroupContent, XU as SidebarGroupLabel, GU as SidebarHeader, WU as SidebarInput, UU as SidebarInset, $U as SidebarMenu, rW as SidebarMenuAction, iW as SidebarMenuBadge, nW as SidebarMenuButton, eW as SidebarMenuItem, aW as SidebarMenuSkeleton, oW as SidebarMenuSub, cW as SidebarMenuSubButton, sW as SidebarMenuSubItem, _G as SidebarModeControl, hG as SidebarModeProvider, wG as SidebarNavigation, zU as SidebarProvider, HU as SidebarRail, qU as SidebarSeparator, VU as SidebarTrigger, xU as Skeleton, BW as Spinner, VW as Switch, HW as Table, WW as TableBody, YW as TableCaption, JW as TableCell, GW as TableFooter, qW as TableHead, UW as TableHeader, KW as TableRow, XW as Tabs, eG as TabsContent, QW as TabsList, $W as TabsTrigger, tM as Textarea, O as ThemeProvider, zW as Toaster, nG as Toggle, iG as ToggleGroup, aG as ToggleGroupItem, CU as Tooltip, TU as TooltipContent, SU as TooltipProvider, wU as TooltipTrigger, I$ as TopNavUser, Sq as TruncatedCell, Jy as alertVariants, ab as badgeVariants, AG as buildLinearBreadcrumbs, _b as buttonGroupVariants, mb as buttonVariants, q as cn, jZ as composeResolvers, wX as extractDefaults, S$ as jsonSchemaResolver, ZW as tabsListVariants, CW as toast, tG as toggleVariants, EM as useComboboxAnchor, P$ as useLayoutConfig, N$ as useLayoutSlots, tn as usePortalContainer, RU as useSidebar, fG as useSidebarMode, D as useTheme };