@bigduu/lotus-next 2026.9.14 → 2026.9.22

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 (32) hide show
  1. package/README.md +36 -7
  2. package/dist/asset-manifest.json +68 -44
  3. package/dist/assets/{CodeBlock-dYUQ9iue.js → CodeBlock-DBfBv5_i.js} +1 -1
  4. package/dist/assets/{Markdown-DBG0vWxL.js → Markdown-ahK0hkcz.js} +2 -2
  5. package/dist/assets/{MermaidChart-U1Z5JCRh.js → MermaidChart-u-lY5cVd.js} +1 -1
  6. package/dist/assets/Root-CLJd2hHV.js +7 -0
  7. package/dist/assets/Settings-CedRvxBt.js +7 -0
  8. package/dist/assets/StreamdownMarkdown-CF2fboDH.js +2 -0
  9. package/dist/assets/{StreamdownMermaid-J7jSRtO6.js → StreamdownMermaid-6D5ZRSNf.js} +1 -1
  10. package/dist/assets/core-gKCFBR0h.js +1 -0
  11. package/dist/assets/dist-js-CR5KqW0h.js +1 -0
  12. package/dist/assets/dist-js-CxcdWbme.js +1 -0
  13. package/dist/assets/html2canvas-DUQiXoff.js +1 -0
  14. package/dist/assets/index-BsUbje1U.css +2 -0
  15. package/dist/assets/{index-CjY6eMv8.js → index-CXbnxAY3.js} +2 -2
  16. package/dist/assets/{renderPdf-DbvJnEQL.js → renderPdf-SFq6NX0p.js} +3 -3
  17. package/dist/assets/select-C9RCHZ9k.js +131 -0
  18. package/dist/assets/{strictConfig-Bf8nyKvx.js → strictConfig-Cf6ukrta.js} +1 -1
  19. package/dist/assets/{vendor-highlighter-ClvlgmIK.js → vendor-highlighter-CxlwHhxp.js} +1 -1
  20. package/dist/assets/{vendor-mermaid-Da_wWrs4.js → vendor-mermaid-DtGs8EB7.js} +1 -1
  21. package/dist/assets/{vendor-streamdown-BIRX7zKm.js → vendor-streamdown-D4_Avc1Y.js} +1 -1
  22. package/dist/assets/{vendor-streamdown-code-B6SuuZwa.js → vendor-streamdown-code--ae1szxf.js} +1 -1
  23. package/dist/bundle-ownership.json +73 -28
  24. package/dist/index.html +2 -2
  25. package/dist/lotus-next-manifest.json +66 -51
  26. package/package.json +2 -1
  27. package/dist/assets/Root-dWsRRTlH.js +0 -7
  28. package/dist/assets/Settings-BcsRaEDP.js +0 -7
  29. package/dist/assets/StreamdownMarkdown-CiLy0KJD.js +0 -2
  30. package/dist/assets/html2canvas-ChX2ETZ3.js +0 -1
  31. package/dist/assets/index-xUf4TnkE.css +0 -2
  32. package/dist/assets/select-DYBAIyVx.js +0 -131
package/README.md CHANGED
@@ -34,7 +34,7 @@ the migration and its declared rollback window has ended.
34
34
  - Streaming messages, reasoning, tools, tasks, budgets, sub-agents, Markdown, syntax highlighting, Mermaid, images, and approval or question dialogs.
35
35
  - Session navigation, live account reconciliation, drafts, pending-question restoration, Markdown/PDF export, and a desktop split view with a second interactive chat pane.
36
36
  - Responsive desktop and mobile layouts, light/dark/system themes, simple/advanced modes, and a graphics-safe mode for constrained environments.
37
- - Fifteen settings tabs: General, Providers, MCP, Plugins, Skills, Permissions, Environment, Schedules, Notifications, Masking, Prompts, Workflows, Clusters, Metrics, and System.
37
+ - Sixteen settings tabs: General, Providers, MCP, Plugins, Skills, Permissions, Environment, Schedules, Notifications, Masking, Prompts, Workflows, Clusters, Metrics, Jiandu memory, and System.
38
38
 
39
39
  ## Internationalization
40
40
 
@@ -62,9 +62,9 @@ embedded hosting while enforcing the canonical `/api/v1` and `/v2/stream`
62
62
  runtime contract. CI retains its HTML report, trace, screenshot, video, and
63
63
  runtime observations when a case fails.
64
64
 
65
- The real-runtime gate is intentionally separate from that deterministic matrix.
66
- It builds a clean checkout of Bamboo revision
67
- `2171e406a18c9f48509f1372560ef6e8c1749eca` into an isolated Docker image,
65
+ The source-built real-runtime gate is intentionally separate from that
66
+ deterministic matrix. It builds a clean checkout of Bamboo revision
67
+ `f1f1057bdbde33358d769b6a62ff93f2287e3f9f` into an isolated Docker image,
68
68
  serves the production Lotus Next artifact from that Bamboo process, and drives
69
69
  one complete chat turn through the visible desktop UI and a local deterministic
70
70
  OpenAI-compatible provider. It requires the `auth.ws_hello_ack.v1` bootstrap
@@ -73,9 +73,9 @@ the initial page and a fresh browser context, proving that exact `hello` is
73
73
  acknowledged by exact `welcome` before any subscription is sent. The provider
74
74
  shares Bamboo's test-owned network
75
75
  namespace and listens only on that namespace's loopback interface; only Bamboo's
