@luizleon/sf.prefeiturasp.vuecomponents 5.0.16 → 5.0.18
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/sf.prefeiturasp.vuecomponents.js +381 -441
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +2 -2
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/types/primevue/preset.d.ts +3 -11
- package/dist/types/primevue/preset.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Fs = Object.defineProperty;
|
|
2
2
|
var Vs = (t, e, n) => e in t ? Fs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
3
|
+
var Ne = (t, e, n) => Vs(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { defineComponent as Re, onBeforeUnmount as Ci, createElementBlock as U, openBlock as O, unref as ie, renderSlot as fe, createElementVNode as M, computed as we, createBlock as ue, resolveDynamicComponent as vt, normalizeClass as ee, withCtx as mt, createCommentVNode as se, normalizeStyle as Ht, Fragment as Xe, mergeProps as W, toDisplayString as Oe, ref as re, onMounted as Pt, resolveComponent as _n, renderList as No, useSlots as Uo, watch as un, Teleport as Ks, withModifiers as Io, createVNode as Te, Transition as Ho, normalizeProps as Hn, guardReactiveProps as jn, readonly as zs, getCurrentInstance as jo, nextTick as Ii, resolveDirective as Ws, withDirectives as To, vShow as Ti, getCurrentScope as Gs, onScopeDispose as qs, toValue as Ai, inject as Ys, onBeforeMount as Xs, createTextVNode as Tr, watchEffect as Zs } from "vue";
|
|
5
5
|
import { useRouter as Js } from "vue-router";
|
|
6
6
|
class dn {
|
|
7
7
|
/**
|
|
@@ -9,7 +9,7 @@ class dn {
|
|
|
9
9
|
* @param value The initial value of the CSS class string.
|
|
10
10
|
*/
|
|
11
11
|
constructor(e) {
|
|
12
|
-
|
|
12
|
+
Ne(this, "retorno");
|
|
13
13
|
this.retorno = e ?? "";
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
@@ -49,7 +49,7 @@ function Fo(t = []) {
|
|
|
49
49
|
);
|
|
50
50
|
return n >= 100 ? n : 100;
|
|
51
51
|
}
|
|
52
|
-
const Qs = /* @__PURE__ */
|
|
52
|
+
const Qs = /* @__PURE__ */ Re({
|
|
53
53
|
__name: "Tooltip",
|
|
54
54
|
props: {
|
|
55
55
|
text: {}
|
|
@@ -58,10 +58,10 @@ const Qs = /* @__PURE__ */ De({
|
|
|
58
58
|
const e = t;
|
|
59
59
|
class n {
|
|
60
60
|
constructor() {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
Ne(this, "target", null);
|
|
62
|
+
Ne(this, "wrapper", null);
|
|
63
|
+
Ne(this, "inner", null);
|
|
64
|
+
Ne(this, "showTimeout", null);
|
|
65
65
|
}
|
|
66
66
|
Render() {
|
|
67
67
|
this.wrapper = document.createElement("div"), this.wrapper.classList.add("sf-tooltip-wrapper"), this.wrapper.style.zIndex = `${Fo() ?? 1}`, this.wrapper.addEventListener("mouseup", function() {
|
|
@@ -144,7 +144,7 @@ function na(t, e) {
|
|
|
144
144
|
], -1)
|
|
145
145
|
]));
|
|
146
146
|
}
|
|
147
|
-
const Ei = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["disabled", "data-p-loading", "tabindex"], ia = ["data-color"], sa = /* @__PURE__ */
|
|
147
|
+
const Ei = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["disabled", "data-p-loading", "tabindex"], ia = ["data-color"], sa = /* @__PURE__ */ Re({
|
|
148
148
|
__name: "Icon",
|
|
149
149
|
props: {
|
|
150
150
|
icon: {},
|
|
@@ -215,7 +215,7 @@ const Ei = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
215
215
|
_: 1
|
|
216
216
|
}, 8, ["text", "class"]));
|
|
217
217
|
}
|
|
218
|
-
}), rt = /* @__PURE__ */ _t(sa, [["__scopeId", "data-v-c242d02a"]]), aa = { class: "sf-tab-navigation" }, la = ["data-active"], ca = ["href", "onClick"], Em = /* @__PURE__ */
|
|
218
|
+
}), rt = /* @__PURE__ */ _t(sa, [["__scopeId", "data-v-c242d02a"]]), aa = { class: "sf-tab-navigation" }, la = ["data-active"], ca = ["href", "onClick"], Em = /* @__PURE__ */ Re({
|
|
219
219
|
__name: "TabNavigation",
|
|
220
220
|
props: {
|
|
221
221
|
tabs: {}
|
|
@@ -269,7 +269,7 @@ const Ei = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
269
269
|
ref_key: "trackerContainer",
|
|
270
270
|
ref: n
|
|
271
271
|
}, [
|
|
272
|
-
(O(!0), U(Xe, null,
|
|
272
|
+
(O(!0), U(Xe, null, No(e.tabs, (m) => (O(), ue(d, {
|
|
273
273
|
to: m.route,
|
|
274
274
|
custom: !0
|
|
275
275
|
}, {
|
|
@@ -313,7 +313,7 @@ const Ei = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
313
313
|
]);
|
|
314
314
|
};
|
|
315
315
|
}
|
|
316
|
-
}), ua = ["id", "name", "disabled", "data-color", "form", "type", "data-p-loading"], da = /* @__PURE__ */
|
|
316
|
+
}), ua = ["id", "name", "disabled", "data-color", "form", "type", "data-p-loading"], da = /* @__PURE__ */ Re({
|
|
317
317
|
__name: "Button",
|
|
318
318
|
props: {
|
|
319
319
|
icon: {},
|
|
@@ -381,7 +381,7 @@ const Ei = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
381
381
|
], 2)
|
|
382
382
|
], 14, ua)) : se("", !0);
|
|
383
383
|
}
|
|
384
|
-
}), Pm = /* @__PURE__ */ _t(da, [["__scopeId", "data-v-26a9968b"]]), fa = { class: "sf-drawer-title" }, ma = { class: "sf-drawer-action" }, pa = /* @__PURE__ */
|
|
384
|
+
}), Pm = /* @__PURE__ */ _t(da, [["__scopeId", "data-v-26a9968b"]]), fa = { class: "sf-drawer-title" }, ma = { class: "sf-drawer-action" }, pa = /* @__PURE__ */ Re({
|
|
385
385
|
__name: "Drawer",
|
|
386
386
|
props: {
|
|
387
387
|
visible: { type: Boolean, default: !1 },
|
|
@@ -412,7 +412,7 @@ const Ei = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
412
412
|
o("open"), window.document.addEventListener("keydown", m, !0);
|
|
413
413
|
}
|
|
414
414
|
function w(b) {
|
|
415
|
-
s.value = Fo(), b.style.zIndex = `${s.value}`;
|
|
415
|
+
s.value = Fo() + 1, b.style.zIndex = `${s.value}`;
|
|
416
416
|
}
|
|
417
417
|
function k(b) {
|
|
418
418
|
var S;
|
|
@@ -494,7 +494,7 @@ const Ei = /* @__PURE__ */ _t(ea, [["render", na]]), oa = ["data-size"], ra = ["
|
|
|
494
494
|
], 6)) : se("", !0)
|
|
495
495
|
]));
|
|
496
496
|
}
|
|
497
|
-
}), ha = ["data-icon"], xm = /* @__PURE__ */
|
|
497
|
+
}), ha = ["data-icon"], xm = /* @__PURE__ */ Re({
|
|
498
498
|
__name: "Message",
|
|
499
499
|
props: {
|
|
500
500
|
color: { default: "info" },
|
|
@@ -699,7 +699,7 @@ function Vo(t) {
|
|
|
699
699
|
function Q(t) {
|
|
700
700
|
return !It(t);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function Dt(t, e, n) {
|
|
703
703
|
return Ao(t, e);
|
|
704
704
|
}
|
|
705
705
|
function Pr(t, e) {
|
|
@@ -756,9 +756,9 @@ function Li(t) {
|
|
|
756
756
|
function xr(t) {
|
|
757
757
|
return Me(t) ? t.replace(/[A-Z]/g, (e, n) => n === 0 ? e : "." + e.toLowerCase()).toLowerCase() : t;
|
|
758
758
|
}
|
|
759
|
-
var
|
|
759
|
+
var Rn = {};
|
|
760
760
|
function Ea(t = "pui_id_") {
|
|
761
|
-
return
|
|
761
|
+
return Rn.hasOwnProperty(t) || (Rn[t] = 0), Rn[t]++, `${t}${Rn[t]}`;
|
|
762
762
|
}
|
|
763
763
|
function qn() {
|
|
764
764
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pv_id_";
|
|
@@ -798,7 +798,7 @@ function Eo(t = "", e = "") {
|
|
|
798
798
|
function Mi(t = "", e = "") {
|
|
799
799
|
return `--${Eo(t, e)}`;
|
|
800
800
|
}
|
|
801
|
-
function
|
|
801
|
+
function Ri(t, e = "", n = "", o = [], r) {
|
|
802
802
|
if (Me(t)) {
|
|
803
803
|
const i = /{([^}]*)}/g, a = t.trim();
|
|
804
804
|
if (dt(a, i)) {
|
|
@@ -812,20 +812,20 @@ function Di(t, e = "", n = "", o = [], r) {
|
|
|
812
812
|
} else if (xi(t))
|
|
813
813
|
return $r(t, e);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function Ra(t, e, n) {
|
|
816
816
|
Me(e, !1) && t.push(`${e}:${n};`);
|
|
817
817
|
}
|
|
818
818
|
function rn(t, e) {
|
|
819
819
|
return t ? `${t}{${e}}` : "";
|
|
820
820
|
}
|
|
821
|
-
var po = (...t) =>
|
|
821
|
+
var po = (...t) => Da(ne.getTheme(), ...t), Da = (t = {}, e, n, o = "variable") => {
|
|
822
822
|
if (e) {
|
|
823
823
|
const { variable: r, options: i } = ne.defaults || {}, { prefix: a, transform: s } = (t == null ? void 0 : t.options) || i || {}, u = dt(e, /{([^}]*)}/g) ? e : `{${e}}`;
|
|
824
|
-
return o === "value" || s === "strict" ? ne.getTokenValue(e) :
|
|
824
|
+
return o === "value" || s === "strict" ? ne.getTokenValue(e) : Ri(u, void 0, a, [r.excludedKeyRegex], n);
|
|
825
825
|
}
|
|
826
826
|
return "";
|
|
827
827
|
};
|
|
828
|
-
function
|
|
828
|
+
function Ba(t, e = {}) {
|
|
829
829
|
const n = ne.defaults.variable, { prefix: o = n.prefix, selector: r = n.selector, excludedKeyRegex: i = n.excludedKeyRegex } = e, a = (u, d = "") => Object.entries(u).reduce(
|
|
830
830
|
(m, [g, w]) => {
|
|
831
831
|
const k = dt(g, i) ? Eo(d) : Eo(d, Li(g)), A = $a(w);
|
|
@@ -833,7 +833,7 @@ function Na(t, e = {}) {
|
|
|
833
833
|
const { variables: P, tokens: b } = a(A, k);
|
|
834
834
|
Or(m.tokens, b), Or(m.variables, P);
|
|
835
835
|
} else
|
|
836
|
-
m.tokens.push((o ? k.replace(`${o}-`, "") : k).replaceAll("-", ".")),
|
|
836
|
+
m.tokens.push((o ? k.replace(`${o}-`, "") : k).replaceAll("-", ".")), Ra(m.variables, Mi(k), Ri(A, k, o, [i]));
|
|
837
837
|
return m;
|
|
838
838
|
},
|
|
839
839
|
{ variables: [], tokens: [] }
|
|
@@ -887,15 +887,15 @@ var We = {
|
|
|
887
887
|
}
|
|
888
888
|
},
|
|
889
889
|
_toVariables(t, e) {
|
|
890
|
-
return
|
|
890
|
+
return Ba(t, { prefix: e == null ? void 0 : e.prefix });
|
|
891
891
|
},
|
|
892
892
|
getCommon({ name: t = "", theme: e = {}, params: n, set: o, defaults: r }) {
|
|
893
893
|
var i, a, s, l;
|
|
894
894
|
const { preset: u, options: d } = e;
|
|
895
895
|
let m, g, w, k;
|
|
896
896
|
if (Q(u)) {
|
|
897
|
-
const { primitive: A, semantic: P } = u, b = P || {}, { colorScheme: S } = b,
|
|
898
|
-
m = this.transformCSS(t,
|
|
897
|
+
const { primitive: A, semantic: P } = u, b = P || {}, { colorScheme: S } = b, B = Yt(b, ["colorScheme"]), H = S || {}, { dark: Y } = H, pe = Yt(H, ["dark"]), ae = Q(A) ? this._toVariables({ primitive: A }, d) : {}, Be = Q(B) ? this._toVariables({ semantic: B }, d) : {}, le = Q(pe) ? this._toVariables({ light: pe }, d) : {}, X = Q(Y) ? this._toVariables({ dark: Y }, d) : {}, [D, J] = [(i = ae.declarations) != null ? i : "", ae.tokens], [he, ge] = [(a = Be.declarations) != null ? a : "", Be.tokens || []], [Je, st] = [(s = le.declarations) != null ? s : "", le.tokens || []], [Qe, et] = [(l = X.declarations) != null ? l : "", X.tokens || []];
|
|
898
|
+
m = this.transformCSS(t, D, "light", "variable", d, o, r), g = J;
|
|
899
899
|
const St = this.transformCSS(t, `${he}${Je}color-scheme:light`, "light", "variable", d, o, r), Fe = this.transformCSS(t, `${Qe}color-scheme:dark`, "dark", "variable", d, o, r);
|
|
900
900
|
w = `${St}${Fe}`, k = [.../* @__PURE__ */ new Set([...ge, ...st, ...et])];
|
|
901
901
|
}
|
|
@@ -912,9 +912,9 @@ var We = {
|
|
|
912
912
|
},
|
|
913
913
|
getPreset({ name: t = "", preset: e = {}, options: n, params: o, set: r, defaults: i, selector: a }) {
|
|
914
914
|
var s, l, u;
|
|
915
|
-
const d = t.replace("-directive", ""), m = e, { colorScheme: g } = m, w = Yt(m, ["colorScheme"]), k = g || {}, { dark: A } = k, P = Yt(k, ["dark"]), b = Q(w) ? this._toVariables({ [d]: w }, n) : {}, S = Q(P) ? this._toVariables({ [d]: P }, n) : {},
|
|
915
|
+
const d = t.replace("-directive", ""), m = e, { colorScheme: g } = m, w = Yt(m, ["colorScheme"]), k = g || {}, { dark: A } = k, P = Yt(k, ["dark"]), b = Q(w) ? this._toVariables({ [d]: w }, n) : {}, S = Q(P) ? this._toVariables({ [d]: P }, n) : {}, B = Q(A) ? this._toVariables({ [d]: A }, n) : {}, [H, Y] = [(s = b.declarations) != null ? s : "", b.tokens || []], [pe, ae] = [(l = S.declarations) != null ? l : "", S.tokens || []], [Be, le] = [(u = B.declarations) != null ? u : "", B.tokens || []], X = [.../* @__PURE__ */ new Set([...Y, ...ae, ...le])], D = this.transformCSS(d, `${H}${pe}`, "light", "variable", n, r, i, a), J = this.transformCSS(d, Be, "dark", "variable", n, r, i, a);
|
|
916
916
|
return {
|
|
917
|
-
css: `${
|
|
917
|
+
css: `${D}${J}`,
|
|
918
918
|
tokens: X
|
|
919
919
|
};
|
|
920
920
|
},
|
|
@@ -972,9 +972,9 @@ var We = {
|
|
|
972
972
|
let g = a;
|
|
973
973
|
if (d.name = this.path, d.binding || (d.binding = {}), dt(a, m)) {
|
|
974
974
|
const k = a.trim().replaceAll(m, (b) => {
|
|
975
|
-
var S,
|
|
975
|
+
var S, B;
|
|
976
976
|
const H = b.replace(/{|}/g, "");
|
|
977
|
-
return (
|
|
977
|
+
return (B = (S = r[H]) == null ? void 0 : S.computed(u, d)) == null ? void 0 : B.value;
|
|
978
978
|
}), A = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g, P = /var\([^)]+\)/g;
|
|
979
979
|
g = dt(k.replace(P, "0"), A) ? `calc(${k})` : k;
|
|
980
980
|
}
|
|
@@ -1165,18 +1165,18 @@ function Mr(t, e) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
return n;
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function Rr(t) {
|
|
1169
1169
|
for (var e = 1; e < arguments.length; e++) {
|
|
1170
1170
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
1171
1171
|
e % 2 ? Mr(Object(n), !0).forEach(function(o) {
|
|
1172
|
-
|
|
1172
|
+
Na(t, o, n[o]);
|
|
1173
1173
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Mr(Object(n)).forEach(function(o) {
|
|
1174
1174
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
|
1175
1175
|
});
|
|
1176
1176
|
}
|
|
1177
1177
|
return t;
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function Na(t, e, n) {
|
|
1180
1180
|
return (e = Ua(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
1181
1181
|
}
|
|
1182
1182
|
function Ua(t) {
|
|
@@ -1199,18 +1199,18 @@ function ja(t) {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
var Fa = 0;
|
|
1201
1201
|
function Va(t) {
|
|
1202
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = re(!1), o = re(t), r = re(null), i = Ca() ? window.document : void 0, a = e.document, s = a === void 0 ? i : a, l = e.immediate, u = l === void 0 ? !0 : l, d = e.manual, m = d === void 0 ? !1 : d, g = e.name, w = g === void 0 ? "style_".concat(++Fa) : g, k = e.id, A = k === void 0 ? void 0 : k, P = e.media, b = P === void 0 ? void 0 : P, S = e.nonce,
|
|
1202
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = re(!1), o = re(t), r = re(null), i = Ca() ? window.document : void 0, a = e.document, s = a === void 0 ? i : a, l = e.immediate, u = l === void 0 ? !0 : l, d = e.manual, m = d === void 0 ? !1 : d, g = e.name, w = g === void 0 ? "style_".concat(++Fa) : g, k = e.id, A = k === void 0 ? void 0 : k, P = e.media, b = P === void 0 ? void 0 : P, S = e.nonce, B = S === void 0 ? void 0 : S, H = e.first, Y = H === void 0 ? !1 : H, pe = e.onMounted, ae = pe === void 0 ? void 0 : pe, Be = e.onUpdated, le = Be === void 0 ? void 0 : Be, X = e.onLoad, D = X === void 0 ? void 0 : X, J = e.props, he = J === void 0 ? {} : J, ge = function() {
|
|
1203
1203
|
}, Je = function(et) {
|
|
1204
1204
|
var St = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1205
1205
|
if (s) {
|
|
1206
|
-
var Fe =
|
|
1206
|
+
var Fe = Rr(Rr({}, he), St), c = Fe.name || w, p = Fe.id || A, y = Fe.nonce || B;
|
|
1207
1207
|
r.value = s.querySelector('style[data-primevue-style-id="'.concat(c, '"]')) || s.getElementById(p) || s.createElement("style"), r.value.isConnected || (o.value = et || t, Gn(r.value, {
|
|
1208
1208
|
type: "text/css",
|
|
1209
1209
|
id: p,
|
|
1210
1210
|
media: b,
|
|
1211
1211
|
nonce: y
|
|
1212
1212
|
}), Y ? s.head.prepend(r.value) : s.head.appendChild(r.value), Ia(r.value, "data-primevue-style-id", c), Gn(r.value, Fe), r.value.onload = function(T) {
|
|
1213
|
-
return
|
|
1213
|
+
return D == null ? void 0 : D(T, {
|
|
1214
1214
|
name: c
|
|
1215
1215
|
});
|
|
1216
1216
|
}, ae == null || ae(c)), !n.value && (ge = un(o, function(T) {
|
|
@@ -1240,7 +1240,7 @@ function mn(t) {
|
|
|
1240
1240
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1241
1241
|
}, mn(t);
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function Dr(t, e) {
|
|
1244
1244
|
return Ga(t) || Wa(t, e) || za(t, e) || Ka();
|
|
1245
1245
|
}
|
|
1246
1246
|
function Ka() {
|
|
@@ -1249,12 +1249,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1249
1249
|
}
|
|
1250
1250
|
function za(t, e) {
|
|
1251
1251
|
if (t) {
|
|
1252
|
-
if (typeof t == "string") return
|
|
1252
|
+
if (typeof t == "string") return Br(t, e);
|
|
1253
1253
|
var n = {}.toString.call(t).slice(8, -1);
|
|
1254
|
-
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
1254
|
+
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Br(t, e) : void 0;
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function Br(t, e) {
|
|
1258
1258
|
(e == null || e > t.length) && (e = t.length);
|
|
1259
1259
|
for (var n = 0, o = Array(e); n < e; n++) o[n] = t[n];
|
|
1260
1260
|
return o;
|
|
@@ -1280,7 +1280,7 @@ function Wa(t, e) {
|
|
|
1280
1280
|
function Ga(t) {
|
|
1281
1281
|
if (Array.isArray(t)) return t;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function Nr(t, e) {
|
|
1284
1284
|
var n = Object.keys(t);
|
|
1285
1285
|
if (Object.getOwnPropertySymbols) {
|
|
1286
1286
|
var o = Object.getOwnPropertySymbols(t);
|
|
@@ -1293,9 +1293,9 @@ function Br(t, e) {
|
|
|
1293
1293
|
function ho(t) {
|
|
1294
1294
|
for (var e = 1; e < arguments.length; e++) {
|
|
1295
1295
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
1296
|
-
e % 2 ?
|
|
1296
|
+
e % 2 ? Nr(Object(n), !0).forEach(function(o) {
|
|
1297
1297
|
qa(t, o, n[o]);
|
|
1298
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
1298
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Nr(Object(n)).forEach(function(o) {
|
|
1299
1299
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
|
1300
1300
|
});
|
|
1301
1301
|
}
|
|
@@ -1511,7 +1511,7 @@ var Za = function(e) {
|
|
|
1511
1511
|
var o = Ue(this.css, {
|
|
1512
1512
|
dt: po
|
|
1513
1513
|
}), r = an("".concat(o).concat(e)), i = Object.entries(n).reduce(function(a, s) {
|
|
1514
|
-
var l =
|
|
1514
|
+
var l = Dr(s, 2), u = l[0], d = l[1];
|
|
1515
1515
|
return a.push("".concat(u, '="').concat(d, '"')) && a;
|
|
1516
1516
|
}, []).join(" ");
|
|
1517
1517
|
return '<style type="text/css" data-primevue-style-id="'.concat(this.name, '" ').concat(i, ">").concat(r, "</style>");
|
|
@@ -1528,7 +1528,7 @@ var Za = function(e) {
|
|
|
1528
1528
|
var r = this.name === "base" ? "global-style" : "".concat(this.name, "-style"), i = Ue(this.theme, {
|
|
1529
1529
|
dt: po
|
|
1530
1530
|
}), a = an(ne.transformCSS(r, i)), s = Object.entries(n).reduce(function(l, u) {
|
|
1531
|
-
var d =
|
|
1531
|
+
var d = Dr(u, 2), m = d[0], g = d[1];
|
|
1532
1532
|
return l.push("".concat(m, '="').concat(g, '"')) && l;
|
|
1533
1533
|
}, []).join(" ");
|
|
1534
1534
|
o.push('<style type="text/css" data-primevue-style-id="'.concat(r, '" ').concat(s, ">").concat(a, "</style>"));
|
|
@@ -1553,19 +1553,19 @@ function pn(t) {
|
|
|
1553
1553
|
}, pn(t);
|
|
1554
1554
|
}
|
|
1555
1555
|
function tl(t) {
|
|
1556
|
-
return
|
|
1556
|
+
return Ni(t) || nl(t) || Bi(t) || Di();
|
|
1557
1557
|
}
|
|
1558
1558
|
function nl(t) {
|
|
1559
1559
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1562
|
-
return
|
|
1561
|
+
function Dn(t, e) {
|
|
1562
|
+
return Ni(t) || ol(t, e) || Bi(t, e) || Di();
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function Di() {
|
|
1565
1565
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1566
1566
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function Bi(t, e) {
|
|
1569
1569
|
if (t) {
|
|
1570
1570
|
if (typeof t == "string") return Hr(t, e);
|
|
1571
1571
|
var n = {}.toString.call(t).slice(8, -1);
|
|
@@ -1598,7 +1598,7 @@ function ol(t, e) {
|
|
|
1598
1598
|
return s;
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function Ni(t) {
|
|
1602
1602
|
if (Array.isArray(t)) return t;
|
|
1603
1603
|
}
|
|
1604
1604
|
function jr(t, e) {
|
|
@@ -1940,10 +1940,10 @@ var Qn = {
|
|
|
1940
1940
|
},
|
|
1941
1941
|
$_attrsPT: function() {
|
|
1942
1942
|
return Object.entries(this.$attrs || {}).filter(function(e) {
|
|
1943
|
-
var n =
|
|
1943
|
+
var n = Dn(e, 1), o = n[0];
|
|
1944
1944
|
return o == null ? void 0 : o.startsWith("pt:");
|
|
1945
1945
|
}).reduce(function(e, n) {
|
|
1946
|
-
var o =
|
|
1946
|
+
var o = Dn(n, 2), r = o[0], i = o[1], a = r.split(":"), s = tl(a), l = s.slice(1);
|
|
1947
1947
|
return l == null || l.reduce(function(u, d, m, g) {
|
|
1948
1948
|
return !u[d] && (u[d] = m === g.length - 1 ? i : {}), u[d];
|
|
1949
1949
|
}, e), e;
|
|
@@ -1951,10 +1951,10 @@ var Qn = {
|
|
|
1951
1951
|
},
|
|
1952
1952
|
$_attrsWithoutPT: function() {
|
|
1953
1953
|
return Object.entries(this.$attrs || {}).filter(function(e) {
|
|
1954
|
-
var n =
|
|
1954
|
+
var n = Dn(e, 1), o = n[0];
|
|
1955
1955
|
return !(o != null && o.startsWith("pt:"));
|
|
1956
1956
|
}).reduce(function(e, n) {
|
|
1957
|
-
var o =
|
|
1957
|
+
var o = Dn(n, 2), r = o[0], i = o[1];
|
|
1958
1958
|
return e[r] = i, e;
|
|
1959
1959
|
}, {});
|
|
1960
1960
|
},
|
|
@@ -2530,13 +2530,13 @@ var K = {
|
|
|
2530
2530
|
/* computed instance variables */
|
|
2531
2531
|
defaultPT: function() {
|
|
2532
2532
|
return K._getPT(k == null ? void 0 : k.pt, void 0, function(S) {
|
|
2533
|
-
var
|
|
2534
|
-
return S == null || (
|
|
2533
|
+
var B;
|
|
2534
|
+
return S == null || (B = S.directives) === null || B === void 0 ? void 0 : B[e];
|
|
2535
2535
|
});
|
|
2536
2536
|
},
|
|
2537
2537
|
isUnstyled: function() {
|
|
2538
|
-
var S,
|
|
2539
|
-
return ((S = s.$instance) === null || S === void 0 || (S = S.$binding) === null || S === void 0 || (S = S.value) === null || S === void 0 ? void 0 : S.unstyled) !== void 0 ? (
|
|
2538
|
+
var S, B;
|
|
2539
|
+
return ((S = s.$instance) === null || S === void 0 || (S = S.$binding) === null || S === void 0 || (S = S.value) === null || S === void 0 ? void 0 : S.unstyled) !== void 0 ? (B = s.$instance) === null || B === void 0 || (B = B.$binding) === null || B === void 0 || (B = B.value) === null || B === void 0 ? void 0 : B.unstyled : k == null ? void 0 : k.unstyled;
|
|
2540
2540
|
},
|
|
2541
2541
|
theme: function() {
|
|
2542
2542
|
var S;
|
|
@@ -2548,20 +2548,20 @@ var K = {
|
|
|
2548
2548
|
},
|
|
2549
2549
|
/* instance's methods */
|
|
2550
2550
|
ptm: function() {
|
|
2551
|
-
var S,
|
|
2552
|
-
return K._getPTValue(s.$instance, (S = s.$instance) === null || S === void 0 || (S = S.$binding) === null || S === void 0 || (S = S.value) === null || S === void 0 ? void 0 : S.pt,
|
|
2551
|
+
var S, B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2552
|
+
return K._getPTValue(s.$instance, (S = s.$instance) === null || S === void 0 || (S = S.$binding) === null || S === void 0 || (S = S.value) === null || S === void 0 ? void 0 : S.pt, B, Z({}, H));
|
|
2553
2553
|
},
|
|
2554
2554
|
ptmo: function() {
|
|
2555
|
-
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
2556
|
-
return K._getPTValue(s.$instance, S,
|
|
2555
|
+
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", H = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2556
|
+
return K._getPTValue(s.$instance, S, B, H, !1);
|
|
2557
2557
|
},
|
|
2558
2558
|
cx: function() {
|
|
2559
|
-
var S,
|
|
2560
|
-
return (S = s.$instance) !== null && S !== void 0 && S.isUnstyled() ? void 0 : K._getOptionValue((
|
|
2559
|
+
var S, B, H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2560
|
+
return (S = s.$instance) !== null && S !== void 0 && S.isUnstyled() ? void 0 : K._getOptionValue((B = s.$instance) === null || B === void 0 || (B = B.$style) === null || B === void 0 ? void 0 : B.classes, H, Z({}, Y));
|
|
2561
2561
|
},
|
|
2562
2562
|
sx: function() {
|
|
2563
|
-
var S,
|
|
2564
|
-
return H ? K._getOptionValue((S = s.$instance) === null || S === void 0 || (S = S.$style) === null || S === void 0 ? void 0 : S.inlineStyles,
|
|
2563
|
+
var S, B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2564
|
+
return H ? K._getOptionValue((S = s.$instance) === null || S === void 0 || (S = S.$style) === null || S === void 0 ? void 0 : S.inlineStyles, B, Z({}, Y)) : void 0;
|
|
2565
2565
|
}
|
|
2566
2566
|
}, P), s.$instance = s._$instances[e], (m = (g = s.$instance)[a]) === null || m === void 0 || m.call(g, s, l, u, d), s["$".concat(e)] = s.$instance, K._hook(e, a, s, l, u, d), s.$pd || (s.$pd = {}), s.$pd[e] = Z(Z({}, (w = s.$pd) === null || w === void 0 ? void 0 : w[e]), {}, {
|
|
2567
2567
|
name: e,
|
|
@@ -2677,13 +2677,13 @@ function xo(t, e) {
|
|
|
2677
2677
|
return o;
|
|
2678
2678
|
}
|
|
2679
2679
|
function qr(t, e, n) {
|
|
2680
|
-
return (e =
|
|
2680
|
+
return (e = Rl(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
2681
2681
|
}
|
|
2682
|
-
function
|
|
2683
|
-
var e =
|
|
2682
|
+
function Rl(t) {
|
|
2683
|
+
var e = Dl(t, "string");
|
|
2684
2684
|
return vn(e) == "symbol" ? e : e + "";
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2686
|
+
function Dl(t, e) {
|
|
2687
2687
|
if (vn(t) != "object" || !t) return t;
|
|
2688
2688
|
var n = t[Symbol.toPrimitive];
|
|
2689
2689
|
if (n !== void 0) {
|
|
@@ -2693,7 +2693,7 @@ function Rl(t, e) {
|
|
|
2693
2693
|
}
|
|
2694
2694
|
return (e === "string" ? String : Number)(t);
|
|
2695
2695
|
}
|
|
2696
|
-
var
|
|
2696
|
+
var Bl = Pl.extend("ripple", {
|
|
2697
2697
|
watch: {
|
|
2698
2698
|
"config.ripple": function(e) {
|
|
2699
2699
|
e ? (this.createRipple(this.$host), this.bindEvents(this.$host), this.$host.setAttribute("data-pd-ripple", !0), this.$host.style.overflow = "hidden", this.$host.style.position = "relative") : (this.remove(this.$host), this.$host.removeAttribute("data-pd-ripple"));
|
|
@@ -2747,7 +2747,7 @@ var Nl = Pl.extend("ripple", {
|
|
|
2747
2747
|
}) : void 0;
|
|
2748
2748
|
}
|
|
2749
2749
|
}
|
|
2750
|
-
}),
|
|
2750
|
+
}), Nl = {
|
|
2751
2751
|
name: "BasePanelMenu",
|
|
2752
2752
|
extends: Qn,
|
|
2753
2753
|
props: {
|
|
@@ -2905,7 +2905,7 @@ var Nl = Pl.extend("ripple", {
|
|
|
2905
2905
|
ChevronDownIcon: Wo
|
|
2906
2906
|
},
|
|
2907
2907
|
directives: {
|
|
2908
|
-
ripple:
|
|
2908
|
+
ripple: Bl
|
|
2909
2909
|
}
|
|
2910
2910
|
}, Ul = ["tabindex"], Hl = ["id", "aria-label", "aria-expanded", "aria-level", "aria-setsize", "aria-posinset", "data-p-focused", "data-p-disabled"], jl = ["onClick", "onMousemove"], Fl = ["href", "target"];
|
|
2911
2911
|
function Vl(t, e, n, o, r, i) {
|
|
@@ -2913,7 +2913,7 @@ function Vl(t, e, n, o, r, i) {
|
|
|
2913
2913
|
return O(), U("ul", {
|
|
2914
2914
|
class: ee(t.cx("submenu")),
|
|
2915
2915
|
tabindex: n.tabindex
|
|
2916
|
-
}, [(O(!0), U(Xe, null,
|
|
2916
|
+
}, [(O(!0), U(Xe, null, No(n.items, function(l, u) {
|
|
2917
2917
|
return O(), U(Xe, {
|
|
2918
2918
|
key: i.getItemKey(l)
|
|
2919
2919
|
}, [i.isItemVisible(l) && !i.getItemProp(l, "separator") ? (O(), U("li", W({
|
|
@@ -3454,7 +3454,7 @@ function Ql(t, e) {
|
|
|
3454
3454
|
}
|
|
3455
3455
|
var Fi = {
|
|
3456
3456
|
name: "PanelMenu",
|
|
3457
|
-
extends:
|
|
3457
|
+
extends: Nl,
|
|
3458
3458
|
inheritAttrs: !1,
|
|
3459
3459
|
emits: ["update:expandedKeys", "panel-open", "panel-close"],
|
|
3460
3460
|
data: function() {
|
|
@@ -3491,8 +3491,8 @@ var Fi = {
|
|
|
3491
3491
|
},
|
|
3492
3492
|
isItemActive: function(e) {
|
|
3493
3493
|
return this.expandedKeys ? this.expandedKeys[this.getItemProp(e, "key")] : this.multiple ? this.activeItems.some(function(n) {
|
|
3494
|
-
return
|
|
3495
|
-
}) :
|
|
3494
|
+
return Dt(e, n);
|
|
3495
|
+
}) : Dt(e, this.activeItem);
|
|
3496
3496
|
},
|
|
3497
3497
|
isItemVisible: function(e) {
|
|
3498
3498
|
return this.getItemProp(e, "visible") !== !1;
|
|
@@ -3501,7 +3501,7 @@ var Fi = {
|
|
|
3501
3501
|
return this.getItemProp(e, "disabled");
|
|
3502
3502
|
},
|
|
3503
3503
|
isItemFocused: function(e) {
|
|
3504
|
-
return
|
|
3504
|
+
return Dt(e, this.activeItem);
|
|
3505
3505
|
},
|
|
3506
3506
|
getPanelId: function(e) {
|
|
3507
3507
|
return "".concat(this.id, "_").concat(e);
|
|
@@ -3592,10 +3592,10 @@ var Fi = {
|
|
|
3592
3592
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
3593
3593
|
if (!this.isItemDisabled(n)) {
|
|
3594
3594
|
var r = this.isItemActive(n), i = r ? "panel-close" : "panel-open";
|
|
3595
|
-
this.activeItem = o ? n : this.activeItem &&
|
|
3596
|
-
return
|
|
3595
|
+
this.activeItem = o ? n : this.activeItem && Dt(n, this.activeItem) ? null : n, this.multiple && (this.activeItems.some(function(a) {
|
|
3596
|
+
return Dt(n, a);
|
|
3597
3597
|
}) ? this.activeItems = this.activeItems.filter(function(a) {
|
|
3598
|
-
return !
|
|
3598
|
+
return !Dt(n, a);
|
|
3599
3599
|
}) : this.activeItems.push(n)), this.changeExpandedKeys({
|
|
3600
3600
|
item: n,
|
|
3601
3601
|
expanded: !r
|
|
@@ -3637,7 +3637,7 @@ function rc(t, e, n, o, r, i) {
|
|
|
3637
3637
|
return O(), U("div", W({
|
|
3638
3638
|
id: r.id,
|
|
3639
3639
|
class: t.cx("root")
|
|
3640
|
-
}, t.ptmi("root")), [(O(!0), U(Xe, null,
|
|
3640
|
+
}, t.ptmi("root")), [(O(!0), U(Xe, null, No(t.model, function(s, l) {
|
|
3641
3641
|
return O(), U(Xe, {
|
|
3642
3642
|
key: i.getPanelKey(l)
|
|
3643
3643
|
}, [i.isItemVisible(s) ? (O(), U("div", W({
|
|
@@ -3745,7 +3745,7 @@ const ic = { class: "panel-menu-wrapper select-none" }, sc = ["data-active", "on
|
|
|
3745
3745
|
}, mc = {
|
|
3746
3746
|
key: 0,
|
|
3747
3747
|
class: "material-symbols-outlined item-menu-icon-left"
|
|
3748
|
-
}, pc = ["textContent"], hc = /* @__PURE__ */
|
|
3748
|
+
}, pc = ["textContent"], hc = /* @__PURE__ */ Re({
|
|
3749
3749
|
__name: "NavMenu",
|
|
3750
3750
|
props: {
|
|
3751
3751
|
items: {}
|
|
@@ -3815,7 +3815,7 @@ const ic = { class: "panel-menu-wrapper select-none" }, sc = ["data-active", "on
|
|
|
3815
3815
|
]);
|
|
3816
3816
|
};
|
|
3817
3817
|
}
|
|
3818
|
-
}), Lm = /* @__PURE__ */ _t(hc, [["__scopeId", "data-v-cf31441a"]]), Om = /* @__PURE__ */
|
|
3818
|
+
}), Lm = /* @__PURE__ */ _t(hc, [["__scopeId", "data-v-cf31441a"]]), Om = /* @__PURE__ */ Re({
|
|
3819
3819
|
__name: "HelpButton",
|
|
3820
3820
|
props: {
|
|
3821
3821
|
title: {},
|
|
@@ -3862,7 +3862,7 @@ const ic = { class: "panel-menu-wrapper select-none" }, sc = ["data-active", "on
|
|
|
3862
3862
|
}, 8, ["visible"])
|
|
3863
3863
|
], 64));
|
|
3864
3864
|
}
|
|
3865
|
-
}), gc = /* @__PURE__ */
|
|
3865
|
+
}), gc = /* @__PURE__ */ Re({
|
|
3866
3866
|
__name: "LoadingCircle",
|
|
3867
3867
|
props: {
|
|
3868
3868
|
delay: {},
|
|
@@ -3892,7 +3892,7 @@ const ic = { class: "panel-menu-wrapper select-none" }, sc = ["data-active", "on
|
|
|
3892
3892
|
], -1)
|
|
3893
3893
|
]), 2)) : se("", !0);
|
|
3894
3894
|
}
|
|
3895
|
-
}), $m = /* @__PURE__ */ _t(gc, [["__scopeId", "data-v-d74f2b72"]]), vc = /* @__PURE__ */
|
|
3895
|
+
}), $m = /* @__PURE__ */ _t(gc, [["__scopeId", "data-v-d74f2b72"]]), vc = /* @__PURE__ */ Re({
|
|
3896
3896
|
__name: "Content",
|
|
3897
3897
|
props: {
|
|
3898
3898
|
fluid: { type: Boolean }
|
|
@@ -3940,17 +3940,17 @@ const Xt = new yc(), Ki = "SweetAlert2:", bc = (t) => {
|
|
|
3940
3940
|
for (let n = 0; n < t.length; n++)
|
|
3941
3941
|
e.indexOf(t[n]) === -1 && e.push(t[n]);
|
|
3942
3942
|
return e;
|
|
3943
|
-
}, qo = (t) => t.charAt(0).toUpperCase() + t.slice(1), je = (t) => Array.prototype.slice.call(t),
|
|
3943
|
+
}, qo = (t) => t.charAt(0).toUpperCase() + t.slice(1), je = (t) => Array.prototype.slice.call(t), De = (t) => {
|
|
3944
3944
|
console.warn(`${Ki} ${typeof t == "object" ? t.join(" ") : t}`);
|
|
3945
3945
|
}, xt = (t) => {
|
|
3946
3946
|
console.error(`${Ki} ${t}`);
|
|
3947
3947
|
}, Zr = [], wc = (t) => {
|
|
3948
|
-
Zr.includes(t) || (Zr.push(t),
|
|
3948
|
+
Zr.includes(t) || (Zr.push(t), De(t));
|
|
3949
3949
|
}, _c = (t, e) => {
|
|
3950
3950
|
wc(
|
|
3951
3951
|
`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`
|
|
3952
3952
|
);
|
|
3953
|
-
}, eo = (t) => typeof t == "function" ? t() : t, Yo = (t) => t && typeof t.toPromise == "function", Sn = (t) => Yo(t) ? t.toPromise() : Promise.resolve(t), Xo = (t) => t && Promise.resolve(t) === t,
|
|
3953
|
+
}, eo = (t) => typeof t == "function" ? t() : t, Yo = (t) => t && typeof t.toPromise == "function", Sn = (t) => Yo(t) ? t.toPromise() : Promise.resolve(t), Xo = (t) => t && Promise.resolve(t) === t, Nt = {
|
|
3954
3954
|
title: "",
|
|
3955
3955
|
titleText: "",
|
|
3956
3956
|
text: "",
|
|
@@ -4092,14 +4092,14 @@ const Xt = new yc(), Ki = "SweetAlert2:", bc = (t) => {
|
|
|
4092
4092
|
"returnFocus",
|
|
4093
4093
|
"heightAuto",
|
|
4094
4094
|
"keydownListenerCapture"
|
|
4095
|
-
], zi = (t) => Object.prototype.hasOwnProperty.call(
|
|
4096
|
-
zi(t) ||
|
|
4095
|
+
], zi = (t) => Object.prototype.hasOwnProperty.call(Nt, t), Wi = (t) => Sc.indexOf(t) !== -1, Lo = (t) => kc[t], Ic = (t) => {
|
|
4096
|
+
zi(t) || De(`Unknown parameter "${t}"`);
|
|
4097
4097
|
}, Tc = (t) => {
|
|
4098
|
-
Cc.includes(t) &&
|
|
4098
|
+
Cc.includes(t) && De(`The parameter "${t}" is incompatible with toasts`);
|
|
4099
4099
|
}, Ac = (t) => {
|
|
4100
4100
|
Lo(t) && _c(t, Lo(t));
|
|
4101
4101
|
}, Ec = (t) => {
|
|
4102
|
-
!t.backdrop && t.allowOutsideClick &&
|
|
4102
|
+
!t.backdrop && t.allowOutsideClick && De('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
4103
4103
|
for (const e in t)
|
|
4104
4104
|
Ic(e), t.toast && Tc(e), Ac(e);
|
|
4105
4105
|
}, Pc = "swal2-", Gi = (t) => {
|
|
@@ -4231,7 +4231,7 @@ const Xt = new yc(), Ki = "SweetAlert2:", bc = (t) => {
|
|
|
4231
4231
|
}, Ve = (t, e, n) => {
|
|
4232
4232
|
if ($c(t, e), e.customClass && e.customClass[n]) {
|
|
4233
4233
|
if (typeof e.customClass[n] != "string" && !e.customClass[n].forEach)
|
|
4234
|
-
return
|
|
4234
|
+
return De(
|
|
4235
4235
|
`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`
|
|
4236
4236
|
);
|
|
4237
4237
|
q(t, e.customClass[n]);
|
|
@@ -4292,20 +4292,20 @@ const Xt = new yc(), Ki = "SweetAlert2:", bc = (t) => {
|
|
|
4292
4292
|
He(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
4293
4293
|
n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
|
|
4294
4294
|
}, 10));
|
|
4295
|
-
},
|
|
4295
|
+
}, Rc = () => {
|
|
4296
4296
|
const t = no(), e = parseInt(window.getComputedStyle(t).width);
|
|
4297
4297
|
t.style.removeProperty("transition"), t.style.width = "100%";
|
|
4298
4298
|
const n = parseInt(window.getComputedStyle(t).width), o = e / n * 100;
|
|
4299
4299
|
t.style.removeProperty("transition"), t.style.width = `${o}%`;
|
|
4300
|
-
}, ts = () => typeof window > "u" || typeof document > "u",
|
|
4300
|
+
}, ts = () => typeof window > "u" || typeof document > "u", Dc = 100, j = {}, Bc = () => {
|
|
4301
4301
|
j.previousActiveElement && j.previousActiveElement.focus ? (j.previousActiveElement.focus(), j.previousActiveElement = null) : document.body && document.body.focus();
|
|
4302
|
-
},
|
|
4302
|
+
}, Nc = (t) => new Promise((e) => {
|
|
4303
4303
|
if (!t)
|
|
4304
4304
|
return e();
|
|
4305
4305
|
const n = window.scrollX, o = window.scrollY;
|
|
4306
4306
|
j.restoreFocusTimeout = setTimeout(() => {
|
|
4307
|
-
|
|
4308
|
-
},
|
|
4307
|
+
Bc(), e();
|
|
4308
|
+
}, Dc), window.scrollTo(n, o);
|
|
4309
4309
|
}), Uc = `
|
|
4310
4310
|
<div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">
|
|
4311
4311
|
<button type="button" class="${h.close}"></button>
|
|
@@ -4417,7 +4417,7 @@ function Jc(t, e) {
|
|
|
4417
4417
|
typeof e == "string" ? t.style.background = e : e || q([document.documentElement, document.body], h["no-backdrop"]);
|
|
4418
4418
|
}
|
|
4419
4419
|
function Qc(t, e) {
|
|
4420
|
-
e in h ? q(t, h[e]) : (
|
|
4420
|
+
e in h ? q(t, h[e]) : (De('The "position" parameter is not valid, defaulting to "center"'), q(t, h.center));
|
|
4421
4421
|
}
|
|
4422
4422
|
function eu(t, e) {
|
|
4423
4423
|
if (e && typeof e == "string") {
|
|
@@ -4475,7 +4475,7 @@ const tu = (t, e) => {
|
|
|
4475
4475
|
const e = h[t] ? h[t] : h.input;
|
|
4476
4476
|
return yt(te(), e);
|
|
4477
4477
|
}, $e = {};
|
|
4478
|
-
$e.text = $e.email = $e.password = $e.number = $e.tel = $e.url = (t, e) => (typeof e.inputValue == "string" || typeof e.inputValue == "number" ? t.value = e.inputValue : Xo(e.inputValue) ||
|
|
4478
|
+
$e.text = $e.email = $e.password = $e.number = $e.tel = $e.url = (t, e) => (typeof e.inputValue == "string" || typeof e.inputValue == "number" ? t.value = e.inputValue : Xo(e.inputValue) || De(
|
|
4479
4479
|
`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`
|
|
4480
4480
|
), Tn(t, t, e), or(t, e), t.type = e.input, t);
|
|
4481
4481
|
$e.file = (t, e) => (Tn(t, t, e), or(t, e), t);
|
|
@@ -4584,7 +4584,7 @@ const lu = (t, e) => {
|
|
|
4584
4584
|
const n = Xi();
|
|
4585
4585
|
if (!e.progressSteps || e.progressSteps.length === 0)
|
|
4586
4586
|
return ke(n);
|
|
4587
|
-
me(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length &&
|
|
4587
|
+
me(n), n.textContent = "", e.currentProgressStep >= e.progressSteps.length && De(
|
|
4588
4588
|
"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"
|
|
4589
4589
|
), e.progressSteps.forEach((o, r) => {
|
|
4590
4590
|
const i = vu(o);
|
|
@@ -4635,7 +4635,7 @@ const lu = (t, e) => {
|
|
|
4635
4635
|
return je(t.querySelectorAll("swal-param")).forEach((n) => {
|
|
4636
4636
|
At(n, ["name", "value"]);
|
|
4637
4637
|
const o = n.getAttribute("name"), r = n.getAttribute("value");
|
|
4638
|
-
typeof
|
|
4638
|
+
typeof Nt[o] == "boolean" && r === "false" && (e[o] = !1), typeof Nt[o] == "object" && (e[o] = JSON.parse(r));
|
|
4639
4639
|
}), e;
|
|
4640
4640
|
}, Tu = (t) => {
|
|
4641
4641
|
const e = {};
|
|
@@ -4677,11 +4677,11 @@ const lu = (t, e) => {
|
|
|
4677
4677
|
]);
|
|
4678
4678
|
je(t.children).forEach((n) => {
|
|
4679
4679
|
const o = n.tagName.toLowerCase();
|
|
4680
|
-
e.indexOf(o) === -1 &&
|
|
4680
|
+
e.indexOf(o) === -1 && De(`Unrecognized element <${o}>`);
|
|
4681
4681
|
});
|
|
4682
4682
|
}, At = (t, e) => {
|
|
4683
4683
|
je(t.attributes).forEach((n) => {
|
|
4684
|
-
e.indexOf(n.name) === -1 &&
|
|
4684
|
+
e.indexOf(n.name) === -1 && De([
|
|
4685
4685
|
`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,
|
|
4686
4686
|
`${e.length ? `Allowed attributes are: ${e.join(", ")}` : "To set the value, use HTML within the element."}`
|
|
4687
4687
|
]);
|
|
@@ -4696,17 +4696,17 @@ function Ou(t) {
|
|
|
4696
4696
|
});
|
|
4697
4697
|
}
|
|
4698
4698
|
function $u(t) {
|
|
4699
|
-
(!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (
|
|
4699
|
+
(!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (De('Target parameter is not valid, defaulting to "body"'), t.target = "body");
|
|
4700
4700
|
}
|
|
4701
4701
|
function Mu(t) {
|
|
4702
|
-
Ou(t), t.showLoaderOnConfirm && !t.preConfirm &&
|
|
4702
|
+
Ou(t), t.showLoaderOnConfirm && !t.preConfirm && De(
|
|
4703
4703
|
`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
4704
4704
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
4705
4705
|
https://sweetalert2.github.io/#ajax-request`
|
|
4706
4706
|
), $u(t), typeof t.title == "string" && (t.title = t.title.split(`
|
|
4707
4707
|
`).join("<br />")), zc(t);
|
|
4708
4708
|
}
|
|
4709
|
-
class
|
|
4709
|
+
class Ru {
|
|
4710
4710
|
constructor(e, n) {
|
|
4711
4711
|
this.callback = e, this.remaining = n, this.running = !1, this.start();
|
|
4712
4712
|
}
|
|
@@ -4727,11 +4727,11 @@ class Du {
|
|
|
4727
4727
|
return this.running;
|
|
4728
4728
|
}
|
|
4729
4729
|
}
|
|
4730
|
-
const
|
|
4730
|
+
const Du = () => {
|
|
4731
4731
|
Ut.previousBodyPadding === null && document.body.scrollHeight > window.innerHeight && (Ut.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${Ut.previousBodyPadding + qc()}px`);
|
|
4732
|
-
}, Nu = () => {
|
|
4733
|
-
Ut.previousBodyPadding !== null && (document.body.style.paddingRight = `${Ut.previousBodyPadding}px`, Ut.previousBodyPadding = null);
|
|
4734
4732
|
}, Bu = () => {
|
|
4733
|
+
Ut.previousBodyPadding !== null && (document.body.style.paddingRight = `${Ut.previousBodyPadding}px`, Ut.previousBodyPadding = null);
|
|
4734
|
+
}, Nu = () => {
|
|
4735
4735
|
if (// @ts-ignore
|
|
4736
4736
|
(/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) && !ft(document.body, h.iosfix)) {
|
|
4737
4737
|
const e = document.body.scrollTop;
|
|
@@ -4775,7 +4775,7 @@ const Ru = () => {
|
|
|
4775
4775
|
}, Wu = (t, e) => {
|
|
4776
4776
|
bn && es(e) ? (t.style.overflowY = "hidden", e.addEventListener(bn, as)) : t.style.overflowY = "auto";
|
|
4777
4777
|
}, Gu = (t, e, n) => {
|
|
4778
|
-
|
|
4778
|
+
Nu(), e && n !== "hidden" && Du(), setTimeout(() => {
|
|
4779
4779
|
t.scrollTop = 0;
|
|
4780
4780
|
});
|
|
4781
4781
|
}, qu = (t, e, n) => {
|
|
@@ -4920,7 +4920,7 @@ const wn = {
|
|
|
4920
4920
|
eo(e.allowEscapeKey) && (t.preventDefault(), n(Vt.esc));
|
|
4921
4921
|
};
|
|
4922
4922
|
function ds(t, e, n, o) {
|
|
4923
|
-
oo() ? si(t, o) : (
|
|
4923
|
+
oo() ? si(t, o) : (Nc(n).then(() => si(t, o)), cs(j)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), Qo() && (Bu(), Ku(), rs()), gd();
|
|
4924
4924
|
}
|
|
4925
4925
|
function gd() {
|
|
4926
4926
|
it(
|
|
@@ -4928,7 +4928,7 @@ function gd() {
|
|
|
4928
4928
|
[h.shown, h["height-auto"], h["no-backdrop"], h["toast-shown"]]
|
|
4929
4929
|
);
|
|
4930
4930
|
}
|
|
4931
|
-
function
|
|
4931
|
+
function Bn(t) {
|
|
4932
4932
|
t = wd(t);
|
|
4933
4933
|
const e = wn.swalPromiseResolve.get(this), n = yd(this);
|
|
4934
4934
|
this.isAwaitingPromise() ? t.isDismissed || (An(this), e(t)) : n && e(t);
|
|
@@ -5028,7 +5028,7 @@ function Pd() {
|
|
|
5028
5028
|
function xd(t) {
|
|
5029
5029
|
const e = te(), n = F.innerParams.get(this);
|
|
5030
5030
|
if (!e || ft(e, n.hideClass.popup))
|
|
5031
|
-
return
|
|
5031
|
+
return De(
|
|
5032
5032
|
"You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup."
|
|
5033
5033
|
);
|
|
5034
5034
|
const o = Ld(t), r = Object.assign({}, n, o);
|
|
@@ -5043,7 +5043,7 @@ function xd(t) {
|
|
|
5043
5043
|
const Ld = (t) => {
|
|
5044
5044
|
const e = {};
|
|
5045
5045
|
return Object.keys(t).forEach((n) => {
|
|
5046
|
-
Wi(n) ? e[n] = t[n] :
|
|
5046
|
+
Wi(n) ? e[n] = t[n] : De(
|
|
5047
5047
|
`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
5048
5048
|
|
|
5049
5049
|
If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`
|
|
@@ -5068,10 +5068,10 @@ const $d = (t) => {
|
|
|
5068
5068
|
}, hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5069
5069
|
__proto__: null,
|
|
5070
5070
|
_destroy: Od,
|
|
5071
|
-
close:
|
|
5072
|
-
closeModal:
|
|
5073
|
-
closePopup:
|
|
5074
|
-
closeToast:
|
|
5071
|
+
close: Bn,
|
|
5072
|
+
closeModal: Bn,
|
|
5073
|
+
closePopup: Bn,
|
|
5074
|
+
closeToast: Bn,
|
|
5075
5075
|
disableButtons: Cd,
|
|
5076
5076
|
disableInput: Td,
|
|
5077
5077
|
disableLoading: ii,
|
|
@@ -5089,10 +5089,10 @@ const $d = (t) => {
|
|
|
5089
5089
|
}, Symbol.toStringTag, { value: "Module" })), Md = (t) => {
|
|
5090
5090
|
const e = F.innerParams.get(t);
|
|
5091
5091
|
t.disableButtons(), e.input ? gs(t, "confirm") : ir(t, !0);
|
|
5092
|
-
},
|
|
5092
|
+
}, Rd = (t) => {
|
|
5093
5093
|
const e = F.innerParams.get(t);
|
|
5094
5094
|
t.disableButtons(), e.returnInputValueOnDeny ? gs(t, "deny") : rr(t, !1);
|
|
5095
|
-
},
|
|
5095
|
+
}, Dd = (t, e) => {
|
|
5096
5096
|
t.disableButtons(), e(Vt.cancel);
|
|
5097
5097
|
}, gs = (t, e) => {
|
|
5098
5098
|
const n = F.innerParams.get(t);
|
|
@@ -5101,8 +5101,8 @@ const $d = (t) => {
|
|
|
5101
5101
|
`The "input" parameter is needed to be set when using returnInputValueOn${qo(e)}`
|
|
5102
5102
|
);
|
|
5103
5103
|
const o = Zu(t, n);
|
|
5104
|
-
n.inputValidator ?
|
|
5105
|
-
},
|
|
5104
|
+
n.inputValidator ? Bd(t, o, e) : t.getInput().checkValidity() ? e === "deny" ? rr(t, o) : ir(t, o) : (t.enableButtons(), t.showValidationMessage(n.validationMessage));
|
|
5105
|
+
}, Bd = (t, e, n) => {
|
|
5106
5106
|
const o = F.innerParams.get(t);
|
|
5107
5107
|
t.disableInput(), Promise.resolve().then(
|
|
5108
5108
|
() => Sn(o.inputValidator(e, o.validationMessage))
|
|
@@ -5127,7 +5127,7 @@ const $d = (t) => {
|
|
|
5127
5127
|
).then((r) => {
|
|
5128
5128
|
He(to()) || r === !1 ? (t.hideLoading(), An(t)) : ai(t, typeof r > "u" ? e : r);
|
|
5129
5129
|
}).catch((r) => vs(t || void 0, r))) : ai(t, e);
|
|
5130
|
-
},
|
|
5130
|
+
}, Nd = (t, e, n) => {
|
|
5131
5131
|
F.innerParams.get(t).toast ? Ud(t, e, n) : (jd(e), Fd(e), Vd(t, e, n));
|
|
5132
5132
|
}, Ud = (t, e, n) => {
|
|
5133
5133
|
e.popup.onclick = () => {
|
|
@@ -5178,7 +5178,7 @@ function Gd(t) {
|
|
|
5178
5178
|
}
|
|
5179
5179
|
const qd = () => j.timeout && j.timeout.getTimerLeft(), ys = () => {
|
|
5180
5180
|
if (j.timeout)
|
|
5181
|
-
return
|
|
5181
|
+
return Rc(), j.timeout.stop();
|
|
5182
5182
|
}, bs = () => {
|
|
5183
5183
|
if (j.timeout) {
|
|
5184
5184
|
const t = j.timeout.start();
|
|
@@ -5247,12 +5247,12 @@ const Qd = (t) => {
|
|
|
5247
5247
|
stopTimer: ys,
|
|
5248
5248
|
toggleTimer: Yd
|
|
5249
5249
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5250
|
-
let
|
|
5250
|
+
let Ro;
|
|
5251
5251
|
class Kt {
|
|
5252
5252
|
constructor(...e) {
|
|
5253
5253
|
if (typeof window > "u")
|
|
5254
5254
|
return;
|
|
5255
|
-
|
|
5255
|
+
Ro = this;
|
|
5256
5256
|
const n = Object.freeze(this.constructor.argsToParams(e));
|
|
5257
5257
|
Object.defineProperties(this, {
|
|
5258
5258
|
params: {
|
|
@@ -5284,12 +5284,12 @@ const tf = (t, e, n) => new Promise((o, r) => {
|
|
|
5284
5284
|
const i = (a) => {
|
|
5285
5285
|
t.closePopup({ isDismissed: !0, dismiss: a });
|
|
5286
5286
|
};
|
|
5287
|
-
wn.swalPromiseResolve.set(t, o), wn.swalPromiseReject.set(t, r), e.confirmButton.onclick = () => Md(t), e.denyButton.onclick = () =>
|
|
5287
|
+
wn.swalPromiseResolve.set(t, o), wn.swalPromiseReject.set(t, r), e.confirmButton.onclick = () => Md(t), e.denyButton.onclick = () => Rd(t), e.cancelButton.onclick = () => Dd(t, i), e.closeButton.onclick = () => i(Vt.close), Nd(t, e, i), cd(t, j, n, i), Xu(t, n), zu(n), rf(j, n, i), sf(e, n), setTimeout(() => {
|
|
5288
5288
|
e.container.scrollTop = 0;
|
|
5289
5289
|
});
|
|
5290
5290
|
}), nf = (t, e) => {
|
|
5291
|
-
const n = Cu(t), o = Object.assign({},
|
|
5292
|
-
return o.showClass = Object.assign({},
|
|
5291
|
+
const n = Cu(t), o = Object.assign({}, Nt, e, n, t);
|
|
5292
|
+
return o.showClass = Object.assign({}, Nt.showClass, o.showClass), o.hideClass = Object.assign({}, Nt.hideClass, o.hideClass), o;
|
|
5293
5293
|
}, of = (t) => {
|
|
5294
5294
|
const e = {
|
|
5295
5295
|
popup: te(),
|
|
@@ -5306,7 +5306,7 @@ const tf = (t, e, n) => new Promise((o, r) => {
|
|
|
5306
5306
|
return F.domCache.set(t, e), e;
|
|
5307
5307
|
}, rf = (t, e, n) => {
|
|
5308
5308
|
const o = no();
|
|
5309
|
-
ke(o), e.timer && (t.timeout = new
|
|
5309
|
+
ke(o), e.timer && (t.timeout = new Ru(() => {
|
|
5310
5310
|
n("timer"), delete t.timeout;
|
|
5311
5311
|
}, e.timer), e.timerProgressBar && (me(o), Ve(o, e, "timerProgressBar"), setTimeout(() => {
|
|
5312
5312
|
t.timeout && t.timeout.running && tr(e.timer);
|
|
@@ -5324,8 +5324,8 @@ Object.assign(Kt.prototype, hs);
|
|
|
5324
5324
|
Object.assign(Kt, ef);
|
|
5325
5325
|
Object.keys(hs).forEach((t) => {
|
|
5326
5326
|
Kt[t] = function(...e) {
|
|
5327
|
-
if (
|
|
5328
|
-
return
|
|
5327
|
+
if (Ro)
|
|
5328
|
+
return Ro[t](...e);
|
|
5329
5329
|
};
|
|
5330
5330
|
});
|
|
5331
5331
|
Kt.DismissReason = Vt;
|
|
@@ -5345,8 +5345,8 @@ let {
|
|
|
5345
5345
|
seal: Ke,
|
|
5346
5346
|
create: _s
|
|
5347
5347
|
} = Object, {
|
|
5348
|
-
apply:
|
|
5349
|
-
construct:
|
|
5348
|
+
apply: Do,
|
|
5349
|
+
construct: Bo
|
|
5350
5350
|
} = typeof Reflect < "u" && Reflect;
|
|
5351
5351
|
Ee || (Ee = function(e) {
|
|
5352
5352
|
return e;
|
|
@@ -5354,25 +5354,25 @@ Ee || (Ee = function(e) {
|
|
|
5354
5354
|
Ke || (Ke = function(e) {
|
|
5355
5355
|
return e;
|
|
5356
5356
|
});
|
|
5357
|
-
|
|
5357
|
+
Do || (Do = function(e, n, o) {
|
|
5358
5358
|
return e.apply(n, o);
|
|
5359
5359
|
});
|
|
5360
|
-
|
|
5360
|
+
Bo || (Bo = function(e, n) {
|
|
5361
5361
|
return new e(...n);
|
|
5362
5362
|
});
|
|
5363
|
-
const
|
|
5363
|
+
const Nn = Pe(Array.prototype.forEach), ff = Pe(Array.prototype.lastIndexOf), di = Pe(Array.prototype.pop), Zt = Pe(Array.prototype.push), mf = Pe(Array.prototype.splice), Vn = Pe(String.prototype.toLowerCase), yo = Pe(String.prototype.toString), fi = Pe(String.prototype.match), Jt = Pe(String.prototype.replace), pf = Pe(String.prototype.indexOf), hf = Pe(String.prototype.trim), Ge = Pe(Object.prototype.hasOwnProperty), Ie = Pe(RegExp.prototype.test), Qt = gf(TypeError);
|
|
5364
5364
|
function Pe(t) {
|
|
5365
5365
|
return function(e) {
|
|
5366
5366
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
|
5367
5367
|
o[r - 1] = arguments[r];
|
|
5368
|
-
return
|
|
5368
|
+
return Do(t, e, o);
|
|
5369
5369
|
};
|
|
5370
5370
|
}
|
|
5371
5371
|
function gf(t) {
|
|
5372
5372
|
return function() {
|
|
5373
5373
|
for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++)
|
|
5374
5374
|
n[o] = arguments[o];
|
|
5375
|
-
return
|
|
5375
|
+
return Bo(t, n);
|
|
5376
5376
|
};
|
|
5377
5377
|
}
|
|
5378
5378
|
function z(t, e) {
|
|
@@ -5479,7 +5479,7 @@ const tn = {
|
|
|
5479
5479
|
};
|
|
5480
5480
|
function Cs() {
|
|
5481
5481
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ef();
|
|
5482
|
-
const e = (
|
|
5482
|
+
const e = (R) => Cs(R);
|
|
5483
5483
|
if (e.version = "3.2.4", e.removed = [], !t || !t.document || t.document.nodeType !== tn.document || !t.Element)
|
|
5484
5484
|
return e.isSupported = !1, e;
|
|
5485
5485
|
let {
|
|
@@ -5495,22 +5495,22 @@ function Cs() {
|
|
|
5495
5495
|
HTMLFormElement: m,
|
|
5496
5496
|
DOMParser: g,
|
|
5497
5497
|
trustedTypes: w
|
|
5498
|
-
} = t, k = l.prototype, A = en(k, "cloneNode"), P = en(k, "remove"), b = en(k, "nextSibling"), S = en(k, "childNodes"),
|
|
5498
|
+
} = t, k = l.prototype, A = en(k, "cloneNode"), P = en(k, "remove"), b = en(k, "nextSibling"), S = en(k, "childNodes"), B = en(k, "parentNode");
|
|
5499
5499
|
if (typeof a == "function") {
|
|
5500
|
-
const
|
|
5501
|
-
|
|
5500
|
+
const R = n.createElement("template");
|
|
5501
|
+
R.content && R.content.ownerDocument && (n = R.content.ownerDocument);
|
|
5502
5502
|
}
|
|
5503
5503
|
let H, Y = "";
|
|
5504
5504
|
const {
|
|
5505
5505
|
implementation: pe,
|
|
5506
5506
|
createNodeIterator: ae,
|
|
5507
|
-
createDocumentFragment:
|
|
5507
|
+
createDocumentFragment: Be,
|
|
5508
5508
|
getElementsByTagName: le
|
|
5509
5509
|
} = n, {
|
|
5510
5510
|
importNode: X
|
|
5511
5511
|
} = o;
|
|
5512
|
-
let
|
|
5513
|
-
e.isSupported = typeof ws == "function" && typeof
|
|
5512
|
+
let D = yi();
|
|
5513
|
+
e.isSupported = typeof ws == "function" && typeof B == "function" && pe && pe.createHTMLDocument !== void 0;
|
|
5514
5514
|
const {
|
|
5515
5515
|
MUSTACHE_EXPR: J,
|
|
5516
5516
|
ERB_EXPR: he,
|
|
@@ -5546,7 +5546,7 @@ function Cs() {
|
|
|
5546
5546
|
enumerable: !0,
|
|
5547
5547
|
value: !1
|
|
5548
5548
|
}
|
|
5549
|
-
})), E = null, _ = null, C = !0, L = !0, x = !1,
|
|
5549
|
+
})), E = null, _ = null, C = !0, L = !0, x = !1, N = !0, V = !1, xe = !0, ve = !1, ye = !1, at = !1, Lt = !1, En = !1, Pn = !1, lr = !0, cr = !1;
|
|
5550
5550
|
const Ms = "user-content-";
|
|
5551
5551
|
let io = !0, zt = !1, Ot = {}, $t = null;
|
|
5552
5552
|
const ur = z({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
@@ -5555,19 +5555,19 @@ function Cs() {
|
|
|
5555
5555
|
let so = null;
|
|
5556
5556
|
const mr = z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), xn = "http://www.w3.org/1998/Math/MathML", Ln = "http://www.w3.org/2000/svg", lt = "http://www.w3.org/1999/xhtml";
|
|
5557
5557
|
let Mt = lt, ao = !1, lo = null;
|
|
5558
|
-
const
|
|
5558
|
+
const Rs = z({}, [xn, Ln, lt], yo);
|
|
5559
5559
|
let On = z({}, ["mi", "mo", "mn", "ms", "mtext"]), $n = z({}, ["annotation-xml"]);
|
|
5560
|
-
const
|
|
5560
|
+
const Ds = z({}, ["title", "style", "font", "a", "script"]);
|
|
5561
5561
|
let Wt = null;
|
|
5562
|
-
const
|
|
5563
|
-
let ce = null,
|
|
5562
|
+
const Bs = ["application/xhtml+xml", "text/html"], Ns = "text/html";
|
|
5563
|
+
let ce = null, Rt = null;
|
|
5564
5564
|
const Us = n.createElement("form"), pr = function(f) {
|
|
5565
5565
|
return f instanceof RegExp || f instanceof Function;
|
|
5566
5566
|
}, co = function() {
|
|
5567
5567
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5568
|
-
if (!(
|
|
5568
|
+
if (!(Rt && Rt === f)) {
|
|
5569
5569
|
if ((!f || typeof f != "object") && (f = {}), f = Ct(f), Wt = // eslint-disable-next-line unicorn/prefer-includes
|
|
5570
|
-
|
|
5570
|
+
Bs.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Ns : f.PARSER_MEDIA_TYPE, ce = Wt === "application/xhtml+xml" ? yo : Vn, c = Ge(f, "ALLOWED_TAGS") ? z({}, f.ALLOWED_TAGS, ce) : p, y = Ge(f, "ALLOWED_ATTR") ? z({}, f.ALLOWED_ATTR, ce) : T, lo = Ge(f, "ALLOWED_NAMESPACES") ? z({}, f.ALLOWED_NAMESPACES, yo) : Rs, so = Ge(f, "ADD_URI_SAFE_ATTR") ? z(Ct(mr), f.ADD_URI_SAFE_ATTR, ce) : mr, dr = Ge(f, "ADD_DATA_URI_TAGS") ? z(Ct(fr), f.ADD_DATA_URI_TAGS, ce) : fr, $t = Ge(f, "FORBID_CONTENTS") ? z({}, f.FORBID_CONTENTS, ce) : ur, E = Ge(f, "FORBID_TAGS") ? z({}, f.FORBID_TAGS, ce) : {}, _ = Ge(f, "FORBID_ATTR") ? z({}, f.FORBID_ATTR, ce) : {}, Ot = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, C = f.ALLOW_ARIA_ATTR !== !1, L = f.ALLOW_DATA_ATTR !== !1, x = f.ALLOW_UNKNOWN_PROTOCOLS || !1, N = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = f.SAFE_FOR_TEMPLATES || !1, xe = f.SAFE_FOR_XML !== !1, ve = f.WHOLE_DOCUMENT || !1, Lt = f.RETURN_DOM || !1, En = f.RETURN_DOM_FRAGMENT || !1, Pn = f.RETURN_TRUSTED_TYPE || !1, at = f.FORCE_BODY || !1, lr = f.SANITIZE_DOM !== !1, cr = f.SANITIZE_NAMED_PROPS || !1, io = f.KEEP_CONTENT !== !1, zt = f.IN_PLACE || !1, Fe = f.ALLOWED_URI_REGEXP || Ss, Mt = f.NAMESPACE || lt, On = f.MATHML_TEXT_INTEGRATION_POINTS || On, $n = f.HTML_INTEGRATION_POINTS || $n, v = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && pr(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (v.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && pr(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (v.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (v.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), V && (L = !1), En && (Lt = !0), Ot && (c = z({}, pi), y = [], Ot.html === !0 && (z(c, mi), z(y, hi)), Ot.svg === !0 && (z(c, bo), z(y, So), z(y, Un)), Ot.svgFilters === !0 && (z(c, wo), z(y, So), z(y, Un)), Ot.mathMl === !0 && (z(c, _o), z(y, gi), z(y, Un))), f.ADD_TAGS && (c === p && (c = Ct(c)), z(c, f.ADD_TAGS, ce)), f.ADD_ATTR && (y === T && (y = Ct(y)), z(y, f.ADD_ATTR, ce)), f.ADD_URI_SAFE_ATTR && z(so, f.ADD_URI_SAFE_ATTR, ce), f.FORBID_CONTENTS && ($t === ur && ($t = Ct($t)), z($t, f.FORBID_CONTENTS, ce)), io && (c["#text"] = !0), ve && z(c, ["html", "head", "body"]), c.table && (z(c, ["tbody"]), delete E.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
5571
5571
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
5572
5572
|
throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
5573
5573
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -5575,22 +5575,22 @@ function Cs() {
|
|
|
5575
5575
|
H = f.TRUSTED_TYPES_POLICY, Y = H.createHTML("");
|
|
5576
5576
|
} else
|
|
5577
5577
|
H === void 0 && (H = Pf(w, r)), H !== null && typeof Y == "string" && (Y = H.createHTML(""));
|
|
5578
|
-
Ee && Ee(f),
|
|
5578
|
+
Ee && Ee(f), Rt = f;
|
|
5579
5579
|
}
|
|
5580
5580
|
}, hr = z({}, [...bo, ...wo, ...yf]), gr = z({}, [..._o, ...bf]), Hs = function(f) {
|
|
5581
|
-
let I =
|
|
5581
|
+
let I = B(f);
|
|
5582
5582
|
(!I || !I.tagName) && (I = {
|
|
5583
5583
|
namespaceURI: Mt,
|
|
5584
5584
|
tagName: "template"
|
|
5585
5585
|
});
|
|
5586
5586
|
const $ = Vn(f.tagName), oe = Vn(I.tagName);
|
|
5587
|
-
return lo[f.namespaceURI] ? f.namespaceURI === Ln ? I.namespaceURI === lt ? $ === "svg" : I.namespaceURI === xn ? $ === "svg" && (oe === "annotation-xml" || On[oe]) : !!hr[$] : f.namespaceURI === xn ? I.namespaceURI === lt ? $ === "math" : I.namespaceURI === Ln ? $ === "math" && $n[oe] : !!gr[$] : f.namespaceURI === lt ? I.namespaceURI === Ln && !$n[oe] || I.namespaceURI === xn && !On[oe] ? !1 : !gr[$] && (
|
|
5587
|
+
return lo[f.namespaceURI] ? f.namespaceURI === Ln ? I.namespaceURI === lt ? $ === "svg" : I.namespaceURI === xn ? $ === "svg" && (oe === "annotation-xml" || On[oe]) : !!hr[$] : f.namespaceURI === xn ? I.namespaceURI === lt ? $ === "math" : I.namespaceURI === Ln ? $ === "math" && $n[oe] : !!gr[$] : f.namespaceURI === lt ? I.namespaceURI === Ln && !$n[oe] || I.namespaceURI === xn && !On[oe] ? !1 : !gr[$] && (Ds[$] || !hr[$]) : !!(Wt === "application/xhtml+xml" && lo[f.namespaceURI]) : !1;
|
|
5588
5588
|
}, tt = function(f) {
|
|
5589
5589
|
Zt(e.removed, {
|
|
5590
5590
|
element: f
|
|
5591
5591
|
});
|
|
5592
5592
|
try {
|
|
5593
|
-
|
|
5593
|
+
B(f).removeChild(f);
|
|
5594
5594
|
} catch {
|
|
5595
5595
|
P(f);
|
|
5596
5596
|
}
|
|
@@ -5654,17 +5654,17 @@ function Cs() {
|
|
|
5654
5654
|
}, br = function(f) {
|
|
5655
5655
|
return typeof s == "function" && f instanceof s;
|
|
5656
5656
|
};
|
|
5657
|
-
function ct(
|
|
5658
|
-
|
|
5659
|
-
$.call(e, f, I,
|
|
5657
|
+
function ct(R, f, I) {
|
|
5658
|
+
Nn(R, ($) => {
|
|
5659
|
+
$.call(e, f, I, Rt);
|
|
5660
5660
|
});
|
|
5661
5661
|
}
|
|
5662
5662
|
const wr = function(f) {
|
|
5663
5663
|
let I = null;
|
|
5664
|
-
if (ct(
|
|
5664
|
+
if (ct(D.beforeSanitizeElements, f, null), uo(f))
|
|
5665
5665
|
return tt(f), !0;
|
|
5666
5666
|
const $ = ce(f.nodeName);
|
|
5667
|
-
if (ct(
|
|
5667
|
+
if (ct(D.uponSanitizeElement, f, {
|
|
5668
5668
|
tagName: $,
|
|
5669
5669
|
allowedTags: c
|
|
5670
5670
|
}), f.hasChildNodes() && !br(f.firstElementChild) && Ie(/<[/\w]/g, f.innerHTML) && Ie(/<[/\w]/g, f.textContent) || f.nodeType === tn.progressingInstruction || xe && f.nodeType === tn.comment && Ie(/<[/\w]/g, f.data))
|
|
@@ -5673,7 +5673,7 @@ function Cs() {
|
|
|
5673
5673
|
if (!E[$] && Sr($) && (v.tagNameCheck instanceof RegExp && Ie(v.tagNameCheck, $) || v.tagNameCheck instanceof Function && v.tagNameCheck($)))
|
|
5674
5674
|
return !1;
|
|
5675
5675
|
if (io && !$t[$]) {
|
|
5676
|
-
const oe =
|
|
5676
|
+
const oe = B(f) || f.parentNode, be = S(f) || f.childNodes;
|
|
5677
5677
|
if (be && oe) {
|
|
5678
5678
|
const de = be.length;
|
|
5679
5679
|
for (let Le = de - 1; Le >= 0; --Le) {
|
|
@@ -5684,11 +5684,11 @@ function Cs() {
|
|
|
5684
5684
|
}
|
|
5685
5685
|
return tt(f), !0;
|
|
5686
5686
|
}
|
|
5687
|
-
return f instanceof l && !Hs(f) || ($ === "noscript" || $ === "noembed" || $ === "noframes") && Ie(/<\/no(script|embed|frames)/i, f.innerHTML) ? (tt(f), !0) : (V && f.nodeType === tn.text && (I = f.textContent,
|
|
5687
|
+
return f instanceof l && !Hs(f) || ($ === "noscript" || $ === "noembed" || $ === "noframes") && Ie(/<\/no(script|embed|frames)/i, f.innerHTML) ? (tt(f), !0) : (V && f.nodeType === tn.text && (I = f.textContent, Nn([J, he, ge], (oe) => {
|
|
5688
5688
|
I = Jt(I, oe, " ");
|
|
5689
5689
|
}), f.textContent !== I && (Zt(e.removed, {
|
|
5690
5690
|
element: f.cloneNode()
|
|
5691
|
-
}), f.textContent = I)), ct(
|
|
5691
|
+
}), f.textContent = I)), ct(D.afterSanitizeElements, f, null), !1);
|
|
5692
5692
|
}, _r = function(f, I, $) {
|
|
5693
5693
|
if (lr && (I === "id" || I === "name") && ($ in n || $ in Us))
|
|
5694
5694
|
return !1;
|
|
@@ -5719,7 +5719,7 @@ function Cs() {
|
|
|
5719
5719
|
}, Sr = function(f) {
|
|
5720
5720
|
return f !== "annotation-xml" && fi(f, St);
|
|
5721
5721
|
}, kr = function(f) {
|
|
5722
|
-
ct(
|
|
5722
|
+
ct(D.beforeSanitizeAttributes, f, null);
|
|
5723
5723
|
const {
|
|
5724
5724
|
attributes: I
|
|
5725
5725
|
} = f;
|
|
@@ -5740,17 +5740,17 @@ function Cs() {
|
|
|
5740
5740
|
value: nt
|
|
5741
5741
|
} = be, Gt = ce(de);
|
|
5742
5742
|
let Ce = de === "value" ? nt : hf(nt);
|
|
5743
|
-
if ($.attrName = Gt, $.attrValue = Ce, $.keepAttr = !0, $.forceKeepAttr = void 0, ct(
|
|
5743
|
+
if ($.attrName = Gt, $.attrValue = Ce, $.keepAttr = !0, $.forceKeepAttr = void 0, ct(D.uponSanitizeAttribute, f, $), Ce = $.attrValue, cr && (Gt === "id" || Gt === "name") && (Mn(de, f), Ce = Ms + Ce), xe && Ie(/((--!?|])>)|<\/(style|title)/i, Ce)) {
|
|
5744
5744
|
Mn(de, f);
|
|
5745
5745
|
continue;
|
|
5746
5746
|
}
|
|
5747
5747
|
if ($.forceKeepAttr || (Mn(de, f), !$.keepAttr))
|
|
5748
5748
|
continue;
|
|
5749
|
-
if (!
|
|
5749
|
+
if (!N && Ie(/\/>/i, Ce)) {
|
|
5750
5750
|
Mn(de, f);
|
|
5751
5751
|
continue;
|
|
5752
5752
|
}
|
|
5753
|
-
V &&
|
|
5753
|
+
V && Nn([J, he, ge], (Ir) => {
|
|
5754
5754
|
Ce = Jt(Ce, Ir, " ");
|
|
5755
5755
|
});
|
|
5756
5756
|
const Cr = ce(f.nodeName);
|
|
@@ -5772,48 +5772,48 @@ function Cs() {
|
|
|
5772
5772
|
}
|
|
5773
5773
|
}
|
|
5774
5774
|
}
|
|
5775
|
-
ct(
|
|
5776
|
-
}, js = function
|
|
5775
|
+
ct(D.afterSanitizeAttributes, f, null);
|
|
5776
|
+
}, js = function R(f) {
|
|
5777
5777
|
let I = null;
|
|
5778
5778
|
const $ = yr(f);
|
|
5779
|
-
for (ct(
|
|
5780
|
-
ct(
|
|
5781
|
-
ct(
|
|
5779
|
+
for (ct(D.beforeSanitizeShadowDOM, f, null); I = $.nextNode(); )
|
|
5780
|
+
ct(D.uponSanitizeShadowNode, I, null), wr(I), kr(I), I.content instanceof i && R(I.content);
|
|
5781
|
+
ct(D.afterSanitizeShadowDOM, f, null);
|
|
5782
5782
|
};
|
|
5783
|
-
return e.sanitize = function(
|
|
5783
|
+
return e.sanitize = function(R) {
|
|
5784
5784
|
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = null, $ = null, oe = null, be = null;
|
|
5785
|
-
if (ao = !
|
|
5786
|
-
if (typeof
|
|
5787
|
-
if (
|
|
5785
|
+
if (ao = !R, ao && (R = "<!-->"), typeof R != "string" && !br(R))
|
|
5786
|
+
if (typeof R.toString == "function") {
|
|
5787
|
+
if (R = R.toString(), typeof R != "string")
|
|
5788
5788
|
throw Qt("dirty is not a string, aborting");
|
|
5789
5789
|
} else
|
|
5790
5790
|
throw Qt("toString is not a function");
|
|
5791
5791
|
if (!e.isSupported)
|
|
5792
|
-
return
|
|
5793
|
-
if (ye || co(f), e.removed = [], typeof
|
|
5794
|
-
if (
|
|
5795
|
-
const nt = ce(
|
|
5792
|
+
return R;
|
|
5793
|
+
if (ye || co(f), e.removed = [], typeof R == "string" && (zt = !1), zt) {
|
|
5794
|
+
if (R.nodeName) {
|
|
5795
|
+
const nt = ce(R.nodeName);
|
|
5796
5796
|
if (!c[nt] || E[nt])
|
|
5797
5797
|
throw Qt("root node is forbidden and cannot be sanitized in-place");
|
|
5798
5798
|
}
|
|
5799
|
-
} else if (
|
|
5800
|
-
I = vr("<!---->"), $ = I.ownerDocument.importNode(
|
|
5799
|
+
} else if (R instanceof s)
|
|
5800
|
+
I = vr("<!---->"), $ = I.ownerDocument.importNode(R, !0), $.nodeType === tn.element && $.nodeName === "BODY" || $.nodeName === "HTML" ? I = $ : I.appendChild($);
|
|
5801
5801
|
else {
|
|
5802
5802
|
if (!Lt && !V && !ve && // eslint-disable-next-line unicorn/prefer-includes
|
|
5803
|
-
|
|
5804
|
-
return H && Pn ? H.createHTML(
|
|
5805
|
-
if (I = vr(
|
|
5803
|
+
R.indexOf("<") === -1)
|
|
5804
|
+
return H && Pn ? H.createHTML(R) : R;
|
|
5805
|
+
if (I = vr(R), !I)
|
|
5806
5806
|
return Lt ? null : Pn ? Y : "";
|
|
5807
5807
|
}
|
|
5808
5808
|
I && at && tt(I.firstChild);
|
|
5809
|
-
const de = yr(zt ?
|
|
5809
|
+
const de = yr(zt ? R : I);
|
|
5810
5810
|
for (; oe = de.nextNode(); )
|
|
5811
5811
|
wr(oe), kr(oe), oe.content instanceof i && js(oe.content);
|
|
5812
5812
|
if (zt)
|
|
5813
|
-
return
|
|
5813
|
+
return R;
|
|
5814
5814
|
if (Lt) {
|
|
5815
5815
|
if (En)
|
|
5816
|
-
for (be =
|
|
5816
|
+
for (be = Be.call(I.ownerDocument); I.firstChild; )
|
|
5817
5817
|
be.appendChild(I.firstChild);
|
|
5818
5818
|
else
|
|
5819
5819
|
be = I;
|
|
@@ -5821,30 +5821,30 @@ function Cs() {
|
|
|
5821
5821
|
}
|
|
5822
5822
|
let Le = ve ? I.outerHTML : I.innerHTML;
|
|
5823
5823
|
return ve && c["!doctype"] && I.ownerDocument && I.ownerDocument.doctype && I.ownerDocument.doctype.name && Ie(ks, I.ownerDocument.doctype.name) && (Le = "<!DOCTYPE " + I.ownerDocument.doctype.name + `>
|
|
5824
|
-
` + Le), V &&
|
|
5824
|
+
` + Le), V && Nn([J, he, ge], (nt) => {
|
|
5825
5825
|
Le = Jt(Le, nt, " ");
|
|
5826
5826
|
}), H && Pn ? H.createHTML(Le) : Le;
|
|
5827
5827
|
}, e.setConfig = function() {
|
|
5828
|
-
let
|
|
5829
|
-
co(
|
|
5828
|
+
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5829
|
+
co(R), ye = !0;
|
|
5830
5830
|
}, e.clearConfig = function() {
|
|
5831
|
-
|
|
5832
|
-
}, e.isValidAttribute = function(
|
|
5833
|
-
|
|
5834
|
-
const $ = ce(
|
|
5831
|
+
Rt = null, ye = !1;
|
|
5832
|
+
}, e.isValidAttribute = function(R, f, I) {
|
|
5833
|
+
Rt || co({});
|
|
5834
|
+
const $ = ce(R), oe = ce(f);
|
|
5835
5835
|
return _r($, oe, I);
|
|
5836
|
-
}, e.addHook = function(
|
|
5837
|
-
typeof f == "function" && Zt(R
|
|
5838
|
-
}, e.removeHook = function(
|
|
5836
|
+
}, e.addHook = function(R, f) {
|
|
5837
|
+
typeof f == "function" && Zt(D[R], f);
|
|
5838
|
+
}, e.removeHook = function(R, f) {
|
|
5839
5839
|
if (f !== void 0) {
|
|
5840
|
-
const I = ff(R
|
|
5841
|
-
return I === -1 ? void 0 : mf(R
|
|
5840
|
+
const I = ff(D[R], f);
|
|
5841
|
+
return I === -1 ? void 0 : mf(D[R], I, 1)[0];
|
|
5842
5842
|
}
|
|
5843
|
-
return di(R
|
|
5844
|
-
}, e.removeHooks = function(
|
|
5845
|
-
R
|
|
5843
|
+
return di(D[R]);
|
|
5844
|
+
}, e.removeHooks = function(R) {
|
|
5845
|
+
D[R] = [];
|
|
5846
5846
|
}, e.removeAllHooks = function() {
|
|
5847
|
-
|
|
5847
|
+
D = yi();
|
|
5848
5848
|
}, e;
|
|
5849
5849
|
}
|
|
5850
5850
|
var Is = Cs();
|
|
@@ -5874,7 +5874,7 @@ class Ts {
|
|
|
5874
5874
|
});
|
|
5875
5875
|
}
|
|
5876
5876
|
}
|
|
5877
|
-
const xf = () => new Ts(),
|
|
5877
|
+
const xf = () => new Ts(), Rm = () => new Ts();
|
|
5878
5878
|
function Lf(t) {
|
|
5879
5879
|
return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
|
|
5880
5880
|
}
|
|
@@ -5913,17 +5913,17 @@ class Mf {
|
|
|
5913
5913
|
return this._cloneInto();
|
|
5914
5914
|
}
|
|
5915
5915
|
}
|
|
5916
|
-
function
|
|
5916
|
+
function Rf(t) {
|
|
5917
5917
|
const e = (o) => t().update(Es(o)).digest(), n = t();
|
|
5918
5918
|
return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = () => t(), e;
|
|
5919
5919
|
}
|
|
5920
|
-
function
|
|
5920
|
+
function Df(t, e, n, o) {
|
|
5921
5921
|
if (typeof t.setBigUint64 == "function")
|
|
5922
5922
|
return t.setBigUint64(e, n, o);
|
|
5923
5923
|
const r = BigInt(32), i = BigInt(4294967295), a = Number(n >> r & i), s = Number(n & i), l = o ? 4 : 0, u = o ? 0 : 4;
|
|
5924
5924
|
t.setUint32(e + l, a, o), t.setUint32(e + u, s, o);
|
|
5925
5925
|
}
|
|
5926
|
-
const
|
|
5926
|
+
const Bf = (t, e, n) => t & e ^ ~t & n, Nf = (t, e, n) => t & e ^ t & n ^ e & n;
|
|
5927
5927
|
class Uf extends Mf {
|
|
5928
5928
|
constructor(e, n, o, r) {
|
|
5929
5929
|
super(), this.blockLen = e, this.outputLen = n, this.padOffset = o, this.isLE = r, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(e), this.view = ko(this.buffer);
|
|
@@ -5952,7 +5952,7 @@ class Uf extends Mf {
|
|
|
5952
5952
|
n[a++] = 128, this.buffer.subarray(a).fill(0), this.padOffset > r - a && (this.process(o, 0), a = 0);
|
|
5953
5953
|
for (let m = a; m < r; m++)
|
|
5954
5954
|
n[m] = 0;
|
|
5955
|
-
|
|
5955
|
+
Df(o, r - 8, BigInt(this.length * 8), i), this.process(o, 0);
|
|
5956
5956
|
const s = ko(e), l = this.outputLen;
|
|
5957
5957
|
if (l % 4)
|
|
5958
5958
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
@@ -6070,7 +6070,7 @@ class jf extends Uf {
|
|
|
6070
6070
|
}
|
|
6071
6071
|
let { A: o, B: r, C: i, D: a, E: s, F: l, G: u, H: d } = this;
|
|
6072
6072
|
for (let m = 0; m < 64; m++) {
|
|
6073
|
-
const g = ot(s, 6) ^ ot(s, 11) ^ ot(s, 25), w = d + g +
|
|
6073
|
+
const g = ot(s, 6) ^ ot(s, 11) ^ ot(s, 25), w = d + g + Bf(s, l, u) + Hf[m] + ht[m] | 0, A = (ot(o, 2) ^ ot(o, 13) ^ ot(o, 22)) + Nf(o, r, i) | 0;
|
|
6074
6074
|
d = u, u = l, l = s, s = a + w | 0, a = i, i = r, r = o, o = w + A | 0;
|
|
6075
6075
|
}
|
|
6076
6076
|
o = o + this.A | 0, r = r + this.B | 0, i = i + this.C | 0, a = a + this.D | 0, s = s + this.E | 0, l = l + this.F | 0, u = u + this.G | 0, d = d + this.H | 0, this.set(o, r, i, a, s, l, u, d);
|
|
@@ -6082,7 +6082,7 @@ class jf extends Uf {
|
|
|
6082
6082
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
6083
6083
|
}
|
|
6084
6084
|
}
|
|
6085
|
-
const Ff = /* @__PURE__ */
|
|
6085
|
+
const Ff = /* @__PURE__ */ Rf(() => new jf());
|
|
6086
6086
|
class sn extends Error {
|
|
6087
6087
|
}
|
|
6088
6088
|
sn.prototype.name = "InvalidTokenError";
|
|
@@ -6195,10 +6195,10 @@ function Ps(t) {
|
|
|
6195
6195
|
}).catch(function(L) {
|
|
6196
6196
|
y.setError(L);
|
|
6197
6197
|
});
|
|
6198
|
-
var v =
|
|
6198
|
+
var v = B();
|
|
6199
6199
|
function E() {
|
|
6200
6200
|
var L = function(V) {
|
|
6201
|
-
V || (
|
|
6201
|
+
V || (N.prompt = "none"), c && c.locale && (N.locale = c.locale), e.login(N).then(function() {
|
|
6202
6202
|
T.setSuccess();
|
|
6203
6203
|
}).catch(function(xe) {
|
|
6204
6204
|
T.setError(xe);
|
|
@@ -6219,7 +6219,7 @@ function Ps(t) {
|
|
|
6219
6219
|
}
|
|
6220
6220
|
};
|
|
6221
6221
|
window.addEventListener("message", ve);
|
|
6222
|
-
},
|
|
6222
|
+
}, N = {};
|
|
6223
6223
|
switch (c.onLoad) {
|
|
6224
6224
|
case "check-sso":
|
|
6225
6225
|
i.enable ? J().then(function() {
|
|
@@ -6340,11 +6340,11 @@ function Ps(t) {
|
|
|
6340
6340
|
if ((c && c.acrValues || e.acrValues) && (C += "&acr_values=" + encodeURIComponent(c.acrValues || e.acrValues)), e.pkceMethod) {
|
|
6341
6341
|
var x = g(96);
|
|
6342
6342
|
v.pkceCodeVerifier = x;
|
|
6343
|
-
var
|
|
6343
|
+
var N = k(
|
|
6344
6344
|
e.pkceMethod,
|
|
6345
6345
|
x
|
|
6346
6346
|
);
|
|
6347
|
-
C += "&code_challenge=" +
|
|
6347
|
+
C += "&code_challenge=" + N, C += "&code_challenge_method=" + e.pkceMethod;
|
|
6348
6348
|
}
|
|
6349
6349
|
return r.add(v), C;
|
|
6350
6350
|
}, e.logout = function(c) {
|
|
@@ -6428,12 +6428,12 @@ function Ps(t) {
|
|
|
6428
6428
|
x.id_token,
|
|
6429
6429
|
L
|
|
6430
6430
|
), e.onAuthRefreshSuccess && e.onAuthRefreshSuccess();
|
|
6431
|
-
for (var
|
|
6432
|
-
|
|
6431
|
+
for (var N = o.pop(); N != null; N = o.pop())
|
|
6432
|
+
N.setSuccess(!0);
|
|
6433
6433
|
} else {
|
|
6434
6434
|
d("[KEYCLOAK] Failed to refresh token"), C.status == 400 && e.clearToken(), e.onAuthRefreshError && e.onAuthRefreshError();
|
|
6435
|
-
for (var
|
|
6436
|
-
|
|
6435
|
+
for (var N = o.pop(); N != null; N = o.pop())
|
|
6436
|
+
N.setError(!0);
|
|
6437
6437
|
}
|
|
6438
6438
|
}, C.send(E);
|
|
6439
6439
|
}
|
|
@@ -6478,7 +6478,7 @@ function Ps(t) {
|
|
|
6478
6478
|
else
|
|
6479
6479
|
p && p.setSuccess();
|
|
6480
6480
|
return;
|
|
6481
|
-
} else e.flow != "standard" && (c.access_token || c.id_token) &&
|
|
6481
|
+
} else e.flow != "standard" && (c.access_token || c.id_token) && N(c.access_token, null, c.id_token, !0);
|
|
6482
6482
|
if (e.flow != "implicit" && y) {
|
|
6483
6483
|
var C = "code=" + y + "&grant_type=authorization_code", L = e.endpoints.token(), x = new XMLHttpRequest();
|
|
6484
6484
|
x.open("POST", L, !0), x.setRequestHeader(
|
|
@@ -6488,7 +6488,7 @@ function Ps(t) {
|
|
|
6488
6488
|
if (x.readyState == 4)
|
|
6489
6489
|
if (x.status == 200) {
|
|
6490
6490
|
var V = JSON.parse(x.responseText);
|
|
6491
|
-
|
|
6491
|
+
N(
|
|
6492
6492
|
V.access_token,
|
|
6493
6493
|
V.refresh_token,
|
|
6494
6494
|
V.id_token,
|
|
@@ -6498,11 +6498,11 @@ function Ps(t) {
|
|
|
6498
6498
|
e.onAuthError && e.onAuthError(), p && p.setError();
|
|
6499
6499
|
}, x.send(C);
|
|
6500
6500
|
}
|
|
6501
|
-
function
|
|
6501
|
+
function N(V, xe, ve, ye) {
|
|
6502
6502
|
E = (E + (/* @__PURE__ */ new Date()).getTime()) / 2, Y(V, xe, ve, E), l && e.idTokenParsed && e.idTokenParsed.nonce != c.storedNonce ? (u("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), p && p.setError()) : ye && (e.onAuthSuccess && e.onAuthSuccess(), p && p.setSuccess());
|
|
6503
6503
|
}
|
|
6504
6504
|
}
|
|
6505
|
-
function
|
|
6505
|
+
function B(c) {
|
|
6506
6506
|
var p = X(), y;
|
|
6507
6507
|
t ? typeof t == "string" && (y = t) : y = "keycloak.json";
|
|
6508
6508
|
function T(x) {
|
|
@@ -6542,12 +6542,12 @@ function Ps(t) {
|
|
|
6542
6542
|
return P() + "/protocol/openid-connect/logout";
|
|
6543
6543
|
},
|
|
6544
6544
|
checkSessionIframe: function() {
|
|
6545
|
-
var
|
|
6546
|
-
return e.iframeVersion && (
|
|
6545
|
+
var N = P() + "/protocol/openid-connect/login-status-iframe.html";
|
|
6546
|
+
return e.iframeVersion && (N = N + "?version=" + e.iframeVersion), N;
|
|
6547
6547
|
},
|
|
6548
6548
|
thirdPartyCookiesIframe: function() {
|
|
6549
|
-
var
|
|
6550
|
-
return e.iframeVersion && (
|
|
6549
|
+
var N = P() + "/protocol/openid-connect/3p-cookies/step1.html";
|
|
6550
|
+
return e.iframeVersion && (N = N + "?version=" + e.iframeVersion), N;
|
|
6551
6551
|
},
|
|
6552
6552
|
register: function() {
|
|
6553
6553
|
return P() + "/protocol/openid-connect/registrations";
|
|
@@ -6580,8 +6580,8 @@ function Ps(t) {
|
|
|
6580
6580
|
v.open("GET", L, !0), v.setRequestHeader("Accept", "application/json"), v.onreadystatechange = function() {
|
|
6581
6581
|
if (v.readyState == 4)
|
|
6582
6582
|
if (v.status == 200 || H(v)) {
|
|
6583
|
-
var
|
|
6584
|
-
T(
|
|
6583
|
+
var N = JSON.parse(v.responseText);
|
|
6584
|
+
T(N), p.setSuccess();
|
|
6585
6585
|
} else
|
|
6586
6586
|
p.setError();
|
|
6587
6587
|
}, v.send();
|
|
@@ -6631,13 +6631,13 @@ function Ps(t) {
|
|
|
6631
6631
|
return y;
|
|
6632
6632
|
}
|
|
6633
6633
|
function ae(c) {
|
|
6634
|
-
var p =
|
|
6634
|
+
var p = Be(c);
|
|
6635
6635
|
if (p) {
|
|
6636
6636
|
var y = r.get(p.state);
|
|
6637
6637
|
return y && (p.valid = !0, p.redirectUri = y.redirectUri, p.storedNonce = y.nonce, p.prompt = y.prompt, p.pkceCodeVerifier = y.pkceCodeVerifier, p.loginOptions = y.loginOptions), p;
|
|
6638
6638
|
}
|
|
6639
6639
|
}
|
|
6640
|
-
function
|
|
6640
|
+
function Be(c) {
|
|
6641
6641
|
var p;
|
|
6642
6642
|
switch (e.flow) {
|
|
6643
6643
|
case "standard":
|
|
@@ -6720,7 +6720,7 @@ function Ps(t) {
|
|
|
6720
6720
|
c.resolve = p, c.reject = y;
|
|
6721
6721
|
}), c;
|
|
6722
6722
|
}
|
|
6723
|
-
function
|
|
6723
|
+
function D(c, p, y) {
|
|
6724
6724
|
var T = null, v = new Promise(function(E, _) {
|
|
6725
6725
|
T = setTimeout(function() {
|
|
6726
6726
|
_({
|
|
@@ -6807,7 +6807,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6807
6807
|
window.addEventListener("message", y, !1);
|
|
6808
6808
|
} else
|
|
6809
6809
|
c.setSuccess();
|
|
6810
|
-
return
|
|
6810
|
+
return D(
|
|
6811
6811
|
c.promise,
|
|
6812
6812
|
e.messageReceiveTimeout,
|
|
6813
6813
|
"Timeout when waiting for 3rd party check iframe message."
|
|
@@ -6894,26 +6894,26 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6894
6894
|
};
|
|
6895
6895
|
return {
|
|
6896
6896
|
login: function(_) {
|
|
6897
|
-
var C = X(), L = v(_), x = e.createLoginUrl(_),
|
|
6897
|
+
var C = X(), L = v(_), x = e.createLoginUrl(_), N = p(
|
|
6898
6898
|
x,
|
|
6899
6899
|
"_blank",
|
|
6900
6900
|
L
|
|
6901
6901
|
), V = !1, xe = !1, ve = function() {
|
|
6902
|
-
xe = !0,
|
|
6902
|
+
xe = !0, N.close();
|
|
6903
6903
|
};
|
|
6904
|
-
return
|
|
6904
|
+
return N.addEventListener("loadstart", function(ye) {
|
|
6905
6905
|
if (ye.url.indexOf(E()) == 0) {
|
|
6906
6906
|
var at = ae(ye.url);
|
|
6907
6907
|
S(at, C), ve(), V = !0;
|
|
6908
6908
|
}
|
|
6909
|
-
}),
|
|
6909
|
+
}), N.addEventListener("loaderror", function(ye) {
|
|
6910
6910
|
if (!V)
|
|
6911
6911
|
if (ye.url.indexOf(E()) == 0) {
|
|
6912
6912
|
var at = ae(ye.url);
|
|
6913
6913
|
S(at, C), ve(), V = !0;
|
|
6914
6914
|
} else
|
|
6915
6915
|
C.setError(), ve();
|
|
6916
|
-
}),
|
|
6916
|
+
}), N.addEventListener("exit", function(ye) {
|
|
6917
6917
|
xe || C.setError({
|
|
6918
6918
|
reason: "closed_by_user"
|
|
6919
6919
|
});
|
|
@@ -6924,24 +6924,24 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6924
6924
|
L,
|
|
6925
6925
|
"_blank",
|
|
6926
6926
|
"location=no,hidden=yes,clearcache=yes"
|
|
6927
|
-
),
|
|
6927
|
+
), N;
|
|
6928
6928
|
return x.addEventListener("loadstart", function(V) {
|
|
6929
6929
|
V.url.indexOf(E()) == 0 && x.close();
|
|
6930
6930
|
}), x.addEventListener("loaderror", function(V) {
|
|
6931
|
-
V.url.indexOf(E()) == 0 || (
|
|
6931
|
+
V.url.indexOf(E()) == 0 || (N = !0), x.close();
|
|
6932
6932
|
}), x.addEventListener("exit", function(V) {
|
|
6933
|
-
|
|
6933
|
+
N ? C.setError() : (e.clearToken(), C.setSuccess());
|
|
6934
6934
|
}), C.promise;
|
|
6935
6935
|
},
|
|
6936
6936
|
register: function(_) {
|
|
6937
|
-
var C = X(), L = e.createRegisterUrl(), x = v(_),
|
|
6937
|
+
var C = X(), L = e.createRegisterUrl(), x = v(_), N = p(
|
|
6938
6938
|
L,
|
|
6939
6939
|
"_blank",
|
|
6940
6940
|
x
|
|
6941
6941
|
);
|
|
6942
|
-
return
|
|
6942
|
+
return N.addEventListener("loadstart", function(V) {
|
|
6943
6943
|
if (V.url.indexOf(E()) == 0) {
|
|
6944
|
-
|
|
6944
|
+
N.close();
|
|
6945
6945
|
var xe = ae(V.url);
|
|
6946
6946
|
S(xe, C);
|
|
6947
6947
|
}
|
|
@@ -6972,8 +6972,8 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6972
6972
|
var C = X(), L = e.createLoginUrl(_);
|
|
6973
6973
|
return universalLinks.subscribe("keycloak", function(x) {
|
|
6974
6974
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
6975
|
-
var
|
|
6976
|
-
S(
|
|
6975
|
+
var N = ae(x.url);
|
|
6976
|
+
S(N, C);
|
|
6977
6977
|
}), window.cordova.plugins.browsertab.openUrl(L), C.promise;
|
|
6978
6978
|
},
|
|
6979
6979
|
logout: function(_) {
|
|
@@ -6986,8 +6986,8 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
|
|
|
6986
6986
|
var C = X(), L = e.createRegisterUrl(_);
|
|
6987
6987
|
return universalLinks.subscribe("keycloak", function(x) {
|
|
6988
6988
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
6989
|
-
var
|
|
6990
|
-
S(
|
|
6989
|
+
var N = ae(x.url);
|
|
6990
|
+
S(N, C);
|
|
6991
6991
|
}), window.cordova.plugins.browsertab.openUrl(L), C.promise;
|
|
6992
6992
|
},
|
|
6993
6993
|
accountManagement: function() {
|
|
@@ -7087,9 +7087,9 @@ function zf(t) {
|
|
|
7087
7087
|
}
|
|
7088
7088
|
class Wf {
|
|
7089
7089
|
constructor(e) {
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7090
|
+
Ne(this, "oidc");
|
|
7091
|
+
Ne(this, "isAuthenticated", !1);
|
|
7092
|
+
Ne(this, "authenticatedWith", null);
|
|
7093
7093
|
this.oidc = new Ps(e);
|
|
7094
7094
|
}
|
|
7095
7095
|
async InitAsync(e = {}) {
|
|
@@ -7114,7 +7114,7 @@ class Wf {
|
|
|
7114
7114
|
}
|
|
7115
7115
|
}
|
|
7116
7116
|
let xs;
|
|
7117
|
-
function
|
|
7117
|
+
function Dm(t) {
|
|
7118
7118
|
xs = new Wf(t);
|
|
7119
7119
|
}
|
|
7120
7120
|
const wi = () => xs;
|
|
@@ -7133,7 +7133,7 @@ function Zf(t, e = !0, n) {
|
|
|
7133
7133
|
Yf() ? Pt(t, n) : e ? t() : Ii(t);
|
|
7134
7134
|
}
|
|
7135
7135
|
const Ls = qf ? window : void 0;
|
|
7136
|
-
function
|
|
7136
|
+
function Bt(t) {
|
|
7137
7137
|
var e;
|
|
7138
7138
|
const n = Ai(t);
|
|
7139
7139
|
return (e = n == null ? void 0 : n.$el) != null ? e : n;
|
|
@@ -7155,7 +7155,7 @@ function em(t, e, n = {}) {
|
|
|
7155
7155
|
i && (i.disconnect(), i = void 0);
|
|
7156
7156
|
}, l = we(() => {
|
|
7157
7157
|
const m = Ai(t);
|
|
7158
|
-
return Array.isArray(m) ? m.map((g) =>
|
|
7158
|
+
return Array.isArray(m) ? m.map((g) => Bt(g)) : [Bt(m)];
|
|
7159
7159
|
}), u = un(
|
|
7160
7160
|
l,
|
|
7161
7161
|
(m) => {
|
|
@@ -7177,13 +7177,13 @@ function em(t, e, n = {}) {
|
|
|
7177
7177
|
function tm(t, e = { width: 0, height: 0 }, n = {}) {
|
|
7178
7178
|
const { window: o = Ls, box: r = "content-box" } = n, i = we(() => {
|
|
7179
7179
|
var m, g;
|
|
7180
|
-
return (g = (m =
|
|
7180
|
+
return (g = (m = Bt(t)) == null ? void 0 : m.namespaceURI) == null ? void 0 : g.includes("svg");
|
|
7181
7181
|
}), a = re(e.width), s = re(e.height), { stop: l } = em(
|
|
7182
7182
|
t,
|
|
7183
7183
|
([m]) => {
|
|
7184
7184
|
const g = r === "border-box" ? m.borderBoxSize : r === "content-box" ? m.contentBoxSize : m.devicePixelContentBoxSize;
|
|
7185
7185
|
if (o && i.value) {
|
|
7186
|
-
const w =
|
|
7186
|
+
const w = Bt(t);
|
|
7187
7187
|
if (w) {
|
|
7188
7188
|
const k = w.getBoundingClientRect();
|
|
7189
7189
|
a.value = k.width, s.value = k.height;
|
|
@@ -7197,11 +7197,11 @@ function tm(t, e = { width: 0, height: 0 }, n = {}) {
|
|
|
7197
7197
|
n
|
|
7198
7198
|
);
|
|
7199
7199
|
Zf(() => {
|
|
7200
|
-
const m =
|
|
7200
|
+
const m = Bt(t);
|
|
7201
7201
|
m && (a.value = "offsetWidth" in m ? m.offsetWidth : e.width, s.value = "offsetHeight" in m ? m.offsetHeight : e.height);
|
|
7202
7202
|
});
|
|
7203
7203
|
const u = un(
|
|
7204
|
-
() =>
|
|
7204
|
+
() => Bt(t),
|
|
7205
7205
|
(m) => {
|
|
7206
7206
|
a.value = m ? e.width : 0, s.value = m ? e.height : 0;
|
|
7207
7207
|
}
|
|
@@ -7267,10 +7267,10 @@ function rm() {
|
|
|
7267
7267
|
return u(A) || m.apply(this, arguments);
|
|
7268
7268
|
}
|
|
7269
7269
|
function w(A, P) {
|
|
7270
|
-
var b = this, S,
|
|
7270
|
+
var b = this, S, B, H, Y = "loglevel";
|
|
7271
7271
|
typeof A == "string" ? Y += ":" + A : typeof A == "symbol" && (Y = void 0);
|
|
7272
|
-
function pe(
|
|
7273
|
-
var J = (r[
|
|
7272
|
+
function pe(D) {
|
|
7273
|
+
var J = (r[D] || "silent").toUpperCase();
|
|
7274
7274
|
if (!(typeof window === n || !Y)) {
|
|
7275
7275
|
try {
|
|
7276
7276
|
window.localStorage[Y] = J;
|
|
@@ -7284,24 +7284,24 @@ function rm() {
|
|
|
7284
7284
|
}
|
|
7285
7285
|
}
|
|
7286
7286
|
function ae() {
|
|
7287
|
-
var
|
|
7287
|
+
var D;
|
|
7288
7288
|
if (!(typeof window === n || !Y)) {
|
|
7289
7289
|
try {
|
|
7290
|
-
|
|
7290
|
+
D = window.localStorage[Y];
|
|
7291
7291
|
} catch {
|
|
7292
7292
|
}
|
|
7293
|
-
if (typeof
|
|
7293
|
+
if (typeof D === n)
|
|
7294
7294
|
try {
|
|
7295
7295
|
var J = window.document.cookie, he = encodeURIComponent(Y), ge = J.indexOf(he + "=");
|
|
7296
|
-
ge !== -1 && (
|
|
7296
|
+
ge !== -1 && (D = /^([^;]+)/.exec(
|
|
7297
7297
|
J.slice(ge + he.length + 1)
|
|
7298
7298
|
)[1]);
|
|
7299
7299
|
} catch {
|
|
7300
7300
|
}
|
|
7301
|
-
return b.levels[
|
|
7301
|
+
return b.levels[D] === void 0 && (D = void 0), D;
|
|
7302
7302
|
}
|
|
7303
7303
|
}
|
|
7304
|
-
function
|
|
7304
|
+
function Be() {
|
|
7305
7305
|
if (!(typeof window === n || !Y)) {
|
|
7306
7306
|
try {
|
|
7307
7307
|
window.localStorage.removeItem(Y);
|
|
@@ -7313,11 +7313,11 @@ function rm() {
|
|
|
7313
7313
|
}
|
|
7314
7314
|
}
|
|
7315
7315
|
}
|
|
7316
|
-
function le(
|
|
7317
|
-
var J =
|
|
7316
|
+
function le(D) {
|
|
7317
|
+
var J = D;
|
|
7318
7318
|
if (typeof J == "string" && b.levels[J.toUpperCase()] !== void 0 && (J = b.levels[J.toUpperCase()]), typeof J == "number" && J >= 0 && J <= b.levels.SILENT)
|
|
7319
7319
|
return J;
|
|
7320
|
-
throw new TypeError("log.setLevel() called with invalid level: " +
|
|
7320
|
+
throw new TypeError("log.setLevel() called with invalid level: " + D);
|
|
7321
7321
|
}
|
|
7322
7322
|
b.name = A, b.levels = {
|
|
7323
7323
|
TRACE: 0,
|
|
@@ -7327,21 +7327,21 @@ function rm() {
|
|
|
7327
7327
|
ERROR: 4,
|
|
7328
7328
|
SILENT: 5
|
|
7329
7329
|
}, b.methodFactory = P || g, b.getLevel = function() {
|
|
7330
|
-
return H ??
|
|
7331
|
-
}, b.setLevel = function(
|
|
7332
|
-
return H = le(
|
|
7333
|
-
}, b.setDefaultLevel = function(
|
|
7334
|
-
|
|
7330
|
+
return H ?? B ?? S;
|
|
7331
|
+
}, b.setLevel = function(D, J) {
|
|
7332
|
+
return H = le(D), J !== !1 && pe(H), d.call(b);
|
|
7333
|
+
}, b.setDefaultLevel = function(D) {
|
|
7334
|
+
B = le(D), ae() || b.setLevel(D, !1);
|
|
7335
7335
|
}, b.resetLevel = function() {
|
|
7336
|
-
H = null,
|
|
7337
|
-
}, b.enableAll = function(
|
|
7338
|
-
b.setLevel(b.levels.TRACE,
|
|
7339
|
-
}, b.disableAll = function(
|
|
7340
|
-
b.setLevel(b.levels.SILENT,
|
|
7336
|
+
H = null, Be(), d.call(b);
|
|
7337
|
+
}, b.enableAll = function(D) {
|
|
7338
|
+
b.setLevel(b.levels.TRACE, D);
|
|
7339
|
+
}, b.disableAll = function(D) {
|
|
7340
|
+
b.setLevel(b.levels.SILENT, D);
|
|
7341
7341
|
}, b.rebuild = function() {
|
|
7342
7342
|
if (a !== b && (S = le(a.getLevel())), d.call(b), a === b)
|
|
7343
|
-
for (var
|
|
7344
|
-
i[
|
|
7343
|
+
for (var D in i)
|
|
7344
|
+
i[D].rebuild();
|
|
7345
7345
|
}, S = le(
|
|
7346
7346
|
a ? a.getLevel() : "WARN"
|
|
7347
7347
|
);
|
|
@@ -7367,7 +7367,7 @@ function rm() {
|
|
|
7367
7367
|
}(Kn)), Kn.exports;
|
|
7368
7368
|
}
|
|
7369
7369
|
var im = rm();
|
|
7370
|
-
const zn = /* @__PURE__ */ nm(im),
|
|
7370
|
+
const zn = /* @__PURE__ */ nm(im), Bm = {
|
|
7371
7371
|
install(t, e) {
|
|
7372
7372
|
const n = e ?? {};
|
|
7373
7373
|
zn.setDefaultLevel(
|
|
@@ -7427,20 +7427,20 @@ const zn = /* @__PURE__ */ nm(im), Nm = {
|
|
|
7427
7427
|
i.value = document.documentElement.scrollTop;
|
|
7428
7428
|
}), Xt.SetInitialTheme();
|
|
7429
7429
|
}
|
|
7430
|
-
},
|
|
7430
|
+
}, Nm = zn;
|
|
7431
7431
|
class Os extends Error {
|
|
7432
7432
|
constructor(n = []) {
|
|
7433
7433
|
const o = Array.isArray(n) ? n : [n];
|
|
7434
7434
|
super(o[0]);
|
|
7435
|
-
|
|
7435
|
+
Ne(this, "errors", []);
|
|
7436
7436
|
this.errors = o;
|
|
7437
7437
|
}
|
|
7438
7438
|
}
|
|
7439
7439
|
class sm {
|
|
7440
7440
|
constructor(e = null) {
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7441
|
+
Ne(this, "errors", []);
|
|
7442
|
+
Ne(this, "_value", null);
|
|
7443
|
+
Ne(this, "_httpStatusCode");
|
|
7444
7444
|
this._value = e, this._httpStatusCode = 200;
|
|
7445
7445
|
}
|
|
7446
7446
|
get value() {
|
|
@@ -7535,7 +7535,7 @@ const Hm = (t) => {
|
|
|
7535
7535
|
function lm() {
|
|
7536
7536
|
return Ys(Vi);
|
|
7537
7537
|
}
|
|
7538
|
-
const ar = () => lm(), cm = { class: "font-percentage" }, Si = "--font-size-increment", um = "tamanho-fonte", dm = /* @__PURE__ */
|
|
7538
|
+
const ar = () => lm(), cm = { class: "font-percentage" }, Si = "--font-size-increment", um = "tamanho-fonte", dm = /* @__PURE__ */ Re({
|
|
7539
7539
|
__name: "FontSize",
|
|
7540
7540
|
setup(t) {
|
|
7541
7541
|
const e = re(!1), n = re(0), o = () => {
|
|
@@ -7600,7 +7600,7 @@ const ar = () => lm(), cm = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7600
7600
|
], 64)) : se("", !0)
|
|
7601
7601
|
], 64));
|
|
7602
7602
|
}
|
|
7603
|
-
}), fm = /* @__PURE__ */ _t(dm, [["__scopeId", "data-v-d17f4a5f"]]), mm = /* @__PURE__ */
|
|
7603
|
+
}), fm = /* @__PURE__ */ _t(dm, [["__scopeId", "data-v-d17f4a5f"]]), mm = /* @__PURE__ */ Re({
|
|
7604
7604
|
__name: "ScrollToTop",
|
|
7605
7605
|
setup(t) {
|
|
7606
7606
|
const { scrollY: e } = ar(), n = we(() => e.value > 800);
|
|
@@ -7615,7 +7615,7 @@ const ar = () => lm(), cm = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7615
7615
|
}), pm = { class: "nav-menu-header" }, hm = { class: "nav-menu-inner-close" }, gm = { class: "main-content" }, vm = { class: "page-title" }, ym = { class: "action" }, bm = { id: "content" }, wm = {
|
|
7616
7616
|
key: 0,
|
|
7617
7617
|
id: "logging-out"
|
|
7618
|
-
}, _m = { class: "info-fazenda" }, Sm = { class: "font-bold" }, km = { class: "info-endereco text-muted" }, Cm = /* @__PURE__ */
|
|
7618
|
+
}, _m = { class: "info-fazenda" }, Sm = { class: "font-bold" }, km = { class: "info-endereco text-muted" }, Cm = /* @__PURE__ */ Re({
|
|
7619
7619
|
__name: "Main",
|
|
7620
7620
|
props: {
|
|
7621
7621
|
auth: {}
|
|
@@ -7733,7 +7733,7 @@ const ar = () => lm(), cm = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7733
7733
|
Te(mm)
|
|
7734
7734
|
], 2));
|
|
7735
7735
|
}
|
|
7736
|
-
}), jm = /* @__PURE__ */ _t(Cm, [["__scopeId", "data-v-35786704"]]), Fm = /* @__PURE__ */
|
|
7736
|
+
}), jm = /* @__PURE__ */ _t(Cm, [["__scopeId", "data-v-35786704"]]), Fm = /* @__PURE__ */ Re({
|
|
7737
7737
|
__name: "PageTitle",
|
|
7738
7738
|
props: {
|
|
7739
7739
|
title: {}
|
|
@@ -7834,88 +7834,63 @@ const ar = () => lm(), cm = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7834
7834
|
},
|
|
7835
7835
|
components: {
|
|
7836
7836
|
blockui: {
|
|
7837
|
-
|
|
7838
|
-
|
|
7837
|
+
root: {
|
|
7838
|
+
borderRadius: "0px"
|
|
7839
7839
|
}
|
|
7840
7840
|
},
|
|
7841
7841
|
button: {
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
background: "{primary.color} !important",
|
|
7849
|
-
border: {
|
|
7850
|
-
color: "{primary.color} !important"
|
|
7851
|
-
}
|
|
7842
|
+
root: {
|
|
7843
|
+
paddingX: "1rem",
|
|
7844
|
+
paddingY: "0.5rem",
|
|
7845
|
+
primary: {
|
|
7846
|
+
hoverBackground: "{primary.color} !important",
|
|
7847
|
+
hoverBorderColor: "{primary.color} !important"
|
|
7852
7848
|
}
|
|
7853
7849
|
},
|
|
7854
7850
|
text: {
|
|
7855
7851
|
secondary: {
|
|
7856
7852
|
color: "{secondary.color} !important",
|
|
7857
|
-
|
|
7858
|
-
background: "{surface.200.color} !important"
|
|
7859
|
-
}
|
|
7860
|
-
}
|
|
7861
|
-
},
|
|
7862
|
-
icon: {
|
|
7863
|
-
only: {
|
|
7864
|
-
width: "2rem"
|
|
7853
|
+
hoverBackground: "{surface.200.color} !important"
|
|
7865
7854
|
}
|
|
7866
7855
|
}
|
|
7867
7856
|
},
|
|
7868
7857
|
checkbox: {
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
|
|
7858
|
+
root: {
|
|
7859
|
+
background: "{surface.100.color} !important",
|
|
7860
|
+
borderColor: "{border.color} !important",
|
|
7861
|
+
borderRadius: "{border.radius} !important",
|
|
7862
|
+
checkedBackground: "{primary.color} !important",
|
|
7863
|
+
checkedHoverBackground: "{primary.color} !important",
|
|
7864
|
+
sm: {
|
|
7865
|
+
width: "1rem",
|
|
7866
|
+
height: "1rem"
|
|
7867
|
+
},
|
|
7868
|
+
lg: {
|
|
7869
|
+
width: "1.5rem",
|
|
7870
|
+
height: "1.5rem"
|
|
7877
7871
|
}
|
|
7878
|
-
},
|
|
7879
|
-
sm: {
|
|
7880
|
-
width: "1rem",
|
|
7881
|
-
height: "1rem"
|
|
7882
|
-
},
|
|
7883
|
-
lg: {
|
|
7884
|
-
width: "1.5rem",
|
|
7885
|
-
height: "1.5rem"
|
|
7886
7872
|
}
|
|
7887
7873
|
},
|
|
7888
7874
|
datatable: {
|
|
7875
|
+
root: {
|
|
7876
|
+
borderColor: "{border.color} !important"
|
|
7877
|
+
},
|
|
7889
7878
|
header: {
|
|
7890
|
-
|
|
7891
|
-
color: "{border.color} !important"
|
|
7892
|
-
},
|
|
7893
|
-
cell: {
|
|
7894
|
-
border: {
|
|
7895
|
-
color: "{border.color} !important"
|
|
7896
|
-
},
|
|
7897
|
-
hover: {
|
|
7898
|
-
background: "{primary.hover.color} !important",
|
|
7899
|
-
color: "{primary.color} !important"
|
|
7900
|
-
}
|
|
7901
|
-
}
|
|
7879
|
+
borderColor: "{border.color} !important"
|
|
7902
7880
|
},
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
}
|
|
7908
|
-
}
|
|
7881
|
+
headerCell: {
|
|
7882
|
+
borderColor: "{border.color} !important",
|
|
7883
|
+
hoverColor: "{primary.color} !important",
|
|
7884
|
+
hoverBackground: "{primary.hover.color} !important"
|
|
7909
7885
|
},
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
background: "{surface.100.color} !important"
|
|
7913
|
-
}
|
|
7886
|
+
bodyCell: {
|
|
7887
|
+
borderColor: "{border.color} !important"
|
|
7914
7888
|
},
|
|
7915
7889
|
footer: {
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7890
|
+
borderColor: "{border.color} !important"
|
|
7891
|
+
},
|
|
7892
|
+
row: {
|
|
7893
|
+
stripedBackground: "{surface.100.color} !important"
|
|
7919
7894
|
}
|
|
7920
7895
|
},
|
|
7921
7896
|
datepicker: {
|
|
@@ -7925,115 +7900,80 @@ const ar = () => lm(), cm = { class: "font-percentage" }, Si = "--font-size-incr
|
|
|
7925
7900
|
}
|
|
7926
7901
|
},
|
|
7927
7902
|
dialog: {
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7903
|
+
root: {
|
|
7904
|
+
background: "{bg.color} !important",
|
|
7905
|
+
color: "{text.color} !important",
|
|
7906
|
+
borderColor: "{border.color} !important",
|
|
7907
|
+
borderRadius: "{border.radius} !important",
|
|
7908
|
+
shadow: "none !important"
|
|
7933
7909
|
},
|
|
7934
7910
|
title: {
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
weight: "700 !important"
|
|
7938
|
-
}
|
|
7911
|
+
fontSize: "{font.size} !important",
|
|
7912
|
+
fontWeight: "700 !important"
|
|
7939
7913
|
},
|
|
7940
7914
|
header: {
|
|
7941
7915
|
padding: "0.75rem 0.75rem 0 1rem !important",
|
|
7942
|
-
gap: "{
|
|
7916
|
+
gap: "{content-gutter-sm} !important"
|
|
7943
7917
|
},
|
|
7944
7918
|
content: {
|
|
7945
|
-
padding: "{content.
|
|
7919
|
+
padding: "{content.gutter} !important"
|
|
7946
7920
|
},
|
|
7947
7921
|
footer: {
|
|
7948
7922
|
padding: "0.75rem 0.75rem 0 1rem !important",
|
|
7949
|
-
gap: "{
|
|
7923
|
+
gap: "{content-gutter-sm} !important"
|
|
7950
7924
|
}
|
|
7951
7925
|
},
|
|
7952
7926
|
inputtext: {
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
}
|
|
7962
|
-
},
|
|
7963
|
-
placeholder: {
|
|
7964
|
-
color: "{muted.color}"
|
|
7965
|
-
}
|
|
7966
|
-
},
|
|
7967
|
-
inputmask: {
|
|
7968
|
-
background: "{bg.color}",
|
|
7969
|
-
color: "{text.color}",
|
|
7970
|
-
border: {
|
|
7971
|
-
color: "{border.color}"
|
|
7972
|
-
},
|
|
7973
|
-
hover: {
|
|
7974
|
-
border: {
|
|
7975
|
-
color: "{primary.color}"
|
|
7976
|
-
}
|
|
7977
|
-
},
|
|
7978
|
-
placeholder: {
|
|
7979
|
-
color: "{muted.color}"
|
|
7927
|
+
root: {
|
|
7928
|
+
background: "{bg.color}",
|
|
7929
|
+
color: "{text.color}",
|
|
7930
|
+
borderColor: "{border.color} !important",
|
|
7931
|
+
borderRadius: "{border.radius} !important",
|
|
7932
|
+
shadow: "none !important",
|
|
7933
|
+
hoverBorderColor: "{primary.color} !important",
|
|
7934
|
+
placeholderColor: "{muted.color}"
|
|
7980
7935
|
}
|
|
7981
7936
|
},
|
|
7982
7937
|
popover: {
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
color: "
|
|
7986
|
-
|
|
7938
|
+
root: {
|
|
7939
|
+
background: "{bg.color}",
|
|
7940
|
+
color: "{text.color}",
|
|
7941
|
+
borderColor: "{border.color}",
|
|
7942
|
+
borderRadius: "{border.radius}",
|
|
7943
|
+
shadow: "none",
|
|
7944
|
+
gutter: "8px",
|
|
7945
|
+
arrowOffset: "0.75rem"
|
|
7987
7946
|
},
|
|
7988
|
-
shadow: "none",
|
|
7989
|
-
gutter: "8px",
|
|
7990
7947
|
content: {
|
|
7991
7948
|
padding: "0"
|
|
7992
|
-
},
|
|
7993
|
-
arrow: {
|
|
7994
|
-
offset: ".75rem"
|
|
7995
7949
|
}
|
|
7996
7950
|
},
|
|
7997
7951
|
select: {
|
|
7998
|
-
|
|
7999
|
-
|
|
7952
|
+
root: {
|
|
7953
|
+
background: "{bg.color}",
|
|
7954
|
+
color: "{primary.color}",
|
|
7955
|
+
hoverBorderColor: "{primary.color}",
|
|
7956
|
+
placeholderColor: "{muted.color}",
|
|
7957
|
+
disabledColor: "{disabled.color}"
|
|
7958
|
+
},
|
|
8000
7959
|
option: {
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
}
|
|
8005
|
-
selected: {
|
|
8006
|
-
focus: {
|
|
8007
|
-
background: "{primary.color}",
|
|
8008
|
-
color: "{bg.color}"
|
|
8009
|
-
}
|
|
8010
|
-
}
|
|
7960
|
+
focusBackground: "{primary.hover.color}",
|
|
7961
|
+
focusColor: "{primary.color}",
|
|
7962
|
+
selectedFocusColor: "{bg.color}",
|
|
7963
|
+
selectedFocusBackground: "{primary.color}"
|
|
8011
7964
|
},
|
|
8012
7965
|
overlay: {
|
|
8013
7966
|
background: "{bg.color}",
|
|
8014
|
-
|
|
8015
|
-
color: "{border.color}"
|
|
8016
|
-
}
|
|
7967
|
+
borderColor: "{border.color}"
|
|
8017
7968
|
},
|
|
8018
7969
|
dropdown: {
|
|
8019
7970
|
color: "{primary.color}"
|
|
8020
|
-
},
|
|
8021
|
-
hover: {
|
|
8022
|
-
border: {
|
|
8023
|
-
color: "{primary.color}"
|
|
8024
|
-
}
|
|
8025
|
-
},
|
|
8026
|
-
placeholder: {
|
|
8027
|
-
color: "{disabled.color}"
|
|
8028
|
-
},
|
|
8029
|
-
disabled: {
|
|
8030
|
-
color: "{disabled.color}"
|
|
8031
7971
|
}
|
|
8032
7972
|
},
|
|
8033
7973
|
skeleton: {
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
7974
|
+
root: {
|
|
7975
|
+
background: "{surface.700.color} !important",
|
|
7976
|
+
animationBackground: "{surface.100.color} !important"
|
|
8037
7977
|
}
|
|
8038
7978
|
}
|
|
8039
7979
|
}
|
|
@@ -8137,7 +8077,7 @@ function zm() {
|
|
|
8137
8077
|
export {
|
|
8138
8078
|
Os as AppError,
|
|
8139
8079
|
sm as AppResult,
|
|
8140
|
-
|
|
8080
|
+
Dm as ConfigAuth,
|
|
8141
8081
|
Km as EnsureUniqueRouteNames,
|
|
8142
8082
|
zm as RemovePreloader,
|
|
8143
8083
|
Pm as SfButton,
|
|
@@ -8157,10 +8097,10 @@ export {
|
|
|
8157
8097
|
ar as UseAppInject,
|
|
8158
8098
|
wi as UseAuth,
|
|
8159
8099
|
xf as UseConfirm,
|
|
8160
|
-
|
|
8100
|
+
Rm as UseConfirmService,
|
|
8161
8101
|
Wn as Utilities,
|
|
8162
|
-
|
|
8163
|
-
|
|
8102
|
+
Nm as _logger,
|
|
8103
|
+
Bm as configSF,
|
|
8164
8104
|
Hm as globalErrorHandler,
|
|
8165
8105
|
Vm as themePreset
|
|
8166
8106
|
};
|