@feedmepos/mf-hrm-portal 2.2.2-dev.2 → 2.2.2

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.
Files changed (41) hide show
  1. package/dist/{ApprovalCodeList-BvZs3tn-.js → ApprovalCodeList-Dpg-lwZA.js} +5 -5
  2. package/dist/AuditLogList-B8lU5FU1.js +1149 -0
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C-03FIfv.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Di-1ZwEW.js} +2 -2
  4. package/dist/{EmployeeList-BDTcK6GD.js → EmployeeList-ByeniR1c.js} +9 -10
  5. package/dist/{GrantUserList-BOxUsFcl.js → GrantUserList-D0YIdpMH.js} +6 -6
  6. package/dist/{Main-Csma2yIU.js → Main-Bg0Najd8.js} +8 -8
  7. package/dist/{Main-laHdN12w.js → Main-C9-EztWV.js} +11 -11
  8. package/dist/{Main-Da_g7CTz.js → Main-CTsTrR0m.js} +5 -5
  9. package/dist/{PermissionSetList-CpK7M-eA.js → PermissionSetList-CqVP3iB8.js} +7 -7
  10. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-D91dsivb.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXNhJDfA.js} +672 -672
  11. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-Z-DH7ouY.js} +1 -1
  12. package/dist/{RoleList-CnuSsHaU.js → RoleList-CQuV9O_f.js} +9 -9
  13. package/dist/{TeamMemberList-mID3B9gL.js → TeamMemberList-DNitiMN5.js} +24 -25
  14. package/dist/{TimesheetList-B1Vq7RMs.js → TimesheetList-DYJsjODe.js} +7 -7
  15. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-BXVYGX0n.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DWKJIq76.js} +3 -3
  16. package/dist/{app-CDhU3geD.js → app-BJKd6Faz.js} +509 -805
  17. package/dist/app.js +1 -1
  18. package/dist/{approval-code-jIjkeVEb.js → approval-code-BRClD2HN.js} +1 -1
  19. package/dist/{dayjs.min-CuJv-tp-.js → dayjs.min-D8ClaZcZ.js} +1 -1
  20. package/dist/{employee-RyVvi0m5.js → employee-C9VVckRM.js} +4 -4
  21. package/dist/{grant-user-SNiDV22U.js → grant-user-Dhi3ilC_.js} +1 -1
  22. package/dist/{iteration-3WrCeF_5.js → iteration-CMXHdaKL.js} +1 -1
  23. package/dist/{lodash-Cm-71byT.js → lodash-0-Y1xSyQ.js} +1 -1
  24. package/dist/{restaurant-BTpBmfBV.js → restaurant-DiYb0pCm.js} +2 -2
  25. package/dist/{role-CHQOtd0E.js → role-B-Y4JezP.js} +2 -2
  26. package/dist/{rule--e-16FwK.js → rule-raGIIqlH.js} +3 -3
  27. package/dist/src/api/audit-log/index.d.ts +0 -6
  28. package/dist/src/types/audit-log.d.ts +1 -1
  29. package/dist/src/views/audit-log/locales/index.d.ts +0 -296
  30. package/dist/style.css +1 -1
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/dist/{useAppStore-DCwd8GWN.js → useAppStore-BGhlB1_1.js} +1 -1
  33. package/dist/useDebounce-CWb5QR9G.js +28 -0
  34. package/dist/{useLoading-CXzTpIVv.js → useLoading-CvgqVDbF.js} +1 -1
  35. package/dist/{useReportPermissions-Br78ni1L.js → useReportPermissions-C5_EivtU.js} +3 -3
  36. package/package.json +1 -1
  37. package/dist/AuditLogList-Bv4fkVpI.js +0 -1611
  38. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
  39. package/dist/src/views/audit-log/event-line.d.ts +0 -13
  40. package/dist/src/views/audit-log/snapshot-diff.d.ts +0 -11
  41. package/dist/useDebounce-B8ZPVS5C.js +0 -15
@@ -1,7 +1,7 @@
1
1
  var Rn = Object.defineProperty;
2
2
  var Xn = (e, t, s) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
3
  var xt = (e, t, s) => Xn(e, typeof t != "symbol" ? t + "" : t, s);
4
- import { isRef as Qn, ref as Qe, shallowRef as kn, watchEffect as ir, computed as Os, h as zs, defineComponent as it, createBlock as zt, renderSlot as cr, createCommentVNode as Tn, unref as ze, openBlock as ct, createElementBlock as lr, createElementVNode as Ue, toDisplayString as Ws, watch as Sn, nextTick as Nn, onMounted as ur, onBeforeUnmount as Zn, normalizeStyle as Un, resolveComponent as Fs, withCtx as zn, createVNode as Wn, defineAsyncComponent as Ln, readonly as vs } from "vue";
4
+ import { isRef as Qn, ref as Qe, shallowRef as kn, watchEffect as ir, computed as Os, h as Us, defineComponent as it, createBlock as Ut, renderSlot as cr, createCommentVNode as Tn, unref as Ue, openBlock as ct, createElementBlock as lr, createElementVNode as ze, toDisplayString as Ws, watch as Nn, nextTick as Sn, onMounted as ur, onBeforeUnmount as Zn, normalizeStyle as zn, resolveComponent as Fs, withCtx as Un, createVNode as Wn, defineAsyncComponent as Ln, readonly as vs } from "vue";
5
5
  import { useBreakpoints as Kn } from "@feedmepos/ui-library";
6
6
  import { useRoute as Jn, useRouter as _n } from "vue-router";
7
7
  import { useCoreStore as Ar, useI18n as dr } from "@feedmepos/mf-common";
@@ -21,7 +21,7 @@ const v = {
21
21
  miniProgram: "Mini Program",
22
22
  media: "Media"
23
23
  }, $n = "access-denied";
