flysoft-react-ui 1.2.6 → 1.2.7
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/components/layout/DataField.d.ts.map +1 -1
- package/dist/index.js +497 -499
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as L, jsx as l, Fragment as je } from "react/jsx-runtime";
|
|
2
2
|
import G, { useState as te, useEffect as ie, createContext as Xe, useContext as He, useMemo as Me, useRef as ye, useCallback as me } from "react";
|
|
3
3
|
import { default as Hi } from "react";
|
|
4
|
-
import { Link as
|
|
4
|
+
import { Link as Mn, useSearchParams as ft } from "react-router-dom";
|
|
5
5
|
import { createPortal as _e } from "react-dom";
|
|
6
6
|
function Ee(e) {
|
|
7
7
|
if (!e) return "";
|
|
@@ -175,7 +175,7 @@ const Ve = (e) => e ? e.startsWith("#") || e.startsWith("rgb") || e.startsWith("
|
|
|
175
175
|
"gray-200": "#e5e7eb",
|
|
176
176
|
"gray-100": "#f3f4f6",
|
|
177
177
|
"gray-50": "#f9fafb"
|
|
178
|
-
}[e.toLowerCase()] || e : void 0,
|
|
178
|
+
}[e.toLowerCase()] || e : void 0, rr = ({
|
|
179
179
|
to: e,
|
|
180
180
|
target: t,
|
|
181
181
|
variant: r = "primary",
|
|
@@ -332,7 +332,7 @@ const Ve = (e) => e ? e.startsWith("#") || e.startsWith("rgb") || e.startsWith("
|
|
|
332
332
|
}
|
|
333
333
|
);
|
|
334
334
|
}
|
|
335
|
-
return /* @__PURE__ */ L(
|
|
335
|
+
return /* @__PURE__ */ L(Mn, { to: e, ...R, children: [
|
|
336
336
|
/* @__PURE__ */ l("span", { className: "absolute inset-0 pointer-events-none", children: b.map((g) => /* @__PURE__ */ l(
|
|
337
337
|
"span",
|
|
338
338
|
{
|
|
@@ -411,11 +411,11 @@ const Ve = (e) => e ? e.startsWith("#") || e.startsWith("rgb") || e.startsWith("
|
|
|
411
411
|
}
|
|
412
412
|
);
|
|
413
413
|
Ce.displayName = "Input";
|
|
414
|
-
const
|
|
415
|
-
|
|
416
|
-
const mt = () => G.useContext(
|
|
414
|
+
const Pr = G.createContext(null);
|
|
415
|
+
Pr.displayName = "HookFormContext";
|
|
416
|
+
const mt = () => G.useContext(Pr);
|
|
417
417
|
typeof window < "u" ? G.useLayoutEffect : G.useEffect;
|
|
418
|
-
const
|
|
418
|
+
const jr = G.forwardRef(
|
|
419
419
|
({
|
|
420
420
|
label: e,
|
|
421
421
|
labelPosition: t = "right",
|
|
@@ -501,8 +501,8 @@ const Pr = G.forwardRef(
|
|
|
501
501
|
] });
|
|
502
502
|
}
|
|
503
503
|
);
|
|
504
|
-
|
|
505
|
-
const
|
|
504
|
+
jr.displayName = "Checkbox";
|
|
505
|
+
const Vr = G.forwardRef(
|
|
506
506
|
({
|
|
507
507
|
options: e,
|
|
508
508
|
value: t,
|
|
@@ -520,7 +520,7 @@ const jr = G.forwardRef(
|
|
|
520
520
|
}, b) => {
|
|
521
521
|
const [h, w] = G.useState(
|
|
522
522
|
t || (f ? [] : "")
|
|
523
|
-
), [p, v] = G.useState(""), [T, y] = G.useState(!1), [M, C] = G.useState(-1), [k, j] = G.useState(null), P = G.useRef(null), O = G.useRef(null), $ = G.useRef(null), D = G.useRef(null), I = G.useRef(!1), _ = G.useMemo(() => "name" in m && m.name !== void 0, [m]), R = _ && "name" in m ? m.name : void 0, x = mt()?.setValue, A = _ || f ? p : typeof
|
|
523
|
+
), [p, v] = G.useState(""), [T, y] = G.useState(!1), [M, C] = G.useState(-1), [k, j] = G.useState(null), P = G.useRef(null), O = G.useRef(null), $ = G.useRef(null), D = G.useRef(null), I = G.useRef(!1), _ = G.useMemo(() => "name" in m && m.name !== void 0, [m]), R = _ && "name" in m ? m.name : void 0, x = mt()?.setValue, A = _ || f ? p : typeof h == "string" ? h : "", S = G.useMemo(() => {
|
|
524
524
|
const B = _ && D.current ? D.current.value : t !== void 0 ? t : h;
|
|
525
525
|
if (Array.isArray(B)) return B;
|
|
526
526
|
if (typeof B == "string") {
|
|
@@ -880,7 +880,7 @@ const jr = G.forwardRef(
|
|
|
880
880
|
onMouseEnter: () => C(N),
|
|
881
881
|
children: u ? u(J) : /* @__PURE__ */ L(je, { children: [
|
|
882
882
|
f && /* @__PURE__ */ l(
|
|
883
|
-
|
|
883
|
+
jr,
|
|
884
884
|
{
|
|
885
885
|
readOnly: !0,
|
|
886
886
|
checked: S.includes(String(F(J) ?? "")),
|
|
@@ -912,8 +912,8 @@ const jr = G.forwardRef(
|
|
|
912
912
|
] });
|
|
913
913
|
}
|
|
914
914
|
);
|
|
915
|
-
|
|
916
|
-
const
|
|
915
|
+
Vr.displayName = "AutocompleteInput";
|
|
916
|
+
const In = Vr, nr = (e) => e ? e.startsWith("#") || e.startsWith("rgb") || e.startsWith("hsl") ? e : {
|
|
917
917
|
white: "#ffffff",
|
|
918
918
|
black: "#000000",
|
|
919
919
|
"gray-800": "#1f2937",
|
|
@@ -925,7 +925,7 @@ const Mn = jr, rr = (e) => e ? e.startsWith("#") || e.startsWith("rgb") || e.sta
|
|
|
925
925
|
"gray-200": "#e5e7eb",
|
|
926
926
|
"gray-100": "#f3f4f6",
|
|
927
927
|
"gray-50": "#f9fafb"
|
|
928
|
-
}[e.toLowerCase()] || e : void 0,
|
|
928
|
+
}[e.toLowerCase()] || e : void 0, Pn = ({
|
|
929
929
|
children: e,
|
|
930
930
|
variant: t = "primary",
|
|
931
931
|
size: r = "md",
|
|
@@ -962,8 +962,8 @@ const Mn = jr, rr = (e) => e ? e.startsWith("#") || e.startsWith("rgb") || e.sta
|
|
|
962
962
|
md: "py-0.5 text-sm",
|
|
963
963
|
lg: "py-1 text-base"
|
|
964
964
|
}, h = o ? "" : r === "sm" ? "px-2" : r === "md" ? "px-2.5" : "px-3", w = o ? a === "left" ? r === "sm" ? "flex-1 pr-2" : r === "md" ? "flex-1 pr-2.5" : "flex-1 pr-3" : r === "sm" ? "flex-1 pl-2" : r === "md" ? "flex-1 pl-2.5" : "flex-1 pl-3" : "", p = o ? a === "left" ? r === "sm" ? "pl-2" : r === "md" ? "pl-2.5" : "pl-3" : r === "sm" ? "pr-2" : r === "md" ? "pr-2.5" : "pr-3" : "", v = n ? "rounded-full" : "rounded-md", T = o ? "gap-2" : "", y = r === "sm" ? "text-xs" : r === "md" ? "text-sm" : "text-base", M = c ? "" : m[t], C = c ? {
|
|
965
|
-
backgroundColor:
|
|
966
|
-
color:
|
|
965
|
+
backgroundColor: nr(c) || c,
|
|
966
|
+
color: nr(u) || u || "#1f2937"
|
|
967
967
|
// gray-800 por defecto
|
|
968
968
|
} : {}, k = d && !o ? "cursor-pointer" : "", j = `${f} ${M} ${b[r]} ${h} ${v} ${T} ${k} ${s}`, P = () => {
|
|
969
969
|
if (!o) return null;
|
|
@@ -1012,29 +1012,29 @@ const Mn = jr, rr = (e) => e ? e.startsWith("#") || e.startsWith("rgb") || e.sta
|
|
|
1012
1012
|
o && a === "right" && P()
|
|
1013
1013
|
] });
|
|
1014
1014
|
}, Ua = (e) => e.toFixed(2).replace(".", ",").replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1.");
|
|
1015
|
-
function
|
|
1015
|
+
function Fr(e, t) {
|
|
1016
1016
|
return function() {
|
|
1017
1017
|
return e.apply(t, arguments);
|
|
1018
1018
|
};
|
|
1019
1019
|
}
|
|
1020
|
-
const { toString:
|
|
1021
|
-
const r =
|
|
1020
|
+
const { toString: jn } = Object.prototype, { getPrototypeOf: Yt } = Object, { iterator: Rt, toStringTag: zr } = Symbol, Dt = /* @__PURE__ */ ((e) => (t) => {
|
|
1021
|
+
const r = jn.call(t);
|
|
1022
1022
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
1023
1023
|
})(/* @__PURE__ */ Object.create(null)), Ie = (e) => (e = e.toLowerCase(), (t) => Dt(t) === e), Lt = (e) => (t) => typeof t === e, { isArray: tt } = Array, et = Lt("undefined");
|
|
1024
1024
|
function ht(e) {
|
|
1025
1025
|
return e !== null && !et(e) && e.constructor !== null && !et(e.constructor) && Re(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1026
1026
|
}
|
|
1027
|
-
const
|
|
1028
|
-
function
|
|
1027
|
+
const Br = Ie("ArrayBuffer");
|
|
1028
|
+
function Vn(e) {
|
|
1029
1029
|
let t;
|
|
1030
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
1030
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Br(e.buffer), t;
|
|
1031
1031
|
}
|
|
1032
|
-
const
|
|
1032
|
+
const Fn = Lt("string"), Re = Lt("function"), Ur = Lt("number"), pt = (e) => e !== null && typeof e == "object", zn = (e) => e === !0 || e === !1, St = (e) => {
|
|
1033
1033
|
if (Dt(e) !== "object")
|
|
1034
1034
|
return !1;
|
|
1035
1035
|
const t = Yt(e);
|
|
1036
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
1037
|
-
},
|
|
1036
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(zr in e) && !(Rt in e);
|
|
1037
|
+
}, Bn = (e) => {
|
|
1038
1038
|
if (!pt(e) || ht(e))
|
|
1039
1039
|
return !1;
|
|
1040
1040
|
try {
|
|
@@ -1042,11 +1042,11 @@ const Vn = Lt("string"), Re = Lt("function"), Br = Lt("number"), pt = (e) => e !
|
|
|
1042
1042
|
} catch {
|
|
1043
1043
|
return !1;
|
|
1044
1044
|
}
|
|
1045
|
-
},
|
|
1045
|
+
}, Un = Ie("Date"), _n = Ie("File"), Hn = Ie("Blob"), Wn = Ie("FileList"), qn = (e) => pt(e) && Re(e.pipe), Yn = (e) => {
|
|
1046
1046
|
let t;
|
|
1047
1047
|
return e && (typeof FormData == "function" && e instanceof FormData || Re(e.append) && ((t = Dt(e)) === "formdata" || // detect form-data instance
|
|
1048
1048
|
t === "object" && Re(e.toString) && e.toString() === "[object FormData]"));
|
|
1049
|
-
},
|
|
1049
|
+
}, Gn = Ie("URLSearchParams"), [Jn, Kn, Xn, Zn] = ["ReadableStream", "Request", "Response", "Headers"].map(Ie), Qn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1050
1050
|
function gt(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
1051
1051
|
if (e === null || typeof e > "u")
|
|
1052
1052
|
return;
|
|
@@ -1063,7 +1063,7 @@ function gt(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
1063
1063
|
i = o[n], t.call(null, e[i], i, e);
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function _r(e, t) {
|
|
1067
1067
|
if (ht(e))
|
|
1068
1068
|
return null;
|
|
1069
1069
|
t = t.toLowerCase();
|
|
@@ -1074,23 +1074,23 @@ function Ur(e, t) {
|
|
|
1074
1074
|
return s;
|
|
1075
1075
|
return null;
|
|
1076
1076
|
}
|
|
1077
|
-
const Ge = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
1077
|
+
const Ge = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Hr = (e) => !et(e) && e !== Ge;
|
|
1078
1078
|
function Bt() {
|
|
1079
|
-
const { caseless: e, skipUndefined: t } =
|
|
1080
|
-
const a = e &&
|
|
1079
|
+
const { caseless: e, skipUndefined: t } = Hr(this) && this || {}, r = {}, n = (s, o) => {
|
|
1080
|
+
const a = e && _r(r, o) || o;
|
|
1081
1081
|
St(r[a]) && St(s) ? r[a] = Bt(r[a], s) : St(s) ? r[a] = Bt({}, s) : tt(s) ? r[a] = s.slice() : (!t || !et(s)) && (r[a] = s);
|
|
1082
1082
|
};
|
|
1083
1083
|
for (let s = 0, o = arguments.length; s < o; s++)
|
|
1084
1084
|
arguments[s] && gt(arguments[s], n);
|
|
1085
1085
|
return r;
|
|
1086
1086
|
}
|
|
1087
|
-
const
|
|
1088
|
-
r && Re(s) ? e[o] =
|
|
1089
|
-
}, { allOwnKeys: n }), e),
|
|
1087
|
+
const es = (e, t, r, { allOwnKeys: n } = {}) => (gt(t, (s, o) => {
|
|
1088
|
+
r && Re(s) ? e[o] = Fr(s, r) : e[o] = s;
|
|
1089
|
+
}, { allOwnKeys: n }), e), ts = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), rs = (e, t, r, n) => {
|
|
1090
1090
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
1091
1091
|
value: t.prototype
|
|
1092
1092
|
}), r && Object.assign(e.prototype, r);
|
|
1093
|
-
},
|
|
1093
|
+
}, ns = (e, t, r, n) => {
|
|
1094
1094
|
let s, o, a;
|
|
1095
1095
|
const i = {};
|
|
1096
1096
|
if (t = t || {}, e == null) return t;
|
|
@@ -1100,45 +1100,45 @@ const Qn = (e, t, r, { allOwnKeys: n } = {}) => (gt(t, (s, o) => {
|
|
|
1100
1100
|
e = r !== !1 && Yt(e);
|
|
1101
1101
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
1102
1102
|
return t;
|
|
1103
|
-
},
|
|
1103
|
+
}, ss = (e, t, r) => {
|
|
1104
1104
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
1105
1105
|
const n = e.indexOf(t, r);
|
|
1106
1106
|
return n !== -1 && n === r;
|
|
1107
|
-
},
|
|
1107
|
+
}, os = (e) => {
|
|
1108
1108
|
if (!e) return null;
|
|
1109
1109
|
if (tt(e)) return e;
|
|
1110
1110
|
let t = e.length;
|
|
1111
|
-
if (!
|
|
1111
|
+
if (!Ur(t)) return null;
|
|
1112
1112
|
const r = new Array(t);
|
|
1113
1113
|
for (; t-- > 0; )
|
|
1114
1114
|
r[t] = e[t];
|
|
1115
1115
|
return r;
|
|
1116
|
-
},
|
|
1116
|
+
}, as = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Yt(Uint8Array)), is = (e, t) => {
|
|
1117
1117
|
const n = (e && e[Rt]).call(e);
|
|
1118
1118
|
let s;
|
|
1119
1119
|
for (; (s = n.next()) && !s.done; ) {
|
|
1120
1120
|
const o = s.value;
|
|
1121
1121
|
t.call(e, o[0], o[1]);
|
|
1122
1122
|
}
|
|
1123
|
-
},
|
|
1123
|
+
}, ls = (e, t) => {
|
|
1124
1124
|
let r;
|
|
1125
1125
|
const n = [];
|
|
1126
1126
|
for (; (r = e.exec(t)) !== null; )
|
|
1127
1127
|
n.push(r);
|
|
1128
1128
|
return n;
|
|
1129
|
-
},
|
|
1129
|
+
}, cs = Ie("HTMLFormElement"), ds = (e) => e.toLowerCase().replace(
|
|
1130
1130
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
1131
1131
|
function(r, n, s) {
|
|
1132
1132
|
return n.toUpperCase() + s;
|
|
1133
1133
|
}
|
|
1134
|
-
),
|
|
1134
|
+
), sr = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), us = Ie("RegExp"), Wr = (e, t) => {
|
|
1135
1135
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
1136
1136
|
gt(r, (s, o) => {
|
|
1137
1137
|
let a;
|
|
1138
1138
|
(a = t(s, o, e)) !== !1 && (n[o] = a || s);
|
|
1139
1139
|
}), Object.defineProperties(e, n);
|
|
1140
|
-
},
|
|
1141
|
-
|
|
1140
|
+
}, fs = (e) => {
|
|
1141
|
+
Wr(e, (t, r) => {
|
|
1142
1142
|
if (Re(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
1143
1143
|
return !1;
|
|
1144
1144
|
const n = e[r];
|
|
@@ -1152,19 +1152,19 @@ const Qn = (e, t, r, { allOwnKeys: n } = {}) => (gt(t, (s, o) => {
|
|
|
1152
1152
|
});
|
|
1153
1153
|
}
|
|
1154
1154
|
});
|
|
1155
|
-
},
|
|
1155
|
+
}, ms = (e, t) => {
|
|
1156
1156
|
const r = {}, n = (s) => {
|
|
1157
1157
|
s.forEach((o) => {
|
|
1158
1158
|
r[o] = !0;
|
|
1159
1159
|
});
|
|
1160
1160
|
};
|
|
1161
1161
|
return tt(e) ? n(e) : n(String(e).split(t)), r;
|
|
1162
|
-
},
|
|
1163
|
-
},
|
|
1164
|
-
function
|
|
1165
|
-
return !!(e && Re(e.append) && e[
|
|
1162
|
+
}, hs = () => {
|
|
1163
|
+
}, ps = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1164
|
+
function gs(e) {
|
|
1165
|
+
return !!(e && Re(e.append) && e[zr] === "FormData" && e[Rt]);
|
|
1166
1166
|
}
|
|
1167
|
-
const
|
|
1167
|
+
const bs = (e) => {
|
|
1168
1168
|
const t = new Array(10), r = (n, s) => {
|
|
1169
1169
|
if (pt(n)) {
|
|
1170
1170
|
if (t.indexOf(n) >= 0)
|
|
@@ -1183,72 +1183,72 @@ const gs = (e) => {
|
|
|
1183
1183
|
return n;
|
|
1184
1184
|
};
|
|
1185
1185
|
return r(e, 0);
|
|
1186
|
-
},
|
|
1186
|
+
}, ys = Ie("AsyncFunction"), vs = (e) => e && (pt(e) || Re(e)) && Re(e.then) && Re(e.catch), qr = ((e, t) => e ? setImmediate : t ? ((r, n) => (Ge.addEventListener("message", ({ source: s, data: o }) => {
|
|
1187
1187
|
s === Ge && o === r && n.length && n.shift()();
|
|
1188
1188
|
}, !1), (s) => {
|
|
1189
1189
|
n.push(s), Ge.postMessage(r, "*");
|
|
1190
1190
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
1191
1191
|
typeof setImmediate == "function",
|
|
1192
1192
|
Re(Ge.postMessage)
|
|
1193
|
-
),
|
|
1193
|
+
), xs = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ge) : typeof process < "u" && process.nextTick || qr, ws = (e) => e != null && Re(e[Rt]), E = {
|
|
1194
1194
|
isArray: tt,
|
|
1195
|
-
isArrayBuffer:
|
|
1195
|
+
isArrayBuffer: Br,
|
|
1196
1196
|
isBuffer: ht,
|
|
1197
|
-
isFormData:
|
|
1198
|
-
isArrayBufferView:
|
|
1199
|
-
isString:
|
|
1200
|
-
isNumber:
|
|
1201
|
-
isBoolean:
|
|
1197
|
+
isFormData: Yn,
|
|
1198
|
+
isArrayBufferView: Vn,
|
|
1199
|
+
isString: Fn,
|
|
1200
|
+
isNumber: Ur,
|
|
1201
|
+
isBoolean: zn,
|
|
1202
1202
|
isObject: pt,
|
|
1203
1203
|
isPlainObject: St,
|
|
1204
|
-
isEmptyObject:
|
|
1205
|
-
isReadableStream:
|
|
1206
|
-
isRequest:
|
|
1207
|
-
isResponse:
|
|
1208
|
-
isHeaders:
|
|
1204
|
+
isEmptyObject: Bn,
|
|
1205
|
+
isReadableStream: Jn,
|
|
1206
|
+
isRequest: Kn,
|
|
1207
|
+
isResponse: Xn,
|
|
1208
|
+
isHeaders: Zn,
|
|
1209
1209
|
isUndefined: et,
|
|
1210
|
-
isDate:
|
|
1211
|
-
isFile:
|
|
1212
|
-
isBlob:
|
|
1213
|
-
isRegExp:
|
|
1210
|
+
isDate: Un,
|
|
1211
|
+
isFile: _n,
|
|
1212
|
+
isBlob: Hn,
|
|
1213
|
+
isRegExp: us,
|
|
1214
1214
|
isFunction: Re,
|
|
1215
|
-
isStream:
|
|
1216
|
-
isURLSearchParams:
|
|
1217
|
-
isTypedArray:
|
|
1218
|
-
isFileList:
|
|
1215
|
+
isStream: qn,
|
|
1216
|
+
isURLSearchParams: Gn,
|
|
1217
|
+
isTypedArray: as,
|
|
1218
|
+
isFileList: Wn,
|
|
1219
1219
|
forEach: gt,
|
|
1220
1220
|
merge: Bt,
|
|
1221
|
-
extend:
|
|
1222
|
-
trim:
|
|
1223
|
-
stripBOM:
|
|
1224
|
-
inherits:
|
|
1225
|
-
toFlatObject:
|
|
1221
|
+
extend: es,
|
|
1222
|
+
trim: Qn,
|
|
1223
|
+
stripBOM: ts,
|
|
1224
|
+
inherits: rs,
|
|
1225
|
+
toFlatObject: ns,
|
|
1226
1226
|
kindOf: Dt,
|
|
1227
1227
|
kindOfTest: Ie,
|
|
1228
|
-
endsWith:
|
|
1229
|
-
toArray:
|
|
1230
|
-
forEachEntry:
|
|
1231
|
-
matchAll:
|
|
1232
|
-
isHTMLForm:
|
|
1233
|
-
hasOwnProperty:
|
|
1234
|
-
hasOwnProp:
|
|
1228
|
+
endsWith: ss,
|
|
1229
|
+
toArray: os,
|
|
1230
|
+
forEachEntry: is,
|
|
1231
|
+
matchAll: ls,
|
|
1232
|
+
isHTMLForm: cs,
|
|
1233
|
+
hasOwnProperty: sr,
|
|
1234
|
+
hasOwnProp: sr,
|
|
1235
1235
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1236
|
-
reduceDescriptors:
|
|
1237
|
-
freezeMethods:
|
|
1238
|
-
toObjectSet:
|
|
1239
|
-
toCamelCase:
|
|
1240
|
-
noop:
|
|
1241
|
-
toFiniteNumber:
|
|
1242
|
-
findKey:
|
|
1236
|
+
reduceDescriptors: Wr,
|
|
1237
|
+
freezeMethods: fs,
|
|
1238
|
+
toObjectSet: ms,
|
|
1239
|
+
toCamelCase: ds,
|
|
1240
|
+
noop: hs,
|
|
1241
|
+
toFiniteNumber: ps,
|
|
1242
|
+
findKey: _r,
|
|
1243
1243
|
global: Ge,
|
|
1244
|
-
isContextDefined:
|
|
1245
|
-
isSpecCompliantForm:
|
|
1246
|
-
toJSONObject:
|
|
1247
|
-
isAsyncFn:
|
|
1248
|
-
isThenable:
|
|
1249
|
-
setImmediate:
|
|
1250
|
-
asap:
|
|
1251
|
-
isIterable:
|
|
1244
|
+
isContextDefined: Hr,
|
|
1245
|
+
isSpecCompliantForm: gs,
|
|
1246
|
+
toJSONObject: bs,
|
|
1247
|
+
isAsyncFn: ys,
|
|
1248
|
+
isThenable: vs,
|
|
1249
|
+
setImmediate: qr,
|
|
1250
|
+
asap: xs,
|
|
1251
|
+
isIterable: ws
|
|
1252
1252
|
};
|
|
1253
1253
|
function ce(e, t, r, n, s) {
|
|
1254
1254
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
@@ -1274,7 +1274,7 @@ E.inherits(ce, Error, {
|
|
|
1274
1274
|
};
|
|
1275
1275
|
}
|
|
1276
1276
|
});
|
|
1277
|
-
const
|
|
1277
|
+
const Yr = ce.prototype, Gr = {};
|
|
1278
1278
|
[
|
|
1279
1279
|
"ERR_BAD_OPTION_VALUE",
|
|
1280
1280
|
"ERR_BAD_OPTION",
|
|
@@ -1290,34 +1290,34 @@ const qr = ce.prototype, Yr = {};
|
|
|
1290
1290
|
"ERR_INVALID_URL"
|
|
1291
1291
|
// eslint-disable-next-line func-names
|
|
1292
1292
|
].forEach((e) => {
|
|
1293
|
-
|
|
1293
|
+
Gr[e] = { value: e };
|
|
1294
1294
|
});
|
|
1295
|
-
Object.defineProperties(ce,
|
|
1296
|
-
Object.defineProperty(
|
|
1295
|
+
Object.defineProperties(ce, Gr);
|
|
1296
|
+
Object.defineProperty(Yr, "isAxiosError", { value: !0 });
|
|
1297
1297
|
ce.from = (e, t, r, n, s, o) => {
|
|
1298
|
-
const a = Object.create(
|
|
1298
|
+
const a = Object.create(Yr);
|
|
1299
1299
|
E.toFlatObject(e, a, function(d) {
|
|
1300
1300
|
return d !== Error.prototype;
|
|
1301
1301
|
}, (u) => u !== "isAxiosError");
|
|
1302
1302
|
const i = e && e.message ? e.message : "Error", c = t == null && e ? e.code : t;
|
|
1303
1303
|
return ce.call(a, i, c, r, n, s), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", o && Object.assign(a, o), a;
|
|
1304
1304
|
};
|
|
1305
|
-
const
|
|
1305
|
+
const Ss = null;
|
|
1306
1306
|
function Ut(e) {
|
|
1307
1307
|
return E.isPlainObject(e) || E.isArray(e);
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function Jr(e) {
|
|
1310
1310
|
return E.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function or(e, t, r) {
|
|
1313
1313
|
return e ? e.concat(t).map(function(s, o) {
|
|
1314
|
-
return s =
|
|
1314
|
+
return s = Jr(s), !r && o ? "[" + s + "]" : s;
|
|
1315
1315
|
}).join(r ? "." : "") : t;
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1317
|
+
function ks(e) {
|
|
1318
1318
|
return E.isArray(e) && !e.some(Ut);
|
|
1319
1319
|
}
|
|
1320
|
-
const
|
|
1320
|
+
const Ns = E.toFlatObject(E, {}, null, function(t) {
|
|
1321
1321
|
return /^is[A-Z]/.test(t);
|
|
1322
1322
|
});
|
|
1323
1323
|
function At(e, t, r) {
|
|
@@ -1348,18 +1348,18 @@ function At(e, t, r) {
|
|
|
1348
1348
|
if (h && !p && typeof h == "object") {
|
|
1349
1349
|
if (E.endsWith(w, "{}"))
|
|
1350
1350
|
w = n ? w : w.slice(0, -2), h = JSON.stringify(h);
|
|
1351
|
-
else if (E.isArray(h) &&
|
|
1352
|
-
return w =
|
|
1351
|
+
else if (E.isArray(h) && ks(h) || (E.isFileList(h) || E.endsWith(w, "[]")) && (v = E.toArray(h)))
|
|
1352
|
+
return w = Jr(w), v.forEach(function(y, M) {
|
|
1353
1353
|
!(E.isUndefined(y) || y === null) && t.append(
|
|
1354
1354
|
// eslint-disable-next-line no-nested-ternary
|
|
1355
|
-
a === !0 ?
|
|
1355
|
+
a === !0 ? or([w], M, o) : a === null ? w : w + "[]",
|
|
1356
1356
|
u(y)
|
|
1357
1357
|
);
|
|
1358
1358
|
}), !1;
|
|
1359
1359
|
}
|
|
1360
|
-
return Ut(h) ? !0 : (t.append(
|
|
1360
|
+
return Ut(h) ? !0 : (t.append(or(p, w, o), u(h)), !1);
|
|
1361
1361
|
}
|
|
1362
|
-
const f = [], m = Object.assign(
|
|
1362
|
+
const f = [], m = Object.assign(Ns, {
|
|
1363
1363
|
defaultVisitor: d,
|
|
1364
1364
|
convertValue: u,
|
|
1365
1365
|
isVisitable: Ut
|
|
@@ -1383,7 +1383,7 @@ function At(e, t, r) {
|
|
|
1383
1383
|
throw new TypeError("data must be an object");
|
|
1384
1384
|
return b(e), t;
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function ar(e) {
|
|
1387
1387
|
const t = {
|
|
1388
1388
|
"!": "%21",
|
|
1389
1389
|
"'": "%27",
|
|
@@ -1400,25 +1400,25 @@ function or(e) {
|
|
|
1400
1400
|
function Gt(e, t) {
|
|
1401
1401
|
this._pairs = [], e && At(e, this, t);
|
|
1402
1402
|
}
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1403
|
+
const Kr = Gt.prototype;
|
|
1404
|
+
Kr.append = function(t, r) {
|
|
1405
1405
|
this._pairs.push([t, r]);
|
|
1406
1406
|
};
|
|
1407
|
-
|
|
1407
|
+
Kr.toString = function(t) {
|
|
1408
1408
|
const r = t ? function(n) {
|
|
1409
|
-
return t.call(this, n,
|
|
1410
|
-
} :
|
|
1409
|
+
return t.call(this, n, ar);
|
|
1410
|
+
} : ar;
|
|
1411
1411
|
return this._pairs.map(function(s) {
|
|
1412
1412
|
return r(s[0]) + "=" + r(s[1]);
|
|
1413
1413
|
}, "").join("&");
|
|
1414
1414
|
};
|
|
1415
|
-
function
|
|
1415
|
+
function Cs(e) {
|
|
1416
1416
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Xr(e, t, r) {
|
|
1419
1419
|
if (!t)
|
|
1420
1420
|
return e;
|
|
1421
|
-
const n = r && r.encode ||
|
|
1421
|
+
const n = r && r.encode || Cs;
|
|
1422
1422
|
E.isFunction(r) && (r = {
|
|
1423
1423
|
serialize: r
|
|
1424
1424
|
});
|
|
@@ -1430,7 +1430,7 @@ function Kr(e, t, r) {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
return e;
|
|
1432
1432
|
}
|
|
1433
|
-
class
|
|
1433
|
+
class ir {
|
|
1434
1434
|
constructor() {
|
|
1435
1435
|
this.handlers = [];
|
|
1436
1436
|
}
|
|
@@ -1484,31 +1484,31 @@ class ar {
|
|
|
1484
1484
|
});
|
|
1485
1485
|
}
|
|
1486
1486
|
}
|
|
1487
|
-
const
|
|
1487
|
+
const Zr = {
|
|
1488
1488
|
silentJSONParsing: !0,
|
|
1489
1489
|
forcedJSONParsing: !0,
|
|
1490
1490
|
clarifyTimeoutError: !1
|
|
1491
|
-
},
|
|
1491
|
+
}, Es = typeof URLSearchParams < "u" ? URLSearchParams : Gt, Ts = typeof FormData < "u" ? FormData : null, $s = typeof Blob < "u" ? Blob : null, Rs = {
|
|
1492
1492
|
isBrowser: !0,
|
|
1493
1493
|
classes: {
|
|
1494
|
-
URLSearchParams:
|
|
1495
|
-
FormData:
|
|
1496
|
-
Blob:
|
|
1494
|
+
URLSearchParams: Es,
|
|
1495
|
+
FormData: Ts,
|
|
1496
|
+
Blob: $s
|
|
1497
1497
|
},
|
|
1498
1498
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1499
|
-
}, Jt = typeof window < "u" && typeof document < "u", _t = typeof navigator == "object" && navigator || void 0,
|
|
1500
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
1499
|
+
}, Jt = typeof window < "u" && typeof document < "u", _t = typeof navigator == "object" && navigator || void 0, Ds = Jt && (!_t || ["ReactNative", "NativeScript", "NS"].indexOf(_t.product) < 0), Ls = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
1500
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", As = Jt && window.location.href || "http://localhost", Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1501
1501
|
__proto__: null,
|
|
1502
1502
|
hasBrowserEnv: Jt,
|
|
1503
|
-
hasStandardBrowserEnv:
|
|
1504
|
-
hasStandardBrowserWebWorkerEnv:
|
|
1503
|
+
hasStandardBrowserEnv: Ds,
|
|
1504
|
+
hasStandardBrowserWebWorkerEnv: Ls,
|
|
1505
1505
|
navigator: _t,
|
|
1506
|
-
origin:
|
|
1506
|
+
origin: As
|
|
1507
1507
|
}, Symbol.toStringTag, { value: "Module" })), Te = {
|
|
1508
|
-
...
|
|
1509
|
-
|
|
1508
|
+
...Os,
|
|
1509
|
+
...Rs
|
|
1510
1510
|
};
|
|
1511
|
-
function
|
|
1511
|
+
function Ms(e, t) {
|
|
1512
1512
|
return At(e, new Te.classes.URLSearchParams(), {
|
|
1513
1513
|
visitor: function(r, n, s, o) {
|
|
1514
1514
|
return Te.isNode && E.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
@@ -1516,10 +1516,10 @@ function Os(e, t) {
|
|
|
1516
1516
|
...t
|
|
1517
1517
|
});
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function Is(e) {
|
|
1520
1520
|
return E.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function Ps(e) {
|
|
1523
1523
|
const t = {}, r = Object.keys(e);
|
|
1524
1524
|
let n;
|
|
1525
1525
|
const s = r.length;
|
|
@@ -1528,22 +1528,22 @@ function Is(e) {
|
|
|
1528
1528
|
o = r[n], t[o] = e[o];
|
|
1529
1529
|
return t;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function Qr(e) {
|
|
1532
1532
|
function t(r, n, s, o) {
|
|
1533
1533
|
let a = r[o++];
|
|
1534
1534
|
if (a === "__proto__") return !0;
|
|
1535
1535
|
const i = Number.isFinite(+a), c = o >= r.length;
|
|
1536
|
-
return a = !a && E.isArray(s) ? s.length : a, c ? (E.hasOwnProp(s, a) ? s[a] = [s[a], n] : s[a] = n, !i) : ((!s[a] || !E.isObject(s[a])) && (s[a] = []), t(r, n, s[a], o) && E.isArray(s[a]) && (s[a] =
|
|
1536
|
+
return a = !a && E.isArray(s) ? s.length : a, c ? (E.hasOwnProp(s, a) ? s[a] = [s[a], n] : s[a] = n, !i) : ((!s[a] || !E.isObject(s[a])) && (s[a] = []), t(r, n, s[a], o) && E.isArray(s[a]) && (s[a] = Ps(s[a])), !i);
|
|
1537
1537
|
}
|
|
1538
1538
|
if (E.isFormData(e) && E.isFunction(e.entries)) {
|
|
1539
1539
|
const r = {};
|
|
1540
1540
|
return E.forEachEntry(e, (n, s) => {
|
|
1541
|
-
t(
|
|
1541
|
+
t(Is(n), s, r, 0);
|
|
1542
1542
|
}), r;
|
|
1543
1543
|
}
|
|
1544
1544
|
return null;
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function js(e, t, r) {
|
|
1547
1547
|
if (E.isString(e))
|
|
1548
1548
|
try {
|
|
1549
1549
|
return (t || JSON.parse)(e), E.trim(e);
|
|
@@ -1554,12 +1554,12 @@ function Ps(e, t, r) {
|
|
|
1554
1554
|
return (r || JSON.stringify)(e);
|
|
1555
1555
|
}
|
|
1556
1556
|
const bt = {
|
|
1557
|
-
transitional:
|
|
1557
|
+
transitional: Zr,
|
|
1558
1558
|
adapter: ["xhr", "http", "fetch"],
|
|
1559
1559
|
transformRequest: [function(t, r) {
|
|
1560
1560
|
const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, o = E.isObject(t);
|
|
1561
1561
|
if (o && E.isHTMLForm(t) && (t = new FormData(t)), E.isFormData(t))
|
|
1562
|
-
return s ? JSON.stringify(
|
|
1562
|
+
return s ? JSON.stringify(Qr(t)) : t;
|
|
1563
1563
|
if (E.isArrayBuffer(t) || E.isBuffer(t) || E.isStream(t) || E.isFile(t) || E.isBlob(t) || E.isReadableStream(t))
|
|
1564
1564
|
return t;
|
|
1565
1565
|
if (E.isArrayBufferView(t))
|
|
@@ -1569,7 +1569,7 @@ const bt = {
|
|
|
1569
1569
|
let i;
|
|
1570
1570
|
if (o) {
|
|
1571
1571
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1572
|
-
return
|
|
1572
|
+
return Ms(t, this.formSerializer).toString();
|
|
1573
1573
|
if ((i = E.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
1574
1574
|
const c = this.env && this.env.FormData;
|
|
1575
1575
|
return At(
|
|
@@ -1579,7 +1579,7 @@ const bt = {
|
|
|
1579
1579
|
);
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
|
-
return o || s ? (r.setContentType("application/json", !1),
|
|
1582
|
+
return o || s ? (r.setContentType("application/json", !1), js(t)) : t;
|
|
1583
1583
|
}],
|
|
1584
1584
|
transformResponse: [function(t) {
|
|
1585
1585
|
const r = this.transitional || bt.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
|
|
@@ -1622,7 +1622,7 @@ const bt = {
|
|
|
1622
1622
|
E.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1623
1623
|
bt.headers[e] = {};
|
|
1624
1624
|
});
|
|
1625
|
-
const
|
|
1625
|
+
const Vs = E.toObjectSet([
|
|
1626
1626
|
"age",
|
|
1627
1627
|
"authorization",
|
|
1628
1628
|
"content-length",
|
|
@@ -1640,28 +1640,28 @@ const js = E.toObjectSet([
|
|
|
1640
1640
|
"referer",
|
|
1641
1641
|
"retry-after",
|
|
1642
1642
|
"user-agent"
|
|
1643
|
-
]),
|
|
1643
|
+
]), Fs = (e) => {
|
|
1644
1644
|
const t = {};
|
|
1645
1645
|
let r, n, s;
|
|
1646
1646
|
return e && e.split(`
|
|
1647
1647
|
`).forEach(function(a) {
|
|
1648
|
-
s = a.indexOf(":"), r = a.substring(0, s).trim().toLowerCase(), n = a.substring(s + 1).trim(), !(!r || t[r] &&
|
|
1648
|
+
s = a.indexOf(":"), r = a.substring(0, s).trim().toLowerCase(), n = a.substring(s + 1).trim(), !(!r || t[r] && Vs[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
1649
1649
|
}), t;
|
|
1650
|
-
},
|
|
1650
|
+
}, lr = Symbol("internals");
|
|
1651
1651
|
function ot(e) {
|
|
1652
1652
|
return e && String(e).trim().toLowerCase();
|
|
1653
1653
|
}
|
|
1654
1654
|
function kt(e) {
|
|
1655
1655
|
return e === !1 || e == null ? e : E.isArray(e) ? e.map(kt) : String(e);
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function zs(e) {
|
|
1658
1658
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1659
1659
|
let n;
|
|
1660
1660
|
for (; n = r.exec(e); )
|
|
1661
1661
|
t[n[1]] = n[2];
|
|
1662
1662
|
return t;
|
|
1663
1663
|
}
|
|
1664
|
-
const
|
|
1664
|
+
const Bs = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1665
1665
|
function It(e, t, r, n, s) {
|
|
1666
1666
|
if (E.isFunction(n))
|
|
1667
1667
|
return n.call(this, t, r);
|
|
@@ -1672,10 +1672,10 @@ function It(e, t, r, n, s) {
|
|
|
1672
1672
|
return n.test(t);
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1675
|
+
function Us(e) {
|
|
1676
1676
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1678
|
+
function _s(e, t) {
|
|
1679
1679
|
const r = E.toCamelCase(" " + t);
|
|
1680
1680
|
["get", "set", "has"].forEach((n) => {
|
|
1681
1681
|
Object.defineProperty(e, n + r, {
|
|
@@ -1702,8 +1702,8 @@ let De = class {
|
|
|
1702
1702
|
const a = (i, c) => E.forEach(i, (u, d) => o(u, d, c));
|
|
1703
1703
|
if (E.isPlainObject(t) || t instanceof this.constructor)
|
|
1704
1704
|
a(t, r);
|
|
1705
|
-
else if (E.isString(t) && (t = t.trim()) && !
|
|
1706
|
-
a(
|
|
1705
|
+
else if (E.isString(t) && (t = t.trim()) && !Bs(t))
|
|
1706
|
+
a(Fs(t), r);
|
|
1707
1707
|
else if (E.isObject(t) && E.isIterable(t)) {
|
|
1708
1708
|
let i = {}, c, u;
|
|
1709
1709
|
for (const d of t) {
|
|
@@ -1724,7 +1724,7 @@ let De = class {
|
|
|
1724
1724
|
if (!r)
|
|
1725
1725
|
return s;
|
|
1726
1726
|
if (r === !0)
|
|
1727
|
-
return
|
|
1727
|
+
return zs(s);
|
|
1728
1728
|
if (E.isFunction(r))
|
|
1729
1729
|
return r.call(this, s, n);
|
|
1730
1730
|
if (E.isRegExp(r))
|
|
@@ -1768,7 +1768,7 @@ let De = class {
|
|
|
1768
1768
|
r[a] = kt(s), delete r[o];
|
|
1769
1769
|
return;
|
|
1770
1770
|
}
|
|
1771
|
-
const i = t ?
|
|
1771
|
+
const i = t ? Us(o) : String(o).trim();
|
|
1772
1772
|
i !== o && delete r[o], r[i] = kt(s), n[i] = !0;
|
|
1773
1773
|
}), this;
|
|
1774
1774
|
}
|
|
@@ -1802,12 +1802,12 @@ let De = class {
|
|
|
1802
1802
|
return r.forEach((s) => n.set(s)), n;
|
|
1803
1803
|
}
|
|
1804
1804
|
static accessor(t) {
|
|
1805
|
-
const n = (this[
|
|
1805
|
+
const n = (this[lr] = this[lr] = {
|
|
1806
1806
|
accessors: {}
|
|
1807
1807
|
}).accessors, s = this.prototype;
|
|
1808
1808
|
function o(a) {
|
|
1809
1809
|
const i = ot(a);
|
|
1810
|
-
n[i] || (
|
|
1810
|
+
n[i] || (_s(s, a), n[i] = !0);
|
|
1811
1811
|
}
|
|
1812
1812
|
return E.isArray(t) ? t.forEach(o) : o(t), this;
|
|
1813
1813
|
}
|
|
@@ -1830,7 +1830,7 @@ function Pt(e, t) {
|
|
|
1830
1830
|
o = i.call(r, o, s.normalize(), t ? t.status : void 0);
|
|
1831
1831
|
}), s.normalize(), o;
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function en(e) {
|
|
1834
1834
|
return !!(e && e.__CANCEL__);
|
|
1835
1835
|
}
|
|
1836
1836
|
function rt(e, t, r) {
|
|
@@ -1839,7 +1839,7 @@ function rt(e, t, r) {
|
|
|
1839
1839
|
E.inherits(rt, ce, {
|
|
1840
1840
|
__CANCEL__: !0
|
|
1841
1841
|
});
|
|
1842
|
-
function
|
|
1842
|
+
function tn(e, t, r) {
|
|
1843
1843
|
const n = r.config.validateStatus;
|
|
1844
1844
|
!r.status || !n || n(r.status) ? e(r) : t(new ce(
|
|
1845
1845
|
"Request failed with status code " + r.status,
|
|
@@ -1849,11 +1849,11 @@ function en(e, t, r) {
|
|
|
1849
1849
|
r
|
|
1850
1850
|
));
|
|
1851
1851
|
}
|
|
1852
|
-
function
|
|
1852
|
+
function Hs(e) {
|
|
1853
1853
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1854
1854
|
return t && t[1] || "";
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function Ws(e, t) {
|
|
1857
1857
|
e = e || 10;
|
|
1858
1858
|
const r = new Array(e), n = new Array(e);
|
|
1859
1859
|
let s = 0, o = 0, a;
|
|
@@ -1869,7 +1869,7 @@ function Hs(e, t) {
|
|
|
1869
1869
|
return b ? Math.round(m * 1e3 / b) : void 0;
|
|
1870
1870
|
};
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1872
|
+
function qs(e, t) {
|
|
1873
1873
|
let r = 0, n = 1e3 / t, s, o;
|
|
1874
1874
|
const a = (u, d = Date.now()) => {
|
|
1875
1875
|
r = d, s = null, o && (clearTimeout(o), o = null), e(...u);
|
|
@@ -1883,8 +1883,8 @@ function Ws(e, t) {
|
|
|
1883
1883
|
}
|
|
1884
1884
|
const Tt = (e, t, r = 3) => {
|
|
1885
1885
|
let n = 0;
|
|
1886
|
-
const s =
|
|
1887
|
-
return
|
|
1886
|
+
const s = Ws(50, 250);
|
|
1887
|
+
return qs((o) => {
|
|
1888
1888
|
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, c = a - n, u = s(c), d = a <= i;
|
|
1889
1889
|
n = a;
|
|
1890
1890
|
const f = {
|
|
@@ -1900,17 +1900,17 @@ const Tt = (e, t, r = 3) => {
|
|
|
1900
1900
|
};
|
|
1901
1901
|
e(f);
|
|
1902
1902
|
}, r);
|
|
1903
|
-
},
|
|
1903
|
+
}, cr = (e, t) => {
|
|
1904
1904
|
const r = e != null;
|
|
1905
1905
|
return [(n) => t[0]({
|
|
1906
1906
|
lengthComputable: r,
|
|
1907
1907
|
total: e,
|
|
1908
1908
|
loaded: n
|
|
1909
1909
|
}), t[1]];
|
|
1910
|
-
},
|
|
1910
|
+
}, dr = (e) => (...t) => E.asap(() => e(...t)), Ys = Te.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, Te.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
1911
1911
|
new URL(Te.origin),
|
|
1912
1912
|
Te.navigator && /(msie|trident)/i.test(Te.navigator.userAgent)
|
|
1913
|
-
) : () => !0,
|
|
1913
|
+
) : () => !0, Gs = Te.hasStandardBrowserEnv ? (
|
|
1914
1914
|
// Standard browser envs support document.cookie
|
|
1915
1915
|
{
|
|
1916
1916
|
write(e, t, r, n, s, o, a) {
|
|
@@ -1939,17 +1939,17 @@ const Tt = (e, t, r = 3) => {
|
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
1941
|
);
|
|
1942
|
-
function
|
|
1942
|
+
function Js(e) {
|
|
1943
1943
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1945
|
+
function Ks(e, t) {
|
|
1946
1946
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1947
1947
|
}
|
|
1948
|
-
function
|
|
1949
|
-
let n = !
|
|
1950
|
-
return e && (n || r == !1) ?
|
|
1948
|
+
function rn(e, t, r) {
|
|
1949
|
+
let n = !Js(t);
|
|
1950
|
+
return e && (n || r == !1) ? Ks(e, t) : t;
|
|
1951
1951
|
}
|
|
1952
|
-
const
|
|
1952
|
+
const ur = (e) => e instanceof De ? { ...e } : e;
|
|
1953
1953
|
function Ke(e, t) {
|
|
1954
1954
|
t = t || {};
|
|
1955
1955
|
const r = {};
|
|
@@ -2007,17 +2007,17 @@ function Ke(e, t) {
|
|
|
2007
2007
|
socketPath: a,
|
|
2008
2008
|
responseEncoding: a,
|
|
2009
2009
|
validateStatus: i,
|
|
2010
|
-
headers: (u, d, f) => s(
|
|
2010
|
+
headers: (u, d, f) => s(ur(u), ur(d), f, !0)
|
|
2011
2011
|
};
|
|
2012
2012
|
return E.forEach(Object.keys({ ...e, ...t }), function(d) {
|
|
2013
2013
|
const f = c[d] || s, m = f(e[d], t[d], d);
|
|
2014
2014
|
E.isUndefined(m) && f !== i || (r[d] = m);
|
|
2015
2015
|
}), r;
|
|
2016
2016
|
}
|
|
2017
|
-
const
|
|
2017
|
+
const nn = (e) => {
|
|
2018
2018
|
const t = Ke({}, e);
|
|
2019
2019
|
let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: o, headers: a, auth: i } = t;
|
|
2020
|
-
if (t.headers = a = De.from(a), t.url =
|
|
2020
|
+
if (t.headers = a = De.from(a), t.url = Xr(rn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
|
|
2021
2021
|
"Authorization",
|
|
2022
2022
|
"Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
|
|
2023
2023
|
), E.isFormData(r)) {
|
|
@@ -2030,14 +2030,14 @@ const rn = (e) => {
|
|
|
2030
2030
|
});
|
|
2031
2031
|
}
|
|
2032
2032
|
}
|
|
2033
|
-
if (Te.hasStandardBrowserEnv && (n && E.isFunction(n) && (n = n(t)), n || n !== !1 &&
|
|
2034
|
-
const c = s && o &&
|
|
2033
|
+
if (Te.hasStandardBrowserEnv && (n && E.isFunction(n) && (n = n(t)), n || n !== !1 && Ys(t.url))) {
|
|
2034
|
+
const c = s && o && Gs.read(o);
|
|
2035
2035
|
c && a.set(s, c);
|
|
2036
2036
|
}
|
|
2037
2037
|
return t;
|
|
2038
|
-
},
|
|
2038
|
+
}, Xs = typeof XMLHttpRequest < "u", Zs = Xs && function(e) {
|
|
2039
2039
|
return new Promise(function(r, n) {
|
|
2040
|
-
const s =
|
|
2040
|
+
const s = nn(e);
|
|
2041
2041
|
let o = s.data;
|
|
2042
2042
|
const a = De.from(s.headers).normalize();
|
|
2043
2043
|
let { responseType: i, onUploadProgress: c, onDownloadProgress: u } = s, d, f, m, b, h;
|
|
@@ -2059,7 +2059,7 @@ const rn = (e) => {
|
|
|
2059
2059
|
config: e,
|
|
2060
2060
|
request: p
|
|
2061
2061
|
};
|
|
2062
|
-
|
|
2062
|
+
tn(function(j) {
|
|
2063
2063
|
r(j), w();
|
|
2064
2064
|
}, function(j) {
|
|
2065
2065
|
n(j), w();
|
|
@@ -2074,7 +2074,7 @@ const rn = (e) => {
|
|
|
2074
2074
|
k.event = M || null, n(k), p = null;
|
|
2075
2075
|
}, p.ontimeout = function() {
|
|
2076
2076
|
let M = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
2077
|
-
const C = s.transitional ||
|
|
2077
|
+
const C = s.transitional || Zr;
|
|
2078
2078
|
s.timeoutErrorMessage && (M = s.timeoutErrorMessage), n(new ce(
|
|
2079
2079
|
M,
|
|
2080
2080
|
C.clarifyTimeoutError ? ce.ETIMEDOUT : ce.ECONNABORTED,
|
|
@@ -2086,14 +2086,14 @@ const rn = (e) => {
|
|
|
2086
2086
|
}), E.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), i && i !== "json" && (p.responseType = s.responseType), u && ([m, h] = Tt(u, !0), p.addEventListener("progress", m)), c && p.upload && ([f, b] = Tt(c), p.upload.addEventListener("progress", f), p.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (d = (y) => {
|
|
2087
2087
|
p && (n(!y || y.type ? new rt(null, e, p) : y), p.abort(), p = null);
|
|
2088
2088
|
}, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d)));
|
|
2089
|
-
const T =
|
|
2089
|
+
const T = Hs(s.url);
|
|
2090
2090
|
if (T && Te.protocols.indexOf(T) === -1) {
|
|
2091
2091
|
n(new ce("Unsupported protocol " + T + ":", ce.ERR_BAD_REQUEST, e));
|
|
2092
2092
|
return;
|
|
2093
2093
|
}
|
|
2094
2094
|
p.send(o || null);
|
|
2095
2095
|
});
|
|
2096
|
-
},
|
|
2096
|
+
}, Qs = (e, t) => {
|
|
2097
2097
|
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
2098
2098
|
if (t || r) {
|
|
2099
2099
|
let n = new AbortController(), s;
|
|
@@ -2116,7 +2116,7 @@ const rn = (e) => {
|
|
|
2116
2116
|
const { signal: c } = n;
|
|
2117
2117
|
return c.unsubscribe = () => E.asap(i), c;
|
|
2118
2118
|
}
|
|
2119
|
-
},
|
|
2119
|
+
}, eo = function* (e, t) {
|
|
2120
2120
|
let r = e.byteLength;
|
|
2121
2121
|
if (r < t) {
|
|
2122
2122
|
yield e;
|
|
@@ -2125,10 +2125,10 @@ const rn = (e) => {
|
|
|
2125
2125
|
let n = 0, s;
|
|
2126
2126
|
for (; n < r; )
|
|
2127
2127
|
s = n + t, yield e.slice(n, s), n = s;
|
|
2128
|
-
},
|
|
2129
|
-
for await (const r of
|
|
2130
|
-
yield*
|
|
2131
|
-
},
|
|
2128
|
+
}, to = async function* (e, t) {
|
|
2129
|
+
for await (const r of ro(e))
|
|
2130
|
+
yield* eo(r, t);
|
|
2131
|
+
}, ro = async function* (e) {
|
|
2132
2132
|
if (e[Symbol.asyncIterator]) {
|
|
2133
2133
|
yield* e;
|
|
2134
2134
|
return;
|
|
@@ -2144,8 +2144,8 @@ const rn = (e) => {
|
|
|
2144
2144
|
} finally {
|
|
2145
2145
|
await t.cancel();
|
|
2146
2146
|
}
|
|
2147
|
-
},
|
|
2148
|
-
const s =
|
|
2147
|
+
}, fr = (e, t, r, n) => {
|
|
2148
|
+
const s = to(e, t);
|
|
2149
2149
|
let o = 0, a, i = (c) => {
|
|
2150
2150
|
a || (a = !0, n && n(c));
|
|
2151
2151
|
};
|
|
@@ -2173,36 +2173,36 @@ const rn = (e) => {
|
|
|
2173
2173
|
}, {
|
|
2174
2174
|
highWaterMark: 2
|
|
2175
2175
|
});
|
|
2176
|
-
},
|
|
2176
|
+
}, mr = 64 * 1024, { isFunction: vt } = E, no = (({ Request: e, Response: t }) => ({
|
|
2177
2177
|
Request: e,
|
|
2178
2178
|
Response: t
|
|
2179
2179
|
}))(E.global), {
|
|
2180
|
-
ReadableStream:
|
|
2181
|
-
TextEncoder:
|
|
2182
|
-
} = E.global,
|
|
2180
|
+
ReadableStream: hr,
|
|
2181
|
+
TextEncoder: pr
|
|
2182
|
+
} = E.global, gr = (e, ...t) => {
|
|
2183
2183
|
try {
|
|
2184
2184
|
return !!e(...t);
|
|
2185
2185
|
} catch {
|
|
2186
2186
|
return !1;
|
|
2187
2187
|
}
|
|
2188
|
-
},
|
|
2188
|
+
}, so = (e) => {
|
|
2189
2189
|
e = E.merge.call({
|
|
2190
2190
|
skipUndefined: !0
|
|
2191
|
-
},
|
|
2191
|
+
}, no, e);
|
|
2192
2192
|
const { fetch: t, Request: r, Response: n } = e, s = t ? vt(t) : typeof fetch == "function", o = vt(r), a = vt(n);
|
|
2193
2193
|
if (!s)
|
|
2194
2194
|
return !1;
|
|
2195
|
-
const i = s && vt(
|
|
2195
|
+
const i = s && vt(hr), c = s && (typeof pr == "function" ? /* @__PURE__ */ ((h) => (w) => h.encode(w))(new pr()) : async (h) => new Uint8Array(await new r(h).arrayBuffer())), u = o && i && gr(() => {
|
|
2196
2196
|
let h = !1;
|
|
2197
2197
|
const w = new r(Te.origin, {
|
|
2198
|
-
body: new
|
|
2198
|
+
body: new hr(),
|
|
2199
2199
|
method: "POST",
|
|
2200
2200
|
get duplex() {
|
|
2201
2201
|
return h = !0, "half";
|
|
2202
2202
|
}
|
|
2203
2203
|
}).headers.has("Content-Type");
|
|
2204
2204
|
return h && !w;
|
|
2205
|
-
}), d = a && i &&
|
|
2205
|
+
}), d = a && i && gr(() => E.isReadableStream(new n("").body)), f = {
|
|
2206
2206
|
stream: d && ((h) => h.body)
|
|
2207
2207
|
};
|
|
2208
2208
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
|
|
@@ -2245,9 +2245,9 @@ const rn = (e) => {
|
|
|
2245
2245
|
headers: P,
|
|
2246
2246
|
withCredentials: O = "same-origin",
|
|
2247
2247
|
fetchOptions: $
|
|
2248
|
-
} =
|
|
2248
|
+
} = nn(h), D = t || fetch;
|
|
2249
2249
|
j = j ? (j + "").toLowerCase() : "text";
|
|
2250
|
-
let I =
|
|
2250
|
+
let I = Qs([T, y && y.toAbortSignal()], M), _ = null;
|
|
2251
2251
|
const R = I && I.unsubscribe && (() => {
|
|
2252
2252
|
I.unsubscribe();
|
|
2253
2253
|
});
|
|
@@ -2260,11 +2260,11 @@ const rn = (e) => {
|
|
|
2260
2260
|
duplex: "half"
|
|
2261
2261
|
}), re;
|
|
2262
2262
|
if (E.isFormData(v) && (re = q.headers.get("content-type")) && P.setContentType(re), q.body) {
|
|
2263
|
-
const [H, ae] =
|
|
2263
|
+
const [H, ae] = cr(
|
|
2264
2264
|
g,
|
|
2265
|
-
Tt(
|
|
2265
|
+
Tt(dr(k))
|
|
2266
2266
|
);
|
|
2267
|
-
v =
|
|
2267
|
+
v = fr(q.body, mr, H, ae);
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
2270
|
E.isString(O) || (O = O ? "include" : "omit");
|
|
@@ -2285,12 +2285,12 @@ const rn = (e) => {
|
|
|
2285
2285
|
["status", "statusText", "headers"].forEach((le) => {
|
|
2286
2286
|
q[le] = S[le];
|
|
2287
2287
|
});
|
|
2288
|
-
const re = E.toFiniteNumber(S.headers.get("content-length")), [H, ae] = C &&
|
|
2288
|
+
const re = E.toFiniteNumber(S.headers.get("content-length")), [H, ae] = C && cr(
|
|
2289
2289
|
re,
|
|
2290
|
-
Tt(
|
|
2290
|
+
Tt(dr(C), !0)
|
|
2291
2291
|
) || [];
|
|
2292
2292
|
S = new n(
|
|
2293
|
-
|
|
2293
|
+
fr(S.body, mr, H, () => {
|
|
2294
2294
|
ae && ae(), R && R();
|
|
2295
2295
|
}),
|
|
2296
2296
|
q
|
|
@@ -2299,7 +2299,7 @@ const rn = (e) => {
|
|
|
2299
2299
|
j = j || "text";
|
|
2300
2300
|
let F = await f[E.findKey(f, j) || "text"](S, h);
|
|
2301
2301
|
return !V && R && R(), await new Promise((q, re) => {
|
|
2302
|
-
|
|
2302
|
+
tn(q, re, {
|
|
2303
2303
|
data: F,
|
|
2304
2304
|
headers: De.from(S.headers),
|
|
2305
2305
|
status: S.status,
|
|
@@ -2317,24 +2317,24 @@ const rn = (e) => {
|
|
|
2317
2317
|
) : ce.from(x, x && x.code, h, _);
|
|
2318
2318
|
}
|
|
2319
2319
|
};
|
|
2320
|
-
},
|
|
2320
|
+
}, oo = /* @__PURE__ */ new Map(), sn = (e) => {
|
|
2321
2321
|
let t = e && e.env || {};
|
|
2322
2322
|
const { fetch: r, Request: n, Response: s } = t, o = [
|
|
2323
2323
|
n,
|
|
2324
2324
|
s,
|
|
2325
2325
|
r
|
|
2326
2326
|
];
|
|
2327
|
-
let a = o.length, i = a, c, u, d =
|
|
2327
|
+
let a = o.length, i = a, c, u, d = oo;
|
|
2328
2328
|
for (; i--; )
|
|
2329
|
-
c = o[i], u = d.get(c), u === void 0 && d.set(c, u = i ? /* @__PURE__ */ new Map() :
|
|
2329
|
+
c = o[i], u = d.get(c), u === void 0 && d.set(c, u = i ? /* @__PURE__ */ new Map() : so(t)), d = u;
|
|
2330
2330
|
return u;
|
|
2331
2331
|
};
|
|
2332
|
-
|
|
2332
|
+
sn();
|
|
2333
2333
|
const Kt = {
|
|
2334
|
-
http:
|
|
2335
|
-
xhr:
|
|
2334
|
+
http: Ss,
|
|
2335
|
+
xhr: Zs,
|
|
2336
2336
|
fetch: {
|
|
2337
|
-
get:
|
|
2337
|
+
get: sn
|
|
2338
2338
|
}
|
|
2339
2339
|
};
|
|
2340
2340
|
E.forEach(Kt, (e, t) => {
|
|
@@ -2346,8 +2346,8 @@ E.forEach(Kt, (e, t) => {
|
|
|
2346
2346
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
2347
2347
|
}
|
|
2348
2348
|
});
|
|
2349
|
-
const
|
|
2350
|
-
function
|
|
2349
|
+
const br = (e) => `- ${e}`, ao = (e) => E.isFunction(e) || e === null || e === !1;
|
|
2350
|
+
function io(e, t) {
|
|
2351
2351
|
e = E.isArray(e) ? e : [e];
|
|
2352
2352
|
const { length: r } = e;
|
|
2353
2353
|
let n, s;
|
|
@@ -2355,7 +2355,7 @@ function ao(e, t) {
|
|
|
2355
2355
|
for (let a = 0; a < r; a++) {
|
|
2356
2356
|
n = e[a];
|
|
2357
2357
|
let i;
|
|
2358
|
-
if (s = n, !
|
|
2358
|
+
if (s = n, !ao(n) && (s = Kt[(i = String(n)).toLowerCase()], s === void 0))
|
|
2359
2359
|
throw new ce(`Unknown adapter '${i}'`);
|
|
2360
2360
|
if (s && (E.isFunction(s) || (s = s.get(t))))
|
|
2361
2361
|
break;
|
|
@@ -2366,8 +2366,8 @@ function ao(e, t) {
|
|
|
2366
2366
|
([c, u]) => `adapter ${c} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2367
2367
|
);
|
|
2368
2368
|
let i = r ? a.length > 1 ? `since :
|
|
2369
|
-
` + a.map(
|
|
2370
|
-
`) : " " +
|
|
2369
|
+
` + a.map(br).join(`
|
|
2370
|
+
`) : " " + br(a[0]) : "as no adapter specified";
|
|
2371
2371
|
throw new ce(
|
|
2372
2372
|
"There is no suitable adapter to dispatch the request " + i,
|
|
2373
2373
|
"ERR_NOT_SUPPORT"
|
|
@@ -2375,12 +2375,12 @@ function ao(e, t) {
|
|
|
2375
2375
|
}
|
|
2376
2376
|
return s;
|
|
2377
2377
|
}
|
|
2378
|
-
const
|
|
2378
|
+
const on = {
|
|
2379
2379
|
/**
|
|
2380
2380
|
* Resolve an adapter from a list of adapter names or functions.
|
|
2381
2381
|
* @type {Function}
|
|
2382
2382
|
*/
|
|
2383
|
-
getAdapter:
|
|
2383
|
+
getAdapter: io,
|
|
2384
2384
|
/**
|
|
2385
2385
|
* Exposes all known adapters
|
|
2386
2386
|
* @type {Object<string, Function|Object>}
|
|
@@ -2391,34 +2391,34 @@ function jt(e) {
|
|
|
2391
2391
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2392
2392
|
throw new rt(null, e);
|
|
2393
2393
|
}
|
|
2394
|
-
function
|
|
2394
|
+
function yr(e) {
|
|
2395
2395
|
return jt(e), e.headers = De.from(e.headers), e.data = Pt.call(
|
|
2396
2396
|
e,
|
|
2397
2397
|
e.transformRequest
|
|
2398
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
2398
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), on.getAdapter(e.adapter || bt.adapter, e)(e).then(function(n) {
|
|
2399
2399
|
return jt(e), n.data = Pt.call(
|
|
2400
2400
|
e,
|
|
2401
2401
|
e.transformResponse,
|
|
2402
2402
|
n
|
|
2403
2403
|
), n.headers = De.from(n.headers), n;
|
|
2404
2404
|
}, function(n) {
|
|
2405
|
-
return
|
|
2405
|
+
return en(n) || (jt(e), n && n.response && (n.response.data = Pt.call(
|
|
2406
2406
|
e,
|
|
2407
2407
|
e.transformResponse,
|
|
2408
2408
|
n.response
|
|
2409
2409
|
), n.response.headers = De.from(n.response.headers))), Promise.reject(n);
|
|
2410
2410
|
});
|
|
2411
2411
|
}
|
|
2412
|
-
const
|
|
2412
|
+
const an = "1.13.2", Ot = {};
|
|
2413
2413
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
2414
2414
|
Ot[e] = function(n) {
|
|
2415
2415
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2416
2416
|
};
|
|
2417
2417
|
});
|
|
2418
|
-
const
|
|
2418
|
+
const vr = {};
|
|
2419
2419
|
Ot.transitional = function(t, r, n) {
|
|
2420
2420
|
function s(o, a) {
|
|
2421
|
-
return "[Axios v" +
|
|
2421
|
+
return "[Axios v" + an + "] Transitional option '" + o + "'" + a + (n ? ". " + n : "");
|
|
2422
2422
|
}
|
|
2423
2423
|
return (o, a, i) => {
|
|
2424
2424
|
if (t === !1)
|
|
@@ -2426,7 +2426,7 @@ Ot.transitional = function(t, r, n) {
|
|
|
2426
2426
|
s(a, " has been removed" + (r ? " in " + r : "")),
|
|
2427
2427
|
ce.ERR_DEPRECATED
|
|
2428
2428
|
);
|
|
2429
|
-
return r && !
|
|
2429
|
+
return r && !vr[a] && (vr[a] = !0, console.warn(
|
|
2430
2430
|
s(
|
|
2431
2431
|
a,
|
|
2432
2432
|
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
@@ -2437,7 +2437,7 @@ Ot.transitional = function(t, r, n) {
|
|
|
2437
2437
|
Ot.spelling = function(t) {
|
|
2438
2438
|
return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
|
2439
2439
|
};
|
|
2440
|
-
function
|
|
2440
|
+
function lo(e, t, r) {
|
|
2441
2441
|
if (typeof e != "object")
|
|
2442
2442
|
throw new ce("options must be an object", ce.ERR_BAD_OPTION_VALUE);
|
|
2443
2443
|
const n = Object.keys(e);
|
|
@@ -2455,14 +2455,14 @@ function io(e, t, r) {
|
|
|
2455
2455
|
}
|
|
2456
2456
|
}
|
|
2457
2457
|
const Nt = {
|
|
2458
|
-
assertOptions:
|
|
2458
|
+
assertOptions: lo,
|
|
2459
2459
|
validators: Ot
|
|
2460
2460
|
}, Pe = Nt.validators;
|
|
2461
2461
|
let Je = class {
|
|
2462
2462
|
constructor(t) {
|
|
2463
2463
|
this.defaults = t || {}, this.interceptors = {
|
|
2464
|
-
request: new
|
|
2465
|
-
response: new
|
|
2464
|
+
request: new ir(),
|
|
2465
|
+
response: new ir()
|
|
2466
2466
|
};
|
|
2467
2467
|
}
|
|
2468
2468
|
/**
|
|
@@ -2527,7 +2527,7 @@ let Je = class {
|
|
|
2527
2527
|
});
|
|
2528
2528
|
let d, f = 0, m;
|
|
2529
2529
|
if (!c) {
|
|
2530
|
-
const h = [
|
|
2530
|
+
const h = [yr.bind(this), void 0];
|
|
2531
2531
|
for (h.unshift(...i), h.push(...u), m = h.length, d = Promise.resolve(r); f < m; )
|
|
2532
2532
|
d = d.then(h[f++], h[f++]);
|
|
2533
2533
|
return d;
|
|
@@ -2544,7 +2544,7 @@ let Je = class {
|
|
|
2544
2544
|
}
|
|
2545
2545
|
}
|
|
2546
2546
|
try {
|
|
2547
|
-
d =
|
|
2547
|
+
d = yr.call(this, b);
|
|
2548
2548
|
} catch (h) {
|
|
2549
2549
|
return Promise.reject(h);
|
|
2550
2550
|
}
|
|
@@ -2554,8 +2554,8 @@ let Je = class {
|
|
|
2554
2554
|
}
|
|
2555
2555
|
getUri(t) {
|
|
2556
2556
|
t = Ke(this.defaults, t);
|
|
2557
|
-
const r =
|
|
2558
|
-
return
|
|
2557
|
+
const r = rn(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
2558
|
+
return Xr(r, t.params, t.paramsSerializer);
|
|
2559
2559
|
}
|
|
2560
2560
|
};
|
|
2561
2561
|
E.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -2582,7 +2582,7 @@ E.forEach(["post", "put", "patch"], function(t) {
|
|
|
2582
2582
|
}
|
|
2583
2583
|
Je.prototype[t] = r(), Je.prototype[t + "Form"] = r(!0);
|
|
2584
2584
|
});
|
|
2585
|
-
let
|
|
2585
|
+
let co = class ln {
|
|
2586
2586
|
constructor(t) {
|
|
2587
2587
|
if (typeof t != "function")
|
|
2588
2588
|
throw new TypeError("executor must be a function.");
|
|
@@ -2648,19 +2648,19 @@ let lo = class an {
|
|
|
2648
2648
|
static source() {
|
|
2649
2649
|
let t;
|
|
2650
2650
|
return {
|
|
2651
|
-
token: new
|
|
2651
|
+
token: new ln(function(s) {
|
|
2652
2652
|
t = s;
|
|
2653
2653
|
}),
|
|
2654
2654
|
cancel: t
|
|
2655
2655
|
};
|
|
2656
2656
|
}
|
|
2657
2657
|
};
|
|
2658
|
-
function
|
|
2658
|
+
function uo(e) {
|
|
2659
2659
|
return function(r) {
|
|
2660
2660
|
return e.apply(null, r);
|
|
2661
2661
|
};
|
|
2662
2662
|
}
|
|
2663
|
-
function
|
|
2663
|
+
function fo(e) {
|
|
2664
2664
|
return E.isObject(e) && e.isAxiosError === !0;
|
|
2665
2665
|
}
|
|
2666
2666
|
const Ht = {
|
|
@@ -2737,35 +2737,35 @@ const Ht = {
|
|
|
2737
2737
|
Object.entries(Ht).forEach(([e, t]) => {
|
|
2738
2738
|
Ht[t] = e;
|
|
2739
2739
|
});
|
|
2740
|
-
function
|
|
2741
|
-
const t = new Je(e), r =
|
|
2740
|
+
function cn(e) {
|
|
2741
|
+
const t = new Je(e), r = Fr(Je.prototype.request, t);
|
|
2742
2742
|
return E.extend(r, Je.prototype, t, { allOwnKeys: !0 }), E.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(s) {
|
|
2743
|
-
return
|
|
2743
|
+
return cn(Ke(e, s));
|
|
2744
2744
|
}, r;
|
|
2745
2745
|
}
|
|
2746
|
-
const ke =
|
|
2746
|
+
const ke = cn(bt);
|
|
2747
2747
|
ke.Axios = Je;
|
|
2748
2748
|
ke.CanceledError = rt;
|
|
2749
|
-
ke.CancelToken =
|
|
2750
|
-
ke.isCancel =
|
|
2751
|
-
ke.VERSION =
|
|
2749
|
+
ke.CancelToken = co;
|
|
2750
|
+
ke.isCancel = en;
|
|
2751
|
+
ke.VERSION = an;
|
|
2752
2752
|
ke.toFormData = At;
|
|
2753
2753
|
ke.AxiosError = ce;
|
|
2754
2754
|
ke.Cancel = ke.CanceledError;
|
|
2755
2755
|
ke.all = function(t) {
|
|
2756
2756
|
return Promise.all(t);
|
|
2757
2757
|
};
|
|
2758
|
-
ke.spread =
|
|
2759
|
-
ke.isAxiosError =
|
|
2758
|
+
ke.spread = uo;
|
|
2759
|
+
ke.isAxiosError = fo;
|
|
2760
2760
|
ke.mergeConfig = Ke;
|
|
2761
2761
|
ke.AxiosHeaders = De;
|
|
2762
|
-
ke.formToJSON = (e) =>
|
|
2763
|
-
ke.getAdapter =
|
|
2762
|
+
ke.formToJSON = (e) => Qr(E.isHTMLForm(e) ? new FormData(e) : e);
|
|
2763
|
+
ke.getAdapter = on.getAdapter;
|
|
2764
2764
|
ke.HttpStatusCode = Ht;
|
|
2765
2765
|
ke.default = ke;
|
|
2766
2766
|
const {
|
|
2767
2767
|
Axios: Wa,
|
|
2768
|
-
AxiosError:
|
|
2768
|
+
AxiosError: mo,
|
|
2769
2769
|
CanceledError: qa,
|
|
2770
2770
|
isCancel: Ya,
|
|
2771
2771
|
CancelToken: Ga,
|
|
@@ -2781,7 +2781,7 @@ const {
|
|
|
2781
2781
|
getAdapter: si,
|
|
2782
2782
|
mergeConfig: oi
|
|
2783
2783
|
} = ke, ai = (e) => {
|
|
2784
|
-
if (e instanceof
|
|
2784
|
+
if (e instanceof mo) {
|
|
2785
2785
|
const t = e.response?.data || {};
|
|
2786
2786
|
if (t.message)
|
|
2787
2787
|
return t.message;
|
|
@@ -2789,7 +2789,7 @@ const {
|
|
|
2789
2789
|
return Object.values(t.errors).join(", ");
|
|
2790
2790
|
}
|
|
2791
2791
|
return "Ha ocurrido un error";
|
|
2792
|
-
},
|
|
2792
|
+
}, ho = (e) => e.split(" ").filter((t, r, n) => r === 0 || r === n.length - 1 ? t : null).map((t) => t.substring(0, 1)).join(""), ii = (e, t) => {
|
|
2793
2793
|
const r = {
|
|
2794
2794
|
...Object.fromEntries(e.entries()),
|
|
2795
2795
|
...t
|
|
@@ -2827,7 +2827,7 @@ const {
|
|
|
2827
2827
|
digitsMin: n = 0,
|
|
2828
2828
|
specialCharMin: s = 0
|
|
2829
2829
|
}) => new RegExp(`^${t ? "(?=(.*[a-z]){" + t + "})" : ""}${r ? "(?=(.*[A-Z]){" + r + "})" : ""}${n ? "(?=(.*\\d){" + n + "})" : ""}${s ? "(?=(.*[^a-zA-Z0-9]){" + s + "})" : ""}([^\\s]){${e},}$`)
|
|
2830
|
-
},
|
|
2830
|
+
}, xr = (e) => e ? e.startsWith("#") || e.startsWith("rgb") || e.startsWith("hsl") ? e : {
|
|
2831
2831
|
white: "#ffffff",
|
|
2832
2832
|
black: "#000000",
|
|
2833
2833
|
"gray-800": "#1f2937",
|
|
@@ -2839,7 +2839,7 @@ const {
|
|
|
2839
2839
|
"gray-200": "#e5e7eb",
|
|
2840
2840
|
"gray-100": "#f3f4f6",
|
|
2841
2841
|
"gray-50": "#f9fafb"
|
|
2842
|
-
}[e.toLowerCase()] || e : void 0,
|
|
2842
|
+
}[e.toLowerCase()] || e : void 0, po = ({
|
|
2843
2843
|
text: e,
|
|
2844
2844
|
image: t,
|
|
2845
2845
|
bgColor: r = "gray-600",
|
|
@@ -2847,7 +2847,7 @@ const {
|
|
|
2847
2847
|
size: s = "md",
|
|
2848
2848
|
className: o = ""
|
|
2849
2849
|
}) => {
|
|
2850
|
-
const [a, i] = te(!1), c =
|
|
2850
|
+
const [a, i] = te(!1), c = ho(e), u = t && !a, f = `
|
|
2851
2851
|
rounded-full
|
|
2852
2852
|
flex
|
|
2853
2853
|
items-center
|
|
@@ -2863,8 +2863,8 @@ const {
|
|
|
2863
2863
|
}[s]}
|
|
2864
2864
|
${o}
|
|
2865
2865
|
`, m = u ? {} : {
|
|
2866
|
-
backgroundColor:
|
|
2867
|
-
color:
|
|
2866
|
+
backgroundColor: xr(r) || r || "#4b5563",
|
|
2867
|
+
color: xr(n) || n || "#ffffff"
|
|
2868
2868
|
};
|
|
2869
2869
|
return /* @__PURE__ */ l(
|
|
2870
2870
|
"div",
|
|
@@ -2886,8 +2886,8 @@ const {
|
|
|
2886
2886
|
}
|
|
2887
2887
|
);
|
|
2888
2888
|
};
|
|
2889
|
-
|
|
2890
|
-
const
|
|
2889
|
+
po.displayName = "Avatar";
|
|
2890
|
+
const wr = (e) => e ? e.startsWith("#") || e.startsWith("rgb") || e.startsWith("hsl") ? e : {
|
|
2891
2891
|
white: "#ffffff",
|
|
2892
2892
|
black: "#000000",
|
|
2893
2893
|
"gray-800": "#1f2937",
|
|
@@ -2899,27 +2899,27 @@ const xr = (e) => e ? e.startsWith("#") || e.startsWith("rgb") || e.startsWith("
|
|
|
2899
2899
|
"gray-200": "#e5e7eb",
|
|
2900
2900
|
"gray-100": "#f3f4f6",
|
|
2901
2901
|
"gray-50": "#f9fafb"
|
|
2902
|
-
}[e.toLowerCase()] || e : void 0,
|
|
2902
|
+
}[e.toLowerCase()] || e : void 0, go = (e) => ({
|
|
2903
2903
|
primary: "var(--color-primary)",
|
|
2904
2904
|
secondary: "var(--color-secondary)",
|
|
2905
2905
|
success: "var(--color-success)",
|
|
2906
2906
|
warning: "var(--color-warning)",
|
|
2907
2907
|
danger: "var(--color-danger)",
|
|
2908
2908
|
info: "var(--color-info)"
|
|
2909
|
-
})[e],
|
|
2909
|
+
})[e], bo = (e) => ({
|
|
2910
2910
|
primary: "#007aff",
|
|
2911
2911
|
secondary: "#6b7280",
|
|
2912
2912
|
success: "#10b981",
|
|
2913
2913
|
warning: "#f59e0b",
|
|
2914
2914
|
danger: "#ef4444",
|
|
2915
2915
|
info: "#06b6d4"
|
|
2916
|
-
})[e],
|
|
2916
|
+
})[e], yo = ({
|
|
2917
2917
|
stages: e,
|
|
2918
2918
|
className: t = ""
|
|
2919
2919
|
}) => {
|
|
2920
2920
|
if (!e || e.length === 0)
|
|
2921
2921
|
return null;
|
|
2922
|
-
const r = (o) => o.bg ?
|
|
2922
|
+
const r = (o) => o.bg ? wr(o.bg) || o.bg : go(o.variant || "primary"), n = (o) => o.bg ? wr(o.bg) || o.bg : bo(o.variant || "primary"), s = (o, a) => {
|
|
2923
2923
|
const i = n(o), c = n(a);
|
|
2924
2924
|
return `linear-gradient(to bottom, ${i}, ${c})`;
|
|
2925
2925
|
};
|
|
@@ -2983,8 +2983,8 @@ const xr = (e) => e ? e.startsWith("#") || e.startsWith("rgb") || e.startsWith("
|
|
|
2983
2983
|
] }, a);
|
|
2984
2984
|
}) });
|
|
2985
2985
|
};
|
|
2986
|
-
|
|
2987
|
-
const
|
|
2986
|
+
yo.displayName = "RoadMap";
|
|
2987
|
+
const dn = ({
|
|
2988
2988
|
isOpen: e,
|
|
2989
2989
|
title: t,
|
|
2990
2990
|
children: r,
|
|
@@ -3074,7 +3074,7 @@ const cn = ({
|
|
|
3074
3074
|
)
|
|
3075
3075
|
]
|
|
3076
3076
|
}
|
|
3077
|
-
) : null),
|
|
3077
|
+
) : null), un = {
|
|
3078
3078
|
name: "light",
|
|
3079
3079
|
colors: {
|
|
3080
3080
|
primary: "#007aff",
|
|
@@ -3149,7 +3149,7 @@ const cn = ({
|
|
|
3149
3149
|
sizeDefault: "16px",
|
|
3150
3150
|
colorDefault: "#111827"
|
|
3151
3151
|
}
|
|
3152
|
-
},
|
|
3152
|
+
}, vo = {
|
|
3153
3153
|
name: "dark",
|
|
3154
3154
|
colors: {
|
|
3155
3155
|
primary: "#3b82f6",
|
|
@@ -3224,7 +3224,7 @@ const cn = ({
|
|
|
3224
3224
|
sizeDefault: "16px",
|
|
3225
3225
|
colorDefault: "#f9fafb"
|
|
3226
3226
|
}
|
|
3227
|
-
},
|
|
3227
|
+
}, xo = {
|
|
3228
3228
|
name: "blue",
|
|
3229
3229
|
colors: {
|
|
3230
3230
|
primary: "#1e40af",
|
|
@@ -3299,7 +3299,7 @@ const cn = ({
|
|
|
3299
3299
|
sizeDefault: "16px",
|
|
3300
3300
|
colorDefault: "#0f172a"
|
|
3301
3301
|
}
|
|
3302
|
-
},
|
|
3302
|
+
}, wo = {
|
|
3303
3303
|
name: "green",
|
|
3304
3304
|
colors: {
|
|
3305
3305
|
primary: "#059669",
|
|
@@ -3374,17 +3374,17 @@ const cn = ({
|
|
|
3374
3374
|
sizeDefault: "16px",
|
|
3375
3375
|
colorDefault: "#111827"
|
|
3376
3376
|
}
|
|
3377
|
-
},
|
|
3378
|
-
light:
|
|
3379
|
-
dark:
|
|
3380
|
-
blue:
|
|
3381
|
-
green:
|
|
3382
|
-
}, Xt = Xe(void 0),
|
|
3377
|
+
}, Sr = un, Ze = {
|
|
3378
|
+
light: un,
|
|
3379
|
+
dark: vo,
|
|
3380
|
+
blue: xo,
|
|
3381
|
+
green: wo
|
|
3382
|
+
}, Xt = Xe(void 0), So = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase(), ko = (e) => {
|
|
3383
3383
|
const t = {
|
|
3384
3384
|
"--flysoft-theme-name": e.name
|
|
3385
3385
|
};
|
|
3386
3386
|
return Object.entries(e.colors).forEach(([r, n]) => {
|
|
3387
|
-
t[`--flysoft-${
|
|
3387
|
+
t[`--flysoft-${So(r)}`] = n;
|
|
3388
3388
|
}), Object.entries(e.shadows).forEach(([r, n]) => {
|
|
3389
3389
|
t[`--flysoft-shadow-${r}`] = n;
|
|
3390
3390
|
}), Object.entries(e.radius).forEach(([r, n]) => {
|
|
@@ -3401,14 +3401,14 @@ const cn = ({
|
|
|
3401
3401
|
lineHeight: "1.5",
|
|
3402
3402
|
...t
|
|
3403
3403
|
};
|
|
3404
|
-
},
|
|
3404
|
+
}, No = ({
|
|
3405
3405
|
children: e,
|
|
3406
3406
|
initialTheme: t = "light",
|
|
3407
3407
|
storageKey: r = "flysoft-theme",
|
|
3408
3408
|
forceInitialTheme: n = !1,
|
|
3409
3409
|
onThemeChange: s
|
|
3410
3410
|
}) => {
|
|
3411
|
-
const o = () => typeof t == "string" ? Ze[t] ||
|
|
3411
|
+
const o = () => typeof t == "string" ? Ze[t] || Sr : t, [a, i] = te(() => {
|
|
3412
3412
|
if (n)
|
|
3413
3413
|
return o();
|
|
3414
3414
|
if (typeof window < "u") {
|
|
@@ -3448,7 +3448,7 @@ const cn = ({
|
|
|
3448
3448
|
y && (y.style.color = v.colors.textPrimary, y.style.fontFamily = v.fonts.default);
|
|
3449
3449
|
}, f = (v) => {
|
|
3450
3450
|
let T;
|
|
3451
|
-
typeof v == "string" ? Ze[v] ? T = Ze[v] : (console.warn(`Theme "${v}" not found, falling back to default`), T =
|
|
3451
|
+
typeof v == "string" ? Ze[v] ? T = Ze[v] : (console.warn(`Theme "${v}" not found, falling back to default`), T = Sr) : T = v, i(T), u(T.name), typeof window < "u" && localStorage.setItem(r, JSON.stringify(T)), s?.(T), d(T);
|
|
3452
3452
|
}, m = (v) => {
|
|
3453
3453
|
i((T) => {
|
|
3454
3454
|
const y = typeof v == "function" ? v(T) : {
|
|
@@ -3469,7 +3469,7 @@ const cn = ({
|
|
|
3469
3469
|
d(a);
|
|
3470
3470
|
}, [a]);
|
|
3471
3471
|
const h = a.name === "dark", w = Me(
|
|
3472
|
-
() =>
|
|
3472
|
+
() => ko(a),
|
|
3473
3473
|
[a]
|
|
3474
3474
|
), p = {
|
|
3475
3475
|
theme: a,
|
|
@@ -3494,7 +3494,7 @@ const cn = ({
|
|
|
3494
3494
|
if (e === void 0)
|
|
3495
3495
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
3496
3496
|
return e;
|
|
3497
|
-
}, mi = () => He(Xt) !== void 0,
|
|
3497
|
+
}, mi = () => He(Xt) !== void 0, Co = ({
|
|
3498
3498
|
isLoading: e = !1,
|
|
3499
3499
|
text: t,
|
|
3500
3500
|
children: r,
|
|
@@ -3548,15 +3548,15 @@ const cn = ({
|
|
|
3548
3548
|
)
|
|
3549
3549
|
] }) : /* @__PURE__ */ l("div", { className: "flex items-center justify-center p-6 w-full", children: /* @__PURE__ */ l("div", { className: "w-full max-w-2xl", children: /* @__PURE__ */ l(d, {}) }) }) : /* @__PURE__ */ l("div", { className: "flex items-center justify-center p-6 w-full", children: /* @__PURE__ */ l("div", { className: "w-full max-w-2xl", children: /* @__PURE__ */ l(d, {}) }) }) : /* @__PURE__ */ l(je, { children: r });
|
|
3550
3550
|
};
|
|
3551
|
-
function
|
|
3551
|
+
function Eo(e) {
|
|
3552
3552
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3553
3553
|
}
|
|
3554
|
-
var Ct = { exports: {} },
|
|
3555
|
-
function
|
|
3556
|
-
return
|
|
3554
|
+
var Ct = { exports: {} }, To = Ct.exports, kr;
|
|
3555
|
+
function $o() {
|
|
3556
|
+
return kr || (kr = 1, (function(e, t) {
|
|
3557
3557
|
(function(r, n) {
|
|
3558
3558
|
e.exports = n();
|
|
3559
|
-
})(
|
|
3559
|
+
})(To, (function() {
|
|
3560
3560
|
var r = 1e3, n = 6e4, s = 36e5, o = "millisecond", a = "second", i = "minute", c = "hour", u = "day", d = "week", f = "month", m = "quarter", b = "year", h = "date", w = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, T = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
3561
3561
|
var g = ["th", "st", "nd", "rd"], x = R % 100;
|
|
3562
3562
|
return "[" + R + (g[(x - 20) % 10] || g[x] || g[0]) + "]";
|
|
@@ -3829,11 +3829,11 @@ function To() {
|
|
|
3829
3829
|
}));
|
|
3830
3830
|
})(Ct)), Ct.exports;
|
|
3831
3831
|
}
|
|
3832
|
-
var
|
|
3833
|
-
const Le = /* @__PURE__ */
|
|
3832
|
+
var Ro = $o();
|
|
3833
|
+
const Le = /* @__PURE__ */ Eo(Ro), Nr = (e) => Le(e).startOf("day"), Cr = (e, t) => e.isSame(t, "day"), Er = (e, t) => Le().year(e).month(t).daysInMonth(), Do = (e) => {
|
|
3834
3834
|
const t = ["D", "L", "M", "X", "J", "V", "S"];
|
|
3835
3835
|
return e === "sunday" ? t : [...t.slice(1), t[0]];
|
|
3836
|
-
},
|
|
3836
|
+
}, Lo = ({
|
|
3837
3837
|
value: e,
|
|
3838
3838
|
onChange: t,
|
|
3839
3839
|
initialViewDate: r,
|
|
@@ -3871,8 +3871,8 @@ const Le = /* @__PURE__ */ Co($o), kr = (e) => Le(e).startOf("day"), Nr = (e, t)
|
|
|
3871
3871
|
c((I) => ({ ...I, year: I.year + 1 }));
|
|
3872
3872
|
}, b = (I, _, R) => {
|
|
3873
3873
|
const g = _ !== void 0 ? _ : i.month, x = R !== void 0 ? R : i.year, A = Le().year(x).month(g).date(I);
|
|
3874
|
-
t?.(
|
|
3875
|
-
}, w = Le().year(i.year).month(i.month).date(1).day(), p =
|
|
3874
|
+
t?.(Nr(A)), _ !== void 0 && _ !== i.month ? c({ month: g, year: x }) : R !== void 0 && R !== i.year && c({ month: g, year: x });
|
|
3875
|
+
}, w = Le().year(i.year).month(i.month).date(1).day(), p = Er(i.year, i.month), v = Do(n), T = n === "sunday" ? w : w === 0 ? 6 : w - 1, y = i.month === 0 ? 11 : i.month - 1, M = i.month === 0 ? i.year - 1 : i.year, C = Er(M, y), k = i.month === 11 ? 0 : i.month + 1, j = i.month === 11 ? i.year + 1 : i.year, P = [];
|
|
3876
3876
|
let O = 1 - T;
|
|
3877
3877
|
for (let I = 0; I < 6; I++) {
|
|
3878
3878
|
const _ = [];
|
|
@@ -3893,7 +3893,7 @@ const Le = /* @__PURE__ */ Co($o), kr = (e) => Le(e).startOf("day"), Nr = (e, t)
|
|
|
3893
3893
|
}
|
|
3894
3894
|
P.push(_);
|
|
3895
3895
|
}
|
|
3896
|
-
const $ = e && e.isValid() ?
|
|
3896
|
+
const $ = e && e.isValid() ? Nr(e) : null, D = Le().year(i.year).month(i.month).date(1).format("MMMM");
|
|
3897
3897
|
return /* @__PURE__ */ L(
|
|
3898
3898
|
"div",
|
|
3899
3899
|
{
|
|
@@ -3964,7 +3964,7 @@ const Le = /* @__PURE__ */ Co($o), kr = (e) => Le(e).startOf("day"), Nr = (e, t)
|
|
|
3964
3964
|
I
|
|
3965
3965
|
)) }),
|
|
3966
3966
|
/* @__PURE__ */ l("div", { className: "grid grid-rows-6 gap-1", children: P.map((I, _) => /* @__PURE__ */ l("div", { className: "grid grid-cols-7 gap-1", children: I.map((R, g) => {
|
|
3967
|
-
const { day: x, month: A, year: S } = R, V = A === i.month && S === i.year, F = Le().year(S).month(A).date(x), q =
|
|
3967
|
+
const { day: x, month: A, year: S } = R, V = A === i.month && S === i.year, F = Le().year(S).month(A).date(x), q = Cr(F, o), re = $ !== null && Cr(F, $);
|
|
3968
3968
|
let H = "w-8 h-8 flex items-center justify-center rounded-full cursor-pointer text-xs";
|
|
3969
3969
|
return re ? H += " bg-[var(--color-primary)] text-[var(--color-primary-contrast)]" : q ? H += " border border-[var(--color-primary)] text-[var(--color-primary)]" : V ? H += " text-[var(--color-text-primary)] hover:bg-[var(--color-bg-secondary)]" : H += " text-[var(--color-text-muted)] opacity-50 hover:bg-[var(--color-bg-secondary)] hover:opacity-75", /* @__PURE__ */ l(
|
|
3970
3970
|
"button",
|
|
@@ -3980,9 +3980,9 @@ const Le = /* @__PURE__ */ Co($o), kr = (e) => Le(e).startOf("day"), Nr = (e, t)
|
|
|
3980
3980
|
]
|
|
3981
3981
|
}
|
|
3982
3982
|
);
|
|
3983
|
-
},
|
|
3983
|
+
}, Tr = (e) => e.toString().padStart(2, "0"), Ao = (e) => e != null && typeof e == "object" && "isValid" in e && typeof e.isValid == "function", Wt = (e) => {
|
|
3984
3984
|
if (e == null) return null;
|
|
3985
|
-
if (
|
|
3985
|
+
if (Ao(e)) return e;
|
|
3986
3986
|
if (typeof e == "string" || typeof e == "number" || e instanceof Date) {
|
|
3987
3987
|
const t = Le(e);
|
|
3988
3988
|
return t.isValid() ? t : null;
|
|
@@ -3991,7 +3991,7 @@ const Le = /* @__PURE__ */ Co($o), kr = (e) => Le(e).startOf("day"), Nr = (e, t)
|
|
|
3991
3991
|
}, qe = (e, t) => {
|
|
3992
3992
|
const r = Wt(e);
|
|
3993
3993
|
if (!r || !r.isValid()) return "";
|
|
3994
|
-
const n =
|
|
3994
|
+
const n = Tr(r.date()), s = Tr(r.month() + 1), o = r.year().toString();
|
|
3995
3995
|
return t === "mm/dd/yyyy" ? `${s}/${n}/${o}` : `${n}/${s}/${o}`;
|
|
3996
3996
|
}, at = (e, t) => {
|
|
3997
3997
|
const r = e.replace(/\D/g, "");
|
|
@@ -4010,7 +4010,7 @@ const Le = /* @__PURE__ */ Co($o), kr = (e) => Le(e).startOf("day"), Nr = (e, t)
|
|
|
4010
4010
|
return null;
|
|
4011
4011
|
const d = Le().year(u).month(c - 1).date(i);
|
|
4012
4012
|
return !d.isValid() || d.year() !== u || d.month() !== c - 1 || d.date() !== i ? null : d.startOf("day");
|
|
4013
|
-
},
|
|
4013
|
+
}, fn = G.forwardRef(
|
|
4014
4014
|
({
|
|
4015
4015
|
value: e,
|
|
4016
4016
|
onChange: t,
|
|
@@ -4283,7 +4283,7 @@ const Le = /* @__PURE__ */ Co($o), kr = (e) => Le(e).startOf("day"), Nr = (e, t)
|
|
|
4283
4283
|
left: `${k.left}px`
|
|
4284
4284
|
},
|
|
4285
4285
|
children: /* @__PURE__ */ l(
|
|
4286
|
-
|
|
4286
|
+
Lo,
|
|
4287
4287
|
{
|
|
4288
4288
|
...n,
|
|
4289
4289
|
value: p ?? q,
|
|
@@ -4298,7 +4298,7 @@ const Le = /* @__PURE__ */ Co($o), kr = (e) => Le(e).startOf("day"), Nr = (e, t)
|
|
|
4298
4298
|
] });
|
|
4299
4299
|
}
|
|
4300
4300
|
);
|
|
4301
|
-
|
|
4301
|
+
fn.displayName = "DateInput";
|
|
4302
4302
|
const it = ({
|
|
4303
4303
|
label: e,
|
|
4304
4304
|
value: t,
|
|
@@ -4309,59 +4309,57 @@ const it = ({
|
|
|
4309
4309
|
className: a = "",
|
|
4310
4310
|
labelClassName: i = ""
|
|
4311
4311
|
}) => {
|
|
4312
|
-
const c =
|
|
4313
|
-
o && window.open(o, "_blank", "noopener,noreferrer");
|
|
4314
|
-
}, u = {
|
|
4312
|
+
const c = {
|
|
4315
4313
|
left: "text-left",
|
|
4316
4314
|
right: "text-right",
|
|
4317
4315
|
center: "text-center"
|
|
4318
|
-
},
|
|
4316
|
+
}, u = {
|
|
4319
4317
|
left: "justify-start",
|
|
4320
4318
|
right: "justify-end",
|
|
4321
4319
|
center: "justify-center"
|
|
4322
|
-
},
|
|
4320
|
+
}, d = `
|
|
4323
4321
|
font-[var(--font-default)]
|
|
4324
|
-
${
|
|
4322
|
+
${c[n]}
|
|
4325
4323
|
${a}
|
|
4326
|
-
`.trim(),
|
|
4324
|
+
`.trim(), f = `
|
|
4327
4325
|
text-sm text-[var(--color-text-primary)]
|
|
4328
4326
|
${i}
|
|
4329
|
-
`.trim(),
|
|
4327
|
+
`.trim(), m = `
|
|
4330
4328
|
text-base text-[var(--color-text-primary)]
|
|
4331
4329
|
`;
|
|
4332
|
-
return r ? /* @__PURE__ */ l("div", { className:
|
|
4333
|
-
e && /* @__PURE__ */ L("span", { className:
|
|
4330
|
+
return r ? /* @__PURE__ */ l("div", { className: d, title: s, children: /* @__PURE__ */ L("div", { className: `flex items-center gap-2 ${u[n]}`, children: [
|
|
4331
|
+
e && /* @__PURE__ */ L("span", { className: f, children: [
|
|
4334
4332
|
e,
|
|
4335
4333
|
":"
|
|
4336
4334
|
] }),
|
|
4337
|
-
/* @__PURE__ */ l("span", { className:
|
|
4335
|
+
/* @__PURE__ */ l("span", { className: m, children: t }),
|
|
4338
4336
|
o && /* @__PURE__ */ l(
|
|
4339
|
-
|
|
4337
|
+
rr,
|
|
4340
4338
|
{
|
|
4339
|
+
to: o,
|
|
4341
4340
|
size: "sm",
|
|
4342
4341
|
variant: "ghost",
|
|
4343
4342
|
icon: "fa-arrow-right",
|
|
4344
|
-
onClick: c,
|
|
4345
4343
|
"aria-label": "Abrir enlace"
|
|
4346
4344
|
}
|
|
4347
4345
|
)
|
|
4348
|
-
] }) }) : /* @__PURE__ */ L("div", { className:
|
|
4349
|
-
e && /* @__PURE__ */ l("div", { className:
|
|
4350
|
-
/* @__PURE__ */ L("div", { className: `flex items-center gap-2 ${
|
|
4351
|
-
/* @__PURE__ */ l("div", { className:
|
|
4346
|
+
] }) }) : /* @__PURE__ */ L("div", { className: d, title: s, children: [
|
|
4347
|
+
e && /* @__PURE__ */ l("div", { className: f, children: e }),
|
|
4348
|
+
/* @__PURE__ */ L("div", { className: `flex items-center gap-2 ${u[n]}`, children: [
|
|
4349
|
+
/* @__PURE__ */ l("div", { className: m, children: t }),
|
|
4352
4350
|
o && /* @__PURE__ */ l(
|
|
4353
|
-
|
|
4351
|
+
rr,
|
|
4354
4352
|
{
|
|
4353
|
+
to: o,
|
|
4355
4354
|
size: "sm",
|
|
4356
4355
|
variant: "ghost",
|
|
4357
4356
|
icon: "fa-arrow-right",
|
|
4358
|
-
onClick: c,
|
|
4359
4357
|
"aria-label": "Abrir enlace"
|
|
4360
4358
|
}
|
|
4361
4359
|
)
|
|
4362
4360
|
] })
|
|
4363
4361
|
] });
|
|
4364
|
-
},
|
|
4362
|
+
}, mn = (e) => {
|
|
4365
4363
|
const {
|
|
4366
4364
|
paramName: t,
|
|
4367
4365
|
label: r,
|
|
@@ -4669,7 +4667,7 @@ const it = ({
|
|
|
4669
4667
|
)) }),
|
|
4670
4668
|
/* @__PURE__ */ L("div", { className: "flex items-center justify-start gap-2", children: [
|
|
4671
4669
|
/* @__PURE__ */ l("div", { style: { width: m }, children: /* @__PURE__ */ l(
|
|
4672
|
-
|
|
4670
|
+
In,
|
|
4673
4671
|
{
|
|
4674
4672
|
ref: le,
|
|
4675
4673
|
options: e.options,
|
|
@@ -4742,7 +4740,7 @@ const it = ({
|
|
|
4742
4740
|
)) }),
|
|
4743
4741
|
/* @__PURE__ */ L("div", { className: "flex items-center justify-start gap-2", children: [
|
|
4744
4742
|
/* @__PURE__ */ l("div", { style: { width: m }, children: /* @__PURE__ */ l(
|
|
4745
|
-
|
|
4743
|
+
fn,
|
|
4746
4744
|
{
|
|
4747
4745
|
ref: ae,
|
|
4748
4746
|
value: C,
|
|
@@ -4808,7 +4806,7 @@ const it = ({
|
|
|
4808
4806
|
U.value
|
|
4809
4807
|
)) }),
|
|
4810
4808
|
/* @__PURE__ */ l("div", { style: { width: m }, children: /* @__PURE__ */ l(
|
|
4811
|
-
|
|
4809
|
+
Na,
|
|
4812
4810
|
{
|
|
4813
4811
|
ref: H,
|
|
4814
4812
|
value: O,
|
|
@@ -5042,7 +5040,7 @@ const it = ({
|
|
|
5042
5040
|
}
|
|
5043
5041
|
),
|
|
5044
5042
|
/* @__PURE__ */ l(
|
|
5045
|
-
|
|
5043
|
+
dn,
|
|
5046
5044
|
{
|
|
5047
5045
|
isOpen: n,
|
|
5048
5046
|
title: "Filtros",
|
|
@@ -5052,11 +5050,11 @@ const it = ({
|
|
|
5052
5050
|
] }),
|
|
5053
5051
|
onClose: u,
|
|
5054
5052
|
closeOnOverlayClick: !1,
|
|
5055
|
-
children: /* @__PURE__ */ l("div", { className: "space-y-4", children: /* @__PURE__ */ l(Et, { direction: "column", gap: "1rem", children: e.map((m) => /* @__PURE__ */ l(
|
|
5053
|
+
children: /* @__PURE__ */ l("div", { className: "space-y-4", children: /* @__PURE__ */ l(Et, { direction: "column", gap: "1rem", children: e.map((m) => /* @__PURE__ */ l(mn, { ...f(m) }, m.paramName)) }) })
|
|
5056
5054
|
}
|
|
5057
5055
|
)
|
|
5058
5056
|
] });
|
|
5059
|
-
},
|
|
5057
|
+
}, Oo = G.memo(
|
|
5060
5058
|
({ id: e, message: t, variant: r, duration: n = 3e3, icon: s, iconLabel: o, onClose: a }) => {
|
|
5061
5059
|
const [i, c] = te(100), [u, d] = te(!1), f = ye(null), m = ye(Date.now()), b = ye(n), h = ye(!1), p = {
|
|
5062
5060
|
primary: {
|
|
@@ -5189,11 +5187,11 @@ const it = ({
|
|
|
5189
5187
|
}
|
|
5190
5188
|
);
|
|
5191
5189
|
}
|
|
5192
|
-
), mn = Xe(
|
|
5193
|
-
void 0
|
|
5194
5190
|
), hn = Xe(
|
|
5195
5191
|
void 0
|
|
5196
|
-
),
|
|
5192
|
+
), pn = Xe(
|
|
5193
|
+
void 0
|
|
5194
|
+
), Mo = ({
|
|
5197
5195
|
children: e
|
|
5198
5196
|
}) => {
|
|
5199
5197
|
const [t, r] = te([]), n = me(
|
|
@@ -5218,22 +5216,22 @@ const it = ({
|
|
|
5218
5216
|
}),
|
|
5219
5217
|
[n, s]
|
|
5220
5218
|
);
|
|
5221
|
-
return /* @__PURE__ */ l(
|
|
5222
|
-
},
|
|
5223
|
-
const e = He(
|
|
5219
|
+
return /* @__PURE__ */ l(pn.Provider, { value: o, children: /* @__PURE__ */ l(hn.Provider, { value: t, children: e }) });
|
|
5220
|
+
}, gn = () => {
|
|
5221
|
+
const e = He(pn);
|
|
5224
5222
|
if (e === void 0)
|
|
5225
5223
|
throw new Error("useSnackbar must be used within a SnackbarProvider");
|
|
5226
5224
|
return e;
|
|
5227
|
-
},
|
|
5228
|
-
const e = He(
|
|
5225
|
+
}, Io = () => {
|
|
5226
|
+
const e = He(hn);
|
|
5229
5227
|
if (e === void 0)
|
|
5230
5228
|
throw new Error("useSnackbarState must be used within a SnackbarProvider");
|
|
5231
5229
|
return e;
|
|
5232
|
-
},
|
|
5230
|
+
}, Po = ({
|
|
5233
5231
|
position: e = "top-right",
|
|
5234
5232
|
maxSnackbars: t = 5
|
|
5235
5233
|
}) => {
|
|
5236
|
-
const r =
|
|
5234
|
+
const r = Io(), { removeSnackbar: n } = gn(), s = r.slice(-t), o = {
|
|
5237
5235
|
"top-right": "top-4 right-4",
|
|
5238
5236
|
"top-left": "top-4 left-4",
|
|
5239
5237
|
"bottom-right": "bottom-4 right-4",
|
|
@@ -5251,7 +5249,7 @@ const it = ({
|
|
|
5251
5249
|
"aria-live": "polite",
|
|
5252
5250
|
"aria-atomic": "true",
|
|
5253
5251
|
children: /* @__PURE__ */ l("div", { className: "flex flex-col gap-3 pointer-events-auto", children: s.map((a) => /* @__PURE__ */ l(
|
|
5254
|
-
|
|
5252
|
+
Oo,
|
|
5255
5253
|
{
|
|
5256
5254
|
id: a.id,
|
|
5257
5255
|
message: a.message,
|
|
@@ -5265,46 +5263,46 @@ const it = ({
|
|
|
5265
5263
|
)) })
|
|
5266
5264
|
}
|
|
5267
5265
|
);
|
|
5268
|
-
},
|
|
5266
|
+
}, jo = (e, t) => {
|
|
5269
5267
|
const r = new Array(e.length + t.length);
|
|
5270
5268
|
for (let n = 0; n < e.length; n++)
|
|
5271
5269
|
r[n] = e[n];
|
|
5272
5270
|
for (let n = 0; n < t.length; n++)
|
|
5273
5271
|
r[e.length + n] = t[n];
|
|
5274
5272
|
return r;
|
|
5275
|
-
},
|
|
5273
|
+
}, Vo = (e, t) => ({
|
|
5276
5274
|
classGroupId: e,
|
|
5277
5275
|
validator: t
|
|
5278
|
-
}),
|
|
5276
|
+
}), bn = (e = /* @__PURE__ */ new Map(), t = null, r) => ({
|
|
5279
5277
|
nextPart: e,
|
|
5280
5278
|
validators: t,
|
|
5281
5279
|
classGroupId: r
|
|
5282
|
-
}), $t = "-",
|
|
5283
|
-
const t =
|
|
5280
|
+
}), $t = "-", $r = [], Fo = "arbitrary..", zo = (e) => {
|
|
5281
|
+
const t = Uo(e), {
|
|
5284
5282
|
conflictingClassGroups: r,
|
|
5285
5283
|
conflictingClassGroupModifiers: n
|
|
5286
5284
|
} = e;
|
|
5287
5285
|
return {
|
|
5288
5286
|
getClassGroupId: (a) => {
|
|
5289
5287
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
5290
|
-
return
|
|
5288
|
+
return Bo(a);
|
|
5291
5289
|
const i = a.split($t), c = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
5292
|
-
return
|
|
5290
|
+
return yn(i, c, t);
|
|
5293
5291
|
},
|
|
5294
5292
|
getConflictingClassGroupIds: (a, i) => {
|
|
5295
5293
|
if (i) {
|
|
5296
5294
|
const c = n[a], u = r[a];
|
|
5297
|
-
return c ? u ?
|
|
5295
|
+
return c ? u ? jo(u, c) : c : u || $r;
|
|
5298
5296
|
}
|
|
5299
|
-
return r[a] ||
|
|
5297
|
+
return r[a] || $r;
|
|
5300
5298
|
}
|
|
5301
5299
|
};
|
|
5302
|
-
},
|
|
5300
|
+
}, yn = (e, t, r) => {
|
|
5303
5301
|
if (e.length - t === 0)
|
|
5304
5302
|
return r.classGroupId;
|
|
5305
5303
|
const s = e[t], o = r.nextPart.get(s);
|
|
5306
5304
|
if (o) {
|
|
5307
|
-
const u =
|
|
5305
|
+
const u = yn(e, t + 1, o);
|
|
5308
5306
|
if (u) return u;
|
|
5309
5307
|
}
|
|
5310
5308
|
const a = r.validators;
|
|
@@ -5316,17 +5314,17 @@ const it = ({
|
|
|
5316
5314
|
if (d.validator(i))
|
|
5317
5315
|
return d.classGroupId;
|
|
5318
5316
|
}
|
|
5319
|
-
},
|
|
5317
|
+
}, Bo = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
5320
5318
|
const t = e.slice(1, -1), r = t.indexOf(":"), n = t.slice(0, r);
|
|
5321
|
-
return n ?
|
|
5322
|
-
})(),
|
|
5319
|
+
return n ? Fo + n : void 0;
|
|
5320
|
+
})(), Uo = (e) => {
|
|
5323
5321
|
const {
|
|
5324
5322
|
theme: t,
|
|
5325
5323
|
classGroups: r
|
|
5326
5324
|
} = e;
|
|
5327
|
-
return
|
|
5328
|
-
},
|
|
5329
|
-
const r =
|
|
5325
|
+
return _o(r, t);
|
|
5326
|
+
}, _o = (e, t) => {
|
|
5327
|
+
const r = bn();
|
|
5330
5328
|
for (const n in e) {
|
|
5331
5329
|
const s = e[n];
|
|
5332
5330
|
Zt(s, r, n, t);
|
|
@@ -5336,43 +5334,43 @@ const it = ({
|
|
|
5336
5334
|
const s = e.length;
|
|
5337
5335
|
for (let o = 0; o < s; o++) {
|
|
5338
5336
|
const a = e[o];
|
|
5339
|
-
|
|
5337
|
+
Ho(a, t, r, n);
|
|
5340
5338
|
}
|
|
5341
|
-
},
|
|
5339
|
+
}, Ho = (e, t, r, n) => {
|
|
5342
5340
|
if (typeof e == "string") {
|
|
5343
|
-
|
|
5341
|
+
Wo(e, t, r);
|
|
5344
5342
|
return;
|
|
5345
5343
|
}
|
|
5346
5344
|
if (typeof e == "function") {
|
|
5347
|
-
|
|
5345
|
+
qo(e, t, r, n);
|
|
5348
5346
|
return;
|
|
5349
5347
|
}
|
|
5350
|
-
|
|
5351
|
-
},
|
|
5352
|
-
const n = e === "" ? t :
|
|
5348
|
+
Yo(e, t, r, n);
|
|
5349
|
+
}, Wo = (e, t, r) => {
|
|
5350
|
+
const n = e === "" ? t : vn(t, e);
|
|
5353
5351
|
n.classGroupId = r;
|
|
5354
|
-
},
|
|
5355
|
-
if (
|
|
5352
|
+
}, qo = (e, t, r, n) => {
|
|
5353
|
+
if (Go(e)) {
|
|
5356
5354
|
Zt(e(n), t, r, n);
|
|
5357
5355
|
return;
|
|
5358
5356
|
}
|
|
5359
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
5360
|
-
},
|
|
5357
|
+
t.validators === null && (t.validators = []), t.validators.push(Vo(r, e));
|
|
5358
|
+
}, Yo = (e, t, r, n) => {
|
|
5361
5359
|
const s = Object.entries(e), o = s.length;
|
|
5362
5360
|
for (let a = 0; a < o; a++) {
|
|
5363
5361
|
const [i, c] = s[a];
|
|
5364
|
-
Zt(c,
|
|
5362
|
+
Zt(c, vn(t, i), r, n);
|
|
5365
5363
|
}
|
|
5366
|
-
},
|
|
5364
|
+
}, vn = (e, t) => {
|
|
5367
5365
|
let r = e;
|
|
5368
5366
|
const n = t.split($t), s = n.length;
|
|
5369
5367
|
for (let o = 0; o < s; o++) {
|
|
5370
5368
|
const a = n[o];
|
|
5371
5369
|
let i = r.nextPart.get(a);
|
|
5372
|
-
i || (i =
|
|
5370
|
+
i || (i = bn(), r.nextPart.set(a, i)), r = i;
|
|
5373
5371
|
}
|
|
5374
5372
|
return r;
|
|
5375
|
-
},
|
|
5373
|
+
}, Go = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Jo = (e) => {
|
|
5376
5374
|
if (e < 1)
|
|
5377
5375
|
return {
|
|
5378
5376
|
get: () => {
|
|
@@ -5396,13 +5394,13 @@ const it = ({
|
|
|
5396
5394
|
o in r ? r[o] = a : s(o, a);
|
|
5397
5395
|
}
|
|
5398
5396
|
};
|
|
5399
|
-
}, qt = "!",
|
|
5397
|
+
}, qt = "!", Rr = ":", Ko = [], Dr = (e, t, r, n, s) => ({
|
|
5400
5398
|
modifiers: e,
|
|
5401
5399
|
hasImportantModifier: t,
|
|
5402
5400
|
baseClassName: r,
|
|
5403
5401
|
maybePostfixModifierPosition: n,
|
|
5404
5402
|
isExternal: s
|
|
5405
|
-
}),
|
|
5403
|
+
}), Xo = (e) => {
|
|
5406
5404
|
const {
|
|
5407
5405
|
prefix: t,
|
|
5408
5406
|
experimentalParseClassName: r
|
|
@@ -5414,7 +5412,7 @@ const it = ({
|
|
|
5414
5412
|
for (let w = 0; w < d; w++) {
|
|
5415
5413
|
const p = s[w];
|
|
5416
5414
|
if (a === 0 && i === 0) {
|
|
5417
|
-
if (p ===
|
|
5415
|
+
if (p === Rr) {
|
|
5418
5416
|
o.push(s.slice(c, w)), c = w + 1;
|
|
5419
5417
|
continue;
|
|
5420
5418
|
}
|
|
@@ -5435,11 +5433,11 @@ const it = ({
|
|
|
5435
5433
|
f.startsWith(qt) && (m = f.slice(1), b = !0)
|
|
5436
5434
|
);
|
|
5437
5435
|
const h = u && u > c ? u - c : void 0;
|
|
5438
|
-
return
|
|
5436
|
+
return Dr(o, b, m, h);
|
|
5439
5437
|
};
|
|
5440
5438
|
if (t) {
|
|
5441
|
-
const s = t +
|
|
5442
|
-
n = (a) => a.startsWith(s) ? o(a.slice(s.length)) :
|
|
5439
|
+
const s = t + Rr, o = n;
|
|
5440
|
+
n = (a) => a.startsWith(s) ? o(a.slice(s.length)) : Dr(Ko, !1, a, void 0, !0);
|
|
5443
5441
|
}
|
|
5444
5442
|
if (r) {
|
|
5445
5443
|
const s = n;
|
|
@@ -5449,7 +5447,7 @@ const it = ({
|
|
|
5449
5447
|
});
|
|
5450
5448
|
}
|
|
5451
5449
|
return n;
|
|
5452
|
-
},
|
|
5450
|
+
}, Zo = (e) => {
|
|
5453
5451
|
const t = /* @__PURE__ */ new Map();
|
|
5454
5452
|
return e.orderSensitiveModifiers.forEach((r, n) => {
|
|
5455
5453
|
t.set(r, 1e6 + n);
|
|
@@ -5462,18 +5460,18 @@ const it = ({
|
|
|
5462
5460
|
}
|
|
5463
5461
|
return s.length > 0 && (s.sort(), n.push(...s)), n;
|
|
5464
5462
|
};
|
|
5465
|
-
},
|
|
5466
|
-
cache:
|
|
5467
|
-
parseClassName:
|
|
5468
|
-
sortModifiers:
|
|
5469
|
-
...
|
|
5470
|
-
}),
|
|
5463
|
+
}, Qo = (e) => ({
|
|
5464
|
+
cache: Jo(e.cacheSize),
|
|
5465
|
+
parseClassName: Xo(e),
|
|
5466
|
+
sortModifiers: Zo(e),
|
|
5467
|
+
...zo(e)
|
|
5468
|
+
}), ea = /\s+/, ta = (e, t) => {
|
|
5471
5469
|
const {
|
|
5472
5470
|
parseClassName: r,
|
|
5473
5471
|
getClassGroupId: n,
|
|
5474
5472
|
getConflictingClassGroupIds: s,
|
|
5475
5473
|
sortModifiers: o
|
|
5476
|
-
} = t, a = [], i = e.trim().split(
|
|
5474
|
+
} = t, a = [], i = e.trim().split(ea);
|
|
5477
5475
|
let c = "";
|
|
5478
5476
|
for (let u = i.length - 1; u >= 0; u -= 1) {
|
|
5479
5477
|
const d = i[u], {
|
|
@@ -5511,46 +5509,46 @@ const it = ({
|
|
|
5511
5509
|
c = d + (c.length > 0 ? " " + c : c);
|
|
5512
5510
|
}
|
|
5513
5511
|
return c;
|
|
5514
|
-
},
|
|
5512
|
+
}, ra = (...e) => {
|
|
5515
5513
|
let t = 0, r, n, s = "";
|
|
5516
5514
|
for (; t < e.length; )
|
|
5517
|
-
(r = e[t++]) && (n =
|
|
5515
|
+
(r = e[t++]) && (n = xn(r)) && (s && (s += " "), s += n);
|
|
5518
5516
|
return s;
|
|
5519
|
-
},
|
|
5517
|
+
}, xn = (e) => {
|
|
5520
5518
|
if (typeof e == "string")
|
|
5521
5519
|
return e;
|
|
5522
5520
|
let t, r = "";
|
|
5523
5521
|
for (let n = 0; n < e.length; n++)
|
|
5524
|
-
e[n] && (t =
|
|
5522
|
+
e[n] && (t = xn(e[n])) && (r && (r += " "), r += t);
|
|
5525
5523
|
return r;
|
|
5526
|
-
},
|
|
5524
|
+
}, na = (e, ...t) => {
|
|
5527
5525
|
let r, n, s, o;
|
|
5528
5526
|
const a = (c) => {
|
|
5529
5527
|
const u = t.reduce((d, f) => f(d), e());
|
|
5530
|
-
return r =
|
|
5528
|
+
return r = Qo(u), n = r.cache.get, s = r.cache.set, o = i, i(c);
|
|
5531
5529
|
}, i = (c) => {
|
|
5532
5530
|
const u = n(c);
|
|
5533
5531
|
if (u)
|
|
5534
5532
|
return u;
|
|
5535
|
-
const d =
|
|
5533
|
+
const d = ta(c, r);
|
|
5536
5534
|
return s(c, d), d;
|
|
5537
5535
|
};
|
|
5538
|
-
return o = a, (...c) => o(
|
|
5539
|
-
},
|
|
5540
|
-
const t = (r) => r[e] ||
|
|
5536
|
+
return o = a, (...c) => o(ra(...c));
|
|
5537
|
+
}, sa = [], Ne = (e) => {
|
|
5538
|
+
const t = (r) => r[e] || sa;
|
|
5541
5539
|
return t.isThemeGetter = !0, t;
|
|
5542
|
-
},
|
|
5540
|
+
}, wn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Sn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, oa = /^\d+\/\d+$/, aa = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ia = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, la = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ca = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, da = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Qe = (e) => oa.test(e), ue = (e) => !!e && !Number.isNaN(Number(e)), Ue = (e) => !!e && Number.isInteger(Number(e)), Vt = (e) => e.endsWith("%") && ue(e.slice(0, -1)), Fe = (e) => aa.test(e), ua = () => !0, fa = (e) => (
|
|
5543
5541
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
5544
5542
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
5545
5543
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
5546
|
-
|
|
5547
|
-
),
|
|
5548
|
-
const n =
|
|
5544
|
+
ia.test(e) && !la.test(e)
|
|
5545
|
+
), kn = () => !1, ma = (e) => ca.test(e), ha = (e) => da.test(e), pa = (e) => !Q(e) && !ee(e), ga = (e) => nt(e, En, kn), Q = (e) => wn.test(e), Ye = (e) => nt(e, Tn, fa), Ft = (e) => nt(e, wa, ue), Lr = (e) => nt(e, Nn, kn), ba = (e) => nt(e, Cn, ha), xt = (e) => nt(e, $n, ma), ee = (e) => Sn.test(e), lt = (e) => st(e, Tn), ya = (e) => st(e, Sa), Ar = (e) => st(e, Nn), va = (e) => st(e, En), xa = (e) => st(e, Cn), wt = (e) => st(e, $n, !0), nt = (e, t, r) => {
|
|
5546
|
+
const n = wn.exec(e);
|
|
5549
5547
|
return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
|
|
5550
5548
|
}, st = (e, t, r = !1) => {
|
|
5551
|
-
const n =
|
|
5549
|
+
const n = Sn.exec(e);
|
|
5552
5550
|
return n ? n[1] ? t(n[1]) : r : !1;
|
|
5553
|
-
},
|
|
5551
|
+
}, Nn = (e) => e === "position" || e === "percentage", Cn = (e) => e === "image" || e === "url", En = (e) => e === "length" || e === "size" || e === "bg-size", Tn = (e) => e === "length", wa = (e) => e === "number", Sa = (e) => e === "family-name", $n = (e) => e === "shadow", ka = () => {
|
|
5554
5552
|
const e = Ne("color"), t = Ne("font"), r = Ne("text"), n = Ne("font-weight"), s = Ne("tracking"), o = Ne("leading"), a = Ne("breakpoint"), i = Ne("container"), c = Ne("spacing"), u = Ne("radius"), d = Ne("shadow"), f = Ne("inset-shadow"), m = Ne("text-shadow"), b = Ne("drop-shadow"), h = Ne("blur"), w = Ne("perspective"), p = Ne("aspect"), v = Ne("ease"), T = Ne("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [
|
|
5555
5553
|
"center",
|
|
5556
5554
|
"top",
|
|
@@ -5571,11 +5569,11 @@ const it = ({
|
|
|
5571
5569
|
"left-bottom"
|
|
5572
5570
|
], C = () => [...M(), ee, Q], k = () => ["auto", "hidden", "clip", "visible", "scroll"], j = () => ["auto", "contain", "none"], P = () => [ee, Q, c], O = () => [Qe, "full", "auto", ...P()], $ = () => [Ue, "none", "subgrid", ee, Q], D = () => ["auto", {
|
|
5573
5571
|
span: ["full", Ue, ee, Q]
|
|
5574
|
-
}, Ue, ee, Q], I = () => [Ue, "auto", ee, Q], _ = () => ["auto", "min", "max", "fr", ee, Q], R = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], g = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], x = () => ["auto", ...P()], A = () => [Qe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...P()], S = () => [e, ee, Q], V = () => [...M(),
|
|
5572
|
+
}, Ue, ee, Q], I = () => [Ue, "auto", ee, Q], _ = () => ["auto", "min", "max", "fr", ee, Q], R = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], g = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], x = () => ["auto", ...P()], A = () => [Qe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...P()], S = () => [e, ee, Q], V = () => [...M(), Ar, Lr, {
|
|
5575
5573
|
position: [ee, Q]
|
|
5576
5574
|
}], F = () => ["no-repeat", {
|
|
5577
5575
|
repeat: ["", "x", "y", "space", "round"]
|
|
5578
|
-
}], q = () => ["auto", "cover", "contain",
|
|
5576
|
+
}], q = () => ["auto", "cover", "contain", va, ga, {
|
|
5579
5577
|
size: [ee, Q]
|
|
5580
5578
|
}], re = () => [Vt, lt, Ye], H = () => [
|
|
5581
5579
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -5585,7 +5583,7 @@ const it = ({
|
|
|
5585
5583
|
u,
|
|
5586
5584
|
ee,
|
|
5587
5585
|
Q
|
|
5588
|
-
], ae = () => ["", ue, lt, Ye], le = () => ["solid", "dashed", "dotted", "double"], ve = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], z = () => [ue, Vt,
|
|
5586
|
+
], ae = () => ["", ue, lt, Ye], le = () => ["solid", "dashed", "dotted", "double"], ve = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], z = () => [ue, Vt, Ar, Lr], K = () => [
|
|
5589
5587
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5590
5588
|
"",
|
|
5591
5589
|
"none",
|
|
@@ -5600,11 +5598,11 @@ const it = ({
|
|
|
5600
5598
|
aspect: ["video"],
|
|
5601
5599
|
blur: [Fe],
|
|
5602
5600
|
breakpoint: [Fe],
|
|
5603
|
-
color: [
|
|
5601
|
+
color: [ua],
|
|
5604
5602
|
container: [Fe],
|
|
5605
5603
|
"drop-shadow": [Fe],
|
|
5606
5604
|
ease: ["in", "out", "in-out"],
|
|
5607
|
-
font: [
|
|
5605
|
+
font: [pa],
|
|
5608
5606
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
5609
5607
|
"inset-shadow": [Fe],
|
|
5610
5608
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -6316,7 +6314,7 @@ const it = ({
|
|
|
6316
6314
|
* @see https://tailwindcss.com/docs/font-family
|
|
6317
6315
|
*/
|
|
6318
6316
|
"font-family": [{
|
|
6319
|
-
font: [
|
|
6317
|
+
font: [ya, Q, t]
|
|
6320
6318
|
}],
|
|
6321
6319
|
/**
|
|
6322
6320
|
* Font Variant Numeric
|
|
@@ -6571,7 +6569,7 @@ const it = ({
|
|
|
6571
6569
|
}, Ue, ee, Q],
|
|
6572
6570
|
radial: ["", ee, Q],
|
|
6573
6571
|
conic: [Ue, ee, Q]
|
|
6574
|
-
},
|
|
6572
|
+
}, xa, ba]
|
|
6575
6573
|
}],
|
|
6576
6574
|
/**
|
|
6577
6575
|
* Background Color
|
|
@@ -8020,7 +8018,7 @@ const it = ({
|
|
|
8020
8018
|
},
|
|
8021
8019
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
8022
8020
|
};
|
|
8023
|
-
}, $e = /* @__PURE__ */
|
|
8021
|
+
}, $e = /* @__PURE__ */ na(ka), pi = ({ className: e }) => /* @__PURE__ */ l(
|
|
8024
8022
|
"div",
|
|
8025
8023
|
{
|
|
8026
8024
|
className: $e(
|
|
@@ -8028,7 +8026,7 @@ const it = ({
|
|
|
8028
8026
|
e
|
|
8029
8027
|
)
|
|
8030
8028
|
}
|
|
8031
|
-
),
|
|
8029
|
+
), Rn = G.forwardRef(function({
|
|
8032
8030
|
value: t,
|
|
8033
8031
|
onChange: r,
|
|
8034
8032
|
onSearchPromiseFn: n,
|
|
@@ -8187,7 +8185,7 @@ const it = ({
|
|
|
8187
8185
|
}
|
|
8188
8186
|
}
|
|
8189
8187
|
) }),
|
|
8190
|
-
/* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
8188
|
+
/* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(Co, { isLoading: $, children: !I || P.length > 0 ? /* @__PURE__ */ l("ul", { className: "space-y-1 max-h-96 overflow-y-auto list-none pl-0 m-0", children: P.map((Z, de) => {
|
|
8191
8189
|
const we = H(Z), pe = ae(Z), Se = Z;
|
|
8192
8190
|
return /* @__PURE__ */ l(
|
|
8193
8191
|
"li",
|
|
@@ -8276,7 +8274,7 @@ const it = ({
|
|
|
8276
8274
|
}
|
|
8277
8275
|
),
|
|
8278
8276
|
!w && /* @__PURE__ */ l(
|
|
8279
|
-
|
|
8277
|
+
dn,
|
|
8280
8278
|
{
|
|
8281
8279
|
isOpen: k,
|
|
8282
8280
|
title: a,
|
|
@@ -8287,8 +8285,8 @@ const it = ({
|
|
|
8287
8285
|
)
|
|
8288
8286
|
] });
|
|
8289
8287
|
});
|
|
8290
|
-
|
|
8291
|
-
const
|
|
8288
|
+
Rn.displayName = "SearchSelectInput";
|
|
8289
|
+
const Na = Rn, Dn = ({
|
|
8292
8290
|
fieldName: e = "pagina",
|
|
8293
8291
|
page: t = 1,
|
|
8294
8292
|
pages: r = 1,
|
|
@@ -8366,7 +8364,7 @@ const ka = $n, Rn = ({
|
|
|
8366
8364
|
}
|
|
8367
8365
|
) })
|
|
8368
8366
|
] });
|
|
8369
|
-
},
|
|
8367
|
+
}, Ca = G.forwardRef(
|
|
8370
8368
|
({
|
|
8371
8369
|
options: e,
|
|
8372
8370
|
value: t,
|
|
@@ -8559,8 +8557,8 @@ const ka = $n, Rn = ({
|
|
|
8559
8557
|
] });
|
|
8560
8558
|
}
|
|
8561
8559
|
);
|
|
8562
|
-
|
|
8563
|
-
const
|
|
8560
|
+
Ca.displayName = "RadioButtonGroup";
|
|
8561
|
+
const Ea = G.forwardRef(({ value: e, onChange: t, onFocus: r, onBlur: n, ...s }, o) => {
|
|
8564
8562
|
const [a, i] = te(!1), [c, u] = te(""), d = Me(() => "name" in s && s.name !== void 0, [s]), f = s.name, m = mt(), b = m?.setValue, h = me(
|
|
8565
8563
|
(C) => C == null || isNaN(C) ? "" : new Intl.NumberFormat("es-AR", {
|
|
8566
8564
|
minimumFractionDigits: 2,
|
|
@@ -8609,7 +8607,7 @@ const Ca = G.forwardRef(({ value: e, onChange: t, onFocus: r, onBlur: n, ...s },
|
|
|
8609
8607
|
}
|
|
8610
8608
|
);
|
|
8611
8609
|
});
|
|
8612
|
-
|
|
8610
|
+
Ea.displayName = "CurrencyInput";
|
|
8613
8611
|
const ze = ({
|
|
8614
8612
|
title: e,
|
|
8615
8613
|
subtitle: t,
|
|
@@ -8701,7 +8699,7 @@ const ze = ({
|
|
|
8701
8699
|
]
|
|
8702
8700
|
}
|
|
8703
8701
|
);
|
|
8704
|
-
},
|
|
8702
|
+
}, Ta = (e = {}) => {
|
|
8705
8703
|
const { scope: t = "global", element: r = null, prefix: n = "flysoft" } = e, s = ye(/* @__PURE__ */ new Set()), o = me(
|
|
8706
8704
|
(d) => {
|
|
8707
8705
|
const f = t === "global" ? document.documentElement : r;
|
|
@@ -8755,7 +8753,7 @@ const ze = ({
|
|
|
8755
8753
|
appliedOverridesCount: s.current.size
|
|
8756
8754
|
};
|
|
8757
8755
|
}, gi = (e, t = 3e3, r = {}) => {
|
|
8758
|
-
const { applyOverride: n, revertOverride: s } =
|
|
8756
|
+
const { applyOverride: n, revertOverride: s } = Ta(r);
|
|
8759
8757
|
return { applyTemporaryOverride: me(() => {
|
|
8760
8758
|
n(e);
|
|
8761
8759
|
const a = setTimeout(() => {
|
|
@@ -8779,7 +8777,7 @@ const ze = ({
|
|
|
8779
8777
|
lg: 1024,
|
|
8780
8778
|
xl: 1280,
|
|
8781
8779
|
"2xl": 1536
|
|
8782
|
-
},
|
|
8780
|
+
}, $a = () => {
|
|
8783
8781
|
const [e, t] = te({
|
|
8784
8782
|
width: typeof window < "u" ? window.innerWidth : 1024,
|
|
8785
8783
|
height: typeof window < "u" ? window.innerHeight : 768
|
|
@@ -8797,7 +8795,7 @@ const ze = ({
|
|
|
8797
8795
|
isTablet: r === "md",
|
|
8798
8796
|
isDesktop: r === "lg" || r === "xl" || r === "2xl"
|
|
8799
8797
|
};
|
|
8800
|
-
},
|
|
8798
|
+
}, Ra = (e) => {
|
|
8801
8799
|
const [t, r] = te(0), [n, s] = te(
|
|
8802
8800
|
null
|
|
8803
8801
|
);
|
|
@@ -8821,7 +8819,7 @@ const ze = ({
|
|
|
8821
8819
|
}, [e]), { scrollY: t, scrollDirection: n };
|
|
8822
8820
|
};
|
|
8823
8821
|
function dt(e = {}) {
|
|
8824
|
-
const [t, r] = te(!1), { showSnackbar: n } =
|
|
8822
|
+
const [t, r] = te(!1), { showSnackbar: n } = gn(), {
|
|
8825
8823
|
successMessage: s,
|
|
8826
8824
|
errorMessage: o,
|
|
8827
8825
|
successVariant: a = "success",
|
|
@@ -8874,14 +8872,14 @@ const yi = (e) => {
|
|
|
8874
8872
|
getArray: () => r,
|
|
8875
8873
|
getInstance: (o) => r.find((a) => a.value === o)
|
|
8876
8874
|
};
|
|
8877
|
-
},
|
|
8875
|
+
}, Da = ({
|
|
8878
8876
|
navbar: e,
|
|
8879
8877
|
leftDrawer: t,
|
|
8880
8878
|
contentFooter: r,
|
|
8881
8879
|
children: n,
|
|
8882
8880
|
className: s = ""
|
|
8883
8881
|
}) => {
|
|
8884
|
-
const o = e?.navBarLeftNode, a = e?.navBarRightNode, i = e?.fullWidthNavbar ?? !0, c = e?.height ?? "64px", u = e?.className || "", d = t?.headerNode, f = t?.contentNode, m = t?.footerNode, b = t?.className || "", h = t?.width, { isMobile: w, isTablet: p } =
|
|
8882
|
+
const o = e?.navBarLeftNode, a = e?.navBarRightNode, i = e?.fullWidthNavbar ?? !0, c = e?.height ?? "64px", u = e?.className || "", d = t?.headerNode, f = t?.contentNode, m = t?.footerNode, b = t?.className || "", h = t?.width, { isMobile: w, isTablet: p } = $a(), v = ye(null), { scrollY: T, scrollDirection: y } = Ra(v), [M, C] = te(!1), [k, j] = te(!0), P = ye(k), O = ye(!1), $ = ye(0), D = d || f || m, I = w || p, _ = !I && D, R = o || a || I && D;
|
|
8885
8883
|
G.useEffect(() => {
|
|
8886
8884
|
P.current = k, O.current = !0;
|
|
8887
8885
|
const J = setTimeout(() => {
|
|
@@ -9071,8 +9069,8 @@ const yi = (e) => {
|
|
|
9071
9069
|
}
|
|
9072
9070
|
)
|
|
9073
9071
|
] });
|
|
9074
|
-
},
|
|
9075
|
-
const e = He(
|
|
9072
|
+
}, Ln = Xe(void 0), La = () => {
|
|
9073
|
+
const e = He(Ln);
|
|
9076
9074
|
if (!e)
|
|
9077
9075
|
throw new Error("TabPanel must be used within TabsGroup");
|
|
9078
9076
|
return e;
|
|
@@ -9100,7 +9098,7 @@ const yi = (e) => {
|
|
|
9100
9098
|
), w = (p) => {
|
|
9101
9099
|
b(p);
|
|
9102
9100
|
};
|
|
9103
|
-
return /* @__PURE__ */ l(
|
|
9101
|
+
return /* @__PURE__ */ l(Ln.Provider, { value: h, children: /* @__PURE__ */ L("div", { className: "w-full font-[var(--font-default)]", children: [
|
|
9104
9102
|
/* @__PURE__ */ L("div", { className: "flex items-center justify-between border-b border-[var(--color-border-default)]", children: [
|
|
9105
9103
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-1", children: t.map((p) => {
|
|
9106
9104
|
const v = f.toString() === p.id.toString();
|
|
@@ -9125,7 +9123,7 @@ const yi = (e) => {
|
|
|
9125
9123
|
/* @__PURE__ */ l("div", { className: o ? "mt-2" : "mt-4", children: e })
|
|
9126
9124
|
] }) });
|
|
9127
9125
|
}, xi = ({ children: e, tabId: t }) => {
|
|
9128
|
-
const { activeTab: r } =
|
|
9126
|
+
const { activeTab: r } = La();
|
|
9129
9127
|
return r.toString() === t.toString() ? /* @__PURE__ */ l(
|
|
9130
9128
|
"div",
|
|
9131
9129
|
{
|
|
@@ -9134,7 +9132,7 @@ const yi = (e) => {
|
|
|
9134
9132
|
children: e
|
|
9135
9133
|
}
|
|
9136
9134
|
) : null;
|
|
9137
|
-
},
|
|
9135
|
+
}, Or = ({
|
|
9138
9136
|
options: e,
|
|
9139
9137
|
onOptionSelected: t,
|
|
9140
9138
|
renderNode: r,
|
|
@@ -9256,7 +9254,7 @@ const yi = (e) => {
|
|
|
9256
9254
|
]
|
|
9257
9255
|
}
|
|
9258
9256
|
);
|
|
9259
|
-
},
|
|
9257
|
+
}, Aa = ({
|
|
9260
9258
|
columns: e,
|
|
9261
9259
|
rows: t,
|
|
9262
9260
|
className: r = "",
|
|
@@ -9373,7 +9371,7 @@ const yi = (e) => {
|
|
|
9373
9371
|
children: o ? /* @__PURE__ */ l(P, {}) : I ? /* @__PURE__ */ L("div", { className: "flex items-center justify-between gap-2", children: [
|
|
9374
9372
|
/* @__PURE__ */ l("span", { children: O.header || "" }),
|
|
9375
9373
|
/* @__PURE__ */ l(
|
|
9376
|
-
|
|
9374
|
+
Or,
|
|
9377
9375
|
{
|
|
9378
9376
|
options: j(D),
|
|
9379
9377
|
onOptionSelected: () => {
|
|
@@ -9439,7 +9437,7 @@ const yi = (e) => {
|
|
|
9439
9437
|
children: A ? /* @__PURE__ */ L("div", { className: "flex items-center justify-between gap-2", children: [
|
|
9440
9438
|
/* @__PURE__ */ l("span", { children: R }),
|
|
9441
9439
|
/* @__PURE__ */ l("div", { className: "lg:opacity-0 lg:group-hover/row:opacity-100 transition-opacity", children: /* @__PURE__ */ l(
|
|
9442
|
-
|
|
9440
|
+
Or,
|
|
9443
9441
|
{
|
|
9444
9442
|
options: j(x),
|
|
9445
9443
|
onOptionSelected: () => {
|
|
@@ -9793,7 +9791,7 @@ const yi = (e) => {
|
|
|
9793
9791
|
)
|
|
9794
9792
|
] })
|
|
9795
9793
|
] });
|
|
9796
|
-
},
|
|
9794
|
+
}, Oa = Xe({
|
|
9797
9795
|
user: null,
|
|
9798
9796
|
login: async () => {
|
|
9799
9797
|
},
|
|
@@ -9801,10 +9799,10 @@ const yi = (e) => {
|
|
|
9801
9799
|
},
|
|
9802
9800
|
isAuthenticated: !1,
|
|
9803
9801
|
isLoading: !1
|
|
9804
|
-
}),
|
|
9802
|
+
}), Ma = () => {
|
|
9805
9803
|
const e = localStorage.getItem("auth");
|
|
9806
9804
|
return e ? JSON.parse(e) : {};
|
|
9807
|
-
},
|
|
9805
|
+
}, Mr = (e) => {
|
|
9808
9806
|
localStorage.setItem("auth", JSON.stringify(e));
|
|
9809
9807
|
}, zt = () => {
|
|
9810
9808
|
localStorage.removeItem("auth");
|
|
@@ -9820,7 +9818,7 @@ const yi = (e) => {
|
|
|
9820
9818
|
} catch (t) {
|
|
9821
9819
|
return console.error("Error al verificar expiración del token:", t), !0;
|
|
9822
9820
|
}
|
|
9823
|
-
},
|
|
9821
|
+
}, Ir = (e) => !e || !e.id || !e.token ? !1 : !ut(e.token.expires), Ci = ({
|
|
9824
9822
|
children: e,
|
|
9825
9823
|
getToken: t,
|
|
9826
9824
|
getUserData: r,
|
|
@@ -9832,9 +9830,9 @@ const yi = (e) => {
|
|
|
9832
9830
|
v ? console.error(`[AuthContext] ${w}: `, p) : o && console.log(`[AuthContext] ${w}: `, p);
|
|
9833
9831
|
};
|
|
9834
9832
|
ie(() => {
|
|
9835
|
-
const w =
|
|
9833
|
+
const w = Ma();
|
|
9836
9834
|
m("Init Auth - Retrieved from storage", w);
|
|
9837
|
-
const p =
|
|
9835
|
+
const p = Ir(w);
|
|
9838
9836
|
m("Init Auth - Token valid check", { isValid: p, auth: w }), p ? (i(w), u(!0), m("Init Auth - User authenticated restored", w)) : (w.id && ut(w.token?.expires) ? (m("Init Auth - Token expired or invalid, cleaning storage", w), zt()) : m("Init Auth - No valid session found", w), i(null), u(!1)), f(!1);
|
|
9839
9837
|
}, []);
|
|
9840
9838
|
const b = async (w, p) => {
|
|
@@ -9856,8 +9854,8 @@ const yi = (e) => {
|
|
|
9856
9854
|
name: M,
|
|
9857
9855
|
aditionalData: C,
|
|
9858
9856
|
token: v
|
|
9859
|
-
}, j =
|
|
9860
|
-
m("Login - Final validation", { isValid: j, userData: k }), j ? (i(k),
|
|
9857
|
+
}, j = Ir(k);
|
|
9858
|
+
m("Login - Final validation", { isValid: j, userData: k }), j ? (i(k), Mr(k), u(!0), m("Login - Success", k)) : (i(null), u(!1), m("Login - Validation failed", k, !0));
|
|
9861
9859
|
} else
|
|
9862
9860
|
i(null), u(!1), m("Login - No access token in response", v, !0);
|
|
9863
9861
|
} catch (v) {
|
|
@@ -9886,7 +9884,7 @@ const yi = (e) => {
|
|
|
9886
9884
|
const y = await n(a.token);
|
|
9887
9885
|
if (m("Token Check - Refresh response", y), y && y.accessToken && !ut(y.expires)) {
|
|
9888
9886
|
const M = { ...a, token: y };
|
|
9889
|
-
i(M),
|
|
9887
|
+
i(M), Mr(M), T = !0, m("Token Check - Refresh success", M);
|
|
9890
9888
|
} else
|
|
9891
9889
|
m("Token Check - Refreshed token invalid or expired", y, !0);
|
|
9892
9890
|
} catch (y) {
|
|
@@ -9902,13 +9900,13 @@ const yi = (e) => {
|
|
|
9902
9900
|
return () => clearInterval(p);
|
|
9903
9901
|
}
|
|
9904
9902
|
}, [a, n]), /* @__PURE__ */ l(
|
|
9905
|
-
|
|
9903
|
+
Oa.Provider,
|
|
9906
9904
|
{
|
|
9907
9905
|
value: { user: a, isAuthenticated: c, isLoading: d, login: b, logout: h },
|
|
9908
9906
|
children: e
|
|
9909
9907
|
}
|
|
9910
9908
|
);
|
|
9911
|
-
},
|
|
9909
|
+
}, Ia = () => Xe(void 0), An = Ia();
|
|
9912
9910
|
function Ei({
|
|
9913
9911
|
children: e,
|
|
9914
9912
|
getPromise: t,
|
|
@@ -10089,7 +10087,7 @@ function Ei({
|
|
|
10089
10087
|
isLoading: K.isLoading
|
|
10090
10088
|
},
|
|
10091
10089
|
pagination: /* @__PURE__ */ l(
|
|
10092
|
-
|
|
10090
|
+
Dn,
|
|
10093
10091
|
{
|
|
10094
10092
|
page: v,
|
|
10095
10093
|
pages: y,
|
|
@@ -10101,17 +10099,17 @@ function Ei({
|
|
|
10101
10099
|
extraData: f,
|
|
10102
10100
|
setExtraData: m
|
|
10103
10101
|
};
|
|
10104
|
-
return /* @__PURE__ */ l(
|
|
10102
|
+
return /* @__PURE__ */ l(An.Provider, { value: U, children: e });
|
|
10105
10103
|
}
|
|
10106
10104
|
function Ti() {
|
|
10107
|
-
const e = He(
|
|
10105
|
+
const e = He(An);
|
|
10108
10106
|
if (e === void 0)
|
|
10109
10107
|
throw new Error("useCrud must be used within a CrudProvider");
|
|
10110
10108
|
return e;
|
|
10111
10109
|
}
|
|
10112
10110
|
const Qt = Xe(
|
|
10113
10111
|
void 0
|
|
10114
|
-
),
|
|
10112
|
+
), Pa = ({
|
|
10115
10113
|
children: e,
|
|
10116
10114
|
initialNavbar: t,
|
|
10117
10115
|
initialLeftDrawer: r,
|
|
@@ -10180,7 +10178,7 @@ const Qt = Xe(
|
|
|
10180
10178
|
setNavbarRightNode: y
|
|
10181
10179
|
};
|
|
10182
10180
|
return /* @__PURE__ */ l(Qt.Provider, { value: M, children: /* @__PURE__ */ l(
|
|
10183
|
-
|
|
10181
|
+
Da,
|
|
10184
10182
|
{
|
|
10185
10183
|
navbar: a,
|
|
10186
10184
|
leftDrawer: c,
|
|
@@ -10199,14 +10197,14 @@ const Qt = Xe(
|
|
|
10199
10197
|
initialContentFooter: a,
|
|
10200
10198
|
className: i = ""
|
|
10201
10199
|
}) => /* @__PURE__ */ l(
|
|
10202
|
-
|
|
10200
|
+
No,
|
|
10203
10201
|
{
|
|
10204
10202
|
initialTheme: t,
|
|
10205
10203
|
storageKey: r,
|
|
10206
10204
|
forceInitialTheme: n,
|
|
10207
|
-
children: /* @__PURE__ */ L(
|
|
10205
|
+
children: /* @__PURE__ */ L(Mo, { children: [
|
|
10208
10206
|
/* @__PURE__ */ l(
|
|
10209
|
-
|
|
10207
|
+
Pa,
|
|
10210
10208
|
{
|
|
10211
10209
|
initialNavbar: s,
|
|
10212
10210
|
initialLeftDrawer: o,
|
|
@@ -10215,7 +10213,7 @@ const Qt = Xe(
|
|
|
10215
10213
|
children: e
|
|
10216
10214
|
}
|
|
10217
10215
|
),
|
|
10218
|
-
/* @__PURE__ */ l(
|
|
10216
|
+
/* @__PURE__ */ l(Po, { position: "bottom-right" })
|
|
10219
10217
|
] })
|
|
10220
10218
|
}
|
|
10221
10219
|
), Ri = () => {
|
|
@@ -10224,7 +10222,7 @@ const Qt = Xe(
|
|
|
10224
10222
|
throw new Error("useAppLayout must be used within an AppLayoutProvider");
|
|
10225
10223
|
return e;
|
|
10226
10224
|
}, Di = () => He(Qt) !== void 0;
|
|
10227
|
-
class
|
|
10225
|
+
class On {
|
|
10228
10226
|
instance;
|
|
10229
10227
|
tokenProvider;
|
|
10230
10228
|
constructor(t) {
|
|
@@ -10386,7 +10384,7 @@ class An {
|
|
|
10386
10384
|
})).data;
|
|
10387
10385
|
}
|
|
10388
10386
|
}
|
|
10389
|
-
const er = new
|
|
10387
|
+
const er = new On(), Li = er, Ai = (e) => new On(e), Oi = (e) => {
|
|
10390
10388
|
er.setTokenProvider(e);
|
|
10391
10389
|
}, Mi = () => {
|
|
10392
10390
|
er.clearTokenProvider();
|
|
@@ -10850,7 +10848,7 @@ const er = new An(), Li = er, Ai = (e) => new An(e), Oi = (e) => {
|
|
|
10850
10848
|
children: [
|
|
10851
10849
|
/* @__PURE__ */ l("i", { className: `${Ee(b.icon)} mr-3 flex-shrink-0` }),
|
|
10852
10850
|
/* @__PURE__ */ l("span", { className: "flex-1", children: b.label }),
|
|
10853
|
-
b.badge && /* @__PURE__ */ l(
|
|
10851
|
+
b.badge && /* @__PURE__ */ l(Pn, { variant: "primary", size: "sm", className: "ml-2", children: b.badge })
|
|
10854
10852
|
]
|
|
10855
10853
|
},
|
|
10856
10854
|
b.href
|
|
@@ -11066,7 +11064,7 @@ const er = new An(), Li = er, Ai = (e) => new An(e), Oi = (e) => {
|
|
|
11066
11064
|
(P || u || O) && /* @__PURE__ */ L("div", { className: "flex justify-between items-center my-2", children: [
|
|
11067
11065
|
/* @__PURE__ */ L(Et, { direction: "row", wrap: !0, gap: "0.5rem", children: [
|
|
11068
11066
|
P && /* @__PURE__ */ l(
|
|
11069
|
-
|
|
11067
|
+
mn,
|
|
11070
11068
|
{
|
|
11071
11069
|
paramName: i,
|
|
11072
11070
|
label: c,
|
|
@@ -11077,7 +11075,7 @@ const er = new An(), Li = er, Ai = (e) => new An(e), Oi = (e) => {
|
|
|
11077
11075
|
u
|
|
11078
11076
|
] }),
|
|
11079
11077
|
/* @__PURE__ */ l(Et, { direction: "row", wrap: !0, children: O && /* @__PURE__ */ l(
|
|
11080
|
-
|
|
11078
|
+
Dn,
|
|
11081
11079
|
{
|
|
11082
11080
|
page: d,
|
|
11083
11081
|
pages: f,
|
|
@@ -11088,7 +11086,7 @@ const er = new An(), Li = er, Ai = (e) => new An(e), Oi = (e) => {
|
|
|
11088
11086
|
) })
|
|
11089
11087
|
] }),
|
|
11090
11088
|
/* @__PURE__ */ l(
|
|
11091
|
-
|
|
11089
|
+
Aa,
|
|
11092
11090
|
{
|
|
11093
11091
|
columns: r,
|
|
11094
11092
|
rows: n,
|
|
@@ -11106,66 +11104,66 @@ const er = new An(), Li = er, Ai = (e) => new An(e), Oi = (e) => {
|
|
|
11106
11104
|
};
|
|
11107
11105
|
export {
|
|
11108
11106
|
wi as Accordion,
|
|
11109
|
-
|
|
11107
|
+
Da as AppLayout,
|
|
11110
11108
|
$i as AppLayoutProvider,
|
|
11111
|
-
|
|
11109
|
+
Oa as AuthContext,
|
|
11112
11110
|
Ci as AuthProvider,
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11111
|
+
In as AutocompleteInput,
|
|
11112
|
+
po as Avatar,
|
|
11113
|
+
Pn as Badge,
|
|
11116
11114
|
ge as Button,
|
|
11117
11115
|
ze as Card,
|
|
11118
|
-
|
|
11116
|
+
jr as Checkbox,
|
|
11119
11117
|
Et as Collection,
|
|
11120
11118
|
ji as ContactForm,
|
|
11121
|
-
|
|
11119
|
+
An as CrudContext,
|
|
11122
11120
|
Ei as CrudProvider,
|
|
11123
|
-
|
|
11121
|
+
Ea as CurrencyInput,
|
|
11124
11122
|
Vi as DashboardLayout,
|
|
11125
11123
|
it as DataField,
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11124
|
+
Aa as DataTable,
|
|
11125
|
+
fn as DateInput,
|
|
11126
|
+
Lo as DatePicker,
|
|
11127
|
+
dn as Dialog,
|
|
11128
|
+
Or as DropdownMenu,
|
|
11131
11129
|
ki as DropdownPanel,
|
|
11132
|
-
|
|
11130
|
+
mn as Filter,
|
|
11133
11131
|
hi as FiltersDialog,
|
|
11134
11132
|
zi as FormPattern,
|
|
11135
11133
|
Ce as Input,
|
|
11136
|
-
|
|
11134
|
+
rr as LinkButton,
|
|
11137
11135
|
Bi as ListPattern,
|
|
11138
|
-
|
|
11136
|
+
Co as Loader,
|
|
11139
11137
|
Ii as LoginForm,
|
|
11140
11138
|
Si as Menu,
|
|
11141
|
-
|
|
11142
|
-
|
|
11139
|
+
Dn as Pagination,
|
|
11140
|
+
Ca as RadioButtonGroup,
|
|
11143
11141
|
Hi as React,
|
|
11144
11142
|
Pi as RegistrationForm,
|
|
11145
11143
|
fi as RegularExpressions,
|
|
11146
|
-
|
|
11147
|
-
|
|
11144
|
+
yo as RoadMap,
|
|
11145
|
+
Na as SearchSelectInput,
|
|
11148
11146
|
Fi as SidebarLayout,
|
|
11149
11147
|
pi as Skeleton,
|
|
11150
|
-
|
|
11151
|
-
|
|
11152
|
-
|
|
11148
|
+
Oo as Snackbar,
|
|
11149
|
+
Po as SnackbarContainer,
|
|
11150
|
+
Mo as SnackbarProvider,
|
|
11153
11151
|
xi as TabPanel,
|
|
11154
11152
|
vi as TabsGroup,
|
|
11155
|
-
|
|
11153
|
+
No as ThemeProvider,
|
|
11156
11154
|
Ni as ThemeSwitcher,
|
|
11157
11155
|
Li as apiClient,
|
|
11158
|
-
|
|
11156
|
+
xo as blueTheme,
|
|
11159
11157
|
Mi as clearApiClientTokenProvider,
|
|
11160
11158
|
Ai as createApiClient,
|
|
11161
11159
|
Ua as currencyFormat,
|
|
11162
|
-
|
|
11163
|
-
|
|
11160
|
+
vo as darkTheme,
|
|
11161
|
+
Sr as defaultTheme,
|
|
11164
11162
|
ai as getErrorMessage,
|
|
11165
|
-
|
|
11163
|
+
ho as getInitialLetters,
|
|
11166
11164
|
ii as getQueryString,
|
|
11167
|
-
|
|
11168
|
-
|
|
11165
|
+
wo as greenTheme,
|
|
11166
|
+
un as lightTheme,
|
|
11169
11167
|
ci as nameValueArrayToObject,
|
|
11170
11168
|
di as objectToQueryString,
|
|
11171
11169
|
li as promiseMapper,
|
|
@@ -11175,16 +11173,16 @@ export {
|
|
|
11175
11173
|
Ri as useAppLayout,
|
|
11176
11174
|
Di as useAppLayoutContext,
|
|
11177
11175
|
dt as useAsyncRequest,
|
|
11178
|
-
|
|
11176
|
+
$a as useBreakpoint,
|
|
11179
11177
|
Ti as useCrud,
|
|
11180
|
-
|
|
11178
|
+
Ra as useElementScroll,
|
|
11181
11179
|
yi as useEnum,
|
|
11182
11180
|
bi as useGlobalThemeStyles,
|
|
11183
|
-
|
|
11184
|
-
|
|
11181
|
+
gn as useSnackbar,
|
|
11182
|
+
Io as useSnackbarState,
|
|
11185
11183
|
gi as useTemporaryOverride,
|
|
11186
11184
|
Mt as useTheme,
|
|
11187
11185
|
mi as useThemeContext,
|
|
11188
|
-
|
|
11186
|
+
Ta as useThemeOverride
|
|
11189
11187
|
};
|
|
11190
11188
|
//# sourceMappingURL=index.js.map
|