@bahmni/services 0.0.1-dev.299 → 0.0.1-dev.311

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 nc } from "react-i18next";
2
- import { useTranslation as k_ } from "react-i18next";
2
+ import { useTranslation as U_ } from "react-i18next";
3
3
  import { useRef as xt, useCallback as fn, useEffect as rt, useSyncExternalStore as sc } from "react";
4
4
  function Da(t, e) {
5
5
  return function() {
@@ -48,7 +48,7 @@ const As = yc(), Ns = typeof As.FormData < "u" ? As.FormData : void 0, wc = (t)
48
48
  "Request",
49
49
  "Response",
50
50
  "Headers"
51
- ].map(xe), Rc = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
51
+ ].map(xe), Sc = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
52
52
  function Ft(t, e, { allOwnKeys: r = !1 } = {}) {
53
53
  if (t === null || typeof t > "u")
54
54
  return;
@@ -88,7 +88,7 @@ function Mn(...t) {
88
88
  t[o] && Ft(t[o], s);
89
89
  return n;
90
90
  }
91
- const Sc = (t, e, r, { allOwnKeys: n } = {}) => (Ft(
91
+ const Rc = (t, e, r, { allOwnKeys: n } = {}) => (Ft(
92
92
  e,
93
93
  (s, o) => {
94
94
  r && Ne(s) ? Object.defineProperty(t, o, {
@@ -247,8 +247,8 @@ const Vc = (t) => {
247
247
  isFileList: mc,
248
248
  forEach: Ft,
249
249
  merge: Mn,
250
- extend: Sc,
251
- trim: Rc,
250
+ extend: Rc,
251
+ trim: Sc,
252
252
  stripBOM: Oc,
253
253
  inherits: Ac,
254
254
  toFlatObject: Nc,
@@ -320,7 +320,7 @@ function Jc(t) {
320
320
  }
321
321
  return e === 0 && r === t.length ? t : t.slice(e, r);
322
322
  }
323
- function Rt(t) {
323
+ function St(t) {
324
324
  return t && String(t).trim().toLowerCase();
325
325
  }
326
326
  function Qc(t) {
@@ -364,14 +364,14 @@ function tu(t, e) {
364
364
  });
365
365
  });
366
366
  }
367
- let Se = class {
367
+ let Re = class {
368
368
  constructor(e) {
369
369
  e && this.set(e);
370
370
  }
371
371
  set(e, r, n) {
372
372
  const s = this;
373
373
  function o(i, c, u) {
374
- const l = Rt(c);
374
+ const l = St(c);
375
375
  if (!l)
376
376
  throw new Error("header name must be a non-empty string");
377
377
  const h = $.findKey(s, l);
@@ -395,7 +395,7 @@ let Se = class {
395
395
  return this;
396
396
  }
397
397
  get(e, r) {
398
- if (e = Rt(e), e) {
398
+ if (e = St(e), e) {
399
399
  const n = $.findKey(this, e);
400
400
  if (n) {
401
401
  const s = this[n];
@@ -412,7 +412,7 @@ let Se = class {
412
412
  }
413
413
  }
414
414
  has(e, r) {
415
- if (e = Rt(e), e) {
415
+ if (e = St(e), e) {
416
416
  const n = $.findKey(this, e);
417
417
  return !!(n && this[n] !== void 0 && (!r || pn(this, this[n], n, r)));
418
418
  }
@@ -422,7 +422,7 @@ let Se = class {
422
422
  const n = this;
423
423
  let s = !1;
424
424
  function o(a) {
425
- if (a = Rt(a), a) {
425
+ if (a = St(a), a) {
426
426
  const i = $.findKey(n, a);
427
427
  i && (!r || pn(n, n[i], i, r)) && (delete n[i], s = !0);
428
428
  }
@@ -484,13 +484,13 @@ let Se = class {
484
484
  accessors: {}
485
485
  }).accessors, s = this.prototype;
486
486
  function o(a) {
487
- const i = Rt(a);
487
+ const i = St(a);
488
488
  n[i] || (tu(s, a), n[i] = !0);
489
489
  }
490
490
  return $.isArray(e) ? e.forEach(o) : o(e), this;
491
491
  }
492
492
  };
493
- Se.accessor([
493
+ Re.accessor([
494
494
  "Content-Type",
495
495
  "Content-Length",
496
496
  "Accept",
@@ -498,7 +498,7 @@ Se.accessor([
498
498
  "User-Agent",
499
499
  "Authorization"
500
500
  ]);
501
- $.reduceDescriptors(Se.prototype, ({ value: t }, e) => {
501
+ $.reduceDescriptors(Re.prototype, ({ value: t }, e) => {
502
502
  let r = e[0].toUpperCase() + e.slice(1);
503
503
  return {
504
504
  get: () => t,
@@ -507,7 +507,7 @@ $.reduceDescriptors(Se.prototype, ({ value: t }, e) => {
507
507
  }
508
508
  };
509
509
  });
510
- $.freezeMethods(Se);
510
+ $.freezeMethods(Re);
511
511
  const ru = "[REDACTED ****]";
512
512
  function nu(t) {
513
513
  if ($.hasOwnProp(t, "toJSON"))
@@ -524,7 +524,7 @@ function su(t, e) {
524
524
  const r = new Set(e.map((o) => String(o).toLowerCase())), n = [], s = (o) => {
525
525
  if (o === null || typeof o != "object" || $.isBuffer(o)) return o;
526
526
  if (n.indexOf(o) !== -1) return;
527
- o instanceof Se && (o = o.toJSON()), n.push(o);
527
+ o instanceof Re && (o = o.toJSON()), n.push(o);
528
528
  let a;
529
529
  if ($.isArray(o))
530
530
  a = [], o.forEach((i, c) => {
@@ -660,11 +660,11 @@ function Jr(t, e, r) {
660
660
  if ($.endsWith(f, "{}"))
661
661
  f = n ? f : f.slice(0, -2), _ = JSON.stringify(_);
662
662
  else if ($.isArray(_) && au(_) || ($.isFileList(_) || $.endsWith(f, "[]")) && (p = $.toArray(_)))
663
- return f = ja(f), p.forEach(function(S, d) {
664
- !($.isUndefined(S) || S === null) && e.append(
663
+ return f = ja(f), p.forEach(function(R, d) {
664
+ !($.isUndefined(R) || R === null) && e.append(
665
665
  // eslint-disable-next-line no-nested-ternary
666
666
  a === !0 ? hn([f], d, o) : a === null ? f : f + "[]",
667
- l(S)
667
+ l(R)
668
668
  );
669
669
  }), !1;
670
670
  }
@@ -675,7 +675,7 @@ function Jr(t, e, r) {
675
675
  convertValue: l,
676
676
  isVisitable: qn
677
677
  });
678
- function R(_, f, g = 0) {
678
+ function S(_, f, g = 0) {
679
679
  if (!$.isUndefined(_)) {
680
680
  if (g > c)
681
681
  throw new Y(
@@ -684,14 +684,14 @@ function Jr(t, e, r) {
684
684
  );
685
685
  if (y.indexOf(_) !== -1)
686
686
  throw Error("Circular reference detected in " + f.join("."));
687
- y.push(_), $.forEach(_, function(b, S) {
688
- (!($.isUndefined(b) || b === null) && s.call(e, b, $.isString(S) ? S.trim() : S, f, v)) === !0 && R(b, f ? f.concat(S) : [S], g + 1);
687
+ y.push(_), $.forEach(_, function(b, R) {
688
+ (!($.isUndefined(b) || b === null) && s.call(e, b, $.isString(R) ? R.trim() : R, f, v)) === !0 && S(b, f ? f.concat(R) : [R], g + 1);
689
689
  }), y.pop();
690
690
  }
691
691
  }
692
692
  if (!$.isObject(t))
693
693
  throw new TypeError("data must be an object");
694
- return R(t), e;
694
+ return S(t), e;
695
695
  }
696
696
  function Is(t) {
697
697
  const e = {
@@ -938,7 +938,7 @@ $.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (t) => {
938
938
  jt.headers[t] = {};
939
939
  });
940
940
  function mn(t, e) {
941
- const r = this || jt, n = e || r, s = Se.from(n.headers);
941
+ const r = this || jt, n = e || r, s = Re.from(n.headers);
942
942
  let o = n.data;
943
943
  return $.forEach(t, function(i) {
944
944
  o = i.call(r, o, s.normalize(), e ? e.status : void 0);
@@ -1032,10 +1032,10 @@ const kr = (t, e, r = 3) => {
1032
1032
  }),
1033
1033
  e[1]
1034
1034
  ];
1035
- }, Cs = (t) => (...e) => $.asap(() => t(...e)), Ru = Te.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, Te.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
1035
+ }, Cs = (t) => (...e) => $.asap(() => t(...e)), Su = Te.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, Te.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
1036
1036
  new URL(Te.origin),
1037
1037
  Te.navigator && /(msie|trident)/i.test(Te.navigator.userAgent)
1038
- ) : () => !0, Su = Te.hasStandardBrowserEnv ? (
1038
+ ) : () => !0, Ru = Te.hasStandardBrowserEnv ? (
1039
1039
  // Standard browser envs support document.cookie
1040
1040
  {
1041
1041
  write(t, e, r, n, s, o, a) {
@@ -1079,7 +1079,7 @@ function Ga(t, e, r) {
1079
1079
  let n = !Ou(e);
1080
1080
  return t && (n || r === !1) ? Au(t, e) : e;
1081
1081
  }
1082
- const Ls = (t) => t instanceof Se ? { ...t } : t;
1082
+ const Ls = (t) => t instanceof Re ? { ...t } : t;
1083
1083
  function nt(t, e) {
1084
1084
  e = e || {};
1085
1085
  const r = /* @__PURE__ */ Object.create(null);
@@ -1151,8 +1151,8 @@ function nt(t, e) {
1151
1151
  };
1152
1152
  return $.forEach(Object.keys({ ...t, ...e }), function(l) {
1153
1153
  if (l === "__proto__" || l === "constructor" || l === "prototype") return;
1154
- const h = $.hasOwnProp(c, l) ? c[l] : s, y = $.hasOwnProp(t, l) ? t[l] : void 0, v = $.hasOwnProp(e, l) ? e[l] : void 0, R = h(y, v, l);
1155
- $.isUndefined(R) && h !== i || (r[l] = R);
1154
+ const h = $.hasOwnProp(c, l) ? c[l] : s, y = $.hasOwnProp(t, l) ? t[l] : void 0, v = $.hasOwnProp(e, l) ? e[l] : void 0, S = h(y, v, l);
1155
+ $.isUndefined(S) && h !== i || (r[l] = S);
1156
1156
  }), r;
1157
1157
  }
1158
1158
  const Nu = ["content-type", "content-length"];
@@ -1174,15 +1174,15 @@ const Iu = (t) => encodeURIComponent(t).replace(
1174
1174
  const o = r("xsrfHeaderName"), a = r("xsrfCookieName");
1175
1175
  let i = r("headers");
1176
1176
  const c = r("auth"), u = r("baseURL"), l = r("allowAbsoluteUrls"), h = r("url");
1177
- if (e.headers = i = Se.from(i), e.url = Ha(
1177
+ if (e.headers = i = Re.from(i), e.url = Ha(
1178
1178
  Ga(u, h, l),
1179
1179
  t.params,
1180
1180
  t.paramsSerializer
1181
1181
  ), c && i.set(
1182
1182
  "Authorization",
1183
1183
  "Basic " + btoa((c.username || "") + ":" + (c.password ? Iu(c.password) : ""))
1184
- ), $.isFormData(n) && (Te.hasStandardBrowserEnv || Te.hasStandardBrowserWebWorkerEnv ? i.setContentType(void 0) : $.isFunction(n.getHeaders) && Pu(i, n.getHeaders(), r("formDataHeaderPolicy"))), Te.hasStandardBrowserEnv && ($.isFunction(s) && (s = s(e)), s === !0 || s == null && Ru(e.url))) {
1185
- const v = o && a && Su.read(a);
1184
+ ), $.isFormData(n) && (Te.hasStandardBrowserEnv || Te.hasStandardBrowserWebWorkerEnv ? i.setContentType(void 0) : $.isFunction(n.getHeaders) && Pu(i, n.getHeaders(), r("formDataHeaderPolicy"))), Te.hasStandardBrowserEnv && ($.isFunction(s) && (s = s(e)), s === !0 || s == null && Su(e.url))) {
1185
+ const v = o && a && Ru.read(a);
1186
1186
  v && i.set(o, v);
1187
1187
  }
1188
1188
  return e;
@@ -1190,17 +1190,17 @@ const Iu = (t) => encodeURIComponent(t).replace(
1190
1190
  return new Promise(function(r, n) {
1191
1191
  const s = Ka(t);
1192
1192
  let o = s.data;
1193
- const a = Se.from(s.headers).normalize();
1194
- let { responseType: i, onUploadProgress: c, onDownloadProgress: u } = s, l, h, y, v, R;
1193
+ const a = Re.from(s.headers).normalize();
1194
+ let { responseType: i, onUploadProgress: c, onDownloadProgress: u } = s, l, h, y, v, S;
1195
1195
  function _() {
1196
- v && v(), R && R(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1196
+ v && v(), S && S(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1197
1197
  }
1198
1198
  let f = new XMLHttpRequest();
1199
1199
  f.open(s.method.toUpperCase(), s.url, !0), f.timeout = s.timeout;
1200
1200
  function g() {
1201
1201
  if (!f)
1202
1202
  return;
1203
- const b = Se.from(
1203
+ const b = Re.from(
1204
1204
  "getAllResponseHeaders" in f && f.getAllResponseHeaders()
1205
1205
  ), d = {
1206
1206
  data: !i || i === "text" || i === "json" ? f.responseText : f.response,
@@ -1224,23 +1224,23 @@ const Iu = (t) => encodeURIComponent(t).replace(
1224
1224
  !f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.startsWith("file:")) || setTimeout(g);
1225
1225
  }, f.onabort = function() {
1226
1226
  f && (n(new Y("Request aborted", Y.ECONNABORTED, t, f)), _(), f = null);
1227
- }, f.onerror = function(S) {
1228
- const d = S && S.message ? S.message : "Network Error", m = new Y(d, Y.ERR_NETWORK, t, f);
1229
- m.event = S || null, n(m), _(), f = null;
1227
+ }, f.onerror = function(R) {
1228
+ const d = R && R.message ? R.message : "Network Error", m = new Y(d, Y.ERR_NETWORK, t, f);
1229
+ m.event = R || null, n(m), _(), f = null;
1230
1230
  }, f.ontimeout = function() {
1231
- let S = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1231
+ let R = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1232
1232
  const d = s.transitional || es;
1233
- s.timeoutErrorMessage && (S = s.timeoutErrorMessage), n(
1233
+ s.timeoutErrorMessage && (R = s.timeoutErrorMessage), n(
1234
1234
  new Y(
1235
- S,
1235
+ R,
1236
1236
  d.clarifyTimeoutError ? Y.ETIMEDOUT : Y.ECONNABORTED,
1237
1237
  t,
1238
1238
  f
1239
1239
  )
1240
1240
  ), _(), f = null;
1241
- }, o === void 0 && a.setContentType(null), "setRequestHeader" in f && $.forEach(a.toJSON(), function(S, d) {
1242
- f.setRequestHeader(d, S);
1243
- }), $.isUndefined(s.withCredentials) || (f.withCredentials = !!s.withCredentials), i && i !== "json" && (f.responseType = s.responseType), u && ([y, R] = kr(u, !0), f.addEventListener("progress", y)), c && f.upload && ([h, v] = kr(c), f.upload.addEventListener("progress", h), f.upload.addEventListener("loadend", v)), (s.cancelToken || s.signal) && (l = (b) => {
1241
+ }, o === void 0 && a.setContentType(null), "setRequestHeader" in f && $.forEach(a.toJSON(), function(R, d) {
1242
+ f.setRequestHeader(d, R);
1243
+ }), $.isUndefined(s.withCredentials) || (f.withCredentials = !!s.withCredentials), i && i !== "json" && (f.responseType = s.responseType), u && ([y, S] = kr(u, !0), f.addEventListener("progress", y)), c && f.upload && ([h, v] = kr(c), f.upload.addEventListener("progress", h), f.upload.addEventListener("loadend", v)), (s.cancelToken || s.signal) && (l = (b) => {
1244
1244
  f && (n(!b || b.type ? new Vt(null, t, f) : b), f.abort(), _(), f = null);
1245
1245
  }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1246
1246
  const p = _u(s.url);
@@ -1352,8 +1352,8 @@ function Mu(t) {
1352
1352
  const i = n.length;
1353
1353
  for (let v = 0; v < i; v++)
1354
1354
  if (n.charCodeAt(v) === 37 && v + 2 < i) {
1355
- const R = n.charCodeAt(v + 1), _ = n.charCodeAt(v + 2);
1356
- (R >= 48 && R <= 57 || R >= 65 && R <= 70 || R >= 97 && R <= 102) && (_ >= 48 && _ <= 57 || _ >= 65 && _ <= 70 || _ >= 97 && _ <= 102) && (a -= 2, v += 2);
1355
+ const S = n.charCodeAt(v + 1), _ = n.charCodeAt(v + 2);
1356
+ (S >= 48 && S <= 57 || S >= 65 && S <= 70 || S >= 97 && S <= 102) && (_ >= 48 && _ <= 57 || _ >= 65 && _ <= 70 || _ >= 97 && _ <= 102) && (a -= 2, v += 2);
1357
1357
  }
1358
1358
  let c = 0, u = i - 1;
1359
1359
  const l = (v) => v >= 2 && n.charCodeAt(v - 2) === 37 && // '%'
@@ -1411,14 +1411,14 @@ const rs = "1.16.0", ks = 64 * 1024, { isFunction: Bt } = $, Ms = (t, ...e) => {
1411
1411
  }
1412
1412
  }), b = p.headers.has("Content-Type");
1413
1413
  return p.body != null && p.body.cancel(), g && !b;
1414
- }), v = u && l && Ms(() => $.isReadableStream(new a("").body)), R = {
1414
+ }), v = u && l && Ms(() => $.isReadableStream(new a("").body)), S = {
1415
1415
  stream: v && ((g) => g.body)
1416
1416
  };
1417
1417
  i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
1418
- !R[g] && (R[g] = (p, b) => {
1419
- let S = p && p[g];
1420
- if (S)
1421
- return S.call(p);
1418
+ !S[g] && (S[g] = (p, b) => {
1419
+ let R = p && p[g];
1420
+ if (R)
1421
+ return R.call(p);
1422
1422
  throw new Y(
1423
1423
  `Response type '${g}' is not supported`,
1424
1424
  Y.ERR_NOT_SUPPORT,
@@ -1448,7 +1448,7 @@ const rs = "1.16.0", ks = 64 * 1024, { isFunction: Bt } = $, Ms = (t, ...e) => {
1448
1448
  let {
1449
1449
  url: p,
1450
1450
  method: b,
1451
- data: S,
1451
+ data: R,
1452
1452
  signal: d,
1453
1453
  cancelToken: m,
1454
1454
  timeout: w,
@@ -1464,12 +1464,12 @@ const rs = "1.16.0", ks = 64 * 1024, { isFunction: Bt } = $, Ms = (t, ...e) => {
1464
1464
  const ne = $.isNumber(V) && V > -1, we = $.isNumber(J) && J > -1;
1465
1465
  let re = s || fetch;
1466
1466
  L = L ? (L + "").toLowerCase() : "text";
1467
- let oe = Cu(
1467
+ let ae = Cu(
1468
1468
  [d, m && m.toAbortSignal()],
1469
1469
  w
1470
1470
  ), q = null;
1471
- const P = oe && oe.unsubscribe && (() => {
1472
- oe.unsubscribe();
1471
+ const P = ae && ae.unsubscribe && (() => {
1472
+ ae.unsubscribe();
1473
1473
  });
1474
1474
  let U;
1475
1475
  try {
@@ -1481,7 +1481,7 @@ const rs = "1.16.0", ks = 64 * 1024, { isFunction: Bt } = $, Ms = (t, ...e) => {
1481
1481
  q
1482
1482
  );
1483
1483
  if (we && b !== "get" && b !== "head") {
1484
- const j = await f(N, S);
1484
+ const j = await f(N, R);
1485
1485
  if (typeof j == "number" && isFinite(j) && j > J)
1486
1486
  throw new Y(
1487
1487
  "Request body larger than maxBodyLength limit",
@@ -1490,33 +1490,33 @@ const rs = "1.16.0", ks = 64 * 1024, { isFunction: Bt } = $, Ms = (t, ...e) => {
1490
1490
  q
1491
1491
  );
1492
1492
  }
1493
- if (I && y && b !== "get" && b !== "head" && (U = await f(N, S)) !== 0) {
1493
+ if (I && y && b !== "get" && b !== "head" && (U = await f(N, R)) !== 0) {
1494
1494
  let j = new o(p, {
1495
1495
  method: "POST",
1496
- body: S,
1496
+ body: R,
1497
1497
  duplex: "half"
1498
1498
  }), Z;
1499
- if ($.isFormData(S) && (Z = j.headers.get("content-type")) && N.setContentType(Z), j.body) {
1499
+ if ($.isFormData(R) && (Z = j.headers.get("content-type")) && N.setContentType(Z), j.body) {
1500
1500
  const [Q, A] = Ds(
1501
1501
  U,
1502
1502
  kr(Cs(I))
1503
1503
  );
1504
- S = xs(j.body, ks, Q, A);
1504
+ R = xs(j.body, ks, Q, A);
1505
1505
  }
1506
1506
  }
1507
1507
  $.isString(k) || (k = k ? "include" : "omit");
1508
1508
  const D = c && "credentials" in o.prototype;
1509
- if ($.isFormData(S)) {
1509
+ if ($.isFormData(R)) {
1510
1510
  const j = N.getContentType();
1511
1511
  j && /^multipart\/form-data/i.test(j) && !/boundary=/i.test(j) && N.delete("content-type");
1512
1512
  }
1513
1513
  N.set("User-Agent", "axios/" + rs, !1);
1514
1514
  const E = {
1515
1515
  ...B,
1516
- signal: oe,
1516
+ signal: ae,
1517
1517
  method: b.toUpperCase(),
1518
1518
  headers: N.normalize().toJSON(),
1519
- body: S,
1519
+ body: R,
1520
1520
  duplex: "half",
1521
1521
  credentials: D ? k : void 0
1522
1522
  };
@@ -1561,7 +1561,7 @@ const rs = "1.16.0", ks = 64 * 1024, { isFunction: Bt } = $, Ms = (t, ...e) => {
1561
1561
  );
1562
1562
  }
1563
1563
  L = L || "text";
1564
- let z = await R[$.findKey(R, L) || "text"](
1564
+ let z = await S[$.findKey(S, L) || "text"](
1565
1565
  O,
1566
1566
  g
1567
1567
  );
@@ -1578,7 +1578,7 @@ const rs = "1.16.0", ks = 64 * 1024, { isFunction: Bt } = $, Ms = (t, ...e) => {
1578
1578
  return !x && P && P(), await new Promise((j, Z) => {
1579
1579
  Ya(j, Z, {
1580
1580
  data: z,
1581
- headers: Se.from(O.headers),
1581
+ headers: Re.from(O.headers),
1582
1582
  status: O.status,
1583
1583
  statusText: O.statusText,
1584
1584
  config: g,
@@ -1586,8 +1586,8 @@ const rs = "1.16.0", ks = 64 * 1024, { isFunction: Bt } = $, Ms = (t, ...e) => {
1586
1586
  });
1587
1587
  });
1588
1588
  } catch (D) {
1589
- if (P && P(), oe && oe.aborted && oe.reason instanceof Y) {
1590
- const E = oe.reason;
1589
+ if (P && P(), ae && ae.aborted && ae.reason instanceof Y) {
1590
+ const E = ae.reason;
1591
1591
  throw E.config = g, q && (E.request = q), D !== E && (E.cause = D), E;
1592
1592
  }
1593
1593
  throw D && D.name === "TypeError" && /Load failed|fetch/i.test(D.message) ? Object.assign(
@@ -1675,7 +1675,7 @@ function gn(t) {
1675
1675
  throw new Vt(null, t);
1676
1676
  }
1677
1677
  function qs(t) {
1678
- return gn(t), t.headers = Se.from(t.headers), t.data = mn.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Ja.getAdapter(t.adapter || jt.adapter, t)(t).then(
1678
+ return gn(t), t.headers = Re.from(t.headers), t.data = mn.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Ja.getAdapter(t.adapter || jt.adapter, t)(t).then(
1679
1679
  function(n) {
1680
1680
  gn(t), t.response = n;
1681
1681
  try {
@@ -1683,7 +1683,7 @@ function qs(t) {
1683
1683
  } finally {
1684
1684
  delete t.response;
1685
1685
  }
1686
- return n.headers = Se.from(n.headers), n;
1686
+ return n.headers = Re.from(n.headers), n;
1687
1687
  },
1688
1688
  function(n) {
1689
1689
  if (!za(n) && (gn(t), n && n.response)) {
@@ -1697,7 +1697,7 @@ function qs(t) {
1697
1697
  } finally {
1698
1698
  delete t.response;
1699
1699
  }
1700
- n.response.headers = Se.from(n.response.headers);
1700
+ n.response.headers = Re.from(n.response.headers);
1701
1701
  }
1702
1702
  return Promise.reject(n);
1703
1703
  }
@@ -1830,9 +1830,9 @@ let tt = class {
1830
1830
  !0
1831
1831
  ), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1832
1832
  let a = o && $.merge(o.common, o[r.method]);
1833
- o && $.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (R) => {
1834
- delete o[R];
1835
- }), r.headers = Se.concat(a, o);
1833
+ o && $.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (S) => {
1834
+ delete o[S];
1835
+ }), r.headers = Re.concat(a, o);
1836
1836
  const i = [];
1837
1837
  let c = !0;
1838
1838
  this.interceptors.request.forEach(function(_) {
@@ -1848,17 +1848,17 @@ let tt = class {
1848
1848
  });
1849
1849
  let l, h = 0, y;
1850
1850
  if (!c) {
1851
- const R = [qs.bind(this), void 0];
1852
- for (R.unshift(...i), R.push(...u), y = R.length, l = Promise.resolve(r); h < y; )
1853
- l = l.then(R[h++], R[h++]);
1851
+ const S = [qs.bind(this), void 0];
1852
+ for (S.unshift(...i), S.push(...u), y = S.length, l = Promise.resolve(r); h < y; )
1853
+ l = l.then(S[h++], S[h++]);
1854
1854
  return l;
1855
1855
  }
1856
1856
  y = i.length;
1857
1857
  let v = r;
1858
1858
  for (; h < y; ) {
1859
- const R = i[h++], _ = i[h++];
1859
+ const S = i[h++], _ = i[h++];
1860
1860
  try {
1861
- v = R(v);
1861
+ v = S(v);
1862
1862
  } catch (f) {
1863
1863
  _.call(this, f);
1864
1864
  break;
@@ -1866,8 +1866,8 @@ let tt = class {
1866
1866
  }
1867
1867
  try {
1868
1868
  l = qs.call(this, v);
1869
- } catch (R) {
1870
- return Promise.reject(R);
1869
+ } catch (S) {
1870
+ return Promise.reject(S);
1871
1871
  }
1872
1872
  for (h = 0, y = u.length; h < y; )
1873
1873
  l = l.then(u[h++], u[h++]);
@@ -2083,29 +2083,29 @@ pe.all = function(e) {
2083
2083
  pe.spread = Bu;
2084
2084
  pe.isAxiosError = zu;
2085
2085
  pe.mergeConfig = nt;
2086
- pe.AxiosHeaders = Se;
2086
+ pe.AxiosHeaders = Re;
2087
2087
  pe.formToJSON = (t) => Ba($.isHTMLForm(t) ? new FormData(t) : t);
2088
2088
  pe.getAdapter = Ja.getAdapter;
2089
2089
  pe.HttpStatusCode = jn;
2090
2090
  pe.default = pe;
2091
2091
  const {
2092
- Axios: Jy,
2093
- AxiosError: Qy,
2094
- CanceledError: Xy,
2095
- isCancel: Zy,
2096
- CancelToken: ew,
2097
- VERSION: tw,
2098
- all: rw,
2099
- Cancel: nw,
2100
- isAxiosError: sw,
2101
- spread: ow,
2102
- toFormData: aw,
2103
- AxiosHeaders: iw,
2104
- HttpStatusCode: cw,
2105
- formToJSON: uw,
2106
- getAdapter: lw,
2107
- mergeConfig: dw,
2108
- create: fw
2092
+ Axios: Qy,
2093
+ AxiosError: Xy,
2094
+ CanceledError: Zy,
2095
+ isCancel: ew,
2096
+ CancelToken: tw,
2097
+ VERSION: rw,
2098
+ all: nw,
2099
+ Cancel: sw,
2100
+ isAxiosError: ow,
2101
+ spread: aw,
2102
+ toFormData: iw,
2103
+ AxiosHeaders: cw,
2104
+ HttpStatusCode: uw,
2105
+ formToJSON: lw,
2106
+ getAdapter: dw,
2107
+ mergeConfig: fw,
2108
+ create: pw
2109
2109
  } = pe, Yu = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", Gu = (t) => {
2110
2110
  if (!t.issue || !Array.isArray(t.issue))
2111
2111
  return null;
@@ -2270,7 +2270,7 @@ function ol(t, e) {
2270
2270
  return sl(h, c, u, l);
2271
2271
  });
2272
2272
  }
2273
- const al = process.env.PUBLIC_URL ?? "/", ae = "/openmrs/ws/fhir2/R4", K = "/openmrs/ws/rest/v1", ei = "bahmni.user", il = "/bahmni-v2", pw = il + "/home", os = K + "/session", as = `${K}/bahmnicore/template/api`, Vn = (t) => {
2273
+ const al = process.env.PUBLIC_URL ?? "/", oe = "/openmrs/ws/fhir2/R4", K = "/openmrs/ws/rest/v1", ei = "bahmni.user", il = "/bahmni-v2", hw = il + "/home", os = K + "/session", as = `${K}/bahmnicore/template/api`, Vn = (t) => {
2274
2274
  if (typeof t == "string")
2275
2275
  return ol(t);
2276
2276
  if (Array.isArray(t))
@@ -2310,7 +2310,7 @@ Ge.interceptors.response.use(
2310
2310
  return r.startsWith("ERROR_") || /^[A-Z_]+$/.test(r) ? Promise.reject(new Error(r)) : Promise.reject(`${e}: ${r}`);
2311
2311
  }
2312
2312
  );
2313
- const H = async (t, e) => (await Ge.get(t, e)).data, ve = async (t, e) => (await Ge.post(t, e)).data, is = async (t, e) => (await Ge.put(t, e)).data, hw = async (t, e) => (await Ge.patch(t, e)).data, ti = async (t) => (await Ge.delete(t)).data, W = (t) => typeof t == "string", St = () => {
2313
+ const H = async (t, e) => (await Ge.get(t, e)).data, ve = async (t, e) => (await Ge.post(t, e)).data, is = async (t, e) => (await Ge.put(t, e)).data, mw = async (t, e) => (await Ge.patch(t, e)).data, ti = async (t) => (await Ge.delete(t)).data, W = (t) => typeof t == "string", Rt = () => {
2314
2314
  let t, e;
2315
2315
  const r = new Promise((n, s) => {
2316
2316
  t = n, e = s;
@@ -2663,9 +2663,9 @@ class jr extends Xr {
2663
2663
  }
2664
2664
  const h = this.resolve(e, r);
2665
2665
  let y = h?.res;
2666
- const v = h?.usedKey || a, R = h?.exactUsedKey || a, _ = ["[object Number]", "[object Function]", "[object RegExp]"], f = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, g = !this.i18nFormat || this.i18nFormat.handleAsObject, p = r.count !== void 0 && !W(r.count), b = jr.hasDefaultValue(r), S = p ? this.pluralResolver.getSuffix(u, r.count, r) : "", d = r.ordinal && p ? this.pluralResolver.getSuffix(u, r.count, {
2666
+ const v = h?.usedKey || a, S = h?.exactUsedKey || a, _ = ["[object Number]", "[object Function]", "[object RegExp]"], f = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, g = !this.i18nFormat || this.i18nFormat.handleAsObject, p = r.count !== void 0 && !W(r.count), b = jr.hasDefaultValue(r), R = p ? this.pluralResolver.getSuffix(u, r.count, r) : "", d = r.ordinal && p ? this.pluralResolver.getSuffix(u, r.count, {
2667
2667
  ordinal: !1
2668
- }) : "", m = p && !r.ordinal && r.count === 0, w = m && r[`defaultValue${this.options.pluralSeparator}zero`] || r[`defaultValue${S}`] || r[`defaultValue${d}`] || r.defaultValue;
2668
+ }) : "", m = p && !r.ordinal && r.count === 0, w = m && r[`defaultValue${this.options.pluralSeparator}zero`] || r[`defaultValue${R}`] || r[`defaultValue${d}`] || r.defaultValue;
2669
2669
  let T = y;
2670
2670
  g && !y && b && (T = w);
2671
2671
  const I = Ks(T), L = Object.prototype.toString.apply(T);
@@ -2679,7 +2679,7 @@ class jr extends Xr {
2679
2679
  return s ? (h.res = N, h.usedParams = this.getUsedParamsDetails(r), h) : N;
2680
2680
  }
2681
2681
  if (o) {
2682
- const N = Array.isArray(T), k = N ? [] : {}, B = N ? R : v;
2682
+ const N = Array.isArray(T), k = N ? [] : {}, B = N ? S : v;
2683
2683
  for (const V in T)
2684
2684
  if (Object.prototype.hasOwnProperty.call(T, V)) {
2685
2685
  const J = `${B}${o}${V}`;
@@ -2704,26 +2704,26 @@ class jr extends Xr {
2704
2704
  const V = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && k ? void 0 : y, J = b && w !== y && this.options.updateMissing;
2705
2705
  if (k || N || J) {
2706
2706
  if (this.logger.log(J ? "updateKey" : "missingKey", u, c, a, J ? w : y), o) {
2707
- const oe = this.resolve(a, {
2707
+ const ae = this.resolve(a, {
2708
2708
  ...r,
2709
2709
  keySeparator: !1
2710
2710
  });
2711
- oe && oe.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2711
+ ae && ae.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2712
2712
  }
2713
2713
  let ne = [];
2714
2714
  const we = this.languageUtils.getFallbackCodes(this.options.fallbackLng, r.lng || this.language);
2715
2715
  if (this.options.saveMissingTo === "fallback" && we && we[0])
2716
- for (let oe = 0; oe < we.length; oe++)
2717
- ne.push(we[oe]);
2716
+ for (let ae = 0; ae < we.length; ae++)
2717
+ ne.push(we[ae]);
2718
2718
  else this.options.saveMissingTo === "all" ? ne = this.languageUtils.toResolveHierarchy(r.lng || this.language) : ne.push(r.lng || this.language);
2719
- const re = (oe, q, P) => {
2719
+ const re = (ae, q, P) => {
2720
2720
  const U = b && P !== y ? P : V;
2721
- this.options.missingKeyHandler ? this.options.missingKeyHandler(oe, c, q, U, J, r) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(oe, c, q, U, J, r), this.emit("missingKey", oe, c, q, y);
2721
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(ae, c, q, U, J, r) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(ae, c, q, U, J, r), this.emit("missingKey", ae, c, q, y);
2722
2722
  };
2723
- this.options.saveMissing && (this.options.saveMissingPlurals && p ? ne.forEach((oe) => {
2724
- const q = this.pluralResolver.getSuffixes(oe, r);
2723
+ this.options.saveMissing && (this.options.saveMissingPlurals && p ? ne.forEach((ae) => {
2724
+ const q = this.pluralResolver.getSuffixes(ae, r);
2725
2725
  m && r[`defaultValue${this.options.pluralSeparator}zero`] && q.indexOf(`${this.options.pluralSeparator}zero`) < 0 && q.push(`${this.options.pluralSeparator}zero`), q.forEach((P) => {
2726
- re([oe], a + P, r[`defaultValue${P}`] || w);
2726
+ re([ae], a + P, r[`defaultValue${P}`] || w);
2727
2727
  });
2728
2728
  }) : re(ne, a, w));
2729
2729
  }
@@ -2763,8 +2763,8 @@ class jr extends Xr {
2763
2763
  l < v && (n.nest = !1);
2764
2764
  }
2765
2765
  !n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, function() {
2766
- for (var y = arguments.length, v = new Array(y), R = 0; R < y; R++)
2767
- v[R] = arguments[R];
2766
+ for (var y = arguments.length, v = new Array(y), S = 0; S < y; S++)
2767
+ v[S] = arguments[S];
2768
2768
  return o?.[0] === v[0] && !n.context ? (a.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${r[0]}`), null) : a.translate(...v, r);
2769
2769
  }, n)), n.interpolation && this.interpolator.reset();
2770
2770
  }
@@ -2785,7 +2785,7 @@ class jr extends Xr {
2785
2785
  s = l;
2786
2786
  let h = u.namespaces;
2787
2787
  this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
2788
- const y = r.count !== void 0 && !W(r.count), v = y && !r.ordinal && r.count === 0, R = r.context !== void 0 && (W(r.context) || typeof r.context == "number") && r.context !== "", _ = r.lngs ? r.lngs : this.languageUtils.toResolveHierarchy(r.lng || this.language, r.fallbackLng);
2788
+ const y = r.count !== void 0 && !W(r.count), v = y && !r.ordinal && r.count === 0, S = r.context !== void 0 && (W(r.context) || typeof r.context == "number") && r.context !== "", _ = r.lngs ? r.lngs : this.languageUtils.toResolveHierarchy(r.lng || this.language, r.fallbackLng);
2789
2789
  h.forEach((f) => {
2790
2790
  this.isValidLookup(n) || (i = f, !Gs[`${_[0]}-${f}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(i) && (Gs[`${_[0]}-${f}`] = !0, this.logger.warn(`key "${s}" for languages "${_.join(", ")}" won't get resolved as namespace "${i}" 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!!!")), _.forEach((g) => {
2791
2791
  if (this.isValidLookup(n)) return;
@@ -2794,12 +2794,12 @@ class jr extends Xr {
2794
2794
  if (this.i18nFormat?.addLookupKeys)
2795
2795
  this.i18nFormat.addLookupKeys(p, l, g, f, r);
2796
2796
  else {
2797
- let S;
2798
- y && (S = this.pluralResolver.getSuffix(g, r.count, r));
2797
+ let R;
2798
+ y && (R = this.pluralResolver.getSuffix(g, r.count, r));
2799
2799
  const d = `${this.options.pluralSeparator}zero`, m = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2800
- if (y && (p.push(l + S), r.ordinal && S.indexOf(m) === 0 && p.push(l + S.replace(m, this.options.pluralSeparator)), v && p.push(l + d)), R) {
2800
+ if (y && (p.push(l + R), r.ordinal && R.indexOf(m) === 0 && p.push(l + R.replace(m, this.options.pluralSeparator)), v && p.push(l + d)), S) {
2801
2801
  const w = `${l}${this.options.contextSeparator}${r.context}`;
2802
- p.push(w), y && (p.push(w + S), r.ordinal && S.indexOf(m) === 0 && p.push(w + S.replace(m, this.options.pluralSeparator)), v && p.push(w + d));
2802
+ p.push(w), y && (p.push(w + R), r.ordinal && R.indexOf(m) === 0 && p.push(w + R.replace(m, this.options.pluralSeparator)), v && p.push(w + d));
2803
2803
  }
2804
2804
  }
2805
2805
  let b;
@@ -2999,13 +2999,13 @@ class Tl {
2999
2999
  unescapePrefix: h,
3000
3000
  nestingPrefix: y,
3001
3001
  nestingPrefixEscaped: v,
3002
- nestingSuffix: R,
3002
+ nestingSuffix: S,
3003
3003
  nestingSuffixEscaped: _,
3004
3004
  nestingOptionsSeparator: f,
3005
3005
  maxReplaces: g,
3006
3006
  alwaysFormat: p
3007
3007
  } = e.interpolation;
3008
- this.escape = r !== void 0 ? r : gl, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = o ? at(o) : a || "{{", this.suffix = i ? at(i) : c || "}}", this.formatSeparator = u || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = y ? at(y) : v || at("$t("), this.nestingSuffix = R ? at(R) : _ || at(")"), this.nestingOptionsSeparator = f || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = p !== void 0 ? p : !1, this.resetRegExp();
3008
+ this.escape = r !== void 0 ? r : gl, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = o ? at(o) : a || "{{", this.suffix = i ? at(i) : c || "}}", this.formatSeparator = u || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = y ? at(y) : v || at("$t("), this.nestingSuffix = S ? at(S) : _ || at(")"), this.nestingOptionsSeparator = f || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = p !== void 0 ? p : !1, this.resetRegExp();
3009
3009
  }
3010
3010
  reset() {
3011
3011
  this.options && this.init(this.options);
@@ -3025,7 +3025,7 @@ class Tl {
3025
3025
  interpolationkey: v
3026
3026
  }) : g;
3027
3027
  }
3028
- const R = v.split(this.formatSeparator), _ = R.shift().trim(), f = R.join(this.formatSeparator).trim();
3028
+ const S = v.split(this.formatSeparator), _ = S.shift().trim(), f = S.join(this.formatSeparator).trim();
3029
3029
  return this.format(Xs(r, c, _, this.options.keySeparator, this.options.ignoreJSONStructure), f, n, {
3030
3030
  ...s,
3031
3031
  ...r,
@@ -3042,18 +3042,18 @@ class Tl {
3042
3042
  safeValue: (v) => this.escapeValue ? bn(this.escape(v)) : bn(v)
3043
3043
  }].forEach((v) => {
3044
3044
  for (i = 0; o = v.regex.exec(e); ) {
3045
- const R = o[1].trim();
3046
- if (a = u(R), a === void 0)
3045
+ const S = o[1].trim();
3046
+ if (a = u(S), a === void 0)
3047
3047
  if (typeof l == "function") {
3048
3048
  const f = l(e, o, s);
3049
3049
  a = W(f) ? f : "";
3050
- } else if (s && Object.prototype.hasOwnProperty.call(s, R))
3050
+ } else if (s && Object.prototype.hasOwnProperty.call(s, S))
3051
3051
  a = "";
3052
3052
  else if (h) {
3053
3053
  a = o[0];
3054
3054
  continue;
3055
3055
  } else
3056
- this.logger.warn(`missed to pass in variable ${R} for interpolating ${e}`), a = "";
3056
+ this.logger.warn(`missed to pass in variable ${S} for interpolating ${e}`), a = "";
3057
3057
  else !W(a) && !this.useRawValueToEscape && (a = Vs(a));
3058
3058
  const _ = v.safeValue(a);
3059
3059
  if (e = e.replace(o[0], _), h ? (v.regex.lastIndex += a.length, v.regex.lastIndex -= o[0].length) : v.regex.lastIndex = 0, i++, i >= this.maxReplaces)
@@ -3069,8 +3069,8 @@ class Tl {
3069
3069
  const h = c.split(new RegExp(`${l}[ ]*{`));
3070
3070
  let y = `{${h[1]}`;
3071
3071
  c = h[0], y = this.interpolate(y, a);
3072
- const v = y.match(/'/g), R = y.match(/"/g);
3073
- ((v?.length ?? 0) % 2 === 0 && !R || R.length % 2 !== 0) && (y = y.replace(/'/g, '"'));
3072
+ const v = y.match(/'/g), S = y.match(/"/g);
3073
+ ((v?.length ?? 0) % 2 === 0 && !S || S.length % 2 !== 0) && (y = y.replace(/'/g, '"'));
3074
3074
  try {
3075
3075
  a = JSON.parse(y), u && (a = {
3076
3076
  ...u,
@@ -3100,7 +3100,7 @@ class Tl {
3100
3100
  return e;
3101
3101
  }
3102
3102
  }
3103
- const Rl = (t) => {
3103
+ const Sl = (t) => {
3104
3104
  let e = t.toLowerCase().trim();
3105
3105
  const r = {};
3106
3106
  if (t.indexOf("(") > -1) {
@@ -3131,7 +3131,7 @@ const Rl = (t) => {
3131
3131
  return i || (i = t(qr(n), s), e[a] = i), i(r);
3132
3132
  };
3133
3133
  };
3134
- class Sl {
3134
+ class Rl {
3135
3135
  constructor() {
3136
3136
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3137
3137
  this.logger = qe.create("formatter"), this.options = e, this.formats = {
@@ -3191,7 +3191,7 @@ class Sl {
3191
3191
  const {
3192
3192
  formatName: u,
3193
3193
  formatOptions: l
3194
- } = Rl(c);
3194
+ } = Sl(c);
3195
3195
  if (this.formats[u]) {
3196
3196
  let h = i;
3197
3197
  try {
@@ -3441,7 +3441,7 @@ class kt extends Xr {
3441
3441
  if (!this.options.isClone) {
3442
3442
  this.modules.logger ? qe.init(o(this.modules.logger), this.options) : qe.init(null, this.options);
3443
3443
  let l;
3444
- this.modules.formatter ? l = this.modules.formatter : l = Sl;
3444
+ this.modules.formatter ? l = this.modules.formatter : l = Rl;
3445
3445
  const h = new Ws(this.options);
3446
3446
  this.store = new Ys(this.options.resources, this.options);
3447
3447
  const y = this.services;
@@ -3451,11 +3451,11 @@ class kt extends Xr {
3451
3451
  }), l && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (y.formatter = o(l), y.formatter.init(y, this.options), this.options.interpolation.format = y.formatter.format.bind(y.formatter)), y.interpolator = new Tl(this.options), y.utils = {
3452
3452
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3453
3453
  }, y.backendConnector = new Al(o(this.modules.backend), y.resourceStore, y, this.options), y.backendConnector.on("*", function(v) {
3454
- for (var R = arguments.length, _ = new Array(R > 1 ? R - 1 : 0), f = 1; f < R; f++)
3454
+ for (var S = arguments.length, _ = new Array(S > 1 ? S - 1 : 0), f = 1; f < S; f++)
3455
3455
  _[f - 1] = arguments[f];
3456
3456
  e.emit(v, ..._);
3457
3457
  }), this.modules.languageDetector && (y.languageDetector = o(this.modules.languageDetector), y.languageDetector.init && y.languageDetector.init(y, this.options.detection, this.options)), this.modules.i18nFormat && (y.i18nFormat = o(this.modules.i18nFormat), y.i18nFormat.init && y.i18nFormat.init(this)), this.translator = new jr(this.services, this.options), this.translator.on("*", function(v) {
3458
- for (var R = arguments.length, _ = new Array(R > 1 ? R - 1 : 0), f = 1; f < R; f++)
3458
+ for (var S = arguments.length, _ = new Array(S > 1 ? S - 1 : 0), f = 1; f < S; f++)
3459
3459
  _[f - 1] = arguments[f];
3460
3460
  e.emit(v, ..._);
3461
3461
  }), this.modules.external.forEach((v) => {
@@ -3475,7 +3475,7 @@ class kt extends Xr {
3475
3475
  return e.store[l](...arguments), e;
3476
3476
  };
3477
3477
  });
3478
- const c = St(), u = () => {
3478
+ const c = Rt(), u = () => {
3479
3479
  const l = (h, y) => {
3480
3480
  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(y), n(h, y);
3481
3481
  };
@@ -3502,7 +3502,7 @@ class kt extends Xr {
3502
3502
  n(null);
3503
3503
  }
3504
3504
  reloadResources(e, r, n) {
3505
- const s = St();
3505
+ const s = Rt();
3506
3506
  return typeof e == "function" && (n = e, e = void 0), typeof r == "function" && (n = r, r = void 0), e || (e = this.languages), r || (r = this.options.ns), n || (n = zt), this.services.backendConnector.reload(e, r, (o) => {
3507
3507
  s.resolve(), n(o);
3508
3508
  }), s;
@@ -3525,7 +3525,7 @@ class kt extends Xr {
3525
3525
  changeLanguage(e, r) {
3526
3526
  var n = this;
3527
3527
  this.isLanguageChangingTo = e;
3528
- const s = St();
3528
+ const s = Rt();
3529
3529
  this.emit("languageChanging", e);
3530
3530
  const o = (c) => {
3531
3531
  this.language = c, this.languages = this.services.languageUtils.toResolveHierarchy(c), this.resolvedLanguage = void 0, this.setResolvedLanguage(c);
@@ -3559,7 +3559,7 @@ class kt extends Xr {
3559
3559
  c.lng = c.lng || o.lng, c.lngs = c.lngs || o.lngs, c.ns = c.ns || o.ns, c.keyPrefix !== "" && (c.keyPrefix = c.keyPrefix || n || o.keyPrefix);
3560
3560
  const y = s.options.keySeparator || ".";
3561
3561
  let v;
3562
- return c.keyPrefix && Array.isArray(a) ? v = a.map((R) => `${c.keyPrefix}${y}${R}`) : v = c.keyPrefix ? `${c.keyPrefix}${y}${a}` : a, s.t(v, c);
3562
+ return c.keyPrefix && Array.isArray(a) ? v = a.map((S) => `${c.keyPrefix}${y}${S}`) : v = c.keyPrefix ? `${c.keyPrefix}${y}${a}` : a, s.t(v, c);
3563
3563
  };
3564
3564
  return W(e) ? o.lng = e : o.lngs = e, o.ns = r, o.keyPrefix = n, o;
3565
3565
  }
@@ -3595,7 +3595,7 @@ class kt extends Xr {
3595
3595
  return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!s || a(o, e)));
3596
3596
  }
3597
3597
  loadNamespaces(e, r) {
3598
- const n = St();
3598
+ const n = Rt();
3599
3599
  return this.options.ns ? (W(e) && (e = [e]), e.forEach((s) => {
3600
3600
  this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
3601
3601
  }), this.loadResources((s) => {
@@ -3603,7 +3603,7 @@ class kt extends Xr {
3603
3603
  }), n) : (r && r(), Promise.resolve());
3604
3604
  }
3605
3605
  loadLanguages(e, r) {
3606
- const n = St();
3606
+ const n = Rt();
3607
3607
  W(e) && (e = [e]);
3608
3608
  const s = this.options.preload || [], o = e.filter((a) => s.indexOf(a) < 0 && this.services.languageUtils.isSupportedCode(a));
3609
3609
  return o.length ? (this.options.preload = s.concat(o), this.loadResources((a) => {
@@ -4008,7 +4008,7 @@ const Bl = "en", ii = "NG_TRANSLATE_LANG_KEY", zl = (t, e) => al + `${t}/locales
4008
4008
  }, t !== "en" && (r.en = {
4009
4009
  [e]: await ao(e, "en")
4010
4010
  }), r;
4011
- }, mw = (t, e) => {
4011
+ }, gw = (t, e) => {
4012
4012
  const r = t.toUpperCase(), n = e.toUpperCase().replace(/\s+/g, "_").replace(/[^A-Z0-9_]/g, "");
4013
4013
  return `${r}_${n}`;
4014
4014
  }, Kl = (t, e) => {
@@ -4025,7 +4025,7 @@ const Bl = "en", ii = "NG_TRANSLATE_LANG_KEY", zl = (t, e) => al + `${t}/locales
4025
4025
  labels: n.labels ?? {},
4026
4026
  concepts: n.concepts ?? {}
4027
4027
  };
4028
- }, gw = async (t) => {
4028
+ }, yw = async (t) => {
4029
4029
  const e = Zr(), r = await Gl(e, t);
4030
4030
  return le.isInitialized ? (Object.entries(r).forEach(([n, s]) => {
4031
4031
  Object.entries(s).forEach(([o, a]) => {
@@ -4048,7 +4048,7 @@ const Bl = "en", ii = "NG_TRANSLATE_LANG_KEY", zl = (t, e) => al + `${t}/locales
4048
4048
  }
4049
4049
  }), le;
4050
4050
  };
4051
- function yw() {
4051
+ function ww() {
4052
4052
  const t = xt(null), e = xt(null), r = fn(async () => {
4053
4053
  e.current && (e.current.getTracks().forEach((a) => a.stop()), e.current = null);
4054
4054
  const o = await navigator.mediaDevices.getUserMedia({
@@ -4066,9 +4066,9 @@ function yw() {
4066
4066
  const h = document.createElement("canvas"), y = h.getContext("2d");
4067
4067
  if (y) {
4068
4068
  if (o && a) {
4069
- const v = o / a, R = u / l;
4069
+ const v = o / a, S = u / l;
4070
4070
  let _ = 0, f = 0, g = u, p = l;
4071
- R > v ? (g = Math.round(l * v), _ = Math.round((u - g) / 2)) : (p = Math.round(u / v), f = Math.round((l - p) / 2)), h.width = o, h.height = a, y.drawImage(
4071
+ S > v ? (g = Math.round(l * v), _ = Math.round((u - g) / 2)) : (p = Math.round(u / v), f = Math.round((l - p) / 2)), h.width = o, h.height = a, y.drawImage(
4072
4072
  c,
4073
4073
  _,
4074
4074
  f,
@@ -4088,10 +4088,10 @@ function yw() {
4088
4088
  );
4089
4089
  return rt(() => () => n(), [n]), { videoRef: t, start: r, stop: n, capture: s };
4090
4090
  }
4091
- const Wl = "bahmni.enableAuditLog", ci = (t) => `${K}/bahmnicore/sql/globalproperty?property=${t}`, ww = async (t, e, r) => {
4091
+ const Wl = "bahmni.enableAuditLog", ci = (t) => `${K}/bahmnicore/sql/globalproperty?property=${t}`, Ew = async (t, e, r) => {
4092
4092
  const { exact: n = !0, refetchActiveNow: s = !0 } = r ?? {};
4093
4093
  await t.cancelQueries({ queryKey: e, exact: n }), await t.removeQueries({ queryKey: e, exact: n }), await t.invalidateQueries({ queryKey: e, exact: n }), s && await t.refetchQueries({ queryKey: e, exact: n, type: "active" });
4094
- }, Ew = () => Math.random().toString(36).substring(2, 9), Jl = () => {
4094
+ }, bw = () => Math.random().toString(36).substring(2, 9), Jl = () => {
4095
4095
  if (typeof globalThis < "u" && globalThis.crypto?.randomUUID)
4096
4096
  return globalThis.crypto.randomUUID();
4097
4097
  const t = globalThis.crypto || globalThis.msCrypto;
@@ -4103,7 +4103,7 @@ const Wl = "bahmni.enableAuditLog", ci = (t) => `${K}/bahmnicore/sql/globalprope
4103
4103
  "Crypto API (crypto.randomUUID or crypto.getRandomValues) is not available. UUID generation requires cryptographically secure random number generation."
4104
4104
  );
4105
4105
  };
4106
- function bw(t, e = " -") {
4106
+ function _w(t, e = " -") {
4107
4107
  return t ? t.toLowerCase().split(new RegExp(`[${e}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
4108
4108
  }
4109
4109
  function ui(t) {
@@ -4118,10 +4118,10 @@ function ui(t) {
4118
4118
  function Ql(t) {
4119
4119
  document.cookie = `${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;
4120
4120
  }
4121
- function _w(t, e) {
4121
+ function vw(t, e) {
4122
4122
  document.cookie = `${t}=${e}; path=/;`;
4123
4123
  }
4124
- const vw = (t) => !t || t.trim().length === 0, Tw = (t, e) => {
4124
+ const Tw = (t) => !t || t.trim().length === 0, Sw = (t, e) => {
4125
4125
  if (!t || !e || e.length === 0)
4126
4126
  return 999;
4127
4127
  const r = e.findIndex(
@@ -4141,7 +4141,7 @@ function Rw(t, e) {
4141
4141
  items: s
4142
4142
  }));
4143
4143
  }
4144
- function Sw(t, e, r) {
4144
+ function Ow(t, e, r) {
4145
4145
  if (!t || t.length === 0)
4146
4146
  return [];
4147
4147
  const n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
@@ -4162,7 +4162,7 @@ function Xl(t) {
4162
4162
  o[n(a[1])] = n(a[2]);
4163
4163
  return o;
4164
4164
  }
4165
- function Ow(t, e, r) {
4165
+ function Aw(t, e, r) {
4166
4166
  const n = /{{([^}]*)}}/g, s = t.match(n);
4167
4167
  let o = t;
4168
4168
  const a = r ?? !1, i = a ? Xl() : {};
@@ -4175,7 +4175,7 @@ function Ow(t, e, r) {
4175
4175
  const Zl = (t) => new Promise((e, r) => {
4176
4176
  const n = new FileReader();
4177
4177
  n.onloadend = () => e(n.result), n.onerror = r, n.readAsDataURL(t);
4178
- }), Aw = (t) => {
4178
+ }), Nw = (t) => {
4179
4179
  if (typeof t == "number" && !isNaN(t))
4180
4180
  return "number";
4181
4181
  if (typeof t != "string")
@@ -4183,17 +4183,17 @@ const Zl = (t) => new Promise((e, r) => {
4183
4183
  const e = t.toLowerCase();
4184
4184
  return e.endsWith(".pdf") ? "PDF" : [".png", ".jpg", ".jpeg", ".gif", ".bmp", ".svg"].some((s) => e.endsWith(s)) ? "Image" : [".mp4", ".ogg", ".webm", ".mkv", ".flv"].some((s) => e.endsWith(s)) ? "Video" : typeof t == "string" ? "string" : "object";
4185
4185
  };
4186
- function Nw(t) {
4186
+ function Pw(t) {
4187
4187
  return t.replace(/[\s-]+/g, "_").replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
4188
4188
  }
4189
- function Pw(t, e, r, n, s) {
4189
+ function Iw(t, e, r, n, s) {
4190
4190
  const o = (a) => ({
4191
4191
  ...n(a),
4192
4192
  disabled: !0
4193
4193
  });
4194
4194
  return t ? [o(s.loading)] : e ? [o(s.error)] : r.length ? r : [o(s.empty)];
4195
4195
  }
4196
- function Iw(t) {
4196
+ function $w(t) {
4197
4197
  return t ? t.replaceAll(/[_-]/g, " ").replaceAll(/([a-z])([A-Z])/g, "$1 $2").replaceAll(/([A-Z])([A-Z][a-z])/g, "$1 $2").replaceAll(/([a-z])(\d)/gi, "$1 $2").replaceAll(/(\d)([a-z])/gi, "$1 $2").replaceAll(/\s+/g, " ").trim().toLowerCase().replace(/^./, (e) => e.toUpperCase()) : "";
4198
4198
  }
4199
4199
  const ed = (t) => K + `/user?username=${t}&v=custom:(display,username,uuid)`, li = "bahmni.user.location", td = `${K}/location?tags=Login Location&v=default`, rd = (t) => K + `/user/${t}?v=full`, nd = (t) => K + `/bahmni/app/setting?module=${t}`, sd = "default_dateFormat", od = os, ad = os, id = [
@@ -4202,7 +4202,7 @@ const ed = (t) => K + `/user?username=${t}&v=custom:(display,username,uuid)`, li
4202
4202
  ], cd = {
4203
4203
  LOGOUT_FAILED: "USER_LOGOUT_FAILED"
4204
4204
  };
4205
- async function $w() {
4205
+ async function Dw() {
4206
4206
  const t = ui(ei);
4207
4207
  if (!t)
4208
4208
  return null;
@@ -4226,9 +4226,9 @@ const cs = () => {
4226
4226
  if (!e.uuid)
4227
4227
  throw new Error(le.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
4228
4228
  return e;
4229
- }, Dw = async () => (await H(nd("commons"))).find(
4229
+ }, Cw = async () => (await H(nd("commons"))).find(
4230
4230
  (r) => r.property === sd
4231
- )?.value ?? null, Cw = async () => (await H(td)).results ?? [], Lw = async () => {
4231
+ )?.value ?? null, Lw = async () => (await H(td)).results ?? [], xw = async () => {
4232
4232
  try {
4233
4233
  await ti(od), id.forEach((t) => {
4234
4234
  Ql(t);
@@ -4236,11 +4236,11 @@ const cs = () => {
4236
4236
  } catch (t) {
4237
4237
  throw console.error("Logout failed:", t), new Error(le.t(cd.LOGOUT_FAILED));
4238
4238
  }
4239
- }, xw = async (t, e) => {
4239
+ }, kw = async (t, e) => {
4240
4240
  await ve(rd(t), {
4241
4241
  userProperties: { loginLocation: e.uuid }
4242
4242
  });
4243
- }, kw = async (t) => {
4243
+ }, Mw = async (t) => {
4244
4244
  await ve(ad, { sessionLocation: t });
4245
4245
  }, us = {
4246
4246
  person: {
@@ -4260,7 +4260,7 @@ const cs = () => {
4260
4260
  t.append(n.resultParam, s);
4261
4261
  });
4262
4262
  });
4263
- }, di = (t) => ae + `/Patient/${t}`, ld = (t, e, r) => {
4263
+ }, di = (t) => oe + `/Patient/${t}`, ld = (t, e, r) => {
4264
4264
  const n = new URLSearchParams({
4265
4265
  filterOnAllIdentifiers: "false",
4266
4266
  identifier: t,
@@ -4285,13 +4285,13 @@ const cs = () => {
4285
4285
  return i && (a.set(i.searchParam, o), r.forEach((c) => {
4286
4286
  a.append(i.searchFieldParam, c);
4287
4287
  })), ud(a, n), K + `/bahmni/search/patient?${a.toString()}`;
4288
- }, fi = K + "/idgen/identifiertype", fd = (t) => K + `/bahmni/app/setting?module=${t}`, pd = "bahmni.primaryIdentifierType", hd = K + "/bahmnicore/patientprofile", md = (t) => K + `/bahmnicore/patientprofile/${t}`, gd = ae + "/Patient", yd = (t) => K + `/idgen/identifiersource/${t}/identifier`, wd = (t) => K + `/patientprofile/${t}?v=full`, Ed = (t, e, r = 20, n) => {
4288
+ }, fi = K + "/idgen/identifiertype", fd = (t) => K + `/bahmni/app/setting?module=${t}`, pd = "bahmni.primaryIdentifierType", hd = K + "/bahmnicore/patientprofile", md = (t) => K + `/bahmnicore/patientprofile/${t}`, gd = oe + "/Patient", yd = (t) => K + `/idgen/identifiersource/${t}/identifier`, wd = (t) => K + `/patientprofile/${t}?v=full`, Ed = (t, e, r = 20, n) => {
4289
4289
  let s = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${t}&limit=${r}&searchString=${encodeURIComponent(e)}`;
4290
4290
  return n && (s += `&parent=${n}`), s;
4291
- }, bd = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", _d = K + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", vd = 20, Td = 2, Mw = 120, Uw = 50, qw = 15, Rd = /^[a-f0-9-]{36}$/i, Sd = K + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", Od = async (t) => {
4291
+ }, bd = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", _d = K + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", vd = 20, Td = 2, Uw = 120, qw = 50, Fw = 15, Sd = /^[a-f0-9-]{36}$/i, Rd = K + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", Od = async (t) => {
4292
4292
  if (!t || t.trim() === "")
4293
4293
  throw new Error("Invalid patient UUID: UUID cannot be empty");
4294
- if (!Rd.test(t))
4294
+ if (!Sd.test(t))
4295
4295
  throw new Error(`Invalid patient UUID format: ${t}`);
4296
4296
  return H(di(t));
4297
4297
  }, Ad = (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) : []), Nd = (t) => {
@@ -4322,22 +4322,22 @@ const cs = () => {
4322
4322
  identifiers: s,
4323
4323
  photoUrl: t.photo?.[0]?.url
4324
4324
  };
4325
- }, Fw = async (t) => {
4325
+ }, jw = async (t) => {
4326
4326
  const e = await Od(t);
4327
4327
  return $d(e);
4328
- }, jw = async (t) => {
4328
+ }, Vw = async (t) => {
4329
4329
  if (!t.startsWith("/"))
4330
4330
  throw new Error("Photo URL must be a relative path");
4331
4331
  const e = await H(t, {
4332
4332
  responseType: "blob"
4333
4333
  });
4334
4334
  return await Zl(e);
4335
- }, Vw = async (t, e) => {
4335
+ }, Hw = async (t, e) => {
4336
4336
  const r = cs();
4337
4337
  return await H(
4338
4338
  ld(t, r.uuid, e)
4339
4339
  );
4340
- }, Hw = async (t, e, r, n, s) => {
4340
+ }, Bw = async (t, e, r, n, s) => {
4341
4341
  const o = cs();
4342
4342
  return await H(
4343
4343
  dd(
@@ -4348,9 +4348,9 @@ const cs = () => {
4348
4348
  o.uuid
4349
4349
  )
4350
4350
  );
4351
- }, Bw = async () => H(fi), Dd = async () => (await H(fd("core"))).find(
4351
+ }, zw = async () => H(fi), Dd = async () => (await H(fd("core"))).find(
4352
4352
  (r) => r.property === pd
4353
- )?.value ?? null, zw = async () => {
4353
+ )?.value ?? null, Yw = async () => {
4354
4354
  const [t, e] = await Promise.all([
4355
4355
  H(fi),
4356
4356
  Dd()
@@ -4378,10 +4378,10 @@ const cs = () => {
4378
4378
  primaryIdentifierTypeUuid: e,
4379
4379
  primaryIdentifierTypeName: null
4380
4380
  };
4381
- }, Yw = async (t) => ve(hd, t), Gw = async (t, e) => ve(
4381
+ }, Gw = async (t) => ve(hd, t), Kw = async (t, e) => ve(
4382
4382
  md(t),
4383
4383
  e
4384
- ), Kw = (t) => ve(gd, t), Ww = (t) => ve(yd(t), {}), Jw = (t, e) => is(di(t), e), Qw = async () => H(ci("mrs.genders")), Xw = async (t, e, r = vd, n) => {
4384
+ ), Ww = (t) => ve(gd, t), Jw = (t) => ve(yd(t), {}), Qw = (t, e) => is(di(t), e), Xw = async () => H(ci("mrs.genders")), Zw = async (t, e, r = vd, n) => {
4385
4385
  if (!e || e.length < Td)
4386
4386
  return [];
4387
4387
  try {
@@ -4393,7 +4393,7 @@ const cs = () => {
4393
4393
  `Failed to fetch address hierarchy for field "${t}": ${s instanceof Error ? s.message : "Unknown error"}`
4394
4394
  );
4395
4395
  }
4396
- }, Zw = async () => H(bd), eE = async (t) => H(wd(t)), tE = async () => {
4396
+ }, eE = async () => H(bd), tE = async (t) => H(wd(t)), rE = async () => {
4397
4397
  try {
4398
4398
  return (await H(
4399
4399
  _d
@@ -4407,9 +4407,9 @@ const cs = () => {
4407
4407
  `Failed to fetch relationship types: ${t instanceof Error ? t.message : "Unknown error"}`
4408
4408
  );
4409
4409
  }
4410
- }, rE = async () => H(Sd);
4410
+ }, nE = async () => H(Rd);
4411
4411
  var Cd = /* @__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))(Cd || {}), Ld = /* @__PURE__ */ ((t) => (t.CHECKBOX = "checkbox", t.DROPDOWN = "dropdown", t.TEXT = "text", t.NUMBER = "number", t.DATE = "date", t))(Ld || {});
4412
- const nE = (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", sE = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype", oE = (t) => t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype", aE = (t) => t === "java.lang.Integer" || t === "java.lang.Float", iE = (t) => t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype", cE = (t) => t === "java.lang.String" || t === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || t === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", xd = (t) => {
4412
+ const sE = (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", oE = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype", aE = (t) => t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype", iE = (t) => t === "java.lang.Integer" || t === "java.lang.Float", cE = (t) => t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype", uE = (t) => t === "java.lang.String" || t === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || t === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", xd = (t) => {
4413
4413
  const e = new CustomEvent("bahmni-audit-log", { detail: t });
4414
4414
  window.dispatchEvent(e);
4415
4415
  }, kd = (t) => {
@@ -4471,10 +4471,10 @@ const nE = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype
4471
4471
  }
4472
4472
  }, Md = K + "/auditlog", Ud = {
4473
4473
  UNKNOWN_EVENT_TYPE: "AUDIT_LOG_ERROR_UNKNOWN_EVENT_TYPE"
4474
- }, qd = () => K + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Fd = K + "/visit", jd = (t) => K + `/visit?patient=${t}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, Vd = (t) => K + `/bahmnicore/visitLocation/${t}`, uE = async () => H(qd()), Hd = async (t) => H(jd(t)), Bd = async (t) => H(Vd(t)), zd = async (t) => ve(Fd, t), lE = async (t) => {
4474
+ }, qd = () => K + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Fd = K + "/visit", jd = (t) => K + `/visit?patient=${t}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, Vd = (t) => K + `/bahmnicore/visitLocation/${t}`, lE = async () => H(qd()), Hd = async (t) => H(jd(t)), Bd = async (t) => H(Vd(t)), zd = async (t) => ve(Fd, t), dE = async (t) => {
4475
4475
  const e = await Hd(t);
4476
4476
  return e?.results && e.results.length > 0;
4477
- }, dE = async (t, e) => {
4477
+ }, fE = async (t, e) => {
4478
4478
  const r = await Bd(
4479
4479
  cs().uuid
4480
4480
  ), n = {
@@ -4975,7 +4975,7 @@ function Tf(t) {
4975
4975
  return { value: a, rest: i };
4976
4976
  };
4977
4977
  }
4978
- const Rf = /^(\d+)(th|st|nd|rd)?/i, Sf = /\d+/i, Of = {
4978
+ const Sf = /^(\d+)(th|st|nd|rd)?/i, Rf = /\d+/i, Of = {
4979
4979
  narrow: /^(b|a)/i,
4980
4980
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
4981
4981
  wide: /^(before christ|before common era|anno domini|common era)/i
@@ -5044,8 +5044,8 @@ const Rf = /^(\d+)(th|st|nd|rd)?/i, Sf = /\d+/i, Of = {
5044
5044
  }
5045
5045
  }, kf = {
5046
5046
  ordinalNumber: Tf({
5047
- matchPattern: Rf,
5048
- parsePattern: Sf,
5047
+ matchPattern: Sf,
5048
+ parsePattern: Rf,
5049
5049
  valueCallback: (t) => parseInt(t, 10)
5050
5050
  }),
5051
5051
  era: At({
@@ -5973,7 +5973,7 @@ function Ue(t, e) {
5973
5973
  rest: e.slice(r[0].length)
5974
5974
  };
5975
5975
  }
5976
- function Ri(t) {
5976
+ function Si(t) {
5977
5977
  return fe(me.anyDigitsSigned, t);
5978
5978
  }
5979
5979
  function he(t, e) {
@@ -6018,7 +6018,7 @@ function ms(t) {
6018
6018
  return 0;
6019
6019
  }
6020
6020
  }
6021
- function Si(t, e) {
6021
+ function Ri(t, e) {
6022
6022
  const r = e > 0, n = r ? e : 1 - e;
6023
6023
  let s;
6024
6024
  if (n <= 50)
@@ -6060,7 +6060,7 @@ class sp extends ie {
6060
6060
  set(e, r, n) {
6061
6061
  const s = e.getFullYear();
6062
6062
  if (n.isTwoDigitYear) {
6063
- const a = Si(
6063
+ const a = Ri(
6064
6064
  n.year,
6065
6065
  s
6066
6066
  );
@@ -6097,7 +6097,7 @@ class op extends ie {
6097
6097
  set(e, r, n, s) {
6098
6098
  const o = hs(e, s);
6099
6099
  if (n.isTwoDigitYear) {
6100
- const i = Si(
6100
+ const i = Ri(
6101
6101
  n.year,
6102
6102
  o
6103
6103
  );
@@ -6754,7 +6754,7 @@ function Tp(t, e, r) {
6754
6754
  const n = de(t, r?.in), s = Qf(n, r), o = e - s;
6755
6755
  return tn(n, o, r);
6756
6756
  }
6757
- class Rp extends ie {
6757
+ class Sp extends ie {
6758
6758
  priority = 90;
6759
6759
  parse(e, r, n) {
6760
6760
  const s = (o) => o === 0 ? 7 : o;
@@ -6845,7 +6845,7 @@ class Rp extends ie {
6845
6845
  "T"
6846
6846
  ];
6847
6847
  }
6848
- class Sp extends ie {
6848
+ class Rp extends ie {
6849
6849
  priority = 80;
6850
6850
  parse(e, r, n) {
6851
6851
  switch (r) {
@@ -7158,7 +7158,7 @@ class kp extends ie {
7158
7158
  class Mp extends ie {
7159
7159
  priority = 40;
7160
7160
  parse(e) {
7161
- return Ri(e);
7161
+ return Si(e);
7162
7162
  }
7163
7163
  set(e, r, n) {
7164
7164
  return [ye(e, n * 1e3), { timestampIsSet: !0 }];
@@ -7168,7 +7168,7 @@ class Mp extends ie {
7168
7168
  class Up extends ie {
7169
7169
  priority = 20;
7170
7170
  parse(e) {
7171
- return Ri(e);
7171
+ return Si(e);
7172
7172
  }
7173
7173
  set(e, r, n) {
7174
7174
  return [ye(e, n), { timestampIsSet: !0 }];
@@ -7192,8 +7192,8 @@ const qp = {
7192
7192
  E: new bp(),
7193
7193
  e: new _p(),
7194
7194
  c: new vp(),
7195
- i: new Rp(),
7196
- a: new Sp(),
7195
+ i: new Sp(),
7196
+ a: new Rp(),
7197
7197
  b: new Op(),
7198
7198
  B: new Ap(),
7199
7199
  h: new Np(),
@@ -7239,15 +7239,15 @@ function Yp(t, e, r, n) {
7239
7239
  `The format string mustn't contain \`${f}\` and any other token at the same time`
7240
7240
  );
7241
7241
  y.push({ token: g, fullToken: f });
7242
- const S = p.run(
7242
+ const R = p.run(
7243
7243
  t,
7244
7244
  f,
7245
7245
  a.match,
7246
7246
  u
7247
7247
  );
7248
- if (!S)
7248
+ if (!R)
7249
7249
  return s();
7250
- l.push(S.setter), t = S.rest;
7250
+ l.push(R.setter), t = R.rest;
7251
7251
  } else {
7252
7252
  if (g.match(zp))
7253
7253
  throw new RangeError(
@@ -7264,16 +7264,16 @@ function Yp(t, e, r, n) {
7264
7264
  const v = l.map((f) => f.priority).sort((f, g) => g - f).filter((f, g, p) => p.indexOf(f) === g).map(
7265
7265
  (f) => l.filter((g) => g.priority === f).sort((g, p) => p.subPriority - g.subPriority)
7266
7266
  ).map((f) => f[0]);
7267
- let R = de(r, n?.in);
7268
- if (isNaN(+R)) return s();
7267
+ let S = de(r, n?.in);
7268
+ if (isNaN(+S)) return s();
7269
7269
  const _ = {};
7270
7270
  for (const f of v) {
7271
- if (!f.validate(R, u))
7271
+ if (!f.validate(S, u))
7272
7272
  return s();
7273
- const g = f.set(R, _, u);
7274
- Array.isArray(g) ? (R = g[0], Object.assign(_, g[1])) : R = g;
7273
+ const g = f.set(S, _, u);
7274
+ Array.isArray(g) ? (S = g[0], Object.assign(_, g[1])) : S = g;
7275
7275
  }
7276
- return R;
7276
+ return S;
7277
7277
  }
7278
7278
  function Gp(t) {
7279
7279
  return t.match(Vp)[1].replace(Hp, "'");
@@ -7405,7 +7405,7 @@ function dh(t, e, r) {
7405
7405
  function fh(t, e, r) {
7406
7406
  return ds(t, -e, r);
7407
7407
  }
7408
- const fE = {
7408
+ const pE = {
7409
7409
  PROPOSED: "proposed",
7410
7410
  PENDING: "pending",
7411
7411
  BOOKED: "booked",
@@ -7416,51 +7416,51 @@ const fE = {
7416
7416
  CHECKED_IN: "checked-in",
7417
7417
  WAITLIST: "waitlist",
7418
7418
  ENTERED_IN_ERROR: "entered-in-error"
7419
- }, ph = K + "/appointments/search", Ni = K + "/appointments", pE = "http://fhir.bahmni.org/code-system/appointments", hh = (t) => `${Ni}/${t}`, nn = (t, e, r, n) => {
7419
+ }, ph = K + "/appointments/search", Ni = K + "/appointments", hE = "http://fhir.bahmni.org/code-system/appointments", hh = (t) => `${Ni}/${t}`, nn = (t, e, r, n) => {
7420
7420
  const s = e === "upcoming", o = s ? "ge" : "le", a = s ? "date" : "-date", i = s ? (/* @__PURE__ */ new Date()).toISOString() : dh(/* @__PURE__ */ new Date()).toISOString();
7421
- let c = `${ae}/Appointment?patient=${t}&date=${o}${i}&_sort=${a}`;
7421
+ let c = `${oe}/Appointment?patient=${t}&date=${o}${i}&_sort=${a}`;
7422
7422
  return r !== void 0 && r > 0 && (c += `&_count=${r}`), n !== void 0 && n > 0 && (c += `&_getpagesoffset=${n}`), c;
7423
- }, mh = (t) => nn(t, "upcoming"), gh = (t, e) => nn(t, "past", e), yh = (t) => `${Ni}/${t}/status-change`, wh = K + "/appointmentService/all/full", Eh = (t) => `${K}/appointmentService?uuid=${t}`, bh = (t, e = 10, r = 0) => nn(t, "upcoming", e, r), _h = (t, e = 10, r = 0) => nn(t, "past", e, r), Pi = K + "/appointmentUnavailability", hE = async (t) => await ve(ph, t);
7424
- async function mE(t) {
7423
+ }, mh = (t) => nn(t, "upcoming"), gh = (t, e) => nn(t, "past", e), yh = (t) => `${Ni}/${t}/status-change`, wh = K + "/appointmentService/all/full", Eh = (t) => `${K}/appointmentService?uuid=${t}`, bh = (t, e = 10, r = 0) => nn(t, "upcoming", e, r), _h = (t, e = 10, r = 0) => nn(t, "past", e, r), Pi = K + "/appointmentUnavailability", mE = async (t) => await ve(ph, t);
7424
+ async function gE(t) {
7425
7425
  return await H(mh(t));
7426
7426
  }
7427
- async function gE(t, e) {
7427
+ async function yE(t, e) {
7428
7428
  return await H(
7429
7429
  gh(t, e)
7430
7430
  );
7431
7431
  }
7432
- const yE = async (t, e, r) => await ve(yh(t), {
7432
+ const wE = async (t, e, r) => await ve(yh(t), {
7433
7433
  toStatus: e,
7434
7434
  onDate: r
7435
7435
  });
7436
- async function wE(t) {
7436
+ async function EE(t) {
7437
7437
  return await H(hh(t));
7438
7438
  }
7439
- const EE = async () => await H(wh), bE = async (t) => {
7439
+ const bE = async () => await H(wh), _E = async (t) => {
7440
7440
  await ti(Eh(t));
7441
7441
  };
7442
- async function _E(t, e = 10, r = 1) {
7442
+ async function vE(t, e = 10, r = 1) {
7443
7443
  const n = (r - 1) * e, s = await H(
7444
7444
  bh(t, e, n)
7445
7445
  );
7446
7446
  return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
7447
7447
  }
7448
- async function vE(t, e = 10, r = 1) {
7448
+ async function TE(t, e = 10, r = 1) {
7449
7449
  const n = (r - 1) * e, s = await H(
7450
7450
  _h(t, e, n)
7451
7451
  );
7452
7452
  return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
7453
7453
  }
7454
- const TE = async () => await H(Pi), RE = async (t) => {
7454
+ const SE = async () => await H(Pi), RE = async (t) => {
7455
7455
  await ve(Pi, t);
7456
- }, Ii = "dd/MM/yyyy", vh = "default_dateFormat", Th = "h:mm a", SE = "yyyy-MM-dd", De = {
7456
+ }, Ii = "dd/MM/yyyy", vh = "default_dateFormat", Th = "h:mm a", OE = "yyyy-MM-dd", De = {
7457
7457
  PARSE_ERROR: "DATE_ERROR_PARSE",
7458
7458
  FORMAT_ERROR: "DATE_ERROR_FORMAT",
7459
7459
  EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
7460
7460
  INVALID_FORMAT: "DATE_ERROR_INVALID_FORMAT",
7461
7461
  NULL_OR_UNDEFINED: "DATE_ERROR_NULL_OR_UNDEFINED"
7462
7462
  };
7463
- function OE(t) {
7463
+ function AE(t) {
7464
7464
  if (typeof t != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(t))
7465
7465
  return null;
7466
7466
  const e = ys(t);
@@ -7488,7 +7488,7 @@ function $i(t, e) {
7488
7488
  }
7489
7489
  };
7490
7490
  }
7491
- function Rh(t, e, r) {
7491
+ function Sh(t, e, r) {
7492
7492
  if (t == null)
7493
7493
  return {
7494
7494
  formattedResult: "",
@@ -7516,7 +7516,7 @@ function Rh(t, e, r) {
7516
7516
  }
7517
7517
  } : { formattedResult: vi(n, e) };
7518
7518
  }
7519
- function Sh() {
7519
+ function Rh() {
7520
7520
  try {
7521
7521
  const t = new Intl.DateTimeFormat().formatToParts(/* @__PURE__ */ new Date()), e = {
7522
7522
  day: "dd",
@@ -7528,17 +7528,17 @@ function Sh() {
7528
7528
  return Ii;
7529
7529
  }
7530
7530
  }
7531
- function AE(t, e, r = !1, n) {
7531
+ function NE(t, e, r = !1, n) {
7532
7532
  const s = e ?? ((a) => a);
7533
7533
  let o;
7534
7534
  try {
7535
- o = n ?? localStorage.getItem(vh) ?? Sh();
7535
+ o = n ?? localStorage.getItem(vh) ?? Rh();
7536
7536
  } catch {
7537
7537
  o = Ii;
7538
7538
  }
7539
- return r && !n && (o = `${o} ${Th}`), Rh(t, o, s);
7539
+ return r && !n && (o = `${o} ${Th}`), Sh(t, o, s);
7540
7540
  }
7541
- function NE(t, e, r) {
7541
+ function PE(t, e, r) {
7542
7542
  if (!t || !vt(t) || e === null || e === void 0 || !r || typeof e != "number")
7543
7543
  return;
7544
7544
  const n = new Date(t);
@@ -7553,7 +7553,7 @@ function NE(t, e, r) {
7553
7553
  return;
7554
7554
  }
7555
7555
  }
7556
- function PE(t, e) {
7556
+ function IE(t, e) {
7557
7557
  if (t == null)
7558
7558
  return {
7559
7559
  formattedResult: "",
@@ -7605,11 +7605,11 @@ function PE(t, e) {
7605
7605
  }
7606
7606
  return { formattedResult: c };
7607
7607
  }
7608
- const IE = () => {
7608
+ const $E = () => {
7609
7609
  const t = /* @__PURE__ */ new Date();
7610
7610
  return t.setHours(0, 0, 0, 0), t;
7611
7611
  };
7612
- function $E(t, e) {
7612
+ function DE(t, e) {
7613
7613
  const r = typeof t == "string" ? ys(t) : new Date(t), n = /* @__PURE__ */ new Date(), s = ps(n, r), o = ds(r, s), a = fs(n, o), i = rn(o, a), c = zn(n, i), u = {
7614
7614
  years: "YEARS",
7615
7615
  months: "MONTHS",
@@ -7620,8 +7620,8 @@ function $E(t, e) {
7620
7620
  days: " days"
7621
7621
  }, h = zn(n, r);
7622
7622
  if (h <= 90) {
7623
- const R = e ? e(u.days, { count: h }) : l.days;
7624
- return `${h}${R}`;
7623
+ const S = e ? e(u.days, { count: h }) : l.days;
7624
+ return `${h}${S}`;
7625
7625
  }
7626
7626
  return (s >= 1 ? [
7627
7627
  [s, u.years, l.years],
@@ -7630,9 +7630,9 @@ function $E(t, e) {
7630
7630
  ] : [
7631
7631
  [a, u.months, l.months],
7632
7632
  [c, u.days, l.days]
7633
- ]).map(([R, _, f]) => {
7634
- const g = e ? e(_, { count: R }) : f;
7635
- return `${R}${g}`;
7633
+ ]).map(([S, _, f]) => {
7634
+ const g = e ? e(_, { count: S }) : f;
7635
+ return `${S}${g}`;
7636
7636
  }).join(" ");
7637
7637
  }
7638
7638
  const Oh = {
@@ -7643,14 +7643,14 @@ const Oh = {
7643
7643
  h: 1 / 24,
7644
7644
  min: 1 / 1440,
7645
7645
  s: 1 / 86400
7646
- }, DE = (t, e, r) => {
7646
+ }, CE = (t, e, r) => {
7647
7647
  const n = typeof t == "string" ? new Date(t) : t;
7648
7648
  if (isNaN(n.getTime()))
7649
7649
  throw new Error(`Invalid date: ${t}`);
7650
7650
  const s = Oh[r] ?? 1, o = e * s;
7651
7651
  return tn(n, o);
7652
- }, CE = (t, e, r, n) => t <= n && r <= e;
7653
- function LE(t, e, r = !1) {
7652
+ }, LE = (t, e, r, n) => t <= n && r <= e;
7653
+ function xE(t, e, r = !1) {
7654
7654
  return !t || !Array.isArray(t) ? [] : t.sort((n, s) => {
7655
7655
  const o = new Date(n[e]), a = new Date(s[e]);
7656
7656
  if (isNaN(o.getTime()) && isNaN(a.getTime())) return 0;
@@ -7665,7 +7665,7 @@ function Ah(t) {
7665
7665
  const e = Yp(t, "hh:mm aa", /* @__PURE__ */ new Date());
7666
7666
  return vt(e) ? vi(e, "HH:mm") : "";
7667
7667
  }
7668
- function xE(t) {
7668
+ function kE(t) {
7669
7669
  const e = Ah(t);
7670
7670
  if (!e) return null;
7671
7671
  const [r, n] = e.split(":").map(Number);
@@ -7700,7 +7700,7 @@ const Nh = () => {
7700
7700
  );
7701
7701
  }
7702
7702
  };
7703
- }, kE = Nh(), Ph = (t) => ae + `/ValueSet/${t}/$expand`, Ih = (t) => ae + `/ValueSet/$expand?filter=${encodeURIComponent(t)}`, $h = (t, e, r) => K + `/bahmni/terminologies/concepts?limit=${e}&locale=${r}&term=${t}`, Dh = (t) => K + `/concept/${t}`, Ch = (t) => `${K}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, Lh = "SHORT", xh = "FULLY_SPECIFIED", ME = async (t, e = 20) => {
7703
+ }, ME = Nh(), Ph = (t) => oe + `/ValueSet/${t}/$expand`, Ih = (t) => oe + `/ValueSet/$expand?filter=${encodeURIComponent(t)}`, $h = (t, e, r) => K + `/bahmni/terminologies/concepts?limit=${e}&locale=${r}&term=${t}`, Dh = (t) => K + `/concept/${t}`, Ch = (t) => `${K}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, Lh = "SHORT", xh = "FULLY_SPECIFIED", UE = async (t, e = 20) => {
7704
7704
  const r = Zr(), n = $h(t, e, r);
7705
7705
  return H(n);
7706
7706
  }, Lr = async (t) => {
@@ -7710,10 +7710,10 @@ const Nh = () => {
7710
7710
  const e = `${Ih(t)}`;
7711
7711
  return H(e);
7712
7712
  };
7713
- async function UE(t) {
7713
+ async function qE(t) {
7714
7714
  return await H(Dh(t));
7715
7715
  }
7716
- async function qE(t) {
7716
+ async function FE(t) {
7717
7717
  const e = Ch(t), r = await H(e);
7718
7718
  return !r.results || r.results.length === 0 ? null : r.results[0];
7719
7719
  }
@@ -7727,7 +7727,7 @@ function Mh(t) {
7727
7727
  }
7728
7728
  return e ?? t[0].name ?? null;
7729
7729
  }
7730
- const Uh = (t) => ae + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_lastUpdated`, dt = {
7730
+ const Uh = (t) => oe + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_lastUpdated`, dt = {
7731
7731
  FOOD: {
7732
7732
  code: "162553AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
7733
7733
  display: "food"
@@ -7749,7 +7749,7 @@ const Uh = (t) => ae + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
7749
7749
  }), Tn = (t, e) => {
7750
7750
  const r = t.expansion?.contains ?? [];
7751
7751
  return Fh(r).map((s) => jh(s, e));
7752
- }, FE = async (t, e, r) => {
7752
+ }, jE = async (t, e, r) => {
7753
7753
  const n = t ?? dt.MEDICATION.code, s = e ?? dt.FOOD.code, o = r ?? dt.ENVIRONMENT.code, [a, i, c] = await Promise.all([
7754
7754
  Lr(n),
7755
7755
  Lr(s),
@@ -7769,7 +7769,7 @@ const Uh = (t) => ae + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
7769
7769
  dt.ENVIRONMENT.display
7770
7770
  )
7771
7771
  ];
7772
- }, jE = async (t) => {
7772
+ }, VE = async (t) => {
7773
7773
  const e = t ?? qh.code;
7774
7774
  return (await Lr(e)).compose?.include[0]?.concept ?? [];
7775
7775
  };
@@ -7809,12 +7809,12 @@ function Bh(t) {
7809
7809
  };
7810
7810
  });
7811
7811
  }
7812
- async function VE(t) {
7812
+ async function HE(t) {
7813
7813
  const e = await Hh(t);
7814
7814
  return Bh(e);
7815
7815
  }
7816
7816
  var zh = /* @__PURE__ */ ((t) => (t.Active = "Active", t.Inactive = "Inactive", t))(zh || {}), Yh = /* @__PURE__ */ ((t) => (t.mild = "mild", t.moderate = "moderate", t.severe = "severe", t))(Yh || {});
7817
- function HE(t) {
7817
+ function BE(t) {
7818
7818
  const e = t.code?.coding?.[0]?.code ?? t.id ?? "", r = t.reaction?.[0]?.severity, n = /* @__PURE__ */ new Set(), s = [];
7819
7819
  for (const o of t.reaction ?? [])
7820
7820
  for (const a of o.manifestation ?? [])
@@ -7833,26 +7833,29 @@ function HE(t) {
7833
7833
  hasBeenValidated: !1
7834
7834
  };
7835
7835
  }
7836
- const BE = "http://fhir.openmrs.org/code-system/encounter-type", zE = "http://terminology.hl7.org/CodeSystem/v3-ActCode", YE = "http://fhir.openmrs.org/ext/encounter-tag", Di = "problem-list-item", GE = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Ci = "encounter-diagnosis", Gh = "http://terminology.hl7.org/CodeSystem/condition-clinical", KE = "http://terminology.hl7.org/CodeSystem/condition-category", WE = "http://fhir.bahmni.org/ext/lab-order-concept-type", JE = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", QE = "http://fhir.bahmni.org/ext/observation/form-namespace-path", XE = "http://fhir.bahmni.org/ext/observation/obs-value-attachment", ZE = "Numeric", eb = "Complex", tb = "final", rb = "Observation", nb = /^\d{4}-\d{2}-\d{2}/, Kh = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, sb = {
7836
+ const zE = "http://fhir.openmrs.org/code-system/encounter-type", YE = "http://terminology.hl7.org/CodeSystem/v3-ActCode", GE = "http://fhir.openmrs.org/ext/encounter-tag", Di = "problem-list-item", KE = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Ci = "encounter-diagnosis", Gh = "http://terminology.hl7.org/CodeSystem/condition-clinical", WE = "http://terminology.hl7.org/CodeSystem/condition-category", JE = "http://fhir.bahmni.org/ext/lab-order-concept-type", QE = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", XE = "http://fhir.bahmni.org/ext/observation/form-namespace-path", ZE = "http://fhir.bahmni.org/ext/observation/obs-value-attachment", eb = "Numeric", tb = "Complex", rb = "final", nb = "Observation", sb = /^\d{4}-\d{2}-\d{2}/, Kh = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, ob = {
7837
7837
  ABNORMAL: { code: "A", display: "Abnormal" },
7838
7838
  NORMAL: { code: "N", display: "Normal" }
7839
- }, Wh = ae + "/Condition", Jh = (t) => ae + `/Condition?category=${Di}&patient=${t}&_count=100&_sort=-_lastUpdated`, Qh = (t, e = 10, r = 0) => ae + `/Condition?category=${Di}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
7839
+ }, Wh = oe + "/Condition", Jh = (t) => oe + `/Condition?category=${Di}&patient=${t}&_count=100&_sort=-_lastUpdated`, Qh = (t, e = 10, r = 0, n) => {
7840
+ const s = oe + `/Condition?category=${Di}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
7841
+ return n ? `${s}&clinical-status=${n}` : s;
7842
+ };
7840
7843
  async function Xh(t) {
7841
7844
  return await H(`${Jh(t)}`);
7842
7845
  }
7843
- async function ob(t) {
7846
+ async function ab(t) {
7844
7847
  return (await Xh(t)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
7845
7848
  }
7846
- async function ab(t, e = 10, r = 1) {
7847
- const n = (r - 1) * e, s = await H(
7848
- Qh(t, e, n)
7849
+ async function ib(t, e = 10, r = 1, n) {
7850
+ const s = (r - 1) * e, o = await H(
7851
+ Qh(t, e, s, n)
7849
7852
  );
7850
7853
  return {
7851
- conditions: s.entry?.filter((a) => a.resource?.resourceType === "Condition").map((a) => a.resource) ?? [],
7852
- total: s.total
7854
+ conditions: o.entry?.filter((i) => i.resource?.resourceType === "Condition").map((i) => i.resource) ?? [],
7855
+ total: o.total
7853
7856
  };
7854
7857
  }
7855
- async function ib(t) {
7858
+ async function cb(t) {
7856
7859
  const e = {
7857
7860
  ...t,
7858
7861
  clinicalStatus: {
@@ -7871,7 +7874,7 @@ async function ib(t) {
7871
7874
  e
7872
7875
  );
7873
7876
  }
7874
- const Zh = (t) => ae + `/Condition?category=${Ci}&patient=${t}&_count=100&_sort=-_lastUpdated`, em = (t, e = 10, r = 0) => ae + `/Condition?category=${Ci}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`, Rn = [
7877
+ const Zh = (t) => oe + `/Condition?category=${Ci}&patient=${t}&_count=100&_sort=-_lastUpdated`, em = (t, e = 10, r = 0) => oe + `/Condition?category=${Ci}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`, Sn = [
7875
7878
  {
7876
7879
  code: "confirmed",
7877
7880
  display: "CERTAINITY_CONFIRMED",
@@ -7894,11 +7897,11 @@ async function sm(t, e, r) {
7894
7897
  const om = (t) => {
7895
7898
  switch (t.verificationStatus?.coding?.[0]?.code) {
7896
7899
  case tm:
7897
- return Rn[0];
7900
+ return Sn[0];
7898
7901
  case rm:
7899
- return Rn[1];
7902
+ return Sn[1];
7900
7903
  default:
7901
- return Rn[1];
7904
+ return Sn[1];
7902
7905
  }
7903
7906
  }, am = (t) => !!(t.id && t.code && t.recordedDate);
7904
7907
  function Li(t) {
@@ -7928,11 +7931,11 @@ function im(t) {
7928
7931
  }
7929
7932
  return Array.from(e.values());
7930
7933
  }
7931
- async function cb(t) {
7934
+ async function ub(t) {
7932
7935
  const e = await nm(t), r = Li(e);
7933
7936
  return im(r);
7934
7937
  }
7935
- async function ub(t, e = 10, r = 1) {
7938
+ async function lb(t, e = 10, r = 1) {
7936
7939
  const n = (r - 1) * e, s = await sm(
7937
7940
  t,
7938
7941
  e,
@@ -7953,12 +7956,12 @@ const Lt = {
7953
7956
  // Use only when medication details are needed immediately
7954
7957
  INCLUDE_MEDICATION: "_include=MedicationRequest:medication"
7955
7958
  }, cm = (t, e, r) => {
7956
- let s = `${ae + "/MedicationRequest?" + Lt.SORT + "&" + Lt.COUNT}&patient=${t}`;
7959
+ let s = `${oe + "/MedicationRequest?" + Lt.SORT + "&" + Lt.COUNT}&patient=${t}`;
7957
7960
  return e && (s += `&code=${e}`), r && (s += `&encounter=${r}`), s;
7958
7961
  }, um = (t, e, r) => {
7959
- let s = `${ae + "/MedicationRequest?" + Lt.SORT + "&" + Lt.COUNT + "&" + Lt.INCLUDE_MEDICATION}&patient=${t}`;
7962
+ let s = `${oe + "/MedicationRequest?" + Lt.SORT + "&" + Lt.COUNT + "&" + Lt.INCLUDE_MEDICATION}&patient=${t}`;
7960
7963
  return e && (s += `&code=${e}`), r && (s += `&encounter=${r}`), s;
7961
- }, lm = K + "/bahmnicore/config/drugOrders", dm = (t, e) => ae + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, fm = ae + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", lb = "medication", pm = (t) => {
7964
+ }, lm = K + "/bahmnicore/config/drugOrders", dm = (t, e) => oe + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, fm = oe + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", db = "medication", pm = (t) => {
7962
7965
  switch (t.status) {
7963
7966
  case "active":
7964
7967
  return He.Active;
@@ -8049,7 +8052,7 @@ function Tm(t, e, r) {
8049
8052
  );
8050
8053
  return n?.code?.text ? n.code.text : t?.reference ? t.reference : "Medication";
8051
8054
  }
8052
- function Rm(t, e, r) {
8055
+ function Sm(t, e, r) {
8053
8056
  if (t?.reference) {
8054
8057
  const s = t.reference.split("/").pop();
8055
8058
  if (s) {
@@ -8063,7 +8066,7 @@ function Rm(t, e, r) {
8063
8066
  );
8064
8067
  return n?.form ? n.form.text ?? n.form.coding?.[0]?.display ?? "" : "";
8065
8068
  }
8066
- function Sm(t) {
8069
+ function Rm(t) {
8067
8070
  const e = t.entry?.filter((n) => {
8068
8071
  const s = n.resource;
8069
8072
  return s?.resourceType === "MedicationRequest" && !!s?.id;
@@ -8076,7 +8079,7 @@ function Sm(t) {
8076
8079
  s,
8077
8080
  n,
8078
8081
  r
8079
- ), c = Rm(
8082
+ ), c = Sm(
8080
8083
  s,
8081
8084
  n,
8082
8085
  r
@@ -8115,34 +8118,34 @@ function Sm(t) {
8115
8118
  });
8116
8119
  }
8117
8120
  const mo = (t) => t.priority === "stat";
8118
- async function db(t, e, r, n = !1) {
8121
+ async function fb(t, e, r, n = !1) {
8119
8122
  const s = await hm(
8120
8123
  t,
8121
8124
  e,
8122
8125
  r,
8123
8126
  n
8124
8127
  );
8125
- return Sm(s);
8128
+ return Rm(s);
8126
8129
  }
8127
- async function fb() {
8130
+ async function pb() {
8128
8131
  return await H(
8129
8132
  lm
8130
8133
  );
8131
8134
  }
8132
- async function pb(t, e = 20) {
8135
+ async function hb(t, e = 20) {
8133
8136
  return await H(
8134
8137
  dm(t, e)
8135
8138
  );
8136
8139
  }
8137
- async function hb() {
8140
+ async function mb() {
8138
8141
  return await H(fm);
8139
8142
  }
8140
- const Om = (t) => `${ae}/Medication/${t}`;
8141
- async function mb(t) {
8143
+ const Om = (t) => `${oe}/Medication/${t}`;
8144
+ async function gb(t) {
8142
8145
  return await H(Om(t));
8143
8146
  }
8144
8147
  const Am = 200, Nm = (t, e, r, n, s) => {
8145
- let a = `${ae + `/ServiceRequest?_count=${Am}&_sort=-_lastUpdated`}&category=${t}&patient=${e}`;
8148
+ let a = `${oe + `/ServiceRequest?_count=${Am}&_sort=-_lastUpdated`}&category=${t}&patient=${e}`;
8146
8149
  return s && (a += `&_revinclude=${s}`), r ? a += `&encounter=${r}` : n && (a += `&numberOfVisits=${n}`), a;
8147
8150
  };
8148
8151
  async function Ht(t, e, r, n, s) {
@@ -8157,8 +8160,8 @@ async function Ht(t, e, r, n, s) {
8157
8160
  )
8158
8161
  );
8159
8162
  }
8160
- const Pm = (t) => `${ae}/ImagingStudy/${t}/$fetch-quality-assessment`;
8161
- async function gb(t, e, r, n) {
8163
+ const Pm = (t) => `${oe}/ImagingStudy/${t}/$fetch-quality-assessment`;
8164
+ async function yb(t, e, r, n) {
8162
8165
  return await Ht(
8163
8166
  e,
8164
8167
  t,
@@ -8166,7 +8169,7 @@ async function gb(t, e, r, n) {
8166
8169
  n
8167
8170
  );
8168
8171
  }
8169
- async function yb(t, e, r, n) {
8172
+ async function wb(t, e, r, n) {
8170
8173
  return await Ht(
8171
8174
  e,
8172
8175
  t,
@@ -8175,7 +8178,7 @@ async function yb(t, e, r, n) {
8175
8178
  "ImagingStudy:basedon"
8176
8179
  );
8177
8180
  }
8178
- async function wb(t, e, r, n) {
8181
+ async function Eb(t, e, r, n) {
8179
8182
  return (await Ht(
8180
8183
  e,
8181
8184
  t,
@@ -8183,10 +8186,10 @@ async function wb(t, e, r, n) {
8183
8186
  n
8184
8187
  )).entry?.filter((a) => a.resource?.resourceType === "ServiceRequest").map((a) => a.resource) ?? [];
8185
8188
  }
8186
- async function Eb(t) {
8189
+ async function bb(t) {
8187
8190
  return await H(Pm(t));
8188
8191
  }
8189
- async function bb(t, e, r, n) {
8192
+ async function _b(t, e, r, n) {
8190
8193
  return await Ht(
8191
8194
  e,
8192
8195
  t,
@@ -8195,18 +8198,18 @@ async function bb(t, e, r, n) {
8195
8198
  );
8196
8199
  }
8197
8200
  const Im = (t, e) => {
8198
- const r = `${ae}/DiagnosticReport?patient=${t}`;
8201
+ const r = `${oe}/DiagnosticReport?patient=${t}`;
8199
8202
  return e ? `${r}&based-on=${e}` : r;
8200
- }, $m = (t) => `${ae}/DiagnosticReport/${t}/$fetch-bundle`, Dm = (t) => `${ae}/DiagnosticReport/${t}/$update-bundle`;
8201
- async function _b(t, e = []) {
8203
+ }, $m = (t) => `${oe}/DiagnosticReport/${t}/$fetch-bundle`, Dm = (t) => `${oe}/DiagnosticReport/${t}/$update-bundle`;
8204
+ async function vb(t, e = []) {
8202
8205
  const r = e.length > 0 ? e.join(",") : void 0, n = Im(t, r);
8203
8206
  return await H(n);
8204
8207
  }
8205
- async function vb(t) {
8208
+ async function Tb(t) {
8206
8209
  const e = $m(t);
8207
8210
  return await H(e);
8208
8211
  }
8209
- async function Tb(t, e) {
8212
+ async function Sb(t, e) {
8210
8213
  const r = Dm(t);
8211
8214
  return await ve(r, e);
8212
8215
  }
@@ -8216,11 +8219,11 @@ const Rb = [
8216
8219
  "amended",
8217
8220
  "corrected",
8218
8221
  "appended"
8219
- ], Sb = [
8222
+ ], Ob = [
8220
8223
  "registered",
8221
8224
  "unknown",
8222
8225
  "partial"
8223
- ], Cm = "All Orderables", Lm = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", xm = "LabSet", km = "http://fhir.bahmni.org/ext/ValueSet/concept-class", Ob = ["orderTypes"], Mm = async () => await kh(Cm), ws = async () => await H(Lm), Um = (t) => {
8226
+ ], Cm = "All Orderables", Lm = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", xm = "LabSet", km = "http://fhir.bahmni.org/ext/ValueSet/concept-class", Ab = ["orderTypes"], Mm = async () => await kh(Cm), ws = async () => await H(Lm), Um = (t) => {
8224
8227
  let e = t.display ?? "Unknown investigation";
8225
8228
  return xi(t) === xm && (e += ` (${le.t("INVESTIGATION_PANEL")})`), e;
8226
8229
  }, qm = (t) => {
@@ -8252,12 +8255,12 @@ const Rb = [
8252
8255
  });
8253
8256
  });
8254
8257
  }), r;
8255
- }, Ab = async () => {
8258
+ }, Nb = async () => {
8256
8259
  const t = await Mm(), e = await ws();
8257
8260
  return Fm(t, qm(e));
8258
- }, Nb = async (t) => t ? (await ws()).results.find(
8261
+ }, Pb = async (t) => t ? (await ws()).results.find(
8259
8262
  (n) => n.display.toLowerCase() === t.toLowerCase()
8260
- )?.uuid ?? null : null, Pb = async () => (await ws()).results.map((e) => e.display), Ib = async (t, e, r) => {
8263
+ )?.uuid ?? null : null, Ib = async () => (await ws()).results.map((e) => e.display), $b = async (t, e, r) => {
8261
8264
  const n = [];
8262
8265
  for (const s of t) {
8263
8266
  const o = s.uuid;
@@ -8280,7 +8283,7 @@ const Rb = [
8280
8283
  function jm(t) {
8281
8284
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
8282
8285
  }
8283
- var Gt = { exports: {} }, Sn = {}, Fe = {}, We = {}, On = {}, An = {}, Nn = {}, go;
8286
+ var Gt = { exports: {} }, Rn = {}, Fe = {}, We = {}, On = {}, An = {}, Nn = {}, go;
8284
8287
  function Br() {
8285
8288
  return go || (go = 1, (function(t) {
8286
8289
  Object.defineProperty(t, "__esModule", { value: !0 }), t.regexpCode = t.getEsmExportName = t.getProperty = t.safeStringify = t.stringify = t.strConcat = t.addCodeArg = t.str = t._ = t.nil = t._Code = t.Name = t.IDENTIFIER = t._CodeOrName = void 0;
@@ -8319,28 +8322,28 @@ function Br() {
8319
8322
  }
8320
8323
  get str() {
8321
8324
  var p;
8322
- return (p = this._str) !== null && p !== void 0 ? p : this._str = this._items.reduce((b, S) => `${b}${S}`, "");
8325
+ return (p = this._str) !== null && p !== void 0 ? p : this._str = this._items.reduce((b, R) => `${b}${R}`, "");
8323
8326
  }
8324
8327
  get names() {
8325
8328
  var p;
8326
- return (p = this._names) !== null && p !== void 0 ? p : this._names = this._items.reduce((b, S) => (S instanceof r && (b[S.str] = (b[S.str] || 0) + 1), b), {});
8329
+ return (p = this._names) !== null && p !== void 0 ? p : this._names = this._items.reduce((b, R) => (R instanceof r && (b[R.str] = (b[R.str] || 0) + 1), b), {});
8327
8330
  }
8328
8331
  }
8329
8332
  t._Code = n, t.nil = new n("");
8330
8333
  function s(g, ...p) {
8331
8334
  const b = [g[0]];
8332
- let S = 0;
8333
- for (; S < p.length; )
8334
- i(b, p[S]), b.push(g[++S]);
8335
+ let R = 0;
8336
+ for (; R < p.length; )
8337
+ i(b, p[R]), b.push(g[++R]);
8335
8338
  return new n(b);
8336
8339
  }
8337
8340
  t._ = s;
8338
8341
  const o = new n("+");
8339
8342
  function a(g, ...p) {
8340
8343
  const b = [v(g[0])];
8341
- let S = 0;
8342
- for (; S < p.length; )
8343
- b.push(o), i(b, p[S]), b.push(o, v(g[++S]));
8344
+ let R = 0;
8345
+ for (; R < p.length; )
8346
+ b.push(o), i(b, p[R]), b.push(o, v(g[++R]));
8344
8347
  return c(b), new n(b);
8345
8348
  }
8346
8349
  t.str = a;
@@ -8387,10 +8390,10 @@ function Br() {
8387
8390
  return JSON.stringify(g).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
8388
8391
  }
8389
8392
  t.safeStringify = v;
8390
- function R(g) {
8393
+ function S(g) {
8391
8394
  return typeof g == "string" && t.IDENTIFIER.test(g) ? new n(`.${g}`) : s`[${g}]`;
8392
8395
  }
8393
- t.getProperty = R;
8396
+ t.getProperty = S;
8394
8397
  function _(g) {
8395
8398
  if (typeof g == "string" && t.IDENTIFIER.test(g))
8396
8399
  return new n(`${g}`);
@@ -8467,15 +8470,15 @@ function wo() {
8467
8470
  var h;
8468
8471
  if (l.ref === void 0)
8469
8472
  throw new Error("CodeGen: ref must be passed in value");
8470
- const y = this.toName(u), { prefix: v } = y, R = (h = l.key) !== null && h !== void 0 ? h : l.ref;
8473
+ const y = this.toName(u), { prefix: v } = y, S = (h = l.key) !== null && h !== void 0 ? h : l.ref;
8471
8474
  let _ = this._values[v];
8472
8475
  if (_) {
8473
- const p = _.get(R);
8476
+ const p = _.get(S);
8474
8477
  if (p)
8475
8478
  return p;
8476
8479
  } else
8477
8480
  _ = this._values[v] = /* @__PURE__ */ new Map();
8478
- _.set(R, y);
8481
+ _.set(S, y);
8479
8482
  const f = this._scope[v] || (this._scope[v] = []), g = f.length;
8480
8483
  return f[g] = l.ref, y.setValue(l, { property: v, itemIndex: g }), y;
8481
8484
  }
@@ -8500,11 +8503,11 @@ function wo() {
8500
8503
  }
8501
8504
  _reduceValues(u, l, h = {}, y) {
8502
8505
  let v = e.nil;
8503
- for (const R in u) {
8504
- const _ = u[R];
8506
+ for (const S in u) {
8507
+ const _ = u[S];
8505
8508
  if (!_)
8506
8509
  continue;
8507
- const f = h[R] = h[R] || /* @__PURE__ */ new Map();
8510
+ const f = h[S] = h[S] || /* @__PURE__ */ new Map();
8508
8511
  _.forEach((g) => {
8509
8512
  if (f.has(g))
8510
8513
  return;
@@ -8691,17 +8694,17 @@ function te() {
8691
8694
  return this.nodes.reduce((E, O) => k(E, O.names), {});
8692
8695
  }
8693
8696
  }
8694
- class R extends v {
8697
+ class S extends v {
8695
8698
  render(E) {
8696
8699
  return "{" + E._n + super.render(E) + "}" + E._n;
8697
8700
  }
8698
8701
  }
8699
8702
  class _ extends v {
8700
8703
  }
8701
- class f extends R {
8704
+ class f extends S {
8702
8705
  }
8703
8706
  f.kind = "else";
8704
- class g extends R {
8707
+ class g extends S {
8705
8708
  constructor(E, O) {
8706
8709
  super(O), this.condition = E;
8707
8710
  }
@@ -8735,7 +8738,7 @@ function te() {
8735
8738
  }
8736
8739
  }
8737
8740
  g.kind = "if";
8738
- class p extends R {
8741
+ class p extends S {
8739
8742
  }
8740
8743
  p.kind = "for";
8741
8744
  class b extends p {
@@ -8753,7 +8756,7 @@ function te() {
8753
8756
  return k(super.names, this.iteration.names);
8754
8757
  }
8755
8758
  }
8756
- class S extends p {
8759
+ class R extends p {
8757
8760
  constructor(E, O, x, z) {
8758
8761
  super(), this.varKind = E, this.name = O, this.from = x, this.to = z;
8759
8762
  }
@@ -8781,7 +8784,7 @@ function te() {
8781
8784
  return k(super.names, this.iterable.names);
8782
8785
  }
8783
8786
  }
8784
- class m extends R {
8787
+ class m extends S {
8785
8788
  constructor(E, O, x) {
8786
8789
  super(), this.name = E, this.args = O, this.async = x;
8787
8790
  }
@@ -8796,7 +8799,7 @@ function te() {
8796
8799
  }
8797
8800
  }
8798
8801
  w.kind = "return";
8799
- class T extends R {
8802
+ class T extends S {
8800
8803
  render(E) {
8801
8804
  let O = "try" + super.render(E);
8802
8805
  return this.catch && (O += this.catch.render(E)), this.finally && (O += this.finally.render(E)), O;
@@ -8814,7 +8817,7 @@ function te() {
8814
8817
  return this.catch && k(E, this.catch.names), this.finally && k(E, this.finally.names), E;
8815
8818
  }
8816
8819
  }
8817
- class I extends R {
8820
+ class I extends S {
8818
8821
  constructor(E) {
8819
8822
  super(), this.error = E;
8820
8823
  }
@@ -8823,7 +8826,7 @@ function te() {
8823
8826
  }
8824
8827
  }
8825
8828
  I.kind = "catch";
8826
- class L extends R {
8829
+ class L extends S {
8827
8830
  render(E) {
8828
8831
  return "finally" + super.render(E);
8829
8832
  }
@@ -8928,7 +8931,7 @@ function te() {
8928
8931
  // `for` statement for a range of values
8929
8932
  forRange(E, O, x, z, j = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
8930
8933
  const Z = this._scope.toName(E);
8931
- return this._for(new S(j, Z, O, x), () => z(Z));
8934
+ return this._for(new R(j, Z, O, x), () => z(Z));
8932
8935
  }
8933
8936
  // `for-of` statement (in es5 mode replace with a normal for loop)
8934
8937
  forOf(E, O, x, z = r.varKinds.const) {
@@ -9075,9 +9078,9 @@ function te() {
9075
9078
  return D.reduce(we);
9076
9079
  }
9077
9080
  t.and = re;
9078
- const oe = P(t.operators.OR);
9081
+ const ae = P(t.operators.OR);
9079
9082
  function q(...D) {
9080
- return D.reduce(oe);
9083
+ return D.reduce(ae);
9081
9084
  }
9082
9085
  t.or = q;
9083
9086
  function P(D) {
@@ -9110,7 +9113,7 @@ function se() {
9110
9113
  return;
9111
9114
  const I = T.RULES.keywords;
9112
9115
  for (const L in m)
9113
- I[L] || S(d, `unknown keyword: "${L}"`);
9116
+ I[L] || R(d, `unknown keyword: "${L}"`);
9114
9117
  }
9115
9118
  X.checkUnknownRules = s;
9116
9119
  function o(d, m) {
@@ -9180,7 +9183,7 @@ function se() {
9180
9183
  m === !0 ? d.assign(w, !0) : (d.assign(w, (0, t._)`${w} || {}`), _(d, w, m));
9181
9184
  }),
9182
9185
  mergeValues: (d, m) => d === !0 ? !0 : { ...d, ...m },
9183
- resultToName: R
9186
+ resultToName: S
9184
9187
  }),
9185
9188
  items: v({
9186
9189
  mergeNames: (d, m, w) => d.if((0, t._)`${w} !== true && ${m} !== undefined`, () => d.assign(w, (0, t._)`${m} === true ? true : ${w} > ${m} ? ${w} : ${m}`)),
@@ -9189,13 +9192,13 @@ function se() {
9189
9192
  resultToName: (d, m) => d.var("items", m)
9190
9193
  })
9191
9194
  };
9192
- function R(d, m) {
9195
+ function S(d, m) {
9193
9196
  if (m === !0)
9194
9197
  return d.var("props", !0);
9195
9198
  const w = d.var("props", (0, t._)`{}`);
9196
9199
  return m !== void 0 && _(d, w, m), w;
9197
9200
  }
9198
- X.evaluatedPropsToName = R;
9201
+ X.evaluatedPropsToName = S;
9199
9202
  function _(d, m, w) {
9200
9203
  Object.keys(w).forEach((T) => d.assign((0, t._)`${m}${(0, t.getProperty)(T)}`, !0));
9201
9204
  }
@@ -9220,14 +9223,14 @@ function se() {
9220
9223
  return w ? (0, t.getProperty)(d).toString() : "/" + l(d);
9221
9224
  }
9222
9225
  X.getErrorPath = b;
9223
- function S(d, m, w = d.opts.strictSchema) {
9226
+ function R(d, m, w = d.opts.strictSchema) {
9224
9227
  if (w) {
9225
9228
  if (m = `strict mode: ${m}`, w === !0)
9226
9229
  throw new Error(m);
9227
9230
  d.self.logger.warn(m);
9228
9231
  }
9229
9232
  }
9230
- return X.checkStrictMode = S, X;
9233
+ return X.checkStrictMode = R, X;
9231
9234
  }
9232
9235
  var Kt = {}, _o;
9233
9236
  function Ke() {
@@ -9275,24 +9278,24 @@ function sn() {
9275
9278
  message: ({ keyword: f, schemaType: g }) => g ? (0, e.str)`"${f}" keyword must be ${g} ($data)` : (0, e.str)`"${f}" keyword is invalid ($data)`
9276
9279
  };
9277
9280
  function s(f, g = t.keywordError, p, b) {
9278
- const { it: S } = f, { gen: d, compositeRule: m, allErrors: w } = S, T = h(f, g, p);
9279
- b ?? (m || w) ? c(d, T) : u(S, (0, e._)`[${T}]`);
9281
+ const { it: R } = f, { gen: d, compositeRule: m, allErrors: w } = R, T = h(f, g, p);
9282
+ b ?? (m || w) ? c(d, T) : u(R, (0, e._)`[${T}]`);
9280
9283
  }
9281
9284
  t.reportError = s;
9282
9285
  function o(f, g = t.keywordError, p) {
9283
- const { it: b } = f, { gen: S, compositeRule: d, allErrors: m } = b, w = h(f, g, p);
9284
- c(S, w), d || m || u(b, n.default.vErrors);
9286
+ const { it: b } = f, { gen: R, compositeRule: d, allErrors: m } = b, w = h(f, g, p);
9287
+ c(R, w), d || m || u(b, n.default.vErrors);
9285
9288
  }
9286
9289
  t.reportExtraError = o;
9287
9290
  function a(f, g) {
9288
9291
  f.assign(n.default.errors, g), f.if((0, e._)`${n.default.vErrors} !== null`, () => f.if(g, () => f.assign((0, e._)`${n.default.vErrors}.length`, g), () => f.assign(n.default.vErrors, null)));
9289
9292
  }
9290
9293
  t.resetErrorsCount = a;
9291
- function i({ gen: f, keyword: g, schemaValue: p, data: b, errsCount: S, it: d }) {
9292
- if (S === void 0)
9294
+ function i({ gen: f, keyword: g, schemaValue: p, data: b, errsCount: R, it: d }) {
9295
+ if (R === void 0)
9293
9296
  throw new Error("ajv implementation error");
9294
9297
  const m = f.name("err");
9295
- f.forRange("i", S, n.default.errors, (w) => {
9298
+ f.forRange("i", R, n.default.errors, (w) => {
9296
9299
  f.const(m, (0, e._)`${n.default.vErrors}[${w}]`), f.if((0, e._)`${m}.instancePath === undefined`, () => f.assign((0, e._)`${m}.instancePath`, (0, e.strConcat)(n.default.instancePath, d.errorPath))), f.assign((0, e._)`${m}.schemaPath`, (0, e.str)`${d.errSchemaPath}/${g}`), d.opts.verbose && (f.assign((0, e._)`${m}.schema`, p), f.assign((0, e._)`${m}.data`, b));
9297
9300
  });
9298
9301
  }
@@ -9302,8 +9305,8 @@ function sn() {
9302
9305
  f.if((0, e._)`${n.default.vErrors} === null`, () => f.assign(n.default.vErrors, (0, e._)`[${p}]`), (0, e._)`${n.default.vErrors}.push(${p})`), f.code((0, e._)`${n.default.errors}++`);
9303
9306
  }
9304
9307
  function u(f, g) {
9305
- const { gen: p, validateName: b, schemaEnv: S } = f;
9306
- S.$async ? p.throw((0, e._)`new ${f.ValidationError}(${g})`) : (p.assign((0, e._)`${b}.errors`, g), p.return(!1));
9308
+ const { gen: p, validateName: b, schemaEnv: R } = f;
9309
+ R.$async ? p.throw((0, e._)`new ${f.ValidationError}(${g})`) : (p.assign((0, e._)`${b}.errors`, g), p.return(!1));
9307
9310
  }
9308
9311
  const l = {
9309
9312
  keyword: new e.Name("keyword"),
@@ -9320,9 +9323,9 @@ function sn() {
9320
9323
  return b === !1 ? (0, e._)`{}` : y(f, g, p);
9321
9324
  }
9322
9325
  function y(f, g, p = {}) {
9323
- const { gen: b, it: S } = f, d = [
9324
- v(S, p),
9325
- R(f, p)
9326
+ const { gen: b, it: R } = f, d = [
9327
+ v(R, p),
9328
+ S(f, p)
9326
9329
  ];
9327
9330
  return _(f, g, d), b.object(...d);
9328
9331
  }
@@ -9330,13 +9333,13 @@ function sn() {
9330
9333
  const p = g ? (0, e.str)`${f}${(0, r.getErrorPath)(g, r.Type.Str)}` : f;
9331
9334
  return [n.default.instancePath, (0, e.strConcat)(n.default.instancePath, p)];
9332
9335
  }
9333
- function R({ keyword: f, it: { errSchemaPath: g } }, { schemaPath: p, parentSchema: b }) {
9334
- let S = b ? g : (0, e.str)`${g}/${f}`;
9335
- return p && (S = (0, e.str)`${S}${(0, r.getErrorPath)(p, r.Type.Str)}`), [l.schemaPath, S];
9336
+ function S({ keyword: f, it: { errSchemaPath: g } }, { schemaPath: p, parentSchema: b }) {
9337
+ let R = b ? g : (0, e.str)`${g}/${f}`;
9338
+ return p && (R = (0, e.str)`${R}${(0, r.getErrorPath)(p, r.Type.Str)}`), [l.schemaPath, R];
9336
9339
  }
9337
9340
  function _(f, { params: g, message: p }, b) {
9338
- const { keyword: S, data: d, schemaValue: m, it: w } = f, { opts: T, propertyName: I, topSchemaRef: L, schemaPath: N } = w;
9339
- b.push([l.keyword, S], [l.params, typeof g == "function" ? g(f) : g || (0, e._)`{}`]), T.messages && b.push([l.message, typeof p == "function" ? p(f) : p]), T.verbose && b.push([l.schema, m], [l.parentSchema, (0, e._)`${L}${N}`], [n.default.data, d]), I && b.push([l.propertyName, I]);
9341
+ const { keyword: R, data: d, schemaValue: m, it: w } = f, { opts: T, propertyName: I, topSchemaRef: L, schemaPath: N } = w;
9342
+ b.push([l.keyword, R], [l.params, typeof g == "function" ? g(f) : g || (0, e._)`{}`]), T.messages && b.push([l.message, typeof p == "function" ? p(f) : p]), T.verbose && b.push([l.schema, m], [l.parentSchema, (0, e._)`${L}${N}`], [n.default.data, d]), I && b.push([l.propertyName, I]);
9340
9343
  }
9341
9344
  })(On)), On;
9342
9345
  }
@@ -9372,10 +9375,10 @@ function Vm() {
9372
9375
  }
9373
9376
  return We;
9374
9377
  }
9375
- var _e = {}, Je = {}, Ro;
9378
+ var _e = {}, Je = {}, So;
9376
9379
  function ki() {
9377
- if (Ro) return Je;
9378
- Ro = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.getRules = Je.isJSONType = void 0;
9380
+ if (So) return Je;
9381
+ So = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.getRules = Je.isJSONType = void 0;
9379
9382
  const t = ["string", "number", "integer", "boolean", "null", "object", "array"], e = new Set(t);
9380
9383
  function r(s) {
9381
9384
  return typeof s == "string" && e.has(s);
@@ -9398,10 +9401,10 @@ function ki() {
9398
9401
  }
9399
9402
  return Je.getRules = n, Je;
9400
9403
  }
9401
- var je = {}, So;
9404
+ var je = {}, Ro;
9402
9405
  function Mi() {
9403
- if (So) return je;
9404
- So = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.shouldUseRule = je.shouldUseGroup = je.schemaHasRulesForType = void 0;
9406
+ if (Ro) return je;
9407
+ Ro = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.shouldUseRule = je.shouldUseGroup = je.schemaHasRulesForType = void 0;
9405
9408
  function t({ schema: n, self: s }, o) {
9406
9409
  const a = s.RULES.types[o];
9407
9410
  return a && a !== !0 && e(n, a);
@@ -9447,10 +9450,10 @@ function zr() {
9447
9450
  }
9448
9451
  _e.getJSONTypes = i;
9449
9452
  function c(p, b) {
9450
- const { gen: S, data: d, opts: m } = p, w = l(b, m.coerceTypes), T = b.length > 0 && !(w.length === 0 && b.length === 1 && (0, e.schemaHasRulesForType)(p, b[0]));
9453
+ const { gen: R, data: d, opts: m } = p, w = l(b, m.coerceTypes), T = b.length > 0 && !(w.length === 0 && b.length === 1 && (0, e.schemaHasRulesForType)(p, b[0]));
9451
9454
  if (T) {
9452
- const I = R(b, d, m.strictNumbers, o.Wrong);
9453
- S.if(I, () => {
9455
+ const I = S(b, d, m.strictNumbers, o.Wrong);
9456
+ R.if(I, () => {
9454
9457
  w.length ? h(p, b, w) : f(p);
9455
9458
  });
9456
9459
  }
@@ -9459,12 +9462,12 @@ function zr() {
9459
9462
  _e.coerceAndCheckDataType = c;
9460
9463
  const u = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
9461
9464
  function l(p, b) {
9462
- return b ? p.filter((S) => u.has(S) || b === "array" && S === "array") : [];
9465
+ return b ? p.filter((R) => u.has(R) || b === "array" && R === "array") : [];
9463
9466
  }
9464
- function h(p, b, S) {
9467
+ function h(p, b, R) {
9465
9468
  const { gen: d, data: m, opts: w } = p, T = d.let("dataType", (0, n._)`typeof ${m}`), I = d.let("coerced", (0, n._)`undefined`);
9466
- w.coerceTypes === "array" && d.if((0, n._)`${T} == 'object' && Array.isArray(${m}) && ${m}.length == 1`, () => d.assign(m, (0, n._)`${m}[0]`).assign(T, (0, n._)`typeof ${m}`).if(R(b, m, w.strictNumbers), () => d.assign(I, m))), d.if((0, n._)`${I} !== undefined`);
9467
- for (const N of S)
9469
+ w.coerceTypes === "array" && d.if((0, n._)`${T} == 'object' && Array.isArray(${m}) && ${m}.length == 1`, () => d.assign(m, (0, n._)`${m}[0]`).assign(T, (0, n._)`typeof ${m}`).if(S(b, m, w.strictNumbers), () => d.assign(I, m))), d.if((0, n._)`${I} !== undefined`);
9470
+ for (const N of R)
9468
9471
  (u.has(N) || N === "array" && w.coerceTypes === "array") && L(N);
9469
9472
  d.else(), f(p), d.endIf(), d.if((0, n._)`${I} !== undefined`, () => {
9470
9473
  d.assign(m, I), y(p, I);
@@ -9494,10 +9497,10 @@ function zr() {
9494
9497
  }
9495
9498
  }
9496
9499
  }
9497
- function y({ gen: p, parentData: b, parentDataProperty: S }, d) {
9498
- p.if((0, n._)`${b} !== undefined`, () => p.assign((0, n._)`${b}[${S}]`, d));
9500
+ function y({ gen: p, parentData: b, parentDataProperty: R }, d) {
9501
+ p.if((0, n._)`${b} !== undefined`, () => p.assign((0, n._)`${b}[${R}]`, d));
9499
9502
  }
9500
- function v(p, b, S, d = o.Correct) {
9503
+ function v(p, b, R, d = o.Correct) {
9501
9504
  const m = d === o.Correct ? n.operators.EQ : n.operators.NEQ;
9502
9505
  let w;
9503
9506
  switch (p) {
@@ -9520,13 +9523,13 @@ function zr() {
9520
9523
  }
9521
9524
  return d === o.Correct ? w : (0, n.not)(w);
9522
9525
  function T(I = n.nil) {
9523
- return (0, n.and)((0, n._)`typeof ${b} == "number"`, I, S ? (0, n._)`isFinite(${b})` : n.nil);
9526
+ return (0, n.and)((0, n._)`typeof ${b} == "number"`, I, R ? (0, n._)`isFinite(${b})` : n.nil);
9524
9527
  }
9525
9528
  }
9526
9529
  _e.checkDataType = v;
9527
- function R(p, b, S, d) {
9530
+ function S(p, b, R, d) {
9528
9531
  if (p.length === 1)
9529
- return v(p[0], b, S, d);
9532
+ return v(p[0], b, R, d);
9530
9533
  let m;
9531
9534
  const w = (0, s.toHash)(p);
9532
9535
  if (w.array && w.object) {
@@ -9536,10 +9539,10 @@ function zr() {
9536
9539
  m = n.nil;
9537
9540
  w.number && delete w.integer;
9538
9541
  for (const T in w)
9539
- m = (0, n.and)(m, v(T, b, S, d));
9542
+ m = (0, n.and)(m, v(T, b, R, d));
9540
9543
  return m;
9541
9544
  }
9542
- _e.checkDataTypes = R;
9545
+ _e.checkDataTypes = S;
9543
9546
  const _ = {
9544
9547
  message: ({ schema: p }) => `must be ${p}`,
9545
9548
  params: ({ schema: p, schemaValue: b }) => typeof p == "string" ? (0, n._)`{type: ${p}}` : (0, n._)`{type: ${b}}`
@@ -9550,11 +9553,11 @@ function zr() {
9550
9553
  }
9551
9554
  _e.reportTypeError = f;
9552
9555
  function g(p) {
9553
- const { gen: b, data: S, schema: d } = p, m = (0, s.schemaRefOrVal)(p, d, "type");
9556
+ const { gen: b, data: R, schema: d } = p, m = (0, s.schemaRefOrVal)(p, d, "type");
9554
9557
  return {
9555
9558
  gen: b,
9556
9559
  keyword: "type",
9557
- data: S,
9560
+ data: R,
9558
9561
  schema: d.type,
9559
9562
  schemaCode: m,
9560
9563
  schemaValue: m,
@@ -9598,14 +9601,14 @@ function ke() {
9598
9601
  No = 1, Object.defineProperty(ce, "__esModule", { value: !0 }), ce.validateUnion = ce.validateArray = ce.usePattern = ce.callValidateCode = ce.schemaProperties = ce.allSchemaProperties = ce.noPropertyInData = ce.propertyInData = ce.isOwnProperty = ce.hasPropFunc = ce.reportMissingProp = ce.checkMissingProp = ce.checkReportMissingProp = void 0;
9599
9602
  const t = te(), e = se(), r = Ke(), n = se();
9600
9603
  function s(p, b) {
9601
- const { gen: S, data: d, it: m } = p;
9602
- S.if(l(S, d, b, m.opts.ownProperties), () => {
9604
+ const { gen: R, data: d, it: m } = p;
9605
+ R.if(l(R, d, b, m.opts.ownProperties), () => {
9603
9606
  p.setParams({ missingProperty: (0, t._)`${b}` }, !0), p.error();
9604
9607
  });
9605
9608
  }
9606
9609
  ce.checkReportMissingProp = s;
9607
- function o({ gen: p, data: b, it: { opts: S } }, d, m) {
9608
- return (0, t.or)(...d.map((w) => (0, t.and)(l(p, b, w, S.ownProperties), (0, t._)`${m} = ${w}`)));
9610
+ function o({ gen: p, data: b, it: { opts: R } }, d, m) {
9611
+ return (0, t.or)(...d.map((w) => (0, t.and)(l(p, b, w, R.ownProperties), (0, t._)`${m} = ${w}`)));
9609
9612
  }
9610
9613
  ce.checkMissingProp = o;
9611
9614
  function a(p, b) {
@@ -9620,18 +9623,18 @@ function ke() {
9620
9623
  });
9621
9624
  }
9622
9625
  ce.hasPropFunc = i;
9623
- function c(p, b, S) {
9624
- return (0, t._)`${i(p)}.call(${b}, ${S})`;
9626
+ function c(p, b, R) {
9627
+ return (0, t._)`${i(p)}.call(${b}, ${R})`;
9625
9628
  }
9626
9629
  ce.isOwnProperty = c;
9627
- function u(p, b, S, d) {
9628
- const m = (0, t._)`${b}${(0, t.getProperty)(S)} !== undefined`;
9629
- return d ? (0, t._)`${m} && ${c(p, b, S)}` : m;
9630
+ function u(p, b, R, d) {
9631
+ const m = (0, t._)`${b}${(0, t.getProperty)(R)} !== undefined`;
9632
+ return d ? (0, t._)`${m} && ${c(p, b, R)}` : m;
9630
9633
  }
9631
9634
  ce.propertyInData = u;
9632
- function l(p, b, S, d) {
9633
- const m = (0, t._)`${b}${(0, t.getProperty)(S)} === undefined`;
9634
- return d ? (0, t.or)(m, (0, t.not)(c(p, b, S))) : m;
9635
+ function l(p, b, R, d) {
9636
+ const m = (0, t._)`${b}${(0, t.getProperty)(R)} === undefined`;
9637
+ return d ? (0, t.or)(m, (0, t.not)(c(p, b, R))) : m;
9635
9638
  }
9636
9639
  ce.noPropertyInData = l;
9637
9640
  function h(p) {
@@ -9639,10 +9642,10 @@ function ke() {
9639
9642
  }
9640
9643
  ce.allSchemaProperties = h;
9641
9644
  function y(p, b) {
9642
- return h(b).filter((S) => !(0, e.alwaysValidSchema)(p, b[S]));
9645
+ return h(b).filter((R) => !(0, e.alwaysValidSchema)(p, b[R]));
9643
9646
  }
9644
9647
  ce.schemaProperties = y;
9645
- function v({ schemaCode: p, data: b, it: { gen: S, topSchemaRef: d, schemaPath: m, errorPath: w }, it: T }, I, L, N) {
9648
+ function v({ schemaCode: p, data: b, it: { gen: R, topSchemaRef: d, schemaPath: m, errorPath: w }, it: T }, I, L, N) {
9646
9649
  const k = N ? (0, t._)`${p}, ${b}, ${d}${m}` : b, B = [
9647
9650
  [r.default.instancePath, (0, t.strConcat)(r.default.instancePath, w)],
9648
9651
  [r.default.parentData, T.parentData],
@@ -9650,29 +9653,29 @@ function ke() {
9650
9653
  [r.default.rootData, r.default.rootData]
9651
9654
  ];
9652
9655
  T.opts.dynamicRef && B.push([r.default.dynamicAnchors, r.default.dynamicAnchors]);
9653
- const V = (0, t._)`${k}, ${S.object(...B)}`;
9656
+ const V = (0, t._)`${k}, ${R.object(...B)}`;
9654
9657
  return L !== t.nil ? (0, t._)`${I}.call(${L}, ${V})` : (0, t._)`${I}(${V})`;
9655
9658
  }
9656
9659
  ce.callValidateCode = v;
9657
- const R = (0, t._)`new RegExp`;
9658
- function _({ gen: p, it: { opts: b } }, S) {
9659
- const d = b.unicodeRegExp ? "u" : "", { regExp: m } = b.code, w = m(S, d);
9660
+ const S = (0, t._)`new RegExp`;
9661
+ function _({ gen: p, it: { opts: b } }, R) {
9662
+ const d = b.unicodeRegExp ? "u" : "", { regExp: m } = b.code, w = m(R, d);
9660
9663
  return p.scopeValue("pattern", {
9661
9664
  key: w.toString(),
9662
9665
  ref: w,
9663
- code: (0, t._)`${m.code === "new RegExp" ? R : (0, n.useFunc)(p, m)}(${S}, ${d})`
9666
+ code: (0, t._)`${m.code === "new RegExp" ? S : (0, n.useFunc)(p, m)}(${R}, ${d})`
9664
9667
  });
9665
9668
  }
9666
9669
  ce.usePattern = _;
9667
9670
  function f(p) {
9668
- const { gen: b, data: S, keyword: d, it: m } = p, w = b.name("valid");
9671
+ const { gen: b, data: R, keyword: d, it: m } = p, w = b.name("valid");
9669
9672
  if (m.allErrors) {
9670
9673
  const I = b.let("valid", !0);
9671
9674
  return T(() => b.assign(I, !1)), I;
9672
9675
  }
9673
9676
  return b.var(w, !0), T(() => b.break()), w;
9674
9677
  function T(I) {
9675
- const L = b.const("len", (0, t._)`${S}.length`);
9678
+ const L = b.const("len", (0, t._)`${R}.length`);
9676
9679
  b.forRange("i", 0, L, (N) => {
9677
9680
  p.subschema({
9678
9681
  keyword: d,
@@ -9684,13 +9687,13 @@ function ke() {
9684
9687
  }
9685
9688
  ce.validateArray = f;
9686
9689
  function g(p) {
9687
- const { gen: b, schema: S, keyword: d, it: m } = p;
9688
- if (!Array.isArray(S))
9690
+ const { gen: b, schema: R, keyword: d, it: m } = p;
9691
+ if (!Array.isArray(R))
9689
9692
  throw new Error("ajv implementation error");
9690
- if (S.some((L) => (0, e.alwaysValidSchema)(m, L)) && !m.opts.unevaluated)
9693
+ if (R.some((L) => (0, e.alwaysValidSchema)(m, L)) && !m.opts.unevaluated)
9691
9694
  return;
9692
9695
  const T = b.let("valid", !1), I = b.name("_valid");
9693
- b.block(() => S.forEach((L, N) => {
9696
+ b.block(() => R.forEach((L, N) => {
9694
9697
  const k = p.subschema({
9695
9698
  keyword: d,
9696
9699
  schemaProp: N,
@@ -9707,24 +9710,24 @@ function Bm() {
9707
9710
  Po = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.validateKeywordUsage = Le.validSchemaType = Le.funcKeywordCode = Le.macroKeywordCode = void 0;
9708
9711
  const t = te(), e = Ke(), r = ke(), n = sn();
9709
9712
  function s(y, v) {
9710
- const { gen: R, keyword: _, schema: f, parentSchema: g, it: p } = y, b = v.macro.call(p.self, f, g, p), S = u(R, _, b);
9713
+ const { gen: S, keyword: _, schema: f, parentSchema: g, it: p } = y, b = v.macro.call(p.self, f, g, p), R = u(S, _, b);
9711
9714
  p.opts.validateSchema !== !1 && p.self.validateSchema(b, !0);
9712
- const d = R.name("valid");
9715
+ const d = S.name("valid");
9713
9716
  y.subschema({
9714
9717
  schema: b,
9715
9718
  schemaPath: t.nil,
9716
9719
  errSchemaPath: `${p.errSchemaPath}/${_}`,
9717
- topSchemaRef: S,
9720
+ topSchemaRef: R,
9718
9721
  compositeRule: !0
9719
9722
  }, d), y.pass(d, () => y.error(!0));
9720
9723
  }
9721
9724
  Le.macroKeywordCode = s;
9722
9725
  function o(y, v) {
9723
- var R;
9724
- const { gen: _, keyword: f, schema: g, parentSchema: p, $data: b, it: S } = y;
9725
- c(S, v);
9726
- const d = !b && v.compile ? v.compile.call(S.self, g, p, S) : v.validate, m = u(_, f, d), w = _.let("valid");
9727
- y.block$data(w, T), y.ok((R = v.valid) !== null && R !== void 0 ? R : w);
9726
+ var S;
9727
+ const { gen: _, keyword: f, schema: g, parentSchema: p, $data: b, it: R } = y;
9728
+ c(R, v);
9729
+ const d = !b && v.compile ? v.compile.call(R.self, g, p, R) : v.validate, m = u(_, f, d), w = _.let("valid");
9730
+ y.block$data(w, T), y.ok((S = v.valid) !== null && S !== void 0 ? S : w);
9728
9731
  function T() {
9729
9732
  if (v.errors === !1)
9730
9733
  N(), v.modifying && a(y), k(() => y.error());
@@ -9735,14 +9738,14 @@ function Bm() {
9735
9738
  }
9736
9739
  function I() {
9737
9740
  const B = _.let("ruleErrs", null);
9738
- return _.try(() => N((0, t._)`await `), (V) => _.assign(w, !1).if((0, t._)`${V} instanceof ${S.ValidationError}`, () => _.assign(B, (0, t._)`${V}.errors`), () => _.throw(V))), B;
9741
+ return _.try(() => N((0, t._)`await `), (V) => _.assign(w, !1).if((0, t._)`${V} instanceof ${R.ValidationError}`, () => _.assign(B, (0, t._)`${V}.errors`), () => _.throw(V))), B;
9739
9742
  }
9740
9743
  function L() {
9741
9744
  const B = (0, t._)`${m}.errors`;
9742
9745
  return _.assign(B, null), N(t.nil), B;
9743
9746
  }
9744
9747
  function N(B = v.async ? (0, t._)`await ` : t.nil) {
9745
- const V = S.opts.passContext ? e.default.this : e.default.self, J = !("compile" in v && !b || v.schema === !1);
9748
+ const V = R.opts.passContext ? e.default.this : e.default.self, J = !("compile" in v && !b || v.schema === !1);
9746
9749
  _.assign(w, (0, t._)`${B}${(0, r.callValidateCode)(y, m, V, J)}`, v.modifying);
9747
9750
  }
9748
9751
  function k(B) {
@@ -9752,40 +9755,40 @@ function Bm() {
9752
9755
  }
9753
9756
  Le.funcKeywordCode = o;
9754
9757
  function a(y) {
9755
- const { gen: v, data: R, it: _ } = y;
9756
- v.if(_.parentData, () => v.assign(R, (0, t._)`${_.parentData}[${_.parentDataProperty}]`));
9758
+ const { gen: v, data: S, it: _ } = y;
9759
+ v.if(_.parentData, () => v.assign(S, (0, t._)`${_.parentData}[${_.parentDataProperty}]`));
9757
9760
  }
9758
9761
  function i(y, v) {
9759
- const { gen: R } = y;
9760
- R.if((0, t._)`Array.isArray(${v})`, () => {
9761
- R.assign(e.default.vErrors, (0, t._)`${e.default.vErrors} === null ? ${v} : ${e.default.vErrors}.concat(${v})`).assign(e.default.errors, (0, t._)`${e.default.vErrors}.length`), (0, n.extendErrors)(y);
9762
+ const { gen: S } = y;
9763
+ S.if((0, t._)`Array.isArray(${v})`, () => {
9764
+ S.assign(e.default.vErrors, (0, t._)`${e.default.vErrors} === null ? ${v} : ${e.default.vErrors}.concat(${v})`).assign(e.default.errors, (0, t._)`${e.default.vErrors}.length`), (0, n.extendErrors)(y);
9762
9765
  }, () => y.error());
9763
9766
  }
9764
9767
  function c({ schemaEnv: y }, v) {
9765
9768
  if (v.async && !y.$async)
9766
9769
  throw new Error("async keyword in sync schema");
9767
9770
  }
9768
- function u(y, v, R) {
9769
- if (R === void 0)
9771
+ function u(y, v, S) {
9772
+ if (S === void 0)
9770
9773
  throw new Error(`keyword "${v}" failed to compile`);
9771
- return y.scopeValue("keyword", typeof R == "function" ? { ref: R } : { ref: R, code: (0, t.stringify)(R) });
9774
+ return y.scopeValue("keyword", typeof S == "function" ? { ref: S } : { ref: S, code: (0, t.stringify)(S) });
9772
9775
  }
9773
- function l(y, v, R = !1) {
9774
- return !v.length || v.some((_) => _ === "array" ? Array.isArray(y) : _ === "object" ? y && typeof y == "object" && !Array.isArray(y) : typeof y == _ || R && typeof y > "u");
9776
+ function l(y, v, S = !1) {
9777
+ return !v.length || v.some((_) => _ === "array" ? Array.isArray(y) : _ === "object" ? y && typeof y == "object" && !Array.isArray(y) : typeof y == _ || S && typeof y > "u");
9775
9778
  }
9776
9779
  Le.validSchemaType = l;
9777
- function h({ schema: y, opts: v, self: R, errSchemaPath: _ }, f, g) {
9780
+ function h({ schema: y, opts: v, self: S, errSchemaPath: _ }, f, g) {
9778
9781
  if (Array.isArray(f.keyword) ? !f.keyword.includes(g) : f.keyword !== g)
9779
9782
  throw new Error("ajv implementation error");
9780
9783
  const p = f.dependencies;
9781
9784
  if (p?.some((b) => !Object.prototype.hasOwnProperty.call(y, b)))
9782
9785
  throw new Error(`parent schema must have dependencies of ${g}: ${p.join(",")}`);
9783
9786
  if (f.validateSchema && !f.validateSchema(y[g])) {
9784
- const S = `keyword "${g}" value is invalid at path "${_}": ` + R.errorsText(f.validateSchema.errors);
9787
+ const R = `keyword "${g}" value is invalid at path "${_}": ` + S.errorsText(f.validateSchema.errors);
9785
9788
  if (v.validateSchema === "log")
9786
- R.logger.error(S);
9789
+ S.logger.error(R);
9787
9790
  else
9788
- throw new Error(S);
9791
+ throw new Error(R);
9789
9792
  }
9790
9793
  }
9791
9794
  return Le.validateKeywordUsage = h, Le;
@@ -9828,16 +9831,16 @@ function zm() {
9828
9831
  throw new Error('both "data" and "dataProp" passed, only one allowed');
9829
9832
  const { gen: y } = a;
9830
9833
  if (i !== void 0) {
9831
- const { errorPath: R, dataPathArr: _, opts: f } = a, g = y.let("data", (0, t._)`${a.data}${(0, t.getProperty)(i)}`, !0);
9832
- v(g), o.errorPath = (0, t.str)`${R}${(0, e.getErrorPath)(i, c, f.jsPropertySyntax)}`, o.parentDataProperty = (0, t._)`${i}`, o.dataPathArr = [..._, o.parentDataProperty];
9834
+ const { errorPath: S, dataPathArr: _, opts: f } = a, g = y.let("data", (0, t._)`${a.data}${(0, t.getProperty)(i)}`, !0);
9835
+ v(g), o.errorPath = (0, t.str)`${S}${(0, e.getErrorPath)(i, c, f.jsPropertySyntax)}`, o.parentDataProperty = (0, t._)`${i}`, o.dataPathArr = [..._, o.parentDataProperty];
9833
9836
  }
9834
9837
  if (u !== void 0) {
9835
- const R = u instanceof t.Name ? u : y.let("data", u, !0);
9836
- v(R), h !== void 0 && (o.propertyName = h);
9838
+ const S = u instanceof t.Name ? u : y.let("data", u, !0);
9839
+ v(S), h !== void 0 && (o.propertyName = h);
9837
9840
  }
9838
9841
  l && (o.dataTypes = l);
9839
- function v(R) {
9840
- o.data = R, o.dataLevel = a.dataLevel + 1, o.dataTypes = [], a.definedProperties = /* @__PURE__ */ new Set(), o.parentData = a.data, o.dataNames = [...a.dataNames, R];
9842
+ function v(S) {
9843
+ o.data = S, o.dataLevel = a.dataLevel + 1, o.dataTypes = [], a.definedProperties = /* @__PURE__ */ new Set(), o.parentData = a.data, o.dataNames = [...a.dataNames, S];
9841
9844
  }
9842
9845
  }
9843
9846
  Ve.extendSubschemaData = n;
@@ -9846,7 +9849,7 @@ function zm() {
9846
9849
  }
9847
9850
  return Ve.extendSubschemaMode = s, Ve;
9848
9851
  }
9849
- var Re = {}, In, $o;
9852
+ var Se = {}, In, $o;
9850
9853
  function Ui() {
9851
9854
  return $o || ($o = 1, In = function t(e, r) {
9852
9855
  if (e === r) return !0;
@@ -9930,16 +9933,16 @@ function Ym() {
9930
9933
  if (a && typeof a == "object" && !Array.isArray(a)) {
9931
9934
  s(a, i, c, u, l, h, y);
9932
9935
  for (var v in a) {
9933
- var R = a[v];
9934
- if (Array.isArray(R)) {
9936
+ var S = a[v];
9937
+ if (Array.isArray(S)) {
9935
9938
  if (v in t.arrayKeywords)
9936
- for (var _ = 0; _ < R.length; _++)
9937
- e(n, s, o, R[_], i + "/" + v + "/" + _, c, i, v, a, _);
9939
+ for (var _ = 0; _ < S.length; _++)
9940
+ e(n, s, o, S[_], i + "/" + v + "/" + _, c, i, v, a, _);
9938
9941
  } else if (v in t.propsKeywords) {
9939
- if (R && typeof R == "object")
9940
- for (var f in R)
9941
- e(n, s, o, R[f], i + "/" + v + "/" + r(f), c, i, v, a, f);
9942
- } else (v in t.keywords || n.allKeys && !(v in t.skipKeywords)) && e(n, s, o, R, i + "/" + v, c, i, v, a);
9942
+ if (S && typeof S == "object")
9943
+ for (var f in S)
9944
+ e(n, s, o, S[f], i + "/" + v + "/" + r(f), c, i, v, a, f);
9945
+ } else (v in t.keywords || n.allKeys && !(v in t.skipKeywords)) && e(n, s, o, S, i + "/" + v, c, i, v, a);
9943
9946
  }
9944
9947
  o(a, i, c, u, l, h, y);
9945
9948
  }
@@ -9951,8 +9954,8 @@ function Ym() {
9951
9954
  }
9952
9955
  var Co;
9953
9956
  function on() {
9954
- if (Co) return Re;
9955
- Co = 1, Object.defineProperty(Re, "__esModule", { value: !0 }), Re.getSchemaRefs = Re.resolveUrl = Re.normalizeId = Re._getFullPath = Re.getFullPath = Re.inlineRef = void 0;
9957
+ if (Co) return Se;
9958
+ Co = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.getSchemaRefs = Se.resolveUrl = Se.normalizeId = Se._getFullPath = Se.getFullPath = Se.inlineRef = void 0;
9956
9959
  const t = se(), e = Ui(), r = Ym(), n = /* @__PURE__ */ new Set([
9957
9960
  "type",
9958
9961
  "format",
@@ -9974,7 +9977,7 @@ function on() {
9974
9977
  function s(_, f = !0) {
9975
9978
  return typeof _ == "boolean" ? !0 : f === !0 ? !a(_) : f ? i(_) <= f : !1;
9976
9979
  }
9977
- Re.inlineRef = s;
9980
+ Se.inlineRef = s;
9978
9981
  const o = /* @__PURE__ */ new Set([
9979
9982
  "$ref",
9980
9983
  "$recursiveRef",
@@ -10007,34 +10010,34 @@ function on() {
10007
10010
  const p = _.parse(f);
10008
10011
  return u(_, p);
10009
10012
  }
10010
- Re.getFullPath = c;
10013
+ Se.getFullPath = c;
10011
10014
  function u(_, f) {
10012
10015
  return _.serialize(f).split("#")[0] + "#";
10013
10016
  }
10014
- Re._getFullPath = u;
10017
+ Se._getFullPath = u;
10015
10018
  const l = /#\/?$/;
10016
10019
  function h(_) {
10017
10020
  return _ ? _.replace(l, "") : "";
10018
10021
  }
10019
- Re.normalizeId = h;
10022
+ Se.normalizeId = h;
10020
10023
  function y(_, f, g) {
10021
10024
  return g = h(g), _.resolve(f, g);
10022
10025
  }
10023
- Re.resolveUrl = y;
10026
+ Se.resolveUrl = y;
10024
10027
  const v = /^[a-z_][-a-z0-9._]*$/i;
10025
- function R(_, f) {
10028
+ function S(_, f) {
10026
10029
  if (typeof _ == "boolean")
10027
10030
  return {};
10028
- const { schemaId: g, uriResolver: p } = this.opts, b = h(_[g] || f), S = { "": b }, d = c(p, b, !1), m = {}, w = /* @__PURE__ */ new Set();
10031
+ const { schemaId: g, uriResolver: p } = this.opts, b = h(_[g] || f), R = { "": b }, d = c(p, b, !1), m = {}, w = /* @__PURE__ */ new Set();
10029
10032
  return r(_, { allKeys: !0 }, (L, N, k, B) => {
10030
10033
  if (B === void 0)
10031
10034
  return;
10032
10035
  const V = d + N;
10033
- let J = S[B];
10034
- typeof L[g] == "string" && (J = ne.call(this, L[g])), we.call(this, L.$anchor), we.call(this, L.$dynamicAnchor), S[N] = J;
10036
+ let J = R[B];
10037
+ typeof L[g] == "string" && (J = ne.call(this, L[g])), we.call(this, L.$anchor), we.call(this, L.$dynamicAnchor), R[N] = J;
10035
10038
  function ne(re) {
10036
- const oe = this.opts.uriResolver.resolve;
10037
- if (re = h(J ? oe(J, re) : re), w.has(re))
10039
+ const ae = this.opts.uriResolver.resolve;
10040
+ if (re = h(J ? ae(J, re) : re), w.has(re))
10038
10041
  throw I(re);
10039
10042
  w.add(re);
10040
10043
  let q = this.refs[re];
@@ -10056,7 +10059,7 @@ function on() {
10056
10059
  return new Error(`reference "${L}" resolves to more than one schema`);
10057
10060
  }
10058
10061
  }
10059
- return Re.getSchemaRefs = R, Re;
10062
+ return Se.getSchemaRefs = S, Se;
10060
10063
  }
10061
10064
  var Lo;
10062
10065
  function an() {
@@ -10064,7 +10067,7 @@ function an() {
10064
10067
  Lo = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.getData = Fe.KeywordCxt = Fe.validateFunctionCode = void 0;
10065
10068
  const t = Vm(), e = zr(), r = Mi(), n = zr(), s = Hm(), o = Bm(), a = zm(), i = te(), c = Ke(), u = on(), l = se(), h = sn();
10066
10069
  function y(A) {
10067
- if (d(A) && (w(A), S(A))) {
10070
+ if (d(A) && (w(A), R(A))) {
10068
10071
  f(A);
10069
10072
  return;
10070
10073
  }
@@ -10074,9 +10077,9 @@ function an() {
10074
10077
  function v({ gen: A, validateName: C, schema: M, schemaEnv: F, opts: G }, ee) {
10075
10078
  G.code.es5 ? A.func(C, (0, i._)`${c.default.data}, ${c.default.valCxt}`, F.$async, () => {
10076
10079
  A.code((0, i._)`"use strict"; ${p(M, G)}`), _(A, G), A.code(ee);
10077
- }) : A.func(C, (0, i._)`${c.default.data}, ${R(G)}`, F.$async, () => A.code(p(M, G)).code(ee));
10080
+ }) : A.func(C, (0, i._)`${c.default.data}, ${S(G)}`, F.$async, () => A.code(p(M, G)).code(ee));
10078
10081
  }
10079
- function R(A) {
10082
+ function S(A) {
10080
10083
  return (0, i._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${A.dynamicRef ? (0, i._)`, ${c.default.dynamicAnchors}={}` : i.nil}}={}`;
10081
10084
  }
10082
10085
  function _(A, C) {
@@ -10101,13 +10104,13 @@ function an() {
10101
10104
  return M && (C.code.source || C.code.process) ? (0, i._)`/*# sourceURL=${M} */` : i.nil;
10102
10105
  }
10103
10106
  function b(A, C) {
10104
- if (d(A) && (w(A), S(A))) {
10107
+ if (d(A) && (w(A), R(A))) {
10105
10108
  m(A, C);
10106
10109
  return;
10107
10110
  }
10108
10111
  (0, t.boolOrEmptySchema)(A, C);
10109
10112
  }
10110
- function S({ schema: A, self: C }) {
10113
+ function R({ schema: A, self: C }) {
10111
10114
  if (typeof A == "boolean")
10112
10115
  return !A;
10113
10116
  for (const M in A)
@@ -10188,9 +10191,9 @@ function an() {
10188
10191
  });
10189
10192
  }
10190
10193
  function re(A, C) {
10191
- A.schemaEnv.meta || !A.opts.strictTypes || (oe(A, C), A.opts.allowUnionTypes || q(A, C), P(A, A.dataTypes));
10194
+ A.schemaEnv.meta || !A.opts.strictTypes || (ae(A, C), A.opts.allowUnionTypes || q(A, C), P(A, A.dataTypes));
10192
10195
  }
10193
- function oe(A, C) {
10196
+ function ae(A, C) {
10194
10197
  if (C.length) {
10195
10198
  if (!A.dataTypes.length) {
10196
10199
  A.dataTypes = C;
@@ -10412,7 +10415,7 @@ function bs() {
10412
10415
  const g = l.call(this, f);
10413
10416
  if (g)
10414
10417
  return g;
10415
- const p = (0, n.getFullPath)(this.opts.uriResolver, f.root.baseId), { es5: b, lines: S } = this.opts.code, { ownProperties: d } = this.opts, m = new t.CodeGen(this.scope, { es5: b, lines: S, ownProperties: d });
10418
+ const p = (0, n.getFullPath)(this.opts.uriResolver, f.root.baseId), { es5: b, lines: R } = this.opts.code, { ownProperties: d } = this.opts, m = new t.CodeGen(this.scope, { es5: b, lines: R, ownProperties: d });
10416
10419
  let w;
10417
10420
  f.$async && (w = m.scopeValue("Error", {
10418
10421
  ref: e.default,
@@ -10471,9 +10474,9 @@ function bs() {
10471
10474
  function c(f, g, p) {
10472
10475
  var b;
10473
10476
  p = (0, n.resolveUrl)(this.opts.uriResolver, g, p);
10474
- const S = f.refs[p];
10475
- if (S)
10476
- return S;
10477
+ const R = f.refs[p];
10478
+ if (R)
10479
+ return R;
10477
10480
  let d = y.call(this, f, p);
10478
10481
  if (d === void 0) {
10479
10482
  const m = (b = f.localRefs) === null || b === void 0 ? void 0 : b[p], { schemaId: w } = this.opts;
@@ -10503,8 +10506,8 @@ function bs() {
10503
10506
  }
10504
10507
  function v(f, g) {
10505
10508
  const p = this.opts.uriResolver.parse(g), b = (0, n._getFullPath)(this.opts.uriResolver, p);
10506
- let S = (0, n.getFullPath)(this.opts.uriResolver, f.baseId, void 0);
10507
- if (Object.keys(f.schema).length > 0 && b === S)
10509
+ let R = (0, n.getFullPath)(this.opts.uriResolver, f.baseId, void 0);
10510
+ if (Object.keys(f.schema).length > 0 && b === R)
10508
10511
  return _.call(this, p, f);
10509
10512
  const d = (0, n.normalizeId)(b), m = this.refs[d] || this.schemas[d];
10510
10513
  if (typeof m == "string") {
@@ -10514,13 +10517,13 @@ function bs() {
10514
10517
  if (typeof m?.schema == "object") {
10515
10518
  if (m.validate || i.call(this, m), d === (0, n.normalizeId)(g)) {
10516
10519
  const { schema: w } = m, { schemaId: T } = this.opts, I = w[T];
10517
- return I && (S = (0, n.resolveUrl)(this.opts.uriResolver, S, I)), new a({ schema: w, schemaId: T, root: f, baseId: S });
10520
+ return I && (R = (0, n.resolveUrl)(this.opts.uriResolver, R, I)), new a({ schema: w, schemaId: T, root: f, baseId: R });
10518
10521
  }
10519
10522
  return _.call(this, p, m);
10520
10523
  }
10521
10524
  }
10522
10525
  Pe.resolveSchema = v;
10523
- const R = /* @__PURE__ */ new Set([
10526
+ const S = /* @__PURE__ */ new Set([
10524
10527
  "properties",
10525
10528
  "patternProperties",
10526
10529
  "enum",
@@ -10528,8 +10531,8 @@ function bs() {
10528
10531
  "definitions"
10529
10532
  ]);
10530
10533
  function _(f, { baseId: g, schema: p, root: b }) {
10531
- var S;
10532
- if (((S = f.fragment) === null || S === void 0 ? void 0 : S[0]) !== "/")
10534
+ var R;
10535
+ if (((R = f.fragment) === null || R === void 0 ? void 0 : R[0]) !== "/")
10533
10536
  return;
10534
10537
  for (const w of f.fragment.slice(1).split("/")) {
10535
10538
  if (typeof p == "boolean")
@@ -10539,7 +10542,7 @@ function bs() {
10539
10542
  return;
10540
10543
  p = T;
10541
10544
  const I = typeof p == "object" && p[this.opts.schemaId];
10542
- !R.has(w) && I && (g = (0, n.resolveUrl)(this.opts.uriResolver, g, I));
10545
+ !S.has(w) && I && (g = (0, n.resolveUrl)(this.opts.uriResolver, g, I));
10543
10546
  }
10544
10547
  let d;
10545
10548
  if (typeof p != "boolean" && p.$ref && !(0, s.schemaHasRulesButRef)(p, this.RULES)) {
@@ -10698,9 +10701,9 @@ function qi() {
10698
10701
  }
10699
10702
  return w.join("");
10700
10703
  }
10701
- const v = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" }, R = /[@/?#:]/g, _ = /[@/?#]/g;
10704
+ const v = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" }, S = /[@/?#:]/g, _ = /[@/?#]/g;
10702
10705
  function f(d, m) {
10703
- const w = m ? _ : R;
10706
+ const w = m ? _ : S;
10704
10707
  return w.lastIndex = 0, d.replace(w, (T) => v[T]);
10705
10708
  }
10706
10709
  function g(d, m = !1) {
@@ -10749,7 +10752,7 @@ function qi() {
10749
10752
  }
10750
10753
  return m;
10751
10754
  }
10752
- function S(d) {
10755
+ function R(d) {
10753
10756
  const m = [];
10754
10757
  if (d.userinfo !== void 0 && (m.push(d.userinfo), m.push("@")), d.host !== void 0) {
10755
10758
  let w = unescape(d.host);
@@ -10763,7 +10766,7 @@ function qi() {
10763
10766
  }
10764
10767
  return Dn = {
10765
10768
  nonSimpleDomain: a,
10766
- recomposeAuthority: S,
10769
+ recomposeAuthority: R,
10767
10770
  reescapeHostDelimiters: f,
10768
10771
  normalizePercentEncoding: g,
10769
10772
  normalizePathEncoding: p,
@@ -10823,7 +10826,7 @@ function eg() {
10823
10826
  if (w) {
10824
10827
  const T = m.scheme || d.scheme || "urn";
10825
10828
  d.nid = w[1].toLowerCase(), d.nss = w[2];
10826
- const I = `${T}:${m.nid || d.nid}`, L = S(I);
10829
+ const I = `${T}:${m.nid || d.nid}`, L = R(I);
10827
10830
  d.path = void 0, L && (d = L.parse(d, m));
10828
10831
  } else
10829
10832
  d.error = d.error || "URN can not be parsed.";
@@ -10832,7 +10835,7 @@ function eg() {
10832
10835
  function l(d, m) {
10833
10836
  if (d.nid === void 0)
10834
10837
  throw new Error("URN without nid cannot be serialized");
10835
- const w = m.scheme || d.scheme || "urn", T = d.nid.toLowerCase(), I = `${w}:${m.nid || T}`, L = S(I);
10838
+ const w = m.scheme || d.scheme || "urn", T = d.nid.toLowerCase(), I = `${w}:${m.nid || T}`, L = R(I);
10836
10839
  L && (d = L.serialize(d, m));
10837
10840
  const N = d, k = d.nss;
10838
10841
  return N.path = `${T || m.nid}:${k}`, m.skipEscape = !0, N;
@@ -10853,7 +10856,7 @@ function eg() {
10853
10856
  parse: o,
10854
10857
  serialize: a
10855
10858
  }
10856
- ), R = (
10859
+ ), S = (
10857
10860
  /** @type {SchemeHandler} */
10858
10861
  {
10859
10862
  scheme: "https",
@@ -10881,7 +10884,7 @@ function eg() {
10881
10884
  /** @type {Record<SchemeName, SchemeHandler>} */
10882
10885
  {
10883
10886
  http: v,
10884
- https: R,
10887
+ https: S,
10885
10888
  ws: _,
10886
10889
  wss: f,
10887
10890
  urn: (
@@ -10905,7 +10908,7 @@ function eg() {
10905
10908
  }
10906
10909
  );
10907
10910
  Object.setPrototypeOf(b, null);
10908
- function S(d) {
10911
+ function R(d) {
10909
10912
  return d && (b[
10910
10913
  /** @type {SchemeName} */
10911
10914
  d
@@ -10918,7 +10921,7 @@ function eg() {
10918
10921
  wsIsSecure: s,
10919
10922
  SCHEMES: b,
10920
10923
  isValidSchemeName: n,
10921
- getSchemeHandler: S
10924
+ getSchemeHandler: R
10922
10925
  }, Cn;
10923
10926
  }
10924
10927
  var Fo;
@@ -10928,7 +10931,7 @@ function tg() {
10928
10931
  const { normalizeIPv6: t, removeDotSegments: e, recomposeAuthority: r, normalizePercentEncoding: n, normalizePathEncoding: s, escapePreservingEscapes: o, reescapeHostDelimiters: a, isIPv4: i, nonSimpleDomain: c } = qi(), { SCHEMES: u, getSchemeHandler: l } = eg();
10929
10932
  function h(T, I) {
10930
10933
  return typeof T == "string" ? T = /** @type {T} */
10931
- S(T, I) : typeof T == "object" && (T = /** @type {T} */
10934
+ R(T, I) : typeof T == "object" && (T = /** @type {T} */
10932
10935
  b(_(T, I), I)), T;
10933
10936
  }
10934
10937
  function y(T, I, L) {
@@ -10939,7 +10942,7 @@ function tg() {
10939
10942
  const k = {};
10940
10943
  return N || (T = b(_(T, L), L), I = b(_(I, L), L)), L = L || {}, !L.tolerant && I.scheme ? (k.scheme = I.scheme, k.userinfo = I.userinfo, k.host = I.host, k.port = I.port, k.path = e(I.path || ""), k.query = I.query) : (I.userinfo !== void 0 || I.host !== void 0 || I.port !== void 0 ? (k.userinfo = I.userinfo, k.host = I.host, k.port = I.port, k.path = e(I.path || ""), k.query = I.query) : (I.path ? (I.path[0] === "/" ? k.path = e(I.path) : ((T.userinfo !== void 0 || T.host !== void 0 || T.port !== void 0) && !T.path ? k.path = "/" + I.path : T.path ? k.path = T.path.slice(0, T.path.lastIndexOf("/") + 1) + I.path : k.path = I.path, k.path = e(k.path)), k.query = I.query) : (k.path = T.path, I.query !== void 0 ? k.query = I.query : k.query = T.query), k.userinfo = T.userinfo, k.host = T.host, k.port = T.port), k.scheme = T.scheme), k.fragment = I.fragment, k;
10941
10944
  }
10942
- function R(T, I, L) {
10945
+ function S(T, I, L) {
10943
10946
  const N = m(T, L), k = m(I, L);
10944
10947
  return N !== void 0 && k !== void 0 && N.toLowerCase() === k.toLowerCase();
10945
10948
  }
@@ -11019,7 +11022,7 @@ function tg() {
11019
11022
  function b(T, I) {
11020
11023
  return p(T, I).parsed;
11021
11024
  }
11022
- function S(T, I) {
11025
+ function R(T, I) {
11023
11026
  return d(T, I).normalized;
11024
11027
  }
11025
11028
  function d(T, I) {
@@ -11042,7 +11045,7 @@ function tg() {
11042
11045
  normalize: h,
11043
11046
  resolve: y,
11044
11047
  resolveComponent: v,
11045
- equal: R,
11048
+ equal: S,
11046
11049
  serialize: _,
11047
11050
  parse: b
11048
11051
  };
@@ -11079,7 +11082,7 @@ function ng() {
11079
11082
  } });
11080
11083
  const n = Es(), s = cn(), o = ki(), a = bs(), i = te(), c = on(), u = zr(), l = se(), h = Zm, y = rg(), v = (q, P) => new RegExp(q, P);
11081
11084
  v.code = "new RegExp";
11082
- const R = ["removeAdditional", "useDefaults", "coerceTypes"], _ = /* @__PURE__ */ new Set([
11085
+ const S = ["removeAdditional", "useDefaults", "coerceTypes"], _ = /* @__PURE__ */ new Set([
11083
11086
  "validate",
11084
11087
  "serialize",
11085
11088
  "parse",
@@ -11116,14 +11119,14 @@ function ng() {
11116
11119
  }, p = 200;
11117
11120
  function b(q) {
11118
11121
  var P, U, D, E, O, x, z, j, Z, Q, A, C, M, F, G, ee, Ee, Ce, Oe, Ae, be, st, Ie, un, ln;
11119
- const Tt = q.strict, dn = (P = q.code) === null || P === void 0 ? void 0 : P.optimize, Ss = dn === !0 || dn === void 0 ? 1 : dn || 0, Os = (D = (U = q.code) === null || U === void 0 ? void 0 : U.regExp) !== null && D !== void 0 ? D : v, rc = (E = q.uriResolver) !== null && E !== void 0 ? E : y.default;
11122
+ const Tt = q.strict, dn = (P = q.code) === null || P === void 0 ? void 0 : P.optimize, Rs = dn === !0 || dn === void 0 ? 1 : dn || 0, Os = (D = (U = q.code) === null || U === void 0 ? void 0 : U.regExp) !== null && D !== void 0 ? D : v, rc = (E = q.uriResolver) !== null && E !== void 0 ? E : y.default;
11120
11123
  return {
11121
11124
  strictSchema: (x = (O = q.strictSchema) !== null && O !== void 0 ? O : Tt) !== null && x !== void 0 ? x : !0,
11122
11125
  strictNumbers: (j = (z = q.strictNumbers) !== null && z !== void 0 ? z : Tt) !== null && j !== void 0 ? j : !0,
11123
11126
  strictTypes: (Q = (Z = q.strictTypes) !== null && Z !== void 0 ? Z : Tt) !== null && Q !== void 0 ? Q : "log",
11124
11127
  strictTuples: (C = (A = q.strictTuples) !== null && A !== void 0 ? A : Tt) !== null && C !== void 0 ? C : "log",
11125
11128
  strictRequired: (F = (M = q.strictRequired) !== null && M !== void 0 ? M : Tt) !== null && F !== void 0 ? F : !1,
11126
- code: q.code ? { ...q.code, optimize: Ss, regExp: Os } : { optimize: Ss, regExp: Os },
11129
+ code: q.code ? { ...q.code, optimize: Rs, regExp: Os } : { optimize: Rs, regExp: Os },
11127
11130
  loopRequired: (G = q.loopRequired) !== null && G !== void 0 ? G : p,
11128
11131
  loopEnum: (ee = q.loopEnum) !== null && ee !== void 0 ? ee : p,
11129
11132
  meta: (Ee = q.meta) !== null && Ee !== void 0 ? Ee : !0,
@@ -11138,7 +11141,7 @@ function ng() {
11138
11141
  uriResolver: rc
11139
11142
  };
11140
11143
  }
11141
- class S {
11144
+ class R {
11142
11145
  constructor(P = {}) {
11143
11146
  this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), P = this.opts = { ...P, ...b(P) };
11144
11147
  const { es5: U, lines: D } = this.opts.code;
@@ -11349,7 +11352,7 @@ function ng() {
11349
11352
  if (typeof j != "object")
11350
11353
  continue;
11351
11354
  const { $data: Z } = j.definition, Q = x[z];
11352
- Z && Q && (x[z] = oe(Q));
11355
+ Z && Q && (x[z] = ae(Q));
11353
11356
  }
11354
11357
  }
11355
11358
  return P;
@@ -11397,7 +11400,7 @@ function ng() {
11397
11400
  }
11398
11401
  }
11399
11402
  }
11400
- S.ValidationError = n.default, S.MissingRefError = s.default, t.default = S;
11403
+ R.ValidationError = n.default, R.MissingRefError = s.default, t.default = R;
11401
11404
  function d(q, P, U, D = "error") {
11402
11405
  for (const E in q) {
11403
11406
  const O = E;
@@ -11435,7 +11438,7 @@ function ng() {
11435
11438
  }
11436
11439
  function L() {
11437
11440
  const q = { ...this.opts };
11438
- for (const P of R)
11441
+ for (const P of S)
11439
11442
  delete q[P];
11440
11443
  return q;
11441
11444
  }
@@ -11488,15 +11491,15 @@ function ng() {
11488
11491
  }
11489
11492
  function we(q) {
11490
11493
  let { metaSchema: P } = q;
11491
- P !== void 0 && (q.$data && this.opts.$data && (P = oe(P)), q.validateSchema = this.compile(P, !0));
11494
+ P !== void 0 && (q.$data && this.opts.$data && (P = ae(P)), q.validateSchema = this.compile(P, !0));
11492
11495
  }
11493
11496
  const re = {
11494
11497
  $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
11495
11498
  };
11496
- function oe(q) {
11499
+ function ae(q) {
11497
11500
  return { anyOf: [q, re] };
11498
11501
  }
11499
- })(Sn)), Sn;
11502
+ })(Rn)), Rn;
11500
11503
  }
11501
11504
  var Xt = {}, Zt = {}, er = {}, Ho;
11502
11505
  function sg() {
@@ -11518,18 +11521,18 @@ function og() {
11518
11521
  keyword: "$ref",
11519
11522
  schemaType: "string",
11520
11523
  code(u) {
11521
- const { gen: l, schema: h, it: y } = u, { baseId: v, schemaEnv: R, validateName: _, opts: f, self: g } = y, { root: p } = R;
11524
+ const { gen: l, schema: h, it: y } = u, { baseId: v, schemaEnv: S, validateName: _, opts: f, self: g } = y, { root: p } = S;
11522
11525
  if ((h === "#" || h === "#/") && v === p.baseId)
11523
- return S();
11526
+ return R();
11524
11527
  const b = s.resolveRef.call(g, p, v, h);
11525
11528
  if (b === void 0)
11526
11529
  throw new t.default(y.opts.uriResolver, v, h);
11527
11530
  if (b instanceof s.SchemaEnv)
11528
11531
  return d(b);
11529
11532
  return m(b);
11530
- function S() {
11531
- if (R === p)
11532
- return c(u, _, R, R.$async);
11533
+ function R() {
11534
+ if (S === p)
11535
+ return c(u, _, S, S.$async);
11533
11536
  const w = l.scopeValue("root", { ref: p });
11534
11537
  return c(u, (0, r._)`${w}.validate`, p, p.$async);
11535
11538
  }
@@ -11555,8 +11558,8 @@ function og() {
11555
11558
  }
11556
11559
  ze.getValidate = i;
11557
11560
  function c(u, l, h, y) {
11558
- const { gen: v, it: R } = u, { allErrors: _, schemaEnv: f, opts: g } = R, p = g.passContext ? n.default.this : r.nil;
11559
- y ? b() : S();
11561
+ const { gen: v, it: S } = u, { allErrors: _, schemaEnv: f, opts: g } = S, p = g.passContext ? n.default.this : r.nil;
11562
+ y ? b() : R();
11560
11563
  function b() {
11561
11564
  if (!f.$async)
11562
11565
  throw new Error("async schema referenced by sync schema");
@@ -11564,10 +11567,10 @@ function og() {
11564
11567
  v.try(() => {
11565
11568
  v.code((0, r._)`await ${(0, e.callValidateCode)(u, l, p)}`), m(l), _ || v.assign(w, !0);
11566
11569
  }, (T) => {
11567
- v.if((0, r._)`!(${T} instanceof ${R.ValidationError})`, () => v.throw(T)), d(T), _ || v.assign(w, !1);
11570
+ v.if((0, r._)`!(${T} instanceof ${S.ValidationError})`, () => v.throw(T)), d(T), _ || v.assign(w, !1);
11568
11571
  }), u.ok(w);
11569
11572
  }
11570
- function S() {
11573
+ function R() {
11571
11574
  u.result((0, e.callValidateCode)(u, l, p), () => m(l), () => d(l));
11572
11575
  }
11573
11576
  function d(w) {
@@ -11576,22 +11579,22 @@ function og() {
11576
11579
  }
11577
11580
  function m(w) {
11578
11581
  var T;
11579
- if (!R.opts.unevaluated)
11582
+ if (!S.opts.unevaluated)
11580
11583
  return;
11581
11584
  const I = (T = h?.validate) === null || T === void 0 ? void 0 : T.evaluated;
11582
- if (R.props !== !0)
11585
+ if (S.props !== !0)
11583
11586
  if (I && !I.dynamicProps)
11584
- I.props !== void 0 && (R.props = o.mergeEvaluated.props(v, I.props, R.props));
11587
+ I.props !== void 0 && (S.props = o.mergeEvaluated.props(v, I.props, S.props));
11585
11588
  else {
11586
11589
  const L = v.var("props", (0, r._)`${w}.evaluated.props`);
11587
- R.props = o.mergeEvaluated.props(v, L, R.props, r.Name);
11590
+ S.props = o.mergeEvaluated.props(v, L, S.props, r.Name);
11588
11591
  }
11589
- if (R.items !== !0)
11592
+ if (S.items !== !0)
11590
11593
  if (I && !I.dynamicItems)
11591
- I.items !== void 0 && (R.items = o.mergeEvaluated.items(v, I.items, R.items));
11594
+ I.items !== void 0 && (S.items = o.mergeEvaluated.items(v, I.items, S.items));
11592
11595
  else {
11593
11596
  const L = v.var("items", (0, r._)`${w}.evaluated.items`);
11594
- R.items = o.mergeEvaluated.items(v, L, R.items, r.Name);
11597
+ S.items = o.mergeEvaluated.items(v, L, S.items, r.Name);
11595
11598
  }
11596
11599
  }
11597
11600
  }
@@ -11755,15 +11758,15 @@ function pg() {
11755
11758
  if (!l && i.length === 0)
11756
11759
  return;
11757
11760
  const v = i.length >= y.loopRequired;
11758
- if (h.allErrors ? R() : _(), y.strictRequired) {
11761
+ if (h.allErrors ? S() : _(), y.strictRequired) {
11759
11762
  const p = o.parentSchema.properties, { definedProperties: b } = o.it;
11760
- for (const S of i)
11761
- if (p?.[S] === void 0 && !b.has(S)) {
11762
- const d = h.schemaEnv.baseId + h.errSchemaPath, m = `required property "${S}" is not defined at "${d}" (strictRequired)`;
11763
+ for (const R of i)
11764
+ if (p?.[R] === void 0 && !b.has(R)) {
11765
+ const d = h.schemaEnv.baseId + h.errSchemaPath, m = `required property "${R}" is not defined at "${d}" (strictRequired)`;
11763
11766
  (0, r.checkStrictMode)(h, m, h.opts.strictRequired);
11764
11767
  }
11765
11768
  }
11766
- function R() {
11769
+ function S() {
11767
11770
  if (v || l)
11768
11771
  o.block$data(e.nil, f);
11769
11772
  else
@@ -11841,27 +11844,27 @@ function mg() {
11841
11844
  const { gen: i, data: c, $data: u, schema: l, parentSchema: h, schemaCode: y, it: v } = a;
11842
11845
  if (!u && !l)
11843
11846
  return;
11844
- const R = i.let("valid"), _ = h.items ? (0, t.getSchemaTypes)(h.items) : [];
11845
- a.block$data(R, f, (0, e._)`${y} === false`), a.ok(R);
11847
+ const S = i.let("valid"), _ = h.items ? (0, t.getSchemaTypes)(h.items) : [];
11848
+ a.block$data(S, f, (0, e._)`${y} === false`), a.ok(S);
11846
11849
  function f() {
11847
- const S = i.let("i", (0, e._)`${c}.length`), d = i.let("j");
11848
- a.setParams({ i: S, j: d }), i.assign(R, !0), i.if((0, e._)`${S} > 1`, () => (g() ? p : b)(S, d));
11850
+ const R = i.let("i", (0, e._)`${c}.length`), d = i.let("j");
11851
+ a.setParams({ i: R, j: d }), i.assign(S, !0), i.if((0, e._)`${R} > 1`, () => (g() ? p : b)(R, d));
11849
11852
  }
11850
11853
  function g() {
11851
- return _.length > 0 && !_.some((S) => S === "object" || S === "array");
11854
+ return _.length > 0 && !_.some((R) => R === "object" || R === "array");
11852
11855
  }
11853
- function p(S, d) {
11856
+ function p(R, d) {
11854
11857
  const m = i.name("item"), w = (0, t.checkDataTypes)(_, m, v.opts.strictNumbers, t.DataType.Wrong), T = i.const("indices", (0, e._)`{}`);
11855
- i.for((0, e._)`;${S}--;`, () => {
11856
- i.let(m, (0, e._)`${c}[${S}]`), i.if(w, (0, e._)`continue`), _.length > 1 && i.if((0, e._)`typeof ${m} == "string"`, (0, e._)`${m} += "_"`), i.if((0, e._)`typeof ${T}[${m}] == "number"`, () => {
11857
- i.assign(d, (0, e._)`${T}[${m}]`), a.error(), i.assign(R, !1).break();
11858
- }).code((0, e._)`${T}[${m}] = ${S}`);
11858
+ i.for((0, e._)`;${R}--;`, () => {
11859
+ i.let(m, (0, e._)`${c}[${R}]`), i.if(w, (0, e._)`continue`), _.length > 1 && i.if((0, e._)`typeof ${m} == "string"`, (0, e._)`${m} += "_"`), i.if((0, e._)`typeof ${T}[${m}] == "number"`, () => {
11860
+ i.assign(d, (0, e._)`${T}[${m}]`), a.error(), i.assign(S, !1).break();
11861
+ }).code((0, e._)`${T}[${m}] = ${R}`);
11859
11862
  });
11860
11863
  }
11861
- function b(S, d) {
11864
+ function b(R, d) {
11862
11865
  const m = (0, r.useFunc)(i, n.default), w = i.name("outer");
11863
- i.label(w).for((0, e._)`;${S}--;`, () => i.for((0, e._)`${d} = ${S}; ${d}--;`, () => i.if((0, e._)`${m}(${c}[${S}], ${c}[${d}])`, () => {
11864
- a.error(), i.assign(R, !1).break(w);
11866
+ i.label(w).for((0, e._)`;${R}--;`, () => i.for((0, e._)`${d} = ${R}; ${d}--;`, () => i.if((0, e._)`${m}(${c}[${R}], ${c}[${d}])`, () => {
11867
+ a.error(), i.assign(S, !1).break(w);
11865
11868
  })));
11866
11869
  }
11867
11870
  }
@@ -11904,7 +11907,7 @@ function yg() {
11904
11907
  throw new Error("enum must have non-empty array");
11905
11908
  const y = u.length >= h.opts.loopEnum;
11906
11909
  let v;
11907
- const R = () => v ?? (v = (0, e.useFunc)(a, r.default));
11910
+ const S = () => v ?? (v = (0, e.useFunc)(a, r.default));
11908
11911
  let _;
11909
11912
  if (y || c)
11910
11913
  _ = a.let("valid"), o.block$data(_, f);
@@ -11912,15 +11915,15 @@ function yg() {
11912
11915
  if (!Array.isArray(u))
11913
11916
  throw new Error("ajv implementation error");
11914
11917
  const p = a.const("vSchema", l);
11915
- _ = (0, t.or)(...u.map((b, S) => g(p, S)));
11918
+ _ = (0, t.or)(...u.map((b, R) => g(p, R)));
11916
11919
  }
11917
11920
  o.pass(_);
11918
11921
  function f() {
11919
- a.assign(_, !1), a.forOf("v", l, (p) => a.if((0, t._)`${R()}(${i}, ${p})`, () => a.assign(_, !0).break()));
11922
+ a.assign(_, !1), a.forOf("v", l, (p) => a.if((0, t._)`${S()}(${i}, ${p})`, () => a.assign(_, !0).break()));
11920
11923
  }
11921
11924
  function g(p, b) {
11922
- const S = u[b];
11923
- return typeof S == "object" && S !== null ? (0, t._)`${R()}(${i}, ${p}[${b}])` : (0, t._)`${i} === ${S}`;
11925
+ const R = u[b];
11926
+ return typeof R == "object" && R !== null ? (0, t._)`${S()}(${i}, ${p}[${b}])` : (0, t._)`${i} === ${R}`;
11924
11927
  }
11925
11928
  }
11926
11929
  };
@@ -11980,12 +11983,12 @@ function Fi() {
11980
11983
  if (c === !1)
11981
11984
  o.setParams({ len: a.length }), o.pass((0, t._)`${y} <= ${a.length}`);
11982
11985
  else if (typeof c == "object" && !(0, e.alwaysValidSchema)(h, c)) {
11983
- const R = i.var("valid", (0, t._)`${y} <= ${a.length}`);
11984
- i.if((0, t.not)(R), () => v(R)), o.ok(R);
11986
+ const S = i.var("valid", (0, t._)`${y} <= ${a.length}`);
11987
+ i.if((0, t.not)(S), () => v(S)), o.ok(S);
11985
11988
  }
11986
- function v(R) {
11989
+ function v(S) {
11987
11990
  i.forRange("i", a.length, y, (_) => {
11988
- o.subschema({ keyword: l, dataProp: _, dataPropType: e.Type.Num }, R), h.allErrors || i.if((0, t.not)(R), () => i.break());
11991
+ o.subschema({ keyword: l, dataProp: _, dataPropType: e.Type.Num }, S), h.allErrors || i.if((0, t.not)(S), () => i.break());
11989
11992
  });
11990
11993
  }
11991
11994
  }
@@ -12010,17 +12013,17 @@ function ji() {
12010
12013
  function s(o, a, i = o.schema) {
12011
12014
  const { gen: c, parentSchema: u, data: l, keyword: h, it: y } = o;
12012
12015
  _(u), y.opts.unevaluated && i.length && y.items !== !0 && (y.items = e.mergeEvaluated.items(c, i.length, y.items));
12013
- const v = c.name("valid"), R = c.const("len", (0, t._)`${l}.length`);
12016
+ const v = c.name("valid"), S = c.const("len", (0, t._)`${l}.length`);
12014
12017
  i.forEach((f, g) => {
12015
- (0, e.alwaysValidSchema)(y, f) || (c.if((0, t._)`${R} > ${g}`, () => o.subschema({
12018
+ (0, e.alwaysValidSchema)(y, f) || (c.if((0, t._)`${S} > ${g}`, () => o.subschema({
12016
12019
  keyword: h,
12017
12020
  schemaProp: g,
12018
12021
  dataProp: g
12019
12022
  }, v)), o.ok(v));
12020
12023
  });
12021
12024
  function _(f) {
12022
- const { opts: g, errSchemaPath: p } = y, b = i.length, S = b === f.minItems && (b === f.maxItems || f[a] === !1);
12023
- if (g.strictTuples && !S) {
12025
+ const { opts: g, errSchemaPath: p } = y, b = i.length, R = b === f.minItems && (b === f.maxItems || f[a] === !1);
12026
+ if (g.strictTuples && !R) {
12024
12027
  const d = `"${h}" is ${b}-tuple, but minItems or maxItems/${a} are not specified or different at path "${p}"`;
12025
12028
  (0, e.checkStrictMode)(y, d, g.strictTuples);
12026
12029
  }
@@ -12080,7 +12083,7 @@ function _g() {
12080
12083
  let l, h;
12081
12084
  const { minContains: y, maxContains: v } = i;
12082
12085
  u.opts.next ? (l = y === void 0 ? 1 : y, h = v) : l = 1;
12083
- const R = o.const("len", (0, t._)`${c}.length`);
12086
+ const S = o.const("len", (0, t._)`${c}.length`);
12084
12087
  if (s.setParams({ min: l, max: h }), h === void 0 && l === 0) {
12085
12088
  (0, e.checkStrictMode)(u, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
12086
12089
  return;
@@ -12090,25 +12093,25 @@ function _g() {
12090
12093
  return;
12091
12094
  }
12092
12095
  if ((0, e.alwaysValidSchema)(u, a)) {
12093
- let b = (0, t._)`${R} >= ${l}`;
12094
- h !== void 0 && (b = (0, t._)`${b} && ${R} <= ${h}`), s.pass(b);
12096
+ let b = (0, t._)`${S} >= ${l}`;
12097
+ h !== void 0 && (b = (0, t._)`${b} && ${S} <= ${h}`), s.pass(b);
12095
12098
  return;
12096
12099
  }
12097
12100
  u.items = !0;
12098
12101
  const _ = o.name("valid");
12099
12102
  h === void 0 && l === 1 ? g(_, () => o.if(_, () => o.break())) : l === 0 ? (o.let(_, !0), h !== void 0 && o.if((0, t._)`${c}.length > 0`, f)) : (o.let(_, !1), f()), s.result(_, () => s.reset());
12100
12103
  function f() {
12101
- const b = o.name("_valid"), S = o.let("count", 0);
12102
- g(b, () => o.if(b, () => p(S)));
12104
+ const b = o.name("_valid"), R = o.let("count", 0);
12105
+ g(b, () => o.if(b, () => p(R)));
12103
12106
  }
12104
- function g(b, S) {
12105
- o.forRange("i", 0, R, (d) => {
12107
+ function g(b, R) {
12108
+ o.forRange("i", 0, S, (d) => {
12106
12109
  s.subschema({
12107
12110
  keyword: "contains",
12108
12111
  dataProp: d,
12109
12112
  dataPropType: e.Type.Num,
12110
12113
  compositeRule: !0
12111
- }, b), S();
12114
+ }, b), R();
12112
12115
  });
12113
12116
  }
12114
12117
  function p(b) {
@@ -12159,13 +12162,13 @@ function vg() {
12159
12162
  if (Object.keys(u).length === 0)
12160
12163
  return;
12161
12164
  const v = l.let("missing");
12162
- for (const R in u) {
12163
- const _ = u[R];
12165
+ for (const S in u) {
12166
+ const _ = u[S];
12164
12167
  if (_.length === 0)
12165
12168
  continue;
12166
- const f = (0, n.propertyInData)(l, h, R, y.opts.ownProperties);
12169
+ const f = (0, n.propertyInData)(l, h, S, y.opts.ownProperties);
12167
12170
  c.setParams({
12168
- property: R,
12171
+ property: S,
12169
12172
  depsCount: _.length,
12170
12173
  deps: _.join(", ")
12171
12174
  }), y.allErrors ? l.if(f, () => {
@@ -12176,17 +12179,17 @@ function vg() {
12176
12179
  }
12177
12180
  t.validatePropertyDeps = a;
12178
12181
  function i(c, u = c.schema) {
12179
- const { gen: l, data: h, keyword: y, it: v } = c, R = l.name("valid");
12182
+ const { gen: l, data: h, keyword: y, it: v } = c, S = l.name("valid");
12180
12183
  for (const _ in u)
12181
12184
  (0, r.alwaysValidSchema)(v, u[_]) || (l.if(
12182
12185
  (0, n.propertyInData)(l, h, _, v.opts.ownProperties),
12183
12186
  () => {
12184
- const f = c.subschema({ keyword: y, schemaProp: _ }, R);
12185
- c.mergeValidEvaluated(f, R);
12187
+ const f = c.subschema({ keyword: y, schemaProp: _ }, S);
12188
+ c.mergeValidEvaluated(f, S);
12186
12189
  },
12187
- () => l.var(R, !0)
12190
+ () => l.var(S, !0)
12188
12191
  // TODO var
12189
- ), c.ok(R));
12192
+ ), c.ok(S));
12190
12193
  }
12191
12194
  t.validateSchemaDeps = i, t.default = s;
12192
12195
  })(Ln)), Ln;
@@ -12241,14 +12244,14 @@ function Vi() {
12241
12244
  const { gen: i, schema: c, parentSchema: u, data: l, errsCount: h, it: y } = a;
12242
12245
  if (!h)
12243
12246
  throw new Error("ajv implementation error");
12244
- const { allErrors: v, opts: R } = y;
12245
- if (y.props = !0, R.removeAdditional !== "all" && (0, n.alwaysValidSchema)(y, c))
12247
+ const { allErrors: v, opts: S } = y;
12248
+ if (y.props = !0, S.removeAdditional !== "all" && (0, n.alwaysValidSchema)(y, c))
12246
12249
  return;
12247
12250
  const _ = (0, t.allSchemaProperties)(u.properties), f = (0, t.allSchemaProperties)(u.patternProperties);
12248
12251
  g(), a.ok((0, e._)`${h} === ${r.default.errors}`);
12249
12252
  function g() {
12250
12253
  i.forIn("key", l, (m) => {
12251
- !_.length && !f.length ? S(m) : i.if(p(m), () => S(m));
12254
+ !_.length && !f.length ? R(m) : i.if(p(m), () => R(m));
12252
12255
  });
12253
12256
  }
12254
12257
  function p(m) {
@@ -12262,8 +12265,8 @@ function Vi() {
12262
12265
  function b(m) {
12263
12266
  i.code((0, e._)`delete ${l}[${m}]`);
12264
12267
  }
12265
- function S(m) {
12266
- if (R.removeAdditional === "all" || R.removeAdditional && c === !1) {
12268
+ function R(m) {
12269
+ if (S.removeAdditional === "all" || S.removeAdditional && c === !1) {
12267
12270
  b(m);
12268
12271
  return;
12269
12272
  }
@@ -12273,7 +12276,7 @@ function Vi() {
12273
12276
  }
12274
12277
  if (typeof c == "object" && !(0, n.alwaysValidSchema)(y, c)) {
12275
12278
  const w = i.name("valid");
12276
- R.removeAdditional === "failing" ? (d(m, w, !1), i.if((0, e.not)(w), () => {
12279
+ S.removeAdditional === "failing" ? (d(m, w, !1), i.if((0, e.not)(w), () => {
12277
12280
  a.reset(), b(m);
12278
12281
  })) : (d(m, w), v || i.if((0, e.not)(w), () => i.break()));
12279
12282
  }
@@ -12295,7 +12298,7 @@ function Vi() {
12295
12298
  return Er.default = o, Er;
12296
12299
  }
12297
12300
  var br = {}, pa;
12298
- function Rg() {
12301
+ function Sg() {
12299
12302
  if (pa) return br;
12300
12303
  pa = 1, Object.defineProperty(br, "__esModule", { value: !0 });
12301
12304
  const t = an(), e = ke(), r = se(), n = Vi(), s = {
@@ -12314,8 +12317,8 @@ function Rg() {
12314
12317
  return;
12315
12318
  const v = a.name("valid");
12316
12319
  for (const f of y)
12317
- R(f) ? _(f) : (a.if((0, e.propertyInData)(a, u, f, l.opts.ownProperties)), _(f), l.allErrors || a.else().var(v, !0), a.endIf()), o.it.definedProperties.add(f), o.ok(v);
12318
- function R(f) {
12320
+ S(f) ? _(f) : (a.if((0, e.propertyInData)(a, u, f, l.opts.ownProperties)), _(f), l.allErrors || a.else().var(v, !0), a.endIf()), o.it.definedProperties.add(f), o.ok(v);
12321
+ function S(f) {
12319
12322
  return l.opts.useDefaults && !l.compositeRule && i[f].default !== void 0;
12320
12323
  }
12321
12324
  function _(f) {
@@ -12330,7 +12333,7 @@ function Rg() {
12330
12333
  return br.default = s, br;
12331
12334
  }
12332
12335
  var _r = {}, ha;
12333
- function Sg() {
12336
+ function Rg() {
12334
12337
  if (ha) return _r;
12335
12338
  ha = 1, Object.defineProperty(_r, "__esModule", { value: !0 });
12336
12339
  const t = ke(), e = te(), r = se(), n = se(), s = {
@@ -12338,28 +12341,28 @@ function Sg() {
12338
12341
  type: "object",
12339
12342
  schemaType: "object",
12340
12343
  code(o) {
12341
- const { gen: a, schema: i, data: c, parentSchema: u, it: l } = o, { opts: h } = l, y = (0, t.allSchemaProperties)(i), v = y.filter((S) => (0, r.alwaysValidSchema)(l, i[S]));
12344
+ const { gen: a, schema: i, data: c, parentSchema: u, it: l } = o, { opts: h } = l, y = (0, t.allSchemaProperties)(i), v = y.filter((R) => (0, r.alwaysValidSchema)(l, i[R]));
12342
12345
  if (y.length === 0 || v.length === y.length && (!l.opts.unevaluated || l.props === !0))
12343
12346
  return;
12344
- const R = h.strictSchema && !h.allowMatchingProperties && u.properties, _ = a.name("valid");
12347
+ const S = h.strictSchema && !h.allowMatchingProperties && u.properties, _ = a.name("valid");
12345
12348
  l.props !== !0 && !(l.props instanceof e.Name) && (l.props = (0, n.evaluatedPropsToName)(a, l.props));
12346
12349
  const { props: f } = l;
12347
12350
  g();
12348
12351
  function g() {
12349
- for (const S of y)
12350
- R && p(S), l.allErrors ? b(S) : (a.var(_, !0), b(S), a.if(_));
12352
+ for (const R of y)
12353
+ S && p(R), l.allErrors ? b(R) : (a.var(_, !0), b(R), a.if(_));
12351
12354
  }
12352
- function p(S) {
12353
- for (const d in R)
12354
- new RegExp(S).test(d) && (0, r.checkStrictMode)(l, `property ${d} matches pattern ${S} (use allowMatchingProperties)`);
12355
+ function p(R) {
12356
+ for (const d in S)
12357
+ new RegExp(R).test(d) && (0, r.checkStrictMode)(l, `property ${d} matches pattern ${R} (use allowMatchingProperties)`);
12355
12358
  }
12356
- function b(S) {
12359
+ function b(R) {
12357
12360
  a.forIn("key", c, (d) => {
12358
- a.if((0, e._)`${(0, t.usePattern)(o, S)}.test(${d})`, () => {
12359
- const m = v.includes(S);
12361
+ a.if((0, e._)`${(0, t.usePattern)(o, R)}.test(${d})`, () => {
12362
+ const m = v.includes(R);
12360
12363
  m || o.subschema({
12361
12364
  keyword: "patternProperties",
12362
- schemaProp: S,
12365
+ schemaProp: R,
12363
12366
  dataProp: d,
12364
12367
  dataPropType: n.Type.Str
12365
12368
  }, _), l.opts.unevaluated && f !== !0 ? a.assign((0, e._)`${f}[${d}]`, !0) : !m && !l.allErrors && a.if((0, e.not)(_), () => a.break());
@@ -12409,10 +12412,10 @@ function Ag() {
12409
12412
  };
12410
12413
  return Tr.default = e, Tr;
12411
12414
  }
12412
- var Rr = {}, ya;
12415
+ var Sr = {}, ya;
12413
12416
  function Ng() {
12414
- if (ya) return Rr;
12415
- ya = 1, Object.defineProperty(Rr, "__esModule", { value: !0 });
12417
+ if (ya) return Sr;
12418
+ ya = 1, Object.defineProperty(Sr, "__esModule", { value: !0 });
12416
12419
  const t = te(), e = se(), n = {
12417
12420
  keyword: "oneOf",
12418
12421
  schemaType: "array",
@@ -12430,9 +12433,9 @@ function Ng() {
12430
12433
  const u = a, l = o.let("valid", !1), h = o.let("passing", null), y = o.name("_valid");
12431
12434
  s.setParams({ passing: h }), o.block(v), s.result(l, () => s.reset(), () => s.error(!0));
12432
12435
  function v() {
12433
- u.forEach((R, _) => {
12436
+ u.forEach((S, _) => {
12434
12437
  let f;
12435
- (0, e.alwaysValidSchema)(c, R) ? o.var(y, !0) : f = s.subschema({
12438
+ (0, e.alwaysValidSchema)(c, S) ? o.var(y, !0) : f = s.subschema({
12436
12439
  keyword: "oneOf",
12437
12440
  schemaProp: _,
12438
12441
  compositeRule: !0
@@ -12443,12 +12446,12 @@ function Ng() {
12443
12446
  }
12444
12447
  }
12445
12448
  };
12446
- return Rr.default = n, Rr;
12449
+ return Sr.default = n, Sr;
12447
12450
  }
12448
- var Sr = {}, wa;
12451
+ var Rr = {}, wa;
12449
12452
  function Pg() {
12450
- if (wa) return Sr;
12451
- wa = 1, Object.defineProperty(Sr, "__esModule", { value: !0 });
12453
+ if (wa) return Rr;
12454
+ wa = 1, Object.defineProperty(Rr, "__esModule", { value: !0 });
12452
12455
  const t = se(), e = {
12453
12456
  keyword: "allOf",
12454
12457
  schemaType: "array",
@@ -12465,7 +12468,7 @@ function Pg() {
12465
12468
  });
12466
12469
  }
12467
12470
  };
12468
- return Sr.default = e, Sr;
12471
+ return Rr.default = e, Rr;
12469
12472
  }
12470
12473
  var Or = {}, Ea;
12471
12474
  function Ig() {
@@ -12488,8 +12491,8 @@ function Ig() {
12488
12491
  const h = a.let("valid", !0), y = a.name("_valid");
12489
12492
  if (v(), o.reset(), u && l) {
12490
12493
  const _ = a.let("ifClause");
12491
- o.setParams({ ifClause: _ }), a.if(y, R("then", _), R("else", _));
12492
- } else u ? a.if(y, R("then")) : a.if((0, t.not)(y), R("else"));
12494
+ o.setParams({ ifClause: _ }), a.if(y, S("then", _), S("else", _));
12495
+ } else u ? a.if(y, S("then")) : a.if((0, t.not)(y), S("else"));
12493
12496
  o.pass(h, () => o.error(!0));
12494
12497
  function v() {
12495
12498
  const _ = o.subschema({
@@ -12500,7 +12503,7 @@ function Ig() {
12500
12503
  }, y);
12501
12504
  o.mergeEvaluated(_);
12502
12505
  }
12503
- function R(_, f) {
12506
+ function S(_, f) {
12504
12507
  return () => {
12505
12508
  const g = o.subschema({ keyword: _ }, y);
12506
12509
  a.assign(h, y), o.mergeValidEvaluated(g, h), f ? a.assign(f, (0, t._)`${_}`) : o.setParams({ ifClause: _ });
@@ -12531,7 +12534,7 @@ var _a;
12531
12534
  function Dg() {
12532
12535
  if (_a) return hr;
12533
12536
  _a = 1, Object.defineProperty(hr, "__esModule", { value: !0 });
12534
- const t = Fi(), e = Eg(), r = ji(), n = bg(), s = _g(), o = vg(), a = Tg(), i = Vi(), c = Rg(), u = Sg(), l = Og(), h = Ag(), y = Ng(), v = Pg(), R = Ig(), _ = $g();
12537
+ const t = Fi(), e = Eg(), r = ji(), n = bg(), s = _g(), o = vg(), a = Tg(), i = Vi(), c = Sg(), u = Rg(), l = Og(), h = Ag(), y = Ng(), v = Pg(), S = Ig(), _ = $g();
12535
12538
  function f(g = !1) {
12536
12539
  const p = [
12537
12540
  // any
@@ -12539,7 +12542,7 @@ function Dg() {
12539
12542
  h.default,
12540
12543
  y.default,
12541
12544
  v.default,
12542
- R.default,
12545
+ S.default,
12543
12546
  _.default,
12544
12547
  // object
12545
12548
  a.default,
@@ -12566,37 +12569,37 @@ function Cg() {
12566
12569
  params: ({ schemaCode: n }) => (0, t._)`{format: ${n}}`
12567
12570
  },
12568
12571
  code(n, s) {
12569
- const { gen: o, data: a, $data: i, schema: c, schemaCode: u, it: l } = n, { opts: h, errSchemaPath: y, schemaEnv: v, self: R } = l;
12572
+ const { gen: o, data: a, $data: i, schema: c, schemaCode: u, it: l } = n, { opts: h, errSchemaPath: y, schemaEnv: v, self: S } = l;
12570
12573
  if (!h.validateFormats)
12571
12574
  return;
12572
12575
  i ? _() : f();
12573
12576
  function _() {
12574
12577
  const g = o.scopeValue("formats", {
12575
- ref: R.formats,
12578
+ ref: S.formats,
12576
12579
  code: h.code.formats
12577
- }), p = o.const("fDef", (0, t._)`${g}[${u}]`), b = o.let("fType"), S = o.let("format");
12578
- o.if((0, t._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`, () => o.assign(b, (0, t._)`${p}.type || "string"`).assign(S, (0, t._)`${p}.validate`), () => o.assign(b, (0, t._)`"string"`).assign(S, p)), n.fail$data((0, t.or)(d(), m()));
12580
+ }), p = o.const("fDef", (0, t._)`${g}[${u}]`), b = o.let("fType"), R = o.let("format");
12581
+ o.if((0, t._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`, () => o.assign(b, (0, t._)`${p}.type || "string"`).assign(R, (0, t._)`${p}.validate`), () => o.assign(b, (0, t._)`"string"`).assign(R, p)), n.fail$data((0, t.or)(d(), m()));
12579
12582
  function d() {
12580
- return h.strictSchema === !1 ? t.nil : (0, t._)`${u} && !${S}`;
12583
+ return h.strictSchema === !1 ? t.nil : (0, t._)`${u} && !${R}`;
12581
12584
  }
12582
12585
  function m() {
12583
- const w = v.$async ? (0, t._)`(${p}.async ? await ${S}(${a}) : ${S}(${a}))` : (0, t._)`${S}(${a})`, T = (0, t._)`(typeof ${S} == "function" ? ${w} : ${S}.test(${a}))`;
12584
- return (0, t._)`${S} && ${S} !== true && ${b} === ${s} && !${T}`;
12586
+ const w = v.$async ? (0, t._)`(${p}.async ? await ${R}(${a}) : ${R}(${a}))` : (0, t._)`${R}(${a})`, T = (0, t._)`(typeof ${R} == "function" ? ${w} : ${R}.test(${a}))`;
12587
+ return (0, t._)`${R} && ${R} !== true && ${b} === ${s} && !${T}`;
12585
12588
  }
12586
12589
  }
12587
12590
  function f() {
12588
- const g = R.formats[c];
12591
+ const g = S.formats[c];
12589
12592
  if (!g) {
12590
12593
  d();
12591
12594
  return;
12592
12595
  }
12593
12596
  if (g === !0)
12594
12597
  return;
12595
- const [p, b, S] = m(g);
12598
+ const [p, b, R] = m(g);
12596
12599
  p === s && n.pass(w());
12597
12600
  function d() {
12598
12601
  if (h.strictSchema === !1) {
12599
- R.logger.warn(T());
12602
+ S.logger.warn(T());
12600
12603
  return;
12601
12604
  }
12602
12605
  throw new Error(T());
@@ -12612,9 +12615,9 @@ function Cg() {
12612
12615
  if (typeof g == "object" && !(g instanceof RegExp) && g.async) {
12613
12616
  if (!v.$async)
12614
12617
  throw new Error("async format in sync schema");
12615
- return (0, t._)`await ${S}(${a})`;
12618
+ return (0, t._)`await ${R}(${a})`;
12616
12619
  }
12617
- return typeof b == "function" ? (0, t._)`${S}(${a})` : (0, t._)`${S}.test(${a})`;
12620
+ return typeof b == "function" ? (0, t._)`${R}(${a})` : (0, t._)`${R}.test(${a})`;
12618
12621
  }
12619
12622
  }
12620
12623
  }
@@ -12628,9 +12631,9 @@ function Lg() {
12628
12631
  const e = [Cg().default];
12629
12632
  return Nr.default = e, Nr;
12630
12633
  }
12631
- var Qe = {}, Ra;
12634
+ var Qe = {}, Sa;
12632
12635
  function xg() {
12633
- return Ra || (Ra = 1, Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.contentVocabulary = Qe.metadataVocabulary = void 0, Qe.metadataVocabulary = [
12636
+ return Sa || (Sa = 1, Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.contentVocabulary = Qe.metadataVocabulary = void 0, Qe.metadataVocabulary = [
12634
12637
  "title",
12635
12638
  "description",
12636
12639
  "default",
@@ -12644,10 +12647,10 @@ function xg() {
12644
12647
  "contentSchema"
12645
12648
  ]), Qe;
12646
12649
  }
12647
- var Sa;
12650
+ var Ra;
12648
12651
  function kg() {
12649
- if (Sa) return Xt;
12650
- Sa = 1, Object.defineProperty(Xt, "__esModule", { value: !0 });
12652
+ if (Ra) return Xt;
12653
+ Ra = 1, Object.defineProperty(Xt, "__esModule", { value: !0 });
12651
12654
  const t = ag(), e = wg(), r = Dg(), n = Lg(), s = xg(), o = [
12652
12655
  t.default,
12653
12656
  e.default,
@@ -12683,28 +12686,28 @@ function Ug() {
12683
12686
  const { gen: c, data: u, schema: l, parentSchema: h, it: y } = i, { oneOf: v } = h;
12684
12687
  if (!y.opts.discriminator)
12685
12688
  throw new Error("discriminator: requires discriminator option");
12686
- const R = l.propertyName;
12687
- if (typeof R != "string")
12689
+ const S = l.propertyName;
12690
+ if (typeof S != "string")
12688
12691
  throw new Error("discriminator: requires propertyName");
12689
12692
  if (l.mapping)
12690
12693
  throw new Error("discriminator: mapping is not supported");
12691
12694
  if (!v)
12692
12695
  throw new Error("discriminator: requires oneOf keyword");
12693
- const _ = c.let("valid", !1), f = c.const("tag", (0, t._)`${u}${(0, t.getProperty)(R)}`);
12694
- c.if((0, t._)`typeof ${f} == "string"`, () => g(), () => i.error(!1, { discrError: e.DiscrError.Tag, tag: f, tagName: R })), i.ok(_);
12696
+ const _ = c.let("valid", !1), f = c.const("tag", (0, t._)`${u}${(0, t.getProperty)(S)}`);
12697
+ c.if((0, t._)`typeof ${f} == "string"`, () => g(), () => i.error(!1, { discrError: e.DiscrError.Tag, tag: f, tagName: S })), i.ok(_);
12695
12698
  function g() {
12696
- const S = b();
12699
+ const R = b();
12697
12700
  c.if(!1);
12698
- for (const d in S)
12699
- c.elseIf((0, t._)`${f} === ${d}`), c.assign(_, p(S[d]));
12700
- c.else(), i.error(!1, { discrError: e.DiscrError.Mapping, tag: f, tagName: R }), c.endIf();
12701
+ for (const d in R)
12702
+ c.elseIf((0, t._)`${f} === ${d}`), c.assign(_, p(R[d]));
12703
+ c.else(), i.error(!1, { discrError: e.DiscrError.Mapping, tag: f, tagName: S }), c.endIf();
12701
12704
  }
12702
- function p(S) {
12703
- const d = c.name("valid"), m = i.subschema({ keyword: "oneOf", schemaProp: S }, d);
12705
+ function p(R) {
12706
+ const d = c.name("valid"), m = i.subschema({ keyword: "oneOf", schemaProp: R }, d);
12704
12707
  return i.mergeEvaluated(m, t.Name), d;
12705
12708
  }
12706
12709
  function b() {
12707
- var S;
12710
+ var R;
12708
12711
  const d = {}, m = T(h);
12709
12712
  let w = !0;
12710
12713
  for (let N = 0; N < v.length; N++) {
@@ -12714,16 +12717,16 @@ function Ug() {
12714
12717
  if (k = r.resolveRef.call(y.self, y.schemaEnv.root, y.baseId, V), k instanceof r.SchemaEnv && (k = k.schema), k === void 0)
12715
12718
  throw new n.default(y.opts.uriResolver, y.baseId, V);
12716
12719
  }
12717
- const B = (S = k?.properties) === null || S === void 0 ? void 0 : S[R];
12720
+ const B = (R = k?.properties) === null || R === void 0 ? void 0 : R[S];
12718
12721
  if (typeof B != "object")
12719
- throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${R}"`);
12722
+ throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${S}"`);
12720
12723
  w = w && (m || T(k)), I(B, N);
12721
12724
  }
12722
12725
  if (!w)
12723
- throw new Error(`discriminator: "${R}" must be required`);
12726
+ throw new Error(`discriminator: "${S}" must be required`);
12724
12727
  return d;
12725
12728
  function T({ required: N }) {
12726
- return Array.isArray(N) && N.includes(R);
12729
+ return Array.isArray(N) && N.includes(S);
12727
12730
  }
12728
12731
  function I(N, k) {
12729
12732
  if (N.const)
@@ -12732,11 +12735,11 @@ function Ug() {
12732
12735
  for (const B of N.enum)
12733
12736
  L(B, k);
12734
12737
  else
12735
- throw new Error(`discriminator: "properties/${R}" must have "const" or "enum"`);
12738
+ throw new Error(`discriminator: "properties/${S}" must have "const" or "enum"`);
12736
12739
  }
12737
12740
  function L(N, k) {
12738
12741
  if (typeof N != "string" || N in d)
12739
- throw new Error(`discriminator: "${R}" values must be unique strings`);
12742
+ throw new Error(`discriminator: "${S}" values must be unique strings`);
12740
12743
  d[N] = k;
12741
12744
  }
12742
12745
  }
@@ -12760,13 +12763,13 @@ function Yg() {
12760
12763
  const r = ng(), n = kg(), s = Ug(), o = zg, a = ["/properties"], i = "http://json-schema.org/draft-07/schema";
12761
12764
  class c extends r.default {
12762
12765
  _addVocabularies() {
12763
- super._addVocabularies(), n.default.forEach((R) => this.addVocabulary(R)), this.opts.discriminator && this.addKeyword(s.default);
12766
+ super._addVocabularies(), n.default.forEach((S) => this.addVocabulary(S)), this.opts.discriminator && this.addKeyword(s.default);
12764
12767
  }
12765
12768
  _addDefaultMetaSchema() {
12766
12769
  if (super._addDefaultMetaSchema(), !this.opts.meta)
12767
12770
  return;
12768
- const R = this.opts.$data ? this.$dataMetaSchema(o, a) : o;
12769
- this.addMetaSchema(R, i, !1), this.refs["http://json-schema.org/schema"] = i;
12771
+ const S = this.opts.$data ? this.$dataMetaSchema(o, a) : o;
12772
+ this.addMetaSchema(S, i, !1), this.refs["http://json-schema.org/schema"] = i;
12770
12773
  }
12771
12774
  defaultMeta() {
12772
12775
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(i) ? i : void 0);
@@ -12805,7 +12808,7 @@ var Gg = Yg();
12805
12808
  const Kg = /* @__PURE__ */ jm(Gg), Pa = {
12806
12809
  CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
12807
12810
  VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED"
12808
- }, $b = async (t, e) => {
12811
+ }, Db = async (t, e) => {
12809
12812
  const r = await Wg(t);
12810
12813
  if (!r)
12811
12814
  throw new Error(Pa.CONFIG_NOT_FOUND);
@@ -12815,35 +12818,35 @@ const Kg = /* @__PURE__ */ jm(Gg), Pa = {
12815
12818
  }, Wg = async (t) => await H(t), Jg = async (t, e) => new Kg().compile(e)(t), Qg = (t) => K + `/form/${t}?v=custom:(resources:(value))`, Xg = (t) => {
12816
12819
  const e = K + "/bahmniie/form/latestPublishedForms";
12817
12820
  return t ? e + `?episodeUuid=${t}` : e;
12818
- }, Db = (t) => K + `/user/${t}?v=full`, Zg = (t, e, r, n) => K + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, xr = "Bahmni", ey = (t, e, r) => {
12821
+ }, Cb = (t) => K + `/user/${t}?v=full`, Zg = (t, e, r, n) => K + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, xr = "Bahmni", ey = (t, e, r) => {
12819
12822
  let s = K + "/bahmnicore/patient/" + t + "/forms";
12820
12823
  return r ? s += `?patientProgramUuid=${r}` : e && (s += `?numberOfVisits=${e}`), s;
12821
12824
  }, ty = (t, e) => {
12822
12825
  const r = e.join(",");
12823
- return `${ae}/Observation?patient=${t}&code=${r}&_include=Observation:has-member&_sort=-_lastUpdated`;
12826
+ return `${oe}/Observation?patient=${t}&code=${r}&_include=Observation:has-member&_sort=-_lastUpdated`;
12824
12827
  }, ry = (t, e) => {
12825
12828
  const r = e.join(",");
12826
- return `${ae}/Observation?patient=${t}&code=${r}&_include=Observation:has-member&_include=Observation:encounter&_sort=-_lastUpdated`;
12829
+ return `${oe}/Observation?patient=${t}&code=${r}&_include=Observation:has-member&_include=Observation:encounter&_sort=-_lastUpdated`;
12827
12830
  };
12828
12831
  async function ny(t, e) {
12829
12832
  const r = ty(t, e);
12830
12833
  return await H(r);
12831
12834
  }
12832
- async function Cb(t, e) {
12835
+ async function Lb(t, e) {
12833
12836
  const r = ry(t, e);
12834
12837
  return await H(r);
12835
12838
  }
12836
- async function Lb(t, e) {
12839
+ async function xb(t, e) {
12837
12840
  return (await ny(t, e)).entry?.filter((s) => s.resource?.resourceType === "Observation").map((s) => s.resource) ?? [];
12838
12841
  }
12839
12842
  const Hi = (t) => K + `/provider?user=${t}&v=custom:(uuid,display,person,attributes)`, sy = K + "/provider?v=custom:(uuid,display,person,attributes)";
12840
- async function xb(t) {
12843
+ async function kb(t) {
12841
12844
  const e = await H(
12842
12845
  Hi(t)
12843
12846
  );
12844
12847
  return !e.results || e.results.length === 0 ? null : e.results[0];
12845
12848
  }
12846
- async function kb() {
12849
+ async function Mb() {
12847
12850
  const t = [];
12848
12851
  let e = sy;
12849
12852
  for (; e; ) {
@@ -12852,7 +12855,7 @@ async function kb() {
12852
12855
  }
12853
12856
  return t;
12854
12857
  }
12855
- async function Mb(t) {
12858
+ async function Ub(t) {
12856
12859
  const e = await H(Hi(t));
12857
12860
  if (!e.results || e.results.length === 0)
12858
12861
  return [];
@@ -12861,7 +12864,7 @@ async function Mb(t) {
12861
12864
  (n) => !n.voided && n.attributeType.display === "Login Locations"
12862
12865
  ).map((n) => n.value) : [];
12863
12866
  }
12864
- const oy = (t) => ae + `/Encounter?subject:Patient=${t}&_tag=visit&_sort=-_lastUpdated`, ay = (t) => `${ae}/Observation/$fetch-all?encounter=${t}`, Bi = ae + "/Encounter";
12867
+ const oy = (t) => oe + `/Encounter?subject:Patient=${t}&_tag=visit&_sort=-_lastUpdated`, ay = (t) => `${oe}/Observation/$fetch-all?encounter=${t}`, Bi = oe + "/Encounter";
12865
12868
  async function iy(t) {
12866
12869
  return await H(oy(t));
12867
12870
  }
@@ -12871,24 +12874,24 @@ async function cy(t) {
12871
12874
  async function zi(t) {
12872
12875
  return (await cy(t)).find((r) => !r.period?.end) ?? null;
12873
12876
  }
12874
- async function Ub(t, e) {
12877
+ async function qb(t, e) {
12875
12878
  return await H(
12876
12879
  `/openmrs/ws/fhir2/R4/Encounter/${t}`,
12877
12880
  e
12878
12881
  );
12879
12882
  }
12880
- async function qb(t) {
12883
+ async function Fb(t) {
12881
12884
  return await H(
12882
12885
  ay(t)
12883
12886
  );
12884
12887
  }
12885
- async function Fb(t) {
12888
+ async function jb(t) {
12886
12889
  return await ve(Bi, t);
12887
12890
  }
12888
- async function jb(t, e) {
12891
+ async function Vb(t, e) {
12889
12892
  return await is(`${Bi}/${t}`, e);
12890
12893
  }
12891
- const Vb = (t, e) => t?.length === 0 ? !1 : e?.length === 0, uy = ae + "/Encounter", ly = K + "/systemsetting/bahmni.encountersession.duration", Hb = {
12894
+ const Hb = (t, e) => t?.length === 0 ? !1 : e?.length === 0, uy = oe + "/Encounter", ly = K + "/systemsetting/bahmni.encountersession.duration", Bb = {
12892
12895
  MATCHED: "ENCOUNTER_MATCH_REASON_MATCHED",
12893
12896
  NO_ACTIVE_VISIT: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_VISIT",
12894
12897
  NO_ACTIVE_ENCOUNTER: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_ENCOUNTER",
@@ -12926,7 +12929,7 @@ async function dy(t, e) {
12926
12929
  return null;
12927
12930
  }
12928
12931
  }
12929
- async function Bb(t, e, r, n) {
12932
+ async function zb(t, e, r, n) {
12930
12933
  try {
12931
12934
  if (!t) return null;
12932
12935
  const s = r ?? await Yi(), a = `ge${new Date(Date.now() - s * 60 * 1e3).toISOString()}`, i = {
@@ -12963,7 +12966,7 @@ function xn(t) {
12963
12966
  return new Date(r.period?.start ?? 0).getTime() - n;
12964
12967
  });
12965
12968
  }
12966
- async function zb(t, e, r, n) {
12969
+ async function Yb(t, e, r, n) {
12967
12970
  try {
12968
12971
  const s = await zi(t);
12969
12972
  if (!s?.id)
@@ -13001,7 +13004,7 @@ async function zb(t, e, r, n) {
13001
13004
  l.filter(
13002
13005
  (g) => y(g, e)
13003
13006
  )
13004
- ), R = xn(
13007
+ ), S = xn(
13005
13008
  l.filter(
13006
13009
  (g) => !y(g, e)
13007
13010
  )
@@ -13012,7 +13015,7 @@ async function zb(t, e, r, n) {
13012
13015
  }
13013
13016
  const _ = [];
13014
13017
  let f = null;
13015
- return R.length > 0 && (_.push("PROVIDER_MISMATCH"), f = R[0]), h.length > 0 && (_.push("SESSION_EXPIRED"), f ??= h[0]), f && !Ia(f, r) && _.push("LOCATION_MISMATCH"), _.length === 0 ? {
13018
+ return S.length > 0 && (_.push("PROVIDER_MISMATCH"), f = S[0]), h.length > 0 && (_.push("SESSION_EXPIRED"), f ??= h[0]), f && !Ia(f, r) && _.push("LOCATION_MISMATCH"), _.length === 0 ? {
13016
13019
  matched: !1,
13017
13020
  encounter: null,
13018
13021
  reasons: ["NO_ACTIVE_ENCOUNTER"]
@@ -13028,7 +13031,7 @@ async function zb(t, e, r, n) {
13028
13031
  };
13029
13032
  }
13030
13033
  }
13031
- function Yb(t) {
13034
+ function Gb(t) {
13032
13035
  return t.matched || t.reasons.includes("LOCATION_MISMATCH") && !t.reasons.includes("SESSION_EXPIRED") && !t.reasons.includes("PROVIDER_MISMATCH");
13033
13036
  }
13034
13037
  const Gi = {
@@ -13054,7 +13057,7 @@ function py(t) {
13054
13057
  function hy() {
13055
13058
  return Mt;
13056
13059
  }
13057
- function Gb(t) {
13060
+ function Kb(t) {
13058
13061
  const e = t.reasons.some(
13059
13062
  (r) => fy.includes(r)
13060
13063
  );
@@ -13065,20 +13068,20 @@ function Gb(t) {
13065
13068
  isLoading: !1
13066
13069
  }, Ts();
13067
13070
  }
13068
- function Kb(t) {
13071
+ function Wb(t) {
13069
13072
  Mt = { ...Mt, isLoading: t }, Ts();
13070
13073
  }
13071
- function Wb() {
13074
+ function Jb() {
13072
13075
  Mt = { ...Gi }, Ts();
13073
13076
  }
13074
- function Jb() {
13077
+ function Qb() {
13075
13078
  return sc(
13076
13079
  py,
13077
13080
  hy
13078
13081
  );
13079
13082
  }
13080
- const my = (t) => ae + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${t}`;
13081
- async function Qb(t) {
13083
+ const my = (t) => oe + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${t}`;
13084
+ async function Xb(t) {
13082
13085
  const e = t.join(","), r = await H(my(e));
13083
13086
  if (r.total === 0)
13084
13087
  throw new Error(
@@ -13114,14 +13117,14 @@ const kn = /* @__PURE__ */ new Map(), gy = async (t) => {
13114
13117
  module: n
13115
13118
  };
13116
13119
  return await ve(Md, a), { logged: !0 };
13117
- }, Xb = () => kd(async (e) => {
13120
+ }, Zb = () => kd(async (e) => {
13118
13121
  await wy(
13119
13122
  e.patientUuid,
13120
13123
  e.eventType,
13121
13124
  e.messageParams,
13122
13125
  e.module
13123
13126
  );
13124
- }), Zb = async () => {
13127
+ }), e_ = async () => {
13125
13128
  try {
13126
13129
  const t = await H(os);
13127
13130
  return t.user ? t.user.privileges : null;
@@ -13129,7 +13132,7 @@ const kn = /* @__PURE__ */ new Map(), gy = async (t) => {
13129
13132
  const { message: e } = Mr(t);
13130
13133
  throw new Error(e);
13131
13134
  }
13132
- }, e_ = (t, e) => {
13135
+ }, t_ = (t, e) => {
13133
13136
  if (!t || t.length === 0)
13134
13137
  return !1;
13135
13138
  if (!e || e.length === 0)
@@ -13169,12 +13172,12 @@ const kn = /* @__PURE__ */ new Map(), gy = async (t) => {
13169
13172
  editable: n.editable
13170
13173
  }))
13171
13174
  };
13172
- }, t_ = async (t) => {
13175
+ }, r_ = async (t) => {
13173
13176
  const e = await Ey(t), r = Zr();
13174
13177
  return e.map(
13175
13178
  (n) => _y(n, r)
13176
13179
  );
13177
- }, r_ = async (t) => {
13180
+ }, n_ = async (t) => {
13178
13181
  const e = await fetch(Qg(t));
13179
13182
  if (!e.ok)
13180
13183
  throw new Error(
@@ -13208,7 +13211,7 @@ const kn = /* @__PURE__ */ new Map(), gy = async (t) => {
13208
13211
  schema: n,
13209
13212
  translations: u
13210
13213
  };
13211
- }, n_ = async (t, e, r) => {
13214
+ }, s_ = async (t, e, r) => {
13212
13215
  let n;
13213
13216
  e && e.length > 0 && (n = e.join(","));
13214
13217
  const s = ey(t, r, n), o = await H(s);
@@ -13253,7 +13256,7 @@ function Ji(t, e) {
13253
13256
  };
13254
13257
  return n(r.controls);
13255
13258
  }
13256
- function s_(t, e) {
13259
+ function o_(t, e) {
13257
13260
  if (!t.controls || t.controls.length === 0)
13258
13261
  return [];
13259
13262
  const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
@@ -13298,7 +13301,7 @@ function s_(t, e) {
13298
13301
  s.interpretation && (a.interpretation = s.interpretation), s.comment && (a.comment = s.comment), r.push(a);
13299
13302
  }), r;
13300
13303
  }
13301
- function o_(t, e) {
13304
+ function a_(t, e) {
13302
13305
  if (!t || t.length === 0)
13303
13306
  return {
13304
13307
  controls: [],
@@ -13331,7 +13334,7 @@ function o_(t, e) {
13331
13334
  metadata: { formMetadata: e }
13332
13335
  };
13333
13336
  }
13334
- function a_(t) {
13337
+ function i_(t) {
13335
13338
  const e = (n) => {
13336
13339
  const s = (u) => u == null ? null : typeof u == "string" || typeof u == "number" || typeof u == "boolean" || typeof u == "object" ? u : null, o = n.concept, a = typeof o == "object" && o !== null && "uuid" in o ? o.uuid : o, i = typeof o == "object" && o !== null && "datatype" in o ? o.datatype : void 0, c = {
13337
13340
  concept: {
@@ -13351,11 +13354,11 @@ function a_(t) {
13351
13354
  };
13352
13355
  return (t?.filter((n) => n.uuid && n.voided ? !0 : !(!n.uuid && n.voided || n.value && typeof n.value == "string" && n.value.endsWith("voided"))) ?? []).map(e);
13353
13356
  }
13354
- function i_(t) {
13357
+ function c_(t) {
13355
13358
  if (!(!t || typeof t != "object"))
13356
13359
  return "toJS" in t && typeof t.toJS == "function" ? t.toJS() : t;
13357
13360
  }
13358
- function c_(t, e) {
13361
+ function u_(t, e) {
13359
13362
  !t || !Array.isArray(t.children) || t.children.forEach((r) => {
13360
13363
  r && typeof r == "object" && Qi(
13361
13364
  r,
@@ -13385,7 +13388,7 @@ function Qi(t, e) {
13385
13388
  );
13386
13389
  });
13387
13390
  }
13388
- const vy = K + "/bahmnicore/diseaseSummaryData?", u_ = async (t, e, r, n) => {
13391
+ const vy = K + "/bahmnicore/diseaseSummaryData?", l_ = async (t, e, r, n) => {
13389
13392
  const s = new URLSearchParams({
13390
13393
  groupBy: n,
13391
13394
  latestCount: e.toString(),
@@ -13396,15 +13399,15 @@ const vy = K + "/bahmnicore/diseaseSummaryData?", u_ = async (t, e, r, n) => {
13396
13399
  });
13397
13400
  const o = vy + s.toString();
13398
13401
  return H(o);
13399
- }, Rs = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)", Ty = (t) => `${K}/bahmniprogramenrollment?patient=${t}&v=${Rs}`, Ry = (t, e = 15, r = 0) => `${K}/bahmniprogramenrollment?patient=${t}&v=${Rs}&limit=${e}&startIndex=${r}&totalCount=true`, Xi = (t) => `${K}/bahmniprogramenrollment/${t}`, Sy = (t) => `${Xi(t)}?v=${Rs}`, l_ = async (t) => await H(Ty(t)), d_ = async (t, e = 15, r = 1) => {
13402
+ }, Ss = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)", Ty = (t) => `${K}/bahmniprogramenrollment?patient=${t}&v=${Ss}`, Sy = (t, e = 15, r = 0) => `${K}/bahmniprogramenrollment?patient=${t}&v=${Ss}&limit=${e}&startIndex=${r}&totalCount=true`, Xi = (t) => `${K}/bahmniprogramenrollment/${t}`, Ry = (t) => `${Xi(t)}?v=${Ss}`, d_ = async (t) => await H(Ty(t)), f_ = async (t, e = 15, r = 1) => {
13400
13403
  const n = (r - 1) * e, s = await H(
13401
- Ry(t, e, n)
13404
+ Sy(t, e, n)
13402
13405
  );
13403
13406
  return {
13404
13407
  programs: s.results,
13405
13408
  total: s.totalCount
13406
13409
  };
13407
- }, f_ = async (t) => await H(Sy(t)), p_ = async (t, e) => {
13410
+ }, p_ = async (t) => await H(Ry(t)), h_ = async (t, e) => {
13408
13411
  const r = {
13409
13412
  uuid: t,
13410
13413
  states: [
@@ -13418,7 +13421,7 @@ const vy = K + "/bahmnicore/diseaseSummaryData?", u_ = async (t, e, r, n) => {
13418
13421
  r
13419
13422
  );
13420
13423
  };
13421
- function h_(t) {
13424
+ function m_(t) {
13422
13425
  if (t.states.length === 0)
13423
13426
  return null;
13424
13427
  let e;
@@ -13434,7 +13437,7 @@ function h_(t) {
13434
13437
  e = t.states.find((r) => r.endDate === null);
13435
13438
  return e ? Mh(e.state.concept.names) ?? e.state.concept.display : null;
13436
13439
  }
13437
- function m_(t, e) {
13440
+ function g_(t, e) {
13438
13441
  if (e.length === 0)
13439
13442
  return {};
13440
13443
  const r = {};
@@ -13446,12 +13449,12 @@ function m_(t, e) {
13446
13449
  }
13447
13450
  return r;
13448
13451
  }
13449
- const Jn = "consultation:saved", g_ = (t) => {
13452
+ const Jn = "consultation:saved", y_ = (t) => {
13450
13453
  const e = new CustomEvent(Jn, {
13451
13454
  detail: t
13452
13455
  });
13453
13456
  window.dispatchEvent(e);
13454
- }, y_ = (t, e = []) => {
13457
+ }, w_ = (t, e = []) => {
13455
13458
  const r = xt(t);
13456
13459
  rt(() => {
13457
13460
  r.current = t;
@@ -13464,17 +13467,17 @@ const Jn = "consultation:saved", g_ = (t) => {
13464
13467
  window.removeEventListener(Jn, n);
13465
13468
  };
13466
13469
  }, e);
13467
- }, Qn = "cdss:check", Xn = "cdss:results", w_ = (t) => {
13470
+ }, Qn = "cdss:check", Xn = "cdss:results", E_ = (t) => {
13468
13471
  const e = new CustomEvent(Qn, {
13469
13472
  detail: t
13470
13473
  });
13471
13474
  globalThis.dispatchEvent(e);
13472
- }, E_ = (t) => {
13475
+ }, b_ = (t) => {
13473
13476
  const e = new CustomEvent(Xn, {
13474
13477
  detail: t
13475
13478
  });
13476
13479
  globalThis.dispatchEvent(e);
13477
- }, b_ = (t) => {
13480
+ }, __ = (t) => {
13478
13481
  const e = xt(t);
13479
13482
  rt(() => {
13480
13483
  e.current = t;
@@ -13487,7 +13490,7 @@ const Jn = "consultation:saved", g_ = (t) => {
13487
13490
  globalThis.removeEventListener(Qn, r);
13488
13491
  };
13489
13492
  }, []);
13490
- }, __ = (t) => {
13493
+ }, v_ = (t) => {
13491
13494
  const e = xt(t);
13492
13495
  rt(() => {
13493
13496
  e.current = t;
@@ -13501,7 +13504,7 @@ const Jn = "consultation:saved", g_ = (t) => {
13501
13504
  };
13502
13505
  }, []);
13503
13506
  }, Zi = (t, e, r = 100, n = 0) => {
13504
- const s = `${ae}/DocumentReference?patient=${t}&_sort=-_lastUpdated&_count=${r}&_getpagesoffset=${n}`;
13507
+ const s = `${oe}/DocumentReference?patient=${t}&_sort=-_lastUpdated&_count=${r}&_getpagesoffset=${n}`;
13505
13508
  return e && e.length > 0 ? `${s}&encounter=${e.join(",")}` : s;
13506
13509
  };
13507
13510
  function ec(t) {
@@ -13523,13 +13526,13 @@ async function Oy(t, e) {
13523
13526
  const r = Zi(t, e);
13524
13527
  return H(r);
13525
13528
  }
13526
- async function v_(t, e) {
13529
+ async function T_(t, e) {
13527
13530
  const n = ((await Oy(t, e)).entry ?? []).filter(
13528
13531
  (s) => !!s.resource
13529
13532
  );
13530
13533
  return ec(n);
13531
13534
  }
13532
- async function T_(t, e, r = 10, n = 1) {
13535
+ async function S_(t, e, r = 10, n = 1) {
13533
13536
  const s = (n - 1) * r, o = Zi(
13534
13537
  t,
13535
13538
  e,
@@ -13543,18 +13546,18 @@ async function T_(t, e, r = 10, n = 1) {
13543
13546
  total: a.total ?? i.length
13544
13547
  };
13545
13548
  }
13546
- const Ay = (t) => `${K}/location?operator=ALL&s=byTags&tags=${encodeURIComponent(t)}&v=custom:(uuid,display,childLocations:(uuid,display,retired))`, Ny = (t) => `${ae}/Location?_tag=${encodeURIComponent(t)}`;
13549
+ const Ay = (t) => `${K}/location?operator=ALL&s=byTags&tags=${encodeURIComponent(t)}&v=custom:(uuid,display,childLocations:(uuid,display,retired))`, Ny = (t) => `${oe}/Location?_tag=${encodeURIComponent(t)}`;
13547
13550
  async function R_(t) {
13548
13551
  return (await H(Ay(t))).results ?? [];
13549
13552
  }
13550
- async function S_(t) {
13553
+ async function O_(t) {
13551
13554
  return await H(Ny(t));
13552
13555
  }
13553
- const Py = ae + "/Immunization", Iy = (t, e) => {
13556
+ const Py = oe + "/Immunization", Iy = (t, e) => {
13554
13557
  let r = `${Py}?patient=${t}&_sort=-date&_count=100`;
13555
13558
  return e && (r += `&status=${e}`), r;
13556
13559
  };
13557
- async function O_(t, e) {
13560
+ async function A_(t, e) {
13558
13561
  return (await $y(t, e)).entry?.filter((n) => n.resource?.resourceType === "Immunization").map((n) => n.resource) ?? [];
13559
13562
  }
13560
13563
  async function $y(t, e) {
@@ -13588,7 +13591,7 @@ async function Ly(t) {
13588
13591
  }, n.readAsDataURL(t);
13589
13592
  });
13590
13593
  }
13591
- async function A_(t, e, r) {
13594
+ async function N_(t, e, r) {
13592
13595
  const n = await Ly(t), s = {
13593
13596
  content: n.content,
13594
13597
  encounterTypeName: e,
@@ -13614,10 +13617,10 @@ const xy = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", ky =
13614
13617
  }), qy = (t, e) => e === void 0 ? t : t.filter((r) => r.requiredPrivilege ? e.includes(r.requiredPrivilege) : !0), Fy = (t) => {
13615
13618
  const e = navigator.onLine;
13616
13619
  return t.filter((r) => !(r.exclusiveOnlineModule && !e || r.exclusiveOfflineModule && e));
13617
- }, jy = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)), N_ = async (t = tc, e) => {
13620
+ }, jy = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)), P_ = async (t = tc, e) => {
13618
13621
  const r = await My("home"), n = Uy(r, t), s = qy(n, e), o = Fy(s);
13619
13622
  return jy(o);
13620
- }, Vy = (t, e) => K + `/availableStocks?productUuid=${t}&locationUuid=${e}`, P_ = async (t, e) => await H(
13623
+ }, Vy = (t, e) => K + `/availableStocks?productUuid=${t}&locationUuid=${e}`, I_ = async (t, e) => await H(
13621
13624
  Vy(t, e)
13622
13625
  ), Hy = (t, e, r) => {
13623
13626
  const n = t.find((o) => o.server === e);
@@ -13645,7 +13648,7 @@ const xy = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", ky =
13645
13648
  entry: s
13646
13649
  });
13647
13650
  }), r;
13648
- }, I_ = async (t, e, r, n) => {
13651
+ }, $_ = async (t, e, r, n) => {
13649
13652
  const s = Hy(t, e.server, e.service), { serverConfig: o, serviceConfig: a } = s, i = By(
13650
13653
  n,
13651
13654
  a.contextResourceMap
@@ -13663,7 +13666,7 @@ const xy = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", ky =
13663
13666
  c,
13664
13667
  u
13665
13668
  )).cards || [];
13666
- }, $_ = (t, e) => {
13669
+ }, D_ = (t, e) => {
13667
13670
  const r = [];
13668
13671
  return t.forEach((n) => {
13669
13672
  !n.suggestions || n.suggestions.length === 0 || n.suggestions.forEach((s) => {
@@ -13680,256 +13683,266 @@ const xy = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", ky =
13680
13683
  });
13681
13684
  }), r;
13682
13685
  };
13683
- async function D_() {
13686
+ async function C_() {
13684
13687
  return H(`${as}/templates`);
13685
13688
  }
13686
- async function C_(t) {
13689
+ async function L_(t) {
13687
13690
  return (await ve(
13688
13691
  `${as}/render`,
13689
13692
  t
13690
13693
  )).html;
13691
13694
  }
13695
+ const zy = (t, e, r) => {
13696
+ let s = oe + "/Task?_sort=-_lastUpdated";
13697
+ return t && (s += `&subject:Patient=${t}`), e && (s += `&based-on=${e}`), r && r.length > 0 && (s += `&encounter=${r.join(",")}`), s;
13698
+ };
13699
+ async function x_(t, e, r) {
13700
+ return H(
13701
+ zy(t, e, r)
13702
+ );
13703
+ }
13692
13704
  export {
13693
- pE as APPOINTMENT_IDENTIFIER_SYSTEM,
13694
- fE as APPOINTMENT_STATUSES,
13705
+ hE as APPOINTMENT_IDENTIFIER_SYSTEM,
13706
+ pE as APPOINTMENT_STATUSES,
13695
13707
  Bn as AUDIT_LOG_EVENT_DETAILS,
13696
13708
  Yh as AllergySeverity,
13697
13709
  zh as AllergyStatus,
13698
13710
  Cd as AttributeFormat,
13699
13711
  Ld as AttributeInputType,
13700
13712
  il as BAHMNI_APP_BASE_PATH,
13701
- pw as BAHMNI_HOME_PATH,
13713
+ hw as BAHMNI_HOME_PATH,
13702
13714
  li as BAHMNI_USER_LOCATION_COOKIE,
13703
13715
  Qn as CDSS_CHECK_EVENT,
13704
13716
  Xn as CDSS_RESULTS_EVENT,
13705
- eb as CONCEPT_DATATYPE_COMPLEX,
13706
- ZE as CONCEPT_DATATYPE_NUMERIC,
13717
+ tb as CONCEPT_DATATYPE_COMPLEX,
13718
+ eb as CONCEPT_DATATYPE_NUMERIC,
13707
13719
  Jn as CONSULTATION_SAVED_EVENT,
13708
13720
  Kh as DATETIME_REGEX_PATTERN,
13709
- nb as DATE_REGEX_PATTERN,
13721
+ sb as DATE_REGEX_PATTERN,
13710
13722
  Ii as DEFAULT_DATE_FORMAT,
13711
13723
  vh as DEFAULT_DATE_FORMAT_STORAGE_KEY,
13712
13724
  Th as DEFAULT_TIME_FORMAT,
13713
13725
  Oh as DURATION_UNIT_TO_DAYS,
13714
- zE as FHIR_ENCOUNTER_CLASS_CODE_SYSTEM,
13715
- YE as FHIR_ENCOUNTER_TAG_SYSTEM,
13716
- BE as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
13717
- WE as FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL,
13718
- QE as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
13719
- JE as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
13720
- tb as FHIR_OBSERVATION_STATUS_FINAL,
13721
- XE as FHIR_OBSERVATION_VALUE_ATTACHMENT_URL,
13722
- rb as FHIR_RESOURCE_TYPE_OBSERVATION,
13723
- KE as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
13726
+ YE as FHIR_ENCOUNTER_CLASS_CODE_SYSTEM,
13727
+ GE as FHIR_ENCOUNTER_TAG_SYSTEM,
13728
+ zE as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
13729
+ JE as FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL,
13730
+ XE as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
13731
+ QE as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
13732
+ rb as FHIR_OBSERVATION_STATUS_FINAL,
13733
+ ZE as FHIR_OBSERVATION_VALUE_ATTACHMENT_URL,
13734
+ nb as FHIR_RESOURCE_TYPE_OBSERVATION,
13735
+ WE as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
13724
13736
  Di as HL7_CONDITION_CATEGORY_CONDITION_CODE,
13725
13737
  Ci as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
13726
13738
  Gh as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
13727
- GE as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
13728
- sb as INTERPRETATION_TO_CODE,
13729
- SE as ISO_DATE_FORMAT,
13739
+ KE as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
13740
+ ob as INTERPRETATION_TO_CODE,
13741
+ OE as ISO_DATE_FORMAT,
13730
13742
  Ku as LOGIN_PATH,
13731
- Hb as MATCH_REASON_MESSAGES,
13732
- Uw as MAX_NAME_LENGTH,
13733
- Mw as MAX_PATIENT_AGE_YEARS,
13734
- qw as MAX_PHONE_NUMBER_LENGTH,
13735
- lb as MEDICATIONS_INPUT_CONTROL_KEY,
13743
+ Bb as MATCH_REASON_MESSAGES,
13744
+ qw as MAX_NAME_LENGTH,
13745
+ Uw as MAX_PATIENT_AGE_YEARS,
13746
+ Fw as MAX_PHONE_NUMBER_LENGTH,
13747
+ db as MEDICATIONS_INPUT_CONTROL_KEY,
13736
13748
  He as MedicationStatus,
13737
- ae as OPENMRS_FHIR_R4,
13749
+ oe as OPENMRS_FHIR_R4,
13738
13750
  K as OPENMRS_REST_V1,
13739
- Ob as ORDER_TYPE_QUERY_KEY,
13740
- Sb as PENDING_REPORT_STATUSES,
13751
+ Ab as ORDER_TYPE_QUERY_KEY,
13752
+ Ob as PENDING_REPORT_STATUSES,
13741
13753
  Rb as PROCESSED_REPORT_STATUSES,
13742
- Db as USER_PINNED_PREFERENCE_URL,
13743
- OE as calculateAge,
13744
- DE as calculateEndDate,
13745
- NE as calculateOnsetDate,
13746
- Nw as camelToScreamingSnakeCase,
13747
- Yb as canResumeOwnInSessionEncounter,
13748
- bw as capitalize,
13749
- lE as checkIfActiveVisitExists,
13750
- i_ as convertImmutableToPlainObject,
13754
+ Cb as USER_PINNED_PREFERENCE_URL,
13755
+ AE as calculateAge,
13756
+ CE as calculateEndDate,
13757
+ PE as calculateOnsetDate,
13758
+ Pw as camelToScreamingSnakeCase,
13759
+ Gb as canResumeOwnInSessionEncounter,
13760
+ _w as capitalize,
13761
+ dE as checkIfActiveVisitExists,
13762
+ c_ as convertImmutableToPlainObject,
13751
13763
  Ah as convertTo24HourFormat,
13752
- Iw as convertToSentenceCase,
13764
+ $w as convertToSentenceCase,
13753
13765
  RE as createAppointmentUnavailability,
13754
- Fb as createFhirEncounter,
13755
- Kw as createFhirPatient,
13756
- Yw as createPatient,
13757
- dE as createVisitForPatient,
13766
+ jb as createFhirEncounter,
13767
+ Ww as createFhirPatient,
13768
+ Gw as createPatient,
13769
+ fE as createVisitForPatient,
13758
13770
  ti as del,
13759
- bE as deleteAppointmentService,
13771
+ _E as deleteAppointmentService,
13760
13772
  Ql as deleteCookie,
13761
13773
  xd as dispatchAuditEvent,
13762
- w_ as dispatchCDSSCheck,
13763
- E_ as dispatchCDSSResults,
13764
- g_ as dispatchConsultationSaved,
13765
- CE as doDateRangesOverlap,
13766
- m_ as extractAttributes,
13767
- c_ as extractNotesFromFormData,
13768
- kb as fetchAllProviders,
13769
- FE as fetchAndFormatAllergenConcepts,
13770
- r_ as fetchFormMetadata,
13771
- fb as fetchMedicationOrdersMetadata,
13774
+ E_ as dispatchCDSSCheck,
13775
+ b_ as dispatchCDSSResults,
13776
+ y_ as dispatchConsultationSaved,
13777
+ LE as doDateRangesOverlap,
13778
+ g_ as extractAttributes,
13779
+ u_ as extractNotesFromFormData,
13780
+ Mb as fetchAllProviders,
13781
+ jE as fetchAndFormatAllergenConcepts,
13782
+ n_ as fetchFormMetadata,
13783
+ pb as fetchMedicationOrdersMetadata,
13772
13784
  My as fetchModuleExtensions,
13773
- t_ as fetchObservationForms,
13774
- jw as fetchPatientPhotoFromUrl,
13775
- Eb as fetchQualityAssessment,
13776
- jE as fetchReactionConcepts,
13785
+ r_ as fetchObservationForms,
13786
+ Vw as fetchPatientPhotoFromUrl,
13787
+ bb as fetchQualityAssessment,
13788
+ VE as fetchReactionConcepts,
13777
13789
  Fy as filterByOnlineStatus,
13778
13790
  qy as filterByPrivilege,
13779
- $_ as filterCdsCardsForItems,
13780
- Sw as filterReplacementEntries,
13781
- Bb as findActiveEncounterInSession,
13782
- PE as formatDateDistance,
13783
- AE as formatDateTime,
13784
- Ow as formatUrl,
13785
- Ew as generateId,
13786
- Ww as generateIdentifier,
13791
+ D_ as filterCdsCardsForItems,
13792
+ Ow as filterReplacementEntries,
13793
+ zb as findActiveEncounterInSession,
13794
+ IE as formatDateDistance,
13795
+ NE as formatDateTime,
13796
+ Aw as formatUrl,
13797
+ bw as generateId,
13798
+ Jw as generateIdentifier,
13787
13799
  Jl as generateUUID,
13788
13800
  H as get,
13789
13801
  zi as getActiveVisit,
13790
13802
  Hd as getActiveVisitByPatient,
13791
- Xw as getAddressHierarchyEntries,
13792
- EE as getAllAppointmentServices,
13803
+ Zw as getAddressHierarchyEntries,
13804
+ bE as getAllAppointmentServices,
13793
13805
  Hh as getAllergies,
13794
- wE as getAppointmentById,
13795
- TE as getAppointmentUnavailabilities,
13796
- Cw as getAvailableLocations,
13797
- P_ as getAvailableStocks,
13798
- Nb as getCategoryUuidFromOrderTypes,
13799
- UE as getConceptById,
13800
- ab as getConditionPage,
13801
- ob as getConditions,
13802
- $b as getConfig,
13806
+ EE as getAppointmentById,
13807
+ SE as getAppointmentUnavailabilities,
13808
+ Lw as getAvailableLocations,
13809
+ I_ as getAvailableStocks,
13810
+ Pb as getCategoryUuidFromOrderTypes,
13811
+ qE as getConceptById,
13812
+ ib as getConditionPage,
13813
+ ab as getConditions,
13814
+ Db as getConfig,
13803
13815
  ui as getCookieByName,
13804
- xb as getCurrentProvider,
13805
- h_ as getCurrentStateName,
13806
- $w as getCurrentUser,
13807
- Zb as getCurrentUserPrivileges,
13808
- Dw as getDefaultDateFormat,
13809
- ub as getDiagnosesPage,
13810
- vb as getDiagnosticReportBundle,
13811
- _b as getDiagnosticReports,
13812
- T_ as getDocumentReferencePage,
13816
+ kb as getCurrentProvider,
13817
+ m_ as getCurrentStateName,
13818
+ Dw as getCurrentUser,
13819
+ e_ as getCurrentUserPrivileges,
13820
+ Cw as getDefaultDateFormat,
13821
+ lb as getDiagnosesPage,
13822
+ Tb as getDiagnosticReportBundle,
13823
+ vb as getDiagnosticReports,
13824
+ S_ as getDocumentReferencePage,
13813
13825
  Oy as getDocumentReferences,
13814
- Ub as getEncounterByUuid,
13826
+ qb as getEncounterByUuid,
13815
13827
  Yi as getEncounterSessionDuration,
13816
13828
  hy as getEncounterSessionSnapshot,
13817
- Qb as getEncountersAndVisitsForEOC,
13818
- Ib as getExistingServiceRequestsForAllCategories,
13829
+ Xb as getEncountersAndVisitsForEOC,
13830
+ $b as getExistingServiceRequestsForAllCategories,
13819
13831
  Uy as getExtensionsByPoint,
13820
- S_ as getFHIRLocationsByTag,
13821
- Ab as getFlattenedInvestigations,
13822
- $E as getFormattedAge,
13823
- VE as getFormattedAllergies,
13824
- v_ as getFormattedDocumentReferences,
13832
+ O_ as getFHIRLocationsByTag,
13833
+ Nb as getFlattenedInvestigations,
13834
+ DE as getFormattedAge,
13835
+ HE as getFormattedAllergies,
13836
+ T_ as getFormattedDocumentReferences,
13825
13837
  Mr as getFormattedError,
13826
- Fw as getFormattedPatientById,
13827
- Qw as getGenders,
13828
- zw as getIdentifierData,
13829
- Bw as getIdentifierTypes,
13830
- nE as getInputTypeForFormat,
13831
- bb as getLabInvestigationsBundle,
13838
+ jw as getFormattedPatientById,
13839
+ Xw as getGenders,
13840
+ Yw as getIdentifierData,
13841
+ zw as getIdentifierTypes,
13842
+ sE as getInputTypeForFormat,
13843
+ _b as getLabInvestigationsBundle,
13832
13844
  R_ as getLocationByTag,
13833
- mb as getMedicationByUuid,
13834
- qb as getObservationsBundleByEncounterUuid,
13835
- Pb as getOrderTypeNames,
13845
+ gb as getMedicationByUuid,
13846
+ Fb as getObservationsBundleByEncounterUuid,
13847
+ Ib as getOrderTypeNames,
13836
13848
  ws as getOrderTypes,
13837
- Zw as getOrderedAddressHierarchyLevels,
13838
- gE as getPastAppointments,
13839
- vE as getPastAppointmentsPage,
13849
+ eE as getOrderedAddressHierarchyLevels,
13850
+ yE as getPastAppointments,
13851
+ TE as getPastAppointmentsPage,
13840
13852
  Od as getPatientById,
13841
- cb as getPatientDiagnoses,
13842
- n_ as getPatientFormData,
13843
- O_ as getPatientImmunizations,
13853
+ ub as getPatientDiagnoses,
13854
+ s_ as getPatientFormData,
13855
+ A_ as getPatientImmunizations,
13844
13856
  hm as getPatientMedicationBundle,
13845
- db as getPatientMedications,
13846
- Lb as getPatientObservations,
13857
+ fb as getPatientMedications,
13858
+ xb as getPatientObservations,
13847
13859
  ny as getPatientObservationsBundle,
13848
- Cb as getPatientObservationsWithEncounterBundle,
13849
- eE as getPatientProfile,
13850
- l_ as getPatientPrograms,
13851
- d_ as getPatientProgramsPage,
13852
- gb as getPatientRadiologyInvestigationBundle,
13853
- yb as getPatientRadiologyInvestigationBundleWithImagingStudy,
13854
- wb as getPatientRadiologyInvestigations,
13855
- rE as getPersonAttributeTypes,
13860
+ Lb as getPatientObservationsWithEncounterBundle,
13861
+ tE as getPatientProfile,
13862
+ d_ as getPatientPrograms,
13863
+ f_ as getPatientProgramsPage,
13864
+ yb as getPatientRadiologyInvestigationBundle,
13865
+ wb as getPatientRadiologyInvestigationBundleWithImagingStudy,
13866
+ Eb as getPatientRadiologyInvestigations,
13867
+ nE as getPersonAttributeTypes,
13856
13868
  Dd as getPrimaryIdentifierType,
13857
- Tw as getPriorityByOrder,
13858
- f_ as getProgramByUUID,
13859
- Mb as getProviderLoginLocations,
13860
- tE as getRelationshipTypes,
13869
+ Sw as getPriorityByOrder,
13870
+ p_ as getProgramByUUID,
13871
+ Ub as getProviderLoginLocations,
13872
+ rE as getRelationshipTypes,
13861
13873
  Ht as getServiceRequests,
13862
- D_ as getTemplates,
13863
- xE as getTimeInMinutes,
13864
- IE as getTodayDate,
13865
- mE as getUpcomingAppointments,
13866
- _E as getUpcomingAppointmentsPage,
13874
+ x_ as getTasks,
13875
+ C_ as getTemplates,
13876
+ kE as getTimeInMinutes,
13877
+ $E as getTodayDate,
13878
+ gE as getUpcomingAppointments,
13879
+ vE as getUpcomingAppointmentsPage,
13867
13880
  cs as getUserLoginLocation,
13868
13881
  Zr as getUserPreferredLocale,
13869
- hb as getVaccinations,
13870
- Aw as getValueType,
13871
- N_ as getVisibleModules,
13872
- uE as getVisitTypes,
13882
+ mb as getVaccinations,
13883
+ Nw as getValueType,
13884
+ P_ as getVisibleModules,
13885
+ lE as getVisitTypes,
13873
13886
  cy as getVisits,
13874
- u_ as getVitalFlowSheetData,
13887
+ l_ as getVitalFlowSheetData,
13875
13888
  Rw as groupByDate,
13876
- e_ as hasPrivilege,
13877
- gw as initAppI18n,
13878
- Xb as initializeAuditListener,
13879
- I_ as invokeCDSSRule,
13880
- sE as isBooleanFormat,
13881
- oE as isConceptFormat,
13882
- iE as isDateFormat,
13883
- aE as isNumberFormat,
13884
- vw as isStringEmpty,
13885
- cE as isTextFormat,
13889
+ t_ as hasPrivilege,
13890
+ yw as initAppI18n,
13891
+ Zb as initializeAuditListener,
13892
+ $_ as invokeCDSSRule,
13893
+ oE as isBooleanFormat,
13894
+ aE as isConceptFormat,
13895
+ cE as isDateFormat,
13896
+ iE as isNumberFormat,
13897
+ Tw as isStringEmpty,
13898
+ uE as isTextFormat,
13886
13899
  wy as logAuditEvent,
13887
- Lw as logout,
13888
- HE as mapAllergyToInputEntry,
13889
- ib as markConditionAsInactive,
13890
- mw as normalizeTranslationKey,
13891
- kE as notificationService,
13900
+ xw as logout,
13901
+ BE as mapAllergyToInputEntry,
13902
+ cb as markConditionAsInactive,
13903
+ gw as normalizeTranslationKey,
13904
+ ME as notificationService,
13892
13905
  Xl as parseQueryParams,
13893
- hw as patch,
13906
+ mw as patch,
13894
13907
  ve as post,
13895
13908
  is as put,
13896
- ww as refreshQueries,
13897
- C_ as renderAsHtml,
13898
- Wb as resetEncounterSession,
13899
- Pw as resolveComboBoxItems,
13900
- zb as resolveEncounterMatchDecision,
13901
- xw as saveUserLocation,
13902
- hE as searchAppointmentsByAttribute,
13903
- qE as searchConceptByName,
13904
- ME as searchConcepts,
13909
+ Ew as refreshQueries,
13910
+ L_ as renderAsHtml,
13911
+ Jb as resetEncounterSession,
13912
+ Iw as resolveComboBoxItems,
13913
+ Yb as resolveEncounterMatchDecision,
13914
+ kw as saveUserLocation,
13915
+ mE as searchAppointmentsByAttribute,
13916
+ FE as searchConceptByName,
13917
+ UE as searchConcepts,
13905
13918
  Kn as searchEncounters,
13906
13919
  Lr as searchFHIRConcepts,
13907
13920
  kh as searchFHIRConceptsByName,
13908
- pb as searchMedications,
13909
- Hw as searchPatientByCustomAttribute,
13910
- Vw as searchPatientByNameOrId,
13911
- _w as setCookie,
13912
- Gb as setEncounterSessionDecision,
13913
- Kb as setEncounterSessionLoading,
13914
- Vb as shouldEnableEncounterFilter,
13915
- LE as sortByDate,
13921
+ hb as searchMedications,
13922
+ Bw as searchPatientByCustomAttribute,
13923
+ Hw as searchPatientByNameOrId,
13924
+ vw as setCookie,
13925
+ Kb as setEncounterSessionDecision,
13926
+ Wb as setEncounterSessionLoading,
13927
+ Hb as shouldEnableEncounterFilter,
13928
+ xE as sortByDate,
13916
13929
  jy as sortByOrder,
13917
13930
  py as subscribeEncounterSession,
13918
- a_ as transformContainerObservationsToForm2Observations,
13919
- s_ as transformFormDataToObservations,
13920
- o_ as transformObservationsToFormData,
13921
- yE as updateAppointmentStatus,
13922
- Tb as updateDiagnosticReportBundle,
13923
- jb as updateFhirEncounter,
13924
- Jw as updateFhirPatient,
13925
- Gw as updatePatient,
13926
- p_ as updateProgramState,
13927
- kw as updateSessionLocation,
13928
- A_ as uploadDocument,
13929
- b_ as useCDSSCheckListener,
13930
- __ as useCDSSResultsListener,
13931
- yw as useCamera,
13932
- Jb as useEncounterSessionStore,
13933
- y_ as useSubscribeConsultationSaved,
13934
- k_ as useTranslation
13931
+ i_ as transformContainerObservationsToForm2Observations,
13932
+ o_ as transformFormDataToObservations,
13933
+ a_ as transformObservationsToFormData,
13934
+ wE as updateAppointmentStatus,
13935
+ Sb as updateDiagnosticReportBundle,
13936
+ Vb as updateFhirEncounter,
13937
+ Qw as updateFhirPatient,
13938
+ Kw as updatePatient,
13939
+ h_ as updateProgramState,
13940
+ Mw as updateSessionLocation,
13941
+ N_ as uploadDocument,
13942
+ __ as useCDSSCheckListener,
13943
+ v_ as useCDSSResultsListener,
13944
+ ww as useCamera,
13945
+ Qb as useEncounterSessionStore,
13946
+ w_ as useSubscribeConsultationSaved,
13947
+ U_ as useTranslation
13935
13948
  };