@luizleon/sf.prefeiturasp.vuecomponents 5.0.43 → 5.0.45

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.
@@ -1,7 +1,7 @@
1
1
  var Ks = Object.defineProperty;
2
2
  var zs = (t, e, n) => e in t ? Ks(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var ne = (t, e, n) => zs(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { defineComponent as De, onBeforeUnmount as Ei, createElementBlock as H, openBlock as $, unref as le, renderSlot as me, createElementVNode as M, computed as de, createBlock as pe, resolveDynamicComponent as yt, normalizeClass as ee, withCtx as pt, createCommentVNode as se, normalizeStyle as jt, Fragment as Xe, mergeProps as W, toDisplayString as $e, ref as oe, onMounted as Vt, resolveComponent as Sn, renderList as Ur, useSlots as Hr, watch as Wn, Teleport as Ws, withModifiers as Ir, createVNode as Ee, Transition as jr, normalizeProps as Hn, guardReactiveProps as jn, readonly as Gs, getCurrentInstance as Pi, nextTick as Li, resolveDirective as qs, withDirectives as Tr, vShow as xi, getCurrentScope as Ys, onScopeDispose as Xs, toValue as Oi, inject as Zs, onBeforeMount as Js, createTextVNode as Po, watchEffect as Qs } from "vue";
4
+ import { defineComponent as De, onBeforeUnmount as Ei, createElementBlock as U, openBlock as O, unref as ae, renderSlot as me, createElementVNode as $, computed as de, createBlock as pe, resolveDynamicComponent as yt, normalizeClass as ee, withCtx as pt, createCommentVNode as se, normalizeStyle as jt, Fragment as Xe, mergeProps as W, toDisplayString as $e, ref as oe, onMounted as Vt, resolveComponent as Sn, renderList as Ur, useSlots as Hr, watch as Wn, Teleport as Ws, withModifiers as Ir, createVNode as Ee, Transition as jr, normalizeProps as Hn, guardReactiveProps as jn, readonly as Gs, getCurrentInstance as Pi, nextTick as Li, resolveDirective as qs, withDirectives as Tr, vShow as xi, getCurrentScope as Ys, onScopeDispose as Xs, toValue as Oi, inject as Zs, onBeforeMount as Js, createTextVNode as Po, watchEffect as Qs } from "vue";
5
5
  import { useRouter as ea } from "vue-router";
6
6
  class fn {
7
7
  /**
@@ -110,14 +110,14 @@ const ta = /* @__PURE__ */ De({
110
110
  const r = new n();
111
111
  return Ei(() => {
112
112
  r.Hide();
113
- }), (o, i) => ($(), H("div", {
113
+ }), (o, i) => (O(), U("div", {
114
114
  class: "sf-tooltip-anchor",
115
115
  onMouseenter: i[0] || (i[0] = //@ts-ignore
116
- (...a) => le(r).Show && le(r).Show(...a)),
116
+ (...a) => ae(r).Show && ae(r).Show(...a)),
117
117
  onMousedown: i[1] || (i[1] = //@ts-ignore
118
- (...a) => le(r).Hide && le(r).Hide(...a)),
118
+ (...a) => ae(r).Hide && ae(r).Hide(...a)),
119
119
  onMouseleave: i[2] || (i[2] = //@ts-ignore
120
- (...a) => le(r).Hide && le(r).Hide(...a))
120
+ (...a) => ae(r).Hide && ae(r).Hide(...a))
121
121
  }, [
122
122
  me(o.$slots, "default")
123
123
  ], 32));
@@ -129,10 +129,10 @@ const ta = /* @__PURE__ */ De({
129
129
  return n;
130
130
  }, na = {}, ra = { class: "sf-loading-circle" };
131
131
  function oa(t, e) {
132
- return $(), H("div", ra, e[0] || (e[0] = [
133
- M("div", null, [
134
- M("svg", { viewBox: "25 25 50 50" }, [
135
- M("circle", {
132
+ return O(), U("div", ra, e[0] || (e[0] = [
133
+ $("div", null, [
134
+ $("svg", { viewBox: "25 25 50 50" }, [
135
+ $("circle", {
136
136
  cx: "50",
137
137
  cy: "50",
138
138
  r: "20",
@@ -172,13 +172,13 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
172
172
  ).Build()), a = (l) => {
173
173
  n.disabled || n.loading || s("click", l);
174
174
  }, s = e;
175
- return (l, u) => ($(), pe(yt(r.value), {
175
+ return (l, u) => (O(), pe(yt(r.value), {
176
176
  text: n.tooltip,
177
177
  class: ee(o.value),
178
178
  onClick: a
179
179
  }, {
180
180
  default: pt(() => [
181
- M("div", {
181
+ $("div", {
182
182
  class: ee([
183
183
  "icon-wrapper",
184
184
  {
@@ -188,13 +188,13 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
188
188
  ]),
189
189
  "data-size": n.size
190
190
  }, [
191
- n.visible ? ($(), H("div", {
191
+ n.visible ? (O(), U("div", {
192
192
  key: 0,
193
193
  style: jt(n.style),
194
194
  class: ee(i.value)
195
195
  }, [
196
- n.loading ? ($(), pe($i, { key: 0 })) : ($(), H(Xe, { key: 1 }, [
197
- M("button", W({
196
+ n.loading ? (O(), pe($i, { key: 0 })) : (O(), U(Xe, { key: 1 }, [
197
+ $("button", W({
198
198
  class: [
199
199
  "material-symbols-outlined",
200
200
  { "icon-filled": !!n.filled }
@@ -204,7 +204,7 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
204
204
  }, n.buttonProps, {
205
205
  tabindex: n.button ? void 0 : -1
206
206
  }), $e(n.icon), 17, sa),
207
- n.dot && !n.disabled && !n.loading ? ($(), H("span", {
207
+ n.dot && !n.disabled && !n.loading ? (O(), U("span", {
208
208
  key: 0,
209
209
  "data-color": n.dotColor
210
210
  }, null, 8, aa)) : se("", !0)
@@ -215,7 +215,7 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
215
215
  _: 1
216
216
  }, 8, ["text", "class"]));
217
217
  }
218
- }), dt = /* @__PURE__ */ St(la, [["__scopeId", "data-v-c242d02a"]]), ca = { class: "sf-tab-navigation" }, ua = ["data-active"], da = ["href", "onClick"], $m = /* @__PURE__ */ De({
218
+ }), dt = /* @__PURE__ */ St(la, [["__scopeId", "data-v-c242d02a"]]), ca = { class: "sf-tab-navigation" }, ua = ["data-active"], da = ["href", "onClick"], Mm = /* @__PURE__ */ De({
219
219
  __name: "TabNavigation",
220
220
  props: {
221
221
  tabs: {}
@@ -245,12 +245,12 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
245
245
  }
246
246
  }), (l, u) => {
247
247
  const d = Sn("RouterLink");
248
- return $(), H("div", ca, [
249
- M("div", {
248
+ return O(), U("div", ca, [
249
+ $("div", {
250
250
  class: ee(["left-arrow", { active: o.value }]),
251
- onClick: u[0] || (u[0] = (p) => a(!0))
251
+ onClick: u[0] || (u[0] = (m) => a(!0))
252
252
  }, u[2] || (u[2] = [
253
- M("svg", {
253
+ $("svg", {
254
254
  xmlns: "http://www.w3.org/2000/svg",
255
255
  fill: "none",
256
256
  viewBox: "0 0 24 24",
@@ -258,44 +258,44 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
258
258
  stroke: "currentColor",
259
259
  class: "w-6 h-6"
260
260
  }, [
261
- M("path", {
261
+ $("path", {
262
262
  "stroke-linecap": "round",
263
263
  "stroke-linejoin": "round",
264
264
  d: "M15.75 19.5L8.25 12l7.5-7.5"
265
265
  })
266
266
  ], -1)
267
267
  ]), 2),
268
- M("ul", {
268
+ $("ul", {
269
269
  ref_key: "trackerContainer",
270
270
  ref: n
271
271
  }, [
272
- ($(!0), H(Xe, null, Ur(e.tabs, (p) => ($(), pe(d, {
273
- to: p.route,
272
+ (O(!0), U(Xe, null, Ur(e.tabs, (m) => (O(), pe(d, {
273
+ to: m.route,
274
274
  custom: !0
275
275
  }, {
276
- default: pt(({ navigate: g, isActive: S }) => [
277
- M("li", { "data-active": S }, [
276
+ default: pt(({ navigate: v, isActive: S }) => [
277
+ $("li", { "data-active": S }, [
278
278
  me(l.$slots, "item", {
279
- item: p,
280
- navigate: g,
279
+ item: m,
280
+ navigate: v,
281
281
  isActive: S
282
282
  }, () => [
283
- M("a", {
284
- href: p.route,
283
+ $("a", {
284
+ href: m.route,
285
285
  class: ee({ active: S }),
286
- onClick: g
287
- }, $e(p.text), 11, da)
286
+ onClick: v
287
+ }, $e(m.text), 11, da)
288
288
  ])
289
289
  ], 8, ua)
290
290
  ]),
291
291
  _: 2
292
292
  }, 1032, ["to"]))), 256))
293
293
  ], 512),
294
- M("div", {
294
+ $("div", {
295
295
  class: ee(["right-arrow", { active: i.value }]),
296
- onClick: u[1] || (u[1] = (p) => a())
296
+ onClick: u[1] || (u[1] = (m) => a())
297
297
  }, u[3] || (u[3] = [
298
- M("svg", {
298
+ $("svg", {
299
299
  xmlns: "http://www.w3.org/2000/svg",
300
300
  fill: "none",
301
301
  viewBox: "0 0 24 24",
@@ -303,7 +303,7 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
303
303
  stroke: "currentColor",
304
304
  class: "w-6 h-6"
305
305
  }, [
306
- M("path", {
306
+ $("path", {
307
307
  "stroke-linecap": "round",
308
308
  "stroke-linejoin": "round",
309
309
  d: "M8.25 4.5l7.5 7.5-7.5 7.5"
@@ -325,13 +325,13 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
325
325
  await new Promise(
326
326
  (r) => setTimeout(r, e.delay ?? 300)
327
327
  ), n.value = !0;
328
- }), (r, o) => n.value ? ($(), H("div", {
328
+ }), (r, o) => n.value ? (O(), U("div", {
329
329
  key: 0,
330
330
  class: ee(["loading-circle", { dense: e.dense }])
331
331
  }, o[0] || (o[0] = [
332
- M("div", null, [
333
- M("svg", { viewBox: "25 25 50 50" }, [
334
- M("circle", {
332
+ $("div", null, [
333
+ $("svg", { viewBox: "25 25 50 50" }, [
334
+ $("circle", {
335
335
  cx: "50",
336
336
  cy: "50",
337
337
  r: "20",
@@ -372,7 +372,7 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
372
372
  const o = (a) => {
373
373
  n.disabled || n.loading || i("click", a);
374
374
  }, i = e;
375
- return (a, s) => n.visible ? ($(), H("button", {
375
+ return (a, s) => n.visible ? (O(), U("button", {
376
376
  key: 0,
377
377
  id: n.id,
378
378
  name: n.name,
@@ -385,13 +385,13 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
385
385
  "data-p-loading": n.loading,
386
386
  onClick: o
387
387
  }, [
388
- n.loading ? ($(), pe(ma, {
388
+ n.loading ? (O(), pe(ma, {
389
389
  key: 0,
390
390
  dense: !0,
391
391
  delay: 0,
392
392
  class: ee("icon-loading")
393
393
  })) : se("", !0),
394
- n.icon ? ($(), pe(dt, {
394
+ n.icon ? (O(), pe(dt, {
395
395
  key: 1,
396
396
  icon: n.icon,
397
397
  size: n.size,
@@ -399,7 +399,7 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
399
399
  filled: n.iconFilled,
400
400
  class: ee({ transparent: n.loading })
401
401
  }, null, 8, ["icon", "size", "filled", "class"])) : se("", !0),
402
- M("span", {
402
+ $("span", {
403
403
  class: ee({
404
404
  "button-label": !0,
405
405
  "pl-2": !!n.icon,
@@ -410,7 +410,7 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
410
410
  ], 2)
411
411
  ], 14, pa)) : se("", !0);
412
412
  }
413
- }), Mm = /* @__PURE__ */ St(ha, [["__scopeId", "data-v-79a81e53"]]), ga = { class: "sf-drawer-title" }, va = { class: "sf-drawer-action" }, ya = /* @__PURE__ */ De({
413
+ }), Rm = /* @__PURE__ */ St(ha, [["__scopeId", "data-v-79a81e53"]]), ga = { class: "sf-drawer-title" }, va = { class: "sf-drawer-action" }, ya = /* @__PURE__ */ De({
414
414
  __name: "Drawer",
415
415
  props: {
416
416
  visible: { type: Boolean, default: !1 },
@@ -434,11 +434,11 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
434
434
  const b = w.target;
435
435
  b && b.id === l && (i.value = !1);
436
436
  }
437
- function p(w) {
437
+ function m(w) {
438
438
  (w.key === "Escape" || w.code === "Escape") && u();
439
439
  }
440
- function g() {
441
- r("open"), window.document.addEventListener("keydown", p, !0);
440
+ function v() {
441
+ r("open"), window.document.addEventListener("keydown", m, !0);
442
442
  }
443
443
  function S(w) {
444
444
  s.value = Fr() + 1, w.style.zIndex = `${s.value}`;
@@ -448,9 +448,9 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
448
448
  r("before-close"), (b = w == null ? void 0 : w.parentElement) == null || b.classList.add("sf-mask-overlay-leave");
449
449
  }
450
450
  function A() {
451
- window.document.removeEventListener("keydown", p, !0), a.value = !1;
451
+ window.document.removeEventListener("keydown", m, !0), a.value = !1;
452
452
  }
453
- function x() {
453
+ function P() {
454
454
  return new fn("sf-mask sf-mask-overlay").AddClass("right", n.position === "right").AddClass("bottom", n.position === "bottom").AddClass("center", n.position === "center").AddClass("full", n.position === "full").AddClass("sf-mask-overlay-enter", n.visible === !0).Build();
455
455
  }
456
456
  return Wn(
@@ -463,11 +463,11 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
463
463
  (w) => {
464
464
  r("update:visible", w), w && (a.value = !0);
465
465
  }
466
- ), (w, b) => ($(), pe(Ws, { to: "body" }, [
467
- a.value ? ($(), H("div", {
466
+ ), (w, b) => (O(), pe(Ws, { to: "body" }, [
467
+ a.value ? (O(), U("div", {
468
468
  key: 0,
469
469
  id: l,
470
- class: ee(x()),
470
+ class: ee(P()),
471
471
  style: jt({ zIndex: s.value - 1 }),
472
472
  onClick: Ir(d, ["stop"])
473
473
  }, [
@@ -475,26 +475,26 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
475
475
  name: "sf-drawer",
476
476
  appear: "",
477
477
  onBeforeEnter: S,
478
- onEnter: g,
478
+ onEnter: v,
479
479
  onBeforeLeave: I,
480
480
  onAfterLeave: A
481
481
  }, {
482
482
  default: pt(() => [
483
- i.value ? ($(), H("div", {
483
+ i.value ? (O(), U("div", {
484
484
  key: 0,
485
485
  class: ee(["sf-drawer"]),
486
486
  style: jt(n.style),
487
487
  role: "dialog"
488
488
  }, [
489
489
  me(w.$slots, "header", Hn(jn({ Close: u })), () => [
490
- M("div", {
490
+ $("div", {
491
491
  class: ee(["sf-drawer-header", { unstyled: n.unstyledHeader }])
492
492
  }, [
493
493
  me(w.$slots, "title", {}, () => [
494
- M("div", ga, $e(n.title), 1)
494
+ $("div", ga, $e(n.title), 1)
495
495
  ]),
496
- b[0] || (b[0] = M("div", { class: "sf-drawer-spacer" }, null, -1)),
497
- M("div", va, [
496
+ b[0] || (b[0] = $("div", { class: "sf-drawer-spacer" }, null, -1)),
497
+ $("div", va, [
498
498
  me(w.$slots, "action", Hn(jn({ Close: u })), () => [
499
499
  Ee(dt, {
500
500
  button: !0,
@@ -505,12 +505,12 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
505
505
  ])
506
506
  ], 2)
507
507
  ]),
508
- M("div", {
508
+ $("div", {
509
509
  class: ee(["sf-drawer-content", { unstyled: n.unstyledContent }])
510
510
  }, [
511
511
  me(w.$slots, "default")
512
512
  ], 2),
513
- le(o).footer ? ($(), H("div", {
513
+ ae(o).footer ? (O(), U("div", {
514
514
  key: 0,
515
515
  class: ee(["sf-drawer-footer", { unstyled: n.unstyledFooter }])
516
516
  }, [
@@ -523,7 +523,7 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
523
523
  ], 6)) : se("", !0)
524
524
  ]));
525
525
  }
526
- }), ba = ["data-icon"], Rm = /* @__PURE__ */ De({
526
+ }), ba = ["data-icon"], Dm = /* @__PURE__ */ De({
527
527
  __name: "Message",
528
528
  props: {
529
529
  color: { default: "info" },
@@ -549,7 +549,7 @@ const $i = /* @__PURE__ */ St(na, [["render", oa]]), ia = ["data-size"], sa = ["
549
549
  return null;
550
550
  }
551
551
  }), r = de(() => new fn("sf-message").AddClass("sf-message-error", e.color === "error").AddClass("sf-message-info", e.color === "info").AddClass("sf-message-warning", e.color === "warn").AddClass("sf-message-success", e.color === "success").AddClass("sf-message-help", e.color === "help").AddClass("sf-message-primary", e.color === "primary").AddClass("sf-message-secondary", e.color === "secondary").AddClass(e.class).Build());
552
- return (o, i) => ($(), H("div", {
552
+ return (o, i) => (O(), U("div", {
553
553
  class: ee(r.value),
554
554
  "data-icon": n.value
555
555
  }, [
@@ -593,8 +593,8 @@ function Gn(t, e = {}) {
593
593
  if (d === "string" || d === "number")
594
594
  l.push(u);
595
595
  else if (d === "object") {
596
- const p = Array.isArray(u) ? n(r, u) : Object.entries(u).map(([g, S]) => r === "style" && (S || S === 0) ? `${g.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()}:${S}` : S ? g : void 0);
597
- l = p.length ? l.concat(p.filter((g) => !!g)) : l;
596
+ const m = Array.isArray(u) ? n(r, u) : Object.entries(u).map(([v, S]) => r === "style" && (S || S === 0) ? `${v.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()}:${S}` : S ? v : void 0);
597
+ l = m.length ? l.concat(m.filter((v) => !!v)) : l;
598
598
  }
599
599
  }
600
600
  return l;
@@ -713,11 +713,11 @@ function Ar(t, e) {
713
713
  var u = t instanceof RegExp, d = e instanceof RegExp;
714
714
  if (u != d) return !1;
715
715
  if (u && d) return t.toString() == e.toString();
716
- var p = Object.keys(t);
717
- if (i = p.length, i !== Object.keys(e).length) return !1;
718
- for (o = i; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(e, p[o])) return !1;
716
+ var m = Object.keys(t);
717
+ if (i = m.length, i !== Object.keys(e).length) return !1;
718
+ for (o = i; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(e, m[o])) return !1;
719
719
  for (o = i; o-- !== 0; )
720
- if (a = p[o], !Ar(t[a], e[a])) return !1;
720
+ if (a = m[o], !Ar(t[a], e[a])) return !1;
721
721
  return !0;
722
722
  }
723
723
  return t !== t && e !== e;
@@ -832,8 +832,8 @@ function Hi(t, e = "", n = "", r = [], o) {
832
832
  const i = /{([^}]*)}/g, a = t.trim();
833
833
  if (ft(a, i)) {
834
834
  const s = a.replaceAll(i, (d) => {
835
- const g = d.replace(/{|}/g, "").split(".").filter((S) => !r.some((I) => ft(S, I)));
836
- return `var(${Ui(n, Di(g.join("-")))}${Q(o) ? `, ${o}` : ""})`;
835
+ const v = d.replace(/{|}/g, "").split(".").filter((S) => !r.some((I) => ft(S, I)));
836
+ return `var(${Ui(n, Di(v.join("-")))}${Q(o) ? `, ${o}` : ""})`;
837
837
  }), l = /(\d+\s+[\+\-\*\/]\s+\d+)/g, u = /var\([^)]+\)/g;
838
838
  return ft(s.replace(u, "0"), l) ? `calc(${s})` : s;
839
839
  }
@@ -856,14 +856,14 @@ var pr = (...t) => Ha(re.getTheme(), ...t), Ha = (t = {}, e, n, r = "variable")
856
856
  };
857
857
  function ja(t, e = {}) {
858
858
  const n = re.defaults.variable, { prefix: r = n.prefix, selector: o = n.selector, excludedKeyRegex: i = n.excludedKeyRegex } = e, a = (u, d = "") => Object.entries(u).reduce(
859
- (p, [g, S]) => {
860
- const I = ft(g, i) ? Er(d) : Er(d, Di(g)), A = Na(S);
859
+ (m, [v, S]) => {
860
+ const I = ft(v, i) ? Er(d) : Er(d, Di(v)), A = Na(S);
861
861
  if (wt(A)) {
862
- const { variables: x, tokens: w } = a(A, I);
863
- Ro(p.tokens, w), Ro(p.variables, x);
862
+ const { variables: P, tokens: w } = a(A, I);
863
+ Ro(m.tokens, w), Ro(m.variables, P);
864
864
  } else
865
- p.tokens.push((r ? I.replace(`${r}-`, "") : I).replaceAll("-", ".")), Ua(p.variables, Ui(I), Hi(A, I, r, [i]));
866
- return p;
865
+ m.tokens.push((r ? I.replace(`${r}-`, "") : I).replaceAll("-", ".")), Ua(m.variables, Ui(I), Hi(A, I, r, [i]));
866
+ return m;
867
867
  },
868
868
  { variables: [], tokens: [] }
869
869
  ), { variables: s, tokens: l } = a(t, r);
@@ -921,17 +921,17 @@ var We = {
921
921
  getCommon({ name: t = "", theme: e = {}, params: n, set: r, defaults: o }) {
922
922
  var i, a, s, l;
923
923
  const { preset: u, options: d } = e;
924
- let p, g, S, I;
924
+ let m, v, S, I;
925
925
  if (Q(u)) {
926
- const { primitive: A, semantic: x } = u, w = x || {}, { colorScheme: b } = w, O = Zt(w, ["colorScheme"]), B = b || {}, { dark: Y } = B, ge = Zt(B, ["dark"]), ae = Q(A) ? this._toVariables({ primitive: A }, d) : {}, Be = Q(O) ? this._toVariables({ semantic: O }, d) : {}, ce = Q(ge) ? this._toVariables({ light: ge }, d) : {}, X = Q(Y) ? this._toVariables({ dark: Y }, d) : {}, [N, J] = [(i = ae.declarations) != null ? i : "", ae.tokens], [ve, ye] = [(a = Be.declarations) != null ? a : "", Be.tokens || []], [Je, ot] = [(s = ce.declarations) != null ? s : "", ce.tokens || []], [Qe, et] = [(l = X.declarations) != null ? l : "", X.tokens || []];
927
- p = this.transformCSS(t, N, "light", "variable", d, r, o), g = J;
926
+ const { primitive: A, semantic: P } = u, w = P || {}, { colorScheme: b } = w, N = Zt(w, ["colorScheme"]), H = b || {}, { dark: Y } = H, ge = Zt(H, ["dark"]), le = Q(A) ? this._toVariables({ primitive: A }, d) : {}, Be = Q(N) ? this._toVariables({ semantic: N }, d) : {}, ce = Q(ge) ? this._toVariables({ light: ge }, d) : {}, X = Q(Y) ? this._toVariables({ dark: Y }, d) : {}, [D, J] = [(i = le.declarations) != null ? i : "", le.tokens], [ve, ye] = [(a = Be.declarations) != null ? a : "", Be.tokens || []], [Je, ot] = [(s = ce.declarations) != null ? s : "", ce.tokens || []], [Qe, et] = [(l = X.declarations) != null ? l : "", X.tokens || []];
927
+ m = this.transformCSS(t, D, "light", "variable", d, r, o), v = J;
928
928
  const kt = this.transformCSS(t, `${ve}${Je}color-scheme:light`, "light", "variable", d, r, o), Fe = this.transformCSS(t, `${Qe}color-scheme:dark`, "dark", "variable", d, r, o);
929
929
  S = `${kt}${Fe}`, I = [.../* @__PURE__ */ new Set([...ye, ...ot, ...et])];
930
930
  }
931
931
  return {
932
932
  primitive: {
933
- css: p,
934
- tokens: g
933
+ css: m,
934
+ tokens: v
935
935
  },
936
936
  semantic: {
937
937
  css: S,
@@ -941,9 +941,9 @@ var We = {
941
941
  },
942
942
  getPreset({ name: t = "", preset: e = {}, options: n, params: r, set: o, defaults: i, selector: a }) {
943
943
  var s, l, u;
944
- const d = t.replace("-directive", ""), p = e, { colorScheme: g } = p, S = Zt(p, ["colorScheme"]), I = g || {}, { dark: A } = I, x = Zt(I, ["dark"]), w = Q(S) ? this._toVariables({ [d]: S }, n) : {}, b = Q(x) ? this._toVariables({ [d]: x }, n) : {}, O = Q(A) ? this._toVariables({ [d]: A }, n) : {}, [B, Y] = [(s = w.declarations) != null ? s : "", w.tokens || []], [ge, ae] = [(l = b.declarations) != null ? l : "", b.tokens || []], [Be, ce] = [(u = O.declarations) != null ? u : "", O.tokens || []], X = [.../* @__PURE__ */ new Set([...Y, ...ae, ...ce])], N = this.transformCSS(d, `${B}${ge}`, "light", "variable", n, o, i, a), J = this.transformCSS(d, Be, "dark", "variable", n, o, i, a);
944
+ const d = t.replace("-directive", ""), m = e, { colorScheme: v } = m, S = Zt(m, ["colorScheme"]), I = v || {}, { dark: A } = I, P = Zt(I, ["dark"]), w = Q(S) ? this._toVariables({ [d]: S }, n) : {}, b = Q(P) ? this._toVariables({ [d]: P }, n) : {}, N = Q(A) ? this._toVariables({ [d]: A }, n) : {}, [H, Y] = [(s = w.declarations) != null ? s : "", w.tokens || []], [ge, le] = [(l = b.declarations) != null ? l : "", b.tokens || []], [Be, ce] = [(u = N.declarations) != null ? u : "", N.tokens || []], X = [.../* @__PURE__ */ new Set([...Y, ...le, ...ce])], D = this.transformCSS(d, `${H}${ge}`, "light", "variable", n, o, i, a), J = this.transformCSS(d, Be, "dark", "variable", n, o, i, a);
945
945
  return {
946
- css: `${N}${J}`,
946
+ css: `${D}${J}`,
947
947
  tokens: X
948
948
  };
949
949
  },
@@ -969,15 +969,15 @@ var We = {
969
969
  const a = this.getCommon({ name: t, theme: e, params: n, set: o, defaults: i }), s = Object.entries(r).reduce((l, [u, d]) => l.push(`${u}="${d}"`) && l, []).join(" ");
970
970
  return Object.entries(a || {}).reduce((l, [u, d]) => {
971
971
  if (d != null && d.css) {
972
- const p = cn(d == null ? void 0 : d.css), g = `${u}-variables`;
973
- l.push(`<style type="text/css" data-primevue-style-id="${g}" ${s}>${p}</style>`);
972
+ const m = cn(d == null ? void 0 : d.css), v = `${u}-variables`;
973
+ l.push(`<style type="text/css" data-primevue-style-id="${v}" ${s}>${m}</style>`);
974
974
  }
975
975
  return l;
976
976
  }, []).join("");
977
977
  },
978
978
  getStyleSheet({ name: t = "", theme: e = {}, params: n, props: r = {}, set: o, defaults: i }) {
979
979
  var a;
980
- const s = { name: t, theme: e, params: n, set: o, defaults: i }, l = (a = t.includes("-directive") ? this.getPresetD(s) : this.getPresetC(s)) == null ? void 0 : a.css, u = Object.entries(r).reduce((d, [p, g]) => d.push(`${p}="${g}"`) && d, []).join(" ");
980
+ const s = { name: t, theme: e, params: n, set: o, defaults: i }, l = (a = t.includes("-directive") ? this.getPresetD(s) : this.getPresetC(s)) == null ? void 0 : a.css, u = Object.entries(r).reduce((d, [m, v]) => d.push(`${m}="${v}"`) && d, []).join(" ");
981
981
  return l ? `<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${cn(l)}</style>` : "";
982
982
  },
983
983
  createTokens(t = {}, e, n = "", r = "", o = {}) {
@@ -987,31 +987,31 @@ var We = {
987
987
  paths: [],
988
988
  computed(u, d = {}) {
989
989
  if (u) {
990
- const p = this.paths.find((g) => g.scheme === u) || this.paths.find((g) => g.scheme === "none");
991
- return p == null ? void 0 : p.computed(u, d.binding);
990
+ const m = this.paths.find((v) => v.scheme === u) || this.paths.find((v) => v.scheme === "none");
991
+ return m == null ? void 0 : m.computed(u, d.binding);
992
992
  }
993
- return this.paths.map((p) => p.computed(p.scheme, d[p.scheme]));
993
+ return this.paths.map((m) => m.computed(m.scheme, d[m.scheme]));
994
994
  }
995
995
  }), o[s].paths.push({
996
996
  path: l,
997
997
  value: a,
998
998
  scheme: l.includes("colorScheme.light") ? "light" : l.includes("colorScheme.dark") ? "dark" : "none",
999
999
  computed(u, d = {}) {
1000
- const p = /{([^}]*)}/g;
1001
- let g = a;
1002
- if (d.name = this.path, d.binding || (d.binding = {}), ft(a, p)) {
1003
- const I = a.trim().replaceAll(p, (w) => {
1004
- var b, O;
1005
- const B = w.replace(/{|}/g, "");
1006
- return (O = (b = o[B]) == null ? void 0 : b.computed(u, d)) == null ? void 0 : O.value;
1007
- }), A = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g, x = /var\([^)]+\)/g;
1008
- g = ft(I.replace(x, "0"), A) ? `calc(${I})` : I;
1000
+ const m = /{([^}]*)}/g;
1001
+ let v = a;
1002
+ if (d.name = this.path, d.binding || (d.binding = {}), ft(a, m)) {
1003
+ const I = a.trim().replaceAll(m, (w) => {
1004
+ var b, N;
1005
+ const H = w.replace(/{|}/g, "");
1006
+ return (N = (b = o[H]) == null ? void 0 : b.computed(u, d)) == null ? void 0 : N.value;
1007
+ }), A = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g, P = /var\([^)]+\)/g;
1008
+ v = ft(I.replace(P, "0"), A) ? `calc(${I})` : I;
1009
1009
  }
1010
1010
  return It(d.binding) && delete d.binding, {
1011
1011
  colorScheme: u,
1012
1012
  path: this.path,
1013
1013
  paths: d,
1014
- value: g.includes("undefined") ? void 0 : g
1014
+ value: v.includes("undefined") ? void 0 : v
1015
1015
  };
1016
1016
  }
1017
1017
  }));
@@ -1021,8 +1021,8 @@ var We = {
1021
1021
  var r;
1022
1022
  const i = ((l) => l.split(".").filter((d) => !ft(d.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(e), a = e.includes("colorScheme.light") ? "light" : e.includes("colorScheme.dark") ? "dark" : void 0, s = [(r = t[i]) == null ? void 0 : r.computed(a)].flat().filter((l) => l);
1023
1023
  return s.length === 1 ? s[0].value : s.reduce((l = {}, u) => {
1024
- const d = u, { colorScheme: p } = d, g = Zt(d, ["colorScheme"]);
1025
- return l[p] = g, l;
1024
+ const d = u, { colorScheme: m } = d, v = Zt(d, ["colorScheme"]);
1025
+ return l[m] = v, l;
1026
1026
  }, void 0);
1027
1027
  },
1028
1028
  transformCSS(t, e, n, r, o = {}, i, a, s) {
@@ -1030,7 +1030,7 @@ var We = {
1030
1030
  const { cssLayer: l } = o;
1031
1031
  if (r !== "style") {
1032
1032
  const u = this.getColorSchemeOption(o, a), d = s ? an(s, e) : e;
1033
- e = n === "dark" ? u.reduce((p, { selector: g }) => (Q(g) && (p += g.includes("[CSS]") ? g.replace("[CSS]", d) : an(g, d)), p), "") : an(s ?? ":root", e);
1033
+ e = n === "dark" ? u.reduce((m, { selector: v }) => (Q(v) && (m += v.includes("[CSS]") ? v.replace("[CSS]", d) : an(v, d)), m), "") : an(s ?? ":root", e);
1034
1034
  }
1035
1035
  if (l) {
1036
1036
  const u = {
@@ -1228,21 +1228,21 @@ function za(t) {
1228
1228
  }
1229
1229
  var Wa = 0;
1230
1230
  function Ga(t) {
1231
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = oe(!1), r = oe(t), o = oe(null), i = Ea() ? 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, p = d === void 0 ? !1 : d, g = e.name, S = g === void 0 ? "style_".concat(++Wa) : g, I = e.id, A = I === void 0 ? void 0 : I, x = e.media, w = x === void 0 ? void 0 : x, b = e.nonce, O = b === void 0 ? void 0 : b, B = e.first, Y = B === void 0 ? !1 : B, ge = e.onMounted, ae = ge === void 0 ? void 0 : ge, Be = e.onUpdated, ce = Be === void 0 ? void 0 : Be, X = e.onLoad, N = X === void 0 ? void 0 : X, J = e.props, ve = J === void 0 ? {} : J, ye = function() {
1231
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = oe(!1), r = oe(t), o = oe(null), i = Ea() ? 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, v = e.name, S = v === void 0 ? "style_".concat(++Wa) : v, I = e.id, A = I === void 0 ? void 0 : I, P = e.media, w = P === void 0 ? void 0 : P, b = e.nonce, N = b === void 0 ? void 0 : b, H = e.first, Y = H === void 0 ? !1 : H, ge = e.onMounted, le = ge === void 0 ? void 0 : ge, Be = e.onUpdated, ce = Be === void 0 ? void 0 : Be, X = e.onLoad, D = X === void 0 ? void 0 : X, J = e.props, ve = J === void 0 ? {} : J, ye = function() {
1232
1232
  }, Je = function(et) {
1233
1233
  var kt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1234
1234
  if (s) {
1235
- var Fe = Bo(Bo({}, ve), kt), c = Fe.name || S, m = Fe.id || A, y = Fe.nonce || O;
1236
- o.value = s.querySelector('style[data-primevue-style-id="'.concat(c, '"]')) || s.getElementById(m) || s.createElement("style"), o.value.isConnected || (r.value = et || t, Gn(o.value, {
1235
+ var Fe = Bo(Bo({}, ve), kt), c = Fe.name || S, p = Fe.id || A, y = Fe.nonce || N;
1236
+ o.value = s.querySelector('style[data-primevue-style-id="'.concat(c, '"]')) || s.getElementById(p) || s.createElement("style"), o.value.isConnected || (r.value = et || t, Gn(o.value, {
1237
1237
  type: "text/css",
1238
- id: m,
1238
+ id: p,
1239
1239
  media: w,
1240
1240
  nonce: y
1241
1241
  }), Y ? s.head.prepend(o.value) : s.head.appendChild(o.value), Pa(o.value, "data-primevue-style-id", c), Gn(o.value, Fe), o.value.onload = function(T) {
1242
- return N == null ? void 0 : N(T, {
1242
+ return D == null ? void 0 : D(T, {
1243
1243
  name: c
1244
1244
  });
1245
- }, ae == null || ae(c)), !n.value && (ye = Wn(r, function(T) {
1245
+ }, le == null || le(c)), !n.value && (ye = Wn(r, function(T) {
1246
1246
  o.value.textContent = T, ce == null || ce(c);
1247
1247
  }, {
1248
1248
  immediate: !0
@@ -1251,7 +1251,7 @@ function Ga(t) {
1251
1251
  }, ot = function() {
1252
1252
  !s || !n.value || (ye(), Aa(o.value) && s.head.removeChild(o.value), n.value = !1);
1253
1253
  };
1254
- return u && !p && za(Je), {
1254
+ return u && !m && za(Je), {
1255
1255
  id: A,
1256
1256
  name: S,
1257
1257
  el: o,
@@ -1557,8 +1557,8 @@ var tl = function(e) {
1557
1557
  var o = this.name === "base" ? "global-style" : "".concat(this.name, "-style"), i = Ue(this.theme, {
1558
1558
  dt: pr
1559
1559
  }), a = cn(re.transformCSS(o, i)), s = Object.entries(n).reduce(function(l, u) {
1560
- var d = Uo(u, 2), p = d[0], g = d[1];
1561
- return l.push("".concat(p, '="').concat(g, '"')) && l;
1560
+ var d = Uo(u, 2), m = d[0], v = d[1];
1561
+ return l.push("".concat(m, '="').concat(v, '"')) && l;
1562
1562
  }, []).join(" ");
1563
1563
  r.push('<style type="text/css" data-primevue-style-id="'.concat(o, '" ').concat(s, ">").concat(a, "</style>"));
1564
1564
  }
@@ -1713,10 +1713,10 @@ var Qn = {
1713
1713
  scopedStyleEl: void 0,
1714
1714
  rootEl: void 0,
1715
1715
  beforeCreate: function() {
1716
- var e, n, r, o, i, a, s, l, u, d, p, g = (e = this.pt) === null || e === void 0 ? void 0 : e._usept, S = g ? (n = this.pt) === null || n === void 0 || (n = n.originalValue) === null || n === void 0 ? void 0 : n[this.$.type.name] : void 0, I = g ? (r = this.pt) === null || r === void 0 || (r = r.value) === null || r === void 0 ? void 0 : r[this.$.type.name] : this.pt;
1716
+ var e, n, r, o, i, a, s, l, u, d, m, v = (e = this.pt) === null || e === void 0 ? void 0 : e._usept, S = v ? (n = this.pt) === null || n === void 0 || (n = n.originalValue) === null || n === void 0 ? void 0 : n[this.$.type.name] : void 0, I = v ? (r = this.pt) === null || r === void 0 || (r = r.value) === null || r === void 0 ? void 0 : r[this.$.type.name] : this.pt;
1717
1717
  (o = I || S) === null || o === void 0 || (o = o.hooks) === null || o === void 0 || (i = o.onBeforeCreate) === null || i === void 0 || i.call(o);
1718
- var A = (a = this.$primevueConfig) === null || a === void 0 || (a = a.pt) === null || a === void 0 ? void 0 : a._usept, x = A ? (s = this.$primevue) === null || s === void 0 || (s = s.config) === null || s === void 0 || (s = s.pt) === null || s === void 0 ? void 0 : s.originalValue : void 0, w = A ? (l = this.$primevue) === null || l === void 0 || (l = l.config) === null || l === void 0 || (l = l.pt) === null || l === void 0 ? void 0 : l.value : (u = this.$primevue) === null || u === void 0 || (u = u.config) === null || u === void 0 ? void 0 : u.pt;
1719
- (d = w || x) === null || d === void 0 || (d = d[this.$.type.name]) === null || d === void 0 || (d = d.hooks) === null || d === void 0 || (p = d.onBeforeCreate) === null || p === void 0 || p.call(d);
1718
+ var A = (a = this.$primevueConfig) === null || a === void 0 || (a = a.pt) === null || a === void 0 ? void 0 : a._usept, P = A ? (s = this.$primevue) === null || s === void 0 || (s = s.config) === null || s === void 0 || (s = s.pt) === null || s === void 0 ? void 0 : s.originalValue : void 0, w = A ? (l = this.$primevue) === null || l === void 0 || (l = l.config) === null || l === void 0 || (l = l.pt) === null || l === void 0 ? void 0 : l.value : (u = this.$primevue) === null || u === void 0 || (u = u.config) === null || u === void 0 ? void 0 : u.pt;
1719
+ (d = w || P) === null || d === void 0 || (d = d[this.$.type.name]) === null || d === void 0 || (d = d.hooks) === null || d === void 0 || (m = d.onBeforeCreate) === null || m === void 0 || m.call(d);
1720
1720
  },
1721
1721
  created: function() {
1722
1722
  this._hook("onCreated");
@@ -1783,16 +1783,16 @@ var Qn = {
1783
1783
  }, this.$styleOptions)), re.setLoadedStyleName("common");
1784
1784
  }
1785
1785
  if (!re.isStyleNameLoaded((e = this.$style) === null || e === void 0 ? void 0 : e.name) && (n = this.$style) !== null && n !== void 0 && n.name) {
1786
- var l, u, d, p, g = ((l = this.$style) === null || l === void 0 || (u = l.getComponentTheme) === null || u === void 0 ? void 0 : u.call(l)) || {}, S = g.css;
1786
+ var l, u, d, m, v = ((l = this.$style) === null || l === void 0 || (u = l.getComponentTheme) === null || u === void 0 ? void 0 : u.call(l)) || {}, S = v.css;
1787
1787
  (d = this.$style) === null || d === void 0 || d.load(S, G({
1788
1788
  name: "".concat(this.$style.name, "-variables")
1789
- }, this.$styleOptions)), (p = this.$style) === null || p === void 0 || p.loadTheme(G({
1789
+ }, this.$styleOptions)), (m = this.$style) === null || m === void 0 || m.loadTheme(G({
1790
1790
  name: "".concat(this.$style.name, "-style")
1791
1791
  }, this.$styleOptions)), re.setLoadedStyleName(this.$style.name);
1792
1792
  }
1793
1793
  if (!re.isStyleNameLoaded("layer-order")) {
1794
- var I, A, x = (I = this.$style) === null || I === void 0 || (A = I.getLayerOrderThemeCSS) === null || A === void 0 ? void 0 : A.call(I);
1795
- Pe.load(x, G({
1794
+ var I, A, P = (I = this.$style) === null || I === void 0 || (A = I.getLayerOrderThemeCSS) === null || A === void 0 ? void 0 : A.call(I);
1795
+ Pe.load(P, G({
1796
1796
  name: "layer-order",
1797
1797
  first: !0
1798
1798
  }, this.$styleOptions)), re.setLoadedStyleName("layer-order");
@@ -1826,10 +1826,10 @@ var Qn = {
1826
1826
  return Kr(e, n, r);
1827
1827
  },
1828
1828
  _getPTValue: function() {
1829
- var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, a = /./g.test(r) && !!o[r.split(".")[0]], s = this._getPropValue("ptOptions") || ((e = this.$primevueConfig) === null || e === void 0 ? void 0 : e.ptOptions) || {}, l = s.mergeSections, u = l === void 0 ? !0 : l, d = s.mergeProps, p = d === void 0 ? !1 : d, g = i ? a ? this._useGlobalPT(this._getPTClassValue, r, o) : this._useDefaultPT(this._getPTClassValue, r, o) : void 0, S = a ? void 0 : this._getPTSelf(n, this._getPTClassValue, r, G(G({}, o), {}, {
1830
- global: g || {}
1829
+ var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, a = /./g.test(r) && !!o[r.split(".")[0]], s = this._getPropValue("ptOptions") || ((e = this.$primevueConfig) === null || e === void 0 ? void 0 : e.ptOptions) || {}, l = s.mergeSections, u = l === void 0 ? !0 : l, d = s.mergeProps, m = d === void 0 ? !1 : d, v = i ? a ? this._useGlobalPT(this._getPTClassValue, r, o) : this._useDefaultPT(this._getPTClassValue, r, o) : void 0, S = a ? void 0 : this._getPTSelf(n, this._getPTClassValue, r, G(G({}, o), {}, {
1830
+ global: v || {}
1831
1831
  })), I = this._getPTDatasets(r);
1832
- return u || !u && S ? p ? this._mergeProps(p, g, S, I) : G(G(G({}, g), S), I) : G(G({}, S), I);
1832
+ return u || !u && S ? m ? this._mergeProps(m, v, S, I) : G(G(G({}, v), S), I) : G(G({}, S), I);
1833
1833
  },
1834
1834
  _getPTSelf: function() {
1835
1835
  for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
@@ -1853,8 +1853,8 @@ var Qn = {
1853
1853
  },
1854
1854
  _getPT: function(e) {
1855
1855
  var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 ? arguments[2] : void 0, i = function(s) {
1856
- var l, u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, d = o ? o(s) : s, p = Ye(r), g = Ye(n.$name);
1857
- return (l = u ? p !== g ? d == null ? void 0 : d[p] : void 0 : d == null ? void 0 : d[p]) !== null && l !== void 0 ? l : d;
1856
+ var l, u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, d = o ? o(s) : s, m = Ye(r), v = Ye(n.$name);
1857
+ return (l = u ? m !== v ? d == null ? void 0 : d[m] : void 0 : d == null ? void 0 : d[m]) !== null && l !== void 0 ? l : d;
1858
1858
  };
1859
1859
  return e != null && e.hasOwnProperty("_usept") ? {
1860
1860
  _usept: e._usept,
@@ -1867,8 +1867,8 @@ var Qn = {
1867
1867
  return n(A, r, o);
1868
1868
  };
1869
1869
  if (e != null && e.hasOwnProperty("_usept")) {
1870
- var a, s = e._usept || ((a = this.$primevueConfig) === null || a === void 0 ? void 0 : a.ptOptions) || {}, l = s.mergeSections, u = l === void 0 ? !0 : l, d = s.mergeProps, p = d === void 0 ? !1 : d, g = i(e.originalValue), S = i(e.value);
1871
- return g === void 0 && S === void 0 ? void 0 : Re(S) ? S : Re(g) ? g : u || !u && S ? p ? this._mergeProps(p, g, S) : G(G({}, g), S) : S;
1870
+ var a, s = e._usept || ((a = this.$primevueConfig) === null || a === void 0 ? void 0 : a.ptOptions) || {}, l = s.mergeSections, u = l === void 0 ? !0 : l, d = s.mergeProps, m = d === void 0 ? !1 : d, v = i(e.originalValue), S = i(e.value);
1871
+ return v === void 0 && S === void 0 ? void 0 : Re(S) ? S : Re(v) ? v : u || !u && S ? m ? this._mergeProps(m, v, S) : G(G({}, v), S) : S;
1872
1872
  }
1873
1873
  return i(e);
1874
1874
  },
@@ -1973,8 +1973,8 @@ var Qn = {
1973
1973
  return r == null ? void 0 : r.startsWith("pt:");
1974
1974
  }).reduce(function(e, n) {
1975
1975
  var r = Dn(n, 2), o = r[0], i = r[1], a = o.split(":"), s = il(a), l = s.slice(1);
1976
- return l == null || l.reduce(function(u, d, p, g) {
1977
- return !u[d] && (u[d] = p === g.length - 1 ? i : {}), u[d];
1976
+ return l == null || l.reduce(function(u, d, m, v) {
1977
+ return !u[d] && (u[d] = m === v.length - 1 ? i : {}), u[d];
1978
1978
  }, e), e;
1979
1979
  }, {});
1980
1980
  },
@@ -2110,12 +2110,12 @@ var Ki = {
2110
2110
  }, Wr = {
2111
2111
  name: "ChevronDownIcon",
2112
2112
  extends: Ki
2113
- }, hl = /* @__PURE__ */ M("path", {
2113
+ }, hl = /* @__PURE__ */ $("path", {
2114
2114
  d: "M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",
2115
2115
  fill: "currentColor"
2116
2116
  }, null, -1), gl = [hl];
2117
2117
  function vl(t, e, n, r, o, i) {
2118
- return $(), H("svg", W({
2118
+ return O(), U("svg", W({
2119
2119
  width: "14",
2120
2120
  height: "14",
2121
2121
  viewBox: "0 0 14 14",
@@ -2127,12 +2127,12 @@ Wr.render = vl;
2127
2127
  var Gr = {
2128
2128
  name: "ChevronRightIcon",
2129
2129
  extends: Ki
2130
- }, yl = /* @__PURE__ */ M("path", {
2130
+ }, yl = /* @__PURE__ */ $("path", {
2131
2131
  d: "M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",
2132
2132
  fill: "currentColor"
2133
2133
  }, null, -1), bl = [yl];
2134
2134
  function wl(t, e, n, r, o, i) {
2135
- return $(), H("svg", W({
2135
+ return O(), U("svg", W({
2136
2136
  width: "14",
2137
2137
  height: "14",
2138
2138
  viewBox: "0 0 14 14",
@@ -2424,10 +2424,10 @@ var K = {
2424
2424
  return Re(b) || zr(b) ? {
2425
2425
  class: b
2426
2426
  } : b;
2427
- }, u = ((e = r.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((n = r.$primevueConfig) === null || n === void 0 ? void 0 : n.ptOptions) || {}, d = u.mergeSections, p = d === void 0 ? !0 : d, g = u.mergeProps, S = g === void 0 ? !1 : g, I = s ? K._useDefaultPT(r, r.defaultPT(), l, i, a) : void 0, A = K._usePT(r, K._getPT(o, r.$name), l, i, Z(Z({}, a), {}, {
2427
+ }, u = ((e = r.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((n = r.$primevueConfig) === null || n === void 0 ? void 0 : n.ptOptions) || {}, d = u.mergeSections, m = d === void 0 ? !0 : d, v = u.mergeProps, S = v === void 0 ? !1 : v, I = s ? K._useDefaultPT(r, r.defaultPT(), l, i, a) : void 0, A = K._usePT(r, K._getPT(o, r.$name), l, i, Z(Z({}, a), {}, {
2428
2428
  global: I || {}
2429
- })), x = K._getPTDatasets(r, i);
2430
- return p || !p && A ? S ? K._mergeProps(r, S, I, A, x) : Z(Z(Z({}, I), A), x) : Z(Z({}, A), x);
2429
+ })), P = K._getPTDatasets(r, i);
2430
+ return m || !m && A ? S ? K._mergeProps(r, S, I, A, P) : Z(Z(Z({}, I), A), P) : Z(Z({}, A), P);
2431
2431
  },
2432
2432
  _getPTDatasets: function() {
2433
2433
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = "data-pc-";
@@ -2445,12 +2445,12 @@ var K = {
2445
2445
  } : o(e);
2446
2446
  },
2447
2447
  _usePT: function() {
2448
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0, o = arguments.length > 3 ? arguments[3] : void 0, i = arguments.length > 4 ? arguments[4] : void 0, a = function(x) {
2449
- return r(x, o, i);
2448
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0, o = arguments.length > 3 ? arguments[3] : void 0, i = arguments.length > 4 ? arguments[4] : void 0, a = function(P) {
2449
+ return r(P, o, i);
2450
2450
  };
2451
2451
  if (n != null && n.hasOwnProperty("_usept")) {
2452
- var s, l = n._usept || ((s = e.$primevueConfig) === null || s === void 0 ? void 0 : s.ptOptions) || {}, u = l.mergeSections, d = u === void 0 ? !0 : u, p = l.mergeProps, g = p === void 0 ? !1 : p, S = a(n.originalValue), I = a(n.value);
2453
- return S === void 0 && I === void 0 ? void 0 : Re(I) ? I : Re(S) ? S : d || !d && I ? g ? K._mergeProps(e, g, S, I) : Z(Z({}, S), I) : I;
2452
+ var s, l = n._usept || ((s = e.$primevueConfig) === null || s === void 0 ? void 0 : s.ptOptions) || {}, u = l.mergeSections, d = u === void 0 ? !0 : u, m = l.mergeProps, v = m === void 0 ? !1 : m, S = a(n.originalValue), I = a(n.value);
2453
+ return S === void 0 && I === void 0 ? void 0 : Re(I) ? I : Re(S) ? S : d || !d && I ? v ? K._mergeProps(e, v, S, I) : Z(Z({}, S), I) : I;
2454
2454
  }
2455
2455
  return a(n);
2456
2456
  },
@@ -2487,15 +2487,15 @@ var K = {
2487
2487
  }, o)), re.setLoadedStyleName("common");
2488
2488
  }
2489
2489
  if (!re.isStyleNameLoaded((e = r.$style) === null || e === void 0 ? void 0 : e.name) && (n = r.$style) !== null && n !== void 0 && n.name) {
2490
- var d, p, g, S, I = ((d = r.$style) === null || d === void 0 || (p = d.getDirectiveTheme) === null || p === void 0 ? void 0 : p.call(d)) || {}, A = I.css;
2491
- (g = r.$style) === null || g === void 0 || g.load(A, Z({
2490
+ var d, m, v, S, I = ((d = r.$style) === null || d === void 0 || (m = d.getDirectiveTheme) === null || m === void 0 ? void 0 : m.call(d)) || {}, A = I.css;
2491
+ (v = r.$style) === null || v === void 0 || v.load(A, Z({
2492
2492
  name: "".concat(r.$style.name, "-variables")
2493
2493
  }, o)), (S = r.$style) === null || S === void 0 || S.loadTheme(Z({
2494
2494
  name: "".concat(r.$style.name, "-style")
2495
2495
  }, o)), re.setLoadedStyleName(r.$style.name);
2496
2496
  }
2497
2497
  if (!re.isStyleNameLoaded("layer-order")) {
2498
- var x, w, b = (x = r.$style) === null || x === void 0 || (w = x.getLayerOrderThemeCSS) === null || w === void 0 ? void 0 : w.call(x);
2498
+ var P, w, b = (P = r.$style) === null || P === void 0 || (w = P.getLayerOrderThemeCSS) === null || w === void 0 ? void 0 : w.call(P);
2499
2499
  Pe.load(b, Z({
2500
2500
  name: "layer-order",
2501
2501
  first: !0
@@ -2518,13 +2518,13 @@ var K = {
2518
2518
  vt.clearLoadedStyleNames(), ut.on("theme:change", e);
2519
2519
  },
2520
2520
  _hook: function(e, n, r, o, i, a) {
2521
- var s, l, u = "on".concat(xa(n)), d = K._getConfig(o, i), p = r == null ? void 0 : r.$instance, g = K._usePT(p, K._getPT(o == null || (s = o.value) === null || s === void 0 ? void 0 : s.pt, e), K._getOptionValue, "hooks.".concat(u)), S = K._useDefaultPT(p, d == null || (l = d.pt) === null || l === void 0 || (l = l.directives) === null || l === void 0 ? void 0 : l[e], K._getOptionValue, "hooks.".concat(u)), I = {
2521
+ var s, l, u = "on".concat(xa(n)), d = K._getConfig(o, i), m = r == null ? void 0 : r.$instance, v = K._usePT(m, K._getPT(o == null || (s = o.value) === null || s === void 0 ? void 0 : s.pt, e), K._getOptionValue, "hooks.".concat(u)), S = K._useDefaultPT(m, d == null || (l = d.pt) === null || l === void 0 || (l = l.directives) === null || l === void 0 ? void 0 : l[e], K._getOptionValue, "hooks.".concat(u)), I = {
2522
2522
  el: r,
2523
2523
  binding: o,
2524
2524
  vnode: i,
2525
2525
  prevVnode: a
2526
2526
  };
2527
- g == null || g(p, I), S == null || S(p, I);
2527
+ v == null || v(m, I), S == null || S(m, I);
2528
2528
  },
2529
2529
  _mergeProps: function() {
2530
2530
  for (var e = arguments.length > 1 ? arguments[1] : void 0, n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), o = 2; o < n; o++)
@@ -2533,9 +2533,9 @@ var K = {
2533
2533
  },
2534
2534
  _extend: function(e) {
2535
2535
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = function(a, s, l, u, d) {
2536
- var p, g, S;
2536
+ var m, v, S;
2537
2537
  s._$instances = s._$instances || {};
2538
- var I = K._getConfig(l, u), A = s._$instances[e] || {}, x = It(A) ? Z(Z({}, n), n == null ? void 0 : n.methods) : {};
2538
+ var I = K._getConfig(l, u), A = s._$instances[e] || {}, P = It(A) ? Z(Z({}, n), n == null ? void 0 : n.methods) : {};
2539
2539
  s._$instances[e] = Z(Z({}, A), {}, {
2540
2540
  /* new instance variables to pass in directive methods */
2541
2541
  $name: e,
@@ -2559,13 +2559,13 @@ var K = {
2559
2559
  /* computed instance variables */
2560
2560
  defaultPT: function() {
2561
2561
  return K._getPT(I == null ? void 0 : I.pt, void 0, function(b) {
2562
- var O;
2563
- return b == null || (O = b.directives) === null || O === void 0 ? void 0 : O[e];
2562
+ var N;
2563
+ return b == null || (N = b.directives) === null || N === void 0 ? void 0 : N[e];
2564
2564
  });
2565
2565
  },
2566
2566
  isUnstyled: function() {
2567
- var b, O;
2568
- return ((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) !== void 0 ? (O = s.$instance) === null || O === void 0 || (O = O.$binding) === null || O === void 0 || (O = O.value) === null || O === void 0 ? void 0 : O.unstyled : I == null ? void 0 : I.unstyled;
2567
+ var b, N;
2568
+ return ((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) !== void 0 ? (N = s.$instance) === null || N === void 0 || (N = N.$binding) === null || N === void 0 || (N = N.value) === null || N === void 0 ? void 0 : N.unstyled : I == null ? void 0 : I.unstyled;
2569
2569
  },
2570
2570
  theme: function() {
2571
2571
  var b;
@@ -2577,33 +2577,33 @@ var K = {
2577
2577
  },
2578
2578
  /* instance's methods */
2579
2579
  ptm: function() {
2580
- var b, O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2581
- return K._getPTValue(s.$instance, (b = s.$instance) === null || b === void 0 || (b = b.$binding) === null || b === void 0 || (b = b.value) === null || b === void 0 ? void 0 : b.pt, O, Z({}, B));
2580
+ var b, N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2581
+ return K._getPTValue(s.$instance, (b = s.$instance) === null || b === void 0 || (b = b.$binding) === null || b === void 0 || (b = b.value) === null || b === void 0 ? void 0 : b.pt, N, Z({}, H));
2582
2582
  },
2583
2583
  ptmo: function() {
2584
- var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", B = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2585
- return K._getPTValue(s.$instance, b, O, B, !1);
2584
+ var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", H = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2585
+ return K._getPTValue(s.$instance, b, N, H, !1);
2586
2586
  },
2587
2587
  cx: function() {
2588
- var b, O, B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2589
- return (b = s.$instance) !== null && b !== void 0 && b.isUnstyled() ? void 0 : K._getOptionValue((O = s.$instance) === null || O === void 0 || (O = O.$style) === null || O === void 0 ? void 0 : O.classes, B, Z({}, Y));
2588
+ var b, N, H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2589
+ return (b = s.$instance) !== null && b !== void 0 && b.isUnstyled() ? void 0 : K._getOptionValue((N = s.$instance) === null || N === void 0 || (N = N.$style) === null || N === void 0 ? void 0 : N.classes, H, Z({}, Y));
2590
2590
  },
2591
2591
  sx: function() {
2592
- var b, O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2593
- return B ? K._getOptionValue((b = s.$instance) === null || b === void 0 || (b = b.$style) === null || b === void 0 ? void 0 : b.inlineStyles, O, Z({}, Y)) : void 0;
2592
+ var b, N = 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] : {};
2593
+ return H ? K._getOptionValue((b = s.$instance) === null || b === void 0 || (b = b.$style) === null || b === void 0 ? void 0 : b.inlineStyles, N, Z({}, Y)) : void 0;
2594
2594
  }
2595
- }, x), s.$instance = s._$instances[e], (p = (g = s.$instance)[a]) === null || p === void 0 || p.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({}, (S = s.$pd) === null || S === void 0 ? void 0 : S[e]), {}, {
2595
+ }, P), s.$instance = s._$instances[e], (m = (v = s.$instance)[a]) === null || m === void 0 || m.call(v, 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({}, (S = s.$pd) === null || S === void 0 ? void 0 : S[e]), {}, {
2596
2596
  name: e,
2597
2597
  instance: s.$instance
2598
2598
  });
2599
2599
  }, o = function(a) {
2600
- var s, l, u, d, p, g = (s = a.$instance) === null || s === void 0 ? void 0 : s.watch;
2601
- g == null || (l = g.config) === null || l === void 0 || l.call(a.$instance, (u = a.$instance) === null || u === void 0 ? void 0 : u.$primevueConfig), Go.on("config:change", function(S) {
2602
- var I, A = S.newValue, x = S.oldValue;
2603
- return g == null || (I = g.config) === null || I === void 0 ? void 0 : I.call(a.$instance, A, x);
2604
- }), g == null || (d = g["config.ripple"]) === null || d === void 0 || d.call(a.$instance, (p = a.$instance) === null || p === void 0 || (p = p.$primevueConfig) === null || p === void 0 ? void 0 : p.ripple), Go.on("config:ripple:change", function(S) {
2605
- var I, A = S.newValue, x = S.oldValue;
2606
- return g == null || (I = g["config.ripple"]) === null || I === void 0 ? void 0 : I.call(a.$instance, A, x);
2600
+ var s, l, u, d, m, v = (s = a.$instance) === null || s === void 0 ? void 0 : s.watch;
2601
+ v == null || (l = v.config) === null || l === void 0 || l.call(a.$instance, (u = a.$instance) === null || u === void 0 ? void 0 : u.$primevueConfig), Go.on("config:change", function(S) {
2602
+ var I, A = S.newValue, P = S.oldValue;
2603
+ return v == null || (I = v.config) === null || I === void 0 ? void 0 : I.call(a.$instance, A, P);
2604
+ }), v == null || (d = v["config.ripple"]) === null || d === void 0 || d.call(a.$instance, (m = a.$instance) === null || m === void 0 || (m = m.$primevueConfig) === null || m === void 0 ? void 0 : m.ripple), Go.on("config:ripple:change", function(S) {
2605
+ var I, A = S.newValue, P = S.oldValue;
2606
+ return v == null || (I = v["config.ripple"]) === null || I === void 0 ? void 0 : I.call(a.$instance, A, P);
2607
2607
  });
2608
2608
  };
2609
2609
  return {
@@ -2939,13 +2939,13 @@ var jl = $l.extend("ripple", {
2939
2939
  }, Vl = ["tabindex"], Kl = ["id", "aria-label", "aria-expanded", "aria-level", "aria-setsize", "aria-posinset", "data-p-focused", "data-p-disabled"], zl = ["onClick", "onMousemove"], Wl = ["href", "target"];
2940
2940
  function Gl(t, e, n, r, o, i) {
2941
2941
  var a = Sn("PanelMenuSub", !0), s = qs("ripple");
2942
- return $(), H("ul", {
2942
+ return O(), U("ul", {
2943
2943
  class: ee(t.cx("submenu")),
2944
2944
  tabindex: n.tabindex
2945
- }, [($(!0), H(Xe, null, Ur(n.items, function(l, u) {
2946
- return $(), H(Xe, {
2945
+ }, [(O(!0), U(Xe, null, Ur(n.items, function(l, u) {
2946
+ return O(), U(Xe, {
2947
2947
  key: i.getItemKey(l)
2948
- }, [i.isItemVisible(l) && !i.getItemProp(l, "separator") ? ($(), H("li", W({
2948
+ }, [i.isItemVisible(l) && !i.getItemProp(l, "separator") ? (O(), U("li", W({
2949
2949
  key: 0,
2950
2950
  id: i.getItemId(l),
2951
2951
  class: [t.cx("item", {
@@ -2962,16 +2962,16 @@ function Gl(t, e, n, r, o, i) {
2962
2962
  }, i.getPTOptions("item", l, u), {
2963
2963
  "data-p-focused": i.isItemFocused(l),
2964
2964
  "data-p-disabled": i.isItemDisabled(l)
2965
- }), [M("div", W({
2965
+ }), [$("div", W({
2966
2966
  class: t.cx("itemContent"),
2967
- onClick: function(p) {
2968
- return i.onItemClick(p, l);
2967
+ onClick: function(m) {
2968
+ return i.onItemClick(m, l);
2969
2969
  },
2970
- onMousemove: function(p) {
2971
- return i.onItemMouseMove(p, l);
2970
+ onMousemove: function(m) {
2971
+ return i.onItemMouseMove(m, l);
2972
2972
  },
2973
2973
  ref_for: !0
2974
- }, i.getPTOptions("itemContent", l, u)), [n.templates.item ? ($(), pe(yt(n.templates.item), {
2974
+ }, i.getPTOptions("itemContent", l, u)), [n.templates.item ? (O(), pe(yt(n.templates.item), {
2975
2975
  key: 1,
2976
2976
  item: l.item,
2977
2977
  root: !1,
@@ -2979,33 +2979,33 @@ function Gl(t, e, n, r, o, i) {
2979
2979
  hasSubmenu: i.isItemGroup(l),
2980
2980
  label: i.getItemLabel(l),
2981
2981
  props: i.getMenuItemProps(l, u)
2982
- }, null, 8, ["item", "active", "hasSubmenu", "label", "props"])) : Tr(($(), H("a", W({
2982
+ }, null, 8, ["item", "active", "hasSubmenu", "label", "props"])) : Tr((O(), U("a", W({
2983
2983
  key: 0,
2984
2984
  href: i.getItemProp(l, "url"),
2985
2985
  class: t.cx("itemLink"),
2986
2986
  target: i.getItemProp(l, "target"),
2987
2987
  tabindex: "-1",
2988
2988
  ref_for: !0
2989
- }, i.getPTOptions("itemLink", l, u)), [i.isItemGroup(l) ? ($(), H(Xe, {
2989
+ }, i.getPTOptions("itemLink", l, u)), [i.isItemGroup(l) ? (O(), U(Xe, {
2990
2990
  key: 0
2991
- }, [n.templates.submenuicon ? ($(), pe(yt(n.templates.submenuicon), W({
2991
+ }, [n.templates.submenuicon ? (O(), pe(yt(n.templates.submenuicon), W({
2992
2992
  key: 0,
2993
2993
  class: t.cx("submenuIcon"),
2994
2994
  active: i.isItemActive(l),
2995
2995
  ref_for: !0
2996
- }, i.getPTOptions("submenuIcon", l, u)), null, 16, ["class", "active"])) : ($(), pe(yt(i.isItemActive(l) ? "ChevronDownIcon" : "ChevronRightIcon"), W({
2996
+ }, i.getPTOptions("submenuIcon", l, u)), null, 16, ["class", "active"])) : (O(), pe(yt(i.isItemActive(l) ? "ChevronDownIcon" : "ChevronRightIcon"), W({
2997
2997
  key: 1,
2998
2998
  class: t.cx("submenuIcon"),
2999
2999
  ref_for: !0
3000
- }, i.getPTOptions("submenuIcon", l, u)), null, 16, ["class"]))], 64)) : se("", !0), n.templates.itemicon ? ($(), pe(yt(n.templates.itemicon), {
3000
+ }, i.getPTOptions("submenuIcon", l, u)), null, 16, ["class"]))], 64)) : se("", !0), n.templates.itemicon ? (O(), pe(yt(n.templates.itemicon), {
3001
3001
  key: 1,
3002
3002
  item: l.item,
3003
3003
  class: ee(t.cx("itemIcon"))
3004
- }, null, 8, ["item", "class"])) : i.getItemProp(l, "icon") ? ($(), H("span", W({
3004
+ }, null, 8, ["item", "class"])) : i.getItemProp(l, "icon") ? (O(), U("span", W({
3005
3005
  key: 2,
3006
3006
  class: [t.cx("itemIcon"), i.getItemProp(l, "icon")],
3007
3007
  ref_for: !0
3008
- }, i.getPTOptions("itemIcon", l, u)), null, 16)) : se("", !0), M("span", W({
3008
+ }, i.getPTOptions("itemIcon", l, u)), null, 16)) : se("", !0), $("span", W({
3009
3009
  class: t.cx("itemLabel"),
3010
3010
  ref_for: !0
3011
3011
  }, i.getPTOptions("itemLabel", l, u)), $e(i.getItemLabel(l)), 17)], 16, Wl)), [[s]])], 16, zl), Ee(jr, W({
@@ -3013,10 +3013,10 @@ function Gl(t, e, n, r, o, i) {
3013
3013
  ref_for: !0
3014
3014
  }, t.ptm("transition")), {
3015
3015
  default: pt(function() {
3016
- return [Tr(M("div", W({
3016
+ return [Tr($("div", W({
3017
3017
  class: t.cx("contentContainer"),
3018
3018
  ref_for: !0
3019
- }, t.ptm("contentContainer")), [i.isItemVisible(l) && i.isItemGroup(l) ? ($(), pe(a, W({
3019
+ }, t.ptm("contentContainer")), [i.isItemVisible(l) && i.isItemGroup(l) ? (O(), pe(a, W({
3020
3020
  key: 0,
3021
3021
  id: i.getItemId(l) + "_list",
3022
3022
  role: "group",
@@ -3036,7 +3036,7 @@ function Gl(t, e, n, r, o, i) {
3036
3036
  }, t.ptm("submenu")), null, 16, ["id", "panelId", "focusedItemId", "items", "level", "templates", "activeItemPath", "onItemToggle", "pt", "unstyled"])) : se("", !0)], 16), [[xi, i.isItemActive(l)]])];
3037
3037
  }),
3038
3038
  _: 2
3039
- }, 1040)], 16, Kl)) : se("", !0), i.isItemVisible(l) && i.getItemProp(l, "separator") ? ($(), H("li", W({
3039
+ }, 1040)], 16, Kl)) : se("", !0), i.isItemVisible(l) && i.getItemProp(l, "separator") ? (O(), U("li", W({
3040
3040
  key: 1,
3041
3041
  style: i.getItemProp(l, "style"),
3042
3042
  class: [t.cx("separator"), i.getItemProp(l, "class")],
@@ -3414,7 +3414,7 @@ var Wi = {
3414
3414
  };
3415
3415
  function Ql(t, e, n, r, o, i) {
3416
3416
  var a = Sn("PanelMenuSub");
3417
- return $(), pe(a, W({
3417
+ return O(), pe(a, W({
3418
3418
  id: n.panelId + "_list",
3419
3419
  class: t.cx("rootList"),
3420
3420
  role: "tree",
@@ -3663,18 +3663,18 @@ var Gi = {
3663
3663
  }, oc = ["id"], ic = ["id", "tabindex", "aria-label", "aria-expanded", "aria-controls", "aria-disabled", "onClick", "onKeydown", "data-p-active", "data-p-disabled"], sc = ["href"], ac = ["id", "aria-labelledby"];
3664
3664
  function lc(t, e, n, r, o, i) {
3665
3665
  var a = Sn("PanelMenuList");
3666
- return $(), H("div", W({
3666
+ return O(), U("div", W({
3667
3667
  id: o.id,
3668
3668
  class: t.cx("root")
3669
- }, t.ptmi("root")), [($(!0), H(Xe, null, Ur(t.model, function(s, l) {
3670
- return $(), H(Xe, {
3669
+ }, t.ptmi("root")), [(O(!0), U(Xe, null, Ur(t.model, function(s, l) {
3670
+ return O(), U(Xe, {
3671
3671
  key: i.getPanelKey(l)
3672
- }, [i.isItemVisible(s) ? ($(), H("div", W({
3672
+ }, [i.isItemVisible(s) ? (O(), U("div", W({
3673
3673
  key: 0,
3674
3674
  style: i.getItemProp(s, "style"),
3675
3675
  class: [t.cx("panel"), i.getItemProp(s, "class")],
3676
3676
  ref_for: !0
3677
- }, t.ptm("panel")), [M("div", W({
3677
+ }, t.ptm("panel")), [$("div", W({
3678
3678
  id: i.getHeaderId(l),
3679
3679
  class: [t.cx("header", {
3680
3680
  item: s
@@ -3695,10 +3695,10 @@ function lc(t, e, n, r, o, i) {
3695
3695
  }, i.getPTOptions("header", s, l), {
3696
3696
  "data-p-active": i.isItemActive(s),
3697
3697
  "data-p-disabled": i.isItemDisabled(s)
3698
- }), [M("div", W({
3698
+ }), [$("div", W({
3699
3699
  class: t.cx("headerContent"),
3700
3700
  ref_for: !0
3701
- }, i.getPTOptions("headerContent", s, l)), [t.$slots.item ? ($(), pe(yt(t.$slots.item), {
3701
+ }, i.getPTOptions("headerContent", s, l)), [t.$slots.item ? (O(), pe(yt(t.$slots.item), {
3702
3702
  key: 1,
3703
3703
  item: s,
3704
3704
  root: !0,
@@ -3706,7 +3706,7 @@ function lc(t, e, n, r, o, i) {
3706
3706
  hasSubmenu: i.getItemProp(s, "items"),
3707
3707
  label: i.getItemLabel(s),
3708
3708
  props: i.getMenuItemProps(s, l)
3709
- }, null, 8, ["item", "active", "hasSubmenu", "label", "props"])) : ($(), H("a", W({
3709
+ }, null, 8, ["item", "active", "hasSubmenu", "label", "props"])) : (O(), U("a", W({
3710
3710
  key: 0,
3711
3711
  href: i.getItemProp(s, "url"),
3712
3712
  class: t.cx("headerLink"),
@@ -3716,19 +3716,19 @@ function lc(t, e, n, r, o, i) {
3716
3716
  key: 0,
3717
3717
  active: i.isItemActive(s)
3718
3718
  }, function() {
3719
- return [($(), pe(yt(i.isItemActive(s) ? "ChevronDownIcon" : "ChevronRightIcon"), W({
3719
+ return [(O(), pe(yt(i.isItemActive(s) ? "ChevronDownIcon" : "ChevronRightIcon"), W({
3720
3720
  class: t.cx("submenuIcon"),
3721
3721
  ref_for: !0
3722
3722
  }, i.getPTOptions("submenuIcon", s, l)), null, 16, ["class"]))];
3723
- }) : se("", !0), t.$slots.headericon ? ($(), pe(yt(t.$slots.headericon), {
3723
+ }) : se("", !0), t.$slots.headericon ? (O(), pe(yt(t.$slots.headericon), {
3724
3724
  key: 1,
3725
3725
  item: s,
3726
3726
  class: ee([t.cx("headerIcon"), i.getItemProp(s, "icon")])
3727
- }, null, 8, ["item", "class"])) : i.getItemProp(s, "icon") ? ($(), H("span", W({
3727
+ }, null, 8, ["item", "class"])) : i.getItemProp(s, "icon") ? (O(), U("span", W({
3728
3728
  key: 2,
3729
3729
  class: [t.cx("headerIcon"), i.getItemProp(s, "icon")],
3730
3730
  ref_for: !0
3731
- }, i.getPTOptions("headerIcon", s, l)), null, 16)) : se("", !0), M("span", W({
3731
+ }, i.getPTOptions("headerIcon", s, l)), null, 16)) : se("", !0), $("span", W({
3732
3732
  class: t.cx("headerLabel"),
3733
3733
  ref_for: !0
3734
3734
  }, i.getPTOptions("headerLabel", s, l)), $e(i.getItemLabel(s)), 17)], 16, sc))], 16)], 16, ic), Ee(jr, W({
@@ -3736,13 +3736,13 @@ function lc(t, e, n, r, o, i) {
3736
3736
  ref_for: !0
3737
3737
  }, t.ptm("transition")), {
3738
3738
  default: pt(function() {
3739
- return [Tr(M("div", W({
3739
+ return [Tr($("div", W({
3740
3740
  id: i.getContentId(l),
3741
3741
  class: t.cx("contentContainer"),
3742
3742
  role: "region",
3743
3743
  "aria-labelledby": i.getHeaderId(l),
3744
3744
  ref_for: !0
3745
- }, t.ptm("contentContainer")), [i.getItemProp(s, "items") ? ($(), H("div", W({
3745
+ }, t.ptm("contentContainer")), [i.getItemProp(s, "items") ? (O(), U("div", W({
3746
3746
  key: 0,
3747
3747
  class: t.cx("content"),
3748
3748
  ref_for: !0
@@ -3787,51 +3787,51 @@ const cc = { class: "panel-menu-wrapper select-none" }, uc = ["data-active", "on
3787
3787
  }, o = (i) => typeof i.label == "function" ? i.label() : i.label ?? "Item";
3788
3788
  return (i, a) => {
3789
3789
  const s = Sn("router-link");
3790
- return $(), H("div", cc, [
3791
- Ee(le(Gi), {
3790
+ return O(), U("div", cc, [
3791
+ Ee(ae(Gi), {
3792
3792
  model: e.items,
3793
3793
  unstyled: !0
3794
3794
  }, {
3795
3795
  item: pt(({ item: l, active: u }) => [
3796
- l.to ? ($(), pe(s, {
3796
+ l.to ? (O(), pe(s, {
3797
3797
  key: 0,
3798
3798
  to: l.to,
3799
3799
  custom: ""
3800
3800
  }, {
3801
- default: pt(({ navigate: d, isActive: p }) => [
3802
- M("a", {
3801
+ default: pt(({ navigate: d, isActive: m }) => [
3802
+ $("a", {
3803
3803
  class: ee([
3804
3804
  "item-menu",
3805
3805
  {
3806
3806
  disabled: l.disabled
3807
3807
  }
3808
3808
  ]),
3809
- "data-active": p,
3810
- onClick: Ir((g) => n(l, d), ["prevent"])
3809
+ "data-active": m,
3810
+ onClick: Ir((v) => n(l, d), ["prevent"])
3811
3811
  }, [
3812
- l.icon ? ($(), H("span", dc, $e(l.icon), 1)) : se("", !0),
3813
- M("span", {
3812
+ l.icon ? (O(), U("span", dc, $e(l.icon), 1)) : se("", !0),
3813
+ $("span", {
3814
3814
  textContent: $e(o(l))
3815
3815
  }, null, 8, fc)
3816
3816
  ], 10, uc)
3817
3817
  ]),
3818
3818
  _: 2
3819
- }, 1032, ["to"])) : typeof l.command == "function" ? ($(), H("span", {
3819
+ }, 1032, ["to"])) : typeof l.command == "function" ? (O(), U("span", {
3820
3820
  key: 1,
3821
3821
  class: ee(["item-menu", { disabled: l.disabled }]),
3822
3822
  onClick: Ir((d) => r(d, l), ["stop"])
3823
3823
  }, [
3824
- l.icon ? ($(), H("span", pc, $e(l.icon), 1)) : se("", !0),
3825
- M("span", {
3824
+ l.icon ? (O(), U("span", pc, $e(l.icon), 1)) : se("", !0),
3825
+ $("span", {
3826
3826
  textContent: $e(o(l))
3827
3827
  }, null, 8, hc)
3828
- ], 10, mc)) : ($(), H("a", gc, [
3829
- l.icon ? ($(), H("span", vc, $e(l.icon), 1)) : se("", !0),
3830
- M("span", {
3828
+ ], 10, mc)) : (O(), U("a", gc, [
3829
+ l.icon ? (O(), U("span", vc, $e(l.icon), 1)) : se("", !0),
3830
+ $("span", {
3831
3831
  textContent: $e(o(l))
3832
3832
  }, null, 8, yc),
3833
- a[0] || (a[0] = M("div", { class: "sep" }, null, -1)),
3834
- M("span", {
3833
+ a[0] || (a[0] = $("div", { class: "sep" }, null, -1)),
3834
+ $("span", {
3835
3835
  class: ee([
3836
3836
  "material-symbols-outlined arrow",
3837
3837
  { "--expand": u }
@@ -3844,7 +3844,7 @@ const cc = { class: "panel-menu-wrapper select-none" }, uc = ["data-active", "on
3844
3844
  ]);
3845
3845
  };
3846
3846
  }
3847
- }), Dm = /* @__PURE__ */ St(bc, [["__scopeId", "data-v-cf31441a"]]), Nm = /* @__PURE__ */ De({
3847
+ }), Nm = /* @__PURE__ */ St(bc, [["__scopeId", "data-v-cf31441a"]]), Bm = /* @__PURE__ */ De({
3848
3848
  __name: "HelpButton",
3849
3849
  props: {
3850
3850
  title: {},
@@ -3861,7 +3861,7 @@ const cc = { class: "panel-menu-wrapper select-none" }, uc = ["data-active", "on
3861
3861
  function r() {
3862
3862
  n.value = !0;
3863
3863
  }
3864
- return (o, i) => ($(), H(Xe, null, [
3864
+ return (o, i) => (O(), U(Xe, null, [
3865
3865
  me(o.$slots, "anchor", Hn(jn({ Show: r })), () => [
3866
3866
  Ee(dt, {
3867
3867
  button: !0,
@@ -3882,7 +3882,7 @@ const cc = { class: "panel-menu-wrapper select-none" }, uc = ["data-active", "on
3882
3882
  position: "center"
3883
3883
  }, {
3884
3884
  title: pt(() => [
3885
- M("b", null, $e(e.title ?? "Ajuda"), 1)
3885
+ $("b", null, $e(e.title ?? "Ajuda"), 1)
3886
3886
  ]),
3887
3887
  default: pt(() => [
3888
3888
  me(o.$slots, "default")
@@ -3898,13 +3898,13 @@ const cc = { class: "panel-menu-wrapper select-none" }, uc = ["data-active", "on
3898
3898
  },
3899
3899
  setup(t) {
3900
3900
  const e = t;
3901
- return Hr(), (n, r) => ($(), H("div", {
3901
+ return Hr(), (n, r) => (O(), U("div", {
3902
3902
  class: ee(["sf-content-wrapper", { "--fluid": e.fluid }])
3903
3903
  }, [
3904
3904
  me(n.$slots, "default", {}, void 0, !0)
3905
3905
  ], 2));
3906
3906
  }
3907
- }), Bm = /* @__PURE__ */ St(wc, [["__scopeId", "data-v-32e5acfa"]]), qi = Symbol();
3907
+ }), Um = /* @__PURE__ */ St(wc, [["__scopeId", "data-v-32e5acfa"]]), qi = Symbol();
3908
3908
  class _c {
3909
3909
  get storedTheme() {
3910
3910
  return localStorage.getItem("color-scheme");
@@ -5479,7 +5479,7 @@ const rn = {
5479
5479
  };
5480
5480
  function Ps() {
5481
5481
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : xf();
5482
- const e = (D) => Ps(D);
5482
+ const e = (R) => Ps(R);
5483
5483
  if (e.version = "3.2.6", e.removed = [], !t || !t.document || t.document.nodeType !== rn.document || !t.Element)
5484
5484
  return e.isSupported = !1, e;
5485
5485
  let {
@@ -5492,25 +5492,25 @@ function Ps() {
5492
5492
  Element: l,
5493
5493
  NodeFilter: u,
5494
5494
  NamedNodeMap: d = t.NamedNodeMap || t.MozNamedAttrMap,
5495
- HTMLFormElement: p,
5496
- DOMParser: g,
5495
+ HTMLFormElement: m,
5496
+ DOMParser: v,
5497
5497
  trustedTypes: S
5498
- } = t, I = l.prototype, A = nn(I, "cloneNode"), x = nn(I, "remove"), w = nn(I, "nextSibling"), b = nn(I, "childNodes"), O = nn(I, "parentNode");
5498
+ } = t, I = l.prototype, A = nn(I, "cloneNode"), P = nn(I, "remove"), w = nn(I, "nextSibling"), b = nn(I, "childNodes"), N = nn(I, "parentNode");
5499
5499
  if (typeof a == "function") {
5500
- const D = n.createElement("template");
5501
- D.content && D.content.ownerDocument && (n = D.content.ownerDocument);
5500
+ const R = n.createElement("template");
5501
+ R.content && R.content.ownerDocument && (n = R.content.ownerDocument);
5502
5502
  }
5503
- let B, Y = "";
5503
+ let H, Y = "";
5504
5504
  const {
5505
5505
  implementation: ge,
5506
- createNodeIterator: ae,
5506
+ createNodeIterator: le,
5507
5507
  createDocumentFragment: Be,
5508
5508
  getElementsByTagName: ce
5509
5509
  } = n, {
5510
5510
  importNode: X
5511
5511
  } = r;
5512
- let N = _i();
5513
- e.isSupported = typeof Is == "function" && typeof O == "function" && ge && ge.createHTMLDocument !== void 0;
5512
+ let D = _i();
5513
+ e.isSupported = typeof Is == "function" && typeof N == "function" && ge && ge.createHTMLDocument !== void 0;
5514
5514
  const {
5515
5515
  MUSTACHE_EXPR: J,
5516
5516
  ERB_EXPR: ve,
@@ -5524,10 +5524,10 @@ function Ps() {
5524
5524
  let {
5525
5525
  IS_ALLOWED_URI: Fe
5526
5526
  } = wi, c = null;
5527
- const m = z({}, [...gi, ...br, ...wr, ..._r, ...vi]);
5527
+ const p = z({}, [...gi, ...br, ...wr, ..._r, ...vi]);
5528
5528
  let y = null;
5529
5529
  const T = z({}, [...yi, ...Sr, ...bi, ...Un]);
5530
- let v = Object.seal(Ts(null, {
5530
+ let g = Object.seal(Ts(null, {
5531
5531
  tagNameCheck: {
5532
5532
  writable: !0,
5533
5533
  configurable: !1,
@@ -5546,7 +5546,7 @@ function Ps() {
5546
5546
  enumerable: !0,
5547
5547
  value: !1
5548
5548
  }
5549
- })), E = null, _ = null, k = !0, L = !0, P = !1, U = !0, V = !1, Te = !0, be = !1, we = !1, it = !1, xt = !1, Pn = !1, Ln = !1, uo = !0, fo = !1;
5549
+ })), E = null, _ = null, k = !0, x = !0, L = !1, B = !0, V = !1, Te = !0, be = !1, we = !1, it = !1, xt = !1, Pn = !1, Ln = !1, uo = !0, fo = !1;
5550
5550
  const Ds = "user-content-";
5551
5551
  let ir = !0, Gt = !1, Ot = {}, $t = null;
5552
5552
  const mo = 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"]);
@@ -5567,32 +5567,32 @@ function Ps() {
5567
5567
  let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5568
5568
  if (!(Rt && Rt === f)) {
5569
5569
  if ((!f || typeof f != "object") && (f = {}), f = ct(f), qt = // eslint-disable-next-line unicorn/prefer-includes
5570
- Us.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Hs : f.PARSER_MEDIA_TYPE, fe = qt === "application/xhtml+xml" ? yr : Vn, c = Ge(f, "ALLOWED_TAGS") ? z({}, f.ALLOWED_TAGS, fe) : m, y = Ge(f, "ALLOWED_ATTR") ? z({}, f.ALLOWED_ATTR, fe) : T, lr = Ge(f, "ALLOWED_NAMESPACES") ? z({}, f.ALLOWED_NAMESPACES, yr) : Ns, sr = Ge(f, "ADD_URI_SAFE_ATTR") ? z(ct(go), f.ADD_URI_SAFE_ATTR, fe) : go, po = Ge(f, "ADD_DATA_URI_TAGS") ? z(ct(ho), f.ADD_DATA_URI_TAGS, fe) : ho, $t = Ge(f, "FORBID_CONTENTS") ? z({}, f.FORBID_CONTENTS, fe) : mo, E = Ge(f, "FORBID_TAGS") ? z({}, f.FORBID_TAGS, fe) : ct({}), _ = Ge(f, "FORBID_ATTR") ? z({}, f.FORBID_ATTR, fe) : ct({}), Ot = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, k = f.ALLOW_ARIA_ATTR !== !1, L = f.ALLOW_DATA_ATTR !== !1, P = f.ALLOW_UNKNOWN_PROTOCOLS || !1, U = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = f.SAFE_FOR_TEMPLATES || !1, Te = f.SAFE_FOR_XML !== !1, be = f.WHOLE_DOCUMENT || !1, xt = f.RETURN_DOM || !1, Pn = f.RETURN_DOM_FRAGMENT || !1, Ln = f.RETURN_TRUSTED_TYPE || !1, it = f.FORCE_BODY || !1, uo = f.SANITIZE_DOM !== !1, fo = f.SANITIZE_NAMED_PROPS || !1, ir = f.KEEP_CONTENT !== !1, Gt = f.IN_PLACE || !1, Fe = f.ALLOWED_URI_REGEXP || As, Mt = f.NAMESPACE || st, $n = f.MATHML_TEXT_INTEGRATION_POINTS || $n, Mn = f.HTML_INTEGRATION_POINTS || Mn, v = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && vo(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (v.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && vo(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), Pn && (xt = !0), Ot && (c = z({}, vi), y = [], Ot.html === !0 && (z(c, gi), z(y, yi)), Ot.svg === !0 && (z(c, br), z(y, Sr), z(y, Un)), Ot.svgFilters === !0 && (z(c, wr), z(y, Sr), z(y, Un)), Ot.mathMl === !0 && (z(c, _r), z(y, bi), z(y, Un))), f.ADD_TAGS && (c === m && (c = ct(c)), z(c, f.ADD_TAGS, fe)), f.ADD_ATTR && (y === T && (y = ct(y)), z(y, f.ADD_ATTR, fe)), f.ADD_URI_SAFE_ATTR && z(sr, f.ADD_URI_SAFE_ATTR, fe), f.FORBID_CONTENTS && ($t === mo && ($t = ct($t)), z($t, f.FORBID_CONTENTS, fe)), ir && (c["#text"] = !0), be && z(c, ["html", "head", "body"]), c.table && (z(c, ["tbody"]), delete E.tbody), f.TRUSTED_TYPES_POLICY) {
5570
+ Us.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Hs : f.PARSER_MEDIA_TYPE, fe = qt === "application/xhtml+xml" ? yr : Vn, c = Ge(f, "ALLOWED_TAGS") ? z({}, f.ALLOWED_TAGS, fe) : p, y = Ge(f, "ALLOWED_ATTR") ? z({}, f.ALLOWED_ATTR, fe) : T, lr = Ge(f, "ALLOWED_NAMESPACES") ? z({}, f.ALLOWED_NAMESPACES, yr) : Ns, sr = Ge(f, "ADD_URI_SAFE_ATTR") ? z(ct(go), f.ADD_URI_SAFE_ATTR, fe) : go, po = Ge(f, "ADD_DATA_URI_TAGS") ? z(ct(ho), f.ADD_DATA_URI_TAGS, fe) : ho, $t = Ge(f, "FORBID_CONTENTS") ? z({}, f.FORBID_CONTENTS, fe) : mo, E = Ge(f, "FORBID_TAGS") ? z({}, f.FORBID_TAGS, fe) : ct({}), _ = Ge(f, "FORBID_ATTR") ? z({}, f.FORBID_ATTR, fe) : ct({}), Ot = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, k = f.ALLOW_ARIA_ATTR !== !1, x = f.ALLOW_DATA_ATTR !== !1, L = f.ALLOW_UNKNOWN_PROTOCOLS || !1, B = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = f.SAFE_FOR_TEMPLATES || !1, Te = f.SAFE_FOR_XML !== !1, be = f.WHOLE_DOCUMENT || !1, xt = f.RETURN_DOM || !1, Pn = f.RETURN_DOM_FRAGMENT || !1, Ln = f.RETURN_TRUSTED_TYPE || !1, it = f.FORCE_BODY || !1, uo = f.SANITIZE_DOM !== !1, fo = f.SANITIZE_NAMED_PROPS || !1, ir = f.KEEP_CONTENT !== !1, Gt = f.IN_PLACE || !1, Fe = f.ALLOWED_URI_REGEXP || As, Mt = f.NAMESPACE || st, $n = f.MATHML_TEXT_INTEGRATION_POINTS || $n, Mn = f.HTML_INTEGRATION_POINTS || Mn, g = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && vo(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (g.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && vo(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (g.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (g.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), V && (x = !1), Pn && (xt = !0), Ot && (c = z({}, vi), y = [], Ot.html === !0 && (z(c, gi), z(y, yi)), Ot.svg === !0 && (z(c, br), z(y, Sr), z(y, Un)), Ot.svgFilters === !0 && (z(c, wr), z(y, Sr), z(y, Un)), Ot.mathMl === !0 && (z(c, _r), z(y, bi), z(y, Un))), f.ADD_TAGS && (c === p && (c = ct(c)), z(c, f.ADD_TAGS, fe)), f.ADD_ATTR && (y === T && (y = ct(y)), z(y, f.ADD_ATTR, fe)), f.ADD_URI_SAFE_ATTR && z(sr, f.ADD_URI_SAFE_ATTR, fe), f.FORBID_CONTENTS && ($t === mo && ($t = ct($t)), z($t, f.FORBID_CONTENTS, fe)), ir && (c["#text"] = !0), be && 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 tn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
5573
5573
  if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
5574
5574
  throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
5575
- B = f.TRUSTED_TYPES_POLICY, Y = B.createHTML("");
5575
+ H = f.TRUSTED_TYPES_POLICY, Y = H.createHTML("");
5576
5576
  } else
5577
- B === void 0 && (B = Of(S, o)), B !== null && typeof Y == "string" && (Y = B.createHTML(""));
5577
+ H === void 0 && (H = Of(S, o)), H !== null && typeof Y == "string" && (Y = H.createHTML(""));
5578
5578
  Le && Le(f), Rt = f;
5579
5579
  }
5580
5580
  }, yo = z({}, [...br, ...wr, ..._f]), bo = z({}, [..._r, ...Sf]), Fs = function(f) {
5581
- let C = O(f);
5581
+ let C = N(f);
5582
5582
  (!C || !C.tagName) && (C = {
5583
5583
  namespaceURI: Mt,
5584
5584
  tagName: "template"
5585
5585
  });
5586
- const R = Vn(f.tagName), ie = Vn(C.tagName);
5587
- return lr[f.namespaceURI] ? f.namespaceURI === On ? C.namespaceURI === st ? R === "svg" : C.namespaceURI === xn ? R === "svg" && (ie === "annotation-xml" || $n[ie]) : !!yo[R] : f.namespaceURI === xn ? C.namespaceURI === st ? R === "math" : C.namespaceURI === On ? R === "math" && Mn[ie] : !!bo[R] : f.namespaceURI === st ? C.namespaceURI === On && !Mn[ie] || C.namespaceURI === xn && !$n[ie] ? !1 : !bo[R] && (Bs[R] || !yo[R]) : !!(qt === "application/xhtml+xml" && lr[f.namespaceURI]) : !1;
5586
+ const M = Vn(f.tagName), ie = Vn(C.tagName);
5587
+ return lr[f.namespaceURI] ? f.namespaceURI === On ? C.namespaceURI === st ? M === "svg" : C.namespaceURI === xn ? M === "svg" && (ie === "annotation-xml" || $n[ie]) : !!yo[M] : f.namespaceURI === xn ? C.namespaceURI === st ? M === "math" : C.namespaceURI === On ? M === "math" && Mn[ie] : !!bo[M] : f.namespaceURI === st ? C.namespaceURI === On && !Mn[ie] || C.namespaceURI === xn && !$n[ie] ? !1 : !bo[M] && (Bs[M] || !yo[M]) : !!(qt === "application/xhtml+xml" && lr[f.namespaceURI]) : !1;
5588
5588
  }, tt = function(f) {
5589
5589
  Qt(e.removed, {
5590
5590
  element: f
5591
5591
  });
5592
5592
  try {
5593
- O(f).removeChild(f);
5593
+ N(f).removeChild(f);
5594
5594
  } catch {
5595
- x(f);
5595
+ P(f);
5596
5596
  }
5597
5597
  }, Dt = function(f, C) {
5598
5598
  try {
@@ -5618,18 +5618,18 @@ function Ps() {
5618
5618
  } catch {
5619
5619
  }
5620
5620
  }, wo = function(f) {
5621
- let C = null, R = null;
5621
+ let C = null, M = null;
5622
5622
  if (it)
5623
5623
  f = "<remove></remove>" + f;
5624
5624
  else {
5625
5625
  const ue = hi(f, /^[\r\n\t ]+/);
5626
- R = ue && ue[0];
5626
+ M = ue && ue[0];
5627
5627
  }
5628
5628
  qt === "application/xhtml+xml" && Mt === st && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
5629
- const ie = B ? B.createHTML(f) : f;
5629
+ const ie = H ? H.createHTML(f) : f;
5630
5630
  if (Mt === st)
5631
5631
  try {
5632
- C = new g().parseFromString(ie, qt);
5632
+ C = new v().parseFromString(ie, qt);
5633
5633
  } catch {
5634
5634
  }
5635
5635
  if (!C || !C.documentElement) {
@@ -5640,9 +5640,9 @@ function Ps() {
5640
5640
  }
5641
5641
  }
5642
5642
  const _e = C.body || C.documentElement;
5643
- return f && R && _e.insertBefore(n.createTextNode(R), _e.childNodes[0] || null), Mt === st ? ce.call(C, be ? "html" : "body")[0] : be ? C.documentElement : _e;
5643
+ return f && M && _e.insertBefore(n.createTextNode(M), _e.childNodes[0] || null), Mt === st ? ce.call(C, be ? "html" : "body")[0] : be ? C.documentElement : _e;
5644
5644
  }, _o = function(f) {
5645
- return ae.call(
5645
+ return le.call(
5646
5646
  f.ownerDocument || f,
5647
5647
  f,
5648
5648
  // eslint-disable-next-line no-bitwise
@@ -5650,30 +5650,30 @@ function Ps() {
5650
5650
  null
5651
5651
  );
5652
5652
  }, ur = function(f) {
5653
- return f instanceof p && (typeof f.nodeName != "string" || typeof f.textContent != "string" || typeof f.removeChild != "function" || !(f.attributes instanceof d) || typeof f.removeAttribute != "function" || typeof f.setAttribute != "function" || typeof f.namespaceURI != "string" || typeof f.insertBefore != "function" || typeof f.hasChildNodes != "function");
5653
+ return f instanceof m && (typeof f.nodeName != "string" || typeof f.textContent != "string" || typeof f.removeChild != "function" || !(f.attributes instanceof d) || typeof f.removeAttribute != "function" || typeof f.setAttribute != "function" || typeof f.namespaceURI != "string" || typeof f.insertBefore != "function" || typeof f.hasChildNodes != "function");
5654
5654
  }, So = function(f) {
5655
5655
  return typeof s == "function" && f instanceof s;
5656
5656
  };
5657
- function at(D, f, C) {
5658
- Bn(D, (R) => {
5659
- R.call(e, f, C, Rt);
5657
+ function at(R, f, C) {
5658
+ Bn(R, (M) => {
5659
+ M.call(e, f, C, Rt);
5660
5660
  });
5661
5661
  }
5662
5662
  const ko = function(f) {
5663
5663
  let C = null;
5664
- if (at(N.beforeSanitizeElements, f, null), ur(f))
5664
+ if (at(D.beforeSanitizeElements, f, null), ur(f))
5665
5665
  return tt(f), !0;
5666
- const R = fe(f.nodeName);
5667
- if (at(N.uponSanitizeElement, f, {
5668
- tagName: R,
5666
+ const M = fe(f.nodeName);
5667
+ if (at(D.uponSanitizeElement, f, {
5668
+ tagName: M,
5669
5669
  allowedTags: c
5670
5670
  }), Te && f.hasChildNodes() && !So(f.firstElementChild) && Ae(/<[/\w!]/g, f.innerHTML) && Ae(/<[/\w!]/g, f.textContent) || f.nodeType === rn.progressingInstruction || Te && f.nodeType === rn.comment && Ae(/<[/\w]/g, f.data))
5671
5671
  return tt(f), !0;
5672
- if (!c[R] || E[R]) {
5673
- if (!E[R] && Io(R) && (v.tagNameCheck instanceof RegExp && Ae(v.tagNameCheck, R) || v.tagNameCheck instanceof Function && v.tagNameCheck(R)))
5672
+ if (!c[M] || E[M]) {
5673
+ if (!E[M] && Io(M) && (g.tagNameCheck instanceof RegExp && Ae(g.tagNameCheck, M) || g.tagNameCheck instanceof Function && g.tagNameCheck(M)))
5674
5674
  return !1;
5675
- if (ir && !$t[R]) {
5676
- const ie = O(f) || f.parentNode, _e = b(f) || f.childNodes;
5675
+ if (ir && !$t[M]) {
5676
+ const ie = N(f) || f.parentNode, _e = b(f) || f.childNodes;
5677
5677
  if (_e && ie) {
5678
5678
  const ue = _e.length;
5679
5679
  for (let Oe = ue - 1; Oe >= 0; --Oe) {
@@ -5684,30 +5684,30 @@ function Ps() {
5684
5684
  }
5685
5685
  return tt(f), !0;
5686
5686
  }
5687
- return f instanceof l && !Fs(f) || (R === "noscript" || R === "noembed" || R === "noframes") && Ae(/<\/no(script|embed|frames)/i, f.innerHTML) ? (tt(f), !0) : (V && f.nodeType === rn.text && (C = f.textContent, Bn([J, ve, ye], (ie) => {
5687
+ return f instanceof l && !Fs(f) || (M === "noscript" || M === "noembed" || M === "noframes") && Ae(/<\/no(script|embed|frames)/i, f.innerHTML) ? (tt(f), !0) : (V && f.nodeType === rn.text && (C = f.textContent, Bn([J, ve, ye], (ie) => {
5688
5688
  C = en(C, ie, " ");
5689
5689
  }), f.textContent !== C && (Qt(e.removed, {
5690
5690
  element: f.cloneNode()
5691
- }), f.textContent = C)), at(N.afterSanitizeElements, f, null), !1);
5692
- }, Co = function(f, C, R) {
5693
- if (uo && (C === "id" || C === "name") && (R in n || R in js))
5691
+ }), f.textContent = C)), at(D.afterSanitizeElements, f, null), !1);
5692
+ }, Co = function(f, C, M) {
5693
+ if (uo && (C === "id" || C === "name") && (M in n || M in js))
5694
5694
  return !1;
5695
- if (!(L && !_[C] && Ae(Je, C))) {
5695
+ if (!(x && !_[C] && Ae(Je, C))) {
5696
5696
  if (!(k && Ae(ot, C))) {
5697
5697
  if (!y[C] || _[C]) {
5698
5698
  if (
5699
5699
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
5700
5700
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
5701
5701
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
5702
- !(Io(f) && (v.tagNameCheck instanceof RegExp && Ae(v.tagNameCheck, f) || v.tagNameCheck instanceof Function && v.tagNameCheck(f)) && (v.attributeNameCheck instanceof RegExp && Ae(v.attributeNameCheck, C) || v.attributeNameCheck instanceof Function && v.attributeNameCheck(C)) || // Alternative, second condition checks if it's an `is`-attribute, AND
5702
+ !(Io(f) && (g.tagNameCheck instanceof RegExp && Ae(g.tagNameCheck, f) || g.tagNameCheck instanceof Function && g.tagNameCheck(f)) && (g.attributeNameCheck instanceof RegExp && Ae(g.attributeNameCheck, C) || g.attributeNameCheck instanceof Function && g.attributeNameCheck(C)) || // Alternative, second condition checks if it's an `is`-attribute, AND
5703
5703
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
5704
- C === "is" && v.allowCustomizedBuiltInElements && (v.tagNameCheck instanceof RegExp && Ae(v.tagNameCheck, R) || v.tagNameCheck instanceof Function && v.tagNameCheck(R)))
5704
+ C === "is" && g.allowCustomizedBuiltInElements && (g.tagNameCheck instanceof RegExp && Ae(g.tagNameCheck, M) || g.tagNameCheck instanceof Function && g.tagNameCheck(M)))
5705
5705
  ) return !1;
5706
5706
  } else if (!sr[C]) {
5707
- if (!Ae(Fe, en(R, et, ""))) {
5708
- if (!((C === "src" || C === "xlink:href" || C === "href") && f !== "script" && vf(R, "data:") === 0 && po[f])) {
5709
- if (!(P && !Ae(Qe, en(R, et, "")))) {
5710
- if (R)
5707
+ if (!Ae(Fe, en(M, et, ""))) {
5708
+ if (!((C === "src" || C === "xlink:href" || C === "href") && f !== "script" && vf(M, "data:") === 0 && po[f])) {
5709
+ if (!(L && !Ae(Qe, en(M, et, "")))) {
5710
+ if (M)
5711
5711
  return !1;
5712
5712
  }
5713
5713
  }
@@ -5719,13 +5719,13 @@ function Ps() {
5719
5719
  }, Io = function(f) {
5720
5720
  return f !== "annotation-xml" && hi(f, kt);
5721
5721
  }, To = function(f) {
5722
- at(N.beforeSanitizeAttributes, f, null);
5722
+ at(D.beforeSanitizeAttributes, f, null);
5723
5723
  const {
5724
5724
  attributes: C
5725
5725
  } = f;
5726
5726
  if (!C || ur(f))
5727
5727
  return;
5728
- const R = {
5728
+ const M = {
5729
5729
  attrName: "",
5730
5730
  attrValue: "",
5731
5731
  keepAttr: !0,
@@ -5740,17 +5740,17 @@ function Ps() {
5740
5740
  value: lt
5741
5741
  } = _e, Yt = fe(ue), dr = lt;
5742
5742
  let Se = ue === "value" ? dr : yf(dr);
5743
- if (R.attrName = Yt, R.attrValue = Se, R.keepAttr = !0, R.forceKeepAttr = void 0, at(N.uponSanitizeAttribute, f, R), Se = R.attrValue, fo && (Yt === "id" || Yt === "name") && (Dt(ue, f), Se = Ds + Se), Te && Ae(/((--!?|])>)|<\/(style|title)/i, Se)) {
5743
+ if (M.attrName = Yt, M.attrValue = Se, M.keepAttr = !0, M.forceKeepAttr = void 0, at(D.uponSanitizeAttribute, f, M), Se = M.attrValue, fo && (Yt === "id" || Yt === "name") && (Dt(ue, f), Se = Ds + Se), Te && Ae(/((--!?|])>)|<\/(style|title)/i, Se)) {
5744
5744
  Dt(ue, f);
5745
5745
  continue;
5746
5746
  }
5747
- if (R.forceKeepAttr)
5747
+ if (M.forceKeepAttr)
5748
5748
  continue;
5749
- if (!R.keepAttr) {
5749
+ if (!M.keepAttr) {
5750
5750
  Dt(ue, f);
5751
5751
  continue;
5752
5752
  }
5753
- if (!U && Ae(/\/>/i, Se)) {
5753
+ if (!B && Ae(/\/>/i, Se)) {
5754
5754
  Dt(ue, f);
5755
5755
  continue;
5756
5756
  }
@@ -5762,14 +5762,14 @@ function Ps() {
5762
5762
  Dt(ue, f);
5763
5763
  continue;
5764
5764
  }
5765
- if (B && typeof S == "object" && typeof S.getAttributeType == "function" && !Oe)
5765
+ if (H && typeof S == "object" && typeof S.getAttributeType == "function" && !Oe)
5766
5766
  switch (S.getAttributeType(Ao, Yt)) {
5767
5767
  case "TrustedHTML": {
5768
- Se = B.createHTML(Se);
5768
+ Se = H.createHTML(Se);
5769
5769
  break;
5770
5770
  }
5771
5771
  case "TrustedScriptURL": {
5772
- Se = B.createScriptURL(Se);
5772
+ Se = H.createScriptURL(Se);
5773
5773
  break;
5774
5774
  }
5775
5775
  }
@@ -5780,45 +5780,45 @@ function Ps() {
5780
5780
  Dt(ue, f);
5781
5781
  }
5782
5782
  }
5783
- at(N.afterSanitizeAttributes, f, null);
5784
- }, Vs = function D(f) {
5783
+ at(D.afterSanitizeAttributes, f, null);
5784
+ }, Vs = function R(f) {
5785
5785
  let C = null;
5786
- const R = _o(f);
5787
- for (at(N.beforeSanitizeShadowDOM, f, null); C = R.nextNode(); )
5788
- at(N.uponSanitizeShadowNode, C, null), ko(C), To(C), C.content instanceof i && D(C.content);
5789
- at(N.afterSanitizeShadowDOM, f, null);
5786
+ const M = _o(f);
5787
+ for (at(D.beforeSanitizeShadowDOM, f, null); C = M.nextNode(); )
5788
+ at(D.uponSanitizeShadowNode, C, null), ko(C), To(C), C.content instanceof i && R(C.content);
5789
+ at(D.afterSanitizeShadowDOM, f, null);
5790
5790
  };
5791
- return e.sanitize = function(D) {
5792
- let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, C = null, R = null, ie = null, _e = null;
5793
- if (ar = !D, ar && (D = "<!-->"), typeof D != "string" && !So(D))
5794
- if (typeof D.toString == "function") {
5795
- if (D = D.toString(), typeof D != "string")
5791
+ return e.sanitize = function(R) {
5792
+ let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, C = null, M = null, ie = null, _e = null;
5793
+ if (ar = !R, ar && (R = "<!-->"), typeof R != "string" && !So(R))
5794
+ if (typeof R.toString == "function") {
5795
+ if (R = R.toString(), typeof R != "string")
5796
5796
  throw tn("dirty is not a string, aborting");
5797
5797
  } else
5798
5798
  throw tn("toString is not a function");
5799
5799
  if (!e.isSupported)
5800
- return D;
5801
- if (we || cr(f), e.removed = [], typeof D == "string" && (Gt = !1), Gt) {
5802
- if (D.nodeName) {
5803
- const lt = fe(D.nodeName);
5800
+ return R;
5801
+ if (we || cr(f), e.removed = [], typeof R == "string" && (Gt = !1), Gt) {
5802
+ if (R.nodeName) {
5803
+ const lt = fe(R.nodeName);
5804
5804
  if (!c[lt] || E[lt])
5805
5805
  throw tn("root node is forbidden and cannot be sanitized in-place");
5806
5806
  }
5807
- } else if (D instanceof s)
5808
- C = wo("<!---->"), R = C.ownerDocument.importNode(D, !0), R.nodeType === rn.element && R.nodeName === "BODY" || R.nodeName === "HTML" ? C = R : C.appendChild(R);
5807
+ } else if (R instanceof s)
5808
+ C = wo("<!---->"), M = C.ownerDocument.importNode(R, !0), M.nodeType === rn.element && M.nodeName === "BODY" || M.nodeName === "HTML" ? C = M : C.appendChild(M);
5809
5809
  else {
5810
5810
  if (!xt && !V && !be && // eslint-disable-next-line unicorn/prefer-includes
5811
- D.indexOf("<") === -1)
5812
- return B && Ln ? B.createHTML(D) : D;
5813
- if (C = wo(D), !C)
5811
+ R.indexOf("<") === -1)
5812
+ return H && Ln ? H.createHTML(R) : R;
5813
+ if (C = wo(R), !C)
5814
5814
  return xt ? null : Ln ? Y : "";
5815
5815
  }
5816
5816
  C && it && tt(C.firstChild);
5817
- const ue = _o(Gt ? D : C);
5817
+ const ue = _o(Gt ? R : C);
5818
5818
  for (; ie = ue.nextNode(); )
5819
5819
  ko(ie), To(ie), ie.content instanceof i && Vs(ie.content);
5820
5820
  if (Gt)
5821
- return D;
5821
+ return R;
5822
5822
  if (xt) {
5823
5823
  if (Pn)
5824
5824
  for (_e = Be.call(C.ownerDocument); C.firstChild; )
@@ -5831,28 +5831,28 @@ function Ps() {
5831
5831
  return be && c["!doctype"] && C.ownerDocument && C.ownerDocument.doctype && C.ownerDocument.doctype.name && Ae(Es, C.ownerDocument.doctype.name) && (Oe = "<!DOCTYPE " + C.ownerDocument.doctype.name + `>
5832
5832
  ` + Oe), V && Bn([J, ve, ye], (lt) => {
5833
5833
  Oe = en(Oe, lt, " ");
5834
- }), B && Ln ? B.createHTML(Oe) : Oe;
5834
+ }), H && Ln ? H.createHTML(Oe) : Oe;
5835
5835
  }, e.setConfig = function() {
5836
- let D = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5837
- cr(D), we = !0;
5836
+ let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5837
+ cr(R), we = !0;
5838
5838
  }, e.clearConfig = function() {
5839
5839
  Rt = null, we = !1;
5840
- }, e.isValidAttribute = function(D, f, C) {
5840
+ }, e.isValidAttribute = function(R, f, C) {
5841
5841
  Rt || cr({});
5842
- const R = fe(D), ie = fe(f);
5843
- return Co(R, ie, C);
5844
- }, e.addHook = function(D, f) {
5845
- typeof f == "function" && Qt(N[D], f);
5846
- }, e.removeHook = function(D, f) {
5842
+ const M = fe(R), ie = fe(f);
5843
+ return Co(M, ie, C);
5844
+ }, e.addHook = function(R, f) {
5845
+ typeof f == "function" && Qt(D[R], f);
5846
+ }, e.removeHook = function(R, f) {
5847
5847
  if (f !== void 0) {
5848
- const C = hf(N[D], f);
5849
- return C === -1 ? void 0 : gf(N[D], C, 1)[0];
5848
+ const C = hf(D[R], f);
5849
+ return C === -1 ? void 0 : gf(D[R], C, 1)[0];
5850
5850
  }
5851
- return pi(N[D]);
5852
- }, e.removeHooks = function(D) {
5853
- N[D] = [];
5851
+ return pi(D[R]);
5852
+ }, e.removeHooks = function(R) {
5853
+ D[R] = [];
5854
5854
  }, e.removeAllHooks = function() {
5855
- N = _i();
5855
+ D = _i();
5856
5856
  }, e;
5857
5857
  }
5858
5858
  var so = Ps();
@@ -5882,7 +5882,7 @@ class Ls {
5882
5882
  });
5883
5883
  }
5884
5884
  }
5885
- const $f = () => new Ls(), Um = () => new Ls();
5885
+ const $f = () => new Ls(), Hm = () => new Ls();
5886
5886
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
5887
5887
  function Mf(t) {
5888
5888
  return t instanceof Uint8Array || ArrayBuffer.isView(t) && t.constructor.name === "Uint8Array";
@@ -5965,8 +5965,8 @@ class Ff extends Nf {
5965
5965
  const { buffer: n, view: r, blockLen: o, isLE: i } = this;
5966
5966
  let { pos: a } = this;
5967
5967
  n[a++] = 128, Br(this.buffer.subarray(a)), this.padOffset > o - a && (this.process(r, 0), a = 0);
5968
- for (let p = a; p < o; p++)
5969
- n[p] = 0;
5968
+ for (let m = a; m < o; m++)
5969
+ n[m] = 0;
5970
5970
  Uf(r, o - 8, BigInt(this.length * 8), i), this.process(r, 0);
5971
5971
  const s = kr(e), l = this.outputLen;
5972
5972
  if (l % 4)
@@ -5974,8 +5974,8 @@ class Ff extends Nf {
5974
5974
  const u = l / 4, d = this.get();
5975
5975
  if (u > d.length)
5976
5976
  throw new Error("_sha2: outputLen bigger than state");
5977
- for (let p = 0; p < u; p++)
5978
- s.setUint32(4 * p, d[p], i);
5977
+ for (let m = 0; m < u; m++)
5978
+ s.setUint32(4 * m, d[m], i);
5979
5979
  }
5980
5980
  digest() {
5981
5981
  const { buffer: e, outputLen: n } = this;
@@ -6080,15 +6080,15 @@ class Kf extends Ff {
6080
6080
  this.A = e | 0, this.B = n | 0, this.C = r | 0, this.D = o | 0, this.E = i | 0, this.F = a | 0, this.G = s | 0, this.H = l | 0;
6081
6081
  }
6082
6082
  process(e, n) {
6083
- for (let p = 0; p < 16; p++, n += 4)
6084
- gt[p] = e.getUint32(n, !1);
6085
- for (let p = 16; p < 64; p++) {
6086
- const g = gt[p - 15], S = gt[p - 2], I = nt(g, 7) ^ nt(g, 18) ^ g >>> 3, A = nt(S, 17) ^ nt(S, 19) ^ S >>> 10;
6087
- gt[p] = A + gt[p - 7] + I + gt[p - 16] | 0;
6083
+ for (let m = 0; m < 16; m++, n += 4)
6084
+ gt[m] = e.getUint32(n, !1);
6085
+ for (let m = 16; m < 64; m++) {
6086
+ const v = gt[m - 15], S = gt[m - 2], I = nt(v, 7) ^ nt(v, 18) ^ v >>> 3, A = nt(S, 17) ^ nt(S, 19) ^ S >>> 10;
6087
+ gt[m] = A + gt[m - 7] + I + gt[m - 16] | 0;
6088
6088
  }
6089
6089
  let { A: r, B: o, C: i, D: a, E: s, F: l, G: u, H: d } = this;
6090
- for (let p = 0; p < 64; p++) {
6091
- const g = nt(s, 6) ^ nt(s, 11) ^ nt(s, 25), S = d + g + Hf(s, l, u) + Vf[p] + gt[p] | 0, A = (nt(r, 2) ^ nt(r, 13) ^ nt(r, 22)) + jf(r, o, i) | 0;
6090
+ for (let m = 0; m < 64; m++) {
6091
+ const v = nt(s, 6) ^ nt(s, 11) ^ nt(s, 25), S = d + v + Hf(s, l, u) + Vf[m] + gt[m] | 0, A = (nt(r, 2) ^ nt(r, 13) ^ nt(r, 22)) + jf(r, o, i) | 0;
6092
6092
  d = u, u = l, l = s, s = a + S | 0, a = i, i = o, o = r, r = S + A | 0;
6093
6093
  }
6094
6094
  r = r + this.A | 0, o = o + 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(r, o, i, a, s, l, u, d);
@@ -6173,8 +6173,8 @@ function Os(t) {
6173
6173
  "A 'Keycloak' instance can only be initialized once."
6174
6174
  );
6175
6175
  e.didInitialize = !0, e.authenticated = !1, o = kt();
6176
- var m = ["default", "cordova", "cordova-native"];
6177
- if (c && m.indexOf(c.adapter) > -1 ? n = ot(c.adapter) : c && typeof c.adapter == "object" ? n = c.adapter : window.Cordova || window.cordova ? n = ot("cordova") : n = ot(), c) {
6176
+ var p = ["default", "cordova", "cordova-native"];
6177
+ if (c && p.indexOf(c.adapter) > -1 ? n = ot(c.adapter) : c && typeof c.adapter == "object" ? n = c.adapter : window.Cordova || window.cordova ? n = ot("cordova") : n = ot(), c) {
6178
6178
  if (typeof c.useNonce < "u" && (l = c.useNonce), typeof c.checkLoginIframe < "u" && (i.enable = c.checkLoginIframe), c.checkLoginIframeInterval && (i.interval = c.checkLoginIframeInterval), c.onLoad === "login-required" && (e.loginRequired = !0), c.responseMode)
6179
6179
  if (c.responseMode === "query" || c.responseMode === "fragment")
6180
6180
  e.responseMode = c.responseMode;
@@ -6210,18 +6210,18 @@ function Os(t) {
6210
6210
  var y = X(), T = X();
6211
6211
  T.promise.then(function() {
6212
6212
  e.onReady && e.onReady(e.authenticated), y.setSuccess(e.authenticated);
6213
- }).catch(function(L) {
6214
- y.setError(L);
6213
+ }).catch(function(x) {
6214
+ y.setError(x);
6215
6215
  });
6216
- var v = O();
6216
+ var g = N();
6217
6217
  function E() {
6218
- var L = function(V) {
6219
- V || (U.prompt = "none"), c && c.locale && (U.locale = c.locale), e.login(U).then(function() {
6218
+ var x = function(V) {
6219
+ V || (B.prompt = "none"), c && c.locale && (B.locale = c.locale), e.login(B).then(function() {
6220
6220
  T.setSuccess();
6221
6221
  }).catch(function(Te) {
6222
6222
  T.setError(Te);
6223
6223
  });
6224
- }, P = function() {
6224
+ }, L = function() {
6225
6225
  var V = document.createElement("iframe"), Te = e.createLoginUrl({
6226
6226
  prompt: "none",
6227
6227
  redirectUri: e.silentCheckSsoRedirectUri
@@ -6232,139 +6232,139 @@ function Os(t) {
6232
6232
  ), V.setAttribute("title", "keycloak-silent-check-sso"), V.style.display = "none", document.body.appendChild(V);
6233
6233
  var be = function(we) {
6234
6234
  if (!(we.origin !== window.location.origin || V.contentWindow !== we.source)) {
6235
- var it = ae(we.data);
6235
+ var it = le(we.data);
6236
6236
  b(it, T), document.body.removeChild(V), window.removeEventListener("message", be);
6237
6237
  }
6238
6238
  };
6239
6239
  window.addEventListener("message", be);
6240
- }, U = {};
6240
+ }, B = {};
6241
6241
  switch (c.onLoad) {
6242
6242
  case "check-sso":
6243
6243
  i.enable ? J().then(function() {
6244
6244
  ye().then(function(V) {
6245
- V ? T.setSuccess() : e.silentCheckSsoRedirectUri ? P() : L(!1);
6245
+ V ? T.setSuccess() : e.silentCheckSsoRedirectUri ? L() : x(!1);
6246
6246
  }).catch(function(V) {
6247
6247
  T.setError(V);
6248
6248
  });
6249
- }) : e.silentCheckSsoRedirectUri ? P() : L(!1);
6249
+ }) : e.silentCheckSsoRedirectUri ? L() : x(!1);
6250
6250
  break;
6251
6251
  case "login-required":
6252
- L(!0);
6252
+ x(!0);
6253
6253
  break;
6254
6254
  default:
6255
6255
  throw "Invalid value for onLoad";
6256
6256
  }
6257
6257
  }
6258
6258
  function _() {
6259
- var L = ae(window.location.href);
6260
- if (L && window.history.replaceState(
6259
+ var x = le(window.location.href);
6260
+ if (x && window.history.replaceState(
6261
6261
  window.history.state,
6262
6262
  null,
6263
- L.newUrl
6264
- ), L && L.valid)
6263
+ x.newUrl
6264
+ ), x && x.valid)
6265
6265
  return J().then(function() {
6266
- b(L, T);
6267
- }).catch(function(P) {
6268
- T.setError(P);
6266
+ b(x, T);
6267
+ }).catch(function(L) {
6268
+ T.setError(L);
6269
6269
  });
6270
6270
  c ? c.token && c.refreshToken ? (Y(
6271
6271
  c.token,
6272
6272
  c.refreshToken,
6273
6273
  c.idToken
6274
6274
  ), i.enable ? J().then(function() {
6275
- ye().then(function(P) {
6276
- P ? (e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess(), ve()) : T.setSuccess();
6277
- }).catch(function(P) {
6278
- T.setError(P);
6275
+ ye().then(function(L) {
6276
+ L ? (e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess(), ve()) : T.setSuccess();
6277
+ }).catch(function(L) {
6278
+ T.setError(L);
6279
6279
  });
6280
6280
  }) : e.updateToken(-1).then(function() {
6281
6281
  e.onAuthSuccess && e.onAuthSuccess(), T.setSuccess();
6282
- }).catch(function(P) {
6283
- e.onAuthError && e.onAuthError(), c.onLoad ? E() : T.setError(P);
6282
+ }).catch(function(L) {
6283
+ e.onAuthError && e.onAuthError(), c.onLoad ? E() : T.setError(L);
6284
6284
  })) : c.onLoad ? E() : T.setSuccess() : T.setSuccess();
6285
6285
  }
6286
6286
  function k() {
6287
- var L = X(), P = function() {
6287
+ var x = X(), L = function() {
6288
6288
  (document.readyState === "interactive" || document.readyState === "complete") && (document.removeEventListener(
6289
6289
  "readystatechange",
6290
- P
6291
- ), L.setSuccess());
6290
+ L
6291
+ ), x.setSuccess());
6292
6292
  };
6293
- return document.addEventListener("readystatechange", P), P(), L.promise;
6293
+ return document.addEventListener("readystatechange", L), L(), x.promise;
6294
6294
  }
6295
- return v.then(function() {
6296
- k().then(Je).then(_).catch(function(L) {
6297
- y.setError(L);
6295
+ return g.then(function() {
6296
+ k().then(Je).then(_).catch(function(x) {
6297
+ y.setError(x);
6298
6298
  });
6299
- }), v.catch(function(L) {
6300
- y.setError(L);
6299
+ }), g.catch(function(x) {
6300
+ y.setError(x);
6301
6301
  }), y.promise;
6302
6302
  }, e.login = function(c) {
6303
6303
  return n.login(c);
6304
6304
  };
6305
- function p(c) {
6306
- var m = null, y = window.crypto || window.msCrypto;
6305
+ function m(c) {
6306
+ var p = null, y = window.crypto || window.msCrypto;
6307
6307
  if (y && y.getRandomValues && window.Uint8Array)
6308
- return m = new Uint8Array(c), y.getRandomValues(m), m;
6309
- m = new Array(c);
6310
- for (var T = 0; T < m.length; T++)
6311
- m[T] = Math.floor(256 * Math.random());
6312
- return m;
6308
+ return p = new Uint8Array(c), y.getRandomValues(p), p;
6309
+ p = new Array(c);
6310
+ for (var T = 0; T < p.length; T++)
6311
+ p[T] = Math.floor(256 * Math.random());
6312
+ return p;
6313
6313
  }
6314
- function g(c) {
6314
+ function v(c) {
6315
6315
  return S(
6316
6316
  c,
6317
6317
  "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
6318
6318
  );
6319
6319
  }
6320
- function S(c, m) {
6321
- for (var y = p(c), T = new Array(c), v = 0; v < c; v++)
6322
- T[v] = m.charCodeAt(y[v] % m.length);
6320
+ function S(c, p) {
6321
+ for (var y = m(c), T = new Array(c), g = 0; g < c; g++)
6322
+ T[g] = p.charCodeAt(y[g] % p.length);
6323
6323
  return String.fromCharCode.apply(null, T);
6324
6324
  }
6325
- function I(c, m) {
6325
+ function I(c, p) {
6326
6326
  if (c !== "S256")
6327
6327
  throw new TypeError(
6328
6328
  `Invalid value for 'pkceMethod', expected 'S256' but got '${c}'.`
6329
6329
  );
6330
- const y = Wf(m);
6330
+ const y = Wf(p);
6331
6331
  return Yf(y).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
6332
6332
  }
6333
6333
  function A(c) {
6334
- var m = {
6334
+ var p = {
6335
6335
  id_token: {
6336
6336
  acr: c
6337
6337
  }
6338
6338
  };
6339
- return JSON.stringify(m);
6339
+ return JSON.stringify(p);
6340
6340
  }
6341
6341
  e.createLoginUrl = function(c) {
6342
- var m = ge(), y = ge(), T = n.redirectUri(c), v = {
6343
- state: m,
6342
+ var p = ge(), y = ge(), T = n.redirectUri(c), g = {
6343
+ state: p,
6344
6344
  nonce: y,
6345
6345
  redirectUri: encodeURIComponent(T),
6346
6346
  loginOptions: c
6347
6347
  };
6348
- c && c.prompt && (v.prompt = c.prompt);
6348
+ c && c.prompt && (g.prompt = c.prompt);
6349
6349
  var E;
6350
6350
  c && c.action == "register" ? E = e.endpoints.register() : E = e.endpoints.authorize();
6351
6351
  var _ = c && c.scope || e.scope;
6352
6352
  _ ? _.indexOf("openid") === -1 && (_ = "openid " + _) : _ = "openid";
6353
- var k = E + "?client_id=" + encodeURIComponent(e.clientId) + "&redirect_uri=" + encodeURIComponent(T) + "&state=" + encodeURIComponent(m) + "&response_mode=" + encodeURIComponent(e.responseMode) + "&response_type=" + encodeURIComponent(e.responseType) + "&scope=" + encodeURIComponent(_);
6353
+ var k = E + "?client_id=" + encodeURIComponent(e.clientId) + "&redirect_uri=" + encodeURIComponent(T) + "&state=" + encodeURIComponent(p) + "&response_mode=" + encodeURIComponent(e.responseMode) + "&response_type=" + encodeURIComponent(e.responseType) + "&scope=" + encodeURIComponent(_);
6354
6354
  if (l && (k = k + "&nonce=" + encodeURIComponent(y)), c && c.prompt && (k += "&prompt=" + encodeURIComponent(c.prompt)), c && c.maxAge && (k += "&max_age=" + encodeURIComponent(c.maxAge)), c && c.loginHint && (k += "&login_hint=" + encodeURIComponent(c.loginHint)), c && c.idpHint && (k += "&kc_idp_hint=" + encodeURIComponent(c.idpHint)), c && c.action && c.action != "register" && (k += "&kc_action=" + encodeURIComponent(c.action)), c && c.locale && (k += "&ui_locales=" + encodeURIComponent(c.locale)), c && c.acr) {
6355
- var L = A(c.acr);
6356
- k += "&claims=" + encodeURIComponent(L);
6355
+ var x = A(c.acr);
6356
+ k += "&claims=" + encodeURIComponent(x);
6357
6357
  }
6358
6358
  if ((c && c.acrValues || e.acrValues) && (k += "&acr_values=" + encodeURIComponent(c.acrValues || e.acrValues)), e.pkceMethod) {
6359
- var P = g(96);
6360
- v.pkceCodeVerifier = P;
6361
- var U = I(
6359
+ var L = v(96);
6360
+ g.pkceCodeVerifier = L;
6361
+ var B = I(
6362
6362
  e.pkceMethod,
6363
- P
6363
+ L
6364
6364
  );
6365
- k += "&code_challenge=" + U, k += "&code_challenge_method=" + e.pkceMethod;
6365
+ k += "&code_challenge=" + B, k += "&code_challenge_method=" + e.pkceMethod;
6366
6366
  }
6367
- return o.add(v), k;
6367
+ return o.add(g), k;
6368
6368
  }, e.logout = function(c) {
6369
6369
  return n.logout(c);
6370
6370
  }, e.createLogoutUrl = function(c) {
@@ -6377,32 +6377,32 @@ function Os(t) {
6377
6377
  }, e.createRegisterUrl = function(c) {
6378
6378
  return c || (c = {}), c.action = "register", e.createLoginUrl(c);
6379
6379
  }, e.createAccountUrl = function(c) {
6380
- var m = x(), y = void 0;
6381
- return typeof m < "u" && (y = m + "/account?referrer=" + encodeURIComponent(e.clientId) + "&referrer_uri=" + encodeURIComponent(n.redirectUri(c))), y;
6380
+ var p = P(), y = void 0;
6381
+ return typeof p < "u" && (y = p + "/account?referrer=" + encodeURIComponent(e.clientId) + "&referrer_uri=" + encodeURIComponent(n.redirectUri(c))), y;
6382
6382
  }, e.accountManagement = function() {
6383
6383
  return n.accountManagement();
6384
6384
  }, e.hasRealmRole = function(c) {
6385
- var m = e.realmAccess;
6386
- return !!m && m.roles.indexOf(c) >= 0;
6387
- }, e.hasResourceRole = function(c, m) {
6385
+ var p = e.realmAccess;
6386
+ return !!p && p.roles.indexOf(c) >= 0;
6387
+ }, e.hasResourceRole = function(c, p) {
6388
6388
  if (!e.resourceAccess)
6389
6389
  return !1;
6390
- var y = e.resourceAccess[m || e.clientId];
6390
+ var y = e.resourceAccess[p || e.clientId];
6391
6391
  return !!y && y.roles.indexOf(c) >= 0;
6392
6392
  }, e.loadUserProfile = function() {
6393
- var c = x() + "/account", m = new XMLHttpRequest();
6394
- m.open("GET", c, !0), m.setRequestHeader("Accept", "application/json"), m.setRequestHeader("Authorization", "bearer " + e.token);
6393
+ var c = P() + "/account", p = new XMLHttpRequest();
6394
+ p.open("GET", c, !0), p.setRequestHeader("Accept", "application/json"), p.setRequestHeader("Authorization", "bearer " + e.token);
6395
6395
  var y = X();
6396
- return m.onreadystatechange = function() {
6397
- m.readyState == 4 && (m.status == 200 ? (e.profile = JSON.parse(m.responseText), y.setSuccess(e.profile)) : y.setError());
6398
- }, m.send(), y.promise;
6396
+ return p.onreadystatechange = function() {
6397
+ p.readyState == 4 && (p.status == 200 ? (e.profile = JSON.parse(p.responseText), y.setSuccess(e.profile)) : y.setError());
6398
+ }, p.send(), y.promise;
6399
6399
  }, e.loadUserInfo = function() {
6400
- var c = e.endpoints.userinfo(), m = new XMLHttpRequest();
6401
- m.open("GET", c, !0), m.setRequestHeader("Accept", "application/json"), m.setRequestHeader("Authorization", "bearer " + e.token);
6400
+ var c = e.endpoints.userinfo(), p = new XMLHttpRequest();
6401
+ p.open("GET", c, !0), p.setRequestHeader("Accept", "application/json"), p.setRequestHeader("Authorization", "bearer " + e.token);
6402
6402
  var y = X();
6403
- return m.onreadystatechange = function() {
6404
- m.readyState == 4 && (m.status == 200 ? (e.userInfo = JSON.parse(m.responseText), y.setSuccess(e.userInfo)) : y.setError());
6405
- }, m.send(), y.promise;
6403
+ return p.onreadystatechange = function() {
6404
+ p.readyState == 4 && (p.status == 200 ? (e.userInfo = JSON.parse(p.responseText), y.setSuccess(e.userInfo)) : y.setError());
6405
+ }, p.send(), y.promise;
6406
6406
  }, e.isTokenExpired = function(c) {
6407
6407
  if (!e.tokenParsed || !e.refreshToken && e.flow != "implicit")
6408
6408
  throw "Not authenticated";
@@ -6410,48 +6410,48 @@ function Os(t) {
6410
6410
  return u(
6411
6411
  "[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"
6412
6412
  ), !0;
6413
- var m = e.tokenParsed.exp - Math.ceil((/* @__PURE__ */ new Date()).getTime() / 1e3) + e.timeSkew;
6413
+ var p = e.tokenParsed.exp - Math.ceil((/* @__PURE__ */ new Date()).getTime() / 1e3) + e.timeSkew;
6414
6414
  if (c) {
6415
6415
  if (isNaN(c))
6416
6416
  throw "Invalid minValidity";
6417
- m -= c;
6417
+ p -= c;
6418
6418
  }
6419
- return m < 0;
6419
+ return p < 0;
6420
6420
  }, e.updateToken = function(c) {
6421
- var m = X();
6421
+ var p = X();
6422
6422
  if (!e.refreshToken)
6423
- return m.setError(), m.promise;
6423
+ return p.setError(), p.promise;
6424
6424
  c = c || 5;
6425
6425
  var y = function() {
6426
- var v = !1;
6427
- if (c == -1 ? (v = !0, u("[KEYCLOAK] Refreshing token: forced refresh")) : (!e.tokenParsed || e.isTokenExpired(c)) && (v = !0, u("[KEYCLOAK] Refreshing token: token expired")), !v)
6428
- m.setSuccess(!1);
6426
+ var g = !1;
6427
+ if (c == -1 ? (g = !0, u("[KEYCLOAK] Refreshing token: forced refresh")) : (!e.tokenParsed || e.isTokenExpired(c)) && (g = !0, u("[KEYCLOAK] Refreshing token: token expired")), !g)
6428
+ p.setSuccess(!1);
6429
6429
  else {
6430
6430
  var E = "grant_type=refresh_token&refresh_token=" + e.refreshToken, _ = e.endpoints.token();
6431
- if (r.push(m), r.length == 1) {
6431
+ if (r.push(p), r.length == 1) {
6432
6432
  var k = new XMLHttpRequest();
6433
6433
  k.open("POST", _, !0), k.setRequestHeader(
6434
6434
  "Content-type",
6435
6435
  "application/x-www-form-urlencoded"
6436
6436
  ), k.withCredentials = !0, E += "&client_id=" + encodeURIComponent(e.clientId);
6437
- var L = (/* @__PURE__ */ new Date()).getTime();
6437
+ var x = (/* @__PURE__ */ new Date()).getTime();
6438
6438
  k.onreadystatechange = function() {
6439
6439
  if (k.readyState == 4)
6440
6440
  if (k.status == 200) {
6441
- u("[KEYCLOAK] Token refreshed"), L = (L + (/* @__PURE__ */ new Date()).getTime()) / 2;
6442
- var P = JSON.parse(k.responseText);
6441
+ u("[KEYCLOAK] Token refreshed"), x = (x + (/* @__PURE__ */ new Date()).getTime()) / 2;
6442
+ var L = JSON.parse(k.responseText);
6443
6443
  Y(
6444
- P.access_token,
6445
- P.refresh_token,
6446
- P.id_token,
6447
- L
6444
+ L.access_token,
6445
+ L.refresh_token,
6446
+ L.id_token,
6447
+ x
6448
6448
  ), e.onAuthRefreshSuccess && e.onAuthRefreshSuccess();
6449
- for (var U = r.pop(); U != null; U = r.pop())
6450
- U.setSuccess(!0);
6449
+ for (var B = r.pop(); B != null; B = r.pop())
6450
+ B.setSuccess(!0);
6451
6451
  } else {
6452
6452
  d("[KEYCLOAK] Failed to refresh token"), k.status == 400 && e.clearToken(), e.onAuthRefreshError && e.onAuthRefreshError();
6453
- for (var U = r.pop(); U != null; U = r.pop())
6454
- U.setError(!0);
6453
+ for (var B = r.pop(); B != null; B = r.pop())
6454
+ B.setError(!0);
6455
6455
  }
6456
6456
  }, k.send(E);
6457
6457
  }
@@ -6461,29 +6461,29 @@ function Os(t) {
6461
6461
  var T = ye();
6462
6462
  T.then(function() {
6463
6463
  y();
6464
- }).catch(function(v) {
6465
- m.setError(v);
6464
+ }).catch(function(g) {
6465
+ p.setError(g);
6466
6466
  });
6467
6467
  } else
6468
6468
  y();
6469
- return m.promise;
6469
+ return p.promise;
6470
6470
  }, e.clearToken = function() {
6471
6471
  e.token && (Y(null, null, null), e.onAuthLogout && e.onAuthLogout(), e.loginRequired && e.login());
6472
6472
  };
6473
- function x() {
6473
+ function P() {
6474
6474
  if (typeof e.authServerUrl < "u")
6475
6475
  return e.authServerUrl.charAt(e.authServerUrl.length - 1) == "/" ? e.authServerUrl + "realms/" + encodeURIComponent(e.realm) : e.authServerUrl + "/realms/" + encodeURIComponent(e.realm);
6476
6476
  }
6477
6477
  function w() {
6478
6478
  return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
6479
6479
  }
6480
- function b(c, m) {
6481
- var y = c.code, T = c.error, v = c.prompt, E = (/* @__PURE__ */ new Date()).getTime();
6480
+ function b(c, p) {
6481
+ var y = c.code, T = c.error, g = c.prompt, E = (/* @__PURE__ */ new Date()).getTime();
6482
6482
  if (c.kc_action_status && e.onActionUpdate && e.onActionUpdate(
6483
6483
  c.kc_action_status,
6484
6484
  c.kc_action
6485
6485
  ), T) {
6486
- if (v != "none")
6486
+ if (g != "none")
6487
6487
  if (c.error_description && c.error_description === "authentication_expired")
6488
6488
  e.login(c.loginOptions);
6489
6489
  else {
@@ -6491,100 +6491,100 @@ function Os(t) {
6491
6491
  error: T,
6492
6492
  error_description: c.error_description
6493
6493
  };
6494
- e.onAuthError && e.onAuthError(_), m && m.setError(_);
6494
+ e.onAuthError && e.onAuthError(_), p && p.setError(_);
6495
6495
  }
6496
6496
  else
6497
- m && m.setSuccess();
6497
+ p && p.setSuccess();
6498
6498
  return;
6499
- } else e.flow != "standard" && (c.access_token || c.id_token) && U(c.access_token, null, c.id_token, !0);
6499
+ } else e.flow != "standard" && (c.access_token || c.id_token) && B(c.access_token, null, c.id_token, !0);
6500
6500
  if (e.flow != "implicit" && y) {
6501
- var k = "code=" + y + "&grant_type=authorization_code", L = e.endpoints.token(), P = new XMLHttpRequest();
6502
- P.open("POST", L, !0), P.setRequestHeader(
6501
+ var k = "code=" + y + "&grant_type=authorization_code", x = e.endpoints.token(), L = new XMLHttpRequest();
6502
+ L.open("POST", x, !0), L.setRequestHeader(
6503
6503
  "Content-type",
6504
6504
  "application/x-www-form-urlencoded"
6505
- ), k += "&client_id=" + encodeURIComponent(e.clientId), k += "&redirect_uri=" + c.redirectUri, c.pkceCodeVerifier && (k += "&code_verifier=" + c.pkceCodeVerifier), P.withCredentials = !0, P.onreadystatechange = function() {
6506
- if (P.readyState == 4)
6507
- if (P.status == 200) {
6508
- var V = JSON.parse(P.responseText);
6509
- U(
6505
+ ), k += "&client_id=" + encodeURIComponent(e.clientId), k += "&redirect_uri=" + c.redirectUri, c.pkceCodeVerifier && (k += "&code_verifier=" + c.pkceCodeVerifier), L.withCredentials = !0, L.onreadystatechange = function() {
6506
+ if (L.readyState == 4)
6507
+ if (L.status == 200) {
6508
+ var V = JSON.parse(L.responseText);
6509
+ B(
6510
6510
  V.access_token,
6511
6511
  V.refresh_token,
6512
6512
  V.id_token,
6513
6513
  e.flow === "standard"
6514
6514
  ), ve();
6515
6515
  } else
6516
- e.onAuthError && e.onAuthError(), m && m.setError();
6517
- }, P.send(k);
6516
+ e.onAuthError && e.onAuthError(), p && p.setError();
6517
+ }, L.send(k);
6518
6518
  }
6519
- function U(V, Te, be, we) {
6520
- E = (E + (/* @__PURE__ */ new Date()).getTime()) / 2, Y(V, Te, be, E), l && e.idTokenParsed && e.idTokenParsed.nonce != c.storedNonce ? (u("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), m && m.setError()) : we && (e.onAuthSuccess && e.onAuthSuccess(), m && m.setSuccess());
6519
+ function B(V, Te, be, we) {
6520
+ E = (E + (/* @__PURE__ */ new Date()).getTime()) / 2, Y(V, Te, be, E), l && e.idTokenParsed && e.idTokenParsed.nonce != c.storedNonce ? (u("[KEYCLOAK] Invalid nonce, clearing token"), e.clearToken(), p && p.setError()) : we && (e.onAuthSuccess && e.onAuthSuccess(), p && p.setSuccess());
6521
6521
  }
6522
6522
  }
6523
- function O(c) {
6524
- var m = X(), y;
6523
+ function N(c) {
6524
+ var p = X(), y;
6525
6525
  t ? typeof t == "string" && (y = t) : y = "keycloak.json";
6526
- function T(P) {
6527
- P ? e.endpoints = {
6526
+ function T(L) {
6527
+ L ? e.endpoints = {
6528
6528
  authorize: function() {
6529
- return P.authorization_endpoint;
6529
+ return L.authorization_endpoint;
6530
6530
  },
6531
6531
  token: function() {
6532
- return P.token_endpoint;
6532
+ return L.token_endpoint;
6533
6533
  },
6534
6534
  logout: function() {
6535
- if (!P.end_session_endpoint)
6535
+ if (!L.end_session_endpoint)
6536
6536
  throw "Not supported by the OIDC server";
6537
- return P.end_session_endpoint;
6537
+ return L.end_session_endpoint;
6538
6538
  },
6539
6539
  checkSessionIframe: function() {
6540
- if (!P.check_session_iframe)
6540
+ if (!L.check_session_iframe)
6541
6541
  throw "Not supported by the OIDC server";
6542
- return P.check_session_iframe;
6542
+ return L.check_session_iframe;
6543
6543
  },
6544
6544
  register: function() {
6545
6545
  throw 'Redirection to "Register user" page not supported in standard OIDC mode';
6546
6546
  },
6547
6547
  userinfo: function() {
6548
- if (!P.userinfo_endpoint)
6548
+ if (!L.userinfo_endpoint)
6549
6549
  throw "Not supported by the OIDC server";
6550
- return P.userinfo_endpoint;
6550
+ return L.userinfo_endpoint;
6551
6551
  }
6552
6552
  } : e.endpoints = {
6553
6553
  authorize: function() {
6554
- return x() + "/protocol/openid-connect/auth";
6554
+ return P() + "/protocol/openid-connect/auth";
6555
6555
  },
6556
6556
  token: function() {
6557
- return x() + "/protocol/openid-connect/token";
6557
+ return P() + "/protocol/openid-connect/token";
6558
6558
  },
6559
6559
  logout: function() {
6560
- return x() + "/protocol/openid-connect/logout";
6560
+ return P() + "/protocol/openid-connect/logout";
6561
6561
  },
6562
6562
  checkSessionIframe: function() {
6563
- var U = x() + "/protocol/openid-connect/login-status-iframe.html";
6564
- return e.iframeVersion && (U = U + "?version=" + e.iframeVersion), U;
6563
+ var B = P() + "/protocol/openid-connect/login-status-iframe.html";
6564
+ return e.iframeVersion && (B = B + "?version=" + e.iframeVersion), B;
6565
6565
  },
6566
6566
  thirdPartyCookiesIframe: function() {
6567
- var U = x() + "/protocol/openid-connect/3p-cookies/step1.html";
6568
- return e.iframeVersion && (U = U + "?version=" + e.iframeVersion), U;
6567
+ var B = P() + "/protocol/openid-connect/3p-cookies/step1.html";
6568
+ return e.iframeVersion && (B = B + "?version=" + e.iframeVersion), B;
6569
6569
  },
6570
6570
  register: function() {
6571
- return x() + "/protocol/openid-connect/registrations";
6571
+ return P() + "/protocol/openid-connect/registrations";
6572
6572
  },
6573
6573
  userinfo: function() {
6574
- return x() + "/protocol/openid-connect/userinfo";
6574
+ return P() + "/protocol/openid-connect/userinfo";
6575
6575
  }
6576
6576
  };
6577
6577
  }
6578
6578
  if (y) {
6579
- var v = new XMLHttpRequest();
6580
- v.open("GET", y, !0), v.setRequestHeader("Accept", "application/json"), v.onreadystatechange = function() {
6581
- if (v.readyState == 4)
6582
- if (v.status == 200 || B(v)) {
6583
- var P = JSON.parse(v.responseText);
6584
- e.authServerUrl = P["auth-server-url"], e.realm = P.realm, e.clientId = P.resource, T(null), m.setSuccess();
6579
+ var g = new XMLHttpRequest();
6580
+ g.open("GET", y, !0), g.setRequestHeader("Accept", "application/json"), g.onreadystatechange = function() {
6581
+ if (g.readyState == 4)
6582
+ if (g.status == 200 || H(g)) {
6583
+ var L = JSON.parse(g.responseText);
6584
+ e.authServerUrl = L["auth-server-url"], e.realm = L.realm, e.clientId = L.resource, T(null), p.setSuccess();
6585
6585
  } else
6586
- m.setError();
6587
- }, v.send();
6586
+ p.setError();
6587
+ }, g.send();
6588
6588
  } else {
6589
6589
  if (!t.clientId)
6590
6590
  throw "clientId missing";
@@ -6592,19 +6592,19 @@ function Os(t) {
6592
6592
  var E = t.oidcProvider;
6593
6593
  if (E)
6594
6594
  if (typeof E == "string") {
6595
- var L;
6596
- E.charAt(E.length - 1) == "/" ? L = E + ".well-known/openid-configuration" : L = E + "/.well-known/openid-configuration";
6597
- var v = new XMLHttpRequest();
6598
- v.open("GET", L, !0), v.setRequestHeader("Accept", "application/json"), v.onreadystatechange = function() {
6599
- if (v.readyState == 4)
6600
- if (v.status == 200 || B(v)) {
6601
- var U = JSON.parse(v.responseText);
6602
- T(U), m.setSuccess();
6595
+ var x;
6596
+ E.charAt(E.length - 1) == "/" ? x = E + ".well-known/openid-configuration" : x = E + "/.well-known/openid-configuration";
6597
+ var g = new XMLHttpRequest();
6598
+ g.open("GET", x, !0), g.setRequestHeader("Accept", "application/json"), g.onreadystatechange = function() {
6599
+ if (g.readyState == 4)
6600
+ if (g.status == 200 || H(g)) {
6601
+ var B = JSON.parse(g.responseText);
6602
+ T(B), p.setSuccess();
6603
6603
  } else
6604
- m.setError();
6605
- }, v.send();
6604
+ p.setError();
6605
+ }, g.send();
6606
6606
  } else
6607
- T(E), m.setSuccess();
6607
+ T(E), p.setSuccess();
6608
6608
  else {
6609
6609
  if (!t.url) {
6610
6610
  for (var _ = document.getElementsByTagName("script"), k = 0; k < _.length; k++)
@@ -6618,48 +6618,48 @@ function Os(t) {
6618
6618
  }
6619
6619
  if (!t.realm)
6620
6620
  throw "realm missing";
6621
- e.authServerUrl = t.url, e.realm = t.realm, T(null), m.setSuccess();
6621
+ e.authServerUrl = t.url, e.realm = t.realm, T(null), p.setSuccess();
6622
6622
  }
6623
6623
  }
6624
- return m.promise;
6624
+ return p.promise;
6625
6625
  }
6626
- function B(c) {
6626
+ function H(c) {
6627
6627
  return c.status == 0 && c.responseText && c.responseURL.startsWith("file:");
6628
6628
  }
6629
- function Y(c, m, y, T) {
6630
- if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), m ? (e.refreshToken = m, e.refreshTokenParsed = Cr(m)) : (delete e.refreshToken, delete e.refreshTokenParsed), y ? (e.idToken = y, e.idTokenParsed = Cr(y)) : (delete e.idToken, delete e.idTokenParsed), c) {
6629
+ function Y(c, p, y, T) {
6630
+ if (e.tokenTimeoutHandle && (clearTimeout(e.tokenTimeoutHandle), e.tokenTimeoutHandle = null), p ? (e.refreshToken = p, e.refreshTokenParsed = Cr(p)) : (delete e.refreshToken, delete e.refreshTokenParsed), y ? (e.idToken = y, e.idTokenParsed = Cr(y)) : (delete e.idToken, delete e.idTokenParsed), c) {
6631
6631
  if (e.token = c, e.tokenParsed = Cr(c), e.sessionId = e.tokenParsed.sid, e.authenticated = !0, e.subject = e.tokenParsed.sub, e.realmAccess = e.tokenParsed.realm_access, e.resourceAccess = e.tokenParsed.resource_access, T && (e.timeSkew = Math.floor(T / 1e3) - e.tokenParsed.iat), e.timeSkew != null && (u(
6632
6632
  "[KEYCLOAK] Estimated time difference between browser and server is " + e.timeSkew + " seconds"
6633
6633
  ), e.onTokenExpired)) {
6634
- var v = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
6634
+ var g = (e.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + e.timeSkew) * 1e3;
6635
6635
  u(
6636
- "[KEYCLOAK] Token expires in " + Math.round(v / 1e3) + " s"
6637
- ), v <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(
6636
+ "[KEYCLOAK] Token expires in " + Math.round(g / 1e3) + " s"
6637
+ ), g <= 0 ? e.onTokenExpired() : e.tokenTimeoutHandle = setTimeout(
6638
6638
  e.onTokenExpired,
6639
- v
6639
+ g
6640
6640
  );
6641
6641
  }
6642
6642
  } else
6643
6643
  delete e.token, delete e.tokenParsed, delete e.subject, delete e.realmAccess, delete e.resourceAccess, e.authenticated = !1;
6644
6644
  }
6645
6645
  function ge() {
6646
- var c = "0123456789abcdef", m = S(36, c).split("");
6647
- m[14] = "4", m[19] = c.substr(m[19] & 3 | 8, 1), m[8] = m[13] = m[18] = m[23] = "-";
6648
- var y = m.join("");
6646
+ var c = "0123456789abcdef", p = S(36, c).split("");
6647
+ p[14] = "4", p[19] = c.substr(p[19] & 3 | 8, 1), p[8] = p[13] = p[18] = p[23] = "-";
6648
+ var y = p.join("");
6649
6649
  return y;
6650
6650
  }
6651
- function ae(c) {
6652
- var m = Be(c);
6653
- if (m) {
6654
- var y = o.get(m.state);
6655
- return y && (m.valid = !0, m.redirectUri = y.redirectUri, m.storedNonce = y.nonce, m.prompt = y.prompt, m.pkceCodeVerifier = y.pkceCodeVerifier, m.loginOptions = y.loginOptions), m;
6651
+ function le(c) {
6652
+ var p = Be(c);
6653
+ if (p) {
6654
+ var y = o.get(p.state);
6655
+ 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;
6656
6656
  }
6657
6657
  }
6658
6658
  function Be(c) {
6659
- var m;
6659
+ var p;
6660
6660
  switch (e.flow) {
6661
6661
  case "standard":
6662
- m = [
6662
+ p = [
6663
6663
  "code",
6664
6664
  "state",
6665
6665
  "session_state",
@@ -6669,7 +6669,7 @@ function Os(t) {
6669
6669
  ];
6670
6670
  break;
6671
6671
  case "implicit":
6672
- m = [
6672
+ p = [
6673
6673
  "access_token",
6674
6674
  "token_type",
6675
6675
  "id_token",
@@ -6682,7 +6682,7 @@ function Os(t) {
6682
6682
  ];
6683
6683
  break;
6684
6684
  case "hybrid":
6685
- m = [
6685
+ p = [
6686
6686
  "access_token",
6687
6687
  "token_type",
6688
6688
  "id_token",
@@ -6696,57 +6696,57 @@ function Os(t) {
6696
6696
  ];
6697
6697
  break;
6698
6698
  }
6699
- m.push("error"), m.push("error_description"), m.push("error_uri");
6700
- var y = c.indexOf("?"), T = c.indexOf("#"), v, E;
6701
- if (e.responseMode === "query" && y !== -1 ? (v = c.substring(0, y), E = ce(
6699
+ p.push("error"), p.push("error_description"), p.push("error_uri");
6700
+ var y = c.indexOf("?"), T = c.indexOf("#"), g, E;
6701
+ if (e.responseMode === "query" && y !== -1 ? (g = c.substring(0, y), E = ce(
6702
6702
  c.substring(
6703
6703
  y + 1,
6704
6704
  T !== -1 ? T : c.length
6705
6705
  ),
6706
- m
6707
- ), E.paramsString !== "" && (v += "?" + E.paramsString), T !== -1 && (v += c.substring(T))) : e.responseMode === "fragment" && T !== -1 && (v = c.substring(0, T), E = ce(
6706
+ p
6707
+ ), E.paramsString !== "" && (g += "?" + E.paramsString), T !== -1 && (g += c.substring(T))) : e.responseMode === "fragment" && T !== -1 && (g = c.substring(0, T), E = ce(
6708
6708
  c.substring(T + 1),
6709
- m
6710
- ), E.paramsString !== "" && (v += "#" + E.paramsString)), E && E.oauthParams) {
6709
+ p
6710
+ ), E.paramsString !== "" && (g += "#" + E.paramsString)), E && E.oauthParams) {
6711
6711
  if (e.flow === "standard" || e.flow === "hybrid") {
6712
6712
  if ((E.oauthParams.code || E.oauthParams.error) && E.oauthParams.state)
6713
- return E.oauthParams.newUrl = v, E.oauthParams;
6713
+ return E.oauthParams.newUrl = g, E.oauthParams;
6714
6714
  } else if (e.flow === "implicit" && (E.oauthParams.access_token || E.oauthParams.error) && E.oauthParams.state)
6715
- return E.oauthParams.newUrl = v, E.oauthParams;
6715
+ return E.oauthParams.newUrl = g, E.oauthParams;
6716
6716
  }
6717
6717
  }
6718
- function ce(c, m) {
6718
+ function ce(c, p) {
6719
6719
  for (var y = c.split("&"), T = {
6720
6720
  paramsString: "",
6721
6721
  oauthParams: {}
6722
- }, v = 0; v < y.length; v++) {
6723
- var E = y[v].indexOf("="), _ = y[v].slice(0, E);
6724
- m.indexOf(_) !== -1 ? T.oauthParams[_] = y[v].slice(E + 1) : (T.paramsString !== "" && (T.paramsString += "&"), T.paramsString += y[v]);
6722
+ }, g = 0; g < y.length; g++) {
6723
+ var E = y[g].indexOf("="), _ = y[g].slice(0, E);
6724
+ p.indexOf(_) !== -1 ? T.oauthParams[_] = y[g].slice(E + 1) : (T.paramsString !== "" && (T.paramsString += "&"), T.paramsString += y[g]);
6725
6725
  }
6726
6726
  return T;
6727
6727
  }
6728
6728
  function X() {
6729
6729
  var c = {
6730
- setSuccess: function(m) {
6731
- c.resolve(m);
6730
+ setSuccess: function(p) {
6731
+ c.resolve(p);
6732
6732
  },
6733
- setError: function(m) {
6734
- c.reject(m);
6733
+ setError: function(p) {
6734
+ c.reject(p);
6735
6735
  }
6736
6736
  };
6737
- return c.promise = new Promise(function(m, y) {
6738
- c.resolve = m, c.reject = y;
6737
+ return c.promise = new Promise(function(p, y) {
6738
+ c.resolve = p, c.reject = y;
6739
6739
  }), c;
6740
6740
  }
6741
- function N(c, m, y) {
6742
- var T = null, v = new Promise(function(E, _) {
6741
+ function D(c, p, y) {
6742
+ var T = null, g = new Promise(function(E, _) {
6743
6743
  T = setTimeout(function() {
6744
6744
  _({
6745
6745
  error: y
6746
6746
  });
6747
- }, m);
6747
+ }, p);
6748
6748
  });
6749
- return Promise.race([c, v]).finally(
6749
+ return Promise.race([c, g]).finally(
6750
6750
  function() {
6751
6751
  clearTimeout(T);
6752
6752
  }
@@ -6756,28 +6756,28 @@ function Os(t) {
6756
6756
  var c = X();
6757
6757
  if (!i.enable || i.iframe)
6758
6758
  return c.setSuccess(), c.promise;
6759
- var m = document.createElement("iframe");
6760
- i.iframe = m, m.onload = function() {
6761
- var v = e.endpoints.authorize();
6762
- v.charAt(0) === "/" ? i.iframeOrigin = w() : i.iframeOrigin = v.substring(
6759
+ var p = document.createElement("iframe");
6760
+ i.iframe = p, p.onload = function() {
6761
+ var g = e.endpoints.authorize();
6762
+ g.charAt(0) === "/" ? i.iframeOrigin = w() : i.iframeOrigin = g.substring(
6763
6763
  0,
6764
- v.indexOf("/", 8)
6764
+ g.indexOf("/", 8)
6765
6765
  ), c.setSuccess();
6766
6766
  };
6767
6767
  var y = e.endpoints.checkSessionIframe();
6768
- m.setAttribute("src", y), m.setAttribute(
6768
+ p.setAttribute("src", y), p.setAttribute(
6769
6769
  "sandbox",
6770
6770
  "allow-storage-access-by-user-activation allow-scripts allow-same-origin"
6771
- ), m.setAttribute("title", "keycloak-session-iframe"), m.style.display = "none", document.body.appendChild(m);
6772
- var T = function(v) {
6773
- if (!(v.origin !== i.iframeOrigin || i.iframe.contentWindow !== v.source) && (v.data == "unchanged" || v.data == "changed" || v.data == "error")) {
6774
- v.data != "unchanged" && e.clearToken();
6771
+ ), p.setAttribute("title", "keycloak-session-iframe"), p.style.display = "none", document.body.appendChild(p);
6772
+ var T = function(g) {
6773
+ if (!(g.origin !== i.iframeOrigin || i.iframe.contentWindow !== g.source) && (g.data == "unchanged" || g.data == "changed" || g.data == "error")) {
6774
+ g.data != "unchanged" && e.clearToken();
6775
6775
  for (var E = i.callbackList.splice(
6776
6776
  0,
6777
6777
  i.callbackList.length
6778
6778
  ), _ = E.length - 1; _ >= 0; --_) {
6779
6779
  var k = E[_];
6780
- v.data == "error" ? k.setError() : k.setSuccess(v.data == "unchanged");
6780
+ g.data == "error" ? k.setError() : k.setSuccess(g.data == "unchanged");
6781
6781
  }
6782
6782
  }
6783
6783
  };
@@ -6793,10 +6793,10 @@ function Os(t) {
6793
6793
  function ye() {
6794
6794
  var c = X();
6795
6795
  if (i.iframe && i.iframeOrigin) {
6796
- var m = e.clientId + " " + (e.sessionId ? e.sessionId : "");
6796
+ var p = e.clientId + " " + (e.sessionId ? e.sessionId : "");
6797
6797
  i.callbackList.push(c);
6798
6798
  var y = i.iframeOrigin;
6799
- i.callbackList.length == 1 && i.iframe.contentWindow.postMessage(m, y);
6799
+ i.callbackList.length == 1 && i.iframe.contentWindow.postMessage(p, y);
6800
6800
  } else
6801
6801
  c.setSuccess();
6802
6802
  return c.promise;
@@ -6804,28 +6804,28 @@ function Os(t) {
6804
6804
  function Je() {
6805
6805
  var c = X();
6806
6806
  if (i.enable || e.silentCheckSsoRedirectUri) {
6807
- var m = document.createElement("iframe");
6808
- m.setAttribute(
6807
+ var p = document.createElement("iframe");
6808
+ p.setAttribute(
6809
6809
  "src",
6810
6810
  e.endpoints.thirdPartyCookiesIframe()
6811
- ), m.setAttribute(
6811
+ ), p.setAttribute(
6812
6812
  "sandbox",
6813
6813
  "allow-storage-access-by-user-activation allow-scripts allow-same-origin"
6814
- ), m.setAttribute("title", "keycloak-3p-check-iframe"), m.style.display = "none", document.body.appendChild(m);
6814
+ ), p.setAttribute("title", "keycloak-3p-check-iframe"), p.style.display = "none", document.body.appendChild(p);
6815
6815
  var y = function(T) {
6816
- m.contentWindow === T.source && (T.data !== "supported" && T.data !== "unsupported" || (T.data === "unsupported" && (d(
6816
+ p.contentWindow === T.source && (T.data !== "supported" && T.data !== "unsupported" || (T.data === "unsupported" && (d(
6817
6817
  `[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
6818
6818
 
6819
6819
  - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
6820
6820
  - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
6821
6821
 
6822
6822
  For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`
6823
- ), i.enable = !1, e.silentCheckSsoFallback && (e.silentCheckSsoRedirectUri = !1)), document.body.removeChild(m), window.removeEventListener("message", y), c.setSuccess()));
6823
+ ), i.enable = !1, e.silentCheckSsoFallback && (e.silentCheckSsoRedirectUri = !1)), document.body.removeChild(p), window.removeEventListener("message", y), c.setSuccess()));
6824
6824
  };
6825
6825
  window.addEventListener("message", y, !1);
6826
6826
  } else
6827
6827
  c.setSuccess();
6828
- return N(
6828
+ return D(
6829
6829
  c.promise,
6830
6830
  e.messageReceiveTimeout,
6831
6831
  "Timeout when waiting for 3rd party check iframe message."
@@ -6842,7 +6842,7 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
6842
6842
  window.location.replace(e.createLogoutUrl(_));
6843
6843
  return;
6844
6844
  }
6845
- const L = e.createLogoutUrl(_), P = await fetch(L, {
6845
+ const x = e.createLogoutUrl(_), L = await fetch(x, {
6846
6846
  method: "POST",
6847
6847
  headers: {
6848
6848
  "Content-Type": "application/x-www-form-urlencoded"
@@ -6856,11 +6856,11 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
6856
6856
  )
6857
6857
  })
6858
6858
  });
6859
- if (P.redirected) {
6860
- window.location.href = P.url;
6859
+ if (L.redirected) {
6860
+ window.location.href = L.url;
6861
6861
  return;
6862
6862
  }
6863
- if (P.ok) {
6863
+ if (L.ok) {
6864
6864
  window.location.reload();
6865
6865
  return;
6866
6866
  }
@@ -6885,26 +6885,26 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
6885
6885
  };
6886
6886
  if (c == "cordova") {
6887
6887
  i.enable = !1;
6888
- var m = function(_, k, L) {
6888
+ var p = function(_, k, x) {
6889
6889
  return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(
6890
6890
  _,
6891
6891
  k,
6892
- L
6893
- ) : window.open(_, k, L);
6892
+ x
6893
+ ) : window.open(_, k, x);
6894
6894
  }, y = function(_) {
6895
6895
  return _ && _.cordovaOptions ? Object.keys(_.cordovaOptions).reduce(
6896
- function(k, L) {
6897
- return k[L] = _.cordovaOptions[L], k;
6896
+ function(k, x) {
6897
+ return k[x] = _.cordovaOptions[x], k;
6898
6898
  },
6899
6899
  {}
6900
6900
  ) : {};
6901
6901
  }, T = function(_) {
6902
- return Object.keys(_).reduce(function(k, L) {
6902
+ return Object.keys(_).reduce(function(k, x) {
6903
6903
  return k.push(
6904
- L + "=" + _[L]
6904
+ x + "=" + _[x]
6905
6905
  ), k;
6906
6906
  }, []).join(",");
6907
- }, v = function(_) {
6907
+ }, g = function(_) {
6908
6908
  var k = y(_);
6909
6909
  return k.location = "no", _ && _.prompt == "none" && (k.hidden = "yes"), T(k);
6910
6910
  }, E = function() {
@@ -6912,55 +6912,55 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
6912
6912
  };
6913
6913
  return {
6914
6914
  login: function(_) {
6915
- var k = X(), L = v(_), P = e.createLoginUrl(_), U = m(
6916
- P,
6915
+ var k = X(), x = g(_), L = e.createLoginUrl(_), B = p(
6916
+ L,
6917
6917
  "_blank",
6918
- L
6918
+ x
6919
6919
  ), V = !1, Te = !1, be = function() {
6920
- Te = !0, U.close();
6920
+ Te = !0, B.close();
6921
6921
  };
6922
- return U.addEventListener("loadstart", function(we) {
6922
+ return B.addEventListener("loadstart", function(we) {
6923
6923
  if (we.url.indexOf(E()) == 0) {
6924
- var it = ae(we.url);
6924
+ var it = le(we.url);
6925
6925
  b(it, k), be(), V = !0;
6926
6926
  }
6927
- }), U.addEventListener("loaderror", function(we) {
6927
+ }), B.addEventListener("loaderror", function(we) {
6928
6928
  if (!V)
6929
6929
  if (we.url.indexOf(E()) == 0) {
6930
- var it = ae(we.url);
6930
+ var it = le(we.url);
6931
6931
  b(it, k), be(), V = !0;
6932
6932
  } else
6933
6933
  k.setError(), be();
6934
- }), U.addEventListener("exit", function(we) {
6934
+ }), B.addEventListener("exit", function(we) {
6935
6935
  Te || k.setError({
6936
6936
  reason: "closed_by_user"
6937
6937
  });
6938
6938
  }), k.promise;
6939
6939
  },
6940
6940
  logout: function(_) {
6941
- var k = X(), L = e.createLogoutUrl(_), P = m(
6942
- L,
6941
+ var k = X(), x = e.createLogoutUrl(_), L = p(
6942
+ x,
6943
6943
  "_blank",
6944
6944
  "location=no,hidden=yes,clearcache=yes"
6945
- ), U;
6946
- return P.addEventListener("loadstart", function(V) {
6947
- V.url.indexOf(E()) == 0 && P.close();
6948
- }), P.addEventListener("loaderror", function(V) {
6949
- V.url.indexOf(E()) == 0 || (U = !0), P.close();
6950
- }), P.addEventListener("exit", function(V) {
6951
- U ? k.setError() : (e.clearToken(), k.setSuccess());
6945
+ ), B;
6946
+ return L.addEventListener("loadstart", function(V) {
6947
+ V.url.indexOf(E()) == 0 && L.close();
6948
+ }), L.addEventListener("loaderror", function(V) {
6949
+ V.url.indexOf(E()) == 0 || (B = !0), L.close();
6950
+ }), L.addEventListener("exit", function(V) {
6951
+ B ? k.setError() : (e.clearToken(), k.setSuccess());
6952
6952
  }), k.promise;
6953
6953
  },
6954
6954
  register: function(_) {
6955
- var k = X(), L = e.createRegisterUrl(), P = v(_), U = m(
6956
- L,
6955
+ var k = X(), x = e.createRegisterUrl(), L = g(_), B = p(
6956
+ x,
6957
6957
  "_blank",
6958
- P
6958
+ L
6959
6959
  );
6960
- return U.addEventListener("loadstart", function(V) {
6960
+ return B.addEventListener("loadstart", function(V) {
6961
6961
  if (V.url.indexOf(E()) == 0) {
6962
- U.close();
6963
- var Te = ae(V.url);
6962
+ B.close();
6963
+ var Te = le(V.url);
6964
6964
  b(Te, k);
6965
6965
  }
6966
6966
  }), k.promise;
@@ -6968,13 +6968,13 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
6968
6968
  accountManagement: function() {
6969
6969
  var _ = e.createAccountUrl();
6970
6970
  if (typeof _ < "u") {
6971
- var k = m(
6971
+ var k = p(
6972
6972
  _,
6973
6973
  "_blank",
6974
6974
  "location=no"
6975
6975
  );
6976
- k.addEventListener("loadstart", function(L) {
6977
- L.url.indexOf(E()) == 0 && k.close();
6976
+ k.addEventListener("loadstart", function(x) {
6977
+ x.url.indexOf(E()) == 0 && k.close();
6978
6978
  });
6979
6979
  } else
6980
6980
  throw "Not supported by the OIDC server";
@@ -6987,26 +6987,26 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
6987
6987
  if (c == "cordova-native")
6988
6988
  return i.enable = !1, {
6989
6989
  login: function(_) {
6990
- var k = X(), L = e.createLoginUrl(_);
6991
- return universalLinks.subscribe("keycloak", function(P) {
6990
+ var k = X(), x = e.createLoginUrl(_);
6991
+ return universalLinks.subscribe("keycloak", function(L) {
6992
6992
  universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
6993
- var U = ae(P.url);
6994
- b(U, k);
6995
- }), window.cordova.plugins.browsertab.openUrl(L), k.promise;
6993
+ var B = le(L.url);
6994
+ b(B, k);
6995
+ }), window.cordova.plugins.browsertab.openUrl(x), k.promise;
6996
6996
  },
6997
6997
  logout: function(_) {
6998
- var k = X(), L = e.createLogoutUrl(_);
6999
- return universalLinks.subscribe("keycloak", function(P) {
6998
+ var k = X(), x = e.createLogoutUrl(_);
6999
+ return universalLinks.subscribe("keycloak", function(L) {
7000
7000
  universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), e.clearToken(), k.setSuccess();
7001
- }), window.cordova.plugins.browsertab.openUrl(L), k.promise;
7001
+ }), window.cordova.plugins.browsertab.openUrl(x), k.promise;
7002
7002
  },
7003
7003
  register: function(_) {
7004
- var k = X(), L = e.createRegisterUrl(_);
7005
- return universalLinks.subscribe("keycloak", function(P) {
7004
+ var k = X(), x = e.createRegisterUrl(_);
7005
+ return universalLinks.subscribe("keycloak", function(L) {
7006
7006
  universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
7007
- var U = ae(P.url);
7008
- b(U, k);
7009
- }), window.cordova.plugins.browsertab.openUrl(L), k.promise;
7007
+ var B = le(L.url);
7008
+ b(B, k);
7009
+ }), window.cordova.plugins.browsertab.openUrl(x), k.promise;
7010
7010
  },
7011
7011
  accountManagement: function() {
7012
7012
  var _ = e.createAccountUrl();
@@ -7026,28 +7026,28 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
7026
7026
  return new Qe();
7027
7027
  localStorage.setItem("kc-test", "test"), localStorage.removeItem("kc-test");
7028
7028
  var c = this;
7029
- function m() {
7029
+ function p() {
7030
7030
  for (var y = (/* @__PURE__ */ new Date()).getTime(), T = 0; T < localStorage.length; T++) {
7031
- var v = localStorage.key(T);
7032
- if (v && v.indexOf("kc-callback-") == 0) {
7033
- var E = localStorage.getItem(v);
7031
+ var g = localStorage.key(T);
7032
+ if (g && g.indexOf("kc-callback-") == 0) {
7033
+ var E = localStorage.getItem(g);
7034
7034
  if (E)
7035
7035
  try {
7036
7036
  var _ = JSON.parse(E).expires;
7037
- (!_ || _ < y) && localStorage.removeItem(v);
7037
+ (!_ || _ < y) && localStorage.removeItem(g);
7038
7038
  } catch {
7039
- localStorage.removeItem(v);
7039
+ localStorage.removeItem(g);
7040
7040
  }
7041
7041
  }
7042
7042
  }
7043
7043
  }
7044
7044
  c.get = function(y) {
7045
7045
  if (y) {
7046
- var T = "kc-callback-" + y, v = localStorage.getItem(T);
7047
- return v && (localStorage.removeItem(T), v = JSON.parse(v)), m(), v;
7046
+ var T = "kc-callback-" + y, g = localStorage.getItem(T);
7047
+ return g && (localStorage.removeItem(T), g = JSON.parse(g)), p(), g;
7048
7048
  }
7049
7049
  }, c.add = function(y) {
7050
- m();
7050
+ p();
7051
7051
  var T = "kc-callback-" + y.state;
7052
7052
  y.expires = (/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3, localStorage.setItem(T, JSON.stringify(y));
7053
7053
  };
@@ -7055,34 +7055,34 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
7055
7055
  if (!(this instanceof et))
7056
7056
  return new et();
7057
7057
  var c = this;
7058
- c.get = function(v) {
7059
- if (v) {
7060
- var E = y("kc-callback-" + v);
7061
- if (T("kc-callback-" + v, "", m(-100)), E)
7058
+ c.get = function(g) {
7059
+ if (g) {
7060
+ var E = y("kc-callback-" + g);
7061
+ if (T("kc-callback-" + g, "", p(-100)), E)
7062
7062
  return JSON.parse(E);
7063
7063
  }
7064
- }, c.add = function(v) {
7064
+ }, c.add = function(g) {
7065
7065
  T(
7066
- "kc-callback-" + v.state,
7067
- JSON.stringify(v),
7068
- m(60)
7066
+ "kc-callback-" + g.state,
7067
+ JSON.stringify(g),
7068
+ p(60)
7069
7069
  );
7070
- }, c.removeItem = function(v) {
7071
- T(v, "", m(-100));
7070
+ }, c.removeItem = function(g) {
7071
+ T(g, "", p(-100));
7072
7072
  };
7073
- var m = function(v) {
7073
+ var p = function(g) {
7074
7074
  var E = /* @__PURE__ */ new Date();
7075
- return E.setTime(E.getTime() + v * 60 * 1e3), E;
7076
- }, y = function(v) {
7077
- for (var E = v + "=", _ = document.cookie.split(";"), k = 0; k < _.length; k++) {
7078
- for (var L = _[k]; L.charAt(0) == " "; )
7079
- L = L.substring(1);
7080
- if (L.indexOf(E) == 0)
7081
- return L.substring(E.length, L.length);
7075
+ return E.setTime(E.getTime() + g * 60 * 1e3), E;
7076
+ }, y = function(g) {
7077
+ for (var E = g + "=", _ = document.cookie.split(";"), k = 0; k < _.length; k++) {
7078
+ for (var x = _[k]; x.charAt(0) == " "; )
7079
+ x = x.substring(1);
7080
+ if (x.indexOf(E) == 0)
7081
+ return x.substring(E.length, x.length);
7082
7082
  }
7083
7083
  return "";
7084
- }, T = function(v, E, _) {
7085
- var k = v + "=" + E + "; expires=" + _.toUTCString() + "; ";
7084
+ }, T = function(g, E, _) {
7085
+ var k = g + "=" + E + "; expires=" + _.toUTCString() + "; ";
7086
7086
  document.cookie = k;
7087
7087
  };
7088
7088
  };
@@ -7132,7 +7132,7 @@ class Xf {
7132
7132
  }
7133
7133
  }
7134
7134
  let $s;
7135
- function Hm(t) {
7135
+ function jm(t) {
7136
7136
  $s = new Xf(t);
7137
7137
  }
7138
7138
  const ki = () => $s;
@@ -7163,15 +7163,15 @@ function nm(t, e, n = {}) {
7163
7163
  const a = tm(() => r && "ResizeObserver" in r), s = () => {
7164
7164
  i && (i.disconnect(), i = void 0);
7165
7165
  }, l = de(() => {
7166
- const p = Oi(t);
7167
- return Array.isArray(p) ? p.map((g) => Ci(g)) : [Ci(p)];
7166
+ const m = Oi(t);
7167
+ return Array.isArray(m) ? m.map((v) => Ci(v)) : [Ci(m)];
7168
7168
  }), u = Wn(
7169
7169
  l,
7170
- (p) => {
7170
+ (m) => {
7171
7171
  if (s(), a.value && r) {
7172
7172
  i = new ResizeObserver(e);
7173
- for (const g of p)
7174
- g && i.observe(g, o);
7173
+ for (const v of m)
7174
+ v && i.observe(v, o);
7175
7175
  }
7176
7176
  },
7177
7177
  { immediate: !0, flush: "post" }
@@ -7200,8 +7200,8 @@ function im() {
7200
7200
  "warn",
7201
7201
  "error"
7202
7202
  ], i = {}, a = null;
7203
- function s(A, x) {
7204
- var w = A[x];
7203
+ function s(A, P) {
7204
+ var w = A[P];
7205
7205
  if (typeof w.bind == "function")
7206
7206
  return w.bind(A);
7207
7207
  try {
@@ -7219,26 +7219,26 @@ function im() {
7219
7219
  return A === "debug" && (A = "log"), typeof console === n ? !1 : A === "trace" && r ? l : console[A] !== void 0 ? s(console, A) : console.log !== void 0 ? s(console, "log") : e;
7220
7220
  }
7221
7221
  function d() {
7222
- for (var A = this.getLevel(), x = 0; x < o.length; x++) {
7223
- var w = o[x];
7224
- this[w] = x < A ? e : this.methodFactory(w, A, this.name);
7222
+ for (var A = this.getLevel(), P = 0; P < o.length; P++) {
7223
+ var w = o[P];
7224
+ this[w] = P < A ? e : this.methodFactory(w, A, this.name);
7225
7225
  }
7226
7226
  if (this.log = this.debug, typeof console === n && A < this.levels.SILENT)
7227
7227
  return "No console available for logging";
7228
7228
  }
7229
- function p(A) {
7229
+ function m(A) {
7230
7230
  return function() {
7231
7231
  typeof console !== n && (d.call(this), this[A].apply(this, arguments));
7232
7232
  };
7233
7233
  }
7234
- function g(A, x, w) {
7235
- return u(A) || p.apply(this, arguments);
7234
+ function v(A, P, w) {
7235
+ return u(A) || m.apply(this, arguments);
7236
7236
  }
7237
- function S(A, x) {
7238
- var w = this, b, O, B, Y = "loglevel";
7237
+ function S(A, P) {
7238
+ var w = this, b, N, H, Y = "loglevel";
7239
7239
  typeof A == "string" ? Y += ":" + A : typeof A == "symbol" && (Y = void 0);
7240
- function ge(N) {
7241
- var J = (o[N] || "silent").toUpperCase();
7240
+ function ge(D) {
7241
+ var J = (o[D] || "silent").toUpperCase();
7242
7242
  if (!(typeof window === n || !Y)) {
7243
7243
  try {
7244
7244
  window.localStorage[Y] = J;
@@ -7251,22 +7251,22 @@ function im() {
7251
7251
  }
7252
7252
  }
7253
7253
  }
7254
- function ae() {
7255
- var N;
7254
+ function le() {
7255
+ var D;
7256
7256
  if (!(typeof window === n || !Y)) {
7257
7257
  try {
7258
- N = window.localStorage[Y];
7258
+ D = window.localStorage[Y];
7259
7259
  } catch {
7260
7260
  }
7261
- if (typeof N === n)
7261
+ if (typeof D === n)
7262
7262
  try {
7263
7263
  var J = window.document.cookie, ve = encodeURIComponent(Y), ye = J.indexOf(ve + "=");
7264
- ye !== -1 && (N = /^([^;]+)/.exec(
7264
+ ye !== -1 && (D = /^([^;]+)/.exec(
7265
7265
  J.slice(ye + ve.length + 1)
7266
7266
  )[1]);
7267
7267
  } catch {
7268
7268
  }
7269
- return w.levels[N] === void 0 && (N = void 0), N;
7269
+ return w.levels[D] === void 0 && (D = void 0), D;
7270
7270
  }
7271
7271
  }
7272
7272
  function Be() {
@@ -7281,11 +7281,11 @@ function im() {
7281
7281
  }
7282
7282
  }
7283
7283
  }
7284
- function ce(N) {
7285
- var J = N;
7284
+ function ce(D) {
7285
+ var J = D;
7286
7286
  if (typeof J == "string" && w.levels[J.toUpperCase()] !== void 0 && (J = w.levels[J.toUpperCase()]), typeof J == "number" && J >= 0 && J <= w.levels.SILENT)
7287
7287
  return J;
7288
- throw new TypeError("log.setLevel() called with invalid level: " + N);
7288
+ throw new TypeError("log.setLevel() called with invalid level: " + D);
7289
7289
  }
7290
7290
  w.name = A, w.levels = {
7291
7291
  TRACE: 0,
@@ -7294,34 +7294,34 @@ function im() {
7294
7294
  WARN: 3,
7295
7295
  ERROR: 4,
7296
7296
  SILENT: 5
7297
- }, w.methodFactory = x || g, w.getLevel = function() {
7298
- return B ?? O ?? b;
7299
- }, w.setLevel = function(N, J) {
7300
- return B = ce(N), J !== !1 && ge(B), d.call(w);
7301
- }, w.setDefaultLevel = function(N) {
7302
- O = ce(N), ae() || w.setLevel(N, !1);
7297
+ }, w.methodFactory = P || v, w.getLevel = function() {
7298
+ return H ?? N ?? b;
7299
+ }, w.setLevel = function(D, J) {
7300
+ return H = ce(D), J !== !1 && ge(H), d.call(w);
7301
+ }, w.setDefaultLevel = function(D) {
7302
+ N = ce(D), le() || w.setLevel(D, !1);
7303
7303
  }, w.resetLevel = function() {
7304
- B = null, Be(), d.call(w);
7305
- }, w.enableAll = function(N) {
7306
- w.setLevel(w.levels.TRACE, N);
7307
- }, w.disableAll = function(N) {
7308
- w.setLevel(w.levels.SILENT, N);
7304
+ H = null, Be(), d.call(w);
7305
+ }, w.enableAll = function(D) {
7306
+ w.setLevel(w.levels.TRACE, D);
7307
+ }, w.disableAll = function(D) {
7308
+ w.setLevel(w.levels.SILENT, D);
7309
7309
  }, w.rebuild = function() {
7310
7310
  if (a !== w && (b = ce(a.getLevel())), d.call(w), a === w)
7311
- for (var N in i)
7312
- i[N].rebuild();
7311
+ for (var D in i)
7312
+ i[D].rebuild();
7313
7313
  }, b = ce(
7314
7314
  a ? a.getLevel() : "WARN"
7315
7315
  );
7316
- var X = ae();
7317
- X != null && (B = ce(X)), d.call(w);
7316
+ var X = le();
7317
+ X != null && (H = ce(X)), d.call(w);
7318
7318
  }
7319
- a = new S(), a.getLogger = function(x) {
7320
- if (typeof x != "symbol" && typeof x != "string" || x === "")
7319
+ a = new S(), a.getLogger = function(P) {
7320
+ if (typeof P != "symbol" && typeof P != "string" || P === "")
7321
7321
  throw new TypeError("You must supply a name when creating a logger.");
7322
- var w = i[x];
7323
- return w || (w = i[x] = new S(
7324
- x,
7322
+ var w = i[P];
7323
+ return w || (w = i[P] = new S(
7324
+ P,
7325
7325
  a.methodFactory
7326
7326
  )), w;
7327
7327
  };
@@ -7335,7 +7335,7 @@ function im() {
7335
7335
  }(Kn)), Kn.exports;
7336
7336
  }
7337
7337
  var sm = im();
7338
- const zn = /* @__PURE__ */ rm(sm), jm = {
7338
+ const zn = /* @__PURE__ */ rm(sm), Fm = {
7339
7339
  install(t, e) {
7340
7340
  const n = e ?? {};
7341
7341
  zn.setDefaultLevel(
@@ -7347,11 +7347,14 @@ const zn = /* @__PURE__ */ rm(sm), jm = {
7347
7347
  `${r}px`
7348
7348
  );
7349
7349
  const o = oe(!0), i = oe(0), a = oe(!1), s = oe(!1), l = oe(""), u = oe(null), d = oe(0);
7350
- nm(u, (g) => {
7351
- const { width: S } = g[0].contentRect;
7352
- Li(() => {
7353
- d.value = S;
7354
- });
7350
+ let m = null;
7351
+ nm(u, (S) => {
7352
+ m && clearTimeout(m), m = setTimeout(() => {
7353
+ const { width: I } = S[0].contentRect;
7354
+ Li(() => {
7355
+ d.value = I;
7356
+ });
7357
+ }, 50);
7355
7358
  }), t.provide(qi, {
7356
7359
  navMenuWidth: r,
7357
7360
  isMenuOpened: o,
@@ -7372,14 +7375,16 @@ const zn = /* @__PURE__ */ rm(sm), jm = {
7372
7375
  EnableLightMode: () => Jt.EnableLightMode(),
7373
7376
  ClearStoredTheme: () => Jt.ClearStoredTheme(),
7374
7377
  LogoutAsync: async () => {
7375
- const g = $f(), { oidc: S } = ki();
7376
- await g.ConfirmAsync(
7378
+ const S = $f(), { oidc: I } = ki();
7379
+ await S.ConfirmAsync(
7377
7380
  "Deseja realmente sair da sua conta?"
7378
- ) && (s.value = !0, await new Promise((A) => setTimeout(A, 1e3)), S.logout({ redirectUri: window.location.origin }));
7381
+ ) && (Lm("Saindo..."), s.value = !0, await new Promise((P) => setTimeout(P, 1e3)), I.logout({ redirectUri: window.location.origin }).catch(() => {
7382
+ s.value = !1, Pm();
7383
+ }));
7379
7384
  },
7380
7385
  Login: () => {
7381
- const { oidc: g } = ki();
7382
- g.login();
7386
+ const { oidc: S } = ki();
7387
+ S.login();
7383
7388
  },
7384
7389
  isLoggingOut: s,
7385
7390
  mainRef: u,
@@ -7400,7 +7405,7 @@ const zn = /* @__PURE__ */ rm(sm), jm = {
7400
7405
  i.value = document.documentElement.scrollTop;
7401
7406
  }), Jt.SetInitialTheme();
7402
7407
  }
7403
- }, Fm = zn;
7408
+ }, Vm = zn;
7404
7409
  class Ms extends Error {
7405
7410
  constructor(n = []) {
7406
7411
  const r = Array.isArray(n) ? n : [n];
@@ -7493,14 +7498,14 @@ class Rs {
7493
7498
  });
7494
7499
  }
7495
7500
  }
7496
- const lm = () => new Rs(), Vm = () => new Rs();
7501
+ const lm = () => new Rs(), Km = () => new Rs();
7497
7502
  window.addEventListener("error", function(t) {
7498
7503
  return lo(t.error) || console.error(t.error || t.message), t.preventDefault(), !1;
7499
7504
  });
7500
7505
  window.addEventListener("unhandledrejection", function(t) {
7501
7506
  return lo(t.reason) || console.error("Unhandled Rejection", t.reason), t.preventDefault(), !1;
7502
7507
  });
7503
- const Km = (t) => {
7508
+ const zm = (t) => {
7504
7509
  t.config.errorHandler = (e, n, r) => {
7505
7510
  lo(e) || console.error("Vue Global Error Handler: ", { err: e, vm: n, info: r });
7506
7511
  };
@@ -7526,23 +7531,23 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
7526
7531
  getComputedStyle(i()).getPropertyValue(
7527
7532
  Ti
7528
7533
  ) || "1"
7529
- ), s = (g) => {
7530
- g < 0.5 || g > 1.6 || (i().style.setProperty(
7534
+ ), s = (v) => {
7535
+ v < 0.5 || v > 1.6 || (i().style.setProperty(
7531
7536
  Ti,
7532
- g.toString()
7533
- ), p.value = g);
7537
+ v.toString()
7538
+ ), m.value = v);
7534
7539
  }, l = () => {
7535
- s(p.value + 0.1);
7540
+ s(m.value + 0.1);
7536
7541
  }, u = () => {
7537
- s(p.value - 0.1);
7542
+ s(m.value - 0.1);
7538
7543
  }, d = () => {
7539
7544
  s(1);
7540
- }, p = oe(1);
7545
+ }, m = oe(1);
7541
7546
  return Js(() => {
7542
7547
  localStorage.removeItem(dm);
7543
7548
  }), Vt(() => {
7544
- p.value = a();
7545
- }), (g, S) => ($(), H(Xe, null, [
7549
+ m.value = a();
7550
+ }), (v, S) => (O(), U(Xe, null, [
7546
7551
  Ee(dt, {
7547
7552
  button: !0,
7548
7553
  size: "sm",
@@ -7550,29 +7555,29 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
7550
7555
  tooltip: "Tamanho da fonte",
7551
7556
  onClick: r
7552
7557
  }),
7553
- e.value ? ($(), H(Xe, { key: 0 }, [
7554
- M("div", {
7558
+ e.value ? (O(), U(Xe, { key: 0 }, [
7559
+ $("div", {
7555
7560
  class: ee(["border", "fadein", "font-size-wrapper"]),
7556
7561
  style: jt({ zIndex: n.value + 1 })
7557
7562
  }, [
7558
- M("div", {
7563
+ $("div", {
7559
7564
  class: "icon",
7560
7565
  onClick: u
7561
7566
  }),
7562
- M("span", um, $e(p.value.toLocaleString("pt-br", {
7567
+ $("span", um, $e(m.value.toLocaleString("pt-br", {
7563
7568
  style: "percent",
7564
7569
  maximumFractionDigits: 0
7565
7570
  })), 1),
7566
- M("div", {
7571
+ $("div", {
7567
7572
  class: "icon add",
7568
7573
  onClick: l
7569
7574
  }),
7570
- M("span", {
7575
+ $("span", {
7571
7576
  class: "redefinir",
7572
7577
  onClick: d
7573
7578
  }, " Redefinir ")
7574
7579
  ], 4),
7575
- M("div", {
7580
+ $("div", {
7576
7581
  class: "font-size-mask",
7577
7582
  style: jt({ zIndex: n.value }),
7578
7583
  onClick: o
@@ -7587,7 +7592,7 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
7587
7592
  function r() {
7588
7593
  document.documentElement.scrollTo(0, 0);
7589
7594
  }
7590
- return (o, i) => ($(), H("button", {
7595
+ return (o, i) => (O(), U("button", {
7591
7596
  class: ee(["sf-scrollToTop", { "sf-scrollToTop-visible": n.value }]),
7592
7597
  onClick: r
7593
7598
  }, null, 2));
@@ -7611,8 +7616,8 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
7611
7616
  isDarkMode: l,
7612
7617
  ToggleTheme: u,
7613
7618
  CloseMenu: d,
7614
- LogoutAsync: p,
7615
- isLoggingOut: g,
7619
+ LogoutAsync: m,
7620
+ isLoggingOut: v,
7616
7621
  mainRef: S
7617
7622
  } = co(), I = oe(null), A = () => {
7618
7623
  if (!I.value || !o.value) return !1;
@@ -7623,104 +7628,102 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
7623
7628
  A();
7624
7629
  });
7625
7630
  });
7626
- const x = e, w = async () => {
7627
- Pm("Saindo da sua conta..."), await p();
7628
- };
7629
- return (b, O) => ($(), H("main", {
7631
+ const P = e;
7632
+ return (w, b) => (O(), U("main", {
7630
7633
  ref_key: "mainRef",
7631
7634
  ref: S,
7632
7635
  class: ee({
7633
- disabled: le(g),
7634
- "nav-menu-visible": le(o)
7636
+ disabled: ae(v),
7637
+ "nav-menu-visible": ae(o)
7635
7638
  })
7636
7639
  }, [
7637
- M("aside", {
7640
+ $("aside", {
7638
7641
  id: "nav-menu",
7639
7642
  ref_key: "navMenuRef",
7640
7643
  ref: I,
7641
- class: ee({ "nav-menu-hidden": !le(o) })
7644
+ class: ee({ "nav-menu-hidden": !ae(o) })
7642
7645
  }, [
7643
- M("div", hm, [
7644
- O[1] || (O[1] = M("span", null, "Menu", -1)),
7645
- M("div", gm, [
7646
+ $("div", hm, [
7647
+ b[1] || (b[1] = $("span", null, "Menu", -1)),
7648
+ $("div", gm, [
7646
7649
  Ee(dt, {
7647
7650
  button: !0,
7648
7651
  icon: "close",
7649
- onClick: le(s)
7652
+ onClick: ae(s)
7650
7653
  }, null, 8, ["onClick"])
7651
7654
  ])
7652
7655
  ]),
7653
- me(b.$slots, "nav-menu", {}, void 0, !0)
7656
+ me(w.$slots, "nav-menu", {}, void 0, !0)
7654
7657
  ], 2),
7655
- M("div", vm, [
7656
- M("div", {
7658
+ $("div", vm, [
7659
+ $("div", {
7657
7660
  id: "top-bar",
7658
- class: ee({ "shadow-bottom": le(a) > 72 })
7661
+ class: ee({ "shadow-bottom": ae(a) > 72 })
7659
7662
  }, [
7660
7663
  Ee(dt, {
7661
7664
  button: !0,
7662
- icon: le(o) ? "menu_open" : "menu",
7665
+ icon: ae(o) ? "menu_open" : "menu",
7663
7666
  tooltip: "Menu",
7664
- onClick: le(s)
7667
+ onClick: ae(s)
7665
7668
  }, null, 8, ["icon", "onClick"]),
7666
- M("div", ym, $e(le(g) ? "Saindo..." : le(i)), 1),
7667
- O[2] || (O[2] = M("span", { class: "sep" }, null, -1)),
7668
- M("div", bm, [
7669
+ $("div", ym, $e(ae(v) ? "Saindo..." : ae(i)), 1),
7670
+ b[2] || (b[2] = $("span", { class: "sep" }, null, -1)),
7671
+ $("div", bm, [
7669
7672
  Ee(dt, {
7670
7673
  button: !0,
7671
7674
  size: "sm",
7672
- icon: le(l) ? "light_mode" : "dark_mode",
7673
- tooltip: le(l) ? "Modo claro" : "Modo escuro",
7674
- onClick: le(u)
7675
+ icon: ae(l) ? "light_mode" : "dark_mode",
7676
+ tooltip: ae(l) ? "Modo claro" : "Modo escuro",
7677
+ onClick: ae(u)
7675
7678
  }, null, 8, ["icon", "tooltip", "onClick"]),
7676
7679
  Ee(mm),
7677
- n.auth ? ($(), H(Xe, { key: 0 }, [
7678
- n.auth.isAuthenticated ? ($(), pe(dt, {
7680
+ n.auth ? (O(), U(Xe, { key: 0 }, [
7681
+ n.auth.isAuthenticated ? (O(), pe(dt, {
7679
7682
  key: 0,
7680
7683
  button: !0,
7681
7684
  size: "sm",
7682
7685
  icon: "logout",
7683
7686
  tooltip: "Sair",
7684
- onClick: w
7685
- })) : ($(), pe(dt, {
7687
+ onClick: ae(m)
7688
+ }, null, 8, ["onClick"])) : (O(), pe(dt, {
7686
7689
  key: 1,
7687
7690
  button: !0,
7688
7691
  size: "sm",
7689
7692
  icon: "login",
7690
7693
  tooltip: "Entrar",
7691
- onClick: O[0] || (O[0] = (B) => x("login"))
7694
+ onClick: b[0] || (b[0] = (N) => P("login"))
7692
7695
  }))
7693
7696
  ], 64)) : se("", !0)
7694
7697
  ])
7695
7698
  ], 2),
7696
- M("div", wm, [
7697
- le(g) ? ($(), H("div", _m, [
7699
+ $("div", wm, [
7700
+ ae(v) ? (O(), U("div", _m, [
7698
7701
  Ee($i)
7699
- ])) : me(b.$slots, "content", { key: 1 }, void 0, !0)
7702
+ ])) : me(w.$slots, "content", { key: 1 }, void 0, !0)
7700
7703
  ])
7701
7704
  ]),
7702
- M("footer", null, [
7703
- O[5] || (O[5] = M("div", { class: "logo-fazenda" }, null, -1)),
7704
- M("div", Sm, [
7705
- M("span", km, [
7706
- me(b.$slots, "footer-nome-fazenda", {}, () => [
7707
- O[3] || (O[3] = Po(" SECRETARIA MUNICIPAL DA FAZENDA "))
7705
+ $("footer", null, [
7706
+ b[5] || (b[5] = $("div", { class: "logo-fazenda" }, null, -1)),
7707
+ $("div", Sm, [
7708
+ $("span", km, [
7709
+ me(w.$slots, "footer-nome-fazenda", {}, () => [
7710
+ b[3] || (b[3] = Po(" SECRETARIA MUNICIPAL DA FAZENDA "))
7708
7711
  ], !0)
7709
7712
  ]),
7710
- M("span", Cm, [
7711
- me(b.$slots, "footer-endereco-fazenda", {}, () => [
7712
- O[4] || (O[4] = Po(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))
7713
+ $("span", Cm, [
7714
+ me(w.$slots, "footer-endereco-fazenda", {}, () => [
7715
+ b[4] || (b[4] = Po(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))
7713
7716
  ], !0)
7714
7717
  ])
7715
7718
  ]),
7716
- M("div", Im, [
7717
- me(b.$slots, "footer-right", {}, void 0, !0)
7719
+ $("div", Im, [
7720
+ me(w.$slots, "footer-right", {}, void 0, !0)
7718
7721
  ])
7719
7722
  ]),
7720
7723
  Ee(pm)
7721
7724
  ], 2));
7722
7725
  }
7723
- }), zm = /* @__PURE__ */ St(Tm, [["__scopeId", "data-v-3498d96e"]]), Wm = /* @__PURE__ */ De({
7726
+ }), Wm = /* @__PURE__ */ St(Tm, [["__scopeId", "data-v-e01a2ee4"]]), Gm = /* @__PURE__ */ De({
7724
7727
  __name: "PageTitle",
7725
7728
  props: {
7726
7729
  title: {}
@@ -7798,7 +7801,7 @@ const co = () => cm(), um = { class: "font-percentage" }, Ti = "--font-size-incr
7798
7801
  color: "var(--primary-color)"
7799
7802
  }
7800
7803
  }
7801
- }, Gm = {
7804
+ }, qm = {
7802
7805
  semantic: {
7803
7806
  disabled: {
7804
7807
  opacity: "1"
@@ -8218,7 +8221,7 @@ class Tt {
8218
8221
  return new Promise((n) => setTimeout(n, e));
8219
8222
  }
8220
8223
  }
8221
- class qm {
8224
+ class Ym {
8222
8225
  constructor(e) {
8223
8226
  ne(this, "sub");
8224
8227
  ne(this, "username");
@@ -8258,7 +8261,7 @@ class qm {
8258
8261
  return ((e = this.userinfo) == null ? void 0 : e.jobTitle) ?? null;
8259
8262
  }
8260
8263
  }
8261
- function Ym() {
8264
+ function Xm() {
8262
8265
  const t = oe("development");
8263
8266
  function e(l) {
8264
8267
  t.value = l.toLocaleLowerCase();
@@ -8278,7 +8281,7 @@ function Ym() {
8278
8281
  $reset: s
8279
8282
  };
8280
8283
  }
8281
- const Xm = (t) => {
8284
+ const Zm = (t) => {
8282
8285
  const e = /* @__PURE__ */ new Set();
8283
8286
  function n(r) {
8284
8287
  const { name: o, children: i } = r;
@@ -8362,11 +8365,11 @@ class Am {
8362
8365
  this.resolve && this.resolve(), this.current && this.current.classList.remove("visible");
8363
8366
  }
8364
8367
  }
8365
- const Em = new Am(), Zm = () => Em;
8366
- function Jm() {
8368
+ const Em = new Am(), Jm = () => Em;
8369
+ function Pm() {
8367
8370
  document.documentElement.removeAttribute("data-app-message"), document.documentElement.classList.add("app-mounted");
8368
8371
  }
8369
- function Pm(t) {
8372
+ function Lm(t) {
8370
8373
  typeof t == "string" && document.documentElement.setAttribute(
8371
8374
  "data-app-message",
8372
8375
  t
@@ -8375,35 +8378,35 @@ function Pm(t) {
8375
8378
  export {
8376
8379
  Ms as AppError,
8377
8380
  am as AppResult,
8378
- Ym as BaseAppState,
8379
- Hm as ConfigAuth,
8380
- Xm as EnsureUniqueRouteNames,
8381
- Jm as RemovePreloader,
8382
- Pm as RestorePreloader,
8383
- Mm as SfButton,
8384
- Bm as SfContent,
8381
+ Xm as BaseAppState,
8382
+ jm as ConfigAuth,
8383
+ Zm as EnsureUniqueRouteNames,
8384
+ Pm as RemovePreloader,
8385
+ Lm as RestorePreloader,
8386
+ Rm as SfButton,
8387
+ Um as SfContent,
8385
8388
  ya as SfDrawer,
8386
- Nm as SfHelpButton,
8389
+ Bm as SfHelpButton,
8387
8390
  dt as SfIcon,
8388
8391
  ma as SfLoadingCircle,
8389
- zm as SfMain,
8390
- Rm as SfMessage,
8391
- Dm as SfNavMenu,
8392
- Wm as SfPageTitle,
8393
- $m as SfTabNavigation,
8392
+ Wm as SfMain,
8393
+ Dm as SfMessage,
8394
+ Nm as SfNavMenu,
8395
+ Gm as SfPageTitle,
8396
+ Mm as SfTabNavigation,
8394
8397
  ta as SfTooltip,
8395
8398
  lm as UseAlert,
8396
- Vm as UseAlertService,
8399
+ Km as UseAlertService,
8397
8400
  co as UseAppInject,
8398
8401
  ki as UseAuth,
8399
8402
  $f as UseConfirm,
8400
- Um as UseConfirmService,
8401
- Zm as UseSimpleToast,
8402
- qm as User,
8403
+ Hm as UseConfirmService,
8404
+ Jm as UseSimpleToast,
8405
+ Ym as User,
8403
8406
  Tt as Utilities,
8404
- Fm as _logger,
8405
- jm as configSF,
8406
- Km as globalErrorHandler,
8407
- Gm as themePreset
8407
+ Vm as _logger,
8408
+ Fm as configSF,
8409
+ zm as globalErrorHandler,
8410
+ qm as themePreset
8408
8411
  };
8409
8412
  //# sourceMappingURL=sf.prefeiturasp.vuecomponents.js.map