markdown-flow-ui 0.2.36-dev.1 → 0.3.0-dev.1

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 (159) hide show
  1. package/README.md +11 -11
  2. package/dist/_virtual/index.es10.js +2 -2
  3. package/dist/_virtual/index.es3.js +5 -4
  4. package/dist/_virtual/index.es3.js.map +1 -1
  5. package/dist/_virtual/index.es4.js +4 -5
  6. package/dist/_virtual/index.es4.js.map +1 -1
  7. package/dist/_virtual/index.es5.js +5 -5
  8. package/dist/_virtual/index.es6.js +5 -3
  9. package/dist/_virtual/index.es6.js.map +1 -1
  10. package/dist/_virtual/index.es7.js +3 -5
  11. package/dist/_virtual/index.es7.js.map +1 -1
  12. package/dist/_virtual/index.es9.js +2 -2
  13. package/dist/_virtual/index10.cjs +1 -1
  14. package/dist/_virtual/index3.cjs +1 -1
  15. package/dist/_virtual/index4.cjs +1 -1
  16. package/dist/_virtual/index5.cjs +1 -1
  17. package/dist/_virtual/index6.cjs +1 -1
  18. package/dist/_virtual/index7.cjs +1 -1
  19. package/dist/_virtual/index9.cjs +1 -1
  20. package/dist/_virtual/variable-marker.cjs +2 -0
  21. package/dist/_virtual/variable-marker.cjs.map +1 -0
  22. package/dist/_virtual/variable-marker.es.js +5 -0
  23. package/dist/_virtual/variable-marker.es.js.map +1 -0
  24. package/dist/components/ContentRender/ContentRender.cjs +2 -2
  25. package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
  26. package/dist/components/ContentRender/ContentRender.es.js +206 -205
  27. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  28. package/dist/components/ContentRender/utils/inline-code-ranges.cjs +9 -9
  29. package/dist/components/ContentRender/utils/inline-code-ranges.cjs.map +1 -1
  30. package/dist/components/ContentRender/utils/inline-code-ranges.d.ts +3 -0
  31. package/dist/components/ContentRender/utils/inline-code-ranges.es.js +185 -161
  32. package/dist/components/ContentRender/utils/inline-code-ranges.es.js.map +1 -1
  33. package/dist/components/ContentRender/utils/mermaid-parse.cjs +4 -4
  34. package/dist/components/ContentRender/utils/mermaid-parse.cjs.map +1 -1
  35. package/dist/components/ContentRender/utils/mermaid-parse.es.js +53 -48
  36. package/dist/components/ContentRender/utils/mermaid-parse.es.js.map +1 -1
  37. package/dist/components/ContentRender/utils/split-content.cjs +6 -6
  38. package/dist/components/ContentRender/utils/split-content.cjs.map +1 -1
  39. package/dist/components/ContentRender/utils/split-content.d.ts +1 -0
  40. package/dist/components/ContentRender/utils/split-content.es.js +361 -313
  41. package/dist/components/ContentRender/utils/split-content.es.js.map +1 -1
  42. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
  43. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
  44. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +278 -283
  45. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
  46. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +1 -1
  47. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +1 -1
  48. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +57 -58
  49. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +1 -1
  50. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +1 -1
  51. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +1 -1
  52. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +1 -1
  53. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.cjs +1 -1
  54. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.d.ts +1 -1
  55. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js +19 -19
  56. package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
  57. package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +1 -1
  58. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +5 -5
  59. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.cjs +1 -1
  60. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.d.ts +1 -1
  61. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js +1 -1
  62. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.cjs +1 -1
  63. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.d.ts +1 -1
  64. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js +15 -15
  65. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
  66. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +1 -1
  67. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +13 -13
  68. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.cjs +1 -1
  69. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.d.ts +1 -1
  70. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js +1 -1
  71. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +1 -1
  72. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +1 -1
  73. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +1 -1
  74. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.cjs +1 -1
  75. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.d.ts +1 -1
  76. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js +1 -1
  77. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.cjs +1 -1
  78. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.d.ts +1 -1
  79. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js +15 -15
  80. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
  81. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +1 -1
  82. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +1 -1
  83. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs +3 -3
  84. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs.map +1 -1
  85. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js +177 -176
  86. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
  87. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.cjs +2 -1
  88. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.cjs.map +1 -1
  89. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.d.ts +3 -1
  90. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.es.js +38 -55
  91. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.es.js.map +1 -1
  92. package/dist/components/MarkdownFlowEditor/utils.cjs +1 -1
  93. package/dist/components/MarkdownFlowEditor/utils.cjs.map +1 -1
  94. package/dist/components/MarkdownFlowEditor/utils.d.ts +2 -2
  95. package/dist/components/MarkdownFlowEditor/utils.es.js +34 -31
  96. package/dist/components/MarkdownFlowEditor/utils.es.js.map +1 -1
  97. package/dist/components/ui/inputGroup/textarea.cjs +1 -1
  98. package/dist/components/ui/inputGroup/textarea.es.js +1 -1
  99. package/dist/lib/interaction-defaults.cjs +1 -1
  100. package/dist/lib/interaction-defaults.cjs.map +1 -1
  101. package/dist/lib/interaction-defaults.es.js +124 -133
  102. package/dist/lib/interaction-defaults.es.js.map +1 -1
  103. package/dist/lib/interaction-defaults.failure.test.d.ts +1 -0
  104. package/dist/node_modules/classnames/index.cjs +1 -1
  105. package/dist/node_modules/classnames/index.es.js +1 -1
  106. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
  107. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
  108. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAMF2YG6.cjs +1 -1
  109. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAMF2YG6.es.js +1 -1
  110. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OMD6QJNC.cjs +1 -1
  111. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OMD6QJNC.es.js +1 -1
  112. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U37J5Y7L.cjs +1 -1
  113. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U37J5Y7L.es.js +1 -1
  114. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-WV7ZQ7D5.cjs +1 -1
  115. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-WV7ZQ7D5.es.js +1 -1
  116. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-4MX5Z3NR.cjs +1 -1
  117. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-4MX5Z3NR.es.js +1 -1
  118. package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
  119. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  120. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
  121. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  122. package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
  123. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  124. package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
  125. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  126. package/dist/node_modules/remark-flow/dist/escaping.cjs +2 -2
  127. package/dist/node_modules/remark-flow/dist/escaping.cjs.map +1 -1
  128. package/dist/node_modules/remark-flow/dist/escaping.es.js +128 -63
  129. package/dist/node_modules/remark-flow/dist/escaping.es.js.map +1 -1
  130. package/dist/node_modules/remark-flow/dist/index.cjs +1 -1
  131. package/dist/node_modules/remark-flow/dist/index.cjs.map +1 -1
  132. package/dist/node_modules/remark-flow/dist/index.es.js +49 -37
  133. package/dist/node_modules/remark-flow/dist/index.es.js.map +1 -1
  134. package/dist/node_modules/remark-flow/dist/interaction-parser.cjs +1 -1
  135. package/dist/node_modules/remark-flow/dist/interaction-parser.cjs.map +1 -1
  136. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js +260 -255
  137. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js.map +1 -1
  138. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
  139. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs.map +1 -1
  140. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +71 -42
  141. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js.map +1 -1
  142. package/dist/node_modules/remark-flow/dist/interaction-syntax.cjs +1 -1
  143. package/dist/node_modules/remark-flow/dist/interaction-syntax.cjs.map +1 -1
  144. package/dist/node_modules/remark-flow/dist/interaction-syntax.es.js +500 -46
  145. package/dist/node_modules/remark-flow/dist/interaction-syntax.es.js.map +1 -1
  146. package/dist/node_modules/remark-flow/dist/variable-marker.cjs +2 -0
  147. package/dist/node_modules/remark-flow/dist/variable-marker.cjs.map +1 -0
  148. package/dist/node_modules/remark-flow/dist/variable-marker.es.js +77 -0
  149. package/dist/node_modules/remark-flow/dist/variable-marker.es.js.map +1 -0
  150. package/dist/node_modules/remark-flow/dist/variable-name.cjs +14 -1
  151. package/dist/node_modules/remark-flow/dist/variable-name.cjs.map +1 -1
  152. package/dist/node_modules/remark-flow/dist/variable-name.es.js +742 -25
  153. package/dist/node_modules/remark-flow/dist/variable-name.es.js.map +1 -1
  154. package/dist/node_modules/style-to-object/cjs/index.cjs +1 -1
  155. package/dist/node_modules/style-to-object/cjs/index.cjs.map +1 -1
  156. package/dist/node_modules/style-to-object/cjs/index.es.js +1 -1
  157. package/dist/node_modules/unified/lib/index.cjs +1 -1
  158. package/dist/node_modules/unified/lib/index.es.js +1 -1
  159. package/package.json +2 -2