24
- var N;
24
+ var S;
25
25
  (function(e) {
26
26
  function t(n) {
27
27
  }
@@ -55,8 +55,8 @@ var N;
55
55
  return n.map((c) => typeof c == "string" ? `'${c}'` : c).join(a);
56
56
  }
57
57
  e.joinValues = r;
58
- })(N || (N = {}));
59
- const x = N.arrayToEnum([
58
+ })(S || (S = {}));
59
+ const x = S.arrayToEnum([
60
60
  "string",
61
61
  "nan",
62
62
  "number",
@@ -96,7 +96,7 @@ const x = N.arrayToEnum([
96
96
  default:
97
97
  return x.unknown;
98
98
  }
99
- }, C = N.arrayToEnum([
99
+ }, C = S.arrayToEnum([
100
100
  "invalid_type",
101
101
  "invalid_literal",
102
102
  "custom",
@@ -169,7 +169,7 @@ class qe extends Error {
169
169
  }
170
170
  }
171
171
  qe.create = (e) => new qe(e);
172
- const wt = (e, t) => {
172
+ const Bt = (e, t) => {
173
173
  let s;
174
174
  switch (e.code) {
175
175
  case C.invalid_type:
@@ -179,16 +179,16 @@ const wt = (e, t) => {
179
179
  s = `Invalid literal value, expected ${JSON.stringify(e.expected, qs)}`;
180
180
  break;
181
181
  case C.unrecognized_keys:
182
- s = `Unrecognized key(s) in object: ${N.joinValues(e.keys, ", ")}`;
182
+ s = `Unrecognized key(s) in object: ${S.joinValues(e.keys, ", ")}`;
183
183
  break;
184
184
  case C.invalid_union:
185
185
  s = "Invalid input";
186
186
  break;
187
187
  case C.invalid_union_discriminator:
188
- s = `Invalid discriminator value. Expected ${N.joinValues(e.options)}`;
188
+ s = `Invalid discriminator value. Expected ${S.joinValues(e.options)}`;
189
189
  break;
190
190
  case C.invalid_enum_value:
191
- s = `Invalid enum value. Expected ${N.joinValues(e.options)}, received '${e.received}'`;
191
+ s = `Invalid enum value. Expected ${S.joinValues(e.options)}, received '${e.received}'`;
192
192
  break;
193
193
  case C.invalid_arguments:
194
194
  s = "Invalid function arguments";
@@ -200,7 +200,7 @@ const wt = (e, t) => {
200
200
  s = "Invalid date";
201
201
  break;
202
202
  case C.invalid_string:
203
- typeof e.validation == "object" ? "startsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.startsWith}"` : "endsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.endsWith}"` : N.assertNever(e.validation) : e.validation !== "regex" ? s = `Invalid ${e.validation}` : s = "Invalid";
203
+ typeof e.validation == "object" ? "startsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.startsWith}"` : "endsWith" in e.validation ? s = `Invalid input: must start with "${e.validation.endsWith}"` : S.assertNever(e.validation) : e.validation !== "regex" ? s = `Invalid ${e.validation}` : s = "Invalid";
204
204
  break;
205
205
  case C.too_small:
206
206
  e.type === "array" ? s = `Array must contain ${e.inclusive ? "at least" : "more than"} ${e.minimum} element(s)` : e.type === "string" ? s = `String must contain ${e.inclusive ? "at least" : "over"} ${e.minimum} character(s)` : e.type === "number" ? s = `Number must be greater than ${e.inclusive ? "or equal to " : ""}${e.minimum}` : e.type === "date" ? s = `Date must be greater than ${e.inclusive ? "or equal to " : ""}${new Date(e.minimum)}` : s = "Invalid input";
@@ -218,11 +218,11 @@ const wt = (e, t) => {
218
218
  s = `Number must be a multiple of ${e.multipleOf}`;
219
219
  break;
220
220
  default:
221
- s = t.defaultError, N.assertNever(e);
221
+ s = t.defaultError, S.assertNever(e);
222
222
  }
223
223
  return { message: s };
224
224
  };
225
- let gr = wt;
225
+ let gr = Bt;
226
226
  function ta(e) {
227
227
  gr = e;
228
228
  }
@@ -244,7 +244,7 @@ const Ot = (e) => {
244
244
  message: n.message || l
245
245
  };
246
246
  }, sa = [];
247
- function P(e, t) {
247
+ function Y(e, t) {
248
248
  const s = Ot({
249
249
  issueData: t,
250
250
  data: e.data,
@@ -253,7 +253,7 @@ function P(e, t) {
253
253
  e.common.contextualErrorMap,
254
254
  e.schemaErrorMap,
255
255
  Vt(),
256
- wt
256
+ Bt
257
257
  ].filter((r) => !!r)
258
258
  });
259
259
  e.common.issues.push(s);
@@ -299,12 +299,12 @@ class ae {
299
299
  }
300
300
  const H = Object.freeze({
301
301
  status: "aborted"
302
- }), ra = (e) => ({ status: "dirty", value: e }), oe = (e) => ({ status: "valid", value: e }), ws = (e) => e.status === "aborted", Bs = (e) => e.status === "dirty", Ft = (e) => e.status === "valid", Ms = (e) => typeof Promise !== void 0 && e instanceof Promise, qs = (e, t) => typeof t == "bigint" ? t.toString() : t;
302
+ }), ra = (e) => ({ status: "dirty", value: e }), oe = (e) => ({ status: "valid", value: e }), Bs = (e) => e.status === "aborted", ws = (e) => e.status === "dirty", Ft = (e) => e.status === "valid", Ms = (e) => typeof Promise !== void 0 && e instanceof Promise, qs = (e, t) => typeof t == "bigint" ? t.toString() : t;
303
303
  var T;
304
304
  (function(e) {
305
305
  e.errToObj = (t) => typeof t == "string" ? { message: t } : t || {}, e.toString = (t) => typeof t == "string" ? t : t == null ? void 0 : t.message;
306
306
  })(T || (T = {}));
307
- class Pe {
307
+ class Ye {
308
308
  constructor(t, s, r, n) {
309
309
  this.parent = t, this.data = s, this._path = r, this._key = n;
310
310
  }
@@ -443,13 +443,13 @@ class X {
443
443
  return this.optional().nullable();
444
444
  }
445
445
  array() {
446
- return Ye.create(this);
446
+ return Pe.create(this);
447
447
  }
448
448
  promise() {
449
449
  return ot.create(this);
450
450
  }
451
451
  or(t) {
452
- return Bt.create([this, t]);
452
+ return wt.create([this, t]);
453
453
  }
454
454
  and(t) {
455
455
  return Mt.create(this, t);
@@ -498,7 +498,7 @@ class ke extends X {
498
498
  _parse(t) {
499
499
  if (this._getType(t) !== x.string) {
500
500
  const a = this._getOrReturnCtx(t);
501
- return P(
501
+ return Y(
502
502
  a,
503
503
  {
504
504
  code: C.invalid_type,
@@ -512,7 +512,7 @@ class ke extends X {
512
512
  let n;
513
513
  for (const a of this._def.checks)
514
514
  if (a.kind === "min")
515
- t.data.length < a.value && (n = this._getOrReturnCtx(t, n), P(n, {
515
+ t.data.length < a.value && (n = this._getOrReturnCtx(t, n), Y(n, {
516
516
  code: C.too_small,
517
517
  minimum: a.value,
518
518
  type: "string",
@@ -520,7 +520,7 @@ class ke extends X {
520
520
  message: a.message
521
521
  }), r.dirty());
522
522
  else if (a.kind === "max")
523
- t.data.length > a.value && (n = this._getOrReturnCtx(t, n), P(n, {
523
+ t.data.length > a.value && (n = this._getOrReturnCtx(t, n), Y(n, {
524
524
  code: C.too_big,
525
525
  maximum: a.value,
526
526
  type: "string",
@@ -528,19 +528,19 @@ class ke extends X {
528
528
  message: a.message
529
529
  }), r.dirty());
530
530
  else if (a.kind === "email")
531
- oa.test(t.data) || (n = this._getOrReturnCtx(t, n), P(n, {
531
+ oa.test(t.data) || (n = this._getOrReturnCtx(t, n), Y(n, {
532
532
  validation: "email",
533
533
  code: C.invalid_string,
534
534
  message: a.message
535
535
  }), r.dirty());
536
536
  else if (a.kind === "uuid")
537
- aa.test(t.data) || (n = this._getOrReturnCtx(t, n), P(n, {
537
+ aa.test(t.data) || (n = this._getOrReturnCtx(t, n), Y(n, {
538
538
  validation: "uuid",
539
539
  code: C.invalid_string,
540
540
  message: a.message
541
541
  }), r.dirty());
542
542
  else if (a.kind === "cuid")
543
- na.test(t.data) || (n = this._getOrReturnCtx(t, n), P(n, {
543
+ na.test(t.data) || (n = this._getOrReturnCtx(t, n), Y(n, {
544
544
  validation: "cuid",
545
545
  code: C.invalid_string,
546
546
  message: a.message
@@ -549,25 +549,25 @@ class ke extends X {
549
549
  try {
550
550
  new URL(t.data);
551
551
  } catch {
552
- n = this._getOrReturnCtx(t, n), P(n, {
552
+ n = this._getOrReturnCtx(t, n), Y(n, {
553
553
  validation: "url",
554
554
  code: C.invalid_string,
555
555
  message: a.message
556
556
  }), r.dirty();
557
557
  }
558
- else a.kind === "regex" ? (a.regex.lastIndex = 0, a.regex.test(t.data) || (n = this._getOrReturnCtx(t, n), P(n, {
558
+ else a.kind === "regex" ? (a.regex.lastIndex = 0, a.regex.test(t.data) || (n = this._getOrReturnCtx(t, n), Y(n, {
559
559
  validation: "regex",
560
560
  code: C.invalid_string,
561
561
  message: a.message
562
- }), r.dirty())) : a.kind === "trim" ? t.data = t.data.trim() : a.kind === "startsWith" ? t.data.startsWith(a.value) || (n = this._getOrReturnCtx(t, n), P(n, {
562
+ }), r.dirty())) : a.kind === "trim" ? t.data = t.data.trim() : a.kind === "startsWith" ? t.data.startsWith(a.value) || (n = this._getOrReturnCtx(t, n), Y(n, {
563
563
  code: C.invalid_string,
564
564
  validation: { startsWith: a.value },
565
565
  message: a.message
566
- }), r.dirty()) : a.kind === "endsWith" ? t.data.endsWith(a.value) || (n = this._getOrReturnCtx(t, n), P(n, {
566
+ }), r.dirty()) : a.kind === "endsWith" ? t.data.endsWith(a.value) || (n = this._getOrReturnCtx(t, n), Y(n, {
567
567
  code: C.invalid_string,
568
568
  validation: { endsWith: a.value },
569
569
  message: a.message
570
- }), r.dirty()) : N.assertNever(a);
570
+ }), r.dirty()) : S.assertNever(a);
571
571
  return { status: r.value, value: t.data };
572
572
  }
573
573
  _addCheck(t) {
@@ -667,7 +667,7 @@ class We extends X {
667
667
  _parse(t) {
668
668
  if (this._getType(t) !== x.number) {
669
669
  const a = this._getOrReturnCtx(t);
670
- return P(a, {
670
+ return Y(a, {
671
671
  code: C.invalid_type,
672
672
  expected: x.number,
673
673
  received: a.parsedType
@@ -676,28 +676,28 @@ class We extends X {
676
676
  let r;
677
677
  const n = new ae();
678
678
  for (const a of this._def.checks)
679
- a.kind === "int" ? N.isInteger(t.data) || (r = this._getOrReturnCtx(t, r), P(r, {
679
+ a.kind === "int" ? S.isInteger(t.data) || (r = this._getOrReturnCtx(t, r), Y(r, {
680
680
  code: C.invalid_type,
681
681
  expected: "integer",
682
682
  received: "float",
683
683
  message: a.message
684
- }), n.dirty()) : a.kind === "min" ? (a.inclusive ? t.data < a.value : t.data <= a.value) && (r = this._getOrReturnCtx(t, r), P(r, {
684
+ }), n.dirty()) : a.kind === "min" ? (a.inclusive ? t.data < a.value : t.data <= a.value) && (r = this._getOrReturnCtx(t, r), Y(r, {
685
685
  code: C.too_small,
686
686
  minimum: a.value,
687
687
  type: "number",
688
688
  inclusive: a.inclusive,
689
689
  message: a.message
690
- }), n.dirty()) : a.kind === "max" ? (a.inclusive ? t.data > a.value : t.data >= a.value) && (r = this._getOrReturnCtx(t, r), P(r, {
690
+ }), n.dirty()) : a.kind === "max" ? (a.inclusive ? t.data > a.value : t.data >= a.value) && (r = this._getOrReturnCtx(t, r), Y(r, {
691
691
  code: C.too_big,
692
692
  maximum: a.value,
693
693
  type: "number",
694
694
  inclusive: a.inclusive,
695
695
  message: a.message
696
- }), n.dirty()) : a.kind === "multipleOf" ? ia(t.data, a.value) !== 0 && (r = this._getOrReturnCtx(t, r), P(r, {
696
+ }), n.dirty()) : a.kind === "multipleOf" ? ia(t.data, a.value) !== 0 && (r = this._getOrReturnCtx(t, r), Y(r, {
697
697
  code: C.not_multiple_of,
698
698
  multipleOf: a.value,
699
699
  message: a.message
700
- }), n.dirty()) : N.assertNever(a);
700
+ }), n.dirty()) : S.assertNever(a);
701
701
  return { status: n.value, value: t.data };
702
702
  }
703
703
  gte(t, s) {
@@ -802,7 +802,7 @@ class qt extends X {
802
802
  _parse(t) {
803
803
  if (this._getType(t) !== x.bigint) {
804
804
  const r = this._getOrReturnCtx(t);
805
- return P(r, {
805
+ return Y(r, {
806
806
  code: C.invalid_type,
807
807
  expected: x.bigint,
808
808
  received: r.parsedType
@@ -819,7 +819,7 @@ class It extends X {
819
819
  _parse(t) {
820
820
  if (this._getType(t) !== x.boolean) {
821
821
  const r = this._getOrReturnCtx(t);
822
- return P(r, {
822
+ return Y(r, {
823
823
  code: C.invalid_type,
824
824
  expected: x.boolean,
825
825
  received: r.parsedType
@@ -836,7 +836,7 @@ class nt extends X {
836
836
  _parse(t) {
837
837
  if (this._getType(t) !== x.date) {
838
838
  const a = this._getOrReturnCtx(t);
839
- return P(a, {
839
+ return Y(a, {
840
840
  code: C.invalid_type,
841
841
  expected: x.date,
842
842
  received: a.parsedType
@@ -844,26 +844,26 @@ class nt extends X {
844
844
  }
845
845
  if (isNaN(t.data.getTime())) {
846
846
  const a = this._getOrReturnCtx(t);
847
- return P(a, {
847
+ return Y(a, {
848
848
  code: C.invalid_date
849
849
  }), H;
850
850
  }
851
851
  const r = new ae();
852
852
  let n;
853
853
  for (const a of this._def.checks)
854
- a.kind === "min" ? t.data.getTime() < a.value && (n = this._getOrReturnCtx(t, n), P(n, {
854
+ a.kind === "min" ? t.data.getTime() < a.value && (n = this._getOrReturnCtx(t, n), Y(n, {
855
855
  code: C.too_small,
856
856
  message: a.message,
857
857
  inclusive: !0,
858
858
  minimum: a.value,
859
859
  type: "date"
860
- }), r.dirty()) : a.kind === "max" ? t.data.getTime() > a.value && (n = this._getOrReturnCtx(t, n), P(n, {
860
+ }), r.dirty()) : a.kind === "max" ? t.data.getTime() > a.value && (n = this._getOrReturnCtx(t, n), Y(n, {
861
861
  code: C.too_big,
862
862
  message: a.message,
863
863
  inclusive: !0,
864
864
  maximum: a.value,
865
865
  type: "date"
866
- }), r.dirty()) : N.assertNever(a);
866
+ }), r.dirty()) : S.assertNever(a);
867
867
  return {
868
868
  status: r.value,
869
869
  value: new Date(t.data.getTime())
@@ -911,7 +911,7 @@ class Ht extends X {
911
911
  _parse(t) {
912
912
  if (this._getType(t) !== x.undefined) {
913
913
  const r = this._getOrReturnCtx(t);
914
- return P(r, {
914
+ return Y(r, {
915
915
  code: C.invalid_type,
916
916
  expected: x.undefined,
917
917
  received: r.parsedType
@@ -928,7 +928,7 @@ class Rt extends X {
928
928
  _parse(t) {
929
929
  if (this._getType(t) !== x.null) {
930
930
  const r = this._getOrReturnCtx(t);
931
- return P(r, {
931
+ return Y(r, {
932
932
  code: C.invalid_type,
933
933
  expected: x.null,
934
934
  received: r.parsedType
@@ -968,7 +968,7 @@ Xe.create = (e) => new Xe({
968
968
  class Te extends X {
969
969
  _parse(t) {
970
970
  const s = this._getOrReturnCtx(t);
971
- return P(s, {
971
+ return Y(s, {
972
972
  code: C.invalid_type,
973
973
  expected: x.never,
974
974
  received: s.parsedType
@@ -983,7 +983,7 @@ class Xt extends X {
983
983
  _parse(t) {
984
984
  if (this._getType(t) !== x.undefined) {
985
985
  const r = this._getOrReturnCtx(t);
986
- return P(r, {
986
+ return Y(r, {
987
987
  code: C.invalid_type,
988
988
  expected: x.void,
989
989
  received: r.parsedType
@@ -996,43 +996,43 @@ Xt.create = (e) => new Xt({
996
996
  typeName: I.ZodVoid,
997
997
  ...Q(e)
998
998
  });
999
- class Ye extends X {
999
+ class Pe extends X {
1000
1000
  _parse(t) {
1001
1001
  const { ctx: s, status: r } = this._processInputParams(t), n = this._def;
1002
1002
  if (s.parsedType !== x.array)
1003
- return P(s, {
1003
+ return Y(s, {
1004
1004
  code: C.invalid_type,
1005
1005
  expected: x.array,
1006
1006
  received: s.parsedType
1007
1007
  }), H;
1008
- if (n.minLength !== null && s.data.length < n.minLength.value && (P(s, {
1008
+ if (n.minLength !== null && s.data.length < n.minLength.value && (Y(s, {
1009
1009
  code: C.too_small,
1010
1010
  minimum: n.minLength.value,
1011
1011
  type: "array",
1012
1012
  inclusive: !0,
1013
1013
  message: n.minLength.message
1014
- }), r.dirty()), n.maxLength !== null && s.data.length > n.maxLength.value && (P(s, {
1014
+ }), r.dirty()), n.maxLength !== null && s.data.length > n.maxLength.value && (Y(s, {
1015
1015
  code: C.too_big,
1016
1016
  maximum: n.maxLength.value,
1017
1017
  type: "array",
1018
1018
  inclusive: !0,
1019
1019
  message: n.maxLength.message
1020
1020
  }), r.dirty()), s.common.async)
1021
- return Promise.all(s.data.map((c, l) => n.type._parseAsync(new Pe(s, c, s.path, l)))).then((c) => ae.mergeArray(r, c));
1022
- const a = s.data.map((c, l) => n.type._parseSync(new Pe(s, c, s.path, l)));
1021
+ return Promise.all(s.data.map((c, l) => n.type._parseAsync(new Ye(s, c, s.path, l)))).then((c) => ae.mergeArray(r, c));
1022
+ const a = s.data.map((c, l) => n.type._parseSync(new Ye(s, c, s.path, l)));
1023
1023
  return ae.mergeArray(r, a);
1024
1024
  }
1025
1025
  get element() {
1026
1026
  return this._def.type;
1027
1027
  }
1028
1028
  min(t, s) {
1029
- return new Ye({
1029
+ return new Pe({
1030
1030
  ...this._def,
1031
1031
  minLength: { value: t, message: T.toString(s) }
1032
1032
  });
1033
1033
  }
1034
1034
  max(t, s) {
1035
- return new Ye({
1035
+ return new Pe({
1036
1036
  ...this._def,
1037
1037
  maxLength: { value: t, message: T.toString(s) }
1038
1038
  });
@@ -1044,7 +1044,7 @@ class Ye extends X {
1044
1044
  return this.min(1, t);
1045
1045
  }
1046
1046
  }
1047
- Ye.create = (e, t) => new Ye({
1047
+ Pe.create = (e, t) => new Pe({
1048
1048
  type: e,
1049
1049
  minLength: null,
1050
1050
  maxLength: null,
@@ -1076,7 +1076,7 @@ function rt(e) {
1076
1076
  ...e._def,
1077
1077
  shape: () => t
1078
1078
  });
1079
- } else return e instanceof Ye ? Ye.create(rt(e.element)) : e instanceof Ee ? Ee.create(rt(e.unwrap())) : e instanceof Je ? Je.create(rt(e.unwrap())) : e instanceof Ge ? Ge.create(e.items.map((t) => rt(t))) : e;
1079
+ } else return e instanceof Pe ? Pe.create(rt(e.element)) : e instanceof Ee ? Ee.create(rt(e.unwrap())) : e instanceof Je ? Je.create(rt(e.unwrap())) : e instanceof Ge ? Ge.create(e.items.map((t) => rt(t))) : e;
1080
1080
  }
1081
1081
  class J extends X {
1082
1082
  constructor() {
@@ -1085,13 +1085,13 @@ class J extends X {
1085
1085
  _getCached() {
1086
1086
  if (this._cached !== null)
1087
1087
  return this._cached;
1088
- const t = this._def.shape(), s = N.objectKeys(t);
1088
+ const t = this._def.shape(), s = S.objectKeys(t);
1089
1089
  return this._cached = { shape: t, keys: s };
1090
1090
  }
1091
1091
  _parse(t) {
1092
1092
  if (this._getType(t) !== x.object) {
1093
1093
  const h = this._getOrReturnCtx(t);
1094
- return P(h, {
1094
+ return Y(h, {
1095
1095
  code: C.invalid_type,
1096
1096
  expected: x.object,
1097
1097
  received: h.parsedType
@@ -1102,49 +1102,49 @@ class J extends X {
1102
1102
  c.includes(h) || l.push(h);
1103
1103
  const y = [];
1104
1104
  for (const h of c) {
1105
- const w = a[h], O = n.data[h];
1105
+ const B = a[h], O = n.data[h];
1106
1106
  y.push({
1107
1107
  key: { status: "valid", value: h },
1108
- value: w._parse(new Pe(n, O, n.path, h)),
1108
+ value: B._parse(new Ye(n, O, n.path, h)),
1109
1109
  alwaysSet: h in n.data
1110
1110
  });
1111
1111
  }
1112
1112
  if (this._def.catchall instanceof Te) {
1113
1113
  const h = this._def.unknownKeys;
1114
1114
  if (h === "passthrough")
1115
- for (const w of l)
1115
+ for (const B of l)
1116
1116
  y.push({
1117
- key: { status: "valid", value: w },
1118
- value: { status: "valid", value: n.data[w] }
1117
+ key: { status: "valid", value: B },
1118
+ value: { status: "valid", value: n.data[B] }
1119
1119
  });
1120
1120
  else if (h === "strict")
1121
- l.length > 0 && (P(n, {
1121
+ l.length > 0 && (Y(n, {
1122
1122
  code: C.unrecognized_keys,
1123
1123
  keys: l
1124
1124
  }), r.dirty());
1125
1125
  else if (h !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
1126
1126
  } else {
1127
1127
  const h = this._def.catchall;
1128
- for (const w of l) {
1129
- const O = n.data[w];
1128
+ for (const B of l) {
1129
+ const O = n.data[B];
1130
1130
  y.push({
1131
- key: { status: "valid", value: w },
1131
+ key: { status: "valid", value: B },
1132
1132
  value: h._parse(
1133
- new Pe(n, O, n.path, w)
1133
+ new Ye(n, O, n.path, B)
1134
1134
  //, ctx.child(key), value, getParsedType(value)
1135
1135
  ),
1136
- alwaysSet: w in n.data
1136
+ alwaysSet: B in n.data
1137
1137
  });
1138
1138
  }
1139
1139
  }
1140
1140
  return n.common.async ? Promise.resolve().then(async () => {
1141
1141
  const h = [];
1142
- for (const w of y) {
1143
- const O = await w.key;
1142
+ for (const B of y) {
1143
+ const O = await B.key;
1144
1144
  h.push({
1145
1145
  key: O,
1146
- value: await w.value,
1147
- alwaysSet: w.alwaysSet
1146
+ value: await B.value,
1147
+ alwaysSet: B.alwaysSet
1148
1148
  });
1149
1149
  }
1150
1150
  return h;
@@ -1206,7 +1206,7 @@ class J extends X {
1206
1206
  }
1207
1207
  pick(t) {
1208
1208
  const s = {};
1209
- return N.objectKeys(t).map((r) => {
1209
+ return S.objectKeys(t).map((r) => {
1210
1210
  this.shape[r] && (s[r] = this.shape[r]);
1211
1211
  }), new J({
1212
1212
  ...this._def,
@@ -1215,8 +1215,8 @@ class J extends X {
1215
1215
  }
1216
1216
  omit(t) {
1217
1217
  const s = {};
1218
- return N.objectKeys(this.shape).map((r) => {
1219
- N.objectKeys(t).indexOf(r) === -1 && (s[r] = this.shape[r]);
1218
+ return S.objectKeys(this.shape).map((r) => {
1219
+ S.objectKeys(t).indexOf(r) === -1 && (s[r] = this.shape[r]);
1220
1220
  }), new J({
1221
1221
  ...this._def,
1222
1222
  shape: () => s
@@ -1228,8 +1228,8 @@ class J extends X {
1228
1228
  partial(t) {
1229
1229
  const s = {};
1230
1230
  if (t)
1231
- return N.objectKeys(this.shape).map((r) => {
1232
- N.objectKeys(t).indexOf(r) === -1 ? s[r] = this.shape[r] : s[r] = this.shape[r].optional();
1231
+ return S.objectKeys(this.shape).map((r) => {
1232
+ S.objectKeys(t).indexOf(r) === -1 ? s[r] = this.shape[r] : s[r] = this.shape[r].optional();
1233
1233
  }), new J({
1234
1234
  ...this._def,
1235
1235
  shape: () => s
@@ -1257,7 +1257,7 @@ class J extends X {
1257
1257
  });
1258
1258
  }
1259
1259
  keyof() {
1260
- return pr(N.objectKeys(this.shape));
1260
+ return pr(S.objectKeys(this.shape));
1261
1261
  }
1262
1262
  }
1263
1263
  J.create = (e, t) => new J({
@@ -1281,7 +1281,7 @@ J.lazycreate = (e, t) => new J({
1281
1281
  typeName: I.ZodObject,
1282
1282
  ...Q(t)
1283
1283
  });
1284
- class Bt extends X {
1284
+ class wt extends X {
1285
1285
  _parse(t) {
1286
1286
  const { ctx: s } = this._processInputParams(t), r = this._def.options;
1287
1287
  function n(a) {
@@ -1292,7 +1292,7 @@ class Bt extends X {
1292
1292
  if (l.result.status === "dirty")
1293
1293
  return s.common.issues.push(...l.ctx.common.issues), l.result;
1294
1294
  const c = a.map((l) => new qe(l.ctx.common.issues));
1295
- return P(s, {
1295
+ return Y(s, {
1296
1296
  code: C.invalid_union,
1297
1297
  unionErrors: c
1298
1298
  }), H;
@@ -1327,19 +1327,19 @@ class Bt extends X {
1327
1327
  issues: []
1328
1328
  },
1329
1329
  parent: null
1330
- }, w = y._parseSync({
1330
+ }, B = y._parseSync({
1331
1331
  data: s.data,
1332
1332
  path: s.path,
1333
1333
  parent: h
1334
1334
  });
1335
- if (w.status === "valid")
1336
- return w;
1337
- w.status === "dirty" && !a && (a = { result: w, ctx: h }), h.common.issues.length && c.push(h.common.issues);
1335
+ if (B.status === "valid")
1336
+ return B;
1337
+ B.status === "dirty" && !a && (a = { result: B, ctx: h }), h.common.issues.length && c.push(h.common.issues);
1338
1338
  }
1339
1339
  if (a)
1340
1340
  return s.common.issues.push(...a.ctx.common.issues), a.result;
1341
1341
  const l = c.map((y) => new qe(y));
1342
- return P(s, {
1342
+ return Y(s, {
1343
1343
  code: C.invalid_union,
1344
1344
  unionErrors: l
1345
1345
  }), H;
@@ -1349,7 +1349,7 @@ class Bt extends X {
1349
1349
  return this._def.options;
1350
1350
  }
1351
1351
  }
1352
- Bt.create = (e, t) => new Bt({
1352
+ wt.create = (e, t) => new wt({
1353
1353
  options: e,
1354
1354
  typeName: I.ZodUnion,
1355
1355
  ...Q(t)
@@ -1358,7 +1358,7 @@ class Wt extends X {
1358
1358
  _parse(t) {
1359
1359
  const { ctx: s } = this._processInputParams(t);
1360
1360
  if (s.parsedType !== x.object)
1361
- return P(s, {
1361
+ return Y(s, {
1362
1362
  code: C.invalid_type,
1363
1363
  expected: x.object,
1364
1364
  received: s.parsedType
@@ -1372,7 +1372,7 @@ class Wt extends X {
1372
1372
  data: s.data,
1373
1373
  path: s.path,
1374
1374
  parent: s
1375
- }) : (P(s, {
1375
+ }) : (Y(s, {
1376
1376
  code: C.invalid_union_discriminator,
1377
1377
  options: this.validDiscriminatorValues,
1378
1378
  path: [r]
@@ -1420,7 +1420,7 @@ function Cs(e, t) {
1420
1420
  if (e === t)
1421
1421
  return { valid: !0, data: e };
1422
1422
  if (s === x.object && r === x.object) {
1423
- const n = N.objectKeys(t), a = N.objectKeys(e).filter((l) => n.indexOf(l) !== -1), c = { ...e, ...t };
1423
+ const n = S.objectKeys(t), a = S.objectKeys(e).filter((l) => n.indexOf(l) !== -1), c = { ...e, ...t };
1424
1424
  for (const l of a) {
1425
1425
  const y = Cs(e[l], t[l]);
1426
1426
  if (!y.valid)
@@ -1444,10 +1444,10 @@ function Cs(e, t) {
1444
1444
  class Mt extends X {
1445
1445
  _parse(t) {
1446
1446
  const { status: s, ctx: r } = this._processInputParams(t), n = (a, c) => {
1447
- if (ws(a) || ws(c))
1447
+ if (Bs(a) || Bs(c))
1448
1448
  return H;
1449
1449
  const l = Cs(a.value, c.value);
1450
- return l.valid ? ((Bs(a) || Bs(c)) && s.dirty(), { status: s.value, value: l.data }) : (P(r, {
1450
+ return l.valid ? ((ws(a) || ws(c)) && s.dirty(), { status: s.value, value: l.data }) : (Y(r, {
1451
1451
  code: C.invalid_intersection_types
1452
1452
  }), H);
1453
1453
  };
@@ -1483,19 +1483,19 @@ class Ge extends X {
1483
1483
  _parse(t) {
1484
1484
  const { status: s, ctx: r } = this._processInputParams(t);
1485
1485
  if (r.parsedType !== x.array)
1486
- return P(r, {
1486
+ return Y(r, {
1487
1487
  code: C.invalid_type,
1488
1488
  expected: x.array,
1489
1489
  received: r.parsedType
1490
1490
  }), H;
1491
1491
  if (r.data.length < this._def.items.length)
1492
- return P(r, {
1492
+ return Y(r, {
1493
1493
  code: C.too_small,
1494
1494
  minimum: this._def.items.length,
1495
1495
  inclusive: !0,
1496
1496
  type: "array"
1497
1497
  }), H;
1498
- !this._def.rest && r.data.length > this._def.items.length && (P(r, {
1498
+ !this._def.rest && r.data.length > this._def.items.length && (Y(r, {
1499
1499
  code: C.too_big,
1500
1500
  maximum: this._def.items.length,
1501
1501
  inclusive: !0,
@@ -1503,7 +1503,7 @@ class Ge extends X {
1503
1503
  }), s.dirty());
1504
1504
  const a = r.data.map((c, l) => {
1505
1505
  const y = this._def.items[l] || this._def.rest;
1506
- return y ? y._parse(new Pe(r, c, r.path, l)) : null;
1506
+ return y ? y._parse(new Ye(r, c, r.path, l)) : null;
1507
1507
  }).filter((c) => !!c);
1508
1508
  return r.common.async ? Promise.all(a).then((c) => ae.mergeArray(s, c)) : ae.mergeArray(s, a);
1509
1509
  }
@@ -1533,7 +1533,7 @@ class Ct extends X {
1533
1533
  _parse(t) {
1534
1534
  const { status: s, ctx: r } = this._processInputParams(t);
1535
1535
  if (r.parsedType !== x.object)
1536
- return P(r, {
1536
+ return Y(r, {
1537
1537
  code: C.invalid_type,
1538
1538
  expected: x.object,
1539
1539
  received: r.parsedType
@@ -1541,8 +1541,8 @@ class Ct extends X {
1541
1541
  const n = [], a = this._def.keyType, c = this._def.valueType;
1542
1542
  for (const l in r.data)
1543
1543
  n.push({
1544
- key: a._parse(new Pe(r, l, r.path, l)),
1545
- value: c._parse(new Pe(r, r.data[l], r.path, l))
1544
+ key: a._parse(new Ye(r, l, r.path, l)),
1545
+ value: c._parse(new Ye(r, r.data[l], r.path, l))
1546
1546
  });
1547
1547
  return r.common.async ? ae.mergeObjectAsync(s, n) : ae.mergeObjectSync(s, n);
1548
1548
  }
@@ -1567,33 +1567,33 @@ class kt extends X {
1567
1567
  _parse(t) {
1568
1568
  const { status: s, ctx: r } = this._processInputParams(t);
1569
1569
  if (r.parsedType !== x.map)
1570
- return P(r, {
1570
+ return Y(r, {
1571
1571
  code: C.invalid_type,
1572
1572
  expected: x.map,
1573
1573
  received: r.parsedType
1574
1574
  }), H;
1575
1575
  const n = this._def.keyType, a = this._def.valueType, c = [...r.data.entries()].map(([l, y], h) => ({
1576
- key: n._parse(new Pe(r, l, r.path, [h, "key"])),
1577
- value: a._parse(new Pe(r, y, r.path, [h, "value"]))
1576
+ key: n._parse(new Ye(r, l, r.path, [h, "key"])),
1577
+ value: a._parse(new Ye(r, y, r.path, [h, "value"]))
1578
1578
  }));
1579
1579
  if (r.common.async) {
1580
1580
  const l = /* @__PURE__ */ new Map();
1581
1581
  return Promise.resolve().then(async () => {
1582
1582
  for (const y of c) {
1583
- const h = await y.key, w = await y.value;
1584
- if (h.status === "aborted" || w.status === "aborted")
1583
+ const h = await y.key, B = await y.value;
1584
+ if (h.status === "aborted" || B.status === "aborted")
1585
1585
  return H;
1586
- (h.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(h.value, w.value);
1586
+ (h.status === "dirty" || B.status === "dirty") && s.dirty(), l.set(h.value, B.value);
1587
1587
  }
1588
1588
  return { status: s.value, value: l };
1589
1589
  });
1590
1590
  } else {
1591
1591
  const l = /* @__PURE__ */ new Map();
1592
1592
  for (const y of c) {
1593
- const h = y.key, w = y.value;
1594
- if (h.status === "aborted" || w.status === "aborted")
1593
+ const h = y.key, B = y.value;
1594
+ if (h.status === "aborted" || B.status === "aborted")
1595
1595
  return H;
1596
- (h.status === "dirty" || w.status === "dirty") && s.dirty(), l.set(h.value, w.value);
1596
+ (h.status === "dirty" || B.status === "dirty") && s.dirty(), l.set(h.value, B.value);
1597
1597
  }
1598
1598
  return { status: s.value, value: l };
1599
1599
  }
@@ -1609,19 +1609,19 @@ class Le extends X {
1609
1609
  _parse(t) {
1610
1610
  const { status: s, ctx: r } = this._processInputParams(t);
1611
1611
  if (r.parsedType !== x.set)
1612
- return P(r, {
1612
+ return Y(r, {
1613
1613
  code: C.invalid_type,
1614
1614
  expected: x.set,
1615
1615
  received: r.parsedType
1616
1616
  }), H;
1617
1617
  const n = this._def;
1618
- n.minSize !== null && r.data.size < n.minSize.value && (P(r, {
1618
+ n.minSize !== null && r.data.size < n.minSize.value && (Y(r, {
1619
1619
  code: C.too_small,
1620
1620
  minimum: n.minSize.value,
1621
1621
  type: "set",
1622
1622
  inclusive: !0,
1623
1623
  message: n.minSize.message
1624
- }), s.dirty()), n.maxSize !== null && r.data.size > n.maxSize.value && (P(r, {
1624
+ }), s.dirty()), n.maxSize !== null && r.data.size > n.maxSize.value && (Y(r, {
1625
1625
  code: C.too_big,
1626
1626
  maximum: n.maxSize.value,
1627
1627
  type: "set",
@@ -1631,14 +1631,14 @@ class Le extends X {
1631
1631
  const a = this._def.valueType;
1632
1632
  function c(y) {
1633
1633
  const h = /* @__PURE__ */ new Set();
1634
- for (const w of y) {
1635
- if (w.status === "aborted")
1634
+ for (const B of y) {
1635
+ if (B.status === "aborted")
1636
1636
  return H;
1637
- w.status === "dirty" && s.dirty(), h.add(w.value);
1637
+ B.status === "dirty" && s.dirty(), h.add(B.value);
1638
1638
  }
1639
1639
  return { status: s.value, value: h };
1640
1640
  }
1641
- const l = [...r.data.values()].map((y, h) => a._parse(new Pe(r, y, r.path, h)));
1641
+ const l = [...r.data.values()].map((y, h) => a._parse(new Ye(r, y, r.path, h)));
1642
1642
  return r.common.async ? Promise.all(l).then((y) => c(y)) : c(l);
1643
1643
  }
1644
1644
  min(t, s) {
@@ -1674,7 +1674,7 @@ class Ke extends X {
1674
1674
  _parse(t) {
1675
1675
  const { ctx: s } = this._processInputParams(t);
1676
1676
  if (s.parsedType !== x.function)
1677
- return P(s, {
1677
+ return Y(s, {
1678
1678
  code: C.invalid_type,
1679
1679
  expected: x.function,
1680
1680
  received: s.parsedType
@@ -1687,7 +1687,7 @@ class Ke extends X {
1687
1687
  s.common.contextualErrorMap,
1688
1688
  s.schemaErrorMap,
1689
1689
  Vt(),
1690
- wt
1690
+ Bt
1691
1691
  ].filter((h) => !!h),
1692
1692
  issueData: {
1693
1693
  code: C.invalid_arguments,
@@ -1703,7 +1703,7 @@ class Ke extends X {
1703
1703
  s.common.contextualErrorMap,
1704
1704
  s.schemaErrorMap,
1705
1705
  Vt(),
1706
- wt
1706
+ Bt
1707
1707
  ].filter((h) => !!h),
1708
1708
  issueData: {
1709
1709
  code: C.invalid_return_type,
@@ -1713,20 +1713,20 @@ class Ke extends X {
1713
1713
  }
1714
1714
  const a = { errorMap: s.common.contextualErrorMap }, c = s.data;
1715
1715
  return this._def.returns instanceof ot ? oe(async (...l) => {
1716
- const y = new qe([]), h = await this._def.args.parseAsync(l, a).catch((S) => {
1717
- throw y.addIssue(r(l, S)), y;
1718
- }), w = await c(...h);
1719
- return await this._def.returns._def.type.parseAsync(w, a).catch((S) => {
1720
- throw y.addIssue(n(w, S)), y;
1716
+ const y = new qe([]), h = await this._def.args.parseAsync(l, a).catch((N) => {
1717
+ throw y.addIssue(r(l, N)), y;
1718
+ }), B = await c(...h);
1719
+ return await this._def.returns._def.type.parseAsync(B, a).catch((N) => {
1720
+ throw y.addIssue(n(B, N)), y;
1721
1721
  });
1722
1722
  }) : oe((...l) => {
1723
1723
  const y = this._def.args.safeParse(l, a);
1724
1724
  if (!y.success)
1725
1725
  throw new qe([r(l, y.error)]);
1726
- const h = c(...y.data), w = this._def.returns.safeParse(h, a);
1727
- if (!w.success)
1728
- throw new qe([n(h, w.error)]);
1729
- return w.data;
1726
+ const h = c(...y.data), B = this._def.returns.safeParse(h, a);
1727
+ if (!B.success)
1728
+ throw new qe([n(h, B.error)]);
1729
+ return B.data;
1730
1730
  });
1731
1731
  }
1732
1732
  parameters() {
@@ -1774,11 +1774,11 @@ Tt.create = (e, t) => new Tt({
1774
1774
  typeName: I.ZodLazy,
1775
1775
  ...Q(t)
1776
1776
  });
1777
- class St extends X {
1777
+ class Nt extends X {
1778
1778
  _parse(t) {
1779
1779
  if (t.data !== this._def.value) {
1780
1780
  const s = this._getOrReturnCtx(t);
1781
- return P(s, {
1781
+ return Y(s, {
1782
1782
  code: C.invalid_literal,
1783
1783
  expected: this._def.value
1784
1784
  }), H;
@@ -1789,7 +1789,7 @@ class St extends X {
1789
1789
  return this._def.value;
1790
1790
  }
1791
1791
  }
1792
- St.create = (e, t) => new St({
1792
+ Nt.create = (e, t) => new Nt({
1793
1793
  value: e,
1794
1794
  typeName: I.ZodLiteral,
1795
1795
  ...Q(t)
@@ -1805,15 +1805,15 @@ class Lt extends X {
1805
1805
  _parse(t) {
1806
1806
  if (typeof t.data != "string") {
1807
1807
  const s = this._getOrReturnCtx(t), r = this._def.values;
1808
- return P(s, {
1809
- expected: N.joinValues(r),
1808
+ return Y(s, {
1809
+ expected: S.joinValues(r),
1810
1810
  received: s.parsedType,
1811
1811
  code: C.invalid_type
1812
1812
  }), H;
1813
1813
  }
1814
1814
  if (this._def.values.indexOf(t.data) === -1) {
1815
1815
  const s = this._getOrReturnCtx(t), r = this._def.values;
1816
- return P(s, {
1816
+ return Y(s, {
1817
1817
  received: s.data,
1818
1818
  code: C.invalid_enum_value,
1819
1819
  options: r
@@ -1844,20 +1844,20 @@ class Lt extends X {
1844
1844
  }
1845
1845
  }
1846
1846
  Lt.create = pr;
1847
- class Nt extends X {
1847
+ class St extends X {
1848
1848
  _parse(t) {
1849
- const s = N.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
1849
+ const s = S.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
1850
1850
  if (r.parsedType !== x.string && r.parsedType !== x.number) {
1851
- const n = N.objectValues(s);
1852
- return P(r, {
1853
- expected: N.joinValues(n),
1851
+ const n = S.objectValues(s);
1852
+ return Y(r, {
1853
+ expected: S.joinValues(n),
1854
1854
  received: r.parsedType,
1855
1855
  code: C.invalid_type
1856
1856
  }), H;
1857
1857
  }
1858
1858
  if (s.indexOf(t.data) === -1) {
1859
- const n = N.objectValues(s);
1860
- return P(r, {
1859
+ const n = S.objectValues(s);
1860
+ return Y(r, {
1861
1861
  received: r.data,
1862
1862
  code: C.invalid_enum_value,
1863
1863
  options: n
@@ -1869,7 +1869,7 @@ class Nt extends X {
1869
1869
  return this._def.values;
1870
1870
  }
1871
1871
  }
1872
- Nt.create = (e, t) => new Nt({
1872
+ St.create = (e, t) => new St({
1873
1873
  values: e,
1874
1874
  typeName: I.ZodNativeEnum,
1875
1875
  ...Q(t)
@@ -1878,7 +1878,7 @@ class ot extends X {
1878
1878
  _parse(t) {
1879
1879
  const { ctx: s } = this._processInputParams(t);
1880
1880
  if (s.parsedType !== x.promise && s.common.async === !1)
1881
- return P(s, {
1881
+ return Y(s, {
1882
1882
  code: C.invalid_type,
1883
1883
  expected: x.promise,
1884
1884
  received: s.parsedType
@@ -1915,7 +1915,7 @@ class Ve extends X {
1915
1915
  }
1916
1916
  const a = {
1917
1917
  addIssue: (c) => {
1918
- P(r, c), c.fatal ? s.abort() : s.dirty();
1918
+ Y(r, c), c.fatal ? s.abort() : s.dirty();
1919
1919
  },
1920
1920
  get path() {
1921
1921
  return r.path;
@@ -1955,7 +1955,7 @@ class Ve extends X {
1955
1955
  return { status: s.value, value: l };
1956
1956
  } else
1957
1957
  return this._def.schema._parseAsync({ data: r.data, path: r.path, parent: r }).then((c) => Ft(c) ? Promise.resolve(n.transform(c.value, a)).then((l) => ({ status: s.value, value: l })) : c);
1958
- N.assertNever(n);
1958
+ S.assertNever(n);
1959
1959
  }
1960
1960
  }
1961
1961
  Ve.create = (e, t, s) => new Ve({
@@ -2019,7 +2019,7 @@ class Zt extends X {
2019
2019
  _parse(t) {
2020
2020
  if (this._getType(t) !== x.nan) {
2021
2021
  const r = this._getOrReturnCtx(t);
2022
- return P(r, {
2022
+ return Y(r, {
2023
2023
  code: C.invalid_type,
2024
2024
  expected: x.nan,
2025
2025
  received: r.parsedType
@@ -2046,20 +2046,20 @@ var I;
2046
2046
  })(I || (I = {}));
2047
2047
  const la = (e, t = {
2048
2048
  message: `Input not instance of ${e.name}`
2049
- }) => fr((s) => s instanceof e, t, !0), hr = ke.create, yr = We.create, ua = Zt.create, Aa = qt.create, br = It.create, da = nt.create, ma = Ht.create, ga = Rt.create, pa = at.create, fa = Xe.create, ha = Te.create, ya = Xt.create, ba = Ye.create, va = J.create, wa = J.strictCreate, Ba = Bt.create, Ma = Wt.create, Ca = Mt.create, Da = Ge.create, xa = Ct.create, ja = kt.create, Ea = Le.create, Pa = Ke.create, Ya = Tt.create, Ga = St.create, Va = Lt.create, Oa = Nt.create, Fa = ot.create, Js = Ve.create, qa = Ee.create, Ia = Je.create, Ha = Ve.createWithPreprocess, Ra = () => hr().optional(), Xa = () => yr().optional(), Qa = () => br().optional();
2049
+ }) => fr((s) => s instanceof e, t, !0), hr = ke.create, yr = We.create, ua = Zt.create, Aa = qt.create, br = It.create, da = nt.create, ma = Ht.create, ga = Rt.create, pa = at.create, fa = Xe.create, ha = Te.create, ya = Xt.create, ba = Pe.create, va = J.create, Ba = J.strictCreate, wa = wt.create, Ma = Wt.create, Ca = Mt.create, Da = Ge.create, xa = Ct.create, ja = kt.create, Ea = Le.create, Ya = Ke.create, Pa = Tt.create, Ga = Nt.create, Va = Lt.create, Oa = St.create, Fa = ot.create, Js = Ve.create, qa = Ee.create, Ia = Je.create, Ha = Ve.createWithPreprocess, Ra = () => hr().optional(), Xa = () => yr().optional(), Qa = () => br().optional();
2050
2050
  var ft = /* @__PURE__ */ Object.freeze({
2051
2051
  __proto__: null,
2052
2052
  getParsedType: Re,
2053
2053
  ZodParsedType: x,
2054
2054
  makeIssue: Ot,
2055
2055
  EMPTY_PATH: sa,
2056
- addIssueToContext: P,
2056
+ addIssueToContext: Y,
2057
2057
  ParseStatus: ae,
2058
2058
  INVALID: H,
2059
2059
  DIRTY: ra,
2060
2060
  OK: oe,
2061
- isAborted: ws,
2062
- isDirty: Bs,
2061
+ isAborted: Bs,
2062
+ isDirty: ws,
2063
2063
  isValid: Ft,
2064
2064
  isAsync: Ms,
2065
2065
  jsonStringifyReplacer: qs,
@@ -2075,12 +2075,12 @@ var ft = /* @__PURE__ */ Object.freeze({
2075
2075
  ZodUnknown: Xe,
2076
2076
  ZodNever: Te,
2077
2077
  ZodVoid: Xt,
2078
- ZodArray: Ye,
2078
+ ZodArray: Pe,
2079
2079
  get objectUtil() {
2080
2080
  return Qt;
2081
2081
  },
2082
2082
  ZodObject: J,
2083
- ZodUnion: Bt,
2083
+ ZodUnion: wt,
2084
2084
  ZodDiscriminatedUnion: Wt,
2085
2085
  ZodIntersection: Mt,
2086
2086
  ZodTuple: Ge,
@@ -2089,9 +2089,9 @@ var ft = /* @__PURE__ */ Object.freeze({
2089
2089
  ZodSet: Le,
2090
2090
  ZodFunction: Ke,
2091
2091
  ZodLazy: Tt,
2092
- ZodLiteral: St,
2092
+ ZodLiteral: Nt,
2093
2093
  ZodEnum: Lt,
2094
- ZodNativeEnum: Nt,
2094
+ ZodNativeEnum: St,
2095
2095
  ZodPromise: ot,
2096
2096
  ZodEffects: Ve,
2097
2097
  ZodTransformer: Ve,
@@ -2114,10 +2114,10 @@ var ft = /* @__PURE__ */ Object.freeze({
2114
2114
  discriminatedUnion: Ma,
2115
2115
  effect: Js,
2116
2116
  enum: Va,
2117
- function: Pa,
2117
+ function: Ya,
2118
2118
  instanceof: la,
2119
2119
  intersection: Ca,
2120
- lazy: Ya,
2120
+ lazy: Pa,
2121
2121
  literal: Ga,
2122
2122
  map: ja,
2123
2123
  nan: ua,
@@ -2135,18 +2135,18 @@ var ft = /* @__PURE__ */ Object.freeze({
2135
2135
  promise: Fa,
2136
2136
  record: xa,
2137
2137
  set: Ea,
2138
- strictObject: wa,
2138
+ strictObject: Ba,
2139
2139
  string: hr,
2140
2140
  transformer: Js,
2141
2141
  tuple: Da,
2142
2142
  undefined: ma,
2143
- union: Ba,
2143
+ union: wa,
2144
2144
  unknown: fa,
2145
2145
  void: ya,
2146
2146
  ZodIssueCode: C,
2147
2147
  quotelessJson: ea,
2148
2148
  ZodError: qe,
2149
- defaultErrorMap: wt,
2149
+ defaultErrorMap: Bt,
2150
2150
  setErrorMap: ta,
2151
2151
  getErrorMap: Vt
2152
2152
  });
@@ -2201,7 +2201,7 @@ function Ds(e, t) {
2201
2201
  }
2202
2202
  function xs(e, t, s, r) {
2203
2203
  if (Hs(e))
2204
- return Sa(e.$form, t, s) ? (r[e.$form] = t, !0) : !1;
2204
+ return Na(e.$form, t, s) ? (r[e.$form] = t, !0) : !1;
2205
2205
  if (Array.isArray(e) || Array.isArray(t))
2206
2206
  return !Array.isArray(e) || !Array.isArray(t) || e.length !== t.length ? !1 : e.every((n, a) => xs(n, t[a], s, r));
2207
2207
  if (typeof e == "object" && e !== null) {
@@ -2218,11 +2218,11 @@ function xs(e, t, s, r) {
2218
2218
  }
2219
2219
  return e === t;
2220
2220
  }
2221
- function Sa(e, t, s) {
2221
+ function Na(e, t, s) {
2222
2222
  const r = s.fields.find((n) => n.key === e);
2223
2223
  return (r == null ? void 0 : r.kind) === "number" ? typeof t == "number" : (r == null ? void 0 : r.kind) === "switch" ? typeof t == "boolean" : typeof t == "number" || typeof t == "string" || typeof t == "boolean";
2224
2224
  }
2225
- function Na(e) {
2225
+ function Sa(e) {
2226
2226
  return "fields" in e;
2227
2227
  }
2228
2228
  function Za(e, t) {
@@ -2231,17 +2231,17 @@ function Za(e, t) {
2231
2231
  const r = t[s.field];
2232
2232
  return "eq" in s ? r === s.eq : s.in ? s.in.includes(r) : !0;
2233
2233
  }
2234
- function Ua(e, t) {
2234
+ function za(e, t) {
2235
2235
  return e.fields.filter((s) => Za(s, t));
2236
2236
  }
2237
2237
  function El(e, t) {
2238
2238
  const s = { ...t };
2239
- for (const r of Ua(e, s))
2239
+ for (const r of za(e, s))
2240
2240
  (s[r.key] === void 0 || s[r.key] === null) && r.default !== void 0 && (s[r.key] = r.default);
2241
2241
  return s;
2242
2242
  }
2243
- function za(e) {
2244
- if (Na(e.form)) {
2243
+ function Ua(e) {
2244
+ if (Sa(e.form)) {
2245
2245
  const s = new Set(e.form.fields.map((r) => r.key));
2246
2246
  for (const r of e.form.fields)
2247
2247
  if (r.visibleWhen && !s.has(r.visibleWhen.field))
@@ -2267,7 +2267,7 @@ function Wa(e) {
2267
2267
  const t = e == null ? void 0 : e.shape;
2268
2268
  return t ? Object.keys(t) : void 0;
2269
2269
  }
2270
- const wr = /* @__PURE__ */ new Map(), Yt = [], La = /* @__PURE__ */ new Map(), _s = "prefix:";
2270
+ const Br = /* @__PURE__ */ new Map(), Pt = [], La = /* @__PURE__ */ new Map(), _s = "prefix:";
2271
2271
  function Ka(e) {
2272
2272
  for (const [t, s] of Object.entries(e))
2273
2273
  Ja([t], s);
@@ -2278,10 +2278,10 @@ function Ja(e, t) {
2278
2278
  for (const r of s) La.set(r.builderKey, r);
2279
2279
  for (const r of e)
2280
2280
  if (r.startsWith(_s)) {
2281
- const n = r.slice(_s.length), a = Yt.findIndex((c) => c.prefix === n);
2282
- a >= 0 ? Yt[a] = { prefix: n, builders: s } : Yt.push({ prefix: n, builders: s });
2281
+ const n = r.slice(_s.length), a = Pt.findIndex((c) => c.prefix === n);
2282
+ a >= 0 ? Pt[a] = { prefix: n, builders: s } : Pt.push({ prefix: n, builders: s });
2283
2283
  } else
2284
- wr.set(r, s);
2284
+ Br.set(r, s);
2285
2285
  }
2286
2286
  function _a(e, t) {
2287
2287
  const s = /* @__PURE__ */ new Map();
@@ -2300,10 +2300,10 @@ function _a(e, t) {
2300
2300
  }
2301
2301
  }
2302
2302
  function $a(e) {
2303
- const t = wr.get(e);
2303
+ const t = Br.get(e);
2304
2304
  if (t) return t;
2305
2305
  let s;
2306
- for (const r of Yt)
2306
+ for (const r of Pt)
2307
2307
  e.startsWith(r.prefix) && (!s || r.prefix.length > s.prefix.length) && (s = r);
2308
2308
  return (s == null ? void 0 : s.builders) ?? [];
2309
2309
  }
@@ -2438,7 +2438,7 @@ const Ao = {
2438
2438
  }
2439
2439
  }
2440
2440
  ]
2441
- }, mo = za({
2441
+ }, mo = Ua({
2442
2442
  version: 1,
2443
2443
  builderKey: io,
2444
2444
  contextSchema: to,
@@ -2486,7 +2486,7 @@ const Ao = {
2486
2486
  report: Ze
2487
2487
  };
2488
2488
  Ka(go);
2489
- function Pl(e, t) {
2489
+ function Yl(e, t) {
2490
2490
  if (!e) return {};
2491
2491
  const s = new Set(t.ownedFields);
2492
2492
  return Object.fromEntries(Object.entries(e).filter(([r]) => s.has(r)));
@@ -2496,7 +2496,7 @@ function po(e, t) {
2496
2496
  const s = new Set(t.flatMap((r) => r.ownedFields));
2497
2497
  return Object.fromEntries(Object.entries(e).filter(([r]) => !s.has(r)));
2498
2498
  }
2499
- function Yl(e, t) {
2499
+ function Pl(e, t) {
2500
2500
  return Object.assign(
2501
2501
  po(
2502
2502
  e,
@@ -2505,7 +2505,7 @@ function Yl(e, t) {
2505
2505
  ...t.map((s) => s.builder.toCondition(s.formValue))
2506
2506
  );
2507
2507
  }
2508
- const Br = {
2508
+ const wr = {
2509
2509
  mode: "Access window",
2510
2510
  unrestricted: "No restriction",
2511
2511
  since: "Since date",
@@ -2521,11 +2521,11 @@ const Br = {
2521
2521
  inheritedLastMonths: "last {amount} months",
2522
2522
  inheritedLastYears: "last {amount} years"
2523
2523
  }, fo = {
2524
- reportAccessWindow: Br
2524
+ reportAccessWindow: wr
2525
2525
  }, ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2526
2526
  __proto__: null,
2527
2527
  default: fo,
2528
- reportAccessWindow: Br
2528
+ reportAccessWindow: wr
2529
2529
  }, Symbol.toStringTag, { value: "Module" })), Mr = {
2530
2530
  mode: "访问期限",
2531
2531
  unrestricted: "无限制",
@@ -2564,7 +2564,7 @@ const Br = {
2564
2564
  inheritedLastYears: "最近 {amount} 年"
2565
2565
  }, vo = {
2566
2566
  reportAccessWindow: Cr
2567
- }, wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2567
+ }, Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2568
2568
  __proto__: null,
2569
2569
  default: vo,
2570
2570
  reportAccessWindow: Cr
@@ -2583,16 +2583,16 @@ const Br = {
2583
2583
  inheritedLastDays: "ล่าสุด {amount} วัน",
2584
2584
  inheritedLastMonths: "ล่าสุด {amount} เดือน",
2585
2585
  inheritedLastYears: "ล่าสุด {amount} ปี"
2586
- }, Bo = {
2586
+ }, wo = {
2587
2587
  reportAccessWindow: Dr
2588
2588
  }, Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2589
2589
  __proto__: null,
2590
- default: Bo,
2590
+ default: wo,
2591
2591
  reportAccessWindow: Dr
2592
2592
  }, Symbol.toStringTag, { value: "Module" })), Co = {
2593
2593
  "en-US": { conditionBuilder: { ...ho } },
2594
2594
  "zh-CN": { conditionBuilder: { ...bo } },
2595
- "zh-Hant": { conditionBuilder: { ...wo } },
2595
+ "zh-Hant": { conditionBuilder: { ...Bo } },
2596
2596
  "th-TH": { conditionBuilder: { ...Mo } }
2597
2597
  }, xr = {
2598
2598
  predefinedRanges: {
@@ -2610,9 +2610,6 @@ const Br = {
2610
2610
  dateRange: {
2611
2611
  placeholder: "Select date range"
2612
2612
  },
2613
- search: {
2614
- placeholder: "Search user, event, or record"
2615
- },
2616
2613
  user: {
2617
2614
  feedmeAdmin: "FeedMe Admin"
2618
2615
  },
@@ -2727,77 +2724,6 @@ const Br = {
2727
2724
  requestMethod: "Request Method",
2728
2725
  requestPath: "Request Path",
2729
2726
  requestBody: "Request Body"
2730
- },
2731
- operation: {
2732
- toggle: "Toggle operations",
2733
- rowHint: "Operation",
2734
- unlabeled: "Operation",
2735
- badge: "{count} ops",
2736
- sheetHeader: "Operation Detail",
2737
- entity: "Entity",
2738
- duration: "Duration",
2739
- durationValue: "{ms} ms",
2740
- error: "Error",
2741
- changes: "Changes",
2742
- showData: "Show data",
2743
- added: "Added",
2744
- removed: "Removed",
2745
- updated: "Updated",
2746
- before: "Before",
2747
- after: "After",
2748
- noChanges: "No changes recorded for this operation.",
2749
- wholeValue: "Value"
2750
- },
2751
- event: {
2752
- sentence: {
2753
- "audit-log": {
2754
- view: "Viewed audit logs"
2755
- },
2756
- restaurant: {
2757
- list: "Listed restaurants"
2758
- },
2759
- "permission-assignment": {
2760
- manage: "Managed permission assignments",
2761
- list: "Listed permission assignments",
2762
- view: "Viewed permission assignment {id}"
2763
- },
2764
- "permission-set": {
2765
- manage: "Managed permission sets",
2766
- list: "Listed permission sets",
2767
- view: "Viewed permission set {id}"
2768
- },
2769
- "portal-user": {
2770
- list: "Listed team members",
2771
- "list-page": "Listed team members",
2772
- view: "Viewed team member {id}",
2773
- create: "Added team member {name}",
2774
- update: "Updated team member {name}",
2775
- delete: "Removed team member {name}"
2776
- },
2777
- "pos-user": {
2778
- list: "Listed employees",
2779
- "list-page": "Listed employees",
2780
- create: "Added employee {name}",
2781
- "sync-meta": "Synced employee data",
2782
- update: "Updated employee {id}",
2783
- migrate: "Migrated employee {id}",
2784
- "generate-passcode": "Generated employee passcode"
2785
- },
2786
- "pos-master-user": {
2787
- create: "Added POS master employee {name}",
2788
- update: "Updated POS master employee {name}",
2789
- delete: "Removed POS master employee {name}"
2790
- },
2791
- "pos-role": {
2792
- list: "Listed employee roles",
2793
- create: "Added employee role {name}",
2794
- update: "Updated employee role {name}"
2795
- },
2796
- timesheet: {
2797
- view: "Viewed timesheets",
2798
- update: "Updated timesheet"
2799
- }
2800
- }
2801
2727
  }
2802
2728
  }, Do = {
2803
2729
  date: xr,
@@ -2817,15 +2743,12 @@ const Br = {
2817
2743
  thisMonth: "เดือนนี้",
2818
2744
  lastMonth: "เดือนที่แล้ว"
2819
2745
  }
2820
- }, Pr = {
2746
+ }, Yr = {
2821
2747
  title: "ประวัติการใช้งาน",
2822
2748
  export: "ส่งออก",
2823
2749
  dateRange: {
2824
2750
  placeholder: "เลือกช่วงวันที่"
2825
2751
  },
2826
- search: {
2827
- placeholder: "ค้นหาผู้ใช้ เหตุการณ์ หรือรายการ"
2828
- },
2829
2752
  user: {
2830
2753
  feedmeAdmin: "ผู้ดูแล FeedMe"
2831
2754
  },
@@ -2941,87 +2864,16 @@ const Br = {
2941
2864
  requestMethod: "วิธีการเข้าถึง",
2942
2865
  requestPath: "URL ที่เข้าถึง",
2943
2866
  requestBody: "เนื้อหาคำขอ"
2944
- },
2945
- operation: {
2946
- toggle: "แสดง/ซ่อนการดำเนินการ",
2947
- rowHint: "การดำเนินการ",
2948
- unlabeled: "การดำเนินการ",
2949
- badge: "{count} รายการ",
2950
- sheetHeader: "รายละเอียดการดำเนินการ",
2951
- entity: "ข้อมูลที่เกี่ยวข้อง",
2952
- duration: "ระยะเวลา",
2953
- durationValue: "{ms} มิลลิวินาที",
2954
- error: "ข้อผิดพลาด",
2955
- changes: "การเปลี่ยนแปลง",
2956
- showData: "แสดงข้อมูล",
2957
- added: "เพิ่ม",
2958
- removed: "ลบ",
2959
- updated: "อัปเดต",
2960
- before: "ก่อนหน้า",
2961
- after: "หลังจาก",
2962
- noChanges: "ไม่มีการเปลี่ยนแปลงที่บันทึกไว้สำหรับการดำเนินการนี้",
2963
- wholeValue: "ค่า"
2964
- },
2965
- event: {
2966
- sentence: {
2967
- "audit-log": {
2968
- view: "ดูบันทึกการตรวจสอบ"
2969
- },
2970
- restaurant: {
2971
- list: "ดูรายการร้านอาหาร"
2972
- },
2973
- "permission-assignment": {
2974
- manage: "จัดการการกำหนดสิทธิ์",
2975
- list: "ดูรายการการกำหนดสิทธิ์",
2976
- view: "ดูการกำหนดสิทธิ์ {id}"
2977
- },
2978
- "permission-set": {
2979
- manage: "จัดการกลุ่มสิทธิ์",
2980
- list: "ดูรายการกลุ่มสิทธิ์",
2981
- view: "ดูกลุ่มสิทธิ์ {id}"
2982
- },
2983
- "portal-user": {
2984
- list: "ดูรายการสมาชิกทีม",
2985
- "list-page": "ดูรายการสมาชิกทีม",
2986
- view: "ดูสมาชิกทีม {id}",
2987
- create: "เพิ่มสมาชิกทีม {name}",
2988
- update: "อัปเดตสมาชิกทีม {name}",
2989
- delete: "ลบสมาชิกทีม {name}"
2990
- },
2991
- "pos-user": {
2992
- list: "ดูรายการพนักงาน",
2993
- "list-page": "ดูรายการพนักงาน",
2994
- create: "เพิ่มพนักงาน {name}",
2995
- "sync-meta": "ซิงค์ข้อมูลพนักงาน",
2996
- update: "อัปเดตพนักงาน {id}",
2997
- migrate: "ย้ายพนักงาน {id}",
2998
- "generate-passcode": "สร้างรหัสผ่านพนักงาน"
2999
- },
3000
- "pos-master-user": {
3001
- create: "เพิ่มพนักงานหลัก POS {name}",
3002
- update: "อัปเดตพนักงานหลัก POS {name}",
3003
- delete: "ลบพนักงานหลัก POS {name}"
3004
- },
3005
- "pos-role": {
3006
- list: "ดูรายการบทบาทพนักงาน",
3007
- create: "เพิ่มบทบาทพนักงาน {name}",
3008
- update: "อัปเดตบทบาทพนักงาน {name}"
3009
- },
3010
- timesheet: {
3011
- view: "ดูใบบันทึกเวลา",
3012
- update: "อัปเดตใบบันทึกเวลา"
3013
- }
3014
- }
3015
2867
  }
3016
2868
  }, jo = {
3017
2869
  date: Er,
3018
- auditLog: Pr
2870
+ auditLog: Yr
3019
2871
  }, Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3020
2872
  __proto__: null,
3021
- auditLog: Pr,
2873
+ auditLog: Yr,
3022
2874
  date: Er,
3023
2875
  default: jo
3024
- }, Symbol.toStringTag, { value: "Module" })), Yr = {
2876
+ }, Symbol.toStringTag, { value: "Module" })), Pr = {
3025
2877
  predefinedRanges: {
3026
2878
  today: "今天",
3027
2879
  yesterday: "昨天",
@@ -3037,9 +2889,6 @@ const Br = {
3037
2889
  dateRange: {
3038
2890
  placeholder: "选择日期范围"
3039
2891
  },
3040
- search: {
3041
- placeholder: "搜索用户、事件或记录"
3042
- },
3043
2892
  user: {
3044
2893
  feedmeAdmin: "FeedMe 管理员"
3045
2894
  },
@@ -3155,86 +3004,15 @@ const Br = {
3155
3004
  requestMethod: "请求方法",
3156
3005
  requestPath: "请求路径",
3157
3006
  requestBody: "请求内容"
3158
- },
3159
- operation: {
3160
- toggle: "展开/收起操作",
3161
- rowHint: "操作",
3162
- unlabeled: "操作",
3163
- badge: "{count} 项操作",
3164
- sheetHeader: "操作详情",
3165
- entity: "对象",
3166
- duration: "耗时",
3167
- durationValue: "{ms} 毫秒",
3168
- error: "错误",
3169
- changes: "变更内容",
3170
- showData: "显示数据",
3171
- added: "已添加",
3172
- removed: "已移除",
3173
- updated: "已更新",
3174
- before: "变更前",
3175
- after: "变更后",
3176
- noChanges: "此操作未记录任何变更。",
3177
- wholeValue: "值"
3178
- },
3179
- event: {
3180
- sentence: {
3181
- "audit-log": {
3182
- view: "查看了审计日志"
3183
- },
3184
- restaurant: {
3185
- list: "查看了餐厅列表"
3186
- },
3187
- "permission-assignment": {
3188
- manage: "管理了权限分配",
3189
- list: "查看了权限分配列表",
3190
- view: "查看了权限分配 {id}"
3191
- },
3192
- "permission-set": {
3193
- manage: "管理了权限集",
3194
- list: "查看了权限集列表",
3195
- view: "查看了权限集 {id}"
3196
- },
3197
- "portal-user": {
3198
- list: "查看了团队成员列表",
3199
- "list-page": "查看了团队成员列表",
3200
- view: "查看了团队成员 {id}",
3201
- create: "添加了团队成员 {name}",
3202
- update: "更新了团队成员 {name}",
3203
- delete: "移除了团队成员 {name}"
3204
- },
3205
- "pos-user": {
3206
- list: "查看了员工列表",
3207
- "list-page": "查看了员工列表",
3208
- create: "添加了员工 {name}",
3209
- "sync-meta": "同步了员工数据",
3210
- update: "更新了员工 {id}",
3211
- migrate: "迁移了员工 {id}",
3212
- "generate-passcode": "生成了员工密码"
3213
- },
3214
- "pos-master-user": {
3215
- create: "添加了 POS 主员工 {name}",
3216
- update: "更新了 POS 主员工 {name}",
3217
- delete: "移除了 POS 主员工 {name}"
3218
- },
3219
- "pos-role": {
3220
- list: "查看了员工角色列表",
3221
- create: "添加了员工角色 {name}",
3222
- update: "更新了员工角色 {name}"
3223
- },
3224
- timesheet: {
3225
- view: "查看了工时表",
3226
- update: "更新了工时表"
3227
- }
3228
- }
3229
3007
  }
3230
- }, Po = {
3231
- date: Yr,
3008
+ }, Yo = {
3009
+ date: Pr,
3232
3010
  auditLog: Gr
3233
- }, Yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3011
+ }, Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3234
3012
  __proto__: null,
3235
3013
  auditLog: Gr,
3236
- date: Yr,
3237
- default: Po
3014
+ date: Pr,
3015
+ default: Yo
3238
3016
  }, Symbol.toStringTag, { value: "Module" })), Vr = {
3239
3017
  predefinedRanges: {
3240
3018
  today: "今天",
@@ -3251,9 +3029,6 @@ const Br = {
3251
3029
  dateRange: {
3252
3030
  placeholder: "選擇日期範圍"
3253
3031
  },
3254
- search: {
3255
- placeholder: "搜尋使用者、事件或記錄"
3256
- },
3257
3032
  user: {
3258
3033
  feedmeAdmin: "FeedMe 管理員"
3259
3034
  },
@@ -3369,77 +3144,6 @@ const Br = {
3369
3144
  requestMethod: "請求方法",
3370
3145
  requestPath: "請求路徑",
3371
3146
  requestBody: "請求內容"
3372
- },
3373
- operation: {
3374
- toggle: "展開/收起操作",
3375
- rowHint: "操作",
3376
- unlabeled: "操作",
3377
- badge: "{count} 項操作",
3378
- sheetHeader: "操作詳情",
3379
- entity: "對象",
3380
- duration: "耗時",
3381
- durationValue: "{ms} 毫秒",
3382
- error: "錯誤",
3383
- changes: "變更內容",
3384
- showData: "顯示資料",
3385
- added: "已新增",
3386
- removed: "已移除",
3387
- updated: "已更新",
3388
- before: "變更前",
3389
- after: "變更後",
3390
- noChanges: "此操作未記錄任何變更。",
3391
- wholeValue: "值"
3392
- },
3393
- event: {
3394
- sentence: {
3395
- "audit-log": {
3396
- view: "查看了稽核紀錄"
3397
- },
3398
- restaurant: {
3399
- list: "查看了餐廳列表"
3400
- },
3401
- "permission-assignment": {
3402
- manage: "管理了權限指派",
3403
- list: "查看了權限指派列表",
3404
- view: "查看了權限指派 {id}"
3405
- },
3406
- "permission-set": {
3407
- manage: "管理了權限集",
3408
- list: "查看了權限集列表",
3409
- view: "查看了權限集 {id}"
3410
- },
3411
- "portal-user": {
3412
- list: "查看了團隊成員列表",
3413
- "list-page": "查看了團隊成員列表",
3414
- view: "查看了團隊成員 {id}",
3415
- create: "新增了團隊成員 {name}",
3416
- update: "更新了團隊成員 {name}",
3417
- delete: "移除了團隊成員 {name}"
3418
- },
3419
- "pos-user": {
3420
- list: "查看了員工列表",
3421
- "list-page": "查看了員工列表",
3422
- create: "新增了員工 {name}",
3423
- "sync-meta": "同步了員工資料",
3424
- update: "更新了員工 {id}",
3425
- migrate: "移轉了員工 {id}",
3426
- "generate-passcode": "產生了員工密碼"
3427
- },
3428
- "pos-master-user": {
3429
- create: "新增了 POS 主員工 {name}",
3430
- update: "更新了 POS 主員工 {name}",
3431
- delete: "移除了 POS 主員工 {name}"
3432
- },
3433
- "pos-role": {
3434
- list: "查看了員工角色列表",
3435
- create: "新增了員工角色 {name}",
3436
- update: "更新了員工角色 {name}"
3437
- },
3438
- timesheet: {
3439
- view: "查看了工時表",
3440
- update: "更新了工時表"
3441
- }
3442
- }
3443
3147
  }
3444
3148
  }, Go = {
3445
3149
  date: Vr,
@@ -3451,7 +3155,7 @@ const Br = {
3451
3155
  default: Go
3452
3156
  }, Symbol.toStringTag, { value: "Module" })), Oo = {
3453
3157
  "en-US": xo,
3454
- "zh-CN": Yo,
3158
+ "zh-CN": Po,
3455
3159
  "th-TH": Eo,
3456
3160
  "zh-Hant": Vo
3457
3161
  }, Fr = {
@@ -4537,12 +4241,12 @@ const Br = {
4537
4241
  permissions: "Permissions"
4538
4242
  }
4539
4243
  }
4540
- }, So = {
4244
+ }, No = {
4541
4245
  team: Rr,
4542
4246
  permissionSet: Xr
4543
- }, No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4247
+ }, So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4544
4248
  __proto__: null,
4545
- default: So,
4249
+ default: No,
4546
4250
  permissionSet: Xr,
4547
4251
  team: Rr
4548
4252
  }, Symbol.toStringTag, { value: "Module" })), Qr = {
@@ -4796,7 +4500,7 @@ const Br = {
4796
4500
  }, Zo = {
4797
4501
  team: Qr,
4798
4502
  permissionSet: kr
4799
- }, Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4503
+ }, zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4800
4504
  __proto__: null,
4801
4505
  default: Zo,
4802
4506
  permissionSet: kr,
@@ -4920,7 +4624,7 @@ const Br = {
4920
4624
  selectPlaceholder: "选择权限角色"
4921
4625
  }
4922
4626
  }
4923
- }, Sr = {
4627
+ }, Nr = {
4924
4628
  title: "角色",
4925
4629
  createButtonLabel: "创建角色",
4926
4630
  search: {
@@ -5049,15 +4753,15 @@ const Br = {
5049
4753
  permissions: "权限"
5050
4754
  }
5051
4755
  }
5052
- }, zo = {
4756
+ }, Uo = {
5053
4757
  team: Tr,
5054
- permissionSet: Sr
4758
+ permissionSet: Nr
5055
4759
  }, Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5056
4760
  __proto__: null,
5057
- default: zo,
5058
- permissionSet: Sr,
4761
+ default: Uo,
4762
+ permissionSet: Nr,
5059
4763
  team: Tr
5060
- }, Symbol.toStringTag, { value: "Module" })), Nr = {
4764
+ }, Symbol.toStringTag, { value: "Module" })), Sr = {
5061
4765
  title: "團隊成員",
5062
4766
  subtitle: "管理可存取 Portal 和 POS 的團隊成員,指派 Portal 權限和 POS 角色。",
5063
4767
  actions: {
@@ -5313,19 +5017,19 @@ const Br = {
5313
5017
  }
5314
5018
  }
5315
5019
  }, Lo = {
5316
- team: Nr,
5020
+ team: Sr,
5317
5021
  permissionSet: Zr
5318
5022
  }, Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5319
5023
  __proto__: null,
5320
5024
  default: Lo,
5321
5025
  permissionSet: Zr,
5322
- team: Nr
5026
+ team: Sr
5323
5027
  }, Symbol.toStringTag, { value: "Module" })), Jo = {
5324
- "en-US": No,
5028
+ "en-US": So,
5325
5029
  "zh-CN": Wo,
5326
- "th-TH": Uo,
5030
+ "th-TH": zo,
5327
5031
  "zh-Hant": Ko
5328
- }, Ur = {
5032
+ }, zr = {
5329
5033
  title: "POS Grant",
5330
5034
  actions: {
5331
5035
  create: "Create Passcode",
@@ -5380,12 +5084,12 @@ const Br = {
5380
5084
  copied: "Passcode copied"
5381
5085
  }
5382
5086
  }, _o = {
5383
- grantUser: Ur
5087
+ grantUser: zr
5384
5088
  }, $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5385
5089
  __proto__: null,
5386
5090
  default: _o,
5387
- grantUser: Ur
5388
- }, Symbol.toStringTag, { value: "Module" })), zr = {
5091
+ grantUser: zr
5092
+ }, Symbol.toStringTag, { value: "Module" })), Ur = {
5389
5093
  title: "POS Grant",
5390
5094
  actions: {
5391
5095
  create: "สร้างรหัสผ่าน",
@@ -5440,11 +5144,11 @@ const Br = {
5440
5144
  copied: "คัดลอกรหัสผ่านแล้ว"
5441
5145
  }
5442
5146
  }, ei = {
5443
- grantUser: zr
5147
+ grantUser: Ur
5444
5148
  }, ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5445
5149
  __proto__: null,
5446
5150
  default: ei,
5447
- grantUser: zr
5151
+ grantUser: Ur
5448
5152
  }, Symbol.toStringTag, { value: "Module" })), Wr = {
5449
5153
  title: "POS 授予",
5450
5154
  actions: {
@@ -5973,7 +5677,7 @@ const Br = {
5973
5677
  }
5974
5678
  }, vi = {
5975
5679
  posAccess: sn
5976
- }, wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5680
+ }, Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5977
5681
  __proto__: null,
5978
5682
  default: vi,
5979
5683
  posAccess: sn
@@ -5985,15 +5689,15 @@ const Br = {
5985
5689
  codes: "授權碼",
5986
5690
  codesDescription: "產生一次性授權碼,用於核准退款、作廢等敏感操作。"
5987
5691
  }
5988
- }, Bi = {
5692
+ }, wi = {
5989
5693
  posAccess: rn
5990
5694
  }, Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5991
5695
  __proto__: null,
5992
- default: Bi,
5696
+ default: wi,
5993
5697
  posAccess: rn
5994
5698
  }, Symbol.toStringTag, { value: "Module" })), Ci = {
5995
5699
  "en-US": hi,
5996
- "zh-CN": wi,
5700
+ "zh-CN": Bi,
5997
5701
  "th-TH": bi,
5998
5702
  "zh-Hant": Mi
5999
5703
  }, yt = {
@@ -6761,14 +6465,14 @@ const L = [
6761
6465
  o.delete
6762
6466
  ]
6763
6467
  }
6764
- ], Pi = [
6468
+ ], Yi = [
6765
6469
  ...L,
6766
6470
  {
6767
6471
  label: "Setting",
6768
6472
  subject: Z.crm_setting,
6769
6473
  actions: [o.read, o.update]
6770
6474
  }
6771
- ], Yi = [
6475
+ ], Pi = [
6772
6476
  ...L,
6773
6477
  {
6774
6478
  label: "Reward",
@@ -6980,10 +6684,10 @@ const L = [
6980
6684
  ), vn = Ae(
6981
6685
  ye,
6982
6686
  Ii
6983
- ), wn = Ae(
6687
+ ), Bn = Ae(
6984
6688
  ye,
6985
6689
  Hi
6986
- ), Bn = Ae(
6690
+ ), wn = Ae(
6987
6691
  ye,
6988
6692
  Ri
6989
6693
  ), Xi = Ae(
@@ -6991,7 +6695,7 @@ const L = [
6991
6695
  cn
6992
6696
  ), Mn = Ae(
6993
6697
  ye,
6994
- Pi
6698
+ Yi
6995
6699
  ), Qi = [
6996
6700
  ...L,
6997
6701
  {
@@ -7024,7 +6728,7 @@ const L = [
7024
6728
  ji,
7025
6729
  Ei,
7026
6730
  Mn,
7027
- Yi,
6731
+ Pi,
7028
6732
  un,
7029
6733
  pn,
7030
6734
  fn,
@@ -7032,20 +6736,20 @@ const L = [
7032
6736
  yn,
7033
6737
  bn,
7034
6738
  vn,
7035
- wn,
7036
6739
  Bn,
6740
+ wn,
7037
6741
  An,
7038
6742
  dn,
7039
6743
  mn,
7040
6744
  gn
7041
- ), Si = Ae(
6745
+ ), Ni = Ae(
7042
6746
  ye,
7043
6747
  cn,
7044
6748
  ln
7045
- ), Ni = Ae(
6749
+ ), Si = Ae(
7046
6750
  ye,
7047
6751
  Qi
7048
- ), Zi = Ae(ki), Ui = {
6752
+ ), Zi = Ae(ki), zi = {
7049
6753
  [`set_${A.crm}`]: {
7050
6754
  key: "sys:crm:access",
7051
6755
  name: "CRM Access",
@@ -7054,12 +6758,12 @@ const L = [
7054
6758
  [`set_${A.crm_promotion}`]: {
7055
6759
  key: "sys:crm:promotion",
7056
6760
  name: "CRM Promotion",
7057
- permissions: Si
6761
+ permissions: Ni
7058
6762
  },
7059
6763
  [`set_${A.crm_voucher}`]: {
7060
6764
  key: "sys:crm:voucher",
7061
6765
  name: "CRM Voucher",
7062
- permissions: Ni
6766
+ permissions: Si
7063
6767
  },
7064
6768
  [`set_${A.crm_membership}`]: {
7065
6769
  key: "sys:crm:membership",
@@ -7104,12 +6808,12 @@ const L = [
7104
6808
  [`set_${A.crm_game}`]: {
7105
6809
  key: "sys:crm:game",
7106
6810
  name: "CRM Game",
7107
- permissions: wn
6811
+ permissions: Bn
7108
6812
  },
7109
6813
  [`set_${A.crm_mission}`]: {
7110
6814
  key: "sys:crm:mission",
7111
6815
  name: "CRM Mission",
7112
- permissions: Bn
6816
+ permissions: wn
7113
6817
  },
7114
6818
  [`set_${A.crm_loyaltyMember}`]: {
7115
6819
  key: "sys:crm:loyaltyMember",
@@ -7186,7 +6890,7 @@ const ie = [
7186
6890
  subject: V.inventory_unitCostHistory,
7187
6891
  actions: [o.read]
7188
6892
  }
7189
- ], zi = [
6893
+ ], Ui = [
7190
6894
  ...ie,
7191
6895
  {
7192
6896
  label: "Stock Adjustment",
@@ -7365,7 +7069,7 @@ const Wi = [
7365
7069
  subject: V.inventory_shipment,
7366
7070
  actions: [o.read, o.update]
7367
7071
  }
7368
- ], Pn = [
7072
+ ], Yn = [
7369
7073
  {
7370
7074
  label: "Purchase Order",
7371
7075
  subject: V.inventory_purchaseOrder,
@@ -7386,7 +7090,7 @@ const Wi = [
7386
7090
  subject: V.inventory_shipment,
7387
7091
  actions: [o.read, o.update]
7388
7092
  }
7389
- ], Yn = [
7093
+ ], Pn = [
7390
7094
  ...ie,
7391
7095
  {
7392
7096
  label: "Surcharge",
@@ -7435,8 +7139,8 @@ const Wi = [
7435
7139
  ];
7436
7140
  [
7437
7141
  ...En,
7438
- ...Pn,
7439
7142
  ...Yn,
7143
+ ...Pn,
7440
7144
  ...Gn
7441
7145
  ];
7442
7146
  const $i = [
@@ -7503,7 +7207,7 @@ const nc = {
7503
7207
  [`set_${A.inventory_stockAdjustment}`]: {
7504
7208
  key: "sys:inventory:stock_adjustment",
7505
7209
  name: "Stock Adjustment",
7506
- permissions: zi
7210
+ permissions: Ui
7507
7211
  },
7508
7212
  [`set_${A.inventory_unitCostHistory}`]: {
7509
7213
  key: "sys:inventory:unit_cost_history",
@@ -7563,12 +7267,12 @@ const nc = {
7563
7267
  [`set_${A.inventory_transferOut}`]: {
7564
7268
  key: "sys:inventory:transfer_out",
7565
7269
  name: "Transfer Out",
7566
- permissions: Pn
7270
+ permissions: Yn
7567
7271
  },
7568
7272
  [`set_${A.inventory_surcharge}`]: {
7569
7273
  key: "sys:inventory:surcharge",
7570
7274
  name: "Surcharge",
7571
- permissions: Yn
7275
+ permissions: Pn
7572
7276
  },
7573
7277
  [`set_${A.inventory_orderTemplate}`]: {
7574
7278
  key: "sys:inventory:order_template",
@@ -7716,7 +7420,7 @@ const sr = [
7716
7420
  permissions: sr
7717
7421
  }
7718
7422
  }, ic = {
7719
- ...Ui,
7423
+ ...zi,
7720
7424
  ...nc,
7721
7425
  ...ac,
7722
7426
  ...oc
@@ -7786,8 +7490,8 @@ var On = { exports: {} };
7786
7490
  }
7787
7491
  function c(m) {
7788
7492
  var p = "[object " + m + "]";
7789
- return function(B) {
7790
- return Object.prototype.toString.call(B) === p;
7493
+ return function(w) {
7494
+ return Object.prototype.toString.call(w) === p;
7791
7495
  };
7792
7496
  }
7793
7497
  n.r(r), n.d(r, "default", function() {
@@ -7798,33 +7502,33 @@ var On = { exports: {} };
7798
7502
  return At;
7799
7503
  });
7800
7504
  var l = c("Array"), y = c("Object"), h = c("Function");
7801
- function w(m, p) {
7505
+ function B(m, p) {
7802
7506
  return h(m.get) ? m.get(p) : m[p];
7803
7507
  }
7804
7508
  function O(m) {
7805
- return function(p, B) {
7806
- if (!l(B) || !B.length) return m(p, B);
7807
- for (var D = 0, E = B.length; D < E; D++)
7808
- if (m(p, w(B, D))) return !0;
7509
+ return function(p, w) {
7510
+ if (!l(w) || !w.length) return m(p, w);
7511
+ for (var D = 0, E = w.length; D < E; D++)
7512
+ if (m(p, B(w, D))) return !0;
7809
7513
  return !1;
7810
7514
  };
7811
7515
  }
7812
- function S(m) {
7813
- return function(p, B) {
7814
- if (!l(B) || !B.length) return m(p, B);
7815
- for (var D = 0, E = B.length; D < E; D++)
7816
- if (!m(p, w(B, D))) return !1;
7516
+ function N(m) {
7517
+ return function(p, w) {
7518
+ if (!l(w) || !w.length) return m(p, w);
7519
+ for (var D = 0, E = w.length; D < E; D++)
7520
+ if (!m(p, B(w, D))) return !1;
7817
7521
  return !0;
7818
7522
  };
7819
7523
  }
7820
- function U(m, p, B, D) {
7821
- return m.validate(m.options, p, B, D);
7524
+ function z(m, p, w, D) {
7525
+ return m.validate(m.options, p, w, D);
7822
7526
  }
7823
7527
  var $ = {
7824
7528
  $eq: O(function(m, p) {
7825
7529
  return m(p);
7826
7530
  }),
7827
- $ne: S(function(m, p) {
7531
+ $ne: N(function(m, p) {
7828
7532
  return m(p);
7829
7533
  }),
7830
7534
  $gt: O(function(m, p) {
@@ -7848,115 +7552,115 @@ var On = { exports: {} };
7848
7552
  $nin: function(m, p) {
7849
7553
  return m(p);
7850
7554
  },
7851
- $not: function(m, p, B, D) {
7852
- return m(p, B, D);
7555
+ $not: function(m, p, w, D) {
7556
+ return m(p, w, D);
7853
7557
  },
7854
7558
  $type: function(m, p) {
7855
7559
  return m(p);
7856
7560
  },
7857
- $all: function(m, p, B, D) {
7858
- return $.$and(m, p, B, D);
7561
+ $all: function(m, p, w, D) {
7562
+ return $.$and(m, p, w, D);
7859
7563
  },
7860
7564
  $size: function(m, p) {
7861
7565
  return !!p && m === p.length;
7862
7566
  },
7863
- $or: function(m, p, B, D) {
7864
- for (var E = 0, Y = m.length; E < Y; E++)
7865
- if (U(w(m, E), p, B, D)) return !0;
7567
+ $or: function(m, p, w, D) {
7568
+ for (var E = 0, P = m.length; E < P; E++)
7569
+ if (z(B(m, E), p, w, D)) return !0;
7866
7570
  return !1;
7867
7571
  },
7868
- $nor: function(m, p, B, D) {
7869
- return !$.$or(m, p, B, D);
7572
+ $nor: function(m, p, w, D) {
7573
+ return !$.$or(m, p, w, D);
7870
7574
  },
7871
- $and: function(m, p, B, D) {
7872
- for (var E = 0, Y = m.length; E < Y; E++)
7873
- if (!U(w(m, E), p, B, D)) return !1;
7575
+ $and: function(m, p, w, D) {
7576
+ for (var E = 0, P = m.length; E < P; E++)
7577
+ if (!z(B(m, E), p, w, D)) return !1;
7874
7578
  return !0;
7875
7579
  },
7876
7580
  $regex: O(function(m, p) {
7877
7581
  return typeof p == "string" && m.test(p);
7878
7582
  }),
7879
- $where: function(m, p, B, D) {
7880
- return m.call(p, p, B, D);
7583
+ $where: function(m, p, w, D) {
7584
+ return m.call(p, p, w, D);
7881
7585
  },
7882
- $elemMatch: function(m, p, B, D) {
7883
- return l(p) ? !!~function(E, Y) {
7586
+ $elemMatch: function(m, p, w, D) {
7587
+ return l(p) ? !!~function(E, P) {
7884
7588
  for (var q = 0; q < E.length; q++)
7885
- if (w(E, q), U(Y, w(E, q))) return q;
7589
+ if (B(E, q), z(P, B(E, q))) return q;
7886
7590
  return -1;
7887
- }(p, m) : U(m, p, B, D);
7591
+ }(p, m) : z(m, p, w, D);
7888
7592
  },
7889
- $exists: function(m, p, B, D) {
7890
- return D.hasOwnProperty(B) === m;
7593
+ $exists: function(m, p, w, D) {
7594
+ return D.hasOwnProperty(w) === m;
7891
7595
  }
7892
7596
  }, re = {
7893
- $eq: function(m, p, B) {
7894
- var D = B.comparable, E = B.compare;
7895
- return m instanceof RegExp ? O(function(Y) {
7896
- return typeof Y == "string" && m.test(Y);
7897
- }) : m instanceof Function ? O(m) : l(m) && !m.length ? O(function(Y) {
7898
- return l(Y) && !Y.length;
7597
+ $eq: function(m, p, w) {
7598
+ var D = w.comparable, E = w.compare;
7599
+ return m instanceof RegExp ? O(function(P) {
7600
+ return typeof P == "string" && m.test(P);
7601
+ }) : m instanceof Function ? O(m) : l(m) && !m.length ? O(function(P) {
7602
+ return l(P) && !P.length;
7899
7603
  }) : O(
7900
- m === null ? function(Y) {
7901
- return Y == null;
7902
- } : function(Y) {
7903
- return E(D(Y), D(m)) === 0;
7604
+ m === null ? function(P) {
7605
+ return P == null;
7606
+ } : function(P) {
7607
+ return E(D(P), D(m)) === 0;
7904
7608
  }
7905
7609
  );
7906
7610
  },
7907
- $gt: function(m, p, B) {
7908
- var D = B.comparable, E = B.compare;
7909
- return function(Y) {
7910
- return E(D(Y), D(m)) > 0;
7611
+ $gt: function(m, p, w) {
7612
+ var D = w.comparable, E = w.compare;
7613
+ return function(P) {
7614
+ return E(D(P), D(m)) > 0;
7911
7615
  };
7912
7616
  },
7913
- $gte: function(m, p, B) {
7914
- var D = B.comparable, E = B.compare;
7915
- return function(Y) {
7916
- return E(D(Y), D(m)) >= 0;
7617
+ $gte: function(m, p, w) {
7618
+ var D = w.comparable, E = w.compare;
7619
+ return function(P) {
7620
+ return E(D(P), D(m)) >= 0;
7917
7621
  };
7918
7622
  },
7919
- $lt: function(m, p, B) {
7920
- var D = B.comparable, E = B.compare;
7921
- return function(Y) {
7922
- return E(D(Y), D(m)) < 0;
7623
+ $lt: function(m, p, w) {
7624
+ var D = w.comparable, E = w.compare;
7625
+ return function(P) {
7626
+ return E(D(P), D(m)) < 0;
7923
7627
  };
7924
7628
  },
7925
- $lte: function(m, p, B) {
7926
- var D = B.comparable, E = B.compare;
7927
- return function(Y) {
7928
- return E(D(Y), D(m)) <= 0;
7629
+ $lte: function(m, p, w) {
7630
+ var D = w.comparable, E = w.compare;
7631
+ return function(P) {
7632
+ return E(D(P), D(m)) <= 0;
7929
7633
  };
7930
7634
  },
7931
- $in: function(m, p, B) {
7932
- var D = B.comparable;
7635
+ $in: function(m, p, w) {
7636
+ var D = w.comparable;
7933
7637
  return function(E) {
7934
7638
  if (!(E instanceof Array)) {
7935
- var Y = D(E);
7936
- if (Y === E && a(E) === "object") {
7639
+ var P = D(E);
7640
+ if (P === E && a(E) === "object") {
7937
7641
  for (R = m.length; R--; )
7938
7642
  if (String(m[R]) === String(E) && String(E) !== "[object Object]")
7939
7643
  return !0;
7940
7644
  }
7941
- if (Y === void 0) {
7645
+ if (P === void 0) {
7942
7646
  for (R = m.length; R--; ) if (m[R] == null) return !0;
7943
7647
  }
7944
7648
  for (R = m.length; R--; ) {
7945
- var q = U(lt(w(m, R), B), Y, R, m);
7946
- if (q && String(q) !== "[object Object]" && String(Y) !== "[object Object]")
7649
+ var q = z(lt(B(m, R), w), P, R, m);
7650
+ if (q && String(q) !== "[object Object]" && String(P) !== "[object Object]")
7947
7651
  return !0;
7948
7652
  }
7949
- return !!~m.indexOf(Y);
7653
+ return !!~m.indexOf(P);
7950
7654
  }
7951
7655
  for (var R = E.length; R--; )
7952
- if (~m.indexOf(D(w(E, R)))) return !0;
7656
+ if (~m.indexOf(D(B(E, R)))) return !0;
7953
7657
  return !1;
7954
7658
  };
7955
7659
  },
7956
- $nin: function(m, p, B) {
7957
- var D = re.$in(m, p, B);
7958
- return function(E, Y, q, R) {
7959
- return !D(E, Y, q, R);
7660
+ $nin: function(m, p, w) {
7661
+ var D = re.$in(m, p, w);
7662
+ return function(E, P, q, R) {
7663
+ return !D(E, P, q, R);
7960
7664
  };
7961
7665
  },
7962
7666
  $mod: function(m) {
@@ -7964,32 +7668,32 @@ var On = { exports: {} };
7964
7668
  return p % m[0] == m[1];
7965
7669
  };
7966
7670
  },
7967
- $ne: function(m, p, B) {
7968
- var D = re.$eq(m, p, B);
7969
- return S(function(E, Y, q, R) {
7970
- return !D(E, Y, q, R);
7671
+ $ne: function(m, p, w) {
7672
+ var D = re.$eq(m, p, w);
7673
+ return N(function(E, P, q, R) {
7674
+ return !D(E, P, q, R);
7971
7675
  });
7972
7676
  },
7973
- $and: function(m, p, B) {
7974
- return m.map(be(B));
7677
+ $and: function(m, p, w) {
7678
+ return m.map(be(w));
7975
7679
  },
7976
- $all: function(m, p, B) {
7977
- return re.$and(m, p, B);
7680
+ $all: function(m, p, w) {
7681
+ return re.$and(m, p, w);
7978
7682
  },
7979
- $or: function(m, p, B) {
7980
- return m.map(be(B));
7683
+ $or: function(m, p, w) {
7684
+ return m.map(be(w));
7981
7685
  },
7982
- $nor: function(m, p, B) {
7983
- return m.map(be(B));
7686
+ $nor: function(m, p, w) {
7687
+ return m.map(be(w));
7984
7688
  },
7985
- $not: function(m, p, B) {
7986
- var D = be(B)(m);
7987
- return function(E, Y, q) {
7988
- return !U(D, E, Y, q);
7689
+ $not: function(m, p, w) {
7690
+ var D = be(w)(m);
7691
+ return function(E, P, q) {
7692
+ return !z(D, E, P, q);
7989
7693
  };
7990
7694
  },
7991
7695
  $type: function(m) {
7992
- return function(p, B, D) {
7696
+ return function(p, w, D) {
7993
7697
  return p != null && (p instanceof m || p.constructor == m);
7994
7698
  };
7995
7699
  },
@@ -8002,8 +7706,8 @@ var On = { exports: {} };
8002
7706
  'In CSP mode, sift does not support strings in "$where" condition'
8003
7707
  );
8004
7708
  },
8005
- $elemMatch: function(m, p, B) {
8006
- return be(B)(m);
7709
+ $elemMatch: function(m, p, w) {
7710
+ return be(w)(m);
8007
7711
  },
8008
7712
  $exists: function(m) {
8009
7713
  return !!m;
@@ -8013,29 +7717,29 @@ var On = { exports: {} };
8013
7717
  return { options: m, validate: p };
8014
7718
  }
8015
7719
  function ne(m, p) {
8016
- var B = m.keyPath, D = m.child, E = m.query, Y = [];
7720
+ var w = m.keyPath, D = m.child, E = m.query, P = [];
8017
7721
  if (function i(g, d, b, M, G) {
8018
7722
  if (b === d.length || g == null)
8019
7723
  return void G.push([g, d[b - 1], M]);
8020
- var F = w(d, b);
7724
+ var F = B(d, b);
8021
7725
  if (l(g) && isNaN(Number(F)))
8022
- for (var k = 0, j = g.length; k < j; k++) i(w(g, k), d, b, g, G);
8023
- else i(w(g, F), d, b + 1, g, G);
8024
- }(p, B, 0, p, Y), Y.length === 1) {
8025
- var q = Y[0];
8026
- return U(D, q[0], q[1], q[2]);
7726
+ for (var k = 0, j = g.length; k < j; k++) i(B(g, k), d, b, g, G);
7727
+ else i(B(g, F), d, b + 1, g, G);
7728
+ }(p, w, 0, p, P), P.length === 1) {
7729
+ var q = P[0];
7730
+ return z(D, q[0], q[1], q[2]);
8027
7731
  }
8028
- for (var R = E && E.$ne !== void 0, _ = R, se = 0; se < Y.length; se++) {
8029
- var f = Y[se], u = U(D, f[0], f[1], f[2]);
7732
+ for (var R = E && E.$ne !== void 0, _ = R, se = 0; se < P.length; se++) {
7733
+ var f = P[se], u = z(D, f[0], f[1], f[2]);
8030
7734
  R ? _ &= u : _ |= u;
8031
7735
  }
8032
7736
  return _;
8033
7737
  }
8034
- function Jt(m, p, B) {
8035
- return me({ keyPath: m, child: p, query: B }, ne);
7738
+ function Jt(m, p, w) {
7739
+ return me({ keyPath: m, child: p, query: w }, ne);
8036
7740
  }
8037
7741
  function be(m) {
8038
- var p = m.comparable, B = m.expressions, D = function(q) {
7742
+ var p = m.comparable, w = m.expressions, D = function(q) {
8039
7743
  var R;
8040
7744
  return (!q || !(R = q) || R.constructor !== Object && R.constructor !== Array && R.constructor.toString() !== "function Object() { [native code] }" && R.constructor.toString() !== "function Array() { [native code] }" || R.toJSON) && (q = { $eq: q }), q;
8041
7745
  }, E = function(q) {
@@ -8044,61 +7748,61 @@ var On = { exports: {} };
8044
7748
  for (var _ in q) {
8045
7749
  var se = q[_];
8046
7750
  if (_ !== "$options") {
8047
- var f = $[_] || m && B && B[_];
7751
+ var f = $[_] || m && w && w[_];
8048
7752
  if (f) re[_] && (se = re[_](se, q, m)), R.push(me(p(se), f));
8049
7753
  else {
8050
7754
  if (_.charCodeAt(0) === 36)
8051
7755
  throw new Error("Unknown operation " + _);
8052
7756
  var u = _.split(".");
8053
- R.push(Jt(u, Y(se), se));
7757
+ R.push(Jt(u, P(se), se));
8054
7758
  }
8055
7759
  }
8056
7760
  }
8057
7761
  return R.length === 1 ? R[0] : me(R, $.$and);
8058
- }, Y = function(q) {
7762
+ }, P = function(q) {
8059
7763
  return q = D(q), function R(_, se) {
8060
7764
  if (!y(_)) return se;
8061
7765
  for (var f in _) se.push(f), R(_[f], se);
8062
7766
  return se;
8063
- }(q, []).join(",").search(/[$.]/) === -1 ? me(q, Se) : E(q);
7767
+ }(q, []).join(",").search(/[$.]/) === -1 ? me(q, Ne) : E(q);
8064
7768
  };
8065
7769
  return function(q) {
8066
7770
  return E(D(q));
8067
7771
  };
8068
7772
  }
8069
- function Se(m, p) {
7773
+ function Ne(m, p) {
8070
7774
  if (Object.prototype.toString.call(m) !== Object.prototype.toString.call(p))
8071
7775
  return !1;
8072
7776
  if (y(m)) {
8073
7777
  if (Object.keys(m).length !== Object.keys(p).length) return !1;
8074
- for (var B in m) if (!Se(m[B], p[B])) return !1;
7778
+ for (var w in m) if (!Ne(m[w], p[w])) return !1;
8075
7779
  return !0;
8076
7780
  }
8077
7781
  if (l(m)) {
8078
7782
  if (m.length !== p.length) return !1;
8079
7783
  for (var D = 0, E = m.length; D < E; D++)
8080
- if (!Se(m[D], p[D])) return !1;
7784
+ if (!Ne(m[D], p[D])) return !1;
8081
7785
  return !0;
8082
7786
  }
8083
7787
  return m === p;
8084
7788
  }
8085
7789
  function lt(m, p) {
8086
- var B = be(p)(m);
8087
- return p && p.select && (B = {
8088
- options: B,
8089
- validate: function(D, E, Y, q) {
8090
- return U(D, E && p.select(E), Y, q);
7790
+ var w = be(p)(m);
7791
+ return p && p.select && (w = {
7792
+ options: w,
7793
+ validate: function(D, E, P, q) {
7794
+ return z(D, E && p.select(E), P, q);
8091
7795
  }
8092
- }), B;
7796
+ }), w;
8093
7797
  }
8094
7798
  function Dt(m, p) {
8095
- var B = lt(m, p = Object.assign({ compare: ut, comparable: At }, p));
8096
- return function(D, E, Y) {
8097
- return U(B, D, E, Y);
7799
+ var w = lt(m, p = Object.assign({ compare: ut, comparable: At }, p));
7800
+ return function(D, E, P) {
7801
+ return z(w, D, E, P);
8098
7802
  };
8099
7803
  }
8100
7804
  function ut(m, p) {
8101
- if (Se(m, p)) return 0;
7805
+ if (Ne(m, p)) return 0;
8102
7806
  if (a(m) === a(p)) {
8103
7807
  if (m > p) return 1;
8104
7808
  if (m < p) return -1;
@@ -8130,10 +7834,10 @@ function js(e) {
8130
7834
  return s.__proto__ || Object.getPrototypeOf(s);
8131
7835
  }, js(e);
8132
7836
  }
8133
- function Ut(e, t) {
8134
- return Ut = Object.setPrototypeOf || function(r, n) {
7837
+ function zt(e, t) {
7838
+ return zt = Object.setPrototypeOf || function(r, n) {
8135
7839
  return r.__proto__ = n, r;
8136
- }, Ut(e, t);
7840
+ }, zt(e, t);
8137
7841
  }
8138
7842
  function gc() {
8139
7843
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
@@ -8150,7 +7854,7 @@ function Gt(e, t, s) {
8150
7854
  var l = [null];
8151
7855
  l.push.apply(l, a);
8152
7856
  var y = Function.bind.apply(n, l), h = new y();
8153
- return c && Ut(h, c.prototype), h;
7857
+ return c && zt(h, c.prototype), h;
8154
7858
  }, Gt.apply(null, arguments);
8155
7859
  }
8156
7860
  function pc(e) {
@@ -8176,7 +7880,7 @@ function Es(e) {
8176
7880
  writable: !0,
8177
7881
  configurable: !0
8178
7882
  }
8179
- }), Ut(n, r);
7883
+ }), zt(n, r);
8180
7884
  }, Es(e);
8181
7885
  }
8182
7886
  function rr(e) {
@@ -8222,7 +7926,7 @@ var Fn = function(t) {
8222
7926
  this.subject = n.subject, this.subjectName = n.subjectName, this.action = n.action, this.field = n.field;
8223
7927
  }, t;
8224
7928
  }(Es(Error));
8225
- function Ps(e) {
7929
+ function Ys(e) {
8226
7930
  return Array.isArray(e) ? e : [e];
8227
7931
  }
8228
7932
  function hc(e) {
@@ -8234,9 +7938,9 @@ function hc(e) {
8234
7938
  function yc(e) {
8235
7939
  return JSON.parse(JSON.stringify(e));
8236
7940
  }
8237
- var bc = /[-/\\^$+?.()|[\]{}]/g, vc = /\.?\*+\.?/g, wc = /\*+/, Bc = /\./g;
7941
+ var bc = /[-/\\^$+?.()|[\]{}]/g, vc = /\.?\*+\.?/g, Bc = /\*+/, wc = /\./g;
8238
7942
  function Mc(e, t, s) {
8239
- var r = s[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", n = e.indexOf("**") === -1 ? "[^.]" : ".", a = e.replace(Bc, "\\$&").replace(wc, n + r);
7943
+ var r = s[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", n = e.indexOf("**") === -1 ? "[^.]" : ".", a = e.replace(wc, "\\$&").replace(Bc, n + r);
8240
7944
  return t + e.length === s.length ? "(?:" + a + ")?" : a;
8241
7945
  }
8242
7946
  function Cc(e, t, s) {
@@ -8250,7 +7954,7 @@ function Dc(e) {
8250
7954
  }
8251
7955
  var xc = /* @__PURE__ */ function() {
8252
7956
  function e(s) {
8253
- this.actions = s.actions || s.action, this.subject = s.subject, this.fields = !s.fields || s.fields.length === 0 ? void 0 : Ps(s.fields), Object.defineProperty(this, "_fieldsPattern", {
7957
+ this.actions = s.actions || s.action, this.subject = s.subject, this.fields = !s.fields || s.fields.length === 0 ? void 0 : Ys(s.fields), Object.defineProperty(this, "_fieldsPattern", {
8254
7958
  writable: !0
8255
7959
  }), this.inverted = !!s.inverted, this.conditions = s.conditions, Object.defineProperty(this, "_matches", {
8256
7960
  writable: !0,
@@ -8305,14 +8009,14 @@ var jc = /* @__PURE__ */ function() {
8305
8009
  return this[de].indexedRules = a.rules, this[de].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", n), this;
8306
8010
  }, t.buildIndexFor = function(r) {
8307
8011
  for (var n = /* @__PURE__ */ Object.create(null), a = this[de].RuleType, c = !0, l = !1, y = 0; y < r.length; y++) {
8308
- var h = new a(r[y]), w = this.expandActions(h.actions), O = Ps(h.subject), S = r.length - y - 1;
8012
+ var h = new a(r[y]), B = this.expandActions(h.actions), O = Ys(h.subject), N = r.length - y - 1;
8309
8013
  c = !!(c && h.inverted), !l && h.fields && (l = !0);
8310
- for (var U = 0; U < O.length; U++) {
8311
- var $ = O[U];
8014
+ for (var z = 0; z < O.length; z++) {
8015
+ var $ = O[z];
8312
8016
  n[$] = n[$] || /* @__PURE__ */ Object.create(null);
8313
- for (var re = 0; re < w.length; re++) {
8314
- var me = w[re];
8315
- n[$][me] = n[$][me] || /* @__PURE__ */ Object.create(null), n[$][me][S] = h;
8017
+ for (var re = 0; re < B.length; re++) {
8018
+ var me = B[re];
8019
+ n[$][me] = n[$][me] || /* @__PURE__ */ Object.create(null), n[$][me][N] = h;
8316
8020
  }
8317
8021
  }
8318
8022
  }
@@ -8322,7 +8026,7 @@ var jc = /* @__PURE__ */ function() {
8322
8026
  rules: n
8323
8027
  };
8324
8028
  }, t.expandActions = function(r) {
8325
- for (var n = this[de].aliases, a = Ps(r), c = 0; c < a.length; ) {
8029
+ for (var n = this[de].aliases, a = Ys(r), c = 0; c < a.length; ) {
8326
8030
  var l = a[c++];
8327
8031
  n.hasOwnProperty(l) && (a = a.concat(n[l]));
8328
8032
  }
@@ -8386,7 +8090,7 @@ function Ol(e) {
8386
8090
  const t = Object.entries(nn).find(([, s]) => s === e);
8387
8091
  return t ? t[0] : e;
8388
8092
  }
8389
- function Pc(e) {
8093
+ function Yc(e) {
8390
8094
  return e.map((t) => ({
8391
8095
  ...t,
8392
8096
  subject: Ec(t.subject),
@@ -8394,15 +8098,15 @@ function Pc(e) {
8394
8098
  }));
8395
8099
  }
8396
8100
  function qn(e) {
8397
- return new jc(Pc(e));
8101
+ return new jc(Yc(e));
8398
8102
  }
8399
- function Yc(e, t) {
8103
+ function Pc(e, t) {
8400
8104
  return e.rulesFor(t.action, t.subject, t.field).some((s) => !s.inverted);
8401
8105
  }
8402
8106
  function In(e, t) {
8403
- return t.coverSubject === void 0 ? !1 : t.coverSubjectMode !== "directOverride" ? !0 : !Yc(e, t);
8107
+ return t.coverSubject === void 0 ? !1 : t.coverSubjectMode !== "directOverride" ? !0 : !Pc(e, t);
8404
8108
  }
8405
- function Ys(e, t) {
8109
+ function Ps(e, t) {
8406
8110
  const s = qn(t), r = (l) => s.can(l.action, l.subject, l.field) ? !0 : In(s, l) ? s.can(l.action, l.coverSubject, l.field) : !1, n = e.find((l) => !r(l));
8407
8111
  if (n) {
8408
8112
  const l = s.relevantRuleFor(
@@ -8420,7 +8124,7 @@ function Ys(e, t) {
8420
8124
  return { granted: !0, decisivePermission: a, decisiveRule: c ?? null };
8421
8125
  }
8422
8126
  function Gc(e, t) {
8423
- const s = Ys([e], t);
8127
+ const s = Ps([e], t);
8424
8128
  if (!s.granted)
8425
8129
  return { ...s, conditionEvaluation: "not_enforced" };
8426
8130
  const r = qn(t), n = In(r, e) ? e.coverSubject : void 0, a = [e.subject, n].filter(
@@ -8441,7 +8145,7 @@ function Gc(e, t) {
8441
8145
  }
8442
8146
  function Vc(e, t, s) {
8443
8147
  const r = arguments.length >= 3;
8444
- return Array.isArray(e) ? Ys(e, t) : r ? Gc(e, t) : Ys([e], t);
8148
+ return Array.isArray(e) ? Ps(e, t) : r ? Gc(e, t) : Ps([e], t);
8445
8149
  }
8446
8150
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
8447
8151
  const Oc = () => {
@@ -8457,27 +8161,27 @@ function Fc(e, t, s) {
8457
8161
  shallow: c = !0,
8458
8162
  onError: l = Oc
8459
8163
  } = r, y = Qe(!n), h = c ? kn(t) : Qe(t);
8460
- let w = 0;
8164
+ let B = 0;
8461
8165
  return ir(async (O) => {
8462
8166
  if (!y.value)
8463
8167
  return;
8464
- w++;
8465
- const S = w;
8466
- let U = !1;
8168
+ B++;
8169
+ const N = B;
8170
+ let z = !1;
8467
8171
  a && Promise.resolve().then(() => {
8468
8172
  a.value = !0;
8469
8173
  });
8470
8174
  try {
8471
8175
  const $ = await e((re) => {
8472
8176
  O(() => {
8473
- a && (a.value = !1), U || re();
8177
+ a && (a.value = !1), z || re();
8474
8178
  });
8475
8179
  });
8476
- S === w && (h.value = $);
8180
+ N === B && (h.value = $);
8477
8181
  } catch ($) {
8478
8182
  l($);
8479
8183
  } finally {
8480
- a && S === w && (a.value = !1), U = !0;
8184
+ a && N === B && (a.value = !1), z = !0;
8481
8185
  }
8482
8186
  }), n ? Os(() => (y.value = !0, h.value)) : h;
8483
8187
  }
@@ -8554,38 +8258,38 @@ const Rc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
8554
8258
  subtitle: "哎呀!您没有权限访问此页面。"
8555
8259
  }, Tc = {
8556
8260
  noPermission: kc
8557
- }, Sc = {
8261
+ }, Nc = {
8558
8262
  title: "存取被拒絕",
8559
8263
  subtitle: "哎呀!您沒有權限存取此頁面。"
8560
- }, Nc = {
8561
- noPermission: Sc
8264
+ }, Sc = {
8265
+ noPermission: Nc
8562
8266
  }, Zc = {
8563
8267
  title: "การเข้าถึงถูกปฏิเสธ",
8564
8268
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
8565
- }, Uc = {
8269
+ }, zc = {
8566
8270
  noPermission: Zc
8567
- }, zc = { class: "w-full h-full flex justify-center items-center" }, Wc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Lc = { class: "w-[300px] h-[300px]" }, Kc = ["src"], Jc = { class: "text-2xl" }, _c = { class: "text-xl" }, $c = /* @__PURE__ */ it({
8271
+ }, Uc = { class: "w-full h-full flex justify-center items-center" }, Wc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Lc = { class: "w-[300px] h-[300px]" }, Kc = ["src"], Jc = { class: "text-2xl" }, _c = { class: "text-xl" }, $c = /* @__PURE__ */ it({
8568
8272
  __name: "NoPermission",
8569
8273
  setup(e) {
8570
8274
  const { t } = dr({
8571
8275
  messages: {
8572
8276
  "en-US": Qc,
8573
8277
  "zh-CN": Tc,
8574
- "zh-Hant": Nc,
8575
- "th-TH": Uc
8278
+ "zh-Hant": Sc,
8279
+ "th-TH": zc
8576
8280
  }
8577
8281
  });
8578
- return (s, r) => (ct(), lr("div", zc, [
8579
- Ue("div", Wc, [
8580
- Ue("div", Lc, [
8581
- Ue("img", {
8582
- src: ze(Rc),
8282
+ return (s, r) => (ct(), lr("div", Uc, [
8283
+ ze("div", Wc, [
8284
+ ze("div", Lc, [
8285
+ ze("img", {
8286
+ src: Ue(Rc),
8583
8287
  class: "w-full h-full"
8584
8288
  }, null, 8, Kc)
8585
8289
  ]),
8586
- Ue("div", null, [
8587
- Ue("h1", Jc, Ws(ze(t)("noPermission.title")), 1),
8588
- Ue("h2", _c, Ws(ze(t)("noPermission.subtitle")), 1)
8290
+ ze("div", null, [
8291
+ ze("h1", Jc, Ws(Ue(t)("noPermission.title")), 1),
8292
+ ze("h2", _c, Ws(Ue(t)("noPermission.subtitle")), 1)
8589
8293
  ])
8590
8294
  ])
8591
8295
  ]));
@@ -8594,14 +8298,14 @@ const Rc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
8594
8298
  __name: "PermissionWrapper",
8595
8299
  setup(e) {
8596
8300
  const t = Hc();
8597
- return (s, r) => ze(t) === ze(Gs).Denied ? (ct(), zt($c, { key: 0 })) : ze(t) === ze(Gs).Allowed ? cr(s.$slots, "default", { key: 1 }) : Tn("", !0);
8301
+ return (s, r) => Ue(t) === Ue(Gs).Denied ? (ct(), Ut($c, { key: 0 })) : Ue(t) === Ue(Gs).Allowed ? cr(s.$slots, "default", { key: 1 }) : Tn("", !0);
8598
8302
  }
8599
8303
  });
8600
8304
  function Kt(e) {
8601
8305
  return {
8602
8306
  inheritAttrs: !1,
8603
8307
  setup(t, { attrs: s }) {
8604
- return () => zs(el, {}, { default: () => zs(e, s) });
8308
+ return () => Us(el, {}, { default: () => Us(e, s) });
8605
8309
  }
8606
8310
  };
8607
8311
  }
@@ -8619,8 +8323,8 @@ function tl(e, t) {
8619
8323
  }
8620
8324
  }
8621
8325
  let n = null;
8622
- return Sn(e, async (a) => {
8623
- a && (await Nn(), r());
8326
+ return Nn(e, async (a) => {
8327
+ a && (await Sn(), r());
8624
8328
  }), ur(() => {
8625
8329
  window.addEventListener("resize", r), n = new ResizeObserver(r), n.observe(document.body);
8626
8330
  }), Zn(() => {
@@ -8640,7 +8344,7 @@ const sl = /* @__PURE__ */ it({
8640
8344
  return (a, c) => (ct(), lr("div", {
8641
8345
  ref_key: "wrapper",
8642
8346
  ref: s,
8643
- style: Un(n.value)
8347
+ style: zn(n.value)
8644
8348
  }, [
8645
8349
  cr(a.$slots, "default")
8646
8350
  ], 4));
@@ -8650,9 +8354,9 @@ const sl = /* @__PURE__ */ it({
8650
8354
  setup(e) {
8651
8355
  return (t, s) => {
8652
8356
  const r = Fs("FmCircularProgress");
8653
- return ct(), zt(sl, null, {
8654
- default: zn(() => [
8655
- Ue("div", rl, [
8357
+ return ct(), Ut(sl, null, {
8358
+ default: Un(() => [
8359
+ ze("div", rl, [
8656
8360
  Wn(r, { size: "xl" })
8657
8361
  ])
8658
8362
  ]),
@@ -8660,7 +8364,7 @@ const sl = /* @__PURE__ */ it({
8660
8364
  });
8661
8365
  };
8662
8366
  }
8663
- }), Be = (e) => Ln({
8367
+ }), we = (e) => Ln({
8664
8368
  loader: e,
8665
8369
  loadingComponent: nl
8666
8370
  });
@@ -8674,10 +8378,10 @@ const Et = (e) => ({
8674
8378
  }
8675
8379
  ]
8676
8380
  }
8677
- }), al = Kt(Be(() => import("./Main-laHdN12w.js"))), ol = Kt(Be(() => import("./Main-Csma2yIU.js"))), il = Kt(
8678
- Be(() => import("./AuditLogList-Bv4fkVpI.js"))
8679
- ), cl = Kt(Be(() => import("./Main-Da_g7CTz.js"))), ll = Be(() => import("./ApprovalCodeList-BvZs3tn-.js")), ul = Be(() => import("./GrantUserList-BOxUsFcl.js")), Al = Be(() => import("./EmployeeList-BDTcK6GD.js")), dl = Be(() => import("./RoleList-CnuSsHaU.js")), ml = Be(() => import("./TimesheetList-B1Vq7RMs.js")), gl = Be(() => import("./TeamMemberList-mID3B9gL.js")), pl = Be(
8680
- () => import("./PermissionSetList-CpK7M-eA.js")
8381
+ }), al = Kt(we(() => import("./Main-C9-EztWV.js"))), ol = Kt(we(() => import("./Main-Bg0Najd8.js"))), il = Kt(
8382
+ we(() => import("./AuditLogList-B8lU5FU1.js"))
8383
+ ), cl = Kt(we(() => import("./Main-CTsTrR0m.js"))), ll = we(() => import("./ApprovalCodeList-Dpg-lwZA.js")), ul = we(() => import("./GrantUserList-D0YIdpMH.js")), Al = we(() => import("./EmployeeList-ByeniR1c.js")), dl = we(() => import("./RoleList-CQuV9O_f.js")), ml = we(() => import("./TimesheetList-DYJsjODe.js")), gl = we(() => import("./TeamMemberList-DNitiMN5.js")), pl = we(
8384
+ () => import("./PermissionSetList-CqVP3iB8.js")
8681
8385
  ), Fl = [
8682
8386
  {
8683
8387
  path: "/",
@@ -8835,9 +8539,9 @@ const Et = (e) => ({
8835
8539
  c.value !== l && (c.value = l);
8836
8540
  }), (l, y) => {
8837
8541
  const h = Fs("FmCollapsibleTabs");
8838
- return ct(), zt(h, {
8542
+ return ct(), Ut(h, {
8839
8543
  modelValue: c.value,
8840
- "onUpdate:modelValue": y[0] || (y[0] = (w) => c.value = w),
8544
+ "onUpdate:modelValue": y[0] || (y[0] = (B) => c.value = B),
8841
8545
  items: a.value,
8842
8546
  class: "py-16"
8843
8547
  }, null, 8, ["modelValue", "items"]);
@@ -8897,8 +8601,8 @@ var Vs = { exports: {} };
8897
8601
  }
8898
8602
  function F(k) {
8899
8603
  var j;
8900
- k.done ? d(k.value) : (j = k.value, j instanceof i ? j : new i(function(z) {
8901
- z(j);
8604
+ k.done ? d(k.value) : (j = k.value, j instanceof i ? j : new i(function(U) {
8605
+ U(j);
8902
8606
  })).then(M, G);
8903
8607
  }
8904
8608
  F((g = g.apply(f, [])).next());
@@ -8952,8 +8656,8 @@ var Vs = { exports: {} };
8952
8656
  continue;
8953
8657
  }
8954
8658
  j = u.call(f, M);
8955
- } catch (z) {
8956
- j = [6, z], g = 0;
8659
+ } catch (U) {
8660
+ j = [6, U], g = 0;
8957
8661
  } finally {
8958
8662
  i = d = 0;
8959
8663
  }
@@ -8999,18 +8703,18 @@ var Vs = { exports: {} };
8999
8703
  Object.keys(u || {}).includes(g) || i.push(g);
9000
8704
  }), Object.keys(i).length ? i : null;
9001
8705
  }
9002
- var w, O;
9003
- function S(f, u, i) {
8706
+ var B, O;
8707
+ function N(f, u, i) {
9004
8708
  var g = "shortString", d = !0;
9005
8709
  typeof i == "number" && (g = "javaDouble", d = !1), f[g] = f[g] || {}, f[g][u] = d ? i + "" : i;
9006
8710
  }
9007
- function U(f) {
8711
+ function z(f) {
9008
8712
  return !!f && typeof f == "object" && f.value !== void 0;
9009
8713
  }
9010
8714
  function $(f) {
9011
8715
  return Object.fromEntries(Object.entries(f).map(function(u) {
9012
8716
  var i = u[0], g = u[1];
9013
- return [i, U(g) ? g : { value: g }];
8717
+ return [i, z(g) ? g : { value: g }];
9014
8718
  }));
9015
8719
  }
9016
8720
  function re(f) {
@@ -9018,15 +8722,15 @@ var Vs = { exports: {} };
9018
8722
  }
9019
8723
  (function(f) {
9020
8724
  f.NONE = "NONE", f.DEFAULT_FLAGS = "DEFAULT_FLAGS", f.CACHE = "CACHE", f.SERVER = "SERVER";
9021
- })(w || (w = {}));
9022
- var me, ne = null, Jt = "FLAGSMITH_EVENT", be = Jt, Se = "https://edge.api.flagsmith.com/api/v1/", lt = "flagsmith_value_", Dt = "flagsmith_enabled_", ut = "flagsmith_trait_", At = function() {
8725
+ })(B || (B = {}));
8726
+ var me, ne = null, Jt = "FLAGSMITH_EVENT", be = Jt, Ne = "https://edge.api.flagsmith.com/api/v1/", lt = "flagsmith_value_", Dt = "flagsmith_enabled_", ut = "flagsmith_trait_", At = function() {
9023
8727
  function f(u) {
9024
8728
  var i = this;
9025
8729
  this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
9026
8730
  var g = i, d = g.api, b = g.evaluationContext;
9027
8731
  i.log("Get Flags"), i.isLoading = !0, i.loadingState.isFetching || i.setLoadingState(n(n({}, i.loadingState), { isFetching: !0 }));
9028
8732
  var M = "".concat(i.getContext().identity), G = function(F) {
9029
- var k, j, z, ce;
8733
+ var k, j, U, ce;
9030
8734
  if (F && M === "".concat(i.getContext().identity)) {
9031
8735
  var Me = F.flags, ge = F.traits, ve = F.identifier;
9032
8736
  i.isLoading = !1;
@@ -9037,13 +8741,13 @@ var Vs = { exports: {} };
9037
8741
  fe[W.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: W.transient, value: W.trait_value };
9038
8742
  }), i.oldFlags = n({}, i.flags);
9039
8743
  var Ce = h(i.oldFlags, pe), dt = h((k = i.evaluationContext.identity) === null || k === void 0 ? void 0 : k.traits, fe);
9040
- if ((ve || Object.keys(fe).length) && (i.evaluationContext.identity = n(n({}, i.evaluationContext.identity), { traits: fe }), ve && (i.evaluationContext.identity.identifier = ve)), i.flags = pe, i.updateStorage(), i._onChange(i.oldFlags, { isFromServer: !0, flagsChanged: Ce, traitsChanged: dt }, i._loadedState(null, w.SERVER)), i.datadogRum) try {
8744
+ if ((ve || Object.keys(fe).length) && (i.evaluationContext.identity = n(n({}, i.evaluationContext.identity), { traits: fe }), ve && (i.evaluationContext.identity.identifier = ve)), i.flags = pe, i.updateStorage(), i._onChange(i.oldFlags, { isFromServer: !0, flagsChanged: Ce, traitsChanged: dt }, i._loadedState(null, B.SERVER)), i.datadogRum) try {
9041
8745
  if (i.datadogRum.trackTraits) {
9042
8746
  var mt = {};
9043
8747
  Object.keys(((j = i.evaluationContext.identity) === null || j === void 0 ? void 0 : j.traits) || {}).map(function(W) {
9044
8748
  mt[ut + W] = i.getTrait(W);
9045
8749
  });
9046
- var _e = n(n(n({}, i.datadogRum.client.getUser()), { id: i.datadogRum.client.getUser().id || ((z = i.evaluationContext.identity) === null || z === void 0 ? void 0 : z.identifier) }), mt);
8750
+ var _e = n(n(n({}, i.datadogRum.client.getUser()), { id: i.datadogRum.client.getUser().id || ((U = i.evaluationContext.identity) === null || U === void 0 ? void 0 : U.identifier) }), mt);
9047
8751
  i.log("Setting Datadog user", _e), i.datadogRum.client.setUser(_e);
9048
8752
  }
9049
8753
  } catch (W) {
@@ -9052,9 +8756,9 @@ var Vs = { exports: {} };
9052
8756
  if (i.dtrum) try {
9053
8757
  var le = { javaDouble: {}, date: {}, shortString: {}, javaLongOrObject: {} };
9054
8758
  Object.keys(i.flags).map(function(W) {
9055
- S(le, lt + W, i.getValue(W, { skipAnalytics: !0 })), S(le, Dt + W, i.hasFeature(W, { skipAnalytics: !0 }));
8759
+ N(le, lt + W, i.getValue(W, { skipAnalytics: !0 })), N(le, Dt + W, i.hasFeature(W, { skipAnalytics: !0 }));
9056
8760
  }), Object.keys(((ce = i.evaluationContext.identity) === null || ce === void 0 ? void 0 : ce.traits) || {}).map(function(W) {
9057
- S(le, ut + W, i.getTrait(W));
8761
+ N(le, ut + W, i.getTrait(W));
9058
8762
  }), i.log("Sending javaLongOrObject traits to dynatrace", le.javaLongOrObject), i.log("Sending date traits to dynatrace", le.date), i.log("Sending shortString traits to dynatrace", le.shortString), i.log("Sending javaDouble to dynatrace", le.javaDouble), i.dtrum.sendSessionProperties(le.javaLongOrObject, le.date, le.shortString, le.javaDouble);
9059
8763
  } catch (W) {
9060
8764
  console.error(W);
@@ -9084,7 +8788,7 @@ var Vs = { exports: {} };
9084
8788
  }).catch(function(d) {
9085
8789
  i.log("Exception fetching evaluationEvent", d);
9086
8790
  }) : void 0;
9087
- }, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source: w.NONE }, this.canUseStorage = !1, this.analyticsInterval = null, this.api = null, this.cacheFlags = !1, this.ts = null, this.enableAnalytics = !1, this.enableLogs = !1, this.evaluationContext = {}, this.evaluationEvent = null, this.flags = null, this.getFlagInterval = null, this.headers = null, this.initialised = !1, this.oldFlags = null, this.onChange = null, this.onError = null, this.ticks = null, this.timer = null, this.dtrum = null, this.withTraits = null, this.cacheOptions = { ttl: 0, skipAPI: !1, loadStale: !1, storageKey: void 0 }, this.getValue = function(g, d, b) {
8791
+ }, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source: B.NONE }, this.canUseStorage = !1, this.analyticsInterval = null, this.api = null, this.cacheFlags = !1, this.ts = null, this.enableAnalytics = !1, this.enableLogs = !1, this.evaluationContext = {}, this.evaluationEvent = null, this.flags = null, this.getFlagInterval = null, this.headers = null, this.initialised = !1, this.oldFlags = null, this.onChange = null, this.onError = null, this.ticks = null, this.timer = null, this.dtrum = null, this.withTraits = null, this.cacheOptions = { ttl: 0, skipAPI: !1, loadStale: !1, storageKey: void 0 }, this.getValue = function(g, d, b) {
9088
8792
  var M = i.flags && i.flags[g.toLowerCase().replace(/ /g, "_")], G = null;
9089
8793
  if (M && (G = M.value), d != null && d.skipAnalytics || b || i.evaluateFlag(g, "VALUE"), G === null && (d == null ? void 0 : d.fallback) !== void 0) return d.fallback;
9090
8794
  if (d != null && d.json) try {
@@ -9116,7 +8820,7 @@ var Vs = { exports: {} };
9116
8820
  var d;
9117
8821
  if (i.api) return i.setContext(n(n({}, i.evaluationContext), { identity: n(n({}, i.evaluationContext.identity), { traits: n(n({}, (d = i.evaluationContext.identity) === null || d === void 0 ? void 0 : d.traits), Object.fromEntries(Object.entries(g).map(function(b) {
9118
8822
  var M = b[0], G = b[1];
9119
- return [M, U(G) ? G : { value: G }];
8823
+ return [M, z(G) ? G : { value: G }];
9120
8824
  }))) }) }));
9121
8825
  console.error("Attempted to setTraits a user before calling flagsmith.init. Call flagsmith.init first, if you wish to prevent it sending a request for flags, call init with preventFetch:true.");
9122
8826
  }, this.hasFeature = function(g, d) {
@@ -9131,10 +8835,10 @@ var Vs = { exports: {} };
9131
8835
  var F = G.headers, k = { method: d || "GET", body: b, cache: "no-cache", headers: {} };
9132
8836
  i.evaluationContext.environment && (k.headers["X-Environment-Key"] = i.evaluationContext.environment.apiKey), d && d !== "GET" && (k.headers["Content-Type"] = "application/json; charset=utf-8"), F && Object.assign(k.headers, F), O || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
9133
8837
  var j = "".concat((M = i.evaluationContext.identity) === null || M === void 0 ? void 0 : M.identifier);
9134
- return O(g, k).then(function(z) {
8838
+ return O(g, k).then(function(U) {
9135
8839
  var ce, Me, ge = "".concat((ce = i.evaluationContext.identity) === null || ce === void 0 ? void 0 : ce.identifier);
9136
8840
  if (j === ge) {
9137
- var ve = (Me = z.headers) === null || Me === void 0 ? void 0 : Me.get("x-flagsmith-document-updated-at");
8841
+ var ve = (Me = U.headers) === null || Me === void 0 ? void 0 : Me.get("x-flagsmith-document-updated-at");
9138
8842
  if (ve) try {
9139
8843
  var pe = parseFloat(ve);
9140
8844
  if (isNaN(pe)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
@@ -9142,13 +8846,13 @@ var Vs = { exports: {} };
9142
8846
  } catch (fe) {
9143
8847
  i.log(fe, "Failed to parse x-flagsmith-document-updated-at", ve);
9144
8848
  }
9145
- return i.log("Fetch response: " + z.status + " " + (d || "GET") + 0 + g), z.text().then(function(fe) {
8849
+ return i.log("Fetch response: " + U.status + " " + (d || "GET") + 0 + g), U.text().then(function(fe) {
9146
8850
  var Ce = fe;
9147
8851
  try {
9148
8852
  Ce = JSON.parse(fe);
9149
8853
  } catch {
9150
8854
  }
9151
- return !Ce && z.status && (Ce = "API Response: ".concat(z.status)), z.status && z.status >= 200 && z.status < 300 ? Ce : Promise.reject(new Error(Ce));
8855
+ return !Ce && U.status && (Ce = "API Response: ".concat(U.status)), U.status && U.status >= 200 && U.status < 300 ? Ce : Promise.reject(new Error(Ce));
9152
8856
  });
9153
8857
  }
9154
8858
  i.log("Received response with identity mismatch, ignoring response. Requested: ".concat(j, ", Current: ").concat(ge));
@@ -9167,32 +8871,32 @@ var Vs = { exports: {} };
9167
8871
  return f.prototype.init = function(u) {
9168
8872
  var i, g, d;
9169
8873
  return a(this, void 0, void 0, function() {
9170
- var b, M, G, F, k, j, z, ce, Me, ge, ve, pe, fe, Ce, dt, mt, _e, le, W, _t, gt, Qs, $e, $t, ks, Ts, es, Ss, ts, pt, et, Ns, ue = this;
9171
- return c(this, function(we) {
9172
- switch (we.label) {
8874
+ var b, M, G, F, k, j, U, ce, Me, ge, ve, pe, fe, Ce, dt, mt, _e, le, W, _t, gt, Qs, $e, $t, ks, Ts, es, Ns, ts, pt, et, Ss, ue = this;
8875
+ return c(this, function(Be) {
8876
+ switch (Be.label) {
9173
8877
  case 0:
9174
- b = re(u.evaluationContext || this.evaluationContext), we.label = 1;
8878
+ b = re(u.evaluationContext || this.evaluationContext), Be.label = 1;
9175
8879
  case 1:
9176
- if (we.trys.push([1, 13, , 14]), M = u.environmentID, G = u.api, F = G === void 0 ? Se : G, k = u.headers, j = u.onChange, z = u.cacheFlags, ce = u.datadogRum, Me = u.onError, ge = u.defaultFlags, ve = u.fetch, pe = u.preventFetch, fe = u.enableLogs, Ce = u.enableDynatrace, dt = u.enableAnalytics, mt = u.realtime, _e = u.eventSourceUrl, le = _e === void 0 ? "https://realtime.flagsmith.com/" : _e, W = u.AsyncStorage, _t = u.identity, gt = u.traits, Qs = u.state, $e = u.cacheOptions, $t = u.angularHttpClient, ks = u._trigger, Ts = u._triggerLoadingState, b.environment = M ? { apiKey: M } : b.environment, !b.environment || !b.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
8880
+ if (Be.trys.push([1, 13, , 14]), M = u.environmentID, G = u.api, F = G === void 0 ? Ne : G, k = u.headers, j = u.onChange, U = u.cacheFlags, ce = u.datadogRum, Me = u.onError, ge = u.defaultFlags, ve = u.fetch, pe = u.preventFetch, fe = u.enableLogs, Ce = u.enableDynatrace, dt = u.enableAnalytics, mt = u.realtime, _e = u.eventSourceUrl, le = _e === void 0 ? "https://realtime.flagsmith.com/" : _e, W = u.AsyncStorage, _t = u.identity, gt = u.traits, Qs = u.state, $e = u.cacheOptions, $t = u.angularHttpClient, ks = u._trigger, Ts = u._triggerLoadingState, b.environment = M ? { apiKey: M } : b.environment, !b.environment || !b.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
9177
8881
  if (b.identity = _t || gt ? { identifier: _t, traits: gt ? Object.fromEntries(Object.entries(gt).map(function(he) {
9178
8882
  return [he[0], { value: he[1] }];
9179
8883
  })) : {} } : b.identity, this.evaluationContext = b, this.api = F, this.headers = k, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = j, es = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = ks || this._trigger, this._triggerLoadingState = Ts || this._triggerLoadingState, this.onError = function(he) {
9180
8884
  ue.setLoadingState(n(n({}, ue.loadingState), { isFetching: !1, isLoading: !1, error: he })), Me == null || Me(he);
9181
- }, this.enableLogs = fe || !1, this.cacheOptions = $e ? { skipAPI: !!$e.skipAPI, ttl: $e.ttl || 0, storageKey: $e.storageKey, loadStale: !!$e.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), ve && (O = ve), this.enableAnalytics = dt || !1, this.flags = Object.assign({}, ge) || {}, this.datadogRum = ce || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = ne !== void 0 && !!z, be = "FLAGSMITH_EVENT_" + b.environment.apiKey, W && (ne = W), mt && typeof window < "u" && this.setupRealtime(le, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: w.DEFAULT_FLAGS })), this.setState(Qs), this.log("Initialising with properties", u, this), Ce && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), $t && (O = /* @__PURE__ */ function(he) {
8885
+ }, this.enableLogs = fe || !1, this.cacheOptions = $e ? { skipAPI: !!$e.skipAPI, ttl: $e.ttl || 0, storageKey: $e.storageKey, loadStale: !!$e.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), ve && (O = ve), this.enableAnalytics = dt || !1, this.flags = Object.assign({}, ge) || {}, this.datadogRum = ce || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = ne !== void 0 && !!U, be = "FLAGSMITH_EVENT_" + b.environment.apiKey, W && (ne = W), mt && typeof window < "u" && this.setupRealtime(le, b.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: B.DEFAULT_FLAGS })), this.setState(Qs), this.log("Initialising with properties", u, this), Ce && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), $t && (O = /* @__PURE__ */ function(he) {
9182
8886
  return function(De, xe) {
9183
8887
  var Ie = xe.headers, K = xe.method, tt = xe.body;
9184
- return new Promise(function(Ne) {
8888
+ return new Promise(function(Se) {
9185
8889
  switch (K) {
9186
8890
  case "GET":
9187
8891
  return he.get(De, { headers: Ie }).subscribe(function(Oe) {
9188
- Ne({ ok: !0, text: function() {
8892
+ Se({ ok: !0, text: function() {
9189
8893
  return Promise.resolve(Oe);
9190
8894
  } });
9191
8895
  });
9192
8896
  case "POST":
9193
8897
  case "PUT":
9194
8898
  return he.post(De, tt, { headers: Ie }).subscribe(function(Oe) {
9195
- Ne({ ok: !0, text: function() {
8899
+ Se({ ok: !0, text: function() {
9196
8900
  return Promise.resolve(Oe);
9197
8901
  } });
9198
8902
  });
@@ -9214,20 +8918,20 @@ var Vs = { exports: {} };
9214
8918
  ue.log("Retrieved events from cache", De), ue.setState(n(n({}, Ie), { evaluationEvent: xe[ue.evaluationContext.environment.apiKey] }));
9215
8919
  }
9216
8920
  }
9217
- })), !z) return [3, 9];
8921
+ })), !U) return [3, 9];
9218
8922
  if (!ne || !this.canUseStorage) return [3, 8];
9219
- Ss = function(he, De) {
8923
+ Ns = function(he, De) {
9220
8924
  return a(ue, void 0, void 0, function() {
9221
- var xe, Ie, K, tt, Ne, Oe, ss, Zs, rs, ns, as, os, is, cs, ls, us, As, ds, ms, gs, ps, fs, hs, ys, Us = this;
8925
+ var xe, Ie, K, tt, Se, Oe, ss, Zs, rs, ns, as, os, is, cs, ls, us, As, ds, ms, gs, ps, fs, hs, ys, zs = this;
9222
8926
  return c(this, function(He) {
9223
8927
  switch (He.label) {
9224
8928
  case 0:
9225
8929
  if (!De) return [3, 7];
9226
8930
  xe = null, Ie = null, He.label = 1;
9227
8931
  case 1:
9228
- return He.trys.push([1, 5, , 6]), K = JSON.parse(De), tt = !1, Ne = !1, K && K.api === this.api && ((ns = (rs = K.evaluationContext) === null || rs === void 0 ? void 0 : rs.environment) === null || ns === void 0 ? void 0 : ns.apiKey) === ((as = this.evaluationContext.environment) === null || as === void 0 ? void 0 : as.apiKey) && (Oe = !0, this.evaluationContext.identity && ((is = (os = K.evaluationContext) === null || os === void 0 ? void 0 : os.identity) === null || is === void 0 ? void 0 : is.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((ls = (cs = K.evaluationContext) === null || cs === void 0 ? void 0 : cs.identity) === null || ls === void 0 ? void 0 : ls.identifier) + " to " + this.evaluationContext.identity.identifier), Oe = !1), this.cacheOptions.ttl && (!K.ts || (/* @__PURE__ */ new Date()).valueOf() - K.ts > this.cacheOptions.ttl) && (K.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Oe = !1) : K.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Ne = !0, Oe = !0)), Oe && (tt = !0, Ie = h((us = this.evaluationContext.identity) === null || us === void 0 ? void 0 : us.traits, (ds = (As = K.evaluationContext) === null || As === void 0 ? void 0 : As.identity) === null || ds === void 0 ? void 0 : ds.traits), xe = h(this.flags, K.flags), this.setState(n(n({}, K), { evaluationContext: re(n(n({}, K.evaluationContext), { identity: !((ms = K.evaluationContext) === null || ms === void 0) && ms.identity ? n(n({}, (gs = K.evaluationContext) === null || gs === void 0 ? void 0 : gs.identity), { traits: n(n({}, ((fs = (ps = K.evaluationContext) === null || ps === void 0 ? void 0 : ps.identity) === null || fs === void 0 ? void 0 : fs.traits) || {}), gt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", K))), tt ? (ss = !pe && (!this.cacheOptions.skipAPI || Ne), this._onChange(null, { isFromServer: !1, flagsChanged: xe, traitsChanged: Ie }, this._loadedState(null, w.CACHE, ss)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && tt && !Ne && this.log("Skipping API, using cache"), ss && this.getFlags().catch(function(Hn) {
8932
+ return He.trys.push([1, 5, , 6]), K = JSON.parse(De), tt = !1, Se = !1, K && K.api === this.api && ((ns = (rs = K.evaluationContext) === null || rs === void 0 ? void 0 : rs.environment) === null || ns === void 0 ? void 0 : ns.apiKey) === ((as = this.evaluationContext.environment) === null || as === void 0 ? void 0 : as.apiKey) && (Oe = !0, this.evaluationContext.identity && ((is = (os = K.evaluationContext) === null || os === void 0 ? void 0 : os.identity) === null || is === void 0 ? void 0 : is.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((ls = (cs = K.evaluationContext) === null || cs === void 0 ? void 0 : cs.identity) === null || ls === void 0 ? void 0 : ls.identifier) + " to " + this.evaluationContext.identity.identifier), Oe = !1), this.cacheOptions.ttl && (!K.ts || (/* @__PURE__ */ new Date()).valueOf() - K.ts > this.cacheOptions.ttl) && (K.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Oe = !1) : K.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + K.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - K.ts) + "ms"), Se = !0, Oe = !0)), Oe && (tt = !0, Ie = h((us = this.evaluationContext.identity) === null || us === void 0 ? void 0 : us.traits, (ds = (As = K.evaluationContext) === null || As === void 0 ? void 0 : As.identity) === null || ds === void 0 ? void 0 : ds.traits), xe = h(this.flags, K.flags), this.setState(n(n({}, K), { evaluationContext: re(n(n({}, K.evaluationContext), { identity: !((ms = K.evaluationContext) === null || ms === void 0) && ms.identity ? n(n({}, (gs = K.evaluationContext) === null || gs === void 0 ? void 0 : gs.identity), { traits: n(n({}, ((fs = (ps = K.evaluationContext) === null || ps === void 0 ? void 0 : ps.identity) === null || fs === void 0 ? void 0 : fs.traits) || {}), gt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", K))), tt ? (ss = !pe && (!this.cacheOptions.skipAPI || Se), this._onChange(null, { isFromServer: !1, flagsChanged: xe, traitsChanged: Ie }, this._loadedState(null, B.CACHE, ss)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && tt && !Se && this.log("Skipping API, using cache"), ss && this.getFlags().catch(function(Hn) {
9229
8933
  var bs;
9230
- (bs = Us.onError) === null || bs === void 0 || bs.call(Us, Hn);
8934
+ (bs = zs.onError) === null || bs === void 0 || bs.call(zs, Hn);
9231
8935
  }), [3, 4]) : [3, 2];
9232
8936
  case 2:
9233
8937
  return pe ? [3, 4] : [4, this.getFlags()];
@@ -9244,10 +8948,10 @@ var Vs = { exports: {} };
9244
8948
  case 8:
9245
8949
  return He.sent(), [3, 10];
9246
8950
  case 9:
9247
- if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (hs = this.evaluationContext.identity) === null || hs === void 0 ? void 0 : hs.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
8951
+ if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (hs = this.evaluationContext.identity) === null || hs === void 0 ? void 0 : hs.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
9248
8952
  else {
9249
8953
  if (!this.flags) throw new Error(es);
9250
- this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (ys = this.evaluationContext.identity) === null || ys === void 0 ? void 0 : ys.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
8954
+ this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (ys = this.evaluationContext.identity) === null || ys === void 0 ? void 0 : ys.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
9251
8955
  }
9252
8956
  He.label = 10;
9253
8957
  case 10:
@@ -9255,32 +8959,32 @@ var Vs = { exports: {} };
9255
8959
  }
9256
8960
  });
9257
8961
  });
9258
- }, we.label = 2;
8962
+ }, Be.label = 2;
9259
8963
  case 2:
9260
- return we.trys.push([2, 7, , 8]), ne.getItemSync ? (ts = ne.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
8964
+ return Be.trys.push([2, 7, , 8]), ne.getItemSync ? (ts = ne.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
9261
8965
  case 3:
9262
8966
  return [4, ne.getItem(this.getStorageKey())];
9263
8967
  case 4:
9264
- ts = we.sent(), we.label = 5;
8968
+ ts = Be.sent(), Be.label = 5;
9265
8969
  case 5:
9266
- return [4, Ss(null, ts)];
8970
+ return [4, Ns(null, ts)];
9267
8971
  case 6:
9268
8972
  case 7:
9269
- return we.sent(), [3, 8];
8973
+ return Be.sent(), [3, 8];
9270
8974
  case 8:
9271
8975
  return [3, 12];
9272
8976
  case 9:
9273
8977
  return pe ? [3, 11] : [4, this.getFlags()];
9274
8978
  case 10:
9275
- return we.sent(), [3, 12];
8979
+ return Be.sent(), [3, 12];
9276
8980
  case 11:
9277
- if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, ge), traitsChanged: h({}, (i = b.identity) === null || i === void 0 ? void 0 : i.traits) }, this._loadedState(null, w.DEFAULT_FLAGS));
9278
- else if (this.flags && (pt = null, Object.keys(this.flags).length === 0 && (pt = es), this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (g = b.identity) === null || g === void 0 ? void 0 : g.traits) }, this._loadedState(pt, w.DEFAULT_FLAGS)), pt)) throw new Error(pt);
9279
- we.label = 12;
8981
+ if (ge) this._onChange(null, { isFromServer: !1, flagsChanged: h({}, ge), traitsChanged: h({}, (i = b.identity) === null || i === void 0 ? void 0 : i.traits) }, this._loadedState(null, B.DEFAULT_FLAGS));
8982
+ else if (this.flags && (pt = null, Object.keys(this.flags).length === 0 && (pt = es), this._onChange(null, { isFromServer: !1, flagsChanged: h({}, this.flags), traitsChanged: h({}, (g = b.identity) === null || g === void 0 ? void 0 : g.traits) }, this._loadedState(pt, B.DEFAULT_FLAGS)), pt)) throw new Error(pt);
8983
+ Be.label = 12;
9280
8984
  case 12:
9281
8985
  return [3, 14];
9282
8986
  case 13:
9283
- throw et = we.sent(), this.log("Error during initialisation ", et), Ns = et instanceof Error ? et : new Error("".concat(et)), (d = this.onError) === null || d === void 0 || d.call(this, Ns), et;
8987
+ throw et = Be.sent(), this.log("Error during initialisation ", et), Ss = et instanceof Error ? et : new Error("".concat(et)), (d = this.onError) === null || d === void 0 || d.call(this, Ss), et;
9284
8988
  case 14:
9285
8989
  return [2];
9286
8990
  }
@@ -9291,12 +8995,12 @@ var Vs = { exports: {} };
9291
8995
  }, f.prototype.identify = function(u, i, g) {
9292
8996
  return this.evaluationContext.identity = { identifier: u, transient: g, traits: this.evaluationContext.identity && this.evaluationContext.identity.identifier == u ? this.evaluationContext.identity.traits : {} }, this.evaluationContext.identity.identifier = u, this.log("Identify: " + this.evaluationContext.identity.identifier), i && (this.evaluationContext.identity.traits = Object.fromEntries(Object.entries(i).map(function(d) {
9293
8997
  var b = d[0], M = d[1];
9294
- return [b, U(M) ? M : { value: M }];
8998
+ return [b, z(M) ? M : { value: M }];
9295
8999
  }))), this.initialised ? this.getFlags() : Promise.resolve();
9296
9000
  }, f.prototype.getState = function() {
9297
9001
  return { api: this.api, flags: this.flags, ts: this.ts, evaluationContext: this.evaluationContext, evaluationEvent: this.evaluationEvent };
9298
9002
  }, f.prototype.setState = function(u) {
9299
- u && (this.initialised = !0, this.api = u.api || this.api || Se, this.flags = u.flags || this.flags, this.evaluationContext = u.evaluationContext || this.evaluationContext, this.evaluationEvent = u.evaluationEvent || this.evaluationEvent, this.log("setState called", this));
9003
+ u && (this.initialised = !0, this.api = u.api || this.api || Ne, this.flags = u.flags || this.flags, this.evaluationContext = u.evaluationContext || this.evaluationContext, this.evaluationEvent = u.evaluationEvent || this.evaluationEvent, this.log("setState called", this));
9300
9004
  }, f.prototype.logout = function() {
9301
9005
  return this.evaluationContext.identity = null, this.initialised ? this.getFlags() : Promise.resolve();
9302
9006
  }, f.prototype.startListening = function(u) {
@@ -9341,7 +9045,7 @@ var Vs = { exports: {} };
9341
9045
  var u = f.fetch, i = f.AsyncStorage, g = f.eventSource;
9342
9046
  return new At({ fetch: u, AsyncStorage: i, eventSource: g });
9343
9047
  }
9344
- var p, B = (p = function(f, u) {
9048
+ var p, w = (p = function(f, u) {
9345
9049
  return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, g) {
9346
9050
  i.__proto__ = g;
9347
9051
  } || function(i, g) {
@@ -9376,7 +9080,7 @@ var Vs = { exports: {} };
9376
9080
  }
9377
9081
  }
9378
9082
  return M;
9379
- }, Y = function(f, u, i) {
9083
+ }, P = function(f, u, i) {
9380
9084
  if (arguments.length === 2) for (var g, d = 0, b = u.length; d < b; d++) !g && d in u || (g || (g = Array.prototype.slice.call(u, 0, d)), g[d] = u[d]);
9381
9085
  return f.concat(g || Array.prototype.slice.call(u));
9382
9086
  }, q = function(f) {
@@ -9384,7 +9088,7 @@ var Vs = { exports: {} };
9384
9088
  return f.call(this, `EventSource not available.
9385
9089
  Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
9386
9090
  }
9387
- return B(u, f), u;
9091
+ return w(u, f), u;
9388
9092
  }(Error), R = function() {
9389
9093
  function f(u, i) {
9390
9094
  var g = this;
@@ -9434,7 +9138,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9434
9138
  u && u.lastEventId && (this._lastEventId = u.lastEventId);
9435
9139
  var d = this._listeners[u.type];
9436
9140
  if (d != null) try {
9437
- for (var b = D(Y([], E(d), !1)), M = b.next(); !M.done; M = b.next())
9141
+ for (var b = D(P([], E(d), !1)), M = b.next(); !M.done; M = b.next())
9438
9142
  M.value.call(this, u);
9439
9143
  } catch (G) {
9440
9144
  i = { error: G };
@@ -9454,7 +9158,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9454
9158
  }, f.prototype.addEventListener = function(u, i, g) {
9455
9159
  this._listeners[u] == null && (this._listeners[u] = [], this._eventSource != null && this._eventSource.addEventListener(u, this._onevent_wrapped));
9456
9160
  var d = this._listeners[u];
9457
- d.includes(i) || (this._listeners[u] = Y(Y([], E(d), !1), [i], !1));
9161
+ d.includes(i) || (this._listeners[u] = P(P([], E(d), !1), [i], !1));
9458
9162
  }, f.prototype.removeEventListener = function(u, i, g) {
9459
9163
  var d = this._listeners[u];
9460
9164
  this._listeners[u] = d.filter(function(b) {
@@ -9483,8 +9187,8 @@ Consider loading an EventSource polyfill and making it available globally as Eve
9483
9187
  } } };
9484
9188
  };
9485
9189
  for (var k in d.open(u.method || "get", f, !0), d.onload = function() {
9486
- d.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(j, z, ce) {
9487
- b.push(z = z.toLowerCase()), M.push([z, ce]), G[z] = G[z] ? G[z] + "," + ce : ce;
9190
+ d.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(j, U, ce) {
9191
+ b.push(U = U.toLowerCase()), M.push([U, ce]), G[U] = G[U] ? G[U] + "," + ce : ce;
9488
9192
  }), i(F());
9489
9193
  }, d.onerror = g, d.withCredentials = u.credentials == "include", u.headers) d.setRequestHeader(k, u.headers[k]);
9490
9194
  d.send(u.body || null);
@@ -9599,57 +9303,57 @@ var hl = Vs.exports, yl = {
9599
9303
  reset() {
9600
9304
  this.flagsmithClient = null, this.userContext = null;
9601
9305
  }
9602
- }, xt(je, "instance"), je), vl = bl.getInstance(), ht = Qe(!1), Pt = Qe([]), st = Qe(null);
9603
- function wl(e = vl) {
9604
- const t = () => ht.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (w, O = []) => {
9306
+ }, xt(je, "instance"), je), vl = bl.getInstance(), ht = Qe(!1), Yt = Qe([]), st = Qe(null);
9307
+ function Bl(e = vl) {
9308
+ const t = () => ht.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), s = async (B, O = []) => {
9605
9309
  if (ht.value) {
9606
9310
  console.warn("FeatureFlag is already initialized.");
9607
9311
  return;
9608
9312
  }
9609
9313
  try {
9610
- await e.init(w, O), Pt.value = await e.getFlags(), ht.value = !0, st.value = null;
9611
- } catch (S) {
9612
- console.error("Failed to initialize feature flags:", S), st.value = S;
9314
+ await e.init(B, O), Yt.value = await e.getFlags(), ht.value = !0, st.value = null;
9315
+ } catch (N) {
9316
+ console.error("Failed to initialize feature flags:", N), st.value = N;
9613
9317
  }
9614
- }, r = async (w) => {
9318
+ }, r = async (B) => {
9615
9319
  if (t())
9616
9320
  try {
9617
- await e.setUser(w), Pt.value = await e.getFlags(), st.value = null;
9321
+ await e.setUser(B), Yt.value = await e.getFlags(), st.value = null;
9618
9322
  } catch (O) {
9619
9323
  console.error("Failed to set user:", O), st.value = O;
9620
9324
  }
9621
- }, n = async (w) => r(`${or}-${w}`), a = (w, O, S = null) => {
9622
- if (!t()) return S;
9325
+ }, n = async (B) => r(`${or}-${B}`), a = (B, O, N = null) => {
9326
+ if (!t()) return N;
9623
9327
  try {
9624
- return e.getFlagValue(w, O) ?? S;
9625
- } catch (U) {
9626
- return console.error(`Error getting flag value for ${w}:`, U), S;
9328
+ return e.getFlagValue(B, O) ?? N;
9329
+ } catch (z) {
9330
+ return console.error(`Error getting flag value for ${B}:`, z), N;
9627
9331
  }
9628
- }, c = (w, O) => {
9332
+ }, c = (B, O) => {
9629
9333
  if (!t()) return O ?? null;
9630
9334
  try {
9631
- return e.getFlag(w) ?? O ?? null;
9632
- } catch (S) {
9633
- return console.error(`Error getting flag for ${w}:`, S), O ?? null;
9335
+ return e.getFlag(B) ?? O ?? null;
9336
+ } catch (N) {
9337
+ return console.error(`Error getting flag for ${B}:`, N), O ?? null;
9634
9338
  }
9635
- }, l = async (w, O, S = null, U) => {
9636
- if (!t()) return S;
9339
+ }, l = async (B, O, N = null, z) => {
9340
+ if (!t()) return N;
9637
9341
  try {
9638
- return await e.getUserFlagValue(w, O, S, U);
9342
+ return await e.getUserFlagValue(B, O, N, z);
9639
9343
  } catch ($) {
9640
- return console.error(`Error getting user flag value for ${O}:`, $), S;
9344
+ return console.error(`Error getting user flag value for ${O}:`, $), N;
9641
9345
  }
9642
- }, y = async (w, O, S = null, U) => l(`${or}-${w}`, O, S, U), h = () => {
9346
+ }, y = async (B, O, N = null, z) => l(`${or}-${B}`, O, N, z), h = () => {
9643
9347
  try {
9644
9348
  e.reset();
9645
- } catch (w) {
9646
- console.error("Error resetting feature flags:", w);
9349
+ } catch (B) {
9350
+ console.error("Error resetting feature flags:", B);
9647
9351
  } finally {
9648
- Pt.value = [], ht.value = !1, st.value = null;
9352
+ Yt.value = [], ht.value = !1, st.value = null;
9649
9353
  }
9650
9354
  };
9651
9355
  return {
9652
- flags: vs(Pt),
9356
+ flags: vs(Yt),
9653
9357
  isInitialized: vs(ht),
9654
9358
  error: vs(st),
9655
9359
  init: s,
@@ -9662,18 +9366,18 @@ function wl(e = vl) {
9662
9366
  reset: h
9663
9367
  };
9664
9368
  }
9665
- var Bl = () => wl();
9369
+ var wl = () => Bl();
9666
9370
  const ql = /* @__PURE__ */ it({
9667
9371
  __name: "App",
9668
9372
  setup(e) {
9669
- const t = Ar(), { init: s } = Bl();
9373
+ const t = Ar(), { init: s } = wl();
9670
9374
  return ur(async () => {
9671
9375
  t.registerSidebarComponent(fl), await s({
9672
9376
  apiKey: t.namespace.value === "prod" ? "6GhcttsJ9Rj9cTevcdrpin" : "MaGoXrEWuEJNpWgKTqseee"
9673
9377
  });
9674
9378
  }), (r, n) => {
9675
9379
  const a = Fs("RouterView");
9676
- return ct(), zt(a);
9380
+ return ct(), Ut(a);
9677
9381
  };
9678
9382
  }
9679
9383
  }), Il = () => {
@@ -9698,13 +9402,13 @@ const ql = /* @__PURE__ */ it({
9698
9402
  );
9699
9403
  };
9700
9404
  export {
9701
- Pl as A,
9405
+ Yl as A,
9702
9406
  Vl as G,
9703
- Ua as O,
9407
+ za as O,
9704
9408
  ic as P,
9705
9409
  te as R,
9706
- Yl as S,
9707
- Na as U,
9410
+ Pl as S,
9411
+ Sa as U,
9708
9412
  sl as _,
9709
9413
  nl as a,
9710
9414
  v as b,
@@ -9720,5 +9424,5 @@ export {
9720
9424
  Ol as m,
9721
9425
  o as n,
9722
9426
  Fl as r,
9723
- Bl as u
9427
+ wl as u
9724
9428
  };