@bahmni/services 0.0.1-dev.54 → 0.0.1-dev.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { initReactI18next as uo } from "react-i18next";
2
- import { useTranslation as Bw } from "react-i18next";
2
+ import { useTranslation as Bb } from "react-i18next";
3
3
  import { useRef as Un, useCallback as Yr, useEffect as lo } from "react";
4
4
  function Zs(t, e) {
5
5
  return function() {
@@ -18,7 +18,7 @@ function ho(t) {
18
18
  let e;
19
19
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && ti(t.buffer), e;
20
20
  }
21
- const mo = kr("string"), _e = kr("function"), ri = kr("number"), Ot = (t) => t !== null && typeof t == "object", po = (t) => t === !0 || t === !1, wr = (t) => {
21
+ const mo = kr("string"), _e = kr("function"), ri = kr("number"), Ot = (t) => t !== null && typeof t == "object", po = (t) => t === !0 || t === !1, br = (t) => {
22
22
  if (Ir(t) !== "object")
23
23
  return !1;
24
24
  const e = An(t);
@@ -31,7 +31,7 @@ const mo = kr("string"), _e = kr("function"), ri = kr("number"), Ot = (t) => t !
31
31
  } catch {
32
32
  return !1;
33
33
  }
34
- }, yo = Ne("Date"), wo = Ne("File"), bo = Ne("Blob"), vo = Ne("FileList"), Eo = (t) => Ot(t) && _e(t.pipe), _o = (t) => {
34
+ }, yo = Ne("Date"), bo = Ne("File"), wo = Ne("Blob"), vo = Ne("FileList"), Eo = (t) => Ot(t) && _e(t.pipe), _o = (t) => {
35
35
  let e;
36
36
  return t && (typeof FormData == "function" && t instanceof FormData || _e(t.append) && ((e = Ir(t)) === "formdata" || // detect form-data instance
37
37
  e === "object" && _e(t.toString) && t.toString() === "[object FormData]"));
@@ -67,7 +67,7 @@ const We = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
67
67
  function vn() {
68
68
  const { caseless: t, skipUndefined: e } = ai(this) && this || {}, r = {}, n = (a, s) => {
69
69
  const i = t && ni(r, s) || s;
70
- wr(r[i]) && wr(a) ? r[i] = vn(r[i], a) : wr(a) ? r[i] = vn({}, a) : ft(a) ? r[i] = a.slice() : (!e || !ct(a)) && (r[i] = a);
70
+ br(r[i]) && br(a) ? r[i] = vn(r[i], a) : br(a) ? r[i] = vn({}, a) : ft(a) ? r[i] = a.slice() : (!e || !ct(a)) && (r[i] = a);
71
71
  };
72
72
  for (let a = 0, s = arguments.length; a < s; a++)
73
73
  arguments[a] && At(arguments[a], n);
@@ -189,7 +189,7 @@ const Wo = (t) => {
189
189
  isNumber: ri,
190
190
  isBoolean: po,
191
191
  isObject: Ot,
192
- isPlainObject: wr,
192
+ isPlainObject: br,
193
193
  isEmptyObject: go,
194
194
  isReadableStream: $o,
195
195
  isRequest: Ro,
@@ -197,8 +197,8 @@ const Wo = (t) => {
197
197
  isHeaders: Oo,
198
198
  isUndefined: ct,
199
199
  isDate: yo,
200
- isFile: wo,
201
- isBlob: bo,
200
+ isFile: bo,
201
+ isBlob: wo,
202
202
  isRegExp: Uo,
203
203
  isFunction: _e,
204
204
  isStream: Eo,
@@ -338,17 +338,17 @@ function Lr(t, e, r) {
338
338
  if (D.endsWith(g, "{}"))
339
339
  g = n ? g : g.slice(0, -2), y = JSON.stringify(y);
340
340
  else if (D.isArray(y) && Qo(y) || (D.isFileList(y) || D.endsWith(g, "[]")) && (m = D.toArray(y)))
341
- return g = ui(g), m.forEach(function(h, b) {
341
+ return g = ui(g), m.forEach(function(h, w) {
342
342
  !(D.isUndefined(h) || h === null) && e.append(
343
343
  // eslint-disable-next-line no-nested-ternary
344
- i === !0 ? Vn([g], b, s) : i === null ? g : g + "[]",
344
+ i === !0 ? Vn([g], w, s) : i === null ? g : g + "[]",
345
345
  l(h)
346
346
  );
347
347
  }), !1;
348
348
  }
349
349
  return En(y) ? !0 : (e.append(Vn(f, g, s), l(y)), !1);
350
350
  }
351
- const p = [], w = Object.assign(Zo, {
351
+ const p = [], b = Object.assign(Zo, {
352
352
  defaultVisitor: d,
353
353
  convertValue: l,
354
354
  isVisitable: En
@@ -363,7 +363,7 @@ function Lr(t, e, r) {
363
363
  m,
364
364
  D.isString(u) ? u.trim() : u,
365
365
  g,
366
- w
366
+ b
367
367
  )) === !0 && S(m, g ? g.concat(u) : [u]);
368
368
  }), p.pop();
369
369
  }
@@ -640,8 +640,8 @@ const hc = D.toObjectSet([
640
640
  function gt(t) {
641
641
  return t && String(t).trim().toLowerCase();
642
642
  }
643
- function br(t) {
644
- return t === !1 || t == null ? t : D.isArray(t) ? t.map(br) : String(t);
643
+ function wr(t) {
644
+ return t === !1 || t == null ? t : D.isArray(t) ? t.map(wr) : String(t);
645
645
  }
646
646
  function pc(t) {
647
647
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -664,7 +664,7 @@ function Jr(t, e, r, n, a) {
664
664
  function yc(t) {
665
665
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
666
666
  }
667
- function wc(t, e) {
667
+ function bc(t, e) {
668
668
  const r = D.toCamelCase(" " + e);
669
669
  ["get", "set", "has"].forEach((n) => {
670
670
  Object.defineProperty(t, n + r, {
@@ -686,7 +686,7 @@ let Se = class {
686
686
  if (!d)
687
687
  throw new Error("header name must be a non-empty string");
688
688
  const p = D.findKey(a, d);
689
- (!p || a[p] === void 0 || l === !0 || l === void 0 && a[p] !== !1) && (a[p || c] = br(o));
689
+ (!p || a[p] === void 0 || l === !0 || l === void 0 && a[p] !== !1) && (a[p || c] = wr(o));
690
690
  }
691
691
  const i = (o, c) => D.forEach(o, (l, d) => s(l, d, c));
692
692
  if (D.isPlainObject(e) || e instanceof this.constructor)
@@ -754,11 +754,11 @@ let Se = class {
754
754
  return D.forEach(this, (a, s) => {
755
755
  const i = D.findKey(n, s);
756
756
  if (i) {
757
- r[i] = br(a), delete r[s];
757
+ r[i] = wr(a), delete r[s];
758
758
  return;
759
759
  }
760
760
  const o = e ? yc(s) : String(s).trim();
761
- o !== s && delete r[s], r[o] = br(a), n[o] = !0;
761
+ o !== s && delete r[s], r[o] = wr(a), n[o] = !0;
762
762
  }), this;
763
763
  }
764
764
  concat(...e) {
@@ -796,7 +796,7 @@ let Se = class {
796
796
  }).accessors, a = this.prototype;
797
797
  function s(i) {
798
798
  const o = gt(i);
799
- n[o] || (wc(a, i), n[o] = !0);
799
+ n[o] || (bc(a, i), n[o] = !0);
800
800
  }
801
801
  return D.isArray(e) ? e.forEach(s) : s(e), this;
802
802
  }
@@ -838,7 +838,7 @@ function pi(t, e, r) {
838
838
  r
839
839
  ));
840
840
  }
841
- function bc(t) {
841
+ function wc(t) {
842
842
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
843
843
  return e && e[1] || "";
844
844
  }
@@ -849,13 +849,13 @@ function vc(t, e) {
849
849
  return e = e !== void 0 ? e : 1e3, function(c) {
850
850
  const l = Date.now(), d = n[s];
851
851
  i || (i = l), r[a] = c, n[a] = l;
852
- let p = s, w = 0;
852
+ let p = s, b = 0;
853
853
  for (; p !== a; )
854
- w += r[p++], p = p % t;
854
+ b += r[p++], p = p % t;
855
855
  if (a = (a + 1) % t, a === s && (s = (s + 1) % t), l - i < e)
856
856
  return;
857
857
  const S = d && l - d;
858
- return S ? Math.round(w * 1e3 / S) : void 0;
858
+ return S ? Math.round(b * 1e3 / S) : void 0;
859
859
  };
860
860
  }
861
861
  function Ec(t, e) {
@@ -940,14 +940,14 @@ const Kn = (t) => t instanceof Se ? { ...t } : t;
940
940
  function Ke(t, e) {
941
941
  e = e || {};
942
942
  const r = {};
943
- function n(l, d, p, w) {
944
- return D.isPlainObject(l) && D.isPlainObject(d) ? D.merge.call({ caseless: w }, l, d) : D.isPlainObject(d) ? D.merge({}, d) : D.isArray(d) ? d.slice() : d;
943
+ function n(l, d, p, b) {
944
+ return D.isPlainObject(l) && D.isPlainObject(d) ? D.merge.call({ caseless: b }, l, d) : D.isPlainObject(d) ? D.merge({}, d) : D.isArray(d) ? d.slice() : d;
945
945
  }
946
- function a(l, d, p, w) {
946
+ function a(l, d, p, b) {
947
947
  if (D.isUndefined(d)) {
948
948
  if (!D.isUndefined(l))
949
- return n(void 0, l, p, w);
950
- } else return n(l, d, p, w);
949
+ return n(void 0, l, p, b);
950
+ } else return n(l, d, p, b);
951
951
  }
952
952
  function s(l, d) {
953
953
  if (!D.isUndefined(d))
@@ -997,8 +997,8 @@ function Ke(t, e) {
997
997
  headers: (l, d, p) => a(Kn(l), Kn(d), p, !0)
998
998
  };
999
999
  return D.forEach(Object.keys({ ...t, ...e }), function(d) {
1000
- const p = c[d] || a, w = p(t[d], e[d], d);
1001
- D.isUndefined(w) && p !== o || (r[d] = w);
1000
+ const p = c[d] || a, b = p(t[d], e[d], d);
1001
+ D.isUndefined(b) && p !== o || (r[d] = b);
1002
1002
  }), r;
1003
1003
  }
1004
1004
  const yi = (t) => {
@@ -1027,7 +1027,7 @@ const yi = (t) => {
1027
1027
  const a = yi(t);
1028
1028
  let s = a.data;
1029
1029
  const i = Se.from(a.headers).normalize();
1030
- let { responseType: o, onUploadProgress: c, onDownloadProgress: l } = a, d, p, w, S, y;
1030
+ let { responseType: o, onUploadProgress: c, onDownloadProgress: l } = a, d, p, b, S, y;
1031
1031
  function g() {
1032
1032
  S && S(), y && y(), a.cancelToken && a.cancelToken.unsubscribe(d), a.signal && a.signal.removeEventListener("abort", d);
1033
1033
  }
@@ -1056,24 +1056,24 @@ const yi = (t) => {
1056
1056
  !f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(m);
1057
1057
  }, f.onabort = function() {
1058
1058
  f && (n(new G("Request aborted", G.ECONNABORTED, t, f)), f = null);
1059
- }, f.onerror = function(b) {
1060
- const _ = b && b.message ? b.message : "Network Error", E = new G(_, G.ERR_NETWORK, t, f);
1061
- E.event = b || null, n(E), f = null;
1059
+ }, f.onerror = function(w) {
1060
+ const _ = w && w.message ? w.message : "Network Error", E = new G(_, G.ERR_NETWORK, t, f);
1061
+ E.event = w || null, n(E), f = null;
1062
1062
  }, f.ontimeout = function() {
1063
- let b = a.timeout ? "timeout of " + a.timeout + "ms exceeded" : "timeout exceeded";
1063
+ let w = a.timeout ? "timeout of " + a.timeout + "ms exceeded" : "timeout exceeded";
1064
1064
  const _ = a.transitional || fi;
1065
- a.timeoutErrorMessage && (b = a.timeoutErrorMessage), n(new G(
1066
- b,
1065
+ a.timeoutErrorMessage && (w = a.timeoutErrorMessage), n(new G(
1066
+ w,
1067
1067
  _.clarifyTimeoutError ? G.ETIMEDOUT : G.ECONNABORTED,
1068
1068
  t,
1069
1069
  f
1070
1070
  )), f = null;
1071
- }, s === void 0 && i.setContentType(null), "setRequestHeader" in f && D.forEach(i.toJSON(), function(b, _) {
1072
- f.setRequestHeader(_, b);
1073
- }), D.isUndefined(a.withCredentials) || (f.withCredentials = !!a.withCredentials), o && o !== "json" && (f.responseType = a.responseType), l && ([w, y] = Sr(l, !0), f.addEventListener("progress", w)), c && f.upload && ([p, S] = Sr(c), f.upload.addEventListener("progress", p), f.upload.addEventListener("loadend", S)), (a.cancelToken || a.signal) && (d = (h) => {
1071
+ }, s === void 0 && i.setContentType(null), "setRequestHeader" in f && D.forEach(i.toJSON(), function(w, _) {
1072
+ f.setRequestHeader(_, w);
1073
+ }), D.isUndefined(a.withCredentials) || (f.withCredentials = !!a.withCredentials), o && o !== "json" && (f.responseType = a.responseType), l && ([b, y] = Sr(l, !0), f.addEventListener("progress", b)), c && f.upload && ([p, S] = Sr(c), f.upload.addEventListener("progress", p), f.upload.addEventListener("loadend", S)), (a.cancelToken || a.signal) && (d = (h) => {
1074
1074
  f && (n(!h || h.type ? new ht(null, t, f) : h), f.abort(), f = null);
1075
1075
  }, a.cancelToken && a.cancelToken.subscribe(d), a.signal && (a.signal.aborted ? d() : a.signal.addEventListener("abort", d)));
1076
- const u = bc(a.url);
1076
+ const u = wc(a.url);
1077
1077
  if (u && ye.protocols.indexOf(u) === -1) {
1078
1078
  n(new G("Unsupported protocol " + u + ":", G.ERR_BAD_REQUEST, t));
1079
1079
  return;
@@ -1146,8 +1146,8 @@ const yi = (t) => {
1146
1146
  }
1147
1147
  let p = d.byteLength;
1148
1148
  if (r) {
1149
- let w = s += p;
1150
- r(w);
1149
+ let b = s += p;
1150
+ r(b);
1151
1151
  }
1152
1152
  c.enqueue(new Uint8Array(d));
1153
1153
  } catch (l) {
@@ -1160,7 +1160,7 @@ const yi = (t) => {
1160
1160
  }, {
1161
1161
  highWaterMark: 2
1162
1162
  });
1163
- }, Jn = 64 * 1024, { isFunction: Dt } = D, wi = (({ fetch: t, Request: e, Response: r }) => ({
1163
+ }, Jn = 64 * 1024, { isFunction: Dt } = D, bi = (({ fetch: t, Request: e, Response: r }) => ({
1164
1164
  fetch: t,
1165
1165
  Request: e,
1166
1166
  Response: r
@@ -1174,7 +1174,7 @@ const yi = (t) => {
1174
1174
  return !1;
1175
1175
  }
1176
1176
  }, Cc = (t) => {
1177
- const { fetch: e, Request: r, Response: n } = Object.assign({}, wi, t), a = Dt(e), s = Dt(r), i = Dt(n);
1177
+ const { fetch: e, Request: r, Response: n } = Object.assign({}, bi, t), a = Dt(e), s = Dt(r), i = Dt(n);
1178
1178
  if (!a)
1179
1179
  return !1;
1180
1180
  const o = a && Dt(Xn), c = a && (typeof Qn == "function" ? /* @__PURE__ */ ((y) => (g) => y.encode(g))(new Qn()) : async (y) => new Uint8Array(await new r(y).arrayBuffer())), l = s && o && Zn(() => {
@@ -1198,7 +1198,7 @@ const yi = (t) => {
1198
1198
  throw new G(`Response type '${y}' is not supported`, G.ERR_NOT_SUPPORT, f);
1199
1199
  });
1200
1200
  });
1201
- const w = async (y) => {
1201
+ const b = async (y) => {
1202
1202
  if (y == null)
1203
1203
  return 0;
1204
1204
  if (D.isBlob(y))
@@ -1214,7 +1214,7 @@ const yi = (t) => {
1214
1214
  return (await c(y)).byteLength;
1215
1215
  }, S = async (y, g) => {
1216
1216
  const f = D.toFiniteNumber(y.getContentLength());
1217
- return f ?? w(g);
1217
+ return f ?? b(g);
1218
1218
  };
1219
1219
  return async (y) => {
1220
1220
  let {
@@ -1223,7 +1223,7 @@ const yi = (t) => {
1223
1223
  data: m,
1224
1224
  signal: u,
1225
1225
  cancelToken: h,
1226
- timeout: b,
1226
+ timeout: w,
1227
1227
  onDownloadProgress: _,
1228
1228
  onUploadProgress: E,
1229
1229
  responseType: $,
@@ -1232,7 +1232,7 @@ const yi = (t) => {
1232
1232
  fetchOptions: j
1233
1233
  } = yi(y);
1234
1234
  $ = $ ? ($ + "").toLowerCase() : "text";
1235
- let q = Ac([u, h && h.toAbortSignal()], b), U = null;
1235
+ let q = Ac([u, h && h.toAbortSignal()], w), U = null;
1236
1236
  const F = q && q.unsubscribe && (() => {
1237
1237
  q.unsubscribe();
1238
1238
  });
@@ -1302,10 +1302,10 @@ const yi = (t) => {
1302
1302
  ) : G.from(K, K && K.code, y, U);
1303
1303
  }
1304
1304
  };
1305
- }, Ic = /* @__PURE__ */ new Map(), bi = (t) => {
1305
+ }, Ic = /* @__PURE__ */ new Map(), wi = (t) => {
1306
1306
  let e = D.merge.call({
1307
1307
  skipUndefined: !0
1308
- }, wi, t ? t.env : null);
1308
+ }, bi, t ? t.env : null);
1309
1309
  const { fetch: r, Request: n, Response: a } = e, s = [
1310
1310
  n,
1311
1311
  a,
@@ -1316,12 +1316,12 @@ const yi = (t) => {
1316
1316
  c = s[o], l = d.get(c), l === void 0 && d.set(c, l = o ? /* @__PURE__ */ new Map() : Cc(e)), d = l;
1317
1317
  return l;
1318
1318
  };
1319
- bi();
1319
+ wi();
1320
1320
  const Sn = {
1321
1321
  http: Xo,
1322
1322
  xhr: Oc,
1323
1323
  fetch: {
1324
- get: bi
1324
+ get: wi
1325
1325
  }
1326
1326
  };
1327
1327
  D.forEach(Sn, (t, e) => {
@@ -1502,16 +1502,16 @@ let Ge = class {
1502
1502
  this.interceptors.response.forEach(function(g) {
1503
1503
  l.push(g.fulfilled, g.rejected);
1504
1504
  });
1505
- let d, p = 0, w;
1505
+ let d, p = 0, b;
1506
1506
  if (!c) {
1507
1507
  const y = [ta.bind(this), void 0];
1508
- for (y.unshift(...o), y.push(...l), w = y.length, d = Promise.resolve(r); p < w; )
1508
+ for (y.unshift(...o), y.push(...l), b = y.length, d = Promise.resolve(r); p < b; )
1509
1509
  d = d.then(y[p++], y[p++]);
1510
1510
  return d;
1511
1511
  }
1512
- w = o.length;
1512
+ b = o.length;
1513
1513
  let S = r;
1514
- for (p = 0; p < w; ) {
1514
+ for (p = 0; p < b; ) {
1515
1515
  const y = o[p++], g = o[p++];
1516
1516
  try {
1517
1517
  S = y(S);
@@ -1525,7 +1525,7 @@ let Ge = class {
1525
1525
  } catch (y) {
1526
1526
  return Promise.reject(y);
1527
1527
  }
1528
- for (p = 0, w = l.length; p < w; )
1528
+ for (p = 0, b = l.length; p < b; )
1529
1529
  d = d.then(l[p++], l[p++]);
1530
1530
  return d;
1531
1531
  }
@@ -2300,12 +2300,12 @@ class Or extends xr {
2300
2300
  } : i;
2301
2301
  }
2302
2302
  const p = this.resolve(e, r);
2303
- let w = p == null ? void 0 : p.res;
2304
- const S = (p == null ? void 0 : p.usedKey) || i, y = (p == null ? void 0 : p.exactUsedKey) || i, g = ["[object Number]", "[object Function]", "[object RegExp]"], f = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, m = !this.i18nFormat || this.i18nFormat.handleAsObject, u = r.count !== void 0 && !W(r.count), h = Or.hasDefaultValue(r), b = u ? this.pluralResolver.getSuffix(l, r.count, r) : "", _ = r.ordinal && u ? this.pluralResolver.getSuffix(l, r.count, {
2303
+ let b = p == null ? void 0 : p.res;
2304
+ const S = (p == null ? void 0 : p.usedKey) || i, y = (p == null ? void 0 : p.exactUsedKey) || i, g = ["[object Number]", "[object Function]", "[object RegExp]"], f = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, m = !this.i18nFormat || this.i18nFormat.handleAsObject, u = r.count !== void 0 && !W(r.count), h = Or.hasDefaultValue(r), w = u ? this.pluralResolver.getSuffix(l, r.count, r) : "", _ = r.ordinal && u ? this.pluralResolver.getSuffix(l, r.count, {
2305
2305
  ordinal: !1
2306
- }) : "", E = u && !r.ordinal && r.count === 0, $ = E && r[`defaultValue${this.options.pluralSeparator}zero`] || r[`defaultValue${b}`] || r[`defaultValue${_}`] || r.defaultValue;
2307
- let A = w;
2308
- m && !w && h && (A = $);
2306
+ }) : "", E = u && !r.ordinal && r.count === 0, $ = E && r[`defaultValue${this.options.pluralSeparator}zero`] || r[`defaultValue${w}`] || r[`defaultValue${_}`] || r.defaultValue;
2307
+ let A = b;
2308
+ m && !b && h && (A = $);
2309
2309
  const k = la(A), j = Object.prototype.toString.apply(A);
2310
2310
  if (m && A && k && g.indexOf(j) < 0 && !(W(f) && Array.isArray(A))) {
2311
2311
  if (!r.returnObjects && !this.options.returnObjects) {
@@ -2321,7 +2321,7 @@ class Or extends xr {
2321
2321
  for (const z in A)
2322
2322
  if (Object.prototype.hasOwnProperty.call(A, z)) {
2323
2323
  const K = `${F}${s}${z}`;
2324
- h && !w ? U[z] = this.translate(K, {
2324
+ h && !b ? U[z] = this.translate(K, {
2325
2325
  ...r,
2326
2326
  defaultValue: la($) ? $[z] : void 0,
2327
2327
  joinArrays: !1,
@@ -2332,16 +2332,16 @@ class Or extends xr {
2332
2332
  ns: o
2333
2333
  }), U[z] === K && (U[z] = A[z]);
2334
2334
  }
2335
- w = U;
2335
+ b = U;
2336
2336
  }
2337
- } else if (m && W(f) && Array.isArray(w))
2338
- w = w.join(f), w && (w = this.extendTranslation(w, e, r, n));
2337
+ } else if (m && W(f) && Array.isArray(b))
2338
+ b = b.join(f), b && (b = this.extendTranslation(b, e, r, n));
2339
2339
  else {
2340
2340
  let q = !1, U = !1;
2341
- !this.isValidLookup(w) && h && (q = !0, w = $), this.isValidLookup(w) || (U = !0, w = i);
2342
- const z = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && U ? void 0 : w, K = h && $ !== w && this.options.updateMissing;
2341
+ !this.isValidLookup(b) && h && (q = !0, b = $), this.isValidLookup(b) || (U = !0, b = i);
2342
+ const z = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && U ? void 0 : b, K = h && $ !== b && this.options.updateMissing;
2343
2343
  if (U || q || K) {
2344
- if (this.logger.log(K ? "updateKey" : "missingKey", l, c, i, K ? $ : w), s) {
2344
+ if (this.logger.log(K ? "updateKey" : "missingKey", l, c, i, K ? $ : b), s) {
2345
2345
  const ie = this.resolve(i, {
2346
2346
  ...r,
2347
2347
  keySeparator: !1
@@ -2356,8 +2356,8 @@ class Or extends xr {
2356
2356
  else this.options.saveMissingTo === "all" ? he = this.languageUtils.toResolveHierarchy(r.lng || this.language) : he.push(r.lng || this.language);
2357
2357
  const ee = (ie, M, O) => {
2358
2358
  var T;
2359
- const I = h && O !== w ? O : z;
2360
- this.options.missingKeyHandler ? this.options.missingKeyHandler(ie, c, M, I, K, r) : (T = this.backendConnector) != null && T.saveMissing && this.backendConnector.saveMissing(ie, c, M, I, K, r), this.emit("missingKey", ie, c, M, w);
2359
+ const I = h && O !== b ? O : z;
2360
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(ie, c, M, I, K, r) : (T = this.backendConnector) != null && T.saveMissing && this.backendConnector.saveMissing(ie, c, M, I, K, r), this.emit("missingKey", ie, c, M, b);
2361
2361
  };
2362
2362
  this.options.saveMissing && (this.options.saveMissingPlurals && u ? he.forEach((ie) => {
2363
2363
  const M = this.pluralResolver.getSuffixes(ie, r);
@@ -2366,9 +2366,9 @@ class Or extends xr {
2366
2366
  });
2367
2367
  }) : ee(he, i, $));
2368
2368
  }
2369
- w = this.extendTranslation(w, e, r, p, n), U && w === i && this.options.appendNamespaceToMissingKey && (w = `${c}:${i}`), (U || q) && this.options.parseMissingKeyHandler && (w = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}:${i}` : i, q ? w : void 0));
2369
+ b = this.extendTranslation(b, e, r, p, n), U && b === i && this.options.appendNamespaceToMissingKey && (b = `${c}:${i}`), (U || q) && this.options.parseMissingKeyHandler && (b = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}:${i}` : i, q ? b : void 0));
2370
2370
  }
2371
- return a ? (p.res = w, p.usedParams = this.getUsedParamsDetails(r), p) : w;
2371
+ return a ? (p.res = b, p.usedParams = this.getUsedParamsDetails(r), p) : b;
2372
2372
  }
2373
2373
  extendTranslation(e, r, n, a, s) {
2374
2374
  var l, d;
@@ -2389,10 +2389,10 @@ class Or extends xr {
2389
2389
  }
2390
2390
  });
2391
2391
  const p = W(e) && (((d = n == null ? void 0 : n.interpolation) == null ? void 0 : d.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2392
- let w;
2392
+ let b;
2393
2393
  if (p) {
2394
2394
  const y = e.match(this.interpolator.nestingRegexp);
2395
- w = y && y.length;
2395
+ b = y && y.length;
2396
2396
  }
2397
2397
  let S = n.replace && !W(n.replace) ? n.replace : n;
2398
2398
  if (this.options.interpolation.defaultVariables && (S = {
@@ -2400,7 +2400,7 @@ class Or extends xr {
2400
2400
  ...S
2401
2401
  }), e = this.interpolator.interpolate(e, S, n.lng || this.language || a.usedLng, n), p) {
2402
2402
  const y = e.match(this.interpolator.nestingRegexp), g = y && y.length;
2403
- w < g && (n.nest = !1);
2403
+ b < g && (n.nest = !1);
2404
2404
  }
2405
2405
  !n.lng && a && a.res && (n.lng = this.language || a.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, function() {
2406
2406
  for (var y = arguments.length, g = new Array(y), f = 0; f < y; f++)
@@ -2425,27 +2425,27 @@ class Or extends xr {
2425
2425
  a = d;
2426
2426
  let p = l.namespaces;
2427
2427
  this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
2428
- const w = r.count !== void 0 && !W(r.count), S = w && !r.ordinal && r.count === 0, y = r.context !== void 0 && (W(r.context) || typeof r.context == "number") && r.context !== "", g = r.lngs ? r.lngs : this.languageUtils.toResolveHierarchy(r.lng || this.language, r.fallbackLng);
2428
+ const b = r.count !== void 0 && !W(r.count), S = b && !r.ordinal && r.count === 0, y = r.context !== void 0 && (W(r.context) || typeof r.context == "number") && r.context !== "", g = r.lngs ? r.lngs : this.languageUtils.toResolveHierarchy(r.lng || this.language, r.fallbackLng);
2429
2429
  p.forEach((f) => {
2430
2430
  var m, u;
2431
2431
  this.isValidLookup(n) || (o = f, !ua[`${g[0]}-${f}`] && ((m = this.utils) != null && m.hasLoadedNamespace) && !((u = this.utils) != null && u.hasLoadedNamespace(o)) && (ua[`${g[0]}-${f}`] = !0, this.logger.warn(`key "${a}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), g.forEach((h) => {
2432
2432
  var E;
2433
2433
  if (this.isValidLookup(n)) return;
2434
2434
  i = h;
2435
- const b = [d];
2435
+ const w = [d];
2436
2436
  if ((E = this.i18nFormat) != null && E.addLookupKeys)
2437
- this.i18nFormat.addLookupKeys(b, d, h, f, r);
2437
+ this.i18nFormat.addLookupKeys(w, d, h, f, r);
2438
2438
  else {
2439
2439
  let $;
2440
- w && ($ = this.pluralResolver.getSuffix(h, r.count, r));
2440
+ b && ($ = this.pluralResolver.getSuffix(h, r.count, r));
2441
2441
  const A = `${this.options.pluralSeparator}zero`, k = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2442
- if (w && (b.push(d + $), r.ordinal && $.indexOf(k) === 0 && b.push(d + $.replace(k, this.options.pluralSeparator)), S && b.push(d + A)), y) {
2442
+ if (b && (w.push(d + $), r.ordinal && $.indexOf(k) === 0 && w.push(d + $.replace(k, this.options.pluralSeparator)), S && w.push(d + A)), y) {
2443
2443
  const j = `${d}${this.options.contextSeparator}${r.context}`;
2444
- b.push(j), w && (b.push(j + $), r.ordinal && $.indexOf(k) === 0 && b.push(j + $.replace(k, this.options.pluralSeparator)), S && b.push(j + A));
2444
+ w.push(j), b && (w.push(j + $), r.ordinal && $.indexOf(k) === 0 && w.push(j + $.replace(k, this.options.pluralSeparator)), S && w.push(j + A));
2445
2445
  }
2446
2446
  }
2447
2447
  let _;
2448
- for (; _ = b.pop(); )
2448
+ for (; _ = w.pop(); )
2449
2449
  this.isValidLookup(n) || (s = _, n = this.getResource(h, f, _, r));
2450
2450
  }));
2451
2451
  });
@@ -2641,7 +2641,7 @@ class lu {
2641
2641
  formatSeparator: l,
2642
2642
  unescapeSuffix: d,
2643
2643
  unescapePrefix: p,
2644
- nestingPrefix: w,
2644
+ nestingPrefix: b,
2645
2645
  nestingPrefixEscaped: S,
2646
2646
  nestingSuffix: y,
2647
2647
  nestingSuffixEscaped: g,
@@ -2649,7 +2649,7 @@ class lu {
2649
2649
  maxReplaces: m,
2650
2650
  alwaysFormat: u
2651
2651
  } = e.interpolation;
2652
- this.escape = r !== void 0 ? r : nu, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = s ? Qe(s) : i || "{{", this.suffix = o ? Qe(o) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = d ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = w ? Qe(w) : S || Qe("$t("), this.nestingSuffix = y ? Qe(y) : g || Qe(")"), this.nestingOptionsSeparator = f || ",", this.maxReplaces = m || 1e3, this.alwaysFormat = u !== void 0 ? u : !1, this.resetRegExp();
2652
+ this.escape = r !== void 0 ? r : nu, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = s ? Qe(s) : i || "{{", this.suffix = o ? Qe(o) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = d ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = b ? Qe(b) : S || Qe("$t("), this.nestingSuffix = y ? Qe(y) : g || Qe(")"), this.nestingOptionsSeparator = f || ",", this.maxReplaces = m || 1e3, this.alwaysFormat = u !== void 0 ? u : !1, this.resetRegExp();
2653
2653
  }
2654
2654
  reset() {
2655
2655
  this.options && this.init(this.options);
@@ -2712,17 +2712,17 @@ class lu {
2712
2712
  const d = this.nestingOptionsSeparator;
2713
2713
  if (c.indexOf(d) < 0) return c;
2714
2714
  const p = c.split(new RegExp(`${d}[ ]*{`));
2715
- let w = `{${p[1]}`;
2716
- c = p[0], w = this.interpolate(w, i);
2717
- const S = w.match(/'/g), y = w.match(/"/g);
2718
- (((S == null ? void 0 : S.length) ?? 0) % 2 === 0 && !y || y.length % 2 !== 0) && (w = w.replace(/'/g, '"'));
2715
+ let b = `{${p[1]}`;
2716
+ c = p[0], b = this.interpolate(b, i);
2717
+ const S = b.match(/'/g), y = b.match(/"/g);
2718
+ (((S == null ? void 0 : S.length) ?? 0) % 2 === 0 && !y || y.length % 2 !== 0) && (b = b.replace(/'/g, '"'));
2719
2719
  try {
2720
- i = JSON.parse(w), l && (i = {
2720
+ i = JSON.parse(b), l && (i = {
2721
2721
  ...l,
2722
2722
  ...i
2723
2723
  });
2724
2724
  } catch (g) {
2725
- return this.logger.warn(`failed parsing options string in nesting for key ${c}`, g), `${c}${d}${w}`;
2725
+ return this.logger.warn(`failed parsing options string in nesting for key ${c}`, g), `${c}${d}${b}`;
2726
2726
  }
2727
2727
  return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, c;
2728
2728
  };
@@ -2839,10 +2839,10 @@ class fu {
2839
2839
  formatOptions: d
2840
2840
  } = du(c);
2841
2841
  if (this.formats[l]) {
2842
- let w = o;
2842
+ let b = o;
2843
2843
  try {
2844
2844
  const S = ((p = a == null ? void 0 : a.formatParams) == null ? void 0 : p[a.interpolationkey]) || {}, y = S.locale || S.lng || a.locale || a.lng || n;
2845
- w = this.formats[l](o, y, {
2845
+ b = this.formats[l](o, y, {
2846
2846
  ...d,
2847
2847
  ...a,
2848
2848
  ...S
@@ -2850,7 +2850,7 @@ class fu {
2850
2850
  } catch (S) {
2851
2851
  this.logger.warn(S);
2852
2852
  }
2853
- return w;
2853
+ return b;
2854
2854
  } else
2855
2855
  this.logger.warn(`there was no format function for ${l}`);
2856
2856
  return o;
@@ -2871,8 +2871,8 @@ class mu extends xr {
2871
2871
  return e.forEach((l) => {
2872
2872
  let d = !0;
2873
2873
  r.forEach((p) => {
2874
- const w = `${l}|${p}`;
2875
- !n.reload && this.store.hasResourceBundle(l, p) ? this.state[w] = 2 : this.state[w] < 0 || (this.state[w] === 1 ? i[w] === void 0 && (i[w] = !0) : (this.state[w] = 1, d = !1, i[w] === void 0 && (i[w] = !0), s[w] === void 0 && (s[w] = !0), c[p] === void 0 && (c[p] = !0)));
2874
+ const b = `${l}|${p}`;
2875
+ !n.reload && this.store.hasResourceBundle(l, p) ? this.state[b] = 2 : this.state[b] < 0 || (this.state[b] === 1 ? i[b] === void 0 && (i[b] = !0) : (this.state[b] = 1, d = !1, i[b] === void 0 && (i[b] = !0), s[b] === void 0 && (s[b] = !0), c[p] === void 0 && (c[p] = !0)));
2876
2876
  }), d || (o[l] = !0);
2877
2877
  }), (Object.keys(s).length || Object.keys(i).length) && this.queue.push({
2878
2878
  pending: i,
@@ -2970,7 +2970,7 @@ class mu extends xr {
2970
2970
  });
2971
2971
  }
2972
2972
  saveMissing(e, r, n, a, s) {
2973
- var c, l, d, p, w;
2973
+ var c, l, d, p, b;
2974
2974
  let i = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, o = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
2975
2975
  };
2976
2976
  if ((l = (c = this.services) == null ? void 0 : c.utils) != null && l.hasLoadedNamespace && !((p = (d = this.services) == null ? void 0 : d.utils) != null && p.hasLoadedNamespace(r))) {
@@ -2978,7 +2978,7 @@ class mu extends xr {
2978
2978
  return;
2979
2979
  }
2980
2980
  if (!(n == null || n === "")) {
2981
- if ((w = this.backend) != null && w.create) {
2981
+ if ((b = this.backend) != null && b.create) {
2982
2982
  const S = {
2983
2983
  ...i,
2984
2984
  isUpdate: s
@@ -3095,17 +3095,17 @@ class $t extends xr {
3095
3095
  this.modules.formatter ? d = this.modules.formatter : d = fu;
3096
3096
  const p = new da(this.options);
3097
3097
  this.store = new ca(this.options.resources, this.options);
3098
- const w = this.services;
3099
- w.logger = ke, w.resourceStore = this.store, w.languageUtils = p, w.pluralResolver = new uu(p, {
3098
+ const b = this.services;
3099
+ b.logger = ke, b.resourceStore = this.store, b.languageUtils = p, b.pluralResolver = new uu(p, {
3100
3100
  prepend: this.options.pluralSeparator,
3101
3101
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3102
- }), d && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (w.formatter = s(d), w.formatter.init(w, this.options), this.options.interpolation.format = w.formatter.format.bind(w.formatter)), w.interpolator = new lu(this.options), w.utils = {
3102
+ }), d && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (b.formatter = s(d), b.formatter.init(b, this.options), this.options.interpolation.format = b.formatter.format.bind(b.formatter)), b.interpolator = new lu(this.options), b.utils = {
3103
3103
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3104
- }, w.backendConnector = new mu(s(this.modules.backend), w.resourceStore, w, this.options), w.backendConnector.on("*", function(S) {
3104
+ }, b.backendConnector = new mu(s(this.modules.backend), b.resourceStore, b, this.options), b.backendConnector.on("*", function(S) {
3105
3105
  for (var y = arguments.length, g = new Array(y > 1 ? y - 1 : 0), f = 1; f < y; f++)
3106
3106
  g[f - 1] = arguments[f];
3107
3107
  e.emit(S, ...g);
3108
- }), this.modules.languageDetector && (w.languageDetector = s(this.modules.languageDetector), w.languageDetector.init && w.languageDetector.init(w, this.options.detection, this.options)), this.modules.i18nFormat && (w.i18nFormat = s(this.modules.i18nFormat), w.i18nFormat.init && w.i18nFormat.init(this)), this.translator = new Or(this.services, this.options), this.translator.on("*", function(S) {
3108
+ }), this.modules.languageDetector && (b.languageDetector = s(this.modules.languageDetector), b.languageDetector.init && b.languageDetector.init(b, this.options.detection, this.options)), this.modules.i18nFormat && (b.i18nFormat = s(this.modules.i18nFormat), b.i18nFormat.init && b.i18nFormat.init(this)), this.translator = new Or(this.services, this.options), this.translator.on("*", function(S) {
3109
3109
  for (var y = arguments.length, g = new Array(y > 1 ? y - 1 : 0), f = 1; f < y; f++)
3110
3110
  g[f - 1] = arguments[f];
3111
3111
  e.emit(S, ...g);
@@ -3127,8 +3127,8 @@ class $t extends xr {
3127
3127
  };
3128
3128
  });
3129
3129
  const c = yt(), l = () => {
3130
- const d = (p, w) => {
3131
- this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), c.resolve(w), n(p, w);
3130
+ const d = (p, b) => {
3131
+ this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), c.resolve(b), n(p, b);
3132
3132
  };
3133
3133
  if (this.languages && !this.isInitialized) return d(null, this.t.bind(this));
3134
3134
  this.changeLanguage(this.options.lng, d);
@@ -3191,8 +3191,8 @@ class $t extends xr {
3191
3191
  var d, p;
3192
3192
  !e && !c && this.services.languageDetector && (c = []);
3193
3193
  const l = W(c) ? c : this.services.languageUtils.getBestMatchFromCodes(c);
3194
- l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), (p = (d = this.services.languageDetector) == null ? void 0 : d.cacheUserLanguage) == null || p.call(d, l)), this.loadResources(l, (w) => {
3195
- i(w, l);
3194
+ l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), (p = (d = this.services.languageDetector) == null ? void 0 : d.cacheUserLanguage) == null || p.call(d, l)), this.loadResources(l, (b) => {
3195
+ i(b, l);
3196
3196
  });
3197
3197
  };
3198
3198
  return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), a;
@@ -3210,9 +3210,9 @@ class $t extends xr {
3210
3210
  ...o
3211
3211
  };
3212
3212
  c.lng = c.lng || s.lng, c.lngs = c.lngs || s.lngs, c.ns = c.ns || s.ns, c.keyPrefix !== "" && (c.keyPrefix = c.keyPrefix || n || s.keyPrefix);
3213
- const w = a.options.keySeparator || ".";
3213
+ const b = a.options.keySeparator || ".";
3214
3214
  let S;
3215
- return c.keyPrefix && Array.isArray(i) ? S = i.map((y) => `${c.keyPrefix}${w}${y}`) : S = c.keyPrefix ? `${c.keyPrefix}${w}${i}` : i, a.t(S, c);
3215
+ return c.keyPrefix && Array.isArray(i) ? S = i.map((y) => `${c.keyPrefix}${b}${y}`) : S = c.keyPrefix ? `${c.keyPrefix}${b}${i}` : i, a.t(S, c);
3216
3216
  };
3217
3217
  return W(e) ? s.lng = e : s.lngs = e, s.ns = r, s.keyPrefix = n, s;
3218
3218
  }
@@ -3336,14 +3336,14 @@ const {
3336
3336
  slice: gu,
3337
3337
  forEach: yu
3338
3338
  } = [];
3339
- function wu(t) {
3339
+ function bu(t) {
3340
3340
  return yu.call(gu.call(arguments, 1), (e) => {
3341
3341
  if (e)
3342
3342
  for (const r in e)
3343
3343
  t[r] === void 0 && (t[r] = e[r]);
3344
3344
  }), t;
3345
3345
  }
3346
- function bu(t) {
3346
+ function wu(t) {
3347
3347
  return typeof t != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((r) => r.test(t));
3348
3348
  }
3349
3349
  const ya = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, vu = function(t, e) {
@@ -3389,7 +3389,7 @@ const ya = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, vu = function(t, e) {
3389
3389
  throw new TypeError("option sameSite is invalid");
3390
3390
  }
3391
3391
  return n.partitioned && (s += "; Partitioned"), s;
3392
- }, wa = {
3392
+ }, ba = {
3393
3393
  create(t, e, r, n) {
3394
3394
  let a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
3395
3395
  path: "/",
@@ -3418,7 +3418,7 @@ var Eu = {
3418
3418
  lookupCookie: e
3419
3419
  } = t;
3420
3420
  if (e && typeof document < "u")
3421
- return wa.read(e) || void 0;
3421
+ return ba.read(e) || void 0;
3422
3422
  },
3423
3423
  // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
3424
3424
  cacheUserLanguage(t, e) {
@@ -3428,7 +3428,7 @@ var Eu = {
3428
3428
  cookieDomain: a,
3429
3429
  cookieOptions: s
3430
3430
  } = e;
3431
- r && typeof document < "u" && wa.create(r, t, n, a, s);
3431
+ r && typeof document < "u" && ba.create(r, t, n, a, s);
3432
3432
  }
3433
3433
  }, _u = {
3434
3434
  name: "querystring",
@@ -3484,7 +3484,7 @@ var Eu = {
3484
3484
  }
3485
3485
  };
3486
3486
  let et = null;
3487
- const ba = () => {
3487
+ const wa = () => {
3488
3488
  if (et !== null) return et;
3489
3489
  try {
3490
3490
  if (et = typeof window < "u" && window.localStorage !== null, !et)
@@ -3503,7 +3503,7 @@ var $u = {
3503
3503
  let {
3504
3504
  lookupLocalStorage: e
3505
3505
  } = t;
3506
- if (e && ba())
3506
+ if (e && wa())
3507
3507
  return window.localStorage.getItem(e) || void 0;
3508
3508
  },
3509
3509
  // Deconstruct the options object and extract the lookupLocalStorage property
@@ -3511,7 +3511,7 @@ var $u = {
3511
3511
  let {
3512
3512
  lookupLocalStorage: r
3513
3513
  } = e;
3514
- r && ba() && window.localStorage.setItem(r, t);
3514
+ r && wa() && window.localStorage.setItem(r, t);
3515
3515
  }
3516
3516
  };
3517
3517
  let tt = null;
@@ -3622,7 +3622,7 @@ class Ti {
3622
3622
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
3623
3623
  languageUtils: {}
3624
3624
  }, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3625
- this.services = e, this.options = wu(r, this.options || {}, Nu()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (a) => a.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Eu), this.addDetector(_u), this.addDetector($u), this.addDetector(Ru), this.addDetector(Pu), this.addDetector(Ou), this.addDetector(Au), this.addDetector(Tu), this.addDetector(Su);
3625
+ this.services = e, this.options = bu(r, this.options || {}, Nu()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (a) => a.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Eu), this.addDetector(_u), this.addDetector($u), this.addDetector(Ru), this.addDetector(Pu), this.addDetector(Ou), this.addDetector(Au), this.addDetector(Tu), this.addDetector(Su);
3626
3626
  }
3627
3627
  addDetector(e) {
3628
3628
  return this.detectors[e.name] = e, this;
@@ -3634,7 +3634,7 @@ class Ti {
3634
3634
  let a = this.detectors[n].lookup(this.options);
3635
3635
  a && typeof a == "string" && (a = [a]), a && (r = r.concat(a));
3636
3636
  }
3637
- }), r = r.filter((n) => n != null && !bu(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? r : r.length > 0 ? r[0] : null;
3637
+ }), r = r.filter((n) => n != null && !wu(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? r : r.length > 0 ? r[0] : null;
3638
3638
  }
3639
3639
  cacheUserLanguage(e) {
3640
3640
  let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
@@ -3644,7 +3644,7 @@ class Ti {
3644
3644
  }
3645
3645
  }
3646
3646
  Ti.type = "languageDetector";
3647
- const Du = process.env.PUBLIC_URL ?? "/", De = "/openmrs/ws/fhir2/R4", ce = "/openmrs/ws/rest/v1", Cu = "bahmni.user", wy = "/bahmni/home/index.html", Iu = ce + "/bahmnicore/whoami", ku = ce + "/bahmniie/form/latestPublishedForms", by = (t) => ce + `/user/${t}?v=full`, Lu = ce + "/bahmnicore/visitLocation/", Mu = "en", Ni = "NG_TRANSLATE_LANG_KEY", xu = (t, e) => Du + `${t}/locales/locale_${e}.json`, qu = (t, e) => `/bahmni_config/openmrs/i18n/${t}/locale_${e}.json`, qr = () => localStorage.getItem(Ni) ?? Mu, Ea = async (t) => {
3647
+ const Du = process.env.PUBLIC_URL ?? "/", De = "/openmrs/ws/fhir2/R4", ce = "/openmrs/ws/rest/v1", Cu = "bahmni.user", by = "/bahmni/home/index.html", Iu = ce + "/bahmnicore/whoami", ku = ce + "/bahmniie/form/latestPublishedForms", wy = (t) => ce + `/user/${t}?v=full`, Lu = ce + "/bahmnicore/visitLocation/", Mu = "en", Ni = "NG_TRANSLATE_LANG_KEY", xu = (t, e) => Du + `${t}/locales/locale_${e}.json`, qu = (t, e) => `/bahmni_config/openmrs/i18n/${t}/locale_${e}.json`, qr = () => localStorage.getItem(Ni) ?? Mu, Ea = async (t) => {
3648
3648
  try {
3649
3649
  const e = await Q(t);
3650
3650
  return e || (console.error(`Invalid response from ${t}`), {});
@@ -3954,7 +3954,7 @@ const tl = {
3954
3954
  const a = tl[t];
3955
3955
  return typeof a == "string" ? n = a : e === 1 ? n = a.one : n = a.other.replace("{{count}}", e.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + n : n + " ago" : n;
3956
3956
  };
3957
- function be(t) {
3957
+ function we(t) {
3958
3958
  return (e = {}) => {
3959
3959
  const r = e.width ? String(e.width) : t.defaultWidth;
3960
3960
  return t.formats[r] || t.formats[t.defaultWidth];
@@ -3976,15 +3976,15 @@ const rl = {
3976
3976
  medium: "{{date}}, {{time}}",
3977
3977
  short: "{{date}}, {{time}}"
3978
3978
  }, sl = {
3979
- date: be({
3979
+ date: we({
3980
3980
  formats: rl,
3981
3981
  defaultWidth: "full"
3982
3982
  }),
3983
- time: be({
3983
+ time: we({
3984
3984
  formats: nl,
3985
3985
  defaultWidth: "full"
3986
3986
  }),
3987
- dateTime: be({
3987
+ dateTime: we({
3988
3988
  formats: al,
3989
3989
  defaultWidth: "full"
3990
3990
  })
@@ -4202,11 +4202,11 @@ function Ur(t) {
4202
4202
  return { value: i, rest: o };
4203
4203
  };
4204
4204
  }
4205
- const gl = /^(\d+)(th|st|nd|rd)?/i, yl = /\d+/i, wl = {
4205
+ const gl = /^(\d+)(th|st|nd|rd)?/i, yl = /\d+/i, bl = {
4206
4206
  narrow: /^(b|a)/i,
4207
4207
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
4208
4208
  wide: /^(before christ|before common era|anno domini|common era)/i
4209
- }, bl = {
4209
+ }, wl = {
4210
4210
  any: [/^b/i, /^(a|c)/i]
4211
4211
  }, vl = {
4212
4212
  narrow: /^[1234]/i,
@@ -4276,9 +4276,9 @@ const gl = /^(\d+)(th|st|nd|rd)?/i, yl = /\d+/i, wl = {
4276
4276
  valueCallback: (t) => parseInt(t, 10)
4277
4277
  }),
4278
4278
  era: fe({
4279
- matchPatterns: wl,
4279
+ matchPatterns: bl,
4280
4280
  defaultMatchWidth: "wide",
4281
- parsePatterns: bl,
4281
+ parsePatterns: wl,
4282
4282
  defaultParseWidth: "any"
4283
4283
  }),
4284
4284
  quarter: fe({
@@ -4327,8 +4327,8 @@ function Tl(t, e) {
4327
4327
  return Math.round(n / Ci) + 1;
4328
4328
  }
4329
4329
  function Hi(t, e) {
4330
- var d, p, w, S;
4331
- const r = oe(t, e == null ? void 0 : e.in), n = r.getFullYear(), a = jr(), s = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((p = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : p.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((S = (w = a.locale) == null ? void 0 : w.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, i = Oe((e == null ? void 0 : e.in) || t, 0);
4330
+ var d, p, b, S;
4331
+ const r = oe(t, e == null ? void 0 : e.in), n = r.getFullYear(), a = jr(), s = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((p = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : p.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((S = (b = a.locale) == null ? void 0 : b.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, i = Oe((e == null ? void 0 : e.in) || t, 0);
4332
4332
  i.setFullYear(n + 1, 0, s), i.setHours(0, 0, 0, 0);
4333
4333
  const o = Rt(i, e), c = Oe((e == null ? void 0 : e.in) || t, 0);
4334
4334
  c.setFullYear(n, 0, s), c.setHours(0, 0, 0, 0);
@@ -5040,15 +5040,15 @@ function Ul(t, e, r) {
5040
5040
  }
5041
5041
  const Fl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Vl = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Hl = /^'([^]*?)'?$/, Bl = /''/g, zl = /[a-zA-Z]/;
5042
5042
  function Wl(t, e, r) {
5043
- var d, p, w, S, y, g, f, m;
5044
- const n = jr(), a = (r == null ? void 0 : r.locale) ?? n.locale ?? Vi, s = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((p = (d = r == null ? void 0 : r.locale) == null ? void 0 : d.options) == null ? void 0 : p.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((S = (w = n.locale) == null ? void 0 : w.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, i = (r == null ? void 0 : r.weekStartsOn) ?? ((g = (y = r == null ? void 0 : r.locale) == null ? void 0 : y.options) == null ? void 0 : g.weekStartsOn) ?? n.weekStartsOn ?? ((m = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : m.weekStartsOn) ?? 0, o = oe(t, r == null ? void 0 : r.in);
5043
+ var d, p, b, S, y, g, f, m;
5044
+ const n = jr(), a = (r == null ? void 0 : r.locale) ?? n.locale ?? Vi, s = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((p = (d = r == null ? void 0 : r.locale) == null ? void 0 : d.options) == null ? void 0 : p.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((S = (b = n.locale) == null ? void 0 : b.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, i = (r == null ? void 0 : r.weekStartsOn) ?? ((g = (y = r == null ? void 0 : r.locale) == null ? void 0 : y.options) == null ? void 0 : g.weekStartsOn) ?? n.weekStartsOn ?? ((m = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : m.weekStartsOn) ?? 0, o = oe(t, r == null ? void 0 : r.in);
5045
5045
  if (!Nt(o))
5046
5046
  throw new RangeError("Invalid time value");
5047
5047
  let c = e.match(Vl).map((u) => {
5048
5048
  const h = u[0];
5049
5049
  if (h === "p" || h === "P") {
5050
- const b = Il[h];
5051
- return b(u, a.formatLong);
5050
+ const w = Il[h];
5051
+ return w(u, a.formatLong);
5052
5052
  }
5053
5053
  return u;
5054
5054
  }).join("").match(Fl).map((u) => {
@@ -5075,8 +5075,8 @@ function Wl(t, e, r) {
5075
5075
  if (!u.isToken) return u.value;
5076
5076
  const h = u.value;
5077
5077
  (!(r != null && r.useAdditionalWeekYearTokens) && ql(h) || !(r != null && r.useAdditionalDayOfYearTokens) && xl(h)) && jl(h, e, String(t));
5078
- const b = Pa[h[0]];
5079
- return b(o, h, a.localize, l);
5078
+ const w = Pa[h[0]];
5079
+ return w(o, h, a.localize, l);
5080
5080
  }).join("");
5081
5081
  }
5082
5082
  function Gl(t) {
@@ -5155,7 +5155,7 @@ function rd(t, e) {
5155
5155
  if (e === null) return /* @__PURE__ */ new Date(NaN);
5156
5156
  const r = t.match(Xl);
5157
5157
  if (!r) return /* @__PURE__ */ new Date(NaN);
5158
- const n = !!r[4], a = wt(r[1]), s = wt(r[2]) - 1, i = wt(r[3]), o = wt(r[4]), c = wt(r[5]) - 1;
5158
+ const n = !!r[4], a = bt(r[1]), s = bt(r[2]) - 1, i = bt(r[3]), o = bt(r[4]), c = bt(r[5]) - 1;
5159
5159
  if (n)
5160
5160
  return ud(e, o, c) ? sd(e, o, c) : /* @__PURE__ */ new Date(NaN);
5161
5161
  {
@@ -5163,7 +5163,7 @@ function rd(t, e) {
5163
5163
  return !od(e, s, i) || !cd(e, a) ? /* @__PURE__ */ new Date(NaN) : (l.setUTCFullYear(e, s, Math.max(a, i)), l);
5164
5164
  }
5165
5165
  }
5166
- function wt(t) {
5166
+ function bt(t) {
5167
5167
  return t ? parseInt(t) : 1;
5168
5168
  }
5169
5169
  function nd(t) {
@@ -5392,15 +5392,15 @@ const Na = {
5392
5392
  medium: "{{date}} {{time}}",
5393
5393
  short: "{{date}} {{time}}"
5394
5394
  }, gd = {
5395
- date: be({
5395
+ date: we({
5396
5396
  formats: hd,
5397
5397
  defaultWidth: "full"
5398
5398
  }),
5399
- time: be({
5399
+ time: we({
5400
5400
  formats: md,
5401
5401
  defaultWidth: "full"
5402
5402
  }),
5403
- dateTime: be({
5403
+ dateTime: we({
5404
5404
  formats: pd,
5405
5405
  defaultWidth: "full"
5406
5406
  })
@@ -5411,7 +5411,7 @@ const Na = {
5411
5411
  tomorrow: "'morgen um' p",
5412
5412
  nextWeek: "eeee 'um' p",
5413
5413
  other: "P"
5414
- }, wd = (t, e, r, n) => yd[t], bd = {
5414
+ }, bd = (t, e, r, n) => yd[t], wd = {
5415
5415
  narrow: ["v.Chr.", "n.Chr."],
5416
5416
  abbreviated: ["v.Chr.", "n.Chr."],
5417
5417
  wide: ["vor Christus", "nach Christus"]
@@ -5544,7 +5544,7 @@ const Na = {
5544
5544
  }, Rd = (t) => Number(t) + ".", Pd = {
5545
5545
  ordinalNumber: Rd,
5546
5546
  era: de({
5547
- values: bd,
5547
+ values: wd,
5548
5548
  defaultWidth: "wide"
5549
5549
  }),
5550
5550
  quarter: de({
@@ -5677,7 +5677,7 @@ const Na = {
5677
5677
  code: "de",
5678
5678
  formatDistance: fd,
5679
5679
  formatLong: gd,
5680
- formatRelative: wd,
5680
+ formatRelative: bd,
5681
5681
  localize: Pd,
5682
5682
  match: jd,
5683
5683
  options: {
@@ -5700,15 +5700,15 @@ const Na = {
5700
5700
  medium: "{{date}}, {{time}}",
5701
5701
  short: "{{date}}, {{time}}"
5702
5702
  }, Hd = {
5703
- date: be({
5703
+ date: we({
5704
5704
  formats: Ud,
5705
5705
  defaultWidth: "full"
5706
5706
  }),
5707
- time: be({
5707
+ time: we({
5708
5708
  formats: Fd,
5709
5709
  defaultWidth: "full"
5710
5710
  }),
5711
- dateTime: be({
5711
+ dateTime: we({
5712
5712
  formats: Vd,
5713
5713
  defaultWidth: "full"
5714
5714
  })
@@ -5805,15 +5805,15 @@ const Na = {
5805
5805
  medium: "{{date}}, {{time}}",
5806
5806
  short: "{{date}}, {{time}}"
5807
5807
  }, Yd = {
5808
- date: be({
5808
+ date: we({
5809
5809
  formats: Wd,
5810
5810
  defaultWidth: "full"
5811
5811
  }),
5812
- time: be({
5812
+ time: we({
5813
5813
  formats: Gd,
5814
5814
  defaultWidth: "full"
5815
5815
  }),
5816
- dateTime: be({
5816
+ dateTime: we({
5817
5817
  formats: Kd,
5818
5818
  defaultWidth: "full"
5819
5819
  })
@@ -6026,10 +6026,10 @@ const Na = {
6026
6026
  }, yf = {
6027
6027
  narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],
6028
6028
  any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i]
6029
- }, wf = {
6029
+ }, bf = {
6030
6030
  narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,
6031
6031
  any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i
6032
- }, bf = {
6032
+ }, wf = {
6033
6033
  any: {
6034
6034
  am: /^a/i,
6035
6035
  pm: /^p/i,
@@ -6074,9 +6074,9 @@ const Na = {
6074
6074
  defaultParseWidth: "any"
6075
6075
  }),
6076
6076
  dayPeriod: fe({
6077
- matchPatterns: wf,
6077
+ matchPatterns: bf,
6078
6078
  defaultMatchWidth: "any",
6079
- parsePatterns: bf,
6079
+ parsePatterns: wf,
6080
6080
  defaultParseWidth: "any"
6081
6081
  })
6082
6082
  }, Ia = {
@@ -6172,15 +6172,15 @@ const Na = {
6172
6172
  medium: "{{date}}, {{time}}",
6173
6173
  short: "{{date}}, {{time}}"
6174
6174
  }, Pf = {
6175
- date: be({
6175
+ date: we({
6176
6176
  formats: Sf,
6177
6177
  defaultWidth: "full"
6178
6178
  }),
6179
- time: be({
6179
+ time: we({
6180
6180
  formats: $f,
6181
6181
  defaultWidth: "full"
6182
6182
  }),
6183
- dateTime: be({
6183
+ dateTime: we({
6184
6184
  formats: Rf,
6185
6185
  defaultWidth: "full"
6186
6186
  })
@@ -6585,13 +6585,13 @@ function Ty(t, e) {
6585
6585
  day: "2-digit",
6586
6586
  month: "short",
6587
6587
  year: "numeric"
6588
- }).formatToParts(r), s = (l = a.find((w) => w.type === "day")) == null ? void 0 : l.value, i = (d = a.find((w) => w.type === "month")) == null ? void 0 : d.value, o = (p = a.find((w) => w.type === "year")) == null ? void 0 : p.value;
6588
+ }).formatToParts(r), s = (l = a.find((b) => b.type === "day")) == null ? void 0 : l.value, i = (d = a.find((b) => b.type === "month")) == null ? void 0 : d.value, o = (p = a.find((b) => b.type === "year")) == null ? void 0 : p.value;
6589
6589
  let c = `${s} ${i} ${o}`;
6590
6590
  if (e) {
6591
- let w = r.getHours();
6592
- const S = String(r.getMinutes()).padStart(2, "0"), y = w >= 12 ? "PM" : "AM";
6593
- w = w % 12 || 12;
6594
- const g = `${w}:${S} ${y}`;
6591
+ let b = r.getHours();
6592
+ const S = String(r.getMinutes()).padStart(2, "0"), y = b >= 12 ? "PM" : "AM";
6593
+ b = b % 12 || 12;
6594
+ const g = `${b}:${S} ${y}`;
6595
6595
  c += ` ${g}`;
6596
6596
  }
6597
6597
  return c;
@@ -6743,10 +6743,10 @@ const Qi = () => {
6743
6743
  }, Zi = ce + "/idgen/identifiertype", ch = (t) => ce + `/bahmni/app/setting?module=${t}`, uh = "bahmni.primaryIdentifierType", lh = ce + "/bahmnicore/patientprofile", dh = (t) => ce + `/bahmnicore/patientprofile/${t}`, fh = ce + "/visit", hh = (t) => ce + `/visit?includeInactive=false&patient=${t}&v=custom:(uuid,visitType,location:(uuid))`, mh = (t) => Lu + `${t}`, ph = (t, e, r = 20, n) => {
6744
6744
  let a = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${t}&limit=${r}&searchString=${encodeURIComponent(e)}`;
6745
6745
  return n && (a += `&parent=${n}`), a;
6746
- }, gh = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", yh = 20, wh = 2, Fy = 120, Vy = 50, Hy = 15, bh = /^[a-f0-9-]{36}$/i, vh = () => ce + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Eh = ce + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", _h = async (t) => {
6746
+ }, gh = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", yh = 20, bh = 2, Fy = 120, Vy = 50, Hy = 15, wh = /^[a-f0-9-]{36}$/i, vh = () => ce + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Eh = ce + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", _h = async (t) => {
6747
6747
  if (!t || t.trim() === "")
6748
6748
  throw new Error("Invalid patient UUID: UUID cannot be empty");
6749
- if (!bh.test(t))
6749
+ if (!wh.test(t))
6750
6750
  throw new Error(`Invalid patient UUID format: ${t}`);
6751
6751
  return Q(sh(t));
6752
6752
  }, Sh = (t) => !t.extension || !Array.isArray(t.extension) ? [] : t.extension.flatMap((e) => e.extension && Array.isArray(e.extension) ? e.extension.filter((r) => r.valueString).map((r) => r.valueString) : []), $h = (t) => {
@@ -6831,7 +6831,7 @@ const Qi = () => {
6831
6831
  );
6832
6832
  return Object.values(t);
6833
6833
  }, Qy = async (t, e, r = yh, n) => {
6834
- if (!e || e.length < wh)
6834
+ if (!e || e.length < bh)
6835
6835
  return [];
6836
6836
  try {
6837
6837
  return await Q(
@@ -6842,16 +6842,16 @@ const Qi = () => {
6842
6842
  `Failed to fetch address hierarchy for field "${t}": ${a instanceof Error ? a.message : "Unknown error"}`
6843
6843
  );
6844
6844
  }
6845
- }, Zy = async () => Q(vh()), ew = async (t) => mt(fh, t), tw = async (t) => Q(hh(t)), rw = async (t) => Q(mh(t)), nw = async () => Q(gh), aw = async () => Q(Eh);
6845
+ }, Zy = async () => Q(vh()), eb = async (t) => mt(fh, t), tb = async (t) => Q(hh(t)), rb = async (t) => Q(mh(t)), nb = async () => Q(gh), ab = async () => Q(Eh);
6846
6846
  var Th = /* @__PURE__ */ ((t) => (t.BOOLEAN = "java.lang.Boolean", t.BOOLEAN_DATATYPE = "org.openmrs.customdatatype.datatype.BooleanDatatype", t.CONCEPT = "org.openmrs.Concept", t.CODED_CONCEPT = "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype", t.CONCEPT_DATATYPE = "org.openmrs.customdatatype.datatype.ConceptDatatype", t.STRING = "java.lang.String", t.FREE_TEXT = "org.openmrs.customdatatype.datatype.FreeTextDatatype", t.REGEX_VALIDATED_TEXT = "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", t.INTEGER = "java.lang.Integer", t.FLOAT = "java.lang.Float", t.ATTRIBUTABLE_DATE = "org.openmrs.util.AttributableDate", t.DATE_DATATYPE = "org.openmrs.customdatatype.datatype.DateDatatype", t))(Th || {}), Nh = /* @__PURE__ */ ((t) => (t.CHECKBOX = "checkbox", t.DROPDOWN = "dropdown", t.TEXT = "text", t.NUMBER = "number", t.DATE = "date", t))(Nh || {});
6847
- const sw = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype" ? "checkbox" : t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype" ? "dropdown" : t === "java.lang.Integer" || t === "java.lang.Float" ? "number" : t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype" ? "date" : "text", iw = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype", ow = (t) => t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype", cw = (t) => t === "java.lang.Integer" || t === "java.lang.Float", uw = (t) => t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype", lw = (t) => t === "java.lang.String" || t === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || t === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", Dh = ce + "/appointments/search", eo = ce + "/appointments", dw = async (t) => await mt(
6847
+ const sb = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype" ? "checkbox" : t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype" ? "dropdown" : t === "java.lang.Integer" || t === "java.lang.Float" ? "number" : t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype" ? "date" : "text", ib = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype", ob = (t) => t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype", cb = (t) => t === "java.lang.Integer" || t === "java.lang.Float", ub = (t) => t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype", lb = (t) => t === "java.lang.String" || t === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || t === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", Dh = ce + "/appointments/search", eo = ce + "/appointments", db = async (t) => await mt(
6848
6848
  Dh,
6849
6849
  t
6850
- ), fw = async (t, e, r) => await mt(
6850
+ ), fb = async (t, e, r) => await mt(
6851
6851
  `${eo}/${t}/status-change`,
6852
6852
  { toStatus: e, onDate: r }
6853
6853
  );
6854
- async function hw(t) {
6854
+ async function hb(t) {
6855
6855
  return await Q(`${eo}/${t}`);
6856
6856
  }
6857
6857
  const Ch = () => {
@@ -6883,7 +6883,7 @@ const Ch = () => {
6883
6883
  );
6884
6884
  }
6885
6885
  };
6886
- }, an = Ch(), Ih = (t) => De + `/ValueSet/${t}/$expand`, kh = (t) => De + `/ValueSet/$expand?filter=${encodeURIComponent(t)}`, Lh = (t, e, r) => ce + `/bahmni/terminologies/concepts?limit=${e}&locale=${r}&term=${t}`, Mh = (t) => ce + `/concept/${t}`, mw = async (t, e = 20) => {
6886
+ }, an = Ch(), Ih = (t) => De + `/ValueSet/${t}/$expand`, kh = (t) => De + `/ValueSet/$expand?filter=${encodeURIComponent(t)}`, Lh = (t, e, r) => ce + `/bahmni/terminologies/concepts?limit=${e}&locale=${r}&term=${t}`, Mh = (t) => ce + `/concept/${t}`, mb = async (t, e = 20) => {
6887
6887
  const r = qr(), n = Lh(t, e, r);
6888
6888
  return Q(n);
6889
6889
  }, Er = async (t) => {
@@ -6893,7 +6893,7 @@ const Ch = () => {
6893
6893
  const e = `${kh(t)}`;
6894
6894
  return Q(e);
6895
6895
  };
6896
- async function pw(t) {
6896
+ async function pb(t) {
6897
6897
  return await Q(Mh(t));
6898
6898
  }
6899
6899
  const qh = (t) => De + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_lastUpdated`, nt = {
@@ -6919,7 +6919,7 @@ const qh = (t) => De + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
6919
6919
  var a;
6920
6920
  const r = ((a = t.expansion) == null ? void 0 : a.contains) ?? [];
6921
6921
  return Uh(r).map((s) => Fh(s, e));
6922
- }, gw = async (t, e, r) => {
6922
+ }, gb = async (t, e, r) => {
6923
6923
  const n = t ?? nt.MEDICATION.code, a = e ?? nt.FOOD.code, s = r ?? nt.ENVIRONMENT.code, [i, o, c] = await Promise.all([
6924
6924
  Er(n),
6925
6925
  Er(a),
@@ -6939,7 +6939,7 @@ const qh = (t) => De + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
6939
6939
  nt.ENVIRONMENT.display
6940
6940
  )
6941
6941
  ];
6942
- }, yw = async (t) => {
6942
+ }, yb = async (t) => {
6943
6943
  var n, a;
6944
6944
  const e = t ?? jh.code;
6945
6945
  return ((a = (n = (await Er(e)).compose) == null ? void 0 : n.include[0]) == null ? void 0 : a.concept) ?? [];
@@ -6955,7 +6955,7 @@ async function Hh(t) {
6955
6955
  }
6956
6956
  function Bh(t) {
6957
6957
  return t.map((e) => {
6958
- var a, s, i, o, c, l, d, p, w;
6958
+ var a, s, i, o, c, l, d, p, b;
6959
6959
  const r = ((i = (s = (a = e.clinicalStatus) == null ? void 0 : a.coding) == null ? void 0 : s[0]) == null ? void 0 : i.display) ?? "Unknown", n = ((c = (o = e.reaction) == null ? void 0 : o[0]) == null ? void 0 : c.severity) ?? "Unknown";
6960
6960
  return {
6961
6961
  id: e.id,
@@ -6972,20 +6972,20 @@ function Bh(t) {
6972
6972
  severity: S.severity
6973
6973
  })),
6974
6974
  severity: n,
6975
- note: (w = e.note) == null ? void 0 : w.map((S) => S.text)
6975
+ note: (b = e.note) == null ? void 0 : b.map((S) => S.text)
6976
6976
  };
6977
6977
  });
6978
6978
  }
6979
- async function ww(t) {
6979
+ async function bb(t) {
6980
6980
  const e = await Hh(t);
6981
6981
  return Bh(e);
6982
6982
  }
6983
6983
  var zh = /* @__PURE__ */ ((t) => (t.Active = "Active", t.Inactive = "Inactive", t))(zh || {}), Wh = /* @__PURE__ */ ((t) => (t.mild = "mild", t.moderate = "moderate", t.severe = "severe", t))(Wh || {});
6984
- const bw = "http://fhir.openmrs.org/code-system/encounter-type", Gh = "problem-list-item", vw = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Kh = "encounter-diagnosis", Ew = "http://terminology.hl7.org/CodeSystem/condition-clinical", _w = "http://terminology.hl7.org/CodeSystem/condition-category", Yh = (t) => De + `/Condition?category=${Gh}&patient=${t}&_count=100&_sort=-_lastUpdated`;
6984
+ const wb = "http://fhir.openmrs.org/code-system/encounter-type", Gh = "problem-list-item", vb = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Kh = "encounter-diagnosis", Eb = "http://terminology.hl7.org/CodeSystem/condition-clinical", _b = "http://terminology.hl7.org/CodeSystem/condition-category", Yh = (t) => De + `/Condition?category=${Gh}&patient=${t}&_count=100&_sort=-_lastUpdated`;
6985
6985
  async function Jh(t) {
6986
6986
  return await Q(`${Yh(t)}`);
6987
6987
  }
6988
- async function Sw(t) {
6988
+ async function Sb(t) {
6989
6989
  var n;
6990
6990
  return ((n = (await Jh(t)).entry) == null ? void 0 : n.filter((a) => {
6991
6991
  var s;
@@ -7038,7 +7038,7 @@ function nm(t) {
7038
7038
  };
7039
7039
  });
7040
7040
  }
7041
- async function $w(t) {
7041
+ async function $b(t) {
7042
7042
  const e = await em(t);
7043
7043
  return nm(e);
7044
7044
  }
@@ -7120,7 +7120,7 @@ function hm(t) {
7120
7120
  function mm(t) {
7121
7121
  var r;
7122
7122
  return (((r = t.entry) == null ? void 0 : r.map((n) => n.resource)) ?? []).map((n) => {
7123
- var o, c, l, d, p, w;
7123
+ var o, c, l, d, p, b;
7124
7124
  const a = n.medicationReference, s = n.requester, i = sm(n);
7125
7125
  return {
7126
7126
  id: n.id,
@@ -7134,7 +7134,7 @@ function mm(t) {
7134
7134
  priority: n.priority ?? "",
7135
7135
  isImmediate: Ma(n),
7136
7136
  quantity: hm(n.dispenseRequest),
7137
- startDate: Ma(n) ? n.authoredOn : (w = (p = (d = (l = n.dosageInstruction) == null ? void 0 : l[0]) == null ? void 0 : d.timing) == null ? void 0 : p.event) == null ? void 0 : w[0],
7137
+ startDate: Ma(n) ? n.authoredOn : (b = (p = (d = (l = n.dosageInstruction) == null ? void 0 : l[0]) == null ? void 0 : d.timing) == null ? void 0 : p.event) == null ? void 0 : b[0],
7138
7138
  orderDate: n.authoredOn,
7139
7139
  orderedBy: s.display,
7140
7140
  instructions: fm(n.dosageInstruction),
@@ -7148,7 +7148,7 @@ const Ma = (t) => {
7148
7148
  var e, r, n, a;
7149
7149
  return t.priority === "stat" || ((a = (n = (r = (e = t.dosageInstruction) == null ? void 0 : e[0]) == null ? void 0 : r.timing) == null ? void 0 : n.code) == null ? void 0 : a.text) === "Immediately" || !1;
7150
7150
  };
7151
- async function Rw(t) {
7151
+ async function Rb(t) {
7152
7152
  const e = await im(t);
7153
7153
  return mm(e);
7154
7154
  }
@@ -7157,7 +7157,7 @@ async function ym(t) {
7157
7157
  const e = gm(t);
7158
7158
  return await Q(e);
7159
7159
  }
7160
- function wm(t) {
7160
+ function bm(t) {
7161
7161
  var r;
7162
7162
  return (((r = t.entry) == null ? void 0 : r.map((n) => n.resource)) ?? []).map((n) => {
7163
7163
  var i, o;
@@ -7172,11 +7172,11 @@ function wm(t) {
7172
7172
  };
7173
7173
  });
7174
7174
  }
7175
- async function Pw(t) {
7175
+ async function Pb(t) {
7176
7176
  const e = await ym(t);
7177
- return wm(e);
7177
+ return bm(e);
7178
7178
  }
7179
- const bm = "d3560b17-5e07-11ef-8f7c-0242ac120002", vm = "http://fhir.bahmni.org/ext/lab-order-concept-type", Em = (t) => De + `/ServiceRequest?category=${bm}&patient=${t}&numberOfVisits=5&_count=100&_sort=-_lastUpdated`;
7179
+ const wm = "d3560b17-5e07-11ef-8f7c-0242ac120002", vm = "http://fhir.bahmni.org/ext/lab-order-concept-type", Em = (t) => De + `/ServiceRequest?category=${wm}&patient=${t}&numberOfVisits=5&_count=100&_sort=-_lastUpdated`;
7180
7180
  var _r = /* @__PURE__ */ ((t) => (t.stat = "Urgent", t.routine = "Routine", t))(_r || {});
7181
7181
  const _m = (t) => {
7182
7182
  switch (t.priority) {
@@ -7243,7 +7243,7 @@ function Pm(t, e) {
7243
7243
  };
7244
7244
  });
7245
7245
  }
7246
- function Ow(t) {
7246
+ function Ob(t) {
7247
7247
  const e = /* @__PURE__ */ new Map();
7248
7248
  return t.forEach((r) => {
7249
7249
  var a;
@@ -7257,7 +7257,7 @@ function Ow(t) {
7257
7257
  (r, n) => new Date(n.rawDate).getTime() - new Date(r.rawDate).getTime()
7258
7258
  );
7259
7259
  }
7260
- async function Aw(t, e) {
7260
+ async function Ab(t, e) {
7261
7261
  var a;
7262
7262
  const n = ((a = (await $m(t)).entry) == null ? void 0 : a.map((s) => s.resource).filter((s) => s !== void 0)) ?? [];
7263
7263
  return Pm(n, e);
@@ -7289,7 +7289,7 @@ const Om = "All Orderables", Am = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,
7289
7289
  const l = to(c), d = e.get(l);
7290
7290
  if (!d)
7291
7291
  return;
7292
- r.filter((w) => w.code === c.code && w.categoryCode === d.uuid).length > 0 || r.push({
7292
+ r.filter((b) => b.code === c.code && b.categoryCode === d.uuid).length > 0 || r.push({
7293
7293
  code: c.code ?? "",
7294
7294
  display: Im(c),
7295
7295
  category: d.display,
@@ -7298,7 +7298,7 @@ const Om = "All Orderables", Am = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,
7298
7298
  });
7299
7299
  });
7300
7300
  }), r;
7301
- }, Tw = async () => {
7301
+ }, Tb = async () => {
7302
7302
  const t = await Dm(), e = await Cm();
7303
7303
  return Lm(t, km(e));
7304
7304
  };
@@ -7344,28 +7344,28 @@ function Nr() {
7344
7344
  }
7345
7345
  get str() {
7346
7346
  var u;
7347
- return (u = this._str) !== null && u !== void 0 ? u : this._str = this._items.reduce((h, b) => `${h}${b}`, "");
7347
+ return (u = this._str) !== null && u !== void 0 ? u : this._str = this._items.reduce((h, w) => `${h}${w}`, "");
7348
7348
  }
7349
7349
  get names() {
7350
7350
  var u;
7351
- return (u = this._names) !== null && u !== void 0 ? u : this._names = this._items.reduce((h, b) => (b instanceof r && (h[b.str] = (h[b.str] || 0) + 1), h), {});
7351
+ return (u = this._names) !== null && u !== void 0 ? u : this._names = this._items.reduce((h, w) => (w instanceof r && (h[w.str] = (h[w.str] || 0) + 1), h), {});
7352
7352
  }
7353
7353
  }
7354
7354
  t._Code = n, t.nil = new n("");
7355
7355
  function a(m, ...u) {
7356
7356
  const h = [m[0]];
7357
- let b = 0;
7358
- for (; b < u.length; )
7359
- o(h, u[b]), h.push(m[++b]);
7357
+ let w = 0;
7358
+ for (; w < u.length; )
7359
+ o(h, u[w]), h.push(m[++w]);
7360
7360
  return new n(h);
7361
7361
  }
7362
7362
  t._ = a;
7363
7363
  const s = new n("+");
7364
7364
  function i(m, ...u) {
7365
7365
  const h = [S(m[0])];
7366
- let b = 0;
7367
- for (; b < u.length; )
7368
- h.push(s), o(h, u[b]), h.push(s, S(m[++b]));
7366
+ let w = 0;
7367
+ for (; w < u.length; )
7368
+ h.push(s), o(h, u[w]), h.push(s, S(m[++w]));
7369
7369
  return c(h), new n(h);
7370
7370
  }
7371
7371
  t.str = i;
@@ -7404,10 +7404,10 @@ function Nr() {
7404
7404
  function p(m) {
7405
7405
  return typeof m == "number" || typeof m == "boolean" || m === null ? m : S(Array.isArray(m) ? m.join(",") : m);
7406
7406
  }
7407
- function w(m) {
7407
+ function b(m) {
7408
7408
  return new n(S(m));
7409
7409
  }
7410
- t.stringify = w;
7410
+ t.stringify = b;
7411
7411
  function S(m) {
7412
7412
  return JSON.stringify(m).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
7413
7413
  }
@@ -7492,7 +7492,7 @@ function ja() {
7492
7492
  var p;
7493
7493
  if (d.ref === void 0)
7494
7494
  throw new Error("CodeGen: ref must be passed in value");
7495
- const w = this.toName(l), { prefix: S } = w, y = (p = d.key) !== null && p !== void 0 ? p : d.ref;
7495
+ const b = this.toName(l), { prefix: S } = b, y = (p = d.key) !== null && p !== void 0 ? p : d.ref;
7496
7496
  let g = this._values[S];
7497
7497
  if (g) {
7498
7498
  const u = g.get(y);
@@ -7500,9 +7500,9 @@ function ja() {
7500
7500
  return u;
7501
7501
  } else
7502
7502
  g = this._values[S] = /* @__PURE__ */ new Map();
7503
- g.set(y, w);
7503
+ g.set(y, b);
7504
7504
  const f = this._scope[S] || (this._scope[S] = []), m = f.length;
7505
- return f[m] = d.ref, w.setValue(d, { property: S, itemIndex: m }), w;
7505
+ return f[m] = d.ref, b.setValue(d, { property: S, itemIndex: m }), b;
7506
7506
  }
7507
7507
  getValue(l, d) {
7508
7508
  const p = this._values[l];
@@ -7517,13 +7517,13 @@ function ja() {
7517
7517
  });
7518
7518
  }
7519
7519
  scopeCode(l = this._values, d, p) {
7520
- return this._reduceValues(l, (w) => {
7521
- if (w.value === void 0)
7522
- throw new Error(`CodeGen: name "${w}" has no value`);
7523
- return w.value.code;
7520
+ return this._reduceValues(l, (b) => {
7521
+ if (b.value === void 0)
7522
+ throw new Error(`CodeGen: name "${b}" has no value`);
7523
+ return b.value.code;
7524
7524
  }, d, p);
7525
7525
  }
7526
- _reduceValues(l, d, p = {}, w) {
7526
+ _reduceValues(l, d, p = {}, b) {
7527
7527
  let S = e.nil;
7528
7528
  for (const y in l) {
7529
7529
  const g = l[y];
@@ -7538,7 +7538,7 @@ function ja() {
7538
7538
  if (u) {
7539
7539
  const h = this.opts.es5 ? t.varKinds.var : t.varKinds.const;
7540
7540
  S = (0, e._)`${S}${h} ${m} = ${u};${this.opts._n}`;
7541
- } else if (u = w == null ? void 0 : w(m))
7541
+ } else if (u = b == null ? void 0 : b(m))
7542
7542
  S = (0, e._)`${S}${u}${this.opts._n}`;
7543
7543
  else
7544
7544
  throw new r(m);
@@ -7670,7 +7670,7 @@ function X() {
7670
7670
  return this.error.names;
7671
7671
  }
7672
7672
  }
7673
- class w extends s {
7673
+ class b extends s {
7674
7674
  constructor(v) {
7675
7675
  super(), this.code = v;
7676
7676
  }
@@ -7778,7 +7778,7 @@ function X() {
7778
7778
  return U(super.names, this.iteration.names);
7779
7779
  }
7780
7780
  }
7781
- class b extends u {
7781
+ class w extends u {
7782
7782
  constructor(v, R, C, V) {
7783
7783
  super(), this.varKind = v, this.name = R, this.from = C, this.to = V;
7784
7784
  }
@@ -7912,7 +7912,7 @@ function X() {
7912
7912
  }
7913
7913
  // appends passed SafeExpr to code or executes Block
7914
7914
  code(v) {
7915
- return typeof v == "function" ? v() : v !== e.nil && this._leafNode(new w(v)), this;
7915
+ return typeof v == "function" ? v() : v !== e.nil && this._leafNode(new b(v)), this;
7916
7916
  }
7917
7917
  // returns code for object literal for the passed argument list of key-value pairs
7918
7918
  object(...v) {
@@ -7953,7 +7953,7 @@ function X() {
7953
7953
  // `for` statement for a range of values
7954
7954
  forRange(v, R, C, V, B = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
7955
7955
  const re = this._scope.toName(v);
7956
- return this._for(new b(B, re, R, C), () => V(re));
7956
+ return this._for(new w(B, re, R, C), () => V(re));
7957
7957
  }
7958
7958
  // `for-of` statement (in es5 mode replace with a normal for loop)
7959
7959
  forOf(v, R, C, V = r.varKinds.const) {
@@ -8135,7 +8135,7 @@ function te() {
8135
8135
  return;
8136
8136
  const k = A.RULES.keywords;
8137
8137
  for (const j in E)
8138
- k[j] || b(_, `unknown keyword: "${j}"`);
8138
+ k[j] || w(_, `unknown keyword: "${j}"`);
8139
8139
  }
8140
8140
  Y.checkUnknownRules = a;
8141
8141
  function s(_, E) {
@@ -8182,14 +8182,14 @@ function te() {
8182
8182
  return _.replace(/~1/g, "/").replace(/~0/g, "~");
8183
8183
  }
8184
8184
  Y.unescapeJsonPointer = p;
8185
- function w(_, E) {
8185
+ function b(_, E) {
8186
8186
  if (Array.isArray(_))
8187
8187
  for (const $ of _)
8188
8188
  E($);
8189
8189
  else
8190
8190
  E(_);
8191
8191
  }
8192
- Y.eachItem = w;
8192
+ Y.eachItem = b;
8193
8193
  function S({ mergeNames: _, mergeToName: E, mergeValues: $, resultToName: A }) {
8194
8194
  return (k, j, q, U) => {
8195
8195
  const F = q === void 0 ? j : q instanceof t.Name ? (j instanceof t.Name ? _(k, j, q) : E(k, j, q), q) : j instanceof t.Name ? (E(k, q, j), j) : $(j, q);
@@ -8245,14 +8245,14 @@ function te() {
8245
8245
  return $ ? (0, t.getProperty)(_).toString() : "/" + d(_);
8246
8246
  }
8247
8247
  Y.getErrorPath = h;
8248
- function b(_, E, $ = _.opts.strictSchema) {
8248
+ function w(_, E, $ = _.opts.strictSchema) {
8249
8249
  if ($) {
8250
8250
  if (E = `strict mode: ${E}`, $ === !0)
8251
8251
  throw new Error(E);
8252
8252
  _.self.logger.warn(E);
8253
8253
  }
8254
8254
  }
8255
- return Y.checkStrictMode = b, Y;
8255
+ return Y.checkStrictMode = w, Y;
8256
8256
  }
8257
8257
  var Lt = {}, Va;
8258
8258
  function Fe() {
@@ -8300,24 +8300,24 @@ function Fr() {
8300
8300
  message: ({ keyword: f, schemaType: m }) => m ? (0, e.str)`"${f}" keyword must be ${m} ($data)` : (0, e.str)`"${f}" keyword is invalid ($data)`
8301
8301
  };
8302
8302
  function a(f, m = t.keywordError, u, h) {
8303
- const { it: b } = f, { gen: _, compositeRule: E, allErrors: $ } = b, A = p(f, m, u);
8304
- h ?? (E || $) ? c(_, A) : l(b, (0, e._)`[${A}]`);
8303
+ const { it: w } = f, { gen: _, compositeRule: E, allErrors: $ } = w, A = p(f, m, u);
8304
+ h ?? (E || $) ? c(_, A) : l(w, (0, e._)`[${A}]`);
8305
8305
  }
8306
8306
  t.reportError = a;
8307
8307
  function s(f, m = t.keywordError, u) {
8308
- const { it: h } = f, { gen: b, compositeRule: _, allErrors: E } = h, $ = p(f, m, u);
8309
- c(b, $), _ || E || l(h, n.default.vErrors);
8308
+ const { it: h } = f, { gen: w, compositeRule: _, allErrors: E } = h, $ = p(f, m, u);
8309
+ c(w, $), _ || E || l(h, n.default.vErrors);
8310
8310
  }
8311
8311
  t.reportExtraError = s;
8312
8312
  function i(f, m) {
8313
8313
  f.assign(n.default.errors, m), f.if((0, e._)`${n.default.vErrors} !== null`, () => f.if(m, () => f.assign((0, e._)`${n.default.vErrors}.length`, m), () => f.assign(n.default.vErrors, null)));
8314
8314
  }
8315
8315
  t.resetErrorsCount = i;
8316
- function o({ gen: f, keyword: m, schemaValue: u, data: h, errsCount: b, it: _ }) {
8317
- if (b === void 0)
8316
+ function o({ gen: f, keyword: m, schemaValue: u, data: h, errsCount: w, it: _ }) {
8317
+ if (w === void 0)
8318
8318
  throw new Error("ajv implementation error");
8319
8319
  const E = f.name("err");
8320
- f.forRange("i", b, n.default.errors, ($) => {
8320
+ f.forRange("i", w, n.default.errors, ($) => {
8321
8321
  f.const(E, (0, e._)`${n.default.vErrors}[${$}]`), f.if((0, e._)`${E}.instancePath === undefined`, () => f.assign((0, e._)`${E}.instancePath`, (0, e.strConcat)(n.default.instancePath, _.errorPath))), f.assign((0, e._)`${E}.schemaPath`, (0, e.str)`${_.errSchemaPath}/${m}`), _.opts.verbose && (f.assign((0, e._)`${E}.schema`, u), f.assign((0, e._)`${E}.data`, h));
8322
8322
  });
8323
8323
  }
@@ -8327,8 +8327,8 @@ function Fr() {
8327
8327
  f.if((0, e._)`${n.default.vErrors} === null`, () => f.assign(n.default.vErrors, (0, e._)`[${u}]`), (0, e._)`${n.default.vErrors}.push(${u})`), f.code((0, e._)`${n.default.errors}++`);
8328
8328
  }
8329
8329
  function l(f, m) {
8330
- const { gen: u, validateName: h, schemaEnv: b } = f;
8331
- b.$async ? u.throw((0, e._)`new ${f.ValidationError}(${m})`) : (u.assign((0, e._)`${h}.errors`, m), u.return(!1));
8330
+ const { gen: u, validateName: h, schemaEnv: w } = f;
8331
+ w.$async ? u.throw((0, e._)`new ${f.ValidationError}(${m})`) : (u.assign((0, e._)`${h}.errors`, m), u.return(!1));
8332
8332
  }
8333
8333
  const d = {
8334
8334
  keyword: new e.Name("keyword"),
@@ -8342,11 +8342,11 @@ function Fr() {
8342
8342
  };
8343
8343
  function p(f, m, u) {
8344
8344
  const { createErrors: h } = f.it;
8345
- return h === !1 ? (0, e._)`{}` : w(f, m, u);
8345
+ return h === !1 ? (0, e._)`{}` : b(f, m, u);
8346
8346
  }
8347
- function w(f, m, u = {}) {
8348
- const { gen: h, it: b } = f, _ = [
8349
- S(b, u),
8347
+ function b(f, m, u = {}) {
8348
+ const { gen: h, it: w } = f, _ = [
8349
+ S(w, u),
8350
8350
  y(f, u)
8351
8351
  ];
8352
8352
  return g(f, m, _), h.object(..._);
@@ -8356,12 +8356,12 @@ function Fr() {
8356
8356
  return [n.default.instancePath, (0, e.strConcat)(n.default.instancePath, u)];
8357
8357
  }
8358
8358
  function y({ keyword: f, it: { errSchemaPath: m } }, { schemaPath: u, parentSchema: h }) {
8359
- let b = h ? m : (0, e.str)`${m}/${f}`;
8360
- return u && (b = (0, e.str)`${b}${(0, r.getErrorPath)(u, r.Type.Str)}`), [d.schemaPath, b];
8359
+ let w = h ? m : (0, e.str)`${m}/${f}`;
8360
+ return u && (w = (0, e.str)`${w}${(0, r.getErrorPath)(u, r.Type.Str)}`), [d.schemaPath, w];
8361
8361
  }
8362
8362
  function g(f, { params: m, message: u }, h) {
8363
- const { keyword: b, data: _, schemaValue: E, it: $ } = f, { opts: A, propertyName: k, topSchemaRef: j, schemaPath: q } = $;
8364
- h.push([d.keyword, b], [d.params, typeof m == "function" ? m(f) : m || (0, e._)`{}`]), A.messages && h.push([d.message, typeof u == "function" ? u(f) : u]), A.verbose && h.push([d.schema, E], [d.parentSchema, (0, e._)`${j}${q}`], [n.default.data, _]), k && h.push([d.propertyName, k]);
8363
+ const { keyword: w, data: _, schemaValue: E, it: $ } = f, { opts: A, propertyName: k, topSchemaRef: j, schemaPath: q } = $;
8364
+ h.push([d.keyword, w], [d.params, typeof m == "function" ? m(f) : m || (0, e._)`{}`]), A.messages && h.push([d.message, typeof u == "function" ? u(f) : u]), A.verbose && h.push([d.schema, E], [d.parentSchema, (0, e._)`${j}${q}`], [n.default.data, _]), k && h.push([d.propertyName, k]);
8365
8365
  }
8366
8366
  })(un)), un;
8367
8367
  }
@@ -8472,10 +8472,10 @@ function Dr() {
8472
8472
  }
8473
8473
  ge.getJSONTypes = o;
8474
8474
  function c(u, h) {
8475
- const { gen: b, data: _, opts: E } = u, $ = d(h, E.coerceTypes), A = h.length > 0 && !($.length === 0 && h.length === 1 && (0, e.schemaHasRulesForType)(u, h[0]));
8475
+ const { gen: w, data: _, opts: E } = u, $ = d(h, E.coerceTypes), A = h.length > 0 && !($.length === 0 && h.length === 1 && (0, e.schemaHasRulesForType)(u, h[0]));
8476
8476
  if (A) {
8477
8477
  const k = y(h, _, E.strictNumbers, s.Wrong);
8478
- b.if(k, () => {
8478
+ w.if(k, () => {
8479
8479
  $.length ? p(u, h, $) : f(u);
8480
8480
  });
8481
8481
  }
@@ -8484,15 +8484,15 @@ function Dr() {
8484
8484
  ge.coerceAndCheckDataType = c;
8485
8485
  const l = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
8486
8486
  function d(u, h) {
8487
- return h ? u.filter((b) => l.has(b) || h === "array" && b === "array") : [];
8487
+ return h ? u.filter((w) => l.has(w) || h === "array" && w === "array") : [];
8488
8488
  }
8489
- function p(u, h, b) {
8489
+ function p(u, h, w) {
8490
8490
  const { gen: _, data: E, opts: $ } = u, A = _.let("dataType", (0, n._)`typeof ${E}`), k = _.let("coerced", (0, n._)`undefined`);
8491
8491
  $.coerceTypes === "array" && _.if((0, n._)`${A} == 'object' && Array.isArray(${E}) && ${E}.length == 1`, () => _.assign(E, (0, n._)`${E}[0]`).assign(A, (0, n._)`typeof ${E}`).if(y(h, E, $.strictNumbers), () => _.assign(k, E))), _.if((0, n._)`${k} !== undefined`);
8492
- for (const q of b)
8492
+ for (const q of w)
8493
8493
  (l.has(q) || q === "array" && $.coerceTypes === "array") && j(q);
8494
8494
  _.else(), f(u), _.endIf(), _.if((0, n._)`${k} !== undefined`, () => {
8495
- _.assign(E, k), w(u, k);
8495
+ _.assign(E, k), b(u, k);
8496
8496
  });
8497
8497
  function j(q) {
8498
8498
  switch (q) {
@@ -8519,10 +8519,10 @@ function Dr() {
8519
8519
  }
8520
8520
  }
8521
8521
  }
8522
- function w({ gen: u, parentData: h, parentDataProperty: b }, _) {
8523
- u.if((0, n._)`${h} !== undefined`, () => u.assign((0, n._)`${h}[${b}]`, _));
8522
+ function b({ gen: u, parentData: h, parentDataProperty: w }, _) {
8523
+ u.if((0, n._)`${h} !== undefined`, () => u.assign((0, n._)`${h}[${w}]`, _));
8524
8524
  }
8525
- function S(u, h, b, _ = s.Correct) {
8525
+ function S(u, h, w, _ = s.Correct) {
8526
8526
  const E = _ === s.Correct ? n.operators.EQ : n.operators.NEQ;
8527
8527
  let $;
8528
8528
  switch (u) {
@@ -8545,13 +8545,13 @@ function Dr() {
8545
8545
  }
8546
8546
  return _ === s.Correct ? $ : (0, n.not)($);
8547
8547
  function A(k = n.nil) {
8548
- return (0, n.and)((0, n._)`typeof ${h} == "number"`, k, b ? (0, n._)`isFinite(${h})` : n.nil);
8548
+ return (0, n.and)((0, n._)`typeof ${h} == "number"`, k, w ? (0, n._)`isFinite(${h})` : n.nil);
8549
8549
  }
8550
8550
  }
8551
8551
  ge.checkDataType = S;
8552
- function y(u, h, b, _) {
8552
+ function y(u, h, w, _) {
8553
8553
  if (u.length === 1)
8554
- return S(u[0], h, b, _);
8554
+ return S(u[0], h, w, _);
8555
8555
  let E;
8556
8556
  const $ = (0, a.toHash)(u);
8557
8557
  if ($.array && $.object) {
@@ -8561,7 +8561,7 @@ function Dr() {
8561
8561
  E = n.nil;
8562
8562
  $.number && delete $.integer;
8563
8563
  for (const A in $)
8564
- E = (0, n.and)(E, S(A, h, b, _));
8564
+ E = (0, n.and)(E, S(A, h, w, _));
8565
8565
  return E;
8566
8566
  }
8567
8567
  ge.checkDataTypes = y;
@@ -8575,11 +8575,11 @@ function Dr() {
8575
8575
  }
8576
8576
  ge.reportTypeError = f;
8577
8577
  function m(u) {
8578
- const { gen: h, data: b, schema: _ } = u, E = (0, a.schemaRefOrVal)(u, _, "type");
8578
+ const { gen: h, data: w, schema: _ } = u, E = (0, a.schemaRefOrVal)(u, _, "type");
8579
8579
  return {
8580
8580
  gen: h,
8581
8581
  keyword: "type",
8582
- data: b,
8582
+ data: w,
8583
8583
  schema: _.type,
8584
8584
  schemaCode: E,
8585
8585
  schemaValue: E,
@@ -8590,10 +8590,10 @@ function Dr() {
8590
8590
  }
8591
8591
  return ge;
8592
8592
  }
8593
- var bt = {}, Ka;
8593
+ var wt = {}, Ka;
8594
8594
  function qm() {
8595
- if (Ka) return bt;
8596
- Ka = 1, Object.defineProperty(bt, "__esModule", { value: !0 }), bt.assignDefaults = void 0;
8595
+ if (Ka) return wt;
8596
+ Ka = 1, Object.defineProperty(wt, "__esModule", { value: !0 }), wt.assignDefaults = void 0;
8597
8597
  const t = X(), e = te();
8598
8598
  function r(a, s) {
8599
8599
  const { properties: i, items: o } = a.schema;
@@ -8602,7 +8602,7 @@ function qm() {
8602
8602
  n(a, c, i[c].default);
8603
8603
  else s === "array" && Array.isArray(o) && o.forEach((c, l) => n(a, l, c.default));
8604
8604
  }
8605
- bt.assignDefaults = r;
8605
+ wt.assignDefaults = r;
8606
8606
  function n(a, s, i) {
8607
8607
  const { gen: o, compositeRule: c, data: l, opts: d } = a;
8608
8608
  if (i === void 0)
@@ -8612,10 +8612,10 @@ function qm() {
8612
8612
  (0, e.checkStrictMode)(a, `default is ignored for: ${p}`);
8613
8613
  return;
8614
8614
  }
8615
- let w = (0, t._)`${p} === undefined`;
8616
- d.useDefaults === "empty" && (w = (0, t._)`${w} || ${p} === null || ${p} === ""`), o.if(w, (0, t._)`${p} = ${(0, t.stringify)(i)}`);
8615
+ let b = (0, t._)`${p} === undefined`;
8616
+ d.useDefaults === "empty" && (b = (0, t._)`${b} || ${p} === null || ${p} === ""`), o.if(b, (0, t._)`${p} = ${(0, t.stringify)(i)}`);
8617
8617
  }
8618
- return bt;
8618
+ return wt;
8619
8619
  }
8620
8620
  var Te = {}, ne = {}, Ya;
8621
8621
  function Ce() {
@@ -8623,14 +8623,14 @@ function Ce() {
8623
8623
  Ya = 1, Object.defineProperty(ne, "__esModule", { value: !0 }), ne.validateUnion = ne.validateArray = ne.usePattern = ne.callValidateCode = ne.schemaProperties = ne.allSchemaProperties = ne.noPropertyInData = ne.propertyInData = ne.isOwnProperty = ne.hasPropFunc = ne.reportMissingProp = ne.checkMissingProp = ne.checkReportMissingProp = void 0;
8624
8624
  const t = X(), e = te(), r = Fe(), n = te();
8625
8625
  function a(u, h) {
8626
- const { gen: b, data: _, it: E } = u;
8627
- b.if(d(b, _, h, E.opts.ownProperties), () => {
8626
+ const { gen: w, data: _, it: E } = u;
8627
+ w.if(d(w, _, h, E.opts.ownProperties), () => {
8628
8628
  u.setParams({ missingProperty: (0, t._)`${h}` }, !0), u.error();
8629
8629
  });
8630
8630
  }
8631
8631
  ne.checkReportMissingProp = a;
8632
- function s({ gen: u, data: h, it: { opts: b } }, _, E) {
8633
- return (0, t.or)(..._.map(($) => (0, t.and)(d(u, h, $, b.ownProperties), (0, t._)`${E} = ${$}`)));
8632
+ function s({ gen: u, data: h, it: { opts: w } }, _, E) {
8633
+ return (0, t.or)(..._.map(($) => (0, t.and)(d(u, h, $, w.ownProperties), (0, t._)`${E} = ${$}`)));
8634
8634
  }
8635
8635
  ne.checkMissingProp = s;
8636
8636
  function i(u, h) {
@@ -8645,29 +8645,29 @@ function Ce() {
8645
8645
  });
8646
8646
  }
8647
8647
  ne.hasPropFunc = o;
8648
- function c(u, h, b) {
8649
- return (0, t._)`${o(u)}.call(${h}, ${b})`;
8648
+ function c(u, h, w) {
8649
+ return (0, t._)`${o(u)}.call(${h}, ${w})`;
8650
8650
  }
8651
8651
  ne.isOwnProperty = c;
8652
- function l(u, h, b, _) {
8653
- const E = (0, t._)`${h}${(0, t.getProperty)(b)} !== undefined`;
8654
- return _ ? (0, t._)`${E} && ${c(u, h, b)}` : E;
8652
+ function l(u, h, w, _) {
8653
+ const E = (0, t._)`${h}${(0, t.getProperty)(w)} !== undefined`;
8654
+ return _ ? (0, t._)`${E} && ${c(u, h, w)}` : E;
8655
8655
  }
8656
8656
  ne.propertyInData = l;
8657
- function d(u, h, b, _) {
8658
- const E = (0, t._)`${h}${(0, t.getProperty)(b)} === undefined`;
8659
- return _ ? (0, t.or)(E, (0, t.not)(c(u, h, b))) : E;
8657
+ function d(u, h, w, _) {
8658
+ const E = (0, t._)`${h}${(0, t.getProperty)(w)} === undefined`;
8659
+ return _ ? (0, t.or)(E, (0, t.not)(c(u, h, w))) : E;
8660
8660
  }
8661
8661
  ne.noPropertyInData = d;
8662
8662
  function p(u) {
8663
8663
  return u ? Object.keys(u).filter((h) => h !== "__proto__") : [];
8664
8664
  }
8665
8665
  ne.allSchemaProperties = p;
8666
- function w(u, h) {
8667
- return p(h).filter((b) => !(0, e.alwaysValidSchema)(u, h[b]));
8666
+ function b(u, h) {
8667
+ return p(h).filter((w) => !(0, e.alwaysValidSchema)(u, h[w]));
8668
8668
  }
8669
- ne.schemaProperties = w;
8670
- function S({ schemaCode: u, data: h, it: { gen: b, topSchemaRef: _, schemaPath: E, errorPath: $ }, it: A }, k, j, q) {
8669
+ ne.schemaProperties = b;
8670
+ function S({ schemaCode: u, data: h, it: { gen: w, topSchemaRef: _, schemaPath: E, errorPath: $ }, it: A }, k, j, q) {
8671
8671
  const U = q ? (0, t._)`${u}, ${h}, ${_}${E}` : h, F = [
8672
8672
  [r.default.instancePath, (0, t.strConcat)(r.default.instancePath, $)],
8673
8673
  [r.default.parentData, A.parentData],
@@ -8675,29 +8675,29 @@ function Ce() {
8675
8675
  [r.default.rootData, r.default.rootData]
8676
8676
  ];
8677
8677
  A.opts.dynamicRef && F.push([r.default.dynamicAnchors, r.default.dynamicAnchors]);
8678
- const z = (0, t._)`${U}, ${b.object(...F)}`;
8678
+ const z = (0, t._)`${U}, ${w.object(...F)}`;
8679
8679
  return j !== t.nil ? (0, t._)`${k}.call(${j}, ${z})` : (0, t._)`${k}(${z})`;
8680
8680
  }
8681
8681
  ne.callValidateCode = S;
8682
8682
  const y = (0, t._)`new RegExp`;
8683
- function g({ gen: u, it: { opts: h } }, b) {
8684
- const _ = h.unicodeRegExp ? "u" : "", { regExp: E } = h.code, $ = E(b, _);
8683
+ function g({ gen: u, it: { opts: h } }, w) {
8684
+ const _ = h.unicodeRegExp ? "u" : "", { regExp: E } = h.code, $ = E(w, _);
8685
8685
  return u.scopeValue("pattern", {
8686
8686
  key: $.toString(),
8687
8687
  ref: $,
8688
- code: (0, t._)`${E.code === "new RegExp" ? y : (0, n.useFunc)(u, E)}(${b}, ${_})`
8688
+ code: (0, t._)`${E.code === "new RegExp" ? y : (0, n.useFunc)(u, E)}(${w}, ${_})`
8689
8689
  });
8690
8690
  }
8691
8691
  ne.usePattern = g;
8692
8692
  function f(u) {
8693
- const { gen: h, data: b, keyword: _, it: E } = u, $ = h.name("valid");
8693
+ const { gen: h, data: w, keyword: _, it: E } = u, $ = h.name("valid");
8694
8694
  if (E.allErrors) {
8695
8695
  const k = h.let("valid", !0);
8696
8696
  return A(() => h.assign(k, !1)), k;
8697
8697
  }
8698
8698
  return h.var($, !0), A(() => h.break()), $;
8699
8699
  function A(k) {
8700
- const j = h.const("len", (0, t._)`${b}.length`);
8700
+ const j = h.const("len", (0, t._)`${w}.length`);
8701
8701
  h.forRange("i", 0, j, (q) => {
8702
8702
  u.subschema({
8703
8703
  keyword: _,
@@ -8709,13 +8709,13 @@ function Ce() {
8709
8709
  }
8710
8710
  ne.validateArray = f;
8711
8711
  function m(u) {
8712
- const { gen: h, schema: b, keyword: _, it: E } = u;
8713
- if (!Array.isArray(b))
8712
+ const { gen: h, schema: w, keyword: _, it: E } = u;
8713
+ if (!Array.isArray(w))
8714
8714
  throw new Error("ajv implementation error");
8715
- if (b.some((j) => (0, e.alwaysValidSchema)(E, j)) && !E.opts.unevaluated)
8715
+ if (w.some((j) => (0, e.alwaysValidSchema)(E, j)) && !E.opts.unevaluated)
8716
8716
  return;
8717
8717
  const A = h.let("valid", !1), k = h.name("_valid");
8718
- h.block(() => b.forEach((j, q) => {
8718
+ h.block(() => w.forEach((j, q) => {
8719
8719
  const U = u.subschema({
8720
8720
  keyword: _,
8721
8721
  schemaProp: q,
@@ -8731,44 +8731,44 @@ function jm() {
8731
8731
  if (Ja) return Te;
8732
8732
  Ja = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.validateKeywordUsage = Te.validSchemaType = Te.funcKeywordCode = Te.macroKeywordCode = void 0;
8733
8733
  const t = X(), e = Fe(), r = Ce(), n = Fr();
8734
- function a(w, S) {
8735
- const { gen: y, keyword: g, schema: f, parentSchema: m, it: u } = w, h = S.macro.call(u.self, f, m, u), b = l(y, g, h);
8734
+ function a(b, S) {
8735
+ const { gen: y, keyword: g, schema: f, parentSchema: m, it: u } = b, h = S.macro.call(u.self, f, m, u), w = l(y, g, h);
8736
8736
  u.opts.validateSchema !== !1 && u.self.validateSchema(h, !0);
8737
8737
  const _ = y.name("valid");
8738
- w.subschema({
8738
+ b.subschema({
8739
8739
  schema: h,
8740
8740
  schemaPath: t.nil,
8741
8741
  errSchemaPath: `${u.errSchemaPath}/${g}`,
8742
- topSchemaRef: b,
8742
+ topSchemaRef: w,
8743
8743
  compositeRule: !0
8744
- }, _), w.pass(_, () => w.error(!0));
8744
+ }, _), b.pass(_, () => b.error(!0));
8745
8745
  }
8746
8746
  Te.macroKeywordCode = a;
8747
- function s(w, S) {
8747
+ function s(b, S) {
8748
8748
  var y;
8749
- const { gen: g, keyword: f, schema: m, parentSchema: u, $data: h, it: b } = w;
8750
- c(b, S);
8751
- const _ = !h && S.compile ? S.compile.call(b.self, m, u, b) : S.validate, E = l(g, f, _), $ = g.let("valid");
8752
- w.block$data($, A), w.ok((y = S.valid) !== null && y !== void 0 ? y : $);
8749
+ const { gen: g, keyword: f, schema: m, parentSchema: u, $data: h, it: w } = b;
8750
+ c(w, S);
8751
+ const _ = !h && S.compile ? S.compile.call(w.self, m, u, w) : S.validate, E = l(g, f, _), $ = g.let("valid");
8752
+ b.block$data($, A), b.ok((y = S.valid) !== null && y !== void 0 ? y : $);
8753
8753
  function A() {
8754
8754
  if (S.errors === !1)
8755
- q(), S.modifying && i(w), U(() => w.error());
8755
+ q(), S.modifying && i(b), U(() => b.error());
8756
8756
  else {
8757
8757
  const F = S.async ? k() : j();
8758
- S.modifying && i(w), U(() => o(w, F));
8758
+ S.modifying && i(b), U(() => o(b, F));
8759
8759
  }
8760
8760
  }
8761
8761
  function k() {
8762
8762
  const F = g.let("ruleErrs", null);
8763
- return g.try(() => q((0, t._)`await `), (z) => g.assign($, !1).if((0, t._)`${z} instanceof ${b.ValidationError}`, () => g.assign(F, (0, t._)`${z}.errors`), () => g.throw(z))), F;
8763
+ return g.try(() => q((0, t._)`await `), (z) => g.assign($, !1).if((0, t._)`${z} instanceof ${w.ValidationError}`, () => g.assign(F, (0, t._)`${z}.errors`), () => g.throw(z))), F;
8764
8764
  }
8765
8765
  function j() {
8766
8766
  const F = (0, t._)`${E}.errors`;
8767
8767
  return g.assign(F, null), q(t.nil), F;
8768
8768
  }
8769
8769
  function q(F = S.async ? (0, t._)`await ` : t.nil) {
8770
- const z = b.opts.passContext ? e.default.this : e.default.self, K = !("compile" in S && !h || S.schema === !1);
8771
- g.assign($, (0, t._)`${F}${(0, r.callValidateCode)(w, E, z, K)}`, S.modifying);
8770
+ const z = w.opts.passContext ? e.default.this : e.default.self, K = !("compile" in S && !h || S.schema === !1);
8771
+ g.assign($, (0, t._)`${F}${(0, r.callValidateCode)(b, E, z, K)}`, S.modifying);
8772
8772
  }
8773
8773
  function U(F) {
8774
8774
  var z;
@@ -8776,41 +8776,41 @@ function jm() {
8776
8776
  }
8777
8777
  }
8778
8778
  Te.funcKeywordCode = s;
8779
- function i(w) {
8780
- const { gen: S, data: y, it: g } = w;
8779
+ function i(b) {
8780
+ const { gen: S, data: y, it: g } = b;
8781
8781
  S.if(g.parentData, () => S.assign(y, (0, t._)`${g.parentData}[${g.parentDataProperty}]`));
8782
8782
  }
8783
- function o(w, S) {
8784
- const { gen: y } = w;
8783
+ function o(b, S) {
8784
+ const { gen: y } = b;
8785
8785
  y.if((0, t._)`Array.isArray(${S})`, () => {
8786
- y.assign(e.default.vErrors, (0, t._)`${e.default.vErrors} === null ? ${S} : ${e.default.vErrors}.concat(${S})`).assign(e.default.errors, (0, t._)`${e.default.vErrors}.length`), (0, n.extendErrors)(w);
8787
- }, () => w.error());
8786
+ y.assign(e.default.vErrors, (0, t._)`${e.default.vErrors} === null ? ${S} : ${e.default.vErrors}.concat(${S})`).assign(e.default.errors, (0, t._)`${e.default.vErrors}.length`), (0, n.extendErrors)(b);
8787
+ }, () => b.error());
8788
8788
  }
8789
- function c({ schemaEnv: w }, S) {
8790
- if (S.async && !w.$async)
8789
+ function c({ schemaEnv: b }, S) {
8790
+ if (S.async && !b.$async)
8791
8791
  throw new Error("async keyword in sync schema");
8792
8792
  }
8793
- function l(w, S, y) {
8793
+ function l(b, S, y) {
8794
8794
  if (y === void 0)
8795
8795
  throw new Error(`keyword "${S}" failed to compile`);
8796
- return w.scopeValue("keyword", typeof y == "function" ? { ref: y } : { ref: y, code: (0, t.stringify)(y) });
8796
+ return b.scopeValue("keyword", typeof y == "function" ? { ref: y } : { ref: y, code: (0, t.stringify)(y) });
8797
8797
  }
8798
- function d(w, S, y = !1) {
8799
- return !S.length || S.some((g) => g === "array" ? Array.isArray(w) : g === "object" ? w && typeof w == "object" && !Array.isArray(w) : typeof w == g || y && typeof w > "u");
8798
+ function d(b, S, y = !1) {
8799
+ return !S.length || S.some((g) => g === "array" ? Array.isArray(b) : g === "object" ? b && typeof b == "object" && !Array.isArray(b) : typeof b == g || y && typeof b > "u");
8800
8800
  }
8801
8801
  Te.validSchemaType = d;
8802
- function p({ schema: w, opts: S, self: y, errSchemaPath: g }, f, m) {
8802
+ function p({ schema: b, opts: S, self: y, errSchemaPath: g }, f, m) {
8803
8803
  if (Array.isArray(f.keyword) ? !f.keyword.includes(m) : f.keyword !== m)
8804
8804
  throw new Error("ajv implementation error");
8805
8805
  const u = f.dependencies;
8806
- if (u != null && u.some((h) => !Object.prototype.hasOwnProperty.call(w, h)))
8806
+ if (u != null && u.some((h) => !Object.prototype.hasOwnProperty.call(b, h)))
8807
8807
  throw new Error(`parent schema must have dependencies of ${m}: ${u.join(",")}`);
8808
- if (f.validateSchema && !f.validateSchema(w[m])) {
8809
- const b = `keyword "${m}" value is invalid at path "${g}": ` + y.errorsText(f.validateSchema.errors);
8808
+ if (f.validateSchema && !f.validateSchema(b[m])) {
8809
+ const w = `keyword "${m}" value is invalid at path "${g}": ` + y.errorsText(f.validateSchema.errors);
8810
8810
  if (S.validateSchema === "log")
8811
- y.logger.error(b);
8811
+ y.logger.error(w);
8812
8812
  else
8813
- throw new Error(b);
8813
+ throw new Error(w);
8814
8814
  }
8815
8815
  }
8816
8816
  return Te.validateKeywordUsage = p, Te;
@@ -8824,13 +8824,13 @@ function Um() {
8824
8824
  if (i !== void 0 && c !== void 0)
8825
8825
  throw new Error('both "keyword" and "schema" passed, only one allowed');
8826
8826
  if (i !== void 0) {
8827
- const w = s.schema[i];
8827
+ const b = s.schema[i];
8828
8828
  return o === void 0 ? {
8829
- schema: w,
8829
+ schema: b,
8830
8830
  schemaPath: (0, t._)`${s.schemaPath}${(0, t.getProperty)(i)}`,
8831
8831
  errSchemaPath: `${s.errSchemaPath}/${i}`
8832
8832
  } : {
8833
- schema: w[o],
8833
+ schema: b[o],
8834
8834
  schemaPath: (0, t._)`${s.schemaPath}${(0, t.getProperty)(i)}${(0, t.getProperty)(o)}`,
8835
8835
  errSchemaPath: `${s.errSchemaPath}/${i}/${(0, e.escapeFragment)(o)}`
8836
8836
  };
@@ -8851,13 +8851,13 @@ function Um() {
8851
8851
  function n(s, i, { dataProp: o, dataPropType: c, data: l, dataTypes: d, propertyName: p }) {
8852
8852
  if (l !== void 0 && o !== void 0)
8853
8853
  throw new Error('both "data" and "dataProp" passed, only one allowed');
8854
- const { gen: w } = i;
8854
+ const { gen: b } = i;
8855
8855
  if (o !== void 0) {
8856
- const { errorPath: y, dataPathArr: g, opts: f } = i, m = w.let("data", (0, t._)`${i.data}${(0, t.getProperty)(o)}`, !0);
8856
+ const { errorPath: y, dataPathArr: g, opts: f } = i, m = b.let("data", (0, t._)`${i.data}${(0, t.getProperty)(o)}`, !0);
8857
8857
  S(m), s.errorPath = (0, t.str)`${y}${(0, e.getErrorPath)(o, c, f.jsPropertySyntax)}`, s.parentDataProperty = (0, t._)`${o}`, s.dataPathArr = [...g, s.parentDataProperty];
8858
8858
  }
8859
8859
  if (l !== void 0) {
8860
- const y = l instanceof t.Name ? l : w.let("data", l, !0);
8860
+ const y = l instanceof t.Name ? l : b.let("data", l, !0);
8861
8861
  S(y), p !== void 0 && (s.propertyName = p);
8862
8862
  }
8863
8863
  d && (s.dataTypes = d);
@@ -8871,7 +8871,7 @@ function Um() {
8871
8871
  }
8872
8872
  return xe.extendSubschemaMode = a, xe;
8873
8873
  }
8874
- var we = {}, hn, Qa;
8874
+ var be = {}, hn, Qa;
8875
8875
  function ao() {
8876
8876
  return Qa || (Qa = 1, hn = function t(e, r) {
8877
8877
  if (e === r) return !0;
@@ -8951,9 +8951,9 @@ function Fm() {
8951
8951
  maxProperties: !0,
8952
8952
  minProperties: !0
8953
8953
  };
8954
- function e(n, a, s, i, o, c, l, d, p, w) {
8954
+ function e(n, a, s, i, o, c, l, d, p, b) {
8955
8955
  if (i && typeof i == "object" && !Array.isArray(i)) {
8956
- a(i, o, c, l, d, p, w);
8956
+ a(i, o, c, l, d, p, b);
8957
8957
  for (var S in i) {
8958
8958
  var y = i[S];
8959
8959
  if (Array.isArray(y)) {
@@ -8966,7 +8966,7 @@ function Fm() {
8966
8966
  e(n, a, s, y[f], o + "/" + S + "/" + r(f), c, o, S, i, f);
8967
8967
  } else (S in t.keywords || n.allKeys && !(S in t.skipKeywords)) && e(n, a, s, y, o + "/" + S, c, o, S, i);
8968
8968
  }
8969
- s(i, o, c, l, d, p, w);
8969
+ s(i, o, c, l, d, p, b);
8970
8970
  }
8971
8971
  }
8972
8972
  function r(n) {
@@ -8976,8 +8976,8 @@ function Fm() {
8976
8976
  }
8977
8977
  var es;
8978
8978
  function Vr() {
8979
- if (es) return we;
8980
- es = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.getSchemaRefs = we.resolveUrl = we.normalizeId = we._getFullPath = we.getFullPath = we.inlineRef = void 0;
8979
+ if (es) return be;
8980
+ es = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.getSchemaRefs = be.resolveUrl = be.normalizeId = be._getFullPath = be.getFullPath = be.inlineRef = void 0;
8981
8981
  const t = te(), e = ao(), r = Fm(), n = /* @__PURE__ */ new Set([
8982
8982
  "type",
8983
8983
  "format",
@@ -8999,7 +8999,7 @@ function Vr() {
8999
8999
  function a(g, f = !0) {
9000
9000
  return typeof g == "boolean" ? !0 : f === !0 ? !i(g) : f ? o(g) <= f : !1;
9001
9001
  }
9002
- we.inlineRef = a;
9002
+ be.inlineRef = a;
9003
9003
  const s = /* @__PURE__ */ new Set([
9004
9004
  "$ref",
9005
9005
  "$recursiveRef",
@@ -9032,31 +9032,31 @@ function Vr() {
9032
9032
  const u = g.parse(f);
9033
9033
  return l(g, u);
9034
9034
  }
9035
- we.getFullPath = c;
9035
+ be.getFullPath = c;
9036
9036
  function l(g, f) {
9037
9037
  return g.serialize(f).split("#")[0] + "#";
9038
9038
  }
9039
- we._getFullPath = l;
9039
+ be._getFullPath = l;
9040
9040
  const d = /#\/?$/;
9041
9041
  function p(g) {
9042
9042
  return g ? g.replace(d, "") : "";
9043
9043
  }
9044
- we.normalizeId = p;
9045
- function w(g, f, m) {
9044
+ be.normalizeId = p;
9045
+ function b(g, f, m) {
9046
9046
  return m = p(m), g.resolve(f, m);
9047
9047
  }
9048
- we.resolveUrl = w;
9048
+ be.resolveUrl = b;
9049
9049
  const S = /^[a-z_][-a-z0-9._]*$/i;
9050
9050
  function y(g, f) {
9051
9051
  if (typeof g == "boolean")
9052
9052
  return {};
9053
- const { schemaId: m, uriResolver: u } = this.opts, h = p(g[m] || f), b = { "": h }, _ = c(u, h, !1), E = {}, $ = /* @__PURE__ */ new Set();
9053
+ const { schemaId: m, uriResolver: u } = this.opts, h = p(g[m] || f), w = { "": h }, _ = c(u, h, !1), E = {}, $ = /* @__PURE__ */ new Set();
9054
9054
  return r(g, { allKeys: !0 }, (j, q, U, F) => {
9055
9055
  if (F === void 0)
9056
9056
  return;
9057
9057
  const z = _ + q;
9058
- let K = b[F];
9059
- typeof j[m] == "string" && (K = he.call(this, j[m])), ue.call(this, j.$anchor), ue.call(this, j.$dynamicAnchor), b[q] = K;
9058
+ let K = w[F];
9059
+ typeof j[m] == "string" && (K = he.call(this, j[m])), ue.call(this, j.$anchor), ue.call(this, j.$dynamicAnchor), w[q] = K;
9060
9060
  function he(ee) {
9061
9061
  const ie = this.opts.uriResolver.resolve;
9062
9062
  if (ee = p(K ? ie(K, ee) : ee), $.has(ee))
@@ -9081,21 +9081,21 @@ function Vr() {
9081
9081
  return new Error(`reference "${j}" resolves to more than one schema`);
9082
9082
  }
9083
9083
  }
9084
- return we.getSchemaRefs = y, we;
9084
+ return be.getSchemaRefs = y, be;
9085
9085
  }
9086
9086
  var ts;
9087
9087
  function Hr() {
9088
9088
  if (ts) return Le;
9089
9089
  ts = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.getData = Le.KeywordCxt = Le.validateFunctionCode = void 0;
9090
9090
  const t = xm(), e = Dr(), r = no(), n = Dr(), a = qm(), s = jm(), i = Um(), o = X(), c = Fe(), l = Vr(), d = te(), p = Fr();
9091
- function w(P) {
9092
- if (_(P) && ($(P), b(P))) {
9091
+ function b(P) {
9092
+ if (_(P) && ($(P), w(P))) {
9093
9093
  f(P);
9094
9094
  return;
9095
9095
  }
9096
9096
  S(P, () => (0, t.topBoolOrEmptySchema)(P));
9097
9097
  }
9098
- Le.validateFunctionCode = w;
9098
+ Le.validateFunctionCode = b;
9099
9099
  function S({ gen: P, validateName: N, schema: L, schemaEnv: x, opts: H }, J) {
9100
9100
  H.code.es5 ? P.func(N, (0, o._)`${c.default.data}, ${c.default.valCxt}`, x.$async, () => {
9101
9101
  P.code((0, o._)`"use strict"; ${u(L, H)}`), g(P, H), P.code(J);
@@ -9126,13 +9126,13 @@ function Hr() {
9126
9126
  return L && (N.code.source || N.code.process) ? (0, o._)`/*# sourceURL=${L} */` : o.nil;
9127
9127
  }
9128
9128
  function h(P, N) {
9129
- if (_(P) && ($(P), b(P))) {
9129
+ if (_(P) && ($(P), w(P))) {
9130
9130
  E(P, N);
9131
9131
  return;
9132
9132
  }
9133
9133
  (0, t.boolOrEmptySchema)(P, N);
9134
9134
  }
9135
- function b({ schema: P, self: N }) {
9135
+ function w({ schema: P, self: N }) {
9136
9136
  if (typeof P == "boolean")
9137
9137
  return !P;
9138
9138
  for (const L in P)
@@ -9437,7 +9437,7 @@ function Ln() {
9437
9437
  const m = d.call(this, f);
9438
9438
  if (m)
9439
9439
  return m;
9440
- const u = (0, n.getFullPath)(this.opts.uriResolver, f.root.baseId), { es5: h, lines: b } = this.opts.code, { ownProperties: _ } = this.opts, E = new t.CodeGen(this.scope, { es5: h, lines: b, ownProperties: _ });
9440
+ const u = (0, n.getFullPath)(this.opts.uriResolver, f.root.baseId), { es5: h, lines: w } = this.opts.code, { ownProperties: _ } = this.opts, E = new t.CodeGen(this.scope, { es5: h, lines: w, ownProperties: _ });
9441
9441
  let $;
9442
9442
  f.$async && ($ = E.scopeValue("Error", {
9443
9443
  ref: e.default,
@@ -9496,10 +9496,10 @@ function Ln() {
9496
9496
  function c(f, m, u) {
9497
9497
  var h;
9498
9498
  u = (0, n.resolveUrl)(this.opts.uriResolver, m, u);
9499
- const b = f.refs[u];
9500
- if (b)
9501
- return b;
9502
- let _ = w.call(this, f, u);
9499
+ const w = f.refs[u];
9500
+ if (w)
9501
+ return w;
9502
+ let _ = b.call(this, f, u);
9503
9503
  if (_ === void 0) {
9504
9504
  const E = (h = f.localRefs) === null || h === void 0 ? void 0 : h[u], { schemaId: $ } = this.opts;
9505
9505
  E && (_ = new i({ schema: E, schemaId: $, root: f, baseId: m }));
@@ -9520,7 +9520,7 @@ function Ln() {
9520
9520
  function p(f, m) {
9521
9521
  return f.schema === m.schema && f.root === m.root && f.baseId === m.baseId;
9522
9522
  }
9523
- function w(f, m) {
9523
+ function b(f, m) {
9524
9524
  let u;
9525
9525
  for (; typeof (u = this.refs[m]) == "string"; )
9526
9526
  m = u;
@@ -9528,8 +9528,8 @@ function Ln() {
9528
9528
  }
9529
9529
  function S(f, m) {
9530
9530
  const u = this.opts.uriResolver.parse(m), h = (0, n._getFullPath)(this.opts.uriResolver, u);
9531
- let b = (0, n.getFullPath)(this.opts.uriResolver, f.baseId, void 0);
9532
- if (Object.keys(f.schema).length > 0 && h === b)
9531
+ let w = (0, n.getFullPath)(this.opts.uriResolver, f.baseId, void 0);
9532
+ if (Object.keys(f.schema).length > 0 && h === w)
9533
9533
  return g.call(this, u, f);
9534
9534
  const _ = (0, n.normalizeId)(h), E = this.refs[_] || this.schemas[_];
9535
9535
  if (typeof E == "string") {
@@ -9539,7 +9539,7 @@ function Ln() {
9539
9539
  if (typeof (E == null ? void 0 : E.schema) == "object") {
9540
9540
  if (E.validate || o.call(this, E), _ === (0, n.normalizeId)(m)) {
9541
9541
  const { schema: $ } = E, { schemaId: A } = this.opts, k = $[A];
9542
- return k && (b = (0, n.resolveUrl)(this.opts.uriResolver, b, k)), new i({ schema: $, schemaId: A, root: f, baseId: b });
9542
+ return k && (w = (0, n.resolveUrl)(this.opts.uriResolver, w, k)), new i({ schema: $, schemaId: A, root: f, baseId: w });
9543
9543
  }
9544
9544
  return g.call(this, u, E);
9545
9545
  }
@@ -9553,8 +9553,8 @@ function Ln() {
9553
9553
  "definitions"
9554
9554
  ]);
9555
9555
  function g(f, { baseId: m, schema: u, root: h }) {
9556
- var b;
9557
- if (((b = f.fragment) === null || b === void 0 ? void 0 : b[0]) !== "/")
9556
+ var w;
9557
+ if (((w = f.fragment) === null || w === void 0 ? void 0 : w[0]) !== "/")
9558
9558
  return;
9559
9559
  for (const $ of f.fragment.slice(1).split("/")) {
9560
9560
  if (typeof u == "boolean")
@@ -9636,10 +9636,10 @@ function Jm() {
9636
9636
  function a(g) {
9637
9637
  let f = 0;
9638
9638
  const m = { error: !1, address: "", zone: "" }, u = [], h = [];
9639
- let b = !1, _ = !1, E = !1;
9639
+ let w = !1, _ = !1, E = !1;
9640
9640
  function $() {
9641
9641
  if (h.length) {
9642
- if (b === !1) {
9642
+ if (w === !1) {
9643
9643
  const A = n(h);
9644
9644
  if (A !== void 0)
9645
9645
  u.push(A);
@@ -9665,13 +9665,13 @@ function Jm() {
9665
9665
  } else if (k === "%") {
9666
9666
  if (!$())
9667
9667
  break;
9668
- b = !0;
9668
+ w = !0;
9669
9669
  } else {
9670
9670
  h.push(k);
9671
9671
  continue;
9672
9672
  }
9673
9673
  }
9674
- return h.length && (b ? m.zone = h.join("") : E ? u.push(h.join("")) : u.push(n(h))), m.address = u.join(""), m;
9674
+ return h.length && (w ? m.zone = h.join("") : E ? u.push(h.join("")) : u.push(n(h))), m.address = u.join(""), m;
9675
9675
  }
9676
9676
  function s(g) {
9677
9677
  if (o(g, ":") < 2)
@@ -9687,9 +9687,9 @@ function Jm() {
9687
9687
  function i(g, f) {
9688
9688
  let m = "", u = !0;
9689
9689
  const h = g.length;
9690
- for (let b = 0; b < h; b++) {
9691
- const _ = g[b];
9692
- _ === "0" && u ? (b + 1 <= h && g[b + 1] === f || b + 1 === h) && (m += _, u = !1) : (_ === f ? u = !0 : u = !1, m += _);
9690
+ for (let w = 0; w < h; w++) {
9691
+ const _ = g[w];
9692
+ _ === "0" && u ? (w + 1 <= h && g[w + 1] === f || w + 1 === h) && (m += _, u = !1) : (_ === f ? u = !0 : u = !1, m += _);
9693
9693
  }
9694
9694
  return m;
9695
9695
  }
@@ -9700,7 +9700,7 @@ function Jm() {
9700
9700
  return m;
9701
9701
  }
9702
9702
  const c = /^\.\.?\//u, l = /^\/\.(?:\/|$)/u, d = /^\/\.\.(?:\/|$)/u, p = /^\/?(?:.|\n)*?(?=\/|$)/u;
9703
- function w(g) {
9703
+ function b(g) {
9704
9704
  const f = [];
9705
9705
  for (; g.length; )
9706
9706
  if (g.match(c))
@@ -9743,7 +9743,7 @@ function Jm() {
9743
9743
  return gn = {
9744
9744
  recomposeAuthority: y,
9745
9745
  normalizeComponentEncoding: S,
9746
- removeDotSegments: w,
9746
+ removeDotSegments: b,
9747
9747
  normalizeIPv4: r,
9748
9748
  normalizeIPv6: s,
9749
9749
  stringArrayToHexStripped: n
@@ -9769,18 +9769,18 @@ function Xm() {
9769
9769
  }
9770
9770
  function i(u) {
9771
9771
  if ((u.port === (r(u) ? 443 : 80) || u.port === "") && (u.port = void 0), typeof u.secure == "boolean" && (u.scheme = u.secure ? "wss" : "ws", u.secure = void 0), u.resourceName) {
9772
- const [h, b] = u.resourceName.split("?");
9773
- u.path = h && h !== "/" ? h : void 0, u.query = b, u.resourceName = void 0;
9772
+ const [h, w] = u.resourceName.split("?");
9773
+ u.path = h && h !== "/" ? h : void 0, u.query = w, u.resourceName = void 0;
9774
9774
  }
9775
9775
  return u.fragment = void 0, u;
9776
9776
  }
9777
9777
  function o(u, h) {
9778
9778
  if (!u.path)
9779
9779
  return u.error = "URN can not be parsed", u;
9780
- const b = u.path.match(e);
9781
- if (b) {
9780
+ const w = u.path.match(e);
9781
+ if (w) {
9782
9782
  const _ = h.scheme || u.scheme || "urn";
9783
- u.nid = b[1].toLowerCase(), u.nss = b[2];
9783
+ u.nid = w[1].toLowerCase(), u.nss = w[2];
9784
9784
  const E = `${_}:${h.nid || u.nid}`, $ = m[E];
9785
9785
  u.path = void 0, $ && (u = $.parse(u, h));
9786
9786
  } else
@@ -9788,14 +9788,14 @@ function Xm() {
9788
9788
  return u;
9789
9789
  }
9790
9790
  function c(u, h) {
9791
- const b = h.scheme || u.scheme || "urn", _ = u.nid.toLowerCase(), E = `${b}:${h.nid || _}`, $ = m[E];
9791
+ const w = h.scheme || u.scheme || "urn", _ = u.nid.toLowerCase(), E = `${w}:${h.nid || _}`, $ = m[E];
9792
9792
  $ && (u = $.serialize(u, h));
9793
9793
  const A = u, k = u.nss;
9794
9794
  return A.path = `${_ || h.nid}:${k}`, h.skipEscape = !0, A;
9795
9795
  }
9796
9796
  function l(u, h) {
9797
- const b = u;
9798
- return b.uuid = b.nss, b.nss = void 0, !h.tolerant && (!b.uuid || !t.test(b.uuid)) && (b.error = b.error || "UUID is not valid."), b;
9797
+ const w = u;
9798
+ return w.uuid = w.nss, w.nss = void 0, !h.tolerant && (!w.uuid || !t.test(w.uuid)) && (w.error = w.error || "UUID is not valid."), w;
9799
9799
  }
9800
9800
  function d(u) {
9801
9801
  const h = u;
@@ -9806,7 +9806,7 @@ function Xm() {
9806
9806
  domainHost: !0,
9807
9807
  parse: n,
9808
9808
  serialize: a
9809
- }, w = {
9809
+ }, b = {
9810
9810
  scheme: "https",
9811
9811
  domainHost: p.domainHost,
9812
9812
  parse: n,
@@ -9823,7 +9823,7 @@ function Xm() {
9823
9823
  serialize: S.serialize
9824
9824
  }, m = {
9825
9825
  http: p,
9826
- https: w,
9826
+ https: b,
9827
9827
  ws: S,
9828
9828
  wss: y,
9829
9829
  urn: {
@@ -9850,12 +9850,12 @@ function Qm() {
9850
9850
  return typeof f == "string" ? f = d(y(f, m), m) : typeof f == "object" && (f = y(d(f, m), m)), f;
9851
9851
  }
9852
9852
  function o(f, m, u) {
9853
- const h = Object.assign({ scheme: "null" }, u), b = c(y(f, h), y(m, h), h, !0);
9854
- return d(b, { ...h, skipEscape: !0 });
9853
+ const h = Object.assign({ scheme: "null" }, u), w = c(y(f, h), y(m, h), h, !0);
9854
+ return d(w, { ...h, skipEscape: !0 });
9855
9855
  }
9856
9856
  function c(f, m, u, h) {
9857
- const b = {};
9858
- return h || (f = y(d(f, u), u), m = y(d(m, u), u)), u = u || {}, !u.tolerant && m.scheme ? (b.scheme = m.scheme, b.userinfo = m.userinfo, b.host = m.host, b.port = m.port, b.path = r(m.path || ""), b.query = m.query) : (m.userinfo !== void 0 || m.host !== void 0 || m.port !== void 0 ? (b.userinfo = m.userinfo, b.host = m.host, b.port = m.port, b.path = r(m.path || ""), b.query = m.query) : (m.path ? (m.path.charAt(0) === "/" ? b.path = r(m.path) : ((f.userinfo !== void 0 || f.host !== void 0 || f.port !== void 0) && !f.path ? b.path = "/" + m.path : f.path ? b.path = f.path.slice(0, f.path.lastIndexOf("/") + 1) + m.path : b.path = m.path, b.path = r(b.path)), b.query = m.query) : (b.path = f.path, m.query !== void 0 ? b.query = m.query : b.query = f.query), b.userinfo = f.userinfo, b.host = f.host, b.port = f.port), b.scheme = f.scheme), b.fragment = m.fragment, b;
9857
+ const w = {};
9858
+ return h || (f = y(d(f, u), u), m = y(d(m, u), u)), u = u || {}, !u.tolerant && m.scheme ? (w.scheme = m.scheme, w.userinfo = m.userinfo, w.host = m.host, w.port = m.port, w.path = r(m.path || ""), w.query = m.query) : (m.userinfo !== void 0 || m.host !== void 0 || m.port !== void 0 ? (w.userinfo = m.userinfo, w.host = m.host, w.port = m.port, w.path = r(m.path || ""), w.query = m.query) : (m.path ? (m.path.charAt(0) === "/" ? w.path = r(m.path) : ((f.userinfo !== void 0 || f.host !== void 0 || f.port !== void 0) && !f.path ? w.path = "/" + m.path : f.path ? w.path = f.path.slice(0, f.path.lastIndexOf("/") + 1) + m.path : w.path = m.path, w.path = r(w.path)), w.query = m.query) : (w.path = f.path, m.query !== void 0 ? w.query = m.query : w.query = f.query), w.userinfo = f.userinfo, w.host = f.host, w.port = f.port), w.scheme = f.scheme), w.fragment = m.fragment, w;
9859
9859
  }
9860
9860
  function l(f, m, u) {
9861
9861
  return typeof f == "string" ? (f = unescape(f), f = d(a(y(f, u), !0), { ...u, skipEscape: !0 })) : typeof f == "object" && (f = d(a(f, !0), { ...u, skipEscape: !0 })), typeof m == "string" ? (m = unescape(m), m = d(a(y(m, u), !0), { ...u, skipEscape: !0 })) : typeof m == "object" && (m = d(a(m, !0), { ...u, skipEscape: !0 })), f.toLowerCase() === m.toLowerCase();
@@ -9876,17 +9876,17 @@ function Qm() {
9876
9876
  resourceName: f.resourceName,
9877
9877
  secure: f.secure,
9878
9878
  error: ""
9879
- }, h = Object.assign({}, m), b = [], _ = s[(h.scheme || u.scheme || "").toLowerCase()];
9880
- _ && _.serialize && _.serialize(u, h), u.path !== void 0 && (h.skipEscape ? u.path = unescape(u.path) : (u.path = escape(u.path), u.scheme !== void 0 && (u.path = u.path.split("%3A").join(":")))), h.reference !== "suffix" && u.scheme && b.push(u.scheme, ":");
9879
+ }, h = Object.assign({}, m), w = [], _ = s[(h.scheme || u.scheme || "").toLowerCase()];
9880
+ _ && _.serialize && _.serialize(u, h), u.path !== void 0 && (h.skipEscape ? u.path = unescape(u.path) : (u.path = escape(u.path), u.scheme !== void 0 && (u.path = u.path.split("%3A").join(":")))), h.reference !== "suffix" && u.scheme && w.push(u.scheme, ":");
9881
9881
  const E = n(u);
9882
- if (E !== void 0 && (h.reference !== "suffix" && b.push("//"), b.push(E), u.path && u.path.charAt(0) !== "/" && b.push("/")), u.path !== void 0) {
9882
+ if (E !== void 0 && (h.reference !== "suffix" && w.push("//"), w.push(E), u.path && u.path.charAt(0) !== "/" && w.push("/")), u.path !== void 0) {
9883
9883
  let $ = u.path;
9884
- !h.absolutePath && (!_ || !_.absolutePath) && ($ = r($)), E === void 0 && ($ = $.replace(/^\/\//u, "/%2F")), b.push($);
9884
+ !h.absolutePath && (!_ || !_.absolutePath) && ($ = r($)), E === void 0 && ($ = $.replace(/^\/\//u, "/%2F")), w.push($);
9885
9885
  }
9886
- return u.query !== void 0 && b.push("?", u.query), u.fragment !== void 0 && b.push("#", u.fragment), b.join("");
9886
+ return u.query !== void 0 && w.push("?", u.query), u.fragment !== void 0 && w.push("#", u.fragment), w.join("");
9887
9887
  }
9888
9888
  const p = Array.from({ length: 127 }, (f, m) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(m)));
9889
- function w(f) {
9889
+ function b(f) {
9890
9890
  let m = 0;
9891
9891
  for (let u = 0, h = f.length; u < h; ++u)
9892
9892
  if (m = f.charCodeAt(u), m > 126 || p[m])
@@ -9903,7 +9903,7 @@ function Qm() {
9903
9903
  path: "",
9904
9904
  query: void 0,
9905
9905
  fragment: void 0
9906
- }, b = f.indexOf("%") !== -1;
9906
+ }, w = f.indexOf("%") !== -1;
9907
9907
  let _ = !1;
9908
9908
  u.reference === "suffix" && (f = (u.scheme ? u.scheme + ":" : "") + "//" + f);
9909
9909
  const E = f.match(S);
@@ -9918,13 +9918,13 @@ function Qm() {
9918
9918
  }
9919
9919
  h.scheme === void 0 && h.userinfo === void 0 && h.host === void 0 && h.port === void 0 && h.query === void 0 && !h.path ? h.reference = "same-document" : h.scheme === void 0 ? h.reference = "relative" : h.fragment === void 0 ? h.reference = "absolute" : h.reference = "uri", u.reference && u.reference !== "suffix" && u.reference !== h.reference && (h.error = h.error || "URI is not a " + u.reference + " reference.");
9920
9920
  const $ = s[(u.scheme || h.scheme || "").toLowerCase()];
9921
- if (!u.unicodeSupport && (!$ || !$.unicodeSupport) && h.host && (u.domainHost || $ && $.domainHost) && _ === !1 && w(h.host))
9921
+ if (!u.unicodeSupport && (!$ || !$.unicodeSupport) && h.host && (u.domainHost || $ && $.domainHost) && _ === !1 && b(h.host))
9922
9922
  try {
9923
9923
  h.host = URL.domainToASCII(h.host.toLowerCase());
9924
9924
  } catch (A) {
9925
9925
  h.error = h.error || "Host's domain name can not be converted to ASCII: " + A;
9926
9926
  }
9927
- (!$ || $ && !$.skipNormalize) && (b && h.scheme !== void 0 && (h.scheme = unescape(h.scheme)), b && h.host !== void 0 && (h.host = unescape(h.host)), h.path && (h.path = escape(unescape(h.path))), h.fragment && (h.fragment = encodeURI(decodeURIComponent(h.fragment)))), $ && $.parse && $.parse(h, u);
9927
+ (!$ || $ && !$.skipNormalize) && (w && h.scheme !== void 0 && (h.scheme = unescape(h.scheme)), w && h.host !== void 0 && (h.host = unescape(h.host)), h.path && (h.path = escape(unescape(h.path))), h.fragment && (h.fragment = encodeURI(decodeURIComponent(h.fragment)))), $ && $.parse && $.parse(h, u);
9928
9928
  } else
9929
9929
  h.error = h.error || "URI can not be parsed.";
9930
9930
  return h;
@@ -9969,7 +9969,7 @@ function ep() {
9969
9969
  } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
9970
9970
  return r.CodeGen;
9971
9971
  } });
9972
- const n = kn(), a = Br(), s = ro(), i = Ln(), o = X(), c = Vr(), l = Dr(), d = te(), p = Km, w = Zm(), S = (M, O) => new RegExp(M, O);
9972
+ const n = kn(), a = Br(), s = ro(), i = Ln(), o = X(), c = Vr(), l = Dr(), d = te(), p = Km, b = Zm(), S = (M, O) => new RegExp(M, O);
9973
9973
  S.code = "new RegExp";
9974
9974
  const y = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
9975
9975
  "validate",
@@ -10008,7 +10008,7 @@ function ep() {
10008
10008
  }, u = 200;
10009
10009
  function h(M) {
10010
10010
  var O, I, T, v, R, C, V, B, re, Z, P, N, L, x, H, J, me, Ae, ve, Ee, pe, Xe, Re, Wr, Gr;
10011
- const pt = M.strict, Kr = (O = M.code) === null || O === void 0 ? void 0 : O.optimize, qn = Kr === !0 || Kr === void 0 ? 1 : Kr || 0, jn = (T = (I = M.code) === null || I === void 0 ? void 0 : I.regExp) !== null && T !== void 0 ? T : S, co = (v = M.uriResolver) !== null && v !== void 0 ? v : w.default;
10011
+ const pt = M.strict, Kr = (O = M.code) === null || O === void 0 ? void 0 : O.optimize, qn = Kr === !0 || Kr === void 0 ? 1 : Kr || 0, jn = (T = (I = M.code) === null || I === void 0 ? void 0 : I.regExp) !== null && T !== void 0 ? T : S, co = (v = M.uriResolver) !== null && v !== void 0 ? v : b.default;
10012
10012
  return {
10013
10013
  strictSchema: (C = (R = M.strictSchema) !== null && R !== void 0 ? R : pt) !== null && C !== void 0 ? C : !0,
10014
10014
  strictNumbers: (B = (V = M.strictNumbers) !== null && V !== void 0 ? V : pt) !== null && B !== void 0 ? B : !0,
@@ -10030,7 +10030,7 @@ function ep() {
10030
10030
  uriResolver: co
10031
10031
  };
10032
10032
  }
10033
- class b {
10033
+ class w {
10034
10034
  constructor(O = {}) {
10035
10035
  this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), O = this.opts = { ...O, ...h(O) };
10036
10036
  const { es5: I, lines: T } = this.opts.code;
@@ -10289,7 +10289,7 @@ function ep() {
10289
10289
  }
10290
10290
  }
10291
10291
  }
10292
- b.ValidationError = n.default, b.MissingRefError = a.default, t.default = b;
10292
+ w.ValidationError = n.default, w.MissingRefError = a.default, t.default = w;
10293
10293
  function _(M, O, I, T = "error") {
10294
10294
  for (const v in M) {
10295
10295
  const R = v;
@@ -10410,16 +10410,16 @@ function rp() {
10410
10410
  keyword: "$ref",
10411
10411
  schemaType: "string",
10412
10412
  code(l) {
10413
- const { gen: d, schema: p, it: w } = l, { baseId: S, schemaEnv: y, validateName: g, opts: f, self: m } = w, { root: u } = y;
10413
+ const { gen: d, schema: p, it: b } = l, { baseId: S, schemaEnv: y, validateName: g, opts: f, self: m } = b, { root: u } = y;
10414
10414
  if ((p === "#" || p === "#/") && S === u.baseId)
10415
- return b();
10415
+ return w();
10416
10416
  const h = a.resolveRef.call(m, u, S, p);
10417
10417
  if (h === void 0)
10418
- throw new t.default(w.opts.uriResolver, S, p);
10418
+ throw new t.default(b.opts.uriResolver, S, p);
10419
10419
  if (h instanceof a.SchemaEnv)
10420
10420
  return _(h);
10421
10421
  return E(h);
10422
- function b() {
10422
+ function w() {
10423
10423
  if (y === u)
10424
10424
  return c(l, g, y, y.$async);
10425
10425
  const $ = d.scopeValue("root", { ref: u });
@@ -10446,9 +10446,9 @@ function rp() {
10446
10446
  return d.validate ? p.scopeValue("validate", { ref: d.validate }) : (0, r._)`${p.scopeValue("wrapper", { ref: d })}.validate`;
10447
10447
  }
10448
10448
  Ue.getValidate = o;
10449
- function c(l, d, p, w) {
10449
+ function c(l, d, p, b) {
10450
10450
  const { gen: S, it: y } = l, { allErrors: g, schemaEnv: f, opts: m } = y, u = m.passContext ? n.default.this : r.nil;
10451
- w ? h() : b();
10451
+ b ? h() : w();
10452
10452
  function h() {
10453
10453
  if (!f.$async)
10454
10454
  throw new Error("async schema referenced by sync schema");
@@ -10459,7 +10459,7 @@ function rp() {
10459
10459
  S.if((0, r._)`!(${A} instanceof ${y.ValidationError})`, () => S.throw(A)), _(A), g || S.assign($, !1);
10460
10460
  }), l.ok($);
10461
10461
  }
10462
- function b() {
10462
+ function w() {
10463
10463
  l.result((0, e.callValidateCode)(l, d, u), () => E(d), () => _(d));
10464
10464
  }
10465
10465
  function _($) {
@@ -10586,10 +10586,10 @@ function op() {
10586
10586
  };
10587
10587
  return zt.default = a, zt;
10588
10588
  }
10589
- var Gt = {}, ws;
10589
+ var Gt = {}, bs;
10590
10590
  function cp() {
10591
- if (ws) return Gt;
10592
- ws = 1, Object.defineProperty(Gt, "__esModule", { value: !0 });
10591
+ if (bs) return Gt;
10592
+ bs = 1, Object.defineProperty(Gt, "__esModule", { value: !0 });
10593
10593
  const t = Ce(), e = X(), n = {
10594
10594
  keyword: "pattern",
10595
10595
  type: "string",
@@ -10606,10 +10606,10 @@ function cp() {
10606
10606
  };
10607
10607
  return Gt.default = n, Gt;
10608
10608
  }
10609
- var Kt = {}, bs;
10609
+ var Kt = {}, ws;
10610
10610
  function up() {
10611
- if (bs) return Kt;
10612
- bs = 1, Object.defineProperty(Kt, "__esModule", { value: !0 });
10611
+ if (ws) return Kt;
10612
+ ws = 1, Object.defineProperty(Kt, "__esModule", { value: !0 });
10613
10613
  const t = X(), r = {
10614
10614
  keyword: ["maxProperties", "minProperties"],
10615
10615
  type: "object",
@@ -10643,15 +10643,15 @@ function lp() {
10643
10643
  params: ({ params: { missingProperty: s } }) => (0, e._)`{missingProperty: ${s}}`
10644
10644
  },
10645
10645
  code(s) {
10646
- const { gen: i, schema: o, schemaCode: c, data: l, $data: d, it: p } = s, { opts: w } = p;
10646
+ const { gen: i, schema: o, schemaCode: c, data: l, $data: d, it: p } = s, { opts: b } = p;
10647
10647
  if (!d && o.length === 0)
10648
10648
  return;
10649
- const S = o.length >= w.loopRequired;
10650
- if (p.allErrors ? y() : g(), w.strictRequired) {
10649
+ const S = o.length >= b.loopRequired;
10650
+ if (p.allErrors ? y() : g(), b.strictRequired) {
10651
10651
  const u = s.parentSchema.properties, { definedProperties: h } = s.it;
10652
- for (const b of o)
10653
- if ((u == null ? void 0 : u[b]) === void 0 && !h.has(b)) {
10654
- const _ = p.schemaEnv.baseId + p.errSchemaPath, E = `required property "${b}" is not defined at "${_}" (strictRequired)`;
10652
+ for (const w of o)
10653
+ if ((u == null ? void 0 : u[w]) === void 0 && !h.has(w)) {
10654
+ const _ = p.schemaEnv.baseId + p.errSchemaPath, E = `required property "${w}" is not defined at "${_}" (strictRequired)`;
10655
10655
  (0, r.checkStrictMode)(p, E, p.opts.strictRequired);
10656
10656
  }
10657
10657
  }
@@ -10672,12 +10672,12 @@ function lp() {
10672
10672
  }
10673
10673
  function f() {
10674
10674
  i.forOf("prop", c, (u) => {
10675
- s.setParams({ missingProperty: u }), i.if((0, t.noPropertyInData)(i, l, u, w.ownProperties), () => s.error());
10675
+ s.setParams({ missingProperty: u }), i.if((0, t.noPropertyInData)(i, l, u, b.ownProperties), () => s.error());
10676
10676
  });
10677
10677
  }
10678
10678
  function m(u, h) {
10679
10679
  s.setParams({ missingProperty: u }), i.forOf(u, c, () => {
10680
- i.assign(h, (0, t.propertyInData)(i, l, u, w.ownProperties)), i.if((0, e.not)(h), () => {
10680
+ i.assign(h, (0, t.propertyInData)(i, l, u, b.ownProperties)), i.if((0, e.not)(h), () => {
10681
10681
  s.error(), i.break();
10682
10682
  });
10683
10683
  }, e.nil);
@@ -10730,29 +10730,29 @@ function fp() {
10730
10730
  params: ({ params: { i, j: o } }) => (0, e._)`{i: ${i}, j: ${o}}`
10731
10731
  },
10732
10732
  code(i) {
10733
- const { gen: o, data: c, $data: l, schema: d, parentSchema: p, schemaCode: w, it: S } = i;
10733
+ const { gen: o, data: c, $data: l, schema: d, parentSchema: p, schemaCode: b, it: S } = i;
10734
10734
  if (!l && !d)
10735
10735
  return;
10736
10736
  const y = o.let("valid"), g = p.items ? (0, t.getSchemaTypes)(p.items) : [];
10737
- i.block$data(y, f, (0, e._)`${w} === false`), i.ok(y);
10737
+ i.block$data(y, f, (0, e._)`${b} === false`), i.ok(y);
10738
10738
  function f() {
10739
- const b = o.let("i", (0, e._)`${c}.length`), _ = o.let("j");
10740
- i.setParams({ i: b, j: _ }), o.assign(y, !0), o.if((0, e._)`${b} > 1`, () => (m() ? u : h)(b, _));
10739
+ const w = o.let("i", (0, e._)`${c}.length`), _ = o.let("j");
10740
+ i.setParams({ i: w, j: _ }), o.assign(y, !0), o.if((0, e._)`${w} > 1`, () => (m() ? u : h)(w, _));
10741
10741
  }
10742
10742
  function m() {
10743
- return g.length > 0 && !g.some((b) => b === "object" || b === "array");
10743
+ return g.length > 0 && !g.some((w) => w === "object" || w === "array");
10744
10744
  }
10745
- function u(b, _) {
10745
+ function u(w, _) {
10746
10746
  const E = o.name("item"), $ = (0, t.checkDataTypes)(g, E, S.opts.strictNumbers, t.DataType.Wrong), A = o.const("indices", (0, e._)`{}`);
10747
- o.for((0, e._)`;${b}--;`, () => {
10748
- o.let(E, (0, e._)`${c}[${b}]`), o.if($, (0, e._)`continue`), g.length > 1 && o.if((0, e._)`typeof ${E} == "string"`, (0, e._)`${E} += "_"`), o.if((0, e._)`typeof ${A}[${E}] == "number"`, () => {
10747
+ o.for((0, e._)`;${w}--;`, () => {
10748
+ o.let(E, (0, e._)`${c}[${w}]`), o.if($, (0, e._)`continue`), g.length > 1 && o.if((0, e._)`typeof ${E} == "string"`, (0, e._)`${E} += "_"`), o.if((0, e._)`typeof ${A}[${E}] == "number"`, () => {
10749
10749
  o.assign(_, (0, e._)`${A}[${E}]`), i.error(), o.assign(y, !1).break();
10750
- }).code((0, e._)`${A}[${E}] = ${b}`);
10750
+ }).code((0, e._)`${A}[${E}] = ${w}`);
10751
10751
  });
10752
10752
  }
10753
- function h(b, _) {
10753
+ function h(w, _) {
10754
10754
  const E = (0, r.useFunc)(o, n.default), $ = o.name("outer");
10755
- o.label($).for((0, e._)`;${b}--;`, () => o.for((0, e._)`${_} = ${b}; ${_}--;`, () => o.if((0, e._)`${E}(${c}[${b}], ${c}[${_}])`, () => {
10755
+ o.label($).for((0, e._)`;${w}--;`, () => o.for((0, e._)`${_} = ${w}; ${_}--;`, () => o.if((0, e._)`${E}(${c}[${w}], ${c}[${_}])`, () => {
10756
10756
  i.error(), o.assign(y, !1).break($);
10757
10757
  })));
10758
10758
  }
@@ -10794,25 +10794,25 @@ function mp() {
10794
10794
  const { gen: i, data: o, $data: c, schema: l, schemaCode: d, it: p } = s;
10795
10795
  if (!c && l.length === 0)
10796
10796
  throw new Error("enum must have non-empty array");
10797
- const w = l.length >= p.opts.loopEnum;
10797
+ const b = l.length >= p.opts.loopEnum;
10798
10798
  let S;
10799
10799
  const y = () => S ?? (S = (0, e.useFunc)(i, r.default));
10800
10800
  let g;
10801
- if (w || c)
10801
+ if (b || c)
10802
10802
  g = i.let("valid"), s.block$data(g, f);
10803
10803
  else {
10804
10804
  if (!Array.isArray(l))
10805
10805
  throw new Error("ajv implementation error");
10806
10806
  const u = i.const("vSchema", d);
10807
- g = (0, t.or)(...l.map((h, b) => m(u, b)));
10807
+ g = (0, t.or)(...l.map((h, w) => m(u, w)));
10808
10808
  }
10809
10809
  s.pass(g);
10810
10810
  function f() {
10811
10811
  i.assign(g, !1), i.forOf("v", d, (u) => i.if((0, t._)`${y()}(${o}, ${u})`, () => i.assign(g, !0).break()));
10812
10812
  }
10813
10813
  function m(u, h) {
10814
- const b = l[h];
10815
- return typeof b == "object" && b !== null ? (0, t._)`${y()}(${o}, ${u}[${h}])` : (0, t._)`${o} === ${b}`;
10814
+ const w = l[h];
10815
+ return typeof w == "object" && w !== null ? (0, t._)`${y()}(${o}, ${u}[${h}])` : (0, t._)`${o} === ${w}`;
10816
10816
  }
10817
10817
  }
10818
10818
  };
@@ -10868,15 +10868,15 @@ function so() {
10868
10868
  function a(s, i) {
10869
10869
  const { gen: o, schema: c, data: l, keyword: d, it: p } = s;
10870
10870
  p.items = !0;
10871
- const w = o.const("len", (0, t._)`${l}.length`);
10871
+ const b = o.const("len", (0, t._)`${l}.length`);
10872
10872
  if (c === !1)
10873
- s.setParams({ len: i.length }), s.pass((0, t._)`${w} <= ${i.length}`);
10873
+ s.setParams({ len: i.length }), s.pass((0, t._)`${b} <= ${i.length}`);
10874
10874
  else if (typeof c == "object" && !(0, e.alwaysValidSchema)(p, c)) {
10875
- const y = o.var("valid", (0, t._)`${w} <= ${i.length}`);
10875
+ const y = o.var("valid", (0, t._)`${b} <= ${i.length}`);
10876
10876
  o.if((0, t.not)(y), () => S(y)), s.ok(y);
10877
10877
  }
10878
10878
  function S(y) {
10879
- o.forRange("i", i.length, w, (g) => {
10879
+ o.forRange("i", i.length, b, (g) => {
10880
10880
  s.subschema({ keyword: d, dataProp: g, dataPropType: e.Type.Num }, y), p.allErrors || o.if((0, t.not)(y), () => o.break());
10881
10881
  });
10882
10882
  }
@@ -10900,21 +10900,21 @@ function io() {
10900
10900
  }
10901
10901
  };
10902
10902
  function a(s, i, o = s.schema) {
10903
- const { gen: c, parentSchema: l, data: d, keyword: p, it: w } = s;
10904
- g(l), w.opts.unevaluated && o.length && w.items !== !0 && (w.items = e.mergeEvaluated.items(c, o.length, w.items));
10903
+ const { gen: c, parentSchema: l, data: d, keyword: p, it: b } = s;
10904
+ g(l), b.opts.unevaluated && o.length && b.items !== !0 && (b.items = e.mergeEvaluated.items(c, o.length, b.items));
10905
10905
  const S = c.name("valid"), y = c.const("len", (0, t._)`${d}.length`);
10906
10906
  o.forEach((f, m) => {
10907
- (0, e.alwaysValidSchema)(w, f) || (c.if((0, t._)`${y} > ${m}`, () => s.subschema({
10907
+ (0, e.alwaysValidSchema)(b, f) || (c.if((0, t._)`${y} > ${m}`, () => s.subschema({
10908
10908
  keyword: p,
10909
10909
  schemaProp: m,
10910
10910
  dataProp: m
10911
10911
  }, S)), s.ok(S));
10912
10912
  });
10913
10913
  function g(f) {
10914
- const { opts: m, errSchemaPath: u } = w, h = o.length, b = h === f.minItems && (h === f.maxItems || f[i] === !1);
10915
- if (m.strictTuples && !b) {
10914
+ const { opts: m, errSchemaPath: u } = b, h = o.length, w = h === f.minItems && (h === f.maxItems || f[i] === !1);
10915
+ if (m.strictTuples && !w) {
10916
10916
  const _ = `"${p}" is ${h}-tuple, but minItems or maxItems/${i} are not specified or different at path "${u}"`;
10917
- (0, e.checkStrictMode)(w, _, m.strictTuples);
10917
+ (0, e.checkStrictMode)(b, _, m.strictTuples);
10918
10918
  }
10919
10919
  }
10920
10920
  }
@@ -10954,7 +10954,7 @@ function yp() {
10954
10954
  return nr.default = s, nr;
10955
10955
  }
10956
10956
  var ar = {}, Ds;
10957
- function wp() {
10957
+ function bp() {
10958
10958
  if (Ds) return ar;
10959
10959
  Ds = 1, Object.defineProperty(ar, "__esModule", { value: !0 });
10960
10960
  const t = X(), e = te(), n = {
@@ -10970,8 +10970,8 @@ function wp() {
10970
10970
  code(a) {
10971
10971
  const { gen: s, schema: i, parentSchema: o, data: c, it: l } = a;
10972
10972
  let d, p;
10973
- const { minContains: w, maxContains: S } = o;
10974
- l.opts.next ? (d = w === void 0 ? 1 : w, p = S) : d = 1;
10973
+ const { minContains: b, maxContains: S } = o;
10974
+ l.opts.next ? (d = b === void 0 ? 1 : b, p = S) : d = 1;
10975
10975
  const y = s.const("len", (0, t._)`${c}.length`);
10976
10976
  if (a.setParams({ min: d, max: p }), p === void 0 && d === 0) {
10977
10977
  (0, e.checkStrictMode)(l, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
@@ -10990,17 +10990,17 @@ function wp() {
10990
10990
  const g = s.name("valid");
10991
10991
  p === void 0 && d === 1 ? m(g, () => s.if(g, () => s.break())) : d === 0 ? (s.let(g, !0), p !== void 0 && s.if((0, t._)`${c}.length > 0`, f)) : (s.let(g, !1), f()), a.result(g, () => a.reset());
10992
10992
  function f() {
10993
- const h = s.name("_valid"), b = s.let("count", 0);
10994
- m(h, () => s.if(h, () => u(b)));
10993
+ const h = s.name("_valid"), w = s.let("count", 0);
10994
+ m(h, () => s.if(h, () => u(w)));
10995
10995
  }
10996
- function m(h, b) {
10996
+ function m(h, w) {
10997
10997
  s.forRange("i", 0, y, (_) => {
10998
10998
  a.subschema({
10999
10999
  keyword: "contains",
11000
11000
  dataProp: _,
11001
11001
  dataPropType: e.Type.Num,
11002
11002
  compositeRule: !0
11003
- }, h), b();
11003
+ }, h), w();
11004
11004
  });
11005
11005
  }
11006
11006
  function u(h) {
@@ -11010,8 +11010,8 @@ function wp() {
11010
11010
  };
11011
11011
  return ar.default = n, ar;
11012
11012
  }
11013
- var wn = {}, Cs;
11014
- function bp() {
11013
+ var bn = {}, Cs;
11014
+ function wp() {
11015
11015
  return Cs || (Cs = 1, (function(t) {
11016
11016
  Object.defineProperty(t, "__esModule", { value: !0 }), t.validateSchemaDeps = t.validatePropertyDeps = t.error = void 0;
11017
11017
  const e = X(), r = te(), n = Ce();
@@ -11041,13 +11041,13 @@ function bp() {
11041
11041
  for (const p in c) {
11042
11042
  if (p === "__proto__")
11043
11043
  continue;
11044
- const w = Array.isArray(c[p]) ? l : d;
11045
- w[p] = c[p];
11044
+ const b = Array.isArray(c[p]) ? l : d;
11045
+ b[p] = c[p];
11046
11046
  }
11047
11047
  return [l, d];
11048
11048
  }
11049
11049
  function i(c, l = c.schema) {
11050
- const { gen: d, data: p, it: w } = c;
11050
+ const { gen: d, data: p, it: b } = c;
11051
11051
  if (Object.keys(l).length === 0)
11052
11052
  return;
11053
11053
  const S = d.let("missing");
@@ -11055,12 +11055,12 @@ function bp() {
11055
11055
  const g = l[y];
11056
11056
  if (g.length === 0)
11057
11057
  continue;
11058
- const f = (0, n.propertyInData)(d, p, y, w.opts.ownProperties);
11058
+ const f = (0, n.propertyInData)(d, p, y, b.opts.ownProperties);
11059
11059
  c.setParams({
11060
11060
  property: y,
11061
11061
  depsCount: g.length,
11062
11062
  deps: g.join(", ")
11063
- }), w.allErrors ? d.if(f, () => {
11063
+ }), b.allErrors ? d.if(f, () => {
11064
11064
  for (const m of g)
11065
11065
  (0, n.checkReportMissingProp)(c, m);
11066
11066
  }) : (d.if((0, e._)`${f} && (${(0, n.checkMissingProp)(c, g, S)})`), (0, n.reportMissingProp)(c, S), d.else());
@@ -11068,12 +11068,12 @@ function bp() {
11068
11068
  }
11069
11069
  t.validatePropertyDeps = i;
11070
11070
  function o(c, l = c.schema) {
11071
- const { gen: d, data: p, keyword: w, it: S } = c, y = d.name("valid");
11071
+ const { gen: d, data: p, keyword: b, it: S } = c, y = d.name("valid");
11072
11072
  for (const g in l)
11073
11073
  (0, r.alwaysValidSchema)(S, l[g]) || (d.if(
11074
11074
  (0, n.propertyInData)(d, p, g, S.opts.ownProperties),
11075
11075
  () => {
11076
- const f = c.subschema({ keyword: w, schemaProp: g }, y);
11076
+ const f = c.subschema({ keyword: b, schemaProp: g }, y);
11077
11077
  c.mergeValidEvaluated(f, y);
11078
11078
  },
11079
11079
  () => d.var(y, !0)
@@ -11081,7 +11081,7 @@ function bp() {
11081
11081
  ), c.ok(y));
11082
11082
  }
11083
11083
  t.validateSchemaDeps = o, t.default = a;
11084
- })(wn)), wn;
11084
+ })(bn)), bn;
11085
11085
  }
11086
11086
  var sr = {}, Is;
11087
11087
  function vp() {
@@ -11130,23 +11130,23 @@ function oo() {
11130
11130
  params: ({ params: i }) => (0, e._)`{additionalProperty: ${i.additionalProperty}}`
11131
11131
  },
11132
11132
  code(i) {
11133
- const { gen: o, schema: c, parentSchema: l, data: d, errsCount: p, it: w } = i;
11133
+ const { gen: o, schema: c, parentSchema: l, data: d, errsCount: p, it: b } = i;
11134
11134
  if (!p)
11135
11135
  throw new Error("ajv implementation error");
11136
- const { allErrors: S, opts: y } = w;
11137
- if (w.props = !0, y.removeAdditional !== "all" && (0, n.alwaysValidSchema)(w, c))
11136
+ const { allErrors: S, opts: y } = b;
11137
+ if (b.props = !0, y.removeAdditional !== "all" && (0, n.alwaysValidSchema)(b, c))
11138
11138
  return;
11139
11139
  const g = (0, t.allSchemaProperties)(l.properties), f = (0, t.allSchemaProperties)(l.patternProperties);
11140
11140
  m(), i.ok((0, e._)`${p} === ${r.default.errors}`);
11141
11141
  function m() {
11142
11142
  o.forIn("key", d, (E) => {
11143
- !g.length && !f.length ? b(E) : o.if(u(E), () => b(E));
11143
+ !g.length && !f.length ? w(E) : o.if(u(E), () => w(E));
11144
11144
  });
11145
11145
  }
11146
11146
  function u(E) {
11147
11147
  let $;
11148
11148
  if (g.length > 8) {
11149
- const A = (0, n.schemaRefOrVal)(w, l.properties, "properties");
11149
+ const A = (0, n.schemaRefOrVal)(b, l.properties, "properties");
11150
11150
  $ = (0, t.isOwnProperty)(o, A, E);
11151
11151
  } else g.length ? $ = (0, e.or)(...g.map((A) => (0, e._)`${E} === ${A}`)) : $ = e.nil;
11152
11152
  return f.length && ($ = (0, e.or)($, ...f.map((A) => (0, e._)`${(0, t.usePattern)(i, A)}.test(${E})`))), (0, e.not)($);
@@ -11154,7 +11154,7 @@ function oo() {
11154
11154
  function h(E) {
11155
11155
  o.code((0, e._)`delete ${d}[${E}]`);
11156
11156
  }
11157
- function b(E) {
11157
+ function w(E) {
11158
11158
  if (y.removeAdditional === "all" || y.removeAdditional && c === !1) {
11159
11159
  h(E);
11160
11160
  return;
@@ -11163,7 +11163,7 @@ function oo() {
11163
11163
  i.setParams({ additionalProperty: E }), i.error(), S || o.break();
11164
11164
  return;
11165
11165
  }
11166
- if (typeof c == "object" && !(0, n.alwaysValidSchema)(w, c)) {
11166
+ if (typeof c == "object" && !(0, n.alwaysValidSchema)(b, c)) {
11167
11167
  const $ = o.name("valid");
11168
11168
  y.removeAdditional === "failing" ? (_(E, $, !1), o.if((0, e.not)($), () => {
11169
11169
  i.reset(), h(E);
@@ -11201,11 +11201,11 @@ function Ep() {
11201
11201
  for (const f of p)
11202
11202
  d.definedProperties.add(f);
11203
11203
  d.opts.unevaluated && p.length && d.props !== !0 && (d.props = r.mergeEvaluated.props(i, (0, r.toHash)(p), d.props));
11204
- const w = p.filter((f) => !(0, r.alwaysValidSchema)(d, o[f]));
11205
- if (w.length === 0)
11204
+ const b = p.filter((f) => !(0, r.alwaysValidSchema)(d, o[f]));
11205
+ if (b.length === 0)
11206
11206
  return;
11207
11207
  const S = i.name("valid");
11208
- for (const f of w)
11208
+ for (const f of b)
11209
11209
  y(f) ? g(f) : (i.if((0, e.propertyInData)(i, l, f, d.opts.ownProperties)), g(f), d.allErrors || i.else().var(S, !0), i.endIf()), s.it.definedProperties.add(f), s.ok(S);
11210
11210
  function y(f) {
11211
11211
  return d.opts.useDefaults && !d.compositeRule && o[f].default !== void 0;
@@ -11230,28 +11230,28 @@ function _p() {
11230
11230
  type: "object",
11231
11231
  schemaType: "object",
11232
11232
  code(s) {
11233
- const { gen: i, schema: o, data: c, parentSchema: l, it: d } = s, { opts: p } = d, w = (0, t.allSchemaProperties)(o), S = w.filter((b) => (0, r.alwaysValidSchema)(d, o[b]));
11234
- if (w.length === 0 || S.length === w.length && (!d.opts.unevaluated || d.props === !0))
11233
+ const { gen: i, schema: o, data: c, parentSchema: l, it: d } = s, { opts: p } = d, b = (0, t.allSchemaProperties)(o), S = b.filter((w) => (0, r.alwaysValidSchema)(d, o[w]));
11234
+ if (b.length === 0 || S.length === b.length && (!d.opts.unevaluated || d.props === !0))
11235
11235
  return;
11236
11236
  const y = p.strictSchema && !p.allowMatchingProperties && l.properties, g = i.name("valid");
11237
11237
  d.props !== !0 && !(d.props instanceof e.Name) && (d.props = (0, n.evaluatedPropsToName)(i, d.props));
11238
11238
  const { props: f } = d;
11239
11239
  m();
11240
11240
  function m() {
11241
- for (const b of w)
11242
- y && u(b), d.allErrors ? h(b) : (i.var(g, !0), h(b), i.if(g));
11241
+ for (const w of b)
11242
+ y && u(w), d.allErrors ? h(w) : (i.var(g, !0), h(w), i.if(g));
11243
11243
  }
11244
- function u(b) {
11244
+ function u(w) {
11245
11245
  for (const _ in y)
11246
- new RegExp(b).test(_) && (0, r.checkStrictMode)(d, `property ${_} matches pattern ${b} (use allowMatchingProperties)`);
11246
+ new RegExp(w).test(_) && (0, r.checkStrictMode)(d, `property ${_} matches pattern ${w} (use allowMatchingProperties)`);
11247
11247
  }
11248
- function h(b) {
11248
+ function h(w) {
11249
11249
  i.forIn("key", c, (_) => {
11250
- i.if((0, e._)`${(0, t.usePattern)(s, b)}.test(${_})`, () => {
11251
- const E = S.includes(b);
11250
+ i.if((0, e._)`${(0, t.usePattern)(s, w)}.test(${_})`, () => {
11251
+ const E = S.includes(w);
11252
11252
  E || s.subschema({
11253
11253
  keyword: "patternProperties",
11254
- schemaProp: b,
11254
+ schemaProp: w,
11255
11255
  dataProp: _,
11256
11256
  dataPropType: n.Type.Str
11257
11257
  }, g), d.opts.unevaluated && f !== !0 ? i.assign((0, e._)`${f}[${_}]`, !0) : !E && !d.allErrors && i.if((0, e.not)(g), () => i.break());
@@ -11319,16 +11319,16 @@ function Rp() {
11319
11319
  throw new Error("ajv implementation error");
11320
11320
  if (c.opts.discriminator && o.discriminator)
11321
11321
  return;
11322
- const l = i, d = s.let("valid", !1), p = s.let("passing", null), w = s.name("_valid");
11322
+ const l = i, d = s.let("valid", !1), p = s.let("passing", null), b = s.name("_valid");
11323
11323
  a.setParams({ passing: p }), s.block(S), a.result(d, () => a.reset(), () => a.error(!0));
11324
11324
  function S() {
11325
11325
  l.forEach((y, g) => {
11326
11326
  let f;
11327
- (0, e.alwaysValidSchema)(c, y) ? s.var(w, !0) : f = a.subschema({
11327
+ (0, e.alwaysValidSchema)(c, y) ? s.var(b, !0) : f = a.subschema({
11328
11328
  keyword: "oneOf",
11329
11329
  schemaProp: g,
11330
11330
  compositeRule: !0
11331
- }, w), g > 0 && s.if((0, t._)`${w} && ${d}`).assign(d, !1).assign(p, (0, t._)`[${p}, ${g}]`).else(), s.if(w, () => {
11331
+ }, b), g > 0 && s.if((0, t._)`${b} && ${d}`).assign(d, !1).assign(p, (0, t._)`[${p}, ${g}]`).else(), s.if(b, () => {
11332
11332
  s.assign(d, !0), s.assign(p, g), f && a.mergeEvaluated(f, t.Name);
11333
11333
  });
11334
11334
  });
@@ -11377,11 +11377,11 @@ function Op() {
11377
11377
  const l = a(c, "then"), d = a(c, "else");
11378
11378
  if (!l && !d)
11379
11379
  return;
11380
- const p = i.let("valid", !0), w = i.name("_valid");
11380
+ const p = i.let("valid", !0), b = i.name("_valid");
11381
11381
  if (S(), s.reset(), l && d) {
11382
11382
  const g = i.let("ifClause");
11383
- s.setParams({ ifClause: g }), i.if(w, y("then", g), y("else", g));
11384
- } else l ? i.if(w, y("then")) : i.if((0, t.not)(w), y("else"));
11383
+ s.setParams({ ifClause: g }), i.if(b, y("then", g), y("else", g));
11384
+ } else l ? i.if(b, y("then")) : i.if((0, t.not)(b), y("else"));
11385
11385
  s.pass(p, () => s.error(!0));
11386
11386
  function S() {
11387
11387
  const g = s.subschema({
@@ -11389,13 +11389,13 @@ function Op() {
11389
11389
  compositeRule: !0,
11390
11390
  createErrors: !1,
11391
11391
  allErrors: !1
11392
- }, w);
11392
+ }, b);
11393
11393
  s.mergeEvaluated(g);
11394
11394
  }
11395
11395
  function y(g, f) {
11396
11396
  return () => {
11397
- const m = s.subschema({ keyword: g }, w);
11398
- i.assign(p, w), s.mergeValidEvaluated(m, p), f ? i.assign(f, (0, t._)`${g}`) : s.setParams({ ifClause: g });
11397
+ const m = s.subschema({ keyword: g }, b);
11398
+ i.assign(p, b), s.mergeValidEvaluated(m, p), f ? i.assign(f, (0, t._)`${g}`) : s.setParams({ ifClause: g });
11399
11399
  };
11400
11400
  }
11401
11401
  }
@@ -11423,13 +11423,13 @@ var Hs;
11423
11423
  function Tp() {
11424
11424
  if (Hs) return tr;
11425
11425
  Hs = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
11426
- const t = so(), e = gp(), r = io(), n = yp(), a = wp(), s = bp(), i = vp(), o = oo(), c = Ep(), l = _p(), d = Sp(), p = $p(), w = Rp(), S = Pp(), y = Op(), g = Ap();
11426
+ const t = so(), e = gp(), r = io(), n = yp(), a = bp(), s = wp(), i = vp(), o = oo(), c = Ep(), l = _p(), d = Sp(), p = $p(), b = Rp(), S = Pp(), y = Op(), g = Ap();
11427
11427
  function f(m = !1) {
11428
11428
  const u = [
11429
11429
  // any
11430
11430
  d.default,
11431
11431
  p.default,
11432
- w.default,
11432
+ b.default,
11433
11433
  S.default,
11434
11434
  y.default,
11435
11435
  g.default,
@@ -11458,7 +11458,7 @@ function Np() {
11458
11458
  params: ({ schemaCode: n }) => (0, t._)`{format: ${n}}`
11459
11459
  },
11460
11460
  code(n, a) {
11461
- const { gen: s, data: i, $data: o, schema: c, schemaCode: l, it: d } = n, { opts: p, errSchemaPath: w, schemaEnv: S, self: y } = d;
11461
+ const { gen: s, data: i, $data: o, schema: c, schemaCode: l, it: d } = n, { opts: p, errSchemaPath: b, schemaEnv: S, self: y } = d;
11462
11462
  if (!p.validateFormats)
11463
11463
  return;
11464
11464
  o ? g() : f();
@@ -11466,14 +11466,14 @@ function Np() {
11466
11466
  const m = s.scopeValue("formats", {
11467
11467
  ref: y.formats,
11468
11468
  code: p.code.formats
11469
- }), u = s.const("fDef", (0, t._)`${m}[${l}]`), h = s.let("fType"), b = s.let("format");
11470
- s.if((0, t._)`typeof ${u} == "object" && !(${u} instanceof RegExp)`, () => s.assign(h, (0, t._)`${u}.type || "string"`).assign(b, (0, t._)`${u}.validate`), () => s.assign(h, (0, t._)`"string"`).assign(b, u)), n.fail$data((0, t.or)(_(), E()));
11469
+ }), u = s.const("fDef", (0, t._)`${m}[${l}]`), h = s.let("fType"), w = s.let("format");
11470
+ s.if((0, t._)`typeof ${u} == "object" && !(${u} instanceof RegExp)`, () => s.assign(h, (0, t._)`${u}.type || "string"`).assign(w, (0, t._)`${u}.validate`), () => s.assign(h, (0, t._)`"string"`).assign(w, u)), n.fail$data((0, t.or)(_(), E()));
11471
11471
  function _() {
11472
- return p.strictSchema === !1 ? t.nil : (0, t._)`${l} && !${b}`;
11472
+ return p.strictSchema === !1 ? t.nil : (0, t._)`${l} && !${w}`;
11473
11473
  }
11474
11474
  function E() {
11475
- const $ = S.$async ? (0, t._)`(${u}.async ? await ${b}(${i}) : ${b}(${i}))` : (0, t._)`${b}(${i})`, A = (0, t._)`(typeof ${b} == "function" ? ${$} : ${b}.test(${i}))`;
11476
- return (0, t._)`${b} && ${b} !== true && ${h} === ${a} && !${A}`;
11475
+ const $ = S.$async ? (0, t._)`(${u}.async ? await ${w}(${i}) : ${w}(${i}))` : (0, t._)`${w}(${i})`, A = (0, t._)`(typeof ${w} == "function" ? ${$} : ${w}.test(${i}))`;
11476
+ return (0, t._)`${w} && ${w} !== true && ${h} === ${a} && !${A}`;
11477
11477
  }
11478
11478
  }
11479
11479
  function f() {
@@ -11484,7 +11484,7 @@ function Np() {
11484
11484
  }
11485
11485
  if (m === !0)
11486
11486
  return;
11487
- const [u, h, b] = E(m);
11487
+ const [u, h, w] = E(m);
11488
11488
  u === a && n.pass($());
11489
11489
  function _() {
11490
11490
  if (p.strictSchema === !1) {
@@ -11493,7 +11493,7 @@ function Np() {
11493
11493
  }
11494
11494
  throw new Error(A());
11495
11495
  function A() {
11496
- return `unknown format "${c}" ignored in schema at path "${w}"`;
11496
+ return `unknown format "${c}" ignored in schema at path "${b}"`;
11497
11497
  }
11498
11498
  }
11499
11499
  function E(A) {
@@ -11504,9 +11504,9 @@ function Np() {
11504
11504
  if (typeof m == "object" && !(m instanceof RegExp) && m.async) {
11505
11505
  if (!S.$async)
11506
11506
  throw new Error("async format in sync schema");
11507
- return (0, t._)`await ${b}(${i})`;
11507
+ return (0, t._)`await ${w}(${i})`;
11508
11508
  }
11509
- return typeof h == "function" ? (0, t._)`${b}(${i})` : (0, t._)`${b}.test(${i})`;
11509
+ return typeof h == "function" ? (0, t._)`${w}(${i})` : (0, t._)`${w}.test(${i})`;
11510
11510
  }
11511
11511
  }
11512
11512
  }
@@ -11572,8 +11572,8 @@ function Lp() {
11572
11572
  params: ({ params: { discrError: o, tag: c, tagName: l } }) => (0, t._)`{error: ${o}, tag: ${l}, tagValue: ${c}}`
11573
11573
  },
11574
11574
  code(o) {
11575
- const { gen: c, data: l, schema: d, parentSchema: p, it: w } = o, { oneOf: S } = p;
11576
- if (!w.opts.discriminator)
11575
+ const { gen: c, data: l, schema: d, parentSchema: p, it: b } = o, { oneOf: S } = p;
11576
+ if (!b.opts.discriminator)
11577
11577
  throw new Error("discriminator: requires discriminator option");
11578
11578
  const y = d.propertyName;
11579
11579
  if (typeof y != "string")
@@ -11585,28 +11585,28 @@ function Lp() {
11585
11585
  const g = c.let("valid", !1), f = c.const("tag", (0, t._)`${l}${(0, t.getProperty)(y)}`);
11586
11586
  c.if((0, t._)`typeof ${f} == "string"`, () => m(), () => o.error(!1, { discrError: e.DiscrError.Tag, tag: f, tagName: y })), o.ok(g);
11587
11587
  function m() {
11588
- const b = h();
11588
+ const w = h();
11589
11589
  c.if(!1);
11590
- for (const _ in b)
11591
- c.elseIf((0, t._)`${f} === ${_}`), c.assign(g, u(b[_]));
11590
+ for (const _ in w)
11591
+ c.elseIf((0, t._)`${f} === ${_}`), c.assign(g, u(w[_]));
11592
11592
  c.else(), o.error(!1, { discrError: e.DiscrError.Mapping, tag: f, tagName: y }), c.endIf();
11593
11593
  }
11594
- function u(b) {
11595
- const _ = c.name("valid"), E = o.subschema({ keyword: "oneOf", schemaProp: b }, _);
11594
+ function u(w) {
11595
+ const _ = c.name("valid"), E = o.subschema({ keyword: "oneOf", schemaProp: w }, _);
11596
11596
  return o.mergeEvaluated(E, t.Name), _;
11597
11597
  }
11598
11598
  function h() {
11599
- var b;
11599
+ var w;
11600
11600
  const _ = {}, E = A(p);
11601
11601
  let $ = !0;
11602
11602
  for (let q = 0; q < S.length; q++) {
11603
11603
  let U = S[q];
11604
- if (U != null && U.$ref && !(0, a.schemaHasRulesButRef)(U, w.self.RULES)) {
11604
+ if (U != null && U.$ref && !(0, a.schemaHasRulesButRef)(U, b.self.RULES)) {
11605
11605
  const z = U.$ref;
11606
- if (U = r.resolveRef.call(w.self, w.schemaEnv.root, w.baseId, z), U instanceof r.SchemaEnv && (U = U.schema), U === void 0)
11607
- throw new n.default(w.opts.uriResolver, w.baseId, z);
11606
+ if (U = r.resolveRef.call(b.self, b.schemaEnv.root, b.baseId, z), U instanceof r.SchemaEnv && (U = U.schema), U === void 0)
11607
+ throw new n.default(b.opts.uriResolver, b.baseId, z);
11608
11608
  }
11609
- const F = (b = U == null ? void 0 : U.properties) === null || b === void 0 ? void 0 : b[y];
11609
+ const F = (w = U == null ? void 0 : U.properties) === null || w === void 0 ? void 0 : w[y];
11610
11610
  if (typeof F != "object")
11611
11611
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);
11612
11612
  $ = $ && (E || A(U)), k(F, q);
@@ -11687,9 +11687,9 @@ function Hp() {
11687
11687
  Object.defineProperty(e, "ValidationError", { enumerable: !0, get: function() {
11688
11688
  return p.default;
11689
11689
  } });
11690
- var w = Br();
11690
+ var b = Br();
11691
11691
  Object.defineProperty(e, "MissingRefError", { enumerable: !0, get: function() {
11692
- return w.default;
11692
+ return b.default;
11693
11693
  } });
11694
11694
  })(kt, kt.exports)), kt.exports;
11695
11695
  }
@@ -11710,7 +11710,7 @@ const zp = /* @__PURE__ */ Mm(Bp), xn = "/bahmni_config/openmrs/apps/clinical/v2
11710
11710
  required: tg,
11711
11711
  additionalProperties: rg,
11712
11712
  properties: ng
11713
- }, sg = "http://json-schema.org/draft-07/schema#", ig = "Clinical Dashboard Configuration Schema", og = "Schema for dashboards in clinical app which contains sections and associated controls", cg = "object", ug = !1, lg = ["sections"], dg = { sections: { type: "array", description: "Section in a dashboard", items: { type: "object", additionalProperties: !1, required: ["name", "icon", "controls"], properties: { name: { type: "string", description: "Display name of the section" }, translationKey: { type: "string", description: "Translation key for the section name" }, icon: { type: "string", description: "Fontawesome Icon name for the section" }, controls: { type: "array", description: "List of controls in the section" } } } } }, fg = {
11713
+ }, sg = "http://json-schema.org/draft-07/schema#", ig = "Clinical Dashboard Configuration Schema", og = "Schema for dashboards in clinical app which contains sections and associated controls", cg = "object", ug = !1, lg = ["sections"], dg = { sections: { type: "array", description: "Section in a dashboard", items: { type: "object", additionalProperties: !1, required: ["name", "icon", "controls"], properties: { name: { type: "string", description: "Display name of the section" }, translationKey: { type: "string", description: "Translation key for the section name" }, icon: { type: "string", description: "Fontawesome Icon name for the section" }, controls: { type: "array", description: "List of controls in the section", items: [{ type: "object", additionalProperties: !1, required: ["type"], properties: { type: { type: "string", description: "Type of the control" }, config: { type: "object", description: "Configuration for the control" } } }] } } } } }, fg = {
11714
11714
  $schema: sg,
11715
11715
  title: ig,
11716
11716
  description: og,
@@ -11718,20 +11718,20 @@ const zp = /* @__PURE__ */ Mm(Bp), xn = "/bahmni_config/openmrs/apps/clinical/v2
11718
11718
  additionalProperties: ug,
11719
11719
  required: lg,
11720
11720
  properties: dg
11721
- }, hg = "http://json-schema.org/draft-07/schema#", mg = "Medication Configuration Schema", pg = "object", gg = !1, yg = { defaultDurationUnit: { type: "string", enum: ["min", "h", "d", "wk", "mo"], description: "Default unit for medication duration" }, defaultInstructions: { type: "string", description: "Default instructions for medication" }, drugFormDefaults: { type: "object", description: "Default dose units and routes for different drug forms", patternProperties: { "^.*$": { type: "object", additionalProperties: !1, properties: { doseUnits: { type: "string", description: "Default dose units for this drug form" }, route: { type: "string", description: "Default route of administration for this drug form" } } } } } }, wg = {
11721
+ }, hg = "http://json-schema.org/draft-07/schema#", mg = "Medication Configuration Schema", pg = "object", gg = !1, yg = { defaultDurationUnit: { type: "string", enum: ["min", "h", "d", "wk", "mo"], description: "Default unit for medication duration" }, defaultInstructions: { type: "string", description: "Default instructions for medication" }, drugFormDefaults: { type: "object", description: "Default dose units and routes for different drug forms", patternProperties: { "^.*$": { type: "object", additionalProperties: !1, properties: { doseUnits: { type: "string", description: "Default dose units for this drug form" }, route: { type: "string", description: "Default route of administration for this drug form" } } } } } }, bg = {
11722
11722
  $schema: hg,
11723
11723
  title: mg,
11724
11724
  type: pg,
11725
11725
  additionalProperties: gg,
11726
11726
  properties: yg
11727
- }, bg = "http://json-schema.org/draft-07/schema#", vg = "Registration Configuration Schema", Eg = "Schema for validating registration app configuration", _g = "object", Sg = !1, $g = { id: { type: "string", description: "Unique identifier for the registration configuration" }, contextModel: { type: "array", description: "Array of context model configurations", items: { type: "string" } }, patientSearch: { type: "object", description: "Patient search configuration", additionalProperties: !1, properties: { customAttributes: { type: "array", description: "Array of available search fields", items: { type: "object", additionalProperties: !1, properties: { translationKey: { type: "string", description: "Translation key for the dropdown label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of fields configurations with translation keys to display on table headers", items: { type: "object", additionalProperties: !1, properties: { field: { type: "string", description: "field corresponding to table header" }, translationKey: { type: "string", description: "Translation key for the table header" } } } }, type: { type: "string", enum: ["person", "address", "program", "appointment"], description: "Type of the search field (person, address, program, appointment)" } } } }, appointment: { type: "array", description: "Array of available search fields for appointments", items: { type: "object", additionalProperties: !0, required: ["translationKey", "fields"], properties: { translationKey: { type: "string", description: "Translation key for the field label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of expected fields with optional types", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "The field name (e.g., apptNumber, apptDate)" }, translationKey: { type: "string", description: "Translation key for the field's display label" }, type: { type: "string", description: "Optional field type (e.g., date, string)" } } } }, type: { type: "string", enum: ["appointment"], description: "Type of the search field (appointment)" }, actions: { type: "array", description: "Array of actions allowed on this search field", items: { type: "object", required: ["translationKey", "type", "enabledRule", "onAction"], properties: { translationKey: { type: "string", description: "Translation key for the action button label" }, type: { type: "string", enum: ["changeStatus", "navigate"], description: "Type of action to perform" }, enabledRule: { type: "array", description: "Conditions to enable this action (rules)", items: { type: "object", properties: { type: { type: "string", enum: ["privilegeCheck", "statusCheck", "appDateCheck"], description: "Type of rule to evaluate" }, values: { type: "array", items: { type: "string" }, description: "Values to check against for the rule" } } } }, onAction: { type: "object", description: "What happens when action is triggered", additionalProperties: !0, properties: { status: { type: "string", description: "Status to set (for changeStatus type)" }, navigation: { type: "string", description: "URL path to navigate to (for navigate type)" } } }, onSuccess: { type: "object", description: "Notification or other success response", additionalProperties: !0, properties: { notification: { type: "string", description: "Translation key for success notification message" } } } } } } } } } } }, defaultVisitType: { type: "string", description: "Default visit type for patient registration" }, patientInformation: { type: "object", description: "Patient name related fields configuration", additionalProperties: !0, properties: { defaultIdentifierPrefix: { type: "string", description: "Default prefix for patient identifiers" }, showEnterManually: { type: "boolean" }, showMiddleName: { type: "boolean" }, showLastName: { type: "boolean" }, isFirstNameMandatory: { type: "boolean" }, isMiddleNameMandatory: { type: "boolean" }, isGenderMandatory: { type: "boolean" }, isDateOfBirthMandatory: { type: "boolean" }, isLastNameMandatory: { type: "boolean" }, patientNameDisplayOrder: { type: "array", description: "Order in which patient name fields should be displayed", items: { type: "string" } }, showBirthTime: { type: "boolean" }, showDOBEstimated: { type: "boolean" }, addressHierarchy: { type: "object", description: "Address hierarchy levels to be displayed", additionalProperties: !1, properties: { showAddressFieldsTopDown: { type: "boolean" }, strictAutocompleteFromLevel: { type: "string" }, expectedFields: { type: "array", description: "Array of expected fields with translation keys", items: { type: "object", properties: { addressField: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, additionalPatientInformation: { type: "object", description: "Additional patient information configuration", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, contactInformation: { type: "object", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, showExtraPatientIdentifiersSection: { type: "boolean", description: "Whether to show extra patient identifiers section" } } }, fieldValidation: { type: "object", description: "Field validation rules with regex patterns and error messages", additionalProperties: !0, patternProperties: { "^.*$": { type: "object", properties: { pattern: { type: "string", description: "Regular expression pattern for field validation" }, errorMessage: { type: "string", description: "Error message to display when validation fails" } } } } } }, Rg = {
11728
- $schema: bg,
11727
+ }, wg = "http://json-schema.org/draft-07/schema#", vg = "Registration Configuration Schema", Eg = "Schema for validating registration app configuration", _g = "object", Sg = !1, $g = { id: { type: "string", description: "Unique identifier for the registration configuration" }, contextModel: { type: "array", description: "Array of context model configurations", items: { type: "string" } }, patientSearch: { type: "object", description: "Patient search configuration", additionalProperties: !1, properties: { customAttributes: { type: "array", description: "Array of available search fields", items: { type: "object", additionalProperties: !1, properties: { translationKey: { type: "string", description: "Translation key for the dropdown label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of fields configurations with translation keys to display on table headers", items: { type: "object", additionalProperties: !1, properties: { field: { type: "string", description: "field corresponding to table header" }, translationKey: { type: "string", description: "Translation key for the table header" } } } }, type: { type: "string", enum: ["person", "address", "program", "appointment"], description: "Type of the search field (person, address, program, appointment)" } } } }, appointment: { type: "array", description: "Array of available search fields for appointments", items: { type: "object", additionalProperties: !0, required: ["translationKey", "fields"], properties: { translationKey: { type: "string", description: "Translation key for the field label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of expected fields with optional types", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "The field name (e.g., apptNumber, apptDate)" }, translationKey: { type: "string", description: "Translation key for the field's display label" }, type: { type: "string", description: "Optional field type (e.g., date, string)" } } } }, type: { type: "string", enum: ["appointment"], description: "Type of the search field (appointment)" }, actions: { type: "array", description: "Array of actions allowed on this search field", items: { type: "object", required: ["translationKey", "type", "enabledRule", "onAction"], properties: { translationKey: { type: "string", description: "Translation key for the action button label" }, type: { type: "string", enum: ["changeStatus", "navigate"], description: "Type of action to perform" }, enabledRule: { type: "array", description: "Conditions to enable this action (rules)", items: { type: "object", properties: { type: { type: "string", enum: ["privilegeCheck", "statusCheck", "appDateCheck"], description: "Type of rule to evaluate" }, values: { type: "array", items: { type: "string" }, description: "Values to check against for the rule" } } } }, onAction: { type: "object", description: "What happens when action is triggered", additionalProperties: !0, properties: { status: { type: "string", description: "Status to set (for changeStatus type)" }, navigation: { type: "string", description: "URL path to navigate to (for navigate type)" } } }, onSuccess: { type: "object", description: "Notification or other success response", additionalProperties: !0, properties: { notification: { type: "string", description: "Translation key for success notification message" } } } } } } } } } } }, defaultVisitType: { type: "string", description: "Default visit type for patient registration" }, patientInformation: { type: "object", description: "Patient name related fields configuration", additionalProperties: !0, properties: { defaultIdentifierPrefix: { type: "string", description: "Default prefix for patient identifiers" }, showEnterManually: { type: "boolean" }, showMiddleName: { type: "boolean" }, showLastName: { type: "boolean" }, isFirstNameMandatory: { type: "boolean" }, isMiddleNameMandatory: { type: "boolean" }, isGenderMandatory: { type: "boolean" }, isDateOfBirthMandatory: { type: "boolean" }, isLastNameMandatory: { type: "boolean" }, patientNameDisplayOrder: { type: "array", description: "Order in which patient name fields should be displayed", items: { type: "string" } }, showBirthTime: { type: "boolean" }, showDOBEstimated: { type: "boolean" }, addressHierarchy: { type: "object", description: "Address hierarchy levels to be displayed", additionalProperties: !1, properties: { showAddressFieldsTopDown: { type: "boolean" }, strictAutocompleteFromLevel: { type: "string" }, expectedFields: { type: "array", description: "Array of expected fields with translation keys", items: { type: "object", properties: { addressField: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, additionalPatientInformation: { type: "object", description: "Additional patient information configuration", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, contactInformation: { type: "object", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, showExtraPatientIdentifiersSection: { type: "boolean", description: "Whether to show extra patient identifiers section" } } }, fieldValidation: { type: "object", description: "Field validation rules with regex patterns and error messages", additionalProperties: !0, patternProperties: { "^.*$": { type: "object", properties: { pattern: { type: "string", description: "Regular expression pattern for field validation" }, errorMessage: { type: "string", description: "Error message to display when validation fails" } } } } } }, Rg = {
11728
+ $schema: wg,
11729
11729
  title: vg,
11730
11730
  description: Eg,
11731
11731
  type: _g,
11732
11732
  additionalProperties: Sg,
11733
11733
  properties: $g
11734
- }, Nw = async () => zr(Gp, ag), Dw = async (t) => {
11734
+ }, Nb = async () => zr(Gp, ag), Db = async (t) => {
11735
11735
  const e = await zr(
11736
11736
  Jp(t),
11737
11737
  fg
@@ -11740,10 +11740,10 @@ const zp = /* @__PURE__ */ Mm(Bp), xn = "/bahmni_config/openmrs/apps/clinical/v2
11740
11740
  ...r,
11741
11741
  id: th()
11742
11742
  })), e;
11743
- }, Cw = async () => zr(
11743
+ }, Cb = async () => zr(
11744
11744
  Yp,
11745
- wg
11746
- ), Iw = async () => zr(
11745
+ bg
11746
+ ), Ib = async () => zr(
11747
11747
  Kp,
11748
11748
  Rg
11749
11749
  ), zr = async (t, e) => {
@@ -11768,7 +11768,7 @@ const zp = /* @__PURE__ */ Mm(Bp), xn = "/bahmni_config/openmrs/apps/clinical/v2
11768
11768
  throw new Error(r);
11769
11769
  }
11770
11770
  }, Og = async (t, e) => new zp().compile(e)(t), Ag = (t) => ce + `/provider?user=${t}&v=custom:(uuid,display,person)`;
11771
- async function kw(t) {
11771
+ async function kb(t) {
11772
11772
  const e = await Q(
11773
11773
  Ag(t)
11774
11774
  );
@@ -11821,7 +11821,7 @@ async function qg(t, e) {
11821
11821
  return null;
11822
11822
  }
11823
11823
  }
11824
- async function Lw(t, e, r) {
11824
+ async function Lb(t, e, r) {
11825
11825
  try {
11826
11826
  if (!t) return null;
11827
11827
  const n = r ?? await xg(), s = `ge${new Date(Date.now() - n * 60 * 1e3).toISOString()}`, i = {
@@ -11837,7 +11837,7 @@ async function Lw(t, e, r) {
11837
11837
  return null;
11838
11838
  }
11839
11839
  }
11840
- const Mw = (t) => {
11840
+ const Mb = (t) => {
11841
11841
  const e = new CustomEvent("bahmni-audit-log", { detail: t });
11842
11842
  window.dispatchEvent(e);
11843
11843
  }, jg = (t) => {
@@ -11886,11 +11886,11 @@ const Mw = (t) => {
11886
11886
  }
11887
11887
  }, Fg = ce + "/auditlog", Vg = {
11888
11888
  UNKNOWN_EVENT_TYPE: "AUDIT_LOG_ERROR_UNKNOWN_EVENT_TYPE"
11889
- }, bn = /* @__PURE__ */ new Map(), Hg = async (t) => {
11890
- if (bn.has(t))
11891
- return bn.get(t) ?? null;
11889
+ }, wn = /* @__PURE__ */ new Map(), Hg = async (t) => {
11890
+ if (wn.has(t))
11891
+ return wn.get(t) ?? null;
11892
11892
  const e = await Q(Di(t)), r = e ? String(e) : null;
11893
- return bn.set(t, r), r;
11893
+ return wn.set(t, r), r;
11894
11894
  }, Bg = async () => await Hg(Uu) === "true", zg = async (t, e, r, n = it.CLINICAL) => {
11895
11895
  if (!await Bg())
11896
11896
  return { logged: !1 };
@@ -11909,21 +11909,21 @@ const Mw = (t) => {
11909
11909
  module: n
11910
11910
  };
11911
11911
  return await mt(Fg, i), { logged: !0 };
11912
- }, xw = () => jg(async (e) => {
11912
+ }, xb = () => jg(async (e) => {
11913
11913
  await zg(
11914
11914
  e.patientUuid,
11915
11915
  e.eventType,
11916
11916
  e.messageParams,
11917
11917
  e.module
11918
11918
  );
11919
- }), qw = async () => {
11919
+ }), qb = async () => {
11920
11920
  try {
11921
11921
  return await Q(Iu);
11922
11922
  } catch (t) {
11923
11923
  const { message: e } = ut(t);
11924
11924
  throw new Error(e);
11925
11925
  }
11926
- }, jw = (t, e) => !t || t.length === 0 ? !1 : t.some((r) => r.name === e), Wg = async () => {
11926
+ }, jb = (t, e) => !t || t.length === 0 ? !1 : t.some((r) => r.name === e), Wg = async () => {
11927
11927
  const t = await fetch(ku);
11928
11928
  if (!t.ok)
11929
11929
  throw new Error(
@@ -11952,12 +11952,12 @@ const Mw = (t) => {
11952
11952
  editable: n.editable
11953
11953
  }))
11954
11954
  };
11955
- }, Uw = async () => {
11955
+ }, Ub = async () => {
11956
11956
  const t = await Wg(), e = qr();
11957
11957
  return t.map(
11958
11958
  (r) => Kg(r, e)
11959
11959
  );
11960
- }, Yg = ce + "/bahmnicore/diseaseSummaryData?", Fw = async (t, e, r, n) => {
11960
+ }, Yg = ce + "/bahmnicore/diseaseSummaryData?", Fb = async (t, e, r, n) => {
11961
11961
  const a = new URLSearchParams({
11962
11962
  groupBy: n,
11963
11963
  latestCount: e.toString(),
@@ -11975,17 +11975,17 @@ export {
11975
11975
  zh as AllergyStatus,
11976
11976
  Th as AttributeFormat,
11977
11977
  Nh as AttributeInputType,
11978
- wy as BAHMNI_HOME_PATH,
11978
+ by as BAHMNI_HOME_PATH,
11979
11979
  Jf as DATE_FORMAT,
11980
11980
  $y as DATE_PICKER_INPUT_FORMAT,
11981
11981
  Xf as DATE_TIME_FORMAT,
11982
- bw as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
11982
+ wb as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
11983
11983
  _y as FULL_MONTH_DATE_FORMAT,
11984
- _w as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
11984
+ _b as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
11985
11985
  Gh as HL7_CONDITION_CATEGORY_CONDITION_CODE,
11986
11986
  Kh as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
11987
- Ew as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
11988
- vw as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
11987
+ Eb as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
11988
+ vb as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
11989
11989
  Sy as ISO_DATE_FORMAT,
11990
11990
  _r as LabTestPriority,
11991
11991
  Vy as MAX_NAME_LENGTH,
@@ -11994,21 +11994,21 @@ export {
11994
11994
  qe as MedicationStatus,
11995
11995
  De as OPENMRS_FHIR_R4,
11996
11996
  ce as OPENMRS_REST_V1,
11997
- by as USER_PINNED_PREFERENCE_URL,
11997
+ wy as USER_PINNED_PREFERENCE_URL,
11998
11998
  Zf as calculateAge,
11999
11999
  Ny as calculateAgeinYearsAndMonths,
12000
12000
  Py as calculateOnsetDate,
12001
12001
  ky as capitalize,
12002
12002
  Yy as createPatient,
12003
- ew as createVisit,
12003
+ eb as createVisit,
12004
12004
  Cy as dateComparator,
12005
12005
  yy as del,
12006
- Mw as dispatchAuditEvent,
12007
- gw as fetchAndFormatAllergenConcepts,
12008
- Uw as fetchObservationForms,
12009
- yw as fetchReactionConcepts,
12006
+ Mb as dispatchAuditEvent,
12007
+ gb as fetchAndFormatAllergenConcepts,
12008
+ Ub as fetchObservationForms,
12009
+ yb as fetchReactionConcepts,
12010
12010
  qy as filterReplacementEntries,
12011
- Lw as findActiveEncounterInSession,
12011
+ Lb as findActiveEncounterInSession,
12012
12012
  eh as formatDate,
12013
12013
  Ty as formatDateAndTime,
12014
12014
  Oy as formatDateDistance,
@@ -12017,71 +12017,71 @@ export {
12017
12017
  th as generateId,
12018
12018
  Q as get,
12019
12019
  Cg as getActiveVisit,
12020
- tw as getActiveVisitByPatient,
12020
+ tb as getActiveVisitByPatient,
12021
12021
  Qy as getAddressHierarchyEntries,
12022
12022
  Hh as getAllergies,
12023
- hw as getAppointmentById,
12024
- Nw as getClinicalConfig,
12025
- pw as getConceptById,
12026
- Sw as getConditions,
12023
+ hb as getAppointmentById,
12024
+ Nb as getClinicalConfig,
12025
+ pb as getConceptById,
12026
+ Sb as getConditions,
12027
12027
  Xi as getCookieByName,
12028
- kw as getCurrentProvider,
12028
+ kb as getCurrentProvider,
12029
12029
  Uy as getCurrentUser,
12030
- qw as getCurrentUserPrivileges,
12031
- Dw as getDashboardConfig,
12032
- Tw as getFlattenedInvestigations,
12033
- ww as getFormattedAllergies,
12030
+ qb as getCurrentUserPrivileges,
12031
+ Db as getDashboardConfig,
12032
+ Tb as getFlattenedInvestigations,
12033
+ bb as getFormattedAllergies,
12034
12034
  ut as getFormattedError,
12035
12035
  By as getFormattedPatientById,
12036
12036
  Xy as getGenders,
12037
12037
  Ky as getIdentifierData,
12038
12038
  Gy as getIdentifierTypes,
12039
- sw as getInputTypeForFormat,
12040
- Cw as getMedicationConfig,
12041
- nw as getOrderedAddressHierarchyLevels,
12039
+ sb as getInputTypeForFormat,
12040
+ Cb as getMedicationConfig,
12041
+ nb as getOrderedAddressHierarchyLevels,
12042
12042
  _h as getPatientById,
12043
- $w as getPatientDiagnoses,
12044
- Aw as getPatientLabInvestigations,
12043
+ $b as getPatientDiagnoses,
12044
+ Ab as getPatientLabInvestigations,
12045
12045
  $m as getPatientLabTestsBundle,
12046
12046
  im as getPatientMedicationBundle,
12047
- Rw as getPatientMedications,
12047
+ Rb as getPatientMedications,
12048
12048
  ym as getPatientRadiologyInvestigationBundle,
12049
- Pw as getPatientRadiologyInvestigations,
12050
- aw as getPersonAttributeTypes,
12049
+ Pb as getPatientRadiologyInvestigations,
12050
+ ab as getPersonAttributeTypes,
12051
12051
  Ah as getPrimaryIdentifierType,
12052
12052
  My as getPriorityByOrder,
12053
- Iw as getRegistrationConfig,
12053
+ Ib as getRegistrationConfig,
12054
12054
  Ay as getTodayDate,
12055
12055
  Qi as getUserLoginLocation,
12056
- rw as getVisitLocationUUID,
12056
+ rb as getVisitLocationUUID,
12057
12057
  Zy as getVisitTypes,
12058
- Fw as getVitalFlowSheetData,
12058
+ Fb as getVitalFlowSheetData,
12059
12059
  xy as groupByDate,
12060
- Ow as groupLabTestsByDate,
12061
- jw as hasPrivilege,
12060
+ Ob as groupLabTestsByDate,
12061
+ jb as hasPrivilege,
12062
12062
  vy as initAppI18n,
12063
- xw as initializeAuditListener,
12064
- iw as isBooleanFormat,
12065
- ow as isConceptFormat,
12066
- uw as isDateFormat,
12067
- cw as isNumberFormat,
12063
+ xb as initializeAuditListener,
12064
+ ib as isBooleanFormat,
12065
+ ob as isConceptFormat,
12066
+ ub as isDateFormat,
12067
+ cb as isNumberFormat,
12068
12068
  Ly as isStringEmpty,
12069
- lw as isTextFormat,
12069
+ lb as isTextFormat,
12070
12070
  zg as logAuditEvent,
12071
12071
  an as notificationService,
12072
12072
  rh as parseQueryParams,
12073
12073
  mt as post,
12074
12074
  gy as put,
12075
12075
  Iy as refreshQueries,
12076
- dw as searchAppointmentsByAttribute,
12077
- mw as searchConcepts,
12076
+ db as searchAppointmentsByAttribute,
12077
+ mb as searchConcepts,
12078
12078
  Er as searchFHIRConcepts,
12079
12079
  xh as searchFHIRConceptsByName,
12080
12080
  Wy as searchPatientByCustomAttribute,
12081
12081
  zy as searchPatientByNameOrId,
12082
12082
  Dy as sortByDate,
12083
- fw as updateAppointmentStatus,
12083
+ fb as updateAppointmentStatus,
12084
12084
  Jy as updatePatient,
12085
12085
  Ey as useCamera,
12086
- Bw as useTranslation
12086
+ Bb as useTranslation
12087
12087
  };