react-semaphor 0.1.515 → 0.1.516

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 (210) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +226 -225
  3. package/dist/brand-studio/index.cjs +1 -1
  4. package/dist/brand-studio/index.js +4 -4
  5. package/dist/briefings/index.cjs +1 -1
  6. package/dist/briefings/index.js +8 -8
  7. package/dist/chunks/{calculated-field-identity-BiTGmnST.cjs → calculated-field-identity-5bg9oHTw.cjs} +1 -1
  8. package/dist/chunks/{calculated-field-identity-DnRd4YIY.js → calculated-field-identity-DzJBs2J8.js} +4 -4
  9. package/dist/chunks/{card-config-utils-B2cDWQqB.js → card-config-utils-Cxnq2R6z.js} +14 -14
  10. package/dist/chunks/{card-config-utils-CMO4_zVs.cjs → card-config-utils-z86y6tSq.cjs} +1 -1
  11. package/dist/chunks/column-bands-CU0byntA.cjs +1 -0
  12. package/dist/chunks/column-bands-RdM-kjDe.js +47 -0
  13. package/dist/chunks/{dashboard-briefing-launcher-BA_bl05p.js → dashboard-briefing-launcher-BCEHJ_eD.js} +15 -12
  14. package/dist/chunks/{dashboard-briefing-launcher-B7zqm8P1.cjs → dashboard-briefing-launcher-CjZ4aE34.cjs} +2 -2
  15. package/dist/chunks/{dashboard-controls-QMW17RKx.js → dashboard-controls-DFfit5KH.js} +12 -12
  16. package/dist/chunks/{dashboard-controls-x_v9wLOU.cjs → dashboard-controls-f9aJ70Zu.cjs} +1 -1
  17. package/dist/chunks/{dashboard-date-comparison-definition-D7Bl-YAl.js → dashboard-date-comparison-definition-BqNhECUr.js} +6 -6
  18. package/dist/chunks/{dashboard-date-comparison-definition-C_w-GO_5.cjs → dashboard-date-comparison-definition-Y6JZwpcr.cjs} +1 -1
  19. package/dist/chunks/{dashboard-json-DRnpkNwO.js → dashboard-json-DVtcA02f.js} +7 -7
  20. package/dist/chunks/{dashboard-json-0ZLLBlHj.cjs → dashboard-json-deqQC-UR.cjs} +1 -1
  21. package/dist/chunks/edit-dashboard-visual-DK6lSC_p.cjs +172 -0
  22. package/dist/chunks/{edit-dashboard-visual-1ISjhwry.js → edit-dashboard-visual-lJ6rDH3w.js} +4338 -4324
  23. package/dist/chunks/{editor-action-buttons-BTCKZERI.js → editor-action-buttons-Bnxxa439.js} +7 -7
  24. package/dist/chunks/{editor-action-buttons-Czq5SnA9.cjs → editor-action-buttons-CmDaQbPN.cjs} +1 -1
  25. package/dist/chunks/{field-aggregations-CzuQKtqx.js → field-aggregations-Dl2A3rbV.js} +461 -358
  26. package/dist/chunks/field-aggregations-pH_3kymD.cjs +1 -0
  27. package/dist/chunks/{field-dependencies-DIab72rQ.cjs → field-dependencies-EB485TdB.cjs} +1 -1
  28. package/dist/chunks/{field-dependencies-DXW4jtvJ.js → field-dependencies-v-lJNzC7.js} +1 -1
  29. package/dist/chunks/{index-Dlic9KZs.js → index-BVVl2JDK.js} +57730 -54586
  30. package/dist/chunks/index-DfqMtR9S.cjs +4 -0
  31. package/dist/chunks/index-UNKSfi7s.cjs +1434 -0
  32. package/dist/chunks/{index-v1OE4-eA.js → index-ylOpKRDu.js} +877 -849
  33. package/dist/chunks/{matrix-analytical-definition-Ct5Tu8np.cjs → matrix-analytical-definition-BWd159lN.cjs} +1 -1
  34. package/dist/chunks/{matrix-analytical-definition-BDAK2aEi.js → matrix-analytical-definition-BimC4XIV.js} +1 -1
  35. package/dist/chunks/{matrix-card-U4c72doZ.cjs → matrix-card-C2RjEYZ8.cjs} +1 -1
  36. package/dist/chunks/{matrix-card-DOIeTmjh.js → matrix-card-CIlz0Dnp.js} +2 -2
  37. package/dist/chunks/{matrix-control-sources-FjxGIbqk.cjs → matrix-control-sources-BvEJF7d3.cjs} +1 -1
  38. package/dist/chunks/{matrix-control-sources-BxKH2yu2.js → matrix-control-sources-KbZe1gj_.js} +51 -51
  39. package/dist/chunks/{matrix-definition-CBJW_4ii.cjs → matrix-definition-DanUT11P.cjs} +1 -1
  40. package/dist/chunks/{matrix-definition-I9rHB9zN.js → matrix-definition-E5gXXSTZ.js} +1 -1
  41. package/dist/chunks/matrix-formatter-BJTO8ky9.cjs +1 -0
  42. package/dist/chunks/{matrix-formatter-BdIsE7Qu.js → matrix-formatter-CCXNRt3s.js} +81 -81
  43. package/dist/chunks/{matrix-member-presentation-DO1VSqfh.js → matrix-member-presentation-Bw7-JCrr.js} +64 -64
  44. package/dist/chunks/matrix-member-presentation-DvXDEo0U.cjs +1 -0
  45. package/dist/chunks/{matrix-operation-contract-DoiWTUbT.cjs → matrix-operation-contract-0RxoU_M3.cjs} +1 -1
  46. package/dist/chunks/{matrix-operation-contract-D0HfzwZg.js → matrix-operation-contract-D32U2CSw.js} +19 -19
  47. package/dist/chunks/{metric-comparison-Dqc7_tnW.js → metric-comparison-BphoJ9bq.js} +1 -1
  48. package/dist/chunks/{metric-comparison-DBQ3EJTz.cjs → metric-comparison-CUmltzpz.cjs} +1 -1
  49. package/dist/chunks/pivot-header-presentation-BSZhB1g-.js +661 -0
  50. package/dist/chunks/pivot-header-presentation-EoUS5ze5.cjs +5 -0
  51. package/dist/chunks/{pivot-result-identity-8M-bZrw9.js → pivot-result-identity-BzUQiCEV.js} +4 -4
  52. package/dist/chunks/{pivot-result-identity-uTiylUNr.cjs → pivot-result-identity-gquWljbd.cjs} +1 -1
  53. package/dist/chunks/{pivot-result-lifecycle-vg_suUNb.cjs → pivot-result-lifecycle-gl9cBfB-.cjs} +1 -1
  54. package/dist/chunks/{pivot-result-lifecycle-CEmyU2At.js → pivot-result-lifecycle-kRhiJkzg.js} +8 -8
  55. package/dist/chunks/{raw-temporal-Bj6_w9cG.js → raw-temporal-BqOfk-xN.js} +16 -16
  56. package/dist/chunks/{raw-temporal-contract-CFLGwTiI.js → raw-temporal-contract-BQZIJ1fn.js} +1 -1
  57. package/dist/chunks/{raw-temporal-contract-DECbTuzA.cjs → raw-temporal-contract-CklMVG_1.cjs} +1 -1
  58. package/dist/chunks/{raw-temporal-CeblVJbu.cjs → raw-temporal-eJXecCyJ.cjs} +1 -1
  59. package/dist/chunks/{report-preferences-dialog-b8J6KjSy.js → report-preferences-dialog-CHXPEl7v.js} +6 -6
  60. package/dist/chunks/{report-preferences-dialog-Dr1BYwuf.cjs → report-preferences-dialog-Cto0vDwI.cjs} +1 -1
  61. package/dist/chunks/{report-runtime-context-Cs65Mrxj.js → report-runtime-context-CxIoGyNM.js} +1 -1
  62. package/dist/chunks/{report-runtime-context-DzvHBPxl.cjs → report-runtime-context-CzSrCBsu.cjs} +1 -1
  63. package/dist/chunks/{selection-reducer-BIiQXbGM.js → selection-reducer-CvCBQbl2.js} +1 -1
  64. package/dist/chunks/{selection-reducer-CGKKsaPa.cjs → selection-reducer-Kl22OzIk.cjs} +1 -1
  65. package/dist/chunks/{semantic-format-Dt-nUxFB.js → semantic-format-DwqGYx4V.js} +2 -2
  66. package/dist/chunks/{semantic-format-DFI1iszk.cjs → semantic-format-mVI32OJH.cjs} +1 -1
  67. package/dist/chunks/{source-entity-resolution-D7vnmDwm.js → source-entity-resolution-Bzefiive.js} +7 -7
  68. package/dist/chunks/{source-entity-resolution-CjbgnwyX.cjs → source-entity-resolution-R46X34SE.cjs} +1 -1
  69. package/dist/chunks/switch-DNbWXEOP.cjs +134 -0
  70. package/dist/chunks/{switch-D5_tjsIS.js → switch-DNv-hVmt.js} +8230 -7681
  71. package/dist/chunks/{temporal-bucket-B9hMwemw.js → temporal-bucket-DlFuhCnT.js} +6 -6
  72. package/dist/chunks/{temporal-bucket-contract-IWDgyTMw.js → temporal-bucket-contract-DTLDRzgV.js} +1 -1
  73. package/dist/chunks/{temporal-bucket-contract-ZctiyXYk.cjs → temporal-bucket-contract-nTv6gvX5.cjs} +1 -1
  74. package/dist/chunks/{token-types-Dl0hcKBX.js → token-types-BC6RcUY8.js} +1 -1
  75. package/dist/chunks/{token-types-Ahh5u4iT.cjs → token-types-aWrzwonf.cjs} +1 -1
  76. package/dist/chunks/{update-policy-COjFudhl.cjs → update-policy-DRDLWe7Y.cjs} +1 -1
  77. package/dist/chunks/{update-policy-BeQqjupC.js → update-policy-DhAUtiC8.js} +2 -2
  78. package/dist/chunks/{validators-CkHsAvwB.js → validators-CsdOtZI6.js} +411 -397
  79. package/dist/chunks/validators-DFeDcdpA.cjs +1 -0
  80. package/dist/dashboard/index.cjs +1 -1
  81. package/dist/dashboard/index.js +1 -1
  82. package/dist/dashboard-authoring/index.cjs +3 -3
  83. package/dist/dashboard-authoring/index.js +233 -227
  84. package/dist/data-app-builder/index.cjs +1 -1
  85. package/dist/data-app-builder/index.js +3 -3
  86. package/dist/data-app-codegen/index.cjs +1 -1
  87. package/dist/data-app-codegen/index.js +2 -2
  88. package/dist/data-app-codegen-node/index.cjs +1 -1
  89. package/dist/data-app-codegen-node/index.js +3 -3
  90. package/dist/data-app-sdk/index.cjs +1 -1
  91. package/dist/data-app-sdk/index.js +5 -5
  92. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  93. package/dist/data-app-sdk-adapters/index.js +2 -2
  94. package/dist/data-app-sdk-validation/index.cjs +1 -1
  95. package/dist/data-app-sdk-validation/index.js +5 -5
  96. package/dist/format-utils/index.cjs +3 -3
  97. package/dist/format-utils/index.js +291 -402
  98. package/dist/index.cjs +1 -1
  99. package/dist/index.js +15 -15
  100. package/dist/pdf-table-layout/index.cjs +1 -0
  101. package/dist/pdf-table-layout/index.js +993 -0
  102. package/dist/report-runtime-context/index.cjs +1 -1
  103. package/dist/report-runtime-context/index.js +2 -2
  104. package/dist/style.css +1 -1
  105. package/dist/surfboard/index.cjs +1 -1
  106. package/dist/surfboard/index.js +2 -2
  107. package/dist/types/briefings/index.d.ts +1 -1
  108. package/dist/types/components/document-sheet/document-input-bar.d.ts +1 -3
  109. package/dist/types/components/document-sheet/document-insert-picker.d.ts +37 -0
  110. package/dist/types/components/document-sheet/document-kpi-section.d.ts +17 -0
  111. package/dist/types/components/document-sheet/document-matrix-layout-context.d.ts +10 -0
  112. package/dist/types/components/document-sheet/document-matrix-section.d.ts +27 -0
  113. package/dist/types/components/document-sheet/document-measure-layer.d.ts +45 -0
  114. package/dist/types/components/document-sheet/document-outline.d.ts +7 -1
  115. package/dist/types/components/document-sheet/document-page-navigation.d.ts +22 -0
  116. package/dist/types/components/document-sheet/document-page.d.ts +9 -5
  117. package/dist/types/components/document-sheet/document-panel/document-side-panel.d.ts +36 -0
  118. package/dist/types/components/document-sheet/document-panel/inputs-panel.d.ts +9 -0
  119. package/dist/types/components/document-sheet/document-panel/page-panel.d.ts +5 -0
  120. package/dist/types/components/document-sheet/document-panel/panel-controls.d.ts +14 -0
  121. package/dist/types/components/document-sheet/document-panel/region-panels.d.ts +11 -0
  122. package/dist/types/components/document-sheet/document-panel/section-panel.d.ts +25 -0
  123. package/dist/types/components/document-sheet/document-section-print-boundary.d.ts +9 -0
  124. package/dist/types/components/document-sheet/document-table-chrome.d.ts +22 -0
  125. package/dist/types/components/document-sheet/document-table-section.d.ts +3 -7
  126. package/dist/types/components/document-sheet/document-text-preview-context.d.ts +8 -0
  127. package/dist/types/components/document-sheet/use-first-fitting-variant.d.ts +18 -0
  128. package/dist/types/components/editor/editor-main/dashboard-variable-node.d.ts +12 -2
  129. package/dist/types/components/explorer/chart-configuration/matrix-authoring-controls.d.ts +7 -2
  130. package/dist/types/components/text-variables/variable-chip-plugin.d.ts +23 -0
  131. package/dist/types/components/text-variables/variable-chip.d.ts +18 -0
  132. package/dist/types/components/text-variables/variable-picker.d.ts +27 -0
  133. package/dist/types/components/visual/settings/table-presentation-settings.d.ts +27 -1
  134. package/dist/types/index.cjs +1 -1
  135. package/dist/types/index.js +5 -5
  136. package/dist/types/lib/dashboard-inputs/text-variable-options.d.ts +15 -0
  137. package/dist/types/lib/document/document-canvas-actions.d.ts +22 -0
  138. package/dist/types/lib/document/document-edits.d.ts +119 -0
  139. package/dist/types/lib/document/document-kpi-figure.d.ts +27 -0
  140. package/dist/types/lib/document/document-kpi-layout.d.ts +29 -0
  141. package/dist/types/lib/document/document-kpi-section-edits.d.ts +15 -0
  142. package/dist/types/lib/document/document-matrix-bands.d.ts +66 -0
  143. package/dist/types/lib/document/document-matrix-print.d.ts +11 -0
  144. package/dist/types/lib/document/document-pagination.d.ts +56 -3
  145. package/dist/types/lib/document/document-panel-target.d.ts +19 -0
  146. package/dist/types/lib/document/document-section-editor.d.ts +8 -7
  147. package/dist/types/lib/document/document-section-kinds.d.ts +49 -0
  148. package/dist/types/lib/document/document-section-query-options.d.ts +25 -0
  149. package/dist/types/lib/document/document-section-render-state.d.ts +26 -0
  150. package/dist/types/lib/document/document-section-utils.d.ts +11 -4
  151. package/dist/types/lib/document/document-table-dom.d.ts +4 -6
  152. package/dist/types/lib/document/document-table-pagination-model.d.ts +0 -5
  153. package/dist/types/lib/document/document-table-print-model.d.ts +4 -3
  154. package/dist/types/lib/document/document-table-style.d.ts +15 -4
  155. package/dist/types/lib/document/document-table-surface.d.ts +15 -0
  156. package/dist/types/lib/document/document-variables.d.ts +40 -6
  157. package/dist/types/lib/document/use-document-section-data.d.ts +39 -0
  158. package/dist/types/lib/document/use-measured-document-table-layout.d.ts +50 -0
  159. package/dist/types/lib/formatters/kpi-result-values.d.ts +20 -0
  160. package/dist/types/lib/hooks/query-context/use-dashboard-card-execution-snapshot.d.ts +8 -2
  161. package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +6 -0
  162. package/dist/types/lib/hooks/use-dashboard-kpi-actions.d.ts +1 -1
  163. package/dist/types/lib/hooks/use-document-section-editor.d.ts +2 -2
  164. package/dist/types/lib/hooks/use-document-section-session.d.ts +36 -0
  165. package/dist/types/lib/hooks/use-editor-preview.d.ts +17 -0
  166. package/dist/types/lib/hooks/use-is-editing-card.d.ts +7 -0
  167. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +2 -0
  168. package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +2 -0
  169. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -0
  170. package/dist/types/lib/matrix-table/matrix-layout-read.d.ts +68 -0
  171. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +8 -1
  172. package/dist/types/lib/query-context/build-dashboard-frame-base-query-contexts.d.ts +4 -2
  173. package/dist/types/lib/query-context/card-execution.d.ts +30 -0
  174. package/dist/types/lib/query-context/document-section-card-query.d.ts +37 -0
  175. package/dist/types/lib/stores/dashboard-store.d.ts +12 -8
  176. package/dist/types/lib/stores/editor-store.d.ts +2 -0
  177. package/dist/types/lib/text-variables/text-variable-types.d.ts +39 -0
  178. package/dist/types/lib/types/common-types.d.ts +34 -1
  179. package/dist/types/lib/utils/card-definition.d.ts +2 -0
  180. package/dist/types/lib/utils/card-utils.d.ts +13 -6
  181. package/dist/types/pdf-table-layout.d.ts +2 -0
  182. package/dist/types/shared/analytics-protocol/index.d.ts +1 -1
  183. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +45 -0
  184. package/dist/types/shared/analytics-protocol/matrix-member-presentation.d.ts +4 -0
  185. package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +56 -0
  186. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  187. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +36 -1
  188. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +5 -0
  189. package/dist/types/shared/format-utils/index.d.ts +1 -0
  190. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +690 -1
  191. package/dist/types/shared/format-utils/matrix-print.d.ts +38 -0
  192. package/dist/types/shared/format-utils/pdf-table-layout/column-bands.d.ts +55 -0
  193. package/dist/types/shared/format-utils/pdf-table-layout/index.d.ts +6 -0
  194. package/dist/types/shared/format-utils/pdf-table-layout/page-size.d.ts +7 -0
  195. package/dist/types/shared/format-utils/pdf-table-layout/table-column-semantics.d.ts +106 -0
  196. package/dist/types/shared/format-utils/pdf-table-layout/table-column-widths.d.ts +13 -0
  197. package/dist/types/shared/format-utils/pdf-table-layout/table-page-geometry.d.ts +19 -0
  198. package/dist/types/shared/format-utils/pdf-table-layout/wide-table-layout.d.ts +46 -0
  199. package/dist/types/shared/format-utils/table-structure.d.ts +9 -0
  200. package/package.json +6 -1
  201. package/dist/chunks/edit-dashboard-visual-CI0EqzKj.cjs +0 -172
  202. package/dist/chunks/field-aggregations-jSi77h9Z.cjs +0 -1
  203. package/dist/chunks/index-BMMXKK3G.cjs +0 -4
  204. package/dist/chunks/index-C6_xef4P.cjs +0 -1424
  205. package/dist/chunks/matrix-formatter-Dajj91Ni.cjs +0 -1
  206. package/dist/chunks/matrix-member-presentation-CFHjdrxT.cjs +0 -1
  207. package/dist/chunks/pivot-header-presentation-BIf4HW3L.js +0 -414
  208. package/dist/chunks/pivot-header-presentation-B_N11CgN.cjs +0 -5
  209. package/dist/chunks/switch-Ced9ZZwI.cjs +0 -134
  210. package/dist/chunks/validators-DVYAnnX0.cjs +0 -1
