rspress-plugin-api-extractor 0.1.0 → 0.1.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.
@@ -0,0 +1,1016 @@
1
+ :root {
2
+ --api-color-bg: #f6f8fa;
3
+ --api-color-bg-secondary: #fff;
4
+ --api-color-text: #24292f;
5
+ --api-color-text-secondary: #57606a;
6
+ --api-color-border: #e1e4e8;
7
+ --api-color-border-secondary: #d0d7de;
8
+ --api-color-border-hover: #b1b8c0;
9
+ --api-color-hover-bg: #f3f4f6;
10
+ --api-color-active-bg: #e5e7eb;
11
+ --api-color-link: #0969da;
12
+ --api-color-link-hover: #0550ae;
13
+ --api-color-code-bg: #afb8c133;
14
+ --api-spacing-xs: .375rem;
15
+ --api-spacing-sm: .5rem;
16
+ --api-spacing-md: .75rem;
17
+ --api-spacing-lg: 1rem;
18
+ --api-spacing-xl: 1.5rem;
19
+ --api-border-radius: 6px;
20
+ --api-border-radius-sm: 3px;
21
+ --api-border-radius-md: 4px;
22
+ --api-font-size-sm: .875rem;
23
+ --api-font-size-base: .9375rem;
24
+ --api-font-size-md: 1rem;
25
+ --api-font-size-lg: 1.2rem;
26
+ --api-line-height-base: 1.5;
27
+ --api-line-height-button: 1.25rem;
28
+ --api-transition-fast: .15s ease;
29
+ --api-transition-base: .2s ease;
30
+ --api-transition-slow: .3s ease;
31
+ --api-shadow-sm: 0 1px 2px #0000000d;
32
+ --api-shadow-md: 0 4px 6px #0000001a;
33
+ --api-z-index-dropdown: 40;
34
+ --api-z-index-tooltip: 999;
35
+ --api-z-index-popup: 1000;
36
+ --api-breakpoint-mobile: 768px;
37
+ }
38
+
39
+ .api-doc-code .shiki, .api-doc-code .shiki span {
40
+ color: var(--api-shiki-light);
41
+ background-color: var(--api-shiki-light-bg, inherit);
42
+ font-style: var(--api-shiki-light-font-style, inherit);
43
+ font-weight: var(--api-shiki-light-font-weight, inherit);
44
+ -webkit-text-decoration: var(--api-shiki-light-text-decoration, inherit);
45
+ text-decoration: var(--api-shiki-light-text-decoration, inherit);
46
+ }
47
+
48
+ html.rp-dark .api-doc-code .shiki, html.rp-dark .api-doc-code .shiki span {
49
+ color: var(--api-shiki-dark);
50
+ background-color: var(--api-shiki-dark-bg, inherit);
51
+ font-style: var(--api-shiki-dark-font-style, inherit);
52
+ font-weight: var(--api-shiki-dark-font-weight, inherit);
53
+ -webkit-text-decoration: var(--api-shiki-dark-text-decoration, inherit);
54
+ text-decoration: var(--api-shiki-dark-text-decoration, inherit);
55
+ }
56
+
57
+ html.rp-dark {
58
+ --api-color-bg: #161b22;
59
+ --api-color-bg-secondary: #21262d;
60
+ --api-color-text: #e6edf3;
61
+ --api-color-text-secondary: #8b949e;
62
+ --api-color-border: #30363d;
63
+ --api-color-border-hover: #8b949e;
64
+ --api-color-hover-bg: #30363d;
65
+ --api-color-active-bg: #161b22;
66
+ --api-color-link: #58a6ff;
67
+ --api-color-link-hover: #79c0ff;
68
+ --api-color-code-bg: #6e768166;
69
+ }
70
+
71
+ html.rp-dark .rp-social-links__item {
72
+ background-color: var(--api-color-bg-secondary);
73
+ border-color: var(--api-color-border);
74
+ color: var(--api-color-text);
75
+ }
76
+
77
+ html.rp-dark .rp-social-links__item:hover {
78
+ background-color: var(--api-color-hover-bg);
79
+ border-color: var(--api-color-border-hover);
80
+ }
81
+
82
+ html.rp-dark .rp-social-links__item:active {
83
+ background-color: var(--api-color-active-bg);
84
+ }
85
+
86
+ :root {
87
+ --twoslash-border-color: #8888;
88
+ --twoslash-underline-color: currentColor;
89
+ --twoslash-highlighted-border: #c37d0d50;
90
+ --twoslash-highlighted-bg: #c37d0d20;
91
+ --twoslash-popup-bg: var(--api-shiki-light-bg, #f8f8f8);
92
+ --twoslash-popup-color: var(--api-shiki-light, inherit);
93
+ --twoslash-popup-shadow: #00000014 0px 1px 4px;
94
+ --twoslash-docs-color: #888;
95
+ --twoslash-docs-font: sans-serif;
96
+ --twoslash-code-font: inherit;
97
+ --twoslash-code-font-size: 1em;
98
+ --twoslash-matched-color: inherit;
99
+ --twoslash-unmatched-color: #888;
100
+ --twoslash-cursor-color: #8888;
101
+ --twoslash-error-color: #d45656;
102
+ --twoslash-error-bg: #d4565620;
103
+ --twoslash-warn-color: #c37d0d;
104
+ --twoslash-warn-bg: #c37d0d20;
105
+ --twoslash-tag-color: #3772cf;
106
+ --twoslash-tag-bg: #3772cf20;
107
+ --twoslash-tag-warn-color: var(--twoslash-warn-color);
108
+ --twoslash-tag-warn-bg: var(--twoslash-warn-bg);
109
+ --twoslash-tag-annotate-color: #1ba673;
110
+ --twoslash-tag-annotate-bg: #1ba67320;
111
+ }
112
+
113
+ html.rp-dark {
114
+ --twoslash-popup-bg: var(--api-shiki-dark-bg, #1e1e1e);
115
+ --twoslash-popup-color: var(--api-shiki-dark, inherit);
116
+ --twoslash-popup-shadow: #0000004d 0px 2px 8px;
117
+ --twoslash-docs-color: #aaa;
118
+ --twoslash-unmatched-color: #aaa;
119
+ --twoslash-border-color: #555;
120
+ }
121
+
122
+ @media (prefers-reduced-motion: reduce) {
123
+ .twoslash * {
124
+ transition: none;
125
+ }
126
+ }
127
+
128
+ .twoslash {
129
+ & .twoslash-popup-container {
130
+ background: var(--twoslash-popup-bg);
131
+ color: var(--twoslash-popup-color);
132
+ border: 1px solid var(--twoslash-border-color);
133
+ z-index: 1000;
134
+ -webkit-user-select: none;
135
+ user-select: none;
136
+ text-align: left;
137
+ box-shadow: var(--twoslash-popup-shadow);
138
+ white-space: normal;
139
+ overflow-wrap: normal;
140
+ word-break: normal;
141
+ opacity: 0;
142
+ pointer-events: none;
143
+ border-width: 0;
144
+ border-radius: 4px;
145
+ flex-direction: column;
146
+ width: 0;
147
+ height: 0;
148
+ transition: opacity .3s, width 0s .3s, height 0s .3s;
149
+ display: flex;
150
+ position: absolute;
151
+ left: 0;
152
+ overflow: hidden;
153
+ transform: translateY(1.1em);
154
+
155
+ &:hover {
156
+ -webkit-user-select: auto;
157
+ user-select: auto;
158
+ }
159
+ }
160
+
161
+ & .twoslash-popup-code, & .twoslash-popup-error, & .twoslash-popup-docs {
162
+ padding: 6px 8px;
163
+ }
164
+
165
+ & .twoslash-popup-code {
166
+ font-family: var(--twoslash-code-font);
167
+ font-size: var(--twoslash-code-font-size);
168
+ white-space: pre-wrap;
169
+ overflow-wrap: break-word;
170
+ display: block;
171
+ }
172
+
173
+ & .twoslash-popup-docs {
174
+ color: var(--twoslash-docs-color);
175
+ font-family: var(--twoslash-docs-font);
176
+ border-top: 1px solid var(--twoslash-border-color);
177
+ font-size: .8em;
178
+ }
179
+
180
+ & .twoslash-popup-error {
181
+ color: var(--twoslash-error-color);
182
+ background-color: var(--twoslash-error-bg);
183
+ font-family: var(--twoslash-docs-font);
184
+ font-size: .8em;
185
+ }
186
+
187
+ & .twoslash-popup-docs-tags {
188
+ font-family: var(--twoslash-docs-font);
189
+ flex-direction: column;
190
+ display: flex;
191
+ }
192
+
193
+ & .twoslash-popup-docs-tags, & .twoslash-popup-docs-tag-name {
194
+ margin-right: .5em;
195
+ }
196
+
197
+ & .twoslash-popup-docs-tag-name {
198
+ font-family: var(--twoslash-code-font);
199
+ }
200
+
201
+ & .twoslash-popup-arrow {
202
+ border-top: 1px solid var(--twoslash-border-color);
203
+ border-right: 1px solid var(--twoslash-border-color);
204
+ background: var(--twoslash-popup-bg);
205
+ pointer-events: none;
206
+ width: 6px;
207
+ height: 6px;
208
+ position: absolute;
209
+ top: -4px;
210
+ left: 1em;
211
+ transform: rotate(-45deg);
212
+ }
213
+
214
+ & .twoslash-hover {
215
+ border-bottom: 1px dotted #0000;
216
+ transition: border-color .3s;
217
+ position: relative;
218
+ }
219
+
220
+ &:hover .twoslash-hover:hover {
221
+ border-color: var(--twoslash-underline-color);
222
+ }
223
+
224
+ & .twoslash-hover:hover .twoslash-popup-container, & .twoslash-error-hover:hover .twoslash-popup-container, & .twoslash-query-persisted .twoslash-popup-container, & .twoslash-query-line .twoslash-popup-container {
225
+ opacity: 1;
226
+ pointer-events: auto;
227
+ width: max-content;
228
+ max-width: var(--popup-max-width, 75cqi);
229
+ min-width: 200px;
230
+ height: auto;
231
+ left: var(--popup-left, 0px);
232
+ top: var(--popup-top, 0px);
233
+ border-width: 1px;
234
+ transition: opacity .3s;
235
+ position: fixed;
236
+ overflow: visible;
237
+ transform: none;
238
+ }
239
+
240
+ & .twoslash-query-persisted .twoslash-popup-container {
241
+ z-index: 999;
242
+ position: absolute;
243
+ left: 0;
244
+ transform: translateY(1.5em);
245
+ }
246
+
247
+ & .twoslash-query-line .twoslash-popup-container {
248
+ margin-bottom: 1.4em;
249
+ position: relative;
250
+ top: auto;
251
+ left: auto;
252
+ transform: translateY(.6em);
253
+ }
254
+
255
+ & .twoslash-error-line {
256
+ background-color: var(--twoslash-error-bg);
257
+ border-left: 3px solid var(--twoslash-error-color);
258
+ color: var(--twoslash-error-color);
259
+ width: max-content;
260
+ min-width: 100%;
261
+ margin: .2em 0;
262
+ padding: 6px 12px;
263
+ position: relative;
264
+
265
+ &.twoslash-error-level-warning {
266
+ background-color: var(--twoslash-warn-bg);
267
+ border-left: 3px solid var(--twoslash-warn-color);
268
+ color: var(--twoslash-warn-color);
269
+ }
270
+ }
271
+
272
+ & .twoslash-error {
273
+ background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%206%203%27%20enable-background%3D%27new%200%200%206%203%27%20height%3D%273%27%20width%3D%276%27%3E%3Cg%20fill%3D%27%23c94824%27%3E%3Cpolygon%20points%3D%275.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0%27%2F%3E%3Cpolygon%20points%3D%274%2C0%206%2C2%206%2C0.6%205.4%2C0%27%2F%3E%3Cpolygon%20points%3D%270%2C2%201%2C3%202.4%2C3%200%2C0.6%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 0 100% repeat-x;
274
+ padding-bottom: 2px;
275
+
276
+ &.twoslash-error-level-warning {
277
+ background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%206%203%27%20enable-background%3D%27new%200%200%206%203%27%20height%3D%273%27%20width%3D%276%27%3E%3Cg%20fill%3D%27%23c37d0d%27%3E%3Cpolygon%20points%3D%275.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0%27%2F%3E%3Cpolygon%20points%3D%274%2C0%206%2C2%206%2C0.6%205.4%2C0%27%2F%3E%3Cpolygon%20points%3D%270%2C2%201%2C3%202.4%2C3%200%2C0.6%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 0 100% repeat-x;
278
+ padding-bottom: 2px;
279
+ }
280
+ }
281
+
282
+ & .twoslash-completion-cursor {
283
+ position: relative;
284
+
285
+ & .twoslash-completion-list {
286
+ -webkit-user-select: none;
287
+ user-select: none;
288
+ z-index: 1000;
289
+ box-shadow: var(--twoslash-popup-shadow);
290
+ background: var(--twoslash-popup-bg);
291
+ border: 1px solid var(--twoslash-border-color);
292
+ flex-direction: column;
293
+ gap: 4px;
294
+ width: 240px;
295
+ margin: 3px 0 0 -1px;
296
+ padding: 4px;
297
+ font-size: .8rem;
298
+ display: flex;
299
+ position: fixed;
300
+ top: 0;
301
+ left: 0;
302
+ transform: translate(0, 1.2em);
303
+
304
+ &:hover {
305
+ -webkit-user-select: auto;
306
+ user-select: auto;
307
+ }
308
+
309
+ &:before {
310
+ background-color: var(--twoslash-cursor-color);
311
+ content: " ";
312
+ width: 2px;
313
+ height: 1.4em;
314
+ position: absolute;
315
+ top: -1.6em;
316
+ left: -1px;
317
+ }
318
+
319
+ & li {
320
+ align-items: center;
321
+ gap: .25em;
322
+ line-height: 1em;
323
+ display: flex;
324
+ overflow: hidden;
325
+
326
+ & span.twoslash-completions-unmatched {
327
+ color: var(--twoslash-unmatched-color);
328
+ }
329
+
330
+ & span.twoslash-completions-matched {
331
+ color: var(--twoslash-matched-color);
332
+ }
333
+
334
+ &.deprecated {
335
+ opacity: .5;
336
+ text-decoration: line-through;
337
+ }
338
+ }
339
+ }
340
+ }
341
+
342
+ & .twoslash-completion-list .twoslash-completions-icon {
343
+ color: var(--twoslash-unmatched-color);
344
+ flex: none;
345
+ width: 1em;
346
+ }
347
+
348
+ & .twoslash-highlighted {
349
+ background-color: var(--twoslash-highlighted-bg);
350
+ border: 1px solid var(--twoslash-highlighted-border);
351
+ border-radius: 4px;
352
+ margin: -1px -3px;
353
+ padding: 1px 2px;
354
+ }
355
+
356
+ & .twoslash-tag-line {
357
+ background-color: var(--twoslash-tag-bg);
358
+ border-left: 3px solid var(--twoslash-tag-color);
359
+ color: var(--twoslash-tag-color);
360
+ align-items: center;
361
+ gap: .3em;
362
+ width: max-content;
363
+ min-width: 100%;
364
+ margin: .2em 0;
365
+ padding: 6px 10px;
366
+ display: flex;
367
+ position: relative;
368
+
369
+ & .twoslash-tag-icon {
370
+ width: 1.1em;
371
+ color: inherit;
372
+ }
373
+
374
+ &.twoslash-tag-error-line {
375
+ background-color: var(--twoslash-error-bg);
376
+ border-left: 3px solid var(--twoslash-error-color);
377
+ color: var(--twoslash-error-color);
378
+ }
379
+
380
+ &.twoslash-tag-warn-line {
381
+ background-color: var(--twoslash-tag-warn-bg);
382
+ border-left: 3px solid var(--twoslash-tag-warn-color);
383
+ color: var(--twoslash-tag-warn-color);
384
+ }
385
+
386
+ &.twoslash-tag-annotate-line {
387
+ background-color: var(--twoslash-tag-annotate-bg);
388
+ border-left: 3px solid var(--twoslash-tag-annotate-color);
389
+ color: var(--twoslash-tag-annotate-color);
390
+ }
391
+ }
392
+ }
393
+
394
+ .twoslash-popup-docs-tag:has(.twoslash-tag-hidden), .twoslash-popup-docs-tag:not(:has(.twoslash-popup-docs-tag-value)), .twoslash-popup-docs-tag:has(.twoslash-tag-remarks) .twoslash-popup-docs-tag-name {
395
+ display: none;
396
+ }
397
+
398
+ .twoslash-popup-docs-tag:has(.twoslash-tag-param), .twoslash-popup-docs-tag:has(.twoslash-tag-typeParam), .twoslash-popup-docs-tag:has(.twoslash-tag-returns), .twoslash-popup-docs-tag:has(.twoslash-tag-throws), .twoslash-popup-docs-tag:has(.twoslash-tag-defaultValue) {
399
+ border-bottom: 1px solid var(--twoslash-border-color);
400
+ color: var(--twoslash-docs-color);
401
+ align-items: baseline;
402
+ gap: .5em;
403
+ margin: 0 -8px;
404
+ padding: .35em 8px;
405
+ display: flex;
406
+ }
407
+
408
+ .twoslash-popup-docs-tag:has(.twoslash-tag-param) > .twoslash-popup-docs-tag-name, .twoslash-popup-docs-tag:has(.twoslash-tag-typeParam) > .twoslash-popup-docs-tag-name, .twoslash-popup-docs-tag:has(.twoslash-tag-returns) > .twoslash-popup-docs-tag-name, .twoslash-popup-docs-tag:has(.twoslash-tag-throws) > .twoslash-popup-docs-tag-name, .twoslash-popup-docs-tag:has(.twoslash-tag-defaultValue) > .twoslash-popup-docs-tag-name {
409
+ width: 0;
410
+ margin: 0;
411
+ padding: 0;
412
+ font-size: 0;
413
+ overflow: hidden;
414
+ }
415
+
416
+ .twoslash-popup-docs-tag:has(.twoslash-tag-param):before, .twoslash-popup-docs-tag:has(.twoslash-tag-typeParam):before, .twoslash-popup-docs-tag:has(.twoslash-tag-returns):before, .twoslash-popup-docs-tag:has(.twoslash-tag-throws):before, .twoslash-popup-docs-tag:has(.twoslash-tag-defaultValue):before {
417
+ font-size: .65rem;
418
+ font-weight: 600;
419
+ font-family: var(--twoslash-code-font);
420
+ white-space: nowrap;
421
+ border-radius: 3px;
422
+ flex-shrink: 0;
423
+ padding: 1px 5px;
424
+ line-height: 1.4;
425
+ display: inline-block;
426
+ }
427
+
428
+ .twoslash-popup-docs-tag:has(.twoslash-tag-typeParam):before {
429
+ content: "type";
430
+ background: var(--twoslash-tag-bg);
431
+ color: var(--twoslash-tag-color);
432
+ }
433
+
434
+ .twoslash-popup-docs-tag:has(.twoslash-tag-param):before {
435
+ content: "param";
436
+ background: var(--twoslash-tag-bg);
437
+ color: var(--twoslash-tag-color);
438
+ }
439
+
440
+ .twoslash-popup-docs-tag:has(.twoslash-tag-returns):before {
441
+ content: "returns";
442
+ background: var(--twoslash-tag-annotate-bg);
443
+ color: var(--twoslash-tag-annotate-color);
444
+ }
445
+
446
+ .twoslash-popup-docs-tag:has(.twoslash-tag-throws):before {
447
+ content: "throws";
448
+ background: var(--twoslash-warn-bg);
449
+ color: var(--twoslash-warn-color);
450
+ }
451
+
452
+ .twoslash-popup-docs-tag:has(.twoslash-tag-defaultValue):before {
453
+ content: "default";
454
+ background: var(--twoslash-highlighted-bg);
455
+ color: var(--twoslash-docs-color);
456
+ }
457
+
458
+ .twoslash-tag-remarks {
459
+ margin-top: .5em;
460
+ display: block;
461
+ }
462
+
463
+ .twoslash-tag-content {
464
+ display: block;
465
+ }
466
+
467
+ .twoslash-tag-content p {
468
+ margin: .25em 0;
469
+ }
470
+
471
+ .twoslash-tag-content p:first-child {
472
+ margin-top: 0;
473
+ }
474
+
475
+ .twoslash-tag-content p:last-child {
476
+ margin-bottom: 0;
477
+ }
478
+
479
+ .twoslash .twoslash-popup-container .twoslash-popup-docs code {
480
+ background-color: var(--twoslash-popup-bg);
481
+ border: 1px solid var(--twoslash-border-color);
482
+ border-radius: 3px;
483
+ padding: 1px 4px;
484
+ font-size: .85em;
485
+ display: inline;
486
+ }
487
+
488
+ .twoslash-popup-docs p {
489
+ text-wrap: auto;
490
+ font-size: .9rem;
491
+ line-height: 1.1rem;
492
+ }
493
+
494
+ .twoslash-popup-docs p:first-child {
495
+ margin-top: 0;
496
+ }
497
+
498
+ .twoslash-popup-docs p:last-child, .twoslash-popup-docs ul:last-child, .twoslash-popup-docs ol:last-child {
499
+ margin-bottom: 0;
500
+ }
501
+
502
+ .twoslash-popup-docs ul, .twoslash-popup-docs ol {
503
+ margin: .5em 0;
504
+ padding-left: 1.25em;
505
+ }
506
+
507
+ .twoslash-popup-docs li {
508
+ margin: .25em 0;
509
+ }
510
+
511
+ .api-type-link {
512
+ color: inherit;
513
+ text-underline-offset: 2px;
514
+ -webkit-text-decoration: underline dotted;
515
+ text-decoration: underline dotted;
516
+ text-decoration-thickness: 1px;
517
+ transition: all .2s;
518
+
519
+ &:hover {
520
+ text-decoration-style: solid;
521
+ text-decoration-thickness: 2px;
522
+ }
523
+ }
524
+
525
+ html.rp-dark .api-type-link {
526
+ text-decoration-color: #fff6;
527
+
528
+ &:hover {
529
+ text-decoration-color: #fffc;
530
+ }
531
+ }
532
+
533
+ .buttonGroup-AcnFuI {
534
+ gap: var(--api-spacing-sm);
535
+ display: flex;
536
+ }
537
+
538
+ .button-O9z52c {
539
+ align-items: center;
540
+ gap: var(--api-spacing-xs);
541
+ padding: var(--api-spacing-xs) var(--api-spacing-md);
542
+ font-size: var(--api-font-size-sm);
543
+ font-weight: 500;
544
+ line-height: var(--api-line-height-button);
545
+ color: var(--api-color-text);
546
+ background-color: var(--api-color-bg-secondary);
547
+ border: 1px solid var(--api-color-border-secondary);
548
+ border-radius: var(--api-border-radius);
549
+ cursor: pointer;
550
+ transition: all var(--api-transition-fast);
551
+ display: inline-flex;
552
+ }
553
+
554
+ .button-O9z52c:hover {
555
+ background-color: var(--api-color-hover-bg);
556
+ border-color: var(--api-color-border-hover);
557
+ }
558
+
559
+ .button-O9z52c:active {
560
+ background-color: var(--api-color-active-bg);
561
+ transform: scale(.98);
562
+ }
563
+
564
+ .button-O9z52c svg {
565
+ flex-shrink: 0;
566
+ width: 16px;
567
+ height: 16px;
568
+ }
569
+
570
+ .code-C94Xw8 {
571
+ border-bottom-left-radius: var(--api-border-radius);
572
+ border-bottom-right-radius: var(--api-border-radius);
573
+ position: relative;
574
+ container-type: inline-size;
575
+ }
576
+
577
+ .code-C94Xw8 pre {
578
+ height: auto;
579
+ max-height: none;
580
+ padding: var(--api-spacing-lg);
581
+ background-color: var(--shiki-light-bg);
582
+ border-radius: 0 0 var(--api-border-radius) var(--api-border-radius);
583
+ margin: 0;
584
+ overflow-x: auto;
585
+ }
586
+
587
+ html.rp-dark-uV29jl .code-C94Xw8 pre {
588
+ background-color: var(--shiki-dark-bg);
589
+ }
590
+
591
+ .code-C94Xw8 code {
592
+ background-color: unset;
593
+ min-height: var(--api-font-size-md);
594
+ line-height: var(--api-line-height-base);
595
+ flex-direction: column;
596
+ justify-content: center;
597
+ display: flex;
598
+ }
599
+
600
+ .code-C94Xw8 code span {
601
+ color: var(--shiki-light);
602
+ }
603
+
604
+ html.rp-dark-uV29jl .code-C94Xw8 code span {
605
+ color: var(--shiki-dark);
606
+ }
607
+
608
+ .code-C94Xw8 .line {
609
+ background: none;
610
+ min-height: 1lh;
611
+ }
612
+
613
+ .wrapped-CCFVeG pre {
614
+ white-space: pre-wrap;
615
+ overflow-wrap: break-word;
616
+ }
617
+
618
+ .wrapped-CCFVeG code {
619
+ white-space: pre-wrap;
620
+ overflow-wrap: break-word;
621
+ }
622
+
623
+ .toolbar-UkMKNw {
624
+ justify-content: flex-end;
625
+ align-items: flex-end;
626
+ gap: var(--api-spacing-sm);
627
+ padding: var(--api-spacing-sm);
628
+ background-color: var(--api-color-bg);
629
+ border-top-left-radius: var(--api-border-radius);
630
+ border-top-right-radius: var(--api-border-radius);
631
+ display: flex;
632
+ }
633
+
634
+ html.rp-dark-nxUy8b .toolbar-UkMKNw {
635
+ background-color: var(--api-color-bg);
636
+ border-bottom-color: var(--api-color-border);
637
+ }
638
+
639
+ .toolbar-UkMKNw:has(.memberHeading-feA4hu) {
640
+ justify-content: space-between;
641
+ }
642
+
643
+ :is(.toolbar-UkMKNw h2, .toolbar-UkMKNw h3) {
644
+ font-size: var(--api-font-size-lg);
645
+ padding-left: var(--api-spacing-sm);
646
+ font-family: var(--rp-font-family-mono);
647
+ margin-top: 0;
648
+ margin-bottom: 0;
649
+ }
650
+
651
+ .toolbarLeft-UmB7Yb {
652
+ gap: var(--api-spacing-sm);
653
+ flex-direction: column;
654
+ flex: 1;
655
+ display: flex;
656
+ }
657
+
658
+ .memberHeading-feA4hu {
659
+ font-size: var(--api-font-size-md);
660
+ color: var(--api-color-text);
661
+ height: auto;
662
+ font-weight: 600;
663
+ line-height: var(--api-line-height-base);
664
+ -webkit-user-select: auto;
665
+ user-select: auto;
666
+ margin: 0;
667
+ position: relative;
668
+ overflow: visible;
669
+ }
670
+
671
+ html.rp-dark-nxUy8b .memberHeading-feA4hu {
672
+ color: var(--api-color-text);
673
+ }
674
+
675
+ .memberHeading-feA4hu .rp-header-anchor {
676
+ opacity: 0;
677
+ font-weight: 500;
678
+ font-size: inherit;
679
+ color: var(--rp-c-brand);
680
+ text-decoration: none;
681
+ transition: color .25s, opacity .25s;
682
+ position: absolute;
683
+ left: -1.2rem;
684
+ }
685
+
686
+ .memberHeading-feA4hu:hover .rp-header-anchor {
687
+ opacity: .85;
688
+ }
689
+
690
+ .memberHeading-feA4hu .rp-header-anchor:hover {
691
+ border-bottom: 1px solid var(--rp-c-brand);
692
+ opacity: .85;
693
+ }
694
+
695
+ .memberHeadingH2-mEqox1 {
696
+ font-size: var(--api-font-size-lg);
697
+ text-transform: lowercase;
698
+ border-top: none;
699
+ margin-top: 0;
700
+ margin-bottom: 0;
701
+ padding-top: 0;
702
+ font-weight: 600;
703
+ line-height: 2rem;
704
+ }
705
+
706
+ .memberHeadingH2-mEqox1:before, .memberHeadingH2-mEqox1:after {
707
+ content: none;
708
+ margin: 0;
709
+ padding: 0;
710
+ display: none;
711
+ }
712
+
713
+ .memberHeadingH2-mEqox1 .rp-header-anchor {
714
+ font-size: var(--api-font-size-lg);
715
+ left: -1.5rem;
716
+ }
717
+
718
+ .summary-flYT6K {
719
+ padding: 0;
720
+ padding-left: var(--api-spacing-sm);
721
+ font-size: var(--api-font-size-md);
722
+ line-height: var(--api-line-height-base);
723
+ color: var(--api-color-text-secondary);
724
+ background-color: #0000;
725
+ border: none;
726
+ }
727
+
728
+ html.rp-dark-nxUy8b .summary-flYT6K {
729
+ color: var(--api-color-text-secondary);
730
+ background-color: #0000;
731
+ border: none;
732
+ }
733
+
734
+ .summary-flYT6K p:first-child {
735
+ margin-top: 0;
736
+ }
737
+
738
+ .summary-flYT6K p:last-child, .summary-flYT6K ul:last-child, .summary-flYT6K ol:last-child {
739
+ margin-bottom: 0;
740
+ }
741
+
742
+ .buttons-YWl5hD {
743
+ gap: var(--api-spacing-sm);
744
+ display: flex;
745
+ }
746
+
747
+ .block-g6Xu1V {
748
+ margin: var(--api-spacing-xl) 0;
749
+ border-radius: var(--api-border-radius);
750
+ border: 1px solid var(--api-color-border);
751
+ position: relative;
752
+ overflow: visible;
753
+ }
754
+
755
+ html.rp-dark-q3G77C .block-g6Xu1V {
756
+ border-color: var(--api-color-border);
757
+ }
758
+
759
+ .block-Qq5hxM {
760
+ margin: var(--api-spacing-xl) 0;
761
+ border-radius: var(--api-border-radius);
762
+ border: 1px solid var(--api-color-border);
763
+ position: relative;
764
+ overflow: visible;
765
+ }
766
+
767
+ html.rp-dark-TylSkU .block-Qq5hxM {
768
+ border-color: var(--api-color-border);
769
+ }
770
+
771
+ .hasParameters-u13UWy {
772
+ border-bottom-right-radius: 0;
773
+ border-bottom-left-radius: 0;
774
+ margin-bottom: 0;
775
+ }
776
+
777
+ .hasParameters-u13UWy .api-signature-code {
778
+ border-bottom-right-radius: 0;
779
+ border-bottom-left-radius: 0;
780
+ }
781
+
782
+ .hasParameters-u13UWy .api-signature-code pre {
783
+ border-radius: 0;
784
+ }
785
+
786
+ .block-fru9Q7 {
787
+ margin: var(--api-spacing-xl) 0;
788
+ border-radius: var(--api-border-radius);
789
+ border: 1px solid var(--api-color-border);
790
+ position: relative;
791
+ overflow: visible;
792
+ }
793
+
794
+ html.rp-dark-Bh4pwS .block-fru9Q7 {
795
+ border-color: var(--api-color-border);
796
+ }
797
+
798
+ .hasParameters-UU0nI6 {
799
+ border-bottom-right-radius: 0;
800
+ border-bottom-left-radius: 0;
801
+ margin-bottom: 0;
802
+ }
803
+
804
+ .hasParameters-UU0nI6 .api-signature-code {
805
+ border-bottom-right-radius: 0;
806
+ border-bottom-left-radius: 0;
807
+ }
808
+
809
+ .hasParameters-UU0nI6 .api-signature-code pre {
810
+ border-radius: 0;
811
+ }
812
+
813
+ .table-vZ4IFZ {
814
+ border: 1px solid var(--api-color-border);
815
+ border-radius: 0 0 var(--api-border-radius) var(--api-border-radius);
816
+ border-top: none;
817
+ margin: 0;
818
+ position: relative;
819
+ overflow: hidden;
820
+ }
821
+
822
+ html.rp-dark-Xp3cTC .table-vZ4IFZ {
823
+ border-color: var(--api-color-border);
824
+ }
825
+
826
+ .scroll-NvHud6 {
827
+ -webkit-overflow-scrolling: touch;
828
+ overflow-x: auto;
829
+ }
830
+
831
+ .table-vZ4IFZ table {
832
+ border-collapse: collapse;
833
+ width: 100%;
834
+ font-size: var(--api-font-size-base);
835
+ border-top-left-radius: 0;
836
+ border-top-right-radius: 0;
837
+ margin: 0;
838
+ }
839
+
840
+ .table-vZ4IFZ thead {
841
+ background-color: var(--api-color-bg);
842
+ border-bottom: 1px solid var(--api-color-border);
843
+ }
844
+
845
+ .table-vZ4IFZ th {
846
+ padding: var(--api-spacing-md) var(--api-spacing-lg);
847
+ text-align: left;
848
+ color: var(--api-color-text);
849
+ white-space: nowrap;
850
+ font-weight: 600;
851
+ }
852
+
853
+ .table-vZ4IFZ th:first-child {
854
+ width: 20%;
855
+ min-width: 120px;
856
+ }
857
+
858
+ .table-vZ4IFZ th:nth-child(2) {
859
+ width: 25%;
860
+ min-width: 120px;
861
+ }
862
+
863
+ .table-vZ4IFZ th:last-child {
864
+ width: 55%;
865
+ }
866
+
867
+ .table-vZ4IFZ td {
868
+ padding: var(--api-spacing-md) var(--api-spacing-lg);
869
+ border-top: 1px solid var(--api-color-border);
870
+ vertical-align: top;
871
+ }
872
+
873
+ .table-vZ4IFZ td:first-child {
874
+ width: 20%;
875
+ min-width: 120px;
876
+ }
877
+
878
+ .table-vZ4IFZ td:nth-child(2) {
879
+ width: 25%;
880
+ min-width: 120px;
881
+ }
882
+
883
+ .table-vZ4IFZ td:last-child {
884
+ width: 55%;
885
+ }
886
+
887
+ .table-vZ4IFZ td code, .table-vZ4IFZ th code {
888
+ font-size: var(--api-font-size-sm);
889
+ background-color: var(--api-color-code-bg);
890
+ border-radius: var(--api-border-radius-sm);
891
+ padding: .125rem .375rem;
892
+ }
893
+
894
+ .table-vZ4IFZ td:last-child p:first-child {
895
+ margin-top: 0;
896
+ }
897
+
898
+ .table-vZ4IFZ td:last-child p:last-child, .table-vZ4IFZ td:last-child ul:last-child, .table-vZ4IFZ td:last-child ol:last-child {
899
+ margin-bottom: 0;
900
+ }
901
+
902
+ @media (width <= 768px) {
903
+ .table-vZ4IFZ td, .table-vZ4IFZ th {
904
+ padding: var(--api-spacing-sm) var(--api-spacing-md);
905
+ font-size: var(--api-font-size-sm);
906
+ }
907
+
908
+ .table-vZ4IFZ td:first-child, .table-vZ4IFZ th:first-child, .table-vZ4IFZ td:nth-child(2), .table-vZ4IFZ th:nth-child(2) {
909
+ min-width: 100px;
910
+ }
911
+ }
912
+
913
+ .table-wOupSX {
914
+ border: 1px solid var(--api-color-border);
915
+ border-radius: 0 0 var(--api-border-radius) var(--api-border-radius);
916
+ border-top: none;
917
+ margin: 0;
918
+ position: relative;
919
+ overflow: hidden;
920
+ }
921
+
922
+ html.rp-dark-MFxhEo .table-wOupSX {
923
+ border-color: var(--api-color-border);
924
+ }
925
+
926
+ .scroll-prKOBp {
927
+ -webkit-overflow-scrolling: touch;
928
+ overflow-x: auto;
929
+ }
930
+
931
+ .table-wOupSX table {
932
+ border-collapse: collapse;
933
+ width: 100%;
934
+ font-size: var(--api-font-size-base);
935
+ border-top-left-radius: 0;
936
+ border-top-right-radius: 0;
937
+ margin: 0;
938
+ }
939
+
940
+ .table-wOupSX thead {
941
+ background-color: var(--api-color-bg);
942
+ border-bottom: 1px solid var(--api-color-border);
943
+ }
944
+
945
+ .table-wOupSX th {
946
+ padding: var(--api-spacing-md) var(--api-spacing-lg);
947
+ text-align: left;
948
+ color: var(--api-color-text);
949
+ white-space: nowrap;
950
+ font-weight: 600;
951
+ }
952
+
953
+ .table-wOupSX th:first-child {
954
+ width: 20%;
955
+ min-width: 120px;
956
+ }
957
+
958
+ .table-wOupSX th:nth-child(2) {
959
+ width: 30%;
960
+ min-width: 150px;
961
+ }
962
+
963
+ .table-wOupSX th:last-child {
964
+ width: 50%;
965
+ }
966
+
967
+ .table-wOupSX td {
968
+ padding: var(--api-spacing-md) var(--api-spacing-lg);
969
+ border-top: 1px solid var(--api-color-border);
970
+ vertical-align: top;
971
+ }
972
+
973
+ .table-wOupSX td:first-child {
974
+ width: 20%;
975
+ min-width: 120px;
976
+ }
977
+
978
+ .table-wOupSX td:nth-child(2) {
979
+ width: 30%;
980
+ min-width: 150px;
981
+ }
982
+
983
+ .table-wOupSX td:last-child {
984
+ width: 50%;
985
+ }
986
+
987
+ .table-wOupSX td code, .table-wOupSX th code {
988
+ font-size: var(--api-font-size-sm);
989
+ background-color: var(--api-color-code-bg);
990
+ border-radius: var(--api-border-radius-sm);
991
+ padding: .125rem .375rem;
992
+ }
993
+
994
+ .table-wOupSX td:last-child p:first-child {
995
+ margin-top: 0;
996
+ }
997
+
998
+ .table-wOupSX td:last-child p:last-child, .table-wOupSX td:last-child ul:last-child, .table-wOupSX td:last-child ol:last-child {
999
+ margin-bottom: 0;
1000
+ }
1001
+
1002
+ @media (width <= 768px) {
1003
+ .table-wOupSX td, .table-wOupSX th {
1004
+ padding: var(--api-spacing-sm) var(--api-spacing-md);
1005
+ font-size: var(--api-font-size-sm);
1006
+ }
1007
+
1008
+ .table-wOupSX td:first-child, .table-wOupSX th:first-child {
1009
+ min-width: 100px;
1010
+ }
1011
+
1012
+ .table-wOupSX td:nth-child(2), .table-wOupSX th:nth-child(2) {
1013
+ min-width: 120px;
1014
+ }
1015
+ }
1016
+