react-semaphor 0.1.472 → 0.1.473

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 (67) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +102 -94
  3. package/dist/brand-studio/index.cjs +1 -1
  4. package/dist/brand-studio/index.js +4 -4
  5. package/dist/briefings/index.js +4 -4
  6. package/dist/chunks/{analyze-result-contract-B3agc2XU.js → analyze-result-contract-C8s8EUL5.js} +1 -1
  7. package/dist/chunks/{common-types-g_1fKJLK.js → common-types-BLPy5_E0.js} +1 -1
  8. package/dist/chunks/{dashboard-briefing-launcher-Lw4gjW_M.js → dashboard-briefing-launcher-B0f28WrK.js} +9 -9
  9. package/dist/chunks/{dashboard-briefing-launcher-8vxGyexK.cjs → dashboard-briefing-launcher-BjCkA5vw.cjs} +1 -1
  10. package/dist/chunks/{dashboard-controls-BKR8g3M9.cjs → dashboard-controls-BRclCQEX.cjs} +1 -1
  11. package/dist/chunks/{dashboard-controls-CRgDlxdt.js → dashboard-controls-CMJqSLgo.js} +9 -9
  12. package/dist/chunks/{dashboard-filter-value-compatibility-ilbH2A31.js → dashboard-filter-value-compatibility-9W8Ckcle.js} +168 -158
  13. package/dist/chunks/dashboard-filter-value-compatibility-Co1dn9Bc.cjs +1 -0
  14. package/dist/chunks/{dashboard-input-contract-Vr_3ApfF.js → dashboard-input-contract-BrGdGFz0.js} +6 -6
  15. package/dist/chunks/{dashboard-json-BhhVg9mI.js → dashboard-json-1ohpjO_q.js} +7 -7
  16. package/dist/chunks/{dashboard-json-CUgAzrYq.cjs → dashboard-json-DmtGHdDq.cjs} +1 -1
  17. package/dist/chunks/{edit-dashboard-visual-DlQtYQOO.js → edit-dashboard-visual-D9oKtOo6.js} +12 -12
  18. package/dist/chunks/{edit-dashboard-visual-BxmanBVo.cjs → edit-dashboard-visual-DNqJHdHE.cjs} +1 -1
  19. package/dist/chunks/{editor-action-buttons-CRWacpxi.js → editor-action-buttons-C_B8Wzkf.js} +6 -6
  20. package/dist/chunks/{editor-action-buttons-DKcD0UQy.cjs → editor-action-buttons-DwI3FcSw.cjs} +1 -1
  21. package/dist/chunks/{index-xdqe-Zvd.cjs → index-B6zSYUN4.cjs} +167 -167
  22. package/dist/chunks/{index-0fmECZL2.js → index-DalKzjEZ.js} +31914 -31864
  23. package/dist/chunks/{index-oVXvCLH-.js → index-DsvIlrI-.js} +9 -9
  24. package/dist/chunks/matrix-result-contract-Bhg60NtS.cjs +1 -0
  25. package/dist/chunks/matrix-result-contract-BpzhImar.js +421 -0
  26. package/dist/chunks/{pivot-header-presentation-7XrwJYDm.js → pivot-header-presentation-Be3FyR0N.js} +2 -2
  27. package/dist/chunks/{pivot-result-identity-5v4hRVbc.js → pivot-result-identity-CIZXsI53.js} +1 -1
  28. package/dist/chunks/{pivot-result-lifecycle-O_roVguV.js → pivot-result-lifecycle-PxmbJWkm.js} +19 -19
  29. package/dist/chunks/{raw-temporal-contract-BEMf3avg.js → raw-temporal-contract-U8J9RlEH.js} +1 -1
  30. package/dist/chunks/{report-preferences-dialog-Dxt9XMpd.js → report-preferences-dialog-C9mJffNQ.js} +6 -6
  31. package/dist/chunks/{report-preferences-dialog-8KYKazoG.cjs → report-preferences-dialog-DGMd-eTT.cjs} +1 -1
  32. package/dist/chunks/{report-runtime-context-DnNbpkGo.js → report-runtime-context-DNbgCsko.js} +7 -7
  33. package/dist/chunks/{saved-temporal-bucket-format-CygnBDO2.js → saved-temporal-bucket-format-CHsXUPJI.js} +8 -8
  34. package/dist/chunks/source-entity-resolution-BDC-Qngk.cjs +1 -0
  35. package/dist/chunks/source-entity-resolution-ugN3sZUk.js +781 -0
  36. package/dist/chunks/{switch-CQN9Hzho.cjs → switch-B4eH4guz.cjs} +13 -13
  37. package/dist/chunks/{switch-n2yUNY8i.js → switch-D20CIzj6.js} +1460 -1455
  38. package/dist/chunks/{temporal-bucket-CUKJktCl.js → temporal-bucket-CtP7hKLa.js} +12 -12
  39. package/dist/chunks/{temporal-bucket-authoring-CZoJV2L6.js → temporal-bucket-authoring-DJ9kK2wD.js} +3 -3
  40. package/dist/chunks/{temporal-bucket-contract-Cno9TlYr.js → temporal-bucket-contract-CZl5D7FZ.js} +1 -1
  41. package/dist/chunks/{token-types-W3EHNW-D.js → token-types-DfDtCqlw.js} +1 -1
  42. package/dist/chunks/{update-policy-kRNJwwUV.js → update-policy-BybMiM61.js} +1 -1
  43. package/dist/chunks/{validators-B5t1s8oh.js → validators-D-T-2HOR.js} +50 -50
  44. package/dist/dashboard/index.cjs +1 -1
  45. package/dist/dashboard/index.js +2 -2
  46. package/dist/dashboard-authoring/index.cjs +3 -3
  47. package/dist/dashboard-authoring/index.js +355 -341
  48. package/dist/data-app-builder/index.cjs +1 -1
  49. package/dist/data-app-builder/index.js +2 -2
  50. package/dist/data-app-codegen/index.js +2 -2
  51. package/dist/data-app-codegen-node/index.js +3 -3
  52. package/dist/data-app-sdk/index.js +3 -3
  53. package/dist/data-app-sdk-adapters/index.js +2 -2
  54. package/dist/data-app-sdk-validation/index.js +9 -9
  55. package/dist/format-utils/index.js +10 -10
  56. package/dist/index.cjs +1 -1
  57. package/dist/index.js +14 -14
  58. package/dist/report-runtime-context/index.js +2 -2
  59. package/dist/surfboard/index.cjs +1 -1
  60. package/dist/surfboard/index.js +3 -3
  61. package/dist/types/analytics-protocol.d.ts +141 -0
  62. package/dist/types/index.js +4 -4
  63. package/dist/types/main.d.ts +7 -0
  64. package/package.json +1 -1
  65. package/dist/chunks/dashboard-filter-value-compatibility-Dmh-NaPK.cjs +0 -1
  66. package/dist/chunks/matrix-result-contract-DoU9diAh.js +0 -822
  67. package/dist/chunks/matrix-result-contract-SrzyG_KQ.cjs +0 -1