@@ -1,22 +1,22 @@
1
- import { b4 as v, S as d, ak as N } from "./validators-CkHsAvwB.js";
2
- import "./matrix-operation-contract-D0HfzwZg.js";
3
- import { t as m, c as _, g as L, e as I, a as p, b as C, d as S, f as k } from "./semantic-format-Dt-nUxFB.js";
4
- import { f as O, i as Z } from "./index-C8w91oj4.js";
5
- import { f as A, w as R, n as z, m as X, h as V, j as $ } from "./raw-temporal-Bj6_w9cG.js";
1
+ import { b5 as v, S as p, al as N, W as _ } from "./validators-CsdOtZI6.js";
2
+ import "./matrix-operation-contract-D32U2CSw.js";
3
+ import { t as m, c as L, g as I, e as A, a as d, b as C, d as O, f as R } from "./semantic-format-DwqGYx4V.js";
4
+ import { f as S, i as Z } from "./index-C8w91oj4.js";
5
+ import { f as k, w as z, n as X, l as V, g as E, i as P } from "./raw-temporal-BqOfk-xN.js";
6
6
  import { b as g, c as y } from "./constants-DeLIHVAW.js";
7
- import { d as P, f as Y } from "./temporal-bucket-B9hMwemw.js";
7
+ import { c as $, f as Y } from "./temporal-bucket-DlFuhCnT.js";
8
8
  function T(t, e) {
9
9
  const n = m(t), s = m(e), r = n.getTime() - s.getTime();
10
10
  return r < 0 ? -1 : r > 0 ? 1 : r;
11
11
  }
