@akairos/pipeline 0.18.5 → 0.19.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.
- package/ARTICLE-THEMES.md +2 -2
- package/README.md +55 -15
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/package.json +4 -4
- package/src/adapter-loader.ts +24 -4
- package/src/adapter-types.ts +14 -0
- package/src/commands/typeset-assets-sync.test.ts +3 -0
- package/src/plugin-runner.ts +10 -4
- package/src/plugin-runtime.test.ts +19 -0
- package/src/plugin-runtime.ts +11 -2
- package/src/runtime-package.ts +9 -3
- package/src/wechat-preview/assets/browser-dist/.vite/manifest.json +47 -47
- package/src/wechat-preview/assets/browser-dist/assets/{index-BHJY0B4E.js → index-52O71prB.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-CdxKyTX6.js → index-BOH11YN9.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-DDQGWU_D.js → index-BOZWI3FE.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-BlVpb0dF.js → index-BRUZEgPh.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-BPmBcGI-.js → index-BTPh91V-.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-BYV6TA8f.js → index-BXjcry0g.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-ifI5svkD.js → index-BoIlqlZt.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-D_EI5vFS.js → index-Btrc4kp0.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-BFLGVgsp.js → index-ButcQVWD.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-vRiJxvj2.js → index-C-LFn5io.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-DpuVrwze.js → index-C1Bxnw4o.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-BzHql5Rp.js → index-C2N6r4Fw.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-BqKARoyW.js → index-Cbm1GiZg.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-DENMoE5l.js → index-CwgSvQOC.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-BTVIa90Y.js → index-D7f6KXoI.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-IBlhKHQr.js → index-DkhSv5cA.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-DA7Z4paG.js → index-DmoEW40N.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-BDdU9pNh.js → index-Dyi5bUmz.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-CPFEJ9fX.js → index-TOFwZskx.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-BOnKEJxh.js → index-lWl3DOj9.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{index-CyXDvcwY.js → index-sgpqKtmR.js} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{style-Cif_gYUW.css → style-CVnSjpTH.css} +1 -1
- package/src/wechat-preview/assets/browser-dist/assets/{wechat-renderer-CcHuq7M-.js → wechat-renderer-GrfbOjo2.js} +13 -4
- package/src/wechat-preview/assets/browser-dist/editor-export.js +1 -1
- package/src/wechat-preview/assets/browser-dist/src/wechat-preview/browser/studio/studio.html +2 -2
- package/src/wechat-preview/assets/browser-dist/studio.js +3 -3
- package/src/wechat-preview/browser/editor-export.css +2 -2
- package/src/wechat-preview/browser/editor-export.ts +1 -1
- package/src/wechat-preview/browser/studio/myno-editor.ts +2 -2
- package/src/wechat-preview/browser/studio/studio.ts +1 -1
- package/src/wechat-preview/index.ts +8 -3
- package/src/wechat-preview/server/http.ts +56 -1
- package/src/wechat-preview/server/studio.test.ts +35 -1
- package/src/wechat-preview/wechat-export.integration.test.ts +3 -0
- package/src/wechat-preview.test.ts +1 -1
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"file": "assets/simple-mode-GW_nhZxv.js",
|
|
11
11
|
"name": "simple-mode"
|
|
12
12
|
},
|
|
13
|
-
"_wechat-renderer-
|
|
14
|
-
"file": "assets/wechat-renderer-
|
|
13
|
+
"_wechat-renderer-GrfbOjo2.js": {
|
|
14
|
+
"file": "assets/wechat-renderer-GrfbOjo2.js",
|
|
15
15
|
"name": "wechat-renderer"
|
|
16
16
|
},
|
|
17
17
|
"node_modules/@codemirror/lang-angular/dist/index.js": {
|
|
18
|
-
"file": "assets/index-
|
|
18
|
+
"file": "assets/index-BOH11YN9.js",
|
|
19
19
|
"name": "index",
|
|
20
20
|
"src": "node_modules/@codemirror/lang-angular/dist/index.js",
|
|
21
21
|
"isDynamicEntry": true,
|
|
@@ -24,45 +24,45 @@
|
|
|
24
24
|
"node_modules/@codemirror/lang-html/dist/index.js",
|
|
25
25
|
"node_modules/@codemirror/lang-javascript/dist/index.js",
|
|
26
26
|
"_index-B13lCSuc.js",
|
|
27
|
-
"_wechat-renderer-
|
|
27
|
+
"_wechat-renderer-GrfbOjo2.js",
|
|
28
28
|
"node_modules/@codemirror/lang-css/dist/index.js"
|
|
29
29
|
]
|
|
30
30
|
},
|
|
31
31
|
"node_modules/@codemirror/lang-cpp/dist/index.js": {
|
|
32
|
-
"file": "assets/index-
|
|
32
|
+
"file": "assets/index-TOFwZskx.js",
|
|
33
33
|
"name": "index",
|
|
34
34
|
"src": "node_modules/@codemirror/lang-cpp/dist/index.js",
|
|
35
35
|
"isDynamicEntry": true,
|
|
36
36
|
"imports": [
|
|
37
37
|
"_index-B13lCSuc.js",
|
|
38
38
|
"src/wechat-preview/browser/studio/studio.html",
|
|
39
|
-
"_wechat-renderer-
|
|
39
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"node_modules/@codemirror/lang-css/dist/index.js": {
|
|
43
|
-
"file": "assets/index-
|
|
43
|
+
"file": "assets/index-BTPh91V-.js",
|
|
44
44
|
"name": "index",
|
|
45
45
|
"src": "node_modules/@codemirror/lang-css/dist/index.js",
|
|
46
46
|
"isDynamicEntry": true,
|
|
47
47
|
"imports": [
|
|
48
48
|
"_index-B13lCSuc.js",
|
|
49
49
|
"src/wechat-preview/browser/studio/studio.html",
|
|
50
|
-
"_wechat-renderer-
|
|
50
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
53
|
"node_modules/@codemirror/lang-go/dist/index.js": {
|
|
54
|
-
"file": "assets/index-
|
|
54
|
+
"file": "assets/index-lWl3DOj9.js",
|
|
55
55
|
"name": "index",
|
|
56
56
|
"src": "node_modules/@codemirror/lang-go/dist/index.js",
|
|
57
57
|
"isDynamicEntry": true,
|
|
58
58
|
"imports": [
|
|
59
59
|
"_index-B13lCSuc.js",
|
|
60
60
|
"src/wechat-preview/browser/studio/studio.html",
|
|
61
|
-
"_wechat-renderer-
|
|
61
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
"node_modules/@codemirror/lang-html/dist/index.js": {
|
|
65
|
-
"file": "assets/index-
|
|
65
|
+
"file": "assets/index-C1Bxnw4o.js",
|
|
66
66
|
"name": "index",
|
|
67
67
|
"src": "node_modules/@codemirror/lang-html/dist/index.js",
|
|
68
68
|
"isDynamicEntry": true,
|
|
@@ -71,33 +71,33 @@
|
|
|
71
71
|
"src/wechat-preview/browser/studio/studio.html",
|
|
72
72
|
"node_modules/@codemirror/lang-css/dist/index.js",
|
|
73
73
|
"node_modules/@codemirror/lang-javascript/dist/index.js",
|
|
74
|
-
"_wechat-renderer-
|
|
74
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
77
|
"node_modules/@codemirror/lang-java/dist/index.js": {
|
|
78
|
-
"file": "assets/index-
|
|
78
|
+
"file": "assets/index-CwgSvQOC.js",
|
|
79
79
|
"name": "index",
|
|
80
80
|
"src": "node_modules/@codemirror/lang-java/dist/index.js",
|
|
81
81
|
"isDynamicEntry": true,
|
|
82
82
|
"imports": [
|
|
83
83
|
"_index-B13lCSuc.js",
|
|
84
84
|
"src/wechat-preview/browser/studio/studio.html",
|
|
85
|
-
"_wechat-renderer-
|
|
85
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"node_modules/@codemirror/lang-javascript/dist/index.js": {
|
|
89
|
-
"file": "assets/index-
|
|
89
|
+
"file": "assets/index-C2N6r4Fw.js",
|
|
90
90
|
"name": "index",
|
|
91
91
|
"src": "node_modules/@codemirror/lang-javascript/dist/index.js",
|
|
92
92
|
"isDynamicEntry": true,
|
|
93
93
|
"imports": [
|
|
94
94
|
"_index-B13lCSuc.js",
|
|
95
95
|
"src/wechat-preview/browser/studio/studio.html",
|
|
96
|
-
"_wechat-renderer-
|
|
96
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
97
97
|
]
|
|
98
98
|
},
|
|
99
99
|
"node_modules/@codemirror/lang-jinja/dist/index.js": {
|
|
100
|
-
"file": "assets/index-
|
|
100
|
+
"file": "assets/index-52O71prB.js",
|
|
101
101
|
"name": "index",
|
|
102
102
|
"src": "node_modules/@codemirror/lang-jinja/dist/index.js",
|
|
103
103
|
"isDynamicEntry": true,
|
|
@@ -105,24 +105,24 @@
|
|
|
105
105
|
"src/wechat-preview/browser/studio/studio.html",
|
|
106
106
|
"node_modules/@codemirror/lang-html/dist/index.js",
|
|
107
107
|
"_index-B13lCSuc.js",
|
|
108
|
-
"_wechat-renderer-
|
|
108
|
+
"_wechat-renderer-GrfbOjo2.js",
|
|
109
109
|
"node_modules/@codemirror/lang-css/dist/index.js",
|
|
110
110
|
"node_modules/@codemirror/lang-javascript/dist/index.js"
|
|
111
111
|
]
|
|
112
112
|
},
|
|
113
113
|
"node_modules/@codemirror/lang-json/dist/index.js": {
|
|
114
|
-
"file": "assets/index-
|
|
114
|
+
"file": "assets/index-BRUZEgPh.js",
|
|
115
115
|
"name": "index",
|
|
116
116
|
"src": "node_modules/@codemirror/lang-json/dist/index.js",
|
|
117
117
|
"isDynamicEntry": true,
|
|
118
118
|
"imports": [
|
|
119
119
|
"_index-B13lCSuc.js",
|
|
120
120
|
"src/wechat-preview/browser/studio/studio.html",
|
|
121
|
-
"_wechat-renderer-
|
|
121
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
122
122
|
]
|
|
123
123
|
},
|
|
124
124
|
"node_modules/@codemirror/lang-less/dist/index.js": {
|
|
125
|
-
"file": "assets/index-
|
|
125
|
+
"file": "assets/index-Dyi5bUmz.js",
|
|
126
126
|
"name": "index",
|
|
127
127
|
"src": "node_modules/@codemirror/lang-less/dist/index.js",
|
|
128
128
|
"isDynamicEntry": true,
|
|
@@ -130,11 +130,11 @@
|
|
|
130
130
|
"src/wechat-preview/browser/studio/studio.html",
|
|
131
131
|
"node_modules/@codemirror/lang-css/dist/index.js",
|
|
132
132
|
"_index-B13lCSuc.js",
|
|
133
|
-
"_wechat-renderer-
|
|
133
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
134
134
|
]
|
|
135
135
|
},
|
|
136
136
|
"node_modules/@codemirror/lang-liquid/dist/index.js": {
|
|
137
|
-
"file": "assets/index-
|
|
137
|
+
"file": "assets/index-DkhSv5cA.js",
|
|
138
138
|
"name": "index",
|
|
139
139
|
"src": "node_modules/@codemirror/lang-liquid/dist/index.js",
|
|
140
140
|
"isDynamicEntry": true,
|
|
@@ -142,19 +142,19 @@
|
|
|
142
142
|
"src/wechat-preview/browser/studio/studio.html",
|
|
143
143
|
"node_modules/@codemirror/lang-html/dist/index.js",
|
|
144
144
|
"_index-B13lCSuc.js",
|
|
145
|
-
"_wechat-renderer-
|
|
145
|
+
"_wechat-renderer-GrfbOjo2.js",
|
|
146
146
|
"node_modules/@codemirror/lang-css/dist/index.js",
|
|
147
147
|
"node_modules/@codemirror/lang-javascript/dist/index.js"
|
|
148
148
|
]
|
|
149
149
|
},
|
|
150
150
|
"node_modules/@codemirror/lang-markdown/dist/index.js": {
|
|
151
|
-
"file": "assets/index-
|
|
151
|
+
"file": "assets/index-DmoEW40N.js",
|
|
152
152
|
"name": "index",
|
|
153
153
|
"src": "node_modules/@codemirror/lang-markdown/dist/index.js",
|
|
154
154
|
"isDynamicEntry": true,
|
|
155
155
|
"imports": [
|
|
156
156
|
"src/wechat-preview/browser/studio/studio.html",
|
|
157
|
-
"_wechat-renderer-
|
|
157
|
+
"_wechat-renderer-GrfbOjo2.js",
|
|
158
158
|
"node_modules/@codemirror/lang-html/dist/index.js",
|
|
159
159
|
"_index-B13lCSuc.js",
|
|
160
160
|
"node_modules/@codemirror/lang-css/dist/index.js",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
]
|
|
163
163
|
},
|
|
164
164
|
"node_modules/@codemirror/lang-php/dist/index.js": {
|
|
165
|
-
"file": "assets/index-
|
|
165
|
+
"file": "assets/index-Btrc4kp0.js",
|
|
166
166
|
"name": "index",
|
|
167
167
|
"src": "node_modules/@codemirror/lang-php/dist/index.js",
|
|
168
168
|
"isDynamicEntry": true,
|
|
@@ -170,35 +170,35 @@
|
|
|
170
170
|
"_index-B13lCSuc.js",
|
|
171
171
|
"src/wechat-preview/browser/studio/studio.html",
|
|
172
172
|
"node_modules/@codemirror/lang-html/dist/index.js",
|
|
173
|
-
"_wechat-renderer-
|
|
173
|
+
"_wechat-renderer-GrfbOjo2.js",
|
|
174
174
|
"node_modules/@codemirror/lang-css/dist/index.js",
|
|
175
175
|
"node_modules/@codemirror/lang-javascript/dist/index.js"
|
|
176
176
|
]
|
|
177
177
|
},
|
|
178
178
|
"node_modules/@codemirror/lang-python/dist/index.js": {
|
|
179
|
-
"file": "assets/index-
|
|
179
|
+
"file": "assets/index-BOZWI3FE.js",
|
|
180
180
|
"name": "index",
|
|
181
181
|
"src": "node_modules/@codemirror/lang-python/dist/index.js",
|
|
182
182
|
"isDynamicEntry": true,
|
|
183
183
|
"imports": [
|
|
184
184
|
"_index-B13lCSuc.js",
|
|
185
185
|
"src/wechat-preview/browser/studio/studio.html",
|
|
186
|
-
"_wechat-renderer-
|
|
186
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
187
187
|
]
|
|
188
188
|
},
|
|
189
189
|
"node_modules/@codemirror/lang-rust/dist/index.js": {
|
|
190
|
-
"file": "assets/index-
|
|
190
|
+
"file": "assets/index-Cbm1GiZg.js",
|
|
191
191
|
"name": "index",
|
|
192
192
|
"src": "node_modules/@codemirror/lang-rust/dist/index.js",
|
|
193
193
|
"isDynamicEntry": true,
|
|
194
194
|
"imports": [
|
|
195
195
|
"_index-B13lCSuc.js",
|
|
196
196
|
"src/wechat-preview/browser/studio/studio.html",
|
|
197
|
-
"_wechat-renderer-
|
|
197
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
198
198
|
]
|
|
199
199
|
},
|
|
200
200
|
"node_modules/@codemirror/lang-sass/dist/index.js": {
|
|
201
|
-
"file": "assets/index-
|
|
201
|
+
"file": "assets/index-ButcQVWD.js",
|
|
202
202
|
"name": "index",
|
|
203
203
|
"src": "node_modules/@codemirror/lang-sass/dist/index.js",
|
|
204
204
|
"isDynamicEntry": true,
|
|
@@ -206,22 +206,22 @@
|
|
|
206
206
|
"_index-B13lCSuc.js",
|
|
207
207
|
"src/wechat-preview/browser/studio/studio.html",
|
|
208
208
|
"node_modules/@codemirror/lang-css/dist/index.js",
|
|
209
|
-
"_wechat-renderer-
|
|
209
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
210
210
|
]
|
|
211
211
|
},
|
|
212
212
|
"node_modules/@codemirror/lang-sql/dist/index.js": {
|
|
213
|
-
"file": "assets/index-
|
|
213
|
+
"file": "assets/index-BoIlqlZt.js",
|
|
214
214
|
"name": "index",
|
|
215
215
|
"src": "node_modules/@codemirror/lang-sql/dist/index.js",
|
|
216
216
|
"isDynamicEntry": true,
|
|
217
217
|
"imports": [
|
|
218
218
|
"src/wechat-preview/browser/studio/studio.html",
|
|
219
219
|
"_index-B13lCSuc.js",
|
|
220
|
-
"_wechat-renderer-
|
|
220
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
221
221
|
]
|
|
222
222
|
},
|
|
223
223
|
"node_modules/@codemirror/lang-vue/dist/index.js": {
|
|
224
|
-
"file": "assets/index-
|
|
224
|
+
"file": "assets/index-D7f6KXoI.js",
|
|
225
225
|
"name": "index",
|
|
226
226
|
"src": "node_modules/@codemirror/lang-vue/dist/index.js",
|
|
227
227
|
"isDynamicEntry": true,
|
|
@@ -230,41 +230,41 @@
|
|
|
230
230
|
"node_modules/@codemirror/lang-html/dist/index.js",
|
|
231
231
|
"node_modules/@codemirror/lang-javascript/dist/index.js",
|
|
232
232
|
"_index-B13lCSuc.js",
|
|
233
|
-
"_wechat-renderer-
|
|
233
|
+
"_wechat-renderer-GrfbOjo2.js",
|
|
234
234
|
"node_modules/@codemirror/lang-css/dist/index.js"
|
|
235
235
|
]
|
|
236
236
|
},
|
|
237
237
|
"node_modules/@codemirror/lang-wast/dist/index.js": {
|
|
238
|
-
"file": "assets/index-
|
|
238
|
+
"file": "assets/index-BXjcry0g.js",
|
|
239
239
|
"name": "index",
|
|
240
240
|
"src": "node_modules/@codemirror/lang-wast/dist/index.js",
|
|
241
241
|
"isDynamicEntry": true,
|
|
242
242
|
"imports": [
|
|
243
243
|
"src/wechat-preview/browser/studio/studio.html",
|
|
244
244
|
"_index-B13lCSuc.js",
|
|
245
|
-
"_wechat-renderer-
|
|
245
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
246
246
|
]
|
|
247
247
|
},
|
|
248
248
|
"node_modules/@codemirror/lang-xml/dist/index.js": {
|
|
249
|
-
"file": "assets/index-
|
|
249
|
+
"file": "assets/index-sgpqKtmR.js",
|
|
250
250
|
"name": "index",
|
|
251
251
|
"src": "node_modules/@codemirror/lang-xml/dist/index.js",
|
|
252
252
|
"isDynamicEntry": true,
|
|
253
253
|
"imports": [
|
|
254
254
|
"_index-B13lCSuc.js",
|
|
255
255
|
"src/wechat-preview/browser/studio/studio.html",
|
|
256
|
-
"_wechat-renderer-
|
|
256
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
257
257
|
]
|
|
258
258
|
},
|
|
259
259
|
"node_modules/@codemirror/lang-yaml/dist/index.js": {
|
|
260
|
-
"file": "assets/index-
|
|
260
|
+
"file": "assets/index-C-LFn5io.js",
|
|
261
261
|
"name": "index",
|
|
262
262
|
"src": "node_modules/@codemirror/lang-yaml/dist/index.js",
|
|
263
263
|
"isDynamicEntry": true,
|
|
264
264
|
"imports": [
|
|
265
265
|
"_index-B13lCSuc.js",
|
|
266
266
|
"src/wechat-preview/browser/studio/studio.html",
|
|
267
|
-
"_wechat-renderer-
|
|
267
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
268
268
|
]
|
|
269
269
|
},
|
|
270
270
|
"node_modules/@codemirror/legacy-modes/mode/apl.js": {
|
|
@@ -1085,7 +1085,7 @@
|
|
|
1085
1085
|
"src": "src/wechat-preview/browser/editor-export.ts",
|
|
1086
1086
|
"isEntry": true,
|
|
1087
1087
|
"imports": [
|
|
1088
|
-
"_wechat-renderer-
|
|
1088
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
1089
1089
|
]
|
|
1090
1090
|
},
|
|
1091
1091
|
"src/wechat-preview/browser/studio/studio.html": {
|
|
@@ -1094,7 +1094,7 @@
|
|
|
1094
1094
|
"src": "src/wechat-preview/browser/studio/studio.html",
|
|
1095
1095
|
"isEntry": true,
|
|
1096
1096
|
"imports": [
|
|
1097
|
-
"_wechat-renderer-
|
|
1097
|
+
"_wechat-renderer-GrfbOjo2.js"
|
|
1098
1098
|
],
|
|
1099
1099
|
"dynamicImports": [
|
|
1100
1100
|
"node_modules/@codemirror/lang-sql/dist/index.js",
|
|
@@ -1297,7 +1297,7 @@
|
|
|
1297
1297
|
]
|
|
1298
1298
|
},
|
|
1299
1299
|
"style.css": {
|
|
1300
|
-
"file": "assets/style-
|
|
1300
|
+
"file": "assets/style-CVnSjpTH.css",
|
|
1301
1301
|
"src": "style.css"
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
package/src/wechat-preview/assets/browser-dist/assets/{index-BHJY0B4E.js → index-52O71prB.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{l as Ps,S as Tt,a as Cs,p as Qs,e as As,L as Ts,s as Ms,t as C,i as Rs,h as Ds,f as $s}from"../studio.js";import{html as Es}from"./index-
|
|
1
|
+
import{l as Ps,S as Tt,a as Cs,p as Qs,e as As,L as Ts,s as Ms,t as C,i as Rs,h as Ds,f as $s}from"../studio.js";import{html as Es}from"./index-C1Bxnw4o.js";import{L as Bs,E as On,a as Ls}from"./index-B13lCSuc.js";import"./wechat-renderer-GrfbOjo2.js";import"./index-BTPh91V-.js";import"./index-C2N6r4Fw.js";class k{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){[t,e]=Mt(this,t,e);let n=[];return this.decompose(0,t,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(e,this.length,n,1),et.from(n,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=Mt(this,t,e);let i=[];return this.decompose(t,e,i,0),et.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),n=new Ht(this),s=new Ht(t);for(let o=e,l=e;;){if(n.next(o),s.next(o),o=0,n.lineBreak!=s.lineBreak||n.done!=s.done||n.value!=s.value)return!1;if(l+=n.value.length,n.done||l>=i)return!0}}iter(t=1){return new Ht(this,t)}iterRange(t,e=this.length){return new mn(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let n=this.line(t).from;i=this.iterRange(n,Math.max(n,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Sn(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?k.empty:t.length<=32?new D(t):et.from(D.split(t,[]))}}class D extends k{constructor(t,e=Ws(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,n){for(let s=0;;s++){let o=this.text[s],l=n+o.length;if((e?i:l)>=t)return new Is(n,l,i,o);n=l+1,i++}}decompose(t,e,i,n){let s=t<=0&&e>=this.length?this:new D(Di(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(n&1){let o=i.pop(),l=ge(s.text,o.text.slice(),0,s.length);if(l.length<=32)i.push(new D(l,o.length+s.length));else{let a=l.length>>1;i.push(new D(l.slice(0,a)),new D(l.slice(a)))}}else i.push(s)}replace(t,e,i){if(!(i instanceof D))return super.replace(t,e,i);[t,e]=Mt(this,t,e);let n=ge(this.text,ge(i.text,Di(this.text,0,t)),e),s=this.length+i.length-(e-t);return n.length<=32?new D(n,s):et.from(D.split(n,[]),s)}sliceString(t,e=this.length,i=`
|
|
2
2
|
`){[t,e]=Mt(this,t,e);let n="";for(let s=0,o=0;s<=e&&o<this.text.length;o++){let l=this.text[o],a=s+l.length;s>t&&o&&(n+=i),t<a&&e>s&&(n+=l.slice(Math.max(0,t-s),e-s)),s=a+1}return n}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let i=[],n=-1;for(let s of t)i.push(s),n+=s.length+1,i.length==32&&(e.push(new D(i,n)),i=[],n=-1);return n>-1&&e.push(new D(i,n)),e}}class et extends k{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let i of t)this.lines+=i.lines}lineInner(t,e,i,n){for(let s=0;;s++){let o=this.children[s],l=n+o.length,a=i+o.lines-1;if((e?a:l)>=t)return o.lineInner(t,e,i,n);n=l+1,i=a+1}}decompose(t,e,i,n){for(let s=0,o=0;o<=e&&s<this.children.length;s++){let l=this.children[s],a=o+l.length;if(t<=a&&e>=o){let h=n&((o<=t?1:0)|(a>=e?2:0));o>=t&&a<=e&&!h?i.push(l):l.decompose(t-o,e-o,i,h)}o=a+1}}replace(t,e,i){if([t,e]=Mt(this,t,e),i.lines<this.lines)for(let n=0,s=0;n<this.children.length;n++){let o=this.children[n],l=s+o.length;if(t>=s&&e<=l){let a=o.replace(t-s,e-s,i),h=this.lines-o.lines+a.lines;if(a.lines<h>>4&&a.lines>h>>6){let c=this.children.slice();return c[n]=a,new et(c,this.length-(e-t)+i.length)}return super.replace(s,l,a)}s=l+1}return super.replace(t,e,i)}sliceString(t,e=this.length,i=`
|
|
3
3
|
`){[t,e]=Mt(this,t,e);let n="";for(let s=0,o=0;s<this.children.length&&o<=e;s++){let l=this.children[s],a=o+l.length;o>t&&s&&(n+=i),t<a&&e>o&&(n+=l.sliceString(t-o,e-o,i)),o=a+1}return n}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof et))return 0;let i=0,[n,s,o,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;n+=e,s+=e){if(n==o||s==l)return i;let a=this.children[n],h=t.children[s];if(a!=h)return i+a.scanIdentical(h,e);i+=a.length+1}}static from(t,e=t.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let d of t)i+=d.lines;if(i<32){let d=[];for(let g of t)g.flatten(d);return new D(d,e)}let n=Math.max(32,i>>5),s=n<<1,o=n>>1,l=[],a=0,h=-1,c=[];function f(d){let g;if(d.lines>s&&d instanceof et)for(let p of d.children)f(p);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof D&&a&&(g=c[c.length-1])instanceof D&&d.lines+g.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new D(g.text.concat(d.text),g.length+1+d.length)):(a+d.lines>n&&u(),a+=d.lines,h+=d.length+1,c.push(d))}function u(){a!=0&&(l.push(c.length==1?c[0]:et.from(c,h)),h=-1,a=c.length=0)}for(let d of t)f(d);return u(),l.length==1?l[0]:new et(l,e)}}k.empty=new D([""],0);function Ws(r){let t=-1;for(let e of r)t+=e.length+1;return t}function ge(r,t,e=0,i=1e9){for(let n=0,s=0,o=!0;s<r.length&&n<=i;s++){let l=r[s],a=n+l.length;a>=e&&(a>i&&(l=l.slice(0,i-n)),n<e&&(l=l.slice(e-n)),o?(t[t.length-1]+=l,o=!1):t.push(l)),n=a+1}return t}function Di(r,t,e){return ge(r,[""],t,e)}class Ht{constructor(t,e=1){this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[e>0?1:(t instanceof D?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],s=this.offsets[i],o=s>>1,l=n instanceof D?n.text.length:n.children.length;if(o==(e>0?l:0)){if(i==0)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(e>0?0:1)){if(this.offsets[i]+=e,t==0)return this.lineBreak=!0,this.value=`
|
|
4
4
|
`,this;t--}else if(n instanceof D){let a=n.text[o+(e<0?-1:0)];if(this.offsets[i]+=e,a.length>Math.max(0,t))return this.value=t==0?a:e>0?a.slice(t):a.slice(0,a.length-t),this;t-=a.length}else{let a=n.children[o+(e<0?-1:0)];t>a.length?(t-=a.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(e>0?1:(a instanceof D?a.text.length:a.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class mn{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new Ht(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:n}=this.cursor.next(t);return this.pos+=(n.length+t)*e,this.value=n.length<=i?n:e<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Sn{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:n}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(k.prototype[Symbol.iterator]=function(){return this.iter()},Ht.prototype[Symbol.iterator]=mn.prototype[Symbol.iterator]=Sn.prototype[Symbol.iterator]=function(){return this});class Is{constructor(t,e,i,n){this.from=t,this.to=e,this.number=i,this.text=n}get length(){return this.to-this.from}}function Mt(r,t,e){return t=Math.max(0,Math.min(r.length,t)),[t,Math.max(t,Math.min(r.length,e))]}function nt(r,t,e=!0,i=!0){return Ps(r,t,e,i)}const Xe=/\r\n?|\n/;var U=(function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r})(U||(U={}));class at{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;e<this.sections.length;e+=2)t+=this.sections[e];return t}get newLength(){let t=0;for(let e=0;e<this.sections.length;e+=2){let i=this.sections[e+1];t+=i<0?this.sections[e]:i}return t}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(t){for(let e=0,i=0,n=0;e<this.sections.length;){let s=this.sections[e++],o=this.sections[e++];o<0?(t(i,n,s),n+=s):n+=o,i+=s}}iterChangedRanges(t,e=!1){Ze(this,t,e)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let i=this.sections[e++],n=this.sections[e++];n<0?t.push(i,n):t.push(n,i)}return new at(t)}composeDesc(t){return this.empty?t:t.empty?this:bn(this,t)}mapDesc(t,e=!1){return t.empty?this:qe(this,t,e)}mapPos(t,e=-1,i=U.Simple){let n=0,s=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],h=n+l;if(a<0){if(h>t)return s+(t-n);s+=l}else{if(i!=U.Simple&&h>=t&&(i==U.TrackDel&&n<t&&h>t||i==U.TrackBefore&&n<t||i==U.TrackAfter&&h>t))return null;if(h>t||h==t&&e<0&&!l)return t==n||e<0?s:s+a;s+=a}n=h}if(t>n)throw new RangeError(`Position ${t} is out of range for changeset of length ${n}`);return s}touchesRange(t,e=t){for(let i=0,n=0;i<this.sections.length&&n<=e;){let s=this.sections[i++],o=this.sections[i++],l=n+s;if(o>=0&&n<=e&&l>=t)return n<t&&l>e?"cover":!0;n=l}return!1}toString(){let t="";for(let e=0;e<this.sections.length;){let i=this.sections[e++],n=this.sections[e++];t+=(t?" ":"")+i+(n>=0?":"+n:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new at(t)}static create(t){return new at(t)}}class E extends at{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return Ze(this,(e,i,n,s,o)=>t=t.replace(n,n+(i-e),o),!1),t}mapDesc(t,e=!1){return qe(this,t,e,!0)}invert(t){let e=this.sections.slice(),i=[];for(let n=0,s=0;n<e.length;n+=2){let o=e[n],l=e[n+1];if(l>=0){e[n]=l,e[n+1]=o;let a=n>>1;for(;i.length<a;)i.push(k.empty);i.push(o?t.slice(s,s+o):k.empty)}s+=o}return new E(e,i)}compose(t){return this.empty?t:t.empty?this:bn(this,t,!0)}map(t,e=!1){return t.empty?this:qe(this,t,e,!0)}iterChanges(t,e=!1){Ze(this,t,e)}get desc(){return at.create(this.sections)}filter(t){let e=[],i=[],n=[],s=new Ut(this);t:for(let o=0,l=0;;){let a=o==t.length?1e9:t[o++];for(;l<a||l==a&&s.len==0;){if(s.done)break t;let c=Math.min(s.len,a-l);F(n,c,-1);let f=s.ins==-1?-1:s.off==0?s.ins:0;F(e,c,f),f>0&&ut(i,e,s.text),s.forward(c),l+=c}let h=t[o++];for(;l<h;){if(s.done)break t;let c=Math.min(s.len,h-l);F(e,c,-1),F(n,c,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(c),l+=c}}return{changes:new E(e,i),filtered:at.create(n)}}toJSON(){let t=[];for(let e=0;e<this.sections.length;e+=2){let i=this.sections[e],n=this.sections[e+1];n<0?t.push(i):n==0?t.push([i]):t.push([i].concat(this.inserted[e>>1].toJSON()))}return t}static of(t,e,i){let n=[],s=[],o=0,l=null;function a(c=!1){if(!c&&!n.length)return;o<e&&F(n,e-o,-1);let f=new E(n,s);l=l?l.compose(f.map(l)):f,n=[],s=[],o=0}function h(c){if(Array.isArray(c))for(let f of c)h(f);else if(c instanceof E){if(c.length!=e)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${e})`);a(),l=l?l.compose(c.map(l)):c}else{let{from:f,to:u=f,insert:d}=c;if(f>u||f<0||u>e)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${e})`);let g=d?typeof d=="string"?k.of(d.split(i||Xe)):d:k.empty,p=g.length;if(f==u&&p==0)return;f<o&&a(),f>o&&F(n,f-o,-1),F(n,u-f,p),ut(s,n,g),o=u}}return h(t),a(!l),l}static empty(t){return new E(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let n=0;n<t.length;n++){let s=t[n];if(typeof s=="number")e.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)e.push(s[0],0);else{for(;i.length<n;)i.push(k.empty);i[n]=k.of(s.slice(1)),e.push(s[0],i[n].length)}}}return new E(e,i)}static createSet(t,e){return new E(t,e)}}function F(r,t,e,i=!1){if(t==0&&e<=0)return;let n=r.length-2;n>=0&&e<=0&&e==r[n+1]?r[n]+=t:n>=0&&t==0&&r[n]==0?r[n+1]+=e:i?(r[n]+=t,r[n+1]+=e):r.push(t,e)}function ut(r,t,e){if(e.length==0)return;let i=t.length-2>>1;if(i<r.length)r[r.length-1]=r[r.length-1].append(e);else{for(;r.length<i;)r.push(k.empty);r.push(e)}}function Ze(r,t,e){let i=r.inserted;for(let n=0,s=0,o=0;o<r.sections.length;){let l=r.sections[o++],a=r.sections[o++];if(a<0)n+=l,s+=l;else{let h=n,c=s,f=k.empty;for(;h+=l,c+=a,a&&i&&(f=f.append(i[o-2>>1])),!(e||o==r.sections.length||r.sections[o+1]<0);)l=r.sections[o++],a=r.sections[o++];t(n,h,s,c,f),n=h,s=c}}}function qe(r,t,e,i=!1){let n=[],s=i?[]:null,o=new Ut(r),l=new Ut(t);for(let a=-1;;){if(o.done&&l.len||l.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);F(n,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!e))){let h=l.len;for(F(n,l.ins,-1);h;){let c=Math.min(o.len,h);o.ins>=0&&a<o.i&&o.len<=c&&(F(n,0,o.ins),s&&ut(s,n,o.text),a=o.i),o.forward(c),h-=c}l.next()}else if(o.ins>=0){let h=0,c=o.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);h+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.len<c)c-=l.len,l.next();else break;F(n,h,a<o.i?o.ins:0),s&&a<o.i&&ut(s,n,o.text),a=o.i,o.forward(o.len-c)}else{if(o.done&&l.done)return s?E.createSet(n,s):at.create(n);throw new Error("Mismatched change set lengths")}}}function bn(r,t,e=!1){let i=[],n=e?[]:null,s=new Ut(r),o=new Ut(t);for(let l=!1;;){if(s.done&&o.done)return n?E.createSet(i,n):at.create(i);if(s.ins==0)F(i,s.len,0,l),s.next();else if(o.len==0&&!o.done)F(i,0,o.ins,l),n&&ut(n,i,o.text),o.next();else{if(s.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(s.len2,o.len),h=i.length;if(s.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;F(i,a,c,l),n&&c&&ut(n,i,o.text)}else o.ins==-1?(F(i,s.off?0:s.len,a,l),n&&ut(n,i,s.textBit(a))):(F(i,s.off?0:s.len,o.off?0:o.ins,l),n&&!o.off&&ut(n,i,o.text));l=(s.ins>a||o.ins>=0&&o.len>a)&&(l||i.length>h),s.forward2(a),o.forward(a)}}}}class Ut{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,e=this.i-2>>1;return e>=t.length?k.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?k.empty:e[i].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class ft{constructor(t,e,i,n){this.from=t,this.to=e,this.flags=i,this.goalColumn=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get undirectional(){return(this.flags&64)>0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}map(t,e=-1){let i,n;return this.empty?i=n=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),n=t.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new ft(i,n,this.flags,this.goalColumn)}extend(t,e=t,i=0){if(t<=this.anchor&&e>=this.anchor)return S.range(t,e,void 0,void 0,i);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return S.range(this.anchor,n,void 0,void 0,i)}eq(t,e=!1){return this.anchor==t.anchor&&this.head==t.head&&this.goalColumn==t.goalColumn&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return S.range(t.anchor,t.head)}static create(t,e,i,n){return new ft(t,e,i,n)}}class S{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:S.create(this.ranges.map(i=>i.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(t.ranges[i],e))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new S([this.main],0)}addRange(t,e=!0){return S.create([t].concat(this.ranges),e?0:this.mainIndex+1)}replaceRange(t,e=this.mainIndex){let i=this.ranges.slice();return i[e]=t,S.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new S(t.ranges.map(e=>ft.fromJSON(e)),t.main)}static single(t,e=t){return new S([S.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;n<t.length;n++){let s=t[n];if(s.empty?s.from<=i:s.from<i)return S.normalized(t.slice(),e);i=s.to}return new S(t,e)}static cursor(t,e=0,i,n){return ft.create(t,t,(e==0?0:e<0?8:16)|(i==null?7:Math.min(6,i)),n)}static range(t,e,i,n,s){let o=n==null?7:Math.min(6,n);return!s&&t!=e&&(s=e<t?1:-1),s&&(o|=s<0?8:16),e<t?ft.create(e,t,o|32,i):ft.create(t,e,o,i)}static undirectionalRange(t,e){return ft.create(t,e,64,void 0)}static normalized(t,e=0){let i=t[e];t.sort((n,s)=>n.from-s.from),e=t.indexOf(i);for(let n=1;n<t.length;n++){let s=t[n],o=t[n-1];if(s.empty?s.from<=o.to:s.from<o.to){let l=o.from,a=Math.max(s.to,o.to);n<=e&&e--,t.splice(--n,2,s.anchor>s.head?S.range(a,l):S.range(l,a))}}return new S(t,e)}}function wn(r,t){for(let e of r.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}let Si=0;class x{constructor(t,e,i,n,s){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=n,this.id=Si++,this.default=t([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(t={}){return new x(t.combine||(e=>e),t.compareInput||((e,i)=>e===i),t.compare||(t.combine?(e,i)=>e===i:bi),!!t.static,t.enables)}of(t){return new pe([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new pe(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new pe(t,this,2,e)}from(t,e){return e||(e=i=>i),this.compute([t],i=>e(i.field(t)))}}function bi(r,t){return r==t||r.length==t.length&&r.every((e,i)=>e===t[i])}class pe{constructor(t,e,i,n){this.dependencies=t,this.facet=e,this.type=i,this.value=n,this.id=Si++}dynamicSlot(t){var e;let i=this.value,n=this.facet.compareInput,s=this.id,o=t[s]>>1,l=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:(((e=t[f.id])!==null&&e!==void 0?e:1)&1)==0&&c.push(t[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||Ue(f,c)){let d=i(f);if(l?!$i(d,f.values[o],n):!n(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d,g=u.config.address[s];if(g!=null){let p=be(u,g);if(this.dependencies.every(O=>O instanceof x?u.facet(O)===f.facet(O):O instanceof Lt?u.field(O,!1)==f.field(O,!1):!0)||(l?$i(d=i(f),p,n):n(d=i(f),p)))return f.values[o]=p,0}else d=i(f);return f.values[o]=d,1}}}get extension(){return this}}function $i(r,t,e){if(r.length!=t.length)return!1;for(let i=0;i<r.length;i++)if(!e(r[i],t[i]))return!1;return!0}function Ue(r,t){let e=!1;for(let i of t)zt(r,i)&1&&(e=!0);return e}function Vs(r,t,e){let i=e.map(a=>r[a.id]),n=e.map(a=>a.type),s=i.filter(a=>!(a&1)),o=r[t.id]>>1;function l(a){let h=[];for(let c=0;c<i.length;c++){let f=be(a,i[c]);if(n[c]==2)for(let u of f)h.push(u);else h.push(f)}return t.combine(h)}return{create(a){for(let h of i)zt(a,h);return a.values[o]=l(a),1},update(a,h){if(!Ue(a,s))return 0;let c=l(a);return t.compare(c,a.values[o])?0:(a.values[o]=c,1)},reconfigure(a,h){let c=Ue(a,i),f=h.config.facets[t.id],u=h.facet(t);if(f&&!c&&bi(e,f))return a.values[o]=u,0;let d=l(a);return t.compare(d,u)?(a.values[o]=u,0):(a.values[o]=d,1)}}}const se=x.define({static:!0});class Lt{constructor(t,e,i,n,s){this.id=t,this.createF=e,this.updateF=i,this.compareF=n,this.spec=s,this.provides=void 0}static define(t){let e=new Lt(Si++,t.create,t.update,t.compare||((i,n)=>i===n),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(se).find(i=>i.field==this);return(e?.create||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:i=>(i.values[e]=this.create(i),1),update:(i,n)=>{let s=i.values[e],o=this.updateF(s,n);return this.compareF(s,o)?0:(i.values[e]=o,1)},reconfigure:(i,n)=>{let s=i.facet(se),o=n.facet(se),l;return(l=s.find(a=>a.field==this))&&l!=o.find(a=>a.field==this)?(i.values[e]=l.create(i),1):n.config.address[this.id]!=null?(i.values[e]=n.field(this),0):(i.values[e]=this.create(i),1)}}}init(t){return[this,se.of({field:this,create:t})]}get extension(){return this}}const Ot={lowest:4,low:3,default:2,high:1,highest:0};function It(r){return t=>new vn(t,r)}const Fs={highest:It(Ot.highest),high:It(Ot.high),default:It(Ot.default),low:It(Ot.low),lowest:It(Ot.lowest)};class vn{constructor(t,e){this.inner=t,this.prec=e}get extension(){return this}}class Ae{of(t){return new je(this,t)}reconfigure(t){return Ae.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class je{constructor(t,e){this.compartment=t,this.inner=e}get extension(){return this}}class Se{constructor(t,e,i,n,s,o){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=n,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(t){let e=this.address[t.id];return e==null?t.default:this.staticValues[e>>1]}static resolve(t,e,i){let n=[],s=Object.create(null),o=new Map;for(let u of Ns(t,e,o))u instanceof Lt?n.push(u):(s[u.facet.id]||(s[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of n)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let c=i?.config.facets;for(let u in s){let d=s[u],g=d[0].facet,p=c&&c[u]||[];if(d.every(O=>O.type==0))if(l[g.id]=a.length<<1|1,bi(p,d))a.push(i.facet(g));else{let O=g.combine(d.map(m=>m.value));a.push(i&&g.compare(O,i.facet(g))?i.facet(g):O)}else{for(let O of d)O.type==0?(l[O.id]=a.length<<1|1,a.push(O.value)):(l[O.id]=h.length<<1,h.push(m=>O.dynamicSlot(m)));l[g.id]=h.length<<1,h.push(O=>Vs(O,g,d))}}let f=h.map(u=>u(l));return new Se(t,o,f,l,a,s)}}function Ns(r,t,e){let i=[[],[],[],[],[]],n=new Map;function s(o,l){let a=n.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof je&&e.delete(o.compartment)}if(n.set(o,l),Array.isArray(o))for(let h of o)s(h,l);else if(o instanceof je){if(e.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=t.get(o.compartment)||o.inner;e.set(o.compartment,h),s(h,l)}else if(o instanceof vn)s(o.inner,o.prec);else if(o instanceof Lt)i[l].push(o),o.provides&&s(o.provides,l);else if(o instanceof pe)i[l].push(o),o.facet.extensions&&s(o.facet.extensions,Ot.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}).`);if(h==o)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(h,l)}}return s(r,Ot.default),i.reduce((o,l)=>o.concat(l))}function zt(r,t){if(t&1)return 2;let e=t>>1,i=r.status[e];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;r.status[e]=4;let n=r.computeSlot(r,r.config.dynamicSlots[e]);return r.status[e]=2|n}function be(r,t){return t&1?r.config.staticValues[t>>1]:r.values[t>>1]}const xn=x.define(),Ye=x.define({combine:r=>r.some(t=>t),static:!0}),yn=x.define({combine:r=>r.length?r[0]:void 0,static:!0}),kn=x.define(),Pn=x.define(),Cn=x.define(),Qn=x.define({combine:r=>r.length?r[0]:!1});class Wt{constructor(t,e){this.type=t,this.value=e}static define(){return new Hs}}class Hs{of(t){return new Wt(this,t)}}class zs{constructor(t){this.map=t}of(t){return new B(this,t)}}class B{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return e===void 0?void 0:e==this.value?this:new B(this.type,e)}is(t){return this.type==t}static define(t={}){return new zs(t.map||(e=>e))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let n of t){let s=n.map(e);s&&i.push(s)}return i}}B.reconfigure=B.define();B.appendConfig=B.define();class N{constructor(t,e,i,n,s,o){this.startState=t,this.changes=e,this.selection=i,this.effects=n,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,i&&wn(i,e.newLength),s.some(l=>l.type==N.time)||(this.annotations=s.concat(N.time.of(Date.now())))}static create(t,e,i,n,s,o){return new N(t,e,i,n,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(N.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}}N.time=Wt.define();N.userEvent=Wt.define();N.addToHistory=Wt.define();N.remote=Wt.define();function Gs(r,t){let e=[];for(let i=0,n=0;;){let s,o;if(i<r.length&&(n==t.length||t[n]>=r[i]))s=r[i++],o=r[i++];else if(n<t.length)s=t[n++],o=t[n++];else return e;!e.length||e[e.length-1]<s?e.push(s,o):e[e.length-1]<o&&(e[e.length-1]=o)}}function An(r,t,e){var i;let n,s,o;return e?(n=t.changes,s=E.empty(t.changes.length),o=r.changes.compose(t.changes)):(n=t.changes.map(r.changes),s=r.changes.mapDesc(t.changes,!0),o=r.changes.compose(n)),{changes:o,selection:t.selection?t.selection.map(s):(i=r.selection)===null||i===void 0?void 0:i.map(n),effects:B.mapEffects(r.effects,n).concat(B.mapEffects(t.effects,s)),annotations:r.annotations.length?r.annotations.concat(t.annotations):t.annotations,scrollIntoView:r.scrollIntoView||t.scrollIntoView}}function Ke(r,t,e){let i=t.selection,n=Pt(t.annotations);return t.userEvent&&(n=n.concat(N.userEvent.of(t.userEvent))),{changes:t.changes instanceof E?t.changes:E.of(t.changes||[],e,r.facet(yn)),selection:i&&(i instanceof S?i:S.single(i.anchor,i.head)),effects:Pt(t.effects),annotations:n,scrollIntoView:!!t.scrollIntoView}}function Tn(r,t,e){let i=Ke(r,t.length?t[0]:{},r.doc.length);t.length&&t[0].filter===!1&&(e=!1);for(let s=1;s<t.length;s++){t[s].filter===!1&&(e=!1);let o=!!t[s].sequential;i=An(i,Ke(r,t[s],o?i.changes.newLength:r.doc.length),o)}let n=N.create(r,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return Zs(e?Xs(n):n)}function Xs(r){let t=r.startState,e=!0;for(let n of t.facet(kn)){let s=n(r);if(s===!1){e=!1;break}Array.isArray(s)&&(e=e===!0?s:Gs(e,s))}if(e!==!0){let n,s;if(e===!1)s=r.changes.invertedDesc,n=E.empty(t.doc.length);else{let o=r.changes.filter(e);n=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc}r=N.create(t,n,r.selection&&r.selection.map(s),B.mapEffects(r.effects,s),r.annotations,r.scrollIntoView)}let i=t.facet(Pn);for(let n=i.length-1;n>=0;n--){let s=i[n](r);s instanceof N?r=s:Array.isArray(s)&&s.length==1&&s[0]instanceof N?r=s[0]:r=Tn(t,Pt(s),!1)}return r}function Zs(r){let t=r.startState,e=t.facet(Cn),i=r;for(let n=e.length-1;n>=0;n--){let s=e[n](r);s&&Object.keys(s).length&&(i=An(i,Ke(t,s,r.changes.newLength),!0))}return i==r?r:N.create(t,r.changes,r.selection,i.effects,i.annotations,i.scrollIntoView)}const qs=[];function Pt(r){return r==null?qs:Array.isArray(r)?r:[r]}var ot=(function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r})(ot||(ot={}));const Us=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let _e;try{_e=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function js(r){if(_e)return _e.test(r);for(let t=0;t<r.length;t++){let e=r[t];if(/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Us.test(e)))return!0}return!1}function Ys(r){return t=>{if(!/\S/.test(t))return ot.Space;if(js(t))return ot.Word;for(let e=0;e<r.length;e++)if(t.indexOf(r[e])>-1)return ot.Word;return ot.Other}}class T{constructor(t,e,i,n,s,o){this.config=t,this.doc=e,this.selection=i,this.values=n,this.status=t.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)zt(this,l<<1);this.computeSlot=null}field(t,e=!0){let i=this.config.address[t.id];if(i==null){if(e)throw new RangeError("Field is not present in this state");return}return zt(this,i),be(this,i)}update(...t){return Tn(this,t,!0)}applyTransaction(t){let e=this.config,{base:i,compartments:n}=e;for(let l of t.effects)l.is(Ae.reconfigure)?(e&&(n=new Map,e.compartments.forEach((a,h)=>n.set(h,a)),e=null),n.set(l.value.compartment,l.value.extension)):l.is(B.reconfigure)?(e=null,i=l.value):l.is(B.appendConfig)&&(e=null,i=Pt(i).concat(l.value));let s;e?s=t.startState.values.slice():(e=Se.resolve(i,n,this),s=new T(e,this.doc,this.selection,e.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let o=t.startState.facet(Ye)?t.newSelection:t.newSelection.asSingle();new T(e,t.newDoc,o,s,(l,a)=>a.update(l,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:S.cursor(e.from+t.length,-1)}))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),n=this.changes(i.changes),s=[i.range],o=Pt(i.effects);for(let l=1;l<e.ranges.length;l++){let a=t(e.ranges[l]),h=this.changes(a.changes),c=h.map(n);for(let u=0;u<l;u++)s[u]=s[u].map(c);let f=n.mapDesc(h,!0);s.push(a.range.map(f)),n=n.compose(c),o=B.mapEffects(o,c).concat(B.mapEffects(Pt(a.effects),f))}return{changes:n,selection:S.create(s,e.mainIndex),effects:o}}changes(t=[]){return t instanceof E?t:E.of(t,this.doc.length,this.facet(T.lineSeparator))}toText(t){return k.of(t.split(this.facet(T.lineSeparator)||Xe))}sliceDoc(t=0,e=this.doc.length){return this.doc.sliceString(t,e,this.lineBreak)}facet(t){let e=this.config.address[t.id];return e==null?t.default:(zt(this,e),be(this,e))}toJSON(t){let e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let i in t){let n=t[i];n instanceof Lt&&this.config.address[n.id]!=null&&(e[i]=n.spec.toJSON(this.field(t[i]),this))}return e}static fromJSON(t,e={},i){if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(i){for(let s in i)if(Object.prototype.hasOwnProperty.call(t,s)){let o=i[s],l=t[s];n.push(o.init(a=>o.spec.fromJSON(l,a)))}}return T.create({doc:t.doc,selection:S.fromJSON(t.selection),extensions:e.extensions?n.concat([e.extensions]):n})}static create(t={}){let e=Se.resolve(t.extensions||[],new Map),i=t.doc instanceof k?t.doc:k.of((t.doc||"").split(e.staticFacet(T.lineSeparator)||Xe)),n=t.selection?t.selection instanceof S?t.selection:S.single(t.selection.anchor,t.selection.head):S.single(0);return wn(n,i.length),e.staticFacet(Ye)||(n=n.asSingle()),new T(e,i,n,e.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(T.tabSize)}get lineBreak(){return this.facet(T.lineSeparator)||`
|
package/src/wechat-preview/assets/browser-dist/assets/{index-CdxKyTX6.js → index-BOH11YN9.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as g,a as P,p as l,s as q,t as r}from"../studio.js";import{html as c}from"./index-
|
|
1
|
+
import{L as g,a as P,p as l,s as q,t as r}from"../studio.js";import{html as c}from"./index-C1Bxnw4o.js";import{javascriptLanguage as i}from"./index-C2N6r4Fw.js";import{L as R,E as p}from"./index-B13lCSuc.js";import"./wechat-renderer-GrfbOjo2.js";import"./index-BTPh91V-.js";const b=1,m=33,$=34,v=35,x=36,W=new p(O=>{let t=O.pos;for(;;){if(O.next==10){O.advance();break}else if(O.next==123&&O.peek(1)==123||O.next<0)break;O.advance()}O.pos>t&&O.acceptToken(b)});function n(O,t,a){return new p(e=>{let u=e.pos;for(;e.next!=O&&e.next>=0&&(a||e.next!=38&&(e.next!=123||e.peek(1)!=123));)e.advance();e.pos>u&&e.acceptToken(t)})}const d=n(39,m,!1),f=n(34,$,!1),C=n(39,v,!0),T=n(34,x,!0),A=R.deserialize({version:14,states:"(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO<<GrOOQO<<Gr<<GrOOQO1G/[1G/[OOOS-E6x-E6xOOQO1G.}1G.}OOOQ-E6y-E6yOOQOAN=^AN=^",stateData:"&d~OvOS~OPROSQOVROWRO~OZTO[XO^VOaUOhWO~OR]OU^O~O[`O^aO~O[bO~O[cO~O[dO~ObeO~ObfO~ObgO~ORhO~O]kOwiO~O[lO~O_mO~OynOzoO~OysOztO~O[uO~O]wOwiO~O_yOwiO~OtzO~Os|O~OSQOV!OOW!OOr!OOy!QO~OSQOV!ROW!ROq!ROz!QO~O_!TOwiO~O]!UO~Oy!VO~Oz!VO~OSQOV!OOW!OOr!OOy!XO~OSQOV!ROW!ROq!ROz!XO~O]!ZO~O",goto:"#dyPPPPPzPPPP!WPPPPP!WPP!Z!^!a!d!dP!g!j!m!p!v#Q#WPPPPPPPP#^SROSS!Os!PT!Rt!SRYPRqeR{nR}oRZPRqfR[PRqgQSOR_SQj`SvjxRxlQ!PsR!W!PQ!StR!Y!SQpeRrf",nodeNames:"⚠ Text Content }} {{ Interpolation InterpolationContent Entity InvalidEntity Attribute BoundAttributeName [ Identifier ] ( ) ReferenceName # Is ExpressionAttributeValue AttributeInterpolation AttributeInterpolation EventName DirectiveName * StatementAttributeValue AttributeName AttributeValue",maxTerm:42,nodeProps:[["openedBy",3,"{{",15,"("],["closedBy",4,"}}",14,")"],["isolate",-4,5,19,25,27,""]],skippedNodes:[0],repeatNodeCount:4,tokenData:"0r~RyOX#rXY$mYZ$mZ]#r]^$m^p#rpq$mqr#rrs%jst&Qtv#rvw&hwx)zxy*byz*xz{+`{}#r}!O+v!O!P-]!P!Q#r!Q![+v![!]+v!]!_#r!_!`-s!`!c#r!c!}+v!}#O.Z#O#P#r#P#Q.q#Q#R#r#R#S+v#S#T#r#T#o+v#o#p/X#p#q#r#q#r0Z#r%W#r%W;'S+v;'S;:j-V;:j;=`$g<%lO+vQ#wTUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rQ$ZSO#q#r#r;'S#r;'S;=`$g<%lO#rQ$jP;=`<%l#rR$t[UQvPOX#rXY$mYZ$mZ]#r]^$m^p#rpq$mq#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR%qTyPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR&XTaPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR&oXUQWPOp'[pq#rq!]'[!]!^#r!^#q'[#q#r(d#r;'S'[;'S;=`)t<%lO'[R'aXUQOp'[pq#rq!]'[!]!^'|!^#q'[#q#r(d#r;'S'[;'S;=`)t<%lO'[R(TTVPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR(gXOp'[pq#rq!]'[!]!^'|!^#q'[#q#r)S#r;'S'[;'S;=`)t<%lO'[P)VUOp)Sq!])S!]!^)i!^;'S)S;'S;=`)n<%lO)SP)nOVPP)qP;=`<%l)SR)wP;=`<%l'[R*RTzPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR*iT^PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+PT_PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+gThPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR+}b[PUQO}#r}!O+v!O!Q#r!Q![+v![!]+v!]!c#r!c!}+v!}#R#r#R#S+v#S#T#r#T#o+v#o#q#r#q#r$W#r%W#r%W;'S+v;'S;:j-V;:j;=`$g<%lO+vR-YP;=`<%l+vR-dTwPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR-zTUQbPO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR.bTZPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR.xT]PUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR/^VUQO#o#r#o#p/s#p#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#rR/zTSPUQO#q#r#q#r$W#r;'S#r;'S;=`$g<%lO#r~0^TO#q#r#q#r0m#r;'S#r;'S;=`$g<%lO#r~0rOR~",tokenizers:[W,d,f,C,T,0,1],topRules:{Content:[0,2],Attribute:[1,9]},tokenPrec:0}),V=i.parser.configure({top:"SingleExpression"}),Q=A.configure({props:[q({Text:r.content,Is:r.definitionOperator,AttributeName:r.attributeName,"AttributeValue ExpressionAttributeValue StatementAttributeValue":r.attributeValue,Entity:r.character,InvalidEntity:r.invalid,"BoundAttributeName/Identifier":r.attributeName,"EventName/Identifier":r.special(r.attributeName),"ReferenceName/Identifier":r.variableName,"DirectiveName/Identifier":r.keyword,"{{ }}":r.brace,"( )":r.paren,"[ ]":r.bracket,"# '*'":r.punctuation})]}),o={parser:V},w={parser:i.parser},U=Q.configure({wrap:l((O,t)=>O.name=="InterpolationContent"?o:null)}),y=Q.configure({wrap:l((O,t)=>{var a;return O.name=="InterpolationContent"?o:O.name!="AttributeInterpolation"?null:((a=O.node.parent)===null||a===void 0?void 0:a.name)=="StatementAttributeValue"?w:o}),top:"Attribute"}),E={parser:U},N={parser:y},s=c({selfClosingTags:!0});function S(O){return O.configure({wrap:l(z)},"angular")}const k=S(s.language);function z(O,t){switch(O.name){case"Attribute":return/^[*#(\[]|\{\{/.test(t.read(O.from,O.to))?N:null;case"Text":return E}return null}function j(O={}){let t=s;if(O.base){if(O.base.language.name!="html"||!(O.base.language instanceof g))throw new RangeError("The base option must be the result of calling html(...)");t=O.base}return new P(t.language==s.language?k:S(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/})])}export{j as angular,k as angularLanguage};
|