@sfxcode/formkit-primevue 0.8.0 → 0.8.2

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,12 +1,20 @@
1
- import { defineComponent as A, getCurrentInstance as ft, watch as ce, watchEffect as Z, reactive as xt, h as pe, ref as ie, inject as de, computed as At, provide as Et, toRef as Rt, onUnmounted as jt, isRef as je, isReactive as Ze, toRaw as Lt, markRaw as Mt, createTextVNode as Tt, resolveComponent as L, openBlock as O, createBlock as W, unref as l, normalizeClass as F, createElementBlock as H, Fragment as ct, toDisplayString as me, createCommentVNode as G, createVNode as Le, normalizeStyle as Ft } from "vue";
1
+ import { defineComponent as A, getCurrentInstance as ft, watch as ce, watchEffect as Z, reactive as xt, h as pe, ref as ie, inject as de, computed as At, provide as Et, toRef as jt, onUnmounted as Rt, isRef as Re, isReactive as Ze, toRaw as Lt, markRaw as Mt, createTextVNode as Tt, resolveComponent as L, openBlock as O, createBlock as W, unref as l, normalizeClass as F, createElementBlock as H, Fragment as ct, toDisplayString as me, createCommentVNode as X, createVNode as Le, normalizeStyle as Ft } from "vue";
2
+ const Dt = [
3
+ "__key",
4
+ "__init",
5
+ "__shim",
6
+ "__original",
7
+ "__index",
8
+ "__prevKey"
9
+ ];
2
10
  function pt() {
3
11
  return Math.random().toString(36).substring(2, 15);
4
12
  }
