pennsieve-dashboard 0.0.2 → 0.0.3

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,11 +1,11 @@
1
- import { defineComponent as q, createElementBlock as W, openBlock as D, createElementVNode as U, ref as M, reactive as Gr, watch as V, isRef as la, isReactive as ua, markRaw as ca, computed as $, resolveComponent as ge, createBlock as ie, withCtx as j, createVNode as Z, Fragment as ht, renderList as mi, unref as b, createTextVNode as Bt, shallowRef as rn, resolveDirective as jr, renderSlot as ce, mergeProps as Rt, withDirectives as at, toDisplayString as lt, withKeys as Vr, vShow as vi, vModelText as da, getCurrentInstance as Ut, inject as ve, watchEffect as ha, readonly as qr, getCurrentScope as pa, onScopeDispose as fa, warn as ga, provide as kt, onBeforeUnmount as ft, normalizeStyle as Dn, normalizeClass as st, cloneVNode as ma, Text as va, Comment as ya, onMounted as gt, createCommentVNode as We, nextTick as Pn, toRef as di, Teleport as _a, onBeforeMount as Kr, Transition as Yr, onDeactivated as ba, withModifiers as Hs, resolveDynamicComponent as Fs, defineAsyncComponent as wa } from "vue";
1
+ import { defineComponent as q, createElementBlock as W, openBlock as I, createElementVNode as U, ref as M, reactive as Gr, watch as V, isRef as la, isReactive as ua, markRaw as ca, computed as z, resolveComponent as me, createBlock as te, withCtx as j, createVNode as X, Fragment as ht, renderList as mi, unref as _, createTextVNode as Bt, inject as pe, shallowRef as rn, resolveDirective as jr, renderSlot as ce, mergeProps as Rt, withDirectives as at, toDisplayString as lt, withKeys as Vr, vShow as vi, vModelText as da, getCurrentInstance as Ut, watchEffect as ha, readonly as qr, getCurrentScope as pa, onScopeDispose as fa, warn as ga, provide as kt, onBeforeUnmount as ft, normalizeStyle as Dn, normalizeClass as st, cloneVNode as ma, Text as va, Comment as ya, onMounted as gt, createCommentVNode as We, nextTick as In, toRef as di, Teleport as ba, onBeforeMount as Kr, Transition as Yr, onDeactivated as _a, withModifiers as Hs, resolveDynamicComponent as Fs, defineAsyncComponent as wa } from "vue";
2
2
  import { defineStore as Ea, storeToRefs as Wi } from "pinia";
3
3
  /*! Element Plus Icons Vue v2.3.2 */