@@ -1,31 +1,748 @@
1
- import { __exports as R } from "../../../_virtual/variable-name.es.js";
2
- var r;
3
- function b() {
4
- return r ? R : (r = 1, (function(a) {
5
- Object.defineProperty(a, "__esModule", { value: !0 }), a.extractVariableNames = a.createVariableExpressionRegex = a.isValidVariableName = a.normalizeVariableName = a.VARIABLE_ASSIGNMENT_SOURCE = a.VARIABLE_REFERENCE_SOURCE = a.VARIABLE_NAME_SOURCE = void 0;
6
- const i = "\\u0009-\\u000d\\u001c-\\u0020\\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000";
7
- a.VARIABLE_NAME_SOURCE = `[^{}${i}]+`;
8
- const n = `[${i}]*`, l = new RegExp(`^[${i}]+|[${i}]+$`, "gu");
9
- a.VARIABLE_REFERENCE_SOURCE = `\\{\\{${n}(${a.VARIABLE_NAME_SOURCE})${n}\\}\\}`, a.VARIABLE_ASSIGNMENT_SOURCE = `%${a.VARIABLE_REFERENCE_SOURCE}`;
10
- const A = new RegExp(`^${a.VARIABLE_NAME_SOURCE}$`, "u"), u = (e) => {
11
- const E = e.replace(l, "");
12
- return A.test(E) ? E : null;
1
+ import { __exports as C } from "../../../_virtual/variable-name.es.js";
2
+ import { __require as cn } from "./variable-marker.es.js";
3
+ import { __require as Bn } from "./escaping.es.js";
4
+ var an;
5
+ function Un() {
6
+ return an ? C : (an = 1, (function(w) {
7
+ var un = C && C.__createBinding || (Object.create ? (function(n, r, t, e) {
8
+ e === void 0 && (e = t);
9
+ var o = Object.getOwnPropertyDescriptor(r, t);
10
+ (!o || ("get" in o ? !r.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: function() {
11
+ return r[t];
12
+ } }), Object.defineProperty(n, e, o);
13
+ }) : (function(n, r, t, e) {
14
+ e === void 0 && (e = t), n[e] = r[t];
15
+ })), fn = C && C.__exportStar || function(n, r) {
16
+ for (var t in n) t !== "default" && !Object.prototype.hasOwnProperty.call(r, t) && un(r, n, t);
13
17
  };
14
- a.normalizeVariableName = u;
15
- const V = (e) => (0, a.normalizeVariableName)(e) !== null;
16
- a.isValidVariableName = V;
17
- const _ = (e = "g") => new RegExp(a.VARIABLE_REFERENCE_SOURCE, e);
18
- a.createVariableExpressionRegex = _;
19
- const N = (e) => {
20
- const E = /* @__PURE__ */ new Set();
21
- for (const c of e.matchAll((0, a.createVariableExpressionRegex)("gu")))
22
- E.add(c[1]);
23
- return [...E];
18
+ Object.defineProperty(w, "__esModule", { value: !0 }), w.extractVariableNames = w.findRejectedDocumentInlineOpenings = w.findDocumentVariableMarkers = w.isInlineCodeBoundaryLine = void 0, fn(cn(), w);
19
+ const dn = Bn(), Q = cn();
20
+ class hn {
21
+ constructor(r) {
22
+ this.text = r;
23
+ let t = 1;
24
+ for (let o = 0; o < r.length; o++)
25
+ r[o] === "\r" ? (t++, r[o + 1] === `
26
+ ` && o++) : r[o] === `
27
+ ` && t++;
28
+ this.starts = new Uint32Array(t);
29
+ let e = 1;
30
+ for (let o = 0; o < r.length; o++)
31
+ r[o] === "\r" ? (r[o + 1] === `
32
+ ` && o++, this.starts[e++] = o + 1) : r[o] === `
33
+ ` && (this.starts[e++] = o + 1);
34
+ }
35
+ get length() {
36
+ return this.starts.length;
37
+ }
38
+ start(r) {
39
+ return this.starts[r];
40
+ }
41
+ at(r) {
42
+ const t = this.starts[r], e = this.starts[r + 1] ?? this.text.length;
43
+ let o = e;
44
+ return r + 1 < this.starts.length && (o--, this.text[o] === `
45
+ ` && this.text[o - 1] === "\r" && o--), { start: t, contentEnd: o, end: e };
46
+ }
47
+ }
48
+ function k(n, r) {
49
+ let t = 0, e = n.length;
50
+ for (; t < e; ) {
51
+ const o = t + e >>> 1;
52
+ n.start(o) <= r ? t = o + 1 : e = o;
53
+ }
54
+ return Math.max(0, t - 1);
55
+ }
56
+ const V = /[\t\n\f\r ]/, Y = /[\t\n\r ]/, x = /[!-/:-@[-`{-~]/, gn = 32, En = 32, mn = 63, bn = /[A-Za-z0-9.!#$%&'*+/=?^_`{|}~-]/, pn = /[A-Za-z0-9]/, j = /^ {0,3}#{1,6}(?:[ \t]|$)/, K = /^ {0,3}(?:(?:\*[ \t]*){3,}|(?:-[ \t]*){3,}|(?:_[ \t]*){3,})$/, yn = /^ {0,3}(?:=+|-+)[\t ]*$/, nn = /^ {0,3}(?:>|(?:[-+*]|1[.)])[ \t]+[^ \t])/, Sn = /^[ \t]*\r?$|^ {0,3}(?:`{3,}[^`\r\n]*|~{3,}[^\r\n]*)\r?$/, _n = (n) => Sn.test(n) || j.test(n) || yn.test(n) || K.test(n) || nn.test(n) || On(n);
57
+ w.isInlineCodeBoundaryLine = _n;
58
+ function B(n, r, t, e) {
59
+ const o = e.get(r);
60
+ if (o !== void 0 && t >= o)
61
+ return -1;
62
+ const s = n.indexOf(r, t);
63
+ return s < 0 && e.set(r, t), s;
64
+ }
65
+ function X(n, r, t) {
66
+ for (const [c, g] of [
67
+ ["<!--", "-->"],
68
+ ["<![CDATA[", "]]>"],
69
+ ["<?", "?>"]
70
+ ])
71
+ if (n.startsWith(c, r)) {
72
+ const d = B(n, g, r + c.length, t);
73
+ return d < 0 ? null : d + g.length;
74
+ }
75
+ if (/^<![A-Za-z]/.test(n.slice(r, r + 3))) {
76
+ const c = B(n, ">", r + 3, t);
77
+ return c < 0 ? null : c + 1;
78
+ }
79
+ let e = r + 1;
80
+ const o = n[e] === "/";
81
+ o && e++;
82
+ const s = /[A-Za-z][A-Za-z0-9-]*/y;
83
+ if (s.lastIndex = e, !s.exec(n))
84
+ return null;
85
+ for (e = s.lastIndex; ; ) {
86
+ const c = e;
87
+ for (; e < n.length && V.test(n[e]); )
88
+ e++;
89
+ if (n[e] === ">")
90
+ return e + 1;
91
+ if (!o && n.startsWith("/>", e))
92
+ return e + 2;
93
+ if (o || e === c)
94
+ return null;
95
+ const g = /[A-Za-z_:][A-Za-z0-9_.:-]*/y;
96
+ if (g.lastIndex = e, !g.exec(n))
97
+ return null;
98
+ e = g.lastIndex;
99
+ const d = e;
100
+ for (; e < n.length && V.test(n[e]); )
101
+ e++;
102
+ if (n[e] !== "=") {
103
+ e = d;
104
+ continue;
105
+ }
106
+ for (e++; e < n.length && V.test(n[e]); )
107
+ e++;
108
+ const f = n[e];
109
+ if (f === '"' || f === "'") {
110
+ const i = B(n, f, e + 1, t);
111
+ if (i < 0)
112
+ return null;
113
+ e = i + 1;
114
+ } else {
115
+ const i = e;
116
+ for (; e < n.length && !/[\t\n\f\r "'=<>`]/.test(n[e]); )
117
+ e++;
118
+ if (e === i)
119
+ return null;
120
+ }
121
+ }
122
+ }
123
+ function wn(n, r) {
124
+ let t = r + 1;
125
+ if (/[A-Za-z]/.test(n[t] ?? "")) {
126
+ let e = 0;
127
+ for (; e < En && /[A-Za-z0-9+.-]/.test(n[t] ?? ""); )
128
+ t++, e++;
129
+ if (e >= 2 && n[t] === ":") {
130
+ for (t++; t < n.length; ) {
131
+ const o = n.charCodeAt(t);
132
+ if (n[t] === ">")
133
+ return { bodyStart: r + 1, bodyEnd: t, end: t + 1 };
134
+ if (o > 0 && o <= 32 || o === 127 || n[t] === "<")
135
+ return null;
136
+ t++;
137
+ }
138
+ return null;
139
+ }
140
+ }
141
+ for (t = r + 1; t < n.length && bn.test(n[t]); )
142
+ t++;
143
+ if (t === r + 1 || n[t] !== "@")
144
+ return null;
145
+ for (t++; ; ) {
146
+ if (!pn.test(n[t] ?? ""))
147
+ return null;
148
+ const e = t;
149
+ for (; t < n.length && /[A-Za-z0-9-]/.test(n[t]); )
150
+ t++;
151
+ if (t - e > mn || n[t - 1] === "-")
152
+ return null;
153
+ if (n[t] === ">")
154
+ return { bodyStart: r + 1, bodyEnd: t, end: t + 1 };
155
+ if (n[t] !== ".")
156
+ return null;
157
+ t++;
158
+ }
159
+ }
160
+ function A(n, r, t) {
161
+ let e = 0;
162
+ for (; e < t; ) {
163
+ if (!r.virtualPadding) {
164
+ const s = n[r.offset];
165
+ if (s !== " " && s !== " ")
166
+ break;
167
+ const c = s === " " ? 4 - r.column % 4 : 1;
168
+ r.offset++, r.column += c, r.virtualPadding = c;
169
+ }
170
+ const o = Math.min(t - e, r.virtualPadding);
171
+ r.virtualPadding -= o, e += o;
172
+ }
173
+ return e;
174
+ }
175
+ function M(n, r) {
176
+ return A(n, { ...r }, 4);
177
+ }
178
+ function An(n, r, t, e, o, s = []) {
179
+ if (t > 0 && !e)
180
+ return null;
181
+ let c = null;
182
+ const g = t;
183
+ for (; t < r.length; t++) {
184
+ const { start: d, contentEnd: f } = r.at(t), i = n.slice(d, f), a = t === g ? o : T(i, s);
185
+ if (a === null) {
186
+ if (!s.some((b) => "quote" in b) && /^[\t ]*$/.test(i))
187
+ continue;
188
+ return c;
189
+ }
190
+ const y = i.slice(a.offset);
191
+ if (/^[\t ]*$/.test(y)) {
192
+ if (c === null)
193
+ return null;
194
+ } else {
195
+ if (M(i, a) < 4)
196
+ return c;
197
+ c = f;
198
+ }
199
+ }
200
+ return c;
201
+ }
202
+ function tn(n, r, t) {
203
+ const e = /^ {0,3}<(script|style|pre|textarea)(?=[\t\n\f\r >]|$)/i.exec(n.slice(r, r + 16));
204
+ if (!e)
205
+ return null;
206
+ const o = X(n, r + e[0].indexOf("<"), t);
207
+ return { name: e[1], end: o ?? r + e[0].length };
208
+ }
209
+ function In(n, r, t, e, o) {
210
+ const s = tn(n, r, t);
211
+ if (!s)
212
+ return null;
213
+ const c = o?.() ?? n.length;
214
+ if (s.end > c)
215
+ return null;
216
+ const g = new RegExp(`</${s.name}[ \\t\\r\\n]*>`, "gi");
217
+ g.lastIndex = s.end;
218
+ const d = g.exec(n), f = d ? d.index + d[0].length : c, i = Math.min(c, e.at(k(e, f)).contentEnd);
219
+ return { bodyStart: s.end, bodyEnd: i, end: i };
220
+ }
221
+ function Ln(n, r, t, e, o, s = []) {
222
+ const c = /^ {0,3}<(?:!--|\?|!\[CDATA\[|![A-Z])/.exec(n.slice(r, r + 12));
223
+ if (!c)
224
+ return null;
225
+ const g = o?.() ?? n.length, d = c[0].slice(c[0].indexOf("<")), f = d === "<!--" ? "-->" : d === "<?" ? "?>" : d === "<![CDATA[" ? "]]>" : ">";
226
+ let i = r + c[0].length, a = k(e, i), y = null;
227
+ for (; ; ) {
228
+ const _ = B(n, f, i, t);
229
+ if (_ < 0 || _ + f.length > g)
230
+ break;
231
+ if (f === ">" && s.length) {
232
+ for (; a + 1 < e.length && e.start(a + 1) <= _; )
233
+ a++;
234
+ const S = e.at(a), h = P(n.slice(S.start, S.contentEnd), s);
235
+ if (h !== null && _ < S.start + h) {
236
+ i = _ + f.length;
237
+ continue;
238
+ }
239
+ }
240
+ y = _ + f.length;
241
+ break;
242
+ }
243
+ if (y === null)
244
+ return g < n.length ? { bodyStart: r + c[0].length, bodyEnd: g, end: g } : null;
245
+ const b = Math.min(g, e.at(k(e, y)).contentEnd);
246
+ return { bodyStart: y, bodyEnd: b, end: b };
247
+ }
248
+ function W(n, r) {
249
+ if (n[r] !== `
250
+ ` && n[r] !== "\r")
251
+ return !1;
252
+ let t = r + (n[r] === "\r" && n[r + 1] === `
253
+ ` ? 2 : 1);
254
+ for (; n[t] === " " || n[t] === " "; )
255
+ t++;
256
+ return n[t] === `
257
+ ` || n[t] === "\r";
258
+ }
259
+ function H(n, r) {
260
+ for (; r < n.length && Y.test(n[r]); ) {
261
+ if (W(n, r))
262
+ return null;
263
+ r++;
264
+ }
265
+ return r;
266
+ }
267
+ function en(n, r, t = gn) {
268
+ let e = r;
269
+ const o = () => n[e] === "\\" && x.test(n[e + 1] ?? "");
270
+ if (n[e] === "<") {
271
+ for (e++; e < n.length && n[e] !== ">"; ) {
272
+ if (n[e] === `
273
+ ` || n[e] === "\r" || n[e] === "<")
274
+ return null;
275
+ e += o() ? 2 : 1;
276
+ }
277
+ if (n[e] !== ">")
278
+ return null;
279
+ e++;
280
+ } else {
281
+ let s = 0;
282
+ for (; e < n.length && !Y.test(n[e]); )
283
+ if (o())
284
+ e += 2;
285
+ else if (n[e] === "(") {
286
+ if (++s > t)
287
+ return null;
288
+ e++;
289
+ } else if (n[e] === ")") {
290
+ if (s === 0)
291
+ break;
292
+ s--, e++;
293
+ } else {
294
+ const c = n.charCodeAt(e);
295
+ if (c < 32 || c === 127)
296
+ return null;
297
+ e++;
298
+ }
299
+ if (s)
300
+ return null;
301
+ }
302
+ return e;
303
+ }
304
+ function rn(n, r, t = W) {
305
+ let e = r;
306
+ const o = () => n[e] === "\\" && x.test(n[e + 1] ?? ""), s = n[e], c = s === "(" ? ")" : s;
307
+ if (!['"', "'", "("].includes(s))
308
+ return null;
309
+ for (e++; e < n.length && n[e] !== c; ) {
310
+ if (t(n, e))
311
+ return null;
312
+ e += o() ? 2 : 1;
313
+ }
314
+ return n[e] === c ? e + 1 : null;
315
+ }
316
+ function vn(n, r) {
317
+ let t = H(n, r + 1);
318
+ if (t === null || (t = en(n, t), t === null))
319
+ return null;
320
+ const e = t;
321
+ return t = H(n, t), t === null ? null : n[t] === ")" ? t + 1 : t === e || (t = rn(n, t), t === null) || (t = H(n, t), t === null) ? null : n[t] === ")" ? t + 1 : null;
322
+ }
323
+ function kn(n, r, t, e = r.start(t), o = [], s) {
324
+ const c = r.at(t), g = /^ {0,3}\[((?:\\[^\r\n]|[^[\]\\\r\n]){1,999})\]:/.exec(n.slice(e, c.contentEnd));
325
+ if (!g || /^[\t ]*$/.test(g[1]))
326
+ return null;
327
+ const d = s?.() ?? R(n, r, t, o, !0), f = (l, u) => {
328
+ if (n[u] !== `
329
+ ` && n[u] !== "\r")
330
+ return !1;
331
+ const E = k(r, u) + 1;
332
+ if (E >= r.length || r.start(E) >= d)
333
+ return !0;
334
+ const p = r.at(E), m = n.slice(p.start, p.contentEnd), I = P(m, o);
335
+ return I === null ? (0, w.isInlineCodeBoundaryLine)(m) : /^[\t ]*$/.test(m.slice(I));
336
+ }, i = (l) => {
337
+ let u = l;
338
+ for (; ; ) {
339
+ if (u = H(n, u) ?? -1, u < 0 || u >= d)
340
+ return null;
341
+ const E = r.at(k(r, u));
342
+ if (!o.length || u !== E.start)
343
+ return u;
344
+ const p = n.slice(E.start, E.contentEnd), m = P(p, o);
345
+ if (m === null)
346
+ return u;
347
+ if (/^[\t ]*$/.test(p.slice(m)))
348
+ return null;
349
+ if (!m)
350
+ return u;
351
+ u += m;
352
+ }
353
+ };
354
+ let a = i(e + g[0].length);
355
+ if (a === null)
356
+ return null;
357
+ const y = a, b = en(n, a, 1 / 0);
358
+ if (b === null || b === y)
359
+ return null;
360
+ for (a = b; n[a] === " " || n[a] === " "; )
361
+ a++;
362
+ const _ = a, S = a === n.length || n[a] === "\r" || n[a] === `
363
+ `;
364
+ if (S) {
365
+ if (a = i(a), a === null)
366
+ return _;
367
+ } else if (a === b)
368
+ return null;
369
+ const h = rn(n, a, f);
370
+ if (h === null)
371
+ return S ? _ : null;
372
+ for (a = h; n[a] === " " || n[a] === " "; )
373
+ a++;
374
+ return a <= d && (a === n.length || n[a] === "\r" || n[a] === `
375
+ `) ? a : S ? _ : null;
376
+ }
377
+ function on(n, r, t, e) {
378
+ let o = 0;
379
+ for (let h = n.indexOf(r); h >= 0; ) {
380
+ o++;
381
+ do
382
+ h++;
383
+ while (n[h] === r);
384
+ h = n.indexOf(r, h);
385
+ }
386
+ const s = new Uint32Array(o), c = new Uint32Array(o), g = new Uint32Array(o), d = 4294967295;
387
+ g.fill(d);
388
+ let f, i = 0;
389
+ for (let h = n.indexOf(r); h >= 0; ) {
390
+ const l = h;
391
+ do
392
+ h++;
393
+ while (n[h] === r);
394
+ s[i] = l, c[i++] = h - l, h = n.indexOf(r, h);
395
+ }
396
+ let a = 0, y = [];
397
+ for (let h = 0; h < e.length; h++) {
398
+ const { start: l, contentEnd: u, end: E } = e.at(h), p = n.slice(l, u), m = G(p, y, h === 0 || /^[\t ]*$/.test(n.slice(e.at(h - 1).start, e.at(h - 1).contentEnd))), I = p.slice(m.contentStart);
399
+ m.indentation < 4 && j.test(I) ? (S(a, l), S(l, u), a = E, y = m.steps) : m.entered ? (S(a, l), a = l, y = m.steps) : (m.indentation < 4 || /^[\t ]*$/.test(I)) && ((0, w.isInlineCodeBoundaryLine)(I) || tn(n, l + m.contentStart, t)) && (S(a, l), a = E, y = m.steps);
400
+ }
401
+ S(a, n.length);
402
+ let b = 0;
403
+ return {
404
+ get(h) {
405
+ for (; b < o && s[b] < h; )
406
+ b++;
407
+ let l = b, u = d, E = h, p = 0;
408
+ return s[l] === h ? (p = c[l], u = g[l], E += p) : l > 0 && s[l - 1] + 1 === h && f && (l--, p = c[l] - 1, u = f[l], E += p), u === d ? void 0 : { bodyStart: E, bodyEnd: u, end: u + p };
409
+ }
410
+ };
411
+ function _(h) {
412
+ let l = 0, u = o;
413
+ for (; l < u; ) {
414
+ const E = l + u >>> 1;
415
+ s[E] < h ? l = E + 1 : u = E;
416
+ }
417
+ return l;
418
+ }
419
+ function S(h, l) {
420
+ const u = _(h), E = _(l);
421
+ if (u === E)
422
+ return;
423
+ const p = /* @__PURE__ */ new Map();
424
+ for (let m = E - 1; m >= u; m--) {
425
+ const I = s[m], v = c[m];
426
+ g[m] = p.get(v) ?? d;
427
+ let D = 0;
428
+ for (let N = I - 1; N >= 0 && n[N] === "\\"; N--)
429
+ D++;
430
+ D % 2 && v > 1 && (f || (f = new Uint32Array(o), f.fill(d)), f[m] = p.get(v - 1) ?? d), p.set(v, I);
431
+ }
432
+ }
433
+ }
434
+ function G(n, r, t) {
435
+ const e = T(n, r), o = e ?? { offset: 0, column: 0, virtualPadding: 0 }, s = n.slice(o.offset), c = Nn(n, o), g = c.steps.length > 0 && !K.test(s) && (t || nn.test(s)), d = g ? c.position : o, f = { ...d };
436
+ return A(n, f, 3), {
437
+ contentStart: f.offset,
438
+ position: d,
439
+ indentation: M(n, d),
440
+ steps: g ? [...e === null ? [] : r, ...c.steps] : e === null ? [] : r,
441
+ entered: g
442
+ };
443
+ }
444
+ function R(n, r, t, e, o = !1) {
445
+ if (!e.length)
446
+ return n.length;
447
+ for (let s = t + 1; s < r.length; s++) {
448
+ const c = r.at(s), g = n.slice(c.start, c.contentEnd);
449
+ if (P(g, e) === null) {
450
+ if (/^[\t ]*$/.test(g)) {
451
+ if (!o && !e.some((d) => "quote" in d))
452
+ continue;
453
+ } else if (o && !(0, w.isInlineCodeBoundaryLine)(g))
454
+ continue;
455
+ return c.start;
456
+ }
457
+ }
458
+ return n.length;
459
+ }
460
+ function Nn(n, r) {
461
+ let t = { ...r };
462
+ const e = [];
463
+ for (; ; ) {
464
+ const o = { ...t }, s = A(n, t, 3);
465
+ if (!t.virtualPadding && n[t.offset] === ">") {
466
+ e.push({ quote: !0 }), t.offset++, t.column++, A(n, t, 1);
467
+ continue;
468
+ }
469
+ const c = t.virtualPadding ? null : /^(?:[-+*]|\d{1,9}[.)])(?=[ \t])/.exec(n.slice(t.offset));
470
+ if (c) {
471
+ t.offset += c[0].length, t.column += c[0].length;
472
+ const g = { ...t };
473
+ let d = A(n, t, 5);
474
+ d > 4 && (t = g, d = A(n, t, 1)), e.push({ indent: s + c[0].length + d });
475
+ continue;
476
+ }
477
+ return { position: o, steps: e };
478
+ }
479
+ }
480
+ function Cn(n, r, t) {
481
+ if (M(n, r) >= 4)
482
+ return null;
483
+ const e = { ...r };
484
+ A(n, e, 3);
485
+ const o = /^(`{3,})([^`]*$)|^(~{3,})(.*$)/.exec(n.slice(e.offset)), s = o?.[1] ?? o?.[3];
486
+ return s ? { marker: s[0], size: s.length, steps: t } : null;
487
+ }
488
+ function T(n, r) {
489
+ const t = { offset: 0, column: 0, virtualPadding: 0 };
490
+ for (let e = 0; e < r.length; e++) {
491
+ const o = r[e];
492
+ if ("quote" in o) {
493
+ if (A(n, t, 3), t.virtualPadding || n[t.offset] !== ">")
494
+ return null;
495
+ t.offset++, t.column++, A(n, t, 1);
496
+ } else if (A(n, t, o.indent) < o.indent)
497
+ return /^[\t ]*$/.test(n.slice(t.offset)) && !r.slice(e + 1).some((s) => "quote" in s) ? t : null;
498
+ }
499
+ return t;
500
+ }
501
+ function P(n, r) {
502
+ return T(n, r)?.offset ?? null;
503
+ }
504
+ function $n(n, r, t, e, o) {
505
+ const s = r.at(t), c = Cn(n.slice(s.start, s.contentEnd), e, o);
506
+ if (!c)
507
+ return null;
508
+ const g = new RegExp(`^ {0,3}${c.marker}{${c.size},}[\\t ]*$`);
509
+ for (let d = t + 1; d < r.length; d++) {
510
+ const f = r.at(d), i = n.slice(f.start, f.contentEnd), a = T(i, c.steps);
511
+ if (a === null) {
512
+ if (/^[\t ]*$/.test(i))
513
+ continue;
514
+ return {
515
+ bodyStart: s.end,
516
+ bodyEnd: f.start,
517
+ end: f.start
518
+ };
519
+ }
520
+ const y = { ...a };
521
+ if (A(i, y, 3), M(i, a) < 4 && g.test(i.slice(y.offset)))
522
+ return {
523
+ bodyStart: s.end,
524
+ bodyEnd: f.start,
525
+ end: f.contentEnd
526
+ };
527
+ }
528
+ return { bodyStart: s.end, bodyEnd: n.length, end: n.length };
529
+ }
530
+ const ln = new Set("address article aside base basefont blockquote body caption center col colgroup dd details dialog dir div dl dt fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hr html iframe legend li link main menu menuitem nav noframes ol optgroup option p param search section summary table tbody td tfoot th thead title tr track ul".split(" "));
531
+ function On(n) {
532
+ const r = /^ {0,3}<\/?([A-Za-z][A-Za-z0-9-]*)(?=[ \t/>]|$)/.exec(n);
533
+ return r !== null && ln.has(r[1].toLowerCase());
534
+ }
535
+ function Mn(n, r, t, e, o = r.start(t), s = [], c) {
536
+ const g = r.at(t), d = n.slice(o, g.contentEnd), f = /^ {0,3}<\/?([A-Za-z][A-Za-z0-9-]*)(?=[ \t/>]|$)/.exec(d);
537
+ if (!f)
538
+ return null;
539
+ const i = o + d.indexOf("<"), a = X(n, i, e);
540
+ if (!ln.has(f[1].toLowerCase())) {
541
+ const _ = t > 0 ? r.at(t - 1) : void 0;
542
+ if (_ && !/^[\t ]*$/.test(n.slice(_.start, _.contentEnd)) || a === null || a > g.contentEnd || !/^[\t ]*$/.test(n.slice(a, g.contentEnd)))
543
+ return null;
544
+ }
545
+ const y = c?.() ?? R(n, r, t, s), b = a === null || a > y ? o : a;
546
+ for (let _ = Math.max(t + 1, k(r, b)); _ < r.length; _++) {
547
+ const S = r.at(_);
548
+ if (S.start >= y)
549
+ return { bodyStart: b, bodyEnd: y, end: y };
550
+ const h = n.slice(S.start, S.contentEnd), l = P(h, s);
551
+ if (S.start >= b && (l === null || /^[\t ]*$/.test(h.slice(l))))
552
+ return { bodyStart: b, bodyEnd: S.start, end: S.start };
553
+ }
554
+ return { bodyStart: b, bodyEnd: y, end: y };
555
+ }
556
+ const sn = (n, r) => {
557
+ if (!n.includes("{{"))
558
+ return [];
559
+ const t = [], e = /* @__PURE__ */ new Map(), o = new hn(n);
560
+ let s, c;
561
+ const g = [], d = /* @__PURE__ */ new Set(), f = (h, l) => {
562
+ const u = n.slice(h, l);
563
+ let E = 0;
564
+ for (; ; ) {
565
+ const p = u.indexOf("{{", E);
566
+ if (p < 0)
567
+ return;
568
+ const m = (0, Q.readVariableMarker)(u, p);
569
+ if (!m) {
570
+ t.push({
571
+ start: h + p,
572
+ end: l,
573
+ rawName: u.slice(p + 2),
574
+ name: null
575
+ });
576
+ return;
577
+ }
578
+ t.push({
579
+ ...m,
580
+ start: h + m.start,
581
+ end: h + m.end
582
+ }), E = m.end;
583
+ }
584
+ };
585
+ let i = 0, a = -1, y = 0, b = [], _, S;
586
+ for (; i < n.length; ) {
587
+ for (; y < o.length && o.start(y) < i; )
588
+ y++;
589
+ if (y < o.length && o.start(y) === i) {
590
+ const l = y, u = o.at(l);
591
+ if (u.start === u.contentEnd) {
592
+ i = u.end;
593
+ continue;
594
+ }
595
+ const E = l > 0 ? o.at(l - 1) : void 0, p = E ? n.slice(E.start, E.contentEnd) : "", m = T(p, b), I = {
596
+ ...m ?? { offset: 0, column: 0, virtualPadding: 0 }
597
+ };
598
+ A(p, I, 3);
599
+ const v = p.slice(I.offset), D = m !== null && M(p, m) >= 4, N = !E || /^[\t ]*$/.test(v) || !D && j.test(v) || !D && K.test(v) || E.contentEnd === a, L = G(n.slice(u.start, u.contentEnd), b, N);
600
+ b !== L.steps && (_ = void 0, S = void 0), b = L.steps;
601
+ const F = () => _ ?? (_ = R(n, o, l, b)), zn = () => ((S === void 0 || S <= u.start) && (S = R(n, o, l, b, !0)), S), q = u.start + L.contentStart, U = L.indentation < 4 && (N || L.entered) ? kn(n, o, l, q, b, zn) : null;
602
+ if (U !== null) {
603
+ f(i, U), a = U, i = U;
604
+ continue;
605
+ }
606
+ (!E || /^[\t ]*$/.test(n.slice(E.start, E.contentEnd))) && (g.length = 0, d.clear());
607
+ const Z = $n(n, o, l, L.position, b);
608
+ if (Z) {
609
+ f(i, Z.bodyEnd), a = Z.end, i = Z.end;
610
+ continue;
611
+ }
612
+ const J = An(n, o, l, N || L.entered, L.position, b);
613
+ if (J !== null) {
614
+ f(i, J), i = J;
615
+ continue;
616
+ }
617
+ const $ = L.indentation < 4 ? In(n, q, e, o, F) : null;
618
+ if ($) {
619
+ f(i, $.bodyStart), f($.bodyStart, $.bodyEnd), a = $.end, i = $.end;
620
+ continue;
621
+ }
622
+ const O = L.indentation < 4 ? Ln(n, q, e, o, F, b) : null;
623
+ if (O) {
624
+ f(i, O.bodyStart), f(O.bodyStart, O.bodyEnd), a = O.end, i = O.end;
625
+ continue;
626
+ }
627
+ const z = L.indentation < 4 ? Mn(n, o, l, e, q, b, F) : null;
628
+ if (z) {
629
+ f(i, z.bodyStart), f(z.bodyStart, z.bodyEnd), i = z.end;
630
+ continue;
631
+ }
632
+ }
633
+ if (n.startsWith("{{", i)) {
634
+ const l = (0, Q.readVariableMarker)(n, i);
635
+ if (!l) {
636
+ t.push({
637
+ start: i,
638
+ end: n.length,
639
+ rawName: n.slice(i + 2),
640
+ name: null
641
+ });
642
+ break;
643
+ }
644
+ t.push(l), i = l.end;
645
+ continue;
646
+ }
647
+ if (n[i] === "\\") {
648
+ i += 2;
649
+ continue;
650
+ }
651
+ const h = n.startsWith("?[", i) ? (0, dn.readDocumentInteraction)(n, i, (l) => {
652
+ if (W(n, l))
653
+ return !0;
654
+ if (n[l] !== `
655
+ ` && n[l] !== "\r")
656
+ return !1;
657
+ const u = k(o, l) + 1;
658
+ if (u >= o.length)
659
+ return !1;
660
+ const E = o.at(u), p = n.slice(E.start, E.contentEnd), m = G(p, b, !1);
661
+ return m.entered || m.indentation < 4 && (0, w.isInlineCodeBoundaryLine)(p.slice(m.contentStart));
662
+ }) : null;
663
+ if (h) {
664
+ f(i + 2, h.end - (h.complete ? 1 : 0)), i = h.end;
665
+ continue;
666
+ }
667
+ if (n[i] === "[") {
668
+ let l = 0;
669
+ for (let E = i - 2; E >= 0 && n[E] === "\\"; E--)
670
+ l++;
671
+ const u = {
672
+ image: n[i - 1] === "!" && l % 2 === 0,
673
+ active: !0
674
+ };
675
+ g.push(u), u.image || d.add(u);
676
+ }
677
+ if (n[i] === "]" && g.length) {
678
+ const l = g.pop();
679
+ if (l && d.delete(l), l?.active && n[i + 1] === "(") {
680
+ const u = vn(n, i + 1);
681
+ if (u !== null) {
682
+ if (!l.image) {
683
+ for (const E of d)
684
+ E.active = !1;
685
+ d.clear();
686
+ }
687
+ f(i + 2, u - 1), i = u;
688
+ continue;
689
+ }
690
+ }
691
+ }
692
+ if (n[i] === "$") {
693
+ const l = (c ?? (c = on(n, "$", e, o))).get(i);
694
+ if (l) {
695
+ f(l.bodyStart, l.bodyEnd), i = l.end;
696
+ continue;
697
+ }
698
+ for (r?.push(i); n[i] === "$"; )
699
+ i++;
700
+ continue;
701
+ }
702
+ if (n[i] === "`" || n[i] === "~") {
703
+ const l = n[i] === "`" ? (s ?? (s = on(n, "`", e, o))).get(i) : void 0;
704
+ if (l) {
705
+ f(i, l.bodyEnd), i = l.end;
706
+ continue;
707
+ }
708
+ n[i] === "`" && r?.push(i);
709
+ const u = n[i];
710
+ for (; n[i] === u; )
711
+ i++;
712
+ continue;
713
+ }
714
+ if (n[i] === "<") {
715
+ const l = wn(n, i);
716
+ if (l) {
717
+ f(l.bodyStart, l.bodyEnd), i = l.end;
718
+ continue;
719
+ }
720
+ const u = X(n, i, e);
721
+ if (u !== null) {
722
+ f(i, u), i = u;
723
+ continue;
724
+ }
725
+ }
726
+ i++;
727
+ }
728
+ return t;
729
+ }, Tn = (n) => sn(n);
730
+ w.findDocumentVariableMarkers = Tn;
731
+ const Pn = (n) => {
732
+ const r = [];
733
+ return sn(n, r), Uint32Array.from(r);
24
734
  };
25
- a.extractVariableNames = N;
26
- })(R), R);
735
+ w.findRejectedDocumentInlineOpenings = Pn;
736
+ const Dn = (n) => {
737
+ const r = /* @__PURE__ */ new Set();
738
+ for (const t of (0, w.findDocumentVariableMarkers)(n))
739
+ t.name !== null && r.add(t.name);
740
+ return [...r];
741
+ };
742
+ w.extractVariableNames = Dn;
743
+ })(C), C);
27
744
  }
28
745
  export {
29
- b as __require
746
+ Un as __require
30
747
  };
31
748
  //# sourceMappingURL=variable-name.es.js.map