5
- function Dt(e, n) {
13
+ function Wt(e, n) {
6
14
  const t = e instanceof Set ? e : new Set(e);
7
15
  return n && n.forEach((r) => t.add(r)), [...t];
8
16
  }
9
- function j(e, n) {
17
+ function R(e, n) {
10
18
  return Object.prototype.hasOwnProperty.call(e, n);
11
19
  }
12
20
  function Me(e, n, t = !0, r = ["__key"]) {
@@ -47,7 +55,7 @@ function Te(e, n, t = !1, r = !1) {
47
55
  if (typeof n == "string")
48
56
  return n;
49
57
  for (const s in e)
50
- if (j(n, s) && (n[s] !== void 0 || !r)) {
58
+ if (R(n, s) && (n[s] !== void 0 || !r)) {
51
59
  if (t && Array.isArray(e[s]) && Array.isArray(n[s])) {
52
60
  i[s] = e[s].concat(n[s]);
53
61
  continue;
@@ -58,10 +66,10 @@ function Te(e, n, t = !1, r = !1) {
58
66
  } else
59
67
  i[s] = e[s];
60
68
  for (const s in n)
61
- !j(i, s) && n[s] !== void 0 && (i[s] = n[s]);
69
+ !R(i, s) && n[s] !== void 0 && (i[s] = n[s]);
62
70
  return i;
63
71
  }
64
- function Wt(e) {
72
+ function Ut(e) {
65
73
  if (e[0] !== '"' && e[0] !== "'" || e[0] !== e[e.length - 1])
66
74
  return !1;
67
75
  const n = e[0];
@@ -70,7 +78,7 @@ function Wt(e) {
70
78
  return !1;
71
79
  return !0;
72
80
  }
73
- function Ut(e) {
81
+ function Kt(e) {
74
82
  if (!e.length)
75
83
  return "";
76
84
  let n = "", t = "";
@@ -86,7 +94,7 @@ function Q(...e) {
86
94
  return Object.assign(n, m);
87
95
  }, {});
88
96
  }
89
- function Kt(e) {
97
+ function qt(e) {
90
98
  const n = [];
91
99
  let t = "", r = 0, i = "", s = "";
92
100
  for (let o = 0; o < e.length; o++) {
@@ -115,7 +123,7 @@ function oe(e) {
115
123
  function dt(e) {
116
124
  return e.replace(/([a-z0-9])([A-Z])/g, (n, t, r) => t + "-" + r.toLowerCase()).replace(" ", "-").toLowerCase();
117
125
  }
118
- function he(e, n = ["__key", "__init"]) {
126
+ function he(e, n = Dt) {
119
127
  if (e === null || e instanceof RegExp || e instanceof Date || e instanceof Map || e instanceof Set || typeof File == "function" && e instanceof File)
120
128
  return e;
121
129
  let t;
@@ -130,14 +138,14 @@ function he(e, n = ["__key", "__init"]) {
130
138
  function J(e) {
131
139
  return typeof e == "object" ? he(e) : e;
132
140
  }
133
- function qt(e, n) {
141
+ function Bt(e, n) {
134
142
  if (!e || typeof e != "object")
135
143
  return null;
136
144
  const t = n.split(".");
137
145
  let r = e;
138
146
  for (const i in t) {
139
147
  const s = t[i];
140
- if (j(r, s) && (r = r[s]), +i === t.length - 1)
148
+ if (R(r, s) && (r = r[s]), +i === t.length - 1)
141
149
  return r;
142
150
  if (!r || typeof r != "object")
143
151
  return null;
@@ -203,7 +211,7 @@ function yt() {
203
211
  t = void 0, s.forEach(([o, a]) => r(o, a)), i && i.walk((o) => o._e.play());
204
212
  }, r;
205
213
  }
206
- function Bt(e, n, t, r, i = !0) {
214
+ function zt(e, n, t, r, i = !0) {
207
215
  return n._e(e, {
208
216
  payload: r,
209
217
  name: t,
@@ -211,13 +219,13 @@ function Bt(e, n, t, r, i = !0) {
211
219
  origin: e
212
220
  }), e;
213
221
  }
214
- function zt(e, n, t) {
222
+ function Nt(e, n, t) {
215
223
  return be(e.parent) && e.parent._e(e.parent, t), e;
216
224
  }
217
- function Nt(e, n, t, r) {
225
+ function Ht(e, n, t, r) {
218
226
  return n._e.on(t, r);
219
227
  }
220
- function Ht(e, n, t) {
228
+ function Zt(e, n, t) {
221
229
  return n._e.off(t), e;
222
230
  }
223
231
  const De = Fe();
@@ -246,15 +254,15 @@ function _e(e, n) {
246
254
  return n && t.value && t.meta.localize !== !1 && (t.value = n.t(t), t.meta.locale = n.config.locale), t;
247
255
  }
248
256
  const Ge = {
249
- apply: Xt,
250
- set: Yt,
257
+ apply: en,
258
+ set: Jt,
251
259
  remove: ht,
252
- filter: Qt,
253
- reduce: Gt,
254
- release: nn,
255
- touch: Jt
260
+ filter: Gt,
261
+ reduce: Xt,
262
+ release: rn,
263
+ touch: Qt
256
264
  };
257
- function Zt(e = !1) {
265
+ function Yt(e = !1) {
258
266
  const n = {};
259
267
  let t, r = e, i = [];
260
268
  const s = /* @__PURE__ */ new Map();
@@ -262,7 +270,7 @@ function Zt(e = !1) {
262
270
  const a = new Proxy(n, {
263
271
  get(...m) {
264
272
  const [h, _] = m;
265
- return _ === "buffer" ? r : _ === "_b" ? i : _ === "_m" ? s : _ === "_r" ? o : j(Ge, _) ? Ge[_].bind(null, n, a, t) : Reflect.get(...m);
273
+ return _ === "buffer" ? r : _ === "_b" ? i : _ === "_m" ? s : _ === "_r" ? o : R(Ge, _) ? Ge[_].bind(null, n, a, t) : Reflect.get(...m);
266
274
  },
267
275
  set(m, h, _) {
268
276
  return h === "_n" ? (t = _, o === "__n" && _t(t, a), !0) : h === "_b" ? (i = _, !0) : h === "buffer" ? (r = _, !0) : h === "_r" ? (o = _, !0) : (U(101, t), !1);
@@ -270,7 +278,7 @@ function Zt(e = !1) {
270
278
  });
271
279
  return a;
272
280
  }
273
- function Yt(e, n, t, r) {
281
+ function Jt(e, n, t, r) {
274
282
  if (n.buffer)
275
283
  return n._b.push([[r]]), n;
276
284
  if (e[r.key] !== r) {
@@ -278,38 +286,38 @@ function Yt(e, n, t, r) {
278
286
  const s = r.value;
279
287
  r.value = t.t(r), r.value !== s && (r.meta.locale = t.props.locale);
280
288
  }
281
- const i = `message-${j(e, r.key) ? "updated" : "added"}`;
289
+ const i = `message-${R(e, r.key) ? "updated" : "added"}`;
282
290
  e[r.key] = Object.freeze(t.hook.message.dispatch(r)), t.emit(i, r);
283
291
  }
284
292
  return n;
285
293
  }
286
- function Jt(e, n) {
294
+ function Qt(e, n) {
287
295
  for (const t in e) {
288
296
  const r = { ...e[t] };
289
297
  n.set(r);
290
298
  }
291
299
  }
292
300
  function ht(e, n, t, r) {
293
- if (j(e, r)) {
301
+ if (R(e, r)) {
294
302
  const i = e[r];
295
303
  delete e[r], t.emit("message-removed", i);
296
304
  }
297
305
  return n.buffer === !0 && (n._b = n._b.filter((i) => (i[0] = i[0].filter((s) => s.key !== r), i[1] || i[0].length))), n;
298
306
  }
299
- function Qt(e, n, t, r, i) {
307
+ function Gt(e, n, t, r, i) {
300
308
  for (const s in e) {
301
309
  const o = e[s];
302
310
  (!i || o.type === i) && !r(o) && ht(e, n, t, s);
303
311
  }
304
312
  }
305
- function Gt(e, n, t, r, i) {
313
+ function Xt(e, n, t, r, i) {
306
314
  for (const s in e) {
307
315
  const o = e[s];
308
316
  i = r(i, o);
309
317
  }
310
318
  return i;
311
319
  }
312
- function Xt(e, n, t, r, i) {
320
+ function en(e, n, t, r, i) {
313
321
  if (Array.isArray(r)) {
314
322
  if (n.buffer) {
315
323
  n._b.push([r, i]);
@@ -320,10 +328,10 @@ function Xt(e, n, t, r, i) {
320
328
  } else
321
329
  for (const s in r) {
322
330
  const o = t.at(s);
323
- o ? o.store.apply(r[s], i) : tn(t, n, s, r[s], i);
331
+ o ? o.store.apply(r[s], i) : nn(t, n, s, r[s], i);
324
332
  }
325
333
  }
326
- function en(e, ...n) {
334
+ function tn(e, ...n) {
327
335
  const t = `${e.name}-set`, r = (i) => _e({
328
336
  key: mt(i),
329
337
  type: "error",
@@ -341,7 +349,7 @@ function en(e, ...n) {
341
349
  }
342
350
  });
343
351
  }
344
- function tn(e, n, t, r, i) {
352
+ function nn(e, n, t, r, i) {
345
353
  var s;
346
354
  const o = n._m;
347
355
  o.has(t) || o.set(t, []), n._r || (n._r = _t(e, n)), (s = o.get(t)) === null || s === void 0 || s.push([r, i]);
@@ -355,29 +363,29 @@ function _t(e, n) {
355
363
  }), n._m.size === 0 && n._r && (e.off(n._r), n._r = void 0);
356
364
  });
357
365
  }
358
- function nn(e, n) {
366
+ function rn(e, n) {
359
367
  n.buffer = !1, n._b.forEach(([t, r]) => n.apply(t, r)), n._b = [];
360
368
  }
361
- function rn() {
369
+ function sn() {
362
370
  const e = {};
363
371
  let n;
364
372
  return {
365
- count: (...t) => sn(n, e, ...t),
373
+ count: (...t) => on(n, e, ...t),
366
374
  init(t) {
367
375
  n = t, t.on("message-added.deep", Xe(e, 1)), t.on("message-removed.deep", Xe(e, -1));
368
376
  },
369
377
  merge: (t) => et(n, e, t),
370
378
  settled(t) {
371
- return j(e, t) ? e[t].promise : Promise.resolve();
379
+ return R(e, t) ? e[t].promise : Promise.resolve();
372
380
  },
373
381
  unmerge: (t) => et(n, e, t, !0),
374
382
  value(t) {
375
- return j(e, t) ? e[t].count : 0;
383
+ return R(e, t) ? e[t].count : 0;
376
384
  }
377
385
  };
378
386
  }
379
- function sn(e, n, t, r, i = 0) {
380
- if (r = on(r || t), !j(n, t)) {
387
+ function on(e, n, t, r, i = 0) {
388
+ if (r = ln(r || t), !R(n, t)) {
381
389
  const s = {
382
390
  condition: r,
383
391
  count: 0,
@@ -393,7 +401,7 @@ function sn(e, n, t, r, i = 0) {
393
401
  }
394
402
  return gt(n[t], i).promise;
395
403
  }
396
- function on(e) {
404
+ function ln(e) {
397
405
  return typeof e == "function" ? e : (n) => n.type === e;
398
406
  }
399
407
  function gt(e, n) {
@@ -419,8 +427,8 @@ function et(e, n, t, r = !1) {
419
427
  while (e);
420
428
  }
421
429
  }
422
- const Ue = /* @__PURE__ */ new Map(), le = /* @__PURE__ */ new Map(), Ke = yt(), ln = [];
423
- function an(e) {
430
+ const Ue = /* @__PURE__ */ new Map(), le = /* @__PURE__ */ new Map(), Ke = yt(), an = [];
431
+ function un(e) {
424
432
  e.props.id && (Ue.set(e.props.id, e), le.set(e, e.props.id), Ke(e, {
425
433
  payload: e,
426
434
  name: e.props.id,
@@ -428,7 +436,7 @@ function an(e) {
428
436
  origin: e
429
437
  }));
430
438
  }
431
- function un(e) {
439
+ function fn(e) {
432
440
  if (le.has(e)) {
433
441
  const n = le.get(e);
434
442
  le.delete(e), Ue.delete(n), Ke(e, {
@@ -442,14 +450,14 @@ function un(e) {
442
450
  function vt(e) {
443
451
  return Ue.get(e);
444
452
  }
445
- function fn(e, n) {
446
- ln.push(Ke.on(e, n));
453
+ function cn(e, n) {
454
+ an.push(Ke.on(e, n));
447
455
  }
448
456
  function tt(e, n, t) {
449
457
  let r = !0;
450
458
  return n in e.config._t ? r = !1 : e.emit(`config:${n}`, t, !1), n in e.props || (e.emit("prop", { prop: n, value: t }), e.emit(`prop:${n}`, t)), r;
451
459
  }
452
- function cn(e) {
460
+ function pn(e) {
453
461
  const n = document.getElementById(e);
454
462
  if (n instanceof HTMLFormElement) {
455
463
  const t = new Event("submit", { cancelable: !0, bubbles: !0 });
@@ -458,7 +466,7 @@ function cn(e) {
458
466
  }
459
467
  ve(151, e);
460
468
  }
461
- function pn(e) {
469
+ function dn(e) {
462
470
  const n = (t) => {
463
471
  for (const r in t.store) {
464
472
  const i = t.store[r];
@@ -467,23 +475,23 @@ function pn(e) {
467
475
  };
468
476
  n(e), e.walk(n);
469
477
  }
470
- function dn(e, n) {
478
+ function mn(e, n) {
471
479
  const t = typeof e == "string" ? vt(e) : e;
472
480
  if (t) {
473
481
  const r = (s) => J(s.props.initial) || (s.type === "group" ? {} : s.type === "list" ? [] : void 0);
474
482
  t._e.pause(t), t.input(J(n) || r(t), !1), t.walk((s) => s.input(r(s), !1));
475
483
  const i = r(t);
476
- return t.input(typeof i == "object" ? J(n) || re(i) : i, !1), t._e.play(t), pn(t), t.emit("reset", t), t;
484
+ return t.input(typeof i == "object" ? J(n) || re(i) : i, !1), t._e.play(t), dn(t), t.emit("reset", t), t;
477
485
  }
478
486
  ve(152, e);
479
487
  }
480
- const mn = {
488
+ const yn = {
481
489
  delimiter: ".",
482
490
  delay: 0,
483
491
  locale: "en",
484
492
  rootClasses: (e) => ({ [`formkit-${dt(e)}`]: !0 })
485
493
  }, bt = Symbol("index"), Pe = Symbol("removed"), Oe = Symbol("moved"), $t = Symbol("inserted");
486
- function yn(e) {
494
+ function hn(e) {
487
495
  return e.type === "list" && Array.isArray(e._value);
488
496
  }
489
497
  function be(e) {
@@ -491,42 +499,42 @@ function be(e) {
491
499
  }
492
500
  const ae = (e, n, t) => {
493
501
  U(102, [e, t]);
494
- }, hn = {
495
- _c: C(Tn, ae, !1),
496
- add: C(On),
497
- addProps: C(Pn),
498
- address: C(Dn, ae, !1),
499
- at: C(Wn),
500
- bubble: C(zt),
501
- clearErrors: C(Zn),
502
- calm: C(Cn),
502
+ }, _n = {
503
+ _c: C(Fn, ae, !1),
504
+ add: C(xn),
505
+ addProps: C(On),
506
+ address: C(Wn, ae, !1),
507
+ at: C(Un),
508
+ bubble: C(Nt),
509
+ clearErrors: C(Yn),
510
+ calm: C(Vn),
503
511
  config: C(!1),
504
- define: C(In),
505
- disturb: C(kn),
506
- destroy: C(Vn),
512
+ define: C(Pn),
513
+ disturb: C(Cn),
514
+ destroy: C(In),
507
515
  hydrate: C(Sn),
508
- index: C(Mn, Ln, !1),
509
- input: C(St),
510
- each: C(En),
511
- emit: C(Bt),
512
- find: C(Kn),
513
- on: C(Nt),
514
- off: C(Ht),
515
- parent: C(!1, xn),
516
+ index: C(Tn, Mn, !1),
517
+ input: C(kt),
518
+ each: C(jn),
519
+ emit: C(zt),
520
+ find: C(qn),
521
+ on: C(Ht),
522
+ off: C(Zt),
523
+ parent: C(!1, An),
516
524
  plugins: C(!1),
517
- remove: C(An),
518
- root: C(Bn, ae, !1),
519
- reset: C(Hn),
520
- resetConfig: C(jn),
525
+ remove: C(En),
526
+ root: C(zn, ae, !1),
527
+ reset: C(Zn),
528
+ resetConfig: C(Ln),
521
529
  setErrors: C(Vt),
522
- submit: C(Nn),
523
- t: C(zn),
530
+ submit: C(Hn),
531
+ t: C(Nn),
524
532
  use: C(qe),
525
- name: C(Fn, !1, !1),
533
+ name: C(Dn, !1, !1),
526
534
  walk: C(Rn)
527
535
  };
528
- function _n() {
529
- return new Map(Object.entries(hn));
536
+ function gn() {
537
+ return new Map(Object.entries(_n));
530
538
  }
531
539
  function C(e, n, t = !0) {
532
540
  return {
@@ -534,7 +542,7 @@ function C(e, n, t = !0) {
534
542
  set: n !== void 0 ? n : ae.bind(null)
535
543
  };
536
544
  }
537
- function gn() {
545
+ function vn() {
538
546
  const e = /* @__PURE__ */ new Map();
539
547
  return new Proxy(e, {
540
548
  get(n, t) {
@@ -542,18 +550,18 @@ function gn() {
542
550
  }
543
551
  });
544
552
  }
545
- let vn = 0, bn = 0;
546
- function $n(e) {
553
+ let bn = 0, $n = 0;
554
+ function wn(e) {
547
555
  var n, t;
548
- return ((n = e.parent) === null || n === void 0 ? void 0 : n.type) === "list" ? bt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++vn}`;
556
+ return ((n = e.parent) === null || n === void 0 ? void 0 : n.type) === "list" ? bt : e.name || `${((t = e.props) === null || t === void 0 ? void 0 : t.type) || "input"}_${++bn}`;
549
557
  }
550
558
  function wt(e) {
551
- return e.type === "group" ? re(e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}) : e.type === "list" ? re(Array.isArray(e.value) ? e.value : []) : e.value === null ? "" : e.value;
559
+ return e.type === "group" ? re(e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}) : e.type === "list" ? re(Array.isArray(e.value) ? e.value : []) : e.value;
552
560
  }
553
- function St(e, n, t, r = !0) {
554
- return n._value = wn(e, e.hook.input.dispatch(t)), e.emit("input", n._value), n.isSettled && e.disturb(), r ? (n._tmo && clearTimeout(n._tmo), n._tmo = setTimeout(ge, e.props.delay, e, n)) : ge(e, n), n.settled;
561
+ function kt(e, n, t, r = !0) {
562
+ return n._value = kn(e, e.hook.input.dispatch(t)), e.emit("input", n._value), n.isSettled && e.disturb(), r ? (n._tmo && clearTimeout(n._tmo), n._tmo = setTimeout(ge, e.props.delay, e, n)) : ge(e, n), n.settled;
555
563
  }
556
- function wn(e, n) {
564
+ function kn(e, n) {
557
565
  switch (e.type) {
558
566
  case "input":
559
567
  break;
@@ -569,9 +577,9 @@ function wn(e, n) {
569
577
  function ge(e, n, t = !0, r = !0) {
570
578
  n._value = n.value = e.hook.commit.dispatch(n._value), e.type !== "input" && r && e.hydrate(), e.emit("commit", n.value), t && e.calm();
571
579
  }
572
- function kt(e, { name: n, value: t, from: r }) {
580
+ function St(e, { name: n, value: t, from: r }) {
573
581
  if (!Object.isFrozen(e._value)) {
574
- if (yn(e)) {
582
+ if (hn(e)) {
575
583
  const i = t === Pe ? [] : t === Oe && typeof r == "number" ? e._value.splice(r, 1) : [t];
576
584
  e._value.splice(n, t === Oe || r === $t ? 0 : 1, ...i);
577
585
  return;
@@ -587,31 +595,31 @@ function Sn(e, n) {
587
595
  const i = r.type !== "input" || t[r.name] && typeof t[r.name] == "object" ? re(t[r.name]) : t[r.name];
588
596
  r.input(i, !1);
589
597
  } else
590
- (e.type !== "list" || typeof r.name == "number") && kt(n, { name: r.name, value: r.value }), t.__init || (r.type === "group" ? r.input({}, !1) : r.type === "list" ? r.input([], !1) : r.input(void 0, !1));
598
+ (e.type !== "list" || typeof r.name == "number") && St(n, { name: r.name, value: r.value }), t.__init || (r.type === "group" ? r.input({}, !1) : r.type === "list" ? r.input([], !1) : r.input(void 0, !1));
591
599
  }), e;
592
600
  }
593
- function kn(e, n) {
601
+ function Cn(e, n) {
594
602
  var t;
595
603
  return n._d <= 0 && (n.isSettled = !1, e.emit("settled", !1, !1), n.settled = new Promise((r) => {
596
604
  n._resolve = r;
597
605
  }), e.parent && ((t = e.parent) === null || t === void 0 || t.disturb())), n._d++, e;
598
606
  }
599
- function Cn(e, n, t) {
607
+ function Vn(e, n, t) {
600
608
  var r;
601
609
  if (t !== void 0 && e.type !== "input")
602
- return kt(n, t), ge(e, n, !0, !1);
610
+ return St(n, t), ge(e, n, !0, !1);
603
611
  n._d > 0 && n._d--, n._d === 0 && (n.isSettled = !0, e.emit("settled", !0, !1), e.parent && ((r = e.parent) === null || r === void 0 || r.calm({ name: e.name, value: n.value })), n._resolve && n._resolve(n.value));
604
612
  }
605
- function Vn(e, n) {
606
- e.emit("destroying", e), e.store.filter(() => !1), e.parent && e.parent.remove(e), un(e), n._value = n.value = void 0, e.emit("destroyed", e);
613
+ function In(e, n) {
614
+ e.emit("destroying", e), e.store.filter(() => !1), e.parent && e.parent.remove(e), fn(e), n._value = n.value = void 0, e.emit("destroyed", e);
607
615
  }
608
- function In(e, n, t) {
616
+ function Pn(e, n, t) {
609
617
  n.type = t.type, n.props.definition = he(t), n.value = n._value = wt({
610
618
  type: e.type,
611
619
  value: n.value
612
620
  }), t.forceTypeProp && (e.props.type && (e.props.originalType = e.props.type), n.props.type = t.forceTypeProp), t.family && (n.props.family = t.family), t.features && t.features.forEach((r) => r(e)), t.props && e.addProps(t.props), e.emit("defined", t);
613
621
  }
614
- function Pn(e, n, t) {
622
+ function On(e, n, t) {
615
623
  var r;
616
624
  if (e.props.attrs) {
617
625
  const i = { ...e.props.attrs };
@@ -628,7 +636,7 @@ function Pn(e, n, t) {
628
636
  }
629
637
  return e.emit("added-props", t), e;
630
638
  }
631
- function On(e, n, t, r) {
639
+ function xn(e, n, t, r) {
632
640
  if (e.type === "input" && U(100, e), t.parent && t.parent !== e && t.parent.remove(t), n.children.includes(t) || (r !== void 0 && e.type === "list" ? (n.children.splice(r, 0, t), Array.isArray(e.value) && e.value.length < n.children.length && e.disturb().calm({
633
641
  name: r,
634
642
  value: t.value,
@@ -640,10 +648,10 @@ function On(e, n, t, r) {
640
648
  t.use(e.plugins);
641
649
  return ge(e, n, !1), e.ledger.merge(t), e.emit("child", t), e;
642
650
  }
643
- function xn(e, n, t, r) {
651
+ function An(e, n, t, r) {
644
652
  return be(r) ? (e.parent && e.parent !== r && e.parent.remove(e), n.parent = r, e.resetConfig(), r.children.includes(e) ? e.use(r.plugins) : r.add(e), !0) : r === null ? (n.parent = null, !0) : !1;
645
653
  }
646
- function An(e, n, t) {
654
+ function En(e, n, t) {
647
655
  const r = n.children.indexOf(t);
648
656
  if (r !== -1) {
649
657
  t.isSettled && e.disturb(), n.children.splice(r, 1);
@@ -657,7 +665,7 @@ function An(e, n, t) {
657
665
  }
658
666
  return e.ledger.unmerge(t), e;
659
667
  }
660
- function En(e, n, t) {
668
+ function jn(e, n, t) {
661
669
  n.children.forEach((r) => t(r));
662
670
  }
663
671
  function Rn(e, n, t, r = !1) {
@@ -665,38 +673,38 @@ function Rn(e, n, t, r = !1) {
665
673
  (t(i) !== !1 || !r) && i.walk(t);
666
674
  });
667
675
  }
668
- function jn(e, n) {
676
+ function Ln(e, n) {
669
677
  const t = e.parent || void 0;
670
678
  n.config = Ct(e.config._t, t), e.walk((r) => r.resetConfig());
671
679
  }
672
680
  function qe(e, n, t, r = !0, i = !0) {
673
681
  return Array.isArray(t) || t instanceof Set ? (t.forEach((s) => qe(e, n, s)), e) : (n.plugins.has(t) || (i && typeof t.library == "function" && t.library(e), r && t(e) !== !1 && (n.plugins.add(t), e.children.forEach((s) => s.use(t)))), e);
674
682
  }
675
- function Ln(e, n, t, r) {
683
+ function Mn(e, n, t, r) {
676
684
  if (be(e.parent)) {
677
685
  const i = e.parent.children, s = r >= i.length ? i.length - 1 : r < 0 ? 0 : r, o = i.indexOf(e);
678
686
  return o === -1 ? !1 : (i.splice(o, 1), i.splice(s, 0, e), e.parent.children = i, e.parent.type === "list" && e.parent.disturb().calm({ name: s, value: Oe, from: o }), !0);
679
687
  }
680
688
  return !1;
681
689
  }
682
- function Mn(e) {
690
+ function Tn(e) {
683
691
  if (e.parent) {
684
692
  const n = [...e.parent.children].indexOf(e);
685
693
  return n === -1 ? e.parent.children.length : n;
686
694
  }
687
695
  return -1;
688
696
  }
689
- function Tn(e, n) {
697
+ function Fn(e, n) {
690
698
  return n;
691
699
  }
692
- function Fn(e, n) {
700
+ function Dn(e, n) {
693
701
  var t;
694
702
  return ((t = e.parent) === null || t === void 0 ? void 0 : t.type) === "list" ? e.index : n.name !== bt ? n.name : e.index;
695
703
  }
696
- function Dn(e, n) {
704
+ function Wn(e, n) {
697
705
  return n.parent ? n.parent.address.concat([e.name]) : [e.name];
698
706
  }
699
- function Wn(e, n, t) {
707
+ function Un(e, n, t) {
700
708
  const r = typeof t == "string" ? t.split(e.config.delimiter) : t;
701
709
  if (!r.length)
702
710
  return;
@@ -715,12 +723,12 @@ function Wn(e, n, t) {
715
723
  s = e;
716
724
  break;
717
725
  default:
718
- s = s.children.find((a) => String(a.name) === String(o)) || Un(s, o);
726
+ s = s.children.find((a) => String(a.name) === String(o)) || Kn(s, o);
719
727
  }
720
728
  }
721
729
  return s || void 0;
722
730
  }
723
- function Un(e, n) {
731
+ function Kn(e, n) {
724
732
  const t = String(n).match(/^(find)\((.*)\)$/);
725
733
  if (t) {
726
734
  const [, r, i] = t, s = i.split(",").map((o) => o.trim());
@@ -732,10 +740,10 @@ function Un(e, n) {
732
740
  }
733
741
  }
734
742
  }
735
- function Kn(e, n, t, r) {
736
- return qn(e, t, r);
743
+ function qn(e, n, t, r) {
744
+ return Bn(e, t, r);
737
745
  }
738
- function qn(e, n, t = "name") {
746
+ function Bn(e, n, t = "name") {
739
747
  const r = typeof t == "string" ? (s) => s[t] == n : t, i = [e];
740
748
  for (; i.length; ) {
741
749
  const s = i.shift();
@@ -744,7 +752,7 @@ function qn(e, n, t = "name") {
744
752
  i.push(...s.children);
745
753
  }
746
754
  }
747
- function Bn(e) {
755
+ function zn(e) {
748
756
  let n = e;
749
757
  for (; n.parent; )
750
758
  n = n.parent;
@@ -770,7 +778,7 @@ function Ct(e = {}, n) {
770
778
  if (o !== void 0)
771
779
  return o;
772
780
  }
773
- return i === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : mn[i];
781
+ return i === "delay" && (t == null ? void 0 : t.type) === "input" ? 20 : yn[i];
774
782
  },
775
783
  set(...r) {
776
784
  const i = r[1], s = r[2];
@@ -786,37 +794,37 @@ function Ct(e = {}, n) {
786
794
  }
787
795
  });
788
796
  }
789
- function zn(e, n, t, r = "ui") {
797
+ function Nn(e, n, t, r = "ui") {
790
798
  const i = typeof t == "string" ? { key: t, value: t, type: r } : t, s = e.hook.text.dispatch(i);
791
799
  return e.emit("text", s, !1), s.value;
792
800
  }
793
- function Nn(e) {
801
+ function Hn(e) {
794
802
  const n = e.name;
795
803
  do {
796
804
  if (e.props.isForm === !0)
797
805
  break;
798
806
  e.parent || U(106, n), e = e.parent;
799
807
  } while (e);
800
- e.props.id && cn(e.props.id);
808
+ e.props.id && pn(e.props.id);
801
809
  }
802
- function Hn(e, n, t) {
803
- return dn(e, t);
810
+ function Zn(e, n, t) {
811
+ return mn(e, t);
804
812
  }
805
813
  function Vt(e, n, t, r) {
806
814
  const i = `${e.name}-set`, s = e.hook.setErrors.dispatch({ localErrors: t, childErrors: r });
807
- return en(e, s.localErrors, s.childErrors).forEach((o) => {
815
+ return tn(e, s.localErrors, s.childErrors).forEach((o) => {
808
816
  e.store.apply(o, (a) => a.meta.source === i);
809
817
  }), e;
810
818
  }
811
- function Zn(e, n, t = !0, r) {
819
+ function Yn(e, n, t = !0, r) {
812
820
  return Vt(e, n, []), t && (r = r || `${e.name}-set`, e.walk((i) => {
813
821
  i.store.filter((s) => !(s.type === "error" && s.meta && s.meta.source === r));
814
822
  })), e;
815
823
  }
816
- function Yn(e) {
817
- return j(e.props, "id") || (e.props.id = `input_${bn++}`), e;
818
- }
819
824
  function Jn(e) {
825
+ return R(e.props, "id") || (e.props.id = `input_${$n++}`), e;
826
+ }
827
+ function Qn(e) {
820
828
  const n = {
821
829
  initial: typeof e == "object" ? J(e) : e
822
830
  };
@@ -824,7 +832,7 @@ function Jn(e) {
824
832
  return new Proxy(n, {
825
833
  get(...i) {
826
834
  const [s, o] = i;
827
- if (j(n, o))
835
+ if (R(n, o))
828
836
  return Reflect.get(...i);
829
837
  if (t && typeof o == "string" && t.config[o] !== void 0)
830
838
  return t.config[o];
@@ -846,7 +854,7 @@ function Jn(e) {
846
854
  }
847
855
  });
848
856
  }
849
- function Qn(e, n) {
857
+ function Gn(e, n) {
850
858
  if (e.props.definition)
851
859
  return e.define(e.props.definition);
852
860
  for (const t of n) {
@@ -855,7 +863,7 @@ function Qn(e, n) {
855
863
  typeof t.library == "function" && t.library(e);
856
864
  }
857
865
  }
858
- function Gn(e) {
866
+ function Xn(e) {
859
867
  const n = wt(e), t = Ct(e.config || {}, e.parent);
860
868
  return {
861
869
  _d: 0,
@@ -863,35 +871,35 @@ function Gn(e) {
863
871
  _resolve: !1,
864
872
  _tmo: !1,
865
873
  _value: n,
866
- children: Dt(e.children || []),
874
+ children: Wt(e.children || []),
867
875
  config: t,
868
- hook: gn(),
876
+ hook: vn(),
869
877
  isCreated: !1,
870
878
  isSettled: !0,
871
- ledger: rn(),
872
- name: $n(e),
879
+ ledger: sn(),
880
+ name: wn(e),
873
881
  parent: e.parent || null,
874
882
  plugins: /* @__PURE__ */ new Set(),
875
- props: Jn(n),
883
+ props: Qn(n),
876
884
  settled: Promise.resolve(n),
877
- store: Zt(!0),
878
- traps: _n(),
885
+ store: Yt(!0),
886
+ traps: gn(),
879
887
  type: e.type || "input",
880
888
  value: n
881
889
  };
882
890
  }
883
- function Xn(e, n) {
891
+ function er(e, n) {
884
892
  var t;
885
- if (e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, n.props && Object.assign(e.props, n.props), e.props._emit = !0, Qn(e, /* @__PURE__ */ new Set([
893
+ if (e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, n.props && Object.assign(e.props, n.props), e.props._emit = !0, Gn(e, /* @__PURE__ */ new Set([
886
894
  ...n.plugins || [],
887
895
  ...e.parent ? e.parent.plugins : []
888
896
  ])), n.plugins)
889
897
  for (const r of n.plugins)
890
898
  qe(e, e._c, r, !0, !1);
891
- return Yn(e), e.each((r) => e.add(r)), e.parent && e.parent.add(e, n.index), e.type === "input" && e.children.length && U(100, e), St(e, e._c, e._value, !1), e.store.release(), !((t = n.props) === null || t === void 0) && t.id && an(e), e.emit("created", e), e.isCreated = !0, e;
899
+ return Jn(e), e.each((r) => e.add(r)), e.parent && e.parent.add(e, n.index), e.type === "input" && e.children.length && U(100, e), kt(e, e._c, e._value, !1), e.store.release(), !((t = n.props) === null || t === void 0) && t.id && un(e), e.emit("created", e), e.isCreated = !0, e;
892
900
  }
893
- function er(e) {
894
- const n = e || {}, t = Gn(n), r = new Proxy(t, {
901
+ function tr(e) {
902
+ const n = e || {}, t = Xn(n), r = new Proxy(t, {
895
903
  get(...i) {
896
904
  const [, s] = i;
897
905
  if (s === "__FKNode__")
@@ -904,27 +912,27 @@ function er(e) {
904
912
  return a && a.set ? a.set(r, t, s, o) : Reflect.set(...i);
905
913
  }
906
914
  });
907
- return Xn(r, n);
915
+ return er(r, n);
908
916
  }
909
917
  function xe(e) {
910
- return typeof e != "string" && j(e, "$el");
918
+ return typeof e != "string" && R(e, "$el");
911
919
  }
912
920
  function Ae(e) {
913
- return typeof e != "string" && j(e, "$cmp");
921
+ return typeof e != "string" && R(e, "$cmp");
914
922
  }
915
- function te(e) {
916
- return !e || typeof e == "string" ? !1 : j(e, "if") && j(e, "then");
923
+ function ne(e) {
924
+ return !e || typeof e == "string" ? !1 : R(e, "if") && R(e, "then");
917
925
  }
918
- function tr(e) {
926
+ function nr(e) {
919
927
  return typeof e != "string" && "$formkit" in e;
920
928
  }
921
- function nr(e) {
929
+ function rr(e) {
922
930
  if (typeof e == "string")
923
931
  return {
924
932
  $el: "text",
925
933
  children: e
926
934
  };
927
- if (tr(e)) {
935
+ if (nr(e)) {
928
936
  const { $formkit: n, for: t, if: r, children: i, bind: s, ...o } = e;
929
937
  return Object.assign({
930
938
  $cmp: "FormKit",
@@ -935,87 +943,87 @@ function nr(e) {
935
943
  }
936
944
  function K(e) {
937
945
  let n;
938
- const t = /* @__PURE__ */ new Set(), r = function(f, p) {
939
- return typeof f == "function" ? f(p) : f;
946
+ const t = /* @__PURE__ */ new Set(), r = function(f, d) {
947
+ return typeof f == "function" ? f(d) : f;
940
948
  }, i = [
941
949
  {
942
- "&&": (c, f, p) => r(c, p) && r(f, p),
943
- "||": (c, f, p) => r(c, p) || r(f, p)
950
+ "&&": (c, f, d) => r(c, d) && r(f, d),
951
+ "||": (c, f, d) => r(c, d) || r(f, d)
944
952
  },
945
953
  {
946
- "===": (c, f, p) => r(c, p) === r(f, p),
947
- "!==": (c, f, p) => r(c, p) !== r(f, p),
948
- "==": (c, f, p) => r(c, p) == r(f, p),
949
- "!=": (c, f, p) => r(c, p) != r(f, p),
950
- ">=": (c, f, p) => r(c, p) >= r(f, p),
951
- "<=": (c, f, p) => r(c, p) <= r(f, p),
952
- ">": (c, f, p) => r(c, p) > r(f, p),
953
- "<": (c, f, p) => r(c, p) < r(f, p)
954
+ "===": (c, f, d) => r(c, d) === r(f, d),
955
+ "!==": (c, f, d) => r(c, d) !== r(f, d),
956
+ "==": (c, f, d) => r(c, d) == r(f, d),
957
+ "!=": (c, f, d) => r(c, d) != r(f, d),
958
+ ">=": (c, f, d) => r(c, d) >= r(f, d),
959
+ "<=": (c, f, d) => r(c, d) <= r(f, d),
960
+ ">": (c, f, d) => r(c, d) > r(f, d),
961
+ "<": (c, f, d) => r(c, d) < r(f, d)
954
962
  },
955
963
  {
956
- "+": (c, f, p) => r(c, p) + r(f, p),
957
- "-": (c, f, p) => r(c, p) - r(f, p)
964
+ "+": (c, f, d) => r(c, d) + r(f, d),
965
+ "-": (c, f, d) => r(c, d) - r(f, d)
958
966
  },
959
967
  {
960
- "*": (c, f, p) => r(c, p) * r(f, p),
961
- "/": (c, f, p) => r(c, p) / r(f, p),
962
- "%": (c, f, p) => r(c, p) % r(f, p)
968
+ "*": (c, f, d) => r(c, d) * r(f, d),
969
+ "/": (c, f, d) => r(c, d) / r(f, d),
970
+ "%": (c, f, d) => r(c, d) % r(f, d)
963
971
  }
964
972
  ], s = i.reduce((c, f) => c.concat(Object.keys(f)), []), o = new Set(s.map((c) => c.charAt(0)));
965
- function a(c, f, p, v) {
966
- const k = c.filter((u) => u.startsWith(f));
967
- return k.length ? k.find((u) => v.length >= p + u.length && v.substring(p, p + u.length) === u ? u : !1) : !1;
973
+ function a(c, f, d, v) {
974
+ const S = c.filter((u) => u.startsWith(f));
975
+ return S.length ? S.find((u) => v.length >= d + u.length && v.substring(d, d + u.length) === u ? u : !1) : !1;
968
976
  }
969
- function m(c, f, p = 1) {
970
- let v = p ? f.substring(c + 1).trim() : f.substring(0, c).trim();
977
+ function m(c, f, d = 1) {
978
+ let v = d ? f.substring(c + 1).trim() : f.substring(0, c).trim();
971
979
  if (!v.length)
972
980
  return -1;
973
- if (!p) {
981
+ if (!d) {
974
982
  const u = v.split("").reverse(), y = u.findIndex((b) => o.has(b));
975
983
  v = u.slice(y).join("");
976
984
  }
977
- const k = v[0];
985
+ const S = v[0];
978
986
  return i.findIndex((u) => {
979
987
  const y = Object.keys(u);
980
- return !!a(y, k, 0, v);
988
+ return !!a(y, S, 0, v);
981
989
  });
982
990
  }
983
991
  function h(c, f) {
984
- let p = "";
992
+ let d = "";
985
993
  const v = f.length;
986
- let k = 0;
994
+ let S = 0;
987
995
  for (let u = c; u < v; u++) {
988
996
  const y = f.charAt(u);
989
997
  if (y === "(")
990
- k++;
998
+ S++;
991
999
  else if (y === ")")
992
- k--;
993
- else if (k === 0 && y === " ")
1000
+ S--;
1001
+ else if (S === 0 && y === " ")
994
1002
  continue;
995
- if (k === 0 && a(s, y, u, f))
996
- return [p, u - 1];
997
- p += y;
1003
+ if (S === 0 && a(s, y, u, f))
1004
+ return [d, u - 1];
1005
+ d += y;
998
1006
  }
999
- return [p, f.length - 1];
1007
+ return [d, f.length - 1];
1000
1008
  }
1001
1009
  function _(c, f = 0) {
1002
- const p = i[f], v = c.length, k = Object.keys(p);
1003
- let u = 0, y = !1, b = null, S = "", P = null, I, M = "", V = "", E = "", R = "", B = 0;
1010
+ const d = i[f], v = c.length, S = Object.keys(d);
1011
+ let u = 0, y = !1, b = null, k = "", P = null, I, M = "", V = "", E = "", j = "", B = 0;
1004
1012
  const z = (x, N) => {
1005
- x ? E += N : S += N;
1013
+ x ? E += N : k += N;
1006
1014
  };
1007
1015
  for (let x = 0; x < v; x++)
1008
- if (M = V, V = c.charAt(x), (V === "'" || V === '"') && M !== "\\" && (u === 0 && !y || u && !R)) {
1009
- u ? R = V : y = V, z(u, V);
1016
+ if (M = V, V = c.charAt(x), (V === "'" || V === '"') && M !== "\\" && (u === 0 && !y || u && !j)) {
1017
+ u ? j = V : y = V, z(u, V);
1010
1018
  continue;
1011
- } else if (y && (V !== y || M === "\\") || R && (V !== R || M === "\\")) {
1019
+ } else if (y && (V !== y || M === "\\") || j && (V !== j || M === "\\")) {
1012
1020
  z(u, V);
1013
1021
  continue;
1014
1022
  } else if (y === V) {
1015
1023
  y = !1, z(u, V);
1016
1024
  continue;
1017
- } else if (R === V) {
1018
- R = !1, z(u, V);
1025
+ } else if (j === V) {
1026
+ j = !1, z(u, V);
1019
1027
  continue;
1020
1028
  } else {
1021
1029
  if (V === " ")
@@ -1024,37 +1032,37 @@ function K(e) {
1024
1032
  u === 0 ? B = x : E += V, u++;
1025
1033
  else if (V === ")")
1026
1034
  if (u--, u === 0) {
1027
- const N = typeof S == "string" && S.startsWith("$") ? S : void 0, He = N && c.charAt(x + 1) === ".";
1028
- let X = "";
1029
- He && ([X, x] = h(x + 2, c));
1030
- const se = b ? f : m(B, c, 0), ee = m(x, c);
1031
- se === -1 && ee === -1 ? S = d(E, -1, N, X) : b && (se >= ee || ee === -1) && f === se ? (P = b.bind(null, d(E, -1, N, X)), b = null, S = "") : ee > se && f === ee ? S = d(E, -1, N, X) : S += `(${E})${He ? `.${X}` : ""}`, E = "";
1035
+ const N = typeof k == "string" && k.startsWith("$") ? k : void 0, He = N && c.charAt(x + 1) === ".";
1036
+ let ee = "";
1037
+ He && ([ee, x] = h(x + 2, c));
1038
+ const se = b ? f : m(B, c, 0), te = m(x, c);
1039
+ se === -1 && te === -1 ? k = p(E, -1, N, ee) : b && (se >= te || te === -1) && f === se ? (P = b.bind(null, p(E, -1, N, ee)), b = null, k = "") : te > se && f === te ? k = p(E, -1, N, ee) : k += `(${E})${He ? `.${ee}` : ""}`, E = "";
1032
1040
  } else
1033
1041
  E += V;
1034
- else if (u === 0 && (I = a(k, V, x, c))) {
1035
- x === 0 && U(103, [I, c]), x += I.length - 1, x === c.length - 1 && U(104, [I, c]), b ? S && (P = b.bind(null, d(S, f)), b = p[I].bind(null, P), S = "") : P ? (b = p[I].bind(null, d(P, f)), P = null) : (b = p[I].bind(null, d(S, f)), S = "");
1042
+ else if (u === 0 && (I = a(S, V, x, c))) {
1043
+ x === 0 && U(103, [I, c]), x += I.length - 1, x === c.length - 1 && U(104, [I, c]), b ? k && (P = b.bind(null, p(k, f)), b = d[I].bind(null, P), k = "") : P ? (b = d[I].bind(null, p(P, f)), P = null) : (b = d[I].bind(null, p(k, f)), k = "");
1036
1044
  continue;
1037
1045
  } else
1038
1046
  z(u, V);
1039
1047
  }
1040
- return S && b && (b = b.bind(null, d(S, f))), b = !b && P ? P : b, !b && S && (b = (x, N) => typeof x == "function" ? x(N) : x, b = b.bind(null, d(S, f))), !b && !S && U(105, c), b;
1048
+ return k && b && (b = b.bind(null, p(k, f))), b = !b && P ? P : b, !b && k && (b = (x, N) => typeof x == "function" ? x(N) : x, b = b.bind(null, p(k, f))), !b && !k && U(105, c), b;
1041
1049
  }
1042
- function d(c, f, p, v) {
1043
- if (p) {
1044
- const k = d(p, i.length);
1050
+ function p(c, f, d, v) {
1051
+ if (d) {
1052
+ const S = p(d, i.length);
1045
1053
  let u, y = v ? K(`$${v}`) : !1;
1046
- if (typeof k == "function") {
1047
- const b = Kt(String(c)).map((S) => d(S, -1));
1048
- return (S) => {
1049
- const P = k(S);
1050
- return typeof P != "function" ? (ve(150, p), P) : (u = P(...b.map((I) => typeof I == "function" ? I(S) : I)), y && (y = y.provide((I) => {
1054
+ if (typeof S == "function") {
1055
+ const b = qt(String(c)).map((k) => p(k, -1));
1056
+ return (k) => {
1057
+ const P = S(k);
1058
+ return typeof P != "function" ? (ve(150, d), P) : (u = P(...b.map((I) => typeof I == "function" ? I(k) : I)), y && (y = y.provide((I) => {
1051
1059
  const M = n(I);
1052
- return I.reduce((E, R) => {
1053
- if (R === v || (v == null ? void 0 : v.startsWith(`${R}(`))) {
1054
- const z = qt(u, R);
1055
- E[R] = () => z;
1060
+ return I.reduce((E, j) => {
1061
+ if (j === v || (v == null ? void 0 : v.startsWith(`${j}(`))) {
1062
+ const z = Bt(u, j);
1063
+ E[j] = () => z;
1056
1064
  } else
1057
- E[R] = M[R];
1065
+ E[j] = M[j];
1058
1066
  return E;
1059
1067
  }, {});
1060
1068
  })), y ? y() : u);
@@ -1067,16 +1075,16 @@ function K(e) {
1067
1075
  return !1;
1068
1076
  if (c === "undefined")
1069
1077
  return;
1070
- if (Wt(c))
1071
- return Ut(c.substring(1, c.length - 1));
1078
+ if (Ut(c))
1079
+ return Kt(c.substring(1, c.length - 1));
1072
1080
  if (!isNaN(+c))
1073
1081
  return Number(c);
1074
1082
  if (f < i.length - 1)
1075
1083
  return _(c, f + 1);
1076
1084
  if (c.startsWith("$")) {
1077
- const k = c.substring(1);
1078
- return t.add(k), function(y) {
1079
- return k in y ? y[k]() : void 0;
1085
+ const S = c.substring(1);
1086
+ return t.add(S), function(y) {
1087
+ return S in y ? y[S]() : void 0;
1080
1088
  };
1081
1089
  }
1082
1090
  return c;
@@ -1093,7 +1101,7 @@ function K(e) {
1093
1101
  provide: $
1094
1102
  });
1095
1103
  }
1096
- const nt = "1.0.0-beta.10", rr = q("outer", () => ({
1104
+ const nt = "1.0.0-beta.11", ir = q("outer", () => ({
1097
1105
  $el: "div",
1098
1106
  attrs: {
1099
1107
  key: "$id",
@@ -1110,16 +1118,16 @@ const nt = "1.0.0-beta.10", rr = q("outer", () => ({
1110
1118
  "data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
1111
1119
  "data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
1112
1120
  }
1113
- }), !0), ir = q("inner", "div"), sr = q("wrapper", "div"), or = q("label", () => ({
1121
+ }), !0), sr = q("inner", "div"), or = q("wrapper", "div"), lr = q("label", () => ({
1114
1122
  $el: "label",
1115
1123
  if: "$label",
1116
1124
  attrs: {
1117
1125
  for: "$id"
1118
1126
  }
1119
- })), lr = q("messages", () => ({
1127
+ })), ar = q("messages", () => ({
1120
1128
  $el: "ul",
1121
1129
  if: "$fns.length($messages)"
1122
- })), ar = q("message", () => ({
1130
+ })), ur = q("message", () => ({
1123
1131
  $el: "li",
1124
1132
  for: ["message", "$messages"],
1125
1133
  attrs: {
@@ -1127,7 +1135,7 @@ const nt = "1.0.0-beta.10", rr = q("outer", () => ({
1127
1135
  id: "$id + '-' + $message.key",
1128
1136
  "data-message-type": "$message.type"
1129
1137
  }
1130
- })), ur = q("prefix", null), fr = q("suffix", null), cr = q("help", () => ({
1138
+ })), fr = q("prefix", null), cr = q("suffix", null), pr = q("help", () => ({
1131
1139
  $el: "div",
1132
1140
  if: "$help",
1133
1141
  attrs: {
@@ -1137,11 +1145,11 @@ const nt = "1.0.0-beta.10", rr = q("outer", () => ({
1137
1145
  function rt(e) {
1138
1146
  return typeof e == "object" && ("$el" in e || "$cmp" in e || "$formkit" in e);
1139
1147
  }
1140
- function pr(e, n = {}) {
1148
+ function dr(e, n = {}) {
1141
1149
  return typeof e == "string" ? rt(n) || typeof n == "string" ? n : e : Array.isArray(e) ? rt(n) ? n : e : Te(e, n);
1142
1150
  }
1143
- function dr(e) {
1144
- return rr(sr(or("$label"), ir(ur(), e(), fr())), cr("$help"), lr(ar("$message.value")));
1151
+ function mr(e) {
1152
+ return ir(or(lr("$label"), sr(fr(), e(), cr())), pr("$help"), ar(ur("$message.value")));
1145
1153
  }
1146
1154
  function q(e, n, t = !1) {
1147
1155
  return (...r) => {
@@ -1155,13 +1163,13 @@ function q(e, n, t = !1) {
1155
1163
  })), {
1156
1164
  if: `$slots.${e}`,
1157
1165
  then: `$slots.${e}`,
1158
- else: e in s ? pr(o, s[e]) : o
1166
+ else: e in s ? dr(o, s[e]) : o
1159
1167
  };
1160
1168
  };
1161
- return t ? mr(i) : i;
1169
+ return t ? yr(i) : i;
1162
1170
  };
1163
1171
  }
1164
- function mr(e) {
1172
+ function yr(e) {
1165
1173
  return (n) => [e(n)];
1166
1174
  }
1167
1175
  _e({
@@ -1172,11 +1180,11 @@ _e({
1172
1180
  key: "validating"
1173
1181
  });
1174
1182
  let ue;
1175
- const yr = new Promise((e) => {
1183
+ const hr = new Promise((e) => {
1176
1184
  }), $e = typeof window < "u" && typeof fetch < "u";
1177
1185
  ue = $e ? getComputedStyle(document.documentElement) : void 0;
1178
- const ne = {}, we = {};
1179
- function Se(e, n) {
1186
+ const G = {}, we = {};
1187
+ function ke(e, n) {
1180
1188
  return (t) => {
1181
1189
  if (typeof t == "boolean")
1182
1190
  return;
@@ -1184,33 +1192,33 @@ function Se(e, n) {
1184
1192
  return t;
1185
1193
  if (typeof t != "string")
1186
1194
  return;
1187
- const r = ne[t], i = t.startsWith("default:");
1195
+ const r = G[t], i = t.startsWith("default:");
1188
1196
  t = i ? t.split(":")[1] : t;
1189
1197
  let s;
1190
- if (r || t in ne)
1191
- return r;
1198
+ if (r || t in G)
1199
+ return G[t];
1192
1200
  if (!we[t]) {
1193
- if (s = hr(t), s = $e && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
1194
- we[t] = s.then((o) => !o && typeof t == "string" && !i ? s = typeof e == "function" ? e(t) : gr(t, n) : o).then((o) => (typeof t == "string" && (ne[i ? `default:${t}` : t] = o), o));
1201
+ if (s = _r(t), s = $e && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
1202
+ we[t] = s.then((o) => !o && typeof t == "string" && !i ? s = typeof e == "function" ? e(t) : vr(t, n) : o).then((o) => (typeof t == "string" && (G[i ? `default:${t}` : t] = o), o));
1195
1203
  else if (typeof s == "string")
1196
- return ne[i ? `default:${t}` : t] = s, s;
1204
+ return G[i ? `default:${t}` : t] = s, s;
1197
1205
  }
1198
1206
  return we[t];
1199
1207
  };
1200
1208
  }
1201
- function hr(e) {
1209
+ function _r(e) {
1202
1210
  if (!!$e)
1203
- return yr.then(() => _r(e));
1211
+ return hr.then(() => gr(e));
1204
1212
  }
1205
- function _r(e) {
1213
+ function gr(e) {
1206
1214
  const n = ue == null ? void 0 : ue.getPropertyValue(`--fk-icon-${e}`);
1207
1215
  if (n) {
1208
1216
  const t = atob(n);
1209
1217
  if (t.startsWith("<svg"))
1210
- return ne[e] = t, t;
1218
+ return G[e] = t, t;
1211
1219
  }
1212
1220
  }
1213
- function gr(e, n) {
1221
+ function vr(e, n) {
1214
1222
  const t = nt.startsWith("__") ? "latest" : nt, r = typeof n == "function" ? n(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
1215
1223
  if (!!$e)
1216
1224
  return fetch(`${r}`).then(async (i) => {
@@ -1232,6 +1240,7 @@ const it = {
1232
1240
  106: ({ data: e }) => `Cannot submit because (${e}) is not in a form.`,
1233
1241
  107: ({ data: [e, n] }) => `Cannot set ${e.name} to non object value: ${n}`,
1234
1242
  108: ({ data: [e, n] }) => `Cannot set ${e.name} to non array value: ${n}`,
1243
+ 300: ({ data: [e] }) => `Cannot set behavior prop to overscroll (on ${e.name} input) when options prop is a function.`,
1235
1244
  600: ({ data: e }) => `Unknown input type${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} ("${e.name}")`,
1236
1245
  601: ({ data: e }) => `Input definition${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} is missing a schema or component property (${e.name}).`
1237
1246
  }, st = {
@@ -1243,104 +1252,112 @@ const it = {
1243
1252
  651: ({ data: e }) => `Cannot setErrors() on "${e}" because no such id exists.`,
1244
1253
  652: ({ data: e }) => `Cannot clearErrors() on "${e}" because no such id exists.`,
1245
1254
  800: ({ data: e }) => `${e} is deprecated.`
1246
- }, vr = (e, n) => {
1255
+ }, br = (e, n) => {
1247
1256
  if (e.code in it) {
1248
1257
  const t = it[e.code];
1249
1258
  e.message = typeof t == "function" ? t(e) : t;
1250
1259
  }
1251
1260
  return n(e);
1252
1261
  };
1253
- Be || De(vr);
1254
- const br = (e, n) => {
1262
+ Be || De(br);
1263
+ const $r = (e, n) => {
1255
1264
  if (e.code in st) {
1256
1265
  const t = st[e.code];
1257
1266
  e.message = typeof t == "function" ? t(e) : t;
1258
1267
  }
1259
1268
  return n(e);
1260
1269
  };
1261
- Be || We(br);
1270
+ Be || We($r);
1262
1271
  Be = !0;
1263
- const ke = {};
1272
+ const Se = {};
1264
1273
  let D;
1265
- const Y = /* @__PURE__ */ new Map(), $r = "__raw__", wr = /[a-zA-Z0-9\-][cC]lass$/;
1274
+ const Y = /* @__PURE__ */ new Map(), wr = "__raw__", kr = /[a-zA-Z0-9\-][cC]lass$/;
1266
1275
  function Sr(e, n) {
1267
1276
  const t = ie(null);
1268
1277
  if (e === "get") {
1269
1278
  const i = {};
1270
- return t.value = kr.bind(null, i), t;
1279
+ return t.value = Cr.bind(null, i), t;
1271
1280
  }
1272
1281
  const r = e.split(".");
1273
1282
  return Z(() => t.value = ze(n, r)), t;
1274
1283
  }
1275
1284
  function ze(e, n) {
1276
1285
  if (Array.isArray(e)) {
1277
- for (const r of e) {
1278
- const i = r !== !1 && ze(r, n);
1279
- if (i !== void 0)
1280
- return i;
1286
+ for (const i of e) {
1287
+ const s = i !== !1 && ze(i, n);
1288
+ if (s !== void 0)
1289
+ return s;
1281
1290
  }
1282
1291
  return;
1283
1292
  }
1284
- let t;
1285
- return n.reduce((r, i, s, o) => {
1286
- if (typeof r != "object")
1287
- return t = void 0, o.splice(1);
1288
- const a = r[i];
1289
- return s === n.length - 1 && a !== void 0 && (t = a), r[i];
1290
- }, e), t;
1291
- }
1292
- function kr(e, n) {
1293
+ let t, r = e;
1294
+ for (const i in n) {
1295
+ const s = n[i];
1296
+ if (typeof r != "object" || r === null) {
1297
+ t = void 0;
1298
+ break;
1299
+ }
1300
+ const o = r[s];
1301
+ if (Number(i) === n.length - 1 && o !== void 0) {
1302
+ t = o;
1303
+ break;
1304
+ }
1305
+ r = o;
1306
+ }
1307
+ return t;
1308
+ }
1309
+ function Cr(e, n) {
1293
1310
  if (typeof n != "string")
1294
1311
  return ve(650);
1295
1312
  if (n in e || (e[n] = ie(void 0)), e[n].value === void 0) {
1296
1313
  e[n].value = null;
1297
1314
  const t = vt(n);
1298
- t && (e[n].value = t.context), fn(n, ({ payload: r }) => {
1315
+ t && (e[n].value = t.context), cn(n, ({ payload: r }) => {
1299
1316
  e[n].value = be(r) ? r.context : r;
1300
1317
  });
1301
1318
  }
1302
1319
  return e[n].value;
1303
1320
  }
1304
1321
  function ot(e, n) {
1305
- function t(d, w) {
1306
- const g = _(K(w.if), { if: !0 }), $ = m(d, w.then), c = w.else ? m(d, w.else) : null;
1322
+ function t(p, w) {
1323
+ const g = _(K(w.if), { if: !0 }), $ = m(p, w.then), c = w.else ? m(p, w.else) : null;
1307
1324
  return [g, $, c];
1308
1325
  }
1309
- function r(d, w) {
1326
+ function r(p, w) {
1310
1327
  var g, $;
1311
- const c = _(K(d.if));
1312
- let f = () => w, p = () => w;
1313
- return typeof d.then == "object" ? p = i(d.then, void 0) : typeof d.then == "string" && ((g = d.then) === null || g === void 0 ? void 0 : g.startsWith("$")) ? p = _(K(d.then)) : p = () => d.then, j(d, "else") && (typeof d.else == "object" ? f = i(d.else) : typeof d.else == "string" && (($ = d.else) === null || $ === void 0 ? void 0 : $.startsWith("$")) ? f = _(K(d.else)) : f = () => d.else), () => c() ? p() : f();
1328
+ const c = _(K(p.if));
1329
+ let f = () => w, d = () => w;
1330
+ return typeof p.then == "object" ? d = i(p.then, void 0) : typeof p.then == "string" && ((g = p.then) === null || g === void 0 ? void 0 : g.startsWith("$")) ? d = _(K(p.then)) : d = () => p.then, R(p, "else") && (typeof p.else == "object" ? f = i(p.else) : typeof p.else == "string" && (($ = p.else) === null || $ === void 0 ? void 0 : $.startsWith("$")) ? f = _(K(p.else)) : f = () => p.else), () => c() ? d() : f();
1314
1331
  }
1315
- function i(d, w, g = {}) {
1316
- const $ = new Set(Object.keys(d || {})), c = w ? _(K(w)) : () => ({}), f = [
1317
- (p) => {
1332
+ function i(p, w, g = {}) {
1333
+ const $ = new Set(Object.keys(p || {})), c = w ? _(K(w)) : () => ({}), f = [
1334
+ (d) => {
1318
1335
  const v = c();
1319
- for (const k in v)
1320
- $.has(k) || (p[k] = v[k]);
1336
+ for (const S in v)
1337
+ $.has(S) || (d[S] = v[S]);
1321
1338
  }
1322
1339
  ];
1323
- if (d) {
1324
- if (te(d))
1325
- return r(d, g);
1326
- for (let p in d) {
1327
- const v = d[p];
1328
- let k;
1340
+ if (p) {
1341
+ if (ne(p))
1342
+ return r(p, g);
1343
+ for (let d in p) {
1344
+ const v = p[d];
1345
+ let S;
1329
1346
  const u = typeof v == "string";
1330
- p.startsWith($r) ? (p = p.substring(7), k = () => v) : u && v.startsWith("$") && v.length > 1 && !(v.startsWith("$reset") && wr.test(p)) ? k = _(K(v)) : typeof v == "object" && te(v) ? k = r(v, void 0) : typeof v == "object" && ye(v) ? k = i(v) : k = () => v, f.push((y) => {
1331
- y[p] = k();
1347
+ d.startsWith(wr) ? (d = d.substring(7), S = () => v) : u && v.startsWith("$") && v.length > 1 && !(v.startsWith("$reset") && kr.test(d)) ? S = _(K(v)) : typeof v == "object" && ne(v) ? S = r(v, void 0) : typeof v == "object" && ye(v) ? S = i(v) : S = () => v, f.push((y) => {
1348
+ y[d] = S();
1332
1349
  });
1333
1350
  }
1334
1351
  }
1335
1352
  return () => {
1336
- const p = Array.isArray(d) ? [] : {};
1337
- return f.forEach((v) => v(p)), p;
1353
+ const d = Array.isArray(p) ? [] : {};
1354
+ return f.forEach((v) => v(d)), d;
1338
1355
  };
1339
1356
  }
1340
- function s(d, w) {
1341
- let g = null, $ = () => null, c = !1, f = null, p = null, v = null, k = !1;
1342
- const u = nr(w);
1343
- if (xe(u) ? (g = u.$el, $ = u.$el !== "text" ? i(u.attrs, u.bind) : () => null) : Ae(u) ? (typeof u.$cmp == "string" ? j(d, u.$cmp) ? g = d[u.$cmp] : (g = u.$cmp, k = !0) : g = u.$cmp, $ = i(u.props, u.bind)) : te(u) && ([c, f, p] = t(d, u)), !te(u) && "if" in u ? c = _(K(u.if)) : !te(u) && g === null && (c = () => !0), "children" in u && u.children)
1357
+ function s(p, w) {
1358
+ let g = null, $ = () => null, c = !1, f = null, d = null, v = null, S = !1;
1359
+ const u = rr(w);
1360
+ if (xe(u) ? (g = u.$el, $ = u.$el !== "text" ? i(u.attrs, u.bind) : () => null) : Ae(u) ? (typeof u.$cmp == "string" ? R(p, u.$cmp) ? g = p[u.$cmp] : (g = u.$cmp, S = !0) : g = u.$cmp, $ = i(u.props, u.bind)) : ne(u) && ([c, f, d] = t(p, u)), !ne(u) && "if" in u ? c = _(K(u.if)) : !ne(u) && g === null && (c = () => !0), "children" in u && u.children)
1344
1361
  if (typeof u.children == "string")
1345
1362
  if (u.children.startsWith("$slots."))
1346
1363
  g = g === "text" ? "slot" : g, f = _(K(u.children));
@@ -1350,21 +1367,21 @@ function ot(e, n) {
1350
1367
  } else
1351
1368
  f = () => String(u.children);
1352
1369
  else if (Array.isArray(u.children))
1353
- f = m(d, u.children);
1370
+ f = m(p, u.children);
1354
1371
  else {
1355
- const [y, b, S] = t(d, u.children);
1356
- f = (P) => y && y() ? b && b(P) : S && S(P);
1372
+ const [y, b, k] = t(p, u.children);
1373
+ f = (P) => y && y() ? b && b(P) : k && k(P);
1357
1374
  }
1358
1375
  if (Ae(u))
1359
1376
  if (f) {
1360
1377
  const y = f;
1361
1378
  f = (b) => ({
1362
- default(S, P) {
1379
+ default(k, P) {
1363
1380
  var I, M, V, E;
1364
- const R = D;
1365
- P && (D = P), S && ((I = Y.get(D)) === null || I === void 0 || I.unshift(S)), b && ((M = Y.get(D)) === null || M === void 0 || M.unshift(b));
1381
+ const j = D;
1382
+ P && (D = P), k && ((I = Y.get(D)) === null || I === void 0 || I.unshift(k)), b && ((M = Y.get(D)) === null || M === void 0 || M.unshift(b));
1366
1383
  const B = y(b);
1367
- return S && ((V = Y.get(D)) === null || V === void 0 || V.shift()), b && ((E = Y.get(D)) === null || E === void 0 || E.shift()), D = R, B;
1384
+ return k && ((V = Y.get(D)) === null || V === void 0 || V.shift()), b && ((E = Y.get(D)) === null || E === void 0 || E.shift()), D = j, B;
1368
1385
  }
1369
1386
  }), f.slot = !0;
1370
1387
  } else
@@ -1377,44 +1394,44 @@ function ot(e, n) {
1377
1394
  u.for.length === 3 ? String(u.for[1]) : null
1378
1395
  ];
1379
1396
  }
1380
- return [c, g, $, f, p, v, k];
1397
+ return [c, g, $, f, d, v, S];
1381
1398
  }
1382
- function o(d, w) {
1383
- const g = d(w), $ = D;
1399
+ function o(p, w) {
1400
+ const g = p(w), $ = D;
1384
1401
  return Object.keys(g).reduce((c, f) => {
1385
- const p = g && g[f];
1386
- return c[f] = (v) => p && p(v, $) || null, c;
1402
+ const d = g && g[f];
1403
+ return c[f] = (v) => d && d(v, $) || null, c;
1387
1404
  }, {});
1388
1405
  }
1389
- function a(d, w) {
1390
- const [g, $, c, f, p, v, k] = s(d, w);
1406
+ function a(p, w) {
1407
+ const [g, $, c, f, d, v, S] = s(p, w);
1391
1408
  let u = (y) => {
1392
1409
  if (g && $ === null && f)
1393
- return g() ? f(y) : p && p(y);
1410
+ return g() ? f(y) : d && d(y);
1394
1411
  if ($ && (!g || g())) {
1395
1412
  if ($ === "text" && f)
1396
1413
  return Tt(String(f()));
1397
1414
  if ($ === "slot" && f)
1398
1415
  return f(y);
1399
- const b = k ? L($) : $, S = f != null && f.slot ? o(f, y) : null;
1400
- return pe(b, c(), S || (f ? f(y) : []));
1416
+ const b = S ? L($) : $, k = f != null && f.slot ? o(f, y) : null;
1417
+ return pe(b, c(), k || (f ? f(y) : []));
1401
1418
  }
1402
- return typeof p == "function" ? p(y) : p;
1419
+ return typeof d == "function" ? d(y) : d;
1403
1420
  };
1404
1421
  if (v) {
1405
- const y = u, [b, S, P] = v;
1422
+ const y = u, [b, k, P] = v;
1406
1423
  u = () => {
1407
- const I = b(), M = isNaN(I) ? I : Array(Number(I)).fill(0).map((R, B) => B), V = [];
1424
+ const I = b(), M = isNaN(I) ? I : Array(Number(I)).fill(0).map((j, B) => B), V = [];
1408
1425
  if (typeof M != "object")
1409
1426
  return null;
1410
1427
  const E = Y.get(D) || [];
1411
- for (const R in M) {
1412
- if (Array.isArray(M) && R === "length")
1428
+ for (const j in M) {
1429
+ if (Array.isArray(M) && j === "length")
1413
1430
  continue;
1414
1431
  const B = Object.defineProperty({
1415
1432
  ...E.reduce((z, x) => z.__idata ? { ...z, ...x } : x, {}),
1416
- [S]: M[R],
1417
- ...P !== null ? { [P]: R } : {}
1433
+ [k]: M[j],
1434
+ ...P !== null ? { [P]: j } : {}
1418
1435
  }, "__idata", { enumerable: !1, value: !0 });
1419
1436
  E.unshift(B), V.push(y.bind(null, B)()), E.shift();
1420
1437
  }
@@ -1423,25 +1440,25 @@ function ot(e, n) {
1423
1440
  }
1424
1441
  return u;
1425
1442
  }
1426
- function m(d, w) {
1443
+ function m(p, w) {
1427
1444
  if (Array.isArray(w)) {
1428
- const $ = w.map(a.bind(null, d));
1445
+ const $ = w.map(a.bind(null, p));
1429
1446
  return (c) => $.map((f) => f(c));
1430
1447
  }
1431
- const g = a(d, w);
1448
+ const g = a(p, w);
1432
1449
  return ($) => g($);
1433
1450
  }
1434
1451
  const h = [];
1435
- function _(d, w = {}) {
1452
+ function _(p, w = {}) {
1436
1453
  const g = {};
1437
1454
  return h.push(($, c) => {
1438
- g[c] = d.provide((f) => $(f, w));
1455
+ g[c] = p.provide((f) => $(f, w));
1439
1456
  }), () => g[D]();
1440
1457
  }
1441
1458
  return function(w, g) {
1442
- const $ = JSON.stringify(n), [c, f] = j(ke, $) ? ke[$] : [m(e, n), h];
1443
- return ke[$] = [c, f], f.forEach((p) => {
1444
- p(w, g);
1459
+ const $ = JSON.stringify(n), [c, f] = R(Se, $) ? Se[$] : [m(e, n), h];
1460
+ return Se[$] = [c, f], f.forEach((d) => {
1461
+ d(w, g);
1445
1462
  }), () => (D = g, c());
1446
1463
  };
1447
1464
  }
@@ -1450,7 +1467,7 @@ function It(e, n) {
1450
1467
  let r;
1451
1468
  return t.length && (r = ze(t, e.split("."))), r === void 0 ? n : r;
1452
1469
  }
1453
- function Cr(e, n) {
1470
+ function Vr(e, n) {
1454
1471
  return new Proxy(e, {
1455
1472
  get(...t) {
1456
1473
  let r;
@@ -1466,11 +1483,11 @@ function Cr(e, n) {
1466
1483
  function lt(e, n, t) {
1467
1484
  return e((r, i = {}) => r.reduce((s, o) => {
1468
1485
  if (o.startsWith("slots.")) {
1469
- const m = o.substring(6), h = n.slots && j(n.slots, m);
1486
+ const m = o.substring(6), h = n.slots && R(n.slots, m);
1470
1487
  if (i.if)
1471
1488
  s[o] = () => h;
1472
1489
  else if (n.slots && h) {
1473
- const _ = Cr(n, t);
1490
+ const _ = Vr(n, t);
1474
1491
  return s[o] = () => n.slots[m](_), s;
1475
1492
  }
1476
1493
  }
@@ -1479,7 +1496,7 @@ function lt(e, n, t) {
1479
1496
  }, {}), t);
1480
1497
  }
1481
1498
  let at = 0;
1482
- const Vr = A({
1499
+ const Ir = A({
1483
1500
  name: "FormKitSchema",
1484
1501
  props: {
1485
1502
  schema: {
@@ -1509,7 +1526,7 @@ const Vr = A({
1509
1526
  }), s = lt(i, o, r);
1510
1527
  }), () => s();
1511
1528
  }
1512
- }), Ir = {
1529
+ }), Pr = {
1513
1530
  config: {
1514
1531
  type: Object,
1515
1532
  default: {}
@@ -1577,9 +1594,9 @@ const Vr = A({
1577
1594
  type: [String, Function],
1578
1595
  required: !1
1579
1596
  }
1580
- }, Pr = Ir, Ee = Symbol("FormKitParent");
1597
+ }, Or = Pr, Ee = Symbol("FormKitParent");
1581
1598
  A({
1582
- props: Pr,
1599
+ props: Or,
1583
1600
  emits: {
1584
1601
  input: (e, n) => !0,
1585
1602
  inputRaw: (e, n) => !0,
@@ -1606,38 +1623,38 @@ A({
1606
1623
  };
1607
1624
  i(), t.on("schema", i), n.emit("node", t);
1608
1625
  const s = t.props.definition.library;
1609
- return n.expose({ node: t }), () => pe(Vr, { schema: r.value, data: t.context, library: s }, { ...n.slots });
1626
+ return n.expose({ node: t }), () => pe(Ir, { schema: r.value, data: t.context, library: s }, { ...n.slots });
1610
1627
  }
1611
1628
  });
1612
- const Pt = Symbol.for("FormKitOptions"), Re = Symbol();
1613
- function Or(e, n) {
1629
+ const Pt = Symbol.for("FormKitOptions"), je = Symbol();
1630
+ function xr(e, n) {
1614
1631
  const t = {}, r = (o) => {
1615
1632
  for (const a of o)
1616
- a.__str in t && t[a.__str](), t[a.__str] = ce(Ar.bind(null, e, a), s.bind(null, a), { deep: !1 });
1617
- }, s = xr(e, n, r, (o) => {
1633
+ a.__str in t && t[a.__str](), t[a.__str] = ce(Er.bind(null, e, a), s.bind(null, a), { deep: !1 });
1634
+ }, s = Ar(e, n, r, (o) => {
1618
1635
  if (!!o.length)
1619
1636
  for (const a in t)
1620
1637
  `${a}`.startsWith(`${o.__str}.`) && (t[a](), delete t[a]);
1621
1638
  });
1622
1639
  r(Ne(e));
1623
1640
  }
1624
- function xr(e, n, t, r) {
1641
+ function Ar(e, n, t, r) {
1625
1642
  return (i) => {
1626
1643
  const s = Ot(e, i);
1627
- s !== Re && (i.__deep && r(i), typeof s == "object" && t(Ne(s, [i], ...i)), n(i, s, e));
1644
+ s !== je && (i.__deep && r(i), typeof s == "object" && t(Ne(s, [i], ...i)), n(i, s, e));
1628
1645
  };
1629
1646
  }
1630
- function Ar(e, n) {
1647
+ function Er(e, n) {
1631
1648
  const t = Ot(e, n);
1632
1649
  return t && typeof t == "object" ? Object.keys(t) : t;
1633
1650
  }
1634
1651
  function Ot(e, n) {
1635
- if (je(e)) {
1652
+ if (Re(e)) {
1636
1653
  if (n.length === 0)
1637
1654
  return e.value;
1638
1655
  e = e.value;
1639
1656
  }
1640
- return n.reduce((t, r) => t === Re ? t : t === null || typeof t != "object" ? Re : t[r], e);
1657
+ return n.reduce((t, r) => t === je ? t : t === null || typeof t != "object" ? je : t[r], e);
1641
1658
  }
1642
1659
  function Ne(e, n = [], ...t) {
1643
1660
  if (e === null)
@@ -1646,7 +1663,7 @@ function Ne(e, n = [], ...t) {
1646
1663
  const r = Object.defineProperty([], "__str", {
1647
1664
  value: ""
1648
1665
  });
1649
- if (e = je(e) ? e.value : e, e && typeof e == "object")
1666
+ if (e = Re(e) ? e.value : e, e && typeof e == "object")
1650
1667
  Object.defineProperty(r, "__deep", { value: !0 }), n.push(r);
1651
1668
  else
1652
1669
  return [r];
@@ -1662,7 +1679,7 @@ function Ne(e, n = [], ...t) {
1662
1679
  return n;
1663
1680
  }
1664
1681
  function fe(e) {
1665
- return e === null || typeof e != "object" || (Ze(e) ? e = Lt(e) : je(e) && (e = Ze(e.value) ? fe(e.value) : e.value)), e;
1682
+ return e === null || typeof e != "object" || (Ze(e) ? e = Lt(e) : Re(e) && (e = Ze(e.value) ? fe(e.value) : e.value)), e;
1666
1683
  }
1667
1684
  const Ce = [
1668
1685
  "help",
@@ -1682,14 +1699,14 @@ function ut(e, n) {
1682
1699
  typeof t == "string" && (e.props[`_${t}Class`] = n.classes[t], Ie(n.classes[t]) && t === "inner" && Object.values(n.classes[t]));
1683
1700
  });
1684
1701
  }
1685
- function Er(e) {
1702
+ function jr(e) {
1686
1703
  return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce((t, r) => {
1687
1704
  const i = `on${r}`;
1688
1705
  return i in e && typeof e[i] == "function" && (t[i] = e[i]), t;
1689
1706
  }, {}) : {};
1690
1707
  }
1691
1708
  function Rr(e, n, t = {}) {
1692
- const r = Object.assign({}, de(Pt) || {}, t), i = ft(), s = Er(i == null ? void 0 : i.vnode.props), o = e.modelValue !== void 0, a = e.modelValue !== void 0 ? e.modelValue : J(n.attrs.value);
1709
+ const r = Object.assign({}, de(Pt) || {}, t), i = ft(), s = jr(i == null ? void 0 : i.vnode.props), o = e.modelValue !== void 0, a = e.modelValue !== void 0 ? e.modelValue : J(n.attrs.value);
1693
1710
  function m() {
1694
1711
  const u = {
1695
1712
  ...Q(e),
@@ -1699,10 +1716,10 @@ function Rr(e, n, t = {}) {
1699
1716
  const b = Je(Q(n.attrs), Ce);
1700
1717
  for (const P in b)
1701
1718
  u[oe(P)] = b[P];
1702
- const S = { props: {} };
1703
- return ut(S, e), Object.assign(u, S.props), typeof u.type != "string" && (u.definition = u.type, delete u.type), u;
1719
+ const k = { props: {} };
1720
+ return ut(k, e), Object.assign(u, k.props), typeof u.type != "string" && (u.definition = u.type, delete u.type), u;
1704
1721
  }
1705
- const h = m(), _ = h.ignore ? null : e.parent || de(Ee, null), d = er(Te(r || {}, {
1722
+ const h = m(), _ = h.ignore ? null : e.parent || de(Ee, null), p = tr(Te(r || {}, {
1706
1723
  name: e.name || void 0,
1707
1724
  value: a,
1708
1725
  parent: _,
@@ -1711,36 +1728,36 @@ function Rr(e, n, t = {}) {
1711
1728
  props: h,
1712
1729
  index: e.index
1713
1730
  }, !1, !0));
1714
- d.props.definition || U(600, d);
1715
- const w = ie(new Set(d.props.definition.props || []));
1716
- d.on("added-props", ({ payload: u }) => {
1731
+ p.props.definition || U(600, p);
1732
+ const w = ie(new Set(p.props.definition.props || []));
1733
+ p.on("added-props", ({ payload: u }) => {
1717
1734
  Array.isArray(u) && u.forEach((y) => w.value.add(y));
1718
1735
  });
1719
1736
  const g = At(() => Ce.concat([...w.value]).reduce((u, y) => (typeof y == "string" ? (u.push(oe(y)), u.push(dt(y))) : u.push(y), u), []));
1720
- Z(() => ut(d, e));
1737
+ Z(() => ut(p, e));
1721
1738
  const $ = Q(e);
1722
1739
  for (const u in $)
1723
1740
  ce(() => e[u], () => {
1724
- e[u] !== void 0 && (d.props[u] = e[u]);
1741
+ e[u] !== void 0 && (p.props[u] = e[u]);
1725
1742
  });
1726
1743
  const c = /* @__PURE__ */ new Set(), f = Q(n.attrs);
1727
1744
  Z(() => {
1728
- p(Je(f, g.value));
1745
+ d(Je(f, g.value));
1729
1746
  });
1730
- function p(u) {
1747
+ function d(u) {
1731
1748
  c.forEach((y) => {
1732
1749
  y(), c.delete(y);
1733
1750
  });
1734
1751
  for (const y in u) {
1735
1752
  const b = oe(y);
1736
1753
  c.add(ce(() => n.attrs[y], () => {
1737
- d.props[b] = n.attrs[y];
1754
+ p.props[b] = n.attrs[y];
1738
1755
  }));
1739
1756
  }
1740
1757
  }
1741
1758
  if (Z(() => {
1742
1759
  const u = Ye(Q(n.attrs), g.value);
1743
- d.props.attrs = Object.assign({}, d.props.attrs || {}, u);
1760
+ p.props.attrs = Object.assign({}, p.props.attrs || {}, u);
1744
1761
  }), Z(() => {
1745
1762
  const u = e.errors.map((y) => _e({
1746
1763
  key: mt(y),
@@ -1748,43 +1765,43 @@ function Rr(e, n, t = {}) {
1748
1765
  value: y,
1749
1766
  meta: { source: "prop" }
1750
1767
  }));
1751
- d.store.apply(u, (y) => y.type === "error" && y.meta.source === "prop");
1752
- }), d.type !== "input") {
1753
- const u = `${d.name}-prop`;
1768
+ p.store.apply(u, (y) => y.type === "error" && y.meta.source === "prop");
1769
+ }), p.type !== "input") {
1770
+ const u = `${p.name}-prop`;
1754
1771
  Z(() => {
1755
1772
  const y = Object.keys(e.inputErrors);
1756
- y.length || d.clearErrors(!0, u);
1757
- const b = y.reduce((S, P) => {
1773
+ y.length || p.clearErrors(!0, u);
1774
+ const b = y.reduce((k, P) => {
1758
1775
  let I = e.inputErrors[P];
1759
- return typeof I == "string" && (I = [I]), Array.isArray(I) && (S[P] = I.map((M) => _e({
1776
+ return typeof I == "string" && (I = [I]), Array.isArray(I) && (k[P] = I.map((M) => _e({
1760
1777
  key: M,
1761
1778
  type: "error",
1762
1779
  value: M,
1763
1780
  meta: { source: u }
1764
- }))), S;
1781
+ }))), k;
1765
1782
  }, {});
1766
- d.store.apply(b, (S) => S.type === "error" && S.meta.source === u);
1783
+ p.store.apply(b, (k) => k.type === "error" && k.meta.source === u);
1767
1784
  });
1768
1785
  }
1769
- Z(() => Object.assign(d.config, e.config)), d.type !== "input" && Et(Ee, d);
1786
+ Z(() => Object.assign(p.config, e.config)), p.type !== "input" && Et(Ee, p);
1770
1787
  let v;
1771
- const k = /* @__PURE__ */ new WeakSet();
1772
- return d.on("modelUpdated", () => {
1788
+ const S = /* @__PURE__ */ new WeakSet();
1789
+ return p.on("modelUpdated", () => {
1773
1790
  var u, y;
1774
- if (n.emit("inputRaw", (u = d.context) === null || u === void 0 ? void 0 : u.value, d), clearTimeout(v), v = setTimeout(n.emit, 20, "input", (y = d.context) === null || y === void 0 ? void 0 : y.value, d), o && d.context) {
1775
- const b = fe(d.context.value);
1776
- Ie(b) && fe(e.modelValue) !== b && k.add(b), n.emit("update:modelValue", b);
1791
+ if (n.emit("inputRaw", (u = p.context) === null || u === void 0 ? void 0 : u.value, p), clearTimeout(v), v = setTimeout(n.emit, 20, "input", (y = p.context) === null || y === void 0 ? void 0 : y.value, p), o && p.context) {
1792
+ const b = fe(p.context.value);
1793
+ Ie(b) && fe(e.modelValue) !== b && S.add(b), n.emit("update:modelValue", b);
1777
1794
  }
1778
- }), o && Or(Rt(e, "modelValue"), (u, y) => {
1795
+ }), o && (xr(jt(e, "modelValue"), (u, y) => {
1779
1796
  var b;
1780
- const S = fe(y);
1781
- if (Ie(S) && k.has(S))
1782
- return k.delete(S);
1783
- u.length ? (b = d.at(u)) === null || b === void 0 || b.input(y, !1) : d.input(y, !1);
1784
- }), jt(() => d.destroy()), d;
1785
- }
1786
- let jr = 1;
1787
- function Lr(e) {
1797
+ const k = fe(y);
1798
+ if (Ie(k) && S.has(k))
1799
+ return S.delete(k);
1800
+ u.length ? (b = p.at(u)) === null || b === void 0 || b.input(y, !1) : p.input(y, !1);
1801
+ }), p.value !== a && p.emit("modelUpdated")), Rt(() => p.destroy()), p;
1802
+ }
1803
+ let Lr = 1;
1804
+ function Mr(e) {
1788
1805
  return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
1789
1806
  }
1790
1807
  function T(e, n = {}) {
@@ -1793,8 +1810,8 @@ function T(e, n = {}) {
1793
1810
  ...n
1794
1811
  };
1795
1812
  let r;
1796
- if (Lr(e)) {
1797
- const i = `SchemaComponent${jr++}`;
1813
+ if (Mr(e)) {
1814
+ const i = `SchemaComponent${Lr++}`;
1798
1815
  r = q("input", () => ({
1799
1816
  $cmp: i,
1800
1817
  props: {
@@ -1803,7 +1820,7 @@ function T(e, n = {}) {
1803
1820
  })), t.library = { [i]: Mt(e) };
1804
1821
  } else
1805
1822
  typeof e == "function" ? r = e : r = q("input", () => J(e));
1806
- return t.schema = dr(r || "Schema undefined"), t;
1823
+ return t.schema = mr(r || "Schema undefined"), t;
1807
1824
  }
1808
1825
  A({
1809
1826
  name: "FormKitIcon",
@@ -1826,11 +1843,11 @@ A({
1826
1843
  const r = ie(void 0), i = de(Pt, {}), s = de(Ee, null);
1827
1844
  let o;
1828
1845
  if (e.iconLoader && typeof e.iconLoader == "function")
1829
- o = Se(e.iconLoader);
1846
+ o = ke(e.iconLoader);
1830
1847
  else if (s && ((n = s.props) === null || n === void 0 ? void 0 : n.iconLoader))
1831
- o = Se(s.props.iconLoader);
1848
+ o = ke(s.props.iconLoader);
1832
1849
  else if (e.iconLoaderUrl && typeof e.iconLoaderUrl == "function")
1833
- o = Se(o, e.iconLoaderUrl);
1850
+ o = ke(o, e.iconLoaderUrl);
1834
1851
  else {
1835
1852
  const a = (t = i == null ? void 0 : i.plugins) === null || t === void 0 ? void 0 : t.find((m) => typeof m.iconHandler == "function");
1836
1853
  a && (o = a.iconHandler);
@@ -1847,7 +1864,7 @@ A({
1847
1864
  }) : null;
1848
1865
  }
1849
1866
  });
1850
- const Mr = /* @__PURE__ */ A({
1867
+ const Tr = /* @__PURE__ */ A({
1851
1868
  __name: "PrimeCalendar",
1852
1869
  props: {
1853
1870
  context: Object
@@ -1876,13 +1893,13 @@ const Mr = /* @__PURE__ */ A({
1876
1893
  }, null, 8, ["modelValue", "id", "name", "class", "date-format", "show-icon", "icon"]);
1877
1894
  };
1878
1895
  }
1879
- }), Tr = {
1896
+ }), Fr = {
1880
1897
  key: 0,
1881
1898
  class: "formkit-prime-left"
1882
- }, Fr = {
1899
+ }, Dr = {
1883
1900
  key: 1,
1884
1901
  class: "formkit-prime-right"
1885
- }, Dr = /* @__PURE__ */ A({
1902
+ }, Wr = /* @__PURE__ */ A({
1886
1903
  __name: "PrimeCheckBox",
1887
1904
  props: {
1888
1905
  context: Object
@@ -1895,7 +1912,7 @@ const Mr = /* @__PURE__ */ A({
1895
1912
  return (i, s) => {
1896
1913
  const o = L("Checkbox");
1897
1914
  return O(), H(ct, null, [
1898
- l(t).attrs.labelLeft ? (O(), H("span", Tr, me(l(t).attrs.labelLeft), 1)) : G("", !0),
1915
+ l(t).attrs.labelLeft ? (O(), H("span", Fr, me(l(t).attrs.labelLeft), 1)) : X("", !0),
1899
1916
  Le(o, {
1900
1917
  modelValue: l(t)._value,
1901
1918
  "onUpdate:modelValue": s[0] || (s[0] = (a) => l(t)._value = a),
@@ -1906,11 +1923,11 @@ const Mr = /* @__PURE__ */ A({
1906
1923
  binary: !0,
1907
1924
  onInput: r
1908
1925
  }, null, 8, ["modelValue", "id", "name", "class", "placeholder"]),
1909
- l(t).attrs.labelRight ? (O(), H("span", Fr, me(l(t).attrs.labelRight), 1)) : G("", !0)
1926
+ l(t).attrs.labelRight ? (O(), H("span", Dr, me(l(t).attrs.labelRight), 1)) : X("", !0)
1910
1927
  ], 64);
1911
1928
  };
1912
1929
  }
1913
- }), Wr = /* @__PURE__ */ A({
1930
+ }), Ur = /* @__PURE__ */ A({
1914
1931
  __name: "PrimeChips",
1915
1932
  props: {
1916
1933
  context: Object
@@ -1938,7 +1955,7 @@ const Mr = /* @__PURE__ */ A({
1938
1955
  }, null, 8, ["modelValue", "id", "name", "class", "allow-duplicate", "add-on-blur", "max"]);
1939
1956
  };
1940
1957
  }
1941
- }), Ur = /* @__PURE__ */ A({
1958
+ }), Kr = /* @__PURE__ */ A({
1942
1959
  __name: "PrimeColorPicker",
1943
1960
  props: {
1944
1961
  context: Object
@@ -1963,7 +1980,7 @@ const Mr = /* @__PURE__ */ A({
1963
1980
  }, null, 8, ["id", "modelValue", "name", "class", "default-color"]);
1964
1981
  };
1965
1982
  }
1966
- }), Kr = /* @__PURE__ */ A({
1983
+ }), qr = /* @__PURE__ */ A({
1967
1984
  __name: "PrimeDropdown",
1968
1985
  props: {
1969
1986
  context: Object
@@ -1977,7 +1994,7 @@ const Mr = /* @__PURE__ */ A({
1977
1994
  t == null || t.node.input(s.value);
1978
1995
  }
1979
1996
  return (s, o) => {
1980
- var m, h, _, d, w, g, $, c, f, p;
1997
+ var m, h, _, p, w, g, $, c, f, d;
1981
1998
  const a = L("Dropdown");
1982
1999
  return O(), W(a, {
1983
2000
  id: l(t).id,
@@ -1986,17 +2003,17 @@ const Mr = /* @__PURE__ */ A({
1986
2003
  name: l(t).name,
1987
2004
  class: F(l(t).attrs.class),
1988
2005
  options: (h = (m = l(t)) == null ? void 0 : m.attrs) == null ? void 0 : h.options,
1989
- "option-label": (w = (d = (_ = l(t)) == null ? void 0 : _.attrs) == null ? void 0 : d.optionLabel) != null ? w : "label",
2006
+ "option-label": (w = (p = (_ = l(t)) == null ? void 0 : _.attrs) == null ? void 0 : p.optionLabel) != null ? w : "label",
1990
2007
  "option-value": (c = ($ = (g = l(t)) == null ? void 0 : g.attrs) == null ? void 0 : $.optionValue) != null ? c : "value",
1991
2008
  placeholder: l(t).attrs.placeholder,
1992
2009
  filter: (f = l(t).attrs.filter) != null ? f : !1,
1993
- "show-clear": (p = l(t).attrs.showClear) != null ? p : !1,
2010
+ "show-clear": (d = l(t).attrs.showClear) != null ? d : !1,
1994
2011
  onChange: i,
1995
2012
  onBlur: r
1996
2013
  }, null, 8, ["id", "modelValue", "name", "class", "options", "option-label", "option-value", "placeholder", "filter", "show-clear"]);
1997
2014
  };
1998
2015
  }
1999
- }), qr = /* @__PURE__ */ A({
2016
+ }), Br = /* @__PURE__ */ A({
2000
2017
  __name: "PrimeEditor",
2001
2018
  props: {
2002
2019
  context: Object
@@ -2023,7 +2040,7 @@ const Mr = /* @__PURE__ */ A({
2023
2040
  }, null, 8, ["modelValue", "id", "name", "class", "placeholder"]);
2024
2041
  };
2025
2042
  }
2026
- }), Br = /* @__PURE__ */ A({
2043
+ }), zr = /* @__PURE__ */ A({
2027
2044
  __name: "PrimeInputMask",
2028
2045
  props: {
2029
2046
  context: Object
@@ -2039,7 +2056,7 @@ const Mr = /* @__PURE__ */ A({
2039
2056
  const o = L("InputMask");
2040
2057
  return O(), W(o, {
2041
2058
  modelValue: l(t)._value,
2042
- "onUpdate:modelValue": s[0] || (s[0] = (d) => l(t)._value = d),
2059
+ "onUpdate:modelValue": s[0] || (s[0] = (p) => l(t)._value = p),
2043
2060
  id: l(t).id,
2044
2061
  name: l(t).name,
2045
2062
  class: F(l(t).attrs.class),
@@ -2052,7 +2069,7 @@ const Mr = /* @__PURE__ */ A({
2052
2069
  }, null, 8, ["modelValue", "id", "name", "class", "placeholder", "mask", "slot-char", "auto-clear", "unmask"]);
2053
2070
  };
2054
2071
  }
2055
- }), zr = /* @__PURE__ */ A({
2072
+ }), Nr = /* @__PURE__ */ A({
2056
2073
  __name: "PrimeInputNumber",
2057
2074
  props: {
2058
2075
  context: Object
@@ -2066,11 +2083,11 @@ const Mr = /* @__PURE__ */ A({
2066
2083
  t == null || t.node.input(s.value);
2067
2084
  }
2068
2085
  return (s, o) => {
2069
- var m, h, _, d, w, g, $, c, f, p, v;
2086
+ var m, h, _, p, w, g, $, c, f, d, v;
2070
2087
  const a = L("InputNumber");
2071
2088
  return O(), W(a, {
2072
2089
  modelValue: l(t)._value,
2073
- "onUpdate:modelValue": o[0] || (o[0] = (k) => l(t)._value = k),
2090
+ "onUpdate:modelValue": o[0] || (o[0] = (S) => l(t)._value = S),
2074
2091
  id: l(t).id,
2075
2092
  name: l(t).name,
2076
2093
  placeholder: l(t).attrs.placeholder,
@@ -2078,26 +2095,26 @@ const Mr = /* @__PURE__ */ A({
2078
2095
  "use-grouping": (m = l(t).attrs.useGrouping) != null ? m : !0,
2079
2096
  "min-fraction-digits": (h = l(t).attrs.minFractionDigits) != null ? h : void 0,
2080
2097
  "max-fraction-digits": (_ = l(t).attrs.maxFractionDigits) != null ? _ : void 0,
2081
- locale: (d = l(t).attrs.locale) != null ? d : void 0,
2098
+ locale: (p = l(t).attrs.locale) != null ? p : void 0,
2082
2099
  mode: (w = l(t).attrs.mode) != null ? w : void 0,
2083
2100
  currency: (g = l(t).attrs.currency) != null ? g : void 0,
2084
2101
  prefix: ($ = l(t).attrs.prefix) != null ? $ : void 0,
2085
2102
  suffix: (c = l(t).attrs.suffix) != null ? c : void 0,
2086
2103
  "show-buttons": (f = l(t).attrs.showButtons) != null ? f : void 0,
2087
- "button-layout": (p = l(t).attrs.buttonLayout) != null ? p : "stacked",
2104
+ "button-layout": (d = l(t).attrs.buttonLayout) != null ? d : "stacked",
2088
2105
  step: (v = l(t).attrs.step) != null ? v : void 0,
2089
2106
  onInput: i,
2090
2107
  onBlur: r
2091
2108
  }, null, 8, ["modelValue", "id", "name", "placeholder", "class", "use-grouping", "min-fraction-digits", "max-fraction-digits", "locale", "mode", "currency", "prefix", "suffix", "show-buttons", "button-layout", "step"]);
2092
2109
  };
2093
2110
  }
2094
- }), Nr = {
2111
+ }), Hr = {
2095
2112
  key: 0,
2096
2113
  class: "formkit-prime-left"
2097
- }, Hr = {
2114
+ }, Zr = {
2098
2115
  key: 1,
2099
2116
  class: "formkit-prime-right"
2100
- }, Zr = /* @__PURE__ */ A({
2117
+ }, Yr = /* @__PURE__ */ A({
2101
2118
  __name: "PrimeInputSwitch",
2102
2119
  props: {
2103
2120
  context: Object
@@ -2112,7 +2129,7 @@ const Mr = /* @__PURE__ */ A({
2112
2129
  var a, m;
2113
2130
  const o = L("InputSwitch");
2114
2131
  return O(), H(ct, null, [
2115
- l(t).attrs.labelLeft ? (O(), H("span", Nr, me(l(t).attrs.labelLeft), 1)) : G("", !0),
2132
+ l(t).attrs.labelLeft ? (O(), H("span", Hr, me(l(t).attrs.labelLeft), 1)) : X("", !0),
2116
2133
  Le(o, {
2117
2134
  modelValue: l(t)._value,
2118
2135
  "onUpdate:modelValue": s[0] || (s[0] = (h) => l(t)._value = h),
@@ -2123,11 +2140,11 @@ const Mr = /* @__PURE__ */ A({
2123
2140
  "false-value": (m = l(t).attrs.falseValue) != null ? m : void 0,
2124
2141
  onInput: r
2125
2142
  }, null, 8, ["modelValue", "id", "name", "class", "true-value", "false-value"]),
2126
- l(t).attrs.labelRight ? (O(), H("span", Hr, me(l(t).attrs.labelRight), 1)) : G("", !0)
2143
+ l(t).attrs.labelRight ? (O(), H("span", Zr, me(l(t).attrs.labelRight), 1)) : X("", !0)
2127
2144
  ], 64);
2128
2145
  };
2129
2146
  }
2130
- }), Yr = /* @__PURE__ */ A({
2147
+ }), Jr = /* @__PURE__ */ A({
2131
2148
  __name: "PrimeInputText",
2132
2149
  props: {
2133
2150
  context: Object
@@ -2151,10 +2168,10 @@ const Mr = /* @__PURE__ */ A({
2151
2168
  r() ? (O(), H("i", {
2152
2169
  key: 0,
2153
2170
  class: F(l(t).iconLeft)
2154
- }, null, 2)) : G("", !0),
2171
+ }, null, 2)) : X("", !0),
2155
2172
  Le(_, {
2156
2173
  modelValue: l(t)._value,
2157
- "onUpdate:modelValue": h[0] || (h[0] = (d) => l(t)._value = d),
2174
+ "onUpdate:modelValue": h[0] || (h[0] = (p) => l(t)._value = p),
2158
2175
  id: l(t).id,
2159
2176
  name: l(t).name,
2160
2177
  class: F(l(t).attrs.class),
@@ -2165,11 +2182,11 @@ const Mr = /* @__PURE__ */ A({
2165
2182
  i ? (O(), H("i", {
2166
2183
  key: 1,
2167
2184
  class: F(l(t).iconRight)
2168
- }, null, 2)) : G("", !0)
2185
+ }, null, 2)) : X("", !0)
2169
2186
  ], 2);
2170
2187
  };
2171
2188
  }
2172
- }), Jr = /* @__PURE__ */ A({
2189
+ }), Qr = /* @__PURE__ */ A({
2173
2190
  __name: "PrimeInputTextArea",
2174
2191
  props: {
2175
2192
  context: Object
@@ -2198,7 +2215,7 @@ const Mr = /* @__PURE__ */ A({
2198
2215
  }, null, 8, ["modelValue", "id", "name", "class", "placeholder", "rows"]);
2199
2216
  };
2200
2217
  }
2201
- }), Qr = /* @__PURE__ */ A({
2218
+ }), Gr = /* @__PURE__ */ A({
2202
2219
  __name: "PrimeKnob",
2203
2220
  props: {
2204
2221
  context: Object
@@ -2209,18 +2226,18 @@ const Mr = /* @__PURE__ */ A({
2209
2226
  t == null || t.node.input(i), t == null || t.handlers.blur(i);
2210
2227
  }
2211
2228
  return (i, s) => {
2212
- var a, m, h, _, d, w, g, $, c, f;
2229
+ var a, m, h, _, p, w, g, $, c, f;
2213
2230
  const o = L("Knob");
2214
2231
  return O(), W(o, {
2215
2232
  modelValue: l(t)._value,
2216
- "onUpdate:modelValue": s[0] || (s[0] = (p) => l(t)._value = p),
2233
+ "onUpdate:modelValue": s[0] || (s[0] = (d) => l(t)._value = d),
2217
2234
  id: l(t).id,
2218
2235
  name: l(t).name,
2219
2236
  min: (a = l(t).attrs.min) != null ? a : 0,
2220
2237
  max: (m = l(t).attrs.max) != null ? m : 100,
2221
2238
  step: (h = l(t).attrs.step) != null ? h : void 0,
2222
2239
  size: (_ = l(t).attrs.max) != null ? _ : 100,
2223
- "stroke-width": (d = l(t).attrs.strokeWidth) != null ? d : 14,
2240
+ "stroke-width": (p = l(t).attrs.strokeWidth) != null ? p : 14,
2224
2241
  "show-value": (w = l(t).attrs.showValue) != null ? w : !0,
2225
2242
  "value-color": (g = l(t).attrs.valueColor) != null ? g : void 0,
2226
2243
  "range-color": ($ = l(t).attrs.rangeColor) != null ? $ : void 0,
@@ -2230,7 +2247,7 @@ const Mr = /* @__PURE__ */ A({
2230
2247
  }, null, 8, ["modelValue", "id", "name", "min", "max", "step", "size", "stroke-width", "show-value", "value-color", "range-color", "text-color", "value-template"]);
2231
2248
  };
2232
2249
  }
2233
- }), Gr = /* @__PURE__ */ A({
2250
+ }), Xr = /* @__PURE__ */ A({
2234
2251
  __name: "PrimeMultiSelect",
2235
2252
  props: {
2236
2253
  context: Object
@@ -2242,7 +2259,7 @@ const Mr = /* @__PURE__ */ A({
2242
2259
  t == null || t.node.input((s = n.context) == null ? void 0 : s._value);
2243
2260
  }
2244
2261
  return (i, s) => {
2245
- var a, m, h, _, d, w, g, $, c;
2262
+ var a, m, h, _, p, w, g, $, c;
2246
2263
  const o = L("MultiSelect");
2247
2264
  return O(), W(o, {
2248
2265
  id: l(t).id,
@@ -2251,7 +2268,7 @@ const Mr = /* @__PURE__ */ A({
2251
2268
  name: l(t).name,
2252
2269
  class: F(l(t).attrs.class),
2253
2270
  options: (m = (a = l(t)) == null ? void 0 : a.attrs) == null ? void 0 : m.options,
2254
- "option-label": (d = (_ = (h = l(t)) == null ? void 0 : h.attrs) == null ? void 0 : _.optionLabel) != null ? d : "label",
2271
+ "option-label": (p = (_ = (h = l(t)) == null ? void 0 : h.attrs) == null ? void 0 : _.optionLabel) != null ? p : "label",
2255
2272
  "option-value": ($ = (g = (w = l(t)) == null ? void 0 : w.attrs) == null ? void 0 : g.optionValue) != null ? $ : "value",
2256
2273
  placeholder: l(t).attrs.placeholder,
2257
2274
  filter: (c = l(t).attrs.filter) != null ? c : !1,
@@ -2259,7 +2276,7 @@ const Mr = /* @__PURE__ */ A({
2259
2276
  }, null, 8, ["id", "modelValue", "name", "class", "options", "option-label", "option-value", "placeholder", "filter"]);
2260
2277
  };
2261
2278
  }
2262
- }), Xr = /* @__PURE__ */ A({
2279
+ }), ei = /* @__PURE__ */ A({
2263
2280
  __name: "PrimeListbox",
2264
2281
  props: {
2265
2282
  context: Object
@@ -2271,18 +2288,18 @@ const Mr = /* @__PURE__ */ A({
2271
2288
  t == null || t.node.input((s = n.context) == null ? void 0 : s._value);
2272
2289
  }
2273
2290
  return (i, s) => {
2274
- var a, m, h, _, d, w, g, $, c, f;
2291
+ var a, m, h, _, p, w, g, $, c, f;
2275
2292
  const o = L("Listbox");
2276
2293
  return O(), W(o, {
2277
2294
  id: l(t).id,
2278
2295
  modelValue: l(t)._value,
2279
- "onUpdate:modelValue": s[0] || (s[0] = (p) => l(t)._value = p),
2296
+ "onUpdate:modelValue": s[0] || (s[0] = (d) => l(t)._value = d),
2280
2297
  name: l(t).name,
2281
2298
  class: F(l(t).attrs.class),
2282
2299
  style: Ft(l(t).attrs.style),
2283
2300
  "list-style": l(t).attrs.listStyle,
2284
2301
  options: (m = (a = l(t)) == null ? void 0 : a.attrs) == null ? void 0 : m.options,
2285
- "option-label": (d = (_ = (h = l(t)) == null ? void 0 : h.attrs) == null ? void 0 : _.optionLabel) != null ? d : "label",
2302
+ "option-label": (p = (_ = (h = l(t)) == null ? void 0 : h.attrs) == null ? void 0 : _.optionLabel) != null ? p : "label",
2286
2303
  "option-value": ($ = (g = (w = l(t)) == null ? void 0 : w.attrs) == null ? void 0 : g.optionValue) != null ? $ : "value",
2287
2304
  "filter-placeholder": l(t).attrs.filterPlaceholder,
2288
2305
  filter: (c = l(t).attrs.filter) != null ? c : !1,
@@ -2291,7 +2308,7 @@ const Mr = /* @__PURE__ */ A({
2291
2308
  }, null, 8, ["id", "modelValue", "name", "class", "style", "list-style", "options", "option-label", "option-value", "filter-placeholder", "filter", "multiple"]);
2292
2309
  };
2293
2310
  }
2294
- }), ei = /* @__PURE__ */ A({
2311
+ }), ti = /* @__PURE__ */ A({
2295
2312
  __name: "PrimePassword",
2296
2313
  props: {
2297
2314
  context: Object
@@ -2305,7 +2322,7 @@ const Mr = /* @__PURE__ */ A({
2305
2322
  t == null || t.node.input(s.target.value);
2306
2323
  }
2307
2324
  return (s, o) => {
2308
- var m, h, _, d;
2325
+ var m, h, _, p;
2309
2326
  const a = L("Password");
2310
2327
  return O(), W(a, {
2311
2328
  modelValue: l(t)._value,
@@ -2315,13 +2332,13 @@ const Mr = /* @__PURE__ */ A({
2315
2332
  class: F(l(t).attrs.class),
2316
2333
  placeholder: l(t).attrs.placeholder,
2317
2334
  feedback: (h = (m = l(t)) == null ? void 0 : m.feedback) != null ? h : !0,
2318
- "toggle-mask": (d = (_ = l(t)) == null ? void 0 : _.toggleMask) != null ? d : !1,
2335
+ "toggle-mask": (p = (_ = l(t)) == null ? void 0 : _.toggleMask) != null ? p : !1,
2319
2336
  onInput: i,
2320
2337
  onBlur: r
2321
2338
  }, null, 8, ["modelValue", "id", "name", "class", "placeholder", "feedback", "toggle-mask"]);
2322
2339
  };
2323
2340
  }
2324
- }), ti = /* @__PURE__ */ A({
2341
+ }), ni = /* @__PURE__ */ A({
2325
2342
  __name: "PrimeRating",
2326
2343
  props: {
2327
2344
  context: Object
@@ -2337,7 +2354,7 @@ const Mr = /* @__PURE__ */ A({
2337
2354
  const o = L("Rating");
2338
2355
  return O(), W(o, {
2339
2356
  modelValue: l(t)._value,
2340
- "onUpdate:modelValue": s[0] || (s[0] = (d) => l(t)._value = d),
2357
+ "onUpdate:modelValue": s[0] || (s[0] = (p) => l(t)._value = p),
2341
2358
  id: l(t).id,
2342
2359
  name: l(t).name,
2343
2360
  disabled: (a = l(t).attrs.disabled) != null ? a : !1,
@@ -2348,7 +2365,7 @@ const Mr = /* @__PURE__ */ A({
2348
2365
  }, null, 8, ["modelValue", "id", "name", "disabled", "readonly", "stars", "cancel"]);
2349
2366
  };
2350
2367
  }
2351
- }), ni = /* @__PURE__ */ A({
2368
+ }), ri = /* @__PURE__ */ A({
2352
2369
  __name: "PrimeSlider",
2353
2370
  props: {
2354
2371
  context: Object
@@ -2363,7 +2380,7 @@ const Mr = /* @__PURE__ */ A({
2363
2380
  const o = L("Slider");
2364
2381
  return O(), W(o, {
2365
2382
  modelValue: l(t)._value,
2366
- "onUpdate:modelValue": s[0] || (s[0] = (d) => l(t)._value = d),
2383
+ "onUpdate:modelValue": s[0] || (s[0] = (p) => l(t)._value = p),
2367
2384
  id: l(t).id,
2368
2385
  name: l(t).name,
2369
2386
  min: (a = l(t).attrs.min) != null ? a : 0,
@@ -2374,7 +2391,7 @@ const Mr = /* @__PURE__ */ A({
2374
2391
  }, null, 8, ["modelValue", "id", "name", "min", "max", "step", "range"]);
2375
2392
  };
2376
2393
  }
2377
- }), ri = /* @__PURE__ */ A({
2394
+ }), ii = /* @__PURE__ */ A({
2378
2395
  __name: "PrimeToggleButton",
2379
2396
  props: {
2380
2397
  context: Object
@@ -2391,7 +2408,7 @@ const Mr = /* @__PURE__ */ A({
2391
2408
  return O(), W(o, {
2392
2409
  id: l(t).id,
2393
2410
  modelValue: l(t)._value,
2394
- "onUpdate:modelValue": s[0] || (s[0] = (d) => l(t)._value = d),
2411
+ "onUpdate:modelValue": s[0] || (s[0] = (p) => l(t)._value = p),
2395
2412
  "input-class": l(t).attrs.inputClass,
2396
2413
  "input-style": l(t).attrs.inputStyle,
2397
2414
  "on-label": (a = l(t).attrs.onLabel) != null ? a : "Yes",
@@ -2402,80 +2419,80 @@ const Mr = /* @__PURE__ */ A({
2402
2419
  }, null, 8, ["id", "modelValue", "input-class", "input-style", "on-label", "off-label", "on-icon", "off-icon"]);
2403
2420
  };
2404
2421
  }
2405
- }), ii = T(Yr, {
2422
+ }), si = T(Jr, {
2406
2423
  props: ["iconRight", "iconLeft"]
2407
- }), si = T(zr, {
2424
+ }), oi = T(Nr, {
2408
2425
  props: ["iconRight", "iconLeft"]
2409
- }), oi = T(Br, {
2426
+ }), li = T(zr, {
2410
2427
  props: []
2411
- }), li = T(ei, {
2428
+ }), ai = T(ti, {
2412
2429
  props: ["feedback", "toggleMask"]
2413
- }), ai = T(Jr, {
2430
+ }), ui = T(Qr, {
2414
2431
  props: ["rows"]
2415
- }), ui = T(Dr, {
2432
+ }), fi = T(Wr, {
2416
2433
  props: []
2417
- }), fi = T(Zr, {
2434
+ }), ci = T(Yr, {
2418
2435
  props: []
2419
- }), ci = T(qr, {
2436
+ }), pi = T(Br, {
2420
2437
  props: []
2421
- }), pi = T(Kr, {
2422
- props: []
2423
- }), di = T(Gr, {
2438
+ }), di = T(qr, {
2424
2439
  props: []
2425
2440
  }), mi = T(Xr, {
2426
2441
  props: []
2427
- }), yi = T(Mr, {
2442
+ }), yi = T(ei, {
2443
+ props: []
2444
+ }), hi = T(Tr, {
2428
2445
  props: []
2429
- }), hi = T(ni, {
2446
+ }), _i = T(ri, {
2430
2447
  props: []
2431
- }), _i = T(ti, {
2448
+ }), gi = T(ni, {
2432
2449
  props: []
2433
- }), gi = T(Wr, {
2450
+ }), vi = T(Ur, {
2434
2451
  props: []
2435
- }), vi = T(Qr, {
2452
+ }), bi = T(Gr, {
2436
2453
  props: []
2437
- }), bi = T(Ur, {
2454
+ }), $i = T(Kr, {
2438
2455
  props: []
2439
- }), $i = T(ri, {
2456
+ }), wi = T(ii, {
2440
2457
  props: []
2441
2458
  }), Si = {
2442
- primeInputText: ii,
2443
- primeInputNumber: si,
2444
- primeInputMask: oi,
2445
- primePassword: li,
2446
- primeCheckBox: ui,
2447
- primeInputSwitch: fi,
2448
- primeInputTextArea: ai,
2449
- primeEditor: ci,
2450
- primeDropdown: pi,
2451
- primeMultiSelect: di,
2452
- primeCalendar: yi,
2453
- primeSlider: hi,
2454
- primeChips: gi,
2455
- primeKnob: vi,
2456
- primeRating: _i,
2457
- primeColorPicker: bi,
2458
- primeToggleButton: $i,
2459
- primeListbox: mi
2459
+ primeInputText: si,
2460
+ primeInputNumber: oi,
2461
+ primeInputMask: li,
2462
+ primePassword: ai,
2463
+ primeCheckBox: fi,
2464
+ primeInputSwitch: ci,
2465
+ primeInputTextArea: ui,
2466
+ primeEditor: pi,
2467
+ primeDropdown: di,
2468
+ primeMultiSelect: mi,
2469
+ primeCalendar: hi,
2470
+ primeSlider: _i,
2471
+ primeChips: vi,
2472
+ primeKnob: bi,
2473
+ primeRating: gi,
2474
+ primeColorPicker: $i,
2475
+ primeToggleButton: wi,
2476
+ primeListbox: yi
2460
2477
  };
2461
2478
  export {
2462
- yi as primeCalendarDefinition,
2463
- ui as primeCheckBoxDefinition,
2464
- gi as primeChipsDefinition,
2465
- bi as primeColorPickerDefinition,
2466
- pi as primeDropdownDefinition,
2467
- ci as primeEditorDefinition,
2468
- oi as primeInputMaskDefinition,
2469
- si as primeInputNumberDefinition,
2470
- fi as primeInputSwitchDefinition,
2471
- ai as primeInputTextAreaDefinition,
2472
- ii as primeInputTextDefinition,
2479
+ hi as primeCalendarDefinition,
2480
+ fi as primeCheckBoxDefinition,
2481
+ vi as primeChipsDefinition,
2482
+ $i as primeColorPickerDefinition,
2483
+ di as primeDropdownDefinition,
2484
+ pi as primeEditorDefinition,
2485
+ li as primeInputMaskDefinition,
2486
+ oi as primeInputNumberDefinition,
2487
+ ci as primeInputSwitchDefinition,
2488
+ ui as primeInputTextAreaDefinition,
2489
+ si as primeInputTextDefinition,
2473
2490
  Si as primeInputs,
2474
- vi as primeKnobDefinition,
2475
- mi as primeListboxDefinition,
2476
- di as primeMultiSelectDefinition,
2477
- li as primePasswordDefinition,
2478
- _i as primeRatingDefinition,
2479
- hi as primeSliderDefinition,
2480
- $i as primeToggleButtonDefinition
2491
+ bi as primeKnobDefinition,
2492
+ yi as primeListboxDefinition,
2493
+ mi as primeMultiSelectDefinition,
2494
+ ai as primePasswordDefinition,
2495
+ gi as primeRatingDefinition,
2496
+ _i as primeSliderDefinition,
2497
+ wi as primeToggleButtonDefinition
2481
2498
  };