76
- HTTP listener is published on a random host-loopback port. The provider writes
77
- redacted observations atomically to a test-owned bind mount instead of exposing
78
- its own API to the host.
76
+ HTTP or in-process rustls TLS listener is published on a random host-loopback
77
+ port. The provider writes redacted observations atomically to a test-owned bind
78
+ mount instead of exposing its own API to the host.
79
79
  Both Bamboo data and its Jiandu home stay inside a separate
80
80
  test-owned temporary `/data` mount, so the lane never reads the workstation's
81
81
  live Bamboo or Jiandu state. To run it locally, provide the absolute path to a
@@ -93,6 +93,35 @@ containers, private network, temporary image, observation mount, and data root
93
93
  it created. CI runs this single desktop lane once on Node 22; it does not repeat
94
94
  it across the mock suite's viewport/runtime matrix.
95
95
 
96
+ The published-artifact acceptance is a second real-runtime lane. It downloads
97
+ `@bigduu/lotus-next@2026.9.14` from the public npm registry into a fresh cache
98
+ with lifecycle scripts disabled, then requires the committed SHA-1, SHA-512
99
+ integrity, manifest SHA-256, resource-set digest, 34-resource inventory, and
100
+ source revision `ae17b50574ccd86395cbc226b50c9fb2f0f51e0f`. It refuses any
101
+ different artifact before launching Bamboo. The same verified bytes are tested
102
+ first through native loopback HTTP and then through Bamboo's own HTTPS/WSS
103
+ listener using an ephemeral one-day certificate for `remote.lotus.test`.
104
+ Desktop, tablet, and phone viewports must keep the shell, settings, and composer
105
+ usable while every application request remains same-origin on canonical
106
+ `/api/v1` and the single `/v2/stream` WebSocket.
107
+
108
+ Run the immutable public-artifact lane with the same clean Bamboo checkout:
109
+
110
+ ```bash
111
+ BAMBOO_E2E_SOURCE_DIR=/absolute/path/to/bamboo \
112
+ npm run test:e2e:published-bamboo
113
+ ```
114
+
115
+ This command additionally requires `openssl`. It creates no public tunnel: the
116
+ named remote topology resolves only to `127.0.0.1`, and the self-signed
117
+ certificate is trusted only by the ephemeral test processes. It proves the
118
+ browser contract and responsive viewports, not a physical-device or
119
+ public-network path. HTML reports and Playwright artifacts are written to the
120
+ `playwright-report-real-bamboo-{local,remote}` and
121
+ `test-results-real-bamboo-{local,remote}` directories; runtime identity and
122
+ redacted observations remain under `test-results-real-bamboo/{local,remote}`.
123
+ CI uploads all three evidence roots even when a lane fails.
124
+
96
125
  `npm run pack:check` rebuilds the app, asks npm for the exact dry-run tarball
97
126
  manifest, and rejects anything outside `dist/` plus npm's required package
98
127
  metadata. Every build also writes `dist/lotus-next-manifest.json`. That
@@ -12,6 +12,10 @@
12
12
  "file": "assets/bundle-mjs-B_AA55HL.js",
13
13
  "name": "bundle-mjs"
14
14
  },
15
+ "_core-gKCFBR0h.js": {
16
+ "file": "assets/core-gKCFBR0h.js",
17
+ "name": "core"
18
+ },
15
19
  "_defineProperty-o0OkIQd4.js": {
16
20
  "file": "assets/defineProperty-o0OkIQd4.js",
17
21
  "name": "defineProperty",
@@ -27,8 +31,8 @@
27
31
  "file": "assets/rolldown-runtime-QTnfLwEv.js",
28
32
  "name": "rolldown-runtime"
29
33
  },