12
12
  function j(t) {
13
- return _(t, Date.now());
13
+ return L(t, Date.now());
14
14
  }
15
15
  function B(t, e) {
16
16
  const n = m(t), s = m(e), r = n.getFullYear() - s.getFullYear(), o = n.getMonth() - s.getMonth();
17
17
  return r * 12 + o;
18
18
  }
19
- function E(t) {
19
+ function H(t) {
20
20
  return (e) => {
21
21
  const s = (t ? Math[t] : Math.trunc)(e);
22
22
  return s === 0 ? 0 : s;
@@ -25,19 +25,19 @@ function E(t) {
25
25
  function U(t, e) {
26
26
  return +m(t) - +m(e);
27
27
  }
28
- function q(t) {
28
+ function W(t) {
29
29
  const e = m(t);
30
30
  return e.setHours(23, 59, 59, 999), e;
31
31
  }
32
- function H(t) {
32
+ function q(t) {
33
33
  const e = m(t), n = e.getMonth();
34
34
  return e.setFullYear(e.getFullYear(), n + 1, 0), e.setHours(23, 59, 59, 999), e;
35
35
  }
36
- function W(t) {
36
+ function G(t) {
37
37
  const e = m(t);
38
- return +q(e) == +H(e);
38
+ return +W(e) == +q(e);
39
39
  }
40
- function G(t, e) {
40
+ function K(t, e) {
41
41
  const n = m(t), s = m(e), r = T(n, s), o = Math.abs(
42
42
  B(n, s)
43
43
  );
@@ -47,16 +47,16 @@ function G(t, e) {
47
47
  else {
48
48
  n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - r * o);
49
49
  let a = T(n, s) === -r;
50
- W(m(t)) && o === 1 && T(t, s) === 1 && (a = !1), l = r * (o - Number(a));
50
+ G(m(t)) && o === 1 && T(t, s) === 1 && (a = !1), l = r * (o - Number(a));
51
51
  }
52
52
  return l === 0 ? 0 : l;
53
53
  }
54
- function K(t, e, n) {
54
+ function J(t, e, n) {
55
55
  const s = U(t, e) / 1e3;
56
- return E(n == null ? void 0 : n.roundingMethod)(s);
56
+ return H(n == null ? void 0 : n.roundingMethod)(s);
57
57
  }
58
- function J(t, e, n) {
59
- const s = L(), r = (n == null ? void 0 : n.locale) ?? s.locale ?? I, o = 2520, l = T(t, e);
58
+ function Q(t, e, n) {
59
+ const s = I(), r = (n == null ? void 0 : n.locale) ?? s.locale ?? A, o = 2520, l = T(t, e);
60
60
  if (isNaN(l))
61
61
  throw new RangeError("Invalid time value");
62
62
  const a = Object.assign({}, n, {
@@ -65,8 +65,8 @@ function J(t, e, n) {
65
65
  });
66
66
  let h, u;
67
67
  l > 0 ? (h = m(e), u = m(t)) : (h = m(t), u = m(e));
68
- const f = K(u, h), c = (p(u) - p(h)) / 1e3, i = Math.round((f - c) / 60);
69
- let D;
68
+ const f = J(u, h), c = (d(u) - d(h)) / 1e3, i = Math.round((f - c) / 60);
69
+ let M;
70
70
  if (i < 2)
71
71
  return n != null && n.includeSeconds ? f < 5 ? r.formatDistance("lessThanXSeconds", 5, a) : f < 10 ? r.formatDistance("lessThanXSeconds", 10, a) : f < 20 ? r.formatDistance("lessThanXSeconds", 20, a) : f < 40 ? r.formatDistance("halfAMinute", 0, a) : f < 60 ? r.formatDistance("lessThanXMinutes", 1, a) : r.formatDistance("xMinutes", 1, a) : i === 0 ? r.formatDistance("lessThanXMinutes", 1, a) : r.formatDistance("xMinutes", i, a);
72
72
  if (i < 45)
@@ -74,29 +74,29 @@ function J(t, e, n) {
74
74
  if (i < 90)
75
75
  return r.formatDistance("aboutXHours", 1, a);
76
76
  if (i < g) {
77
- const M = Math.round(i / 60);
78
- return r.formatDistance("aboutXHours", M, a);
77
+ const D = Math.round(i / 60);
78
+ return r.formatDistance("aboutXHours", D, a);
79
79
  } else {
80
80
  if (i < o)
81
81
  return r.formatDistance("xDays", 1, a);
82
82
  if (i < y) {
83
- const M = Math.round(i / g);
84
- return r.formatDistance("xDays", M, a);
83
+ const D = Math.round(i / g);
84
+ return r.formatDistance("xDays", D, a);
85
85
  } else if (i < y * 2)
86
- return D = Math.round(i / y), r.formatDistance("aboutXMonths", D, a);
86
+ return M = Math.round(i / y), r.formatDistance("aboutXMonths", M, a);
87
87
  }
88
- if (D = G(u, h), D < 12) {
89
- const M = Math.round(i / y);
90
- return r.formatDistance("xMonths", M, a);
88
+ if (M = K(u, h), M < 12) {
89
+ const D = Math.round(i / y);
90
+ return r.formatDistance("xMonths", D, a);
91
91
  } else {
92
- const M = D % 12, b = Math.trunc(D / 12);
93
- return M < 3 ? r.formatDistance("aboutXYears", b, a) : M < 9 ? r.formatDistance("overXYears", b, a) : r.formatDistance("almostXYears", b + 1, a);
92
+ const D = M % 12, b = Math.trunc(M / 12);
93
+ return D < 3 ? r.formatDistance("aboutXYears", b, a) : D < 9 ? r.formatDistance("overXYears", b, a) : r.formatDistance("almostXYears", b + 1, a);
94
94
  }
95
95
  }
96
- function Q(t, e) {
97
- return J(t, j(t), e);
96
+ function F(t, e) {
97
+ return Q(t, j(t), e);
98
98
  }
99
- function he(t, e) {
99
+ function Me(t, e) {
100
100
  return t && t !== "auto" ? t : e;
101
101
  }
102
102
  function De(t, e = /* @__PURE__ */ new Date()) {
@@ -110,7 +110,7 @@ function De(t, e = /* @__PURE__ */ new Date()) {
110
110
  return t;
111
111
  }
112
112
  }
113
- function Me(t) {
113
+ function ye(t) {
114
114
  try {
115
115
  const e = {
116
116
  timeZone: t,
@@ -135,39 +135,39 @@ function w(t, e = "auto") {
135
135
  return new Date(o);
136
136
  }
137
137
  return new Date(t);
138
- } else return e === "UTC" ? n ? new Date(t) : s ? new Date(t) : /* @__PURE__ */ new Date(t + "Z") : n || s || r ? new Date(t) : O(t, e);
138
+ } else return e === "UTC" ? n ? new Date(t) : s ? new Date(t) : /* @__PURE__ */ new Date(t + "Z") : n || s || r ? new Date(t) : S(t, e);
139
139
  }
140
- const F = "MM/dd/yyyy", ee = (t, e, n, s = "auto") => {
140
+ const ee = "MM/dd/yyyy", te = (t, e, n, s = "auto") => {
141
141
  if (!t)
142
142
  return "";
143
143
  try {
144
144
  const r = w(t, s);
145
145
  if (isNaN(r.getTime()))
146
146
  return t;
147
- const l = (e && e.trim() ? e : F).replace(/LLLL/g, "MMMM").replace(/LLL/g, "MMM");
148
- return n && n !== "auto" ? C(r, n, l) : S(r, l);
147
+ const l = (e && e.trim() ? e : ee).replace(/LLLL/g, "MMMM").replace(/LLL/g, "MMM");
148
+ return n && n !== "auto" ? C(r, n, l) : O(r, l);
149
149
  } catch (r) {
150
150
  return console.error("Date formatting error:", r), t;
151
151
  }
152
- }, te = (t, e = "auto") => {
152
+ }, ne = (t, e = "auto") => {
153
153
  if (!t)
154
154
  return "";
155
155
  try {
156
156
  const n = w(t, e);
157
- return isNaN(n.getTime()) ? t : Q(n, { addSuffix: !0 });
157
+ return isNaN(n.getTime()) ? t : F(n, { addSuffix: !0 });
158
158
  } catch (n) {
159
159
  return console.error("Relative time formatting error:", n), t;
160
160
  }
161
161
  };
162
- function ne(t, e, n, s) {
162
+ function re(t, e, n, s) {
163
163
  const r = t instanceof Date ? t.toISOString() : String(t), o = (s == null ? void 0 : s.browserTimezone) || n, l = (s == null ? void 0 : s.isSqlCard) ?? !1;
164
164
  if (e != null && e.useRelativeTime)
165
- return te(
165
+ return ne(
166
166
  r,
167
167
  (e == null ? void 0 : e.sourceTimezone) || "auto"
168
168
  );
169
169
  const a = e != null && e.useCustomFormat && (e != null && e.customFormat) ? e.customFormat : (e == null ? void 0 : e.format) || "MM/dd/yyyy";
170
- return ee(
170
+ return te(
171
171
  r,
172
172
  a,
173
173
  e != null && e.timezone && (e == null ? void 0 : e.timezone) !== "auto" ? e.timezone : l ? o : n,
@@ -183,13 +183,13 @@ function x(t, e, n) {
183
183
  return String(r);
184
184
  switch (e.type) {
185
185
  case "number":
186
- return o !== void 0 ? A(
186
+ return o !== void 0 ? k(
187
187
  o,
188
188
  e.numberFormat,
189
189
  n.locale
190
190
  ) : String(r);
191
191
  case "date":
192
- return ne(
192
+ return re(
193
193
  r,
194
194
  e.dateFormat,
195
195
  n.timezone,
@@ -208,7 +208,7 @@ function x(t, e, n) {
208
208
  return String(r);
209
209
  }
210
210
  }
211
- function ye(t, e) {
211
+ function Te(t, e) {
212
212
  return e.visibleColumns.map((n) => {
213
213
  const s = t[n], r = e.columnSettings[n];
214
214
  return x(s, r, {
@@ -218,7 +218,7 @@ function ye(t, e) {
218
218
  });
219
219
  });
220
220
  }
221
- function re(t, e) {
221
+ function se(t, e) {
222
222
  var r;
223
223
  const n = t[t.length - 1];
224
224
  if (!n) return "";
@@ -226,21 +226,21 @@ function re(t, e) {
226
226
  const s = n.member.value;
227
227
  return s === null ? "(Blank)" : ((r = e == null ? void 0 : e.get(n.levelId)) == null ? void 0 : r(s)) ?? (typeof s == "object" ? s.value : String(s));
228
228
  }
229
- function se(t, e, n) {
230
- return t === "grand_total" ? n ?? "Grand Total" : t === "subtotal" ? n ?? `${e} Total` : e;
229
+ function ae(t, e, n) {
230
+ return t === "grand_total" ? n ?? "Grand Total" : t === "subtotal" ? (n == null ? void 0 : n.split(_).join(e)) ?? `${e} Total` : e;
231
231
  }
232
- function Te(t, e, n, s) {
232
+ function be(t, e, n, s) {
233
233
  var l;
234
234
  const r = t[t.length - 1], o = e === "grand_total" ? n.grand.label : r ? (l = n.levels[r.levelId]) == null ? void 0 : l.label : void 0;
235
- return se(e, re(t, s), o);
235
+ return ae(e, se(t, s), o);
236
236
  }
237
- function be(t, e, n) {
237
+ function pe(t, e, n) {
238
238
  return t.kind === "value" ? (e == null ? void 0 : e(t.value)) ?? "" : t.kind === "null" ? n.nullText : n.emptyText;
239
239
  }
240
240
  function de(t) {
241
241
  const { path: e, previousPath: n, role: s, repeatLabels: r, levelCount: o } = t;
242
242
  return Array.from({ length: o }, (l, a) => {
243
- const h = e.slice(0, a + 1), u = s === "grand_total" ? a === 0 : s === "subtotal" && a === e.length - 1, f = n && n.length > a && d(n.slice(0, a + 1)) === d(h);
243
+ const h = e.slice(0, a + 1), u = s === "grand_total" ? a === 0 : s === "subtotal" && a === e.length - 1, f = n && n.length > a && p(n.slice(0, a + 1)) === p(h);
244
244
  return {
245
245
  path: h,
246
246
  total: u,
@@ -248,15 +248,15 @@ function de(t) {
248
248
  };
249
249
  });
250
250
  }
251
- function ae(t, e) {
252
- return k(t ?? e, {
251
+ function oe(t, e) {
252
+ return R(t ?? e, {
253
253
  preserveOmittedProperties: !0,
254
254
  numericInput: "canonical"
255
255
  });
256
256
  }
257
- function pe(t, e, n) {
257
+ function ge(t, e, n) {
258
258
  const s = /* @__PURE__ */ new Map(), r = (o, l) => {
259
- const a = (l === "levels" ? e.levelFormats : e.measureFormats)[o.id], h = o.semanticFormat, u = ae(a, h);
259
+ const a = (l === "levels" ? e.levelFormats : e.measureFormats)[o.id], h = o.semanticFormat, u = oe(a, h);
260
260
  l === "measures" && s.set(o.id, {
261
261
  isNumeric: N(o.column.dataType) === "number",
262
262
  // Use normalized affixes: a redundant percent suffix is already removed.
@@ -269,19 +269,19 @@ function pe(t, e, n) {
269
269
  absence: e.absence
270
270
  });
271
271
  if (o.column.temporalBucket) {
272
- const c = o.column.temporalBucket, i = P({
272
+ const c = o.column.temporalBucket, i = $({
273
273
  metadata: c,
274
274
  cardFormat: (a == null ? void 0 : a.type) === "temporal_bucket" ? a : void 0,
275
275
  semanticFormat: (h == null ? void 0 : h.type) === "temporal_bucket" ? { granularity: c.granularity, format: h } : void 0,
276
276
  locale: n.valueFormat.locale,
277
277
  styles: { dateStyle: n.valueFormat.dateStyle, dateTime: n.valueFormat.dateTime }
278
278
  });
279
- return (D) => typeof D == "string" ? Y({ value: D, metadata: c, format: i.format }) : f(D);
279
+ return (M) => typeof M == "string" ? Y({ value: M, metadata: c, format: i.format }) : f(M);
280
280
  }
281
281
  if (o.column.rawTemporal) {
282
- const c = R({
282
+ const c = z({
283
283
  metadata: o.column.rawTemporal,
284
- format: z({
284
+ format: X({
285
285
  format: (u == null ? void 0 : u.type) === "date" ? {
286
286
  type: "raw_temporal",
287
287
  timezone: u.timezone,
@@ -298,15 +298,15 @@ function pe(t, e, n) {
298
298
  });
299
299
  return (i) => {
300
300
  if (typeof i != "string") return f(i);
301
- const D = c(i);
302
- return D.ok ? D.text : f(i);
301
+ const M = c(i);
302
+ return M.ok ? M.text : f(i);
303
303
  };
304
304
  }
305
305
  if (Z(u)) {
306
- const c = X(u, n.valueFormat);
307
- return (i) => typeof i == "number" || typeof i == "object" && i !== null ? V(i, c) : f(i);
306
+ const c = V(u, n.valueFormat);
307
+ return (i) => typeof i == "number" || typeof i == "object" && i !== null ? E(i, c) : f(i);
308
308
  }
309
- return (u == null ? void 0 : u.type) === "duration" ? (c) => typeof c == "number" || typeof c == "string" || typeof c == "object" && c !== null ? $(
309
+ return (u == null ? void 0 : u.type) === "duration" ? (c) => typeof c == "number" || typeof c == "string" || typeof c == "object" && c !== null ? P(
310
310
  typeof c == "object" ? c.value : c,
311
311
  u
312
312
  ) : f(c) : (u == null ? void 0 : u.type) === "string" ? (c) => c === null ? f(c) : `${u.prefix ?? ""}${f(c)}${u.suffix ?? ""}` : f;
@@ -322,20 +322,20 @@ function pe(t, e, n) {
322
322
  };
323
323
  }
324
324
  export {
325
- Te as a,
326
- de as b,
327
- be as c,
328
- ee as d,
329
- te as e,
330
- ye as f,
325
+ te as a,
326
+ ne as b,
327
+ ye as c,
328
+ x as d,
329
+ ge as e,
330
+ Te as f,
331
331
  De as g,
332
- Me as h,
333
- w as i,
334
- x as j,
335
- Q as k,
336
- ae as l,
337
- re as m,
338
- se as n,
339
- pe as p,
340
- he as r
332
+ be as h,
333
+ de as i,
334
+ pe as j,
335
+ F as k,
336
+ oe as l,
337
+ se as m,
338
+ ae as n,
339
+ w as p,
340
+ Me as r
341
341
  };
@@ -1,5 +1,5 @@
1
- import { S as d } from "./validators-CkHsAvwB.js";
2
- const m = [
1
+ import { S as f } from "./validators-CsdOtZI6.js";
2
+ const h = [
3
3
  "=",
4
4
  "!=",
5
5
  ">",
@@ -14,11 +14,11 @@ const m = [
14
14
  "not in",
15
15
  "is null",
16
16
  "is not null"
17
- ], g = /* @__PURE__ */ new Set(["string", "number", "date", "boolean"]);
17
+ ], y = /* @__PURE__ */ new Set(["string", "number", "date", "boolean"]);
18
18
  function v(t) {
19
- return typeof t == "string" && m.includes(t);
19
+ return typeof t == "string" && h.includes(t);
20
20
  }
21
- function h(t, e) {
21
+ function b(t, e) {
22
22
  switch (t) {
23
23
  case "is null":
24
24
  case "is not null":
@@ -33,15 +33,15 @@ function h(t, e) {
33
33
  return e.length === 1;
34
34
  }
35
35
  }
36
- function y(t) {
36
+ function P(t) {
37
37
  if (!t || typeof t != "object" || Array.isArray(t))
38
38
  return;
39
- const e = t, r = {};
40
- for (const o of b)
41
- e[o] !== void 0 && (r[o] = e[o]);
42
- return r;
39
+ const e = t, n = {};
40
+ for (const r of S)
41
+ e[r] !== void 0 && (n[r] = e[r]);
42
+ return n;
43
43
  }
44
- const b = [
44
+ const S = [
45
45
  "operation",
46
46
  "values",
47
47
  "valueType",
@@ -49,30 +49,30 @@ const b = [
49
49
  "relativeMeta",
50
50
  "temporalPrecision"
51
51
  ];
52
- function P(t) {
53
- const e = y(t);
52
+ function w(t) {
53
+ const e = P(t);
54
54
  if (!e) return;
55
- const { operation: r, values: o } = e;
56
- if (!v(r) || !Array.isArray(o) || !h(r, o)) return;
57
- const n = typeof e.valueType == "string" && g.has(e.valueType) ? e.valueType : void 0;
55
+ const { operation: n, values: r } = e;
56
+ if (!v(n) || !Array.isArray(r) || !b(n, r)) return;
57
+ const o = typeof e.valueType == "string" && y.has(e.valueType) ? e.valueType : void 0;
58
58
  return {
59
- operation: r,
60
- values: o,
61
- ...n ? { valueType: n } : {},
59
+ operation: n,
60
+ values: r,
61
+ ...o ? { valueType: o } : {},
62
62
  ...e.temporalBucket !== void 0 ? { temporalBucket: e.temporalBucket } : {},
63
63
  ...e.relativeMeta !== void 0 ? { relativeMeta: e.relativeMeta } : {},
64
64
  ...e.temporalPrecision !== void 0 ? { temporalPrecision: e.temporalPrecision } : {}
65
65
  };
66
66
  }
67
67
  function N(t) {
68
- const e = P(t);
68
+ const e = w(t);
69
69
  if (!e)
70
70
  throw new Error(
71
71
  `Filter operation "${String(t.operation)}" cannot be expressed as predicate semantics.`
72
72
  );
73
73
  return e;
74
74
  }
75
- function w(t) {
75
+ function k(t) {
76
76
  return t.operation === "is null" || t.operation === "is not null";
77
77
  }
78
78
  function c(t) {
@@ -84,54 +84,54 @@ function c(t) {
84
84
  t.temporalBucket ?? null
85
85
  ]);
86
86
  }
87
- function S(t) {
87
+ function A(t) {
88
88
  return JSON.stringify(t.map(c).sort());
89
89
  }
90
- function f(t) {
90
+ function m(t) {
91
91
  const e = /* @__PURE__ */ new Map();
92
- for (const r of t)
93
- for (const o of r.tuples) {
94
- const n = o.conditions.filter(
92
+ for (const n of t)
93
+ for (const r of n.tuples) {
94
+ const o = r.conditions.filter(
95
95
  (l) => {
96
96
  var i;
97
97
  return (i = l.field) == null ? void 0 : i.id;
98
98
  }
99
99
  );
100
- if (n.length === 0) continue;
101
- let s = e.get(r.sourceCardId);
102
- s || (s = /* @__PURE__ */ new Map(), e.set(r.sourceCardId, s));
103
- const a = [...n].sort(
100
+ if (o.length === 0) continue;
101
+ let s = e.get(n.sourceCardId);
102
+ s || (s = /* @__PURE__ */ new Map(), e.set(n.sourceCardId, s));
103
+ const a = [...o].sort(
104
104
  (l, i) => c(l).localeCompare(c(i))
105
105
  );
106
- s.set(S(a), a);
106
+ s.set(A(a), a);
107
107
  }
108
- return [...e.entries()].sort(([r], [o]) => r.localeCompare(o)).map(([r, o]) => ({
109
- sourceCardId: r,
110
- tuples: [...o.entries()].sort(([n], [s]) => n.localeCompare(s)).map(([, n]) => ({ conditions: n }))
108
+ return [...e.entries()].sort(([n], [r]) => n.localeCompare(r)).map(([n, r]) => ({
109
+ sourceCardId: n,
110
+ tuples: [...r.entries()].sort(([o], [s]) => o.localeCompare(s)).map(([, o]) => ({ conditions: o }))
111
111
  }));
112
112
  }
113
- function C(t) {
114
- const e = f(t);
113
+ function I(t) {
114
+ const e = m(t);
115
115
  if (e.length !== 0)
116
116
  return {
117
117
  id: "selection",
118
118
  logicalOperator: "AND",
119
119
  negate: !1,
120
120
  conditions: [],
121
- groups: e.map((r) => {
122
- const o = `selection:${r.sourceCardId}`;
121
+ groups: e.map((n) => {
122
+ const r = `selection:${n.sourceCardId}`;
123
123
  return {
124
- id: o,
124
+ id: r,
125
125
  logicalOperator: "OR",
126
126
  negate: !1,
127
127
  conditions: [],
128
- groups: r.tuples.map((n, s) => {
129
- const a = `${o}:${s}`;
128
+ groups: n.tuples.map((o, s) => {
129
+ const a = `${r}:${s}`;
130
130
  return {
131
131
  id: a,
132
132
  logicalOperator: "AND",
133
133
  negate: !1,
134
- conditions: n.conditions.map((l, i) => ({
134
+ conditions: o.conditions.map((l, i) => ({
135
135
  ...l,
136
136
  id: `${a}:${i}`
137
137
  })),
@@ -142,41 +142,41 @@ function C(t) {
142
142
  })
143
143
  };
144
144
  }
145
- function I(t) {
145
+ function T(t) {
146
146
  return JSON.stringify(
147
- f(t).map((e) => [
147
+ m(t).map((e) => [
148
148
  e.sourceCardId,
149
- e.tuples.map((r) => r.conditions.map(c))
149
+ e.tuples.map((n) => n.conditions.map(c))
150
150
  ])
151
151
  );
152
152
  }
153
- function A(t, e) {
154
- var o;
153
+ function C(t, e) {
154
+ var r;
155
155
  if (e === null) return !0;
156
156
  if (e.overrides.length === 0) return t.length <= e.depth;
157
- const r = d(t);
158
- return ((o = e.overrides.find((n) => n.path.length === t.length && d(n.path) === r)) == null ? void 0 : o.expanded) ?? t.length <= e.depth;
157
+ const n = f(t);
158
+ return ((r = e.overrides.find((o) => o.path.length === t.length && f(o.path) === n)) == null ? void 0 : r.expanded) ?? t.length <= e.depth;
159
159
  }
160
- function T(t) {
161
- var p;
162
- const { path: e, levelCount: r, expansion: o, total: n, axis: s } = t, a = e.length >= r || ((p = e[e.length - 1]) == null ? void 0 : p.member.kind) === "others", l = !a && !t.childrenEmpty, i = l && A(e, o), u = s === "rows" && t.rowLayout !== "tabular";
160
+ function O(t) {
161
+ var d;
162
+ const { path: e, levelCount: n, expansion: r, total: o, axis: s } = t, a = e.length >= n || ((d = e[e.length - 1]) == null ? void 0 : d.member.kind) === "others", l = !a && !t.childrenEmpty, i = l && C(e, r), p = s === "rows" && t.rowLayout !== "tabular", g = i && !!t.skipRedundant && !!t.singleChild, u = !!(o != null && o.visible) && !g;
163
163
  return {
164
164
  expandable: l,
165
165
  expanded: i,
166
- memberVisible: u || !i,
167
- valueVisible: a || !!(n != null && n.visible) && (!i || n.position === "before"),
168
- subtotalBefore: !u && i && !!(n != null && n.visible) && n.position === "before",
169
- subtotalAfter: i && !!(n != null && n.visible) && n.position === "after"
166
+ memberVisible: p || !i,
167
+ valueVisible: a || u && (!i || o.position === "before"),
168
+ subtotalBefore: !p && i && u && o.position === "before",
169
+ subtotalAfter: i && u && o.position === "after"
170
170
  };
171
171
  }
172
172
  export {
173
- m as N,
174
- P as a,
175
- A as b,
176
- C as c,
177
- w as i,
178
- y as p,
179
- T as r,
180
- I as s,
173
+ h as N,
174
+ w as a,
175
+ C as b,
176
+ I as c,
177
+ k as i,
178
+ P as p,
179
+ O as r,
180
+ T as s,
181
181
  N as t
182
182
  };
@@ -0,0 +1 @@
1
+ "use strict";const f=require("./validators-DFeDcdpA.cjs"),m=["=","!=",">","<",">=","<=","like","not like","between","not between","in","not in","is null","is not null"],b=new Set(["string","number","date","boolean"]);function S(t){return typeof t=="string"&&m.includes(t)}function E(t,e){switch(t){case"is null":case"is not null":return e.length===0;case"between":case"not between":return e.length===2;case"in":case"not in":return e.length>=1;default:return e.length===1}}function g(t){if(!t||typeof t!="object"||Array.isArray(t))return;const e=t,n={};for(const r of N)e[r]!==void 0&&(n[r]=e[r]);return n}const N=["operation","values","valueType","temporalBucket","relativeMeta","temporalPrecision"];function h(t){const e=g(t);if(!e)return;const{operation:n,values:r}=e;if(!S(n)||!Array.isArray(r)||!E(n,r))return;const o=typeof e.valueType=="string"&&b.has(e.valueType)?e.valueType:void 0;return{operation:n,values:r,...o?{valueType:o}:{},...e.temporalBucket!==void 0?{temporalBucket:e.temporalBucket}:{},...e.relativeMeta!==void 0?{relativeMeta:e.relativeMeta}:{},...e.temporalPrecision!==void 0?{temporalPrecision:e.temporalPrecision}:{}}}function A(t){const e=h(t);if(!e)throw new Error(`Filter operation "${String(t.operation)}" cannot be expressed as predicate semantics.`);return e}function C(t){return t.operation==="is null"||t.operation==="is not null"}function c(t){var e;return JSON.stringify([((e=t.field)==null?void 0:e.id)??"",t.operator,t.value??null,t.temporalBucket??null])}function I(t){return JSON.stringify(t.map(c).sort())}function v(t){const e=new Map;for(const n of t)for(const r of n.tuples){const o=r.conditions.filter(l=>{var i;return(i=l.field)==null?void 0:i.id});if(o.length===0)continue;let a=e.get(n.sourceCardId);a||(a=new Map,e.set(n.sourceCardId,a));const s=[...o].sort((l,i)=>c(l).localeCompare(c(i)));a.set(I(s),s)}return[...e.entries()].sort(([n],[r])=>n.localeCompare(r)).map(([n,r])=>({sourceCardId:n,tuples:[...r.entries()].sort(([o],[a])=>o.localeCompare(a)).map(([,o])=>({conditions:o}))}))}function T(t){const e=v(t);if(e.length!==0)return{id:"selection",logicalOperator:"AND",negate:!1,conditions:[],groups:e.map(n=>{const r=`selection:${n.sourceCardId}`;return{id:r,logicalOperator:"OR",negate:!1,conditions:[],groups:n.tuples.map((o,a)=>{const s=`${r}:${a}`;return{id:s,logicalOperator:"AND",negate:!1,conditions:o.conditions.map((l,i)=>({...l,id:`${s}:${i}`})),groups:[]}})}})}}function w(t){return JSON.stringify(v(t).map(e=>[e.sourceCardId,e.tuples.map(n=>n.conditions.map(c))]))}function y(t,e){var r;if(e===null)return!0;if(e.overrides.length===0)return t.length<=e.depth;const n=f.matrixPathKey(t);return((r=e.overrides.find(o=>o.path.length===t.length&&f.matrixPathKey(o.path)===n))==null?void 0:r.expanded)??t.length<=e.depth}function k(t){var p;const{path:e,levelCount:n,expansion:r,total:o,axis:a}=t,s=e.length>=n||((p=e[e.length-1])==null?void 0:p.member.kind)==="others",l=!s&&!t.childrenEmpty,i=l&&y(e,r),d=a==="rows"&&t.rowLayout!=="tabular",P=i&&!!t.skipRedundant&&!!t.singleChild,u=!!(o!=null&&o.visible)&&!P;return{expandable:l,expanded:i,memberVisible:d||!i,valueVisible:s||u&&(!i||o.position==="before"),subtotalBefore:!d&&i&&u&&o.position==="before",subtotalAfter:i&&u&&o.position==="after"}}exports.NATIVE_PREDICATE_OPERATIONS=m;exports.compileSelectionFilterGroup=T;exports.isMatrixPathExpanded=y;exports.isNullCheckPredicate=C;exports.parseNativePredicateSemantics=h;exports.projectNativePredicateSemantics=g;exports.resolveMatrixMemberPresentation=k;exports.selectionFilterGroupKey=w;exports.toNativePredicateSemantics=A;