react-semaphor 0.1.602 → 0.1.604

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 (211) hide show
  1. package/dist/activity/index.js +1 -73
  2. package/dist/analytics-protocol/index.js +1 -1451
  3. package/dist/appearance/index.js +1 -12
  4. package/dist/appearance-runtime/index.js +1 -5
  5. package/dist/assistant-context/index.js +1 -11
  6. package/dist/assistant-protocol/index.js +1 -152
  7. package/dist/brand-studio/index.js +4 -1594
  8. package/dist/briefings/index.js +1 -70
  9. package/dist/chunks/add-to-dashboard-DeHEBEqG.js +12 -0
  10. package/dist/chunks/analytics-base-schemas-BREc5WGv.js +1 -0
  11. package/dist/chunks/appearance-context-BqBZrijL.js +1 -0
  12. package/dist/chunks/appearance-runtime-provider-DmbCrOOG.js +1 -0
  13. package/dist/chunks/applied-constraints-CinevlKD.js +1 -0
  14. package/dist/chunks/assistant-chat-CjYrwVDa.js +56 -0
  15. package/dist/chunks/attribution-BEFSsbNn.js +1 -0
  16. package/dist/chunks/availability-3AIOf6Z-.js +1 -0
  17. package/dist/chunks/bookmark-impact-C89zBLq3.js +1 -0
  18. package/dist/chunks/bookmark-state-69YYnRql.js +1 -0
  19. package/dist/chunks/brand-DCaZyRt6.js +1 -0
  20. package/dist/chunks/card-filter-builder-CTp6RAz1.js +17 -0
  21. package/dist/chunks/column-bands-DwxbZ6UI.js +1 -0
  22. package/dist/chunks/comparison-window-caption-C312mn3s.js +1 -0
  23. package/dist/chunks/context-ALdccLHw.js +2 -0
  24. package/dist/chunks/conversation-JMK2kyTK.js +1 -0
  25. package/dist/chunks/dashboard-BX28ld6s.js +1 -0
  26. package/dist/chunks/dashboard-briefing-launcher-qo7GH4EO.js +37 -0
  27. package/dist/chunks/dashboard-controls-DhRjB7MA.js +42 -0
  28. package/dist/chunks/dashboard-json-9cHzhSjC.js +1 -0
  29. package/dist/chunks/dates-D-KP8G-z.js +1 -0
  30. package/dist/chunks/edit-DEAK0UZo.js +1 -0
  31. package/dist/chunks/edit-dashboard-visual-Duq_QkB_.js +93 -0
  32. package/dist/chunks/export-file-format-B-wQNHIn.js +4 -0
  33. package/dist/chunks/filter-line-CwQrqORc.js +1 -0
  34. package/dist/chunks/filter-reach-preview-gixPFlZj.js +1 -0
  35. package/dist/chunks/filter-value-text-B3tXakhd.js +1 -0
  36. package/dist/chunks/index-B-VF1ogs.js +1 -0
  37. package/dist/chunks/index-BE1DfxNs.js +1 -0
  38. package/dist/chunks/index-DViPGDFj.js +1 -0
  39. package/dist/chunks/layout-grid-BWtlgw0T.js +6 -0
  40. package/dist/chunks/matrix-analytical-definition-CtFqWyCK.js +1 -0
  41. package/dist/chunks/matrix-member-presentation-Q0MCJ-YK.js +1 -0
  42. package/dist/chunks/matrix-operation-contract-D1RC1bfi.js +1 -0
  43. package/dist/chunks/metric-comparison-DEZYXROZ.js +1 -0
  44. package/dist/chunks/normalize-dashboard-for-dirty-check-ILKfqgL3.js +1 -0
  45. package/dist/chunks/paintbrush-BjS3SbrH.js +6 -0
  46. package/dist/chunks/palette-BzC-CGOc.js +6 -0
  47. package/dist/chunks/pickers-DuBrUht0.js +1 -0
  48. package/dist/chunks/pivot-result-contract-expectations-DTQAgr4n.js +1 -0
  49. package/dist/chunks/pivot-result-identity-DTNCB--h.js +1 -0
  50. package/dist/chunks/raw-temporal-value-DeyEhL0S.js +1 -0
  51. package/dist/chunks/rendered-file-BbvwaU6z.js +1 -0
  52. package/dist/chunks/report-preferences-dialog-B_gUmCzG.js +1 -0
  53. package/dist/chunks/report-runtime-context-BWzIHCKK.js +1 -0
  54. package/dist/chunks/resolve-dashboard-input-context-B-TtRqxu.js +8 -0
  55. package/dist/chunks/resolver-AN9ChBfZ.js +1 -0
  56. package/dist/chunks/save-DdFUZcbi.js +6 -0
  57. package/dist/chunks/saved-dashboard-context-BAJ5tWiq.js +1 -0
  58. package/dist/chunks/schema-MC0cQSAb.js +4 -0
  59. package/dist/chunks/selection-filter-compiler-CCoCD25M.js +1 -0
  60. package/dist/chunks/semaphor-ready-indicator-DzjorP3t.js +999 -0
  61. package/dist/chunks/set-DuJfGkbY.js +1 -0
  62. package/dist/chunks/shelf-drop-preview-context-BlLJ5RsT.js +6 -0
  63. package/dist/chunks/stored-dashboard-Ctcpkllg.js +1 -0
  64. package/dist/chunks/style-sheet-parts-BRGt9O05.js +178 -0
  65. package/dist/chunks/table-export-sheet-rC5pKmXg.js +2 -0
  66. package/dist/chunks/token-types-Bj9iMy0w.js +1 -0
  67. package/dist/chunks/validators-CqV3Yka1.js +1 -0
  68. package/dist/chunks/variable-draft-DJrfUyhv.js +1 -0
  69. package/dist/chunks/visual-choice-DgEFfkE-.js +1 -0
  70. package/dist/dashboard/index.js +1 -7
  71. package/dist/dashboard-authoring/index.js +1 -4491
  72. package/dist/format-utils/index.js +1 -424
  73. package/dist/index.js +1 -554
  74. package/dist/layouts/index.js +1 -7
  75. package/dist/live-channel/index.js +1 -124
  76. package/dist/pdf-export-policy/index.js +1 -92
  77. package/dist/pdf-table-layout/index.js +1 -993
  78. package/dist/report-runtime-context/index.js +1 -9
  79. package/dist/shared/index.js +1 -6
  80. package/dist/style.css +1 -1
  81. package/dist/surfboard/index.js +1 -9
  82. package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
  83. package/dist/types/index.js +1 -88
  84. package/dist/types/lib/document/document-edits.d.ts +0 -4
  85. package/dist/types/lib/filter-values/build-card-filter-definition.d.ts +32 -0
  86. package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +9 -0
  87. package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
  88. package/dist/types/lib/stores/explorer-actions.d.ts +7 -6
  89. package/dist/types/lib/types/common-types.d.ts +0 -2
  90. package/dist/types/lib/types/explorer-types.d.ts +1 -1
  91. package/dist/types/lib/types/semantic-types.d.ts +6 -10
  92. package/dist/types/lib/utils/field-state-calculator.d.ts +7 -19
  93. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
  94. package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
  95. package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
  96. package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
  97. package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
  98. package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
  99. package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
  100. package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
  101. package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
  102. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
  103. package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
  104. package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +1 -1
  105. package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +13 -0
  106. package/dist/types/shared/dashboard-authoring/card-data-source/card-base.d.ts +125 -0
  107. package/dist/types/shared/dashboard-authoring/card-data-source/card-field-folders.d.ts +55 -0
  108. package/dist/types/shared/dashboard-authoring/card-data-source/card-joins.d.ts +114 -0
  109. package/dist/types/shared/dashboard-authoring/card-data-source/card-prune.d.ts +12 -0
  110. package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-catalog.d.ts +60 -0
  111. package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-folders.d.ts +132 -0
  112. package/dist/types/shared/dashboard-authoring/card-data-source/index.d.ts +7 -0
  113. package/dist/types/shared/dashboard-authoring/card-data-source/join-reach.d.ts +42 -0
  114. package/dist/types/shared/dashboard-authoring/card-field-places.d.ts +28 -0
  115. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
  116. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  117. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
  118. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
  119. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -358
  120. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
  121. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  122. package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
  123. package/dist/types/shared/dashboard-authoring/field-folders/field-folders.d.ts +115 -0
  124. package/dist/types/shared/dashboard-authoring/field-folders/index.d.ts +1 -0
  125. package/dist/types/shared/dashboard-authoring/filter-reach-decision.d.ts +11 -0
  126. package/dist/types/shared/dashboard-authoring/index.d.ts +6 -1
  127. package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
  128. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
  129. package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
  130. package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
  131. package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
  132. package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
  133. package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
  134. package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
  135. package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
  136. package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +33 -8
  137. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +0 -2
  138. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +5 -0
  139. package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +7 -22
  140. package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
  141. package/dist/types/shared/format-utils/index.d.ts +1 -0
  142. package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
  143. package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
  144. package/dist/types/shared/temporal/index.d.ts +2 -0
  145. package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
  146. package/dist/types/shared/temporal/temporal.d.ts +27 -0
  147. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
  148. package/dist/usage-events/index.js +1 -285
  149. package/dist/value-format-preferences/index.js +1 -635
  150. package/package.json +6 -2
  151. package/dist/chunks/add-to-dashboard-ClhEIFst.js +0 -291
  152. package/dist/chunks/analytics-base-schemas-DevrgqQb.js +0 -678
  153. package/dist/chunks/appearance-context-BwBp25ZG.js +0 -162
  154. package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +0 -80
  155. package/dist/chunks/applied-constraints-DU-wndZ7.js +0 -47
  156. package/dist/chunks/assistant-chat-BWF3GYip.js +0 -6115
  157. package/dist/chunks/attribution-BvoKvhcj.js +0 -32
  158. package/dist/chunks/availability-Bp5Gfu1I.js +0 -44
  159. package/dist/chunks/bookmark-impact-BF3iRx5a.js +0 -76
  160. package/dist/chunks/bookmark-state-CBSTdW6q.js +0 -1666
  161. package/dist/chunks/brand-BoUV0iHF.js +0 -54
  162. package/dist/chunks/card-filter-builder-B8XHwMY6.js +0 -4069
  163. package/dist/chunks/column-bands-RdM-kjDe.js +0 -47
  164. package/dist/chunks/comparison-window-caption-W83qB4V5.js +0 -741
  165. package/dist/chunks/context-BJoEFgNl.js +0 -369
  166. package/dist/chunks/conversation-sQiWYUOb.js +0 -16
  167. package/dist/chunks/dashboard-DG5EIYYB.js +0 -14
  168. package/dist/chunks/dashboard-briefing-launcher-CBSrhyWZ.js +0 -4875
  169. package/dist/chunks/dashboard-controls-D6ECO4N1.js +0 -2290
  170. package/dist/chunks/dashboard-json-DrJftBSL.js +0 -66
  171. package/dist/chunks/dates-Bz-qM5px.js +0 -164
  172. package/dist/chunks/edit-9df1zOWe.js +0 -226
  173. package/dist/chunks/edit-dashboard-visual-BDYAJIbb.js +0 -18605
  174. package/dist/chunks/export-file-format-C-tJsxsf.js +0 -111
  175. package/dist/chunks/filter-line-BXT6y303.js +0 -703
  176. package/dist/chunks/filter-reach-copy-BukhZmzm.js +0 -5250
  177. package/dist/chunks/filter-value-text-D3-bf3_b.js +0 -153
  178. package/dist/chunks/index-BVKzKl5d.js +0 -90
  179. package/dist/chunks/index-BW0yozjs.js +0 -2795
  180. package/dist/chunks/index-CV_Kzou0.js +0 -595
  181. package/dist/chunks/layout-grid-Ds0diMeY.js +0 -16
  182. package/dist/chunks/matrix-analytical-definition-CgQgVeeI.js +0 -1162
  183. package/dist/chunks/matrix-member-presentation-DSBIIudt.js +0 -258
  184. package/dist/chunks/matrix-operation-contract--DkNCOzd.js +0 -1412
  185. package/dist/chunks/metric-comparison-zMylnIkc.js +0 -541
  186. package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +0 -119
  187. package/dist/chunks/paintbrush-CX8pao1j.js +0 -27
  188. package/dist/chunks/palette-CuA0HlzF.js +0 -23
  189. package/dist/chunks/pickers-DkqmtnTL.js +0 -2403
  190. package/dist/chunks/pivot-result-contract-expectations-C8KL7hPx.js +0 -5046
  191. package/dist/chunks/pivot-result-identity-C1AOH1PS.js +0 -77
  192. package/dist/chunks/raw-temporal-value-E416F-0L.js +0 -454
  193. package/dist/chunks/rendered-file-D8xEuVVx.js +0 -108
  194. package/dist/chunks/report-preferences-dialog-CbuVNDGi.js +0 -1637
  195. package/dist/chunks/report-runtime-context-E7USjN7E.js +0 -388
  196. package/dist/chunks/resolve-dashboard-input-context-CULCE_hM.js +0 -25172
  197. package/dist/chunks/resolver-DG_tfEpt.js +0 -156
  198. package/dist/chunks/save-BKHlDONy.js +0 -21
  199. package/dist/chunks/saved-dashboard-context-C1WlOx5z.js +0 -632
  200. package/dist/chunks/schema-C9NPiIru.js +0 -2568
  201. package/dist/chunks/selection-filter-compiler-ifT8JCXS.js +0 -131
  202. package/dist/chunks/semaphor-ready-indicator-CBIRcDWs.js +0 -145326
  203. package/dist/chunks/shelf-drop-preview-context-xR69SMA8.js +0 -2466
  204. package/dist/chunks/stored-dashboard-BuM8vnWf.js +0 -4070
  205. package/dist/chunks/style-sheet-parts-Bt9ZNre8.js +0 -8674
  206. package/dist/chunks/table-export-sheet-DVljtHkG.js +0 -949
  207. package/dist/chunks/token-types-D_xKgyVS.js +0 -8
  208. package/dist/chunks/upload-Dll_M7XQ.js +0 -15
  209. package/dist/chunks/validators-ClWHpYql.js +0 -3686
  210. package/dist/chunks/variable-draft-CDGGl53R.js +0 -242
  211. package/dist/chunks/visual-choice-DDfHfHvY.js +0 -172
