@promodev/form-builder-vue3 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { computed as K, toValue as Ee, unref as u, onMounted as $n, getCurrentInstance as Mn, provide as Zi, isRef as Zt, watch as ze, onBeforeUnmount as bi, ref as $e, reactive as Fn, readonly as pf, watchEffect as mf, shallowRef as Ba, nextTick as sn, warn as _f, inject as Ha, onUnmounted as Wa, effectScope as hf, defineComponent as De, h as Qn, getCurrentScope as $f, onScopeDispose as gf, Fragment as rt, createVNode as Te, Text as vf, openBlock as O, createElementBlock as x, withDirectives as Je, createElementVNode as Z, normalizeClass as He, vModelDynamic as mu, toDisplayString as ae, createCommentVNode as re, createBlock as ei, vModelCheckbox as _u, renderList as Ot, vModelRadio as Ga, vModelSelect as Ya, vModelText as At, createTextVNode as Ft, withKeys as Ji, withModifiers as lr, Teleport as bf, renderSlot as yf, resolveDynamicComponent as Ef, vShow as Nf, withCtx as Tf } from "vue";
1
+ import { computed as K, toValue as Ee, unref as u, onMounted as $n, getCurrentInstance as Mn, provide as Zi, isRef as Zt, watch as Ve, onBeforeUnmount as bi, ref as $e, reactive as Fn, readonly as pf, watchEffect as mf, shallowRef as Ba, nextTick as sn, warn as _f, inject as Ha, onUnmounted as Wa, effectScope as hf, defineComponent as De, h as Qn, getCurrentScope as $f, onScopeDispose as gf, Fragment as rt, createVNode as Te, Text as vf, openBlock as O, createElementBlock as x, withDirectives as Je, createElementVNode as Z, normalizeClass as He, vModelDynamic as mu, toDisplayString as ae, createCommentVNode as re, createBlock as ei, vModelCheckbox as _u, renderList as Ot, vModelRadio as Ga, vModelSelect as Ya, vModelText as At, createTextVNode as Ft, withKeys as Ji, withModifiers as lr, Teleport as bf, renderSlot as yf, resolveDynamicComponent as Ef, vShow as Nf, withCtx as Tf } from "vue";
2
2
  function Mt(e) {
3
3
  return typeof e == "function";
4
4
  }
@@ -402,12 +402,12 @@ async function Gf(e, t) {
402
402
  value: t
403
403
  }, d = Array.isArray(n) ? n : [n], l = d.length, c = [];