30
- "_select-DYBAIyVx.js": {
31
- "file": "assets/select-DYBAIyVx.js",
34
+ "_select-C9RCHZ9k.js": {
35
+ "file": "assets/select-C9RCHZ9k.js",
32
36
  "name": "select",
33
37
  "imports": [
34
38
  "_rolldown-runtime-QTnfLwEv.js",
@@ -41,19 +45,19 @@
41
45
  "src/shared/i18n/resources/zh-CN.ts"
42
46
  ]
43
47
  },
44
- "_strictConfig-Bf8nyKvx.js": {
45
- "file": "assets/strictConfig-Bf8nyKvx.js",
48
+ "_strictConfig-Cf6ukrta.js": {
49
+ "file": "assets/strictConfig-Cf6ukrta.js",
46
50
  "name": "strictConfig",
47
51
  "imports": [
48
- "_vendor-mermaid-Da_wWrs4.js"
52
+ "_vendor-mermaid-DtGs8EB7.js"
49
53
  ]
50
54
  },
51
55
  "_unsupportedIterableToArray-BTCP7Haa.js": {
52
56
  "file": "assets/unsupportedIterableToArray-BTCP7Haa.js",
53
57
  "name": "unsupportedIterableToArray"
54
58
  },
55
- "_vendor-highlighter-ClvlgmIK.js": {
56
- "file": "assets/vendor-highlighter-ClvlgmIK.js",
59
+ "_vendor-highlighter-CxlwHhxp.js": {
60
+ "file": "assets/vendor-highlighter-CxlwHhxp.js",
57
61
  "name": "vendor-highlighter",
58
62
  "imports": [
59
63
  "_rolldown-runtime-QTnfLwEv.js",
@@ -64,7 +68,7 @@
64
68
  "src/components/chat/CodeBlock.tsx"
65
69
  ],
66
70
  "dynamicImports": [
67
- "_vendor-highlighter-ClvlgmIK.js"
71
+ "_vendor-highlighter-CxlwHhxp.js"
68
72
  ]
69
73
  },
70
74
  "_vendor-markdown-CfSBref-.js": {
@@ -76,15 +80,15 @@
76
80
  "_lib-CFLxRXs3.js"
77
81
  ]
78
82
  },
79
- "_vendor-mermaid-Da_wWrs4.js": {
80
- "file": "assets/vendor-mermaid-Da_wWrs4.js",
83
+ "_vendor-mermaid-DtGs8EB7.js": {
84
+ "file": "assets/vendor-mermaid-DtGs8EB7.js",
81
85
  "name": "vendor-mermaid",
82
86
  "imports": [
83
87
  "_rolldown-runtime-QTnfLwEv.js",
84
88
  "index.html"
85
89
  ],
86
90
  "dynamicImports": [
87
- "_vendor-mermaid-Da_wWrs4.js"
91
+ "_vendor-mermaid-DtGs8EB7.js"
88
92
  ]
89
93
  },
90
94
  "_vendor-react-CCIEwYL0.js": {
@@ -94,8 +98,12 @@
94
98
  "_rolldown-runtime-QTnfLwEv.js"
95
99
  ]
96
100
  },
97
- "_vendor-streamdown-BIRX7zKm.js": {
98
- "file": "assets/vendor-streamdown-BIRX7zKm.js",
101
+ "_vendor-streamdown-CXvuy5h3.css": {
102
+ "file": "assets/vendor-streamdown-CXvuy5h3.css",
103
+ "src": "_vendor-streamdown-CXvuy5h3.css"
104
+ },
105
+ "_vendor-streamdown-D4_Avc1Y.js": {
106
+ "file": "assets/vendor-streamdown-D4_Avc1Y.js",
99
107
  "name": "vendor-streamdown",
100
108
  "imports": [
101
109
  "_rolldown-runtime-QTnfLwEv.js",
@@ -106,18 +114,14 @@
106
114
  "_lib-CFLxRXs3.js"
107
115
  ],
108
116
  "dynamicImports": [
109
- "_vendor-streamdown-BIRX7zKm.js"
117
+ "_vendor-streamdown-D4_Avc1Y.js"
110
118
  ],
111
119
  "css": [
112
120
  "assets/vendor-streamdown-CXvuy5h3.css"
113
121
  ]
114
122
  },
115
- "_vendor-streamdown-CXvuy5h3.css": {
116
- "file": "assets/vendor-streamdown-CXvuy5h3.css",
117
- "src": "_vendor-streamdown-CXvuy5h3.css"
118
- },
119
- "_vendor-streamdown-code-B6SuuZwa.js": {
120
- "file": "assets/vendor-streamdown-code-B6SuuZwa.js",
123
+ "_vendor-streamdown-code--ae1szxf.js": {
124
+ "file": "assets/vendor-streamdown-code--ae1szxf.js",
121
125
  "name": "vendor-streamdown-code",
122
126
  "imports": [
123
127
  "_rolldown-runtime-QTnfLwEv.js",
@@ -125,11 +129,11 @@
125
129
  "_vendor-markdown-CfSBref-.js"
126
130
  ],
127
131
  "dynamicImports": [
128
- "_vendor-streamdown-code-B6SuuZwa.js"
132
+ "_vendor-streamdown-code--ae1szxf.js"
129
133
  ]
130
134
  },
131
135
  "index.html": {
132
- "file": "assets/index-CjY6eMv8.js",
136
+ "file": "assets/index-CXbnxAY3.js",
133
137
  "name": "index",
134
138
  "src": "index.html",
135
139
  "isEntry": true,
@@ -142,7 +146,25 @@
142
146
  "_ErrorBoundary-DLCRl4Er.js"
143
147
  ],
144
148
  "css": [
145
- "assets/index-xUf4TnkE.css"
149
+ "assets/index-BsUbje1U.css"
150
+ ]
151
+ },
152
+ "node_modules/@tauri-apps/plugin-dialog/dist-js/index.js": {
153
+ "file": "assets/dist-js-CR5KqW0h.js",
154
+ "name": "dist-js",
155
+ "src": "node_modules/@tauri-apps/plugin-dialog/dist-js/index.js",
156
+ "isDynamicEntry": true,
157
+ "imports": [
158
+ "_core-gKCFBR0h.js"
159
+ ]
160
+ },
161
+ "node_modules/@tauri-apps/plugin-fs/dist-js/index.js": {
162
+ "file": "assets/dist-js-CxcdWbme.js",
163
+ "name": "dist-js",
164
+ "src": "node_modules/@tauri-apps/plugin-fs/dist-js/index.js",
165
+ "isDynamicEntry": true,
166
+ "imports": [
167
+ "_core-gKCFBR0h.js"
146
168
  ]
147
169
  },
148
170
  "node_modules/canvg/lib/index.es.js": {
@@ -156,7 +178,7 @@
156
178
  ]
157
179
  },
158
180
  "node_modules/html2canvas/dist/html2canvas.js": {
159
- "file": "assets/html2canvas-ChX2ETZ3.js",
181
+ "file": "assets/html2canvas-DUQiXoff.js",
160
182
  "name": "html2canvas",
161
183
  "src": "node_modules/html2canvas/dist/html2canvas.js",
162
184
  "isDynamicEntry": true,
@@ -165,7 +187,7 @@
165
187
  ]
166
188
  },
167
189
  "src/Root.tsx": {
168
- "file": "assets/Root-dWsRRTlH.js",
190
+ "file": "assets/Root-CLJd2hHV.js",
169
191
  "name": "Root",
170
192
  "src": "src/Root.tsx",
171
193
  "isDynamicEntry": true,
@@ -174,17 +196,19 @@
174
196
  "_vendor-react-CCIEwYL0.js",
175
197
  "index.html",
176
198
  "_ErrorBoundary-DLCRl4Er.js",
177
- "_select-DYBAIyVx.js"
199
+ "_select-C9RCHZ9k.js"
178
200
  ],
179
201
  "dynamicImports": [
180
202
  "src/components/chat/Settings.tsx",
203
+ "node_modules/@tauri-apps/plugin-dialog/dist-js/index.js",
204
+ "node_modules/@tauri-apps/plugin-fs/dist-js/index.js",
181
205
  "src/lib/export/renderPdf.tsx",
182
206
  "src/components/chat/StreamdownMarkdown.tsx",
183
207
  "src/components/chat/Markdown.tsx"
184
208
  ]
185
209
  },