@@ -1,16 +1,16 @@
1
1
  var Je = Object.defineProperty;
2
2
  var Qe = (e, r, t) => r in e ? Je(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
3
  var _ = (e, r, t) => Qe(e, typeof r != "symbol" ? r + "" : r, t);
4
- import { F as Xe, D as et, q as tt, E as rt, A as J, u as q, o as nt, M as ot, w as at, R as it, i as Ce, b as ct, m as lt, P as U } from "./pivot-result-lifecycle-O_roVguV.js";
4
+ import { F as Xe, D as et, q as tt, E as rt, A as J, u as q, o as nt, M as ot, w as at, R as it, i as Ce, b as ct, m as lt, P as U } from "./pivot-result-lifecycle-PxmbJWkm.js";
5
5
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as de } from "../value-format-preferences/index.js";
6
- import { E as Te, l as dt, q as ae } from "./validators-B5t1s8oh.js";
7
- import "./analyze-result-contract-B3agc2XU.js";
8
- import { h as $e, r as ke, a as Ee, v as st, i as mt } from "./saved-temporal-bucket-format-CygnBDO2.js";
9
- import { r as z, b as ut, d as ft, P as pt } from "./pivot-result-identity-5v4hRVbc.js";
10
- import { v as yt, a as ht } from "./temporal-bucket-contract-Cno9TlYr.js";
11
- import { h as gt, T as vt, k as xe, i as bt } from "./temporal-bucket-CUKJktCl.js";
12
- import { r as Se, s as It, i as wt } from "./temporal-bucket-authoring-CZoJV2L6.js";
13
- import { v as _e } from "./raw-temporal-contract-BEMf3avg.js";
6
+ import { F as Te, m as dt, r as ae } from "./validators-D-T-2HOR.js";
7
+ import "./analyze-result-contract-C8s8EUL5.js";
8
+ import { h as $e, r as ke, a as Ee, v as st, i as mt } from "./saved-temporal-bucket-format-CHsXUPJI.js";
9
+ import { r as z, b as ut, d as ft, P as pt } from "./pivot-result-identity-CIZXsI53.js";
10
+ import { v as yt, a as ht } from "./temporal-bucket-contract-CZl5D7FZ.js";
11
+ import { h as gt, T as vt, k as xe, i as bt } from "./temporal-bucket-CtP7hKLa.js";
12
+ import { r as Se, s as It, i as wt } from "./temporal-bucket-authoring-DJ9kK2wD.js";
13
+ import { v as _e } from "./raw-temporal-contract-U8J9RlEH.js";
14
14
  import { r as Ct, a as Tt, b as $t } from "./canonical-result-keys-CEQefvdO.js";
