@feedmepos/mf-report 5.27.0 → 5.27.1

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 (30) hide show
  1. package/dist/{App-BVm7F3co.js → App-DSAYuPnw.js} +4 -4
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-_xN_Strd.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-B7zYI-10.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-DFfPxCRx.js → Default.vue_vue_type_script_setup_true_lang-B7WhnyxK.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Du46mNK_.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CtyS5biZ.js} +1971 -1884
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DvHJgIIm.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CQYxNukN.js} +786 -776
  6. package/dist/{InsightView-BDQtiuUV.js → InsightView-CjlC5ji1.js} +4 -4
  7. package/dist/{Integration-BFvC5yD4.js → Integration-uqt_9jzh.js} +3 -3
  8. package/dist/{Integrations-CaJP86Sf.js → Integrations-DjdaH7TB.js} +2 -2
  9. package/dist/{Layout-BTLiqkeM.js → Layout-D-K_X8I_.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CVfKW6b8.js → MenuTab.vue_vue_type_script_setup_true_lang-7gIW0Dcq.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DVtWhfhI.js → NavigationTab.vue_vue_type_script_setup_true_lang-CtfaY3pC.js} +3 -3
  12. package/dist/{OverviewView-Cmm7K0gk.js → OverviewView-C6ma5uuY.js} +4 -4
  13. package/dist/{Report-BpKD0ID4.js → Report-DRA9kM_8.js} +3 -3
  14. package/dist/ReportEditor-jt1hSp5y.js +1826 -0
  15. package/dist/{ReportView--Bk9WgOn.js → ReportView-CngZsjWx.js} +6 -6
  16. package/dist/{Setting-B6jvJDeO.js → Setting-NGJ9WoHW.js} +3 -3
  17. package/dist/{Template-CnE3UZvX.js → Template-XsYAFAr0.js} +3 -3
  18. package/dist/TileEditor-BOHGCkUR.js +4077 -0
  19. package/dist/TileGrid.vue_vue_type_script_setup_true_lang-D56AWX-c.js +152 -0
  20. package/dist/{TransitionFade-Chjh8CeF.js → TransitionFade-BV7CpStl.js} +6 -4
  21. package/dist/{app-CZUC85Jj.js → app-CrCAF5RB.js} +48 -12
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{processTableData.worker-dYjjzVAS.js → formatChartData.worker-BH7U7Dmq.js} +21 -21
  24. package/dist/assets/{formatChartData.worker-S0YDdTap.js → processTableData.worker-CR6UcFH0.js} +21 -21
  25. package/dist/style.css +1 -1
  26. package/dist/{useRestaurantPermission-CrybQQkI.js → useRestaurantPermission-dTlc-8eB.js} +1 -1
  27. package/package.json +1 -1
  28. package/dist/ReportEditor-CFWTQJCY.js +0 -1812
  29. package/dist/TileEditor-DNCRKHLE.js +0 -4042
  30. package/dist/TileGrid.vue_vue_type_script_setup_true_lang-WLjTXh0g.js +0 -143
@@ -1,6 +1,6 @@
1
- import { ref as R0, computed as z1, watch as x1, defineComponent as zt, mergeModels as Ce, useModel as at, resolveComponent as V0, createElementBlock as l1, openBlock as Q0, createVNode as x0, withCtx as n1, createElementVNode as H0, createCommentVNode as he, Fragment as V1, renderList as ot, createBlock as y1, createTextVNode as We, withDirectives as On, toDisplayString as p1, unref as W0, vShow as An, renderSlot as ir, normalizeStyle as Dn, normalizeClass as Ht, withModifiers as Ge } from "vue";
2
- import { c as Xt, h as sr, f as ur, _ as fn, i as $n } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-_xN_Strd.js";
3
- import { o as yn, j as mn, u as P0, F as J0, r as U0, p as qn, a as H1, b as gn, m as hn, g as Sn, d as v0, c as be, h as Ot } from "./app-CZUC85Jj.js";
1
+ import { ref as R0, computed as z1, watch as x1, defineComponent as zt, mergeModels as Ce, useModel as at, resolveComponent as V0, createElementBlock as l1, openBlock as Q0, createVNode as x0, withCtx as n1, createElementVNode as H0, createCommentVNode as he, Fragment as V1, renderList as ot, createBlock as m1, createTextVNode as We, withDirectives as On, toDisplayString as p1, unref as W0, vShow as An, renderSlot as ir, normalizeStyle as Dn, normalizeClass as Ht, withModifiers as Ge } from "vue";
2
+ import { c as Xt, h as sr, f as ur, _ as fn, i as $n } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-B7zYI-10.js";
3
+ import { o as yn, j as mn, u as P0, F as J0, r as U0, p as qn, a as H1, b as gn, m as hn, g as Sn, d as v0, c as be, h as Ot } from "./app-CrCAF5RB.js";
4
4
  import { storeToRefs as g0, defineStore as xe } from "pinia";
5
5
  import { useSnackbar as lr } from "@feedmepos/ui-library";
6
6
  import { u as pr } from "./vue-i18n-DVWuTfed.js";
@@ -37,12 +37,12 @@ var Mr = {};
37
37
  function T() {
38
38
  try {
39
39
  throw new Error();
40
- } catch (G) {
41
- var x = G.stack, P = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), w = null;
40
+ } catch (j) {
41
+ var x = j.stack, P = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), w = null;
42
42
  do {
43
- var k = P.exec(x);
44
- k != null && (w = k);
45
- } while (k != null);
43
+ var X = P.exec(x);
44
+ X != null && (w = X);
45
+ } while (X != null);
46
46
  return w[1];
47
47
  }
48
48
  }
@@ -97,7 +97,7 @@ var Mr = {};
97
97
  }
98
98
  return !1;
99
99
  }();
100
- function k(r, e) {
100
+ function X(r, e) {
101
101
  if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
102
102
  if (w) {
103
103
  r.prototype.__proto__ = e.prototype;
@@ -107,11 +107,11 @@ var Mr = {};
107
107
  L(r.prototype, n), r.prototype = n;
108
108
  }
109
109
  }
110
- function G(r, e) {
110
+ function j(r, e) {
111
111
  for (var n = 0; n < e.length; n++)
112
- k(e[n], r);
112
+ X(e[n], r);
113
113
  }
114
- function t0(r, e) {
114
+ function a0(r, e) {
115
115
  P(e.prototype, r.prototype), r.prototype.constructor = r;
116
116
  }
117
117
  function K(r, e) {
@@ -134,7 +134,7 @@ var Mr = {};
134
134
  return s;
135
135
  };
136
136
  }
137
- function X(r, e, n, a) {
137
+ function Q(r, e, n, a) {
138
138
  var o = r;
139
139
  r[e] = o, r[n] = function() {
140
140
  return r[e] === o && (r[e] = a()), r[n] = function() {
@@ -142,7 +142,7 @@ var Mr = {};
142
142
  }, r[e];
143
143
  };
144
144
  }
145
- function j(r, e, n, a) {
145
+ function Z(r, e, n, a) {
146
146
  var o = r;
147
147
  r[e] = o, r[n] = function() {
148
148
  if (r[e] === o) {
@@ -155,7 +155,7 @@ var Mr = {};
155
155
  }, u;
156
156
  };
157
157
  }
158
- function n0(r) {
158
+ function G(r) {
159
159
  return r.immutable$list = Array, r.fixed$length = Array, r;
160
160
  }
161
161
  function V(r) {
@@ -165,7 +165,7 @@ var Mr = {};
165
165
  for (var e = 0; e < r.length; ++e)
166
166
  r[e];
167
167
  }
168
- function l0(r, e) {
168
+ function t0(r, e) {
169
169
  var n = null;
170
170
  return r ? function(a) {
171
171
  return n === null && (n = t.closureFromTearOff(e)), new n(a, this);
@@ -179,17 +179,17 @@ var Mr = {};
179
179
  return e === null && (e = t.closureFromTearOff(r).prototype), e;
180
180
  };
181
181
  }
182
- var r0 = 0;
183
- function a0(r, e, n, a, o, s, u, l, M, d) {
184
- return typeof l == "number" && (l += r0), { co: r, iS: e, iI: n, rC: a, dV: o, cs: s, fs: u, fT: l, aI: M || 0, nDA: d };
182
+ var n0 = 0;
183
+ function o0(r, e, n, a, o, s, u, l, M, d) {
184
+ return typeof l == "number" && (l += n0), { co: r, iS: e, iI: n, rC: a, dV: o, cs: s, fs: u, fT: l, aI: M || 0, nDA: d };
185
185
  }
186
- function o0(r, e, n, a, o, s, u, l) {
187
- var M = a0(r, !0, !1, n, a, o, s, u, l, !1), d = b0(M);
186
+ function s0(r, e, n, a, o, s, u, l) {
187
+ var M = o0(r, !0, !1, n, a, o, s, u, l, !1), d = b0(M);
188
188
  r[e] = d;
189
189
  }
190
- function s0(r, e, n, a, o, s, u, l, M, d) {
190
+ function u0(r, e, n, a, o, s, u, l, M, d) {
191
191
  n = !!n;
192
- var _ = a0(r, !1, n, a, o, s, u, l, M, !!d), z = l0(n, _);
192
+ var _ = o0(r, !1, n, a, o, s, u, l, M, !!d), z = t0(n, _);
193
193
  r[e] = z;
194
194
  }
195
195
  function $0(r) {
@@ -218,14 +218,14 @@ var Mr = {};
218
218
  var c0 = function() {
219
219
  var r = function(n, a, o, s, u) {
220
220
  return function(l, M, d, _) {
221
- return s0(l, M, n, a, o, s, [d], _, u, !1);
221
+ return u0(l, M, n, a, o, s, [d], _, u, !1);
222
222
  };
223
223
  }, e = function(n, a, o, s) {
224
224
  return function(u, l, M, d) {
225
- return o0(u, l, n, a, o, [M], d, s);
225
+ return s0(u, l, n, a, o, [M], d, s);
226
226
  };
227
227
  };
228
- return { inherit: k, inheritMany: G, mixin: t0, mixinHard: K, installStaticTearOff: o0, installInstanceTearOff: s0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: n0, lazy: X, lazyFinal: j, lazyOld: U, updateHolder: f0, convertToFastObject: V, updateTypes: d0, setOrUpdateInterceptorsByTag: $0, setOrUpdateLeafTags: p0 };
228
+ return { inherit: X, inheritMany: j, mixin: a0, mixinHard: K, installStaticTearOff: s0, installInstanceTearOff: u0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: G, lazy: Q, lazyFinal: Z, lazyOld: U, updateHolder: f0, convertToFastObject: V, updateTypes: d0, setOrUpdateInterceptorsByTag: $0, setOrUpdateLeafTags: p0 };
229
229
  }(), t = {
230
230
  JS_CONST: function() {
231
231
  },
@@ -2987,8 +2987,8 @@ select
2987
2987
  return t.Schema$(r, e, n, a, o, H, u, l, M ?? 300, d, _, z, f, y, J, h, E, C, g, R, B, I, N, v);
2988
2988
  },
2989
2989
  Schema_fromJson(r) {
2990
- var e, n, a, o, s, u, l, M, d, _, z, f, y, q, h, E, C, g, R = null, B = i.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), I = r.$index(0, "label"), N = t.EnumByName_byName(p.List_fLz, r.$index(0, "name")), v = i.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), H = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), J = r.$index(0, "source"), M0 = t.EnumByName_byName(p.List_ytA, J.$index(0, "type")), D0 = J.$index(0, "table"), _0 = J.$index(0, "field"), Q = J.$index(0, "dataset"), z0 = O.nullable_List_dynamic, O0 = z0._as(J.$index(0, "uniqueKey"));
2991
- return O0 = O0 == null ? R : i.cast$1$0$ax(O0, O.String), e = J.$index(0, "timeColumn"), J = z0._as(J.$index(0, "dateColumns")), J = J == null ? R : i.cast$1$0$ax(J, O.String), n = r.$index(0, "rawTableName"), a = r.$index(0, "dynamicRawTable"), o = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), u = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), M = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), _ = r.$index(0, "partition"), z = r.$index(0, "requirePartitionFilter"), z == null && (z = !0), f = r.$index(0, "clusters"), f == null && (f = t._setArrayType([], O.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? R : i.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], O.JSArray_Index)), q = r.$index(0, "filters"), q = q == null ? R : i.map$1$ax(q, new t.Schema_fromJson_closure2()).toList$0(0), q == null && (q = t._setArrayType([], O.JSArray_QueryRequestFilter)), h = r.$index(0, "isGlobal"), h == null && (h = !1), E = r.$index(0, "isAiHidden"), E == null && (E = !1), z0 = z0._as(r.$index(0, "aiKeywords")), z0 = z0 == null ? R : i.cast$1$0$ax(z0, O.String), z0 == null && (z0 = t._setArrayType([], O.JSArray_String)), C = r.$index(0, "aiCategory"), g = r.$index(0, "aiPriority"), g == null && (g = 3), t.Schema$(C, z0, g, f, a, B, q, y, d, E, M, h, u, l, v, I, s, o, N, _, n, z, new t.Source(M0, D0, _0, Q, O0, e, J), H);
2990
+ var e, n, a, o, s, u, l, M, d, _, z, f, y, q, h, E, C, g, R = null, B = i.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), I = r.$index(0, "label"), N = t.EnumByName_byName(p.List_fLz, r.$index(0, "name")), v = i.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), H = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), J = r.$index(0, "source"), M0 = t.EnumByName_byName(p.List_ytA, J.$index(0, "type")), D0 = J.$index(0, "table"), _0 = J.$index(0, "field"), k = J.$index(0, "dataset"), z0 = O.nullable_List_dynamic, O0 = z0._as(J.$index(0, "uniqueKey"));
2991
+ return O0 = O0 == null ? R : i.cast$1$0$ax(O0, O.String), e = J.$index(0, "timeColumn"), J = z0._as(J.$index(0, "dateColumns")), J = J == null ? R : i.cast$1$0$ax(J, O.String), n = r.$index(0, "rawTableName"), a = r.$index(0, "dynamicRawTable"), o = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), u = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), M = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), _ = r.$index(0, "partition"), z = r.$index(0, "requirePartitionFilter"), z == null && (z = !0), f = r.$index(0, "clusters"), f == null && (f = t._setArrayType([], O.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? R : i.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], O.JSArray_Index)), q = r.$index(0, "filters"), q = q == null ? R : i.map$1$ax(q, new t.Schema_fromJson_closure2()).toList$0(0), q == null && (q = t._setArrayType([], O.JSArray_QueryRequestFilter)), h = r.$index(0, "isGlobal"), h == null && (h = !1), E = r.$index(0, "isAiHidden"), E == null && (E = !1), z0 = z0._as(r.$index(0, "aiKeywords")), z0 = z0 == null ? R : i.cast$1$0$ax(z0, O.String), z0 == null && (z0 = t._setArrayType([], O.JSArray_String)), C = r.$index(0, "aiCategory"), g = r.$index(0, "aiPriority"), g == null && (g = 3), t.Schema$(C, z0, g, f, a, B, q, y, d, E, M, h, u, l, v, I, s, o, N, _, n, z, new t.Source(M0, D0, _0, k, O0, e, J), H);
2992
2992
  },
2993
2993
  Field_Field$numeric(r, e, n, a, o, s, u, l, M) {
2994
2994
  return new t._NumericField(s, u, p.DATA_TYPE_3, e, o, l, n, M, a, !1, r);
@@ -9094,10 +9094,10 @@ Arguments: [` + M + "]";
9094
9094
  $signature: 1
9095
9095
  }, t.flattenItemSchema_closure.prototype = {
9096
9096
  call$1(r) {
9097
- var e = null, n = "itemCreatedAt", a = "billCompletedAt", o = "perXUnit", s = "takeawayId", u = "takeawayName", l = "productId", M = "isRefund", d = "servedAt", _ = "isTakeaway", z = "quantity", f = "unitQuantity", y = "billAdjustmentTotal", q = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", C = "nettTotal", g = "layerNettTotal", R = "layerBillAdjustmentTotal", B = "layerItemAdjustmentTotal", I = "layerGrossTotal", N = "layerTakeawayPrice", v = "layerTaxTotal", H = "layerScTotal", J = "layerOtherChargeTotal", M0 = "customAttributes", D0 = "layerZeroParentId", _0 = "collectedAt", Q = "subCategories", z0 = "billAdjustmentInclusiveTaxTotal", O0 = "itemAdjustmentInclusiveTaxTotal", L0 = "layerBillAdjustmentInclusiveTaxTotal", m0 = "layerItemAdjustmentInclusiveTaxTotal", T0 = "billAdjustmentExclusiveTaxTotal", E0 = "itemAdjustmentExclusiveTaxTotal", j0 = "layerBillAdjustmentExclusiveTaxTotal", I0 = "layerItemAdjustmentExclusiveTaxTotal";
9097
+ var e = null, n = "itemCreatedAt", a = "billCompletedAt", o = "perXUnit", s = "takeawayId", u = "takeawayName", l = "productId", M = "isRefund", d = "servedAt", _ = "isTakeaway", z = "quantity", f = "unitQuantity", y = "billAdjustmentTotal", q = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", C = "nettTotal", g = "layerNettTotal", R = "layerBillAdjustmentTotal", B = "layerItemAdjustmentTotal", I = "layerGrossTotal", N = "layerTakeawayPrice", v = "layerTaxTotal", H = "layerScTotal", J = "layerOtherChargeTotal", M0 = "customAttributes", D0 = "layerZeroParentId", _0 = "collectedAt", k = "subCategories", z0 = "billAdjustmentInclusiveTaxTotal", O0 = "itemAdjustmentInclusiveTaxTotal", L0 = "layerBillAdjustmentInclusiveTaxTotal", m0 = "layerItemAdjustmentInclusiveTaxTotal", T0 = "billAdjustmentExclusiveTaxTotal", E0 = "itemAdjustmentExclusiveTaxTotal", j0 = "layerBillAdjustmentExclusiveTaxTotal", I0 = "layerItemAdjustmentExclusiveTaxTotal";
9098
9098
  return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Item time", n, n, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Bill close time", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string("Values: DRAFT, VOIDED, SENT. DRAFT and SENT both considered valid sales.", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !0, "Name", "name", "name", e, r), t.Field_Field$numeric(e, e, !1, !1, "Per unit", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(e, `IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
9099
9099
  `, !1, !1, !0, "Category", "categoryName", "category", `CASE WHEN @category_name IS NULL OR @product_id IS NULL OR @product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE @category_name END
9100
- `, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", u, u, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", M, M, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", _, _, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", z, z, W.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", f, f, W.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", W.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", W.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", W.x40other, r), t.Field_Field$numeric(e, W.x40billA, !1, !1, "Bill discount", y, y, W.x40bill_, r), t.Field_Field$numeric(e, W.x40itemA, !1, !1, "Item discount", q, q, W.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, W.x40gross, r), t.Field_Field$numeric(e, W.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, W.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, W.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, W.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", W.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, W.x28IFNULb, !1, !1, "Discount", "discountTotal", e, W.x28COALEb, r), t.Field_Field$numeric(e, W.x28IFNULgx2b, !1, !1, "Gross before charges", "grossBeforeCharges", e, W.x28COALEgx2b, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", g, g, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", R, R, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", B, B, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", I, I, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", N, N, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", v, v, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", H, H, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", J, J, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", M0, M0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", D0, D0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", _0, _0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "((@nettTotal-coalesce(@costing, 0))*IF(@isRefund, -1, 1))", !1, !1, "Profit", "profit", e, "((@nett_total-coalesce(@costing, 0))*CASE WHEN @is_refund THEN -1 ELSE 1 END)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", Q, Q, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", z0, z0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", O0, O0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", L0, L0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", m0, m0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", T0, T0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", E0, E0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", j0, j0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", I0, I0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], O.JSArray_Field);
9100
+ `, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", u, u, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", M, M, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", _, _, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", z, z, W.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", f, f, W.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", W.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", W.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", W.x40other, r), t.Field_Field$numeric(e, W.x40billA, !1, !1, "Bill discount", y, y, W.x40bill_, r), t.Field_Field$numeric(e, W.x40itemA, !1, !1, "Item discount", q, q, W.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, W.x40gross, r), t.Field_Field$numeric(e, W.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, W.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, W.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, W.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", W.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, W.x28IFNULb, !1, !1, "Discount", "discountTotal", e, W.x28COALEb, r), t.Field_Field$numeric(e, W.x28IFNULgx2b, !1, !1, "Gross before charges", "grossBeforeCharges", e, W.x28COALEgx2b, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", g, g, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", R, R, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", B, B, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", I, I, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", N, N, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", v, v, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", H, H, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", J, J, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", M0, M0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", D0, D0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", _0, _0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "((@nettTotal-coalesce(@costing, 0))*IF(@isRefund, -1, 1))", !1, !1, "Profit", "profit", e, "((@nett_total-coalesce(@costing, 0))*CASE WHEN @is_refund THEN -1 ELSE 1 END)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", k, k, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", z0, z0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", O0, O0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", L0, L0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", m0, m0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", T0, T0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", E0, E0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", j0, j0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", I0, I0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], O.JSArray_Field);
9101
9101
  },
9102
9102
  $signature: 0
9103
9103
  }, t.flattenItemSchema_closure0.prototype = {
@@ -10975,8 +10975,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10975
10975
  return a.message;
10976
10976
  }
10977
10977
  }())), e(S, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => t.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), e(S, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(p.Type_Object_xQ6)), e(S, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List_NativeUint16List$fromList(t._setArrayType([1], O.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? p.C_Endian0 : p.C_Endian), e(S, "_clockKey", "$get$_clockKey", () => new t.Object()), e(S, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", p.List_BC_AD, p.List_6xs, p.List_qpm, p.List_qpm, p.List_cIc, p.List_cIc, p.List_h8w, p.List_h8w, p.List_wMy, p.List_wMy, p.List_gc6, p.List_gc6, p.List_3US, p.List_AM_PM)), n(S, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", S.$get$en_USSymbols())), n(S, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", p.Map_EQ6TW)), e(S, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(S, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'", !1), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], t.findType("JSArray<RegExp>"))), e(S, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''", !1)), e(S, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+", !1)), n(S, "_availableLocales", "$get$_availableLocales", () => {
10978
- var a, o, s = t.EnLocale$(p.StartOfWeek_1), u = t.EnLocale$(p.StartOfWeek_1), l = t.EnLocale$(p.StartOfWeek_1), M = t.EnLocale$(p.StartOfWeek_1), d = t.EnLocale$(p.StartOfWeek_1), _ = t.EnLocale$(p.StartOfWeek_2), z = t.EnLocale$(p.StartOfWeek_2), f = t.EnLocale$(p.StartOfWeek_1), y = t.EnLocale$(p.StartOfWeek_1), q = t.EsLocale$(p.StartOfWeek_2), h = t.EsLocale$(p.StartOfWeek_2), E = t.EsLocale$(p.StartOfWeek_1), C = t.FrLocale$(p.StartOfWeek_2), g = t.FrLocale$(p.StartOfWeek_2), R = t.FrLocale$(p.StartOfWeek_1), B = t.ZhCnLocale$(p.StartOfWeek_1), I = t.ZhCnLocale$(p.StartOfWeek_1), N = t.ZhLocale$(p.StartOfWeek_1), v = t.ZhLocale$(p.StartOfWeek_1), H = t.DeLocale$(p.StartOfWeek_2), J = t.DeLocale$(p.StartOfWeek_2), M0 = t.DeLocale$(p.StartOfWeek_2), D0 = t.DeLocale$(p.StartOfWeek_2), _0 = t.ItLocale$(p.StartOfWeek_2), Q = t.ItLocale$(p.StartOfWeek_2), z0 = t.ArLyLocale$(!0, p.StartOfWeek_0), O0 = t.ArLyLocale$(!1, p.StartOfWeek_0), L0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), m0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), T0 = t.ArSaMaDzKwTnLocale$(!0, p.StartOfWeek_1), E0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0), j0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0);
10979
- return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), a = t.PtLocale$(p.StartOfWeek_2), o = t.PtLocale$(p.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", u, "en_sg", l, "en_au", M, "en_ca", d, "en_gb", _, "en_ie", z, "en_il", f, "en_nz", y, "es", q, "es_do", h, "es_us", E, "fr", C, "fr_ch", g, "fr_ca", R, "zh", B, "zh_cn", I, "zh_hk", N, "zh_tw", v, "de", H, "de_de", J, "de_at", M0, "de_ch", D0, "it", _0, "it_ch", Q, "ar", z0, "ar_ly", O0, "ar_dz", L0, "ar_kw", m0, "ar_sa", T0, "ar_ma", E0, "ar_tn", j0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", a, "pt_br", o, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], O.String, t.findType("Locale"));
10978
+ var a, o, s = t.EnLocale$(p.StartOfWeek_1), u = t.EnLocale$(p.StartOfWeek_1), l = t.EnLocale$(p.StartOfWeek_1), M = t.EnLocale$(p.StartOfWeek_1), d = t.EnLocale$(p.StartOfWeek_1), _ = t.EnLocale$(p.StartOfWeek_2), z = t.EnLocale$(p.StartOfWeek_2), f = t.EnLocale$(p.StartOfWeek_1), y = t.EnLocale$(p.StartOfWeek_1), q = t.EsLocale$(p.StartOfWeek_2), h = t.EsLocale$(p.StartOfWeek_2), E = t.EsLocale$(p.StartOfWeek_1), C = t.FrLocale$(p.StartOfWeek_2), g = t.FrLocale$(p.StartOfWeek_2), R = t.FrLocale$(p.StartOfWeek_1), B = t.ZhCnLocale$(p.StartOfWeek_1), I = t.ZhCnLocale$(p.StartOfWeek_1), N = t.ZhLocale$(p.StartOfWeek_1), v = t.ZhLocale$(p.StartOfWeek_1), H = t.DeLocale$(p.StartOfWeek_2), J = t.DeLocale$(p.StartOfWeek_2), M0 = t.DeLocale$(p.StartOfWeek_2), D0 = t.DeLocale$(p.StartOfWeek_2), _0 = t.ItLocale$(p.StartOfWeek_2), k = t.ItLocale$(p.StartOfWeek_2), z0 = t.ArLyLocale$(!0, p.StartOfWeek_0), O0 = t.ArLyLocale$(!1, p.StartOfWeek_0), L0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), m0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), T0 = t.ArSaMaDzKwTnLocale$(!0, p.StartOfWeek_1), E0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0), j0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0);
10979
+ return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), a = t.PtLocale$(p.StartOfWeek_2), o = t.PtLocale$(p.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", u, "en_sg", l, "en_au", M, "en_ca", d, "en_gb", _, "en_ie", z, "en_il", f, "en_nz", y, "es", q, "es_do", h, "es_us", E, "fr", C, "fr_ch", g, "fr_ca", R, "zh", B, "zh_cn", I, "zh_hk", N, "zh_tw", v, "de", H, "de_de", J, "de_at", M0, "de_ch", D0, "it", _0, "it_ch", k, "ar", z0, "ar_ly", O0, "ar_dz", L0, "ar_kw", m0, "ar_sa", T0, "ar_ma", E0, "ar_tn", j0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", a, "pt_br", o, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], O.String, t.findType("Locale"));
10980
10980
  }), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
10981
10981
  var a = "createdAt", o = null, s = t.Source_Source$couchdb("", ""), u = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), a);
10982
10982
  return t.Schema_Schema$build(o, p.List_empty0, 3, t._setArrayType(["restaurantId"], O.JSArray_String), o, new t.addonFlattenItemSchema_closure(), p.List_empty, o, o, !0, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", p.SCHEMA_NAME_7, a, "", !0, s, u);
@@ -11557,13 +11557,13 @@ var Cn = Rn, br = {};
11557
11557
  function L() {
11558
11558
  try {
11559
11559
  throw new Error();
11560
- } catch (t0) {
11561
- var P = t0.stack, w = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), k = null;
11560
+ } catch (a0) {
11561
+ var P = a0.stack, w = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), X = null;
11562
11562
  do {
11563
- var G = w.exec(P);
11564
- G != null && (k = G);
11565
- } while (G != null);
11566
- return k[1];
11563
+ var j = w.exec(P);
11564
+ j != null && (X = j);
11565
+ } while (j != null);
11566
+ return X[1];
11567
11567
  }
11568
11568
  }
11569
11569
  var x = null;
@@ -11598,7 +11598,7 @@ var Cn = Rn, br = {};
11598
11598
  function w(e, n) {
11599
11599
  Object.assign(n, e);
11600
11600
  }
11601
- var k = function() {
11601
+ var X = function() {
11602
11602
  var e = function() {
11603
11603
  };
11604
11604
  e.prototype = { p: {} };
@@ -11617,9 +11617,9 @@ var Cn = Rn, br = {};
11617
11617
  }
11618
11618
  return !1;
11619
11619
  }();
