@sfxcode/formkit-primevue 1.1.4 → 1.1.6

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 at, 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 kt(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 st(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 dt(e) {
57
+ return st(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 (st(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 !(st(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++) {
@@ -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,36 +160,51 @@ 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 pt(e) {
165
190
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]/g, " ").trim().replace(/\s+/g, "-");
166
191
  }
167
- function pt() {
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
+ }
207
+ function mt() {
168
208
  const e = [];
169
209
  let i = 0;
170
210
  const t = (l) => e.push(l), n = (l) => {
@@ -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
- const mt = pt();
234
- mt((e, i) => {
273
+ const bt = mt();
274
+ bt((e, i) => (e.message || (e.message = `E${e.code}`), i(e)));
275
+ const yt = mt();
276
+ yt((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
+ yt.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(bt.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,
@@ -254,31 +296,31 @@ function ae(e, i) {
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
298
  const Vt = {
257
- apply: Dn,
258
- set: Rn,
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(Vt, _) ? Vt[_].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: pt(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
417
  i = t, t.on("message-added.deep", It(e, 1)), t.on("message-removed.deep", It(e, -1));
376
418
  },
377
419
  merge: (t) => Lt(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
423
  unmerge: (t) => Lt(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,12 +442,12 @@ 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
  }
@@ -413,7 +455,7 @@ function It(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
  }
@@ -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 vt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), ht = Kt(), Qn = [];
474
+ function Xn(e) {
475
+ e.props.id && (vt.set(e.props.id, e), Te.set(e, e.props.id), ht(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), vt.delete(i), ht(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 vt.get(e);
453
495
  }
454
- function Yn(e, i) {
455
- Kn.push(yt.on(e, i));
496
+ function ei(e, i) {
497
+ Qn.push(ht.on(e, i));
456
498
  }
457
- function Ot(e, i, t) {
499
+ function At(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,236 +518,292 @@ 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 && !kt(i) && (t.props.initial = dt(l) ? xe(l) : l), t.input(n(t), !1), t.walk((s) => s.input(n(s), !1)), t.input(kt(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"), rt = Symbol("removed"), ot = 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(_t),
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) {
550
- return e.has(t) || e.set(t, pt()), e.get(t);
593
+ return e.has(t) || e.set(t, mt()), e.get(t);
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 === rt ? [] : t === ot && typeof n == "number" ? e._value.splice(n, 1) : [t];
628
+ e._value.splice(i, t === ot || n === Jt ? 0 : 1, ...l);
586
629
  return;
587
630
  }
588
- t !== at ? e._value[i] = t : delete e._value[i];
631
+ t !== rt ? 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 || !dt(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: rt
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 _t(e, i, t, n = !0, l = !0) {
780
+ return Array.isArray(t) || t instanceof Set ? (t.forEach((s) => _t(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: ot, 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), At(t, l, s), t.walk((o) => At(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
+ _t(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);
1041
+ return qi(n, i);
917
1042
  }
918
- function rt(e) {
919
- return typeof e != "string" && E(e, "$el");
1043
+ function ut(e) {
1044
+ return typeof e != "string" && j(e, "$el");
920
1045
  }
921
- function ot(e) {
922
- return typeof e != "string" && E(e, "$cmp");
1046
+ function ft(e) {
1047
+ return typeof e != "string" && j(e, "$cmp");
923
1048
  }
924
- function pe(e) {
925
- return !e || typeof e == "string" ? !1 : E(e, "if") && E(e, "then");
1049
+ function be(e) {
1050
+ return !e || typeof e == "string" ? !1 : j(e, "if") && j(e, "then");
926
1051
  }
927
- function Bi(e) {
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 Ot = "0.17.3";
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;
1254
+ }
1255
+ function gt(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)));
1257
+ }
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 (ut(r) || ft(r)) && (r.meta || (r.meta = { section: e }), n.length && !r.children && (r.children = [
1263
+ ...n.map((o) => typeof o == "string" ? o : o(s))
1264
+ ]), ut(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)];
1129
1278
  }
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)));
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);
1132
1284
  }
1133
- const re = k("outer", () => ({
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
+ })), Pt = 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-${pt(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,
@@ -1429,17 +1579,22 @@ function je(e, i) {
1429
1579
  }));
1430
1580
  };
1431
1581
  }
1432
- const Pt = typeof window < "u";
1433
- function fn(e) {
1582
+ const et = typeof window < "u";
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), et && (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("reset", () => {
1591
+ if (e.props.id && et) {
1592
+ const i = document.getElementById(e.props.id);
1593
+ i && (i.value = "");
1594
+ }
1595
+ }), e.on("created", () => {
1441
1596
  Array.isArray(e.value) || e.input([], !1), e.context && (e.context.handlers.resetFiles = (i) => {
1442
- if (i.preventDefault(), e.input([]), e.props.id && Pt) {
1597
+ if (i.preventDefault(), e.input([]), e.props.id && et) {
1443
1598
  const t = document.getElementById(e.props.id);
1444
1599
  t && (t.value = "");
1445
1600
  }
@@ -1457,15 +1612,15 @@ function sl(e) {
1457
1612
  });
1458
1613
  });
1459
1614
  }
1460
- async function rl(e, i) {
1615
+ async function yl(e, i) {
1461
1616
  i.preventDefault(), await e.settled;
1462
- const t = (n) => n.store.set(ae({
1617
+ const t = (n) => n.store.set(re({
1463
1618
  key: "submitted",
1464
1619
  value: !0,
1465
1620
  visible: !1
1466
1621
  }));
1467
1622
  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({
1623
+ typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && e.store.set(re({
1469
1624
  blocking: !1,
1470
1625
  key: "incomplete",
1471
1626
  meta: {
@@ -1477,10 +1632,10 @@ async function rl(e, i) {
1477
1632
  value: e.props.incompleteMessage || "Form incomplete."
1478
1633
  }));
1479
1634
  else if (typeof e.props.onSubmit == "function") {
1480
- const n = e.props.onSubmit(e.hook.submit.dispatch(Ve(e.value)), e);
1635
+ const n = e.props.onSubmit(e.hook.submit.dispatch(Pe(e.value)), e);
1481
1636
  if (n instanceof Promise) {
1482
1637
  const l = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
1483
- l && (e.props.disabled = !0), e.store.set(ae({
1638
+ l && (e.props.disabled = !0), e.store.set(re({
1484
1639
  key: "loading",
1485
1640
  value: !0,
1486
1641
  visible: !1
@@ -1489,47 +1644,50 @@ async function rl(e, i) {
1489
1644
  } else
1490
1645
  i.target instanceof HTMLFormElement && i.target.submit();
1491
1646
  }
1492
- function ol(e) {
1647
+ function vl(e) {
1493
1648
  e.props.isForm = !0, e.on("created", () => {
1494
1649
  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);
1650
+ !((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
1651
  }), e.on("settled:blocking", () => e.store.remove("incomplete"));
1497
1652
  }
1498
- function ul(e) {
1653
+ function hl(e) {
1499
1654
  e.props.ignore === void 0 && (e.props.ignore = !0, e.parent = null);
1500
1655
  }
1501
- function fl(e) {
1656
+ function _l(e) {
1502
1657
  e.on("created", () => {
1503
1658
  e.context && (e.context.initialValue = e.value || "");
1504
1659
  });
1505
1660
  }
1506
- function cl(e, i) {
1507
- i.target instanceof HTMLInputElement && e.input(ve(e.props.options, i.target.value));
1661
+ function gl(e, i) {
1662
+ i.target instanceof HTMLInputElement && e.input(ge(e.props.options, i.target.value));
1508
1663
  }
1509
- function pl(e, i) {
1664
+ function $l(e, i) {
1510
1665
  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);
1666
+ 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
1667
  }
1513
- function dl(e) {
1668
+ function wl(e) {
1514
1669
  e.on("created", () => {
1515
1670
  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));
1671
+ Array.isArray(e.props.options) || je(350, {
1672
+ node: e,
1673
+ inputType: "radio"
1674
+ }), !((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));
1675
+ }), e.hook.prop(fn(e));
1518
1676
  }
1519
- function ml(e, i) {
1677
+ function kl(e, i) {
1520
1678
  e.context && e.context.value;
1521
1679
  const t = "__original" in i ? i.__original : i.value;
1522
1680
  function n() {
1523
1681
  return !e.props.options.some((l) => ("__original" in l ? l.__original : l.value) === null);
1524
1682
  }
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);
1683
+ 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
1684
  }
1527
- async function bl(e, i) {
1685
+ async function Cl(e, i) {
1528
1686
  var t;
1529
1687
  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
1688
  }
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);
1689
+ function Sl(e, i) {
1690
+ 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
1691
  e.input(n);
1534
1692
  }
1535
1693
  function Mt(e, i) {
@@ -1546,167 +1704,139 @@ function Mt(e, i) {
1546
1704
  ...e
1547
1705
  ];
1548
1706
  }
1549
- function vl(e) {
1707
+ function Vl(e) {
1550
1708
  e.on("created", () => {
1551
1709
  var i, t, n;
1552
- const l = Q((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
1710
+ const l = Y((i = e.props.attrs) === null || i === void 0 ? void 0 : i.multiple);
1553
1711
  !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
1712
  value: e._value
1555
1713
  }), e.on("input", ({ payload: s }) => {
1556
1714
  e.props.attrs = Object.assign({}, e.props.attrs, {
1557
1715
  value: s
1558
1716
  });
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) => {
1717
+ })), !((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
1718
  if (!Array.isArray(e.props.options))
1561
1719
  return !1;
1562
1720
  const o = e.props.options.some((u) => {
1563
1721
  if (u.attrs && "data-is-placeholder" in u.attrs)
1564
1722
  return !1;
1565
- const b = "__original" in u ? u.__original : u.value;
1566
- return Oe(s, b);
1723
+ const d = "__original" in u ? u.__original : u.value;
1724
+ return ue(s, d);
1567
1725
  });
1568
1726
  return r && !o ? !0 : void 0;
1569
1727
  });
1570
1728
  }), e.hook.input((i, t) => {
1571
1729
  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);
1730
+ 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
1731
  });
1574
1732
  }
1575
- function de(e, i) {
1733
+ function ve(e, i) {
1576
1734
  return (t) => {
1577
1735
  t.props[`${e}Icon`] === void 0 && (t.props[`${e}Icon`] = `default:${i}`);
1578
1736
  };
1579
1737
  }
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);
1588
- }
1589
- function hl(e) {
1590
- return re(_e(xe("$label"), te(G(), e(), X())), ee("$help"), ne(ie("$message.value")));
1591
- }
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
- };
1738
+ function ct(e) {
1739
+ return !!(be(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
1609
1740
  }
1610
- function cn(e) {
1611
- return (i) => [e(i)];
1741
+ function Il(e) {
1742
+ return fe(we(Ee("$label"), te(X(), e(), G())), ee("$help"), ne(ie("$message.value")));
1612
1743
  }
1613
- function J(e, i, t) {
1744
+ function Q(e, i, t) {
1614
1745
  const n = (l) => {
1615
1746
  const s = i(l);
1616
- if (t || Ne(s) && "if" in s || ut(s)) {
1747
+ if (t || Ke(s) && "if" in s || ct(s)) {
1617
1748
  const r = {
1618
1749
  if: e,
1619
1750
  then: s
1620
1751
  };
1621
1752
  return t && (r.else = t(l)), r;
1622
1753
  } else
1623
- ut(s) ? Object.assign(s.else, { if: e }) : Ne(s) && Object.assign(s, { if: e });
1754
+ ct(s) ? Object.assign(s.else, { if: e }) : Ke(s) && Object.assign(s, { if: e });
1624
1755
  return s;
1625
1756
  };
1626
- return n._s = Ze(), n;
1757
+ return n._s = Je(), n;
1627
1758
  }
1628
- function Te(e, i) {
1759
+ function Ie(e, i) {
1629
1760
  const t = (n) => {
1630
1761
  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] : {});
1762
+ return ct(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
1763
  };
1633
1764
  return t._s = e._s, t;
1634
1765
  }
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(
1766
+ fe(ne(ie("$message.value")), we(Xi(z("prefix"), X(), Gi("$label || $ui.submit.value"), G(), z("suffix"))), ee("$help")), Be("submit");
1767
+ fe(
1768
+ Q(
1641
1769
  "$options == undefined",
1642
1770
  /**
1643
1771
  * Single checkbox structure.
1644
1772
  */
1645
- Ue(te(G(), We(), ze(W("decorator")), X()), Te(qe("$label"), {
1773
+ Ne(te(X(), We(), qe(z("decorator")), G()), Ie(He("$label"), {
1646
1774
  if: "$label"
1647
1775
  })),
1648
1776
  /**
1649
1777
  * Multi checkbox structure.
1650
1778
  */
1651
- tn(nn("$label"), ee("$help"), an(ln(Ue(te(G(), Te(We(), {
1779
+ nn(ln("$label"), ee("$help"), sn(an(Ne(te(X(), Ie(We(), {
1652
1780
  bind: "$option.attrs",
1653
1781
  attrs: {
1654
1782
  id: "$option.attrs.id",
1655
1783
  value: "$option.value",
1656
1784
  checked: "$fns.isChecked($option.value)"
1657
1785
  }
1658
- }), ze(W("decorator")), X()), Te(qe("$option.label"), {
1786
+ }), qe(z("decorator")), G()), Ie(He("$option.label"), {
1659
1787
  if: "$option.label"
1660
- })), sn("$option.help"))))
1788
+ })), rn("$option.help"))))
1661
1789
  ),
1662
1790
  // Help text only goes under the input when it is a single.
1663
- J("$options == undefined && $help", ee("$help")),
1791
+ Q("$options == undefined && $help", ee("$help")),
1664
1792
  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(
1793
+ ), ve("decorator", "checkboxDecorator");
1794
+ fe(we(Ee("$label"), te(z("prefix", "label"), X(), el(), nl(tl(z("fileItem"), il("$file.name"), Q("$value.length === 1", Pt(z("fileRemove"), "$ui.remove.value")))), Q("$value.length > 1", Pt("$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");
1795
+ al("$slots.default", ne(ie("$message.value")), sl(rl()));
1796
+ un("$slots.default");
1797
+ on();
1798
+ un("$slots.default");
1799
+ fe(
1800
+ Q(
1673
1801
  "$options == undefined",
1674
1802
  /**
1675
1803
  * Single radio structure.
1676
1804
  */
1677
- Ue(te(G(), We(), ze(W("decorator")), X()), J("$label", qe("$label"))),
1805
+ Ne(te(X(), We(), qe(z("decorator")), G()), Q("$label", He("$label"))),
1678
1806
  /**
1679
1807
  * Multi radio structure.
1680
1808
  */
1681
- tn(nn("$label"), ee("$help"), an(ln(Ue(te(G(), Te(We(), {
1809
+ nn(ln("$label"), ee("$help"), sn(an(Ne(te(X(), Ie(We(), {
1682
1810
  bind: "$option.attrs",
1683
1811
  attrs: {
1684
1812
  id: "$option.attrs.id",
1685
1813
  value: "$option.value",
1686
1814
  checked: "$fns.isChecked($option.value)"
1687
1815
  }
1688
- }), ze(W("decorator")), X()), J("$option.label", qe("$option.label"))), sn("$option.help"))))
1816
+ }), qe(z("decorator")), G()), Ie(He("$option.label"), {
1817
+ if: "$option.label"
1818
+ })), rn("$option.help"))))
1689
1819
  ),
1690
1820
  // Help text only goes under the input when it is a single.
1691
- J("$options === undefined && $help", ee("$help")),
1821
+ Q("$options == undefined && $help", ee("$help")),
1692
1822
  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({
1823
+ ), ve("decorator", "radioDecorator");
1824
+ 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");
1825
+ fe(we(Ee("$label"), te(z("prefix", "label"), X(), cl(), G(), z("suffix"))), ee("$help"), ne(ie("$message.value")));
1826
+ fe(we(Ee("$label"), te(z("prefix", "label"), X(), on(), G(), z("suffix"))), ee("$help"), ne(ie("$message.value")));
1827
+ re({
1698
1828
  type: "state",
1699
1829
  blocking: !0,
1700
1830
  visible: !1,
1701
1831
  value: !0,
1702
1832
  key: "validating"
1703
1833
  });
1704
- let Fe;
1705
- const gl = new Promise((e) => {
1834
+ let ze;
1835
+ const Ll = new Promise((e) => {
1706
1836
  }), Ge = typeof window < "u" && typeof fetch < "u";
1707
- Fe = Ge ? getComputedStyle(document.documentElement) : void 0;
1708
- const ke = {}, Xe = {};
1709
- function et(e, i) {
1837
+ ze = Ge ? getComputedStyle(document.documentElement) : void 0;
1838
+ const Ve = {}, tt = {};
1839
+ function nt(e, i) {
1710
1840
  return (t) => {
1711
1841
  if (typeof t == "boolean")
1712
1842
  return;
@@ -1716,33 +1846,33 @@ function et(e, i) {
1716
1846
  return;
1717
1847
  const n = t.startsWith("default:");
1718
1848
  t = n ? t.split(":")[1] : t;
1719
- const l = t in ke;
1849
+ const l = t in Ve;
1720
1850
  let s;
1721
1851
  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));
1852
+ return Ve[t];
1853
+ if (!tt[t]) {
1854
+ if (s = Al(t), s = Ge && typeof s > "u" ? Promise.resolve(s) : s, s instanceof Promise)
1855
+ tt[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
1856
  else if (typeof s == "string")
1727
- return ke[n ? `default:${t}` : t] = s, s;
1857
+ return Ve[n ? `default:${t}` : t] = s, s;
1728
1858
  }
1729
- return Xe[t];
1859
+ return tt[t];
1730
1860
  };
1731
1861
  }
1732
- function $l(e) {
1862
+ function Al(e) {
1733
1863
  if (Ge)
1734
- return gl.then(() => wl(e));
1864
+ return Ll.then(() => Ol(e));
1735
1865
  }
1736
- function wl(e) {
1737
- const i = Fe == null ? void 0 : Fe.getPropertyValue(`--fk-icon-${e}`);
1866
+ function Ol(e) {
1867
+ const i = ze == null ? void 0 : ze.getPropertyValue(`--fk-icon-${e}`);
1738
1868
  if (i) {
1739
1869
  const t = atob(i);
1740
1870
  if (t.startsWith("<svg"))
1741
- return ke[e] = t, t;
1871
+ return Ve[e] = t, t;
1742
1872
  }
1743
1873
  }
1744
- function kl(e, i) {
1745
- const t = At.startsWith("__") ? "latest" : At, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
1874
+ function Pl(e, i) {
1875
+ const t = Ot.startsWith("__") ? "latest" : Ot, n = typeof i == "function" ? i(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${t}/dist/icons/${e}.svg`;
1746
1876
  if (Ge)
1747
1877
  return fetch(`${n}`).then(async (l) => {
1748
1878
  const s = await l.text();
@@ -1752,8 +1882,8 @@ function kl(e, i) {
1752
1882
  console.error(l);
1753
1883
  });
1754
1884
  }
1755
- let _t = !1;
1756
- const Rt = {
1885
+ let $t = !1;
1886
+ const jt = {
1757
1887
  /**
1758
1888
  * FormKit errors:
1759
1889
  */
@@ -1775,7 +1905,7 @@ const Rt = {
1775
1905
  */
1776
1906
  600: ({ data: e }) => `Unknown input type${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} ("${e.name}")`,
1777
1907
  601: ({ data: e }) => `Input definition${typeof e.props.type == "string" ? ' "' + e.props.type + '"' : ""} is missing a schema or component property (${e.name}).`
1778
- }, jt = {
1908
+ }, Et = {
1779
1909
  /**
1780
1910
  * Core warnings:
1781
1911
  */
@@ -1785,7 +1915,7 @@ const Rt = {
1785
1915
  /**
1786
1916
  * Input specific warnings:
1787
1917
  */
1788
- 350: ({ data: e }) => `Invalid options prop for radio input (${e.name}). See https://formkit.com/inputs/radio`,
1918
+ 350: ({ data: { node: e, inputType: i } }) => `Invalid options prop for ${e.name} input (${i}). See https://formkit.com/inputs/${i}`,
1789
1919
  /**
1790
1920
  * Vue warnings:
1791
1921
  */
@@ -1796,41 +1926,46 @@ const Rt = {
1796
1926
  * Deprecation warnings:
1797
1927
  */
1798
1928
  800: ({ data: e }) => `${e} is deprecated.`
1799
- }, Cl = (e, i) => {
1800
- if (e.code in Rt) {
1801
- const t = Rt[e.code];
1929
+ }, xl = (e, i) => {
1930
+ if (e.code in jt) {
1931
+ const t = jt[e.code];
1802
1932
  e.message = typeof t == "function" ? t(e) : t;
1803
1933
  }
1804
1934
  return i(e);
1805
1935
  };
1806
- _t || dt(Cl);
1807
- const Sl = (e, i) => {
1808
- if (e.code in jt) {
1809
- const t = jt[e.code];
1936
+ $t || bt(xl);
1937
+ const Ml = (e, i) => {
1938
+ if (e.code in Et) {
1939
+ const t = Et[e.code];
1810
1940
  e.message = typeof t == "function" ? t(e) : t;
1811
1941
  }
1812
1942
  return i(e);
1813
1943
  };
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);
1944
+ $t || yt(Ml);
1945
+ $t = !0;
1946
+ const jl = typeof window > "u", it = /* @__PURE__ */ new Map();
1947
+ function El(e, i) {
1948
+ var t;
1949
+ !jl || !e || (it.has(e) || it.set(e, /* @__PURE__ */ new Set()), (t = it.get(e)) === null || t === void 0 || t.add(i));
1950
+ }
1951
+ const dn = typeof window > "u", Le = {}, he = {};
1952
+ let K;
1953
+ const se = /* @__PURE__ */ new WeakMap(), Rl = "__raw__", Fl = /[a-zA-Z0-9\-][cC]lass$/;
1954
+ function Tl(e, i) {
1955
+ const t = Me(null);
1821
1956
  if (e === "get") {
1822
1957
  const l = {};
1823
- return t.value = Ol.bind(null, l), t;
1958
+ return t.value = Dl.bind(null, l), t;
1824
1959
  }
1825
1960
  const n = e.split(".");
1826
- return le(() => {
1827
- t.value = gt(He(i) ? i.value : i, n);
1961
+ return ae(() => {
1962
+ t.value = wt(kn(i) ? i.value : i, n);
1828
1963
  }), t;
1829
1964
  }
1830
- function gt(e, i) {
1965
+ function wt(e, i) {
1831
1966
  if (Array.isArray(e)) {
1832
1967
  for (const l of e) {
1833
- const s = l !== !1 && gt(l, i);
1968
+ const s = l !== !1 && wt(l, i);
1834
1969
  if (s !== void 0)
1835
1970
  return s;
1836
1971
  }
@@ -1852,175 +1987,178 @@ function gt(e, i) {
1852
1987
  }
1853
1988
  return t;
1854
1989
  }
1855
- function Ol(e, i) {
1990
+ function Dl(e, i) {
1856
1991
  if (typeof i != "string")
1857
- return Ae(650);
1858
- if (i in e || (e[i] = Le(void 0)), e[i].value === void 0) {
1992
+ return je(650);
1993
+ if (i in e || (e[i] = Me(void 0)), e[i].value === void 0) {
1859
1994
  e[i].value = null;
1860
1995
  const t = Ht(i);
1861
- t && (e[i].value = t.context), Yn(i, ({ payload: n }) => {
1862
- e[i].value = Je(n) ? n.context : n;
1996
+ t && (e[i].value = t.context), ei(i, ({ payload: n }) => {
1997
+ e[i].value = Qe(n) ? n.context : n;
1863
1998
  });
1864
1999
  }
1865
2000
  return e[i].value;
1866
2001
  }
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]);
2002
+ function Rt(e, i, t) {
2003
+ function n(y, I) {
2004
+ const f = V(Z(I.if), { if: !0 }), m = d(y, I.then), p = I.else ? d(y, I.else) : null;
2005
+ return [f, m, p];
2006
+ }
2007
+ function l(y, I) {
2008
+ var f, m;
2009
+ const p = V(Z(y.if));
2010
+ let h = () => I, $ = () => I;
2011
+ 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();
2012
+ }
2013
+ function s(y, I, f = {}) {
2014
+ const m = new Set(Object.keys(y || {})), p = I ? V(Z(I)) : () => ({}), h = [
2015
+ ($) => {
2016
+ const v = p();
2017
+ for (const b in v)
2018
+ m.has(b) || ($[b] = v[b]);
1884
2019
  }
1885
2020
  ];
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();
2021
+ if (y) {
2022
+ if (be(y))
2023
+ return l(y, f);
2024
+ for (let $ in y) {
2025
+ const v = y[$];
2026
+ let b;
2027
+ const c = typeof v == "string";
2028
+ $.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) => {
2029
+ g[$] = b();
1895
2030
  });
1896
2031
  }
1897
2032
  }
1898
2033
  return () => {
1899
- const c = Array.isArray(_) ? [] : {};
1900
- return f.forEach(($) => $(c)), c;
2034
+ const $ = Array.isArray(y) ? [] : {};
2035
+ return h.forEach((v) => v($)), $;
1901
2036
  };
1902
2037
  }
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());
2038
+ function r(y, I) {
2039
+ let f = null, m = () => null, p = !1, h = null, $ = null, v = null, b = !1;
2040
+ const c = Ji(I);
2041
+ if (ut(c) ? (f = c.$el, m = c.$el !== "text" ? s(c.attrs, c.bind) : () => null) : ft(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)
2042
+ if (typeof c.children == "string")
2043
+ if (c.children.startsWith("$slots."))
2044
+ f = f === "text" ? "slot" : f, h = V(Z(c.children));
2045
+ else if (c.children.startsWith("$") && c.children.length > 1) {
2046
+ const g = V(Z(c.children));
2047
+ h = () => String(g());
1913
2048
  } else
1914
- f = () => String(m.children);
1915
- else if (Array.isArray(m.children))
1916
- f = u(_, m.children);
2049
+ h = () => String(c.children);
2050
+ else if (Array.isArray(c.children))
2051
+ h = d(y, c.children);
1917
2052
  else {
1918
- const [d, y, g] = t(_, m.children);
1919
- f = (V) => d && d() ? y && y(V) : g && g(V);
2053
+ const [g, k, L] = n(y, c.children);
2054
+ h = (R) => g && g() ? k && k(R) : L && L(R);
1920
2055
  }
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;
2056
+ if (ft(c))
2057
+ if (h) {
2058
+ const g = h;
2059
+ h = (k) => ({
2060
+ default(L, R) {
2061
+ var C, F, B, H;
2062
+ const N = K;
2063
+ 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));
2064
+ const P = g(k);
2065
+ 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
2066
  }
1932
- }), f.slot = !0;
2067
+ }), h.slot = !0;
1933
2068
  } 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
2069
+ h = () => ({});
2070
+ if ("for" in c && c.for) {
2071
+ const g = c.for.length === 3 ? c.for[2] : c.for[1];
2072
+ v = [
2073
+ typeof g == "string" && g.startsWith("$") ? V(Z(g)) : () => g,
2074
+ c.for[0],
2075
+ c.for.length === 3 ? String(c.for[1]) : null
1941
2076
  ];
1942
2077
  }
1943
- return [p, w, S, f, c, $, C];
2078
+ return [p, f, m, h, $, v, b];
1944
2079
  }
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;
2080
+ function o(y, I) {
2081
+ const f = y(I), m = K;
2082
+ return Object.keys(f).reduce((p, h) => {
2083
+ const $ = f && f[h];
2084
+ return p[h] = (v) => $ && $(v, m) || null, p;
1950
2085
  }, {});
1951
2086
  }
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) : []));
2087
+ function u(y, I) {
2088
+ const [f, m, p, h, $, v, b] = r(y, I);
2089
+ let c = (g) => {
2090
+ if (f && m === null && h)
2091
+ return f() ? h(g) : $ && $(g);
2092
+ if (m && (!f || f())) {
2093
+ if (m === "text" && h)
2094
+ return Cn(String(h()));
2095
+ if (m === "slot" && h)
2096
+ return h(g);
2097
+ const k = b ? E(m) : m, L = h != null && h.slot ? o(h, g) : null;
2098
+ return Ae(k, p(), L || (h ? h(g) : []));
1964
2099
  }
1965
- return typeof c == "function" ? c(d) : c;
2100
+ return typeof $ == "function" ? $(g) : $;
1966
2101
  };
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")
2102
+ if (v) {
2103
+ const g = c, [k, L, R] = v;
2104
+ c = () => {
2105
+ const C = k(), F = Number.isFinite(C) ? Array(Number(C)).fill(0).map((P, q) => q) : C, B = [];
2106
+ if (typeof F != "object")
1972
2107
  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)
2108
+ const H = se.get(K) || [], N = Array.isArray(F);
2109
+ for (const P in F) {
2110
+ if (N && P in Array.prototype)
1976
2111
  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 } : {}
2112
+ const q = Object.defineProperty({
2113
+ ...H.reduce((ke, le) => ke.__idata ? { ...ke, ...le } : le, {}),
2114
+ [L]: F[P],
2115
+ ...R !== null ? { [R]: N ? Number(P) : P } : {}
1981
2116
  }, "__idata", { enumerable: !1, value: !0 });
1982
- F.unshift(K), I.push(d.bind(null, K)()), F.shift();
2117
+ H.unshift(q), B.push(g.bind(null, q)()), H.shift();
1983
2118
  }
1984
- return I;
2119
+ return B;
1985
2120
  };
1986
2121
  }
1987
- return m;
2122
+ return c;
1988
2123
  }
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));
2124
+ function d(y, I) {
2125
+ if (Array.isArray(I)) {
2126
+ const m = I.map(u.bind(null, y));
2127
+ return (p) => m.map((h) => h(p));
1993
2128
  }
1994
- const w = o(_, v);
1995
- return (S) => w(S);
2129
+ const f = u(y, I);
2130
+ return (m) => f(m);
1996
2131
  }
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]();
2132
+ const _ = [];
2133
+ function V(y, I = {}) {
2134
+ const f = /* @__PURE__ */ new WeakMap();
2135
+ return _.push((m, p) => {
2136
+ f.set(p, y.provide((h) => m(h, I)));
2137
+ }), () => f.get(K)();
2003
2138
  }
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
- };
2139
+ function J(y, I) {
2140
+ var f;
2141
+ t ?? (t = JSON.stringify(i));
2142
+ const [m, p] = j(Le, t) ? Le[t] : [d(e, i), _];
2143
+ return dn || ((f = he[t]) !== null && f !== void 0 || (he[t] = 0), he[t]++, Le[t] = [m, p]), p.forEach((h) => {
2144
+ h(y, I);
2145
+ }), () => (K = I, m());
2146
+ }
2147
+ return J;
2010
2148
  }
2011
2149
  function pn(e, i) {
2012
- const t = oe.get(U) || [];
2150
+ const t = se.get(K) || [];
2013
2151
  let n;
2014
- return t.length && (n = gt(t, e.split("."))), n === void 0 ? i : n;
2152
+ return t.length && (n = wt(t, e.split("."))), n === void 0 ? i : n;
2015
2153
  }
2016
- function Al(e, i) {
2154
+ function Bl(e, i) {
2017
2155
  return new Proxy(e, {
2018
2156
  get(...t) {
2019
2157
  let n;
2020
2158
  const l = t[1];
2021
2159
  if (typeof l == "string") {
2022
- const s = U;
2023
- U = i, n = pn(l, void 0), U = s;
2160
+ const s = K;
2161
+ K = i, n = pn(l, void 0), K = s;
2024
2162
  }
2025
2163
  return n !== void 0 ? n : Reflect.get(...t);
2026
2164
  }
@@ -2029,22 +2167,29 @@ function Al(e, i) {
2029
2167
  function Ft(e, i, t) {
2030
2168
  return e((n, l = {}) => n.reduce((s, r) => {
2031
2169
  if (r.startsWith("slots.")) {
2032
- const o = r.substring(6), u = () => i.slots && E(i.slots, o) && typeof i.slots[o] == "function";
2170
+ const o = r.substring(6), u = () => i.slots && j(i.slots, o) && typeof i.slots[o] == "function";
2033
2171
  if (l.if)
2034
2172
  s[r] = u;
2035
2173
  else if (i.slots) {
2036
- const b = Al(i, t);
2037
- s[r] = () => u() ? i.slots[o](b) : null;
2174
+ const d = Bl(i, t);
2175
+ s[r] = () => u() ? i.slots[o](d) : null;
2038
2176
  }
2039
2177
  } else {
2040
- const o = Ll(r, i);
2178
+ const o = Tl(r, i);
2041
2179
  s[r] = () => pn(r, o.value);
2042
2180
  }
2043
2181
  return s;
2044
2182
  }, {}), t);
2045
2183
  }
2046
- let Dt = 0;
2047
- const dn = P({
2184
+ function Tt(e, i, t) {
2185
+ if (i ?? (i = JSON.stringify(e)), he[i]--, he[i] === 0) {
2186
+ delete he[i];
2187
+ const [, n] = Le[i];
2188
+ delete Le[i], n.length = 0;
2189
+ }
2190
+ se.delete(t);
2191
+ }
2192
+ const mn = x({
2048
2193
  name: "FormKitSchema",
2049
2194
  props: {
2050
2195
  schema: {
@@ -2058,23 +2203,34 @@ const dn = P({
2058
2203
  library: {
2059
2204
  type: Object,
2060
2205
  default: () => ({})
2206
+ },
2207
+ memoKey: {
2208
+ type: String,
2209
+ required: !1
2061
2210
  }
2062
2211
  },
2063
2212
  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), {
2213
+ var t;
2214
+ const n = at();
2215
+ let l = {};
2216
+ se.set(l, []);
2217
+ let s = Rt(e.library, e.schema, e.memoKey), r, o;
2218
+ dn || ye(() => e.schema, (d, _) => {
2219
+ var V;
2220
+ const J = l;
2221
+ 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);
2222
+ }, { deep: !0 }), ae(() => {
2223
+ var d;
2224
+ o = Object.assign(yn((d = e.data) !== null && d !== void 0 ? d : {}), {
2073
2225
  slots: i.slots
2074
- }), s = Ft(l, r, n);
2075
- }), () => s();
2226
+ }), i.slots, r = Ft(s, o, l);
2227
+ });
2228
+ function u() {
2229
+ Tt(e.schema, e.memoKey, l), o.node && o.node.destroy(), o.slots = null, o = null, r = null;
2230
+ }
2231
+ return vn(u), El((t = at()) === null || t === void 0 ? void 0 : t.appContext.app, u), () => r ? r() : null;
2076
2232
  }
2077
- }), xl = {
2233
+ }), zl = {
2078
2234
  config: {
2079
2235
  type: Object,
2080
2236
  default: {}
@@ -2087,6 +2243,10 @@ const dn = P({
2087
2243
  type: Number,
2088
2244
  required: !1
2089
2245
  },
2246
+ dynamic: {
2247
+ type: Boolean,
2248
+ required: !1
2249
+ },
2090
2250
  errors: {
2091
2251
  type: Array,
2092
2252
  default: []
@@ -2122,6 +2282,10 @@ const dn = P({
2122
2282
  type: Object,
2123
2283
  default: {}
2124
2284
  },
2285
+ sync: {
2286
+ type: Boolean,
2287
+ required: !1
2288
+ },
2125
2289
  type: {
2126
2290
  type: [String, Object],
2127
2291
  default: "text"
@@ -2142,9 +2306,9 @@ const dn = P({
2142
2306
  type: [String, Function],
2143
2307
  required: !1
2144
2308
  }
2145
- }, Pl = xl, Ke = Symbol("FormKitParent");
2146
- P({
2147
- props: Pl,
2309
+ }, Ul = zl, Kl = typeof window > "u", Ze = Symbol("FormKitParent");
2310
+ x({
2311
+ props: Ul,
2148
2312
  emits: {
2149
2313
  /* eslint-disable @typescript-eslint/no-unused-vars */
2150
2314
  input: (e, i) => !0,
@@ -2158,80 +2322,27 @@ P({
2158
2322
  },
2159
2323
  inheritAttrs: !1,
2160
2324
  setup(e, i) {
2161
- const t = Tl(e, i);
2162
- if (t.props.definition || N(600, t), t.props.definition.component)
2325
+ const t = Wl(e, i);
2326
+ if (t.props.definition || W(600, t), t.props.definition.component)
2163
2327
  return () => {
2164
- var r;
2165
- return Ce((r = t.props.definition) === null || r === void 0 ? void 0 : r.component, {
2328
+ var o;
2329
+ return Ae((o = t.props.definition) === null || o === void 0 ? void 0 : o.component, {
2166
2330
  context: t.context
2167
2331
  }, { ...i.slots });
2168
2332
  };
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;
2333
+ const n = Me([]);
2334
+ let l = t.props.definition.schemaMemoKey;
2335
+ const s = () => {
2336
+ var o, u;
2337
+ const d = (u = (o = t.props) === null || o === void 0 ? void 0 : o.definition) === null || u === void 0 ? void 0 : u.schema;
2338
+ 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
2339
  };
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 });
2340
+ s(), Kl || t.on("schema", s), i.emit("node", t);
2341
+ const r = t.props.definition.library;
2342
+ return i.expose({ node: t }), () => Ae(mn, { schema: n.value, data: t.context, library: r, memoKey: l }, { ...i.slots });
2177
2343
  }
2178
2344
  });
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 = [
2345
+ const bn = Symbol.for("FormKitOptions"), lt = [
2235
2346
  "help",
2236
2347
  "label",
2237
2348
  "ignore",
@@ -2244,139 +2355,138 @@ const nt = [
2244
2355
  "suffixIcon",
2245
2356
  /^[a-zA-Z-]+(?:-icon|Icon)$/
2246
2357
  ];
2247
- function Bt(e, i) {
2358
+ function Dt(e, i) {
2248
2359
  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]));
2360
+ typeof t == "string" && (e.props[`_${t}Class`] = i.classes[t], dt(i.classes[t]) && t === "inner" && Object.values(i.classes[t]));
2250
2361
  });
2251
2362
  }
2252
- function jl(e) {
2363
+ function ql(e) {
2253
2364
  return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce((t, n) => {
2254
2365
  const l = `on${n}`;
2255
2366
  return l in e && typeof e[l] == "function" && (t[l] = e[l]), t;
2256
2367
  }, {}) : {};
2257
2368
  }
2258
- function Tl(e, i, t = {}) {
2369
+ function Wl(e, i, t = {}) {
2259
2370
  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),
2264
- ...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 || {}, {
2371
+ const l = Object.assign({}, Oe(bn) || {}, t), s = at(), 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 : {});
2372
+ let u = !1;
2373
+ hn(() => {
2374
+ u = !0;
2375
+ });
2376
+ const d = e.modelValue !== void 0 ? e.modelValue : de(i.attrs.value);
2377
+ function _() {
2378
+ const b = {
2379
+ ...me(e),
2380
+ ...r,
2381
+ __slots: i.slots
2382
+ }, c = Ct(me(i.attrs), lt);
2383
+ c.key || (c.key = Je()), b.attrs = c;
2384
+ const g = St(me(i.attrs), lt);
2385
+ for (const L in g)
2386
+ b[Fe(L)] = g[L];
2387
+ const k = { props: {} };
2388
+ return Dt(k, e), Object.assign(b, k.props), typeof b.type != "string" && (b.definition = b.type, delete b.type), b;
2389
+ }
2390
+ const V = _(), J = V.ignore ? null : e.parent || Oe(Ze, null), y = Hi(Ye(l || {}, {
2274
2391
  name: e.name || void 0,
2275
- value: u,
2276
- parent: _,
2392
+ value: d,
2393
+ parent: J,
2277
2394
  plugins: (l.plugins || []).concat(e.plugins),
2278
2395
  config: e.config,
2279
- props: h,
2280
- index: e.index
2396
+ props: V,
2397
+ index: e.index,
2398
+ sync: e.sync || e.dynamic
2281
2399
  }, !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));
2400
+ y.props.definition || W(600, y);
2401
+ const I = Me(new Set(y.props.definition.props || []));
2402
+ y.on("added-props", ({ payload: b }) => {
2403
+ Array.isArray(b) && b.forEach((c) => I.value.add(c));
2286
2404
  });
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]);
2405
+ const f = M(() => lt.concat([...I.value]).reduce((b, c) => (typeof c == "string" ? (b.push(Fe(c)), b.push(Ut(c))) : b.push(c), b), []));
2406
+ ae(() => Dt(y, e));
2407
+ const m = me(e);
2408
+ for (const b in m)
2409
+ ye(() => e[b], () => {
2410
+ e[b] !== void 0 && (y.props[b] = e[b]);
2293
2411
  });
2294
- const f = /* @__PURE__ */ new Set(), c = ce(i.attrs);
2295
- le(() => {
2296
- $(St(c, S.value));
2412
+ const p = /* @__PURE__ */ new Set(), h = me(i.attrs);
2413
+ ae(() => {
2414
+ $(St(h, f.value));
2297
2415
  });
2298
- function $(d) {
2299
- f.forEach((y) => {
2300
- y(), f.delete(y);
2416
+ function $(b) {
2417
+ p.forEach((c) => {
2418
+ c(), p.delete(c);
2301
2419
  });
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];
2420
+ for (const c in b) {
2421
+ const g = Fe(c);
2422
+ p.add(ye(() => i.attrs[c], () => {
2423
+ y.props[g] = i.attrs[c];
2306
2424
  }));
2307
2425
  }
2308
2426
  }
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),
2427
+ if (ae(() => {
2428
+ const b = Ct(me(i.attrs), f.value);
2429
+ "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);
2430
+ }), ae(() => {
2431
+ const b = e.errors.map((c) => re({
2432
+ key: pt(c),
2315
2433
  type: "error",
2316
- value: y,
2434
+ value: c,
2317
2435
  meta: { source: "prop" }
2318
2436
  }));
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,
2437
+ y.store.apply(b, (c) => c.type === "error" && c.meta.source === "prop");
2438
+ }), y.type !== "input") {
2439
+ const b = `${y.name}-prop`;
2440
+ ae(() => {
2441
+ const c = Object.keys(e.inputErrors);
2442
+ c.length || y.clearErrors(!0, b);
2443
+ const g = c.reduce((k, L) => {
2444
+ let R = e.inputErrors[L];
2445
+ return typeof R == "string" && (R = [R]), Array.isArray(R) && (k[L] = R.map((C) => re({
2446
+ key: C,
2329
2447
  type: "error",
2330
- value: I,
2331
- meta: { source: d }
2332
- }))), V;
2448
+ value: C,
2449
+ meta: { source: b }
2450
+ }))), k;
2333
2451
  }, {});
2334
- v.store.apply(g, (V) => V.type === "error" && V.meta.source === d);
2452
+ y.store.apply(g, (k) => k.type === "error" && k.meta.source === b);
2335
2453
  });
2336
2454
  }
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) {
2455
+ ae(() => Object.assign(y.config, e.config)), y.type !== "input" && _n(Ze, y);
2456
+ let v;
2457
+ return y.on("modelUpdated", () => {
2458
+ var b, c;
2459
+ 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)));
2460
+ }), o && (ye(gn(e, "modelValue"), (b) => {
2461
+ ue(v, b) || y.input(b, !1);
2462
+ }, { deep: !0 }), y.value !== d && y.emit("modelUpdated")), $n(() => y.destroy()), y;
2463
+ }
2464
+ let Nl = 1;
2465
+ function Hl(e) {
2356
2466
  return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
2357
2467
  }
2358
- function B(e, i = {}) {
2468
+ function D(e, i = {}) {
2359
2469
  const t = {
2360
2470
  type: "input",
2361
2471
  ...i
2362
2472
  };
2363
2473
  let n;
2364
- if (Dl(e)) {
2365
- const l = `SchemaComponent${Fl++}`;
2366
- n = k("input", () => ({
2474
+ if (Hl(e)) {
2475
+ const l = `SchemaComponent${Nl++}`;
2476
+ n = w("input", () => ({
2367
2477
  $cmp: l,
2368
2478
  props: {
2369
2479
  context: "$node.context"
2370
2480
  }
2371
- })), t.library = { [l]: $n(e) };
2481
+ })), t.library = { [l]: wn(e) };
2372
2482
  } else
2373
- typeof e == "function" ? n = e : n = k("input", () => ue(e));
2374
- return t.schema = hl(n || "Schema undefined"), t;
2483
+ typeof e == "function" ? n = e : n = w("input", () => de(e));
2484
+ return t.schema = Il(n || "Schema undefined"), t.schemaMemoKey || (t.schemaMemoKey = `${Math.random()}`), t;
2375
2485
  }
2376
- const Bl = k("messages", () => ({
2486
+ const Zl = w("messages", () => ({
2377
2487
  $el: "ul",
2378
2488
  if: "$fns.length($messages)"
2379
- }), !0), zl = k("message", () => ({
2489
+ })), Jl = w("message", () => ({
2380
2490
  $el: "li",
2381
2491
  for: ["message", "$messages"],
2382
2492
  attrs: {
@@ -2384,8 +2494,8 @@ const Bl = k("messages", () => ({
2384
2494
  id: "$id + '-' + $message.key",
2385
2495
  "data-message-type": "$message.type"
2386
2496
  }
2387
- })), Wl = Bl(zl("$message.value"));
2388
- P({
2497
+ })), Yl = Zl(Jl("$message.value"));
2498
+ x({
2389
2499
  props: {
2390
2500
  node: {
2391
2501
  type: Object,
@@ -2401,26 +2511,26 @@ P({
2401
2511
  }
2402
2512
  },
2403
2513
  setup(e, i) {
2404
- const t = M(() => e.node || Se(Ke, void 0));
2405
- me(t, () => {
2514
+ const t = M(() => e.node || Oe(Ze, void 0));
2515
+ ye(t, () => {
2406
2516
  var s;
2407
- !((s = t.value) === null || s === void 0) && s.context && !Q(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
2517
+ !((s = t.value) === null || s === void 0) && s.context && !Y(e.defaultPosition) && (t.value.context.defaultMessagePlacement = !1);
2408
2518
  }, { immediate: !0 });
2409
- const n = Wl(e.sectionsSchema || {}), l = M(() => {
2410
- var s, r, o, u, b, h;
2519
+ const n = Yl(e.sectionsSchema || {}), l = M(() => {
2520
+ var s, r, o, u, d, _;
2411
2521
  return {
2412
2522
  messages: ((r = (s = t.value) === null || s === void 0 ? void 0 : s.context) === null || r === void 0 ? void 0 : r.messages) || {},
2413
2523
  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) || {}
2524
+ classes: ((_ = (d = t.value) === null || d === void 0 ? void 0 : d.context) === null || _ === void 0 ? void 0 : _.classes) || {}
2415
2525
  };
2416
2526
  });
2417
2527
  return () => {
2418
2528
  var s;
2419
- return !((s = t.value) === null || s === void 0) && s.context ? Ce(dn, { schema: n, data: l.value }, { ...i.slots }) : null;
2529
+ return !((s = t.value) === null || s === void 0) && s.context ? Ae(mn, { schema: n, data: l.value }, { ...i.slots }) : null;
2420
2530
  };
2421
2531
  }
2422
2532
  });
2423
- P({
2533
+ x({
2424
2534
  name: "FormKitIcon",
2425
2535
  props: {
2426
2536
  icon: {
@@ -2438,35 +2548,35 @@ P({
2438
2548
  },
2439
2549
  setup(e) {
2440
2550
  var i, t;
2441
- const n = Le(void 0), l = Se(mn, {}), s = Se(Ke, null);
2551
+ const n = Me(void 0), l = Oe(bn, {}), s = Oe(Ze, null);
2442
2552
  let r;
2443
2553
  function o() {
2444
2554
  if (!r || typeof r != "function")
2445
2555
  return;
2446
2556
  const u = r(e.icon);
2447
- u instanceof Promise ? u.then((b) => {
2448
- n.value = b;
2557
+ u instanceof Promise ? u.then((d) => {
2558
+ n.value = d;
2449
2559
  }) : n.value = u;
2450
2560
  }
2451
2561
  if (e.iconLoader && typeof e.iconLoader == "function")
2452
- r = et(e.iconLoader);
2562
+ r = nt(e.iconLoader);
2453
2563
  else if (s && (!((i = s.props) === null || i === void 0) && i.iconLoader))
2454
- r = et(s.props.iconLoader);
2564
+ r = nt(s.props.iconLoader);
2455
2565
  else if (e.iconLoaderUrl && typeof e.iconLoaderUrl == "function")
2456
- r = et(r, e.iconLoaderUrl);
2566
+ r = nt(r, e.iconLoaderUrl);
2457
2567
  else {
2458
- const u = (t = l == null ? void 0 : l.plugins) === null || t === void 0 ? void 0 : t.find((b) => typeof b.iconHandler == "function");
2568
+ const u = (t = l == null ? void 0 : l.plugins) === null || t === void 0 ? void 0 : t.find((d) => typeof d.iconHandler == "function");
2459
2569
  u && (r = u.iconHandler);
2460
2570
  }
2461
- return me(() => e.icon, () => {
2571
+ return ye(() => e.icon, () => {
2462
2572
  o();
2463
- }, { immediate: !0 }), () => e.icon && n.value ? Ce("span", {
2573
+ }, { immediate: !0 }), () => e.icon && n.value ? Ae("span", {
2464
2574
  class: "formkit-icon",
2465
2575
  innerHTML: n.value
2466
2576
  }) : null;
2467
2577
  }
2468
2578
  });
2469
- const Ul = /* @__PURE__ */ P({
2579
+ const Ql = /* @__PURE__ */ x({
2470
2580
  __name: "PrimeCalendar",
2471
2581
  props: {
2472
2582
  context: Object
@@ -2481,11 +2591,11 @@ const Ul = /* @__PURE__ */ P({
2481
2591
  }
2482
2592
  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
2593
  return (o, u) => {
2484
- const b = T("Calendar");
2485
- return A(), x("div", null, [
2486
- D(b, {
2594
+ const d = E("Calendar");
2595
+ return A(), O("div", null, [
2596
+ T(d, {
2487
2597
  modelValue: a(t)._value,
2488
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2598
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2489
2599
  "input-id": i.context.id,
2490
2600
  disabled: a(n)._disabled ?? !1,
2491
2601
  readonly: a(n)._readonly ?? !1,
@@ -2540,13 +2650,13 @@ const Ul = /* @__PURE__ */ P({
2540
2650
  ]);
2541
2651
  };
2542
2652
  }
2543
- }), ql = {
2653
+ }), Xl = {
2544
2654
  key: 0,
2545
2655
  class: "formkit-prime-left"
2546
- }, Nl = {
2656
+ }, Gl = {
2547
2657
  key: 1,
2548
2658
  class: "formkit-prime-right"
2549
- }, Kl = /* @__PURE__ */ P({
2659
+ }, ea = /* @__PURE__ */ x({
2550
2660
  __name: "PrimeCheckbox",
2551
2661
  props: {
2552
2662
  context: Object
@@ -2559,12 +2669,12 @@ const Ul = /* @__PURE__ */ P({
2559
2669
  }
2560
2670
  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
2671
  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, {
2672
+ const u = E("Checkbox");
2673
+ return A(), O("div", null, [
2674
+ a(t).attrs.labelLeft ? (A(), O("span", Xl, ce(a(t).attrs.labelLeft), 1)) : oe("", !0),
2675
+ T(u, {
2566
2676
  modelValue: a(t)._value,
2567
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2677
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
2568
2678
  "input-id": a(t).id,
2569
2679
  disabled: a(n)._disabled ?? !1,
2570
2680
  readonly: a(n)._readonly ?? !1,
@@ -2578,11 +2688,11 @@ const Ul = /* @__PURE__ */ P({
2578
2688
  "false-value": a(n).falseValue ?? void 0,
2579
2689
  onInput: l
2580
2690
  }, 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)
2691
+ a(t).attrs.labelRight ? (A(), O("span", Gl, ce(a(t).attrs.labelRight), 1)) : oe("", !0)
2582
2692
  ]);
2583
2693
  };
2584
2694
  }
2585
- }), Hl = /* @__PURE__ */ P({
2695
+ }), ta = /* @__PURE__ */ x({
2586
2696
  __name: "PrimeChips",
2587
2697
  props: {
2588
2698
  context: Object
@@ -2595,11 +2705,11 @@ const Ul = /* @__PURE__ */ P({
2595
2705
  }
2596
2706
  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
2707
  return (r, o) => {
2598
- const u = T("Chips");
2599
- return A(), x("div", null, [
2600
- D(u, {
2708
+ const u = E("Chips");
2709
+ return A(), O("div", null, [
2710
+ T(u, {
2601
2711
  modelValue: a(t)._value,
2602
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2712
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
2603
2713
  "input-id": a(t).id,
2604
2714
  disabled: a(n)._disabled ?? !1,
2605
2715
  readonly: a(n)._readonly ?? !1,
@@ -2619,7 +2729,7 @@ const Ul = /* @__PURE__ */ P({
2619
2729
  ]);
2620
2730
  };
2621
2731
  }
2622
- }), Zl = /* @__PURE__ */ P({
2732
+ }), na = /* @__PURE__ */ x({
2623
2733
  __name: "PrimeColorPicker",
2624
2734
  props: {
2625
2735
  context: Object
@@ -2631,14 +2741,14 @@ const Ul = /* @__PURE__ */ P({
2631
2741
  t == null || t.node.input((r = i.context) == null ? void 0 : r._value);
2632
2742
  }
2633
2743
  return (s, r) => {
2634
- const o = T("ColorPicker");
2635
- return A(), x("div", null, [
2636
- D(o, {
2744
+ const o = E("ColorPicker");
2745
+ return A(), O("div", null, [
2746
+ T(o, {
2637
2747
  modelValue: a(t)._value,
2638
2748
  "onUpdate:modelValue": r[0] || (r[0] = (u) => a(t)._value = u),
2639
2749
  disabled: a(n)._disabled ?? !1,
2640
2750
  readonly: a(n)._readonly ?? !1,
2641
- style: fe(a(n).style),
2751
+ style: pe(a(n).style),
2642
2752
  "panel-class": a(n).class,
2643
2753
  tabindex: a(n).tabindex,
2644
2754
  "aria-label": a(n).ariaLabel,
@@ -2651,7 +2761,7 @@ const Ul = /* @__PURE__ */ P({
2651
2761
  ]);
2652
2762
  };
2653
2763
  }
2654
- }), Yl = /* @__PURE__ */ P({
2764
+ }), ia = /* @__PURE__ */ x({
2655
2765
  __name: "PrimeDropdown",
2656
2766
  props: {
2657
2767
  context: Object
@@ -2666,11 +2776,11 @@ const Ul = /* @__PURE__ */ P({
2666
2776
  }
2667
2777
  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
2778
  return (o, u) => {
2669
- const b = T("Dropdown");
2670
- return A(), x("div", null, [
2671
- D(b, {
2779
+ const d = E("Dropdown");
2780
+ return A(), O("div", null, [
2781
+ T(d, {
2672
2782
  modelValue: a(t)._value,
2673
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2783
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2674
2784
  "input-id": a(t).id,
2675
2785
  disabled: a(n)._disabled ?? !1,
2676
2786
  readonly: a(n)._readonly ?? !1,
@@ -2691,7 +2801,7 @@ const Ul = /* @__PURE__ */ P({
2691
2801
  ]);
2692
2802
  };
2693
2803
  }
2694
- }), Jl = /* @__PURE__ */ P({
2804
+ }), la = /* @__PURE__ */ x({
2695
2805
  __name: "PrimeEditor",
2696
2806
  props: {
2697
2807
  context: Object
@@ -2706,16 +2816,16 @@ const Ul = /* @__PURE__ */ P({
2706
2816
  }
2707
2817
  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
2818
  return (o, u) => {
2709
- const b = T("Editor");
2710
- return A(), x("div", null, [
2711
- D(b, {
2819
+ const d = E("Editor");
2820
+ return A(), O("div", null, [
2821
+ T(d, {
2712
2822
  id: a(t).id,
2713
2823
  modelValue: a(t)._value,
2714
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2824
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2715
2825
  disabled: a(n)._disabled ?? !1,
2716
2826
  readonly: a(n)._readonly ?? !1,
2717
2827
  "editor-style": a(n).style,
2718
- class: q(a(r)),
2828
+ class: U(a(r)),
2719
2829
  tabindex: a(n).tabindex,
2720
2830
  "aria-label": a(n).ariaLabel,
2721
2831
  "aria-labelledby": a(n).ariaLabelledby,
@@ -2728,7 +2838,7 @@ const Ul = /* @__PURE__ */ P({
2728
2838
  ]);
2729
2839
  };
2730
2840
  }
2731
- }), Ql = /* @__PURE__ */ P({
2841
+ }), aa = /* @__PURE__ */ x({
2732
2842
  __name: "PrimeInputMask",
2733
2843
  props: {
2734
2844
  context: Object
@@ -2741,16 +2851,16 @@ const Ul = /* @__PURE__ */ P({
2741
2851
  }
2742
2852
  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
2853
  return (r, o) => {
2744
- const u = T("InputMask");
2745
- return A(), x("div", null, [
2746
- D(u, {
2854
+ const u = E("InputMask");
2855
+ return A(), O("div", null, [
2856
+ T(u, {
2747
2857
  id: a(t).id,
2748
2858
  modelValue: a(t)._value,
2749
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2859
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
2750
2860
  disabled: a(n)._disabled ?? !1,
2751
2861
  readonly: a(n)._readonly ?? !1,
2752
2862
  "editor-style": a(n).style,
2753
- class: q(a(s)),
2863
+ class: U(a(s)),
2754
2864
  tabindex: a(n).tabindex,
2755
2865
  "aria-label": a(n).ariaLabel,
2756
2866
  "aria-labelledby": a(n).ariaLabelledby,
@@ -2764,7 +2874,7 @@ const Ul = /* @__PURE__ */ P({
2764
2874
  ]);
2765
2875
  };
2766
2876
  }
2767
- }), Gl = /* @__PURE__ */ P({
2877
+ }), sa = /* @__PURE__ */ x({
2768
2878
  __name: "PrimeInputNumber",
2769
2879
  props: {
2770
2880
  context: Object
@@ -2779,11 +2889,11 @@ const Ul = /* @__PURE__ */ P({
2779
2889
  }
2780
2890
  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
2891
  return (o, u) => {
2782
- const b = T("InputNumber");
2783
- return A(), x("div", null, [
2784
- D(b, {
2892
+ const d = E("InputNumber");
2893
+ return A(), O("div", null, [
2894
+ T(d, {
2785
2895
  modelValue: a(t)._value,
2786
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
2896
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2787
2897
  "input-id": a(t).id,
2788
2898
  disabled: a(n)._disabled ?? !1,
2789
2899
  readonly: a(n)._readonly ?? !1,
@@ -2810,13 +2920,13 @@ const Ul = /* @__PURE__ */ P({
2810
2920
  ]);
2811
2921
  };
2812
2922
  }
2813
- }), Xl = {
2923
+ }), ra = {
2814
2924
  key: 0,
2815
2925
  class: "formkit-prime-left"
2816
- }, ea = {
2926
+ }, oa = {
2817
2927
  key: 1,
2818
2928
  class: "formkit-prime-right"
2819
- }, ta = /* @__PURE__ */ P({
2929
+ }, ua = /* @__PURE__ */ x({
2820
2930
  __name: "PrimeInputSwitch",
2821
2931
  props: {
2822
2932
  context: Object
@@ -2829,12 +2939,14 @@ const Ul = /* @__PURE__ */ P({
2829
2939
  }
2830
2940
  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
2941
  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, {
2942
+ const u = E("InputSwitch");
2943
+ return A(), O("div", {
2944
+ class: U(a(n).option_class)
2945
+ }, [
2946
+ a(t).attrs.labelLeft ? (A(), O("span", ra, ce(a(t).attrs.labelLeft), 1)) : oe("", !0),
2947
+ T(u, {
2836
2948
  modelValue: a(t)._value,
2837
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
2949
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
2838
2950
  "input-id": a(t).id,
2839
2951
  disabled: a(n)._disabled ?? !1,
2840
2952
  readonly: a(n)._readonly ?? !1,
@@ -2847,11 +2959,11 @@ const Ul = /* @__PURE__ */ P({
2847
2959
  "false-value": a(n).falseValue ?? void 0,
2848
2960
  onInput: l
2849
2961
  }, 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
- ]);
2962
+ a(t).attrs.labelRight ? (A(), O("span", oa, ce(a(t).attrs.labelRight), 1)) : oe("", !0)
2963
+ ], 2);
2852
2964
  };
2853
2965
  }
2854
- }), na = /* @__PURE__ */ P({
2966
+ }), fa = /* @__PURE__ */ x({
2855
2967
  __name: "PrimeInputText",
2856
2968
  props: {
2857
2969
  context: Object
@@ -2865,34 +2977,34 @@ const Ul = /* @__PURE__ */ P({
2865
2977
  return (t == null ? void 0 : t.iconRight) && (t == null ? void 0 : t.iconRight.length) > 0;
2866
2978
  }
2867
2979
  function r() {
2868
- let h = "";
2869
- return l() && (h = `${h}p-input-icon-left `), s() && (h = `${h}p-input-icon-right `), h;
2980
+ let _ = "";
2981
+ return l() && (_ = `${_}p-input-icon-left `), s() && (_ = `${_}p-input-icon-right `), _;
2870
2982
  }
2871
- function o(h) {
2872
- t == null || t.handlers.blur(h.target.value);
2983
+ function o(_) {
2984
+ t == null || t.handlers.blur(_.target.value);
2873
2985
  }
2874
- function u(h) {
2875
- t == null || t.node.input(h.target.value);
2986
+ function u(_) {
2987
+ t == null || t.node.input(_.target.value);
2876
2988
  }
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())
2989
+ 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);
2990
+ return (_, V) => {
2991
+ const J = E("InputText");
2992
+ return A(), O("div", null, [
2993
+ Bt("span", {
2994
+ class: U(r())
2883
2995
  }, [
2884
- l() ? (A(), x("i", {
2996
+ l() ? (A(), O("i", {
2885
2997
  key: 0,
2886
- class: q(a(t).iconLeft)
2887
- }, null, 2)) : se("", !0),
2888
- D(v, {
2998
+ class: U(a(t).iconLeft)
2999
+ }, null, 2)) : oe("", !0),
3000
+ T(J, {
2889
3001
  id: a(t).id,
2890
3002
  modelValue: a(t)._value,
2891
- "onUpdate:modelValue": _[0] || (_[0] = (w) => a(t)._value = w),
3003
+ "onUpdate:modelValue": V[0] || (V[0] = (y) => a(t)._value = y),
2892
3004
  disabled: a(n)._disabled ?? !1,
2893
3005
  readonly: a(n)._readonly ?? !1,
2894
- style: fe(a(n).style),
2895
- class: q(a(b)),
3006
+ style: pe(a(n).style),
3007
+ class: U(a(d)),
2896
3008
  tabindex: a(n).tabindex,
2897
3009
  "aria-label": a(n).ariaLabel,
2898
3010
  "aria-labelledby": a(n).ariaLabelledby,
@@ -2900,15 +3012,15 @@ const Ul = /* @__PURE__ */ P({
2900
3012
  onInput: u,
2901
3013
  onBlur: o
2902
3014
  }, null, 8, ["id", "modelValue", "disabled", "readonly", "style", "class", "tabindex", "aria-label", "aria-labelledby", "placeholder"]),
2903
- s ? (A(), x("i", {
3015
+ s ? (A(), O("i", {
2904
3016
  key: 1,
2905
- class: q(a(t).iconRight)
2906
- }, null, 2)) : se("", !0)
3017
+ class: U(a(t).iconRight)
3018
+ }, null, 2)) : oe("", !0)
2907
3019
  ], 2)
2908
3020
  ]);
2909
3021
  };
2910
3022
  }
2911
- }), ia = /* @__PURE__ */ P({
3023
+ }), ca = /* @__PURE__ */ x({
2912
3024
  __name: "PrimeTextarea",
2913
3025
  props: {
2914
3026
  context: Object
@@ -2923,16 +3035,16 @@ const Ul = /* @__PURE__ */ P({
2923
3035
  }
2924
3036
  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
3037
  return (o, u) => {
2926
- const b = T("Textarea");
2927
- return A(), x("div", null, [
2928
- D(b, {
3038
+ const d = E("Textarea");
3039
+ return A(), O("div", null, [
3040
+ T(d, {
2929
3041
  id: a(t).id,
2930
3042
  modelValue: a(t)._value,
2931
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
3043
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
2932
3044
  disabled: a(n)._disabled ?? !1,
2933
3045
  readonly: a(n)._readonly ?? !1,
2934
- style: fe(a(n).style),
2935
- class: q(a(r)),
3046
+ style: pe(a(n).style),
3047
+ class: U(a(r)),
2936
3048
  tabindex: a(n).tabindex,
2937
3049
  "aria-label": a(n).ariaLabel,
2938
3050
  "aria-labelledby": a(n).ariaLabelledby,
@@ -2944,7 +3056,7 @@ const Ul = /* @__PURE__ */ P({
2944
3056
  ]);
2945
3057
  };
2946
3058
  }
2947
- }), la = /* @__PURE__ */ P({
3059
+ }), da = /* @__PURE__ */ x({
2948
3060
  __name: "PrimeKnob",
2949
3061
  props: {
2950
3062
  context: Object
@@ -2956,16 +3068,16 @@ const Ul = /* @__PURE__ */ P({
2956
3068
  }
2957
3069
  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
3070
  return (r, o) => {
2959
- const u = T("Knob");
2960
- return A(), x("div", null, [
2961
- D(u, {
3071
+ const u = E("Knob");
3072
+ return A(), O("div", null, [
3073
+ T(u, {
2962
3074
  id: a(t).id,
2963
3075
  modelValue: a(t)._value,
2964
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3076
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
2965
3077
  disabled: a(n)._disabled ?? !1,
2966
3078
  readonly: a(n)._readonly ?? !1,
2967
- style: fe(a(n).style),
2968
- class: q(a(s)),
3079
+ style: pe(a(n).style),
3080
+ class: U(a(s)),
2969
3081
  tabindex: a(n).tabindex,
2970
3082
  "aria-label": a(n).ariaLabel,
2971
3083
  "aria-labelledby": a(n).ariaLabelledby,
@@ -2984,7 +3096,7 @@ const Ul = /* @__PURE__ */ P({
2984
3096
  ]);
2985
3097
  };
2986
3098
  }
2987
- }), aa = /* @__PURE__ */ P({
3099
+ }), pa = /* @__PURE__ */ x({
2988
3100
  __name: "PrimeMultiSelect",
2989
3101
  props: {
2990
3102
  context: Object
@@ -2997,16 +3109,16 @@ const Ul = /* @__PURE__ */ P({
2997
3109
  }
2998
3110
  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
3111
  return (r, o) => {
3000
- const u = T("MultiSelect");
3001
- return A(), x("div", null, [
3002
- D(u, {
3112
+ const u = E("MultiSelect");
3113
+ return A(), O("div", null, [
3114
+ T(u, {
3003
3115
  modelValue: a(t)._value,
3004
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3116
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
3005
3117
  "input-id": a(t).id,
3006
3118
  disabled: a(n)._disabled ?? !1,
3007
3119
  readonly: a(n)._readonly ?? !1,
3008
3120
  "list-style": a(n).style,
3009
- class: q(a(s)),
3121
+ class: U(a(s)),
3010
3122
  tabindex: a(n).tabindex,
3011
3123
  "aria-label": a(n).ariaLabel,
3012
3124
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3019,7 +3131,7 @@ const Ul = /* @__PURE__ */ P({
3019
3131
  ]);
3020
3132
  };
3021
3133
  }
3022
- }), sa = /* @__PURE__ */ P({
3134
+ }), ma = /* @__PURE__ */ x({
3023
3135
  __name: "PrimeListbox",
3024
3136
  props: {
3025
3137
  context: Object
@@ -3032,21 +3144,21 @@ const Ul = /* @__PURE__ */ P({
3032
3144
  }
3033
3145
  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
3146
  return (r, o) => {
3035
- var b;
3036
- const u = T("Listbox");
3037
- return A(), x("div", null, [
3038
- D(u, {
3147
+ var d;
3148
+ const u = E("Listbox");
3149
+ return A(), O("div", null, [
3150
+ T(u, {
3039
3151
  id: a(t).id,
3040
3152
  modelValue: a(t)._value,
3041
- "onUpdate:modelValue": o[0] || (o[0] = (h) => a(t)._value = h),
3153
+ "onUpdate:modelValue": o[0] || (o[0] = (_) => a(t)._value = _),
3042
3154
  disabled: a(n)._disabled ?? !1,
3043
3155
  readonly: a(n)._readonly ?? !1,
3044
3156
  "list-style": a(n).style,
3045
- class: q(a(s)),
3157
+ class: U(a(s)),
3046
3158
  tabindex: a(n).tabindex,
3047
3159
  "aria-label": a(n).ariaLabel,
3048
3160
  "aria-labelledby": a(n).ariaLabelledby,
3049
- options: (b = a(n)) == null ? void 0 : b.options,
3161
+ options: (d = a(n)) == null ? void 0 : d.options,
3050
3162
  "option-label": a(n).optionLabel ?? "label",
3051
3163
  "option-value": a(n).optionValue ?? "value",
3052
3164
  multiple: a(n).multiple ?? !1,
@@ -3062,7 +3174,7 @@ const Ul = /* @__PURE__ */ P({
3062
3174
  ]);
3063
3175
  };
3064
3176
  }
3065
- }), ra = /* @__PURE__ */ P({
3177
+ }), ba = /* @__PURE__ */ x({
3066
3178
  __name: "PrimePassword",
3067
3179
  props: {
3068
3180
  context: Object
@@ -3077,11 +3189,11 @@ const Ul = /* @__PURE__ */ P({
3077
3189
  }
3078
3190
  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
3191
  return (o, u) => {
3080
- const b = T("Password");
3081
- return A(), x("div", null, [
3082
- D(b, {
3192
+ const d = E("Password");
3193
+ return A(), O("div", null, [
3194
+ T(d, {
3083
3195
  modelValue: a(t)._value,
3084
- "onUpdate:modelValue": u[0] || (u[0] = (h) => a(t)._value = h),
3196
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => a(t)._value = _),
3085
3197
  "input-id": a(t).id,
3086
3198
  disabled: a(n)._disabled ?? !1,
3087
3199
  readonly: a(n)._readonly ?? !1,
@@ -3107,7 +3219,45 @@ const Ul = /* @__PURE__ */ P({
3107
3219
  ]);
3108
3220
  };
3109
3221
  }
3110
- }), oa = /* @__PURE__ */ P({
3222
+ }), ya = ["for"], va = /* @__PURE__ */ x({
3223
+ __name: "PrimeRadioButton",
3224
+ props: {
3225
+ context: Object
3226
+ },
3227
+ setup(e) {
3228
+ const i = e, t = i.context, n = t == null ? void 0 : t.attrs;
3229
+ function l(r) {
3230
+ var o;
3231
+ t == null || t.node.input((o = i.context) == null ? void 0 : o._value);
3232
+ }
3233
+ 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);
3234
+ return (r, o) => {
3235
+ const u = E("RadioButton");
3236
+ return A(), O("div", {
3237
+ class: U(a(n).options_class)
3238
+ }, [
3239
+ (A(!0), O(Sn, null, Vn(a(n).options, (d) => (A(), O("div", {
3240
+ key: d.value,
3241
+ class: U(a(n).option_class)
3242
+ }, [
3243
+ T(u, {
3244
+ modelValue: a(t)._value,
3245
+ "onUpdate:modelValue": o[0] || (o[0] = (_) => a(t)._value = _),
3246
+ name: a(n).name,
3247
+ value: d.value,
3248
+ "input-style": a(n).style,
3249
+ "input-class": a(s),
3250
+ onClick: l,
3251
+ onChange: l
3252
+ }, null, 8, ["modelValue", "name", "value", "input-style", "input-class"]),
3253
+ Bt("label", {
3254
+ for: d.value
3255
+ }, ce(d.label), 9, ya)
3256
+ ], 2))), 128))
3257
+ ], 2);
3258
+ };
3259
+ }
3260
+ }), ha = /* @__PURE__ */ x({
3111
3261
  __name: "PrimeRating",
3112
3262
  props: {
3113
3263
  context: Object
@@ -3120,16 +3270,16 @@ const Ul = /* @__PURE__ */ P({
3120
3270
  }
3121
3271
  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
3272
  return (r, o) => {
3123
- const u = T("Rating");
3124
- return A(), x("div", null, [
3125
- D(u, {
3273
+ const u = E("Rating");
3274
+ return A(), O("div", null, [
3275
+ T(u, {
3126
3276
  id: a(t).id,
3127
3277
  modelValue: a(t)._value,
3128
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3278
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
3129
3279
  disabled: a(n)._disabled ?? !1,
3130
3280
  readonly: a(n)._readonly ?? !1,
3131
- style: fe(a(n).style),
3132
- class: q(a(s)),
3281
+ style: pe(a(n).style),
3282
+ class: U(a(s)),
3133
3283
  tabindex: a(n).tabindex,
3134
3284
  "aria-label": a(n).ariaLabel,
3135
3285
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3143,7 +3293,7 @@ const Ul = /* @__PURE__ */ P({
3143
3293
  ]);
3144
3294
  };
3145
3295
  }
3146
- }), ua = /* @__PURE__ */ P({
3296
+ }), _a = /* @__PURE__ */ x({
3147
3297
  __name: "PrimeSlider",
3148
3298
  props: {
3149
3299
  context: Object
@@ -3155,16 +3305,16 @@ const Ul = /* @__PURE__ */ P({
3155
3305
  }
3156
3306
  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
3307
  return (r, o) => {
3158
- const u = T("Slider");
3159
- return A(), x("div", null, [
3160
- D(u, {
3308
+ const u = E("Slider");
3309
+ return A(), O("div", null, [
3310
+ T(u, {
3161
3311
  id: a(t).id,
3162
3312
  modelValue: a(t)._value,
3163
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3313
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
3164
3314
  disabled: a(n)._disabled ?? !1,
3165
3315
  readonly: a(n)._readonly ?? !1,
3166
- style: fe(a(n).style),
3167
- class: q(a(s)),
3316
+ style: pe(a(n).style),
3317
+ class: U(a(s)),
3168
3318
  tabindex: a(n).tabindex,
3169
3319
  "aria-label": a(n).ariaLabel,
3170
3320
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3178,7 +3328,7 @@ const Ul = /* @__PURE__ */ P({
3178
3328
  ]);
3179
3329
  };
3180
3330
  }
3181
- }), fa = /* @__PURE__ */ P({
3331
+ }), ga = /* @__PURE__ */ x({
3182
3332
  __name: "PrimeToggleButton",
3183
3333
  props: {
3184
3334
  context: Object
@@ -3191,11 +3341,11 @@ const Ul = /* @__PURE__ */ P({
3191
3341
  }
3192
3342
  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
3343
  return (r, o) => {
3194
- const u = T("ToggleButton");
3195
- return A(), x("div", null, [
3196
- D(u, {
3344
+ const u = E("ToggleButton");
3345
+ return A(), O("div", null, [
3346
+ T(u, {
3197
3347
  modelValue: a(t)._value,
3198
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3348
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
3199
3349
  "input-id": a(t).id,
3200
3350
  disabled: a(n)._disabled ?? !1,
3201
3351
  readonly: a(n)._readonly ?? !1,
@@ -3214,7 +3364,7 @@ const Ul = /* @__PURE__ */ P({
3214
3364
  ]);
3215
3365
  };
3216
3366
  }
3217
- }), ca = /* @__PURE__ */ P({
3367
+ }), $a = /* @__PURE__ */ x({
3218
3368
  __name: "PrimeSelectButton",
3219
3369
  props: {
3220
3370
  context: Object
@@ -3227,16 +3377,16 @@ const Ul = /* @__PURE__ */ P({
3227
3377
  }
3228
3378
  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
3379
  return (r, o) => {
3230
- const u = T("SelectButton");
3231
- return A(), x("div", null, [
3232
- D(u, {
3380
+ const u = E("SelectButton");
3381
+ return A(), O("div", null, [
3382
+ T(u, {
3233
3383
  id: a(t).id,
3234
3384
  modelValue: a(t)._value,
3235
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3385
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
3236
3386
  disabled: a(n)._disabled ?? !1,
3237
3387
  readonly: a(n)._readonly ?? !1,
3238
- style: fe(a(n).style),
3239
- class: q(a(s)),
3388
+ style: pe(a(n).style),
3389
+ class: U(a(s)),
3240
3390
  tabindex: a(n).tabindex,
3241
3391
  "aria-label": a(n).ariaLabel,
3242
3392
  "aria-labelledby": a(n).ariaLabelledby,
@@ -3252,13 +3402,13 @@ const Ul = /* @__PURE__ */ P({
3252
3402
  ]);
3253
3403
  };
3254
3404
  }
3255
- }), pa = {
3405
+ }), wa = {
3256
3406
  key: 0,
3257
3407
  class: "formkit-prime-left"
3258
- }, da = {
3408
+ }, ka = {
3259
3409
  key: 1,
3260
3410
  class: "formkit-prime-right"
3261
- }, ma = /* @__PURE__ */ P({
3411
+ }, Ca = /* @__PURE__ */ x({
3262
3412
  __name: "PrimeTriStateCheckbox",
3263
3413
  props: {
3264
3414
  context: Object
@@ -3271,12 +3421,12 @@ const Ul = /* @__PURE__ */ P({
3271
3421
  }
3272
3422
  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
3423
  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, {
3424
+ const u = E("TriStateCheckbox");
3425
+ return A(), O("div", null, [
3426
+ a(t).attrs.labelLeft ? (A(), O("span", wa, ce(a(t).attrs.labelLeft), 1)) : oe("", !0),
3427
+ T(u, {
3278
3428
  modelValue: a(t)._value,
3279
- "onUpdate:modelValue": o[0] || (o[0] = (b) => a(t)._value = b),
3429
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => a(t)._value = d),
3280
3430
  "input-id": a(t).id,
3281
3431
  disabled: a(n)._disabled ?? !1,
3282
3432
  readonly: a(n)._readonly ?? !1,
@@ -3287,92 +3437,96 @@ const Ul = /* @__PURE__ */ P({
3287
3437
  "aria-labelledby": a(n).ariaLabelledby,
3288
3438
  onClick: l
3289
3439
  }, 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)
3440
+ a(t).attrs.labelRight ? (A(), O("span", ka, ce(a(t).attrs.labelRight), 1)) : oe("", !0)
3291
3441
  ]);
3292
3442
  };
3293
3443
  }
3294
- }), ba = B(na, {
3444
+ }), Sa = D(fa, {
3295
3445
  props: ["iconRight", "iconLeft"]
3296
- }), ya = B(Gl, {
3446
+ }), Va = D(sa, {
3297
3447
  props: ["iconRight", "iconLeft"]
3298
- }), va = B(Ql, {
3448
+ }), Ia = D(aa, {
3299
3449
  props: []
3300
- }), ha = B(ra, {
3450
+ }), La = D(ba, {
3301
3451
  props: ["feedback", "toggleMask"]
3302
- }), _a = B(ia, {
3452
+ }), Aa = D(ca, {
3303
3453
  props: ["rows"]
3304
- }), ga = B(Kl, {
3454
+ }), Oa = D(ea, {
3455
+ props: []
3456
+ }), Pa = D(ua, {
3305
3457
  props: []
3306
- }), $a = B(ta, {
3458
+ }), xa = D(la, {
3307
3459
  props: []
3308
- }), wa = B(Jl, {
3460
+ }), Ma = D(ia, {
3309
3461
  props: []
3310
- }), ka = B(Yl, {
3462
+ }), ja = D(pa, {
3311
3463
  props: []
3312
- }), Ca = B(aa, {
3464
+ }), Ea = D(ma, {
3313
3465
  props: []
3314
- }), Sa = B(sa, {
3466
+ }), Ra = D(Ql, {
3315
3467
  props: []
3316
- }), Va = B(Ul, {
3468
+ }), Fa = D(_a, {
3317
3469
  props: []
3318
- }), Ia = B(ua, {
3470
+ }), Ta = D(ha, {
3319
3471
  props: []
3320
- }), La = B(oa, {
3472
+ }), Da = D(va, {
3321
3473
  props: []
3322
- }), Oa = B(Hl, {
3474
+ }), Ba = D(ta, {
3323
3475
  props: []
3324
- }), Aa = B(la, {
3476
+ }), za = D(da, {
3325
3477
  props: []
3326
- }), xa = B(Zl, {
3478
+ }), Ua = D(na, {
3327
3479
  props: []
3328
- }), Pa = B(fa, {
3480
+ }), Ka = D(ga, {
3329
3481
  props: []
3330
- }), Ea = B(ca, {
3482
+ }), qa = D($a, {
3331
3483
  props: []
3332
- }), Ma = B(ma, {
3484
+ }), Wa = D(Ca, {
3333
3485
  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
3486
+ }), Ha = {
3487
+ primeInputText: Sa,
3488
+ primeInputNumber: Va,
3489
+ primeInputMask: Ia,
3490
+ primePassword: La,
3491
+ primeCheckbox: Oa,
3492
+ primeInputSwitch: Pa,
3493
+ primeTextarea: Aa,
3494
+ primeEditor: xa,
3495
+ primeDropdown: Ma,
3496
+ primeMultiSelect: ja,
3497
+ primeCalendar: Ra,
3498
+ primeSlider: Fa,
3499
+ primeChips: Ba,
3500
+ primeKnob: za,
3501
+ primeRating: Ta,
3502
+ primeRadioButton: Da,
3503
+ primeColorPicker: Ua,
3504
+ primeToggleButton: Ka,
3505
+ primeListbox: Ea,
3506
+ primeSelectButton: qa,
3507
+ primeTriStateCheckbox: Wa
3355
3508
  };
3356
3509
  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
3510
+ Ra as primeCalendarDefinition,
3511
+ Oa as primeCheckboxDefinition,
3512
+ Ba as primeChipsDefinition,
3513
+ Ua as primeColorPickerDefinition,
3514
+ Ma as primeDropdownDefinition,
3515
+ xa as primeEditorDefinition,
3516
+ Ia as primeInputMaskDefinition,
3517
+ Va as primeInputNumberDefinition,
3518
+ Pa as primeInputSwitchDefinition,
3519
+ Sa as primeInputTextDefinition,
3520
+ Ha as primeInputs,
3521
+ za as primeKnobDefinition,
3522
+ Ea as primeListboxDefinition,
3523
+ ja as primeMultiSelectDefinition,
3524
+ La as primePasswordDefinition,
3525
+ Da as primeRadioButtonDefinition,
3526
+ Ta as primeRatingDefinition,
3527
+ qa as primeSelectButtonDefinition,
3528
+ Fa as primeSliderDefinition,
3529
+ Aa as primeTextareaDefinition,
3530
+ Ka as primeToggleButtonDefinition,
3531
+ Wa as primeTriStateCheckboxDefinition
3378
3532
  };