186
210
  "src/components/chat/CodeBlock.tsx": {
187
- "file": "assets/CodeBlock-dYUQ9iue.js",
211
+ "file": "assets/CodeBlock-DBfBv5_i.js",
188
212
  "name": "CodeBlock",
189
213
  "src": "src/components/chat/CodeBlock.tsx",
190
214
  "isDynamicEntry": true,
@@ -193,11 +217,11 @@
193
217
  "_vendor-react-CCIEwYL0.js",
194
218
  "_defineProperty-o0OkIQd4.js",
195
219
  "_unsupportedIterableToArray-BTCP7Haa.js",
196
- "_vendor-highlighter-ClvlgmIK.js"
220
+ "_vendor-highlighter-CxlwHhxp.js"
197
221
  ]
198
222
  },
199
223
  "src/components/chat/Markdown.tsx": {
200
- "file": "assets/Markdown-DBG0vWxL.js",
224
+ "file": "assets/Markdown-ahK0hkcz.js",
201
225
  "name": "Markdown",
202
226
  "src": "src/components/chat/Markdown.tsx",
203
227
  "isDynamicEntry": true,
@@ -214,19 +238,19 @@
214
238
  ]
215
239
  },
216
240
  "src/components/chat/MermaidChart.tsx": {
217
- "file": "assets/MermaidChart-U1Z5JCRh.js",
241
+ "file": "assets/MermaidChart-u-lY5cVd.js",
218
242
  "name": "MermaidChart",
219
243
  "src": "src/components/chat/MermaidChart.tsx",
220
244
  "isDynamicEntry": true,
221
245
  "imports": [
222
246
  "_rolldown-runtime-QTnfLwEv.js",
223
247
  "_vendor-react-CCIEwYL0.js",
224
- "_vendor-mermaid-Da_wWrs4.js",
225
- "_strictConfig-Bf8nyKvx.js"
248
+ "_vendor-mermaid-DtGs8EB7.js",
249
+ "_strictConfig-Cf6ukrta.js"
226
250
  ]
227
251
  },
228
252
  "src/components/chat/Settings.tsx": {
229
- "file": "assets/Settings-BcsRaEDP.js",
253
+ "file": "assets/Settings-CedRvxBt.js",
230
254
  "name": "Settings",
231
255
  "src": "src/components/chat/Settings.tsx",
232
256
  "isDynamicEntry": true,
@@ -235,11 +259,11 @@
235
259
  "_vendor-react-CCIEwYL0.js",
236
260
  "index.html",
237
261
  "_ErrorBoundary-DLCRl4Er.js",
238
- "_select-DYBAIyVx.js"
262
+ "_select-C9RCHZ9k.js"
239
263
  ]
240
264
  },
241
265
  "src/components/chat/StreamdownMarkdown.tsx": {
242
- "file": "assets/StreamdownMarkdown-CiLy0KJD.js",
266
+ "file": "assets/StreamdownMarkdown-CF2fboDH.js",
243
267
  "name": "StreamdownMarkdown",
244
268
  "src": "src/components/chat/StreamdownMarkdown.tsx",
245
269
  "isDynamicEntry": true,
@@ -248,28 +272,28 @@
248
272
  "_vendor-react-CCIEwYL0.js",
249
273
  "index.html",
250
274
  "_vendor-markdown-CfSBref-.js",
251
- "_vendor-streamdown-BIRX7zKm.js",
275
+ "_vendor-streamdown-D4_Avc1Y.js",
252
276
  "_ErrorBoundary-DLCRl4Er.js"
253
277
  ],
254
278
  "dynamicImports": [
255
- "_vendor-streamdown-code-B6SuuZwa.js",
279
+ "_vendor-streamdown-code--ae1szxf.js",
256
280
  "src/components/chat/StreamdownMermaid.tsx"
257
281
  ]
258
282
  },
259
283
  "src/components/chat/StreamdownMermaid.tsx": {
260
- "file": "assets/StreamdownMermaid-J7jSRtO6.js",
284
+ "file": "assets/StreamdownMermaid-6D5ZRSNf.js",
261
285
  "name": "StreamdownMermaid",
262
286
  "src": "src/components/chat/StreamdownMermaid.tsx",
263
287
  "isDynamicEntry": true,
264
288
  "imports": [
265
289
  "_rolldown-runtime-QTnfLwEv.js",
266
290
  "_vendor-react-CCIEwYL0.js",
267
- "_vendor-mermaid-Da_wWrs4.js",
268
- "_strictConfig-Bf8nyKvx.js"
291
+ "_vendor-mermaid-DtGs8EB7.js",
292
+ "_strictConfig-Cf6ukrta.js"
269
293
  ]
270
294
  },
