@opengis/form 0.0.4 → 0.0.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.
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, createElementBlock, openBlock, createElementVNode, renderSlot, createCommentVNode, toDisplayString, normalizeProps, guardReactiveProps, createTextVNode, computed, mergeModels, useModel, withDirectives, normalizeClass, unref, vModelText, vModelRadio, Fragment, renderList, createBlock, resolveDynamicComponent, mergeProps, vModelCheckbox, createVNode, ref, normalizeStyle, withCtx, reactive, watch, onMounted, createStaticVNode, Transition, vShow, inject, nextTick, onUnmounted, withModifiers, Teleport, useAttrs, provide } from "vue";
2
- const _hoisted_1$v = { class: "w-full relative" }, _hoisted_2$b = { class: "text-[14px] font-medium text-gray-900 mb-2" }, _hoisted_3$5 = {
2
+ const _hoisted_1$x = { class: "w-full relative" }, _hoisted_2$b = { class: "text-[14px] font-medium text-gray-900 mb-2" }, _hoisted_3$5 = {
3
3
  key: 0,
4
4
  class: "text-red-500 text-[14px]"
5
5
  }, _hoisted_4$4 = {
6
6
  key: 0,
7
7
  class: "text-red-500 text-[10px] absolute bottom-[-14px]"
8
- }, _sfc_main$A = /* @__PURE__ */ defineComponent({
8
+ }, _sfc_main$C = /* @__PURE__ */ defineComponent({
9
9
  __name: "vs-layout-default",
10
10
  props: {
11
11
  ua: {
@@ -26,7 +26,7 @@ const _hoisted_1$v = { class: "w-full relative" }, _hoisted_2$b = { class: "text
26
26
  }
27
27
  },
28
28
  setup(e) {
29
- return (t, n) => (openBlock(), createElementBlock("div", _hoisted_1$v, [
29
+ return (t, n) => (openBlock(), createElementBlock("div", _hoisted_1$x, [
30
30
  createElementVNode("span", _hoisted_2$b, [
31
31
  createElementVNode("span", null, toDisplayString(e.ua || e.label), 1),
32
32
  e.item?.rules?.includes("required") ? (openBlock(), createElementBlock("span", _hoisted_3$5, "*")) : createCommentVNode("", !0)
@@ -35,13 +35,13 @@ const _hoisted_1$v = { class: "w-full relative" }, _hoisted_2$b = { class: "text
35
35
  e.error ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(e.error), 1)) : createCommentVNode("", !0)
36
36
  ]));
37
37
  }
38
- }), _hoisted_1$u = { class: "w-full relative flex flex-row items-center gap-2" }, _hoisted_2$a = { class: "text-sm text-gray-900 font-medium flex shrink-0 w-3/12" }, _hoisted_3$4 = {
38
+ }), _hoisted_1$w = { class: "w-full relative flex flex-row items-center gap-2" }, _hoisted_2$a = { class: "text-sm text-gray-900 font-medium flex shrink-0 w-3/12" }, _hoisted_3$4 = {
39
39
  key: 0,
40
40
  class: "text-red-500 text-[14px]"
41
41
  }, _hoisted_4$3 = {
42
42
  key: 0,
43
43
  class: "text-red-500 text-[10px] absolute bottom-[-14px]"
44
- }, _sfc_main$z = /* @__PURE__ */ defineComponent({
44
+ }, _sfc_main$B = /* @__PURE__ */ defineComponent({
45
45
  __name: "vs-layout-horizontal",
46
46
  props: {
47
47
  ua: {
@@ -62,7 +62,7 @@ const _hoisted_1$v = { class: "w-full relative" }, _hoisted_2$b = { class: "text
62
62
  }
63
63
  },
64
64
  setup(e) {
65
- return (t, n) => (openBlock(), createElementBlock("div", _hoisted_1$u, [
65
+ return (t, n) => (openBlock(), createElementBlock("div", _hoisted_1$w, [
66
66
  createElementVNode("span", _hoisted_2$a, [
67
67
  createTextVNode(toDisplayString(e.ua || e.label) + " ", 1),
68
68
  e.item?.rules?.includes("required") ? (openBlock(), createElementBlock("span", _hoisted_3$4, "*")) : createCommentVNode("", !0)
@@ -71,10 +71,10 @@ const _hoisted_1$v = { class: "w-full relative" }, _hoisted_2$b = { class: "text
71
71
  e.error ? (openBlock(), createElementBlock("span", _hoisted_4$3, toDisplayString(e.error), 1)) : createCommentVNode("", !0)
72
72
  ]));
73
73
  }
74
- }), _hoisted_1$t = { class: "w-full relative" }, _hoisted_2$9 = {
74
+ }), _hoisted_1$v = { class: "w-full relative" }, _hoisted_2$9 = {
75
75
  key: 0,
76
76
  class: "text-red-500 text-[10px] absolute bottom-[-14px]"
77
- }, _sfc_main$y = /* @__PURE__ */ defineComponent({
77
+ }, _sfc_main$A = /* @__PURE__ */ defineComponent({
78
78
  __name: "vs-layout-inline",
79
79
  props: {
80
80
  ua: {
@@ -95,15 +95,15 @@ const _hoisted_1$v = { class: "w-full relative" }, _hoisted_2$b = { class: "text
95
95
  }
96
96
  },
97
97
  setup(e) {
98
- return (t, n) => (openBlock(), createElementBlock("div", _hoisted_1$t, [
98
+ return (t, n) => (openBlock(), createElementBlock("div", _hoisted_1$v, [
99
99
  renderSlot(t.$slots, "default", normalizeProps(guardReactiveProps(t.$attrs))),
100
100
  e.error ? (openBlock(), createElementBlock("span", _hoisted_2$9, toDisplayString(e.error), 1)) : createCommentVNode("", !0)
101
101
  ]));
102
102
  }
103
103
  }), layouts$1 = {
104
- default: _sfc_main$A,
105
- horizontal: _sfc_main$z,
106
- inline: _sfc_main$y
104
+ default: _sfc_main$C,
105
+ horizontal: _sfc_main$B,
106
+ inline: _sfc_main$A
107
107
  };
108
108
  function useStyle(e) {
109
109
  return {
@@ -113,7 +113,7 @@ function useStyle(e) {
113
113
  })
114
114
  };
115
115
  }
116
- const _hoisted_1$s = ["placeholder", "disabled"], _sfc_main$x = /* @__PURE__ */ defineComponent({
116
+ const _hoisted_1$u = ["placeholder", "disabled"], _sfc_main$z = /* @__PURE__ */ defineComponent({
117
117
  __name: "vs-input-text",
118
118
  props: /* @__PURE__ */ mergeModels({
119
119
  style: {
@@ -138,21 +138,21 @@ const _hoisted_1$s = ["placeholder", "disabled"], _sfc_main$x = /* @__PURE__ */
138
138
  }),
139
139
  emits: ["update:modelValue"],
140
140
  setup(e) {
141
- const t = e, { inputClass: n } = useStyle(t.style), r = useModel(e, "modelValue");
142
- return (o, s) => withDirectives((openBlock(), createElementBlock("input", {
141
+ const t = e, { inputClass: n } = useStyle(t.style), o = useModel(e, "modelValue");
142
+ return (r, s) => withDirectives((openBlock(), createElementBlock("input", {
143
143
  type: "text",
144
- "onUpdate:modelValue": s[0] || (s[0] = (l) => r.value = l),
144
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => o.value = l),
145
145
  placeholder: e.placeholder,
146
146
  disabled: e.disabled,
147
147
  class: normalizeClass(["py-1.5 px-3 block w-full placeholder:text[#767f8f]", [unref(n)]]),
148
148
  style: {
149
149
  border: "1px solid #CFD9E0"
150
150
  }
151
- }, null, 10, _hoisted_1$s)), [
152
- [vModelText, r.value]
151
+ }, null, 10, _hoisted_1$u)), [
152
+ [vModelText, o.value]
153
153
  ]);
154
154
  }
155
- }), _hoisted_1$r = ["placeholder"], _sfc_main$w = /* @__PURE__ */ defineComponent({
155
+ }), _hoisted_1$t = ["placeholder"], _sfc_main$y = /* @__PURE__ */ defineComponent({
156
156
  __name: "vs-input-number",
157
157
  props: /* @__PURE__ */ mergeModels({
158
158
  style: {
@@ -169,20 +169,20 @@ const _hoisted_1$s = ["placeholder", "disabled"], _sfc_main$x = /* @__PURE__ */
169
169
  }),
170
170
  emits: ["update:modelValue"],
171
171
  setup(e) {
172
- const t = e, { inputClass: n } = useStyle(t.style), r = useModel(e, "modelValue");
173
- return (o, s) => withDirectives((openBlock(), createElementBlock("input", {
172
+ const t = e, { inputClass: n } = useStyle(t.style), o = useModel(e, "modelValue");
173
+ return (r, s) => withDirectives((openBlock(), createElementBlock("input", {
174
174
  type: "number",
175
- "onUpdate:modelValue": s[0] || (s[0] = (l) => r.value = l),
175
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => o.value = l),
176
176
  placeholder: e.placeholder,
177
177
  class: normalizeClass(["py-1.5 px-3 block w-full", [unref(n)]]),
178
178
  style: {
179
179
  border: "1px solid #CFD9E0"
180
180
  }
181
- }, null, 10, _hoisted_1$r)), [
182
- [vModelText, r.value]
181
+ }, null, 10, _hoisted_1$t)), [
182
+ [vModelText, o.value]
183
183
  ]);
184
184
  }
185
- }), _hoisted_1$q = ["disabled"], _sfc_main$v = /* @__PURE__ */ defineComponent({
185
+ }), _hoisted_1$s = ["disabled"], _sfc_main$x = /* @__PURE__ */ defineComponent({
186
186
  __name: "vs-input-switcher",
187
187
  props: /* @__PURE__ */ mergeModels({
188
188
  style: {
@@ -204,19 +204,19 @@ const _hoisted_1$s = ["placeholder", "disabled"], _sfc_main$x = /* @__PURE__ */
204
204
  emits: ["update:modelValue"],
205
205
  setup(e) {
206
206
  const t = useModel(e, "modelValue");
207
- return (n, r) => (openBlock(), createElementBlock("button", {
207
+ return (n, o) => (openBlock(), createElementBlock("button", {
208
208
  type: "button",
209
209
  class: normalizeClass(["inline-flex h-5 w-9 shrink-0 px-[2px] cursor-pointer items-center rounded-full shadow-sm disabled:cursor-not-allowed disabled:opacity-50", [`bg-${e.style?.primaryColor || "blue"}-500`, e.customClass]]),
210
210
  disabled: e.disabled,
211
- onClick: r[0] || (r[0] = (o) => t.value = !t.value)
211
+ onClick: o[0] || (o[0] = (r) => t.value = !t.value)
212
212
  }, [
213
213
  createElementVNode("span", {
214
214
  "data-state": "checked",
215
215
  class: normalizeClass(["pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg ring-0 transition-transform", [t.value ? "translate-x-4" : "translate-x-0"]])
216
216
  }, null, 2)
217
- ], 10, _hoisted_1$q));
217
+ ], 10, _hoisted_1$s));
218
218
  }
219
- }), _hoisted_1$p = ["innerHTML"], _sfc_main$u = /* @__PURE__ */ defineComponent({
219
+ }), _hoisted_1$r = ["innerHTML"], _sfc_main$w = /* @__PURE__ */ defineComponent({
220
220
  __name: "vs-input-static",
221
221
  props: {
222
222
  html: {
@@ -232,9 +232,9 @@ const _hoisted_1$s = ["placeholder", "disabled"], _sfc_main$x = /* @__PURE__ */
232
232
  return (t, n) => (openBlock(), createElementBlock("div", {
233
233
  class: normalizeClass(e.customClass),
234
234
  innerHTML: e.html
235
- }, null, 10, _hoisted_1$p));
235
+ }, null, 10, _hoisted_1$r));
236
236
  }
237
- }), _hoisted_1$o = ["placeholder", "disabled"], _sfc_main$t = /* @__PURE__ */ defineComponent({
237
+ }), _hoisted_1$q = ["placeholder", "disabled"], _sfc_main$v = /* @__PURE__ */ defineComponent({
238
238
  __name: "vs-input-mask",
239
239
  props: /* @__PURE__ */ mergeModels({
240
240
  style: {
@@ -259,21 +259,21 @@ const _hoisted_1$s = ["placeholder", "disabled"], _sfc_main$x = /* @__PURE__ */
259
259
  }),
260
260
  emits: ["update:modelValue"],
261
261
  setup(e) {
262
- const t = e, { inputClass: n } = useStyle(t.style), r = useModel(e, "modelValue");
263
- return (o, s) => withDirectives((openBlock(), createElementBlock("input", {
262
+ const t = e, { inputClass: n } = useStyle(t.style), o = useModel(e, "modelValue");
263
+ return (r, s) => withDirectives((openBlock(), createElementBlock("input", {
264
264
  type: "text",
265
- "onUpdate:modelValue": s[0] || (s[0] = (l) => r.value = l),
265
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => o.value = l),
266
266
  placeholder: e.placeholder,
267
267
  disabled: e.disabled,
268
268
  class: normalizeClass(["py-1.5 px-3 block w-full placeholder:text[#767f8f]", [unref(n)]]),
269
269
  style: {
270
270
  border: "1px solid #CFD9E0"
271
271
  }
272
- }, null, 10, _hoisted_1$o)), [
273
- [vModelText, r.value]
272
+ }, null, 10, _hoisted_1$q)), [
273
+ [vModelText, o.value]
274
274
  ]);
275
275
  }
276
- }), _hoisted_1$n = ["value", "disabled"], _hoisted_2$8 = { class: "text-[13px] text-gray-700" }, _sfc_main$s = /* @__PURE__ */ defineComponent({
276
+ }), _hoisted_1$p = ["value", "disabled"], _hoisted_2$8 = { class: "text-[13px] text-gray-700" }, _sfc_main$u = /* @__PURE__ */ defineComponent({
277
277
  __name: "vs-input-radio-default",
278
278
  props: /* @__PURE__ */ mergeModels({
279
279
  text: {
@@ -303,16 +303,16 @@ const _hoisted_1$s = ["placeholder", "disabled"], _sfc_main$x = /* @__PURE__ */
303
303
  emits: ["update:modelValue"],
304
304
  setup(e) {
305
305
  const t = useModel(e, "modelValue");
306
- return (n, r) => (openBlock(), createElementBlock("label", {
306
+ return (n, o) => (openBlock(), createElementBlock("label", {
307
307
  class: normalizeClass(["flex items-center gap-0", [e.customClass]])
308
308
  }, [
309
309
  withDirectives(createElementVNode("input", {
310
- "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
310
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => t.value = r),
311
311
  type: "radio",
312
312
  value: e.value,
313
313
  disabled: e.disabled,
314
314
  class: "hidden"
315
- }, null, 8, _hoisted_1$n), [
315
+ }, null, 8, _hoisted_1$p), [
316
316
  [vModelRadio, t.value]
317
317
  ]),
318
318
  createElementVNode("span", {
@@ -329,7 +329,7 @@ const _hoisted_1$s = ["placeholder", "disabled"], _sfc_main$x = /* @__PURE__ */
329
329
  createElementVNode("span", _hoisted_2$8, toDisplayString(e.text), 1)
330
330
  ], 2));
331
331
  }
332
- }), _hoisted_1$m = ["value", "disabled"], _hoisted_2$7 = { class: "text-[13px] text-gray-700" }, _sfc_main$r = /* @__PURE__ */ defineComponent({
332
+ }), _hoisted_1$o = ["value", "disabled"], _hoisted_2$7 = { class: "text-[13px] text-gray-700" }, _sfc_main$t = /* @__PURE__ */ defineComponent({
333
333
  __name: "vs-input-radio-buttons",
334
334
  props: /* @__PURE__ */ mergeModels({
335
335
  text: {
@@ -359,28 +359,28 @@ const _hoisted_1$s = ["placeholder", "disabled"], _sfc_main$x = /* @__PURE__ */
359
359
  emits: ["update:modelValue"],
360
360
  setup(e) {
361
361
  const t = useModel(e, "modelValue");
362
- return (n, r) => (openBlock(), createElementBlock("label", {
362
+ return (n, o) => (openBlock(), createElementBlock("label", {
363
363
  class: normalizeClass(["flex items-center border rounded-lg px-2 py-1", [
364
364
  t.value == e.value ? `ring-2 ring-ring ring-${e.style?.primaryColor || "blue"}-500` : "",
365
365
  e.customClass
366
366
  ]])
367
367
  }, [
368
368
  withDirectives(createElementVNode("input", {
369
- "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
369
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => t.value = r),
370
370
  type: "radio",
371
371
  value: e.value,
372
372
  disabled: e.disabled,
373
373
  class: "hidden"
374
- }, null, 8, _hoisted_1$m), [
374
+ }, null, 8, _hoisted_1$o), [
375
375
  [vModelRadio, t.value]
376
376
  ]),
377
377
  createElementVNode("span", _hoisted_2$7, toDisplayString(e.text), 1)
378
378
  ], 2));
379
379
  }
380
380
  }), layouts = {
381
- "vs-input-radio-default": _sfc_main$s,
382
- "vs-input-radio-buttons": _sfc_main$r
383
- }, _sfc_main$q = /* @__PURE__ */ defineComponent({
381
+ "vs-input-radio-default": _sfc_main$u,
382
+ "vs-input-radio-buttons": _sfc_main$t
383
+ }, _sfc_main$s = /* @__PURE__ */ defineComponent({
384
384
  __name: "vs-input-radio",
385
385
  props: /* @__PURE__ */ mergeModels({
386
386
  options: {
@@ -401,18 +401,18 @@ const _hoisted_1$s = ["placeholder", "disabled"], _sfc_main$x = /* @__PURE__ */
401
401
  }),
402
402
  emits: ["update:modelValue"],
403
403
  setup(e) {
404
- const t = e, n = useModel(e, "modelValue"), r = computed(() => layouts[`vs-input-radio-${t.view}`]);
405
- return (o, s) => (openBlock(), createElementBlock("div", {
404
+ const t = e, n = useModel(e, "modelValue"), o = computed(() => layouts[`vs-input-radio-${t.view}`]);
405
+ return (r, s) => (openBlock(), createElementBlock("div", {
406
406
  class: normalizeClass([e.position === "horizontal" ? "flex items-center flex-wrap gap-2" : ""])
407
407
  }, [
408
- (openBlock(!0), createElementBlock(Fragment, null, renderList(e.options, (l) => (openBlock(), createBlock(resolveDynamicComponent(r.value), mergeProps({
408
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(e.options, (l) => (openBlock(), createBlock(resolveDynamicComponent(o.value), mergeProps({
409
409
  key: l?.id,
410
410
  text: l.text,
411
411
  value: l.id.toString(),
412
412
  checked: n.value === l.id,
413
413
  modelValue: n.value,
414
414
  "onUpdate:modelValue": s[0] || (s[0] = (i) => n.value = i)
415
- }, { ref_for: !0 }, o.$attrs), null, 16, ["text", "value", "checked", "modelValue"]))), 128))
415
+ }, { ref_for: !0 }, r.$attrs), null, 16, ["text", "value", "checked", "modelValue"]))), 128))
416
416
  ], 2));
417
417
  }
418
418
  });
@@ -438,6 +438,14 @@ const isString = typeOfTest("string"), isFunction = typeOfTest("function"), isNu
438
438
  return !1;
439
439
  const t = getPrototypeOf(e);
440
440
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(toStringTag in e) && !(iterator in e);
441
+ }, isEmptyObject = (e) => {
442
+ if (!isObject(e) || isBuffer(e))
443
+ return !1;
444
+ try {
445
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
446
+ } catch {
447
+ return !1;
448
+ }
441
449
  }, isDate = kindOfTest("Date"), isFile = kindOfTest("File"), isBlob = kindOfTest("Blob"), isFileList = kindOfTest("FileList"), isStream = (e) => isObject(e) && isFunction(e.pipe), isFormData = (e) => {
442
450
  let t;
443
451
  return e && (typeof FormData == "function" && e instanceof FormData || isFunction(e.append) && ((t = kindOf(e)) === "formdata" || // detect form-data instance
@@ -446,56 +454,60 @@ const isString = typeOfTest("string"), isFunction = typeOfTest("function"), isNu
446
454
  function forEach(e, t, { allOwnKeys: n = !1 } = {}) {
447
455
  if (e === null || typeof e > "u")
448
456
  return;
449
- let r, o;
457
+ let o, r;
450
458
  if (typeof e != "object" && (e = [e]), isArray(e))
451
- for (r = 0, o = e.length; r < o; r++)
452
- t.call(null, e[r], r, e);
459
+ for (o = 0, r = e.length; o < r; o++)
460
+ t.call(null, e[o], o, e);
453
461
  else {
462
+ if (isBuffer(e))
463
+ return;
454
464
  const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), l = s.length;
455
465
  let i;
456
- for (r = 0; r < l; r++)
457
- i = s[r], t.call(null, e[i], i, e);
466
+ for (o = 0; o < l; o++)
467
+ i = s[o], t.call(null, e[i], i, e);
458
468
  }
459
469
  }
460
470
  function findKey(e, t) {
471
+ if (isBuffer(e))
472
+ return null;
461
473
  t = t.toLowerCase();
462
474
  const n = Object.keys(e);
463
- let r = n.length, o;
464
- for (; r-- > 0; )
465
- if (o = n[r], t === o.toLowerCase())
466
- return o;
475
+ let o = n.length, r;
476
+ for (; o-- > 0; )
477
+ if (r = n[o], t === r.toLowerCase())
478
+ return r;
467
479
  return null;
468
480
  }
469
481
  const _global = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, isContextDefined = (e) => !isUndefined(e) && e !== _global;
470
482
  function merge() {
471
- const { caseless: e } = isContextDefined(this) && this || {}, t = {}, n = (r, o) => {
472
- const s = e && findKey(t, o) || o;
473
- isPlainObject(t[s]) && isPlainObject(r) ? t[s] = merge(t[s], r) : isPlainObject(r) ? t[s] = merge({}, r) : isArray(r) ? t[s] = r.slice() : t[s] = r;
483
+ const { caseless: e } = isContextDefined(this) && this || {}, t = {}, n = (o, r) => {
484
+ const s = e && findKey(t, r) || r;
485
+ isPlainObject(t[s]) && isPlainObject(o) ? t[s] = merge(t[s], o) : isPlainObject(o) ? t[s] = merge({}, o) : isArray(o) ? t[s] = o.slice() : t[s] = o;
474
486
  };
475
- for (let r = 0, o = arguments.length; r < o; r++)
476
- arguments[r] && forEach(arguments[r], n);
487
+ for (let o = 0, r = arguments.length; o < r; o++)
488
+ arguments[o] && forEach(arguments[o], n);
477
489
  return t;
478
490
  }
479
- const extend = (e, t, n, { allOwnKeys: r } = {}) => (forEach(t, (o, s) => {
480
- n && isFunction(o) ? e[s] = bind(o, n) : e[s] = o;
481
- }, { allOwnKeys: r }), e), stripBOM = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), inherits = (e, t, n, r) => {
482
- e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
491
+ const extend = (e, t, n, { allOwnKeys: o } = {}) => (forEach(t, (r, s) => {
492
+ n && isFunction(r) ? e[s] = bind(r, n) : e[s] = r;
493
+ }, { allOwnKeys: o }), e), stripBOM = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), inherits = (e, t, n, o) => {
494
+ e.prototype = Object.create(t.prototype, o), e.prototype.constructor = e, Object.defineProperty(e, "super", {
483
495
  value: t.prototype
484
496
  }), n && Object.assign(e.prototype, n);
485
- }, toFlatObject = (e, t, n, r) => {
486
- let o, s, l;
497
+ }, toFlatObject = (e, t, n, o) => {
498
+ let r, s, l;
487
499
  const i = {};
488
500
  if (t = t || {}, e == null) return t;
489
501
  do {
490
- for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
491
- l = o[s], (!r || r(l, e, t)) && !i[l] && (t[l] = e[l], i[l] = !0);
502
+ for (r = Object.getOwnPropertyNames(e), s = r.length; s-- > 0; )
503
+ l = r[s], (!o || o(l, e, t)) && !i[l] && (t[l] = e[l], i[l] = !0);
492
504
  e = n !== !1 && getPrototypeOf(e);
493
505
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
494
506
  return t;
495
507
  }, endsWith = (e, t, n) => {
496
508
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
497
- const r = e.indexOf(t, n);
498
- return r !== -1 && r === n;
509
+ const o = e.indexOf(t, n);
510
+ return o !== -1 && o === n;
499
511
  }, toArray = (e) => {
500
512
  if (!e) return null;
501
513
  if (isArray(e)) return e;
@@ -506,35 +518,35 @@ const extend = (e, t, n, { allOwnKeys: r } = {}) => (forEach(t, (o, s) => {
506
518
  n[t] = e[t];
507
519
  return n;
508
520
  }, isTypedArray = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && getPrototypeOf(Uint8Array)), forEachEntry = (e, t) => {
509
- const r = (e && e[iterator]).call(e);
510
- let o;
511
- for (; (o = r.next()) && !o.done; ) {
512
- const s = o.value;
521
+ const o = (e && e[iterator]).call(e);
522
+ let r;
523
+ for (; (r = o.next()) && !r.done; ) {
524
+ const s = r.value;
513
525
  t.call(e, s[0], s[1]);
514
526
  }
515
527
  }, matchAll = (e, t) => {
516
528
  let n;
517
- const r = [];
529
+ const o = [];
518
530
  for (; (n = e.exec(t)) !== null; )
519
- r.push(n);
520
- return r;
531
+ o.push(n);
532
+ return o;
521
533
  }, isHTMLForm = kindOfTest("HTMLFormElement"), toCamelCase = (e) => e.toLowerCase().replace(
522
534
  /[-_\s]([a-z\d])(\w*)/g,
523
- function(n, r, o) {
524
- return r.toUpperCase() + o;
535
+ function(n, o, r) {
536
+ return o.toUpperCase() + r;
525
537
  }
526
538
  ), hasOwnProperty = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), isRegExp = kindOfTest("RegExp"), reduceDescriptors = (e, t) => {
527
- const n = Object.getOwnPropertyDescriptors(e), r = {};
528
- forEach(n, (o, s) => {
539
+ const n = Object.getOwnPropertyDescriptors(e), o = {};
540
+ forEach(n, (r, s) => {
529
541
  let l;
530
- (l = t(o, s, e)) !== !1 && (r[s] = l || o);
531
- }), Object.defineProperties(e, r);
542
+ (l = t(r, s, e)) !== !1 && (o[s] = l || r);
543
+ }), Object.defineProperties(e, o);
532
544
  }, freezeMethods = (e) => {
533
545
  reduceDescriptors(e, (t, n) => {
534
546
  if (isFunction(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
535
547
  return !1;
536
- const r = e[n];
537
- if (isFunction(r)) {
548
+ const o = e[n];
549
+ if (isFunction(o)) {
538
550
  if (t.enumerable = !1, "writable" in t) {
539
551
  t.writable = !1;
540
552
  return;
@@ -545,38 +557,40 @@ const extend = (e, t, n, { allOwnKeys: r } = {}) => (forEach(t, (o, s) => {
545
557
  }
546
558
  });
547
559
  }, toObjectSet = (e, t) => {
548
- const n = {}, r = (o) => {
549
- o.forEach((s) => {
560
+ const n = {}, o = (r) => {
561
+ r.forEach((s) => {
550
562
  n[s] = !0;
551
563
  });
552
564
  };
553
- return isArray(e) ? r(e) : r(String(e).split(t)), n;
565
+ return isArray(e) ? o(e) : o(String(e).split(t)), n;
554
566
  }, noop = () => {
555
567
  }, toFiniteNumber = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
556
568
  function isSpecCompliantForm(e) {
557
569
  return !!(e && isFunction(e.append) && e[toStringTag] === "FormData" && e[iterator]);
558
570
  }
559
571
  const toJSONObject = (e) => {
560
- const t = new Array(10), n = (r, o) => {
561
- if (isObject(r)) {
562
- if (t.indexOf(r) >= 0)
572
+ const t = new Array(10), n = (o, r) => {
573
+ if (isObject(o)) {
574
+ if (t.indexOf(o) >= 0)
563
575
  return;
564
- if (!("toJSON" in r)) {
565
- t[o] = r;
566
- const s = isArray(r) ? [] : {};
567
- return forEach(r, (l, i) => {
568
- const u = n(l, o + 1);
576
+ if (isBuffer(o))
577
+ return o;
578
+ if (!("toJSON" in o)) {
579
+ t[r] = o;
580
+ const s = isArray(o) ? [] : {};
581
+ return forEach(o, (l, i) => {
582
+ const u = n(l, r + 1);
569
583
  !isUndefined(u) && (s[i] = u);
570
- }), t[o] = void 0, s;
584
+ }), t[r] = void 0, s;
571
585
  }
572
586
  }
573
- return r;
587
+ return o;
574
588
  };
575
589
  return n(e, 0);
576
- }, isAsyncFn = kindOfTest("AsyncFunction"), isThenable = (e) => e && (isObject(e) || isFunction(e)) && isFunction(e.then) && isFunction(e.catch), _setImmediate = ((e, t) => e ? setImmediate : t ? ((n, r) => (_global.addEventListener("message", ({ source: o, data: s }) => {
577
- o === _global && s === n && r.length && r.shift()();
578
- }, !1), (o) => {
579
- r.push(o), _global.postMessage(n, "*");
590
+ }, isAsyncFn = kindOfTest("AsyncFunction"), isThenable = (e) => e && (isObject(e) || isFunction(e)) && isFunction(e.then) && isFunction(e.catch), _setImmediate = ((e, t) => e ? setImmediate : t ? ((n, o) => (_global.addEventListener("message", ({ source: r, data: s }) => {
591
+ r === _global && s === n && o.length && o.shift()();
592
+ }, !1), (r) => {
593
+ o.push(r), _global.postMessage(n, "*");
580
594
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
581
595
  typeof setImmediate == "function",
582
596
  isFunction(_global.postMessage)
@@ -591,6 +605,7 @@ const toJSONObject = (e) => {
591
605
  isBoolean,
592
606
  isObject,
593
607
  isPlainObject,
608
+ isEmptyObject,
594
609
  isReadableStream,
595
610
  isRequest,
596
611
  isResponse,
@@ -639,8 +654,8 @@ const toJSONObject = (e) => {
639
654
  asap,
640
655
  isIterable
641
656
  };
642
- function AxiosError$1(e, t, n, r, o) {
643
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
657
+ function AxiosError$1(e, t, n, o, r) {
658
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), o && (this.request = o), r && (this.response = r, this.status = r.status ? r.status : null);
644
659
  }
645
660
  utils$1.inherits(AxiosError$1, Error, {
646
661
  toJSON: function() {
@@ -683,11 +698,11 @@ const prototype$1 = AxiosError$1.prototype, descriptors = {};
683
698
  });
684
699
  Object.defineProperties(AxiosError$1, descriptors);
685
700
  Object.defineProperty(prototype$1, "isAxiosError", { value: !0 });
686
- AxiosError$1.from = (e, t, n, r, o, s) => {
701
+ AxiosError$1.from = (e, t, n, o, r, s) => {
687
702
  const l = Object.create(prototype$1);
688
703
  return utils$1.toFlatObject(e, l, function(u) {
689
704
  return u !== Error.prototype;
690
- }, (i) => i !== "isAxiosError"), AxiosError$1.call(l, e.message, t, n, r, o), l.cause = e, l.name = e.name, s && Object.assign(l, s), l;
705
+ }, (i) => i !== "isAxiosError"), AxiosError$1.call(l, e.message, t, n, o, r), l.cause = e, l.name = e.name, s && Object.assign(l, s), l;
691
706
  };
692
707
  const httpAdapter = null;
693
708
  function isVisitable(e) {
@@ -697,8 +712,8 @@ function removeBrackets(e) {
697
712
  return utils$1.endsWith(e, "[]") ? e.slice(0, -2) : e;
698
713
  }
699
714
  function renderKey(e, t, n) {
700
- return e ? e.concat(t).map(function(o, s) {
701
- return o = removeBrackets(o), !n && s ? "[" + o + "]" : o;
715
+ return e ? e.concat(t).map(function(r, s) {
716
+ return r = removeBrackets(r), !n && s ? "[" + r + "]" : r;
702
717
  }).join(n ? "." : "") : t;
703
718
  }
704
719
  function isFlatArray(e) {
@@ -717,8 +732,8 @@ function toFormData$1(e, t, n) {
717
732
  }, !1, function(y, m) {
718
733
  return !utils$1.isUndefined(m[y]);
719
734
  });
720
- const r = n.metaTokens, o = n.visitor || a, s = n.dots, l = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && utils$1.isSpecCompliantForm(t);
721
- if (!utils$1.isFunction(o))
735
+ const o = n.metaTokens, r = n.visitor || a, s = n.dots, l = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && utils$1.isSpecCompliantForm(t);
736
+ if (!utils$1.isFunction(r))
722
737
  throw new TypeError("visitor must be a function");
723
738
  function c(p) {
724
739
  if (p === null) return "";
@@ -734,7 +749,7 @@ function toFormData$1(e, t, n) {
734
749
  let x = p;
735
750
  if (p && !m && typeof p == "object") {
736
751
  if (utils$1.endsWith(y, "{}"))
737
- y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
752
+ y = o ? y : y.slice(0, -2), p = JSON.stringify(p);
738
753
  else if (utils$1.isArray(p) && isFlatArray(p) || (utils$1.isFileList(p) || utils$1.endsWith(y, "[]")) && (x = utils$1.toArray(p)))
739
754
  return y = removeBrackets(y), x.forEach(function(v, _) {
740
755
  !(utils$1.isUndefined(v) || v === null) && t.append(
@@ -756,7 +771,7 @@ function toFormData$1(e, t, n) {
756
771
  if (d.indexOf(p) !== -1)
757
772
  throw Error("Circular reference detected in " + y.join("."));
758
773
  d.push(p), utils$1.forEach(p, function(x, $) {
759
- (!(utils$1.isUndefined(x) || x === null) && o.call(
774
+ (!(utils$1.isUndefined(x) || x === null) && r.call(
760
775
  t,
761
776
  x,
762
777
  utils$1.isString($) ? $.trim() : $,
@@ -780,8 +795,8 @@ function encode$1(e) {
780
795
  "%20": "+",
781
796
  "%00": "\0"
782
797
  };
783
- return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
784
- return t[r];
798
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(o) {
799
+ return t[o];
785
800
  });
786
801
  }
787
802
  function AxiosURLSearchParams(e, t) {
@@ -792,11 +807,11 @@ prototype.append = function(t, n) {
792
807
  this._pairs.push([t, n]);
793
808
  };
794
809
  prototype.toString = function(t) {
795
- const n = t ? function(r) {
796
- return t.call(this, r, encode$1);
810
+ const n = t ? function(o) {
811
+ return t.call(this, o, encode$1);
797
812
  } : encode$1;
798
- return this._pairs.map(function(o) {
799
- return n(o[0]) + "=" + n(o[1]);
813
+ return this._pairs.map(function(r) {
814
+ return n(r[0]) + "=" + n(r[1]);
800
815
  }, "").join("&");
801
816
  };
802
817
  function encode(e) {
@@ -805,13 +820,13 @@ function encode(e) {
805
820
  function buildURL(e, t, n) {
806
821
  if (!t)
807
822
  return e;
808
- const r = n && n.encode || encode;
823
+ const o = n && n.encode || encode;
809
824
  utils$1.isFunction(n) && (n = {
810
825
  serialize: n
811
826
  });
812
- const o = n && n.serialize;
827
+ const r = n && n.serialize;
813
828
  let s;
814
- if (o ? s = o(t, n) : s = utils$1.isURLSearchParams(t) ? t.toString() : new AxiosURLSearchParams(t, n).toString(r), s) {
829
+ if (r ? s = r(t, n) : s = utils$1.isURLSearchParams(t) ? t.toString() : new AxiosURLSearchParams(t, n).toString(o), s) {
815
830
  const l = e.indexOf("#");
816
831
  l !== -1 && (e = e.slice(0, l)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
817
832
  }
@@ -829,12 +844,12 @@ class InterceptorManager {
829
844
  *
830
845
  * @return {Number} An ID used to remove interceptor later
831
846
  */
832
- use(t, n, r) {
847
+ use(t, n, o) {
833
848
  return this.handlers.push({
834
849
  fulfilled: t,
835
850
  rejected: n,
836
- synchronous: r ? r.synchronous : !1,
837
- runWhen: r ? r.runWhen : null
851
+ synchronous: o ? o.synchronous : !1,
852
+ runWhen: o ? o.runWhen : null
838
853
  }), this.handlers.length - 1;
839
854
  }
840
855
  /**
@@ -866,8 +881,8 @@ class InterceptorManager {
866
881
  * @returns {void}
867
882
  */
868
883
  forEach(t) {
869
- utils$1.forEach(this.handlers, function(r) {
870
- r !== null && t(r);
884
+ utils$1.forEach(this.handlers, function(o) {
885
+ o !== null && t(o);
871
886
  });
872
887
  }
873
888
  }
@@ -896,35 +911,36 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", or
896
911
  ...platform$1
897
912
  };
898
913
  function toURLEncodedForm(e, t) {
899
- return toFormData$1(e, new platform.classes.URLSearchParams(), Object.assign({
900
- visitor: function(n, r, o, s) {
901
- return platform.isNode && utils$1.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
902
- }
903
- }, t));
914
+ return toFormData$1(e, new platform.classes.URLSearchParams(), {
915
+ visitor: function(n, o, r, s) {
916
+ return platform.isNode && utils$1.isBuffer(n) ? (this.append(o, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
917
+ },
918
+ ...t
919
+ });
904
920
  }
905
921
  function parsePropPath(e) {
906
922
  return utils$1.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
907
923
  }
908
924
  function arrayToObject(e) {
909
925
  const t = {}, n = Object.keys(e);
910
- let r;
911
- const o = n.length;
926
+ let o;
927
+ const r = n.length;
912
928
  let s;
913
- for (r = 0; r < o; r++)
914
- s = n[r], t[s] = e[s];
929
+ for (o = 0; o < r; o++)
930
+ s = n[o], t[s] = e[s];
915
931
  return t;
916
932
  }
917
933
  function formDataToJSON(e) {
918
- function t(n, r, o, s) {
934
+ function t(n, o, r, s) {
919
935
  let l = n[s++];
920
936
  if (l === "__proto__") return !0;
921
937
  const i = Number.isFinite(+l), u = s >= n.length;
922
- return l = !l && utils$1.isArray(o) ? o.length : l, u ? (utils$1.hasOwnProp(o, l) ? o[l] = [o[l], r] : o[l] = r, !i) : ((!o[l] || !utils$1.isObject(o[l])) && (o[l] = []), t(n, r, o[l], s) && utils$1.isArray(o[l]) && (o[l] = arrayToObject(o[l])), !i);
938
+ return l = !l && utils$1.isArray(r) ? r.length : l, u ? (utils$1.hasOwnProp(r, l) ? r[l] = [r[l], o] : r[l] = o, !i) : ((!r[l] || !utils$1.isObject(r[l])) && (r[l] = []), t(n, o, r[l], s) && utils$1.isArray(r[l]) && (r[l] = arrayToObject(r[l])), !i);
923
939
  }
924
940
  if (utils$1.isFormData(e) && utils$1.isFunction(e.entries)) {
925
941
  const n = {};
926
- return utils$1.forEachEntry(e, (r, o) => {
927
- t(parsePropPath(r), o, n, 0);
942
+ return utils$1.forEachEntry(e, (o, r) => {
943
+ t(parsePropPath(o), r, n, 0);
928
944
  }), n;
929
945
  }
930
946
  return null;
@@ -933,9 +949,9 @@ function stringifySafely(e, t, n) {
933
949
  if (utils$1.isString(e))
934
950
  try {
935
951
  return (t || JSON.parse)(e), utils$1.trim(e);
936
- } catch (r) {
937
- if (r.name !== "SyntaxError")
938
- throw r;
952
+ } catch (o) {
953
+ if (o.name !== "SyntaxError")
954
+ throw o;
939
955
  }
940
956
  return (n || JSON.stringify)(e);
941
957
  }
@@ -943,9 +959,9 @@ const defaults = {
943
959
  transitional: transitionalDefaults,
944
960
  adapter: ["xhr", "http", "fetch"],
945
961
  transformRequest: [function(t, n) {
946
- const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = utils$1.isObject(t);
962
+ const o = n.getContentType() || "", r = o.indexOf("application/json") > -1, s = utils$1.isObject(t);
947
963
  if (s && utils$1.isHTMLForm(t) && (t = new FormData(t)), utils$1.isFormData(t))
948
- return o ? JSON.stringify(formDataToJSON(t)) : t;
964
+ return r ? JSON.stringify(formDataToJSON(t)) : t;
949
965
  if (utils$1.isArrayBuffer(t) || utils$1.isBuffer(t) || utils$1.isStream(t) || utils$1.isFile(t) || utils$1.isBlob(t) || utils$1.isReadableStream(t))
950
966
  return t;
951
967
  if (utils$1.isArrayBufferView(t))
@@ -954,9 +970,9 @@ const defaults = {
954
970
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
955
971
  let i;
956
972
  if (s) {
957
- if (r.indexOf("application/x-www-form-urlencoded") > -1)
973
+ if (o.indexOf("application/x-www-form-urlencoded") > -1)
958
974
  return toURLEncodedForm(t, this.formSerializer).toString();
959
- if ((i = utils$1.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
975
+ if ((i = utils$1.isFileList(t)) || o.indexOf("multipart/form-data") > -1) {
960
976
  const u = this.env && this.env.FormData;
961
977
  return toFormData$1(
962
978
  i ? { "files[]": t } : t,
@@ -965,14 +981,14 @@ const defaults = {
965
981
  );
966
982
  }
967
983
  }
968
- return s || o ? (n.setContentType("application/json", !1), stringifySafely(t)) : t;
984
+ return s || r ? (n.setContentType("application/json", !1), stringifySafely(t)) : t;
969
985
  }],
970
986
  transformResponse: [function(t) {
971
- const n = this.transitional || defaults.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
987
+ const n = this.transitional || defaults.transitional, o = n && n.forcedJSONParsing, r = this.responseType === "json";
972
988
  if (utils$1.isResponse(t) || utils$1.isReadableStream(t))
973
989
  return t;
974
- if (t && utils$1.isString(t) && (r && !this.responseType || o)) {
975
- const l = !(n && n.silentJSONParsing) && o;
990
+ if (t && utils$1.isString(t) && (o && !this.responseType || r)) {
991
+ const l = !(n && n.silentJSONParsing) && r;
976
992
  try {
977
993
  return JSON.parse(t);
978
994
  } catch (i) {
@@ -1028,10 +1044,10 @@ const ignoreDuplicateOf = utils$1.toObjectSet([
1028
1044
  "user-agent"
1029
1045
  ]), parseHeaders = (e) => {
1030
1046
  const t = {};
1031
- let n, r, o;
1047
+ let n, o, r;
1032
1048
  return e && e.split(`
1033
1049
  `).forEach(function(l) {
1034
- o = l.indexOf(":"), n = l.substring(0, o).trim().toLowerCase(), r = l.substring(o + 1).trim(), !(!n || t[n] && ignoreDuplicateOf[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
1050
+ r = l.indexOf(":"), n = l.substring(0, r).trim().toLowerCase(), o = l.substring(r + 1).trim(), !(!n || t[n] && ignoreDuplicateOf[n]) && (n === "set-cookie" ? t[n] ? t[n].push(o) : t[n] = [o] : t[n] = t[n] ? t[n] + ", " + o : o);
1035
1051
  }), t;
1036
1052
  }, $internals = Symbol("internals");
1037
1053
  function normalizeHeader(e) {
@@ -1042,31 +1058,31 @@ function normalizeValue(e) {
1042
1058
  }
1043
1059
  function parseTokens(e) {
1044
1060
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1045
- let r;
1046
- for (; r = n.exec(e); )
1047
- t[r[1]] = r[2];
1061
+ let o;
1062
+ for (; o = n.exec(e); )
1063
+ t[o[1]] = o[2];
1048
1064
  return t;
1049
1065
  }
1050
1066
  const isValidHeaderName = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1051
- function matchHeaderValue(e, t, n, r, o) {
1052
- if (utils$1.isFunction(r))
1053
- return r.call(this, t, n);
1054
- if (o && (t = n), !!utils$1.isString(t)) {
1055
- if (utils$1.isString(r))
1056
- return t.indexOf(r) !== -1;
1057
- if (utils$1.isRegExp(r))
1058
- return r.test(t);
1067
+ function matchHeaderValue(e, t, n, o, r) {
1068
+ if (utils$1.isFunction(o))
1069
+ return o.call(this, t, n);
1070
+ if (r && (t = n), !!utils$1.isString(t)) {
1071
+ if (utils$1.isString(o))
1072
+ return t.indexOf(o) !== -1;
1073
+ if (utils$1.isRegExp(o))
1074
+ return o.test(t);
1059
1075
  }
1060
1076
  }
1061
1077
  function formatHeader(e) {
1062
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
1078
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, o) => n.toUpperCase() + o);
1063
1079
  }
1064
1080
  function buildAccessors(e, t) {
1065
1081
  const n = utils$1.toCamelCase(" " + t);
1066
- ["get", "set", "has"].forEach((r) => {
1067
- Object.defineProperty(e, r + n, {
1068
- value: function(o, s, l) {
1069
- return this[r].call(this, t, o, s, l);
1082
+ ["get", "set", "has"].forEach((o) => {
1083
+ Object.defineProperty(e, o + n, {
1084
+ value: function(r, s, l) {
1085
+ return this[o].call(this, t, r, s, l);
1070
1086
  },
1071
1087
  configurable: !0
1072
1088
  });
@@ -1076,14 +1092,14 @@ let AxiosHeaders$1 = class {
1076
1092
  constructor(t) {
1077
1093
  t && this.set(t);
1078
1094
  }
1079
- set(t, n, r) {
1080
- const o = this;
1095
+ set(t, n, o) {
1096
+ const r = this;
1081
1097
  function s(i, u, c) {
1082
1098
  const a = normalizeHeader(u);
1083
1099
  if (!a)
1084
1100
  throw new Error("header name must be a non-empty string");
1085
- const d = utils$1.findKey(o, a);
1086
- (!d || o[d] === void 0 || c === !0 || c === void 0 && o[d] !== !1) && (o[d || u] = normalizeValue(i));
1101
+ const d = utils$1.findKey(r, a);
1102
+ (!d || r[d] === void 0 || c === !0 || c === void 0 && r[d] !== !1) && (r[d || u] = normalizeValue(i));
1087
1103
  }
1088
1104
  const l = (i, u) => utils$1.forEach(i, (c, a) => s(c, a, u));
1089
1105
  if (utils$1.isPlainObject(t) || t instanceof this.constructor)
@@ -1099,63 +1115,63 @@ let AxiosHeaders$1 = class {
1099
1115
  }
1100
1116
  l(i, n);
1101
1117
  } else
1102
- t != null && s(n, t, r);
1118
+ t != null && s(n, t, o);
1103
1119
  return this;
1104
1120
  }
1105
1121
  get(t, n) {
1106
1122
  if (t = normalizeHeader(t), t) {
1107
- const r = utils$1.findKey(this, t);
1108
- if (r) {
1109
- const o = this[r];
1123
+ const o = utils$1.findKey(this, t);
1124
+ if (o) {
1125
+ const r = this[o];
1110
1126
  if (!n)
1111
- return o;
1127
+ return r;
1112
1128
  if (n === !0)
1113
- return parseTokens(o);
1129
+ return parseTokens(r);
1114
1130
  if (utils$1.isFunction(n))
1115
- return n.call(this, o, r);
1131
+ return n.call(this, r, o);
1116
1132
  if (utils$1.isRegExp(n))
1117
- return n.exec(o);
1133
+ return n.exec(r);
1118
1134
  throw new TypeError("parser must be boolean|regexp|function");
1119
1135
  }
1120
1136
  }
1121
1137
  }
1122
1138
  has(t, n) {
1123
1139
  if (t = normalizeHeader(t), t) {
1124
- const r = utils$1.findKey(this, t);
1125
- return !!(r && this[r] !== void 0 && (!n || matchHeaderValue(this, this[r], r, n)));
1140
+ const o = utils$1.findKey(this, t);
1141
+ return !!(o && this[o] !== void 0 && (!n || matchHeaderValue(this, this[o], o, n)));
1126
1142
  }
1127
1143
  return !1;
1128
1144
  }
1129
1145
  delete(t, n) {
1130
- const r = this;
1131
- let o = !1;
1146
+ const o = this;
1147
+ let r = !1;
1132
1148
  function s(l) {
1133
1149
  if (l = normalizeHeader(l), l) {
1134
- const i = utils$1.findKey(r, l);
1135
- i && (!n || matchHeaderValue(r, r[i], i, n)) && (delete r[i], o = !0);
1150
+ const i = utils$1.findKey(o, l);
1151
+ i && (!n || matchHeaderValue(o, o[i], i, n)) && (delete o[i], r = !0);
1136
1152
  }
1137
1153
  }
1138
- return utils$1.isArray(t) ? t.forEach(s) : s(t), o;
1154
+ return utils$1.isArray(t) ? t.forEach(s) : s(t), r;
1139
1155
  }
1140
1156
  clear(t) {
1141
1157
  const n = Object.keys(this);
1142
- let r = n.length, o = !1;
1143
- for (; r--; ) {
1144
- const s = n[r];
1145
- (!t || matchHeaderValue(this, this[s], s, t, !0)) && (delete this[s], o = !0);
1158
+ let o = n.length, r = !1;
1159
+ for (; o--; ) {
1160
+ const s = n[o];
1161
+ (!t || matchHeaderValue(this, this[s], s, t, !0)) && (delete this[s], r = !0);
1146
1162
  }
1147
- return o;
1163
+ return r;
1148
1164
  }
1149
1165
  normalize(t) {
1150
- const n = this, r = {};
1151
- return utils$1.forEach(this, (o, s) => {
1152
- const l = utils$1.findKey(r, s);
1166
+ const n = this, o = {};
1167
+ return utils$1.forEach(this, (r, s) => {
1168
+ const l = utils$1.findKey(o, s);
1153
1169
  if (l) {
1154
- n[l] = normalizeValue(o), delete n[s];
1170
+ n[l] = normalizeValue(r), delete n[s];
1155
1171
  return;
1156
1172
  }
1157
1173
  const i = t ? formatHeader(s) : String(s).trim();
1158
- i !== s && delete n[s], n[i] = normalizeValue(o), r[i] = !0;
1174
+ i !== s && delete n[s], n[i] = normalizeValue(r), o[i] = !0;
1159
1175
  }), this;
1160
1176
  }
1161
1177
  concat(...t) {
@@ -1163,8 +1179,8 @@ let AxiosHeaders$1 = class {
1163
1179
  }
1164
1180
  toJSON(t) {
1165
1181
  const n = /* @__PURE__ */ Object.create(null);
1166
- return utils$1.forEach(this, (r, o) => {
1167
- r != null && r !== !1 && (n[o] = t && utils$1.isArray(r) ? r.join(", ") : r);
1182
+ return utils$1.forEach(this, (o, r) => {
1183
+ o != null && o !== !1 && (n[r] = t && utils$1.isArray(o) ? o.join(", ") : o);
1168
1184
  }), n;
1169
1185
  }
1170
1186
  [Symbol.iterator]() {
@@ -1184,16 +1200,16 @@ let AxiosHeaders$1 = class {
1184
1200
  return t instanceof this ? t : new this(t);
1185
1201
  }
1186
1202
  static concat(t, ...n) {
1187
- const r = new this(t);
1188
- return n.forEach((o) => r.set(o)), r;
1203
+ const o = new this(t);
1204
+ return n.forEach((r) => o.set(r)), o;
1189
1205
  }
1190
1206
  static accessor(t) {
1191
- const r = (this[$internals] = this[$internals] = {
1207
+ const o = (this[$internals] = this[$internals] = {
1192
1208
  accessors: {}
1193
- }).accessors, o = this.prototype;
1209
+ }).accessors, r = this.prototype;
1194
1210
  function s(l) {
1195
1211
  const i = normalizeHeader(l);
1196
- r[i] || (buildAccessors(o, l), r[i] = !0);
1212
+ o[i] || (buildAccessors(r, l), o[i] = !0);
1197
1213
  }
1198
1214
  return utils$1.isArray(t) ? t.forEach(s) : s(t), this;
1199
1215
  }
@@ -1203,18 +1219,18 @@ utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value: e }, t) => {
1203
1219
  let n = t[0].toUpperCase() + t.slice(1);
1204
1220
  return {
1205
1221
  get: () => e,
1206
- set(r) {
1207
- this[n] = r;
1222
+ set(o) {
1223
+ this[n] = o;
1208
1224
  }
1209
1225
  };
1210
1226
  });
1211
1227
  utils$1.freezeMethods(AxiosHeaders$1);
1212
1228
  function transformData(e, t) {
1213
- const n = this || defaults, r = t || n, o = AxiosHeaders$1.from(r.headers);
1214
- let s = r.data;
1229
+ const n = this || defaults, o = t || n, r = AxiosHeaders$1.from(o.headers);
1230
+ let s = o.data;
1215
1231
  return utils$1.forEach(e, function(i) {
1216
- s = i.call(n, s, o.normalize(), t ? t.status : void 0);
1217
- }), o.normalize(), s;
1232
+ s = i.call(n, s, r.normalize(), t ? t.status : void 0);
1233
+ }), r.normalize(), s;
1218
1234
  }
1219
1235
  function isCancel$1(e) {
1220
1236
  return !!(e && e.__CANCEL__);
@@ -1226,8 +1242,8 @@ utils$1.inherits(CanceledError$1, AxiosError$1, {
1226
1242
  __CANCEL__: !0
1227
1243
  });
1228
1244
  function settle(e, t, n) {
1229
- const r = n.config.validateStatus;
1230
- !n.status || !r || r(n.status) ? e(n) : t(new AxiosError$1(
1245
+ const o = n.config.validateStatus;
1246
+ !n.status || !o || o(n.status) ? e(n) : t(new AxiosError$1(
1231
1247
  "Request failed with status code " + n.status,
1232
1248
  [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1233
1249
  n.config,
@@ -1241,38 +1257,38 @@ function parseProtocol(e) {
1241
1257
  }
1242
1258
  function speedometer(e, t) {
1243
1259
  e = e || 10;
1244
- const n = new Array(e), r = new Array(e);
1245
- let o = 0, s = 0, l;
1260
+ const n = new Array(e), o = new Array(e);
1261
+ let r = 0, s = 0, l;
1246
1262
  return t = t !== void 0 ? t : 1e3, function(u) {
1247
- const c = Date.now(), a = r[s];
1248
- l || (l = c), n[o] = u, r[o] = c;
1263
+ const c = Date.now(), a = o[s];
1264
+ l || (l = c), n[r] = u, o[r] = c;
1249
1265
  let d = s, f = 0;
1250
- for (; d !== o; )
1266
+ for (; d !== r; )
1251
1267
  f += n[d++], d = d % e;
1252
- if (o = (o + 1) % e, o === s && (s = (s + 1) % e), c - l < t)
1268
+ if (r = (r + 1) % e, r === s && (s = (s + 1) % e), c - l < t)
1253
1269
  return;
1254
1270
  const h = a && c - a;
1255
1271
  return h ? Math.round(f * 1e3 / h) : void 0;
1256
1272
  };
1257
1273
  }
1258
1274
  function throttle(e, t) {
1259
- let n = 0, r = 1e3 / t, o, s;
1275
+ let n = 0, o = 1e3 / t, r, s;
1260
1276
  const l = (c, a = Date.now()) => {
1261
- n = a, o = null, s && (clearTimeout(s), s = null), e.apply(null, c);
1277
+ n = a, r = null, s && (clearTimeout(s), s = null), e(...c);
1262
1278
  };
1263
1279
  return [(...c) => {
1264
1280
  const a = Date.now(), d = a - n;
1265
- d >= r ? l(c, a) : (o = c, s || (s = setTimeout(() => {
1266
- s = null, l(o);
1267
- }, r - d)));
1268
- }, () => o && l(o)];
1281
+ d >= o ? l(c, a) : (r = c, s || (s = setTimeout(() => {
1282
+ s = null, l(r);
1283
+ }, o - d)));
1284
+ }, () => r && l(r)];
1269
1285
  }
1270
1286
  const progressEventReducer = (e, t, n = 3) => {
1271
- let r = 0;
1272
- const o = speedometer(50, 250);
1287
+ let o = 0;
1288
+ const r = speedometer(50, 250);
1273
1289
  return throttle((s) => {
1274
- const l = s.loaded, i = s.lengthComputable ? s.total : void 0, u = l - r, c = o(u), a = l <= i;
1275
- r = l;
1290
+ const l = s.loaded, i = s.lengthComputable ? s.total : void 0, u = l - o, c = r(u), a = l <= i;
1291
+ o = l;
1276
1292
  const d = {
1277
1293
  loaded: l,
1278
1294
  total: i,
@@ -1288,10 +1304,10 @@ const progressEventReducer = (e, t, n = 3) => {
1288
1304
  }, n);
1289
1305
  }, progressEventDecorator = (e, t) => {
1290
1306
  const n = e != null;
1291
- return [(r) => t[0]({
1307
+ return [(o) => t[0]({
1292
1308
  lengthComputable: n,
1293
1309
  total: e,
1294
- loaded: r
1310
+ loaded: o
1295
1311
  }), t[1]];
1296
1312
  }, asyncDecorator = (e) => (...t) => utils$1.asap(() => e(...t)), isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, platform.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1297
1313
  new URL(platform.origin),
@@ -1299,9 +1315,9 @@ const progressEventReducer = (e, t, n = 3) => {
1299
1315
  ) : () => !0, cookies = platform.hasStandardBrowserEnv ? (
1300
1316
  // Standard browser envs support document.cookie
1301
1317
  {
1302
- write(e, t, n, r, o, s) {
1318
+ write(e, t, n, o, r, s) {
1303
1319
  const l = [e + "=" + encodeURIComponent(t)];
1304
- utils$1.isNumber(n) && l.push("expires=" + new Date(n).toGMTString()), utils$1.isString(r) && l.push("path=" + r), utils$1.isString(o) && l.push("domain=" + o), s === !0 && l.push("secure"), document.cookie = l.join("; ");
1320
+ utils$1.isNumber(n) && l.push("expires=" + new Date(n).toGMTString()), utils$1.isString(o) && l.push("path=" + o), utils$1.isString(r) && l.push("domain=" + r), s === !0 && l.push("secure"), document.cookie = l.join("; ");
1305
1321
  },
1306
1322
  read(e) {
1307
1323
  const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
@@ -1330,37 +1346,37 @@ function combineURLs(e, t) {
1330
1346
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1331
1347
  }
1332
1348
  function buildFullPath(e, t, n) {
1333
- let r = !isAbsoluteURL(t);
1334
- return e && (r || n == !1) ? combineURLs(e, t) : t;
1349
+ let o = !isAbsoluteURL(t);
1350
+ return e && (o || n == !1) ? combineURLs(e, t) : t;
1335
1351
  }
1336
1352
  const headersToObject = (e) => e instanceof AxiosHeaders$1 ? { ...e } : e;
1337
1353
  function mergeConfig$1(e, t) {
1338
1354
  t = t || {};
1339
1355
  const n = {};
1340
- function r(c, a, d, f) {
1356
+ function o(c, a, d, f) {
1341
1357
  return utils$1.isPlainObject(c) && utils$1.isPlainObject(a) ? utils$1.merge.call({ caseless: f }, c, a) : utils$1.isPlainObject(a) ? utils$1.merge({}, a) : utils$1.isArray(a) ? a.slice() : a;
1342
1358
  }
1343
- function o(c, a, d, f) {
1359
+ function r(c, a, d, f) {
1344
1360
  if (utils$1.isUndefined(a)) {
1345
1361
  if (!utils$1.isUndefined(c))
1346
- return r(void 0, c, d, f);
1347
- } else return r(c, a, d, f);
1362
+ return o(void 0, c, d, f);
1363
+ } else return o(c, a, d, f);
1348
1364
  }
1349
1365
  function s(c, a) {
1350
1366
  if (!utils$1.isUndefined(a))
1351
- return r(void 0, a);
1367
+ return o(void 0, a);
1352
1368
  }
1353
1369
  function l(c, a) {
1354
1370
  if (utils$1.isUndefined(a)) {
1355
1371
  if (!utils$1.isUndefined(c))
1356
- return r(void 0, c);
1357
- } else return r(void 0, a);
1372
+ return o(void 0, c);
1373
+ } else return o(void 0, a);
1358
1374
  }
1359
1375
  function i(c, a, d) {
1360
1376
  if (d in t)
1361
- return r(c, a);
1377
+ return o(c, a);
1362
1378
  if (d in e)
1363
- return r(void 0, c);
1379
+ return o(void 0, c);
1364
1380
  }
1365
1381
  const u = {
1366
1382
  url: s,
@@ -1391,16 +1407,16 @@ function mergeConfig$1(e, t) {
1391
1407
  socketPath: l,
1392
1408
  responseEncoding: l,
1393
1409
  validateStatus: i,
1394
- headers: (c, a, d) => o(headersToObject(c), headersToObject(a), d, !0)
1410
+ headers: (c, a, d) => r(headersToObject(c), headersToObject(a), d, !0)
1395
1411
  };
1396
- return utils$1.forEach(Object.keys(Object.assign({}, e, t)), function(a) {
1397
- const d = u[a] || o, f = d(e[a], t[a], a);
1412
+ return utils$1.forEach(Object.keys({ ...e, ...t }), function(a) {
1413
+ const d = u[a] || r, f = d(e[a], t[a], a);
1398
1414
  utils$1.isUndefined(f) && d !== i || (n[a] = f);
1399
1415
  }), n;
1400
1416
  }
1401
1417
  const resolveConfig = (e) => {
1402
1418
  const t = mergeConfig$1({}, e);
1403
- let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: l, auth: i } = t;
1419
+ let { data: n, withXSRFToken: o, xsrfHeaderName: r, xsrfCookieName: s, headers: l, auth: i } = t;
1404
1420
  t.headers = l = AxiosHeaders$1.from(l), t.url = buildURL(buildFullPath(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && l.set(
1405
1421
  "Authorization",
1406
1422
  "Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
@@ -1414,22 +1430,22 @@ const resolveConfig = (e) => {
1414
1430
  l.setContentType([c || "multipart/form-data", ...a].join("; "));
1415
1431
  }
1416
1432
  }
1417
- if (platform.hasStandardBrowserEnv && (r && utils$1.isFunction(r) && (r = r(t)), r || r !== !1 && isURLSameOrigin(t.url))) {
1418
- const c = o && s && cookies.read(s);
1419
- c && l.set(o, c);
1433
+ if (platform.hasStandardBrowserEnv && (o && utils$1.isFunction(o) && (o = o(t)), o || o !== !1 && isURLSameOrigin(t.url))) {
1434
+ const c = r && s && cookies.read(s);
1435
+ c && l.set(r, c);
1420
1436
  }
1421
1437
  return t;
1422
1438
  }, isXHRAdapterSupported = typeof XMLHttpRequest < "u", xhrAdapter = isXHRAdapterSupported && function(e) {
1423
- return new Promise(function(n, r) {
1424
- const o = resolveConfig(e);
1425
- let s = o.data;
1426
- const l = AxiosHeaders$1.from(o.headers).normalize();
1427
- let { responseType: i, onUploadProgress: u, onDownloadProgress: c } = o, a, d, f, h, p;
1439
+ return new Promise(function(n, o) {
1440
+ const r = resolveConfig(e);
1441
+ let s = r.data;
1442
+ const l = AxiosHeaders$1.from(r.headers).normalize();
1443
+ let { responseType: i, onUploadProgress: u, onDownloadProgress: c } = r, a, d, f, h, p;
1428
1444
  function y() {
1429
- h && h(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(a), o.signal && o.signal.removeEventListener("abort", a);
1445
+ h && h(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(a), r.signal && r.signal.removeEventListener("abort", a);
1430
1446
  }
1431
1447
  let m = new XMLHttpRequest();
1432
- m.open(o.method.toUpperCase(), o.url, !0), m.timeout = o.timeout;
1448
+ m.open(r.method.toUpperCase(), r.url, !0), m.timeout = r.timeout;
1433
1449
  function x() {
1434
1450
  if (!m)
1435
1451
  return;
@@ -1443,22 +1459,22 @@ const resolveConfig = (e) => {
1443
1459
  config: e,
1444
1460
  request: m
1445
1461
  };
1446
- settle(function(g) {
1447
- n(g), y();
1448
- }, function(g) {
1449
- r(g), y();
1462
+ settle(function(S) {
1463
+ n(S), y();
1464
+ }, function(S) {
1465
+ o(S), y();
1450
1466
  }, k), m = null;
1451
1467
  }
1452
1468
  "onloadend" in m ? m.onloadend = x : m.onreadystatechange = function() {
1453
1469
  !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(x);
1454
1470
  }, m.onabort = function() {
1455
- m && (r(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, e, m)), m = null);
1471
+ m && (o(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, e, m)), m = null);
1456
1472
  }, m.onerror = function() {
1457
- r(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, e, m)), m = null;
1473
+ o(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, e, m)), m = null;
1458
1474
  }, m.ontimeout = function() {
1459
- let _ = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1460
- const k = o.transitional || transitionalDefaults;
1461
- o.timeoutErrorMessage && (_ = o.timeoutErrorMessage), r(new AxiosError$1(
1475
+ let _ = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
1476
+ const k = r.transitional || transitionalDefaults;
1477
+ r.timeoutErrorMessage && (_ = r.timeoutErrorMessage), o(new AxiosError$1(
1462
1478
  _,
1463
1479
  k.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
1464
1480
  e,
@@ -1466,12 +1482,12 @@ const resolveConfig = (e) => {
1466
1482
  )), m = null;
1467
1483
  }, s === void 0 && l.setContentType(null), "setRequestHeader" in m && utils$1.forEach(l.toJSON(), function(_, k) {
1468
1484
  m.setRequestHeader(k, _);
1469
- }), utils$1.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), i && i !== "json" && (m.responseType = o.responseType), c && ([f, p] = progressEventReducer(c, !0), m.addEventListener("progress", f)), u && m.upload && ([d, h] = progressEventReducer(u), m.upload.addEventListener("progress", d), m.upload.addEventListener("loadend", h)), (o.cancelToken || o.signal) && (a = (v) => {
1470
- m && (r(!v || v.type ? new CanceledError$1(null, e, m) : v), m.abort(), m = null);
1471
- }, o.cancelToken && o.cancelToken.subscribe(a), o.signal && (o.signal.aborted ? a() : o.signal.addEventListener("abort", a)));
1472
- const $ = parseProtocol(o.url);
1485
+ }), utils$1.isUndefined(r.withCredentials) || (m.withCredentials = !!r.withCredentials), i && i !== "json" && (m.responseType = r.responseType), c && ([f, p] = progressEventReducer(c, !0), m.addEventListener("progress", f)), u && m.upload && ([d, h] = progressEventReducer(u), m.upload.addEventListener("progress", d), m.upload.addEventListener("loadend", h)), (r.cancelToken || r.signal) && (a = (v) => {
1486
+ m && (o(!v || v.type ? new CanceledError$1(null, e, m) : v), m.abort(), m = null);
1487
+ }, r.cancelToken && r.cancelToken.subscribe(a), r.signal && (r.signal.aborted ? a() : r.signal.addEventListener("abort", a)));
1488
+ const $ = parseProtocol(r.url);
1473
1489
  if ($ && platform.protocols.indexOf($) === -1) {
1474
- r(new AxiosError$1("Unsupported protocol " + $ + ":", AxiosError$1.ERR_BAD_REQUEST, e));
1490
+ o(new AxiosError$1("Unsupported protocol " + $ + ":", AxiosError$1.ERR_BAD_REQUEST, e));
1475
1491
  return;
1476
1492
  }
1477
1493
  m.send(s || null);
@@ -1479,12 +1495,12 @@ const resolveConfig = (e) => {
1479
1495
  }, composeSignals = (e, t) => {
1480
1496
  const { length: n } = e = e ? e.filter(Boolean) : [];
1481
1497
  if (t || n) {
1482
- let r = new AbortController(), o;
1498
+ let o = new AbortController(), r;
1483
1499
  const s = function(c) {
1484
- if (!o) {
1485
- o = !0, i();
1500
+ if (!r) {
1501
+ r = !0, i();
1486
1502
  const a = c instanceof Error ? c : this.reason;
1487
- r.abort(a instanceof AxiosError$1 ? a : new CanceledError$1(a instanceof Error ? a.message : a));
1503
+ o.abort(a instanceof AxiosError$1 ? a : new CanceledError$1(a instanceof Error ? a.message : a));
1488
1504
  }
1489
1505
  };
1490
1506
  let l = t && setTimeout(() => {
@@ -1496,7 +1512,7 @@ const resolveConfig = (e) => {
1496
1512
  }), e = null);
1497
1513
  };
1498
1514
  e.forEach((c) => c.addEventListener("abort", s));
1499
- const { signal: u } = r;
1515
+ const { signal: u } = o;
1500
1516
  return u.unsubscribe = () => utils$1.asap(i), u;
1501
1517
  }
1502
1518
  }, streamChunk = function* (e, t) {
@@ -1505,9 +1521,9 @@ const resolveConfig = (e) => {
1505
1521
  yield e;
1506
1522
  return;
1507
1523
  }
1508
- let r = 0, o;
1509
- for (; r < n; )
1510
- o = r + t, yield e.slice(r, o), r = o;
1524
+ let o = 0, r;
1525
+ for (; o < n; )
1526
+ r = o + t, yield e.slice(o, r), o = r;
1511
1527
  }, readBytes = async function* (e, t) {
1512
1528
  for await (const n of readStream(e))
1513
1529
  yield* streamChunk(n, t);
@@ -1519,23 +1535,23 @@ const resolveConfig = (e) => {
1519
1535
  const t = e.getReader();
1520
1536
  try {
1521
1537
  for (; ; ) {
1522
- const { done: n, value: r } = await t.read();
1538
+ const { done: n, value: o } = await t.read();
1523
1539
  if (n)
1524
1540
  break;
1525
- yield r;
1541
+ yield o;
1526
1542
  }
1527
1543
  } finally {
1528
1544
  await t.cancel();
1529
1545
  }
1530
- }, trackStream = (e, t, n, r) => {
1531
- const o = readBytes(e, t);
1546
+ }, trackStream = (e, t, n, o) => {
1547
+ const r = readBytes(e, t);
1532
1548
  let s = 0, l, i = (u) => {
1533
- l || (l = !0, r && r(u));
1549
+ l || (l = !0, o && o(u));
1534
1550
  };
1535
1551
  return new ReadableStream({
1536
1552
  async pull(u) {
1537
1553
  try {
1538
- const { done: c, value: a } = await o.next();
1554
+ const { done: c, value: a } = await r.next();
1539
1555
  if (c) {
1540
1556
  i(), u.close();
1541
1557
  return;
@@ -1551,7 +1567,7 @@ const resolveConfig = (e) => {
1551
1567
  }
1552
1568
  },
1553
1569
  cancel(u) {
1554
- return i(u), o.return();
1570
+ return i(u), r.return();
1555
1571
  }
1556
1572
  }, {
1557
1573
  highWaterMark: 2
@@ -1577,8 +1593,8 @@ const resolveConfig = (e) => {
1577
1593
  };
1578
1594
  isFetchSupported && ((e) => {
1579
1595
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1580
- !resolvers[t] && (resolvers[t] = utils$1.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1581
- throw new AxiosError$1(`Response type '${t}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, r);
1596
+ !resolvers[t] && (resolvers[t] = utils$1.isFunction(e[t]) ? (n) => n[t]() : (n, o) => {
1597
+ throw new AxiosError$1(`Response type '${t}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, o);
1582
1598
  });
1583
1599
  });
1584
1600
  })(new Response());
@@ -1603,8 +1619,8 @@ const getBodyLength = async (e) => {
1603
1619
  let {
1604
1620
  url: t,
1605
1621
  method: n,
1606
- data: r,
1607
- signal: o,
1622
+ data: o,
1623
+ signal: r,
1608
1624
  cancelToken: s,
1609
1625
  timeout: l,
1610
1626
  onDownloadProgress: i,
@@ -1615,24 +1631,24 @@ const getBodyLength = async (e) => {
1615
1631
  fetchOptions: f
1616
1632
  } = resolveConfig(e);
1617
1633
  c = c ? (c + "").toLowerCase() : "text";
1618
- let h = composeSignals([o, s && s.toAbortSignal()], l), p;
1634
+ let h = composeSignals([r, s && s.toAbortSignal()], l), p;
1619
1635
  const y = h && h.unsubscribe && (() => {
1620
1636
  h.unsubscribe();
1621
1637
  });
1622
1638
  let m;
1623
1639
  try {
1624
- if (u && supportsRequestStream && n !== "get" && n !== "head" && (m = await resolveBodyLength(a, r)) !== 0) {
1640
+ if (u && supportsRequestStream && n !== "get" && n !== "head" && (m = await resolveBodyLength(a, o)) !== 0) {
1625
1641
  let k = new Request(t, {
1626
1642
  method: "POST",
1627
- body: r,
1643
+ body: o,
1628
1644
  duplex: "half"
1629
- }), b;
1630
- if (utils$1.isFormData(r) && (b = k.headers.get("content-type")) && a.setContentType(b), k.body) {
1631
- const [g, w] = progressEventDecorator(
1645
+ }), E;
1646
+ if (utils$1.isFormData(o) && (E = k.headers.get("content-type")) && a.setContentType(E), k.body) {
1647
+ const [S, C] = progressEventDecorator(
1632
1648
  m,
1633
1649
  progressEventReducer(asyncDecorator(u))
1634
1650
  );
1635
- r = trackStream(k.body, DEFAULT_CHUNK_SIZE, g, w);
1651
+ o = trackStream(k.body, DEFAULT_CHUNK_SIZE, S, C);
1636
1652
  }
1637
1653
  }
1638
1654
  utils$1.isString(d) || (d = d ? "include" : "omit");
@@ -1642,7 +1658,7 @@ const getBodyLength = async (e) => {
1642
1658
  signal: h,
1643
1659
  method: n.toUpperCase(),
1644
1660
  headers: a.normalize().toJSON(),
1645
- body: r,
1661
+ body: o,
1646
1662
  duplex: "half",
1647
1663
  credentials: x ? d : void 0
1648
1664
  });
@@ -1650,24 +1666,24 @@ const getBodyLength = async (e) => {
1650
1666
  const v = supportsResponseStream && (c === "stream" || c === "response");
1651
1667
  if (supportsResponseStream && (i || v && y)) {
1652
1668
  const k = {};
1653
- ["status", "statusText", "headers"].forEach((E) => {
1654
- k[E] = $[E];
1669
+ ["status", "statusText", "headers"].forEach((b) => {
1670
+ k[b] = $[b];
1655
1671
  });
1656
- const b = utils$1.toFiniteNumber($.headers.get("content-length")), [g, w] = i && progressEventDecorator(
1657
- b,
1672
+ const E = utils$1.toFiniteNumber($.headers.get("content-length")), [S, C] = i && progressEventDecorator(
1673
+ E,
1658
1674
  progressEventReducer(asyncDecorator(i), !0)
1659
1675
  ) || [];
1660
1676
  $ = new Response(
1661
- trackStream($.body, DEFAULT_CHUNK_SIZE, g, () => {
1662
- w && w(), y && y();
1677
+ trackStream($.body, DEFAULT_CHUNK_SIZE, S, () => {
1678
+ C && C(), y && y();
1663
1679
  }),
1664
1680
  k
1665
1681
  );
1666
1682
  }
1667
1683
  c = c || "text";
1668
1684
  let _ = await resolvers[utils$1.findKey(resolvers, c) || "text"]($, e);
1669
- return !v && y && y(), await new Promise((k, b) => {
1670
- settle(k, b, {
1685
+ return !v && y && y(), await new Promise((k, E) => {
1686
+ settle(k, E, {
1671
1687
  data: _,
1672
1688
  headers: AxiosHeaders$1.from($.headers),
1673
1689
  status: $.status,
@@ -1702,19 +1718,19 @@ const renderReason = (e) => `- ${e}`, isResolvedHandle = (e) => utils$1.isFuncti
1702
1718
  getAdapter: (e) => {
1703
1719
  e = utils$1.isArray(e) ? e : [e];
1704
1720
  const { length: t } = e;
1705
- let n, r;
1706
- const o = {};
1721
+ let n, o;
1722
+ const r = {};
1707
1723
  for (let s = 0; s < t; s++) {
1708
1724
  n = e[s];
1709
1725
  let l;
1710
- if (r = n, !isResolvedHandle(n) && (r = knownAdapters[(l = String(n)).toLowerCase()], r === void 0))
1726
+ if (o = n, !isResolvedHandle(n) && (o = knownAdapters[(l = String(n)).toLowerCase()], o === void 0))
1711
1727
  throw new AxiosError$1(`Unknown adapter '${l}'`);
1712
- if (r)
1728
+ if (o)
1713
1729
  break;
1714
- o[l || "#" + s] = r;
1730
+ r[l || "#" + s] = o;
1715
1731
  }
1716
- if (!r) {
1717
- const s = Object.entries(o).map(
1732
+ if (!o) {
1733
+ const s = Object.entries(r).map(
1718
1734
  ([i, u]) => `adapter ${i} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1719
1735
  );
1720
1736
  let l = t ? s.length > 1 ? `since :
@@ -1725,7 +1741,7 @@ const renderReason = (e) => `- ${e}`, isResolvedHandle = (e) => utils$1.isFuncti
1725
1741
  "ERR_NOT_SUPPORT"
1726
1742
  );
1727
1743
  }
1728
- return r;
1744
+ return o;
1729
1745
  },
1730
1746
  adapters: knownAdapters
1731
1747
  };
@@ -1737,39 +1753,39 @@ function dispatchRequest(e) {
1737
1753
  return throwIfCancellationRequested(e), e.headers = AxiosHeaders$1.from(e.headers), e.data = transformData.call(
1738
1754
  e,
1739
1755
  e.transformRequest
1740
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), adapters.getAdapter(e.adapter || defaults.adapter)(e).then(function(r) {
1741
- return throwIfCancellationRequested(e), r.data = transformData.call(
1756
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), adapters.getAdapter(e.adapter || defaults.adapter)(e).then(function(o) {
1757
+ return throwIfCancellationRequested(e), o.data = transformData.call(
1742
1758
  e,
1743
1759
  e.transformResponse,
1744
- r
1745
- ), r.headers = AxiosHeaders$1.from(r.headers), r;
1746
- }, function(r) {
1747
- return isCancel$1(r) || (throwIfCancellationRequested(e), r && r.response && (r.response.data = transformData.call(
1760
+ o
1761
+ ), o.headers = AxiosHeaders$1.from(o.headers), o;
1762
+ }, function(o) {
1763
+ return isCancel$1(o) || (throwIfCancellationRequested(e), o && o.response && (o.response.data = transformData.call(
1748
1764
  e,
1749
1765
  e.transformResponse,
1750
- r.response
1751
- ), r.response.headers = AxiosHeaders$1.from(r.response.headers))), Promise.reject(r);
1766
+ o.response
1767
+ ), o.response.headers = AxiosHeaders$1.from(o.response.headers))), Promise.reject(o);
1752
1768
  });
1753
1769
  }
1754
- const VERSION$1 = "1.10.0", validators$1 = {};
1770
+ const VERSION$1 = "1.11.0", validators$1 = {};
1755
1771
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1756
- validators$1[e] = function(r) {
1757
- return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1772
+ validators$1[e] = function(o) {
1773
+ return typeof o === e || "a" + (t < 1 ? "n " : " ") + e;
1758
1774
  };
1759
1775
  });
1760
1776
  const deprecatedWarnings = {};
1761
- validators$1.transitional = function(t, n, r) {
1762
- function o(s, l) {
1763
- return "[Axios v" + VERSION$1 + "] Transitional option '" + s + "'" + l + (r ? ". " + r : "");
1777
+ validators$1.transitional = function(t, n, o) {
1778
+ function r(s, l) {
1779
+ return "[Axios v" + VERSION$1 + "] Transitional option '" + s + "'" + l + (o ? ". " + o : "");
1764
1780
  }
1765
1781
  return (s, l, i) => {
1766
1782
  if (t === !1)
1767
1783
  throw new AxiosError$1(
1768
- o(l, " has been removed" + (n ? " in " + n : "")),
1784
+ r(l, " has been removed" + (n ? " in " + n : "")),
1769
1785
  AxiosError$1.ERR_DEPRECATED
1770
1786
  );
1771
1787
  return n && !deprecatedWarnings[l] && (deprecatedWarnings[l] = !0, console.warn(
1772
- o(
1788
+ r(
1773
1789
  l,
1774
1790
  " has been deprecated since v" + n + " and will be removed in the near future"
1775
1791
  )
@@ -1777,15 +1793,15 @@ validators$1.transitional = function(t, n, r) {
1777
1793
  };
1778
1794
  };
1779
1795
  validators$1.spelling = function(t) {
1780
- return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1796
+ return (n, o) => (console.warn(`${o} is likely a misspelling of ${t}`), !0);
1781
1797
  };
1782
1798
  function assertOptions(e, t, n) {
1783
1799
  if (typeof e != "object")
1784
1800
  throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
1785
- const r = Object.keys(e);
1786
- let o = r.length;
1787
- for (; o-- > 0; ) {
1788
- const s = r[o], l = t[s];
1801
+ const o = Object.keys(e);
1802
+ let r = o.length;
1803
+ for (; r-- > 0; ) {
1804
+ const s = o[r], l = t[s];
1789
1805
  if (l) {
1790
1806
  const i = e[s], u = i === void 0 || l(i, s, e);
1791
1807
  if (u !== !0)
@@ -1818,30 +1834,30 @@ let Axios$1 = class {
1818
1834
  async request(t, n) {
1819
1835
  try {
1820
1836
  return await this._request(t, n);
1821
- } catch (r) {
1822
- if (r instanceof Error) {
1823
- let o = {};
1824
- Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
1825
- const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1837
+ } catch (o) {
1838
+ if (o instanceof Error) {
1839
+ let r = {};
1840
+ Error.captureStackTrace ? Error.captureStackTrace(r) : r = new Error();
1841
+ const s = r.stack ? r.stack.replace(/^.+\n/, "") : "";
1826
1842
  try {
1827
- r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
1828
- ` + s) : r.stack = s;
1843
+ o.stack ? s && !String(o.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (o.stack += `
1844
+ ` + s) : o.stack = s;
1829
1845
  } catch {
1830
1846
  }
1831
1847
  }
1832
- throw r;
1848
+ throw o;
1833
1849
  }
1834
1850
  }
1835
1851
  _request(t, n) {
1836
1852
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = mergeConfig$1(this.defaults, n);
1837
- const { transitional: r, paramsSerializer: o, headers: s } = n;
1838
- r !== void 0 && validator.assertOptions(r, {
1853
+ const { transitional: o, paramsSerializer: r, headers: s } = n;
1854
+ o !== void 0 && validator.assertOptions(o, {
1839
1855
  silentJSONParsing: validators.transitional(validators.boolean),
1840
1856
  forcedJSONParsing: validators.transitional(validators.boolean),
1841
1857
  clarifyTimeoutError: validators.transitional(validators.boolean)
1842
- }, !1), o != null && (utils$1.isFunction(o) ? n.paramsSerializer = {
1843
- serialize: o
1844
- } : validator.assertOptions(o, {
1858
+ }, !1), r != null && (utils$1.isFunction(r) ? n.paramsSerializer = {
1859
+ serialize: r
1860
+ } : validator.assertOptions(r, {
1845
1861
  encode: validators.function,
1846
1862
  serialize: validators.function
1847
1863
  }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), validator.assertOptions(n, {
@@ -1870,7 +1886,7 @@ let Axios$1 = class {
1870
1886
  let a, d = 0, f;
1871
1887
  if (!u) {
1872
1888
  const p = [dispatchRequest.bind(this), void 0];
1873
- for (p.unshift.apply(p, i), p.push.apply(p, c), f = p.length, a = Promise.resolve(n); d < f; )
1889
+ for (p.unshift(...i), p.push(...c), f = p.length, a = Promise.resolve(n); d < f; )
1874
1890
  a = a.then(p[d++], p[d++]);
1875
1891
  return a;
1876
1892
  }
@@ -1901,20 +1917,20 @@ let Axios$1 = class {
1901
1917
  }
1902
1918
  };
1903
1919
  utils$1.forEach(["delete", "get", "head", "options"], function(t) {
1904
- Axios$1.prototype[t] = function(n, r) {
1905
- return this.request(mergeConfig$1(r || {}, {
1920
+ Axios$1.prototype[t] = function(n, o) {
1921
+ return this.request(mergeConfig$1(o || {}, {
1906
1922
  method: t,
1907
1923
  url: n,
1908
- data: (r || {}).data
1924
+ data: (o || {}).data
1909
1925
  }));
1910
1926
  };
1911
1927
  });
1912
1928
  utils$1.forEach(["post", "put", "patch"], function(t) {
1913
- function n(r) {
1929
+ function n(o) {
1914
1930
  return function(s, l, i) {
1915
1931
  return this.request(mergeConfig$1(i || {}, {
1916
1932
  method: t,
1917
- headers: r ? {
1933
+ headers: o ? {
1918
1934
  "Content-Type": "multipart/form-data"
1919
1935
  } : {},
1920
1936
  url: s,
@@ -1924,7 +1940,7 @@ utils$1.forEach(["post", "put", "patch"], function(t) {
1924
1940
  }
1925
1941
  Axios$1.prototype[t] = n(), Axios$1.prototype[t + "Form"] = n(!0);
1926
1942
  });
1927
- let CancelToken$1 = class C {
1943
+ let CancelToken$1 = class V {
1928
1944
  constructor(t) {
1929
1945
  if (typeof t != "function")
1930
1946
  throw new TypeError("executor must be a function.");
@@ -1932,23 +1948,23 @@ let CancelToken$1 = class C {
1932
1948
  this.promise = new Promise(function(s) {
1933
1949
  n = s;
1934
1950
  });
1935
- const r = this;
1936
- this.promise.then((o) => {
1937
- if (!r._listeners) return;
1938
- let s = r._listeners.length;
1951
+ const o = this;
1952
+ this.promise.then((r) => {
1953
+ if (!o._listeners) return;
1954
+ let s = o._listeners.length;
1939
1955
  for (; s-- > 0; )
1940
- r._listeners[s](o);
1941
- r._listeners = null;
1942
- }), this.promise.then = (o) => {
1956
+ o._listeners[s](r);
1957
+ o._listeners = null;
1958
+ }), this.promise.then = (r) => {
1943
1959
  let s;
1944
1960
  const l = new Promise((i) => {
1945
- r.subscribe(i), s = i;
1946
- }).then(o);
1961
+ o.subscribe(i), s = i;
1962
+ }).then(r);
1947
1963
  return l.cancel = function() {
1948
- r.unsubscribe(s);
1964
+ o.unsubscribe(s);
1949
1965
  }, l;
1950
1966
  }, t(function(s, l, i) {
1951
- r.reason || (r.reason = new CanceledError$1(s, l, i), n(r.reason));
1967
+ o.reason || (o.reason = new CanceledError$1(s, l, i), n(o.reason));
1952
1968
  });
1953
1969
  }
1954
1970
  /**
@@ -1978,8 +1994,8 @@ let CancelToken$1 = class C {
1978
1994
  n !== -1 && this._listeners.splice(n, 1);
1979
1995
  }
1980
1996
  toAbortSignal() {
1981
- const t = new AbortController(), n = (r) => {
1982
- t.abort(r);
1997
+ const t = new AbortController(), n = (o) => {
1998
+ t.abort(o);
1983
1999
  };
1984
2000
  return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1985
2001
  }
@@ -1990,8 +2006,8 @@ let CancelToken$1 = class C {
1990
2006
  static source() {
1991
2007
  let t;
1992
2008
  return {
1993
- token: new C(function(o) {
1994
- t = o;
2009
+ token: new V(function(r) {
2010
+ t = r;
1995
2011
  }),
1996
2012
  cancel: t
1997
2013
  };
@@ -2075,8 +2091,8 @@ Object.entries(HttpStatusCode$1).forEach(([e, t]) => {
2075
2091
  });
2076
2092
  function createInstance(e) {
2077
2093
  const t = new Axios$1(e), n = bind(Axios$1.prototype.request, t);
2078
- return utils$1.extend(n, Axios$1.prototype, t, { allOwnKeys: !0 }), utils$1.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
2079
- return createInstance(mergeConfig$1(e, o));
2094
+ return utils$1.extend(n, Axios$1.prototype, t, { allOwnKeys: !0 }), utils$1.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
2095
+ return createInstance(mergeConfig$1(e, r));
2080
2096
  }, n;
2081
2097
  }
2082
2098
  const axios = createInstance(defaults);
@@ -2118,10 +2134,10 @@ const {
2118
2134
  mergeConfig
2119
2135
  } = axios, _export_sfc = (e, t) => {
2120
2136
  const n = e.__vccOpts || e;
2121
- for (const [r, o] of t)
2122
- n[r] = o;
2137
+ for (const [o, r] of t)
2138
+ n[o] = r;
2123
2139
  return n;
2124
- }, _sfc_main$p = {}, _hoisted_1$l = {
2140
+ }, _sfc_main$r = {}, _hoisted_1$n = {
2125
2141
  xmlns: "http://www.w3.org/2000/svg",
2126
2142
  viewBox: "0 0 24 24",
2127
2143
  fill: "none",
@@ -2131,8 +2147,8 @@ const {
2131
2147
  "stroke-linejoin": "round",
2132
2148
  class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
2133
2149
  };
2134
- function _sfc_render$b(e, t) {
2135
- return openBlock(), createElementBlock("svg", _hoisted_1$l, t[0] || (t[0] = [
2150
+ function _sfc_render$c(e, t) {
2151
+ return openBlock(), createElementBlock("svg", _hoisted_1$n, t[0] || (t[0] = [
2136
2152
  createElementVNode("path", {
2137
2153
  stroke: "none",
2138
2154
  d: "M0 0h24v24H0z",
@@ -2141,7 +2157,7 @@ function _sfc_render$b(e, t) {
2141
2157
  createElementVNode("path", { d: "M5 12l5 5l10 -10" }, null, -1)
2142
2158
  ]));
2143
2159
  }
2144
- const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$b]]), _hoisted_1$k = { class: "flex items-center gap-[4px]" }, _hoisted_2$6 = ["value", "id", "disabled"], _hoisted_3$3 = ["for"], _hoisted_4$2 = { class: "text-[13px] text-gray-700 flex items-center gap-x-1 ml-1 dark:text-neutral-400" }, _sfc_main$o = /* @__PURE__ */ defineComponent({
2160
+ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$c]]), _hoisted_1$m = { class: "flex items-center gap-[4px]" }, _hoisted_2$6 = ["value", "id", "disabled"], _hoisted_3$3 = ["for"], _hoisted_4$2 = { class: "text-[13px] text-gray-700 flex items-center gap-x-1 ml-1 dark:text-neutral-400" }, _sfc_main$q = /* @__PURE__ */ defineComponent({
2145
2161
  __name: "vs-checkbox-default",
2146
2162
  props: {
2147
2163
  value: { type: [String, Number], default: "" },
@@ -2153,27 +2169,27 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2153
2169
  },
2154
2170
  emits: ["update:modelValue"],
2155
2171
  setup(e, { emit: t }) {
2156
- const n = t, r = e, o = computed({
2157
- get: () => r.modelValue,
2172
+ const n = t, o = e, r = computed({
2173
+ get: () => o.modelValue,
2158
2174
  set: (s) => n("update:modelValue", s)
2159
2175
  });
2160
- return (s, l) => (openBlock(), createElementBlock("div", _hoisted_1$k, [
2176
+ return (s, l) => (openBlock(), createElementBlock("div", _hoisted_1$m, [
2161
2177
  withDirectives(createElementVNode("input", {
2162
2178
  type: "checkbox",
2163
2179
  value: e.value,
2164
- "onUpdate:modelValue": l[0] || (l[0] = (i) => o.value = i),
2180
+ "onUpdate:modelValue": l[0] || (l[0] = (i) => r.value = i),
2165
2181
  class: normalizeClass(["shrink-0 border border-solid hidden border-gray-200 w-3.5 h-3.5 rounded text-blue-600 focus:ring-offset-0 dark:bg-neutral-800 dark:border-neutral-700 cursor-pointer", { "!cursor-not-allowed": e.disabled }]),
2166
2182
  id: e.id,
2167
2183
  disabled: e.disabled
2168
2184
  }, null, 10, _hoisted_2$6), [
2169
- [vModelCheckbox, o.value]
2185
+ [vModelCheckbox, r.value]
2170
2186
  ]),
2171
2187
  createElementVNode("label", {
2172
2188
  for: e.id,
2173
2189
  class: normalizeClass(["flex flex-1 checkbox-label items-center gap-x-3 cursor-pointer text-sm text-gray-800 dark:text-neutral-300", { "!cursor-not-allowed": e.disabled }])
2174
2190
  }, [
2175
2191
  createElementVNode("div", {
2176
- class: normalizeClass(["h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded", [o.value ? "bg-blue-600" : "bg-white"]])
2192
+ class: normalizeClass(["h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded", [r.value ? "bg-blue-600" : "bg-white"]])
2177
2193
  }, [
2178
2194
  createVNode(IconCheck, {
2179
2195
  height: "12",
@@ -2188,10 +2204,10 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2188
2204
  ], 10, _hoisted_3$3)
2189
2205
  ]));
2190
2206
  }
2191
- }), _hoisted_1$j = ["name", "value", "disabled"], _hoisted_2$5 = { class: "flex items-center gap-[6px] text-[14px]" }, _hoisted_3$2 = {
2207
+ }), _hoisted_1$l = ["name", "value", "disabled"], _hoisted_2$5 = { class: "flex items-center gap-[6px] text-[14px]" }, _hoisted_3$2 = {
2192
2208
  key: 0,
2193
2209
  class: "text-[16px]"
2194
- }, _hoisted_4$1 = ["src"], _sfc_main$n = /* @__PURE__ */ defineComponent({
2210
+ }, _hoisted_4$1 = ["src"], _sfc_main$p = /* @__PURE__ */ defineComponent({
2195
2211
  __name: "vs-checkbox-buttons",
2196
2212
  props: {
2197
2213
  value: { type: [String, Number, Boolean], default: "" },
@@ -2208,12 +2224,12 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2208
2224
  },
2209
2225
  emits: ["update:modelValue"],
2210
2226
  setup(e, { emit: t }) {
2211
- const n = e, r = t, o = computed({
2227
+ const n = e, o = t, r = computed({
2212
2228
  get: () => n.modelValue,
2213
2229
  set: (i) => {
2214
- r("update:modelValue", i);
2230
+ o("update:modelValue", i);
2215
2231
  }
2216
- }), s = computed(() => Array.isArray(o.value) ? o.value.includes(n.value) : o.value === !0 || o.value === n.value), l = computed(() => n.style?.size === "xs" ? "p-1.5 text-xs" : n.style?.size === "lg" ? "p-3.5 text-[20px]" : "p-2.5 text-xs");
2232
+ }), s = computed(() => Array.isArray(r.value) ? r.value.includes(n.value) : r.value === !0 || r.value === n.value), l = computed(() => n.style?.size === "xs" ? "p-1.5 text-xs" : n.style?.size === "lg" ? "p-3.5 text-[20px]" : "p-2.5 text-xs");
2217
2233
  return (i, u) => (openBlock(), createElementBlock("label", {
2218
2234
  class: normalizeClass(["group relative flex justify-center items-center gap-x-3 text-center bg-white text-gray-800 ring-ring ring-2 cursor-pointer rounded-lg", [l.value, s.value ? "ring-blue-500" : "border border-gray-200 ring-transparent"]])
2219
2235
  }, [
@@ -2222,10 +2238,10 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2222
2238
  class: "hidden",
2223
2239
  name: e.id,
2224
2240
  value: e.value,
2225
- "onUpdate:modelValue": u[0] || (u[0] = (c) => o.value = c),
2241
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
2226
2242
  disabled: e.disabled
2227
- }, null, 8, _hoisted_1$j), [
2228
- [vModelCheckbox, o.value]
2243
+ }, null, 8, _hoisted_1$l), [
2244
+ [vModelCheckbox, r.value]
2229
2245
  ]),
2230
2246
  createElementVNode("span", _hoisted_2$5, [
2231
2247
  e.icon || e.imgUrl ? (openBlock(), createElementBlock("span", _hoisted_3$2, [
@@ -2248,9 +2264,9 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2248
2264
  ], 2));
2249
2265
  }
2250
2266
  }), VsCheckboxViews = {
2251
- "vs-checkbox-default": _sfc_main$o,
2252
- "vs-checkbox-buttons": _sfc_main$n
2253
- }, _hoisted_1$i = { class: "flex items-center" }, _sfc_main$m = /* @__PURE__ */ defineComponent({
2267
+ "vs-checkbox-default": _sfc_main$q,
2268
+ "vs-checkbox-buttons": _sfc_main$p
2269
+ }, _hoisted_1$k = { class: "flex items-center" }, _sfc_main$o = /* @__PURE__ */ defineComponent({
2254
2270
  __name: "vs-input-checkbox-item",
2255
2271
  props: {
2256
2272
  value: { type: [String, Number], default: "" },
@@ -2269,17 +2285,17 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2269
2285
  },
2270
2286
  emits: ["update:modelValue"],
2271
2287
  setup(e, { emit: t }) {
2272
- const n = e, r = t, o = `radio-${Math.floor(Math.random() * 1e4)}`, s = computed({
2288
+ const n = e, o = t, r = `radio-${Math.floor(Math.random() * 1e4)}`, s = computed({
2273
2289
  get: () => Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && n.modelValue.includes(n.value) : n.modelValue,
2274
2290
  set: (i) => {
2275
2291
  if (Array.isArray(n.modelValue)) {
2276
2292
  let u = [...n.modelValue];
2277
- i ? u.includes(n.value) || u.push(n.value) : u = u.filter((c) => c !== n.value), r("update:modelValue", u);
2293
+ i ? u.includes(n.value) || u.push(n.value) : u = u.filter((c) => c !== n.value), o("update:modelValue", u);
2278
2294
  } else
2279
- r("update:modelValue", i);
2295
+ o("update:modelValue", i);
2280
2296
  }
2281
2297
  }), l = ref(`vs-checkbox-${n.view || "default"}`);
2282
- return (i, u) => (openBlock(), createElementBlock("div", _hoisted_1$i, [
2298
+ return (i, u) => (openBlock(), createElementBlock("div", _hoisted_1$k, [
2283
2299
  (openBlock(), createBlock(resolveDynamicComponent(unref(VsCheckboxViews)?.[l.value]), {
2284
2300
  value: e.value,
2285
2301
  label: e.label,
@@ -2287,7 +2303,7 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2287
2303
  disabled: e.disabled,
2288
2304
  modelValue: s.value,
2289
2305
  "onUpdate:modelValue": u[0] || (u[0] = (c) => s.value = c),
2290
- id: o,
2306
+ id: r,
2291
2307
  icon: e.icon,
2292
2308
  imgUrl: e.imgUrl,
2293
2309
  style: normalizeStyle(e.style)
@@ -2299,7 +2315,7 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2299
2315
  }, 8, ["value", "label", "info", "disabled", "modelValue", "icon", "imgUrl", "style"]))
2300
2316
  ]));
2301
2317
  }
2302
- }), _sfc_main$l = /* @__PURE__ */ defineComponent({
2318
+ }), _sfc_main$n = /* @__PURE__ */ defineComponent({
2303
2319
  __name: "vs-input-checkbox",
2304
2320
  props: {
2305
2321
  options: {
@@ -2319,10 +2335,10 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2319
2335
  },
2320
2336
  emits: ["update:modelValue"],
2321
2337
  setup(e, { emit: t }) {
2322
- const n = e, r = t, o = ref([]), s = reactive({}), l = (a) => a?.value || a?.id || a?.text || a, i = (a) => a.text || String(a), u = (a) => `lg:col-span-${a || 12}`, c = async () => {
2338
+ const n = e, o = t, r = ref([]), s = reactive({}), l = (a) => a?.value || a?.id || a?.text || a, i = (a) => a.text || String(a), u = (a) => `lg:col-span-${a || 12}`, c = async () => {
2323
2339
  try {
2324
2340
  const { data: a } = await axios.get(`/api/suggest/${n.data}`);
2325
- o.value = a?.data || a;
2341
+ r.value = a?.data || a;
2326
2342
  } catch (a) {
2327
2343
  console.error(a);
2328
2344
  }
@@ -2330,12 +2346,12 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2330
2346
  return watch(
2331
2347
  () => n.modelValue,
2332
2348
  (a) => {
2333
- if (typeof a == "boolean" && o.value.length === 1) {
2334
- const d = l(o.value[0]);
2349
+ if (typeof a == "boolean" && r.value.length === 1) {
2350
+ const d = l(r.value[0]);
2335
2351
  s[d] = a;
2336
2352
  } else if (Array.isArray(a)) {
2337
2353
  const d = new Set(a);
2338
- o.value.forEach((f) => {
2354
+ r.value.forEach((f) => {
2339
2355
  if (!f.disabled) {
2340
2356
  const h = l(f);
2341
2357
  s[h] = d.has(h);
@@ -2347,23 +2363,23 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2347
2363
  ), watch(
2348
2364
  s,
2349
2365
  () => {
2350
- if (!o.value.length) {
2351
- r("update:modelValue", null);
2366
+ if (!r.value.length) {
2367
+ o("update:modelValue", null);
2352
2368
  return;
2353
2369
  }
2354
2370
  const a = Object.entries(s).filter(([, d]) => d).map(([d]) => d);
2355
- r("update:modelValue", a.length === 0 ? null : a);
2371
+ o("update:modelValue", a.length === 0 ? null : a);
2356
2372
  },
2357
2373
  { deep: !0 }
2358
2374
  ), onMounted(() => {
2359
2375
  if (n.data)
2360
2376
  c().then(() => {
2361
- if (typeof n.modelValue == "boolean" && o.value.length === 1) {
2362
- const a = l(o.value[0]);
2377
+ if (typeof n.modelValue == "boolean" && r.value.length === 1) {
2378
+ const a = l(r.value[0]);
2363
2379
  s[a] = n.modelValue;
2364
2380
  } else if (Array.isArray(n.modelValue)) {
2365
2381
  const a = new Set(n.modelValue);
2366
- o.value.forEach((d) => {
2382
+ r.value.forEach((d) => {
2367
2383
  if (!d.disabled) {
2368
2384
  const f = l(d);
2369
2385
  s[f] = a.has(f);
@@ -2371,12 +2387,12 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2371
2387
  });
2372
2388
  }
2373
2389
  });
2374
- else if (o.value = n.options, typeof n.modelValue == "boolean" && o.value.length === 1) {
2375
- const a = l(o.value[0]);
2390
+ else if (r.value = n.options, typeof n.modelValue == "boolean" && r.value.length === 1) {
2391
+ const a = l(r.value[0]);
2376
2392
  s[a] = n.modelValue;
2377
2393
  } else if (Array.isArray(n.modelValue)) {
2378
2394
  const a = new Set(n.modelValue);
2379
- o.value.forEach((d) => {
2395
+ r.value.forEach((d) => {
2380
2396
  if (!d.disabled) {
2381
2397
  const f = l(d);
2382
2398
  s[f] = a.has(f);
@@ -2386,7 +2402,7 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2386
2402
  }), (a, d) => (openBlock(), createElementBlock("div", {
2387
2403
  class: normalizeClass(["p-0 w-full gap-[6px]", [e.position === "vertical" ? "flex-col" : "", e.colSpan ? "grid" : "flex justify-start"]])
2388
2404
  }, [
2389
- (openBlock(!0), createElementBlock(Fragment, null, renderList(o.value, (f) => (openBlock(), createBlock(_sfc_main$m, {
2405
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (f) => (openBlock(), createBlock(_sfc_main$o, {
2390
2406
  modelValue: s[l(f)],
2391
2407
  "onUpdate:modelValue": (h) => s[l(f)] = h,
2392
2408
  value: l(f),
@@ -2402,7 +2418,7 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2402
2418
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value", "class", "disabled", "label", "icon", "imgUrl", "option", "slots", "view"]))), 128))
2403
2419
  ], 2));
2404
2420
  }
2405
- }), VsInputCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-9685f778"]]), _hoisted_1$h = ["placeholder", "disabled"], _sfc_main$k = /* @__PURE__ */ defineComponent({
2421
+ }), VsInputCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-9685f778"]]), _hoisted_1$j = ["placeholder", "disabled"], _sfc_main$m = /* @__PURE__ */ defineComponent({
2406
2422
  __name: "vs-input-date1",
2407
2423
  props: /* @__PURE__ */ mergeModels({
2408
2424
  style: {
@@ -2427,31 +2443,31 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2427
2443
  }),
2428
2444
  emits: ["update:modelValue"],
2429
2445
  setup(e) {
2430
- const t = e, { inputClass: n } = useStyle(t.style), r = useModel(e, "modelValue");
2431
- return (o, s) => withDirectives((openBlock(), createElementBlock("input", {
2446
+ const t = e, { inputClass: n } = useStyle(t.style), o = useModel(e, "modelValue");
2447
+ return (r, s) => withDirectives((openBlock(), createElementBlock("input", {
2432
2448
  type: "date",
2433
- "onUpdate:modelValue": s[0] || (s[0] = (l) => r.value = l),
2449
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => o.value = l),
2434
2450
  placeholder: e.placeholder,
2435
2451
  disabled: e.disabled,
2436
2452
  class: normalizeClass(["py-1.5 px-3 block w-full placeholder:text[#767f8f]", [unref(n)]]),
2437
2453
  style: {
2438
2454
  border: "1px solid #CFD9E0"
2439
2455
  }
2440
- }, null, 10, _hoisted_1$h)), [
2441
- [vModelText, r.value]
2456
+ }, null, 10, _hoisted_1$j)), [
2457
+ [vModelText, o.value]
2442
2458
  ]);
2443
2459
  }
2444
- }), fileUpload = async (e, t, n, r) => {
2460
+ }), fileUpload = async (e, t, n, o) => {
2445
2461
  try {
2446
- const o = new FormData();
2447
- o.append("unique", "true"), o.append("file", e);
2462
+ const r = new FormData();
2463
+ r.append("unique", "true"), r.append("file", e);
2448
2464
  const { data: s } = await axios.post(
2449
- `/file/upload/uploads?id=${t || ""}&form=${n || ""}&table=${r || ""}`,
2450
- o
2465
+ `/file/upload/uploads?id=${t || ""}&form=${n || ""}&table=${o || ""}`,
2466
+ r
2451
2467
  );
2452
2468
  return s;
2453
- } catch (o) {
2454
- console.error(o);
2469
+ } catch (r) {
2470
+ console.error(r);
2455
2471
  }
2456
2472
  }, fileDelete = async (e) => {
2457
2473
  try {
@@ -2466,12 +2482,12 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2466
2482
  headers: {
2467
2483
  "Content-Type": "application/json"
2468
2484
  }
2469
- }), n = t.headers["content-type"], r = new TextDecoder("utf-8").decode(t.data), o = new Blob([r], { type: n }), s = document.createElement("a");
2470
- s.setAttribute("download", e), s.href = window.URL.createObjectURL(o), s.click();
2485
+ }), n = t.headers["content-type"], o = new TextDecoder("utf-8").decode(t.data), r = new Blob([o], { type: n }), s = document.createElement("a");
2486
+ s.setAttribute("download", e), s.href = window.URL.createObjectURL(r), s.click();
2471
2487
  } catch (t) {
2472
2488
  console.error(t.message);
2473
2489
  }
2474
- }, _sfc_main$j = {}, _hoisted_1$g = {
2490
+ }, _sfc_main$l = {}, _hoisted_1$i = {
2475
2491
  xmlns: "http://www.w3.org/2000/svg",
2476
2492
  width: "24",
2477
2493
  height: "24",
@@ -2482,13 +2498,13 @@ const IconCheck = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_rend
2482
2498
  "stroke-linecap": "round",
2483
2499
  "stroke-linejoin": "round"
2484
2500
  };
2485
- function _sfc_render$a(e, t) {
2486
- return openBlock(), createElementBlock("svg", _hoisted_1$g, t[0] || (t[0] = [
2501
+ function _sfc_render$b(e, t) {
2502
+ return openBlock(), createElementBlock("svg", _hoisted_1$i, t[0] || (t[0] = [
2487
2503
  createElementVNode("path", { d: "M5 12h14" }, null, -1),
2488
2504
  createElementVNode("path", { d: "M12 5v14" }, null, -1)
2489
2505
  ]));
2490
2506
  }
2491
- const IconPlus = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$a]]), _sfc_main$i = {}, _hoisted_1$f = {
2507
+ const IconPlus = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$b]]), _sfc_main$k = {}, _hoisted_1$h = {
2492
2508
  xmlns: "http://www.w3.org/2000/svg",
2493
2509
  class: "icon icon-tabler icon-tabler-file-text",
2494
2510
  width: "44",
@@ -2500,12 +2516,12 @@ const IconPlus = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_rende
2500
2516
  "stroke-linecap": "round",
2501
2517
  "stroke-linejoin": "round"
2502
2518
  };
2503
- function _sfc_render$9(e, t, n, r, o, s) {
2504
- return openBlock(), createElementBlock("svg", _hoisted_1$f, t[0] || (t[0] = [
2519
+ function _sfc_render$a(e, t, n, o, r, s) {
2520
+ return openBlock(), createElementBlock("svg", _hoisted_1$h, t[0] || (t[0] = [
2505
2521
  createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><line x1="9" y1="9" x2="10" y2="9"></line><line x1="9" y1="13" x2="15" y2="13"></line><line x1="9" y1="17" x2="15" y2="17"></line>', 6)
2506
2522
  ]));
2507
2523
  }
2508
- const iconPdf = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$9]]), _sfc_main$h = {}, _hoisted_1$e = {
2524
+ const iconPdf = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$a]]), _sfc_main$j = {}, _hoisted_1$g = {
2509
2525
  xmlns: "http://www.w3.org/2000/svg",
2510
2526
  class: "icon icon-tabler icon-tabler-table",
2511
2527
  width: "44",
@@ -2517,8 +2533,8 @@ const iconPdf = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render
2517
2533
  "stroke-linecap": "round",
2518
2534
  "stroke-linejoin": "round"
2519
2535
  };
2520
- function _sfc_render$8(e, t, n, r, o, s) {
2521
- return openBlock(), createElementBlock("svg", _hoisted_1$e, t[0] || (t[0] = [
2536
+ function _sfc_render$9(e, t, n, o, r, s) {
2537
+ return openBlock(), createElementBlock("svg", _hoisted_1$g, t[0] || (t[0] = [
2522
2538
  createElementVNode("path", {
2523
2539
  stroke: "none",
2524
2540
  d: "M0 0h24v24H0z",
@@ -2545,7 +2561,7 @@ function _sfc_render$8(e, t, n, r, o, s) {
2545
2561
  }, null, -1)
2546
2562
  ]));
2547
2563
  }
2548
- const IconCsv = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$8]]), _sfc_main$g = {}, _hoisted_1$d = {
2564
+ const IconCsv = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$9]]), _sfc_main$i = {}, _hoisted_1$f = {
2549
2565
  xmlns: "http://www.w3.org/2000/svg",
2550
2566
  width: "24",
2551
2567
  height: "24",
@@ -2557,12 +2573,12 @@ const IconCsv = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render
2557
2573
  "stroke-linejoin": "round",
2558
2574
  class: "icon icon-tabler icons-tabler-outline icon-tabler-file-unknown"
2559
2575
  };
2560
- function _sfc_render$7(e, t, n, r, o, s) {
2561
- return openBlock(), createElementBlock("svg", _hoisted_1$d, t[0] || (t[0] = [
2576
+ function _sfc_render$8(e, t, n, o, r, s) {
2577
+ return openBlock(), createElementBlock("svg", _hoisted_1$f, t[0] || (t[0] = [
2562
2578
  createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><path d="M12 17v.01"></path><path d="M12 14a1.5 1.5 0 1 0 -1.14 -2.474"></path>', 5)
2563
2579
  ]));
2564
2580
  }
2565
- const IconFile = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$7]]), _sfc_main$f = {}, _hoisted_1$c = {
2581
+ const IconFile = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$8]]), _sfc_main$h = {}, _hoisted_1$e = {
2566
2582
  xmlns: "http://www.w3.org/2000/svg",
2567
2583
  class: "icon icon-tabler icon-tabler-file-zip",
2568
2584
  width: "44",
@@ -2574,12 +2590,12 @@ const IconFile = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_rende
2574
2590
  "stroke-linecap": "round",
2575
2591
  "stroke-linejoin": "round"
2576
2592
  };
2577
- function _sfc_render$6(e, t, n, r, o, s) {
2578
- return openBlock(), createElementBlock("svg", _hoisted_1$c, t[0] || (t[0] = [
2593
+ function _sfc_render$7(e, t, n, o, r, s) {
2594
+ return openBlock(), createElementBlock("svg", _hoisted_1$e, t[0] || (t[0] = [
2579
2595
  createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M6 20.735a2 2 0 0 1 -1 -1.735v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-1"></path><path d="M11 17a2 2 0 0 1 2 2v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a2 2 0 0 1 2 -2z"></path><line x1="11" y1="5" x2="10" y2="5"></line><line x1="13" y1="7" x2="12" y2="7"></line><line x1="11" y1="9" x2="10" y2="9"></line><line x1="13" y1="11" x2="12" y2="11"></line><line x1="11" y1="13" x2="10" y2="13"></line><line x1="13" y1="15" x2="12" y2="15"></line>', 9)
2580
2596
  ]));
2581
2597
  }
2582
- const IconZip = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$6]]), _sfc_main$e = {}, _hoisted_1$b = {
2598
+ const IconZip = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$7]]), _sfc_main$g = {}, _hoisted_1$d = {
2583
2599
  xmlns: "http://www.w3.org/2000/svg",
2584
2600
  class: "icon icon-tabler icon-tabler-file-code",
2585
2601
  width: "44",
@@ -2591,12 +2607,12 @@ const IconZip = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render
2591
2607
  "stroke-linecap": "round",
2592
2608
  "stroke-linejoin": "round"
2593
2609
  };
2594
- function _sfc_render$5(e, t, n, r, o, s) {
2595
- return openBlock(), createElementBlock("svg", _hoisted_1$b, t[0] || (t[0] = [
2610
+ function _sfc_render$6(e, t, n, o, r, s) {
2611
+ return openBlock(), createElementBlock("svg", _hoisted_1$d, t[0] || (t[0] = [
2596
2612
  createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><path d="M10 13l-1 2l1 2"></path><path d="M14 13l1 2l-1 2"></path>', 5)
2597
2613
  ]));
2598
2614
  }
2599
- const IconGeojson = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$5]]), getFileType = (e) => {
2615
+ const IconGeojson = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$6]]), getFileType = (e) => {
2600
2616
  if (!e) return "";
2601
2617
  const t = e?.split(".");
2602
2618
  return t[t.length - 1];
@@ -2609,7 +2625,7 @@ const IconGeojson = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_re
2609
2625
  documentsFormat: ["pdf"]
2610
2626
  };
2611
2627
  return n.imageFormat.includes(t) ? "img" : n.sheetsFormat.includes(t) ? IconCsv : n.textsFormat.includes(t) ? IconGeojson : n.documentsFormat.includes(t) ? iconPdf : n.archivesFormat.includes(t) ? IconZip : IconFile;
2612
- }, _sfc_main$d = {}, _hoisted_1$a = {
2628
+ }, _sfc_main$f = {}, _hoisted_1$c = {
2613
2629
  xmlns: "http://www.w3.org/2000/svg",
2614
2630
  width: "24",
2615
2631
  height: "24",
@@ -2621,12 +2637,12 @@ const IconGeojson = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_re
2621
2637
  "stroke-linejoin": "round",
2622
2638
  class: "icon icon-tabler icons-tabler-outline icon-tabler-trash"
2623
2639
  };
2624
- function _sfc_render$4(e, t) {
2625
- return openBlock(), createElementBlock("svg", _hoisted_1$a, t[0] || (t[0] = [
2640
+ function _sfc_render$5(e, t) {
2641
+ return openBlock(), createElementBlock("svg", _hoisted_1$c, t[0] || (t[0] = [
2626
2642
  createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 7l16 0"></path><path d="M10 11l0 6"></path><path d="M14 11l0 6"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>', 6)
2627
2643
  ]));
2628
2644
  }
2629
- const IconDelete = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$4]]), _sfc_main$c = {}, _hoisted_1$9 = {
2645
+ const IconDelete = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$5]]), _sfc_main$e = {}, _hoisted_1$b = {
2630
2646
  xmlns: "http://www.w3.org/2000/svg",
2631
2647
  width: "24",
2632
2648
  height: "24",
@@ -2638,8 +2654,8 @@ const IconDelete = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
2638
2654
  "stroke-linejoin": "round",
2639
2655
  class: "icon icon-tabler icons-tabler-outline icon-tabler-download"
2640
2656
  };
2641
- function _sfc_render$3(e, t) {
2642
- return openBlock(), createElementBlock("svg", _hoisted_1$9, t[0] || (t[0] = [
2657
+ function _sfc_render$4(e, t) {
2658
+ return openBlock(), createElementBlock("svg", _hoisted_1$b, t[0] || (t[0] = [
2643
2659
  createElementVNode("path", {
2644
2660
  stroke: "none",
2645
2661
  d: "M0 0h24v24H0z",
@@ -2650,7 +2666,7 @@ function _sfc_render$3(e, t) {
2650
2666
  createElementVNode("path", { d: "M12 4l0 12" }, null, -1)
2651
2667
  ]));
2652
2668
  }
2653
- const IconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$3]]), _hoisted_1$8 = { class: "h-[120px] w-[120px] border text-gray-300 border-dashed border-[#CFD9E0] rounded-lg overflow-hidden relative item-file" }, _hoisted_2$4 = { class: "absolute hidden top-0 right-0 flex items-center gap-x-2 w-full h-full justify-center" }, _sfc_main$b = /* @__PURE__ */ defineComponent({
2669
+ const IconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$4]]), _hoisted_1$a = { class: "h-[120px] w-[120px] border text-gray-300 border-dashed border-[#CFD9E0] rounded-lg overflow-hidden relative item-file" }, _hoisted_2$4 = { class: "absolute hidden top-0 right-0 flex items-center gap-x-2 w-full h-full justify-center" }, _sfc_main$d = /* @__PURE__ */ defineComponent({
2654
2670
  __name: "vs-input-file-list-item",
2655
2671
  props: /* @__PURE__ */ mergeModels({
2656
2672
  multiple: { type: Boolean }
@@ -2662,8 +2678,8 @@ const IconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_r
2662
2678
  }),
2663
2679
  emits: ["update:value", "update:item"],
2664
2680
  setup(e) {
2665
- const t = useModel(e, "value"), n = useModel(e, "item"), r = e;
2666
- return (o, s) => (openBlock(), createElementBlock("div", _hoisted_1$8, [
2681
+ const t = useModel(e, "value"), n = useModel(e, "item"), o = e;
2682
+ return (r, s) => (openBlock(), createElementBlock("div", _hoisted_1$a, [
2667
2683
  (openBlock(), createBlock(resolveDynamicComponent(unref(fileFormatPreview)(n.value)), {
2668
2684
  src: n.value,
2669
2685
  alt: "file",
@@ -2674,7 +2690,7 @@ const IconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_r
2674
2690
  createElementVNode("button", {
2675
2691
  type: "button",
2676
2692
  onClick: s[1] || (s[1] = (l) => {
2677
- unref(fileDelete)(n.value), t.value = r.multiple ? t.value?.filter((i) => i !== n.value) : "";
2693
+ unref(fileDelete)(n.value), t.value = o.multiple ? t.value?.filter((i) => i !== n.value) : "";
2678
2694
  }),
2679
2695
  class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-red-500"
2680
2696
  }, [
@@ -2690,10 +2706,10 @@ const IconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_r
2690
2706
  ])
2691
2707
  ]));
2692
2708
  }
2693
- }), VsInputFileListItem = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-bc0f6d32"]]), _hoisted_1$7 = { class: "flex items-center gap-x-2" }, _hoisted_2$3 = {
2709
+ }), VsInputFileListItem = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-bc0f6d32"]]), _hoisted_1$9 = { class: "flex items-center gap-x-2" }, _hoisted_2$3 = {
2694
2710
  key: 1,
2695
2711
  class: "flex items-center flex-wrap gap-2"
2696
- }, _sfc_main$a = /* @__PURE__ */ defineComponent({
2712
+ }, _sfc_main$c = /* @__PURE__ */ defineComponent({
2697
2713
  __name: "vs-input-file",
2698
2714
  props: /* @__PURE__ */ mergeModels({
2699
2715
  multiple: { type: Boolean },
@@ -2705,7 +2721,7 @@ const IconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_r
2705
2721
  }),
2706
2722
  emits: ["update:modelValue"],
2707
2723
  setup(e) {
2708
- const t = e, n = useModel(e, "modelValue"), r = ref(null), o = (l) => Array.isArray(n.value) && n.value[l] || "", s = async (l) => {
2724
+ const t = e, n = useModel(e, "modelValue"), o = ref(null), r = (l) => Array.isArray(n.value) && n.value[l] || "", s = async (l) => {
2709
2725
  if (t.format) {
2710
2726
  const c = l.target.files?.[0];
2711
2727
  if (!c || !c.name.endsWith(t.format))
@@ -2716,11 +2732,11 @@ const IconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_r
2716
2732
  const u = await fileUpload(i, "1", "form", "table");
2717
2733
  n.value = t.multiple ? [...n.value || [], u.result?.file_path] : u.result?.file_path;
2718
2734
  };
2719
- return (l, i) => (openBlock(), createElementBlock("div", _hoisted_1$7, [
2735
+ return (l, i) => (openBlock(), createElementBlock("div", _hoisted_1$9, [
2720
2736
  createElementVNode("input", {
2721
2737
  class: "hidden",
2722
2738
  ref_key: "fileInput",
2723
- ref: r,
2739
+ ref: o,
2724
2740
  type: "file",
2725
2741
  onChange: s
2726
2742
  }, null, 544),
@@ -2736,10 +2752,10 @@ const IconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_r
2736
2752
  key: c,
2737
2753
  value: n.value,
2738
2754
  "onUpdate:value": i[2] || (i[2] = (a) => n.value = a),
2739
- item: o(c)
2755
+ item: r(c)
2740
2756
  }, null, 8, ["multiple", "value", "item"]))), 128)),
2741
2757
  createElementVNode("div", {
2742
- onClick: i[3] || (i[3] = (u) => !l.disabled && r.value?.click()),
2758
+ onClick: i[3] || (i[3] = (u) => !l.disabled && o.value?.click()),
2743
2759
  class: normalizeClass([
2744
2760
  "h-[120px] w-[120px] border text-gray-300 hover:text-blue-500 border-dashed border-[#CFD9E0] rounded-lg flex items-center justify-center transition-all duration-300",
2745
2761
  l.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:border-blue-500 hover:bg-blue-50"
@@ -2750,14 +2766,14 @@ const IconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_r
2750
2766
  ])) : createCommentVNode("", !0),
2751
2767
  l.multiple ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", {
2752
2768
  key: 2,
2753
- onClick: i[4] || (i[4] = (u) => r.value?.click()),
2769
+ onClick: i[4] || (i[4] = (u) => o.value?.click()),
2754
2770
  class: normalizeClass([l.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:border-blue-500", "h-[120px] w-[120px] border text-gray-300 hover:text-blue-500 border-dashed border-gray-300 rounded-lg flex items-center justify-center cursor-pointer hover:border-blue-500 transition-all duration-300 hover:bg-blue-50"])
2755
2771
  }, [
2756
2772
  createVNode(IconPlus, { class: "w-6 h-6" })
2757
2773
  ], 2))
2758
2774
  ]));
2759
2775
  }
2760
- }), _hoisted_1$6 = { class: "flex items-center justify-between" }, _hoisted_2$2 = { class: "text-[16px] text-gray-900 font-medium" }, _hoisted_3$1 = { class: "grid gap-3" }, _sfc_main$9 = /* @__PURE__ */ defineComponent({
2776
+ }), _hoisted_1$8 = { class: "flex items-center justify-between" }, _hoisted_2$2 = { class: "text-[16px] text-gray-900 font-medium" }, _hoisted_3$1 = { class: "grid gap-3" }, _sfc_main$b = /* @__PURE__ */ defineComponent({
2761
2777
  __name: "vs-container-switcher",
2762
2778
  props: {
2763
2779
  title: {
@@ -2777,22 +2793,22 @@ const IconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_r
2777
2793
  const t = e, n = ref(t.isOpen);
2778
2794
  return watch(
2779
2795
  () => t.isOpen,
2780
- (r) => {
2781
- n.value = r;
2796
+ (o) => {
2797
+ n.value = o;
2782
2798
  }
2783
- ), (r, o) => (openBlock(), createElementBlock("div", null, [
2784
- createElementVNode("div", _hoisted_1$6, [
2799
+ ), (o, r) => (openBlock(), createElementBlock("div", null, [
2800
+ createElementVNode("div", _hoisted_1$8, [
2785
2801
  createElementVNode("p", _hoisted_2$2, toDisplayString(e.title), 1),
2786
- createVNode(_sfc_main$v, {
2802
+ createVNode(_sfc_main$x, {
2787
2803
  modelValue: n.value,
2788
- "onUpdate:modelValue": o[0] || (o[0] = (s) => n.value = s),
2804
+ "onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
2789
2805
  style: normalizeStyle(e.style)
2790
2806
  }, null, 8, ["modelValue", "style"])
2791
2807
  ]),
2792
2808
  createVNode(Transition, { name: "slide-fade" }, {
2793
2809
  default: withCtx(() => [
2794
2810
  withDirectives(createElementVNode("div", _hoisted_3$1, [
2795
- renderSlot(r.$slots, "default", {}, void 0, !0)
2811
+ renderSlot(o.$slots, "default", {}, void 0, !0)
2796
2812
  ], 512), [
2797
2813
  [vShow, n.value]
2798
2814
  ])
@@ -2801,7 +2817,7 @@ const IconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_r
2801
2817
  })
2802
2818
  ]));
2803
2819
  }
2804
- }), VsContainerSwitcher = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-479564a3"]]), _sfc_main$8 = {}, _hoisted_1$5 = {
2820
+ }), VsContainerSwitcher = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-479564a3"]]), _sfc_main$a = {}, _hoisted_1$7 = {
2805
2821
  xmlns: "http://www.w3.org/2000/svg",
2806
2822
  viewBox: "0 0 24 24",
2807
2823
  fill: "none",
@@ -2811,8 +2827,8 @@ const IconDownload = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_r
2811
2827
  "stroke-linejoin": "round",
2812
2828
  class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
2813
2829
  };
2814
- function _sfc_render$2(e, t) {
2815
- return openBlock(), createElementBlock("svg", _hoisted_1$5, t[0] || (t[0] = [
2830
+ function _sfc_render$3(e, t) {
2831
+ return openBlock(), createElementBlock("svg", _hoisted_1$7, t[0] || (t[0] = [
2816
2832
  createElementVNode("path", {
2817
2833
  stroke: "none",
2818
2834
  d: "M0 0h24v24H0z",
@@ -2821,7 +2837,7 @@ function _sfc_render$2(e, t) {
2821
2837
  createElementVNode("path", { d: "M6 9l6 6l6 -6" }, null, -1)
2822
2838
  ]));
2823
2839
  }
2824
- const IconChevronDown = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$2]]), _sfc_main$7 = {}, _hoisted_1$4 = {
2840
+ const IconChevronDown = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$3]]), _sfc_main$9 = {}, _hoisted_1$6 = {
2825
2841
  xmlns: "http://www.w3.org/2000/svg",
2826
2842
  viewBox: "0 0 24 24",
2827
2843
  fill: "none",
@@ -2830,13 +2846,13 @@ const IconChevronDown = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sf
2830
2846
  "stroke-linecap": "round",
2831
2847
  "stroke-linejoin": "round"
2832
2848
  };
2833
- function _sfc_render$1(e, t) {
2834
- return openBlock(), createElementBlock("svg", _hoisted_1$4, t[0] || (t[0] = [
2849
+ function _sfc_render$2(e, t) {
2850
+ return openBlock(), createElementBlock("svg", _hoisted_1$6, t[0] || (t[0] = [
2835
2851
  createElementVNode("path", { d: "m7 15 5 5 5-5" }, null, -1),
2836
2852
  createElementVNode("path", { d: "m7 9 5-5 5 5" }, null, -1)
2837
2853
  ]));
2838
2854
  }
2839
- const IconChevronTopBottom = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$1]]), _sfc_main$6 = {}, _hoisted_1$3 = {
2855
+ const IconChevronTopBottom = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$2]]), _sfc_main$8 = {}, _hoisted_1$5 = {
2840
2856
  xmlns: "http://www.w3.org/2000/svg",
2841
2857
  viewBox: "0 0 24 24",
2842
2858
  fill: "none",
@@ -2846,8 +2862,8 @@ const IconChevronTopBottom = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render"
2846
2862
  "stroke-linejoin": "round",
2847
2863
  class: "icon icon-tabler icons-tabler-outline icon-tabler-x"
2848
2864
  };
2849
- function _sfc_render(e, t) {
2850
- return openBlock(), createElementBlock("svg", _hoisted_1$3, t[0] || (t[0] = [
2865
+ function _sfc_render$1(e, t) {
2866
+ return openBlock(), createElementBlock("svg", _hoisted_1$5, t[0] || (t[0] = [
2851
2867
  createElementVNode("path", {
2852
2868
  stroke: "none",
2853
2869
  d: "M0 0h24v24H0z",
@@ -2857,7 +2873,7 @@ function _sfc_render(e, t) {
2857
2873
  createElementVNode("path", { d: "M6 6l12 12" }, null, -1)
2858
2874
  ]));
2859
2875
  }
2860
- const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]), _hoisted_1$2 = { class: "text-[16px] text-gray-900 font-medium" }, _hoisted_2$1 = { class: "grid gap-3" }, _sfc_main$5 = /* @__PURE__ */ defineComponent({
2876
+ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]]), _hoisted_1$4 = { class: "text-[16px] text-gray-900 font-medium" }, _hoisted_2$1 = { class: "grid gap-3" }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
2861
2877
  __name: "vs-container-accordion",
2862
2878
  props: {
2863
2879
  title: {
@@ -2877,24 +2893,24 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
2877
2893
  const t = e, n = ref(t.isOpen);
2878
2894
  return watch(
2879
2895
  () => t.isOpen,
2880
- (r) => {
2881
- n.value = r;
2896
+ (o) => {
2897
+ n.value = o;
2882
2898
  }
2883
- ), (r, o) => (openBlock(), createElementBlock("div", null, [
2899
+ ), (o, r) => (openBlock(), createElementBlock("div", null, [
2884
2900
  createElementVNode("button", {
2885
2901
  type: "button",
2886
- onClick: o[0] || (o[0] = (s) => n.value = !n.value),
2902
+ onClick: r[0] || (r[0] = (s) => n.value = !n.value),
2887
2903
  class: "flex items-center gap-2"
2888
2904
  }, [
2889
2905
  createVNode(unref(IconChevronDown), {
2890
2906
  class: normalizeClass(["h-4 w-4 duration-300", [n.value ? "-rotate-180" : ""]])
2891
2907
  }, null, 8, ["class"]),
2892
- createElementVNode("span", _hoisted_1$2, toDisplayString(e.title), 1)
2908
+ createElementVNode("span", _hoisted_1$4, toDisplayString(e.title), 1)
2893
2909
  ]),
2894
2910
  createVNode(Transition, { name: "slide-fade" }, {
2895
2911
  default: withCtx(() => [
2896
2912
  withDirectives(createElementVNode("div", _hoisted_2$1, [
2897
- renderSlot(r.$slots, "default", {}, void 0, !0)
2913
+ renderSlot(o.$slots, "default", {}, void 0, !0)
2898
2914
  ], 512), [
2899
2915
  [vShow, n.value]
2900
2916
  ])
@@ -2903,7 +2919,7 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
2903
2919
  })
2904
2920
  ]));
2905
2921
  }
2906
- }), VsContainerAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a37284e6"]]), _hoisted_1$1 = { class: "flex items-center justify-between" }, _sfc_main$4 = /* @__PURE__ */ defineComponent({
2922
+ }), VsContainerAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-a37284e6"]]), _hoisted_1$3 = { class: "flex items-center justify-between" }, _sfc_main$6 = /* @__PURE__ */ defineComponent({
2907
2923
  __name: "vs-container-default",
2908
2924
  props: {
2909
2925
  title: {
@@ -2917,7 +2933,7 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
2917
2933
  },
2918
2934
  setup(e) {
2919
2935
  return (t, n) => (openBlock(), createElementBlock("div", null, [
2920
- createElementVNode("div", _hoisted_1$1, [
2936
+ createElementVNode("div", _hoisted_1$3, [
2921
2937
  createElementVNode("p", null, toDisplayString(e.title), 1)
2922
2938
  ]),
2923
2939
  renderSlot(t.$slots, "default")
@@ -2926,7 +2942,7 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
2926
2942
  }), views = {
2927
2943
  switcher: VsContainerSwitcher,
2928
2944
  accordion: VsContainerAccordion,
2929
- default: _sfc_main$4
2945
+ default: _sfc_main$6
2930
2946
  }, FormConditionsTypes = {
2931
2947
  Equal: "==",
2932
2948
  Inequal: "!=",
@@ -2970,7 +2986,7 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
2970
2986
  default:
2971
2987
  return !0;
2972
2988
  }
2973
- }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
2989
+ }, _sfc_main$5 = /* @__PURE__ */ defineComponent({
2974
2990
  __name: "vs-input-container",
2975
2991
  props: {
2976
2992
  style: {
@@ -2991,7 +3007,7 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
2991
3007
  }
2992
3008
  },
2993
3009
  setup(e) {
2994
- const t = e, n = inject("formValues", { default: {} }), r = inject("form"), o = computed(() => t.schema?.filter((l) => {
3010
+ const t = e, n = inject("formValues", { default: {} }), o = inject("form"), r = computed(() => t.schema?.filter((l) => {
2995
3011
  const i = l?.conditions;
2996
3012
  if (!i) return !0;
2997
3013
  const u = Array.isArray(i) ? i[0] : i, c = n?.value?.[u];
@@ -3003,64 +3019,88 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
3003
3019
  style: normalizeStyle(e.style)
3004
3020
  }, {
3005
3021
  default: withCtx(() => [
3006
- (openBlock(!0), createElementBlock(Fragment, null, renderList(o.value, (u) => (openBlock(), createBlock(_sfc_main$1, mergeProps({
3022
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (u) => (openBlock(), createBlock(_sfc_main$1, mergeProps({
3007
3023
  key: u.name
3008
3024
  }, { ref_for: !0 }, u, {
3009
3025
  item: u,
3010
3026
  modelValue: unref(n)[u.name],
3011
3027
  "onUpdate:modelValue": (c) => unref(n)[u.name] = c,
3012
3028
  style: e.style,
3013
- error: unref(r)?.errors?.[u.name]
3029
+ error: unref(o)?.errors?.[u.name]
3014
3030
  }), null, 16, ["item", "modelValue", "onUpdate:modelValue", "style", "error"]))), 128))
3015
3031
  ]),
3016
3032
  _: 1
3017
3033
  }, 8, ["title", "style"])) : createCommentVNode("", !0);
3018
3034
  }
3019
- }), dynamicPosition = async (e, t, n, r = 10) => {
3035
+ }), dynamicPosition = async (e, t, n, o = 10) => {
3020
3036
  if (!t || !n) return;
3021
3037
  await nextTick();
3022
- const o = await n?.getBoundingClientRect(), s = await t?.getBoundingClientRect();
3023
- if (!s || !o) return;
3038
+ const r = await n?.getBoundingClientRect(), s = await t?.getBoundingClientRect();
3039
+ if (!s || !r) return;
3024
3040
  const l = await parseInt(t?.getBoundingClientRect()?.height.toString()), i = await parseInt(t?.getBoundingClientRect()?.width.toString()), u = await parseInt(n?.getBoundingClientRect()?.height.toString()), c = await parseInt(n?.getBoundingClientRect()?.width.toString()), a = await window.innerHeight, d = await window.innerWidth;
3025
3041
  let f = 0, h = 0;
3026
- const p = s.bottom + r + u;
3042
+ const p = s.bottom + o + u;
3027
3043
  switch (e) {
3028
3044
  case "top":
3029
- s.top - o.height - r < 0 ? f = s.top - o.height + r + u + l : f = s.top - o.height - r, d > c + s.right + 30 ? h = s.left - o.width / 2 + s.width / 2 : h = d - 30 - c;
3045
+ s.top - r.height - o < 0 ? f = s.top - r.height + o + u + l : f = s.top - r.height - o, d > c + s.right + 30 ? h = s.left - r.width / 2 + s.width / 2 : h = d - 30 - c;
3030
3046
  break;
3031
3047
  case "bottom":
3032
- a > p ? f = s.bottom + r : f = s.bottom - r - u - l, h = s.left - o.width / 2 + s.width / 2;
3048
+ a > p ? f = s.bottom + o : f = s.bottom - o - u - l, h = s.left - r.width / 2 + s.width / 2;
3033
3049
  break;
3034
3050
  case "left":
3035
- f = s.top - o.height / 2 + s.height / 2, s.left - o.width - r > 0 ? h = s.left - o.width - r : h = 10;
3051
+ f = s.top - r.height / 2 + s.height / 2, s.left - r.width - o > 0 ? h = s.left - r.width - o : h = 10;
3036
3052
  break;
3037
3053
  case "right":
3038
- f = s.top - o.height / 2 + s.height / 2, d - i > c ? h = s.right + r : h = d - 30 - c;
3054
+ f = s.top - r.height / 2 + s.height / 2, d - i > c ? h = s.right + o : h = d - 30 - c;
3039
3055
  break;
3040
3056
  case "top-right":
3041
- s.top - o.height - r < 0 ? f = s.top - o.height + r + u + l : f = s.top - o.height - r, d - i > c ? h = s.right + r : h = d - 30 - c;
3057
+ s.top - r.height - o < 0 ? f = s.top - r.height + o + u + l : f = s.top - r.height - o, d - i > c ? h = s.right + o : h = d - 30 - c;
3042
3058
  break;
3043
3059
  case "top-left":
3044
- s.top - o.height - r < 0 ? f = s.top - o.height + r + u + l : f = s.top - o.height - r, s.left - o.width - r > 0 ? h = s.left - o.width - r : h = 10;
3060
+ s.top - r.height - o < 0 ? f = s.top - r.height + o + u + l : f = s.top - r.height - o, s.left - r.width - o > 0 ? h = s.left - r.width - o : h = 10;
3045
3061
  break;
3046
3062
  case "top-start":
3047
- s.top - o.height - r < 0 ? f = s.top - o.height + r + u + l : f = s.top - o.height - r, s.left > 0 ? h = s.left : h = 10;
3063
+ s.top - r.height - o < 0 ? f = s.top - r.height + o + u + l : f = s.top - r.height - o, s.left > 0 ? h = s.left : h = 10;
3048
3064
  break;
3049
3065
  case "bottom-right":
3050
- a > p ? f = s.bottom + r : f = s.bottom - r - u - l, d - i > c ? h = s.left : h = d - 30 - c;
3066
+ a > p ? f = s.bottom + o : f = s.bottom - o - u - l, d - i > c ? h = s.left : h = d - 30 - c;
3051
3067
  break;
3052
3068
  case "bottom-left":
3053
- a > p ? f = s.bottom + r : f = s.bottom - r - u - l, s.left > 0 ? h = s.right - c : h = 10;
3069
+ a > p ? f = s.bottom + o : f = s.bottom - o - u - l, s.left > 0 ? h = s.right - c : h = 10;
3054
3070
  break;
3055
3071
  case "bottom-start":
3056
- a > p ? f = s.bottom + r : f = s.bottom - r - u - l, s.left > 0 ? h = s.left : h = 10;
3072
+ a > p ? f = s.bottom + o : f = s.bottom - o - u - l, s.left > 0 ? h = s.left : h = 10;
3057
3073
  break;
3058
3074
  }
3059
- f + u > a ? f = a - u - r : f < 0 && (f = r), h + c > d ? h = d - c - r : h < 0 && (h = r), n instanceof HTMLElement && (n.style.top = `${f}px`, n.style.left = `${h}px`, n.style.position = "fixed");
3060
- }, _hoisted_1 = ["disabled"], _hoisted_2 = { key: 1 }, _hoisted_3 = {
3075
+ f + u > a ? f = a - u - o : f < 0 && (f = o), h + c > d ? h = d - c - o : h < 0 && (h = o), n instanceof HTMLElement && (n.style.top = `${f}px`, n.style.left = `${h}px`, n.style.position = "fixed");
3076
+ }, _sfc_main$4 = {}, _hoisted_1$2 = {
3077
+ xmlns: "http://www.w3.org/2000/svg",
3078
+ viewBox: "0 0 24 24",
3079
+ fill: "none",
3080
+ stroke: "currentColor",
3081
+ "stroke-width": "2",
3082
+ "stroke-linecap": "round",
3083
+ "stroke-linejoin": "round",
3084
+ class: "icon icon-tabler icons-tabler-outline icon-tabler-search stroke-gray-500 transition-all"
3085
+ };
3086
+ function _sfc_render(e, t) {
3087
+ return openBlock(), createElementBlock("svg", _hoisted_1$2, t[0] || (t[0] = [
3088
+ createElementVNode("path", {
3089
+ stroke: "none",
3090
+ d: "M0 0h24v24H0z",
3091
+ fill: "none"
3092
+ }, null, -1),
3093
+ createElementVNode("path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" }, null, -1),
3094
+ createElementVNode("path", { d: "M21 21l-6 -6" }, null, -1)
3095
+ ]));
3096
+ }
3097
+ const IconMagnifyingGlass = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render]]), _hoisted_1$1 = ["disabled"], _hoisted_2 = { key: 1 }, _hoisted_3 = {
3061
3098
  key: 2,
3062
3099
  class: "text-gray-400"
3063
- }, _hoisted_4 = { class: "absolute top-[50%] text-gray-500 translate-y-[-50%] right-[10px] pointer-events-none" }, _hoisted_5 = ["onClick"], _hoisted_6 = { class: "flex items-center gap-[8px] w-full" }, _hoisted_7 = { key: 1 }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
3100
+ }, _hoisted_4 = { class: "absolute top-[50%] text-gray-500 translate-y-[-50%] right-[10px] pointer-events-none" }, _hoisted_5 = {
3101
+ key: 0,
3102
+ class: "sticky top-[-4px] text-[12px] bg-white p-1 z-[2] px-4 text-gray-400"
3103
+ }, _hoisted_6 = { class: "h-[30px] shrink-0 flex items-center relative justify-center" }, _hoisted_7 = ["onClick"], _hoisted_8 = { class: "flex items-center gap-[8px] w-full" }, _hoisted_9 = { key: 2 }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
3064
3104
  __name: "vs-input-select",
3065
3105
  props: /* @__PURE__ */ mergeModels({
3066
3106
  placeholder: { default: "Оберіть значення" },
@@ -3072,7 +3112,8 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
3072
3112
  slots: { default: null },
3073
3113
  customClass: { default: "" },
3074
3114
  style: { default: () => ({}) },
3075
- disabled: { type: Boolean }
3115
+ disabled: { type: Boolean },
3116
+ mode: {}
3076
3117
  }, {
3077
3118
  modelValue: {
3078
3119
  type: [Number, String],
@@ -3082,57 +3123,66 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
3082
3123
  }),
3083
3124
  emits: ["update:modelValue"],
3084
3125
  setup(e) {
3085
- const t = e, { inputClass: n } = useStyle(t.style), r = useModel(e, "modelValue"), o = ref({}), s = ref(null), l = ref(null), i = ref(!1), u = ref(null), c = ref([]), a = ref(-1), d = ref([]), f = computed(() => c.value?.length ? [
3126
+ const t = e, { inputClass: n } = useStyle(t.style);
3127
+ console.log(t.mode);
3128
+ const o = useModel(e, "modelValue"), r = ref({}), s = ref(null), l = ref(null), i = ref(!1), u = ref(null), c = ref([]), a = ref(-1), d = ref([]), f = ref(""), h = ref(null);
3129
+ let p = null;
3130
+ const y = computed(() => c.value?.length ? [
3086
3131
  u.value,
3087
3132
  ...c.value?.filter((b) => b?.id !== u.value?.id)
3088
- ].filter((b) => b !== null) : []), h = async () => {
3133
+ ].filter((b) => b !== null) : []), m = async () => {
3089
3134
  try {
3090
3135
  const { data: b } = await axios.get(
3091
- `${t.host}/${t.prefix}/suggest/${t.data}?json=1`
3136
+ `${t.host}/${t.prefix}/suggest/${t.data}?json=1&key=${f.value}`
3092
3137
  );
3093
3138
  return b.data;
3094
3139
  } catch {
3095
3140
  return [];
3096
3141
  }
3097
- }, p = async (b) => {
3098
- document.body.click(), i.value = b !== void 0 ? b : !i.value, i.value && !c.value?.length && (!t.options?.length && t.data ? c.value = await h() : t.options?.length && (c.value = [...t.options])), i.value && s.value ? (o.value.width = `${s.value.getBoundingClientRect()?.width}px`, l.value && dynamicPosition("bottom-start", s.value, l.value)) : a.value = -1;
3099
- }, y = () => i.value ? p(!1) : null, m = (b) => {
3100
- u.value = b, r.value = b.id, p(!1);
3101
- }, x = (b, g) => {
3142
+ }, x = async (b) => {
3143
+ document.body.click(), i.value = b !== void 0 ? b : !i.value, i.value && !c.value?.length && (!t.options?.length && t.data ? c.value = await m() : t.options?.length && (c.value = [...t.options])), i.value && s.value ? (r.value.width = `${s.value.getBoundingClientRect()?.width}px`, t.mode === "search" && h.value.focus(), l.value && dynamicPosition("bottom-start", s.value, l.value)) : a.value = -1;
3144
+ }, $ = () => i.value ? x(!1) : null, v = (b) => {
3145
+ u.value = b, o.value = b.id, x(!1);
3146
+ }, _ = (b, g) => {
3102
3147
  if (!b || !g) return;
3103
- const w = b.offsetTop, E = w + b.offsetHeight, S = g.scrollTop, B = S + g.clientHeight;
3104
- w < S ? g.scrollTop = w - 80 : E > B && (g.scrollTop = E - g.clientHeight + 4);
3105
- }, $ = (b) => {
3148
+ const w = b.offsetTop, B = w + b.offsetHeight, A = g.scrollTop, R = A + g.clientHeight;
3149
+ w < A ? g.scrollTop = w - 80 : B > R && (g.scrollTop = B - g.clientHeight + 4);
3150
+ }, k = (b) => {
3106
3151
  if (!i.value) return;
3107
3152
  const { keyCode: g } = b;
3108
3153
  if ([38, 40, 13].includes(g) && b.preventDefault(), g == 38) {
3109
3154
  if (a.value == 0) return;
3110
- a.value -= 1, x(d.value[a.value], l.value);
3155
+ a.value -= 1, _(d.value[a.value], l.value);
3111
3156
  } else if (g == 40) {
3112
- if (a.value + 1 >= f.value?.length) return;
3113
- a.value += 1, x(d.value[a.value], l.value);
3157
+ if (a.value + 1 >= y.value?.length) return;
3158
+ a.value += 1, _(d.value[a.value], l.value);
3114
3159
  } else if (g == 13) {
3115
- const w = f.value[a.value];
3116
- w && m(w);
3160
+ const w = y.value[a.value];
3161
+ w && v(w);
3117
3162
  }
3118
- }, v = async (b) => {
3163
+ }, E = async (b) => {
3119
3164
  if (i.value) return;
3120
3165
  const { keyCode: g } = b;
3121
- [38, 40].includes(g) && (await b.preventDefault(), a.value = 0, setTimeout(() => p()));
3122
- }, _ = (b) => {
3166
+ [38, 40].includes(g) && (await b.preventDefault(), a.value = 0, setTimeout(() => x()));
3167
+ }, S = (b) => {
3123
3168
  i.value && s.value && l.value && !l.value.contains(b.target) && (i.value = !1);
3124
- }, k = (b) => {
3125
- b?.key === "Escape" && i.value && p(!1);
3169
+ }, C = (b) => {
3170
+ b?.key === "Escape" && i.value && x(!1);
3126
3171
  };
3127
3172
  return onMounted(async () => {
3128
- addEventListener("click", y), addEventListener("keydown", $), addEventListener("scroll", _, !0), addEventListener("keydown", k), r.value && !t.options?.length && t.data && (c.value = await h(), u.value = c.value?.find((b) => b?.id === r.value) || null);
3173
+ addEventListener("click", $), addEventListener("keydown", k), addEventListener("scroll", S, !0), addEventListener("keydown", C), o.value && !t.options?.length && t.data && (c.value = await m(), u.value = c.value?.find((b) => b?.id === o.value) || null);
3129
3174
  }), onUnmounted(() => {
3130
- removeEventListener("click", y), removeEventListener("keydown", $), removeEventListener("scroll", _, !0), removeEventListener("keydown", k);
3175
+ removeEventListener("click", $), removeEventListener("keydown", k), removeEventListener("scroll", S, !0), removeEventListener("keydown", C);
3176
+ }), watch(f, (b) => {
3177
+ let g = !1;
3178
+ (b == "" || b.trimStart().length !== 0) && (g = !0), g && (p && clearTimeout(p), p = setTimeout(async () => {
3179
+ !t.options?.length && t.data ? c.value = await m() : c.value = t.options.filter((w) => w.text.toLowerCase().includes(b.toLowerCase()));
3180
+ }, 200));
3131
3181
  }), (b, g) => (openBlock(), createElementBlock("div", {
3132
3182
  class: "relative w-full",
3133
3183
  ref_key: "select",
3134
3184
  ref: s,
3135
- onClick: g[3] || (g[3] = withModifiers(() => {
3185
+ onClick: g[5] || (g[5] = withModifiers(() => {
3136
3186
  }, ["stop"]))
3137
3187
  }, [
3138
3188
  createElementVNode("button", {
@@ -3143,8 +3193,8 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
3143
3193
  unref(n),
3144
3194
  b.customClass
3145
3195
  ]]),
3146
- onKeydown: v,
3147
- onClick: g[0] || (g[0] = (w) => p(!i.value)),
3196
+ onKeydown: E,
3197
+ onClick: g[0] || (g[0] = (w) => x(!i.value)),
3148
3198
  disabled: b.disabled,
3149
3199
  style: {
3150
3200
  border: "1px solid #CFD9E0"
@@ -3156,7 +3206,7 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
3156
3206
  style: normalizeStyle({ backgroundColor: u.value?.color })
3157
3207
  }, null, 4)) : createCommentVNode("", !0),
3158
3208
  u.value?.text ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(u.value?.text), 1)) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(b.placeholder), 1))
3159
- ], 42, _hoisted_1),
3209
+ ], 42, _hoisted_1$1),
3160
3210
  createElementVNode("span", _hoisted_4, [
3161
3211
  createVNode(unref(IconChevronTopBottom), {
3162
3212
  height: "14",
@@ -3167,7 +3217,7 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
3167
3217
  key: 0,
3168
3218
  type: "button",
3169
3219
  onClick: g[1] || (g[1] = (w) => {
3170
- r.value = null, u.value = null;
3220
+ o.value = null, u.value = null;
3171
3221
  }),
3172
3222
  class: "absolute top-[50%] text-gray-500 translate-y-[-50%] hover:text-red-600 right-[30px]"
3173
3223
  }, [
@@ -3182,23 +3232,49 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
3182
3232
  ref_key: "list",
3183
3233
  ref: l,
3184
3234
  style: normalizeStyle({
3185
- width: o.value.width,
3235
+ width: r.value.width,
3186
3236
  maxHeight: b.maxHeight + "px",
3187
3237
  backgroundColor: "white"
3188
3238
  }),
3189
- onClick: g[2] || (g[2] = withModifiers(() => {
3239
+ onClick: g[4] || (g[4] = withModifiers(() => {
3190
3240
  }, ["stop"]))
3191
3241
  }, [
3192
- f.value?.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3193
- g[4] || (g[4] = createElementVNode("li", { class: "sticky top-[-4px] text-[12px] bg-white p-1 z-[2] px-4 text-gray-400" }, " Натисніть Enter для вибору, ↑↓ для навігації, Esc для закриття ", -1)),
3194
- (openBlock(!0), createElementBlock(Fragment, null, renderList(f.value, (w, E) => (openBlock(), createElementBlock("li", {
3195
- onClick: (S) => m(w),
3242
+ b.mode === "search" ? (openBlock(), createElementBlock("li", _hoisted_5, [
3243
+ createElementVNode("div", _hoisted_6, [
3244
+ withDirectives(createElementVNode("input", {
3245
+ "onUpdate:modelValue": g[2] || (g[2] = (w) => f.value = w),
3246
+ class: "w-full h-full text-[13px] px-4 border rounded-sm pl-9 focus:outline-none focus:ring-ring focus:ring-1 focus:ring-blue-500",
3247
+ placeholder: "Пошук",
3248
+ type: "text",
3249
+ ref_key: "inputRef",
3250
+ ref: h
3251
+ }, null, 512), [
3252
+ [vModelText, f.value]
3253
+ ]),
3254
+ createVNode(IconMagnifyingGlass, {
3255
+ width: "15px",
3256
+ height: "15px",
3257
+ class: "absolute text-gray-400 -translate-y-1/2 left-4 top-1/2"
3258
+ }),
3259
+ f.value != "" ? (openBlock(), createBlock(unref(IconClose), {
3260
+ key: 0,
3261
+ width: "15px",
3262
+ height: "15px",
3263
+ onClick: g[3] || (g[3] = (w) => f.value = ""),
3264
+ class: "absolute text-gray-400 -translate-y-1/2 cursor-pointer hover:text-red-500 right-4 top-1/2"
3265
+ })) : createCommentVNode("", !0)
3266
+ ])
3267
+ ])) : createCommentVNode("", !0),
3268
+ y.value?.length ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
3269
+ g[6] || (g[6] = createElementVNode("li", { class: "sticky top-[-4px] text-[12px] bg-white p-1 z-[2] px-4 text-gray-400" }, " Натисніть Enter для вибору, ↑↓ для навігації, Esc для закриття ", -1)),
3270
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(y.value, (w, B) => (openBlock(), createElementBlock("li", {
3271
+ onClick: (A) => v(w),
3196
3272
  key: w?.id,
3197
3273
  ref_for: !0,
3198
- ref: (S) => d.value[E] = S,
3199
- class: normalizeClass(["cursor-pointer relative py-2 px-4 w-full text-[14px] text-gray-700 hover:bg-gray-100 rounded-lg", [a.value == E ? "bg-gray-100" : ""]])
3274
+ ref: (A) => d.value[B] = A,
3275
+ class: normalizeClass(["cursor-pointer relative py-2 px-4 w-full text-[14px] text-gray-700 hover:bg-gray-100 rounded-lg", [a.value == B ? "bg-gray-100" : ""]])
3200
3276
  }, [
3201
- createElementVNode("span", _hoisted_6, [
3277
+ createElementVNode("span", _hoisted_8, [
3202
3278
  w?.color ? (openBlock(), createElementBlock("span", {
3203
3279
  key: 0,
3204
3280
  class: "w-[16px] h-[16px] rounded-md block",
@@ -3206,35 +3282,75 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
3206
3282
  }, null, 4)) : createCommentVNode("", !0),
3207
3283
  createTextVNode(" " + toDisplayString(w?.text), 1)
3208
3284
  ]),
3209
- r.value == w?.id ? (openBlock(), createBlock(unref(IconCheck), {
3285
+ o.value == w?.id ? (openBlock(), createBlock(unref(IconCheck), {
3210
3286
  key: 0,
3211
3287
  height: "14",
3212
3288
  width: "14",
3213
3289
  "stroke-width": "2",
3214
3290
  class: "absolute right-[16px] top-[50%] translate-y-[-50%] text-blue-600"
3215
3291
  })) : createCommentVNode("", !0)
3216
- ], 10, _hoisted_5))), 128))
3217
- ], 64)) : (openBlock(), createElementBlock("li", _hoisted_7, "Дані відсутні"))
3292
+ ], 10, _hoisted_7))), 128))
3293
+ ], 64)) : (openBlock(), createElementBlock("li", _hoisted_9, "Дані відсутні"))
3218
3294
  ], 4), [
3219
3295
  [vShow, i.value]
3220
3296
  ])
3221
3297
  ]))
3222
3298
  ], 512));
3223
3299
  }
3300
+ }), _hoisted_1 = ["placeholder", "disabled"], _sfc_main$2 = /* @__PURE__ */ defineComponent({
3301
+ __name: "vs-input-textarea",
3302
+ props: /* @__PURE__ */ mergeModels({
3303
+ style: {
3304
+ type: Object,
3305
+ default: () => ({})
3306
+ },
3307
+ customClass: {
3308
+ type: String,
3309
+ default: ""
3310
+ },
3311
+ placeholder: {
3312
+ type: String,
3313
+ default: ""
3314
+ },
3315
+ disabled: {
3316
+ type: Boolean,
3317
+ default: !1
3318
+ }
3319
+ }, {
3320
+ modelValue: { default: "" },
3321
+ modelModifiers: {}
3322
+ }),
3323
+ emits: ["update:modelValue"],
3324
+ setup(e) {
3325
+ const t = e, { inputClass: n } = useStyle(t.style), o = useModel(e, "modelValue");
3326
+ return (r, s) => withDirectives((openBlock(), createElementBlock("textarea", {
3327
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => o.value = l),
3328
+ placeholder: e.placeholder,
3329
+ disabled: e.disabled,
3330
+ row: "2",
3331
+ class: normalizeClass(["py-1.5 px-3 block w-full placeholder:text[#767f8f] h-auto", [unref(n)]]),
3332
+ style: {
3333
+ border: "1px solid #CFD9E0"
3334
+ }
3335
+ }, null, 10, _hoisted_1)), [
3336
+ [vModelText, o.value]
3337
+ ]);
3338
+ }
3224
3339
  }), inputs = {
3225
- VsInputText: _sfc_main$x,
3226
- VsInputRadio: _sfc_main$q,
3227
- "vs-input-text": _sfc_main$x,
3228
- "vs-input-mask": _sfc_main$t,
3229
- "vs-input-number": _sfc_main$w,
3230
- "vs-input-radio": _sfc_main$q,
3231
- "vs-input-select": _sfc_main$2,
3232
- "vs-input-switcher": _sfc_main$v,
3233
- "vs-input-static": _sfc_main$u,
3234
- "vs-input-container": _sfc_main$3,
3235
- "vs-input-date": _sfc_main$k,
3340
+ VsInputText: _sfc_main$z,
3341
+ VsInputRadio: _sfc_main$s,
3342
+ "vs-input-text": _sfc_main$z,
3343
+ "vs-input-textarea": _sfc_main$2,
3344
+ "vs-input-mask": _sfc_main$v,
3345
+ "vs-input-number": _sfc_main$y,
3346
+ "vs-input-radio": _sfc_main$s,
3347
+ "vs-input-select": _sfc_main$3,
3348
+ "vs-input-switcher": _sfc_main$x,
3349
+ "vs-input-static": _sfc_main$w,
3350
+ "vs-input-container": _sfc_main$5,
3351
+ "vs-input-date": _sfc_main$m,
3236
3352
  "vs-input-checkbox": VsInputCheckbox,
3237
- "vs-input-file": _sfc_main$a
3353
+ "vs-input-file": _sfc_main$c
3238
3354
  }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
3239
3355
  __name: "vs-compact-form-layout",
3240
3356
  props: {
@@ -3256,13 +3372,13 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
3256
3372
  }
3257
3373
  },
3258
3374
  setup(e) {
3259
- const t = e, n = computed(() => layouts$1[`${t.layout}`]), r = computed(() => inputs?.[`vs-input-${t.type}`]);
3260
- return (o, s) => (openBlock(), createBlock(resolveDynamicComponent(n.value), mergeProps(o.$attrs, {
3375
+ const t = e, n = computed(() => layouts$1[`${t.layout}`]), o = computed(() => inputs?.[`vs-input-${t.type}`]);
3376
+ return (r, s) => (openBlock(), createBlock(resolveDynamicComponent(n.value), mergeProps(r.$attrs, {
3261
3377
  style: e.style,
3262
3378
  item: e.item
3263
3379
  }), {
3264
3380
  default: withCtx(() => [
3265
- (openBlock(), createBlock(resolveDynamicComponent(r.value), mergeProps(o.$attrs, { style: e.style }), null, 16, ["style"]))
3381
+ (openBlock(), createBlock(resolveDynamicComponent(o.value), mergeProps(r.$attrs, { style: e.style }), null, 16, ["style"]))
3266
3382
  ]),
3267
3383
  _: 1
3268
3384
  }, 16, ["style", "item"]));
@@ -3270,9 +3386,9 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
3270
3386
  }), formErrorsUa = {
3271
3387
  required: "Це поле є обов’язковим",
3272
3388
  email: "Неправильний email"
3273
- }, required = (e) => e ? !1 : formErrorsUa.required, email = (e) => !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e) && e ? formErrorsUa.email : !1, regexp = (e, t) => !t.pattern.test(e) && e ? t.message : !1, custom = (value, custom) => {
3274
- const func = eval(custom.function);
3275
- return func(value) ? !1 : custom.message;
3389
+ }, required = (e) => e ? !1 : formErrorsUa.required, email = (e) => !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e) && e ? formErrorsUa.email : !1, regexp = (e, t) => !(typeof t.pattern == "string" ? new RegExp(t.pattern) : t.pattern).test(e) && e ? t.message : !1, custom = (value, customRule) => {
3390
+ const func = eval(customRule.function);
3391
+ return func(value) ? !1 : customRule.message;
3276
3392
  }, checkFormRules = (e, t) => {
3277
3393
  switch (typeof t == "string" ? t : t.type) {
3278
3394
  case "required":
@@ -3290,7 +3406,6 @@ const IconClose = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_rend
3290
3406
  autocomplete: "select",
3291
3407
  combobox: "select",
3292
3408
  email: "text",
3293
- textarea: "text",
3294
3409
  datepicker: "date",
3295
3410
  markedtext: "text"
3296
3411
  // mask: 'text',
@@ -3303,18 +3418,24 @@ function convertSchema(e) {
3303
3418
  if (Array.isArray(e)) return e;
3304
3419
  const t = [];
3305
3420
  return Object.entries(e).forEach((n) => {
3306
- const r = { name: n[0], ...n[1], type: convertType(n[1].type), label: n[1].label || n[1].ua };
3307
- n[1].data && (r.api = `/api/suggest/${n[1].data}`), t.push(r);
3421
+ const o = {
3422
+ name: n[0],
3423
+ ...n[1],
3424
+ type: convertType(n[1].type),
3425
+ label: n[1].label || n[1].ua,
3426
+ rules: n[1].rules || n[1].validators
3427
+ };
3428
+ n[1].data && (o.api = `/api/suggest/${n[1].data}`), t.push(o);
3308
3429
  }), t;
3309
3430
  }
3310
3431
  function useForm(e, t) {
3311
- const n = convertSchema(t), r = ref({}), o = (i = n, u = !0) => {
3432
+ const n = convertSchema(t), o = ref({}), r = (i = n, u = !0) => {
3312
3433
  if (i.forEach((c) => {
3313
3434
  c.rules && c.rules.forEach((a) => {
3314
- r.value[c.name] = checkFormRules(e.value[c.name], a);
3315
- }), c.schema && o(c.schema, !1);
3316
- }), u && Object.values(r.value).some(Boolean))
3317
- throw new Error("Помилка валідації");
3435
+ o.value[c.name] = checkFormRules(e.value[c.name], a);
3436
+ }), c.schema && r(c.schema, !1);
3437
+ }), u && Object.values(o.value).some(Boolean))
3438
+ return o.value;
3318
3439
  }, s = computed(() => n?.filter((i) => {
3319
3440
  const u = i?.conditions;
3320
3441
  if (!u) return !0;
@@ -3322,10 +3443,10 @@ function useForm(e, t) {
3322
3443
  return isVisible(a, u);
3323
3444
  }));
3324
3445
  return {
3325
- errors: r,
3326
- validate: o,
3446
+ errors: o,
3447
+ validate: r,
3327
3448
  reset: () => {
3328
- e.value = {}, r.value = {};
3449
+ e.value = {}, o.value = {};
3329
3450
  },
3330
3451
  visibleSchema: s
3331
3452
  };
@@ -3344,12 +3465,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3344
3465
  }),
3345
3466
  emits: /* @__PURE__ */ mergeModels(["handle-submit"], ["update:form", "update:values"]),
3346
3467
  setup(e, { emit: t }) {
3347
- const n = t, r = e, o = useAttrs(), s = useModel(e, "form"), l = useModel(e, "values"), {
3468
+ const n = t, o = e, r = useAttrs(), s = useModel(e, "form"), l = useModel(e, "values"), {
3348
3469
  errors: i,
3349
3470
  validate: u,
3350
3471
  reset: c,
3351
3472
  visibleSchema: a
3352
- } = useForm(l, r.schema), d = () => {
3473
+ } = useForm(l, o.schema), d = () => {
3353
3474
  u(), n("handle-submit", l.value);
3354
3475
  };
3355
3476
  return onMounted(() => {
@@ -3361,7 +3482,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3361
3482
  (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(a), (p) => (openBlock(), createBlock(_sfc_main$1, mergeProps({
3362
3483
  key: p.name,
3363
3484
  class: `col-span-${p.col || 12} `
3364
- }, { ref_for: !0 }, { ...unref(o), ...f.style, ...p }, {
3485
+ }, { ref_for: !0 }, { ...unref(r), ...f.style, ...p }, {
3365
3486
  item: p,
3366
3487
  layout: f.layout,
3367
3488
  modelValue: l.value[p.name],
@@ -3377,6 +3498,6 @@ _sfc_main.install = function e(t) {
3377
3498
  };
3378
3499
  export {
3379
3500
  _sfc_main as VForm,
3380
- _sfc_main$x as VsInputText,
3501
+ _sfc_main$z as VsInputText,
3381
3502
  _sfc_main as default
3382
3503
  };