@sfxcode/formkit-primevue 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { defineComponent as P, getCurrentInstance as zt, watch as me, watchEffect as le, reactive as yn, h as Ce, ref as Le, inject as Se, computed as M, provide as vn, toRef as hn, onBeforeUnmount as _n, isRef as He, isReactive as kt, toRaw as gn, markRaw as $n, createTextVNode as wn, resolveComponent as T, openBlock as A, createElementBlock as x, createVNode as D, unref as a, toDisplayString as be, createCommentVNode as se, normalizeStyle as fe, normalizeClass as q, createElementVNode as kn } from "vue";
2
- const Cn = [
1
+ import { defineComponent as x, getCurrentInstance as lt, watch as ye, watchEffect as ae, reactive as yn, onUnmounted as vn, h as Ae, ref as Me, inject as Oe, onMounted as hn, computed as M, provide as _n, toRef as gn, onBeforeUnmount as $n, markRaw as wn, isRef as kn, createTextVNode as Cn, resolveComponent as E, openBlock as A, createElementBlock as O, createVNode as T, unref as a, toDisplayString as ce, createCommentVNode as oe, normalizeStyle as pe, normalizeClass as U, createElementVNode as Bt, Fragment as Sn, renderList as Vn } from "vue";
2
+ const zt = [
3
3
  "__key",
4
4
  "__init",
5
5
  "__shim",
@@ -7,17 +7,17 @@ const Cn = [
7
7
  "__index",
8
8
  "__prevKey"
9
9
  ];
10
- function Ze() {
10
+ function Je() {
11
11
  return Math.random().toString(36).substring(2, 15);
12
12
  }
13
- function Sn(e, i) {
13
+ function In(e, i) {
14
14
  const t = e instanceof Set ? e : new Set(e);
15
15
  return i && i.forEach((n) => t.add(n)), [...t];
16
16
  }
17
- function E(e, i) {
17
+ function j(e, i) {
18
18
  return Object.prototype.hasOwnProperty.call(e, i);
19
19
  }
20
- function Oe(e, i, t = !0, n = ["__key"]) {
20
+ function ue(e, i, t = !0, n = ["__key"]) {
21
21
  if (e === i)
22
22
  return !0;
23
23
  if (typeof i == "object" && typeof e == "object") {
@@ -27,26 +27,43 @@ function Oe(e, i, t = !0, n = ["__key"]) {
27
27
  if ((l in e || l in i) && e[l] !== i[l])
28
28
  return !1;
29
29
  for (const l in e)
30
- if (!(l in i) || e[l] !== i[l] && !t || t && !Oe(e[l], i[l], t, n))
30
+ if (!(l in i) || e[l] !== i[l] && !t || t && !ue(e[l], i[l], t, n))
31
31
  return !1;
32
32
  return !0;
33
33
  }
34
34
  return !1;
35
35
  }
36
- function it(e) {
36
+ function wt(e) {
37
+ const i = typeof e;
38
+ if (i === "number")
39
+ return !1;
40
+ if (e === void 0)
41
+ return !0;
42
+ if (i === "string")
43
+ return e === "";
44
+ if (i === "object") {
45
+ if (e === null)
46
+ return !0;
47
+ for (const t in e)
48
+ return !1;
49
+ return !(e instanceof RegExp || e instanceof Date);
50
+ }
51
+ return !1;
52
+ }
53
+ function at(e) {
37
54
  return Object.prototype.toString.call(e) === "[object Object]";
38
55
  }
39
- function lt(e) {
40
- return it(e) || Array.isArray(e);
56
+ function ct(e) {
57
+ return at(e) || Array.isArray(e);
41
58
  }
42
- function ye(e) {
43
- if (it(e) === !1 || e.__FKNode__ || e.__POJO__ === !1)
59
+ function _e(e) {
60
+ if (at(e) === !1 || e.__FKNode__ || e.__POJO__ === !1)
44
61
  return !1;
45
62
  const i = e.constructor;
46
63
  if (i === void 0)
47
64
  return !0;
48
65
  const t = i.prototype;
49
- return !(it(t) === !1 || t.hasOwnProperty("isPrototypeOf") === !1);
66
+ return !(at(t) === !1 || t.hasOwnProperty("isPrototypeOf") === !1);
50
67
  }
51
68
  function Ye(e, i, t = !1, n = !1) {
52
69
  if (i === null)
@@ -55,21 +72,21 @@ function Ye(e, i, t = !1, n = !1) {
55
72
  if (typeof i == "string")
56
73
  return i;
57
74
  for (const s in e)
58
- if (E(i, s) && (i[s] !== void 0 || !n)) {
75
+ if (j(i, s) && (i[s] !== void 0 || !n)) {
59
76
  if (t && Array.isArray(e[s]) && Array.isArray(i[s])) {
60
77
  l[s] = e[s].concat(i[s]);
61
78
  continue;
62
79
  }
63
80
  if (i[s] === void 0)
64
81
  continue;
65
- ye(e[s]) && ye(i[s]) ? l[s] = Ye(e[s], i[s], t, n) : l[s] = i[s];
82
+ _e(e[s]) && _e(i[s]) ? l[s] = Ye(e[s], i[s], t, n) : l[s] = i[s];
66
83
  } else
67
84
  l[s] = e[s];
68
85
  for (const s in i)
69
- !E(l, s) && i[s] !== void 0 && (l[s] = i[s]);
86
+ !j(l, s) && i[s] !== void 0 && (l[s] = i[s]);
70
87
  return l;
71
88
  }
72
- function Vn(e) {
89
+ function Ln(e) {
73
90
  if (e[0] !== '"' && e[0] !== "'" || e[0] !== e[e.length - 1])
74
91
  return !1;
75
92
  const i = e[0];
@@ -78,7 +95,7 @@ function Vn(e) {
78
95
  return !1;
79
96
  return !0;
80
97
  }
81
- function In(e) {
98
+ function An(e) {
82
99
  if (!e.length)
83
100
  return "";
84
101
  let i = "", t = "";
@@ -88,13 +105,13 @@ function In(e) {
88
105
  }
89
106
  return i;
90
107
  }
91
- function ce(...e) {
108
+ function me(...e) {
92
109
  return e.reduce((i, t) => {
93
110
  const { value: n, name: l, modelValue: s, config: r, plugins: o, ...u } = t;
94
111
  return Object.assign(i, u);
95
112
  }, {});
96
113
  }
97
- function Ln(e) {
114
+ function On(e) {
98
115
  const i = [];
99
116
  let t = "", n = 0, l = "", s = "";
100
117
  for (let r = 0; r < e.length; r++) {
@@ -103,13 +120,13 @@ function Ln(e) {
103
120
  }
104
121
  return t && i.push(t), i;
105
122
  }
106
- function Ct(e, i) {
123
+ function kt(e, i) {
107
124
  const t = {}, n = i.filter((s) => s instanceof RegExp), l = new Set(i);
108
125
  for (const s in e)
109
126
  !l.has(s) && !n.some((r) => r.test(s)) && (t[s] = e[s]);
110
127
  return t;
111
128
  }
112
- function St(e, i) {
129
+ function Ct(e, i) {
113
130
  const t = {}, n = i.filter((l) => l instanceof RegExp);
114
131
  return i.forEach((l) => {
115
132
  l instanceof RegExp || (t[l] = e[l]);
@@ -117,17 +134,25 @@ function St(e, i) {
117
134
  n.some((s) => s.test(l)) && (t[l] = e[l]);
118
135
  }), t;
119
136
  }
120
- function Ee(e) {
137
+ function Fe(e) {
121
138
  return e.replace(/-([a-z0-9])/gi, (i, t) => t.toUpperCase());
122
139
  }
123
- function Wt(e) {
140
+ function Ut(e) {
124
141
  return e.replace(/([a-z0-9])([A-Z])/g, (i, t, n) => t + "-" + n.toLowerCase()).replace(" ", "-").toLowerCase();
125
142
  }
126
- function Ve(e, i = Cn) {
143
+ function Pn(e, i = zt) {
144
+ if (e !== null && typeof e == "object") {
145
+ let t;
146
+ if (Array.isArray(e) ? t = [...e] : _e(e) && (t = { ...e }), t)
147
+ return Mn(e, t, i), t;
148
+ }
149
+ return e;
150
+ }
151
+ function Pe(e, i = zt) {
127
152
  if (e === null || e instanceof RegExp || e instanceof Date || e instanceof Map || e instanceof Set || typeof File == "function" && e instanceof File)
128
153
  return e;
129
154
  let t;
130
- Array.isArray(e) ? t = e.map((n) => typeof n == "object" ? Ve(n, i) : n) : t = Object.keys(e).reduce((n, l) => (n[l] = typeof e[l] == "object" ? Ve(e[l], i) : e[l], n), {});
155
+ Array.isArray(e) ? t = e.map((n) => typeof n == "object" ? Pe(n, i) : n) : t = Object.keys(e).reduce((n, l) => (n[l] = typeof e[l] == "object" ? Pe(e[l], i) : e[l], n), {});
131
156
  for (const n of i)
132
157
  n in e && Object.defineProperty(t, n, {
133
158
  enumerable: !1,
@@ -135,35 +160,50 @@ function Ve(e, i = Cn) {
135
160
  });
136
161
  return t;
137
162
  }
138
- function ue(e) {
139
- return typeof e == "object" ? Ve(e) : e;
163
+ function de(e) {
164
+ return typeof e == "object" ? Pe(e) : e;
140
165
  }
141
- function On(e, i) {
166
+ function xn(e, i) {
142
167
  if (!e || typeof e != "object")
143
168
  return null;
144
169
  const t = i.split(".");
145
170
  let n = e;
146
171
  for (const l in t) {
147
172
  const s = t[l];
148
- if (E(n, s) && (n = n[s]), +l === t.length - 1)
173
+ if (j(n, s) && (n = n[s]), +l === t.length - 1)
149
174
  return n;
150
175
  if (!n || typeof n != "object")
151
176
  return null;
152
177
  }
153
178
  return null;
154
179
  }
155
- function Q(e) {
180
+ function Y(e) {
156
181
  return e !== void 0 && e !== "false" && e !== !1 ? !0 : void 0;
157
182
  }
158
- function Ie(e) {
183
+ function xe(e) {
159
184
  return Object.isFrozen(e) ? e : Object.defineProperty(e, "__init", {
160
185
  enumerable: !1,
161
186
  value: !0
162
187
  });
163
188
  }
164
- function ct(e) {
189
+ function dt(e) {
165
190
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]/g, " ").trim().replace(/\s+/g, "-");
166
191
  }
192
+ function Mn(e, i, t) {
193
+ for (const n of t)
194
+ n in e && Object.defineProperty(i, n, {
195
+ enumerable: !1,
196
+ value: e[n]
197
+ });
198
+ return i;
199
+ }
200
+ function jn(e) {
201
+ let i = !1;
202
+ return (...t) => {
203
+ if (!i)
204
+ return i = !0, queueMicrotask(() => i = !1), e(...t);
205
+ };
206
+ }
167
207
  function pt() {
168
208
  const e = [];
169
209
  let i = 0;
@@ -176,7 +216,7 @@ function pt() {
176
216
  s > -1 && e.splice(s, 1);
177
217
  }, t;
178
218
  }
179
- function Ut() {
219
+ function Kt() {
180
220
  const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
181
221
  let t;
182
222
  const n = (l, s) => {
@@ -188,14 +228,16 @@ function Ut() {
188
228
  (s.origin === l || r.modifiers.includes("deep")) && r.listener(s);
189
229
  }), s.bubble && l.bubble(s);
190
230
  };
191
- return n.on = (l, s) => {
192
- const [r, ...o] = l.split("."), u = s.receipt || Ze(), b = {
231
+ return n.flush = () => {
232
+ e.clear(), i.clear(), t == null || t.clear();
233
+ }, n.on = (l, s) => {
234
+ const [r, ...o] = l.split("."), u = s.receipt || Je(), d = {
193
235
  modifiers: o,
194
236
  event: r,
195
237
  listener: s,
196
238
  receipt: u
197
239
  };
198
- return e.has(r) ? e.get(r).push(b) : e.set(r, [b]), i.has(u) ? i.get(u).push(r) : i.set(u, [r]), u;
240
+ return e.has(r) ? e.get(r).push(d) : e.set(r, [d]), i.has(u) ? i.get(u).push(r) : i.set(u, [r]), u;
199
241
  }, n.off = (l) => {
200
242
  var s;
201
243
  i.has(l) && ((s = i.get(l)) === null || s === void 0 || s.forEach((r) => {
@@ -211,7 +253,7 @@ function Ut() {
211
253
  t = void 0, s.forEach(([r, o]) => n(r, o)), l && l.walk((r) => r._e.play());
212
254
  }, n;
213
255
  }
214
- function An(e, i, t, n, l = !0) {
256
+ function En(e, i, t, n, l = !0) {
215
257
  return i._e(e, {
216
258
  payload: n,
217
259
  name: t,
@@ -219,33 +261,33 @@ function An(e, i, t, n, l = !0) {
219
261
  origin: e
220
262
  }), e;
221
263
  }
222
- function xn(e, i, t) {
223
- return Je(e.parent) && e.parent._e(e.parent, t), e;
264
+ function Rn(e, i, t) {
265
+ return Qe(e.parent) && e.parent._e(e.parent, t), e;
224
266
  }
225
- function Pn(e, i, t, n) {
267
+ function Fn(e, i, t, n) {
226
268
  return i._e.on(t, n);
227
269
  }
228
- function En(e, i, t) {
270
+ function Tn(e, i, t) {
229
271
  return i._e.off(t), e;
230
272
  }
231
- const dt = pt();
232
- dt((e, i) => (e.message || (e.message = `E${e.code}`), i(e)));
233
273
  const mt = pt();
234
- mt((e, i) => {
274
+ mt((e, i) => (e.message || (e.message = `E${e.code}`), i(e)));
275
+ const bt = pt();
276
+ bt((e, i) => {
235
277
  e.message || (e.message = `W${e.code}`);
236
278
  const t = i(e);
237
279
  return console && typeof console.warn == "function" && console.warn(t.message), t;
238
280
  });
239
- function Ae(e, i = {}) {
240
- mt.dispatch({ code: e, data: i });
281
+ function je(e, i = {}) {
282
+ bt.dispatch({ code: e, data: i });
241
283
  }
242
- function N(e, i = {}) {
243
- throw Error(dt.dispatch({ code: e, data: i }).message);
284
+ function W(e, i = {}) {
285
+ throw Error(mt.dispatch({ code: e, data: i }).message);
244
286
  }
245
- function ae(e, i) {
287
+ function re(e, i) {
246
288
  const t = {
247
289
  blocking: !1,
248
- key: Ze(),
290
+ key: Je(),
249
291
  meta: {},
250
292
  type: "state",
251
293
  visible: !0,
@@ -253,32 +295,32 @@ function ae(e, i) {
253
295
  };
254
296
  return i && t.value && t.meta.localize !== !1 && (t.value = i.t(t), t.meta.locale = i.config.locale), t;
255
297
  }
256
- const Vt = {
257
- apply: Dn,
258
- set: Rn,
298
+ const St = {
299
+ apply: qn,
300
+ set: Bn,
259
301
  remove: qt,
260
- filter: Tn,
261
- reduce: Fn,
262
- release: Wn,
263
- touch: jn
302
+ filter: Un,
303
+ reduce: Kn,
304
+ release: Hn,
305
+ touch: zn
264
306
  };
265
- function Mn(e = !1) {
307
+ function Dn(e = !1) {
266
308
  const i = {};
267
309
  let t, n = e, l = [];
268
310
  const s = /* @__PURE__ */ new Map();
269
311
  let r;
270
312
  const o = new Proxy(i, {
271
313
  get(...u) {
272
- const [b, h] = u;
273
- return h === "buffer" ? n : h === "_b" ? l : h === "_m" ? s : h === "_r" ? r : E(Vt, h) ? Vt[h].bind(null, i, o, t) : Reflect.get(...u);
314
+ const [d, _] = u;
315
+ return _ === "buffer" ? n : _ === "_b" ? l : _ === "_m" ? s : _ === "_r" ? r : j(St, _) ? St[_].bind(null, i, o, t) : Reflect.get(...u);
274
316
  },
275
- set(u, b, h) {
276
- return b === "_n" ? (t = h, r === "__n" && Nt(t, o), !0) : b === "_b" ? (l = h, !0) : b === "buffer" ? (n = h, !0) : b === "_r" ? (r = h, !0) : (N(101, t), !1);
317
+ set(u, d, _) {
318
+ return d === "_n" ? (t = _, r === "__n" && Wt(t, o), !0) : d === "_b" ? (l = _, !0) : d === "buffer" ? (n = _, !0) : d === "_r" ? (r = _, !0) : (W(101, t), !1);
277
319
  }
278
320
  });
279
321
  return o;
280
322
  }
281
- function Rn(e, i, t, n) {
323
+ function Bn(e, i, t, n) {
282
324
  if (i.buffer)
283
325
  return i._b.push([[n]]), i;
284
326
  if (e[n.key] !== n) {
@@ -286,38 +328,38 @@ function Rn(e, i, t, n) {
286
328
  const s = n.value;
287
329
  n.value = t.t(n), n.value !== s && (n.meta.locale = t.props.locale);
288
330
  }
289
- const l = `message-${E(e, n.key) ? "updated" : "added"}`;
331
+ const l = `message-${j(e, n.key) ? "updated" : "added"}`;
290
332
  e[n.key] = Object.freeze(t.hook.message.dispatch(n)), t.emit(l, n);
291
333
  }
292
334
  return i;
293
335
  }
294
- function jn(e, i) {
336
+ function zn(e, i) {
295
337
  for (const t in e) {
296
338
  const n = { ...e[t] };
297
339
  i.set(n);
298
340
  }
299
341
  }
300
342
  function qt(e, i, t, n) {
301
- if (E(e, n)) {
343
+ if (j(e, n)) {
302
344
  const l = e[n];
303
345
  delete e[n], t.emit("message-removed", l);
304
346
  }
305
347
  return i.buffer === !0 && (i._b = i._b.filter((l) => (l[0] = l[0].filter((s) => s.key !== n), l[1] || l[0].length))), i;
306
348
  }
307
- function Tn(e, i, t, n, l) {
349
+ function Un(e, i, t, n, l) {
308
350
  for (const s in e) {
309
351
  const r = e[s];
310
352
  (!l || r.type === l) && !n(r) && qt(e, i, t, s);
311
353
  }
312
354
  }
313
- function Fn(e, i, t, n, l) {
355
+ function Kn(e, i, t, n, l) {
314
356
  for (const s in e) {
315
357
  const r = e[s];
316
358
  l = n(l, r);
317
359
  }
318
360
  return l;
319
361
  }
320
- function Dn(e, i, t, n, l) {
362
+ function qn(e, i, t, n, l) {
321
363
  if (Array.isArray(n)) {
322
364
  if (i.buffer) {
323
365
  i._b.push([n, l]);
@@ -328,12 +370,12 @@ function Dn(e, i, t, n, l) {
328
370
  } else
329
371
  for (const s in n) {
330
372
  const r = t.at(s);
331
- r ? r.store.apply(n[s], l) : zn(t, i, s, n[s], l);
373
+ r ? r.store.apply(n[s], l) : Nn(t, i, s, n[s], l);
332
374
  }
333
375
  }
334
- function Bn(e, ...i) {
335
- const t = `${e.name}-set`, n = (l) => ae({
336
- key: ct(l),
376
+ function Wn(e, ...i) {
377
+ const t = `${e.name}-set`, n = (l) => re({
378
+ key: dt(l),
337
379
  type: "error",
338
380
  value: l,
339
381
  meta: { source: t, autoClear: !0 }
@@ -349,12 +391,12 @@ function Bn(e, ...i) {
349
391
  }
350
392
  });
351
393
  }
352
- function zn(e, i, t, n, l) {
394
+ function Nn(e, i, t, n, l) {
353
395
  var s;
354
396
  const r = i._m;
355
- r.has(t) || r.set(t, []), i._r || (i._r = Nt(e, i)), (s = r.get(t)) === null || s === void 0 || s.push([n, l]);
397
+ r.has(t) || r.set(t, []), i._r || (i._r = Wt(e, i)), (s = r.get(t)) === null || s === void 0 || s.push([n, l]);
356
398
  }
357
- function Nt(e, i) {
399
+ function Wt(e, i) {
358
400
  return e.on("child.deep", ({ payload: t }) => {
359
401
  i._m.forEach((n, l) => {
360
402
  e.at(l) === t && (n.forEach(([s, r]) => {
@@ -363,29 +405,29 @@ function Nt(e, i) {
363
405
  }), i._m.size === 0 && i._r && (e.off(i._r), i._r = void 0);
364
406
  });
365
407
  }
366
- function Wn(e, i) {
408
+ function Hn(e, i) {
367
409
  i.buffer = !1, i._b.forEach(([t, n]) => i.apply(t, n)), i._b = [];
368
410
  }
369
- function Un() {
411
+ function Zn() {
370
412
  const e = {};
371
413
  let i;
372
414
  return {
373
- count: (...t) => qn(i, e, ...t),
415
+ count: (...t) => Jn(i, e, ...t),
374
416
  init(t) {
375
- i = t, t.on("message-added.deep", It(e, 1)), t.on("message-removed.deep", It(e, -1));
417
+ i = t, t.on("message-added.deep", Vt(e, 1)), t.on("message-removed.deep", Vt(e, -1));
376
418
  },
377
- merge: (t) => Lt(i, e, t),
419
+ merge: (t) => It(i, e, t),
378
420
  settled(t) {
379
- return E(e, t) ? e[t].promise : Promise.resolve();
421
+ return j(e, t) ? e[t].promise : Promise.resolve();
380
422
  },
381
- unmerge: (t) => Lt(i, e, t, !0),
423
+ unmerge: (t) => It(i, e, t, !0),
382
424
  value(t) {
383
- return E(e, t) ? e[t].count : 0;
425
+ return j(e, t) ? e[t].count : 0;
384
426
  }
385
427
  };
386
428
  }
387
- function qn(e, i, t, n, l = 0) {
388
- if (n = Nn(n || t), !E(i, t)) {
429
+ function Jn(e, i, t, n, l = 0) {
430
+ if (n = Yn(n || t), !j(i, t)) {
389
431
  const s = {
390
432
  condition: n,
391
433
  count: 0,
@@ -400,24 +442,24 @@ function qn(e, i, t, n, l = 0) {
400
442
  r.ledger.count(s.name, s.condition), l += r.ledger.value(s.name);
401
443
  });
402
444
  }
403
- return Kt(i[t], l).promise;
445
+ return Nt(i[t], l).promise;
404
446
  }
405
- function Nn(e) {
447
+ function Yn(e) {
406
448
  return typeof e == "function" ? e : (i) => i.type === e;
407
449
  }
408
- function Kt(e, i) {
450
+ function Nt(e, i) {
409
451
  const t = e.count, n = e.count + i;
410
452
  return e.count = n, t === 0 && n !== 0 ? (e.node.emit(`unsettled:${e.name}`, e.count, !1), e.promise = new Promise((l) => e.resolve = l)) : t !== 0 && n === 0 && (e.node.emit(`settled:${e.name}`, e.count, !1), e.resolve()), e.node.emit(`count:${e.name}`, e.count, !1), e;
411
453
  }
412
- function It(e, i) {
454
+ function Vt(e, i) {
413
455
  return (t) => {
414
456
  for (const n in e) {
415
457
  const l = e[n];
416
- l.condition(t.payload) && Kt(l, i);
458
+ l.condition(t.payload) && Nt(l, i);
417
459
  }
418
460
  };
419
461
  }
420
- function Lt(e, i, t, n = !1) {
462
+ function It(e, i, t, n = !1) {
421
463
  for (const l in i) {
422
464
  const s = i[l].condition;
423
465
  n || t.ledger.count(l, s);
@@ -428,19 +470,19 @@ function Lt(e, i, t, n = !1) {
428
470
  while (e);
429
471
  }
430
472
  }
431
- const bt = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new Map(), yt = Ut(), Kn = [];
432
- function Hn(e) {
433
- e.props.id && (bt.set(e.props.id, e), Me.set(e, e.props.id), yt(e, {
473
+ const yt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), vt = Kt(), Qn = [];
474
+ function Xn(e) {
475
+ e.props.id && (yt.set(e.props.id, e), Te.set(e, e.props.id), vt(e, {
434
476
  payload: e,
435
477
  name: e.props.id,
436
478
  bubble: !1,
437
479
  origin: e
438
480
  }));
439
481
  }
440
- function Zn(e) {
441
- if (Me.has(e)) {
442
- const i = Me.get(e);
443
- Me.delete(e), bt.delete(i), yt(e, {
482
+ function Gn(e) {
483
+ if (Te.has(e)) {
484
+ const i = Te.get(e);
485
+ Te.delete(e), yt.delete(i), vt(e, {
444
486
  payload: null,
445
487
  name: i,
446
488
  bubble: !1,
@@ -449,25 +491,25 @@ function Zn(e) {
449
491
  }
450
492
  }
451
493
  function Ht(e) {
452
- return bt.get(e);
494
+ return yt.get(e);
453
495
  }
454
- function Yn(e, i) {
455
- Kn.push(yt.on(e, i));
496
+ function ei(e, i) {
497
+ Qn.push(vt.on(e, i));
456
498
  }
457
- function Ot(e, i, t) {
499
+ function Lt(e, i, t) {
458
500
  let n = !0;
459
501
  return i in e.config._t ? n = !1 : e.emit(`config:${i}`, t, !1), i in e.props || (e.emit("prop", { prop: i, value: t }), e.emit(`prop:${i}`, t)), n;
460
502
  }
461
- function Jn(e) {
503
+ function ti(e) {
462
504
  const i = document.getElementById(e);
463
505
  if (i instanceof HTMLFormElement) {
464
506
  const t = new Event("submit", { cancelable: !0, bubbles: !0 });
465
507
  i.dispatchEvent(t);
466
508
  return;
467
509
  }
468
- Ae(151, e);
510
+ je(151, e);
469
511
  }
470
- function Qn(e) {
512
+ function ni(e) {
471
513
  const i = (t) => {
472
514
  for (const n in t.store) {
473
515
  const l = t.store[n];
@@ -476,74 +518,75 @@ function Qn(e) {
476
518
  };
477
519
  i(e), e.walk(i);
478
520
  }
479
- function Gn(e, i) {
521
+ function ii(e, i) {
480
522
  const t = typeof e == "string" ? Ht(e) : e;
481
523
  if (t) {
482
- const n = (s) => ue(s.props.initial) || (s.type === "group" ? {} : s.type === "list" ? [] : void 0);
483
- t._e.pause(t), t.input(ue(i) || n(t), !1), t.walk((s) => s.input(n(s), !1));
484
- const l = n(t);
485
- return t.input(typeof l == "object" ? ue(i) || Ie(l) : l, !1), t._e.play(t), Qn(t), t.emit("reset", t), t;
524
+ const n = (s) => de(s.props.initial) || (s.type === "group" ? {} : s.type === "list" ? [] : void 0);
525
+ t._e.pause(t);
526
+ const l = de(i);
527
+ return i && !wt(i) && (t.props.initial = ct(l) ? xe(l) : l), t.input(n(t), !1), t.walk((s) => s.input(n(s), !1)), t.input(wt(l) && l ? l : n(t), !1), t._e.play(t), ni(t), t.emit("reset", t), t;
486
528
  }
487
- Ae(152, e);
529
+ je(152, e);
488
530
  }
489
- const Xn = {
531
+ const li = {
490
532
  delimiter: ".",
491
533
  delay: 0,
492
534
  locale: "en",
493
- rootClasses: (e) => ({ [`formkit-${Wt(e)}`]: !0 })
494
- }, Zt = Symbol("index"), at = Symbol("removed"), st = Symbol("moved"), Yt = Symbol("inserted");
495
- function ei(e) {
535
+ rootClasses: (e) => ({ [`formkit-${Ut(e)}`]: !0 })
536
+ }, Zt = Symbol("index"), st = Symbol("removed"), rt = Symbol("moved"), Jt = Symbol("inserted");
537
+ function ai(e) {
496
538
  return e.type === "list" && Array.isArray(e._value);
497
539
  }
498
- function Je(e) {
540
+ function Qe(e) {
499
541
  return e && typeof e == "object" && e.__FKNode__ === !0;
500
542
  }
501
- const Re = (e, i, t) => {
502
- N(102, [e, t]);
503
- }, ti = {
504
- _c: L(wi, Re, !1),
505
- add: L(mi),
506
- addProps: L(di),
507
- address: L(Ci, Re, !1),
508
- at: L(Si),
509
- bubble: L(xn),
510
- clearErrors: L(Ei),
511
- calm: L(fi),
512
- config: L(!1),
513
- define: L(pi),
514
- disturb: L(ui),
515
- destroy: L(ci),
516
- hydrate: L(oi),
517
- index: L($i, gi, !1),
518
- input: L(Qt),
519
- each: L(vi),
520
- emit: L(An),
521
- find: L(Ii),
522
- on: L(Pn),
523
- off: L(En),
524
- parent: L(!1, bi),
525
- plugins: L(!1),
526
- remove: L(yi),
527
- root: L(Oi, Re, !1),
528
- reset: L(Pi),
529
- resetConfig: L(_i),
530
- setErrors: L(en),
531
- submit: L(xi),
532
- t: L(Ai),
533
- use: L(vt),
534
- name: L(ki, !1, !1),
535
- walk: L(hi)
543
+ const De = (e, i, t) => {
544
+ W(102, [e, t]);
545
+ }, si = {
546
+ _c: S(Ii, De, !1),
547
+ add: S(_i),
548
+ addProps: S(hi),
549
+ address: S(Ai, De, !1),
550
+ at: S(Oi),
551
+ bubble: S(Rn),
552
+ clearErrors: S(Ti),
553
+ calm: S(bi),
554
+ config: S(!1),
555
+ define: S(vi),
556
+ disturb: S(mi),
557
+ destroy: S(yi),
558
+ extend: S(zi),
559
+ hydrate: S(di),
560
+ index: S(Vi, Si, !1),
561
+ input: S(Xt),
562
+ each: S(wi),
563
+ emit: S(En),
564
+ find: S(xi),
565
+ on: S(Fn),
566
+ off: S(Tn),
567
+ parent: S(!1, gi),
568
+ plugins: S(!1),
569
+ remove: S($i),
570
+ root: S(ji, De, !1),
571
+ reset: S(Fi),
572
+ resetConfig: S(Ci),
573
+ setErrors: S(tn),
574
+ submit: S(Ri),
575
+ t: S(Ei),
576
+ use: S(ht),
577
+ name: S(Li, !1, !1),
578
+ walk: S(ki)
536
579
  };
537
- function ni() {
538
- return new Map(Object.entries(ti));
580
+ function ri() {
581
+ return new Map(Object.entries(si));
539
582
  }
540
- function L(e, i, t = !0) {
583
+ function S(e, i, t = !0) {
541
584
  return {
542
585
  get: e ? (n, l) => t ? (...s) => e(n, l, ...s) : e(n, l) : !1,
543
- set: i !== void 0 ? i : Re.bind(null)
586
+ set: i !== void 0 ? i : De.bind(null)
544
587
  };
545
588
  }
546
- function ii() {
589
+ function oi() {
547
590
  const e = /* @__PURE__ */ new Map();
548
591
  return new Proxy(e, {
549
592
  get(i, t) {
@@ -551,161 +594,216 @@ function ii() {
551
594
  }
552
595
  });
553
596
  }
554
- let li = 0, ai = 0;
555
- function si(e) {
597
+ let Yt = 0, ui = 0;
598
+ function fi(e) {
556
599
  var i, t;
557
- return ((i = e.parent) === null || i === void 0 ? void 0 : i.type) === "list" ? Zt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++li}`;
600
+ return ((i = e.parent) === null || i === void 0 ? void 0 : i.type) === "list" ? Zt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++Yt}`;
558
601
  }
559
- function Jt(e) {
560
- return e.type === "group" ? Ie(e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}) : e.type === "list" ? Ie(Array.isArray(e.value) ? e.value : []) : e.value;
602
+ function Qt(e) {
603
+ return e.type === "group" ? xe(e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}) : e.type === "list" ? xe(Array.isArray(e.value) ? e.value : []) : e.value;
561
604
  }
562
- function Qt(e, i, t, n = !0) {
563
- return i._value = ri(e, e.hook.input.dispatch(t)), e.emit("input", i._value), i.isSettled && e.disturb(), n ? (i._tmo && clearTimeout(i._tmo), i._tmo = setTimeout(Be, e.props.delay, e, i)) : Be(e, i), i.settled;
605
+ function Xt(e, i, t, n = !0) {
606
+ return i._value = ci(e, e.hook.input.dispatch(t)), e.emit("input", i._value), e.isCreated && e.type === "input" && ue(i._value, i.value) ? (e.emit("commitRaw", i.value), i.settled) : (i.isSettled && e.disturb(), n ? (i._tmo && clearTimeout(i._tmo), i._tmo = setTimeout(Ue, e.props.delay, e, i)) : Ue(e, i), i.settled);
564
607
  }
565
- function ri(e, i) {
608
+ function ci(e, i) {
566
609
  switch (e.type) {
567
610
  case "input":
568
611
  break;
569
612
  case "group":
570
- (!i || typeof i != "object") && N(107, [e, i]);
613
+ (!i || typeof i != "object") && W(107, [e, i]);
571
614
  break;
572
615
  case "list":
573
- Array.isArray(i) || N(108, [e, i]);
616
+ Array.isArray(i) || W(108, [e, i]);
574
617
  break;
575
618
  }
576
619
  return i;
577
620
  }
578
- function Be(e, i, t = !0, n = !0) {
579
- i._value = i.value = e.hook.commit.dispatch(i._value), e.type !== "input" && n && e.hydrate(), e.emit("commit", i.value), t && e.calm();
621
+ function Ue(e, i, t = !0, n = !0) {
622
+ i._value = i.value = e.hook.commit.dispatch(i._value), e.type !== "input" && n && e.hydrate(), e.emit("commitRaw", i.value), e.emit("commit", i.value), t && e.calm();
580
623
  }
581
624
  function Gt(e, { name: i, value: t, from: n }) {
582
625
  if (!Object.isFrozen(e._value)) {
583
- if (ei(e)) {
584
- const l = t === at ? [] : t === st && typeof n == "number" ? e._value.splice(n, 1) : [t];
585
- e._value.splice(i, t === st || n === Yt ? 0 : 1, ...l);
626
+ if (ai(e)) {
627
+ const l = t === st ? [] : t === rt && typeof n == "number" ? e._value.splice(n, 1) : [t];
628
+ e._value.splice(i, t === rt || n === Jt ? 0 : 1, ...l);
586
629
  return;
587
630
  }
588
- t !== at ? e._value[i] = t : delete e._value[i];
631
+ t !== st ? e._value[i] = t : delete e._value[i];
589
632
  }
590
633
  }
591
- function oi(e, i) {
634
+ function di(e, i) {
592
635
  const t = i._value;
593
- return i.children.forEach((n) => {
636
+ return e.type === "list" && e.sync && pi(e, i), i.children.forEach((n) => {
594
637
  if (typeof t == "object")
595
638
  if (n.name in t) {
596
- const l = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ? Ie(t[n.name]) : t[n.name];
639
+ const l = n.type !== "input" || t[n.name] && typeof t[n.name] == "object" ? xe(t[n.name]) : t[n.name];
640
+ if (!n.isSettled || !ct(l) && ue(l, n._value))
641
+ return;
597
642
  n.input(l, !1);
598
643
  } else
599
644
  (e.type !== "list" || typeof n.name == "number") && Gt(i, { name: n.name, value: n.value }), t.__init || (n.type === "group" ? n.input({}, !1) : n.type === "list" ? n.input([], !1) : n.input(void 0, !1));
600
645
  }), e;
601
646
  }
602
- function ui(e, i) {
647
+ function pi(e, i) {
648
+ const t = e._value;
649
+ if (!Array.isArray(t))
650
+ return;
651
+ const n = [], l = new Set(i.children), s = /* @__PURE__ */ new Map();
652
+ t.forEach((o, u) => {
653
+ if (i.children[u] && i.children[u]._value === o)
654
+ n.push(i.children[u]), l.delete(i.children[u]);
655
+ else {
656
+ n.push(null);
657
+ const d = s.get(o) || [];
658
+ d.push(u), s.set(o, d);
659
+ }
660
+ }), l.size && s.size && l.forEach((o) => {
661
+ if (s.has(o._value)) {
662
+ const u = s.get(o._value), d = u.shift();
663
+ n[d] = o, l.delete(o), u.length || s.delete(o._value);
664
+ }
665
+ });
666
+ const r = [];
667
+ for (s.forEach((o) => {
668
+ r.push(...o);
669
+ }); l.size && r.length; ) {
670
+ const o = l.values().next().value, u = r.shift();
671
+ if (u === void 0)
672
+ break;
673
+ n[u] = o, l.delete(o);
674
+ }
675
+ r.forEach((o, u) => {
676
+ n[o] = Wi({ value: u });
677
+ }), l.size && l.forEach((o) => {
678
+ if (!("__FKP" in o)) {
679
+ const u = o._c.parent;
680
+ if (!u || Ni(u))
681
+ return;
682
+ u.ledger.unmerge(o), o._c.parent = null, o.destroy();
683
+ }
684
+ }), i.children = n;
685
+ }
686
+ function mi(e, i) {
603
687
  var t;
604
688
  return i._d <= 0 && (i.isSettled = !1, e.emit("settled", !1, !1), i.settled = new Promise((n) => {
605
689
  i._resolve = n;
606
690
  }), e.parent && ((t = e.parent) === null || t === void 0 || t.disturb())), i._d++, e;
607
691
  }
608
- function fi(e, i, t) {
692
+ function bi(e, i, t) {
609
693
  var n;
610
694
  if (t !== void 0 && e.type !== "input")
611
- return Gt(i, t), Be(e, i, !0, !1);
695
+ return Gt(i, t), Ue(e, i, !0, !1);
612
696
  i._d > 0 && i._d--, i._d === 0 && (i.isSettled = !0, e.emit("settled", !0, !1), e.parent && ((n = e.parent) === null || n === void 0 || n.calm({ name: e.name, value: i.value })), i._resolve && i._resolve(i.value));
613
697
  }
614
- function ci(e, i) {
615
- e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)), Zn(e), i._value = i.value = void 0, e.emit("destroyed", e);
698
+ function yi(e, i) {
699
+ e.emit("destroying", e), e.store.filter(() => !1), e.parent && (e.parent.emit("childRemoved", e), e.parent.remove(e)), Gn(e), e.emit("destroyed", e), i._e.flush(), i._value = i.value = void 0;
700
+ for (const t in i.context)
701
+ delete i.context[t];
702
+ i.plugins.clear(), i.context = null;
616
703
  }
617
- function pi(e, i, t) {
618
- i.type = t.type, i.props.definition = Ve(t), i.value = i._value = Jt({
704
+ function vi(e, i, t) {
705
+ i.type = t.type, i.props.definition = Pe(t), i.value = i._value = Qt({
619
706
  type: e.type,
620
707
  value: i.value
621
708
  }), t.forceTypeProp && (e.props.type && (e.props.originalType = e.props.type), i.props.type = t.forceTypeProp), t.family && (i.props.family = t.family), t.features && t.features.forEach((n) => n(e)), t.props && e.addProps(t.props), e.emit("defined", t);
622
709
  }
623
- function di(e, i, t) {
710
+ function hi(e, i, t) {
624
711
  var n;
625
712
  if (e.props.attrs) {
626
713
  const l = { ...e.props.attrs };
627
714
  e.props._emit = !1;
628
715
  for (const r in l) {
629
- const o = Ee(r);
716
+ const o = Fe(r);
630
717
  t.includes(o) && (e.props[o] = l[r], delete l[r]);
631
718
  }
632
- const s = ue(i._value);
633
- e.props.initial = e.type !== "input" ? Ie(s) : s, e.props._emit = !0, e.props.attrs = l, e.props.definition && (e.props.definition.props = [
719
+ const s = de(i._value);
720
+ e.props.initial = e.type !== "input" ? xe(s) : s, e.props._emit = !0, e.props.attrs = l, e.props.definition && (e.props.definition.props = [
634
721
  ...((n = e.props.definition) === null || n === void 0 ? void 0 : n.props) || [],
635
722
  ...t
636
723
  ]);
637
724
  }
638
725
  return e.emit("added-props", t), e;
639
726
  }
640
- function mi(e, i, t, n) {
641
- if (e.type === "input" && N(100, e), t.parent && t.parent !== e && t.parent.remove(t), i.children.includes(t) || (n !== void 0 && e.type === "list" ? (i.children.splice(n, 0, t), Array.isArray(e.value) && e.value.length < i.children.length && e.disturb().calm({
642
- name: n,
643
- value: t.value,
644
- from: Yt
645
- })) : i.children.push(t), t.isSettled || e.disturb()), t.parent !== e) {
727
+ function _i(e, i, t, n) {
728
+ if (e.type === "input" && W(100, e), t.parent && t.parent !== e && t.parent.remove(t), !i.children.includes(t)) {
729
+ if (n !== void 0 && e.type === "list") {
730
+ const l = i.children[n];
731
+ l && "__FKP" in l ? (t._c.uid = l.uid, i.children.splice(n, 1, t)) : i.children.splice(n, 0, t), Array.isArray(e.value) && e.value.length < i.children.length && e.disturb().calm({
732
+ name: n,
733
+ value: t.value,
734
+ from: Jt
735
+ });
736
+ } else
737
+ i.children.push(t);
738
+ t.isSettled || e.disturb();
739
+ }
740
+ if (t.parent !== e) {
646
741
  if (t.parent = e, t.parent !== e)
647
742
  return e.remove(t), t.parent.add(t), e;
648
743
  } else
649
744
  t.use(e.plugins);
650
- return Be(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
745
+ return Ue(e, i, !1), e.ledger.merge(t), e.emit("child", t), e;
651
746
  }
652
- function bi(e, i, t, n) {
653
- return Je(n) ? (e.parent && e.parent !== n && e.parent.remove(e), i.parent = n, e.resetConfig(), n.children.includes(e) ? e.use(n.plugins) : n.add(e), !0) : n === null ? (i.parent = null, !0) : !1;
747
+ function gi(e, i, t, n) {
748
+ return Qe(n) ? (e.parent && e.parent !== n && e.parent.remove(e), i.parent = n, e.resetConfig(), n.children.includes(e) ? e.use(n.plugins) : n.add(e), !0) : n === null ? (i.parent = null, !0) : !1;
654
749
  }
655
- function yi(e, i, t) {
750
+ function $i(e, i, t) {
656
751
  const n = i.children.indexOf(t);
657
752
  if (n !== -1) {
658
753
  t.isSettled && e.disturb(), i.children.splice(n, 1);
659
- let l = Q(t.props.preserve), s = t.parent;
754
+ let l = Y(t.props.preserve), s = t.parent;
660
755
  for (; l === void 0 && s; )
661
- l = Q(s.props.preserve), s = s.parent;
756
+ l = Y(s.props.preserve), s = s.parent;
662
757
  l ? e.calm() : e.calm({
663
758
  name: e.type === "list" ? n : t.name,
664
- value: at
759
+ value: st
665
760
  }), t.parent = null, t.config._rmn = t;
666
761
  }
667
762
  return e.ledger.unmerge(t), e;
668
763
  }
669
- function vi(e, i, t) {
670
- i.children.forEach((n) => t(n));
764
+ function wi(e, i, t) {
765
+ i.children.forEach((n) => !("__FKP" in n) && t(n));
671
766
  }
672
- function hi(e, i, t, n = !1) {
673
- i.children.forEach((l) => {
674
- (t(l) !== !1 || !n) && l.walk(t, n);
767
+ function ki(e, i, t, n = !1, l = !1) {
768
+ i.children.some((s) => {
769
+ if ("__FKP" in s)
770
+ return !1;
771
+ const r = t(s);
772
+ return n && r === !1 ? !0 : l && r === !1 ? !1 : s.walk(t, n, l);
675
773
  });
676
774
  }
677
- function _i(e, i) {
775
+ function Ci(e, i) {
678
776
  const t = e.parent || void 0;
679
- i.config = Xt(e.config._t, t), e.walk((n) => n.resetConfig());
777
+ i.config = en(e.config._t, t), e.walk((n) => n.resetConfig());
680
778
  }
681
- function vt(e, i, t, n = !0, l = !0) {
682
- return Array.isArray(t) || t instanceof Set ? (t.forEach((s) => vt(e, i, s)), e) : (i.plugins.has(t) || (l && typeof t.library == "function" && t.library(e), n && t(e) !== !1 && (i.plugins.add(t), e.children.forEach((s) => s.use(t)))), e);
779
+ function ht(e, i, t, n = !0, l = !0) {
780
+ return Array.isArray(t) || t instanceof Set ? (t.forEach((s) => ht(e, i, s)), e) : (i.plugins.has(t) || (l && typeof t.library == "function" && t.library(e), n && t(e) !== !1 && (i.plugins.add(t), e.children.forEach((s) => s.use(t)))), e);
683
781
  }
684
- function gi(e, i, t, n) {
685
- if (Je(e.parent)) {
782
+ function Si(e, i, t, n) {
783
+ if (Qe(e.parent)) {
686
784
  const l = e.parent.children, s = n >= l.length ? l.length - 1 : n < 0 ? 0 : n, r = l.indexOf(e);
687
- return r === -1 ? !1 : (l.splice(r, 1), l.splice(s, 0, e), e.parent.children = l, e.parent.type === "list" && e.parent.disturb().calm({ name: s, value: st, from: r }), !0);
785
+ return r === -1 ? !1 : (l.splice(r, 1), l.splice(s, 0, e), e.parent.children = l, e.parent.type === "list" && e.parent.disturb().calm({ name: s, value: rt, from: r }), !0);
688
786
  }
689
787
  return !1;
690
788
  }
691
- function $i(e) {
789
+ function Vi(e) {
692
790
  if (e.parent) {
693
791
  const i = [...e.parent.children].indexOf(e);
694
792
  return i === -1 ? e.parent.children.length : i;
695
793
  }
696
794
  return -1;
697
795
  }
698
- function wi(e, i) {
796
+ function Ii(e, i) {
699
797
  return i;
700
798
  }
701
- function ki(e, i) {
799
+ function Li(e, i) {
702
800
  var t;
703
801
  return ((t = e.parent) === null || t === void 0 ? void 0 : t.type) === "list" ? e.index : i.name !== Zt ? i.name : e.index;
704
802
  }
705
- function Ci(e, i) {
803
+ function Ai(e, i) {
706
804
  return i.parent ? i.parent.address.concat([e.name]) : [e.name];
707
805
  }
708
- function Si(e, i, t) {
806
+ function Oi(e, i, t) {
709
807
  const n = typeof t == "string" ? t.split(e.config.delimiter) : t;
710
808
  if (!n.length)
711
809
  return;
@@ -724,12 +822,12 @@ function Si(e, i, t) {
724
822
  s = e;
725
823
  break;
726
824
  default:
727
- s = s.children.find((o) => String(o.name) === String(r)) || Vi(s, r);
825
+ s = s.children.find((o) => !("__FKP" in o) && String(o.name) === String(r)) || Pi(s, r);
728
826
  }
729
827
  }
730
828
  return s || void 0;
731
829
  }
732
- function Vi(e, i) {
830
+ function Pi(e, i) {
733
831
  const t = String(i).match(/^(find)\((.*)\)$/);
734
832
  if (t) {
735
833
  const [, n, l] = t, s = l.split(",").map((r) => r.trim());
@@ -741,25 +839,27 @@ function Vi(e, i) {
741
839
  }
742
840
  }
743
841
  }
744
- function Ii(e, i, t, n) {
745
- return Li(e, t, n);
842
+ function xi(e, i, t, n) {
843
+ return Mi(e, t, n);
746
844
  }
747
- function Li(e, i, t = "name") {
845
+ function Mi(e, i, t = "name") {
748
846
  const n = typeof t == "string" ? (s) => s[t] == i : t, l = [e];
749
847
  for (; l.length; ) {
750
848
  const s = l.shift();
751
- if (n(s, i))
752
- return s;
753
- l.push(...s.children);
849
+ if (!("__FKP" in s)) {
850
+ if (n(s, i))
851
+ return s;
852
+ l.push(...s.children);
853
+ }
754
854
  }
755
855
  }
756
- function Oi(e) {
856
+ function ji(e) {
757
857
  let i = e;
758
858
  for (; i.parent; )
759
859
  i = i.parent;
760
860
  return i;
761
861
  }
762
- function Xt(e = {}, i) {
862
+ function en(e = {}, i) {
763
863
  let t;
764
864
  return new Proxy(e, {
765
865
  get(...n) {
@@ -779,7 +879,7 @@ function Xt(e = {}, i) {
779
879
  if (r !== void 0)
780
880
  return r;
781
881
  }
782
- return l === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : Xn[l];
882
+ return l === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : li[l];
783
883
  },
784
884
  set(...n) {
785
885
  const l = n[1], s = n[2];
@@ -787,53 +887,53 @@ function Xt(e = {}, i) {
787
887
  return t = s, e.rootConfig && e.rootConfig._add(t), !0;
788
888
  if (l === "_rmn")
789
889
  return e.rootConfig && e.rootConfig._rm(t), t = void 0, !0;
790
- if (!Oe(e[l], s, !1)) {
890
+ if (!ue(e[l], s, !1)) {
791
891
  const r = Reflect.set(...n);
792
- return t && (t.emit(`config:${l}`, s, !1), Ot(t, l, s), t.walk((o) => Ot(o, l, s), !0)), r;
892
+ return t && (t.emit(`config:${l}`, s, !1), Lt(t, l, s), t.walk((o) => Lt(o, l, s), !1, !0)), r;
793
893
  }
794
894
  return !0;
795
895
  }
796
896
  });
797
897
  }
798
- function Ai(e, i, t, n = "ui") {
898
+ function Ei(e, i, t, n = "ui") {
799
899
  const l = typeof t == "string" ? { key: t, value: t, type: n } : t, s = e.hook.text.dispatch(l);
800
900
  return e.emit("text", s, !1), s.value;
801
901
  }
802
- function xi(e) {
902
+ function Ri(e) {
803
903
  const i = e.name;
804
904
  do {
805
905
  if (e.props.isForm === !0)
806
906
  break;
807
- e.parent || N(106, i), e = e.parent;
907
+ e.parent || W(106, i), e = e.parent;
808
908
  } while (e);
809
- e.props.id && Jn(e.props.id);
909
+ e.props.id && ti(e.props.id);
810
910
  }
811
- function Pi(e, i, t) {
812
- return Gn(e, t);
911
+ function Fi(e, i, t) {
912
+ return ii(e, t);
813
913
  }
814
- function en(e, i, t, n) {
914
+ function tn(e, i, t, n) {
815
915
  const l = `${e.name}-set`, s = e.hook.setErrors.dispatch({ localErrors: t, childErrors: n });
816
- return Bn(e, s.localErrors, s.childErrors).forEach((r) => {
916
+ return Wn(e, s.localErrors, s.childErrors).forEach((r) => {
817
917
  e.store.apply(r, (o) => o.meta.source === l);
818
918
  }), e;
819
919
  }
820
- function Ei(e, i, t = !0, n) {
821
- return en(e, i, []), t && (n = n || `${e.name}-set`, e.walk((l) => {
920
+ function Ti(e, i, t = !0, n) {
921
+ return tn(e, i, []), t && (n = n || `${e.name}-set`, e.walk((l) => {
822
922
  l.store.filter((s) => !(s.type === "error" && s.meta && s.meta.source === n));
823
923
  })), e;
824
924
  }
825
- function Mi(e) {
826
- return E(e.props, "id") || (e.props.id = `input_${ai++}`), e;
925
+ function Di(e) {
926
+ return j(e.props, "id") || (e.props.id = `input_${ui++}`), e;
827
927
  }
828
- function Ri(e) {
928
+ function Bi(e) {
829
929
  const i = {
830
- initial: typeof e == "object" ? ue(e) : e
930
+ initial: typeof e == "object" ? de(e) : e
831
931
  };
832
932
  let t, n = !0;
833
933
  return new Proxy(i, {
834
934
  get(...l) {
835
935
  const [s, r] = l;
836
- if (E(i, r))
936
+ if (j(i, r))
837
937
  return Reflect.get(...l);
838
938
  if (t && typeof r == "string" && t.config[r] !== void 0)
839
939
  return t.config[r];
@@ -843,19 +943,22 @@ function Ri(e) {
843
943
  return t = r, !0;
844
944
  if (s === "_emit")
845
945
  return n = r, !0;
846
- const { prop: u, value: b } = t.hook.prop.dispatch({
946
+ const { prop: u, value: d } = t.hook.prop.dispatch({
847
947
  prop: s,
848
948
  value: r
849
949
  });
850
- if (!Oe(i[u], b, !1) || typeof b == "object") {
851
- const h = Reflect.set(l, u, b, o);
852
- return n && (t.emit("prop", { prop: u, value: b }), typeof u == "string" && t.emit(`prop:${u}`, b)), h;
950
+ if (!ue(i[u], d, !1) || typeof d == "object") {
951
+ const _ = Reflect.set(l, u, d, o);
952
+ return n && (t.emit("prop", { prop: u, value: d }), typeof u == "string" && t.emit(`prop:${u}`, d)), _;
853
953
  }
854
954
  return !0;
855
955
  }
856
956
  });
857
957
  }
858
- function ji(e, i) {
958
+ function zi(e, i, t, n) {
959
+ return i.traps.set(t, n), e;
960
+ }
961
+ function Ui(e, i) {
859
962
  if (e.props.definition)
860
963
  return e.define(e.props.definition);
861
964
  for (const t of i) {
@@ -864,43 +967,65 @@ function ji(e, i) {
864
967
  typeof t.library == "function" && t.library(e);
865
968
  }
866
969
  }
867
- function Ti(e) {
868
- const i = Jt(e), t = Xt(e.config || {}, e.parent);
970
+ function Ki(e) {
971
+ const i = Qt(e), t = en(e.config || {}, e.parent);
869
972
  return {
870
973
  _d: 0,
871
- _e: Ut(),
974
+ _e: Kt(),
975
+ uid: Symbol(),
872
976
  _resolve: !1,
873
977
  _tmo: !1,
874
978
  _value: i,
875
- children: Sn(e.children || []),
979
+ children: In(e.children || []),
876
980
  config: t,
877
- hook: ii(),
981
+ hook: oi(),
878
982
  isCreated: !1,
879
983
  isSettled: !0,
880
- ledger: Un(),
881
- name: si(e),
984
+ ledger: Zn(),
985
+ name: fi(e),
882
986
  parent: e.parent || null,
883
987
  plugins: /* @__PURE__ */ new Set(),
884
- props: Ri(i),
988
+ props: Bi(i),
885
989
  settled: Promise.resolve(i),
886
- store: Mn(!0),
887
- traps: ni(),
990
+ store: Dn(!0),
991
+ sync: e.sync || !1,
992
+ traps: ri(),
888
993
  type: e.type || "input",
889
994
  value: i
890
995
  };
891
996
  }
892
- function Fi(e, i) {
997
+ function qi(e, i) {
893
998
  var t;
894
- if (e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, i.props && Object.assign(e.props, i.props), e.props._emit = !0, ji(e, /* @__PURE__ */ new Set([
999
+ if (e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, i.props && Object.assign(e.props, i.props), e.props._emit = !0, Ui(e, /* @__PURE__ */ new Set([
895
1000
  ...i.plugins || [],
896
1001
  ...e.parent ? e.parent.plugins : []
897
1002
  ])), i.plugins)
898
1003
  for (const n of i.plugins)
899
- vt(e, e._c, n, !0, !1);
900
- return Mi(e), e.each((n) => e.add(n)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && N(100, e), Qt(e, e._c, e._value, !1), e.store.release(), !((t = i.props) === null || t === void 0) && t.id && Hn(e), e.emit("created", e), e.isCreated = !0, e;
1004
+ ht(e, e._c, n, !0, !1);
1005
+ return Di(e), e.each((n) => e.add(n)), e.parent && e.parent.add(e, i.index), e.type === "input" && e.children.length && W(100, e), Xt(e, e._c, e._value, !1), e.store.release(), !((t = i.props) === null || t === void 0) && t.id && Xn(e), e.emit("created", e), e.isCreated = !0, e;
901
1006
  }
902
- function Di(e) {
903
- const i = e || {}, t = Ti(i), n = new Proxy(t, {
1007
+ function Wi(e) {
1008
+ var i, t, n, l;
1009
+ return {
1010
+ __FKP: !0,
1011
+ uid: Symbol(),
1012
+ name: (i = e == null ? void 0 : e.name) !== null && i !== void 0 ? i : `p_${Yt++}`,
1013
+ value: (t = e == null ? void 0 : e.value) !== null && t !== void 0 ? t : null,
1014
+ _value: (n = e == null ? void 0 : e.value) !== null && n !== void 0 ? n : null,
1015
+ type: (l = e == null ? void 0 : e.type) !== null && l !== void 0 ? l : "input",
1016
+ use: () => {
1017
+ },
1018
+ input(s) {
1019
+ return this._value = s, this.value = s, Promise.resolve();
1020
+ },
1021
+ isSettled: !0
1022
+ };
1023
+ }
1024
+ function Ni(e) {
1025
+ return "__FKP" in e;
1026
+ }
1027
+ function Hi(e) {
1028
+ const i = e || {}, t = Ki(i), n = new Proxy(t, {
904
1029
  get(...l) {
905
1030
  const [, s] = l;
906
1031
  if (s === "__FKNode__")
@@ -913,27 +1038,27 @@ function Di(e) {
913
1038
  return o && o.set ? o.set(n, t, s, r) : Reflect.set(...l);
914
1039
  }
915
1040
  });
916
- return Fi(n, i);
917
- }
918
- function rt(e) {
919
- return typeof e != "string" && E(e, "$el");
1041
+ return qi(n, i);
920
1042
  }
921
1043
  function ot(e) {
922
- return typeof e != "string" && E(e, "$cmp");
1044
+ return typeof e != "string" && j(e, "$el");
923
1045
  }
924
- function pe(e) {
925
- return !e || typeof e == "string" ? !1 : E(e, "if") && E(e, "then");
1046
+ function ut(e) {
1047
+ return typeof e != "string" && j(e, "$cmp");
926
1048
  }
927
- function Bi(e) {
1049
+ function be(e) {
1050
+ return !e || typeof e == "string" ? !1 : j(e, "if") && j(e, "then");
1051
+ }
1052
+ function Zi(e) {
928
1053
  return typeof e != "string" && "$formkit" in e;
929
1054
  }
930
- function zi(e) {
1055
+ function Ji(e) {
931
1056
  if (typeof e == "string")
932
1057
  return {
933
1058
  $el: "text",
934
1059
  children: e
935
1060
  };
936
- if (Bi(e)) {
1061
+ if (Zi(e)) {
937
1062
  const { $formkit: i, for: t, if: n, children: l, bind: s, ...r } = e;
938
1063
  return Object.assign({
939
1064
  $cmp: "FormKit",
@@ -942,168 +1067,168 @@ function zi(e) {
942
1067
  }
943
1068
  return e;
944
1069
  }
945
- function Y(e) {
1070
+ function Z(e) {
946
1071
  let i;
947
- const t = /* @__PURE__ */ new Set(), n = function(f, c) {
948
- return typeof f == "function" ? f(c) : f;
1072
+ const t = /* @__PURE__ */ new Set(), n = function(m, p) {
1073
+ return typeof m == "function" ? m(p) : m;
949
1074
  }, l = [
950
1075
  {
951
- "&&": (p, f, c) => n(p, c) && n(f, c),
952
- "||": (p, f, c) => n(p, c) || n(f, c)
1076
+ "&&": (f, m, p) => n(f, p) && n(m, p),
1077
+ "||": (f, m, p) => n(f, p) || n(m, p)
953
1078
  },
954
1079
  {
955
- "===": (p, f, c) => n(p, c) === n(f, c),
956
- "!==": (p, f, c) => n(p, c) !== n(f, c),
957
- "==": (p, f, c) => n(p, c) == n(f, c),
958
- "!=": (p, f, c) => n(p, c) != n(f, c),
959
- ">=": (p, f, c) => n(p, c) >= n(f, c),
960
- "<=": (p, f, c) => n(p, c) <= n(f, c),
961
- ">": (p, f, c) => n(p, c) > n(f, c),
962
- "<": (p, f, c) => n(p, c) < n(f, c)
1080
+ "===": (f, m, p) => n(f, p) === n(m, p),
1081
+ "!==": (f, m, p) => n(f, p) !== n(m, p),
1082
+ "==": (f, m, p) => n(f, p) == n(m, p),
1083
+ "!=": (f, m, p) => n(f, p) != n(m, p),
1084
+ ">=": (f, m, p) => n(f, p) >= n(m, p),
1085
+ "<=": (f, m, p) => n(f, p) <= n(m, p),
1086
+ ">": (f, m, p) => n(f, p) > n(m, p),
1087
+ "<": (f, m, p) => n(f, p) < n(m, p)
963
1088
  },
964
1089
  {
965
- "+": (p, f, c) => n(p, c) + n(f, c),
966
- "-": (p, f, c) => n(p, c) - n(f, c)
1090
+ "+": (f, m, p) => n(f, p) + n(m, p),
1091
+ "-": (f, m, p) => n(f, p) - n(m, p)
967
1092
  },
968
1093
  {
969
- "*": (p, f, c) => n(p, c) * n(f, c),
970
- "/": (p, f, c) => n(p, c) / n(f, c),
971
- "%": (p, f, c) => n(p, c) % n(f, c)
972
- }
973
- ], s = l.reduce((p, f) => p.concat(Object.keys(f)), []), r = new Set(s.map((p) => p.charAt(0)));
974
- function o(p, f, c, $) {
975
- const C = p.filter((m) => m.startsWith(f));
976
- return C.length ? C.find((m) => $.length >= c + m.length && $.substring(c, c + m.length) === m ? m : !1) : !1;
977
- }
978
- function u(p, f, c = 1) {
979
- let $ = c ? f.substring(p + 1).trim() : f.substring(0, p).trim();
980
- if (!$.length)
1094
+ "*": (f, m, p) => n(f, p) * n(m, p),
1095
+ "/": (f, m, p) => n(f, p) / n(m, p),
1096
+ "%": (f, m, p) => n(f, p) % n(m, p)
1097
+ }
1098
+ ], s = l.reduce((f, m) => f.concat(Object.keys(m)), []), r = new Set(s.map((f) => f.charAt(0)));
1099
+ function o(f, m, p, h) {
1100
+ const $ = f.filter((v) => v.startsWith(m));
1101
+ return $.length ? $.find((v) => h.length >= p + v.length && h.substring(p, p + v.length) === v ? v : !1) : !1;
1102
+ }
1103
+ function u(f, m, p = 1) {
1104
+ let h = p ? m.substring(f + 1).trim() : m.substring(0, f).trim();
1105
+ if (!h.length)
981
1106
  return -1;
982
- if (!c) {
983
- const m = $.split("").reverse(), d = m.findIndex((y) => r.has(y));
984
- $ = m.slice(d).join("");
985
- }
986
- const C = $[0];
987
- return l.findIndex((m) => {
988
- const d = Object.keys(m);
989
- return !!o(d, C, 0, $);
1107
+ if (!p) {
1108
+ const v = h.split("").reverse(), b = v.findIndex((c) => r.has(c));
1109
+ h = v.slice(b).join("");
1110
+ }
1111
+ const $ = h[0];
1112
+ return l.findIndex((v) => {
1113
+ const b = Object.keys(v);
1114
+ return !!o(b, $, 0, h);
990
1115
  });
991
1116
  }
992
- function b(p, f) {
993
- let c = "";
994
- const $ = f.length;
995
- let C = 0;
996
- for (let m = p; m < $; m++) {
997
- const d = f.charAt(m);
998
- if (d === "(")
999
- C++;
1000
- else if (d === ")")
1001
- C--;
1002
- else if (C === 0 && d === " ")
1117
+ function d(f, m) {
1118
+ let p = "";
1119
+ const h = m.length;
1120
+ let $ = 0;
1121
+ for (let v = f; v < h; v++) {
1122
+ const b = m.charAt(v);
1123
+ if (b === "(")
1124
+ $++;
1125
+ else if (b === ")")
1126
+ $--;
1127
+ else if ($ === 0 && b === " ")
1003
1128
  continue;
1004
- if (C === 0 && o(s, d, m, f))
1005
- return [c, m - 1];
1006
- c += d;
1129
+ if ($ === 0 && o(s, b, v, m))
1130
+ return [p, v - 1];
1131
+ p += b;
1007
1132
  }
1008
- return [c, f.length - 1];
1133
+ return [p, m.length - 1];
1009
1134
  }
1010
- function h(p, f = 0) {
1011
- const c = l[f], $ = p.length, C = Object.keys(c);
1012
- let m = 0, d = !1, y = null, g = "", V = null, O, R = "", I = "", F = "", z = "", Z = 0;
1013
- const K = (j, H) => {
1014
- j ? F += H : g += H;
1135
+ function _(f, m = 0) {
1136
+ const p = l[m], h = f.length, $ = Object.keys(p);
1137
+ let v = 0, b = !1, c = null, g = "", k = null, L, R = "", C = "", F = "", B = "", H = 0;
1138
+ const N = (P, q) => {
1139
+ P ? F += q : g += q;
1015
1140
  };
1016
- for (let j = 0; j < $; j++)
1017
- if (R = I, I = p.charAt(j), (I === "'" || I === '"') && R !== "\\" && (m === 0 && !d || m && !z)) {
1018
- m ? z = I : d = I, K(m, I);
1141
+ for (let P = 0; P < h; P++)
1142
+ if (R = C, C = f.charAt(P), (C === "'" || C === '"') && R !== "\\" && (v === 0 && !b || v && !B)) {
1143
+ v ? B = C : b = C, N(v, C);
1019
1144
  continue;
1020
- } else if (d && (I !== d || R === "\\") || z && (I !== z || R === "\\")) {
1021
- K(m, I);
1145
+ } else if (b && (C !== b || R === "\\") || B && (C !== B || R === "\\")) {
1146
+ N(v, C);
1022
1147
  continue;
1023
- } else if (d === I) {
1024
- d = !1, K(m, I);
1148
+ } else if (b === C) {
1149
+ b = !1, N(v, C);
1025
1150
  continue;
1026
- } else if (z === I) {
1027
- z = !1, K(m, I);
1151
+ } else if (B === C) {
1152
+ B = !1, N(v, C);
1028
1153
  continue;
1029
1154
  } else {
1030
- if (I === " ")
1155
+ if (C === " ")
1031
1156
  continue;
1032
- if (I === "(")
1033
- m === 0 ? Z = j : F += I, m++;
1034
- else if (I === ")")
1035
- if (m--, m === 0) {
1036
- const H = typeof g == "string" && g.startsWith("$") ? g : void 0, wt = H && p.charAt(j + 1) === ".";
1037
- let ge = "";
1038
- wt && ([ge, j] = b(j + 2, p));
1039
- const Pe = y ? f : u(Z, p, 0), $e = u(j, p);
1040
- Pe === -1 && $e === -1 ? g = _(F, -1, H, ge) : y && (Pe >= $e || $e === -1) && f === Pe ? (V = y.bind(null, _(F, -1, H, ge)), y = null, g = "") : $e > Pe && f === $e ? g = _(F, -1, H, ge) : g += `(${F})${wt ? `.${ge}` : ""}`, F = "";
1157
+ if (C === "(")
1158
+ v === 0 ? H = P : F += C, v++;
1159
+ else if (C === ")")
1160
+ if (v--, v === 0) {
1161
+ const q = typeof g == "string" && g.startsWith("$") ? g : void 0, ke = q && f.charAt(P + 1) === ".";
1162
+ let le = "";
1163
+ ke && ([le, P] = d(P + 2, f));
1164
+ const Re = c ? m : u(H, f, 0), Ce = u(P, f);
1165
+ Re === -1 && Ce === -1 ? g = V(F, -1, q, le) : c && (Re >= Ce || Ce === -1) && m === Re ? (k = c.bind(null, V(F, -1, q, le)), c = null, g = "") : Ce > Re && m === Ce ? g = V(F, -1, q, le) : g += `(${F})${ke ? `.${le}` : ""}`, F = "";
1041
1166
  } else
1042
- F += I;
1043
- else if (m === 0 && (O = o(C, I, j, p))) {
1044
- j === 0 && N(103, [O, p]), j += O.length - 1, j === p.length - 1 && N(104, [O, p]), y ? g && (V = y.bind(null, _(g, f)), y = c[O].bind(null, V), g = "") : V ? (y = c[O].bind(null, _(V, f)), V = null) : (y = c[O].bind(null, _(g, f)), g = "");
1167
+ F += C;
1168
+ else if (v === 0 && (L = o($, C, P, f))) {
1169
+ P === 0 && W(103, [L, f]), P += L.length - 1, P === f.length - 1 && W(104, [L, f]), c ? g && (k = c.bind(null, V(g, m)), c = p[L].bind(null, k), g = "") : k ? (c = p[L].bind(null, V(k, m)), k = null) : (c = p[L].bind(null, V(g, m)), g = "");
1045
1170
  continue;
1046
1171
  } else
1047
- K(m, I);
1172
+ N(v, C);
1048
1173
  }
1049
- return g && y && (y = y.bind(null, _(g, f))), y = !y && V ? V : y, !y && g && (y = (j, H) => typeof j == "function" ? j(H) : j, y = y.bind(null, _(g, f))), !y && !g && N(105, p), y;
1050
- }
1051
- function _(p, f, c, $) {
1052
- if (c) {
1053
- const C = _(c, l.length);
1054
- let m, d = $ ? Y(`$${$}`) : !1;
1055
- if (typeof C == "function") {
1056
- const y = Ln(String(p)).map((g) => _(g, -1));
1174
+ return g && c && (c = c.bind(null, V(g, m))), c = !c && k ? k : c, !c && g && (c = (P, q) => typeof P == "function" ? P(q) : P, c = c.bind(null, V(g, m))), !c && !g && W(105, f), c;
1175
+ }
1176
+ function V(f, m, p, h) {
1177
+ if (p) {
1178
+ const $ = V(p, l.length);
1179
+ let v, b = h ? Z(`$${h}`) : !1;
1180
+ if (typeof $ == "function") {
1181
+ const c = On(String(f)).map((g) => V(g, -1));
1057
1182
  return (g) => {
1058
- const V = C(g);
1059
- return typeof V != "function" ? (Ae(150, c), V) : (m = V(...y.map((O) => typeof O == "function" ? O(g) : O)), d && (d = d.provide((O) => {
1060
- const R = i(O);
1061
- return O.reduce((F, z) => {
1062
- if (z === $ || ($ == null ? void 0 : $.startsWith(`${z}(`))) {
1063
- const K = On(m, z);
1064
- F[z] = () => K;
1183
+ const k = $(g);
1184
+ return typeof k != "function" ? (je(150, p), k) : (v = k(...c.map((L) => typeof L == "function" ? L(g) : L)), b && (b = b.provide((L) => {
1185
+ const R = i(L);
1186
+ return L.reduce((F, B) => {
1187
+ if (B === h || (h == null ? void 0 : h.startsWith(`${B}(`))) {
1188
+ const N = xn(v, B);
1189
+ F[B] = () => N;
1065
1190
  } else
1066
- F[z] = R[z];
1191
+ F[B] = R[B];
1067
1192
  return F;
1068
1193
  }, {});
1069
- })), d ? d() : m);
1194
+ })), b ? b() : v);
1070
1195
  };
1071
1196
  }
1072
- } else if (typeof p == "string") {
1073
- if (p === "true")
1197
+ } else if (typeof f == "string") {
1198
+ if (f === "true")
1074
1199
  return !0;
1075
- if (p === "false")
1200
+ if (f === "false")
1076
1201
  return !1;
1077
- if (p === "undefined")
1202
+ if (f === "undefined")
1078
1203
  return;
1079
- if (Vn(p))
1080
- return In(p.substring(1, p.length - 1));
1081
- if (!isNaN(+p))
1082
- return Number(p);
1083
- if (f < l.length - 1)
1084
- return h(p, f + 1);
1085
- if (p.startsWith("$")) {
1086
- const C = p.substring(1);
1087
- return t.add(C), function(d) {
1088
- return C in d ? d[C]() : void 0;
1204
+ if (Ln(f))
1205
+ return An(f.substring(1, f.length - 1));
1206
+ if (!isNaN(+f))
1207
+ return Number(f);
1208
+ if (m < l.length - 1)
1209
+ return _(f, m + 1);
1210
+ if (f.startsWith("$")) {
1211
+ const $ = f.substring(1);
1212
+ return t.add($), function(b) {
1213
+ return $ in b ? b[$]() : void 0;
1089
1214
  };
1090
1215
  }
1091
- return p;
1216
+ return f;
1092
1217
  }
1093
- return p;
1218
+ return f;
1094
1219
  }
1095
- const v = h(e.startsWith("$:") ? e.substring(2) : e), w = Array.from(t);
1096
- function S(p) {
1097
- return i = p, Object.assign(v.bind(null, p(w)), {
1098
- provide: S
1220
+ const J = _(e.startsWith("$:") ? e.substring(2) : e), y = Array.from(t);
1221
+ function I(f) {
1222
+ return i = f, Object.assign(J.bind(null, f(y)), {
1223
+ provide: I
1099
1224
  });
1100
1225
  }
1101
- return Object.assign(v, {
1102
- provide: S
1226
+ return Object.assign(J, {
1227
+ provide: I
1103
1228
  });
1104
1229
  }
1105
- const At = "0.16.5";
1106
- function Wi(e) {
1230
+ const At = "0.17.2";
1231
+ function Yi(e) {
1107
1232
  let i = 1;
1108
1233
  return Array.isArray(e) ? e.map((t) => typeof t == "string" || typeof t == "number" ? {
1109
1234
  label: String(t),
@@ -1116,7 +1241,7 @@ function Wi(e) {
1116
1241
  value: t
1117
1242
  }));
1118
1243
  }
1119
- function ve(e, i) {
1244
+ function ge(e, i) {
1120
1245
  if (Array.isArray(e)) {
1121
1246
  for (const t of e)
1122
1247
  if (i == t.value)
@@ -1124,13 +1249,40 @@ function ve(e, i) {
1124
1249
  }
1125
1250
  return i;
1126
1251
  }
1127
- function he(e, i) {
1128
- return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 : ye(e) && ye(i) ? Oe(e, i) : !1;
1252
+ function $e(e, i) {
1253
+ return e === null && i === void 0 || e === void 0 && i === null ? !1 : e == i ? !0 : _e(e) && _e(i) ? ue(e, i) : !1;
1129
1254
  }
1130
- function ht(e) {
1131
- e.hook.prop((i, t) => (i.prop === "options" && (typeof i.value == "function" ? (e.props.optionsLoader = i.value, i.value = []) : i.value = Wi(i.value)), t(i)));
1255
+ function _t(e) {
1256
+ e.hook.prop((i, t) => (i.prop === "options" && (typeof i.value == "function" ? (e.props.optionsLoader = i.value, i.value = []) : i.value = Yi(i.value)), t(i)));
1132
1257
  }
1133
- const re = k("outer", () => ({
1258
+ function w(e, i, t = !1) {
1259
+ return (...n) => {
1260
+ const l = (s) => {
1261
+ const r = !i || typeof i == "string" ? { $el: i } : i();
1262
+ return (ot(r) || ut(r)) && (r.meta || (r.meta = { section: e }), n.length && !r.children && (r.children = [
1263
+ ...n.map((o) => typeof o == "string" ? o : o(s))
1264
+ ]), ot(r) && (r.attrs = {
1265
+ class: `$classes.${e}`,
1266
+ ...r.attrs || {}
1267
+ })), {
1268
+ if: `$slots.${e}`,
1269
+ then: `$slots.${e}`,
1270
+ else: e in s ? Se(r, s[e]) : r
1271
+ };
1272
+ };
1273
+ return l._s = e, t ? Qi(l) : l;
1274
+ };
1275
+ }
1276
+ function Qi(e) {
1277
+ return (i) => [e(i)];
1278
+ }
1279
+ function Ke(e) {
1280
+ return typeof e == "object" && ("$el" in e || "$cmp" in e || "$formkit" in e);
1281
+ }
1282
+ function Se(e, i = {}) {
1283
+ return typeof e == "string" ? Ke(i) || typeof i == "string" ? i : e : Array.isArray(e) ? Ke(i) ? i : e : Ye(e, i);
1284
+ }
1285
+ const fe = w("outer", () => ({
1134
1286
  $el: "div",
1135
1287
  attrs: {
1136
1288
  key: "$id",
@@ -1147,16 +1299,16 @@ const re = k("outer", () => ({
1147
1299
  "data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
1148
1300
  "data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
1149
1301
  }
1150
- }), !0), te = k("inner", "div"), _e = k("wrapper", "div"), xe = k("label", () => ({
1302
+ })), te = w("inner", "div"), we = w("wrapper", "div"), Ee = w("label", () => ({
1151
1303
  $el: "label",
1152
1304
  if: "$label",
1153
1305
  attrs: {
1154
1306
  for: "$id"
1155
1307
  }
1156
- })), ne = k("messages", () => ({
1308
+ })), ne = w("messages", () => ({
1157
1309
  $el: "ul",
1158
1310
  if: "$defaultMessagePlacement && $fns.length($messages)"
1159
- })), ie = k("message", () => ({
1311
+ })), ie = w("message", () => ({
1160
1312
  $el: "li",
1161
1313
  for: ["message", "$messages"],
1162
1314
  attrs: {
@@ -1164,13 +1316,13 @@ const re = k("outer", () => ({
1164
1316
  id: "$id + '-' + $message.key",
1165
1317
  "data-message-type": "$message.type"
1166
1318
  }
1167
- })), G = k("prefix", null), X = k("suffix", null), ee = k("help", () => ({
1319
+ })), X = w("prefix", null), G = w("suffix", null), ee = w("help", () => ({
1168
1320
  $el: "div",
1169
1321
  if: "$help",
1170
1322
  attrs: {
1171
1323
  id: '$: "help-" + $id'
1172
1324
  }
1173
- })), tn = k("fieldset", () => ({
1325
+ })), nn = w("fieldset", () => ({
1174
1326
  $el: "fieldset",
1175
1327
  attrs: {
1176
1328
  id: "$id",
@@ -1180,12 +1332,12 @@ const re = k("outer", () => ({
1180
1332
  else: void 0
1181
1333
  }
1182
1334
  }
1183
- })), ze = k("decorator", () => ({
1335
+ })), qe = w("decorator", () => ({
1184
1336
  $el: "span",
1185
1337
  attrs: {
1186
1338
  "aria-hidden": "true"
1187
1339
  }
1188
- })), We = k("input", () => ({
1340
+ })), We = w("input", () => ({
1189
1341
  $el: "input",
1190
1342
  bind: "$attrs",
1191
1343
  attrs: {
@@ -1211,16 +1363,16 @@ const re = k("outer", () => ({
1211
1363
  }
1212
1364
  }
1213
1365
  }
1214
- })), nn = k("legend", () => ({
1366
+ })), ln = w("legend", () => ({
1215
1367
  $el: "legend",
1216
1368
  if: "$label"
1217
- })), ln = k("option", () => ({
1369
+ })), an = w("option", () => ({
1218
1370
  $el: "li",
1219
1371
  for: ["option", "$options"],
1220
1372
  attrs: {
1221
1373
  "data-disabled": "$option.attrs.disabled || $disabled"
1222
1374
  }
1223
- })), an = k("options", "ul"), Ue = k("wrapper", () => ({
1375
+ })), sn = w("options", "ul"), Ne = w("wrapper", () => ({
1224
1376
  $el: "label",
1225
1377
  attrs: {
1226
1378
  "data-disabled": {
@@ -1234,13 +1386,13 @@ const re = k("outer", () => ({
1234
1386
  else: "$fns.isChecked($option.value) || undefined"
1235
1387
  }
1236
1388
  }
1237
- })), sn = k("optionHelp", () => ({
1389
+ })), rn = w("optionHelp", () => ({
1238
1390
  $el: "div",
1239
1391
  if: "$option.help",
1240
1392
  attrs: {
1241
1393
  id: '$: "help-" + $option.attrs.id'
1242
1394
  }
1243
- })), qe = k("label", "span"), Ui = k("input", () => ({
1395
+ })), He = w("label", "span"), Xi = w("input", () => ({
1244
1396
  $el: "button",
1245
1397
  bind: "$attrs",
1246
1398
  attrs: {
@@ -1249,7 +1401,7 @@ const re = k("outer", () => ({
1249
1401
  name: "$node.name",
1250
1402
  id: "$id"
1251
1403
  }
1252
- })), qi = k("default", null), Ni = k("input", () => ({
1404
+ })), Gi = w("default", null), el = w("input", () => ({
1253
1405
  $el: "input",
1254
1406
  bind: "$attrs",
1255
1407
  attrs: {
@@ -1261,10 +1413,10 @@ const re = k("outer", () => ({
1261
1413
  id: "$id",
1262
1414
  "aria-describedby": "$describedBy"
1263
1415
  }
1264
- })), Ki = k("fileItem", () => ({
1416
+ })), tl = w("fileItem", () => ({
1265
1417
  $el: "li",
1266
1418
  for: ["file", "$value"]
1267
- })), Hi = k("fileList", () => ({
1419
+ })), nl = w("fileList", () => ({
1268
1420
  $el: "ul",
1269
1421
  if: "$value.length",
1270
1422
  attrs: {
@@ -1273,20 +1425,20 @@ const re = k("outer", () => ({
1273
1425
  then: "true"
1274
1426
  }
1275
1427
  }
1276
- })), Zi = k("fileName", () => ({
1428
+ })), il = w("fileName", () => ({
1277
1429
  $el: "span",
1278
1430
  attrs: {
1279
1431
  class: "$classes.fileName"
1280
1432
  }
1281
- })), xt = k("fileRemove", () => ({
1433
+ })), Ot = w("fileRemove", () => ({
1282
1434
  $el: "button",
1283
1435
  attrs: {
1284
1436
  onClick: "$handlers.resetFiles"
1285
1437
  }
1286
- })), Yi = k("noFiles", () => ({
1438
+ })), ll = w("noFiles", () => ({
1287
1439
  $el: "span",
1288
1440
  if: "$value.length == 0"
1289
- })), Ji = k("form", () => ({
1441
+ })), al = w("form", () => ({
1290
1442
  $el: "form",
1291
1443
  bind: "$attrs",
1292
1444
  attrs: {
@@ -1295,10 +1447,10 @@ const re = k("outer", () => ({
1295
1447
  onSubmit: "$handlers.submit",
1296
1448
  "data-loading": "$state.loading || undefined"
1297
1449
  }
1298
- }), !0), Qi = k("actions", () => ({
1450
+ })), sl = w("actions", () => ({
1299
1451
  $el: "div",
1300
1452
  if: "$actions"
1301
- })), Gi = k("submit", () => ({
1453
+ })), rl = w("submit", () => ({
1302
1454
  $cmp: "FormKit",
1303
1455
  bind: "$submitAttrs",
1304
1456
  props: {
@@ -1306,7 +1458,7 @@ const re = k("outer", () => ({
1306
1458
  disabled: "$disabled",
1307
1459
  label: "$submitLabel"
1308
1460
  }
1309
- })), rn = k("input", () => ({
1461
+ })), on = w("input", () => ({
1310
1462
  $el: "input",
1311
1463
  bind: "$attrs",
1312
1464
  attrs: {
@@ -1319,7 +1471,7 @@ const re = k("outer", () => ({
1319
1471
  id: "$id",
1320
1472
  "aria-describedby": "$describedBy"
1321
1473
  }
1322
- })), on = k("wrapper", null, !0), Xi = k("input", () => ({
1474
+ })), un = w("wrapper", null, !0), ol = w("input", () => ({
1323
1475
  $el: "select",
1324
1476
  bind: "$attrs",
1325
1477
  attrs: {
@@ -1333,7 +1485,7 @@ const re = k("outer", () => ({
1333
1485
  onBlur: "$handlers.blur",
1334
1486
  "aria-describedby": "$describedBy"
1335
1487
  }
1336
- })), el = k("option", () => ({
1488
+ })), ul = w("option", () => ({
1337
1489
  $el: "option",
1338
1490
  for: ["option", "$options"],
1339
1491
  bind: "$option.attrs",
@@ -1342,12 +1494,12 @@ const re = k("outer", () => ({
1342
1494
  value: "$option.value",
1343
1495
  selected: "$fns.isSelected($option)"
1344
1496
  }
1345
- })), tl = () => ({
1497
+ })), fl = () => ({
1346
1498
  $el: null,
1347
1499
  if: "$options.length",
1348
1500
  for: ["option", "$options"],
1349
1501
  children: "$slots.option"
1350
- }), nl = k("input", () => ({
1502
+ }), cl = w("input", () => ({
1351
1503
  $el: "textarea",
1352
1504
  bind: "$attrs",
1353
1505
  attrs: {
@@ -1360,7 +1512,7 @@ const re = k("outer", () => ({
1360
1512
  "aria-describedby": "$describedBy"
1361
1513
  },
1362
1514
  children: "$initialValue"
1363
- })), W = (e, i) => k(`${e}Icon`, () => {
1515
+ })), z = (e, i) => w(`${e}Icon`, () => {
1364
1516
  const t = `_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;
1365
1517
  return {
1366
1518
  if: `$${e}Icon && $${t}`,
@@ -1376,13 +1528,13 @@ const re = k("outer", () => ({
1376
1528
  }
1377
1529
  };
1378
1530
  })();
1379
- function un(e) {
1531
+ function fn(e) {
1380
1532
  return function(i, t) {
1381
1533
  return i.prop === "options" && Array.isArray(i.value) && (i.value = i.value.map((n) => {
1382
1534
  var l;
1383
1535
  return !((l = n.attrs) === null || l === void 0) && l.id ? n : Ye(n, {
1384
1536
  attrs: {
1385
- id: `${e.name}-option-${ct(String(n.value))}`
1537
+ id: `${e.name}-option-${dt(String(n.value))}`
1386
1538
  }
1387
1539
  });
1388
1540
  }), e.props.type === "checkbox" && !Array.isArray(e.value) && (e.isCreated ? e.input([], !1) : e.on("created", () => {
@@ -1390,35 +1542,33 @@ function un(e) {
1390
1542
  }))), t(i);
1391
1543
  };
1392
1544
  }
1393
- function il(e, i) {
1545
+ function dl(e, i) {
1394
1546
  const t = i.target;
1395
1547
  if (t instanceof HTMLInputElement) {
1396
- const n = Array.isArray(e.props.options) ? ve(e.props.options, t.value) : t.value;
1397
- Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((l) => he(n, l)) ? e.input(e._value.filter((l) => !he(n, l))) : e.input([...e._value, n]) : e.input([n]) : t.checked ? e.input(e.props.onValue) : e.input(e.props.offValue);
1548
+ const n = Array.isArray(e.props.options) ? ge(e.props.options, t.value) : t.value;
1549
+ Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((l) => $e(n, l)) ? e.input(e._value.filter((l) => !$e(n, l))) : e.input([...e._value, n]) : e.input([n]) : t.checked ? e.input(e.props.onValue) : e.input(e.props.offValue);
1398
1550
  }
1399
1551
  }
1400
- function ll(e, i) {
1552
+ function pl(e, i) {
1401
1553
  var t, n;
1402
- return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, Array.isArray(e._value) ? e._value.some((l) => he(ve(e.props.options, i), l)) : !1;
1554
+ return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, Array.isArray(e._value) ? e._value.some((l) => $e(ge(e.props.options, i), l)) : !1;
1403
1555
  }
1404
- function al(e) {
1556
+ function ml(e) {
1405
1557
  e.on("created", () => {
1406
1558
  var i, t;
1407
- !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = il.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = ll.bind(null, e)), E(e.props, "onValue") || (e.props.onValue = !0), E(e.props, "offValue") || (e.props.offValue = !1);
1408
- }), e.hook.prop(un(e));
1559
+ !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = dl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = pl.bind(null, e)), j(e.props, "onValue") || (e.props.onValue = !0), j(e.props, "offValue") || (e.props.offValue = !1);
1560
+ }), e.hook.prop(fn(e));
1409
1561
  }
1410
- function Qe(e) {
1562
+ function Xe(e) {
1411
1563
  e.on("created", () => {
1412
- e.props.disabled = Q(e.props.disabled);
1413
- }), e.hook.prop(({ prop: i, value: t }, n) => (t = i === "disabled" ? Q(t) : t, n({ prop: i, value: t }))), e.on("prop:disabled", ({ payload: i }) => {
1414
- e.config.disabled = Q(i);
1415
- }), e.on("created", () => {
1416
- e.config.disabled = Q(e.props.disabled);
1564
+ e.props.disabled = Y(e.props.disabled), e.config.disabled = Y(e.props.disabled);
1565
+ }), e.hook.prop(({ prop: i, value: t }, n) => (t = i === "disabled" ? Y(t) : t, n({ prop: i, value: t }))), e.on("prop:disabled", ({ payload: i }) => {
1566
+ e.config.disabled = Y(i);
1417
1567
  });
1418
1568
  }
1419
- function je(e, i) {
1569
+ function Be(e, i) {
1420
1570
  return (t) => {
1421
- t.store.set(ae({
1571
+ t.store.set(re({
1422
1572
  key: e,
1423
1573
  type: "ui",
1424
1574
  value: i || e,
@@ -1430,14 +1580,14 @@ function je(e, i) {
1430
1580
  };
1431
1581
  }
1432
1582
  const Pt = typeof window < "u";
1433
- function fn(e) {
1583
+ function cn(e) {
1434
1584
  e.target instanceof HTMLElement && e.target.hasAttribute("data-file-hover") && e.target.removeAttribute("data-file-hover");
1435
1585
  }
1436
- function Et(e, i) {
1437
- i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" && fn(i);
1586
+ function xt(e, i) {
1587
+ i.target instanceof HTMLInputElement ? e === "dragover" && i.target.setAttribute("data-file-hover", "true") : i.preventDefault(), e === "drop" && cn(i);
1438
1588
  }
1439
- function sl(e) {
1440
- je("noFiles", "Select file")(e), je("removeAll", "Remove all")(e), je("remove")(e), Pt && (window._FormKit_File_Drop || (window.addEventListener("dragover", Et.bind(null, "dragover")), window.addEventListener("drop", Et.bind(null, "drop")), window.addEventListener("dragleave", fn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("created", () => {
1589
+ function bl(e) {
1590
+ Be("noFiles", "Select file")(e), Be("removeAll", "Remove all")(e), Be("remove")(e), Pt && (window._FormKit_File_Drop || (window.addEventListener("dragover", xt.bind(null, "dragover")), window.addEventListener("drop", xt.bind(null, "drop")), window.addEventListener("dragleave", cn), window._FormKit_File_Drop = !0)), e.hook.input((i, t) => t(Array.isArray(i) ? i : [])), e.on("created", () => {
1441
1591
  Array.isArray(e.value) || e.input([], !1), e.context && (e.context.handlers.resetFiles = (i) => {
1442
1592
  if (i.preventDefault(), e.input([]), e.props.id && Pt) {
1443
1593
  const t = document.getElementById(e.props.id);
@@ -1457,15 +1607,15 @@ function sl(e) {
1457
1607
  });
1458
1608
  });
1459
1609
  }
1460
- async function rl(e, i) {
1610
+ async function yl(e, i) {
1461
1611
  i.preventDefault(), await e.settled;
1462
- const t = (n) => n.store.set(ae({
1612
+ const t = (n) => n.store.set(re({
1463
1613
  key: "submitted",
1464
1614
  value: !0,
1465
1615
  visible: !1
1466
1616
  }));
1467
1617
  if (e.walk(t), t(e), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(i, e), e.ledger.value("blocking"))
1468
- typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(ae({
1618
+ typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(re({
1469
1619
  blocking: !1,
1470
1620
  key: "incomplete",
1471
1621
  meta: {
@@ -1477,10 +1627,10 @@ async function rl(e, i) {
1477
1627
  value: e.props.incompleteMessage || "Form incomplete."
1478
1628
  }));
1479
1629
  else if (typeof e.props.onSubmit == "function") {
1480
- const n = e.props.onSubmit(e.hook.submit.dispatch(Ve(e.value)), e);
1630
+ const n = e.props.onSubmit(e.hook.submit.dispatch(Pe(e.value)), e);
1481
1631
  if (n instanceof Promise) {
1482
1632
  const l = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
1483
- l && (e.props.disabled = !0), e.store.set(ae({
1633
+ l && (e.props.disabled = !0), e.store.set(re({
1484
1634
  key: "loading",
1485
1635
  value: !0,
1486
1636
  visible: !1
@@ -1489,47 +1639,50 @@ async function rl(e, i) {
1489
1639
  } else
1490
1640
  i.target instanceof HTMLFormElement && i.target.submit();
1491
1641
  }
1492
- function ol(e) {
1642
+ function vl(e) {
1493
1643
  e.props.isForm = !0, e.on("created", () => {
1494
1644
  var i;
1495
- !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = rl.bind(null, e)), E(e.props, "actions") || (e.props.actions = !0);
1645
+ !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.submit = yl.bind(null, e)), j(e.props, "actions") || (e.props.actions = !0);
1496
1646
  }), e.on("settled:blocking", () => e.store.remove("incomplete"));
1497
1647
  }
1498
- function ul(e) {
1648
+ function hl(e) {
1499
1649
  e.props.ignore === void 0 && (e.props.ignore = !0, e.parent = null);
1500
1650
  }
1501
- function fl(e) {
1651
+ function _l(e) {
1502
1652
  e.on("created", () => {
1503
1653
  e.context && (e.context.initialValue = e.value || "");
1504
1654
  });
1505
1655
  }
1506
- function cl(e, i) {
1507
- i.target instanceof HTMLInputElement && e.input(ve(e.props.options, i.target.value));
1656
+ function gl(e, i) {
1657
+ i.target instanceof HTMLInputElement && e.input(ge(e.props.options, i.target.value));
1508
1658
  }
1509
- function pl(e, i) {
1659
+ function $l(e, i) {
1510
1660
  var t, n;
1511
- return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, he(ve(e.props.options, i), e._value);
1661
+ return (t = e.context) === null || t === void 0 || t.value, (n = e.context) === null || n === void 0 || n._value, $e(ge(e.props.options, i), e._value);
1512
1662
  }
1513
- function dl(e) {
1663
+ function wl(e) {
1514
1664
  e.on("created", () => {
1515
1665
  var i, t;
1516
- Array.isArray(e.props.options) || Ae(350, e), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = cl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = pl.bind(null, e));
1517
- }), e.hook.prop(un(e));
1666
+ Array.isArray(e.props.options) || je(350, {
1667
+ node: e,
1668
+ inputType: "radio"
1669
+ }), !((i = e.context) === null || i === void 0) && i.handlers && (e.context.handlers.toggleChecked = gl.bind(null, e)), !((t = e.context) === null || t === void 0) && t.fns && (e.context.fns.isChecked = $l.bind(null, e));
1670
+ }), e.hook.prop(fn(e));
1518
1671
  }
1519
- function ml(e, i) {
1672
+ function kl(e, i) {
1520
1673
  e.context && e.context.value;
1521
1674
  const t = "__original" in i ? i.__original : i.value;
1522
1675
  function n() {
1523
1676
  return !e.props.options.some((l) => ("__original" in l ? l.__original : l.value) === null);
1524
1677
  }
1525
- return Array.isArray(e._value) ? e._value.some((l) => he(l, t)) : (e._value === void 0 || e._value === null && n()) && i.attrs && i.attrs["data-is-placeholder"] ? !0 : he(t, e._value);
1678
+ return Array.isArray(e._value) ? e._value.some((l) => $e(l, t)) : (e._value === void 0 || e._value === null && n()) && i.attrs && i.attrs["data-is-placeholder"] ? !0 : $e(t, e._value);
1526
1679
  }
1527
- async function bl(e, i) {
1680
+ async function Cl(e, i) {
1528
1681
  var t;
1529
1682
  typeof ((t = e.props.attrs) === null || t === void 0 ? void 0 : t.onChange) == "function" && (await new Promise((n) => setTimeout(n, 0)), await e.settled, e.props.attrs.onChange(i));
1530
1683
  }
1531
- function yl(e, i) {
1532
- const t = i.target, n = t.hasAttribute("multiple") ? Array.from(t.selectedOptions).map((l) => ve(e.props.options, l.value)) : ve(e.props.options, t.value);
1684
+ function Sl(e, i) {
1685
+ const t = i.target, n = t.hasAttribute("multiple") ? Array.from(t.selectedOptions).map((l) => ge(e.props.options, l.value)) : ge(e.props.options, t.value);
1533
1686
  e.input(n);
1534
1687
  }
1535
1688
  function Mt(e, i) {
@@ -1546,167 +1699,139 @@ function Mt(e, i) {
1546
1699
  ...e
1547
1700
  ];
1548
1701
  }
1549
- function vl(e) {
1702
+ function Vl(e) {
1550
1703
  e.on("created", () => {
1551
1704
  var i, t, n;
1552
- const l = Q((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
1705
+ const l = Y((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
1553
1706
  !l && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: s, value: r }, o) => (s === "options" && (r = Mt(r, e.props.placeholder)), o({ prop: s, value: r }))), e.props.options = Mt(e.props.options, e.props.placeholder)), l ? e.value === void 0 && e.input([], !1) : e.context && !e.context.options && (e.props.attrs = Object.assign({}, e.props.attrs, {
1554
1707
  value: e._value
1555
1708
  }), e.on("input", ({ payload: s }) => {
1556
1709
  e.props.attrs = Object.assign({}, e.props.attrs, {
1557
1710
  value: s
1558
1711
  });
1559
- })), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = yl.bind(null, e), e.context.handlers.onChange = bl.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = ml.bind(null, e), e.context.fns.showPlaceholder = (s, r) => {
1712
+ })), !((t = e.context) === null || t === void 0) && t.handlers && (e.context.handlers.selectInput = Sl.bind(null, e), e.context.handlers.onChange = Cl.bind(null, e)), !((n = e.context) === null || n === void 0) && n.fns && (e.context.fns.isSelected = kl.bind(null, e), e.context.fns.showPlaceholder = (s, r) => {
1560
1713
  if (!Array.isArray(e.props.options))
1561
1714
  return !1;
1562
1715
  const o = e.props.options.some((u) => {
1563
1716
  if (u.attrs && "data-is-placeholder" in u.attrs)
1564
1717
  return !1;
1565
- const b = "__original" in u ? u.__original : u.value;
1566
- return Oe(s, b);
1718
+ const d = "__original" in u ? u.__original : u.value;
1719
+ return ue(s, d);
1567
1720
  });
1568
1721
  return r && !o ? !0 : void 0;
1569
1722
  });
1570
1723
  }), e.hook.input((i, t) => {
1571
1724
  var n, l, s;
1572
- return !e.props.placeholder && i === void 0 && Array.isArray((n = e.props) === null || n === void 0 ? void 0 : n.options) && e.props.options.length && !Q((s = (l = e.props) === null || l === void 0 ? void 0 : l.attrs) === null || s === void 0 ? void 0 : s.multiple) && (i = "__original" in e.props.options[0] ? e.props.options[0].__original : e.props.options[0].value), t(i);
1725
+ return !e.props.placeholder && i === void 0 && Array.isArray((n = e.props) === null || n === void 0 ? void 0 : n.options) && e.props.options.length && !Y((s = (l = e.props) === null || l === void 0 ? void 0 : l.attrs) === null || s === void 0 ? void 0 : s.multiple) && (i = "__original" in e.props.options[0] ? e.props.options[0].__original : e.props.options[0].value), t(i);
1573
1726
  });
1574
1727
  }
1575
- function de(e, i) {
1728
+ function ve(e, i) {
1576
1729
  return (t) => {
1577
1730
  t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = `default:${i}`);
1578
1731
  };
1579
1732
  }
1580
- function Ne(e) {
1581
- return typeof e == "object" && ("$el" in e || "$cmp" in e || "$formkit" in e);
1582
- }
1583
- function ut(e) {
1584
- return !!(pe(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
1585
- }
1586
- function we(e, i = {}) {
1587
- return typeof e == "string" ? Ne(i) || typeof i == "string" ? i : e : Array.isArray(e) ? Ne(i) ? i : e : Ye(e, i);
1733
+ function ft(e) {
1734
+ return !!(be(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
1588
1735
  }
1589
- function hl(e) {
1590
- return re(_e(xe("$label"), te(G(), e(), X())), ee("$help"), ne(ie("$message.value")));
1736
+ function Il(e) {
1737
+ return fe(we(Ee("$label"), te(X(), e(), G())), ee("$help"), ne(ie("$message.value")));
1591
1738
  }
1592
- function k(e, i, t = !1) {
1593
- return (...n) => {
1594
- const l = (s) => {
1595
- const r = !i || typeof i == "string" ? { $el: i } : i();
1596
- return (rt(r) || ot(r)) && (r.meta || (r.meta = { section: e }), n.length && !r.children && (r.children = [
1597
- ...n.map((o) => typeof o == "string" ? o : o(s))
1598
- ]), rt(r) && (r.attrs = {
1599
- class: `$classes.${e}`,
1600
- ...r.attrs || {}
1601
- })), {
1602
- if: `$slots.${e}`,
1603
- then: `$slots.${e}`,
1604
- else: e in s ? we(r, s[e]) : r
1605
- };
1606
- };
1607
- return l._s = e, t ? cn(l) : l;
1608
- };
1609
- }
1610
- function cn(e) {
1611
- return (i) => [e(i)];
1612
- }
1613
- function J(e, i, t) {
1739
+ function Q(e, i, t) {
1614
1740
  const n = (l) => {
1615
1741
  const s = i(l);
1616
- if (t || Ne(s) && "if" in s || ut(s)) {
1742
+ if (t || Ke(s) && "if" in s || ft(s)) {
1617
1743
  const r = {
1618
1744
  if: e,
1619
1745
  then: s
1620
1746
  };
1621
1747
  return t && (r.else = t(l)), r;
1622
1748
  } else
1623
- ut(s) ? Object.assign(s.else, { if: e }) : Ne(s) && Object.assign(s, { if: e });
1749
+ ft(s) ? Object.assign(s.else, { if: e }) : Ke(s) && Object.assign(s, { if: e });
1624
1750
  return s;
1625
1751
  };
1626
- return n._s = Ze(), n;
1752
+ return n._s = Je(), n;
1627
1753
  }
1628
- function Te(e, i) {
1754
+ function Ie(e, i) {
1629
1755
  const t = (n) => {
1630
1756
  const l = e({});
1631
- return ut(l) ? (Array.isArray(l.else) || (l.else = we(we(l.else, i), e._s ? n[e._s] : {})), l) : we(we(l, i), e._s ? n[e._s] : {});
1757
+ return ft(l) ? (Array.isArray(l.else) || (l.else = Se(Se(l.else, i), e._s ? n[e._s] : {})), l) : Se(Se(l, i), e._s ? n[e._s] : {});
1632
1758
  };
1633
1759
  return t._s = e._s, t;
1634
1760
  }
1635
- function _l(e) {
1636
- return cn(e);
1637
- }
1638
- re(ne(ie("$message.value")), _e(Ui(W("prefix"), G(), qi("$label || $ui.submit.value"), X(), W("suffix"))), ee("$help")), je("submit");
1639
- re(
1640
- J(
1761
+ fe(ne(ie("$message.value")), we(Xi(z("prefix"), X(), Gi("$label || $ui.submit.value"), G(), z("suffix"))), ee("$help")), Be("submit");
1762
+ fe(
1763
+ Q(
1641
1764
  "$options == undefined",
1642
1765
  /**
1643
1766
  * Single checkbox structure.
1644
1767
  */
1645
- Ue(te(G(), We(), ze(W("decorator")), X()), Te(qe("$label"), {
1768
+ Ne(te(X(), We(), qe(z("decorator")), G()), Ie(He("$label"), {
1646
1769
  if: "$label"
1647
1770
  })),
1648
1771
  /**
1649
1772
  * Multi checkbox structure.
1650
1773
  */
1651
- tn(nn("$label"), ee("$help"), an(ln(Ue(te(G(), Te(We(), {
1774
+ nn(ln("$label"), ee("$help"), sn(an(Ne(te(X(), Ie(We(), {
1652
1775
  bind: "$option.attrs",
1653
1776
  attrs: {
1654
1777
  id: "$option.attrs.id",
1655
1778
  value: "$option.value",
1656
1779
  checked: "$fns.isChecked($option.value)"
1657
1780
  }
1658
- }), ze(W("decorator")), X()), Te(qe("$option.label"), {
1781
+ }), qe(z("decorator")), G()), Ie(He("$option.label"), {
1659
1782
  if: "$option.label"
1660
- })), sn("$option.help"))))
1783
+ })), rn("$option.help"))))
1661
1784
  ),
1662
1785
  // Help text only goes under the input when it is a single.
1663
- J("$options == undefined && $help", ee("$help")),
1786
+ Q("$options == undefined && $help", ee("$help")),
1664
1787
  ne(ie("$message.value"))
1665
- ), de("decorator", "checkboxDecorator");
1666
- re(_e(xe("$label"), te(W("prefix", "label"), G(), Ni(), Hi(Ki(W("fileItem"), Zi("$file.name"), J("$value.length === 1", xt(W("fileRemove"), "$ui.remove.value")))), J("$value.length > 1", xt("$ui.removeAll.value")), Yi(W("noFiles"), "$ui.noFiles.value"), X(), W("suffix"))), ee("$help"), ne(ie("$message.value"))), de("fileItem", "fileItem"), de("fileRemove", "fileRemove"), de("noFiles", "noFiles");
1667
- Ji("$slots.default", ne(ie("$message.value")), Qi(Gi()));
1668
- on("$slots.default");
1669
- _l(rn());
1670
- on("$slots.default");
1671
- re(
1672
- J(
1788
+ ), ve("decorator", "checkboxDecorator");
1789
+ fe(we(Ee("$label"), te(z("prefix", "label"), X(), el(), nl(tl(z("fileItem"), il("$file.name"), Q("$value.length === 1", Ot(z("fileRemove"), "$ui.remove.value")))), Q("$value.length > 1", Ot("$ui.removeAll.value")), ll(z("noFiles"), "$ui.noFiles.value"), G(), z("suffix"))), ee("$help"), ne(ie("$message.value"))), ve("fileItem", "fileItem"), ve("fileRemove", "fileRemove"), ve("noFiles", "noFiles");
1790
+ al("$slots.default", ne(ie("$message.value")), sl(rl()));
1791
+ un("$slots.default");
1792
+ on();
1793
+ un("$slots.default");
1794
+ fe(
1795
+ Q(
1673
1796
  "$options == undefined",
1674
1797
  /**
1675
1798
  * Single radio structure.
1676
1799
  */
1677
- Ue(te(G(), We(), ze(W("decorator")), X()), J("$label", qe("$label"))),
1800
+ Ne(te(X(), We(), qe(z("decorator")), G()), Q("$label", He("$label"))),
1678
1801
  /**
1679
1802
  * Multi radio structure.
1680
1803
  */
1681
- tn(nn("$label"), ee("$help"), an(ln(Ue(te(G(), Te(We(), {
1804
+ nn(ln("$label"), ee("$help"), sn(an(Ne(te(X(), Ie(We(), {
1682
1805
  bind: "$option.attrs",
1683
1806
  attrs: {
1684
1807
  id: "$option.attrs.id",
1685
1808
  value: "$option.value",
1686
1809
  checked: "$fns.isChecked($option.value)"
1687
1810
  }
1688
- }), ze(W("decorator")), X()), J("$option.label", qe("$option.label"))), sn("$option.help"))))
1811
+ }), qe(z("decorator")), G()), Ie(He("$option.label"), {
1812
+ if: "$option.label"
1813
+ })), rn("$option.help"))))
1689
1814
  ),
1690
1815
  // Help text only goes under the input when it is a single.
1691
- J("$options === undefined && $help", ee("$help")),
1816
+ Q("$options == undefined && $help", ee("$help")),
1692
1817
  ne(ie("$message.value"))
1693
- ), de("decorator", "radioDecorator");
1694
- re(_e(xe("$label"), te(W("prefix"), G(), Xi(J("$slots.default", () => "$slots.default", J("$slots.option", tl, el("$option.label")))), J("$attrs.multiple !== undefined", () => "", W("select")), X(), W("suffix"))), ee("$help"), ne(ie("$message.value"))), de("select", "select");
1695
- re(_e(xe("$label"), te(W("prefix", "label"), G(), nl(), X(), W("suffix"))), ee("$help"), ne(ie("$message.value")));
1696
- re(_e(xe("$label"), te(W("prefix", "label"), G(), rn(), X(), W("suffix"))), ee("$help"), ne(ie("$message.value")));
1697
- ae({
1818
+ ), ve("decorator", "radioDecorator");
1819
+ fe(we(Ee("$label"), te(z("prefix"), X(), ol(Q("$slots.default", () => "$slots.default", Q("$slots.option", fl, ul("$option.label")))), Q("$attrs.multiple !== undefined", () => "", z("select")), G(), z("suffix"))), ee("$help"), ne(ie("$message.value"))), ve("select", "select");
1820
+ fe(we(Ee("$label"), te(z("prefix", "label"), X(), cl(), G(), z("suffix"))), ee("$help"), ne(ie("$message.value")));
1821
+ fe(we(Ee("$label"), te(z("prefix", "label"), X(), on(), G(), z("suffix"))), ee("$help"), ne(ie("$message.value")));
1822
+ re({
1698
1823
  type: "state",
1699
1824
  blocking: !0,
1700
1825
  visible: !1,
1701
1826
  value: !0,
1702
1827
  key: "validating"
1703
1828
  });
1704
- let Fe;
1705
- const gl = new Promise((e) => {
1829
+ let ze;
1830
+ const Ll = new Promise((e) => {
1706
1831
  }), Ge = typeof window < "u" && typeof fetch < "u";
1707
- Fe = Ge ? getComputedStyle(document.documentElement) : void 0;
1708
- const ke = {}, Xe = {};
1709
- function et(e, i) {
1832
+ ze = Ge ? getComputedStyle(document.documentElement) : void 0;
1833
+ const Ve = {}, et = {};
1834
+ function tt(e, i) {
1710
1835
  return (t) => {
1711
1836
  if (typeof t == "boolean")
1712
1837
  return;
@@ -1716,32 +1841,32 @@ function et(e, i) {
1716
1841
  return;
1717
1842
  const n = t.startsWith("default:");
1718
1843
  t = n ? t.split(":")[1] : t;
1719
- const l = t in ke;
1844
+ const l = t in Ve;
1720
1845
  let s;
1721
1846
  if (l)
1722
- return ke[t];
1723
- if (!Xe[t]) {
1724
- if (s = $l(t), s = Ge && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
1725
- Xe[t] = s.then((r) => !r && typeof t == "string" && !n ? s = typeof e == "function" ? e(t) : kl(t, i) : r).then((r) => (typeof t == "string" && (ke[n ? `default:${t}` : t] = r), r));
1847
+ return Ve[t];
1848
+ if (!et[t]) {
1849
+ if (s = Al(t), s = Ge && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
1850
+ et[t] = s.then((r) => !r && typeof t == "string" && !n ? s = typeof e == "function" ? e(t) : Pl(t, i) : r).then((r) => (typeof t == "string" && (Ve[n ? `default:${t}` : t] = r), r));
1726
1851
  else if (typeof s == "string")
1727
- return ke[n ? `default:${t}` : t] = s, s;
1852
+ return Ve[n ? `default:${t}` : t] = s, s;
1728
1853
  }
1729
- return Xe[t];
1854
+ return et[t];
1730
1855
  };
1731
1856
  }
1732
- function $l(e) {
1857
+ function Al(e) {
1733
1858
  if (Ge)
1734
- return gl.then(() => wl(e));
1859
+ return Ll.then(() => Ol(e));
1735
1860
  }
1736
- function wl(e) {
1737
- const i = Fe == null ? void 0 : Fe.getPropertyValue(`--fk-icon-${e}`);
1861
+ function Ol(e) {
1862
+ const i = ze == null ? void 0 : ze.getPropertyValue(`--fk-icon-${e}`);
1738
1863
  if (i) {
1739
1864
  const t = atob(i);
1740
1865
  if (t.startsWith("<svg"))
1741
- return ke[e] = t, t;
1866
+ return Ve[e] = t, t;
1742
1867
  }
1743
1868
  }
1744
- function kl(e, i) {
1869
+ function Pl(e, i) {
1745
1870
  const t = At.startsWith("__") ? "latest" : At, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
1746
1871
  if (Ge)
1747
1872
  return fetch(`${n}`).then(async (l) => {
@@ -1752,8 +1877,8 @@ function kl(e, i) {
1752
1877
  console.error(l);
1753
1878
  });
1754
1879
  }
1755
- let _t = !1;
1756
- const Rt = {
1880
+ let gt = !1;
1881
+ const jt = {
1757
1882
  /**
1758
1883
  * FormKit errors:
1759
1884
  */
@@ -1775,7 +1900,7 @@ const Rt = {
1775
1900
  */
1776
1901
  600: ({ data: e }) => `Unknown input type${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} ("${e.name}")`,
1777
1902
  601: ({ data: e }) => `Input definition${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} is missing a schema or component property (${e.name}).`
1778
- }, jt = {
1903
+ }, Et = {
1779
1904
  /**
1780
1905
  * Core warnings:
1781
1906
  */
@@ -1785,7 +1910,7 @@ const Rt = {
1785
1910
  /**
1786
1911
  * Input specific warnings:
1787
1912
  */
1788
- 350: ({ data: e }) => `Invalid options prop for radio input (${e.name}). See https://formkit.com/inputs/radio`,
1913
+ 350: ({ data: { node: e, inputType: i } }) => `Invalid options prop for ${e.name} input (${i}). See https://formkit.com/inputs/${i}`,
1789
1914
  /**
1790
1915
  * Vue warnings:
1791
1916
  */
@@ -1796,41 +1921,46 @@ const Rt = {
1796
1921
  * Deprecation warnings:
1797
1922
  */
1798
1923
  800: ({ data: e }) => `${e} is deprecated.`
1799
- }, Cl = (e, i) => {
1800
- if (e.code in Rt) {
1801
- const t = Rt[e.code];
1924
+ }, xl = (e, i) => {
1925
+ if (e.code in jt) {
1926
+ const t = jt[e.code];
1802
1927
  e.message = typeof t == "function" ? t(e) : t;
1803
1928
  }
1804
1929
  return i(e);
1805
1930
  };
1806
- _t || dt(Cl);
1807
- const Sl = (e, i) => {
1808
- if (e.code in jt) {
1809
- const t = jt[e.code];
1931
+ gt || mt(xl);
1932
+ const Ml = (e, i) => {
1933
+ if (e.code in Et) {
1934
+ const t = Et[e.code];
1810
1935
  e.message = typeof t == "function" ? t(e) : t;
1811
1936
  }
1812
1937
  return i(e);
1813
1938
  };
1814
- _t || mt(Sl);
1815
- _t = !0;
1816
- const tt = {};
1817
- let U;
1818
- const oe = /* @__PURE__ */ new Map(), Vl = "__raw__", Il = /[a-zA-Z0-9\-][cC]lass$/;
1819
- function Ll(e, i) {
1820
- const t = Le(null);
1939
+ gt || bt(Ml);
1940
+ gt = !0;
1941
+ const jl = typeof window > "u", nt = /* @__PURE__ */ new Map();
1942
+ function El(e, i) {
1943
+ var t;
1944
+ !jl || !e || (nt.has(e) || nt.set(e, /* @__PURE__ */ new Set()), (t = nt.get(e)) === null || t === void 0 || t.add(i));
1945
+ }
1946
+ const dn = typeof window > "u", Le = {}, he = {};
1947
+ let K;
1948
+ const se = /* @__PURE__ */ new WeakMap(), Rl = "__raw__", Fl = /[a-zA-Z0-9\-][cC]lass$/;
1949
+ function Tl(e, i) {
1950
+ const t = Me(null);
1821
1951
  if (e === "get") {
1822
1952
  const l = {};
1823
- return t.value = Ol.bind(null, l), t;
1953
+ return t.value = Dl.bind(null, l), t;
1824
1954
  }
1825
1955
  const n = e.split(".");
1826
- return le(() => {
1827
- t.value = gt(He(i) ? i.value : i, n);
1956
+ return ae(() => {
1957
+ t.value = $t(kn(i) ? i.value : i, n);
1828
1958
  }), t;
1829
1959
  }
1830
- function gt(e, i) {
1960
+ function $t(e, i) {
1831
1961
  if (Array.isArray(e)) {
1832
1962
  for (const l of e) {
1833
- const s = l !== !1 && gt(l, i);
1963
+ const s = l !== !1 && $t(l, i);
1834
1964
  if (s !== void 0)
1835
1965
  return s;
1836
1966
  }
@@ -1852,175 +1982,178 @@ function gt(e, i) {
1852
1982
  }
1853
1983
  return t;
1854
1984
  }
1855
- function Ol(e, i) {
1985
+ function Dl(e, i) {
1856
1986
  if (typeof i != "string")
1857
- return Ae(650);
1858
- if (i in e || (e[i] = Le(void 0)), e[i].value === void 0) {
1987
+ return je(650);
1988
+ if (i in e || (e[i] = Me(void 0)), e[i].value === void 0) {
1859
1989
  e[i].value = null;
1860
1990
  const t = Ht(i);
1861
- t && (e[i].value = t.context), Yn(i, ({ payload: n }) => {
1862
- e[i].value = Je(n) ? n.context : n;
1991
+ t && (e[i].value = t.context), ei(i, ({ payload: n }) => {
1992
+ e[i].value = Qe(n) ? n.context : n;
1863
1993
  });
1864
1994
  }
1865
1995
  return e[i].value;
1866
1996
  }
1867
- function Tt(e, i) {
1868
- function t(_, v) {
1869
- const w = h(Y(v.if), { if: !0 }), S = u(_, v.then), p = v.else ? u(_, v.else) : null;
1870
- return [w, S, p];
1871
- }
1872
- function n(_, v) {
1873
- var w, S;
1874
- const p = h(Y(_.if));
1875
- let f = () => v, c = () => v;
1876
- return typeof _.then == "object" ? c = l(_.then, void 0) : typeof _.then == "string" && (!((w = _.then) === null || w === void 0) && w.startsWith("$")) ? c = h(Y(_.then)) : c = () => _.then, E(_, "else") && (typeof _.else == "object" ? f = l(_.else) : typeof _.else == "string" && (!((S = _.else) === null || S === void 0) && S.startsWith("$")) ? f = h(Y(_.else)) : f = () => _.else), () => p() ? c() : f();
1877
- }
1878
- function l(_, v, w = {}) {
1879
- const S = new Set(Object.keys(_ || {})), p = v ? h(Y(v)) : () => ({}), f = [
1880
- (c) => {
1881
- const $ = p();
1882
- for (const C in $)
1883
- S.has(C) || (c[C] = $[C]);
1997
+ function Rt(e, i, t) {
1998
+ function n(y, I) {
1999
+ const f = V(Z(I.if), { if: !0 }), m = d(y, I.then), p = I.else ? d(y, I.else) : null;
2000
+ return [f, m, p];
2001
+ }
2002
+ function l(y, I) {
2003
+ var f, m;
2004
+ const p = V(Z(y.if));
2005
+ let h = () => I, $ = () => I;
2006
+ return typeof y.then == "object" ? $ = s(y.then, void 0) : typeof y.then == "string" && (!((f = y.then) === null || f === void 0) && f.startsWith("$")) ? $ = V(Z(y.then)) : $ = () => y.then, j(y, "else") && (typeof y.else == "object" ? h = s(y.else) : typeof y.else == "string" && (!((m = y.else) === null || m === void 0) && m.startsWith("$")) ? h = V(Z(y.else)) : h = () => y.else), () => p() ? $() : h();
2007
+ }
2008
+ function s(y, I, f = {}) {
2009
+ const m = new Set(Object.keys(y || {})), p = I ? V(Z(I)) : () => ({}), h = [
2010
+ ($) => {
2011
+ const v = p();
2012
+ for (const b in v)
2013
+ m.has(b) || ($[b] = v[b]);
1884
2014
  }
1885
2015
  ];
1886
- if (_) {
1887
- if (pe(_))
1888
- return n(_, w);
1889
- for (let c in _) {
1890
- const $ = _[c];
1891
- let C;
1892
- const m = typeof $ == "string";
1893
- c.startsWith(Vl) ? (c = c.substring(7), C = () => $) : m && $.startsWith("$") && $.length > 1 && !($.startsWith("$reset") && Il.test(c)) ? C = h(Y($)) : typeof $ == "object" && pe($) ? C = n($, void 0) : typeof $ == "object" && ye($) ? C = l($) : C = () => $, f.push((d) => {
1894
- d[c] = C();
2016
+ if (y) {
2017
+ if (be(y))
2018
+ return l(y, f);
2019
+ for (let $ in y) {
2020
+ const v = y[$];
2021
+ let b;
2022
+ const c = typeof v == "string";
2023
+ $.startsWith(Rl) ? ($ = $.substring(7), b = () => v) : c && v.startsWith("$") && v.length > 1 && !(v.startsWith("$reset") && Fl.test($)) ? b = V(Z(v)) : typeof v == "object" && be(v) ? b = l(v, void 0) : typeof v == "object" && _e(v) ? b = s(v) : b = () => v, h.push((g) => {
2024
+ g[$] = b();
1895
2025
  });
1896
2026
  }
1897
2027
  }
1898
2028
  return () => {
1899
- const c = Array.isArray(_) ? [] : {};
1900
- return f.forEach(($) => $(c)), c;
2029
+ const $ = Array.isArray(y) ? [] : {};
2030
+ return h.forEach((v) => v($)), $;
1901
2031
  };
1902
2032
  }
1903
- function s(_, v) {
1904
- let w = null, S = () => null, p = !1, f = null, c = null, $ = null, C = !1;
1905
- const m = zi(v);
1906
- if (rt(m) ? (w = m.$el, S = m.$el !== "text" ? l(m.attrs, m.bind) : () => null) : ot(m) ? (typeof m.$cmp == "string" ? E(_, m.$cmp) ? w = _[m.$cmp] : (w = m.$cmp, C = !0) : w = m.$cmp, S = l(m.props, m.bind)) : pe(m) && ([p, f, c] = t(_, m)), !pe(m) && "if" in m ? p = h(Y(m.if)) : !pe(m) && w === null && (p = () => !0), "children" in m && m.children)
1907
- if (typeof m.children == "string")
1908
- if (m.children.startsWith("$slots."))
1909
- w = w === "text" ? "slot" : w, f = h(Y(m.children));
1910
- else if (m.children.startsWith("$") && m.children.length > 1) {
1911
- const d = h(Y(m.children));
1912
- f = () => String(d());
2033
+ function r(y, I) {
2034
+ let f = null, m = () => null, p = !1, h = null, $ = null, v = null, b = !1;
2035
+ const c = Ji(I);
2036
+ if (ot(c) ? (f = c.$el, m = c.$el !== "text" ? s(c.attrs, c.bind) : () => null) : ut(c) ? (typeof c.$cmp == "string" ? j(y, c.$cmp) ? f = y[c.$cmp] : (f = c.$cmp, b = !0) : f = c.$cmp, m = s(c.props, c.bind)) : be(c) && ([p, h, $] = n(y, c)), !be(c) && "if" in c ? p = V(Z(c.if)) : !be(c) && f === null && (p = () => !0), "children" in c && c.children)
2037
+ if (typeof c.children == "string")
2038
+ if (c.children.startsWith("$slots."))
2039
+ f = f === "text" ? "slot" : f, h = V(Z(c.children));
2040
+ else if (c.children.startsWith("$") && c.children.length > 1) {
2041
+ const g = V(Z(c.children));
2042
+ h = () => String(g());
1913
2043
  } else
1914
- f = () => String(m.children);
1915
- else if (Array.isArray(m.children))
1916
- f = u(_, m.children);
2044
+ h = () => String(c.children);
2045
+ else if (Array.isArray(c.children))
2046
+ h = d(y, c.children);
1917
2047
  else {
1918
- const [d, y, g] = t(_, m.children);
1919
- f = (V) => d && d() ? y && y(V) : g && g(V);
2048
+ const [g, k, L] = n(y, c.children);
2049
+ h = (R) => g && g() ? k && k(R) : L && L(R);
1920
2050
  }
1921
- if (ot(m))
1922
- if (f) {
1923
- const d = f;
1924
- f = (y) => ({
1925
- default(g, V) {
1926
- var O, R, I, F;
1927
- const z = U;
1928
- V && (U = V), g && ((O = oe.get(U)) === null || O === void 0 || O.unshift(g)), y && ((R = oe.get(U)) === null || R === void 0 || R.unshift(y));
1929
- const Z = d(y);
1930
- return g && ((I = oe.get(U)) === null || I === void 0 || I.shift()), y && ((F = oe.get(U)) === null || F === void 0 || F.shift()), U = z, Z;
2051
+ if (ut(c))
2052
+ if (h) {
2053
+ const g = h;
2054
+ h = (k) => ({
2055
+ default(L, R) {
2056
+ var C, F, B, H;
2057
+ const N = K;
2058
+ R && (K = R), L && ((C = se.get(K)) === null || C === void 0 || C.unshift(L)), k && ((F = se.get(K)) === null || F === void 0 || F.unshift(k));
2059
+ const P = g(k);
2060
+ return L && ((B = se.get(K)) === null || B === void 0 || B.shift()), k && ((H = se.get(K)) === null || H === void 0 || H.shift()), K = N, P;
1931
2061
  }
1932
- }), f.slot = !0;
2062
+ }), h.slot = !0;
1933
2063
  } else
1934
- f = () => ({});
1935
- if ("for" in m && m.for) {
1936
- const d = m.for.length === 3 ? m.for[2] : m.for[1];
1937
- $ = [
1938
- typeof d == "string" && d.startsWith("$") ? h(Y(d)) : () => d,
1939
- m.for[0],
1940
- m.for.length === 3 ? String(m.for[1]) : null
2064
+ h = () => ({});
2065
+ if ("for" in c && c.for) {
2066
+ const g = c.for.length === 3 ? c.for[2] : c.for[1];
2067
+ v = [
2068
+ typeof g == "string" && g.startsWith("$") ? V(Z(g)) : () => g,
2069
+ c.for[0],
2070
+ c.for.length === 3 ? String(c.for[1]) : null
1941
2071
  ];
1942
2072
  }
1943
- return [p, w, S, f, c, $, C];
2073
+ return [p, f, m, h, $, v, b];
1944
2074
  }
1945
- function r(_, v) {
1946
- const w = _(v), S = U;
1947
- return Object.keys(w).reduce((p, f) => {
1948
- const c = w && w[f];
1949
- return p[f] = ($) => c && c($, S) || null, p;
2075
+ function o(y, I) {
2076
+ const f = y(I), m = K;
2077
+ return Object.keys(f).reduce((p, h) => {
2078
+ const $ = f && f[h];
2079
+ return p[h] = (v) => $ && $(v, m) || null, p;
1950
2080
  }, {});
1951
2081
  }
1952
- function o(_, v) {
1953
- const [w, S, p, f, c, $, C] = s(_, v);
1954
- let m = (d) => {
1955
- if (w && S === null && f)
1956
- return w() ? f(d) : c && c(d);
1957
- if (S && (!w || w())) {
1958
- if (S === "text" && f)
1959
- return wn(String(f()));
1960
- if (S === "slot" && f)
1961
- return f(d);
1962
- const y = C ? T(S) : S, g = f != null && f.slot ? r(f, d) : null;
1963
- return Ce(y, p(), g || (f ? f(d) : []));
2082
+ function u(y, I) {
2083
+ const [f, m, p, h, $, v, b] = r(y, I);
2084
+ let c = (g) => {
2085
+ if (f && m === null && h)
2086
+ return f() ? h(g) : $ && $(g);
2087
+ if (m && (!f || f())) {
2088
+ if (m === "text" && h)
2089
+ return Cn(String(h()));
2090
+ if (m === "slot" && h)
2091
+ return h(g);
2092
+ const k = b ? E(m) : m, L = h != null && h.slot ? o(h, g) : null;
2093
+ return Ae(k, p(), L || (h ? h(g) : []));
1964
2094
  }
1965
- return typeof c == "function" ? c(d) : c;
2095
+ return typeof $ == "function" ? $(g) : $;
1966
2096
  };
1967
- if ($) {
1968
- const d = m, [y, g, V] = $;
1969
- m = () => {
1970
- const O = y(), R = isNaN(O) ? O : Array(Number(O)).fill(0).map((Z, K) => K), I = [];
1971
- if (typeof R != "object")
2097
+ if (v) {
2098
+ const g = c, [k, L, R] = v;
2099
+ c = () => {
2100
+ const C = k(), F = Number.isFinite(C) ? Array(Number(C)).fill(0).map((P, q) => q) : C, B = [];
2101
+ if (typeof F != "object")
1972
2102
  return null;
1973
- const F = oe.get(U) || [], z = Array.isArray(R);
1974
- for (const Z in R) {
1975
- if (z && Z in Array.prototype)
2103
+ const H = se.get(K) || [], N = Array.isArray(F);
2104
+ for (const P in F) {
2105
+ if (N && P in Array.prototype)
1976
2106
  continue;
1977
- const K = Object.defineProperty({
1978
- ...F.reduce((j, H) => j.__idata ? { ...j, ...H } : H, {}),
1979
- [g]: R[Z],
1980
- ...V !== null ? { [V]: z ? Number(Z) : Z } : {}
2107
+ const q = Object.defineProperty({
2108
+ ...H.reduce((ke, le) => ke.__idata ? { ...ke, ...le } : le, {}),
2109
+ [L]: F[P],
2110
+ ...R !== null ? { [R]: N ? Number(P) : P } : {}
1981
2111
  }, "__idata", { enumerable: !1, value: !0 });
1982
- F.unshift(K), I.push(d.bind(null, K)()), F.shift();
2112
+ H.unshift(q), B.push(g.bind(null, q)()), H.shift();
1983
2113
  }
1984
- return I;
2114
+ return B;
1985
2115
  };
1986
2116
  }
1987
- return m;
2117
+ return c;
1988
2118
  }
1989
- function u(_, v) {
1990
- if (Array.isArray(v)) {
1991
- const S = v.map(o.bind(null, _));
1992
- return (p) => S.map((f) => f(p));
2119
+ function d(y, I) {
2120
+ if (Array.isArray(I)) {
2121
+ const m = I.map(u.bind(null, y));
2122
+ return (p) => m.map((h) => h(p));
1993
2123
  }
1994
- const w = o(_, v);
1995
- return (S) => w(S);
2124
+ const f = u(y, I);
2125
+ return (m) => f(m);
1996
2126
  }
1997
- const b = [];
1998
- function h(_, v = {}) {
1999
- const w = {};
2000
- return b.push((S, p) => {
2001
- w[p] = _.provide((f) => S(f, v));
2002
- }), () => w[U]();
2127
+ const _ = [];
2128
+ function V(y, I = {}) {
2129
+ const f = /* @__PURE__ */ new WeakMap();
2130
+ return _.push((m, p) => {
2131
+ f.set(p, y.provide((h) => m(h, I)));
2132
+ }), () => f.get(K)();
2003
2133
  }
2004
- return function(v, w) {
2005
- const S = JSON.stringify(i), [p, f] = E(tt, S) ? tt[S] : [u(e, i), b];
2006
- return tt[S] = [p, f], f.forEach((c) => {
2007
- c(v, w);
2008
- }), () => (U = w, p());
2009
- };
2134
+ function J(y, I) {
2135
+ var f;
2136
+ t ?? (t = JSON.stringify(i));
2137
+ const [m, p] = j(Le, t) ? Le[t] : [d(e, i), _];
2138
+ return dn || ((f = he[t]) !== null && f !== void 0 || (he[t] = 0), he[t]++, Le[t] = [m, p]), p.forEach((h) => {
2139
+ h(y, I);
2140
+ }), () => (K = I, m());
2141
+ }
2142
+ return J;
2010
2143
  }
2011
2144
  function pn(e, i) {
2012
- const t = oe.get(U) || [];
2145
+ const t = se.get(K) || [];
2013
2146
  let n;
2014
- return t.length && (n = gt(t, e.split("."))), n === void 0 ? i : n;
2147
+ return t.length && (n = $t(t, e.split("."))), n === void 0 ? i : n;
2015
2148
  }
2016
- function Al(e, i) {
2149
+ function Bl(e, i) {
2017
2150
  return new Proxy(e, {
2018
2151
  get(...t) {
2019
2152
  let n;
2020
2153
  const l = t[1];
2021
2154
  if (typeof l == "string") {
2022
- const s = U;
2023
- U = i, n = pn(l, void 0), U = s;
2155
+ const s = K;
2156
+ K = i, n = pn(l, void 0), K = s;
2024
2157
  }
2025
2158
  return n !== void 0 ? n : Reflect.get(...t);
2026
2159
  }
@@ -2029,22 +2162,29 @@ function Al(e, i) {
2029
2162
  function Ft(e, i, t) {
2030
2163
  return e((n, l = {}) => n.reduce((s, r) => {
2031
2164
  if (r.startsWith("slots.")) {
2032
- const o = r.substring(6), u = () => i.slots && E(i.slots, o) && typeof i.slots[o] == "function";
2165
+ const o = r.substring(6), u = () => i.slots && j(i.slots, o) && typeof i.slots[o] == "function";
2033
2166
  if (l.if)
2034
2167
  s[r] = u;
2035
2168
  else if (i.slots) {
2036
- const b = Al(i, t);
2037
- s[r] = () => u() ? i.slots[o](b) : null;
2169
+ const d = Bl(i, t);
2170
+ s[r] = () => u() ? i.slots[o](d) : null;
2038
2171
  }
2039
2172
  } else {
2040
- const o = Ll(r, i);
2173
+ const o = Tl(r, i);
2041
2174
  s[r] = () => pn(r, o.value);
2042
2175
  }
2043
2176
  return s;
2044
2177
  }, {}), t);
2045
2178
  }
2046
- let Dt = 0;
2047
- const dn = P({
2179
+ function Tt(e, i, t) {
2180
+ if (i ?? (i = JSON.stringify(e)), he[i]--, he[i] === 0) {
2181
+ delete he[i];
2182
+ const [, n] = Le[i];
2183
+ delete Le[i], n.length = 0;
2184
+ }
2185
+ se.delete(t);
2186
+ }
2187
+ const mn = x({
2048
2188
  name: "FormKitSchema",
2049
2189
  props: {
2050
2190
  schema: {
@@ -2058,23 +2198,34 @@ const dn = P({
2058
2198
  library: {
2059
2199
  type: Object,
2060
2200
  default: () => ({})
2201
+ },
2202
+ memoKey: {
2203
+ type: String,
2204
+ required: !1
2061
2205
  }
2062
2206
  },
2063
2207
  setup(e, i) {
2064
- const t = zt();
2065
- let n = Symbol(String(Dt++));
2066
- oe.set(n, []);
2067
- let l = Tt(e.library, e.schema), s, r;
2068
- return me(() => e.schema, (o, u) => {
2069
- var b;
2070
- n = Symbol(String(Dt++)), l = Tt(e.library, e.schema), s = Ft(l, r, n), o === u && ((b = t == null ? void 0 : t.proxy) === null || b === void 0 ? void 0 : b.$forceUpdate)();
2071
- }, { deep: !0 }), le(() => {
2072
- r = Object.assign(yn(e.data), {
2208
+ var t;
2209
+ const n = lt();
2210
+ let l = {};
2211
+ se.set(l, []);
2212
+ let s = Rt(e.library, e.schema, e.memoKey), r, o;
2213
+ dn || ye(() => e.schema, (d, _) => {
2214
+ var V;
2215
+ const J = l;
2216
+ l = {}, s = Rt(e.library, e.schema, e.memoKey), r = Ft(s, o, l), d === _ && ((V = n == null ? void 0 : n.proxy) === null || V === void 0 ? void 0 : V.$forceUpdate)(), Tt(e.schema, e.memoKey, J);
2217
+ }, { deep: !0 }), ae(() => {
2218
+ var d;
2219
+ o = Object.assign(yn((d = e.data) !== null && d !== void 0 ? d : {}), {
2073
2220
  slots: i.slots
2074
- }), s = Ft(l, r, n);
2075
- }), () => s();
2221
+ }), i.slots, r = Ft(s, o, l);
2222
+ });
2223
+ function u() {
2224
+ Tt(e.schema, e.memoKey, l), o.node && o.node.destroy(), o.slots = null, o = null, r = null;
2225
+ }
2226
+ return vn(u), El((t = lt()) === null || t === void 0 ? void 0 : t.appContext.app, u), () => r ? r() : null;
2076
2227
  }
2077
- }), xl = {
2228
+ }), zl = {
2078
2229
  config: {
2079
2230
  type: Object,
2080
2231
  default: {}
@@ -2087,6 +2238,10 @@ const dn = P({
2087
2238
  type: Number,
2088
2239
  required: !1
2089
2240
  },
2241
+ dynamic: {
2242
+ type: Boolean,
2243
+ required: !1
2244
+ },
2090
2245
  errors: {
2091
2246
  type: Array,
2092
2247
  default: []
@@ -2122,6 +2277,10 @@ const dn = P({
2122
2277
  type: Object,
2123
2278
  default: {}
2124
2279
  },
2280
+ sync: {
2281
+ type: Boolean,
2282
+ required: !1
2283
+ },
2125
2284
  type: {
2126
2285
  type: [String, Object],
2127
2286
  default: "text"
@@ -2142,9 +2301,9 @@ const dn = P({
2142
2301
  type: [String, Function],
2143
2302
  required: !1
2144
2303
  }
2145
- }, Pl = xl, Ke = Symbol("FormKitParent");
2146
- P({
2147
- props: Pl,
2304
+ }, Ul = zl, Kl = typeof window > "u", Ze = Symbol("FormKitParent");
2305
+ x({
2306
+ props: Ul,
2148
2307
  emits: {
2149
2308
  /* eslint-disable @typescript-eslint/no-unused-vars */
2150
2309
  input: (e, i) => !0,
@@ -2158,80 +2317,27 @@ P({
2158
2317
  },
2159
2318
  inheritAttrs: !1,
2160
2319
  setup(e, i) {
2161
- const t = Tl(e, i);
2162
- if (t.props.definition || N(600, t), t.props.definition.component)
2320
+ const t = Wl(e, i);
2321
+ if (t.props.definition || W(600, t), t.props.definition.component)
2163
2322
  return () => {
2164
- var r;
2165
- return Ce((r = t.props.definition) === null || r === void 0 ? void 0 : r.component, {
2323
+ var o;
2324
+ return Ae((o = t.props.definition) === null || o === void 0 ? void 0 : o.component, {
2166
2325
  context: t.context
2167
2326
  }, { ...i.slots });
2168
2327
  };
2169
- const n = Le([]), l = () => {
2170
- var r, o;
2171
- const u = (o = (r = t.props) === null || r === void 0 ? void 0 : r.definition) === null || o === void 0 ? void 0 : o.schema;
2172
- u || N(601, t), n.value = typeof u == "function" ? u({ ...e.sectionsSchema }) : u;
2328
+ const n = Me([]);
2329
+ let l = t.props.definition.schemaMemoKey;
2330
+ const s = () => {
2331
+ var o, u;
2332
+ const d = (u = (o = t.props) === null || o === void 0 ? void 0 : o.definition) === null || u === void 0 ? void 0 : u.schema;
2333
+ d || W(601, t), typeof d == "function" ? (n.value = d({ ...e.sectionsSchema }), (l && e.sectionsSchema || "memoKey" in d && typeof d.memoKey == "string") && (l = (l ?? (d == null ? void 0 : d.memoKey)) + JSON.stringify(e.sectionsSchema))) : n.value = d;
2173
2334
  };
2174
- l(), t.on("schema", l), i.emit("node", t);
2175
- const s = t.props.definition.library;
2176
- return i.expose({ node: t }), () => Ce(dn, { schema: n.value, data: t.context, library: s }, { ...i.slots });
2335
+ s(), Kl || t.on("schema", s), i.emit("node", t);
2336
+ const r = t.props.definition.library;
2337
+ return i.expose({ node: t }), () => Ae(mn, { schema: n.value, data: t.context, library: r, memoKey: l }, { ...i.slots });
2177
2338
  }
2178
2339
  });
2179
- const mn = Symbol.for("FormKitOptions"), ft = Symbol();
2180
- function El(e, i) {
2181
- const t = {}, n = (r) => {
2182
- for (const o of r)
2183
- o.__str in t && t[o.__str](), t[o.__str] = me(Rl.bind(null, e, o), s.bind(null, o), { deep: !1 });
2184
- }, s = Ml(e, i, n, (r) => {
2185
- if (r.length)
2186
- for (const o in t)
2187
- `${o}`.startsWith(`${r.__str}.`) && (t[o](), delete t[o]);
2188
- });
2189
- n($t(e));
2190
- }
2191
- function Ml(e, i, t, n) {
2192
- return (l) => {
2193
- const s = bn(e, l);
2194
- s !== ft && (l.__deep && n(l), typeof s == "object" && t($t(s, [l], ...l)), i(l, s, e));
2195
- };
2196
- }
2197
- function Rl(e, i) {
2198
- const t = bn(e, i);
2199
- return t && typeof t == "object" ? Object.keys(t) : t;
2200
- }
2201
- function bn(e, i) {
2202
- if (He(e)) {
2203
- if (i.length === 0)
2204
- return e.value;
2205
- e = e.value;
2206
- }
2207
- return i.reduce((t, n) => t === ft ? t : t === null || typeof t != "object" ? ft : t[n], e);
2208
- }
2209
- function $t(e, i = [], ...t) {
2210
- if (e === null)
2211
- return i;
2212
- if (!t.length) {
2213
- const n = Object.defineProperty([], "__str", {
2214
- value: ""
2215
- });
2216
- if (e = He(e) ? e.value : e, e && typeof e == "object")
2217
- Object.defineProperty(n, "__deep", { value: !0 }), i.push(n);
2218
- else
2219
- return [n];
2220
- }
2221
- if (e === null || typeof e != "object")
2222
- return i;
2223
- for (const n in e) {
2224
- const l = t.concat(n);
2225
- Object.defineProperty(l, "__str", { value: l.join(".") });
2226
- const s = e[n];
2227
- ye(s) || Array.isArray(s) ? (i.push(Object.defineProperty(l, "__deep", { value: !0 })), i = i.concat($t(s, [], ...l))) : i.push(l);
2228
- }
2229
- return i;
2230
- }
2231
- function De(e) {
2232
- return e === null || typeof e != "object" || (kt(e) ? e = gn(e) : He(e) && (e = kt(e.value) ? De(e.value) : e.value)), e;
2233
- }
2234
- const nt = [
2340
+ const bn = Symbol.for("FormKitOptions"), it = [
2235
2341
  "help",
2236
2342
  "label",
2237
2343
  "ignore",
@@ -2244,139 +2350,137 @@ const nt = [
2244
2350
  "suffixIcon",
2245
2351
  /^[a-zA-Z-]+(?:-icon|Icon)$/
2246
2352
  ];
2247
- function Bt(e, i) {
2353
+ function Dt(e, i) {
2248
2354
  i.classes && Object.keys(i.classes).forEach((t) => {
2249
- typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], lt(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
2355
+ typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], ct(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
2250
2356
  });
2251
2357
  }
2252
- function jl(e) {
2358
+ function ql(e) {
2253
2359
  return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce((t, n) => {
2254
2360
  const l = `on${n}`;
2255
2361
  return l in e && typeof e[l] == "function" && (t[l] = e[l]), t;
2256
2362
  }, {}) : {};
2257
2363
  }
2258
- function Tl(e, i, t = {}) {
2364
+ function Wl(e, i, t = {}) {
2259
2365
  var n;
2260
- const l = Object.assign({}, Se(mn) || {}, t), s = zt(), r = jl(s == null ? void 0 : s.vnode.props), o = "modelValue" in ((n = s == null ? void 0 : s.vnode.props) !== null && n !== void 0 ? n : {}), u = e.modelValue !== void 0 ? e.modelValue : ue(i.attrs.value);
2261
- function b() {
2262
- const d = {
2263
- ...ce(e),
2366
+ const l = Object.assign({}, Oe(bn) || {}, t), s = lt(), r = ql(s == null ? void 0 : s.vnode.props), o = "modelValue" in ((n = s == null ? void 0 : s.vnode.props) !== null && n !== void 0 ? n : {});
2367
+ let u = !1;
2368
+ hn(() => {
2369
+ u = !0;
2370
+ });
2371
+ const d = e.modelValue !== void 0 ? e.modelValue : de(i.attrs.value);
2372
+ function _() {
2373
+ const b = {
2374
+ ...me(e),
2264
2375
  ...r
2265
- }, y = Ct(ce(i.attrs), nt);
2266
- y.key || (y.key = Ze()), d.attrs = y;
2267
- const g = St(ce(i.attrs), nt);
2268
- for (const O in g)
2269
- d[Ee(O)] = g[O];
2270
- const V = { props: {} };
2271
- return Bt(V, e), Object.assign(d, V.props), typeof d.type != "string" && (d.definition = d.type, delete d.type), d;
2272
- }
2273
- const h = b(), _ = h.ignore ? null : e.parent || Se(Ke, null), v = Di(Ye(l || {}, {
2376
+ }, c = kt(me(i.attrs), it);
2377
+ c.key || (c.key = Je()), b.attrs = c;
2378
+ const g = Ct(me(i.attrs), it);
2379
+ for (const L in g)
2380
+ b[Fe(L)] = g[L];
2381
+ const k = { props: {} };
2382
+ return Dt(k, e), Object.assign(b, k.props), typeof b.type != "string" && (b.definition = b.type, delete b.type), b;
2383
+ }
2384
+ const V = _(), J = V.ignore ? null : e.parent || Oe(Ze, null), y = Hi(Ye(l || {}, {
2274
2385
  name: e.name || void 0,
2275
- value: u,
2276
- parent: _,
2386
+ value: d,
2387
+ parent: J,
2277
2388
  plugins: (l.plugins || []).concat(e.plugins),
2278
2389
  config: e.config,
2279
- props: h,
2280
- index: e.index
2390
+ props: V,
2391
+ index: e.index,
2392
+ sync: e.sync || e.dynamic
2281
2393
  }, !1, !0));
2282
- v.props.definition || N(600, v);
2283
- const w = Le(new Set(v.props.definition.props || []));
2284
- v.on("added-props", ({ payload: d }) => {
2285
- Array.isArray(d) && d.forEach((y) => w.value.add(y));
2394
+ y.props.definition || W(600, y);
2395
+ const I = Me(new Set(y.props.definition.props || []));
2396
+ y.on("added-props", ({ payload: b }) => {
2397
+ Array.isArray(b) && b.forEach((c) => I.value.add(c));
2286
2398
  });
2287
- const S = M(() => nt.concat([...w.value]).reduce((d, y) => (typeof y == "string" ? (d.push(Ee(y)), d.push(Wt(y))) : d.push(y), d), []));
2288
- le(() => Bt(v, e));
2289
- const p = ce(e);
2290
- for (const d in p)
2291
- me(() => e[d], () => {
2292
- e[d] !== void 0 && (v.props[d] = e[d]);
2399
+ const f = M(() => it.concat([...I.value]).reduce((b, c) => (typeof c == "string" ? (b.push(Fe(c)), b.push(Ut(c))) : b.push(c), b), []));
2400
+ ae(() => Dt(y, e));
2401
+ const m = me(e);
2402
+ for (const b in m)
2403
+ ye(() => e[b], () => {
2404
+ e[b] !== void 0 && (y.props[b] = e[b]);
2293
2405
  });
2294
- const f = /* @__PURE__ */ new Set(), c = ce(i.attrs);
2295
- le(() => {
2296
- $(St(c, S.value));
2406
+ const p = /* @__PURE__ */ new Set(), h = me(i.attrs);
2407
+ ae(() => {
2408
+ $(Ct(h, f.value));
2297
2409
  });
2298
- function $(d) {
2299
- f.forEach((y) => {
2300
- y(), f.delete(y);
2410
+ function $(b) {
2411
+ p.forEach((c) => {
2412
+ c(), p.delete(c);
2301
2413
  });
2302
- for (const y in d) {
2303
- const g = Ee(y);
2304
- f.add(me(() => i.attrs[y], () => {
2305
- v.props[g] = i.attrs[y];
2414
+ for (const c in b) {
2415
+ const g = Fe(c);
2416
+ p.add(ye(() => i.attrs[c], () => {
2417
+ y.props[g] = i.attrs[c];
2306
2418
  }));
2307
2419
  }
2308
2420
  }
2309
- if (le(() => {
2310
- const d = Ct(ce(i.attrs), S.value);
2311
- "multiple" in d && (d.multiple = Q(d.multiple)), v.props.attrs = Object.assign({}, v.props.attrs || {}, d);
2312
- }), le(() => {
2313
- const d = e.errors.map((y) => ae({
2314
- key: ct(y),
2421
+ if (ae(() => {
2422
+ const b = kt(me(i.attrs), f.value);
2423
+ "multiple" in b && (b.multiple = Y(b.multiple)), typeof b.onBlur == "function" && (b.onBlur = jn(b.onBlur)), y.props.attrs = Object.assign({}, y.props.attrs || {}, b);
2424
+ }), ae(() => {
2425
+ const b = e.errors.map((c) => re({
2426
+ key: dt(c),
2315
2427
  type: "error",
2316
- value: y,
2428
+ value: c,
2317
2429
  meta: { source: "prop" }
2318
2430
  }));
2319
- v.store.apply(d, (y) => y.type === "error" && y.meta.source === "prop");
2320
- }), v.type !== "input") {
2321
- const d = `${v.name}-prop`;
2322
- le(() => {
2323
- const y = Object.keys(e.inputErrors);
2324
- y.length || v.clearErrors(!0, d);
2325
- const g = y.reduce((V, O) => {
2326
- let R = e.inputErrors[O];
2327
- return typeof R == "string" && (R = [R]), Array.isArray(R) && (V[O] = R.map((I) => ae({
2328
- key: I,
2431
+ y.store.apply(b, (c) => c.type === "error" && c.meta.source === "prop");
2432
+ }), y.type !== "input") {
2433
+ const b = `${y.name}-prop`;
2434
+ ae(() => {
2435
+ const c = Object.keys(e.inputErrors);
2436
+ c.length || y.clearErrors(!0, b);
2437
+ const g = c.reduce((k, L) => {
2438
+ let R = e.inputErrors[L];
2439
+ return typeof R == "string" && (R = [R]), Array.isArray(R) && (k[L] = R.map((C) => re({
2440
+ key: C,
2329
2441
  type: "error",
2330
- value: I,
2331
- meta: { source: d }
2332
- }))), V;
2442
+ value: C,
2443
+ meta: { source: b }
2444
+ }))), k;
2333
2445
  }, {});
2334
- v.store.apply(g, (V) => V.type === "error" && V.meta.source === d);
2446
+ y.store.apply(g, (k) => k.type === "error" && k.meta.source === b);
2335
2447
  });
2336
2448
  }
2337
- le(() => Object.assign(v.config, e.config)), v.type !== "input" && vn(Ke, v);
2338
- let C;
2339
- const m = /* @__PURE__ */ new WeakSet();
2340
- return v.on("modelUpdated", () => {
2341
- var d, y;
2342
- if (i.emit("inputRaw", (d = v.context) === null || d === void 0 ? void 0 : d.value, v), clearTimeout(C), C = setTimeout(i.emit, 20, "input", (y = v.context) === null || y === void 0 ? void 0 : y.value, v), o && v.context) {
2343
- const g = De(v.context.value);
2344
- lt(g) && De(e.modelValue) !== g && m.add(g), i.emit("update:modelValue", g);
2345
- }
2346
- }), o && (El(hn(e, "modelValue"), (d, y) => {
2347
- var g;
2348
- const V = De(y);
2349
- if (lt(V) && m.has(V))
2350
- return m.delete(V);
2351
- d.length ? (g = v.at(d)) === null || g === void 0 || g.input(y, !1) : v.input(y, !1);
2352
- }), v.value !== u && v.emit("modelUpdated")), _n(() => v.destroy()), v;
2353
- }
2354
- let Fl = 1;
2355
- function Dl(e) {
2449
+ ae(() => Object.assign(y.config, e.config)), y.type !== "input" && _n(Ze, y);
2450
+ let v;
2451
+ return y.on("modelUpdated", () => {
2452
+ var b, c;
2453
+ i.emit("inputRaw", (b = y.context) === null || b === void 0 ? void 0 : b.value, y), u && i.emit("input", (c = y.context) === null || c === void 0 ? void 0 : c.value, y), o && y.context && (v = de(y.value), i.emit("update:modelValue", Pn(y.value)));
2454
+ }), o && (ye(gn(e, "modelValue"), (b) => {
2455
+ ue(v, b) || y.input(b, !1);
2456
+ }, { deep: !0 }), y.value !== d && y.emit("modelUpdated")), $n(() => y.destroy()), y;
2457
+ }
2458
+ let Nl = 1;
2459
+ function Hl(e) {
2356
2460
  return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
2357
2461
  }
2358
- function B(e, i = {}) {
2462
+ function D(e, i = {}) {
2359
2463
  const t = {
2360
2464
  type: "input",
2361
2465
  ...i
2362
2466
  };
2363
2467
  let n;
2364
- if (Dl(e)) {
2365
- const l = `SchemaComponent${Fl++}`;
2366
- n = k("input", () => ({
2468
+ if (Hl(e)) {
2469
+ const l = `SchemaComponent${Nl++}`;
2470
+ n = w("input", () => ({
2367
2471
  $cmp: l,
2368
2472
  props: {
2369
2473
  context: "$node.context"
2370
2474
  }
2371
- })), t.library = { [l]: $n(e) };
2475
+ })), t.library = { [l]: wn(e) };
2372
2476
  } else
2373
- typeof e == "function" ? n = e : n = k("input", () => ue(e));
2374
- return t.schema = hl(n || "Schema undefined"), t;
2477
+ typeof e == "function" ? n = e : n = w("input", () => de(e));
2478
+ return t.schema = Il(n || "Schema undefined"), t.schemaMemoKey || (t.schemaMemoKey = `${Math.random()}`), t;
2375
2479
  }
2376
- const Bl = k("messages", () => ({
2480
+ const Zl = w("messages", () => ({
2377
2481
  $el: "ul",
2378
2482
  if: "$fns.length($messages)"
2379
- }), !0), zl = k("message", () => ({
2483
+ })), Jl = w("message", () => ({
2380
2484
  $el: "li",
2381
2485
  for: ["message", "$messages"],
2382
2486
  attrs: {
@@ -2384,8 +2488,8 @@ const Bl = k("messages", () => ({
2384
2488
  id: "$id + '-' + $message.key",
2385
2489
  "data-message-type": "$message.type"
2386
2490
  }
2387
- })), Wl = Bl(zl("$message.value"));
2388
- P({
2491
+ })), Yl = Zl(Jl("$message.value"));
2492
+ x({
2389
2493
  props: {
2390
2494
  node: {
2391
2495
  type: Object,
@@ -2401,26 +2505,26 @@ P({
2401
2505
  }
2402
2506
  },
2403
2507
  setup(e, i) {
2404
- const t = M(() => e.node || Se(Ke, void 0));
2405
- me(t, () => {
2508
+ const t = M(() => e.node || Oe(Ze, void 0));
2509
+ ye(t, () => {
2406
2510
  var s;
2407
- !((s = t.value) === null || s === void 0) && s.context && !Q(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
2511
+ !((s = t.value) === null || s === void 0) && s.context && !Y(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
2408
2512
  }, { immediate: !0 });
2409
- const n = Wl(e.sectionsSchema || {}), l = M(() => {
2410
- var s, r, o, u, b, h;
2513
+ const n = Yl(e.sectionsSchema || {}), l = M(() => {
2514
+ var s, r, o, u, d, _;
2411
2515
  return {
2412
2516
  messages: ((r = (s = t.value) === null || s === void 0 ? void 0 : s.context) === null || r === void 0 ? void 0 : r.messages) || {},
2413
2517
  fns: ((u = (o = t.value) === null || o === void 0 ? void 0 : o.context) === null || u === void 0 ? void 0 : u.fns) || {},
2414
- classes: ((h = (b = t.value) === null || b === void 0 ? void 0 : b.context) === null || h === void 0 ? void 0 : h.classes) || {}
2518
+ classes: ((_ = (d = t.value) === null || d === void 0 ? void 0 : d.context) === null || _ === void 0 ? void 0 : _.classes) || {}
2415
2519
  };
2416
2520
  });
2417
2521
  return () => {
2418
2522
  var s;
2419
- return !((s = t.value) === null || s === void 0) && s.context ? Ce(dn, { schema: n, data: l.value }, { ...i.slots }) : null;
2523
+ return !((s = t.value) === null || s === void 0) && s.context ? Ae(mn, { schema: n, data: l.value }, { ...i.slots }) : null;
2420
2524
  };
2421
2525
  }
2422
2526
  });
2423
- P({
2527
+ x({
2424
2528
  name: "FormKitIcon",
2425
2529
  props: {
2426
2530
  icon: {
@@ -2438,35 +2542,35 @@ P({
2438
2542
  },
2439
2543
  setup(e) {
2440
2544
  var i, t;
2441
- const n = Le(void 0), l = Se(mn, {}), s = Se(Ke, null);
2545
+ const n = Me(void 0), l = Oe(bn, {}), s = Oe(Ze, null);
2442
2546
  let r;
2443
2547
  function o() {
2444
2548
  if (!r || typeof r != "function")
2445
2549
  return;
2446
2550
  const u = r(e.icon);
2447
- u instanceof Promise ? u.then((b) => {
2448
- n.value = b;
2551
+ u instanceof Promise ? u.then((d) => {
2552
+ n.value = d;
2449
2553
  }) : n.value = u;
2450
2554
  }
2451
2555
  if (e.iconLoader && typeof e.iconLoader == "function")
2452
- r = et(e.iconLoader);
2556
+ r = tt(e.iconLoader);
2453
2557
  else if (s && (!((i = s.props) === null || i === void 0) && i.iconLoader))
2454
- r = et(s.props.iconLoader);
2558
+ r = tt(s.props.iconLoader);
2455
2559
  else if (e.iconLoaderUrl && typeof e.iconLoaderUrl == "function")
2456
- r = et(r, e.iconLoaderUrl);
2560
+ r = tt(r, e.iconLoaderUrl);
2457
2561
  else {
2458
- const u = (t = l == null ? void 0 : l.plugins) === null || t === void 0 ? void 0 : t.find((b) => typeof b.iconHandler == "function");
2562
+ const u = (t = l == null ? void 0 : l.plugins) === null || t === void 0 ? void 0 : t.find((d) => typeof d.iconHandler == "function");
2459
2563
  u && (r = u.iconHandler);
2460
2564
  }
2461
- return me(() => e.icon, () => {
2565
+ return ye(() => e.icon, () => {
2462
2566
  o();
2463
- }, { immediate: !0 }), () => e.icon && n.value ? Ce("span", {
2567
+ }, { immediate: !0 }), () => e.icon && n.value ? Ae("span", {
2464
2568
  class: "formkit-icon",
2465
2569
  innerHTML: n.value
2466
2570
  }) : null;
2467
2571
  }
2468
2572
  });
2469
- const Ul = /* @__PURE__ */ P({
2573
+ const Ql = /* @__PURE__ */ x({
2470
2574
  __name: "PrimeCalendar",
2471
2575
  props: {
2472
2576
  context: Object
@@ -2481,11 +2585,11 @@ const Ul = /* @__PURE__ */ P({
2481
2585
  }
2482
2586
  const r = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2483
2587
  return (o, u) => {
2484
- const b = T("Calendar");
2485
- return A(), x("div", null, [
2486
- D(b, {
2588
+ const d = E("Calendar");
2589
+ return A(), O("div", null, [
2590
+ T(d, {
2487
2591
  modelValue: a(t)._value,
2488
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2592
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2489
2593
  "input-id": i.context.id,
2490
2594
  disabled: a(n)._disabled ?? !1,
2491
2595
  readonly: a(n)._readonly ?? !1,
@@ -2540,13 +2644,13 @@ const Ul = /* @__PURE__ */ P({
2540
2644
  ]);
2541
2645
  };
2542
2646
  }
2543
- }), ql = {
2647
+ }), Xl = {
2544
2648
  key: 0,
2545
2649
  class: "formkit-prime-left"
2546
- }, Nl = {
2650
+ }, Gl = {
2547
2651
  key: 1,
2548
2652
  class: "formkit-prime-right"
2549
- }, Kl = /* @__PURE__ */ P({
2653
+ }, ea = /* @__PURE__ */ x({
2550
2654
  __name: "PrimeCheckbox",
2551
2655
  props: {
2552
2656
  context: Object
@@ -2559,12 +2663,12 @@ const Ul = /* @__PURE__ */ P({
2559
2663
  }
2560
2664
  const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2561
2665
  return (r, o) => {
2562
- const u = T("Checkbox");
2563
- return A(), x("div", null, [
2564
- a(t).attrs.labelLeft ? (A(), x("span", ql, be(a(t).attrs.labelLeft), 1)) : se("", !0),
2565
- D(u, {
2666
+ const u = E("Checkbox");
2667
+ return A(), O("div", null, [
2668
+ a(t).attrs.labelLeft ? (A(), O("span", Xl, ce(a(t).attrs.labelLeft), 1)) : oe("", !0),
2669
+ T(u, {
2566
2670
  modelValue: a(t)._value,
2567
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2671
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
2568
2672
  "input-id": a(t).id,
2569
2673
  disabled: a(n)._disabled ?? !1,
2570
2674
  readonly: a(n)._readonly ?? !1,
@@ -2578,11 +2682,11 @@ const Ul = /* @__PURE__ */ P({
2578
2682
  "false-value": a(n).falseValue ?? void 0,
2579
2683
  onInput: l
2580
2684
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "binary", "true-value", "false-value"]),
2581
- a(t).attrs.labelRight ? (A(), x("span", Nl, be(a(t).attrs.labelRight), 1)) : se("", !0)
2685
+ a(t).attrs.labelRight ? (A(), O("span", Gl, ce(a(t).attrs.labelRight), 1)) : oe("", !0)
2582
2686
  ]);
2583
2687
  };
2584
2688
  }
2585
- }), Hl = /* @__PURE__ */ P({
2689
+ }), ta = /* @__PURE__ */ x({
2586
2690
  __name: "PrimeChips",
2587
2691
  props: {
2588
2692
  context: Object
@@ -2595,11 +2699,11 @@ const Ul = /* @__PURE__ */ P({
2595
2699
  }
2596
2700
  const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2597
2701
  return (r, o) => {
2598
- const u = T("Chips");
2599
- return A(), x("div", null, [
2600
- D(u, {
2702
+ const u = E("Chips");
2703
+ return A(), O("div", null, [
2704
+ T(u, {
2601
2705
  modelValue: a(t)._value,
2602
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2706
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
2603
2707
  "input-id": a(t).id,
2604
2708
  disabled: a(n)._disabled ?? !1,
2605
2709
  readonly: a(n)._readonly ?? !1,
@@ -2619,7 +2723,7 @@ const Ul = /* @__PURE__ */ P({
2619
2723
  ]);
2620
2724
  };
2621
2725
  }
2622
- }), Zl = /* @__PURE__ */ P({
2726
+ }), na = /* @__PURE__ */ x({
2623
2727
  __name: "PrimeColorPicker",
2624
2728
  props: {
2625
2729
  context: Object
@@ -2631,14 +2735,14 @@ const Ul = /* @__PURE__ */ P({
2631
2735
  t == null || t.node.input((r = i.context) == null ? void 0 : r._value);
2632
2736
  }
2633
2737
  return (s, r) => {
2634
- const o = T("ColorPicker");
2635
- return A(), x("div", null, [
2636
- D(o, {
2738
+ const o = E("ColorPicker");
2739
+ return A(), O("div", null, [
2740
+ T(o, {
2637
2741
  modelValue: a(t)._value,
2638
2742
  "onUpdate:modelValue": r[0] || (r[0] = (u) => a(t)._value = u),
2639
2743
  disabled: a(n)._disabled ?? !1,
2640
2744
  readonly: a(n)._readonly ?? !1,
2641
- style: fe(a(n).style),
2745
+ style: pe(a(n).style),
2642
2746
  "panel-class": a(n).class,
2643
2747
  tabindex: a(n).tabindex,
2644
2748
  "aria-label": a(n).ariaLabel,
@@ -2651,7 +2755,7 @@ const Ul = /* @__PURE__ */ P({
2651
2755
  ]);
2652
2756
  };
2653
2757
  }
2654
- }), Yl = /* @__PURE__ */ P({
2758
+ }), ia = /* @__PURE__ */ x({
2655
2759
  __name: "PrimeDropdown",
2656
2760
  props: {
2657
2761
  context: Object
@@ -2666,11 +2770,11 @@ const Ul = /* @__PURE__ */ P({
2666
2770
  }
2667
2771
  const r = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2668
2772
  return (o, u) => {
2669
- const b = T("Dropdown");
2670
- return A(), x("div", null, [
2671
- D(b, {
2773
+ const d = E("Dropdown");
2774
+ return A(), O("div", null, [
2775
+ T(d, {
2672
2776
  modelValue: a(t)._value,
2673
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2777
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2674
2778
  "input-id": a(t).id,
2675
2779
  disabled: a(n)._disabled ?? !1,
2676
2780
  readonly: a(n)._readonly ?? !1,
@@ -2691,7 +2795,7 @@ const Ul = /* @__PURE__ */ P({
2691
2795
  ]);
2692
2796
  };
2693
2797
  }
2694
- }), Jl = /* @__PURE__ */ P({
2798
+ }), la = /* @__PURE__ */ x({
2695
2799
  __name: "PrimeEditor",
2696
2800
  props: {
2697
2801
  context: Object
@@ -2706,16 +2810,16 @@ const Ul = /* @__PURE__ */ P({
2706
2810
  }
2707
2811
  const r = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2708
2812
  return (o, u) => {
2709
- const b = T("Editor");
2710
- return A(), x("div", null, [
2711
- D(b, {
2813
+ const d = E("Editor");
2814
+ return A(), O("div", null, [
2815
+ T(d, {
2712
2816
  id: a(t).id,
2713
2817
  modelValue: a(t)._value,
2714
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2818
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2715
2819
  disabled: a(n)._disabled ?? !1,
2716
2820
  readonly: a(n)._readonly ?? !1,
2717
2821
  "editor-style": a(n).style,
2718
- class: q(a(r)),
2822
+ class: U(a(r)),
2719
2823
  tabindex: a(n).tabindex,
2720
2824
  "aria-label": a(n).ariaLabel,
2721
2825
  "aria-labelledby": a(n).ariaLabelledby,
@@ -2728,7 +2832,7 @@ const Ul = /* @__PURE__ */ P({
2728
2832
  ]);
2729
2833
  };
2730
2834
  }
2731
- }), Ql = /* @__PURE__ */ P({
2835
+ }), aa = /* @__PURE__ */ x({
2732
2836
  __name: "PrimeInputMask",
2733
2837
  props: {
2734
2838
  context: Object
@@ -2741,16 +2845,16 @@ const Ul = /* @__PURE__ */ P({
2741
2845
  }
2742
2846
  const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2743
2847
  return (r, o) => {
2744
- const u = T("InputMask");
2745
- return A(), x("div", null, [
2746
- D(u, {
2848
+ const u = E("InputMask");
2849
+ return A(), O("div", null, [
2850
+ T(u, {
2747
2851
  id: a(t).id,
2748
2852
  modelValue: a(t)._value,
2749
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2853
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
2750
2854
  disabled: a(n)._disabled ?? !1,
2751
2855
  readonly: a(n)._readonly ?? !1,
2752
2856
  "editor-style": a(n).style,
2753
- class: q(a(s)),
2857
+ class: U(a(s)),
2754
2858
  tabindex: a(n).tabindex,
2755
2859
  "aria-label": a(n).ariaLabel,
2756
2860
  "aria-labelledby": a(n).ariaLabelledby,
@@ -2764,7 +2868,7 @@ const Ul = /* @__PURE__ */ P({
2764
2868
  ]);
2765
2869
  };
2766
2870
  }
2767
- }), Gl = /* @__PURE__ */ P({
2871
+ }), sa = /* @__PURE__ */ x({
2768
2872
  __name: "PrimeInputNumber",
2769
2873
  props: {
2770
2874
  context: Object
@@ -2779,11 +2883,11 @@ const Ul = /* @__PURE__ */ P({
2779
2883
  }
2780
2884
  const r = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2781
2885
  return (o, u) => {
2782
- const b = T("InputNumber");
2783
- return A(), x("div", null, [
2784
- D(b, {
2886
+ const d = E("InputNumber");
2887
+ return A(), O("div", null, [
2888
+ T(d, {
2785
2889
  modelValue: a(t)._value,
2786
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2890
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2787
2891
  "input-id": a(t).id,
2788
2892
  disabled: a(n)._disabled ?? !1,
2789
2893
  readonly: a(n)._readonly ?? !1,
@@ -2810,13 +2914,13 @@ const Ul = /* @__PURE__ */ P({
2810
2914
  ]);
2811
2915
  };
2812
2916
  }
2813
- }), Xl = {
2917
+ }), ra = {
2814
2918
  key: 0,
2815
2919
  class: "formkit-prime-left"
2816
- }, ea = {
2920
+ }, oa = {
2817
2921
  key: 1,
2818
2922
  class: "formkit-prime-right"
2819
- }, ta = /* @__PURE__ */ P({
2923
+ }, ua = /* @__PURE__ */ x({
2820
2924
  __name: "PrimeInputSwitch",
2821
2925
  props: {
2822
2926
  context: Object
@@ -2829,12 +2933,14 @@ const Ul = /* @__PURE__ */ P({
2829
2933
  }
2830
2934
  const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2831
2935
  return (r, o) => {
2832
- const u = T("InputSwitch");
2833
- return A(), x("div", null, [
2834
- a(t).attrs.labelLeft ? (A(), x("span", Xl, be(a(t).attrs.labelLeft), 1)) : se("", !0),
2835
- D(u, {
2936
+ const u = E("InputSwitch");
2937
+ return A(), O("div", {
2938
+ class: U(a(n).option_class)
2939
+ }, [
2940
+ a(t).attrs.labelLeft ? (A(), O("span", ra, ce(a(t).attrs.labelLeft), 1)) : oe("", !0),
2941
+ T(u, {
2836
2942
  modelValue: a(t)._value,
2837
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2943
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
2838
2944
  "input-id": a(t).id,
2839
2945
  disabled: a(n)._disabled ?? !1,
2840
2946
  readonly: a(n)._readonly ?? !1,
@@ -2847,11 +2953,11 @@ const Ul = /* @__PURE__ */ P({
2847
2953
  "false-value": a(n).falseValue ?? void 0,
2848
2954
  onInput: l
2849
2955
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby", "true-value", "false-value"]),
2850
- a(t).attrs.labelRight ? (A(), x("span", ea, be(a(t).attrs.labelRight), 1)) : se("", !0)
2851
- ]);
2956
+ a(t).attrs.labelRight ? (A(), O("span", oa, ce(a(t).attrs.labelRight), 1)) : oe("", !0)
2957
+ ], 2);
2852
2958
  };
2853
2959
  }
2854
- }), na = /* @__PURE__ */ P({
2960
+ }), fa = /* @__PURE__ */ x({
2855
2961
  __name: "PrimeInputText",
2856
2962
  props: {
2857
2963
  context: Object
@@ -2865,34 +2971,34 @@ const Ul = /* @__PURE__ */ P({
2865
2971
  return (t == null ? void 0 : t.iconRight) && (t == null ? void 0 : t.iconRight.length) > 0;
2866
2972
  }
2867
2973
  function r() {
2868
- let h = "";
2869
- return l() && (h = `${h}p-input-icon-left `), s() && (h = `${h}p-input-icon-right `), h;
2974
+ let _ = "";
2975
+ return l() && (_ = `${_}p-input-icon-left `), s() && (_ = `${_}p-input-icon-right `), _;
2870
2976
  }
2871
- function o(h) {
2872
- t == null || t.handlers.blur(h.target.value);
2977
+ function o(_) {
2978
+ t == null || t.handlers.blur(_.target.value);
2873
2979
  }
2874
- function u(h) {
2875
- t == null || t.node.input(h.target.value);
2980
+ function u(_) {
2981
+ t == null || t.node.input(_.target.value);
2876
2982
  }
2877
- const b = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2878
- return (h, _) => {
2879
- const v = T("InputText");
2880
- return A(), x("div", null, [
2881
- kn("span", {
2882
- class: q(r())
2983
+ const d = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2984
+ return (_, V) => {
2985
+ const J = E("InputText");
2986
+ return A(), O("div", null, [
2987
+ Bt("span", {
2988
+ class: U(r())
2883
2989
  }, [
2884
- l() ? (A(), x("i", {
2990
+ l() ? (A(), O("i", {
2885
2991
  key: 0,
2886
- class: q(a(t).iconLeft)
2887
- }, null, 2)) : se("", !0),
2888
- D(v, {
2992
+ class: U(a(t).iconLeft)
2993
+ }, null, 2)) : oe("", !0),
2994
+ T(J, {
2889
2995
  id: a(t).id,
2890
2996
  modelValue: a(t)._value,
2891
- "onUpdate:modelValue": _[0] || (_[0] = (w) => a(t)._value = w),
2997
+ "onUpdate:modelValue": V[0] || (V[0] = (y) => a(t)._value = y),
2892
2998
  disabled: a(n)._disabled ?? !1,
2893
2999
  readonly: a(n)._readonly ?? !1,
2894
- style: fe(a(n).style),
2895
- class: q(a(b)),
3000
+ style: pe(a(n).style),
3001
+ class: U(a(d)),
2896
3002
  tabindex: a(n).tabindex,
2897
3003
  "aria-label": a(n).ariaLabel,
2898
3004
  "aria-labelledby": a(n).ariaLabelledby,
@@ -2900,15 +3006,15 @@ const Ul = /* @__PURE__ */ P({
2900
3006
  onInput: u,
2901
3007
  onBlur: o
2902
3008
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder"]),
2903
- s ? (A(), x("i", {
3009
+ s ? (A(), O("i", {
2904
3010
  key: 1,
2905
- class: q(a(t).iconRight)
2906
- }, null, 2)) : se("", !0)
3011
+ class: U(a(t).iconRight)
3012
+ }, null, 2)) : oe("", !0)
2907
3013
  ], 2)
2908
3014
  ]);
2909
3015
  };
2910
3016
  }
2911
- }), ia = /* @__PURE__ */ P({
3017
+ }), ca = /* @__PURE__ */ x({
2912
3018
  __name: "PrimeTextarea",
2913
3019
  props: {
2914
3020
  context: Object
@@ -2923,16 +3029,16 @@ const Ul = /* @__PURE__ */ P({
2923
3029
  }
2924
3030
  const r = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2925
3031
  return (o, u) => {
2926
- const b = T("Textarea");
2927
- return A(), x("div", null, [
2928
- D(b, {
3032
+ const d = E("Textarea");
3033
+ return A(), O("div", null, [
3034
+ T(d, {
2929
3035
  id: a(t).id,
2930
3036
  modelValue: a(t)._value,
2931
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
3037
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2932
3038
  disabled: a(n)._disabled ?? !1,
2933
3039
  readonly: a(n)._readonly ?? !1,
2934
- style: fe(a(n).style),
2935
- class: q(a(r)),
3040
+ style: pe(a(n).style),
3041
+ class: U(a(r)),
2936
3042
  tabindex: a(n).tabindex,
2937
3043
  "aria-label": a(n).ariaLabel,
2938
3044
  "aria-labelledby": a(n).ariaLabelledby,
@@ -2944,7 +3050,7 @@ const Ul = /* @__PURE__ */ P({
2944
3050
  ]);
2945
3051
  };
2946
3052
  }
2947
- }), la = /* @__PURE__ */ P({
3053
+ }), da = /* @__PURE__ */ x({
2948
3054
  __name: "PrimeKnob",
2949
3055
  props: {
2950
3056
  context: Object
@@ -2956,16 +3062,16 @@ const Ul = /* @__PURE__ */ P({
2956
3062
  }
2957
3063
  const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2958
3064
  return (r, o) => {
2959
- const u = T("Knob");
2960
- return A(), x("div", null, [
2961
- D(u, {
3065
+ const u = E("Knob");
3066
+ return A(), O("div", null, [
3067
+ T(u, {
2962
3068
  id: a(t).id,
2963
3069
  modelValue: a(t)._value,
2964
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3070
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
2965
3071
  disabled: a(n)._disabled ?? !1,
2966
3072
  readonly: a(n)._readonly ?? !1,
2967
- style: fe(a(n).style),
2968
- class: q(a(s)),
3073
+ style: pe(a(n).style),
3074
+ class: U(a(s)),
2969
3075
  tabindex: a(n).tabindex,
2970
3076
  "aria-label": a(n).ariaLabel,
2971
3077
  "aria-labelledby": a(n).ariaLabelledby,
@@ -2984,7 +3090,7 @@ const Ul = /* @__PURE__ */ P({
2984
3090
  ]);
2985
3091
  };
2986
3092
  }
2987
- }), aa = /* @__PURE__ */ P({
3093
+ }), pa = /* @__PURE__ */ x({
2988
3094
  __name: "PrimeMultiSelect",
2989
3095
  props: {
2990
3096
  context: Object
@@ -2997,16 +3103,16 @@ const Ul = /* @__PURE__ */ P({
2997
3103
  }
2998
3104
  const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
2999
3105
  return (r, o) => {
3000
- const u = T("MultiSelect");
3001
- return A(), x("div", null, [
3002
- D(u, {
3106
+ const u = E("MultiSelect");
3107
+ return A(), O("div", null, [
3108
+ T(u, {
3003
3109
  modelValue: a(t)._value,
3004
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3110
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
3005
3111
  "input-id": a(t).id,
3006
3112
  disabled: a(n)._disabled ?? !1,
3007
3113
  readonly: a(n)._readonly ?? !1,
3008
3114
  "list-style": a(n).style,
3009
- class: q(a(s)),
3115
+ class: U(a(s)),
3010
3116
  tabindex: a(n).tabindex,
3011
3117
  "aria-label": a(n).ariaLabel,
3012
3118
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3019,7 +3125,7 @@ const Ul = /* @__PURE__ */ P({
3019
3125
  ]);
3020
3126
  };
3021
3127
  }
3022
- }), sa = /* @__PURE__ */ P({
3128
+ }), ma = /* @__PURE__ */ x({
3023
3129
  __name: "PrimeListbox",
3024
3130
  props: {
3025
3131
  context: Object
@@ -3032,21 +3138,21 @@ const Ul = /* @__PURE__ */ P({
3032
3138
  }
3033
3139
  const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3034
3140
  return (r, o) => {
3035
- var b;
3036
- const u = T("Listbox");
3037
- return A(), x("div", null, [
3038
- D(u, {
3141
+ var d;
3142
+ const u = E("Listbox");
3143
+ return A(), O("div", null, [
3144
+ T(u, {
3039
3145
  id: a(t).id,
3040
3146
  modelValue: a(t)._value,
3041
- "onUpdate:modelValue": o[0] || (o[0] = (h) => a(t)._value = h),
3147
+ "onUpdate:modelValue": o[0] || (o[0] = (_) => a(t)._value = _),
3042
3148
  disabled: a(n)._disabled ?? !1,
3043
3149
  readonly: a(n)._readonly ?? !1,
3044
3150
  "list-style": a(n).style,
3045
- class: q(a(s)),
3151
+ class: U(a(s)),
3046
3152
  tabindex: a(n).tabindex,
3047
3153
  "aria-label": a(n).ariaLabel,
3048
3154
  "aria-labelledby": a(n).ariaLabelledby,
3049
- options: (b = a(n)) == null ? void 0 : b.options,
3155
+ options: (d = a(n)) == null ? void 0 : d.options,
3050
3156
  "option-label": a(n).optionLabel ?? "label",
3051
3157
  "option-value": a(n).optionValue ?? "value",
3052
3158
  multiple: a(n).multiple ?? !1,
@@ -3062,7 +3168,7 @@ const Ul = /* @__PURE__ */ P({
3062
3168
  ]);
3063
3169
  };
3064
3170
  }
3065
- }), ra = /* @__PURE__ */ P({
3171
+ }), ba = /* @__PURE__ */ x({
3066
3172
  __name: "PrimePassword",
3067
3173
  props: {
3068
3174
  context: Object
@@ -3077,11 +3183,11 @@ const Ul = /* @__PURE__ */ P({
3077
3183
  }
3078
3184
  const r = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3079
3185
  return (o, u) => {
3080
- const b = T("Password");
3081
- return A(), x("div", null, [
3082
- D(b, {
3186
+ const d = E("Password");
3187
+ return A(), O("div", null, [
3188
+ T(d, {
3083
3189
  modelValue: a(t)._value,
3084
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
3190
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
3085
3191
  "input-id": a(t).id,
3086
3192
  disabled: a(n)._disabled ?? !1,
3087
3193
  readonly: a(n)._readonly ?? !1,
@@ -3107,7 +3213,45 @@ const Ul = /* @__PURE__ */ P({
3107
3213
  ]);
3108
3214
  };
3109
3215
  }
3110
- }), oa = /* @__PURE__ */ P({
3216
+ }), ya = ["for"], va = /* @__PURE__ */ x({
3217
+ __name: "PrimeRadioButton",
3218
+ props: {
3219
+ context: Object
3220
+ },
3221
+ setup(e) {
3222
+ const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
3223
+ function l(r) {
3224
+ var o;
3225
+ t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3226
+ }
3227
+ const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3228
+ return (r, o) => {
3229
+ const u = E("RadioButton");
3230
+ return A(), O("div", {
3231
+ class: U(a(n).options_class)
3232
+ }, [
3233
+ (A(!0), O(Sn, null, Vn(a(n).options, (d) => (A(), O("div", {
3234
+ key: d.value,
3235
+ class: U(a(n).option_class)
3236
+ }, [
3237
+ T(u, {
3238
+ modelValue: a(t)._value,
3239
+ "onUpdate:modelValue": o[0] || (o[0] = (_) => a(t)._value = _),
3240
+ name: a(n).name,
3241
+ value: d.value,
3242
+ "input-style": a(n).style,
3243
+ "input-class": a(s),
3244
+ onClick: l,
3245
+ onChange: l
3246
+ }, null, 8, ["modelValue", "name", "value", "input-style", "input-class"]),
3247
+ Bt("label", {
3248
+ for: d.value
3249
+ }, ce(d.label), 9, ya)
3250
+ ], 2))), 128))
3251
+ ], 2);
3252
+ };
3253
+ }
3254
+ }), ha = /* @__PURE__ */ x({
3111
3255
  __name: "PrimeRating",
3112
3256
  props: {
3113
3257
  context: Object
@@ -3120,16 +3264,16 @@ const Ul = /* @__PURE__ */ P({
3120
3264
  }
3121
3265
  const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3122
3266
  return (r, o) => {
3123
- const u = T("Rating");
3124
- return A(), x("div", null, [
3125
- D(u, {
3267
+ const u = E("Rating");
3268
+ return A(), O("div", null, [
3269
+ T(u, {
3126
3270
  id: a(t).id,
3127
3271
  modelValue: a(t)._value,
3128
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3272
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
3129
3273
  disabled: a(n)._disabled ?? !1,
3130
3274
  readonly: a(n)._readonly ?? !1,
3131
- style: fe(a(n).style),
3132
- class: q(a(s)),
3275
+ style: pe(a(n).style),
3276
+ class: U(a(s)),
3133
3277
  tabindex: a(n).tabindex,
3134
3278
  "aria-label": a(n).ariaLabel,
3135
3279
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3143,7 +3287,7 @@ const Ul = /* @__PURE__ */ P({
3143
3287
  ]);
3144
3288
  };
3145
3289
  }
3146
- }), ua = /* @__PURE__ */ P({
3290
+ }), _a = /* @__PURE__ */ x({
3147
3291
  __name: "PrimeSlider",
3148
3292
  props: {
3149
3293
  context: Object
@@ -3155,16 +3299,16 @@ const Ul = /* @__PURE__ */ P({
3155
3299
  }
3156
3300
  const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3157
3301
  return (r, o) => {
3158
- const u = T("Slider");
3159
- return A(), x("div", null, [
3160
- D(u, {
3302
+ const u = E("Slider");
3303
+ return A(), O("div", null, [
3304
+ T(u, {
3161
3305
  id: a(t).id,
3162
3306
  modelValue: a(t)._value,
3163
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3307
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
3164
3308
  disabled: a(n)._disabled ?? !1,
3165
3309
  readonly: a(n)._readonly ?? !1,
3166
- style: fe(a(n).style),
3167
- class: q(a(s)),
3310
+ style: pe(a(n).style),
3311
+ class: U(a(s)),
3168
3312
  tabindex: a(n).tabindex,
3169
3313
  "aria-label": a(n).ariaLabel,
3170
3314
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3178,7 +3322,7 @@ const Ul = /* @__PURE__ */ P({
3178
3322
  ]);
3179
3323
  };
3180
3324
  }
3181
- }), fa = /* @__PURE__ */ P({
3325
+ }), ga = /* @__PURE__ */ x({
3182
3326
  __name: "PrimeToggleButton",
3183
3327
  props: {
3184
3328
  context: Object
@@ -3191,11 +3335,11 @@ const Ul = /* @__PURE__ */ P({
3191
3335
  }
3192
3336
  const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3193
3337
  return (r, o) => {
3194
- const u = T("ToggleButton");
3195
- return A(), x("div", null, [
3196
- D(u, {
3338
+ const u = E("ToggleButton");
3339
+ return A(), O("div", null, [
3340
+ T(u, {
3197
3341
  modelValue: a(t)._value,
3198
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3342
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
3199
3343
  "input-id": a(t).id,
3200
3344
  disabled: a(n)._disabled ?? !1,
3201
3345
  readonly: a(n)._readonly ?? !1,
@@ -3214,7 +3358,7 @@ const Ul = /* @__PURE__ */ P({
3214
3358
  ]);
3215
3359
  };
3216
3360
  }
3217
- }), ca = /* @__PURE__ */ P({
3361
+ }), $a = /* @__PURE__ */ x({
3218
3362
  __name: "PrimeSelectButton",
3219
3363
  props: {
3220
3364
  context: Object
@@ -3227,16 +3371,16 @@ const Ul = /* @__PURE__ */ P({
3227
3371
  }
3228
3372
  const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3229
3373
  return (r, o) => {
3230
- const u = T("SelectButton");
3231
- return A(), x("div", null, [
3232
- D(u, {
3374
+ const u = E("SelectButton");
3375
+ return A(), O("div", null, [
3376
+ T(u, {
3233
3377
  id: a(t).id,
3234
3378
  modelValue: a(t)._value,
3235
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3379
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
3236
3380
  disabled: a(n)._disabled ?? !1,
3237
3381
  readonly: a(n)._readonly ?? !1,
3238
- style: fe(a(n).style),
3239
- class: q(a(s)),
3382
+ style: pe(a(n).style),
3383
+ class: U(a(s)),
3240
3384
  tabindex: a(n).tabindex,
3241
3385
  "aria-label": a(n).ariaLabel,
3242
3386
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3252,13 +3396,13 @@ const Ul = /* @__PURE__ */ P({
3252
3396
  ]);
3253
3397
  };
3254
3398
  }
3255
- }), pa = {
3399
+ }), wa = {
3256
3400
  key: 0,
3257
3401
  class: "formkit-prime-left"
3258
- }, da = {
3402
+ }, ka = {
3259
3403
  key: 1,
3260
3404
  class: "formkit-prime-right"
3261
- }, ma = /* @__PURE__ */ P({
3405
+ }, Ca = /* @__PURE__ */ x({
3262
3406
  __name: "PrimeTriStateCheckbox",
3263
3407
  props: {
3264
3408
  context: Object
@@ -3271,12 +3415,12 @@ const Ul = /* @__PURE__ */ P({
3271
3415
  }
3272
3416
  const s = M(() => t != null && t.state.validationVisible && !(t != null && t.state.valid) ? `${n == null ? void 0 : n.class} p-invalid` : n == null ? void 0 : n.class);
3273
3417
  return (r, o) => {
3274
- const u = T("TriStateCheckbox");
3275
- return A(), x("div", null, [
3276
- a(t).attrs.labelLeft ? (A(), x("span", pa, be(a(t).attrs.labelLeft), 1)) : se("", !0),
3277
- D(u, {
3418
+ const u = E("TriStateCheckbox");
3419
+ return A(), O("div", null, [
3420
+ a(t).attrs.labelLeft ? (A(), O("span", wa, ce(a(t).attrs.labelLeft), 1)) : oe("", !0),
3421
+ T(u, {
3278
3422
  modelValue: a(t)._value,
3279
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3423
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
3280
3424
  "input-id": a(t).id,
3281
3425
  disabled: a(n)._disabled ?? !1,
3282
3426
  readonly: a(n)._readonly ?? !1,
@@ -3287,92 +3431,96 @@ const Ul = /* @__PURE__ */ P({
3287
3431
  "aria-labelledby": a(n).ariaLabelledby,
3288
3432
  onClick: l
3289
3433
  }, null, 8, ["modelValue", "input-id", "disabled", "readonly", "input-style", "input-class", "tabindex", "aria-label", "aria-labelledby"]),
3290
- a(t).attrs.labelRight ? (A(), x("span", da, be(a(t).attrs.labelRight), 1)) : se("", !0)
3434
+ a(t).attrs.labelRight ? (A(), O("span", ka, ce(a(t).attrs.labelRight), 1)) : oe("", !0)
3291
3435
  ]);
3292
3436
  };
3293
3437
  }
3294
- }), ba = B(na, {
3438
+ }), Sa = D(fa, {
3295
3439
  props: ["iconRight", "iconLeft"]
3296
- }), ya = B(Gl, {
3440
+ }), Va = D(sa, {
3297
3441
  props: ["iconRight", "iconLeft"]
3298
- }), va = B(Ql, {
3442
+ }), Ia = D(aa, {
3299
3443
  props: []
3300
- }), ha = B(ra, {
3444
+ }), La = D(ba, {
3301
3445
  props: ["feedback", "toggleMask"]
3302
- }), _a = B(ia, {
3446
+ }), Aa = D(ca, {
3303
3447
  props: ["rows"]
3304
- }), ga = B(Kl, {
3448
+ }), Oa = D(ea, {
3449
+ props: []
3450
+ }), Pa = D(ua, {
3305
3451
  props: []
3306
- }), $a = B(ta, {
3452
+ }), xa = D(la, {
3307
3453
  props: []
3308
- }), wa = B(Jl, {
3454
+ }), Ma = D(ia, {
3309
3455
  props: []
3310
- }), ka = B(Yl, {
3456
+ }), ja = D(pa, {
3311
3457
  props: []
3312
- }), Ca = B(aa, {
3458
+ }), Ea = D(ma, {
3313
3459
  props: []
3314
- }), Sa = B(sa, {
3460
+ }), Ra = D(Ql, {
3315
3461
  props: []
3316
- }), Va = B(Ul, {
3462
+ }), Fa = D(_a, {
3317
3463
  props: []
3318
- }), Ia = B(ua, {
3464
+ }), Ta = D(ha, {
3319
3465
  props: []
3320
- }), La = B(oa, {
3466
+ }), Da = D(va, {
3321
3467
  props: []
3322
- }), Oa = B(Hl, {
3468
+ }), Ba = D(ta, {
3323
3469
  props: []
3324
- }), Aa = B(la, {
3470
+ }), za = D(da, {
3325
3471
  props: []
3326
- }), xa = B(Zl, {
3472
+ }), Ua = D(na, {
3327
3473
  props: []
3328
- }), Pa = B(fa, {
3474
+ }), Ka = D(ga, {
3329
3475
  props: []
3330
- }), Ea = B(ca, {
3476
+ }), qa = D($a, {
3331
3477
  props: []
3332
- }), Ma = B(ma, {
3478
+ }), Wa = D(Ca, {
3333
3479
  props: []
3334
- }), ja = {
3335
- primeInputText: ba,
3336
- primeInputNumber: ya,
3337
- primeInputMask: va,
3338
- primePassword: ha,
3339
- primeCheckbox: ga,
3340
- primeInputSwitch: $a,
3341
- primeTextarea: _a,
3342
- primeEditor: wa,
3343
- primeDropdown: ka,
3344
- primeMultiSelect: Ca,
3345
- primeCalendar: Va,
3346
- primeSlider: Ia,
3347
- primeChips: Oa,
3348
- primeKnob: Aa,
3349
- primeRating: La,
3350
- primeColorPicker: xa,
3351
- primeToggleButton: Pa,
3352
- primeListbox: Sa,
3353
- primeSelectButton: Ea,
3354
- primeTriStateCheckbox: Ma
3480
+ }), Ha = {
3481
+ primeInputText: Sa,
3482
+ primeInputNumber: Va,
3483
+ primeInputMask: Ia,
3484
+ primePassword: La,
3485
+ primeCheckbox: Oa,
3486
+ primeInputSwitch: Pa,
3487
+ primeTextarea: Aa,
3488
+ primeEditor: xa,
3489
+ primeDropdown: Ma,
3490
+ primeMultiSelect: ja,
3491
+ primeCalendar: Ra,
3492
+ primeSlider: Fa,
3493
+ primeChips: Ba,
3494
+ primeKnob: za,
3495
+ primeRating: Ta,
3496
+ primeRadioButton: Da,
3497
+ primeColorPicker: Ua,
3498
+ primeToggleButton: Ka,
3499
+ primeListbox: Ea,
3500
+ primeSelectButton: qa,
3501
+ primeTriStateCheckbox: Wa
3355
3502
  };
3356
3503
  export {
3357
- Va as primeCalendarDefinition,
3358
- ga as primeCheckboxDefinition,
3359
- Oa as primeChipsDefinition,
3360
- xa as primeColorPickerDefinition,
3361
- ka as primeDropdownDefinition,
3362
- wa as primeEditorDefinition,
3363
- va as primeInputMaskDefinition,
3364
- ya as primeInputNumberDefinition,
3365
- $a as primeInputSwitchDefinition,
3366
- ba as primeInputTextDefinition,
3367
- ja as primeInputs,
3368
- Aa as primeKnobDefinition,
3369
- Sa as primeListboxDefinition,
3370
- Ca as primeMultiSelectDefinition,
3371
- ha as primePasswordDefinition,
3372
- La as primeRatingDefinition,
3373
- Ea as primeSelectButtonDefinition,
3374
- Ia as primeSliderDefinition,
3375
- _a as primeTextareaDefinition,
3376
- Pa as primeToggleButtonDefinition,
3377
- Ma as primeTriStateCheckboxDefinition
3504
+ Ra as primeCalendarDefinition,
3505
+ Oa as primeCheckboxDefinition,
3506
+ Ba as primeChipsDefinition,
3507
+ Ua as primeColorPickerDefinition,
3508
+ Ma as primeDropdownDefinition,
3509
+ xa as primeEditorDefinition,
3510
+ Ia as primeInputMaskDefinition,
3511
+ Va as primeInputNumberDefinition,
3512
+ Pa as primeInputSwitchDefinition,
3513
+ Sa as primeInputTextDefinition,
3514
+ Ha as primeInputs,
3515
+ za as primeKnobDefinition,
3516
+ Ea as primeListboxDefinition,
3517
+ ja as primeMultiSelectDefinition,
3518
+ La as primePasswordDefinition,
3519
+ Da as primeRadioButtonDefinition,
3520
+ Ta as primeRatingDefinition,
3521
+ qa as primeSelectButtonDefinition,
3522
+ Fa as primeSliderDefinition,
3523
+ Aa as primeTextareaDefinition,
3524
+ Ka as primeToggleButtonDefinition,
3525
+ Wa as primeTriStateCheckboxDefinition
3378
3526
  };