271
295
  "src/lib/export/renderPdf.tsx": {
272
- "file": "assets/renderPdf-DbvJnEQL.js",
296
+ "file": "assets/renderPdf-SFq6NX0p.js",
273
297
  "name": "renderPdf",
274
298
  "src": "src/lib/export/renderPdf.tsx",
275
299
  "isDynamicEntry": true,
@@ -277,14 +301,14 @@
277
301
  "_rolldown-runtime-QTnfLwEv.js",
278
302
  "_vendor-react-CCIEwYL0.js",
279
303
  "index.html",
280
- "_vendor-mermaid-Da_wWrs4.js",
304
+ "_vendor-mermaid-DtGs8EB7.js",
281
305
  "_vendor-markdown-CfSBref-.js",
282
306
  "_unsupportedIterableToArray-BTCP7Haa.js",
283
- "_strictConfig-Bf8nyKvx.js"
307
+ "_strictConfig-Cf6ukrta.js"
284
308
  ],
285
309
  "dynamicImports": [
286
310
  "src/lib/export/renderPdf.tsx",
287
- "_vendor-mermaid-Da_wWrs4.js",
311
+ "_vendor-mermaid-DtGs8EB7.js",
288
312
  "node_modules/canvg/lib/index.es.js"
289
313
  ]
290
314
  },
