@m11g/library 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/dist-C8cpIyO1.js +3039 -0
  2. package/dist/library.css +2 -0
  3. package/dist/library.js +4057 -0
  4. package/dist/library.umd.cjs +3 -0
  5. package/package.json +13 -1
  6. package/.editorconfig +0 -8
  7. package/.gitattributes +0 -1
  8. package/.oxfmtrc.json +0 -5
  9. package/.oxlintrc.json +0 -10
  10. package/.stylelintrc +0 -33
  11. package/.vscode/extensions.json +0 -8
  12. package/env.d.ts +0 -1
  13. package/eslint.config.ts +0 -35
  14. package/index.html +0 -13
  15. package/postcss.config.ts +0 -23
  16. package/src/App.vue +0 -28
  17. package/src/assets/css/base.css +0 -2
  18. package/src/assets/css/elements/_base.css +0 -5
  19. package/src/assets/css/elements/buttons.css +0 -23
  20. package/src/assets/css/elements/form.css +0 -75
  21. package/src/assets/css/elements/scaffolding.css +0 -62
  22. package/src/assets/css/elements/transition.css +0 -4
  23. package/src/assets/css/elements/typography.css +0 -80
  24. package/src/assets/css/media-queries/media-queries.css +0 -3
  25. package/src/assets/css/mixins/list-reset.css +0 -5
  26. package/src/assets/css/variables/_base.css +0 -7
  27. package/src/assets/css/variables/chakra.css +0 -160
  28. package/src/assets/css/variables/colors.css +0 -205
  29. package/src/assets/css/variables/grid.css +0 -6
  30. package/src/assets/css/variables/spacings.css +0 -10
  31. package/src/assets/css/variables/transitions.css +0 -10
  32. package/src/assets/css/variables/typography.css +0 -17
  33. package/src/components/AppBreadcrumb.vue +0 -63
  34. package/src/components/AppButton.vue +0 -105
  35. package/src/components/AppCarousel.vue +0 -145
  36. package/src/components/AppDialog.vue +0 -126
  37. package/src/components/AppNotification.vue +0 -68
  38. package/src/components/AppPagination.vue +0 -127
  39. package/src/components/AppPopover.vue +0 -57
  40. package/src/components/AppTabs.vue +0 -176
  41. package/src/components/CenterWrapper.vue +0 -50
  42. package/src/components/ClickableWrapper.vue +0 -48
  43. package/src/components/Forms/AppForm.vue +0 -61
  44. package/src/components/Forms/FormErrorMessage.vue +0 -17
  45. package/src/components/Forms/FormField.vue +0 -30
  46. package/src/components/Forms/FormFieldset.vue +0 -28
  47. package/src/components/Forms/RadioGroup.vue +0 -85
  48. package/src/components/Forms/SearchField.vue +0 -38
  49. package/src/components/Forms/SelectField.vue +0 -125
  50. package/src/components/Forms/TextField.vue +0 -41
  51. package/src/components/Forms/TextareaField.vue +0 -32
  52. package/src/components/ScrollSpy.vue +0 -111
  53. package/src/components/SummaryDetails.vue +0 -83
  54. package/src/composables/useTheme.ts +0 -20
  55. package/src/index.ts +0 -47
  56. package/src/main.ts +0 -10
  57. package/src/router/index.ts +0 -26
  58. package/src/types/Theme.ts +0 -11
  59. package/src/views/CarouselView.vue +0 -27
  60. package/src/views/FormView.vue +0 -111
  61. package/src/views/HomeView.vue +0 -100
  62. package/src/views/ScrollSpyView.vue +0 -58
  63. package/theme-dark +0 -117
  64. package/theme-light +0 -191
  65. package/tsconfig.app.json +0 -18
  66. package/tsconfig.json +0 -11
  67. package/tsconfig.node.json +0 -28
  68. package/vite.config.ts +0 -26
  69. /package/{public → dist}/favicon.ico +0 -0
