@bobbykim/mcl-forms 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mcl-forms.js CHANGED
@@ -1,270 +1,483 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.switch[data-v-64ca2f25]{width:var(--switch-width);height:var(--switch-height)}.slider[data-v-64ca2f25]:before{content:"";height:var(--slider-size);width:var(--slider-size);left:var(--gutter-size);bottom:var(--gutter-size)}input:checked+.slider[data-v-64ca2f25]:before{-webkit-transform:translateX(var(--slider-size));-ms-transform:translateX(var(--slider-size));transform:translate(var(--slider-size))}.options-enter-active[data-v-dba14247],.options-leave-active[data-v-dba14247]{opacity:1;transition:opacity .3s linear,transform .3s linear}.options-enter-from[data-v-dba14247],.options-leave-to[data-v-dba14247]{opacity:0;transform:translateY(-10px)}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { defineComponent as xe, useSlots as en, computed as O, openBlock as $, createElementBlock as q, createElementVNode as M, renderSlot as st, normalizeClass as H, toDisplayString as ct, useModel as Ze, ref as Y, unref as Te, createCommentVNode as dt, mergeModels as Re, normalizeStyle as tn, withDirectives as qe, vModelCheckbox as rn, vModelDynamic as Dn, createBlock as nn, h as _n, shallowRef as Vn, watch as Ye, getCurrentScope as In, onScopeDispose as Mn, shallowReadonly as Ue, withKeys as yt, vModelText as on, createVNode as Bn, Transition as Fn, withCtx as Pn, Fragment as zn, renderList as Hn } from "vue";
3
- import { generateClass as R } from "@bobbykim/manguito-theme";
4
- import { useResizeObserver as $n } from "@vueuse/core";
5
- const Un = ["for"], Qa = /* @__PURE__ */ xe({
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.switch[data-v-784930f6]{width:var(--switch-width);height:var(--switch-height)}.slider[data-v-784930f6]:before{content:"";height:var(--slider-size);width:var(--slider-size);left:var(--gutter-size);bottom:var(--gutter-size)}input:checked+.slider[data-v-784930f6]:before{transform:translate(var(--slider-size))}.options-enter-active[data-v-2695c901],.options-leave-active[data-v-2695c901]{opacity:1;transition:opacity .3s linear,transform .3s linear}.options-enter-from[data-v-2695c901],.options-leave-to[data-v-2695c901]{opacity:0;transform:translateY(-10px)}.options-leave-active[data-v-2695c901]{pointer-events:none}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ import { defineComponent as de, openBlock as O, createElementBlock as D, renderSlot as ie, createElementVNode as H, toDisplayString as Ne, createCommentVNode as I, inject as qn, computed as S, toValue as ge, provide as jn, useId as Gn, useSlots as Yn, unref as d, normalizeClass as K, createTextVNode as Fr, createBlock as De, withCtx as Pe, useModel as We, ref as te, createVNode as St, mergeModels as pe, withDirectives as ze, vModelRadio as Xn, normalizeStyle as ar, vModelCheckbox as gn, vModelDynamic as Kn, h as Zn, shallowRef as Jn, watch as _e, getCurrentScope as Qn, onScopeDispose as eo, shallowReadonly as Ze, vModelText as pn, Transition as to, Fragment as ro, renderList as no } from "vue";
3
+ import { generateClass as P } from "@bobbykim/manguito-theme";
4
+ import { useResizeObserver as oo } from "@vueuse/core";
5
+ const io = ["id"], ao = { class: "text-xs text-danger" }, rt = /* @__PURE__ */ de({
6
+ __name: "FieldFeedback",
7
+ props: {
8
+ id: {},
9
+ invalid: { type: Boolean, default: !1 },
10
+ text: { default: "" }
11
+ },
12
+ setup(e) {
13
+ return (t, r) => e.invalid ? (O(), D("div", {
14
+ key: 0,
15
+ id: e.id,
16
+ role: "alert",
17
+ class: "ml-3xs"
18
+ }, [
19
+ ie(t.$slots, "default", {}, () => [
20
+ H("span", ao, Ne(e.text), 1)
21
+ ])
22
+ ], 8, io)) : I("", !0);
23
+ }
24
+ }), mn = /* @__PURE__ */ Symbol("mcl-field");
25
+ let lo = 0;
26
+ const Rt = (e) => e !== void 0 && e !== "" ? e : void 0, bn = (e) => Rt(e) ?? Rt(Gn()) ?? `mcl-field-${++lo}`, hn = (e, t, r) => S(() => {
27
+ const n = [];
28
+ return e && n.push(e), r.value && t !== void 0 && n.push(t), n.length > 0 ? n.join(" ") : void 0;
29
+ }), so = (e) => {
30
+ const t = bn(e.fieldId), r = S(() => ge(e.invalid) ?? !1), n = `${t}-error`, i = e.hasHelpText ? `${t}-description` : void 0, a = {
31
+ id: t,
32
+ // Defaulting name to the field id is what lets a radio group work without
33
+ // the consumer having to invent one.
34
+ name: S(() => ge(e.name) ?? t),
35
+ errorId: n,
36
+ descriptionId: i,
37
+ invalid: r,
38
+ required: S(() => ge(e.required) ?? !1),
39
+ disabled: S(() => ge(e.disabled) ?? !1),
40
+ describedBy: hn(i, n, r),
41
+ feedbackOwnedByGroup: e.ownsFeedback,
42
+ isGroupLabel: e.isGroupLabel
43
+ };
44
+ return jn(mn, a), a;
45
+ }, qe = (e, t) => {
46
+ const r = qn(mn, null), n = t?.rendersOwnFeedback ?? !0, i = bn(void 0), a = Rt(e.id), l = r !== null && !r.isGroupLabel ? Rt(r.id) : void 0, s = a ?? l ?? i, u = r?.feedbackOwnedByGroup ?? !1, c = u ? r.errorId : `${s}-error`, f = u || n, m = r?.descriptionId, g = S(
47
+ () => e.invalid ?? r?.invalid.value ?? !1
48
+ );
49
+ return {
50
+ id: s,
51
+ // No id fallback here on purpose: it would apply to all eight controls,
52
+ // making text/textarea/select/file emit a generated `name` into native
53
+ // form submissions where they previously emitted none, with no way to opt
54
+ // out. Grouped controls still inherit a usable name because the provider
55
+ // defaults its own `name` to the field id; a standalone radio supplies its
56
+ // own fallback in MclInputRadio, where it is actually needed.
57
+ name: S(() => e.name ?? ge(r?.name)),
58
+ errorId: c,
59
+ descriptionId: m,
60
+ invalid: g,
61
+ required: S(
62
+ () => e.required ?? r?.required.value ?? !1
63
+ ),
64
+ disabled: S(
65
+ () => e.disabled ?? r?.disabled.value ?? !1
66
+ ),
67
+ describedBy: hn(
68
+ m,
69
+ f ? c : void 0,
70
+ g
71
+ ),
72
+ feedbackOwnedByGroup: u,
73
+ // Reported truthfully, not hardcoded: this value is inert for
74
+ // provide/inject (a leaf never re-provides it), but the control's own
75
+ // template reads its own returned context, and a control inside a
76
+ // fieldset needs to know it — e.g. MclInputRadio renders differently as
77
+ // part of a set than alone. `false` here would be a lie it could act on.
78
+ isGroupLabel: r?.isGroupLabel ?? !1
79
+ };
80
+ }, co = {
81
+ key: 0,
82
+ class: "m-0 min-w-0 border-0 p-0"
83
+ }, uo = {
84
+ key: 0,
85
+ class: "inline-block"
86
+ }, fo = ["id"], go = { key: 1 }, po = ["for"], mo = ["id"], Bl = /* @__PURE__ */ de({
6
87
  __name: "MclFormGroup",
7
88
  props: {
8
- labelFor: {},
89
+ fieldId: {},
90
+ groupLabel: { type: Boolean, default: !1 },
91
+ label: {},
92
+ helpText: {},
93
+ invalidFeedback: {},
94
+ invalid: { type: Boolean, default: void 0 },
95
+ required: { type: Boolean, default: void 0 },
96
+ disabled: { type: Boolean, default: void 0 },
9
97
  textColor: { default: "dark-3" },
10
98
  textSize: { default: "md" },
11
- textBold: { type: Boolean, default: !1 },
12
- label: {}
99
+ textBold: { type: Boolean, default: !1 }
13
100
  },
14
101
  setup(e) {
15
- const t = e;
16
- en();
17
- const r = O(() => {
18
- const { textColor: n, textSize: i, textBold: a } = t, l = [
19
- R.textColorVariant({ color: n }),
20
- R.bodyTextVariant({ size: i })
102
+ const t = e, r = Yn(), n = r["invalid-feedback"] !== void 0, i = t.helpText !== void 0 || r.help !== void 0, a = t.invalidFeedback !== void 0 || n, l = t.groupLabel, s = so({
103
+ fieldId: t.fieldId,
104
+ invalid: () => t.invalid,
105
+ required: () => t.required,
106
+ disabled: () => t.disabled,
107
+ hasHelpText: i,
108
+ ownsFeedback: a,
109
+ isGroupLabel: l
110
+ }), u = S(() => {
111
+ const c = [
112
+ P.textColorVariant({ color: t.textColor }),
113
+ P.bodyTextVariant({ size: t.textSize })
21
114
  ];
22
- return a && l.push("font-bold"), l.join(" ");
115
+ return t.textBold && c.push("font-bold"), c.join(" ");
23
116
  });
24
- return (n, i) => ($(), q("div", null, [
25
- M("label", {
26
- for: e.labelFor,
117
+ return (c, f) => d(l) ? (O(), D("fieldset", co, [
118
+ e.label || c.$slots.label ? (O(), D("legend", uo, [
119
+ ie(c.$slots, "label", {}, () => [
120
+ H("span", {
121
+ class: K(["mb-2xs block", u.value])
122
+ }, Ne(e.label), 3)
123
+ ])
124
+ ])) : I("", !0),
125
+ d(i) ? (O(), D("p", {
126
+ key: 1,
127
+ id: d(s).descriptionId,
128
+ class: "mb-2xs text-xs"
129
+ }, [
130
+ ie(c.$slots, "help", {}, () => [
131
+ Fr(Ne(e.helpText), 1)
132
+ ])
133
+ ], 8, fo)) : I("", !0),
134
+ ie(c.$slots, "default"),
135
+ d(a) ? (O(), De(rt, {
136
+ key: 2,
137
+ id: d(s).errorId,
138
+ invalid: d(s).invalid.value,
139
+ text: e.invalidFeedback
140
+ }, {
141
+ default: Pe(() => [
142
+ n ? ie(c.$slots, "invalid-feedback", { key: 0 }) : I("", !0)
143
+ ]),
144
+ _: 3
145
+ }, 8, ["id", "invalid", "text"])) : I("", !0)
146
+ ])) : (O(), D("div", go, [
147
+ e.label || c.$slots.label ? (O(), D("label", {
148
+ key: 0,
149
+ for: d(s).id,
27
150
  class: "inline-block"
28
151
  }, [
29
- st(n.$slots, "label", {}, () => [
30
- M("p", {
31
- class: H(["mb-2xs", r.value])
32
- }, ct(e.label), 3)
152
+ ie(c.$slots, "label", {}, () => [
153
+ H("span", {
154
+ class: K(["mb-2xs block", u.value])
155
+ }, Ne(e.label), 3)
33
156
  ])
34
- ], 8, Un),
35
- st(n.$slots, "default")
157
+ ], 8, po)) : I("", !0),
158
+ d(i) ? (O(), D("p", {
159
+ key: 1,
160
+ id: d(s).descriptionId,
161
+ class: "mb-2xs text-xs"
162
+ }, [
163
+ ie(c.$slots, "help", {}, () => [
164
+ Fr(Ne(e.helpText), 1)
165
+ ])
166
+ ], 8, mo)) : I("", !0),
167
+ ie(c.$slots, "default"),
168
+ d(a) ? (O(), De(rt, {
169
+ key: 2,
170
+ id: d(s).errorId,
171
+ invalid: d(s).invalid.value,
172
+ text: e.invalidFeedback
173
+ }, {
174
+ default: Pe(() => [
175
+ n ? ie(c.$slots, "invalid-feedback", { key: 0 }) : I("", !0)
176
+ ]),
177
+ _: 3
178
+ }, 8, ["id", "invalid", "text"])) : I("", !0)
36
179
  ]));
37
180
  }
38
- }), Wn = { class: "my-3xs mr-xs ml-3xs shrink-0" }, jn = ["aria-controls"], Gn = ["id", "required", "accept"], el = /* @__PURE__ */ xe({
181
+ }), vn = /* @__PURE__ */ de({
182
+ __name: "XMark",
183
+ props: {
184
+ color: { default: "dark-4" },
185
+ className: { default: "" }
186
+ },
187
+ setup(e) {
188
+ const t = e, r = S(
189
+ () => [P.svgFillColorVariant({ color: t.color }), t.className].filter(Boolean).join(" ")
190
+ );
191
+ return (n, i) => (O(), D("svg", {
192
+ xmlns: "http://www.w3.org/2000/svg",
193
+ viewBox: "0 0 384 512",
194
+ "aria-hidden": "true",
195
+ focusable: "false",
196
+ class: K(r.value)
197
+ }, [...i[0] || (i[0] = [
198
+ H("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
199
+ ])], 2));
200
+ }
201
+ }), Dt = (e) => S(() => {
202
+ const { bgColor: t, textColor: r, borderColor: n, showBorder: i, showShadow: a, rounded: l } = e, s = e.showHighlight ?? !1, u = [
203
+ P.bgColorVariant({ color: t }),
204
+ P.textColorVariant({ color: r })
205
+ ];
206
+ return i && u.push(
207
+ "border-2",
208
+ P.borderColorVariant({ color: n })
209
+ ), s || u.push(
210
+ "focus-visible:ring-4 ring-offset-2 transition-all duration-300 ease-linear",
211
+ P.focusVisibleRingColorVariant({ color: n })
212
+ ), a && u.push("shadow-md"), l && u.push("rounded-md"), u.join(" ");
213
+ }), bo = { class: "my-3xs mr-xs ml-3xs shrink-0" }, ho = ["aria-controls", "disabled"], vo = ["id", "name", "accept", "required", "disabled", "aria-invalid", "aria-describedby"], xo = {
214
+ key: 0,
215
+ class: "my-3xs mr-3xs self-stretch"
216
+ }, yo = ["disabled"], Ml = /* @__PURE__ */ de({
39
217
  __name: "MclInputFile",
40
- props: /* @__PURE__ */ Re({
218
+ props: /* @__PURE__ */ pe({
41
219
  id: {},
220
+ name: {},
221
+ accept: { default: "image/jpg,image/jpeg,image/png" },
222
+ buttonText: { default: "Browse File" },
223
+ buttonTextColor: { default: "dark-3" },
224
+ buttonColor: { default: "light-4" },
42
225
  showBorder: { type: Boolean, default: !1 },
43
226
  borderColor: { default: "light-4" },
44
227
  rounded: { type: Boolean, default: !1 },
45
228
  bgColor: { default: "light-1" },
46
- buttonText: { default: "Browse File" },
47
- buttonTextColor: { default: "dark-3" },
48
- buttonColor: { default: "light-4" },
49
- showShadow: { type: Boolean, default: !0 },
50
229
  textColor: { default: "black" },
230
+ showShadow: { type: Boolean, default: !0 },
51
231
  showClear: { type: Boolean, default: !1 },
52
- required: { type: Boolean, default: !1 },
53
- accept: { default: "image/jpg,image/jpeg,image/png" }
232
+ invalidFeedback: {},
233
+ invalid: { type: Boolean, default: void 0 },
234
+ required: { type: Boolean, default: void 0 },
235
+ disabled: { type: Boolean, default: void 0 }
54
236
  }, {
55
237
  modelValue: {},
56
238
  modelModifiers: {}
57
239
  }),
58
240
  emits: ["update:modelValue"],
59
241
  setup(e) {
60
- const t = e, r = Ze(e, "modelValue"), n = Y(), i = Y(0), a = () => {
61
- n.value.click();
62
- }, l = (g) => {
63
- const u = g.target.files[0];
64
- r.value = u;
65
- }, d = () => {
66
- r.value = null, i.value++;
67
- }, p = O(() => {
68
- const { rounded: g, showBorder: u, borderColor: b, showShadow: w, bgColor: C } = t, v = [
69
- R.bgColorVariant({ color: C })
70
- ];
71
- return g && v.push("rounded-md"), u && (v.push("border-2"), v.push(R.borderColorVariant({ color: b }))), w && v.push("shadow-md"), v.join(" ");
72
- }), c = O(() => {
73
- const { textColor: g } = t;
74
- return [
75
- R.textColorVariant({ color: g })
76
- ].join(" ");
77
- }), f = O(() => {
78
- const { buttonColor: g, buttonTextColor: u, rounded: b } = t, w = [
79
- R.bgColorVariant({ color: g }),
80
- R.textColorVariant({ color: u })
242
+ const t = e, r = We(e, "modelValue"), n = qe(t), i = Dt(t), a = te(), l = te(0), s = () => {
243
+ a.value?.click();
244
+ }, u = (g) => {
245
+ const b = g.target.files;
246
+ r.value = b && b.length > 0 ? b[0] : null;
247
+ }, c = () => {
248
+ r.value = null, l.value++;
249
+ }, f = S(() => {
250
+ const g = [
251
+ P.bgColorVariant({ color: t.buttonColor }),
252
+ P.textColorVariant({ color: t.buttonTextColor })
81
253
  ];
82
- return b && w.push("rounded-l-md"), w.join(" ");
83
- }), s = O(() => {
84
- const { buttonColor: g, rounded: u } = t, b = [
85
- R.bgColorVariant({ color: g })
254
+ return t.rounded && g.push("rounded-l-md"), g.join(" ");
255
+ }), m = S(() => {
256
+ const g = [
257
+ P.bgColorVariant({ color: t.buttonColor })
86
258
  ];
87
- return u && b.push("rounded-r-md"), b.join(" ");
259
+ return t.rounded && g.push("rounded-r-md"), g.join(" ");
88
260
  });
89
- return (g, u) => ($(), q("div", {
90
- class: H(["flex items-center overflow-hidden", p.value])
91
- }, [
92
- M("div", Wn, [
93
- M("button", {
94
- type: "button",
95
- "aria-controls": e.id,
96
- class: H(["max-w-full px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70", f.value]),
97
- onClick: a
98
- }, ct(e.buttonText), 11, jn)
99
- ]),
100
- ($(), q("input", {
101
- type: "file",
102
- id: e.id,
103
- ref_key: "inputRef",
104
- ref: n,
105
- class: H(["w-full bg-transparent file:hidden", [c.value]]),
106
- required: e.required,
107
- accept: e.accept,
108
- key: i.value,
109
- onChange: l
110
- }, null, 42, Gn)),
111
- e.showClear ? ($(), q("div", {
112
- key: 0,
113
- class: "my-3xs mr-3xs self-stretch",
114
- onClick: d
261
+ return (g, b) => (O(), D("div", null, [
262
+ H("div", {
263
+ class: K(["flex items-center overflow-hidden", d(i)])
115
264
  }, [
116
- M("button", {
117
- class: H(["flex h-full items-center px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70", [s.value]]),
118
- "aria-label": "clear"
119
- }, [
120
- ($(), q("svg", {
121
- xmlns: "http://www.w3.org/2000/svg",
122
- viewBox: "0 0 384 512",
123
- "aria-hidden": "true",
124
- class: H(["h-xs", Te(R).svgFillColorVariant({ color: e.buttonTextColor })])
125
- }, [...u[0] || (u[0] = [
126
- M("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
127
- ])], 2))
128
- ], 2)
129
- ])) : dt("", !0)
130
- ], 2));
131
- }
132
- }), Yn = { class: "flex items-center" }, Xn = ["id", "value", "checked"], tl = /* @__PURE__ */ xe({
265
+ H("div", bo, [
266
+ H("button", {
267
+ type: "button",
268
+ "aria-controls": d(n).id,
269
+ disabled: d(n).disabled.value,
270
+ class: K(["max-w-full px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70 disabled:cursor-not-allowed disabled:opacity-50", f.value]),
271
+ onClick: s
272
+ }, Ne(e.buttonText), 11, ho)
273
+ ]),
274
+ (O(), D("input", {
275
+ id: d(n).id,
276
+ ref_key: "inputRef",
277
+ ref: a,
278
+ key: l.value,
279
+ type: "file",
280
+ class: "w-full bg-transparent file:hidden",
281
+ name: d(n).name.value,
282
+ accept: e.accept,
283
+ required: d(n).required.value,
284
+ disabled: d(n).disabled.value,
285
+ "aria-invalid": d(n).invalid.value || void 0,
286
+ "aria-describedby": d(n).describedBy.value,
287
+ onChange: u
288
+ }, null, 40, vo)),
289
+ e.showClear ? (O(), D("div", xo, [
290
+ H("button", {
291
+ type: "button",
292
+ "aria-label": "Clear selected file",
293
+ disabled: d(n).disabled.value,
294
+ class: K(["flex h-full items-center px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70 disabled:cursor-not-allowed disabled:opacity-50", m.value]),
295
+ onClick: c
296
+ }, [
297
+ St(vn, {
298
+ color: e.buttonTextColor,
299
+ "class-name": "h-xs"
300
+ }, null, 8, ["color"])
301
+ ], 10, yo)
302
+ ])) : I("", !0)
303
+ ], 2),
304
+ d(n).feedbackOwnedByGroup ? I("", !0) : (O(), De(rt, {
305
+ key: 0,
306
+ id: d(n).errorId,
307
+ invalid: d(n).invalid.value,
308
+ text: e.invalidFeedback
309
+ }, {
310
+ default: Pe(() => [
311
+ g.$slots["invalid-feedback"] ? ie(g.$slots, "invalid-feedback", { key: 0 }) : I("", !0)
312
+ ]),
313
+ _: 3
314
+ }, 8, ["id", "invalid", "text"]))
315
+ ]));
316
+ }
317
+ }), ko = {
318
+ sm: "h-xs w-xs before:h-2xs before:w-2xs",
319
+ md: "h-sm w-sm before:h-[12px] before:w-[12px]",
320
+ lg: "h-md w-md before:h-xs before:w-xs"
321
+ }, wo = {
322
+ sm: {
323
+ "--switch-width": "30px",
324
+ "--switch-height": "17px",
325
+ "--slider-size": "13px",
326
+ "--gutter-size": "2px"
327
+ },
328
+ md: {
329
+ "--switch-width": "45px",
330
+ "--switch-height": "25.5px",
331
+ "--slider-size": "19.5px",
332
+ "--gutter-size": "3px"
333
+ },
334
+ lg: {
335
+ "--switch-width": "60px",
336
+ "--switch-height": "34px",
337
+ "--slider-size": "26px",
338
+ "--gutter-size": "4px"
339
+ }
340
+ }, Co = "rounded-md before:rounded-[3px]", ur = (e) => {
341
+ const t = S(() => {
342
+ const { bgColor: i, borderColor: a, indicatorColor: l, checkedBgColor: s, showShadow: u } = e, c = e.rounded ?? !1, f = [
343
+ P.bgColorVariant({ color: i }),
344
+ P.borderColorVariant({ color: a }),
345
+ P.beforeBgColorVariant({ color: l }),
346
+ P.peerCheckedBgColorVariant({ color: s }),
347
+ // The native input is visually transparent, so the focus indicator has to
348
+ // be projected onto this span. Without it there is none at all.
349
+ "peer-focus-visible:ring-2 ring-offset-2",
350
+ P.peerFocusVisibleRingColorVariant({ color: a })
351
+ ];
352
+ return u && f.push("drop-shadow-md"), c && f.push(e.roundedClass ?? Co), f.join(" ");
353
+ }), r = S(() => ko[e.size]), n = S(() => ({
354
+ ...wo[e.size]
355
+ }));
356
+ return { boxClass: t, sizeClass: r, switchVars: n };
357
+ }, To = { class: "relative inline-flex" }, Ao = ["id", "name", "value", "required", "disabled", "aria-invalid", "aria-describedby"], Fl = /* @__PURE__ */ de({
133
358
  __name: "MclInputRadio",
134
- props: {
359
+ props: /* @__PURE__ */ pe({
135
360
  id: {},
136
- radioSize: { default: "md" },
137
- bgColor: { default: "success" },
138
- checkedColor: { default: "light-1" },
361
+ name: {},
362
+ size: { default: "md" },
363
+ bgColor: { default: "light-1" },
364
+ checkedBgColor: { default: "success" },
365
+ indicatorColor: { default: "light-1" },
366
+ borderColor: { default: "dark-1" },
139
367
  showShadow: { type: Boolean, default: !1 },
140
368
  value: { default: "" },
141
- checked: { type: Boolean, default: !1 }
142
- },
143
- emits: ["change"],
369
+ invalid: { type: Boolean, default: void 0 },
370
+ required: { type: Boolean, default: void 0 },
371
+ disabled: { type: Boolean, default: void 0 }
372
+ }, {
373
+ modelValue: { default: null },
374
+ modelModifiers: {}
375
+ }),
376
+ emits: /* @__PURE__ */ pe(["change"], ["update:modelValue"]),
144
377
  setup(e, { emit: t }) {
145
- const r = e, n = Y(), i = t, a = () => {
146
- n.value?.click();
147
- }, l = O(() => {
148
- const { radioSize: f } = r;
149
- return f === "sm" ? "h-xs w-xs" : f === "lg" ? "h-md w-md" : "h-sm w-sm";
150
- }), d = O(() => {
151
- const { radioSize: f } = r;
152
- return f === "sm" ? "peer-checked:before:h-2xs peer-checked:before:w-2xs" : f === "lg" ? "peer-checked:before:h-xs peer-checked:before:w-xs" : "peer-checked:before:h-[12px] peer-checked:before:w-[12px]";
153
- }), p = O(() => {
154
- const { bgColor: f, checkedColor: s, showShadow: g } = r, u = [
155
- R.bgColorVariant({ color: f }),
156
- R.beforeBgColorVariant({ color: s })
157
- ];
158
- return g && u.push("drop-shadow-md"), u.join(" ");
159
- }), c = (f) => {
160
- const s = f.target.value;
161
- i("change", f, s);
378
+ const r = e, n = We(e, "modelValue"), i = t, a = qe(r, { rendersOwnFeedback: !1 }), { boxClass: l, sizeClass: s } = ur(r), u = S(() => a.name.value ?? a.id), c = (f) => {
379
+ i("change", f);
162
380
  };
163
- return (f, s) => ($(), q("div", Yn, [
164
- M("input", {
165
- id: e.id,
381
+ return (f, m) => (O(), D("div", To, [
382
+ ze(H("input", {
383
+ id: d(a).id,
384
+ "onUpdate:modelValue": m[0] || (m[0] = (g) => n.value = g),
166
385
  type: "radio",
167
- class: "peer appearance-none",
168
- ref_key: "radioRef",
169
- ref: n,
386
+ class: "peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",
387
+ name: u.value,
170
388
  value: e.value,
171
- checked: e.checked,
389
+ required: d(a).required.value,
390
+ disabled: d(a).disabled.value,
391
+ "aria-invalid": d(a).invalid.value || void 0,
392
+ "aria-describedby": d(a).describedBy.value,
172
393
  onChange: c
173
- }, null, 40, Xn),
174
- M("span", {
394
+ }, null, 40, Ao), [
395
+ [Xn, n.value]
396
+ ]),
397
+ H("span", {
175
398
  "aria-hidden": "true",
176
- class: H(["relative inline-block rounded-full before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full", [l.value, d.value, p.value]]),
177
- onClick: a
399
+ class: K(["relative inline-block rounded-full border transition-colors duration-200 ease-linear peer-disabled:opacity-50 before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:opacity-0 before:transition-opacity before:duration-200 peer-checked:before:opacity-100", [d(l), d(s)]])
178
400
  }, null, 2)
179
401
  ]));
180
402
  }
181
- }), qn = ["id", "aria-checked"], Kn = /* @__PURE__ */ xe({
403
+ }), So = ["id", "name", "required", "disabled", "aria-invalid", "aria-describedby"], Eo = "rounded-full before:rounded-full", Ro = /* @__PURE__ */ de({
182
404
  __name: "MclInputSwitch",
183
- props: /* @__PURE__ */ Re({
405
+ props: /* @__PURE__ */ pe({
184
406
  id: {},
185
- sliderColor: { default: "light-1" },
186
- onColor: { default: "success" },
187
- offColor: { default: "dark-1" },
188
- switchSize: { default: "md" },
189
- rounded: { type: Boolean, default: !0 }
407
+ name: {},
408
+ size: { default: "md" },
409
+ bgColor: { default: "dark-1" },
410
+ checkedBgColor: { default: "success" },
411
+ indicatorColor: { default: "light-1" },
412
+ borderColor: { default: "dark-1" },
413
+ showShadow: { type: Boolean, default: !1 },
414
+ rounded: { type: Boolean, default: !0 },
415
+ invalid: { type: Boolean, default: void 0 },
416
+ required: { type: Boolean, default: void 0 },
417
+ disabled: { type: Boolean, default: void 0 }
190
418
  }, {
191
419
  modelValue: { type: Boolean },
192
420
  modelModifiers: {}
193
421
  }),
194
- emits: ["update:modelValue"],
195
- setup(e) {
196
- const t = e, r = Ze(e, "modelValue"), n = Y(), i = {
197
- primary: "peer-checked/input:bg-primary",
198
- secondary: "peer-checked/input:bg-secondary",
199
- success: "peer-checked/input:bg-success",
200
- info: "peer-checked/input:bg-info",
201
- warning: "peer-checked/input:bg-warning",
202
- danger: "peer-checked/input:bg-danger",
203
- "light-1": "peer-checked/input:bg-light-1",
204
- "light-2": "peer-checked/input:bg-light-2",
205
- "light-3": "peer-checked/input:bg-light-3",
206
- "light-4": "peer-checked/input:bg-light-4",
207
- "dark-1": "peer-checked/input:bg-dark-1",
208
- "dark-2": "peer-checked/input:bg-dark-2",
209
- "dark-3": "peer-checked/input:bg-dark-3",
210
- "dark-4": "peer-checked/input:bg-dark-1",
211
- transparent: "peer-checked/input:bg-transparent",
212
- black: "peer-checked/input:bg-black",
213
- white: "peer-checked/input:bg-white"
214
- }, a = () => {
215
- n.value?.click();
216
- }, l = O(() => t.switchSize === "sm" ? {
217
- "--switch-width": "30px",
218
- "--switch-height": "17px",
219
- "--slider-size": "13px",
220
- "--gutter-size": "2px"
221
- } : t.switchSize === "lg" ? {
222
- "--switch-width": "60px",
223
- "--switch-height": "34px",
224
- "--slider-size": "26px",
225
- "--gutter-size": "4px"
226
- } : {
227
- "--switch-width": "45px",
228
- "--switch-height": "25.5px",
229
- "--slider-size": "19.5px",
230
- "--gutter-size": "3px"
231
- }), d = O(() => {
232
- const { sliderColor: p, onColor: c, offColor: f, rounded: s } = t, g = [
233
- R.bgColorVariant({ color: f }),
234
- R.beforeBgColorVariant({ color: p }),
235
- i[c]
236
- ];
237
- return s && g.push("rounded-full before:rounded-full"), g.join(" ");
238
- });
239
- return (p, c) => ($(), q("div", {
422
+ emits: /* @__PURE__ */ pe(["change"], ["update:modelValue"]),
423
+ setup(e, { emit: t }) {
424
+ const r = e, n = We(e, "modelValue"), i = t, a = qe(r, { rendersOwnFeedback: !1 }), l = {
425
+ get size() {
426
+ return r.size;
427
+ },
428
+ get bgColor() {
429
+ return r.bgColor;
430
+ },
431
+ get checkedBgColor() {
432
+ return r.checkedBgColor;
433
+ },
434
+ get indicatorColor() {
435
+ return r.indicatorColor;
436
+ },
437
+ get borderColor() {
438
+ return r.borderColor;
439
+ },
440
+ get showShadow() {
441
+ return r.showShadow;
442
+ },
443
+ get rounded() {
444
+ return r.rounded;
445
+ },
446
+ roundedClass: Eo
447
+ }, { boxClass: s, switchVars: u } = ur(l), c = (f) => {
448
+ i("change", f);
449
+ };
450
+ return (f, m) => (O(), D("div", {
240
451
  class: "switch relative",
241
- style: tn(l.value),
242
- onClick: a
452
+ style: ar(d(u))
243
453
  }, [
244
- qe(M("input", {
245
- id: e.id,
246
- class: "peer/input sr-only",
247
- "onUpdate:modelValue": c[0] || (c[0] = (f) => r.value = f),
248
- ref_key: "inputRef",
249
- ref: n,
454
+ ze(H("input", {
455
+ id: d(a).id,
456
+ "onUpdate:modelValue": m[0] || (m[0] = (g) => n.value = g),
250
457
  type: "checkbox",
251
458
  role: "switch",
252
- "aria-checked": !!r.value
253
- }, null, 8, qn), [
254
- [rn, r.value]
459
+ class: "peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",
460
+ name: d(a).name.value,
461
+ required: d(a).required.value,
462
+ disabled: d(a).disabled.value,
463
+ "aria-invalid": d(a).invalid.value || void 0,
464
+ "aria-describedby": d(a).describedBy.value,
465
+ onChange: c
466
+ }, null, 40, So), [
467
+ [gn, n.value]
255
468
  ]),
256
- M("span", {
469
+ H("span", {
257
470
  "aria-hidden": "true",
258
- class: H(["slider absolute inset-0 cursor-pointer transition-all duration-300 before:absolute before:transition-all before:duration-300", d.value])
471
+ class: K(["slider absolute inset-0 transition-all duration-300 peer-disabled:opacity-50 before:absolute before:transition-all before:duration-300", d(s)])
259
472
  }, null, 2)
260
473
  ], 4));
261
474
  }
262
- }), an = (e, t) => {
475
+ }), xn = (e, t) => {
263
476
  const r = e.__vccOpts || e;
264
477
  for (const [n, i] of t)
265
478
  r[n] = i;
266
479
  return r;
267
- }, rl = /* @__PURE__ */ an(Kn, [["__scopeId", "data-v-64ca2f25"]]), ln = /* @__PURE__ */ xe({
480
+ }, $l = /* @__PURE__ */ xn(Ro, [["__scopeId", "data-v-784930f6"]]), yn = /* @__PURE__ */ de({
268
481
  __name: "InputHighlight",
269
482
  props: {
270
483
  color: { default: "primary" },
@@ -275,20 +488,24 @@ const Un = ["for"], Qa = /* @__PURE__ */ xe({
275
488
  const t = e, r = {
276
489
  1: "-top-1",
277
490
  2.5: "-top-2.5"
278
- }, n = O(() => {
491
+ }, n = S(() => {
279
492
  const i = [
280
- R.beforeBgColorVariant({ color: t.color })
493
+ P.beforeBgColorVariant({ color: t.color })
281
494
  ];
282
495
  return t.rounded && i.push("rounded-b-md"), i.push(r[t.offset]), i.join(" ");
283
496
  });
284
- return (i, a) => ($(), q("div", {
285
- class: H(["relative h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:w-0 before:transition-[width] before:duration-300 before:ease-linear peer-focus:before:w-full", n.value])
497
+ return (i, a) => (O(), D("div", {
498
+ class: K(["relative h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:w-0 before:transition-[width] before:duration-300 before:ease-linear peer-focus:before:w-full", n.value])
286
499
  }, null, 2));
287
500
  }
288
- }), Zn = ["id", "type", "placeholder", "required", "aria-invalid", "aria-describedby", "minlength", "maxlength", "pattern"], Jn = ["id"], Qn = { class: "text-xs text-danger" }, nl = /* @__PURE__ */ xe({
501
+ }), Oo = ["id", "type", "name", "placeholder", "autocomplete", "minlength", "maxlength", "pattern", "required", "disabled", "aria-invalid", "aria-describedby"], Pl = /* @__PURE__ */ de({
289
502
  __name: "MclInputText",
290
- props: /* @__PURE__ */ Re({
503
+ props: /* @__PURE__ */ pe({
291
504
  id: {},
505
+ name: {},
506
+ type: { default: "text" },
507
+ placeholder: { default: "" },
508
+ autocomplete: {},
292
509
  showBorder: { type: Boolean, default: !1 },
293
510
  borderColor: { default: "light-4" },
294
511
  rounded: { type: Boolean, default: !1 },
@@ -296,114 +513,102 @@ const Un = ["for"], Qa = /* @__PURE__ */ xe({
296
513
  highlightColor: { default: "primary" },
297
514
  textColor: { default: "black" },
298
515
  bgColor: { default: "light-1" },
299
- placeholder: { default: "" },
300
- type: { default: "text" },
301
516
  showShadow: { type: Boolean, default: !0 },
302
- required: { type: Boolean, default: !1 },
303
- invalid: { type: Boolean, default: !1 },
304
517
  invalidFeedback: {},
305
518
  minLength: {},
306
519
  maxLength: {},
307
- pattern: {}
520
+ pattern: {},
521
+ invalid: { type: Boolean, default: void 0 },
522
+ required: { type: Boolean, default: void 0 },
523
+ disabled: { type: Boolean, default: void 0 }
308
524
  }, {
309
525
  modelValue: {},
310
526
  modelModifiers: {}
311
527
  }),
312
528
  emits: ["update:modelValue"],
313
529
  setup(e) {
314
- const t = e, r = Ze(e, "modelValue"), n = O(() => {
315
- const {
316
- bgColor: i,
317
- showBorder: a,
318
- borderColor: l,
319
- showHighlight: d,
320
- showShadow: p,
321
- rounded: c,
322
- textColor: f
323
- } = t, s = [
324
- R.bgColorVariant({ color: i }),
325
- R.textColorVariant({ color: f })
326
- ];
327
- return a && (s.push("border-2"), s.push(R.borderColorVariant({ color: l }))), d || (s.push(
328
- "focus:ring-4 ring-offset-2 transition-all duration-300 ease-linear"
329
- ), s.push(R.focusRingColorVariant({ color: l }))), p && s.push("shadow-md"), c && s.push("rounded-md"), s.join(" ");
330
- });
331
- return (i, a) => ($(), q("div", null, [
332
- qe(M("input", {
333
- id: e.id,
530
+ const t = e, r = We(e, "modelValue"), n = qe(t), i = Dt(t);
531
+ return (a, l) => (O(), D("div", null, [
532
+ ze(H("input", {
533
+ id: d(n).id,
534
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => r.value = s),
535
+ class: K(["peer w-full p-2xs outline-none disabled:cursor-not-allowed disabled:opacity-50", d(i)]),
334
536
  type: e.type,
335
- class: H(["peer peer/validation w-full p-2xs outline-none", n.value]),
336
- "onUpdate:modelValue": a[0] || (a[0] = (l) => r.value = l),
537
+ name: d(n).name.value,
337
538
  placeholder: e.placeholder,
338
- required: e.required,
339
- "aria-invalid": e.invalid || void 0,
340
- "aria-describedby": e.invalid ? `${e.id}-error` : void 0,
539
+ autocomplete: e.autocomplete,
341
540
  minlength: e.minLength,
342
541
  maxlength: e.maxLength,
343
- pattern: e.pattern
344
- }, null, 10, Zn), [
345
- [Dn, r.value]
542
+ pattern: e.pattern,
543
+ required: d(n).required.value,
544
+ disabled: d(n).disabled.value,
545
+ "aria-invalid": d(n).invalid.value || void 0,
546
+ "aria-describedby": d(n).describedBy.value
547
+ }, null, 10, Oo), [
548
+ [Kn, r.value]
346
549
  ]),
347
- e.showHighlight ? ($(), nn(ln, {
550
+ e.showHighlight ? (O(), De(yn, {
348
551
  key: 0,
349
552
  color: e.highlightColor,
350
553
  rounded: e.rounded
351
- }, null, 8, ["color", "rounded"])) : dt("", !0),
352
- M("div", {
353
- id: `${e.id}-error`,
354
- role: "alert",
355
- class: "ml-3xs peer-valid/validation:hidden peer-invalid/validation:block"
356
- }, [
357
- st(i.$slots, "invalid-feedback", {}, () => [
358
- M("span", Qn, ct(e.invalidFeedback), 1)
359
- ])
360
- ], 8, Jn)
554
+ }, null, 8, ["color", "rounded"])) : I("", !0),
555
+ d(n).feedbackOwnedByGroup ? I("", !0) : (O(), De(rt, {
556
+ key: 1,
557
+ id: d(n).errorId,
558
+ invalid: d(n).invalid.value,
559
+ text: e.invalidFeedback
560
+ }, {
561
+ default: Pe(() => [
562
+ a.$slots["invalid-feedback"] ? ie(a.$slots, "invalid-feedback", { key: 0 }) : I("", !0)
563
+ ]),
564
+ _: 3
565
+ }, 8, ["id", "invalid", "text"]))
361
566
  ]));
362
567
  }
363
568
  });
364
- function sn(e) {
569
+ function kn(e) {
365
570
  var t, r, n = "";
366
571
  if (typeof e == "string" || typeof e == "number") n += e;
367
572
  else if (typeof e == "object") if (Array.isArray(e)) {
368
573
  var i = e.length;
369
- for (t = 0; t < i; t++) e[t] && (r = sn(e[t])) && (n && (n += " "), n += r);
574
+ for (t = 0; t < i; t++) e[t] && (r = kn(e[t])) && (n && (n += " "), n += r);
370
575
  } else for (r in e) e[r] && (n && (n += " "), n += r);
371
576
  return n;
372
577
  }
373
- function eo() {
374
- for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = sn(e)) && (n && (n += " "), n += t);
578
+ function _o() {
579
+ for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = kn(e)) && (n && (n += " "), n += t);
375
580
  return n;
376
581
  }
377
- const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y = (e, t) => (r) => {
582
+ const $r = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Pr = _o, v = (e, t) => (r) => {
378
583
  var n;
379
- if (t?.variants == null) return Rr(e, r?.class, r?.className);
584
+ if (t?.variants == null) return Pr(e, r?.class, r?.className);
380
585
  const { variants: i, defaultVariants: a } = t, l = Object.keys(i).map((c) => {
381
- const f = r?.[c], s = a?.[c];
586
+ const f = r?.[c], m = a?.[c];
382
587
  if (f === null) return null;
383
- const g = Er(f) || Er(s);
588
+ const g = $r(f) || $r(m);
384
589
  return i[c][g];
385
- }), d = r && Object.entries(r).reduce((c, f) => {
386
- let [s, g] = f;
387
- return g === void 0 || (c[s] = g), c;
388
- }, {}), p = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((c, f) => {
389
- let { class: s, className: g, ...u } = f;
390
- return Object.entries(u).every((b) => {
391
- let [w, C] = b;
392
- return Array.isArray(C) ? C.includes({
590
+ }), s = r && Object.entries(r).reduce((c, f) => {
591
+ let [m, g] = f;
592
+ return g === void 0 || (c[m] = g), c;
593
+ }, {}), u = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((c, f) => {
594
+ let { class: m, className: g, ...b } = f;
595
+ return Object.entries(b).every((x) => {
596
+ let [k, y] = x;
597
+ return Array.isArray(y) ? y.includes({
393
598
  ...a,
394
- ...d
395
- }[w]) : {
599
+ ...s
600
+ }[k]) : {
396
601
  ...a,
397
- ...d
398
- }[w] === C;
602
+ ...s
603
+ }[k] === y;
399
604
  }) ? [
400
605
  ...c,
401
- s,
606
+ m,
402
607
  g
403
608
  ] : c;
404
609
  }, []);
405
- return Rr(e, l, p, r?.class, r?.className);
406
- }, to = y("", {
610
+ return Pr(e, l, u, r?.class, r?.className);
611
+ }, No = v("", {
407
612
  variants: {
408
613
  color: {
409
614
  primary: "mcl-bg-primary",
@@ -425,7 +630,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
425
630
  transparent: "mcl-bg-transparent"
426
631
  }
427
632
  }
428
- }), ro = y("", {
633
+ }), Lo = v("", {
429
634
  variants: {
430
635
  color: {
431
636
  primary: "hover:bg-primary",
@@ -447,7 +652,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
447
652
  transparent: "hover:bg-transparent"
448
653
  }
449
654
  }
450
- }), no = y("", {
655
+ }), Do = v("", {
451
656
  variants: {
452
657
  color: {
453
658
  primary: "focus:bg-primary",
@@ -469,7 +674,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
469
674
  transparent: "focus:bg-transparent"
470
675
  }
471
676
  }
472
- }), oo = y("", {
677
+ }), Io = v("", {
473
678
  variants: {
474
679
  color: {
475
680
  primary: "before:bg-primary",
@@ -491,7 +696,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
491
696
  transparent: "before:bg-transparent"
492
697
  }
493
698
  }
494
- }), io = y("", {
699
+ }), Vo = v("", {
495
700
  variants: {
496
701
  color: {
497
702
  primary: "after:bg-primary",
@@ -513,7 +718,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
513
718
  transparent: "after:bg-transparent"
514
719
  }
515
720
  }
516
- }), ao = y("", {
721
+ }), Bo = v("", {
517
722
  variants: {
518
723
  color: {
519
724
  primary: "active:bg-primary",
@@ -535,7 +740,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
535
740
  transparent: "active:bg-transparent"
536
741
  }
537
742
  }
538
- }), lo = y("", {
743
+ }), Mo = v("", {
539
744
  variants: {
540
745
  color: {
541
746
  primary: "text-primary",
@@ -557,7 +762,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
557
762
  transparent: "text-transparent"
558
763
  }
559
764
  }
560
- }), so = y("", {
765
+ }), Fo = v("", {
561
766
  variants: {
562
767
  color: {
563
768
  primary: "hover:text-primary",
@@ -579,7 +784,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
579
784
  transparent: "hover:text-transparent"
580
785
  }
581
786
  }
582
- }), co = y("", {
787
+ }), $o = v("", {
583
788
  variants: {
584
789
  color: {
585
790
  primary: "focus:text-primary",
@@ -601,7 +806,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
601
806
  transparent: "focus:text-transparent"
602
807
  }
603
808
  }
604
- }), uo = y("", {
809
+ }), Po = v("", {
605
810
  variants: {
606
811
  color: {
607
812
  primary: "disabled:text-primary",
@@ -623,7 +828,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
623
828
  transparent: "disabled:text-transparent"
624
829
  }
625
830
  }
626
- }), fo = y("", {
831
+ }), zo = v("", {
627
832
  variants: {
628
833
  color: {
629
834
  primary: "fill-primary",
@@ -645,7 +850,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
645
850
  transparent: "fill-transparent"
646
851
  }
647
852
  }
648
- }), go = y("", {
853
+ }), Ho = v("", {
649
854
  variants: {
650
855
  color: {
651
856
  primary: "ring-primary",
@@ -667,7 +872,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
667
872
  transparent: "ring-transparent"
668
873
  }
669
874
  }
670
- }), po = y("", {
875
+ }), Uo = v("", {
671
876
  variants: {
672
877
  color: {
673
878
  primary: "focus:ring-primary",
@@ -689,7 +894,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
689
894
  transparent: "focus:ring-transparent"
690
895
  }
691
896
  }
692
- }), ho = y("", {
897
+ }), Wo = v("", {
693
898
  variants: {
694
899
  color: {
695
900
  primary: "active:ring-primary",
@@ -711,7 +916,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
711
916
  transparent: "active:ring-transparent"
712
917
  }
713
918
  }
714
- }), mo = y("", {
919
+ }), qo = v("", {
715
920
  variants: {
716
921
  color: {
717
922
  primary: "peer-checked:bg-primary",
@@ -733,7 +938,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
733
938
  transparent: "peer-checked:bg-transparent"
734
939
  }
735
940
  }
736
- }), bo = y("", {
941
+ }), jo = v("", {
737
942
  variants: {
738
943
  color: {
739
944
  primary: "peer-focus-visible:ring-primary",
@@ -755,7 +960,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
755
960
  transparent: "peer-focus-visible:ring-transparent"
756
961
  }
757
962
  }
758
- }), xo = y("", {
963
+ }), Go = v("", {
759
964
  variants: {
760
965
  color: {
761
966
  primary: "focus-visible:ring-primary",
@@ -777,7 +982,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
777
982
  transparent: "focus-visible:ring-transparent"
778
983
  }
779
984
  }
780
- }), yo = y("", {
985
+ }), Yo = v("", {
781
986
  variants: {
782
987
  color: {
783
988
  primary: "ring-offset-primary",
@@ -799,7 +1004,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
799
1004
  transparent: "ring-offset-transparent"
800
1005
  }
801
1006
  }
802
- }), vo = y("", {
1007
+ }), Xo = v("", {
803
1008
  variants: {
804
1009
  color: {
805
1010
  primary: "mcl-outline-primary",
@@ -821,7 +1026,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
821
1026
  transparent: "mcl-outline-transparent"
822
1027
  }
823
1028
  }
824
- }), ko = y("", {
1029
+ }), Ko = v("", {
825
1030
  variants: {
826
1031
  color: {
827
1032
  primary: "focus:mcl-outline-primary",
@@ -843,7 +1048,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
843
1048
  transparent: "focus:mcl-outline-transparent"
844
1049
  }
845
1050
  }
846
- }), wo = y("", {
1051
+ }), Zo = v("", {
847
1052
  variants: {
848
1053
  color: {
849
1054
  primary: "active:mcl-outline-primary",
@@ -865,7 +1070,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
865
1070
  transparent: "active:mcl-outline-transparent"
866
1071
  }
867
1072
  }
868
- }), Co = y("", {
1073
+ }), Jo = v("", {
869
1074
  variants: {
870
1075
  color: {
871
1076
  primary: "btn-primary",
@@ -887,7 +1092,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
887
1092
  transparent: "btn-transparent"
888
1093
  }
889
1094
  }
890
- }), To = y("", {
1095
+ }), Qo = v("", {
891
1096
  variants: {
892
1097
  color: {
893
1098
  primary: "mcl-list-primary",
@@ -909,7 +1114,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
909
1114
  transparent: "mcl-list-transparent"
910
1115
  }
911
1116
  }
912
- }), Ao = y("", {
1117
+ }), ei = v("", {
913
1118
  variants: {
914
1119
  color: {
915
1120
  primary: "border-primary",
@@ -931,7 +1136,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
931
1136
  transparent: "border-transparent"
932
1137
  }
933
1138
  }
934
- }), So = y("", {
1139
+ }), ti = v("", {
935
1140
  variants: {
936
1141
  color: {
937
1142
  primary: "border-x-primary",
@@ -953,7 +1158,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
953
1158
  transparent: "border-x-transparent"
954
1159
  }
955
1160
  }
956
- }), Eo = y("", {
1161
+ }), ri = v("", {
957
1162
  variants: {
958
1163
  color: {
959
1164
  primary: "border-y-primary",
@@ -975,7 +1180,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
975
1180
  transparent: "border-y-transparent"
976
1181
  }
977
1182
  }
978
- }), Ro = y("", {
1183
+ }), ni = v("", {
979
1184
  variants: {
980
1185
  color: {
981
1186
  primary: "border-t-primary",
@@ -997,7 +1202,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
997
1202
  transparent: "border-t-transparent"
998
1203
  }
999
1204
  }
1000
- }), Oo = y("", {
1205
+ }), oi = v("", {
1001
1206
  variants: {
1002
1207
  color: {
1003
1208
  primary: "border-b-primary",
@@ -1019,7 +1224,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1019
1224
  transparent: "border-b-transparent"
1020
1225
  }
1021
1226
  }
1022
- }), No = y("", {
1227
+ }), ii = v("", {
1023
1228
  variants: {
1024
1229
  color: {
1025
1230
  primary: "border-l-primary",
@@ -1041,7 +1246,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1041
1246
  transparent: "border-l-transparent"
1042
1247
  }
1043
1248
  }
1044
- }), Lo = y("", {
1249
+ }), ai = v("", {
1045
1250
  variants: {
1046
1251
  color: {
1047
1252
  primary: "border-r-primary",
@@ -1063,7 +1268,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1063
1268
  transparent: "border-r-transparent"
1064
1269
  }
1065
1270
  }
1066
- }), Do = y("", {
1271
+ }), li = v("", {
1067
1272
  variants: {
1068
1273
  size: {
1069
1274
  xs: "text-xs",
@@ -1073,7 +1278,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1073
1278
  xl: "text-xl"
1074
1279
  }
1075
1280
  }
1076
- }), _o = y("", {
1281
+ }), si = v("", {
1077
1282
  variants: {
1078
1283
  weight: {
1079
1284
  light: "font-light",
@@ -1081,7 +1286,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1081
1286
  bold: "font-bold"
1082
1287
  }
1083
1288
  }
1084
- }), Vo = y("", {
1289
+ }), ci = v("", {
1085
1290
  variants: {
1086
1291
  align: {
1087
1292
  left: "text-left",
@@ -1089,7 +1294,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1089
1294
  right: "text-right"
1090
1295
  }
1091
1296
  }
1092
- }), Io = y("", {
1297
+ }), di = v("", {
1093
1298
  variants: {
1094
1299
  size: {
1095
1300
  sm: "h1-sm",
@@ -1098,7 +1303,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1098
1303
  xl: "h1-xl"
1099
1304
  }
1100
1305
  }
1101
- }), Mo = y("", {
1306
+ }), ui = v("", {
1102
1307
  variants: {
1103
1308
  size: {
1104
1309
  sm: "h2-sm",
@@ -1107,7 +1312,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1107
1312
  xl: "h2-xl"
1108
1313
  }
1109
1314
  }
1110
- }), Bo = y("", {
1315
+ }), fi = v("", {
1111
1316
  variants: {
1112
1317
  size: {
1113
1318
  sm: "h3-sm",
@@ -1116,7 +1321,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1116
1321
  xl: "h3-xl"
1117
1322
  }
1118
1323
  }
1119
- }), Fo = y("", {
1324
+ }), gi = v("", {
1120
1325
  variants: {
1121
1326
  size: {
1122
1327
  sm: "h4-sm",
@@ -1125,7 +1330,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1125
1330
  xl: "h4-xl"
1126
1331
  }
1127
1332
  }
1128
- }), Po = {
1333
+ }), pi = {
1129
1334
  1: "border-[1px]",
1130
1335
  2: "border-[2px]",
1131
1336
  3: "border-[3px]",
@@ -1138,7 +1343,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1138
1343
  10: "border-[10px]",
1139
1344
  11: "border-[11px]",
1140
1345
  12: "border-[12px]"
1141
- }, zo = {
1346
+ }, mi = {
1142
1347
  1: "border-x-[1px]",
1143
1348
  2: "border-x-[2px]",
1144
1349
  3: "border-x-[3px]",
@@ -1151,7 +1356,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1151
1356
  10: "border-x-[10px]",
1152
1357
  11: "border-x-[11px]",
1153
1358
  12: "border-x-[12px]"
1154
- }, Ho = {
1359
+ }, bi = {
1155
1360
  1: "border-y-[1px]",
1156
1361
  2: "border-y-[2px]",
1157
1362
  3: "border-y-[3px]",
@@ -1164,7 +1369,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1164
1369
  10: "border-y-[10px]",
1165
1370
  11: "border-y-[11px]",
1166
1371
  12: "border-y-[12px]"
1167
- }, $o = {
1372
+ }, hi = {
1168
1373
  1: "border-t-[1px]",
1169
1374
  2: "border-t-[2px]",
1170
1375
  3: "border-t-[3px]",
@@ -1177,7 +1382,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1177
1382
  10: "border-t-[10px]",
1178
1383
  11: "border-t-[11px]",
1179
1384
  12: "border-t-[12px]"
1180
- }, Uo = {
1385
+ }, vi = {
1181
1386
  1: "border-b-[1px]",
1182
1387
  2: "border-b-[2px]",
1183
1388
  3: "border-b-[3px]",
@@ -1190,7 +1395,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1190
1395
  10: "border-b-[10px]",
1191
1396
  11: "border-b-[11px]",
1192
1397
  12: "border-b-[12px]"
1193
- }, Wo = {
1398
+ }, xi = {
1194
1399
  1: "border-l-[1px]",
1195
1400
  2: "border-l-[2px]",
1196
1401
  3: "border-l-[3px]",
@@ -1203,7 +1408,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1203
1408
  10: "border-l-[10px]",
1204
1409
  11: "border-l-[11px]",
1205
1410
  12: "border-l-[12px]"
1206
- }, jo = {
1411
+ }, yi = {
1207
1412
  1: "border-r-[1px]",
1208
1413
  2: "border-r-[2px]",
1209
1414
  3: "border-r-[3px]",
@@ -1216,7 +1421,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1216
1421
  10: "border-r-[10px]",
1217
1422
  11: "border-r-[11px]",
1218
1423
  12: "border-r-[12px]"
1219
- }, Go = (e) => Po[e.width] ?? "", Yo = (e) => zo[e.width] ?? "", Xo = (e) => Ho[e.width] ?? "", qo = (e) => $o[e.width] ?? "", Ko = (e) => Uo[e.width] ?? "", Zo = (e) => Wo[e.width] ?? "", Jo = (e) => jo[e.width] ?? "", Qo = {
1424
+ }, ki = (e) => pi[e.width] ?? "", wi = (e) => mi[e.width] ?? "", Ci = (e) => bi[e.width] ?? "", Ti = (e) => hi[e.width] ?? "", Ai = (e) => vi[e.width] ?? "", Si = (e) => xi[e.width] ?? "", Ei = (e) => yi[e.width] ?? "", Ri = {
1220
1425
  10: "opacity-10",
1221
1426
  20: "opacity-20",
1222
1427
  30: "opacity-30",
@@ -1227,7 +1432,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1227
1432
  80: "opacity-80",
1228
1433
  90: "opacity-90",
1229
1434
  100: "opacity-100"
1230
- }, ei = {
1435
+ }, Oi = {
1231
1436
  10: "bg-opacity-10",
1232
1437
  20: "bg-opacity-20",
1233
1438
  30: "bg-opacity-30",
@@ -1238,7 +1443,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1238
1443
  80: "bg-opacity-80",
1239
1444
  90: "bg-opacity-90",
1240
1445
  100: "bg-opacity-100"
1241
- }, ti = {
1446
+ }, _i = {
1242
1447
  10: "outline-opacity-10",
1243
1448
  20: "outline-opacity-20",
1244
1449
  30: "outline-opacity-30",
@@ -1249,7 +1454,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1249
1454
  80: "outline-opacity-80",
1250
1455
  90: "outline-opacity-90",
1251
1456
  100: "outline-opacity-100"
1252
- }, ri = (e) => Qo[e.opacity] ?? "", ni = (e) => ei[e.opacity] ?? "", oi = (e) => ti[e.opacity] ?? "", ii = y("", {
1457
+ }, Ni = (e) => Ri[e.opacity] ?? "", Li = (e) => Oi[e.opacity] ?? "", Di = (e) => _i[e.opacity] ?? "", Ii = v("", {
1253
1458
  variants: {
1254
1459
  spacing: {
1255
1460
  0: "m-0",
@@ -1264,7 +1469,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1264
1469
  "3xl": "m-3xl"
1265
1470
  }
1266
1471
  }
1267
- }), ai = y("", {
1472
+ }), Vi = v("", {
1268
1473
  variants: {
1269
1474
  spacing: {
1270
1475
  0: "mx-0",
@@ -1279,7 +1484,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1279
1484
  "3xl": "mx-3xl"
1280
1485
  }
1281
1486
  }
1282
- }), li = y("", {
1487
+ }), Bi = v("", {
1283
1488
  variants: {
1284
1489
  spacing: {
1285
1490
  0: "my-0",
@@ -1294,7 +1499,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1294
1499
  "3xl": "my-3xl"
1295
1500
  }
1296
1501
  }
1297
- }), si = y("", {
1502
+ }), Mi = v("", {
1298
1503
  variants: {
1299
1504
  spacing: {
1300
1505
  0: "mt-0",
@@ -1309,7 +1514,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1309
1514
  "3xl": "mt-3xl"
1310
1515
  }
1311
1516
  }
1312
- }), ci = y("", {
1517
+ }), Fi = v("", {
1313
1518
  variants: {
1314
1519
  spacing: {
1315
1520
  0: "mb-0",
@@ -1324,7 +1529,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1324
1529
  "3xl": "mb-3xl"
1325
1530
  }
1326
1531
  }
1327
- }), di = y("", {
1532
+ }), $i = v("", {
1328
1533
  variants: {
1329
1534
  spacing: {
1330
1535
  0: "ml-0",
@@ -1339,7 +1544,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1339
1544
  "3xl": "ml-3xl"
1340
1545
  }
1341
1546
  }
1342
- }), ui = y("", {
1547
+ }), Pi = v("", {
1343
1548
  variants: {
1344
1549
  spacing: {
1345
1550
  0: "mr-0",
@@ -1354,7 +1559,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1354
1559
  "3xl": "mr-3xl"
1355
1560
  }
1356
1561
  }
1357
- }), fi = y("", {
1562
+ }), zi = v("", {
1358
1563
  variants: {
1359
1564
  spacing: {
1360
1565
  0: "p-0",
@@ -1369,7 +1574,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1369
1574
  "3xl": "p-3xl"
1370
1575
  }
1371
1576
  }
1372
- }), gi = y("", {
1577
+ }), Hi = v("", {
1373
1578
  variants: {
1374
1579
  spacing: {
1375
1580
  0: "px-0",
@@ -1384,7 +1589,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1384
1589
  "3xl": "px-3xl"
1385
1590
  }
1386
1591
  }
1387
- }), pi = y("", {
1592
+ }), Ui = v("", {
1388
1593
  variants: {
1389
1594
  spacing: {
1390
1595
  0: "py-0",
@@ -1399,7 +1604,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1399
1604
  "3xl": "py-3xl"
1400
1605
  }
1401
1606
  }
1402
- }), hi = y("", {
1607
+ }), Wi = v("", {
1403
1608
  variants: {
1404
1609
  spacing: {
1405
1610
  0: "pt-0",
@@ -1414,7 +1619,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1414
1619
  "3xl": "pt-3xl"
1415
1620
  }
1416
1621
  }
1417
- }), mi = y("", {
1622
+ }), qi = v("", {
1418
1623
  variants: {
1419
1624
  spacing: {
1420
1625
  0: "pb-0",
@@ -1429,7 +1634,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1429
1634
  "3xl": "pb-3xl"
1430
1635
  }
1431
1636
  }
1432
- }), bi = y("", {
1637
+ }), ji = v("", {
1433
1638
  variants: {
1434
1639
  spacing: {
1435
1640
  0: "pl-0",
@@ -1444,7 +1649,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1444
1649
  "3xl": "pl-3xl"
1445
1650
  }
1446
1651
  }
1447
- }), xi = y("", {
1652
+ }), Gi = v("", {
1448
1653
  variants: {
1449
1654
  spacing: {
1450
1655
  0: "pr-0",
@@ -1459,7 +1664,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1459
1664
  "3xl": "pr-3xl"
1460
1665
  }
1461
1666
  }
1462
- }), yi = y("", {
1667
+ }), Yi = v("", {
1463
1668
  variants: {
1464
1669
  spacing: {
1465
1670
  0: "gap-0",
@@ -1474,267 +1679,267 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
1474
1679
  "3xl": "gap-3xl"
1475
1680
  }
1476
1681
  }
1477
- }), Or = {
1682
+ }), zr = {
1478
1683
  // color
1479
- bgColorVariant: to,
1480
- hoverBgColorVariant: ro,
1481
- focusBgColorVariant: no,
1482
- beforeBgColorVariant: oo,
1483
- afterBgColorVariant: io,
1484
- activeBgColorVariant: ao,
1485
- textColorVariant: lo,
1486
- hoverTextColorVariant: so,
1487
- focusTextColorVariant: co,
1488
- disabledTextColorVariant: uo,
1489
- svgFillColorVariant: fo,
1490
- ringColorVariant: go,
1491
- focusRingColorVariant: po,
1492
- activeRingColorVariant: ho,
1493
- peerCheckedBgColorVariant: mo,
1494
- peerFocusVisibleRingColorVariant: bo,
1495
- focusVisibleRingColorVariant: xo,
1496
- ringOffsetColorVariant: yo,
1497
- outlineColorVariant: vo,
1498
- focusOutlineColorVariant: ko,
1499
- activeOutlineColorVariant: wo,
1500
- btnColorVariant: Co,
1501
- listColorVariant: To,
1502
- borderColorVariant: Ao,
1503
- borderXColorVariant: So,
1504
- borderYColorVariant: Eo,
1505
- borderTopColorVariant: Ro,
1506
- borderBottomColorVariant: Oo,
1507
- borderLeftColorVariant: No,
1508
- borderRightColorVariant: Lo,
1684
+ bgColorVariant: No,
1685
+ hoverBgColorVariant: Lo,
1686
+ focusBgColorVariant: Do,
1687
+ beforeBgColorVariant: Io,
1688
+ afterBgColorVariant: Vo,
1689
+ activeBgColorVariant: Bo,
1690
+ textColorVariant: Mo,
1691
+ hoverTextColorVariant: Fo,
1692
+ focusTextColorVariant: $o,
1693
+ disabledTextColorVariant: Po,
1694
+ svgFillColorVariant: zo,
1695
+ ringColorVariant: Ho,
1696
+ focusRingColorVariant: Uo,
1697
+ activeRingColorVariant: Wo,
1698
+ peerCheckedBgColorVariant: qo,
1699
+ peerFocusVisibleRingColorVariant: jo,
1700
+ focusVisibleRingColorVariant: Go,
1701
+ ringOffsetColorVariant: Yo,
1702
+ outlineColorVariant: Xo,
1703
+ focusOutlineColorVariant: Ko,
1704
+ activeOutlineColorVariant: Zo,
1705
+ btnColorVariant: Jo,
1706
+ listColorVariant: Qo,
1707
+ borderColorVariant: ei,
1708
+ borderXColorVariant: ti,
1709
+ borderYColorVariant: ri,
1710
+ borderTopColorVariant: ni,
1711
+ borderBottomColorVariant: oi,
1712
+ borderLeftColorVariant: ii,
1713
+ borderRightColorVariant: ai,
1509
1714
  // typography
1510
- bodyTextVariant: Do,
1511
- fontWeightVariant: _o,
1512
- textAlignVariant: Vo,
1513
- h1Variant: Io,
1514
- h2Variant: Mo,
1515
- h3Variant: Bo,
1516
- h4Variant: Fo,
1715
+ bodyTextVariant: li,
1716
+ fontWeightVariant: si,
1717
+ textAlignVariant: ci,
1718
+ h1Variant: di,
1719
+ h2Variant: ui,
1720
+ h3Variant: fi,
1721
+ h4Variant: gi,
1517
1722
  // border width
1518
- borderWidthVariant: Go,
1519
- borderXWidthVariant: Yo,
1520
- borderYWidthVariant: Xo,
1521
- borderTopWidthVariant: qo,
1522
- borderBottomWidthVariant: Ko,
1523
- borderLeftWidthVariant: Zo,
1524
- borderRightWidthVariant: Jo,
1723
+ borderWidthVariant: ki,
1724
+ borderXWidthVariant: wi,
1725
+ borderYWidthVariant: Ci,
1726
+ borderTopWidthVariant: Ti,
1727
+ borderBottomWidthVariant: Ai,
1728
+ borderLeftWidthVariant: Si,
1729
+ borderRightWidthVariant: Ei,
1525
1730
  // opacity
1526
- opacityVariant: ri,
1527
- bgOpacityVariant: ni,
1528
- outlineOpacityVariant: oi,
1731
+ opacityVariant: Ni,
1732
+ bgOpacityVariant: Li,
1733
+ outlineOpacityVariant: Di,
1529
1734
  // spacing
1530
- marginVariant: ii,
1531
- marginXVariant: ai,
1532
- marginYVariant: li,
1533
- marginTopVariant: si,
1534
- marginBottomVariant: ci,
1535
- marginLeftVariant: di,
1536
- marginRightVariant: ui,
1537
- paddingVariant: fi,
1538
- paddingXVariant: gi,
1539
- paddingYVariant: pi,
1540
- paddingTopVariant: hi,
1541
- paddingBottomVariant: mi,
1542
- paddingLeftVariant: bi,
1543
- paddingRightVariant: xi,
1544
- gapVariant: yi
1545
- }, vi = (e, t, r) => !t || !(t instanceof Node) || e === t || e.contains(t) ? !1 : r?.length ? !r.some(
1735
+ marginVariant: Ii,
1736
+ marginXVariant: Vi,
1737
+ marginYVariant: Bi,
1738
+ marginTopVariant: Mi,
1739
+ marginBottomVariant: Fi,
1740
+ marginLeftVariant: $i,
1741
+ marginRightVariant: Pi,
1742
+ paddingVariant: zi,
1743
+ paddingXVariant: Hi,
1744
+ paddingYVariant: Ui,
1745
+ paddingTopVariant: Wi,
1746
+ paddingBottomVariant: qi,
1747
+ paddingLeftVariant: ji,
1748
+ paddingRightVariant: Gi,
1749
+ gapVariant: Yi
1750
+ }, Xi = (e, t, r) => !t || !(t instanceof Node) || e === t || e.contains(t) ? !1 : r?.length ? !r.some(
1546
1751
  (n) => n === t || n.contains(t)
1547
- ) : !0, vt = (e) => typeof e.value == "function" ? {
1752
+ ) : !0, wt = (e) => typeof e.value == "function" ? {
1548
1753
  handler: e.value,
1549
1754
  events: ["click"]
1550
1755
  } : {
1551
1756
  handler: e.value.handler,
1552
1757
  events: e.value.events || ["click"],
1553
1758
  excludeElements: e.value.excludeElements
1554
- }, Nr = (e, t, r) => (n) => {
1555
- vi(e, n.target, r) && t(n);
1556
- }, ki = {
1759
+ }, Hr = (e, t, r) => (n) => {
1760
+ Xi(e, n.target, r) && t(n);
1761
+ }, Ki = {
1557
1762
  mounted(e, t) {
1558
- const { handler: r, events: n, excludeElements: i } = vt(t);
1559
- e.__ClickOutsideHandler = Nr(e, r, i), n.forEach((a) => {
1763
+ const { handler: r, events: n, excludeElements: i } = wt(t);
1764
+ e.__ClickOutsideHandler = Hr(e, r, i), n.forEach((a) => {
1560
1765
  document.addEventListener(a, e.__ClickOutsideHandler, !0);
1561
1766
  });
1562
1767
  },
1563
1768
  updated(e, t) {
1564
- e.__ClickOutsideHandler && vt({
1769
+ e.__ClickOutsideHandler && wt({
1565
1770
  ...t,
1566
1771
  value: t.oldValue
1567
1772
  }).events.forEach((a) => {
1568
1773
  document.removeEventListener(a, e.__ClickOutsideHandler, !0);
1569
1774
  });
1570
- const { handler: r, events: n, excludeElements: i } = vt(t);
1571
- e.__ClickOutsideHandler = Nr(e, r, i), n.forEach((a) => {
1775
+ const { handler: r, events: n, excludeElements: i } = wt(t);
1776
+ e.__ClickOutsideHandler = Hr(e, r, i), n.forEach((a) => {
1572
1777
  document.addEventListener(a, e.__ClickOutsideHandler, !0);
1573
1778
  });
1574
1779
  },
1575
1780
  unmounted(e, t) {
1576
1781
  if (e.__ClickOutsideHandler) {
1577
- const { events: r } = vt(t);
1782
+ const { events: r } = wt(t);
1578
1783
  r.forEach((n) => {
1579
1784
  document.removeEventListener(n, e.__ClickOutsideHandler, !0);
1580
1785
  }), delete e.__ClickOutsideHandler;
1581
1786
  }
1582
1787
  }
1583
1788
  }, {
1584
- entries: cn,
1585
- setPrototypeOf: Lr,
1586
- isFrozen: wi,
1587
- getPrototypeOf: Ci,
1588
- getOwnPropertyDescriptor: Ti
1789
+ entries: wn,
1790
+ setPrototypeOf: Ur,
1791
+ isFrozen: Zi,
1792
+ getPrototypeOf: Ji,
1793
+ getOwnPropertyDescriptor: Qi
1589
1794
  } = Object;
1590
1795
  let {
1591
- freeze: te,
1592
- seal: ae,
1593
- create: je
1796
+ freeze: ae,
1797
+ seal: ue,
1798
+ create: Qe
1594
1799
  } = Object, {
1595
- apply: Qt,
1596
- construct: er
1800
+ apply: lr,
1801
+ construct: sr
1597
1802
  } = typeof Reflect < "u" && Reflect;
1598
- te || (te = function(e) {
1803
+ ae || (ae = function(e) {
1599
1804
  return e;
1600
1805
  });
1601
- ae || (ae = function(e) {
1806
+ ue || (ue = function(e) {
1602
1807
  return e;
1603
1808
  });
1604
- Qt || (Qt = function(e, t) {
1809
+ lr || (lr = function(e, t) {
1605
1810
  for (var r = arguments.length, n = new Array(r > 2 ? r - 2 : 0), i = 2; i < r; i++)
1606
1811
  n[i - 2] = arguments[i];
1607
1812
  return e.apply(t, n);
1608
1813
  });
1609
- er || (er = function(e) {
1814
+ sr || (sr = function(e) {
1610
1815
  for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
1611
1816
  r[n - 1] = arguments[n];
1612
1817
  return new e(...r);
1613
1818
  });
1614
- const rt = U(Array.prototype.forEach), Ai = U(Array.prototype.lastIndexOf), Dr = U(Array.prototype.pop), nt = U(Array.prototype.push), Si = U(Array.prototype.splice), ee = Array.isArray, lt = U(String.prototype.toLowerCase), Yt = U(String.prototype.toString), _r = U(String.prototype.match), We = U(String.prototype.replace), Vr = U(String.prototype.indexOf), Ei = U(String.prototype.trim), Ri = U(Number.prototype.toString), Oi = U(Boolean.prototype.toString), Ir = typeof BigInt > "u" ? null : U(BigInt.prototype.toString), Mr = typeof Symbol > "u" ? null : U(Symbol.prototype.toString), z = U(Object.prototype.hasOwnProperty), ot = U(Object.prototype.toString), Z = U(RegExp.prototype.test), kt = Ni(TypeError);
1615
- function U(e) {
1819
+ const st = q(Array.prototype.forEach), ea = q(Array.prototype.lastIndexOf), Wr = q(Array.prototype.pop), ct = q(Array.prototype.push), ta = q(Array.prototype.splice), oe = Array.isArray, gt = q(String.prototype.toLowerCase), Qt = q(String.prototype.toString), qr = q(String.prototype.match), Je = q(String.prototype.replace), jr = q(String.prototype.indexOf), ra = q(String.prototype.trim), na = q(Number.prototype.toString), oa = q(Boolean.prototype.toString), Gr = typeof BigInt > "u" ? null : q(BigInt.prototype.toString), Yr = typeof Symbol > "u" ? null : q(Symbol.prototype.toString), $ = q(Object.prototype.hasOwnProperty), dt = q(Object.prototype.toString), ee = q(RegExp.prototype.test), Ct = ia(TypeError);
1820
+ function q(e) {
1616
1821
  return function(t) {
1617
1822
  t instanceof RegExp && (t.lastIndex = 0);
1618
1823
  for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
1619
1824
  n[i - 1] = arguments[i];
1620
- return Qt(e, t, n);
1825
+ return lr(e, t, n);
1621
1826
  };
1622
1827
  }
1623
- function Ni(e) {
1828
+ function ia(e) {
1624
1829
  return function() {
1625
1830
  for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
1626
1831
  r[n] = arguments[n];
1627
- return er(e, r);
1832
+ return sr(e, r);
1628
1833
  };
1629
1834
  }
1630
- function T(e, t) {
1631
- let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : lt;
1632
- if (Lr && Lr(e, null), !ee(t))
1835
+ function A(e, t) {
1836
+ let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : gt;
1837
+ if (Ur && Ur(e, null), !oe(t))
1633
1838
  return e;
1634
1839
  let n = t.length;
1635
1840
  for (; n--; ) {
1636
1841
  let i = t[n];
1637
1842
  if (typeof i == "string") {
1638
1843
  const a = r(i);
1639
- a !== i && (wi(t) || (t[n] = a), i = a);
1844
+ a !== i && (Zi(t) || (t[n] = a), i = a);
1640
1845
  }
1641
1846
  e[i] = !0;
1642
1847
  }
1643
1848
  return e;
1644
1849
  }
1645
- function Li(e) {
1850
+ function aa(e) {
1646
1851
  for (let t = 0; t < e.length; t++)
1647
- z(e, t) || (e[t] = null);
1852
+ $(e, t) || (e[t] = null);
1648
1853
  return e;
1649
1854
  }
1650
- function ne(e) {
1651
- const t = je(null);
1652
- for (const [r, n] of cn(e))
1653
- z(e, r) && (ee(n) ? t[r] = Li(n) : n && typeof n == "object" && n.constructor === Object ? t[r] = ne(n) : t[r] = n);
1855
+ function se(e) {
1856
+ const t = Qe(null);
1857
+ for (const [r, n] of wn(e))
1858
+ $(e, r) && (oe(n) ? t[r] = aa(n) : n && typeof n == "object" && n.constructor === Object ? t[r] = se(n) : t[r] = n);
1654
1859
  return t;
1655
1860
  }
1656
- function Di(e) {
1861
+ function la(e) {
1657
1862
  switch (typeof e) {
1658
1863
  case "string":
1659
1864
  return e;
1660
1865
  case "number":
1661
- return Ri(e);
1866
+ return na(e);
1662
1867
  case "boolean":
1663
- return Oi(e);
1868
+ return oa(e);
1664
1869
  case "bigint":
1665
- return Ir ? Ir(e) : "0";
1870
+ return Gr ? Gr(e) : "0";
1666
1871
  case "symbol":
1667
- return Mr ? Mr(e) : "Symbol()";
1872
+ return Yr ? Yr(e) : "Symbol()";
1668
1873
  case "undefined":
1669
- return ot(e);
1874
+ return dt(e);
1670
1875
  case "function":
1671
1876
  case "object": {
1672
1877
  if (e === null)
1673
- return ot(e);
1674
- const t = e, r = Ge(t, "toString");
1878
+ return dt(e);
1879
+ const t = e, r = et(t, "toString");
1675
1880
  if (typeof r == "function") {
1676
1881
  const n = r(t);
1677
- return typeof n == "string" ? n : ot(n);
1882
+ return typeof n == "string" ? n : dt(n);
1678
1883
  }
1679
- return ot(e);
1884
+ return dt(e);
1680
1885
  }
1681
1886
  default:
1682
- return ot(e);
1887
+ return dt(e);
1683
1888
  }
1684
1889
  }
1685
- function Ge(e, t) {
1890
+ function et(e, t) {
1686
1891
  for (; e !== null; ) {
1687
- const n = Ti(e, t);
1892
+ const n = Qi(e, t);
1688
1893
  if (n) {
1689
1894
  if (n.get)
1690
- return U(n.get);
1895
+ return q(n.get);
1691
1896
  if (typeof n.value == "function")
1692
- return U(n.value);
1897
+ return q(n.value);
1693
1898
  }
1694
- e = Ci(e);
1899
+ e = Ji(e);
1695
1900
  }
1696
1901
  function r() {
1697
1902
  return null;
1698
1903
  }
1699
1904
  return r;
1700
1905
  }
1701
- function _i(e) {
1906
+ function sa(e) {
1702
1907
  try {
1703
- return Z(e, ""), !0;
1908
+ return ee(e, ""), !0;
1704
1909
  } catch {
1705
1910
  return !1;
1706
1911
  }
1707
1912
  }
1708
- const Br = te(["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", "search", "section", "select", "shadow", "slot", "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"]), Xt = te(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), qt = te(["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"]), Vi = te(["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"]), Kt = te(["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"]), Ii = te(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Fr = te(["#text"]), Pr = te(["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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), Zt = te(["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", "mask-type", "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"]), zr = te(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "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"]), wt = te(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Mi = ae(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Bi = ae(/<%[\w\W]*|[\w\W]*%>/gm), Fi = ae(/\$\{[\w\W]*/gm), Pi = ae(/^data-[\-\w.\u00B7-\uFFFF]+$/), zi = ae(/^aria-[\-\w]+$/), dn = ae(
1913
+ const Xr = ae(["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", "search", "section", "select", "shadow", "slot", "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"]), er = ae(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), tr = ae(["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"]), ca = ae(["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"]), rr = ae(["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"]), da = ae(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Kr = ae(["#text"]), Zr = ae(["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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), nr = ae(["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", "mask-type", "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"]), Jr = ae(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "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"]), Tt = ae(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ua = ue(/\{\{[\w\W]*|[\w\W]*\}\}/gm), fa = ue(/<%[\w\W]*|[\w\W]*%>/gm), ga = ue(/\$\{[\w\W]*/gm), pa = ue(/^data-[\-\w.\u00B7-\uFFFF]+$/), ma = ue(/^aria-[\-\w]+$/), Cn = ue(
1709
1914
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
1710
1915
  // eslint-disable-line no-useless-escape
1711
- ), Hi = ae(/^(?:\w+script|data):/i), $i = ae(
1916
+ ), ba = ue(/^(?:\w+script|data):/i), ha = ue(
1712
1917
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
1713
1918
  // eslint-disable-line no-control-regex
1714
- ), un = ae(/^html$/i), Ui = ae(/^[a-z][.\w]*(-[.\w]+)+$/i);
1715
- var Hr = /* @__PURE__ */ Object.freeze({
1919
+ ), Tn = ue(/^html$/i), va = ue(/^[a-z][.\w]*(-[.\w]+)+$/i);
1920
+ var Qr = /* @__PURE__ */ Object.freeze({
1716
1921
  __proto__: null,
1717
- ARIA_ATTR: zi,
1718
- ATTR_WHITESPACE: $i,
1719
- CUSTOM_ELEMENT: Ui,
1720
- DATA_ATTR: Pi,
1721
- DOCTYPE_NAME: un,
1722
- ERB_EXPR: Bi,
1723
- IS_ALLOWED_URI: dn,
1724
- IS_SCRIPT_OR_DATA: Hi,
1725
- MUSTACHE_EXPR: Mi,
1726
- TMPLIT_EXPR: Fi
1922
+ ARIA_ATTR: ma,
1923
+ ATTR_WHITESPACE: ha,
1924
+ CUSTOM_ELEMENT: va,
1925
+ DATA_ATTR: pa,
1926
+ DOCTYPE_NAME: Tn,
1927
+ ERB_EXPR: fa,
1928
+ IS_ALLOWED_URI: Cn,
1929
+ IS_SCRIPT_OR_DATA: ba,
1930
+ MUSTACHE_EXPR: ua,
1931
+ TMPLIT_EXPR: ga
1727
1932
  });
1728
- const it = {
1933
+ const ut = {
1729
1934
  element: 1,
1730
1935
  text: 3,
1731
1936
  // Deprecated
1732
1937
  progressingInstruction: 7,
1733
1938
  comment: 8,
1734
1939
  document: 9
1735
- }, Wi = function() {
1940
+ }, xa = function() {
1736
1941
  return typeof window > "u" ? null : window;
1737
- }, ji = function(e, t) {
1942
+ }, ya = function(e, t) {
1738
1943
  if (typeof e != "object" || typeof e.createPolicy != "function")
1739
1944
  return null;
1740
1945
  let r = null;
@@ -1753,7 +1958,7 @@ const it = {
1753
1958
  } catch {
1754
1959
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
1755
1960
  }
1756
- }, $r = function() {
1961
+ }, en = function() {
1757
1962
  return {
1758
1963
  afterSanitizeAttributes: [],
1759
1964
  afterSanitizeElements: [],
@@ -1766,10 +1971,10 @@ const it = {
1766
1971
  uponSanitizeShadowNode: []
1767
1972
  };
1768
1973
  };
1769
- function fn() {
1770
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Wi();
1771
- const t = (o) => fn(o);
1772
- if (t.version = "3.4.2", t.removed = [], !e || !e.document || e.document.nodeType !== it.document || !e.Element)
1974
+ function An() {
1975
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : xa();
1976
+ const t = (o) => An(o);
1977
+ if (t.version = "3.4.2", t.removed = [], !e || !e.document || e.document.nodeType !== ut.document || !e.Element)
1773
1978
  return t.isSupported = !1, t;
1774
1979
  let {
1775
1980
  document: r
@@ -1777,46 +1982,46 @@ function fn() {
1777
1982
  const n = r, i = n.currentScript, {
1778
1983
  DocumentFragment: a,
1779
1984
  HTMLTemplateElement: l,
1780
- Node: d,
1781
- Element: p,
1985
+ Node: s,
1986
+ Element: u,
1782
1987
  NodeFilter: c,
1783
1988
  NamedNodeMap: f = e.NamedNodeMap || e.MozNamedAttrMap,
1784
- HTMLFormElement: s,
1989
+ HTMLFormElement: m,
1785
1990
  DOMParser: g,
1786
- trustedTypes: u
1787
- } = e, b = p.prototype, w = Ge(b, "cloneNode"), C = Ge(b, "remove"), v = Ge(b, "nextSibling"), S = Ge(b, "childNodes"), E = Ge(b, "parentNode");
1991
+ trustedTypes: b
1992
+ } = e, x = u.prototype, k = et(x, "cloneNode"), y = et(x, "remove"), w = et(x, "nextSibling"), E = et(x, "childNodes"), R = et(x, "parentNode");
1788
1993
  if (typeof l == "function") {
1789
1994
  const o = r.createElement("template");
1790
1995
  o.content && o.content.ownerDocument && (r = o.content.ownerDocument);
1791
1996
  }
1792
- let A, F = "";
1997
+ let C, V = "";
1793
1998
  const {
1794
- implementation: P,
1795
- createNodeIterator: L,
1796
- createDocumentFragment: J,
1797
- getElementsByTagName: le
1999
+ implementation: M,
2000
+ createNodeIterator: N,
2001
+ createDocumentFragment: Z,
2002
+ getElementsByTagName: fe
1798
2003
  } = r, {
1799
- importNode: ue
2004
+ importNode: he
1800
2005
  } = n;
1801
- let I = $r();
1802
- t.isSupported = typeof cn == "function" && typeof E == "function" && P && P.createHTMLDocument !== void 0;
2006
+ let U = en();
2007
+ t.isSupported = typeof wn == "function" && typeof R == "function" && M && M.createHTMLDocument !== void 0;
1803
2008
  const {
1804
- MUSTACHE_EXPR: fe,
1805
- ERB_EXPR: ve,
2009
+ MUSTACHE_EXPR: ve,
2010
+ ERB_EXPR: Ae,
1806
2011
  TMPLIT_EXPR: re,
1807
- DATA_ATTR: Ne,
1808
- ARIA_ATTR: ke,
1809
- IS_SCRIPT_OR_DATA: se,
1810
- ATTR_WHITESPACE: x,
1811
- CUSTOM_ELEMENT: k
1812
- } = Hr;
2012
+ DATA_ATTR: T,
2013
+ ARIA_ATTR: L,
2014
+ IS_SCRIPT_OR_DATA: B,
2015
+ ATTR_WHITESPACE: W,
2016
+ CUSTOM_ELEMENT: le
2017
+ } = Qr;
1813
2018
  let {
1814
- IS_ALLOWED_URI: V
1815
- } = Hr, D = null;
1816
- const oe = T({}, [...Br, ...Xt, ...qt, ...Kt, ...Fr]);
1817
- let j = null;
1818
- const gt = T({}, [...Pr, ...Zt, ...zr, ...wt]);
1819
- let _ = Object.seal(je(null, {
2019
+ IS_ALLOWED_URI: bt
2020
+ } = Qr, Y = null;
2021
+ const br = A({}, [...Xr, ...er, ...tr, ...rr, ...Kr]);
2022
+ let J = null;
2023
+ const hr = A({}, [...Zr, ...nr, ...Jr, ...Tt]);
2024
+ let z = Object.seal(Qe(null, {
1820
2025
  tagNameCheck: {
1821
2026
  writable: !0,
1822
2027
  configurable: !1,
@@ -1835,8 +2040,8 @@ function fn() {
1835
2040
  enumerable: !0,
1836
2041
  value: !1
1837
2042
  }
1838
- })), Je = null, pt = null;
1839
- const Ae = Object.seal(je(null, {
2043
+ })), ot = null, ht = null;
2044
+ const Re = Object.seal(Qe(null, {
1840
2045
  tagCheck: {
1841
2046
  writable: !0,
1842
2047
  configurable: !1,
@@ -1850,335 +2055,335 @@ function fn() {
1850
2055
  value: null
1851
2056
  }
1852
2057
  }));
1853
- let lr = !0, Vt = !0, sr = !1, cr = !0, Le = !1, Qe = !0, De = !1, It = !1, Mt = !1, Pe = !1, ht = !1, mt = !1, dr = !0, ur = !1;
1854
- const fr = "user-content-";
1855
- let Bt = !0, et = !1, ze = {}, ge = null;
1856
- const Ft = T({}, ["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"]);
1857
- let gr = null;
1858
- const pr = T({}, ["audio", "video", "img", "source", "image", "track"]);
1859
- let Pt = null;
1860
- const hr = T({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), bt = "http://www.w3.org/1998/Math/MathML", xt = "http://www.w3.org/2000/svg", pe = "http://www.w3.org/1999/xhtml";
1861
- let He = pe, zt = !1, Ht = null;
1862
- const Tn = T({}, [bt, xt, pe], Yt);
1863
- let $t = T({}, ["mi", "mo", "mn", "ms", "mtext"]), Ut = T({}, ["annotation-xml"]);
1864
- const An = T({}, ["title", "style", "font", "a", "script"]);
1865
- let tt = null;
1866
- const Sn = ["application/xhtml+xml", "text/html"], En = "text/html";
1867
- let G = null, $e = null;
1868
- const Rn = r.createElement("form"), mr = function(o) {
2058
+ let vr = !0, Pt = !0, xr = !1, yr = !0, Ve = !1, it = !0, Be = !1, zt = !1, Ht = !1, Ge = !1, vt = !1, xt = !1, kr = !0, wr = !1;
2059
+ const Cr = "user-content-";
2060
+ let Ut = !0, at = !1, Ye = {}, xe = null;
2061
+ const Wt = A({}, ["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"]);
2062
+ let Tr = null;
2063
+ const Ar = A({}, ["audio", "video", "img", "source", "image", "track"]);
2064
+ let qt = null;
2065
+ const Sr = A({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), yt = "http://www.w3.org/1998/Math/MathML", kt = "http://www.w3.org/2000/svg", ye = "http://www.w3.org/1999/xhtml";
2066
+ let Xe = ye, jt = !1, Gt = null;
2067
+ const Mn = A({}, [yt, kt, ye], Qt);
2068
+ let Yt = A({}, ["mi", "mo", "mn", "ms", "mtext"]), Xt = A({}, ["annotation-xml"]);
2069
+ const Fn = A({}, ["title", "style", "font", "a", "script"]);
2070
+ let lt = null;
2071
+ const $n = ["application/xhtml+xml", "text/html"], Pn = "text/html";
2072
+ let G = null, Ke = null;
2073
+ const zn = r.createElement("form"), Er = function(o) {
1869
2074
  return o instanceof RegExp || o instanceof Function;
1870
- }, Wt = function() {
2075
+ }, Kt = function() {
1871
2076
  let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1872
- if ($e && $e === o)
2077
+ if (Ke && Ke === o)
1873
2078
  return;
1874
- (!o || typeof o != "object") && (o = {}), o = ne(o), tt = // eslint-disable-next-line unicorn/prefer-includes
1875
- Sn.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? En : o.PARSER_MEDIA_TYPE, G = tt === "application/xhtml+xml" ? Yt : lt, D = z(o, "ALLOWED_TAGS") && ee(o.ALLOWED_TAGS) ? T({}, o.ALLOWED_TAGS, G) : oe, j = z(o, "ALLOWED_ATTR") && ee(o.ALLOWED_ATTR) ? T({}, o.ALLOWED_ATTR, G) : gt, Ht = z(o, "ALLOWED_NAMESPACES") && ee(o.ALLOWED_NAMESPACES) ? T({}, o.ALLOWED_NAMESPACES, Yt) : Tn, Pt = z(o, "ADD_URI_SAFE_ATTR") && ee(o.ADD_URI_SAFE_ATTR) ? T(ne(hr), o.ADD_URI_SAFE_ATTR, G) : hr, gr = z(o, "ADD_DATA_URI_TAGS") && ee(o.ADD_DATA_URI_TAGS) ? T(ne(pr), o.ADD_DATA_URI_TAGS, G) : pr, ge = z(o, "FORBID_CONTENTS") && ee(o.FORBID_CONTENTS) ? T({}, o.FORBID_CONTENTS, G) : Ft, Je = z(o, "FORBID_TAGS") && ee(o.FORBID_TAGS) ? T({}, o.FORBID_TAGS, G) : ne({}), pt = z(o, "FORBID_ATTR") && ee(o.FORBID_ATTR) ? T({}, o.FORBID_ATTR, G) : ne({}), ze = z(o, "USE_PROFILES") ? o.USE_PROFILES && typeof o.USE_PROFILES == "object" ? ne(o.USE_PROFILES) : o.USE_PROFILES : !1, lr = o.ALLOW_ARIA_ATTR !== !1, Vt = o.ALLOW_DATA_ATTR !== !1, sr = o.ALLOW_UNKNOWN_PROTOCOLS || !1, cr = o.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Le = o.SAFE_FOR_TEMPLATES || !1, Qe = o.SAFE_FOR_XML !== !1, De = o.WHOLE_DOCUMENT || !1, Pe = o.RETURN_DOM || !1, ht = o.RETURN_DOM_FRAGMENT || !1, mt = o.RETURN_TRUSTED_TYPE || !1, Mt = o.FORCE_BODY || !1, dr = o.SANITIZE_DOM !== !1, ur = o.SANITIZE_NAMED_PROPS || !1, Bt = o.KEEP_CONTENT !== !1, et = o.IN_PLACE || !1, V = _i(o.ALLOWED_URI_REGEXP) ? o.ALLOWED_URI_REGEXP : dn, He = typeof o.NAMESPACE == "string" ? o.NAMESPACE : pe, $t = z(o, "MATHML_TEXT_INTEGRATION_POINTS") && o.MATHML_TEXT_INTEGRATION_POINTS && typeof o.MATHML_TEXT_INTEGRATION_POINTS == "object" ? ne(o.MATHML_TEXT_INTEGRATION_POINTS) : T({}, ["mi", "mo", "mn", "ms", "mtext"]), Ut = z(o, "HTML_INTEGRATION_POINTS") && o.HTML_INTEGRATION_POINTS && typeof o.HTML_INTEGRATION_POINTS == "object" ? ne(o.HTML_INTEGRATION_POINTS) : T({}, ["annotation-xml"]);
1876
- const h = z(o, "CUSTOM_ELEMENT_HANDLING") && o.CUSTOM_ELEMENT_HANDLING && typeof o.CUSTOM_ELEMENT_HANDLING == "object" ? ne(o.CUSTOM_ELEMENT_HANDLING) : je(null);
1877
- if (_ = je(null), z(h, "tagNameCheck") && mr(h.tagNameCheck) && (_.tagNameCheck = h.tagNameCheck), z(h, "attributeNameCheck") && mr(h.attributeNameCheck) && (_.attributeNameCheck = h.attributeNameCheck), z(h, "allowCustomizedBuiltInElements") && typeof h.allowCustomizedBuiltInElements == "boolean" && (_.allowCustomizedBuiltInElements = h.allowCustomizedBuiltInElements), Le && (Vt = !1), ht && (Pe = !0), ze && (D = T({}, Fr), j = je(null), ze.html === !0 && (T(D, Br), T(j, Pr)), ze.svg === !0 && (T(D, Xt), T(j, Zt), T(j, wt)), ze.svgFilters === !0 && (T(D, qt), T(j, Zt), T(j, wt)), ze.mathMl === !0 && (T(D, Kt), T(j, zr), T(j, wt))), Ae.tagCheck = null, Ae.attributeCheck = null, z(o, "ADD_TAGS") && (typeof o.ADD_TAGS == "function" ? Ae.tagCheck = o.ADD_TAGS : ee(o.ADD_TAGS) && (D === oe && (D = ne(D)), T(D, o.ADD_TAGS, G))), z(o, "ADD_ATTR") && (typeof o.ADD_ATTR == "function" ? Ae.attributeCheck = o.ADD_ATTR : ee(o.ADD_ATTR) && (j === gt && (j = ne(j)), T(j, o.ADD_ATTR, G))), z(o, "ADD_URI_SAFE_ATTR") && ee(o.ADD_URI_SAFE_ATTR) && T(Pt, o.ADD_URI_SAFE_ATTR, G), z(o, "FORBID_CONTENTS") && ee(o.FORBID_CONTENTS) && (ge === Ft && (ge = ne(ge)), T(ge, o.FORBID_CONTENTS, G)), z(o, "ADD_FORBID_CONTENTS") && ee(o.ADD_FORBID_CONTENTS) && (ge === Ft && (ge = ne(ge)), T(ge, o.ADD_FORBID_CONTENTS, G)), Bt && (D["#text"] = !0), De && T(D, ["html", "head", "body"]), D.table && (T(D, ["tbody"]), delete Je.tbody), o.TRUSTED_TYPES_POLICY) {
2079
+ (!o || typeof o != "object") && (o = {}), o = se(o), lt = // eslint-disable-next-line unicorn/prefer-includes
2080
+ $n.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? Pn : o.PARSER_MEDIA_TYPE, G = lt === "application/xhtml+xml" ? Qt : gt, Y = $(o, "ALLOWED_TAGS") && oe(o.ALLOWED_TAGS) ? A({}, o.ALLOWED_TAGS, G) : br, J = $(o, "ALLOWED_ATTR") && oe(o.ALLOWED_ATTR) ? A({}, o.ALLOWED_ATTR, G) : hr, Gt = $(o, "ALLOWED_NAMESPACES") && oe(o.ALLOWED_NAMESPACES) ? A({}, o.ALLOWED_NAMESPACES, Qt) : Mn, qt = $(o, "ADD_URI_SAFE_ATTR") && oe(o.ADD_URI_SAFE_ATTR) ? A(se(Sr), o.ADD_URI_SAFE_ATTR, G) : Sr, Tr = $(o, "ADD_DATA_URI_TAGS") && oe(o.ADD_DATA_URI_TAGS) ? A(se(Ar), o.ADD_DATA_URI_TAGS, G) : Ar, xe = $(o, "FORBID_CONTENTS") && oe(o.FORBID_CONTENTS) ? A({}, o.FORBID_CONTENTS, G) : Wt, ot = $(o, "FORBID_TAGS") && oe(o.FORBID_TAGS) ? A({}, o.FORBID_TAGS, G) : se({}), ht = $(o, "FORBID_ATTR") && oe(o.FORBID_ATTR) ? A({}, o.FORBID_ATTR, G) : se({}), Ye = $(o, "USE_PROFILES") ? o.USE_PROFILES && typeof o.USE_PROFILES == "object" ? se(o.USE_PROFILES) : o.USE_PROFILES : !1, vr = o.ALLOW_ARIA_ATTR !== !1, Pt = o.ALLOW_DATA_ATTR !== !1, xr = o.ALLOW_UNKNOWN_PROTOCOLS || !1, yr = o.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ve = o.SAFE_FOR_TEMPLATES || !1, it = o.SAFE_FOR_XML !== !1, Be = o.WHOLE_DOCUMENT || !1, Ge = o.RETURN_DOM || !1, vt = o.RETURN_DOM_FRAGMENT || !1, xt = o.RETURN_TRUSTED_TYPE || !1, Ht = o.FORCE_BODY || !1, kr = o.SANITIZE_DOM !== !1, wr = o.SANITIZE_NAMED_PROPS || !1, Ut = o.KEEP_CONTENT !== !1, at = o.IN_PLACE || !1, bt = sa(o.ALLOWED_URI_REGEXP) ? o.ALLOWED_URI_REGEXP : Cn, Xe = typeof o.NAMESPACE == "string" ? o.NAMESPACE : ye, Yt = $(o, "MATHML_TEXT_INTEGRATION_POINTS") && o.MATHML_TEXT_INTEGRATION_POINTS && typeof o.MATHML_TEXT_INTEGRATION_POINTS == "object" ? se(o.MATHML_TEXT_INTEGRATION_POINTS) : A({}, ["mi", "mo", "mn", "ms", "mtext"]), Xt = $(o, "HTML_INTEGRATION_POINTS") && o.HTML_INTEGRATION_POINTS && typeof o.HTML_INTEGRATION_POINTS == "object" ? se(o.HTML_INTEGRATION_POINTS) : A({}, ["annotation-xml"]);
2081
+ const p = $(o, "CUSTOM_ELEMENT_HANDLING") && o.CUSTOM_ELEMENT_HANDLING && typeof o.CUSTOM_ELEMENT_HANDLING == "object" ? se(o.CUSTOM_ELEMENT_HANDLING) : Qe(null);
2082
+ if (z = Qe(null), $(p, "tagNameCheck") && Er(p.tagNameCheck) && (z.tagNameCheck = p.tagNameCheck), $(p, "attributeNameCheck") && Er(p.attributeNameCheck) && (z.attributeNameCheck = p.attributeNameCheck), $(p, "allowCustomizedBuiltInElements") && typeof p.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = p.allowCustomizedBuiltInElements), Ve && (Pt = !1), vt && (Ge = !0), Ye && (Y = A({}, Kr), J = Qe(null), Ye.html === !0 && (A(Y, Xr), A(J, Zr)), Ye.svg === !0 && (A(Y, er), A(J, nr), A(J, Tt)), Ye.svgFilters === !0 && (A(Y, tr), A(J, nr), A(J, Tt)), Ye.mathMl === !0 && (A(Y, rr), A(J, Jr), A(J, Tt))), Re.tagCheck = null, Re.attributeCheck = null, $(o, "ADD_TAGS") && (typeof o.ADD_TAGS == "function" ? Re.tagCheck = o.ADD_TAGS : oe(o.ADD_TAGS) && (Y === br && (Y = se(Y)), A(Y, o.ADD_TAGS, G))), $(o, "ADD_ATTR") && (typeof o.ADD_ATTR == "function" ? Re.attributeCheck = o.ADD_ATTR : oe(o.ADD_ATTR) && (J === hr && (J = se(J)), A(J, o.ADD_ATTR, G))), $(o, "ADD_URI_SAFE_ATTR") && oe(o.ADD_URI_SAFE_ATTR) && A(qt, o.ADD_URI_SAFE_ATTR, G), $(o, "FORBID_CONTENTS") && oe(o.FORBID_CONTENTS) && (xe === Wt && (xe = se(xe)), A(xe, o.FORBID_CONTENTS, G)), $(o, "ADD_FORBID_CONTENTS") && oe(o.ADD_FORBID_CONTENTS) && (xe === Wt && (xe = se(xe)), A(xe, o.ADD_FORBID_CONTENTS, G)), Ut && (Y["#text"] = !0), Be && A(Y, ["html", "head", "body"]), Y.table && (A(Y, ["tbody"]), delete ot.tbody), o.TRUSTED_TYPES_POLICY) {
1878
2083
  if (typeof o.TRUSTED_TYPES_POLICY.createHTML != "function")
1879
- throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2084
+ throw Ct('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1880
2085
  if (typeof o.TRUSTED_TYPES_POLICY.createScriptURL != "function")
1881
- throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1882
- A = o.TRUSTED_TYPES_POLICY, F = A.createHTML("");
2086
+ throw Ct('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
2087
+ C = o.TRUSTED_TYPES_POLICY, V = C.createHTML("");
1883
2088
  } else
1884
- A === void 0 && (A = ji(u, i)), A !== null && typeof F == "string" && (F = A.createHTML(""));
1885
- te && te(o), $e = o;
1886
- }, br = T({}, [...Xt, ...qt, ...Vi]), xr = T({}, [...Kt, ...Ii]), On = function(o) {
1887
- let h = E(o);
1888
- (!h || !h.tagName) && (h = {
1889
- namespaceURI: He,
2089
+ C === void 0 && (C = ya(b, i)), C !== null && typeof V == "string" && (V = C.createHTML(""));
2090
+ ae && ae(o), Ke = o;
2091
+ }, Rr = A({}, [...er, ...tr, ...ca]), Or = A({}, [...rr, ...da]), Hn = function(o) {
2092
+ let p = R(o);
2093
+ (!p || !p.tagName) && (p = {
2094
+ namespaceURI: Xe,
1890
2095
  tagName: "template"
1891
2096
  });
1892
- const m = lt(o.tagName), N = lt(h.tagName);
1893
- return Ht[o.namespaceURI] ? o.namespaceURI === xt ? h.namespaceURI === pe ? m === "svg" : h.namespaceURI === bt ? m === "svg" && (N === "annotation-xml" || $t[N]) : !!br[m] : o.namespaceURI === bt ? h.namespaceURI === pe ? m === "math" : h.namespaceURI === xt ? m === "math" && Ut[N] : !!xr[m] : o.namespaceURI === pe ? h.namespaceURI === xt && !Ut[N] || h.namespaceURI === bt && !$t[N] ? !1 : !xr[m] && (An[m] || !br[m]) : !!(tt === "application/xhtml+xml" && Ht[o.namespaceURI]) : !1;
1894
- }, _e = function(o) {
1895
- nt(t.removed, {
2097
+ const h = gt(o.tagName), _ = gt(p.tagName);
2098
+ return Gt[o.namespaceURI] ? o.namespaceURI === kt ? p.namespaceURI === ye ? h === "svg" : p.namespaceURI === yt ? h === "svg" && (_ === "annotation-xml" || Yt[_]) : !!Rr[h] : o.namespaceURI === yt ? p.namespaceURI === ye ? h === "math" : p.namespaceURI === kt ? h === "math" && Xt[_] : !!Or[h] : o.namespaceURI === ye ? p.namespaceURI === kt && !Xt[_] || p.namespaceURI === yt && !Yt[_] ? !1 : !Or[h] && (Fn[h] || !Rr[h]) : !!(lt === "application/xhtml+xml" && Gt[o.namespaceURI]) : !1;
2099
+ }, Me = function(o) {
2100
+ ct(t.removed, {
1896
2101
  element: o
1897
2102
  });
1898
2103
  try {
1899
- E(o).removeChild(o);
2104
+ R(o).removeChild(o);
1900
2105
  } catch {
1901
- C(o);
2106
+ y(o);
1902
2107
  }
1903
- }, Ve = function(o, h) {
2108
+ }, Fe = function(o, p) {
1904
2109
  try {
1905
- nt(t.removed, {
1906
- attribute: h.getAttributeNode(o),
1907
- from: h
2110
+ ct(t.removed, {
2111
+ attribute: p.getAttributeNode(o),
2112
+ from: p
1908
2113
  });
1909
2114
  } catch {
1910
- nt(t.removed, {
2115
+ ct(t.removed, {
1911
2116
  attribute: null,
1912
- from: h
2117
+ from: p
1913
2118
  });
1914
2119
  }
1915
- if (h.removeAttribute(o), o === "is")
1916
- if (Pe || ht)
2120
+ if (p.removeAttribute(o), o === "is")
2121
+ if (Ge || vt)
1917
2122
  try {
1918
- _e(h);
2123
+ Me(p);
1919
2124
  } catch {
1920
2125
  }
1921
2126
  else
1922
2127
  try {
1923
- h.setAttribute(o, "");
2128
+ p.setAttribute(o, "");
1924
2129
  } catch {
1925
2130
  }
1926
- }, yr = function(o) {
1927
- let h = null, m = null;
1928
- if (Mt)
2131
+ }, _r = function(o) {
2132
+ let p = null, h = null;
2133
+ if (Ht)
1929
2134
  o = "<remove></remove>" + o;
1930
2135
  else {
1931
- const B = _r(o, /^[\r\n\t ]+/);
1932
- m = B && B[0];
2136
+ const F = qr(o, /^[\r\n\t ]+/);
2137
+ h = F && F[0];
1933
2138
  }
1934
- tt === "application/xhtml+xml" && He === pe && (o = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + o + "</body></html>");
1935
- const N = A ? A.createHTML(o) : o;
1936
- if (He === pe)
2139
+ lt === "application/xhtml+xml" && Xe === ye && (o = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + o + "</body></html>");
2140
+ const _ = C ? C.createHTML(o) : o;
2141
+ if (Xe === ye)
1937
2142
  try {
1938
- h = new g().parseFromString(N, tt);
2143
+ p = new g().parseFromString(_, lt);
1939
2144
  } catch {
1940
2145
  }
1941
- if (!h || !h.documentElement) {
1942
- h = P.createDocument(He, "template", null);
2146
+ if (!p || !p.documentElement) {
2147
+ p = M.createDocument(Xe, "template", null);
1943
2148
  try {
1944
- h.documentElement.innerHTML = zt ? F : N;
2149
+ p.documentElement.innerHTML = jt ? V : _;
1945
2150
  } catch {
1946
2151
  }
1947
2152
  }
1948
- const K = h.body || h.documentElement;
1949
- return o && m && K.insertBefore(r.createTextNode(m), K.childNodes[0] || null), He === pe ? le.call(h, De ? "html" : "body")[0] : De ? h.documentElement : K;
1950
- }, vr = function(o) {
1951
- return L.call(
2153
+ const Q = p.body || p.documentElement;
2154
+ return o && h && Q.insertBefore(r.createTextNode(h), Q.childNodes[0] || null), Xe === ye ? fe.call(p, Be ? "html" : "body")[0] : Be ? p.documentElement : Q;
2155
+ }, Nr = function(o) {
2156
+ return N.call(
1952
2157
  o.ownerDocument || o,
1953
2158
  o,
1954
2159
  // eslint-disable-next-line no-bitwise
1955
2160
  c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
1956
2161
  null
1957
2162
  );
1958
- }, jt = function(o) {
1959
- return o instanceof s && (typeof o.nodeName != "string" || typeof o.textContent != "string" || typeof o.removeChild != "function" || !(o.attributes instanceof f) || typeof o.removeAttribute != "function" || typeof o.setAttribute != "function" || typeof o.namespaceURI != "string" || typeof o.insertBefore != "function" || typeof o.hasChildNodes != "function");
1960
- }, Gt = function(o) {
1961
- return typeof d == "function" && o instanceof d;
2163
+ }, Zt = function(o) {
2164
+ return o instanceof m && (typeof o.nodeName != "string" || typeof o.textContent != "string" || typeof o.removeChild != "function" || !(o.attributes instanceof f) || typeof o.removeAttribute != "function" || typeof o.setAttribute != "function" || typeof o.namespaceURI != "string" || typeof o.insertBefore != "function" || typeof o.hasChildNodes != "function");
2165
+ }, Jt = function(o) {
2166
+ return typeof s == "function" && o instanceof s;
1962
2167
  };
1963
- function we(o, h, m) {
1964
- rt(o, (N) => {
1965
- N.call(t, h, m, $e);
2168
+ function Se(o, p, h) {
2169
+ st(o, (_) => {
2170
+ _.call(t, p, h, Ke);
1966
2171
  });
1967
2172
  }
1968
- const kr = function(o) {
1969
- let h = null;
1970
- if (we(I.beforeSanitizeElements, o, null), jt(o))
1971
- return _e(o), !0;
1972
- const m = G(o.nodeName);
1973
- if (we(I.uponSanitizeElement, o, {
1974
- tagName: m,
1975
- allowedTags: D
1976
- }), Qe && o.hasChildNodes() && !Gt(o.firstElementChild) && Z(/<[/\w!]/g, o.innerHTML) && Z(/<[/\w!]/g, o.textContent) || Qe && o.namespaceURI === pe && m === "style" && Gt(o.firstElementChild) || o.nodeType === it.progressingInstruction || Qe && o.nodeType === it.comment && Z(/<[/\w]/g, o.data))
1977
- return _e(o), !0;
1978
- if (Je[m] || !(Ae.tagCheck instanceof Function && Ae.tagCheck(m)) && !D[m]) {
1979
- if (!Je[m] && Cr(m) && (_.tagNameCheck instanceof RegExp && Z(_.tagNameCheck, m) || _.tagNameCheck instanceof Function && _.tagNameCheck(m)))
2173
+ const Lr = function(o) {
2174
+ let p = null;
2175
+ if (Se(U.beforeSanitizeElements, o, null), Zt(o))
2176
+ return Me(o), !0;
2177
+ const h = G(o.nodeName);
2178
+ if (Se(U.uponSanitizeElement, o, {
2179
+ tagName: h,
2180
+ allowedTags: Y
2181
+ }), it && o.hasChildNodes() && !Jt(o.firstElementChild) && ee(/<[/\w!]/g, o.innerHTML) && ee(/<[/\w!]/g, o.textContent) || it && o.namespaceURI === ye && h === "style" && Jt(o.firstElementChild) || o.nodeType === ut.progressingInstruction || it && o.nodeType === ut.comment && ee(/<[/\w]/g, o.data))
2182
+ return Me(o), !0;
2183
+ if (ot[h] || !(Re.tagCheck instanceof Function && Re.tagCheck(h)) && !Y[h]) {
2184
+ if (!ot[h] && Ir(h) && (z.tagNameCheck instanceof RegExp && ee(z.tagNameCheck, h) || z.tagNameCheck instanceof Function && z.tagNameCheck(h)))
1980
2185
  return !1;
1981
- if (Bt && !ge[m]) {
1982
- const N = E(o) || o.parentNode, K = S(o) || o.childNodes;
1983
- if (K && N) {
1984
- const B = K.length;
1985
- for (let Ce = B - 1; Ce >= 0; --Ce) {
1986
- const he = w(K[Ce], !0);
1987
- N.insertBefore(he, v(o));
2186
+ if (Ut && !xe[h]) {
2187
+ const _ = R(o) || o.parentNode, Q = E(o) || o.childNodes;
2188
+ if (Q && _) {
2189
+ const F = Q.length;
2190
+ for (let Ee = F - 1; Ee >= 0; --Ee) {
2191
+ const ke = k(Q[Ee], !0);
2192
+ _.insertBefore(ke, w(o));
1988
2193
  }
1989
2194
  }
1990
2195
  }
1991
- return _e(o), !0;
2196
+ return Me(o), !0;
1992
2197
  }
1993
- return o instanceof p && !On(o) || (m === "noscript" || m === "noembed" || m === "noframes") && Z(/<\/no(script|embed|frames)/i, o.innerHTML) ? (_e(o), !0) : (Le && o.nodeType === it.text && (h = o.textContent, rt([fe, ve, re], (N) => {
1994
- h = We(h, N, " ");
1995
- }), o.textContent !== h && (nt(t.removed, {
2198
+ return o instanceof u && !Hn(o) || (h === "noscript" || h === "noembed" || h === "noframes") && ee(/<\/no(script|embed|frames)/i, o.innerHTML) ? (Me(o), !0) : (Ve && o.nodeType === ut.text && (p = o.textContent, st([ve, Ae, re], (_) => {
2199
+ p = Je(p, _, " ");
2200
+ }), o.textContent !== p && (ct(t.removed, {
1996
2201
  element: o.cloneNode()
1997
- }), o.textContent = h)), we(I.afterSanitizeElements, o, null), !1);
1998
- }, wr = function(o, h, m) {
1999
- if (pt[h] || dr && (h === "id" || h === "name") && (m in r || m in Rn))
2202
+ }), o.textContent = p)), Se(U.afterSanitizeElements, o, null), !1);
2203
+ }, Dr = function(o, p, h) {
2204
+ if (ht[p] || kr && (p === "id" || p === "name") && (h in r || h in zn))
2000
2205
  return !1;
2001
- const N = j[h] || Ae.attributeCheck instanceof Function && Ae.attributeCheck(h, o);
2002
- if (!(Vt && !pt[h] && Z(Ne, h)) && !(lr && Z(ke, h))) {
2003
- if (!N || pt[h]) {
2206
+ const _ = J[p] || Re.attributeCheck instanceof Function && Re.attributeCheck(p, o);
2207
+ if (!(Pt && !ht[p] && ee(T, p)) && !(vr && ee(L, p))) {
2208
+ if (!_ || ht[p]) {
2004
2209
  if (
2005
2210
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
2006
2211
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2007
2212
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
2008
- !(Cr(o) && (_.tagNameCheck instanceof RegExp && Z(_.tagNameCheck, o) || _.tagNameCheck instanceof Function && _.tagNameCheck(o)) && (_.attributeNameCheck instanceof RegExp && Z(_.attributeNameCheck, h) || _.attributeNameCheck instanceof Function && _.attributeNameCheck(h, o)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2213
+ !(Ir(o) && (z.tagNameCheck instanceof RegExp && ee(z.tagNameCheck, o) || z.tagNameCheck instanceof Function && z.tagNameCheck(o)) && (z.attributeNameCheck instanceof RegExp && ee(z.attributeNameCheck, p) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(p, o)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2009
2214
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2010
- h === "is" && _.allowCustomizedBuiltInElements && (_.tagNameCheck instanceof RegExp && Z(_.tagNameCheck, m) || _.tagNameCheck instanceof Function && _.tagNameCheck(m)))
2215
+ p === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && ee(z.tagNameCheck, h) || z.tagNameCheck instanceof Function && z.tagNameCheck(h)))
2011
2216
  ) return !1;
2012
- } else if (!Pt[h] && !Z(V, We(m, x, "")) && !((h === "src" || h === "xlink:href" || h === "href") && o !== "script" && Vr(m, "data:") === 0 && gr[o]) && !(sr && !Z(se, We(m, x, ""))) && m)
2217
+ } else if (!qt[p] && !ee(bt, Je(h, W, "")) && !((p === "src" || p === "xlink:href" || p === "href") && o !== "script" && jr(h, "data:") === 0 && Tr[o]) && !(xr && !ee(B, Je(h, W, ""))) && h)
2013
2218
  return !1;
2014
2219
  }
2015
2220
  return !0;
2016
- }, Nn = T({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), Cr = function(o) {
2017
- return !Nn[lt(o)] && Z(k, o);
2018
- }, Tr = function(o) {
2019
- we(I.beforeSanitizeAttributes, o, null);
2221
+ }, Un = A({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), Ir = function(o) {
2222
+ return !Un[gt(o)] && ee(le, o);
2223
+ }, Vr = function(o) {
2224
+ Se(U.beforeSanitizeAttributes, o, null);
2020
2225
  const {
2021
- attributes: h
2226
+ attributes: p
2022
2227
  } = o;
2023
- if (!h || jt(o))
2228
+ if (!p || Zt(o))
2024
2229
  return;
2025
- const m = {
2230
+ const h = {
2026
2231
  attrName: "",
2027
2232
  attrValue: "",
2028
2233
  keepAttr: !0,
2029
- allowedAttributes: j,
2234
+ allowedAttributes: J,
2030
2235
  forceKeepAttr: void 0
2031
2236
  };
2032
- let N = h.length;
2033
- for (; N--; ) {
2034
- const K = h[N], {
2035
- name: B,
2036
- namespaceURI: Ce,
2037
- value: he
2038
- } = K, Q = G(B), Se = he;
2039
- let X = B === "value" ? Se : Ei(Se);
2040
- if (m.attrName = Q, m.attrValue = X, m.keepAttr = !0, m.forceKeepAttr = void 0, we(I.uponSanitizeAttribute, o, m), X = m.attrValue, ur && (Q === "id" || Q === "name") && Vr(X, fr) !== 0 && (Ve(B, o), X = fr + X), Qe && Z(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, X)) {
2041
- Ve(B, o);
2237
+ let _ = p.length;
2238
+ for (; _--; ) {
2239
+ const Q = p[_], {
2240
+ name: F,
2241
+ namespaceURI: Ee,
2242
+ value: ke
2243
+ } = Q, ne = G(F), Oe = ke;
2244
+ let X = F === "value" ? Oe : ra(Oe);
2245
+ if (h.attrName = ne, h.attrValue = X, h.keepAttr = !0, h.forceKeepAttr = void 0, Se(U.uponSanitizeAttribute, o, h), X = h.attrValue, wr && (ne === "id" || ne === "name") && jr(X, Cr) !== 0 && (Fe(F, o), X = Cr + X), it && ee(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, X)) {
2246
+ Fe(F, o);
2042
2247
  continue;
2043
2248
  }
2044
- if (Q === "attributename" && _r(X, "href")) {
2045
- Ve(B, o);
2249
+ if (ne === "attributename" && qr(X, "href")) {
2250
+ Fe(F, o);
2046
2251
  continue;
2047
2252
  }
2048
- if (m.forceKeepAttr)
2253
+ if (h.forceKeepAttr)
2049
2254
  continue;
2050
- if (!m.keepAttr) {
2051
- Ve(B, o);
2255
+ if (!h.keepAttr) {
2256
+ Fe(F, o);
2052
2257
  continue;
2053
2258
  }
2054
- if (!cr && Z(/\/>/i, X)) {
2055
- Ve(B, o);
2259
+ if (!yr && ee(/\/>/i, X)) {
2260
+ Fe(F, o);
2056
2261
  continue;
2057
2262
  }
2058
- Le && rt([fe, ve, re], (Ln) => {
2059
- X = We(X, Ln, " ");
2263
+ Ve && st([ve, Ae, re], (Wn) => {
2264
+ X = Je(X, Wn, " ");
2060
2265
  });
2061
- const Sr = G(o.nodeName);
2062
- if (!wr(Sr, Q, X)) {
2063
- Ve(B, o);
2266
+ const Mr = G(o.nodeName);
2267
+ if (!Dr(Mr, ne, X)) {
2268
+ Fe(F, o);
2064
2269
  continue;
2065
2270
  }
2066
- if (A && typeof u == "object" && typeof u.getAttributeType == "function" && !Ce)
2067
- switch (u.getAttributeType(Sr, Q)) {
2271
+ if (C && typeof b == "object" && typeof b.getAttributeType == "function" && !Ee)
2272
+ switch (b.getAttributeType(Mr, ne)) {
2068
2273
  case "TrustedHTML": {
2069
- X = A.createHTML(X);
2274
+ X = C.createHTML(X);
2070
2275
  break;
2071
2276
  }
2072
2277
  case "TrustedScriptURL": {
2073
- X = A.createScriptURL(X);
2278
+ X = C.createScriptURL(X);
2074
2279
  break;
2075
2280
  }
2076
2281
  }
2077
- if (X !== Se)
2282
+ if (X !== Oe)
2078
2283
  try {
2079
- Ce ? o.setAttributeNS(Ce, B, X) : o.setAttribute(B, X), jt(o) ? _e(o) : Dr(t.removed);
2284
+ Ee ? o.setAttributeNS(Ee, F, X) : o.setAttribute(F, X), Zt(o) ? Me(o) : Wr(t.removed);
2080
2285
  } catch {
2081
- Ve(B, o);
2286
+ Fe(F, o);
2082
2287
  }
2083
2288
  }
2084
- we(I.afterSanitizeAttributes, o, null);
2085
- }, Ar = function(o) {
2086
- let h = null;
2087
- const m = vr(o);
2088
- for (we(I.beforeSanitizeShadowDOM, o, null); h = m.nextNode(); )
2089
- we(I.uponSanitizeShadowNode, h, null), kr(h), Tr(h), h.content instanceof a && Ar(h.content);
2090
- we(I.afterSanitizeShadowDOM, o, null);
2289
+ Se(U.afterSanitizeAttributes, o, null);
2290
+ }, Br = function(o) {
2291
+ let p = null;
2292
+ const h = Nr(o);
2293
+ for (Se(U.beforeSanitizeShadowDOM, o, null); p = h.nextNode(); )
2294
+ Se(U.uponSanitizeShadowNode, p, null), Lr(p), Vr(p), p.content instanceof a && Br(p.content);
2295
+ Se(U.afterSanitizeShadowDOM, o, null);
2091
2296
  };
2092
2297
  return t.sanitize = function(o) {
2093
- let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, N = null, K = null, B = null;
2094
- if (zt = !o, zt && (o = "<!-->"), typeof o != "string" && !Gt(o) && (o = Di(o), typeof o != "string"))
2095
- throw kt("dirty is not a string, aborting");
2298
+ let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, h = null, _ = null, Q = null, F = null;
2299
+ if (jt = !o, jt && (o = "<!-->"), typeof o != "string" && !Jt(o) && (o = la(o), typeof o != "string"))
2300
+ throw Ct("dirty is not a string, aborting");
2096
2301
  if (!t.isSupported)
2097
2302
  return o;
2098
- if (It || Wt(h), t.removed = [], typeof o == "string" && (et = !1), et) {
2099
- const Q = o.nodeName;
2100
- if (typeof Q == "string") {
2101
- const Se = G(Q);
2102
- if (!D[Se] || Je[Se])
2103
- throw kt("root node is forbidden and cannot be sanitized in-place");
2303
+ if (zt || Kt(p), t.removed = [], typeof o == "string" && (at = !1), at) {
2304
+ const ne = o.nodeName;
2305
+ if (typeof ne == "string") {
2306
+ const Oe = G(ne);
2307
+ if (!Y[Oe] || ot[Oe])
2308
+ throw Ct("root node is forbidden and cannot be sanitized in-place");
2104
2309
  }
2105
- } else if (o instanceof d)
2106
- m = yr("<!---->"), N = m.ownerDocument.importNode(o, !0), N.nodeType === it.element && N.nodeName === "BODY" || N.nodeName === "HTML" ? m = N : m.appendChild(N);
2310
+ } else if (o instanceof s)
2311
+ h = _r("<!---->"), _ = h.ownerDocument.importNode(o, !0), _.nodeType === ut.element && _.nodeName === "BODY" || _.nodeName === "HTML" ? h = _ : h.appendChild(_);
2107
2312
  else {
2108
- if (!Pe && !Le && !De && // eslint-disable-next-line unicorn/prefer-includes
2313
+ if (!Ge && !Ve && !Be && // eslint-disable-next-line unicorn/prefer-includes
2109
2314
  o.indexOf("<") === -1)
2110
- return A && mt ? A.createHTML(o) : o;
2111
- if (m = yr(o), !m)
2112
- return Pe ? null : mt ? F : "";
2113
- }
2114
- m && Mt && _e(m.firstChild);
2115
- const Ce = vr(et ? o : m);
2116
- for (; K = Ce.nextNode(); )
2117
- kr(K), Tr(K), K.content instanceof a && Ar(K.content);
2118
- if (et)
2315
+ return C && xt ? C.createHTML(o) : o;
2316
+ if (h = _r(o), !h)
2317
+ return Ge ? null : xt ? V : "";
2318
+ }
2319
+ h && Ht && Me(h.firstChild);
2320
+ const Ee = Nr(at ? o : h);
2321
+ for (; Q = Ee.nextNode(); )
2322
+ Lr(Q), Vr(Q), Q.content instanceof a && Br(Q.content);
2323
+ if (at)
2119
2324
  return o;
2120
- if (Pe) {
2121
- if (Le) {
2122
- m.normalize();
2123
- let Q = m.innerHTML;
2124
- rt([fe, ve, re], (Se) => {
2125
- Q = We(Q, Se, " ");
2126
- }), m.innerHTML = Q;
2325
+ if (Ge) {
2326
+ if (Ve) {
2327
+ h.normalize();
2328
+ let ne = h.innerHTML;
2329
+ st([ve, Ae, re], (Oe) => {
2330
+ ne = Je(ne, Oe, " ");
2331
+ }), h.innerHTML = ne;
2127
2332
  }
2128
- if (ht)
2129
- for (B = J.call(m.ownerDocument); m.firstChild; )
2130
- B.appendChild(m.firstChild);
2333
+ if (vt)
2334
+ for (F = Z.call(h.ownerDocument); h.firstChild; )
2335
+ F.appendChild(h.firstChild);
2131
2336
  else
2132
- B = m;
2133
- return (j.shadowroot || j.shadowrootmode) && (B = ue.call(n, B, !0)), B;
2134
- }
2135
- let he = De ? m.outerHTML : m.innerHTML;
2136
- return De && D["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && Z(un, m.ownerDocument.doctype.name) && (he = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
2137
- ` + he), Le && rt([fe, ve, re], (Q) => {
2138
- he = We(he, Q, " ");
2139
- }), A && mt ? A.createHTML(he) : he;
2337
+ F = h;
2338
+ return (J.shadowroot || J.shadowrootmode) && (F = he.call(n, F, !0)), F;
2339
+ }
2340
+ let ke = Be ? h.outerHTML : h.innerHTML;
2341
+ return Be && Y["!doctype"] && h.ownerDocument && h.ownerDocument.doctype && h.ownerDocument.doctype.name && ee(Tn, h.ownerDocument.doctype.name) && (ke = "<!DOCTYPE " + h.ownerDocument.doctype.name + `>
2342
+ ` + ke), Ve && st([ve, Ae, re], (ne) => {
2343
+ ke = Je(ke, ne, " ");
2344
+ }), C && xt ? C.createHTML(ke) : ke;
2140
2345
  }, t.setConfig = function() {
2141
2346
  let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2142
- Wt(o), It = !0;
2347
+ Kt(o), zt = !0;
2143
2348
  }, t.clearConfig = function() {
2144
- $e = null, It = !1;
2145
- }, t.isValidAttribute = function(o, h, m) {
2146
- $e || Wt({});
2147
- const N = G(o), K = G(h);
2148
- return wr(N, K, m);
2149
- }, t.addHook = function(o, h) {
2150
- typeof h == "function" && nt(I[o], h);
2151
- }, t.removeHook = function(o, h) {
2152
- if (h !== void 0) {
2153
- const m = Ai(I[o], h);
2154
- return m === -1 ? void 0 : Si(I[o], m, 1)[0];
2155
- }
2156
- return Dr(I[o]);
2349
+ Ke = null, zt = !1;
2350
+ }, t.isValidAttribute = function(o, p, h) {
2351
+ Ke || Kt({});
2352
+ const _ = G(o), Q = G(p);
2353
+ return Dr(_, Q, h);
2354
+ }, t.addHook = function(o, p) {
2355
+ typeof p == "function" && ct(U[o], p);
2356
+ }, t.removeHook = function(o, p) {
2357
+ if (p !== void 0) {
2358
+ const h = ea(U[o], p);
2359
+ return h === -1 ? void 0 : ta(U[o], h, 1)[0];
2360
+ }
2361
+ return Wr(U[o]);
2157
2362
  }, t.removeHooks = function(o) {
2158
- I[o] = [];
2363
+ U[o] = [];
2159
2364
  }, t.removeAllHooks = function() {
2160
- I = $r();
2365
+ U = en();
2161
2366
  }, t;
2162
2367
  }
2163
- var W = fn(), Gi = W;
2164
- W.sanitize.bind(W);
2165
- W.isSupported;
2166
- W.addHook.bind(W);
2167
- W.removeHook.bind(W);
2168
- W.removeHooks.bind(W);
2169
- W.removeAllHooks.bind(W);
2170
- W.setConfig.bind(W);
2171
- W.clearConfig.bind(W);
2172
- W.isValidAttribute.bind(W);
2173
- W.version;
2174
- W.removed;
2175
- const Ur = {
2368
+ var j = An(), ka = j;
2369
+ j.sanitize.bind(j);
2370
+ j.isSupported;
2371
+ j.addHook.bind(j);
2372
+ j.removeHook.bind(j);
2373
+ j.removeHooks.bind(j);
2374
+ j.removeAllHooks.bind(j);
2375
+ j.setConfig.bind(j);
2376
+ j.clearConfig.bind(j);
2377
+ j.isValidAttribute.bind(j);
2378
+ j.version;
2379
+ j.removed;
2380
+ const tn = {
2176
2381
  left: "tooltip-left",
2177
2382
  top: "tooltip-top",
2178
2383
  bottom: "tooltip-bottom",
2179
2384
  right: "tooltip-right"
2180
2385
  };
2181
- xe({
2386
+ de({
2182
2387
  name: "Tooltip",
2183
2388
  props: {
2184
2389
  id: {
@@ -2211,96 +2416,96 @@ xe({
2211
2416
  }
2212
2417
  },
2213
2418
  setup(e) {
2214
- const t = "invisible opacity-0 group-hover:visible group-hover:opacity-100 group-focus:visible group-focus:opacity-100 z-[100] tooltip", r = O(() => [
2215
- Or.bgColorVariant({ color: e.color }),
2216
- Or.textColorVariant({ color: e.textColor })
2217
- ].join(" ")), n = O(() => ({ width: `${e.width}px` })), i = O(() => Ur[e.direction] || Ur.right), a = O(() => [
2419
+ const t = "invisible opacity-0 group-hover:visible group-hover:opacity-100 group-focus:visible group-focus:opacity-100 z-[100] tooltip", r = S(() => [
2420
+ zr.bgColorVariant({ color: e.color }),
2421
+ zr.textColorVariant({ color: e.textColor })
2422
+ ].join(" ")), n = S(() => ({ width: `${e.width}px` })), i = S(() => tn[e.direction] || tn.right), a = S(() => [
2218
2423
  t,
2219
2424
  i.value,
2220
2425
  r.value,
2221
2426
  e.customClass
2222
2427
  ]);
2223
- return () => _n("div", {
2428
+ return () => Zn("div", {
2224
2429
  id: e.id,
2225
2430
  class: a.value,
2226
2431
  role: "tooltip",
2227
- innerHTML: Gi.sanitize(e.content),
2432
+ innerHTML: ka.sanitize(e.content),
2228
2433
  style: [n.value]
2229
2434
  });
2230
2435
  }
2231
2436
  });
2232
- const Tt = Math.min, Ie = Math.max, At = Math.round, Ct = Math.floor, me = (e) => ({
2437
+ const Ot = Math.min, $e = Math.max, _t = Math.round, At = Math.floor, we = (e) => ({
2233
2438
  x: e,
2234
2439
  y: e
2235
- }), Yi = {
2440
+ }), wa = {
2236
2441
  left: "right",
2237
2442
  right: "left",
2238
2443
  bottom: "top",
2239
2444
  top: "bottom"
2240
- }, Xi = {
2445
+ }, Ca = {
2241
2446
  start: "end",
2242
2447
  end: "start"
2243
2448
  };
2244
- function Wr(e, t, r) {
2245
- return Ie(e, Tt(t, r));
2449
+ function rn(e, t, r) {
2450
+ return $e(e, Ot(t, r));
2246
2451
  }
2247
- function Rt(e, t) {
2452
+ function It(e, t) {
2248
2453
  return typeof e == "function" ? e(t) : e;
2249
2454
  }
2250
- function Me(e) {
2455
+ function He(e) {
2251
2456
  return e.split("-")[0];
2252
2457
  }
2253
- function Ot(e) {
2458
+ function Vt(e) {
2254
2459
  return e.split("-")[1];
2255
2460
  }
2256
- function gn(e) {
2461
+ function Sn(e) {
2257
2462
  return e === "x" ? "y" : "x";
2258
2463
  }
2259
- function pn(e) {
2464
+ function En(e) {
2260
2465
  return e === "y" ? "height" : "width";
2261
2466
  }
2262
- const qi = /* @__PURE__ */ new Set(["top", "bottom"]);
2263
- function Ee(e) {
2264
- return qi.has(Me(e)) ? "y" : "x";
2467
+ const Ta = /* @__PURE__ */ new Set(["top", "bottom"]);
2468
+ function Le(e) {
2469
+ return Ta.has(He(e)) ? "y" : "x";
2265
2470
  }
2266
- function hn(e) {
2267
- return gn(Ee(e));
2471
+ function Rn(e) {
2472
+ return Sn(Le(e));
2268
2473
  }
2269
- function Ki(e, t, r) {
2474
+ function Aa(e, t, r) {
2270
2475
  r === void 0 && (r = !1);
2271
- const n = Ot(e), i = hn(e), a = pn(i);
2476
+ const n = Vt(e), i = Rn(e), a = En(i);
2272
2477
  let l = i === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
2273
- return t.reference[a] > t.floating[a] && (l = St(l)), [l, St(l)];
2478
+ return t.reference[a] > t.floating[a] && (l = Nt(l)), [l, Nt(l)];
2274
2479
  }
2275
- function Zi(e) {
2276
- const t = St(e);
2277
- return [tr(e), t, tr(t)];
2480
+ function Sa(e) {
2481
+ const t = Nt(e);
2482
+ return [cr(e), t, cr(t)];
2278
2483
  }
2279
- function tr(e) {
2280
- return e.replace(/start|end/g, (t) => Xi[t]);
2484
+ function cr(e) {
2485
+ return e.replace(/start|end/g, (t) => Ca[t]);
2281
2486
  }
2282
- const jr = ["left", "right"], Gr = ["right", "left"], Ji = ["top", "bottom"], Qi = ["bottom", "top"];
2283
- function ea(e, t, r) {
2487
+ const nn = ["left", "right"], on = ["right", "left"], Ea = ["top", "bottom"], Ra = ["bottom", "top"];
2488
+ function Oa(e, t, r) {
2284
2489
  switch (e) {
2285
2490
  case "top":
2286
2491
  case "bottom":
2287
- return r ? t ? Gr : jr : t ? jr : Gr;
2492
+ return r ? t ? on : nn : t ? nn : on;
2288
2493
  case "left":
2289
2494
  case "right":
2290
- return t ? Ji : Qi;
2495
+ return t ? Ea : Ra;
2291
2496
  default:
2292
2497
  return [];
2293
2498
  }
2294
2499
  }
2295
- function ta(e, t, r, n) {
2296
- const i = Ot(e);
2297
- let a = ea(Me(e), r === "start", n);
2298
- return i && (a = a.map((l) => l + "-" + i), t && (a = a.concat(a.map(tr)))), a;
2500
+ function _a(e, t, r, n) {
2501
+ const i = Vt(e);
2502
+ let a = Oa(He(e), r === "start", n);
2503
+ return i && (a = a.map((l) => l + "-" + i), t && (a = a.concat(a.map(cr)))), a;
2299
2504
  }
2300
- function St(e) {
2301
- return e.replace(/left|right|bottom|top/g, (t) => Yi[t]);
2505
+ function Nt(e) {
2506
+ return e.replace(/left|right|bottom|top/g, (t) => wa[t]);
2302
2507
  }
2303
- function ra(e) {
2508
+ function Na(e) {
2304
2509
  return {
2305
2510
  top: 0,
2306
2511
  right: 0,
@@ -2309,15 +2514,15 @@ function ra(e) {
2309
2514
  ...e
2310
2515
  };
2311
2516
  }
2312
- function na(e) {
2313
- return typeof e != "number" ? ra(e) : {
2517
+ function La(e) {
2518
+ return typeof e != "number" ? Na(e) : {
2314
2519
  top: e,
2315
2520
  right: e,
2316
2521
  bottom: e,
2317
2522
  left: e
2318
2523
  };
2319
2524
  }
2320
- function Et(e) {
2525
+ function Lt(e) {
2321
2526
  const {
2322
2527
  x: t,
2323
2528
  y: r,
@@ -2335,55 +2540,55 @@ function Et(e) {
2335
2540
  y: r
2336
2541
  };
2337
2542
  }
2338
- function Yr(e, t, r) {
2543
+ function an(e, t, r) {
2339
2544
  let {
2340
2545
  reference: n,
2341
2546
  floating: i
2342
2547
  } = e;
2343
- const a = Ee(t), l = hn(t), d = pn(l), p = Me(t), c = a === "y", f = n.x + n.width / 2 - i.width / 2, s = n.y + n.height / 2 - i.height / 2, g = n[d] / 2 - i[d] / 2;
2344
- let u;
2345
- switch (p) {
2548
+ const a = Le(t), l = Rn(t), s = En(l), u = He(t), c = a === "y", f = n.x + n.width / 2 - i.width / 2, m = n.y + n.height / 2 - i.height / 2, g = n[s] / 2 - i[s] / 2;
2549
+ let b;
2550
+ switch (u) {
2346
2551
  case "top":
2347
- u = {
2552
+ b = {
2348
2553
  x: f,
2349
2554
  y: n.y - i.height
2350
2555
  };
2351
2556
  break;
2352
2557
  case "bottom":
2353
- u = {
2558
+ b = {
2354
2559
  x: f,
2355
2560
  y: n.y + n.height
2356
2561
  };
2357
2562
  break;
2358
2563
  case "right":
2359
- u = {
2564
+ b = {
2360
2565
  x: n.x + n.width,
2361
- y: s
2566
+ y: m
2362
2567
  };
2363
2568
  break;
2364
2569
  case "left":
2365
- u = {
2570
+ b = {
2366
2571
  x: n.x - i.width,
2367
- y: s
2572
+ y: m
2368
2573
  };
2369
2574
  break;
2370
2575
  default:
2371
- u = {
2576
+ b = {
2372
2577
  x: n.x,
2373
2578
  y: n.y
2374
2579
  };
2375
2580
  }
2376
- switch (Ot(t)) {
2581
+ switch (Vt(t)) {
2377
2582
  case "start":
2378
- u[l] -= g * (r && c ? -1 : 1);
2583
+ b[l] -= g * (r && c ? -1 : 1);
2379
2584
  break;
2380
2585
  case "end":
2381
- u[l] += g * (r && c ? -1 : 1);
2586
+ b[l] += g * (r && c ? -1 : 1);
2382
2587
  break;
2383
2588
  }
2384
- return u;
2589
+ return b;
2385
2590
  }
2386
- async function oa(e, t) {
2591
+ async function Da(e, t) {
2387
2592
  var r;
2388
2593
  t === void 0 && (t = {});
2389
2594
  const {
@@ -2391,108 +2596,108 @@ async function oa(e, t) {
2391
2596
  y: i,
2392
2597
  platform: a,
2393
2598
  rects: l,
2394
- elements: d,
2395
- strategy: p
2599
+ elements: s,
2600
+ strategy: u
2396
2601
  } = e, {
2397
2602
  boundary: c = "clippingAncestors",
2398
2603
  rootBoundary: f = "viewport",
2399
- elementContext: s = "floating",
2604
+ elementContext: m = "floating",
2400
2605
  altBoundary: g = !1,
2401
- padding: u = 0
2402
- } = Rt(t, e), b = na(u), C = d[g ? s === "floating" ? "reference" : "floating" : s], v = Et(await a.getClippingRect({
2403
- element: (r = await (a.isElement == null ? void 0 : a.isElement(C))) == null || r ? C : C.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(d.floating)),
2606
+ padding: b = 0
2607
+ } = It(t, e), x = La(b), y = s[g ? m === "floating" ? "reference" : "floating" : m], w = Lt(await a.getClippingRect({
2608
+ element: (r = await (a.isElement == null ? void 0 : a.isElement(y))) == null || r ? y : y.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
2404
2609
  boundary: c,
2405
2610
  rootBoundary: f,
2406
- strategy: p
2407
- })), S = s === "floating" ? {
2611
+ strategy: u
2612
+ })), E = m === "floating" ? {
2408
2613
  x: n,
2409
2614
  y: i,
2410
2615
  width: l.floating.width,
2411
2616
  height: l.floating.height
2412
- } : l.reference, E = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d.floating)), A = await (a.isElement == null ? void 0 : a.isElement(E)) ? await (a.getScale == null ? void 0 : a.getScale(E)) || {
2617
+ } : l.reference, R = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), C = await (a.isElement == null ? void 0 : a.isElement(R)) ? await (a.getScale == null ? void 0 : a.getScale(R)) || {
2413
2618
  x: 1,
2414
2619
  y: 1
2415
2620
  } : {
2416
2621
  x: 1,
2417
2622
  y: 1
2418
- }, F = Et(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
2419
- elements: d,
2420
- rect: S,
2421
- offsetParent: E,
2422
- strategy: p
2423
- }) : S);
2623
+ }, V = Lt(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
2624
+ elements: s,
2625
+ rect: E,
2626
+ offsetParent: R,
2627
+ strategy: u
2628
+ }) : E);
2424
2629
  return {
2425
- top: (v.top - F.top + b.top) / A.y,
2426
- bottom: (F.bottom - v.bottom + b.bottom) / A.y,
2427
- left: (v.left - F.left + b.left) / A.x,
2428
- right: (F.right - v.right + b.right) / A.x
2630
+ top: (w.top - V.top + x.top) / C.y,
2631
+ bottom: (V.bottom - w.bottom + x.bottom) / C.y,
2632
+ left: (w.left - V.left + x.left) / C.x,
2633
+ right: (V.right - w.right + x.right) / C.x
2429
2634
  };
2430
2635
  }
2431
- const ia = async (e, t, r) => {
2636
+ const Ia = async (e, t, r) => {
2432
2637
  const {
2433
2638
  placement: n = "bottom",
2434
2639
  strategy: i = "absolute",
2435
2640
  middleware: a = [],
2436
2641
  platform: l
2437
- } = r, d = a.filter(Boolean), p = await (l.isRTL == null ? void 0 : l.isRTL(t));
2642
+ } = r, s = a.filter(Boolean), u = await (l.isRTL == null ? void 0 : l.isRTL(t));
2438
2643
  let c = await l.getElementRects({
2439
2644
  reference: e,
2440
2645
  floating: t,
2441
2646
  strategy: i
2442
2647
  }), {
2443
2648
  x: f,
2444
- y: s
2445
- } = Yr(c, n, p), g = n, u = {}, b = 0;
2446
- for (let C = 0; C < d.length; C++) {
2447
- var w;
2649
+ y: m
2650
+ } = an(c, n, u), g = n, b = {}, x = 0;
2651
+ for (let y = 0; y < s.length; y++) {
2652
+ var k;
2448
2653
  const {
2449
- name: v,
2450
- fn: S
2451
- } = d[C], {
2452
- x: E,
2453
- y: A,
2454
- data: F,
2455
- reset: P
2456
- } = await S({
2654
+ name: w,
2655
+ fn: E
2656
+ } = s[y], {
2657
+ x: R,
2658
+ y: C,
2659
+ data: V,
2660
+ reset: M
2661
+ } = await E({
2457
2662
  x: f,
2458
- y: s,
2663
+ y: m,
2459
2664
  initialPlacement: n,
2460
2665
  placement: g,
2461
2666
  strategy: i,
2462
- middlewareData: u,
2667
+ middlewareData: b,
2463
2668
  rects: c,
2464
2669
  platform: {
2465
2670
  ...l,
2466
- detectOverflow: (w = l.detectOverflow) != null ? w : oa
2671
+ detectOverflow: (k = l.detectOverflow) != null ? k : Da
2467
2672
  },
2468
2673
  elements: {
2469
2674
  reference: e,
2470
2675
  floating: t
2471
2676
  }
2472
2677
  });
2473
- f = E ?? f, s = A ?? s, u = {
2474
- ...u,
2475
- [v]: {
2476
- ...u[v],
2477
- ...F
2678
+ f = R ?? f, m = C ?? m, b = {
2679
+ ...b,
2680
+ [w]: {
2681
+ ...b[w],
2682
+ ...V
2478
2683
  }
2479
- }, P && b <= 50 && (b++, typeof P == "object" && (P.placement && (g = P.placement), P.rects && (c = P.rects === !0 ? await l.getElementRects({
2684
+ }, M && x <= 50 && (x++, typeof M == "object" && (M.placement && (g = M.placement), M.rects && (c = M.rects === !0 ? await l.getElementRects({
2480
2685
  reference: e,
2481
2686
  floating: t,
2482
2687
  strategy: i
2483
- }) : P.rects), {
2688
+ }) : M.rects), {
2484
2689
  x: f,
2485
- y: s
2486
- } = Yr(c, g, p)), C = -1);
2690
+ y: m
2691
+ } = an(c, g, u)), y = -1);
2487
2692
  }
2488
2693
  return {
2489
2694
  x: f,
2490
- y: s,
2695
+ y: m,
2491
2696
  placement: g,
2492
2697
  strategy: i,
2493
- middlewareData: u
2698
+ middlewareData: b
2494
2699
  };
2495
- }, aa = function(e) {
2700
+ }, Va = function(e) {
2496
2701
  return e === void 0 && (e = {}), {
2497
2702
  name: "flip",
2498
2703
  options: e,
@@ -2502,106 +2707,106 @@ const ia = async (e, t, r) => {
2502
2707
  placement: i,
2503
2708
  middlewareData: a,
2504
2709
  rects: l,
2505
- initialPlacement: d,
2506
- platform: p,
2710
+ initialPlacement: s,
2711
+ platform: u,
2507
2712
  elements: c
2508
2713
  } = t, {
2509
2714
  mainAxis: f = !0,
2510
- crossAxis: s = !0,
2715
+ crossAxis: m = !0,
2511
2716
  fallbackPlacements: g,
2512
- fallbackStrategy: u = "bestFit",
2513
- fallbackAxisSideDirection: b = "none",
2514
- flipAlignment: w = !0,
2515
- ...C
2516
- } = Rt(e, t);
2717
+ fallbackStrategy: b = "bestFit",
2718
+ fallbackAxisSideDirection: x = "none",
2719
+ flipAlignment: k = !0,
2720
+ ...y
2721
+ } = It(e, t);
2517
2722
  if ((r = a.arrow) != null && r.alignmentOffset)
2518
2723
  return {};
2519
- const v = Me(i), S = Ee(d), E = Me(d) === d, A = await (p.isRTL == null ? void 0 : p.isRTL(c.floating)), F = g || (E || !w ? [St(d)] : Zi(d)), P = b !== "none";
2520
- !g && P && F.push(...ta(d, w, b, A));
2521
- const L = [d, ...F], J = await p.detectOverflow(t, C), le = [];
2522
- let ue = ((n = a.flip) == null ? void 0 : n.overflows) || [];
2523
- if (f && le.push(J[v]), s) {
2524
- const re = Ki(i, l, A);
2525
- le.push(J[re[0]], J[re[1]]);
2724
+ const w = He(i), E = Le(s), R = He(s) === s, C = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), V = g || (R || !k ? [Nt(s)] : Sa(s)), M = x !== "none";
2725
+ !g && M && V.push(..._a(s, k, x, C));
2726
+ const N = [s, ...V], Z = await u.detectOverflow(t, y), fe = [];
2727
+ let he = ((n = a.flip) == null ? void 0 : n.overflows) || [];
2728
+ if (f && fe.push(Z[w]), m) {
2729
+ const re = Aa(i, l, C);
2730
+ fe.push(Z[re[0]], Z[re[1]]);
2526
2731
  }
2527
- if (ue = [...ue, {
2732
+ if (he = [...he, {
2528
2733
  placement: i,
2529
- overflows: le
2530
- }], !le.every((re) => re <= 0)) {
2531
- var I, fe;
2532
- const re = (((I = a.flip) == null ? void 0 : I.index) || 0) + 1, Ne = L[re];
2533
- if (Ne && (!(s === "alignment" ? S !== Ee(Ne) : !1) || // We leave the current main axis only if every placement on that axis
2734
+ overflows: fe
2735
+ }], !fe.every((re) => re <= 0)) {
2736
+ var U, ve;
2737
+ const re = (((U = a.flip) == null ? void 0 : U.index) || 0) + 1, T = N[re];
2738
+ if (T && (!(m === "alignment" ? E !== Le(T) : !1) || // We leave the current main axis only if every placement on that axis
2534
2739
  // overflows the main axis.
2535
- ue.every((x) => Ee(x.placement) === S ? x.overflows[0] > 0 : !0)))
2740
+ he.every((W) => Le(W.placement) === E ? W.overflows[0] > 0 : !0)))
2536
2741
  return {
2537
2742
  data: {
2538
2743
  index: re,
2539
- overflows: ue
2744
+ overflows: he
2540
2745
  },
2541
2746
  reset: {
2542
- placement: Ne
2747
+ placement: T
2543
2748
  }
2544
2749
  };
2545
- let ke = (fe = ue.filter((se) => se.overflows[0] <= 0).sort((se, x) => se.overflows[1] - x.overflows[1])[0]) == null ? void 0 : fe.placement;
2546
- if (!ke)
2547
- switch (u) {
2750
+ let L = (ve = he.filter((B) => B.overflows[0] <= 0).sort((B, W) => B.overflows[1] - W.overflows[1])[0]) == null ? void 0 : ve.placement;
2751
+ if (!L)
2752
+ switch (b) {
2548
2753
  case "bestFit": {
2549
- var ve;
2550
- const se = (ve = ue.filter((x) => {
2551
- if (P) {
2552
- const k = Ee(x.placement);
2553
- return k === S || // Create a bias to the `y` side axis due to horizontal
2754
+ var Ae;
2755
+ const B = (Ae = he.filter((W) => {
2756
+ if (M) {
2757
+ const le = Le(W.placement);
2758
+ return le === E || // Create a bias to the `y` side axis due to horizontal
2554
2759
  // reading directions favoring greater width.
2555
- k === "y";
2760
+ le === "y";
2556
2761
  }
2557
2762
  return !0;
2558
- }).map((x) => [x.placement, x.overflows.filter((k) => k > 0).reduce((k, V) => k + V, 0)]).sort((x, k) => x[1] - k[1])[0]) == null ? void 0 : ve[0];
2559
- se && (ke = se);
2763
+ }).map((W) => [W.placement, W.overflows.filter((le) => le > 0).reduce((le, bt) => le + bt, 0)]).sort((W, le) => W[1] - le[1])[0]) == null ? void 0 : Ae[0];
2764
+ B && (L = B);
2560
2765
  break;
2561
2766
  }
2562
2767
  case "initialPlacement":
2563
- ke = d;
2768
+ L = s;
2564
2769
  break;
2565
2770
  }
2566
- if (i !== ke)
2771
+ if (i !== L)
2567
2772
  return {
2568
2773
  reset: {
2569
- placement: ke
2774
+ placement: L
2570
2775
  }
2571
2776
  };
2572
2777
  }
2573
2778
  return {};
2574
2779
  }
2575
2780
  };
2576
- }, la = /* @__PURE__ */ new Set(["left", "top"]);
2577
- async function sa(e, t) {
2781
+ }, Ba = /* @__PURE__ */ new Set(["left", "top"]);
2782
+ async function Ma(e, t) {
2578
2783
  const {
2579
2784
  placement: r,
2580
2785
  platform: n,
2581
2786
  elements: i
2582
- } = e, a = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), l = Me(r), d = Ot(r), p = Ee(r) === "y", c = la.has(l) ? -1 : 1, f = a && p ? -1 : 1, s = Rt(t, e);
2787
+ } = e, a = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), l = He(r), s = Vt(r), u = Le(r) === "y", c = Ba.has(l) ? -1 : 1, f = a && u ? -1 : 1, m = It(t, e);
2583
2788
  let {
2584
2789
  mainAxis: g,
2585
- crossAxis: u,
2586
- alignmentAxis: b
2587
- } = typeof s == "number" ? {
2588
- mainAxis: s,
2790
+ crossAxis: b,
2791
+ alignmentAxis: x
2792
+ } = typeof m == "number" ? {
2793
+ mainAxis: m,
2589
2794
  crossAxis: 0,
2590
2795
  alignmentAxis: null
2591
2796
  } : {
2592
- mainAxis: s.mainAxis || 0,
2593
- crossAxis: s.crossAxis || 0,
2594
- alignmentAxis: s.alignmentAxis
2797
+ mainAxis: m.mainAxis || 0,
2798
+ crossAxis: m.crossAxis || 0,
2799
+ alignmentAxis: m.alignmentAxis
2595
2800
  };
2596
- return d && typeof b == "number" && (u = d === "end" ? b * -1 : b), p ? {
2597
- x: u * f,
2801
+ return s && typeof x == "number" && (b = s === "end" ? x * -1 : x), u ? {
2802
+ x: b * f,
2598
2803
  y: g * c
2599
2804
  } : {
2600
2805
  x: g * c,
2601
- y: u * f
2806
+ y: b * f
2602
2807
  };
2603
2808
  }
2604
- const ca = function(e) {
2809
+ const Fa = function(e) {
2605
2810
  return e === void 0 && (e = 0), {
2606
2811
  name: "offset",
2607
2812
  options: e,
@@ -2611,19 +2816,19 @@ const ca = function(e) {
2611
2816
  x: i,
2612
2817
  y: a,
2613
2818
  placement: l,
2614
- middlewareData: d
2615
- } = t, p = await sa(t, e);
2616
- return l === ((r = d.offset) == null ? void 0 : r.placement) && (n = d.arrow) != null && n.alignmentOffset ? {} : {
2617
- x: i + p.x,
2618
- y: a + p.y,
2819
+ middlewareData: s
2820
+ } = t, u = await Ma(t, e);
2821
+ return l === ((r = s.offset) == null ? void 0 : r.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
2822
+ x: i + u.x,
2823
+ y: a + u.y,
2619
2824
  data: {
2620
- ...p,
2825
+ ...u,
2621
2826
  placement: l
2622
2827
  }
2623
2828
  };
2624
2829
  }
2625
2830
  };
2626
- }, da = function(e) {
2831
+ }, $a = function(e) {
2627
2832
  return e === void 0 && (e = {}), {
2628
2833
  name: "shift",
2629
2834
  options: e,
@@ -2635,95 +2840,95 @@ const ca = function(e) {
2635
2840
  platform: a
2636
2841
  } = t, {
2637
2842
  mainAxis: l = !0,
2638
- crossAxis: d = !1,
2639
- limiter: p = {
2640
- fn: (v) => {
2843
+ crossAxis: s = !1,
2844
+ limiter: u = {
2845
+ fn: (w) => {
2641
2846
  let {
2642
- x: S,
2643
- y: E
2644
- } = v;
2847
+ x: E,
2848
+ y: R
2849
+ } = w;
2645
2850
  return {
2646
- x: S,
2647
- y: E
2851
+ x: E,
2852
+ y: R
2648
2853
  };
2649
2854
  }
2650
2855
  },
2651
2856
  ...c
2652
- } = Rt(e, t), f = {
2857
+ } = It(e, t), f = {
2653
2858
  x: r,
2654
2859
  y: n
2655
- }, s = await a.detectOverflow(t, c), g = Ee(Me(i)), u = gn(g);
2656
- let b = f[u], w = f[g];
2860
+ }, m = await a.detectOverflow(t, c), g = Le(He(i)), b = Sn(g);
2861
+ let x = f[b], k = f[g];
2657
2862
  if (l) {
2658
- const v = u === "y" ? "top" : "left", S = u === "y" ? "bottom" : "right", E = b + s[v], A = b - s[S];
2659
- b = Wr(E, b, A);
2863
+ const w = b === "y" ? "top" : "left", E = b === "y" ? "bottom" : "right", R = x + m[w], C = x - m[E];
2864
+ x = rn(R, x, C);
2660
2865
  }
2661
- if (d) {
2662
- const v = g === "y" ? "top" : "left", S = g === "y" ? "bottom" : "right", E = w + s[v], A = w - s[S];
2663
- w = Wr(E, w, A);
2866
+ if (s) {
2867
+ const w = g === "y" ? "top" : "left", E = g === "y" ? "bottom" : "right", R = k + m[w], C = k - m[E];
2868
+ k = rn(R, k, C);
2664
2869
  }
2665
- const C = p.fn({
2870
+ const y = u.fn({
2666
2871
  ...t,
2667
- [u]: b,
2668
- [g]: w
2872
+ [b]: x,
2873
+ [g]: k
2669
2874
  });
2670
2875
  return {
2671
- ...C,
2876
+ ...y,
2672
2877
  data: {
2673
- x: C.x - r,
2674
- y: C.y - n,
2878
+ x: y.x - r,
2879
+ y: y.y - n,
2675
2880
  enabled: {
2676
- [u]: l,
2677
- [g]: d
2881
+ [b]: l,
2882
+ [g]: s
2678
2883
  }
2679
2884
  }
2680
2885
  };
2681
2886
  }
2682
2887
  };
2683
2888
  };
2684
- function Nt() {
2889
+ function Bt() {
2685
2890
  return typeof window < "u";
2686
2891
  }
2687
- function Fe(e) {
2688
- return nr(e) ? (e.nodeName || "").toLowerCase() : "#document";
2892
+ function je(e) {
2893
+ return fr(e) ? (e.nodeName || "").toLowerCase() : "#document";
2689
2894
  }
2690
- function ie(e) {
2895
+ function ce(e) {
2691
2896
  var t;
2692
2897
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
2693
2898
  }
2694
- function ye(e) {
2899
+ function Te(e) {
2695
2900
  var t;
2696
- return (t = (nr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2901
+ return (t = (fr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2697
2902
  }
2698
- function nr(e) {
2699
- return Nt() ? e instanceof Node || e instanceof ie(e).Node : !1;
2903
+ function fr(e) {
2904
+ return Bt() ? e instanceof Node || e instanceof ce(e).Node : !1;
2700
2905
  }
2701
- function ce(e) {
2702
- return Nt() ? e instanceof Element || e instanceof ie(e).Element : !1;
2906
+ function me(e) {
2907
+ return Bt() ? e instanceof Element || e instanceof ce(e).Element : !1;
2703
2908
  }
2704
- function be(e) {
2705
- return Nt() ? e instanceof HTMLElement || e instanceof ie(e).HTMLElement : !1;
2909
+ function Ce(e) {
2910
+ return Bt() ? e instanceof HTMLElement || e instanceof ce(e).HTMLElement : !1;
2706
2911
  }
2707
- function Xr(e) {
2708
- return !Nt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
2912
+ function ln(e) {
2913
+ return !Bt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ce(e).ShadowRoot;
2709
2914
  }
2710
- const ua = /* @__PURE__ */ new Set(["inline", "contents"]);
2711
- function ft(e) {
2915
+ const Pa = /* @__PURE__ */ new Set(["inline", "contents"]);
2916
+ function mt(e) {
2712
2917
  const {
2713
2918
  overflow: t,
2714
2919
  overflowX: r,
2715
2920
  overflowY: n,
2716
2921
  display: i
2717
- } = de(e);
2718
- return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !ua.has(i);
2922
+ } = be(e);
2923
+ return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !Pa.has(i);
2719
2924
  }
2720
- const fa = /* @__PURE__ */ new Set(["table", "td", "th"]);
2721
- function ga(e) {
2722
- return fa.has(Fe(e));
2925
+ const za = /* @__PURE__ */ new Set(["table", "td", "th"]);
2926
+ function Ha(e) {
2927
+ return za.has(je(e));
2723
2928
  }
2724
- const pa = [":popover-open", ":modal"];
2725
- function Lt(e) {
2726
- return pa.some((t) => {
2929
+ const Ua = [":popover-open", ":modal"];
2930
+ function Mt(e) {
2931
+ return Ua.some((t) => {
2727
2932
  try {
2728
2933
  return e.matches(t);
2729
2934
  } catch {
@@ -2731,34 +2936,34 @@ function Lt(e) {
2731
2936
  }
2732
2937
  });
2733
2938
  }
2734
- const ha = ["transform", "translate", "scale", "rotate", "perspective"], ma = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ba = ["paint", "layout", "strict", "content"];
2735
- function or(e) {
2736
- const t = ir(), r = ce(e) ? de(e) : e;
2737
- return ha.some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ma.some((n) => (r.willChange || "").includes(n)) || ba.some((n) => (r.contain || "").includes(n));
2939
+ const Wa = ["transform", "translate", "scale", "rotate", "perspective"], qa = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ja = ["paint", "layout", "strict", "content"];
2940
+ function gr(e) {
2941
+ const t = pr(), r = me(e) ? be(e) : e;
2942
+ return Wa.some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || qa.some((n) => (r.willChange || "").includes(n)) || ja.some((n) => (r.contain || "").includes(n));
2738
2943
  }
2739
- function xa(e) {
2740
- let t = Oe(e);
2741
- for (; be(t) && !Ke(t); ) {
2742
- if (or(t))
2944
+ function Ga(e) {
2945
+ let t = Ie(e);
2946
+ for (; Ce(t) && !nt(t); ) {
2947
+ if (gr(t))
2743
2948
  return t;
2744
- if (Lt(t))
2949
+ if (Mt(t))
2745
2950
  return null;
2746
- t = Oe(t);
2951
+ t = Ie(t);
2747
2952
  }
2748
2953
  return null;
2749
2954
  }
2750
- function ir() {
2955
+ function pr() {
2751
2956
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
2752
2957
  }
2753
- const ya = /* @__PURE__ */ new Set(["html", "body", "#document"]);
2754
- function Ke(e) {
2755
- return ya.has(Fe(e));
2958
+ const Ya = /* @__PURE__ */ new Set(["html", "body", "#document"]);
2959
+ function nt(e) {
2960
+ return Ya.has(je(e));
2756
2961
  }
2757
- function de(e) {
2758
- return ie(e).getComputedStyle(e);
2962
+ function be(e) {
2963
+ return ce(e).getComputedStyle(e);
2759
2964
  }
2760
- function Dt(e) {
2761
- return ce(e) ? {
2965
+ function Ft(e) {
2966
+ return me(e) ? {
2762
2967
  scrollLeft: e.scrollLeft,
2763
2968
  scrollTop: e.scrollTop
2764
2969
  } : {
@@ -2766,189 +2971,189 @@ function Dt(e) {
2766
2971
  scrollTop: e.scrollY
2767
2972
  };
2768
2973
  }
2769
- function Oe(e) {
2770
- if (Fe(e) === "html")
2974
+ function Ie(e) {
2975
+ if (je(e) === "html")
2771
2976
  return e;
2772
2977
  const t = (
2773
2978
  // Step into the shadow DOM of the parent of a slotted node.
2774
2979
  e.assignedSlot || // DOM Element detected.
2775
2980
  e.parentNode || // ShadowRoot detected.
2776
- Xr(e) && e.host || // Fallback.
2777
- ye(e)
2981
+ ln(e) && e.host || // Fallback.
2982
+ Te(e)
2778
2983
  );
2779
- return Xr(t) ? t.host : t;
2984
+ return ln(t) ? t.host : t;
2780
2985
  }
2781
- function mn(e) {
2782
- const t = Oe(e);
2783
- return Ke(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : be(t) && ft(t) ? t : mn(t);
2986
+ function On(e) {
2987
+ const t = Ie(e);
2988
+ return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ce(t) && mt(t) ? t : On(t);
2784
2989
  }
2785
- function ut(e, t, r) {
2990
+ function pt(e, t, r) {
2786
2991
  var n;
2787
2992
  t === void 0 && (t = []), r === void 0 && (r = !0);
2788
- const i = mn(e), a = i === ((n = e.ownerDocument) == null ? void 0 : n.body), l = ie(i);
2993
+ const i = On(e), a = i === ((n = e.ownerDocument) == null ? void 0 : n.body), l = ce(i);
2789
2994
  if (a) {
2790
- const d = rr(l);
2791
- return t.concat(l, l.visualViewport || [], ft(i) ? i : [], d && r ? ut(d) : []);
2995
+ const s = dr(l);
2996
+ return t.concat(l, l.visualViewport || [], mt(i) ? i : [], s && r ? pt(s) : []);
2792
2997
  }
2793
- return t.concat(i, ut(i, [], r));
2998
+ return t.concat(i, pt(i, [], r));
2794
2999
  }
2795
- function rr(e) {
3000
+ function dr(e) {
2796
3001
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2797
3002
  }
2798
- function bn(e) {
2799
- const t = de(e);
3003
+ function _n(e) {
3004
+ const t = be(e);
2800
3005
  let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
2801
- const i = be(e), a = i ? e.offsetWidth : r, l = i ? e.offsetHeight : n, d = At(r) !== a || At(n) !== l;
2802
- return d && (r = a, n = l), {
3006
+ const i = Ce(e), a = i ? e.offsetWidth : r, l = i ? e.offsetHeight : n, s = _t(r) !== a || _t(n) !== l;
3007
+ return s && (r = a, n = l), {
2803
3008
  width: r,
2804
3009
  height: n,
2805
- $: d
3010
+ $: s
2806
3011
  };
2807
3012
  }
2808
- function ar(e) {
2809
- return ce(e) ? e : e.contextElement;
3013
+ function mr(e) {
3014
+ return me(e) ? e : e.contextElement;
2810
3015
  }
2811
- function Xe(e) {
2812
- const t = ar(e);
2813
- if (!be(t))
2814
- return me(1);
3016
+ function tt(e) {
3017
+ const t = mr(e);
3018
+ if (!Ce(t))
3019
+ return we(1);
2815
3020
  const r = t.getBoundingClientRect(), {
2816
3021
  width: n,
2817
3022
  height: i,
2818
3023
  $: a
2819
- } = bn(t);
2820
- let l = (a ? At(r.width) : r.width) / n, d = (a ? At(r.height) : r.height) / i;
2821
- return (!l || !Number.isFinite(l)) && (l = 1), (!d || !Number.isFinite(d)) && (d = 1), {
3024
+ } = _n(t);
3025
+ let l = (a ? _t(r.width) : r.width) / n, s = (a ? _t(r.height) : r.height) / i;
3026
+ return (!l || !Number.isFinite(l)) && (l = 1), (!s || !Number.isFinite(s)) && (s = 1), {
2822
3027
  x: l,
2823
- y: d
3028
+ y: s
2824
3029
  };
2825
3030
  }
2826
- const va = /* @__PURE__ */ me(0);
2827
- function xn(e) {
2828
- const t = ie(e);
2829
- return !ir() || !t.visualViewport ? va : {
3031
+ const Xa = /* @__PURE__ */ we(0);
3032
+ function Nn(e) {
3033
+ const t = ce(e);
3034
+ return !pr() || !t.visualViewport ? Xa : {
2830
3035
  x: t.visualViewport.offsetLeft,
2831
3036
  y: t.visualViewport.offsetTop
2832
3037
  };
2833
3038
  }
2834
- function ka(e, t, r) {
2835
- return t === void 0 && (t = !1), !r || t && r !== ie(e) ? !1 : t;
3039
+ function Ka(e, t, r) {
3040
+ return t === void 0 && (t = !1), !r || t && r !== ce(e) ? !1 : t;
2836
3041
  }
2837
- function Be(e, t, r, n) {
3042
+ function Ue(e, t, r, n) {
2838
3043
  t === void 0 && (t = !1), r === void 0 && (r = !1);
2839
- const i = e.getBoundingClientRect(), a = ar(e);
2840
- let l = me(1);
2841
- t && (n ? ce(n) && (l = Xe(n)) : l = Xe(e));
2842
- const d = ka(a, r, n) ? xn(a) : me(0);
2843
- let p = (i.left + d.x) / l.x, c = (i.top + d.y) / l.y, f = i.width / l.x, s = i.height / l.y;
3044
+ const i = e.getBoundingClientRect(), a = mr(e);
3045
+ let l = we(1);
3046
+ t && (n ? me(n) && (l = tt(n)) : l = tt(e));
3047
+ const s = Ka(a, r, n) ? Nn(a) : we(0);
3048
+ let u = (i.left + s.x) / l.x, c = (i.top + s.y) / l.y, f = i.width / l.x, m = i.height / l.y;
2844
3049
  if (a) {
2845
- const g = ie(a), u = n && ce(n) ? ie(n) : n;
2846
- let b = g, w = rr(b);
2847
- for (; w && n && u !== b; ) {
2848
- const C = Xe(w), v = w.getBoundingClientRect(), S = de(w), E = v.left + (w.clientLeft + parseFloat(S.paddingLeft)) * C.x, A = v.top + (w.clientTop + parseFloat(S.paddingTop)) * C.y;
2849
- p *= C.x, c *= C.y, f *= C.x, s *= C.y, p += E, c += A, b = ie(w), w = rr(b);
3050
+ const g = ce(a), b = n && me(n) ? ce(n) : n;
3051
+ let x = g, k = dr(x);
3052
+ for (; k && n && b !== x; ) {
3053
+ const y = tt(k), w = k.getBoundingClientRect(), E = be(k), R = w.left + (k.clientLeft + parseFloat(E.paddingLeft)) * y.x, C = w.top + (k.clientTop + parseFloat(E.paddingTop)) * y.y;
3054
+ u *= y.x, c *= y.y, f *= y.x, m *= y.y, u += R, c += C, x = ce(k), k = dr(x);
2850
3055
  }
2851
3056
  }
2852
- return Et({
3057
+ return Lt({
2853
3058
  width: f,
2854
- height: s,
2855
- x: p,
3059
+ height: m,
3060
+ x: u,
2856
3061
  y: c
2857
3062
  });
2858
3063
  }
2859
- function _t(e, t) {
2860
- const r = Dt(e).scrollLeft;
2861
- return t ? t.left + r : Be(ye(e)).left + r;
3064
+ function $t(e, t) {
3065
+ const r = Ft(e).scrollLeft;
3066
+ return t ? t.left + r : Ue(Te(e)).left + r;
2862
3067
  }
2863
- function yn(e, t) {
2864
- const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - _t(e, r), i = r.top + t.scrollTop;
3068
+ function Ln(e, t) {
3069
+ const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - $t(e, r), i = r.top + t.scrollTop;
2865
3070
  return {
2866
3071
  x: n,
2867
3072
  y: i
2868
3073
  };
2869
3074
  }
2870
- function wa(e) {
3075
+ function Za(e) {
2871
3076
  let {
2872
3077
  elements: t,
2873
3078
  rect: r,
2874
3079
  offsetParent: n,
2875
3080
  strategy: i
2876
3081
  } = e;
2877
- const a = i === "fixed", l = ye(n), d = t ? Lt(t.floating) : !1;
2878
- if (n === l || d && a)
3082
+ const a = i === "fixed", l = Te(n), s = t ? Mt(t.floating) : !1;
3083
+ if (n === l || s && a)
2879
3084
  return r;
2880
- let p = {
3085
+ let u = {
2881
3086
  scrollLeft: 0,
2882
3087
  scrollTop: 0
2883
- }, c = me(1);
2884
- const f = me(0), s = be(n);
2885
- if ((s || !s && !a) && ((Fe(n) !== "body" || ft(l)) && (p = Dt(n)), be(n))) {
2886
- const u = Be(n);
2887
- c = Xe(n), f.x = u.x + n.clientLeft, f.y = u.y + n.clientTop;
3088
+ }, c = we(1);
3089
+ const f = we(0), m = Ce(n);
3090
+ if ((m || !m && !a) && ((je(n) !== "body" || mt(l)) && (u = Ft(n)), Ce(n))) {
3091
+ const b = Ue(n);
3092
+ c = tt(n), f.x = b.x + n.clientLeft, f.y = b.y + n.clientTop;
2888
3093
  }
2889
- const g = l && !s && !a ? yn(l, p) : me(0);
3094
+ const g = l && !m && !a ? Ln(l, u) : we(0);
2890
3095
  return {
2891
3096
  width: r.width * c.x,
2892
3097
  height: r.height * c.y,
2893
- x: r.x * c.x - p.scrollLeft * c.x + f.x + g.x,
2894
- y: r.y * c.y - p.scrollTop * c.y + f.y + g.y
3098
+ x: r.x * c.x - u.scrollLeft * c.x + f.x + g.x,
3099
+ y: r.y * c.y - u.scrollTop * c.y + f.y + g.y
2895
3100
  };
2896
3101
  }
2897
- function Ca(e) {
3102
+ function Ja(e) {
2898
3103
  return Array.from(e.getClientRects());
2899
3104
  }
2900
- function Ta(e) {
2901
- const t = ye(e), r = Dt(e), n = e.ownerDocument.body, i = Ie(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), a = Ie(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
2902
- let l = -r.scrollLeft + _t(e);
2903
- const d = -r.scrollTop;
2904
- return de(n).direction === "rtl" && (l += Ie(t.clientWidth, n.clientWidth) - i), {
3105
+ function Qa(e) {
3106
+ const t = Te(e), r = Ft(e), n = e.ownerDocument.body, i = $e(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), a = $e(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
3107
+ let l = -r.scrollLeft + $t(e);
3108
+ const s = -r.scrollTop;
3109
+ return be(n).direction === "rtl" && (l += $e(t.clientWidth, n.clientWidth) - i), {
2905
3110
  width: i,
2906
3111
  height: a,
2907
3112
  x: l,
2908
- y: d
3113
+ y: s
2909
3114
  };
2910
3115
  }
2911
- const qr = 25;
2912
- function Aa(e, t) {
2913
- const r = ie(e), n = ye(e), i = r.visualViewport;
2914
- let a = n.clientWidth, l = n.clientHeight, d = 0, p = 0;
3116
+ const sn = 25;
3117
+ function el(e, t) {
3118
+ const r = ce(e), n = Te(e), i = r.visualViewport;
3119
+ let a = n.clientWidth, l = n.clientHeight, s = 0, u = 0;
2915
3120
  if (i) {
2916
3121
  a = i.width, l = i.height;
2917
- const f = ir();
2918
- (!f || f && t === "fixed") && (d = i.offsetLeft, p = i.offsetTop);
3122
+ const f = pr();
3123
+ (!f || f && t === "fixed") && (s = i.offsetLeft, u = i.offsetTop);
2919
3124
  }
2920
- const c = _t(n);
3125
+ const c = $t(n);
2921
3126
  if (c <= 0) {
2922
- const f = n.ownerDocument, s = f.body, g = getComputedStyle(s), u = f.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, b = Math.abs(n.clientWidth - s.clientWidth - u);
2923
- b <= qr && (a -= b);
2924
- } else c <= qr && (a += c);
3127
+ const f = n.ownerDocument, m = f.body, g = getComputedStyle(m), b = f.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, x = Math.abs(n.clientWidth - m.clientWidth - b);
3128
+ x <= sn && (a -= x);
3129
+ } else c <= sn && (a += c);
2925
3130
  return {
2926
3131
  width: a,
2927
3132
  height: l,
2928
- x: d,
2929
- y: p
3133
+ x: s,
3134
+ y: u
2930
3135
  };
2931
3136
  }
2932
- const Sa = /* @__PURE__ */ new Set(["absolute", "fixed"]);
2933
- function Ea(e, t) {
2934
- const r = Be(e, !0, t === "fixed"), n = r.top + e.clientTop, i = r.left + e.clientLeft, a = be(e) ? Xe(e) : me(1), l = e.clientWidth * a.x, d = e.clientHeight * a.y, p = i * a.x, c = n * a.y;
3137
+ const tl = /* @__PURE__ */ new Set(["absolute", "fixed"]);
3138
+ function rl(e, t) {
3139
+ const r = Ue(e, !0, t === "fixed"), n = r.top + e.clientTop, i = r.left + e.clientLeft, a = Ce(e) ? tt(e) : we(1), l = e.clientWidth * a.x, s = e.clientHeight * a.y, u = i * a.x, c = n * a.y;
2935
3140
  return {
2936
3141
  width: l,
2937
- height: d,
2938
- x: p,
3142
+ height: s,
3143
+ x: u,
2939
3144
  y: c
2940
3145
  };
2941
3146
  }
2942
- function Kr(e, t, r) {
3147
+ function cn(e, t, r) {
2943
3148
  let n;
2944
3149
  if (t === "viewport")
2945
- n = Aa(e, r);
3150
+ n = el(e, r);
2946
3151
  else if (t === "document")
2947
- n = Ta(ye(e));
2948
- else if (ce(t))
2949
- n = Ea(t, r);
3152
+ n = Qa(Te(e));
3153
+ else if (me(t))
3154
+ n = rl(t, r);
2950
3155
  else {
2951
- const i = xn(e);
3156
+ const i = Nn(e);
2952
3157
  n = {
2953
3158
  x: t.x - i.x,
2954
3159
  y: t.y - i.y,
@@ -2956,110 +3161,110 @@ function Kr(e, t, r) {
2956
3161
  height: t.height
2957
3162
  };
2958
3163
  }
2959
- return Et(n);
3164
+ return Lt(n);
2960
3165
  }
2961
- function vn(e, t) {
2962
- const r = Oe(e);
2963
- return r === t || !ce(r) || Ke(r) ? !1 : de(r).position === "fixed" || vn(r, t);
3166
+ function Dn(e, t) {
3167
+ const r = Ie(e);
3168
+ return r === t || !me(r) || nt(r) ? !1 : be(r).position === "fixed" || Dn(r, t);
2964
3169
  }
2965
- function Ra(e, t) {
3170
+ function nl(e, t) {
2966
3171
  const r = t.get(e);
2967
3172
  if (r)
2968
3173
  return r;
2969
- let n = ut(e, [], !1).filter((d) => ce(d) && Fe(d) !== "body"), i = null;
2970
- const a = de(e).position === "fixed";
2971
- let l = a ? Oe(e) : e;
2972
- for (; ce(l) && !Ke(l); ) {
2973
- const d = de(l), p = or(l);
2974
- !p && d.position === "fixed" && (i = null), (a ? !p && !i : !p && d.position === "static" && !!i && Sa.has(i.position) || ft(l) && !p && vn(e, l)) ? n = n.filter((f) => f !== l) : i = d, l = Oe(l);
3174
+ let n = pt(e, [], !1).filter((s) => me(s) && je(s) !== "body"), i = null;
3175
+ const a = be(e).position === "fixed";
3176
+ let l = a ? Ie(e) : e;
3177
+ for (; me(l) && !nt(l); ) {
3178
+ const s = be(l), u = gr(l);
3179
+ !u && s.position === "fixed" && (i = null), (a ? !u && !i : !u && s.position === "static" && !!i && tl.has(i.position) || mt(l) && !u && Dn(e, l)) ? n = n.filter((f) => f !== l) : i = s, l = Ie(l);
2975
3180
  }
2976
3181
  return t.set(e, n), n;
2977
3182
  }
2978
- function Oa(e) {
3183
+ function ol(e) {
2979
3184
  let {
2980
3185
  element: t,
2981
3186
  boundary: r,
2982
3187
  rootBoundary: n,
2983
3188
  strategy: i
2984
3189
  } = e;
2985
- const l = [...r === "clippingAncestors" ? Lt(t) ? [] : Ra(t, this._c) : [].concat(r), n], d = l[0], p = l.reduce((c, f) => {
2986
- const s = Kr(t, f, i);
2987
- return c.top = Ie(s.top, c.top), c.right = Tt(s.right, c.right), c.bottom = Tt(s.bottom, c.bottom), c.left = Ie(s.left, c.left), c;
2988
- }, Kr(t, d, i));
3190
+ const l = [...r === "clippingAncestors" ? Mt(t) ? [] : nl(t, this._c) : [].concat(r), n], s = l[0], u = l.reduce((c, f) => {
3191
+ const m = cn(t, f, i);
3192
+ return c.top = $e(m.top, c.top), c.right = Ot(m.right, c.right), c.bottom = Ot(m.bottom, c.bottom), c.left = $e(m.left, c.left), c;
3193
+ }, cn(t, s, i));
2989
3194
  return {
2990
- width: p.right - p.left,
2991
- height: p.bottom - p.top,
2992
- x: p.left,
2993
- y: p.top
3195
+ width: u.right - u.left,
3196
+ height: u.bottom - u.top,
3197
+ x: u.left,
3198
+ y: u.top
2994
3199
  };
2995
3200
  }
2996
- function Na(e) {
3201
+ function il(e) {
2997
3202
  const {
2998
3203
  width: t,
2999
3204
  height: r
3000
- } = bn(e);
3205
+ } = _n(e);
3001
3206
  return {
3002
3207
  width: t,
3003
3208
  height: r
3004
3209
  };
3005
3210
  }
3006
- function La(e, t, r) {
3007
- const n = be(t), i = ye(t), a = r === "fixed", l = Be(e, !0, a, t);
3008
- let d = {
3211
+ function al(e, t, r) {
3212
+ const n = Ce(t), i = Te(t), a = r === "fixed", l = Ue(e, !0, a, t);
3213
+ let s = {
3009
3214
  scrollLeft: 0,
3010
3215
  scrollTop: 0
3011
3216
  };
3012
- const p = me(0);
3217
+ const u = we(0);
3013
3218
  function c() {
3014
- p.x = _t(i);
3219
+ u.x = $t(i);
3015
3220
  }
3016
3221
  if (n || !n && !a)
3017
- if ((Fe(t) !== "body" || ft(i)) && (d = Dt(t)), n) {
3018
- const u = Be(t, !0, a, t);
3019
- p.x = u.x + t.clientLeft, p.y = u.y + t.clientTop;
3222
+ if ((je(t) !== "body" || mt(i)) && (s = Ft(t)), n) {
3223
+ const b = Ue(t, !0, a, t);
3224
+ u.x = b.x + t.clientLeft, u.y = b.y + t.clientTop;
3020
3225
  } else i && c();
3021
3226
  a && !n && i && c();
3022
- const f = i && !n && !a ? yn(i, d) : me(0), s = l.left + d.scrollLeft - p.x - f.x, g = l.top + d.scrollTop - p.y - f.y;
3227
+ const f = i && !n && !a ? Ln(i, s) : we(0), m = l.left + s.scrollLeft - u.x - f.x, g = l.top + s.scrollTop - u.y - f.y;
3023
3228
  return {
3024
- x: s,
3229
+ x: m,
3025
3230
  y: g,
3026
3231
  width: l.width,
3027
3232
  height: l.height
3028
3233
  };
3029
3234
  }
3030
- function Jt(e) {
3031
- return de(e).position === "static";
3235
+ function or(e) {
3236
+ return be(e).position === "static";
3032
3237
  }
3033
- function Zr(e, t) {
3034
- if (!be(e) || de(e).position === "fixed")
3238
+ function dn(e, t) {
3239
+ if (!Ce(e) || be(e).position === "fixed")
3035
3240
  return null;
3036
3241
  if (t)
3037
3242
  return t(e);
3038
3243
  let r = e.offsetParent;
3039
- return ye(e) === r && (r = r.ownerDocument.body), r;
3244
+ return Te(e) === r && (r = r.ownerDocument.body), r;
3040
3245
  }
3041
- function kn(e, t) {
3042
- const r = ie(e);
3043
- if (Lt(e))
3246
+ function In(e, t) {
3247
+ const r = ce(e);
3248
+ if (Mt(e))
3044
3249
  return r;
3045
- if (!be(e)) {
3046
- let i = Oe(e);
3047
- for (; i && !Ke(i); ) {
3048
- if (ce(i) && !Jt(i))
3250
+ if (!Ce(e)) {
3251
+ let i = Ie(e);
3252
+ for (; i && !nt(i); ) {
3253
+ if (me(i) && !or(i))
3049
3254
  return i;
3050
- i = Oe(i);
3255
+ i = Ie(i);
3051
3256
  }
3052
3257
  return r;
3053
3258
  }
3054
- let n = Zr(e, t);
3055
- for (; n && ga(n) && Jt(n); )
3056
- n = Zr(n, t);
3057
- return n && Ke(n) && Jt(n) && !or(n) ? r : n || xa(e) || r;
3259
+ let n = dn(e, t);
3260
+ for (; n && Ha(n) && or(n); )
3261
+ n = dn(n, t);
3262
+ return n && nt(n) && or(n) && !gr(n) ? r : n || Ga(e) || r;
3058
3263
  }
3059
- const Da = async function(e) {
3060
- const t = this.getOffsetParent || kn, r = this.getDimensions, n = await r(e.floating);
3264
+ const ll = async function(e) {
3265
+ const t = this.getOffsetParent || In, r = this.getDimensions, n = await r(e.floating);
3061
3266
  return {
3062
- reference: La(e.reference, await t(e.floating), e.strategy),
3267
+ reference: al(e.reference, await t(e.floating), e.strategy),
3063
3268
  floating: {
3064
3269
  x: 0,
3065
3270
  y: 0,
@@ -3068,224 +3273,312 @@ const Da = async function(e) {
3068
3273
  }
3069
3274
  };
3070
3275
  };
3071
- function _a(e) {
3072
- return de(e).direction === "rtl";
3073
- }
3074
- const Va = {
3075
- convertOffsetParentRelativeRectToViewportRelativeRect: wa,
3076
- getDocumentElement: ye,
3077
- getClippingRect: Oa,
3078
- getOffsetParent: kn,
3079
- getElementRects: Da,
3080
- getClientRects: Ca,
3081
- getDimensions: Na,
3082
- getScale: Xe,
3083
- isElement: ce,
3084
- isRTL: _a
3276
+ function sl(e) {
3277
+ return be(e).direction === "rtl";
3278
+ }
3279
+ const cl = {
3280
+ convertOffsetParentRelativeRectToViewportRelativeRect: Za,
3281
+ getDocumentElement: Te,
3282
+ getClippingRect: ol,
3283
+ getOffsetParent: In,
3284
+ getElementRects: ll,
3285
+ getClientRects: Ja,
3286
+ getDimensions: il,
3287
+ getScale: tt,
3288
+ isElement: me,
3289
+ isRTL: sl
3085
3290
  };
3086
- function wn(e, t) {
3291
+ function Vn(e, t) {
3087
3292
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
3088
3293
  }
3089
- function Ia(e, t) {
3294
+ function dl(e, t) {
3090
3295
  let r = null, n;
3091
- const i = ye(e);
3296
+ const i = Te(e);
3092
3297
  function a() {
3093
- var d;
3094
- clearTimeout(n), (d = r) == null || d.disconnect(), r = null;
3298
+ var s;
3299
+ clearTimeout(n), (s = r) == null || s.disconnect(), r = null;
3095
3300
  }
3096
- function l(d, p) {
3097
- d === void 0 && (d = !1), p === void 0 && (p = 1), a();
3301
+ function l(s, u) {
3302
+ s === void 0 && (s = !1), u === void 0 && (u = 1), a();
3098
3303
  const c = e.getBoundingClientRect(), {
3099
3304
  left: f,
3100
- top: s,
3305
+ top: m,
3101
3306
  width: g,
3102
- height: u
3307
+ height: b
3103
3308
  } = c;
3104
- if (d || t(), !g || !u)
3309
+ if (s || t(), !g || !b)
3105
3310
  return;
3106
- const b = Ct(s), w = Ct(i.clientWidth - (f + g)), C = Ct(i.clientHeight - (s + u)), v = Ct(f), E = {
3107
- rootMargin: -b + "px " + -w + "px " + -C + "px " + -v + "px",
3108
- threshold: Ie(0, Tt(1, p)) || 1
3311
+ const x = At(m), k = At(i.clientWidth - (f + g)), y = At(i.clientHeight - (m + b)), w = At(f), R = {
3312
+ rootMargin: -x + "px " + -k + "px " + -y + "px " + -w + "px",
3313
+ threshold: $e(0, Ot(1, u)) || 1
3109
3314
  };
3110
- let A = !0;
3111
- function F(P) {
3112
- const L = P[0].intersectionRatio;
3113
- if (L !== p) {
3114
- if (!A)
3315
+ let C = !0;
3316
+ function V(M) {
3317
+ const N = M[0].intersectionRatio;
3318
+ if (N !== u) {
3319
+ if (!C)
3115
3320
  return l();
3116
- L ? l(!1, L) : n = setTimeout(() => {
3321
+ N ? l(!1, N) : n = setTimeout(() => {
3117
3322
  l(!1, 1e-7);
3118
3323
  }, 1e3);
3119
3324
  }
3120
- L === 1 && !wn(c, e.getBoundingClientRect()) && l(), A = !1;
3325
+ N === 1 && !Vn(c, e.getBoundingClientRect()) && l(), C = !1;
3121
3326
  }
3122
3327
  try {
3123
- r = new IntersectionObserver(F, {
3124
- ...E,
3328
+ r = new IntersectionObserver(V, {
3329
+ ...R,
3125
3330
  // Handle <iframe>s
3126
3331
  root: i.ownerDocument
3127
3332
  });
3128
3333
  } catch {
3129
- r = new IntersectionObserver(F, E);
3334
+ r = new IntersectionObserver(V, R);
3130
3335
  }
3131
3336
  r.observe(e);
3132
3337
  }
3133
3338
  return l(!0), a;
3134
3339
  }
3135
- function Ma(e, t, r, n) {
3340
+ function ul(e, t, r, n) {
3136
3341
  n === void 0 && (n = {});
3137
3342
  const {
3138
3343
  ancestorScroll: i = !0,
3139
3344
  ancestorResize: a = !0,
3140
3345
  elementResize: l = typeof ResizeObserver == "function",
3141
- layoutShift: d = typeof IntersectionObserver == "function",
3142
- animationFrame: p = !1
3143
- } = n, c = ar(e), f = i || a ? [...c ? ut(c) : [], ...ut(t)] : [];
3144
- f.forEach((v) => {
3145
- i && v.addEventListener("scroll", r, {
3346
+ layoutShift: s = typeof IntersectionObserver == "function",
3347
+ animationFrame: u = !1
3348
+ } = n, c = mr(e), f = i || a ? [...c ? pt(c) : [], ...pt(t)] : [];
3349
+ f.forEach((w) => {
3350
+ i && w.addEventListener("scroll", r, {
3146
3351
  passive: !0
3147
- }), a && v.addEventListener("resize", r);
3352
+ }), a && w.addEventListener("resize", r);
3148
3353
  });
3149
- const s = c && d ? Ia(c, r) : null;
3150
- let g = -1, u = null;
3151
- l && (u = new ResizeObserver((v) => {
3152
- let [S] = v;
3153
- S && S.target === c && u && (u.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
3154
- var E;
3155
- (E = u) == null || E.observe(t);
3354
+ const m = c && s ? dl(c, r) : null;
3355
+ let g = -1, b = null;
3356
+ l && (b = new ResizeObserver((w) => {
3357
+ let [E] = w;
3358
+ E && E.target === c && b && (b.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
3359
+ var R;
3360
+ (R = b) == null || R.observe(t);
3156
3361
  })), r();
3157
- }), c && !p && u.observe(c), u.observe(t));
3158
- let b, w = p ? Be(e) : null;
3159
- p && C();
3160
- function C() {
3161
- const v = Be(e);
3162
- w && !wn(w, v) && r(), w = v, b = requestAnimationFrame(C);
3362
+ }), c && !u && b.observe(c), b.observe(t));
3363
+ let x, k = u ? Ue(e) : null;
3364
+ u && y();
3365
+ function y() {
3366
+ const w = Ue(e);
3367
+ k && !Vn(k, w) && r(), k = w, x = requestAnimationFrame(y);
3163
3368
  }
3164
3369
  return r(), () => {
3165
- var v;
3166
- f.forEach((S) => {
3167
- i && S.removeEventListener("scroll", r), a && S.removeEventListener("resize", r);
3168
- }), s?.(), (v = u) == null || v.disconnect(), u = null, p && cancelAnimationFrame(b);
3370
+ var w;
3371
+ f.forEach((E) => {
3372
+ i && E.removeEventListener("scroll", r), a && E.removeEventListener("resize", r);
3373
+ }), m?.(), (w = b) == null || w.disconnect(), b = null, u && cancelAnimationFrame(x);
3169
3374
  };
3170
3375
  }
3171
- const Ba = ca, Fa = da, Pa = aa, za = (e, t, r) => {
3376
+ const fl = Fa, gl = $a, pl = Va, ml = (e, t, r) => {
3172
3377
  const n = /* @__PURE__ */ new Map(), i = {
3173
- platform: Va,
3378
+ platform: cl,
3174
3379
  ...r
3175
3380
  }, a = {
3176
3381
  ...i.platform,
3177
3382
  _c: n
3178
3383
  };
3179
- return ia(e, t, {
3384
+ return Ia(e, t, {
3180
3385
  ...i,
3181
3386
  platform: a
3182
3387
  });
3183
3388
  };
3184
- function Ha(e) {
3389
+ function bl(e) {
3185
3390
  return e != null && typeof e == "object" && "$el" in e;
3186
3391
  }
3187
- function Jr(e) {
3188
- if (Ha(e)) {
3392
+ function un(e) {
3393
+ if (bl(e)) {
3189
3394
  const t = e.$el;
3190
- return nr(t) && Fe(t) === "#comment" ? null : t;
3395
+ return fr(t) && je(t) === "#comment" ? null : t;
3191
3396
  }
3192
3397
  return e;
3193
3398
  }
3194
- function at(e) {
3195
- return typeof e == "function" ? e() : Te(e);
3399
+ function ft(e) {
3400
+ return typeof e == "function" ? e() : d(e);
3196
3401
  }
3197
- function Cn(e) {
3402
+ function Bn(e) {
3198
3403
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
3199
3404
  }
3200
- function Qr(e, t) {
3201
- const r = Cn(e);
3405
+ function fn(e, t) {
3406
+ const r = Bn(e);
3202
3407
  return Math.round(t * r) / r;
3203
3408
  }
3204
- function $a(e, t, r) {
3409
+ function hl(e, t, r) {
3205
3410
  r === void 0 && (r = {});
3206
- const n = r.whileElementsMounted, i = O(() => {
3207
- var L;
3208
- return (L = at(r.open)) != null ? L : !0;
3209
- }), a = O(() => at(r.middleware)), l = O(() => {
3210
- var L;
3211
- return (L = at(r.placement)) != null ? L : "bottom";
3212
- }), d = O(() => {
3213
- var L;
3214
- return (L = at(r.strategy)) != null ? L : "absolute";
3215
- }), p = O(() => {
3216
- var L;
3217
- return (L = at(r.transform)) != null ? L : !0;
3218
- }), c = O(() => Jr(e.value)), f = O(() => Jr(t.value)), s = Y(0), g = Y(0), u = Y(d.value), b = Y(l.value), w = Vn({}), C = Y(!1), v = O(() => {
3219
- const L = {
3220
- position: u.value,
3411
+ const n = r.whileElementsMounted, i = S(() => {
3412
+ var N;
3413
+ return (N = ft(r.open)) != null ? N : !0;
3414
+ }), a = S(() => ft(r.middleware)), l = S(() => {
3415
+ var N;
3416
+ return (N = ft(r.placement)) != null ? N : "bottom";
3417
+ }), s = S(() => {
3418
+ var N;
3419
+ return (N = ft(r.strategy)) != null ? N : "absolute";
3420
+ }), u = S(() => {
3421
+ var N;
3422
+ return (N = ft(r.transform)) != null ? N : !0;
3423
+ }), c = S(() => un(e.value)), f = S(() => un(t.value)), m = te(0), g = te(0), b = te(s.value), x = te(l.value), k = Jn({}), y = te(!1), w = S(() => {
3424
+ const N = {
3425
+ position: b.value,
3221
3426
  left: "0",
3222
3427
  top: "0"
3223
3428
  };
3224
3429
  if (!f.value)
3225
- return L;
3226
- const J = Qr(f.value, s.value), le = Qr(f.value, g.value);
3227
- return p.value ? {
3228
- ...L,
3229
- transform: "translate(" + J + "px, " + le + "px)",
3230
- ...Cn(f.value) >= 1.5 && {
3430
+ return N;
3431
+ const Z = fn(f.value, m.value), fe = fn(f.value, g.value);
3432
+ return u.value ? {
3433
+ ...N,
3434
+ transform: "translate(" + Z + "px, " + fe + "px)",
3435
+ ...Bn(f.value) >= 1.5 && {
3231
3436
  willChange: "transform"
3232
3437
  }
3233
3438
  } : {
3234
- position: u.value,
3235
- left: J + "px",
3236
- top: le + "px"
3439
+ position: b.value,
3440
+ left: Z + "px",
3441
+ top: fe + "px"
3237
3442
  };
3238
3443
  });
3239
- let S;
3240
- function E() {
3444
+ let E;
3445
+ function R() {
3241
3446
  if (c.value == null || f.value == null)
3242
3447
  return;
3243
- const L = i.value;
3244
- za(c.value, f.value, {
3448
+ const N = i.value;
3449
+ ml(c.value, f.value, {
3245
3450
  middleware: a.value,
3246
3451
  placement: l.value,
3247
- strategy: d.value
3248
- }).then((J) => {
3249
- s.value = J.x, g.value = J.y, u.value = J.strategy, b.value = J.placement, w.value = J.middlewareData, C.value = L !== !1;
3452
+ strategy: s.value
3453
+ }).then((Z) => {
3454
+ m.value = Z.x, g.value = Z.y, b.value = Z.strategy, x.value = Z.placement, k.value = Z.middlewareData, y.value = N !== !1;
3250
3455
  });
3251
3456
  }
3252
- function A() {
3253
- typeof S == "function" && (S(), S = void 0);
3457
+ function C() {
3458
+ typeof E == "function" && (E(), E = void 0);
3254
3459
  }
3255
- function F() {
3256
- if (A(), n === void 0) {
3257
- E();
3460
+ function V() {
3461
+ if (C(), n === void 0) {
3462
+ R();
3258
3463
  return;
3259
3464
  }
3260
3465
  if (c.value != null && f.value != null) {
3261
- S = n(c.value, f.value, E);
3466
+ E = n(c.value, f.value, R);
3262
3467
  return;
3263
3468
  }
3264
3469
  }
3265
- function P() {
3266
- i.value || (C.value = !1);
3470
+ function M() {
3471
+ i.value || (y.value = !1);
3267
3472
  }
3268
- return Ye([a, l, d, i], E, {
3473
+ return _e([a, l, s, i], R, {
3269
3474
  flush: "sync"
3270
- }), Ye([c, f], F, {
3475
+ }), _e([c, f], V, {
3271
3476
  flush: "sync"
3272
- }), Ye(i, P, {
3477
+ }), _e(i, M, {
3273
3478
  flush: "sync"
3274
- }), In() && Mn(A), {
3275
- x: Ue(s),
3276
- y: Ue(g),
3277
- strategy: Ue(u),
3278
- placement: Ue(b),
3279
- middlewareData: Ue(w),
3280
- isPositioned: Ue(C),
3281
- floatingStyles: v,
3282
- update: E
3479
+ }), Qn() && eo(C), {
3480
+ x: Ze(m),
3481
+ y: Ze(g),
3482
+ strategy: Ze(b),
3483
+ placement: Ze(x),
3484
+ middlewareData: Ze(k),
3485
+ isPositioned: Ze(y),
3486
+ floatingStyles: w,
3487
+ update: R
3283
3488
  };
3284
3489
  }
3285
- const Ua = ["id", "placeholder", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"], Wa = ["id"], ja = ["id", "aria-selected", "onClick", "onMouseenter"], Ga = /* @__PURE__ */ xe({
3490
+ const vl = /* @__PURE__ */ de({
3491
+ __name: "CaretDown",
3492
+ props: {
3493
+ color: { default: "dark-4" },
3494
+ className: { default: "" }
3495
+ },
3496
+ setup(e) {
3497
+ const t = e, r = S(
3498
+ () => [P.svgFillColorVariant({ color: t.color }), t.className].filter(Boolean).join(" ")
3499
+ );
3500
+ return (n, i) => (O(), D("svg", {
3501
+ xmlns: "http://www.w3.org/2000/svg",
3502
+ viewBox: "0 0 320 512",
3503
+ "aria-hidden": "true",
3504
+ focusable: "false",
3505
+ class: K(r.value)
3506
+ }, [...i[0] || (i[0] = [
3507
+ H("path", { d: "M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z" }, null, -1)
3508
+ ])], 2));
3509
+ }
3510
+ }), xl = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Et = (e) => typeof e == "string" ? e : e.text, ir = (e) => typeof e == "string" ? e : e.value, yl = (e, t) => S(() => {
3511
+ const r = ge(e), n = ge(t);
3512
+ if (n === "")
3513
+ return r;
3514
+ const i = new RegExp(xl(n), "i");
3515
+ return r.filter((a) => i.test(Et(a)));
3516
+ }), kl = (e) => {
3517
+ const { isOpen: t, activeIndex: r, onSelect: n, onClear: i, onActiveChange: a } = e, l = (f) => {
3518
+ const m = ge(e.optionCount);
3519
+ if (m <= 0) {
3520
+ r.value = -1;
3521
+ return;
3522
+ }
3523
+ const g = Math.max(0, Math.min(f, m - 1));
3524
+ r.value = g, a?.(g);
3525
+ }, s = () => {
3526
+ t.value = !1, r.value = -1;
3527
+ }, u = (f) => {
3528
+ switch (f.key) {
3529
+ case "ArrowDown":
3530
+ if (f.preventDefault(), !t.value) {
3531
+ t.value = !0;
3532
+ return;
3533
+ }
3534
+ if (f.altKey) return;
3535
+ l(r.value + 1);
3536
+ return;
3537
+ case "ArrowUp":
3538
+ if (f.preventDefault(), !t.value) {
3539
+ t.value = !0;
3540
+ return;
3541
+ }
3542
+ l(
3543
+ r.value < 0 ? ge(e.optionCount) - 1 : r.value - 1
3544
+ );
3545
+ return;
3546
+ case "Home":
3547
+ if (!t.value) return;
3548
+ f.preventDefault(), l(0);
3549
+ return;
3550
+ case "End":
3551
+ if (!t.value) return;
3552
+ f.preventDefault(), l(ge(e.optionCount) - 1);
3553
+ return;
3554
+ case "Enter":
3555
+ if (!t.value || r.value < 0) return;
3556
+ f.preventDefault(), n(r.value);
3557
+ return;
3558
+ case "Escape":
3559
+ if (t.value) {
3560
+ s();
3561
+ return;
3562
+ }
3563
+ i();
3564
+ return;
3565
+ case "Tab":
3566
+ t.value && s();
3567
+ return;
3568
+ default:
3569
+ return;
3570
+ }
3571
+ }, c = S(
3572
+ () => t.value && r.value >= 0 ? `${ge(e.idPrefix)}-option-${r.value}` : void 0
3573
+ );
3574
+ return { onKeydown: u, activeDescendantId: c };
3575
+ }, wl = ["id", "placeholder", "disabled", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-required", "aria-invalid", "aria-describedby"], Cl = ["disabled"], Tl = ["disabled"], Al = ["id"], Sl = ["id", "aria-selected", "onClick", "onMouseenter"], El = ["id"], Rl = ["name", "value"], Ol = /* @__PURE__ */ de({
3286
3576
  __name: "MclSelect",
3287
- props: /* @__PURE__ */ Re({
3577
+ props: /* @__PURE__ */ pe({
3578
+ options: {},
3288
3579
  id: {},
3580
+ name: {},
3581
+ placeholder: { default: "" },
3289
3582
  showBorder: { type: Boolean, default: !1 },
3290
3583
  borderColor: { default: "light-4" },
3291
3584
  rounded: { type: Boolean, default: !1 },
@@ -3294,399 +3587,355 @@ const Ua = ["id", "placeholder", "aria-expanded", "aria-controls", "aria-actived
3294
3587
  textColor: { default: "black" },
3295
3588
  bgColor: { default: "light-1" },
3296
3589
  iconColor: { default: "dark-4" },
3297
- placeholder: { default: "" },
3298
- showShadow: { type: Boolean, default: !0 },
3299
- required: { type: Boolean, default: !1 },
3300
- invalid: { type: Boolean, default: !1 },
3301
- options: {},
3302
3590
  optionHoverColor: { default: "primary" },
3303
- noMatchText: { default: "No match." }
3591
+ showShadow: { type: Boolean, default: !0 },
3592
+ noMatchText: { default: "No match." },
3593
+ invalidFeedback: {},
3594
+ invalid: { type: Boolean, default: void 0 },
3595
+ required: { type: Boolean, default: void 0 },
3596
+ disabled: { type: Boolean, default: void 0 }
3304
3597
  }, {
3305
3598
  modelValue: { default: null },
3306
3599
  modelModifiers: {}
3307
3600
  }),
3308
- emits: /* @__PURE__ */ Re(["open", "close", "clear", "changed", "select"], ["update:modelValue"]),
3601
+ emits: /* @__PURE__ */ pe(["open", "close", "clear", "changed", "select"], ["update:modelValue"]),
3309
3602
  setup(e, { emit: t }) {
3310
- const r = e;
3311
- en();
3312
- const n = t, i = Ze(e, "modelValue"), a = Y(), l = Y(), d = Y(), p = Y(
3313
- []
3314
- ), c = Y(null), f = Y(), s = Y(!1), g = Y(""), u = Y(0), b = () => {
3315
- s.value = !0;
3316
- }, w = () => {
3317
- g.value = "", s.value = !1, c.value = null, l.value?.blur(), i.value = "";
3603
+ const r = e, n = We(e, "modelValue"), i = t, a = qe(r), l = Dt(r), s = te(), u = te(), c = te(), f = te([]), m = te(), g = te(!1), b = te(-1), x = (T) => {
3604
+ if (T === null || T === "") return "";
3605
+ const L = r.options.find(
3606
+ (B) => ir(B) === T
3607
+ );
3608
+ return L ? Et(L) : String(T);
3609
+ }, k = te(x(n.value)), y = te(!1), w = yl(
3610
+ () => r.options,
3611
+ () => y.value ? k.value : ""
3612
+ ), E = (T, L) => {
3613
+ f.value[L] = T;
3614
+ }, R = (T) => {
3615
+ f.value[T]?.scrollIntoView?.({ block: "nearest" });
3318
3616
  }, C = () => {
3319
- s.value = !1, u.value = 0;
3320
- }, v = () => {
3321
- s.value = !s.value, u.value = 0, s.value === !0 && l.value?.focus();
3322
- }, S = (x) => {
3323
- x.preventDefault(), g.value !== "" && (g.value = ""), u.value = 0, i.value = "", n("clear");
3324
- }, E = (x, k) => {
3325
- p.value[k] = x;
3326
- }, A = (x) => {
3327
- x.style.pointerEvents = "none";
3328
- }, F = (x) => {
3329
- x.style.pointerEvents = "auto";
3330
- }, P = (x) => {
3331
- u.value = x;
3332
- }, L = (x, k) => {
3333
- x.preventDefault(), g.value = typeof k == "string" ? k : k.text;
3334
- const V = typeof k == "string" ? k : k.value;
3335
- i.value = V, s.value = !1, n("select", V);
3336
- }, J = O(() => {
3337
- const {
3338
- bgColor: x,
3339
- showBorder: k,
3340
- borderColor: V,
3341
- showHighlight: D,
3342
- showShadow: oe,
3343
- rounded: j,
3344
- textColor: gt
3345
- } = r, _ = [
3346
- R.bgColorVariant({ color: x }),
3347
- R.textColorVariant({ color: gt })
3348
- ];
3349
- return k && (_.push("border-2"), _.push(R.borderColorVariant({ color: V }))), D || _.push("ring-offset-2 transition-all duration-300 ease-linear"), oe && _.push("shadow-md"), j && _.push("rounded-md"), _.join(" ");
3350
- }), le = O(() => {
3351
- const { highlightColor: x, rounded: k } = r, V = [
3352
- R.beforeBgColorVariant({ color: x })
3617
+ g.value || (g.value = !0, y.value = !1, b.value = -1);
3618
+ }, V = () => {
3619
+ g.value = !1, b.value = -1;
3620
+ }, M = (T) => {
3621
+ k.value = Et(T);
3622
+ const L = ir(T);
3623
+ n.value = L, y.value = !1, g.value = !1, b.value = -1, i("select", L);
3624
+ }, N = () => {
3625
+ k.value = "", b.value = -1, n.value = null, y.value = !1, i("clear"), u.value?.focus();
3626
+ }, { onKeydown: Z, activeDescendantId: fe } = kl({
3627
+ isOpen: g,
3628
+ activeIndex: b,
3629
+ optionCount: () => w.value.length,
3630
+ idPrefix: () => a.id,
3631
+ onSelect: (T) => {
3632
+ const L = w.value[T];
3633
+ L !== void 0 && M(L);
3634
+ },
3635
+ onClear: N,
3636
+ onActiveChange: R
3637
+ }), he = () => {
3638
+ if (g.value) {
3639
+ V();
3640
+ return;
3641
+ }
3642
+ C(), u.value?.focus();
3643
+ }, U = S(() => {
3644
+ const T = [
3645
+ P.beforeBgColorVariant({ color: r.highlightColor })
3353
3646
  ];
3354
- return k && V.push("rounded-b-md"), V.join(" ");
3355
- }), ue = O(() => {
3356
- const { showHighlight: x, bgColor: k, borderColor: V, rounded: D } = r, oe = [
3357
- R.bgColorVariant({ color: k }),
3358
- R.borderColorVariant({ color: V })
3647
+ return r.rounded && T.push("rounded-b-md"), T.join(" ");
3648
+ }), ve = S(() => {
3649
+ const T = [
3650
+ P.bgColorVariant({ color: r.bgColor }),
3651
+ P.borderColorVariant({ color: r.borderColor })
3359
3652
  ];
3360
- return x || oe.push("mt-2xs"), D && oe.push("rounded-md"), oe.join(" ");
3361
- }), I = O(() => g.value === "" ? r.options : r.options.filter((k) => {
3362
- const V = new RegExp(`${g.value}`, "gi");
3363
- return typeof k == "string" ? k.match(V) : k.text.match(V);
3364
- })), fe = (x) => {
3365
- s.value && (x === "up" && u.value > 0 && u.value--, x === "down" && u.value < I.value.length - 1 && u.value++);
3366
- }, ve = () => {
3367
- if (!s.value) return;
3368
- const x = I.value[u.value];
3369
- let k;
3370
- typeof x == "string" ? (g.value = x, k = x) : (g.value = x.text, k = x.value), i.value = k, s.value = !1, n("select", k);
3371
- }, re = O(() => ({ width: `${f.value}px` })), Ne = (x) => i.value === null || i.value === "" ? !1 : typeof x == "string" ? x === i.value : x.value === i.value, ke = O(
3372
- () => s.value && I.value.length > 0 ? `${r.id}-option-${u.value}` : void 0
3373
- ), { floatingStyles: se } = $a(a, d, {
3374
- whileElementsMounted: Ma,
3653
+ return r.showHighlight || T.push("mt-2xs"), r.rounded && T.push("rounded-md"), T.join(" ");
3654
+ }), Ae = (T) => n.value !== null && n.value !== "" && ir(T) === n.value, { floatingStyles: re } = hl(s, c, {
3655
+ whileElementsMounted: ul,
3375
3656
  strategy: "absolute",
3376
- open: s,
3657
+ open: g,
3377
3658
  transform: !1,
3378
3659
  placement: "bottom",
3379
- middleware: [Pa(), Ba(-2.2), Fa()]
3660
+ middleware: [pl(), fl(-2.2), gl()]
3380
3661
  });
3381
- return $n(a, () => {
3382
- a.value && (f.value = a.value.clientWidth);
3383
- }), Ye(s, (x) => {
3384
- n(x === !0 ? "open" : "close");
3385
- }), Ye(i, (x) => {
3386
- if (x === null) {
3387
- s.value = !1, c.value = null;
3662
+ return oo(s, () => {
3663
+ s.value && (m.value = s.value.clientWidth);
3664
+ }), _e(w, () => {
3665
+ b.value = -1;
3666
+ }), _e(g, (T) => {
3667
+ if (T) {
3668
+ i("open");
3388
3669
  return;
3389
3670
  }
3390
- n("changed", x);
3391
- }), Ye(u, () => {
3392
- c.value = p.value[u.value], c.value && c.value.scrollIntoView && c.value.scrollIntoView({ block: "nearest" });
3393
- }), (x, k) => qe(($(), q("div", {
3394
- onKeyup: [
3395
- yt(w, ["esc"]),
3396
- k[1] || (k[1] = yt((V) => fe("down"), ["down"])),
3397
- k[2] || (k[2] = yt((V) => fe("up"), ["up"])),
3398
- yt(ve, ["enter"])
3399
- ],
3400
- ref_key: "componentRef",
3401
- ref: a,
3671
+ y.value && (k.value = x(n.value), y.value = !1), i("close");
3672
+ }), _e(
3673
+ () => a.disabled.value,
3674
+ (T) => {
3675
+ T && V();
3676
+ }
3677
+ ), _e(
3678
+ () => r.options,
3679
+ () => {
3680
+ y.value || (k.value = x(n.value));
3681
+ }
3682
+ ), _e(n, (T) => {
3683
+ k.value = x(T), y.value = !1, T !== null && i("changed", T);
3684
+ }), (T, L) => ze((O(), D("div", {
3685
+ ref_key: "rootRef",
3686
+ ref: s,
3402
3687
  class: "relative"
3403
3688
  }, [
3404
- M("div", {
3405
- class: H(["relative flex gap-3xs p-2xs", [
3406
- !e.showHighlight && s.value && Te(R).ringColorVariant({ color: e.borderColor }) + " ring-4",
3407
- J.value
3689
+ H("div", {
3690
+ class: K(["relative flex gap-3xs p-2xs", [
3691
+ d(l),
3692
+ !e.showHighlight && g.value && d(P).ringColorVariant({ color: e.borderColor }) + " ring-4"
3408
3693
  ]])
3409
3694
  }, [
3410
- qe(M("input", {
3411
- id: e.id,
3695
+ ze(H("input", {
3696
+ id: d(a).id,
3697
+ ref_key: "inputRef",
3698
+ ref: u,
3699
+ "onUpdate:modelValue": L[0] || (L[0] = (B) => k.value = B),
3412
3700
  type: "text",
3413
- class: "w-full bg-transparent outline-none",
3414
- "onUpdate:modelValue": k[0] || (k[0] = (V) => g.value = V),
3415
- ref_key: "inputBox",
3416
- ref: l,
3417
3701
  role: "combobox",
3418
3702
  autocomplete: "off",
3703
+ class: "w-full bg-transparent outline-none disabled:cursor-not-allowed",
3419
3704
  placeholder: e.placeholder,
3705
+ disabled: d(a).disabled.value,
3420
3706
  "aria-autocomplete": "list",
3421
- "aria-expanded": s.value,
3422
- "aria-controls": `${e.id}-listbox`,
3423
- "aria-activedescendant": ke.value,
3424
- "aria-invalid": e.invalid || void 0,
3425
- onFocus: b
3426
- }, null, 40, Ua), [
3427
- [on, g.value]
3707
+ "aria-expanded": g.value,
3708
+ "aria-controls": `${d(a).id}-listbox`,
3709
+ "aria-activedescendant": d(fe),
3710
+ "aria-required": d(a).required.value || void 0,
3711
+ "aria-invalid": d(a).invalid.value || void 0,
3712
+ "aria-describedby": d(a).describedBy.value,
3713
+ onFocus: C,
3714
+ onInput: L[1] || (L[1] = (B) => y.value = !0),
3715
+ onKeydown: L[2] || (L[2] = //@ts-ignore
3716
+ (...B) => d(Z) && d(Z)(...B))
3717
+ }, null, 40, wl), [
3718
+ [pn, k.value]
3428
3719
  ]),
3429
- M("div", {
3430
- class: H(["flex items-center px-3xs", [
3431
- g.value === "" ? "hidden cursor-text" : "block cursor-pointer"
3432
- ]]),
3433
- onClick: S
3720
+ k.value !== "" ? (O(), D("button", {
3721
+ key: 0,
3722
+ "data-mcl": "clear",
3723
+ type: "button",
3724
+ "aria-label": "Clear selection",
3725
+ class: "flex items-center px-3xs",
3726
+ disabled: d(a).disabled.value,
3727
+ onClick: N
3434
3728
  }, [
3435
- ($(), q("svg", {
3436
- xmlns: "http://www.w3.org/2000/svg",
3437
- viewBox: "0 0 384 512",
3438
- class: H(["h-xs opacity-70", [Te(R).svgFillColorVariant({ color: e.iconColor })]])
3439
- }, [...k[3] || (k[3] = [
3440
- M("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
3441
- ])], 2))
3442
- ], 2),
3443
- M("div", {
3729
+ St(vn, {
3730
+ color: e.iconColor,
3731
+ "class-name": "h-xs opacity-70"
3732
+ }, null, 8, ["color"])
3733
+ ], 8, Cl)) : I("", !0),
3734
+ H("button", {
3735
+ "data-mcl": "caret",
3736
+ type: "button",
3737
+ tabindex: "-1",
3738
+ "aria-label": "Toggle options",
3444
3739
  class: "flex items-center px-3xs",
3445
- onClick: v
3740
+ disabled: d(a).disabled.value,
3741
+ onClick: he
3446
3742
  }, [
3447
- ($(), q("svg", {
3448
- xmlns: "http://www.w3.org/2000/svg",
3449
- viewBox: "0 0 320 512",
3450
- class: H(["h-xs", [
3451
- s.value ? "rotate-180" : "rotate-0",
3452
- "transition-transform duration-300 ease-in",
3453
- Te(R).svgFillColorVariant({ color: e.iconColor })
3454
- ]])
3455
- }, [...k[4] || (k[4] = [
3456
- M("path", { d: "M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z" }, null, -1)
3457
- ])], 2))
3458
- ])
3743
+ St(vl, {
3744
+ color: e.iconColor,
3745
+ "class-name": `h-xs transition-transform duration-300 ease-in ${g.value ? "rotate-180" : "rotate-0"}`
3746
+ }, null, 8, ["color", "class-name"])
3747
+ ], 8, Tl)
3459
3748
  ], 2),
3460
- e.showHighlight ? ($(), q("div", {
3749
+ e.showHighlight ? (O(), D("div", {
3461
3750
  key: 0,
3462
- class: H(["relative -top-1 h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:w-0 before:transition-[width] before:duration-300 before:ease-linear", [s.value ? "before:w-full" : "before:w-0", le.value]])
3463
- }, null, 2)) : dt("", !0),
3464
- Bn(Fn, {
3465
- name: "options",
3466
- onBeforeLeave: A,
3467
- onEnter: F
3468
- }, {
3469
- default: Pn(() => [
3470
- s.value ? ($(), q("ul", {
3751
+ class: K(["relative -top-1 h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:transition-[width] before:duration-300 before:ease-linear", [g.value ? "before:w-full" : "before:w-0", U.value]])
3752
+ }, null, 2)) : I("", !0),
3753
+ St(to, { name: "options" }, {
3754
+ default: Pe(() => [
3755
+ g.value && d(w).length > 0 ? (O(), D("ul", {
3471
3756
  key: 0,
3472
- id: `${e.id}-listbox`,
3473
- class: H([[ue.value], "max-h-50 overflow-y-auto border-2"]),
3474
- style: tn({ ...re.value, ...Te(se) }),
3475
- role: "listbox",
3757
+ id: `${d(a).id}-listbox`,
3476
3758
  ref_key: "dropdownRef",
3477
- ref: d
3759
+ ref: c,
3760
+ role: "listbox",
3761
+ class: K(["max-h-[12.5rem] overflow-y-auto border-2", ve.value]),
3762
+ style: ar({ width: `${m.value}px`, ...d(re) })
3478
3763
  }, [
3479
- I.value.length > 0 ? st(x.$slots, "dropdown", {
3480
- key: 0,
3481
- optionClick: L,
3482
- options: I.value,
3483
- activeIndex: u.value,
3764
+ ie(T.$slots, "dropdown", {
3765
+ options: d(w),
3766
+ activeIndex: b.value,
3767
+ optionClick: M,
3484
3768
  setRef: E,
3485
- hover: P
3769
+ hover: (B) => b.value = B,
3770
+ optionId: (B) => `${d(a).id}-option-${B}`
3486
3771
  }, () => [
3487
- ($(!0), q(zn, null, Hn(I.value, (V, D) => ($(), q("li", {
3488
- key: D,
3489
- id: `${e.id}-option-${D}`,
3490
- class: H(["cursor-pointer p-2xs", [
3491
- u.value === D && Te(R).bgColorVariant({ color: e.highlightColor })
3492
- ]]),
3493
- role: "option",
3494
- "aria-selected": Ne(V),
3772
+ (O(!0), D(ro, null, no(d(w), (B, W) => (O(), D("li", {
3773
+ id: `${d(a).id}-option-${W}`,
3774
+ key: W,
3495
3775
  ref_for: !0,
3496
- ref: (oe) => E(oe, D),
3497
- onClick: (oe) => L(oe, V),
3498
- onMouseenter: (oe) => P(D)
3499
- }, ct(typeof V == "string" ? V : V.text), 43, ja))), 128))
3500
- ], !0) : st(x.$slots, "no-match", { key: 1 }, () => [
3501
- M("li", {
3502
- class: H(["cursor-pointer p-2xs", [
3503
- Te(R).hoverBgColorVariant({ color: e.optionHoverColor })
3776
+ ref: (le) => E(le, W),
3777
+ role: "option",
3778
+ class: K(["cursor-pointer p-2xs", [
3779
+ b.value === W && d(P).bgColorVariant({ color: e.optionHoverColor })
3504
3780
  ]]),
3505
- "aria-live": "polite"
3506
- }, [
3507
- M("span", null, ct(e.noMatchText), 1)
3508
- ], 2)
3781
+ "aria-selected": Ae(B),
3782
+ onClick: (le) => M(B),
3783
+ onMouseenter: (le) => b.value = W
3784
+ }, Ne(d(Et)(B)), 43, Sl))), 128))
3509
3785
  ], !0)
3510
- ], 14, Wa)) : dt("", !0)
3786
+ ], 14, Al)) : I("", !0)
3511
3787
  ]),
3512
3788
  _: 3
3513
- })
3514
- ], 32)), [
3515
- [Te(ki), C]
3789
+ }),
3790
+ g.value && d(w).length === 0 ? (O(), D("div", {
3791
+ key: 1,
3792
+ id: `${d(a).id}-listbox`,
3793
+ ref_key: "dropdownRef",
3794
+ ref: c,
3795
+ role: "status",
3796
+ class: K(["border-2 p-2xs", ve.value]),
3797
+ style: ar({ width: `${m.value}px`, ...d(re) })
3798
+ }, [
3799
+ ie(T.$slots, "no-match", {}, () => [
3800
+ H("span", null, Ne(e.noMatchText), 1)
3801
+ ], !0)
3802
+ ], 14, El)) : I("", !0),
3803
+ d(a).name.value ? (O(), D("input", {
3804
+ key: 2,
3805
+ type: "hidden",
3806
+ name: d(a).name.value,
3807
+ value: n.value ?? ""
3808
+ }, null, 8, Rl)) : I("", !0),
3809
+ d(a).feedbackOwnedByGroup ? I("", !0) : (O(), De(rt, {
3810
+ key: 3,
3811
+ id: d(a).errorId,
3812
+ invalid: d(a).invalid.value,
3813
+ text: e.invalidFeedback
3814
+ }, {
3815
+ default: Pe(() => [
3816
+ T.$slots["invalid-feedback"] ? ie(T.$slots, "invalid-feedback", { key: 0 }, void 0, !0) : I("", !0)
3817
+ ]),
3818
+ _: 3
3819
+ }, 8, ["id", "invalid", "text"]))
3820
+ ])), [
3821
+ [d(Ki), V]
3516
3822
  ]);
3517
3823
  }
3518
- }), ol = /* @__PURE__ */ an(Ga, [["__scopeId", "data-v-dba14247"]]), Ya = ["id", "placeholder", "required", "aria-invalid", "rows"], il = /* @__PURE__ */ xe({
3824
+ }), zl = /* @__PURE__ */ xn(Ol, [["__scopeId", "data-v-2695c901"]]), _l = ["id", "name", "rows", "placeholder", "required", "disabled", "aria-invalid", "aria-describedby"], Hl = /* @__PURE__ */ de({
3519
3825
  __name: "MclTextArea",
3520
- props: /* @__PURE__ */ Re({
3826
+ props: /* @__PURE__ */ pe({
3521
3827
  id: {},
3828
+ name: {},
3829
+ placeholder: { default: "" },
3830
+ rows: { default: 5 },
3522
3831
  showBorder: { type: Boolean, default: !1 },
3523
3832
  borderColor: { default: "light-4" },
3524
3833
  rounded: { type: Boolean, default: !1 },
3525
3834
  showHighlight: { type: Boolean, default: !0 },
3526
3835
  highlightColor: { default: "primary" },
3527
- bgColor: { default: "light-1" },
3528
3836
  textColor: { default: "black" },
3529
- placeholder: { default: "" },
3837
+ bgColor: { default: "light-1" },
3530
3838
  showShadow: { type: Boolean, default: !0 },
3531
- required: { type: Boolean, default: !1 },
3532
- invalid: { type: Boolean, default: !1 },
3533
- rows: { default: 5 }
3839
+ invalidFeedback: {},
3840
+ invalid: { type: Boolean, default: void 0 },
3841
+ required: { type: Boolean, default: void 0 },
3842
+ disabled: { type: Boolean, default: void 0 }
3534
3843
  }, {
3535
3844
  modelValue: {},
3536
3845
  modelModifiers: {}
3537
3846
  }),
3538
3847
  emits: ["update:modelValue"],
3539
3848
  setup(e) {
3540
- const t = e, r = Ze(e, "modelValue"), n = O(() => {
3541
- const {
3542
- bgColor: i,
3543
- showBorder: a,
3544
- borderColor: l,
3545
- showHighlight: d,
3546
- showShadow: p,
3547
- rounded: c,
3548
- textColor: f
3549
- } = t, s = [
3550
- R.bgColorVariant({ color: i }),
3551
- R.textColorVariant({ color: f })
3552
- ];
3553
- return a && (s.push("border-2"), s.push(R.borderColorVariant({ color: l }))), d || (s.push(
3554
- "focus:ring-4 ring-offset-2 transition-all duration-300 ease-linear"
3555
- ), s.push(R.focusRingColorVariant({ color: l }))), p && s.push("shadow-md"), c && s.push("rounded-md"), s.join(" ");
3556
- });
3557
- return (i, a) => ($(), q("div", null, [
3558
- qe(M("textarea", {
3559
- id: e.id,
3560
- class: H(["input__text peer w-full p-2xs outline-none", n.value]),
3561
- "onUpdate:modelValue": a[0] || (a[0] = (l) => r.value = l),
3849
+ const t = e, r = We(e, "modelValue"), n = qe(t), i = Dt(t);
3850
+ return (a, l) => (O(), D("div", null, [
3851
+ ze(H("textarea", {
3852
+ id: d(n).id,
3853
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => r.value = s),
3854
+ class: K(["peer w-full p-2xs outline-none disabled:cursor-not-allowed disabled:opacity-50", d(i)]),
3855
+ name: d(n).name.value,
3856
+ rows: e.rows,
3562
3857
  placeholder: e.placeholder,
3563
- required: e.required,
3564
- "aria-invalid": e.invalid || void 0,
3565
- rows: e.rows
3566
- }, null, 10, Ya), [
3567
- [on, r.value]
3858
+ required: d(n).required.value,
3859
+ disabled: d(n).disabled.value,
3860
+ "aria-invalid": d(n).invalid.value || void 0,
3861
+ "aria-describedby": d(n).describedBy.value
3862
+ }, null, 10, _l), [
3863
+ [pn, r.value]
3568
3864
  ]),
3569
- e.showHighlight ? ($(), nn(ln, {
3865
+ e.showHighlight ? (O(), De(yn, {
3570
3866
  key: 0,
3571
3867
  color: e.highlightColor,
3572
3868
  rounded: e.rounded,
3573
3869
  offset: 2.5
3574
- }, null, 8, ["color", "rounded"])) : dt("", !0)
3870
+ }, null, 8, ["color", "rounded"])) : I("", !0),
3871
+ d(n).feedbackOwnedByGroup ? I("", !0) : (O(), De(rt, {
3872
+ key: 1,
3873
+ id: d(n).errorId,
3874
+ invalid: d(n).invalid.value,
3875
+ text: e.invalidFeedback
3876
+ }, {
3877
+ default: Pe(() => [
3878
+ a.$slots["invalid-feedback"] ? ie(a.$slots, "invalid-feedback", { key: 0 }) : I("", !0)
3879
+ ]),
3880
+ _: 3
3881
+ }, 8, ["id", "invalid", "text"]))
3575
3882
  ]));
3576
3883
  }
3577
- }), Xa = { class: "relative" }, qa = ["id", "value", "checked"], al = /* @__PURE__ */ xe({
3884
+ }), Nl = { class: "relative inline-flex" }, Ll = ["id", "name", "value", "required", "disabled", "aria-invalid", "aria-describedby"], Ul = /* @__PURE__ */ de({
3578
3885
  __name: "MclCheckbox",
3579
- props: /* @__PURE__ */ Re({
3886
+ props: /* @__PURE__ */ pe({
3580
3887
  id: {},
3581
- inputSize: { default: "md" },
3888
+ name: {},
3889
+ size: { default: "md" },
3582
3890
  bgColor: { default: "light-1" },
3583
3891
  checkedBgColor: { default: "warning" },
3584
- checkColor: { default: "dark-3" },
3892
+ indicatorColor: { default: "dark-3" },
3585
3893
  borderColor: { default: "dark-1" },
3586
3894
  showShadow: { type: Boolean, default: !1 },
3587
3895
  rounded: { type: Boolean, default: !1 },
3588
3896
  value: {},
3589
- checked: { type: Boolean, default: !1 }
3897
+ invalid: { type: Boolean, default: void 0 },
3898
+ required: { type: Boolean, default: void 0 },
3899
+ disabled: { type: Boolean, default: void 0 }
3590
3900
  }, {
3591
3901
  modelValue: { type: Boolean },
3592
3902
  modelModifiers: {}
3593
3903
  }),
3594
- emits: /* @__PURE__ */ Re(["checkbox-click"], ["update:modelValue"]),
3904
+ emits: /* @__PURE__ */ pe(["change"], ["update:modelValue"]),
3595
3905
  setup(e, { emit: t }) {
3596
- const r = {
3597
- primary: "peer-checked/input:bg-primary",
3598
- secondary: "peer-checked/input:bg-secondary",
3599
- success: "peer-checked/input:bg-success",
3600
- info: "peer-checked/input:bg-info",
3601
- warning: "peer-checked/input:bg-warning",
3602
- danger: "peer-checked/input:bg-danger",
3603
- "light-1": "peer-checked/input:bg-light-1",
3604
- "light-2": "peer-checked/input:bg-light-2",
3605
- "light-3": "peer-checked/input:bg-light-3",
3606
- "light-4": "peer-checked/input:bg-light-4",
3607
- "dark-1": "peer-checked/input:bg-dark-1",
3608
- "dark-2": "peer-checked/input:bg-dark-2",
3609
- "dark-3": "peer-checked/input:bg-dark-3",
3610
- "dark-4": "peer-checked/input:bg-dark-1",
3611
- transparent: "peer-checked/input:bg-transparent",
3612
- black: "peer-checked/input:bg-black",
3613
- white: "peer-checked/input:bg-white"
3614
- }, n = {
3615
- primary: "before:bg-primary",
3616
- secondary: "before:bg-secondary",
3617
- success: "before:bg-success",
3618
- info: "before:bg-info",
3619
- warning: "before:bg-warning",
3620
- danger: "before:bg-danger",
3621
- "light-1": "before:bg-light-1",
3622
- "light-2": "before:bg-light-2",
3623
- "light-3": "before:bg-light-3",
3624
- "light-4": "before:bg-light-4",
3625
- "dark-1": "before:bg-dark-1",
3626
- "dark-2": "before:bg-dark-2",
3627
- "dark-3": "before:bg-dark-3",
3628
- "dark-4": "before:bg-dark-1",
3629
- transparent: "before:bg-transparent",
3630
- black: "before:bg-black",
3631
- white: "before:bg-white"
3632
- }, i = e, a = Ze(e, "modelValue"), l = Y(), d = t, p = () => {
3633
- l.value?.click();
3634
- }, c = (g) => {
3635
- const u = g.target.value;
3636
- d(
3637
- "checkbox-click",
3638
- g,
3639
- l.value.checked,
3640
- l.value?.checked ? u : ""
3641
- );
3642
- }, f = O(() => {
3643
- const { inputSize: g } = i;
3644
- return g === "sm" ? "h-xs w-xs before:h-2xs before:w-2xs" : g === "lg" ? "h-md w-md before:h-xs before:w-xs" : "h-sm w-sm before:w-[12px] before:h-[12px]";
3645
- }), s = O(() => {
3646
- const {
3647
- bgColor: g,
3648
- borderColor: u,
3649
- showShadow: b,
3650
- rounded: w,
3651
- checkedBgColor: C,
3652
- checkColor: v
3653
- } = i, S = [
3654
- R.bgColorVariant({ color: g }),
3655
- R.borderColorVariant({ color: u }),
3656
- n[v],
3657
- r[C]
3658
- ];
3659
- return b && S.push("drop-shadow-md"), w && S.push("rounded-md before:rounded-[3px]"), S.join(" ");
3660
- });
3661
- return (g, u) => ($(), q("div", Xa, [
3662
- qe(M("input", {
3663
- id: e.id,
3664
- ref_key: "checkboxRef",
3665
- ref: l,
3906
+ const r = e, n = We(e, "modelValue"), i = t, a = qe(r, { rendersOwnFeedback: !1 }), { boxClass: l, sizeClass: s } = ur(r), u = (c) => {
3907
+ i("change", c);
3908
+ };
3909
+ return (c, f) => (O(), D("div", Nl, [
3910
+ ze(H("input", {
3911
+ id: d(a).id,
3912
+ "onUpdate:modelValue": f[0] || (f[0] = (m) => n.value = m),
3666
3913
  type: "checkbox",
3914
+ class: "peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",
3915
+ name: d(a).name.value,
3667
3916
  value: e.value,
3668
- checked: e.checked,
3669
- "onUpdate:modelValue": u[0] || (u[0] = (b) => a.value = b),
3670
- class: "peer/input appearance-none",
3671
- onChange: c
3672
- }, null, 40, qa), [
3673
- [rn, a.value]
3917
+ required: d(a).required.value,
3918
+ disabled: d(a).disabled.value,
3919
+ "aria-invalid": d(a).invalid.value || void 0,
3920
+ "aria-describedby": d(a).describedBy.value,
3921
+ onChange: u
3922
+ }, null, 40, Ll), [
3923
+ [gn, n.value]
3674
3924
  ]),
3675
- M("span", {
3925
+ H("span", {
3676
3926
  "aria-hidden": "true",
3677
- class: H(["before:ease-linar relative inline-block border p-3xs transition-colors duration-200 ease-linear before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:opacity-0 before:transition-opacity before:duration-200 peer-checked/input:before:opacity-100 hover:bg-opacity-60 peer-checked/input:hover:bg-opacity-60", [s.value, f.value]]),
3678
- onClick: p
3927
+ class: K(["relative inline-block border p-3xs transition-colors duration-200 ease-linear peer-disabled:opacity-50 before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:opacity-0 before:transition-opacity before:duration-200 peer-checked:before:opacity-100", [d(l), d(s)]])
3679
3928
  }, null, 2)
3680
3929
  ]));
3681
3930
  }
3682
3931
  });
3683
3932
  export {
3684
- al as MclCheckbox,
3685
- Qa as MclFormGroup,
3686
- el as MclInputFile,
3687
- tl as MclInputRadio,
3688
- rl as MclInputSwitch,
3689
- nl as MclInputText,
3690
- ol as MclSelect,
3691
- il as MclTextArea
3933
+ Ul as MclCheckbox,
3934
+ Bl as MclFormGroup,
3935
+ Ml as MclInputFile,
3936
+ Fl as MclInputRadio,
3937
+ $l as MclInputSwitch,
3938
+ Pl as MclInputText,
3939
+ zl as MclSelect,
3940
+ Hl as MclTextArea
3692
3941
  };