react-semaphor 0.1.545 → 0.1.546

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 (141) hide show
  1. package/dist/analytics-protocol/index.js +405 -442
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +100 -76
  4. package/dist/brand-studio/index.js +4 -4
  5. package/dist/briefings/index.js +6 -6
  6. package/dist/chunks/{add-to-dashboard-BuAqfA2Y.js → add-to-dashboard-BQRAAnc3.js} +55 -33
  7. package/dist/chunks/{analytics-base-schemas-BFAoRlkU.js → analytics-base-schemas-BKs3flFS.js} +2 -2
  8. package/dist/chunks/{assistant-chat-D7sWTypJ.js → assistant-chat-BPXhulAx.js} +2826 -2595
  9. package/dist/chunks/{bookmark-state-CXw7lZ50.js → bookmark-state-C4vetoa0.js} +7 -8
  10. package/dist/chunks/column-catalog-BYnochWQ.js +3363 -0
  11. package/dist/chunks/comparison-window-caption-C2xF-eWw.js +1433 -0
  12. package/dist/chunks/{context-ClREvqCZ.js → context-BerEBuFR.js} +11 -6
  13. package/dist/chunks/custom-visual-inputs-CkJW9pBS.js +295 -0
  14. package/dist/chunks/{dashboard-B1tMju0u.js → dashboard-C3CoKbGY.js} +1 -1
  15. package/dist/chunks/dashboard-briefing-launcher-Be4h-7My.js +3734 -0
  16. package/dist/chunks/dashboard-controls-bxPrlSyp.js +2307 -0
  17. package/dist/chunks/{dashboard-json-CoYRPqxx.js → dashboard-json-BrjxIiRt.js} +5 -5
  18. package/dist/chunks/{document-dashboard-inputs-BesAHZvB.js → document-dashboard-inputs-CRVHpIHp.js} +872 -974
  19. package/dist/chunks/{edit-dashboard-visual-JPtNfJRb.js → edit-dashboard-visual-DYYYDjY6.js} +2361 -2447
  20. package/dist/chunks/{filter-value-text-ff7osJr7.js → filter-value-text-Ddf55Ku1.js} +9 -9
  21. package/dist/chunks/global-date-filter-utils-9d6m9-FE.js +11859 -0
  22. package/dist/chunks/index-CtoK1Lgu.js +586 -0
  23. package/dist/chunks/{index-DRWiuqyd.js → index-DkQkMKa1.js} +80 -79
  24. package/dist/chunks/list-filter-DsaTbM3J.js +15 -0
  25. package/dist/chunks/matrix-analytical-definition-B9vW-osb.js +717 -0
  26. package/dist/chunks/{matrix-card-DjwWcCo8.js → matrix-card-LiMEipvq.js} +3 -3
  27. package/dist/chunks/{matrix-formatter-DnCyRXJE.js → matrix-formatter-DWEeC0_c.js} +44 -44
  28. package/dist/chunks/{matrix-member-presentation-CQGdVks6.js → matrix-member-presentation-DqzG-UhQ.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-8OIO4gob.js → matrix-operation-contract-D6vYkZK4.js} +72 -72
  30. package/dist/chunks/{metric-comparison-DEwi9uc2.js → metric-comparison-zpGw4lD6.js} +2 -2
  31. package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +119 -0
  32. package/dist/chunks/{pivot-header-presentation-DHcx1XGQ.js → pivot-header-presentation-CQnIDtUv.js} +1 -1
  33. package/dist/chunks/{pivot-result-identity-DJhXXcns.js → pivot-result-identity-C-Q1j1Wb.js} +1 -1
  34. package/dist/chunks/{pivot-result-lifecycle-DM4CyGKs.js → pivot-result-lifecycle-pwq3b7LC.js} +571 -380
  35. package/dist/chunks/{raw-temporal-contract-C51YG48G.js → raw-temporal-contract-WuXA8jBP.js} +1 -1
  36. package/dist/chunks/{raw-temporal-presentation-C3mUgnEx.js → raw-temporal-presentation-CBzrDOjM.js} +8 -8
  37. package/dist/chunks/{report-preferences-dialog-DUtuUL_5.js → report-preferences-dialog-4QEZWe5U.js} +111 -112
  38. package/dist/chunks/{report-runtime-context-Dq8XyODK.js → report-runtime-context-hWiTCzFV.js} +2 -2
  39. package/dist/chunks/resolve-dashboard-input-context-UpK_LBpL.js +5677 -0
  40. package/dist/chunks/{saved-dashboard-context-LrF_kW0l.js → saved-dashboard-context-D_I3Lxk0.js} +34 -34
  41. package/dist/chunks/{selection-reducer-Dj_8xD69.js → selection-reducer-CJzkTZio.js} +15 -15
  42. package/dist/chunks/{semaphor-ready-indicator-BxF96Yhv.js → semaphor-ready-indicator-4zpRHE-X.js} +45823 -47304
  43. package/dist/chunks/{shelf-drop-preview-context-CNaM_Gmh.js → shelf-drop-preview-context-Cfw7TRAx.js} +84 -84
  44. package/dist/chunks/{source-entity-resolution-BYn9giz3.js → source-entity-resolution-BIGRvtbG.js} +13 -13
  45. package/dist/chunks/{switch-uDtPgQlQ.js → switch-CEBOR4n7.js} +3 -3
  46. package/dist/chunks/{table-export-sheet-YzMioA7Y.js → table-export-sheet-4X9mAG3V.js} +1 -1
  47. package/dist/chunks/table-settings-CunhoDUi.js +605 -0
  48. package/dist/chunks/{temporal-bucket-D7NBrrtL.js → temporal-bucket-CQOSbv9-.js} +26 -26
  49. package/dist/chunks/{token-types-DBbZVQsm.js → token-types-BMqRmT-C.js} +1 -1
  50. package/dist/chunks/{use-create-flow-overlay-state-CjB7ig1o.js → use-create-flow-overlay-state-DZBZiiD-.js} +101 -101
  51. package/dist/chunks/{validators-DMHTpf7a.js → validators-C-aOQlTB.js} +713 -658
  52. package/dist/chunks/{relative-date-label-Bk2j94pA.js → zoned-wall-clock-MulfA26h.js} +64 -21
  53. package/dist/dashboard/index.js +2 -2
  54. package/dist/dashboard-authoring/index.js +1802 -1149
  55. package/dist/data-app-sdk/index.js +6 -6
  56. package/dist/data-app-sdk-adapters/index.js +3 -3
  57. package/dist/data-app-sdk-validation/index.js +14 -14
  58. package/dist/format-utils/index.js +133 -133
  59. package/dist/index.js +192 -186
  60. package/dist/layouts/index.js +5 -242
  61. package/dist/report-runtime-context/index.js +2 -2
  62. package/dist/shared/index.js +4 -5
  63. package/dist/style.css +1 -1
  64. package/dist/surfboard/index.js +2 -2
  65. package/dist/types/components/index.d.ts +2 -0
  66. package/dist/types/components/surfboard/arrange-layout-button.d.ts +8 -0
  67. package/dist/types/components/surfboard/screen-size-preview-button.d.ts +7 -0
  68. package/dist/types/index.js +6 -6
  69. package/dist/types/lib/charts/table-chart-types.d.ts +4 -0
  70. package/dist/types/lib/charts/types.d.ts +2 -2
  71. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +6 -0
  72. package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +2 -0
  73. package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +15 -0
  74. package/dist/types/lib/matrix-table/matrix-editor.d.ts +52 -0
  75. package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +69 -0
  76. package/dist/types/lib/stores/dashboard-store.d.ts +125 -6
  77. package/dist/types/lib/types/common-types.d.ts +8 -0
  78. package/dist/types/lib/types/explorer-types.d.ts +10 -0
  79. package/dist/types/lib/types/semantic-types.d.ts +84 -0
  80. package/dist/types/lib/utils/build-saved-editor-card.d.ts +20 -0
  81. package/dist/types/lib/utils/card-type-change.d.ts +16 -0
  82. package/dist/types/lib/utils/field-availability-context.d.ts +25 -0
  83. package/dist/types/lib/utils/field-placement.d.ts +96 -0
  84. package/dist/types/lib/utils/field-state-calculator.d.ts +161 -0
  85. package/dist/types/lib/utils/qualified-entity-name.d.ts +2 -0
  86. package/dist/types/shared/analytics-protocol/field-provenance.d.ts +89 -0
  87. package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
  88. package/dist/types/shared/analytics-protocol/query-policies.d.ts +52 -0
  89. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +1 -1
  90. package/dist/types/shared/analytics-protocol/time-window.d.ts +40 -1
  91. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +4 -1
  92. package/dist/types/shared/assistant-protocol/answer-text.d.ts +20 -0
  93. package/dist/types/shared/assistant-protocol/context.d.ts +21 -21
  94. package/dist/types/shared/assistant-protocol/index.d.ts +1 -0
  95. package/dist/types/shared/assistant-protocol/limits.d.ts +6 -1
  96. package/dist/types/shared/assistant-protocol/parts.d.ts +43 -3
  97. package/dist/types/shared/assistant-protocol/request.d.ts +14 -2
  98. package/dist/types/shared/dashboard-authoring/calculated-field-identity.d.ts +3 -0
  99. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +487 -0
  100. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +34 -0
  101. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +7886 -0
  102. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +43 -0
  103. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +54 -0
  104. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +89 -0
  105. package/dist/types/shared/dashboard-authoring/column-catalog.d.ts +32 -0
  106. package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -55
  107. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +24 -14
  108. package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +9 -1
  109. package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +26 -0
  110. package/dist/types/shared/dashboard-authoring/filter-applicability.d.ts +75 -0
  111. package/dist/types/shared/dashboard-authoring/index.d.ts +18 -2
  112. package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +10 -37
  113. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +189 -0
  114. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +94 -0
  115. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +78 -0
  116. package/dist/types/shared/dashboard-authoring/validators.d.ts +1 -2
  117. package/dist/types/shared/layouts/engine/grid.d.ts +25 -0
  118. package/dist/types/shared/layouts/engine/index.d.ts +4 -0
  119. package/dist/types/shared/layouts/engine/sheet-layout.d.ts +7 -0
  120. package/dist/types/shared/layouts/engine/types.d.ts +125 -0
  121. package/dist/types/shared/layouts/index.d.ts +1 -2
  122. package/package.json +2 -2
  123. package/dist/chunks/apply-dashboard-operations-CZEMsx8E.js +0 -2080
  124. package/dist/chunks/calendar-day-equality-dvoQp1xW.js +0 -410
  125. package/dist/chunks/comparison-window-caption-D4E6IHPD.js +0 -1624
  126. package/dist/chunks/custom-visual-inputs-DLCD9Y5V.js +0 -329
  127. package/dist/chunks/dashboard-briefing-launcher-CePgIu0Z.js +0 -3720
  128. package/dist/chunks/dashboard-controls-Cq05n3e0.js +0 -2315
  129. package/dist/chunks/dashboard-filter-value-compatibility-CwQ_iSNb.js +0 -108
  130. package/dist/chunks/matrix-analytical-definition-C7Gb0e12.js +0 -117
  131. package/dist/chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js +0 -67
  132. package/dist/chunks/numeric-presentation-7X_IrD58.js +0 -5226
  133. package/dist/chunks/resolve-dashboard-input-context-DJ2tICwz.js +0 -9415
  134. package/dist/chunks/stable-serialize-CfqXeiBP.js +0 -6
  135. package/dist/chunks/table-settings-CLZocegs.js +0 -501
  136. package/dist/chunks/use-debounced-dirty-check-BwAbnX_5.js +0 -59
  137. package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +0 -46
  138. package/dist/types/shared/dashboard-authoring/change-compiler.d.ts +0 -7
  139. package/dist/types/shared/dashboard-authoring/layout-compiler.d.ts +0 -2
  140. package/dist/types/shared/layouts/create-frame-layouts.d.ts +0 -27
  141. package/dist/types/shared/layouts/frame-layouts.d.ts +0 -23