@@ -1,2 +1,2 @@
1
- import{t as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./vendor-react-CCIEwYL0.js";import{n}from"./defineProperty-o0OkIQd4.js";import{n as r,r as i,t as a}from"./unsupportedIterableToArray-BTCP7Haa.js";import{n as o,t as s}from"./vendor-highlighter-ClvlgmIK.js";function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}function l(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function u(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,`value`in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function p(e,t){if(t&&(i(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return f(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}var _=e(((e,t)=>{function n(e,t){this.v=e,this.k=t}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),v=e(((e,t)=>{function n(e,r,i,a){var o=Object.defineProperty;try{o({},``,{})}catch{o=0}t.exports=n=function(e,t,r,i){function a(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r:(a(`next`,0),a(`throw`,1),a(`return`,2))},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,r,i,a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),y=e(((e,t)=>{var n=v();function r(){var e,i,a=typeof Symbol==`function`?Symbol:{},o=a.iterator||`@@iterator`,s=a.toStringTag||`@@toStringTag`;function c(t,r,a,o){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return n(c,`_invoke`,function(t,n,r){var a,o,s,c=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,o=0,s=e,f.n=n,l}};function p(t,n){for(o=t,s=n,i=0;!d&&c&&!r&&i<u.length;i++){var r,a=u[i],p=f.p,m=a[2];t>3?(r=m===n)&&(s=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=p&&((r=t<2&&p<a[1])?(o=0,f.v=n,f.n=a[1]):p<m&&(r=t<3||a[0]>n||n>m)&&(a[4]=t,a[5]=n,f.n=m,o=0))}if(r||t>1)return l;throw d=!0,n}return function(r,u,m){if(c>1)throw TypeError(`Generator is already running`);for(d&&u===1&&p(u,m),o=u,s=m;(i=o<2?e:s)||!d;){a||(o?o<3?(o>1&&(f.n=-1),p(o,s)):f.n=s:f.v=s);try{if(c=2,a){if(o||(r=`next`),i=a[r]){if(!(i=i.call(a,s)))throw TypeError(`iterator result is not an object`);if(!i.done)return i;s=i.value,o<2&&(o=0)}else o===1&&(i=a.return)&&i.call(a),o<2&&(s=TypeError(`The iterator does not provide a '`+r+`' method`),o=1);a=e}else if((i=(d=f.n<0)?s:t.call(n,f))!==l)break}catch(t){a=e,o=1,s=t}finally{c=1}}return{value:i,done:d}}}(t,a,o),!0),c}var l={};function u(){}function d(){}function f(){}i=Object.getPrototypeOf;var p=[][o]?i(i([][o]())):(n(i={},o,function(){return this}),i),m=f.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,s,`GeneratorFunction`)),e.prototype=Object.create(m),e}return d.prototype=f,n(m,`constructor`,f),n(f,`constructor`,d),d.displayName=`GeneratorFunction`,n(f,s,`GeneratorFunction`),n(m),n(m,s,`Generator`),n(m,o,function(){return this}),n(m,`toString`,function(){return`[object Generator]`}),(t.exports=r=function(){return{w:c,m:h}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),b=e(((e,t)=>{var n=_(),r=v();function i(e,t){function a(r,i,o,s){try{var c=e[r](i),l=c.value;return l instanceof n?t.resolve(l.v).then(function(e){a(`next`,e,o,s)},function(e){a(`throw`,e,o,s)}):t.resolve(l).then(function(e){c.value=e,o(c)},function(e){return a(`throw`,e,o,s)})}catch(e){s(e)}}var o;this.next||(r(i.prototype),r(i.prototype,typeof Symbol==`function`&&Symbol.asyncIterator||`@asyncIterator`,function(){return this})),r(this,`_invoke`,function(e,n,r){function i(){return new t(function(t,n){a(e,r,t,n)})}return o=o?o.then(i,i):i()},!0)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),x=e(((e,t)=>{var n=y(),r=b();function i(e,t,i,a,o){return new r(n().w(e,t,i,a),o||Promise)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),S=e(((e,t)=>{var n=x();function r(e,t,r,i,a){var o=n(e,t,r,i,a);return o.next().then(function(e){return e.done?e.value:o.next()})}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),C=e(((e,t)=>{function n(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),w=e(((e,t)=>{function n(e){"@babel/helpers - typeof";return t.exports=n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),T=e(((e,t)=>{var n=w().default;function r(e){if(e!=null){var t=e[typeof Symbol==`function`&&Symbol.iterator||`@@iterator`],r=0;if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(n(e)+` is not iterable`)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),E=e(((e,t)=>{var n=_(),r=y(),i=S(),a=x(),o=b(),s=C(),c=T();function l(){var e=r(),u=e.m(l),d=(Object.getPrototypeOf?Object.getPrototypeOf(u):u.__proto__).constructor;function f(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===d||(t.displayName||t.name)===`GeneratorFunction`)}var p={throw:1,return:2,break:3,continue:3};function m(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,i,a){return t.resultName=i,n(r.d,c(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(t.exports=l=function(){return{wrap:function(t,n,r,i){return e.w(m(t),n,r,i&&i.reverse())},isGeneratorFunction:f,mark:e.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:o,async:function(e,t,n,r,o){return(f(t)?a:i)(m(e),t,n,r,o)},keys:s,values:c}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports})),D=e(((e,t)=>{var n=E()();t.exports=n;try{regeneratorRuntime=n}catch{typeof globalThis==`object`?globalThis.regeneratorRuntime=n:Function(`r`,`regeneratorRuntime = r`)(n)}}));function O(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function k(e,t){if(e==null)return{};var n,r,i=O(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function A(e){if(Array.isArray(e))return r(e)}function j(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function M(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{t as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./vendor-react-CCIEwYL0.js";import{n}from"./defineProperty-o0OkIQd4.js";import{n as r,r as i,t as a}from"./unsupportedIterableToArray-BTCP7Haa.js";import{n as o,t as s}from"./vendor-highlighter-CxlwHhxp.js";function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}function l(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function u(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,`value`in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function p(e,t){if(t&&(i(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return f(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}var _=e(((e,t)=>{function n(e,t){this.v=e,this.k=t}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),v=e(((e,t)=>{function n(e,r,i,a){var o=Object.defineProperty;try{o({},``,{})}catch{o=0}t.exports=n=function(e,t,r,i){function a(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r:(a(`next`,0),a(`throw`,1),a(`return`,2))},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,r,i,a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),y=e(((e,t)=>{var n=v();function r(){var e,i,a=typeof Symbol==`function`?Symbol:{},o=a.iterator||`@@iterator`,s=a.toStringTag||`@@toStringTag`;function c(t,r,a,o){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return n(c,`_invoke`,function(t,n,r){var a,o,s,c=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,o=0,s=e,f.n=n,l}};function p(t,n){for(o=t,s=n,i=0;!d&&c&&!r&&i<u.length;i++){var r,a=u[i],p=f.p,m=a[2];t>3?(r=m===n)&&(s=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=p&&((r=t<2&&p<a[1])?(o=0,f.v=n,f.n=a[1]):p<m&&(r=t<3||a[0]>n||n>m)&&(a[4]=t,a[5]=n,f.n=m,o=0))}if(r||t>1)return l;throw d=!0,n}return function(r,u,m){if(c>1)throw TypeError(`Generator is already running`);for(d&&u===1&&p(u,m),o=u,s=m;(i=o<2?e:s)||!d;){a||(o?o<3?(o>1&&(f.n=-1),p(o,s)):f.n=s:f.v=s);try{if(c=2,a){if(o||(r=`next`),i=a[r]){if(!(i=i.call(a,s)))throw TypeError(`iterator result is not an object`);if(!i.done)return i;s=i.value,o<2&&(o=0)}else o===1&&(i=a.return)&&i.call(a),o<2&&(s=TypeError(`The iterator does not provide a '`+r+`' method`),o=1);a=e}else if((i=(d=f.n<0)?s:t.call(n,f))!==l)break}catch(t){a=e,o=1,s=t}finally{c=1}}return{value:i,done:d}}}(t,a,o),!0),c}var l={};function u(){}function d(){}function f(){}i=Object.getPrototypeOf;var p=[][o]?i(i([][o]())):(n(i={},o,function(){return this}),i),m=f.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,s,`GeneratorFunction`)),e.prototype=Object.create(m),e}return d.prototype=f,n(m,`constructor`,f),n(f,`constructor`,d),d.displayName=`GeneratorFunction`,n(f,s,`GeneratorFunction`),n(m),n(m,s,`Generator`),n(m,o,function(){return this}),n(m,`toString`,function(){return`[object Generator]`}),(t.exports=r=function(){return{w:c,m:h}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),b=e(((e,t)=>{var n=_(),r=v();function i(e,t){function a(r,i,o,s){try{var c=e[r](i),l=c.value;return l instanceof n?t.resolve(l.v).then(function(e){a(`next`,e,o,s)},function(e){a(`throw`,e,o,s)}):t.resolve(l).then(function(e){c.value=e,o(c)},function(e){return a(`throw`,e,o,s)})}catch(e){s(e)}}var o;this.next||(r(i.prototype),r(i.prototype,typeof Symbol==`function`&&Symbol.asyncIterator||`@asyncIterator`,function(){return this})),r(this,`_invoke`,function(e,n,r){function i(){return new t(function(t,n){a(e,r,t,n)})}return o=o?o.then(i,i):i()},!0)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),x=e(((e,t)=>{var n=y(),r=b();function i(e,t,i,a,o){return new r(n().w(e,t,i,a),o||Promise)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),S=e(((e,t)=>{var n=x();function r(e,t,r,i,a){var o=n(e,t,r,i,a);return o.next().then(function(e){return e.done?e.value:o.next()})}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),C=e(((e,t)=>{function n(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),w=e(((e,t)=>{function n(e){"@babel/helpers - typeof";return t.exports=n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),T=e(((e,t)=>{var n=w().default;function r(e){if(e!=null){var t=e[typeof Symbol==`function`&&Symbol.iterator||`@@iterator`],r=0;if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(n(e)+` is not iterable`)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),E=e(((e,t)=>{var n=_(),r=y(),i=S(),a=x(),o=b(),s=C(),c=T();function l(){var e=r(),u=e.m(l),d=(Object.getPrototypeOf?Object.getPrototypeOf(u):u.__proto__).constructor;function f(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===d||(t.displayName||t.name)===`GeneratorFunction`)}var p={throw:1,return:2,break:3,continue:3};function m(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,i,a){return t.resultName=i,n(r.d,c(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(t.exports=l=function(){return{wrap:function(t,n,r,i){return e.w(m(t),n,r,i&&i.reverse())},isGeneratorFunction:f,mark:e.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:o,async:function(e,t,n,r,o){return(f(t)?a:i)(m(e),t,n,r,o)},keys:s,values:c}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports})),D=e(((e,t)=>{var n=E()();t.exports=n;try{regeneratorRuntime=n}catch{typeof globalThis==`object`?globalThis.regeneratorRuntime=n:Function(`r`,`regeneratorRuntime = r`)(n)}}));function O(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function k(e,t){if(e==null)return{};var n,r,i=O(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function A(e){if(Array.isArray(e))return r(e)}function j(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function M(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N(e){return A(e)||j(e)||a(e)||M()}var P=t();function F({language:e,value:t}){return(0,P.jsx)(o,{language:e,style:s,PreTag:`div`,customStyle:{margin:0,background:`transparent`,padding:`0.75rem`,whiteSpace:`pre-wrap`,wordBreak:`break-word`,overflowWrap:`anywhere`},wrapLongLines:!0,codeTagProps:{style:{fontSize:`inherit`,whiteSpace:`pre-wrap`}},children:t})}export{m as a,l as c,F as default,g as i,c as l,k as n,p as o,D as r,d as s,N as t};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CodeBlock-dYUQ9iue.js","./rolldown-runtime-QTnfLwEv.js","./vendor-react-CCIEwYL0.js","./defineProperty-o0OkIQd4.js","./unsupportedIterableToArray-BTCP7Haa.js","./vendor-highlighter-ClvlgmIK.js","./index-CjY6eMv8.js","./index-xUf4TnkE.css","./vendor-markdown-CfSBref-.js","./lib-CFLxRXs3.js","./MermaidChart-U1Z5JCRh.js","./vendor-mermaid-Da_wWrs4.js","./strictConfig-Bf8nyKvx.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./vendor-react-CCIEwYL0.js";import{t as r}from"./index-CjY6eMv8.js";import{a as i,d as a,u as o}from"./vendor-markdown-CfSBref-.js";import{i as s}from"./ErrorBoundary-DLCRl4Er.js";var c=e(t(),1),l=n(),u=(0,c.lazy)(()=>r(()=>import(`./CodeBlock-dYUQ9iue.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)),d=(0,c.lazy)(()=>r(()=>import(`./MermaidChart-U1Z5JCRh.js`),__vite__mapDeps([10,1,2,11,6,7,12]),import.meta.url)),f={pre:({children:e})=>(0,l.jsx)(`div`,{className:`my-2 overflow-hidden rounded-lg border text-xs [&>code]:block [&>code]:whitespace-pre-wrap [&>code]:break-words [&>code]:rounded-none [&>code]:bg-transparent [&>code]:p-3 [&>code]:[overflow-wrap:anywhere]`,children:e}),code(e){let{children:t,className:n}=e,r=/language-(\w+)/.exec(n||``),i=String(t).replace(/\n$/,``);return r?r[1]===`mermaid`?(0,l.jsx)(c.Suspense,{fallback:(0,l.jsx)(`pre`,{className:`overflow-x-auto p-3 font-mono text-xs`,children:i}),children:(0,l.jsx)(d,{code:i})}):(0,l.jsx)(c.Suspense,{fallback:(0,l.jsx)(`pre`,{className:`overflow-x-auto p-3 font-mono text-xs`,children:i}),children:(0,l.jsx)(u,{language:r[1],value:i})}):(0,l.jsx)(`code`,{className:`rounded bg-background/70 px-1 py-0.5 text-[0.85em] [overflow-wrap:anywhere]`,children:t})},table:({children:e})=>(0,l.jsx)(`div`,{className:`my-2 w-full overflow-x-auto rounded-lg border`,children:(0,l.jsx)(`table`,{className:`w-full border-collapse text-xs`,children:e})}),thead:({children:e})=>(0,l.jsx)(`thead`,{className:`bg-muted/50`,children:e}),th:({children:e})=>(0,l.jsx)(`th`,{className:`border-b px-3 py-2 text-left align-top font-medium [overflow-wrap:break-word]`,children:e}),td:({children:e})=>(0,l.jsx)(`td`,{className:`border-b border-border/40 px-3 py-2 align-top [overflow-wrap:break-word]`,children:e})};function p({children:e,className:t}){return(0,l.jsx)(`div`,{className:s(`prose prose-sm dark:prose-invert max-w-none [overflow-wrap:anywhere]`,`prose-p:my-2 prose-headings:mt-3 prose-headings:mb-1.5`,`prose-pre:my-0 prose-pre:bg-transparent prose-pre:p-0`,`prose-a:text-primary prose-li:my-0.5`,t),children:(0,l.jsx)(i,{remarkPlugins:[o],rehypePlugins:[a],components:f,children:e})})}var m=(0,c.memo)(p);export{m as Markdown};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CodeBlock-DBfBv5_i.js","./rolldown-runtime-QTnfLwEv.js","./vendor-react-CCIEwYL0.js","./defineProperty-o0OkIQd4.js","./unsupportedIterableToArray-BTCP7Haa.js","./vendor-highlighter-CxlwHhxp.js","./index-CXbnxAY3.js","./index-BsUbje1U.css","./vendor-markdown-CfSBref-.js","./lib-CFLxRXs3.js","./MermaidChart-u-lY5cVd.js","./vendor-mermaid-DtGs8EB7.js","./strictConfig-Cf6ukrta.js"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./vendor-react-CCIEwYL0.js";import{t as r}from"./index-CXbnxAY3.js";import{a as i,d as a,u as o}from"./vendor-markdown-CfSBref-.js";import{i as s}from"./ErrorBoundary-DLCRl4Er.js";var c=e(t(),1),l=n(),u=(0,c.lazy)(()=>r(()=>import(`./CodeBlock-DBfBv5_i.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)),d=(0,c.lazy)(()=>r(()=>import(`./MermaidChart-u-lY5cVd.js`),__vite__mapDeps([10,1,2,11,6,7,12]),import.meta.url)),f={pre:({children:e})=>(0,l.jsx)(`div`,{className:`my-2 overflow-hidden rounded-lg border text-xs [&>code]:block [&>code]:whitespace-pre-wrap [&>code]:break-words [&>code]:rounded-none [&>code]:bg-transparent [&>code]:p-3 [&>code]:[overflow-wrap:anywhere]`,children:e}),code(e){let{children:t,className:n}=e,r=/language-(\w+)/.exec(n||``),i=String(t).replace(/\n$/,``);return r?r[1]===`mermaid`?(0,l.jsx)(c.Suspense,{fallback:(0,l.jsx)(`pre`,{className:`overflow-x-auto p-3 font-mono text-xs`,children:i}),children:(0,l.jsx)(d,{code:i})}):(0,l.jsx)(c.Suspense,{fallback:(0,l.jsx)(`pre`,{className:`overflow-x-auto p-3 font-mono text-xs`,children:i}),children:(0,l.jsx)(u,{language:r[1],value:i})}):(0,l.jsx)(`code`,{className:`rounded bg-background/70 px-1 py-0.5 text-[0.85em] [overflow-wrap:anywhere]`,children:t})},table:({children:e})=>(0,l.jsx)(`div`,{className:`my-2 w-full overflow-x-auto rounded-lg border`,children:(0,l.jsx)(`table`,{className:`w-full border-collapse text-xs`,children:e})}),thead:({children:e})=>(0,l.jsx)(`thead`,{className:`bg-muted/50`,children:e}),th:({children:e})=>(0,l.jsx)(`th`,{className:`border-b px-3 py-2 text-left align-top font-medium [overflow-wrap:break-word]`,children:e}),td:({children:e})=>(0,l.jsx)(`td`,{className:`border-b border-border/40 px-3 py-2 align-top [overflow-wrap:break-word]`,children:e})};function p({children:e,className:t}){return(0,l.jsx)(`div`,{className:s(`prose prose-sm dark:prose-invert max-w-none [overflow-wrap:anywhere]`,`prose-p:my-2 prose-headings:mt-3 prose-headings:mb-1.5`,`prose-pre:my-0 prose-pre:bg-transparent prose-pre:p-0`,`prose-a:text-primary prose-li:my-0.5`,t),children:(0,l.jsx)(i,{remarkPlugins:[o],rehypePlugins:[a],components:f,children:e})})}var m=(0,c.memo)(p);export{m as Markdown};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./vendor-react-CCIEwYL0.js";import{n as r}from"./vendor-mermaid-Da_wWrs4.js";import{n as i}from"./strictConfig-Bf8nyKvx.js";var a=e(t(),1),o=n(),s=!1;function c(){s||=(i(`app`),!0)}var l=0;function u({code:e}){let t=(0,a.useRef)(null),[n,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let n=!1;c();let a=`mmd-${l++}`;return r.render(a,e).then(({svg:e})=>{!n&&t.current&&(t.current.innerHTML=e)}).catch(e=>{n||i(e instanceof Error?e.message:String(e))}),()=>{n=!0}},[e]),n?(0,o.jsx)(`pre`,{className:`overflow-x-auto p-3 font-mono text-xs text-muted-foreground`,children:e}):(0,o.jsx)(`div`,{ref:t,className:`flex justify-center overflow-x-auto py-2 [&_svg]:max-w-full`})}export{u as default};
1
+ import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./vendor-react-CCIEwYL0.js";import{n as r}from"./vendor-mermaid-DtGs8EB7.js";import{n as i}from"./strictConfig-Cf6ukrta.js";var a=e(t(),1),o=n(),s=!1;function c(){s||=(i(`app`),!0)}var l=0;function u({code:e}){let t=(0,a.useRef)(null),[n,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let n=!1;c();let a=`mmd-${l++}`;return r.render(a,e).then(({svg:e})=>{!n&&t.current&&(t.current.innerHTML=e)}).catch(e=>{n||i(e instanceof Error?e.message:String(e))}),()=>{n=!0}},[e]),n?(0,o.jsx)(`pre`,{className:`overflow-x-auto p-3 font-mono text-xs text-muted-foreground`,children:e}):(0,o.jsx)(`div`,{ref:t,className:`flex justify-center overflow-x-auto py-2 [&_svg]:max-w-full`})}export{u as default};