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