@@ -0,0 +1,4057 @@
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, getCurrentInstance as l, h as u, inject as d, isRef as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, onBeforeUnmount as _, onMounted as v, onUnmounted as y, openBlock as b, provide as x, reactive as S, readonly as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDynamicComponent as ee, shallowRef as O, toDisplayString as k, toHandlers as A, toRef as j, toRefs as M, toValue as N, unref as P, useCssVars as F, useId as I, useModel as L, useTemplateRef as te, vModelText as ne, warn as re, watch as R, watchEffect as ie, withCtx as z, withDirectives as B, withKeys as ae, withModifiers as oe } from "vue";
2
+ //#region src/composables/useTheme.ts
3
+ var V = (e = "primary") => ({ colors: w({
4
+ emphasized: `var(--color-${e}-emphasized)`,
5
+ contrast: `var(--color-${e}-contrast)`,
6
+ fg: `var(--color-${e}-fg)`,
7
+ subtle: `var(--color-${e}-subtle)`,
8
+ muted: `var(--color-${e}-muted)`,
9
+ solid: `var(--color-${e}-solid)`,
10
+ focusRing: `var(--color-${e}-focus-ring)`,
11
+ border: `var(--color-${e}-border)`
12
+ }) }), se = /*@__PURE__*/ c({
13
+ __name: "AppButton",
14
+ props: {
15
+ to: { default: void 0 },
16
+ type: { default: "button" },
17
+ variant: { default: "primary" },
18
+ theme: { default: void 0 },
19
+ title: {},
20
+ disabled: {
21
+ type: Boolean,
22
+ default: !1
23
+ }
24
+ },
25
+ setup(e) {
26
+ F((e) => ({
27
+ v12fddeda: P(i).solid,
28
+ v21fa547a: P(i).emphasized,
29
+ v7b61801a: P(i).contrast,
30
+ v69733d10: P(i).focusRing,
31
+ v4c1da476: P(i).subtle
32
+ }));
33
+ let r = e, { colors: i } = V(r.theme), a = t(() => r.to ? D("RouterLink") : "button");
34
+ return (t, r) => (b(), n(ee(a.value), {
35
+ to: e.to,
36
+ class: g(e.variant),
37
+ type: a.value === "button" ? e.type : void 0,
38
+ disabled: e.disabled
39
+ }, {
40
+ default: z(() => [o(k(e.title), 1)]),
41
+ _: 1
42
+ }, 8, [
43
+ "to",
44
+ "class",
45
+ "type",
46
+ "disabled"
47
+ ]));
48
+ }
49
+ }), H = (e, t) => {
50
+ let n = e.__vccOpts || e;
51
+ for (let [e, r] of t) n[e] = r;
52
+ return n;
53
+ }, ce = /*#__PURE__*/ H(se, [["__scopeId", "data-v-2902ea9d"]]), le = /^[a-z0-9]+(-[a-z0-9]+)*$/, ue = (e, t, n, r = "") => {
54
+ let i = e.split(":");
55
+ if (e.slice(0, 1) === "@") {
56
+ if (i.length < 2 || i.length > 3) return null;
57
+ r = i.shift().slice(1);
58
+ }
59
+ if (i.length > 3 || !i.length) return null;
60
+ if (i.length > 1) {
61
+ let e = i.pop(), n = i.pop(), a = {
62
+ provider: i.length > 0 ? i[0] : r,
63
+ prefix: n,
64
+ name: e
65
+ };
66
+ return t && !U(a) ? null : a;
67
+ }
68
+ let a = i[0], o = a.split("-");
69
+ if (o.length > 1) {
70
+ let e = {
71
+ provider: r,
72
+ prefix: o.shift(),
73
+ name: o.join("-")
74
+ };
75
+ return t && !U(e) ? null : e;
76
+ }
77
+ if (n && r === "") {
78
+ let e = {
79
+ provider: r,
80
+ prefix: "",
81
+ name: a
82
+ };
83
+ return t && !U(e, n) ? null : e;
84
+ }
85
+ return null;
86
+ }, U = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
87
+ function W(e, t) {
88
+ let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
89
+ function a(e) {
90
+ if (n[e]) return i[e] = [];
91
+ if (!(e in i)) {
92
+ i[e] = null;
93
+ let t = r[e] && r[e].parent, n = t && a(t);
94
+ n && (i[e] = [t].concat(n));
95
+ }
96
+ return i[e];
97
+ }
98
+ return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
99
+ }
100
+ var de = Object.freeze({
101
+ left: 0,
102
+ top: 0,
103
+ width: 16,
104
+ height: 16
105
+ }), fe = Object.freeze({
106
+ rotate: 0,
107
+ vFlip: !1,
108
+ hFlip: !1
109
+ }), pe = Object.freeze({
110
+ ...de,
111
+ ...fe
112
+ }), me = Object.freeze({
113
+ ...pe,
114
+ body: "",
115
+ hidden: !1
116
+ });
117
+ function he(e, t) {
118
+ let n = {};
119
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
120
+ let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
121
+ return r && (n.rotate = r), n;
122
+ }
123
+ function ge(e, t) {
124
+ let n = he(e, t);
125
+ for (let r in me) r in fe ? r in e && !(r in n) && (n[r] = fe[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
126
+ return n;
127
+ }
128
+ function _e(e, t, n) {
129
+ let r = e.icons, i = e.aliases || Object.create(null), a = {};
130
+ function o(e) {
131
+ a = ge(r[e] || i[e], a);
132
+ }
133
+ return o(t), n.forEach(o), ge(e, a);
134
+ }
135
+ function ve(e, t) {
136
+ let n = [];
137
+ if (typeof e != "object" || typeof e.icons != "object") return n;
138
+ e.not_found instanceof Array && e.not_found.forEach((e) => {
139
+ t(e, null), n.push(e);
140
+ });
141
+ let r = W(e);
142
+ for (let i in r) {
143
+ let a = r[i];
144
+ a && (t(i, _e(e, i, a)), n.push(i));
145
+ }
146
+ return n;
147
+ }
148
+ var ye = {
149
+ provider: "",
150
+ aliases: {},
151
+ not_found: {},
152
+ ...de
153
+ };
154
+ function be(e, t) {
155
+ for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
156
+ return !0;
157
+ }
158
+ function xe(e) {
159
+ if (typeof e != "object" || !e) return null;
160
+ let t = e;
161
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !be(e, ye)) return null;
162
+ let n = t.icons;
163
+ for (let e in n) {
164
+ let t = n[e];
165
+ if (!e || typeof t.body != "string" || !be(t, me)) return null;
166
+ }
167
+ let r = t.aliases || Object.create(null);
168
+ for (let e in r) {
169
+ let t = r[e], i = t.parent;
170
+ if (!e || typeof i != "string" || !n[i] && !r[i] || !be(t, me)) return null;
171
+ }
172
+ return t;
173
+ }
174
+ var Se = Object.create(null);
175
+ function Ce(e, t) {
176
+ return {
177
+ provider: e,
178
+ prefix: t,
179
+ icons: Object.create(null),
180
+ missing: /* @__PURE__ */ new Set()
181
+ };
182
+ }
183
+ function we(e, t) {
184
+ let n = Se[e] || (Se[e] = Object.create(null));
185
+ return n[t] || (n[t] = Ce(e, t));
186
+ }
187
+ function Te(e, t) {
188
+ return xe(t) ? ve(t, (t, n) => {
189
+ n ? e.icons[t] = n : e.missing.add(t);
190
+ }) : [];
191
+ }
192
+ function Ee(e, t, n) {
193
+ try {
194
+ if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
195
+ } catch {}
196
+ return !1;
197
+ }
198
+ var De = !1;
199
+ function Oe(e) {
200
+ return typeof e == "boolean" && (De = e), De;
201
+ }
202
+ function ke(e) {
203
+ let t = typeof e == "string" ? ue(e, !0, De) : e;
204
+ if (t) {
205
+ let e = we(t.provider, t.prefix), n = t.name;
206
+ return e.icons[n] || (e.missing.has(n) ? null : void 0);
207
+ }
208
+ }
209
+ function Ae(e, t) {
210
+ let n = ue(e, !0, De);
211
+ if (!n) return !1;
212
+ let r = we(n.provider, n.prefix);
213
+ return t ? Ee(r, n.name, t) : (r.missing.add(n.name), !0);
214
+ }
215
+ function je(e, t) {
216
+ if (typeof e != "object") return !1;
217
+ if (typeof t != "string" && (t = e.provider || ""), De && !t && !e.prefix) {
218
+ let t = !1;
219
+ return xe(e) && (e.prefix = "", ve(e, (e, n) => {
220
+ Ae(e, n) && (t = !0);
221
+ })), t;
222
+ }
223
+ let n = e.prefix;
224
+ return U({
225
+ prefix: n,
226
+ name: "a"
227
+ }) ? !!Te(we(t, n), e) : !1;
228
+ }
229
+ var Me = Object.freeze({
230
+ width: null,
231
+ height: null
232
+ }), Ne = Object.freeze({
233
+ ...Me,
234
+ ...fe
235
+ }), Pe = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Fe = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
236
+ function Ie(e, t, n) {
237
+ if (t === 1) return e;
238
+ if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
239
+ if (typeof e != "string") return e;
240
+ let r = e.split(Pe);
241
+ if (r === null || !r.length) return e;
242
+ let i = [], a = r.shift(), o = Fe.test(a);
243
+ for (;;) {
244
+ if (o) {
245
+ let e = parseFloat(a);
246
+ isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
247
+ } else i.push(a);
248
+ if (a = r.shift(), a === void 0) return i.join("");
249
+ o = !o;
250
+ }
251
+ }
252
+ function Le(e, t = "defs") {
253
+ let n = "", r = e.indexOf("<" + t);
254
+ for (; r >= 0;) {
255
+ let i = e.indexOf(">", r), a = e.indexOf("</" + t);
256
+ if (i === -1 || a === -1) break;
257
+ let o = e.indexOf(">", a);
258
+ if (o === -1) break;
259
+ n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
260
+ }
261
+ return {
262
+ defs: n,
263
+ content: e
264
+ };
265
+ }
266
+ function Re(e, t) {
267
+ return e ? "<defs>" + e + "</defs>" + t : t;
268
+ }
269
+ function ze(e, t, n) {
270
+ let r = Le(e);
271
+ return Re(r.defs, t + r.content + n);
272
+ }
273
+ var Be = (e) => e === "unset" || e === "undefined" || e === "none";
274
+ function Ve(e, t) {
275
+ let n = {
276
+ ...pe,
277
+ ...e
278
+ }, r = {
279
+ ...Ne,
280
+ ...t
281
+ }, i = {
282
+ left: n.left,
283
+ top: n.top,
284
+ width: n.width,
285
+ height: n.height
286
+ }, a = n.body;
287
+ [n, r].forEach((e) => {
288
+ let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
289
+ n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
290
+ let s;
291
+ switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
292
+ case 1:
293
+ s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
294
+ break;
295
+ case 2:
296
+ t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
297
+ break;
298
+ case 3: s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
299
+ }
300
+ o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = ze(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
301
+ });
302
+ let o = r.width, s = r.height, c = i.width, l = i.height, u, d;
303
+ o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = Ie(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? Ie(u, l / c) : s === "auto" ? l : s);
304
+ let f = {}, p = (e, t) => {
305
+ Be(t) || (f[e] = t.toString());
306
+ };
307
+ p("width", u), p("height", d);
308
+ let m = [
309
+ i.left,
310
+ i.top,
311
+ c,
312
+ l
313
+ ];
314
+ return f.viewBox = m.join(" "), {
315
+ attributes: f,
316
+ viewBox: m,
317
+ body: a
318
+ };
319
+ }
320
+ var He = /\sid="(\S+)"/g, Ue = /* @__PURE__ */ new Map();
321
+ function We(e) {
322
+ e = e.replace(/[0-9]+$/, "") || "a";
323
+ let t = Ue.get(e) || 0;
324
+ return Ue.set(e, t + 1), t ? `${e}${t}` : e;
325
+ }
326
+ function Ge(e) {
327
+ let t = [], n;
328
+ for (; n = He.exec(e);) t.push(n[1]);
329
+ if (!t.length) return e;
330
+ let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
331
+ return t.forEach((t) => {
332
+ let n = We(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
333
+ e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
334
+ }), e = e.replace(new RegExp(r, "g"), ""), e;
335
+ }
336
+ var Ke = Object.create(null);
337
+ function qe(e, t) {
338
+ Ke[e] = t;
339
+ }
340
+ function Je(e) {
341
+ return Ke[e] || Ke[""];
342
+ }
343
+ function Ye(e) {
344
+ let t;
345
+ if (typeof e.resources == "string") t = [e.resources];
346
+ else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
347
+ return {
348
+ resources: t,
349
+ path: e.path || "/",
350
+ maxURL: e.maxURL || 500,
351
+ rotate: e.rotate || 750,
352
+ timeout: e.timeout || 5e3,
353
+ random: e.random === !0,
354
+ index: e.index || 0,
355
+ dataAfterTimeout: e.dataAfterTimeout !== !1
356
+ };
357
+ }
358
+ for (var Xe = Object.create(null), Ze = ["https://api.simplesvg.com", "https://api.unisvg.com"], Qe = []; Ze.length > 0;) Ze.length === 1 || Math.random() > .5 ? Qe.push(Ze.shift()) : Qe.push(Ze.pop());
359
+ Xe[""] = Ye({ resources: ["https://api.iconify.design"].concat(Qe) });
360
+ function $e(e, t) {
361
+ let n = Ye(t);
362
+ return n !== null && (Xe[e] = n, !0);
363
+ }
364
+ function et(e) {
365
+ return Xe[e];
366
+ }
367
+ var tt = (() => {
368
+ let e;
369
+ try {
370
+ if (e = fetch, typeof e == "function") return e;
371
+ } catch {}
372
+ })();
373
+ function nt(e, t) {
374
+ let n = et(e);
375
+ if (!n) return 0;
376
+ let r;
377
+ if (!n.maxURL) r = 0;
378
+ else {
379
+ let e = 0;
380
+ n.resources.forEach((t) => {
381
+ e = Math.max(e, t.length);
382
+ });
383
+ let i = t + ".json?icons=";
384
+ r = n.maxURL - e - n.path.length - i.length;
385
+ }
386
+ return r;
387
+ }
388
+ function rt(e) {
389
+ return e === 404;
390
+ }
391
+ var it = (e, t, n) => {
392
+ let r = [], i = nt(e, t), a = "icons", o = {
393
+ type: a,
394
+ provider: e,
395
+ prefix: t,
396
+ icons: []
397
+ }, s = 0;
398
+ return n.forEach((n, c) => {
399
+ s += n.length + 1, s >= i && c > 0 && (r.push(o), o = {
400
+ type: a,
401
+ provider: e,
402
+ prefix: t,
403
+ icons: []
404
+ }, s = n.length), o.icons.push(n);
405
+ }), r.push(o), r;
406
+ };
407
+ function at(e) {
408
+ if (typeof e == "string") {
409
+ let t = et(e);
410
+ if (t) return t.path;
411
+ }
412
+ return "/";
413
+ }
414
+ var ot = {
415
+ prepare: it,
416
+ send: (e, t, n) => {
417
+ if (!tt) {
418
+ n("abort", 424);
419
+ return;
420
+ }
421
+ let r = at(t.provider);
422
+ switch (t.type) {
423
+ case "icons": {
424
+ let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
425
+ r += e + ".json?" + i.toString();
426
+ break;
427
+ }
428
+ case "custom": {
429
+ let e = t.uri;
430
+ r += e.slice(0, 1) === "/" ? e.slice(1) : e;
431
+ break;
432
+ }
433
+ default:
434
+ n("abort", 400);
435
+ return;
436
+ }
437
+ let i = 503;
438
+ tt(e + r).then((e) => {
439
+ let t = e.status;
440
+ if (t !== 200) {
441
+ setTimeout(() => {
442
+ n(rt(t) ? "abort" : "next", t);
443
+ });
444
+ return;
445
+ }
446
+ return i = 501, e.json();
447
+ }).then((e) => {
448
+ if (typeof e != "object" || !e) {
449
+ setTimeout(() => {
450
+ e === 404 ? n("abort", e) : n("next", i);
451
+ });
452
+ return;
453
+ }
454
+ setTimeout(() => {
455
+ n("success", e);
456
+ });
457
+ }).catch(() => {
458
+ n("next", i);
459
+ });
460
+ }
461
+ };
462
+ function st(e, t) {
463
+ e.forEach((e) => {
464
+ let n = e.loaderCallbacks;
465
+ n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
466
+ });
467
+ }
468
+ function ct(e) {
469
+ e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
470
+ e.pendingCallbacksFlag = !1;
471
+ let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
472
+ if (!t.length) return;
473
+ let n = !1, r = e.provider, i = e.prefix;
474
+ t.forEach((t) => {
475
+ let a = t.icons, o = a.pending.length;
476
+ a.pending = a.pending.filter((t) => {
477
+ if (t.prefix !== i) return !0;
478
+ let o = t.name;
479
+ if (e.icons[o]) a.loaded.push({
480
+ provider: r,
481
+ prefix: i,
482
+ name: o
483
+ });
484
+ else if (e.missing.has(o)) a.missing.push({
485
+ provider: r,
486
+ prefix: i,
487
+ name: o
488
+ });
489
+ else return n = !0, !0;
490
+ return !1;
491
+ }), a.pending.length !== o && (n || st([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
492
+ });
493
+ }));
494
+ }
495
+ var lt = 0;
496
+ function ut(e, t, n) {
497
+ let r = lt++, i = st.bind(null, n, r);
498
+ if (!t.pending.length) return i;
499
+ let a = {
500
+ id: r,
501
+ icons: t,
502
+ callback: e,
503
+ abort: i
504
+ };
505
+ return n.forEach((e) => {
506
+ (e.loaderCallbacks ||= []).push(a);
507
+ }), i;
508
+ }
509
+ function dt(e) {
510
+ let t = {
511
+ loaded: [],
512
+ missing: [],
513
+ pending: []
514
+ }, n = Object.create(null);
515
+ e.sort((e, t) => e.provider === t.provider ? e.prefix === t.prefix ? e.name.localeCompare(t.name) : e.prefix.localeCompare(t.prefix) : e.provider.localeCompare(t.provider));
516
+ let r = {
517
+ provider: "",
518
+ prefix: "",
519
+ name: ""
520
+ };
521
+ return e.forEach((e) => {
522
+ if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
523
+ r = e;
524
+ let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] = we(i, a)), l;
525
+ l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending;
526
+ let u = {
527
+ provider: i,
528
+ prefix: a,
529
+ name: o
530
+ };
531
+ l.push(u);
532
+ }), t;
533
+ }
534
+ function ft(e, t = !0, n = !1) {
535
+ let r = [];
536
+ return e.forEach((e) => {
537
+ let i = typeof e == "string" ? ue(e, t, n) : e;
538
+ i && r.push(i);
539
+ }), r;
540
+ }
541
+ var pt = {
542
+ resources: [],
543
+ index: 0,
544
+ timeout: 2e3,
545
+ rotate: 750,
546
+ random: !1,
547
+ dataAfterTimeout: !1
548
+ };
549
+ function mt(e, t, n, r) {
550
+ let i = e.resources.length, a = e.random ? Math.floor(Math.random() * i) : e.index, o;
551
+ if (e.random) {
552
+ let t = e.resources.slice(0);
553
+ for (o = []; t.length > 1;) {
554
+ let e = Math.floor(Math.random() * t.length);
555
+ o.push(t[e]), t = t.slice(0, e).concat(t.slice(e + 1));
556
+ }
557
+ o = o.concat(t);
558
+ } else o = e.resources.slice(a).concat(e.resources.slice(0, a));
559
+ let s = Date.now(), c = "pending", l = 0, u, d = null, f = [], p = [];
560
+ typeof r == "function" && p.push(r);
561
+ function m() {
562
+ d &&= (clearTimeout(d), null);
563
+ }
564
+ function h() {
565
+ c === "pending" && (c = "aborted"), m(), f.forEach((e) => {
566
+ e.status === "pending" && (e.status = "aborted");
567
+ }), f = [];
568
+ }
569
+ function g(e, t) {
570
+ t && (p = []), typeof e == "function" && p.push(e);
571
+ }
572
+ function _() {
573
+ return {
574
+ startTime: s,
575
+ payload: t,
576
+ status: c,
577
+ queriesSent: l,
578
+ queriesPending: f.length,
579
+ subscribe: g,
580
+ abort: h
581
+ };
582
+ }
583
+ function v() {
584
+ c = "failed", p.forEach((e) => {
585
+ e(void 0, u);
586
+ });
587
+ }
588
+ function y() {
589
+ f.forEach((e) => {
590
+ e.status === "pending" && (e.status = "aborted");
591
+ }), f = [];
592
+ }
593
+ function b(t, n, r) {
594
+ let i = n !== "success";
595
+ switch (f = f.filter((e) => e !== t), c) {
596
+ case "pending": break;
597
+ case "failed":
598
+ if (i || !e.dataAfterTimeout) return;
599
+ break;
600
+ default: return;
601
+ }
602
+ if (n === "abort") {
603
+ u = r, v();
604
+ return;
605
+ }
606
+ if (i) {
607
+ u = r, f.length || (o.length ? x() : v());
608
+ return;
609
+ }
610
+ if (m(), y(), !e.random) {
611
+ let n = e.resources.indexOf(t.resource);
612
+ n !== -1 && n !== e.index && (e.index = n);
613
+ }
614
+ c = "completed", p.forEach((e) => {
615
+ e(r);
616
+ });
617
+ }
618
+ function x() {
619
+ if (c !== "pending") return;
620
+ m();
621
+ let r = o.shift();
622
+ if (r === void 0) {
623
+ if (f.length) {
624
+ d = setTimeout(() => {
625
+ m(), c === "pending" && (y(), v());
626
+ }, e.timeout);
627
+ return;
628
+ }
629
+ v();
630
+ return;
631
+ }
632
+ let i = {
633
+ status: "pending",
634
+ resource: r,
635
+ callback: (e, t) => {
636
+ b(i, e, t);
637
+ }
638
+ };
639
+ f.push(i), l++, d = setTimeout(x, e.rotate), n(r, t, i.callback);
640
+ }
641
+ return setTimeout(x), _;
642
+ }
643
+ function ht(e) {
644
+ let t = {
645
+ ...pt,
646
+ ...e
647
+ }, n = [];
648
+ function r() {
649
+ n = n.filter((e) => e().status === "pending");
650
+ }
651
+ function i(e, i, a) {
652
+ let o = mt(t, e, i, (e, t) => {
653
+ r(), a && a(e, t);
654
+ });
655
+ return n.push(o), o;
656
+ }
657
+ function a(e) {
658
+ return n.find((t) => e(t)) || null;
659
+ }
660
+ return {
661
+ query: i,
662
+ find: a,
663
+ setIndex: (e) => {
664
+ t.index = e;
665
+ },
666
+ getIndex: () => t.index,
667
+ cleanup: r
668
+ };
669
+ }
670
+ function gt() {}
671
+ var _t = Object.create(null);
672
+ function vt(e) {
673
+ if (!_t[e]) {
674
+ let t = et(e);
675
+ if (!t) return;
676
+ _t[e] = {
677
+ config: t,
678
+ redundancy: ht(t)
679
+ };
680
+ }
681
+ return _t[e];
682
+ }
683
+ function yt(e, t, n) {
684
+ let r, i;
685
+ if (typeof e == "string") {
686
+ let t = Je(e);
687
+ if (!t) return n(void 0, 424), gt;
688
+ i = t.send;
689
+ let a = vt(e);
690
+ a && (r = a.redundancy);
691
+ } else {
692
+ let t = Ye(e);
693
+ if (t) {
694
+ r = ht(t);
695
+ let n = Je(e.resources ? e.resources[0] : "");
696
+ n && (i = n.send);
697
+ }
698
+ }
699
+ return !r || !i ? (n(void 0, 424), gt) : r.query(t, i, n)().abort;
700
+ }
701
+ function bt() {}
702
+ function xt(e) {
703
+ e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
704
+ e.iconsLoaderFlag = !1, ct(e);
705
+ }));
706
+ }
707
+ function St(e) {
708
+ let t = [], n = [];
709
+ return e.forEach((e) => {
710
+ (e.match(le) ? t : n).push(e);
711
+ }), {
712
+ valid: t,
713
+ invalid: n
714
+ };
715
+ }
716
+ function Ct(e, t, n) {
717
+ function r() {
718
+ let n = e.pendingIcons;
719
+ t.forEach((t) => {
720
+ n && n.delete(t), e.icons[t] || e.missing.add(t);
721
+ });
722
+ }
723
+ if (n && typeof n == "object") try {
724
+ if (!Te(e, n).length) {
725
+ r();
726
+ return;
727
+ }
728
+ } catch (e) {
729
+ console.error(e);
730
+ }
731
+ r(), xt(e);
732
+ }
733
+ function wt(e, t) {
734
+ e instanceof Promise ? e.then((e) => {
735
+ t(e);
736
+ }).catch(() => {
737
+ t(null);
738
+ }) : t(e);
739
+ }
740
+ function Tt(e, t) {
741
+ e.iconsToLoad = e.iconsToLoad ? e.iconsToLoad.concat(t).sort() : t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
742
+ e.iconsQueueFlag = !1;
743
+ let { provider: t, prefix: n } = e, r = e.iconsToLoad;
744
+ if (delete e.iconsToLoad, !r || !r.length) return;
745
+ let i = e.loadIcon;
746
+ if (e.loadIcons && (r.length > 1 || !i)) {
747
+ wt(e.loadIcons(r, n, t), (t) => {
748
+ Ct(e, r, t);
749
+ });
750
+ return;
751
+ }
752
+ if (i) {
753
+ r.forEach((r) => {
754
+ wt(i(r, n, t), (t) => {
755
+ Ct(e, [r], t ? {
756
+ prefix: n,
757
+ icons: { [r]: t }
758
+ } : null);
759
+ });
760
+ });
761
+ return;
762
+ }
763
+ let { valid: a, invalid: o } = St(r);
764
+ if (o.length && Ct(e, o, null), !a.length) return;
765
+ let s = n.match(le) ? Je(t) : null;
766
+ if (!s) {
767
+ Ct(e, a, null);
768
+ return;
769
+ }
770
+ s.prepare(t, n, a).forEach((n) => {
771
+ yt(t, n, (t) => {
772
+ Ct(e, n.icons, t);
773
+ });
774
+ });
775
+ }));
776
+ }
777
+ var Et = (e, t) => {
778
+ let n = dt(ft(e, !0, Oe()));
779
+ if (!n.pending.length) {
780
+ let e = !0;
781
+ return t && setTimeout(() => {
782
+ e && t(n.loaded, n.missing, n.pending, bt);
783
+ }), () => {
784
+ e = !1;
785
+ };
786
+ }
787
+ let r = Object.create(null), i = [], a, o;
788
+ return n.pending.forEach((e) => {
789
+ let { provider: t, prefix: n } = e;
790
+ if (n === o && t === a) return;
791
+ a = t, o = n, i.push(we(t, n));
792
+ let s = r[t] || (r[t] = Object.create(null));
793
+ s[n] || (s[n] = []);
794
+ }), n.pending.forEach((e) => {
795
+ let { provider: t, prefix: n, name: i } = e, a = we(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
796
+ o.has(i) || (o.add(i), r[t][n].push(i));
797
+ }), i.forEach((e) => {
798
+ let t = r[e.provider][e.prefix];
799
+ t.length && Tt(e, t);
800
+ }), t ? ut(t, n, i) : bt;
801
+ };
802
+ function Dt(e, t) {
803
+ let n = { ...e };
804
+ for (let e in t) {
805
+ let r = t[e], i = typeof r;
806
+ e in Me ? (r === null || r && (i === "string" || i === "number")) && (n[e] = r) : i === typeof n[e] && (n[e] = e === "rotate" ? r % 4 : r);
807
+ }
808
+ return n;
809
+ }
810
+ var Ot = /[\s,]+/;
811
+ function kt(e, t) {
812
+ t.split(Ot).forEach((t) => {
813
+ switch (t.trim()) {
814
+ case "horizontal":
815
+ e.hFlip = !0;
816
+ break;
817
+ case "vertical": e.vFlip = !0;
818
+ }
819
+ });
820
+ }
821
+ function At(e, t = 0) {
822
+ let n = e.replace(/^-?[0-9.]*/, "");
823
+ function r(e) {
824
+ for (; e < 0;) e += 4;
825
+ return e % 4;
826
+ }
827
+ if (n === "") {
828
+ let t = parseInt(e);
829
+ return isNaN(t) ? 0 : r(t);
830
+ }
831
+ if (n !== e) {
832
+ let t = 0;
833
+ switch (n) {
834
+ case "%":
835
+ t = 25;
836
+ break;
837
+ case "deg": t = 90;
838
+ }
839
+ if (t) {
840
+ let i = parseFloat(e.slice(0, e.length - n.length));
841
+ return isNaN(i) ? 0 : (i /= t, i % 1 == 0 ? r(i) : 0);
842
+ }
843
+ }
844
+ return t;
845
+ }
846
+ function jt(e, t) {
847
+ let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
848
+ for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
849
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
850
+ }
851
+ function Mt(e) {
852
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ").replace(/:/g, "%3A").replace(/\//g, "%2F");
853
+ }
854
+ function Nt(e) {
855
+ return "data:image/svg+xml," + Mt(e);
856
+ }
857
+ function Pt(e) {
858
+ return "url(\"" + Nt(e) + "\")";
859
+ }
860
+ var Ft = {
861
+ ...Ne,
862
+ inline: !1
863
+ }, It = {
864
+ xmlns: "http://www.w3.org/2000/svg",
865
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
866
+ "aria-hidden": !0,
867
+ role: "img"
868
+ }, Lt = { display: "inline-block" }, Rt = { backgroundColor: "currentColor" }, zt = { backgroundColor: "transparent" }, Bt = {
869
+ Image: "var(--svg)",
870
+ Repeat: "no-repeat",
871
+ Size: "100% 100%"
872
+ }, Vt = {
873
+ webkitMask: Rt,
874
+ mask: Rt,
875
+ background: zt
876
+ };
877
+ for (let e in Vt) {
878
+ let t = Vt[e];
879
+ for (let n in Bt) t[e + n] = Bt[n];
880
+ }
881
+ var Ht = {};
882
+ ["horizontal", "vertical"].forEach((e) => {
883
+ let t = e.slice(0, 1) + "Flip";
884
+ Ht[e + "-flip"] = t, Ht[e.slice(0, 1) + "-flip"] = t, Ht[e + "Flip"] = t;
885
+ });
886
+ function Ut(e) {
887
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
888
+ }
889
+ var Wt = (e, t) => {
890
+ let n = Dt(Ft, t), r = { ...It }, i = t.mode || "svg", a = {}, o = t.style, s = typeof o == "object" && !(o instanceof Array) ? o : {};
891
+ for (let e in t) {
892
+ let i = t[e];
893
+ if (i !== void 0) switch (e) {
894
+ case "icon":
895
+ case "style":
896
+ case "onLoad":
897
+ case "mode":
898
+ case "ssr":
899
+ case "customise": break;
900
+ case "inline":
901
+ case "hFlip":
902
+ case "vFlip":
903
+ n[e] = i === !0 || i === "true" || i === 1;
904
+ break;
905
+ case "flip": break;
906
+ case "color":
907
+ a.color = i;
908
+ break;
909
+ case "rotate":
910
+ typeof i == "string" ? n[e] = At(i) : typeof i == "number" && (n[e] = i);
911
+ break;
912
+ case "ariaHidden":
913
+ case "aria-hidden":
914
+ i !== !0 && i !== "true" && delete r["aria-hidden"];
915
+ break;
916
+ default: {
917
+ let t = Ht[e];
918
+ t ? (i === !0 || i === "true" || i === 1) && (n[t] = !0) : Ft[e] === void 0 && (r[e] = i);
919
+ }
920
+ }
921
+ }
922
+ typeof t.flip == "string" && kt(n, t.flip);
923
+ let c = Ve(e, n), l = c.attributes;
924
+ if (n.inline && (a.verticalAlign = "-0.125em"), i === "svg") return r.style = {
925
+ ...a,
926
+ ...s
927
+ }, Object.assign(r, l), r.innerHTML = Ge(c.body), u("svg", r);
928
+ let { body: d, width: f, height: p } = e, m = i === "mask" || i !== "bg" && d.indexOf("currentColor") !== -1, h = jt(d, {
929
+ ...l,
930
+ width: f + "",
931
+ height: p + ""
932
+ });
933
+ return r.style = {
934
+ ...a,
935
+ "--svg": Pt(h),
936
+ width: Ut(l.width),
937
+ height: Ut(l.height),
938
+ ...Lt,
939
+ ...m ? Rt : zt,
940
+ ...s
941
+ }, u("span", r);
942
+ };
943
+ if (Oe(!0), qe("", ot), typeof document < "u" && typeof window < "u") {
944
+ let e = window;
945
+ if (e.IconifyPreload !== void 0) {
946
+ let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
947
+ typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
948
+ try {
949
+ (typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !je(e)) && console.error(n);
950
+ } catch {
951
+ console.error(n);
952
+ }
953
+ });
954
+ }
955
+ if (e.IconifyProviders !== void 0) {
956
+ let t = e.IconifyProviders;
957
+ if (typeof t == "object" && t) for (let e in t) {
958
+ let n = "IconifyProviders[" + e + "] is invalid.";
959
+ try {
960
+ let r = t[e];
961
+ if (typeof r != "object" || !r || r.resources === void 0) continue;
962
+ $e(e, r) || console.error(n);
963
+ } catch {
964
+ console.error(n);
965
+ }
966
+ }
967
+ }
968
+ }
969
+ var Gt = {
970
+ ...pe,
971
+ body: ""
972
+ }, Kt = c((e, { emit: t }) => {
973
+ let n = w(null);
974
+ function r() {
975
+ n.value &&= (n.value.abort?.(), null);
976
+ }
977
+ let i = w(!!e.ssr), a = w(""), o = O(null);
978
+ function s() {
979
+ let i = e.icon;
980
+ if (typeof i == "object" && i && typeof i.body == "string") return a.value = "", { data: i };
981
+ let o;
982
+ if (typeof i != "string" || (o = ue(i, !1, !0)) === null) return null;
983
+ let s = ke(o);
984
+ if (!s) {
985
+ let e = n.value;
986
+ return (!e || e.name !== i) && (s === null ? n.value = { name: i } : n.value = {
987
+ name: i,
988
+ abort: Et([o], c)
989
+ }), null;
990
+ }
991
+ r(), a.value !== i && (a.value = i, h(() => {
992
+ t("load", i);
993
+ }));
994
+ let l = e.customise;
995
+ if (l) {
996
+ s = Object.assign({}, s);
997
+ let e = l(s.body, o.name, o.prefix, o.provider);
998
+ typeof e == "string" && (s.body = e);
999
+ }
1000
+ let u = ["iconify"];
1001
+ return o.prefix !== "" && u.push("iconify--" + o.prefix), o.provider !== "" && u.push("iconify--" + o.provider), {
1002
+ data: s,
1003
+ classes: u
1004
+ };
1005
+ }
1006
+ function c() {
1007
+ let e = s();
1008
+ e ? e.data !== o.value?.data && (o.value = e) : o.value = null;
1009
+ }
1010
+ return i.value ? c() : v(() => {
1011
+ i.value = !0, c();
1012
+ }), R(() => e.icon, c), y(r), () => {
1013
+ let t = o.value;
1014
+ if (!t) return Wt(Gt, e);
1015
+ let n = e;
1016
+ return t.classes && (n = {
1017
+ ...e,
1018
+ class: t.classes.join(" ")
1019
+ }), Wt({
1020
+ ...pe,
1021
+ ...t.data
1022
+ }, n);
1023
+ };
1024
+ }, {
1025
+ props: {
1026
+ icon: {
1027
+ type: [String, Object],
1028
+ required: !0
1029
+ },
1030
+ mode: { type: String },
1031
+ ssr: { type: Boolean },
1032
+ width: { type: [String, Number] },
1033
+ height: { type: [String, Number] },
1034
+ style: { type: [String, Object] },
1035
+ color: { type: String },
1036
+ inline: { type: Boolean },
1037
+ rotate: { type: [Number, String] },
1038
+ hFlip: { type: Boolean },
1039
+ horizontalFlip: { type: Boolean },
1040
+ vFlip: { type: Boolean },
1041
+ verticalFlip: { type: Boolean },
1042
+ flip: { type: String },
1043
+ id: { type: String },
1044
+ ariaHidden: {
1045
+ type: [Boolean, String],
1046
+ default: void 0
1047
+ },
1048
+ customise: { type: Function },
1049
+ title: { type: String }
1050
+ },
1051
+ emits: ["load"]
1052
+ }), qt = {
1053
+ key: 0,
1054
+ class: "title"
1055
+ }, Jt = /*#__PURE__*/ H(/* @__PURE__ */ c({
1056
+ __name: "AppNotification",
1057
+ props: {
1058
+ title: {},
1059
+ variant: {}
1060
+ },
1061
+ setup(e) {
1062
+ F((e) => ({
1063
+ v630beb5a: c.value.fg,
1064
+ v630beade: c.value.bg,
1065
+ v58354376: c.value.border
1066
+ }));
1067
+ let n = e, o = t(() => {
1068
+ switch (n.variant) {
1069
+ case "error": return "solar:danger-triangle-bold";
1070
+ case "info": return "solar:info-circle-bold";
1071
+ case "warning": return "solar:danger-circle-bold";
1072
+ default: return "solar:check-circle-bold";
1073
+ }
1074
+ }), c = w({
1075
+ bg: `var(--color-bg-${n.variant})`,
1076
+ fg: `var(--color-fg-${n.variant})`,
1077
+ border: `var(--color-border-${n.variant})`
1078
+ });
1079
+ return (t, n) => (b(), i("div", { class: g(["notification", e.variant]) }, [s(P(Kt), { icon: o.value }, null, 8, ["icon"]), a("div", null, [e.title ? (b(), i("div", qt, k(e.title), 1)) : r("", !0), E(t.$slots, "default", {}, void 0, !0)])], 2));
1080
+ }
1081
+ }), [["__scopeId", "data-v-3631bd7c"]]), Yt = { class: "tabs" }, Xt = { role: "tablist" }, Zt = [
1082
+ "id",
1083
+ "aria-selected",
1084
+ "aria-controls",
1085
+ "tabindex",
1086
+ "onClick"
1087
+ ], Qt = { class: "panel" }, $t = ["id", "aria-labelledby"], en = /* @__PURE__ */ c({
1088
+ __name: "AppTabs",
1089
+ props: { tabs: {} },
1090
+ setup(n) {
1091
+ F((e) => ({
1092
+ v1e37d192: h.value,
1093
+ v99f3e58e: P(_).subtle,
1094
+ ef7ed3b2: c.value,
1095
+ c42b4c24: P(_).emphasized,
1096
+ v4ca0e54d: P(_).fg
1097
+ }));
1098
+ let r = n, o = w(0), s = I(), c = t(() => `--${s}`), l = () => {
1099
+ o.value === r.tabs.length - 1 ? m(0) : m(o.value + 1);
1100
+ }, u = () => {
1101
+ o.value === 0 ? m(r.tabs.length - 1) : m(o.value - 1);
1102
+ }, d = () => {
1103
+ m(0);
1104
+ }, f = () => {
1105
+ m(r.tabs.length - 1);
1106
+ }, p = te("button"), m = (e) => {
1107
+ p.value?.length && p.value[e] && p.value[e].focus(), o.value = e;
1108
+ }, h = t(() => r.tabs.length), { colors: _ } = V();
1109
+ return (t, r) => (b(), i("div", Yt, [a("ul", Xt, [(b(!0), i(e, null, T(n.tabs, (e, t) => (b(), i("li", {
1110
+ key: e.id,
1111
+ role: "presentation"
1112
+ }, [a("button", {
1113
+ id: `tab-${e.id}`,
1114
+ ref_for: !0,
1115
+ ref: "button",
1116
+ type: "button",
1117
+ role: "tab",
1118
+ "aria-selected": o.value === t,
1119
+ "aria-controls": `panel-${e.id}`,
1120
+ tabindex: o.value === t ? void 0 : "-1",
1121
+ onKeydown: [
1122
+ ae(l, ["right"]),
1123
+ ae(u, ["left"]),
1124
+ ae(d, ["home"]),
1125
+ ae(f, ["end"])
1126
+ ],
1127
+ onClick: (e) => o.value = t
1128
+ }, k(e.title), 41, Zt)]))), 128))]), a("div", Qt, [(b(!0), i(e, null, T(n.tabs, (e, n) => (b(), i("div", {
1129
+ id: `panel-${e.id}`,
1130
+ key: e.id,
1131
+ "aria-labelledby": `tab-${e.id}`,
1132
+ role: "tabpanel",
1133
+ tabindex: "0",
1134
+ class: g({ active: o.value === n })
1135
+ }, [E(t.$slots, e.id)], 10, $t))), 128))])]));
1136
+ }
1137
+ }), tn = { class: "wrapper" }, nn = /*#__PURE__*/ H(/* @__PURE__ */ c({
1138
+ __name: "AppCarousel",
1139
+ props: { items: {} },
1140
+ setup(n) {
1141
+ F((e) => ({
1142
+ e227236c: o.value,
1143
+ v565496e7: P(s).solid
1144
+ }));
1145
+ let r = n, o = t(() => r.items.length), { colors: s } = V();
1146
+ return (t, r) => (b(), i("div", tn, [a("ul", null, [(b(!0), i(e, null, T(n.items, (e) => (b(), i("li", { key: e }, [E(t.$slots, e, {}, void 0, !0)]))), 128))])]));
1147
+ }
1148
+ }), [["__scopeId", "data-v-c2c324cf"]]), rn = /*#__PURE__*/ H(/* @__PURE__ */ c({
1149
+ __name: "CenterWrapper",
1150
+ props: {
1151
+ size: { default: "lg" },
1152
+ top: {
1153
+ type: Boolean,
1154
+ default: !1
1155
+ }
1156
+ },
1157
+ setup(e) {
1158
+ return (t, n) => (b(), i("div", { class: g(["notch", { top: e.top }]) }, [a("div", { class: g(["wrapper", `wrapper-${e.size}`]) }, [E(t.$slots, "default", {}, void 0, !0)], 2)], 2));
1159
+ }
1160
+ }), [["__scopeId", "data-v-de9741ca"]]), an = { class: "content" }, on = ["id"], sn = ["id"], cn = ["href"], ln = /*#__PURE__*/ H(/* @__PURE__ */ c({
1161
+ __name: "ScrollSpy",
1162
+ props: { pages: {} },
1163
+ setup(n) {
1164
+ F((e) => ({
1165
+ v80e7688a: o.value,
1166
+ v0862a933: P(s).solid,
1167
+ v0442a925: P(s).subtle
1168
+ }));
1169
+ let r = I(), o = t(() => `--${r}`), { colors: s } = V();
1170
+ return (t, r) => (b(), i("div", an, [a("div", null, [(b(!0), i(e, null, T(n.pages, (e) => (b(), i("section", { key: e.title }, [
1171
+ a("span", { id: e.id }, null, 8, on),
1172
+ a("h2", null, k(e.title), 1),
1173
+ E(t.$slots, e.id, {}, void 0, !0)
1174
+ ]))), 128))]), a("nav", null, [a("ol", null, [(b(!0), i(e, null, T(n.pages, (e) => (b(), i("li", {
1175
+ id: `link-${e.title}`,
1176
+ key: e.title
1177
+ }, [a("a", { href: `#${e.id}` }, k(e.title), 9, cn)], 8, sn))), 128))])])]));
1178
+ }
1179
+ }), [["__scopeId", "data-v-ae061766"]]);
1180
+ //#endregion
1181
+ //#region node_modules/.pnpm/nostics@1.3.0/node_modules/nostics/dist/index.mjs
1182
+ function un(e) {
1183
+ let t = `[${e.name}] ${e.message}`, n = [];
1184
+ return e.fix && n.push(`fix: ${e.fix}`), e.sources?.length && n.push(`sources: ${e.sources.join(", ")}`), e.docs && n.push(`see: ${e.docs}`), n.length === 0 ? t : [t, ...n.map((e, t) => `${t < n.length - 1 ? "├▶" : "╰▶"} ${e}`)].join("\n");
1185
+ }
1186
+ function dn(e, ...t) {
1187
+ return typeof e == "function" ? e(...t) : e;
1188
+ }
1189
+ /* @__NO_SIDE_EFFECTS__ */
1190
+ function fn({ method: e = "warn", formatter: t = un } = {}) {
1191
+ return (n, { method: r = e } = {}) => {
1192
+ console[r](t(n));
1193
+ };
1194
+ }
1195
+ var pn = Error.captureStackTrace, mn = class e extends Error {
1196
+ name;
1197
+ code;
1198
+ docs;
1199
+ fix;
1200
+ sources;
1201
+ data;
1202
+ get why() {
1203
+ return this.message;
1204
+ }
1205
+ constructor(t, n = e) {
1206
+ super(t.why, { cause: t.cause }), this.code = this.name = t.code, this.fix = t.fix, this.docs = t.docs, this.sources = t.sources, this.data = t.data, pn?.(this, n);
1207
+ }
1208
+ toJSON() {
1209
+ return {
1210
+ name: this.name,
1211
+ why: this.why,
1212
+ fix: this.fix,
1213
+ docs: this.docs,
1214
+ sources: this.sources,
1215
+ cause: this.cause,
1216
+ data: this.data,
1217
+ stack: this.stack
1218
+ };
1219
+ }
1220
+ };
1221
+ function hn(e, t) {
1222
+ return typeof e == "string" ? `${e}/${t.toLowerCase()}` : e?.(t);
1223
+ }
1224
+ /* @__NO_SIDE_EFFECTS__ */
1225
+ function gn(e) {
1226
+ let t = e.reporters ?? [], n = {}, { docsBase: r } = e;
1227
+ for (let i of Object.keys(e.codes)) {
1228
+ let a = e.codes[i], o = a.docs === !1 ? void 0 : a.docs || hn(r, i), s = (e = {}, n = {}) => {
1229
+ let r = new mn({
1230
+ code: i,
1231
+ why: dn(a.why, e),
1232
+ fix: dn(a.fix, e),
1233
+ docs: o,
1234
+ cause: e.cause,
1235
+ sources: e.sources,
1236
+ data: dn(a.data, e)
1237
+ }, s);
1238
+ for (let e of t) e(r, n);
1239
+ return r;
1240
+ };
1241
+ n[i] = s;
1242
+ }
1243
+ return n;
1244
+ }
1245
+ //#endregion
1246
+ //#region node_modules/.pnpm/vue-router@5.3.1_@vue+compiler-sfc@3.5.43_rolldown@1.2.10_vite@8.3.1_@types+node@26.6.3_jiti@_oc2u7t4yrghxv5ubum7mhewgqm/node_modules/vue-router/dist/useApi-BPuI6ZR9.js
1247
+ var _n = () => {}, vn = Array.isArray;
1248
+ Symbol(process.env.NODE_ENV === "production" ? "" : "navigation failure");
1249
+ var yn = [
1250
+ "params",
1251
+ "query",
1252
+ "hash"
1253
+ ];
1254
+ function bn(e) {
1255
+ if (!e || typeof e == "string") return e;
1256
+ if (e.path != null) return e.path;
1257
+ let t = {};
1258
+ for (let n of yn) n in e && (t[n] = e[n]);
1259
+ return JSON.stringify(t, null, 2);
1260
+ }
1261
+ var xn = /*#__PURE__*/ gn({
1262
+ reporters: [/*#__PURE__*/ fn()],
1263
+ codes: {
1264
+ VUE_ROUTER_R0001: {
1265
+ why: (e) => `Parent route "${e.name}" not found when adding child route`,
1266
+ fix: "Add the parent route before its children, or check the parent name for typos.",
1267
+ docs: "https://router.vuejs.org/guide/advanced/dynamic-routing.html#Adding-nested-routes"
1268
+ },
1269
+ VUE_ROUTER_R0002: {
1270
+ why: (e) => `Cannot remove non-existent route "${e.name}"`,
1271
+ fix: "Check the route name; it may already have been removed or was never added.",
1272
+ docs: "https://router.vuejs.org/guide/advanced/dynamic-routing.html#Removing-routes"
1273
+ },
1274
+ VUE_ROUTER_R0003: {
1275
+ why: (e) => `Location "${bn(e.location)}" resolved to "${e.href}". A resolved location cannot start with multiple slashes.`,
1276
+ fix: "Remove the leading slashes from the location or fix the route configuration."
1277
+ },
1278
+ VUE_ROUTER_R0004: {
1279
+ why: (e) => `No match found for location with path "${bn(e.path)}"`,
1280
+ fix: "Add a route matching this path or check for typos in the location.",
1281
+ docs: "https://router.vuejs.org/guide/essentials/dynamic-matching.html#Catch-all-404-Not-found-Route"
1282
+ },
1283
+ VUE_ROUTER_R0005: {
1284
+ why: (e) => `router.resolve() was passed an invalid location. This will fail in production.\nLocation: ${bn(e.rawLocation)}`,
1285
+ fix: "Pass a valid route location: a string path or an object with `path` or `name`."
1286
+ },
1287
+ VUE_ROUTER_R0006: {
1288
+ why: (e) => `Path "${e.path}" was passed with params but they will be ignored because a "path" was passed.`,
1289
+ fix: "Use a named route `{ name, params }` instead of `{ path, params }`.",
1290
+ docs: "https://router.vuejs.org/guide/essentials/navigation.html#Navigate-to-a-different-location"
1291
+ },
1292
+ VUE_ROUTER_R0007: {
1293
+ why: (e) => `A \`hash\` should always start with the character "#" but received "${e.hash}".`,
1294
+ fix: (e) => `Prepend "#" to the hash in your route location: use "#${e.hash}".`
1295
+ },
1296
+ VUE_ROUTER_R0008: {
1297
+ why: (e) => `Invalid redirect found:\n${e.target}\n when navigating to "${e.to}".\nThis will break in production.`,
1298
+ fix: "A redirect must resolve to a location with a `name` or `path`; return one of those (or a string path) from `redirect`.",
1299
+ docs: "https://router.vuejs.org/guide/essentials/redirect-and-alias.html#Redirect"
1300
+ },
1301
+ VUE_ROUTER_R0009: {
1302
+ why: (e) => `Detected a possibly infinite redirection in a navigation guard when going from "${e.from}" to "${e.to}". Aborting to avoid a Stack Overflow. This might break in production if not fixed.`,
1303
+ fix: "A guard is returning a new location on every call; make that return conditional so it only redirects when actually needed.",
1304
+ docs: "https://router.vuejs.org/guide/advanced/navigation-guards.html#Global-Before-Guards"
1305
+ },
1306
+ VUE_ROUTER_R0010: {
1307
+ why: "Uncaught error during route navigation",
1308
+ fix: "Register an error handler with `router.onError()` to handle navigation errors."
1309
+ },
1310
+ VUE_ROUTER_R0011: {
1311
+ why: "Unexpected error when starting the router:",
1312
+ fix: "Inspect the actual cause; a navigation guard or async component likely threw during the initial navigation."
1313
+ },
1314
+ VUE_ROUTER_R0020: {
1315
+ why: (e) => `No active route record was found when calling \`${e.fn}()\`. Maybe you called it inside of App.vue?`,
1316
+ fix: "Call it from a component rendered inside <router-view> (a page component or one of its children), not from App.vue.",
1317
+ docs: "https://router.vuejs.org/guide/advanced/composition-api.html#Navigation-Guards"
1318
+ },
1319
+ VUE_ROUTER_R0021: {
1320
+ why: "No active route record was found when reactivating component with navigation guard. This is likely a bug in vue-router.",
1321
+ fix: "Report with a minimal reproduction at https://github.com/vuejs/router/issues/new/choose."
1322
+ },
1323
+ VUE_ROUTER_R0022: {
1324
+ why: (e) => `${e.fn}() was called outside of component setup but it must be called at the top of a setup function`,
1325
+ fix: "Call it synchronously at the top of `setup()`, before any `await`.",
1326
+ docs: "https://router.vuejs.org/guide/advanced/composition-api.html#Navigation-Guards"
1327
+ },
1328
+ VUE_ROUTER_R0023: {
1329
+ why: (e) => `The "next" callback was never called inside of ${e.name ? `"${e.name}"` : ""}:\n${e.guard}`,
1330
+ fix: "Make sure `next()` runs on every branch, including early returns and async paths, or drop the `next` parameter and return the value instead.",
1331
+ docs: "https://router.vuejs.org/guide/advanced/navigation-guards.html#Optional-third-argument-next"
1332
+ },
1333
+ VUE_ROUTER_R0024: {
1334
+ why: (e) => `The "next" callback was called more than once in one navigation guard when going from "${e.from}" to "${e.to}". This will fail in production.`,
1335
+ fix: "Call `next()` exactly once per guard: remove the extra call, or migrate to returning the value you passed to `next()`.",
1336
+ docs: "https://router.vuejs.org/guide/advanced/navigation-guards.html#Optional-third-argument-next"
1337
+ },
1338
+ VUE_ROUTER_R0025: {
1339
+ why: "The `next()` callback in navigation guards is deprecated.",
1340
+ fix: "Return the value instead: `next()` becomes `return`, `next(false)` becomes `return false`, `next(\"/path\")` becomes `return \"/path\"`.",
1341
+ docs: "https://router.vuejs.org/guide/advanced/navigation-guards.html#Optional-third-argument-next"
1342
+ },
1343
+ VUE_ROUTER_R0026: {
1344
+ why: (e) => `Record with path "${e.path}" is either missing a "component(s)" or "children" property.`,
1345
+ fix: "Add a `component`, `components`, or `children` to the route record.",
1346
+ docs: "https://router.vuejs.org/guide/essentials/nested-routes.html"
1347
+ },
1348
+ VUE_ROUTER_R0027: {
1349
+ why: (e) => `Component "${e.name}" in record with path "${e.path}" is not a valid component. Received "${e.received}".`,
1350
+ fix: "Pass a component or a function returning a Promise that resolves to one."
1351
+ },
1352
+ VUE_ROUTER_R0028: {
1353
+ why: (e) => `Component "${e.name}" in record with path "${e.path}" is a Promise instead of a function that returns a Promise. This will break in production if not fixed.`,
1354
+ fix: "Defer the import in an arrow function so it loads lazily: write \"() => import('./MyPage.vue')\", not \"import('./MyPage.vue')\".",
1355
+ docs: "https://router.vuejs.org/guide/advanced/lazy-loading.html"
1356
+ },
1357
+ VUE_ROUTER_R0029: {
1358
+ why: (e) => `Component "${e.name}" in record with path "${e.path}" is defined using "defineAsyncComponent()".`,
1359
+ fix: "Drop the wrapper and pass \"() => import('./MyPage.vue')\" directly; the router handles lazy components itself.",
1360
+ docs: "https://router.vuejs.org/guide/advanced/lazy-loading.html#Relationship-to-async-components"
1361
+ },
1362
+ VUE_ROUTER_R0030: {
1363
+ why: (e) => `Component "${e.name}" in record with path "${e.path}" is a function that does not return a Promise. This will break in production if not fixed.`,
1364
+ fix: "Return a dynamic import (`() => import(\"./MyPage.vue\")`) from the function, or add a `displayName` if it is a functional component.",
1365
+ docs: "https://router.vuejs.org/guide/advanced/lazy-loading.html"
1366
+ },
1367
+ VUE_ROUTER_R0040: {
1368
+ why: (e) => `Because "${e.el}" starts with "#", scrollBehavior resolves it as an element id via document.getElementById("${e.el.slice(1)}"), not as a CSS selector. No element has that id, but "${e.el}" does match an element with document.querySelector().`,
1369
+ fix: (e) => `Resolve the element yourself and return the node: el: document.querySelector('${e.el}').`,
1370
+ docs: "https://router.vuejs.org/guide/advanced/scroll-behavior.html"
1371
+ },
1372
+ VUE_ROUTER_R0041: {
1373
+ why: (e) => `The selector "${e.el}" is invalid. See https://mathiasbynens.be/notes/css-escapes or CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape) for the escaping rules.`,
1374
+ fix: "Build an id selector as `#${CSS.escape(id)}` so special characters in the id are escaped.",
1375
+ docs: "https://router.vuejs.org/guide/advanced/scroll-behavior.html"
1376
+ },
1377
+ VUE_ROUTER_R0042: {
1378
+ why: (e) => `Couldn't find element using selector "${e.el}" returned by scrollBehavior.`,
1379
+ fix: "Return a selector that matches an existing element, or guard against missing elements.",
1380
+ docs: "https://router.vuejs.org/guide/advanced/scroll-behavior.html"
1381
+ },
1382
+ VUE_ROUTER_R0050: {
1383
+ why: (e) => {
1384
+ let t;
1385
+ try {
1386
+ t = e.to === void 0 ? "undefined" : JSON.stringify(e.to);
1387
+ } catch {
1388
+ t = String(e.to);
1389
+ }
1390
+ return `Invalid value for prop "to" in useLink()\n- to: ${t}`;
1391
+ },
1392
+ fix: "Pass a valid route location (a string path or an object) to the \"to\" prop."
1393
+ },
1394
+ VUE_ROUTER_R0060: {
1395
+ why: (e) => `<router-view> can no longer be used directly inside <${e.comp}>.`,
1396
+ fix: (e) => `Wrap the slot's resolved component with <${e.comp}> instead of nesting <router-view> in it:\n\n<router-view v-slot="{ Component }">\n <${e.comp}>\n <component :is="Component" />\n </${e.comp}>\n</router-view>`,
1397
+ docs: "https://router.vuejs.org/guide/advanced/router-view-slot.html#KeepAlive-Transition"
1398
+ },
1399
+ VUE_ROUTER_R0070: {
1400
+ why: (e) => `Cannot resolve a relative location without an absolute path. Trying to resolve "${e.to}" from "${e.from}".`,
1401
+ fix: (e) => `Resolve from an absolute \`from\` path that starts with "/", e.g. "/${e.from}".`
1402
+ },
1403
+ VUE_ROUTER_R0080: {
1404
+ why: (e) => `Error decoding "${e.text}". Using original value`,
1405
+ fix: "Ensure the value is correctly percent-encoded."
1406
+ },
1407
+ VUE_ROUTER_R0090: {
1408
+ why: (e) => `Found duplicated params with name "${e.name}" for path "${e.path}". Only the last one will be available on "$route.params".`,
1409
+ fix: "Give each param a unique name within the path.",
1410
+ docs: "https://router.vuejs.org/guide/essentials/route-matching-syntax.html"
1411
+ },
1412
+ VUE_ROUTER_R0100: {
1413
+ why: (e) => `Discarded invalid param(s) "${e.params}" when navigating.` + e.inherited + " See https://github.com/vuejs/router/commit/e887570 for more details.",
1414
+ fix: "Only pass params that exist on the target route."
1415
+ },
1416
+ VUE_ROUTER_R0101: {
1417
+ why: (e) => `The Matcher cannot resolve relative paths but received "${e.path}". Unless you directly called \`matcher.resolve("${e.path}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`,
1418
+ fix: "Pass an absolute path (starting with \"/\") to the matcher."
1419
+ },
1420
+ VUE_ROUTER_R0102: {
1421
+ why: (e) => `Alias "${e.alias}" and the original record: "${e.original}" must have the exact same param named "${e.name}"`,
1422
+ fix: "Use the same param names in the alias as in the original route.",
1423
+ docs: "https://router.vuejs.org/guide/essentials/redirect-and-alias.html#Alias"
1424
+ },
1425
+ VUE_ROUTER_R0103: {
1426
+ why: (e) => `The route named "${e.name}" has a child without a name, an empty path, and no children. Using that name won't render the empty path child, so this is probably a mistake.`,
1427
+ fix: "Move the `name` onto the empty-path child; or, if intentional, give the child its own name to silence this.",
1428
+ docs: "https://router.vuejs.org/guide/essentials/nested-routes.html#Nested-Named-Routes"
1429
+ },
1430
+ VUE_ROUTER_R0104: {
1431
+ why: (e) => `Absolute path "${e.path}" must have the exact same param named "${e.name}" as its parent "${e.parent}".`,
1432
+ fix: "Include the parent route params in the absolute child path.",
1433
+ docs: "https://router.vuejs.org/guide/essentials/nested-routes.html"
1434
+ },
1435
+ VUE_ROUTER_R0105: {
1436
+ why: (e) => `Finding ancestor route "${e.ancestor}" failed for "${e.record}"`,
1437
+ fix: "Report a reproduction at https://github.com/vuejs/router/issues/new/choose."
1438
+ },
1439
+ VUE_ROUTER_R0110: {
1440
+ why: "A hash base must end with a \"#\"",
1441
+ fix: (e) => `Append "#" to the "base" argument passed to "createWebHashHistory()": "${e.base}" should be "${e.suggestion}".`
1442
+ },
1443
+ VUE_ROUTER_R0120: {
1444
+ why: "Error with push/replace State",
1445
+ fix: "The browser rejected the history API call; check for cross-origin or rate-limit issues."
1446
+ },
1447
+ VUE_ROUTER_R0121: {
1448
+ why: "history.state seems to have been manually replaced without preserving the necessary values.\nYou can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state",
1449
+ fix: "Merge the router's state into your own when calling it manually: `history.replaceState({ ...history.state, ...yourState }, '', url)`.",
1450
+ docs: "https://router.vuejs.org/guide/migration.html#Usage-of-history-state"
1451
+ },
1452
+ VUE_ROUTER_R1001: {
1453
+ why: (e) => `Data loader "${String(e.key)}" has a different parent than the current context. This shouldn't be happening.`,
1454
+ fix: "Report a bug with a minimal reproduction at https://github.com/vuejs/router/."
1455
+ },
1456
+ VUE_ROUTER_R1002: {
1457
+ why: "Returning a NavigationResult is deprecated.",
1458
+ fix: "Replace `return new NavigationResult(to)` with `reroute(to)`, which throws internally to reroute.",
1459
+ docs: "https://router.vuejs.org/data-loaders/navigation-aware.html#Controlling-the-navigation-with-reroute-"
1460
+ },
1461
+ VUE_ROUTER_R1003: {
1462
+ why: (e) => `Loader "${e.key}"'s "commit()" was called but there is no staged data.`,
1463
+ fix: "Ensure the loader resolved before calling `commit()`.",
1464
+ docs: "https://router.vuejs.org/data-loaders/defining-loaders.html#Delaying-data-updates-with-commit"
1465
+ },
1466
+ VUE_ROUTER_R1004: {
1467
+ why: (e) => "A loader returned a NavigationResult but is not registered on the route." + e.key,
1468
+ fix: "Export the loader from the page component so it gets registered, e.g. `export const useUserData = defineLoader(...)`.",
1469
+ docs: "https://router.vuejs.org/data-loaders/organization.html"
1470
+ },
1471
+ VUE_ROUTER_R1005: {
1472
+ why: (e) => `Data loader "${e.key}" has itself as parent. This shouldn't be happening.`,
1473
+ fix: "Report a bug with a minimal reproduction at https://github.com/vuejs/router/."
1474
+ },
1475
+ VUE_ROUTER_R1006: {
1476
+ why: (e) => `A query was defined with the same key as the loader "[${e.key}]".\nSee https://pinia-colada.esm.dev/#TODO`,
1477
+ fix: "If the key is meant to match, use the data loader directly; otherwise rename the `useQuery()` key so it no longer collides.",
1478
+ docs: "https://router.vuejs.org/data-loaders/colada.html"
1479
+ },
1480
+ VUE_ROUTER_R1007: {
1481
+ why: "Data Loader was setup twice.",
1482
+ fix: "Register `DataLoaderPlugin` a single time via `app.use()`.",
1483
+ docs: "https://router.vuejs.org/data-loaders.html#Installation"
1484
+ },
1485
+ VUE_ROUTER_R1008: {
1486
+ why: "Data Loader is experimental and subject to breaking changes in the future.",
1487
+ docs: "https://router.vuejs.org/data-loaders.html"
1488
+ },
1489
+ VUE_ROUTER_R1009: {
1490
+ why: "Returning a NavigationResult from a loader is deprecated.",
1491
+ fix: "Call `reroute(to)` inside the loader instead of returning `new NavigationResult(to)`; it throws internally to reroute.",
1492
+ docs: "https://router.vuejs.org/data-loaders/navigation-aware.html#Controlling-the-navigation-with-reroute-"
1493
+ }
1494
+ }
1495
+ });
1496
+ Symbol(process.env.NODE_ENV === "production" ? "" : "router view location matched"), Symbol(process.env.NODE_ENV === "production" ? "" : "router view depth");
1497
+ var Sn = Symbol(process.env.NODE_ENV === "production" ? "" : "router"), Cn = Symbol(process.env.NODE_ENV === "production" ? "" : "route location");
1498
+ Symbol(process.env.NODE_ENV === "production" ? "" : "router view location");
1499
+ function wn() {
1500
+ return d(Sn);
1501
+ }
1502
+ //#endregion
1503
+ //#region node_modules/.pnpm/vue-router@5.3.1_@vue+compiler-sfc@3.5.43_rolldown@1.2.10_vite@8.3.1_@types+node@26.6.3_jiti@_oc2u7t4yrghxv5ubum7mhewgqm/node_modules/vue-router/dist/devtools-CN5uWJaH.js
1504
+ var Tn = typeof document < "u";
1505
+ function En(e, t) {
1506
+ return (e.aliasOf || e) === (t.aliasOf || t);
1507
+ }
1508
+ function Dn(e, t) {
1509
+ if (Object.keys(e).length !== Object.keys(t).length) return !1;
1510
+ for (var n in e) if (!On(e[n], t[n])) return !1;
1511
+ return !0;
1512
+ }
1513
+ function On(e, t) {
1514
+ return vn(e) ? kn(e, t) : vn(t) ? kn(t, e) : (e && e.valueOf()) === (t && t.valueOf());
1515
+ }
1516
+ function kn(e, t) {
1517
+ return vn(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e.length === 1 && e[0] === t;
1518
+ }
1519
+ function An(e) {
1520
+ return typeof e == "string" || e && typeof e == "object";
1521
+ }
1522
+ //#endregion
1523
+ //#region node_modules/.pnpm/vue-router@5.3.1_@vue+compiler-sfc@3.5.43_rolldown@1.2.10_vite@8.3.1_@types+node@26.6.3_jiti@_oc2u7t4yrghxv5ubum7mhewgqm/node_modules/vue-router/dist/vue-router.js
1524
+ function jn(e) {
1525
+ let n = d(Sn), r = d(Cn), i = !1, a = null, o = t(() => {
1526
+ let t = P(e.to);
1527
+ return process.env.NODE_ENV !== "production" && (!i || t !== a) && (An(t) || xn.VUE_ROUTER_R0050({ to: t }), a = t, i = !0), n.resolve(t);
1528
+ }), s = t(() => {
1529
+ let { matched: e } = o.value, { length: t } = e, n = e[t - 1], i = r.matched;
1530
+ if (!n || !i.length) return -1;
1531
+ let a = i.findIndex(En.bind(null, n));
1532
+ if (a > -1) return a;
1533
+ let s = In(e[t - 2]);
1534
+ return t > 1 && In(n) === s && i[i.length - 1].path !== s ? i.findIndex(En.bind(null, e[t - 2])) : a;
1535
+ }), c = t(() => s.value > -1 && Fn(r.params, o.value.params)), u = t(() => s.value > -1 && s.value === r.matched.length - 1 && Dn(r.params, o.value.params));
1536
+ function f(t = {}) {
1537
+ if (Pn(t)) {
1538
+ let t = n[P(e.replace) ? "replace" : "push"](P(e.to)).catch(_n);
1539
+ return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => t), t;
1540
+ }
1541
+ return Promise.resolve();
1542
+ }
1543
+ if (process.env.NODE_ENV !== "production" && Tn) {
1544
+ let t = l();
1545
+ if (t) {
1546
+ let n = {
1547
+ route: o.value,
1548
+ isActive: c.value,
1549
+ isExactActive: u.value,
1550
+ error: null
1551
+ };
1552
+ t.__vrl_devtools = t.__vrl_devtools || [], t.__vrl_devtools.push(n), ie(() => {
1553
+ n.route = o.value, n.isActive = c.value, n.isExactActive = u.value, n.error = An(P(e.to)) ? null : "Invalid \"to\" value";
1554
+ }, { flush: "post" });
1555
+ }
1556
+ }
1557
+ return {
1558
+ route: o,
1559
+ href: t(() => o.value.href),
1560
+ isActive: c,
1561
+ isExactActive: u,
1562
+ navigate: f
1563
+ };
1564
+ }
1565
+ function Mn(e) {
1566
+ return e.length === 1 ? e[0] : e;
1567
+ }
1568
+ var Nn = /* @__PURE__ */ c({
1569
+ name: "RouterLink",
1570
+ compatConfig: { MODE: 3 },
1571
+ props: {
1572
+ to: {
1573
+ type: [String, Object],
1574
+ required: !0
1575
+ },
1576
+ replace: Boolean,
1577
+ activeClass: String,
1578
+ exactActiveClass: String,
1579
+ custom: Boolean,
1580
+ ariaCurrentValue: {
1581
+ type: String,
1582
+ default: "page"
1583
+ },
1584
+ viewTransition: Boolean
1585
+ },
1586
+ useLink: jn,
1587
+ setup(e, { slots: n }) {
1588
+ let r = S(jn(e)), { options: i } = d(Sn), a = t(() => ({
1589
+ [Ln(e.activeClass, i.linkActiveClass, "router-link-active")]: r.isActive,
1590
+ [Ln(e.exactActiveClass, i.linkExactActiveClass, "router-link-exact-active")]: r.isExactActive
1591
+ }));
1592
+ return () => {
1593
+ let t = n.default && Mn(n.default(r));
1594
+ return e.custom ? t : u("a", {
1595
+ "aria-current": r.isExactActive ? e.ariaCurrentValue : null,
1596
+ href: r.href,
1597
+ onClick: r.navigate,
1598
+ class: a.value
1599
+ }, t);
1600
+ };
1601
+ }
1602
+ });
1603
+ function Pn(e) {
1604
+ if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && (e.button === void 0 || e.button === 0)) {
1605
+ if (e.currentTarget && e.currentTarget.getAttribute) {
1606
+ let t = e.currentTarget.getAttribute("target");
1607
+ if (/\b_blank\b/i.test(t)) return;
1608
+ }
1609
+ return e.preventDefault && e.preventDefault(), !0;
1610
+ }
1611
+ }
1612
+ function Fn(e, t) {
1613
+ for (let n in t) {
1614
+ let r = t[n], i = e[n];
1615
+ if (vn(r)) {
1616
+ if (!vn(i) || i.length !== r.length || r.some((e, t) => e.valueOf() !== i[t].valueOf())) return !1;
1617
+ } else if (r !== i) return !1;
1618
+ }
1619
+ return !0;
1620
+ }
1621
+ function In(e) {
1622
+ return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
1623
+ }
1624
+ var Ln = (e, t, n) => e ?? t ?? n, Rn = {
1625
+ key: 0,
1626
+ "aria-label": "Breadcrumb",
1627
+ class: "breadcrumb"
1628
+ }, zn = /*#__PURE__*/ H(/* @__PURE__ */ c({
1629
+ __name: "AppBreadcrumb",
1630
+ props: { pages: {} },
1631
+ setup(t) {
1632
+ return (n, c) => t.pages.length ? (b(), i("nav", Rn, [a("ol", null, [(b(!0), i(e, null, T(t.pages, (e, n) => (b(), i("li", { key: e.title }, [s(P(Nn), {
1633
+ "aria-current": n === t.pages.length - 1 ? "page" : void 0,
1634
+ to: e.to
1635
+ }, {
1636
+ default: z(() => [o(k(e.title), 1)]),
1637
+ _: 2
1638
+ }, 1032, ["aria-current", "to"])]))), 128))])])) : r("", !0);
1639
+ }
1640
+ }), [["__scopeId", "data-v-4c0ff354"]]), Bn = ["id"], Vn = ["commandfor"], Hn = { class: "content" }, Un = /* @__PURE__ */ c({
1641
+ __name: "AppDialog",
1642
+ props: {
1643
+ id: {},
1644
+ title: {}
1645
+ },
1646
+ setup(e) {
1647
+ return (t, n) => (b(), i("dialog", {
1648
+ id: e.id,
1649
+ closedby: "any"
1650
+ }, [a("header", null, [a("h2", null, k(e.title), 1), a("button", {
1651
+ commandfor: e.id,
1652
+ command: "close",
1653
+ class: "btn-close"
1654
+ }, [s(P(Kt), { icon: "solar:close-circle-bold" })], 8, Vn)]), a("div", Hn, [E(t.$slots, "default")])], 8, Bn));
1655
+ }
1656
+ }), Wn = ["interestfor", "popovertarget"], Gn = ["id"], Kn = /*#__PURE__*/ H(/* @__PURE__ */ c({
1657
+ inheritAttrs: !1,
1658
+ __name: "AppPopover",
1659
+ setup(n) {
1660
+ F((e) => ({ d7cbed22: o.value }));
1661
+ let r = I(), o = t(() => `--${r}`);
1662
+ return (t, n) => (b(), i(e, null, [a("button", m({
1663
+ interestfor: P(r),
1664
+ popovertarget: P(r)
1665
+ }, t.$attrs), [E(t.$slots, "anchor", {}, void 0, !0)], 16, Wn), a("div", {
1666
+ id: P(r),
1667
+ popover: "hint"
1668
+ }, [E(t.$slots, "default", {}, void 0, !0)], 8, Gn)], 64));
1669
+ }
1670
+ }), [["__scopeId", "data-v-85d27891"]]), qn = /*#__PURE__*/ H(/* @__PURE__ */ c({
1671
+ __name: "ClickableWrapper",
1672
+ props: {
1673
+ to: {},
1674
+ tag: { default: "li" }
1675
+ },
1676
+ setup(e) {
1677
+ let t = e, r = w(null), i = wn(), a = (e) => {
1678
+ let t = e.target;
1679
+ t.nodeName.toUpperCase() === "A" || t.parentNode?.nodeName.toUpperCase() === "A" ? r.value = null : r.value = +/* @__PURE__ */ new Date();
1680
+ }, o = async () => {
1681
+ r.value && +/* @__PURE__ */ new Date() - r.value < 200 && await i.push(t.to);
1682
+ };
1683
+ return (t, r) => (b(), n(ee(e.tag), {
1684
+ class: "item",
1685
+ onMousedown: oe(a, ["left"]),
1686
+ onMouseup: oe(o, ["left"])
1687
+ }, {
1688
+ default: z(() => [E(t.$slots, "default", {}, void 0, !0)]),
1689
+ _: 3
1690
+ }, 32));
1691
+ }
1692
+ }), [["__scopeId", "data-v-3ec5080b"]]), Jn = ["open", "name"], Yn = /* @__PURE__ */ c({
1693
+ __name: "SummaryDetails",
1694
+ props: {
1695
+ title: {},
1696
+ open: { type: Boolean },
1697
+ name: {}
1698
+ },
1699
+ setup(e) {
1700
+ return (t, n) => (b(), i("details", {
1701
+ open: e.open,
1702
+ name: e.name
1703
+ }, [a("summary", null, k(e.title), 1), E(t.$slots, "default")], 8, Jn));
1704
+ }
1705
+ }), Xn = { "aria-live": "assertive" }, Zn = /*#__PURE__*/ H(/* @__PURE__ */ c({
1706
+ __name: "AppForm",
1707
+ props: {
1708
+ buttonTitle: {},
1709
+ successText: {},
1710
+ status: {},
1711
+ errors: {}
1712
+ },
1713
+ emits: ["submit-form"],
1714
+ setup(o, { emit: c }) {
1715
+ let l = o, u = c, d = t(() => Object.values(l.errors)), f = w(!1), p = () => {
1716
+ f.value = !0, u("submit-form");
1717
+ };
1718
+ return (t, c) => o.status === "success" ? (b(), n(Jt, {
1719
+ key: 0,
1720
+ title: o.successText,
1721
+ variant: "success"
1722
+ }, null, 8, ["title"])) : (b(), i("form", {
1723
+ key: 1,
1724
+ method: "post",
1725
+ novalidate: "",
1726
+ onSubmit: oe(p, ["prevent"])
1727
+ }, [
1728
+ E(t.$slots, "default", {}, void 0, !0),
1729
+ a("div", Xn, [d.value.length && f.value ? (b(), n(Jt, {
1730
+ key: 0,
1731
+ variant: "warning",
1732
+ title: "Het formulier is niet correct ingevuld"
1733
+ }, {
1734
+ default: z(() => [a("ul", null, [(b(!0), i(e, null, T(o.errors, (e) => (b(), i("li", { key: e }, k(e), 1))), 128))])]),
1735
+ _: 1
1736
+ })) : r("", !0)]),
1737
+ s(ce, {
1738
+ title: o.buttonTitle,
1739
+ type: "submit",
1740
+ disabled: o.status === "pending"
1741
+ }, null, 8, ["title", "disabled"])
1742
+ ], 32));
1743
+ }
1744
+ }), [["__scopeId", "data-v-33239efc"]]), Qn = { "aria-live": "assertive" }, $n = /*#__PURE__*/ H(/* @__PURE__ */ c({
1745
+ __name: "FormErrorMessage",
1746
+ props: { errorMessage: {} },
1747
+ setup(e) {
1748
+ return (t, n) => (b(), i("div", Qn, k(e.errorMessage), 1));
1749
+ }
1750
+ }), [["__scopeId", "data-v-ae376c89"]]), er = ["for"], tr = /*#__PURE__*/ H(/* @__PURE__ */ c({
1751
+ __name: "FormField",
1752
+ props: {
1753
+ id: {},
1754
+ title: {},
1755
+ errorMessage: {}
1756
+ },
1757
+ setup(e) {
1758
+ return (t, n) => (b(), i("div", null, [
1759
+ a("label", {
1760
+ for: e.id,
1761
+ class: "label"
1762
+ }, k(e.title), 9, er),
1763
+ E(t.$slots, "default", {}, void 0, !0),
1764
+ s($n, {
1765
+ "error-message": e.errorMessage,
1766
+ class: "error-message"
1767
+ }, null, 8, ["error-message"])
1768
+ ]));
1769
+ }
1770
+ }), [["__scopeId", "data-v-e97a8db9"]]);
1771
+ //#endregion
1772
+ //#region node_modules/.pnpm/vee-validate@4.15.1_vue@3.5.43_typescript@6.0.3_/node_modules/vee-validate/dist/vee-validate.mjs
1773
+ function G(e) {
1774
+ return typeof e == "function";
1775
+ }
1776
+ function nr(e) {
1777
+ return e == null;
1778
+ }
1779
+ var rr = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e);
1780
+ function ir(e) {
1781
+ return Number(e) >= 0;
1782
+ }
1783
+ function ar(e) {
1784
+ let t = parseFloat(e);
1785
+ return isNaN(t) ? e : t;
1786
+ }
1787
+ function or(e) {
1788
+ return typeof e == "object" && !!e;
1789
+ }
1790
+ function sr(e) {
1791
+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
1792
+ }
1793
+ function cr(e) {
1794
+ if (!or(e) || sr(e) !== "[object Object]") return !1;
1795
+ if (Object.getPrototypeOf(e) === null) return !0;
1796
+ let t = e;
1797
+ for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
1798
+ return Object.getPrototypeOf(e) === t;
1799
+ }
1800
+ function lr(e, t) {
1801
+ return Object.keys(t).forEach((n) => {
1802
+ if (cr(t[n]) && cr(e[n])) {
1803
+ e[n] || (e[n] = {}), lr(e[n], t[n]);
1804
+ return;
1805
+ }
1806
+ e[n] = t[n];
1807
+ }), e;
1808
+ }
1809
+ function ur(e) {
1810
+ let t = e.split(".");
1811
+ if (!t.length) return "";
1812
+ let n = String(t[0]);
1813
+ for (let e = 1; e < t.length; e++) {
1814
+ if (ir(t[e])) {
1815
+ n += `[${t[e]}]`;
1816
+ continue;
1817
+ }
1818
+ n += `.${t[e]}`;
1819
+ }
1820
+ return n;
1821
+ }
1822
+ var dr = {};
1823
+ function fr(e) {
1824
+ return dr[e];
1825
+ }
1826
+ function pr(e, t, n) {
1827
+ typeof n.value == "object" && (n.value = K(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || t === "__proto__" ? Object.defineProperty(e, t, n) : e[t] = n.value;
1828
+ }
1829
+ function K(e) {
1830
+ if (typeof e != "object") return e;
1831
+ var t = 0, n, r, i, a = Object.prototype.toString.call(e);
1832
+ if (a === "[object Object]" ? i = Object.create(e.__proto__ || null) : a === "[object Array]" ? i = Array(e.length) : a === "[object Set]" ? (i = /* @__PURE__ */ new Set(), e.forEach(function(e) {
1833
+ i.add(K(e));
1834
+ })) : a === "[object Map]" ? (i = /* @__PURE__ */ new Map(), e.forEach(function(e, t) {
1835
+ i.set(K(t), K(e));
1836
+ })) : a === "[object Date]" ? i = /* @__PURE__ */ new Date(+e) : a === "[object RegExp]" ? i = new RegExp(e.source, e.flags) : a === "[object DataView]" ? i = new e.constructor(K(e.buffer)) : a === "[object ArrayBuffer]" ? i = e.slice(0) : a.slice(-6) === "Array]" && (i = new e.constructor(e)), i) {
1837
+ for (r = Object.getOwnPropertySymbols(e); t < r.length; t++) pr(i, r[t], Object.getOwnPropertyDescriptor(e, r[t]));
1838
+ for (t = 0, r = Object.getOwnPropertyNames(e); t < r.length; t++) Object.hasOwnProperty.call(i, n = r[t]) && i[n] === e[n] || pr(i, n, Object.getOwnPropertyDescriptor(e, n));
1839
+ }
1840
+ return i || e;
1841
+ }
1842
+ var mr = Symbol("vee-validate-form"), hr = Symbol("vee-validate-form-context"), gr = Symbol("vee-validate-field-instance"), _r = Symbol("Default empty value"), vr = typeof window < "u";
1843
+ function yr(e) {
1844
+ return G(e) && !!e.__locatorRef;
1845
+ }
1846
+ function q(e) {
1847
+ return !!e && G(e.parse) && e.__type === "VVTypedSchema";
1848
+ }
1849
+ function br(e) {
1850
+ return !!e && G(e.validate);
1851
+ }
1852
+ function xr(e) {
1853
+ return e === "checkbox" || e === "radio";
1854
+ }
1855
+ function Sr(e) {
1856
+ return rr(e) || Array.isArray(e);
1857
+ }
1858
+ function Cr(e) {
1859
+ return Array.isArray(e) ? e.length === 0 : rr(e) && Object.keys(e).length === 0;
1860
+ }
1861
+ function wr(e) {
1862
+ return /^\[.+\]$/i.test(e);
1863
+ }
1864
+ function Tr(e) {
1865
+ return Er(e) && e.multiple;
1866
+ }
1867
+ function Er(e) {
1868
+ return e.tagName === "SELECT";
1869
+ }
1870
+ function Dr(e, t) {
1871
+ let n = ![
1872
+ !1,
1873
+ null,
1874
+ void 0,
1875
+ 0
1876
+ ].includes(t.multiple) && !Number.isNaN(t.multiple);
1877
+ return e === "select" && "multiple" in t && n;
1878
+ }
1879
+ function Or(e, t) {
1880
+ return !Dr(e, t) && t.type !== "file" && !xr(t.type);
1881
+ }
1882
+ function kr(e) {
1883
+ return Ar(e) && e.target && "submit" in e.target;
1884
+ }
1885
+ function Ar(e) {
1886
+ return e ?
1887
+ /* istanbul ignore next */
1888
+ !!(typeof Event < "u" && G(Event) && e instanceof Event || e && e.srcElement) : !1;
1889
+ }
1890
+ function jr(e, t) {
1891
+ return t in e && e[t] !== _r;
1892
+ }
1893
+ function J(e, t) {
1894
+ if (e === t) return !0;
1895
+ if (e && t && typeof e == "object" && typeof t == "object") {
1896
+ if (e.constructor !== t.constructor) return !1;
1897
+ var n, r, i;
1898
+ if (Array.isArray(e)) {
1899
+ if (n = e.length, n != t.length) return !1;
1900
+ for (r = n; r-- !== 0;) if (!J(e[r], t[r])) return !1;
1901
+ return !0;
1902
+ }
1903
+ if (e instanceof Map && t instanceof Map) {
1904
+ if (e.size !== t.size) return !1;
1905
+ for (r of e.entries()) if (!t.has(r[0])) return !1;
1906
+ for (r of e.entries()) if (!J(r[1], t.get(r[0]))) return !1;
1907
+ return !0;
1908
+ }
1909
+ if (Nr(e) && Nr(t)) return e.size === t.size && e.name === t.name && e.lastModified === t.lastModified && e.type === t.type;
1910
+ if (e instanceof Set && t instanceof Set) {
1911
+ if (e.size !== t.size) return !1;
1912
+ for (r of e.entries()) if (!t.has(r[0])) return !1;
1913
+ return !0;
1914
+ }
1915
+ if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
1916
+ if (n = e.length, n != t.length) return !1;
1917
+ for (r = n; r-- !== 0;) if (e[r] !== t[r]) return !1;
1918
+ return !0;
1919
+ }
1920
+ if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
1921
+ if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === t.valueOf();
1922
+ if (e.toString !== Object.prototype.toString) return e.toString() === t.toString();
1923
+ if (e = Mr(e), t = Mr(t), i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
1924
+ for (r = n; r-- !== 0;) if (!Object.prototype.hasOwnProperty.call(t, i[r])) return !1;
1925
+ for (r = n; r-- !== 0;) {
1926
+ var a = i[r];
1927
+ if (!J(e[a], t[a])) return !1;
1928
+ }
1929
+ return !0;
1930
+ }
1931
+ return e !== e && t !== t;
1932
+ }
1933
+ function Mr(e) {
1934
+ return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0));
1935
+ }
1936
+ function Nr(e) {
1937
+ return vr ? e instanceof File : !1;
1938
+ }
1939
+ function Pr(e) {
1940
+ return wr(e) ? e.replace(/\[|\]/gi, "") : e;
1941
+ }
1942
+ function Y(e, t, n) {
1943
+ return e ? wr(t) ? e[Pr(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((e, t) => Sr(e) && t in e ? e[t] : n, e) : n;
1944
+ }
1945
+ function X(e, t, n) {
1946
+ if (wr(t)) {
1947
+ e[Pr(t)] = n;
1948
+ return;
1949
+ }
1950
+ let r = t.split(/\.|\[(\d+)\]/).filter(Boolean), i = e;
1951
+ for (let e = 0; e < r.length; e++) {
1952
+ if (e === r.length - 1) {
1953
+ i[r[e]] = n;
1954
+ return;
1955
+ }
1956
+ (!(r[e] in i) || nr(i[r[e]])) && (i[r[e]] = ir(r[e + 1]) ? [] : {}), i = i[r[e]];
1957
+ }
1958
+ }
1959
+ function Fr(e, t) {
1960
+ if (Array.isArray(e) && ir(t)) {
1961
+ e.splice(Number(t), 1);
1962
+ return;
1963
+ }
1964
+ rr(e) && delete e[t];
1965
+ }
1966
+ function Ir(e, t) {
1967
+ if (wr(t)) {
1968
+ delete e[Pr(t)];
1969
+ return;
1970
+ }
1971
+ let n = t.split(/\.|\[(\d+)\]/).filter(Boolean), r = e;
1972
+ for (let e = 0; e < n.length; e++) {
1973
+ if (e === n.length - 1) {
1974
+ Fr(r, n[e]);
1975
+ break;
1976
+ }
1977
+ if (!(n[e] in r) || nr(r[n[e]])) break;
1978
+ r = r[n[e]];
1979
+ }
1980
+ let i = n.map((t, r) => Y(e, n.slice(0, r).join(".")));
1981
+ for (let t = i.length - 1; t >= 0; t--) if (Cr(i[t])) {
1982
+ if (t === 0) {
1983
+ Fr(e, n[0]);
1984
+ continue;
1985
+ }
1986
+ Fr(i[t - 1], n[t - 1]);
1987
+ }
1988
+ }
1989
+ function Z(e) {
1990
+ return Object.keys(e);
1991
+ }
1992
+ function Lr(e, t = void 0) {
1993
+ return l()?.provides[e] || d(e, t);
1994
+ }
1995
+ function Rr(e) {
1996
+ re(`[vee-validate]: ${e}`);
1997
+ }
1998
+ function zr(e, t, n) {
1999
+ if (Array.isArray(e)) {
2000
+ let n = [...e], r = n.findIndex((e) => J(e, t));
2001
+ return r >= 0 ? n.splice(r, 1) : n.push(t), n;
2002
+ }
2003
+ return J(e, t) ? n : t;
2004
+ }
2005
+ function Br(e, t) {
2006
+ let n, r;
2007
+ return function(...i) {
2008
+ let a = this;
2009
+ return n || (n = !0, setTimeout(() => n = !1, t), r = e.apply(a, i)), r;
2010
+ };
2011
+ }
2012
+ function Vr(e, t = 0) {
2013
+ let n = null, r = [];
2014
+ return function(...i) {
2015
+ return n && clearTimeout(n), n = setTimeout(() => {
2016
+ let t = e(...i);
2017
+ r.forEach((e) => e(t)), r = [];
2018
+ }, t), new Promise((e) => r.push(e));
2019
+ };
2020
+ }
2021
+ function Hr(e, t) {
2022
+ return rr(t) && t.number ? ar(e) : e;
2023
+ }
2024
+ function Ur(e, t) {
2025
+ let n;
2026
+ return async function(...r) {
2027
+ let i = e(...r);
2028
+ n = i;
2029
+ let a = await i;
2030
+ return i === n ? (n = void 0, t(a, r)) : a;
2031
+ };
2032
+ }
2033
+ function Wr({ get: e, set: t }) {
2034
+ let n = w(K(e()));
2035
+ return R(e, (e) => {
2036
+ J(e, n.value) || (n.value = K(e));
2037
+ }, { deep: !0 }), R(n, (n) => {
2038
+ J(n, e()) || t(K(n));
2039
+ }, { deep: !0 }), n;
2040
+ }
2041
+ function Gr(e) {
2042
+ return Array.isArray(e) ? e : e ? [e] : [];
2043
+ }
2044
+ function Kr(e, t) {
2045
+ let n = {};
2046
+ for (let r in e) t.includes(r) || (n[r] = e[r]);
2047
+ return n;
2048
+ }
2049
+ function qr(e) {
2050
+ let t = null, n = [];
2051
+ return function(...r) {
2052
+ let i = h(() => {
2053
+ if (t !== i) return;
2054
+ let a = e(...r);
2055
+ n.forEach((e) => e(a)), n = [], t = null;
2056
+ });
2057
+ return t = i, new Promise((e) => n.push(e));
2058
+ };
2059
+ }
2060
+ function Jr(e, t, n) {
2061
+ return t.slots.default ? typeof e == "string" || !e ? t.slots.default(n()) : { default: () => {
2062
+ var e;
2063
+ return (e = t.slots).default?.call(e, n());
2064
+ } } : t.slots.default;
2065
+ }
2066
+ function Yr(e) {
2067
+ if (Xr(e)) return e._value;
2068
+ }
2069
+ function Xr(e) {
2070
+ return "_value" in e;
2071
+ }
2072
+ function Zr(e) {
2073
+ return e.type === "number" || e.type === "range" ? Number.isNaN(e.valueAsNumber) ? e.value : e.valueAsNumber : e.value;
2074
+ }
2075
+ function Qr(e) {
2076
+ if (!Ar(e)) return e;
2077
+ let t = e.target;
2078
+ if (xr(t.type) && Xr(t)) return Yr(t);
2079
+ if (t.type === "file" && t.files) {
2080
+ let e = Array.from(t.files);
2081
+ return t.multiple ? e : e[0];
2082
+ }
2083
+ if (Tr(t)) return Array.from(t.options).filter((e) => e.selected && !e.disabled).map(Yr);
2084
+ if (Er(t)) {
2085
+ let e = Array.from(t.options).find((e) => e.selected);
2086
+ return e ? Yr(e) : t.value;
2087
+ }
2088
+ return Zr(t);
2089
+ }
2090
+ function $r(e) {
2091
+ let t = {};
2092
+ return Object.defineProperty(t, "_$$isNormalized", {
2093
+ value: !0,
2094
+ writable: !1,
2095
+ enumerable: !1,
2096
+ configurable: !1
2097
+ }), e ? rr(e) && e._$$isNormalized ? e : rr(e) ? Object.keys(e).reduce((t, n) => {
2098
+ let r = ei(e[n]);
2099
+ return e[n] !== !1 && (t[n] = ti(r)), t;
2100
+ }, t) :
2101
+ /* istanbul ignore if */
2102
+ typeof e == "string" ? e.split("|").reduce((e, t) => {
2103
+ let n = ni(t);
2104
+ return n.name && (e[n.name] = ti(n.params)), e;
2105
+ }, t) : t : t;
2106
+ }
2107
+ function ei(e) {
2108
+ return e === !0 ? [] : Array.isArray(e) || rr(e) ? e : [e];
2109
+ }
2110
+ function ti(e) {
2111
+ let t = (e) => typeof e == "string" && e[0] === "@" ? ri(e.slice(1)) : e;
2112
+ return Array.isArray(e) ? e.map(t) : e instanceof RegExp ? [e] : Object.keys(e).reduce((n, r) => (n[r] = t(e[r]), n), {});
2113
+ }
2114
+ var ni = (e) => {
2115
+ let t = [], n = e.split(":")[0];
2116
+ return e.includes(":") && (t = e.split(":").slice(1).join(":").split(",")), {
2117
+ name: n,
2118
+ params: t
2119
+ };
2120
+ };
2121
+ function ri(e) {
2122
+ let t = (t) => Y(t, e) ?? t[e];
2123
+ return t.__locatorRef = e, t;
2124
+ }
2125
+ function ii(e) {
2126
+ return Array.isArray(e) ? e.filter(yr) : Z(e).filter((t) => yr(e[t])).map((t) => e[t]);
2127
+ }
2128
+ var ai = Object.assign({}, {
2129
+ generateMessage: ({ field: e }) => `${e} is not valid.`,
2130
+ bails: !0,
2131
+ validateOnBlur: !0,
2132
+ validateOnChange: !0,
2133
+ validateOnInput: !1,
2134
+ validateOnModelUpdate: !0
2135
+ }), oi = () => ai;
2136
+ async function si(e, t, n = {}) {
2137
+ let r = n?.bails, i = await ci({
2138
+ name: n?.name || "{field}",
2139
+ rules: t,
2140
+ label: n?.label,
2141
+ bails: r ?? !0,
2142
+ formData: n?.values || {}
2143
+ }, e);
2144
+ return Object.assign(Object.assign({}, i), { valid: !i.errors.length });
2145
+ }
2146
+ async function ci(e, t) {
2147
+ let n = e.rules;
2148
+ if (q(n) || br(n)) return di(t, Object.assign(Object.assign({}, e), { rules: n }));
2149
+ if (G(n) || Array.isArray(n)) {
2150
+ let r = {
2151
+ field: e.label || e.name,
2152
+ name: e.name,
2153
+ label: e.label,
2154
+ form: e.formData,
2155
+ value: t
2156
+ }, i = Array.isArray(n) ? n : [n], a = i.length, o = [];
2157
+ for (let n = 0; n < a; n++) {
2158
+ let a = i[n], s = await a(t, r);
2159
+ if (typeof s == "string" || Array.isArray(s) || !s) {
2160
+ if (Array.isArray(s)) o.push(...s);
2161
+ else {
2162
+ let e = typeof s == "string" ? s : pi(r);
2163
+ o.push(e);
2164
+ }
2165
+ if (e.bails) return { errors: o };
2166
+ }
2167
+ }
2168
+ return { errors: o };
2169
+ }
2170
+ let r = Object.assign(Object.assign({}, e), { rules: $r(n) }), i = [], a = Object.keys(r.rules), o = a.length;
2171
+ for (let n = 0; n < o; n++) {
2172
+ let o = a[n], s = await fi(r, t, {
2173
+ name: o,
2174
+ params: r.rules[o]
2175
+ });
2176
+ if (s.error && (i.push(s.error), e.bails)) return { errors: i };
2177
+ }
2178
+ return { errors: i };
2179
+ }
2180
+ function li(e) {
2181
+ return !!e && e.name === "ValidationError";
2182
+ }
2183
+ function ui(e) {
2184
+ return {
2185
+ __type: "VVTypedSchema",
2186
+ async parse(t, n) {
2187
+ try {
2188
+ return {
2189
+ output: await e.validate(t, {
2190
+ abortEarly: !1,
2191
+ context: n?.formData || {}
2192
+ }),
2193
+ errors: []
2194
+ };
2195
+ } catch (e) {
2196
+ if (!li(e)) throw e;
2197
+ if (!e.inner?.length && e.errors.length) return { errors: [{
2198
+ path: e.path,
2199
+ errors: e.errors
2200
+ }] };
2201
+ let t = e.inner.reduce((e, t) => {
2202
+ let n = t.path || "";
2203
+ return e[n] || (e[n] = {
2204
+ errors: [],
2205
+ path: n
2206
+ }), e[n].errors.push(...t.errors), e;
2207
+ }, {});
2208
+ return { errors: Object.values(t) };
2209
+ }
2210
+ }
2211
+ };
2212
+ }
2213
+ async function di(e, t) {
2214
+ let n = await (q(t.rules) ? t.rules : ui(t.rules)).parse(e, { formData: t.formData }), r = [];
2215
+ for (let e of n.errors) e.errors.length && r.push(...e.errors);
2216
+ return {
2217
+ value: n.value,
2218
+ errors: r
2219
+ };
2220
+ }
2221
+ async function fi(e, t, n) {
2222
+ let r = fr(n.name);
2223
+ if (!r) throw Error(`No such validator '${n.name}' exists.`);
2224
+ let i = mi(n.params, e.formData), a = {
2225
+ field: e.label || e.name,
2226
+ name: e.name,
2227
+ label: e.label,
2228
+ value: t,
2229
+ form: e.formData,
2230
+ rule: Object.assign(Object.assign({}, n), { params: i })
2231
+ }, o = await r(t, i, a);
2232
+ return typeof o == "string" ? { error: o } : { error: o ? void 0 : pi(a) };
2233
+ }
2234
+ function pi(e) {
2235
+ let t = oi().generateMessage;
2236
+ return t ? t(e) : "Field is invalid";
2237
+ }
2238
+ function mi(e, t) {
2239
+ let n = (e) => yr(e) ? e(t) : e;
2240
+ return Array.isArray(e) ? e.map(n) : Object.keys(e).reduce((t, r) => (t[r] = n(e[r]), t), {});
2241
+ }
2242
+ async function hi(e, t) {
2243
+ let n = await (q(e) ? e : ui(e)).parse(K(t), { formData: K(t) }), r = {}, i = {};
2244
+ for (let e of n.errors) {
2245
+ let t = e.errors, n = (e.path || "").replace(/\["(\d+)"\]/g, (e, t) => `[${t}]`);
2246
+ r[n] = {
2247
+ valid: !t.length,
2248
+ errors: t
2249
+ }, t.length && (i[n] = t[0]);
2250
+ }
2251
+ return {
2252
+ valid: !n.errors.length,
2253
+ results: r,
2254
+ errors: i,
2255
+ values: n.value,
2256
+ source: "schema"
2257
+ };
2258
+ }
2259
+ async function gi(e, t, n) {
2260
+ let r = Z(e).map(async (r) => {
2261
+ let i = n?.names?.[r], a = await si(Y(t, r), e[r], {
2262
+ name: i?.name || r,
2263
+ label: i?.label,
2264
+ values: t,
2265
+ bails: n?.bailsMap?.[r] ?? !0
2266
+ });
2267
+ return Object.assign(Object.assign({}, a), { path: r });
2268
+ }), i = !0, a = await Promise.all(r), o = {}, s = {};
2269
+ for (let e of a) o[e.path] = {
2270
+ valid: e.valid,
2271
+ errors: e.errors
2272
+ }, e.valid || (i = !1, s[e.path] = e.errors[0]);
2273
+ return {
2274
+ valid: i,
2275
+ results: o,
2276
+ errors: s,
2277
+ source: "schema"
2278
+ };
2279
+ }
2280
+ var _i = 0;
2281
+ function vi(e, n) {
2282
+ let { value: r, initialValue: i, setInitialValue: a } = yi(e, n.modelValue, n.form);
2283
+ if (!n.form) {
2284
+ let { errors: t, setErrors: o } = Si(), s = _i >= 2 ** 53 - 1 ? 0 : ++_i, c = xi(r, i, t, n.schema);
2285
+ function l(e) {
2286
+ "value" in e && (r.value = e.value), "errors" in e && o(e.errors), "touched" in e && (c.touched = e.touched ?? c.touched), "initialValue" in e && a(e.initialValue);
2287
+ }
2288
+ return {
2289
+ id: s,
2290
+ path: e,
2291
+ value: r,
2292
+ initialValue: i,
2293
+ meta: c,
2294
+ flags: {
2295
+ pendingUnmount: { [s]: !1 },
2296
+ pendingReset: !1
2297
+ },
2298
+ errors: t,
2299
+ setState: l
2300
+ };
2301
+ }
2302
+ let o = n.form.createPathState(e, {
2303
+ bails: n.bails,
2304
+ label: n.label,
2305
+ type: n.type,
2306
+ validate: n.validate,
2307
+ schema: n.schema
2308
+ }), s = t(() => o.errors);
2309
+ function c(t) {
2310
+ var i, o;
2311
+ "value" in t && (r.value = t.value), "errors" in t && ((i = n.form) == null || i.setFieldError(P(e), t.errors)), "touched" in t && ((o = n.form) == null || o.setFieldTouched(P(e), t.touched ?? !1)), "initialValue" in t && a(t.initialValue);
2312
+ }
2313
+ return {
2314
+ id: Array.isArray(o.id) ? o.id[o.id.length - 1] : o.id,
2315
+ path: e,
2316
+ value: r,
2317
+ errors: s,
2318
+ meta: o,
2319
+ initialValue: i,
2320
+ flags: o.__flags,
2321
+ setState: c
2322
+ };
2323
+ }
2324
+ function yi(e, n, r) {
2325
+ let i = w(P(n));
2326
+ function a() {
2327
+ return r ? Y(r.initialValues.value, P(e), P(i)) : P(i);
2328
+ }
2329
+ function o(t) {
2330
+ if (!r) {
2331
+ i.value = t;
2332
+ return;
2333
+ }
2334
+ r.setFieldInitialValue(P(e), t, !0);
2335
+ }
2336
+ let s = t(a);
2337
+ if (!r) return {
2338
+ value: w(a()),
2339
+ initialValue: s,
2340
+ setInitialValue: o
2341
+ };
2342
+ let c = bi(n, r, s, e);
2343
+ return r.stageInitialValue(P(e), c, !0), {
2344
+ value: t({
2345
+ get() {
2346
+ return Y(r.values, P(e));
2347
+ },
2348
+ set(t) {
2349
+ r.setFieldValue(P(e), t, !1);
2350
+ }
2351
+ }),
2352
+ initialValue: s,
2353
+ setInitialValue: o
2354
+ };
2355
+ }
2356
+ function bi(e, t, n, r) {
2357
+ return f(e) ? P(e) : e === void 0 ? Y(t.values, P(r), P(n)) : e;
2358
+ }
2359
+ function xi(e, n, r, i) {
2360
+ let a = t(() => {
2361
+ var e;
2362
+ return ((e = N(i))?.describe)?.call(e).required ?? !1;
2363
+ }), o = S({
2364
+ touched: !1,
2365
+ pending: !1,
2366
+ valid: !0,
2367
+ required: a,
2368
+ validated: !!P(r).length,
2369
+ initialValue: t(() => P(n)),
2370
+ dirty: t(() => !J(P(e), P(n)))
2371
+ });
2372
+ return R(r, (e) => {
2373
+ o.valid = !e.length;
2374
+ }, {
2375
+ immediate: !0,
2376
+ flush: "sync"
2377
+ }), o;
2378
+ }
2379
+ function Si() {
2380
+ let e = w([]);
2381
+ return {
2382
+ errors: e,
2383
+ setErrors: (t) => {
2384
+ e.value = Gr(t);
2385
+ }
2386
+ };
2387
+ }
2388
+ var Ci = {}, wi = {}, Ti = "vee-validate-inspector", Q = {
2389
+ error: 12405579,
2390
+ success: 448379,
2391
+ unknown: 5522283,
2392
+ white: 16777215,
2393
+ black: 0,
2394
+ blue: 218007,
2395
+ purple: 12157168,
2396
+ orange: 16099682,
2397
+ gray: 12304330
2398
+ }, $ = null, Ei;
2399
+ async function Di(e) {
2400
+ if (process.env.NODE_ENV !== "production") {
2401
+ if (!vr) return;
2402
+ (await import("./dist-C8cpIyO1.js")).setupDevtoolsPlugin({
2403
+ id: "vee-validate-devtools-plugin",
2404
+ label: "VeeValidate Plugin",
2405
+ packageName: "vee-validate",
2406
+ homepage: "https://vee-validate.logaretm.com/v4",
2407
+ app: e,
2408
+ logo: "https://vee-validate.logaretm.com/v4/logo.png"
2409
+ }, (e) => {
2410
+ Ei = e, e.addInspector({
2411
+ id: Ti,
2412
+ icon: "rule",
2413
+ label: "vee-validate",
2414
+ noSelectionText: "Select a vee-validate node to inspect",
2415
+ actions: [{
2416
+ icon: "done_outline",
2417
+ tooltip: "Validate selected item",
2418
+ action: async () => {
2419
+ if (!$) {
2420
+ console.error("There is not a valid selected vee-validate node or component");
2421
+ return;
2422
+ }
2423
+ if ($.type === "field") {
2424
+ await $.field.validate();
2425
+ return;
2426
+ }
2427
+ if ($.type === "form") {
2428
+ await $.form.validate();
2429
+ return;
2430
+ }
2431
+ $.type === "pathState" && await $.form.validateField($.state.path);
2432
+ }
2433
+ }, {
2434
+ icon: "delete_sweep",
2435
+ tooltip: "Clear validation state of the selected item",
2436
+ action: () => {
2437
+ if (!$) {
2438
+ console.error("There is not a valid selected vee-validate node or component");
2439
+ return;
2440
+ }
2441
+ if ($.type === "field") {
2442
+ $.field.resetField();
2443
+ return;
2444
+ }
2445
+ $.type === "form" && $.form.resetForm(), $.type === "pathState" && $.form.resetField($.state.path);
2446
+ }
2447
+ }]
2448
+ }), e.on.getInspectorTree((e) => {
2449
+ if (e.inspectorId !== Ti) return;
2450
+ let t = Object.values(Ci), n = Object.values(wi);
2451
+ e.rootNodes = [...t.map(ji), ...n.map((e) => Ni(e))];
2452
+ }), e.on.getInspectorState((t) => {
2453
+ if (t.inspectorId !== Ti) return;
2454
+ let { form: n, field: r, state: i, type: a } = Ii(t.nodeId);
2455
+ if (e.unhighlightElement(), n && a === "form") {
2456
+ t.state = Ri(n), $ = {
2457
+ type: "form",
2458
+ form: n
2459
+ }, e.highlightElement(n._vm);
2460
+ return;
2461
+ }
2462
+ if (i && a === "pathState" && n) {
2463
+ t.state = Li(i), $ = {
2464
+ type: "pathState",
2465
+ state: i,
2466
+ form: n
2467
+ };
2468
+ return;
2469
+ }
2470
+ if (r && a === "field") {
2471
+ t.state = Li({
2472
+ errors: r.errors.value,
2473
+ dirty: r.meta.dirty,
2474
+ valid: r.meta.valid,
2475
+ touched: r.meta.touched,
2476
+ value: r.value.value,
2477
+ initialValue: r.meta.initialValue
2478
+ }), $ = {
2479
+ field: r,
2480
+ type: "field"
2481
+ }, e.highlightElement(r._vm);
2482
+ return;
2483
+ }
2484
+ $ = null, e.unhighlightElement();
2485
+ });
2486
+ });
2487
+ }
2488
+ }
2489
+ var Oi = Br(() => {
2490
+ setTimeout(async () => {
2491
+ await h(), Ei?.sendInspectorState(Ti), Ei?.sendInspectorTree(Ti);
2492
+ }, 100);
2493
+ }, 100);
2494
+ function ki(e) {
2495
+ let t = l();
2496
+ if (!Ei) {
2497
+ let e = t?.appContext.app;
2498
+ if (!e) return;
2499
+ Di(e);
2500
+ }
2501
+ Ci[e.formId] = Object.assign({}, e), Ci[e.formId]._vm = t, y(() => {
2502
+ delete Ci[e.formId], Oi();
2503
+ }), Oi();
2504
+ }
2505
+ function Ai(e) {
2506
+ let t = l();
2507
+ if (!Ei) {
2508
+ let e = t?.appContext.app;
2509
+ if (!e) return;
2510
+ Di(e);
2511
+ }
2512
+ wi[e.id] = Object.assign({}, e), wi[e.id]._vm = t, y(() => {
2513
+ delete wi[e.id], Oi();
2514
+ }), Oi();
2515
+ }
2516
+ function ji(e) {
2517
+ let { textColor: t, bgColor: n } = zi(e.meta.value.valid), r = {};
2518
+ Object.values(e.getAllPathStates()).forEach((t) => {
2519
+ X(r, N(t.path), Mi(t, e));
2520
+ });
2521
+ function i(e, t = []) {
2522
+ let n = [...t].pop();
2523
+ return "id" in e ? Object.assign(Object.assign({}, e), { label: n || e.label }) : rr(e) ? {
2524
+ id: `${t.join(".")}`,
2525
+ label: n || "",
2526
+ children: Object.keys(e).map((n) => i(e[n], [...t, n]))
2527
+ } : Array.isArray(e) ? {
2528
+ id: `${t.join(".")}`,
2529
+ label: `${n}[]`,
2530
+ children: e.map((e, n) => i(e, [...t, String(n)]))
2531
+ } : {
2532
+ id: "",
2533
+ label: "",
2534
+ children: []
2535
+ };
2536
+ }
2537
+ let { children: a } = i(r);
2538
+ return {
2539
+ id: Fi(e),
2540
+ label: e.name,
2541
+ children: a,
2542
+ tags: [{
2543
+ label: "Form",
2544
+ textColor: t,
2545
+ backgroundColor: n
2546
+ }, {
2547
+ label: `${e.getAllPathStates().length} fields`,
2548
+ textColor: Q.white,
2549
+ backgroundColor: Q.unknown
2550
+ }]
2551
+ };
2552
+ }
2553
+ function Mi(e, t) {
2554
+ return {
2555
+ id: Fi(t, e),
2556
+ label: N(e.path),
2557
+ tags: Pi(e.multiple, e.fieldsCount, e.type, e.valid, t)
2558
+ };
2559
+ }
2560
+ function Ni(e, t) {
2561
+ return {
2562
+ id: Fi(t, e),
2563
+ label: P(e.name),
2564
+ tags: Pi(!1, 1, e.type, e.meta.valid, t)
2565
+ };
2566
+ }
2567
+ function Pi(e, t, n, r, i) {
2568
+ let { textColor: a, bgColor: o } = zi(r);
2569
+ return [
2570
+ e ? void 0 : {
2571
+ label: "Field",
2572
+ textColor: a,
2573
+ backgroundColor: o
2574
+ },
2575
+ i ? void 0 : {
2576
+ label: "Standalone",
2577
+ textColor: Q.black,
2578
+ backgroundColor: Q.gray
2579
+ },
2580
+ n === "checkbox" ? {
2581
+ label: "Checkbox",
2582
+ textColor: Q.white,
2583
+ backgroundColor: Q.blue
2584
+ } : void 0,
2585
+ n === "radio" ? {
2586
+ label: "Radio",
2587
+ textColor: Q.white,
2588
+ backgroundColor: Q.purple
2589
+ } : void 0,
2590
+ e ? {
2591
+ label: "Multiple",
2592
+ textColor: Q.black,
2593
+ backgroundColor: Q.orange
2594
+ } : void 0
2595
+ ].filter(Boolean);
2596
+ }
2597
+ function Fi(e, t) {
2598
+ let n = t ? "path" in t ? "pathState" : "field" : "form", r = t ? "path" in t ? t?.path : N(t?.name) : "", i = {
2599
+ f: e?.formId,
2600
+ ff: t?.id || r,
2601
+ type: n
2602
+ };
2603
+ return btoa(encodeURIComponent(JSON.stringify(i)));
2604
+ }
2605
+ function Ii(e) {
2606
+ try {
2607
+ let t = JSON.parse(decodeURIComponent(atob(e))), n = Ci[t.f];
2608
+ if (!n && t.ff) {
2609
+ let e = wi[t.ff];
2610
+ return e ? {
2611
+ type: t.type,
2612
+ field: e
2613
+ } : {};
2614
+ }
2615
+ if (!n) return {};
2616
+ let r = n.getPathState(t.ff);
2617
+ return {
2618
+ type: t.type,
2619
+ form: n,
2620
+ state: r
2621
+ };
2622
+ } catch {}
2623
+ return {};
2624
+ }
2625
+ function Li(e) {
2626
+ return { "Field state": [
2627
+ {
2628
+ key: "errors",
2629
+ value: e.errors
2630
+ },
2631
+ {
2632
+ key: "initialValue",
2633
+ value: e.initialValue
2634
+ },
2635
+ {
2636
+ key: "currentValue",
2637
+ value: e.value
2638
+ },
2639
+ {
2640
+ key: "touched",
2641
+ value: e.touched
2642
+ },
2643
+ {
2644
+ key: "dirty",
2645
+ value: e.dirty
2646
+ },
2647
+ {
2648
+ key: "valid",
2649
+ value: e.valid
2650
+ }
2651
+ ] };
2652
+ }
2653
+ function Ri(e) {
2654
+ let { errorBag: t, meta: n, values: r, isSubmitting: i, isValidating: a, submitCount: o } = e;
2655
+ return { "Form state": [
2656
+ {
2657
+ key: "submitCount",
2658
+ value: o.value
2659
+ },
2660
+ {
2661
+ key: "isSubmitting",
2662
+ value: i.value
2663
+ },
2664
+ {
2665
+ key: "isValidating",
2666
+ value: a.value
2667
+ },
2668
+ {
2669
+ key: "touched",
2670
+ value: n.value.touched
2671
+ },
2672
+ {
2673
+ key: "dirty",
2674
+ value: n.value.dirty
2675
+ },
2676
+ {
2677
+ key: "valid",
2678
+ value: n.value.valid
2679
+ },
2680
+ {
2681
+ key: "initialValues",
2682
+ value: n.value.initialValues
2683
+ },
2684
+ {
2685
+ key: "currentValues",
2686
+ value: r
2687
+ },
2688
+ {
2689
+ key: "errors",
2690
+ value: Z(t.value).reduce((e, n) => {
2691
+ let r = t.value[n]?.[0];
2692
+ return r && (e[n] = r), e;
2693
+ }, {})
2694
+ }
2695
+ ] };
2696
+ }
2697
+ function zi(e) {
2698
+ return {
2699
+ bgColor: e ? Q.success : Q.error,
2700
+ textColor: e ? Q.black : Q.white
2701
+ };
2702
+ }
2703
+ function Bi(e, t, n) {
2704
+ return xr(n?.type) ? Ui(e, t, n) : Vi(e, t, n);
2705
+ }
2706
+ function Vi(e, n, r) {
2707
+ let { initialValue: i, validateOnMount: a, bails: o, type: s, checkedValue: c, label: u, validateOnValueUpdate: d, uncheckedValue: p, controlled: m, keepValueOnUnmount: h, syncVModel: g, form: y } = Hi(r), b = m ? Lr(mr) : void 0, S = y || b, C = t(() => ur(N(e))), w = t(() => {
2708
+ if (N(S?.schema)) return;
2709
+ let e = P(n);
2710
+ return br(e) || q(e) || G(e) || Array.isArray(e) ? e : $r(e);
2711
+ }), T = !G(w.value) && q(N(n)), { id: E, value: D, initialValue: ee, meta: O, setState: k, errors: A, flags: j } = vi(C, {
2712
+ modelValue: i,
2713
+ form: S,
2714
+ bails: o,
2715
+ label: u,
2716
+ type: s,
2717
+ validate: w.value ? ne : void 0,
2718
+ schema: T ? n : void 0
2719
+ }), M = t(() => A.value[0]);
2720
+ g && Wi({
2721
+ value: D,
2722
+ prop: g,
2723
+ handleChange: re,
2724
+ shouldValidate: () => d && !j.pendingReset
2725
+ });
2726
+ let F = (e, t = !1) => {
2727
+ O.touched = !0, t && L();
2728
+ };
2729
+ async function I(e) {
2730
+ if (S?.validateSchema) {
2731
+ let { results: t } = await S.validateSchema(e);
2732
+ return t[N(C)] ?? {
2733
+ valid: !0,
2734
+ errors: []
2735
+ };
2736
+ }
2737
+ return w.value ? si(D.value, w.value, {
2738
+ name: N(C),
2739
+ label: N(u),
2740
+ values: S?.values ?? {},
2741
+ bails: o
2742
+ }) : {
2743
+ valid: !0,
2744
+ errors: []
2745
+ };
2746
+ }
2747
+ let L = Ur(async () => (O.pending = !0, O.validated = !0, I("validated-only")), (e) => j.pendingUnmount[V.id] ? e : (k({ errors: e.errors }), O.pending = !1, O.valid = e.valid, e)), te = Ur(async () => I("silent"), (e) => (O.valid = e.valid, e));
2748
+ function ne(e) {
2749
+ return e?.mode === "silent" ? te() : L();
2750
+ }
2751
+ function re(e, t = !0) {
2752
+ ae(Qr(e), t);
2753
+ }
2754
+ v(() => {
2755
+ if (a) return L();
2756
+ (!S || !S.validateSchema) && te();
2757
+ });
2758
+ function ie(e) {
2759
+ O.touched = e;
2760
+ }
2761
+ function z(e) {
2762
+ let t = e && "value" in e ? e.value : ee.value;
2763
+ k({
2764
+ value: K(t),
2765
+ initialValue: K(t),
2766
+ touched: e?.touched ?? !1,
2767
+ errors: e?.errors || []
2768
+ }), O.pending = !1, O.validated = !1, te();
2769
+ }
2770
+ let B = l();
2771
+ function ae(e, t = !0) {
2772
+ D.value = B && g ? Hr(e, B.props.modelModifiers) : e, (t ? L : te)();
2773
+ }
2774
+ function oe(e) {
2775
+ k({ errors: Array.isArray(e) ? e : [e] });
2776
+ }
2777
+ let V = {
2778
+ id: E,
2779
+ name: C,
2780
+ label: u,
2781
+ value: t({
2782
+ get() {
2783
+ return D.value;
2784
+ },
2785
+ set(e) {
2786
+ ae(e, d);
2787
+ }
2788
+ }),
2789
+ meta: O,
2790
+ errors: A,
2791
+ errorMessage: M,
2792
+ type: s,
2793
+ checkedValue: c,
2794
+ uncheckedValue: p,
2795
+ bails: o,
2796
+ keepValueOnUnmount: h,
2797
+ resetField: z,
2798
+ handleReset: () => z(),
2799
+ validate: ne,
2800
+ handleChange: re,
2801
+ handleBlur: F,
2802
+ setState: k,
2803
+ setTouched: ie,
2804
+ setErrors: oe,
2805
+ setValue: ae
2806
+ };
2807
+ if (x(gr, V), f(n) && typeof P(n) != "function" && R(n, (e, t) => {
2808
+ J(e, t) || (O.validated ? L() : te());
2809
+ }, { deep: !0 }), process.env.NODE_ENV !== "production" && (V._vm = l(), R(() => Object.assign(Object.assign({ errors: A.value }, O), { value: D.value }), Oi, { deep: !0 }), S || Ai(V)), !S) return V;
2810
+ let se = t(() => {
2811
+ let e = w.value;
2812
+ return !e || G(e) || br(e) || q(e) || Array.isArray(e) ? {} : Object.keys(e).reduce((t, n) => {
2813
+ let r = ii(e[n]).map((e) => e.__locatorRef).reduce((e, t) => {
2814
+ let n = Y(S.values, t) || S.values[t];
2815
+ return n !== void 0 && (e[t] = n), e;
2816
+ }, {});
2817
+ return Object.assign(t, r), t;
2818
+ }, {});
2819
+ });
2820
+ return R(se, (e, t) => {
2821
+ Object.keys(e).length && (J(e, t) || (O.validated ? L() : te()));
2822
+ }), _(() => {
2823
+ let e = N(V.keepValueOnUnmount) ?? N(S.keepValuesOnUnmount), t = N(C);
2824
+ if (e || !S || j.pendingUnmount[V.id]) {
2825
+ S?.removePathState(t, E);
2826
+ return;
2827
+ }
2828
+ j.pendingUnmount[V.id] = !0;
2829
+ let n = S.getPathState(t);
2830
+ if (Array.isArray(n?.id) && n?.multiple ? n?.id.includes(V.id) : n?.id === V.id) {
2831
+ if (n?.multiple && Array.isArray(n.value)) {
2832
+ let e = n.value.findIndex((e) => J(e, N(V.checkedValue)));
2833
+ if (e > -1) {
2834
+ let r = [...n.value];
2835
+ r.splice(e, 1), S.setFieldValue(t, r);
2836
+ }
2837
+ Array.isArray(n.id) && n.id.splice(n.id.indexOf(V.id), 1);
2838
+ } else S.unsetPathValue(N(C));
2839
+ S.removePathState(t, E);
2840
+ }
2841
+ }), V;
2842
+ }
2843
+ function Hi(e) {
2844
+ let t = () => ({
2845
+ initialValue: void 0,
2846
+ validateOnMount: !1,
2847
+ bails: !0,
2848
+ label: void 0,
2849
+ validateOnValueUpdate: !0,
2850
+ keepValueOnUnmount: void 0,
2851
+ syncVModel: !1,
2852
+ controlled: !0
2853
+ }), n = !!e?.syncVModel, r = typeof e?.syncVModel == "string" ? e.syncVModel : e?.modelPropName || "modelValue", i = n && !("initialValue" in (e || {})) ? Gi(l(), r) : e?.initialValue;
2854
+ if (!e) return Object.assign(Object.assign({}, t()), { initialValue: i });
2855
+ let a = "valueProp" in e ? e.valueProp : e.checkedValue, o = "standalone" in e ? !e.standalone : e.controlled, s = e?.modelPropName || e?.syncVModel || !1;
2856
+ return Object.assign(Object.assign(Object.assign({}, t()), e || {}), {
2857
+ initialValue: i,
2858
+ controlled: o ?? !0,
2859
+ checkedValue: a,
2860
+ syncVModel: s
2861
+ });
2862
+ }
2863
+ function Ui(e, n, r) {
2864
+ let i = r?.standalone ? void 0 : Lr(mr), a = r?.checkedValue, o = r?.uncheckedValue;
2865
+ function s(n) {
2866
+ let s = n.handleChange, c = t(() => {
2867
+ let e = N(n.value), t = N(a);
2868
+ return Array.isArray(e) ? e.findIndex((e) => J(e, t)) >= 0 : J(t, e);
2869
+ });
2870
+ function l(t, l = !0) {
2871
+ if (c.value === t?.target?.checked) {
2872
+ l && n.validate();
2873
+ return;
2874
+ }
2875
+ let u = N(e), d = i?.getPathState(u), f = Qr(t), p = N(a) ?? f;
2876
+ i && d?.multiple && d.type === "checkbox" ? p = zr(Y(i.values, u) || [], p, void 0) : r?.type === "checkbox" && (p = zr(N(n.value), p, N(o))), s(p, l);
2877
+ }
2878
+ return Object.assign(Object.assign({}, n), {
2879
+ checked: c,
2880
+ checkedValue: a,
2881
+ uncheckedValue: o,
2882
+ handleChange: l
2883
+ });
2884
+ }
2885
+ return s(Vi(e, n, r));
2886
+ }
2887
+ function Wi({ prop: e, value: t, handleChange: n, shouldValidate: r }) {
2888
+ let i = l();
2889
+ /* istanbul ignore next */
2890
+ if (!i || !e) {
2891
+ process.env.NODE_ENV !== "production" && console.warn("Failed to setup model events because `useField` was not called in setup.");
2892
+ return;
2893
+ }
2894
+ let a = typeof e == "string" ? e : "modelValue", o = `update:${a}`;
2895
+ a in i.props && (R(t, (e) => {
2896
+ J(e, Gi(i, a)) || i.emit(o, e);
2897
+ }), R(() => Gi(i, a), (e) => {
2898
+ if (e === _r && t.value === void 0) return;
2899
+ let i = e === _r ? void 0 : e;
2900
+ J(i, t.value) || n(i, r());
2901
+ }));
2902
+ }
2903
+ function Gi(e, t) {
2904
+ if (e) return e.props[t];
2905
+ }
2906
+ c({
2907
+ name: "Field",
2908
+ inheritAttrs: !1,
2909
+ props: {
2910
+ as: {
2911
+ type: [String, Object],
2912
+ default: void 0
2913
+ },
2914
+ name: {
2915
+ type: String,
2916
+ required: !0
2917
+ },
2918
+ rules: {
2919
+ type: [
2920
+ Object,
2921
+ String,
2922
+ Function
2923
+ ],
2924
+ default: void 0
2925
+ },
2926
+ validateOnMount: {
2927
+ type: Boolean,
2928
+ default: !1
2929
+ },
2930
+ validateOnBlur: {
2931
+ type: Boolean,
2932
+ default: void 0
2933
+ },
2934
+ validateOnChange: {
2935
+ type: Boolean,
2936
+ default: void 0
2937
+ },
2938
+ validateOnInput: {
2939
+ type: Boolean,
2940
+ default: void 0
2941
+ },
2942
+ validateOnModelUpdate: {
2943
+ type: Boolean,
2944
+ default: void 0
2945
+ },
2946
+ bails: {
2947
+ type: Boolean,
2948
+ default: () => oi().bails
2949
+ },
2950
+ label: {
2951
+ type: String,
2952
+ default: void 0
2953
+ },
2954
+ uncheckedValue: {
2955
+ type: null,
2956
+ default: void 0
2957
+ },
2958
+ modelValue: {
2959
+ type: null,
2960
+ default: _r
2961
+ },
2962
+ modelModifiers: {
2963
+ type: null,
2964
+ default: () => ({})
2965
+ },
2966
+ "onUpdate:modelValue": {
2967
+ type: null,
2968
+ default: void 0
2969
+ },
2970
+ standalone: {
2971
+ type: Boolean,
2972
+ default: !1
2973
+ },
2974
+ keepValue: {
2975
+ type: Boolean,
2976
+ default: void 0
2977
+ }
2978
+ },
2979
+ setup(e, n) {
2980
+ let r = j(e, "rules"), i = j(e, "name"), a = j(e, "label"), o = j(e, "uncheckedValue"), s = j(e, "keepValue"), { errors: c, value: l, errorMessage: d, validate: f, handleChange: p, handleBlur: m, setTouched: h, resetField: g, handleReset: _, meta: v, checked: y, setErrors: b, setValue: x } = Bi(i, r, {
2981
+ validateOnMount: e.validateOnMount,
2982
+ bails: e.bails,
2983
+ standalone: e.standalone,
2984
+ type: n.attrs.type,
2985
+ initialValue: Ji(e, n),
2986
+ checkedValue: n.attrs.value,
2987
+ uncheckedValue: o,
2988
+ label: a,
2989
+ validateOnValueUpdate: e.validateOnModelUpdate,
2990
+ keepValueOnUnmount: s,
2991
+ syncVModel: !0
2992
+ }), S = function(e, t = !0) {
2993
+ p(e, t);
2994
+ }, C = t(() => {
2995
+ let { validateOnInput: t, validateOnChange: r, validateOnBlur: i, validateOnModelUpdate: a } = qi(e);
2996
+ function o(e) {
2997
+ m(e, i), G(n.attrs.onBlur) && n.attrs.onBlur(e);
2998
+ }
2999
+ function s(e) {
3000
+ S(e, t), G(n.attrs.onInput) && n.attrs.onInput(e);
3001
+ }
3002
+ function c(e) {
3003
+ S(e, r), G(n.attrs.onChange) && n.attrs.onChange(e);
3004
+ }
3005
+ let l = {
3006
+ name: e.name,
3007
+ onBlur: o,
3008
+ onInput: s,
3009
+ onChange: c
3010
+ };
3011
+ return l["onUpdate:modelValue"] = (e) => S(e, a), l;
3012
+ }), w = t(() => {
3013
+ let t = Object.assign({}, C.value);
3014
+ return xr(n.attrs.type) && y && (t.checked = y.value), Or(Ki(e, n), n.attrs) && (t.value = l.value), t;
3015
+ }), T = t(() => Object.assign(Object.assign({}, C.value), { modelValue: l.value }));
3016
+ function E() {
3017
+ return {
3018
+ field: w.value,
3019
+ componentField: T.value,
3020
+ value: l.value,
3021
+ meta: v,
3022
+ errors: c.value,
3023
+ errorMessage: d.value,
3024
+ validate: f,
3025
+ resetField: g,
3026
+ handleChange: S,
3027
+ handleInput: (e) => S(e, !1),
3028
+ handleReset: _,
3029
+ handleBlur: C.value.onBlur,
3030
+ setTouched: h,
3031
+ setErrors: b,
3032
+ setValue: x
3033
+ };
3034
+ }
3035
+ return n.expose({
3036
+ value: l,
3037
+ meta: v,
3038
+ errors: c,
3039
+ errorMessage: d,
3040
+ setErrors: b,
3041
+ setTouched: h,
3042
+ setValue: x,
3043
+ reset: g,
3044
+ validate: f,
3045
+ handleChange: p
3046
+ }), () => {
3047
+ let t = ee(Ki(e, n)), r = Jr(t, n, E);
3048
+ return t ? u(t, Object.assign(Object.assign({}, n.attrs), w.value), r) : r;
3049
+ };
3050
+ }
3051
+ });
3052
+ function Ki(e, t) {
3053
+ let n = e.as || "";
3054
+ return !e.as && !t.slots.default && (n = "input"), n;
3055
+ }
3056
+ function qi(e) {
3057
+ let { validateOnInput: t, validateOnChange: n, validateOnBlur: r, validateOnModelUpdate: i } = oi();
3058
+ return {
3059
+ validateOnInput: e.validateOnInput ?? t,
3060
+ validateOnChange: e.validateOnChange ?? n,
3061
+ validateOnBlur: e.validateOnBlur ?? r,
3062
+ validateOnModelUpdate: e.validateOnModelUpdate ?? i
3063
+ };
3064
+ }
3065
+ function Ji(e, t) {
3066
+ return xr(t.attrs.type) ? jr(e, "modelValue") ? e.modelValue : void 0 : jr(e, "modelValue") ? e.modelValue : t.attrs.value;
3067
+ }
3068
+ var Yi = 0, Xi = [
3069
+ "bails",
3070
+ "fieldsCount",
3071
+ "id",
3072
+ "multiple",
3073
+ "type",
3074
+ "validate"
3075
+ ];
3076
+ function Zi(e) {
3077
+ let t = e?.initialValues || {}, n = Object.assign({}, N(t)), r = P(e?.validationSchema);
3078
+ return r && q(r) && G(r.cast) ? K(r.cast(n) || {}) : K(n);
3079
+ }
3080
+ function Qi(e) {
3081
+ let n = Yi++, r = e?.name || "Form", i = 0, a = w(!1), o = w(!1), s = w(0), c = [], l = S(Zi(e)), u = w([]), d = w({}), p = w({}), m = qr(() => {
3082
+ p.value = u.value.reduce((e, t) => (e[ur(N(t.path))] = t, e), {});
3083
+ });
3084
+ function g(e, t) {
3085
+ let n = B(e);
3086
+ if (!n) {
3087
+ typeof e == "string" && (d.value[ur(e)] = Gr(t));
3088
+ return;
3089
+ }
3090
+ if (typeof e == "string") {
3091
+ let t = ur(e);
3092
+ d.value[t] && delete d.value[t];
3093
+ }
3094
+ n.errors = Gr(t), n.valid = !n.errors.length;
3095
+ }
3096
+ function _(e) {
3097
+ Z(e).forEach((t) => {
3098
+ g(t, e[t]);
3099
+ });
3100
+ }
3101
+ e?.initialErrors && _(e.initialErrors);
3102
+ let y = t(() => {
3103
+ let e = u.value.reduce((e, t) => (t.errors.length && (e[N(t.path)] = t.errors), e), {});
3104
+ return Object.assign(Object.assign({}, d.value), e);
3105
+ }), b = t(() => Z(y.value).reduce((e, t) => {
3106
+ let n = y.value[t];
3107
+ return n?.length && (e[t] = n[0]), e;
3108
+ }, {})), T = t(() => u.value.reduce((e, t) => (e[N(t.path)] = {
3109
+ name: N(t.path) || "",
3110
+ label: t.label || ""
3111
+ }, e), {})), E = t(() => u.value.reduce((e, t) => (e[N(t.path)] = t.bails ?? !0, e), {})), D = Object.assign({}, e?.initialErrors || {}), ee = e?.keepValuesOnUnmount ?? !1, { initialValues: k, originalInitialValues: A, setInitialValues: j } = ea(u, l, e), M = $i(u, l, A, b), F = t(() => u.value.reduce((e, t) => {
3112
+ let n = Y(l, N(t.path));
3113
+ return X(e, N(t.path), n), e;
3114
+ }, {})), I = e?.validationSchema;
3115
+ function L(e, n) {
3116
+ let r = t(() => Y(k.value, N(e))), a = p.value[N(e)], o = n?.type === "checkbox" || n?.type === "radio";
3117
+ if (a && o) {
3118
+ a.multiple = !0;
3119
+ let e = i++;
3120
+ return Array.isArray(a.id) ? a.id.push(e) : a.id = [a.id, e], a.fieldsCount++, a.__flags.pendingUnmount[e] = !1, a;
3121
+ }
3122
+ let s = t(() => Y(l, N(e))), c = N(e), d = oe.findIndex((e) => e === c);
3123
+ d !== -1 && oe.splice(d, 1);
3124
+ let g = t(() => {
3125
+ let t = N(I);
3126
+ if (q(t)) return t.describe?.call(t, N(e)).required ?? !1;
3127
+ let r = N(n?.schema);
3128
+ return q(r) ? r.describe?.call(r).required ?? !1 : !1;
3129
+ }), _ = i++, v = S({
3130
+ id: _,
3131
+ path: e,
3132
+ touched: !1,
3133
+ pending: !1,
3134
+ valid: !0,
3135
+ validated: !!D[c]?.length,
3136
+ required: g,
3137
+ initialValue: r,
3138
+ errors: O([]),
3139
+ bails: n?.bails ?? !1,
3140
+ label: n?.label,
3141
+ type: n?.type || "default",
3142
+ value: s,
3143
+ multiple: !1,
3144
+ __flags: {
3145
+ pendingUnmount: { [_]: !1 },
3146
+ pendingReset: !1
3147
+ },
3148
+ fieldsCount: 1,
3149
+ validate: n?.validate,
3150
+ dirty: t(() => !J(P(s), P(r)))
3151
+ });
3152
+ return u.value.push(v), p.value[c] = v, m(), b.value[c] && !D[c] && h(() => {
3153
+ Se(c, { mode: "silent" });
3154
+ }), f(e) && R(e, (e) => {
3155
+ m();
3156
+ let t = K(s.value);
3157
+ p.value[e] = v, h(() => {
3158
+ X(l, e, t);
3159
+ });
3160
+ }), v;
3161
+ }
3162
+ let te = Vr(Ee, 5), ne = Vr(Ee, 5), ie = Ur(async (e) => await (e === "silent" ? te() : ne()), (e, [t]) => {
3163
+ let n = Z(U.errorBag.value), r = [.../* @__PURE__ */ new Set([
3164
+ ...Z(e.results),
3165
+ ...u.value.map((e) => e.path),
3166
+ ...n
3167
+ ])].sort().reduce((n, r) => {
3168
+ let i = r, a = B(i) || ae(i), o = e.results[i]?.errors || [], s = N(a?.path) || i, c = ta({
3169
+ errors: o,
3170
+ valid: !o.length
3171
+ }, n.results[s]);
3172
+ return n.results[s] = c, c.valid || (n.errors[s] = c.errors[0]), a && d.value[s] && delete d.value[s], a ? (a.valid = c.valid, t === "silent" || t === "validated-only" && !a.validated || g(a, c.errors), n) : (g(s, o), n);
3173
+ }, {
3174
+ valid: e.valid,
3175
+ results: {},
3176
+ errors: {},
3177
+ source: e.source
3178
+ });
3179
+ return e.values && (r.values = e.values, r.source = e.source), Z(r.results).forEach((e) => {
3180
+ let n = B(e);
3181
+ n && t !== "silent" && (t !== "validated-only" || n.validated) && g(n, r.results[e]?.errors);
3182
+ }), r;
3183
+ });
3184
+ function z(e) {
3185
+ u.value.forEach(e);
3186
+ }
3187
+ function B(e) {
3188
+ let t = typeof e == "string" ? ur(e) : e;
3189
+ return typeof t == "string" ? p.value[t] : t;
3190
+ }
3191
+ function ae(e) {
3192
+ return u.value.filter((t) => e.startsWith(N(t.path))).reduce((e, t) => e ? t.path.length > e.path.length ? t : e : t, void 0);
3193
+ }
3194
+ let oe = [], V;
3195
+ function se(e) {
3196
+ return oe.push(e), V ||= h(() => {
3197
+ [...oe].sort().reverse().forEach((e) => {
3198
+ Ir(l, e);
3199
+ }), oe = [], V = null;
3200
+ }), V;
3201
+ }
3202
+ function H(e) {
3203
+ return function(t, n) {
3204
+ return function(r) {
3205
+ return r instanceof Event && (r.preventDefault(), r.stopPropagation()), z((e) => e.touched = !0), a.value = !0, s.value++, xe().then((i) => {
3206
+ let a = K(l);
3207
+ if (i.valid && typeof t == "function") {
3208
+ let n = K(F.value), o = e ? n : a;
3209
+ return i.values && (o = i.source === "schema" ? i.values : Object.assign({}, o, i.values)), t(o, {
3210
+ evt: r,
3211
+ controlledValues: n,
3212
+ setErrors: _,
3213
+ setFieldError: g,
3214
+ setTouched: ve,
3215
+ setFieldTouched: me,
3216
+ setValues: fe,
3217
+ setFieldValue: W,
3218
+ resetForm: be,
3219
+ resetField: ye
3220
+ });
3221
+ }
3222
+ !i.valid && typeof n == "function" && n({
3223
+ values: a,
3224
+ evt: r,
3225
+ errors: i.errors,
3226
+ results: i.results
3227
+ });
3228
+ }).then((e) => (a.value = !1, e), (e) => {
3229
+ throw a.value = !1, e;
3230
+ });
3231
+ };
3232
+ };
3233
+ }
3234
+ let ce = H(!1);
3235
+ ce.withControlled = H(!0);
3236
+ function le(e, t) {
3237
+ let n = u.value.findIndex((n) => n.path === e && (Array.isArray(n.id) ? n.id.includes(t) : n.id === t)), r = u.value[n];
3238
+ if (n !== -1 && r) {
3239
+ if (h(() => {
3240
+ Se(e, {
3241
+ mode: "silent",
3242
+ warn: !1
3243
+ });
3244
+ }), r.multiple && r.fieldsCount && r.fieldsCount--, Array.isArray(r.id)) {
3245
+ let e = r.id.indexOf(t);
3246
+ e >= 0 && r.id.splice(e, 1), delete r.__flags.pendingUnmount[t];
3247
+ }
3248
+ (!r.multiple || r.fieldsCount <= 0) && (u.value.splice(n, 1), Ce(e), m(), delete p.value[e]);
3249
+ }
3250
+ }
3251
+ function ue(e) {
3252
+ Z(p.value).forEach((t) => {
3253
+ t.startsWith(e) && delete p.value[t];
3254
+ }), u.value = u.value.filter((t) => !t.path.startsWith(e)), h(() => {
3255
+ m();
3256
+ });
3257
+ }
3258
+ let U = {
3259
+ name: r,
3260
+ formId: n,
3261
+ values: l,
3262
+ controlledValues: F,
3263
+ errorBag: y,
3264
+ errors: b,
3265
+ schema: I,
3266
+ submitCount: s,
3267
+ meta: M,
3268
+ isSubmitting: a,
3269
+ isValidating: o,
3270
+ fieldArrays: c,
3271
+ keepValuesOnUnmount: ee,
3272
+ validateSchema: P(I) ? ie : void 0,
3273
+ validate: xe,
3274
+ setFieldError: g,
3275
+ validateField: Se,
3276
+ setFieldValue: W,
3277
+ setValues: fe,
3278
+ setErrors: _,
3279
+ setFieldTouched: me,
3280
+ setTouched: ve,
3281
+ resetForm: be,
3282
+ resetField: ye,
3283
+ handleSubmit: ce,
3284
+ useFieldModel: ke,
3285
+ defineInputBinds: Ae,
3286
+ defineComponentBinds: je,
3287
+ defineField: Oe,
3288
+ stageInitialValue: we,
3289
+ unsetInitialValue: Ce,
3290
+ setFieldInitialValue: Te,
3291
+ createPathState: L,
3292
+ getPathState: B,
3293
+ unsetPathValue: se,
3294
+ removePathState: le,
3295
+ initialValues: k,
3296
+ getAllPathStates: () => u.value,
3297
+ destroyPath: ue,
3298
+ isFieldTouched: he,
3299
+ isFieldDirty: ge,
3300
+ isFieldValid: _e
3301
+ };
3302
+ function W(e, t, n = !0) {
3303
+ let r = K(t), i = typeof e == "string" ? e : e.path;
3304
+ B(i) || L(i), X(l, i, r), n && Se(i);
3305
+ }
3306
+ function de(e, t = !0) {
3307
+ Z(l).forEach((e) => {
3308
+ delete l[e];
3309
+ }), Z(e).forEach((t) => {
3310
+ W(t, e[t], !1);
3311
+ }), t && xe();
3312
+ }
3313
+ function fe(e, t = !0) {
3314
+ lr(l, e), c.forEach((e) => e && e.reset()), t && xe();
3315
+ }
3316
+ function pe(e, n) {
3317
+ let r = B(N(e)) || L(e);
3318
+ return t({
3319
+ get() {
3320
+ return r.value;
3321
+ },
3322
+ set(t) {
3323
+ W(N(e), t, N(n) ?? !1);
3324
+ }
3325
+ });
3326
+ }
3327
+ function me(e, t) {
3328
+ let n = B(e);
3329
+ n && (n.touched = t);
3330
+ }
3331
+ function he(e) {
3332
+ let t = B(e);
3333
+ return t ? t.touched : u.value.filter((t) => t.path.startsWith(e)).some((e) => e.touched);
3334
+ }
3335
+ function ge(e) {
3336
+ let t = B(e);
3337
+ return t ? t.dirty : u.value.filter((t) => t.path.startsWith(e)).some((e) => e.dirty);
3338
+ }
3339
+ function _e(e) {
3340
+ let t = B(e);
3341
+ return t ? t.valid : u.value.filter((t) => t.path.startsWith(e)).every((e) => e.valid);
3342
+ }
3343
+ function ve(e) {
3344
+ if (typeof e == "boolean") {
3345
+ z((t) => {
3346
+ t.touched = e;
3347
+ });
3348
+ return;
3349
+ }
3350
+ Z(e).forEach((t) => {
3351
+ me(t, !!e[t]);
3352
+ });
3353
+ }
3354
+ function ye(e, t) {
3355
+ let n = t && "value" in t ? t.value : Y(k.value, e), r = B(e);
3356
+ r && (r.__flags.pendingReset = !0), Te(e, K(n), !0), W(e, n, !1), me(e, t?.touched ?? !1), g(e, t?.errors || []), h(() => {
3357
+ r && (r.__flags.pendingReset = !1);
3358
+ });
3359
+ }
3360
+ function be(e, t) {
3361
+ let n = K(e?.values ? e.values : A.value);
3362
+ n = t?.force ? n : lr(A.value, n), n = q(I) && G(I.cast) ? I.cast(n) : n, j(n, { force: t?.force }), z((t) => {
3363
+ t.__flags.pendingReset = !0, t.validated = !1, t.touched = e?.touched?.[N(t.path)] || !1, W(N(t.path), Y(n, N(t.path)), !1), g(N(t.path), void 0);
3364
+ }), t?.force ? de(n, !1) : fe(n, !1), _(e?.errors || {}), s.value = e?.submitCount || 0, h(() => {
3365
+ xe({ mode: "silent" }), z((e) => {
3366
+ e.__flags.pendingReset = !1;
3367
+ });
3368
+ });
3369
+ }
3370
+ async function xe(e) {
3371
+ let t = e?.mode || "force";
3372
+ if (t === "force" && z((e) => e.validated = !0), U.validateSchema) return U.validateSchema(t);
3373
+ o.value = !0;
3374
+ let n = await Promise.all(u.value.map((t) => t.validate ? t.validate(e).then((e) => ({
3375
+ key: N(t.path),
3376
+ valid: e.valid,
3377
+ errors: e.errors,
3378
+ value: e.value
3379
+ })) : Promise.resolve({
3380
+ key: N(t.path),
3381
+ valid: !0,
3382
+ errors: [],
3383
+ value: void 0
3384
+ })));
3385
+ o.value = !1;
3386
+ let r = {}, i = {}, a = {};
3387
+ for (let e of n) r[e.key] = {
3388
+ valid: e.valid,
3389
+ errors: e.errors
3390
+ }, e.value && X(a, e.key, e.value), e.errors.length && (i[e.key] = e.errors[0]);
3391
+ return {
3392
+ valid: n.every((e) => e.valid),
3393
+ results: r,
3394
+ errors: i,
3395
+ values: a,
3396
+ source: "fields"
3397
+ };
3398
+ }
3399
+ async function Se(e, t) {
3400
+ let n = B(e);
3401
+ if (n && t?.mode !== "silent" && (n.validated = !0), I) {
3402
+ let { results: n } = await ie(t?.mode || "validated-only");
3403
+ return n[e] || {
3404
+ errors: [],
3405
+ valid: !0
3406
+ };
3407
+ }
3408
+ return n?.validate ? n.validate(t) : (!n && (t?.warn ?? !0) && process.env.NODE_ENV !== "production" && re(`field with path ${e} was not found`), Promise.resolve({
3409
+ errors: [],
3410
+ valid: !0
3411
+ }));
3412
+ }
3413
+ function Ce(e) {
3414
+ Ir(k.value, e);
3415
+ }
3416
+ function we(t, n, r = !1) {
3417
+ Te(t, n), X(l, t, n), r && !e?.initialValues && X(A.value, t, K(n));
3418
+ }
3419
+ function Te(e, t, n = !1) {
3420
+ X(k.value, e, K(t)), n && X(A.value, e, K(t));
3421
+ }
3422
+ async function Ee() {
3423
+ let e = P(I);
3424
+ if (!e) return {
3425
+ valid: !0,
3426
+ results: {},
3427
+ errors: {},
3428
+ source: "none"
3429
+ };
3430
+ o.value = !0;
3431
+ let t = br(e) || q(e) ? await hi(e, l) : await gi(e, l, {
3432
+ names: T.value,
3433
+ bailsMap: E.value
3434
+ });
3435
+ return o.value = !1, t;
3436
+ }
3437
+ let De = ce((e, { evt: t }) => {
3438
+ kr(t) && t.target.submit();
3439
+ });
3440
+ v(() => {
3441
+ if (e?.initialErrors && _(e.initialErrors), e?.initialTouched && ve(e.initialTouched), e?.validateOnMount) {
3442
+ xe();
3443
+ return;
3444
+ }
3445
+ U.validateSchema && U.validateSchema("silent");
3446
+ }), f(I) && R(I, () => {
3447
+ var e;
3448
+ (e = U.validateSchema) == null || e.call(U, "validated-only");
3449
+ }), x(mr, U), process.env.NODE_ENV !== "production" && (ki(U), R(() => Object.assign(Object.assign({ errors: y.value }, M.value), {
3450
+ values: l,
3451
+ isSubmitting: a.value,
3452
+ isValidating: o.value,
3453
+ submitCount: s.value
3454
+ }), Oi, { deep: !0 }));
3455
+ function Oe(e, n) {
3456
+ let r = G(n) ? void 0 : n?.label, i = B(N(e)) || L(e, { label: r }), a = () => G(n) ? n(Kr(i, Xi)) : n || {};
3457
+ function o() {
3458
+ i.touched = !0, (a().validateOnBlur ?? oi().validateOnBlur) && Se(N(i.path));
3459
+ }
3460
+ function s() {
3461
+ (a().validateOnInput ?? oi().validateOnInput) && h(() => {
3462
+ Se(N(i.path));
3463
+ });
3464
+ }
3465
+ function c() {
3466
+ (a().validateOnChange ?? oi().validateOnChange) && h(() => {
3467
+ Se(N(i.path));
3468
+ });
3469
+ }
3470
+ let l = t(() => {
3471
+ let e = {
3472
+ onChange: c,
3473
+ onInput: s,
3474
+ onBlur: o
3475
+ };
3476
+ return G(n) ? Object.assign(Object.assign({}, e), n(Kr(i, Xi)).props || {}) : n?.props ? Object.assign(Object.assign({}, e), n.props(Kr(i, Xi))) : e;
3477
+ });
3478
+ return [pe(e, () => a().validateOnModelUpdate ?? oi()?.validateOnModelUpdate ?? !0), l];
3479
+ }
3480
+ function ke(e) {
3481
+ return Array.isArray(e) ? e.map((e) => pe(e, !0)) : pe(e);
3482
+ }
3483
+ function Ae(e, n) {
3484
+ let [r, i] = Oe(e, n);
3485
+ function a() {
3486
+ i.value.onBlur();
3487
+ }
3488
+ function o(t) {
3489
+ let n = Qr(t);
3490
+ W(N(e), n, !1), i.value.onInput();
3491
+ }
3492
+ function s(t) {
3493
+ let n = Qr(t);
3494
+ W(N(e), n, !1), i.value.onChange();
3495
+ }
3496
+ return t(() => Object.assign(Object.assign({}, i.value), {
3497
+ onBlur: a,
3498
+ onInput: o,
3499
+ onChange: s,
3500
+ value: r.value
3501
+ }));
3502
+ }
3503
+ function je(e, n) {
3504
+ let [r, i] = Oe(e, n), a = B(N(e));
3505
+ function o(e) {
3506
+ r.value = e;
3507
+ }
3508
+ return t(() => {
3509
+ let e = G(n) ? n(Kr(a, Xi)) : n || {};
3510
+ return Object.assign({
3511
+ [e.model || "modelValue"]: r.value,
3512
+ [`onUpdate:${e.model || "modelValue"}`]: o
3513
+ }, i.value);
3514
+ });
3515
+ }
3516
+ let Me = Object.assign(Object.assign({}, U), {
3517
+ values: C(l),
3518
+ handleReset: () => be(),
3519
+ submitForm: De
3520
+ });
3521
+ return x(hr, Me), Me;
3522
+ }
3523
+ function $i(e, n, r, i) {
3524
+ let a = {
3525
+ touched: "some",
3526
+ pending: "some",
3527
+ valid: "every"
3528
+ }, o = t(() => !J(n, P(r)));
3529
+ function s() {
3530
+ let t = e.value;
3531
+ return Z(a).reduce((e, n) => {
3532
+ let r = a[n];
3533
+ return e[n] = t[r]((e) => e[n]), e;
3534
+ }, {});
3535
+ }
3536
+ let c = S(s());
3537
+ return ie(() => {
3538
+ let e = s();
3539
+ c.touched = e.touched, c.valid = e.valid, c.pending = e.pending;
3540
+ }), t(() => Object.assign(Object.assign({ initialValues: P(r) }, c), {
3541
+ valid: c.valid && !Z(i.value).length,
3542
+ dirty: o.value
3543
+ }));
3544
+ }
3545
+ function ea(e, t, n) {
3546
+ let r = Zi(n), i = w(r), a = w(K(r));
3547
+ function o(n, r) {
3548
+ r?.force ? (i.value = K(n), a.value = K(n)) : (i.value = lr(K(i.value) || {}, K(n)), a.value = lr(K(a.value) || {}, K(n))), r?.updateFields && e.value.forEach((e) => {
3549
+ if (e.touched) return;
3550
+ let n = Y(i.value, N(e.path));
3551
+ X(t, N(e.path), K(n));
3552
+ });
3553
+ }
3554
+ return {
3555
+ initialValues: i,
3556
+ originalInitialValues: a,
3557
+ setInitialValues: o
3558
+ };
3559
+ }
3560
+ function ta(e, t) {
3561
+ return t ? {
3562
+ valid: e.valid && t.valid,
3563
+ errors: [...e.errors, ...t.errors]
3564
+ } : e;
3565
+ }
3566
+ c({
3567
+ name: "Form",
3568
+ inheritAttrs: !1,
3569
+ props: {
3570
+ as: {
3571
+ type: null,
3572
+ default: "form"
3573
+ },
3574
+ validationSchema: {
3575
+ type: Object,
3576
+ default: void 0
3577
+ },
3578
+ initialValues: {
3579
+ type: Object,
3580
+ default: void 0
3581
+ },
3582
+ initialErrors: {
3583
+ type: Object,
3584
+ default: void 0
3585
+ },
3586
+ initialTouched: {
3587
+ type: Object,
3588
+ default: void 0
3589
+ },
3590
+ validateOnMount: {
3591
+ type: Boolean,
3592
+ default: !1
3593
+ },
3594
+ onSubmit: {
3595
+ type: Function,
3596
+ default: void 0
3597
+ },
3598
+ onInvalidSubmit: {
3599
+ type: Function,
3600
+ default: void 0
3601
+ },
3602
+ keepValues: {
3603
+ type: Boolean,
3604
+ default: !1
3605
+ },
3606
+ name: {
3607
+ type: String,
3608
+ default: "Form"
3609
+ }
3610
+ },
3611
+ setup(e, t) {
3612
+ let n = j(e, "validationSchema"), r = j(e, "keepValues"), { errors: i, errorBag: a, values: o, meta: s, isSubmitting: c, isValidating: l, submitCount: d, controlledValues: f, validate: p, validateField: m, handleReset: h, resetForm: g, handleSubmit: _, setErrors: v, setFieldError: y, setFieldValue: b, setValues: x, setFieldTouched: S, setTouched: C, resetField: w } = Qi({
3613
+ validationSchema: n.value ? n : void 0,
3614
+ initialValues: e.initialValues,
3615
+ initialErrors: e.initialErrors,
3616
+ initialTouched: e.initialTouched,
3617
+ validateOnMount: e.validateOnMount,
3618
+ keepValuesOnUnmount: r,
3619
+ name: e.name
3620
+ }), T = _((e, { evt: t }) => {
3621
+ kr(t) && t.target.submit();
3622
+ }, e.onInvalidSubmit), E = e.onSubmit ? _(e.onSubmit, e.onInvalidSubmit) : T;
3623
+ function D(e) {
3624
+ Ar(e) && e.preventDefault(), h(), typeof t.attrs.onReset == "function" && t.attrs.onReset();
3625
+ }
3626
+ function O(t, n) {
3627
+ return _(typeof t == "function" && !n ? t : n, e.onInvalidSubmit)(t);
3628
+ }
3629
+ function k() {
3630
+ return K(o);
3631
+ }
3632
+ function A() {
3633
+ return K(s.value);
3634
+ }
3635
+ function M() {
3636
+ return K(i.value);
3637
+ }
3638
+ function N() {
3639
+ return {
3640
+ meta: s.value,
3641
+ errors: i.value,
3642
+ errorBag: a.value,
3643
+ values: o,
3644
+ isSubmitting: c.value,
3645
+ isValidating: l.value,
3646
+ submitCount: d.value,
3647
+ controlledValues: f.value,
3648
+ validate: p,
3649
+ validateField: m,
3650
+ handleSubmit: O,
3651
+ handleReset: h,
3652
+ submitForm: T,
3653
+ setErrors: v,
3654
+ setFieldError: y,
3655
+ setFieldValue: b,
3656
+ setValues: x,
3657
+ setFieldTouched: S,
3658
+ setTouched: C,
3659
+ resetForm: g,
3660
+ resetField: w,
3661
+ getValues: k,
3662
+ getMeta: A,
3663
+ getErrors: M
3664
+ };
3665
+ }
3666
+ return t.expose({
3667
+ setFieldError: y,
3668
+ setErrors: v,
3669
+ setFieldValue: b,
3670
+ setValues: x,
3671
+ setFieldTouched: S,
3672
+ setTouched: C,
3673
+ resetForm: g,
3674
+ validate: p,
3675
+ validateField: m,
3676
+ resetField: w,
3677
+ getValues: k,
3678
+ getMeta: A,
3679
+ getErrors: M,
3680
+ values: o,
3681
+ meta: s,
3682
+ errors: i
3683
+ }), function() {
3684
+ let n = e.as === "form" ? e.as : e.as ? ee(e.as) : null, r = Jr(n, t, N);
3685
+ return n ? u(n, Object.assign(Object.assign(Object.assign({}, n === "form" ? { novalidate: !0 } : {}), t.attrs), {
3686
+ onSubmit: E,
3687
+ onReset: D
3688
+ }), r) : r;
3689
+ };
3690
+ }
3691
+ });
3692
+ function na(e) {
3693
+ let t = Lr(mr, void 0), n = w([]), r = () => {}, i = {
3694
+ fields: n,
3695
+ remove: r,
3696
+ push: r,
3697
+ swap: r,
3698
+ insert: r,
3699
+ update: r,
3700
+ replace: r,
3701
+ prepend: r,
3702
+ move: r
3703
+ };
3704
+ if (!t) return process.env.NODE_ENV !== "production" && Rr("FieldArray requires being a child of `<Form/>` or `useForm` being called before it. Array fields may not work correctly"), i;
3705
+ if (!P(e)) return process.env.NODE_ENV !== "production" && Rr("FieldArray requires a field path to be provided, did you forget to pass the `name` prop?"), i;
3706
+ let a = t.fieldArrays.find((t) => P(t.path) === P(e));
3707
+ if (a) return a;
3708
+ let o = 0;
3709
+ function s() {
3710
+ return Y(t?.values, N(e), []) || [];
3711
+ }
3712
+ function c() {
3713
+ let e = s();
3714
+ Array.isArray(e) && (n.value = e.map((e, t) => u(e, t, n.value)), l());
3715
+ }
3716
+ c();
3717
+ function l() {
3718
+ let e = n.value.length;
3719
+ for (let t = 0; t < e; t++) {
3720
+ let r = n.value[t];
3721
+ r.isFirst = t === 0, r.isLast = t === e - 1;
3722
+ }
3723
+ }
3724
+ function u(r, i, a) {
3725
+ if (a && !nr(i) && a[i]) return a[i];
3726
+ let s = o++;
3727
+ return {
3728
+ key: s,
3729
+ value: Wr({
3730
+ get() {
3731
+ let i = Y(t?.values, N(e), []) || [], a = n.value.findIndex((e) => e.key === s);
3732
+ return a === -1 ? r : i[a];
3733
+ },
3734
+ set(e) {
3735
+ let t = n.value.findIndex((e) => e.key === s);
3736
+ if (t === -1) {
3737
+ process.env.NODE_ENV !== "production" && Rr("Attempting to update a non-existent array item");
3738
+ return;
3739
+ }
3740
+ v(t, e);
3741
+ }
3742
+ }),
3743
+ isFirst: !1,
3744
+ isLast: !1
3745
+ };
3746
+ }
3747
+ function d() {
3748
+ l(), t?.validate({ mode: "silent" });
3749
+ }
3750
+ function f(r) {
3751
+ let i = N(e), a = Y(t?.values, i);
3752
+ if (!a || !Array.isArray(a)) return;
3753
+ let o = [...a];
3754
+ o.splice(r, 1);
3755
+ let s = i + `[${r}]`;
3756
+ t.destroyPath(s), t.unsetInitialValue(s), X(t.values, i, o), n.value.splice(r, 1), d();
3757
+ }
3758
+ function p(r) {
3759
+ let i = K(r), a = N(e), o = Y(t?.values, a), s = nr(o) ? [] : o;
3760
+ if (!Array.isArray(s)) return;
3761
+ let c = [...s];
3762
+ c.push(i), t.stageInitialValue(a + `[${c.length - 1}]`, i), X(t.values, a, c), n.value.push(u(i)), d();
3763
+ }
3764
+ function m(r, i) {
3765
+ let a = N(e), o = Y(t?.values, a);
3766
+ if (!Array.isArray(o) || !(r in o) || !(i in o)) return;
3767
+ let s = [...o], c = [...n.value], u = s[r];
3768
+ s[r] = s[i], s[i] = u;
3769
+ let d = c[r];
3770
+ c[r] = c[i], c[i] = d, X(t.values, a, s), n.value = c, l();
3771
+ }
3772
+ function h(r, i) {
3773
+ let a = K(i), o = N(e), s = Y(t?.values, o);
3774
+ if (!Array.isArray(s) || s.length < r) return;
3775
+ let c = [...s], l = [...n.value];
3776
+ c.splice(r, 0, a), l.splice(r, 0, u(a)), X(t.values, o, c), n.value = l, d();
3777
+ }
3778
+ function g(n) {
3779
+ let r = N(e);
3780
+ t.stageInitialValue(r, n), X(t.values, r, n), c(), d();
3781
+ }
3782
+ function v(n, r) {
3783
+ let i = N(e), a = Y(t?.values, i);
3784
+ !Array.isArray(a) || a.length - 1 < n || (X(t.values, `${i}[${n}]`, r), t?.validate({ mode: "validated-only" }));
3785
+ }
3786
+ function y(r) {
3787
+ let i = K(r), a = N(e), o = Y(t?.values, a), s = nr(o) ? [] : o;
3788
+ if (!Array.isArray(s)) return;
3789
+ let c = [i, ...s];
3790
+ X(t.values, a, c), t.stageInitialValue(a + "[0]", i), n.value.unshift(u(i)), d();
3791
+ }
3792
+ function b(r, i) {
3793
+ let a = N(e), o = Y(t?.values, a), s = nr(o) ? [] : [...o];
3794
+ if (!Array.isArray(o) || !(r in o) || !(i in o)) return;
3795
+ let c = [...n.value], l = c[r];
3796
+ c.splice(r, 1), c.splice(i, 0, l);
3797
+ let u = s[r];
3798
+ s.splice(r, 1), s.splice(i, 0, u), X(t.values, a, s), n.value = c, d();
3799
+ }
3800
+ let x = {
3801
+ fields: n,
3802
+ remove: f,
3803
+ push: p,
3804
+ swap: m,
3805
+ insert: h,
3806
+ update: v,
3807
+ replace: g,
3808
+ prepend: y,
3809
+ move: b
3810
+ };
3811
+ return t.fieldArrays.push(Object.assign({
3812
+ path: e,
3813
+ reset: c
3814
+ }, x)), _(() => {
3815
+ let n = t.fieldArrays.findIndex((t) => N(t.path) === N(e));
3816
+ n >= 0 && t.fieldArrays.splice(n, 1);
3817
+ }), R(s, (e) => {
3818
+ J(e, n.value.map((e) => e.value)) || c();
3819
+ }), x;
3820
+ }
3821
+ c({
3822
+ name: "FieldArray",
3823
+ inheritAttrs: !1,
3824
+ props: { name: {
3825
+ type: String,
3826
+ required: !0
3827
+ } },
3828
+ setup(e, t) {
3829
+ let { push: n, remove: r, swap: i, insert: a, replace: o, update: s, prepend: c, move: l, fields: u } = na(() => e.name);
3830
+ function d() {
3831
+ return {
3832
+ fields: u.value,
3833
+ push: n,
3834
+ remove: r,
3835
+ swap: i,
3836
+ insert: a,
3837
+ update: s,
3838
+ replace: o,
3839
+ prepend: c,
3840
+ move: l
3841
+ };
3842
+ }
3843
+ return t.expose({
3844
+ push: n,
3845
+ remove: r,
3846
+ swap: i,
3847
+ insert: a,
3848
+ update: s,
3849
+ replace: o,
3850
+ prepend: c,
3851
+ move: l
3852
+ }), () => Jr(void 0, t, d);
3853
+ }
3854
+ }), c({
3855
+ name: "ErrorMessage",
3856
+ props: {
3857
+ as: {
3858
+ type: String,
3859
+ default: void 0
3860
+ },
3861
+ name: {
3862
+ type: String,
3863
+ required: !0
3864
+ }
3865
+ },
3866
+ setup(e, n) {
3867
+ let r = d(mr, void 0), i = t(() => r?.errors.value[e.name]);
3868
+ function a() {
3869
+ return { message: i.value };
3870
+ }
3871
+ return () => {
3872
+ if (!i.value) return;
3873
+ let t = e.as ? ee(e.as) : e.as, r = Jr(t, n, a), o = Object.assign({ role: "alert" }, n.attrs);
3874
+ return !t && (Array.isArray(r) || !r) && r?.length ? r : (Array.isArray(r) || !r) && !r?.length ? u(t || "span", o, i.value) : u(t, o, r);
3875
+ };
3876
+ }
3877
+ });
3878
+ //#endregion
3879
+ //#region src/components/Forms/RadioGroup.vue?vue&type=script&setup=true&lang.ts
3880
+ var ra = { class: "fields" }, ia = [
3881
+ "id",
3882
+ "checked",
3883
+ "name",
3884
+ "value"
3885
+ ], aa = ["for"], oa = /*#__PURE__*/ H(/* @__PURE__ */ c({
3886
+ __name: "RadioGroup",
3887
+ props: {
3888
+ name: {},
3889
+ title: {},
3890
+ options: {}
3891
+ },
3892
+ setup(t) {
3893
+ F((e) => ({ ff4c354a: P(f).solid }));
3894
+ let n = t, r = I(), { name: o } = M(n), { value: c, handleChange: l, errorMessage: u } = Bi(o), d = { change: l }, { colors: f } = V();
3895
+ return (n, l) => (b(), i("fieldset", null, [
3896
+ a("legend", null, k(t.title), 1),
3897
+ a("div", ra, [(b(!0), i(e, null, T(t.options, (e, t) => (b(), i("div", {
3898
+ key: e.value,
3899
+ class: "field"
3900
+ }, [a("input", m({
3901
+ id: `${P(r)}-${t}`,
3902
+ type: "radio",
3903
+ checked: P(c) === e.value,
3904
+ name: P(o),
3905
+ value: e.value
3906
+ }, A(d, !0)), null, 16, ia), a("label", { for: `${P(r)}-${t}` }, k(e.title), 9, aa)]))), 128))]),
3907
+ s($n, { "error-message": P(u) }, null, 8, ["error-message"])
3908
+ ]));
3909
+ }
3910
+ }), [["__scopeId", "data-v-63eb0053"]]), sa = [
3911
+ "id",
3912
+ "value",
3913
+ "name"
3914
+ ], ca = ["value"], la = /*#__PURE__*/ H(/* @__PURE__ */ c({
3915
+ __name: "SelectField",
3916
+ props: {
3917
+ name: {},
3918
+ title: {},
3919
+ options: {}
3920
+ },
3921
+ setup(t) {
3922
+ F((e) => ({ v265bc4d1: P(p).fg }));
3923
+ let r = t, o = I(), { name: c } = M(r), { value: l, handleChange: u, errorMessage: d } = Bi(c, void 0, { validateOnValueUpdate: !1 }), f = { change: u }, { colors: p } = V();
3924
+ return (r, u) => {
3925
+ let p = D("selectedcontent");
3926
+ return b(), n(tr, {
3927
+ id: P(o),
3928
+ title: t.title,
3929
+ "error-message": P(d)
3930
+ }, {
3931
+ default: z(() => [a("select", m({
3932
+ id: P(o),
3933
+ value: P(l),
3934
+ name: P(c)
3935
+ }, A(f, !0)), [a("button", null, [s(p), s(P(Kt), {
3936
+ icon: "solar:alt-arrow-down-outline",
3937
+ class: "icon"
3938
+ })]), (b(!0), i(e, null, T(t.options, (e) => (b(), i("option", {
3939
+ key: e.value,
3940
+ value: e.value
3941
+ }, k(e.title), 9, ca))), 128))], 16, sa)]),
3942
+ _: 1
3943
+ }, 8, [
3944
+ "id",
3945
+ "title",
3946
+ "error-message"
3947
+ ]);
3948
+ };
3949
+ }
3950
+ }), [["__scopeId", "data-v-a7da80f3"]]), ua = [
3951
+ "id",
3952
+ "value",
3953
+ "name",
3954
+ "placeholder"
3955
+ ], da = /* @__PURE__ */ c({
3956
+ __name: "TextareaField",
3957
+ props: {
3958
+ title: {},
3959
+ name: {},
3960
+ placeholder: {}
3961
+ },
3962
+ setup(e) {
3963
+ let t = e, r = I(), { name: i } = M(t), { value: o, handleBlur: s, handleChange: c, errorMessage: l } = Bi(i, void 0, { validateOnValueUpdate: !1 }), u = {
3964
+ blur: (e) => s(e, !0),
3965
+ change: c,
3966
+ input: (e) => c(e, !!l.value)
3967
+ };
3968
+ return (t, s) => (b(), n(tr, {
3969
+ id: P(r),
3970
+ title: e.title,
3971
+ name: P(i),
3972
+ "error-message": P(l)
3973
+ }, {
3974
+ default: z(() => [a("textarea", m({
3975
+ id: P(r),
3976
+ value: P(o),
3977
+ name: P(i),
3978
+ placeholder: e.placeholder
3979
+ }, A(u, !0)), null, 16, ua)]),
3980
+ _: 1
3981
+ }, 8, [
3982
+ "id",
3983
+ "title",
3984
+ "name",
3985
+ "error-message"
3986
+ ]));
3987
+ }
3988
+ }), fa = /*#__PURE__*/ H(/* @__PURE__ */ c({
3989
+ __name: "FormFieldset",
3990
+ props: {
3991
+ title: {},
3992
+ columns: { default: 1 }
3993
+ },
3994
+ setup(e) {
3995
+ return F((e) => ({ v003ca58a: e.columns })), (t, n) => (b(), i("fieldset", null, [a("legend", null, k(e.title), 1), E(t.$slots, "default", {}, void 0, !0)]));
3996
+ }
3997
+ }), [["__scopeId", "data-v-702389ce"]]), pa = { class: "field" }, ma = ["placeholder"], ha = /*#__PURE__*/ H(/* @__PURE__ */ c({
3998
+ __name: "SearchField",
3999
+ props: /*@__PURE__*/ p({ placeholder: {} }, {
4000
+ modelValue: { required: !0 },
4001
+ modelModifiers: {}
4002
+ }),
4003
+ emits: ["update:modelValue"],
4004
+ setup(e) {
4005
+ let t = L(e, "modelValue");
4006
+ return (n, r) => (b(), i("div", pa, [B(a("input", {
4007
+ "onUpdate:modelValue": r[0] ||= (e) => t.value = e,
4008
+ placeholder: e.placeholder,
4009
+ name: "search",
4010
+ type: "search"
4011
+ }, null, 8, ma), [[ne, t.value]]), s(P(Kt), { icon: "solar:minimalistic-magnifer-outline" })]));
4012
+ }
4013
+ }), [["__scopeId", "data-v-2f317fdb"]]), ga = [
4014
+ "id",
4015
+ "name",
4016
+ "type",
4017
+ "autocomplete",
4018
+ "value",
4019
+ "placeholder"
4020
+ ], _a = /* @__PURE__ */ c({
4021
+ __name: "TextField",
4022
+ props: {
4023
+ type: { default: "text" },
4024
+ autocomplete: { default: void 0 },
4025
+ title: {},
4026
+ name: {},
4027
+ placeholder: { default: void 0 }
4028
+ },
4029
+ setup(e) {
4030
+ let t = e, r = I(), { name: i } = M(t), { value: o, handleBlur: s, handleChange: c, errorMessage: l } = Bi(i, void 0, { validateOnValueUpdate: !1 }), u = {
4031
+ blur: (e) => s(e, !0),
4032
+ change: c,
4033
+ input: (e) => c(e, !!l.value)
4034
+ };
4035
+ return (t, s) => (b(), n(tr, {
4036
+ id: P(r),
4037
+ title: e.title,
4038
+ "error-message": P(l)
4039
+ }, {
4040
+ default: z(() => [a("input", m({
4041
+ id: P(r),
4042
+ name: P(i),
4043
+ type: e.type,
4044
+ autocomplete: e.autocomplete,
4045
+ value: P(o),
4046
+ placeholder: e.placeholder
4047
+ }, A(u, !0)), null, 16, ga)]),
4048
+ _: 1
4049
+ }, 8, [
4050
+ "id",
4051
+ "title",
4052
+ "error-message"
4053
+ ]));
4054
+ }
4055
+ });
4056
+ //#endregion
4057
+ export { zn as AppBreadcrumb, ce as AppButton, nn as AppCarousel, Un as AppDialog, Zn as AppForm, Jt as AppNotification, Kn as AppPopover, en as AppTabs, rn as CenterWrapper, qn as ClickableWrapper, $n as FormErrorMessage, tr as FormField, fa as FormFieldset, oa as RadioGroup, ln as ScrollSpy, ha as SearchField, la as SelectField, Yn as SummaryDetails, _a as TextField, da as TextareaField };