11620
- function G(e, n) {
11620
+ function j(e, n) {
11621
11621
  if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, n != null) {
11622
- if (k) {
11622
+ if (X) {
11623
11623
  e.prototype.__proto__ = n.prototype;
11624
11624
  return;
11625
11625
  }
@@ -11627,9 +11627,9 @@ var Cn = Rn, br = {};
11627
11627
  x(e.prototype, a), e.prototype = a;
11628
11628
  }
11629
11629
  }
11630
- function t0(e, n) {
11630
+ function a0(e, n) {
11631
11631
  for (var a = 0; a < n.length; a++)
11632
- G(n[a], e);
11632
+ j(n[a], e);
11633
11633
  }
11634
11634
  function K(e, n) {
11635
11635
  w(n.prototype, e.prototype), e.prototype.constructor = e;
@@ -11637,7 +11637,7 @@ var Cn = Rn, br = {};
11637
11637
  function U(e, n) {
11638
11638
  P(n.prototype, e.prototype), e.prototype.constructor = e;
11639
11639
  }
11640
- function X(e, n, a, o) {
11640
+ function Q(e, n, a, o) {
11641
11641
  var s = e;
11642
11642
  e[n] = s, e[a] = function() {
11643
11643
  e[a] = function() {
@@ -11654,7 +11654,7 @@ var Cn = Rn, br = {};
11654
11654
  return u;
11655
11655
  };
11656
11656
  }
11657
- function j(e, n, a, o) {
11657
+ function Z(e, n, a, o) {
11658
11658
  var s = e;
11659
11659
  e[n] = s, e[a] = function() {
11660
11660
  return e[n] === s && (e[n] = o()), e[a] = function() {
@@ -11662,7 +11662,7 @@ var Cn = Rn, br = {};
11662
11662
  }, e[n];
11663
11663
  };
11664
11664
  }
11665
- function n0(e, n, a, o) {
11665
+ function G(e, n, a, o) {
11666
11666
  var s = e;
11667
11667
  e[n] = s, e[a] = function() {
11668
11668
  if (e[n] === s) {
@@ -11681,7 +11681,7 @@ var Cn = Rn, br = {};
11681
11681
  function i0(e) {
11682
11682
  return e;
11683
11683
  }
11684
- function l0(e) {
11684
+ function t0(e) {
11685
11685
  for (var n = 0; n < e.length; ++n)
11686
11686
  e[n];
11687
11687
  }
@@ -11693,23 +11693,23 @@ var Cn = Rn, br = {};
11693
11693
  return a === null && (a = i.closureFromTearOff(n)), new a(this, null);
11694
11694
  };
11695
11695
  }
11696
- function r0(e) {
11696
+ function n0(e) {
11697
11697
  var n = null;
11698
11698
  return function() {
11699
11699
  return n === null && (n = i.closureFromTearOff(e).prototype), n;
11700
11700
  };
11701
11701
  }
11702
- var a0 = 0;
11703
- function o0(e, n, a, o, s, u, l, M, d, _) {
11704
- return typeof M == "number" && (M += a0), { co: e, iS: n, iI: a, rC: o, dV: s, cs: u, fs: l, fT: M, aI: d || 0, nDA: _ };
11702
+ var o0 = 0;
11703
+ function s0(e, n, a, o, s, u, l, M, d, _) {
11704
+ return typeof M == "number" && (M += o0), { co: e, iS: n, iI: a, rC: o, dV: s, cs: u, fs: l, fT: M, aI: d || 0, nDA: _ };
11705
11705
  }
11706
- function s0(e, n, a, o, s, u, l, M) {
11707
- var d = o0(e, !0, !1, a, o, s, u, l, M, !1), _ = r0(d);
11706
+ function u0(e, n, a, o, s, u, l, M) {
11707
+ var d = s0(e, !0, !1, a, o, s, u, l, M, !1), _ = n0(d);
11708
11708
  e[n] = _;
11709
11709
  }
11710
11710
  function $0(e, n, a, o, s, u, l, M, d, _) {
11711
11711
  a = !!a;
11712
- var z = o0(e, !1, a, o, s, u, l, M, d, !!_), f = b0(a, z);
11712
+ var z = s0(e, !1, a, o, s, u, l, M, d, !!_), f = b0(a, z);
11713
11713
  e[n] = f;
11714
11714
  }
11715
11715
  function p0(e) {
@@ -11742,10 +11742,10 @@ var Cn = Rn, br = {};
11742
11742
  };
11743
11743
  }, n = function(a, o, s, u) {
11744
11744
  return function(l, M, d, _) {
11745
- return s0(l, M, a, o, s, [d], _, u);
11745
+ return u0(l, M, a, o, s, [d], _, u);
11746
11746
  };
11747
11747
  };
11748
- return { inherit: G, inheritMany: t0, mixin: K, mixinHard: U, installStaticTearOff: s0, installInstanceTearOff: $0, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: n(0, null, ["call$0"], 0), _static_1: n(1, null, ["call$1"], 0), _static_2: n(2, null, ["call$2"], 0), makeConstList: V, lazy: j, lazyFinal: n0, lazyOld: X, updateHolder: c0, convertToFastObject: i0, updateTypes: f0, setOrUpdateInterceptorsByTag: p0, setOrUpdateLeafTags: d0 };
11748
+ return { inherit: j, inheritMany: a0, mixin: K, mixinHard: U, installStaticTearOff: u0, installInstanceTearOff: $0, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: n(0, null, ["call$0"], 0), _static_1: n(1, null, ["call$1"], 0), _static_2: n(2, null, ["call$2"], 0), makeConstList: V, lazy: Z, lazyFinal: G, lazyOld: Q, updateHolder: c0, convertToFastObject: i0, updateTypes: f0, setOrUpdateInterceptorsByTag: p0, setOrUpdateLeafTags: d0 };
11749
11749
  }(), i = {
11750
11750
  JS_CONST: function() {
11751
11751
  },
@@ -14790,7 +14790,7 @@ var Cn = Rn, br = {};
14790
14790
  return e instanceof i.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? a = !0 : a = e instanceof i.ScorecardDatasourceConfigModel && e.isCumulative, a ? (a = r.XYDatasetModel, i.List_List$of(i.ListExtensions_mapIndexed(n, new i.accumulate_closure(e), a, a), !0, a)) : n;
14791
14791
  },
14792
14792
  formatBaseXYChartData(e, n, a, o, s) {
14793
- var u, l, M, d, _, z, f, y, q, h, E, C, g, R, B, I, N, v, H, J, M0, D0, _0, Q, z0, O0, L0, m0, T0, E0, j0, I0, K0 = null;
14793
+ var u, l, M, d, _, z, f, y, q, h, E, C, g, R, B, I, N, v, H, J, M0, D0, _0, k, z0, O0, L0, m0, T0, E0, j0, I0, K0 = null;
14794
14794
  if (a.length === 0)
14795
14795
  return u = i._setArrayType([], r.JSArray_String), l = i._setArrayType([], r.JSArray_XYDatasetModel), M = i.IterableExtension_get_firstOrNull(a), new i.BaseXYChartDataModel(e, u, l, new i.DateComparison(M == null ? K0 : M.dateRange, K0));
14796
14796
  for (d = A.JSArray_methods.get$first(a).columns, u = i._arrayInstanceType(d), l = u._eval$1("WhereIterable<1>"), _ = i.List_List$of(new i.WhereIterable(d, new i.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = i._arrayInstanceType(_)._eval$1("WhereIterable<1>"), z = i.List_List$of(new i.WhereIterable(_, new i.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, f = i._formatRows(i.ListExtension_sublistOrEmpty(a, 0, 1, l), s), y = i._formatRows(i.ListExtension_sublistOrEmpty(a, 1, 2, l), s), y.length !== 0 && (u = u._eval$1("MappedListIterable<1,ComparisonDataColumn>"), q = i.List_List$of(new i.MappedListIterable(d, new i.formatBaseXYChartData_closure1(), u), !0, u._eval$1("ListIterable.E")), h = i.compare(new i.ComparisonData(q, y), new i.ComparisonData(q, f)), y = h.comparison, f = h.main), u = r.String, l = i.LinkedHashMap_LinkedHashMap$_empty(u, r.bool), M = z.length, E = 0; C = z.length, E < C; z.length === M || (0, i.throwConcurrentModificationError)(z), ++E)
@@ -14811,8 +14811,8 @@ var Cn = Rn, br = {};
14811
14811
  for (C = r.JSArray_String, H = i._setArrayType([], C), J = i._setArrayType([], C), C = f.length, E = 0; E < f.length; f.length === C || (0, i.throwConcurrentModificationError)(f), ++E)
14812
14812
  M0 = f[E], N = p.getInterceptor$asx(M0), H.push(p.toString$0$(N.$index(M0, 0))), J.push(p.toString$0$(N.$index(M0, 1)));
14813
14813
  for (C = i.LinkedHashSet_LinkedHashSet$from(H, u), H = i.List_List$of(C, !0, i._instanceType(C)._precomputed1), u = i.LinkedHashSet_LinkedHashSet$from(J, u), D0 = i.List_List$of(u, !0, i._instanceType(u)._precomputed1), _0 = i._setArrayType([], r.JSArray_XYDatasetModel), u = D0.length, C = p.getInterceptor$asx(y), N = r.JSArray_nullable_num, E = 0; E < D0.length; D0.length === u || (0, i.throwConcurrentModificationError)(D0), ++E) {
14814
- for (Q = D0[E], z0 = i._setArrayType([], N), O0 = i._setArrayType([], N), L0 = B.$index(0, Q), v = l.$index(0, L0 ?? Q), m0 = v === !0, v = R.$index(0, Q), T0 = v ?? M.$index(0, Q), T0 == null && (T0 = Q), v = H.length, E0 = 0; E0 < H.length; H.length === v || (0, i.throwConcurrentModificationError)(H), ++E0)
14815
- j0 = H[E0], I0 = i.IterableExtension_firstWhereOrNull(f, new i.formatBaseXYChartData_closure5(j0, Q)), z0.push(i._parseMetricValue(I0 == null ? K0 : i.ListExtension_elementAtOrNull(I0, 2), m0)), C.get$length(y) !== 0 && (I0 = i.IterableExtension_firstWhereOrNull(y, new i.formatBaseXYChartData_closure6(j0, Q)), O0.push(i._parseMetricValue(I0 == null ? K0 : i.ListExtension_elementAtOrNull(I0, 2), m0)));
14814
+ for (k = D0[E], z0 = i._setArrayType([], N), O0 = i._setArrayType([], N), L0 = B.$index(0, k), v = l.$index(0, L0 ?? k), m0 = v === !0, v = R.$index(0, k), T0 = v ?? M.$index(0, k), T0 == null && (T0 = k), v = H.length, E0 = 0; E0 < H.length; H.length === v || (0, i.throwConcurrentModificationError)(H), ++E0)
14815
+ j0 = H[E0], I0 = i.IterableExtension_firstWhereOrNull(f, new i.formatBaseXYChartData_closure5(j0, k)), z0.push(i._parseMetricValue(I0 == null ? K0 : i.ListExtension_elementAtOrNull(I0, 2), m0)), C.get$length(y) !== 0 && (I0 = i.IterableExtension_firstWhereOrNull(y, new i.formatBaseXYChartData_closure6(j0, k)), O0.push(i._parseMetricValue(I0 == null ? K0 : i.ListExtension_elementAtOrNull(I0, 2), m0)));
14816
14816
  _0.push(new i.XYDatasetModel(T0, !1, z0)), O0.length !== 0 && _0.push(new i.XYDatasetModel(T0, !0, O0));
14817
14817
  }
14818
14818
  return _0 = i.accumulate(n, _0), u = i.IterableExtension_get_firstOrNull(a), u = u == null ? K0 : u.dateRange, l = i.ListExtension_elementAtOrNull(a, 1), new i.BaseXYChartDataModel(e, H, _0, new i.DateComparison(u, l == null ? K0 : l.dateRange));
@@ -19968,8 +19968,8 @@ Arguments: [` + d + "]";
19968
19968
  return o.message;
19969
19969
  }
19970
19970
  }())), n(F, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => i.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), n(F, "_hashSeed", "$get$_hashSeed", () => i.objectHashCode(A.Type_Object_xQ6)), n(F, "Endian_host", "$get$Endian_host", () => i.NativeByteData_NativeByteData$view(i.NativeUint16List_NativeUint16List$fromList(i._setArrayType([1], r.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? A.C_Endian0 : A.C_Endian), n(F, "_clockKey", "$get$_clockKey", () => new i.Object()), n(F, "en_USSymbols", "$get$en_USSymbols", () => new i.DateSymbols("en_US", A.List_BC_AD, A.List_6xs, A.List_qpm, A.List_qpm, A.List_cIc, A.List_cIc, A.List_h8w, A.List_h8w, A.List_wMy, A.List_wMy, A.List_gc6, A.List_gc6, A.List_3US, A.List_Q1_Q2_Q3_Q4, A.List_bJM, A.List_AM_PM)), a(F, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => i.UninitializedLocaleData$("initializeDateFormatting(<locale>)", F.$get$en_USSymbols())), a(F, "dateTimePatterns", "$get$dateTimePatterns", () => i.UninitializedLocaleData$("initializeDateFormatting(<locale>)", A.Map_EQ6TW)), n(F, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(F, "DateFormat__matchers", "$get$DateFormat__matchers", () => i._setArrayType([i.RegExp_RegExp("^'(?:[^']|'')*'", !1), i.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), i.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], i.findType("JSArray<RegExp>"))), n(F, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => i.RegExp_RegExp("''", !1)), n(F, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => i.RegExp_RegExp("^\\d+", !1)), a(F, "_availableLocales", "$get$_availableLocales", () => {
19971
- var o, s, u = i.EnLocale$(A.StartOfWeek_1), l = i.EnLocale$(A.StartOfWeek_1), M = i.EnLocale$(A.StartOfWeek_1), d = i.EnLocale$(A.StartOfWeek_1), _ = i.EnLocale$(A.StartOfWeek_1), z = i.EnLocale$(A.StartOfWeek_2), f = i.EnLocale$(A.StartOfWeek_2), y = i.EnLocale$(A.StartOfWeek_1), q = i.EnLocale$(A.StartOfWeek_1), h = i.EsLocale$(A.StartOfWeek_2), E = i.EsLocale$(A.StartOfWeek_2), C = i.EsLocale$(A.StartOfWeek_1), g = i.FrLocale$(A.StartOfWeek_2), R = i.FrLocale$(A.StartOfWeek_2), B = i.FrLocale$(A.StartOfWeek_1), I = i.ZhCnLocale$(A.StartOfWeek_1), N = i.ZhCnLocale$(A.StartOfWeek_1), v = i.ZhLocale$(A.StartOfWeek_1), H = i.ZhLocale$(A.StartOfWeek_1), J = i.DeLocale$(A.StartOfWeek_2), M0 = i.DeLocale$(A.StartOfWeek_2), D0 = i.DeLocale$(A.StartOfWeek_2), _0 = i.DeLocale$(A.StartOfWeek_2), Q = i.ItLocale$(A.StartOfWeek_2), z0 = i.ItLocale$(A.StartOfWeek_2), O0 = i.ArLyLocale$(!0, A.StartOfWeek_0), L0 = i.ArLyLocale$(!1, A.StartOfWeek_0), m0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), T0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), E0 = i.ArSaMaDzKwTnLocale$(!0, A.StartOfWeek_1), j0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0), I0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0);
19972
- return i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), o = i.PtLocale$(A.StartOfWeek_2), s = i.PtLocale$(A.StartOfWeek_1), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.LinkedHashMap_LinkedHashMap$_literal(["en", u, "en_us", l, "en_sg", M, "en_au", d, "en_ca", _, "en_gb", z, "en_ie", f, "en_il", y, "en_nz", q, "es", h, "es_do", E, "es_us", C, "fr", g, "fr_ch", R, "fr_ca", B, "zh", I, "zh_cn", N, "zh_hk", v, "zh_tw", H, "de", J, "de_de", M0, "de_at", D0, "de_ch", _0, "it", Q, "it_ch", z0, "ar", O0, "ar_ly", L0, "ar_dz", m0, "ar_kw", T0, "ar_sa", E0, "ar_ma", j0, "ar_tn", I0, "az", new i.AzLocale(A.StartOfWeek_2), "id", new i.IdLocale(A.StartOfWeek_1), "ja", new i.JaLocale(A.StartOfWeek_1), "ko", new i.KoLocale(A.StartOfWeek_1), "ru", new i.RuLocale(A.StartOfWeek_2), "uk", new i.UkLocale(A.StartOfWeek_2), "hi", new i.HiLocale(A.StartOfWeek_1), "pt", o, "pt_br", s, "pl", new i.PlLocale(A.StartOfWeek_2), "tr", new i.TrLocale(A.StartOfWeek_2), "sv", new i.SvLocale(A.StartOfWeek_2), "nb", new i.NbLocale(A.StartOfWeek_2), "fa", new i.FaLocale(A.StartOfWeek_0), "bn", new i.BnLocale(A.StartOfWeek_1), "nl", new i.NlLocale(A.StartOfWeek_2), "th", new i.ThLocale(A.StartOfWeek_1)], r.String, i.findType("Locale"));
19971
+ var o, s, u = i.EnLocale$(A.StartOfWeek_1), l = i.EnLocale$(A.StartOfWeek_1), M = i.EnLocale$(A.StartOfWeek_1), d = i.EnLocale$(A.StartOfWeek_1), _ = i.EnLocale$(A.StartOfWeek_1), z = i.EnLocale$(A.StartOfWeek_2), f = i.EnLocale$(A.StartOfWeek_2), y = i.EnLocale$(A.StartOfWeek_1), q = i.EnLocale$(A.StartOfWeek_1), h = i.EsLocale$(A.StartOfWeek_2), E = i.EsLocale$(A.StartOfWeek_2), C = i.EsLocale$(A.StartOfWeek_1), g = i.FrLocale$(A.StartOfWeek_2), R = i.FrLocale$(A.StartOfWeek_2), B = i.FrLocale$(A.StartOfWeek_1), I = i.ZhCnLocale$(A.StartOfWeek_1), N = i.ZhCnLocale$(A.StartOfWeek_1), v = i.ZhLocale$(A.StartOfWeek_1), H = i.ZhLocale$(A.StartOfWeek_1), J = i.DeLocale$(A.StartOfWeek_2), M0 = i.DeLocale$(A.StartOfWeek_2), D0 = i.DeLocale$(A.StartOfWeek_2), _0 = i.DeLocale$(A.StartOfWeek_2), k = i.ItLocale$(A.StartOfWeek_2), z0 = i.ItLocale$(A.StartOfWeek_2), O0 = i.ArLyLocale$(!0, A.StartOfWeek_0), L0 = i.ArLyLocale$(!1, A.StartOfWeek_0), m0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), T0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), E0 = i.ArSaMaDzKwTnLocale$(!0, A.StartOfWeek_1), j0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0), I0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0);
19972
+ return i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), o = i.PtLocale$(A.StartOfWeek_2), s = i.PtLocale$(A.StartOfWeek_1), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.LinkedHashMap_LinkedHashMap$_literal(["en", u, "en_us", l, "en_sg", M, "en_au", d, "en_ca", _, "en_gb", z, "en_ie", f, "en_il", y, "en_nz", q, "es", h, "es_do", E, "es_us", C, "fr", g, "fr_ch", R, "fr_ca", B, "zh", I, "zh_cn", N, "zh_hk", v, "zh_tw", H, "de", J, "de_de", M0, "de_at", D0, "de_ch", _0, "it", k, "it_ch", z0, "ar", O0, "ar_ly", L0, "ar_dz", m0, "ar_kw", T0, "ar_sa", E0, "ar_ma", j0, "ar_tn", I0, "az", new i.AzLocale(A.StartOfWeek_2), "id", new i.IdLocale(A.StartOfWeek_1), "ja", new i.JaLocale(A.StartOfWeek_1), "ko", new i.KoLocale(A.StartOfWeek_1), "ru", new i.RuLocale(A.StartOfWeek_2), "uk", new i.UkLocale(A.StartOfWeek_2), "hi", new i.HiLocale(A.StartOfWeek_1), "pt", o, "pt_br", s, "pl", new i.PlLocale(A.StartOfWeek_2), "tr", new i.TrLocale(A.StartOfWeek_2), "sv", new i.SvLocale(A.StartOfWeek_2), "nb", new i.NbLocale(A.StartOfWeek_2), "fa", new i.FaLocale(A.StartOfWeek_0), "bn", new i.BnLocale(A.StartOfWeek_1), "nl", new i.NlLocale(A.StartOfWeek_2), "th", new i.ThLocale(A.StartOfWeek_1)], r.String, i.findType("Locale"));
19973
19973
  }), n(F, "_UTC", "$get$_UTC", () => {
19974
19974
  var o = r.JSArray_int;
19975
19975
  return i.Location$("UTC", i._setArrayType([-864e13], o), i._setArrayType([0], o), i._setArrayType([A.TimeZone_0_false_UTC], r.JSArray_TimeZone));
@@ -20004,7 +20004,7 @@ Arguments: [` + d + "]";
20004
20004
  return this(e, n, a);
20005
20005
  }, Function.prototype.call$8 = function(e, n, a, o, s, u, l, M) {
20006
20006
  return this(e, n, a, o, s, u, l, M);
20007
- }, l0(S), function(e) {
20007
+ }, t0(S), function(e) {
20008
20008
  if (typeof document > "u") {
20009
20009
  e(null);
20010
20010
  return;
@@ -20053,14 +20053,14 @@ function kt(c) {
20053
20053
  /^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/
20054
20054
  );
20055
20055
  if (m) {
20056
- const [, w, k, G, t0, K, U = "0"] = m;
20056
+ const [, w, X, j, a0, K, U = "0"] = m;
20057
20057
  return {
20058
20058
  type: "fullDateTime",
20059
20059
  value: new Date(
20060
- parseInt(G),
20061
- parseInt(k) - 1,
20060
+ parseInt(j),
20061
+ parseInt(X) - 1,
20062
20062
  parseInt(w),
20063
- parseInt(t0),
20063
+ parseInt(a0),
20064
20064
  parseInt(K),
20065
20065
  parseInt(U)
20066
20066
  ).getTime()
@@ -20068,42 +20068,42 @@ function kt(c) {
20068
20068
  }
20069
20069
  const T = b.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
20070
20070
  if (T) {
20071
- const [, w, k, G] = T;
20071
+ const [, w, X, j] = T;
20072
20072
  return {
20073
20073
  type: "date",
20074
20074
  value: new Date(
20075
- parseInt(G),
20076
- parseInt(k) - 1,
20075
+ parseInt(j),
20076
+ parseInt(X) - 1,
20077
20077
  parseInt(w)
20078
20078
  ).getTime()
20079
20079
  };
20080
20080
  }
20081
20081
  const L = b.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
20082
20082
  if (L) {
20083
- const [, w, k, G] = L;
20083
+ const [, w, X, j] = L;
20084
20084
  return {
20085
20085
  type: "date",
20086
20086
  value: new Date(
20087
20087
  parseInt(w),
20088
- parseInt(k) - 1,
20089
- parseInt(G)
20088
+ parseInt(X) - 1,
20089
+ parseInt(j)
20090
20090
  ).getTime()
20091
20091
  };
20092
20092
  }
20093
20093
  const x = b.match(/^(\d{1,2})\/(\d{4})$/);
20094
20094
  if (x) {
20095
- const [, w, k] = x;
20095
+ const [, w, X] = x;
20096
20096
  return {
20097
20097
  type: "monthYear",
20098
- value: new Date(parseInt(k), parseInt(w) - 1, 1).getTime()
20098
+ value: new Date(parseInt(X), parseInt(w) - 1, 1).getTime()
20099
20099
  };
20100
20100
  }
20101
20101
  const P = b.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
20102
20102
  if (P) {
20103
- const [, w, k, G = "0"] = P;
20103
+ const [, w, X, j = "0"] = P;
20104
20104
  return {
20105
20105
  type: "time",
20106
- value: parseInt(w) * 3600 + parseInt(k) * 60 + parseInt(G)
20106
+ value: parseInt(w) * 3600 + parseInt(X) * 60 + parseInt(j)
20107
20107
  };
20108
20108
  }
20109
20109
  return /^\d+$/.test(b) ? { type: "number", value: parseInt(b) } : null;
@@ -20156,7 +20156,7 @@ function ye(c) {
20156
20156
  return Number.isFinite(m) ? m : null;
20157
20157
  }
20158
20158
  function Bn(c) {
20159
- var j, n0, V, i0, l0, b0;
20159
+ var Z, G, V, i0, t0, b0;
20160
20160
  const {
20161
20161
  rows: b = [],
20162
20162
  columns: D = [],
@@ -20166,32 +20166,32 @@ function Bn(c) {
20166
20166
  pageSize: L = 0
20167
20167
  } = c;
20168
20168
  let x = Array.isArray(b) ? [...b] : [];
20169
- T === "BOTTOM" && ((j = x.at(-1)) != null && j.isRollup) && x.pop(), T === "TOP" && ((n0 = x[0]) != null && n0.isRollup) && x.shift();
20169
+ T === "BOTTOM" && ((Z = x.at(-1)) != null && Z.isRollup) && x.pop(), T === "TOP" && ((G = x[0]) != null && G.isRollup) && x.shift();
20170
20170
  let P = 0;
20171
- for (const r0 of x)
20172
- r0.isRollup && P++, r0.groupIndex = P;
20171
+ for (const n0 of x)
20172
+ n0.isRollup && P++, n0.groupIndex = P;
20173
20173
  const w = {};
20174
- for (const r0 of D) w[r0.key] = r0.type === "NUMERIC";
20175
- const k = $.filter(
20176
- (r0) => r0.key && D.some((a0) => a0.key === r0.key)
20177
- ), G = k.length > 0;
20178
- let t0 = b;
20179
- m !== null && (t0 = t0.filter((r0) => !(m !== "" && (r0.isRollup === !0 || !r0.cells.some(
20180
- (a0) => ((a0 == null ? void 0 : a0.toLowerCase()) || "").includes(m == null ? void 0 : m.toLowerCase())
20181
- )))).map((r0) => ({
20182
- ...In(r0, D),
20183
- groupIndex: r0.groupIndex
20174
+ for (const n0 of D) w[n0.key] = n0.type === "NUMERIC";
20175
+ const X = $.filter(
20176
+ (n0) => n0.key && D.some((o0) => o0.key === n0.key)
20177
+ ), j = X.length > 0;
20178
+ let a0 = b;
20179
+ m !== null && (a0 = a0.filter((n0) => !(m !== "" && (n0.isRollup === !0 || !n0.cells.some(
20180
+ (o0) => ((o0 == null ? void 0 : o0.toLowerCase()) || "").includes(m == null ? void 0 : m.toLowerCase())
20181
+ )))).map((n0) => ({
20182
+ ...In(n0, D),
20183
+ groupIndex: n0.groupIndex
20184
20184
  })));
20185
20185
  const K = {};
20186
- for (const r0 of t0) {
20187
- const a0 = r0.groupIndex;
20188
- a0 !== void 0 && (K[a0] || (K[a0] = [])).push(r0);
20186
+ for (const n0 of a0) {
20187
+ const o0 = n0.groupIndex;
20188
+ o0 !== void 0 && (K[o0] || (K[o0] = [])).push(n0);
20189
20189
  }
20190
- G && Object.values(K).forEach((r0) => {
20191
- const a0 = r0.filter((s0) => s0.isRollup), o0 = r0.filter((s0) => !s0.isRollup);
20192
- o0.sort((s0, $0) => {
20193
- for (const { key: p0, type: d0 } of k) {
20194
- const f0 = d0 === "ASC" ? 1 : -1, c0 = $e(s0, p0, D) ?? "", t = $e($0, p0, D) ?? "";
20190
+ j && Object.values(K).forEach((n0) => {
20191
+ const o0 = n0.filter((u0) => u0.isRollup), s0 = n0.filter((u0) => !u0.isRollup);
20192
+ s0.sort((u0, $0) => {
20193
+ for (const { key: p0, type: d0 } of X) {
20194
+ const f0 = d0 === "ASC" ? 1 : -1, c0 = $e(u0, p0, D) ?? "", t = $e($0, p0, D) ?? "";
20195
20195
  if (w[p0]) {
20196
20196
  const i = ye(c0), p = ye(t);
20197
20197
  if (i !== null && p !== null) {
@@ -20209,43 +20209,43 @@ function Bn(c) {
20209
20209
  }
20210
20210
  }
20211
20211
  return 0;
20212
- }), K[r0[0].groupIndex] = a0.concat(o0);
20212
+ }), K[n0[0].groupIndex] = o0.concat(s0);
20213
20213
  });
20214
20214
  let U;
20215
- if (G) {
20216
- const r0 = T === null ? (() => {
20217
- const s0 = Object.keys(K).find(($0) => {
20215
+ if (j) {
20216
+ const n0 = T === null ? (() => {
20217
+ const u0 = Object.keys(K).find(($0) => {
20218
20218
  const p0 = K[$0] || [], d0 = p0.some((c0) => c0.isRollup), f0 = p0.some((c0) => !c0.isRollup);
20219
20219
  return d0 && !f0;
20220
20220
  });
20221
- return s0 !== void 0 ? Number(s0) : -1;
20222
- })() : -1, a0 = ((V = k[0]) == null ? void 0 : V.key) ?? ((i0 = D.find((s0) => w[s0.key])) == null ? void 0 : i0.key), o0 = ((l0 = k[0]) == null ? void 0 : l0.type) === "ASC" ? 1 : (((b0 = k[0]) == null ? void 0 : b0.type) === "DESC", -1);
20223
- U = Object.keys(K).map(Number).sort((s0, $0) => {
20224
- if (!a0) return s0 - $0;
20225
- if (r0 !== -1) {
20226
- if (s0 === r0) return -1;
20227
- if ($0 === r0) return 1;
20221
+ return u0 !== void 0 ? Number(u0) : -1;
20222
+ })() : -1, o0 = ((V = X[0]) == null ? void 0 : V.key) ?? ((i0 = D.find((u0) => w[u0.key])) == null ? void 0 : i0.key), s0 = ((t0 = X[0]) == null ? void 0 : t0.type) === "ASC" ? 1 : (((b0 = X[0]) == null ? void 0 : b0.type) === "DESC", -1);
20223
+ U = Object.keys(K).map(Number).sort((u0, $0) => {
20224
+ if (!o0) return u0 - $0;
20225
+ if (n0 !== -1) {
20226
+ if (u0 === n0) return -1;
20227
+ if ($0 === n0) return 1;
20228
20228
  }
20229
- const p0 = K[s0].find((i) => i.isRollup), d0 = K[$0].find((i) => i.isRollup), f0 = p0 ? $e(p0, a0, D) ?? "" : "", c0 = d0 ? $e(d0, a0, D) ?? "" : "";
20230
- if (w[a0]) {
20229
+ const p0 = K[u0].find((i) => i.isRollup), d0 = K[$0].find((i) => i.isRollup), f0 = p0 ? $e(p0, o0, D) ?? "" : "", c0 = d0 ? $e(d0, o0, D) ?? "" : "";
20230
+ if (w[o0]) {
20231
20231
  const i = ye(f0), p = ye(c0);
20232
- return i !== null && p !== null ? (i - p) * o0 : fe.compare(String(f0), String(c0)) * o0;
20232
+ return i !== null && p !== null ? (i - p) * s0 : fe.compare(String(f0), String(c0)) * s0;
20233
20233
  }
20234
20234
  const t = Ut(f0, c0);
20235
- return t !== null ? t * o0 : fe.compare(String(f0), String(c0)) * o0;
20235
+ return t !== null ? t * s0 : fe.compare(String(f0), String(c0)) * s0;
20236
20236
  });
20237
20237
  } else
20238
- U = Object.keys(K).map(Number).sort((r0, a0) => r0 - a0);
20239
- const X = [];
20240
- for (const r0 of U)
20241
- for (const { groupIndex: a0, ...o0 } of K[r0])
20242
- X.push(o0);
20238
+ U = Object.keys(K).map(Number).sort((n0, o0) => n0 - o0);
20239
+ const Q = [];
20240
+ for (const n0 of U)
20241
+ for (const { groupIndex: o0, ...s0 } of K[n0])
20242
+ Q.push(s0);
20243
20243
  if (L > 0) {
20244
- const r0 = X.length % L;
20245
- let a0 = 0;
20246
- r0 > 0 ? a0 = L - r0 : X.length === 0 && (a0 = L), a0 > 0 && X.push(...Fn(a0, D));
20244
+ const n0 = Q.length % L;
20245
+ let o0 = 0;
20246
+ n0 > 0 ? o0 = L - n0 : Q.length === 0 && (o0 = L), o0 > 0 && Q.push(...Fn(o0, D));
20247
20247
  }
20248
- return { data: X };
20248
+ return { data: Q };
20249
20249
  }
20250
20250
  var Nn = { processTableData: Bn }, dr = { exports: {} }, zr = { exports: {} };
20251
20251
  //! moment.js
@@ -20254,7 +20254,7 @@ var Nn = { processTableData: Bn }, dr = { exports: {} }, zr = { exports: {} };
20254
20254
  //! license : MIT
20255
20255
  //! momentjs.com
20256
20256
  var Or;
20257
- function Z() {
20257
+ function e0() {
20258
20258
  return Or.apply(null, arguments);
20259
20259
  }
20260
20260
  function xn(c) {
@@ -20281,7 +20281,7 @@ function At(c) {
20281
20281
  function r1(c) {
20282
20282
  return c === void 0;
20283
20283
  }
20284
- function T1(c) {
20284
+ function E1(c) {
20285
20285
  return typeof c == "number" || Object.prototype.toString.call(c) === "[object Number]";
20286
20286
  }
20287
20287
  function _e(c) {
@@ -20346,7 +20346,7 @@ function we(c) {
20346
20346
  var b = D1(NaN);
20347
20347
  return c != null ? W1(A0(b), c) : A0(b).userInvalidated = !0, b;
20348
20348
  }
20349
- var Qt = Z.momentProperties = [], je = !1;
20349
+ var Qt = e0.momentProperties = [], je = !1;
20350
20350
  function ft(c, b) {
20351
20351
  var D, $, m, T = Qt.length;
20352
20352
  if (r1(b._isAMomentObject) || (c._isAMomentObject = b._isAMomentObject), r1(b._i) || (c._i = b._i), r1(b._f) || (c._f = b._f), r1(b._l) || (c._l = b._l), r1(b._strict) || (c._strict = b._strict), r1(b._tzm) || (c._tzm = b._tzm), r1(b._isUTC) || (c._isUTC = b._isUTC), r1(b._offset) || (c._offset = b._offset), r1(b._pf) || (c._pf = A0(b)), r1(b._locale) || (c._locale = b._locale), T > 0)
@@ -20355,18 +20355,18 @@ function ft(c, b) {
20355
20355
  return c;
20356
20356
  }
20357
20357
  function de(c) {
20358
- ft(this, c), this._d = new Date(c._d != null ? c._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), je === !1 && (je = !0, Z.updateOffset(this), je = !1);
20358
+ ft(this, c), this._d = new Date(c._d != null ? c._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), je === !1 && (je = !0, e0.updateOffset(this), je = !1);
20359
20359
  }
20360
20360
  function _1(c) {
20361
20361
  return c instanceof de || c != null && c._isAMomentObject != null;
20362
20362
  }
20363
20363
  function Dr(c) {
20364
- Z.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + c);
20364
+ e0.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + c);
20365
20365
  }
20366
20366
  function i1(c, b) {
20367
20367
  var D = !0;
20368
20368
  return W1(function() {
20369
- if (Z.deprecationHandler != null && Z.deprecationHandler(null, c), D) {
20369
+ if (e0.deprecationHandler != null && e0.deprecationHandler(null, c), D) {
20370
20370
  var $ = [], m, T, L, x = arguments.length;
20371
20371
  for (T = 0; T < x; T++) {
20372
20372
  if (m = "", typeof arguments[T] == "object") {
@@ -20390,10 +20390,10 @@ Arguments: ` + Array.prototype.slice.call($).join("") + `
20390
20390
  }
20391
20391
  var Yt = {};
20392
20392
  function fr(c, b) {
20393
- Z.deprecationHandler != null && Z.deprecationHandler(c, b), Yt[c] || (Dr(b), Yt[c] = !0);
20393
+ e0.deprecationHandler != null && e0.deprecationHandler(c, b), Yt[c] || (Dr(b), Yt[c] = !0);
20394
20394
  }
20395
- Z.suppressDeprecationWarnings = !1;
20396
- Z.deprecationHandler = null;
20395
+ e0.suppressDeprecationWarnings = !1;
20396
+ e0.deprecationHandler = null;
20397
20397
  function f1(c) {
20398
20398
  return typeof Function < "u" && c instanceof Function || Object.prototype.toString.call(c) === "[object Function]";
20399
20399
  }
@@ -20440,7 +20440,7 @@ function A1(c, b, D) {
20440
20440
  return (T ? D ? "+" : "" : "-") + Math.pow(10, Math.max(0, m)).toString().substr(1) + $;
20441
20441
  }
20442
20442
  var yt = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, me = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, Ke = {}, j1 = {};
20443
- function u0(c, b, D, $) {
20443
+ function l0(c, b, D, $) {
20444
20444
  var m = $;
20445
20445
  typeof $ == "string" && (m = function() {
20446
20446
  return this[$]();
@@ -20617,7 +20617,7 @@ function ra(c) {
20617
20617
  }
20618
20618
  var yr = /\d/, a1 = /\d\d/, mr = /\d{3}/, qt = /\d{4}/, ve = /[+-]?\d{6}/, B0 = /\d\d?/, qr = /\d\d\d\d?/, gr = /\d\d\d\d\d\d?/, Pe = /\d{1,3}/, gt = /\d{1,4}/, Je = /[+-]?\d{1,6}/, te = /\d+/, He = /[+-]?\d+/, na = /Z|[+-]\d\d:?\d\d/gi, Xe = /Z|[+-]\d\d(?::?\d\d)?/gi, aa = /[+-]?\d+(\.\d{1,3})?/, ze = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, re = /^[1-9]\d?/, ht = /^([1-9]\d|\d)/, Le;
20619
20619
  Le = {};
20620
- function e0(c, b, D) {
20620
+ function r0(c, b, D) {
20621
20621
  Le[c] = f1(b) ? b : function($, m) {
20622
20622
  return $ && D ? D : b;
20623
20623
  };
@@ -20626,7 +20626,7 @@ function oa(c, b) {
20626
20626
  return h0(Le, c) ? Le[c](b._strict, b._locale) : new RegExp(ia(c));
20627
20627
  }
20628
20628
  function ia(c) {
20629
- return h1(
20629
+ return S1(
20630
20630
  c.replace("\\", "").replace(
20631
20631
  /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
20632
20632
  function(b, D, $, m, T) {
@@ -20635,7 +20635,7 @@ function ia(c) {
20635
20635
  )
20636
20636
  );
20637
20637
  }
20638
- function h1(c) {
20638
+ function S1(c) {
20639
20639
  return c.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
20640
20640
  }
20641
20641
  function o1(c) {
@@ -20648,7 +20648,7 @@ function y0(c) {
20648
20648
  var lt = {};
20649
20649
  function C0(c, b) {
20650
20650
  var D, $ = b, m;
20651
- for (typeof c == "string" && (c = [c]), T1(b) && ($ = function(T, L) {
20651
+ for (typeof c == "string" && (c = [c]), E1(b) && ($ = function(T, L) {
20652
20652
  L[b] = y0(T);
20653
20653
  }), m = c.length, D = 0; D < m; D++)
20654
20654
  lt[c[D]] = $;
@@ -20664,28 +20664,28 @@ function sa(c, b, D) {
20664
20664
  function ke(c) {
20665
20665
  return c % 4 === 0 && c % 100 !== 0 || c % 400 === 0;
20666
20666
  }
20667
- var Z0 = 0, q1 = 1, O1 = 2, Y0 = 3, M1 = 4, g1 = 5, v1 = 6, ua = 7, la = 8;
20668
- u0("Y", 0, 0, function() {
20667
+ var Z0 = 0, g1 = 1, O1 = 2, Y0 = 3, M1 = 4, h1 = 5, v1 = 6, ua = 7, la = 8;
20668
+ l0("Y", 0, 0, function() {
20669
20669
  var c = this.year();
20670
20670
  return c <= 9999 ? A1(c, 4) : "+" + c;
20671
20671
  });
20672
- u0(0, ["YY", 2], 0, function() {
20672
+ l0(0, ["YY", 2], 0, function() {
20673
20673
  return this.year() % 100;
20674
20674
  });
20675
- u0(0, ["YYYY", 4], 0, "year");
20676
- u0(0, ["YYYYY", 5], 0, "year");
20677
- u0(0, ["YYYYYY", 6, !0], 0, "year");
20678
- e0("Y", He);
20679
- e0("YY", B0, a1);
20680
- e0("YYYY", gt, qt);
20681
- e0("YYYYY", Je, ve);
20682
- e0("YYYYYY", Je, ve);
20675
+ l0(0, ["YYYY", 4], 0, "year");
20676
+ l0(0, ["YYYYY", 5], 0, "year");
20677
+ l0(0, ["YYYYYY", 6, !0], 0, "year");
20678
+ r0("Y", He);
20679
+ r0("YY", B0, a1);
20680
+ r0("YYYY", gt, qt);
20681
+ r0("YYYYY", Je, ve);
20682
+ r0("YYYYYY", Je, ve);
20683
20683
  C0(["YYYYY", "YYYYYY"], Z0);
20684
20684
  C0("YYYY", function(c, b) {
20685
- b[Z0] = c.length === 2 ? Z.parseTwoDigitYear(c) : y0(c);
20685
+ b[Z0] = c.length === 2 ? e0.parseTwoDigitYear(c) : y0(c);
20686
20686
  });
20687
20687
  C0("YY", function(c, b) {
20688
- b[Z0] = Z.parseTwoDigitYear(c);
20688
+ b[Z0] = e0.parseTwoDigitYear(c);
20689
20689
  });
20690
20690
  C0("Y", function(c, b) {
20691
20691
  b[Z0] = parseInt(c, 10);
@@ -20693,7 +20693,7 @@ C0("Y", function(c, b) {
20693
20693
  function ue(c) {
20694
20694
  return ke(c) ? 366 : 365;
20695
20695
  }
20696
- Z.parseTwoDigitYear = function(c) {
20696
+ e0.parseTwoDigitYear = function(c) {
20697
20697
  return y0(c) + (y0(c) > 68 ? 1900 : 2e3);
20698
20698
  };
20699
20699
  var hr = ne("FullYear", !0);
@@ -20702,7 +20702,7 @@ function pa() {
20702
20702
  }
20703
20703
  function ne(c, b) {
20704
20704
  return function(D) {
20705
- return D != null ? (Sr(this, c, D), Z.updateOffset(this, b), this) : le(this, c);
20705
+ return D != null ? (Sr(this, c, D), e0.updateOffset(this, b), this) : le(this, c);
20706
20706
  };
20707
20707
  }
20708
20708
  function le(c, b) {
@@ -20782,29 +20782,29 @@ function St(c, b) {
20782
20782
  var D = ba(b, 12);
20783
20783
  return c += (b - D) / 12, D === 1 ? ke(c) ? 29 : 28 : 31 - D % 7 % 2;
20784
20784
  }
20785
- u0("M", ["MM", 2], "Mo", function() {
20785
+ l0("M", ["MM", 2], "Mo", function() {
20786
20786
  return this.month() + 1;
20787
20787
  });
20788
- u0("MMM", 0, 0, function(c) {
20788
+ l0("MMM", 0, 0, function(c) {
20789
20789
  return this.localeData().monthsShort(this, c);
20790
20790
  });
20791
- u0("MMMM", 0, 0, function(c) {
20791
+ l0("MMMM", 0, 0, function(c) {
20792
20792
  return this.localeData().months(this, c);
20793
20793
  });
20794
- e0("M", B0, re);
20795
- e0("MM", B0, a1);
20796
- e0("MMM", function(c, b) {
20794
+ r0("M", B0, re);
20795
+ r0("MM", B0, a1);
20796
+ r0("MMM", function(c, b) {
20797
20797
  return b.monthsShortRegex(c);
20798
20798
  });
20799
- e0("MMMM", function(c, b) {
20799
+ r0("MMMM", function(c, b) {
20800
20800
  return b.monthsRegex(c);
20801
20801
  });
20802
20802
  C0(["M", "MM"], function(c, b) {
20803
- b[q1] = y0(c) - 1;
20803
+ b[g1] = y0(c) - 1;
20804
20804
  });
20805
20805
  C0(["MMM", "MMMM"], function(c, b, D, $) {
20806
20806
  var m = D._locale.monthsParse(c, $, D._strict);
20807
- m != null ? b[q1] = m : A0(D).invalidMonth = c;
20807
+ m != null ? b[g1] = m : A0(D).invalidMonth = c;
20808
20808
  });
20809
20809
  var _a = "January_February_March_April_May_June_July_August_September_October_November_December".split(
20810
20810
  "_"
@@ -20850,14 +20850,14 @@ function Rr(c, b) {
20850
20850
  if (typeof b == "string") {
20851
20851
  if (/^\d+$/.test(b))
20852
20852
  b = y0(b);
20853
- else if (b = c.localeData().monthsParse(b), !T1(b))
20853
+ else if (b = c.localeData().monthsParse(b), !E1(b))
20854
20854
  return c;
20855
20855
  }
20856
20856
  var D = b, $ = c.date();
20857
20857
  return $ = $ < 29 ? $ : Math.min($, St(c.year(), D)), c._isUTC ? c._d.setUTCMonth(D, $) : c._d.setMonth(D, $), c;
20858
20858
  }
20859
20859
  function Cr(c) {
20860
- return c != null ? (Rr(this, c), Z.updateOffset(this, !0), this) : le(this, "Month");
20860
+ return c != null ? (Rr(this, c), e0.updateOffset(this, !0), this) : le(this, "Month");
20861
20861
  }
20862
20862
  function $a() {
20863
20863
  return St(this.year(), this.month());
@@ -20874,7 +20874,7 @@ function Wr() {
20874
20874
  }
20875
20875
  var b = [], D = [], $ = [], m, T, L, x;
20876
20876
  for (m = 0; m < 12; m++)
20877
- T = D1([2e3, m]), L = h1(this.monthsShort(T, "")), x = h1(this.months(T, "")), b.push(L), D.push(x), $.push(x), $.push(L);
20877
+ T = D1([2e3, m]), L = S1(this.monthsShort(T, "")), x = S1(this.months(T, "")), b.push(L), D.push(x), $.push(x), $.push(L);
20878
20878
  b.sort(c), D.sort(c), $.sort(c), this._monthsRegex = new RegExp("^(" + $.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
20879
20879
  "^(" + D.join("|") + ")",
20880
20880
  "i"
@@ -20904,21 +20904,21 @@ function Lr(c, b, D, $, m) {
20904
20904
  }
20905
20905
  function ce(c, b, D) {
20906
20906
  var $ = Ie(c.year(), b, D), m = Math.floor((c.dayOfYear() - $ - 1) / 7) + 1, T, L;
20907
- return m < 1 ? (L = c.year() - 1, T = m + S1(L, b, D)) : m > S1(c.year(), b, D) ? (T = m - S1(c.year(), b, D), L = c.year() + 1) : (L = c.year(), T = m), {
20907
+ return m < 1 ? (L = c.year() - 1, T = m + T1(L, b, D)) : m > T1(c.year(), b, D) ? (T = m - T1(c.year(), b, D), L = c.year() + 1) : (L = c.year(), T = m), {
20908
20908
  week: T,
20909
20909
  year: L
20910
20910
  };
20911
20911
  }
20912
- function S1(c, b, D) {
20912
+ function T1(c, b, D) {
20913
20913
  var $ = Ie(c, b, D), m = Ie(c + 1, b, D);
20914
20914
  return (ue(c) - $ + m) / 7;
20915
20915
  }
20916
- u0("w", ["ww", 2], "wo", "week");
20917
- u0("W", ["WW", 2], "Wo", "isoWeek");
20918
- e0("w", B0, re);
20919
- e0("ww", B0, a1);
20920
- e0("W", B0, re);
20921
- e0("WW", B0, a1);
20916
+ l0("w", ["ww", 2], "wo", "week");
20917
+ l0("W", ["WW", 2], "Wo", "isoWeek");
20918
+ r0("w", B0, re);
20919
+ r0("ww", B0, a1);
20920
+ r0("W", B0, re);
20921
+ r0("WW", B0, a1);
20922
20922
  Oe(
20923
20923
  ["w", "ww", "W", "WW"],
20924
20924
  function(c, b, D, $) {
@@ -20948,28 +20948,28 @@ function Ra(c) {
20948
20948
  var b = ce(this, 1, 4).week;
20949
20949
  return c == null ? b : this.add((c - b) * 7, "d");
20950
20950
  }
20951
- u0("d", 0, "do", "day");
20952
- u0("dd", 0, 0, function(c) {
20951
+ l0("d", 0, "do", "day");
20952
+ l0("dd", 0, 0, function(c) {
20953
20953
  return this.localeData().weekdaysMin(this, c);
20954
20954
  });
20955
- u0("ddd", 0, 0, function(c) {
20955
+ l0("ddd", 0, 0, function(c) {
20956
20956
  return this.localeData().weekdaysShort(this, c);
20957
20957
  });
20958
- u0("dddd", 0, 0, function(c) {
20958
+ l0("dddd", 0, 0, function(c) {
20959
20959
  return this.localeData().weekdays(this, c);
20960
20960
  });
20961
- u0("e", 0, 0, "weekday");
20962
- u0("E", 0, 0, "isoWeekday");
20963
- e0("d", B0);
20964
- e0("e", B0);
20965
- e0("E", B0);
20966
- e0("dd", function(c, b) {
20961
+ l0("e", 0, 0, "weekday");
20962
+ l0("E", 0, 0, "isoWeekday");
20963
+ r0("d", B0);
20964
+ r0("e", B0);
20965
+ r0("E", B0);
20966
+ r0("dd", function(c, b) {
20967
20967
  return b.weekdaysMinRegex(c);
20968
20968
  });
20969
- e0("ddd", function(c, b) {
20969
+ r0("ddd", function(c, b) {
20970
20970
  return b.weekdaysShortRegex(c);
20971
20971
  });
20972
- e0("dddd", function(c, b) {
20972
+ r0("dddd", function(c, b) {
20973
20973
  return b.weekdaysRegex(c);
20974
20974
  });
20975
20975
  Oe(["dd", "ddd", "dddd"], function(c, b, D, $) {
@@ -21067,12 +21067,12 @@ function Ya(c) {
21067
21067
  return this._weekdaysParseExact ? (h0(this, "_weekdaysRegex") || Et.call(this), c ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (h0(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Na), this._weekdaysMinStrictRegex && c ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
21068
21068
  }
21069
21069
  function Et() {
21070
- function c(k, G) {
21071
- return G.length - k.length;
21070
+ function c(X, j) {
21071
+ return j.length - X.length;
21072
21072
  }
21073
21073
  var b = [], D = [], $ = [], m = [], T, L, x, P, w;
21074
21074
  for (T = 0; T < 7; T++)
21075
- L = D1([2e3, 1]).day(T), x = h1(this.weekdaysMin(L, "")), P = h1(this.weekdaysShort(L, "")), w = h1(this.weekdays(L, "")), b.push(x), D.push(P), $.push(w), m.push(x), m.push(P), m.push(w);
21075
+ L = D1([2e3, 1]).day(T), x = S1(this.weekdaysMin(L, "")), P = S1(this.weekdaysShort(L, "")), w = S1(this.weekdays(L, "")), b.push(x), D.push(P), $.push(w), m.push(x), m.push(P), m.push(w);
21076
21076
  b.sort(c), D.sort(c), $.sort(c), m.sort(c), this._weekdaysRegex = new RegExp("^(" + m.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
21077
21077
  "^(" + $.join("|") + ")",
21078
21078
  "i"
@@ -21090,23 +21090,23 @@ function Rt() {
21090
21090
  function Va() {
21091
21091
  return this.hours() || 24;
21092
21092
  }
21093
- u0("H", ["HH", 2], 0, "hour");
21094
- u0("h", ["hh", 2], 0, Rt);
21095
- u0("k", ["kk", 2], 0, Va);
21096
- u0("hmm", 0, 0, function() {
21093
+ l0("H", ["HH", 2], 0, "hour");
21094
+ l0("h", ["hh", 2], 0, Rt);
21095
+ l0("k", ["kk", 2], 0, Va);
21096
+ l0("hmm", 0, 0, function() {
21097
21097
  return "" + Rt.apply(this) + A1(this.minutes(), 2);
21098
21098
  });
21099
- u0("hmmss", 0, 0, function() {
21099
+ l0("hmmss", 0, 0, function() {
21100
21100
  return "" + Rt.apply(this) + A1(this.minutes(), 2) + A1(this.seconds(), 2);
21101
21101
  });
21102
- u0("Hmm", 0, 0, function() {
21102
+ l0("Hmm", 0, 0, function() {
21103
21103
  return "" + this.hours() + A1(this.minutes(), 2);
21104
21104
  });
21105
- u0("Hmmss", 0, 0, function() {
21105
+ l0("Hmmss", 0, 0, function() {
21106
21106
  return "" + this.hours() + A1(this.minutes(), 2) + A1(this.seconds(), 2);
21107
21107
  });
21108
21108
  function Fr(c, b) {
21109
- u0(c, 0, 0, function() {
21109
+ l0(c, 0, 0, function() {
21110
21110
  return this.localeData().meridiem(
21111
21111
  this.hours(),
21112
21112
  this.minutes(),
@@ -21119,18 +21119,18 @@ Fr("A", !1);
21119
21119
  function Br(c, b) {
21120
21120
  return b._meridiemParse;
21121
21121
  }
21122
- e0("a", Br);
21123
- e0("A", Br);
21124
- e0("H", B0, ht);
21125
- e0("h", B0, re);
21126
- e0("k", B0, re);
21127
- e0("HH", B0, a1);
21128
- e0("hh", B0, a1);
21129
- e0("kk", B0, a1);
21130
- e0("hmm", qr);
21131
- e0("hmmss", gr);
21132
- e0("Hmm", qr);
21133
- e0("Hmmss", gr);
21122
+ r0("a", Br);
21123
+ r0("A", Br);
21124
+ r0("H", B0, ht);
21125
+ r0("h", B0, re);
21126
+ r0("k", B0, re);
21127
+ r0("HH", B0, a1);
21128
+ r0("hh", B0, a1);
21129
+ r0("kk", B0, a1);
21130
+ r0("hmm", qr);
21131
+ r0("hmmss", gr);
21132
+ r0("Hmm", qr);
21133
+ r0("Hmmss", gr);
21134
21134
  C0(["H", "HH"], Y0);
21135
21135
  C0(["k", "kk"], function(c, b, D) {
21136
21136
  var $ = y0(c);
@@ -21148,7 +21148,7 @@ C0("hmm", function(c, b, D) {
21148
21148
  });
21149
21149
  C0("hmmss", function(c, b, D) {
21150
21150
  var $ = c.length - 4, m = c.length - 2;
21151
- b[Y0] = y0(c.substr(0, $)), b[M1] = y0(c.substr($, 2)), b[g1] = y0(c.substr(m)), A0(D).bigHour = !0;
21151
+ b[Y0] = y0(c.substr(0, $)), b[M1] = y0(c.substr($, 2)), b[h1] = y0(c.substr(m)), A0(D).bigHour = !0;
21152
21152
  });
21153
21153
  C0("Hmm", function(c, b, D) {
21154
21154
  var $ = c.length - 2;
@@ -21156,7 +21156,7 @@ C0("Hmm", function(c, b, D) {
21156
21156
  });
21157
21157
  C0("Hmmss", function(c, b, D) {
21158
21158
  var $ = c.length - 4, m = c.length - 2;
21159
- b[Y0] = y0(c.substr(0, $)), b[M1] = y0(c.substr($, 2)), b[g1] = y0(c.substr(m));
21159
+ b[Y0] = y0(c.substr(0, $)), b[M1] = y0(c.substr($, 2)), b[h1] = y0(c.substr(m));
21160
21160
  });
21161
21161
  function Ga(c) {
21162
21162
  return (c + "").toLowerCase().charAt(0) === "p";
@@ -21218,7 +21218,7 @@ function Ue(c) {
21218
21218
  }
21219
21219
  function I1(c, b) {
21220
21220
  var D;
21221
- return c && (r1(b) ? D = E1(c) : D = Ct(c, b), D ? Me = D : typeof console < "u" && console.warn && console.warn(
21221
+ return c && (r1(b) ? D = R1(c) : D = Ct(c, b), D ? Me = D : typeof console < "u" && console.warn && console.warn(
21222
21222
  "Locale " + c + " not found. Did you forget to load it?"
21223
21223
  )), Me._abbr;
21224
21224
  }
@@ -21254,7 +21254,7 @@ function no(c, b) {
21254
21254
  N0[c] != null && (N0[c].parentLocale != null ? (N0[c] = N0[c].parentLocale, c === I1() && I1(c)) : N0[c] != null && delete N0[c]);
21255
21255
  return N0[c];
21256
21256
  }
21257
- function E1(c) {
21257
+ function R1(c) {
21258
21258
  var b;
21259
21259
  if (c && c._locale && c._locale._abbr && (c = c._locale._abbr), !c)
21260
21260
  return Me;
@@ -21270,7 +21270,7 @@ function ao() {
21270
21270
  }
21271
21271
  function Wt(c) {
21272
21272
  var b, D = c._a;
21273
- return D && A0(c).overflow === -2 && (b = D[q1] < 0 || D[q1] > 11 ? q1 : D[O1] < 1 || D[O1] > St(D[Z0], D[q1]) ? O1 : D[Y0] < 0 || D[Y0] > 24 || D[Y0] === 24 && (D[M1] !== 0 || D[g1] !== 0 || D[v1] !== 0) ? Y0 : D[M1] < 0 || D[M1] > 59 ? M1 : D[g1] < 0 || D[g1] > 59 ? g1 : D[v1] < 0 || D[v1] > 999 ? v1 : -1, A0(c)._overflowDayOfYear && (b < Z0 || b > O1) && (b = O1), A0(c)._overflowWeeks && b === -1 && (b = ua), A0(c)._overflowWeekday && b === -1 && (b = la), A0(c).overflow = b), c;
21273
+ return D && A0(c).overflow === -2 && (b = D[g1] < 0 || D[g1] > 11 ? g1 : D[O1] < 1 || D[O1] > St(D[Z0], D[g1]) ? O1 : D[Y0] < 0 || D[Y0] > 24 || D[Y0] === 24 && (D[M1] !== 0 || D[h1] !== 0 || D[v1] !== 0) ? Y0 : D[M1] < 0 || D[M1] > 59 ? M1 : D[h1] < 0 || D[h1] > 59 ? h1 : D[v1] < 0 || D[v1] > 999 ? v1 : -1, A0(c)._overflowDayOfYear && (b < Z0 || b > O1) && (b = O1), A0(c)._overflowWeeks && b === -1 && (b = ua), A0(c)._overflowWeekday && b === -1 && (b = la), A0(c).overflow = b), c;
21274
21274
  }
21275
21275
  var oo = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, io = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, so = /Z|[+-]\d\d(?::?\d\d)?/, qe = [
21276
21276
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -21309,7 +21309,7 @@ var oo = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
21309
21309
  PST: -8 * 60
21310
21310
  };
21311
21311
  function xr(c) {
21312
- var b, D, $ = c._i, m = oo.exec($) || io.exec($), T, L, x, P, w = qe.length, k = Ze.length;
21312
+ var b, D, $ = c._i, m = oo.exec($) || io.exec($), T, L, x, P, w = qe.length, X = Ze.length;
21313
21313
  if (m) {
21314
21314
  for (A0(c).iso = !0, b = 0, D = w; b < D; b++)
21315
21315
  if (qe[b][1].exec(m[1])) {
@@ -21321,7 +21321,7 @@ function xr(c) {
21321
21321
  return;
21322
21322
  }
21323
21323
  if (m[3]) {
21324
- for (b = 0, D = k; b < D; b++)
21324
+ for (b = 0, D = X; b < D; b++)
21325
21325
  if (Ze[b][1].exec(m[3])) {
21326
21326
  x = (m[2] || " ") + Ze[b][0];
21327
21327
  break;
@@ -21413,9 +21413,9 @@ function Oo(c) {
21413
21413
  delete c._isValid;
21414
21414
  else
21415
21415
  return;
21416
- c._strict ? c._isValid = !1 : Z.createFromInputFallback(c);
21416
+ c._strict ? c._isValid = !1 : e0.createFromInputFallback(c);
21417
21417
  }
21418
- Z.createFromInputFallback = i1(
21418
+ e0.createFromInputFallback = i1(
21419
21419
  "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
21420
21420
  function(c) {
21421
21421
  c._d = /* @__PURE__ */ new Date(c._i + (c._useUTC ? " UTC" : ""));
@@ -21425,7 +21425,7 @@ function Y1(c, b, D) {
21425
21425
  return c ?? b ?? D;
21426
21426
  }
21427
21427
  function Ao(c) {
21428
- var b = new Date(Z.now());
21428
+ var b = new Date(e0.now());
21429
21429
  return c._useUTC ? [
21430
21430
  b.getUTCFullYear(),
21431
21431
  b.getUTCMonth(),
@@ -21435,11 +21435,11 @@ function Ao(c) {
21435
21435
  function Lt(c) {
21436
21436
  var b, D, $ = [], m, T, L;
21437
21437
  if (!c._d) {
21438
- for (m = Ao(c), c._w && c._a[O1] == null && c._a[q1] == null && Do(c), c._dayOfYear != null && (L = Y1(c._a[Z0], m[Z0]), (c._dayOfYear > ue(L) || c._dayOfYear === 0) && (A0(c)._overflowDayOfYear = !0), D = pe(L, 0, c._dayOfYear), c._a[q1] = D.getUTCMonth(), c._a[O1] = D.getUTCDate()), b = 0; b < 3 && c._a[b] == null; ++b)
21438
+ for (m = Ao(c), c._w && c._a[O1] == null && c._a[g1] == null && Do(c), c._dayOfYear != null && (L = Y1(c._a[Z0], m[Z0]), (c._dayOfYear > ue(L) || c._dayOfYear === 0) && (A0(c)._overflowDayOfYear = !0), D = pe(L, 0, c._dayOfYear), c._a[g1] = D.getUTCMonth(), c._a[O1] = D.getUTCDate()), b = 0; b < 3 && c._a[b] == null; ++b)
21439
21439
  c._a[b] = $[b] = m[b];
21440
21440
  for (; b < 7; b++)
21441
21441
  c._a[b] = $[b] = c._a[b] == null ? b === 2 ? 1 : 0 : c._a[b];
21442
- c._a[Y0] === 24 && c._a[M1] === 0 && c._a[g1] === 0 && c._a[v1] === 0 && (c._nextDay = !0, c._a[Y0] = 0), c._d = (c._useUTC ? pe : qa).apply(
21442
+ c._a[Y0] === 24 && c._a[M1] === 0 && c._a[h1] === 0 && c._a[v1] === 0 && (c._nextDay = !0, c._a[Y0] = 0), c._d = (c._useUTC ? pe : qa).apply(
21443
21443
  null,
21444
21444
  $
21445
21445
  ), T = c._useUTC ? c._d.getUTCDay() : c._d.getDay(), c._tzm != null && c._d.setUTCMinutes(c._d.getUTCMinutes() - c._tzm), c._nextDay && (c._a[Y0] = 24), c._w && typeof c._w.d < "u" && c._w.d !== T && (A0(c).weekdayMismatch = !0);
@@ -21451,24 +21451,24 @@ function Do(c) {
21451
21451
  b.GG,
21452
21452
  c._a[Z0],
21453
21453
  ce(F0(), 1, 4).year
21454
- ), $ = Y1(b.W, 1), m = Y1(b.E, 1), (m < 1 || m > 7) && (P = !0)) : (T = c._locale._week.dow, L = c._locale._week.doy, w = ce(F0(), T, L), D = Y1(b.gg, c._a[Z0], w.year), $ = Y1(b.w, w.week), b.d != null ? (m = b.d, (m < 0 || m > 6) && (P = !0)) : b.e != null ? (m = b.e + T, (b.e < 0 || b.e > 6) && (P = !0)) : m = T), $ < 1 || $ > S1(D, T, L) ? A0(c)._overflowWeeks = !0 : P != null ? A0(c)._overflowWeekday = !0 : (x = Lr(D, $, m, T, L), c._a[Z0] = x.year, c._dayOfYear = x.dayOfYear);
21454
+ ), $ = Y1(b.W, 1), m = Y1(b.E, 1), (m < 1 || m > 7) && (P = !0)) : (T = c._locale._week.dow, L = c._locale._week.doy, w = ce(F0(), T, L), D = Y1(b.gg, c._a[Z0], w.year), $ = Y1(b.w, w.week), b.d != null ? (m = b.d, (m < 0 || m > 6) && (P = !0)) : b.e != null ? (m = b.e + T, (b.e < 0 || b.e > 6) && (P = !0)) : m = T), $ < 1 || $ > T1(D, T, L) ? A0(c)._overflowWeeks = !0 : P != null ? A0(c)._overflowWeekday = !0 : (x = Lr(D, $, m, T, L), c._a[Z0] = x.year, c._dayOfYear = x.dayOfYear);
21455
21455
  }
21456
- Z.ISO_8601 = function() {
21456
+ e0.ISO_8601 = function() {
21457
21457
  };
21458
- Z.RFC_2822 = function() {
21458
+ e0.RFC_2822 = function() {
21459
21459
  };
21460
21460
  function It(c) {
21461
- if (c._f === Z.ISO_8601) {
21461
+ if (c._f === e0.ISO_8601) {
21462
21462
  xr(c);
21463
21463
  return;
21464
21464
  }
21465
- if (c._f === Z.RFC_2822) {
21465
+ if (c._f === e0.RFC_2822) {
21466
21466
  wr(c);
21467
21467
  return;
21468
21468
  }
21469
21469
  c._a = [], A0(c).empty = !0;
21470
- var b = "" + c._i, D, $, m, T, L, x = b.length, P = 0, w, k;
21471
- for (m = $r(c._f, c._locale).match(yt) || [], k = m.length, D = 0; D < k; D++)
21470
+ var b = "" + c._i, D, $, m, T, L, x = b.length, P = 0, w, X;
21471
+ for (m = $r(c._f, c._locale).match(yt) || [], X = m.length, D = 0; D < X; D++)
21472
21472
  T = m[D], $ = (b.match(oa(T, c)) || [])[0], $ && (L = b.substr(0, b.indexOf($)), L.length > 0 && A0(c).unusedInput.push(L), b = b.slice(
21473
21473
  b.indexOf($) + $.length
21474
21474
  ), P += $.length), j1[T] ? ($ ? A0(c).empty = !1 : A0(c).unusedTokens.push(T), sa(T, $, c)) : c._strict && !$ && A0(c).unusedTokens.push(T);
@@ -21509,13 +21509,13 @@ function mo(c) {
21509
21509
  }
21510
21510
  function vr(c) {
21511
21511
  var b = c._i, D = c._f;
21512
- return c._locale = c._locale || E1(c._l), b === null || D === void 0 && b === "" ? we({ nullInput: !0 }) : (typeof b == "string" && (c._i = b = c._locale.preparse(b)), _1(b) ? new de(Wt(b)) : (_e(b) ? c._d = b : b1(D) ? $o(c) : D ? It(c) : qo(c), Dt(c) || (c._d = null), c));
21512
+ return c._locale = c._locale || R1(c._l), b === null || D === void 0 && b === "" ? we({ nullInput: !0 }) : (typeof b == "string" && (c._i = b = c._locale.preparse(b)), _1(b) ? new de(Wt(b)) : (_e(b) ? c._d = b : b1(D) ? $o(c) : D ? It(c) : qo(c), Dt(c) || (c._d = null), c));
21513
21513
  }
21514
21514
  function qo(c) {
21515
21515
  var b = c._i;
21516
- r1(b) ? c._d = new Date(Z.now()) : _e(b) ? c._d = new Date(b.valueOf()) : typeof b == "string" ? Oo(c) : b1(b) ? (c._a = Ar(b.slice(0), function(D) {
21516
+ r1(b) ? c._d = new Date(e0.now()) : _e(b) ? c._d = new Date(b.valueOf()) : typeof b == "string" ? Oo(c) : b1(b) ? (c._a = Ar(b.slice(0), function(D) {
21517
21517
  return parseInt(D, 10);
21518
- }), Lt(c)) : P1(b) ? yo(c) : T1(b) ? c._d = new Date(b) : Z.createFromInputFallback(c);
21518
+ }), Lt(c)) : P1(b) ? yo(c) : E1(b) ? c._d = new Date(b) : e0.createFromInputFallback(c);
21519
21519
  }
21520
21520
  function Pr(c, b, D, $, m) {
21521
21521
  var T = {};
@@ -21586,10 +21586,10 @@ function Wo() {
21586
21586
  return d1(NaN);
21587
21587
  }
21588
21588
  function Qe(c) {
21589
- var b = mt(c), D = b.year || 0, $ = b.quarter || 0, m = b.month || 0, T = b.week || b.isoWeek || 0, L = b.day || 0, x = b.hour || 0, P = b.minute || 0, w = b.second || 0, k = b.millisecond || 0;
21590
- this._isValid = Ro(b), this._milliseconds = +k + w * 1e3 + // 1000
21589
+ var b = mt(c), D = b.year || 0, $ = b.quarter || 0, m = b.month || 0, T = b.week || b.isoWeek || 0, L = b.day || 0, x = b.hour || 0, P = b.minute || 0, w = b.second || 0, X = b.millisecond || 0;
21590
+ this._isValid = Ro(b), this._milliseconds = +X + w * 1e3 + // 1000
21591
21591
  P * 6e4 + // 1000 * 60
21592
- x * 1e3 * 60 * 60, this._days = +L + T * 7, this._months = +m + $ * 3 + D * 12, this._data = {}, this._locale = E1(), this._bubble();
21592
+ x * 1e3 * 60 * 60, this._days = +L + T * 7, this._months = +m + $ * 3 + D * 12, this._data = {}, this._locale = R1(), this._bubble();
21593
21593
  }
21594
21594
  function Te(c) {
21595
21595
  return c instanceof Qe;
@@ -21604,15 +21604,15 @@ function Lo(c, b, D) {
21604
21604
  return T + m;
21605
21605
  }
21606
21606
  function Hr(c, b) {
21607
- u0(c, 0, 0, function() {
21607
+ l0(c, 0, 0, function() {
21608
21608
  var D = this.utcOffset(), $ = "+";
21609
21609
  return D < 0 && (D = -D, $ = "-"), $ + A1(~~(D / 60), 2) + b + A1(~~D % 60, 2);
21610
21610
  });
21611
21611
  }
21612
21612
  Hr("Z", ":");
21613
21613
  Hr("ZZ", "");
21614
- e0("Z", Xe);
21615
- e0("ZZ", Xe);
21614
+ r0("Z", Xe);
21615
+ r0("ZZ", Xe);
21616
21616
  C0(["Z", "ZZ"], function(c, b, D) {
21617
21617
  D._useUTC = !0, D._tzm = Ft(Xe, c);
21618
21618
  });
@@ -21623,12 +21623,12 @@ function Ft(c, b) {
21623
21623
  }
21624
21624
  function Bt(c, b) {
21625
21625
  var D, $;
21626
- return b._isUTC ? (D = b.clone(), $ = (_1(c) || _e(c) ? c.valueOf() : F0(c).valueOf()) - D.valueOf(), D._d.setTime(D._d.valueOf() + $), Z.updateOffset(D, !1), D) : F0(c).local();
21626
+ return b._isUTC ? (D = b.clone(), $ = (_1(c) || _e(c) ? c.valueOf() : F0(c).valueOf()) - D.valueOf(), D._d.setTime(D._d.valueOf() + $), e0.updateOffset(D, !1), D) : F0(c).local();
21627
21627
  }
21628
21628
  function ct(c) {
21629
21629
  return -Math.round(c._d.getTimezoneOffset());
21630
21630
  }
21631
- Z.updateOffset = function() {
21631
+ e0.updateOffset = function() {
21632
21632
  };
21633
21633
  function Fo(c, b, D) {
21634
21634
  var $ = this._offset || 0, m;
@@ -21644,7 +21644,7 @@ function Fo(c, b, D) {
21644
21644
  d1(c - $, "m"),
21645
21645
  1,
21646
21646
  !1
21647
- ) : this._changeInProgress || (this._changeInProgress = !0, Z.updateOffset(this, !0), this._changeInProgress = null)), this;
21647
+ ) : this._changeInProgress || (this._changeInProgress = !0, e0.updateOffset(this, !0), this._changeInProgress = null)), this;
21648
21648
  } else
21649
21649
  return this._isUTC ? $ : ct(this);
21650
21650
  }
@@ -21694,12 +21694,12 @@ function d1(c, b) {
21694
21694
  ms: c._milliseconds,
21695
21695
  d: c._days,
21696
21696
  M: c._months
21697
- } : T1(c) || !isNaN(+c) ? (D = {}, b ? D[b] = +c : D.milliseconds = +c) : ($ = ko.exec(c)) ? (m = $[1] === "-" ? -1 : 1, D = {
21697
+ } : E1(c) || !isNaN(+c) ? (D = {}, b ? D[b] = +c : D.milliseconds = +c) : ($ = ko.exec(c)) ? (m = $[1] === "-" ? -1 : 1, D = {
21698
21698
  y: 0,
21699
21699
  d: y0($[O1]) * m,
21700
21700
  h: y0($[Y0]) * m,
21701
21701
  m: y0($[M1]) * m,
21702
- s: y0($[g1]) * m,
21702
+ s: y0($[h1]) * m,
21703
21703
  ms: y0(pt($[v1] * 1e3)) * m
21704
21704
  // the millisecond decimal point is included in the match
21705
21705
  }) : ($ = Uo.exec(c)) ? (m = $[1] === "-" ? -1 : 1, D = {
@@ -21740,14 +21740,14 @@ function kr(c, b) {
21740
21740
  }
21741
21741
  function Ur(c, b, D, $) {
21742
21742
  var m = b._milliseconds, T = pt(b._days), L = pt(b._months);
21743
- c.isValid() && ($ = $ ?? !0, L && Rr(c, le(c, "Month") + L * D), T && Sr(c, "Date", le(c, "Date") + T * D), m && c._d.setTime(c._d.valueOf() + m * D), $ && Z.updateOffset(c, T || L));
21743
+ c.isValid() && ($ = $ ?? !0, L && Rr(c, le(c, "Month") + L * D), T && Sr(c, "Date", le(c, "Date") + T * D), m && c._d.setTime(c._d.valueOf() + m * D), $ && e0.updateOffset(c, T || L));
21744
21744
  }
21745
21745
  var Yo = kr(1, "add"), Vo = kr(-1, "subtract");
21746
21746
  function Qr(c) {
21747
21747
  return typeof c == "string" || c instanceof String;
21748
21748
  }
21749
21749
  function Go(c) {
21750
- return _1(c) || _e(c) || Qr(c) || T1(c) || Ko(c) || jo(c) || c === null || c === void 0;
21750
+ return _1(c) || _e(c) || Qr(c) || E1(c) || Ko(c) || jo(c) || c === null || c === void 0;
21751
21751
  }
21752
21752
  function jo(c) {
21753
21753
  var b = P1(c) && !At(c), D = !1, $ = [
@@ -21783,7 +21783,7 @@ function jo(c) {
21783
21783
  function Ko(c) {
21784
21784
  var b = b1(c), D = !1;
21785
21785
  return b && (D = c.filter(function($) {
21786
- return !T1($) && Qr(c);
21786
+ return !E1($) && Qr(c);
21787
21787
  }).length === 0), b && D;
21788
21788
  }
21789
21789
  function Zo(c) {
@@ -21805,7 +21805,7 @@ function ei(c, b) {
21805
21805
  }
21806
21806
  function ti(c, b) {
21807
21807
  arguments.length === 1 && (arguments[0] ? Go(arguments[0]) ? (c = arguments[0], b = void 0) : Zo(arguments[0]) && (b = arguments[0], c = void 0) : (c = void 0, b = void 0));
21808
- var D = c || F0(), $ = Bt(D, this).startOf("day"), m = Z.calendarFormat(this, $) || "sameElse", T = b && (f1(b[m]) ? b[m].call(this, D) : b[m]);
21808
+ var D = c || F0(), $ = Bt(D, this).startOf("day"), m = e0.calendarFormat(this, $) || "sameElse", T = b && (f1(b[m]) ? b[m].call(this, D) : b[m]);
21809
21809
  return this.format(
21810
21810
  T || this.localeData().calendar(m, this, F0(D))
21811
21811
  );
@@ -21877,8 +21877,8 @@ function Ee(c, b) {
21877
21877
  var D = (b.year() - c.year()) * 12 + (b.month() - c.month()), $ = c.clone().add(D, "months"), m, T;
21878
21878
  return b - $ < 0 ? (m = c.clone().add(D - 1, "months"), T = (b - $) / ($ - m)) : (m = c.clone().add(D + 1, "months"), T = (b - $) / (m - $)), -(D + T) || 0;
21879
21879
  }
21880
- Z.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
21881
- Z.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
21880
+ e0.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
21881
+ e0.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
21882
21882
  function pi() {
21883
21883
  return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
21884
21884
  }
@@ -21901,7 +21901,7 @@ function Mi() {
21901
21901
  return this.isLocal() || (c = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", b = "Z"), D = "[" + c + '("]', $ = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", m = "-MM-DD[T]HH:mm:ss.SSS", T = b + '[")]', this.format(D + $ + m + T);
21902
21902
  }
21903
21903
  function bi(c) {
21904
- c || (c = this.isUtc() ? Z.defaultFormatUtc : Z.defaultFormat);
21904
+ c || (c = this.isUtc() ? e0.defaultFormatUtc : e0.defaultFormat);
21905
21905
  var b = Se(this, c);
21906
21906
  return this.localeData().postformat(b);
21907
21907
  }
@@ -21919,7 +21919,7 @@ function Oi(c) {
21919
21919
  }
21920
21920
  function Yr(c) {
21921
21921
  var b;
21922
- return c === void 0 ? this._locale._abbr : (b = E1(c), b != null && (this._locale = b), this);
21922
+ return c === void 0 ? this._locale._abbr : (b = R1(c), b != null && (this._locale = b), this);
21923
21923
  }
21924
21924
  var Vr = i1(
21925
21925
  "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
@@ -21989,7 +21989,7 @@ function Ai(c) {
21989
21989
  b = this._d.valueOf(), b -= Z1(b, Fe);
21990
21990
  break;
21991
21991
  }
21992
- return this._d.setTime(b), Z.updateOffset(this, !0), this;
21992
+ return this._d.setTime(b), e0.updateOffset(this, !0), this;
21993
21993
  }
21994
21994
  function Di(c) {
21995
21995
  var b, D;
@@ -22040,7 +22040,7 @@ function Di(c) {
22040
22040
  b = this._d.valueOf(), b += Fe - Z1(b, Fe) - 1;
22041
22041
  break;
22042
22042
  }
22043
- return this._d.setTime(b), Z.updateOffset(this, !0), this;
22043
+ return this._d.setTime(b), e0.updateOffset(this, !0), this;
22044
22044
  }
22045
22045
  function fi() {
22046
22046
  return this._d.valueOf() - (this._offset || 0) * 6e4;
@@ -22096,20 +22096,20 @@ function Ei() {
22096
22096
  strict: this._strict
22097
22097
  };
22098
22098
  }
22099
- u0("N", 0, 0, "eraAbbr");
22100
- u0("NN", 0, 0, "eraAbbr");
22101
- u0("NNN", 0, 0, "eraAbbr");
22102
- u0("NNNN", 0, 0, "eraName");
22103
- u0("NNNNN", 0, 0, "eraNarrow");
22104
- u0("y", ["y", 1], "yo", "eraYear");
22105
- u0("y", ["yy", 2], 0, "eraYear");
22106
- u0("y", ["yyy", 3], 0, "eraYear");
22107
- u0("y", ["yyyy", 4], 0, "eraYear");
22108
- e0("N", Nt);
22109
- e0("NN", Nt);
22110
- e0("NNN", Nt);
22111
- e0("NNNN", vi);
22112
- e0("NNNNN", Pi);
22099
+ l0("N", 0, 0, "eraAbbr");
22100
+ l0("NN", 0, 0, "eraAbbr");
22101
+ l0("NNN", 0, 0, "eraAbbr");
22102
+ l0("NNNN", 0, 0, "eraName");
22103
+ l0("NNNNN", 0, 0, "eraNarrow");
22104
+ l0("y", ["y", 1], "yo", "eraYear");
22105
+ l0("y", ["yy", 2], 0, "eraYear");
22106
+ l0("y", ["yyy", 3], 0, "eraYear");
22107
+ l0("y", ["yyyy", 4], 0, "eraYear");
22108
+ r0("N", Nt);
22109
+ r0("NN", Nt);
22110
+ r0("NNN", Nt);
22111
+ r0("NNNN", vi);
22112
+ r0("NNNNN", Pi);
22113
22113
  C0(
22114
22114
  ["N", "NN", "NNN", "NNNN", "NNNNN"],
22115
22115
  function(c, b, D, $) {
@@ -22117,22 +22117,22 @@ C0(
22117
22117
  m ? A0(D).era = m : A0(D).invalidEra = c;
22118
22118
  }
22119
22119
  );
22120
- e0("y", te);
22121
- e0("yy", te);
22122
- e0("yyy", te);
22123
- e0("yyyy", te);
22124
- e0("yo", Ji);
22120
+ r0("y", te);
22121
+ r0("yy", te);
22122
+ r0("yyy", te);
22123
+ r0("yyyy", te);
22124
+ r0("yo", Ji);
22125
22125
  C0(["y", "yy", "yyy", "yyyy"], Z0);
22126
22126
  C0(["yo"], function(c, b, D, $) {
22127
22127
  var m;
22128
22128
  D._locale._eraYearOrdinalRegex && (m = c.match(D._locale._eraYearOrdinalRegex)), D._locale.eraYearOrdinalParse ? b[Z0] = D._locale.eraYearOrdinalParse(c, m) : b[Z0] = parseInt(c, 10);
22129
22129
  });
22130
22130
  function Ri(c, b) {
22131
- var D, $, m, T = this._eras || E1("en")._eras;
22131
+ var D, $, m, T = this._eras || R1("en")._eras;
22132
22132
  for (D = 0, $ = T.length; D < $; ++D) {
22133
22133
  switch (typeof T[D].since) {
22134
22134
  case "string":
22135
- m = Z(T[D].since).startOf("day"), T[D].since = m.valueOf();
22135
+ m = e0(T[D].since).startOf("day"), T[D].since = m.valueOf();
22136
22136
  break;
22137
22137
  }
22138
22138
  switch (typeof T[D].until) {
@@ -22140,7 +22140,7 @@ function Ri(c, b) {
22140
22140
  T[D].until = 1 / 0;
22141
22141
  break;
22142
22142
  case "string":
22143
- m = Z(T[D].until).startOf("day").valueOf(), T[D].until = m.valueOf();
22143
+ m = e0(T[D].until).startOf("day").valueOf(), T[D].until = m.valueOf();
22144
22144
  break;
22145
22145
  }
22146
22146
  }
@@ -22171,7 +22171,7 @@ function Ci(c, b, D) {
22171
22171
  }
22172
22172
  function Wi(c, b) {
22173
22173
  var D = c.since <= c.until ? 1 : -1;
22174
- return b === void 0 ? Z(c.since).year() : Z(c.since).year() + (b - c.offset) * D;
22174
+ return b === void 0 ? e0(c.since).year() : e0(c.since).year() + (b - c.offset) * D;
22175
22175
  }
22176
22176
  function Li() {
22177
22177
  var c, b, D, $ = this.localeData().eras();
@@ -22198,7 +22198,7 @@ function Bi() {
22198
22198
  var c, b, D, $, m = this.localeData().eras();
22199
22199
  for (c = 0, b = m.length; c < b; ++c)
22200
22200
  if (D = m[c].since <= m[c].until ? 1 : -1, $ = this.clone().startOf("day").valueOf(), m[c].since <= $ && $ <= m[c].until || m[c].until <= $ && $ <= m[c].since)
22201
- return (this.year() - Z(m[c].since).year()) * D + m[c].offset;
22201
+ return (this.year() - e0(m[c].since).year()) * D + m[c].offset;
22202
22202
  return this.year();
22203
22203
  }
22204
22204
  function Ni(c) {
@@ -22225,33 +22225,33 @@ function Ji(c, b) {
22225
22225
  function xt() {
22226
22226
  var c = [], b = [], D = [], $ = [], m, T, L, x, P, w = this.eras();
22227
22227
  for (m = 0, T = w.length; m < T; ++m)
22228
- L = h1(w[m].name), x = h1(w[m].abbr), P = h1(w[m].narrow), b.push(L), c.push(x), D.push(P), $.push(L), $.push(x), $.push(P);
22228
+ L = S1(w[m].name), x = S1(w[m].abbr), P = S1(w[m].narrow), b.push(L), c.push(x), D.push(P), $.push(L), $.push(x), $.push(P);
22229
22229
  this._erasRegex = new RegExp("^(" + $.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + b.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + c.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
22230
22230
  "^(" + D.join("|") + ")",
22231
22231
  "i"
22232
22232
  );
22233
22233
  }
22234
- u0(0, ["gg", 2], 0, function() {
22234
+ l0(0, ["gg", 2], 0, function() {
22235
22235
  return this.weekYear() % 100;
22236
22236
  });
22237
- u0(0, ["GG", 2], 0, function() {
22237
+ l0(0, ["GG", 2], 0, function() {
22238
22238
  return this.isoWeekYear() % 100;
22239
22239
  });
22240
22240
  function Ye(c, b) {
22241
- u0(0, [c, c.length], 0, b);
22241
+ l0(0, [c, c.length], 0, b);
22242
22242
  }
22243
22243
  Ye("gggg", "weekYear");
22244
22244
  Ye("ggggg", "weekYear");
22245
22245
  Ye("GGGG", "isoWeekYear");
22246
22246
  Ye("GGGGG", "isoWeekYear");
22247
- e0("G", He);
22248
- e0("g", He);
22249
- e0("GG", B0, a1);
22250
- e0("gg", B0, a1);
22251
- e0("GGGG", gt, qt);
22252
- e0("gggg", gt, qt);
22253
- e0("GGGGG", Je, ve);
22254
- e0("ggggg", Je, ve);
22247
+ r0("G", He);
22248
+ r0("g", He);
22249
+ r0("GG", B0, a1);
22250
+ r0("gg", B0, a1);
22251
+ r0("GGGG", gt, qt);
22252
+ r0("gggg", gt, qt);
22253
+ r0("GGGGG", Je, ve);
22254
+ r0("ggggg", Je, ve);
22255
22255
  Oe(
22256
22256
  ["gggg", "ggggg", "GGGG", "GGGGG"],
22257
22257
  function(c, b, D, $) {
@@ -22259,7 +22259,7 @@ Oe(
22259
22259
  }
22260
22260
  );
22261
22261
  Oe(["gg", "GG"], function(c, b, D, $) {
22262
- b[$] = Z.parseTwoDigitYear(c);
22262
+ b[$] = e0.parseTwoDigitYear(c);
22263
22263
  });
22264
22264
  function Hi(c) {
22265
22265
  return en.call(
@@ -22282,39 +22282,39 @@ function Xi(c) {
22282
22282
  );
22283
22283
  }
22284
22284
  function ki() {
22285
- return S1(this.year(), 1, 4);
22285
+ return T1(this.year(), 1, 4);
22286
22286
  }
22287
22287
  function Ui() {
22288
- return S1(this.isoWeekYear(), 1, 4);
22288
+ return T1(this.isoWeekYear(), 1, 4);
22289
22289
  }
22290
22290
  function Qi() {
22291
22291
  var c = this.localeData()._week;
22292
- return S1(this.year(), c.dow, c.doy);
22292
+ return T1(this.year(), c.dow, c.doy);
22293
22293
  }
22294
22294
  function Yi() {
22295
22295
  var c = this.localeData()._week;
22296
- return S1(this.weekYear(), c.dow, c.doy);
22296
+ return T1(this.weekYear(), c.dow, c.doy);
22297
22297
  }
22298
22298
  function en(c, b, D, $, m) {
22299
22299
  var T;
22300
- return c == null ? ce(this, $, m).year : (T = S1(c, $, m), b > T && (b = T), Vi.call(this, c, b, D, $, m));
22300
+ return c == null ? ce(this, $, m).year : (T = T1(c, $, m), b > T && (b = T), Vi.call(this, c, b, D, $, m));
22301
22301
  }
22302
22302
  function Vi(c, b, D, $, m) {
22303
22303
  var T = Lr(c, b, D, $, m), L = pe(T.year, 0, T.dayOfYear);
22304
22304
  return this.year(L.getUTCFullYear()), this.month(L.getUTCMonth()), this.date(L.getUTCDate()), this;
22305
22305
  }
22306
- u0("Q", 0, "Qo", "quarter");
22307
- e0("Q", yr);
22306
+ l0("Q", 0, "Qo", "quarter");
22307
+ r0("Q", yr);
22308
22308
  C0("Q", function(c, b) {
22309
- b[q1] = (y0(c) - 1) * 3;
22309
+ b[g1] = (y0(c) - 1) * 3;
22310
22310
  });
22311
22311
  function Gi(c) {
22312
22312
  return c == null ? Math.ceil((this.month() + 1) / 3) : this.month((c - 1) * 3 + this.month() % 3);
22313
22313
  }
22314
- u0("D", ["DD", 2], "Do", "date");
22315
- e0("D", B0, re);
22316
- e0("DD", B0, a1);
22317
- e0("Do", function(c, b) {
22314
+ l0("D", ["DD", 2], "Do", "date");
22315
+ r0("D", B0, re);
22316
+ r0("DD", B0, a1);
22317
+ r0("Do", function(c, b) {
22318
22318
  return c ? b._dayOfMonthOrdinalParse || b._ordinalParse : b._dayOfMonthOrdinalParseLenient;
22319
22319
  });
22320
22320
  C0(["D", "DD"], O1);
@@ -22322,9 +22322,9 @@ C0("Do", function(c, b) {
22322
22322
  b[O1] = y0(c.match(B0)[0]);
22323
22323
  });
22324
22324
  var tn = ne("Date", !0);
22325
- u0("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
22326
- e0("DDD", Pe);
22327
- e0("DDDD", mr);
22325
+ l0("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
22326
+ r0("DDD", Pe);
22327
+ r0("DDDD", mr);
22328
22328
  C0(["DDD", "DDDD"], function(c, b, D) {
22329
22329
  D._dayOfYear = y0(c);
22330
22330
  });
@@ -22334,55 +22334,55 @@ function ji(c) {
22334
22334
  ) + 1;
22335
22335
  return c == null ? b : this.add(c - b, "d");
22336
22336
  }
22337
- u0("m", ["mm", 2], 0, "minute");
22338
- e0("m", B0, ht);
22339
- e0("mm", B0, a1);
22337
+ l0("m", ["mm", 2], 0, "minute");
22338
+ r0("m", B0, ht);
22339
+ r0("mm", B0, a1);
22340
22340
  C0(["m", "mm"], M1);
22341
22341
  var Ki = ne("Minutes", !1);
22342
- u0("s", ["ss", 2], 0, "second");
22343
- e0("s", B0, ht);
22344
- e0("ss", B0, a1);
22345
- C0(["s", "ss"], g1);
22342
+ l0("s", ["ss", 2], 0, "second");
22343
+ r0("s", B0, ht);
22344
+ r0("ss", B0, a1);
22345
+ C0(["s", "ss"], h1);
22346
22346
  var Zi = ne("Seconds", !1);
22347
- u0("S", 0, 0, function() {
22347
+ l0("S", 0, 0, function() {
22348
22348
  return ~~(this.millisecond() / 100);
22349
22349
  });
22350
- u0(0, ["SS", 2], 0, function() {
22350
+ l0(0, ["SS", 2], 0, function() {
22351
22351
  return ~~(this.millisecond() / 10);
22352
22352
  });
22353
- u0(0, ["SSS", 3], 0, "millisecond");
22354
- u0(0, ["SSSS", 4], 0, function() {
22353
+ l0(0, ["SSS", 3], 0, "millisecond");
22354
+ l0(0, ["SSSS", 4], 0, function() {
22355
22355
  return this.millisecond() * 10;
22356
22356
  });
22357
- u0(0, ["SSSSS", 5], 0, function() {
22357
+ l0(0, ["SSSSS", 5], 0, function() {
22358
22358
  return this.millisecond() * 100;
22359
22359
  });
22360
- u0(0, ["SSSSSS", 6], 0, function() {
22360
+ l0(0, ["SSSSSS", 6], 0, function() {
22361
22361
  return this.millisecond() * 1e3;
22362
22362
  });
22363
- u0(0, ["SSSSSSS", 7], 0, function() {
22363
+ l0(0, ["SSSSSSS", 7], 0, function() {
22364
22364
  return this.millisecond() * 1e4;
22365
22365
  });
22366
- u0(0, ["SSSSSSSS", 8], 0, function() {
22366
+ l0(0, ["SSSSSSSS", 8], 0, function() {
22367
22367
  return this.millisecond() * 1e5;
22368
22368
  });
22369
- u0(0, ["SSSSSSSSS", 9], 0, function() {
22369
+ l0(0, ["SSSSSSSSS", 9], 0, function() {
22370
22370
  return this.millisecond() * 1e6;
22371
22371
  });
22372
- e0("S", Pe, yr);
22373
- e0("SS", Pe, a1);
22374
- e0("SSS", Pe, mr);
22372
+ r0("S", Pe, yr);
22373
+ r0("SS", Pe, a1);
22374
+ r0("SSS", Pe, mr);
22375
22375
  var L1, rn;
22376
22376
  for (L1 = "SSSS"; L1.length <= 9; L1 += "S")
22377
- e0(L1, te);
22377
+ r0(L1, te);
22378
22378
  function es(c, b) {
22379
22379
  b[v1] = y0(("0." + c) * 1e3);
22380
22380
  }
22381
22381
  for (L1 = "S"; L1.length <= 9; L1 += "S")
22382
22382
  C0(L1, es);
22383
22383
  rn = ne("Milliseconds", !1);
22384
- u0("z", 0, 0, "zoneAbbr");
22385
- u0("zz", 0, 0, "zoneName");
22384
+ l0("z", 0, 0, "zoneAbbr");
22385
+ l0("zz", 0, 0, "zoneName");
22386
22386
  function ts() {
22387
22387
  return this._isUTC ? "UTC" : "";
22388
22388
  }
@@ -22532,11 +22532,11 @@ S0.weekdaysMinRegex = Ya;
22532
22532
  S0.isPM = Ga;
22533
22533
  S0.meridiem = Za;
22534
22534
  function Ne(c, b, D, $) {
22535
- var m = E1(), T = D1().set($, b);
22535
+ var m = R1(), T = D1().set($, b);
22536
22536
  return m[D](T, c);
22537
22537
  }
22538
22538
  function an(c, b, D) {
22539
- if (T1(c) && (b = c, c = void 0), c = c || "", b != null)
22539
+ if (E1(c) && (b = c, c = void 0), c = c || "", b != null)
22540
22540
  return Ne(c, b, D, "month");
22541
22541
  var $, m = [];
22542
22542
  for ($ = 0; $ < 12; $++)
@@ -22544,8 +22544,8 @@ function an(c, b, D) {
22544
22544
  return m;
22545
22545
  }
22546
22546
  function wt(c, b, D, $) {
22547
- typeof c == "boolean" ? (T1(b) && (D = b, b = void 0), b = b || "") : (b = c, D = b, c = !1, T1(b) && (D = b, b = void 0), b = b || "");
22548
- var m = E1(), T = c ? m._week.dow : 0, L, x = [];
22547
+ typeof c == "boolean" ? (E1(b) && (D = b, b = void 0), b = b || "") : (b = c, D = b, c = !1, E1(b) && (D = b, b = void 0), b = b || "");
22548
+ var m = R1(), T = c ? m._week.dow : 0, L, x = [];
22549
22549
  if (D != null)
22550
22550
  return Ne(b, (D + T) % 7, $, "day");
22551
22551
  for (L = 0; L < 7; L++)
@@ -22592,13 +22592,13 @@ I1("en", {
22592
22592
  return c + D;
22593
22593
  }
22594
22594
  });
22595
- Z.lang = i1(
22595
+ e0.lang = i1(
22596
22596
  "moment.lang is deprecated. Use moment.locale instead.",
22597
22597
  I1
22598
22598
  );
22599
- Z.langData = i1(
22599
+ e0.langData = i1(
22600
22600
  "moment.langData is deprecated. Use moment.localeData instead.",
22601
- E1
22601
+ R1
22602
22602
  );
22603
22603
  var $1 = Math.abs;
22604
22604
  function ps() {
@@ -22659,12 +22659,12 @@ function _s(c) {
22659
22659
  throw new Error("Unknown unit " + c);
22660
22660
  }
22661
22661
  }
22662
- function R1(c) {
22662
+ function C1(c) {
22663
22663
  return function() {
22664
22664
  return this.as(c);
22665
22665
  };
22666
22666
  }
22667
- var un = R1("ms"), ds = R1("s"), zs = R1("m"), Os = R1("h"), As = R1("d"), Ds = R1("w"), fs = R1("M"), $s = R1("Q"), ys = R1("y"), ms = un;
22667
+ var un = C1("ms"), ds = C1("s"), zs = C1("m"), Os = C1("h"), As = C1("d"), Ds = C1("w"), fs = C1("M"), $s = C1("Q"), ys = C1("y"), ms = un;
22668
22668
  function qs() {
22669
22669
  return d1(this);
22670
22670
  }
@@ -22680,7 +22680,7 @@ var hs = X1("milliseconds"), Ss = X1("seconds"), Ts = X1("minutes"), Es = X1("ho
22680
22680
  function Ls() {
22681
22681
  return o1(this.days() / 7);
22682
22682
  }
22683
- var m1 = Math.round, G1 = {
22683
+ var q1 = Math.round, G1 = {
22684
22684
  ss: 44,
22685
22685
  // a few seconds to seconds
22686
22686
  s: 45,
@@ -22700,11 +22700,11 @@ function Is(c, b, D, $, m) {
22700
22700
  return m.relativeTime(b || 1, !!D, c, $);
22701
22701
  }
22702
22702
  function Fs(c, b, D, $) {
22703
- var m = d1(c).abs(), T = m1(m.as("s")), L = m1(m.as("m")), x = m1(m.as("h")), P = m1(m.as("d")), w = m1(m.as("M")), k = m1(m.as("w")), G = m1(m.as("y")), t0 = T <= D.ss && ["s", T] || T < D.s && ["ss", T] || L <= 1 && ["m"] || L < D.m && ["mm", L] || x <= 1 && ["h"] || x < D.h && ["hh", x] || P <= 1 && ["d"] || P < D.d && ["dd", P];
22704
- return D.w != null && (t0 = t0 || k <= 1 && ["w"] || k < D.w && ["ww", k]), t0 = t0 || w <= 1 && ["M"] || w < D.M && ["MM", w] || G <= 1 && ["y"] || ["yy", G], t0[2] = b, t0[3] = +c > 0, t0[4] = $, Is.apply(null, t0);
22703
+ var m = d1(c).abs(), T = q1(m.as("s")), L = q1(m.as("m")), x = q1(m.as("h")), P = q1(m.as("d")), w = q1(m.as("M")), X = q1(m.as("w")), j = q1(m.as("y")), a0 = T <= D.ss && ["s", T] || T < D.s && ["ss", T] || L <= 1 && ["m"] || L < D.m && ["mm", L] || x <= 1 && ["h"] || x < D.h && ["hh", x] || P <= 1 && ["d"] || P < D.d && ["dd", P];
22704
+ return D.w != null && (a0 = a0 || X <= 1 && ["w"] || X < D.w && ["ww", X]), a0 = a0 || w <= 1 && ["M"] || w < D.M && ["MM", w] || j <= 1 && ["y"] || ["yy", j], a0[2] = b, a0[3] = +c > 0, a0[4] = $, Is.apply(null, a0);
22705
22705
  }
22706
22706
  function Bs(c) {
22707
- return c === void 0 ? m1 : typeof c == "function" ? (m1 = c, !0) : !1;
22707
+ return c === void 0 ? q1 : typeof c == "function" ? (q1 = c, !0) : !1;
22708
22708
  }
22709
22709
  function Ns(c, b) {
22710
22710
  return G1[c] === void 0 ? !1 : b === void 0 ? G1[c] : (G1[c] = b, c === "s" && (G1.ss = b - 1), !0);
@@ -22722,8 +22722,8 @@ function k1(c) {
22722
22722
  function Ve() {
22723
22723
  if (!this.isValid())
22724
22724
  return this.localeData().invalidDate();
22725
- var c = et(this._milliseconds) / 1e3, b = et(this._days), D = et(this._months), $, m, T, L, x = this.asSeconds(), P, w, k, G;
22726
- return x ? ($ = o1(c / 60), m = o1($ / 60), c %= 60, $ %= 60, T = o1(D / 12), D %= 12, L = c ? c.toFixed(3).replace(/\.?0+$/, "") : "", P = x < 0 ? "-" : "", w = k1(this._months) !== k1(x) ? "-" : "", k = k1(this._days) !== k1(x) ? "-" : "", G = k1(this._milliseconds) !== k1(x) ? "-" : "", P + "P" + (T ? w + T + "Y" : "") + (D ? w + D + "M" : "") + (b ? k + b + "D" : "") + (m || $ || c ? "T" : "") + (m ? G + m + "H" : "") + ($ ? G + $ + "M" : "") + (c ? G + L + "S" : "")) : "P0D";
22725
+ var c = et(this._milliseconds) / 1e3, b = et(this._days), D = et(this._months), $, m, T, L, x = this.asSeconds(), P, w, X, j;
22726
+ return x ? ($ = o1(c / 60), m = o1($ / 60), c %= 60, $ %= 60, T = o1(D / 12), D %= 12, L = c ? c.toFixed(3).replace(/\.?0+$/, "") : "", P = x < 0 ? "-" : "", w = k1(this._months) !== k1(x) ? "-" : "", X = k1(this._days) !== k1(x) ? "-" : "", j = k1(this._milliseconds) !== k1(x) ? "-" : "", P + "P" + (T ? w + T + "Y" : "") + (D ? w + D + "M" : "") + (b ? X + b + "D" : "") + (m || $ || c ? "T" : "") + (m ? j + m + "H" : "") + ($ ? j + $ + "M" : "") + (c ? j + L + "S" : "")) : "P0D";
22727
22727
  }
22728
22728
  var q0 = Qe.prototype;
22729
22729
  q0.isValid = Co;
@@ -22763,10 +22763,10 @@ q0.toIsoString = i1(
22763
22763
  Ve
22764
22764
  );
22765
22765
  q0.lang = Vr;
22766
- u0("X", 0, 0, "unix");
22767
- u0("x", 0, 0, "valueOf");
22768
- e0("x", He);
22769
- e0("X", aa);
22766
+ l0("X", 0, 0, "unix");
22767
+ l0("x", 0, 0, "valueOf");
22768
+ r0("x", He);
22769
+ r0("X", aa);
22770
22770
  C0("X", function(c, b, D) {
22771
22771
  D._d = new Date(parseFloat(c) * 1e3);
22772
22772
  });
@@ -22774,36 +22774,36 @@ C0("x", function(c, b, D) {
22774
22774
  D._d = new Date(y0(c));
22775
22775
  });
22776
22776
  //! moment.js
22777
- Z.version = "2.30.1";
22777
+ e0.version = "2.30.1";
22778
22778
  xn(F0);
22779
- Z.fn = Y;
22780
- Z.min = So;
22781
- Z.max = To;
22782
- Z.now = Eo;
22783
- Z.utc = D1;
22784
- Z.unix = ns;
22785
- Z.months = os;
22786
- Z.isDate = _e;
22787
- Z.locale = I1;
22788
- Z.invalid = we;
22789
- Z.duration = d1;
22790
- Z.isMoment = _1;
22791
- Z.weekdays = ss;
22792
- Z.parseZone = as;
22793
- Z.localeData = E1;
22794
- Z.isDuration = Te;
22795
- Z.monthsShort = is;
22796
- Z.weekdaysMin = ls;
22797
- Z.defineLocale = Ct;
22798
- Z.updateLocale = no;
22799
- Z.locales = ao;
22800
- Z.weekdaysShort = us;
22801
- Z.normalizeUnits = s1;
22802
- Z.relativeTimeRounding = Bs;
22803
- Z.relativeTimeThreshold = Ns;
22804
- Z.calendarFormat = ei;
22805
- Z.prototype = Y;
22806
- Z.HTML5_FMT = {
22779
+ e0.fn = Y;
22780
+ e0.min = So;
22781
+ e0.max = To;
22782
+ e0.now = Eo;
22783
+ e0.utc = D1;
22784
+ e0.unix = ns;
22785
+ e0.months = os;
22786
+ e0.isDate = _e;
22787
+ e0.locale = I1;
22788
+ e0.invalid = we;
22789
+ e0.duration = d1;
22790
+ e0.isMoment = _1;
22791
+ e0.weekdays = ss;
22792
+ e0.parseZone = as;
22793
+ e0.localeData = R1;
22794
+ e0.isDuration = Te;
22795
+ e0.monthsShort = is;
22796
+ e0.weekdaysMin = ls;
22797
+ e0.defineLocale = Ct;
22798
+ e0.updateLocale = no;
22799
+ e0.locales = ao;
22800
+ e0.weekdaysShort = us;
22801
+ e0.normalizeUnits = s1;
22802
+ e0.relativeTimeRounding = Bs;
22803
+ e0.relativeTimeThreshold = Ns;
22804
+ e0.calendarFormat = ei;
22805
+ e0.prototype = Y;
22806
+ e0.HTML5_FMT = {
22807
22807
  DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
22808
22808
  // <input type="datetime-local" />
22809
22809
  DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
@@ -22825,7 +22825,7 @@ Z.HTML5_FMT = {
22825
22825
  };
22826
22826
  const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22827
22827
  __proto__: null,
22828
- default: Z
22828
+ default: e0
22829
22829
  }, Symbol.toStringTag, { value: "Module" })), vs = /* @__PURE__ */ yn(ws);
22830
22830
  (function(c) {
22831
22831
  //! moment-timezone.js
@@ -22839,46 +22839,46 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22839
22839
  b.version === void 0 && b.default && (b = b.default);
22840
22840
  var D = "0.5.48", $ = {}, m = {}, T = {}, L = {}, x = {}, P;
22841
22841
  (!b || typeof b.version != "string") && a("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
22842
- var w = b.version.split("."), k = +w[0], G = +w[1];
22843
- (k < 2 || k === 2 && G < 6) && a("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + b.version + ". See momentjs.com");
22844
- function t0(_) {
22842
+ var w = b.version.split("."), X = +w[0], j = +w[1];
22843
+ (X < 2 || X === 2 && j < 6) && a("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + b.version + ". See momentjs.com");
22844
+ function a0(_) {
22845
22845
  return _ > 96 ? _ - 87 : _ > 64 ? _ - 29 : _ - 48;
22846
22846
  }
22847
22847
  function K(_) {
22848
22848
  var z = 0, f = _.split("."), y = f[0], q = f[1] || "", h = 1, E, C = 0, g = 1;
22849
22849
  for (_.charCodeAt(0) === 45 && (z = 1, g = -1), z; z < y.length; z++)
22850
- E = t0(y.charCodeAt(z)), C = 60 * C + E;
22850
+ E = a0(y.charCodeAt(z)), C = 60 * C + E;
22851
22851
  for (z = 0; z < q.length; z++)
22852
- h = h / 60, E = t0(q.charCodeAt(z)), C += E * h;
22852
+ h = h / 60, E = a0(q.charCodeAt(z)), C += E * h;
22853
22853
  return C * g;
22854
22854
  }
22855
22855
  function U(_) {
22856
22856
  for (var z = 0; z < _.length; z++)
22857
22857
  _[z] = K(_[z]);
22858
22858
  }
22859
- function X(_, z) {
22859
+ function Q(_, z) {
22860
22860
  for (var f = 0; f < z; f++)
22861
22861
  _[f] = Math.round((_[f - 1] || 0) + _[f] * 6e4);
22862
22862
  _[z - 1] = 1 / 0;
22863
22863
  }
22864
- function j(_, z) {
22864
+ function Z(_, z) {
22865
22865
  var f = [], y;
22866
22866
  for (y = 0; y < z.length; y++)
22867
22867
  f[y] = _[z[y]];
22868
22868
  return f;
22869
22869
  }
22870
- function n0(_) {
22870
+ function G(_) {
22871
22871
  var z = _.split("|"), f = z[2].split(" "), y = z[3].split(""), q = z[4].split(" ");
22872
- return U(f), U(y), U(q), X(q, y.length), {
22872
+ return U(f), U(y), U(q), Q(q, y.length), {
22873
22873
  name: z[0],
22874
- abbrs: j(z[1].split(" "), y),
22875
- offsets: j(f, y),
22874
+ abbrs: Z(z[1].split(" "), y),
22875
+ offsets: Z(f, y),
22876
22876
  untils: q,
22877
22877
  population: z[5] | 0
22878
22878
  };
22879
22879
  }
22880
22880
  function V(_) {
22881
- _ && this._set(n0(_));
22881
+ _ && this._set(G(_));
22882
22882
  }
22883
22883
  function i0(_, z) {
22884
22884
  var f = z.length;
@@ -22924,33 +22924,33 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22924
22924
  return this.offsets[this._index(_)];
22925
22925
  }
22926
22926
  };
22927
- function l0(_, z) {
22927
+ function t0(_, z) {
22928
22928
  this.name = _, this.zones = z;
22929
22929
  }
22930
22930
  function b0(_) {
22931
22931
  var z = _.toTimeString(), f = z.match(/\([a-z ]+\)/i);
22932
22932
  f && f[0] ? (f = f[0].match(/[A-Z]/g), f = f ? f.join("") : void 0) : (f = z.match(/[A-Z]{3,5}/g), f = f ? f[0] : void 0), f === "GMT" && (f = void 0), this.at = +_, this.abbr = f, this.offset = _.getTimezoneOffset();
22933
22933
  }
22934
- function r0(_) {
22934
+ function n0(_) {
22935
22935
  this.zone = _, this.offsetScore = 0, this.abbrScore = 0;
22936
22936
  }
22937
- r0.prototype.scoreOffsetAt = function(_) {
22937
+ n0.prototype.scoreOffsetAt = function(_) {
22938
22938
  this.offsetScore += Math.abs(this.zone.utcOffset(_.at) - _.offset), this.zone.abbr(_.at).replace(/[^A-Z]/g, "") !== _.abbr && this.abbrScore++;
22939
22939
  };
22940
- function a0(_, z) {
22940
+ function o0(_, z) {
22941
22941
  for (var f, y; y = ((z.at - _.at) / 12e4 | 0) * 6e4; )
22942
22942
  f = new b0(new Date(_.at + y)), f.offset === _.offset ? _ = f : z = f;
22943
22943
  return _;
22944
22944
  }
22945
- function o0() {
22945
+ function s0() {
22946
22946
  var _ = (/* @__PURE__ */ new Date()).getFullYear() - 2, z = new b0(new Date(_, 0, 1)), f = z.offset, y = [z], q, h, E, C;
22947
22947
  for (C = 1; C < 48; C++)
22948
- E = new Date(_, C, 1).getTimezoneOffset(), E !== f && (h = new b0(new Date(_, C, 1)), q = a0(z, h), y.push(q), y.push(new b0(new Date(q.at + 6e4))), z = h, f = E);
22948
+ E = new Date(_, C, 1).getTimezoneOffset(), E !== f && (h = new b0(new Date(_, C, 1)), q = o0(z, h), y.push(q), y.push(new b0(new Date(q.at + 6e4))), z = h, f = E);
22949
22949
  for (C = 0; C < 4; C++)
22950
22950
  y.push(new b0(new Date(_ + C, 0, 1))), y.push(new b0(new Date(_ + C, 6, 1)));
22951
22951
  return y;
22952
22952
  }
22953
- function s0(_, z) {
22953
+ function u0(_, z) {
22954
22954
  return _.offsetScore !== z.offsetScore ? _.offsetScore - z.offsetScore : _.abbrScore !== z.abbrScore ? _.abbrScore - z.abbrScore : _.zone.population !== z.zone.population ? z.zone.population - _.zone.population : z.zone.name.localeCompare(_.zone.name);
22955
22955
  }
22956
22956
  function $0(_, z) {
@@ -22982,13 +22982,13 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22982
22982
  }
22983
22983
  } catch {
22984
22984
  }
22985
- var f = o0(), y = f.length, q = p0(f), h = [], E, C, g;
22985
+ var f = s0(), y = f.length, q = p0(f), h = [], E, C, g;
22986
22986
  for (C = 0; C < q.length; C++) {
22987
- for (E = new r0(i(q[C])), g = 0; g < y; g++)
22987
+ for (E = new n0(i(q[C])), g = 0; g < y; g++)
22988
22988
  E.scoreOffsetAt(f[g]);
22989
22989
  h.push(E);
22990
22990
  }
22991
- return h.sort(s0), h.length > 0 ? h[0].zone.name : void 0;
22991
+ return h.sort(u0), h.length > 0 ? h[0].zone.name : void 0;
22992
22992
  }
22993
22993
  function f0(_) {
22994
22994
  return (!P || _) && (P = d0()), P;
@@ -23024,7 +23024,7 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23024
23024
  var z, f, y, q;
23025
23025
  if (!(!_ || !_.length))
23026
23026
  for (z = 0; z < _.length; z++)
23027
- q = _[z].split("|"), f = q[0].toUpperCase(), y = q[1].split(" "), T[f] = new l0(
23027
+ q = _[z].split("|"), f = q[0].toUpperCase(), y = q[1].split(" "), T[f] = new t0(
23028
23028
  f,
23029
23029
  y
23030
23030
  );
@@ -23060,7 +23060,7 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23060
23060
  var z = Array.prototype.slice.call(arguments, 0, -1), f = arguments[arguments.length - 1], y = b.utc.apply(null, z), q;
23061
23061
  return !b.isMoment(_) && n(y) && (q = i(f)) && y.add(q.parse(y), "minutes"), y.tz(f), y;
23062
23062
  }
23063
- o.version = D, o.dataVersion = "", o._zones = $, o._links = m, o._names = L, o._countries = T, o.add = t, o.link = S, o.load = r, o.zone = i, o.zoneExists = e, o.guess = f0, o.names = p, o.Zone = V, o.unpack = n0, o.unpackBase60 = K, o.needsOffset = n, o.moveInvalidForward = !0, o.moveAmbiguousForward = !1, o.countries = A, o.zonesForCountry = O;
23063
+ o.version = D, o.dataVersion = "", o._zones = $, o._links = m, o._names = L, o._countries = T, o.add = t, o.link = S, o.load = r, o.zone = i, o.zoneExists = e, o.guess = f0, o.names = p, o.Zone = V, o.unpack = G, o.unpackBase60 = K, o.needsOffset = n, o.moveInvalidForward = !0, o.moveAmbiguousForward = !1, o.countries = A, o.zonesForCountry = O;
23064
23064
  var s = b.fn;
23065
23065
  b.tz = o, b.defaultZone = null, b.updateOffset = function(_, z) {
23066
23066
  var f = b.defaultZone, y;
@@ -23095,7 +23095,7 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23095
23095
  };
23096
23096
  }
23097
23097
  s.zoneName = u(s.zoneName), s.zoneAbbr = u(s.zoneAbbr), s.utc = l(s.utc), s.local = l(s.local), s.utcOffset = M(s.utcOffset), b.tz.setDefault = function(_) {
23098
- return (k < 2 || k === 2 && G < 9) && a("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + b.version + "."), b.defaultZone = _ ? i(_) : null, b;
23098
+ return (X < 2 || X === 2 && j < 9) && a("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + b.version + "."), b.defaultZone = _ ? i(_) : null, b;
23099
23099
  };
23100
23100
  var d = b.momentProperties;
23101
23101
  return Object.prototype.toString.call(d) === "[object Array]" ? (d.push("_z"), d.push("_a")) : d && (d._z = null), b;
@@ -23958,7 +23958,7 @@ const Js = "2025b", Hs = [
23958
23958
  var Qs = dr.exports = Ps;
23959
23959
  Qs.tz.load(Us);
23960
23960
  var Ys = dr.exports;
23961
- const U1 = Ys, C1 = {
23961
+ const U1 = Ys, y1 = {
23962
23962
  BARCHART: "BARCHART",
23963
23963
  LINECHART: "LINECHART",
23964
23964
  STACKBARCHART: "STACKBARCHART",
@@ -23981,17 +23981,17 @@ function Gs(c) {
23981
23981
  if (!D || D.length === 0)
23982
23982
  return null;
23983
23983
  switch (b) {
23984
- case C1.TABLE:
23984
+ case y1.TABLE:
23985
23985
  return js(c);
23986
- case C1.BARCHART:
23987
- case C1.LINECHART:
23988
- case C1.STACKBARCHART:
23989
- case C1.STACKLINECHART:
23990
- case C1.CLUSTEREDSTACKBARCHART:
23986
+ case y1.BARCHART:
23987
+ case y1.LINECHART:
23988
+ case y1.STACKBARCHART:
23989
+ case y1.STACKLINECHART:
23990
+ case y1.CLUSTEREDSTACKBARCHART:
23991
23991
  return Ks(c);
23992
- case C1.SCORECARD:
23992
+ case y1.SCORECARD:
23993
23993
  return Zs(c);
23994
- case C1.CIRCULAR:
23994
+ case y1.CIRCULAR:
23995
23995
  return eu(c);
23996
23996
  default:
23997
23997
  return null;
@@ -24008,197 +24008,205 @@ function js(c) {
24008
24008
  timeformatter: U.timeFormatter || "",
24009
24009
  decimal: U.decimal || 0
24010
24010
  })), x = T.columns, P = T.rows.map((U) => ({
24011
- cells: x.map((X) => {
24012
- const j = U.value[X.id] ?? null;
24013
- return U.isRollup && X.fieldType === "DIMENSION" && X.dataType === "NUMERIC" && j == null ? null : t1(j, X, m);
24011
+ cells: x.map((Q) => {
24012
+ const Z = U.value[Q.id] ?? null;
24013
+ return U.isRollup && Q.fieldType === "DIMENSION" && Q.dataType === "NUMERIC" && Z == null ? null : t1(Z, Q, m);
24014
24014
  }),
24015
24015
  comparisonCells: [],
24016
24016
  isRollup: U.isRollup
24017
24017
  }));
24018
24018
  if (D) {
24019
- const X = b[$];
24020
- if (X)
24021
- for (let j = 0; j < P.length; j++) {
24022
- const n0 = P[j], V = T.rows[j], i0 = uu(
24019
+ const Q = b[$];
24020
+ if (Q)
24021
+ for (let Z = 0; Z < P.length; Z++) {
24022
+ const G = P[Z], V = T.rows[Z], i0 = uu(
24023
24023
  V,
24024
- X.rows,
24024
+ Q.rows,
24025
24025
  T.columns
24026
24026
  );
24027
- i0 && (n0.comparisonCells = x.map(
24028
- (l0) => t1(i0.value[l0.id] ?? null, l0, m)
24027
+ i0 && (G.comparisonCells = x.map(
24028
+ (t0) => t1(i0.value[t0.id] ?? null, t0, m)
24029
24029
  ));
24030
24030
  }
24031
24031
  }
24032
24032
  const w = new Set(
24033
- L.reduce((U, X, j) => (X.hide && U.push(j), U), [])
24034
- ), k = w.size > 0 ? L.filter((U, X) => !w.has(X)) : L, G = w.size > 0 ? P.map((U) => ({
24033
+ L.reduce((U, Q, Z) => (Q.hide && U.push(Z), U), [])
24034
+ ), X = w.size > 0 ? L.filter((U, Q) => !w.has(Q)) : L, j = w.size > 0 ? P.map((U) => ({
24035
24035
  ...U,
24036
- cells: U.cells.filter((X, j) => !w.has(j)),
24036
+ cells: U.cells.filter((Q, Z) => !w.has(Z)),
24037
24037
  comparisonCells: U.comparisonCells.filter(
24038
- (X, j) => !w.has(j)
24038
+ (Q, Z) => !w.has(Z)
24039
24039
  )
24040
- })) : P, t0 = T.source || c.source || "postgresql", K = typeof t0 == "string" && t0.toLowerCase() === "bigquery" ? "bigquery" : "postgresql";
24040
+ })) : P, a0 = T.source || c.source || "postgresql", K = typeof a0 == "string" && a0.toLowerCase() === "bigquery" ? "bigquery" : "postgresql";
24041
24041
  return {
24042
24042
  type: "TABLE",
24043
- columns: k,
24044
- rows: G,
24043
+ columns: X,
24044
+ rows: j,
24045
24045
  source: K
24046
24046
  };
24047
24047
  }
24048
24048
  function Ks(c) {
24049
24049
  const { widgetType: b, responses: D, isCompare: $, mainRequestCount: m, timezone: T } = c, L = D[0], x = L.columns.filter(
24050
- (n0) => n0.fieldType === "DIMENSION" && !n0.hide
24050
+ (G) => G.fieldType === "DIMENSION" && !G.hide
24051
24051
  ), P = L.columns.filter(
24052
- (n0) => n0.fieldType === "METRIC" && !n0.hide
24053
- ), w = x[0], k = x.length > 1 ? x[1] : null, G = [], t0 = /* @__PURE__ */ new Set();
24054
- for (const n0 of L.rows) {
24055
- if (n0.isRollup) continue;
24056
- const V = w ? t1(n0.value[w.id] ?? null, w, T) : "";
24057
- t0.has(V) || (t0.add(V), G.push(V));
24052
+ (G) => G.fieldType === "METRIC" && !G.hide
24053
+ ), w = x[0], X = x.length > 1 ? x[1] : null, j = [], a0 = /* @__PURE__ */ new Set();
24054
+ for (const G of L.rows) {
24055
+ if (G.isRollup) continue;
24056
+ const V = w ? t1(G.value[w.id] ?? null, w, T) : "";
24057
+ a0.has(V) || (a0.add(V), j.push(V));
24058
24058
  }
24059
24059
  const K = /* @__PURE__ */ new Map();
24060
- G.forEach((n0, V) => K.set(n0, V));
24060
+ j.forEach((G, V) => K.set(G, V));
24061
24061
  const U = {
24062
24062
  start: L.dateRange.start,
24063
24063
  end: L.dateRange.end
24064
- }, X = [];
24065
- if (k) {
24066
- const n0 = /* @__PURE__ */ new Set();
24064
+ }, Q = [];
24065
+ if (X) {
24066
+ const G = /* @__PURE__ */ new Set();
24067
24067
  for (const V of L.rows)
24068
- V.isRollup || n0.add(
24068
+ V.isRollup || G.add(
24069
24069
  t1(
24070
- V.value[k.id] ?? null,
24071
- k,
24070
+ V.value[X.id] ?? null,
24071
+ X,
24072
24072
  T
24073
24073
  )
24074
24074
  );
24075
- for (const V of n0)
24075
+ for (const V of G)
24076
24076
  for (const i0 of P) {
24077
- const l0 = new Array(G.length).fill(0);
24078
- for (const r0 of L.rows) {
24079
- if (r0.isRollup || t1(
24080
- r0.value[k.id] ?? null,
24081
- k,
24077
+ const t0 = new Array(j.length).fill(0);
24078
+ for (const n0 of L.rows) {
24079
+ if (n0.isRollup || t1(
24080
+ n0.value[X.id] ?? null,
24081
+ X,
24082
24082
  T
24083
24083
  ) !== V)
24084
24084
  continue;
24085
- const a0 = w ? t1(
24086
- r0.value[w.id] ?? null,
24085
+ const o0 = w ? t1(
24086
+ n0.value[w.id] ?? null,
24087
24087
  w,
24088
24088
  T
24089
- ) : "", o0 = K.get(a0);
24090
- o0 != null && (l0[o0] = ee(r0.value[i0.id]));
24089
+ ) : "", s0 = K.get(o0);
24090
+ s0 != null && (t0[s0] = ee(n0.value[i0.id]));
24091
24091
  }
24092
24092
  const b0 = P.length > 1 ? `${V} - ${i0.label}` : V;
24093
- X.push({
24093
+ Q.push({
24094
24094
  name: b0,
24095
- values: l0,
24095
+ values: t0,
24096
24096
  dateRange: U
24097
24097
  });
24098
24098
  }
24099
24099
  } else
24100
- for (const n0 of P) {
24101
- const V = new Array(G.length).fill(0);
24100
+ for (const G of P) {
24101
+ const V = new Array(j.length).fill(0);
24102
24102
  for (const i0 of L.rows) {
24103
24103
  if (i0.isRollup) continue;
24104
- const l0 = w ? t1(
24104
+ const t0 = w ? t1(
24105
24105
  i0.value[w.id] ?? null,
24106
24106
  w,
24107
24107
  T
24108
- ) : "", b0 = K.get(l0);
24109
- b0 != null && (V[b0] = ee(i0.value[n0.id]));
24108
+ ) : "", b0 = K.get(t0);
24109
+ b0 != null && (V[b0] = ee(i0.value[G.id]));
24110
24110
  }
24111
- X.push({
24112
- name: n0.label,
24111
+ Q.push({
24112
+ name: G.label,
24113
24113
  values: V,
24114
24114
  dateRange: U
24115
24115
  });
24116
24116
  }
24117
24117
  if ($ && D.length > m) {
24118
- const n0 = D[m], V = {
24119
- start: n0.dateRange.start,
24120
- end: n0.dateRange.end
24118
+ const G = D[m], V = {
24119
+ start: G.dateRange.start,
24120
+ end: G.dateRange.end
24121
24121
  };
24122
24122
  for (const i0 of P) {
24123
- const l0 = new Array(G.length).fill(0);
24124
- for (const b0 of n0.rows) {
24123
+ const t0 = new Array(j.length).fill(0);
24124
+ for (const b0 of G.rows) {
24125
24125
  if (b0.isRollup) continue;
24126
- const r0 = w ? t1(
24126
+ const n0 = w ? t1(
24127
24127
  b0.value[w.id] ?? null,
24128
24128
  w,
24129
24129
  T
24130
- ) : "", a0 = K.get(r0);
24131
- a0 != null && (l0[a0] = ee(b0.value[i0.id]));
24130
+ ) : "", o0 = K.get(n0);
24131
+ o0 != null && (t0[o0] = ee(b0.value[i0.id]));
24132
24132
  }
24133
- X.push({
24133
+ Q.push({
24134
24134
  name: i0.label,
24135
- values: l0,
24135
+ values: t0,
24136
24136
  isCompare: !0,
24137
24137
  dateRange: V
24138
24138
  });
24139
24139
  }
24140
24140
  }
24141
- const j = { main: U };
24142
- return $ && D.length > m && (j.comparison = {
24141
+ const Z = { main: U };
24142
+ return $ && D.length > m && (Z.comparison = {
24143
24143
  start: D[m].dateRange.start,
24144
24144
  end: D[m].dateRange.end
24145
24145
  }), {
24146
24146
  type: b,
24147
- xAxis: G,
24148
- datasets: X,
24149
- date: j
24147
+ xAxis: j,
24148
+ datasets: Q,
24149
+ date: Z
24150
24150
  };
24151
24151
  }
24152
24152
  function Zs(c) {
24153
- const { responses: b, isCompare: D, mainRequestCount: $, timezone: m } = c, T = b[0];
24154
- if (!T)
24153
+ const {
24154
+ responses: b,
24155
+ isCompare: D,
24156
+ mainRequestCount: $,
24157
+ timezone: m,
24158
+ sparklineType: T,
24159
+ sparklinePercentOfTotal: L
24160
+ } = c, x = b[0];
24161
+ if (!x)
24155
24162
  return null;
24156
- const L = T.columns.find(
24157
- (X) => X.fieldType === "METRIC" && !X.hide
24158
- ), x = T.rows.find((X) => !X.isRollup) ?? T.rows[0], P = x && L ? x.value[L.id] : null, w = (L == null ? void 0 : L.label) ?? "", k = t1(P, L ?? null, m);
24159
- let G;
24163
+ const P = x.columns.find(
24164
+ (G) => G.fieldType === "METRIC" && !G.hide
24165
+ ), w = x.rows.find((G) => !G.isRollup) ?? x.rows[0], X = w && P ? w.value[P.id] : null, j = (P == null ? void 0 : P.label) ?? "", a0 = t1(X, P ?? null, m);
24166
+ let K;
24160
24167
  if (D && b.length > $) {
24161
- const X = b[$], j = X ? X.rows.find((n0) => !n0.isRollup) ?? X.rows[0] : null;
24162
- j && L && (G = t1(
24163
- j.value[L.id],
24164
- L,
24168
+ const G = b[$], V = G ? G.rows.find((i0) => !i0.isRollup) ?? G.rows[0] : null;
24169
+ V && P && (K = t1(
24170
+ V.value[P.id],
24171
+ P,
24165
24172
  m
24166
24173
  ));
24167
24174
  }
24168
- let t0 = [], K = [];
24169
- const U = 1;
24170
- if (b.length > U && b[U]) {
24171
- const X = b[U], j = X.columns.find(
24172
- (V) => V.fieldType === "DIMENSION" && !V.hide
24173
- ), n0 = X.columns.find(
24174
- (V) => V.fieldType === "METRIC" && !V.hide
24175
+ let U = [], Q = [];
24176
+ const Z = 1;
24177
+ if (b.length > Z && b[Z]) {
24178
+ const G = b[Z], V = G.columns.find(
24179
+ (t0) => t0.fieldType === "DIMENSION" && !t0.hide
24180
+ ), i0 = G.columns.find(
24181
+ (t0) => t0.fieldType === "METRIC" && !t0.hide
24175
24182
  );
24176
- j && n0 && (t0 = X.rows.filter((V) => !V.isRollup).map(
24177
- (V) => t1(
24178
- V.value[j.id] ?? null,
24179
- j,
24183
+ V && i0 && (U = G.rows.filter((t0) => !t0.isRollup).map(
24184
+ (t0) => t1(
24185
+ t0.value[V.id] ?? null,
24186
+ V,
24180
24187
  m
24181
24188
  )
24182
- ), K = [
24189
+ ), Q = [
24183
24190
  {
24184
- name: n0.label,
24185
- values: X.rows.filter((V) => !V.isRollup).map((V) => ee(V.value[n0.id])),
24191
+ name: i0.label,
24192
+ values: G.rows.filter((t0) => !t0.isRollup).map((t0) => ee(t0.value[i0.id])),
24186
24193
  dateRange: {
24187
- start: X.dateRange.start,
24188
- end: X.dateRange.end
24194
+ start: G.dateRange.start,
24195
+ end: G.dateRange.end
24189
24196
  }
24190
24197
  }
24191
24198
  ]);
24192
24199
  }
24193
24200
  return {
24194
24201
  type: "SCORECARD",
24195
- name: w,
24196
- value: k,
24197
- comparison: G,
24202
+ name: j,
24203
+ value: a0,
24204
+ comparison: K,
24198
24205
  sparkline: {
24199
- type: "LINE",
24200
- dimensions: t0,
24201
- datasets: K
24206
+ type: T || y1.LINECHART,
24207
+ percentOfTotal: L === !0,
24208
+ dimensions: U,
24209
+ datasets: Q
24202
24210
  }
24203
24211
  };
24204
24212
  }
@@ -24211,37 +24219,37 @@ function eu(c) {
24211
24219
  start: T.dateRange.start,
24212
24220
  end: T.dateRange.end
24213
24221
  };
24214
- let w = null, k;
24222
+ let w = null, X;
24215
24223
  if (D && b.length > $) {
24216
24224
  const U = b[$];
24217
- k = {
24225
+ X = {
24218
24226
  start: U.dateRange.start,
24219
24227
  end: U.dateRange.end
24220
24228
  }, w = /* @__PURE__ */ new Map();
24221
- for (const X of U.rows) {
24222
- if (X.isRollup) continue;
24223
- const j = L ? t1(X.value[L.id] ?? null, L, m) : "";
24224
- x && w.set(j, ee(X.value[x.id]));
24229
+ for (const Q of U.rows) {
24230
+ if (Q.isRollup) continue;
24231
+ const Z = L ? t1(Q.value[L.id] ?? null, L, m) : "";
24232
+ x && w.set(Z, ee(Q.value[x.id]));
24225
24233
  }
24226
24234
  }
24227
- const G = [], t0 = { main: P };
24228
- k && (t0.comparison = k);
24235
+ const j = [], a0 = { main: P };
24236
+ X && (a0.comparison = X);
24229
24237
  for (const U of T.rows) {
24230
24238
  if (U.isRollup) continue;
24231
- const X = L ? t1(U.value[L.id] ?? null, L, m) : "", j = x ? ee(U.value[x.id]) : 0, n0 = (w == null ? void 0 : w.get(X)) ?? null;
24232
- G.push({
24233
- name: X,
24234
- value: j,
24235
- comparison: n0,
24236
- date: t0
24239
+ const Q = L ? t1(U.value[L.id] ?? null, L, m) : "", Z = x ? ee(U.value[x.id]) : 0, G = (w == null ? void 0 : w.get(Q)) ?? null;
24240
+ j.push({
24241
+ name: Q,
24242
+ value: Z,
24243
+ comparison: G,
24244
+ date: a0
24237
24245
  });
24238
24246
  }
24239
24247
  const K = x ? [x.label] : [];
24240
24248
  return {
24241
24249
  type: "CIRCULAR",
24242
- datasets: G,
24250
+ datasets: j,
24243
24251
  metrics: K,
24244
- date: t0
24252
+ date: a0
24245
24253
  };
24246
24254
  }
24247
24255
  function tu(c) {
@@ -24285,8 +24293,8 @@ function au(c, b) {
24285
24293
  function ou(c, b) {
24286
24294
  const D = c < 0, $ = Math.abs(c), m = (w) => String(Math.floor(w)).padStart(2, "0"), T = m($ % 3600 / 60), L = m($ % 60), x = D ? "-" : "";
24287
24295
  if (b) {
24288
- const w = Math.floor($ / 86400), k = m($ % 86400 / 3600), G = w > 0 ? `${w} day${w > 1 ? "s" : ""} ` : "";
24289
- return `${x}${G}${k}:${T}:${L}`;
24296
+ const w = Math.floor($ / 86400), X = m($ % 86400 / 3600), j = w > 0 ? `${w} day${w > 1 ? "s" : ""} ` : "";
24297
+ return `${x}${j}${X}:${T}:${L}`;
24290
24298
  }
24291
24299
  const P = m($ / 3600);
24292
24300
  return `${x}${P}:${T}:${L}`;
@@ -24600,25 +24608,25 @@ const F1 = xe(Eu, () => {
24600
24608
  visibleCount: 50
24601
24609
  });
24602
24610
  function x(V, i0) {
24603
- const l0 = tr(V, i0);
24604
- return D.value[l0] || (D.value[l0] = L()), D.value[l0];
24611
+ const t0 = tr(V, i0);
24612
+ return D.value[t0] || (D.value[t0] = L()), D.value[t0];
24605
24613
  }
24606
24614
  const P = (V) => m.value === V;
24607
- function w(V, i0, l0) {
24608
- Object.assign(x(V, i0), l0);
24615
+ function w(V, i0, t0) {
24616
+ Object.assign(x(V, i0), t0);
24609
24617
  }
24610
- function k(V, i0, l0 = 50) {
24611
- x(V, i0).visibleCount += l0;
24618
+ function X(V, i0, t0 = 50) {
24619
+ x(V, i0).visibleCount += t0;
24612
24620
  }
24613
- function G(V) {
24614
- var l0;
24621
+ function j(V) {
24622
+ var t0;
24615
24623
  if (!V) return;
24616
24624
  const i0 = `${V}|`;
24617
24625
  Object.keys(D.value).forEach((b0) => {
24618
24626
  b0.startsWith(i0) && delete D.value[b0];
24619
- }), (l0 = m.value) != null && l0.startsWith(i0) && j();
24627
+ }), (t0 = m.value) != null && t0.startsWith(i0) && Z();
24620
24628
  }
24621
- function t0(V) {
24629
+ function a0(V) {
24622
24630
  $.value = V;
24623
24631
  }
24624
24632
  function K() {
@@ -24627,13 +24635,13 @@ const F1 = xe(Eu, () => {
24627
24635
  function U() {
24628
24636
  b.value = Math.max(0, b.value - 1);
24629
24637
  }
24630
- function X(V) {
24638
+ function Q(V) {
24631
24639
  m.value = V;
24632
24640
  }
24633
- function j() {
24641
+ function Z() {
24634
24642
  m.value = null;
24635
24643
  }
24636
- function n0(V) {
24644
+ function G(V) {
24637
24645
  return V.label || `${Xt(V.schemaName)} ${Xt(V.name)}`;
24638
24646
  }
24639
24647
  return {
@@ -24644,15 +24652,15 @@ const F1 = xe(Eu, () => {
24644
24652
  getGlobalFilter: x,
24645
24653
  isMenuOpen: P,
24646
24654
  setGlobalFilter: w,
24647
- showMore: k,
24648
- clearGlobalFilterScope: G,
24649
- setIncludeUnavailable: t0,
24655
+ showMore: X,
24656
+ clearGlobalFilterScope: j,
24657
+ setIncludeUnavailable: a0,
24650
24658
  startGlobalFilterSelectLoading: K,
24651
24659
  finishGlobalFilterSelectLoading: U,
24652
- openMenu: X,
24653
- closeMenu: j,
24660
+ openMenu: Q,
24661
+ closeMenu: Z,
24654
24662
  getGlobalFilterKey: tr,
24655
- getGlobalFilterLabel: n0
24663
+ getGlobalFilterLabel: G
24656
24664
  };
24657
24665
  });
24658
24666
  function tt(c, b = {}) {
@@ -24711,16 +24719,16 @@ async function Lu(c, b) {
24711
24719
  await qn.fetch($);
24712
24720
  }
24713
24721
  const Iu = "mf-reportreport-store", ae = xe(Iu, () => {
24714
- const { business: c } = g0(H1()), { globalFilters: b } = g0(F1()), { schemas: D } = g0(ln()), { flags: $ } = g0(gn()), m = R0([]), T = R0([]), L = R0([]), x = R0(0), P = lr(), w = Tn(), k = z1(() => m.value.filter((s) => s.editable)), G = z1(() => m.value.filter((s) => !s.editable)), t0 = R0(!1), K = R0(""), U = R0(), X = R0(), j = z1(() => {
24722
+ const { business: c } = g0(H1()), { globalFilters: b } = g0(F1()), { schemas: D } = g0(ln()), { flags: $ } = g0(gn()), m = R0([]), T = R0([]), L = R0([]), x = R0(0), P = lr(), w = Tn(), X = z1(() => m.value.filter((s) => s.editable)), j = z1(() => m.value.filter((s) => !s.editable)), a0 = R0(!1), K = R0(""), U = R0(), Q = R0(), Z = z1(() => {
24715
24723
  const s = $.value.find(
24716
24724
  (u) => u.key === hn.report_portal_integration_custom_report
24717
24725
  );
24718
24726
  return typeof (s == null ? void 0 : s.value) == "number" ? s.value : null;
24719
- }), { isReportPermissionEnabled: n0 } = Sn(), V = z1(() => j.value === null ? !0 : j.value - k.value.length > 0);
24727
+ }), { isReportPermissionEnabled: G } = Sn(), V = z1(() => Z.value === null ? !0 : Z.value - X.value.length > 0);
24720
24728
  async function i0() {
24721
- return X.value = await hu(), X.value;
24729
+ return Q.value = await hu(), Q.value;
24722
24730
  }
24723
- async function l0() {
24731
+ async function t0() {
24724
24732
  var s;
24725
24733
  try {
24726
24734
  m.value = await Ou(), L.value = await er(), m.value.find((l) => l.id === K.value) || (K.value = ((s = m.value.find((l) => l.isDefault)) == null ? void 0 : s.id) || m.value[0].id);
@@ -24743,10 +24751,10 @@ const Iu = "mf-reportreport-store", ae = xe(Iu, () => {
24743
24751
  });
24744
24752
  }
24745
24753
  }
24746
- const r0 = z1(
24754
+ const n0 = z1(
24747
24755
  () => m.value.find((s) => s.id === K.value)
24748
24756
  );
24749
- function a0(s) {
24757
+ function o0(s) {
24750
24758
  var l;
24751
24759
  const u = (l = D.value.find((M) => M.name === s.schemaName)) == null ? void 0 : l.fields.find((M) => M.name === s.name);
24752
24760
  return u == null ? void 0 : u.type;
@@ -24754,27 +24762,27 @@ const Iu = "mf-reportreport-store", ae = xe(Iu, () => {
24754
24762
  x1(
24755
24763
  () => {
24756
24764
  var s;
24757
- return (s = r0.value) == null ? void 0 : s.globalFilters;
24765
+ return (s = n0.value) == null ? void 0 : s.globalFilters;
24758
24766
  },
24759
24767
  (s) => {
24760
24768
  b.value = (s ?? []).map((u) => ({
24761
24769
  ...u,
24762
24770
  values: Array.isArray(u.values) ? [...u.values] : [],
24763
- type: a0(u)
24771
+ type: o0(u)
24764
24772
  }));
24765
24773
  },
24766
24774
  { deep: !0 }
24767
24775
  );
24768
- const o0 = R0(), s0 = R0(0), $0 = R0(), p0 = R0(null), d0 = R0(null), f0 = R0(!1), c0 = R0(!1), t = R0(!1);
24776
+ const s0 = R0(), u0 = R0(0), $0 = R0(), p0 = R0(null), d0 = R0(null), f0 = R0(!1), c0 = R0(!1), t = R0(!1);
24769
24777
  async function i(s) {
24770
- const u = k.value.findIndex((M) => M.id === s.id);
24778
+ const u = X.value.findIndex((M) => M.id === s.id);
24771
24779
  let l;
24772
24780
  if (u >= 0)
24773
24781
  l = await yu(s);
24774
24782
  else {
24775
24783
  l = await mu(s);
24776
24784
  try {
24777
- if (n0.value) {
24785
+ if (G.value) {
24778
24786
  await Lu(l.id, l.name);
24779
24787
  const { businessId: M } = g0(P0());
24780
24788
  await w.fetchUserPermissions(void 0, M.value);
@@ -24786,10 +24794,10 @@ const Iu = "mf-reportreport-store", ae = xe(Iu, () => {
24786
24794
  });
24787
24795
  }
24788
24796
  }
24789
- return O(l.id), await l0(), l;
24797
+ return O(l.id), await t0(), l;
24790
24798
  }
24791
24799
  async function p(s) {
24792
- await qu(s), await l0();
24800
+ await qu(s), await t0();
24793
24801
  }
24794
24802
  async function A(s) {
24795
24803
  await gu(s), await i0();
@@ -24844,25 +24852,25 @@ const Iu = "mf-reportreport-store", ae = xe(Iu, () => {
24844
24852
  reports: m,
24845
24853
  reportTemplates: T,
24846
24854
  categories: L,
24847
- currentReport: r0,
24848
- editingReport: o0,
24849
- editingTileIndex: s0,
24855
+ currentReport: n0,
24856
+ editingReport: s0,
24857
+ editingTileIndex: u0,
24850
24858
  editingTile: $0,
24851
24859
  editingGlobalFilterIndex: p0,
24852
24860
  editingGlobalFilter: d0,
24853
24861
  currentReportId: K,
24854
- editableReports: k,
24855
- nonEditableReports: G,
24856
- isOpenAddReportDialog: t0,
24857
- overviewReport: X,
24862
+ editableReports: X,
24863
+ nonEditableReports: j,
24864
+ isOpenAddReportDialog: a0,
24865
+ overviewReport: Q,
24858
24866
  pinReport: r,
24859
24867
  scrollPositionY: x,
24860
- customReportQuota: j,
24868
+ customReportQuota: Z,
24861
24869
  canCreateCustomReport: V,
24862
24870
  createOrUpdateReport: i,
24863
24871
  removeReport: p,
24864
24872
  updateCurrentReportId: O,
24865
- getReports: l0,
24873
+ getReports: t0,
24866
24874
  getReportTemplates: b0,
24867
24875
  updateDefaultReport: A,
24868
24876
  createReportTemplate: S,
@@ -24876,7 +24884,7 @@ const Iu = "mf-reportreport-store", ae = xe(Iu, () => {
24876
24884
  };
24877
24885
  });
24878
24886
  var pn = /* @__PURE__ */ ((c) => (c.generating = "GENERATING", c.completed = "COMPLETED", c.failed = "FAILED", c.canceled = "CANCELLED", c))(pn || {});
24879
- const Fu = "/assets/formatChartData.worker-S0YDdTap.js", rt = /* @__PURE__ */ new Map();
24887
+ const Fu = "/assets/formatChartData.worker-BH7U7Dmq.js", rt = /* @__PURE__ */ new Map();
24880
24888
  function rr(c) {
24881
24889
  return new Worker(c, { type: "module" });
24882
24890
  }
@@ -25015,23 +25023,23 @@ function nr({
25015
25023
  const $ = /* @__PURE__ */ new Map(), m = [], T = new Set((D ?? []).map((w) => String(w))), L = (w) => T.has(w.schemaName ?? ""), x = b.filter(L), P = (w) => {
25016
25024
  if (!w || !L(w) || !Array.isArray(w.values) || w.values.length === 0)
25017
25025
  return;
25018
- const k = {
25026
+ const X = {
25019
25027
  ...w,
25020
25028
  values: Mn(w.values)
25021
25029
  };
25022
- if (k.option === w0.TimeOfDay && k.operator === e1.Between) {
25023
- m.push(k);
25030
+ if (X.option === w0.TimeOfDay && X.operator === e1.Between) {
25031
+ m.push(X);
25024
25032
  return;
25025
25033
  }
25026
- const t0 = wu(k), K = $.get(t0);
25034
+ const a0 = wu(X), K = $.get(a0);
25027
25035
  if (!K) {
25028
- $.set(t0, k);
25036
+ $.set(a0, X);
25029
25037
  return;
25030
25038
  }
25031
25039
  K.values = [
25032
25040
  ...K.values ?? [],
25033
- ...k.values
25034
- ], $.set(t0, K);
25041
+ ...X.values
25042
+ ], $.set(a0, K);
25035
25043
  };
25036
25044
  return c.forEach(P), x.forEach(P), [...Array.from($.values()), ...m];
25037
25045
  }
@@ -25159,7 +25167,7 @@ function Ku(c) {
25159
25167
  function Hl() {
25160
25168
  return {
25161
25169
  id: De(),
25162
- size: { width: 12, height: 12 },
25170
+ size: { width: 12, height: 4 },
25163
25171
  tab: !0,
25164
25172
  tiles: [Ku(1)]
25165
25173
  };
@@ -25177,6 +25185,8 @@ const Zu = [
25177
25185
  "dimensions",
25178
25186
  "breakdownDimension",
25179
25187
  "sparklineDimension",
25188
+ "sparklineType",
25189
+ "sparklinePercentOfTotal",
25180
25190
  "drillDimension",
25181
25191
  "metrics",
25182
25192
  "filters",
@@ -25226,36 +25236,36 @@ const el = async ({
25226
25236
  scopedGlobalFilters: L
25227
25237
  }) => {
25228
25238
  var t, i, p, A;
25229
- const { businessId: x } = g0(P0()), { currentReport: P, editingReport: w, overviewReport: k } = ae(), { selectedNavigationTab: G } = be(), t0 = G === "overview" && k ? k : w ?? P, {
25239
+ const { businessId: x } = g0(P0()), { currentReport: P, editingReport: w, overviewReport: X } = ae(), { selectedNavigationTab: j } = be(), a0 = j === "overview" && X ? X : w ?? P, {
25230
25240
  selectedRestaurantIds: K,
25231
25241
  selectedWarehouseIds: U,
25232
- selectedLocationIds: X,
25233
- dateRange: j,
25234
- compareDateRange: n0,
25242
+ selectedLocationIds: Q,
25243
+ dateRange: Z,
25244
+ compareDateRange: G,
25235
25245
  timeRange: V,
25236
25246
  timezone: i0,
25237
- restaurants: l0,
25247
+ restaurants: t0,
25238
25248
  warehouses: b0
25239
- } = H1(), { globalFilters: r0 } = F1();
25240
- if (X.length === 0)
25249
+ } = H1(), { globalFilters: n0 } = F1();
25250
+ if (Q.length === 0)
25241
25251
  return null;
25242
- const a0 = T ?? j, o0 = m ?? V, s0 = L ?? r0, $0 = ($ == null ? void 0 : $.filter((S) => l0.some((F) => F.id === S))) ?? K, p0 = ($ == null ? void 0 : $.filter((S) => b0.some((F) => F.id === S))) ?? U, d0 = Ae(c, s0, D ?? ""), f0 = {
25252
+ const o0 = T ?? Z, s0 = m ?? V, u0 = L ?? n0, $0 = ($ == null ? void 0 : $.filter((S) => t0.some((F) => F.id === S))) ?? K, p0 = ($ == null ? void 0 : $.filter((S) => b0.some((F) => F.id === S))) ?? U, d0 = Ae(c, u0, D ?? ""), f0 = {
25243
25253
  fetchType: J0.Post,
25244
25254
  url: `/${x.value}/v2/query`,
25245
25255
  data: {
25246
25256
  widget: d0,
25247
- dateRange: [a0.startDate, a0.endDate],
25248
- compareDateRange: n0.startDate && n0.endDate ? [n0.startDate, n0.endDate] : void 0,
25257
+ dateRange: [o0.startDate, o0.endDate],
25258
+ compareDateRange: G.startDate && G.endDate ? [G.startDate, G.endDate] : void 0,
25249
25259
  timeRange: [
25250
- v0().tz(i0).hour(Number((t = o0.start) == null ? void 0 : t.hour)).minute(Number((i = o0.start) == null ? void 0 : i.minute)).toISOString(),
25251
- v0().tz(i0).hour(Number((p = o0.end) == null ? void 0 : p.hour)).minute(Number((A = o0.end) == null ? void 0 : A.minute)).endOf("minutes").toISOString()
25260
+ v0().tz(i0).hour(Number((t = s0.start) == null ? void 0 : t.hour)).minute(Number((i = s0.start) == null ? void 0 : i.minute)).toISOString(),
25261
+ v0().tz(i0).hour(Number((p = s0.end) == null ? void 0 : p.hour)).minute(Number((A = s0.end) == null ? void 0 : A.minute)).endOf("minutes").toISOString()
25252
25262
  ],
25253
25263
  businessIds: x.value ? [x.value] : [],
25254
25264
  restaurantIds: $0,
25255
25265
  warehouseIds: p0,
25256
25266
  timezone: i0,
25257
- skipStringSpaceGrouping: !!(t0 != null && t0.batch) || dt(t0),
25258
- reportId: t0 == null ? void 0 : t0.id,
25267
+ skipStringSpaceGrouping: !!(a0 != null && a0.batch) || dt(a0),
25268
+ reportId: a0 == null ? void 0 : a0.id,
25259
25269
  queryDatasource: Pt.Postgres
25260
25270
  },
25261
25271
  requestConfig: {
@@ -25271,27 +25281,27 @@ const el = async ({
25271
25281
  scopedDateRange: $,
25272
25282
  scopedCompareDateRange: m
25273
25283
  }) => {
25274
- var o0, s0, $0, p0;
25275
- const { businessId: T } = g0(P0()), { currentReport: L, editingReport: x, overviewReport: P } = ae(), { selectedNavigationTab: w } = be(), k = w === "overview" && P ? P : x ?? L, { restaurants: G, warehouses: t0, dateRange: K, compareDateRange: U, timeRange: X, timezone: j } = H1(), { globalFilters: n0 } = F1();
25276
- if (G.length === 0 && t0.length === 0)
25284
+ var s0, u0, $0, p0;
25285
+ const { businessId: T } = g0(P0()), { currentReport: L, editingReport: x, overviewReport: P } = ae(), { selectedNavigationTab: w } = be(), X = w === "overview" && P ? P : x ?? L, { restaurants: j, warehouses: a0, dateRange: K, compareDateRange: U, timeRange: Q, timezone: Z } = H1(), { globalFilters: G } = F1();
25286
+ if (j.length === 0 && a0.length === 0)
25277
25287
  return { totalBytesProcessed: 0 };
25278
- const V = $ ?? K, i0 = m ?? U, l0 = G.map((d0) => d0.id), b0 = t0.map((d0) => d0.id), r0 = Ae(c, n0, D ?? ""), a0 = {
25288
+ const V = $ ?? K, i0 = m ?? U, t0 = j.map((d0) => d0.id), b0 = a0.map((d0) => d0.id), n0 = Ae(c, G, D ?? ""), o0 = {
25279
25289
  fetchType: J0.Post,
25280
25290
  url: `/${T.value}/v2/query/dry-run`,
25281
25291
  data: {
25282
- widget: r0,
25292
+ widget: n0,
25283
25293
  dateRange: [V.startDate, V.endDate],
25284
25294
  compareDateRange: i0.startDate && i0.endDate ? [i0.startDate, i0.endDate] : void 0,
25285
25295
  timeRange: [
25286
- v0().tz(j).hour(Number((o0 = X.start) == null ? void 0 : o0.hour)).minute(Number((s0 = X.start) == null ? void 0 : s0.minute)).toISOString(),
25287
- v0().tz(j).hour(Number(($0 = X.end) == null ? void 0 : $0.hour)).minute(Number((p0 = X.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
25296
+ v0().tz(Z).hour(Number((s0 = Q.start) == null ? void 0 : s0.hour)).minute(Number((u0 = Q.start) == null ? void 0 : u0.minute)).toISOString(),
25297
+ v0().tz(Z).hour(Number(($0 = Q.end) == null ? void 0 : $0.hour)).minute(Number((p0 = Q.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
25288
25298
  ],
25289
25299
  businessIds: T.value ? [T.value] : [],
25290
- restaurantIds: l0,
25300
+ restaurantIds: t0,
25291
25301
  warehouseIds: b0,
25292
- timezone: j,
25302
+ timezone: Z,
25293
25303
  skipStringSpaceGrouping: !1,
25294
- reportId: k == null ? void 0 : k.id,
25304
+ reportId: X == null ? void 0 : X.id,
25295
25305
  queryDatasource: Pt.BigQuery
25296
25306
  },
25297
25307
  requestConfig: {
@@ -25299,7 +25309,7 @@ const el = async ({
25299
25309
  signal: b
25300
25310
  }
25301
25311
  };
25302
- return U0.fetch(a0);
25312
+ return U0.fetch(o0);
25303
25313
  }, tl = async ({
25304
25314
  widget: c,
25305
25315
  signal: b,
@@ -25310,7 +25320,7 @@ const el = async ({
25310
25320
  scopedGlobalFilters: L
25311
25321
  }) => {
25312
25322
  var p, A, S, F;
25313
- const { businessId: x, country: P } = g0(P0()), { currentReport: w, editingReport: k, overviewReport: G } = ae(), { selectedNavigationTab: t0 } = be(), K = t0 === "overview" && G ? G : k ?? w;
25323
+ const { businessId: x, country: P } = g0(P0()), { currentReport: w, editingReport: X, overviewReport: j } = ae(), { selectedNavigationTab: a0 } = be(), K = a0 === "overview" && j ? j : X ?? w;
25314
25324
  if (dt(K))
25315
25325
  return el({
25316
25326
  widget: c,
@@ -25323,32 +25333,32 @@ const el = async ({
25323
25333
  });
25324
25334
  const {
25325
25335
  selectedRestaurantIds: U,
25326
- selectedWarehouseIds: X,
25327
- selectedLocationIds: j,
25328
- dateRange: n0,
25336
+ selectedWarehouseIds: Q,
25337
+ selectedLocationIds: Z,
25338
+ dateRange: G,
25329
25339
  compareDateRange: V,
25330
25340
  timeRange: i0,
25331
- timezone: l0,
25341
+ timezone: t0,
25332
25342
  restaurants: b0,
25333
- warehouses: r0
25334
- } = H1(), { globalFilters: a0 } = F1();
25335
- if (j.length === 0)
25343
+ warehouses: n0
25344
+ } = H1(), { globalFilters: o0 } = F1();
25345
+ if (Z.length === 0)
25336
25346
  return null;
25337
- const o0 = T ?? n0, s0 = m ?? i0, $0 = L ?? a0, p0 = ($ == null ? void 0 : $.filter((W) => b0.some((O) => O.id === W))) ?? U, d0 = ($ == null ? void 0 : $.filter((W) => r0.some((O) => O.id === W))) ?? X, f0 = Ae(c, $0, D ?? ""), c0 = {
25347
+ const s0 = T ?? G, u0 = m ?? i0, $0 = L ?? o0, p0 = ($ == null ? void 0 : $.filter((W) => b0.some((O) => O.id === W))) ?? U, d0 = ($ == null ? void 0 : $.filter((W) => n0.some((O) => O.id === W))) ?? Q, f0 = Ae(c, $0, D ?? ""), c0 = {
25338
25348
  fetchType: J0.Post,
25339
25349
  url: `/${x.value}/postgres-query`,
25340
25350
  data: vt.getQueryRequests({
25341
25351
  widget: f0,
25342
- dateRange: [o0.startDate, o0.endDate],
25352
+ dateRange: [s0.startDate, s0.endDate],
25343
25353
  compareDateRange: V.startDate && V.endDate ? [V.startDate, V.endDate] : void 0,
25344
25354
  timeRange: [
25345
- v0().tz(l0).hour(Number((p = s0.start) == null ? void 0 : p.hour)).minute(Number((A = s0.start) == null ? void 0 : A.minute)).toISOString(),
25346
- v0().tz(l0).hour(Number((S = s0.end) == null ? void 0 : S.hour)).minute(Number((F = s0.end) == null ? void 0 : F.minute)).endOf("minutes").toISOString()
25355
+ v0().tz(t0).hour(Number((p = u0.start) == null ? void 0 : p.hour)).minute(Number((A = u0.start) == null ? void 0 : A.minute)).toISOString(),
25356
+ v0().tz(t0).hour(Number((S = u0.end) == null ? void 0 : S.hour)).minute(Number((F = u0.end) == null ? void 0 : F.minute)).endOf("minutes").toISOString()
25347
25357
  ],
25348
25358
  businessIds: x.value ? [x.value] : [],
25349
25359
  restaurantIds: p0,
25350
25360
  warehouseIds: d0,
25351
- timezone: l0
25361
+ timezone: t0
25352
25362
  }).map((W, O) => {
25353
25363
  const r = O === 0 ? 3e3 : 12e3;
25354
25364
  return {
@@ -25369,7 +25379,7 @@ const el = async ({
25369
25379
  responses: i,
25370
25380
  widget: JSON.parse(JSON.stringify(c)),
25371
25381
  country: P.value,
25372
- timezone: l0
25382
+ timezone: t0
25373
25383
  })).data;
25374
25384
  }, Ul = async ({
25375
25385
  reportType: c,
@@ -25381,31 +25391,31 @@ const el = async ({
25381
25391
  dateRange: L,
25382
25392
  globalFilters: x
25383
25393
  }) => {
25384
- const { businessId: P } = g0(P0()), w = H1(), { compareDateRange: k } = g0(w), { restaurants: G, warehouses: t0, timezone: K } = w, { globalFilters: U } = F1(), { currentReport: X, overviewReport: j } = ae(), { selectedNavigationTab: n0 } = be(), { getTileSorts: V } = cn();
25385
- let i0 = X == null ? void 0 : X.id, l0 = J1(X == null ? void 0 : X.tiles);
25386
- n0 === "overview" && j && (i0 = j == null ? void 0 : j.id, l0 = J1(j == null ? void 0 : j.tiles));
25387
- const b0 = x ?? U, r0 = l0.filter((f0, c0) => typeof b == "number" ? c0 === b : !0).map((f0) => Ae(f0.widget, b0, f0.id)), a0 = {
25394
+ const { businessId: P } = g0(P0()), w = H1(), { compareDateRange: X } = g0(w), { restaurants: j, warehouses: a0, timezone: K } = w, { globalFilters: U } = F1(), { currentReport: Q, overviewReport: Z } = ae(), { selectedNavigationTab: G } = be(), { getTileSorts: V } = cn();
25395
+ let i0 = Q == null ? void 0 : Q.id, t0 = J1(Q == null ? void 0 : Q.tiles);
25396
+ G === "overview" && Z && (i0 = Z == null ? void 0 : Z.id, t0 = J1(Z == null ? void 0 : Z.tiles));
25397
+ const b0 = x ?? U, n0 = t0.filter((f0, c0) => typeof b == "number" ? c0 === b : !0).map((f0) => Ae(f0.widget, b0, f0.id)), o0 = {
25388
25398
  fetchType: J0.Post,
25389
25399
  url: `/${P.value}/file?lang=${w1()}`,
25390
25400
  data: {
25391
25401
  configs: [
25392
- ...r0.map((f0, c0) => {
25402
+ ...n0.map((f0, c0) => {
25393
25403
  var t, i, p, A;
25394
25404
  return {
25395
25405
  requests: vt.getQueryRequests({
25396
25406
  widget: f0,
25397
25407
  dateRange: [L.startDate, L.endDate],
25398
- compareDateRange: k.value.startDate && k.value.endDate ? [k.value.startDate, k.value.endDate] : void 0,
25408
+ compareDateRange: X.value.startDate && X.value.endDate ? [X.value.startDate, X.value.endDate] : void 0,
25399
25409
  timeRange: [
25400
25410
  v0().tz(K).set("hour", Number((t = T.start) == null ? void 0 : t.hour)).set("minute", Number((i = T.start) == null ? void 0 : i.minute)).toISOString(),
25401
25411
  v0().tz(K).set("hour", Number((p = T.end) == null ? void 0 : p.hour)).set("minute", Number((A = T.end) == null ? void 0 : A.minute)).toISOString()
25402
25412
  ],
25403
25413
  businessIds: P ? [P.value] : [],
25404
25414
  restaurantIds: m.filter(
25405
- (S) => G.find((F) => F.id === S)
25415
+ (S) => j.find((F) => F.id === S)
25406
25416
  ),
25407
25417
  warehouseIds: m.filter(
25408
- (S) => t0.find((F) => F.id === S)
25418
+ (S) => a0.find((F) => F.id === S)
25409
25419
  ),
25410
25420
  timezone: K
25411
25421
  }),
@@ -25425,7 +25435,7 @@ const el = async ({
25425
25435
  responseType: "arraybuffer",
25426
25436
  timeout: 1e3 * 60 * 60 * 24
25427
25437
  }
25428
- }, { headers: o0, data: s0 } = await Ot.rawFetch(a0), $0 = o0["content-disposition"].split("filename=")[1].replaceAll('"', ""), p0 = window.URL.createObjectURL(new Blob([new Uint8Array(s0).buffer])), d0 = document.createElement("a");
25438
+ }, { headers: s0, data: u0 } = await Ot.rawFetch(o0), $0 = s0["content-disposition"].split("filename=")[1].replaceAll('"', ""), p0 = window.URL.createObjectURL(new Blob([new Uint8Array(u0).buffer])), d0 = document.createElement("a");
25429
25439
  d0.href = p0, d0.setAttribute("download", decodeURIComponent($0)), document.body.appendChild(d0), d0.click(), d0.remove();
25430
25440
  }, Ql = async ({
25431
25441
  emails: c,
@@ -25437,45 +25447,45 @@ const el = async ({
25437
25447
  isCombinedLocationLayout: L,
25438
25448
  globalFilters: x
25439
25449
  }) => {
25440
- const { businessId: P } = g0(P0()), { currentReport: w, overviewReport: k } = ae(), { selectedNavigationTab: G } = be(), t0 = H1(), { compareDateRange: K } = g0(t0), { restaurants: U, warehouses: X, timezone: j } = t0, { globalFilters: n0 } = F1(), { getTileSorts: V } = cn();
25450
+ const { businessId: P } = g0(P0()), { currentReport: w, overviewReport: X } = ae(), { selectedNavigationTab: j } = be(), a0 = H1(), { compareDateRange: K } = g0(a0), { restaurants: U, warehouses: Q, timezone: Z } = a0, { globalFilters: G } = F1(), { getTileSorts: V } = cn();
25441
25451
  if (c.length === 0) {
25442
25452
  console.error("No email addresses provided.");
25443
25453
  return;
25444
25454
  }
25445
- let i0 = (w == null ? void 0 : w.id) || "", l0 = (w == null ? void 0 : w.name) || "", b0 = J1(w == null ? void 0 : w.tiles);
25446
- G === "overview" && k && (i0 = k == null ? void 0 : k.id, l0 = k.name, b0 = J1(k == null ? void 0 : k.tiles));
25447
- const r0 = x ?? n0, a0 = b0.map((s0) => Ae(s0.widget, r0, s0.id)), o0 = {
25455
+ let i0 = (w == null ? void 0 : w.id) || "", t0 = (w == null ? void 0 : w.name) || "", b0 = J1(w == null ? void 0 : w.tiles);
25456
+ j === "overview" && X && (i0 = X == null ? void 0 : X.id, t0 = X.name, b0 = J1(X == null ? void 0 : X.tiles));
25457
+ const n0 = x ?? G, o0 = b0.map((u0) => Ae(u0.widget, n0, u0.id)), s0 = {
25448
25458
  businessId: P.value,
25449
25459
  status: pn.generating,
25450
25460
  dateRange: {
25451
25461
  start: D.startDate,
25452
25462
  end: D.endDate
25453
25463
  },
25454
- reportName: l0,
25464
+ reportName: t0,
25455
25465
  emails: c,
25456
- configs: a0.map((s0, $0) => {
25466
+ configs: o0.map((u0, $0) => {
25457
25467
  var p0, d0, f0, c0;
25458
25468
  return {
25459
25469
  requests: vt.getQueryRequests({
25460
- widget: s0,
25470
+ widget: u0,
25461
25471
  dateRange: [D.startDate, D.endDate],
25462
25472
  compareDateRange: K.value.startDate && K.value.endDate ? [K.value.startDate, K.value.endDate] : void 0,
25463
25473
  timeRange: [
25464
- v0().tz(j).hour(Number((p0 = $.start) == null ? void 0 : p0.hour)).minute(Number((d0 = $.start) == null ? void 0 : d0.minute)).toISOString(),
25465
- v0().tz(j).hour(Number((f0 = $.end) == null ? void 0 : f0.hour)).minute(Number((c0 = $.end) == null ? void 0 : c0.minute)).endOf("minutes").toISOString()
25474
+ v0().tz(Z).hour(Number((p0 = $.start) == null ? void 0 : p0.hour)).minute(Number((d0 = $.start) == null ? void 0 : d0.minute)).toISOString(),
25475
+ v0().tz(Z).hour(Number((f0 = $.end) == null ? void 0 : f0.hour)).minute(Number((c0 = $.end) == null ? void 0 : c0.minute)).endOf("minutes").toISOString()
25466
25476
  ],
25467
25477
  businessIds: P ? [P.value] : [],
25468
25478
  restaurantIds: m.filter(
25469
25479
  (t) => U.find((i) => i.id === t)
25470
25480
  ),
25471
25481
  warehouseIds: m.filter(
25472
- (t) => X.find((i) => i.id === t)
25482
+ (t) => Q.find((i) => i.id === t)
25473
25483
  ),
25474
- timezone: j
25484
+ timezone: Z
25475
25485
  }),
25476
25486
  index: $0,
25477
25487
  drillDimension: null,
25478
- ..._n(s0),
25488
+ ..._n(u0),
25479
25489
  globalSorts: V($0)
25480
25490
  };
25481
25491
  }),
@@ -25487,7 +25497,7 @@ const el = async ({
25487
25497
  await Ot.fetch({
25488
25498
  fetchType: J0.Post,
25489
25499
  url: `/${P.value}/reports/email?lang=${w1()}`,
25490
- data: o0,
25500
+ data: s0,
25491
25501
  requestConfig: { timeout: 1e3 * 60 * 3 }
25492
25502
  });
25493
25503
  }, Yl = async (c) => {
@@ -25557,28 +25567,28 @@ const el = async ({
25557
25567
  setup(c, { emit: b }) {
25558
25568
  const { t: D, locale: $ } = pr(), m = at(c, "timeRange"), T = b, L = at(c, "selectTimeDefault");
25559
25569
  function x(U) {
25560
- U && (m.value = U, T("update", m.value)), G.value = !1;
25570
+ U && (m.value = U, T("update", m.value)), j.value = !1;
25561
25571
  }
25562
25572
  function P(U) {
25563
- const X = U.split(":"), j = v0().set("hour", Number(X[0])).set("minute", Number(X[1]));
25573
+ const Q = U.split(":"), Z = v0().set("hour", Number(Q[0])).set("minute", Number(Q[1]));
25564
25574
  return {
25565
- hours: Number(j.format("h")),
25566
- minutes: Number(j.format("m")),
25567
- period: j.format("A")
25575
+ hours: Number(Z.format("h")),
25576
+ minutes: Number(Z.format("m")),
25577
+ period: Z.format("A")
25568
25578
  };
25569
25579
  }
25570
25580
  const w = R0(JSON.parse(JSON.stringify(m.value)));
25571
- function k(U, X) {
25572
- w.value.start = JSON.parse(JSON.stringify(U)), w.value.end = JSON.parse(JSON.stringify(X));
25581
+ function X(U, Q) {
25582
+ w.value.start = JSON.parse(JSON.stringify(U)), w.value.end = JSON.parse(JSON.stringify(Q));
25573
25583
  }
25574
25584
  x1(
25575
25585
  () => [m.value, c.defaultDateRange],
25576
25586
  () => {
25577
25587
  if (m.value) {
25578
25588
  const U = c.defaultDateRange.findIndex(
25579
- (X) => {
25580
- var j, n0, V, i0;
25581
- return X.startTime.hour === ((j = m.value.start) == null ? void 0 : j.hour) && X.startTime.minute === ((n0 = m.value.start) == null ? void 0 : n0.minute) && X.endTime.hour === ((V = m.value.end) == null ? void 0 : V.hour) && X.endTime.minute === ((i0 = m.value.end) == null ? void 0 : i0.minute);
25589
+ (Q) => {
25590
+ var Z, G, V, i0;
25591
+ return Q.startTime.hour === ((Z = m.value.start) == null ? void 0 : Z.hour) && Q.startTime.minute === ((G = m.value.start) == null ? void 0 : G.minute) && Q.endTime.hour === ((V = m.value.end) == null ? void 0 : V.hour) && Q.endTime.minute === ((i0 = m.value.end) == null ? void 0 : i0.minute);
25582
25592
  }
25583
25593
  ) + 1;
25584
25594
  U !== 0 ? L.value = U : L.value = c.defaultDateRange.length + 1;
@@ -25586,8 +25596,8 @@ const el = async ({
25586
25596
  },
25587
25597
  { deep: !0, immediate: !0 }
25588
25598
  );
25589
- const G = R0(!1);
25590
- function t0(U) {
25599
+ const j = R0(!1);
25600
+ function a0(U) {
25591
25601
  T("chip-closed", U);
25592
25602
  }
25593
25603
  const K = z1(() => c.label ? c.label : sr({
@@ -25595,41 +25605,41 @@ const el = async ({
25595
25605
  endTime: m.value.end,
25596
25606
  locale: $.value
25597
25607
  }));
25598
- return (U, X) => {
25599
- const j = V0("FmChip"), n0 = V0("FmRadio"), V = V0("FmMenuDivider"), i0 = V0("FmRadioGroup"), l0 = V0("FmTimeInput"), b0 = V0("FmButton"), r0 = V0("FmPopover");
25608
+ return (U, Q) => {
25609
+ const Z = V0("FmChip"), G = V0("FmRadio"), V = V0("FmMenuDivider"), i0 = V0("FmRadioGroup"), t0 = V0("FmTimeInput"), b0 = V0("FmButton"), n0 = V0("FmPopover");
25600
25610
  return Q0(), l1("div", null, [
25601
- x0(r0, {
25602
- "show-popover": G.value,
25611
+ x0(n0, {
25612
+ "show-popover": j.value,
25603
25613
  placement: "bottom",
25604
- onPopoverChanged: X[6] || (X[6] = (a0) => G.value = a0)
25614
+ onPopoverChanged: Q[6] || (Q[6] = (o0) => j.value = o0)
25605
25615
  }, {
25606
25616
  "popover-button": n1(() => [
25607
25617
  x0(ur, {
25608
25618
  "left-icon": c.label ? "filter_alt" : "schedule",
25609
25619
  label: K.value,
25610
25620
  removable: c.removable,
25611
- onChipClosed: X[0] || (X[0] = (a0) => t0(!0))
25621
+ onChipClosed: Q[0] || (Q[0] = (o0) => a0(!0))
25612
25622
  }, null, 8, ["left-icon", "label", "removable"])
25613
25623
  ]),
25614
25624
  default: n1(() => {
25615
- var a0, o0, s0, $0;
25625
+ var o0, s0, u0, $0;
25616
25626
  return [
25617
25627
  H0("div", nl, [
25618
25628
  x0(i0, {
25619
25629
  modelValue: L.value,
25620
- "onUpdate:modelValue": X[1] || (X[1] = (p0) => L.value = p0)
25630
+ "onUpdate:modelValue": Q[1] || (Q[1] = (p0) => L.value = p0)
25621
25631
  }, {
25622
25632
  default: n1(() => [
25623
- (Q0(!0), l1(V1, null, ot(c.defaultDateRange, (p0, d0) => (Q0(), y1(n0, {
25633
+ (Q0(!0), l1(V1, null, ot(c.defaultDateRange, (p0, d0) => (Q0(), m1(G, {
25624
25634
  key: `range_${d0}`,
25625
25635
  value: d0 + 1,
25626
25636
  label: p0.name,
25627
- onClick: (f0) => k(p0.startTime, p0.endTime)
25637
+ onClick: (f0) => X(p0.startTime, p0.endTime)
25628
25638
  }, {
25629
25639
  label: n1(() => [
25630
25640
  H0("p", al, [
25631
25641
  We(p1(p0.name) + " ", 1),
25632
- On(x0(j, {
25642
+ On(x0(Z, {
25633
25643
  label: W0(D)("report.common.default"),
25634
25644
  class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
25635
25645
  compact: ""
@@ -25642,7 +25652,7 @@ const el = async ({
25642
25652
  _: 2
25643
25653
  }, 1032, ["value", "label", "onClick"]))), 128)),
25644
25654
  x0(V),
25645
- x0(n0, {
25655
+ x0(G, {
25646
25656
  key: "range_custom",
25647
25657
  label: W0(D)("report.common.custom"),
25648
25658
  value: c.defaultDateRange.length + 1
@@ -25653,9 +25663,9 @@ const el = async ({
25653
25663
  L.value === c.defaultDateRange.length + 1 ? (Q0(), l1(V1, { key: 0 }, [
25654
25664
  H0("p", il, p1(W0(D)("report.date.startingTime")), 1),
25655
25665
  H0("div", sl, [
25656
- x0(l0, {
25657
- "model-value": P(`${(a0 = w.value.start) == null ? void 0 : a0.hour}:${(o0 = w.value.start) == null ? void 0 : o0.minute}`),
25658
- "onUpdate:modelValue": X[2] || (X[2] = (p0) => {
25666
+ x0(t0, {
25667
+ "model-value": P(`${(o0 = w.value.start) == null ? void 0 : o0.hour}:${(s0 = w.value.start) == null ? void 0 : s0.minute}`),
25668
+ "onUpdate:modelValue": Q[2] || (Q[2] = (p0) => {
25659
25669
  if (w.value.start) {
25660
25670
  const d0 = W0(v0)(`${p0.hours}:${p0.minutes} ${p0.period}`, "h:m A").locale(
25661
25671
  W0(w1)()
@@ -25667,9 +25677,9 @@ const el = async ({
25667
25677
  ]),
25668
25678
  H0("p", ul, p1(W0(D)("report.date.endingTime")), 1),
25669
25679
  H0("div", ll, [
25670
- x0(l0, {
25671
- "model-value": P(`${(s0 = w.value.end) == null ? void 0 : s0.hour}:${($0 = w.value.end) == null ? void 0 : $0.minute}`),
25672
- "onUpdate:modelValue": X[3] || (X[3] = (p0) => {
25680
+ x0(t0, {
25681
+ "model-value": P(`${(u0 = w.value.end) == null ? void 0 : u0.hour}:${($0 = w.value.end) == null ? void 0 : $0.minute}`),
25682
+ "onUpdate:modelValue": Q[3] || (Q[3] = (p0) => {
25673
25683
  if (w.value.end) {
25674
25684
  const d0 = W0(v0)(`${p0.hours}:${p0.minutes} ${p0.period}`, "h:m A").locale(
25675
25685
  W0(w1)()
@@ -25681,15 +25691,15 @@ const el = async ({
25681
25691
  ])
25682
25692
  ], 64)) : he("", !0),
25683
25693
  H0("div", pl, [
25684
- X[7] || (X[7] = H0("div", { class: "grow" }, null, -1)),
25694
+ Q[7] || (Q[7] = H0("div", { class: "grow" }, null, -1)),
25685
25695
  x0(b0, {
25686
25696
  label: W0(D)("report.common.cancel"),
25687
25697
  variant: "tertiary",
25688
- onClick: X[4] || (X[4] = (p0) => G.value = !1)
25698
+ onClick: Q[4] || (Q[4] = (p0) => j.value = !1)
25689
25699
  }, null, 8, ["label"]),
25690
25700
  x0(b0, {
25691
25701
  label: W0(D)("report.common.apply"),
25692
- onClick: X[5] || (X[5] = () => x(JSON.parse(JSON.stringify(w.value))))
25702
+ onClick: Q[5] || (Q[5] = () => x(JSON.parse(JSON.stringify(w.value))))
25693
25703
  }, null, 8, ["label"])
25694
25704
  ])
25695
25705
  ])
@@ -25726,7 +25736,7 @@ const el = async ({
25726
25736
  D.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
25727
25737
  }), (T, L) => {
25728
25738
  const x = V0("FmButton"), P = V0("FmDialog");
25729
- return Q0(), y1(P, {
25739
+ return Q0(), m1(P, {
25730
25740
  modelValue: D.value,
25731
25741
  "onUpdate:modelValue": L[2] || (L[2] = (w) => D.value = w),
25732
25742
  overlay: ""
@@ -25953,50 +25963,50 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
25953
25963
  },
25954
25964
  setup(c) {
25955
25965
  const b = c, { t: D, locale: $ } = pr(), { currentReport: m, editingTile: T } = g0(ae());
25956
- let { timeRange: L, dateRange: x, selectedLocationIds: P, timezone: w } = g0(H1()), { globalFilters: k } = g0(F1()), { schemas: G } = g0(ln()), {
25957
- showMore: t0,
25966
+ let { timeRange: L, dateRange: x, selectedLocationIds: P, timezone: w } = g0(H1()), { globalFilters: X } = g0(F1()), { schemas: j } = g0(ln()), {
25967
+ showMore: a0,
25958
25968
  getGlobalFilter: K,
25959
25969
  setGlobalFilter: U,
25960
- setIncludeUnavailable: X,
25961
- startGlobalFilterSelectLoading: j,
25962
- finishGlobalFilterSelectLoading: n0,
25970
+ setIncludeUnavailable: Q,
25971
+ startGlobalFilterSelectLoading: Z,
25972
+ finishGlobalFilterSelectLoading: G,
25963
25973
  getGlobalFilterKey: V,
25964
25974
  isMenuOpen: i0,
25965
- getGlobalFilterLabel: l0
25975
+ getGlobalFilterLabel: t0
25966
25976
  } = F1();
25967
25977
  const b0 = z1(() => D("report.input.unknown"));
25968
- let r0;
25969
- const a0 = R0(!1), o0 = z1(() => {
25978
+ let n0;
25979
+ const o0 = R0(!1), s0 = z1(() => {
25970
25980
  var g;
25971
25981
  return b.globalFilterId ?? ((g = m.value) == null ? void 0 : g.id) ?? "";
25972
- }), s0 = R0([]);
25982
+ }), u0 = R0([]);
25973
25983
  function $0(g) {
25974
25984
  return g.filter((R) => R !== Q1);
25975
25985
  }
25976
25986
  function p0(g) {
25977
- const R = K(g.globalFilter, o0.value).selectedValues;
25987
+ const R = K(g.globalFilter, s0.value).selectedValues;
25978
25988
  return R != null && R.length ? R : g.selectedValues || [];
25979
25989
  }
25980
25990
  function d0(g) {
25981
- g.options = [], g.selectedValues = [], g.globalFilter.values = [], U(g.globalFilter, o0.value, { selectedValues: [] });
25991
+ g.options = [], g.selectedValues = [], g.globalFilter.values = [], U(g.globalFilter, s0.value, { selectedValues: [] });
25982
25992
  }
25983
25993
  function f0(g) {
25984
- const B = K(g.globalFilter, o0.value).selectedValues;
25985
- g.selectedValues = g.keepSelection || b.isContextFilterSynced ? B : g.options.map((I) => I.value), g.globalFilter.values = [...g.selectedValues], U(g.globalFilter, o0.value, {
25994
+ const B = K(g.globalFilter, s0.value).selectedValues;
25995
+ g.selectedValues = g.keepSelection || b.isContextFilterSynced ? B : g.options.map((I) => I.value), g.globalFilter.values = [...g.selectedValues], U(g.globalFilter, s0.value, {
25986
25996
  selectedValues: g.selectedValues
25987
25997
  });
25988
25998
  }
25989
25999
  x1(
25990
26000
  () => ({
25991
- globalFilterId: o0.value,
25992
- globalFilters: k.value
26001
+ globalFilterId: s0.value,
26002
+ globalFilters: X.value
25993
26003
  }),
25994
26004
  () => {
25995
- s0.value = (b.globalFilters ?? k.value).map(
26005
+ u0.value = (b.globalFilters ?? X.value).map(
25996
26006
  (g, R) => {
25997
- const B = K(g, o0.value), I = B.selectedValues.length ? [...B.selectedValues] : [...g.values ?? []];
26007
+ const B = K(g, s0.value), I = B.selectedValues.length ? [...B.selectedValues] : [...g.values ?? []];
25998
26008
  return {
25999
- id: `${V(g, o0.value)}|${R}`,
26009
+ id: `${V(g, s0.value)}|${R}`,
26000
26010
  globalFilter: g,
26001
26011
  search: B.search,
26002
26012
  options: B.options,
@@ -26026,7 +26036,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26026
26036
  ), x1(
26027
26037
  [() => T.value],
26028
26038
  async () => {
26029
- s0.value.forEach((g) => {
26039
+ u0.value.forEach((g) => {
26030
26040
  g.options = [];
26031
26041
  }), await u();
26032
26042
  },
@@ -26045,7 +26055,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26045
26055
  }).find((N) => String(N.value) === String(R))) == null ? void 0 : B.label) ?? String(R) : String(R);
26046
26056
  }
26047
26057
  function t() {
26048
- s0.value.forEach((g) => {
26058
+ u0.value.forEach((g) => {
26049
26059
  g.options.length && (g.options = g.options.map((R) => ({
26050
26060
  ...R,
26051
26061
  label: c0(g, R.value)
@@ -26054,7 +26064,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26054
26064
  }
26055
26065
  function i(g) {
26056
26066
  var B;
26057
- const R = (B = G.value.find((I) => I.name === g.schemaName)) == null ? void 0 : B.fields.find((I) => I.name === g.name);
26067
+ const R = (B = j.value.find((I) => I.name === g.schemaName)) == null ? void 0 : B.fields.find((I) => I.name === g.name);
26058
26068
  return R == null ? void 0 : R.type;
26059
26069
  }
26060
26070
  function p(g) {
@@ -26065,23 +26075,23 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26065
26075
  var L0, m0;
26066
26076
  const _0 = (L0 = D0 == null ? void 0 : D0.widget) == null ? void 0 : L0.config;
26067
26077
  if (!_0 || (m0 = g.tileIds) != null && m0.length && !g.tileIds.includes(D0.id)) return !1;
26068
- const Q = (_0.dimensions ?? []).some(
26078
+ const k = (_0.dimensions ?? []).some(
26069
26079
  (T0) => T0.schemaName === I && T0.name === B
26070
26080
  ), z0 = (_0.joinDatasources ?? []).some(
26071
26081
  (T0) => (T0.dimensions ?? []).some((E0) => E0.schemaName === I && E0.name === B)
26072
26082
  ), O0 = (_0.schemaNames ?? []).includes(I);
26073
- return Q || z0 || O0;
26083
+ return k || z0 || O0;
26074
26084
  });
26075
26085
  if (!N.length) return [];
26076
26086
  const v = (D0, _0) => {
26077
- const Q = /* @__PURE__ */ new Map(), z0 = (O0) => {
26078
- const L0 = `${O0.schemaName}:${O0.name}:${O0.operator}:${O0.option ?? ""}:${O0.dataFormula ?? ""}`, m0 = Q.get(L0);
26079
- m0 ? [e1.Like, e1.NotLike].includes(O0.operator) ? m0.values = Array.from(/* @__PURE__ */ new Set([...m0.values ?? [], ...O0.values ?? []])) : Q.set(L0, { ...O0 }) : Q.set(L0, { ...O0 });
26087
+ const k = /* @__PURE__ */ new Map(), z0 = (O0) => {
26088
+ const L0 = `${O0.schemaName}:${O0.name}:${O0.operator}:${O0.option ?? ""}:${O0.dataFormula ?? ""}`, m0 = k.get(L0);
26089
+ m0 ? [e1.Like, e1.NotLike].includes(O0.operator) ? m0.values = Array.from(/* @__PURE__ */ new Set([...m0.values ?? [], ...O0.values ?? []])) : k.set(L0, { ...O0 }) : k.set(L0, { ...O0 });
26080
26090
  };
26081
- return D0.forEach(z0), _0.forEach(z0), Array.from(Q.values());
26091
+ return D0.forEach(z0), _0.forEach(z0), Array.from(k.values());
26082
26092
  }, H = (D0) => {
26083
- var Q;
26084
- const _0 = (Q = D0.dimensions) == null ? void 0 : Q.find(
26093
+ var k;
26094
+ const _0 = (k = D0.dimensions) == null ? void 0 : k.find(
26085
26095
  (z0) => z0.schemaName === I && z0.name === B
26086
26096
  );
26087
26097
  return {
@@ -26095,15 +26105,15 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26095
26105
  };
26096
26106
  return N.reduce((D0, _0) => {
26097
26107
  var E0, j0;
26098
- const Q = (E0 = _0 == null ? void 0 : _0.widget) == null ? void 0 : E0.config;
26099
- if (!Q) return D0;
26100
- const z0 = H(Q), O0 = (Q.dimensions ?? []).some((I0) => I0.schemaName === I) || (Q.schemaNames ?? []).includes(I), L0 = v(
26101
- Q.filters ?? [],
26108
+ const k = (E0 = _0 == null ? void 0 : _0.widget) == null ? void 0 : E0.config;
26109
+ if (!k) return D0;
26110
+ const z0 = H(k), O0 = (k.dimensions ?? []).some((I0) => I0.schemaName === I) || (k.schemaNames ?? []).includes(I), L0 = v(
26111
+ k.filters ?? [],
26102
26112
  (g.filters ?? []).filter((I0) => {
26103
26113
  var K0;
26104
- return (K0 = Q.schemaNames) == null ? void 0 : K0.includes(I0.schemaName);
26114
+ return (K0 = k.schemaNames) == null ? void 0 : K0.includes(I0.schemaName);
26105
26115
  })
26106
- ), m0 = (j0 = Q.joinDatasources) == null ? void 0 : j0.find(
26116
+ ), m0 = (j0 = k.joinDatasources) == null ? void 0 : j0.find(
26107
26117
  (I0) => (I0.schemaNames ?? []).includes(I) || (I0.dimensions ?? []).some((K0) => K0.schemaName === I)
26108
26118
  ), T0 = v(
26109
26119
  (m0 == null ? void 0 : m0.filters) ?? [],
@@ -26116,8 +26126,8 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26116
26126
  type: _t.Table,
26117
26127
  title: "Global Filter",
26118
26128
  config: {
26119
- schemaNames: Q.schemaNames,
26120
- schemas: Q.schemas,
26129
+ schemaNames: k.schemaNames,
26130
+ schemas: k.schemas,
26121
26131
  dimensions: O0 ? [z0] : [],
26122
26132
  filters: L0,
26123
26133
  sorts: O0 ? [{ name: B, schemaName: I, type: bt.Asc, aggregation: null, dimensionOption: null }] : [],
@@ -26164,7 +26174,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26164
26174
  A(g) ? g.selectedValues = [Q1] : g.selectedValues = g.options.map((R) => R.value);
26165
26175
  }
26166
26176
  const F = z1(
26167
- () => s0.value.map((g) => {
26177
+ () => u0.value.map((g) => {
26168
26178
  const R = g.options, B = g.search.toLowerCase() ?? "";
26169
26179
  return R.filter(
26170
26180
  (N) => N.label.toLowerCase().includes(B.toLowerCase())
@@ -26172,7 +26182,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26172
26182
  })
26173
26183
  );
26174
26184
  function W(g) {
26175
- g.visibleCount += 50, t0(g.globalFilter, o0.value, 50);
26185
+ g.visibleCount += 50, a0(g.globalFilter, s0.value, 50);
26176
26186
  }
26177
26187
  function O(g) {
26178
26188
  var R, B;
@@ -26214,13 +26224,13 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26214
26224
  g.selectedValues = R.length ? [...R] : [...g.selectedValues || []];
26215
26225
  } else
26216
26226
  g.options = g.options.filter((R) => R.available !== !1), g.selectedValues = g.options.map((R) => R.value);
26217
- U(g.globalFilter, o0.value, {
26227
+ U(g.globalFilter, s0.value, {
26218
26228
  selectedValues: g.selectedValues
26219
26229
  });
26220
26230
  }
26221
26231
  async function s(g, R) {
26222
26232
  var B;
26223
- if (a0.value) {
26233
+ if (o0.value) {
26224
26234
  if (g.options = [], !((B = g.globalFilter.tileIds) != null && B.length)) {
26225
26235
  d0(g);
26226
26236
  return;
@@ -26240,7 +26250,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26240
26250
  }
26241
26251
  const N = [];
26242
26252
  for (const _0 of I) {
26243
- const Q = await tl({
26253
+ const k = await tl({
26244
26254
  widget: _0,
26245
26255
  signal: R,
26246
26256
  scopedLocationIds: b.locationIds,
@@ -26248,7 +26258,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26248
26258
  scopedDateRange: b.dateRange,
26249
26259
  scopedGlobalFilters: b.globalFilters
26250
26260
  });
26251
- (Q == null ? void 0 : Q.type) === _t.Table && N.push(...Q.rows.map((z0) => {
26261
+ (k == null ? void 0 : k.type) === _t.Table && N.push(...k.rows.map((z0) => {
26252
26262
  var O0;
26253
26263
  return ((O0 = z0.cells) == null ? void 0 : O0[0]) ?? " ";
26254
26264
  }));
@@ -26285,18 +26295,18 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26285
26295
  }
26286
26296
  }
26287
26297
  async function u() {
26288
- if (!o0.value || !s0.value.length) return;
26289
- r0 && r0.abort();
26298
+ if (!s0.value || !u0.value.length) return;
26299
+ n0 && n0.abort();
26290
26300
  const g = new AbortController();
26291
- r0 = g, j();
26301
+ n0 = g, Z();
26292
26302
  try {
26293
- a0.value = !0, await Promise.all(
26294
- s0.value.map(
26303
+ o0.value = !0, await Promise.all(
26304
+ u0.value.map(
26295
26305
  (R) => s(R, g.signal)
26296
26306
  )
26297
26307
  );
26298
26308
  } finally {
26299
- n0(), r0 === g && (a0.value = !1);
26309
+ G(), n0 === g && (o0.value = !1);
26300
26310
  }
26301
26311
  }
26302
26312
  function l(g, R) {
@@ -26308,7 +26318,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26308
26318
  g.selectedValues = N.length > 0 ? N : [Q1];
26309
26319
  } else
26310
26320
  g.selectedValues = [...$0(g.selectedValues || []), R];
26311
- U(g.globalFilter, o0.value, {
26321
+ U(g.globalFilter, s0.value, {
26312
26322
  selectedValues: g.selectedValues
26313
26323
  });
26314
26324
  }
@@ -26319,8 +26329,8 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26319
26329
  const I = v0(R.startDate).tz(w.value).startOf("day").utc().toISOString(), N = v0(R.endDate).tz(w.value).endOf("day").utc().toISOString();
26320
26330
  g.values = [I, N];
26321
26331
  }
26322
- const B = s0.value.find((I) => I.globalFilter === g);
26323
- B && (B.keepSelection = R !== null, U(B.globalFilter, o0.value, {
26332
+ const B = u0.value.find((I) => I.globalFilter === g);
26333
+ B && (B.keepSelection = R !== null, U(B.globalFilter, s0.value, {
26324
26334
  keepSelection: B.keepSelection
26325
26335
  }));
26326
26336
  }
@@ -26333,11 +26343,11 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26333
26343
  }
26334
26344
  function z(g) {
26335
26345
  var H, J, M0, D0, _0;
26336
- const R = l0(g.globalFilter), B = g.options.length > 0 ? "(0 selected)" : "";
26346
+ const R = t0(g.globalFilter), B = g.options.length > 0 ? "(0 selected)" : "";
26337
26347
  if (g.type === c1.Timestamp && !O(g.globalFilter)) {
26338
- const Q = ((H = g.globalFilter.values) == null ? void 0 : H.length) === 2;
26348
+ const k = ((H = g.globalFilter.values) == null ? void 0 : H.length) === 2;
26339
26349
  if (g.globalFilter.option === w0.DateTime)
26340
- return { preview: Q ? `${R} is between ${$n({
26350
+ return { preview: k ? `${R} is between ${$n({
26341
26351
  startDate: ((J = g.globalFilter.values) == null ? void 0 : J[0]) || null,
26342
26352
  endDate: ((M0 = g.globalFilter.values) == null ? void 0 : M0[1]) || null,
26343
26353
  locale: $.value,
@@ -26345,7 +26355,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26345
26355
  })}` : R, suffix: "" };
26346
26356
  if (g.globalFilter.option === w0.TimeOfDay) {
26347
26357
  const z0 = (D0 = g.globalFilter.values) != null && D0[0] ? v0(g.globalFilter.values[0]).tz(w.value) : null, O0 = (_0 = g.globalFilter.values) != null && _0[1] ? v0(g.globalFilter.values[1]).tz(w.value) : null, L0 = (T0) => T0 && T0.isValid() ? { hour: T0.hour(), minute: T0.minute() } : null;
26348
- return { preview: Q ? `${R} is between ${sr({
26358
+ return { preview: k ? `${R} is between ${sr({
26349
26359
  startTime: L0(z0),
26350
26360
  endTime: L0(O0),
26351
26361
  locale: $.value
@@ -26362,29 +26372,29 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26362
26372
  } : { preview: R, suffix: B };
26363
26373
  }
26364
26374
  }
26365
- const N = $0(g.selectedValues || []).map((Q) => Q === !0 ? D("report.common.yes") || "Yes" : Q === !1 ? D("report.common.no") || "No" : String(Q).trim() === "" ? b0.value : String(Q)), v = N.map((Q) => Q.length > 20 ? `${Q.slice(0, 20)}…` : Q).join(", ");
26375
+ const N = $0(g.selectedValues || []).map((k) => k === !0 ? D("report.common.yes") || "Yes" : k === !1 ? D("report.common.no") || "No" : String(k).trim() === "" ? b0.value : String(k)), v = N.map((k) => k.length > 20 ? `${k.slice(0, 20)}…` : k).join(", ");
26366
26376
  return N.length ? {
26367
26377
  preview: `${R}: ${v}`,
26368
26378
  suffix: `(${N.length} selected)`
26369
26379
  } : { preview: R, suffix: B };
26370
26380
  }
26371
26381
  function f(g) {
26372
- g.globalFilter.values = [...g.selectedValues || []], U(g.globalFilter, o0.value, {
26382
+ g.globalFilter.values = [...g.selectedValues || []], U(g.globalFilter, s0.value, {
26373
26383
  selectedValues: g.selectedValues
26374
26384
  }), document.body.click();
26375
26385
  }
26376
26386
  function y(g) {
26377
- g.selectedValues = [...g.globalFilter.values || []], U(g.globalFilter, o0.value, {
26387
+ g.selectedValues = [...g.globalFilter.values || []], U(g.globalFilter, s0.value, {
26378
26388
  selectedValues: g.selectedValues
26379
26389
  }), document.body.click();
26380
26390
  }
26381
26391
  function q(g) {
26382
- g.showAdvanced = !g.showAdvanced, U(g.globalFilter, o0.value, {
26392
+ g.showAdvanced = !g.showAdvanced, U(g.globalFilter, s0.value, {
26383
26393
  showAdvanced: g.showAdvanced
26384
26394
  });
26385
26395
  }
26386
26396
  function h(g) {
26387
- g.keepSelection = !g.keepSelection, X(g.keepSelection), U(g.globalFilter, o0.value, {
26397
+ g.keepSelection = !g.keepSelection, Q(g.keepSelection), U(g.globalFilter, s0.value, {
26388
26398
  keepSelection: g.keepSelection
26389
26399
  }), o(g);
26390
26400
  }
@@ -26399,58 +26409,58 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26399
26409
  const J = v0().tz(w.value).set("hour", Number((I = R.start) == null ? void 0 : I.hour)).set("minute", Number((N = R.start) == null ? void 0 : N.minute)).toISOString(), M0 = v0().tz(w.value).set("hour", Number((v = R.end) == null ? void 0 : v.hour)).set("minute", Number((H = R.end) == null ? void 0 : H.minute)).toISOString();
26400
26410
  g.values = [J, M0];
26401
26411
  }
26402
- const B = s0.value.find((J) => J.globalFilter === g);
26403
- B && (B.keepSelection = R !== null, U(B.globalFilter, o0.value, {
26412
+ const B = u0.value.find((J) => J.globalFilter === g);
26413
+ B && (B.keepSelection = R !== null, U(B.globalFilter, s0.value, {
26404
26414
  keepSelection: B.keepSelection
26405
26415
  }));
26406
26416
  }
26407
26417
  return (g, R) => {
26408
26418
  const B = V0("FmCircularProgress"), I = V0("FmTextField"), N = V0("FmMenuItem"), v = V0("FmTooltip"), H = V0("FmIcon"), J = V0("FmMenuDivider"), M0 = V0("FmSwitch"), D0 = V0("FmButton"), _0 = V0("FmMenu");
26409
26419
  return Q0(), l1("div", bl, [
26410
- (Q0(!0), l1(V1, null, ot(s0.value, (Q, z0) => {
26420
+ (Q0(!0), l1(V1, null, ot(u0.value, (k, z0) => {
26411
26421
  var O0, L0, m0, T0, E0, j0;
26412
26422
  return Q0(), l1("div", {
26413
- key: Q.id
26423
+ key: k.id
26414
26424
  }, [
26415
- Q.globalFilter.option === W0(w0).DateTime && !O(Q.globalFilter) ? (Q0(), y1(fn, {
26425
+ k.globalFilter.option === W0(w0).DateTime && !O(k.globalFilter) ? (Q0(), m1(fn, {
26416
26426
  key: 0,
26417
26427
  "model-value": {
26418
- startDate: (O0 = Q.globalFilter.values) == null ? void 0 : O0[0],
26419
- endDate: (L0 = Q.globalFilter.values) == null ? void 0 : L0[1]
26428
+ startDate: (O0 = k.globalFilter.values) == null ? void 0 : O0[0],
26429
+ endDate: (L0 = k.globalFilter.values) == null ? void 0 : L0[1]
26420
26430
  },
26421
26431
  class: "w-full",
26422
- label: z(Q).preview,
26423
- removable: ((m0 = Q.globalFilter.values) == null ? void 0 : m0.length) === 2,
26424
- onUpdate: (I0) => M(Q.globalFilter, I0),
26425
- onChipClosed: () => M(Q.globalFilter, null)
26426
- }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : Q.globalFilter.option === W0(w0).TimeOfDay && !O(Q.globalFilter) ? (Q0(), y1(cl, {
26432
+ label: z(k).preview,
26433
+ removable: ((m0 = k.globalFilter.values) == null ? void 0 : m0.length) === 2,
26434
+ onUpdate: (I0) => M(k.globalFilter, I0),
26435
+ onChipClosed: () => M(k.globalFilter, null)
26436
+ }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : k.globalFilter.option === W0(w0).TimeOfDay && !O(k.globalFilter) ? (Q0(), m1(cl, {
26427
26437
  key: 1,
26428
26438
  "model-value": {
26429
- start: (T0 = Q.globalFilter.values) == null ? void 0 : T0[0],
26430
- end: (E0 = Q.globalFilter.values) == null ? void 0 : E0[1]
26439
+ start: (T0 = k.globalFilter.values) == null ? void 0 : T0[0],
26440
+ end: (E0 = k.globalFilter.values) == null ? void 0 : E0[1]
26431
26441
  },
26432
26442
  class: "w-full",
26433
- label: z(Q).preview,
26434
- removable: ((j0 = Q.globalFilter.values) == null ? void 0 : j0.length) === 2,
26435
- onUpdate: (I0) => C(Q.globalFilter, I0),
26436
- onChipClosed: () => C(Q.globalFilter, null)
26437
- }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (Q0(), y1(_0, {
26443
+ label: z(k).preview,
26444
+ removable: ((j0 = k.globalFilter.values) == null ? void 0 : j0.length) === 2,
26445
+ onUpdate: (I0) => C(k.globalFilter, I0),
26446
+ onChipClosed: () => C(k.globalFilter, null)
26447
+ }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (Q0(), m1(_0, {
26438
26448
  key: 2,
26439
26449
  "close-on-click": !1,
26440
26450
  shift: !0,
26441
- open: W0(i0)(Q.id)
26451
+ open: W0(i0)(k.id)
26442
26452
  }, {
26443
26453
  "menu-button": n1(() => [
26444
26454
  H0("div", _l, [
26445
26455
  x0(ur, {
26446
26456
  "left-icon": "filter_alt",
26447
26457
  "trailing-icon": "expand_more",
26448
- loading: a0.value,
26449
- label: z(Q).preview,
26458
+ loading: o0.value,
26459
+ label: z(k).preview,
26450
26460
  class: "w-full"
26451
26461
  }, {
26452
26462
  default: n1(() => [
26453
- We(p1(z(Q).suffix), 1)
26463
+ We(p1(z(k).suffix), 1)
26454
26464
  ]),
26455
26465
  _: 2
26456
26466
  }, 1032, ["loading", "label"])
@@ -26461,15 +26471,15 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26461
26471
  class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
26462
26472
  style: Dn({ maxHeight: `${I0}px`, width: K0 })
26463
26473
  }, [
26464
- a0.value ? (Q0(), l1("div", dl, [
26474
+ o0.value ? (Q0(), l1("div", dl, [
26465
26475
  x0(B)
26466
- ])) : Q.options.length > 0 && !a0.value ? (Q0(), l1(V1, { key: 1 }, [
26476
+ ])) : k.options.length > 0 && !o0.value ? (Q0(), l1(V1, { key: 1 }, [
26467
26477
  H0("div", zl, [
26468
26478
  x0(I, {
26469
- modelValue: Q.search,
26479
+ modelValue: k.search,
26470
26480
  "onUpdate:modelValue": [
26471
- (X0) => Q.search = X0,
26472
- (X0) => W0(U)(Q.globalFilter, o0.value, { search: X0 })
26481
+ (X0) => k.search = X0,
26482
+ (X0) => W0(U)(k.globalFilter, s0.value, { search: X0 })
26473
26483
  ],
26474
26484
  type: "text",
26475
26485
  "prepend-icon": "search",
@@ -26480,16 +26490,16 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26480
26490
  H0("div", Ol, [
26481
26491
  H0("div", Al, [
26482
26492
  x0(N, {
26483
- label: d(Q),
26493
+ label: d(k),
26484
26494
  "has-checkbox": !0,
26485
- "model-value": A(Q),
26495
+ "model-value": A(k),
26486
26496
  indeterminate: !0,
26487
- onClick: (X0) => S(Q)
26497
+ onClick: (X0) => S(k)
26488
26498
  }, null, 8, ["label", "model-value", "onClick"]),
26489
26499
  (Q0(!0), l1(V1, null, ot(F.value[z0], (X0) => (Q0(), l1(V1, {
26490
26500
  key: X0.value
26491
26501
  }, [
26492
- X0.label && X0.label.length > 110 ? (Q0(), y1(v, {
26502
+ X0.label && X0.label.length > 110 ? (Q0(), m1(v, {
26493
26503
  key: 0,
26494
26504
  placement: "right",
26495
26505
  "hide-arrow": !0,
@@ -26503,54 +26513,54 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26503
26513
  x0(N, {
26504
26514
  label: E(X0.label, 110),
26505
26515
  "has-checkbox": !0,
26506
- "model-value": Q.selectedValues.includes(X0.value),
26516
+ "model-value": k.selectedValues.includes(X0.value),
26507
26517
  class: Ht([
26508
26518
  "flex-1 text-left",
26509
26519
  { "bg-gray-200": X0.available === !1 }
26510
26520
  ]),
26511
- onClick: () => l(Q, X0.value)
26521
+ onClick: () => l(k, X0.value)
26512
26522
  }, null, 8, ["label", "model-value", "class", "onClick"])
26513
26523
  ])
26514
26524
  ]),
26515
26525
  _: 2
26516
- }, 1024)) : (Q0(), y1(N, {
26526
+ }, 1024)) : (Q0(), m1(N, {
26517
26527
  key: 1,
26518
26528
  label: X0.label,
26519
26529
  "has-checkbox": !0,
26520
- "model-value": Q.selectedValues.includes(X0.value),
26530
+ "model-value": k.selectedValues.includes(X0.value),
26521
26531
  class: Ht(["flex-1 text-left", { "bg-gray-100": X0.available === !1 }]),
26522
- onClick: () => l(Q, X0.value)
26532
+ onClick: () => l(k, X0.value)
26523
26533
  }, null, 8, ["label", "model-value", "class", "onClick"]))
26524
26534
  ], 64))), 128)),
26525
- F.value[z0].length < Q.options.length && !Q.search ? (Q0(), y1(N, {
26535
+ F.value[z0].length < k.options.length && !k.search ? (Q0(), m1(N, {
26526
26536
  key: 0,
26527
26537
  class: "fm-typo-en-body-md-400 -ml-2",
26528
26538
  label: W0(D)("report.section.filter.loadMore"),
26529
- onClick: Ge((X0) => W(Q), ["stop"]),
26539
+ onClick: Ge((X0) => W(k), ["stop"]),
26530
26540
  icon: "autorenew"
26531
26541
  }, null, 8, ["label", "onClick"])) : he("", !0)
26532
26542
  ])
26533
26543
  ]),
26534
26544
  H0("div", {
26535
26545
  class: "px-12 py-2 flex items-center gap-2 cursor-pointer hover:bg-fm-color-neutral-50 transition-colors",
26536
- onClick: (X0) => q(Q)
26546
+ onClick: (X0) => q(k)
26537
26547
  }, [
26538
26548
  x0(H, {
26539
- name: Q.showAdvanced ? "keyboard_arrow_up" : "keyboard_arrow_down",
26549
+ name: k.showAdvanced ? "keyboard_arrow_up" : "keyboard_arrow_down",
26540
26550
  size: "md",
26541
26551
  class: ""
26542
26552
  }, null, 8, ["name"]),
26543
26553
  H0("span", $l, p1(W0(D)("report.section.filter.advanced")), 1)
26544
26554
  ], 8, fl),
26545
26555
  x0(J),
26546
- Q.showAdvanced ? (Q0(), l1("div", yl, [
26556
+ k.showAdvanced ? (Q0(), l1("div", yl, [
26547
26557
  H0("div", ml, [
26548
26558
  H0("div", ql, [
26549
26559
  x0(M0, {
26550
- "model-value": Q.keepSelection,
26560
+ "model-value": k.keepSelection,
26551
26561
  label: W0(D)("report.section.filter.keepSelection"),
26552
26562
  labelPlacement: "right",
26553
- "onUpdate:modelValue": () => h(Q)
26563
+ "onUpdate:modelValue": () => h(k)
26554
26564
  }, null, 8, ["model-value", "label", "onUpdate:modelValue"]),
26555
26565
  x0(v, {
26556
26566
  placement: "top",
@@ -26575,18 +26585,18 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
26575
26585
  x0(D0, {
26576
26586
  variant: "tertiary",
26577
26587
  label: W0(D)("report.common.cancel"),
26578
- onClick: Ge((X0) => y(Q), ["stop"])
26588
+ onClick: Ge((X0) => y(k), ["stop"])
26579
26589
  }, null, 8, ["label", "onClick"]),
26580
26590
  x0(D0, {
26581
26591
  color: "primary",
26582
- onClick: Ge((X0) => f(Q), ["stop"]),
26592
+ onClick: Ge((X0) => f(k), ["stop"]),
26583
26593
  label: W0(D)("report.common.apply")
26584
26594
  }, null, 8, ["onClick", "label"])
26585
26595
  ])
26586
- ], 64)) : a0.value ? he("", !0) : (Q0(), y1(En, {
26596
+ ], 64)) : o0.value ? he("", !0) : (Q0(), m1(En, {
26587
26597
  key: 2,
26588
- title: r(Q) ? W0(D)("report.messages.noWidgetsApplied") : void 0,
26589
- "sub-title": r(Q) ? W0(D)("report.messages.assignWidgetsToUseThisFilter") : void 0
26598
+ title: r(k) ? W0(D)("report.messages.noWidgetsApplied") : void 0,
26599
+ "sub-title": r(k) ? W0(D)("report.messages.assignWidgetsToUseThisFilter") : void 0
26590
26600
  }, null, 8, ["title", "sub-title"]))
26591
26601
  ], 4)
26592
26602
  ]),