404
404
  for (let f = 0; f < l; f++) {
405
- const m = d[f], $ = await m(t, s);
406
- if (!(typeof $ != "string" && !Array.isArray($) && $)) {
407
- if (Array.isArray($))
408
- c.push(...$);
405
+ const m = d[f], h = await m(t, s);
406
+ if (!(typeof h != "string" && !Array.isArray(h) && h)) {
407
+ if (Array.isArray(h))
408
+ c.push(...h);
409
409
  else {
410
- const T = typeof $ == "string" ? $ : Ou(s);
410
+ const T = typeof h == "string" ? h : Ou(s);
411
411
  c.push(T);
412
412
  }
413
413
  if (e.bails)
@@ -514,9 +514,9 @@ async function Jf(e, t) {
514
514
  async function Qf(e, t, n) {
515
515
  const i = Ht(e).map(async (l) => {
516
516
  var c, f, m;
517
- const $ = (c = n?.names) === null || c === void 0 ? void 0 : c[l], y = await Su(Yt(t, l), e[l], {
518
- name: $?.name || l,
519
- label: $?.label,
517
+ const h = (c = n?.names) === null || c === void 0 ? void 0 : c[l], y = await Su(Yt(t, l), e[l], {
518
+ name: h?.name || l,
519
+ label: h?.label,
520
520
  values: t,
521
521
  bails: (m = (f = n?.bailsMap) === null || f === void 0 ? void 0 : f[l]) !== null && m !== void 0 ? m : !0
522
522
  });
@@ -540,9 +540,9 @@ let id = 0;
540
540
  function e1(e, t) {
541
541
  const { value: n, initialValue: r, setInitialValue: i } = t1(e, t.modelValue, t.form);
542
542
  if (!t.form) {
543
- let m = function($) {
543
+ let m = function(h) {
544
544
  var y;
545
- "value" in $ && (n.value = $.value), "errors" in $ && l($.errors), "touched" in $ && (f.touched = (y = $.touched) !== null && y !== void 0 ? y : f.touched), "initialValue" in $ && i($.initialValue);
545
+ "value" in h && (n.value = h.value), "errors" in h && l(h.errors), "touched" in h && (f.touched = (y = h.touched) !== null && y !== void 0 ? y : f.touched), "initialValue" in h && i(h.initialValue);
546
546
  };
547
547
  const { errors: d, setErrors: l } = i1(), c = id >= Number.MAX_SAFE_INTEGER ? 0 : ++id, f = r1(n, r, d, t.schema);
548
548
  return {
@@ -627,7 +627,7 @@ function r1(e, t, n, r) {
627
627
  initialValue: K(() => u(t)),
628
628
  dirty: K(() => !Ut(u(e), u(t)))
629
629
  });
630
- return ze(n, (a) => {
630
+ return Ve(n, (a) => {
631
631
  o.valid = !a.length;
632
632
  }, {
633
633
  immediate: !0,
@@ -963,7 +963,7 @@ function er(e, t, n) {
963
963
  return vu(n?.type) ? p1(e, t, n) : Pu(e, t, n);
964
964
  }
965
965
  function Pu(e, t, n) {
966
- const { initialValue: r, validateOnMount: i, bails: o, type: a, checkedValue: s, label: d, validateOnValueUpdate: l, uncheckedValue: c, controlled: f, keepValueOnUnmount: m, syncVModel: $, form: y } = f1(n), T = f ? Eu(Xa) : void 0, v = y || T, p = K(() => Yr(Ee(e))), _ = K(() => {
966
+ const { initialValue: r, validateOnMount: i, bails: o, type: a, checkedValue: s, label: d, validateOnValueUpdate: l, uncheckedValue: c, controlled: f, keepValueOnUnmount: m, syncVModel: h, form: y } = f1(n), T = f ? Eu(Xa) : void 0, v = y || T, p = K(() => Yr(Ee(e))), _ = K(() => {
967
967
  if (Ee(v?.schema))
968
968
  return;
969
969
  const oe = u(t);
@@ -977,9 +977,9 @@ function Pu(e, t, n) {
977
977
  validate: _.value ? V : void 0,
978
978
  schema: E ? t : void 0
979
979
  }), U = K(() => Q.value[0]);
980
- $ && m1({
980
+ h && m1({
981
981
  value: M,
982
- prop: $,
982
+ prop: h,
983
983
  handleChange: q,
984
984
  shouldValidate: () => l && !ie.pendingReset
985
985
  });
@@ -1027,7 +1027,7 @@ function Pu(e, t, n) {
1027
1027
  }
1028
1028
  const fe = Mn();
1029
1029
  function pe(X, oe = !0) {
1030
- M.value = fe && $ ? Mf(X, fe.props.modelModifiers) : X, (oe ? R : F)();
1030
+ M.value = fe && h ? Mf(X, fe.props.modelModifiers) : X, (oe ? R : F)();
1031
1031
  }
1032
1032
  function he(X) {
1033
1033
  ee({ errors: Array.isArray(X) ? X : [X] });
@@ -1062,11 +1062,11 @@ function Pu(e, t, n) {
1062
1062
  setErrors: he,
1063
1063
  setValue: pe
1064
1064
  };
1065
- if (Zi(Pf, ue), Zt(t) && typeof u(t) != "function" && ze(t, (X, oe) => {
1065
+ if (Zi(Pf, ue), Zt(t) && typeof u(t) != "function" && Ve(t, (X, oe) => {
1066
1066
  Ut(X, oe) || (w.validated ? R() : F());
1067
1067
  }, {
1068
1068
  deep: !0
1069
- }), process.env.NODE_ENV !== "production" && (ue._vm = Mn(), ze(() => Object.assign(Object.assign({ errors: Q.value }, w), { value: M.value }), xr, {
1069
+ }), process.env.NODE_ENV !== "production" && (ue._vm = Mn(), Ve(() => Object.assign(Object.assign({ errors: Q.value }, w), { value: M.value }), xr, {
1070
1070
  deep: !0
1071
1071
  }), v || a1(ue)), !v)
1072
1072
  return ue;
@@ -1080,7 +1080,7 @@ function Pu(e, t, n) {
1080
1080
  return Object.assign(oe, Se), oe;
1081
1081
  }, {});
1082
1082
  });
1083
- return ze(ve, (X, oe) => {
1083
+ return Ve(ve, (X, oe) => {
1084
1084
  if (!Object.keys(X).length)
1085
1085
  return;
1086
1086
  !Ut(X, oe) && (w.validated ? R() : F());
@@ -1133,11 +1133,11 @@ function p1(e, t, n) {
1133
1133
  function a(s) {
1134
1134
  const d = s.handleChange, l = K(() => {
1135
1135
  const f = Ee(s.value), m = Ee(i);
1136
- return Array.isArray(f) ? f.findIndex(($) => Ut($, m)) >= 0 : Ut(m, f);
1136
+ return Array.isArray(f) ? f.findIndex((h) => Ut(h, m)) >= 0 : Ut(m, f);
1137
1137
  });
1138
1138
  function c(f, m = !0) {
1139
- var $, y;
1140
- if (l.value === (($ = f?.target) === null || $ === void 0 ? void 0 : $.checked)) {
1139
+ var h, y;
1140
+ if (l.value === ((h = f?.target) === null || h === void 0 ? void 0 : h.checked)) {
1141
1141
  m && s.validate();
1142
1142
  return;
1143
1143
  }
@@ -1161,9 +1161,9 @@ function m1({ prop: e, value: t, handleChange: n, shouldValidate: r }) {
1161
1161
  return;
1162
1162
  }
1163
1163
  const o = typeof e == "string" ? e : "modelValue", a = `update:${o}`;
1164
- o in i.props && (ze(t, (s) => {
1164
+ o in i.props && (Ve(t, (s) => {
1165
1165
  Ut(s, ga(i, o)) || i.emit(a, s);
1166
- }), ze(() => ga(i, o), (s) => {
1166
+ }), Ve(() => ga(i, o), (s) => {
1167
1167
  if (s === Zs && t.value === void 0)
1168
1168
  return;
1169
1169
  const d = s === Zs ? void 0 : s;
@@ -1184,7 +1184,7 @@ function h1(e) {
1184
1184
  var t;
1185
1185
  const n = _1++, r = "Form";
1186
1186
  let i = 0;
1187
- const o = $e(!1), a = $e(!1), s = $e(0), d = [], l = Fn(Iu()), c = $e([]), f = $e({}), m = $e({}), $ = Ff(() => {
1187
+ const o = $e(!1), a = $e(!1), s = $e(0), d = [], l = Fn(Iu()), c = $e([]), f = $e({}), m = $e({}), h = Ff(() => {
1188
1188
  m.value = c.value.reduce((C, I) => (C[Yr(Ee(I.path))] = I, C), {});
1189
1189
  });
1190
1190
  function y(C, I) {
@@ -1257,10 +1257,10 @@ function h1(e) {
1257
1257
  validate: I?.validate,
1258
1258
  dirty: K(() => !Ut(u(et), u(ge)))
1259
1259
  });
1260
- return c.value.push(dt), m.value[st] = dt, $(), p.value[st] && !b[st] && sn(() => {
1260
+ return c.value.push(dt), m.value[st] = dt, h(), p.value[st] && !b[st] && sn(() => {
1261
1261
  j(st, { mode: "silent" });
1262
- }), Zt(C) && ze(C, (gt) => {
1263
- $();
1262
+ }), Zt(C) && Ve(C, (gt) => {
1263
+ h();
1264
1264
  const Jt = Ze(et.value);
1265
1265
  m.value[gt] = dt, sn(() => {
1266
1266
  hn(l, gt, Jt);
@@ -1348,14 +1348,14 @@ function h1(e) {
1348
1348
  const ge = se.id.indexOf(I);
1349
1349
  ge >= 0 && se.id.splice(ge, 1), delete se.__flags.pendingUnmount[I];
1350
1350
  }
1351
- (!se.multiple || se.fieldsCount <= 0) && (c.value.splice(H, 1), L(C), $(), delete m.value[C]);
1351
+ (!se.multiple || se.fieldsCount <= 0) && (c.value.splice(H, 1), L(C), h(), delete m.value[C]);
1352
1352
  }
1353
1353
  }
1354
1354
  function X(C) {
1355
1355
  Ht(m.value).forEach((I) => {
1356
1356
  I.startsWith(C) && delete m.value[I];
1357
1357
  }), c.value = c.value.filter((I) => !I.path.startsWith(C)), sn(() => {
1358
- $();
1358
+ h();
1359
1359
  });
1360
1360
  }
1361
1361
  const oe = {
@@ -1387,7 +1387,7 @@ function h1(e) {
1387
1387
  useFieldModel: Ie,
1388
1388
  defineInputBinds: k,
1389
1389
  defineComponentBinds: Y,
1390
- defineField: Ve,
1390
+ defineField: ze,
1391
1391
  stageInitialValue: B,
1392
1392
  unsetInitialValue: L,
1393
1393
  setFieldInitialValue: te,
@@ -1535,13 +1535,13 @@ function h1(e) {
1535
1535
  });
1536
1536
  $n(() => {
1537
1537
  oe.validateSchema && oe.validateSchema("silent");
1538
- }), Zt(U) && ze(U, () => {
1538
+ }), Zt(U) && Ve(U, () => {
1539
1539
  var C;
1540
1540
  (C = oe.validateSchema) === null || C === void 0 || C.call(oe, "validated-only");
1541
- }), Zi(Xa, oe), process.env.NODE_ENV !== "production" && (o1(oe), ze(() => Object.assign(Object.assign({ errors: v.value }, Q.value), { values: l, isSubmitting: o.value, isValidating: a.value, submitCount: s.value }), xr, {
1541
+ }), Zi(Xa, oe), process.env.NODE_ENV !== "production" && (o1(oe), Ve(() => Object.assign(Object.assign({ errors: v.value }, Q.value), { values: l, isSubmitting: o.value, isValidating: a.value, submitCount: s.value }), xr, {
1542
1542
  deep: !0
1543
1543
  }));
1544
- function Ve(C, I) {
1544
+ function ze(C, I) {
1545
1545
  const H = Mt(I) ? void 0 : I?.label, se = q(Ee(C)) || P(C, { label: H }), ge = () => Mt(I) ? I(xi(se, Pi)) : I || {};
1546
1546
  function we() {
1547
1547
  var We;
@@ -1576,7 +1576,7 @@ function h1(e) {
1576
1576
  return Array.isArray(C) ? C.map((I) => Ue(I, !0)) : Ue(C);
1577
1577
  }
1578
1578
  function k(C, I) {
1579
- const [H, se] = Ve(C, I);
1579
+ const [H, se] = ze(C, I);
1580
1580
  function ge() {
1581
1581
  se.value.onBlur();
1582
1582
  }
@@ -1596,7 +1596,7 @@ function h1(e) {
1596
1596
  }));
1597
1597
  }
1598
1598
  function Y(C, I) {
1599
- const [H, se] = Ve(C, I), ge = q(Ee(C));
1599
+ const [H, se] = ze(C, I), ge = q(Ee(C));
1600
1600
  function we(be) {
1601
1601
  H.value = be;
1602
1602
  }
@@ -2459,7 +2459,7 @@ function fo(e, t, n) {
2459
2459
  }
2460
2460
  return _;
2461
2461
  }
2462
- function $(_) {
2462
+ function h(_) {
2463
2463
  if (_ > l)
2464
2464
  throw new ce(
2465
2465
  "Object is too deeply nested (" + _ + " levels). Max depth: " + l,
@@ -2475,7 +2475,7 @@ function fo(e, t, n) {
2475
2475
  return w;
2476
2476
  for (; b.length && b[b.length - 1] !== this; )
2477
2477
  b.pop();
2478
- return b.push(w), $(E + b.length - 1), w;
2478
+ return b.push(w), h(E + b.length - 1), w;
2479
2479
  });
2480
2480
  }
2481
2481
  function T(_, E, b) {
@@ -2503,7 +2503,7 @@ function fo(e, t, n) {
2503
2503
  });
2504
2504
  function p(_, E, b = 0) {
2505
2505
  if (!S.isUndefined(_)) {
2506
- if ($(b), f.indexOf(_) !== -1)
2506
+ if (h(b), f.indexOf(_) !== -1)
2507
2507
  throw new Error("Circular reference detected in " + E.join("."));
2508
2508
  f.push(_), S.forEach(_, function(D, w) {
2509
2509
  (!(S.isUndefined(D) || D === null) && o.call(t, D, S.isString(w) ? w.trim() : w, E, v)) === !0 && p(D, E ? E.concat(w) : [w], b + 1);
@@ -2883,8 +2883,8 @@ function G2(e, t) {
2883
2883
  m += n[f++], f = f % e;
2884
2884
  if (i = (i + 1) % e, i === o && (o = (o + 1) % e), l - a < t)
2885
2885
  return;
2886
- const $ = c && l - c;
2887
- return $ ? Math.round(m * 1e3 / $) : void 0;
2886
+ const h = c && l - c;
2887
+ return h ? Math.round(m * 1e3 / h) : void 0;
2888
2888
  };
2889
2889
  }
2890
2890
  function Y2(e, t) {
@@ -3026,14 +3026,14 @@ function rr(e, t) {
3026
3026
  writable: !0,
3027
3027
  configurable: !0
3028
3028
  });
3029
- function r(c, f, m, $) {
3030
- return S.isPlainObject(c) && S.isPlainObject(f) ? S.merge.call({ caseless: $ }, c, f) : S.isPlainObject(f) ? S.merge({}, f) : S.isArray(f) ? f.slice() : f;
3029
+ function r(c, f, m, h) {
3030
+ return S.isPlainObject(c) && S.isPlainObject(f) ? S.merge.call({ caseless: h }, c, f) : S.isPlainObject(f) ? S.merge({}, f) : S.isArray(f) ? f.slice() : f;
3031
3031
  }
3032
- function i(c, f, m, $) {
3032
+ function i(c, f, m, h) {
3033
3033
  if (S.isUndefined(f)) {
3034
3034
  if (!S.isUndefined(c))
3035
- return r(void 0, c, m, $);
3036
- } else return r(c, f, m, $);
3035
+ return r(void 0, c, m, h);
3036
+ } else return r(c, f, m, h);
3037
3037
  }
3038
3038
  function o(c, f) {
3039
3039
  if (!S.isUndefined(f))
@@ -3097,7 +3097,7 @@ function rr(e, t) {
3097
3097
  };
3098
3098
  return S.forEach(np({ ...e, ...t }), function(f) {
3099
3099
  if (f === "__proto__" || f === "constructor" || f === "prototype") return;
3100
- const m = S.hasOwnProp(l, f) ? l[f] : i, $ = S.hasOwnProp(e, f) ? e[f] : void 0, y = S.hasOwnProp(t, f) ? t[f] : void 0, T = m($, y, f);
3100
+ const m = S.hasOwnProp(l, f) ? l[f] : i, h = S.hasOwnProp(e, f) ? e[f] : void 0, y = S.hasOwnProp(t, f) ? t[f] : void 0, T = m(h, y, f);
3101
3101
  S.isUndefined(T) && m !== d || (n[f] = T);
3102
3102
  }), S.hasOwnProp(t, "validateStatus") && S.isUndefined(t.validateStatus) && s("validateStatusUndefinedResolves") === !1 && (S.hasOwnProp(e, "validateStatus") ? n.validateStatus = r(void 0, e.validateStatus) : delete n.validateStatus), n;
3103
3103
  }
@@ -3126,11 +3126,11 @@ function ic(e) {
3126
3126
  n("params"),
3127
3127
  n("paramsSerializer")
3128
3128
  ), d) {
3129
- const m = S.getSafeProp(d, "username") || "", $ = S.getSafeProp(d, "password") || "";
3129
+ const m = S.getSafeProp(d, "username") || "", h = S.getSafeProp(d, "password") || "";
3130
3130
  try {
3131
3131
  s.set(
3132
3132
  "Authorization",
3133
- "Basic " + btoa(m + ":" + ($ ? op($) : ""))
3133
+ "Basic " + btoa(m + ":" + (h ? op(h) : ""))
3134
3134
  );
3135
3135
  } catch (y) {
3136
3136
  throw ce.from(y, ce.ERR_BAD_OPTION_VALUE, e);
@@ -3141,8 +3141,8 @@ function ic(e) {
3141
3141
  Et.hasStandardBrowserEnv || Et.hasStandardBrowserWebWorkerEnv || S.isReactNative(r) ? s.setContentType(void 0) : S.isFunction(m) && ip(s, m.call(r), n("formDataHeaderPolicy"));
3142
3142
  }
3143
3143
  if (Et.hasStandardBrowserEnv && (S.isFunction(i) && (i = i(t)), i === !0 || i == null && K2(t.url))) {
3144
- const $ = o && a && X2.read(a);
3145
- $ && s.set(o, $);
3144
+ const h = o && a && X2.read(a);
3145
+ h && s.set(o, h);
3146
3146
  }
3147
3147
  return t;
3148
3148
  }
@@ -3151,9 +3151,9 @@ const ap = typeof XMLHttpRequest < "u", sp = ap && function(e) {
3151
3151
  const i = ic(e);
3152
3152
  let o = i.data;
3153
3153
  const a = Lt.from(i.headers).normalize();
3154
- let { responseType: s, onUploadProgress: d, onDownloadProgress: l } = i, c, f, m, $, y, T;
3154
+ let { responseType: s, onUploadProgress: d, onDownloadProgress: l } = i, c, f, m, h, y, T;
3155
3155
  function v() {
3156
- $ && $(), y && y(), i.cancelToken && i.cancelToken.unsubscribe(c), i.signal && i.signal.removeEventListener("abort", c);
3156
+ h && h(), y && y(), i.cancelToken && i.cancelToken.unsubscribe(c), i.signal && i.signal.removeEventListener("abort", c);
3157
3157
  }
3158
3158
  let p = new XMLHttpRequest();
3159
3159
  p.open(i.method.toUpperCase(), i.url, !0), p.timeout = i.timeout;
@@ -3216,7 +3216,7 @@ const ap = typeof XMLHttpRequest < "u", sp = ap && function(e) {
3216
3216
  }), S.isUndefined(i.withCredentials) || (p.withCredentials = !!i.withCredentials), s && s !== "json" && (p.responseType = i.responseType), l && ([m, y, T] = no(
3217
3217
  l,
3218
3218
  !0
3219
- ), p.addEventListener("progress", m)), d && p.upload && ([f, $] = no(d), p.upload.addEventListener("progress", f), p.upload.addEventListener("loadend", $)), (i.cancelToken || i.signal) && (c = (b) => {
3219
+ ), p.addEventListener("progress", m)), d && p.upload && ([f, h] = no(d), p.upload.addEventListener("progress", f), p.upload.addEventListener("loadend", h)), (i.cancelToken || i.signal) && (c = (b) => {
3220
3220
  p && (r(!b || b.type ? new Ti(null, e, p) : b), p.abort(), v(), p = null);
3221
3221
  }, i.cancelToken && i.cancelToken.subscribe(c), i.signal && (i.signal.aborted ? c() : i.signal.addEventListener("abort", c)));
3222
3222
  const E = zo(i.url);
@@ -3443,8 +3443,8 @@ const is = "1.20.0", yd = 64 * 1024, vp = {
3443
3443
  }
3444
3444
  }), E = _.headers.has("Content-Type");
3445
3445
  return _.body != null && _.body.cancel(), p && !E;
3446
- }), $ = l && c && Nd(() => S.isReadableStream(new a("").body)), y = {
3447
- stream: $ && ((p) => p.body)
3446
+ }), h = l && c && Nd(() => S.isReadableStream(new a("").body)), y = {
3447
+ stream: h && ((p) => p.body)
3448
3448
  };
3449
3449
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
3450
3450
  !y[p] && (y[p] = (_, E) => {
@@ -3613,8 +3613,8 @@ const is = "1.20.0", yd = 64 * 1024, vp = {
3613
3613
  he
3614
3614
  );
3615
3615
  }
3616
- const Ce = $ && (ie === "stream" || ie === "response");
3617
- if ($ && Qe.body && (ee || q || Ce && le)) {
3616
+ const Ce = h && (ie === "stream" || ie === "response");
3617
+ if (h && Qe.body && (ee || q || Ce && le)) {
3618
3618
  const g = {};
3619
3619
  ["status", "statusText", "headers"].forEach((_e) => {
3620
3620
  g[_e] = Qe[_e];
@@ -3646,7 +3646,7 @@ const is = "1.20.0", yd = 64 * 1024, vp = {
3646
3646
  Qe,
3647
3647
  p
3648
3648
  );
3649
- if (q && !$ && !Ce) {
3649
+ if (q && !h && !Ce) {
3650
3650
  let g;
3651
3651
  if (Ke != null && (typeof Ke.byteLength == "number" ? g = Ke.byteLength : typeof Ke.size == "number" ? g = Ke.size : typeof Ke == "string" && (g = typeof r == "function" ? new r().encode(Ke).byteLength : Ke.length)), typeof g == "number" && g > R)
3652
3652
  throw new ce(
@@ -3952,11 +3952,11 @@ let Zn = class {
3952
3952
  return c;
3953
3953
  }
3954
3954
  m = s.length;
3955
- let $ = n;
3955
+ let h = n;
3956
3956
  for (; f < m; ) {
3957
3957
  const y = s[f++], T = s[f++];
3958
3958
  try {
3959
- $ = y ? y($) : $;
3959
+ h = y ? y(h) : h;
3960
3960
  } catch (v) {
3961
3961
  if (!T) {
3962
3962
  c = Promise.reject(v);
@@ -3965,7 +3965,7 @@ let Zn = class {
3965
3965
  try {
3966
3966
  const p = T.call(this, v);
3967
3967
  S.isThenable(p) && (c = Promise.resolve(p).then(
3968
- () => Bo.call(this, $)
3968
+ () => Bo.call(this, h)
3969
3969
  ));
3970
3970
  } catch (p) {
3971
3971
  c = Promise.reject(p);
@@ -3975,7 +3975,7 @@ let Zn = class {
3975
3975
  }
3976
3976
  if (!c)
3977
3977
  try {
3978
- c = Bo.call(this, $);
3978
+ c = Bo.call(this, h);
3979
3979
  } catch (y) {
3980
3980
  c = Promise.reject(y);
3981
3981
  }
@@ -4384,7 +4384,7 @@ function Up() {
4384
4384
  (function(n, r) {
4385
4385
  e.exports = r();
4386
4386
  })(Fp, (function() {
4387
- var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", a = "second", s = "minute", d = "hour", l = "day", c = "week", f = "month", m = "quarter", $ = "year", y = "date", T = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, p = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
4387
+ var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", a = "second", s = "minute", d = "hour", l = "day", c = "week", f = "month", m = "quarter", h = "year", y = "date", T = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, p = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
4388
4388
  var F = ["th", "st", "nd", "rd"], V = R % 100;
4389
4389
  return "[" + R + (F[(V - 20) % 10] || F[V] || F[0]) + "]";
4390
4390
  } }, E = function(R, F, V) {
@@ -4400,7 +4400,7 @@ function Up() {
4400
4400
  }, a: function(R) {
4401
4401
  return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
4402
4402
  }, p: function(R) {
4403
- return { M: f, y: $, w: c, d: l, D: y, h: d, m: s, s: a, ms: o, Q: m }[R] || String(R || "").toLowerCase().replace(/s$/, "");
4403
+ return { M: f, y: h, w: c, d: l, D: y, h: d, m: s, s: a, ms: o, Q: m }[R] || String(R || "").toLowerCase().replace(/s$/, "");
4404
4404
  }, u: function(R) {
4405
4405
  return R === void 0;
4406
4406
  } }, M = "en", D = {};
@@ -4476,7 +4476,7 @@ function Up() {
4476
4476
  return U.w(ne.toDate()[Se].apply(ne.toDate("s"), (de ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Pe)), ne);
4477
4477
  }, le = this.$W, ue = this.$M, ve = this.$D, X = "set" + (this.$u ? "UTC" : "");
4478
4478
  switch (fe) {
4479
- case $:
4479
+ case h:
4480
4480
  return de ? pe(1, 0) : pe(31, 11);
4481
4481
  case f:
4482
4482
  return de ? pe(1, ue) : pe(0, ue + 1);
@@ -4498,8 +4498,8 @@ function Up() {
4498
4498
  }, F.endOf = function(V) {
4499
4499
  return this.startOf(V, !1);
4500
4500
  }, F.$set = function(V, q) {
4501
- var ne, de = U.p(V), fe = "set" + (this.$u ? "UTC" : ""), pe = (ne = {}, ne[l] = fe + "Date", ne[y] = fe + "Date", ne[f] = fe + "Month", ne[$] = fe + "FullYear", ne[d] = fe + "Hours", ne[s] = fe + "Minutes", ne[a] = fe + "Seconds", ne[o] = fe + "Milliseconds", ne)[de], he = de === l ? this.$D + (q - this.$W) : q;
4502
- if (de === f || de === $) {
4501
+ var ne, de = U.p(V), fe = "set" + (this.$u ? "UTC" : ""), pe = (ne = {}, ne[l] = fe + "Date", ne[y] = fe + "Date", ne[f] = fe + "Month", ne[h] = fe + "FullYear", ne[d] = fe + "Hours", ne[s] = fe + "Minutes", ne[a] = fe + "Seconds", ne[o] = fe + "Milliseconds", ne)[de], he = de === l ? this.$D + (q - this.$W) : q;
4502
+ if (de === f || de === h) {
4503
4503
  var le = this.clone().set(y, 1);
4504
4504
  le.$d[pe](he), le.init(), this.$d = le.set(y, Math.min(this.$D, le.daysInMonth())).$d;
4505
4505
  } else pe && this.$d[pe](he);
@@ -4516,7 +4516,7 @@ function Up() {
4516
4516
  return U.w(ve.date(ve.date() + Math.round(ue * V)), de);
4517
4517
  };
4518
4518
  if (fe === f) return this.set(f, this.$M + V);
4519
- if (fe === $) return this.set($, this.$y + V);
4519
+ if (fe === h) return this.set(h, this.$y + V);
4520
4520
  if (fe === l) return pe(1);
4521
4521
  if (fe === c) return pe(7);
4522
4522
  var he = (ne = {}, ne[s] = r, ne[d] = i, ne[a] = n, ne)[fe] || 1, le = this.$d.getTime() + V * he;
@@ -4596,7 +4596,7 @@ function Up() {
4596
4596
  return U.m(fe, he);
4597
4597
  };
4598
4598
  switch (pe) {
4599
- case $:
4599
+ case h:
4600
4600
  de = ve() / 12;
4601
4601
  break;
4602
4602
  case f:
@@ -4644,7 +4644,7 @@ function Up() {
4644
4644
  return this.$d.toUTCString();
4645
4645
  }, R;
4646
4646
  })(), z = P.prototype;
4647
- return ie.prototype = z, [["$ms", o], ["$s", a], ["$m", s], ["$H", d], ["$W", l], ["$M", f], ["$y", $], ["$D", y]].forEach((function(R) {
4647
+ return ie.prototype = z, [["$ms", o], ["$s", a], ["$m", s], ["$H", d], ["$W", l], ["$M", f], ["$y", h], ["$D", y]].forEach((function(R) {
4648
4648
  z[R[1]] = function(F) {
4649
4649
  return this.$g(F, R[0], R[1]);
4650
4650
  };
@@ -4679,7 +4679,7 @@ function zp() {
4679
4679
  }], m = function(v) {
4680
4680
  var p = d[v];
4681
4681
  return p && (p.indexOf ? p : p.s.concat(p.f));
4682
- }, $ = function(v, p) {
4682
+ }, h = function(v, p) {
4683
4683
  var _, E = d.meridiem;
4684
4684
  if (E) {
4685
4685
  for (var b = 1; b <= 24; b += 1) if (v.indexOf(E(b, 0, p)) > -1) {
@@ -4689,9 +4689,9 @@ function zp() {
4689
4689
  } else _ = v === (p ? "pm" : "PM");
4690
4690
  return _;
4691
4691
  }, y = { A: [s, function(v) {
4692
- this.afternoon = $(v, !1);
4692
+ this.afternoon = h(v, !1);
4693
4693
  }], a: [s, function(v) {
4694
- this.afternoon = $(v, !0);
4694
+ this.afternoon = h(v, !0);
4695
4695
  }], Q: [i, function(v) {
4696
4696
  this.month = 3 * (v - 1) + 1;
4697
4697
  }], S: [i, function(v) {
@@ -4824,10 +4824,10 @@ function Hp(e, t, n) {
4824
4824
  };
4825
4825
  let i = 0, o = 0, a = !1;
4826
4826
  const s = /* @__PURE__ */ new Set();
4827
- function d(m, $ = {}) {
4827
+ function d(m, h = {}) {
4828
4828
  navigator.sendBeacon(
4829
4829
  `${e}/api/v2/parcours`,
4830
- JSON.stringify({ ...r, event: m, ...$ })
4830
+ JSON.stringify({ ...r, event: m, ...h })
4831
4831
  );
4832
4832
  }
4833
4833
  function l() {
@@ -4848,13 +4848,13 @@ function Hp(e, t, n) {
4848
4848
  start: c,
4849
4849
  stepDone: f,
4850
4850
  errors(m) {
4851
- for (const $ of m) s.add($);
4851
+ for (const h of m) s.add(h);
4852
4852
  },
4853
4853
  submitted(m) {
4854
4854
  f(m), a = !0, d("submit", { outcome: "success", durationMs: Date.now() - i });
4855
4855
  },
4856
- failed(m, $) {
4857
- c(), d("submit", { outcome: "failure", reason: m, fieldsInError: $ }), o = Date.now();
4856
+ failed(m, h) {
4857
+ c(), d("submit", { outcome: "failure", reason: m, fieldsInError: h }), o = Date.now();
4858
4858
  },
4859
4859
  abandon(m) {
4860
4860
  !i || a || (a = !0, d("abandon", { step: m, fieldsInError: l() }));
@@ -5065,8 +5065,8 @@ class um {
5065
5065
  format(t, n, r) {
5066
5066
  var i, o, a, s, d;
5067
5067
  let l;
5068
- const { rule: c, form: f, label: m, name: $ } = n, y = this.resolveLabel(t, $, m);
5069
- return c ? (l = ((a = (o = (i = this.container[t]) === null || i === void 0 ? void 0 : i.fields) === null || o === void 0 ? void 0 : o[$]) === null || a === void 0 ? void 0 : a[c.name]) || ((d = (s = this.container[t]) === null || s === void 0 ? void 0 : s.messages) === null || d === void 0 ? void 0 : d[c.name]), l || (l = this.getLocaleDefault(t, $) || ""), xd(l) ? l(n) : Id(l, Object.assign(Object.assign({}, f), { field: y, params: c.params }), r ?? this.interpolateOptions)) : (l = this.getLocaleDefault(t, $) || "", xd(l) ? l(n) : Id(l, Object.assign(Object.assign({}, f), { field: y }), r ?? this.interpolateOptions));
5068
+ const { rule: c, form: f, label: m, name: h } = n, y = this.resolveLabel(t, h, m);
5069
+ return c ? (l = ((a = (o = (i = this.container[t]) === null || i === void 0 ? void 0 : i.fields) === null || o === void 0 ? void 0 : o[h]) === null || a === void 0 ? void 0 : a[c.name]) || ((d = (s = this.container[t]) === null || s === void 0 ? void 0 : s.messages) === null || d === void 0 ? void 0 : d[c.name]), l || (l = this.getLocaleDefault(t, h) || ""), xd(l) ? l(n) : Id(l, Object.assign(Object.assign({}, f), { field: y, params: c.params }), r ?? this.interpolateOptions)) : (l = this.getLocaleDefault(t, h) || "", xd(l) ? l(n) : Id(l, Object.assign(Object.assign({}, f), { field: y }), r ?? this.interpolateOptions));
5070
5070
  }
5071
5071
  merge(t) {
5072
5072
  yc(this.container, t);
@@ -5926,8 +5926,8 @@ var x_ = ";ext=", yr = function(t) {
5926
5926
  return "([".concat(Vt, "]{1,").concat(t, "})");
5927
5927
  };
5928
5928
  function Lc(e) {
5929
- var t = "20", n = "15", r = "9", i = "6", o = "[  \\t,]*", a = "[:\\..]?[  \\t,-]*", s = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", c = "[- ]+", f = "[  \\t]*", m = "(?:,{2}|;)", $ = x_ + yr(t), y = o + d + a + yr(t) + s, T = o + l + a + yr(r) + s, v = c + yr(i) + "#", p = f + m + a + yr(n) + s, _ = f + "(?:,)+" + a + yr(r) + s;
5930
- return $ + "|" + y + "|" + T + "|" + v + "|" + p + "|" + _;
5929
+ var t = "20", n = "15", r = "9", i = "6", o = "[  \\t,]*", a = "[:\\..]?[  \\t,-]*", s = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", c = "[- ]+", f = "[  \\t]*", m = "(?:,{2}|;)", h = x_ + yr(t), y = o + d + a + yr(t) + s, T = o + l + a + yr(r) + s, v = c + yr(i) + "#", p = f + m + a + yr(n) + s, _ = f + "(?:,)+" + a + yr(r) + s;
5930
+ return h + "|" + y + "|" + T + "|" + v + "|" + p + "|" + _;
5931
5931
  }
5932
5932
  var P_ = "[" + Vt + "]{" + ls + "}", I_ = "[" + $o + "]{0,1}(?:[" + un + "]*[" + Vt + "]){3,}[" + un + Vt + "]*", L_ = new RegExp("^[" + $o + "]{0,1}(?:[" + un + "]*[" + Vt + "]){1,2}$", "i"), k_ = I_ + // Phone number extensions
5933
5933
  "(?:" + Lc() + ")?", R_ = new RegExp(
@@ -6515,8 +6515,8 @@ function w9(e, t, n) {
6515
6515
  return {};
6516
6516
  }
6517
6517
  if (t.v2) {
6518
- var $ = new Rc(c, l, n.metadata);
6519
- return d && ($.country = d), m && ($.carrierCode = m), o && ($.ext = o), $.__countryCallingCodeSource = f, $;
6518
+ var h = new Rc(c, l, n.metadata);
6519
+ return d && (h.country = d), m && (h.carrierCode = m), o && (h.ext = o), h.__countryCallingCodeSource = f, h;
6520
6520
  }
6521
6521
  var y = (t.extended ? n.hasSelectedNumberingPlan() : d) ? On(l, n.nationalNumberPattern()) : !1;
6522
6522
  return t.extended ? {
@@ -7314,7 +7314,7 @@ function Ca(e, t, n) {
7314
7314
  // matchedChars: ...
7315
7315
  } : void 0;
7316
7316
  case "[]":
7317
- for (var $ = il(t.args), y; !(y = $()).done; ) {
7317
+ for (var h = il(t.args), y; !(y = h()).done; ) {
7318
7318
  var T = y.value;
7319
7319
  if (e[0] === T)
7320
7320
  return e.length === 1 ? {
@@ -7550,18 +7550,18 @@ var xa = "9", k3 = 15, R3 = Ki(xa, k3), D3 = /[- ]/, M3 = function() {
7550
7550
  if (!(i.length > l.length)) {
7551
7551
  var c = new RegExp("^" + d + "$"), f = i.replace(/\d/g, xa);
7552
7552
  c.test(f) && (l = f);
7553
- var m = this.getFormatFormat(n, o), $;
7553
+ var m = this.getFormatFormat(n, o), h;
7554
7554
  if (this.shouldTryNationalPrefixFormattingRule(n, {
7555
7555
  international: o,
7556
7556
  nationalPrefix: a
7557
7557
  })) {
7558
7558
  var y = m.replace(Pc, n.nationalPrefixFormattingRule());
7559
- if (oo(n.nationalPrefixFormattingRule()) === (a || "") + oo("$1") && (m = y, $ = !0, a))
7559
+ if (oo(n.nationalPrefixFormattingRule()) === (a || "") + oo("$1") && (m = y, h = !0, a))
7560
7560
  for (var T = a.length; T > 0; )
7561
7561
  m = m.replace(/\d/, dn), T--;
7562
7562
  }
7563
7563
  var v = l.replace(new RegExp(d), m).replace(new RegExp(xa, "g"), dn);
7564
- return $ || (s ? v = Ki(dn, s.length) + " " + v : a && (v = Ki(dn, a.length) + this.getSeparatorAfterNationalPrefix(n) + v)), o && (v = xc(v)), v;
7564
+ return h || (s ? v = Ki(dn, s.length) + " " + v : a && (v = Ki(dn, a.length) + this.getSeparatorAfterNationalPrefix(n) + v)), o && (v = xc(v)), v;
7565
7565
  }
7566
7566
  }
7567
7567
  }, {
@@ -8457,7 +8457,7 @@ const W4 = /<\/?[\w\s="/.':;#-\/]+>/, G4 = (e) => W4.test(e), mn = " ", Y4 = "\r
8457
8457
  function Z4(e) {
8458
8458
  const t = e;
8459
8459
  let n = 0, r = 1, i = 1, o = 0;
8460
- const a = (w) => t[w] === Y4 && t[w + 1] === Pt, s = (w) => t[w] === Pt, d = (w) => t[w] === X4, l = (w) => t[w] === K4, c = (w) => a(w) || s(w) || d(w) || l(w), f = () => n, m = () => r, $ = () => i, y = () => o, T = (w) => a(w) || d(w) || l(w) ? Pt : t[w], v = () => T(n), p = () => T(n + o);
8460
+ const a = (w) => t[w] === Y4 && t[w + 1] === Pt, s = (w) => t[w] === Pt, d = (w) => t[w] === X4, l = (w) => t[w] === K4, c = (w) => a(w) || s(w) || d(w) || l(w), f = () => n, m = () => r, h = () => i, y = () => o, T = (w) => a(w) || d(w) || l(w) ? Pt : t[w], v = () => T(n), p = () => T(n + o);
8461
8461
  function _() {
8462
8462
  return o = 0, c(n) && (r++, i = 0), a(n) && n++, n++, i++, t[n];
8463
8463
  }
@@ -8479,7 +8479,7 @@ function Z4(e) {
8479
8479
  return {
8480
8480
  index: f,
8481
8481
  line: m,
8482
- column: $,
8482
+ column: h,
8483
8483
  peekOffset: y,
8484
8484
  charAt: T,
8485
8485
  currentChar: v,
@@ -8521,7 +8521,7 @@ function e8(e, t = {}) {
8521
8521
  const L = { type: N };
8522
8522
  return n && (L.loc = Pa(g.startLoc, g.endLoc)), j != null && (L.value = j), L;
8523
8523
  }
8524
- const $ = (g) => m(
8524
+ const h = (g) => m(
8525
8525
  g,
8526
8526
  13
8527
8527
  /* TokenTypes.EOF */
@@ -8801,7 +8801,7 @@ function e8(e, t = {}) {
8801
8801
  /* TokenChars.BraceRight */
8802
8802
  ), N.braceNest--, N.braceNest > 0 && v(g), N.inLinked && N.braceNest === 0 && (N.inLinked = !1), j;
8803
8803
  case "@":
8804
- return N.braceNest > 0 && f(Oe.UNTERMINATED_CLOSING_BRACE, o(), 0), j = lt(g, N) || $(N), N.braceNest = 0, j;
8804
+ return N.braceNest > 0 && f(Oe.UNTERMINATED_CLOSING_BRACE, o(), 0), j = lt(g, N) || h(N), N.braceNest = 0, j;
8805
8805
  default: {
8806
8806
  let B = !0, te = !0, _e = !0;
8807
8807
  if (ie(g))
@@ -8857,12 +8857,12 @@ function e8(e, t = {}) {
8857
8857
  /* TokenTypes.EOF */
8858
8858
  };
8859
8859
  if (N.braceNest > 0)
8860
- return Qe(g, N) || $(N);
8860
+ return Qe(g, N) || h(N);
8861
8861
  if (N.inLinked)
8862
- return lt(g, N) || $(N);
8862
+ return lt(g, N) || h(N);
8863
8863
  switch (g.currentChar()) {
8864
8864
  case "{":
8865
- return Qe(g, N) || $(N);
8865
+ return Qe(g, N) || h(N);
8866
8866
  case "}":
8867
8867
  return f(Oe.UNBALANCED_CLOSING_BRACE, o(), 0), g.next(), m(
8868
8868
  N,
@@ -8871,7 +8871,7 @@ function e8(e, t = {}) {
8871
8871
  /* TokenChars.BraceRight */
8872
8872
  );
8873
8873
  case "@":
8874
- return lt(g, N) || $(N);
8874
+ return lt(g, N) || h(N);
8875
8875
  default: {
8876
8876
  if (ie(g))
8877
8877
  return j = m(N, 1, Be(g)), N.braceNest = 0, N.inLinked = !1, j;
@@ -8995,7 +8995,7 @@ function a8(e = {}) {
8995
8995
  node: E
8996
8996
  };
8997
8997
  }
8998
- function $(p) {
8998
+ function h(p) {
8999
8999
  const _ = p.context(), E = _.currentType === 1 ? p.currentOffset() : _.offset, b = _.currentType === 1 ? _.endLoc : _.startLoc, M = i(2, E, b);
9000
9000
  M.items = [];
9001
9001
  let D = null;
@@ -9030,13 +9030,13 @@ function a8(e = {}) {
9030
9030
  const w = i(1, _, E);
9031
9031
  w.cases = [], w.cases.push(b);
9032
9032
  do {
9033
- const ee = $(p);
9033
+ const ee = h(p);
9034
9034
  D || (D = ee.items.length === 0), w.cases.push(ee);
9035
9035
  } while (M.currentType !== 13);
9036
9036
  return D && r(p, Oe.MUST_HAVE_MESSAGES_IN_PLURAL, E, 0), o(w, p.currentOffset(), p.currentPosition()), w;
9037
9037
  }
9038
9038
  function T(p) {
9039
- const _ = p.context(), { offset: E, startLoc: b } = _, M = $(p);
9039
+ const _ = p.context(), { offset: E, startLoc: b } = _, M = h(p);
9040
9040
  return _.currentType === 13 ? M : y(p, E, b, M);
9041
9041
  }
9042
9042
  function v(p) {
@@ -9866,7 +9866,7 @@ function G8(e) {
9866
9866
  ]();
9867
9867
  }
9868
9868
  };
9869
- function $() {
9869
+ function h() {
9870
9870
  const y = e[n + 1];
9871
9871
  if (r === 5 && y === "'" || r === 6 && y === '"')
9872
9872
  return n++, s = "\\" + y, m[
@@ -9875,7 +9875,7 @@ function G8(e) {
9875
9875
  ](), !0;
9876
9876
  }
9877
9877
  for (; r !== null; )
9878
- if (n++, o = e[n], !(o === "\\" && $())) {
9878
+ if (n++, o = e[n], !(o === "\\" && h())) {
9879
9879
  if (d = H8(o), f = Wn[r], l = f[d] || f.l || 8, l === 8 || (r = l[0], l[1] !== void 0 && (c = m[l[1]], c && (s = o, c() === !1))))
9880
9880
  return;
9881
9881
  if (r === 7)
@@ -9959,7 +9959,7 @@ const Sl = (e) => {
9959
9959
  }, ih = () => r0;
9960
9960
  let Al = 0;
9961
9961
  function oh(e = {}) {
9962
- const t = tt(e.onWarn) ? e.onWarn : Xt, n = me(e.version) ? e.version : Z8, r = me(e.locale) || tt(e.locale) ? e.locale : gi, i = tt(r) ? gi : r, o = ot(e.fallbackLocale) || nt(e.fallbackLocale) || me(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, a = nt(e.messages) ? e.messages : Zo(i), s = nt(e.datetimeFormats) ? e.datetimeFormats : Zo(i), d = nt(e.numberFormats) ? e.numberFormats : Zo(i), l = ft(Ye(), e.modifiers, J8()), c = e.pluralRules || Ye(), f = tt(e.missing) ? e.missing : null, m = Ge(e.missingWarn) || or(e.missingWarn) ? e.missingWarn : !0, $ = Ge(e.fallbackWarn) || or(e.fallbackWarn) ? e.fallbackWarn : !0, y = !!e.fallbackFormat, T = !!e.unresolving, v = tt(e.postTranslation) ? e.postTranslation : null, p = nt(e.processor) ? e.processor : null, _ = Ge(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter, b = tt(e.messageCompiler) ? e.messageCompiler : Qc;
9962
+ const t = tt(e.onWarn) ? e.onWarn : Xt, n = me(e.version) ? e.version : Z8, r = me(e.locale) || tt(e.locale) ? e.locale : gi, i = tt(r) ? gi : r, o = ot(e.fallbackLocale) || nt(e.fallbackLocale) || me(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, a = nt(e.messages) ? e.messages : Zo(i), s = nt(e.datetimeFormats) ? e.datetimeFormats : Zo(i), d = nt(e.numberFormats) ? e.numberFormats : Zo(i), l = ft(Ye(), e.modifiers, J8()), c = e.pluralRules || Ye(), f = tt(e.missing) ? e.missing : null, m = Ge(e.missingWarn) || or(e.missingWarn) ? e.missingWarn : !0, h = Ge(e.fallbackWarn) || or(e.fallbackWarn) ? e.fallbackWarn : !0, y = !!e.fallbackFormat, T = !!e.unresolving, v = tt(e.postTranslation) ? e.postTranslation : null, p = nt(e.processor) ? e.processor : null, _ = Ge(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter, b = tt(e.messageCompiler) ? e.messageCompiler : Qc;
9963
9963
  process.env.NODE_ENV !== "production" && tt(e.messageCompiler) && vo(qn(bt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
9964
9964
  const M = tt(e.messageResolver) ? e.messageResolver : e0 || Y8, D = tt(e.localeFallbacker) ? e.localeFallbacker : t0 || F8, w = Re(e.fallbackContext) ? e.fallbackContext : void 0, ee = e, Q = Re(ee.__datetimeFormatters) ? ee.__datetimeFormatters : /* @__PURE__ */ new Map(), ie = Re(ee.__numberFormatters) ? ee.__numberFormatters : /* @__PURE__ */ new Map(), U = Re(ee.__meta) ? ee.__meta : {};
9965
9965
  Al++;
@@ -9973,7 +9973,7 @@ function oh(e = {}) {
9973
9973
  pluralRules: c,
9974
9974
  missing: f,
9975
9975
  missingWarn: m,
9976
- fallbackWarn: $,
9976
+ fallbackWarn: h,
9977
9977
  fallbackFormat: y,
9978
9978
  unresolving: T,
9979
9979
  postTranslation: v,
@@ -10045,24 +10045,24 @@ function s0(e, t, n, r, i, o, a) {
10045
10045
  );
10046
10046
  let f = n;
10047
10047
  for (let m = 0; m < c.length; m++) {
10048
- const $ = c[m];
10049
- if (process.env.NODE_ENV !== "production" && n !== $ && bs(o, t) && l(qn(a === "datetime format" ? bt.FALLBACK_TO_DATE_FORMAT : bt.FALLBACK_TO_NUMBER_FORMAT, {
10048
+ const h = c[m];
10049
+ if (process.env.NODE_ENV !== "production" && n !== h && bs(o, t) && l(qn(a === "datetime format" ? bt.FALLBACK_TO_DATE_FORMAT : bt.FALLBACK_TO_NUMBER_FORMAT, {
10050
10050
  key: t,
10051
- target: $
10052
- })), process.env.NODE_ENV !== "production" && n !== $) {
10051
+ target: h
10052
+ })), process.env.NODE_ENV !== "production" && n !== h) {
10053
10053
  const T = e.__v_emitter;
10054
10054
  T && T.emit("fallback", {
10055
10055
  type: a,
10056
10056
  key: t,
10057
10057
  from: f,
10058
- to: $,
10058
+ to: h,
10059
10059
  groupId: Vn(a, t)
10060
10060
  });
10061
10061
  }
10062
- const y = yt(yt(r, $) || {}, t);
10063
- if (nt(y) && me($))
10064
- return $;
10065
- o0(e, t, $, i, a), f = $;
10062
+ const y = yt(yt(r, h) || {}, t);
10063
+ if (nt(y) && me(h))
10064
+ return h;
10065
+ o0(e, t, h, i, a), f = h;
10066
10066
  }
10067
10067
  return null;
10068
10068
  }
@@ -10096,12 +10096,12 @@ function Cl(e, ...t) {
10096
10096
  return process.env.NODE_ENV !== "production" && i(qn(bt.INVALID_DATE_ARGUMENT, {
10097
10097
  value: String(t[0])
10098
10098
  })), Lr;
10099
- const [a, s, d, l] = La(...t), c = Ge(d.missingWarn) ? d.missingWarn : e.missingWarn, f = Ge(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, m = !!d.part, $ = vs(e, d);
10099
+ const [a, s, d, l] = La(...t), c = Ge(d.missingWarn) ? d.missingWarn : e.missingWarn, f = Ge(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, m = !!d.part, h = vs(e, d);
10100
10100
  if (!me(a) || a === "") {
10101
- const _ = new Intl.DateTimeFormat($.replace(/!/g, ""), l);
10101
+ const _ = new Intl.DateTimeFormat(h.replace(/!/g, ""), l);
10102
10102
  return m ? _.formatToParts(s) : _.format(s);
10103
10103
  }
10104
- const y = s0(e, a, $, n, c, f, "datetime format");
10104
+ const y = s0(e, a, h, n, c, f, "datetime format");
10105
10105
  if (!me(y))
10106
10106
  return r ? yo : a;
10107
10107
  const T = n[y][a], v = d0(y, a, l);
@@ -10166,12 +10166,12 @@ function Pl(e, ...t) {
10166
10166
  return process.env.NODE_ENV !== "production" && i(qn(bt.INVALID_NUMBER_ARGUMENT, {
10167
10167
  value: String(t[0])
10168
10168
  })), Lr;
10169
- const [a, s, d, l] = ka(...t), c = Ge(d.missingWarn) ? d.missingWarn : e.missingWarn, f = Ge(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, m = !!d.part, $ = vs(e, d);
10169
+ const [a, s, d, l] = ka(...t), c = Ge(d.missingWarn) ? d.missingWarn : e.missingWarn, f = Ge(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, m = !!d.part, h = vs(e, d);
10170
10170
  if (!me(a) || a === "") {
10171
- const _ = new Intl.NumberFormat($.replace(/!/g, ""), l);
10171
+ const _ = new Intl.NumberFormat(h.replace(/!/g, ""), l);
10172
10172
  return m ? _.formatToParts(s) : _.format(s);
10173
10173
  }
10174
- const y = s0(e, a, $, n, c, f, "number format");
10174
+ const y = s0(e, a, h, n, c, f, "number format");
10175
10175
  if (!me(y))
10176
10176
  return r ? yo : a;
10177
10177
  const T = n[y][a], v = d0(y, a, l);
@@ -10227,7 +10227,7 @@ function ph(e = {}) {
10227
10227
  const b = tt(e.messages) ? e.messages(_, !!E) : Re(e.messages) ? e.messages[_] : !1;
10228
10228
  return b || (e.parent ? e.parent.message(_) : dh);
10229
10229
  }
10230
- const m = (_) => e.modifiers ? yt(e.modifiers, _) : sh, $ = tt(e.processor?.normalize) ? e.processor.normalize : uh, y = tt(e.processor?.interpolate) ? e.processor.interpolate : ch, T = me(e.processor?.type) ? e.processor.type : lh, p = {
10230
+ const m = (_) => e.modifiers ? yt(e.modifiers, _) : sh, h = tt(e.processor?.normalize) ? e.processor.normalize : uh, y = tt(e.processor?.interpolate) ? e.processor.interpolate : ch, T = me(e.processor?.type) ? e.processor.type : lh, p = {
10231
10231
  list: s,
10232
10232
  named: c,
10233
10233
  plural: o,
@@ -10247,7 +10247,7 @@ function ph(e = {}) {
10247
10247
  message: f,
10248
10248
  type: T,
10249
10249
  interpolate: y,
10250
- normalize: $,
10250
+ normalize: h,
10251
10251
  // custom message compilers read the values, so give them the same `count`
10252
10252
  // and `n` as `named()`
10253
10253
  values: ft(Ye(), a, d, l ? { count: c("count"), n: c("n") } : {})
@@ -10256,10 +10256,10 @@ function ph(e = {}) {
10256
10256
  }
10257
10257
  const Ll = () => "", An = (e) => tt(e), so = (e) => me(e) || zn(e) || An(e);
10258
10258
  function kl(e, ...t) {
10259
- const { fallbackFormat: n, postTranslation: r, unresolving: i, messageCompiler: o, fallbackLocale: a, messages: s } = e, [d, l] = Ra(...t), c = Ge(l.missingWarn) ? l.missingWarn : e.missingWarn, f = Ge(l.fallbackWarn) ? l.fallbackWarn : e.fallbackWarn, m = Ge(l.escapeParameter) ? l.escapeParameter : e.escapeParameter, $ = !!l.resolvedMessage, y = me(l.default) || Ge(l.default) ? Ge(l.default) ? o ? d : () => d : l.default : n ? o ? d : () => d : null, T = n || y != null && (me(y) || tt(y)), v = vs(e, l);
10259
+ const { fallbackFormat: n, postTranslation: r, unresolving: i, messageCompiler: o, fallbackLocale: a, messages: s } = e, [d, l] = Ra(...t), c = Ge(l.missingWarn) ? l.missingWarn : e.missingWarn, f = Ge(l.fallbackWarn) ? l.fallbackWarn : e.fallbackWarn, m = Ge(l.escapeParameter) ? l.escapeParameter : e.escapeParameter, h = !!l.resolvedMessage, y = me(l.default) || Ge(l.default) ? Ge(l.default) ? o ? d : () => d : l.default : n ? o ? d : () => d : null, T = n || y != null && (me(y) || tt(y)), v = vs(e, l);
10260
10260
  m && mh(l);
10261
- let [p, _, E] = $ ? [d, v, yt(s, v) || Ye()] : m0(e, d, v, a, f, c), b = p, M = d;
10262
- if (!$ && !so(b) && T && (b = y, M = b), !$ && (!so(b) || !me(_)))
10261
+ let [p, _, E] = h ? [d, v, yt(s, v) || Ye()] : m0(e, d, v, a, f, c), b = p, M = d;
10262
+ if (!h && !so(b) && T && (b = y, M = b), !h && (!so(b) || !me(_)))
10263
10263
  return i ? yo : d;
10264
10264
  process.env.NODE_ENV !== "production" && me(b) && e.messageCompiler == null && Xt("The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function returns the message as is.");
10265
10265
  let D = !1;
@@ -10294,7 +10294,7 @@ function mh(e) {
10294
10294
  }
10295
10295
  function m0(e, t, n, r, i, o) {
10296
10296
  const { messages: a, onWarn: s, messageResolver: d, localeFallbacker: l } = e, c = l(e, r, n);
10297
- let f = Ye(), m, $ = null, y = n, T = null;
10297
+ let f = Ye(), m, h = null, y = n, T = null;
10298
10298
  const v = "translate";
10299
10299
  for (let p = 0; p < c.length; p++) {
10300
10300
  m = T = c[p], process.env.NODE_ENV !== "production" && n !== m && !a0(n, m) && bs(i, t) && s(qn(bt.FALLBACK_TO_TRANSLATE, {
@@ -10310,17 +10310,17 @@ function m0(e, t, n, r, i, o) {
10310
10310
  groupId: Vn(v, t)
10311
10311
  }), f = yt(a, m) || Ye();
10312
10312
  let E = null, b, M;
10313
- if (process.env.NODE_ENV !== "production" && cn && _ && (E = window.performance.now(), b = "intlify-message-resolve-start", M = "intlify-message-resolve-end", en && en(b)), ($ = d(f, t)) === null && ($ = yt(f, t)), process.env.NODE_ENV !== "production" && cn && _) {
10313
+ if (process.env.NODE_ENV !== "production" && cn && _ && (E = window.performance.now(), b = "intlify-message-resolve-start", M = "intlify-message-resolve-end", en && en(b)), (h = d(f, t)) === null && (h = yt(f, t)), process.env.NODE_ENV !== "production" && cn && _) {
10314
10314
  const D = window.performance.now();
10315
- _ && E && $ && _.emit("message-resolve", {
10315
+ _ && E && h && _.emit("message-resolve", {
10316
10316
  type: "message-resolve",
10317
10317
  key: t,
10318
- message: $,
10318
+ message: h,
10319
10319
  time: D - E,
10320
10320
  groupId: Vn(v, t)
10321
10321
  }), b && M && en && ir && (en(M), ir("intlify message resolve", b, M));
10322
10322
  }
10323
- if (so($))
10323
+ if (so(h))
10324
10324
  break;
10325
10325
  if (!ah(m, c)) {
10326
10326
  const D = o0(
@@ -10331,32 +10331,32 @@ function m0(e, t, n, r, i, o) {
10331
10331
  o,
10332
10332
  v
10333
10333
  );
10334
- D !== t && ($ = D);
10334
+ D !== t && (h = D);
10335
10335
  }
10336
10336
  y = T;
10337
10337
  }
10338
- return [$, m, f];
10338
+ return [h, m, f];
10339
10339
  }
10340
10340
  function _0(e, t, n, r, i, o) {
10341
10341
  const { messageCompiler: a, warnHtmlMessage: s } = e;
10342
10342
  if (An(r)) {
10343
- const $ = r;
10344
- return $.locale = $.locale || n, $.key = $.key || t, $;
10343
+ const h = r;
10344
+ return h.locale = h.locale || n, h.key = h.key || t, h;
10345
10345
  }
10346
10346
  if (a == null) {
10347
- const $ = (() => r);
10348
- return $.locale = n, $.key = t, $;
10347
+ const h = (() => r);
10348
+ return h.locale = n, h.key = t, h;
10349
10349
  }
10350
10350
  const d = process.env.NODE_ENV !== "production" ? e.__v_emitter : void 0;
10351
10351
  let l = null, c, f;
10352
10352
  process.env.NODE_ENV !== "production" && cn && d && (l = window.performance.now(), c = "intlify-message-compilation-start", f = "intlify-message-compilation-end", en && en(c));
10353
10353
  const m = a(r, hh(e, n, i, r, s, o));
10354
10354
  if (process.env.NODE_ENV !== "production" && cn && d) {
10355
- const $ = window.performance.now();
10355
+ const h = window.performance.now();
10356
10356
  d && l && d.emit("message-compilation", {
10357
10357
  type: "message-compilation",
10358
10358
  message: r,
10359
- time: $ - l,
10359
+ time: h - l,
10360
10360
  groupId: Vn("translate", t)
10361
10361
  }), c && f && en && ir && (en(f), ir("intlify message compilation", c, f));
10362
10362
  }
@@ -10420,23 +10420,23 @@ function gh(e, t, n, r) {
10420
10420
  locale: t,
10421
10421
  modifiers: i,
10422
10422
  pluralRules: o,
10423
- messages: ($, y) => {
10424
- let T = a(n, $);
10423
+ messages: (h, y) => {
10424
+ let T = a(n, h);
10425
10425
  if (T == null && (c || y)) {
10426
10426
  const [v, , p] = m0(
10427
10427
  c || e,
10428
10428
  // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
10429
- $,
10429
+ h,
10430
10430
  t,
10431
10431
  s,
10432
10432
  d,
10433
10433
  l
10434
10434
  );
10435
- T = v ?? a(p, $);
10435
+ T = v ?? a(p, h);
10436
10436
  }
10437
10437
  if (me(T) || zn(T)) {
10438
10438
  let v = !1;
10439
- const _ = _0(e, $, t, T, $, () => {
10439
+ const _ = _0(e, h, t, T, h, () => {
10440
10440
  v = !0;
10441
10441
  });
10442
10442
  return v ? Ll : _;
@@ -10725,7 +10725,7 @@ function lo(e = {}) {
10725
10725
  // prettier-ignore
10726
10726
  t && a ? t.fallbackLocale.value : me(e.fallbackLocale) || ot(e.fallbackLocale) || nt(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s.value
10727
10727
  ), l = o(ys(s.value, e)), c = o(nt(e.datetimeFormats) ? e.datetimeFormats : { [s.value]: {} }), f = o(nt(e.numberFormats) ? e.numberFormats : { [s.value]: {} });
10728
- let m = t ? t.missingWarn : Ge(e.missingWarn) || or(e.missingWarn) ? e.missingWarn : !0, $ = t ? t.fallbackWarn : Ge(e.fallbackWarn) || or(e.fallbackWarn) ? e.fallbackWarn : !0, y = t ? t.fallbackRoot : Ge(e.fallbackRoot) ? e.fallbackRoot : !0, T = !!e.fallbackFormat, v = tt(e.missing) ? e.missing : null, p = tt(e.missing) ? Ul(e.missing) : null, _ = tt(e.postTranslation) ? e.postTranslation : null, E = t ? t.warnHtmlMessage : Ge(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter;
10728
+ let m = t ? t.missingWarn : Ge(e.missingWarn) || or(e.missingWarn) ? e.missingWarn : !0, h = t ? t.fallbackWarn : Ge(e.fallbackWarn) || or(e.fallbackWarn) ? e.fallbackWarn : !0, y = t ? t.fallbackRoot : Ge(e.fallbackRoot) ? e.fallbackRoot : !0, T = !!e.fallbackFormat, v = tt(e.missing) ? e.missing : null, p = tt(e.missing) ? Ul(e.missing) : null, _ = tt(e.postTranslation) ? e.postTranslation : null, E = t ? t.warnHtmlMessage : Ge(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter;
10729
10729
  const M = t ? t.modifiers : nt(e.modifiers) ? e.modifiers : {};
10730
10730
  let D = e.pluralRules || t && t.pluralRules, w;
10731
10731
  w = (() => {
@@ -10739,7 +10739,7 @@ function lo(e = {}) {
10739
10739
  pluralRules: D,
10740
10740
  missing: p === null ? void 0 : p,
10741
10741
  missingWarn: m,
10742
- fallbackWarn: $,
10742
+ fallbackWarn: h,
10743
10743
  fallbackFormat: T,
10744
10744
  unresolving: !0,
10745
10745
  postTranslation: _ === null ? void 0 : _,
@@ -10811,7 +10811,7 @@ function lo(e = {}) {
10811
10811
  if (Le !== "translate exists" && // for not `te` (e.g `t`)
10812
10812
  ct(se) && se === yo || Le === "translate exists" && !se) {
10813
10813
  const [ge, we] = Y();
10814
- if (process.env.NODE_ENV !== "production" && t && me(ge) && pe(Le, we) && (y && (bs($, ge) || i0(m, ge)) && Xt(sr(Gt.FALLBACK_TO_ROOT, {
10814
+ if (process.env.NODE_ENV !== "production" && t && me(ge) && pe(Le, we) && (y && (bs(h, ge) || i0(m, ge)) && Xt(sr(Gt.FALLBACK_TO_ROOT, {
10815
10815
  key: ge,
10816
10816
  type: Le
10817
10817
  })), process.env.NODE_ENV !== "production")) {
@@ -10929,12 +10929,12 @@ function lo(e = {}) {
10929
10929
  function Me(k, Y) {
10930
10930
  Rn(k) || (f.value[k] = Y, w.numberFormats = f.value, Il(w, k, Y));
10931
10931
  }
10932
- function Ve(k, Y) {
10932
+ function ze(k, Y) {
10933
10933
  Rn(k) || (f.value[k] = ft(yt(f.value, k) || {}, Y), w.numberFormats = f.value, Il(w, k, Y));
10934
10934
  }
10935
- Fl++, ze(d, () => P(d.value), { deep: !0, flush: "sync" }), t && cn && (ze(t.locale, (k) => {
10935
+ Fl++, Ve(d, () => P(d.value), { deep: !0, flush: "sync" }), t && cn && (Ve(t.locale, (k) => {
10936
10936
  a && (s.value = k, w.locale = k, Mi(w, s.value, d.value));
10937
- }), ze(t.fallbackLocale, (k) => {
10937
+ }), Ve(t.fallbackLocale, (k) => {
10938
10938
  a && (d.value = k, w.fallbackLocale = d.value, Mi(w, s.value, d.value));
10939
10939
  }));
10940
10940
  const Ie = {
@@ -10967,10 +10967,10 @@ function lo(e = {}) {
10967
10967
  m = k, w.missingWarn = m;
10968
10968
  },
10969
10969
  get fallbackWarn() {
10970
- return $;
10970
+ return h;
10971
10971
  },
10972
10972
  set fallbackWarn(k) {
10973
- $ = k, w.fallbackWarn = $;
10973
+ h = k, w.fallbackWarn = h;
10974
10974
  },
10975
10975
  get fallbackRoot() {
10976
10976
  return y;
@@ -11006,7 +11006,7 @@ function lo(e = {}) {
11006
11006
  setMissingHandler: fe,
11007
11007
  [g0]: Be
11008
11008
  };
11009
- return Ie.datetimeFormats = F, Ie.numberFormats = V, Ie.rt = ue, Ie.te = lt, Ie.tm = Ke, Ie.d = ve, Ie.n = X, Ie.getDateTimeFormat = L, Ie.setDateTimeFormat = B, Ie.mergeDateTimeFormat = te, Ie.getNumberFormat = _e, Ie.setNumberFormat = Me, Ie.mergeNumberFormat = Ve, Ie[v0] = n, Ie[Ma] = Pe, Ie[Fa] = xe, Ie[Ua] = Ue, process.env.NODE_ENV !== "production" && (Ie[wn] = (k) => {
11009
+ return Ie.datetimeFormats = F, Ie.numberFormats = V, Ie.rt = ue, Ie.te = lt, Ie.tm = Ke, Ie.d = ve, Ie.n = X, Ie.getDateTimeFormat = L, Ie.setDateTimeFormat = B, Ie.mergeDateTimeFormat = te, Ie.getNumberFormat = _e, Ie.setNumberFormat = Me, Ie.mergeNumberFormat = ze, Ie[v0] = n, Ie[Ma] = Pe, Ie[Fa] = xe, Ie[Ua] = Ue, process.env.NODE_ENV !== "production" && (Ie[wn] = (k) => {
11010
11010
  w.__v_emitter = k;
11011
11011
  }, Ie[ar] = () => {
11012
11012
  w.__v_emitter = void 0;
@@ -11280,7 +11280,7 @@ function Or(e) {
11280
11280
  return t || (t = new RegExp(`^(?![\\s\\S]*(?:${e.source}))`, e.flags.replace(/[gy]/g, "")), ea.set(e, t), ea.set(t, e)), t;
11281
11281
  }
11282
11282
  function Hh(e) {
11283
- const t = me(e.locale) ? e.locale : gi, n = me(e.fallbackLocale) || ot(e.fallbackLocale) || nt(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = tt(e.missing) ? e.missing : void 0, i = Ge(e.silentTranslationWarn) || or(e.silentTranslationWarn) ? Or(e.silentTranslationWarn) : !0, o = Ge(e.silentFallbackWarn) || or(e.silentFallbackWarn) ? Or(e.silentFallbackWarn) : !0, a = Ge(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, d = nt(e.modifiers) ? e.modifiers : {}, l = e.pluralizationRules, c = tt(e.postTranslation) ? e.postTranslation : void 0, f = me(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, m = !!e.escapeParameterHtml, $ = Ge(e.sync) ? e.sync : !0;
11283
+ const t = me(e.locale) ? e.locale : gi, n = me(e.fallbackLocale) || ot(e.fallbackLocale) || nt(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = tt(e.missing) ? e.missing : void 0, i = Ge(e.silentTranslationWarn) || or(e.silentTranslationWarn) ? Or(e.silentTranslationWarn) : !0, o = Ge(e.silentFallbackWarn) || or(e.silentFallbackWarn) ? Or(e.silentFallbackWarn) : !0, a = Ge(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, d = nt(e.modifiers) ? e.modifiers : {}, l = e.pluralizationRules, c = tt(e.postTranslation) ? e.postTranslation : void 0, f = me(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, m = !!e.escapeParameterHtml, h = Ge(e.sync) ? e.sync : !0;
11284
11284
  let y = e.messages;
11285
11285
  if (nt(e.sharedMessages)) {
11286
11286
  const M = e.sharedMessages;
@@ -11310,7 +11310,7 @@ function Hh(e) {
11310
11310
  warnHtmlMessage: f,
11311
11311
  escapeParameter: m,
11312
11312
  messageResolver: e.messageResolver,
11313
- inheritLocale: $,
11313
+ inheritLocale: h,
11314
11314
  __i18n: T,
11315
11315
  __root: v,
11316
11316
  __injectWithOption: p
@@ -11617,12 +11617,12 @@ function O0(e, t, n, r) {
11617
11617
  const a = () => {
11618
11618
  const l = { part: !0 };
11619
11619
  let c = Ye();
11620
- e.locale && (l.locale = e.locale), me(e.format) ? l.key = e.format : Re(e.format) && (me(e.format.key) && (l.key = e.format.key), c = Object.keys(e.format).reduce(($, y) => n.includes(y) ? ft(Ye(), $, { [y]: e.format[y] }) : $, Ye()));
11620
+ e.locale && (l.locale = e.locale), me(e.format) ? l.key = e.format : Re(e.format) && (me(e.format.key) && (l.key = e.format.key), c = Object.keys(e.format).reduce((h, y) => n.includes(y) ? ft(Ye(), h, { [y]: e.format[y] }) : h, Ye()));
11621
11621
  const f = r(e.value, l, c);
11622
11622
  let m = [l.key];
11623
- return ot(f) ? m = f.map(($, y) => {
11624
- const T = i[$.type], v = T ? T({ [$.type]: $.value, index: y, parts: f }) : [$.value];
11625
- return Kh(v) && (v[0].key = `${$.type}-${y}`), v;
11623
+ return ot(f) ? m = f.map((h, y) => {
11624
+ const T = i[h.type], v = T ? T({ [h.type]: h.value, index: y, parts: f }) : [h.value];
11625
+ return Kh(v) && (v[0].key = `${h.type}-${y}`), v;
11626
11626
  }) : me(f) && (m = [f]), m;
11627
11627
  }, s = ft(Ye(), o), d = me(e.tag) || Re(e.tag) ? e.tag : A0();
11628
11628
  return Re(d) ? Qn(d, s, { default: a }) : Qn(d, s, a());
@@ -11677,7 +11677,7 @@ function Jh(e) {
11677
11677
  return {
11678
11678
  created: (a, s) => {
11679
11679
  const [d, l] = t(s);
11680
- cn && (a.__i18nWatcher = ze(l.locale, () => {
11680
+ cn && (a.__i18nWatcher = Ve(l.locale, () => {
11681
11681
  s.instance && s.instance.$forceUpdate();
11682
11682
  })), a.__composer = l, a.textContent = d;
11683
11683
  },
@@ -11741,11 +11741,11 @@ function t6(e = {}) {
11741
11741
  const T = m[0];
11742
11742
  c.__composerExtend = T.__composerExtend, c.__vueI18nExtend = T.__vueI18nExtend;
11743
11743
  }
11744
- let $ = null;
11745
- !t && n && ($ = l6(f, c.global)), __VUE_I18N_FULL_INSTALL__ && Qh(f, c, ...m), __VUE_I18N_LEGACY_API__ && t && f.mixin(Wh(o, o.__composer, c));
11744
+ let h = null;
11745
+ !t && n && (h = l6(f, c.global)), __VUE_I18N_FULL_INSTALL__ && Qh(f, c, ...m), __VUE_I18N_LEGACY_API__ && t && f.mixin(Wh(o, o.__composer, c));
11746
11746
  const y = f.unmount;
11747
11747
  f.unmount = () => {
11748
- $ && $(), c.dispose(), y();
11748
+ h && h(), c.dispose(), y();
11749
11749
  }, process.env.NODE_ENV !== "production" && kh(f, c).then((T) => {
11750
11750
  if (!T)
11751
11751
  throw jt(Xe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
@@ -12993,7 +12993,7 @@ const it = t6({
12993
12993
  fallbackWarn: !1
12994
12994
  });
12995
12995
  function Cn(e) {
12996
- return ze(
12996
+ return Ve(
12997
12997
  e,
12998
12998
  (t) => {
12999
12999
  it.global.locale.value = C0(t);
@@ -13370,17 +13370,17 @@ function pt(e, t = {}) {
13370
13370
  label: e.validationLabel || e.label || void 0,
13371
13371
  syncVModel: !1
13372
13372
  });
13373
- e.save_to && ze(
13373
+ e.save_to && Ve(
13374
13374
  a,
13375
13375
  (E) => {
13376
13376
  n.form[e.save_to] = E;
13377
13377
  },
13378
13378
  { immediate: !0 }
13379
13379
  );
13380
- const $ = (E) => E == null || E === "", y = K(
13380
+ const h = (E) => E == null || E === "", y = K(
13381
13381
  () => !!s.value && (d.touched || d.dirty || n.submitAttempted.value)
13382
13382
  ), T = K(
13383
- () => d.valid && !s.value && (d.touched || d.dirty) && !$(a.value)
13383
+ () => d.valid && !s.value && (d.touched || d.dirty) && !h(a.value)
13384
13384
  ), v = K(
13385
13385
  () => y.value ? "error" : T.value ? "valid" : "idle"
13386
13386
  ), p = K(() => ({
@@ -13486,7 +13486,7 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13486
13486
  setup(e) {
13487
13487
  const n = e.field, r = n.save_to || n.name || "field", i = `${r}-info`, o = `${r}-error`, { model: a, showError: s, errorMessage: d, controlClass: l, validationName: c, handleBlur: f } = pt(n), m = K(
13488
13488
  () => [n.info ? i : null, s.value ? o : null].filter(Boolean).join(" ") || void 0
13489
- ), $ = K(() => n.inputmode);
13489
+ ), h = K(() => n.inputmode);
13490
13490
  return (y, T) => (O(), x("div", null, [
13491
13491
  Z("div", MP, [
13492
13492
  Te(Fe, {
@@ -13505,7 +13505,7 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13505
13505
  placeholder: u(n).placeholder,
13506
13506
  pattern: u(n).pattern,
13507
13507
  maxlength: u(n).maxlength,
13508
- inputmode: $.value,
13508
+ inputmode: h.value,
13509
13509
  "aria-invalid": u(s) || void 0,
13510
13510
  "aria-describedby": m.value,
13511
13511
  onBlur: T[1] || (T[1] = //@ts-ignore
@@ -13605,8 +13605,8 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13605
13605
  u(n).required ? (O(), x("span", KP, "*")) : re("", !0)
13606
13606
  ]),
13607
13607
  Z("div", XP, [
13608
- (O(!0), x(rt, null, Ot(l.value, (m, $) => (O(), x("label", {
13609
- key: $,
13608
+ (O(!0), x(rt, null, Ot(l.value, (m, h) => (O(), x("label", {
13609
+ key: h,
13610
13610
  class: He(["fb-choice", { "is-checked": u(o) === m.value }])
13611
13611
  }, [
13612
13612
  Je(Z("input", {
@@ -13658,7 +13658,7 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13658
13658
  { value: "madame", name: c.value },
13659
13659
  { value: "monsieur", name: f.value }
13660
13660
  ]);
13661
- return ($, y) => l.value ? (O(), x("div", dI, [
13661
+ return (h, y) => l.value ? (O(), x("div", dI, [
13662
13662
  Te(Fe, {
13663
13663
  "for-id": u(r),
13664
13664
  label: u(n).label,
@@ -13739,7 +13739,7 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13739
13739
  other: !!v.other
13740
13740
  }
13741
13741
  )
13742
- ), m = $e(""), $ = $e("");
13742
+ ), m = $e(""), h = $e("");
13743
13743
  $n(() => {
13744
13744
  const v = typeof o.value == "string" ? o.value : "", p = v.split(":")[0];
13745
13745
  if (p && f.value.length && !f.value.some((_) => _.value === p)) {
@@ -13748,14 +13748,19 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13748
13748
  }
13749
13749
  if (v.includes(":")) {
13750
13750
  const [_, ...E] = v.split(":");
13751
- m.value = _, $.value = E.join(":");
13751
+ m.value = _, h.value = E.join(":");
13752
13752
  } else n.defaultOptionText || (m.value = v);
13753
13753
  });
13754
13754
  const y = K(
13755
13755
  () => f.value.find((v) => v.value === m.value)
13756
13756
  ), T = K(() => !!y.value?.other);
13757
- return ze([m, $], () => {
13758
- o.value = T.value ? `${m.value}:${$.value}` : m.value;
13757
+ return Ve([m, h], () => {
13758
+ o.value = T.value ? `${m.value}:${h.value}` : m.value;
13759
+ }), Ve(() => n.save_to ? l.form[n.save_to] : o.value, (v) => {
13760
+ const p = typeof v == "string" ? v : "", _ = T.value ? `${m.value}:${h.value}` : m.value;
13761
+ if (p === _) return;
13762
+ const [E, ...b] = p.split(":");
13763
+ m.value = E, h.value = b.join(":");
13759
13764
  }), (v, p) => (O(), x("div", pI, [
13760
13765
  u(n).displayLabel !== !1 ? (O(), ei(Fe, {
13761
13766
  key: 0,
@@ -13788,12 +13793,12 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13788
13793
  }, null, 8, ["for-id", "label"]),
13789
13794
  Je(Z("input", {
13790
13795
  id: `${u(r)}-other`,
13791
- "onUpdate:modelValue": p[2] || (p[2] = (_) => $.value = _),
13796
+ "onUpdate:modelValue": p[2] || (p[2] = (_) => h.value = _),
13792
13797
  class: "fb-input",
13793
13798
  type: "text",
13794
13799
  placeholder: u(c)("select_Précisez")
13795
13800
  }, null, 8, gI), [
13796
- [At, $.value]
13801
+ [At, h.value]
13797
13802
  ])
13798
13803
  ])) : re("", !0),
13799
13804
  u(n).info ? (O(), x("p", {
@@ -13817,10 +13822,10 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13817
13822
  setup(e) {
13818
13823
  const n = e.field, r = n.save_to || n.name || "field", i = `${r}-error`, o = `${r}-info`, { model: a, showError: s, errorMessage: d, controlClass: l, handleBlur: c } = pt(n);
13819
13824
  function f(m) {
13820
- const $ = m.target;
13821
- $.value !== "" && Number($.value) < 0 && (a.value = 0);
13825
+ const h = m.target;
13826
+ h.value !== "" && Number(h.value) < 0 && (a.value = 0);
13822
13827
  }
13823
- return (m, $) => (O(), x("div", yI, [
13828
+ return (m, h) => (O(), x("div", yI, [
13824
13829
  Te(Fe, {
13825
13830
  "for-id": u(r),
13826
13831
  label: u(n).label,
@@ -13828,7 +13833,7 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13828
13833
  }, null, 8, ["for-id", "label", "required"]),
13829
13834
  Je(Z("input", {
13830
13835
  id: u(r),
13831
- "onUpdate:modelValue": $[0] || ($[0] = (y) => Zt(a) ? a.value = y : null),
13836
+ "onUpdate:modelValue": h[0] || (h[0] = (y) => Zt(a) ? a.value = y : null),
13832
13837
  class: He(["fb-input", u(l)]),
13833
13838
  type: "number",
13834
13839
  inputmode: "decimal",
@@ -13840,7 +13845,7 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13840
13845
  "aria-invalid": u(s) || void 0,
13841
13846
  "aria-describedby": u(n).info ? o : void 0,
13842
13847
  onInput: f,
13843
- onBlur: $[1] || ($[1] = //@ts-ignore
13848
+ onBlur: h[1] || (h[1] = //@ts-ignore
13844
13849
  (...y) => u(c) && u(c)(...y))
13845
13850
  }, null, 42, EI), [
13846
13851
  [
@@ -13874,7 +13879,7 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13874
13879
  get: () => a.value ?? "",
13875
13880
  set: (m) => a.value = m
13876
13881
  });
13877
- return (m, $) => (O(), x("div", SI, [
13882
+ return (m, h) => (O(), x("div", SI, [
13878
13883
  Te(Fe, {
13879
13884
  "for-id": u(r),
13880
13885
  label: u(n).label,
@@ -13882,7 +13887,7 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13882
13887
  }, null, 8, ["for-id", "label", "required"]),
13883
13888
  Je(Z("textarea", {
13884
13889
  id: u(r),
13885
- "onUpdate:modelValue": $[0] || ($[0] = (y) => f.value = y),
13890
+ "onUpdate:modelValue": h[0] || (h[0] = (y) => f.value = y),
13886
13891
  class: He(["fb-textarea", u(l)]),
13887
13892
  name: u(r),
13888
13893
  rows: u(n).rows || 4,
@@ -13891,7 +13896,7 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13891
13896
  maxlength: u(n).maxlength,
13892
13897
  "aria-invalid": u(s) || void 0,
13893
13898
  "aria-describedby": u(n).info ? o : void 0,
13894
- onBlur: $[1] || ($[1] = //@ts-ignore
13899
+ onBlur: h[1] || (h[1] = //@ts-ignore
13895
13900
  (...y) => u(c) && u(c)(...y))
13896
13901
  }, null, 42, AI), [
13897
13902
  [At, f.value]
@@ -13918,17 +13923,17 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13918
13923
  setup(e) {
13919
13924
  const n = e.field, r = n.save_to || n.name || "field", i = `${r}-error`, o = n.min ? Dt(String(n.min)).format("YYYY-MM-DD") : void 0, a = n.dateMaxToday ? Dt().format("YYYY-MM-DD") : n.max ? Dt(String(n.max)).format("YYYY-MM-DD") : void 0, s = {};
13920
13925
  o && (s.min = o), a && (s.max = a);
13921
- const { model: d, showError: l, errorMessage: c, controlClass: f, handleBlur: m } = pt(n, Object.keys(s).length ? { date_range: s } : {}), $ = $e("");
13922
- ze(
13926
+ const { model: d, showError: l, errorMessage: c, controlClass: f, handleBlur: m } = pt(n, Object.keys(s).length ? { date_range: s } : {}), h = $e("");
13927
+ Ve(
13923
13928
  d,
13924
13929
  (T) => {
13925
- typeof T == "string" && /^\d{2}\/\d{2}\/\d{4}$/.test(T) ? $.value = T.split("/").reverse().join("-") : typeof T == "string" && /^\d{4}-\d{2}-\d{2}/.test(T) && ($.value = T.slice(0, 10));
13930
+ typeof T == "string" && /^\d{2}\/\d{2}\/\d{4}$/.test(T) ? h.value = T.split("/").reverse().join("-") : typeof T == "string" && /^\d{4}-\d{2}-\d{2}/.test(T) && (h.value = T.slice(0, 10));
13926
13931
  },
13927
13932
  { immediate: !0 }
13928
13933
  );
13929
13934
  function y(T) {
13930
13935
  const v = T.target.value;
13931
- $.value = v, d.value = v ? v.split("-").reverse().join("/") : "";
13936
+ h.value = v, d.value = v ? v.split("-").reverse().join("/") : "";
13932
13937
  }
13933
13938
  return (T, v) => (O(), x("div", CI, [
13934
13939
  Te(Fe, {
@@ -13941,7 +13946,7 @@ const IP = ["for", "innerHTML"], Fe = /* @__PURE__ */ De({
13941
13946
  class: He(["fb-input", u(f)]),
13942
13947
  type: "date",
13943
13948
  name: u(r),
13944
- value: $.value,
13949
+ value: h.value,
13945
13950
  min: u(o),
13946
13951
  max: u(a),
13947
13952
  required: u(n).required || void 0,
@@ -14825,12 +14830,12 @@ function V0() {
14825
14830
  e.DocumentFragment;
14826
14831
  const o = e.HTMLTemplateElement, a = e.Node, s = e.Element, d = e.NodeFilter;
14827
14832
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
14828
- const l = e.DOMParser, c = e.trustedTypes, f = s.prototype, m = nn(f, "cloneNode"), $ = nn(f, "remove"), y = nn(f, "removeAttributeNode"), T = nn(f, "nextSibling"), v = nn(f, "childNodes"), p = nn(f, "parentNode"), _ = nn(f, "shadowRoot"), E = nn(f, "attributes"), b = a && a.prototype ? nn(a.prototype, "nodeType") : null, M = a && a.prototype ? nn(a.prototype, "nodeName") : null, D = a && a.prototype ? nn(a.prototype, "ownerDocument") : null, w = function(h) {
14829
- return b ? b(h) : h.nodeType;
14830
- }, ee = function(h) {
14831
- return M ? M(h) : h.nodeName;
14832
- }, Q = GI(f, "namespaceURI"), ie = function(h) {
14833
- return Q ? Q(h) : h.namespaceURI;
14833
+ const l = e.DOMParser, c = e.trustedTypes, f = s.prototype, m = nn(f, "cloneNode"), h = nn(f, "remove"), y = nn(f, "removeAttributeNode"), T = nn(f, "nextSibling"), v = nn(f, "childNodes"), p = nn(f, "parentNode"), _ = nn(f, "shadowRoot"), E = nn(f, "attributes"), b = a && a.prototype ? nn(a.prototype, "nodeType") : null, M = a && a.prototype ? nn(a.prototype, "nodeName") : null, D = a && a.prototype ? nn(a.prototype, "ownerDocument") : null, w = function($) {
14834
+ return b ? b($) : $.nodeType;
14835
+ }, ee = function($) {
14836
+ return M ? M($) : $.nodeName;
14837
+ }, Q = GI(f, "namespaceURI"), ie = function($) {
14838
+ return Q ? Q($) : $.namespaceURI;
14834
14839
  };
14835
14840
  if (typeof o == "function") {
14836
14841
  const J = n.createElement("template");
@@ -14839,17 +14844,17 @@ function V0() {
14839
14844
  let U, P = "", z, R = !1, F = 0;
14840
14845
  const V = function() {
14841
14846
  if (F > 0) throw En('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
14842
- }, q = function(h) {
14847
+ }, q = function($) {
14843
14848
  V(), F++;
14844
14849
  try {
14845
- return U.createHTML(h);
14850
+ return U.createHTML($);
14846
14851
  } finally {
14847
14852
  F--;
14848
14853
  }
14849
- }, ne = function(h) {
14854
+ }, ne = function($) {
14850
14855
  V(), F++;
14851
14856
  try {
14852
- return U.createScriptURL(h);
14857
+ return U.createScriptURL($);
14853
14858
  } finally {
14854
14859
  F--;
14855
14860
  }
@@ -14908,7 +14913,7 @@ function V0() {
14908
14913
  value: null
14909
14914
  }
14910
14915
  }));
14911
- let _e = !0, Me = !0, Ve = !1, Ie = !0, k = !1, Y = !0, Le = !1, C = !1, I = null, H = null, se = !1, ge = !1, we = !1, be = !1, et = !0, st = !1;
14916
+ let _e = !0, Me = !0, ze = !1, Ie = !0, k = !1, Y = !0, Le = !1, C = !1, I = null, H = null, se = !1, ge = !1, we = !1, be = !1, et = !0, st = !1;
14912
14917
  const $t = "user-content-";
14913
14918
  let We = !0, mt = !1, dt = null, gt = {}, Jt = null;
14914
14919
  const ur = je({}, [
@@ -14990,82 +14995,82 @@ function V0() {
14990
14995
  let Fr = null;
14991
14996
  const Y0 = ["application/xhtml+xml", "text/html"], K0 = "text/html";
14992
14997
  let ut = null, _r = null;
14993
- const X0 = n.createElement("form"), Rs = function(h) {
14994
- return h instanceof RegExp || h instanceof Function;
14998
+ const X0 = n.createElement("form"), Rs = function($) {
14999
+ return $ instanceof RegExp || $ instanceof Function;
14995
15000
  }, Ao = function() {
14996
- let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
14997
- if (_r && _r === h) return;
14998
- (!h || typeof h != "object") && (h = {}), h = Qt(h), Fr = Y0.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? K0 : h.PARSER_MEDIA_TYPE, ut = Fr === "application/xhtml+xml" ? oa : Kn, Ce = kn(h, "ALLOWED_TAGS", Ke, { transform: ut }), g = kn(h, "ALLOWED_ATTR", N, { transform: ut }), No = kn(h, "ALLOWED_NAMESPACES", W0, { transform: oa }), pr = kn(h, "ADD_URI_SAFE_ATTR", Is, {
15001
+ let $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
15002
+ if (_r && _r === $) return;
15003
+ (!$ || typeof $ != "object") && ($ = {}), $ = Qt($), Fr = Y0.indexOf($.PARSER_MEDIA_TYPE) === -1 ? K0 : $.PARSER_MEDIA_TYPE, ut = Fr === "application/xhtml+xml" ? oa : Kn, Ce = kn($, "ALLOWED_TAGS", Ke, { transform: ut }), g = kn($, "ALLOWED_ATTR", N, { transform: ut }), No = kn($, "ALLOWED_NAMESPACES", W0, { transform: oa }), pr = kn($, "ADD_URI_SAFE_ATTR", Is, {
14999
15004
  transform: ut,
15000
15005
  base: Is
15001
- }), cr = kn(h, "ADD_DATA_URI_TAGS", fr, {
15006
+ }), cr = kn($, "ADD_DATA_URI_TAGS", fr, {
15002
15007
  transform: ut,
15003
15008
  base: fr
15004
- }), Jt = kn(h, "FORBID_CONTENTS", ur, { transform: ut }), L = kn(h, "FORBID_TAGS", Qt({}), { transform: ut }), B = kn(h, "FORBID_ATTR", Qt({}), { transform: ut }), gt = Bt(h, "USE_PROFILES") ? h.USE_PROFILES && typeof h.USE_PROFILES == "object" ? Qt(h.USE_PROFILES) : h.USE_PROFILES : !1, _e = h.ALLOW_ARIA_ATTR !== !1, Me = h.ALLOW_DATA_ATTR !== !1, Ve = h.ALLOW_UNKNOWN_PROTOCOLS || !1, Ie = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, k = h.SAFE_FOR_TEMPLATES || !1, Y = h.SAFE_FOR_XML !== !1, Le = h.WHOLE_DOCUMENT || !1, ge = h.RETURN_DOM || !1, we = h.RETURN_DOM_FRAGMENT || !1, be = h.RETURN_TRUSTED_TYPE || !1, se = h.FORCE_BODY || !1, et = h.SANITIZE_DOM !== !1, st = h.SANITIZE_NAMED_PROPS || !1, We = h.KEEP_CONTENT !== !1, mt = h.IN_PLACE || !1, lt = YI(h.ALLOWED_URI_REGEXP) ? h.ALLOWED_URI_REGEXP : lu, mr = typeof h.NAMESPACE == "string" ? h.NAMESPACE : fn, To = ca(h, "MATHML_TEXT_INTEGRATION_POINTS", () => je({}, Ls)), So = ca(h, "HTML_INTEGRATION_POINTS", () => je({}, ks));
15005
- const A = ca(h, "CUSTOM_ELEMENT_HANDLING", () => Sr(null));
15006
- if (j = Sr(null), Bt(A, "tagNameCheck") && Rs(A.tagNameCheck) && (j.tagNameCheck = A.tagNameCheck), Bt(A, "attributeNameCheck") && Rs(A.attributeNameCheck) && (j.attributeNameCheck = A.attributeNameCheck), Bt(A, "allowCustomizedBuiltInElements") && typeof A.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = A.allowCustomizedBuiltInElements), wt(j), k && (Me = !1), we && (ge = !0), gt && (Ce = je({}, au), g = Sr(null), gt.html === !0 && (je(Ce, ou), je(g, su)), gt.svg === !0 && (je(Ce, aa), je(g, la), je(g, Fi)), gt.svgFilters === !0 && (je(Ce, sa), je(g, la), je(g, Fi)), gt.mathMl === !0 && (je(Ce, da), je(g, du), je(g, Fi))), te.tagCheck = null, te.attributeCheck = null, Bt(h, "ADD_TAGS") && (typeof h.ADD_TAGS == "function" ? te.tagCheck = h.ADD_TAGS : Cr(h.ADD_TAGS) && (Ce === Ke && (Ce = Qt(Ce)), je(Ce, h.ADD_TAGS, ut))), Bt(h, "ADD_ATTR") && (typeof h.ADD_ATTR == "function" ? te.attributeCheck = h.ADD_ATTR : Cr(h.ADD_ATTR) && (g === N && (g = Qt(g)), je(g, h.ADD_ATTR, ut))), Bt(h, "ADD_FORBID_CONTENTS") && Cr(h.ADD_FORBID_CONTENTS) && (Jt === ur && (Jt = Qt(Jt)), je(Jt, h.ADD_FORBID_CONTENTS, ut)), We && (Ce["#text"] = !0), Le && je(Ce, [
15009
+ }), Jt = kn($, "FORBID_CONTENTS", ur, { transform: ut }), L = kn($, "FORBID_TAGS", Qt({}), { transform: ut }), B = kn($, "FORBID_ATTR", Qt({}), { transform: ut }), gt = Bt($, "USE_PROFILES") ? $.USE_PROFILES && typeof $.USE_PROFILES == "object" ? Qt($.USE_PROFILES) : $.USE_PROFILES : !1, _e = $.ALLOW_ARIA_ATTR !== !1, Me = $.ALLOW_DATA_ATTR !== !1, ze = $.ALLOW_UNKNOWN_PROTOCOLS || !1, Ie = $.ALLOW_SELF_CLOSE_IN_ATTR !== !1, k = $.SAFE_FOR_TEMPLATES || !1, Y = $.SAFE_FOR_XML !== !1, Le = $.WHOLE_DOCUMENT || !1, ge = $.RETURN_DOM || !1, we = $.RETURN_DOM_FRAGMENT || !1, be = $.RETURN_TRUSTED_TYPE || !1, se = $.FORCE_BODY || !1, et = $.SANITIZE_DOM !== !1, st = $.SANITIZE_NAMED_PROPS || !1, We = $.KEEP_CONTENT !== !1, mt = $.IN_PLACE || !1, lt = YI($.ALLOWED_URI_REGEXP) ? $.ALLOWED_URI_REGEXP : lu, mr = typeof $.NAMESPACE == "string" ? $.NAMESPACE : fn, To = ca($, "MATHML_TEXT_INTEGRATION_POINTS", () => je({}, Ls)), So = ca($, "HTML_INTEGRATION_POINTS", () => je({}, ks));
15010
+ const A = ca($, "CUSTOM_ELEMENT_HANDLING", () => Sr(null));
15011
+ if (j = Sr(null), Bt(A, "tagNameCheck") && Rs(A.tagNameCheck) && (j.tagNameCheck = A.tagNameCheck), Bt(A, "attributeNameCheck") && Rs(A.attributeNameCheck) && (j.attributeNameCheck = A.attributeNameCheck), Bt(A, "allowCustomizedBuiltInElements") && typeof A.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = A.allowCustomizedBuiltInElements), wt(j), k && (Me = !1), we && (ge = !0), gt && (Ce = je({}, au), g = Sr(null), gt.html === !0 && (je(Ce, ou), je(g, su)), gt.svg === !0 && (je(Ce, aa), je(g, la), je(g, Fi)), gt.svgFilters === !0 && (je(Ce, sa), je(g, la), je(g, Fi)), gt.mathMl === !0 && (je(Ce, da), je(g, du), je(g, Fi))), te.tagCheck = null, te.attributeCheck = null, Bt($, "ADD_TAGS") && (typeof $.ADD_TAGS == "function" ? te.tagCheck = $.ADD_TAGS : Cr($.ADD_TAGS) && (Ce === Ke && (Ce = Qt(Ce)), je(Ce, $.ADD_TAGS, ut))), Bt($, "ADD_ATTR") && (typeof $.ADD_ATTR == "function" ? te.attributeCheck = $.ADD_ATTR : Cr($.ADD_ATTR) && (g === N && (g = Qt(g)), je(g, $.ADD_ATTR, ut))), Bt($, "ADD_FORBID_CONTENTS") && Cr($.ADD_FORBID_CONTENTS) && (Jt === ur && (Jt = Qt(Jt)), je(Jt, $.ADD_FORBID_CONTENTS, ut)), We && (Ce["#text"] = !0), Le && je(Ce, [
15007
15012
  "html",
15008
15013
  "head",
15009
15014
  "body"
15010
- ]), Ce.table && (je(Ce, ["tbody"]), delete L.tbody), h.TRUSTED_TYPES_POLICY) {
15011
- if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function") throw En('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
15012
- if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw En('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
15015
+ ]), Ce.table && (je(Ce, ["tbody"]), delete L.tbody), $.TRUSTED_TYPES_POLICY) {
15016
+ if (typeof $.TRUSTED_TYPES_POLICY.createHTML != "function") throw En('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
15017
+ if (typeof $.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw En('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
15013
15018
  const W = U;
15014
- U = h.TRUSTED_TYPES_POLICY;
15019
+ U = $.TRUSTED_TYPES_POLICY;
15015
15020
  try {
15016
15021
  P = q("");
15017
15022
  } catch (G) {
15018
15023
  throw U = W, G;
15019
15024
  }
15020
- } else h.TRUSTED_TYPES_POLICY === null ? (U = void 0, P = "") : (U === void 0 && (U = de()), U && typeof P == "string" && (P = q("")));
15021
- Nt && Nt(h), _r = h;
15025
+ } else $.TRUSTED_TYPES_POLICY === null ? (U = void 0, P = "") : (U === void 0 && (U = de()), U && typeof P == "string" && (P = q("")));
15026
+ Nt && Nt($), _r = $;
15022
15027
  }, Ds = je({}, [
15023
15028
  ...aa,
15024
15029
  ...sa,
15025
15030
  ...KI
15026
- ]), Ms = je({}, [...da, ...XI]), Z0 = function(h, A, W) {
15027
- return A.namespaceURI === fn ? h === "svg" : A.namespaceURI === Si ? h === "svg" && (W === "annotation-xml" || To[W]) : !!Ds[h];
15028
- }, J0 = function(h, A, W) {
15029
- return A.namespaceURI === fn ? h === "math" : A.namespaceURI === Ai ? h === "math" && So[W] : !!Ms[h];
15030
- }, Q0 = function(h, A, W) {
15031
- return A.namespaceURI === Ai && !So[W] || A.namespaceURI === Si && !To[W] ? !1 : !Ms[h] && (G0[h] || !Ds[h]);
15032
- }, ef = function(h) {
15033
- const A = ie(h), W = Kn(ee(h)), G = p(h);
15031
+ ]), Ms = je({}, [...da, ...XI]), Z0 = function($, A, W) {
15032
+ return A.namespaceURI === fn ? $ === "svg" : A.namespaceURI === Si ? $ === "svg" && (W === "annotation-xml" || To[W]) : !!Ds[$];
15033
+ }, J0 = function($, A, W) {
15034
+ return A.namespaceURI === fn ? $ === "math" : A.namespaceURI === Ai ? $ === "math" && So[W] : !!Ms[$];
15035
+ }, Q0 = function($, A, W) {
15036
+ return A.namespaceURI === Ai && !So[W] || A.namespaceURI === Si && !To[W] ? !1 : !Ms[$] && (G0[$] || !Ds[$]);
15037
+ }, ef = function($) {
15038
+ const A = ie($), W = Kn(ee($)), G = p($);
15034
15039
  let ye, Ae;
15035
15040
  return G && w(G) === ht.element ? (ye = { namespaceURI: ie(G) }, Ae = Kn(ee(G))) : (ye = { namespaceURI: mr }, Ae = "template"), No[A] ? A === Ai ? Z0(W, ye, Ae) : A === Si ? J0(W, ye, Ae) : A === fn ? Q0(W, ye, Ae) : !!(Fr === "application/xhtml+xml" && No[A]) : !1;
15036
- }, Pn = function(h) {
15037
- Br(t.removed, { element: h });
15041
+ }, Pn = function($) {
15042
+ Br(t.removed, { element: $ });
15038
15043
  try {
15039
- p(h).removeChild(h);
15044
+ p($).removeChild($);
15040
15045
  } catch {
15041
- if ($(h), !p(h)) throw En("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
15046
+ if (h($), !p($)) throw En("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
15042
15047
  }
15043
- }, Fs = function(h, A, W) {
15048
+ }, Fs = function($, A, W) {
15044
15049
  try {
15045
- y(h, A);
15050
+ y($, A);
15046
15051
  } catch {
15047
15052
  try {
15048
- h.removeAttribute(W);
15053
+ $.removeAttribute(W);
15049
15054
  } catch {
15050
15055
  }
15051
15056
  }
15052
- }, Oo = function(h) {
15053
- Co(h);
15054
- const A = v(h);
15057
+ }, Oo = function($) {
15058
+ Co($);
15059
+ const A = v($);
15055
15060
  A && yn(jI(A), (G) => {
15056
15061
  try {
15057
- $(G);
15062
+ h(G);
15058
15063
  } catch {
15059
15064
  }
15060
15065
  });
15061
- const W = w(h) === ht.element ? E(h) : null;
15066
+ const W = w($) === ht.element ? E($) : null;
15062
15067
  if (W) for (let G = W.length - 1; G >= 0; --G) {
15063
15068
  const ye = W[G], Ae = ye && ye.name;
15064
- typeof Ae == "string" && Fs(h, ye, Ae);
15069
+ typeof Ae == "string" && Fs($, ye, Ae);
15065
15070
  }
15066
- }, hr = function(h, A, W) {
15071
+ }, hr = function($, A, W) {
15067
15072
  if (!W) try {
15068
- W = A.getAttributeNode(h);
15073
+ W = A.getAttributeNode($);
15069
15074
  } catch {
15070
15075
  W = null;
15071
15076
  }
@@ -15074,32 +15079,32 @@ function V0() {
15074
15079
  from: A
15075
15080
  });
15076
15081
  try {
15077
- W ? y(A, W) : A.removeAttribute(h);
15082
+ W ? y(A, W) : A.removeAttribute($);
15078
15083
  } catch {
15079
15084
  try {
15080
- A.removeAttribute(h);
15085
+ A.removeAttribute($);
15081
15086
  } catch {
15082
15087
  }
15083
15088
  }
15084
- if (h === "is")
15089
+ if ($ === "is")
15085
15090
  if (ge || we) try {
15086
15091
  Pn(A);
15087
15092
  } catch {
15088
15093
  }
15089
15094
  else try {
15090
- A.setAttribute(h, "");
15095
+ A.setAttribute($, "");
15091
15096
  } catch {
15092
15097
  }
15093
- }, Us = function(h) {
15094
- const A = E(h);
15098
+ }, Us = function($) {
15099
+ const A = E($);
15095
15100
  if (A)
15096
15101
  for (let W = A.length - 1; W >= 0; --W) {
15097
15102
  const G = A[W], ye = G && G.name;
15098
- typeof ye != "string" || g[ut(ye)] || Fs(h, G, ye);
15103
+ typeof ye != "string" || g[ut(ye)] || Fs($, G, ye);
15099
15104
  }
15100
- }, wo = function(h, A) {
15105
+ }, wo = function($, A) {
15101
15106
  let W = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
15102
- const G = [h];
15107
+ const G = [$];
15103
15108
  for (; G.length > 0; ) {
15104
15109
  const ye = G.pop();
15105
15110
  if (A(ye) === !1) continue;
@@ -15110,59 +15115,59 @@ function V0() {
15110
15115
  const Ae = v(ye);
15111
15116
  if (Ae) for (let ke = Ae.length - 1; ke >= 0; --ke) G.push(Ae[ke]);
15112
15117
  }
15113
- }, Co = function(h) {
15114
- wo(h, (A) => {
15118
+ }, Co = function($) {
15119
+ wo($, (A) => {
15115
15120
  w(A) === ht.element && Us(A);
15116
15121
  });
15117
- }, xo = function(h) {
15122
+ }, xo = function($) {
15118
15123
  const A = [];
15119
- return wo(h, (W) => {
15124
+ return wo($, (W) => {
15120
15125
  A.push(W);
15121
15126
  }, !0), A;
15122
- }, tf = function(h, A) {
15127
+ }, tf = function($, A) {
15123
15128
  const W = ra();
15124
- yn(xo(h), (G) => {
15129
+ yn(xo($), (G) => {
15125
15130
  w(G) === ht.element && ia(W, G);
15126
15131
  }), yn(A, (G) => {
15127
15132
  w(G) === ht.element && !Hr(W, G) && Us(G);
15128
15133
  });
15129
- }, js = function(h, A) {
15134
+ }, js = function($, A) {
15130
15135
  let W = !1;
15131
15136
  return yn(t.removed, (G) => {
15132
- G.element && (W = W || G.element === h, Co(G.element));
15133
- }), tf(h, A), W;
15134
- }, nf = 8, rf = function(h, A) {
15137
+ G.element && (W = W || G.element === $, Co(G.element));
15138
+ }), tf($, A), W;
15139
+ }, nf = 8, rf = function($, A) {
15135
15140
  const W = dt;
15136
15141
  let G = null;
15137
15142
  const ye = () => (G || (G = ra(), yn(A, (Ae) => {
15138
15143
  ia(G, Ae);
15139
15144
  })), G);
15140
15145
  for (let Ae = 0; ; Ae++) {
15141
- const ke = xo(h), vt = [h];
15146
+ const ke = xo($), vt = [$];
15142
15147
  let pn = !1;
15143
15148
  if (yn(ke, (Rt) => {
15144
15149
  w(Rt) === ht.documentFragment ? Br(vt, Rt) : !pn && !Hr(W, Rt) && (pn = Hr(ye(), Rt));
15145
15150
  }), !pn) return;
15146
15151
  if (Ae >= nf) throw En("the tree kept changing during in-place sanitization; refusing to return it");
15147
15152
  yn(vt, (Rt, zt) => {
15148
- of(Rt, zt > 0, h, ye());
15153
+ of(Rt, zt > 0, $, ye());
15149
15154
  });
15150
15155
  }
15151
- }, of = function(h, A, W, G) {
15152
- const ye = Po(h);
15156
+ }, of = function($, A, W, G) {
15157
+ const ye = Po($);
15153
15158
  let Ae;
15154
15159
  for (; Ae = ye.nextNode(); )
15155
15160
  !Hr(G, Ae) || Hr(dt, Ae) || (A && an(X.uponSanitizeShadowNode, Ae, null), Lo(Ae, W), ko(Ae, W), In(Ae.content) && jr(Ae.content));
15156
- }, af = function(h) {
15157
- dt && ia(dt, h);
15158
- }, Vs = function(h, A) {
15159
- return Y ? h === "patchsrc" ? !0 : h === "for" && A !== "label" && A !== "output" : !1;
15160
- }, sf = function(h) {
15161
- Y && wo(h, (A) => {
15161
+ }, af = function($) {
15162
+ dt && ia(dt, $);
15163
+ }, Vs = function($, A) {
15164
+ return Y ? $ === "patchsrc" ? !0 : $ === "for" && A !== "label" && A !== "output" : !1;
15165
+ }, sf = function($) {
15166
+ Y && wo($, (A) => {
15162
15167
  const W = w(A);
15163
15168
  if (W === ht.processingInstruction || W === ht.comment && St(uu, A.data)) {
15164
15169
  try {
15165
- $(A);
15170
+ h(A);
15166
15171
  } catch {
15167
15172
  }
15168
15173
  return !1;
@@ -15176,15 +15181,15 @@ function V0() {
15176
15181
  }
15177
15182
  return !0;
15178
15183
  });
15179
- }, zs = function(h) {
15184
+ }, zs = function($) {
15180
15185
  let A = null, W = null;
15181
- if (se) h = "<remove></remove>" + h;
15186
+ if (se) $ = "<remove></remove>" + $;
15182
15187
  else {
15183
- const Ae = tu(h, /^[\r\n\t ]+/);
15188
+ const Ae = tu($, /^[\r\n\t ]+/);
15184
15189
  W = Ae && Ae[0];
15185
15190
  }
15186
- Fr === "application/xhtml+xml" && mr === fn && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
15187
- const G = U ? q(h) : h;
15191
+ Fr === "application/xhtml+xml" && mr === fn && ($ = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + $ + "</body></html>");
15192
+ const G = U ? q($) : $;
15188
15193
  if (mr === fn) try {
15189
15194
  A = new l().parseFromString(G, Fr);
15190
15195
  } catch {
@@ -15197,100 +15202,100 @@ function V0() {
15197
15202
  }
15198
15203
  }
15199
15204
  const ye = A.body || A.documentElement;
15200
- return h && W && ye.insertBefore(n.createTextNode(W), ye.childNodes[0] || null), mr === fn ? ue.call(A, Le ? "html" : "body")[0] : Le ? A.documentElement : ye;
15201
- }, Po = function(h) {
15202
- const A = D ? D(h) : h.ownerDocument;
15203
- return he.call(A || h, h, d.SHOW_ELEMENT | d.SHOW_COMMENT | d.SHOW_TEXT | d.SHOW_PROCESSING_INSTRUCTION | d.SHOW_CDATA_SECTION, null);
15204
- }, Oi = function(h) {
15205
- return h = Wr(h, oe, " "), h = Wr(h, Ne, " "), h = Wr(h, Se, " "), h;
15206
- }, Io = function(h) {
15205
+ return $ && W && ye.insertBefore(n.createTextNode(W), ye.childNodes[0] || null), mr === fn ? ue.call(A, Le ? "html" : "body")[0] : Le ? A.documentElement : ye;
15206
+ }, Po = function($) {
15207
+ const A = D ? D($) : $.ownerDocument;
15208
+ return he.call(A || $, $, d.SHOW_ELEMENT | d.SHOW_COMMENT | d.SHOW_TEXT | d.SHOW_PROCESSING_INSTRUCTION | d.SHOW_CDATA_SECTION, null);
15209
+ }, Oi = function($) {
15210
+ return $ = Wr($, oe, " "), $ = Wr($, Ne, " "), $ = Wr($, Se, " "), $;
15211
+ }, Io = function($) {
15207
15212
  var A;
15208
- qs(h);
15209
- const W = (A = h.querySelectorAll) === null || A === void 0 ? void 0 : A.call(h, "template");
15213
+ qs($);
15214
+ const W = (A = $.querySelectorAll) === null || A === void 0 ? void 0 : A.call($, "template");
15210
15215
  W && yn(W, (G) => {
15211
15216
  In(G.content) && Io(G.content);
15212
15217
  });
15213
- }, qs = function(h) {
15214
- h.normalize();
15215
- const A = D ? D(h) : h.ownerDocument, W = he.call(A || h, h, d.SHOW_TEXT | d.SHOW_COMMENT | d.SHOW_CDATA_SECTION | d.SHOW_PROCESSING_INSTRUCTION, null);
15218
+ }, qs = function($) {
15219
+ $.normalize();
15220
+ const A = D ? D($) : $.ownerDocument, W = he.call(A || $, $, d.SHOW_TEXT | d.SHOW_COMMENT | d.SHOW_CDATA_SECTION | d.SHOW_PROCESSING_INSTRUCTION, null);
15216
15221
  let G = W.nextNode();
15217
15222
  for (; G; )
15218
15223
  G.data = Oi(G.data), G = W.nextNode();
15219
- }, wi = function(h) {
15220
- const A = M ? M(h) : null;
15221
- return typeof A != "string" || ut(A) !== "form" ? !1 : typeof h.nodeName != "string" || typeof h.textContent != "string" || typeof h.removeChild != "function" || h.attributes !== E(h) || typeof h.removeAttribute != "function" || typeof h.removeAttributeNode != "function" || typeof h.getAttributeNode != "function" || typeof h.setAttribute != "function" || typeof h.namespaceURI != "string" || typeof h.insertBefore != "function" || typeof h.hasChildNodes != "function" || h.nodeType !== b(h) || h.childNodes !== v(h);
15222
- }, In = function(h) {
15223
- if (!b || typeof h != "object" || h === null) return !1;
15224
+ }, wi = function($) {
15225
+ const A = M ? M($) : null;
15226
+ return typeof A != "string" || ut(A) !== "form" ? !1 : typeof $.nodeName != "string" || typeof $.textContent != "string" || typeof $.removeChild != "function" || $.attributes !== E($) || typeof $.removeAttribute != "function" || typeof $.removeAttributeNode != "function" || typeof $.getAttributeNode != "function" || typeof $.setAttribute != "function" || typeof $.namespaceURI != "string" || typeof $.insertBefore != "function" || typeof $.hasChildNodes != "function" || $.nodeType !== b($) || $.childNodes !== v($);
15227
+ }, In = function($) {
15228
+ if (!b || typeof $ != "object" || $ === null) return !1;
15224
15229
  try {
15225
- return b(h) === ht.documentFragment;
15230
+ return b($) === ht.documentFragment;
15226
15231
  } catch {
15227
15232
  return !1;
15228
15233
  }
15229
- }, Ur = function(h) {
15230
- if (!b || typeof h != "object" || h === null) return !1;
15234
+ }, Ur = function($) {
15235
+ if (!b || typeof $ != "object" || $ === null) return !1;
15231
15236
  try {
15232
- return typeof b(h) == "number";
15237
+ return typeof b($) == "number";
15233
15238
  } catch {
15234
15239
  return !1;
15235
15240
  }
15236
15241
  };
15237
- function an(J, h, A) {
15242
+ function an(J, $, A) {
15238
15243
  J.length !== 0 && yn(J, (W) => {
15239
- W.call(t, h, A, _r);
15244
+ W.call(t, $, A, _r);
15240
15245
  });
15241
15246
  }
15242
- const df = function(h, A) {
15243
- return !!(Y && h.hasChildNodes() && !Ur(h.firstElementChild) && St(ua, h.textContent) && St(ua, h.innerHTML) || Y && sL[A] && w(h) === ht.element && ie(h) === fn && (Ur(h.firstElementChild) || typeof h.textContent == "string" && St(ua, h.textContent)) || h.nodeType === ht.processingInstruction || Y && h.nodeType === ht.comment && St(uu, h.data));
15244
- }, Ci = function(h, A) {
15245
- if (h instanceof RegExp) return St(h, A);
15246
- if (h instanceof Function) {
15247
+ const df = function($, A) {
15248
+ return !!(Y && $.hasChildNodes() && !Ur($.firstElementChild) && St(ua, $.textContent) && St(ua, $.innerHTML) || Y && sL[A] && w($) === ht.element && ie($) === fn && (Ur($.firstElementChild) || typeof $.textContent == "string" && St(ua, $.textContent)) || $.nodeType === ht.processingInstruction || Y && $.nodeType === ht.comment && St(uu, $.data));
15249
+ }, Ci = function($, A) {
15250
+ if ($ instanceof RegExp) return St($, A);
15251
+ if ($ instanceof Function) {
15247
15252
  for (var W = arguments.length, G = new Array(W > 2 ? W - 2 : 0), ye = 2; ye < W; ye++) G[ye - 2] = arguments[ye];
15248
- return !!h(A, ...G);
15253
+ return !!$(A, ...G);
15249
15254
  }
15250
15255
  return !1;
15251
- }, lf = function(h, A, W) {
15256
+ }, lf = function($, A, W) {
15252
15257
  if (!L[A] && Ws(A) && Ci(j.tagNameCheck, A)) return !1;
15253
15258
  if (We && !Jt[A] && !Jt[Kn(A)]) {
15254
- const G = p(h), ye = v(h);
15259
+ const G = p($), ye = v($);
15255
15260
  if (ye && G) {
15256
15261
  const Ae = ye.length;
15257
15262
  for (let ke = Ae - 1; ke >= 0; --ke) {
15258
- const vt = h === W ? m(ye[ke], !0) : ye[ke];
15259
- G.insertBefore(vt, T(h));
15263
+ const vt = $ === W ? m(ye[ke], !0) : ye[ke];
15264
+ G.insertBefore(vt, T($));
15260
15265
  }
15261
15266
  }
15262
15267
  }
15263
- return Pn(h), !0;
15264
- }, Bs = function(h, A, W, G) {
15265
- return h.length === 0 ? A : A === W || A === G ? Qt(A) : A;
15266
- }, $r = function(h, A) {
15267
- return h === A || p(h) !== null ? !1 : (mt && Co(h), !0);
15268
- }, Lo = function(h, A) {
15269
- if (af(h), an(X.beforeSanitizeElements, h, null), $r(h, A)) return !0;
15270
- if (wi(h))
15271
- return Pn(h), !0;
15272
- const W = ut(ee(h));
15273
- if (Ce = Bs(X.uponSanitizeElement, Ce, Ke, I), an(X.uponSanitizeElement, h, {
15268
+ return Pn($), !0;
15269
+ }, Bs = function($, A, W, G) {
15270
+ return $.length === 0 ? A : A === W || A === G ? Qt(A) : A;
15271
+ }, $r = function($, A) {
15272
+ return $ === A || p($) !== null ? !1 : (mt && Co($), !0);
15273
+ }, Lo = function($, A) {
15274
+ if (af($), an(X.beforeSanitizeElements, $, null), $r($, A)) return !0;
15275
+ if (wi($))
15276
+ return Pn($), !0;
15277
+ const W = ut(ee($));
15278
+ if (Ce = Bs(X.uponSanitizeElement, Ce, Ke, I), an(X.uponSanitizeElement, $, {
15274
15279
  tagName: W,
15275
15280
  allowedTags: Ce
15276
- }), $r(h, A)) return !0;
15277
- if (df(h, W))
15278
- return Pn(h), !0;
15281
+ }), $r($, A)) return !0;
15282
+ if (df($, W))
15283
+ return Pn($), !0;
15279
15284
  if (L[W] || !(te.tagCheck instanceof Function && te.tagCheck(W)) && !Ce[W]) {
15280
- const G = lf(h, W, A);
15281
- return G === !1 && (an(X.afterSanitizeElements, h, null), $r(h, A)) ? !0 : G;
15282
- }
15283
- if (w(h) === ht.element && !ef(h) || (W === "noscript" || W === "noembed" || W === "noframes") && St(aL, h.innerHTML))
15284
- return Pn(h), !0;
15285
- if (k && h.nodeType === ht.text) {
15286
- const G = Oi(h.textContent);
15287
- h.textContent !== G && (Br(t.removed, { element: h.cloneNode() }), h.textContent = G);
15288
- }
15289
- return an(X.afterSanitizeElements, h, null), $r(h, A);
15290
- }, Hs = function(h, A, W) {
15291
- if (B[A] || Vs(A, h) || et && (A === "id" || A === "name") && (W in n || W in X0)) return !1;
15292
- const G = g[A] || te.attributeCheck instanceof Function && te.attributeCheck(A, h);
15293
- return Me && St(Pe, A) || _e && St(Ue, A) ? !0 : G ? pr[A] || St(lt, Wr(W, Be, "")) || (A === "src" || A === "xlink:href" || A === "href") && h !== "script" && nu(W, "data:") === 0 && cr[h] || Ve && !St(xe, Wr(W, Be, "")) ? !0 : !W : Ws(h) && Ci(j.tagNameCheck, h) && Ci(j.attributeNameCheck, A, h) || A === "is" && j.allowCustomizedBuiltInElements && Ci(j.tagNameCheck, W);
15285
+ const G = lf($, W, A);
15286
+ return G === !1 && (an(X.afterSanitizeElements, $, null), $r($, A)) ? !0 : G;
15287
+ }
15288
+ if (w($) === ht.element && !ef($) || (W === "noscript" || W === "noembed" || W === "noframes") && St(aL, $.innerHTML))
15289
+ return Pn($), !0;
15290
+ if (k && $.nodeType === ht.text) {
15291
+ const G = Oi($.textContent);
15292
+ $.textContent !== G && (Br(t.removed, { element: $.cloneNode() }), $.textContent = G);
15293
+ }
15294
+ return an(X.afterSanitizeElements, $, null), $r($, A);
15295
+ }, Hs = function($, A, W) {
15296
+ if (B[A] || Vs(A, $) || et && (A === "id" || A === "name") && (W in n || W in X0)) return !1;
15297
+ const G = g[A] || te.attributeCheck instanceof Function && te.attributeCheck(A, $);
15298
+ return Me && St(Pe, A) || _e && St(Ue, A) ? !0 : G ? pr[A] || St(lt, Wr(W, Be, "")) || (A === "src" || A === "xlink:href" || A === "href") && $ !== "script" && nu(W, "data:") === 0 && cr[$] || ze && !St(xe, Wr(W, Be, "")) ? !0 : !W : Ws($) && Ci(j.tagNameCheck, $) && Ci(j.attributeNameCheck, A, $) || A === "is" && j.allowCustomizedBuiltInElements && Ci(j.tagNameCheck, W);
15294
15299
  }, uf = je({}, [
15295
15300
  "annotation-xml",
15296
15301
  "color-profile",
@@ -15300,28 +15305,28 @@ function V0() {
15300
15305
  "font-face-src",
15301
15306
  "font-face-uri",
15302
15307
  "missing-glyph"
15303
- ]), Ws = function(h) {
15304
- return !uf[Kn(h)] && St(Qe, h);
15305
- }, cf = function(h, A, W, G) {
15306
- if (U && typeof c == "object" && typeof c.getAttributeType == "function" && !W) switch (c.getAttributeType(h, A)) {
15308
+ ]), Ws = function($) {
15309
+ return !uf[Kn($)] && St(Qe, $);
15310
+ }, cf = function($, A, W, G) {
15311
+ if (U && typeof c == "object" && typeof c.getAttributeType == "function" && !W) switch (c.getAttributeType($, A)) {
15307
15312
  case "TrustedHTML":
15308
15313
  return q(G);
15309
15314
  case "TrustedScriptURL":
15310
15315
  return ne(G);
15311
15316
  }
15312
15317
  return G;
15313
- }, ff = function(h, A, W, G) {
15318
+ }, ff = function($, A, W, G) {
15314
15319
  try {
15315
- return W ? h.setAttributeNS(W, A, G) : h.setAttribute(A, G), wi(h) ? (Pn(h), !1) : !0;
15320
+ return W ? $.setAttributeNS(W, A, G) : $.setAttribute(A, G), wi($) ? (Pn($), !1) : !0;
15316
15321
  } catch {
15317
- return hr(A, h), !1;
15318
- }
15319
- }, Gs = function(h, A) {
15320
- return Y && St(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, A) ? !0 : Kn(h) === "attributename" && tu(A, "href") !== null;
15321
- }, ko = function(h, A) {
15322
- if (an(X.beforeSanitizeAttributes, h, null), $r(h, A)) return;
15323
- const W = h.attributes;
15324
- if (!W || wi(h)) return;
15322
+ return hr(A, $), !1;
15323
+ }
15324
+ }, Gs = function($, A) {
15325
+ return Y && St(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, A) ? !0 : Kn($) === "attributename" && tu(A, "href") !== null;
15326
+ }, ko = function($, A) {
15327
+ if (an(X.beforeSanitizeAttributes, $, null), $r($, A)) return;
15328
+ const W = $.attributes;
15329
+ if (!W || wi($)) return;
15325
15330
  g = Bs(X.uponSanitizeAttribute, g, N, H);
15326
15331
  const G = {
15327
15332
  attrName: "",
@@ -15331,43 +15336,43 @@ function V0() {
15331
15336
  forceKeepAttr: void 0
15332
15337
  };
15333
15338
  let ye = W.length;
15334
- const Ae = ut(h.nodeName);
15339
+ const Ae = ut($.nodeName);
15335
15340
  for (; ye--; ) {
15336
15341
  const ke = W[ye], vt = ke.name, pn = ke.namespaceURI, Rt = ke.value, zt = ut(vt), gr = Rt;
15337
15342
  let qt = vt === "value" ? gr : zI(gr), Ys = !1;
15338
- if (G.attrName = zt, G.attrValue = qt, G.keepAttr = !0, G.forceKeepAttr = void 0, an(X.uponSanitizeAttribute, h, G), qt = G.attrValue, st && (zt === "id" || zt === "name") && nu(qt, $t) !== 0 && (hr(vt, h, ke), qt = $t + qt, Ys = !0), Gs(vt, qt)) {
15339
- hr(vt, h, ke);
15343
+ if (G.attrName = zt, G.attrValue = qt, G.keepAttr = !0, G.forceKeepAttr = void 0, an(X.uponSanitizeAttribute, $, G), qt = G.attrValue, st && (zt === "id" || zt === "name") && nu(qt, $t) !== 0 && (hr(vt, $, ke), qt = $t + qt, Ys = !0), Gs(vt, qt)) {
15344
+ hr(vt, $, ke);
15340
15345
  continue;
15341
15346
  }
15342
15347
  if (!G.forceKeepAttr) {
15343
15348
  if (!G.keepAttr) {
15344
- hr(vt, h, ke);
15349
+ hr(vt, $, ke);
15345
15350
  continue;
15346
15351
  }
15347
15352
  if (!Ie && St(cu, qt)) {
15348
- hr(vt, h, ke);
15353
+ hr(vt, $, ke);
15349
15354
  continue;
15350
15355
  }
15351
15356
  if (k && (qt = Oi(qt)), !Hs(Ae, zt, qt)) {
15352
- hr(vt, h, ke);
15357
+ hr(vt, $, ke);
15353
15358
  continue;
15354
15359
  }
15355
- qt = cf(Ae, zt, pn, qt), qt !== gr && ff(h, vt, pn, qt) && Ys && eu(t.removed);
15360
+ qt = cf(Ae, zt, pn, qt), qt !== gr && ff($, vt, pn, qt) && Ys && eu(t.removed);
15356
15361
  }
15357
15362
  }
15358
- an(X.afterSanitizeAttributes, h, null), $r(h, A);
15359
- }, jr = function(h) {
15363
+ an(X.afterSanitizeAttributes, $, null), $r($, A);
15364
+ }, jr = function($) {
15360
15365
  let A = null;
15361
- const W = Po(h);
15362
- for (an(X.beforeSanitizeShadowDOM, h, null); A = W.nextNode(); )
15363
- if (an(X.uponSanitizeShadowNode, A, null), Lo(A, h), ko(A, h), In(A.content) && jr(A.content), w(A) === ht.element) {
15366
+ const W = Po($);
15367
+ for (an(X.beforeSanitizeShadowDOM, $, null); A = W.nextNode(); )
15368
+ if (an(X.uponSanitizeShadowNode, A, null), Lo(A, $), ko(A, $), In(A.content) && jr(A.content), w(A) === ht.element) {
15364
15369
  const G = _(A);
15365
15370
  In(G) && (Ro(G), jr(G));
15366
15371
  }
15367
- k && qs(h), an(X.afterSanitizeShadowDOM, h, null);
15368
- }, Ro = function(h) {
15372
+ k && qs($), an(X.afterSanitizeShadowDOM, $, null);
15373
+ }, Ro = function($) {
15369
15374
  const A = [{
15370
- node: h,
15375
+ node: $,
15371
15376
  shadow: null
15372
15377
  }];
15373
15378
  for (; A.length > 0; ) {
@@ -15404,11 +15409,11 @@ function V0() {
15404
15409
  }
15405
15410
  };
15406
15411
  return t.sanitize = function(J) {
15407
- let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, A = null, W = null, G = null, ye = null;
15412
+ let $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, A = null, W = null, G = null, ye = null;
15408
15413
  if (Eo = !J, Eo && (J = "<!-->"), typeof J != "string" && !Ur(J) && (J = WI(J), typeof J != "string"))
15409
15414
  throw En("dirty is not a string, aborting");
15410
15415
  if (!t.isSupported) return J;
15411
- C ? (Ce = I, g = H) : Ao(h), (X.uponSanitizeElement.length > 0 || X.uponSanitizeAttribute.length > 0) && (Ce = Qt(Ce)), X.uponSanitizeAttribute.length > 0 && (g = Qt(g)), t.removed = [];
15416
+ C ? (Ce = I, g = H) : Ao($), (X.uponSanitizeElement.length > 0 || X.uponSanitizeAttribute.length > 0) && (Ce = Qt(Ce)), X.uponSanitizeAttribute.length > 0 && (g = Qt(g)), t.removed = [];
15412
15417
  const Ae = mt && typeof J != "string" && Ur(J);
15413
15418
  let ke = [];
15414
15419
  const vt = dt;
@@ -15460,16 +15465,16 @@ function V0() {
15460
15465
  Ao(J), C = !0, I = Ce, H = g;
15461
15466
  }, t.clearConfig = function() {
15462
15467
  _r = null, C = !1, I = null, H = null, U = z, P = "";
15463
- }, t.isValidAttribute = function(J, h, A) {
15468
+ }, t.isValidAttribute = function(J, $, A) {
15464
15469
  _r || Ao({});
15465
- const W = ut(J), G = ut(h);
15466
- return typeof A == "string" && (Gs(h, A) || !Ie && St(cu, A)) ? !1 : Hs(W, G, A);
15467
- }, t.addHook = function(J, h) {
15468
- typeof h == "function" && Bt(X, J) && Br(X[J], h);
15469
- }, t.removeHook = function(J, h) {
15470
+ const W = ut(J), G = ut($);
15471
+ return typeof A == "string" && (Gs($, A) || !Ie && St(cu, A)) ? !1 : Hs(W, G, A);
15472
+ }, t.addHook = function(J, $) {
15473
+ typeof $ == "function" && Bt(X, J) && Br(X[J], $);
15474
+ }, t.removeHook = function(J, $) {
15470
15475
  if (Bt(X, J)) {
15471
- if (h !== void 0) {
15472
- const A = UI(X[J], h);
15476
+ if ($ !== void 0) {
15477
+ const A = UI(X[J], $);
15473
15478
  return A === -1 ? void 0 : VI(X[J], A, 1)[0];
15474
15479
  }
15475
15480
  return eu(X[J]);
@@ -15692,7 +15697,7 @@ const B0 = xn("XIcon", [
15692
15697
  t.required ? { required: !0 } : {},
15693
15698
  { initialValue: n.iban_holder ?? "" }
15694
15699
  );
15695
- ze(
15700
+ Ve(
15696
15701
  r,
15697
15702
  (d) => {
15698
15703
  n.iban_holder = d;
@@ -15736,15 +15741,15 @@ const B0 = xn("XIcon", [
15736
15741
  setup(e) {
15737
15742
  const n = e.field, r = n.save_to || "iban", i = `${r}-error`, o = n.acceptedCountries || [], a = { iban: !0 };
15738
15743
  o.length && (a.countryiban = o);
15739
- const { model: s, showError: d, errorMessage: l, controlClass: c, handleBlur: f, ctx: m } = pt(n, a), $ = Cn(m.locale);
15744
+ const { model: s, showError: d, errorMessage: l, controlClass: c, handleBlur: f, ctx: m } = pt(n, a), h = Cn(m.locale);
15740
15745
  function y(T) {
15741
15746
  s.value = mP(T.target.value);
15742
15747
  }
15743
15748
  return (T, v) => (O(), x("div", OL, [
15744
15749
  u(n).disableHolderField ? re("", !0) : (O(), x(rt, { key: 0 }, [
15745
- Z("h3", wL, ae(u(n).sectionTitle || u($)("iban_section_title")), 1),
15750
+ Z("h3", wL, ae(u(n).sectionTitle || u(h)("iban_section_title")), 1),
15746
15751
  Te(H0, {
15747
- label: u(n).holderLabel || u($)("iban_holder"),
15752
+ label: u(n).holderLabel || u(h)("iban_holder"),
15748
15753
  placeholder: u(n).holderPlaceholder || "Nom et prénom ou société",
15749
15754
  required: u(n).required
15750
15755
  }, null, 8, ["label", "placeholder", "required"])
@@ -15774,7 +15779,7 @@ const B0 = xn("XIcon", [
15774
15779
  size: 20,
15775
15780
  "aria-hidden": "true"
15776
15781
  }),
15777
- Z("p", null, ae(u($)("iban_warning")), 1)
15782
+ Z("p", null, ae(u(h)("iban_warning")), 1)
15778
15783
  ])),
15779
15784
  u(n).info ? (O(), x("p", {
15780
15785
  key: 2,
@@ -15811,7 +15816,7 @@ const B0 = xn("XIcon", [
15811
15816
  field: {}
15812
15817
  },
15813
15818
  setup(e) {
15814
- const n = e.field, r = Cs(n), i = n.save_to || "file", o = `${i}-error`, a = n.sizeMax ?? 2560, { model: s, showError: d, errorMessage: l, handleBlur: c, ctx: f } = pt(n), m = Cn(f.locale), $ = $e(null), y = $e(!1), T = $e(""), v = K(
15819
+ const n = e.field, r = Cs(n), i = n.save_to || "file", o = `${i}-error`, a = n.sizeMax ?? 2560, { model: s, showError: d, errorMessage: l, handleBlur: c, ctx: f } = pt(n), m = Cn(f.locale), h = $e(null), y = $e(!1), T = $e(""), v = K(
15815
15820
  () => typeof s.value == "string" && s.value.startsWith("http")
15816
15821
  ), p = K(
15817
15822
  () => typeof s.value == "string" && s.value.startsWith("data:")
@@ -15830,15 +15835,15 @@ const B0 = xn("XIcon", [
15830
15835
  const ee = w.target.files?.[0];
15831
15836
  if (!ee) return;
15832
15837
  if (!E(ee.name)) {
15833
- $.value && ($.value.value = ""), _(m("file_format_not_accepted", { formats: r }));
15838
+ h.value && (h.value.value = ""), _(m("file_format_not_accepted", { formats: r }));
15834
15839
  return;
15835
15840
  }
15836
15841
  if (ee.size > a * 1e3) {
15837
- $.value && ($.value.value = ""), _(m("file_max_size_error"));
15842
+ h.value && (h.value.value = ""), _(m("file_max_size_error"));
15838
15843
  return;
15839
15844
  }
15840
15845
  if (ee.name.toLowerCase().endsWith(".heic")) {
15841
- $.value && ($.value.value = ""), _(m("file_heic_error"));
15846
+ h.value && (h.value.value = ""), _(m("file_heic_error"));
15842
15847
  return;
15843
15848
  }
15844
15849
  if (T.value = ee.name, f.privateUploads.value) {
@@ -15862,7 +15867,7 @@ const B0 = xn("XIcon", [
15862
15867
  );
15863
15868
  s.value = U.url;
15864
15869
  } catch (U) {
15865
- s.value = "", $.value && ($.value.value = "");
15870
+ s.value = "", h.value && (h.value.value = "");
15866
15871
  const P = U.response?.data?.errors?.[0];
15867
15872
  _(P || m("file_upload_failed")), tn(U, { where: "FieldFile.upload", save_to: n.save_to });
15868
15873
  } finally {
@@ -15881,7 +15886,7 @@ const B0 = xn("XIcon", [
15881
15886
  w
15882
15887
  );
15883
15888
  } catch (ee) {
15884
- s.value = "", $.value && ($.value.value = "");
15889
+ s.value = "", h.value && (h.value.value = "");
15885
15890
  const Q = ee.response?.data?.errors?.[0];
15886
15891
  _(Q || m("file_upload_failed")), tn(ee, { where: "FieldFile.uploadPrivate", save_to: n.save_to });
15887
15892
  } finally {
@@ -15890,7 +15895,7 @@ const B0 = xn("XIcon", [
15890
15895
  c();
15891
15896
  }
15892
15897
  function D() {
15893
- s.value = "", T.value = "", $.value && ($.value.value = "");
15898
+ s.value = "", T.value = "", h.value && (h.value.value = "");
15894
15899
  }
15895
15900
  return (w, ee) => (O(), x("div", LL, [
15896
15901
  Te(Fe, {
@@ -15922,7 +15927,7 @@ const B0 = xn("XIcon", [
15922
15927
  Z("input", {
15923
15928
  id: u(i),
15924
15929
  ref_key: "inputRef",
15925
- ref: $,
15930
+ ref: h,
15926
15931
  type: "file",
15927
15932
  class: "fb-file-hidden",
15928
15933
  name: u(i),
@@ -15936,7 +15941,7 @@ const B0 = xn("XIcon", [
15936
15941
  key: 1,
15937
15942
  id: u(i),
15938
15943
  ref_key: "inputRef",
15939
- ref: $,
15944
+ ref: h,
15940
15945
  type: "file",
15941
15946
  class: "fb-file-input",
15942
15947
  name: u(i),
@@ -16005,7 +16010,7 @@ const WL = { class: "fb-field" }, GL = ["id", "name", "value", "placeholder", "r
16005
16010
  "aria-invalid": u(a) || void 0,
16006
16011
  onInput: c,
16007
16012
  onBlur: m[0] || (m[0] = //@ts-ignore
16008
- (...$) => u(l) && u(l)(...$))
16013
+ (...h) => u(l) && u(l)(...h))
16009
16014
  }, null, 42, GL),
16010
16015
  u(n).info ? (O(), x("p", {
16011
16016
  key: 0,
@@ -16044,7 +16049,7 @@ const WL = { class: "fb-field" }, GL = ["id", "name", "value", "placeholder", "r
16044
16049
  }, null, 8, ["for-id", "label", "required"]),
16045
16050
  Je(Z("input", {
16046
16051
  id: u(r),
16047
- "onUpdate:modelValue": m[0] || (m[0] = ($) => c.value = $),
16052
+ "onUpdate:modelValue": m[0] || (m[0] = (h) => c.value = h),
16048
16053
  class: He(["fb-input", u(d)]),
16049
16054
  type: "number",
16050
16055
  step: "0.01",
@@ -16054,7 +16059,7 @@ const WL = { class: "fb-field" }, GL = ["id", "name", "value", "placeholder", "r
16054
16059
  required: u(n).required || void 0,
16055
16060
  "aria-invalid": u(a) || void 0,
16056
16061
  onBlur: m[1] || (m[1] = //@ts-ignore
16057
- (...$) => u(l) && u(l)(...$))
16062
+ (...h) => u(l) && u(l)(...h))
16058
16063
  }, null, 42, ZL), [
16059
16064
  [At, c.value]
16060
16065
  ]),
@@ -16088,7 +16093,7 @@ const QL = { class: "fb-field" }, ek = ["id", "name", "value", "placeholder", "r
16088
16093
  () => o.value.map((_) => fa(_.label))
16089
16094
  ), d = {};
16090
16095
  a.value && (d.one_of = s.value);
16091
- const { model: l, showError: c, errorMessage: f, controlClass: m, handleBlur: $, setValue: y } = pt(n, d), T = $e(fa(String(l.value ?? ""))), v = $e(null);
16096
+ const { model: l, showError: c, errorMessage: f, controlClass: m, handleBlur: h, setValue: y } = pt(n, d), T = $e(fa(String(l.value ?? ""))), v = $e(null);
16092
16097
  function p(_) {
16093
16098
  T.value = fa(_.target.value);
16094
16099
  const E = T.value.replace(/\D/g, "");
@@ -16119,7 +16124,7 @@ const QL = { class: "fb-field" }, ek = ["id", "name", "value", "placeholder", "r
16119
16124
  "aria-invalid": u(c) || void 0,
16120
16125
  onInput: p,
16121
16126
  onBlur: E[0] || (E[0] = //@ts-ignore
16122
- (...b) => u($) && u($)(...b))
16127
+ (...b) => u(h) && u(h)(...b))
16123
16128
  }, null, 42, ek),
16124
16129
  v.value ? (O(), x("span", tk, [
16125
16130
  Te(u(Os), { size: 16 }),
@@ -16166,7 +16171,7 @@ const QL = { class: "fb-field" }, ek = ["id", "name", "value", "placeholder", "r
16166
16171
  acceptedCountries: i.acceptedCountries || []
16167
16172
  }
16168
16173
  });
16169
- function $(P) {
16174
+ function h(P) {
16170
16175
  const z = P.target.value, R = jc(z);
16171
16176
  s.value = new ao(i.defaultCountry).input(
16172
16177
  R
@@ -16253,7 +16258,7 @@ const QL = { class: "fb-field" }, ek = ["id", "name", "value", "placeholder", "r
16253
16258
  disabled: p.value,
16254
16259
  autocomplete: u(i).autocomplete ? "tel" : void 0,
16255
16260
  "aria-invalid": u(d) || void 0,
16256
- onInput: $,
16261
+ onInput: h,
16257
16262
  onBlur: z[0] || (z[0] = //@ts-ignore
16258
16263
  (...R) => u(f) && u(f)(...R))
16259
16264
  }, null, 42, ok),
@@ -16348,14 +16353,14 @@ const gk = { class: "fb-field" }, vk = {
16348
16353
  const n = e.field, r = n.save_to || "address", i = `${r}-error`, o = {};
16349
16354
  n.required && (o.address_required = !0), Kl(n.countries) && (o.address_metropolitan = !0);
16350
16355
  const { model: a, showError: s, errorMessage: d, ctx: l } = pt(n, o), c = Cn(l.locale), f = Fn({ ...a.value || {} });
16351
- ze(
16356
+ Ve(
16352
16357
  f,
16353
16358
  () => {
16354
16359
  a.value = { ...f };
16355
16360
  },
16356
16361
  { deep: !0 }
16357
16362
  );
16358
- const m = $e(null), $ = $e(!1), y = K(() => EP(n.countries)), T = K(
16363
+ const m = $e(null), h = $e(!1), y = K(() => EP(n.countries)), T = K(
16359
16364
  () => Kl(n.countries)
16360
16365
  ), v = $e(""), p = $e([]), _ = $e(!1), E = $e(-1);
16361
16366
  let b, M = 0, D = null;
@@ -16400,7 +16405,7 @@ const gk = { class: "fb-field" }, vk = {
16400
16405
  return $n(async () => {
16401
16406
  if (!y.value) {
16402
16407
  if (!l.googleMapsApiKey.value) {
16403
- $.value = !0;
16408
+ h.value = !0;
16404
16409
  return;
16405
16410
  }
16406
16411
  try {
@@ -16417,13 +16422,13 @@ const gk = { class: "fb-field" }, vk = {
16417
16422
  q.addressComponents || [],
16418
16423
  q.location,
16419
16424
  q.formattedAddress || ""
16420
- ), T.value && ta(f.postcode) && ($.value = !0);
16425
+ ), T.value && ta(f.postcode) && (h.value = !0);
16421
16426
  } catch (q) {
16422
16427
  tn(q, { where: "FieldAdresse.select" });
16423
16428
  }
16424
16429
  });
16425
16430
  } catch (P) {
16426
- tn(P, { where: "FieldAdresse.load" }), $.value = !0;
16431
+ tn(P, { where: "FieldAdresse.load" }), h.value = !0;
16427
16432
  }
16428
16433
  }
16429
16434
  }), (P, z) => (O(), x("div", gk, [
@@ -16432,7 +16437,7 @@ const gk = { class: "fb-field" }, vk = {
16432
16437
  label: u(n).label,
16433
16438
  required: u(n).required
16434
16439
  }, null, 8, ["for-id", "label", "required"]),
16435
- !$.value && !f.address ? (O(), x("div", vk, [
16440
+ !h.value && !f.address ? (O(), x("div", vk, [
16436
16441
  y.value ? (O(), x("div", bk, [
16437
16442
  Z("input", {
16438
16443
  id: u(r),
@@ -16466,13 +16471,13 @@ const gk = { class: "fb-field" }, vk = {
16466
16471
  class: "fb-address-ac"
16467
16472
  }, null, 512))
16468
16473
  ])) : re("", !0),
16469
- !$.value && !f.address ? (O(), x("button", {
16474
+ !h.value && !f.address ? (O(), x("button", {
16470
16475
  key: 1,
16471
16476
  type: "button",
16472
16477
  class: "fb-address-toggle",
16473
- onClick: z[3] || (z[3] = (R) => $.value = !0)
16478
+ onClick: z[3] || (z[3] = (R) => h.value = !0)
16474
16479
  }, ae(u(c)("trouvepasadresse")), 1)) : re("", !0),
16475
- $.value || f.address ? (O(), x("div", Tk, [
16480
+ h.value || f.address ? (O(), x("div", Tk, [
16476
16481
  Z("div", Sk, [
16477
16482
  Je(Z("input", {
16478
16483
  id: `${u(r)}-street`,
@@ -16588,7 +16593,7 @@ const gk = { class: "fb-field" }, vk = {
16588
16593
  const {
16589
16594
  value: f,
16590
16595
  errorMessage: m,
16591
- meta: $,
16596
+ meta: h,
16592
16597
  handleBlur: y
16593
16598
  } = er(
16594
16599
  `${a}_hidden_required`,
@@ -16601,9 +16606,9 @@ const gk = { class: "fb-field" }, vk = {
16601
16606
  const v = K(
16602
16607
  () => l.value.some((P) => typeof P != "string" && P.uploading)
16603
16608
  ), p = K(() => l.value.some(T)), _ = K(
16604
- () => !!n.required && !!m.value && ($.touched || $.dirty || s.submitAttempted.value)
16609
+ () => !!n.required && !!m.value && (h.touched || h.dirty || s.submitAttempted.value)
16605
16610
  );
16606
- ze(
16611
+ Ve(
16607
16612
  l,
16608
16613
  () => {
16609
16614
  const P = l.value.filter((z) => typeof z == "string" ? !0 : !!z.data).map((z) => typeof z == "string" ? z : z.data);
@@ -16784,7 +16789,7 @@ const Qk = { class: "fb-field" }, eR = { class: "fb-label" }, tR = ["innerHTML"]
16784
16789
  const n = e.field, r = n.save_to || "field", i = `${r}-error`, { model: o, showError: a, errorMessage: s, handleBlur: d } = pt(n), l = K(() => kr(n.options)), c = $e(
16785
16790
  typeof o.value == "string" && o.value ? o.value.split(":") : []
16786
16791
  );
16787
- return ze(
16792
+ return Ve(
16788
16793
  c,
16789
16794
  () => {
16790
16795
  o.value = c.value.join(":");
@@ -16798,21 +16803,21 @@ const Qk = { class: "fb-field" }, eR = { class: "fb-label" }, tR = ["innerHTML"]
16798
16803
  u(n).required ? (O(), x("span", nR, "*")) : re("", !0)
16799
16804
  ]),
16800
16805
  Z("div", rR, [
16801
- (O(!0), x(rt, null, Ot(l.value, ($) => (O(), x("label", {
16802
- key: $.value,
16803
- class: He(["fb-choice", { "is-checked": c.value.includes($.value) }])
16806
+ (O(!0), x(rt, null, Ot(l.value, (h) => (O(), x("label", {
16807
+ key: h.value,
16808
+ class: He(["fb-choice", { "is-checked": c.value.includes(h.value) }])
16804
16809
  }, [
16805
16810
  Je(Z("input", {
16806
16811
  "onUpdate:modelValue": m[0] || (m[0] = (y) => c.value = y),
16807
16812
  type: "checkbox",
16808
16813
  name: u(r),
16809
- value: $.value,
16814
+ value: h.value,
16810
16815
  onBlur: m[1] || (m[1] = //@ts-ignore
16811
16816
  (...y) => u(d) && u(d)(...y))
16812
16817
  }, null, 40, iR), [
16813
16818
  [_u, c.value]
16814
16819
  ]),
16815
- Z("span", oR, ae($.name), 1)
16820
+ Z("span", oR, ae(h.name), 1)
16816
16821
  ], 2))), 128))
16817
16822
  ]),
16818
16823
  u(n).info ? (O(), x("p", {
@@ -16869,7 +16874,7 @@ const Qk = { class: "fb-field" }, eR = { class: "fb-label" }, tR = ["innerHTML"]
16869
16874
  field: {}
16870
16875
  },
16871
16876
  setup(e) {
16872
- const n = e.field, r = n.save_to || "cem", i = `${r}-error`, { model: o, showError: a, errorMessage: s, handleBlur: d } = pt(n), l = K(() => Number(n.numberOfItem) || 10), c = K(() => Array.from({ length: l.value + 1 }, (p, _) => _)), f = K(() => Number(n.numberOfRedItem) || 0), m = K(() => Number(n.numberOfGreenItem) || 0), $ = K(() => n.hint0 || ""), y = K(() => n.hint10 || "");
16877
+ const n = e.field, r = n.save_to || "cem", i = `${r}-error`, { model: o, showError: a, errorMessage: s, handleBlur: d } = pt(n), l = K(() => Number(n.numberOfItem) || 10), c = K(() => Array.from({ length: l.value + 1 }, (p, _) => _)), f = K(() => Number(n.numberOfRedItem) || 0), m = K(() => Number(n.numberOfGreenItem) || 0), h = K(() => n.hint0 || ""), y = K(() => n.hint10 || "");
16873
16878
  function T(p) {
16874
16879
  return l.value - p < m.value ? "cem-green" : p < f.value ? "cem-red" : "cem-yellow";
16875
16880
  }
@@ -16900,8 +16905,8 @@ const Qk = { class: "fb-field" }, eR = { class: "fb-label" }, tR = ["innerHTML"]
16900
16905
  ]
16901
16906
  }, ae(E), 43, _R))), 128))
16902
16907
  ], 8, mR),
16903
- $.value || y.value ? (O(), x("div", hR, [
16904
- Z("span", null, ae($.value ? `0 – ${$.value}` : ""), 1),
16908
+ h.value || y.value ? (O(), x("div", hR, [
16909
+ Z("span", null, ae(h.value ? `0 – ${h.value}` : ""), 1),
16905
16910
  Z("span", null, ae(y.value ? `${l.value} – ${y.value}` : ""), 1)
16906
16911
  ])) : re("", !0),
16907
16912
  u(a) ? (O(), x("span", {
@@ -16923,9 +16928,9 @@ const Qk = { class: "fb-field" }, eR = { class: "fb-label" }, tR = ["innerHTML"]
16923
16928
  setup(e) {
16924
16929
  const n = e.field, r = n.save_to || "field", i = `${r}-error`, o = K(() => kr(n.options)), a = K(() => o.value.length > 0), s = {};
16925
16930
  a.value && (s.one_of = o.value.map((p) => p.name));
16926
- const { model: d, showError: l, errorMessage: c, controlClass: f, handleBlur: m, setValue: $ } = pt(n, s), y = $e(String(d.value ?? "")), T = $e(null);
16931
+ const { model: d, showError: l, errorMessage: c, controlClass: f, handleBlur: m, setValue: h } = pt(n, s), y = $e(String(d.value ?? "")), T = $e(null);
16927
16932
  function v(p) {
16928
- if (y.value = p.target.value, $(y.value), a.value) {
16933
+ if (y.value = p.target.value, h(y.value), a.value) {
16929
16934
  const _ = o.value.find((E) => E.name === y.value);
16930
16935
  T.value = _ ? _.value : null;
16931
16936
  }
@@ -17003,7 +17008,7 @@ const Qk = { class: "fb-field" }, eR = { class: "fb-label" }, tR = ["innerHTML"]
17003
17008
  ), {
17004
17009
  value: f,
17005
17010
  errorMessage: m,
17006
- meta: $,
17011
+ meta: h,
17007
17012
  handleBlur: y
17008
17013
  } = er(
17009
17014
  o("iban_uk_account_number"),
@@ -17014,7 +17019,7 @@ const Qk = { class: "fb-field" }, eR = { class: "fb-label" }, tR = ["innerHTML"]
17014
17019
  })),
17015
17020
  { initialValue: a.account_number || "" }
17016
17021
  );
17017
- ze([s, f], () => {
17022
+ Ve([s, f], () => {
17018
17023
  i.form[r] = {
17019
17024
  sort_code: s.value,
17020
17025
  account_number: f.value
@@ -17023,7 +17028,7 @@ const Qk = { class: "fb-field" }, eR = { class: "fb-label" }, tR = ["innerHTML"]
17023
17028
  const T = K(
17024
17029
  () => !!d.value && (l.touched || l.dirty)
17025
17030
  ), v = K(
17026
- () => !!m.value && ($.touched || $.dirty)
17031
+ () => !!m.value && (h.touched || h.dirty)
17027
17032
  );
17028
17033
  function p(E) {
17029
17034
  s.value = E.target.value.replace(/\D/g, "").slice(0, 6);
@@ -17116,17 +17121,17 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17116
17121
  field: {}
17117
17122
  },
17118
17123
  setup(e) {
17119
- const n = e.field, r = n.save_to || "multiselect", i = `${r}-error`, { model: o, showError: a, errorMessage: s, handleBlur: d } = pt(n), l = K(() => kr(n.options)), c = K(() => Number(n.nbMaxSelected) || 0), f = K(() => Number(n.minSearchLength) || 0), m = K(() => Number(n.maxDisplayResults) || 0), $ = K(() => n.multiple !== !1), y = typeof n.ajaxUrl == "string" ? n.ajaxUrl : "", T = n.ajax === !0 && y.startsWith("http"), v = T && y.includes("data-list/json/"), p = $e([]), _ = $e({}), E = $e(!1), b = $e(!1), M = $e(!1);
17124
+ const n = e.field, r = n.save_to || "multiselect", i = `${r}-error`, { model: o, showError: a, errorMessage: s, handleBlur: d } = pt(n), l = K(() => kr(n.options)), c = K(() => Number(n.nbMaxSelected) || 0), f = K(() => Number(n.minSearchLength) || 0), m = K(() => Number(n.maxDisplayResults) || 0), h = K(() => n.multiple !== !1), y = typeof n.ajaxUrl == "string" ? n.ajaxUrl : "", T = n.ajax === !0 && y.startsWith("http"), v = T && y.includes("data-list/json/"), p = $e([]), _ = $e({}), E = $e(!1), b = $e(!1), M = $e(!1);
17120
17125
  let D = 0;
17121
17126
  const w = K(() => T ? p.value : l.value);
17122
17127
  function ee(le) {
17123
- return typeof le != "string" || !le ? [] : $.value ? le.split(":") : [le];
17128
+ return typeof le != "string" || !le ? [] : h.value ? le.split(":") : [le];
17124
17129
  }
17125
17130
  const Q = $e(ee(o.value));
17126
- ze(
17131
+ Ve(
17127
17132
  Q,
17128
17133
  () => {
17129
- o.value = $.value ? Q.value.join(":") : Q.value[0] ?? "";
17134
+ o.value = h.value ? Q.value.join(":") : Q.value[0] ?? "";
17130
17135
  },
17131
17136
  { deep: !0 }
17132
17137
  );
@@ -17168,7 +17173,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17168
17173
  const de = Ps((le) => {
17169
17174
  ne(le);
17170
17175
  }, 300);
17171
- ze(U, (le) => {
17176
+ Ve(U, (le) => {
17172
17177
  if (T) {
17173
17178
  if (v) {
17174
17179
  if (de.cancel(), D += 1, p.value = [], !le || P.value) {
@@ -17183,7 +17188,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17183
17188
  }), bi(() => de.cancel());
17184
17189
  function fe(le) {
17185
17190
  const ue = w.value.find((ve) => ve.value === le);
17186
- if (ue && (_.value[le] = ue.name), !$.value)
17191
+ if (ue && (_.value[le] = ue.name), !h.value)
17187
17192
  Q.value = Q.value[0] === le ? [] : [le];
17188
17193
  else {
17189
17194
  const ve = Q.value.indexOf(le);
@@ -17296,7 +17301,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17296
17301
  })));
17297
17302
  const {
17298
17303
  value: m,
17299
- errorMessage: $,
17304
+ errorMessage: h,
17300
17305
  meta: y,
17301
17306
  handleBlur: T
17302
17307
  } = er(
@@ -17304,9 +17309,9 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17304
17309
  n.required ? { required: !0 } : {},
17305
17310
  { label: a }
17306
17311
  ), v = K(() => c.value.some((U) => U.uploading)), p = K(
17307
- () => !!n.required && !!$.value && (y.touched || y.dirty || d.submitAttempted.value)
17312
+ () => !!n.required && !!h.value && (y.touched || y.dirty || d.submitAttempted.value)
17308
17313
  );
17309
- ze(
17314
+ Ve(
17310
17315
  c,
17311
17316
  () => {
17312
17317
  d.form[i] = c.value.filter((U) => U.url).map((U) => U.url), m.value = c.value.some((U) => U.url) || v.value ? "has_files" : "";
@@ -17427,7 +17432,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17427
17432
  ]))), 128))
17428
17433
  ])) : re("", !0),
17429
17434
  v.value ? (O(), x("span", QR, ae(u(l)("multiple_file_patientez")), 1)) : re("", !0),
17430
- p.value ? (O(), x("span", eD, ae(u($) || u(l)("file_select_required")), 1)) : re("", !0)
17435
+ p.value ? (O(), x("span", eD, ae(u(h) || u(l)("file_select_required")), 1)) : re("", !0)
17431
17436
  ]));
17432
17437
  }
17433
17438
  }), nD = ["innerHTML"], rD = /* @__PURE__ */ De({
@@ -17452,7 +17457,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17452
17457
  tn(s, { where: "FieldEstimateRefund" });
17453
17458
  }
17454
17459
  }, 500);
17455
- return ze(() => ({ ...r.form }), a, { deep: !0 }), $n(a), (s, d) => (O(), x("div", {
17460
+ return Ve(() => ({ ...r.form }), a, { deep: !0 }), $n(a), (s, d) => (O(), x("div", {
17456
17461
  class: "fb-blochtml",
17457
17462
  innerHTML: o.value
17458
17463
  }, null, 8, nD));
@@ -17482,8 +17487,8 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17482
17487
  tn(y, { where: "FieldRewardSelector" });
17483
17488
  }
17484
17489
  }, 500);
17485
- ze(() => ({ ...l.form }), m, { deep: !0 }), $n(m);
17486
- const $ = (y, T) => f.value[y] ?? T;
17490
+ Ve(() => ({ ...l.form }), m, { deep: !0 }), $n(m);
17491
+ const h = (y, T) => f.value[y] ?? T;
17487
17492
  return (y, T) => (O(), x("fieldset", iD, [
17488
17493
  Z("legend", oD, [
17489
17494
  Z("span", {
@@ -17508,7 +17513,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17508
17513
  ]),
17509
17514
  Z("span", {
17510
17515
  class: "fb-choice-label",
17511
- innerHTML: $(v.value, v.name)
17516
+ innerHTML: h(v.value, v.name)
17512
17517
  }, null, 8, uD)
17513
17518
  ], 2))), 128))
17514
17519
  ]),
@@ -17545,8 +17550,8 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17545
17550
  const n = e.field, r = n.save_to || "prix_produits", i = n.configuration || {}, { model: o, showError: a, errorMessage: s, ctx: d } = pt(
17546
17551
  n,
17547
17552
  i.displayQuantite ? { prix_produits_quantity: !0 } : {}
17548
- ), l = Cn(d.locale), c = K(() => kr(n.options)), f = K(() => c.value.length > 0), m = K(() => Number(i.minProducts) || 1), $ = K(() => Number(i.maxProducts) || 0), y = Array.isArray(o.value) && o.value.length ? o.value : Array.from({ length: m.value }, () => ({})), T = Fn(y.map((_) => ({ ..._ })));
17549
- ze(
17553
+ ), l = Cn(d.locale), c = K(() => kr(n.options)), f = K(() => c.value.length > 0), m = K(() => Number(i.minProducts) || 1), h = K(() => Number(i.maxProducts) || 0), y = Array.isArray(o.value) && o.value.length ? o.value : Array.from({ length: m.value }, () => ({})), T = Fn(y.map((_) => ({ ..._ })));
17554
+ Ve(
17550
17555
  T,
17551
17556
  () => {
17552
17557
  o.value = T.filter((_) => _.produit || _.price || _.quantity || _.imei).map((_) => ({ ..._, price: _.price || 0 }));
@@ -17554,7 +17559,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17554
17559
  { deep: !0 }
17555
17560
  );
17556
17561
  function v() {
17557
- (!$.value || T.length < $.value) && T.push({});
17562
+ (!h.value || T.length < h.value) && T.push({});
17558
17563
  }
17559
17564
  function p(_) {
17560
17565
  T.length > m.value && T.splice(_, 1);
@@ -17671,7 +17676,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17671
17676
  Ft(" " + ae(u(i).labelMoins || u(l)("prix_produit_remove")), 1)
17672
17677
  ], 8, AD)) : re("", !0)
17673
17678
  ]))), 128)),
17674
- !$.value || T.length < $.value ? (O(), x("button", {
17679
+ !h.value || T.length < h.value ? (O(), x("button", {
17675
17680
  key: 0,
17676
17681
  type: "button",
17677
17682
  class: "fb-button fb-button--ghost fb-mf-btn",
@@ -17739,7 +17744,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17739
17744
  f = t.bus.on("show-popup", s), document.addEventListener("keydown", c);
17740
17745
  }), bi(() => {
17741
17746
  f?.(), document.removeEventListener("keydown", c), document.body.style.overflow = "";
17742
- }), (m, $) => (O(), ei(bf, { to: "body" }, [
17747
+ }), (m, h) => (O(), ei(bf, { to: "body" }, [
17743
17748
  n.value ? (O(), x("div", {
17744
17749
  key: 0,
17745
17750
  class: "fb-form fb-popup-overlay",
@@ -17749,7 +17754,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17749
17754
  }, [
17750
17755
  Z("div", {
17751
17756
  class: "fb-popup",
17752
- onClick: $[0] || ($[0] = lr(() => {
17757
+ onClick: h[0] || (h[0] = lr(() => {
17753
17758
  }, ["stop"]))
17754
17759
  }, [
17755
17760
  i.value ? (O(), x("h3", CD, ae(i.value), 1)) : re("", !0),
@@ -17825,7 +17830,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17825
17830
  emits: ["results", "on_error", "form_submit_loading", "upload_progress", "step-up", "step-down", "too-early", "too-late"],
17826
17831
  setup(e, { emit: t }) {
17827
17832
  P0();
17828
- const n = e, r = t, i = new xp(n.server), o = new Pp(), a = Fn({}), s = $e([]), d = $e(0), l = $e({}), c = $e({}), f = $e(!1), m = $e("fr"), $ = $e(""), y = $e(""), T = $e(void 0), v = $e(!1), p = Fn({});
17833
+ const n = e, r = t, i = new xp(n.server), o = new Pp(), a = Fn({}), s = $e([]), d = $e(0), l = $e({}), c = $e({}), f = $e(!1), m = $e("fr"), h = $e(""), y = $e(""), T = $e(void 0), v = $e(!1), p = Fn({});
17829
17834
  let _;
17830
17835
  const E = () => _?.abandon(d.value), b = Cn(m), { validate: M } = h1(), D = K(() => d.value === s.value.length - 1), w = K(
17831
17836
  () => !!n.testmode?.previewDossier && !n.submissionId
@@ -17834,9 +17839,9 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17834
17839
  const B = /* @__PURE__ */ new Set(), te = /participationValide\s*===?\s*["']([A-Za-z0-9_]+)["']/g;
17835
17840
  for (const _e of L)
17836
17841
  for (const Me of _e.fields || []) {
17837
- const Ve = String(Me.displayIf ?? "");
17842
+ const ze = String(Me.displayIf ?? "");
17838
17843
  let Ie;
17839
- for (; Ie = te.exec(Ve); ) B.add(Ie[1]);
17844
+ for (; Ie = te.exec(ze); ) B.add(Ie[1]);
17840
17845
  }
17841
17846
  return [...B];
17842
17847
  }
@@ -17847,8 +17852,8 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17847
17852
  function ie(L, B) {
17848
17853
  const te = { participationValide: B }, _e = /\{\{\s*this\.form\.(\w+)\s*\}\}/g;
17849
17854
  for (const Me of L)
17850
- for (const Ve of Me.fields || []) {
17851
- const Ie = String(Ve.html ?? "");
17855
+ for (const ze of Me.fields || []) {
17856
+ const Ie = String(ze.html ?? "");
17852
17857
  let k;
17853
17858
  for (; k = _e.exec(Ie); )
17854
17859
  k[1] in te || (te[k[1]] = Q(k[1]));
@@ -17881,7 +17886,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17881
17886
  server: n.server,
17882
17887
  api: i,
17883
17888
  formId: n.formId,
17884
- operationId: $,
17889
+ operationId: h,
17885
17890
  form: a,
17886
17891
  locale: m,
17887
17892
  testmode: $e(n.testmode || {}),
@@ -17898,14 +17903,14 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17898
17903
  $n(async () => {
17899
17904
  try {
17900
17905
  const L = await i.getForm(n.formId), { operation: B, formulaire: te } = L;
17901
- if (l.value = B, $.value = B._id || "", n.relay)
17902
- for (const Ve in n.relay) a[Ve] = n.relay[Ve];
17906
+ if (l.value = B, h.value = B._id || "", n.relay)
17907
+ for (const ze in n.relay) a[ze] = n.relay[ze];
17903
17908
  const _e = te.form || [];
17904
17909
  if (te.type === "UPDATE")
17905
17910
  if (w.value) {
17906
- const Ve = ee(_e);
17907
- n.testmode && (n.testmode.statusOptions = Ve);
17908
- const Ie = n.testmode?.previewStatus || Ve[0] || "";
17911
+ const ze = ee(_e);
17912
+ n.testmode && (n.testmode.statusOptions = ze);
17913
+ const Ie = n.testmode?.previewStatus || ze[0] || "";
17909
17914
  n.testmode && !n.testmode.previewStatus && (n.testmode.previewStatus = Ie), Object.assign(a, ie(_e, Ie));
17910
17915
  } else
17911
17916
  await he();
@@ -17914,7 +17919,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17914
17919
  const Me = /* @__PURE__ */ new Date();
17915
17920
  B.from && Me < new Date(B.from) ? r("too-early", B.from) : B.to && Me > new Date(B.to) && r("too-late", B.to), Ln("form_view", {
17916
17921
  form_id: n.formId,
17917
- operation_id: $.value,
17922
+ operation_id: h.value,
17918
17923
  step: d.value + 1,
17919
17924
  total_steps: s.value.length
17920
17925
  });
@@ -17985,7 +17990,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17985
17990
  function Ne() {
17986
17991
  ue() && (v.value = !1, _?.stepDone(d.value), d.value++, br("Step", `step_${d.value}`), Ln("form_step_change", {
17987
17992
  form_id: n.formId,
17988
- operation_id: $.value,
17993
+ operation_id: h.value,
17989
17994
  step: d.value + 1,
17990
17995
  total_steps: s.value.length,
17991
17996
  direction: "forward"
@@ -17994,7 +17999,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
17994
17999
  function Se() {
17995
18000
  v.value = !1, d.value--, Ln("form_step_change", {
17996
18001
  form_id: n.formId,
17997
- operation_id: $.value,
18002
+ operation_id: h.value,
17998
18003
  step: d.value + 1,
17999
18004
  total_steps: s.value.length,
18000
18005
  direction: "backward"
@@ -18031,14 +18036,14 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
18031
18036
  Ne();
18032
18037
  return;
18033
18038
  }
18034
- const Ve = xe();
18035
- if (Ve.length) {
18039
+ const ze = xe();
18040
+ if (ze.length) {
18036
18041
  Qr(new Error("Champs obligatoires vides à l'envoi"), {
18037
18042
  phase: "submit",
18038
18043
  formId: n.formId,
18039
- fields: Ve
18040
- }), _?.failed("missing_values", Ve), Ce(
18041
- Object.fromEntries(Ve.map((Ie) => [Ie, ""])),
18044
+ fields: ze
18045
+ }), _?.failed("missing_values", ze), Ce(
18046
+ Object.fromEntries(ze.map((Ie) => [Ie, ""])),
18042
18047
  !0
18043
18048
  );
18044
18049
  return;
@@ -18054,7 +18059,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
18054
18059
  message: b("date_fin_regule_passee") || "La date limite de régularisation est dépassée. Le formulaire ne peut plus être soumis."
18055
18060
  }), br("Alert", "date_fin_regule_passee"), _?.failed("date_limit"), Ln("form_submit_error", {
18056
18061
  form_id: n.formId,
18057
- operation_id: $.value,
18062
+ operation_id: h.value,
18058
18063
  error_message: "date_fin_regule_passee",
18059
18064
  error_type: "date_limit_exceeded"
18060
18065
  });
@@ -18063,7 +18068,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
18063
18068
  if (!f.value) {
18064
18069
  f.value = !0, r("form_submit_loading", !0), br("Submit", n.formId), Ln("form_submit", {
18065
18070
  form_id: n.formId,
18066
- operation_id: $.value,
18071
+ operation_id: h.value,
18067
18072
  step: d.value + 1,
18068
18073
  total_steps: s.value.length
18069
18074
  });
@@ -18090,7 +18095,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
18090
18095
  );
18091
18096
  f.value = !1, r("form_submit_loading", !1), _?.submitted(d.value), r("results", B), Ln("form_submit_success", {
18092
18097
  form_id: n.formId,
18093
- operation_id: $.value,
18098
+ operation_id: h.value,
18094
18099
  submission_id: B._id || B.id,
18095
18100
  lot: B.lot || "PERD"
18096
18101
  }), br("Success", n.formId);
@@ -18104,10 +18109,10 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
18104
18109
  const B = L.response, te = B?.data;
18105
18110
  let _e = b("error_generic"), Me = !1;
18106
18111
  te?.message ? _e = String(te.message) : te?.error ? (Array.isArray(te.error) ? te.error : [te.error]).includes("Email domain not allowed") && (Me = !0, _e = b("email_domain_not_allowed")) : L.message && (_e = String(L.message));
18107
- const Ve = B ? B.status >= 500 ? "server_error" : Me ? "email_domain" : te?.codecheckErrors ? "invalid_codes" : "rejected" : "network";
18108
- _?.failed(Ve), Ln("form_submit_error", {
18112
+ const ze = B ? B.status >= 500 ? "server_error" : Me ? "email_domain" : te?.codecheckErrors ? "invalid_codes" : "rejected" : "network";
18113
+ _?.failed(ze), Ln("form_submit_error", {
18109
18114
  form_id: n.formId,
18110
- operation_id: $.value,
18115
+ operation_id: h.value,
18111
18116
  error_message: _e,
18112
18117
  error_type: "submission_error"
18113
18118
  }), !n.hideError && !Me && o.emit("show-popup", { message: _e, title: b("error_title") }), r("on_error", B?.data ?? L ?? "Erreur inconnue");
@@ -18136,15 +18141,15 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
18136
18141
  Me && (te.push(
18137
18142
  Li(Me.validationLabel || Me.label || "Téléphone")
18138
18143
  ), Me.save_to && _e.push(Me.save_to)), _?.errors(_e);
18139
- const Ve = [...new Set(te)].filter((k) => k.trim() !== ""), Ie = Ve.length > 0 ? `${b("Corrigez les erreurs")}<br><br><strong>${b(
18144
+ const ze = [...new Set(te)].filter((k) => k.trim() !== ""), Ie = ze.length > 0 ? `${b("Corrigez les erreurs")}<br><br><strong>${b(
18140
18145
  "Champs concernés :"
18141
- )}</strong><ul><li>${Ve.join("</li><li>")}</li></ul>` : b("Corrigez les erreurs");
18146
+ )}</strong><ul><li>${ze.join("</li><li>")}</li></ul>` : b("Corrigez les erreurs");
18142
18147
  o.emit("show-popup", {
18143
18148
  title: b("Erreurs de validation"),
18144
18149
  message: Ie
18145
18150
  }), Ln("form_validation_error", {
18146
18151
  form_id: n.formId,
18147
- operation_id: $.value,
18152
+ operation_id: h.value,
18148
18153
  step: d.value + 1,
18149
18154
  error_type: "validation_error"
18150
18155
  }), br("Alert", "corrigez_les_erreurs");
@@ -18160,27 +18165,27 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
18160
18165
  return Bn(te.replace("[notice]", B));
18161
18166
  const _e = R(
18162
18167
  String(l.value.dataManager || "Promodev")
18163
- ), Ve = b("rgpd", { link: P.value }).replace(
18168
+ ), ze = b("rgpd", { link: P.value }).replace(
18164
18169
  /<a\b[^>]*id=['"]noticelink['"][^>]*>[\s\S]*?<\/a>/i,
18165
18170
  B
18166
18171
  );
18167
- return Bn(`${_e}&nbsp;${Ve}`);
18172
+ return Bn(`${_e}&nbsp;${ze}`);
18168
18173
  });
18169
- ze(d, (L) => {
18174
+ Ve(d, (L) => {
18170
18175
  n.testmode && (n.testmode.currentStep = L);
18171
- }), ze(
18176
+ }), Ve(
18172
18177
  () => n.testmode?.gotoStep,
18173
18178
  (L) => {
18174
18179
  typeof L == "number" && L >= 0 && L < s.value.length && (L !== d.value && (v.value = !1, d.value = L), n.testmode && (n.testmode.gotoStep = null));
18175
18180
  }
18176
- ), ze(
18181
+ ), Ve(
18177
18182
  () => n.testmode?.previewStatus,
18178
18183
  (L) => {
18179
18184
  w.value && typeof L == "string" && (a.participationValide = L);
18180
18185
  }
18181
18186
  );
18182
18187
  const j = Ba(pa);
18183
- return ze(
18188
+ return Ve(
18184
18189
  () => pa,
18185
18190
  (L) => j.value = L
18186
18191
  ), (L, B) => (O(), x("div", DD, [
@@ -18206,7 +18211,7 @@ const RR = { class: "fb-field" }, DR = ["aria-expanded"], MR = {
18206
18211
  key: _e,
18207
18212
  class: He(["fb-step", `fb-step-${_e}`])
18208
18213
  }, [
18209
- (O(!0), x(rt, null, Ot(te.fields, (Me, Ve) => (O(), x(rt, { key: Ve }, [
18214
+ (O(!0), x(rt, null, Ot(te.fields, (Me, ze) => (O(), x(rt, { key: ze }, [
18210
18215
  (_e === d.value || e.multiColumn) && pe(Me) && Me.component !== "ApiField" && Ke(Me.component) ? (O(), ei(Ef(Ke(Me.component)), {
18211
18216
  key: 0,
18212
18217
  field: Me,