dsh-pdf-workbench 1.3.1 → 1.3.3

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 (55) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +199 -192
  3. package/client.js +1037 -451
  4. package/docs/RELEASE.md +119 -110
  5. package/icon.svg +6 -6
  6. package/package.json +9 -1
  7. package/screenshots.json +8 -8
  8. package/src/client/host-ui-entry.js +11 -0
  9. package/src/client/react-jsx-runtime.cjs +21 -0
  10. package/src/client/viewer.js +80 -80
  11. package/src/host/routes.js +2 -0
  12. package/src/host/update.js +10 -1
  13. package/tools/AGENTS.md +33 -33
  14. package/tools/README.md +138 -138
  15. package/tools/auto_chapters.py +122 -122
  16. package/tools/dsfile.mjs +198 -198
  17. package/tools/export_chapter.py +108 -108
  18. package/tools/export_page.py +91 -91
  19. package/tools/md2overlay.py +200 -200
  20. package/tools/md2tex.py +422 -422
  21. package/tools/node.cmd +3 -0
  22. package/tools/pdf_blocks.py +110 -110
  23. package/tools/pdf_fontsize.py +20 -20
  24. package/tools/pdf_merge.py +15 -15
  25. package/tools/pdf_pagesizes.py +8 -8
  26. package/tools/pdf_raster.py +21 -21
  27. package/tools/pdfkit.py +896 -896
  28. package/tools/py.cmd +3 -0
  29. package/tools/realign_overlay.py +248 -248
  30. package/tools/rebuild_overlay.py +55 -55
  31. package/tools/rename_chapters.py +93 -93
  32. package/tools//350/247/204/350/214/203/00_/345/205/261/345/220/214/347/272/246/345/256/232.md +142 -142
  33. package/tools//350/247/204/350/214/203/01_/346/226/207/346/234/254/346/217/220/345/217/226.md +204 -204
  34. package/tools//350/247/204/350/214/203/02_/347/255/224/347/226/221.md +61 -61
  35. package/tools//350/247/204/350/214/203/03_/344/271/240/351/242/230/350/247/243/347/255/224.md +77 -77
  36. package/tools//350/247/204/350/214/203/api/346/217/220/347/244/272/350/257/215_/346/217/220/345/217/226.md +11 -11
  37. package/vendor/cmaps/LICENSE.txt +36 -36
  38. package/vendor/fonts/excalifont/OFL.txt +98 -98
  39. package/vendor/fonts/zhhand/OFL.txt +99 -99
  40. package/vendor/host-ui.cjs +1719 -0
  41. package/vendor/host-ui.css +799 -0
  42. package/vendor/pdf.min.mjs +28 -28
  43. package/vendor/pdf.worker.min.mjs +28 -28
  44. package/vendor/pdfjs-LICENSE.txt +177 -177
  45. package/vendor/rough/LICENSE +21 -21
  46. package/vendor/rough/rough.mjs +1 -1
  47. package/vendor/wasm/LICENSE_JBIG2 +196 -196
  48. package/vendor/wasm/LICENSE_OPENJPEG +39 -39
  49. package/vendor/wasm/LICENSE_PDFJS_JBIG2 +13 -13
  50. package/vendor/wasm/LICENSE_PDFJS_OPENJPEG +22 -22
  51. package/vendor/wasm/LICENSE_PDFJS_QCMS +19 -19
  52. package/vendor/wasm/LICENSE_QCMS +21 -21
  53. package/vendor/wasm/jbig2_nowasm_fallback.js +15 -15
  54. package/vendor/wasm/openjpeg_nowasm_fallback.js +17 -17
  55. package//345/256/211/350/243/205/344/270/216/345/210/206/345/217/221.md +1 -1