15
15
  const kt = `import pandas as pd
16
16
  df = pd.DataFrame(data) # 'data' contains the query result
@@ -0,0 +1 @@
1
+ "use strict";var _=Object.defineProperty;var B=(e,t,a)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var p=(e,t,a)=>B(e,typeof t!="symbol"?t+"":t,a);const S=require("./temporal-bucket-9Wz9Ds6H.cjs"),T=require("./validators-DcshgK7w.cjs"),k=require("./temporal-bucket-contract-BD862TAa.cjs");class w extends Error{constructor(a){super(a.message);p(this,"code");p(this,"path");this.name="MatrixResultContractError",this.code=a.code,this.path=a.path}}function R(e){var u,m,x;const t=H(e);if(t!==2)throw new w({code:"unsupported_matrix_result_version",message:`Canonical Matrix results require schemaVersion 2; received ${String(t)}.`,path:"schemaVersion"});const a=T.semaphorMatrixResultSchema.safeParse(e);if(!a.success){const d=a.error.issues[0];throw o((d==null?void 0:d.message)||"Canonical Matrix result has an invalid shape.",d==null?void 0:d.path.join("."))}const r=a.data,s={row:$(r.axes.rows.levels,"axes.rows.levels"),column:$(r.axes.columns.levels,"axes.columns.levels")};G(r),b(r,"row"),b(r,"column");const i=new Set([...r.axes.rows.nodeIds,...r.axes.columns.nodeIds]),n=new Set;for(const[d,l]of Object.entries(r.nodesById)){if(l.id!==d)throw o("Matrix node directory key must equal node.id.",`nodesById.${d}.id`);if(!i.has(d))throw o("Matrix node directory cannot contain nodes omitted from both axes.",`nodesById.${d}`);q(l,s[l.axis],`nodesById.${d}`);const f=JSON.stringify([l.axis,l.path,l.isSubtotal===!0,l.isGrandTotal===!0]);if(n.has(f))throw o("Matrix nodes must have unique canonical path and total-role identity.",`nodesById.${d}`);n.add(f),O(r,l,`nodesById.${d}`)}const c=new Set;for(const[d,l]of r.cells.entries()){if(!((u=r.nodesById[l.rowId])!=null&&u.axis)||((m=r.nodesById[l.rowId])==null?void 0:m.axis)!=="row")throw o("Matrix cell rowId must reference a row node.",`cells.${d}.rowId`);if(l.columnId&&((x=r.nodesById[l.columnId])==null?void 0:x.axis)!=="column")throw o("Matrix cell columnId must reference a column node.",`cells.${d}.columnId`);if(!r.measuresById[l.measureId])throw o("Matrix cell measureId must reference a measure.",`cells.${d}.measureId`);const f=K(r.nodesById[l.rowId],l.columnId?r.nodesById[l.columnId]:void 0);if(l.role!==f)throw o("Matrix cell role must match its referenced row and column total roles.",`cells.${d}.role`);const I=JSON.stringify([l.rowId,l.columnId??null,l.measureId]);if(c.has(I))throw o("Matrix result cannot contain duplicate physical cell addresses.",`cells.${d}`);c.add(I)}return C(r,s),r}function $(e,t){var r;const a=new Map;for(const[s,i]of e.entries()){const n=`${t}.${s}`;if(a.has(i.instanceId))throw o("Matrix axis level ids must be unique.",`${n}.instanceId`);a.set(i.instanceId,i);const c=i.field.role==="date"||i.field.dataType==="date"||i.field.dataType==="datetime",u=i.field.dataType==="string"||i.field.dataType==="number"||i.field.dataType==="boolean";if(c&&!i.grain)throw o("Temporal Matrix axis level is missing its explicit grain.",`${n}.grain`);if(u&&i.grain)throw o("Non-temporal Matrix axis level cannot carry a grain.",`${n}.grain`);if(i.grain){if(!i.temporalBucket)throw o("Temporal Matrix axis level is missing governed bucket metadata.",`${n}.temporalBucket`);const m=k.validateTemporalBucketMetadata(i.temporalBucket);if(!m.ok||((r=m.value)==null?void 0:r.granularity)!==i.grain)throw o("Matrix axis grain and temporal metadata must agree.",`${n}.temporalBucket`)}else if(i.temporalBucket)throw o("Non-temporal Matrix axis levels cannot carry temporal bucket metadata.",n)}return a}function b(e,t){var s;const a=t==="row"?e.axes.rows:e.axes.columns,r=new Set;for(const[i,n]of a.nodeIds.entries()){if(r.has(n))throw o("Matrix axis node ids must be unique.",`axes.${t==="row"?"rows":"columns"}.nodeIds.${i}`);if(r.add(n),((s=e.nodesById[n])==null?void 0:s.axis)!==t)throw o("Matrix axis node id references the wrong axis.",`axes.${t==="row"?"rows":"columns"}.nodeIds.${i}`)}}function q(e,t,a){if(e.isGrandTotal){if(e.isSubtotal)throw o("Matrix nodes cannot be both subtotal and grand total.",a);if(e.path.length!==0)throw o("Matrix grand-total nodes must have an empty member path.",`${a}.path`);return}if(!e.path.length||e.level!==e.path.length-1)throw o("Ordinary and subtotal Matrix nodes require a level-aligned non-empty path.",a);const r=[...t.values()];if(e.path.length>r.length)throw o("Matrix node path exceeds its authored axis depth.",`${a}.path`);if(e.isSubtotal&&e.path.length>=r.length)throw o("Matrix subtotal nodes must identify a proper authored-axis prefix.",`${a}.path`);e.path.forEach((c,u)=>{const m=r[u];if(c.instanceId==="__matrix_remaining__"&&c.fieldKey==="__matrix_remaining__"&&c.value==="__matrix_remaining__"){if(u!==e.path.length-1)throw o("Matrix remaining-member identity must be the terminal path segment.",`${a}.path.${u}`);if(typeof c.label!="string")throw o("Matrix remaining-member paths require their explicit display label.",`${a}.path.${u}.label`);return}if(!m||c.instanceId!==m.instanceId||c.fieldKey!==m.fieldKey)throw o("Matrix member path must follow authored axis order and identity.",`${a}.path.${u}`);g(c,m,`${a}.path.${u}`)});const s=e.path[e.path.length-1],i=s.instanceId==="__matrix_remaining__"&&s.fieldKey==="__matrix_remaining__"&&s.value==="__matrix_remaining__";if(!y(e.value,s.value))throw o("Matrix node value must equal its final canonical path member.",`${a}.value`);const n=r[e.path.length-1];if(n!=null&&n.temporalBucket&&!e.isSubtotal&&!i&&e.label!==void 0)throw o("Temporal Matrix nodes cannot transport display labels.",`${a}.label`);if((!(n!=null&&n.temporalBucket)||i)&&typeof e.label!="string")throw o("Non-temporal Matrix nodes require a display label.",`${a}.label`)}function K(e,t){return e.isGrandTotal&&(t!=null&&t.isGrandTotal)?"matrixGrandTotal":e.isGrandTotal?"rowGrandTotal":t!=null&&t.isGrandTotal?"columnGrandTotal":e.isSubtotal&&(t!=null&&t.isSubtotal)?"subtotalIntersection":e.isSubtotal?"rowSubtotal":t!=null&&t.isSubtotal?"columnSubtotal":"value"}function g(e,t,a){if(t.temporalBucket){if(e.label!==void 0)throw o("Temporal Matrix path members cannot transport display labels.",`${a}.label`);if(e.value!==null&&typeof e.value!="string")throw o("Temporal Matrix member values must be canonical strings or null.",`${a}.value`);const r=S.parseTemporalBucketValue(e.value,t.temporalBucket);if(!r.ok)throw o(r.error.message,`${a}.value`)}else if(typeof e.label!="string")throw o("Non-temporal Matrix path members require a display label.",`${a}.label`)}function C(e,t){const a=[...t.row.values()];if(e.layout.rowHeaderLevels.length!==a.length)throw o("Matrix row-header layout must describe every row-axis level exactly once.","layout.rowHeaderLevels");e.layout.rowHeaderLevels.forEach((s,i)=>{var n;if(s.fieldInstanceId!==((n=a[i])==null?void 0:n.instanceId))throw o("Matrix row-header layout must follow authored row-axis order.",`layout.rowHeaderLevels.${i}.fieldInstanceId`)});for(const[s,i]of e.layout.columnHeaderRows.entries())for(const[n,c]of i.cells.entries()){if(v(c.columnPath,t.column,`layout.columnHeaderRows.${s}.cells.${n}.columnPath`),c.measureInstanceId&&!e.measuresById[c.measureInstanceId])throw o("Matrix header measureInstanceId must reference a measure.",`layout.columnHeaderRows.${s}.cells.${n}.measureInstanceId`);if(c.role==="columnHeader"&&c.label!==void 0)throw o("Matrix member headers cannot transport composed display labels.",`layout.columnHeaderRows.${s}.cells.${n}.label`)}const r=new Set;for(const[s,i]of e.layout.columns.entries()){if(r.has(i.id))throw o("Matrix layout column ids must be unique.",`layout.columns.${s}.id`);if(r.add(i.id),v(i.columnPath,t.column,`layout.columns.${s}.columnPath`),i.role==="value"&&i.columnPath.length>0&&i.label!==void 0)throw o("Matrix value columns with member paths cannot transport composed display labels.",`layout.columns.${s}.label`);if(!e.measuresById[i.measureInstanceId])throw o("Matrix layout column measureInstanceId must reference a measure.",`layout.columns.${s}.measureInstanceId`);if(i.columnNodeId){const n=e.nodesById[i.columnNodeId];if((n==null?void 0:n.axis)!=="column"||!y(n.path,i.columnPath))throw o("Matrix layout column must match its referenced column node path.",`layout.columns.${s}.columnNodeId`)}else if(t.column.size>0)throw o("Matrix columns with an authored column axis require a columnNodeId.",`layout.columns.${s}.columnNodeId`)}}function v(e,t,a){const r=[...t.values()];if(e.length>r.length)throw o("Matrix layout path exceeds its authored axis depth.",a);e.forEach((s,i)=>{const n=r[i];if(!n||s.instanceId!==n.instanceId||s.fieldKey!==n.fieldKey)throw o("Matrix layout path must follow authored axis order and identity.",`${a}.${i}`);g(s,n,`${a}.${i}`)})}function O(e,t,a){if(!t.parentId)return;const r=e.nodesById[t.parentId];if(!r)throw o("Matrix parentId must reference an existing node.",`${a}.parentId`);if(r.axis!==t.axis||r.path.length!==t.path.length-1||!y(r.path,t.path.slice(0,-1)))throw o("Matrix parentId must reference the immediate same-axis path prefix.",`${a}.parentId`)}function G(e){for(const[t,a]of[["rows",e.axes.rows],["columns",e.axes.columns]]){const r=t==="rows"?"row":"column";a.levels.forEach((s,i)=>{const n=e.fieldsById[s.instanceId];if(!n||n.instanceId!==s.instanceId||n.fieldKey!==s.fieldKey||n.role!==r||!M(n.field,s.field))throw o("Matrix axis level must have one matching role-scoped field descriptor.",`axes.${t}.levels.${i}`)})}for(const[t,a]of Object.entries(e.measuresById)){if(a.instanceId!==t)throw o("Matrix measure directory key must equal measure.instanceId.",`measuresById.${t}.instanceId`);const r=e.fieldsById[t];if(!r||r.instanceId!==t||r.fieldKey!==a.fieldKey||r.role!=="measure"||!M(r.field,a.field))throw o("Matrix measure must have one matching field descriptor.",`measuresById.${t}`)}}function H(e){return e&&typeof e=="object"?e.schemaVersion:void 0}function y(e,t){return JSON.stringify(e)===JSON.stringify(t)}function M(e,t){return h(e)===h(t)}function h(e){if(Array.isArray(e))return`[${e.map(h).join(",")}]`;if(e&&typeof e=="object"){const t=e;return`{${Object.keys(t).filter(a=>t[a]!==void 0).sort().map(a=>`${JSON.stringify(a)}:${h(t[a])}`).join(",")}}`}return e===void 0?"undefined":JSON.stringify(e)}function o(e,t){return new w({code:"invalid_matrix_result_contract",message:e,path:t})}exports.MatrixResultContractError=w;exports.parseCanonicalMatrixResult=R;
@@ -0,0 +1,421 @@
1
+ var _ = Object.defineProperty;
2
+ var B = (e, t, a) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var x = (e, t, a) => B(e, typeof t != "symbol" ? t + "" : t, a);
4
+ import { p as S } from "./temporal-bucket-CtP7hKLa.js";
5
+ import { d as T } from "./validators-D-T-2HOR.js";
6
+ import { v as k } from "./temporal-bucket-contract-CZl5D7FZ.js";
7
+ class g extends Error {
8
+ constructor(a) {
9
+ super(a.message);
10
+ x(this, "code");
11
+ x(this, "path");
12
+ this.name = "MatrixResultContractError", this.code = a.code, this.path = a.path;
13
+ }
14
+ }
15
+ function V(e) {
16
+ var u, m, p;
17
+ const t = G(e);
18
+ if (t !== 2)
19
+ throw new g({
20
+ code: "unsupported_matrix_result_version",
21
+ message: `Canonical Matrix results require schemaVersion 2; received ${String(t)}.`,
22
+ path: "schemaVersion"
23
+ });
24
+ const a = T.safeParse(e);
25
+ if (!a.success) {
26
+ const d = a.error.issues[0];
27
+ throw o(
28
+ (d == null ? void 0 : d.message) || "Canonical Matrix result has an invalid shape.",
29
+ d == null ? void 0 : d.path.join(".")
30
+ );
31
+ }
32
+ const r = a.data, s = {
33
+ row: I(r.axes.rows.levels, "axes.rows.levels"),
34
+ column: I(
35
+ r.axes.columns.levels,
36
+ "axes.columns.levels"
37
+ )
38
+ };
39
+ C(r), $(r, "row"), $(r, "column");
40
+ const i = /* @__PURE__ */ new Set([
41
+ ...r.axes.rows.nodeIds,
42
+ ...r.axes.columns.nodeIds
43
+ ]), n = /* @__PURE__ */ new Set();
44
+ for (const [d, l] of Object.entries(r.nodesById)) {
45
+ if (l.id !== d)
46
+ throw o(
47
+ "Matrix node directory key must equal node.id.",
48
+ `nodesById.${d}.id`
49
+ );
50
+ if (!i.has(d))
51
+ throw o(
52
+ "Matrix node directory cannot contain nodes omitted from both axes.",
53
+ `nodesById.${d}`
54
+ );
55
+ R(l, s[l.axis], `nodesById.${d}`);
56
+ const f = JSON.stringify([
57
+ l.axis,
58
+ l.path,
59
+ l.isSubtotal === !0,
60
+ l.isGrandTotal === !0
61
+ ]);
62
+ if (n.has(f))
63
+ throw o(
64
+ "Matrix nodes must have unique canonical path and total-role identity.",
65
+ `nodesById.${d}`
66
+ );
67
+ n.add(f), O(r, l, `nodesById.${d}`);
68
+ }
69
+ const c = /* @__PURE__ */ new Set();
70
+ for (const [d, l] of r.cells.entries()) {
71
+ if (!((u = r.nodesById[l.rowId]) != null && u.axis) || ((m = r.nodesById[l.rowId]) == null ? void 0 : m.axis) !== "row")
72
+ throw o(
73
+ "Matrix cell rowId must reference a row node.",
74
+ `cells.${d}.rowId`
75
+ );
76
+ if (l.columnId && ((p = r.nodesById[l.columnId]) == null ? void 0 : p.axis) !== "column")
77
+ throw o(
78
+ "Matrix cell columnId must reference a column node.",
79
+ `cells.${d}.columnId`
80
+ );
81
+ if (!r.measuresById[l.measureId])
82
+ throw o(
83
+ "Matrix cell measureId must reference a measure.",
84
+ `cells.${d}.measureId`
85
+ );
86
+ const f = K(
87
+ r.nodesById[l.rowId],
88
+ l.columnId ? r.nodesById[l.columnId] : void 0
89
+ );
90
+ if (l.role !== f)
91
+ throw o(
92
+ "Matrix cell role must match its referenced row and column total roles.",
93
+ `cells.${d}.role`
94
+ );
95
+ const y = JSON.stringify([
96
+ l.rowId,
97
+ l.columnId ?? null,
98
+ l.measureId
99
+ ]);
100
+ if (c.has(y))
101
+ throw o(
102
+ "Matrix result cannot contain duplicate physical cell addresses.",
103
+ `cells.${d}`
104
+ );
105
+ c.add(y);
106
+ }
107
+ return q(r, s), r;
108
+ }
109
+ function I(e, t) {
110
+ var r;
111
+ const a = /* @__PURE__ */ new Map();
112
+ for (const [s, i] of e.entries()) {
113
+ const n = `${t}.${s}`;
114
+ if (a.has(i.instanceId))
115
+ throw o(
116
+ "Matrix axis level ids must be unique.",
117
+ `${n}.instanceId`
118
+ );
119
+ a.set(i.instanceId, i);
120
+ const c = i.field.role === "date" || i.field.dataType === "date" || i.field.dataType === "datetime", u = i.field.dataType === "string" || i.field.dataType === "number" || i.field.dataType === "boolean";
121
+ if (c && !i.grain)
122
+ throw o(
123
+ "Temporal Matrix axis level is missing its explicit grain.",
124
+ `${n}.grain`
125
+ );
126
+ if (u && i.grain)
127
+ throw o(
128
+ "Non-temporal Matrix axis level cannot carry a grain.",
129
+ `${n}.grain`
130
+ );
131
+ if (i.grain) {
132
+ if (!i.temporalBucket)
133
+ throw o(
134
+ "Temporal Matrix axis level is missing governed bucket metadata.",
135
+ `${n}.temporalBucket`
136
+ );
137
+ const m = k(i.temporalBucket);
138
+ if (!m.ok || ((r = m.value) == null ? void 0 : r.granularity) !== i.grain)
139
+ throw o(
140
+ "Matrix axis grain and temporal metadata must agree.",
141
+ `${n}.temporalBucket`
142
+ );
143
+ } else if (i.temporalBucket)
144
+ throw o(
145
+ "Non-temporal Matrix axis levels cannot carry temporal bucket metadata.",
146
+ n
147
+ );
148
+ }
149
+ return a;
150
+ }
151
+ function $(e, t) {
152
+ var s;
153
+ const a = t === "row" ? e.axes.rows : e.axes.columns, r = /* @__PURE__ */ new Set();
154
+ for (const [i, n] of a.nodeIds.entries()) {
155
+ if (r.has(n))
156
+ throw o(
157
+ "Matrix axis node ids must be unique.",
158
+ `axes.${t === "row" ? "rows" : "columns"}.nodeIds.${i}`
159
+ );
160
+ if (r.add(n), ((s = e.nodesById[n]) == null ? void 0 : s.axis) !== t)
161
+ throw o(
162
+ "Matrix axis node id references the wrong axis.",
163
+ `axes.${t === "row" ? "rows" : "columns"}.nodeIds.${i}`
164
+ );
165
+ }
166
+ }
167
+ function R(e, t, a) {
168
+ if (e.isGrandTotal) {
169
+ if (e.isSubtotal)
170
+ throw o(
171
+ "Matrix nodes cannot be both subtotal and grand total.",
172
+ a
173
+ );
174
+ if (e.path.length !== 0)
175
+ throw o(
176
+ "Matrix grand-total nodes must have an empty member path.",
177
+ `${a}.path`
178
+ );
179
+ return;
180
+ }
181
+ if (!e.path.length || e.level !== e.path.length - 1)
182
+ throw o(
183
+ "Ordinary and subtotal Matrix nodes require a level-aligned non-empty path.",
184
+ a
185
+ );
186
+ const r = [...t.values()];
187
+ if (e.path.length > r.length)
188
+ throw o(
189
+ "Matrix node path exceeds its authored axis depth.",
190
+ `${a}.path`
191
+ );
192
+ if (e.isSubtotal && e.path.length >= r.length)
193
+ throw o(
194
+ "Matrix subtotal nodes must identify a proper authored-axis prefix.",
195
+ `${a}.path`
196
+ );
197
+ e.path.forEach((c, u) => {
198
+ const m = r[u];
199
+ if (c.instanceId === "__matrix_remaining__" && c.fieldKey === "__matrix_remaining__" && c.value === "__matrix_remaining__") {
200
+ if (u !== e.path.length - 1)
201
+ throw o(
202
+ "Matrix remaining-member identity must be the terminal path segment.",
203
+ `${a}.path.${u}`
204
+ );
205
+ if (typeof c.label != "string")
206
+ throw o(
207
+ "Matrix remaining-member paths require their explicit display label.",
208
+ `${a}.path.${u}.label`
209
+ );
210
+ return;
211
+ }
212
+ if (!m || c.instanceId !== m.instanceId || c.fieldKey !== m.fieldKey)
213
+ throw o(
214
+ "Matrix member path must follow authored axis order and identity.",
215
+ `${a}.path.${u}`
216
+ );
217
+ M(c, m, `${a}.path.${u}`);
218
+ });
219
+ const s = e.path[e.path.length - 1], i = s.instanceId === "__matrix_remaining__" && s.fieldKey === "__matrix_remaining__" && s.value === "__matrix_remaining__";
220
+ if (!w(e.value, s.value))
221
+ throw o(
222
+ "Matrix node value must equal its final canonical path member.",
223
+ `${a}.value`
224
+ );
225
+ const n = r[e.path.length - 1];
226
+ if (n != null && n.temporalBucket && !e.isSubtotal && !i && e.label !== void 0)
227
+ throw o(
228
+ "Temporal Matrix nodes cannot transport display labels.",
229
+ `${a}.label`
230
+ );
231
+ if ((!(n != null && n.temporalBucket) || i) && typeof e.label != "string")
232
+ throw o(
233
+ "Non-temporal Matrix nodes require a display label.",
234
+ `${a}.label`
235
+ );
236
+ }
237
+ function K(e, t) {
238
+ return e.isGrandTotal && (t != null && t.isGrandTotal) ? "matrixGrandTotal" : e.isGrandTotal ? "rowGrandTotal" : t != null && t.isGrandTotal ? "columnGrandTotal" : e.isSubtotal && (t != null && t.isSubtotal) ? "subtotalIntersection" : e.isSubtotal ? "rowSubtotal" : t != null && t.isSubtotal ? "columnSubtotal" : "value";
239
+ }
240
+ function M(e, t, a) {
241
+ if (t.temporalBucket) {
242
+ if (e.label !== void 0)
243
+ throw o(
244
+ "Temporal Matrix path members cannot transport display labels.",
245
+ `${a}.label`
246
+ );
247
+ if (e.value !== null && typeof e.value != "string")
248
+ throw o(
249
+ "Temporal Matrix member values must be canonical strings or null.",
250
+ `${a}.value`
251
+ );
252
+ const r = S(
253
+ e.value,
254
+ t.temporalBucket
255
+ );
256
+ if (!r.ok)
257
+ throw o(r.error.message, `${a}.value`);
258
+ } else if (typeof e.label != "string")
259
+ throw o(
260
+ "Non-temporal Matrix path members require a display label.",
261
+ `${a}.label`
262
+ );
263
+ }
264
+ function q(e, t) {
265
+ const a = [...t.row.values()];
266
+ if (e.layout.rowHeaderLevels.length !== a.length)
267
+ throw o(
268
+ "Matrix row-header layout must describe every row-axis level exactly once.",
269
+ "layout.rowHeaderLevels"
270
+ );
271
+ e.layout.rowHeaderLevels.forEach((s, i) => {
272
+ var n;
273
+ if (s.fieldInstanceId !== ((n = a[i]) == null ? void 0 : n.instanceId))
274
+ throw o(
275
+ "Matrix row-header layout must follow authored row-axis order.",
276
+ `layout.rowHeaderLevels.${i}.fieldInstanceId`
277
+ );
278
+ });
279
+ for (const [s, i] of e.layout.columnHeaderRows.entries())
280
+ for (const [n, c] of i.cells.entries()) {
281
+ if (b(
282
+ c.columnPath,
283
+ t.column,
284
+ `layout.columnHeaderRows.${s}.cells.${n}.columnPath`
285
+ ), c.measureInstanceId && !e.measuresById[c.measureInstanceId])
286
+ throw o(
287
+ "Matrix header measureInstanceId must reference a measure.",
288
+ `layout.columnHeaderRows.${s}.cells.${n}.measureInstanceId`
289
+ );
290
+ if (c.role === "columnHeader" && c.label !== void 0)
291
+ throw o(
292
+ "Matrix member headers cannot transport composed display labels.",
293
+ `layout.columnHeaderRows.${s}.cells.${n}.label`
294
+ );
295
+ }
296
+ const r = /* @__PURE__ */ new Set();
297
+ for (const [s, i] of e.layout.columns.entries()) {
298
+ if (r.has(i.id))
299
+ throw o(
300
+ "Matrix layout column ids must be unique.",
301
+ `layout.columns.${s}.id`
302
+ );
303
+ if (r.add(i.id), b(
304
+ i.columnPath,
305
+ t.column,
306
+ `layout.columns.${s}.columnPath`
307
+ ), i.role === "value" && i.columnPath.length > 0 && i.label !== void 0)
308
+ throw o(
309
+ "Matrix value columns with member paths cannot transport composed display labels.",
310
+ `layout.columns.${s}.label`
311
+ );
312
+ if (!e.measuresById[i.measureInstanceId])
313
+ throw o(
314
+ "Matrix layout column measureInstanceId must reference a measure.",
315
+ `layout.columns.${s}.measureInstanceId`
316
+ );
317
+ if (i.columnNodeId) {
318
+ const n = e.nodesById[i.columnNodeId];
319
+ if ((n == null ? void 0 : n.axis) !== "column" || !w(n.path, i.columnPath))
320
+ throw o(
321
+ "Matrix layout column must match its referenced column node path.",
322
+ `layout.columns.${s}.columnNodeId`
323
+ );
324
+ } else if (t.column.size > 0)
325
+ throw o(
326
+ "Matrix columns with an authored column axis require a columnNodeId.",
327
+ `layout.columns.${s}.columnNodeId`
328
+ );
329
+ }
330
+ }
331
+ function b(e, t, a) {
332
+ const r = [...t.values()];
333
+ if (e.length > r.length)
334
+ throw o(
335
+ "Matrix layout path exceeds its authored axis depth.",
336
+ a
337
+ );
338
+ e.forEach((s, i) => {
339
+ const n = r[i];
340
+ if (!n || s.instanceId !== n.instanceId || s.fieldKey !== n.fieldKey)
341
+ throw o(
342
+ "Matrix layout path must follow authored axis order and identity.",
343
+ `${a}.${i}`
344
+ );
345
+ M(s, n, `${a}.${i}`);
346
+ });
347
+ }
348
+ function O(e, t, a) {
349
+ if (!t.parentId) return;
350
+ const r = e.nodesById[t.parentId];
351
+ if (!r)
352
+ throw o(
353
+ "Matrix parentId must reference an existing node.",
354
+ `${a}.parentId`
355
+ );
356
+ if (r.axis !== t.axis || r.path.length !== t.path.length - 1 || !w(r.path, t.path.slice(0, -1)))
357
+ throw o(
358
+ "Matrix parentId must reference the immediate same-axis path prefix.",
359
+ `${a}.parentId`
360
+ );
361
+ }
362
+ function C(e) {
363
+ for (const [t, a] of [
364
+ ["rows", e.axes.rows],
365
+ ["columns", e.axes.columns]
366
+ ]) {
367
+ const r = t === "rows" ? "row" : "column";
368
+ a.levels.forEach((s, i) => {
369
+ const n = e.fieldsById[s.instanceId];
370
+ if (!n || n.instanceId !== s.instanceId || n.fieldKey !== s.fieldKey || n.role !== r || !v(n.field, s.field))
371
+ throw o(
372
+ "Matrix axis level must have one matching role-scoped field descriptor.",
373
+ `axes.${t}.levels.${i}`
374
+ );
375
+ });
376
+ }
377
+ for (const [t, a] of Object.entries(e.measuresById)) {
378
+ if (a.instanceId !== t)
379
+ throw o(
380
+ "Matrix measure directory key must equal measure.instanceId.",
381
+ `measuresById.${t}.instanceId`
382
+ );
383
+ const r = e.fieldsById[t];
384
+ if (!r || r.instanceId !== t || r.fieldKey !== a.fieldKey || r.role !== "measure" || !v(r.field, a.field))
385
+ throw o(
386
+ "Matrix measure must have one matching field descriptor.",
387
+ `measuresById.${t}`
388
+ );
389
+ }
390
+ }
391
+ function G(e) {
392
+ return e && typeof e == "object" ? e.schemaVersion : void 0;
393
+ }
394
+ function w(e, t) {
395
+ return JSON.stringify(e) === JSON.stringify(t);
396
+ }
397
+ function v(e, t) {
398
+ return h(e) === h(t);
399
+ }
400
+ function h(e) {
401
+ if (Array.isArray(e))
402
+ return `[${e.map(h).join(",")}]`;
403
+ if (e && typeof e == "object") {
404
+ const t = e;
405
+ return `{${Object.keys(t).filter((a) => t[a] !== void 0).sort().map(
406
+ (a) => `${JSON.stringify(a)}:${h(t[a])}`
407
+ ).join(",")}}`;
408
+ }
409
+ return e === void 0 ? "undefined" : JSON.stringify(e);
410
+ }
411
+ function o(e, t) {
412
+ return new g({
413
+ code: "invalid_matrix_result_contract",
414
+ message: e,
415
+ path: t
416
+ });
417
+ }
418
+ export {
419
+ g as M,
420
+ V as p
421
+ };
@@ -2,9 +2,9 @@ var F = Object.defineProperty;
2
2
  var R = (e, t, n) => t in e ? F(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var A = (e, t, n) => R(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { t as f, c as U, g as O, e as P, a as T, m as S, b as M, i as Z, f as k, d as X } from "./format-types-CFHQoIuk.js";
5
- import { b as y } from "./pivot-result-lifecycle-O_roVguV.js";
5
+ import { b as y } from "./pivot-result-lifecycle-PxmbJWkm.js";
6
6
  import { f as B } from "./index-CACdoqu3.js";
7
- import { h as j } from "./temporal-bucket-CUKJktCl.js";
7
+ import { h as j } from "./temporal-bucket-CtP7hKLa.js";
8
8
  function b(e, t) {
9
9
  const n = f(e), o = f(t), r = n.getTime() - o.getTime();
10
10
  return r < 0 ? -1 : r > 0 ? 1 : r;
@@ -1,7 +1,7 @@
1
1
  var y = Object.defineProperty;
2
2
  var c = (t, e, r) => e in t ? y(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var u = (t, e, r) => c(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { v as d } from "./temporal-bucket-contract-Cno9TlYr.js";
4
+ import { v as d } from "./temporal-bucket-contract-CZl5D7FZ.js";
5
5
  function f(t) {
6
6
  return !!(t != null && t.isSubtotal && t.subtotalScope === "pivot-value");
7
7
  }
@@ -1,15 +1,15 @@
1
1
  var ee = Object.defineProperty;
2
2
  var te = (e, t, r) => t in e ? ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var g = (e, t, r) => te(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { b as k, ao as G, q as re } from "./validators-B5t1s8oh.js";
5
- import { p as ae } from "./raw-temporal-contract-BEMf3avg.js";
4
+ import { b as k, ao as G, r as re } from "./validators-D-T-2HOR.js";
5
+ import { p as ae } from "./raw-temporal-contract-U8J9RlEH.js";
6
6
  import { canonicalizeSupportedLocale as E, canonicalizeSupportedCurrencyCode as $ } from "../value-format-preferences/index.js";
7
- import { l as h, j as ne, a as ie } from "./temporal-bucket-CUKJktCl.js";
7
+ import { l as h, j as ne, a as ie } from "./temporal-bucket-CtP7hKLa.js";
8
8
  import { f as oe } from "./index-CACdoqu3.js";
9
- import { b as se } from "./report-runtime-context-DnNbpkGo.js";
10
- import "./analyze-result-contract-B3agc2XU.js";
11
- import { a as ce } from "./temporal-bucket-contract-Cno9TlYr.js";
12
- import { d as me, P as le } from "./pivot-result-identity-5v4hRVbc.js";
9
+ import { b as se } from "./report-runtime-context-DNbgCsko.js";
10
+ import "./analyze-result-contract-C8s8EUL5.js";
11
+ import { a as ce } from "./temporal-bucket-contract-CZl5D7FZ.js";
12
+ import { d as me, P as le } from "./pivot-result-identity-CIZXsI53.js";
13
13
  function N(e) {
14
14
  if (!e) return !1;
15
15
  const t = e.toLowerCase().replace("_", "-");
@@ -1094,7 +1094,7 @@ function K(e, t) {
1094
1094
  const r = I(e), a = I(t);
1095
1095
  return r.length === a.length && r.every((n, i) => n === a[i]);
1096
1096
  }
1097
- function qe(e) {
1097
+ function Le(e) {
1098
1098
  if (!Array.isArray(e))
1099
1099
  throw new Error("resolvedFormats must be an array");
1100
1100
  const t = /* @__PURE__ */ new Set();
@@ -1159,7 +1159,7 @@ function qe(e) {
1159
1159
  return t.add(s), o;
1160
1160
  });
1161
1161
  }
1162
- function Le(e) {
1162
+ function qe(e) {
1163
1163
  try {
1164
1164
  if (!h(e))
1165
1165
  throw new Error("presentation execution snapshot must be an object");
@@ -1179,7 +1179,7 @@ function Le(e) {
1179
1179
  return {
1180
1180
  version: 1,
1181
1181
  reportContext: t.value,
1182
- resolvedFormats: qe(e.resolvedFormats)
1182
+ resolvedFormats: Le(e.resolvedFormats)
1183
1183
  };
1184
1184
  } catch (t) {
1185
1185
  throw t instanceof j ? t : new j(
@@ -1188,7 +1188,7 @@ function Le(e) {
1188
1188
  }
1189
1189
  }
1190
1190
  function vt(e) {
1191
- return Le({
1191
+ return qe({
1192
1192
  version: 1,
1193
1193
  reportContext: e.reportContext,
1194
1194
  resolvedFormats: [...e.resolvedFormats]
@@ -1364,7 +1364,7 @@ function Be(e) {
1364
1364
  }
1365
1365
  return e;
1366
1366
  }
1367
- function q(e, t) {
1367
+ function L(e, t) {
1368
1368
  if (!Array.isArray(e) || e.some((r) => typeof r != "string" || !r) || new Set(e).size !== e.length)
1369
1369
  throw new u(
1370
1370
  `Canonical pivot contract ${t} must be an array of unique field identities.`
@@ -1389,12 +1389,12 @@ function Ue(e, t) {
1389
1389
  "detail"
1390
1390
  ].map((f) => [
1391
1391
  f,
1392
- q(
1392
+ L(
1393
1393
  a[f],
1394
1394
  `expectedRoleFieldIds.${f}`
1395
1395
  )
1396
1396
  ])
1397
- ), o = q(
1397
+ ), o = L(
1398
1398
  r.expectedMetricAliases,
1399
1399
  "expectedMetricAliases"
1400
1400
  ), s = r.columnKinds;
@@ -1432,7 +1432,7 @@ function Ue(e, t) {
1432
1432
  columnClassifications: y
1433
1433
  };
1434
1434
  }
1435
- function L(e, t) {
1435
+ function q(e, t) {
1436
1436
  const r = [
1437
1437
  "groupby",
1438
1438
  "metric",
@@ -1516,7 +1516,7 @@ function Xe(e) {
1516
1516
  );
1517
1517
  V(a, r);
1518
1518
  const s = O(e.columnKeyMap);
1519
- return L(s, a), {
1519
+ return q(s, a), {
1520
1520
  pivotResultState: "loaded_empty",
1521
1521
  records: [],
1522
1522
  columns: r,
@@ -1533,7 +1533,7 @@ function Xe(e) {
1533
1533
  "A loaded_valid pivot result must carry at least one record."
1534
1534
  );
1535
1535
  const i = O(e.columnKeyMap);
1536
- L(i, a), Ye(i, r, a), V(a, r);
1536
+ q(i, a), Ye(i, r, a), V(a, r);
1537
1537
  const o = r.filter(
1538
1538
  (s) => a.columnKinds[s.key] === "pivot_metric"
1539
1539
  );
@@ -1625,8 +1625,8 @@ export {
1625
1625
  he as i,
1626
1626
  lt as j,
1627
1627
  Ne as k,
1628
- qe as l,
1629
- Le as m,
1628
+ Le as l,
1629
+ qe as m,
1630
1630
  vt as n,
1631
1631
  pt as o,
1632
1632
  ye as p,
@@ -1,7 +1,7 @@
1
1
  var d = Object.defineProperty;
2
2
  var i = (a, e, t) => e in a ? d(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
3
  var n = (a, e, t) => i(a, typeof e != "symbol" ? e + "" : e, t);
4
- import { R as l } from "./validators-B5t1s8oh.js";
4
+ import { R as l } from "./validators-D-T-2HOR.js";
5
5
  class r extends Error {
6
6
  constructor(t) {
7
7
  super(t);
@@ -1,12 +1,12 @@
1
1
  import { jsxs as o, Fragment as j, jsx as t } from "react/jsx-runtime";
2
2
  import oe, { useState as S, useRef as X, useEffect as U, useCallback as E, useMemo as _ } from "react";
3
- import { az as ee, aA as ce, aB as B, aC as $, aD as de, h as ue, i as me, j as fe, k as he, l as M, m as H, aE as ve, aF as V, aG as z, b as ye, aH as pe, aI as ge, aJ as Se, aK as be, aL as Te } from "./index-0fmECZL2.js";
4
- import { u as ae, c as F, O as W, P as we, a as Ce, B as L, b as ke, d as q, L as te, T as xe, F as Ne, G, I as K } from "./switch-n2yUNY8i.js";
5
- import { a as Pe } from "./report-runtime-context-DnNbpkGo.js";
3
+ import { az as ee, aA as ce, aB as B, aC as $, aD as de, h as ue, i as me, j as fe, k as he, l as M, m as H, aE as ve, aF as V, aG as z, b as ye, aH as pe, aI as ge, aJ as Se, aK as be, aL as Te } from "./index-DalKzjEZ.js";
4
+ import { u as ae, c as F, O as W, P as we, a as Ce, B as L, b as ke, d as q, L as te, T as xe, F as Ne, G, I as K } from "./switch-D20CIzj6.js";
5
+ import { a as Pe } from "./report-runtime-context-DNbgCsko.js";
6
6
  import "./x-CXDkqdur.js";
7
- import "./saved-temporal-bucket-format-CygnBDO2.js";
8
- import "./validators-B5t1s8oh.js";
9
- import "./analyze-result-contract-B3agc2XU.js";
7
+ import "./saved-temporal-bucket-format-CHsXUPJI.js";
8
+ import "./validators-D-T-2HOR.js";
9
+ import "./analyze-result-contract-C8s8EUL5.js";
10
10
  import { parseValueFormatPreferencesResponse as Ae, canonicalizeSupportedLocale as Ee, canonicalizeSupportedCurrencyCode as ze } from "../value-format-preferences/index.js";
11
11
  function Le(e = {}) {
12
12
  const { authToken: i, tokenProps: a } = ee(), d = ae(