@@ -1,632 +0,0 @@
1
- var Z = Object.defineProperty;
2
- var Q = (e, t, a) => t in e ? Z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var F = (e, t, a) => Q(e, typeof t != "symbol" ? t + "" : t, a);
4
- import { D as S, F as U, G as K, H as W } from "./bookmark-state-CBSTdW6q.js";
5
- import { s as X, p as Y, q as ee, t as te, u as ae, v as re, w as ne, x as se, y as oe, z as ie, A as j, B as de, C as le, D as ce } from "./resolve-dashboard-input-context-CULCE_hM.js";
6
- import { c as ue, e as L, b as me, d as fe, p as q, f as he, g as pe, r as D, i as O, j as be, m as ge, k as Ce } from "./stored-dashboard-BuM8vnWf.js";
7
- import { f as g, A as P, c as Ie, d as ye, e as M } from "./context-BJoEFgNl.js";
8
- import { a as ve, T as xe, P as Ve, o as I, d as B, b as _ } from "./filter-value-text-D3-bf3_b.js";
9
- import { k as Se, a9 as $e } from "./validators-ClWHpYql.js";
10
- import { b as ke } from "./metric-comparison-zMylnIkc.js";
11
- import { i as qe } from "./matrix-analytical-definition-CgQgVeeI.js";
12
- function De(e) {
13
- const t = e.qualifiedFieldName || e.name;
14
- return e.label && e.label !== t ? `${e.label} (field ${t})` : t;
15
- }
16
- function _e(e, t = {}) {
17
- if (!e) return [];
18
- const a = N(e, t);
19
- return a.length === 0 ? [] : e.logicalOperator === "AND" && !e.negate ? a : [z(e, a)];
20
- }
21
- function N(e, t) {
22
- const a = e.groups.flatMap((r) => {
23
- const n = N(r, t);
24
- if (n.length === 0) return [];
25
- const s = z(r, n);
26
- return [n.length > 1 && !r.negate ? { ...s, text: `(${s.text})` } : s];
27
- });
28
- return [...e.conditions.map((r) => we(r, t)), ...a];
29
- }
30
- function z(e, t) {
31
- const a = t.map((r) => r.text).join(e.logicalOperator === "OR" ? " or " : " and ");
32
- return {
33
- text: e.negate ? `not (${a})` : a,
34
- omittedValues: t.reduce((r, n) => r + n.omittedValues, 0)
35
- };
36
- }
37
- function we(e, t) {
38
- const a = Array.isArray(e.value) ? e.value : [e.value];
39
- return ve({
40
- subject: De(e.field),
41
- operator: e.operator,
42
- values: a,
43
- reading: Fe(e),
44
- relative: Se(e.relativeMeta),
45
- latestValue: e.latestValue,
46
- shownAs: e.label
47
- }, t);
48
- }
49
- function Fe(e) {
50
- return e.temporalBucket ? { kind: "bucket", bucket: e.temporalBucket } : $e(e.field.dataType) ? xe : Ve;
51
- }
52
- function H(e) {
53
- if (e.kind === "target") return `a target of ${e.targetValue}`;
54
- const t = e.kind === "previous_period" ? e.offsetPeriods : e.offsetYears, a = e.kind === "previous_period" ? t && t > 1 ? `the period ${t} periods earlier` : "the previous period" : t && t > 1 ? `the same period ${t} years earlier` : "the same period a year earlier", r = [
55
- e.alignment === "weekday" ? "aligned by weekday" : void 0,
56
- e.toDate ? "to date (the same elapsed part of the period)" : void 0
57
- ].filter(Boolean);
58
- return r.length ? `${a}, ${r.join(", ")}` : a;
59
- }
60
- function Me(e) {
61
- return (e == null ? void 0 : e.kind) === "field_date" ? `the ${JSON.stringify(e.label)} filter` : "the dashboard date";
62
- }
63
- function Ae(e, t) {
64
- const a = t.source === "explicit" ? "set on the measure" : `from the dashboard date comparison on ${Me(t.owner)}`;
65
- return `${e} is compared with ${H(t.spec)} (${a})`;
66
- }
67
- function k(e) {
68
- const t = X(e) ?? "undefined";
69
- return `${A(t, 2654435769).toString(16)}${A(t, 2246822507).toString(16)}`;
70
- }
71
- function A(e, t) {
72
- let a = 3735928559 ^ t, r = 1103547991 ^ t;
73
- for (let n = 0; n < e.length; n++) {
74
- const s = e.charCodeAt(n);
75
- a = Math.imul(a ^ s, 2654435761), r = Math.imul(r ^ s, 1597334677);
76
- }
77
- return a = Math.imul(a ^ a >>> 16, 2246822507) ^ Math.imul(r ^ r >>> 13, 3266489909), r = Math.imul(r ^ r >>> 16, 2246822507) ^ Math.imul(a ^ a >>> 13, 3266489909), 4294967296 * (2097151 & r) + (a >>> 0);
78
- }
79
- const h = P;
80
- function Re(e, t, a) {
81
- var y;
82
- const r = t !== "pending" && (t == null ? void 0 : t.status) === "ready" ? t : void 0, n = Te(e, t);
83
- if (n) {
84
- const v = t !== "pending" && (t == null ? void 0 : t.status) === "blocked" ? Ee(t) : void 0, $ = v ? g(v, h.textChars) : void 0;
85
- return {
86
- // A card that runs but is not described still changes when it runs differently.
87
- fingerprint: k(r ? R(r, a.calendar) : { reason: n, message: $ }),
88
- description: { status: "not_described", reason: n, ...$ ? { message: $ } : {} }
89
- };
90
- }
91
- const s = r, l = s.queryContext, m = Le(s), o = Be(s, a), c = ze(s), i = Oe(s), u = l.drillSteps.map((v) => g(
92
- `${JSON.stringify(v.label)} (then by ${v.toField.label || v.toField.name})`,
93
- h.textChars
94
- )), d = (y = s.card.sql) == null ? void 0 : y.trim(), b = d ? He(s) : [], f = {
95
- fields: I(m.length, h.cardFields),
96
- filters: I(o.length, h.cardFilters),
97
- controls: I(c.length, h.cardControls),
98
- drillSteps: I(u.length, h.drillSteps),
99
- sqlParameters: I(b.length, h.sqlParameters),
100
- comparisons: I(i.length, h.cardFields)
101
- }, p = Object.fromEntries(Object.entries(f).filter(([, v]) => v > 0));
102
- return {
103
- fingerprint: k(R(s, a.calendar)),
104
- description: {
105
- status: "described",
106
- fields: m.slice(0, h.cardFields),
107
- filters: o.slice(0, h.cardFilters),
108
- controls: c.slice(0, h.cardControls),
109
- drillPath: u.slice(0, h.drillSteps),
110
- ...d ? {
111
- sql: {
112
- text: g(d, h.sqlChars),
113
- parameters: b.slice(0, h.sqlParameters)
114
- }
115
- } : {},
116
- ...i.length ? { comparisons: i.slice(0, h.cardFields) } : {},
117
- ...Object.keys(p).length ? { omitted: p } : {}
118
- }
119
- };
120
- }
121
- function Te(e, t) {
122
- if (e.type === "matrixTable") return "matrix";
123
- if (e.type === "custom" || Y(e)) return "custom_visual";
124
- if (ee(e.python ?? "").trim()) return "python";
125
- if (t === "pending") return "snapshot_pending";
126
- if ((t == null ? void 0 : t.status) !== "ready") return "snapshot_blocked";
127
- }
128
- function Ee(e) {
129
- if (e.message) return e.message;
130
- const t = e.mappingDispositions.flatMap((a) => a.status === "block" ? [`${a.inputId} (${a.reason})`] : []);
131
- return t.length ? `dashboard inputs that cannot apply to this card: ${t.join(", ")}` : void 0;
132
- }
133
- function R(e, t) {
134
- return ue(e.card, e.queryContext, t).queryInputIdentity;
135
- }
136
- const je = [
137
- ["row", "rows"],
138
- ["column", "columns"],
139
- ["measure", "metrics"],
140
- ["detail", "details"]
141
- ];
142
- function Le(e) {
143
- const { fields: t } = te({
144
- type: e.card.type,
145
- config: e.queryContext.finalConfig
146
- });
147
- return je.flatMap(([a, r]) => t[r].map((n) => {
148
- const s = n.aggregate, l = n.grainMode ?? n.granularity;
149
- return {
150
- role: a,
151
- label: g(n.label || n.name, h.labelChars),
152
- name: g(n.name, h.labelChars),
153
- ...s ? { aggregate: s } : {},
154
- ...l ? { granularity: l } : {}
155
- };
156
- }));
157
- }
158
- function Oe(e) {
159
- const t = e.queryContext;
160
- return (t.finalConfig.metricColumns ?? []).flatMap((a) => {
161
- const r = ke({
162
- metricComparison: a.comparison,
163
- globalDateComparison: t.globalDateComparison
164
- });
165
- return r ? [g(Ae(Pe(a.label || a.name), r), h.textChars)] : [];
166
- });
167
- }
168
- function Pe(e) {
169
- return JSON.stringify(e);
170
- }
171
- function Be(e, { calendar: t }) {
172
- const a = e.queryContext, r = { maxListedValues: h.inputValues, timeZone: t.tz }, n = ae(e.card), s = new Set(n.map((i) => i.id)), l = new Map(
173
- [...a.queryFilterDefinitions, ...n].map((i) => [i.id, i.title])
174
- ), m = a.cardFilterValues.map((i) => {
175
- const u = l.get(i.filterId) || i.name, d = i.dateOwner === "global_date" ? `${u} (the dashboard date, on this card's field ${i.name})` : `${u} (field ${i.name})`, b = B(i, d, r);
176
- return {
177
- // A click that reaches the card through relationships is the click it
178
- // is, not an input (click relationship reach CR-D15).
179
- origin: qe(i.filterId) ? "selection" : s.has(i.filterId) ? "card_input" : "dashboard_input",
180
- text: g(b.text, h.textChars),
181
- ...b.omittedValues ? { omittedValues: b.omittedValues } : {}
182
- };
183
- }), o = a.resolvedFilterParts, c = [["card", o.authored], ["drill", o.drill], ["selection", o.selections]].flatMap(([i, u]) => _e(u, r).map((d) => ({
184
- origin: i,
185
- text: g(d.text, h.textChars),
186
- ...d.omittedValues ? { omittedValues: d.omittedValues } : {}
187
- })));
188
- return [...m, ...c];
189
- }
190
- function Ne(e) {
191
- const t = e.queryContext, a = L({
192
- sql: e.card.sql,
193
- controlBindings: t.controlBindings
194
- });
195
- return [.../* @__PURE__ */ new Set([
196
- ...t.controlBindings.map((n) => n.controlId),
197
- ...a.map((n) => n.controlId)
198
- ])].map((n) => ({
199
- id: n,
200
- bindings: t.controlBindings.filter((s) => s.controlId === n),
201
- sqlParameterIds: a.filter((s) => s.controlId === n).map((s) => s.paramId)
202
- }));
203
- }
204
- function ze(e) {
205
- const t = e.queryContext, a = new Map(
206
- [...t.controlDefinitions, ...t.cardControlDefinitions].map((r) => [r.id, r])
207
- );
208
- return Ne(e).map(({ id: r, bindings: n, sqlParameterIds: s }) => {
209
- var o;
210
- const l = t.controlValues[r], m = /* @__PURE__ */ new Set([
211
- ...n.filter((c) => c.target !== "sql_param").map((c) => Je(c, l)),
212
- ...s.map((c) => `SQL parameter ${c}`)
213
- ]);
214
- return {
215
- label: g(((o = a.get(r)) == null ? void 0 : o.label) || r, h.labelChars),
216
- valueText: g(
217
- `${_(l, { maxListedValues: h.inputValues }).text}${m.size ? `; ${[...m].join("; ")}` : ""}`,
218
- h.textChars
219
- )
220
- };
221
- });
222
- }
223
- function He(e) {
224
- const t = e.queryContext;
225
- return L({ sql: e.card.sql, controlBindings: t.controlBindings }).map((a) => ({
226
- name: g(a.paramId, h.labelChars),
227
- valueText: g(
228
- _(t.controlValues[a.controlId], { maxListedValues: h.inputValues }).text,
229
- h.textChars
230
- )
231
- }));
232
- }
233
- function Je(e, t) {
234
- const a = typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? String(t) : void 0;
235
- switch (e.target) {
236
- case "sql_param":
237
- return `SQL parameter ${e.paramId}`;
238
- case "presentation_currency":
239
- return "display currency only";
240
- case "config_aggregation":
241
- return `sets the aggregation${a && e.mapping[a] ? ` to ${e.mapping[a]}` : ""}`;
242
- case "config_grain":
243
- return `sets the time grain${a && e.mapping[a] ? ` to ${e.mapping[a]}` : ""}`;
244
- case "config_field_selector":
245
- case "config_metric_selector": {
246
- const r = a ? e.mapping[a] : void 0, n = e.target === "config_field_selector" ? "field" : "measure";
247
- if (!r) return `chooses the ${n}`;
248
- const s = "kind" in r ? `Matrix ${r.id}` : `${r.label || r.name}${"aggregate" in r && r.aggregate ? ` (${r.aggregate})` : ""}`;
249
- return `chooses the ${n} ${JSON.stringify(s)}`;
250
- }
251
- }
252
- }
253
- class V extends Error {
254
- constructor(a, r) {
255
- super(r);
256
- F(this, "code");
257
- this.name = "AssistantContextSourceError", this.code = a;
258
- }
259
- }
260
- const C = P, Ge = "Untitled";
261
- function Ze(e) {
262
- var f;
263
- if (e.surface === "none")
264
- return T({
265
- version: M,
266
- surface: "none",
267
- otherSheets: [],
268
- activeInputs: [],
269
- cards: [],
270
- timeZone: e.timeZone
271
- });
272
- const { dashboard: t, sheetId: a, calendar: r } = e, n = t.sheets ?? [], s = n.find((p) => p.id === a);
273
- if (a !== null && !s)
274
- throw new V("sheet_not_found", `sheet ${a} is not on dashboard ${t.id}`);
275
- const l = n.filter((p) => p.id !== a), m = s ? S(t).filter((p) => p.sheetId === a) : [], o = m.slice(0, C.summaryCards), c = e.selectedCard ? m.find((p) => p.cardId === e.selectedCard.cardId) : void 0, i = ((f = e.selectedCard) == null ? void 0 : f.card) ?? (c == null ? void 0 : c.card);
276
- if (e.selectedCard && !i)
277
- throw new V(
278
- "card_not_on_sheet",
279
- `card ${e.selectedCard.cardId} is not on sheet ${a}`
280
- );
281
- const u = s ? Ke(e, s, m) : [], d = {
282
- otherSheets: I(l.length, C.otherSheets),
283
- activeInputs: I(u.length, C.activeInputs),
284
- cards: I(m.length, C.summaryCards)
285
- }, b = Object.fromEntries(Object.entries(d).filter(([, p]) => p > 0));
286
- return T({
287
- version: M,
288
- surface: e.editing ? "editor" : "dashboard",
289
- dashboard: {
290
- id: t.id,
291
- title: x(t.title),
292
- unsavedEdits: e.unsavedEdits
293
- },
294
- ...s ? { sheet: { id: s.id, title: x(s.title) } } : {},
295
- otherSheets: l.slice(0, C.otherSheets).map((p) => ({ id: p.id, title: x(p.title) })),
296
- activeInputs: u.slice(0, C.activeInputs),
297
- cards: o.map((p) => J(p.card)),
298
- ...i && e.selectedCard ? { selectedCard: Qe(i, e.selectedCard.snapshot, r) } : {},
299
- ...e.editing ? { editing: e.editing } : {},
300
- ...Object.keys(b).length ? { omitted: b } : {},
301
- timeZone: r.tz
302
- });
303
- }
304
- function Qe(e, t, a) {
305
- return { ...J(e), ...Re(e, t, { calendar: a }) };
306
- }
307
- function T(e) {
308
- const t = Ie(e);
309
- if (t > C.contextBytes) throw new ye(t);
310
- return e;
311
- }
312
- function x(e) {
313
- return g((e == null ? void 0 : e.trim()) || Ge, C.labelChars);
314
- }
315
- function J(e) {
316
- const t = Ue(e);
317
- return {
318
- id: e.id,
319
- title: x(e.title),
320
- visualType: e.type,
321
- ...t ? { source: t } : {}
322
- };
323
- }
324
- function Ue(e) {
325
- var a;
326
- const t = oe(e);
327
- if (t.kind === "config")
328
- return t.executableSources.length === 1 ? t.executableSources[0] : void 0;
329
- if (t.kind === "sql") {
330
- const r = ((a = e.dataSource) == null ? void 0 : a.connectionId) || e.connectionId;
331
- return r ? { kind: "sql", connectionId: r } : void 0;
332
- }
333
- }
334
- function Ke(e, t, a) {
335
- const { dashboard: r } = e, n = t.kind === "document" ? "document" : "dashboard", s = n === "document" ? void 0 : e.transientContexts, { shouldApplyDashboardFilters: l } = me(s), m = (u, d) => re({
336
- dashboard: r,
337
- sheetId: t.id,
338
- card: u,
339
- sectionId: d,
340
- runtimeValues: e.runtimeValues,
341
- transientContexts: s,
342
- calendar: e.calendar
343
- }), o = /* @__PURE__ */ new Map(), c = (u) => {
344
- u.inputs.forEach((d, b) => {
345
- if (E(d)) return;
346
- const f = u.resolvedInputs[b], p = o.get(d.id) ?? { input: d };
347
- !p.resolved && f && We(f) && (p.resolved = f), o.set(d.id, p);
348
- });
349
- };
350
- c(m(null));
351
- let i = ne(r).filter((u) => {
352
- var d;
353
- return !E(u) && !((d = o.get(u.id)) != null && d.resolved);
354
- });
355
- for (const u of a) {
356
- if (i.length === 0) break;
357
- const d = u.kind === "documentSectionCard" ? u.sectionId : void 0, b = { sheetId: t.id, sheetKind: n, cardId: u.cardId, sectionId: d };
358
- if (i.some((f) => U(f, b))) {
359
- try {
360
- c(m(u.card, d));
361
- } catch {
362
- continue;
363
- }
364
- i = i.filter((f) => {
365
- var p;
366
- return !((p = o.get(f.id)) != null && p.resolved);
367
- });
368
- }
369
- }
370
- return [...o.values()].flatMap((u) => {
371
- if (!u.resolved) return [];
372
- const d = u.input.kind === "filter" && !l && !K(u.input), b = Xe(u, e.calendar.tz, d);
373
- return b ? [b] : [];
374
- });
375
- }
376
- function E(e) {
377
- var a;
378
- const t = (a = e.compatibility) == null ? void 0 : a.source;
379
- return t === "cardInlineFilter" || t === "cardControl";
380
- }
381
- function We(e) {
382
- if (e.kind === "filter") return !!e.filterValue;
383
- const t = e.controlValue;
384
- return t == null ? !1 : typeof t == "string" ? t.trim().length > 0 : Array.isArray(t) ? t.length > 0 : !0;
385
- }
386
- function Xe(e, t, a) {
387
- const { input: r, resolved: n } = e, s = x(r.label), l = {
388
- inputId: r.id,
389
- label: s,
390
- ...r.kind === "filter" && se(r.filter) ? { globalDate: !0 } : {}
391
- };
392
- if (r.runtimeScope === "perCard" || r.runtimeScope === "perDocumentSection")
393
- return { ...l, value: { kind: "varies" } };
394
- const m = { maxListedValues: C.inputValues, timeZone: t };
395
- let o;
396
- if ((n == null ? void 0 : n.kind) === "filter" && n.filterValue)
397
- o = B(n.filterValue, s, m);
398
- else if ((n == null ? void 0 : n.kind) === "control") {
399
- const i = _(n.controlValue, m);
400
- o = { text: `${s} is set to ${i.text}`, omittedValues: i.omittedValues };
401
- }
402
- if (!o) return;
403
- const c = (n == null ? void 0 : n.kind) === "filter" ? n.comparisonSelection : void 0;
404
- return (c == null ? void 0 : c.mode) === "period" && (o = { ...o, text: `${o.text}; compared with ${H(c.spec)}` }), {
405
- ...l,
406
- value: {
407
- kind: "set",
408
- text: g(o.text, C.textChars),
409
- ...o.omittedValues ? { omittedValues: o.omittedValues } : {},
410
- ...a ? { notApplied: "opened_from_another_dashboard" } : {},
411
- // The resolved value itself, with any date comparison on it and whether
412
- // the view applies it, so any change counts, shown or not.
413
- fingerprint: k(
414
- (n == null ? void 0 : n.kind) === "filter" ? { filter: n.filterValue, comparison: n.comparisonSelection ?? null, notApplied: a } : { control: n == null ? void 0 : n.controlValue }
415
- )
416
- }
417
- };
418
- }
419
- function ft(e) {
420
- return Ye(e).context;
421
- }
422
- function Ye(e) {
423
- const { place: t, calendar: a } = e, r = q(e.dashboard), n = be({ dashboard: r, host: {}, calendar: a, materializeInputs: !1 }), s = {
424
- ...D({ dashboard: r, capture: {}, calendar: a }).runtimeValues,
425
- cardViewState: t.cardViewState ?? {}
426
- }, l = t.cardId ? tt(r, t.cardId) : void 0, m = l ? G({
427
- dashboard: r,
428
- location: l,
429
- runtimeValues: s,
430
- semanticExecutionPayload: e.semanticExecutionPayload,
431
- calendar: a,
432
- withRequest: !0
433
- }) : void 0, o = Ze({
434
- surface: "dashboard",
435
- dashboard: r,
436
- // A sheet that does not hold the card is refused by the projection.
437
- sheetId: t.sheetId ?? (l == null ? void 0 : l.sheetId) ?? n.selectedSheetId,
438
- unsavedEdits: !1,
439
- runtimeValues: s,
440
- transientContexts: void 0,
441
- ...l && m !== void 0 ? { selectedCard: { cardId: l.cardId, snapshot: m } } : {},
442
- calendar: a
443
- });
444
- return {
445
- context: o,
446
- openDashboard: r,
447
- ...o.selectedCard && m !== void 0 ? { cardReplay: et({ dashboard: r, cardId: o.selectedCard.id, snapshot: m }) } : {}
448
- };
449
- }
450
- function et(e) {
451
- const t = e.dashboard ? S(e.dashboard).find((r) => r.cardId === e.cardId) : void 0, a = w({
452
- card: e.card ?? (t == null ? void 0 : t.card),
453
- snapshot: e.snapshot,
454
- documentSection: (t == null ? void 0 : t.kind) === "documentSectionCard"
455
- });
456
- return a.status === "ready" ? { selectedCardRequest: a.request } : {
457
- selectedCardUnavailable: {
458
- cardId: e.cardId,
459
- reason: a.reason,
460
- ...a.message ? { message: a.message } : {}
461
- }
462
- };
463
- }
464
- function tt(e, t) {
465
- const a = S(e).find((r) => r.cardId === t);
466
- if (!a)
467
- throw new V("card_not_found", `card ${t} is not on dashboard ${e.id}`);
468
- return a;
469
- }
470
- function G(e) {
471
- const { dashboard: t, location: a, runtimeValues: r } = e, n = a.kind === "documentSectionCard" ? at(t, a) : void 0;
472
- return O({
473
- dashboard: t,
474
- cardId: a.cardId,
475
- cardOverride: a.card,
476
- sheetId: a.sheetId,
477
- transientContexts: e.transientContexts,
478
- cardViewStates: r.cardViewState,
479
- viewerTableSettings: void 0,
480
- adHocFilterValues: r.adHocFilterValues,
481
- inlineFilterValuesMap: r.inlineFilterValuesMap,
482
- dashboardControlValues: r.controlValues,
483
- cardControlValuesMap: r.cardControlValuesMap,
484
- dashboardInputValues: r.dashboardInputValues,
485
- semanticExecutionPayload: e.semanticExecutionPayload,
486
- calendar: e.calendar,
487
- ...n ? { documentSection: n } : {},
488
- ...e.withRequest ? { withRequest: !0 } : {}
489
- });
490
- }
491
- function w(e) {
492
- var a;
493
- const { snapshot: t } = e;
494
- if (e.documentSection) return { status: "unavailable", reason: "document_section" };
495
- if (((a = e.card) == null ? void 0 : a.type) === "matrixTable") return { status: "unavailable", reason: "matrix" };
496
- if (t === "pending") return { status: "unavailable", reason: "pending" };
497
- if (!t || t.status !== "ready")
498
- return {
499
- status: "unavailable",
500
- reason: "blocked",
501
- ...t != null && t.message ? { message: t.message } : {}
502
- };
503
- if (t.matrix) return { status: "unavailable", reason: "matrix" };
504
- if (!t.request) return { status: "unavailable", reason: "no_query" };
505
- try {
506
- const { connectionId: r, requestPayloadBase: n } = fe(t.card, t.request);
507
- return { status: "ready", request: { cardId: t.card.id, connectionId: r, payload: n } };
508
- } catch {
509
- return { status: "unavailable", reason: "no_query" };
510
- }
511
- }
512
- function ht(e) {
513
- const { calendar: t } = e, a = e.host ?? {}, r = q(
514
- a.controlContract ? he(pe(e.dashboard), {
515
- controlContractOverrides: a.controlContract,
516
- cardId: e.cardId
517
- }) : e.dashboard
518
- ), n = S(r).find((c) => c.cardId === e.cardId);
519
- if (!n) return { status: "refused", reason: "card_not_found" };
520
- if (n.kind === "documentSectionCard") return { status: "refused", reason: "document_section" };
521
- const { runtimeValues: s, transientContexts: l } = D({
522
- dashboard: r,
523
- capture: a,
524
- calendar: t
525
- }), m = G({
526
- dashboard: r,
527
- location: n,
528
- runtimeValues: s,
529
- semanticExecutionPayload: e.semanticExecutionPayload,
530
- calendar: t,
531
- transientContexts: l,
532
- withRequest: !0
533
- });
534
- if (!m) return { status: "refused", reason: "card_not_found" };
535
- const o = w({ card: n.card, snapshot: m, documentSection: !1 });
536
- return o.status === "ready" ? { ...o, renderConfig: m.queryContext.finalConfig } : o.reason === "pending" ? { status: "refused", reason: "blocked" } : {
537
- status: "refused",
538
- reason: o.reason,
539
- ...o.message ? { message: o.message } : {}
540
- };
541
- }
542
- function at(e, t) {
543
- var r, n, s;
544
- const a = (r = e.sheets) == null ? void 0 : r.find((l) => l.id === t.sheetId);
545
- if ((s = (n = a == null ? void 0 : a.document) == null ? void 0 : n.inputs) != null && s.length && j(e, t.sheetId).length === 0)
546
- throw new V(
547
- "document_inputs_not_built",
548
- `card ${t.cardId} runs with the document's own inputs on sheet ${t.sheetId}, which only the page builds`
549
- );
550
- return {
551
- sheetId: t.sheetId,
552
- sectionId: t.sectionId,
553
- documentFilterValues: [],
554
- documentControlDefinitions: [],
555
- documentControlValues: {}
556
- };
557
- }
558
- function pt(e) {
559
- const { calendar: t } = e, a = q(e.dashboard), r = a.variables ?? [], n = r.find((f) => f.name === e.name) ?? r.find((f) => f.id === e.name);
560
- if (!n)
561
- return { status: "refused", reason: "variable_unknown", message: `No variable named ${e.name} on this dashboard.`, available: r.map((f) => f.name) };
562
- const s = (a.sheets ?? []).find((f) => f.id === e.sheetId);
563
- if (!s)
564
- return {
565
- status: "refused",
566
- reason: "place_unknown",
567
- message: `No sheet ${e.sheetId} on this dashboard; a variable is derived at a tab or a Document.`,
568
- available: (a.sheets ?? []).map((f) => f.id)
569
- };
570
- const l = W(a, n.id);
571
- if ((l == null ? void 0 : l.kind) !== "variable") return { status: "refused", reason: "broken", message: `${n.name} has no card to run.` };
572
- const m = ie(s) && s.document ? s.document : void 0, o = rt(a, s.id, !!m, e.inputs ?? {}, t);
573
- if (!o.ok) return { status: "refused", reason: "broken", message: o.message };
574
- const { runtimeValues: c, transientContexts: i } = D({ dashboard: a, capture: o.capture, calendar: t }), u = m ? { sheetId: s.id, sectionId: void 0, documentFilterValues: [], documentControlDefinitions: [], documentControlValues: {} } : void 0, d = O({
575
- dashboard: a,
576
- cardId: n.id,
577
- cardOverride: l.card,
578
- sheetId: s.id,
579
- transientContexts: i,
580
- cardViewStates: c.cardViewState,
581
- viewerTableSettings: void 0,
582
- adHocFilterValues: c.adHocFilterValues,
583
- inlineFilterValuesMap: c.inlineFilterValuesMap,
584
- dashboardControlValues: c.controlValues,
585
- cardControlValuesMap: c.cardControlValuesMap,
586
- dashboardInputValues: c.dashboardInputValues,
587
- semanticExecutionPayload: e.semanticExecutionPayload,
588
- calendar: t,
589
- ...u ? { documentSection: u } : {},
590
- withRequest: !0
591
- });
592
- if ((d == null ? void 0 : d.status) === "blocked")
593
- return d.reason === "requiredInput" ? { status: "refused", reason: "held", message: `${n.name} waits for ${d.missingRequiredLabels.join(", ")}.`, missingRequired: d.missingRequiredLabels } : { status: "refused", reason: "broken", message: d.message ?? `${n.name} can't run until its filter mapping is resolved.` };
594
- const b = w({ card: l.card, snapshot: d, documentSection: !1 });
595
- return b.status !== "ready" ? { status: "refused", reason: "broken", message: b.message ?? `${n.name} has no query to run.` } : { status: "ready", variable: n, place: m ? "document" : "sheet", request: b.request };
596
- }
597
- function rt(e, t, a, r, n) {
598
- const s = Object.keys(r);
599
- if (!s.length) return { ok: !0, capture: {} };
600
- if (!a) return { ok: !1, message: "Values are given for a Document's inputs; at a tab the variable runs with the saved defaults." };
601
- const l = j(e, t), m = new Map(l.map((i) => [i.variableName, i])), o = s.filter((i) => !m.has(i));
602
- if (o.length)
603
- return { ok: !1, message: `This Document has no input named ${o.join(", ")}; its inputs are ${[...m.keys()].join(", ") || "none"}.` };
604
- let c = ge(e, { adHocFilterValues: [], controlOverrides: void 0, dashboardInputValues: {} }, n);
605
- for (const [i, u] of Object.entries(r)) {
606
- const d = m.get(i);
607
- let b;
608
- if (d.kind === "control")
609
- b = ce(u);
610
- else {
611
- const f = Array.isArray(u) ? u : [u];
612
- if (!f.every((y) => typeof y == "string" || typeof y == "number" || typeof y == "boolean"))
613
- return { ok: !1, message: `${i} takes a value or a list of values.` };
614
- const p = f.every((y) => typeof y == "number") ? f : f.map(String);
615
- b = de(Ce(d.filter, { filterId: d.filter.id, values: p }, n));
616
- }
617
- if (!b) return { ok: !1, message: `${i} has no usable value.` };
618
- c = le(c, d, { sheetId: t }, b);
619
- }
620
- return { ok: !0, capture: { dashboardInputExecutionSnapshot: { mode: "document", sheetId: t, dashboardInputValues: c } } };
621
- }
622
- export {
623
- V as A,
624
- et as a,
625
- ht as b,
626
- pt as c,
627
- w as d,
628
- ft as e,
629
- Ye as f,
630
- G as g,
631
- Ze as p
632
- };