@@ -0,0 +1,799 @@
1
+ /* node_modules/@deepseek-ai/dsh-client-ui-primitives/src/Button.module.css */
2
+ .Button_button {
3
+ box-sizing: border-box;
4
+ display: inline-flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ gap: 4px;
8
+ border: none;
9
+ border-radius: var(--dsw-radius-md);
10
+ cursor: pointer;
11
+ font-size: 14px;
12
+ line-height: 22px;
13
+ color: var(--dsw-alias-label-primary);
14
+ background: transparent;
15
+ padding: 0 14px;
16
+ }
17
+ .Button_button:disabled {
18
+ cursor: not-allowed;
19
+ opacity: 0.4;
20
+ }
21
+ .Button_md {
22
+ height: 36px;
23
+ }
24
+ .Button_sm {
25
+ height: 28px;
26
+ font-size: 12px;
27
+ line-height: 18px;
28
+ padding: 0 10px;
29
+ border-radius: var(--dsw-radius-sm);
30
+ }
31
+ .Button_primary {
32
+ background: var(--dsw-alias-button-primary-fill);
33
+ color: var(--dsw-alias-label-primary-foreground);
34
+ }
35
+ @media (hover: hover) {
36
+ .Button_primary:hover:not(:disabled) {
37
+ background: var(--dsw-alias-button-primary-hover);
38
+ }
39
+ .Button_ghost:hover:not(:disabled) {
40
+ background: var(--dsw-alias-interactive-bg-hover);
41
+ }
42
+ }
43
+ .Button_ghost:active:not(:disabled) {
44
+ background: var(--dsw-alias-interactive-bg-active);
45
+ }
46
+ .Button_outline {
47
+ border: 0.5px solid transparent;
48
+ background: transparent;
49
+ box-shadow: inset 0 0 0 var(--dsh-hairline-width, 0.5px) var(--dsh-button-outline-color, var(--dsw-alias-border-l3));
50
+ }
51
+ @media (hover: hover) {
52
+ .Button_outline:hover:not(:disabled) {
53
+ background: var(--dsw-alias-interactive-bg-hover);
54
+ }
55
+ }
56
+ .Button_toolbar {
57
+ background: var(--dsw-alias-button-tool-bar-fill);
58
+ }
59
+ @media (hover: hover) {
60
+ .Button_toolbar:hover:not(:disabled) {
61
+ background: var(--dsw-alias-button-tool-bar-hover);
62
+ }
63
+ }
64
+ .Button_icon {
65
+ display: inline-flex;
66
+ width: 16px;
67
+ height: 16px;
68
+ align-items: center;
69
+ justify-content: center;
70
+ }
71
+
72
+ /* node_modules/@deepseek-ai/dsh-client-ui-primitives/src/Input.module.css */
73
+ .Input_wrap {
74
+ display: inline-flex;
75
+ align-items: center;
76
+ gap: 6px;
77
+ height: 32px;
78
+ padding: 0 8px;
79
+ border: 0.5px solid var(--dsw-alias-border-l4);
80
+ border-radius: var(--dsw-radius-md);
81
+ background: var(--dsw-alias-bg-layer-1);
82
+ }
83
+ .Input_wrap:focus-within {
84
+ border-color: var(--dsw-alias-state-business-primary);
85
+ }
86
+ .Input_icon {
87
+ display: inline-flex;
88
+ width: 16px;
89
+ height: 16px;
90
+ align-items: center;
91
+ justify-content: center;
92
+ color: var(--dsw-alias-label-tertiary);
93
+ }
94
+ .Input_input {
95
+ flex: 1;
96
+ min-width: 0;
97
+ border: none;
98
+ outline: none;
99
+ background: transparent;
100
+ font-size: 14px;
101
+ line-height: 22px;
102
+ color: var(--dsw-alias-label-primary);
103
+ }
104
+ .Input_input::placeholder {
105
+ color: var(--dsw-alias-label-dimmed);
106
+ }
107
+
108
+ /* node_modules/@deepseek-ai/dsh-client-ui-primitives/src/Modal.module.css */
109
+ .Modal_root {
110
+ pointer-events: auto;
111
+ position: fixed;
112
+ inset: 0;
113
+ z-index: 1000;
114
+ display: flex;
115
+ align-items: center;
116
+ justify-content: center;
117
+ padding: max(24px, var(--dsh-frame-overlay-top, 24px)) 24px;
118
+ }
119
+ .Modal_mask {
120
+ position: absolute;
121
+ inset: var(--dsh-frame-chrome-top, 0px) 0 0;
122
+ backdrop-filter: var(--dsw-mask-blur);
123
+ }
124
+ .Modal_mask::after {
125
+ content: "";
126
+ position: absolute;
127
+ inset: 0;
128
+ background: var(--dsw-alias-bg-mask-1);
129
+ animation: Modal_modalEnter var(--ds-transition-duration) var(--ds-ease-in-out);
130
+ }
131
+ .Modal_dialog {
132
+ box-sizing: border-box;
133
+ position: relative;
134
+ z-index: 1;
135
+ display: flex;
136
+ flex-direction: column;
137
+ gap: 20px;
138
+ width: min(380px, 100%);
139
+ padding: 0 0 24px;
140
+ overflow: hidden;
141
+ border: 0;
142
+ border-radius: var(--dsw-radius-panel);
143
+ background: var(--dsw-alias-bg-layer-2);
144
+ box-shadow: var(--dsw-elevation-prominent);
145
+ animation: Modal_modalEnter var(--ds-transition-duration) var(--ds-ease-in-out);
146
+ }
147
+ @keyframes Modal_modalEnter {
148
+ from {
149
+ opacity: 0;
150
+ }
151
+ to {
152
+ opacity: 1;
153
+ }
154
+ }
155
+ @media (prefers-reduced-motion: reduce) {
156
+ .Modal_mask::after,
157
+ .Modal_dialog {
158
+ animation: none;
159
+ }
160
+ }
161
+ .Modal_dialog:focus {
162
+ outline: none;
163
+ }
164
+ .Modal_content {
165
+ display: flex;
166
+ flex-direction: column;
167
+ width: 100%;
168
+ }
169
+ .Modal_header {
170
+ display: flex;
171
+ align-items: center;
172
+ justify-content: space-between;
173
+ gap: 8px;
174
+ padding: 22px 14px 12px 24px;
175
+ }
176
+ .Modal_title {
177
+ margin: 0;
178
+ font-size: 16px;
179
+ line-height: 24px;
180
+ font-weight: 500;
181
+ color: var(--dsw-alias-label-primary);
182
+ }
183
+ .Modal_warning .Modal_title {
184
+ display: flex;
185
+ align-items: flex-start;
186
+ gap: 8px;
187
+ }
188
+ .Modal_warningIcon {
189
+ flex: none;
190
+ margin-top: 3px;
191
+ color: var(--dsw-alias-state-warn-primary);
192
+ }
193
+ .Modal_warning .Modal_body {
194
+ margin-top: 0;
195
+ }
196
+ .Modal_close {
197
+ flex: none;
198
+ display: inline-flex;
199
+ align-items: center;
200
+ justify-content: center;
201
+ width: 28px;
202
+ height: 28px;
203
+ border: none;
204
+ border-radius: var(--dsw-radius-sm);
205
+ background: transparent;
206
+ cursor: pointer;
207
+ color: var(--dsw-alias-label-secondary);
208
+ }
209
+ @media (hover: hover) {
210
+ .Modal_close:hover {
211
+ background: var(--dsw-alias-interactive-bg-hover);
212
+ }
213
+ }
214
+ .Modal_description {
215
+ margin: 0;
216
+ padding: 0 24px;
217
+ font-size: 14px;
218
+ line-height: 22px;
219
+ font-weight: 400;
220
+ color: var(--dsw-alias-label-primary);
221
+ }
222
+ .Modal_body {
223
+ display: flex;
224
+ flex-direction: column;
225
+ min-width: 0;
226
+ margin-top: 20px;
227
+ padding: 0 24px;
228
+ }
229
+ .Modal_footer {
230
+ display: flex;
231
+ align-items: center;
232
+ justify-content: flex-end;
233
+ gap: 8px;
234
+ padding: 0 24px;
235
+ }
236
+
237
+ /* node_modules/@deepseek-ai/dsh-client-ui-primitives/src/ShortcutKeys.module.css */
238
+ .ShortcutKeys_keys {
239
+ display: inline-flex;
240
+ flex: none;
241
+ align-items: center;
242
+ gap: 3px;
243
+ color: var(--dsw-alias-label-tertiary);
244
+ font-size: 12px;
245
+ line-height: 16px;
246
+ white-space: nowrap;
247
+ }
248
+ .ShortcutKeys_key {
249
+ box-sizing: border-box;
250
+ display: inline-flex;
251
+ align-items: center;
252
+ justify-content: center;
253
+ font: inherit;
254
+ }
255
+ .ShortcutKeys_tooltip {
256
+ color: inherit;
257
+ font-size: 11px;
258
+ line-height: 14px;
259
+ gap: 2px;
260
+ }
261
+ .ShortcutKeys_tooltip .ShortcutKeys_key {
262
+ min-width: 16px;
263
+ height: 16px;
264
+ padding: 0 2px;
265
+ border-radius: 4px;
266
+ border: 0;
267
+ background: var(--dsw-alias-tooltip-key-bg);
268
+ }
269
+ .ShortcutKeys_separator {
270
+ font: inherit;
271
+ }
272
+ .ShortcutKeys_joined {
273
+ box-sizing: border-box;
274
+ height: 16px;
275
+ padding: 0 4px;
276
+ border-radius: 4px;
277
+ background: var(--dsw-alias-tooltip-key-bg);
278
+ }
279
+ .ShortcutKeys_joined .ShortcutKeys_key {
280
+ min-width: 0;
281
+ height: auto;
282
+ padding: 0;
283
+ border: 0;
284
+ background: transparent;
285
+ }
286
+
287
+ /* node_modules/@deepseek-ai/dsh-client-ui-primitives/src/Tooltip.module.css */
288
+ .Tooltip_bubble {
289
+ display: inline-flex;
290
+ align-items: safe center;
291
+ gap: 8px;
292
+ position: fixed;
293
+ z-index: 100;
294
+ width: max-content;
295
+ box-sizing: border-box;
296
+ max-width: min(50vw, calc(100vw - 24px));
297
+ max-height: calc(100vh - 24px);
298
+ overflow: auto;
299
+ padding: 3px 7px;
300
+ border-radius: var(--dsw-radius-sm);
301
+ background: var(--dsw-alias-tooltip-bg);
302
+ color: var(--dsw-alias-tooltip-label);
303
+ font-size: 13px;
304
+ line-height: 20px;
305
+ white-space: pre-line;
306
+ overflow-wrap: break-word;
307
+ pointer-events: none;
308
+ animation: Tooltip_tooltip-in 150ms var(--ds-ease-in-out);
309
+ }
310
+ .Tooltip_bubble[data-portal] {
311
+ z-index: 1100;
312
+ }
313
+ :where(html[data-platform=darwin]) .Tooltip_bubble {
314
+ -webkit-app-region: no-drag;
315
+ }
316
+ .Tooltip_bubble[data-pinned] {
317
+ pointer-events: auto;
318
+ }
319
+ .Tooltip_label {
320
+ min-width: 0;
321
+ }
322
+ .Tooltip_bubble[data-has-shortcut] {
323
+ padding-inline-end: 5px;
324
+ }
325
+ .Tooltip_bubble[data-has-shortcut]:not(:has(.Tooltip_label)) {
326
+ padding: 3px;
327
+ }
328
+ .Tooltip_bubble[data-side=right],
329
+ .Tooltip_bubble[data-side=left] {
330
+ transform: translateY(-50%);
331
+ }
332
+ .Tooltip_bubble[data-side=bottom] {
333
+ transform: translateX(-50%);
334
+ }
335
+ .Tooltip_bubble[data-side=top] {
336
+ transform: translate(-50%, -100%);
337
+ }
338
+ .Tooltip_bubble[data-side=bottom][data-align=end] {
339
+ transform: translateX(-100%);
340
+ }
341
+ .Tooltip_bubble[data-side=top][data-align=end] {
342
+ transform: translate(-100%, -100%);
343
+ }
344
+ @keyframes Tooltip_tooltip-in {
345
+ from {
346
+ opacity: 0;
347
+ }
348
+ }
349
+ @media (prefers-reduced-motion: reduce) {
350
+ .Tooltip_bubble {
351
+ animation: none;
352
+ }
353
+ }
354
+
355
+ /* node_modules/@deepseek-ai/dsh-client-ui-primitives/src/Menu.module.css */
356
+ .Menu_root {
357
+ position: relative;
358
+ display: inline-flex;
359
+ }
360
+ .Menu_list,
361
+ .Menu_submenu {
362
+ box-sizing: border-box;
363
+ padding: 4px;
364
+ display: flex;
365
+ flex-direction: column;
366
+ gap: 0;
367
+ border: 0;
368
+ --dsw-elevation-stroke-color: var(--dsw-alias-border-l1);
369
+ box-shadow: var(--dsw-elevation-prominent);
370
+ --dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2);
371
+ --dsh-scrollbar-thumb-hover: var(--dsw-alias-scrollbar-hover-l2);
372
+ }
373
+ .Menu_list {
374
+ position: absolute;
375
+ top: calc(100% + 4px);
376
+ left: 0;
377
+ z-index: 100;
378
+ min-width: min(144px, calc(100vw - 24px));
379
+ max-width: min(360px, calc(100vw - 24px));
380
+ }
381
+ .Menu_list[data-context-menu]:not(:has([role=menuitem])) {
382
+ display: none;
383
+ }
384
+ .Menu_portal {
385
+ --dsh-menu-window-top: max(12px, var(--dsh-frame-overlay-top, 12px));
386
+ position: fixed;
387
+ position-area: none;
388
+ top: max(var(--dsh-menu-window-top), calc(anchor(bottom) + 4px));
389
+ bottom: 12px;
390
+ left: max(12px, anchor(left));
391
+ right: 12px;
392
+ justify-self: start;
393
+ align-self: start;
394
+ margin: 0;
395
+ position-try-fallbacks:
396
+ --dsh-menu-wide-below,
397
+ --dsh-menu-above,
398
+ --dsh-menu-wide-above,
399
+ --dsh-menu-window,
400
+ --dsh-menu-wide-window;
401
+ width: max-content;
402
+ height: fit-content;
403
+ z-index: 1100;
404
+ }
405
+ .Menu_portal[data-anchor-side=top] {
406
+ top: var(--dsh-menu-window-top);
407
+ bottom: max(12px, calc(anchor(top) + 4px));
408
+ align-self: end;
409
+ position-try-fallbacks:
410
+ --dsh-menu-wide-above,
411
+ --dsh-menu-below,
412
+ --dsh-menu-wide-below,
413
+ --dsh-menu-window,
414
+ --dsh-menu-wide-window;
415
+ }
416
+ .Menu_portal[data-anchor-side=right] {
417
+ top: max(var(--dsh-menu-window-top), anchor(top));
418
+ bottom: 12px;
419
+ left: max(12px, calc(anchor(right) + 4px));
420
+ right: 12px;
421
+ position-try-fallbacks:
422
+ --dsh-menu-left,
423
+ --dsh-menu-wide-below,
424
+ --dsh-menu-window,
425
+ --dsh-menu-wide-window;
426
+ }
427
+ .Menu_portal[data-anchor-align=end]:not([data-anchor-side=right]) {
428
+ left: 12px;
429
+ right: max(12px, anchor(right));
430
+ justify-self: end;
431
+ --dsh-menu-wide-align: start;
432
+ }
433
+ .Menu_portal[data-match-anchor-width] {
434
+ min-width: min(anchor-size(width), calc(100vw - 24px));
435
+ }
436
+ .Menu_portal[data-context-menu] {
437
+ --dsh-menu-window-top: 12px;
438
+ }
439
+ @position-try --dsh-menu-below {
440
+ top: max(var(--dsh-menu-window-top), calc(anchor(bottom) + 4px));
441
+ bottom: 12px;
442
+ align-self: start;
443
+ }
444
+ @position-try --dsh-menu-above {
445
+ top: var(--dsh-menu-window-top);
446
+ bottom: max(12px, calc(anchor(top) + 4px));
447
+ align-self: end;
448
+ }
449
+ @position-try --dsh-menu-wide-below {
450
+ top: max(var(--dsh-menu-window-top), calc(anchor(bottom) + 4px));
451
+ bottom: 12px;
452
+ left: 12px;
453
+ right: 12px;
454
+ align-self: start;
455
+ justify-self: safe var(--dsh-menu-wide-align, end);
456
+ }
457
+ @position-try --dsh-menu-wide-above {
458
+ top: var(--dsh-menu-window-top);
459
+ bottom: max(12px, calc(anchor(top) + 4px));
460
+ left: 12px;
461
+ right: 12px;
462
+ align-self: end;
463
+ justify-self: safe var(--dsh-menu-wide-align, end);
464
+ }
465
+ @position-try --dsh-menu-left {
466
+ left: 12px;
467
+ right: max(12px, calc(anchor(left) + 4px));
468
+ justify-self: end;
469
+ }
470
+ @position-try --dsh-menu-window {
471
+ top: var(--dsh-menu-window-top);
472
+ bottom: 12px;
473
+ align-self: safe start;
474
+ }
475
+ @position-try --dsh-menu-wide-window {
476
+ top: var(--dsh-menu-window-top);
477
+ left: 12px;
478
+ right: 12px;
479
+ bottom: 12px;
480
+ align-self: safe start;
481
+ justify-self: safe var(--dsh-menu-wide-align, end);
482
+ }
483
+ .Menu_sideTop {
484
+ top: auto;
485
+ bottom: calc(100% + 4px);
486
+ }
487
+ .Menu_alignEnd {
488
+ left: auto;
489
+ right: 0;
490
+ }
491
+ .Menu_scrollable {
492
+ max-height: calc(100vh - 12px - max(12px, var(--dsh-frame-overlay-top, 12px)));
493
+ max-height: calc(100dvh - 12px - max(12px, var(--dsh-frame-overlay-top, 12px)));
494
+ }
495
+ .Menu_viewport {
496
+ display: flex;
497
+ flex-direction: column;
498
+ min-height: 0;
499
+ }
500
+ .Menu_scrollable .Menu_viewport {
501
+ overflow-y: auto;
502
+ }
503
+ .Menu_footer {
504
+ flex: none;
505
+ display: flex;
506
+ flex-direction: column;
507
+ margin-top: 3px;
508
+ padding-top: 3px;
509
+ border-top: 0.5px solid var(--dsw-alias-border-l2);
510
+ }
511
+ .Menu_list[data-context-menu] .Menu_footer:has(> .Menu_separator:first-child) {
512
+ margin-top: 0;
513
+ padding-top: 0;
514
+ border-top: none;
515
+ }
516
+ .Menu_itemWrap {
517
+ position: relative;
518
+ }
519
+ .Menu_item {
520
+ display: flex;
521
+ align-items: center;
522
+ gap: 6px;
523
+ width: 100%;
524
+ min-height: 34px;
525
+ padding: 6px 8px;
526
+ border: none;
527
+ border-radius: var(--dsw-radius-md);
528
+ background: transparent;
529
+ cursor: pointer;
530
+ font-size: 13px;
531
+ line-height: 20px;
532
+ color: var(--dsw-alias-label-primary);
533
+ text-align: left;
534
+ }
535
+ @media (hover: hover) {
536
+ .Menu_item:hover:not(:disabled):not([aria-disabled=true]) {
537
+ background: var(--dsw-alias-interactive-bg-hover);
538
+ }
539
+ }
540
+ .Menu_item:focus-visible:not(:disabled) {
541
+ background: var(--dsw-alias-interactive-bg-hover);
542
+ outline: none;
543
+ }
544
+ .Menu_denseList .Menu_item {
545
+ min-height: 30px;
546
+ padding-block: 4px;
547
+ }
548
+ .Menu_denseList .Menu_label {
549
+ padding-block: 3px;
550
+ }
551
+ .Menu_list.Menu_compactList,
552
+ .Menu_submenu.Menu_compactList {
553
+ min-width: min(156px, calc(100vw - 24px));
554
+ padding: 4px;
555
+ }
556
+ .Menu_compactList .Menu_item {
557
+ min-height: 24px;
558
+ gap: 5px;
559
+ padding: 2px 6px;
560
+ border-radius: var(--dsw-radius-sm);
561
+ font-size: 11px;
562
+ line-height: 17px;
563
+ }
564
+ .Menu_compactList .Menu_itemIcon {
565
+ width: 12px;
566
+ height: 12px;
567
+ }
568
+ .Menu_compactList .Menu_separator {
569
+ margin: 2px 6px;
570
+ }
571
+ .Menu_compactList .Menu_label {
572
+ padding: 3px 6px;
573
+ font-size: 10px;
574
+ line-height: 15px;
575
+ }
576
+ .Menu_item:disabled,
577
+ .Menu_item[aria-disabled=true] {
578
+ opacity: 0.4;
579
+ cursor: not-allowed;
580
+ }
581
+ .Menu_itemIcon {
582
+ display: inline-flex;
583
+ flex: none;
584
+ width: 14px;
585
+ height: 14px;
586
+ align-items: center;
587
+ justify-content: center;
588
+ color: var(--dsw-alias-menu-icon);
589
+ }
590
+ .Menu_itemIcon svg,
591
+ .Menu_check {
592
+ width: 14px;
593
+ height: 14px;
594
+ }
595
+ .Menu_compactList .Menu_itemIcon svg,
596
+ .Menu_compactList .Menu_check {
597
+ width: 12px;
598
+ height: 12px;
599
+ }
600
+ .Menu_itemLabel {
601
+ flex: 1;
602
+ min-width: 0;
603
+ overflow: hidden;
604
+ text-overflow: ellipsis;
605
+ white-space: nowrap;
606
+ }
607
+ .Menu_shortcut {
608
+ flex: none;
609
+ margin-inline-start: auto;
610
+ }
611
+ .Menu_shortcut .Menu_shortcutKeys {
612
+ color: var(--dsw-alias-label-caption);
613
+ font-size: 11px;
614
+ line-height: 16px;
615
+ }
616
+ @media (pointer: coarse) {
617
+ html:not([data-input-modality=keyboard]) .Menu_shortcut {
618
+ display: none;
619
+ }
620
+ }
621
+ .Menu_check {
622
+ flex: none;
623
+ color: var(--dsw-alias-label-primary);
624
+ }
625
+ .Menu_selected {
626
+ background: transparent;
627
+ }
628
+ .Menu_selectedFill {
629
+ background: var(--dsw-alias-interactive-bg-hover);
630
+ }
631
+ .Menu_danger {
632
+ color: var(--dsw-alias-state-error-primary);
633
+ }
634
+ .Menu_danger .Menu_itemIcon {
635
+ color: var(--dsw-alias-state-error-primary);
636
+ }
637
+ @media (hover: hover) {
638
+ .Menu_danger:hover:not(:disabled):not([aria-disabled=true]) {
639
+ background: var(--dsw-alias-interactive-bg-hover-danger);
640
+ }
641
+ }
642
+ .Menu_danger:focus-visible:not(:disabled) {
643
+ background: var(--dsw-alias-interactive-bg-hover-danger);
644
+ outline: none;
645
+ }
646
+ .Menu_label {
647
+ padding: 6px 8px;
648
+ font-size: 11px;
649
+ line-height: 15px;
650
+ color: var(--dsw-alias-label-tertiary);
651
+ }
652
+ .Menu_separator {
653
+ height: 0.5px;
654
+ margin: 3px 8px;
655
+ background: var(--dsw-alias-border-l2);
656
+ }
657
+ .Menu_separator + .Menu_separator,
658
+ .Menu_separator + .Menu_itemWrap > .Menu_separator:first-child,
659
+ .Menu_itemWrap:first-child > .Menu_separator:first-child {
660
+ display: none;
661
+ }
662
+ .Menu_list[data-context-menu] .Menu_viewport > .Menu_itemWrap ~ [data-slot] .Menu_itemWrap:first-child > .Menu_separator:first-child {
663
+ display: block;
664
+ }
665
+ .Menu_submenuAnchor {
666
+ position: absolute;
667
+ inset: 0;
668
+ pointer-events: none;
669
+ }
670
+ .Menu_submenu {
671
+ --dsh-menu-window-top: max(12px, var(--dsh-frame-overlay-top, 12px));
672
+ position: fixed;
673
+ position-anchor: var(--dsh-submenu-parent);
674
+ position-visibility: always;
675
+ margin: 0;
676
+ z-index: 1101;
677
+ width: max-content;
678
+ min-width: min(163px, calc(100vw - 24px));
679
+ max-width: min(360px, calc(100vw - 24px));
680
+ max-height: calc(100dvh - 12px - var(--dsh-menu-window-top));
681
+ }
682
+ .Menu_submenu[data-contextual] {
683
+ --dsh-menu-window-top: 12px;
684
+ }
685
+ .Menu_submenu[data-submenu-layout=side] {
686
+ top: max(var(--dsh-menu-window-top), min(calc(anchor(top) + var(--dsh-submenu-row-offset, 0px)), calc(100dvh - 12px - var(--dsh-submenu-height, 0px))));
687
+ left: calc(anchor(right) + 4px);
688
+ right: 12px;
689
+ justify-self: start;
690
+ height: max-content;
691
+ position-try-fallbacks: --dsh-submenu-left;
692
+ }
693
+ @position-try --dsh-submenu-left {
694
+ left: 12px;
695
+ right: calc(anchor(left) + 4px);
696
+ justify-self: end;
697
+ }
698
+ .Menu_submenu[data-submenu-layout=page] {
699
+ top: max(var(--dsh-menu-window-top), anchor(top));
700
+ bottom: 12px;
701
+ left: max(12px, anchor(left));
702
+ right: 12px;
703
+ align-self: start;
704
+ justify-self: start;
705
+ height: fit-content;
706
+ min-width: min(anchor-size(width), calc(100vw - 24px));
707
+ max-width: calc(100vw - 24px);
708
+ }
709
+ .Menu_parentPage {
710
+ visibility: hidden;
711
+ pointer-events: none;
712
+ }
713
+ .Menu_submenu > .Menu_item {
714
+ flex: none;
715
+ }
716
+ .Menu_list[data-menu-phase=dismiss],
717
+ .Menu_list[data-menu-phase=replace] {
718
+ pointer-events: none;
719
+ }
720
+ .Menu_list[data-context-menu].Menu_scrollable {
721
+ max-height: calc(100vh - 24px);
722
+ max-height: calc(100dvh - 24px);
723
+ }
724
+
725
+ /* node_modules/@deepseek-ai/dsh-client-ui-primitives/src/MenuSurface.module.css */
726
+ .MenuSurface_surface,
727
+ .MenuSurface_backing {
728
+ border-radius: var(--dsw-radius-lg);
729
+ }
730
+ .MenuSurface_compact {
731
+ border-radius: var(--dsw-radius-md);
732
+ }
733
+ :where(.MenuSurface_surface) {
734
+ position: relative;
735
+ }
736
+ .MenuSurface_surface {
737
+ anchor-name: var(--dsh-menu-anchor);
738
+ isolation: isolate;
739
+ }
740
+ .MenuSurface_material {
741
+ position: absolute;
742
+ inset: 0;
743
+ z-index: -1;
744
+ border-radius: inherit;
745
+ background: var(--dsw-menu-surface-fill);
746
+ backdrop-filter: var(--dsw-menu-backdrop-filter);
747
+ pointer-events: none;
748
+ }
749
+ .MenuSurface_backing {
750
+ display: none;
751
+ }
752
+ html[data-platform=darwin] .MenuSurface_backing {
753
+ display: block;
754
+ position: fixed;
755
+ position-anchor: var(--dsh-menu-anchor);
756
+ top: anchor(top);
757
+ left: anchor(left);
758
+ width: anchor-size(width, 0px);
759
+ height: anchor-size(height, 0px);
760
+ z-index: -1;
761
+ background: var(--dsw-alias-bg-base);
762
+ pointer-events: none;
763
+ }
764
+ .MenuSurface_surface[data-menu-phase=enter] > *,
765
+ .MenuSurface_backing[data-menu-phase=enter] {
766
+ animation: MenuSurface_dsh-context-menu-in var(--dsh-menu-enter) ease-out;
767
+ }
768
+ .MenuSurface_surface[data-menu-phase=dismiss] > *,
769
+ .MenuSurface_backing[data-menu-phase=dismiss],
770
+ .MenuSurface_surface[data-menu-phase=replace] > *,
771
+ .MenuSurface_backing[data-menu-phase=replace] {
772
+ animation: MenuSurface_dsh-context-menu-out var(--dsh-menu-dismiss) ease-in both;
773
+ }
774
+ .MenuSurface_surface[data-menu-phase=replace] > *,
775
+ .MenuSurface_backing[data-menu-phase=replace] {
776
+ animation-duration: var(--dsh-menu-replace);
777
+ }
778
+ @keyframes MenuSurface_dsh-context-menu-in {
779
+ from {
780
+ opacity: 0;
781
+ }
782
+ to {
783
+ opacity: 1;
784
+ }
785
+ }
786
+ @keyframes MenuSurface_dsh-context-menu-out {
787
+ from {
788
+ opacity: 1;
789
+ }
790
+ to {
791
+ opacity: 0;
792
+ }
793
+ }
794
+ @media (prefers-reduced-motion: reduce) {
795
+ .MenuSurface_surface[data-menu-phase] > *,
796
+ .MenuSurface_backing[data-menu-phase] {
797
+ animation-duration: 0ms;
798
+ }
799
+ }