bstp-agent-widget 0.2.21 → 0.2.23

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.
@@ -23740,285 +23740,192 @@ function JO({ ...e }) {
23740
23740
  //#endregion
23741
23741
  //#region src/components/AgentChat/AgentChatDrawer.tsx
23742
23742
  function YO({ opened: e, onClose: t, zIndex: n, withinPortal: r, messages: i, composerText: a, onComposerTextChange: o, isLoading: s, error: c, canSend: l, onSubmit: u, isListening: d, isVoiceSupported: f, onToggleVoice: p, drawerTitle: m, runtimeInfo: h, scrollViewportRef: g, drawerDraggable: _, drawerResizableWidth: v, drawerResizableHeight: y }) {
23743
- return /* @__PURE__ */ T(Y, {
23744
- style: {
23745
- position: "fixed",
23746
- top: 0,
23747
- right: 0,
23748
- bottom: 0,
23749
- width: e ? `${Math.max(280, 420 + v.offset)}px` : 0,
23750
- zIndex: n,
23751
- pointerEvents: e ? "auto" : "none",
23752
- ..._.style
23743
+ return /* @__PURE__ */ T(w, { children: /* @__PURE__ */ E(ub, {
23744
+ opened: e,
23745
+ onClose: t,
23746
+ size: Math.max(280, 420 + v.offset),
23747
+ zIndex: n,
23748
+ withinPortal: r,
23749
+ overlayProps: {
23750
+ backgroundOpacity: .45,
23751
+ blur: 6,
23752
+ style: { zIndex: Math.max(1, n - 1) }
23753
23753
  },
23754
- children: /* @__PURE__ */ E(ub, {
23755
- opened: e,
23756
- onClose: t,
23757
- size: Math.max(280, 420 + v.offset),
23758
- zIndex: n,
23759
- withinPortal: r,
23760
- styles: {
23761
- content: {
23762
- display: "flex",
23763
- flexDirection: "column",
23764
- backgroundColor: "var(--mantine-custom-color-surface-body-bg, #f8f9fa)"
23765
- },
23766
- header: {
23767
- padding: "16px",
23768
- borderBottom: "1px solid var(--mantine-color-gray-3)",
23769
- backgroundColor: "var(--mantine-custom-color-surface-default, #ffffff)"
23770
- },
23771
- body: {
23772
- padding: "16px",
23773
- backgroundColor: "var(--mantine-custom-color-surface-default, #ffffff)"
23774
- },
23775
- title: {
23776
- fontSize: "18px",
23777
- fontWeight: 700,
23778
- color: "var(--mantine-custom-color-text-default, #1f2937)"
23779
- }
23754
+ styles: {
23755
+ content: {
23756
+ display: "flex",
23757
+ flexDirection: "column",
23758
+ backgroundColor: "var(--mantine-custom-color-surface-body-bg, #f8f9fa)"
23780
23759
  },
23781
- title: /* @__PURE__ */ T(Y, { children: /* @__PURE__ */ E(kl, {
23782
- gap: "xs",
23783
- align: "center",
23784
- wrap: "nowrap",
23785
- children: [
23786
- m,
23787
- /* @__PURE__ */ T(Xd, {
23788
- size: "xs",
23789
- c: "dimmed",
23790
- children: h.customerId ? `#${h.customerId}` : "#-"
23791
- }),
23792
- /* @__PURE__ */ T(Xd, {
23793
- size: "xs",
23794
- c: h.hasCustomerToken ? "green" : "red",
23795
- children: h.hasCustomerToken ? "cust✓" : "cust✗"
23796
- }),
23797
- /* @__PURE__ */ T(Xd, {
23798
- size: "xs",
23799
- c: h.hasGenaiToken ? "green" : "red",
23800
- children: h.hasGenaiToken ? "genai✓" : "genai✗"
23801
- })
23802
- ]
23803
- }) }),
23760
+ header: {
23761
+ padding: "16px",
23762
+ borderBottom: "1px solid var(--mantine-color-gray-3)",
23763
+ backgroundColor: "var(--mantine-custom-color-surface-default, #ffffff)"
23764
+ },
23765
+ body: {
23766
+ padding: "16px",
23767
+ backgroundColor: "var(--mantine-custom-color-surface-default, #ffffff)"
23768
+ },
23769
+ title: {
23770
+ fontSize: "18px",
23771
+ fontWeight: 700,
23772
+ color: "var(--mantine-custom-color-text-default, #1f2937)"
23773
+ }
23774
+ },
23775
+ title: /* @__PURE__ */ T(Y, { children: /* @__PURE__ */ E(kl, {
23776
+ gap: "xs",
23777
+ align: "center",
23778
+ wrap: "nowrap",
23804
23779
  children: [
23805
- /* @__PURE__ */ E(ub.Body, { children: [c && /* @__PURE__ */ T(Xd, {
23780
+ m,
23781
+ /* @__PURE__ */ T(Xd, {
23806
23782
  size: "xs",
23807
- c: "red",
23808
- mb: "sm",
23809
- children: c
23810
- }), /* @__PURE__ */ T(uc, {
23811
- h: "100%",
23812
- type: "auto",
23813
- offsetScrollbars: !0,
23814
- viewportRef: g,
23815
- children: /* @__PURE__ */ E(zv, {
23816
- gap: "sm",
23817
- children: [i.map((e) => /* @__PURE__ */ T(Y, {
23818
- style: {
23819
- alignSelf: e.sentBy === "user" ? "flex-end" : "flex-start",
23820
- maxWidth: "90%",
23821
- padding: 12,
23822
- borderRadius: 12,
23823
- background: e.sentBy === "user" ? "var(--mantine-color-blue-light)" : "var(--mantine-color-gray-light)"
23824
- },
23825
- children: e.sentBy === "assistant" ? /* @__PURE__ */ T(VO, { content: e.text }) : /* @__PURE__ */ T(Xd, {
23826
- style: {
23827
- whiteSpace: "pre-wrap",
23828
- fontSize: "14px",
23829
- lineHeight: 1.5
23830
- },
23831
- children: e.text
23832
- })
23833
- }, e.id)), s && /* @__PURE__ */ T(Y, {
23783
+ c: "dimmed",
23784
+ children: h.customerId ? `#${h.customerId}` : "#-"
23785
+ }),
23786
+ /* @__PURE__ */ T(Xd, {
23787
+ size: "xs",
23788
+ c: h.hasCustomerToken ? "green" : "red",
23789
+ children: h.hasCustomerToken ? "cust✓" : "cust✗"
23790
+ }),
23791
+ /* @__PURE__ */ T(Xd, {
23792
+ size: "xs",
23793
+ c: h.hasGenaiToken ? "green" : "red",
23794
+ children: h.hasGenaiToken ? "genai✓" : "genai✗"
23795
+ })
23796
+ ]
23797
+ }) }),
23798
+ children: [
23799
+ /* @__PURE__ */ E(ub.Body, { children: [c && /* @__PURE__ */ T(Xd, {
23800
+ size: "xs",
23801
+ c: "red",
23802
+ mb: "sm",
23803
+ children: c
23804
+ }), /* @__PURE__ */ T(uc, {
23805
+ h: "100%",
23806
+ type: "auto",
23807
+ offsetScrollbars: !0,
23808
+ viewportRef: g,
23809
+ children: /* @__PURE__ */ E(zv, {
23810
+ gap: "sm",
23811
+ children: [i.map((e) => /* @__PURE__ */ T(Y, {
23812
+ style: {
23813
+ alignSelf: e.sentBy === "user" ? "flex-end" : "flex-start",
23814
+ maxWidth: "90%",
23815
+ padding: 12,
23816
+ borderRadius: 12,
23817
+ background: e.sentBy === "user" ? "var(--mantine-color-blue-light)" : "var(--mantine-color-gray-light)"
23818
+ },
23819
+ children: e.sentBy === "assistant" ? /* @__PURE__ */ T(VO, { content: e.text }) : /* @__PURE__ */ T(Xd, {
23834
23820
  style: {
23835
- alignSelf: "flex-start",
23836
- maxWidth: "90%",
23837
- padding: 12,
23838
- borderRadius: 12,
23839
- background: "var(--mantine-color-gray-light)"
23821
+ whiteSpace: "pre-wrap",
23822
+ fontSize: "14px",
23823
+ lineHeight: 1.5
23840
23824
  },
23841
- children: /* @__PURE__ */ T(HO, { messages: [
23842
- "Thinking...",
23843
- "Analyzing your request...",
23844
- "Searching for information...",
23845
- "Processing data...",
23846
- "Preparing response...",
23847
- "Almost there..."
23848
- ] })
23849
- })]
23850
- })
23851
- })] }),
23852
- /* @__PURE__ */ T(ub.Footer, { children: /* @__PURE__ */ T(Y, {
23853
- style: { position: "relative" },
23854
- children: /* @__PURE__ */ E(Y, {
23825
+ children: e.text
23826
+ })
23827
+ }, e.id)), s && /* @__PURE__ */ T(Y, {
23855
23828
  style: {
23856
- position: "relative",
23857
- width: "100%"
23829
+ alignSelf: "flex-start",
23830
+ maxWidth: "90%",
23831
+ padding: 12,
23832
+ borderRadius: 12,
23833
+ background: "var(--mantine-color-gray-light)"
23858
23834
  },
23859
- children: [/* @__PURE__ */ T(qO, {
23860
- composerText: a,
23861
- onComposerTextChange: o,
23862
- isLoading: s,
23835
+ children: /* @__PURE__ */ T(HO, { messages: [
23836
+ "Thinking...",
23837
+ "Analyzing your request...",
23838
+ "Searching for information...",
23839
+ "Processing data...",
23840
+ "Preparing response...",
23841
+ "Almost there..."
23842
+ ] })
23843
+ })]
23844
+ })
23845
+ })] }),
23846
+ /* @__PURE__ */ T(ub.Footer, { children: /* @__PURE__ */ T(Y, {
23847
+ style: { position: "relative" },
23848
+ children: /* @__PURE__ */ E(Y, {
23849
+ style: {
23850
+ position: "relative",
23851
+ width: "100%"
23852
+ },
23853
+ children: [/* @__PURE__ */ T(qO, {
23854
+ composerText: a,
23855
+ onComposerTextChange: o,
23856
+ isLoading: s,
23857
+ isListening: d,
23858
+ isVoiceSupported: f,
23859
+ onSubmit: u
23860
+ }), /* @__PURE__ */ E(kl, {
23861
+ gap: 4,
23862
+ align: "center",
23863
+ style: {
23864
+ position: "absolute",
23865
+ right: 8,
23866
+ top: "50%",
23867
+ transform: "translateY(-50%)"
23868
+ },
23869
+ children: [f && /* @__PURE__ */ T(KO, {
23863
23870
  isListening: d,
23864
- isVoiceSupported: f,
23865
- onSubmit: u
23866
- }), /* @__PURE__ */ E(kl, {
23867
- gap: 4,
23868
- align: "center",
23869
- style: {
23870
- position: "absolute",
23871
- right: 8,
23872
- top: "50%",
23873
- transform: "translateY(-50%)"
23874
- },
23875
- children: [f && /* @__PURE__ */ T(KO, {
23876
- isListening: d,
23877
- isLoading: s,
23878
- onToggleVoice: p
23879
- }), /* @__PURE__ */ T(yl, {
23880
- onClick: u,
23881
- disabled: !l || s,
23882
- size: 32,
23883
- radius: "xl",
23884
- variant: "filled",
23885
- children: /* @__PURE__ */ T(JO, {
23886
- width: "18",
23887
- height: "18"
23888
- })
23889
- })]
23871
+ isLoading: s,
23872
+ onToggleVoice: p
23873
+ }), /* @__PURE__ */ T(yl, {
23874
+ onClick: u,
23875
+ disabled: !l || s,
23876
+ size: 32,
23877
+ radius: "xl",
23878
+ variant: "filled",
23879
+ children: /* @__PURE__ */ T(JO, {
23880
+ width: "18",
23881
+ height: "18"
23882
+ })
23890
23883
  })]
23891
- })
23892
- }) }),
23893
- /* @__PURE__ */ T(Y, {
23894
- onPointerDown: y.handlePointerDown,
23895
- style: {
23896
- position: "absolute",
23897
- bottom: 0,
23898
- left: 0,
23899
- right: 0,
23900
- height: "8px",
23901
- ...y.style,
23902
- zIndex: 10
23903
- }
23904
- }),
23905
- /* @__PURE__ */ T(Y, {
23906
- onPointerDown: v.handlePointerDown,
23907
- style: {
23908
- position: "absolute",
23909
- top: 0,
23910
- bottom: 0,
23911
- left: 0,
23912
- width: "8px",
23913
- ...v.style,
23914
- zIndex: 10
23915
- }
23884
+ })]
23916
23885
  })
23917
- ]
23918
- })
23919
- });
23920
- }
23921
- //#endregion
23922
- //#region src/hooks/usePointerInteraction.ts
23923
- function XO() {
23924
- let e = v(null);
23925
- return {
23926
- startInteraction: u((t) => {
23927
- let { cursor: n, onMove: r, onEnd: i } = t;
23928
- document.body.style.cursor = n, document.body.style.userSelect = "none";
23929
- let a = () => {
23930
- document.body.style.cursor = "", document.body.style.userSelect = "", document.removeEventListener("pointermove", r), document.removeEventListener("pointerup", a), i?.(), e.current = null;
23931
- };
23932
- document.addEventListener("pointermove", r), document.addEventListener("pointerup", a), e.current = a;
23933
- }, []),
23934
- cleanup: u(() => {
23935
- e.current?.();
23936
- }, [])
23937
- };
23938
- }
23939
- //#endregion
23940
- //#region src/hooks/useDraggable.ts
23941
- var ZO = 4;
23942
- function QO(e = {}) {
23943
- let { skipSelector: t = "button, [role=\"button\"], a, input, textarea", onDragChange: n } = e, [r, i] = y({
23944
- x: 0,
23945
- y: 0
23946
- }), [a, o] = y(!1), s = v({
23947
- startX: 0,
23948
- startY: 0,
23949
- startOffset: {
23950
- x: 0,
23951
- y: 0
23952
- }
23953
- }), { startInteraction: c } = XO();
23954
- return {
23955
- offset: r,
23956
- isDragging: a,
23957
- handlePointerDown: u((e) => {
23958
- let a = e.target;
23959
- if (t && a?.closest(t)) return;
23960
- let l = e.clientX, u = e.clientY, d = { ...r }, f = 0, p = !1;
23961
- s.current = {
23962
- startX: l,
23963
- startY: u,
23964
- startOffset: d
23965
- }, c({
23966
- cursor: "grab",
23967
- onMove: (e) => {
23968
- let t = e.clientX - l, r = e.clientY - u;
23969
- if (f = Math.abs(t) + Math.abs(r), !p && f >= ZO && (p = !0, o(!0), document.body.style.cursor = "grabbing", document.body.style.userSelect = "none"), p) {
23970
- let e = {
23971
- x: d.x + t,
23972
- y: d.y + r
23973
- };
23974
- i(e), n?.(e);
23975
- }
23976
- },
23977
- onEnd: () => {
23978
- p && o(!1);
23886
+ }) }),
23887
+ /* @__PURE__ */ T(Y, {
23888
+ onPointerDown: y.handlePointerDown,
23889
+ style: {
23890
+ position: "absolute",
23891
+ bottom: 0,
23892
+ left: 0,
23893
+ right: 0,
23894
+ height: "8px",
23895
+ ...y.style,
23896
+ zIndex: 10
23979
23897
  }
23980
- });
23981
- }, [
23982
- r,
23983
- t,
23984
- n,
23985
- c
23986
- ]),
23987
- style: {
23988
- transform: `translate(${r.x}px, ${r.y}px)`,
23989
- cursor: a ? "grabbing" : "grab",
23990
- touchAction: "none"
23991
- }
23992
- };
23898
+ }),
23899
+ /* @__PURE__ */ T(Y, {
23900
+ onPointerDown: v.handlePointerDown,
23901
+ style: {
23902
+ position: "absolute",
23903
+ top: 0,
23904
+ bottom: 0,
23905
+ left: 0,
23906
+ width: "8px",
23907
+ ...v.style,
23908
+ zIndex: 10
23909
+ }
23910
+ })
23911
+ ]
23912
+ }) });
23993
23913
  }
23994
23914
  //#endregion
23995
23915
  //#region src/components/AgentChat/AgentChatFab.tsx
23996
- function $O({ onClick: e, zIndex: t, position: n }) {
23997
- let r = QO({ skipSelector: "" }), i = v(null), a = v(!1), o = (e) => {
23998
- i.current = {
23999
- x: e.clientX,
24000
- y: e.clientY
24001
- }, a.current = !1, r.handlePointerDown(e);
24002
- }, s = (e) => {
24003
- i.current && Math.abs(e.clientX - i.current.x) + Math.abs(e.clientY - i.current.y) >= 4 && (a.current = !0);
24004
- }, c = () => {
24005
- a.current || e();
24006
- };
23916
+ function XO({ onClick: e, zIndex: t, position: n }) {
24007
23917
  return /* @__PURE__ */ T("div", {
24008
- onPointerDown: o,
24009
- onPointerMove: s,
24010
23918
  style: {
24011
23919
  position: "fixed",
24012
23920
  bottom: `${n.bottom}px`,
24013
23921
  right: `${n.right}px`,
24014
- zIndex: t,
24015
- ...r.style
23922
+ zIndex: t
24016
23923
  },
24017
23924
  children: /* @__PURE__ */ T(_v, {
24018
23925
  label: "Open agent widget",
24019
23926
  position: "left",
24020
23927
  children: /* @__PURE__ */ T(yl, {
24021
- onClick: c,
23928
+ onClick: e,
24022
23929
  size: "lg",
24023
23930
  radius: 999,
24024
23931
  variant: "transparent",
@@ -24046,46 +23953,46 @@ function $O({ onClick: e, zIndex: t, position: n }) {
24046
23953
  }
24047
23954
  //#endregion
24048
23955
  //#region src/context/AgentChatRuntimeContext.tsx
24049
- var ek = o(null);
23956
+ var ZO = o(null);
24050
23957
  //#endregion
24051
23958
  //#region src/hooks/useAgentChatRuntime.ts
24052
- function tk() {
24053
- return d(ek);
23959
+ function QO() {
23960
+ return d(ZO);
24054
23961
  }
24055
23962
  //#endregion
24056
23963
  //#region src/context/AgentChatConfigContext.tsx
24057
- var nk = o(null);
23964
+ var $O = o(null);
24058
23965
  //#endregion
24059
23966
  //#region src/hooks/useAgentChatConfig.ts
24060
- function rk() {
24061
- return d(nk);
23967
+ function ek() {
23968
+ return d($O);
24062
23969
  }
24063
23970
  //#endregion
24064
23971
  //#region src/types/models/agent-chat-runtime.ts
24065
- function ik(e) {
23972
+ function tk(e) {
24066
23973
  return "customerId" in e ? e.customerId : e.getCustomerId();
24067
23974
  }
24068
- async function ak(e) {
23975
+ async function nk(e) {
24069
23976
  return "customerToken" in e ? e.customerToken : e.getCustomerToken();
24070
23977
  }
24071
- function ok(e) {
23978
+ function rk(e) {
24072
23979
  return "language" in e ? e.language ?? null : "getLanguage" in e && e.getLanguage ? e.getLanguage() : null;
24073
23980
  }
24074
23981
  //#endregion
24075
23982
  //#region src/types/models/agent-chat-config.ts
24076
- function sk(e) {
23983
+ function ik(e) {
24077
23984
  return "assistantId" in e ? e.assistantId : e.getAssistantId();
24078
23985
  }
24079
- function ck(e) {
23986
+ function ak(e) {
24080
23987
  return "assistants" in e ? e.assistants ?? [] : "getAssistants" in e ? e.getAssistants?.() ?? [] : [];
24081
23988
  }
24082
- function lk(e) {
24083
- let t = sk(e);
24084
- return t ? ck(e).find((e) => e.assistantId === t)?.initialMessage ?? null : null;
23989
+ function ok(e) {
23990
+ let t = ik(e);
23991
+ return t ? ak(e).find((e) => e.assistantId === t)?.initialMessage ?? null : null;
24085
23992
  }
24086
23993
  //#endregion
24087
23994
  //#region src/api/genai.mapper.ts
24088
- function uk(e) {
23995
+ function sk(e) {
24089
23996
  if (!e || typeof e != "object") return null;
24090
23997
  let t = e, n = t.message ?? (Array.isArray(t.messages) ? t.messages[0] : null);
24091
23998
  if (!n || typeof n != "object") return null;
@@ -24098,7 +24005,7 @@ function uk(e) {
24098
24005
  }
24099
24006
  //#endregion
24100
24007
  //#region node_modules/zustand/esm/vanilla.mjs
24101
- var dk = (e) => {
24008
+ var ck = (e) => {
24102
24009
  let t, n = /* @__PURE__ */ new Set(), r = (e, r) => {
24103
24010
  let i = typeof e == "function" ? e(t) : e;
24104
24011
  if (!Object.is(i, t)) {
@@ -24112,20 +24019,20 @@ var dk = (e) => {
24112
24019
  subscribe: (e) => (n.add(e), () => n.delete(e))
24113
24020
  }, o = t = e(r, i, a);
24114
24021
  return a;
24115
- }, fk = ((e) => e ? dk(e) : dk), pk = (e) => e;
24116
- function mk(e, n = pk) {
24022
+ }, lk = ((e) => e ? ck(e) : ck), uk = (e) => e;
24023
+ function dk(e, n = uk) {
24117
24024
  let r = t.useSyncExternalStore(e.subscribe, t.useCallback(() => n(e.getState()), [e, n]), t.useCallback(() => n(e.getInitialState()), [e, n]));
24118
24025
  return t.useDebugValue(r), r;
24119
24026
  }
24120
- var hk = (e) => {
24121
- let t = fk(e), n = (e) => mk(t, e);
24027
+ var fk = (e) => {
24028
+ let t = lk(e), n = (e) => dk(t, e);
24122
24029
  return Object.assign(n, t), n;
24123
- }, gk = ((e) => e ? hk(e) : hk), _k = { runtimeInfo: {
24030
+ }, pk = ((e) => e ? fk(e) : fk), mk = { runtimeInfo: {
24124
24031
  customerId: null,
24125
24032
  hasCustomerToken: !1,
24126
24033
  hasGenaiToken: !1
24127
- } }, vk = gk((e) => ({
24128
- ..._k,
24034
+ } }, hk = pk((e) => ({
24035
+ ...mk,
24129
24036
  setRuntimeInfo: (t) => e({ runtimeInfo: t }),
24130
24037
  updateCustomerId: (t) => e((e) => ({ runtimeInfo: {
24131
24038
  ...e.runtimeInfo,
@@ -24139,17 +24046,17 @@ var hk = (e) => {
24139
24046
  ...e.runtimeInfo,
24140
24047
  hasGenaiToken: t
24141
24048
  } })),
24142
- resetRuntimeInfo: () => e({ runtimeInfo: _k.runtimeInfo })
24143
- })), yk = "genai_access_token";
24144
- function bk() {
24145
- return typeof sessionStorage < "u" ? sessionStorage.getItem(yk) : null;
24049
+ resetRuntimeInfo: () => e({ runtimeInfo: mk.runtimeInfo })
24050
+ })), gk = "genai_access_token";
24051
+ function _k() {
24052
+ return typeof sessionStorage < "u" ? sessionStorage.getItem(gk) : null;
24146
24053
  }
24147
- function xk(e) {
24148
- typeof sessionStorage < "u" && sessionStorage.setItem(yk, e);
24054
+ function vk(e) {
24055
+ typeof sessionStorage < "u" && sessionStorage.setItem(gk, e);
24149
24056
  }
24150
24057
  //#endregion
24151
24058
  //#region node_modules/moo/moo.js
24152
- var Sk = /* @__PURE__ */ P(((e, t) => {
24059
+ var yk = /* @__PURE__ */ P(((e, t) => {
24153
24060
  (function(e, n) {
24154
24061
  typeof define == "function" && define.amd ? define([], n) : typeof t == "object" && t.exports ? t.exports = n() : e.moo = n();
24155
24062
  })(e, function() {
@@ -24466,12 +24373,12 @@ var Sk = /* @__PURE__ */ P(((e, t) => {
24466
24373
  keywords: x
24467
24374
  };
24468
24375
  });
24469
- })), Ck = /* @__PURE__ */ P(((e) => {
24376
+ })), bk = /* @__PURE__ */ P(((e) => {
24470
24377
  var t = e && e.__importDefault || function(e) {
24471
24378
  return e && e.__esModule ? e : { default: e };
24472
24379
  };
24473
24380
  Object.defineProperty(e, "__esModule", { value: !0 }), e.lexer = e.states = void 0;
24474
- var n = t(Sk());
24381
+ var n = t(yk());
24475
24382
  e.states = {
24476
24383
  body: {
24477
24384
  doubleapos: {
@@ -24540,9 +24447,9 @@ var Sk = /* @__PURE__ */ P(((e, t) => {
24540
24447
  }
24541
24448
  }
24542
24449
  }, e.lexer = n.default.states(e.states);
24543
- })), wk = (/* @__PURE__ */ P(((e) => {
24450
+ })), xk = (/* @__PURE__ */ P(((e) => {
24544
24451
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ParseError = void 0, e.parse = l;
24545
- var t = Ck(), n = (e) => ({
24452
+ var t = bk(), n = (e) => ({
24546
24453
  offset: e.offset,
24547
24454
  line: e.line,
24548
24455
  col: e.col,
@@ -24700,22 +24607,22 @@ var Sk = /* @__PURE__ */ P(((e, t) => {
24700
24607
  function l(e, t = {}) {
24701
24608
  return new c(e, t).parse();
24702
24609
  }
24703
- })))(), Tk = class extends Error {
24610
+ })))(), Sk = class extends Error {
24704
24611
  constructor(e, t, n) {
24705
24612
  super(e), this.token = t, this.type = n || "error";
24706
24613
  }
24707
- }, Ek = (e) => e < 4 ? "short" : e === 4 ? "long" : "narrow", Dk = (e) => e % 2 == 0 ? "2-digit" : "numeric";
24708
- function Ok(e, t) {
24614
+ }, Ck = (e) => e < 4 ? "short" : e === 4 ? "long" : "narrow", wk = (e) => e % 2 == 0 ? "2-digit" : "numeric";
24615
+ function Tk(e, t) {
24709
24616
  switch (e.char) {
24710
- case "y": return { year: Dk(e.width) };
24617
+ case "y": return { year: wk(e.width) };
24711
24618
  case "r": return {
24712
24619
  calendar: "gregory",
24713
24620
  year: "numeric"
24714
24621
  };
24715
- default: return t(`${e.desc} is not supported; falling back to year:numeric`, Tk.WARNING), { year: "numeric" };
24622
+ default: return t(`${e.desc} is not supported; falling back to year:numeric`, Sk.WARNING), { year: "numeric" };
24716
24623
  }
24717
24624
  }
24718
- function kk(e, t) {
24625
+ function Ek(e, t) {
24719
24626
  switch (e.width) {
24720
24627
  case 1: return "numeric";
24721
24628
  case 2: return "2-digit";
@@ -24727,17 +24634,17 @@ function kk(e, t) {
24727
24634
  return;
24728
24635
  }
24729
24636
  }
24730
- function Ak(e, t) {
24637
+ function Dk(e, t) {
24731
24638
  let { char: n, desc: r, width: i } = e;
24732
- if (n === "d") return Dk(i);
24639
+ if (n === "d") return wk(i);
24733
24640
  t(`${r} is not supported`);
24734
24641
  }
24735
- function jk(e, t) {
24642
+ function Ok(e, t) {
24736
24643
  let { char: n, desc: r, width: i } = e;
24737
- return (n === "c" || n === "e") && i < 3 && t(`Numeric value is not supported for ${r}; falling back to weekday:short`, Tk.WARNING), Ek(i);
24644
+ return (n === "c" || n === "e") && i < 3 && t(`Numeric value is not supported for ${r}; falling back to weekday:short`, Sk.WARNING), Ck(i);
24738
24645
  }
24739
- function Mk(e) {
24740
- let t = Dk(e.width), n;
24646
+ function kk(e) {
24647
+ let t = wk(e.width), n;
24741
24648
  switch (e.char) {
24742
24649
  case "h":
24743
24650
  n = "h12";
@@ -24757,7 +24664,7 @@ function Mk(e) {
24757
24664
  hourCycle: n
24758
24665
  } : { hour: t };
24759
24666
  }
24760
- function Nk(e, t) {
24667
+ function Ak(e, t) {
24761
24668
  let { char: n, desc: r, width: i } = e;
24762
24669
  switch (n) {
24763
24670
  case "v":
@@ -24772,41 +24679,41 @@ function Nk(e, t) {
24772
24679
  }
24773
24680
  return "short";
24774
24681
  }
24775
- function Pk(e, t) {
24682
+ function jk(e, t) {
24776
24683
  switch (e.field) {
24777
- case "era": return { era: Ek(e.width) };
24778
- case "year": return Ok(e, t);
24779
- case "month": return { month: kk(e, t) };
24780
- case "day": return { day: Ak(e, t) };
24781
- case "weekday": return { weekday: jk(e, t) };
24684
+ case "era": return { era: Ck(e.width) };
24685
+ case "year": return Tk(e, t);
24686
+ case "month": return { month: Ek(e, t) };
24687
+ case "day": return { day: Dk(e, t) };
24688
+ case "weekday": return { weekday: Ok(e, t) };
24782
24689
  case "period": return;
24783
- case "hour": return Mk(e);
24784
- case "min": return { minute: Dk(e.width) };
24785
- case "sec": return { second: Dk(e.width) };
24786
- case "tz": return { timeZoneName: Nk(e, t) };
24690
+ case "hour": return kk(e);
24691
+ case "min": return { minute: wk(e.width) };
24692
+ case "sec": return { second: wk(e.width) };
24693
+ case "tz": return { timeZoneName: Ak(e, t) };
24787
24694
  case "quarter":
24788
24695
  case "week":
24789
24696
  case "sec-frac":
24790
24697
  case "ms": t(`${e.desc} is not supported`);
24791
24698
  }
24792
24699
  }
24793
- function Fk(e, t, n = (e) => {
24700
+ function Mk(e, t, n = (e) => {
24794
24701
  throw e;
24795
24702
  }) {
24796
24703
  let r = { timeZone: t }, i = [];
24797
24704
  for (let t of e) {
24798
24705
  let { error: e, field: a, str: o } = t;
24799
24706
  if (e) {
24800
- let r = new Tk(e.message, t);
24707
+ let r = new Sk(e.message, t);
24801
24708
  r.stack = e.stack, n(r);
24802
24709
  }
24803
- o && n(new Tk(`Ignoring string part: ${o}`, t, Tk.WARNING)), a && (i.indexOf(a) === -1 ? i.push(a) : n(new Tk(`Duplicate ${a} token`, t)));
24804
- let s = Pk(t, (e, r) => n(new Tk(e, t, r)));
24710
+ o && n(new Sk(`Ignoring string part: ${o}`, t, Sk.WARNING)), a && (i.indexOf(a) === -1 ? i.push(a) : n(new Sk(`Duplicate ${a} token`, t)));
24711
+ let s = jk(t, (e, r) => n(new Sk(e, t, r)));
24805
24712
  s && Object.assign(r, s);
24806
24713
  }
24807
24714
  return r;
24808
24715
  }
24809
- var Ik = {
24716
+ var Nk = {
24810
24717
  G: {
24811
24718
  field: "era",
24812
24719
  desc: "Era"
@@ -24967,11 +24874,11 @@ var Ik = {
24967
24874
  field: "tz",
24968
24875
  desc: "Time Zone: ISO8601"
24969
24876
  }
24970
- }, Lk = (e) => e >= "A" && e <= "Z" || e >= "a" && e <= "z";
24971
- function Rk(e, t) {
24877
+ }, Pk = (e) => e >= "A" && e <= "Z" || e >= "a" && e <= "z";
24878
+ function Fk(e, t) {
24972
24879
  let n = e[t], r = 1;
24973
24880
  for (; e[++t] === n;) ++r;
24974
- let i = Ik[n];
24881
+ let i = Nk[n];
24975
24882
  if (!i) {
24976
24883
  let e = `The letter ${n} is not a valid field identifier`;
24977
24884
  return {
@@ -24987,7 +24894,7 @@ function Rk(e, t) {
24987
24894
  width: r
24988
24895
  };
24989
24896
  }
24990
- function zk(e, t) {
24897
+ function Ik(e, t) {
24991
24898
  let n = e[++t], r = 2;
24992
24899
  if (n === "'") return {
24993
24900
  char: "'",
@@ -25015,15 +24922,15 @@ function zk(e, t) {
25015
24922
  n += i;
25016
24923
  }
25017
24924
  }
25018
- function Bk(e, t) {
24925
+ function Lk(e, t) {
25019
24926
  let n = e[t];
25020
24927
  if (!n) return null;
25021
- if (Lk(n)) return Rk(e, t);
25022
- if (n === "'") return zk(e, t);
24928
+ if (Pk(n)) return Fk(e, t);
24929
+ if (n === "'") return Ik(e, t);
25023
24930
  let r = n, i = 1;
25024
24931
  for (;;) {
25025
24932
  let a = e[++t];
25026
- if (!a || Lk(a) || a === "'") return {
24933
+ if (!a || Pk(a) || a === "'") return {
25027
24934
  char: n,
25028
24935
  str: r,
25029
24936
  width: i
@@ -25031,15 +24938,15 @@ function Bk(e, t) {
25031
24938
  r += a, i += 1;
25032
24939
  }
25033
24940
  }
25034
- function Vk(e) {
24941
+ function Rk(e) {
25035
24942
  let t = [], n = 0;
25036
24943
  for (;;) {
25037
- let r = Bk(e, n);
24944
+ let r = Lk(e, n);
25038
24945
  if (!r) return t;
25039
24946
  t.push(r), n += r.width;
25040
24947
  }
25041
24948
  }
25042
- function Hk(e, t) {
24949
+ function zk(e, t) {
25043
24950
  return e.filter((e) => e.type !== "content").length ? e.map((e) => {
25044
24951
  if (e.type === "content") return t(e.value);
25045
24952
  if (e.type === "octothorpe") return "#";
@@ -25047,7 +24954,7 @@ function Hk(e, t) {
25047
24954
  if (e.type === "function") {
25048
24955
  let t = e?.param?.[0];
25049
24956
  if (e.key === "date" && t) {
25050
- let n = Uk(t.value.trim(), (e) => {
24957
+ let n = Bk(t.value.trim(), (e) => {
25051
24958
  throw Error(`Unable to compile date expression: ${e.message}`);
25052
24959
  });
25053
24960
  return [
@@ -25065,7 +24972,7 @@ function Hk(e, t) {
25065
24972
  let n = e.pluralOffset, r = {};
25066
24973
  return e.cases.forEach(({ key: e, tokens: n }) => {
25067
24974
  let i = e[0] === "=" ? e.slice(1) : e;
25068
- r[i] = Hk(n, t);
24975
+ r[i] = zk(n, t);
25069
24976
  }), [
25070
24977
  e.arg,
25071
24978
  e.type,
@@ -25076,15 +24983,15 @@ function Hk(e, t) {
25076
24983
  ];
25077
24984
  }) : e.map((e) => t(e.value));
25078
24985
  }
25079
- function Uk(e, t) {
25080
- return /^::/.test(e) ? Fk(Vk(e.substring(2)), void 0, t) : e;
24986
+ function Bk(e, t) {
24987
+ return /^::/.test(e) ? Mk(Rk(e.substring(2)), void 0, t) : e;
25081
24988
  }
25082
- function Wk(e, t = (e) => e) {
25083
- return Hk((0, wk.parse)(e), t);
24989
+ function Vk(e, t = (e) => e) {
24990
+ return zk((0, xk.parse)(e), t);
25084
24991
  }
25085
- function Gk(e, t = (e) => e) {
24992
+ function Hk(e, t = (e) => e) {
25086
24993
  try {
25087
- return Wk(e, t);
24994
+ return Vk(e, t);
25088
24995
  } catch (t) {
25089
24996
  return console.error(`${t.message}
25090
24997
 
@@ -25093,12 +25000,12 @@ Message: ${e}`), [e];
25093
25000
  }
25094
25001
  //#endregion
25095
25002
  //#region node_modules/@lingui/core/dist/index.mjs
25096
- var Kk = (e) => typeof e == "string", qk = (e) => typeof e == "function", Jk = /* @__PURE__ */ new Map(), Yk = "en";
25097
- function Xk(e) {
25098
- return [...Array.isArray(e) ? e : [e], Yk];
25003
+ var Uk = (e) => typeof e == "string", Wk = (e) => typeof e == "function", Gk = /* @__PURE__ */ new Map(), Kk = "en";
25004
+ function qk(e) {
25005
+ return [...Array.isArray(e) ? e : [e], Kk];
25099
25006
  }
25100
- function Zk(e, t, n) {
25101
- let r = Xk(e);
25007
+ function Jk(e, t, n) {
25008
+ let r = qk(e);
25102
25009
  n ||= "default";
25103
25010
  let i;
25104
25011
  if (typeof n == "string") switch (i = {
@@ -25115,9 +25022,9 @@ function Zk(e, t, n) {
25115
25022
  break;
25116
25023
  }
25117
25024
  else i = n;
25118
- return tA(() => nA("date", r, n), () => new Intl.DateTimeFormat(r, i)).format(Kk(t) ? new Date(t) : t);
25025
+ return Qk(() => $k("date", r, n), () => new Intl.DateTimeFormat(r, i)).format(Uk(t) ? new Date(t) : t);
25119
25026
  }
25120
- function Qk(e, t, n) {
25027
+ function Yk(e, t, n) {
25121
25028
  let r;
25122
25029
  if (n ||= "default", typeof n == "string") switch (r = {
25123
25030
  second: "numeric",
@@ -25131,24 +25038,24 @@ function Qk(e, t, n) {
25131
25038
  case "short": delete r.second;
25132
25039
  }
25133
25040
  else r = n;
25134
- return Zk(e, t, r);
25041
+ return Jk(e, t, r);
25135
25042
  }
25136
- function $k(e, t, n) {
25137
- let r = Xk(e);
25138
- return tA(() => nA("number", r, n), () => new Intl.NumberFormat(r, n)).format(t);
25043
+ function Xk(e, t, n) {
25044
+ let r = qk(e);
25045
+ return Qk(() => $k("number", r, n), () => new Intl.NumberFormat(r, n)).format(t);
25139
25046
  }
25140
- function eA(e, t, n, { offset: r = 0, ...i }) {
25141
- let a = Xk(e), o = t ? tA(() => nA("plural-ordinal", a), () => new Intl.PluralRules(a, { type: "ordinal" })) : tA(() => nA("plural-cardinal", a), () => new Intl.PluralRules(a, { type: "cardinal" }));
25047
+ function Zk(e, t, n, { offset: r = 0, ...i }) {
25048
+ let a = qk(e), o = t ? Qk(() => $k("plural-ordinal", a), () => new Intl.PluralRules(a, { type: "ordinal" })) : Qk(() => $k("plural-cardinal", a), () => new Intl.PluralRules(a, { type: "cardinal" }));
25142
25049
  return i[n] ?? i[o.select(n - r)] ?? i.other;
25143
25050
  }
25144
- function tA(e, t) {
25145
- let n = e(), r = Jk.get(n);
25146
- return r || (r = t(), Jk.set(n, r)), r;
25051
+ function Qk(e, t) {
25052
+ let n = e(), r = Gk.get(n);
25053
+ return r || (r = t(), Gk.set(n, r)), r;
25147
25054
  }
25148
- function nA(e, t, n) {
25055
+ function $k(e, t, n) {
25149
25056
  return `${e}-${t.join("-")}-${JSON.stringify(n)}`;
25150
25057
  }
25151
- var rA = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/, iA = (e) => e.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g, (e, t, n) => {
25058
+ var eA = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/, tA = (e) => e.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g, (e, t, n) => {
25152
25059
  if (t) {
25153
25060
  let e = parseInt(t, 16);
25154
25061
  return String.fromCharCode(e);
@@ -25156,31 +25063,31 @@ var rA = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/, iA = (e) => e.replace(/\\u([a-fA
25156
25063
  let e = parseInt(n, 16);
25157
25064
  return String.fromCharCode(e);
25158
25065
  }
25159
- }), aA = "%__lingui_octothorpe__%", oA = (e, t, n = {}) => {
25066
+ }), nA = "%__lingui_octothorpe__%", rA = (e, t, n = {}) => {
25160
25067
  let r = t || e, i = (e) => typeof e == "object" ? e : n[e], a = (e, t) => {
25161
- let a = $k(r, e, Object.keys(n).length ? i("number") : void 0);
25162
- return t.replace(new RegExp(aA, "g"), a);
25068
+ let a = Xk(r, e, Object.keys(n).length ? i("number") : void 0);
25069
+ return t.replace(new RegExp(nA, "g"), a);
25163
25070
  };
25164
25071
  return {
25165
25072
  plural: (e, t) => {
25166
- let { offset: n = 0 } = t, i = eA(r, !1, e, t);
25073
+ let { offset: n = 0 } = t, i = Zk(r, !1, e, t);
25167
25074
  return a(e - n, i);
25168
25075
  },
25169
25076
  selectordinal: (e, t) => {
25170
- let { offset: n = 0 } = t, i = eA(r, !0, e, t);
25077
+ let { offset: n = 0 } = t, i = Zk(r, !0, e, t);
25171
25078
  return a(e - n, i);
25172
25079
  },
25173
- select: sA,
25174
- number: (e, t) => $k(r, e, i(t) || { style: t }),
25175
- date: (e, t) => Zk(r, e, i(t) || t),
25176
- time: (e, t) => Qk(r, e, i(t) || t)
25080
+ select: iA,
25081
+ number: (e, t) => Xk(r, e, i(t) || { style: t }),
25082
+ date: (e, t) => Jk(r, e, i(t) || t),
25083
+ time: (e, t) => Yk(r, e, i(t) || t)
25177
25084
  };
25178
- }, sA = (e, t) => t[e] ?? t.other;
25179
- function cA(e, t, n) {
25085
+ }, iA = (e, t) => t[e] ?? t.other;
25086
+ function aA(e, t, n) {
25180
25087
  return (r = {}, i) => {
25181
- let a = oA(t, n, i), o = (e, t = !1) => Array.isArray(e) ? e.reduce((e, n) => {
25182
- if (n === "#" && t) return e + aA;
25183
- if (Kk(n)) return e + n;
25088
+ let a = rA(t, n, i), o = (e, t = !1) => Array.isArray(e) ? e.reduce((e, n) => {
25089
+ if (n === "#" && t) return e + nA;
25090
+ if (Uk(n)) return e + n;
25184
25091
  let [i, s, c] = n, l = {};
25185
25092
  s === "plural" || s === "selectordinal" || s === "select" ? Object.entries(c).forEach(([e, t]) => {
25186
25093
  l[e] = o(t, s === "plural" || s === "selectordinal");
@@ -25192,17 +25099,17 @@ function cA(e, t, n) {
25192
25099
  } else u = r[i];
25193
25100
  return u == null ? e : e + u;
25194
25101
  }, "") : e, s = o(e);
25195
- return Kk(s) && rA.test(s) ? iA(s) : Kk(s) ? s : s ? String(s) : "";
25102
+ return Uk(s) && eA.test(s) ? tA(s) : Uk(s) ? s : s ? String(s) : "";
25196
25103
  };
25197
25104
  }
25198
- var lA = Object.defineProperty, uA = (e, t, n) => t in e ? lA(e, t, {
25105
+ var oA = Object.defineProperty, sA = (e, t, n) => t in e ? oA(e, t, {
25199
25106
  enumerable: !0,
25200
25107
  configurable: !0,
25201
25108
  writable: !0,
25202
25109
  value: n
25203
- }) : e[t] = n, dA = (e, t, n) => (uA(e, typeof t == "symbol" ? t : t + "", n), n), fA = class {
25110
+ }) : e[t] = n, cA = (e, t, n) => (sA(e, typeof t == "symbol" ? t : t + "", n), n), lA = class {
25204
25111
  constructor() {
25205
- dA(this, "_events", {});
25112
+ cA(this, "_events", {});
25206
25113
  }
25207
25114
  on(e, t) {
25208
25115
  var n;
@@ -25222,14 +25129,14 @@ var lA = Object.defineProperty, uA = (e, t, n) => t in e ? lA(e, t, {
25222
25129
  let t = this._events[e];
25223
25130
  return Array.isArray(t) ? t : !1;
25224
25131
  }
25225
- }, pA = Object.defineProperty, mA = (e, t, n) => t in e ? pA(e, t, {
25132
+ }, uA = Object.defineProperty, dA = (e, t, n) => t in e ? uA(e, t, {
25226
25133
  enumerable: !0,
25227
25134
  configurable: !0,
25228
25135
  writable: !0,
25229
25136
  value: n
25230
- }) : e[t] = n, hA = (e, t, n) => (mA(e, typeof t == "symbol" ? t : t + "", n), n), gA = class extends fA {
25137
+ }) : e[t] = n, fA = (e, t, n) => (dA(e, typeof t == "symbol" ? t : t + "", n), n), pA = class extends lA {
25231
25138
  constructor(e) {
25232
- super(), hA(this, "_locale", ""), hA(this, "_locales"), hA(this, "_localeData", {}), hA(this, "_messages", {}), hA(this, "_missing"), hA(this, "_messageCompiler"), hA(this, "t", this._.bind(this)), process.env.NODE_ENV !== "production" && this.setMessagesCompiler(Gk), e.missing != null && (this._missing = e.missing), e.messages != null && this.load(e.messages), e.localeData != null && this.loadLocaleData(e.localeData), (typeof e.locale == "string" || e.locales) && this.activate(e.locale ?? Yk, e.locales);
25139
+ super(), fA(this, "_locale", ""), fA(this, "_locales"), fA(this, "_localeData", {}), fA(this, "_messages", {}), fA(this, "_missing"), fA(this, "_messageCompiler"), fA(this, "t", this._.bind(this)), process.env.NODE_ENV !== "production" && this.setMessagesCompiler(Hk), e.missing != null && (this._missing = e.missing), e.messages != null && this.load(e.messages), e.localeData != null && this.loadLocaleData(e.localeData), (typeof e.locale == "string" || e.locales) && this.activate(e.locale ?? Kk, e.locales);
25233
25140
  }
25234
25141
  get locale() {
25235
25142
  return this._locale;
@@ -25269,15 +25176,15 @@ var lA = Object.defineProperty, uA = (e, t, n) => t in e ? lA(e, t, {
25269
25176
  _(e, t, n) {
25270
25177
  if (!this.locale) throw Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");
25271
25178
  let r = n?.message;
25272
- e ||= "", Kk(e) || (t = e.values || t, r = e.message, e = e.id);
25179
+ e ||= "", Uk(e) || (t = e.values || t, r = e.message, e = e.id);
25273
25180
  let i = this.messages[e], a = i === void 0, o = this._missing;
25274
- if (o && a) return qk(o) ? o(this._locale, e) : o;
25181
+ if (o && a) return Wk(o) ? o(this._locale, e) : o;
25275
25182
  a && this.emit("missing", {
25276
25183
  id: e,
25277
25184
  locale: this._locale
25278
25185
  });
25279
25186
  let s = i || r || e;
25280
- return Kk(s) && (this._messageCompiler ? s = this._messageCompiler(s) : console.warn(`Uncompiled message detected! Message:
25187
+ return Uk(s) && (this._messageCompiler ? s = this._messageCompiler(s) : console.warn(`Uncompiled message detected! Message:
25281
25188
 
25282
25189
  > ${s}
25283
25190
 
@@ -25285,22 +25192,22 @@ That means you use raw catalog or your catalog doesn't have a translation for th
25285
25192
  ICU features such as interpolation and plurals will not work properly for that message.
25286
25193
 
25287
25194
  Please compile your catalog first.
25288
- `)), Kk(s) && rA.test(s) ? iA(s) : Kk(s) ? s : cA(s, this._locale, this._locales)(t, n?.formats);
25195
+ `)), Uk(s) && eA.test(s) ? tA(s) : Uk(s) ? s : aA(s, this._locale, this._locales)(t, n?.formats);
25289
25196
  }
25290
25197
  date(e, t) {
25291
- return Zk(this._locales || this._locale, e, t);
25198
+ return Jk(this._locales || this._locale, e, t);
25292
25199
  }
25293
25200
  number(e, t) {
25294
- return $k(this._locales || this._locale, e, t);
25201
+ return Xk(this._locales || this._locale, e, t);
25295
25202
  }
25296
25203
  };
25297
- function _A(e = {}) {
25298
- return new gA(e);
25204
+ function mA(e = {}) {
25205
+ return new pA(e);
25299
25206
  }
25300
- var vA = _A();
25207
+ var hA = mA();
25301
25208
  //#endregion
25302
25209
  //#region node_modules/@mantine/store/esm/store.mjs
25303
- function yA(e) {
25210
+ function gA(e) {
25304
25211
  let t = e, n = !1, r = /* @__PURE__ */ new Set();
25305
25212
  return {
25306
25213
  getState() {
@@ -25322,7 +25229,7 @@ function yA(e) {
25322
25229
  }
25323
25230
  //#endregion
25324
25231
  //#region node_modules/@mantine/notifications/esm/notifications.store.mjs
25325
- function bA(e, t, n) {
25232
+ function _A(e, t, n) {
25326
25233
  let r = [], i = [], a = {};
25327
25234
  for (let o of e) {
25328
25235
  let e = o.position || t;
@@ -25333,14 +25240,14 @@ function bA(e, t, n) {
25333
25240
  queue: r
25334
25241
  };
25335
25242
  }
25336
- var xA = yA({
25243
+ var vA = gA({
25337
25244
  notifications: [],
25338
25245
  queue: [],
25339
25246
  defaultPosition: "bottom-right",
25340
25247
  limit: 5
25341
25248
  });
25342
- function SA(e, t) {
25343
- let n = e.getState(), r = bA(t([...n.notifications, ...n.queue]), n.defaultPosition, n.limit);
25249
+ function yA(e, t) {
25250
+ let n = e.getState(), r = _A(t([...n.notifications, ...n.queue]), n.defaultPosition, n.limit);
25344
25251
  e.setState({
25345
25252
  notifications: r.notifications,
25346
25253
  queue: r.queue,
@@ -25348,16 +25255,16 @@ function SA(e, t) {
25348
25255
  defaultPosition: n.defaultPosition
25349
25256
  });
25350
25257
  }
25351
- function CA(e, t = xA) {
25258
+ function bA(e, t = vA) {
25352
25259
  let n = e.id || Oe();
25353
- return SA(t, (t) => e.id && t.some((t) => t.id === e.id) ? t : [...t, {
25260
+ return yA(t, (t) => e.id && t.some((t) => t.id === e.id) ? t : [...t, {
25354
25261
  ...e,
25355
25262
  id: n
25356
25263
  }]), n;
25357
25264
  }
25358
25265
  //#endregion
25359
25266
  //#region src/components/VNotification/notification-variant-icons.tsx
25360
- var wA = {
25267
+ var xA = {
25361
25268
  danger: /* @__PURE__ */ T(FO, {}),
25362
25269
  info: /* @__PURE__ */ T(MO, {}),
25363
25270
  success: /* @__PURE__ */ T(NO, {}),
@@ -25365,43 +25272,43 @@ var wA = {
25365
25272
  };
25366
25273
  //#endregion
25367
25274
  //#region src/components/VNotification/showNotification.tsx
25368
- function TA(e, t) {
25369
- let n = wA[e];
25370
- CA({
25275
+ function SA(e, t) {
25276
+ let n = xA[e];
25277
+ bA({
25371
25278
  ...t,
25372
25279
  variant: e,
25373
25280
  icon: n
25374
25281
  });
25375
25282
  }
25376
- function EA(e) {
25377
- TA("danger", {
25378
- title: vA._({ id: "SlfejT" }),
25283
+ function CA(e) {
25284
+ SA("danger", {
25285
+ title: hA._({ id: "SlfejT" }),
25379
25286
  ...e
25380
25287
  });
25381
25288
  }
25382
25289
  //#endregion
25383
25290
  //#region src/constant/error-messages.constant.ts
25384
- function DA() {
25385
- return vA._({ id: "Qlh+W2" });
25291
+ function wA() {
25292
+ return hA._({ id: "Qlh+W2" });
25386
25293
  }
25387
- function OA(e, t) {
25294
+ function TA(e, t) {
25388
25295
  let {} = t ?? {};
25389
25296
  return {}[e];
25390
25297
  }
25391
- function kA(e) {
25298
+ function EA(e) {
25392
25299
  return e ? {
25393
- 401: vA._({ id: "9cOLBO" }),
25394
- 403: vA._({ id: "qriaXz" }),
25395
- 404: vA._({ id: "373i3G" }),
25396
- 500: vA._({ id: "lkE00/" }),
25397
- 502: vA._({ id: "9dPdtH" }),
25398
- 503: vA._({ id: "Vw36Gt" }),
25399
- 504: vA._({ id: "3R0fAs" })
25300
+ 401: hA._({ id: "9cOLBO" }),
25301
+ 403: hA._({ id: "qriaXz" }),
25302
+ 404: hA._({ id: "373i3G" }),
25303
+ 500: hA._({ id: "lkE00/" }),
25304
+ 502: hA._({ id: "9dPdtH" }),
25305
+ 503: hA._({ id: "Vw36Gt" }),
25306
+ 504: hA._({ id: "3R0fAs" })
25400
25307
  }[e] : "";
25401
25308
  }
25402
25309
  //#endregion
25403
25310
  //#region src/utils/local-storage.utils.ts
25404
- function AA(e, t = null) {
25311
+ function DA(e, t = null) {
25405
25312
  let n = localStorage.getItem(e);
25406
25313
  if (n === null) return t;
25407
25314
  try {
@@ -25413,33 +25320,33 @@ function AA(e, t = null) {
25413
25320
  }
25414
25321
  //#endregion
25415
25322
  //#region src/utils/debug.utils.ts
25416
- function jA() {
25417
- return AA(Ky.DEBUG, !1);
25323
+ function OA() {
25324
+ return DA(Ky.DEBUG, !1);
25418
25325
  }
25419
- function MA() {
25420
- return jA() ? AA(Ky.SHOW_HTTP_ERROR_DEBUG_TOASTER, !1) : !1;
25326
+ function kA() {
25327
+ return OA() ? DA(Ky.SHOW_HTTP_ERROR_DEBUG_TOASTER, !1) : !1;
25421
25328
  }
25422
25329
  //#endregion
25423
25330
  //#region src/utils/error.utils.tsx
25424
- function NA(e) {
25331
+ function AA(e) {
25425
25332
  return e?.operationResultCode !== void 0;
25426
25333
  }
25427
- function PA(e) {
25334
+ function jA(e) {
25428
25335
  return e?.error !== void 0;
25429
25336
  }
25430
- function FA(e) {
25337
+ function MA(e) {
25431
25338
  let t = e.response?.headers;
25432
25339
  if (!t) return !1;
25433
25340
  let n = "application/problem+json", r = "Content-Type";
25434
25341
  return typeof t.get == "function" ? t.get(r) === n : t[r] === n;
25435
25342
  }
25436
- function IA(e) {
25437
- return NA(e) ? e.description : PA(e) ? e.error : e?.message || e?.errorCode || DA();
25343
+ function NA(e) {
25344
+ return AA(e) ? e.description : jA(e) ? e.error : e?.message || e?.errorCode || wA();
25438
25345
  }
25439
- function LA(e) {
25440
- return e.code ? OA(e.code) || DA() : "";
25346
+ function PA(e) {
25347
+ return e.code ? TA(e.code) || wA() : "";
25441
25348
  }
25442
- function RA(e) {
25349
+ function FA(e) {
25443
25350
  return {
25444
25351
  url: e.config?.url,
25445
25352
  method: e.config?.method?.toUpperCase(),
@@ -25447,26 +25354,26 @@ function RA(e) {
25447
25354
  response: e.response?.data
25448
25355
  };
25449
25356
  }
25450
- function zA(e) {
25357
+ function IA(e) {
25451
25358
  try {
25452
25359
  return JSON.stringify(e, null, 2);
25453
25360
  } catch {
25454
25361
  return String(e);
25455
25362
  }
25456
25363
  }
25457
- function BA({ url: e, method: t, status: n, response: r }) {
25364
+ function LA({ url: e, method: t, status: n, response: r }) {
25458
25365
  let i = r != null && Object.keys(r).length > 0;
25459
25366
  return /* @__PURE__ */ E(zv, { children: [[
25460
25367
  {
25461
- label: vA._({ id: "IagCbF" }),
25368
+ label: hA._({ id: "IagCbF" }),
25462
25369
  value: e
25463
25370
  },
25464
25371
  {
25465
- label: vA._({ id: "fiPesM" }),
25372
+ label: hA._({ id: "fiPesM" }),
25466
25373
  value: t
25467
25374
  },
25468
25375
  {
25469
- label: vA._({ id: "uAQUqI" }),
25376
+ label: hA._({ id: "uAQUqI" }),
25470
25377
  value: n
25471
25378
  }
25472
25379
  ].filter((e) => !!e.value).map(({ label: e, value: t }, n) => /* @__PURE__ */ E(kl, {
@@ -25482,36 +25389,36 @@ function BA({ url: e, method: t, status: n, response: r }) {
25482
25389
  }, n)), i && /* @__PURE__ */ T(Lp, {
25483
25390
  block: !0,
25484
25391
  lh: 1.2,
25485
- children: zA(r)
25392
+ children: IA(r)
25486
25393
  })] });
25487
25394
  }
25488
- function VA(e) {
25395
+ function RA(e) {
25489
25396
  let t = e.response?.data;
25490
- return NA(t) ? t.operationResultCode : PA(t) ? t.error : t?.errorCode || t?.code || t?.message || "";
25397
+ return AA(t) ? t.operationResultCode : jA(t) ? t.error : t?.errorCode || t?.code || t?.message || "";
25491
25398
  }
25492
- function HA(e) {
25399
+ function zA(e) {
25493
25400
  return e.response?.data?.status || e.response?.status || e.status;
25494
25401
  }
25495
- function UA(e) {
25496
- let t = e.response?.data, n = VA(e);
25402
+ function BA(e) {
25403
+ let t = e.response?.data, n = RA(e);
25497
25404
  if (n) {
25498
- let e = OA(n);
25405
+ let e = TA(n);
25499
25406
  if (e) return e;
25500
25407
  }
25501
- return IA(t);
25408
+ return NA(t);
25502
25409
  }
25503
- function WA(e) {
25410
+ function VA(e) {
25504
25411
  let t = e.response?.data;
25505
- return LA(t) || kA(HA(e));
25412
+ return PA(t) || EA(zA(e));
25506
25413
  }
25507
- function GA(e) {
25508
- return e.response?.data ? FA(e) ? WA(e) : UA(e) : e.message;
25414
+ function HA(e) {
25415
+ return e.response?.data ? MA(e) ? VA(e) : BA(e) : e.message;
25509
25416
  }
25510
- function KA(e) {
25417
+ function UA(e) {
25511
25418
  return e.response?.data?.errorId;
25512
25419
  }
25513
- function qA(e) {
25514
- let t = GA(e), n = FA(e) ? KA(e) : void 0;
25420
+ function WA(e) {
25421
+ let t = HA(e), n = MA(e) ? UA(e) : void 0;
25515
25422
  return n ? /* @__PURE__ */ E(zv, {
25516
25423
  gap: 8,
25517
25424
  children: [/* @__PURE__ */ T(Xd, {
@@ -25522,34 +25429,34 @@ function qA(e) {
25522
25429
  c: "var(--mantine-custom-color-danger-dark)",
25523
25430
  size: "sm",
25524
25431
  children: [
25525
- vA._({ id: "jf+o1U" }),
25432
+ hA._({ id: "jf+o1U" }),
25526
25433
  ": ",
25527
25434
  n
25528
25435
  ]
25529
25436
  })]
25530
25437
  }) : t;
25531
25438
  }
25532
- function JA(e) {
25533
- if (!e) return DA();
25534
- if (MA()) {
25535
- let t = RA(e);
25536
- return Object.values(t).some(Boolean) ? /* @__PURE__ */ T(zv, { children: BA(t) }) : qA(e);
25439
+ function GA(e) {
25440
+ if (!e) return wA();
25441
+ if (kA()) {
25442
+ let t = FA(e);
25443
+ return Object.values(t).some(Boolean) ? /* @__PURE__ */ T(zv, { children: LA(t) }) : WA(e);
25537
25444
  }
25538
- return qA(e);
25445
+ return WA(e);
25539
25446
  }
25540
- function YA() {
25541
- return MA() ? vA._({ id: "J5ej6L" }) : vA._({ id: "SlfejT" });
25447
+ function KA() {
25448
+ return kA() ? hA._({ id: "J5ej6L" }) : hA._({ id: "SlfejT" });
25542
25449
  }
25543
- function XA(e) {
25544
- EA({
25545
- title: YA(),
25546
- message: JA(e),
25547
- autoClose: MA() ? !1 : 5e3
25450
+ function qA(e) {
25451
+ CA({
25452
+ title: KA(),
25453
+ message: GA(e),
25454
+ autoClose: kA() ? !1 : 5e3
25548
25455
  });
25549
25456
  }
25550
25457
  //#endregion
25551
25458
  //#region node_modules/@tanstack/query-core/build/modern/subscribable.js
25552
- var ZA = class {
25459
+ var JA = class {
25553
25460
  constructor() {
25554
25461
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
25555
25462
  }
@@ -25563,7 +25470,7 @@ var ZA = class {
25563
25470
  }
25564
25471
  onSubscribe() {}
25565
25472
  onUnsubscribe() {}
25566
- }, QA = new class extends ZA {
25473
+ }, YA = new class extends JA {
25567
25474
  #e;
25568
25475
  #t;
25569
25476
  #n;
@@ -25600,13 +25507,13 @@ var ZA = class {
25600
25507
  isFocused() {
25601
25508
  return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
25602
25509
  }
25603
- }(), $A = {
25510
+ }(), XA = {
25604
25511
  setTimeout: (e, t) => setTimeout(e, t),
25605
25512
  clearTimeout: (e) => clearTimeout(e),
25606
25513
  setInterval: (e, t) => setInterval(e, t),
25607
25514
  clearInterval: (e) => clearInterval(e)
25608
- }, ej = new class {
25609
- #e = $A;
25515
+ }, ZA = new class {
25516
+ #e = XA;
25610
25517
  #t = !1;
25611
25518
  setTimeoutProvider(e) {
25612
25519
  process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
@@ -25627,34 +25534,34 @@ var ZA = class {
25627
25534
  this.#e.clearInterval(e);
25628
25535
  }
25629
25536
  }();
25630
- function tj(e) {
25537
+ function QA(e) {
25631
25538
  setTimeout(e, 0);
25632
25539
  }
25633
25540
  //#endregion
25634
25541
  //#region node_modules/@tanstack/query-core/build/modern/utils.js
25635
- var nj = typeof window > "u" || "Deno" in globalThis;
25636
- function rj() {}
25637
- function ij(e, t) {
25542
+ var $A = typeof window > "u" || "Deno" in globalThis;
25543
+ function ej() {}
25544
+ function tj(e, t) {
25638
25545
  return typeof e == "function" ? e(t) : e;
25639
25546
  }
25640
- function aj(e) {
25547
+ function nj(e) {
25641
25548
  return typeof e == "number" && e >= 0 && e !== Infinity;
25642
25549
  }
25643
- function oj(e, t) {
25550
+ function rj(e, t) {
25644
25551
  return Math.max(e + (t || 0) - Date.now(), 0);
25645
25552
  }
25646
- function sj(e, t) {
25553
+ function ij(e, t) {
25647
25554
  return typeof e == "function" ? e(t) : e;
25648
25555
  }
25649
- function cj(e, t) {
25556
+ function aj(e, t) {
25650
25557
  return typeof e == "function" ? e(t) : e;
25651
25558
  }
25652
- function lj(e, t) {
25559
+ function oj(e, t) {
25653
25560
  let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
25654
25561
  if (o) {
25655
25562
  if (r) {
25656
- if (t.queryHash !== dj(o, t.options)) return !1;
25657
- } else if (!pj(t.queryKey, o)) return !1;
25563
+ if (t.queryHash !== cj(o, t.options)) return !1;
25564
+ } else if (!uj(t.queryKey, o)) return !1;
25658
25565
  }
25659
25566
  if (n !== "all") {
25660
25567
  let e = t.isActive();
@@ -25662,98 +25569,98 @@ function lj(e, t) {
25662
25569
  }
25663
25570
  return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
25664
25571
  }
25665
- function uj(e, t) {
25572
+ function sj(e, t) {
25666
25573
  let { exact: n, status: r, predicate: i, mutationKey: a } = e;
25667
25574
  if (a) {
25668
25575
  if (!t.options.mutationKey) return !1;
25669
25576
  if (n) {
25670
- if (fj(t.options.mutationKey) !== fj(a)) return !1;
25671
- } else if (!pj(t.options.mutationKey, a)) return !1;
25577
+ if (lj(t.options.mutationKey) !== lj(a)) return !1;
25578
+ } else if (!uj(t.options.mutationKey, a)) return !1;
25672
25579
  }
25673
25580
  return !(r && t.state.status !== r || i && !i(t));
25674
25581
  }
25675
- function dj(e, t) {
25676
- return (t?.queryKeyHashFn || fj)(e);
25582
+ function cj(e, t) {
25583
+ return (t?.queryKeyHashFn || lj)(e);
25677
25584
  }
25678
- function fj(e) {
25679
- return JSON.stringify(e, (e, t) => vj(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
25585
+ function lj(e) {
25586
+ return JSON.stringify(e, (e, t) => hj(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
25680
25587
  }
25681
- function pj(e, t) {
25682
- return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => pj(e[n], t[n])) : !1;
25588
+ function uj(e, t) {
25589
+ return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => uj(e[n], t[n])) : !1;
25683
25590
  }
25684
- var mj = Object.prototype.hasOwnProperty;
25685
- function hj(e, t, n = 0) {
25591
+ var dj = Object.prototype.hasOwnProperty;
25592
+ function fj(e, t, n = 0) {
25686
25593
  if (e === t) return e;
25687
25594
  if (n > 500) return t;
25688
- let r = _j(e) && _j(t);
25689
- if (!r && !(vj(e) && vj(t))) return t;
25595
+ let r = mj(e) && mj(t);
25596
+ if (!r && !(hj(e) && hj(t))) return t;
25690
25597
  let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
25691
25598
  for (let l = 0; l < o; l++) {
25692
25599
  let o = r ? l : a[l], u = e[o], d = t[o];
25693
25600
  if (u === d) {
25694
- s[o] = u, (r ? l < i : mj.call(e, o)) && c++;
25601
+ s[o] = u, (r ? l < i : dj.call(e, o)) && c++;
25695
25602
  continue;
25696
25603
  }
25697
25604
  if (u === null || d === null || typeof u != "object" || typeof d != "object") {
25698
25605
  s[o] = d;
25699
25606
  continue;
25700
25607
  }
25701
- let f = hj(u, d, n + 1);
25608
+ let f = fj(u, d, n + 1);
25702
25609
  s[o] = f, f === u && c++;
25703
25610
  }
25704
25611
  return i === o && c === i ? e : s;
25705
25612
  }
25706
- function gj(e, t) {
25613
+ function pj(e, t) {
25707
25614
  if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
25708
25615
  for (let n in e) if (e[n] !== t[n]) return !1;
25709
25616
  return !0;
25710
25617
  }
25711
- function _j(e) {
25618
+ function mj(e) {
25712
25619
  return Array.isArray(e) && e.length === Object.keys(e).length;
25713
25620
  }
25714
- function vj(e) {
25715
- if (!yj(e)) return !1;
25621
+ function hj(e) {
25622
+ if (!gj(e)) return !1;
25716
25623
  let t = e.constructor;
25717
25624
  if (t === void 0) return !0;
25718
25625
  let n = t.prototype;
25719
- return !(!yj(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
25626
+ return !(!gj(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
25720
25627
  }
25721
- function yj(e) {
25628
+ function gj(e) {
25722
25629
  return Object.prototype.toString.call(e) === "[object Object]";
25723
25630
  }
25724
- function bj(e) {
25631
+ function _j(e) {
25725
25632
  return new Promise((t) => {
25726
- ej.setTimeout(t, e);
25633
+ ZA.setTimeout(t, e);
25727
25634
  });
25728
25635
  }
25729
- function xj(e, t, n) {
25636
+ function vj(e, t, n) {
25730
25637
  if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
25731
25638
  if (n.structuralSharing !== !1) {
25732
25639
  if (process.env.NODE_ENV !== "production") try {
25733
- return hj(e, t);
25640
+ return fj(e, t);
25734
25641
  } catch (e) {
25735
25642
  throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
25736
25643
  }
25737
- return hj(e, t);
25644
+ return fj(e, t);
25738
25645
  }
25739
25646
  return t;
25740
25647
  }
25741
- function Sj(e, t, n = 0) {
25648
+ function yj(e, t, n = 0) {
25742
25649
  let r = [...e, t];
25743
25650
  return n && r.length > n ? r.slice(1) : r;
25744
25651
  }
25745
- function Cj(e, t, n = 0) {
25652
+ function bj(e, t, n = 0) {
25746
25653
  let r = [t, ...e];
25747
25654
  return n && r.length > n ? r.slice(0, -1) : r;
25748
25655
  }
25749
- var wj = /* @__PURE__ */ Symbol();
25750
- function Tj(e, t) {
25751
- return process.env.NODE_ENV !== "production" && e.queryFn === wj && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === wj ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
25656
+ var xj = /* @__PURE__ */ Symbol();
25657
+ function Sj(e, t) {
25658
+ return process.env.NODE_ENV !== "production" && e.queryFn === xj && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === xj ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
25752
25659
  }
25753
- function Ej(e, t) {
25660
+ function Cj(e, t) {
25754
25661
  return typeof e == "function" ? e(...t) : !!e;
25755
25662
  }
25756
- function Dj(e, t, n) {
25663
+ function wj(e, t, n) {
25757
25664
  let r = !1, i;
25758
25665
  return Object.defineProperty(e, "signal", {
25759
25666
  enumerable: !0,
@@ -25762,8 +25669,8 @@ function Dj(e, t, n) {
25762
25669
  }
25763
25670
  //#endregion
25764
25671
  //#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
25765
- var Oj = /* @__PURE__ */ (() => {
25766
- let e = () => nj;
25672
+ var Tj = /* @__PURE__ */ (() => {
25673
+ let e = () => $A;
25767
25674
  return {
25768
25675
  isServer() {
25769
25676
  return e();
@@ -25775,7 +25682,7 @@ var Oj = /* @__PURE__ */ (() => {
25775
25682
  })();
25776
25683
  //#endregion
25777
25684
  //#region node_modules/@tanstack/query-core/build/modern/thenable.js
25778
- function kj() {
25685
+ function Ej() {
25779
25686
  let e, t, n = new Promise((n, r) => {
25780
25687
  e = n, t = r;
25781
25688
  });
@@ -25797,13 +25704,13 @@ function kj() {
25797
25704
  }
25798
25705
  //#endregion
25799
25706
  //#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
25800
- var Aj = tj;
25801
- function jj() {
25707
+ var Dj = QA;
25708
+ function Oj() {
25802
25709
  let e = [], t = 0, n = (e) => {
25803
25710
  e();
25804
25711
  }, r = (e) => {
25805
25712
  e();
25806
- }, i = Aj, a = (r) => {
25713
+ }, i = Dj, a = (r) => {
25807
25714
  t ? e.push(r) : i(() => {
25808
25715
  n(r);
25809
25716
  });
@@ -25845,7 +25752,7 @@ function jj() {
25845
25752
  }
25846
25753
  };
25847
25754
  }
25848
- var Mj = jj(), Nj = new class extends ZA {
25755
+ var kj = Oj(), Aj = new class extends JA {
25849
25756
  #e = !0;
25850
25757
  #t;
25851
25758
  #n;
@@ -25879,28 +25786,28 @@ var Mj = jj(), Nj = new class extends ZA {
25879
25786
  }();
25880
25787
  //#endregion
25881
25788
  //#region node_modules/@tanstack/query-core/build/modern/retryer.js
25882
- function Pj(e) {
25789
+ function jj(e) {
25883
25790
  return Math.min(1e3 * 2 ** e, 3e4);
25884
25791
  }
25885
- function Fj(e) {
25886
- return (e ?? "online") === "online" ? Nj.isOnline() : !0;
25792
+ function Mj(e) {
25793
+ return (e ?? "online") === "online" ? Aj.isOnline() : !0;
25887
25794
  }
25888
- var Ij = class extends Error {
25795
+ var Nj = class extends Error {
25889
25796
  constructor(e) {
25890
25797
  super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
25891
25798
  }
25892
25799
  };
25893
- function Lj(e) {
25894
- let t = !1, n = 0, r, i = kj(), a = () => i.status !== "pending", o = (t) => {
25800
+ function Pj(e) {
25801
+ let t = !1, n = 0, r, i = Ej(), a = () => i.status !== "pending", o = (t) => {
25895
25802
  if (!a()) {
25896
- let n = new Ij(t);
25803
+ let n = new Nj(t);
25897
25804
  f(n), e.onCancel?.(n);
25898
25805
  }
25899
25806
  }, s = () => {
25900
25807
  t = !0;
25901
25808
  }, c = () => {
25902
25809
  t = !1;
25903
- }, l = () => QA.isFocused() && (e.networkMode === "always" || Nj.isOnline()) && e.canRun(), u = () => Fj(e.networkMode) && e.canRun(), d = (e) => {
25810
+ }, l = () => YA.isFocused() && (e.networkMode === "always" || Aj.isOnline()) && e.canRun(), u = () => Mj(e.networkMode) && e.canRun(), d = (e) => {
25904
25811
  a() || (r?.(), i.resolve(e));
25905
25812
  }, f = (e) => {
25906
25813
  a() || (r?.(), i.reject(e));
@@ -25920,12 +25827,12 @@ function Lj(e) {
25920
25827
  }
25921
25828
  Promise.resolve(r).then(d).catch((r) => {
25922
25829
  if (a()) return;
25923
- let i = e.retry ?? (Oj.isServer() ? 0 : 3), o = e.retryDelay ?? Pj, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
25830
+ let i = e.retry ?? (Tj.isServer() ? 0 : 3), o = e.retryDelay ?? jj, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
25924
25831
  if (t || !c) {
25925
25832
  f(r);
25926
25833
  return;
25927
25834
  }
25928
- n++, e.onFail?.(n, r), bj(s).then(() => l() ? void 0 : p()).then(() => {
25835
+ n++, e.onFail?.(n, r), _j(s).then(() => l() ? void 0 : p()).then(() => {
25929
25836
  t ? f(r) : m();
25930
25837
  });
25931
25838
  });
@@ -25943,23 +25850,23 @@ function Lj(e) {
25943
25850
  }
25944
25851
  //#endregion
25945
25852
  //#region node_modules/@tanstack/query-core/build/modern/removable.js
25946
- var Rj = class {
25853
+ var Fj = class {
25947
25854
  #e;
25948
25855
  destroy() {
25949
25856
  this.clearGcTimeout();
25950
25857
  }
25951
25858
  scheduleGc() {
25952
- this.clearGcTimeout(), aj(this.gcTime) && (this.#e = ej.setTimeout(() => {
25859
+ this.clearGcTimeout(), nj(this.gcTime) && (this.#e = ZA.setTimeout(() => {
25953
25860
  this.optionalRemove();
25954
25861
  }, this.gcTime));
25955
25862
  }
25956
25863
  updateGcTime(e) {
25957
- this.gcTime = Math.max(this.gcTime || 0, e ?? (Oj.isServer() ? Infinity : 300 * 1e3));
25864
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (Tj.isServer() ? Infinity : 300 * 1e3));
25958
25865
  }
25959
25866
  clearGcTimeout() {
25960
- this.#e &&= (ej.clearTimeout(this.#e), void 0);
25867
+ this.#e &&= (ZA.clearTimeout(this.#e), void 0);
25961
25868
  }
25962
- }, zj = class extends Rj {
25869
+ }, Ij = class extends Fj {
25963
25870
  #e;
25964
25871
  #t;
25965
25872
  #n;
@@ -25968,7 +25875,7 @@ var Rj = class {
25968
25875
  #a;
25969
25876
  #o;
25970
25877
  constructor(e) {
25971
- super(), this.#o = !1, this.#a = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#r = e.client, this.#n = this.#r.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = Hj(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
25878
+ super(), this.#o = !1, this.#a = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#r = e.client, this.#n = this.#r.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = zj(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
25972
25879
  }
25973
25880
  get meta() {
25974
25881
  return this.options.meta;
@@ -25981,15 +25888,15 @@ var Rj = class {
25981
25888
  ...this.#a,
25982
25889
  ...e
25983
25890
  }, this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
25984
- let e = Hj(this.options);
25985
- e.data !== void 0 && (this.setState(Vj(e.data, e.dataUpdatedAt)), this.#e = e);
25891
+ let e = zj(this.options);
25892
+ e.data !== void 0 && (this.setState(Rj(e.data, e.dataUpdatedAt)), this.#e = e);
25986
25893
  }
25987
25894
  }
25988
25895
  optionalRemove() {
25989
25896
  !this.observers.length && this.state.fetchStatus === "idle" && this.#n.remove(this);
25990
25897
  }
25991
25898
  setData(e, t) {
25992
- let n = xj(this.state.data, e, this.options);
25899
+ let n = vj(this.state.data, e, this.options);
25993
25900
  return this.#c({
25994
25901
  data: n,
25995
25902
  type: "success",
@@ -26006,7 +25913,7 @@ var Rj = class {
26006
25913
  }
26007
25914
  cancel(e) {
26008
25915
  let t = this.#i?.promise;
26009
- return this.#i?.cancel(e), t ? t.then(rj).catch(rj) : Promise.resolve();
25916
+ return this.#i?.cancel(e), t ? t.then(ej).catch(ej) : Promise.resolve();
26010
25917
  }
26011
25918
  destroy() {
26012
25919
  super.destroy(), this.cancel({ silent: !0 });
@@ -26018,22 +25925,22 @@ var Rj = class {
26018
25925
  this.destroy(), this.setState(this.resetState);
26019
25926
  }
26020
25927
  isActive() {
26021
- return this.observers.some((e) => cj(e.options.enabled, this) !== !1);
25928
+ return this.observers.some((e) => aj(e.options.enabled, this) !== !1);
26022
25929
  }
26023
25930
  isDisabled() {
26024
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === wj || !this.isFetched();
25931
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === xj || !this.isFetched();
26025
25932
  }
26026
25933
  isFetched() {
26027
25934
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
26028
25935
  }
26029
25936
  isStatic() {
26030
- return this.getObserversCount() > 0 ? this.observers.some((e) => sj(e.options.staleTime, this) === "static") : !1;
25937
+ return this.getObserversCount() > 0 ? this.observers.some((e) => ij(e.options.staleTime, this) === "static") : !1;
26031
25938
  }
26032
25939
  isStale() {
26033
25940
  return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
26034
25941
  }
26035
25942
  isStaleByTime(e = 0) {
26036
- return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !oj(this.state.dataUpdatedAt, e);
25943
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !rj(this.state.dataUpdatedAt, e);
26037
25944
  }
26038
25945
  onFocus() {
26039
25946
  this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#i?.continue();
@@ -26080,7 +25987,7 @@ var Rj = class {
26080
25987
  get: () => (this.#o = !0, n.signal)
26081
25988
  });
26082
25989
  }, i = () => {
26083
- let e = Tj(this.options, t), n = (() => {
25990
+ let e = Sj(this.options, t), n = (() => {
26084
25991
  let e = {
26085
25992
  client: this.#r,
26086
25993
  queryKey: this.queryKey,
@@ -26103,11 +26010,11 @@ var Rj = class {
26103
26010
  this.options.behavior?.onFetch(a, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
26104
26011
  type: "fetch",
26105
26012
  meta: a.fetchOptions?.meta
26106
- }), this.#i = Lj({
26013
+ }), this.#i = Pj({
26107
26014
  initialPromise: t?.initialPromise,
26108
26015
  fn: a.fetchFn,
26109
26016
  onCancel: (e) => {
26110
- e instanceof Ij && e.revert && this.setState({
26017
+ e instanceof Nj && e.revert && this.setState({
26111
26018
  ...this.#t,
26112
26019
  fetchStatus: "idle"
26113
26020
  }), n.abort();
@@ -26135,7 +26042,7 @@ var Rj = class {
26135
26042
  if (e === void 0) throw process.env.NODE_ENV !== "production" && console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`), Error(`${this.queryHash} data is undefined`);
26136
26043
  return this.setData(e), this.#n.config.onSuccess?.(e, this), this.#n.config.onSettled?.(e, this.state.error, this), e;
26137
26044
  } catch (e) {
26138
- if (e instanceof Ij) {
26045
+ if (e instanceof Nj) {
26139
26046
  if (e.silent) return this.#i.promise;
26140
26047
  if (e.revert) {
26141
26048
  if (this.state.data === void 0) throw e;
@@ -26168,13 +26075,13 @@ var Rj = class {
26168
26075
  };
26169
26076
  case "fetch": return {
26170
26077
  ...t,
26171
- ...Bj(t.data, this.options),
26078
+ ...Lj(t.data, this.options),
26172
26079
  fetchMeta: e.meta ?? null
26173
26080
  };
26174
26081
  case "success":
26175
26082
  let n = {
26176
26083
  ...t,
26177
- ...Vj(e.data, e.dataUpdatedAt),
26084
+ ...Rj(e.data, e.dataUpdatedAt),
26178
26085
  dataUpdateCount: t.dataUpdateCount + 1,
26179
26086
  ...!e.manual && {
26180
26087
  fetchStatus: "idle",
@@ -26205,7 +26112,7 @@ var Rj = class {
26205
26112
  ...e.state
26206
26113
  };
26207
26114
  }
26208
- })(this.state), Mj.batch(() => {
26115
+ })(this.state), kj.batch(() => {
26209
26116
  this.observers.forEach((e) => {
26210
26117
  e.onQueryUpdate();
26211
26118
  }), this.#n.notify({
@@ -26216,18 +26123,18 @@ var Rj = class {
26216
26123
  });
26217
26124
  }
26218
26125
  };
26219
- function Bj(e, t) {
26126
+ function Lj(e, t) {
26220
26127
  return {
26221
26128
  fetchFailureCount: 0,
26222
26129
  fetchFailureReason: null,
26223
- fetchStatus: Fj(t.networkMode) ? "fetching" : "paused",
26130
+ fetchStatus: Mj(t.networkMode) ? "fetching" : "paused",
26224
26131
  ...e === void 0 && {
26225
26132
  error: null,
26226
26133
  status: "pending"
26227
26134
  }
26228
26135
  };
26229
26136
  }
26230
- function Vj(e, t) {
26137
+ function Rj(e, t) {
26231
26138
  return {
26232
26139
  data: e,
26233
26140
  dataUpdatedAt: t ?? Date.now(),
@@ -26236,7 +26143,7 @@ function Vj(e, t) {
26236
26143
  status: "success"
26237
26144
  };
26238
26145
  }
26239
- function Hj(e) {
26146
+ function zj(e) {
26240
26147
  let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
26241
26148
  return {
26242
26149
  data: t,
@@ -26255,15 +26162,15 @@ function Hj(e) {
26255
26162
  }
26256
26163
  //#endregion
26257
26164
  //#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
26258
- function Uj(e) {
26165
+ function Bj(e) {
26259
26166
  return { onFetch: (t, n) => {
26260
26167
  let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
26261
26168
  pages: [],
26262
26169
  pageParams: []
26263
26170
  }, c = 0, l = async () => {
26264
26171
  let n = !1, l = (e) => {
26265
- Dj(e, () => t.signal, () => n = !0);
26266
- }, u = Tj(t.options, t.fetchOptions), d = async (e, r, i) => {
26172
+ wj(e, () => t.signal, () => n = !0);
26173
+ }, u = Sj(t.options, t.fetchOptions), d = async (e, r, i) => {
26267
26174
  if (n) return Promise.reject();
26268
26175
  if (r == null && e.pages.length) return Promise.resolve(e);
26269
26176
  let a = await u((() => {
@@ -26275,14 +26182,14 @@ function Uj(e) {
26275
26182
  meta: t.options.meta
26276
26183
  };
26277
26184
  return l(e), e;
26278
- })()), { maxPages: o } = t.options, s = i ? Cj : Sj;
26185
+ })()), { maxPages: o } = t.options, s = i ? bj : yj;
26279
26186
  return {
26280
26187
  pages: s(e.pages, a, o),
26281
26188
  pageParams: s(e.pageParams, r, o)
26282
26189
  };
26283
26190
  };
26284
26191
  if (i && a.length) {
26285
- let e = i === "backward", t = e ? Gj : Wj, n = {
26192
+ let e = i === "backward", t = e ? Hj : Vj, n = {
26286
26193
  pages: a,
26287
26194
  pageParams: o
26288
26195
  };
@@ -26290,7 +26197,7 @@ function Uj(e) {
26290
26197
  } else {
26291
26198
  let t = e ?? a.length;
26292
26199
  do {
26293
- let e = c === 0 ? o[0] ?? r.initialPageParam : Wj(r, s);
26200
+ let e = c === 0 ? o[0] ?? r.initialPageParam : Vj(r, s);
26294
26201
  if (c > 0 && e == null) break;
26295
26202
  s = await d(s, e), c++;
26296
26203
  } while (c < t);
@@ -26305,22 +26212,22 @@ function Uj(e) {
26305
26212
  }, n) : t.fetchFn = l;
26306
26213
  } };
26307
26214
  }
26308
- function Wj(e, { pages: t, pageParams: n }) {
26215
+ function Vj(e, { pages: t, pageParams: n }) {
26309
26216
  let r = t.length - 1;
26310
26217
  return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
26311
26218
  }
26312
- function Gj(e, { pages: t, pageParams: n }) {
26219
+ function Hj(e, { pages: t, pageParams: n }) {
26313
26220
  return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
26314
26221
  }
26315
26222
  //#endregion
26316
26223
  //#region node_modules/@tanstack/query-core/build/modern/mutation.js
26317
- var Kj = class extends Rj {
26224
+ var Uj = class extends Fj {
26318
26225
  #e;
26319
26226
  #t;
26320
26227
  #n;
26321
26228
  #r;
26322
26229
  constructor(e) {
26323
- super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || qj(), this.setOptions(e.options), this.scheduleGc();
26230
+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Wj(), this.setOptions(e.options), this.scheduleGc();
26324
26231
  }
26325
26232
  setOptions(e) {
26326
26233
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -26356,7 +26263,7 @@ var Kj = class extends Rj {
26356
26263
  meta: this.options.meta,
26357
26264
  mutationKey: this.options.mutationKey
26358
26265
  };
26359
- this.#r = Lj({
26266
+ this.#r = Pj({
26360
26267
  fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
26361
26268
  onFail: (e, t) => {
26362
26269
  this.#i({
@@ -26472,7 +26379,7 @@ var Kj = class extends Rj {
26472
26379
  status: "error"
26473
26380
  };
26474
26381
  }
26475
- })(this.state), Mj.batch(() => {
26382
+ })(this.state), kj.batch(() => {
26476
26383
  this.#t.forEach((t) => {
26477
26384
  t.onMutationUpdate(e);
26478
26385
  }), this.#n.notify({
@@ -26483,7 +26390,7 @@ var Kj = class extends Rj {
26483
26390
  });
26484
26391
  }
26485
26392
  };
26486
- function qj() {
26393
+ function Wj() {
26487
26394
  return {
26488
26395
  context: void 0,
26489
26396
  data: void 0,
@@ -26498,7 +26405,7 @@ function qj() {
26498
26405
  }
26499
26406
  //#endregion
26500
26407
  //#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
26501
- var Jj = class extends ZA {
26408
+ var Gj = class extends JA {
26502
26409
  constructor(e = {}) {
26503
26410
  super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
26504
26411
  }
@@ -26506,7 +26413,7 @@ var Jj = class extends ZA {
26506
26413
  #t;
26507
26414
  #n;
26508
26415
  build(e, t, n) {
26509
- let r = new Kj({
26416
+ let r = new Uj({
26510
26417
  client: e,
26511
26418
  mutationCache: this,
26512
26419
  mutationId: ++this.#n,
@@ -26517,7 +26424,7 @@ var Jj = class extends ZA {
26517
26424
  }
26518
26425
  add(e) {
26519
26426
  this.#e.add(e);
26520
- let t = Yj(e);
26427
+ let t = Kj(e);
26521
26428
  if (typeof t == "string") {
26522
26429
  let n = this.#t.get(t);
26523
26430
  n ? n.push(e) : this.#t.set(t, [e]);
@@ -26529,7 +26436,7 @@ var Jj = class extends ZA {
26529
26436
  }
26530
26437
  remove(e) {
26531
26438
  if (this.#e.delete(e)) {
26532
- let t = Yj(e);
26439
+ let t = Kj(e);
26533
26440
  if (typeof t == "string") {
26534
26441
  let n = this.#t.get(t);
26535
26442
  if (n) if (n.length > 1) {
@@ -26544,18 +26451,18 @@ var Jj = class extends ZA {
26544
26451
  });
26545
26452
  }
26546
26453
  canRun(e) {
26547
- let t = Yj(e);
26454
+ let t = Kj(e);
26548
26455
  if (typeof t == "string") {
26549
26456
  let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
26550
26457
  return !n || n === e;
26551
26458
  } else return !0;
26552
26459
  }
26553
26460
  runNext(e) {
26554
- let t = Yj(e);
26461
+ let t = Kj(e);
26555
26462
  return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
26556
26463
  }
26557
26464
  clear() {
26558
- Mj.batch(() => {
26465
+ kj.batch(() => {
26559
26466
  this.#e.forEach((e) => {
26560
26467
  this.notify({
26561
26468
  type: "removed",
@@ -26572,13 +26479,13 @@ var Jj = class extends ZA {
26572
26479
  exact: !0,
26573
26480
  ...e
26574
26481
  };
26575
- return this.getAll().find((e) => uj(t, e));
26482
+ return this.getAll().find((e) => sj(t, e));
26576
26483
  }
26577
26484
  findAll(e = {}) {
26578
- return this.getAll().filter((t) => uj(e, t));
26485
+ return this.getAll().filter((t) => sj(e, t));
26579
26486
  }
26580
26487
  notify(e) {
26581
- Mj.batch(() => {
26488
+ kj.batch(() => {
26582
26489
  this.listeners.forEach((t) => {
26583
26490
  t(e);
26584
26491
  });
@@ -26586,15 +26493,15 @@ var Jj = class extends ZA {
26586
26493
  }
26587
26494
  resumePausedMutations() {
26588
26495
  let e = this.getAll().filter((e) => e.state.isPaused);
26589
- return Mj.batch(() => Promise.all(e.map((e) => e.continue().catch(rj))));
26496
+ return kj.batch(() => Promise.all(e.map((e) => e.continue().catch(ej))));
26590
26497
  }
26591
26498
  };
26592
- function Yj(e) {
26499
+ function Kj(e) {
26593
26500
  return e.options.scope?.id;
26594
26501
  }
26595
26502
  //#endregion
26596
26503
  //#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
26597
- var Xj = class extends ZA {
26504
+ var qj = class extends JA {
26598
26505
  #e;
26599
26506
  #t = void 0;
26600
26507
  #n;
@@ -26607,11 +26514,11 @@ var Xj = class extends ZA {
26607
26514
  }
26608
26515
  setOptions(e) {
26609
26516
  let t = this.options;
26610
- this.options = this.#e.defaultMutationOptions(e), gj(this.options, t) || this.#e.getMutationCache().notify({
26517
+ this.options = this.#e.defaultMutationOptions(e), pj(this.options, t) || this.#e.getMutationCache().notify({
26611
26518
  type: "observerOptionsUpdated",
26612
26519
  mutation: this.#n,
26613
26520
  observer: this
26614
- }), t?.mutationKey && this.options.mutationKey && fj(t.mutationKey) !== fj(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
26521
+ }), t?.mutationKey && this.options.mutationKey && lj(t.mutationKey) !== lj(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
26615
26522
  }
26616
26523
  onUnsubscribe() {
26617
26524
  this.hasListeners() || this.#n?.removeObserver(this);
@@ -26629,7 +26536,7 @@ var Xj = class extends ZA {
26629
26536
  return this.#r = t, this.#n?.removeObserver(this), this.#n = this.#e.getMutationCache().build(this.#e, this.options), this.#n.addObserver(this), this.#n.execute(e);
26630
26537
  }
26631
26538
  #i() {
26632
- let e = this.#n?.state ?? qj();
26539
+ let e = this.#n?.state ?? Wj();
26633
26540
  this.#t = {
26634
26541
  ...e,
26635
26542
  isPending: e.status === "pending",
@@ -26641,7 +26548,7 @@ var Xj = class extends ZA {
26641
26548
  };
26642
26549
  }
26643
26550
  #a(e) {
26644
- Mj.batch(() => {
26551
+ kj.batch(() => {
26645
26552
  if (this.#r && this.hasListeners()) {
26646
26553
  let t = this.#t.variables, n = this.#t.context, r = {
26647
26554
  client: this.#e,
@@ -26677,14 +26584,14 @@ var Xj = class extends ZA {
26677
26584
  });
26678
26585
  });
26679
26586
  }
26680
- }, Zj = class extends ZA {
26587
+ }, Jj = class extends JA {
26681
26588
  constructor(e = {}) {
26682
26589
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
26683
26590
  }
26684
26591
  #e;
26685
26592
  build(e, t, n) {
26686
- let r = t.queryKey, i = t.queryHash ?? dj(r, t), a = this.get(i);
26687
- return a || (a = new zj({
26593
+ let r = t.queryKey, i = t.queryHash ?? cj(r, t), a = this.get(i);
26594
+ return a || (a = new Ij({
26688
26595
  client: e,
26689
26596
  queryKey: r,
26690
26597
  queryHash: i,
@@ -26707,7 +26614,7 @@ var Xj = class extends ZA {
26707
26614
  }));
26708
26615
  }
26709
26616
  clear() {
26710
- Mj.batch(() => {
26617
+ kj.batch(() => {
26711
26618
  this.getAll().forEach((e) => {
26712
26619
  this.remove(e);
26713
26620
  });
@@ -26724,34 +26631,34 @@ var Xj = class extends ZA {
26724
26631
  exact: !0,
26725
26632
  ...e
26726
26633
  };
26727
- return this.getAll().find((e) => lj(t, e));
26634
+ return this.getAll().find((e) => oj(t, e));
26728
26635
  }
26729
26636
  findAll(e = {}) {
26730
26637
  let t = this.getAll();
26731
- return Object.keys(e).length > 0 ? t.filter((t) => lj(e, t)) : t;
26638
+ return Object.keys(e).length > 0 ? t.filter((t) => oj(e, t)) : t;
26732
26639
  }
26733
26640
  notify(e) {
26734
- Mj.batch(() => {
26641
+ kj.batch(() => {
26735
26642
  this.listeners.forEach((t) => {
26736
26643
  t(e);
26737
26644
  });
26738
26645
  });
26739
26646
  }
26740
26647
  onFocus() {
26741
- Mj.batch(() => {
26648
+ kj.batch(() => {
26742
26649
  this.getAll().forEach((e) => {
26743
26650
  e.onFocus();
26744
26651
  });
26745
26652
  });
26746
26653
  }
26747
26654
  onOnline() {
26748
- Mj.batch(() => {
26655
+ kj.batch(() => {
26749
26656
  this.getAll().forEach((e) => {
26750
26657
  e.onOnline();
26751
26658
  });
26752
26659
  });
26753
26660
  }
26754
- }, Qj = class {
26661
+ }, Yj = class {
26755
26662
  #e;
26756
26663
  #t;
26757
26664
  #n;
@@ -26761,12 +26668,12 @@ var Xj = class extends ZA {
26761
26668
  #o;
26762
26669
  #s;
26763
26670
  constructor(e = {}) {
26764
- this.#e = e.queryCache || new Zj(), this.#t = e.mutationCache || new Jj(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
26671
+ this.#e = e.queryCache || new Jj(), this.#t = e.mutationCache || new Gj(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
26765
26672
  }
26766
26673
  mount() {
26767
- this.#a++, this.#a === 1 && (this.#o = QA.subscribe(async (e) => {
26674
+ this.#a++, this.#a === 1 && (this.#o = YA.subscribe(async (e) => {
26768
26675
  e && (await this.resumePausedMutations(), this.#e.onFocus());
26769
- }), this.#s = Nj.subscribe(async (e) => {
26676
+ }), this.#s = Aj.subscribe(async (e) => {
26770
26677
  e && (await this.resumePausedMutations(), this.#e.onOnline());
26771
26678
  }));
26772
26679
  }
@@ -26791,20 +26698,20 @@ var Xj = class extends ZA {
26791
26698
  }
26792
26699
  ensureQueryData(e) {
26793
26700
  let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
26794
- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(sj(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
26701
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(ij(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
26795
26702
  }
26796
26703
  getQueriesData(e) {
26797
26704
  return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
26798
26705
  }
26799
26706
  setQueryData(e, t, n) {
26800
- let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = ij(t, i);
26707
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = tj(t, i);
26801
26708
  if (a !== void 0) return this.#e.build(this, r).setData(a, {
26802
26709
  ...n,
26803
26710
  manual: !0
26804
26711
  });
26805
26712
  }
26806
26713
  setQueriesData(e, t, n) {
26807
- return Mj.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
26714
+ return kj.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
26808
26715
  }
26809
26716
  getQueryState(e) {
26810
26717
  let t = this.defaultQueryOptions({ queryKey: e });
@@ -26812,7 +26719,7 @@ var Xj = class extends ZA {
26812
26719
  }
26813
26720
  removeQueries(e) {
26814
26721
  let t = this.#e;
26815
- Mj.batch(() => {
26722
+ kj.batch(() => {
26816
26723
  t.findAll(e).forEach((e) => {
26817
26724
  t.remove(e);
26818
26725
  });
@@ -26820,7 +26727,7 @@ var Xj = class extends ZA {
26820
26727
  }
26821
26728
  resetQueries(e, t) {
26822
26729
  let n = this.#e;
26823
- return Mj.batch(() => (n.findAll(e).forEach((e) => {
26730
+ return kj.batch(() => (n.findAll(e).forEach((e) => {
26824
26731
  e.reset();
26825
26732
  }), this.refetchQueries({
26826
26733
  type: "active",
@@ -26831,11 +26738,11 @@ var Xj = class extends ZA {
26831
26738
  let n = {
26832
26739
  revert: !0,
26833
26740
  ...t
26834
- }, r = Mj.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
26835
- return Promise.all(r).then(rj).catch(rj);
26741
+ }, r = kj.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
26742
+ return Promise.all(r).then(ej).catch(ej);
26836
26743
  }
26837
26744
  invalidateQueries(e, t = {}) {
26838
- return Mj.batch(() => (this.#e.findAll(e).forEach((e) => {
26745
+ return kj.batch(() => (this.#e.findAll(e).forEach((e) => {
26839
26746
  e.invalidate();
26840
26747
  }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
26841
26748
  ...e,
@@ -26846,32 +26753,32 @@ var Xj = class extends ZA {
26846
26753
  let n = {
26847
26754
  ...t,
26848
26755
  cancelRefetch: t.cancelRefetch ?? !0
26849
- }, r = Mj.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
26756
+ }, r = kj.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
26850
26757
  let t = e.fetch(void 0, n);
26851
- return n.throwOnError || (t = t.catch(rj)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
26758
+ return n.throwOnError || (t = t.catch(ej)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
26852
26759
  }));
26853
- return Promise.all(r).then(rj);
26760
+ return Promise.all(r).then(ej);
26854
26761
  }
26855
26762
  fetchQuery(e) {
26856
26763
  let t = this.defaultQueryOptions(e);
26857
26764
  t.retry === void 0 && (t.retry = !1);
26858
26765
  let n = this.#e.build(this, t);
26859
- return n.isStaleByTime(sj(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
26766
+ return n.isStaleByTime(ij(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
26860
26767
  }
26861
26768
  prefetchQuery(e) {
26862
- return this.fetchQuery(e).then(rj).catch(rj);
26769
+ return this.fetchQuery(e).then(ej).catch(ej);
26863
26770
  }
26864
26771
  fetchInfiniteQuery(e) {
26865
- return e.behavior = Uj(e.pages), this.fetchQuery(e);
26772
+ return e.behavior = Bj(e.pages), this.fetchQuery(e);
26866
26773
  }
26867
26774
  prefetchInfiniteQuery(e) {
26868
- return this.fetchInfiniteQuery(e).then(rj).catch(rj);
26775
+ return this.fetchInfiniteQuery(e).then(ej).catch(ej);
26869
26776
  }
26870
26777
  ensureInfiniteQueryData(e) {
26871
- return e.behavior = Uj(e.pages), this.ensureQueryData(e);
26778
+ return e.behavior = Bj(e.pages), this.ensureQueryData(e);
26872
26779
  }
26873
26780
  resumePausedMutations() {
26874
- return Nj.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
26781
+ return Aj.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
26875
26782
  }
26876
26783
  getQueryCache() {
26877
26784
  return this.#e;
@@ -26886,7 +26793,7 @@ var Xj = class extends ZA {
26886
26793
  this.#n = e;
26887
26794
  }
26888
26795
  setQueryDefaults(e, t) {
26889
- this.#r.set(fj(e), {
26796
+ this.#r.set(lj(e), {
26890
26797
  queryKey: e,
26891
26798
  defaultOptions: t
26892
26799
  });
@@ -26894,11 +26801,11 @@ var Xj = class extends ZA {
26894
26801
  getQueryDefaults(e) {
26895
26802
  let t = [...this.#r.values()], n = {};
26896
26803
  return t.forEach((t) => {
26897
- pj(e, t.queryKey) && Object.assign(n, t.defaultOptions);
26804
+ uj(e, t.queryKey) && Object.assign(n, t.defaultOptions);
26898
26805
  }), n;
26899
26806
  }
26900
26807
  setMutationDefaults(e, t) {
26901
- this.#i.set(fj(e), {
26808
+ this.#i.set(lj(e), {
26902
26809
  mutationKey: e,
26903
26810
  defaultOptions: t
26904
26811
  });
@@ -26906,7 +26813,7 @@ var Xj = class extends ZA {
26906
26813
  getMutationDefaults(e) {
26907
26814
  let t = [...this.#i.values()], n = {};
26908
26815
  return t.forEach((t) => {
26909
- pj(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
26816
+ uj(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
26910
26817
  }), n;
26911
26818
  }
26912
26819
  defaultQueryOptions(e) {
@@ -26917,7 +26824,7 @@ var Xj = class extends ZA {
26917
26824
  ...e,
26918
26825
  _defaulted: !0
26919
26826
  };
26920
- return t.queryHash ||= dj(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === wj && (t.enabled = !1), t;
26827
+ return t.queryHash ||= cj(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === xj && (t.enabled = !1), t;
26921
26828
  }
26922
26829
  defaultMutationOptions(e) {
26923
26830
  return e?._defaulted ? e : {
@@ -26930,28 +26837,28 @@ var Xj = class extends ZA {
26930
26837
  clear() {
26931
26838
  this.#e.clear(), this.#t.clear();
26932
26839
  }
26933
- }, $j = e.createContext(void 0), eM = (t) => {
26934
- let n = e.useContext($j);
26840
+ }, Xj = e.createContext(void 0), Zj = (t) => {
26841
+ let n = e.useContext(Xj);
26935
26842
  if (t) return t;
26936
26843
  if (!n) throw Error("No QueryClient set, use QueryClientProvider to set one");
26937
26844
  return n;
26938
- }, tM = ({ client: t, children: n }) => (e.useEffect(() => (t.mount(), () => {
26845
+ }, Qj = ({ client: t, children: n }) => (e.useEffect(() => (t.mount(), () => {
26939
26846
  t.unmount();
26940
- }), [t]), /* @__PURE__ */ T($j.Provider, {
26847
+ }), [t]), /* @__PURE__ */ T(Xj.Provider, {
26941
26848
  value: t,
26942
26849
  children: n
26943
26850
  }));
26944
26851
  //#endregion
26945
26852
  //#region node_modules/@tanstack/react-query/build/modern/useMutation.js
26946
- function nM(t, n) {
26947
- let r = eM(n), [i] = e.useState(() => new Xj(r, t));
26853
+ function $j(t, n) {
26854
+ let r = Zj(n), [i] = e.useState(() => new qj(r, t));
26948
26855
  e.useEffect(() => {
26949
26856
  i.setOptions(t);
26950
26857
  }, [i, t]);
26951
- let a = e.useSyncExternalStore(e.useCallback((e) => i.subscribe(Mj.batchCalls(e)), [i]), () => i.getCurrentResult(), () => i.getCurrentResult()), o = e.useCallback((e, t) => {
26952
- i.mutate(e, t).catch(rj);
26858
+ let a = e.useSyncExternalStore(e.useCallback((e) => i.subscribe(kj.batchCalls(e)), [i]), () => i.getCurrentResult(), () => i.getCurrentResult()), o = e.useCallback((e, t) => {
26859
+ i.mutate(e, t).catch(ej);
26953
26860
  }, [i]);
26954
- if (a.error && Ej(i.options.throwOnError, [a.error])) throw a.error;
26861
+ if (a.error && Cj(i.options.throwOnError, [a.error])) throw a.error;
26955
26862
  return {
26956
26863
  ...a,
26957
26864
  mutate: o,
@@ -26960,79 +26867,79 @@ function nM(t, n) {
26960
26867
  }
26961
26868
  //#endregion
26962
26869
  //#region node_modules/axios/lib/helpers/bind.js
26963
- function rM(e, t) {
26870
+ function eM(e, t) {
26964
26871
  return function() {
26965
26872
  return e.apply(t, arguments);
26966
26873
  };
26967
26874
  }
26968
26875
  //#endregion
26969
26876
  //#region node_modules/axios/lib/utils.js
26970
- var { toString: iM } = Object.prototype, { getPrototypeOf: aM } = Object, { iterator: oM, toStringTag: sM } = Symbol, cM = ((e) => (t) => {
26971
- let n = iM.call(t);
26877
+ var { toString: tM } = Object.prototype, { getPrototypeOf: nM } = Object, { iterator: rM, toStringTag: iM } = Symbol, aM = ((e) => (t) => {
26878
+ let n = tM.call(t);
26972
26879
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
26973
- })(Object.create(null)), lM = (e) => (e = e.toLowerCase(), (t) => cM(t) === e), uM = (e) => (t) => typeof t === e, { isArray: dM } = Array, fM = uM("undefined");
26974
- function pM(e) {
26975
- return e !== null && !fM(e) && e.constructor !== null && !fM(e.constructor) && _M(e.constructor.isBuffer) && e.constructor.isBuffer(e);
26880
+ })(Object.create(null)), oM = (e) => (e = e.toLowerCase(), (t) => aM(t) === e), sM = (e) => (t) => typeof t === e, { isArray: cM } = Array, lM = sM("undefined");
26881
+ function uM(e) {
26882
+ return e !== null && !lM(e) && e.constructor !== null && !lM(e.constructor) && mM(e.constructor.isBuffer) && e.constructor.isBuffer(e);
26976
26883
  }
26977
- var mM = lM("ArrayBuffer");
26978
- function hM(e) {
26884
+ var dM = oM("ArrayBuffer");
26885
+ function fM(e) {
26979
26886
  let t;
26980
- return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && mM(e.buffer), t;
26981
- }
26982
- var gM = uM("string"), _M = uM("function"), vM = uM("number"), yM = (e) => typeof e == "object" && !!e, bM = (e) => e === !0 || e === !1, xM = (e) => {
26983
- if (cM(e) !== "object") return !1;
26984
- let t = aM(e);
26985
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(sM in e) && !(oM in e);
26986
- }, SM = (e) => {
26987
- if (!yM(e) || pM(e)) return !1;
26887
+ return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && dM(e.buffer), t;
26888
+ }
26889
+ var pM = sM("string"), mM = sM("function"), hM = sM("number"), gM = (e) => typeof e == "object" && !!e, _M = (e) => e === !0 || e === !1, vM = (e) => {
26890
+ if (aM(e) !== "object") return !1;
26891
+ let t = nM(e);
26892
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(iM in e) && !(rM in e);
26893
+ }, yM = (e) => {
26894
+ if (!gM(e) || uM(e)) return !1;
26988
26895
  try {
26989
26896
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
26990
26897
  } catch {
26991
26898
  return !1;
26992
26899
  }
26993
- }, CM = lM("Date"), wM = lM("File"), TM = (e) => !!(e && e.uri !== void 0), EM = (e) => e && e.getParts !== void 0, DM = lM("Blob"), OM = lM("FileList"), kM = (e) => yM(e) && _M(e.pipe);
26994
- function AM() {
26900
+ }, bM = oM("Date"), xM = oM("File"), SM = (e) => !!(e && e.uri !== void 0), CM = (e) => e && e.getParts !== void 0, wM = oM("Blob"), TM = oM("FileList"), EM = (e) => gM(e) && mM(e.pipe);
26901
+ function DM() {
26995
26902
  return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
26996
26903
  }
26997
- var jM = AM(), MM = jM.FormData === void 0 ? void 0 : jM.FormData, NM = (e) => {
26904
+ var OM = DM(), kM = OM.FormData === void 0 ? void 0 : OM.FormData, AM = (e) => {
26998
26905
  let t;
26999
- return e && (MM && e instanceof MM || _M(e.append) && ((t = cM(e)) === "formdata" || t === "object" && _M(e.toString) && e.toString() === "[object FormData]"));
27000
- }, PM = lM("URLSearchParams"), [FM, IM, LM, RM] = [
26906
+ return e && (kM && e instanceof kM || mM(e.append) && ((t = aM(e)) === "formdata" || t === "object" && mM(e.toString) && e.toString() === "[object FormData]"));
26907
+ }, jM = oM("URLSearchParams"), [MM, NM, PM, FM] = [
27001
26908
  "ReadableStream",
27002
26909
  "Request",
27003
26910
  "Response",
27004
26911
  "Headers"
27005
- ].map(lM), zM = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
27006
- function BM(e, t, { allOwnKeys: n = !1 } = {}) {
26912
+ ].map(oM), IM = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
26913
+ function LM(e, t, { allOwnKeys: n = !1 } = {}) {
27007
26914
  if (e == null) return;
27008
26915
  let r, i;
27009
- if (typeof e != "object" && (e = [e]), dM(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
26916
+ if (typeof e != "object" && (e = [e]), cM(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
27010
26917
  else {
27011
- if (pM(e)) return;
26918
+ if (uM(e)) return;
27012
26919
  let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
27013
26920
  for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
27014
26921
  }
27015
26922
  }
27016
- function VM(e, t) {
27017
- if (pM(e)) return null;
26923
+ function RM(e, t) {
26924
+ if (uM(e)) return null;
27018
26925
  t = t.toLowerCase();
27019
26926
  let n = Object.keys(e), r = n.length, i;
27020
26927
  for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
27021
26928
  return null;
27022
26929
  }
27023
- var HM = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, UM = (e) => !fM(e) && e !== HM;
27024
- function WM() {
27025
- let { caseless: e, skipUndefined: t } = UM(this) && this || {}, n = {}, r = (r, i) => {
26930
+ var zM = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, BM = (e) => !lM(e) && e !== zM;
26931
+ function VM() {
26932
+ let { caseless: e, skipUndefined: t } = BM(this) && this || {}, n = {}, r = (r, i) => {
27026
26933
  if (i === "__proto__" || i === "constructor" || i === "prototype") return;
27027
- let a = e && VM(n, i) || i;
27028
- xM(n[a]) && xM(r) ? n[a] = WM(n[a], r) : xM(r) ? n[a] = WM({}, r) : dM(r) ? n[a] = r.slice() : (!t || !fM(r)) && (n[a] = r);
26934
+ let a = e && RM(n, i) || i;
26935
+ vM(n[a]) && vM(r) ? n[a] = VM(n[a], r) : vM(r) ? n[a] = VM({}, r) : cM(r) ? n[a] = r.slice() : (!t || !lM(r)) && (n[a] = r);
27029
26936
  };
27030
- for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && BM(arguments[e], r);
26937
+ for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && LM(arguments[e], r);
27031
26938
  return n;
27032
26939
  }
27033
- var GM = (e, t, n, { allOwnKeys: r } = {}) => (BM(t, (t, r) => {
27034
- n && _M(t) ? Object.defineProperty(e, r, {
27035
- value: rM(t, n),
26940
+ var HM = (e, t, n, { allOwnKeys: r } = {}) => (LM(t, (t, r) => {
26941
+ n && mM(t) ? Object.defineProperty(e, r, {
26942
+ value: eM(t, n),
27036
26943
  writable: !0,
27037
26944
  enumerable: !0,
27038
26945
  configurable: !0
@@ -27042,60 +26949,60 @@ var GM = (e, t, n, { allOwnKeys: r } = {}) => (BM(t, (t, r) => {
27042
26949
  enumerable: !0,
27043
26950
  configurable: !0
27044
26951
  });
27045
- }, { allOwnKeys: r }), e), KM = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), qM = (e, t, n, r) => {
26952
+ }, { allOwnKeys: r }), e), UM = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), WM = (e, t, n, r) => {
27046
26953
  e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
27047
26954
  value: e,
27048
26955
  writable: !0,
27049
26956
  enumerable: !1,
27050
26957
  configurable: !0
27051
26958
  }), Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n);
27052
- }, JM = (e, t, n, r) => {
26959
+ }, GM = (e, t, n, r) => {
27053
26960
  let i, a, o, s = {};
27054
26961
  if (t ||= {}, e == null) return t;
27055
26962
  do {
27056
26963
  for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0;) o = i[a], (!r || r(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
27057
- e = n !== !1 && aM(e);
26964
+ e = n !== !1 && nM(e);
27058
26965
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
27059
26966
  return t;
27060
- }, YM = (e, t, n) => {
26967
+ }, KM = (e, t, n) => {
27061
26968
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
27062
26969
  let r = e.indexOf(t, n);
27063
26970
  return r !== -1 && r === n;
27064
- }, XM = (e) => {
26971
+ }, qM = (e) => {
27065
26972
  if (!e) return null;
27066
- if (dM(e)) return e;
26973
+ if (cM(e)) return e;
27067
26974
  let t = e.length;
27068
- if (!vM(t)) return null;
26975
+ if (!hM(t)) return null;
27069
26976
  let n = Array(t);
27070
26977
  for (; t-- > 0;) n[t] = e[t];
27071
26978
  return n;
27072
- }, ZM = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && aM(Uint8Array)), QM = (e, t) => {
27073
- let n = (e && e[oM]).call(e), r;
26979
+ }, JM = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && nM(Uint8Array)), YM = (e, t) => {
26980
+ let n = (e && e[rM]).call(e), r;
27074
26981
  for (; (r = n.next()) && !r.done;) {
27075
26982
  let n = r.value;
27076
26983
  t.call(e, n[0], n[1]);
27077
26984
  }
27078
- }, $M = (e, t) => {
26985
+ }, XM = (e, t) => {
27079
26986
  let n, r = [];
27080
26987
  for (; (n = e.exec(t)) !== null;) r.push(n);
27081
26988
  return r;
27082
- }, eN = lM("HTMLFormElement"), tN = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
26989
+ }, ZM = oM("HTMLFormElement"), QM = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
27083
26990
  return t.toUpperCase() + n;
27084
- }), nN = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), rN = lM("RegExp"), iN = (e, t) => {
26991
+ }), $M = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), eN = oM("RegExp"), tN = (e, t) => {
27085
26992
  let n = Object.getOwnPropertyDescriptors(e), r = {};
27086
- BM(n, (n, i) => {
26993
+ LM(n, (n, i) => {
27087
26994
  let a;
27088
26995
  (a = t(n, i, e)) !== !1 && (r[i] = a || n);
27089
26996
  }), Object.defineProperties(e, r);
27090
- }, aN = (e) => {
27091
- iN(e, (t, n) => {
27092
- if (_M(e) && [
26997
+ }, nN = (e) => {
26998
+ tN(e, (t, n) => {
26999
+ if (mM(e) && [
27093
27000
  "arguments",
27094
27001
  "caller",
27095
27002
  "callee"
27096
27003
  ].indexOf(n) !== -1) return !1;
27097
27004
  let r = e[n];
27098
- if (_M(r)) {
27005
+ if (mM(r)) {
27099
27006
  if (t.enumerable = !1, "writable" in t) {
27100
27007
  t.writable = !1;
27101
27008
  return;
@@ -27105,99 +27012,99 @@ var GM = (e, t, n, { allOwnKeys: r } = {}) => (BM(t, (t, r) => {
27105
27012
  };
27106
27013
  }
27107
27014
  });
27108
- }, oN = (e, t) => {
27015
+ }, rN = (e, t) => {
27109
27016
  let n = {}, r = (e) => {
27110
27017
  e.forEach((e) => {
27111
27018
  n[e] = !0;
27112
27019
  });
27113
27020
  };
27114
- return dM(e) ? r(e) : r(String(e).split(t)), n;
27115
- }, sN = () => {}, cN = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
27116
- function lN(e) {
27117
- return !!(e && _M(e.append) && e[sM] === "FormData" && e[oM]);
27021
+ return cM(e) ? r(e) : r(String(e).split(t)), n;
27022
+ }, iN = () => {}, aN = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
27023
+ function oN(e) {
27024
+ return !!(e && mM(e.append) && e[iM] === "FormData" && e[rM]);
27118
27025
  }
27119
- var uN = (e) => {
27026
+ var sN = (e) => {
27120
27027
  let t = Array(10), n = (e, r) => {
27121
- if (yM(e)) {
27028
+ if (gM(e)) {
27122
27029
  if (t.indexOf(e) >= 0) return;
27123
- if (pM(e)) return e;
27030
+ if (uM(e)) return e;
27124
27031
  if (!("toJSON" in e)) {
27125
27032
  t[r] = e;
27126
- let i = dM(e) ? [] : {};
27127
- return BM(e, (e, t) => {
27033
+ let i = cM(e) ? [] : {};
27034
+ return LM(e, (e, t) => {
27128
27035
  let a = n(e, r + 1);
27129
- !fM(a) && (i[t] = a);
27036
+ !lM(a) && (i[t] = a);
27130
27037
  }), t[r] = void 0, i;
27131
27038
  }
27132
27039
  }
27133
27040
  return e;
27134
27041
  };
27135
27042
  return n(e, 0);
27136
- }, dN = lM("AsyncFunction"), fN = (e) => e && (yM(e) || _M(e)) && _M(e.then) && _M(e.catch), pN = ((e, t) => e ? setImmediate : t ? ((e, t) => (HM.addEventListener("message", ({ source: n, data: r }) => {
27137
- n === HM && r === e && t.length && t.shift()();
27043
+ }, cN = oM("AsyncFunction"), lN = (e) => e && (gM(e) || mM(e)) && mM(e.then) && mM(e.catch), uN = ((e, t) => e ? setImmediate : t ? ((e, t) => (zM.addEventListener("message", ({ source: n, data: r }) => {
27044
+ n === zM && r === e && t.length && t.shift()();
27138
27045
  }, !1), (n) => {
27139
- t.push(n), HM.postMessage(e, "*");
27140
- }))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", _M(HM.postMessage)), $ = {
27141
- isArray: dM,
27142
- isArrayBuffer: mM,
27143
- isBuffer: pM,
27144
- isFormData: NM,
27145
- isArrayBufferView: hM,
27146
- isString: gM,
27147
- isNumber: vM,
27148
- isBoolean: bM,
27149
- isObject: yM,
27150
- isPlainObject: xM,
27151
- isEmptyObject: SM,
27152
- isReadableStream: FM,
27153
- isRequest: IM,
27154
- isResponse: LM,
27155
- isHeaders: RM,
27156
- isUndefined: fM,
27157
- isDate: CM,
27158
- isFile: wM,
27159
- isReactNativeBlob: TM,
27160
- isReactNative: EM,
27161
- isBlob: DM,
27162
- isRegExp: rN,
27163
- isFunction: _M,
27164
- isStream: kM,
27165
- isURLSearchParams: PM,
27166
- isTypedArray: ZM,
27167
- isFileList: OM,
27168
- forEach: BM,
27169
- merge: WM,
27170
- extend: GM,
27171
- trim: zM,
27172
- stripBOM: KM,
27173
- inherits: qM,
27174
- toFlatObject: JM,
27175
- kindOf: cM,
27176
- kindOfTest: lM,
27177
- endsWith: YM,
27178
- toArray: XM,
27179
- forEachEntry: QM,
27180
- matchAll: $M,
27181
- isHTMLForm: eN,
27182
- hasOwnProperty: nN,
27183
- hasOwnProp: nN,
27184
- reduceDescriptors: iN,
27185
- freezeMethods: aN,
27186
- toObjectSet: oN,
27187
- toCamelCase: tN,
27188
- noop: sN,
27189
- toFiniteNumber: cN,
27190
- findKey: VM,
27191
- global: HM,
27192
- isContextDefined: UM,
27193
- isSpecCompliantForm: lN,
27194
- toJSONObject: uN,
27195
- isAsyncFn: dN,
27196
- isThenable: fN,
27197
- setImmediate: pN,
27198
- asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(HM) : typeof process < "u" && process.nextTick || pN,
27199
- isIterable: (e) => e != null && _M(e[oM])
27200
- }, mN = class e extends Error {
27046
+ t.push(n), zM.postMessage(e, "*");
27047
+ }))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", mM(zM.postMessage)), $ = {
27048
+ isArray: cM,
27049
+ isArrayBuffer: dM,
27050
+ isBuffer: uM,
27051
+ isFormData: AM,
27052
+ isArrayBufferView: fM,
27053
+ isString: pM,
27054
+ isNumber: hM,
27055
+ isBoolean: _M,
27056
+ isObject: gM,
27057
+ isPlainObject: vM,
27058
+ isEmptyObject: yM,
27059
+ isReadableStream: MM,
27060
+ isRequest: NM,
27061
+ isResponse: PM,
27062
+ isHeaders: FM,
27063
+ isUndefined: lM,
27064
+ isDate: bM,
27065
+ isFile: xM,
27066
+ isReactNativeBlob: SM,
27067
+ isReactNative: CM,
27068
+ isBlob: wM,
27069
+ isRegExp: eN,
27070
+ isFunction: mM,
27071
+ isStream: EM,
27072
+ isURLSearchParams: jM,
27073
+ isTypedArray: JM,
27074
+ isFileList: TM,
27075
+ forEach: LM,
27076
+ merge: VM,
27077
+ extend: HM,
27078
+ trim: IM,
27079
+ stripBOM: UM,
27080
+ inherits: WM,
27081
+ toFlatObject: GM,
27082
+ kindOf: aM,
27083
+ kindOfTest: oM,
27084
+ endsWith: KM,
27085
+ toArray: qM,
27086
+ forEachEntry: YM,
27087
+ matchAll: XM,
27088
+ isHTMLForm: ZM,
27089
+ hasOwnProperty: $M,
27090
+ hasOwnProp: $M,
27091
+ reduceDescriptors: tN,
27092
+ freezeMethods: nN,
27093
+ toObjectSet: rN,
27094
+ toCamelCase: QM,
27095
+ noop: iN,
27096
+ toFiniteNumber: aN,
27097
+ findKey: RM,
27098
+ global: zM,
27099
+ isContextDefined: BM,
27100
+ isSpecCompliantForm: oN,
27101
+ toJSONObject: sN,
27102
+ isAsyncFn: cN,
27103
+ isThenable: lN,
27104
+ setImmediate: uN,
27105
+ asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(zM) : typeof process < "u" && process.nextTick || uN,
27106
+ isIterable: (e) => e != null && mM(e[rM])
27107
+ }, dN = class e extends Error {
27201
27108
  static from(t, n, r, i, a, o) {
27202
27109
  let s = new e(t.message, n || t.code, r, i, a);
27203
27110
  return s.cause = t, s.name = t.name, t.status != null && s.status == null && (s.status = t.status), o && Object.assign(s, o), s;
@@ -27226,27 +27133,27 @@ var uN = (e) => {
27226
27133
  };
27227
27134
  }
27228
27135
  };
27229
- mN.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", mN.ERR_BAD_OPTION = "ERR_BAD_OPTION", mN.ECONNABORTED = "ECONNABORTED", mN.ETIMEDOUT = "ETIMEDOUT", mN.ERR_NETWORK = "ERR_NETWORK", mN.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", mN.ERR_DEPRECATED = "ERR_DEPRECATED", mN.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", mN.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", mN.ERR_CANCELED = "ERR_CANCELED", mN.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", mN.ERR_INVALID_URL = "ERR_INVALID_URL";
27136
+ dN.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", dN.ERR_BAD_OPTION = "ERR_BAD_OPTION", dN.ECONNABORTED = "ECONNABORTED", dN.ETIMEDOUT = "ETIMEDOUT", dN.ERR_NETWORK = "ERR_NETWORK", dN.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", dN.ERR_DEPRECATED = "ERR_DEPRECATED", dN.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", dN.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", dN.ERR_CANCELED = "ERR_CANCELED", dN.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", dN.ERR_INVALID_URL = "ERR_INVALID_URL";
27230
27137
  //#endregion
27231
27138
  //#region node_modules/axios/lib/helpers/toFormData.js
27232
- function hN(e) {
27139
+ function fN(e) {
27233
27140
  return $.isPlainObject(e) || $.isArray(e);
27234
27141
  }
27235
- function gN(e) {
27142
+ function pN(e) {
27236
27143
  return $.endsWith(e, "[]") ? e.slice(0, -2) : e;
27237
27144
  }
27238
- function _N(e, t, n) {
27145
+ function mN(e, t, n) {
27239
27146
  return e ? e.concat(t).map(function(e, t) {
27240
- return e = gN(e), !n && t ? "[" + e + "]" : e;
27147
+ return e = pN(e), !n && t ? "[" + e + "]" : e;
27241
27148
  }).join(n ? "." : "") : t;
27242
27149
  }
27243
- function vN(e) {
27244
- return $.isArray(e) && !e.some(hN);
27150
+ function hN(e) {
27151
+ return $.isArray(e) && !e.some(fN);
27245
27152
  }
27246
- var yN = $.toFlatObject($, {}, null, function(e) {
27153
+ var gN = $.toFlatObject($, {}, null, function(e) {
27247
27154
  return /^is[A-Z]/.test(e);
27248
27155
  });
27249
- function bN(e, t, n) {
27156
+ function _N(e, t, n) {
27250
27157
  if (!$.isObject(e)) throw TypeError("target must be an object");
27251
27158
  t ||= new FormData(), n = $.toFlatObject(n, {
27252
27159
  metaTokens: !0,
@@ -27261,24 +27168,24 @@ function bN(e, t, n) {
27261
27168
  if (e === null) return "";
27262
27169
  if ($.isDate(e)) return e.toISOString();
27263
27170
  if ($.isBoolean(e)) return e.toString();
27264
- if (!s && $.isBlob(e)) throw new mN("Blob is not supported. Use a Buffer instead.");
27171
+ if (!s && $.isBlob(e)) throw new dN("Blob is not supported. Use a Buffer instead.");
27265
27172
  return $.isArrayBuffer(e) || $.isTypedArray(e) ? s && typeof Blob == "function" ? new Blob([e]) : Buffer.from(e) : e;
27266
27173
  }
27267
27174
  function l(e, n, i) {
27268
27175
  let s = e;
27269
- if ($.isReactNative(t) && $.isReactNativeBlob(e)) return t.append(_N(i, n, a), c(e)), !1;
27176
+ if ($.isReactNative(t) && $.isReactNativeBlob(e)) return t.append(mN(i, n, a), c(e)), !1;
27270
27177
  if (e && !i && typeof e == "object") {
27271
27178
  if ($.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
27272
- else if ($.isArray(e) && vN(e) || ($.isFileList(e) || $.endsWith(n, "[]")) && (s = $.toArray(e))) return n = gN(n), s.forEach(function(e, r) {
27273
- !($.isUndefined(e) || e === null) && t.append(o === !0 ? _N([n], r, a) : o === null ? n : n + "[]", c(e));
27179
+ else if ($.isArray(e) && hN(e) || ($.isFileList(e) || $.endsWith(n, "[]")) && (s = $.toArray(e))) return n = pN(n), s.forEach(function(e, r) {
27180
+ !($.isUndefined(e) || e === null) && t.append(o === !0 ? mN([n], r, a) : o === null ? n : n + "[]", c(e));
27274
27181
  }), !1;
27275
27182
  }
27276
- return hN(e) ? !0 : (t.append(_N(i, n, a), c(e)), !1);
27183
+ return fN(e) ? !0 : (t.append(mN(i, n, a), c(e)), !1);
27277
27184
  }
27278
- let u = [], d = Object.assign(yN, {
27185
+ let u = [], d = Object.assign(gN, {
27279
27186
  defaultVisitor: l,
27280
27187
  convertValue: c,
27281
- isVisitable: hN
27188
+ isVisitable: fN
27282
27189
  });
27283
27190
  function f(e, n) {
27284
27191
  if (!$.isUndefined(e)) {
@@ -27293,7 +27200,7 @@ function bN(e, t, n) {
27293
27200
  }
27294
27201
  //#endregion
27295
27202
  //#region node_modules/axios/lib/helpers/AxiosURLSearchParams.js
27296
- function xN(e) {
27203
+ function vN(e) {
27297
27204
  let t = {
27298
27205
  "!": "%21",
27299
27206
  "'": "%27",
@@ -27307,29 +27214,29 @@ function xN(e) {
27307
27214
  return t[e];
27308
27215
  });
27309
27216
  }
27310
- function SN(e, t) {
27311
- this._pairs = [], e && bN(e, this, t);
27217
+ function yN(e, t) {
27218
+ this._pairs = [], e && _N(e, this, t);
27312
27219
  }
27313
- var CN = SN.prototype;
27314
- CN.append = function(e, t) {
27220
+ var bN = yN.prototype;
27221
+ bN.append = function(e, t) {
27315
27222
  this._pairs.push([e, t]);
27316
- }, CN.toString = function(e) {
27223
+ }, bN.toString = function(e) {
27317
27224
  let t = e ? function(t) {
27318
- return e.call(this, t, xN);
27319
- } : xN;
27225
+ return e.call(this, t, vN);
27226
+ } : vN;
27320
27227
  return this._pairs.map(function(e) {
27321
27228
  return t(e[0]) + "=" + t(e[1]);
27322
27229
  }, "").join("&");
27323
27230
  };
27324
27231
  //#endregion
27325
27232
  //#region node_modules/axios/lib/helpers/buildURL.js
27326
- function wN(e) {
27233
+ function xN(e) {
27327
27234
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
27328
27235
  }
27329
- function TN(e, t, n) {
27236
+ function SN(e, t, n) {
27330
27237
  if (!t) return e;
27331
- let r = n && n.encode || wN, i = $.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
27332
- if (o = a ? a(t, i) : $.isURLSearchParams(t) ? t.toString() : new SN(t, i).toString(r), o) {
27238
+ let r = n && n.encode || xN, i = $.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
27239
+ if (o = a ? a(t, i) : $.isURLSearchParams(t) ? t.toString() : new yN(t, i).toString(r), o) {
27333
27240
  let t = e.indexOf("#");
27334
27241
  t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
27335
27242
  }
@@ -27337,7 +27244,7 @@ function TN(e, t, n) {
27337
27244
  }
27338
27245
  //#endregion
27339
27246
  //#region node_modules/axios/lib/core/InterceptorManager.js
27340
- var EN = class {
27247
+ var CN = class {
27341
27248
  constructor() {
27342
27249
  this.handlers = [];
27343
27250
  }
@@ -27360,15 +27267,15 @@ var EN = class {
27360
27267
  t !== null && e(t);
27361
27268
  });
27362
27269
  }
27363
- }, DN = {
27270
+ }, wN = {
27364
27271
  silentJSONParsing: !0,
27365
27272
  forcedJSONParsing: !0,
27366
27273
  clarifyTimeoutError: !1,
27367
27274
  legacyInterceptorReqResOrdering: !0
27368
- }, ON = {
27275
+ }, TN = {
27369
27276
  isBrowser: !0,
27370
27277
  classes: {
27371
- URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : SN,
27278
+ URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : yN,
27372
27279
  FormData: typeof FormData < "u" ? FormData : null,
27373
27280
  Blob: typeof Blob < "u" ? Blob : null
27374
27281
  },
@@ -27380,58 +27287,58 @@ var EN = class {
27380
27287
  "url",
27381
27288
  "data"
27382
27289
  ]
27383
- }, kN = /* @__PURE__ */ F({
27384
- hasBrowserEnv: () => AN,
27385
- hasStandardBrowserEnv: () => MN,
27386
- hasStandardBrowserWebWorkerEnv: () => NN,
27387
- navigator: () => jN,
27388
- origin: () => PN
27389
- }), AN = typeof window < "u" && typeof document < "u", jN = typeof navigator == "object" && navigator || void 0, MN = AN && (!jN || [
27290
+ }, EN = /* @__PURE__ */ F({
27291
+ hasBrowserEnv: () => DN,
27292
+ hasStandardBrowserEnv: () => kN,
27293
+ hasStandardBrowserWebWorkerEnv: () => AN,
27294
+ navigator: () => ON,
27295
+ origin: () => jN
27296
+ }), DN = typeof window < "u" && typeof document < "u", ON = typeof navigator == "object" && navigator || void 0, kN = DN && (!ON || [
27390
27297
  "ReactNative",
27391
27298
  "NativeScript",
27392
27299
  "NS"
27393
- ].indexOf(jN.product) < 0), NN = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", PN = AN && window.location.href || "http://localhost", FN = {
27394
- ...kN,
27395
- ...ON
27300
+ ].indexOf(ON.product) < 0), AN = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", jN = DN && window.location.href || "http://localhost", MN = {
27301
+ ...EN,
27302
+ ...TN
27396
27303
  };
27397
27304
  //#endregion
27398
27305
  //#region node_modules/axios/lib/helpers/toURLEncodedForm.js
27399
- function IN(e, t) {
27400
- return bN(e, new FN.classes.URLSearchParams(), {
27306
+ function NN(e, t) {
27307
+ return _N(e, new MN.classes.URLSearchParams(), {
27401
27308
  visitor: function(e, t, n, r) {
27402
- return FN.isNode && $.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
27309
+ return MN.isNode && $.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
27403
27310
  },
27404
27311
  ...t
27405
27312
  });
27406
27313
  }
27407
27314
  //#endregion
27408
27315
  //#region node_modules/axios/lib/helpers/formDataToJSON.js
27409
- function LN(e) {
27316
+ function PN(e) {
27410
27317
  return $.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
27411
27318
  }
27412
- function RN(e) {
27319
+ function FN(e) {
27413
27320
  let t = {}, n = Object.keys(e), r, i = n.length, a;
27414
27321
  for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
27415
27322
  return t;
27416
27323
  }
27417
- function zN(e) {
27324
+ function IN(e) {
27418
27325
  function t(e, n, r, i) {
27419
27326
  let a = e[i++];
27420
27327
  if (a === "__proto__") return !0;
27421
27328
  let o = Number.isFinite(+a), s = i >= e.length;
27422
- return a = !a && $.isArray(r) ? r.length : a, s ? ($.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !$.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && $.isArray(r[a]) && (r[a] = RN(r[a])), !o);
27329
+ return a = !a && $.isArray(r) ? r.length : a, s ? ($.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !$.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && $.isArray(r[a]) && (r[a] = FN(r[a])), !o);
27423
27330
  }
27424
27331
  if ($.isFormData(e) && $.isFunction(e.entries)) {
27425
27332
  let n = {};
27426
27333
  return $.forEachEntry(e, (e, r) => {
27427
- t(LN(e), r, n, 0);
27334
+ t(PN(e), r, n, 0);
27428
27335
  }), n;
27429
27336
  }
27430
27337
  return null;
27431
27338
  }
27432
27339
  //#endregion
27433
27340
  //#region node_modules/axios/lib/defaults/index.js
27434
- function BN(e, t, n) {
27341
+ function LN(e, t, n) {
27435
27342
  if ($.isString(e)) try {
27436
27343
  return (t || JSON.parse)(e), $.trim(e);
27437
27344
  } catch (e) {
@@ -27439,8 +27346,8 @@ function BN(e, t, n) {
27439
27346
  }
27440
27347
  return (n || JSON.stringify)(e);
27441
27348
  }
27442
- var VN = {
27443
- transitional: DN,
27349
+ var RN = {
27350
+ transitional: wN,
27444
27351
  adapter: [
27445
27352
  "xhr",
27446
27353
  "http",
@@ -27448,29 +27355,29 @@ var VN = {
27448
27355
  ],
27449
27356
  transformRequest: [function(e, t) {
27450
27357
  let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = $.isObject(e);
27451
- if (i && $.isHTMLForm(e) && (e = new FormData(e)), $.isFormData(e)) return r ? JSON.stringify(zN(e)) : e;
27358
+ if (i && $.isHTMLForm(e) && (e = new FormData(e)), $.isFormData(e)) return r ? JSON.stringify(IN(e)) : e;
27452
27359
  if ($.isArrayBuffer(e) || $.isBuffer(e) || $.isStream(e) || $.isFile(e) || $.isBlob(e) || $.isReadableStream(e)) return e;
27453
27360
  if ($.isArrayBufferView(e)) return e.buffer;
27454
27361
  if ($.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
27455
27362
  let a;
27456
27363
  if (i) {
27457
- if (n.indexOf("application/x-www-form-urlencoded") > -1) return IN(e, this.formSerializer).toString();
27364
+ if (n.indexOf("application/x-www-form-urlencoded") > -1) return NN(e, this.formSerializer).toString();
27458
27365
  if ((a = $.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
27459
27366
  let t = this.env && this.env.FormData;
27460
- return bN(a ? { "files[]": e } : e, t && new t(), this.formSerializer);
27367
+ return _N(a ? { "files[]": e } : e, t && new t(), this.formSerializer);
27461
27368
  }
27462
27369
  }
27463
- return i || r ? (t.setContentType("application/json", !1), BN(e)) : e;
27370
+ return i || r ? (t.setContentType("application/json", !1), LN(e)) : e;
27464
27371
  }],
27465
27372
  transformResponse: [function(e) {
27466
- let t = this.transitional || VN.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json";
27373
+ let t = this.transitional || RN.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json";
27467
27374
  if ($.isResponse(e) || $.isReadableStream(e)) return e;
27468
27375
  if (e && $.isString(e) && (n && !this.responseType || r)) {
27469
27376
  let n = !(t && t.silentJSONParsing) && r;
27470
27377
  try {
27471
27378
  return JSON.parse(e, this.parseReviver);
27472
27379
  } catch (e) {
27473
- if (n) throw e.name === "SyntaxError" ? mN.from(e, mN.ERR_BAD_RESPONSE, this, null, this.response) : e;
27380
+ if (n) throw e.name === "SyntaxError" ? dN.from(e, dN.ERR_BAD_RESPONSE, this, null, this.response) : e;
27474
27381
  }
27475
27382
  }
27476
27383
  return e;
@@ -27481,8 +27388,8 @@ var VN = {
27481
27388
  maxContentLength: -1,
27482
27389
  maxBodyLength: -1,
27483
27390
  env: {
27484
- FormData: FN.classes.FormData,
27485
- Blob: FN.classes.Blob
27391
+ FormData: MN.classes.FormData,
27392
+ Blob: MN.classes.Blob
27486
27393
  },
27487
27394
  validateStatus: function(e) {
27488
27395
  return e >= 200 && e < 300;
@@ -27500,11 +27407,11 @@ $.forEach([
27500
27407
  "put",
27501
27408
  "patch"
27502
27409
  ], (e) => {
27503
- VN.headers[e] = {};
27410
+ RN.headers[e] = {};
27504
27411
  });
27505
27412
  //#endregion
27506
27413
  //#region node_modules/axios/lib/helpers/parseHeaders.js
27507
- var HN = $.toObjectSet([
27414
+ var zN = $.toObjectSet([
27508
27415
  "age",
27509
27416
  "authorization",
27510
27417
  "content-length",
@@ -27522,35 +27429,35 @@ var HN = $.toObjectSet([
27522
27429
  "referer",
27523
27430
  "retry-after",
27524
27431
  "user-agent"
27525
- ]), UN = (e) => {
27432
+ ]), BN = (e) => {
27526
27433
  let t = {}, n, r, i;
27527
27434
  return e && e.split("\n").forEach(function(e) {
27528
- i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && HN[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
27435
+ i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && zN[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
27529
27436
  }), t;
27530
- }, WN = Symbol("internals");
27531
- function GN(e) {
27437
+ }, VN = Symbol("internals");
27438
+ function HN(e) {
27532
27439
  return e && String(e).trim().toLowerCase();
27533
27440
  }
27534
- function KN(e) {
27535
- return e === !1 || e == null ? e : $.isArray(e) ? e.map(KN) : String(e).replace(/[\r\n]+$/, "");
27441
+ function UN(e) {
27442
+ return e === !1 || e == null ? e : $.isArray(e) ? e.map(UN) : String(e).replace(/[\r\n]+$/, "");
27536
27443
  }
27537
- function qN(e) {
27444
+ function WN(e) {
27538
27445
  let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
27539
27446
  for (; r = n.exec(e);) t[r[1]] = r[2];
27540
27447
  return t;
27541
27448
  }
27542
- var JN = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
27543
- function YN(e, t, n, r, i) {
27449
+ var GN = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
27450
+ function KN(e, t, n, r, i) {
27544
27451
  if ($.isFunction(r)) return r.call(this, t, n);
27545
27452
  if (i && (t = n), $.isString(t)) {
27546
27453
  if ($.isString(r)) return t.indexOf(r) !== -1;
27547
27454
  if ($.isRegExp(r)) return r.test(t);
27548
27455
  }
27549
27456
  }
27550
- function XN(e) {
27457
+ function qN(e) {
27551
27458
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
27552
27459
  }
27553
- function ZN(e, t) {
27460
+ function JN(e, t) {
27554
27461
  let n = $.toCamelCase(" " + t);
27555
27462
  [
27556
27463
  "get",
@@ -27565,21 +27472,21 @@ function ZN(e, t) {
27565
27472
  });
27566
27473
  });
27567
27474
  }
27568
- var QN = class {
27475
+ var YN = class {
27569
27476
  constructor(e) {
27570
27477
  e && this.set(e);
27571
27478
  }
27572
27479
  set(e, t, n) {
27573
27480
  let r = this;
27574
27481
  function i(e, t, n) {
27575
- let i = GN(t);
27482
+ let i = HN(t);
27576
27483
  if (!i) throw Error("header name must be a non-empty string");
27577
27484
  let a = $.findKey(r, i);
27578
- (!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = KN(e));
27485
+ (!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = UN(e));
27579
27486
  }
27580
27487
  let a = (e, t) => $.forEach(e, (e, n) => i(e, n, t));
27581
27488
  if ($.isPlainObject(e) || e instanceof this.constructor) a(e, t);
27582
- else if ($.isString(e) && (e = e.trim()) && !JN(e)) a(UN(e), t);
27489
+ else if ($.isString(e) && (e = e.trim()) && !GN(e)) a(BN(e), t);
27583
27490
  else if ($.isObject(e) && $.isIterable(e)) {
27584
27491
  let n = {}, r, i;
27585
27492
  for (let t of e) {
@@ -27591,12 +27498,12 @@ var QN = class {
27591
27498
  return this;
27592
27499
  }
27593
27500
  get(e, t) {
27594
- if (e = GN(e), e) {
27501
+ if (e = HN(e), e) {
27595
27502
  let n = $.findKey(this, e);
27596
27503
  if (n) {
27597
27504
  let e = this[n];
27598
27505
  if (!t) return e;
27599
- if (t === !0) return qN(e);
27506
+ if (t === !0) return WN(e);
27600
27507
  if ($.isFunction(t)) return t.call(this, e, n);
27601
27508
  if ($.isRegExp(t)) return t.exec(e);
27602
27509
  throw TypeError("parser must be boolean|regexp|function");
@@ -27604,18 +27511,18 @@ var QN = class {
27604
27511
  }
27605
27512
  }
27606
27513
  has(e, t) {
27607
- if (e = GN(e), e) {
27514
+ if (e = HN(e), e) {
27608
27515
  let n = $.findKey(this, e);
27609
- return !!(n && this[n] !== void 0 && (!t || YN(this, this[n], n, t)));
27516
+ return !!(n && this[n] !== void 0 && (!t || KN(this, this[n], n, t)));
27610
27517
  }
27611
27518
  return !1;
27612
27519
  }
27613
27520
  delete(e, t) {
27614
27521
  let n = this, r = !1;
27615
27522
  function i(e) {
27616
- if (e = GN(e), e) {
27523
+ if (e = HN(e), e) {
27617
27524
  let i = $.findKey(n, e);
27618
- i && (!t || YN(n, n[i], i, t)) && (delete n[i], r = !0);
27525
+ i && (!t || KN(n, n[i], i, t)) && (delete n[i], r = !0);
27619
27526
  }
27620
27527
  }
27621
27528
  return $.isArray(e) ? e.forEach(i) : i(e), r;
@@ -27624,7 +27531,7 @@ var QN = class {
27624
27531
  let t = Object.keys(this), n = t.length, r = !1;
27625
27532
  for (; n--;) {
27626
27533
  let i = t[n];
27627
- (!e || YN(this, this[i], i, e, !0)) && (delete this[i], r = !0);
27534
+ (!e || KN(this, this[i], i, e, !0)) && (delete this[i], r = !0);
27628
27535
  }
27629
27536
  return r;
27630
27537
  }
@@ -27633,11 +27540,11 @@ var QN = class {
27633
27540
  return $.forEach(this, (r, i) => {
27634
27541
  let a = $.findKey(n, i);
27635
27542
  if (a) {
27636
- t[a] = KN(r), delete t[i];
27543
+ t[a] = UN(r), delete t[i];
27637
27544
  return;
27638
27545
  }
27639
- let o = e ? XN(i) : String(i).trim();
27640
- o !== i && delete t[i], t[o] = KN(r), n[o] = !0;
27546
+ let o = e ? qN(i) : String(i).trim();
27547
+ o !== i && delete t[i], t[o] = UN(r), n[o] = !0;
27641
27548
  }), this;
27642
27549
  }
27643
27550
  concat(...e) {
@@ -27669,22 +27576,22 @@ var QN = class {
27669
27576
  return t.forEach((e) => n.set(e)), n;
27670
27577
  }
27671
27578
  static accessor(e) {
27672
- let t = (this[WN] = this[WN] = { accessors: {} }).accessors, n = this.prototype;
27579
+ let t = (this[VN] = this[VN] = { accessors: {} }).accessors, n = this.prototype;
27673
27580
  function r(e) {
27674
- let r = GN(e);
27675
- t[r] || (ZN(n, e), t[r] = !0);
27581
+ let r = HN(e);
27582
+ t[r] || (JN(n, e), t[r] = !0);
27676
27583
  }
27677
27584
  return $.isArray(e) ? e.forEach(r) : r(e), this;
27678
27585
  }
27679
27586
  };
27680
- QN.accessor([
27587
+ YN.accessor([
27681
27588
  "Content-Type",
27682
27589
  "Content-Length",
27683
27590
  "Accept",
27684
27591
  "Accept-Encoding",
27685
27592
  "User-Agent",
27686
27593
  "Authorization"
27687
- ]), $.reduceDescriptors(QN.prototype, ({ value: e }, t) => {
27594
+ ]), $.reduceDescriptors(YN.prototype, ({ value: e }, t) => {
27688
27595
  let n = t[0].toUpperCase() + t.slice(1);
27689
27596
  return {
27690
27597
  get: () => e,
@@ -27692,42 +27599,42 @@ QN.accessor([
27692
27599
  this[n] = e;
27693
27600
  }
27694
27601
  };
27695
- }), $.freezeMethods(QN);
27602
+ }), $.freezeMethods(YN);
27696
27603
  //#endregion
27697
27604
  //#region node_modules/axios/lib/core/transformData.js
27698
- function $N(e, t) {
27699
- let n = this || VN, r = t || n, i = QN.from(r.headers), a = r.data;
27605
+ function XN(e, t) {
27606
+ let n = this || RN, r = t || n, i = YN.from(r.headers), a = r.data;
27700
27607
  return $.forEach(e, function(e) {
27701
27608
  a = e.call(n, a, i.normalize(), t ? t.status : void 0);
27702
27609
  }), i.normalize(), a;
27703
27610
  }
27704
27611
  //#endregion
27705
27612
  //#region node_modules/axios/lib/cancel/isCancel.js
27706
- function eP(e) {
27613
+ function ZN(e) {
27707
27614
  return !!(e && e.__CANCEL__);
27708
27615
  }
27709
27616
  //#endregion
27710
27617
  //#region node_modules/axios/lib/cancel/CanceledError.js
27711
- var tP = class extends mN {
27618
+ var QN = class extends dN {
27712
27619
  constructor(e, t, n) {
27713
- super(e ?? "canceled", mN.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
27620
+ super(e ?? "canceled", dN.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
27714
27621
  }
27715
27622
  };
27716
27623
  //#endregion
27717
27624
  //#region node_modules/axios/lib/core/settle.js
27718
- function nP(e, t, n) {
27625
+ function $N(e, t, n) {
27719
27626
  let r = n.config.validateStatus;
27720
- !n.status || !r || r(n.status) ? e(n) : t(new mN("Request failed with status code " + n.status, [mN.ERR_BAD_REQUEST, mN.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
27627
+ !n.status || !r || r(n.status) ? e(n) : t(new dN("Request failed with status code " + n.status, [dN.ERR_BAD_REQUEST, dN.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
27721
27628
  }
27722
27629
  //#endregion
27723
27630
  //#region node_modules/axios/lib/helpers/parseProtocol.js
27724
- function rP(e) {
27631
+ function eP(e) {
27725
27632
  let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
27726
27633
  return t && t[1] || "";
27727
27634
  }
27728
27635
  //#endregion
27729
27636
  //#region node_modules/axios/lib/helpers/speedometer.js
27730
- function iP(e, t) {
27637
+ function tP(e, t) {
27731
27638
  e ||= 10;
27732
27639
  let n = Array(e), r = Array(e), i = 0, a = 0, o;
27733
27640
  return t = t === void 0 ? 1e3 : t, function(s) {
@@ -27742,7 +27649,7 @@ function iP(e, t) {
27742
27649
  }
27743
27650
  //#endregion
27744
27651
  //#region node_modules/axios/lib/helpers/throttle.js
27745
- function aP(e, t) {
27652
+ function nP(e, t) {
27746
27653
  let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
27747
27654
  n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
27748
27655
  };
@@ -27755,9 +27662,9 @@ function aP(e, t) {
27755
27662
  }
27756
27663
  //#endregion
27757
27664
  //#region node_modules/axios/lib/helpers/progressEventReducer.js
27758
- var oP = (e, t, n = 3) => {
27759
- let r = 0, i = iP(50, 250);
27760
- return aP((n) => {
27665
+ var rP = (e, t, n = 3) => {
27666
+ let r = 0, i = tP(50, 250);
27667
+ return nP((n) => {
27761
27668
  let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = a - r, c = i(s), l = a <= o;
27762
27669
  r = a, e({
27763
27670
  loaded: a,
@@ -27771,14 +27678,14 @@ var oP = (e, t, n = 3) => {
27771
27678
  [t ? "download" : "upload"]: !0
27772
27679
  });
27773
27680
  }, n);
27774
- }, sP = (e, t) => {
27681
+ }, iP = (e, t) => {
27775
27682
  let n = e != null;
27776
27683
  return [(r) => t[0]({
27777
27684
  lengthComputable: n,
27778
27685
  total: e,
27779
27686
  loaded: r
27780
27687
  }), t[1]];
27781
- }, cP = (e) => (...t) => $.asap(() => e(...t)), lP = FN.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, FN.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(FN.origin), FN.navigator && /(msie|trident)/i.test(FN.navigator.userAgent)) : () => !0, uP = FN.hasStandardBrowserEnv ? {
27688
+ }, aP = (e) => (...t) => $.asap(() => e(...t)), oP = MN.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, MN.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(MN.origin), MN.navigator && /(msie|trident)/i.test(MN.navigator.userAgent)) : () => !0, sP = MN.hasStandardBrowserEnv ? {
27782
27689
  write(e, t, n, r, i, a, o) {
27783
27690
  if (typeof document > "u") return;
27784
27691
  let s = [`${e}=${encodeURIComponent(t)}`];
@@ -27801,24 +27708,24 @@ var oP = (e, t, n = 3) => {
27801
27708
  };
27802
27709
  //#endregion
27803
27710
  //#region node_modules/axios/lib/helpers/isAbsoluteURL.js
27804
- function dP(e) {
27711
+ function cP(e) {
27805
27712
  return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
27806
27713
  }
27807
27714
  //#endregion
27808
27715
  //#region node_modules/axios/lib/helpers/combineURLs.js
27809
- function fP(e, t) {
27716
+ function lP(e, t) {
27810
27717
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
27811
27718
  }
27812
27719
  //#endregion
27813
27720
  //#region node_modules/axios/lib/core/buildFullPath.js
27814
- function pP(e, t, n) {
27815
- let r = !dP(t);
27816
- return e && (r || n == 0) ? fP(e, t) : t;
27721
+ function uP(e, t, n) {
27722
+ let r = !cP(t);
27723
+ return e && (r || n == 0) ? lP(e, t) : t;
27817
27724
  }
27818
27725
  //#endregion
27819
27726
  //#region node_modules/axios/lib/core/mergeConfig.js
27820
- var mP = (e) => e instanceof QN ? { ...e } : e;
27821
- function hP(e, t) {
27727
+ var dP = (e) => e instanceof YN ? { ...e } : e;
27728
+ function fP(e, t) {
27822
27729
  t ||= {};
27823
27730
  let n = {};
27824
27731
  function r(e, t, n, r) {
@@ -27868,7 +27775,7 @@ function hP(e, t) {
27868
27775
  socketPath: o,
27869
27776
  responseEncoding: o,
27870
27777
  validateStatus: s,
27871
- headers: (e, t, n) => i(mP(e), mP(t), n, !0)
27778
+ headers: (e, t, n) => i(dP(e), dP(t), n, !0)
27872
27779
  };
27873
27780
  return $.forEach(Object.keys({
27874
27781
  ...e,
@@ -27881,10 +27788,10 @@ function hP(e, t) {
27881
27788
  }
27882
27789
  //#endregion
27883
27790
  //#region node_modules/axios/lib/helpers/resolveConfig.js
27884
- var gP = (e) => {
27885
- let t = hP({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
27886
- if (t.headers = o = QN.from(o), t.url = TN(pP(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), $.isFormData(n)) {
27887
- if (FN.hasStandardBrowserEnv || FN.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0);
27791
+ var pP = (e) => {
27792
+ let t = fP({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
27793
+ if (t.headers = o = YN.from(o), t.url = SN(uP(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), $.isFormData(n)) {
27794
+ if (MN.hasStandardBrowserEnv || MN.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0);
27888
27795
  else if ($.isFunction(n.getHeaders)) {
27889
27796
  let e = n.getHeaders(), t = ["content-type", "content-length"];
27890
27797
  Object.entries(e).forEach(([e, n]) => {
@@ -27892,14 +27799,14 @@ var gP = (e) => {
27892
27799
  });
27893
27800
  }
27894
27801
  }
27895
- if (FN.hasStandardBrowserEnv && (r && $.isFunction(r) && (r = r(t)), r || r !== !1 && lP(t.url))) {
27896
- let e = i && a && uP.read(a);
27802
+ if (MN.hasStandardBrowserEnv && (r && $.isFunction(r) && (r = r(t)), r || r !== !1 && oP(t.url))) {
27803
+ let e = i && a && sP.read(a);
27897
27804
  e && o.set(i, e);
27898
27805
  }
27899
27806
  return t;
27900
- }, _P = typeof XMLHttpRequest < "u" && function(e) {
27807
+ }, mP = typeof XMLHttpRequest < "u" && function(e) {
27901
27808
  return new Promise(function(t, n) {
27902
- let r = gP(e), i = r.data, a = QN.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
27809
+ let r = pP(e), i = r.data, a = YN.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
27903
27810
  function m() {
27904
27811
  f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
27905
27812
  }
@@ -27907,8 +27814,8 @@ var gP = (e) => {
27907
27814
  h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
27908
27815
  function g() {
27909
27816
  if (!h) return;
27910
- let r = QN.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
27911
- nP(function(e) {
27817
+ let r = YN.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
27818
+ $N(function(e) {
27912
27819
  t(e), m();
27913
27820
  }, function(e) {
27914
27821
  n(e), m();
@@ -27924,36 +27831,36 @@ var gP = (e) => {
27924
27831
  "onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
27925
27832
  !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
27926
27833
  }, h.onabort = function() {
27927
- h &&= (n(new mN("Request aborted", mN.ECONNABORTED, e, h)), null);
27834
+ h &&= (n(new dN("Request aborted", dN.ECONNABORTED, e, h)), null);
27928
27835
  }, h.onerror = function(t) {
27929
- let r = new mN(t && t.message ? t.message : "Network Error", mN.ERR_NETWORK, e, h);
27836
+ let r = new dN(t && t.message ? t.message : "Network Error", dN.ERR_NETWORK, e, h);
27930
27837
  r.event = t || null, n(r), h = null;
27931
27838
  }, h.ontimeout = function() {
27932
- let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || DN;
27933
- r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new mN(t, i.clarifyTimeoutError ? mN.ETIMEDOUT : mN.ECONNABORTED, e, h)), h = null;
27839
+ let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || wN;
27840
+ r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new dN(t, i.clarifyTimeoutError ? dN.ETIMEDOUT : dN.ECONNABORTED, e, h)), h = null;
27934
27841
  }, i === void 0 && a.setContentType(null), "setRequestHeader" in h && $.forEach(a.toJSON(), function(e, t) {
27935
27842
  h.setRequestHeader(t, e);
27936
- }), $.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = oP(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = oP(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
27937
- h &&= (n(!t || t.type ? new tP(null, e, h) : t), h.abort(), null);
27843
+ }), $.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = rP(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = rP(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
27844
+ h &&= (n(!t || t.type ? new QN(null, e, h) : t), h.abort(), null);
27938
27845
  }, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
27939
- let _ = rP(r.url);
27940
- if (_ && FN.protocols.indexOf(_) === -1) {
27941
- n(new mN("Unsupported protocol " + _ + ":", mN.ERR_BAD_REQUEST, e));
27846
+ let _ = eP(r.url);
27847
+ if (_ && MN.protocols.indexOf(_) === -1) {
27848
+ n(new dN("Unsupported protocol " + _ + ":", dN.ERR_BAD_REQUEST, e));
27942
27849
  return;
27943
27850
  }
27944
27851
  h.send(i || null);
27945
27852
  });
27946
- }, vP = (e, t) => {
27853
+ }, hP = (e, t) => {
27947
27854
  let { length: n } = e = e ? e.filter(Boolean) : [];
27948
27855
  if (t || n) {
27949
27856
  let n = new AbortController(), r, i = function(e) {
27950
27857
  if (!r) {
27951
27858
  r = !0, o();
27952
27859
  let t = e instanceof Error ? e : this.reason;
27953
- n.abort(t instanceof mN ? t : new tP(t instanceof Error ? t.message : t));
27860
+ n.abort(t instanceof dN ? t : new QN(t instanceof Error ? t.message : t));
27954
27861
  }
27955
27862
  }, a = t && setTimeout(() => {
27956
- a = null, i(new mN(`timeout of ${t}ms exceeded`, mN.ETIMEDOUT));
27863
+ a = null, i(new dN(`timeout of ${t}ms exceeded`, dN.ETIMEDOUT));
27957
27864
  }, t), o = () => {
27958
27865
  e &&= (a && clearTimeout(a), a = null, e.forEach((e) => {
27959
27866
  e.unsubscribe ? e.unsubscribe(i) : e.removeEventListener("abort", i);
@@ -27963,7 +27870,7 @@ var gP = (e) => {
27963
27870
  let { signal: s } = n;
27964
27871
  return s.unsubscribe = () => $.asap(o), s;
27965
27872
  }
27966
- }, yP = function* (e, t) {
27873
+ }, gP = function* (e, t) {
27967
27874
  let n = e.byteLength;
27968
27875
  if (!t || n < t) {
27969
27876
  yield e;
@@ -27971,9 +27878,9 @@ var gP = (e) => {
27971
27878
  }
27972
27879
  let r = 0, i;
27973
27880
  for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
27974
- }, bP = async function* (e, t) {
27975
- for await (let n of xP(e)) yield* yP(n, t);
27976
- }, xP = async function* (e) {
27881
+ }, _P = async function* (e, t) {
27882
+ for await (let n of vP(e)) yield* gP(n, t);
27883
+ }, vP = async function* (e) {
27977
27884
  if (e[Symbol.asyncIterator]) {
27978
27885
  yield* e;
27979
27886
  return;
@@ -27988,8 +27895,8 @@ var gP = (e) => {
27988
27895
  } finally {
27989
27896
  await t.cancel();
27990
27897
  }
27991
- }, SP = (e, t, n, r) => {
27992
- let i = bP(e, t), a = 0, o, s = (e) => {
27898
+ }, yP = (e, t, n, r) => {
27899
+ let i = _P(e, t), a = 0, o, s = (e) => {
27993
27900
  o || (o = !0, r && r(e));
27994
27901
  };
27995
27902
  return new ReadableStream({
@@ -28010,21 +27917,21 @@ var gP = (e) => {
28010
27917
  return s(e), i.return();
28011
27918
  }
28012
27919
  }, { highWaterMark: 2 });
28013
- }, CP = 64 * 1024, { isFunction: wP } = $, TP = (({ Request: e, Response: t }) => ({
27920
+ }, bP = 64 * 1024, { isFunction: xP } = $, SP = (({ Request: e, Response: t }) => ({
28014
27921
  Request: e,
28015
27922
  Response: t
28016
- }))($.global), { ReadableStream: EP, TextEncoder: DP } = $.global, OP = (e, ...t) => {
27923
+ }))($.global), { ReadableStream: CP, TextEncoder: wP } = $.global, TP = (e, ...t) => {
28017
27924
  try {
28018
27925
  return !!e(...t);
28019
27926
  } catch {
28020
27927
  return !1;
28021
27928
  }
28022
- }, kP = (e) => {
28023
- e = $.merge.call({ skipUndefined: !0 }, TP, e);
28024
- let { fetch: t, Request: n, Response: r } = e, i = t ? wP(t) : typeof fetch == "function", a = wP(n), o = wP(r);
27929
+ }, EP = (e) => {
27930
+ e = $.merge.call({ skipUndefined: !0 }, SP, e);
27931
+ let { fetch: t, Request: n, Response: r } = e, i = t ? xP(t) : typeof fetch == "function", a = xP(n), o = xP(r);
28025
27932
  if (!i) return !1;
28026
- let s = i && wP(EP), c = i && (typeof DP == "function" ? ((e) => (t) => e.encode(t))(new DP()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && OP(() => {
28027
- let e = !1, t = new EP(), r = new n(FN.origin, {
27933
+ let s = i && xP(CP), c = i && (typeof wP == "function" ? ((e) => (t) => e.encode(t))(new wP()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && TP(() => {
27934
+ let e = !1, t = new CP(), r = new n(MN.origin, {
28028
27935
  body: t,
28029
27936
  method: "POST",
28030
27937
  get duplex() {
@@ -28032,7 +27939,7 @@ var gP = (e) => {
28032
27939
  }
28033
27940
  }).headers.has("Content-Type");
28034
27941
  return t.cancel(), e && !r;
28035
- }), u = o && s && OP(() => $.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
27942
+ }), u = o && s && TP(() => $.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
28036
27943
  i && [
28037
27944
  "text",
28038
27945
  "arrayBuffer",
@@ -28043,13 +27950,13 @@ var gP = (e) => {
28043
27950
  !d[e] && (d[e] = (t, n) => {
28044
27951
  let r = t && t[e];
28045
27952
  if (r) return r.call(t);
28046
- throw new mN(`Response type '${e}' is not supported`, mN.ERR_NOT_SUPPORT, n);
27953
+ throw new dN(`Response type '${e}' is not supported`, dN.ERR_NOT_SUPPORT, n);
28047
27954
  });
28048
27955
  });
28049
27956
  let f = async (e) => {
28050
27957
  if (e == null) return 0;
28051
27958
  if ($.isBlob(e)) return e.size;
28052
- if ($.isSpecCompliantForm(e)) return (await new n(FN.origin, {
27959
+ if ($.isSpecCompliantForm(e)) return (await new n(MN.origin, {
28053
27960
  method: "POST",
28054
27961
  body: e
28055
27962
  }).arrayBuffer()).byteLength;
@@ -28057,9 +27964,9 @@ var gP = (e) => {
28057
27964
  if ($.isURLSearchParams(e) && (e += ""), $.isString(e)) return (await c(e)).byteLength;
28058
27965
  }, p = async (e, t) => $.toFiniteNumber(e.getContentLength()) ?? f(t);
28059
27966
  return async (e) => {
28060
- let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } = gP(e), x = t || fetch;
27967
+ let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } = pP(e), x = t || fetch;
28061
27968
  _ = _ ? (_ + "").toLowerCase() : "text";
28062
- let S = vP([c, f && f.toAbortSignal()], m), C = null, w = S && S.unsubscribe && (() => {
27969
+ let S = hP([c, f && f.toAbortSignal()], m), C = null, w = S && S.unsubscribe && (() => {
28063
27970
  S.unsubscribe();
28064
27971
  }), T;
28065
27972
  try {
@@ -28070,8 +27977,8 @@ var gP = (e) => {
28070
27977
  duplex: "half"
28071
27978
  }), t;
28072
27979
  if ($.isFormData(s) && (t = e.headers.get("content-type")) && v.setContentType(t), e.body) {
28073
- let [t, n] = sP(T, oP(cP(g)));
28074
- s = SP(e.body, CP, t, n);
27980
+ let [t, n] = iP(T, rP(aP(g)));
27981
+ s = yP(e.body, bP, t, n);
28075
27982
  }
28076
27983
  }
28077
27984
  $.isString(y) || (y = y ? "include" : "omit");
@@ -28095,17 +28002,17 @@ var gP = (e) => {
28095
28002
  ].forEach((t) => {
28096
28003
  e[t] = f[t];
28097
28004
  });
28098
- let t = $.toFiniteNumber(f.headers.get("content-length")), [n, i] = h && sP(t, oP(cP(h), !0)) || [];
28099
- f = new r(SP(f.body, CP, n, () => {
28005
+ let t = $.toFiniteNumber(f.headers.get("content-length")), [n, i] = h && iP(t, rP(aP(h), !0)) || [];
28006
+ f = new r(yP(f.body, bP, n, () => {
28100
28007
  i && i(), w && w();
28101
28008
  }), e);
28102
28009
  }
28103
28010
  _ ||= "text";
28104
28011
  let E = await d[$.findKey(d, _) || "text"](f, e);
28105
28012
  return !m && w && w(), await new Promise((t, n) => {
28106
- nP(t, n, {
28013
+ $N(t, n, {
28107
28014
  data: E,
28108
- headers: QN.from(f.headers),
28015
+ headers: YN.from(f.headers),
28109
28016
  status: f.status,
28110
28017
  statusText: f.statusText,
28111
28018
  config: e,
@@ -28113,27 +28020,27 @@ var gP = (e) => {
28113
28020
  });
28114
28021
  });
28115
28022
  } catch (t) {
28116
- throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new mN("Network Error", mN.ERR_NETWORK, e, C, t && t.response), { cause: t.cause || t }) : mN.from(t, t && t.code, e, C, t && t.response);
28023
+ throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new dN("Network Error", dN.ERR_NETWORK, e, C, t && t.response), { cause: t.cause || t }) : dN.from(t, t && t.code, e, C, t && t.response);
28117
28024
  }
28118
28025
  };
28119
- }, AP = /* @__PURE__ */ new Map(), jP = (e) => {
28026
+ }, DP = /* @__PURE__ */ new Map(), OP = (e) => {
28120
28027
  let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
28121
28028
  r,
28122
28029
  i,
28123
28030
  n
28124
- ], o = a.length, s, c, l = AP;
28125
- for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : kP(t)), l = c;
28031
+ ], o = a.length, s, c, l = DP;
28032
+ for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : EP(t)), l = c;
28126
28033
  return c;
28127
28034
  };
28128
- jP();
28035
+ OP();
28129
28036
  //#endregion
28130
28037
  //#region node_modules/axios/lib/adapters/adapters.js
28131
- var MP = {
28038
+ var kP = {
28132
28039
  http: null,
28133
- xhr: _P,
28134
- fetch: { get: jP }
28040
+ xhr: mP,
28041
+ fetch: { get: OP }
28135
28042
  };
28136
- $.forEach(MP, (e, t) => {
28043
+ $.forEach(kP, (e, t) => {
28137
28044
  if (e) {
28138
28045
  try {
28139
28046
  Object.defineProperty(e, "name", { value: t });
@@ -28141,46 +28048,46 @@ $.forEach(MP, (e, t) => {
28141
28048
  Object.defineProperty(e, "adapterName", { value: t });
28142
28049
  }
28143
28050
  });
28144
- var NP = (e) => `- ${e}`, PP = (e) => $.isFunction(e) || e === null || e === !1;
28145
- function FP(e, t) {
28051
+ var AP = (e) => `- ${e}`, jP = (e) => $.isFunction(e) || e === null || e === !1;
28052
+ function MP(e, t) {
28146
28053
  e = $.isArray(e) ? e : [e];
28147
28054
  let { length: n } = e, r, i, a = {};
28148
28055
  for (let o = 0; o < n; o++) {
28149
28056
  r = e[o];
28150
28057
  let n;
28151
- if (i = r, !PP(r) && (i = MP[(n = String(r)).toLowerCase()], i === void 0)) throw new mN(`Unknown adapter '${n}'`);
28058
+ if (i = r, !jP(r) && (i = kP[(n = String(r)).toLowerCase()], i === void 0)) throw new dN(`Unknown adapter '${n}'`);
28152
28059
  if (i && ($.isFunction(i) || (i = i.get(t)))) break;
28153
28060
  a[n || "#" + o] = i;
28154
28061
  }
28155
28062
  if (!i) {
28156
28063
  let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
28157
- throw new mN("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(NP).join("\n") : " " + NP(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
28064
+ throw new dN("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(AP).join("\n") : " " + AP(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
28158
28065
  }
28159
28066
  return i;
28160
28067
  }
28161
- var IP = {
28162
- getAdapter: FP,
28163
- adapters: MP
28068
+ var NP = {
28069
+ getAdapter: MP,
28070
+ adapters: kP
28164
28071
  };
28165
28072
  //#endregion
28166
28073
  //#region node_modules/axios/lib/core/dispatchRequest.js
28167
- function LP(e) {
28168
- if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new tP(null, e);
28074
+ function PP(e) {
28075
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new QN(null, e);
28169
28076
  }
28170
- function RP(e) {
28171
- return LP(e), e.headers = QN.from(e.headers), e.data = $N.call(e, e.transformRequest), [
28077
+ function FP(e) {
28078
+ return PP(e), e.headers = YN.from(e.headers), e.data = XN.call(e, e.transformRequest), [
28172
28079
  "post",
28173
28080
  "put",
28174
28081
  "patch"
28175
- ].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), IP.getAdapter(e.adapter || VN.adapter, e)(e).then(function(t) {
28176
- return LP(e), t.data = $N.call(e, e.transformResponse, t), t.headers = QN.from(t.headers), t;
28082
+ ].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), NP.getAdapter(e.adapter || RN.adapter, e)(e).then(function(t) {
28083
+ return PP(e), t.data = XN.call(e, e.transformResponse, t), t.headers = YN.from(t.headers), t;
28177
28084
  }, function(t) {
28178
- return eP(t) || (LP(e), t && t.response && (t.response.data = $N.call(e, e.transformResponse, t.response), t.response.headers = QN.from(t.response.headers))), Promise.reject(t);
28085
+ return ZN(t) || (PP(e), t && t.response && (t.response.data = XN.call(e, e.transformResponse, t.response), t.response.headers = YN.from(t.response.headers))), Promise.reject(t);
28179
28086
  });
28180
28087
  }
28181
28088
  //#endregion
28182
28089
  //#region node_modules/axios/lib/env/data.js
28183
- var zP = "1.14.0", BP = {};
28090
+ var IP = "1.14.0", LP = {};
28184
28091
  [
28185
28092
  "object",
28186
28093
  "boolean",
@@ -28189,43 +28096,43 @@ var zP = "1.14.0", BP = {};
28189
28096
  "string",
28190
28097
  "symbol"
28191
28098
  ].forEach((e, t) => {
28192
- BP[e] = function(n) {
28099
+ LP[e] = function(n) {
28193
28100
  return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
28194
28101
  };
28195
28102
  });
28196
- var VP = {};
28197
- BP.transitional = function(e, t, n) {
28103
+ var RP = {};
28104
+ LP.transitional = function(e, t, n) {
28198
28105
  function r(e, t) {
28199
- return "[Axios v" + zP + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
28106
+ return "[Axios v" + IP + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
28200
28107
  }
28201
28108
  return (n, i, a) => {
28202
- if (e === !1) throw new mN(r(i, " has been removed" + (t ? " in " + t : "")), mN.ERR_DEPRECATED);
28203
- return t && !VP[i] && (VP[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(n, i, a) : !0;
28109
+ if (e === !1) throw new dN(r(i, " has been removed" + (t ? " in " + t : "")), dN.ERR_DEPRECATED);
28110
+ return t && !RP[i] && (RP[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(n, i, a) : !0;
28204
28111
  };
28205
- }, BP.spelling = function(e) {
28112
+ }, LP.spelling = function(e) {
28206
28113
  return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
28207
28114
  };
28208
- function HP(e, t, n) {
28209
- if (typeof e != "object") throw new mN("options must be an object", mN.ERR_BAD_OPTION_VALUE);
28115
+ function zP(e, t, n) {
28116
+ if (typeof e != "object") throw new dN("options must be an object", dN.ERR_BAD_OPTION_VALUE);
28210
28117
  let r = Object.keys(e), i = r.length;
28211
28118
  for (; i-- > 0;) {
28212
28119
  let a = r[i], o = t[a];
28213
28120
  if (o) {
28214
28121
  let t = e[a], n = t === void 0 || o(t, a, e);
28215
- if (n !== !0) throw new mN("option " + a + " must be " + n, mN.ERR_BAD_OPTION_VALUE);
28122
+ if (n !== !0) throw new dN("option " + a + " must be " + n, dN.ERR_BAD_OPTION_VALUE);
28216
28123
  continue;
28217
28124
  }
28218
- if (n !== !0) throw new mN("Unknown option " + a, mN.ERR_BAD_OPTION);
28125
+ if (n !== !0) throw new dN("Unknown option " + a, dN.ERR_BAD_OPTION);
28219
28126
  }
28220
28127
  }
28221
- var UP = {
28222
- assertOptions: HP,
28223
- validators: BP
28224
- }, WP = UP.validators, GP = class {
28128
+ var BP = {
28129
+ assertOptions: zP,
28130
+ validators: LP
28131
+ }, VP = BP.validators, HP = class {
28225
28132
  constructor(e) {
28226
28133
  this.defaults = e || {}, this.interceptors = {
28227
- request: new EN(),
28228
- response: new EN()
28134
+ request: new CN(),
28135
+ response: new CN()
28229
28136
  };
28230
28137
  }
28231
28138
  async request(e, t) {
@@ -28244,19 +28151,19 @@ var UP = {
28244
28151
  }
28245
28152
  }
28246
28153
  _request(e, t) {
28247
- typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = hP(this.defaults, t);
28154
+ typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = fP(this.defaults, t);
28248
28155
  let { transitional: n, paramsSerializer: r, headers: i } = t;
28249
- n !== void 0 && UP.assertOptions(n, {
28250
- silentJSONParsing: WP.transitional(WP.boolean),
28251
- forcedJSONParsing: WP.transitional(WP.boolean),
28252
- clarifyTimeoutError: WP.transitional(WP.boolean),
28253
- legacyInterceptorReqResOrdering: WP.transitional(WP.boolean)
28254
- }, !1), r != null && ($.isFunction(r) ? t.paramsSerializer = { serialize: r } : UP.assertOptions(r, {
28255
- encode: WP.function,
28256
- serialize: WP.function
28257
- }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), UP.assertOptions(t, {
28258
- baseUrl: WP.spelling("baseURL"),
28259
- withXsrfToken: WP.spelling("withXSRFToken")
28156
+ n !== void 0 && BP.assertOptions(n, {
28157
+ silentJSONParsing: VP.transitional(VP.boolean),
28158
+ forcedJSONParsing: VP.transitional(VP.boolean),
28159
+ clarifyTimeoutError: VP.transitional(VP.boolean),
28160
+ legacyInterceptorReqResOrdering: VP.transitional(VP.boolean)
28161
+ }, !1), r != null && ($.isFunction(r) ? t.paramsSerializer = { serialize: r } : BP.assertOptions(r, {
28162
+ encode: VP.function,
28163
+ serialize: VP.function
28164
+ }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), BP.assertOptions(t, {
28165
+ baseUrl: VP.spelling("baseURL"),
28166
+ withXsrfToken: VP.spelling("withXSRFToken")
28260
28167
  }, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
28261
28168
  let a = i && $.merge(i.common, i[t.method]);
28262
28169
  i && $.forEach([
@@ -28269,12 +28176,12 @@ var UP = {
28269
28176
  "common"
28270
28177
  ], (e) => {
28271
28178
  delete i[e];
28272
- }), t.headers = QN.concat(a, i);
28179
+ }), t.headers = YN.concat(a, i);
28273
28180
  let o = [], s = !0;
28274
28181
  this.interceptors.request.forEach(function(e) {
28275
28182
  if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
28276
28183
  s &&= e.synchronous;
28277
- let n = t.transitional || DN;
28184
+ let n = t.transitional || wN;
28278
28185
  n && n.legacyInterceptorReqResOrdering ? o.unshift(e.fulfilled, e.rejected) : o.push(e.fulfilled, e.rejected);
28279
28186
  });
28280
28187
  let c = [];
@@ -28283,7 +28190,7 @@ var UP = {
28283
28190
  });
28284
28191
  let l, u = 0, d;
28285
28192
  if (!s) {
28286
- let e = [RP.bind(this), void 0];
28193
+ let e = [FP.bind(this), void 0];
28287
28194
  for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
28288
28195
  return l;
28289
28196
  }
@@ -28299,7 +28206,7 @@ var UP = {
28299
28206
  }
28300
28207
  }
28301
28208
  try {
28302
- l = RP.call(this, f);
28209
+ l = FP.call(this, f);
28303
28210
  } catch (e) {
28304
28211
  return Promise.reject(e);
28305
28212
  }
@@ -28307,7 +28214,7 @@ var UP = {
28307
28214
  return l;
28308
28215
  }
28309
28216
  getUri(e) {
28310
- return e = hP(this.defaults, e), TN(pP(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
28217
+ return e = fP(this.defaults, e), SN(uP(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
28311
28218
  }
28312
28219
  };
28313
28220
  $.forEach([
@@ -28316,8 +28223,8 @@ $.forEach([
28316
28223
  "head",
28317
28224
  "options"
28318
28225
  ], function(e) {
28319
- GP.prototype[e] = function(t, n) {
28320
- return this.request(hP(n || {}, {
28226
+ HP.prototype[e] = function(t, n) {
28227
+ return this.request(fP(n || {}, {
28321
28228
  method: e,
28322
28229
  url: t,
28323
28230
  data: (n || {}).data
@@ -28330,7 +28237,7 @@ $.forEach([
28330
28237
  ], function(e) {
28331
28238
  function t(t) {
28332
28239
  return function(n, r, i) {
28333
- return this.request(hP(i || {}, {
28240
+ return this.request(fP(i || {}, {
28334
28241
  method: e,
28335
28242
  headers: t ? { "Content-Type": "multipart/form-data" } : {},
28336
28243
  url: n,
@@ -28338,11 +28245,11 @@ $.forEach([
28338
28245
  }));
28339
28246
  };
28340
28247
  }
28341
- GP.prototype[e] = t(), GP.prototype[e + "Form"] = t(!0);
28248
+ HP.prototype[e] = t(), HP.prototype[e + "Form"] = t(!0);
28342
28249
  });
28343
28250
  //#endregion
28344
28251
  //#region node_modules/axios/lib/cancel/CancelToken.js
28345
- var KP = class e {
28252
+ var UP = class e {
28346
28253
  constructor(e) {
28347
28254
  if (typeof e != "function") throw TypeError("executor must be a function.");
28348
28255
  let t;
@@ -28363,7 +28270,7 @@ var KP = class e {
28363
28270
  n.unsubscribe(t);
28364
28271
  }, r;
28365
28272
  }, e(function(e, r, i) {
28366
- n.reason || (n.reason = new tP(e, r, i), t(n.reason));
28273
+ n.reason || (n.reason = new QN(e, r, i), t(n.reason));
28367
28274
  });
28368
28275
  }
28369
28276
  throwIfRequested() {
@@ -28399,19 +28306,19 @@ var KP = class e {
28399
28306
  };
28400
28307
  //#endregion
28401
28308
  //#region node_modules/axios/lib/helpers/spread.js
28402
- function qP(e) {
28309
+ function WP(e) {
28403
28310
  return function(t) {
28404
28311
  return e.apply(null, t);
28405
28312
  };
28406
28313
  }
28407
28314
  //#endregion
28408
28315
  //#region node_modules/axios/lib/helpers/isAxiosError.js
28409
- function JP(e) {
28316
+ function GP(e) {
28410
28317
  return $.isObject(e) && e.isAxiosError === !0;
28411
28318
  }
28412
28319
  //#endregion
28413
28320
  //#region node_modules/axios/lib/helpers/HttpStatusCode.js
28414
- var YP = {
28321
+ var KP = {
28415
28322
  Continue: 100,
28416
28323
  SwitchingProtocols: 101,
28417
28324
  Processing: 102,
@@ -28482,24 +28389,24 @@ var YP = {
28482
28389
  SslHandshakeFailed: 525,
28483
28390
  InvalidSslCertificate: 526
28484
28391
  };
28485
- Object.entries(YP).forEach(([e, t]) => {
28486
- YP[t] = e;
28392
+ Object.entries(KP).forEach(([e, t]) => {
28393
+ KP[t] = e;
28487
28394
  });
28488
28395
  //#endregion
28489
28396
  //#region node_modules/axios/lib/axios.js
28490
- function XP(e) {
28491
- let t = new GP(e), n = rM(GP.prototype.request, t);
28492
- return $.extend(n, GP.prototype, t, { allOwnKeys: !0 }), $.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
28493
- return XP(hP(e, t));
28397
+ function qP(e) {
28398
+ let t = new HP(e), n = eM(HP.prototype.request, t);
28399
+ return $.extend(n, HP.prototype, t, { allOwnKeys: !0 }), $.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
28400
+ return qP(fP(e, t));
28494
28401
  }, n;
28495
28402
  }
28496
- var ZP = XP(VN);
28497
- ZP.Axios = GP, ZP.CanceledError = tP, ZP.CancelToken = KP, ZP.isCancel = eP, ZP.VERSION = zP, ZP.toFormData = bN, ZP.AxiosError = mN, ZP.Cancel = ZP.CanceledError, ZP.all = function(e) {
28403
+ var JP = qP(RN);
28404
+ JP.Axios = HP, JP.CanceledError = QN, JP.CancelToken = UP, JP.isCancel = ZN, JP.VERSION = IP, JP.toFormData = _N, JP.AxiosError = dN, JP.Cancel = JP.CanceledError, JP.all = function(e) {
28498
28405
  return Promise.all(e);
28499
- }, ZP.spread = qP, ZP.isAxiosError = JP, ZP.mergeConfig = hP, ZP.AxiosHeaders = QN, ZP.formToJSON = (e) => zN($.isHTMLForm(e) ? new FormData(e) : e), ZP.getAdapter = IP.getAdapter, ZP.HttpStatusCode = YP, ZP.default = ZP;
28406
+ }, JP.spread = WP, JP.isAxiosError = GP, JP.mergeConfig = fP, JP.AxiosHeaders = YN, JP.formToJSON = (e) => IN($.isHTMLForm(e) ? new FormData(e) : e), JP.getAdapter = NP.getAdapter, JP.HttpStatusCode = KP, JP.default = JP;
28500
28407
  //#endregion
28501
28408
  //#region node_modules/axios/index.js
28502
- var { Axios: QP, AxiosError: $P, CanceledError: eF, isCancel: tF, CancelToken: nF, VERSION: rF, all: iF, Cancel: aF, isAxiosError: oF, spread: sF, toFormData: cF, AxiosHeaders: lF, HttpStatusCode: uF, formToJSON: dF, getAdapter: fF, mergeConfig: pF } = ZP, mF = {
28409
+ var { Axios: YP, AxiosError: XP, CanceledError: ZP, isCancel: QP, CancelToken: $P, VERSION: eF, all: tF, Cancel: nF, isAxiosError: rF, spread: iF, toFormData: aF, AxiosHeaders: oF, HttpStatusCode: sF, formToJSON: cF, getAdapter: lF, mergeConfig: uF } = JP, dF = {
28503
28410
  DEBUG: 1e4,
28504
28411
  INFO: 2e4,
28505
28412
  WARN: 3e4,
@@ -28507,13 +28414,13 @@ var { Axios: QP, AxiosError: $P, CanceledError: eF, isCancel: tF, CancelToken: n
28507
28414
  };
28508
28415
  //#endregion
28509
28416
  //#region src/utils/logger/trace-utils.ts
28510
- function hF() {
28417
+ function fF() {
28511
28418
  let e = crypto.getRandomValues(new Uint8Array(16));
28512
28419
  return Array.from(e).map((e) => e.toString(16).padStart(2, "0")).join("");
28513
28420
  }
28514
28421
  //#endregion
28515
28422
  //#region src/utils/logger/logger.ts
28516
- var gF = class e {
28423
+ var pF = class e {
28517
28424
  static instance;
28518
28425
  contextMap = /* @__PURE__ */ new Map();
28519
28426
  static getInstance() {
@@ -28521,15 +28428,15 @@ var gF = class e {
28521
28428
  }
28522
28429
  startTrace(e) {
28523
28430
  let t = {
28524
- traceId: hF(),
28525
- spanId: hF().substring(0, 16)
28431
+ traceId: fF(),
28432
+ spanId: fF().substring(0, 16)
28526
28433
  };
28527
28434
  return this.contextMap.set(e, t), t;
28528
28435
  }
28529
28436
  startSpan(e) {
28530
28437
  let t = this.contextMap.get(e);
28531
28438
  if (!t) return this.startTrace(e);
28532
- let n = hF().substring(0, 16), r = {
28439
+ let n = fF().substring(0, 16), r = {
28533
28440
  traceId: t.traceId,
28534
28441
  spanId: n,
28535
28442
  parentSpanId: t.spanId
@@ -28559,13 +28466,13 @@ new class e {
28559
28466
  };
28560
28467
  }
28561
28468
  createLogEntry(t, n, r) {
28562
- let i = gF.getCurrentContext(this.name) ?? gF.startTrace(this.name);
28469
+ let i = pF.getCurrentContext(this.name) ?? pF.startTrace(this.name);
28563
28470
  return {
28564
28471
  "@timestamp": (/* @__PURE__ */ new Date()).toISOString(),
28565
28472
  message: n,
28566
28473
  logger_name: this.name,
28567
28474
  level: t,
28568
- level_value: mF[t],
28475
+ level_value: dF[t],
28569
28476
  applicationName: e.globalConfig.applicationName,
28570
28477
  traceId: i.traceId,
28571
28478
  spanId: i.spanId,
@@ -28575,7 +28482,7 @@ new class e {
28575
28482
  };
28576
28483
  }
28577
28484
  log(t, n, r) {
28578
- if (!(!this.config.enabled || !e.globalConfig.enabled || mF[t] < mF[this.config.minLogLevel])) {
28485
+ if (!(!this.config.enabled || !e.globalConfig.enabled || dF[t] < dF[this.config.minLogLevel])) {
28579
28486
  let e = this.createLogEntry(t, n, r);
28580
28487
  console.log(JSON.stringify(e));
28581
28488
  }
@@ -28593,10 +28500,10 @@ new class e {
28593
28500
  this.log("ERROR", e, t);
28594
28501
  }
28595
28502
  startSpan() {
28596
- gF.startSpan(this.name);
28503
+ pF.startSpan(this.name);
28597
28504
  }
28598
28505
  clearTraceContext() {
28599
- gF.clearContext(this.name);
28506
+ pF.clearContext(this.name);
28600
28507
  }
28601
28508
  setEnabled(e) {
28602
28509
  this.config.enabled = e;
@@ -28620,21 +28527,21 @@ new class e {
28620
28527
  e.globalConfig.applicationName = t;
28621
28528
  }
28622
28529
  }("KeycloakService");
28623
- var _F = null;
28624
- function vF() {
28625
- return _F?.token ? `Bearer ${_F.token}` : void 0;
28530
+ var mF = null;
28531
+ function hF() {
28532
+ return mF?.token ? `Bearer ${mF.token}` : void 0;
28626
28533
  }
28627
- function yF() {
28628
- return _F;
28534
+ function gF() {
28535
+ return mF;
28629
28536
  }
28630
28537
  //#endregion
28631
28538
  //#region src/api/rest.service.ts
28632
- var bF = new Qj({
28633
- queryCache: new Zj({ onError: (e, t) => {
28634
- (t.meta?.handleGlobalError ?? !0) && e instanceof $P && XA(e);
28539
+ var _F = new Yj({
28540
+ queryCache: new Jj({ onError: (e, t) => {
28541
+ (t.meta?.handleGlobalError ?? !0) && e instanceof XP && qA(e);
28635
28542
  } }),
28636
- mutationCache: new Jj({ onError: (e, t, n, r) => {
28637
- (r.meta?.handleGlobalError ?? !0) && e instanceof $P && XA(e);
28543
+ mutationCache: new Gj({ onError: (e, t, n, r) => {
28544
+ (r.meta?.handleGlobalError ?? !0) && e instanceof XP && qA(e);
28638
28545
  } }),
28639
28546
  defaultOptions: {
28640
28547
  queries: {
@@ -28645,39 +28552,39 @@ var bF = new Qj({
28645
28552
  mutations: { retry: !1 }
28646
28553
  }
28647
28554
  });
28648
- function xF(e, t, n) {
28555
+ function vF(e, t, n) {
28649
28556
  let r = e.startsWith("/") ? e : `/${e}`;
28650
- return t ? t === "public" ? SF(r) : t === "private" ? (r.includes("/public/") && console.warn("[RestService] Private accessScope includes \"/public\" segment:", r), CF(r)) : n ? CF(r) : SF(r) : r;
28557
+ return t ? t === "public" ? yF(r) : t === "private" ? (r.includes("/public/") && console.warn("[RestService] Private accessScope includes \"/public\" segment:", r), bF(r)) : n ? bF(r) : yF(r) : r;
28651
28558
  }
28652
- function SF(e) {
28559
+ function yF(e) {
28653
28560
  return e.startsWith("/public/") ? e : `/public${e}`;
28654
28561
  }
28655
- function CF(e) {
28562
+ function bF(e) {
28656
28563
  return e.startsWith("/public/") ? e.replace(/^\/public/, "") : e;
28657
28564
  }
28658
- function wF(e, t = "") {
28565
+ function xF(e, t = "") {
28659
28566
  return `${e.replace(/\/+$/, "")}${t ? `/${t.replace(/^\/+/, "")}` : ""}`;
28660
28567
  }
28661
- function TF({ baseUrl: e, prefix: t = "", withCollation: n = !0 }) {
28662
- let r = ZP.create({
28663
- baseURL: wF(e, t),
28568
+ function SF({ baseUrl: e, prefix: t = "", withCollation: n = !0 }) {
28569
+ let r = JP.create({
28570
+ baseURL: xF(e, t),
28664
28571
  paramsSerializer: { indexes: null }
28665
28572
  });
28666
28573
  return r.interceptors.request.use((e) => {
28667
- let t = yF()?.authenticated ?? !1, r = e.anonymous ?? !1;
28668
- e.accessScope && (e.url = xF(e.url || "", e.accessScope, t));
28669
- let i = vF();
28670
- return i && !r && (e.headers.Authorization = i), n && (e.headers.Collation = vA.locale), !e.headers.has("Content-Type") && !(e.data instanceof FormData) && (e.headers["Content-Type"] = "application/json"), e.method?.toLowerCase() === "get" && (e.data = {}), e;
28574
+ let t = gF()?.authenticated ?? !1, r = e.anonymous ?? !1;
28575
+ e.accessScope && (e.url = vF(e.url || "", e.accessScope, t));
28576
+ let i = hF();
28577
+ return i && !r && (e.headers.Authorization = i), n && (e.headers.Collation = hA.locale), !e.headers.has("Content-Type") && !(e.data instanceof FormData) && (e.headers["Content-Type"] = "application/json"), e.method?.toLowerCase() === "get" && (e.data = {}), e;
28671
28578
  }, (e) => Promise.reject(e)), r;
28672
28579
  }
28673
- var EF;
28674
- function DF(e, t = "") {
28675
- EF = TF({
28580
+ var CF;
28581
+ function wF(e, t = "") {
28582
+ CF = SF({
28676
28583
  baseUrl: e,
28677
28584
  prefix: t
28678
28585
  });
28679
28586
  }
28680
- function OF(e) {
28587
+ function TF(e) {
28681
28588
  if (!e || typeof e != "object") return null;
28682
28589
  let t = e, n = t.url?.api, r = t.url?.apiPaths?.genai;
28683
28590
  return !n || !r ? null : {
@@ -28685,36 +28592,36 @@ function OF(e) {
28685
28592
  genaiApiPath: r
28686
28593
  };
28687
28594
  }
28688
- function kF(e) {
28689
- let t = OF(e);
28595
+ function EF(e) {
28596
+ let t = TF(e);
28690
28597
  if (!t) throw Error("GenAI API base URL is missing in environment.json.");
28691
- DF(t.apiBaseUrl, t.genaiApiPath);
28598
+ wF(t.apiBaseUrl, t.genaiApiPath);
28692
28599
  }
28693
28600
  //#endregion
28694
28601
  //#region src/api/genai.service.ts
28695
- async function AF(e, t) {
28696
- if (!EF) throw Error("RestGenaiService is not initialized.");
28602
+ async function DF(e, t) {
28603
+ if (!CF) throw Error("RestGenaiService is not initialized.");
28697
28604
  let n = new URLSearchParams();
28698
28605
  n.set("username", e), n.set("password", t);
28699
- let r = await EF.post("/login", n, {
28606
+ let r = await CF.post("/login", n, {
28700
28607
  anonymous: !0,
28701
28608
  headers: { "Content-Type": "application/x-www-form-urlencoded" }
28702
28609
  });
28703
- return r.data?.access_token && xk(r.data.access_token), r.data;
28610
+ return r.data?.access_token && vk(r.data.access_token), r.data;
28704
28611
  }
28705
- async function jF(e) {
28706
- if (!EF) throw Error("RestGenaiService is not initialized.");
28707
- let t = bk(), n = { "Content-Type": "application/json" };
28708
- return t && (n.Authorization = `Bearer ${t}`), (await EF.post("/agent-message", e, {
28612
+ async function OF(e) {
28613
+ if (!CF) throw Error("RestGenaiService is not initialized.");
28614
+ let t = _k(), n = { "Content-Type": "application/json" };
28615
+ return t && (n.Authorization = `Bearer ${t}`), (await CF.post("/agent-message", e, {
28709
28616
  anonymous: !0,
28710
28617
  headers: n
28711
28618
  })).data;
28712
28619
  }
28713
28620
  //#endregion
28714
28621
  //#region src/queries/utils/createApiMutation.ts
28715
- function MF({ mutationKey: e, mutationFn: t, defaultOptions: n = {} }) {
28622
+ function kF({ mutationKey: e, mutationFn: t, defaultOptions: n = {} }) {
28716
28623
  return function(r) {
28717
- return nM({
28624
+ return $j({
28718
28625
  ...n,
28719
28626
  ...r,
28720
28627
  meta: {
@@ -28728,27 +28635,27 @@ function MF({ mutationKey: e, mutationFn: t, defaultOptions: n = {} }) {
28728
28635
  }
28729
28636
  //#endregion
28730
28637
  //#region src/queries/genai/useSendAgentMessageMutation.ts
28731
- var NF = MF({
28638
+ var AF = kF({
28732
28639
  mutationKey: ["genai", "agent-message"],
28733
- mutationFn: async ({ payload: e }) => jF(e)
28640
+ mutationFn: async ({ payload: e }) => OF(e)
28734
28641
  });
28735
28642
  //#endregion
28736
28643
  //#region src/hooks/useAgentChat.ts
28737
- function PF() {
28644
+ function jF() {
28738
28645
  let e = globalThis.crypto;
28739
28646
  return e?.randomUUID ? e.randomUUID() : `${Date.now()}-${Math.random().toString(16).slice(2)}`;
28740
28647
  }
28741
- function FF() {
28742
- let e = tk(), t = rk(), n = NF(), [r, i] = y([]), [a, o] = y(""), [s, c] = y(null), [l, d] = y(!1), [f, p] = y(null), m = v(!1), h = u((e) => {
28648
+ function MF() {
28649
+ let e = QO(), t = ek(), n = AF(), [r, i] = y([]), [a, o] = y(""), [s, c] = y(null), [l, d] = y(!1), [f, p] = y(null), m = v(!1), h = u((e) => {
28743
28650
  let t = {
28744
- id: PF(),
28651
+ id: jF(),
28745
28652
  sentBy: "user",
28746
28653
  text: e
28747
28654
  };
28748
28655
  i((e) => [...e, t]);
28749
28656
  }, []), g = u((e, t) => {
28750
28657
  let n = {
28751
- id: PF(),
28658
+ id: jF(),
28752
28659
  sentBy: "assistant",
28753
28660
  text: e,
28754
28661
  createdAt: t
@@ -28760,19 +28667,19 @@ function FF() {
28760
28667
  p("Chat is not configured.");
28761
28668
  return;
28762
28669
  }
28763
- let a = sk(t);
28670
+ let a = ik(t);
28764
28671
  if (!a) {
28765
28672
  p("Chat configuration is missing.");
28766
28673
  return;
28767
28674
  }
28768
- let l = ik(e), u = await ak(e);
28675
+ let l = tk(e), u = await nk(e);
28769
28676
  if (!l || !u) {
28770
28677
  p("Missing customer runtime.");
28771
28678
  return;
28772
28679
  }
28773
28680
  d(!0), p(null);
28774
28681
  try {
28775
- let e = uk(await n.mutateAsync({ payload: {
28682
+ let e = sk(await n.mutateAsync({ payload: {
28776
28683
  message: r,
28777
28684
  chat_id: s,
28778
28685
  assistant_id: a,
@@ -28804,7 +28711,7 @@ function FF() {
28804
28711
  sendMessage: _,
28805
28712
  sendInitialMessage: u(async () => {
28806
28713
  if (m.current || l || r.length > 0 || !e || !t) return;
28807
- let n = ik(e), i = lk(t), a = i ? `${i} ${n}`.trim() : `Hello, my customer id is ${n}`;
28714
+ let n = tk(e), i = ok(t), a = i ? `${i} ${n}`.trim() : `Hello, my customer id is ${n}`;
28808
28715
  m.current = !0, await _(a, { showUserBubble: !1 });
28809
28716
  }, [
28810
28717
  e,
@@ -28821,8 +28728,8 @@ function FF() {
28821
28728
  }
28822
28729
  //#endregion
28823
28730
  //#region src/hooks/useAgentChatRuntimeInfo.ts
28824
- function IF() {
28825
- let e = tk(), { runtimeInfo: t, setRuntimeInfo: n } = vk(), r = u(async () => {
28731
+ function NF() {
28732
+ let e = QO(), { runtimeInfo: t, setRuntimeInfo: n } = hk(), r = u(async () => {
28826
28733
  if (!e) {
28827
28734
  n({
28828
28735
  customerId: null,
@@ -28831,7 +28738,7 @@ function IF() {
28831
28738
  });
28832
28739
  return;
28833
28740
  }
28834
- let t = ik(e), r = await ak(e), i = bk();
28741
+ let t = tk(e), r = await nk(e), i = _k();
28835
28742
  n({
28836
28743
  customerId: t,
28837
28744
  hasCustomerToken: !!r,
@@ -28846,12 +28753,85 @@ function IF() {
28846
28753
  };
28847
28754
  }
28848
28755
  //#endregion
28756
+ //#region src/hooks/usePointerInteraction.ts
28757
+ function PF() {
28758
+ let e = v(null);
28759
+ return {
28760
+ startInteraction: u((t) => {
28761
+ let { cursor: n, onMove: r, onEnd: i } = t;
28762
+ document.body.style.cursor = n, document.body.style.userSelect = "none";
28763
+ let a = () => {
28764
+ document.body.style.cursor = "", document.body.style.userSelect = "", document.removeEventListener("pointermove", r), document.removeEventListener("pointerup", a), i?.(), e.current = null;
28765
+ };
28766
+ document.addEventListener("pointermove", r), document.addEventListener("pointerup", a), e.current = a;
28767
+ }, []),
28768
+ cleanup: u(() => {
28769
+ e.current?.();
28770
+ }, [])
28771
+ };
28772
+ }
28773
+ //#endregion
28774
+ //#region src/hooks/useDraggable.ts
28775
+ var FF = 4;
28776
+ function IF(e = {}) {
28777
+ let { skipSelector: t = "button, [role=\"button\"], a, input, textarea", onDragChange: n } = e, [r, i] = y({
28778
+ x: 0,
28779
+ y: 0
28780
+ }), [a, o] = y(!1), s = v({
28781
+ startX: 0,
28782
+ startY: 0,
28783
+ startOffset: {
28784
+ x: 0,
28785
+ y: 0
28786
+ }
28787
+ }), { startInteraction: c } = PF();
28788
+ return {
28789
+ offset: r,
28790
+ isDragging: a,
28791
+ handlePointerDown: u((e) => {
28792
+ let a = e.target;
28793
+ if (t && a?.closest(t)) return;
28794
+ let l = e.clientX, u = e.clientY, d = { ...r }, f = 0, p = !1;
28795
+ s.current = {
28796
+ startX: l,
28797
+ startY: u,
28798
+ startOffset: d
28799
+ }, c({
28800
+ cursor: "grab",
28801
+ onMove: (e) => {
28802
+ let t = e.clientX - l, r = e.clientY - u;
28803
+ if (f = Math.abs(t) + Math.abs(r), !p && f >= FF && (p = !0, o(!0), document.body.style.cursor = "grabbing", document.body.style.userSelect = "none"), p) {
28804
+ let e = {
28805
+ x: d.x + t,
28806
+ y: d.y + r
28807
+ };
28808
+ i(e), n?.(e);
28809
+ }
28810
+ },
28811
+ onEnd: () => {
28812
+ p && o(!1);
28813
+ }
28814
+ });
28815
+ }, [
28816
+ r,
28817
+ t,
28818
+ n,
28819
+ c
28820
+ ]),
28821
+ style: {
28822
+ transform: `translate(${r.x}px, ${r.y}px)`,
28823
+ cursor: a ? "grabbing" : "grab",
28824
+ touchAction: "none"
28825
+ }
28826
+ };
28827
+ }
28828
+ //#endregion
28849
28829
  //#region src/hooks/useResizable.ts
28850
28830
  function LF(e = {}) {
28851
28831
  let { axis: t = "y", direction: n = 1, onResizeChange: r } = e, [i, a] = y(0), o = v({
28852
28832
  startPos: 0,
28853
28833
  startOffset: 0
28854
- }), { startInteraction: s } = XO(), c = t === "y" ? "ns-resize" : t === "x" ? "ew-resize" : "nwse-resize";
28834
+ }), { startInteraction: s } = PF(), c = t === "y" ? "ns-resize" : t === "x" ? "ew-resize" : "nwse-resize";
28855
28835
  return {
28856
28836
  offset: i,
28857
28837
  handlePointerDown: u((e) => {
@@ -29007,8 +28987,8 @@ function BF(e = {}) {
29007
28987
  //#endregion
29008
28988
  //#region src/hooks/useAgentChatSpeechLanguage.ts
29009
28989
  function VF() {
29010
- let e = tk();
29011
- return _(() => e && ok(e) || "en-US", [e]);
28990
+ let e = QO();
28991
+ return _(() => e && rk(e) || "en-US", [e]);
29012
28992
  }
29013
28993
  var HF = o({
29014
28994
  keycloak: {
@@ -29040,9 +29020,9 @@ function UF() {
29040
29020
  }
29041
29021
  //#endregion
29042
29022
  //#region src/queries/genai/useGenaiLoginMutation.ts
29043
- var WF = MF({
29023
+ var WF = kF({
29044
29024
  mutationKey: ["genai", "login"],
29045
- mutationFn: async ({ email: e, clientSecret: t }) => AF(e, t)
29025
+ mutationFn: async ({ email: e, clientSecret: t }) => DF(e, t)
29046
29026
  });
29047
29027
  //#endregion
29048
29028
  //#region src/hooks/useGenaiLogin.ts
@@ -29050,7 +29030,7 @@ function GF() {
29050
29030
  let e = UF(), { mutateAsync: t } = WF(), [n, r] = y(!1), [i, a] = y(null), [o, s] = y(!1), c = v(null);
29051
29031
  return f(() => {
29052
29032
  (async () => {
29053
- if (bk()) {
29033
+ if (_k()) {
29054
29034
  s(!0);
29055
29035
  return;
29056
29036
  }
@@ -29088,7 +29068,7 @@ function JF({ ui: e }) {
29088
29068
  let [t, { open: n, close: r }] = mt(!1), i = e?.zIndex ?? KF, a = e?.withinPortal ?? !0, o = {
29089
29069
  bottom: e?.fabPosition?.bottom ?? qF.bottom,
29090
29070
  right: e?.fabPosition?.right ?? qF.right
29091
- }, { messages: s, composerText: c, setComposerText: l, isLoading: u, error: d, sendMessage: f, sendInitialMessage: p, canSend: m } = FF(), { runtimeInfo: h, refreshRuntimeInfo: g } = IF(), v = QO({ skipSelector: "button, input, textarea, [role=\"button\"]" }), y = LF({ axis: "y" }), b = LF({
29071
+ }, { messages: s, composerText: c, setComposerText: l, isLoading: u, error: d, sendMessage: f, sendInitialMessage: p, canSend: m } = MF(), { runtimeInfo: h, refreshRuntimeInfo: g } = NF(), v = IF({ skipSelector: "button, input, textarea, [role=\"button\"]" }), y = LF({ axis: "y" }), b = LF({
29092
29072
  axis: "x",
29093
29073
  direction: -1
29094
29074
  }), x = zF([s.length, u]), { isListening: S, isSupported: C, startListening: D, stopListening: O, reset: k } = BF({
@@ -29102,7 +29082,7 @@ function JF({ ui: e }) {
29102
29082
  }), []), j = async () => {
29103
29083
  n(), await g(), await p();
29104
29084
  };
29105
- return /* @__PURE__ */ E(w, { children: [!t && /* @__PURE__ */ T($O, {
29085
+ return /* @__PURE__ */ E(w, { children: [!t && /* @__PURE__ */ T(XO, {
29106
29086
  onClick: () => void j(),
29107
29087
  zIndex: i,
29108
29088
  position: o
@@ -29138,13 +29118,13 @@ function JF({ ui: e }) {
29138
29118
  //#endregion
29139
29119
  //#region src/providers/AgentChatProviders.tsx
29140
29120
  function YF({ runtime: e, children: t }) {
29141
- return /* @__PURE__ */ T(ek.Provider, {
29121
+ return /* @__PURE__ */ T(ZO.Provider, {
29142
29122
  value: e,
29143
29123
  children: t
29144
29124
  });
29145
29125
  }
29146
29126
  function XF({ config: e, children: t }) {
29147
- return /* @__PURE__ */ T(nk.Provider, {
29127
+ return /* @__PURE__ */ T($O.Provider, {
29148
29128
  value: e,
29149
29129
  children: t
29150
29130
  });
@@ -33561,13 +33541,13 @@ async function IB(e) {
33561
33541
  //#endregion
33562
33542
  //#region src/lib/agent-widget.tsx
33563
33543
  function LB({ config: e, runtime: t, ui: n }) {
33564
- return vA.locale || vA.activate("en"), /* @__PURE__ */ T(ob, {
33565
- i18n: vA,
33544
+ return hA.locale || hA.activate("en"), /* @__PURE__ */ T(ob, {
33545
+ i18n: hA,
33566
33546
  children: /* @__PURE__ */ T(Gn, {
33567
33547
  theme: PB,
33568
33548
  defaultColorScheme: "auto",
33569
- children: /* @__PURE__ */ T(tM, {
33570
- client: bF,
33549
+ children: /* @__PURE__ */ T(Qj, {
33550
+ client: _F,
33571
33551
  children: /* @__PURE__ */ T(XF, {
33572
33552
  config: e,
33573
33553
  children: /* @__PURE__ */ T(YF, {
@@ -33607,7 +33587,7 @@ function VB(e, t) {
33607
33587
  }
33608
33588
  async function HB(e, t) {
33609
33589
  let n = await IB(t.environmentUrl);
33610
- return kF(n), zB(e, {
33590
+ return EF(n), zB(e, {
33611
33591
  config: VB(BB(n), t.config),
33612
33592
  runtime: t.runtime,
33613
33593
  ui: t.ui