@agile-team/mach-report 2.15.0 → 2.16.0

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 (155) hide show
  1. package/README.md +14 -9
  2. package/dist/{ExcelBindingWizard-Bs43BGNp.cjs → ExcelBindingWizard-CP6h2x1f.cjs} +1 -1
  3. package/dist/{ExcelBindingWizard-BKH1nGNS.js → ExcelBindingWizard-HhB3hAJE.js} +3 -3
  4. package/dist/{ParamEditor-Da4akw6V.cjs → ParamEditor-CUQLgoxa.cjs} +1 -1
  5. package/dist/{ParamEditor-DoAhzJsm.js → ParamEditor-OKesP_nO.js} +1 -1
  6. package/dist/{ReportBatchPanel-wP9m9Pj1.cjs → ReportBatchPanel-cZCAMAwH.cjs} +1 -1
  7. package/dist/{ReportBatchPanel-BMf6boMA.js → ReportBatchPanel-ruxcbfY6.js} +3 -3
  8. package/dist/ReportPreview-BcDKCLiK.js +4834 -0
  9. package/dist/ReportPreview-Bk9nLfO9.cjs +6 -0
  10. package/dist/{ReportTemplateLibrary-Sxr3eD0J.cjs → ReportTemplateLibrary-BDlNT8JN.cjs} +1 -1
  11. package/dist/{ReportTemplateLibrary-C9wutIiT.js → ReportTemplateLibrary-DcwrH-63.js} +1 -1
  12. package/dist/{RuleEditor-XhGHK8DE.cjs → RuleEditor-BX5S8RSF.cjs} +1 -1
  13. package/dist/{RuleEditor-C_Clasvd.js → RuleEditor-CGl9XY2s.js} +2 -2
  14. package/dist/{TemplateOutlinePanel-JTSR53vJ.cjs → TemplateOutlinePanel-CGrT5DFN.cjs} +1 -1
  15. package/dist/{TemplateOutlinePanel-D6Bkny59.js → TemplateOutlinePanel-SXCjaPKR.js} +1 -1
  16. package/dist/{TemplateReusePanel-Kx35S0Ql.cjs → TemplateReusePanel-6Z3wRFz8.cjs} +1 -1
  17. package/dist/{TemplateReusePanel-rVuK1kTz.js → TemplateReusePanel-lHLOS9Wn.js} +2 -2
  18. package/dist/{TemplateReviewPanel-B0ar9_zf.js → TemplateReviewPanel-CJ9PLc48.js} +1 -1
  19. package/dist/{TemplateReviewPanel-Dn6X9UmY.cjs → TemplateReviewPanel-Dpk7sLcF.cjs} +1 -1
  20. package/dist/analytics.d.cts +2 -0
  21. package/dist/analytics.d.ts +2 -0
  22. package/dist/artifact-integrity.json +99 -91
  23. package/dist/{assets-DEaz4qsp.js → assets-CqIbfbTr.js} +24 -22
  24. package/dist/assets-e4YSke8n.cjs +1 -0
  25. package/dist/auto-YR7a4BtF.js +240 -0
  26. package/dist/auto-uVBjX1j5.cjs +1 -0
  27. package/dist/{batch-BfZHN1do.js → batch-WzDIXJAt.js} +1 -1
  28. package/dist/{batch-CLpELXBl.cjs → batch-z6Aw5GEY.cjs} +1 -1
  29. package/dist/capabilities-DDwXr_cA.js +103 -0
  30. package/dist/capabilities-DNLyZdNw.cjs +1 -0
  31. package/dist/codes.d.cts +2 -0
  32. package/dist/codes.d.ts +2 -0
  33. package/dist/component-tree-Ca6YYfHq.js +61 -0
  34. package/dist/component-tree-DkGLEfZC.cjs +1 -0
  35. package/dist/config-Dg_o8e7m.cjs +1 -0
  36. package/dist/{config-BVsJXSqS.js → config-XQ4qrQ7Q.js} +66 -64
  37. package/dist/designer-BfQSahxq.js +5163 -0
  38. package/dist/designer-CPPdeM5_.cjs +2 -0
  39. package/dist/designer.cjs +1 -1
  40. package/dist/designer.d.cts +53 -0
  41. package/dist/designer.d.ts +53 -0
  42. package/dist/designer.js +1 -1
  43. package/dist/diagnostic-notification-B9K9We3h.cjs +1 -0
  44. package/dist/diagnostic-notification-qGAYZdkB.js +7 -0
  45. package/dist/drill-CsdjgkRM.cjs +1 -0
  46. package/dist/{drill-ByJviLXS.js → drill-DIGsZfyB.js} +11 -11
  47. package/dist/encoding-BOGq4qYL.js +21 -0
  48. package/dist/encoding-BYF9ZTl9.cjs +1 -0
  49. package/dist/{font-loader-Q3bQjmrI.js → font-loader-CzI1GuBc.js} +1 -1
  50. package/dist/{font-loader-B_UkxpzC.cjs → font-loader-EKLzOJxf.cjs} +1 -1
  51. package/dist/index.cjs +7 -8
  52. package/dist/index.d.cts +2 -0
  53. package/dist/index.d.ts +2 -0
  54. package/dist/index.js +865 -834
  55. package/dist/json-snapshot-D6ioHth9.js +1702 -0
  56. package/dist/json-snapshot-DknkjvxP.cjs +2 -0
  57. package/dist/{pdf-CvvrjPQg.cjs → pdf-ByVCb1i6.cjs} +48 -50
  58. package/dist/{pdf-BwNyeGpt.js → pdf-DJ5S6ukC.js} +2737 -2749
  59. package/dist/pdf.cjs +1 -1
  60. package/dist/pdf.d.cts +2 -0
  61. package/dist/pdf.d.ts +2 -0
  62. package/dist/pdf.js +2 -2
  63. package/dist/{plugin-Ca_XZG3l.js → plugin-C2j5_mhx.js} +1 -1
  64. package/dist/{plugin-DHO7X8z2.cjs → plugin-Dr39GBRG.cjs} +1 -1
  65. package/dist/prepared-DdrjLC7L.cjs +1 -0
  66. package/dist/prepared-DqtpvRTn.js +87 -0
  67. package/dist/progress-BXzlVbIp.js +29 -0
  68. package/dist/progress-DJBd9Rb9.cjs +1 -0
  69. package/dist/{progress-D-OTpEav.js → progress-Hc2vxoCs.js} +2 -2
  70. package/dist/protocol-BzwMP4Vw.cjs +1 -0
  71. package/dist/protocol-kt4Iy6-3.js +90 -0
  72. package/dist/{record-bindings-Do_b3h4V.js → record-bindings-CZWBJ1fU.js} +9 -10
  73. package/dist/record-bindings-DUX1VMlR.cjs +1 -0
  74. package/dist/{region-binding-workflow-BMhK_TjP.js → region-binding-workflow-CWNvIjkV.js} +1 -1
  75. package/dist/{region-binding-workflow-DIYJdCUr.cjs → region-binding-workflow-CqSMxQ4p.cjs} +1 -1
  76. package/dist/report-encoding-worker.cjs +1 -0
  77. package/dist/report-encoding-worker.d.ts +1 -0
  78. package/dist/report-encoding-worker.js +2 -0
  79. package/dist/rich-text-layout-ALlMoYOG.cjs +3 -0
  80. package/dist/rich-text-layout-Ct5WrY1g.js +102 -0
  81. package/dist/runtime-BjKBI530.js +168 -0
  82. package/dist/runtime-CBFEPKEs.cjs +1 -0
  83. package/dist/sbom.cdx.json +2 -2
  84. package/dist/server/node.d.cts +86 -1
  85. package/dist/server/node.d.ts +86 -1
  86. package/dist/server-node.cjs +5 -1
  87. package/dist/server-node.js +4558 -473
  88. package/dist/server.cjs +1 -1
  89. package/dist/server.d.cts +8 -1
  90. package/dist/server.d.ts +8 -1
  91. package/dist/server.js +634 -792
  92. package/dist/sha256-BshdOkCC.cjs +1 -0
  93. package/dist/sha256-DTG-Gq8i.js +157 -0
  94. package/dist/style-67OqfNed.js +73 -0
  95. package/dist/style-C22Pbv3T.cjs +1 -0
  96. package/dist/style.css +1 -1
  97. package/dist/{template-catalog-j2B1MJlL.js → template-catalog-BtR2JmCL.js} +9 -9
  98. package/dist/{template-catalog-FJE_c9Qe.cjs → template-catalog-C2NLdrwB.cjs} +1 -1
  99. package/dist/{template-fragments-DcKeiylI.cjs → template-fragments-BVsbxs4a.cjs} +1 -1
  100. package/dist/{template-fragments-BGbQLGlV.js → template-fragments-By0aZC1D.js} +2 -2
  101. package/dist/template-registry-C62vpv4a.cjs +1 -0
  102. package/dist/{template-registry-BtaKPELV.js → template-registry-Cw3vRTX2.js} +389 -321
  103. package/dist/{textwrap-DE1kgcJB.js → textwrap-BEIg2w8y.js} +1 -1
  104. package/dist/textwrap-BI-yJ6Wt.cjs +4 -0
  105. package/dist/vue/async.d.cts +66 -0
  106. package/dist/vue/async.d.ts +66 -0
  107. package/dist/vue/index.d.cts +89 -1
  108. package/dist/vue/index.d.ts +89 -1
  109. package/dist/vue-async.cjs +1 -1
  110. package/dist/vue-async.js +3 -3
  111. package/dist/vue.cjs +1 -1
  112. package/dist/vue.js +7 -7
  113. package/dist/{workbook-session-BvToI-Fd.js → workbook-session-BeSO8PFB.js} +153 -140
  114. package/dist/{workbook-session-Bjv1YCRK.cjs → workbook-session-Cbts-22R.cjs} +12 -12
  115. package/dist/worker.cjs +1 -1
  116. package/dist/worker.d.cts +84 -1
  117. package/dist/worker.d.ts +84 -1
  118. package/dist/worker.js +12 -157
  119. package/dist/xlsx-node.cjs +33 -33
  120. package/dist/xlsx-node.js +1282 -1289
  121. package/dist/xlsx.cjs +4 -3
  122. package/dist/xlsx.d.cts +2 -0
  123. package/dist/xlsx.d.ts +2 -0
  124. package/dist/xlsx.js +297 -279
  125. package/package.json +6 -3
  126. package/dist/ReportPreview-ChV19HBp.js +0 -4619
  127. package/dist/ReportPreview-DbLvvOUT.cjs +0 -6
  128. package/dist/assets-B9ImAi6_.cjs +0 -1
  129. package/dist/batch-BaP6pWDE.cjs +0 -1
  130. package/dist/batch-CGyt-b2W.js +0 -273
  131. package/dist/capabilities-CAh2Nrue.cjs +0 -1
  132. package/dist/capabilities-DskCHs3V.js +0 -69
  133. package/dist/config-D10us76d.cjs +0 -1
  134. package/dist/data-explanation-B8MZRYVS.js +0 -16
  135. package/dist/data-explanation-DE55G30w.cjs +0 -1
  136. package/dist/defaults-DXhiM1ZD.js +0 -10
  137. package/dist/defaults-xhmcLLrf.cjs +0 -1
  138. package/dist/designer-2bDlcNXQ.js +0 -5136
  139. package/dist/designer-BT7XCdbW.cjs +0 -2
  140. package/dist/drill-DYTxuL3A.cjs +0 -1
  141. package/dist/grid-strokes-Cr7DwUux.cjs +0 -1
  142. package/dist/grid-strokes-DyyG1q_o.js +0 -53
  143. package/dist/json-snapshot-DFb2eWkf.js +0 -1416
  144. package/dist/json-snapshot-WWSGlaHG.cjs +0 -2
  145. package/dist/prepared-CFy9B75C.cjs +0 -1
  146. package/dist/prepared-ajM-H-9B.js +0 -69
  147. package/dist/record-bindings-By_UKZ2g.cjs +0 -1
  148. package/dist/render-plan-7xpGrCEl.cjs +0 -1
  149. package/dist/render-plan-Ck6koX9L.js +0 -13
  150. package/dist/sha256-ArEYjaTI.cjs +0 -1
  151. package/dist/sha256-DPEuJ3nh.js +0 -155
  152. package/dist/style-CQ1PK8ZB.js +0 -67
  153. package/dist/style-UgIJSA1F.cjs +0 -1
  154. package/dist/template-registry-Co1zPq5e.cjs +0 -1
  155. package/dist/textwrap-CWHyzkBH.cjs +0 -4