@@ -1,6 +1,6 @@
1
- import { r as a, t as s, u as f } from "./validators-DMHTpf7a.js";
2
- import "./matrix-operation-contract-8OIO4gob.js";
3
- import "./analytics-base-schemas-BFAoRlkU.js";
1
+ import { l as a, o as s, q as f } from "./validators-C-aOQlTB.js";
2
+ import "./matrix-operation-contract-D6vYkZK4.js";
3
+ import "./analytics-base-schemas-BKs3flFS.js";
4
4
  import "zod";
5
5
  function u(i, r = {}) {
6
6
  var n, e;
@@ -1,8 +1,8 @@
1
- import { aC as ge, w as U, l as ye, a2 as we } from "./validators-DMHTpf7a.js";
2
- import "./matrix-operation-contract-8OIO4gob.js";
3
- import { j as be } from "./analytics-base-schemas-BFAoRlkU.js";
1
+ import { aI as ge, t as U, ab as ye, S as we } from "./validators-C-aOQlTB.js";
2
+ import "./matrix-operation-contract-D6vYkZK4.js";
3
+ import { j as be } from "./analytics-base-schemas-BKs3flFS.js";
4
4
  import "zod";
5
- import { W as Me, X as se, S as Z, U as C, Y as oe, Z as ue, Q as xe, k as De, i as I, F as pe, f as Oe, p as Te, r as ve, u as Pe, j as Se, m as ke } from "./temporal-bucket-D7NBrrtL.js";
5
+ import { W as Me, X as se, S as Z, U as F, Y as oe, Z as ue, Q as xe, k as De, i as q, F as pe, f as Oe, p as Te, r as ve, u as Pe, j as Se, m as ke } from "./temporal-bucket-CQOSbv9-.js";
6
6
  function d(e) {
7
7
  const t = Object.prototype.toString.call(e);
8
8
  return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
@@ -48,19 +48,19 @@ function E(e) {
48
48
  );
49
49
  return n.setUTCFullYear(t.getFullYear()), +e - +n;
50
50
  }
51
- function Ce(e, t) {
51
+ function Fe(e, t) {
52
52
  const n = V(e), r = V(t), a = +n - E(n), i = +r - E(r);
53
53
  return Math.round((a - i) / Me);
54
54
  }
55
- function Fe(e) {
55
+ function Ne(e) {
56
56
  const t = ce(e), n = x(e, 0);
57
57
  return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), Y(n);
58
58
  }
59
- function F(e, t) {
59
+ function N(e, t) {
60
60
  const n = d(e), r = d(t), a = n.getTime() - r.getTime();
61
61
  return a < 0 ? -1 : a > 0 ? 1 : a;
62
62
  }
63
- function Ne(e) {
63
+ function Ce(e) {
64
64
  return x(e, Date.now());
65
65
  }
66
66
  function Ye(e) {
@@ -89,16 +89,16 @@ function _e(e) {
89
89
  const t = d(e);
90
90
  return t.setHours(23, 59, 59, 999), t;
91
91
  }
92
- function qe(e) {
92
+ function Ie(e) {
93
93
  const t = d(e), n = t.getMonth();
94
94
  return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
95
95
  }
96
- function Ie(e) {
96
+ function qe(e) {
97
97
  const t = d(e);
98
- return +_e(t) == +qe(t);
98
+ return +_e(t) == +Ie(t);
99
99
  }
100
100
  function Re(e, t) {
101
- const n = d(e), r = d(t), a = F(n, r), i = Math.abs(
101
+ const n = d(e), r = d(t), a = N(n, r), i = Math.abs(
102
102
  Le(n, r)
103
103
  );
104
104
  let s;
@@ -106,8 +106,8 @@ function Re(e, t) {
106
106
  s = 0;
107
107
  else {
108
108
  n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - a * i);
109
- let o = F(n, r) === -a;
110
- Ie(d(e)) && i === 1 && F(e, r) === 1 && (o = !1), s = a * (i - Number(o));
109
+ let o = N(n, r) === -a;
110
+ qe(d(e)) && i === 1 && N(e, r) === 1 && (o = !1), s = a * (i - Number(o));
111
111
  }
112
112
  return s === 0 ? 0 : s;
113
113
  }
@@ -552,10 +552,10 @@ const ct = /^(\d+)(th|st|nd|rd)?/i, ft = /\d+/i, lt = {
552
552
  };
553
553
  function pt(e) {
554
554
  const t = d(e);
555
- return Ce(t, He(t)) + 1;
555
+ return Fe(t, He(t)) + 1;
556
556
  }
557
557
  function Ot(e) {
558
- const t = d(e), n = +Y(t) - +Fe(t);
558
+ const t = d(e), n = +Y(t) - +Ne(t);
559
559
  return Math.round(n / se) + 1;
560
560
  }
561
561
  function le(e, t) {
@@ -1188,22 +1188,22 @@ const Q = (e, t) => {
1188
1188
  }, St = {
1189
1189
  p: me,
1190
1190
  P: Pt
1191
- }, kt = /^D+$/, Wt = /^Y+$/, Ct = ["D", "DD", "YY", "YYYY"];
1192
- function Ft(e) {
1191
+ }, kt = /^D+$/, Wt = /^Y+$/, Ft = ["D", "DD", "YY", "YYYY"];
1192
+ function Nt(e) {
1193
1193
  return kt.test(e);
1194
1194
  }
1195
- function Nt(e) {
1195
+ function Ct(e) {
1196
1196
  return Wt.test(e);
1197
1197
  }
1198
1198
  function Yt(e, t, n) {
1199
1199
  const r = Et(e, t, n);
1200
- if (console.warn(r), Ct.includes(e)) throw new RangeError(r);
1200
+ if (console.warn(r), Ft.includes(e)) throw new RangeError(r);
1201
1201
  }
1202
1202
  function Et(e, t, n) {
1203
1203
  const r = e[0] === "Y" ? "years" : "days of the month";
1204
1204
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1205
1205
  }
1206
- const Lt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xt = /^'([^]*?)'?$/, _t = /''/g, qt = /[a-zA-Z]/;
1206
+ const Lt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xt = /^'([^]*?)'?$/, _t = /''/g, It = /[a-zA-Z]/;
1207
1207
  function R(e, t, n) {
1208
1208
  var u, g, c, h, y, O, H, j;
1209
1209
  const r = P(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? fe, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (c = r.locale) == null ? void 0 : c.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((O = (y = n == null ? void 0 : n.locale) == null ? void 0 : y.options) == null ? void 0 : O.weekStartsOn) ?? r.weekStartsOn ?? ((j = (H = r.locale) == null ? void 0 : H.options) == null ? void 0 : j.weekStartsOn) ?? 0, o = d(e);
@@ -1221,10 +1221,10 @@ function R(e, t, n) {
1221
1221
  return { isToken: !1, value: "'" };
1222
1222
  const w = b[0];
1223
1223
  if (w === "'")
1224
- return { isToken: !1, value: It(b) };
1224
+ return { isToken: !1, value: qt(b) };
1225
1225
  if (B[w])
1226
1226
  return { isToken: !0, value: b };
1227
- if (w.match(qt))
1227
+ if (w.match(It))
1228
1228
  throw new RangeError(
1229
1229
  "Format string contains an unescaped latin alphabet character `" + w + "`"
1230
1230
  );
@@ -1239,17 +1239,17 @@ function R(e, t, n) {
1239
1239
  return f.map((b) => {
1240
1240
  if (!b.isToken) return b.value;
1241
1241
  const w = b.value;
1242
- (!(n != null && n.useAdditionalWeekYearTokens) && Nt(w) || !(n != null && n.useAdditionalDayOfYearTokens) && Ft(w)) && Yt(w, t, String(e));
1242
+ (!(n != null && n.useAdditionalWeekYearTokens) && Ct(w) || !(n != null && n.useAdditionalDayOfYearTokens) && Nt(w)) && Yt(w, t, String(e));
1243
1243
  const z = B[w[0]];
1244
1244
  return z(o, w, a.localize, l);
1245
1245
  }).join("");
1246
1246
  }
1247
- function It(e) {
1247
+ function qt(e) {
1248
1248
  const t = e.match(Xt);
1249
1249
  return t ? t[1].replace(_t, "'") : e;
1250
1250
  }
1251
1251
  function Rt(e, t, n) {
1252
- const r = P(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? fe, i = 2520, s = F(e, t);
1252
+ const r = P(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? fe, i = 2520, s = N(e, t);
1253
1253
  if (isNaN(s))
1254
1254
  throw new RangeError("Invalid time value");
1255
1255
  const o = Object.assign({}, n, {
@@ -1272,14 +1272,14 @@ function Rt(e, t, n) {
1272
1272
  } else {
1273
1273
  if (c < i)
1274
1274
  return a.formatDistance("xDays", 1, o);
1275
- if (c < C) {
1275
+ if (c < F) {
1276
1276
  const y = Math.round(c / Z);
1277
1277
  return a.formatDistance("xDays", y, o);
1278
- } else if (c < C * 2)
1279
- return h = Math.round(c / C), a.formatDistance("aboutXMonths", h, o);
1278
+ } else if (c < F * 2)
1279
+ return h = Math.round(c / F), a.formatDistance("aboutXMonths", h, o);
1280
1280
  }
1281
1281
  if (h = Re(l, f), h < 12) {
1282
- const y = Math.round(c / C);
1282
+ const y = Math.round(c / F);
1283
1283
  return a.formatDistance("xMonths", y, o);
1284
1284
  } else {
1285
1285
  const y = h % 12, O = Math.trunc(h / 12);
@@ -1287,7 +1287,7 @@ function Rt(e, t, n) {
1287
1287
  }
1288
1288
  }
1289
1289
  function At(e, t) {
1290
- return Rt(e, Ne(e), t);
1290
+ return Rt(e, Ce(e), t);
1291
1291
  }
1292
1292
  function Ht() {
1293
1293
  return Object.assign({}, P());
@@ -1579,7 +1579,7 @@ function te(e) {
1579
1579
  if (!(!t || t.toLowerCase() === "none"))
1580
1580
  return t;
1581
1581
  }
1582
- function N(e) {
1582
+ function C(e) {
1583
1583
  if (!(typeof e != "number" || !Number.isFinite(e)))
1584
1584
  return Math.max(0, Math.min(10, Math.trunc(e)));
1585
1585
  }
@@ -1587,7 +1587,7 @@ function sn(e) {
1587
1587
  return e === "currency" ? 2 : e === "percent" ? 1 : e === "scientific" ? 2 : 0;
1588
1588
  }
1589
1589
  function on(e, t, n) {
1590
- const r = N(t.minimumFractionDigits), a = N(t.maximumFractionDigits);
1590
+ const r = C(t.minimumFractionDigits), a = C(t.maximumFractionDigits);
1591
1591
  if (typeof r == "number" || typeof a == "number") {
1592
1592
  const o = r ?? 0, f = a ?? Math.max(o, 2);
1593
1593
  return {
@@ -1595,7 +1595,7 @@ function on(e, t, n) {
1595
1595
  maximumFractionDigits: Math.max(o, f)
1596
1596
  };
1597
1597
  }
1598
- const i = N(t.decimals);
1598
+ const i = C(t.decimals);
1599
1599
  if (typeof i == "number")
1600
1600
  return {
1601
1601
  minimumFractionDigits: i,
@@ -1624,7 +1624,7 @@ function ne(e) {
1624
1624
  }
1625
1625
  function D(e, t, n) {
1626
1626
  const r = { ...t, type: e };
1627
- if ((n == null ? void 0 : n.numericInput) === "canonical" && I(r))
1627
+ if ((n == null ? void 0 : n.numericInput) === "canonical" && q(r))
1628
1628
  return ne(r);
1629
1629
  const a = on(e, t, n), i = typeof t.prefix == "string" ? t.prefix : void 0, s = {
1630
1630
  type: e,
@@ -1652,17 +1652,17 @@ function re(e) {
1652
1652
  suffix: e.suffix
1653
1653
  };
1654
1654
  }
1655
- function q(e) {
1655
+ function I(e) {
1656
1656
  return e === "millisecond" || e === "second" || e === "minute" || e === "hour" || e === "day";
1657
1657
  }
1658
1658
  function ae(e) {
1659
- const t = N(e.maxUnits);
1659
+ const t = C(e.maxUnits);
1660
1660
  return {
1661
1661
  type: "duration",
1662
- inputUnit: q(e.inputUnit) ? e.inputUnit : "second",
1662
+ inputUnit: I(e.inputUnit) ? e.inputUnit : "second",
1663
1663
  outputStyle: e.outputStyle === "digital" || e.outputStyle === "long" ? e.outputStyle : "compact",
1664
- largestUnit: q(e.largestUnit) ? e.largestUnit : void 0,
1665
- smallestUnit: q(e.smallestUnit) ? e.smallestUnit : "second",
1664
+ largestUnit: I(e.largestUnit) ? e.largestUnit : void 0,
1665
+ smallestUnit: I(e.smallestUnit) ? e.smallestUnit : "second",
1666
1666
  maxUnits: t,
1667
1667
  prefix: e.prefix,
1668
1668
  suffix: e.suffix,
@@ -1709,7 +1709,7 @@ function cn(e, t) {
1709
1709
  const n = e;
1710
1710
  if ((t == null ? void 0 : t.numericInput) === "canonical") {
1711
1711
  const r = n.type === "percentage" ? { ...n, type: "percent" } : n;
1712
- if (I(r))
1712
+ if (q(r))
1713
1713
  return D(r.type, r, t);
1714
1714
  }
1715
1715
  if (n.type === "percentage")
@@ -1820,7 +1820,7 @@ function Pn(e, t, n) {
1820
1820
  return y.ok ? y.text : g(h);
1821
1821
  };
1822
1822
  }
1823
- if (I(u)) {
1823
+ if (q(u)) {
1824
1824
  const c = Pe(u, n.valueFormat);
1825
1825
  return o === "measures" && a.set(s.id, c), (h) => typeof h == "number" || typeof h == "object" && h !== null ? Se(h, c) : g(h);
1826
1826
  }
@@ -1868,10 +1868,10 @@ export {
1868
1868
  bn as r,
1869
1869
  P as s,
1870
1870
  fe as t,
1871
- F as u,
1871
+ N as u,
1872
1872
  d as v,
1873
1873
  ze as w,
1874
1874
  E as x,
1875
- Ne as y,
1875
+ Ce as y,
1876
1876
  re as z
1877
1877
  };
@@ -1,4 +1,4 @@
1
- import { w as d } from "./validators-DMHTpf7a.js";
1
+ import { t as d } from "./validators-C-aOQlTB.js";
2
2
  const h = [
3
3
  "=",
4
4
  "!=",
@@ -1,6 +1,6 @@
1
1
  import { z as t } from "zod";
2
- import { z as je, E as Fe, F as Le, I as Ue, J as qe, s as U, x as Z, n as De, C as Me, D as ce, f as Be, r as Ge, y as ze, m as Ve, o as We, t as le, u as Xe } from "./analytics-base-schemas-BFAoRlkU.js";
3
- import { X as k, Q as ue, a0 as G, aH as ee, w as b, Y as Ke, aA as $, aI as Ze, R as $e, s as Ye, q as de, z as He, v as Qe, m as Je } from "./validators-DMHTpf7a.js";
2
+ import { z as je, E as Fe, F as Le, I as Ue, J as qe, s as U, x as Z, n as De, C as Me, D as ce, f as Be, r as Ge, y as ze, m as Ve, o as We, t as le, u as Xe } from "./analytics-base-schemas-BKs3flFS.js";
3
+ import { I as w, A as ue, Q as G, aN as ee, t as b, J as Ke, aG as $, aO as Ze, B as $e, s as Ye, x as de, a8 as He, r as Qe, m as Je } from "./validators-C-aOQlTB.js";
4
4
  const Y = {
5
5
  answerSummary: "string",
6
6
  responseDetail: "responseDetail",
@@ -135,14 +135,14 @@ function v(e, n, a) {
135
135
  const it = t.object({
136
136
  id: y,
137
137
  axis: ue,
138
- parent: k,
138
+ parent: w,
139
139
  position: t.union([
140
140
  t.object({ kind: t.literal("first") }).strict(),
141
141
  t.object({ kind: t.enum(["after", "before"]), cursor: y }).strict()
142
142
  ]),
143
143
  size: ot
144
144
  }).strict(), te = t.object({
145
- paths: t.array(k).readonly(),
145
+ paths: t.array(w).readonly(),
146
146
  pageIds: t.array(y).readonly()
147
147
  }).strict(), ct = t.object({
148
148
  id: y,
@@ -193,8 +193,8 @@ const it = t.object({
193
193
  }), lt = t.object({
194
194
  requestId: y,
195
195
  axis: ue,
196
- parent: k,
197
- members: t.array(t.object({ path: k }).strict()).readonly(),
196
+ parent: w,
197
+ members: t.array(t.object({ path: w }).strict()).readonly(),
198
198
  before: y.nullable(),
199
199
  after: y.nullable(),
200
200
  exactCount: t.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).optional()
@@ -221,8 +221,8 @@ const it = t.object({
221
221
  for (const r of e.members)
222
222
  (r.path.length !== e.parent.length + 1 || b(r.path.slice(0, -1)) !== b(e.parent)) && f(n, ["members"], "Page members must be immediate children.");
223
223
  }), he = t.object({
224
- rowPaths: t.array(k).readonly(),
225
- columnPaths: t.array(k).readonly(),
224
+ rowPaths: t.array(w).readonly(),
225
+ columnPaths: t.array(w).readonly(),
226
226
  measureIds: t.array(O).readonly()
227
227
  }).strict();
228
228
  function fe(e, n) {
@@ -427,7 +427,7 @@ const be = t.object({
427
427
  t.object({
428
428
  kind: t.literal("measure"),
429
429
  measureId: O,
430
- columnPath: k,
430
+ columnPath: w,
431
431
  role: Ie,
432
432
  label: t.string()
433
433
  }).strict()
@@ -445,14 +445,14 @@ const be = t.object({
445
445
  ]), At = t.discriminatedUnion("kind", [
446
446
  t.object({
447
447
  kind: t.literal("layout"),
448
- rowPath: k,
448
+ rowPath: w,
449
449
  role: Ie,
450
450
  values: t.array(ae).readonly()
451
451
  }).strict(),
452
452
  t.object({
453
453
  kind: t.literal("flat"),
454
- rowPath: k,
455
- columnPath: k,
454
+ rowPath: w,
455
+ columnPath: w,
456
456
  values: t.array(ae).readonly()
457
457
  }).strict()
458
458
  ]), hn = t.discriminatedUnion("kind", [
@@ -541,10 +541,10 @@ const be = t.object({
541
541
  recommendedNextStep: t.string().optional()
542
542
  }).passthrough()
543
543
  ).optional()
544
- }).passthrough(), we = t.object({
544
+ }).passthrough(), ke = t.object({
545
545
  scope: t.literal("filtered_query"),
546
546
  measures: t.record(De)
547
- }).passthrough(), ke = t.object({
547
+ }).passthrough(), we = t.object({
548
548
  answeredObligations: t.array(t.string()),
549
549
  missingObligations: t.array(t.string()),
550
550
  warnings: t.array(Me).optional()
@@ -566,22 +566,22 @@ const be = t.object({
566
566
  fieldsUsed: t.array(Z).optional(),
567
567
  result: bt.optional(),
568
568
  validation: ce,
569
- coverage: ke.optional(),
569
+ coverage: we.optional(),
570
570
  missingFields: t.array(t.string()).optional(),
571
571
  warnings: t.array(t.string()).optional(),
572
572
  relationshipDiagnostics: It.optional(),
573
573
  diagnosticFeedback: _e.optional(),
574
- population: we.optional(),
574
+ population: ke.optional(),
575
575
  metadata: t.record(t.string(), t.unknown()).optional()
576
576
  }).passthrough(), _t = ve;
577
- function wt(e) {
577
+ function kt(e) {
578
578
  switch (e) {
579
579
  case "boolean":
580
580
  return t.boolean().optional();
581
581
  case "compactExecutionFieldArray":
582
582
  return t.array(ze).optional();
583
583
  case "coverage":
584
- return ke.optional();
584
+ return we.optional();
585
585
  case "diagnosticFeedback":
586
586
  return _e.optional();
587
587
  case "executionFieldArray":
@@ -591,7 +591,7 @@ function wt(e) {
591
591
  case "number":
592
592
  return t.number().finite().optional();
593
593
  case "population":
594
- return we.optional();
594
+ return ke.optional();
595
595
  case "record":
596
596
  return Ge.optional();
597
597
  case "recordArray":
@@ -610,11 +610,11 @@ function wt(e) {
610
610
  return ce.optional();
611
611
  }
612
612
  }
613
- const kt = Object.fromEntries(
613
+ const wt = Object.fromEntries(
614
614
  Object.entries(Y).map(
615
- ([e, n]) => [e, wt(n)]
615
+ ([e, n]) => [e, kt(n)]
616
616
  )
617
- ), vt = t.object(kt).strict(), Tt = new Set(
617
+ ), vt = t.object(wt).strict(), Tt = new Set(
618
618
  Object.keys(Y)
619
619
  );
620
620
  function fn() {
@@ -778,7 +778,7 @@ const Ot = t.union([
778
778
  path: ["conditions", a, "field"]
779
779
  });
780
780
  }
781
- }), wn = t.object({
781
+ }), kn = t.object({
782
782
  id: t.string().min(1),
783
783
  tuples: t.array(Lt).min(1).max(Te)
784
784
  }).strict(), Ut = t.object({ key: t.string().min(1), nativeText: t.string().nullable() }).strict(), qt = t.object({
@@ -790,7 +790,7 @@ const Ot = t.union([
790
790
  (e) => new Set(e.dataAnchors.map((n) => n.key)).size === e.dataAnchors.length,
791
791
  { message: "dataAnchors keys must be unique", path: ["dataAnchors"] }
792
792
  );
793
- function kn(e) {
793
+ function wn(e) {
794
794
  if (e == null) return;
795
795
  const n = qt.safeParse(e);
796
796
  return n.success ? n.data : void 0;
@@ -960,9 +960,9 @@ function W(e, n = /* @__PURE__ */ new Set()) {
960
960
  if (!ie.test(e[h] || "")) break;
961
961
  const N = M(e, h), R = e.slice(h, N).toUpperCase(), u = j(e, N);
962
962
  if (R === "WITHIN") {
963
- const S = M(e, u), w = j(e, S);
964
- if (e.slice(u, S).toUpperCase() === "GROUP" && e[w] === "(") {
965
- g = P(e, w), E = g;
963
+ const S = M(e, u), k = j(e, S);
964
+ if (e.slice(u, S).toUpperCase() === "GROUP" && e[k] === "(") {
965
+ g = P(e, k), E = g;
966
966
  continue;
967
967
  }
968
968
  }
@@ -1223,9 +1223,9 @@ function J(e, n) {
1223
1223
  i.has(u) || i.set(u, Yt(c(u), n));
1224
1224
  const l = r.calls.some(
1225
1225
  (u) => u.tokens.some((S) => {
1226
- const w = c(S);
1227
- if (!(w != null && w.expression)) return !1;
1228
- const L = J(w, n + 1);
1226
+ const k = c(S);
1227
+ if (!(k != null && k.expression)) return !1;
1228
+ const L = J(k, n + 1);
1229
1229
  return L !== "row_input" && (L.unresolved || L.stage === "aggregate");
1230
1230
  })
1231
1231
  ), m = Array.from(i.values()).filter(
@@ -1245,8 +1245,8 @@ function J(e, n) {
1245
1245
  ...m.flatMap((u) => u.calls)
1246
1246
  ], T = r.windowed || m.some((u) => u.windowed), x = !I && !T && E.every((u) => Oe.has(u.kind)), C = (u) => {
1247
1247
  if (u.kind === "call") {
1248
- const w = r.calls[u.index];
1249
- return w ? xe(w.kind) : { kind: "none", reason: "unresolved" };
1248
+ const k = r.calls[u.index];
1249
+ return k ? xe(k.kind) : { kind: "none", reason: "unresolved" };
1250
1250
  }
1251
1251
  const S = i.get(u.token);
1252
1252
  return S && S !== "raw" ? S.reaggregation : { kind: "none", reason: "unresolved" };
@@ -1305,34 +1305,34 @@ const en = {
1305
1305
  });
1306
1306
  export {
1307
1307
  lt as $,
1308
- oe as A,
1309
- bn as B,
1310
- In as C,
1311
- xt as D,
1312
- Pt as E,
1313
- jt as F,
1314
- Ft as G,
1315
- Lt as H,
1316
- qt as I,
1317
- kn as J,
1318
- Mt as K,
1319
- Ne as L,
1320
- W as M,
1321
- Zt as N,
1322
- vn as O,
1323
- me as P,
1324
- nt as Q,
1325
- at as R,
1308
+ bn as A,
1309
+ In as B,
1310
+ xt as C,
1311
+ Pt as D,
1312
+ jt as E,
1313
+ Ft as F,
1314
+ Lt as G,
1315
+ qt as H,
1316
+ wn as I,
1317
+ Mt as J,
1318
+ Ne as K,
1319
+ W as L,
1320
+ Zt as M,
1321
+ vn as N,
1322
+ me as O,
1323
+ nt as P,
1324
+ at as Q,
1325
+ sn as R,
1326
1326
  Y as S,
1327
- sn as T,
1328
- on as U,
1329
- st as V,
1330
- cn as W,
1331
- it as X,
1332
- te as Y,
1333
- ct as Z,
1327
+ on as T,
1328
+ st as U,
1329
+ cn as V,
1330
+ it as W,
1331
+ te as X,
1332
+ ct as Y,
1333
+ pe as Z,
1334
1334
  ln as _,
1335
- wn as a,
1335
+ kn as a,
1336
1336
  ut as a0,
1337
1337
  dt as a1,
1338
1338
  ne as a2,
@@ -1362,23 +1362,23 @@ export {
1362
1362
  It as e,
1363
1363
  _e as f,
1364
1364
  fn as g,
1365
- we as h,
1365
+ ke as h,
1366
1366
  Rt as i,
1367
- ke as j,
1367
+ we as j,
1368
1368
  ve as k,
1369
1369
  _t as l,
1370
- pe as m,
1371
- kt as n,
1372
- vt as o,
1370
+ wt as m,
1371
+ vt as n,
1372
+ be as o,
1373
1373
  gn as p,
1374
- be as q,
1375
- Te as r,
1374
+ Te as q,
1375
+ Re as r,
1376
1376
  _n as s,
1377
- Re as t,
1378
- yn as u,
1379
- Et as v,
1380
- Ee as w,
1381
- Ct as x,
1382
- se as y,
1383
- z
1377
+ yn as t,
1378
+ Et as u,
1379
+ Ee as v,
1380
+ Ct as w,
1381
+ se as x,
1382
+ z as y,
1383
+ oe as z
1384
1384
  };
@@ -1,5 +1,5 @@
1
- import { t as g, T as m, a as C } from "./analytics-base-schemas-BFAoRlkU.js";
2
- import { v as k } from "./validators-DMHTpf7a.js";
1
+ import { t as g, T as m, a as C } from "./analytics-base-schemas-BKs3flFS.js";
2
+ import { r as k } from "./validators-C-aOQlTB.js";
3
3
  function w(e) {
4
4
  const r = g.safeParse(e);
5
5
  return r.success ? { ok: !0, value: r.data } : {