4
4
  var xa = /* @__PURE__ */ q({
5
5
  name: "CircleCloseFilled",
6
6
  __name: "circle-close-filled",
7
7
  setup(n) {
8
- return (e, t) => (D(), W("svg", {
8
+ return (e, t) => (I(), W("svg", {
9
9
  xmlns: "http://www.w3.org/2000/svg",
10
10
  viewBox: "0 0 1024 1024"
11
11
  }, [
@@ -19,7 +19,7 @@ var xa = /* @__PURE__ */ q({
19
19
  name: "Close",
20
20
  __name: "close",
21
21
  setup(n) {
22
- return (e, t) => (D(), W("svg", {
22
+ return (e, t) => (I(), W("svg", {
23
23
  xmlns: "http://www.w3.org/2000/svg",
24
24
  viewBox: "0 0 1024 1024"
25
25
  }, [
@@ -29,11 +29,11 @@ var xa = /* @__PURE__ */ q({
29
29
  })
30
30
  ]));
31
31
  }
32
- }), In = Ta, Sa = /* @__PURE__ */ q({
32
+ }), Pn = Ta, Sa = /* @__PURE__ */ q({
33
33
  name: "Edit",
34
34
  __name: "edit",
35
35
  setup(n) {
36
- return (e, t) => (D(), W("svg", {
36
+ return (e, t) => (I(), W("svg", {
37
37
  xmlns: "http://www.w3.org/2000/svg",
38
38
  viewBox: "0 0 1024 1024"
39
39
  }, [
@@ -51,7 +51,7 @@ var xa = /* @__PURE__ */ q({
51
51
  name: "Lock",
52
52
  __name: "lock",
53
53
  setup(n) {
54
- return (e, t) => (D(), W("svg", {
54
+ return (e, t) => (I(), W("svg", {
55
55
  xmlns: "http://www.w3.org/2000/svg",
56
56
  viewBox: "0 0 1024 1024"
57
57
  }, [
@@ -69,7 +69,7 @@ var xa = /* @__PURE__ */ q({
69
69
  name: "Unlock",
70
70
  __name: "unlock",
71
71
  setup(n) {
72
- return (e, t) => (D(), W("svg", {
72
+ return (e, t) => (I(), W("svg", {
73
73
  xmlns: "http://www.w3.org/2000/svg",
74
74
  viewBox: "0 0 1024 1024"
75
75
  }, [
@@ -86,93 +86,92 @@ var xa = /* @__PURE__ */ q({
86
86
  }), Oa = Aa;
87
87
  const Kt = Ea("globalVars", () => {
88
88
  const n = M([]), e = M({}), t = "dashboard-globalVarsStore", i = M(null), s = M([]), r = M([]), o = M({}), a = Gr({});
89
- function u(C, k) {
90
- a[C] = k;
89
+ function u(S, R) {
90
+ a[S] = R;
91
91
  }
92
- function l(C = {}) {
93
- for (const k of Object.keys(a)) delete a[k];
94
- Object.assign(a, C);
92
+ function l(S = {}) {
93
+ for (const R of Object.keys(a)) delete a[R];
94
+ Object.assign(a, S);
95
95
  }
96
- const c = (C) => {
97
- delete a[C], R();
96
+ const c = (S) => {
97
+ delete a[S], O();
98
98
  };
99
99
  function d() {
100
- for (const C of Object.keys(a)) delete a[C];
100
+ for (const S of Object.keys(a)) delete a[S];
101
101
  }
102
102
  function h() {
103
103
  return JSON.parse(JSON.stringify(a));
104
104
  }
105
- const m = (C) => r.value.find((k) => k.id === C), g = (C, k) => {
106
- s.value.push({ name: C, value: k });
105
+ const m = (S) => r.value.find((R) => R.id === S), g = (S, R) => {
106
+ s.value.push({ name: S, value: R });
107
107
  }, f = () => {
108
108
  s.value = [];
109
- }, x = (C) => {
110
- const k = S(C);
111
- o.value = k;
112
- }, w = () => o.value;
113
- function S(C) {
114
- const k = {};
115
- if (!C || typeof C != "object") return k;
116
- for (const [A, H] of Object.entries(C))
117
- if (H && typeof H == "object" && !(la(H) || ua(H))) {
118
- const X = Object.getPrototypeOf(H) === Object.prototype;
119
- k[A] = X ? { ...H } : ca(H);
109
+ }, E = (S) => {
110
+ const R = T(S);
111
+ o.value = R;
112
+ }, k = () => o.value;
113
+ function T(S) {
114
+ const R = {};
115
+ if (!S || typeof S != "object") return R;
116
+ for (const [A, N] of Object.entries(S))
117
+ if (N && typeof N == "object" && !(la(N) || ua(N))) {
118
+ const F = Object.getPrototypeOf(N) === Object.prototype;
119
+ R[A] = F ? { ...N } : ca(N);
120
120
  } else
121
- k[A] = H;
122
- return k;
123
- }
124
- const _ = (C) => {
125
- const k = r.value.find((A) => A.id === C);
126
- k && (k.Props = k.Props || {}, k.Props.locked = !k.Props.locked);
127
- }, y = (C) => C.map((k) => {
128
- const A = e.value[k.componentKey];
121
+ R[A] = N;
122
+ return R;
123
+ }
124
+ const y = (S) => {
125
+ const R = r.value.find((A) => A.id === S);
126
+ R && (R.Props = R.Props || {}, R.Props.locked = !R.Props.locked);
127
+ }, b = (S) => S.map((R) => {
128
+ const A = e.value[R.componentKey];
129
129
  return A ? {
130
- ...k,
130
+ ...R,
131
131
  component: A
132
132
  // attach runtime component
133
133
  } : null;
134
- }).filter((k) => !!k);
135
- function E(C, k = {}) {
136
- const A = { ...C, ...k };
137
- return A.componentKey ? {
138
- id: A.id,
139
- componentKey: A.componentKey,
140
- Props: A.Props ?? {},
141
- x: A.x,
142
- y: A.y,
143
- w: A.w,
144
- h: A.h
145
- } : (console.warn(`save: item ${A.id} missing componentKey; skipping`), null);
146
- }
147
- function P() {
148
- return (i.value?.save?.() ?? []).map((k) => {
149
- const A = r.value.find((Q) => Q.id === k.id);
150
- if (!A) return null;
151
- const { x: H, y: X, w: ne, h: pe } = k;
152
- return E(A, { x: H, y: X, w: ne, h: pe });
153
- }).filter((k) => !!k);
154
- }
155
- const R = () => {
156
- const C = {
134
+ }).filter((R) => !!R);
135
+ function w() {
136
+ return (i.value?.save?.() ?? []).map((R) => {
137
+ const A = r.value.find((fe) => fe.id === R.id);
138
+ if (!A || !A.componentKey)
139
+ return console.warn(`save: missing item or componentKey for id=${R?.id}`), null;
140
+ const { x: N, y: F, w: Z, h: ie } = R;
141
+ return {
142
+ id: A.id,
143
+ componentKey: A.componentKey,
144
+ componentName: A.componentName,
145
+ hideHeader: A.hideHeader,
146
+ Props: A.Props ?? {},
147
+ x: N,
148
+ y: F,
149
+ w: Z,
150
+ h: ie
151
+ };
152
+ }).filter((R) => !!R);
153
+ }
154
+ const O = () => {
155
+ const S = {
157
156
  version: 1,
158
- items: P(),
157
+ items: w(),
159
158
  filters: h()
160
159
  };
161
- localStorage.setItem(t, JSON.stringify(C));
162
- }, N = () => {
163
- const C = localStorage.getItem(t);
164
- if (!C) {
160
+ S.items?.length < 1 || localStorage.setItem(t, JSON.stringify(S));
161
+ }, C = () => {
162
+ const S = localStorage.getItem(t);
163
+ if (!S) {
165
164
  r.value = n.value, l({});
166
165
  return;
167
166
  }
168
167
  try {
169
- const k = JSON.parse(C);
170
- r.value = Array.isArray(k.items) ? y(k.items) : n.value, l(k.filters ?? {});
171
- } catch (k) {
172
- console.error("Failed to parse globalVarsStore:", k), r.value = n.value, l({});
168
+ const R = JSON.parse(S);
169
+ r.value = Array.isArray(R.items) ? b(R.items) : n.value, l(R.filters ?? {});
170
+ } catch (R) {
171
+ console.error("Failed to parse globalVarsStore:", R), r.value = n.value, l({});
173
172
  }
174
173
  };
175
- return V(a, () => R(), { deep: !0 }), {
174
+ return V(a, () => O(), { deep: !0 }), {
176
175
  DASHBOARD_ITEMS: r,
177
176
  DefaultLayout: n,
178
177
  ComponentRegistry: e,
@@ -185,15 +184,15 @@ const Kt = Ea("globalVars", () => {
185
184
  clearAllFilters: d,
186
185
  resetFilters: l,
187
186
  getDashItem: m,
188
- toggleWidgetLock: _,
187
+ toggleWidgetLock: y,
189
188
  addOptionsDataItems: g,
190
189
  clearOptionsDataItems: f,
191
- saveToLocalStorage: R,
192
- loadFromLocalStorage: N,
193
- setOptionServices: x,
194
- getServices: w
190
+ saveToLocalStorage: O,
191
+ loadFromLocalStorage: C,
192
+ setOptionServices: E,
193
+ getServices: k
195
194
  };
196
- }), Da = { class: "widget-settings-container" }, Pa = { class: "widget-setting" }, Ia = { class: "dialog-footer" }, Na = /* @__PURE__ */ q({
195
+ }), Da = { class: "widget-settings-container" }, Ia = { class: "widget-setting" }, Pa = { class: "dialog-footer" }, Na = /* @__PURE__ */ q({
197
196
  __name: "TextWidgetSettings",
198
197
  props: {
199
198
  showDialog: { type: Boolean },
@@ -203,7 +202,7 @@ const Kt = Ea("globalVars", () => {
203
202
  },
204
203
  emits: ["close-dialog", "update-text-var"],
205
204
  setup(n, { emit: e }) {
206
- const t = Kt(), { optionsData: i } = Wi(t), s = e, r = n, o = $({
205
+ const t = Kt(), { optionsData: i } = Wi(t), s = e, r = n, o = z({
207
206
  get: () => r.showDialog,
208
207
  set: (d) => {
209
208
  d || s("close-dialog");
@@ -225,26 +224,26 @@ const Kt = Ea("globalVars", () => {
225
224
  }), o.value = !1;
226
225
  }
227
226
  return (d, h) => {
228
- const m = ge("el-option"), g = ge("el-select"), f = ge("el-input"), x = ge("el-checkbox"), w = ge("el-button"), S = ge("el-dialog");
229
- return D(), ie(S, {
227
+ const m = me("el-option"), g = me("el-select"), f = me("el-input"), E = me("el-checkbox"), k = me("el-button"), T = me("el-dialog");
228
+ return I(), te(T, {
230
229
  class: "full-dialog-dashboard",
231
230
  modelValue: o.value,
232
- "onUpdate:modelValue": h[4] || (h[4] = (_) => o.value = _),
231
+ "onUpdate:modelValue": h[4] || (h[4] = (y) => o.value = y),
233
232
  title: "Text Widget Settings",
234
233
  "append-to-body": !0
235
234
  }, {
236
235
  footer: j(() => [
237
- U("div", Ia, [
238
- Z(w, {
236
+ U("div", Pa, [
237
+ X(k, {
239
238
  class: "secondary",
240
- onClick: h[3] || (h[3] = (_) => o.value = !1)
239
+ onClick: h[3] || (h[3] = (y) => o.value = !1)
241
240
  }, {
242
241
  default: j(() => [...h[8] || (h[8] = [
243
242
  Bt("Cancel", -1)
244
243
  ])]),
245
244
  _: 1
246
245
  }),
247
- Z(w, { onClick: c }, {
246
+ X(k, { onClick: c }, {
248
247
  default: j(() => [...h[9] || (h[9] = [
249
248
  Bt("Save", -1)
250
249
  ])]),
@@ -254,37 +253,37 @@ const Kt = Ea("globalVars", () => {
254
253
  ]),
255
254
  default: j(() => [
256
255
  U("div", Da, [
257
- U("div", Pa, [
256
+ U("div", Ia, [
258
257
  h[5] || (h[5] = U("h4", null, "Select This Widget's Value", -1)),
259
258
  h[6] || (h[6] = U("h5", null, "Select From Variables", -1)),
260
- Z(g, {
259
+ X(g, {
261
260
  modelValue: a.value,
262
- "onUpdate:modelValue": h[0] || (h[0] = (_) => a.value = _),
261
+ "onUpdate:modelValue": h[0] || (h[0] = (y) => a.value = y),
263
262
  class: "text-settings-height"
264
263
  }, {
265
264
  default: j(() => [
266
- (D(), ie(m, {
265
+ (I(), te(m, {
267
266
  value: "",
268
267
  key: "__manual__",
269
268
  label: "Manual entry"
270
269
  })),
271
- (D(!0), W(ht, null, mi(b(i), (_) => (D(), ie(m, {
272
- key: _.name,
273
- label: _.name,
274
- value: _.name
270
+ (I(!0), W(ht, null, mi(_(i), (y) => (I(), te(m, {
271
+ key: y.name,
272
+ label: y.name,
273
+ value: y.name
275
274
  }, null, 8, ["label", "value"]))), 128))
276
275
  ]),
277
276
  _: 1
278
277
  }, 8, ["modelValue"]),
279
278
  h[7] || (h[7] = U("h5", null, "Manual Entry", -1)),
280
- Z(f, {
279
+ X(f, {
281
280
  modelValue: u.value,
282
- "onUpdate:modelValue": h[1] || (h[1] = (_) => u.value = _),
281
+ "onUpdate:modelValue": h[1] || (h[1] = (y) => u.value = y),
283
282
  class: "text-settings-height"
284
283
  }, null, 8, ["modelValue"]),
285
- Z(x, {
284
+ X(E, {
286
285
  modelValue: l.value,
287
- "onUpdate:modelValue": h[2] || (h[2] = (_) => l.value = _),
286
+ "onUpdate:modelValue": h[2] || (h[2] = (y) => l.value = y),
288
287
  label: "Hide Header"
289
288
  }, null, 8, ["modelValue"])
290
289
  ])
@@ -309,86 +308,88 @@ const Kt = Ea("globalVars", () => {
309
308
  hideHeader: { type: Boolean }
310
309
  },
311
310
  setup(n) {
312
- const e = Kt(), t = n, i = M(t.displayText ?? "");
313
- V(() => t.displayText, (w) => {
314
- i.value = w ?? "";
311
+ const e = Kt(), t = n;
312
+ pe("dashboard:globalVars", null).setFilter("red", "#489y6");
313
+ const s = M(t.displayText ?? "");
314
+ V(() => t.displayText, (T) => {
315
+ s.value = T ?? "";
315
316
  }, { immediate: !0 });
316
- const s = $(() => !!(t.bindedKey && t.bindedKey.trim() !== "")), r = $(() => {
317
- const w = t.bindedKey?.trim();
318
- if (!w) return "—";
319
- const _ = e.optionsData.find((y) => y?.name === w)?.value;
320
- return Array.isArray(_) ? _.join(", ") : _ && typeof _ == "object" ? JSON.stringify(_) : _ ?? "—";
321
- }), o = M("Text Widget"), a = rn([{ comp: Xr, event: m, tooltip: "open Text settings" }]), u = M(!1), l = M(null);
322
- function c() {
323
- u.value = !0, l.value?.focus?.();
324
- }
317
+ const r = z(() => !!(t.bindedKey && t.bindedKey.trim() !== "")), o = z(() => {
318
+ const T = t.bindedKey?.trim();
319
+ if (!T) return "—";
320
+ const b = e.optionsData.find((w) => w?.name === T)?.value;
321
+ return Array.isArray(b) ? b.join(", ") : b && typeof b == "object" ? JSON.stringify(b) : b ?? "—";
322
+ }), a = M("Text Widget"), u = rn([{ comp: Xr, event: g, tooltip: "open Text settings" }]), l = M(!1), c = M(null);
325
323
  function d() {
326
- u.value = !1;
324
+ l.value = !0, c.value?.focus?.();
327
325
  }
328
- const h = M(!1);
329
- function m() {
330
- h.value = !0;
326
+ function h() {
327
+ l.value = !1;
331
328
  }
329
+ const m = M(!1);
332
330
  function g() {
333
- h.value = !1, e.saveToLocalStorage();
331
+ m.value = !0;
332
+ }
333
+ function f() {
334
+ m.value = !1, e.saveToLocalStorage();
334
335
  }
335
- function f({ manualEdit: w, reactiveSource: S, hideHeader: _ }) {
336
- const y = e.getDashItem(t.widgetID);
337
- y && (y.hideHeader = _, S && S.trim() !== "" ? (y.Props = y.Props || {}, y.Props.bindedKey = S, y.Props.displayText = null, y.componentName = x(S)) : (y.Props = y.Props || {}, y.Props.bindedKey = null, y.Props.displayText = w ?? "", y.componentName = w ?? "Text"), e.saveToLocalStorage());
336
+ function E({ manualEdit: T, reactiveSource: y, hideHeader: b }) {
337
+ const w = e.getDashItem(t.widgetID);
338
+ w && (w.hideHeader = b, y && y.trim() !== "" ? (w.Props = w.Props || {}, w.Props.bindedKey = y, w.Props.displayText = null, w.componentName = k(y)) : (w.Props = w.Props || {}, w.Props.bindedKey = null, w.Props.displayText = T ?? "", w.componentName = T ?? "Text"), e.saveToLocalStorage());
338
339
  }
339
- function x(w) {
340
- return w ? w.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/^./, (S) => S.toUpperCase()) : "";
340
+ function k(T) {
341
+ return T ? T.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/^./, (y) => y.toUpperCase()) : "";
341
342
  }
342
- return (w, S) => {
343
- const _ = ge("el-input"), y = jr("click-out");
344
- return D(), W(ht, null, [
345
- ce(w.$slots, "default", {
346
- widgetName: o.value,
347
- childIcons: a.value
343
+ return (T, y) => {
344
+ const b = me("el-input"), w = jr("click-out");
345
+ return I(), W(ht, null, [
346
+ ce(T.$slots, "default", {
347
+ widgetName: a.value,
348
+ childIcons: u.value
348
349
  }, void 0, !0),
349
- U("div", Rt({ class: "text-widget-wrap" }, w.$attrs), [
350
- s.value ? (D(), W("div", Ma, [
351
- U("h2", null, lt(r.value), 1)
352
- ])) : at((D(), W("div", {
350
+ U("div", Rt({ class: "text-widget-wrap" }, T.$attrs), [
351
+ r.value ? (I(), W("div", Ma, [
352
+ U("h2", null, lt(o.value), 1)
353
+ ])) : at((I(), W("div", {
353
354
  key: 1,
354
- onKeyup: Vr(d, ["enter"]),
355
+ onKeyup: Vr(h, ["enter"]),
355
356
  class: "tw-flex"
356
357
  }, [
357
358
  at(U("div", null, [
358
- Z(_, {
359
+ X(b, {
359
360
  ref_key: "textUserInput",
360
- ref: l,
361
- modelValue: i.value,
362
- "onUpdate:modelValue": S[0] || (S[0] = (E) => i.value = E),
363
- onFocus: S[1] || (S[1] = (E) => E.target?.select?.())
361
+ ref: c,
362
+ modelValue: s.value,
363
+ "onUpdate:modelValue": y[0] || (y[0] = (O) => s.value = O),
364
+ onFocus: y[1] || (y[1] = (O) => O.target?.select?.())
364
365
  }, null, 8, ["modelValue"])
365
366
  ], 512), [
366
- [vi, u.value]
367
+ [vi, l.value]
367
368
  ]),
368
369
  at(U("div", {
369
- onClick: S[2] || (S[2] = (E) => c()),
370
+ onClick: y[2] || (y[2] = (O) => d()),
370
371
  class: "tw-w-full tw-h-full"
371
372
  }, [
372
- U("h2", null, lt(i.value), 1)
373
+ U("h2", null, lt(s.value), 1)
373
374
  ], 512), [
374
- [vi, !u.value]
375
+ [vi, !l.value]
375
376
  ])
376
377
  ], 32)), [
377
- [y, d]
378
+ [w, h]
378
379
  ])
379
380
  ], 16),
380
- Z(La, {
381
- "show-dialog": h.value,
381
+ X(La, {
382
+ "show-dialog": m.value,
382
383
  "reactive-source-value": t.bindedKey || "",
383
- "manual-entry-value": i.value,
384
+ "manual-entry-value": s.value,
384
385
  "hide-header-value": t.hideHeader || !1,
385
- onCloseDialog: g,
386
- onUpdateTextVar: f
386
+ onCloseDialog: f,
387
+ onUpdateTextVar: E
387
388
  }, null, 8, ["show-dialog", "reactive-source-value", "manual-entry-value", "hide-header-value"])
388
389
  ], 64);
389
390
  };
390
391
  }
391
- }), Sf = /* @__PURE__ */ Ct(za, [["__scopeId", "data-v-3daad922"]]);
392
+ }), Sf = /* @__PURE__ */ Ct(za, [["__scopeId", "data-v-e3c8d702"]]);
392
393
  function Gn() {
393
394
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
394
395
  }
@@ -400,35 +401,35 @@ var hi = { exec: () => null };
400
401
  function Y(n, e = "") {
401
402
  let t = typeof n == "string" ? n : n.source, i = { replace: (s, r) => {
402
403
  let o = typeof r == "string" ? r : r.source;
403
- return o = o.replace(me.caret, "$1"), t = t.replace(s, o), i;
404
+ return o = o.replace(ve.caret, "$1"), t = t.replace(s, o), i;
404
405
  }, getRegex: () => new RegExp(t, e) };
405
406
  return i;
406
407
  }
407
- var me = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`), htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i") }, $a = /^(?:[ \t]*(?:\n|$))+/, Ha = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Fa = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ki = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ba = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, jn = /(?:[*+-]|\d{1,9}[.)])/, Qr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Jr = Y(Qr).replace(/bull/g, jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ua = Y(Qr).replace(/bull/g, jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Vn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Wa = /^[^\n]+/, qn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Ga = Y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", qn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ja = Y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, jn).getRegex(), on = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Kn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Va = Y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Kn).replace("tag", on).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), eo = Y(Vn).replace("hr", ki).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), qa = Y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", eo).getRegex(), Yn = { blockquote: qa, code: Ha, def: Ga, fences: Fa, heading: Ba, hr: ki, html: Va, lheading: Jr, list: ja, newline: $a, paragraph: eo, table: hi, text: Wa }, Bs = Y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ki).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), Ka = { ...Yn, lheading: Ua, table: Bs, paragraph: Y(Vn).replace("hr", ki).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Bs).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex() }, Ya = { ...Yn, html: Y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Kn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: hi, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Y(Vn).replace("hr", ki).replace("heading", ` *#{1,6} *[^
408
+ var ve = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`), htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i") }, $a = /^(?:[ \t]*(?:\n|$))+/, Ha = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Fa = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ki = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ba = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, jn = /(?:[*+-]|\d{1,9}[.)])/, Qr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Jr = Y(Qr).replace(/bull/g, jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ua = Y(Qr).replace(/bull/g, jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Vn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Wa = /^[^\n]+/, qn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Ga = Y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", qn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ja = Y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, jn).getRegex(), on = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Kn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Va = Y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Kn).replace("tag", on).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), eo = Y(Vn).replace("hr", ki).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), qa = Y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", eo).getRegex(), Yn = { blockquote: qa, code: Ha, def: Ga, fences: Fa, heading: Ba, hr: ki, html: Va, lheading: Jr, list: ja, newline: $a, paragraph: eo, table: hi, text: Wa }, Bs = Y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ki).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), Ka = { ...Yn, lheading: Ua, table: Bs, paragraph: Y(Vn).replace("hr", ki).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Bs).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex() }, Ya = { ...Yn, html: Y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Kn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: hi, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Y(Vn).replace("hr", ki).replace("heading", ` *#{1,6} *[^
408
409
  ]`).replace("lheading", Jr).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Xa = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Za = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, to = /^( {2,}|\\)\n(?!\s*$)/, Qa = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, an = /[\p{P}\p{S}]/u, Xn = /[\s\p{P}\p{S}]/u, io = /[^\s\p{P}\p{S}]/u, Ja = Y(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Xn).getRegex(), no = /(?!~)[\p{P}\p{S}]/u, el = /(?!~)[\s\p{P}\p{S}]/u, tl = /(?:[^\s\p{P}\p{S}]|~)/u, il = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, so = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, nl = Y(so, "u").replace(/punct/g, an).getRegex(), sl = Y(so, "u").replace(/punct/g, no).getRegex(), ro = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", rl = Y(ro, "gu").replace(/notPunctSpace/g, io).replace(/punctSpace/g, Xn).replace(/punct/g, an).getRegex(), ol = Y(ro, "gu").replace(/notPunctSpace/g, tl).replace(/punctSpace/g, el).replace(/punct/g, no).getRegex(), al = Y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, io).replace(/punctSpace/g, Xn).replace(/punct/g, an).getRegex(), ll = Y(/\\(punct)/, "gu").replace(/punct/g, an).getRegex(), ul = Y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), cl = Y(Kn).replace("(?:-->|$)", "-->").getRegex(), dl = Y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", cl).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), qi = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, hl = Y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", qi).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), oo = Y(/^!?\[(label)\]\[(ref)\]/).replace("label", qi).replace("ref", qn).getRegex(), ao = Y(/^!?\[(ref)\](?:\[\])?/).replace("ref", qn).getRegex(), pl = Y("reflink|nolink(?!\\()", "g").replace("reflink", oo).replace("nolink", ao).getRegex(), Zn = { _backpedal: hi, anyPunctuation: ll, autolink: ul, blockSkip: il, br: to, code: Za, del: hi, emStrongLDelim: nl, emStrongRDelimAst: rl, emStrongRDelimUnd: al, escape: Xa, link: hl, nolink: ao, punctuation: Ja, reflink: oo, reflinkSearch: pl, tag: dl, text: Qa, url: hi }, fl = { ...Zn, link: Y(/^!?\[(label)\]\((.*?)\)/).replace("label", qi).getRegex(), reflink: Y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", qi).getRegex() }, Nn = { ...Zn, emStrongRDelimAst: ol, emStrongLDelim: sl, url: Y(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, gl = { ...Nn, br: Y(to).replace("{2,}", "*").getRegex(), text: Y(Nn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Li = { normal: Yn, gfm: Ka, pedantic: Ya }, ii = { normal: Zn, gfm: Nn, breaks: gl, pedantic: fl }, ml = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Us = (n) => ml[n];
409
410
  function $e(n, e) {
410
411
  if (e) {
411
- if (me.escapeTest.test(n)) return n.replace(me.escapeReplace, Us);
412
- } else if (me.escapeTestNoEncode.test(n)) return n.replace(me.escapeReplaceNoEncode, Us);
412
+ if (ve.escapeTest.test(n)) return n.replace(ve.escapeReplace, Us);
413
+ } else if (ve.escapeTestNoEncode.test(n)) return n.replace(ve.escapeReplaceNoEncode, Us);
413
414
  return n;
414
415
  }
415
416
  function Ws(n) {
416
417
  try {
417
- n = encodeURI(n).replace(me.percentDecode, "%");
418
+ n = encodeURI(n).replace(ve.percentDecode, "%");
418
419
  } catch {
419
420
  return null;
420
421
  }
421
422
  return n;
422
423
  }
423
424
  function Gs(n, e) {
424
- let t = n.replace(me.findPipe, (r, o, a) => {
425
+ let t = n.replace(ve.findPipe, (r, o, a) => {
425
426
  let u = !1, l = o;
426
427
  for (; --l >= 0 && a[l] === "\\"; ) u = !u;
427
428
  return u ? "|" : " |";
428
- }), i = t.split(me.splitPipe), s = 0;
429
+ }), i = t.split(ve.splitPipe), s = 0;
429
430
  if (i[0].trim() || i.shift(), i.length > 0 && !i.at(-1)?.trim() && i.pop(), e) if (i.length > e) i.splice(e);
430
431
  else for (; i.length < e; ) i.push("");
431
- for (; s < i.length; s++) i[s] = i[s].trim().replace(me.slashPipe, "|");
432
+ for (; s < i.length; s++) i[s] = i[s].trim().replace(ve.slashPipe, "|");
432
433
  return i;
433
434
  }
434
435
  function ni(n, e, t) {
@@ -559,29 +560,29 @@ ${c}` : c;
559
560
  if (!(e = r.exec(n)) || this.rules.block.hr.test(n)) break;
560
561
  l = e[0], n = n.substring(l.length);
561
562
  let d = e[2].split(`
562
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (w) => " ".repeat(3 * w.length)), h = n.split(`
563
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (k) => " ".repeat(3 * k.length)), h = n.split(`
563
564
  `, 1)[0], m = !d.trim(), g = 0;
564
565
  if (this.options.pedantic ? (g = 2, c = d.trimStart()) : m ? g = e[1].length + 1 : (g = e[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c = d.slice(g), g += e[1].length), m && this.rules.other.blankLine.test(h) && (l += h + `
565
566
  `, n = n.substring(h.length + 1), u = !0), !u) {
566
- let w = this.rules.other.nextBulletRegex(g), S = this.rules.other.hrRegex(g), _ = this.rules.other.fencesBeginRegex(g), y = this.rules.other.headingBeginRegex(g), E = this.rules.other.htmlBeginRegex(g);
567
+ let k = this.rules.other.nextBulletRegex(g), T = this.rules.other.hrRegex(g), y = this.rules.other.fencesBeginRegex(g), b = this.rules.other.headingBeginRegex(g), w = this.rules.other.htmlBeginRegex(g);
567
568
  for (; n; ) {
568
- let P = n.split(`
569
- `, 1)[0], R;
570
- if (h = P, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), R = h) : R = h.replace(this.rules.other.tabCharGlobal, " "), _.test(h) || y.test(h) || E.test(h) || w.test(h) || S.test(h)) break;
571
- if (R.search(this.rules.other.nonSpaceChar) >= g || !h.trim()) c += `
572
- ` + R.slice(g);
569
+ let O = n.split(`
570
+ `, 1)[0], C;
571
+ if (h = O, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), C = h) : C = h.replace(this.rules.other.tabCharGlobal, " "), y.test(h) || b.test(h) || w.test(h) || k.test(h) || T.test(h)) break;
572
+ if (C.search(this.rules.other.nonSpaceChar) >= g || !h.trim()) c += `
573
+ ` + C.slice(g);
573
574
  else {
574
- if (m || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || _.test(d) || y.test(d) || S.test(d)) break;
575
+ if (m || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || y.test(d) || b.test(d) || T.test(d)) break;
575
576
  c += `
576
577
  ` + h;
577
578
  }
578
- !m && !h.trim() && (m = !0), l += P + `
579
- `, n = n.substring(P.length + 1), d = R.slice(g);
579
+ !m && !h.trim() && (m = !0), l += O + `
580
+ `, n = n.substring(O.length + 1), d = C.slice(g);
580
581
  }
581
582
  }
582
583
  s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(l) && (o = !0));
583
- let f = null, x;
584
- this.options.gfm && (f = this.rules.other.listIsTask.exec(c), f && (x = f[0] !== "[ ] ", c = c.replace(this.rules.other.listReplaceTask, ""))), s.items.push({ type: "list_item", raw: l, task: !!f, checked: x, loose: !1, text: c, tokens: [] }), s.raw += l;
584
+ let f = null, E;
585
+ this.options.gfm && (f = this.rules.other.listIsTask.exec(c), f && (E = f[0] !== "[ ] ", c = c.replace(this.rules.other.listReplaceTask, ""))), s.items.push({ type: "list_item", raw: l, task: !!f, checked: E, loose: !1, text: c, tokens: [] }), s.raw += l;
585
586
  }
586
587
  let a = s.items.at(-1);
587
588
  if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
@@ -754,7 +755,7 @@ ${c}` : c;
754
755
  inlineQueue;
755
756
  constructor(e) {
756
757
  this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || At, this.options.tokenizer = this.options.tokenizer || new Ki(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
757
- let t = { other: me, block: Li.normal, inline: ii.normal };
758
+ let t = { other: ve, block: Li.normal, inline: ii.normal };
758
759
  this.options.pedantic ? (t.block = Li.pedantic, t.inline = ii.pedantic) : this.options.gfm && (t.block = Li.gfm, this.options.breaks ? t.inline = ii.breaks : t.inline = ii.gfm), this.tokenizer.rules = t;
759
760
  }
760
761
  static get rules() {
@@ -767,7 +768,7 @@ ${c}` : c;
767
768
  return new Ln(t).inlineTokens(e);
768
769
  }
769
770
  lex(e) {
770
- e = e.replace(me.carriageReturn, `
771
+ e = e.replace(ve.carriageReturn, `
771
772
  `), this.blockTokens(e, this.tokens);
772
773
  for (let t = 0; t < this.inlineQueue.length; t++) {
773
774
  let i = this.inlineQueue[t];
@@ -776,7 +777,7 @@ ${c}` : c;
776
777
  return this.inlineQueue = [], this.tokens;
777
778
  }
778
779
  blockTokens(e, t = [], i = !1) {
779
- for (this.options.pedantic && (e = e.replace(me.tabCharGlobal, " ").replace(me.spaceLine, "")); e; ) {
780
+ for (this.options.pedantic && (e = e.replace(ve.tabCharGlobal, " ").replace(ve.spaceLine, "")); e; ) {
780
781
  let s;
781
782
  if (this.options.extensions?.block?.some((o) => (s = o.call({ lexer: this }, e, t)) ? (e = e.substring(s.raw.length), t.push(s), !0) : !1)) continue;
782
783
  if (s = this.tokenizer.space(e)) {
@@ -961,7 +962,7 @@ ${c}` : c;
961
962
  return "";
962
963
  }
963
964
  code({ text: e, lang: t, escaped: i }) {
964
- let s = (t || "").match(me.notSpaceStart)?.[0], r = e.replace(me.endingNewline, "") + `
965
+ let s = (t || "").match(ve.notSpaceStart)?.[0], r = e.replace(ve.endingNewline, "") + `
965
966
  `;
966
967
  return s ? '<pre><code class="language-' + $e(s) + '">' + (i ? r : $e(r, !0)) + `</code></pre>
967
968
  ` : "<pre><code>" + (i ? r : $e(r, !0)) + `</code></pre>
@@ -1267,7 +1268,7 @@ ${e}</tr>
1267
1268
  provideParser() {
1268
1269
  return this.block ? ot.parse : ot.parseInline;
1269
1270
  }
1270
- }, _l = class {
1271
+ }, bl = class {
1271
1272
  defaults = Gn();
1272
1273
  options = this.setOptions;
1273
1274
  parse = this.parseMarkdown(!0);
@@ -1417,7 +1418,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
1417
1418
  throw i;
1418
1419
  };
1419
1420
  }
1420
- }, Tt = new _l();
1421
+ }, Tt = new bl();
1421
1422
  function K(n, e) {
1422
1423
  return Tt.parse(n, e);
1423
1424
  }
@@ -1453,7 +1454,7 @@ rt.lex;
1453
1454
  const {
1454
1455
  entries: lo,
1455
1456
  setPrototypeOf: Vs,
1456
- isFrozen: bl,
1457
+ isFrozen: _l,
1457
1458
  getPrototypeOf: wl,
1458
1459
  getOwnPropertyDescriptor: El
1459
1460
  } = Object;
@@ -1477,8 +1478,8 @@ zn || (zn = function(e, t, i) {
1477
1478
  $n || ($n = function(e, t) {
1478
1479
  return new e(...t);
1479
1480
  });
1480
- const Mi = _e(Array.prototype.forEach), xl = _e(Array.prototype.lastIndexOf), qs = _e(Array.prototype.pop), si = _e(Array.prototype.push), kl = _e(Array.prototype.splice), ji = _e(String.prototype.toLowerCase), wn = _e(String.prototype.toString), Ks = _e(String.prototype.match), ri = _e(String.prototype.replace), Tl = _e(String.prototype.indexOf), Sl = _e(String.prototype.trim), Ae = _e(Object.prototype.hasOwnProperty), fe = _e(RegExp.prototype.test), oi = Rl(TypeError);
1481
- function _e(n) {
1481
+ const Mi = be(Array.prototype.forEach), xl = be(Array.prototype.lastIndexOf), qs = be(Array.prototype.pop), si = be(Array.prototype.push), kl = be(Array.prototype.splice), ji = be(String.prototype.toLowerCase), wn = be(String.prototype.toString), Ks = be(String.prototype.match), ri = be(String.prototype.replace), Tl = be(String.prototype.indexOf), Sl = be(String.prototype.trim), Ae = be(Object.prototype.hasOwnProperty), ge = be(RegExp.prototype.test), oi = Rl(TypeError);
1482
+ function be(n) {
1482
1483
  return function(e) {
1483
1484
  e instanceof RegExp && (e.lastIndex = 0);
1484
1485
  for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
@@ -1501,7 +1502,7 @@ function B(n, e) {
1501
1502
  let s = e[i];
1502
1503
  if (typeof s == "string") {
1503
1504
  const r = t(s);
1504
- r !== s && (bl(e) || (e[i] = r), s = r);
1505
+ r !== s && (_l(e) || (e[i] = r), s = r);
1505
1506
  }
1506
1507
  n[s] = !0;
1507
1508
  }
@@ -1523,9 +1524,9 @@ function ai(n, e) {
1523
1524
  const i = El(n, e);
1524
1525
  if (i) {
1525
1526
  if (i.get)
1526
- return _e(i.get);
1527
+ return be(i.get);
1527
1528
  if (typeof i.value == "function")
1528
- return _e(i.value);
1529
+ return be(i.value);
1529
1530
  }
1530
1531
  n = wl(n);
1531
1532
  }
@@ -1534,7 +1535,7 @@ function ai(n, e) {
1534
1535
  }
1535
1536
  return t;
1536
1537
  }
1537
- const Ys = ye(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), En = ye(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), xn = ye(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Al = ye(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), kn = ye(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ol = ye(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Xs = ye(["#text"]), Zs = ye(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Tn = ye(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Qs = ye(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), zi = ye(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Dl = Se(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Pl = Se(/<%[\w\W]*|[\w\W]*%>/gm), Il = Se(/\$\{[\w\W]*/gm), Nl = Se(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ll = Se(/^aria-[\-\w]+$/), co = Se(
1538
+ const Ys = ye(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), En = ye(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), xn = ye(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Al = ye(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), kn = ye(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ol = ye(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Xs = ye(["#text"]), Zs = ye(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Tn = ye(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Qs = ye(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), zi = ye(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Dl = Se(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Il = Se(/<%[\w\W]*|[\w\W]*%>/gm), Pl = Se(/\$\{[\w\W]*/gm), Nl = Se(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ll = Se(/^aria-[\-\w]+$/), co = Se(
1538
1539
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
1539
1540
  // eslint-disable-line no-useless-escape
1540
1541
  ), Ml = Se(/^(?:\w+script|data):/i), zl = Se(
@@ -1548,11 +1549,11 @@ var Js = /* @__PURE__ */ Object.freeze({
1548
1549
  CUSTOM_ELEMENT: $l,
1549
1550
  DATA_ATTR: Nl,
1550
1551
  DOCTYPE_NAME: ho,
1551
- ERB_EXPR: Pl,
1552
+ ERB_EXPR: Il,
1552
1553
  IS_ALLOWED_URI: co,
1553
1554
  IS_SCRIPT_OR_DATA: Ml,
1554
1555
  MUSTACHE_EXPR: Dl,
1555
- TMPLIT_EXPR: Il
1556
+ TMPLIT_EXPR: Pl
1556
1557
  });
1557
1558
  const li = {
1558
1559
  element: 1,
@@ -1597,7 +1598,7 @@ const li = {
1597
1598
  };
1598
1599
  function po() {
1599
1600
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Hl();
1600
- const e = (I) => po(I);
1601
+ const e = (P) => po(P);
1601
1602
  if (e.version = "3.2.6", e.removed = [], !n || !n.document || n.document.nodeType !== li.document || !n.Element)
1602
1603
  return e.isSupported = !1, e;
1603
1604
  let {
@@ -1613,35 +1614,35 @@ function po() {
1613
1614
  HTMLFormElement: d,
1614
1615
  DOMParser: h,
1615
1616
  trustedTypes: m
1616
- } = n, g = u.prototype, f = ai(g, "cloneNode"), x = ai(g, "remove"), w = ai(g, "nextSibling"), S = ai(g, "childNodes"), _ = ai(g, "parentNode");
1617
+ } = n, g = u.prototype, f = ai(g, "cloneNode"), E = ai(g, "remove"), k = ai(g, "nextSibling"), T = ai(g, "childNodes"), y = ai(g, "parentNode");
1617
1618
  if (typeof o == "function") {
1618
- const I = t.createElement("template");
1619
- I.content && I.content.ownerDocument && (t = I.content.ownerDocument);
1619
+ const P = t.createElement("template");
1620
+ P.content && P.content.ownerDocument && (t = P.content.ownerDocument);
1620
1621
  }
1621
- let y, E = "";
1622
+ let b, w = "";
1622
1623
  const {
1623
- implementation: P,
1624
- createNodeIterator: R,
1625
- createDocumentFragment: N,
1626
- getElementsByTagName: C
1624
+ implementation: O,
1625
+ createNodeIterator: C,
1626
+ createDocumentFragment: S,
1627
+ getElementsByTagName: R
1627
1628
  } = t, {
1628
- importNode: k
1629
+ importNode: A
1629
1630
  } = i;
1630
- let A = er();
1631
- e.isSupported = typeof lo == "function" && typeof _ == "function" && P && P.createHTMLDocument !== void 0;
1631
+ let N = er();
1632
+ e.isSupported = typeof lo == "function" && typeof y == "function" && O && O.createHTMLDocument !== void 0;
1632
1633
  const {
1633
- MUSTACHE_EXPR: H,
1634
- ERB_EXPR: X,
1635
- TMPLIT_EXPR: ne,
1636
- DATA_ATTR: pe,
1637
- ARIA_ATTR: Q,
1634
+ MUSTACHE_EXPR: F,
1635
+ ERB_EXPR: Z,
1636
+ TMPLIT_EXPR: ie,
1637
+ DATA_ATTR: fe,
1638
+ ARIA_ATTR: ne,
1638
1639
  IS_SCRIPT_OR_DATA: oe,
1639
1640
  ATTR_WHITESPACE: L,
1640
1641
  CUSTOM_ELEMENT: re
1641
1642
  } = Js;
1642
1643
  let {
1643
- IS_ALLOWED_URI: Ie
1644
- } = Js, J = null;
1644
+ IS_ALLOWED_URI: Pe
1645
+ } = Js, Q = null;
1645
1646
  const ct = B({}, [...Ys, ...En, ...xn, ...kn, ...Xs]);
1646
1647
  let se = null;
1647
1648
  const Ne = B({}, [...Zs, ...Tn, ...Qs, ...zi]);
@@ -1664,17 +1665,17 @@ function po() {
1664
1665
  enumerable: !0,
1665
1666
  value: !1
1666
1667
  }
1667
- })), Le = null, je = null, Ve = !0, Xt = !0, Ai = !1, Dt = !0, dt = !1, yt = !0, qe = !1, Zt = !1, Pt = !1, Ke = !1, It = !1, Nt = !1, Me = !0, _t = !1;
1668
+ })), Le = null, je = null, Ve = !0, Xt = !0, Ai = !1, Dt = !0, dt = !1, yt = !0, qe = !1, Zt = !1, It = !1, Ke = !1, Pt = !1, Nt = !1, Me = !0, bt = !1;
1668
1669
  const Oi = "user-content-";
1669
1670
  let Lt = !0, Ye = !1, Xe = {}, Ze = null;
1670
1671
  const Qt = B({}, ["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"]);
1671
1672
  let Jt = null;
1672
1673
  const Ts = B({}, ["audio", "video", "img", "source", "image", "track"]);
1673
1674
  let gn = null;
1674
- const Ss = B({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Di = "http://www.w3.org/1998/Math/MathML", Pi = "http://www.w3.org/2000/svg", Qe = "http://www.w3.org/1999/xhtml";
1675
+ const Ss = B({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Di = "http://www.w3.org/1998/Math/MathML", Ii = "http://www.w3.org/2000/svg", Qe = "http://www.w3.org/1999/xhtml";
1675
1676
  let Mt = Qe, mn = !1, vn = null;
1676
- const ta = B({}, [Di, Pi, Qe], wn);
1677
- let Ii = B({}, ["mi", "mo", "mn", "ms", "mtext"]), Ni = B({}, ["annotation-xml"]);
1677
+ const ta = B({}, [Di, Ii, Qe], wn);
1678
+ let Pi = B({}, ["mi", "mo", "mn", "ms", "mtext"]), Ni = B({}, ["annotation-xml"]);
1678
1679
  const ia = B({}, ["title", "style", "font", "a", "script"]);
1679
1680
  let ei = null;
1680
1681
  const na = ["application/xhtml+xml", "text/html"], sa = "text/html";
@@ -1685,147 +1686,147 @@ function po() {
1685
1686
  let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1686
1687
  if (!(zt && zt === p)) {
1687
1688
  if ((!p || typeof p != "object") && (p = {}), p = tt(p), ei = // eslint-disable-next-line unicorn/prefer-includes
1688
- na.indexOf(p.PARSER_MEDIA_TYPE) === -1 ? sa : p.PARSER_MEDIA_TYPE, le = ei === "application/xhtml+xml" ? wn : ji, J = Ae(p, "ALLOWED_TAGS") ? B({}, p.ALLOWED_TAGS, le) : ct, se = Ae(p, "ALLOWED_ATTR") ? B({}, p.ALLOWED_ATTR, le) : Ne, vn = Ae(p, "ALLOWED_NAMESPACES") ? B({}, p.ALLOWED_NAMESPACES, wn) : ta, gn = Ae(p, "ADD_URI_SAFE_ATTR") ? B(tt(Ss), p.ADD_URI_SAFE_ATTR, le) : Ss, Jt = Ae(p, "ADD_DATA_URI_TAGS") ? B(tt(Ts), p.ADD_DATA_URI_TAGS, le) : Ts, Ze = Ae(p, "FORBID_CONTENTS") ? B({}, p.FORBID_CONTENTS, le) : Qt, Le = Ae(p, "FORBID_TAGS") ? B({}, p.FORBID_TAGS, le) : tt({}), je = Ae(p, "FORBID_ATTR") ? B({}, p.FORBID_ATTR, le) : tt({}), Xe = Ae(p, "USE_PROFILES") ? p.USE_PROFILES : !1, Ve = p.ALLOW_ARIA_ATTR !== !1, Xt = p.ALLOW_DATA_ATTR !== !1, Ai = p.ALLOW_UNKNOWN_PROTOCOLS || !1, Dt = p.ALLOW_SELF_CLOSE_IN_ATTR !== !1, dt = p.SAFE_FOR_TEMPLATES || !1, yt = p.SAFE_FOR_XML !== !1, qe = p.WHOLE_DOCUMENT || !1, Ke = p.RETURN_DOM || !1, It = p.RETURN_DOM_FRAGMENT || !1, Nt = p.RETURN_TRUSTED_TYPE || !1, Pt = p.FORCE_BODY || !1, Me = p.SANITIZE_DOM !== !1, _t = p.SANITIZE_NAMED_PROPS || !1, Lt = p.KEEP_CONTENT !== !1, Ye = p.IN_PLACE || !1, Ie = p.ALLOWED_URI_REGEXP || co, Mt = p.NAMESPACE || Qe, Ii = p.MATHML_TEXT_INTEGRATION_POINTS || Ii, Ni = p.HTML_INTEGRATION_POINTS || Ni, G = p.CUSTOM_ELEMENT_HANDLING || {}, p.CUSTOM_ELEMENT_HANDLING && Rs(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (G.tagNameCheck = p.CUSTOM_ELEMENT_HANDLING.tagNameCheck), p.CUSTOM_ELEMENT_HANDLING && Rs(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (G.attributeNameCheck = p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), p.CUSTOM_ELEMENT_HANDLING && typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (G.allowCustomizedBuiltInElements = p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), dt && (Xt = !1), It && (Ke = !0), Xe && (J = B({}, Xs), se = [], Xe.html === !0 && (B(J, Ys), B(se, Zs)), Xe.svg === !0 && (B(J, En), B(se, Tn), B(se, zi)), Xe.svgFilters === !0 && (B(J, xn), B(se, Tn), B(se, zi)), Xe.mathMl === !0 && (B(J, kn), B(se, Qs), B(se, zi))), p.ADD_TAGS && (J === ct && (J = tt(J)), B(J, p.ADD_TAGS, le)), p.ADD_ATTR && (se === Ne && (se = tt(se)), B(se, p.ADD_ATTR, le)), p.ADD_URI_SAFE_ATTR && B(gn, p.ADD_URI_SAFE_ATTR, le), p.FORBID_CONTENTS && (Ze === Qt && (Ze = tt(Ze)), B(Ze, p.FORBID_CONTENTS, le)), Lt && (J["#text"] = !0), qe && B(J, ["html", "head", "body"]), J.table && (B(J, ["tbody"]), delete Le.tbody), p.TRUSTED_TYPES_POLICY) {
1689
+ na.indexOf(p.PARSER_MEDIA_TYPE) === -1 ? sa : p.PARSER_MEDIA_TYPE, le = ei === "application/xhtml+xml" ? wn : ji, Q = Ae(p, "ALLOWED_TAGS") ? B({}, p.ALLOWED_TAGS, le) : ct, se = Ae(p, "ALLOWED_ATTR") ? B({}, p.ALLOWED_ATTR, le) : Ne, vn = Ae(p, "ALLOWED_NAMESPACES") ? B({}, p.ALLOWED_NAMESPACES, wn) : ta, gn = Ae(p, "ADD_URI_SAFE_ATTR") ? B(tt(Ss), p.ADD_URI_SAFE_ATTR, le) : Ss, Jt = Ae(p, "ADD_DATA_URI_TAGS") ? B(tt(Ts), p.ADD_DATA_URI_TAGS, le) : Ts, Ze = Ae(p, "FORBID_CONTENTS") ? B({}, p.FORBID_CONTENTS, le) : Qt, Le = Ae(p, "FORBID_TAGS") ? B({}, p.FORBID_TAGS, le) : tt({}), je = Ae(p, "FORBID_ATTR") ? B({}, p.FORBID_ATTR, le) : tt({}), Xe = Ae(p, "USE_PROFILES") ? p.USE_PROFILES : !1, Ve = p.ALLOW_ARIA_ATTR !== !1, Xt = p.ALLOW_DATA_ATTR !== !1, Ai = p.ALLOW_UNKNOWN_PROTOCOLS || !1, Dt = p.ALLOW_SELF_CLOSE_IN_ATTR !== !1, dt = p.SAFE_FOR_TEMPLATES || !1, yt = p.SAFE_FOR_XML !== !1, qe = p.WHOLE_DOCUMENT || !1, Ke = p.RETURN_DOM || !1, Pt = p.RETURN_DOM_FRAGMENT || !1, Nt = p.RETURN_TRUSTED_TYPE || !1, It = p.FORCE_BODY || !1, Me = p.SANITIZE_DOM !== !1, bt = p.SANITIZE_NAMED_PROPS || !1, Lt = p.KEEP_CONTENT !== !1, Ye = p.IN_PLACE || !1, Pe = p.ALLOWED_URI_REGEXP || co, Mt = p.NAMESPACE || Qe, Pi = p.MATHML_TEXT_INTEGRATION_POINTS || Pi, Ni = p.HTML_INTEGRATION_POINTS || Ni, G = p.CUSTOM_ELEMENT_HANDLING || {}, p.CUSTOM_ELEMENT_HANDLING && Rs(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (G.tagNameCheck = p.CUSTOM_ELEMENT_HANDLING.tagNameCheck), p.CUSTOM_ELEMENT_HANDLING && Rs(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (G.attributeNameCheck = p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), p.CUSTOM_ELEMENT_HANDLING && typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (G.allowCustomizedBuiltInElements = p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), dt && (Xt = !1), Pt && (Ke = !0), Xe && (Q = B({}, Xs), se = [], Xe.html === !0 && (B(Q, Ys), B(se, Zs)), Xe.svg === !0 && (B(Q, En), B(se, Tn), B(se, zi)), Xe.svgFilters === !0 && (B(Q, xn), B(se, Tn), B(se, zi)), Xe.mathMl === !0 && (B(Q, kn), B(se, Qs), B(se, zi))), p.ADD_TAGS && (Q === ct && (Q = tt(Q)), B(Q, p.ADD_TAGS, le)), p.ADD_ATTR && (se === Ne && (se = tt(se)), B(se, p.ADD_ATTR, le)), p.ADD_URI_SAFE_ATTR && B(gn, p.ADD_URI_SAFE_ATTR, le), p.FORBID_CONTENTS && (Ze === Qt && (Ze = tt(Ze)), B(Ze, p.FORBID_CONTENTS, le)), Lt && (Q["#text"] = !0), qe && B(Q, ["html", "head", "body"]), Q.table && (B(Q, ["tbody"]), delete Le.tbody), p.TRUSTED_TYPES_POLICY) {
1689
1690
  if (typeof p.TRUSTED_TYPES_POLICY.createHTML != "function")
1690
1691
  throw oi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1691
1692
  if (typeof p.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1692
1693
  throw oi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1693
- y = p.TRUSTED_TYPES_POLICY, E = y.createHTML("");
1694
+ b = p.TRUSTED_TYPES_POLICY, w = b.createHTML("");
1694
1695
  } else
1695
- y === void 0 && (y = Fl(m, s)), y !== null && typeof E == "string" && (E = y.createHTML(""));
1696
+ b === void 0 && (b = Fl(m, s)), b !== null && typeof w == "string" && (w = b.createHTML(""));
1696
1697
  ye && ye(p), zt = p;
1697
1698
  }
1698
1699
  }, Cs = B({}, [...En, ...xn, ...Al]), As = B({}, [...kn, ...Ol]), oa = function(p) {
1699
- let T = _(p);
1700
- (!T || !T.tagName) && (T = {
1700
+ let x = y(p);
1701
+ (!x || !x.tagName) && (x = {
1701
1702
  namespaceURI: Mt,
1702
1703
  tagName: "template"
1703
1704
  });
1704
- const O = ji(p.tagName), ee = ji(T.tagName);
1705
- return vn[p.namespaceURI] ? p.namespaceURI === Pi ? T.namespaceURI === Qe ? O === "svg" : T.namespaceURI === Di ? O === "svg" && (ee === "annotation-xml" || Ii[ee]) : !!Cs[O] : p.namespaceURI === Di ? T.namespaceURI === Qe ? O === "math" : T.namespaceURI === Pi ? O === "math" && Ni[ee] : !!As[O] : p.namespaceURI === Qe ? T.namespaceURI === Pi && !Ni[ee] || T.namespaceURI === Di && !Ii[ee] ? !1 : !As[O] && (ia[O] || !Cs[O]) : !!(ei === "application/xhtml+xml" && vn[p.namespaceURI]) : !1;
1705
+ const D = ji(p.tagName), J = ji(x.tagName);
1706
+ return vn[p.namespaceURI] ? p.namespaceURI === Ii ? x.namespaceURI === Qe ? D === "svg" : x.namespaceURI === Di ? D === "svg" && (J === "annotation-xml" || Pi[J]) : !!Cs[D] : p.namespaceURI === Di ? x.namespaceURI === Qe ? D === "math" : x.namespaceURI === Ii ? D === "math" && Ni[J] : !!As[D] : p.namespaceURI === Qe ? x.namespaceURI === Ii && !Ni[J] || x.namespaceURI === Di && !Pi[J] ? !1 : !As[D] && (ia[D] || !Cs[D]) : !!(ei === "application/xhtml+xml" && vn[p.namespaceURI]) : !1;
1706
1707
  }, ze = function(p) {
1707
1708
  si(e.removed, {
1708
1709
  element: p
1709
1710
  });
1710
1711
  try {
1711
- _(p).removeChild(p);
1712
+ y(p).removeChild(p);
1712
1713
  } catch {
1713
- x(p);
1714
+ E(p);
1714
1715
  }
1715
- }, $t = function(p, T) {
1716
+ }, $t = function(p, x) {
1716
1717
  try {
1717
1718
  si(e.removed, {
1718
- attribute: T.getAttributeNode(p),
1719
- from: T
1719
+ attribute: x.getAttributeNode(p),
1720
+ from: x
1720
1721
  });
1721
1722
  } catch {
1722
1723
  si(e.removed, {
1723
1724
  attribute: null,
1724
- from: T
1725
+ from: x
1725
1726
  });
1726
1727
  }
1727
- if (T.removeAttribute(p), p === "is")
1728
- if (Ke || It)
1728
+ if (x.removeAttribute(p), p === "is")
1729
+ if (Ke || Pt)
1729
1730
  try {
1730
- ze(T);
1731
+ ze(x);
1731
1732
  } catch {
1732
1733
  }
1733
1734
  else
1734
1735
  try {
1735
- T.setAttribute(p, "");
1736
+ x.setAttribute(p, "");
1736
1737
  } catch {
1737
1738
  }
1738
1739
  }, Os = function(p) {
1739
- let T = null, O = null;
1740
- if (Pt)
1740
+ let x = null, D = null;
1741
+ if (It)
1741
1742
  p = "<remove></remove>" + p;
1742
1743
  else {
1743
1744
  const ae = Ks(p, /^[\r\n\t ]+/);
1744
- O = ae && ae[0];
1745
+ D = ae && ae[0];
1745
1746
  }
1746
1747
  ei === "application/xhtml+xml" && Mt === Qe && (p = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + p + "</body></html>");
1747
- const ee = y ? y.createHTML(p) : p;
1748
+ const J = b ? b.createHTML(p) : p;
1748
1749
  if (Mt === Qe)
1749
1750
  try {
1750
- T = new h().parseFromString(ee, ei);
1751
+ x = new h().parseFromString(J, ei);
1751
1752
  } catch {
1752
1753
  }
1753
- if (!T || !T.documentElement) {
1754
- T = P.createDocument(Mt, "template", null);
1754
+ if (!x || !x.documentElement) {
1755
+ x = O.createDocument(Mt, "template", null);
1755
1756
  try {
1756
- T.documentElement.innerHTML = mn ? E : ee;
1757
+ x.documentElement.innerHTML = mn ? w : J;
1757
1758
  } catch {
1758
1759
  }
1759
1760
  }
1760
- const de = T.body || T.documentElement;
1761
- return p && O && de.insertBefore(t.createTextNode(O), de.childNodes[0] || null), Mt === Qe ? C.call(T, qe ? "html" : "body")[0] : qe ? T.documentElement : de;
1761
+ const de = x.body || x.documentElement;
1762
+ return p && D && de.insertBefore(t.createTextNode(D), de.childNodes[0] || null), Mt === Qe ? R.call(x, qe ? "html" : "body")[0] : qe ? x.documentElement : de;
1762
1763
  }, Ds = function(p) {
1763
- return R.call(
1764
+ return C.call(
1764
1765
  p.ownerDocument || p,
1765
1766
  p,
1766
1767
  // eslint-disable-next-line no-bitwise
1767
1768
  l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION,
1768
1769
  null
1769
1770
  );
1770
- }, _n = function(p) {
1771
+ }, bn = function(p) {
1771
1772
  return p instanceof d && (typeof p.nodeName != "string" || typeof p.textContent != "string" || typeof p.removeChild != "function" || !(p.attributes instanceof c) || typeof p.removeAttribute != "function" || typeof p.setAttribute != "function" || typeof p.namespaceURI != "string" || typeof p.insertBefore != "function" || typeof p.hasChildNodes != "function");
1772
- }, Ps = function(p) {
1773
+ }, Is = function(p) {
1773
1774
  return typeof a == "function" && p instanceof a;
1774
1775
  };
1775
- function Je(I, p, T) {
1776
- Mi(I, (O) => {
1777
- O.call(e, p, T, zt);
1776
+ function Je(P, p, x) {
1777
+ Mi(P, (D) => {
1778
+ D.call(e, p, x, zt);
1778
1779
  });
1779
1780
  }
1780
- const Is = function(p) {
1781
- let T = null;
1782
- if (Je(A.beforeSanitizeElements, p, null), _n(p))
1781
+ const Ps = function(p) {
1782
+ let x = null;
1783
+ if (Je(N.beforeSanitizeElements, p, null), bn(p))
1783
1784
  return ze(p), !0;
1784
- const O = le(p.nodeName);
1785
- if (Je(A.uponSanitizeElement, p, {
1786
- tagName: O,
1787
- allowedTags: J
1788
- }), yt && p.hasChildNodes() && !Ps(p.firstElementChild) && fe(/<[/\w!]/g, p.innerHTML) && fe(/<[/\w!]/g, p.textContent) || p.nodeType === li.progressingInstruction || yt && p.nodeType === li.comment && fe(/<[/\w]/g, p.data))
1785
+ const D = le(p.nodeName);
1786
+ if (Je(N.uponSanitizeElement, p, {
1787
+ tagName: D,
1788
+ allowedTags: Q
1789
+ }), yt && p.hasChildNodes() && !Is(p.firstElementChild) && ge(/<[/\w!]/g, p.innerHTML) && ge(/<[/\w!]/g, p.textContent) || p.nodeType === li.progressingInstruction || yt && p.nodeType === li.comment && ge(/<[/\w]/g, p.data))
1789
1790
  return ze(p), !0;
1790
- if (!J[O] || Le[O]) {
1791
- if (!Le[O] && Ls(O) && (G.tagNameCheck instanceof RegExp && fe(G.tagNameCheck, O) || G.tagNameCheck instanceof Function && G.tagNameCheck(O)))
1791
+ if (!Q[D] || Le[D]) {
1792
+ if (!Le[D] && Ls(D) && (G.tagNameCheck instanceof RegExp && ge(G.tagNameCheck, D) || G.tagNameCheck instanceof Function && G.tagNameCheck(D)))
1792
1793
  return !1;
1793
- if (Lt && !Ze[O]) {
1794
- const ee = _(p) || p.parentNode, de = S(p) || p.childNodes;
1795
- if (de && ee) {
1794
+ if (Lt && !Ze[D]) {
1795
+ const J = y(p) || p.parentNode, de = T(p) || p.childNodes;
1796
+ if (de && J) {
1796
1797
  const ae = de.length;
1797
- for (let be = ae - 1; be >= 0; --be) {
1798
- const et = f(de[be], !0);
1799
- et.__removalCount = (p.__removalCount || 0) + 1, ee.insertBefore(et, w(p));
1798
+ for (let _e = ae - 1; _e >= 0; --_e) {
1799
+ const et = f(de[_e], !0);
1800
+ et.__removalCount = (p.__removalCount || 0) + 1, J.insertBefore(et, k(p));
1800
1801
  }
1801
1802
  }
1802
1803
  }
1803
1804
  return ze(p), !0;
1804
1805
  }
1805
- return p instanceof u && !oa(p) || (O === "noscript" || O === "noembed" || O === "noframes") && fe(/<\/no(script|embed|frames)/i, p.innerHTML) ? (ze(p), !0) : (dt && p.nodeType === li.text && (T = p.textContent, Mi([H, X, ne], (ee) => {
1806
- T = ri(T, ee, " ");
1807
- }), p.textContent !== T && (si(e.removed, {
1806
+ return p instanceof u && !oa(p) || (D === "noscript" || D === "noembed" || D === "noframes") && ge(/<\/no(script|embed|frames)/i, p.innerHTML) ? (ze(p), !0) : (dt && p.nodeType === li.text && (x = p.textContent, Mi([F, Z, ie], (J) => {
1807
+ x = ri(x, J, " ");
1808
+ }), p.textContent !== x && (si(e.removed, {
1808
1809
  element: p.cloneNode()
1809
- }), p.textContent = T)), Je(A.afterSanitizeElements, p, null), !1);
1810
- }, Ns = function(p, T, O) {
1811
- if (Me && (T === "id" || T === "name") && (O in t || O in ra))
1810
+ }), p.textContent = x)), Je(N.afterSanitizeElements, p, null), !1);
1811
+ }, Ns = function(p, x, D) {
1812
+ if (Me && (x === "id" || x === "name") && (D in t || D in ra))
1812
1813
  return !1;
1813
- if (!(Xt && !je[T] && fe(pe, T))) {
1814
- if (!(Ve && fe(Q, T))) {
1815
- if (!se[T] || je[T]) {
1814
+ if (!(Xt && !je[x] && ge(fe, x))) {
1815
+ if (!(Ve && ge(ne, x))) {
1816
+ if (!se[x] || je[x]) {
1816
1817
  if (
1817
1818
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1818
1819
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1819
1820
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
1820
- !(Ls(p) && (G.tagNameCheck instanceof RegExp && fe(G.tagNameCheck, p) || G.tagNameCheck instanceof Function && G.tagNameCheck(p)) && (G.attributeNameCheck instanceof RegExp && fe(G.attributeNameCheck, T) || G.attributeNameCheck instanceof Function && G.attributeNameCheck(T)) || // Alternative, second condition checks if it's an `is`-attribute, AND
1821
+ !(Ls(p) && (G.tagNameCheck instanceof RegExp && ge(G.tagNameCheck, p) || G.tagNameCheck instanceof Function && G.tagNameCheck(p)) && (G.attributeNameCheck instanceof RegExp && ge(G.attributeNameCheck, x) || G.attributeNameCheck instanceof Function && G.attributeNameCheck(x)) || // Alternative, second condition checks if it's an `is`-attribute, AND
1821
1822
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1822
- T === "is" && G.allowCustomizedBuiltInElements && (G.tagNameCheck instanceof RegExp && fe(G.tagNameCheck, O) || G.tagNameCheck instanceof Function && G.tagNameCheck(O)))
1823
+ x === "is" && G.allowCustomizedBuiltInElements && (G.tagNameCheck instanceof RegExp && ge(G.tagNameCheck, D) || G.tagNameCheck instanceof Function && G.tagNameCheck(D)))
1823
1824
  ) return !1;
1824
- } else if (!gn[T]) {
1825
- if (!fe(Ie, ri(O, L, ""))) {
1826
- if (!((T === "src" || T === "xlink:href" || T === "href") && p !== "script" && Tl(O, "data:") === 0 && Jt[p])) {
1827
- if (!(Ai && !fe(oe, ri(O, L, "")))) {
1828
- if (O)
1825
+ } else if (!gn[x]) {
1826
+ if (!ge(Pe, ri(D, L, ""))) {
1827
+ if (!((x === "src" || x === "xlink:href" || x === "href") && p !== "script" && Tl(D, "data:") === 0 && Jt[p])) {
1828
+ if (!(Ai && !ge(oe, ri(D, L, "")))) {
1829
+ if (D)
1829
1830
  return !1;
1830
1831
  }
1831
1832
  }
@@ -1837,42 +1838,42 @@ function po() {
1837
1838
  }, Ls = function(p) {
1838
1839
  return p !== "annotation-xml" && Ks(p, re);
1839
1840
  }, Ms = function(p) {
1840
- Je(A.beforeSanitizeAttributes, p, null);
1841
+ Je(N.beforeSanitizeAttributes, p, null);
1841
1842
  const {
1842
- attributes: T
1843
+ attributes: x
1843
1844
  } = p;
1844
- if (!T || _n(p))
1845
+ if (!x || bn(p))
1845
1846
  return;
1846
- const O = {
1847
+ const D = {
1847
1848
  attrName: "",
1848
1849
  attrValue: "",
1849
1850
  keepAttr: !0,
1850
1851
  allowedAttributes: se,
1851
1852
  forceKeepAttr: void 0
1852
1853
  };
1853
- let ee = T.length;
1854
- for (; ee--; ) {
1855
- const de = T[ee], {
1854
+ let J = x.length;
1855
+ for (; J--; ) {
1856
+ const de = x[J], {
1856
1857
  name: ae,
1857
- namespaceURI: be,
1858
+ namespaceURI: _e,
1858
1859
  value: et
1859
- } = de, ti = le(ae), bn = et;
1860
- let he = ae === "value" ? bn : Sl(bn);
1861
- if (O.attrName = ti, O.attrValue = he, O.keepAttr = !0, O.forceKeepAttr = void 0, Je(A.uponSanitizeAttribute, p, O), he = O.attrValue, _t && (ti === "id" || ti === "name") && ($t(ae, p), he = Oi + he), yt && fe(/((--!?|])>)|<\/(style|title)/i, he)) {
1860
+ } = de, ti = le(ae), _n = et;
1861
+ let he = ae === "value" ? _n : Sl(_n);
1862
+ if (D.attrName = ti, D.attrValue = he, D.keepAttr = !0, D.forceKeepAttr = void 0, Je(N.uponSanitizeAttribute, p, D), he = D.attrValue, bt && (ti === "id" || ti === "name") && ($t(ae, p), he = Oi + he), yt && ge(/((--!?|])>)|<\/(style|title)/i, he)) {
1862
1863
  $t(ae, p);
1863
1864
  continue;
1864
1865
  }
1865
- if (O.forceKeepAttr)
1866
+ if (D.forceKeepAttr)
1866
1867
  continue;
1867
- if (!O.keepAttr) {
1868
+ if (!D.keepAttr) {
1868
1869
  $t(ae, p);
1869
1870
  continue;
1870
1871
  }
1871
- if (!Dt && fe(/\/>/i, he)) {
1872
+ if (!Dt && ge(/\/>/i, he)) {
1872
1873
  $t(ae, p);
1873
1874
  continue;
1874
1875
  }
1875
- dt && Mi([H, X, ne], ($s) => {
1876
+ dt && Mi([F, Z, ie], ($s) => {
1876
1877
  he = ri(he, $s, " ");
1877
1878
  });
1878
1879
  const zs = le(p.nodeName);
@@ -1880,97 +1881,97 @@ function po() {
1880
1881
  $t(ae, p);
1881
1882
  continue;
1882
1883
  }
1883
- if (y && typeof m == "object" && typeof m.getAttributeType == "function" && !be)
1884
+ if (b && typeof m == "object" && typeof m.getAttributeType == "function" && !_e)
1884
1885
  switch (m.getAttributeType(zs, ti)) {
1885
1886
  case "TrustedHTML": {
1886
- he = y.createHTML(he);
1887
+ he = b.createHTML(he);
1887
1888
  break;
1888
1889
  }
1889
1890
  case "TrustedScriptURL": {
1890
- he = y.createScriptURL(he);
1891
+ he = b.createScriptURL(he);
1891
1892
  break;
1892
1893
  }
1893
1894
  }
1894
- if (he !== bn)
1895
+ if (he !== _n)
1895
1896
  try {
1896
- be ? p.setAttributeNS(be, ae, he) : p.setAttribute(ae, he), _n(p) ? ze(p) : qs(e.removed);
1897
+ _e ? p.setAttributeNS(_e, ae, he) : p.setAttribute(ae, he), bn(p) ? ze(p) : qs(e.removed);
1897
1898
  } catch {
1898
1899
  $t(ae, p);
1899
1900
  }
1900
1901
  }
1901
- Je(A.afterSanitizeAttributes, p, null);
1902
- }, aa = function I(p) {
1903
- let T = null;
1904
- const O = Ds(p);
1905
- for (Je(A.beforeSanitizeShadowDOM, p, null); T = O.nextNode(); )
1906
- Je(A.uponSanitizeShadowNode, T, null), Is(T), Ms(T), T.content instanceof r && I(T.content);
1907
- Je(A.afterSanitizeShadowDOM, p, null);
1902
+ Je(N.afterSanitizeAttributes, p, null);
1903
+ }, aa = function P(p) {
1904
+ let x = null;
1905
+ const D = Ds(p);
1906
+ for (Je(N.beforeSanitizeShadowDOM, p, null); x = D.nextNode(); )
1907
+ Je(N.uponSanitizeShadowNode, x, null), Ps(x), Ms(x), x.content instanceof r && P(x.content);
1908
+ Je(N.afterSanitizeShadowDOM, p, null);
1908
1909
  };
1909
- return e.sanitize = function(I) {
1910
- let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, T = null, O = null, ee = null, de = null;
1911
- if (mn = !I, mn && (I = "<!-->"), typeof I != "string" && !Ps(I))
1912
- if (typeof I.toString == "function") {
1913
- if (I = I.toString(), typeof I != "string")
1910
+ return e.sanitize = function(P) {
1911
+ let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, x = null, D = null, J = null, de = null;
1912
+ if (mn = !P, mn && (P = "<!-->"), typeof P != "string" && !Is(P))
1913
+ if (typeof P.toString == "function") {
1914
+ if (P = P.toString(), typeof P != "string")
1914
1915
  throw oi("dirty is not a string, aborting");
1915
1916
  } else
1916
1917
  throw oi("toString is not a function");
1917
1918
  if (!e.isSupported)
1918
- return I;
1919
- if (Zt || yn(p), e.removed = [], typeof I == "string" && (Ye = !1), Ye) {
1920
- if (I.nodeName) {
1921
- const et = le(I.nodeName);
1922
- if (!J[et] || Le[et])
1919
+ return P;
1920
+ if (Zt || yn(p), e.removed = [], typeof P == "string" && (Ye = !1), Ye) {
1921
+ if (P.nodeName) {
1922
+ const et = le(P.nodeName);
1923
+ if (!Q[et] || Le[et])
1923
1924
  throw oi("root node is forbidden and cannot be sanitized in-place");
1924
1925
  }
1925
- } else if (I instanceof a)
1926
- T = Os("<!---->"), O = T.ownerDocument.importNode(I, !0), O.nodeType === li.element && O.nodeName === "BODY" || O.nodeName === "HTML" ? T = O : T.appendChild(O);
1926
+ } else if (P instanceof a)
1927
+ x = Os("<!---->"), D = x.ownerDocument.importNode(P, !0), D.nodeType === li.element && D.nodeName === "BODY" || D.nodeName === "HTML" ? x = D : x.appendChild(D);
1927
1928
  else {
1928
1929
  if (!Ke && !dt && !qe && // eslint-disable-next-line unicorn/prefer-includes
1929
- I.indexOf("<") === -1)
1930
- return y && Nt ? y.createHTML(I) : I;
1931
- if (T = Os(I), !T)
1932
- return Ke ? null : Nt ? E : "";
1930
+ P.indexOf("<") === -1)
1931
+ return b && Nt ? b.createHTML(P) : P;
1932
+ if (x = Os(P), !x)
1933
+ return Ke ? null : Nt ? w : "";
1933
1934
  }
1934
- T && Pt && ze(T.firstChild);
1935
- const ae = Ds(Ye ? I : T);
1936
- for (; ee = ae.nextNode(); )
1937
- Is(ee), Ms(ee), ee.content instanceof r && aa(ee.content);
1935
+ x && It && ze(x.firstChild);
1936
+ const ae = Ds(Ye ? P : x);
1937
+ for (; J = ae.nextNode(); )
1938
+ Ps(J), Ms(J), J.content instanceof r && aa(J.content);
1938
1939
  if (Ye)
1939
- return I;
1940
+ return P;
1940
1941
  if (Ke) {
1941
- if (It)
1942
- for (de = N.call(T.ownerDocument); T.firstChild; )
1943
- de.appendChild(T.firstChild);
1942
+ if (Pt)
1943
+ for (de = S.call(x.ownerDocument); x.firstChild; )
1944
+ de.appendChild(x.firstChild);
1944
1945
  else
1945
- de = T;
1946
- return (se.shadowroot || se.shadowrootmode) && (de = k.call(i, de, !0)), de;
1946
+ de = x;
1947
+ return (se.shadowroot || se.shadowrootmode) && (de = A.call(i, de, !0)), de;
1947
1948
  }
1948
- let be = qe ? T.outerHTML : T.innerHTML;
1949
- return qe && J["!doctype"] && T.ownerDocument && T.ownerDocument.doctype && T.ownerDocument.doctype.name && fe(ho, T.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + T.ownerDocument.doctype.name + `>
1950
- ` + be), dt && Mi([H, X, ne], (et) => {
1951
- be = ri(be, et, " ");
1952
- }), y && Nt ? y.createHTML(be) : be;
1949
+ let _e = qe ? x.outerHTML : x.innerHTML;
1950
+ return qe && Q["!doctype"] && x.ownerDocument && x.ownerDocument.doctype && x.ownerDocument.doctype.name && ge(ho, x.ownerDocument.doctype.name) && (_e = "<!DOCTYPE " + x.ownerDocument.doctype.name + `>
1951
+ ` + _e), dt && Mi([F, Z, ie], (et) => {
1952
+ _e = ri(_e, et, " ");
1953
+ }), b && Nt ? b.createHTML(_e) : _e;
1953
1954
  }, e.setConfig = function() {
1954
- let I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1955
- yn(I), Zt = !0;
1955
+ let P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1956
+ yn(P), Zt = !0;
1956
1957
  }, e.clearConfig = function() {
1957
1958
  zt = null, Zt = !1;
1958
- }, e.isValidAttribute = function(I, p, T) {
1959
+ }, e.isValidAttribute = function(P, p, x) {
1959
1960
  zt || yn({});
1960
- const O = le(I), ee = le(p);
1961
- return Ns(O, ee, T);
1962
- }, e.addHook = function(I, p) {
1963
- typeof p == "function" && si(A[I], p);
1964
- }, e.removeHook = function(I, p) {
1961
+ const D = le(P), J = le(p);
1962
+ return Ns(D, J, x);
1963
+ }, e.addHook = function(P, p) {
1964
+ typeof p == "function" && si(N[P], p);
1965
+ }, e.removeHook = function(P, p) {
1965
1966
  if (p !== void 0) {
1966
- const T = xl(A[I], p);
1967
- return T === -1 ? void 0 : kl(A[I], T, 1)[0];
1967
+ const x = xl(N[P], p);
1968
+ return x === -1 ? void 0 : kl(N[P], x, 1)[0];
1968
1969
  }
1969
- return qs(A[I]);
1970
- }, e.removeHooks = function(I) {
1971
- A[I] = [];
1970
+ return qs(N[P]);
1971
+ }, e.removeHooks = function(P) {
1972
+ N[P] = [];
1972
1973
  }, e.removeAllHooks = function() {
1973
- A = er();
1974
+ N = er();
1974
1975
  }, e;
1975
1976
  }
1976
1977
  var Bl = po();
@@ -1998,7 +1999,7 @@ const Ul = ["innerHTML"], Wl = "Markdown", Gl = /* @__PURE__ */ q({
1998
1999
  V(() => t.mode, (c) => {
1999
2000
  c && (o.value = c === "edit");
2000
2001
  });
2001
- const a = $(() => {
2002
+ const a = z(() => {
2002
2003
  const c = t.inputFormat === "html" ? r.value ?? "" : K.parse(r.value ?? "");
2003
2004
  return t.sanitize === !1 ? c : Bl.sanitize(c);
2004
2005
  });
@@ -2008,13 +2009,13 @@ const Ul = ["innerHTML"], Wl = "Markdown", Gl = /* @__PURE__ */ q({
2008
2009
  function l() {
2009
2010
  o.value = !o.value, i("changeMode", o.value ? "edit" : "preview");
2010
2011
  }
2011
- return (c, d) => (D(), W(ht, null, [
2012
+ return (c, d) => (I(), W(ht, null, [
2012
2013
  ce(c.$slots, "default", {
2013
2014
  widgetName: Wl,
2014
2015
  childIcons: s.value
2015
2016
  }, void 0, !0),
2016
2017
  U("div", Rt({ class: "markdown-widget-wrap" }, c.$attrs), [
2017
- o.value ? at((D(), W("textarea", {
2018
+ o.value ? at((I(), W("textarea", {
2018
2019
  key: 0,
2019
2020
  "onUpdate:modelValue": d[0] || (d[0] = (h) => r.value = h),
2020
2021
  onInput: u,
@@ -2022,7 +2023,7 @@ const Ul = ["innerHTML"], Wl = "Markdown", Gl = /* @__PURE__ */ q({
2022
2023
  placeholder: "Write markdown here…"
2023
2024
  }, null, 544)), [
2024
2025
  [da, r.value]
2025
- ]) : (D(), W("div", {
2026
+ ]) : (I(), W("div", {
2026
2027
  key: 1,
2027
2028
  class: "markdown-output",
2028
2029
  innerHTML: a.value
@@ -2817,7 +2818,7 @@ const xe = {
2817
2818
  // revert: 'invalid',
2818
2819
  // scroll: false,
2819
2820
  };
2820
- class z {
2821
+ class $ {
2821
2822
  }
2822
2823
  const Oe = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
2823
2824
  class Fe {
@@ -2906,17 +2907,17 @@ function Ji(n) {
2906
2907
  if (!Fe.touchHandled)
2907
2908
  return;
2908
2909
  Fe.pointerLeaveTimeout && (window.clearTimeout(Fe.pointerLeaveTimeout), delete Fe.pointerLeaveTimeout);
2909
- const e = !!z.dragElement;
2910
+ const e = !!$.dragElement;
2910
2911
  Xi(n, "mouseup"), e || Xi(n, "click"), Fe.touchHandled = !1;
2911
2912
  }
2912
2913
  function en(n) {
2913
2914
  n.pointerType !== "mouse" && n.target.releasePointerCapture(n.pointerId);
2914
2915
  }
2915
2916
  function tr(n) {
2916
- z.dragElement && n.pointerType !== "mouse" && fo(n, "mouseenter");
2917
+ $.dragElement && n.pointerType !== "mouse" && fo(n, "mouseenter");
2917
2918
  }
2918
2919
  function ir(n) {
2919
- z.dragElement && n.pointerType !== "mouse" && (Fe.pointerLeaveTimeout = window.setTimeout(() => {
2920
+ $.dragElement && n.pointerType !== "mouse" && (Fe.pointerLeaveTimeout = window.setTimeout(() => {
2920
2921
  delete Fe.pointerLeaveTimeout, fo(n, "mouseleave");
2921
2922
  }, 10));
2922
2923
  }
@@ -3035,17 +3036,17 @@ class yi extends Jn {
3035
3036
  }
3036
3037
  /** @internal turns auto hide on/off */
3037
3038
  _setupAutoHide(e) {
3038
- return e ? (this.el.classList.add("ui-resizable-autohide"), this.el.addEventListener("mouseover", this._mouseOver), this.el.addEventListener("mouseout", this._mouseOut)) : (this.el.classList.remove("ui-resizable-autohide"), this.el.removeEventListener("mouseover", this._mouseOver), this.el.removeEventListener("mouseout", this._mouseOut), z.overResizeElement === this && delete z.overResizeElement), this;
3039
+ return e ? (this.el.classList.add("ui-resizable-autohide"), this.el.addEventListener("mouseover", this._mouseOver), this.el.addEventListener("mouseout", this._mouseOut)) : (this.el.classList.remove("ui-resizable-autohide"), this.el.removeEventListener("mouseover", this._mouseOver), this.el.removeEventListener("mouseout", this._mouseOut), $.overResizeElement === this && delete $.overResizeElement), this;
3039
3040
  }
3040
3041
  /** @internal */
3041
3042
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3042
3043
  _mouseOver(e) {
3043
- z.overResizeElement || z.dragElement || (z.overResizeElement = this, this.el.classList.remove("ui-resizable-autohide"));
3044
+ $.overResizeElement || $.dragElement || ($.overResizeElement = this, this.el.classList.remove("ui-resizable-autohide"));
3044
3045
  }
3045
3046
  /** @internal */
3046
3047
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3047
3048
  _mouseOut(e) {
3048
- z.overResizeElement === this && (delete z.overResizeElement, this.el.classList.add("ui-resizable-autohide"));
3049
+ $.overResizeElement === this && (delete $.overResizeElement, this.el.classList.add("ui-resizable-autohide"));
3049
3050
  }
3050
3051
  /** @internal */
3051
3052
  _setupHandlers() {
@@ -3140,7 +3141,7 @@ class yi extends Jn {
3140
3141
  }
3141
3142
  yi._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
3142
3143
  const ql = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
3143
- class _i extends Jn {
3144
+ class bi extends Jn {
3144
3145
  constructor(e, t = {}) {
3145
3146
  super(), this.dragScale = { x: 1, y: 1 }, this.el = e, this.option = t;
3146
3147
  let i = t.handle.substring(1);
@@ -3166,8 +3167,8 @@ class _i extends Jn {
3166
3167
  }
3167
3168
  /** @internal call when mouse goes down before a dragstart happens */
3168
3169
  _mouseDown(e) {
3169
- if (!z.mouseHandled)
3170
- return e.button !== 0 || e.target.closest(ql) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete z.dragElement, delete z.dropElement, document.addEventListener("mousemove", this._mouseMove, !0), document.addEventListener("mouseup", this._mouseUp, !0), Oe && (this.dragEl.addEventListener("touchmove", Qi), this.dragEl.addEventListener("touchend", Ji)), e.preventDefault(), document.activeElement && document.activeElement.blur(), z.mouseHandled = !0), !0;
3170
+ if (!$.mouseHandled)
3171
+ return e.button !== 0 || e.target.closest(ql) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete $.dragElement, delete $.dropElement, document.addEventListener("mousemove", this._mouseMove, !0), document.addEventListener("mouseup", this._mouseUp, !0), Oe && (this.dragEl.addEventListener("touchmove", Qi), this.dragEl.addEventListener("touchend", Ji)), e.preventDefault(), document.activeElement && document.activeElement.blur(), $.mouseHandled = !0), !0;
3171
3172
  }
3172
3173
  /** @internal method to call actual drag event */
3173
3174
  _callDrag(e) {
@@ -3180,15 +3181,15 @@ class _i extends Jn {
3180
3181
  _mouseMove(e) {
3181
3182
  let t = this.mouseDownEvent;
3182
3183
  if (this.dragging)
3183
- if (this._dragFollow(e), z.pauseDrag) {
3184
- const i = Number.isInteger(z.pauseDrag) ? z.pauseDrag : 100;
3184
+ if (this._dragFollow(e), $.pauseDrag) {
3185
+ const i = Number.isInteger($.pauseDrag) ? $.pauseDrag : 100;
3185
3186
  this.dragTimeout && window.clearTimeout(this.dragTimeout), this.dragTimeout = window.setTimeout(() => this._callDrag(e), i);
3186
3187
  } else
3187
3188
  this._callDrag(e);
3188
3189
  else if (Math.abs(e.x - t.x) + Math.abs(e.y - t.y) > 3) {
3189
- this.dragging = !0, z.dragElement = this;
3190
+ this.dragging = !0, $.dragElement = this;
3190
3191
  let i = this.el.gridstackNode?.grid;
3191
- i ? z.dropElement = i.el.ddElement.ddDroppable : delete z.dropElement, this.helper = this._createHelper(e), this._setupHelperContainmentStyle(), this.dragOffset = this._getDragOffset(e, this.el, this.helperContainment);
3192
+ i ? $.dropElement = i.el.ddElement.ddDroppable : delete $.dropElement, this.helper = this._createHelper(e), this._setupHelperContainmentStyle(), this.dragOffset = this._getDragOffset(e, this.el, this.helperContainment);
3192
3193
  const s = v.initEvent(e, { target: this.el, type: "dragstart" });
3193
3194
  this._setupHelperStyle(e), this.option.start && this.option.start(s, this.ui()), this.triggerEvent("dragstart", s);
3194
3195
  }
@@ -3197,16 +3198,16 @@ class _i extends Jn {
3197
3198
  /** @internal call when the mouse gets released to drop the item at current location */
3198
3199
  _mouseUp(e) {
3199
3200
  if (document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), Oe && (this.dragEl.removeEventListener("touchmove", Qi, !0), this.dragEl.removeEventListener("touchend", Ji, !0)), this.dragging) {
3200
- delete this.dragging, z.dropElement?.el === this.el.parentElement && delete z.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper === this.el ? this._removeHelperStyle() : this.helper.remove();
3201
+ delete this.dragging, $.dropElement?.el === this.el.parentElement && delete $.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper === this.el ? this._removeHelperStyle() : this.helper.remove();
3201
3202
  const t = v.initEvent(e, { target: this.el, type: "dragstop" });
3202
- this.option.stop && this.option.stop(t), this.triggerEvent("dragstop", t), z.dropElement && z.dropElement.drop(e);
3203
+ this.option.stop && this.option.stop(t), this.triggerEvent("dragstop", t), $.dropElement && $.dropElement.drop(e);
3203
3204
  }
3204
- delete this.helper, delete this.mouseDownEvent, delete z.dragElement, delete z.dropElement, delete z.mouseHandled, e.preventDefault();
3205
+ delete this.helper, delete this.mouseDownEvent, delete $.dragElement, delete $.dropElement, delete $.mouseHandled, e.preventDefault();
3205
3206
  }
3206
3207
  /** @internal create a clone copy (or user defined method) of the original drag item if set */
3207
3208
  _createHelper(e) {
3208
3209
  let t = this.el;
3209
- return typeof this.option.helper == "function" ? t = this.option.helper(e) : this.option.helper === "clone" && (t = v.cloneNode(this.el)), document.body.contains(t) || v.appendTo(t, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), t === this.el && (this.dragElementOriginStyle = _i.originStyleProp.map((i) => this.el.style[i])), t;
3210
+ return typeof this.option.helper == "function" ? t = this.option.helper(e) : this.option.helper === "clone" && (t = v.cloneNode(this.el)), document.body.contains(t) || v.appendTo(t, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), t === this.el && (this.dragElementOriginStyle = bi.originStyleProp.map((i) => this.el.style[i])), t;
3210
3211
  }
3211
3212
  /** @internal set the fix position of the dragged item */
3212
3213
  _setupHelperStyle(e) {
@@ -3220,7 +3221,7 @@ class _i extends Jn {
3220
3221
  _removeHelperStyle() {
3221
3222
  if (this.helper.classList.remove("ui-draggable-dragging"), !this.helper?.gridstackNode?._isAboutToRemove && this.dragElementOriginStyle) {
3222
3223
  let t = this.helper, i = this.dragElementOriginStyle.transition || null;
3223
- t.style.transition = this.dragElementOriginStyle.transition = "none", _i.originStyleProp.forEach((s) => t.style[s] = this.dragElementOriginStyle[s] || null), setTimeout(() => t.style.transition = i, 50);
3224
+ t.style.transition = this.dragElementOriginStyle.transition = "none", bi.originStyleProp.forEach((s) => t.style[s] = this.dragElementOriginStyle[s] || null), setTimeout(() => t.style.transition = i, 50);
3224
3225
  }
3225
3226
  return delete this.dragElementOriginStyle, this;
3226
3227
  }
@@ -3279,7 +3280,7 @@ class _i extends Jn {
3279
3280
  };
3280
3281
  }
3281
3282
  }
3282
- _i.originStyleProp = ["transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
3283
+ bi.originStyleProp = ["transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
3283
3284
  class Kl extends Jn {
3284
3285
  constructor(e, t = {}) {
3285
3286
  super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
@@ -3304,20 +3305,20 @@ class Kl extends Jn {
3304
3305
  }
3305
3306
  /** @internal called when the cursor enters our area - prepare for a possible drop and track leaving */
3306
3307
  _mouseEnter(e) {
3307
- if (!z.dragElement || !this._canDrop(z.dragElement.el))
3308
+ if (!$.dragElement || !this._canDrop($.dragElement.el))
3308
3309
  return;
3309
- e.preventDefault(), e.stopPropagation(), z.dropElement && z.dropElement !== this && z.dropElement._mouseLeave(e), z.dropElement = this;
3310
+ e.preventDefault(), e.stopPropagation(), $.dropElement && $.dropElement !== this && $.dropElement._mouseLeave(e), $.dropElement = this;
3310
3311
  const t = v.initEvent(e, { target: this.el, type: "dropover" });
3311
- this.option.over && this.option.over(t, this._ui(z.dragElement)), this.triggerEvent("dropover", t), this.el.classList.add("ui-droppable-over");
3312
+ this.option.over && this.option.over(t, this._ui($.dragElement)), this.triggerEvent("dropover", t), this.el.classList.add("ui-droppable-over");
3312
3313
  }
3313
3314
  /** @internal called when the item is leaving our area, stop tracking if we had moving item */
3314
3315
  _mouseLeave(e) {
3315
- if (!z.dragElement || z.dropElement !== this)
3316
+ if (!$.dragElement || $.dropElement !== this)
3316
3317
  return;
3317
3318
  e.preventDefault(), e.stopPropagation();
3318
3319
  const t = v.initEvent(e, { target: this.el, type: "dropout" });
3319
- if (this.option.out && this.option.out(t, this._ui(z.dragElement)), this.triggerEvent("dropout", t), z.dropElement === this) {
3320
- delete z.dropElement;
3320
+ if (this.option.out && this.option.out(t, this._ui($.dragElement)), this.triggerEvent("dropout", t), $.dropElement === this) {
3321
+ delete $.dropElement;
3321
3322
  let i, s = this.el.parentElement;
3322
3323
  for (; !i && s; )
3323
3324
  i = s.ddElement?.ddDroppable, s = s.parentElement;
@@ -3328,7 +3329,7 @@ class Kl extends Jn {
3328
3329
  drop(e) {
3329
3330
  e.preventDefault();
3330
3331
  const t = v.initEvent(e, { target: this.el, type: "drop" });
3331
- this.option.drop && this.option.drop(t, this._ui(z.dragElement)), this.triggerEvent("drop", t);
3332
+ this.option.drop && this.option.drop(t, this._ui($.dragElement)), this.triggerEvent("drop", t);
3332
3333
  }
3333
3334
  /** @internal true if element matches the string/method accept option */
3334
3335
  _canDrop(e) {
@@ -3360,7 +3361,7 @@ class es {
3360
3361
  return this.ddDraggable && ["drag", "dragstart", "dragstop"].indexOf(e) > -1 ? this.ddDraggable.off(e) : this.ddDroppable && ["drop", "dropover", "dropout"].indexOf(e) > -1 ? this.ddDroppable.off(e) : this.ddResizable && ["resizestart", "resize", "resizestop"].indexOf(e) > -1 && this.ddResizable.off(e), this;
3361
3362
  }
3362
3363
  setupDraggable(e) {
3363
- return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new _i(this.el, e), this;
3364
+ return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new bi(this.el, e), this;
3364
3365
  }
3365
3366
  cleanDraggable() {
3366
3367
  return this.ddDraggable && (this.ddDraggable.destroy(), delete this.ddDraggable), this;
@@ -3443,7 +3444,7 @@ class Yl {
3443
3444
  }
3444
3445
  on(e, t, i) {
3445
3446
  return this._getDDElements(e).forEach((s) => s.on(t, (r) => {
3446
- i(r, z.dragElement ? z.dragElement.el : r.target, z.dragElement ? z.dragElement.helper : null);
3447
+ i(r, $.dragElement ? $.dragElement.el : r.target, $.dragElement ? $.dragElement.helper : null);
3447
3448
  })), this;
3448
3449
  }
3449
3450
  off(e, t) {
@@ -3466,7 +3467,7 @@ class Yl {
3466
3467
  * see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
3467
3468
  */
3468
3469
  const ue = new Yl();
3469
- class F {
3470
+ class H {
3470
3471
  /**
3471
3472
  * initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
3472
3473
  * simply return the existing instance (ignore any passed options). There is also an initAll() version that support
@@ -3481,8 +3482,8 @@ class F {
3481
3482
  * let grid = document.querySelector('.grid-stack').gridstack;
3482
3483
  */
3483
3484
  static init(e = {}, t = ".grid-stack") {
3484
- let i = F.getGridElement(t);
3485
- return i ? (i.gridstack || (i.gridstack = new F(i, v.cloneDeep(e))), i.gridstack) : (console.error(typeof t == "string" ? 'GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
3485
+ let i = H.getGridElement(t);
3486
+ return i ? (i.gridstack || (i.gridstack = new H(i, v.cloneDeep(e))), i.gridstack) : (console.error(typeof t == "string" ? 'GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
3486
3487
  Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.` : "GridStack.init() no grid element was passed."), null);
3487
3488
  }
3488
3489
  /**
@@ -3496,8 +3497,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3496
3497
  */
3497
3498
  static initAll(e = {}, t = ".grid-stack") {
3498
3499
  let i = [];
3499
- return F.getGridElements(t).forEach((s) => {
3500
- s.gridstack || (s.gridstack = new F(s, v.cloneDeep(e))), i.push(s.gridstack);
3500
+ return H.getGridElements(t).forEach((s) => {
3501
+ s.gridstack || (s.gridstack = new H(s, v.cloneDeep(e))), i.push(s.gridstack);
3501
3502
  }), i.length === 0 && console.error('GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
3502
3503
  Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`), i;
3503
3504
  }
@@ -3516,21 +3517,21 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3516
3517
  const o = i.gridstack;
3517
3518
  return t && (o.opts = { ...o.opts, ...t }), t.children !== void 0 && o.load(t.children), o;
3518
3519
  }
3519
- if (!e.classList.contains("grid-stack") || F.addRemoveCB)
3520
- if (F.addRemoveCB)
3521
- i = F.addRemoveCB(e, t, !0, !0);
3520
+ if (!e.classList.contains("grid-stack") || H.addRemoveCB)
3521
+ if (H.addRemoveCB)
3522
+ i = H.addRemoveCB(e, t, !0, !0);
3522
3523
  else {
3523
3524
  let o = document.implementation.createHTMLDocument("");
3524
3525
  o.body.innerHTML = `<div class="grid-stack ${t.class || ""}"></div>`, i = o.body.children[0], e.appendChild(i);
3525
3526
  }
3526
- return F.init(t, i);
3527
+ return H.init(t, i);
3527
3528
  }
3528
3529
  /** call this method to register your engine instead of the default one.
3529
3530
  * See instead `GridStackOptions.engineClass` if you only need to
3530
3531
  * replace just one instance.
3531
3532
  */
3532
3533
  static registerEngine(e) {
3533
- F.engineClass = e;
3534
+ H.engineClass = e;
3534
3535
  }
3535
3536
  /** @internal create placeholder DIV as needed */
3536
3537
  get placeholder() {
@@ -3567,7 +3568,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3567
3568
  const r = this.el.parentElement?.parentElement;
3568
3569
  let o = r?.classList.contains(xe.itemClass) ? r.gridstackNode : void 0;
3569
3570
  o && (o.subGrid = this, this.parentGridItem = o, this.el.classList.add("grid-stack-nested"), o.el.classList.add("grid-stack-sub-grid")), this._isAutoCellHeight = this.opts.cellHeight === "auto", this._isAutoCellHeight || this.opts.cellHeight === "initial" ? this.cellHeight(void 0, !1) : (typeof this.opts.cellHeight == "number" && this.opts.cellHeightUnit && this.opts.cellHeightUnit !== xe.cellHeightUnit && (this.opts.cellHeight = this.opts.cellHeight + this.opts.cellHeightUnit, delete this.opts.cellHeightUnit), this.cellHeight(this.opts.cellHeight, !1)), this.opts.alwaysShowResizeHandle === "mobile" && (this.opts.alwaysShowResizeHandle = Oe), this._styleSheetClass = "gs-id-" + He._idSeq++, this.el.classList.add(this._styleSheetClass), this._setStaticClass();
3570
- let a = this.opts.engineClass || F.engineClass || He;
3571
+ let a = this.opts.engineClass || H.engineClass || He;
3571
3572
  if (this.engine = new a({
3572
3573
  column: this.getColumn(),
3573
3574
  float: this.opts.float,
@@ -3585,7 +3586,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3585
3586
  let u = this.opts.children;
3586
3587
  delete this.opts.children, u.length && this.load(u);
3587
3588
  }
3588
- this.setAnimation(this.opts.animate), this._updateStyles(), this.el.classList.add("gs-" + this.opts.column), this.opts.subGridDynamic && !z.pauseDrag && (z.pauseDrag = !0), this.opts.draggable?.pause !== void 0 && (z.pauseDrag = this.opts.draggable.pause), this._setupRemoveDrop(), this._setupAcceptWidget(), this._updateResizeEvent();
3589
+ this.setAnimation(this.opts.animate), this._updateStyles(), this.el.classList.add("gs-" + this.opts.column), this.opts.subGridDynamic && !$.pauseDrag && ($.pauseDrag = !0), this.opts.draggable?.pause !== void 0 && ($.pauseDrag = this.opts.draggable.pause), this._setupRemoveDrop(), this._setupAcceptWidget(), this._updateResizeEvent();
3589
3590
  }
3590
3591
  /**
3591
3592
  * add a new widget and returns it.
@@ -3613,8 +3614,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3613
3614
  } else if (arguments.length === 0 || arguments.length === 1 && i(e))
3614
3615
  if (r = t = e, r?.el)
3615
3616
  s = r.el;
3616
- else if (F.addRemoveCB)
3617
- s = F.addRemoveCB(this.el, t, !0, !1);
3617
+ else if (H.addRemoveCB)
3618
+ s = H.addRemoveCB(this.el, t, !0, !1);
3618
3619
  else {
3619
3620
  let a = t?.content || "", u = document.implementation.createHTMLDocument("");
3620
3621
  u.body.innerHTML = `<div class="grid-stack-item ${this.opts.itemClass || ""}"><div class="grid-stack-item-content">${a}</div></div>`, s = u.body.children[0];
@@ -3648,8 +3649,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3648
3649
  t.column === "auto" && (u = !0, t.column = Math.max(r.w || 1, i?.w || 1), t.disableOneColumnMode = !0);
3649
3650
  let l = r.el.querySelector(".grid-stack-item-content"), c, d;
3650
3651
  if (s) {
3651
- if (this._removeDD(r.el), d = { ...r, x: 0, y: 0 }, v.removeInternalForSave(d), delete d.subGridOpts, r.content && (d.content = r.content, delete r.content), F.addRemoveCB)
3652
- c = F.addRemoveCB(this.el, d, !0, !1);
3652
+ if (this._removeDD(r.el), d = { ...r, x: 0, y: 0 }, v.removeInternalForSave(d), delete d.subGridOpts, r.content && (d.content = r.content, delete r.content), H.addRemoveCB)
3653
+ c = H.addRemoveCB(this.el, d, !0, !1);
3653
3654
  else {
3654
3655
  let m = document.implementation.createHTMLDocument("");
3655
3656
  m.body.innerHTML = '<div class="grid-stack-item"></div>', c = m.body.children[0], c.appendChild(l), m.body.innerHTML = '<div class="grid-stack-item-content"></div>', l = m.body.children[0], r.el.appendChild(l);
@@ -3660,7 +3661,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3660
3661
  let m = u ? t.column : r.w, g = r.h + i.h, f = r.el.style;
3661
3662
  f.transition = "none", this.update(r.el, { w: m, h: g }), setTimeout(() => f.transition = null);
3662
3663
  }
3663
- let h = r.subGrid = F.addGrid(l, t);
3664
+ let h = r.subGrid = H.addGrid(l, t);
3664
3665
  return i?._moving && (h._isTemp = !0), u && (h._autoColumn = !0), s && h.addWidget(c, d), i && (i._moving ? window.setTimeout(() => v.simulateMouseEvent(i._event, "mouseenter", h.el), 0) : h.addWidget(r.el, r)), h;
3665
3666
  }
3666
3667
  /**
@@ -3682,7 +3683,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3682
3683
  * @param saveCB callback for each node -> widget, so application can insert additional data to be saved into the widget data structure.
3683
3684
  * @returns list of widgets or full grid option, including .children list of widgets
3684
3685
  */
3685
- save(e = !0, t = !1, i = F.saveCB) {
3686
+ save(e = !0, t = !1, i = H.saveCB) {
3686
3687
  let s = this.engine.save(e, i);
3687
3688
  if (s.forEach((r) => {
3688
3689
  if (e && r.el && !r.subGrid && !i) {
@@ -3711,19 +3712,19 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3711
3712
  * @example
3712
3713
  * see http://gridstackjs.com/demo/serialization.html
3713
3714
  */
3714
- load(e, t = F.addRemoveCB || !0) {
3715
+ load(e, t = H.addRemoveCB || !0) {
3715
3716
  e = v.cloneDeep(e);
3716
3717
  const i = e.some((l) => l.x !== void 0 || l.y !== void 0);
3717
3718
  i && (e = v.sort(e, -1, this._prevColumn || this.getColumn())), this._insertNotAppend = i;
3718
3719
  const s = this.opts.column;
3719
3720
  this._prevColumn && this._prevColumn !== s && e.some((l) => (l.x || 0) + l.w > s) && (this._ignoreLayoutsNodeChange = !0, this.engine.cacheLayout(e, this._prevColumn, !0));
3720
- const r = F.addRemoveCB;
3721
- typeof t == "function" && (F.addRemoveCB = t);
3721
+ const r = H.addRemoveCB;
3722
+ typeof t == "function" && (H.addRemoveCB = t);
3722
3723
  let o = [];
3723
3724
  this.batchUpdate(), t && [...this.engine.nodes].forEach((c) => {
3724
3725
  if (!c.id)
3725
3726
  return;
3726
- v.find(e, c.id) || (F.addRemoveCB && F.addRemoveCB(this.el, c, !1, !1), o.push(c), this.removeWidget(c.el, !0, !1));
3727
+ v.find(e, c.id) || (H.addRemoveCB && H.addRemoveCB(this.el, c, !1, !1), o.push(c), this.removeWidget(c.el, !0, !1));
3727
3728
  });
3728
3729
  let a = [];
3729
3730
  this.engine.nodes = this.engine.nodes.filter((l) => v.find(e, l.id) ? (a.push(l), !1) : !0);
@@ -3736,7 +3737,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3736
3737
  d && d.gridstack && (d.gridstack.load(l.subGridOpts.children), this._insertNotAppend = !0);
3737
3738
  }
3738
3739
  } else t && this.addWidget(l);
3739
- }), this.engine.removedNodes = o, this.doContentResize(u, !0), this.batchUpdate(!1), delete this._ignoreLayoutsNodeChange, delete this._insertNotAppend, r ? F.addRemoveCB = r : delete F.addRemoveCB, this;
3740
+ }), this.engine.removedNodes = o, this.doContentResize(u, !0), this.batchUpdate(!1), delete this._ignoreLayoutsNodeChange, delete this._insertNotAppend, r ? H.addRemoveCB = r : delete H.addRemoveCB, this;
3740
3741
  }
3741
3742
  /**
3742
3743
  * use before calling a bunch of `addWidget()` to prevent un-necessary relayouts in between (more efficient)
@@ -3892,7 +3893,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3892
3893
  * grid.makeWidget('2', {w:2, content: 'hello'});
3893
3894
  */
3894
3895
  makeWidget(e, t) {
3895
- let i = F.getElement(e);
3896
+ let i = H.getElement(e);
3896
3897
  this._prepareElement(i, !0, t);
3897
3898
  const s = i.gridstackNode;
3898
3899
  return this._updateContainerHeight(), this.doContentResize(!1, !1, s), s.subGridOpts && this.makeSubGrid(i, s.subGridOpts, void 0, !1), this._prevColumn && this.opts.column === 1 && (this._ignoreLayoutsNodeChange = !0), this._triggerAddEvent(), this._triggerChangeEvent(), delete this._ignoreLayoutsNodeChange, i;
@@ -3934,11 +3935,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3934
3935
  * @param triggerEvent if `false` (quiet mode) element will not be added to removed list and no 'removed' callbacks will be called (Default? true).
3935
3936
  */
3936
3937
  removeWidget(e, t = !0, i = !0) {
3937
- return F.getElements(e).forEach((s) => {
3938
+ return H.getElements(e).forEach((s) => {
3938
3939
  if (s.parentElement && s.parentElement !== this.el)
3939
3940
  return;
3940
3941
  let r = s.gridstackNode;
3941
- r || (r = this.engine.nodes.find((o) => s === o.el)), r && (F.addRemoveCB && F.addRemoveCB(this.el, r, !1, !1), delete s.gridstackNode, this._removeDD(s), this.engine.removeNode(r, t, i), t && s.parentElement && s.remove());
3942
+ r || (r = this.engine.nodes.find((o) => s === o.el)), r && (H.addRemoveCB && H.addRemoveCB(this.el, r, !1, !1), delete s.gridstackNode, this._removeDD(s), this.engine.removeNode(r, t, i), t && s.parentElement && s.remove());
3942
3943
  }), i && (this._triggerRemoveEvent(), this._triggerChangeEvent()), this;
3943
3944
  }
3944
3945
  /**
@@ -3980,7 +3981,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3980
3981
  let i = arguments, s = 1;
3981
3982
  return t = { x: i[s++], y: i[s++], w: i[s++], h: i[s++] }, this.update(e, t);
3982
3983
  }
3983
- return F.getElements(e).forEach((i) => {
3984
+ return H.getElements(e).forEach((i) => {
3984
3985
  let s = i?.gridstackNode;
3985
3986
  if (!s)
3986
3987
  return;
@@ -4020,7 +4021,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4020
4021
  if (!r)
4021
4022
  return;
4022
4023
  let o = t && i.h ? i.h * r : e.clientHeight, a;
4023
- if (i.resizeToContentParent && (a = e.querySelector(i.resizeToContentParent)), a || (a = e.querySelector(F.resizeToContentParent)), !a)
4024
+ if (i.resizeToContentParent && (a = e.querySelector(i.resizeToContentParent)), a || (a = e.querySelector(H.resizeToContentParent)), !a)
4024
4025
  return;
4025
4026
  const u = e.clientHeight - a.clientHeight, l = t && i.h ? i.h * r - u : a.clientHeight;
4026
4027
  let c;
@@ -4029,7 +4030,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4029
4030
  else {
4030
4031
  const m = a.firstElementChild;
4031
4032
  if (!m) {
4032
- console.log(`Error: resizeToContent() '${F.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);
4033
+ console.log(`Error: resizeToContent() '${H.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);
4033
4034
  return;
4034
4035
  }
4035
4036
  c = m.getBoundingClientRect().height || l;
@@ -4043,7 +4044,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4043
4044
  }
4044
4045
  /** call the user resize (so they can do extra work) else our build in version */
4045
4046
  resizeToContentCheck(e, t = !1) {
4046
- F.resizeToContentCB ? F.resizeToContentCB(e, t) : this.resizeToContent(e, t);
4047
+ H.resizeToContentCB ? H.resizeToContentCB(e, t) : this.resizeToContent(e, t);
4047
4048
  }
4048
4049
  /**
4049
4050
  * Updates the margins which will set all 4 sides at once - see `GridStackOptions.margin` for format options (CSS string format of 1,2,4 values or single number).
@@ -4240,7 +4241,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4240
4241
  }
4241
4242
  /** @internal */
4242
4243
  static getGridElement(e) {
4243
- return F.getElement(e);
4244
+ return H.getElement(e);
4244
4245
  }
4245
4246
  /** @internal */
4246
4247
  static getGridElements(e) {
@@ -4269,7 +4270,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4269
4270
  * @param root optional root which defaults to document (for shadow dom pas the parent HTMLDocument)
4270
4271
  */
4271
4272
  static setupDragIn(e, t, i = document) {
4272
- t?.pause !== void 0 && (z.pauseDrag = t.pause), t = { ...Vl, ...t || {} };
4273
+ t?.pause !== void 0 && ($.pauseDrag = t.pause), t = { ...Vl, ...t || {} };
4273
4274
  let s = typeof e == "string" ? v.getElements(e, i) : e;
4274
4275
  s.length && s?.forEach((r) => {
4275
4276
  ue.isDraggable(r) || ue.dragIn(r, t);
@@ -4282,7 +4283,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4282
4283
  * @param val if true widget will be draggable, assuming the parent grid isn't noMove or static.
4283
4284
  */
4284
4285
  movable(e, t) {
4285
- return this.opts.staticGrid ? this : (F.getElements(e).forEach((i) => {
4286
+ return this.opts.staticGrid ? this : (H.getElements(e).forEach((i) => {
4286
4287
  let s = i.gridstackNode;
4287
4288
  s && (t ? delete s.noMove : s.noMove = !0, this._prepareDragDropByNode(s));
4288
4289
  }), this);
@@ -4293,7 +4294,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4293
4294
  * @param val if true widget will be resizable, assuming the parent grid isn't noResize or static.
4294
4295
  */
4295
4296
  resizable(e, t) {
4296
- return this.opts.staticGrid ? this : (F.getElements(e).forEach((i) => {
4297
+ return this.opts.staticGrid ? this : (H.getElements(e).forEach((i) => {
4297
4298
  let s = i.gridstackNode;
4298
4299
  s && (t ? delete s.noResize : s.noResize = !0, this._prepareDragDropByNode(s));
4299
4300
  }), this);
@@ -4480,23 +4481,23 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4480
4481
  if (l = Math.min(l, g), c = Math.min(c, g), d = Math.min(d, m), h = Math.min(h, m), t.type === "drag") {
4481
4482
  if (s._temporaryRemoved)
4482
4483
  return;
4483
- let x = i.position.top - s._prevYPix;
4484
- s._prevYPix = i.position.top, this.opts.draggable.scroll !== !1 && v.updateScrollPosition(e, i.position, x);
4485
- let w = i.position.left + (i.position.left > s._lastUiPosition.left ? -c : l), S = i.position.top + (i.position.top > s._lastUiPosition.top ? -h : d);
4486
- a.x = Math.round(w / r), a.y = Math.round(S / o);
4487
- let _ = this._extraDragRow;
4484
+ let E = i.position.top - s._prevYPix;
4485
+ s._prevYPix = i.position.top, this.opts.draggable.scroll !== !1 && v.updateScrollPosition(e, i.position, E);
4486
+ let k = i.position.left + (i.position.left > s._lastUiPosition.left ? -c : l), T = i.position.top + (i.position.top > s._lastUiPosition.top ? -h : d);
4487
+ a.x = Math.round(k / r), a.y = Math.round(T / o);
4488
+ let y = this._extraDragRow;
4488
4489
  if (this.engine.collide(s, a)) {
4489
- let y = this.getRow(), E = Math.max(0, a.y + s.h - y);
4490
- this.opts.maxRow && y + E > this.opts.maxRow && (E = Math.max(0, this.opts.maxRow - y)), this._extraDragRow = E;
4490
+ let b = this.getRow(), w = Math.max(0, a.y + s.h - b);
4491
+ this.opts.maxRow && b + w > this.opts.maxRow && (w = Math.max(0, this.opts.maxRow - b)), this._extraDragRow = w;
4491
4492
  } else
4492
4493
  this._extraDragRow = 0;
4493
- if (this._extraDragRow !== _ && this._updateContainerHeight(), s.x === a.x && s.y === a.y)
4494
+ if (this._extraDragRow !== y && this._updateContainerHeight(), s.x === a.x && s.y === a.y)
4494
4495
  return;
4495
4496
  } else if (t.type === "resize") {
4496
4497
  if (a.x < 0 || (v.updateScrollResize(t, e, o), a.w = Math.round((i.size.width - l) / r), a.h = Math.round((i.size.height - d) / o), s.w === a.w && s.h === a.h) || s._lastTried && s._lastTried.w === a.w && s._lastTried.h === a.h)
4497
4498
  return;
4498
- let x = i.position.left + l, w = i.position.top + d;
4499
- a.x = Math.round(x / r), a.y = Math.round(w / o), u = !0;
4499
+ let E = i.position.left + l, k = i.position.top + d;
4500
+ a.x = Math.round(E / r), a.y = Math.round(k / o), u = !0;
4500
4501
  }
4501
4502
  s._event = t, s._lastTried = a;
4502
4503
  let f = {
@@ -4507,8 +4508,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4507
4508
  };
4508
4509
  if (this.engine.moveNodeCheck(s, { ...a, cellWidth: r, cellHeight: o, rect: f, resizing: u })) {
4509
4510
  s._lastUiPosition = i.position, this.engine.cacheRects(r, o, d, c, h, l), delete s._skipDown, u && s.subGrid && s.subGrid.onResize(), this._extraDragRow = 0, this._updateContainerHeight();
4510
- let x = t.target;
4511
- this._writePosAttr(x, s), this._gsEventHandler[t.type] && this._gsEventHandler[t.type](t, x);
4511
+ let E = t.target;
4512
+ this._writePosAttr(E, s), this._gsEventHandler[t.type] && this._gsEventHandler[t.type](t, E);
4512
4513
  }
4513
4514
  }
4514
4515
  /** @internal called when item leaving our area by either cursor dropout event
@@ -4524,43 +4525,43 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4524
4525
  return jl(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
4525
4526
  }
4526
4527
  }
4527
- F.resizeToContentParent = ".grid-stack-item-content";
4528
- F.Utils = v;
4529
- F.Engine = He;
4530
- F.GDRev = "9.5.1";
4531
- const Sn = "el", Xl = "is-", bt = (n, e, t, i, s) => {
4528
+ H.resizeToContentParent = ".grid-stack-item-content";
4529
+ H.Utils = v;
4530
+ H.Engine = He;
4531
+ H.GDRev = "9.5.1";
4532
+ const Sn = "el", Xl = "is-", _t = (n, e, t, i, s) => {
4532
4533
  let r = `${n}-${e}`;
4533
4534
  return t && (r += `-${t}`), i && (r += `__${i}`), s && (r += `--${s}`), r;
4534
4535
  }, Zl = Symbol("namespaceContextKey"), ts = (n) => {
4535
- const e = Ut() ? ve(Zl, M(Sn)) : M(Sn);
4536
- return $(() => b(e) || Sn);
4536
+ const e = Ut() ? pe(Zl, M(Sn)) : M(Sn);
4537
+ return z(() => _(e) || Sn);
4537
4538
  }, mt = (n, e) => {
4538
4539
  const t = ts();
4539
4540
  return {
4540
4541
  namespace: t,
4541
- b: (f = "") => bt(t.value, n, f, "", ""),
4542
- e: (f) => f ? bt(t.value, n, "", f, "") : "",
4543
- m: (f) => f ? bt(t.value, n, "", "", f) : "",
4544
- be: (f, x) => f && x ? bt(t.value, n, f, x, "") : "",
4545
- em: (f, x) => f && x ? bt(t.value, n, "", f, x) : "",
4546
- bm: (f, x) => f && x ? bt(t.value, n, f, "", x) : "",
4547
- bem: (f, x, w) => f && x && w ? bt(t.value, n, f, x, w) : "",
4548
- is: (f, ...x) => {
4549
- const w = x.length >= 1 ? x[0] : !0;
4550
- return f && w ? `${Xl}${f}` : "";
4542
+ b: (f = "") => _t(t.value, n, f, "", ""),
4543
+ e: (f) => f ? _t(t.value, n, "", f, "") : "",
4544
+ m: (f) => f ? _t(t.value, n, "", "", f) : "",
4545
+ be: (f, E) => f && E ? _t(t.value, n, f, E, "") : "",
4546
+ em: (f, E) => f && E ? _t(t.value, n, "", f, E) : "",
4547
+ bm: (f, E) => f && E ? _t(t.value, n, f, "", E) : "",
4548
+ bem: (f, E, k) => f && E && k ? _t(t.value, n, f, E, k) : "",
4549
+ is: (f, ...E) => {
4550
+ const k = E.length >= 1 ? E[0] : !0;
4551
+ return f && k ? `${Xl}${f}` : "";
4551
4552
  },
4552
4553
  cssVar: (f) => {
4553
- const x = {};
4554
- for (const w in f)
4555
- f[w] && (x[`--${t.value}-${w}`] = f[w]);
4556
- return x;
4554
+ const E = {};
4555
+ for (const k in f)
4556
+ f[k] && (E[`--${t.value}-${k}`] = f[k]);
4557
+ return E;
4557
4558
  },
4558
4559
  cssVarName: (f) => `--${t.value}-${f}`,
4559
4560
  cssVarBlock: (f) => {
4560
- const x = {};
4561
- for (const w in f)
4562
- f[w] && (x[`--${t.value}-${n}-${w}`] = f[w]);
4563
- return x;
4561
+ const E = {};
4562
+ for (const k in f)
4563
+ f[k] && (E[`--${t.value}-${n}-${k}`] = f[k]);
4564
+ return E;
4564
4565
  },
4565
4566
  cssVarBlockName: (f) => `--${t.value}-${n}-${f}`
4566
4567
  };
@@ -4637,11 +4638,11 @@ var Rn = ss["__core-js_shared__"], ar = (function() {
4637
4638
  function yu(n) {
4638
4639
  return !!ar && ar in n;
4639
4640
  }
4640
- var _u = Function.prototype, bu = _u.toString;
4641
+ var bu = Function.prototype, _u = bu.toString;
4641
4642
  function wu(n) {
4642
4643
  if (n != null) {
4643
4644
  try {
4644
- return bu.call(n);
4645
+ return _u.call(n);
4645
4646
  } catch {
4646
4647
  }
4647
4648
  try {
@@ -4680,13 +4681,13 @@ function Du(n, e, t) {
4680
4681
  }
4681
4682
  return n.apply(e, t);
4682
4683
  }
4683
- var Pu = 800, Iu = 16, Nu = Date.now;
4684
+ var Iu = 800, Pu = 16, Nu = Date.now;
4684
4685
  function Lu(n) {
4685
4686
  var e = 0, t = 0;
4686
4687
  return function() {
4687
- var i = Nu(), s = Iu - (i - t);
4688
+ var i = Nu(), s = Pu - (i - t);
4688
4689
  if (t = i, s > 0) {
4689
- if (++e >= Pu)
4690
+ if (++e >= Iu)
4690
4691
  return arguments[0];
4691
4692
  } else
4692
4693
  e = 0;
@@ -4751,7 +4752,7 @@ var Ku = "[object Arguments]";
4751
4752
  function ur(n) {
4752
4753
  return os(n) && rs(n) == Ku;
4753
4754
  }
4754
- var _o = Object.prototype, Yu = _o.hasOwnProperty, Xu = _o.propertyIsEnumerable, bo = ur(/* @__PURE__ */ (function() {
4755
+ var bo = Object.prototype, Yu = bo.hasOwnProperty, Xu = bo.propertyIsEnumerable, _o = ur(/* @__PURE__ */ (function() {
4755
4756
  return arguments;
4756
4757
  })()) ? ur : function(n) {
4757
4758
  return os(n) && Yu.call(n, "callee") && !Xu.call(n, "callee");
@@ -4762,9 +4763,9 @@ function Ju(n, e) {
4762
4763
  var t = typeof n;
4763
4764
  return t == "number" || t == "symbol" || t == "boolean" || n == null || as(n) ? !0 : Qu.test(n) || !Zu.test(n) || e != null && n in Object(e);
4764
4765
  }
4765
- var bi = ls(Object, "create");
4766
+ var _i = ls(Object, "create");
4766
4767
  function ec() {
4767
- this.__data__ = bi ? bi(null) : {}, this.size = 0;
4768
+ this.__data__ = _i ? _i(null) : {}, this.size = 0;
4768
4769
  }
4769
4770
  function tc(n) {
4770
4771
  var e = this.has(n) && delete this.__data__[n];
@@ -4773,7 +4774,7 @@ function tc(n) {
4773
4774
  var ic = "__lodash_hash_undefined__", nc = Object.prototype, sc = nc.hasOwnProperty;
4774
4775
  function rc(n) {
4775
4776
  var e = this.__data__;
4776
- if (bi) {
4777
+ if (_i) {
4777
4778
  var t = e[n];
4778
4779
  return t === ic ? void 0 : t;
4779
4780
  }
@@ -4782,12 +4783,12 @@ function rc(n) {
4782
4783
  var oc = Object.prototype, ac = oc.hasOwnProperty;
4783
4784
  function lc(n) {
4784
4785
  var e = this.__data__;
4785
- return bi ? e[n] !== void 0 : ac.call(e, n);
4786
+ return _i ? e[n] !== void 0 : ac.call(e, n);
4786
4787
  }
4787
4788
  var uc = "__lodash_hash_undefined__";
4788
4789
  function cc(n, e) {
4789
4790
  var t = this.__data__;
4790
- return this.size += this.has(n) ? 0 : 1, t[n] = bi && e === void 0 ? uc : e, this;
4791
+ return this.size += this.has(n) ? 0 : 1, t[n] = _i && e === void 0 ? uc : e, this;
4791
4792
  }
4792
4793
  function St(n) {
4793
4794
  var e = -1, t = n == null ? 0 : n.length;
@@ -4842,20 +4843,20 @@ Yt.prototype.get = gc;
4842
4843
  Yt.prototype.has = mc;
4843
4844
  Yt.prototype.set = vc;
4844
4845
  var yc = ls(ss, "Map");
4845
- function _c() {
4846
+ function bc() {
4846
4847
  this.size = 0, this.__data__ = {
4847
4848
  hash: new St(),
4848
4849
  map: new (yc || Yt)(),
4849
4850
  string: new St()
4850
4851
  };
4851
4852
  }
4852
- function bc(n) {
4853
+ function _c(n) {
4853
4854
  var e = typeof n;
4854
4855
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? n !== "__proto__" : n === null;
4855
4856
  }
4856
4857
  function cn(n, e) {
4857
4858
  var t = n.__data__;
4858
- return bc(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
4859
+ return _c(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
4859
4860
  }
4860
4861
  function wc(n) {
4861
4862
  var e = cn(this, n).delete(n);
@@ -4878,7 +4879,7 @@ function Ot(n) {
4878
4879
  this.set(i[0], i[1]);
4879
4880
  }
4880
4881
  }
4881
- Ot.prototype.clear = _c;
4882
+ Ot.prototype.clear = bc;
4882
4883
  Ot.prototype.delete = wc;
4883
4884
  Ot.prototype.get = Ec;
4884
4885
  Ot.prototype.has = xc;
@@ -4922,26 +4923,26 @@ function cs(n) {
4922
4923
  var e = n + "";
4923
4924
  return e == "0" && 1 / n == -1 / 0 ? "-0" : e;
4924
4925
  }
4925
- function Pc(n, e) {
4926
+ function Ic(n, e) {
4926
4927
  e = dn(e, n);
4927
4928
  for (var t = 0, i = e.length; n != null && t < i; )
4928
4929
  n = n[cs(e[t++])];
4929
4930
  return t && t == i ? n : void 0;
4930
4931
  }
4931
- function Ic(n, e) {
4932
+ function Pc(n, e) {
4932
4933
  for (var t = -1, i = e.length, s = n.length; ++t < i; )
4933
4934
  n[s + t] = e[t];
4934
4935
  return n;
4935
4936
  }
4936
4937
  var cr = pt ? pt.isConcatSpreadable : void 0;
4937
4938
  function Nc(n) {
4938
- return Ti(n) || bo(n) || !!(cr && n && n[cr]);
4939
+ return Ti(n) || _o(n) || !!(cr && n && n[cr]);
4939
4940
  }
4940
4941
  function Lc(n, e, t, i, s) {
4941
4942
  var r = -1, o = n.length;
4942
4943
  for (t || (t = Nc), s || (s = []); ++r < o; ) {
4943
4944
  var a = n[r];
4944
- t(a) ? Ic(s, a) : s[s.length] = a;
4945
+ t(a) ? Pc(s, a) : s[s.length] = a;
4945
4946
  }
4946
4947
  return s;
4947
4948
  }
@@ -4963,7 +4964,7 @@ function Hc(n, e, t) {
4963
4964
  break;
4964
4965
  n = n[o];
4965
4966
  }
4966
- return r || ++i != s ? r : (s = n == null ? 0 : n.length, !!s && qu(s) && vo(o, s) && (Ti(n) || bo(n)));
4967
+ return r || ++i != s ? r : (s = n == null ? 0 : n.length, !!s && qu(s) && vo(o, s) && (Ti(n) || _o(n)));
4967
4968
  }
4968
4969
  function Fc(n, e) {
4969
4970
  return n != null && Hc(n, e, $c);
@@ -4999,7 +5000,7 @@ function Uc(n, e, t, i) {
4999
5000
  }
5000
5001
  function Wc(n, e, t) {
5001
5002
  for (var i = -1, s = e.length, r = {}; ++i < s; ) {
5002
- var o = e[i], a = Pc(n, o);
5003
+ var o = e[i], a = Ic(n, o);
5003
5004
  t(a, o) && Uc(r, dn(o, n), a);
5004
5005
  }
5005
5006
  return r;
@@ -5034,7 +5035,7 @@ var pr;
5034
5035
  const Be = typeof window < "u", td = (n) => typeof n == "string", xo = () => {
5035
5036
  }, id = Be && ((pr = window?.navigator) == null ? void 0 : pr.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
5036
5037
  function ko(n) {
5037
- return typeof n == "function" ? n() : b(n);
5038
+ return typeof n == "function" ? n() : _(n);
5038
5039
  }
5039
5040
  function nd(n) {
5040
5041
  return n;
@@ -5105,12 +5106,12 @@ var vr;
5105
5106
  (function(n) {
5106
5107
  n.UP = "UP", n.RIGHT = "RIGHT", n.DOWN = "DOWN", n.LEFT = "LEFT", n.NONE = "NONE";
5107
5108
  })(vr || (vr = {}));
5108
- var rd = Object.defineProperty, yr = Object.getOwnPropertySymbols, od = Object.prototype.hasOwnProperty, ad = Object.prototype.propertyIsEnumerable, _r = (n, e, t) => e in n ? rd(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ld = (n, e) => {
5109
+ var rd = Object.defineProperty, yr = Object.getOwnPropertySymbols, od = Object.prototype.hasOwnProperty, ad = Object.prototype.propertyIsEnumerable, br = (n, e, t) => e in n ? rd(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ld = (n, e) => {
5109
5110
  for (var t in e || (e = {}))
5110
- od.call(e, t) && _r(n, t, e[t]);
5111
+ od.call(e, t) && br(n, t, e[t]);
5111
5112
  if (yr)
5112
5113
  for (var t of yr(e))
5113
- ad.call(e, t) && _r(n, t, e[t]);
5114
+ ad.call(e, t) && br(n, t, e[t]);
5114
5115
  return n;
5115
5116
  };
5116
5117
  const ud = {
@@ -5142,19 +5143,19 @@ const ud = {
5142
5143
  ld({
5143
5144
  linear: nd
5144
5145
  }, ud);
5145
- const br = {
5146
+ const _r = {
5146
5147
  current: 0
5147
5148
  }, wr = M(0), cd = 2e3, Er = Symbol("elZIndexContextKey"), dd = Symbol("zIndexContextKey"), hd = (n) => {
5148
- const e = Ut() ? ve(Er, br) : br, t = Ut() ? ve(dd, void 0) : void 0, i = $(() => {
5149
- const o = b(t);
5149
+ const e = Ut() ? pe(Er, _r) : _r, t = Ut() ? pe(dd, void 0) : void 0, i = z(() => {
5150
+ const o = _(t);
5150
5151
  return wi(o) ? o : cd;
5151
- }), s = $(() => i.value + wr.value), r = () => (e.current++, wr.value = e.current, s.value);
5152
- return !Be && ve(Er), {
5152
+ }), s = z(() => i.value + wr.value), r = () => (e.current++, wr.value = e.current, s.value);
5153
+ return !Be && pe(Er), {
5153
5154
  initialZIndex: i,
5154
5155
  currentZIndex: s,
5155
5156
  nextZIndex: r
5156
5157
  };
5157
- }, Ro = "__epPropKey", te = (n) => n, pd = (n) => ns(n) && !!n[Ro], hn = (n, e) => {
5158
+ }, Ro = "__epPropKey", ee = (n) => n, pd = (n) => ns(n) && !!n[Ro], hn = (n, e) => {
5158
5159
  if (!ns(n) || pd(n))
5159
5160
  return n;
5160
5161
  const { values: t, required: i, default: s, type: r, validator: o } = n, u = {
@@ -5181,8 +5182,8 @@ hn({
5181
5182
  required: !1
5182
5183
  });
5183
5184
  const fd = Symbol("size"), gd = () => {
5184
- const n = ve(fd, {});
5185
- return $(() => b(n.size) || "");
5185
+ const n = pe(fd, {});
5186
+ return z(() => _(n.size) || "");
5186
5187
  };
5187
5188
  var De = (n, e) => {
5188
5189
  const t = n.__vccOpts || n;
@@ -5203,7 +5204,7 @@ const Si = (n, e) => (n.install = (t) => {
5203
5204
  t.component(i.name, i);
5204
5205
  }, n), vd = ke({
5205
5206
  size: {
5206
- type: te([Number, String])
5207
+ type: ee([Number, String])
5207
5208
  },
5208
5209
  color: {
5209
5210
  type: String
@@ -5211,27 +5212,27 @@ const Si = (n, e) => (n.install = (t) => {
5211
5212
  }), yd = q({
5212
5213
  name: "ElIcon",
5213
5214
  inheritAttrs: !1
5214
- }), _d = /* @__PURE__ */ q({
5215
+ }), bd = /* @__PURE__ */ q({
5215
5216
  ...yd,
5216
5217
  props: vd,
5217
5218
  setup(n) {
5218
- const e = n, t = mt("icon"), i = $(() => {
5219
+ const e = n, t = mt("icon"), i = z(() => {
5219
5220
  const { size: s, color: r } = e;
5220
5221
  return !s && !r ? {} : {
5221
5222
  fontSize: Vc(s) ? void 0 : md(s),
5222
5223
  "--color": r
5223
5224
  };
5224
5225
  });
5225
- return (s, r) => (D(), W("i", Rt({
5226
- class: b(t).b(),
5227
- style: b(i)
5226
+ return (s, r) => (I(), W("i", Rt({
5227
+ class: _(t).b(),
5228
+ style: _(i)
5228
5229
  }, s.$attrs), [
5229
5230
  ce(s.$slots, "default")
5230
5231
  ], 16));
5231
5232
  }
5232
5233
  });
5233
- var bd = /* @__PURE__ */ De(_d, [["__file", "icon.vue"]]);
5234
- const xr = Si(bd);
5234
+ var _d = /* @__PURE__ */ De(bd, [["__file", "icon.vue"]]);
5235
+ const xr = Si(_d);
5235
5236
  function kr() {
5236
5237
  let n;
5237
5238
  const e = (i, s) => {
@@ -5270,16 +5271,16 @@ const wd = ke({
5270
5271
  onOpen: (c) => {
5271
5272
  r(() => {
5272
5273
  i(c);
5273
- const d = b(t);
5274
+ const d = _(t);
5274
5275
  wi(d) && d > 0 && o(() => {
5275
5276
  s(c);
5276
5277
  }, d);
5277
- }, b(n));
5278
+ }, _(n));
5278
5279
  },
5279
5280
  onClose: (c) => {
5280
5281
  a(), r(() => {
5281
5282
  s(c);
5282
- }, b(e));
5283
+ }, _(e));
5283
5284
  }
5284
5285
  };
5285
5286
  }, xd = ke({
@@ -5292,18 +5293,18 @@ const wd = ke({
5292
5293
  }), Ao = (n) => jc(xd, n), Tr = {
5293
5294
  prefix: Math.floor(Math.random() * 1e4),
5294
5295
  current: 0
5295
- }, kd = Symbol("elIdInjection"), Oo = () => Ut() ? ve(kd, Tr) : Tr, Td = (n) => {
5296
+ }, kd = Symbol("elIdInjection"), Oo = () => Ut() ? pe(kd, Tr) : Tr, Td = (n) => {
5296
5297
  const e = Oo(), t = ts();
5297
- return Eo(() => b(n) || `${t.value}-id-${e.prefix}-${e.current++}`);
5298
+ return Eo(() => _(n) || `${t.value}-id-${e.prefix}-${e.current++}`);
5298
5299
  }, Sd = Symbol("formContextKey"), Bn = Symbol("formItemContextKey"), Rd = (n) => {
5299
5300
  const e = Ut();
5300
- return $(() => {
5301
+ return z(() => {
5301
5302
  var t, i;
5302
5303
  return (i = (t = e?.proxy) == null ? void 0 : t.$props) == null ? void 0 : i[n];
5303
5304
  });
5304
5305
  }, Cd = (n, e = {}) => {
5305
- const t = M(void 0), i = e.prop ? t : Rd("size"), s = e.global ? t : gd(), r = e.form ? { size: void 0 } : ve(Sd, void 0), o = e.formItem ? { size: void 0 } : ve(Bn, void 0);
5306
- return $(() => i.value || b(n) || o?.size || r?.size || s.value || "");
5306
+ const t = M(void 0), i = e.prop ? t : Rd("size"), s = e.global ? t : gd(), r = e.form ? { size: void 0 } : pe(Sd, void 0), o = e.formItem ? { size: void 0 } : pe(Bn, void 0);
5307
+ return z(() => i.value || _(n) || o?.size || r?.size || s.value || "");
5307
5308
  }, Un = (n) => {
5308
5309
  if (n.tabIndex > 0 || n.tabIndex === 0 && n.getAttribute("tabIndex") !== null)
5309
5310
  return !0;
@@ -5330,7 +5331,7 @@ const wd = ke({
5330
5331
  "navigation",
5331
5332
  "tooltip",
5332
5333
  "tree"
5333
- ], Po = ke({
5334
+ ], Io = ke({
5334
5335
  role: {
5335
5336
  type: String,
5336
5337
  values: Ad,
@@ -5341,9 +5342,9 @@ const wd = ke({
5341
5342
  inheritAttrs: !1
5342
5343
  }), Dd = /* @__PURE__ */ q({
5343
5344
  ...Od,
5344
- props: Po,
5345
+ props: Io,
5345
5346
  setup(n, { expose: e }) {
5346
- const t = n, i = M(), s = M(), r = M(), o = M(), a = $(() => t.role), u = {
5347
+ const t = n, i = M(), s = M(), r = M(), o = M(), a = z(() => t.role), u = {
5347
5348
  triggerRef: i,
5348
5349
  popperInstanceRef: s,
5349
5350
  contentRef: r,
@@ -5353,53 +5354,53 @@ const wd = ke({
5353
5354
  return e(u), kt(hs, u), (l, c) => ce(l.$slots, "default");
5354
5355
  }
5355
5356
  });
5356
- var Pd = /* @__PURE__ */ De(Dd, [["__file", "popper.vue"]]);
5357
- const Id = q({
5357
+ var Id = /* @__PURE__ */ De(Dd, [["__file", "popper.vue"]]);
5358
+ const Pd = q({
5358
5359
  name: "ElPopperArrow",
5359
5360
  inheritAttrs: !1
5360
5361
  }), Nd = /* @__PURE__ */ q({
5361
- ...Id,
5362
+ ...Pd,
5362
5363
  setup(n, { expose: e }) {
5363
- const t = mt("popper"), { arrowRef: i, arrowStyle: s } = ve(Do, void 0);
5364
+ const t = mt("popper"), { arrowRef: i, arrowStyle: s } = pe(Do, void 0);
5364
5365
  return ft(() => {
5365
5366
  i.value = void 0;
5366
5367
  }), e({
5367
5368
  arrowRef: i
5368
- }), (r, o) => (D(), W("span", {
5369
+ }), (r, o) => (I(), W("span", {
5369
5370
  ref_key: "arrowRef",
5370
5371
  ref: i,
5371
- class: st(b(t).e("arrow")),
5372
- style: Dn(b(s)),
5372
+ class: st(_(t).e("arrow")),
5373
+ style: Dn(_(s)),
5373
5374
  "data-popper-arrow": ""
5374
5375
  }, null, 6));
5375
5376
  }
5376
5377
  });
5377
5378
  var Ld = /* @__PURE__ */ De(Nd, [["__file", "arrow.vue"]]);
5378
- const Io = ke({
5379
+ const Po = ke({
5379
5380
  virtualRef: {
5380
- type: te(Object)
5381
+ type: ee(Object)
5381
5382
  },
5382
5383
  virtualTriggering: Boolean,
5383
5384
  onMouseenter: {
5384
- type: te(Function)
5385
+ type: ee(Function)
5385
5386
  },
5386
5387
  onMouseleave: {
5387
- type: te(Function)
5388
+ type: ee(Function)
5388
5389
  },
5389
5390
  onClick: {
5390
- type: te(Function)
5391
+ type: ee(Function)
5391
5392
  },
5392
5393
  onKeydown: {
5393
- type: te(Function)
5394
+ type: ee(Function)
5394
5395
  },
5395
5396
  onFocus: {
5396
- type: te(Function)
5397
+ type: ee(Function)
5397
5398
  },
5398
5399
  onBlur: {
5399
- type: te(Function)
5400
+ type: ee(Function)
5400
5401
  },
5401
5402
  onContextmenu: {
5402
- type: te(Function)
5403
+ type: ee(Function)
5403
5404
  },
5404
5405
  id: String,
5405
5406
  open: Boolean
@@ -5426,7 +5427,7 @@ const Io = ke({
5426
5427
  attrs: t
5427
5428
  }) {
5428
5429
  var i;
5429
- const s = ve(No), r = zd((i = s?.setForwardRef) != null ? i : Hn);
5430
+ const s = pe(No), r = zd((i = s?.setForwardRef) != null ? i : Hn);
5430
5431
  return () => {
5431
5432
  var o;
5432
5433
  const a = (o = e.default) == null ? void 0 : o.call(e, t);
@@ -5460,7 +5461,7 @@ function Lo(n) {
5460
5461
  }
5461
5462
  function Sr(n) {
5462
5463
  const e = mt("only-child");
5463
- return Z("span", {
5464
+ return X("span", {
5464
5465
  class: e.e("content")
5465
5466
  }, [n]);
5466
5467
  }
@@ -5469,17 +5470,17 @@ const Fd = q({
5469
5470
  inheritAttrs: !1
5470
5471
  }), Bd = /* @__PURE__ */ q({
5471
5472
  ...Fd,
5472
- props: Io,
5473
+ props: Po,
5473
5474
  setup(n, { expose: e }) {
5474
- const t = n, { role: i, triggerRef: s } = ve(hs, void 0);
5475
+ const t = n, { role: i, triggerRef: s } = pe(hs, void 0);
5475
5476
  Md(s);
5476
- const r = $(() => a.value ? t.id : void 0), o = $(() => {
5477
+ const r = z(() => a.value ? t.id : void 0), o = z(() => {
5477
5478
  if (i && i.value === "tooltip")
5478
5479
  return t.open && t.id ? t.id : void 0;
5479
- }), a = $(() => {
5480
+ }), a = z(() => {
5480
5481
  if (i && i.value !== "tooltip")
5481
5482
  return i.value;
5482
- }), u = $(() => a.value ? `${t.open}` : void 0);
5483
+ }), u = z(() => a.value ? `${t.open}` : void 0);
5483
5484
  let l;
5484
5485
  const c = [
5485
5486
  "onMouseenter",
@@ -5528,11 +5529,11 @@ const Fd = q({
5528
5529
  }
5529
5530
  }), e({
5530
5531
  triggerRef: s
5531
- }), (d, h) => d.virtualTriggering ? We("v-if", !0) : (D(), ie(b(Hd), Rt({ key: 0 }, d.$attrs, {
5532
- "aria-controls": b(r),
5533
- "aria-describedby": b(o),
5534
- "aria-expanded": b(u),
5535
- "aria-haspopup": b(a)
5532
+ }), (d, h) => d.virtualTriggering ? We("v-if", !0) : (I(), te(_(Hd), Rt({ key: 0 }, d.$attrs, {
5533
+ "aria-controls": _(r),
5534
+ "aria-describedby": _(o),
5535
+ "aria-expanded": _(u),
5536
+ "aria-haspopup": _(a)
5536
5537
  }), {
5537
5538
  default: j(() => [
5538
5539
  ce(d.$slots, "default")
@@ -5606,14 +5607,14 @@ const Yd = () => {
5606
5607
  for (const i of n)
5607
5608
  if (it(i, e), document.activeElement !== t)
5608
5609
  return;
5609
- }, Pr = Yd(), Zd = () => pn.value > fs.value, Fi = () => {
5610
+ }, Ir = Yd(), Zd = () => pn.value > fs.value, Fi = () => {
5610
5611
  ps.value = "pointer", pn.value = window.performance.now();
5611
- }, Ir = () => {
5612
+ }, Pr = () => {
5612
5613
  ps.value = "keyboard", pn.value = window.performance.now();
5613
5614
  }, Qd = () => (gt(() => {
5614
- Hi === 0 && (document.addEventListener("mousedown", Fi), document.addEventListener("touchstart", Fi), document.addEventListener("keydown", Ir)), Hi++;
5615
+ Hi === 0 && (document.addEventListener("mousedown", Fi), document.addEventListener("touchstart", Fi), document.addEventListener("keydown", Pr)), Hi++;
5615
5616
  }), ft(() => {
5616
- Hi--, Hi <= 0 && (document.removeEventListener("mousedown", Fi), document.removeEventListener("touchstart", Fi), document.removeEventListener("keydown", Ir));
5617
+ Hi--, Hi <= 0 && (document.removeEventListener("mousedown", Fi), document.removeEventListener("touchstart", Fi), document.removeEventListener("keydown", Pr));
5617
5618
  }), {
5618
5619
  focusReason: ps,
5619
5620
  lastUserFocusTimestamp: pn,
@@ -5675,26 +5676,26 @@ const Nr = (n) => {
5675
5676
  }, a = (g) => {
5676
5677
  if (!n.loop && !n.trapped || o.paused)
5677
5678
  return;
5678
- const { code: f, altKey: x, ctrlKey: w, metaKey: S, currentTarget: _, shiftKey: y } = g, { loop: E } = n, P = f === pi.tab && !x && !w && !S, R = document.activeElement;
5679
- if (P && R) {
5680
- const N = _, [C, k] = qd(N);
5681
- if (C && k) {
5682
- if (!y && R === k) {
5683
- const H = Bi({
5679
+ const { code: f, altKey: E, ctrlKey: k, metaKey: T, currentTarget: y, shiftKey: b } = g, { loop: w } = n, O = f === pi.tab && !E && !k && !T, C = document.activeElement;
5680
+ if (O && C) {
5681
+ const S = y, [R, A] = qd(S);
5682
+ if (R && A) {
5683
+ if (!b && C === A) {
5684
+ const F = Bi({
5684
5685
  focusReason: r.value
5685
5686
  });
5686
- e("focusout-prevented", H), H.defaultPrevented || (g.preventDefault(), E && it(C, !0));
5687
- } else if (y && [C, N].includes(R)) {
5688
- const H = Bi({
5687
+ e("focusout-prevented", F), F.defaultPrevented || (g.preventDefault(), w && it(R, !0));
5688
+ } else if (b && [R, S].includes(C)) {
5689
+ const F = Bi({
5689
5690
  focusReason: r.value
5690
5691
  });
5691
- e("focusout-prevented", H), H.defaultPrevented || (g.preventDefault(), E && it(k, !0));
5692
+ e("focusout-prevented", F), F.defaultPrevented || (g.preventDefault(), w && it(A, !0));
5692
5693
  }
5693
- } else if (R === N) {
5694
- const H = Bi({
5694
+ } else if (C === S) {
5695
+ const F = Bi({
5695
5696
  focusReason: r.value
5696
5697
  });
5697
- e("focusout-prevented", H), H.defaultPrevented || g.preventDefault();
5698
+ e("focusout-prevented", F), F.defaultPrevented || g.preventDefault();
5698
5699
  }
5699
5700
  }
5700
5701
  };
@@ -5709,46 +5710,46 @@ const Nr = (n) => {
5709
5710
  const u = (g) => {
5710
5711
  e(Cr, g);
5711
5712
  }, l = (g) => e(Ar, g), c = (g) => {
5712
- const f = b(t);
5713
+ const f = _(t);
5713
5714
  if (!f)
5714
5715
  return;
5715
- const x = g.target, w = g.relatedTarget, S = x && f.contains(x);
5716
- n.trapped || w && f.contains(w) || (i = w), S && e("focusin", g), !o.paused && n.trapped && (S ? s = x : it(s, !0));
5716
+ const E = g.target, k = g.relatedTarget, T = E && f.contains(E);
5717
+ n.trapped || k && f.contains(k) || (i = k), T && e("focusin", g), !o.paused && n.trapped && (T ? s = E : it(s, !0));
5717
5718
  }, d = (g) => {
5718
- const f = b(t);
5719
+ const f = _(t);
5719
5720
  if (!(o.paused || !f))
5720
5721
  if (n.trapped) {
5721
- const x = g.relatedTarget;
5722
- !ds(x) && !f.contains(x) && setTimeout(() => {
5722
+ const E = g.relatedTarget;
5723
+ !ds(E) && !f.contains(E) && setTimeout(() => {
5723
5724
  if (!o.paused && n.trapped) {
5724
- const w = Bi({
5725
+ const k = Bi({
5725
5726
  focusReason: r.value
5726
5727
  });
5727
- e("focusout-prevented", w), w.defaultPrevented || it(s, !0);
5728
+ e("focusout-prevented", k), k.defaultPrevented || it(s, !0);
5728
5729
  }
5729
5730
  }, 0);
5730
5731
  } else {
5731
- const x = g.target;
5732
- x && f.contains(x) || e("focusout", g);
5732
+ const E = g.target;
5733
+ E && f.contains(E) || e("focusout", g);
5733
5734
  }
5734
5735
  };
5735
5736
  async function h() {
5736
- await Pn();
5737
- const g = b(t);
5737
+ await In();
5738
+ const g = _(t);
5738
5739
  if (g) {
5739
- Pr.push(o);
5740
+ Ir.push(o);
5740
5741
  const f = g.contains(document.activeElement) ? i : document.activeElement;
5741
5742
  if (i = f, !g.contains(f)) {
5742
- const w = new Event(An, Rr);
5743
- g.addEventListener(An, u), g.dispatchEvent(w), w.defaultPrevented || Pn(() => {
5744
- let S = n.focusStartEl;
5745
- is(S) || (it(S), document.activeElement !== S && (S = "first")), S === "first" && Xd(Mo(g), !0), (document.activeElement === f || S === "container") && it(g);
5743
+ const k = new Event(An, Rr);
5744
+ g.addEventListener(An, u), g.dispatchEvent(k), k.defaultPrevented || In(() => {
5745
+ let T = n.focusStartEl;
5746
+ is(T) || (it(T), document.activeElement !== T && (T = "first")), T === "first" && Xd(Mo(g), !0), (document.activeElement === f || T === "container") && it(g);
5746
5747
  });
5747
5748
  }
5748
5749
  }
5749
5750
  }
5750
5751
  function m() {
5751
- const g = b(t);
5752
+ const g = _(t);
5752
5753
  if (g) {
5753
5754
  g.removeEventListener(An, u);
5754
5755
  const f = new CustomEvent(On, {
@@ -5757,7 +5758,7 @@ const Nr = (n) => {
5757
5758
  focusReason: r.value
5758
5759
  }
5759
5760
  });
5760
- g.addEventListener(On, l), g.dispatchEvent(f), !f.defaultPrevented && (r.value == "keyboard" || !Zd() || g.contains(document.activeElement)) && it(i ?? document.body), g.removeEventListener(On, l), Pr.remove(o);
5761
+ g.addEventListener(On, l), g.dispatchEvent(f), !f.defaultPrevented && (r.value == "keyboard" || !Zd() || g.contains(document.activeElement)) && it(i ?? document.body), g.removeEventListener(On, l), Ir.remove(o);
5761
5762
  }
5762
5763
  }
5763
5764
  return gt(() => {
@@ -5782,7 +5783,7 @@ var ih = /* @__PURE__ */ De(eh, [["render", th], ["__file", "focus-trap.vue"]]),
5782
5783
  function Ge(n) {
5783
5784
  return n ? (n.nodeName || "").toLowerCase() : null;
5784
5785
  }
5785
- function Pe(n) {
5786
+ function Ie(n) {
5786
5787
  if (n == null) return window;
5787
5788
  if (n.toString() !== "[object Window]") {
5788
5789
  var e = n.ownerDocument;
@@ -5791,16 +5792,16 @@ function Pe(n) {
5791
5792
  return n;
5792
5793
  }
5793
5794
  function Gt(n) {
5794
- var e = Pe(n).Element;
5795
+ var e = Ie(n).Element;
5795
5796
  return n instanceof e || n instanceof Element;
5796
5797
  }
5797
5798
  function Te(n) {
5798
- var e = Pe(n).HTMLElement;
5799
+ var e = Ie(n).HTMLElement;
5799
5800
  return n instanceof e || n instanceof HTMLElement;
5800
5801
  }
5801
5802
  function vs(n) {
5802
5803
  if (typeof ShadowRoot > "u") return !1;
5803
- var e = Pe(n).ShadowRoot;
5804
+ var e = Ie(n).ShadowRoot;
5804
5805
  return n instanceof e || n instanceof ShadowRoot;
5805
5806
  }
5806
5807
  function gh(n) {
@@ -5857,7 +5858,7 @@ function Ho(n, e) {
5857
5858
  return !1;
5858
5859
  }
5859
5860
  function ut(n) {
5860
- return Pe(n).getComputedStyle(n);
5861
+ return Ie(n).getComputedStyle(n);
5861
5862
  }
5862
5863
  function vh(n) {
5863
5864
  return ["table", "td", "th"].indexOf(Ge(n)) >= 0;
@@ -5886,16 +5887,16 @@ function yh(n) {
5886
5887
  return null;
5887
5888
  }
5888
5889
  function Ci(n) {
5889
- for (var e = Pe(n), t = Mr(n); t && vh(t) && ut(t).position === "static"; ) t = Mr(t);
5890
+ for (var e = Ie(n), t = Mr(n); t && vh(t) && ut(t).position === "static"; ) t = Mr(t);
5890
5891
  return t && (Ge(t) === "html" || Ge(t) === "body" && ut(t).position === "static") ? e : t || yh(n) || e;
5891
5892
  }
5892
- function _s(n) {
5893
+ function bs(n) {
5893
5894
  return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
5894
5895
  }
5895
5896
  function fi(n, e, t) {
5896
5897
  return xt(n, sn(e, t));
5897
5898
  }
5898
- function _h(n, e, t) {
5899
+ function bh(n, e, t) {
5899
5900
  var i = fi(n, e, t);
5900
5901
  return i > t ? t : i;
5901
5902
  }
@@ -5910,14 +5911,14 @@ function Uo(n, e) {
5910
5911
  return t[i] = n, t;
5911
5912
  }, {});
5912
5913
  }
5913
- var bh = function(n, e) {
5914
+ var _h = function(n, e) {
5914
5915
  return n = typeof n == "function" ? n(Object.assign({}, e.rects, { placement: e.placement })) : n, Bo(typeof n != "number" ? n : Uo(n, Ri));
5915
5916
  };
5916
5917
  function wh(n) {
5917
- var e, t = n.state, i = n.name, s = n.options, r = t.elements.arrow, o = t.modifiersData.popperOffsets, a = Ue(t.placement), u = _s(a), l = [Ee, Ce].indexOf(a) >= 0, c = l ? "height" : "width";
5918
+ var e, t = n.state, i = n.name, s = n.options, r = t.elements.arrow, o = t.modifiersData.popperOffsets, a = Ue(t.placement), u = bs(a), l = [Ee, Ce].indexOf(a) >= 0, c = l ? "height" : "width";
5918
5919
  if (!(!r || !o)) {
5919
- var d = bh(s.padding, t), h = ys(r), m = u === "y" ? we : Ee, g = u === "y" ? Re : Ce, f = t.rects.reference[c] + t.rects.reference[u] - o[u] - t.rects.popper[c], x = o[u] - t.rects.reference[u], w = Ci(r), S = w ? u === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, _ = f / 2 - x / 2, y = d[m], E = S - h[c] - d[g], P = S / 2 - h[c] / 2 + _, R = fi(y, P, E), N = u;
5920
- t.modifiersData[i] = (e = {}, e[N] = R, e.centerOffset = R - P, e);
5920
+ var d = _h(s.padding, t), h = ys(r), m = u === "y" ? we : Ee, g = u === "y" ? Re : Ce, f = t.rects.reference[c] + t.rects.reference[u] - o[u] - t.rects.popper[c], E = o[u] - t.rects.reference[u], k = Ci(r), T = k ? u === "y" ? k.clientHeight || 0 : k.clientWidth || 0 : 0, y = f / 2 - E / 2, b = d[m], w = T - h[c] - d[g], O = T / 2 - h[c] / 2 + y, C = fi(b, O, w), S = u;
5921
+ t.modifiersData[i] = (e = {}, e[S] = C, e.centerOffset = C - O, e);
5921
5922
  }
5922
5923
  }
5923
5924
  function Eh(n) {
@@ -5934,28 +5935,28 @@ function Th(n) {
5934
5935
  return { x: jt(e * s) / s || 0, y: jt(t * s) / s || 0 };
5935
5936
  }
5936
5937
  function zr(n) {
5937
- var e, t = n.popper, i = n.popperRect, s = n.placement, r = n.variation, o = n.offsets, a = n.position, u = n.gpuAcceleration, l = n.adaptive, c = n.roundOffsets, d = n.isFixed, h = o.x, m = h === void 0 ? 0 : h, g = o.y, f = g === void 0 ? 0 : g, x = typeof c == "function" ? c({ x: m, y: f }) : { x: m, y: f };
5938
- m = x.x, f = x.y;
5939
- var w = o.hasOwnProperty("x"), S = o.hasOwnProperty("y"), _ = Ee, y = we, E = window;
5938
+ var e, t = n.popper, i = n.popperRect, s = n.placement, r = n.variation, o = n.offsets, a = n.position, u = n.gpuAcceleration, l = n.adaptive, c = n.roundOffsets, d = n.isFixed, h = o.x, m = h === void 0 ? 0 : h, g = o.y, f = g === void 0 ? 0 : g, E = typeof c == "function" ? c({ x: m, y: f }) : { x: m, y: f };
5939
+ m = E.x, f = E.y;
5940
+ var k = o.hasOwnProperty("x"), T = o.hasOwnProperty("y"), y = Ee, b = we, w = window;
5940
5941
  if (l) {
5941
- var P = Ci(t), R = "clientHeight", N = "clientWidth";
5942
- if (P === Pe(t) && (P = vt(t), ut(P).position !== "static" && a === "absolute" && (R = "scrollHeight", N = "scrollWidth")), P = P, s === we || (s === Ee || s === Ce) && r === Ei) {
5943
- y = Re;
5944
- var C = d && P === E && E.visualViewport ? E.visualViewport.height : P[R];
5945
- f -= C - i.height, f *= u ? 1 : -1;
5942
+ var O = Ci(t), C = "clientHeight", S = "clientWidth";
5943
+ if (O === Ie(t) && (O = vt(t), ut(O).position !== "static" && a === "absolute" && (C = "scrollHeight", S = "scrollWidth")), O = O, s === we || (s === Ee || s === Ce) && r === Ei) {
5944
+ b = Re;
5945
+ var R = d && O === w && w.visualViewport ? w.visualViewport.height : O[C];
5946
+ f -= R - i.height, f *= u ? 1 : -1;
5946
5947
  }
5947
5948
  if (s === Ee || (s === we || s === Re) && r === Ei) {
5948
- _ = Ce;
5949
- var k = d && P === E && E.visualViewport ? E.visualViewport.width : P[N];
5950
- m -= k - i.width, m *= u ? 1 : -1;
5949
+ y = Ce;
5950
+ var A = d && O === w && w.visualViewport ? w.visualViewport.width : O[S];
5951
+ m -= A - i.width, m *= u ? 1 : -1;
5951
5952
  }
5952
5953
  }
5953
- var A = Object.assign({ position: a }, l && kh), H = c === !0 ? Th({ x: m, y: f }) : { x: m, y: f };
5954
- if (m = H.x, f = H.y, u) {
5955
- var X;
5956
- return Object.assign({}, A, (X = {}, X[y] = S ? "0" : "", X[_] = w ? "0" : "", X.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + f + "px)" : "translate3d(" + m + "px, " + f + "px, 0)", X));
5954
+ var N = Object.assign({ position: a }, l && kh), F = c === !0 ? Th({ x: m, y: f }) : { x: m, y: f };
5955
+ if (m = F.x, f = F.y, u) {
5956
+ var Z;
5957
+ return Object.assign({}, N, (Z = {}, Z[b] = T ? "0" : "", Z[y] = k ? "0" : "", Z.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + f + "px)" : "translate3d(" + m + "px, " + f + "px, 0)", Z));
5957
5958
  }
5958
- return Object.assign({}, A, (e = {}, e[y] = S ? f + "px" : "", e[_] = w ? m + "px" : "", e.transform = "", e));
5959
+ return Object.assign({}, N, (e = {}, e[b] = T ? f + "px" : "", e[y] = k ? m + "px" : "", e.transform = "", e));
5959
5960
  }
5960
5961
  function Sh(n) {
5961
5962
  var e = n.state, t = n.options, i = t.gpuAcceleration, s = i === void 0 ? !0 : i, r = t.adaptive, o = r === void 0 ? !0 : r, a = t.roundOffsets, u = a === void 0 ? !0 : a, l = { placement: Ue(e.placement), variation: qt(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: s, isFixed: e.options.strategy === "fixed" };
@@ -5963,7 +5964,7 @@ function Sh(n) {
5963
5964
  }
5964
5965
  var Wo = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: Sh, data: {} }, Ui = { passive: !0 };
5965
5966
  function Rh(n) {
5966
- var e = n.state, t = n.instance, i = n.options, s = i.scroll, r = s === void 0 ? !0 : s, o = i.resize, a = o === void 0 ? !0 : o, u = Pe(e.elements.popper), l = [].concat(e.scrollParents.reference, e.scrollParents.popper);
5967
+ var e = n.state, t = n.instance, i = n.options, s = i.scroll, r = s === void 0 ? !0 : s, o = i.resize, a = o === void 0 ? !0 : o, u = Ie(e.elements.popper), l = [].concat(e.scrollParents.reference, e.scrollParents.popper);
5967
5968
  return r && l.forEach(function(c) {
5968
5969
  c.addEventListener("scroll", t.update, Ui);
5969
5970
  }), a && u.addEventListener("resize", t.update, Ui), function() {
@@ -5985,19 +5986,19 @@ function $r(n) {
5985
5986
  return Ah[e];
5986
5987
  });
5987
5988
  }
5988
- function bs(n) {
5989
- var e = Pe(n), t = e.pageXOffset, i = e.pageYOffset;
5989
+ function _s(n) {
5990
+ var e = Ie(n), t = e.pageXOffset, i = e.pageYOffset;
5990
5991
  return { scrollLeft: t, scrollTop: i };
5991
5992
  }
5992
5993
  function ws(n) {
5993
- return Vt(vt(n)).left + bs(n).scrollLeft;
5994
+ return Vt(vt(n)).left + _s(n).scrollLeft;
5994
5995
  }
5995
5996
  function Oh(n) {
5996
- var e = Pe(n), t = vt(n), i = e.visualViewport, s = t.clientWidth, r = t.clientHeight, o = 0, a = 0;
5997
+ var e = Ie(n), t = vt(n), i = e.visualViewport, s = t.clientWidth, r = t.clientHeight, o = 0, a = 0;
5997
5998
  return i && (s = i.width, r = i.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (o = i.offsetLeft, a = i.offsetTop)), { width: s, height: r, x: o + ws(n), y: a };
5998
5999
  }
5999
6000
  function Dh(n) {
6000
- var e, t = vt(n), i = bs(n), s = (e = n.ownerDocument) == null ? void 0 : e.body, r = xt(t.scrollWidth, t.clientWidth, s ? s.scrollWidth : 0, s ? s.clientWidth : 0), o = xt(t.scrollHeight, t.clientHeight, s ? s.scrollHeight : 0, s ? s.clientHeight : 0), a = -i.scrollLeft + ws(n), u = -i.scrollTop;
6001
+ var e, t = vt(n), i = _s(n), s = (e = n.ownerDocument) == null ? void 0 : e.body, r = xt(t.scrollWidth, t.clientWidth, s ? s.scrollWidth : 0, s ? s.clientWidth : 0), o = xt(t.scrollHeight, t.clientHeight, s ? s.scrollHeight : 0, s ? s.clientHeight : 0), a = -i.scrollLeft + ws(n), u = -i.scrollTop;
6001
6002
  return ut(s || t).direction === "rtl" && (a += xt(t.clientWidth, s ? s.clientWidth : 0) - r), { width: r, height: o, x: a, y: u };
6002
6003
  }
6003
6004
  function Es(n) {
@@ -6010,27 +6011,27 @@ function jo(n) {
6010
6011
  function gi(n, e) {
6011
6012
  var t;
6012
6013
  e === void 0 && (e = []);
6013
- var i = jo(n), s = i === ((t = n.ownerDocument) == null ? void 0 : t.body), r = Pe(i), o = s ? [r].concat(r.visualViewport || [], Es(i) ? i : []) : i, a = e.concat(o);
6014
+ var i = jo(n), s = i === ((t = n.ownerDocument) == null ? void 0 : t.body), r = Ie(i), o = s ? [r].concat(r.visualViewport || [], Es(i) ? i : []) : i, a = e.concat(o);
6014
6015
  return s ? a : a.concat(gi(fn(o)));
6015
6016
  }
6016
6017
  function Wn(n) {
6017
6018
  return Object.assign({}, n, { left: n.x, top: n.y, right: n.x + n.width, bottom: n.y + n.height });
6018
6019
  }
6019
- function Ph(n) {
6020
+ function Ih(n) {
6020
6021
  var e = Vt(n);
6021
6022
  return e.top = e.top + n.clientTop, e.left = e.left + n.clientLeft, e.bottom = e.top + n.clientHeight, e.right = e.left + n.clientWidth, e.width = n.clientWidth, e.height = n.clientHeight, e.x = e.left, e.y = e.top, e;
6022
6023
  }
6023
6024
  function Hr(n, e) {
6024
- return e === zo ? Wn(Oh(n)) : Gt(e) ? Ph(e) : Wn(Dh(vt(n)));
6025
+ return e === zo ? Wn(Oh(n)) : Gt(e) ? Ih(e) : Wn(Dh(vt(n)));
6025
6026
  }
6026
- function Ih(n) {
6027
+ function Ph(n) {
6027
6028
  var e = gi(fn(n)), t = ["absolute", "fixed"].indexOf(ut(n).position) >= 0, i = t && Te(n) ? Ci(n) : n;
6028
6029
  return Gt(i) ? e.filter(function(s) {
6029
6030
  return Gt(s) && Ho(s, i) && Ge(s) !== "body";
6030
6031
  }) : [];
6031
6032
  }
6032
6033
  function Nh(n, e, t) {
6033
- var i = e === "clippingParents" ? Ih(n) : [].concat(e), s = [].concat(i, [t]), r = s[0], o = s.reduce(function(a, u) {
6034
+ var i = e === "clippingParents" ? Ph(n) : [].concat(e), s = [].concat(i, [t]), r = s[0], o = s.reduce(function(a, u) {
6034
6035
  var l = Hr(n, u);
6035
6036
  return a.top = xt(l.top, a.top), a.right = sn(l.right, a.right), a.bottom = sn(l.bottom, a.bottom), a.left = xt(l.left, a.left), a;
6036
6037
  }, Hr(n, r));
@@ -6054,7 +6055,7 @@ function Vo(n) {
6054
6055
  default:
6055
6056
  u = { x: e.x, y: e.y };
6056
6057
  }
6057
- var l = s ? _s(s) : null;
6058
+ var l = s ? bs(s) : null;
6058
6059
  if (l != null) {
6059
6060
  var c = l === "y" ? "height" : "width";
6060
6061
  switch (r) {
@@ -6070,15 +6071,15 @@ function Vo(n) {
6070
6071
  }
6071
6072
  function xi(n, e) {
6072
6073
  e === void 0 && (e = {});
6073
- var t = e, i = t.placement, s = i === void 0 ? n.placement : i, r = t.boundary, o = r === void 0 ? nh : r, a = t.rootBoundary, u = a === void 0 ? zo : a, l = t.elementContext, c = l === void 0 ? ci : l, d = t.altBoundary, h = d === void 0 ? !1 : d, m = t.padding, g = m === void 0 ? 0 : m, f = Bo(typeof g != "number" ? g : Uo(g, Ri)), x = c === ci ? sh : ci, w = n.rects.popper, S = n.elements[h ? x : c], _ = Nh(Gt(S) ? S : S.contextElement || vt(n.elements.popper), o, u), y = Vt(n.elements.reference), E = Vo({ reference: y, element: w, placement: s }), P = Wn(Object.assign({}, w, E)), R = c === ci ? P : y, N = { top: _.top - R.top + f.top, bottom: R.bottom - _.bottom + f.bottom, left: _.left - R.left + f.left, right: R.right - _.right + f.right }, C = n.modifiersData.offset;
6074
- if (c === ci && C) {
6075
- var k = C[s];
6076
- Object.keys(N).forEach(function(A) {
6077
- var H = [Ce, Re].indexOf(A) >= 0 ? 1 : -1, X = [we, Re].indexOf(A) >= 0 ? "y" : "x";
6078
- N[A] += k[X] * H;
6074
+ var t = e, i = t.placement, s = i === void 0 ? n.placement : i, r = t.boundary, o = r === void 0 ? nh : r, a = t.rootBoundary, u = a === void 0 ? zo : a, l = t.elementContext, c = l === void 0 ? ci : l, d = t.altBoundary, h = d === void 0 ? !1 : d, m = t.padding, g = m === void 0 ? 0 : m, f = Bo(typeof g != "number" ? g : Uo(g, Ri)), E = c === ci ? sh : ci, k = n.rects.popper, T = n.elements[h ? E : c], y = Nh(Gt(T) ? T : T.contextElement || vt(n.elements.popper), o, u), b = Vt(n.elements.reference), w = Vo({ reference: b, element: k, placement: s }), O = Wn(Object.assign({}, k, w)), C = c === ci ? O : b, S = { top: y.top - C.top + f.top, bottom: C.bottom - y.bottom + f.bottom, left: y.left - C.left + f.left, right: C.right - y.right + f.right }, R = n.modifiersData.offset;
6075
+ if (c === ci && R) {
6076
+ var A = R[s];
6077
+ Object.keys(S).forEach(function(N) {
6078
+ var F = [Ce, Re].indexOf(N) >= 0 ? 1 : -1, Z = [we, Re].indexOf(N) >= 0 ? "y" : "x";
6079
+ S[N] += A[Z] * F;
6079
6080
  });
6080
6081
  }
6081
- return N;
6082
+ return S;
6082
6083
  }
6083
6084
  function Lh(n, e) {
6084
6085
  e === void 0 && (e = {});
@@ -6103,33 +6104,33 @@ function Mh(n) {
6103
6104
  function zh(n) {
6104
6105
  var e = n.state, t = n.options, i = n.name;
6105
6106
  if (!e.modifiersData[i]._skip) {
6106
- for (var s = t.mainAxis, r = s === void 0 ? !0 : s, o = t.altAxis, a = o === void 0 ? !0 : o, u = t.fallbackPlacements, l = t.padding, c = t.boundary, d = t.rootBoundary, h = t.altBoundary, m = t.flipVariations, g = m === void 0 ? !0 : m, f = t.allowedAutoPlacements, x = e.options.placement, w = Ue(x), S = w === x, _ = u || (S || !g ? [Vi(x)] : Mh(x)), y = [x].concat(_).reduce(function(Ne, G) {
6107
+ for (var s = t.mainAxis, r = s === void 0 ? !0 : s, o = t.altAxis, a = o === void 0 ? !0 : o, u = t.fallbackPlacements, l = t.padding, c = t.boundary, d = t.rootBoundary, h = t.altBoundary, m = t.flipVariations, g = m === void 0 ? !0 : m, f = t.allowedAutoPlacements, E = e.options.placement, k = Ue(E), T = k === E, y = u || (T || !g ? [Vi(E)] : Mh(E)), b = [E].concat(y).reduce(function(Ne, G) {
6107
6108
  return Ne.concat(Ue(G) === gs ? Lh(e, { placement: G, boundary: c, rootBoundary: d, padding: l, flipVariations: g, allowedAutoPlacements: f }) : G);
6108
- }, []), E = e.rects.reference, P = e.rects.popper, R = /* @__PURE__ */ new Map(), N = !0, C = y[0], k = 0; k < y.length; k++) {
6109
- var A = y[k], H = Ue(A), X = qt(A) === Wt, ne = [we, Re].indexOf(H) >= 0, pe = ne ? "width" : "height", Q = xi(e, { placement: A, boundary: c, rootBoundary: d, altBoundary: h, padding: l }), oe = ne ? X ? Ce : Ee : X ? Re : we;
6110
- E[pe] > P[pe] && (oe = Vi(oe));
6109
+ }, []), w = e.rects.reference, O = e.rects.popper, C = /* @__PURE__ */ new Map(), S = !0, R = b[0], A = 0; A < b.length; A++) {
6110
+ var N = b[A], F = Ue(N), Z = qt(N) === Wt, ie = [we, Re].indexOf(F) >= 0, fe = ie ? "width" : "height", ne = xi(e, { placement: N, boundary: c, rootBoundary: d, altBoundary: h, padding: l }), oe = ie ? Z ? Ce : Ee : Z ? Re : we;
6111
+ w[fe] > O[fe] && (oe = Vi(oe));
6111
6112
  var L = Vi(oe), re = [];
6112
- if (r && re.push(Q[H] <= 0), a && re.push(Q[oe] <= 0, Q[L] <= 0), re.every(function(Ne) {
6113
+ if (r && re.push(ne[F] <= 0), a && re.push(ne[oe] <= 0, ne[L] <= 0), re.every(function(Ne) {
6113
6114
  return Ne;
6114
6115
  })) {
6115
- C = A, N = !1;
6116
+ R = N, S = !1;
6116
6117
  break;
6117
6118
  }
6118
- R.set(A, re);
6119
+ C.set(N, re);
6119
6120
  }
6120
- if (N) for (var Ie = g ? 3 : 1, J = function(Ne) {
6121
- var G = y.find(function(Le) {
6122
- var je = R.get(Le);
6121
+ if (S) for (var Pe = g ? 3 : 1, Q = function(Ne) {
6122
+ var G = b.find(function(Le) {
6123
+ var je = C.get(Le);
6123
6124
  if (je) return je.slice(0, Ne).every(function(Ve) {
6124
6125
  return Ve;
6125
6126
  });
6126
6127
  });
6127
- if (G) return C = G, "break";
6128
- }, ct = Ie; ct > 0; ct--) {
6129
- var se = J(ct);
6128
+ if (G) return R = G, "break";
6129
+ }, ct = Pe; ct > 0; ct--) {
6130
+ var se = Q(ct);
6130
6131
  if (se === "break") break;
6131
6132
  }
6132
- e.placement !== C && (e.modifiersData[i]._skip = !0, e.placement = C, e.reset = !0);
6133
+ e.placement !== R && (e.modifiersData[i]._skip = !0, e.placement = R, e.reset = !0);
6133
6134
  }
6134
6135
  }
6135
6136
  var $h = { name: "flip", enabled: !0, phase: "main", fn: zh, requiresIfExists: ["offset"], data: { _skip: !1 } };
@@ -6166,17 +6167,17 @@ function jh(n) {
6166
6167
  return n === "x" ? "y" : "x";
6167
6168
  }
6168
6169
  function Vh(n) {
6169
- var e = n.state, t = n.options, i = n.name, s = t.mainAxis, r = s === void 0 ? !0 : s, o = t.altAxis, a = o === void 0 ? !1 : o, u = t.boundary, l = t.rootBoundary, c = t.altBoundary, d = t.padding, h = t.tether, m = h === void 0 ? !0 : h, g = t.tetherOffset, f = g === void 0 ? 0 : g, x = xi(e, { boundary: u, rootBoundary: l, padding: d, altBoundary: c }), w = Ue(e.placement), S = qt(e.placement), _ = !S, y = _s(w), E = jh(y), P = e.modifiersData.popperOffsets, R = e.rects.reference, N = e.rects.popper, C = typeof f == "function" ? f(Object.assign({}, e.rects, { placement: e.placement })) : f, k = typeof C == "number" ? { mainAxis: C, altAxis: C } : Object.assign({ mainAxis: 0, altAxis: 0 }, C), A = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, H = { x: 0, y: 0 };
6170
- if (P) {
6170
+ var e = n.state, t = n.options, i = n.name, s = t.mainAxis, r = s === void 0 ? !0 : s, o = t.altAxis, a = o === void 0 ? !1 : o, u = t.boundary, l = t.rootBoundary, c = t.altBoundary, d = t.padding, h = t.tether, m = h === void 0 ? !0 : h, g = t.tetherOffset, f = g === void 0 ? 0 : g, E = xi(e, { boundary: u, rootBoundary: l, padding: d, altBoundary: c }), k = Ue(e.placement), T = qt(e.placement), y = !T, b = bs(k), w = jh(b), O = e.modifiersData.popperOffsets, C = e.rects.reference, S = e.rects.popper, R = typeof f == "function" ? f(Object.assign({}, e.rects, { placement: e.placement })) : f, A = typeof R == "number" ? { mainAxis: R, altAxis: R } : Object.assign({ mainAxis: 0, altAxis: 0 }, R), N = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, F = { x: 0, y: 0 };
6171
+ if (O) {
6171
6172
  if (r) {
6172
- var X, ne = y === "y" ? we : Ee, pe = y === "y" ? Re : Ce, Q = y === "y" ? "height" : "width", oe = P[y], L = oe + x[ne], re = oe - x[pe], Ie = m ? -N[Q] / 2 : 0, J = S === Wt ? R[Q] : N[Q], ct = S === Wt ? -N[Q] : -R[Q], se = e.elements.arrow, Ne = m && se ? ys(se) : { width: 0, height: 0 }, G = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Fo(), Le = G[ne], je = G[pe], Ve = fi(0, R[Q], Ne[Q]), Xt = _ ? R[Q] / 2 - Ie - Ve - Le - k.mainAxis : J - Ve - Le - k.mainAxis, Ai = _ ? -R[Q] / 2 + Ie + Ve + je + k.mainAxis : ct + Ve + je + k.mainAxis, Dt = e.elements.arrow && Ci(e.elements.arrow), dt = Dt ? y === "y" ? Dt.clientTop || 0 : Dt.clientLeft || 0 : 0, yt = (X = A?.[y]) != null ? X : 0, qe = oe + Xt - yt - dt, Zt = oe + Ai - yt, Pt = fi(m ? sn(L, qe) : L, oe, m ? xt(re, Zt) : re);
6173
- P[y] = Pt, H[y] = Pt - oe;
6173
+ var Z, ie = b === "y" ? we : Ee, fe = b === "y" ? Re : Ce, ne = b === "y" ? "height" : "width", oe = O[b], L = oe + E[ie], re = oe - E[fe], Pe = m ? -S[ne] / 2 : 0, Q = T === Wt ? C[ne] : S[ne], ct = T === Wt ? -S[ne] : -C[ne], se = e.elements.arrow, Ne = m && se ? ys(se) : { width: 0, height: 0 }, G = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Fo(), Le = G[ie], je = G[fe], Ve = fi(0, C[ne], Ne[ne]), Xt = y ? C[ne] / 2 - Pe - Ve - Le - A.mainAxis : Q - Ve - Le - A.mainAxis, Ai = y ? -C[ne] / 2 + Pe + Ve + je + A.mainAxis : ct + Ve + je + A.mainAxis, Dt = e.elements.arrow && Ci(e.elements.arrow), dt = Dt ? b === "y" ? Dt.clientTop || 0 : Dt.clientLeft || 0 : 0, yt = (Z = N?.[b]) != null ? Z : 0, qe = oe + Xt - yt - dt, Zt = oe + Ai - yt, It = fi(m ? sn(L, qe) : L, oe, m ? xt(re, Zt) : re);
6174
+ O[b] = It, F[b] = It - oe;
6174
6175
  }
6175
6176
  if (a) {
6176
- var Ke, It = y === "x" ? we : Ee, Nt = y === "x" ? Re : Ce, Me = P[E], _t = E === "y" ? "height" : "width", Oi = Me + x[It], Lt = Me - x[Nt], Ye = [we, Ee].indexOf(w) !== -1, Xe = (Ke = A?.[E]) != null ? Ke : 0, Ze = Ye ? Oi : Me - R[_t] - N[_t] - Xe + k.altAxis, Qt = Ye ? Me + R[_t] + N[_t] - Xe - k.altAxis : Lt, Jt = m && Ye ? _h(Ze, Me, Qt) : fi(m ? Ze : Oi, Me, m ? Qt : Lt);
6177
- P[E] = Jt, H[E] = Jt - Me;
6177
+ var Ke, Pt = b === "x" ? we : Ee, Nt = b === "x" ? Re : Ce, Me = O[w], bt = w === "y" ? "height" : "width", Oi = Me + E[Pt], Lt = Me - E[Nt], Ye = [we, Ee].indexOf(k) !== -1, Xe = (Ke = N?.[w]) != null ? Ke : 0, Ze = Ye ? Oi : Me - C[bt] - S[bt] - Xe + A.altAxis, Qt = Ye ? Me + C[bt] + S[bt] - Xe - A.altAxis : Lt, Jt = m && Ye ? bh(Ze, Me, Qt) : fi(m ? Ze : Oi, Me, m ? Qt : Lt);
6178
+ O[w] = Jt, F[w] = Jt - Me;
6178
6179
  }
6179
- e.modifiersData[i] = H;
6180
+ e.modifiersData[i] = F;
6180
6181
  }
6181
6182
  }
6182
6183
  var qh = { name: "preventOverflow", enabled: !0, phase: "main", fn: Vh, requiresIfExists: ["offset"] };
@@ -6184,7 +6185,7 @@ function Kh(n) {
6184
6185
  return { scrollLeft: n.scrollLeft, scrollTop: n.scrollTop };
6185
6186
  }
6186
6187
  function Yh(n) {
6187
- return n === Pe(n) || !Te(n) ? bs(n) : Kh(n);
6188
+ return n === Ie(n) || !Te(n) ? _s(n) : Kh(n);
6188
6189
  }
6189
6190
  function Xh(n) {
6190
6191
  var e = n.getBoundingClientRect(), t = jt(e.width) / n.offsetWidth || 1, i = jt(e.height) / n.offsetHeight || 1;
@@ -6254,26 +6255,26 @@ function xs(n) {
6254
6255
  return function(o, a, u) {
6255
6256
  u === void 0 && (u = r);
6256
6257
  var l = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, Ur, r), modifiersData: {}, elements: { reference: o, popper: a }, attributes: {}, styles: {} }, c = [], d = !1, h = { state: l, setOptions: function(f) {
6257
- var x = typeof f == "function" ? f(l.options) : f;
6258
- g(), l.options = Object.assign({}, r, l.options, x), l.scrollParents = { reference: Gt(o) ? gi(o) : o.contextElement ? gi(o.contextElement) : [], popper: gi(a) };
6259
- var w = Jh(tp([].concat(i, l.options.modifiers)));
6260
- return l.orderedModifiers = w.filter(function(S) {
6261
- return S.enabled;
6258
+ var E = typeof f == "function" ? f(l.options) : f;
6259
+ g(), l.options = Object.assign({}, r, l.options, E), l.scrollParents = { reference: Gt(o) ? gi(o) : o.contextElement ? gi(o.contextElement) : [], popper: gi(a) };
6260
+ var k = Jh(tp([].concat(i, l.options.modifiers)));
6261
+ return l.orderedModifiers = k.filter(function(T) {
6262
+ return T.enabled;
6262
6263
  }), m(), h.update();
6263
6264
  }, forceUpdate: function() {
6264
6265
  if (!d) {
6265
- var f = l.elements, x = f.reference, w = f.popper;
6266
- if (Wr(x, w)) {
6267
- l.rects = { reference: Zh(x, Ci(w), l.options.strategy === "fixed"), popper: ys(w) }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(N) {
6268
- return l.modifiersData[N.name] = Object.assign({}, N.data);
6266
+ var f = l.elements, E = f.reference, k = f.popper;
6267
+ if (Wr(E, k)) {
6268
+ l.rects = { reference: Zh(E, Ci(k), l.options.strategy === "fixed"), popper: ys(k) }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(S) {
6269
+ return l.modifiersData[S.name] = Object.assign({}, S.data);
6269
6270
  });
6270
- for (var S = 0; S < l.orderedModifiers.length; S++) {
6271
+ for (var T = 0; T < l.orderedModifiers.length; T++) {
6271
6272
  if (l.reset === !0) {
6272
- l.reset = !1, S = -1;
6273
+ l.reset = !1, T = -1;
6273
6274
  continue;
6274
6275
  }
6275
- var _ = l.orderedModifiers[S], y = _.fn, E = _.options, P = E === void 0 ? {} : E, R = _.name;
6276
- typeof y == "function" && (l = y({ state: l, options: P, name: R, instance: h }) || l);
6276
+ var y = l.orderedModifiers[T], b = y.fn, w = y.options, O = w === void 0 ? {} : w, C = y.name;
6277
+ typeof b == "function" && (l = b({ state: l, options: O, name: C, instance: h }) || l);
6277
6278
  }
6278
6279
  }
6279
6280
  }
@@ -6290,11 +6291,11 @@ function xs(n) {
6290
6291
  });
6291
6292
  function m() {
6292
6293
  l.orderedModifiers.forEach(function(f) {
6293
- var x = f.name, w = f.options, S = w === void 0 ? {} : w, _ = f.effect;
6294
- if (typeof _ == "function") {
6295
- var y = _({ state: l, name: x, instance: h, options: S }), E = function() {
6294
+ var E = f.name, k = f.options, T = k === void 0 ? {} : k, y = f.effect;
6295
+ if (typeof y == "function") {
6296
+ var b = y({ state: l, name: E, instance: h, options: T }), w = function() {
6296
6297
  };
6297
- c.push(y || E);
6298
+ c.push(b || w);
6298
6299
  }
6299
6300
  });
6300
6301
  }
@@ -6321,7 +6322,7 @@ const Ko = ke({
6321
6322
  default: 0
6322
6323
  },
6323
6324
  fallbackPlacements: {
6324
- type: te(Array),
6325
+ type: ee(Array),
6325
6326
  default: void 0
6326
6327
  },
6327
6328
  gpuAcceleration: {
@@ -6338,7 +6339,7 @@ const Ko = ke({
6338
6339
  default: "bottom"
6339
6340
  },
6340
6341
  popperOptions: {
6341
- type: te(Object),
6342
+ type: ee(Object),
6342
6343
  default: () => ({})
6343
6344
  },
6344
6345
  strategy: {
@@ -6351,13 +6352,13 @@ const Ko = ke({
6351
6352
  ...Ko,
6352
6353
  id: String,
6353
6354
  style: {
6354
- type: te([String, Array, Object])
6355
+ type: ee([String, Array, Object])
6355
6356
  },
6356
6357
  className: {
6357
- type: te([String, Array, Object])
6358
+ type: ee([String, Array, Object])
6358
6359
  },
6359
6360
  effect: {
6360
- type: te(String),
6361
+ type: ee(String),
6361
6362
  default: "dark"
6362
6363
  },
6363
6364
  visible: Boolean,
@@ -6369,16 +6370,16 @@ const Ko = ke({
6369
6370
  focusOnShow: Boolean,
6370
6371
  trapping: Boolean,
6371
6372
  popperClass: {
6372
- type: te([String, Array, Object])
6373
+ type: ee([String, Array, Object])
6373
6374
  },
6374
6375
  popperStyle: {
6375
- type: te([String, Array, Object])
6376
+ type: ee([String, Array, Object])
6376
6377
  },
6377
6378
  referenceEl: {
6378
- type: te(Object)
6379
+ type: ee(Object)
6379
6380
  },
6380
6381
  triggerTargetEl: {
6381
- type: te(Object)
6382
+ type: ee(Object)
6382
6383
  },
6383
6384
  stopPopperMouseEvent: {
6384
6385
  type: Boolean,
@@ -6475,8 +6476,8 @@ const pp = (n, e, t = {}) => {
6475
6476
  Object.assign(o.value, l);
6476
6477
  },
6477
6478
  requires: ["computeStyles"]
6478
- }, s = $(() => {
6479
- const { onFirstUpdate: u, placement: l, strategy: c, modifiers: d } = b(t);
6479
+ }, s = z(() => {
6480
+ const { onFirstUpdate: u, placement: l, strategy: c, modifiers: d } = _(t);
6480
6481
  return {
6481
6482
  onFirstUpdate: u,
6482
6483
  placement: l || "bottom",
@@ -6490,7 +6491,7 @@ const pp = (n, e, t = {}) => {
6490
6491
  }), r = rn(), o = M({
6491
6492
  styles: {
6492
6493
  popper: {
6493
- position: b(s).strategy,
6494
+ position: _(s).strategy,
6494
6495
  left: "0",
6495
6496
  top: "0"
6496
6497
  },
@@ -6503,30 +6504,30 @@ const pp = (n, e, t = {}) => {
6503
6504
  r.value && (r.value.destroy(), r.value = void 0);
6504
6505
  };
6505
6506
  return V(s, (u) => {
6506
- const l = b(r);
6507
+ const l = _(r);
6507
6508
  l && l.setOptions(u);
6508
6509
  }, {
6509
6510
  deep: !0
6510
6511
  }), V([n, e], ([u, l]) => {
6511
- a(), !(!u || !l) && (r.value = sp(u, l, b(s)));
6512
+ a(), !(!u || !l) && (r.value = sp(u, l, _(s)));
6512
6513
  }), ft(() => {
6513
6514
  a();
6514
6515
  }), {
6515
- state: $(() => {
6516
+ state: z(() => {
6516
6517
  var u;
6517
- return { ...((u = b(r)) == null ? void 0 : u.state) || {} };
6518
+ return { ...((u = _(r)) == null ? void 0 : u.state) || {} };
6518
6519
  }),
6519
- styles: $(() => b(o).styles),
6520
- attributes: $(() => b(o).attributes),
6520
+ styles: z(() => _(o).styles),
6521
+ attributes: z(() => _(o).attributes),
6521
6522
  update: () => {
6522
6523
  var u;
6523
- return (u = b(r)) == null ? void 0 : u.update();
6524
+ return (u = _(r)) == null ? void 0 : u.update();
6524
6525
  },
6525
6526
  forceUpdate: () => {
6526
6527
  var u;
6527
- return (u = b(r)) == null ? void 0 : u.forceUpdate();
6528
+ return (u = _(r)) == null ? void 0 : u.forceUpdate();
6528
6529
  },
6529
- instanceRef: $(() => b(r))
6530
+ instanceRef: z(() => _(r))
6530
6531
  };
6531
6532
  };
6532
6533
  function fp(n) {
@@ -6537,35 +6538,35 @@ function fp(n) {
6537
6538
  };
6538
6539
  }
6539
6540
  const gp = 0, mp = (n) => {
6540
- const { popperInstanceRef: e, contentRef: t, triggerRef: i, role: s } = ve(hs, void 0), r = M(), o = $(() => n.arrowOffset), a = $(() => ({
6541
+ const { popperInstanceRef: e, contentRef: t, triggerRef: i, role: s } = pe(hs, void 0), r = M(), o = z(() => n.arrowOffset), a = z(() => ({
6541
6542
  name: "eventListeners",
6542
6543
  enabled: !!n.visible
6543
- })), u = $(() => {
6544
- var w;
6545
- const S = b(r), _ = (w = b(o)) != null ? w : gp;
6544
+ })), u = z(() => {
6545
+ var k;
6546
+ const T = _(r), y = (k = _(o)) != null ? k : gp;
6546
6547
  return {
6547
6548
  name: "arrow",
6548
- enabled: !Bc(S),
6549
+ enabled: !Bc(T),
6549
6550
  options: {
6550
- element: S,
6551
- padding: _
6551
+ element: T,
6552
+ padding: y
6552
6553
  }
6553
6554
  };
6554
- }), l = $(() => ({
6555
+ }), l = z(() => ({
6555
6556
  onFirstUpdate: () => {
6556
6557
  g();
6557
6558
  },
6558
6559
  ...up(n, [
6559
- b(u),
6560
- b(a)
6560
+ _(u),
6561
+ _(a)
6561
6562
  ])
6562
- })), c = $(() => cp(n.referenceEl) || b(i)), { attributes: d, state: h, styles: m, update: g, forceUpdate: f, instanceRef: x } = pp(c, t, l);
6563
- return V(x, (w) => e.value = w, {
6563
+ })), c = z(() => cp(n.referenceEl) || _(i)), { attributes: d, state: h, styles: m, update: g, forceUpdate: f, instanceRef: E } = pp(c, t, l);
6564
+ return V(E, (k) => e.value = k, {
6564
6565
  flush: "sync"
6565
6566
  }), gt(() => {
6566
6567
  V(() => {
6567
- var w;
6568
- return (w = b(c)) == null ? void 0 : w.getBoundingClientRect();
6568
+ var k;
6569
+ return (k = _(c)) == null ? void 0 : k.getBoundingClientRect();
6569
6570
  }, () => {
6570
6571
  g();
6571
6572
  });
@@ -6573,7 +6574,7 @@ const gp = 0, mp = (n) => {
6573
6574
  attributes: d,
6574
6575
  arrowRef: r,
6575
6576
  contentRef: t,
6576
- instanceRef: x,
6577
+ instanceRef: E,
6577
6578
  state: h,
6578
6579
  styles: m,
6579
6580
  role: s,
@@ -6585,16 +6586,16 @@ const gp = 0, mp = (n) => {
6585
6586
  styles: t,
6586
6587
  role: i
6587
6588
  }) => {
6588
- const { nextZIndex: s } = hd(), r = mt("popper"), o = $(() => b(e).popper), a = M(wi(n.zIndex) ? n.zIndex : s()), u = $(() => [
6589
+ const { nextZIndex: s } = hd(), r = mt("popper"), o = z(() => _(e).popper), a = M(wi(n.zIndex) ? n.zIndex : s()), u = z(() => [
6589
6590
  r.b(),
6590
6591
  r.is("pure", n.pure),
6591
6592
  r.is(n.effect),
6592
6593
  n.popperClass
6593
- ]), l = $(() => [
6594
- { zIndex: b(a) },
6595
- b(t).popper,
6594
+ ]), l = z(() => [
6595
+ { zIndex: _(a) },
6596
+ _(t).popper,
6596
6597
  n.popperStyle || {}
6597
- ]), c = $(() => i.value === "dialog" ? "false" : void 0), d = $(() => b(t).arrow || {});
6598
+ ]), c = z(() => i.value === "dialog" ? "false" : void 0), d = z(() => _(t).arrow || {});
6598
6599
  return {
6599
6600
  ariaModal: c,
6600
6601
  arrowStyle: d,
@@ -6608,7 +6609,7 @@ const gp = 0, mp = (n) => {
6608
6609
  };
6609
6610
  }, yp = q({
6610
6611
  name: "ElPopperContent"
6611
- }), _p = /* @__PURE__ */ q({
6612
+ }), bp = /* @__PURE__ */ q({
6612
6613
  ...yp,
6613
6614
  props: Yo,
6614
6615
  emits: ap,
@@ -6621,84 +6622,84 @@ const gp = 0, mp = (n) => {
6621
6622
  onFocusInTrap: u,
6622
6623
  onFocusoutPrevented: l,
6623
6624
  onReleaseRequested: c
6624
- } = lp(i, t), { attributes: d, arrowRef: h, contentRef: m, styles: g, instanceRef: f, role: x, update: w } = mp(i), {
6625
- ariaModal: S,
6626
- arrowStyle: _,
6627
- contentAttrs: y,
6628
- contentClass: E,
6629
- contentStyle: P,
6630
- updateZIndex: R
6625
+ } = lp(i, t), { attributes: d, arrowRef: h, contentRef: m, styles: g, instanceRef: f, role: E, update: k } = mp(i), {
6626
+ ariaModal: T,
6627
+ arrowStyle: y,
6628
+ contentAttrs: b,
6629
+ contentClass: w,
6630
+ contentStyle: O,
6631
+ updateZIndex: C
6631
6632
  } = vp(i, {
6632
6633
  styles: g,
6633
6634
  attributes: d,
6634
- role: x
6635
- }), N = ve(Bn, void 0);
6635
+ role: E
6636
+ }), S = pe(Bn, void 0);
6636
6637
  kt(Do, {
6637
- arrowStyle: _,
6638
+ arrowStyle: y,
6638
6639
  arrowRef: h
6639
- }), N && kt(Bn, {
6640
- ...N,
6640
+ }), S && kt(Bn, {
6641
+ ...S,
6641
6642
  addInputId: Hn,
6642
6643
  removeInputId: Hn
6643
6644
  });
6644
- let C;
6645
- const k = (H = !0) => {
6646
- w(), H && R();
6647
- }, A = () => {
6648
- k(!1), i.visible && i.focusOnShow ? r.value = !0 : i.visible === !1 && (r.value = !1);
6645
+ let R;
6646
+ const A = (F = !0) => {
6647
+ k(), F && C();
6648
+ }, N = () => {
6649
+ A(!1), i.visible && i.focusOnShow ? r.value = !0 : i.visible === !1 && (r.value = !1);
6649
6650
  };
6650
6651
  return gt(() => {
6651
- V(() => i.triggerTargetEl, (H, X) => {
6652
- C?.(), C = void 0;
6653
- const ne = b(H || m.value), pe = b(X || m.value);
6654
- Et(ne) && (C = V([x, () => i.ariaLabel, S, () => i.id], (Q) => {
6652
+ V(() => i.triggerTargetEl, (F, Z) => {
6653
+ R?.(), R = void 0;
6654
+ const ie = _(F || m.value), fe = _(Z || m.value);
6655
+ Et(ie) && (R = V([E, () => i.ariaLabel, T, () => i.id], (ne) => {
6655
6656
  ["role", "aria-label", "aria-modal", "id"].forEach((oe, L) => {
6656
- ds(Q[L]) ? ne.removeAttribute(oe) : ne.setAttribute(oe, Q[L]);
6657
+ ds(ne[L]) ? ie.removeAttribute(oe) : ie.setAttribute(oe, ne[L]);
6657
6658
  });
6658
- }, { immediate: !0 })), pe !== ne && Et(pe) && ["role", "aria-label", "aria-modal", "id"].forEach((Q) => {
6659
- pe.removeAttribute(Q);
6659
+ }, { immediate: !0 })), fe !== ie && Et(fe) && ["role", "aria-label", "aria-modal", "id"].forEach((ne) => {
6660
+ fe.removeAttribute(ne);
6660
6661
  });
6661
- }, { immediate: !0 }), V(() => i.visible, A, { immediate: !0 });
6662
+ }, { immediate: !0 }), V(() => i.visible, N, { immediate: !0 });
6662
6663
  }), ft(() => {
6663
- C?.(), C = void 0;
6664
+ R?.(), R = void 0;
6664
6665
  }), e({
6665
6666
  popperContentRef: m,
6666
6667
  popperInstanceRef: f,
6667
- updatePopper: k,
6668
- contentStyle: P
6669
- }), (H, X) => (D(), W("div", Rt({
6668
+ updatePopper: A,
6669
+ contentStyle: O
6670
+ }), (F, Z) => (I(), W("div", Rt({
6670
6671
  ref_key: "contentRef",
6671
6672
  ref: m
6672
- }, b(y), {
6673
- style: b(P),
6674
- class: b(E),
6673
+ }, _(b), {
6674
+ style: _(O),
6675
+ class: _(w),
6675
6676
  tabindex: "-1",
6676
- onMouseenter: (ne) => H.$emit("mouseenter", ne),
6677
- onMouseleave: (ne) => H.$emit("mouseleave", ne)
6677
+ onMouseenter: (ie) => F.$emit("mouseenter", ie),
6678
+ onMouseleave: (ie) => F.$emit("mouseleave", ie)
6678
6679
  }), [
6679
- Z(b(ih), {
6680
- trapped: b(r),
6680
+ X(_(ih), {
6681
+ trapped: _(r),
6681
6682
  "trap-on-focus-in": !0,
6682
- "focus-trap-el": b(m),
6683
- "focus-start-el": b(s),
6684
- onFocusAfterTrapped: b(a),
6685
- onFocusAfterReleased: b(o),
6686
- onFocusin: b(u),
6687
- onFocusoutPrevented: b(l),
6688
- onReleaseRequested: b(c)
6683
+ "focus-trap-el": _(m),
6684
+ "focus-start-el": _(s),
6685
+ onFocusAfterTrapped: _(a),
6686
+ onFocusAfterReleased: _(o),
6687
+ onFocusin: _(u),
6688
+ onFocusoutPrevented: _(l),
6689
+ onReleaseRequested: _(c)
6689
6690
  }, {
6690
6691
  default: j(() => [
6691
- ce(H.$slots, "default")
6692
+ ce(F.$slots, "default")
6692
6693
  ]),
6693
6694
  _: 3
6694
6695
  }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
6695
6696
  ], 16, ["onMouseenter", "onMouseleave"]));
6696
6697
  }
6697
6698
  });
6698
- var bp = /* @__PURE__ */ De(_p, [["__file", "content.vue"]]);
6699
- const wp = Si(Pd), ks = Symbol("elTooltip"), Xo = ke({
6699
+ var _p = /* @__PURE__ */ De(bp, [["__file", "content.vue"]]);
6700
+ const wp = Si(Id), ks = Symbol("elTooltip"), Xo = ke({
6700
6701
  to: {
6701
- type: te([String, Object]),
6702
+ type: ee([String, Object]),
6702
6703
  required: !0
6703
6704
  },
6704
6705
  disabled: Boolean
@@ -6715,7 +6716,7 @@ const wp = Si(Pd), ks = Symbol("elTooltip"), Xo = ke({
6715
6716
  rawContent: Boolean,
6716
6717
  persistent: Boolean,
6717
6718
  visible: {
6718
- type: te(Boolean),
6719
+ type: ee(Boolean),
6719
6720
  default: null
6720
6721
  },
6721
6722
  transition: String,
@@ -6726,21 +6727,21 @@ const wp = Si(Pd), ks = Symbol("elTooltip"), Xo = ke({
6726
6727
  disabled: Boolean,
6727
6728
  ...Ao(["ariaLabel"])
6728
6729
  }), Qo = ke({
6729
- ...Io,
6730
+ ...Po,
6730
6731
  disabled: Boolean,
6731
6732
  trigger: {
6732
- type: te([String, Array]),
6733
+ type: ee([String, Array]),
6733
6734
  default: "hover"
6734
6735
  },
6735
6736
  triggerKeys: {
6736
- type: te(Array),
6737
+ type: ee(Array),
6737
6738
  default: () => [pi.enter, pi.numpadEnter, pi.space]
6738
6739
  }
6739
6740
  }), Ep = hn({
6740
- type: te(Boolean),
6741
+ type: ee(Boolean),
6741
6742
  default: null
6742
6743
  }), xp = hn({
6743
- type: te(Function)
6744
+ type: ee(Function)
6744
6745
  }), kp = (n) => {
6745
6746
  const e = `update:${n}`, t = `onUpdate:${n}`, i = [e], s = {
6746
6747
  [n]: Ep,
@@ -6755,35 +6756,35 @@ const wp = Si(Pd), ks = Symbol("elTooltip"), Xo = ke({
6755
6756
  onShow: c,
6756
6757
  onHide: d
6757
6758
  }) => {
6758
- const h = Ut(), { emit: m } = h, g = h.props, f = $(() => $i(g[t])), x = $(() => g[n] === null), w = (R) => {
6759
- o.value !== !0 && (o.value = !0, a && (a.value = R), $i(c) && c(R));
6760
- }, S = (R) => {
6761
- o.value !== !1 && (o.value = !1, a && (a.value = R), $i(d) && d(R));
6762
- }, _ = (R) => {
6759
+ const h = Ut(), { emit: m } = h, g = h.props, f = z(() => $i(g[t])), E = z(() => g[n] === null), k = (C) => {
6760
+ o.value !== !0 && (o.value = !0, a && (a.value = C), $i(c) && c(C));
6761
+ }, T = (C) => {
6762
+ o.value !== !1 && (o.value = !1, a && (a.value = C), $i(d) && d(C));
6763
+ }, y = (C) => {
6763
6764
  if (g.disabled === !0 || $i(l) && !l())
6764
6765
  return;
6765
- const N = f.value && Be;
6766
- N && m(e, !0), (x.value || !N) && w(R);
6767
- }, y = (R) => {
6766
+ const S = f.value && Be;
6767
+ S && m(e, !0), (E.value || !S) && k(C);
6768
+ }, b = (C) => {
6768
6769
  if (g.disabled === !0 || !Be)
6769
6770
  return;
6770
- const N = f.value && Be;
6771
- N && m(e, !1), (x.value || !N) && S(R);
6772
- }, E = (R) => {
6773
- wo(R) && (g.disabled && R ? f.value && m(e, !1) : o.value !== R && (R ? w() : S()));
6774
- }, P = () => {
6775
- o.value ? y() : _();
6771
+ const S = f.value && Be;
6772
+ S && m(e, !1), (E.value || !S) && T(C);
6773
+ }, w = (C) => {
6774
+ wo(C) && (g.disabled && C ? f.value && m(e, !1) : o.value !== C && (C ? k() : T()));
6775
+ }, O = () => {
6776
+ o.value ? b() : y();
6776
6777
  };
6777
- return V(() => g[n], E), u && h.appContext.config.globalProperties.$route !== void 0 && V(() => ({
6778
+ return V(() => g[n], w), u && h.appContext.config.globalProperties.$route !== void 0 && V(() => ({
6778
6779
  ...h.proxy.$route
6779
6780
  }), () => {
6780
- u.value && o.value && y();
6781
+ u.value && o.value && b();
6781
6782
  }), gt(() => {
6782
- E(g[n]);
6783
+ w(g[n]);
6783
6784
  }), {
6784
- hide: y,
6785
- show: _,
6786
- toggle: P,
6785
+ hide: b,
6786
+ show: y,
6787
+ toggle: O,
6787
6788
  hasUpdateHandler: f
6788
6789
  };
6789
6790
  },
@@ -6795,7 +6796,7 @@ const wp = Si(Pd), ks = Symbol("elTooltip"), Xo = ke({
6795
6796
  useModelToggleEmits: Sp,
6796
6797
  useModelToggle: Rp
6797
6798
  } = kp("visible"), Cp = ke({
6798
- ...Po,
6799
+ ...Io,
6799
6800
  ...Tp,
6800
6801
  ...Zo,
6801
6802
  ...Qo,
@@ -6813,57 +6814,57 @@ const wp = Si(Pd), ks = Symbol("elTooltip"), Xo = ke({
6813
6814
  "open",
6814
6815
  "close"
6815
6816
  ], Op = (n, e) => Jl(n) ? n.includes(e) : n === e, Ht = (n, e, t) => (i) => {
6816
- Op(b(n), e) && t(i);
6817
+ Op(_(n), e) && t(i);
6817
6818
  }, nt = (n, e, { checkForDefaultPrevented: t = !0 } = {}) => (s) => {
6818
6819
  const r = n?.(s);
6819
6820
  if (t === !1 || !r)
6820
6821
  return e?.(s);
6821
6822
  }, Dp = q({
6822
6823
  name: "ElTooltipTrigger"
6823
- }), Pp = /* @__PURE__ */ q({
6824
+ }), Ip = /* @__PURE__ */ q({
6824
6825
  ...Dp,
6825
6826
  props: Qo,
6826
6827
  setup(n, { expose: e }) {
6827
- const t = n, i = mt("tooltip"), { controlled: s, id: r, open: o, onOpen: a, onClose: u, onToggle: l } = ve(ks, void 0), c = M(null), d = () => {
6828
- if (b(s) || t.disabled)
6828
+ const t = n, i = mt("tooltip"), { controlled: s, id: r, open: o, onOpen: a, onClose: u, onToggle: l } = pe(ks, void 0), c = M(null), d = () => {
6829
+ if (_(s) || t.disabled)
6829
6830
  return !0;
6830
- }, h = di(t, "trigger"), m = nt(d, Ht(h, "hover", a)), g = nt(d, Ht(h, "hover", u)), f = nt(d, Ht(h, "click", (y) => {
6831
- y.button === 0 && l(y);
6832
- })), x = nt(d, Ht(h, "focus", a)), w = nt(d, Ht(h, "focus", u)), S = nt(d, Ht(h, "contextmenu", (y) => {
6833
- y.preventDefault(), l(y);
6834
- })), _ = nt(d, (y) => {
6835
- const { code: E } = y;
6836
- t.triggerKeys.includes(E) && (y.preventDefault(), l(y));
6831
+ }, h = di(t, "trigger"), m = nt(d, Ht(h, "hover", a)), g = nt(d, Ht(h, "hover", u)), f = nt(d, Ht(h, "click", (b) => {
6832
+ b.button === 0 && l(b);
6833
+ })), E = nt(d, Ht(h, "focus", a)), k = nt(d, Ht(h, "focus", u)), T = nt(d, Ht(h, "contextmenu", (b) => {
6834
+ b.preventDefault(), l(b);
6835
+ })), y = nt(d, (b) => {
6836
+ const { code: w } = b;
6837
+ t.triggerKeys.includes(w) && (b.preventDefault(), l(b));
6837
6838
  });
6838
6839
  return e({
6839
6840
  triggerRef: c
6840
- }), (y, E) => (D(), ie(b(Ud), {
6841
- id: b(r),
6842
- "virtual-ref": y.virtualRef,
6843
- open: b(o),
6844
- "virtual-triggering": y.virtualTriggering,
6845
- class: st(b(i).e("trigger")),
6846
- onBlur: b(w),
6847
- onClick: b(f),
6848
- onContextmenu: b(S),
6849
- onFocus: b(x),
6850
- onMouseenter: b(m),
6851
- onMouseleave: b(g),
6852
- onKeydown: b(_)
6841
+ }), (b, w) => (I(), te(_(Ud), {
6842
+ id: _(r),
6843
+ "virtual-ref": b.virtualRef,
6844
+ open: _(o),
6845
+ "virtual-triggering": b.virtualTriggering,
6846
+ class: st(_(i).e("trigger")),
6847
+ onBlur: _(k),
6848
+ onClick: _(f),
6849
+ onContextmenu: _(T),
6850
+ onFocus: _(E),
6851
+ onMouseenter: _(m),
6852
+ onMouseleave: _(g),
6853
+ onKeydown: _(y)
6853
6854
  }, {
6854
6855
  default: j(() => [
6855
- ce(y.$slots, "default")
6856
+ ce(b.$slots, "default")
6856
6857
  ]),
6857
6858
  _: 3
6858
6859
  }, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]));
6859
6860
  }
6860
6861
  });
6861
- var Ip = /* @__PURE__ */ De(Pp, [["__file", "trigger.vue"]]);
6862
+ var Pp = /* @__PURE__ */ De(Ip, [["__file", "trigger.vue"]]);
6862
6863
  const Np = /* @__PURE__ */ q({
6863
6864
  __name: "teleport",
6864
6865
  props: Xo,
6865
6866
  setup(n) {
6866
- return (e, t) => e.disabled ? ce(e.$slots, "default", { key: 0 }) : (D(), ie(_a, {
6867
+ return (e, t) => e.disabled ? ce(e.$slots, "default", { key: 0 }) : (I(), te(ba, {
6867
6868
  key: 1,
6868
6869
  to: e.to
6869
6870
  }, [
@@ -6873,7 +6874,7 @@ const Np = /* @__PURE__ */ q({
6873
6874
  });
6874
6875
  var Lp = /* @__PURE__ */ De(Np, [["__file", "teleport.vue"]]);
6875
6876
  const Mp = Si(Lp), Jo = () => {
6876
- const n = ts(), e = Oo(), t = $(() => `${n.value}-popper-container-${e.prefix}`), i = $(() => `#${t.value}`);
6877
+ const n = ts(), e = Oo(), t = z(() => `${n.value}-popper-container-${e.prefix}`), i = z(() => `#${t.value}`);
6877
6878
  return {
6878
6879
  id: t,
6879
6880
  selector: i
@@ -6910,43 +6911,43 @@ const Mp = Si(Lp), Jo = () => {
6910
6911
  onOpen: m,
6911
6912
  onShow: g,
6912
6913
  onHide: f,
6913
- onBeforeShow: x,
6914
- onBeforeHide: w
6915
- } = ve(ks, void 0), S = $(() => t.transition || `${s.namespace.value}-fade-in-linear`), _ = $(() => t.persistent);
6914
+ onBeforeShow: E,
6915
+ onBeforeHide: k
6916
+ } = pe(ks, void 0), T = z(() => t.transition || `${s.namespace.value}-fade-in-linear`), y = z(() => t.persistent);
6916
6917
  ft(() => {
6917
6918
  a?.();
6918
6919
  });
6919
- const y = $(() => b(_) ? !0 : b(c)), E = $(() => t.disabled ? !1 : b(c)), P = $(() => t.appendTo || i.value), R = $(() => {
6920
+ const b = z(() => _(y) ? !0 : _(c)), w = z(() => t.disabled ? !1 : _(c)), O = z(() => t.appendTo || i.value), C = z(() => {
6920
6921
  var L;
6921
6922
  return (L = t.style) != null ? L : {};
6922
- }), N = M(!0), C = () => {
6923
- f(), oe() && it(document.body), N.value = !0;
6924
- }, k = () => {
6925
- if (b(u))
6923
+ }), S = M(!0), R = () => {
6924
+ f(), oe() && it(document.body), S.value = !0;
6925
+ }, A = () => {
6926
+ if (_(u))
6926
6927
  return !0;
6927
- }, A = nt(k, () => {
6928
- t.enterable && b(d) === "hover" && m();
6929
- }), H = nt(k, () => {
6930
- b(d) === "hover" && h();
6931
- }), X = () => {
6928
+ }, N = nt(A, () => {
6929
+ t.enterable && _(d) === "hover" && m();
6930
+ }), F = nt(A, () => {
6931
+ _(d) === "hover" && h();
6932
+ }), Z = () => {
6932
6933
  var L, re;
6933
- (re = (L = r.value) == null ? void 0 : L.updatePopper) == null || re.call(L), x?.();
6934
- }, ne = () => {
6935
- w?.();
6936
- }, pe = () => {
6934
+ (re = (L = r.value) == null ? void 0 : L.updatePopper) == null || re.call(L), E?.();
6935
+ }, ie = () => {
6936
+ k?.();
6937
+ }, fe = () => {
6937
6938
  g();
6938
- }, Q = () => {
6939
+ }, ne = () => {
6939
6940
  t.virtualTriggering || h();
6940
6941
  }, oe = (L) => {
6941
6942
  var re;
6942
- const Ie = (re = r.value) == null ? void 0 : re.popperContentRef, J = L?.relatedTarget || document.activeElement;
6943
- return Ie?.contains(J);
6943
+ const Pe = (re = r.value) == null ? void 0 : re.popperContentRef, Q = L?.relatedTarget || document.activeElement;
6944
+ return Pe?.contains(Q);
6944
6945
  };
6945
- return V(() => b(c), (L) => {
6946
- L ? (N.value = !1, a = sd(o, () => {
6947
- if (b(u))
6946
+ return V(() => _(c), (L) => {
6947
+ L ? (S.value = !1, a = sd(o, () => {
6948
+ if (_(u))
6948
6949
  return;
6949
- b(d) !== "hover" && h();
6950
+ _(d) !== "hover" && h();
6950
6951
  })) : a?.();
6951
6952
  }, {
6952
6953
  flush: "post"
@@ -6956,29 +6957,29 @@ const Mp = Si(Lp), Jo = () => {
6956
6957
  }), e({
6957
6958
  contentRef: r,
6958
6959
  isFocusInsideContent: oe
6959
- }), (L, re) => (D(), ie(b(Mp), {
6960
+ }), (L, re) => (I(), te(_(Mp), {
6960
6961
  disabled: !L.teleported,
6961
- to: b(P)
6962
+ to: _(O)
6962
6963
  }, {
6963
6964
  default: j(() => [
6964
- b(y) || !N.value ? (D(), ie(Yr, {
6965
+ _(b) || !S.value ? (I(), te(Yr, {
6965
6966
  key: 0,
6966
- name: b(S),
6967
- appear: !b(_),
6968
- onAfterLeave: C,
6969
- onBeforeEnter: X,
6970
- onAfterEnter: pe,
6971
- onBeforeLeave: ne,
6967
+ name: _(T),
6968
+ appear: !_(y),
6969
+ onAfterLeave: R,
6970
+ onBeforeEnter: Z,
6971
+ onAfterEnter: fe,
6972
+ onBeforeLeave: ie,
6972
6973
  persisted: ""
6973
6974
  }, {
6974
6975
  default: j(() => [
6975
- at(Z(b(bp), Rt({
6976
- id: b(l),
6976
+ at(X(_(_p), Rt({
6977
+ id: _(l),
6977
6978
  ref_key: "contentRef",
6978
6979
  ref: r
6979
6980
  }, L.$attrs, {
6980
6981
  "aria-label": L.ariaLabel,
6981
- "aria-hidden": N.value,
6982
+ "aria-hidden": S.value,
6982
6983
  "boundaries-padding": L.boundariesPadding,
6983
6984
  "fallback-placements": L.fallbackPlacements,
6984
6985
  "gpu-acceleration": L.gpuAcceleration,
@@ -6991,22 +6992,22 @@ const Mp = Si(Lp), Jo = () => {
6991
6992
  enterable: L.enterable,
6992
6993
  pure: L.pure,
6993
6994
  "popper-class": L.popperClass,
6994
- "popper-style": [L.popperStyle, b(R)],
6995
+ "popper-style": [L.popperStyle, _(C)],
6995
6996
  "reference-el": L.referenceEl,
6996
6997
  "trigger-target-el": L.triggerTargetEl,
6997
- visible: b(E),
6998
+ visible: _(w),
6998
6999
  "z-index": L.zIndex,
6999
- onMouseenter: b(A),
7000
- onMouseleave: b(H),
7001
- onBlur: Q,
7002
- onClose: b(h)
7000
+ onMouseenter: _(N),
7001
+ onMouseleave: _(F),
7002
+ onBlur: ne,
7003
+ onClose: _(h)
7003
7004
  }), {
7004
7005
  default: j(() => [
7005
7006
  ce(L.$slots, "default")
7006
7007
  ]),
7007
7008
  _: 3
7008
7009
  }, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "arrow-offset", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "onMouseenter", "onMouseleave", "onClose"]), [
7009
- [vi, b(E)]
7010
+ [vi, _(w)]
7010
7011
  ])
7011
7012
  ]),
7012
7013
  _: 3
@@ -7027,9 +7028,9 @@ const Up = q({
7027
7028
  const i = n;
7028
7029
  $p();
7029
7030
  const s = mt("tooltip"), r = Td(), o = M(), a = M(), u = () => {
7030
- var _;
7031
- const y = b(o);
7032
- y && ((_ = y.popperInstanceRef) == null || _.update());
7031
+ var y;
7032
+ const b = _(o);
7033
+ b && ((y = b.popperInstanceRef) == null || y.update());
7033
7034
  }, l = M(!1), c = M(), { show: d, hide: h, hasUpdateHandler: m } = Rp({
7034
7035
  indicator: l,
7035
7036
  toggleReason: c
@@ -7039,16 +7040,16 @@ const Up = q({
7039
7040
  autoClose: di(i, "autoClose"),
7040
7041
  open: d,
7041
7042
  close: h
7042
- }), x = $(() => wo(i.visible) && !m.value), w = $(() => [s.b(), i.popperClass]);
7043
+ }), E = z(() => wo(i.visible) && !m.value), k = z(() => [s.b(), i.popperClass]);
7043
7044
  kt(ks, {
7044
- controlled: x,
7045
+ controlled: E,
7045
7046
  id: r,
7046
7047
  open: qr(l),
7047
7048
  trigger: di(i, "trigger"),
7048
7049
  onOpen: g,
7049
7050
  onClose: f,
7050
- onToggle: (_) => {
7051
- b(l) ? f(_) : g(_);
7051
+ onToggle: (y) => {
7052
+ _(l) ? f(y) : g(y);
7052
7053
  },
7053
7054
  onShow: () => {
7054
7055
  t("show", c.value);
@@ -7063,78 +7064,78 @@ const Up = q({
7063
7064
  t("before-hide", c.value);
7064
7065
  },
7065
7066
  updatePopper: u
7066
- }), V(() => i.disabled, (_) => {
7067
- _ && l.value && (l.value = !1);
7067
+ }), V(() => i.disabled, (y) => {
7068
+ y && l.value && (l.value = !1);
7068
7069
  });
7069
- const S = (_) => {
7070
- var y;
7071
- return (y = a.value) == null ? void 0 : y.isFocusInsideContent(_);
7070
+ const T = (y) => {
7071
+ var b;
7072
+ return (b = a.value) == null ? void 0 : b.isFocusInsideContent(y);
7072
7073
  };
7073
- return ba(() => l.value && h()), e({
7074
+ return _a(() => l.value && h()), e({
7074
7075
  popperRef: o,
7075
7076
  contentRef: a,
7076
- isFocusInsideContent: S,
7077
+ isFocusInsideContent: T,
7077
7078
  updatePopper: u,
7078
7079
  onOpen: g,
7079
7080
  onClose: f,
7080
7081
  hide: h
7081
- }), (_, y) => (D(), ie(b(wp), {
7082
+ }), (y, b) => (I(), te(_(wp), {
7082
7083
  ref_key: "popperRef",
7083
7084
  ref: o,
7084
- role: _.role
7085
+ role: y.role
7085
7086
  }, {
7086
7087
  default: j(() => [
7087
- Z(Ip, {
7088
- disabled: _.disabled,
7089
- trigger: _.trigger,
7090
- "trigger-keys": _.triggerKeys,
7091
- "virtual-ref": _.virtualRef,
7092
- "virtual-triggering": _.virtualTriggering
7088
+ X(Pp, {
7089
+ disabled: y.disabled,
7090
+ trigger: y.trigger,
7091
+ "trigger-keys": y.triggerKeys,
7092
+ "virtual-ref": y.virtualRef,
7093
+ "virtual-triggering": y.virtualTriggering
7093
7094
  }, {
7094
7095
  default: j(() => [
7095
- _.$slots.default ? ce(_.$slots, "default", { key: 0 }) : We("v-if", !0)
7096
+ y.$slots.default ? ce(y.$slots, "default", { key: 0 }) : We("v-if", !0)
7096
7097
  ]),
7097
7098
  _: 3
7098
7099
  }, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]),
7099
- Z(Bp, {
7100
+ X(Bp, {
7100
7101
  ref_key: "contentRef",
7101
7102
  ref: a,
7102
- "aria-label": _.ariaLabel,
7103
- "boundaries-padding": _.boundariesPadding,
7104
- content: _.content,
7105
- disabled: _.disabled,
7106
- effect: _.effect,
7107
- enterable: _.enterable,
7108
- "fallback-placements": _.fallbackPlacements,
7109
- "hide-after": _.hideAfter,
7110
- "gpu-acceleration": _.gpuAcceleration,
7111
- offset: _.offset,
7112
- persistent: _.persistent,
7113
- "popper-class": b(w),
7114
- "popper-style": _.popperStyle,
7115
- placement: _.placement,
7116
- "popper-options": _.popperOptions,
7117
- "arrow-offset": _.arrowOffset,
7118
- pure: _.pure,
7119
- "raw-content": _.rawContent,
7120
- "reference-el": _.referenceEl,
7121
- "trigger-target-el": _.triggerTargetEl,
7122
- "show-after": _.showAfter,
7123
- strategy: _.strategy,
7124
- teleported: _.teleported,
7125
- transition: _.transition,
7126
- "virtual-triggering": _.virtualTriggering,
7127
- "z-index": _.zIndex,
7128
- "append-to": _.appendTo
7103
+ "aria-label": y.ariaLabel,
7104
+ "boundaries-padding": y.boundariesPadding,
7105
+ content: y.content,
7106
+ disabled: y.disabled,
7107
+ effect: y.effect,
7108
+ enterable: y.enterable,
7109
+ "fallback-placements": y.fallbackPlacements,
7110
+ "hide-after": y.hideAfter,
7111
+ "gpu-acceleration": y.gpuAcceleration,
7112
+ offset: y.offset,
7113
+ persistent: y.persistent,
7114
+ "popper-class": _(k),
7115
+ "popper-style": y.popperStyle,
7116
+ placement: y.placement,
7117
+ "popper-options": y.popperOptions,
7118
+ "arrow-offset": y.arrowOffset,
7119
+ pure: y.pure,
7120
+ "raw-content": y.rawContent,
7121
+ "reference-el": y.referenceEl,
7122
+ "trigger-target-el": y.triggerTargetEl,
7123
+ "show-after": y.showAfter,
7124
+ strategy: y.strategy,
7125
+ teleported: y.teleported,
7126
+ transition: y.transition,
7127
+ "virtual-triggering": y.virtualTriggering,
7128
+ "z-index": y.zIndex,
7129
+ "append-to": y.appendTo
7129
7130
  }, {
7130
7131
  default: j(() => [
7131
- ce(_.$slots, "content", {}, () => [
7132
- _.rawContent ? (D(), W("span", {
7132
+ ce(y.$slots, "content", {}, () => [
7133
+ y.rawContent ? (I(), W("span", {
7133
7134
  key: 0,
7134
- innerHTML: _.content
7135
- }, null, 8, ["innerHTML"])) : (D(), W("span", { key: 1 }, lt(_.content), 1))
7135
+ innerHTML: y.content
7136
+ }, null, 8, ["innerHTML"])) : (I(), W("span", { key: 1 }, lt(y.content), 1))
7136
7137
  ]),
7137
- _.showArrow ? (D(), ie(b(Ld), { key: 0 })) : We("v-if", !0)
7138
+ y.showArrow ? (I(), te(_(Ld), { key: 0 })) : We("v-if", !0)
7138
7139
  ]),
7139
7140
  _: 3
7140
7141
  }, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "arrow-offset", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"])
@@ -7174,7 +7175,7 @@ const ea = Si(Gp), jp = ke({
7174
7175
  props: jp,
7175
7176
  emits: Vp,
7176
7177
  setup(n, { emit: e }) {
7177
- const t = n, i = Cd(), s = mt("tag"), r = $(() => {
7178
+ const t = n, i = Cd(), s = mt("tag"), r = z(() => {
7178
7179
  const { type: l, hit: c, effect: d, closable: h, round: m } = t;
7179
7180
  return [
7180
7181
  s.b(),
@@ -7193,51 +7194,51 @@ const ea = Si(Gp), jp = ke({
7193
7194
  var c, d, h;
7194
7195
  (h = (d = (c = l?.component) == null ? void 0 : c.subTree) == null ? void 0 : d.component) != null && h.bum && (l.component.subTree.component.bum = null);
7195
7196
  };
7196
- return (l, c) => l.disableTransitions ? (D(), W("span", {
7197
+ return (l, c) => l.disableTransitions ? (I(), W("span", {
7197
7198
  key: 0,
7198
- class: st(b(r)),
7199
+ class: st(_(r)),
7199
7200
  style: Dn({ backgroundColor: l.color }),
7200
7201
  onClick: a
7201
7202
  }, [
7202
7203
  U("span", {
7203
- class: st(b(s).e("content"))
7204
+ class: st(_(s).e("content"))
7204
7205
  }, [
7205
7206
  ce(l.$slots, "default")
7206
7207
  ], 2),
7207
- l.closable ? (D(), ie(b(xr), {
7208
+ l.closable ? (I(), te(_(xr), {
7208
7209
  key: 0,
7209
- class: st(b(s).e("close")),
7210
+ class: st(_(s).e("close")),
7210
7211
  onClick: Hs(o, ["stop"])
7211
7212
  }, {
7212
7213
  default: j(() => [
7213
- Z(b(In))
7214
+ X(_(Pn))
7214
7215
  ]),
7215
7216
  _: 1
7216
7217
  }, 8, ["class", "onClick"])) : We("v-if", !0)
7217
- ], 6)) : (D(), ie(Yr, {
7218
+ ], 6)) : (I(), te(Yr, {
7218
7219
  key: 1,
7219
- name: `${b(s).namespace.value}-zoom-in-center`,
7220
+ name: `${_(s).namespace.value}-zoom-in-center`,
7220
7221
  appear: "",
7221
7222
  onVnodeMounted: u
7222
7223
  }, {
7223
7224
  default: j(() => [
7224
7225
  U("span", {
7225
- class: st(b(r)),
7226
+ class: st(_(r)),
7226
7227
  style: Dn({ backgroundColor: l.color }),
7227
7228
  onClick: a
7228
7229
  }, [
7229
7230
  U("span", {
7230
- class: st(b(s).e("content"))
7231
+ class: st(_(s).e("content"))
7231
7232
  }, [
7232
7233
  ce(l.$slots, "default")
7233
7234
  ], 2),
7234
- l.closable ? (D(), ie(b(xr), {
7235
+ l.closable ? (I(), te(_(xr), {
7235
7236
  key: 0,
7236
- class: st(b(s).e("close")),
7237
+ class: st(_(s).e("close")),
7237
7238
  onClick: Hs(o, ["stop"])
7238
7239
  }, {
7239
7240
  default: j(() => [
7240
- Z(b(In))
7241
+ X(_(Pn))
7241
7242
  ]),
7242
7243
  _: 1
7243
7244
  }, 8, ["class", "onClick"])) : We("v-if", !0)
@@ -7261,10 +7262,10 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7261
7262
  exclude: {}
7262
7263
  },
7263
7264
  setup(n) {
7264
- const e = n, t = Kt(), i = $(() => ({ ...t.Filters })), s = $(() => {
7265
+ const e = n, t = Kt(), i = z(() => ({ ...t.Filters })), s = z(() => {
7265
7266
  const l = i.value;
7266
7267
  return Object.keys(l).map((c) => ({ key: c, value: l[c] })).filter(({ value: c }) => !(c == null || typeof c == "string" && c.trim() === "" || Array.isArray(c) && c.length === 0));
7267
- }), r = $(() => {
7268
+ }), r = z(() => {
7268
7269
  const l = new Set(e.exclude ?? []), c = s.value.filter((d) => !l.has(d.key));
7269
7270
  if (e.order?.length) {
7270
7271
  const d = new Map(e.order.map((h, m) => [h, m]));
@@ -7287,15 +7288,16 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7287
7288
  t.resetFilters({});
7288
7289
  }
7289
7290
  return (l, c) => {
7290
- const d = ge("el-icon"), h = ge("el-row");
7291
- return D(), ie(h, {
7292
- class: "filter-wrapper",
7291
+ const d = me("el-icon"), h = me("el-row");
7292
+ return I(), te(h, {
7293
+ class: "filter-wrapper tw-m-1",
7293
7294
  align: "middle",
7294
7295
  justify: "space-between"
7295
7296
  }, {
7296
7297
  default: j(() => [
7297
7298
  U("div", Zp, [
7298
- r.value.length ? (D(!0), W(ht, { key: 0 }, mi(r.value, (m) => (D(), ie(b(Xp), {
7299
+ r.value.length ? (I(!0), W(ht, { key: 0 }, mi(r.value, (m) => (I(), te(_(Xp), {
7300
+ class: "color-background",
7299
7301
  key: m.key,
7300
7302
  closable: "",
7301
7303
  onClose: (g) => a(m.key),
@@ -7307,20 +7309,20 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7307
7309
  U("span", Jp, lt(o(m.value)), 1)
7308
7310
  ]),
7309
7311
  _: 2
7310
- }, 1032, ["onClose"]))), 128)) : (D(), W("span", ef, "No filters"))
7312
+ }, 1032, ["onClose"]))), 128)) : (I(), W("span", ef, "No filters"))
7311
7313
  ]),
7312
- r.value.length ? (D(), W("div", tf, [
7313
- Z(b(ea), {
7314
+ r.value.length ? (I(), W("div", tf, [
7315
+ X(_(ea), {
7314
7316
  placement: "top-start",
7315
7317
  content: "Clear All Filters"
7316
7318
  }, {
7317
7319
  default: j(() => [
7318
- Z(d, {
7320
+ X(d, {
7319
7321
  color: "#FFFF",
7320
7322
  onClick: u
7321
7323
  }, {
7322
7324
  default: j(() => [
7323
- Z(b(ka))
7325
+ X(_(ka))
7324
7326
  ]),
7325
7327
  _: 1
7326
7328
  })
@@ -7333,7 +7335,7 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7333
7335
  });
7334
7336
  };
7335
7337
  }
7336
- }), sf = /* @__PURE__ */ Ct(nf, [["__scopeId", "data-v-7bc31135"]]), rf = {
7338
+ }), sf = /* @__PURE__ */ Ct(nf, [["__scopeId", "data-v-6ce6db0c"]]), rf = {
7337
7339
  key: 0,
7338
7340
  class: "content-header dash-header-visible stick-to-top tw-flex tw-flex-row tw-items-center tw-justify-between tw-h-10"
7339
7341
  }, of = { class: "editing-div" }, af = { class: "tw-m-4 tw-leading-none tw-pl-1 widget-name" }, lf = { class: "header-slot-icon" }, uf = {
@@ -7370,19 +7372,19 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7370
7372
  u.componentName = i;
7371
7373
  }
7372
7374
  return (u, l) => {
7373
- const c = ge("el-input"), d = jr("click-out");
7374
- return n.hideHeader ? (D(), W("div", uf, [
7375
+ const c = me("el-input"), d = jr("click-out");
7376
+ return n.hideHeader ? (I(), W("div", uf, [
7375
7377
  U("div", cf, [
7376
7378
  ce(u.$slots, "default", {}, void 0, !0)
7377
7379
  ])
7378
- ])) : (D(), W("div", rf, [
7380
+ ])) : (I(), W("div", rf, [
7379
7381
  U("div", null, [
7380
- at((D(), W("div", {
7382
+ at((I(), W("div", {
7381
7383
  onKeyup: Vr(a, ["enter"]),
7382
7384
  class: "tw-flex"
7383
7385
  }, [
7384
7386
  at(U("div", of, [
7385
- Z(c, {
7387
+ X(c, {
7386
7388
  onFocus: l[0] || (l[0] = (h) => h.target.select()),
7387
7389
  ref_key: "textUserInput",
7388
7390
  ref: r,
@@ -7460,13 +7462,13 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7460
7462
  });
7461
7463
  }
7462
7464
  return (u, l) => {
7463
- const c = ge("el-icon");
7464
- return D(), W("div", {
7465
+ const c = me("el-icon");
7466
+ return I(), W("div", {
7465
7467
  ref_key: "instance",
7466
7468
  ref: s,
7467
7469
  class: st(["grid-stack-item-content", { "locked-widget": n.isLocked }])
7468
7470
  }, [
7469
- (D(), ie(Fs(n.componentTag), Rt({
7471
+ (I(), te(Fs(n.componentTag), Rt({
7470
7472
  class: ["widget-body", { "widget-body-no-head": o.value }],
7471
7473
  widgetID: n.widgetID,
7472
7474
  hideHeader: o.value
@@ -7475,7 +7477,7 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7475
7477
  isLocked: r.value
7476
7478
  }), {
7477
7479
  default: j((d) => [
7478
- d ? (D(), ie(hf, {
7480
+ d ? (I(), te(hf, {
7479
7481
  key: 0,
7480
7482
  widgetName: i.componentName,
7481
7483
  widgetID: n.widgetID,
@@ -7484,34 +7486,34 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7484
7486
  }, {
7485
7487
  default: j(() => [
7486
7488
  U("div", pf, [
7487
- (D(!0), W(ht, null, mi(d.childIcons, (h) => (D(), ie(b(ea), { placement: "bottom-start" }, {
7489
+ (I(!0), W(ht, null, mi(d.childIcons, (h) => (I(), te(_(ea), { placement: "bottom-start" }, {
7488
7490
  content: j(() => [
7489
7491
  Bt(lt(h.tooltip), 1)
7490
7492
  ]),
7491
7493
  default: j(() => [
7492
- (D(), ie(Fs(h.comp), {
7494
+ (I(), te(Fs(h.comp), {
7493
7495
  class: "tw-w-4 header-icon",
7494
7496
  onClick: h.event
7495
7497
  }, null, 8, ["onClick"]))
7496
7498
  ]),
7497
7499
  _: 2
7498
7500
  }, 1024))), 256)),
7499
- Z(c, {
7501
+ X(c, {
7500
7502
  class: "header-icon lock-toggle",
7501
7503
  onClick: l[0] || (l[0] = (h) => a())
7502
7504
  }, {
7503
7505
  default: j(() => [
7504
- r.value ? (D(), ie(b(Ca), { key: 0 })) : (D(), ie(b(Oa), { key: 1 }))
7506
+ r.value ? (I(), te(_(Ca), { key: 0 })) : (I(), te(_(Oa), { key: 1 }))
7505
7507
  ]),
7506
7508
  _: 1
7507
7509
  }),
7508
- !n.staticMode && !n.isLocked ? (D(), ie(c, {
7510
+ !n.staticMode && !n.isLocked ? (I(), te(c, {
7509
7511
  key: 0,
7510
7512
  class: "item-widget-button",
7511
7513
  onClick: l[1] || (l[1] = (h) => u.$emit("removeWidget"))
7512
7514
  }, {
7513
7515
  default: j(() => [
7514
- Z(b(In))
7516
+ X(_(Pn))
7515
7517
  ]),
7516
7518
  _: 1
7517
7519
  })) : We("", !0)
@@ -7528,10 +7530,10 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7528
7530
  }, gf = /* @__PURE__ */ Ct(ff, [["__scopeId", "data-v-a09963e5"]]), mf = { class: "dashboard-app" }, vf = {
7529
7531
  key: 0,
7530
7532
  class: "dash-header tw-max-h-screen tw-flex tw-flex-col"
7531
- }, yf = { class: "tw-float-left tw-m-1 button" }, _f = {
7533
+ }, yf = { class: "tw-float-left tw-m-1 button" }, bf = {
7532
7534
  key: 1,
7533
7535
  class: "tw-h-10 dash-header"
7534
- }, bf = { class: "tw-float-left tw-m-1" }, wf = { class: "tw-m-4 tw-w-40" }, Ef = ["gs-x", "gs-y", "gs-w", "gs-h", "gs-id", "id", "props", "gs-locked", "gs-no-move", "gs-no-resize"], xf = /* @__PURE__ */ q({
7536
+ }, _f = { class: "tw-float-left tw-m-1" }, wf = { class: "tw-m-4 tw-w-40" }, Ef = ["gs-x", "gs-y", "gs-w", "gs-h", "gs-id", "id", "props", "gs-locked", "gs-no-move", "gs-no-resize"], xf = /* @__PURE__ */ q({
7535
7537
  __name: "Dashboard",
7536
7538
  props: {
7537
7539
  hideHeader: {},
@@ -7539,13 +7541,13 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7539
7541
  },
7540
7542
  setup(n) {
7541
7543
  const e = n, t = Kt(), { DASHBOARD_ITEMS: i } = Wi(t), s = {
7542
- apiUrl: $(() => t.Services?.ApiUrl),
7543
- filters: t.filters,
7544
+ apiUrl: z(() => t.Services?.ApiUrl),
7545
+ filters: z(() => t.Filters),
7544
7546
  setFilter: t.setFilter,
7545
7547
  clearFilter: t.clearFilter,
7546
7548
  resetFilters: t.resetFilters
7547
7549
  };
7548
- kt("GlobalVars", s);
7550
+ kt("dashboard:globalVars", s);
7549
7551
  let r = M("Edit Grid");
7550
7552
  const { gridInstance: o } = Wi(t), a = M(null);
7551
7553
  let u = M(!0), l = 0;
@@ -7559,7 +7561,7 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7559
7561
  t.DefaultLayout = e.options?.defaultLayout, t.setOptionServices(e.options?.services);
7560
7562
  }
7561
7563
  function g() {
7562
- const y = {
7564
+ const b = {
7563
7565
  float: !0,
7564
7566
  column: 12,
7565
7567
  cellHeight: "70px",
@@ -7570,114 +7572,114 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7570
7572
  handles: "e,se,s,sw,w,n"
7571
7573
  }
7572
7574
  };
7573
- o.value = F.init(y), o.value.setStatic(u.value);
7575
+ o.value = H.init(b), o.value.setStatic(u.value);
7574
7576
  }
7575
7577
  V(
7576
7578
  () => e.options?.availableWidgets,
7577
- (y) => {
7578
- d.value = {}, c.value = [], y && y.forEach((E, P) => {
7579
- let R, N;
7580
- if (E && typeof E == "object" && "name" in E && "component" in E)
7581
- R = E.name, N = E.component;
7582
- else if (E && typeof E == "object" && "name" in E && "loader" in E)
7583
- R = E.name, N = wa(async () => {
7584
- const C = await E.loader();
7585
- return C.default ?? C;
7579
+ (b) => {
7580
+ d.value = {}, c.value = [], b && b.forEach((w, O) => {
7581
+ let C, S;
7582
+ if (w && typeof w == "object" && "name" in w && "component" in w)
7583
+ C = w.name, S = w.component;
7584
+ else if (w && typeof w == "object" && "name" in w && "loader" in w)
7585
+ C = w.name, S = wa(async () => {
7586
+ const R = await w.loader();
7587
+ return R.default ?? R;
7586
7588
  });
7587
- else if (E && (typeof E == "function" || typeof E == "object"))
7588
- console.log(E), N = E, R = E.name || `Widget${P + 1}`;
7589
- else if (typeof E == "function")
7589
+ else if (w && (typeof w == "function" || typeof w == "object"))
7590
+ S = w, C = w.name || `Widget${O + 1}`;
7591
+ else if (typeof w == "function")
7590
7592
  return;
7591
- !R || !N || d.value[R] || (d.value[R] = N, c.value.push(R));
7593
+ !C || !S || d.value[C] || (d.value[C] = S, c.value.push(C));
7592
7594
  });
7593
7595
  },
7594
7596
  { immediate: !0, deep: !0 }
7595
7597
  );
7596
7598
  function f() {
7597
- const y = e.options.globalData;
7598
- if (y) {
7599
+ const b = e.options.globalData;
7600
+ if (b) {
7599
7601
  t.clearOptionsDataItems();
7600
- for (const E in y)
7601
- t.addOptionsDataItems(E, y[E]);
7602
+ for (const w in b)
7603
+ t.addOptionsDataItems(w, b[w]);
7602
7604
  }
7603
7605
  }
7604
- V(() => u.value, (y) => {
7605
- o.value.setStatic(y), r.value = y ? "Edit Grid" : "Save Grid";
7606
+ V(() => u.value, (b) => {
7607
+ o.value.setStatic(b), r.value = b ? "Edit Grid" : "Save Grid";
7606
7608
  });
7607
- function x(y) {
7608
- if (!y)
7609
+ function E(b) {
7610
+ if (!b)
7609
7611
  return;
7610
- const E = `${y}-${l}`, P = {
7611
- id: E,
7612
+ const w = `${b}-${l}`, O = {
7613
+ id: w,
7612
7614
  w: 2,
7613
7615
  h: 6,
7614
7616
  autoPosition: !0,
7615
- component: d.value[y],
7616
- componentKey: y,
7617
- componentName: y,
7617
+ component: d.value[b],
7618
+ componentKey: b,
7619
+ componentName: b,
7618
7620
  Props: {}
7619
7621
  };
7620
- l++, i.value.push(P), Pn(() => {
7621
- o.value?.makeWidget(`#${E}`);
7622
+ l++, i.value.push(O), In(() => {
7623
+ o.value?.makeWidget(`#${w}`);
7622
7624
  });
7623
7625
  }
7624
- function w(y) {
7625
- var E = i.value.findIndex((R) => R.id == y);
7626
- i.value.splice(E, 1);
7627
- const P = `#${y}`;
7628
- o.value.removeWidget(P, !1);
7626
+ function k(b) {
7627
+ var w = i.value.findIndex((C) => C.id == b);
7628
+ i.value.splice(w, 1);
7629
+ const O = `#${b}`;
7630
+ o.value.removeWidget(O, !1);
7629
7631
  }
7630
- function S({ id: y, isLocked: E }) {
7631
- const P = h[y];
7632
- P && o.value && o.value.update(P, {
7633
- locked: !E,
7634
- noMove: !E,
7635
- noResize: !E
7636
- }), t.toggleWidgetLock(y);
7632
+ function T({ id: b, isLocked: w }) {
7633
+ const O = h[b];
7634
+ O && o.value && o.value.update(O, {
7635
+ locked: !w,
7636
+ noMove: !w,
7637
+ noResize: !w
7638
+ }), t.toggleWidgetLock(b);
7637
7639
  }
7638
- function _() {
7640
+ function y() {
7639
7641
  u.value = !u.value, u.value && t.saveToLocalStorage();
7640
7642
  }
7641
- return (y, E) => {
7642
- const P = ge("el-button"), R = ge("el-option"), N = ge("el-select"), C = ge("el-col");
7643
- return D(), W("div", mf, [
7644
- y.hideHeader ? (D(), W("div", _f, [
7645
- E[2] || (E[2] = Bt("x ", -1)),
7646
- U("span", bf, [
7647
- Z(P, {
7643
+ return (b, w) => {
7644
+ const O = me("el-button"), C = me("el-option"), S = me("el-select"), R = me("el-col");
7645
+ return I(), W("div", mf, [
7646
+ b.hideHeader ? (I(), W("div", bf, [
7647
+ w[2] || (w[2] = Bt("x ", -1)),
7648
+ U("span", _f, [
7649
+ X(O, {
7648
7650
  class: "edit-button",
7649
- onClick: E[1] || (E[1] = (k) => _())
7651
+ onClick: w[1] || (w[1] = (A) => y())
7650
7652
  }, {
7651
7653
  default: j(() => [
7652
- Bt(lt(b(r)), 1)
7654
+ Bt(lt(_(r)), 1)
7653
7655
  ]),
7654
7656
  _: 1
7655
7657
  })
7656
7658
  ])
7657
- ])) : (D(), W("div", vf, [
7659
+ ])) : (I(), W("div", vf, [
7658
7660
  U("span", yf, [
7659
- Z(P, {
7661
+ X(O, {
7660
7662
  class: "edit-button",
7661
- onClick: E[0] || (E[0] = (k) => _())
7663
+ onClick: w[0] || (w[0] = (A) => y())
7662
7664
  }, {
7663
7665
  default: j(() => [
7664
- Bt(lt(b(r)), 1)
7666
+ Bt(lt(_(r)), 1)
7665
7667
  ]),
7666
7668
  _: 1
7667
7669
  })
7668
7670
  ]),
7669
- Z(sf)
7671
+ X(sf)
7670
7672
  ])),
7671
- b(u) ? We("", !0) : (D(), ie(C, { key: 2 }, {
7673
+ _(u) ? We("", !0) : (I(), te(R, { key: 2 }, {
7672
7674
  default: j(() => [
7673
7675
  U("div", wf, [
7674
- Z(N, { placeholder: "Add New Widget" }, {
7676
+ X(S, { placeholder: "Add New Widget" }, {
7675
7677
  default: j(() => [
7676
- (D(!0), W(ht, null, mi(c.value, (k) => (D(), ie(R, {
7677
- key: k,
7678
- label: k,
7679
- value: k,
7680
- onClick: (A) => x(k)
7678
+ (I(!0), W(ht, null, mi(c.value, (A) => (I(), te(C, {
7679
+ key: A,
7680
+ label: A,
7681
+ value: A,
7682
+ onClick: (N) => E(A)
7681
7683
  }, null, 8, ["label", "value", "onClick"]))), 128))
7682
7684
  ]),
7683
7685
  _: 1
@@ -7691,39 +7693,39 @@ const Xp = Si(Yp), Zp = { class: "tw-flex tw-flex-row tw-flex-wrap tw-gap-2" },
7691
7693
  ref: a,
7692
7694
  class: "grid-stack tw-h-screen"
7693
7695
  }, [
7694
- (D(!0), W(ht, null, mi(b(i), (k) => (D(), W("div", {
7696
+ (I(!0), W(ht, null, mi(_(i), (A) => (I(), W("div", {
7695
7697
  class: "grid-stack-item",
7696
7698
  ref_for: !0,
7697
- ref: (A) => h[k.id] = A,
7698
- "gs-x": k.x,
7699
- "gs-y": k.y,
7700
- "gs-w": k.w,
7701
- "gs-h": k.h,
7702
- "gs-id": k.id,
7703
- id: k.id,
7704
- key: k.id,
7705
- props: k.Props,
7706
- "gs-locked": k.Props?.locked,
7707
- "gs-no-move": k.Props?.locked,
7708
- "gs-no-resize": k.Props?.locked
7699
+ ref: (N) => h[A.id] = N,
7700
+ "gs-x": A.x,
7701
+ "gs-y": A.y,
7702
+ "gs-w": A.w,
7703
+ "gs-h": A.h,
7704
+ "gs-id": A.id,
7705
+ id: A.id,
7706
+ key: A.id,
7707
+ props: A.Props,
7708
+ "gs-locked": A.Props?.locked,
7709
+ "gs-no-move": A.Props?.locked,
7710
+ "gs-no-resize": A.Props?.locked
7709
7711
  }, [
7710
- Z(gf, {
7711
- widgetID: k.id,
7712
- onRemoveWidget: (A) => w(k.id),
7713
- onToggleLock: S,
7714
- "static-mode": b(u),
7715
- componentTag: k.component,
7716
- componentProperties: k.Props,
7717
- componentName: k.componentName,
7718
- hideWidgetsHeader: k.hideHeader,
7719
- "is-locked": k.Props?.locked
7712
+ X(gf, {
7713
+ widgetID: A.id,
7714
+ onRemoveWidget: (N) => k(A.id),
7715
+ onToggleLock: T,
7716
+ "static-mode": _(u),
7717
+ componentTag: A.component,
7718
+ componentProperties: A.Props,
7719
+ componentName: A.componentName,
7720
+ hideWidgetsHeader: A.hideHeader,
7721
+ "is-locked": A.Props?.locked
7720
7722
  }, null, 8, ["widgetID", "onRemoveWidget", "static-mode", "componentTag", "componentProperties", "componentName", "hideWidgetsHeader", "is-locked"])
7721
7723
  ], 8, Ef))), 128))
7722
7724
  ], 512)
7723
7725
  ]);
7724
7726
  };
7725
7727
  }
7726
- }), Of = /* @__PURE__ */ Ct(xf, [["__scopeId", "data-v-eb3a2a65"]]);
7728
+ }), Of = /* @__PURE__ */ Ct(xf, [["__scopeId", "data-v-9b73feb2"]]);
7727
7729
  export {
7728
7730
  Af as MarkdownWidget,
7729
7731
  Of as PennsieveDashboard,