@@ -1,273 +0,0 @@
1
- import { r as v } from "./grid-geometry-BNptEcMm.js";
2
- import { f as V, i as j } from "./number-format-BA_KwrZe.js";
3
- function R(e) {
4
- return !e || typeof e != "object" ? !1 : [e.pageIndex, e.componentIndex, e.rowIndex, e.columnIndex].every((t) => Number.isInteger(t) && t >= 0);
5
- }
6
- function M(e, t, r) {
7
- const n = e.grid;
8
- if (!n) return null;
9
- const o = n.cells[t];
10
- if (!o) return null;
11
- const u = v(n, e.widthMm, e.heightMm).cells.filter((i) => i.ri === t).findIndex((i) => i.ci === r), s = o[u];
12
- return s ? { cell: s, sourceColumnIndex: u } : null;
13
- }
14
- function k(e) {
15
- return e.value !== void 0 ? e.value : e.rawText ?? e.text ?? null;
16
- }
17
- function J(e, t) {
18
- return e.valueType ? e.valueType : typeof t == "number" ? "number" : typeof t == "boolean" ? "boolean" : t === null && e.numberFormat && /[0#?]/.test(e.numberFormat) ? "number" : "text";
19
- }
20
- function z(e, t) {
21
- if (e.derived) return "derived";
22
- if (e.editable === !1) return "cell";
23
- if (e.formula !== void 0) return "formula";
24
- if (e.children?.length) return "complex";
25
- if (t.table && t.table.role !== "body" && e.editable !== !0) return "structure";
26
- }
27
- function A(e, t) {
28
- const r = e.table;
29
- if (r)
30
- return {
31
- id: r.id,
32
- rowIndex: r.rowIndex + t.rowIndex,
33
- role: r.role,
34
- columnKey: r.columnKeys[t.columnIndex]
35
- };
36
- }
37
- function B(e, t, r) {
38
- if (e.derived) return;
39
- if (e.source) return { ...e.source };
40
- const n = t.table?.source, o = t.table?.columnKeys[r.columnIndex];
41
- if (!(!n || n.rowKey === void 0 || o === void 0))
42
- return { ...n, rowKey: n.rowKey, field: o };
43
- }
44
- function O(e, t, r) {
45
- const n = k(r), o = z(r, e);
46
- return {
47
- address: { ...t },
48
- cell: r,
49
- component: e,
50
- value: n,
51
- valueType: J(r, n),
52
- table: A(e, t),
53
- source: B(r, e, t),
54
- editable: o === void 0,
55
- readOnlyReason: o
56
- };
57
- }
58
- function I(e, t) {
59
- if (!R(t)) return null;
60
- const r = e.pages[t.pageIndex]?.components[t.componentIndex];
61
- if (!r) return null;
62
- const n = M(r, t.rowIndex, t.columnIndex);
63
- return n ? O(r, t, n.cell) : null;
64
- }
65
- function h(e) {
66
- const t = /* @__PURE__ */ new Map();
67
- return (r) => {
68
- if (!R(r)) return null;
69
- const n = e.pages[r.pageIndex]?.components[r.componentIndex];
70
- if (!n?.grid) return null;
71
- let o = t.get(n);
72
- if (!o) {
73
- const u = /* @__PURE__ */ new Map();
74
- o = /* @__PURE__ */ new Map();
75
- for (const s of v(n.grid, n.widthMm, n.heightMm).cells) {
76
- const i = u.get(s.ri) ?? 0;
77
- u.set(s.ri, i + 1);
78
- const c = n.grid.cells[s.ri]?.[i];
79
- c && o.set(`${s.ri}:${s.ci}`, c);
80
- }
81
- t.set(n, o);
82
- }
83
- const l = o.get(`${r.rowIndex}:${r.columnIndex}`);
84
- return l ? O(n, r, l) : null;
85
- };
86
- }
87
- class a extends Error {
88
- constructor(t) {
89
- super(`Invalid report cell edit: ${t}`), this.code = t, this.name = "ReportCellEditError";
90
- }
91
- }
92
- function L(e, t) {
93
- let r = e.trim();
94
- const n = t && r.endsWith("%");
95
- if (n && (r = r.slice(0, -1).trim()), /^[+-]?\d{1,3}(?:,\d{3})+(?:\.\d*)?(?:[eE][+-]?\d+)?$/.test(r) && (r = r.replace(/,/g, "")), !/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/.test(r)) throw new a("number");
96
- return Number(r) / (n ? 100 : 1);
97
- }
98
- function G(e, t) {
99
- if (e === null || typeof e == "string" && e.trim() === "") return null;
100
- if (typeof e != "string" && typeof e != "number") throw new a("number");
101
- const r = typeof e == "number" ? e : L(e, j(t.cell.numberFormat));
102
- if (!Number.isFinite(r) || Number.isInteger(r) && !Number.isSafeInteger(r)) throw new a("number");
103
- return r;
104
- }
105
- function P(e) {
106
- if (e === null || typeof e == "string" && e.trim() === "") return null;
107
- if (typeof e == "boolean") return e;
108
- const t = String(e).trim().toLowerCase();
109
- if (["true", "yes", "是", "1"].includes(t)) return !0;
110
- if (["false", "no", "否", "0"].includes(t)) return !1;
111
- throw new a("boolean");
112
- }
113
- function N(e, t) {
114
- return e.valueType === "number" ? G(t, e) : e.valueType === "boolean" ? P(t) : t === null ? null : String(t);
115
- }
116
- function U(e, t) {
117
- const r = t.cell.text, o = [["是", "否"], ["TRUE", "FALSE"], ["True", "False"], ["true", "false"], ["1", "0"]].find((l) => l.includes(r ?? ""));
118
- return o ? o[e ? 0 : 1] : String(e);
119
- }
120
- function x(e, t) {
121
- return t === null ? "" : typeof t == "boolean" ? U(t, e) : typeof t == "number" ? V(t, e.cell.numberFormat) : String(t);
122
- }
123
- function q(e, t, r) {
124
- const n = I(e, t);
125
- if (!n) throw new a("missing");
126
- return C(n, r);
127
- }
128
- function C(e, t) {
129
- if (!e.editable) throw new a("readonly");
130
- const r = N(e, t);
131
- return {
132
- address: { ...e.address },
133
- table: e.table,
134
- source: e.source,
135
- previousValue: e.value,
136
- previousText: e.cell.text ?? "",
137
- value: r,
138
- text: x(e, r)
139
- };
140
- }
141
- function W(e, t) {
142
- const r = e.table, n = t.table;
143
- return !r || !n || r.columnKey === void 0 ? !1 : r.id === n.id && r.rowIndex === n.rowIndex && r.role === n.role && r.columnKey === n.columnKey;
144
- }
145
- function $(e, t, r) {
146
- const n = e.grid, { rowIndex: o, columnIndex: l } = t.address, u = M(e, o, l), s = [...n.cells], i = [...s[o]], c = x(t, r.value), f = { ...u.cell, value: r.value, text: c, rawText: c };
147
- return i[u.sourceColumnIndex] = f, s[o] = i, { ...e, grid: { ...n, cells: s } };
148
- }
149
- function D(e, t) {
150
- const r = e.table?.columnKeys, n = t.table?.columnKey;
151
- return r && n !== void 0 ? r.flatMap((o, l) => o === n ? [l] : []) : [];
152
- }
153
- function H(e, t, r, n, o, l) {
154
- const u = t.table, s = o.table;
155
- if (!u || !s || u.id !== s.id || u.role !== s.role || !t.grid) return t;
156
- const i = s.rowIndex - u.rowIndex;
157
- if (i < 0 || i >= t.grid.cells.length) return t;
158
- let c = t;
159
- for (const f of D(t, o)) {
160
- const d = I(e, { pageIndex: r, componentIndex: n, rowIndex: i, columnIndex: f });
161
- d?.editable && W(o, d) && (c = $(c, d, l));
162
- }
163
- return c;
164
- }
165
- function Q(e, t, r, n, o, l) {
166
- const u = o.address;
167
- return o.table?.columnKey !== void 0 ? H(e, t, r, n, o, l) : u.pageIndex === r && u.componentIndex === n ? $(t, o, l) : t;
168
- }
169
- function F(e, t) {
170
- const r = t.source;
171
- if (!r) return !1;
172
- const n = e.source;
173
- return !n || ["sourceScope", "datasetId", "rowKey", "field", "revision", "sourceToken"].some((o) => !Object.is(n[o], r[o]));
174
- }
175
- function ee(e, t) {
176
- const r = I(e, t.address);
177
- if (!r) throw new a("missing");
178
- if (!r.editable) throw new a("readonly");
179
- if (F(r, t)) throw new a("conflict");
180
- if (!Object.is(r.value, t.previousValue) || (r.cell.text ?? "") !== t.previousText) throw new a("conflict");
181
- const n = N(r, t.value), o = { ...t, value: n, text: x(r, n) };
182
- if (Object.is(n, r.value) && o.text === r.cell.text) return e;
183
- const l = e.pages.map((u, s) => {
184
- const i = u.components.map((c, f) => Q(e, c, s, f, r, o));
185
- return i.every((c, f) => c === u.components[f]) ? u : { ...u, components: i };
186
- });
187
- return { ...e, pages: l };
188
- }
189
- function X(e) {
190
- return JSON.stringify([e.pageIndex, e.componentIndex, e.rowIndex, e.columnIndex]);
191
- }
192
- function T(e) {
193
- const t = e.table;
194
- return t?.columnKey !== void 0 ? JSON.stringify([t.id, t.role, t.rowIndex, t.columnKey]) : X(e.address);
195
- }
196
- function Y(e, t) {
197
- if (!t.length) return e;
198
- const r = new Map(t.map((i) => [T(i), i])), n = new Set(t.flatMap((i) => i.table ? [i.table.id] : [])), o = new Set(t.map((i) => `${i.address.pageIndex}:${i.address.componentIndex}`)), l = h(e);
199
- function u(i, c, f) {
200
- const d = i.grid;
201
- if (!d || !o.has(`${c}:${f}`) && !n.has(i.table?.id ?? "")) return i;
202
- const w = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map();
203
- for (const m of v(d, i.widthMm, i.heightMm).cells) {
204
- const y = E.get(m.ri) ?? 0;
205
- E.set(m.ri, y + 1);
206
- const b = l({ pageIndex: c, componentIndex: f, rowIndex: m.ri, columnIndex: m.ci }), p = b && r.get(T(b));
207
- if (!p || !b.editable) continue;
208
- const S = w.get(m.ri) ?? [...d.cells[m.ri]], g = x(b, p.value);
209
- Object.is(b.value, p.value) && g === b.cell.text || (S[y] = { ...m.cell, value: p.value, text: g, rawText: g }, w.set(m.ri, S));
210
- }
211
- return w.size ? { ...i, grid: { ...d, cells: d.cells.map((m, y) => w.get(y) ?? m) } } : i;
212
- }
213
- const s = e.pages.map((i, c) => {
214
- const f = i.components.map((d, w) => u(d, c, w));
215
- return f.every((d, w) => d === i.components[w]) ? i : { ...i, components: f };
216
- });
217
- return s.every((i, c) => i === e.pages[c]) ? e : { ...e, pages: s };
218
- }
219
- function K(e) {
220
- const t = e.source;
221
- if (t) return JSON.stringify([t.sourceScope, t.datasetId, t.rowKey, t.field]);
222
- const r = e.table;
223
- if (r?.columnKey !== void 0) return JSON.stringify([r.id, r.role, r.rowIndex, r.columnKey]);
224
- const n = e.address;
225
- return JSON.stringify([n.pageIndex, n.componentIndex, n.rowIndex, n.columnIndex]);
226
- }
227
- function te(e, t, r) {
228
- if (typeof r != "string" || !r.trim() || !Array.isArray(t)) throw new a("missing");
229
- if (t.length > 1e4) throw new a("limit");
230
- const n = /* @__PURE__ */ new Set(), o = h(e), l = t.map(({ address: u, value: s }) => {
231
- const i = o(u);
232
- if (!i) throw new a("missing");
233
- const c = C(i, s), f = K(c);
234
- if (n.has(f)) throw new a("duplicate");
235
- return n.add(f), c;
236
- });
237
- return { requestId: r, edits: l };
238
- }
239
- function re(e, t) {
240
- if (t.edits.length > 1e4) throw new a("limit");
241
- const r = h(e), n = /* @__PURE__ */ new Set(), o = t.edits.map((l) => {
242
- const u = r(l.address);
243
- if (!u) throw new a("missing");
244
- const s = K(l);
245
- if (n.has(s)) throw new a("duplicate");
246
- if (n.add(s), F(u, l) || !Object.is(u.value, l.previousValue) || (u.cell.text ?? "") !== l.previousText) throw new a("conflict");
247
- return C(u, l.value);
248
- });
249
- return Y(e, o);
250
- }
251
- function ne(e) {
252
- const t = /* @__PURE__ */ new Map();
253
- for (const r of e) {
254
- const n = K(r), o = t.get(n), l = o ? { ...r, previousValue: o.previousValue, previousText: o.previousText } : { ...r };
255
- Object.is(l.previousValue, l.value) ? t.delete(n) : t.set(n, l);
256
- }
257
- return [...t.values()];
258
- }
259
- export {
260
- a as R,
261
- ee as a,
262
- re as b,
263
- q as c,
264
- te as d,
265
- h as e,
266
- x as f,
267
- I as g,
268
- C as h,
269
- F as i,
270
- N as p,
271
- K as r,
272
- ne as s
273
- };
@@ -1 +0,0 @@
1
- "use strict";const l=require("./progress-B0ctFpKf.cjs"),v=require("./render-plan-7xpGrCEl.cjs");function O(t,e){l.assertOutputActive(e.signal),l.observeOutput(()=>e.onDiagnostic?.(t)),l.assertOutputActive(e.signal)}class k extends Error{constructor(e){super(`Output contains ${e.length} known fidelity issue(s): ${e[0]?.code}`),this.diagnostics=e,this.code="output-fidelity",this.name="OutputFidelityError"}}const x=new Set(["text","rect","line","ellipse"]),$=new Set(["image","chart","barcode","qrcode"]);function C(t,e){if(!t.grid){if(v.isImageBackedComponent(t))return(e==="pdf"||e==="xlsx")&&!/^data:image\/(png|jpe?g);base64,/i.test(t.imageData)?{code:"unsupported-image-format",message:`${e.toUpperCase()} accepts PNG or JPEG data URLs; convert this image before exporting.`}:void 0;if($.has(t.kind))return{code:"missing-image",message:`${t.kind} requires imageData or a renderer adapter before output.`};if(!x.has(t.kind))return{code:"unsupported-component",message:`Unsupported component kind: ${t.kind}.`};if(e==="xlsx"&&t.kind!=="text")return{code:"unsupported-component",message:`XLSX data export omits ${t.kind} geometry.`}}}function u(t,e,s,i,r){return{...r,severity:"warning",format:e,pageIndex:s,componentIndex:i,kind:t.kind,nid:t.nid}}function c(t,e){if(!t||e==="dom")return;const s=[];return t.rotateDeg&&s.push("rotateDeg"),t.opacity!==void 0&&t.opacity!==1&&s.push("opacity"),e!=="xlsx"&&t.align==="justify"&&s.push("justify"),e==="canvas"&&t.underline&&s.push("underline"),e==="xlsx"&&t.letterSpacing&&s.push("letterSpacing"),s.length?`${e} does not preserve these styles: ${s.join(", ")}.`:void 0}function M(t,e,s,i,r){for(const n of t.richParagraphs??[]){e==="xlsx"&&(n.spaceBeforeMm||n.spaceAfterMm||n.indentMm||n.align||n.lineHeight)&&r.push(u(t,e,s,i,{code:"unsupported-style",message:"XLSX rich text preserves fonts and paragraph newlines; paragraph spacing, indentation and alignment are not retained."}));const a=c({align:n.align},e);a&&r.push(u(t,e,s,i,{code:"unsupported-style",message:a}));for(const d of n.segments){const o=c(d.style,e)??(e!=="dom"&&d.style?.backgroundColor?"Inline background colors are not preserved in this output.":void 0);o&&r.push(u(t,e,s,i,{code:"unsupported-style",message:o}))}}}function D(t,e,s,i,r,n,a){if(a.has(t))return;const d=new Set(a).add(t),o=C(t,e);o&&n.push({...u(t,e,s,i,o),componentPath:r});const f=c(t.style,e);f&&n.push({...u(t,e,s,i,{code:"unsupported-style",message:f}),componentPath:r}),v.isRichText(t)&&e==="canvas"&&n.push(u(t,e,s,i,{code:"rich-text-flattened",message:"Rich text is exported as plain text; inline styles are not preserved."})),M(t,e,s,i,n);for(const[p,w]of(t.grid?.cells??[]).entries())for(const[g,h]of w.entries()){const y=c(h?.style,e);if(y&&n.push({...u(t,e,s,i,{code:"unsupported-style",message:y}),componentPath:[...r,p,g]}),h?.children?.length&&e!=="dom")n.push({...u(t,e,s,i,{code:"nested-components-omitted",message:"Nested grid components are omitted; cell text is preserved."}),componentPath:[...r,p,g]});else if(e==="dom")for(const[E,b]of(h?.children??[]).entries())D(b,e,s,i,[...r,p,g,E],n,d)}}function S(t,e){const s=[];return t.pages.forEach((i,r)=>i.components.forEach((n,a)=>D(n,e,r,a,[],s,new Set))),s}function A(t,e,s){l.assertOutputActive(s.signal);const i=S(t,e);if(i.forEach(r=>O(r,s)),s.fidelity==="strict"&&i.length)throw new k(i);return i}exports.OutputFidelityError=k;exports.inspectOutputCapabilities=S;exports.notifyOutputDiagnostic=O;exports.reportOutputDiagnostics=A;
@@ -1,69 +0,0 @@
1
- import { a as h, b as D } from "./progress-D-OTpEav.js";
2
- import { a as x, i as O } from "./render-plan-Ck6koX9L.js";
3
- function b(s, e) {
4
- h(e.signal), D(() => e.onDiagnostic?.(s)), h(e.signal);
5
- }
6
- class E extends Error {
7
- constructor(e) {
8
- super(`Output contains ${e.length} known fidelity issue(s): ${e[0]?.code}`), this.diagnostics = e, this.code = "output-fidelity", this.name = "OutputFidelityError";
9
- }
10
- }
11
- const $ = /* @__PURE__ */ new Set(["text", "rect", "line", "ellipse"]), M = /* @__PURE__ */ new Set(["image", "chart", "barcode", "qrcode"]);
12
- function C(s, e) {
13
- if (!s.grid) {
14
- if (O(s))
15
- return (e === "pdf" || e === "xlsx") && !/^data:image\/(png|jpe?g);base64,/i.test(s.imageData) ? { code: "unsupported-image-format", message: `${e.toUpperCase()} accepts PNG or JPEG data URLs; convert this image before exporting.` } : void 0;
16
- if (M.has(s.kind)) return { code: "missing-image", message: `${s.kind} requires imageData or a renderer adapter before output.` };
17
- if (!$.has(s.kind)) return { code: "unsupported-component", message: `Unsupported component kind: ${s.kind}.` };
18
- if (e === "xlsx" && s.kind !== "text") return { code: "unsupported-component", message: `XLSX data export omits ${s.kind} geometry.` };
19
- }
20
- }
21
- function u(s, e, t, i, r) {
22
- return { ...r, severity: "warning", format: e, pageIndex: t, componentIndex: i, kind: s.kind, nid: s.nid };
23
- }
24
- function l(s, e) {
25
- if (!s || e === "dom") return;
26
- const t = [];
27
- return s.rotateDeg && t.push("rotateDeg"), s.opacity !== void 0 && s.opacity !== 1 && t.push("opacity"), e !== "xlsx" && s.align === "justify" && t.push("justify"), e === "canvas" && s.underline && t.push("underline"), e === "xlsx" && s.letterSpacing && t.push("letterSpacing"), t.length ? `${e} does not preserve these styles: ${t.join(", ")}.` : void 0;
28
- }
29
- function R(s, e, t, i, r) {
30
- for (const n of s.richParagraphs ?? []) {
31
- e === "xlsx" && (n.spaceBeforeMm || n.spaceAfterMm || n.indentMm || n.align || n.lineHeight) && r.push(u(s, e, t, i, { code: "unsupported-style", message: "XLSX rich text preserves fonts and paragraph newlines; paragraph spacing, indentation and alignment are not retained." }));
32
- const a = l({ align: n.align }, e);
33
- a && r.push(u(s, e, t, i, { code: "unsupported-style", message: a }));
34
- for (const d of n.segments) {
35
- const o = l(d.style, e) ?? (e !== "dom" && d.style?.backgroundColor ? "Inline background colors are not preserved in this output." : void 0);
36
- o && r.push(u(s, e, t, i, { code: "unsupported-style", message: o }));
37
- }
38
- }
39
- }
40
- function v(s, e, t, i, r, n, a) {
41
- if (a.has(s)) return;
42
- const d = new Set(a).add(s), o = C(s, e);
43
- o && n.push({ ...u(s, e, t, i, o), componentPath: r });
44
- const f = l(s.style, e);
45
- f && n.push({ ...u(s, e, t, i, { code: "unsupported-style", message: f }), componentPath: r }), x(s) && e === "canvas" && n.push(u(s, e, t, i, { code: "rich-text-flattened", message: "Rich text is exported as plain text; inline styles are not preserved." })), R(s, e, t, i, n);
46
- for (const [c, k] of (s.grid?.cells ?? []).entries()) for (const [p, g] of k.entries()) {
47
- const y = l(g?.style, e);
48
- if (y && n.push({ ...u(s, e, t, i, { code: "unsupported-style", message: y }), componentPath: [...r, c, p] }), g?.children?.length && e !== "dom")
49
- n.push({ ...u(s, e, t, i, { code: "nested-components-omitted", message: "Nested grid components are omitted; cell text is preserved." }), componentPath: [...r, c, p] });
50
- else if (e === "dom")
51
- for (const [S, w] of (g?.children ?? []).entries()) v(w, e, t, i, [...r, c, p, S], n, d);
52
- }
53
- }
54
- function j(s, e) {
55
- const t = [];
56
- return s.pages.forEach((i, r) => i.components.forEach((n, a) => v(n, e, r, a, [], t, /* @__PURE__ */ new Set()))), t;
57
- }
58
- function A(s, e, t) {
59
- h(t.signal);
60
- const i = j(s, e);
61
- if (i.forEach((r) => b(r, t)), t.fidelity === "strict" && i.length) throw new E(i);
62
- return i;
63
- }
64
- export {
65
- E as O,
66
- j as i,
67
- b as n,
68
- A as r
69
- };
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),D=require("@agile-team/mach-report"),_=require("./progress-B0ctFpKf.cjs"),M=require("./_plugin-vue_export-helper-BLmdZLlg.cjs"),T=require("./injection-keys-Db_DyLkm.cjs"),L={printPrepareTimeout:"打印资源准备超时,请检查字体与图片后重试。",printImageFailed:"第 {index} 张图片未能加载,已停止打印,避免输出缺失内容。",printFontFailed:"打印字体 {family} 未能加载,请检查字体资源后重试。",printPrepareFailed:"打印准备失败,请检查打印配置或改用 PDF。",printCalibration:"打印校准",printOffsetX:"水平偏移(mm)",printOffsetY:"垂直偏移(mm)",printCalibrationTest:"打印校准页",printCalibrationHint:"正值向右/向下移动,负值向左/向上。使用同规格纸张及 100% 比例,先试打一张。系统对话框关闭不代表设备已完成。"};function J(e){const n=e?.calibration?.offsetXmm??0,l=e?.calibration?.offsetYmm??0;if(![n,l].every(r=>Number.isFinite(r)&&Math.abs(r)<=20))throw new RangeError("Print calibration must be within ±20 mm");return{x:n,y:l}}function Y(e={}){if(e.fonts&&(!Array.isArray(e.fonts)||e.fonts.length>8))throw new RangeError("At most eight print font faces are allowed");return{...e,...e.fonts?{fonts:e.fonts.map(n=>({...n}))}:{},...e.calibration?{calibration:{...e.calibration}}:{}}}function V(e={}){const n=a.ref(!1),l=a.ref(null),r=a.ref(null),s=a.ref(null);function u(i=!1){n.value=!1,i&&a.nextTick(()=>r.value?.focus())}function m(i){i.target instanceof Node&&!l.value?.contains(i.target)&&u()}function f(i){i.key!=="Escape"||!n.value||i.isComposing||(i.preventDefault(),i.stopPropagation(),u(!0))}return a.watch(n,i=>{!i||e.focusOnOpen===!1||a.nextTick(()=>(s.value?.querySelector("input")??s.value?.querySelector("button:not(:disabled)"))?.focus())}),a.onMounted(()=>{document.addEventListener("pointerdown",m),document.addEventListener("focusin",m)}),a.onBeforeUnmount(()=>{document.removeEventListener("pointerdown",m),document.removeEventListener("focusin",m)}),{opened:n,root:l,trigger:r,panel:s,close:u,onKeydown:f}}class O extends Error{constructor(n,l,r){super(l),this.name="MachReportError",this.code=n,this.cause=r}}function X(e){return e instanceof O?{code:e.code,cause:e.cause}:{code:"render",cause:e}}function Q(e){if(e instanceof O)return e;if(e instanceof D.ReportParamValidationError)return new O("param",e.message,e);if(e instanceof D.ReportSourceError)return new O(e.code,e.message,e.cause);if(e instanceof Error){const n={params:"param",config:"config",validate:"validate",fetch:"fetch"},l=e.code;if(typeof l=="string"&&Object.prototype.hasOwnProperty.call(n,l))return new O(n[l],e.message,e)}return new O("fetch",e instanceof Error?e.message:"预览加载失败",e)}let Z=0;function ee(){return`mrp-params-${++Z}`}function $(e,n,l){const r=(Array.isArray(n)?n.find(s=>s?.field===e.field)?.label:void 0)??e.field;return e.code==="required"?l.paramRequired.replace("{label}",r):(l.paramInvalid??"{label}:{message}").replace("{label}",r).replace("{message}",e.message)}function ae(e){const n=a.ref({}),l=a.ref(!1);function r(){const f={};for(const i of Array.isArray(e.defs.value)?e.defs.value:[])typeof i?.field=="string"&&Object.defineProperty(f,i.field,{value:e.params()[i.field]??i.defaultValue??"",writable:!0,enumerable:!0,configurable:!0});n.value=f,l.value=!1}r(),a.watch(e.defs,r),a.watch(e.reportIds,r),a.watch(()=>JSON.stringify(e.params()),r);const s=a.computed(()=>D.validateReportParams(e.defs.value,{...e.params(),...n.value})),u=a.computed(()=>!l.value&&s.value.issues.length>0&&s.value.issues.every(f=>f.code==="required"));function m(){const f=s.value;if(!f.ok){const p=f.issues[0];return{quiet:u.value,error:new O(p.code==="definition"?"config":"param",$(p,e.defs.value,e.messages()),{issues:f.issues})}}const i={...f.values},w=new Set(e.defs.value.filter(p=>p.defaultValue!==void 0).map(p=>p.field));for(const[p,b]of Object.entries(i))b===""&&!w.has(p)&&delete i[p];return{params:i,quiet:!1}}return{values:n,attempted:l,validation:s,pendingRequired:u,reset:r,query:m}}const I={paramOptionsLoading:"正在搜索选项…",paramOptionsEmpty:"没有匹配选项",paramOptionsFailed:"选项加载失败,请重试",paramOptionsMissingLoader:"尚未配置选项加载服务",paramOptionsDependencies:"请先选择上级条件",paramOptionsClear:"清除选择"},U=100,te=32,ne=6e4,re=15e3;function le(e){if(!Array.isArray(e)||e.length>U)throw new Error("Invalid option response");const n=new Set;return Object.freeze(e.map(l=>{if(!l||typeof l.value!="string"||!l.value||l.value.length>1024||typeof l.label!="string"||l.label.length>1024||n.has(l.value))throw new Error("Invalid option response");return n.add(l.value),Object.freeze({label:l.label,value:l.value})}))}function oe(e){const n=a.ref(""),l=a.shallowRef([]),r=a.ref(!1),s=a.ref(!1),u=a.computed(()=>Object.fromEntries((Array.isArray(e.def().dependsOn)?e.def().dependsOn:[]).map(y=>[y,e.values()[y]??""]))),m=a.computed(()=>Object.values(u.value).some(y=>!y.trim())),f=a.computed(()=>!e.loader()),i=new Map;let w,p,b=0;function P(){b++,w?.abort(),w=void 0,clearTimeout(p),r.value=!1}async function v(){P(),s.value=!1;const y=e.loader(),h=e.def();if(!y||!h.optionsSource||m.value||e.disabled()||!e.opened())return;const x={source:h.optionsSource,field:h.field,query:n.value.trim().slice(0,256),params:Object.freeze({...u.value}),limit:U},o=JSON.stringify(x),d=i.get(o);if(d&&Date.now()-d.at<ne){i.delete(o),i.set(o,d),l.value=d.options;return}const t=b,c=new AbortController;w=c,r.value=!0;const E=setTimeout(()=>c.abort(),re);try{const k=le(await _.waitForOutput(y(Object.freeze({...x,signal:c.signal})),c.signal));if(t!==b)return;for(l.value=k,i.delete(o),i.set(o,{at:Date.now(),options:k});i.size>te;)i.delete(i.keys().next().value)}catch{t===b&&(s.value=!0)}finally{clearTimeout(E),t===b&&(r.value=!1,w=void 0)}}function S(){P(),l.value=[],s.value=!1,p=setTimeout(()=>{v()},180)}return a.watch(n,S,{flush:"sync"}),a.watch([()=>e.def().field,()=>e.def().optionsSource,()=>JSON.stringify(u.value),e.loader],()=>{i.clear(),n.value="",P(),l.value=[],s.value=!1,e.opened()&&v()},{flush:"sync"}),a.watch([e.opened,e.disabled],()=>{!e.opened()||e.disabled()?P():v()}),a.onBeforeUnmount(()=>{P(),i.clear()}),{query:n,options:l,loading:r,failed:s,waiting:m,missingLoader:f,request:v,cancel:P}}const ie=["id","value","aria-labelledby","aria-invalid","aria-required","aria-describedby","aria-expanded","aria-controls","aria-activedescendant","disabled","placeholder"],se=["aria-label","disabled"],ce=["aria-label","disabled"],de=["id"],ue=["id","aria-label","aria-busy"],fe=["id","aria-selected","disabled","onPointermove","onClick"],pe={key:0},me={key:0,role:"status"},ve=a.defineComponent({__name:"ReportRemoteParamSelect",props:{def:{},value:{},values:{},loadOptions:{type:Function},messages:{},disabled:{type:Boolean},id:{},invalid:{type:Boolean}},emits:["change"],setup(e,{emit:n}){const l=e,r=n,s=V({focusOnOpen:!1}),{root:u,panel:m,opened:f}=s,i=oe({def:()=>l.def,values:()=>l.values,loader:()=>l.loadOptions,opened:()=>f.value,disabled:()=>l.disabled===!0}),{query:w,options:p,loading:b,failed:P,waiting:v,missingLoader:S}=i,y=a.computed(()=>({...I,...l.messages})),h=a.ref(0),x=a.ref(""),o=a.ref(),d=a.computed(()=>`${l.id}-options`),t=a.computed(()=>v.value?y.value.paramOptionsDependencies:S.value?y.value.paramOptionsMissingLoader:P.value?y.value.paramOptionsFailed:b.value?y.value.paramOptionsLoading:p.value.length?"":y.value.paramOptionsEmpty);a.watch(()=>l.value,()=>{x.value=""}),a.watch(p,()=>{h.value=0}),a.watch(f,g=>{g&&a.nextTick(()=>o.value?.focus())});function c(g){l.disabled||v.value||b.value||P.value||(r("change",g.value),s.close(),a.nextTick(()=>{x.value=g.label,o.value?.focus()}))}function E(g){g.isComposing||(f.value=!0,w.value=g.target.value)}function k(){!l.disabled&&!v.value&&!S.value&&(w.value="",f.value=!0)}function z(g){if(!(g.isComposing||g.keyCode===229)){if(g.key==="Escape"){f.value&&(g.preventDefault(),g.stopPropagation(),s.close());return}if(["ArrowUp","ArrowDown","Enter"].includes(g.key)){if(g.preventDefault(),g.stopPropagation(),!f.value){k();return}if(g.key==="Enter"){const B=p.value[h.value];B&&c(B);return}p.value.length&&(h.value=(h.value+(g.key==="ArrowDown"?1:-1)+p.value.length)%p.value.length,a.nextTick(()=>m.value?.querySelector(`[id="${d.value}-${h.value}"]`)?.scrollIntoView?.({block:"nearest"})))}}}function K(){l.disabled||(r("change",""),x.value="",s.close())}return(g,B)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"root",ref:u,class:"mrp-remote-param"},[a.createElementVNode("div",{class:a.normalizeClass(["mrp-remote-control",{"is-invalid":e.invalid}])},[a.createVNode(M._sfc_main,{name:"search",size:14}),a.createElementVNode("input",{id:e.id,ref_key:"input",ref:o,type:"text",role:"combobox",autocomplete:"off",value:a.unref(f)?a.unref(w):x.value||e.value,maxlength:256,"aria-labelledby":`${e.id}-label`,"aria-invalid":e.invalid||void 0,"aria-required":e.def.required||void 0,"aria-describedby":e.invalid?`${e.id}-error`:a.unref(v)||a.unref(S)?`${e.id}-remote-status`:void 0,"aria-autocomplete":"list","aria-expanded":a.unref(f),"aria-controls":a.unref(f)?d.value:void 0,"aria-activedescendant":a.unref(f)&&a.unref(p).length?`${d.value}-${h.value}`:void 0,disabled:e.disabled||a.unref(v)||a.unref(S),placeholder:e.def.placeholder??(e.messages.paramSelectPlaceholder??"请选择{label}").replace("{label}",e.def.label??e.def.field),onClick:k,onInput:E,onCompositionend:E,onKeydown:z},null,40,ie),e.value?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button","aria-label":y.value.paramOptionsClear,disabled:e.disabled,onClick:K},[a.createVNode(M._sfc_main,{name:"close",size:12})],8,se)):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button","aria-label":e.def.label??e.def.field,disabled:e.disabled||a.unref(v)||a.unref(S),onClick:B[0]||(B[0]=C=>a.unref(f)?a.unref(s).close():k())},[a.createVNode(M._sfc_main,{name:"chevron-down",size:12})],8,ce))],2),a.unref(v)||a.unref(S)?(a.openBlock(),a.createElementBlock("small",{key:0,id:`${e.id}-remote-status`,role:"status"},a.toDisplayString(t.value),9,de)):a.createCommentVNode("",!0),a.unref(f)?(a.openBlock(),a.createElementBlock("div",{key:1,ref_key:"panel",ref:m,class:"mrp-remote-options"},[a.createElementVNode("div",{id:d.value,role:"listbox","aria-label":e.def.label??e.def.field,"aria-busy":a.unref(b)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(p),(C,F)=>(a.openBlock(),a.createElementBlock("button",{id:`${d.value}-${F}`,key:C.value,type:"button",role:"option",tabindex:"-1","aria-selected":e.value===C.value,class:a.normalizeClass({active:F===h.value}),disabled:a.unref(b),onPointermove:W=>h.value=F,onMousedown:B[1]||(B[1]=a.withModifiers(()=>{},["prevent"])),onClick:W=>c(C)},[a.createElementVNode("span",null,a.toDisplayString(C.label),1),C.label!==C.value?(a.openBlock(),a.createElementBlock("small",pe,a.toDisplayString(C.value),1)):a.createCommentVNode("",!0)],42,fe))),128))],8,ue),t.value?(a.openBlock(),a.createElementBlock("p",me,[a.createTextVNode(a.toDisplayString(t.value),1),a.unref(P)?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",onClick:B[2]||(B[2]=(...C)=>a.unref(i).request&&a.unref(i).request(...C))},a.toDisplayString(e.messages.retry),1)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)],512)):a.createCommentVNode("",!0)],512))}}),ge=M._export_sfc(ve,[["__scopeId","data-v-0e0e3248"]]),be={key:0,class:"mrp-params-title"},ye={class:"mrp-params-grid"},he=["id"],Ee={key:0,class:"mrp-param-star"},ke=["value","disabled","aria-labelledby","aria-invalid","aria-describedby","aria-required","onChange"],we=["disabled","hidden"],Pe=["value"],Se=["aria-labelledby"],Ce=["value","disabled","min","max","aria-label","aria-invalid","aria-describedby","aria-required","onInput"],xe=["type","inputmode","maxlength","placeholder","value","disabled","min","max","step","aria-labelledby","aria-invalid","aria-describedby","aria-required","onInput"],Be=["id"],Ae={key:1,class:"mrp-params-actions"},Oe=["disabled"],Me=["disabled"],Re=a.defineComponent({__name:"ReportParamPanel",props:{defs:{},modelValue:{},messages:{},attempted:{type:Boolean},issues:{default:void 0},showActions:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loadOptions:{type:Function,default:void 0}},emits:["update:modelValue","query","reset"],setup(e,{expose:n,emit:l}){const r=e,s=l,u=a.ref({...r.modelValue}),m=a.ref(null),f=ee();a.watch(()=>r.modelValue,o=>{u.value={...o}});const i=a.computed(()=>r.issues??D.validateReportParams(r.defs,u.value).issues),w=a.computed(()=>(Array.isArray(r.defs)?r.defs:[]).filter(o=>o&&typeof o.field=="string").map((o,d)=>({def:o,id:`${f}-${d}`,label:o.label??o.field,value:u.value[o.field]??"",error:r.attempted?i.value.find(t=>t.field===o.field):void 0}))),p=a.computed(()=>{const o=new Map;for(const d of r.defs)for(const t of Array.isArray(d.dependsOn)?d.dependsOn:[]){const c=o.get(t)??[];c.push(d.field),o.set(t,c)}return o});function b(o,d){if(r.disabled||u.value[o]===d)return;u.value={...u.value,[o]:d};const t=new Set([o]),c=[o];for(let E=0;E<c.length;E++)for(const k of p.value.get(c[E])??[])t.has(k)||(u.value[k]="",t.add(k),c.push(k));s("update:modelValue",{...u.value})}function P(o){return o.type==="number"?"number":o.type==="date"||o.type==="month"?o.type:"text"}function v(o,d){return o.split("/")[d]??""}function S(o,d,t){return t?!!v(o,0)!=!!v(o,1)?!v(o,d)||void 0:!0:void 0}function y(o,d,t){const c=[v(u.value[o]??"",0),v(u.value[o]??"",1)];c[d]=t,b(o,c.every(E=>!E)?"":c.join("/"))}function h(o){o.isComposing||s("query")}function x(){m.value?.querySelector('[aria-invalid="true"]')?.focus()}return n({focusInvalid:x}),(o,d)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"root",ref:m,class:"mrp-params"},[e.showTitle!==!1?(a.openBlock(),a.createElementBlock("span",be,a.toDisplayString(e.messages.paramsTitle),1)):a.createCommentVNode("",!0),a.createElementVNode("div",ye,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.value,t=>(a.openBlock(),a.createElementBlock("label",{key:t.id,class:a.normalizeClass(["mrp-param",{"mrp-param-missing":!!t.error}])},[a.createElementVNode("span",{id:`${t.id}-label`,class:"mrp-param-label"},[a.createTextVNode(a.toDisplayString(t.label),1),t.def.required?(a.openBlock(),a.createElementBlock("i",Ee,"*")):a.createCommentVNode("",!0)],8,he),t.def.optionsSource?(a.openBlock(),a.createBlock(ge,{key:0,id:t.id,def:t.def,value:t.value,values:u.value,"load-options":e.loadOptions,messages:e.messages,disabled:e.disabled,invalid:!!t.error,onChange:c=>b(t.def.field,c)},null,8,["id","def","value","values","load-options","messages","disabled","invalid","onChange"])):(t.def.type??"text")==="select"?(a.openBlock(),a.createElementBlock("select",{key:1,class:"mrp-param-input",value:t.value,disabled:e.disabled,"aria-labelledby":`${t.id}-label`,"aria-invalid":t.error?!0:void 0,"aria-describedby":t.error?`${t.id}-error`:void 0,"aria-required":t.def.required||void 0,onChange:c=>b(t.def.field,c.target.value),onKeydown:a.withKeys(h,["enter"])},[a.createElementVNode("option",{value:"",disabled:t.def.required,hidden:t.def.required},a.toDisplayString(t.def.placeholder??(e.messages.paramSelectPlaceholder??"请选择{label}").replace("{label}",t.label)),9,we),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.def.options??[],c=>(a.openBlock(),a.createElementBlock("option",{key:c.value,value:c.value},a.toDisplayString(c.label),9,Pe))),128))],40,ke)):t.def.type==="dateRange"?(a.openBlock(),a.createElementBlock("div",{key:2,class:"mrp-param-range",role:"group","aria-labelledby":`${t.id}-label`},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList([e.messages.paramRangeStart??"开始日期",e.messages.paramRangeEnd??"结束日期"],(c,E)=>(a.openBlock(),a.createElementBlock("input",{key:E,class:"mrp-param-input",type:"date",value:v(t.value,E),disabled:e.disabled,min:t.def.min,max:t.def.max,"aria-label":`${t.label} · ${c}`,"aria-invalid":S(t.value,E,t.error),"aria-describedby":t.error?`${t.id}-error`:void 0,"aria-required":t.def.required||void 0,onInput:k=>y(t.def.field,E,k.target.value),onKeydown:a.withKeys(h,["enter"])},null,40,Ce))),128))],8,Se)):(a.openBlock(),a.createElementBlock("input",{key:3,class:"mrp-param-input",type:P(t.def),inputmode:t.def.type==="year"?"numeric":void 0,maxlength:t.def.type==="year"?4:void 0,placeholder:t.def.placeholder??(e.messages.paramTextPlaceholder??"请输入{label}").replace("{label}",t.label),value:t.value,disabled:e.disabled,min:t.def.min,max:t.def.max,step:t.def.type==="number"?"any":void 0,"aria-labelledby":`${t.id}-label`,"aria-invalid":t.error?!0:void 0,"aria-describedby":t.error?`${t.id}-error`:void 0,"aria-required":t.def.required||void 0,onInput:c=>b(t.def.field,c.target.value),onKeydown:a.withKeys(h,["enter"])},null,40,xe)),t.error?(a.openBlock(),a.createElementBlock("small",{key:4,id:`${t.id}-error`,class:"mrp-param-error",role:"status"},a.toDisplayString(a.unref($)(t.error,e.defs,e.messages)),9,Be)):a.createCommentVNode("",!0)],2))),128))]),e.showActions!==!1?(a.openBlock(),a.createElementBlock("div",Ae,[a.createElementVNode("button",{class:"mrp-nav mrp-param-query",type:"button",disabled:e.disabled,onClick:d[0]||(d[0]=t=>o.$emit("query"))},a.toDisplayString(e.messages.query),9,Oe),a.createElementVNode("button",{class:"mrp-nav",type:"button",disabled:e.disabled,onClick:d[1]||(d[1]=t=>o.$emit("reset"))},a.toDisplayString(e.messages.reset),9,Me)])):a.createCommentVNode("",!0)],512))}}),De=M._export_sfc(Re,[["__scopeId","data-v-6f9fe7a1"]]),N={calculationTitle:"选区计算",calculationLocal:"仅本地分析,不写回实绩、不重算原公式。请选取同一单位与量纲的数值。",calculationHint:"点击起点,Shift + 点击终点或方向键扩选。",calculationFormula:"计算方式",calculationExpression:"组合公式",calculationExpressionHint:"支持 SUM、AVERAGE/AVG、MIN、MAX、COUNT、MEDIAN 及 + - * / 和括号,不执行 Excel 公式;采用浮点数,精度仅用于展示。",calculationPrecision:"展示小数位",calculationRun:"计算选区",calculationCancel:"取消计算",calculationResult:"计算结果",calculationIncluded:"参与数值",calculationExcluded:"排除单元格",calculationEmpty:"选区没有可计算数值,计数为 0,其余结果为空。",calculationNoSelection:"先关闭设置并选择数据,再从底部工具栏打开选区计算。",calculationSum:"求和 SUM",calculationAverage:"平均值 AVERAGE",calculationMin:"最小值 MIN",calculationMax:"最大值 MAX",calculationCount:"数值计数 COUNT",calculationMedian:"中位数 MEDIAN",calculationCustom:"组合公式",calculationErrorSelection:"请选择同一明细区域中的数据。",calculationErrorLimit:"选区超过计算预算,请缩小范围后重试。",calculationErrorExpression:"公式无效,请使用支持的摘要名称、运算符与括号。",calculationErrorDivision:"除数不能为 0。",calculationErrorOverflow:"结果超出有效数值范围。",calculationErrorPrecision:"数值超出安全精度,或展示小数位不是 0 至 12 的整数。"};function Fe(e){const n={...N};for(const l of Object.keys(n)){const r=e[l];typeof r=="string"&&(n[l]=r)}return n}const H={...I,drillActions:"查看关联",drillOpening:"正在打开…",drillMissingValue:"当前单元格缺少关联参数",drillFailed:"关联内容打开失败,请重试",...L,...N,exportMenu:"导出",exportMenuDescription:"选择文件格式",clearSearch:"清除搜索",searchHint:"Enter 下一个 · Shift+Enter 上一个",searchNoMatches:"没有匹配内容",pageJump:"跳至页",pageJumpInvalid:"请输入有效页码",pageJumpHint:"Enter 跳转",pagination:"报表分页",recordNavigation:"标签记录",recordInfo:"记录 {cur} / {total}",prevRecord:"上一条记录",nextRecord:"下一条记录",dataExplanation:"来源数据说明",dataExplanationHint:"按字段查看来源与计算说明",dataExplanationSearch:"搜索说明、字段或记录",dataExplanationEmpty:"没有匹配的数据说明",dataMissingSource:"暂无来源",dataNotApplicable:"业务不适用",dataNotCalculable:"无法计算",columnSearchHint:"输入列名或字段标识",columnSearchShortcut:"↑ ↓ 选择 · Enter 定位",closeColumnDirectory:"关闭字段目录",columnResultsMore:"{count} 个匹配字段,显示前 {limit} 个;继续输入可缩小范围",columnCount:"{count} 个字段",settingsGeneral:"常规",settingsTools:"工具",settingsAdvanced:"高级",settingsAdvancedDescription:"按需开启分析能力,保持日常阅读简洁。",settingsCalculations:"启用选区计算",settingsCalculationsDescription:"选取数值后计算求和、平均值或组合公式,仅用于本地分析。",title:"报表预览",prevPage:"‹ 上一页",nextPage:"下一页 ›",pageInfo:"{cur} / {total}",fitWidth:"适宽",exportHtml:"导出 HTML",exportPdf:"导出 PDF",exportExcel:"导出 Excel",exportImage:"导出图片",exportWord:"导出 Word",exporting:"正在生成 {format}…",print:"打印",pdfWindow:"PDF 窗口",loading:"报表渲染中…",empty:"暂无预览数据",errorPrefix:"",retry:"重试",pdfFontUnavailable:"PDF 字体尚未就绪,请联系管理员检查字体配置;预览及其它导出仍可使用。",searchPlaceholder:"搜索报表内容",matchInfo:"{cur}/{total}",prevMatch:"‹",nextMatch:"›",thumbnails:"缩略图",paramsTitle:"查询条件",query:"查 询",reset:"重 置",paramRequired:"请填写{label}",paramInvalid:"{label}:{message}",paramPrompt:"请先完善查询条件",paramPromptDescription:"填写必填条件后点击查询,即可生成报表。",paramSelectPlaceholder:"请选择{label}",paramTextPlaceholder:"请输入{label}",paramRangeStart:"开始日期",paramRangeEnd:"结束日期",searching:"搜索中…",importExcel:"导入 Excel 模板",importing:"正在导入 Excel…",editCell:"编辑单元格",editingHint:"双击单元格编辑 · Enter 确认 · Esc 取消",saving:"正在保存修改…",editInvalidNumber:"请输入有效数字;清空表示无值",editInvalidBoolean:"请输入 true / false、是 / 否或 1 / 0",editConflict:"该单元格已变化,请重新打开编辑",settings:"设置",settingsDisplay:"阅读工具",settingsExport:"导出与打印",settingsData:"数据操作",settingsUnavailable:"需由接入方配置启用",settingsReset:"恢复默认",settingsClose:"关闭设置",search:"内容搜索",closeSearch:"关闭搜索",prevSearchMatch:"上一个匹配",nextSearchMatch:"下一个匹配",zoom:"缩放工具",settingsLocal:"按需启用工具,仅作用于当前预览。",editingLocal:"修改为本地草稿;不会自动写入业务数据库。",editingSaved:"修改将通过接入方配置的保存回调提交。",importLocal:"导入仅生成本地预览,不自动替换业务数据。",emptyDescription:"当前查询没有明细,请调整查询条件后重试。",undo:"撤销",redo:"重做",restoreChanges:"恢复来源值",changes:"修改明细",changesCount:"{count} 处修改",changesEmpty:"尚无修改",changesBefore:"来源值",changesAfter:"当前值",editAtomicRequired:"批量保存需要接入方提供原子 saveBatch 回调;本次未写入任何单元格。",clipboardLimit:"单次最多粘贴 10000 个单元格,请分批处理。",preferencesError:"偏好存储不可用,设置仍在当前预览中生效。",freezeHeaders:"冻结表头",frozenColumns:"冻结前列",sections:"工作表与章节",locateField:"定位字段",locateFieldPlaceholder:"输入字段标识,Enter 定位",locateFieldMissing:"未找到该字段,请核对字段标识。",importSummary:"Excel 导入摘要",importPreserved:"已导入 {sheets} 个工作表,保留内容、合并和样式。",importWarnings:"兼容性提示",importReadOnly:"公式、日期及受保护单元格保持只读;公式不重算。",conflicts:"保存冲突",editReadOnly:"选区包含只读或无权限单元格,本次修改未应用。",editMissing:"选区超出报表范围或缺少业务来源,请重新选择。",editRecalculationUnavailable:"此报表缺少重算会话或稳定数据来源,暂不支持编辑;请使用 reports/本地数据源重新加载。",editDuplicate:"选区包含同一业务字段的重复单元格,请缩小选区。",clipboardInvalid:"剪贴板内容无法识别,请使用矩形表格文本重新粘贴。",editSaved:"修改已通过保存回调确认",settingsPanes:"冻结窗格",columnDirectory:"字段目录",columnSearch:"搜索列名或字段",columnNoMatches:"未找到匹配字段",columnResults:"匹配字段",columnGroup:"明细区域",discardTitle:"保留当前修改?",discardDescription:"当前报表有尚未保存的输入或本地草稿,继续操作将替换这些内容。",discardKeep:"继续编辑",discardProceed:"放弃修改并继续",taskQuery:"正在获取数据…",taskValidate:"正在校验数据…",taskLayout:"正在生成版式…",taskAssets:"正在准备图片和字体…",taskEncode:"正在生成文件…",taskDownload:"正在准备下载…",taskPrint:"正在准备打印…",taskCancel:"取消任务",taskCancelled:"任务已取消,可重新操作。",diagnosticsSearch:"搜索提示、错误码或位置",diagnosticsMore:"共 {count} 条匹配,当前展示前 100 条;请搜索缩小范围。",diagnosticsTitle:"输出兼容性提示",diagnosticsLocate:"定位",diagnosticsLocation:"第 {page} 页 · 组件 {component}",diagnosticsStrict:"当前格式存在已知内容降级,请查看兼容性提示或选择其他输出格式。",diagnosticsDetails:"查看技术详情",diagnosticMissingImage:"图片或图表资源尚未准备完成,请重试或联系管理员。",diagnosticUnsupported:"当前输出格式会省略此内容,建议选择 PDF 或图片格式。",diagnosticUnsupportedStyle:"当前格式无法保留部分样式,请查看位置并选择适合的输出格式。",diagnosticImageFormat:"当前图片格式无法直接导出,请转换资源后重试。",diagnosticRichText:"文字内容会保留,部分字体与段落样式将简化。",diagnosticNested:"单元格中的嵌套内容会省略,单元格文字会保留。",diagnosticImageAsync:"图片需要完成加载后才能输出。",diagnosticImageDecode:"图片加载失败,请检查资源后重试。",diagnosticAssetFailed:"图表或图片生成失败,请重试或联系管理员。",diagnosticAssetBudget:"图片资源超出处理范围,请减少资源或缩小报表范围。"},G={emptyAccent:"#79a7e8",shellBg:"#f4f7fc",shellFg:"#334155",toolbarBg:"#ffffff",toolbarBorder:"#e4eaf3",toolbarFg:"#334155",btnFg:"#526078",btnBorder:"#dbe3ef",btnHoverBg:"#edf3ff",btnHoverFg:"#315fba",btnActiveBg:"#3569d4"};function j(e={}){return{...e,defaults:e.defaults??{},presets:e.presets??{}}}function Te(e){return e}const A={showExport:!0,showPrint:!0,showPdfWindow:!0,showSettings:!0,showParams:!0,gapPx:18,pdfFontUrl:"/simhei.ttf",logger:console},Ie={warn:()=>{},info:()=>{}};function Ne(e,n){if(!(!e&&!n))return{...e,...n,calibration:{...e?.calibration,...n?.calibration}}}function R(e,n){return{...e,...n,theme:{...e?.theme,...n?.theme},messages:{...e?.messages,...n?.messages},preview:{...e?.preview,...n?.preview},xlsx:{...e?.xlsx,...n?.xlsx},toolbar:{...e?.toolbar,...n?.toolbar},interaction:{...e?.interaction,...n?.interaction},output:{...e?.output,...n?.output},printOptions:Ne(e?.printOptions,n?.printOptions)}}function qe(e){return{showExport:e.showExport??A.showExport,showPrint:e.showPrint??A.showPrint,showPdfWindow:e.showPdfWindow??A.showPdfWindow,showSettings:e.showSettings??A.showSettings,showParams:e.showParams??A.showParams,gapPx:e.gapPx??A.gapPx}}function Le(e,n){const l=n?e?.presets?.[n]:e?.defaultPreset?e?.presets?.[e.defaultPreset]:void 0,r=R(e?.defaults,l);return{drill:r.drill,loadParamOptions:r.loadParamOptions,...qe(r),pdfFontUrl:r.pdfFontUrl??A.pdfFontUrl,theme:{...G,...r.theme},messages:{...H,...r.messages},logger:r.logger??A.logger,preview:{overscanPages:q(r.preview?.overscanPages,1,10,!0),searchDebounceMs:q(r.preview?.searchDebounceMs,200,2e3)},xlsx:{...r.xlsx},editable:r.editable??!1,excelImport:r.excelImport??!1,toolbar:{...r.toolbar},interaction:{...r.interaction},preferences:r.preferences,assets:r.assets,guardChanges:r.guardChanges??!0,beforeDiscard:r.beforeDiscard,output:{...r.output},printOptions:r.printOptions}}function q(e,n,l,r=!1){if(e==null||!Number.isFinite(e))return n;const s=Math.max(0,Math.min(l,e));return r?Math.floor(s):s}function Ve(e){const n={};return e.emptyAccent!=null&&(n["--mrp-empty-accent"]=e.emptyAccent),e.shellBg!=null&&(n["--mrp-shell-bg"]=e.shellBg),e.shellFg!=null&&(n["--mrp-shell-fg"]=e.shellFg),e.toolbarBg!=null&&(n["--mrp-toolbar-bg"]=e.toolbarBg),e.toolbarBorder!=null&&(n["--mrp-toolbar-border"]=e.toolbarBorder),e.toolbarFg!=null&&(n["--mrp-toolbar-fg"]=e.toolbarFg),e.btnFg!=null&&(n["--mrp-btn-fg"]=e.btnFg),e.btnBorder!=null&&(n["--mrp-btn-border"]=e.btnBorder),e.btnHoverBg!=null&&(n["--mrp-btn-hover-bg"]=e.btnHoverBg),e.btnHoverFg!=null&&(n["--mrp-btn-hover-fg"]=e.btnHoverFg),e.btnActiveBg!=null&&(n["--mrp-btn-active-bg"]=e.btnActiveBg),n}function $e(e){const n=a.inject(T.MACH_REPORT_CONFIG_KEY,null),l=a.computed(()=>{const r=n?.value??null,s="defaults"in e||"presets"in e||"defaultPreset"in e?j(e):{defaults:e,presets:{}};if(!r)return s;const u={...r.presets,...s.presets};for(const m of Object.keys(u))u[m]=R(R(r.presets[m],s.defaults),s.presets[m]);return{defaults:R(r.defaults,s.defaults),presets:u,defaultPreset:s.defaultPreset??r.defaultPreset}});a.provide(T.MACH_REPORT_CONFIG_KEY,l)}function Ue(){return a.inject(T.MACH_REPORT_CONFIG_KEY,a.computed(()=>null))}exports.DEFAULT_CALCULATION_MESSAGES=N;exports.DEFAULT_MESSAGES=H;exports.DEFAULT_PRINT_MESSAGES=L;exports.DEFAULT_THEME=G;exports.MachReportError=O;exports.PARAM_OPTIONS_MESSAGES=I;exports.ReportParamPanel=De;exports.SILENT_LOGGER=Ie;exports.defineMachReportConfig=j;exports.defineMachReportPreset=Te;exports.normalizeReportLoadError=Q;exports.printCalibration=J;exports.provideMachReportConfig=$e;exports.resolveCalculationMessages=Fe;exports.resolveConfig=Le;exports.snapshotPrintOptions=Y;exports.themeToCssVars=Ve;exports.toErrorDetail=X;exports.useMachReportConfig=Ue;exports.usePopover=V;exports.useReportParams=ae;
@@ -1,16 +0,0 @@
1
- function i(t) {
2
- if (!t || typeof t != "object" || Array.isArray(t)) return !1;
3
- const e = t, r = (o) => typeof o == "string" && o.trim().length > 0 && o.length <= 256;
4
- return !r(e.datasetId) || !r(e.field) || e.tableId !== void 0 && !r(e.tableId) || e.reportScope !== void 0 && (typeof e.reportScope != "string" || !e.reportScope.trim() || e.reportScope.length > 4096) ? !1 : e.rowKey === void 0 ? !0 : typeof e.rowKey == "string" ? e.rowKey.trim().length > 0 && e.rowKey.length <= 1024 : typeof e.rowKey == "number" && Number.isFinite(e.rowKey);
5
- }
6
- function n(t) {
7
- return t === "missing-source" || t === "not-applicable" || t === "not-calculable";
8
- }
9
- function a(t) {
10
- return t.target !== void 0 && !i(t.target) ? !1 : t.valueState === void 0 || n(t.valueState) && t.target !== void 0;
11
- }
12
- export {
13
- n as a,
14
- a as h,
15
- i
16
- };
@@ -1 +0,0 @@
1
- "use strict";function a(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t,r=o=>typeof o=="string"&&o.trim().length>0&&o.length<=256;return!r(e.datasetId)||!r(e.field)||e.tableId!==void 0&&!r(e.tableId)||e.reportScope!==void 0&&(typeof e.reportScope!="string"||!e.reportScope.trim()||e.reportScope.length>4096)?!1:e.rowKey===void 0?!0:typeof e.rowKey=="string"?e.rowKey.trim().length>0&&e.rowKey.length<=1024:typeof e.rowKey=="number"&&Number.isFinite(e.rowKey)}function i(t){return t==="missing-source"||t==="not-applicable"||t==="not-calculable"}function n(t){return t.target!==void 0&&!a(t.target)?!1:t.valueState===void 0||i(t.valueState)&&t.target!==void 0}exports.hasValidDataExplanation=n;exports.isReportDataTarget=a;exports.isReportValueState=i;
@@ -1,10 +0,0 @@
1
- const s = 1.35, T = 10.5, _ = '"Microsoft YaHei", sans-serif', E = 0.75, a = "#333333", c = "#000000", o = "1.0.0-mach";
2
- export {
3
- _ as D,
4
- s as L,
5
- o as S,
6
- c as a,
7
- E as b,
8
- T as c,
9
- a as d
10
- };
@@ -1 +0,0 @@
1
- "use strict";const T='"Microsoft YaHei", sans-serif';const _="#333333",E="#000000",L="1.0.0-mach";exports.DEFAULT_BORDER_PT=.75;exports.DEFAULT_FONT_FAMILY=T;exports.DEFAULT_FONT_PT=10.5;exports.DEFAULT_STROKE_COLOR=_;exports.DEFAULT_TEXT_COLOR=E;exports.LINE_HEIGHT=1.35;exports.SCHEMA_VERSION_MACH=L;