@zsviczian/kplex-web 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSES/Source.txt +2 -2
- package/cdn.js +11 -768
- package/chunk.js +8 -765
- package/compass.css +1 -1
- package/compass.js +1 -1
- package/demo.js +1 -1
- package/offline.js +778 -766
- package/package.json +1 -1
- package/runtime-pack.json +1 -1
package/offline.js
CHANGED
|
@@ -1,768 +1,780 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
which are
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
requirement to
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
organization, or
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
in a country,
|
|
499
|
-
country
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
the
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
SUCH
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
`]]});var em=Dn(Ue=>{"use strict";M();function ic(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,a=e[i];if(0<Hr(a,t))e[i]=t,e[n]=a,n=i;else break e}}function Pn(e){return e.length===0?null:e[0]}function Pr(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,a=e.length,o=a>>>1;i<o;){var l=2*(i+1)-1,r=e[l],u=l+1,s=e[u];if(0>Hr(r,n))u<a&&0>Hr(s,r)?(e[i]=s,e[u]=n,i=u):(e[i]=r,e[l]=n,i=l);else if(u<a&&0>Hr(s,n))e[i]=s,e[u]=n,i=u;else break e}}return t}function Hr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Ue.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(jh=performance,Ue.unstable_now=function(){return jh.now()}):(ec=Date,Xh=ec.now(),Ue.unstable_now=function(){return ec.now()-Xh});var jh,ec,Xh,ii=[],Mi=[],V1=1,cn=null,vt=3,ac=!1,ll=!1,rl=!1,oc=!1,Zh=typeof setTimeout=="function"?setTimeout:null,Fh=typeof clearTimeout=="function"?clearTimeout:null,Kh=typeof setImmediate<"u"?setImmediate:null;function kr(e){for(var t=Pn(Mi);t!==null;){if(t.callback===null)Pr(Mi);else if(t.startTime<=e)Pr(Mi),t.sortIndex=t.expirationTime,ic(ii,t);else break;t=Pn(Mi)}}function lc(e){if(rl=!1,kr(e),!ll)if(Pn(ii)!==null)ll=!0,Za||(Za=!0,Qa());else{var t=Pn(Mi);t!==null&&rc(lc,t.startTime-e)}}var Za=!1,ul=-1,Jh=5,Wh=-1;function $h(){return oc?!0:!(Ue.unstable_now()-Wh<Jh)}function tc(){if(oc=!1,Za){var e=Ue.unstable_now();Wh=e;var t=!0;try{e:{ll=!1,rl&&(rl=!1,Fh(ul),ul=-1),ac=!0;var n=vt;try{t:{for(kr(e),cn=Pn(ii);cn!==null&&!(cn.expirationTime>e&&$h());){var i=cn.callback;if(typeof i=="function"){cn.callback=null,vt=cn.priorityLevel;var a=i(cn.expirationTime<=e);if(e=Ue.unstable_now(),typeof a=="function"){cn.callback=a,kr(e),t=!0;break t}cn===Pn(ii)&&Pr(ii),kr(e)}else Pr(ii);cn=Pn(ii)}if(cn!==null)t=!0;else{var o=Pn(Mi);o!==null&&rc(lc,o.startTime-e),t=!1}}break e}finally{cn=null,vt=n,ac=!1}t=void 0}}finally{t?Qa():Za=!1}}}var Qa;typeof Kh=="function"?Qa=function(){Kh(tc)}:typeof MessageChannel<"u"?(nc=new MessageChannel,Qh=nc.port2,nc.port1.onmessage=tc,Qa=function(){Qh.postMessage(null)}):Qa=function(){Zh(tc,0)};var nc,Qh;function rc(e,t){ul=Zh(function(){e(Ue.unstable_now())},t)}Ue.unstable_IdlePriority=5;Ue.unstable_ImmediatePriority=1;Ue.unstable_LowPriority=4;Ue.unstable_NormalPriority=3;Ue.unstable_Profiling=null;Ue.unstable_UserBlockingPriority=2;Ue.unstable_cancelCallback=function(e){e.callback=null};Ue.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Jh=0<e?Math.floor(1e3/e):5};Ue.unstable_getCurrentPriorityLevel=function(){return vt};Ue.unstable_next=function(e){switch(vt){case 1:case 2:case 3:var t=3;break;default:t=vt}var n=vt;vt=t;try{return e()}finally{vt=n}};Ue.unstable_requestPaint=function(){oc=!0};Ue.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=vt;vt=e;try{return t()}finally{vt=n}};Ue.unstable_scheduleCallback=function(e,t,n){var i=Ue.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=n+a,e={id:V1++,callback:t,priorityLevel:e,startTime:n,expirationTime:a,sortIndex:-1},n>i?(e.sortIndex=n,ic(Mi,e),Pn(ii)===null&&e===Pn(Mi)&&(rl?(Fh(ul),ul=-1):rl=!0,rc(lc,n-i))):(e.sortIndex=a,ic(ii,e),ll||ac||(ll=!0,Za||(Za=!0,Qa()))),e};Ue.unstable_shouldYield=$h;Ue.unstable_wrapCallback=function(e){var t=vt;return function(){var n=vt;vt=t;try{return e.apply(this,arguments)}finally{vt=n}}}});var nm=Dn((aM,tm)=>{"use strict";M();tm.exports=em()});var pm=Dn(te=>{"use strict";M();var cc=Symbol.for("react.transitional.element"),Y1=Symbol.for("react.portal"),q1=Symbol.for("react.fragment"),j1=Symbol.for("react.strict_mode"),X1=Symbol.for("react.profiler"),K1=Symbol.for("react.consumer"),Q1=Symbol.for("react.context"),Z1=Symbol.for("react.forward_ref"),F1=Symbol.for("react.suspense"),J1=Symbol.for("react.memo"),rm=Symbol.for("react.lazy"),W1=Symbol.for("react.activity"),$1=Symbol.for("react.view_transition"),im=Symbol.iterator;function ew(e){return e===null||typeof e!="object"?null:(e=im&&e[im]||e["@@iterator"],typeof e=="function"?e:null)}var um={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sm=Object.assign,cm={};function Ja(e,t,n){this.props=e,this.context=t,this.refs=cm,this.updater=n||um}Ja.prototype.isReactComponent={};Ja.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ja.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fm(){}fm.prototype=Ja.prototype;function fc(e,t,n){this.props=e,this.context=t,this.refs=cm,this.updater=n||um}var dc=fc.prototype=new fm;dc.constructor=fc;sm(dc,Ja.prototype);dc.isPureReactComponent=!0;var am=Array.isArray;function sc(){}var Ce={H:null,A:null,T:null,S:null},dm=Object.prototype.hasOwnProperty;function hc(e,t,n){var i=n.ref;return{$$typeof:cc,type:e,key:t,ref:i!==void 0?i:null,props:n}}function tw(e,t){return hc(e.type,t,e.props)}function mc(e){return typeof e=="object"&&e!==null&&e.$$typeof===cc}function nw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var om=/\/+/g;function uc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nw(""+e.key):t.toString(36)}function iw(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(sc,sc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Fa(e,t,n,i,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case cc:case Y1:l=!0;break;case rm:return l=e._init,Fa(l(e._payload),t,n,i,a)}}if(l)return a=a(e),l=i===""?"."+uc(e,0):i,am(a)?(n="",l!=null&&(n=l.replace(om,"$&/")+"/"),Fa(a,t,n,"",function(s){return s})):a!=null&&(mc(a)&&(a=tw(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(om,"$&/")+"/")+l)),t.push(a)),1;l=0;var r=i===""?".":i+":";if(am(e))for(var u=0;u<e.length;u++)i=e[u],o=r+uc(i,u),l+=Fa(i,t,n,o,a);else if(u=ew(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,o=r+uc(i,u++),l+=Fa(i,t,n,o,a);else if(o==="object"){if(typeof e.then=="function")return Fa(iw(e),t,n,i,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function Ur(e,t,n){if(e==null)return e;var i=[],a=0;return Fa(e,i,"","",function(o){return t.call(n,o,a++)}),i}function aw(e){if(e._status===-1){var t=e._result,n=t();n.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var lm=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function hm(e){var t=Ce.T,n={};n.types=t!==null?t.types:null,Ce.T=n;try{var i=e(),a=Ce.S;a!==null&&a(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(sc,lm)}catch(o){lm(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ce.T=t}}function mm(e){var t=Ce.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else hm(mm.bind(null,e))}var ow={map:Ur,forEach:function(e,t,n){Ur(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ur(e,function(){t++}),t},toArray:function(e){return Ur(e,function(t){return t})||[]},only:function(e){if(!mc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Activity=W1;te.Children=ow;te.Component=Ja;te.Fragment=q1;te.Profiler=X1;te.PureComponent=fc;te.StrictMode=j1;te.Suspense=F1;te.ViewTransition=$1;te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ce;te.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ce.H.useMemoCache(e)}};te.addTransitionType=mm;te.cache=function(e){return function(){return e.apply(null,arguments)}};te.cacheSignal=function(){return null};te.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=sm({},e.props),a=e.key;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)!dm.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(i[o]=t[o]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),r=0;r<o;r++)l[r]=arguments[r+2];i.children=l}return hc(e.type,a,i)};te.createContext=function(e){return e={$$typeof:Q1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:K1,_context:e},e};te.createElement=function(e,t,n){var i,a={},o=null;if(t!=null)for(i in t.key!==void 0&&(o=""+t.key),t)dm.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(a[i]=t[i]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var r=Array(l),u=0;u<l;u++)r[u]=arguments[u+2];a.children=r}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)a[i]===void 0&&(a[i]=l[i]);return hc(e,o,a)};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:Z1,render:e}};te.isValidElement=mc;te.lazy=function(e){return{$$typeof:rm,_payload:{_status:-1,_result:e},_init:aw}};te.memo=function(e,t){return{$$typeof:J1,type:e,compare:t===void 0?null:t}};te.startTransition=hm;te.unstable_useCacheRefresh=function(){return Ce.H.useCacheRefresh()};te.use=function(e){return Ce.H.use(e)};te.useActionState=function(e,t,n){return Ce.H.useActionState(e,t,n)};te.useCallback=function(e,t){return Ce.H.useCallback(e,t)};te.useContext=function(e){return Ce.H.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e,t){return Ce.H.useDeferredValue(e,t)};te.useEffect=function(e,t){return Ce.H.useEffect(e,t)};te.useEffectEvent=function(e){return Ce.H.useEffectEvent(e)};te.useId=function(){return Ce.H.useId()};te.useImperativeHandle=function(e,t,n){return Ce.H.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return Ce.H.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return Ce.H.useLayoutEffect(e,t)};te.useMemo=function(e,t){return Ce.H.useMemo(e,t)};te.useOptimistic=function(e,t){return Ce.H.useOptimistic(e,t)};te.useReducer=function(e,t,n){return Ce.H.useReducer(e,t,n)};te.useRef=function(e){return Ce.H.useRef(e)};te.useState=function(e){return Ce.H.useState(e)};te.useSyncExternalStore=function(e,t,n){return Ce.H.useSyncExternalStore(e,t,n)};te.useTransition=function(){return Ce.H.useTransition()};te.version="19.3.0"});var $e=Dn((uM,gm)=>{"use strict";M();gm.exports=pm()});var vm=Dn(wt=>{"use strict";M();var lw=$e();function bm(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ri(){}var Ct={d:{f:Ri,r:function(){throw Error(bm(522))},D:Ri,C:Ri,L:Ri,m:Ri,X:Ri,S:Ri,M:Ri},p:0,findDOMNode:null},rw=Symbol.for("react.portal"),uw=Symbol.for("react.recoverable"),ym=Symbol.for("react.optimistic_key");function sw(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:rw,key:i==null?null:i===ym?ym:""+i,children:e,containerInfo:t,implementation:n}}var sl=lw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _r(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ct;wt.browser=function(e){return{$$typeof:uw,_reason:e}};wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(bm(299));return sw(e,t,null,n)};wt.flushSync=function(e){var t=sl.T,n=Ct.p;try{if(sl.T=null,Ct.p=2,e)return e()}finally{sl.T=t,Ct.p=n,Ct.d.f()}};wt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ct.d.C(e,t))};wt.prefetchDNS=function(e){typeof e=="string"&&Ct.d.D(e)};wt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=_r(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Ct.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:o}):n==="script"&&Ct.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};wt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=_r(t.as,t.crossOrigin);Ct.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&Ct.d.M(e)};wt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=_r(n,t.crossOrigin);Ct.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};wt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=_r(t.as,t.crossOrigin);Ct.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else Ct.d.m(e)};wt.requestFormReset=function(e){Ct.d.r(e)};wt.unstable_batchedUpdates=function(e,t){return e(t)};wt.useFormState=function(e,t,n){return sl.H.useFormState(e,t,n)};wt.useFormStatus=function(){return sl.H.useHostTransitionStatus()};wt.version="19.3.0"});var Ir=Dn((dM,Sm)=>{"use strict";M();function wm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wm)}catch(e){console.error(e)}}wm(),Sm.exports=vm()});var rv=Dn(ws=>{"use strict";M();var nt=nm(),lg=$e(),cw=Ir();function A(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function rg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fl(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function ug(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function sg(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function xm(e){if(Fl(e)!==e)throw Error(A(188))}function fw(e){var t=e.alternate;if(!t){if(t=Fl(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return xm(a),e;if(o===i)return xm(a),t;o=o.sibling}throw Error(A(188))}if(n.return!==i.return)n=a,i=o;else{for(var l=!1,r=a.child;r;){if(r===n){l=!0,n=a,i=o;break}if(r===i){l=!0,i=a,n=o;break}r=r.sibling}if(!l){for(r=o.child;r;){if(r===n){l=!0,n=o,i=a;break}if(r===i){l=!0,i=o,n=a;break}r=r.sibling}if(!l)throw Error(A(189))}}if(n.alternate!==i)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function cg(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=cg(e),t!==null)return t;e=e.sibling}return null}function Vt(e,t,n,i,a,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,i,a,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Vt(e.child,t,n,i,a,o))return!0;e=e.sibling}return!1}function Ha(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function Em(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function fg(e){var t=[null,null],n=Ha(e);return n===null||dg(t,e,n.child,{foundSelf:!1}),t}function dg(e,t,n,i){for(;n!==null;){if(n===t)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&dg(e,t,n.child,i))return!0;n=n.sibling}return!1}function tt(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(A(559))}}var ao=null,Xc=null;function dw(e,t,n){return e===n?!0:e===t?(ao=e,!0):!1}function hw(e,t,n){return e===n?(Xc=e,!1):e===t?(Xc!==null&&(ao=e),!0):!1}function Tm(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function Kc(e,t,n){for(var i=0,a=e;a;a=n(a))i++;a=0;for(var o=t;o;o=n(o))a++;for(;0<i-a;)e=n(e),i--;for(;0<a-i;)t=n(t),a--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var Ae=Object.assign,mw=Symbol.for("react.element"),Br=Symbol.for("react.transitional.element"),gl=Symbol.for("react.portal"),oo=Symbol.for("react.fragment"),hg=Symbol.for("react.strict_mode"),Qc=Symbol.for("react.profiler"),mg=Symbol.for("react.consumer"),Vn=Symbol.for("react.context"),ad=Symbol.for("react.forward_ref"),Zc=Symbol.for("react.suspense"),Fc=Symbol.for("react.suspense_list"),od=Symbol.for("react.memo"),Oi=Symbol.for("react.lazy");Symbol.for("react.scope");var Jc=Symbol.for("react.activity"),pw=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var gw=Symbol.for("react.memo_cache_sentinel"),Wc=Symbol.for("react.view_transition"),yw=Symbol.for("react.recoverable"),Mm=Symbol.iterator;function cl(e){return e===null||typeof e!="object"?null:(e=Mm&&e[Mm]||e["@@iterator"],typeof e=="function"?e:null)}var bw=Symbol.for("react.client.reference");function $c(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===bw?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oo:return"Fragment";case Qc:return"Profiler";case hg:return"StrictMode";case Zc:return"Suspense";case Fc:return"SuspenseList";case Jc:return"Activity";case Wc:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case gl:return"Portal";case Vn:return e.displayName||"Context";case mg:return(e._context.displayName||"Context")+".Consumer";case ad:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case od:return t=e.displayName||null,t!==null?t:$c(e.type)||"Memo";case Oi:t=e._payload,e=e._init;try{return $c(e(t))}catch{}}return null}var yl=Array.isArray,F=lg.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,be=cw.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Sa={pending:!1,data:null,method:null,action:null},ef=[],lo=-1;function Zn(e){return{current:e}}function dt(e){0>lo||(e.current=ef[lo],ef[lo]=null,lo--)}function ze(e,t){lo++,ef[lo]=e.current,e.current=t}var Xn=Zn(null),Hl=Zn(null),Ii=Zn(null),Ru=Zn(null);function Nu(e,t){switch(ze(Ii,t),ze(Hl,e),ze(Xn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ip(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ip(t),e=Pb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}dt(Xn),ze(Xn,e)}function No(){dt(Xn),dt(Hl),dt(Ii)}function tf(e){var t=e.memoizedState;t!==null&&(Uo._currentValue=t.memoizedState,ze(Ru,e)),t=Xn.current;var n=Pb(t,e.type);t!==n&&(ze(Hl,e),ze(Xn,n))}function Au(e){Hl.current===e&&(dt(Xn),dt(Hl)),Ru.current===e&&(dt(Ru),Uo._currentValue=Sa)}var pc,Rm;function Ai(e){if(pc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);pc=t&&t[1]||"",Rm=-1<n.stack.indexOf(`
|
|
1
|
+
// K-Plex
|
|
2
|
+
// GNU AFFERO GENERAL PUBLIC LICENSE
|
|
3
|
+
// Version 3, 19 November 2007
|
|
4
|
+
//
|
|
5
|
+
// Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
6
|
+
// Everyone is permitted to copy and distribute verbatim copies
|
|
7
|
+
// of this license document, but changing it is not allowed.
|
|
8
|
+
//
|
|
9
|
+
// Preamble
|
|
10
|
+
//
|
|
11
|
+
// The GNU Affero General Public License is a free, copyleft license for
|
|
12
|
+
// software and other kinds of works, specifically designed to ensure
|
|
13
|
+
// cooperation with the community in the case of network server software.
|
|
14
|
+
//
|
|
15
|
+
// The licenses for most software and other practical works are designed
|
|
16
|
+
// to take away your freedom to share and change the works. By contrast,
|
|
17
|
+
// our General Public Licenses are intended to guarantee your freedom to
|
|
18
|
+
// share and change all versions of a program--to make sure it remains free
|
|
19
|
+
// software for all its users.
|
|
20
|
+
//
|
|
21
|
+
// When we speak of free software, we are referring to freedom, not
|
|
22
|
+
// price. Our General Public Licenses are designed to make sure that you
|
|
23
|
+
// have the freedom to distribute copies of free software (and charge for
|
|
24
|
+
// them if you wish), that you receive source code or can get it if you
|
|
25
|
+
// want it, that you can change the software or use pieces of it in new
|
|
26
|
+
// free programs, and that you know you can do these things.
|
|
27
|
+
//
|
|
28
|
+
// Developers that use our General Public Licenses protect your rights
|
|
29
|
+
// with two steps: (1) assert copyright on the software, and (2) offer
|
|
30
|
+
// you this License which gives you legal permission to copy, distribute
|
|
31
|
+
// and/or modify the software.
|
|
32
|
+
//
|
|
33
|
+
// A secondary benefit of defending all users' freedom is that
|
|
34
|
+
// improvements made in alternate versions of the program, if they
|
|
35
|
+
// receive widespread use, become available for other developers to
|
|
36
|
+
// incorporate. Many developers of free software are heartened and
|
|
37
|
+
// encouraged by the resulting cooperation. However, in the case of
|
|
38
|
+
// software used on network servers, this result may fail to come about.
|
|
39
|
+
// The GNU General Public License permits making a modified version and
|
|
40
|
+
// letting the public access it on a server without ever releasing its
|
|
41
|
+
// source code to the public.
|
|
42
|
+
//
|
|
43
|
+
// The GNU Affero General Public License is designed specifically to
|
|
44
|
+
// ensure that, in such cases, the modified source code becomes available
|
|
45
|
+
// to the community. It requires the operator of a network server to
|
|
46
|
+
// provide the source code of the modified version running there to the
|
|
47
|
+
// users of that server. Therefore, public use of a modified version, on
|
|
48
|
+
// a publicly accessible server, gives the public access to the source
|
|
49
|
+
// code of the modified version.
|
|
50
|
+
//
|
|
51
|
+
// An older license, called the Affero General Public License and
|
|
52
|
+
// published by Affero, was designed to accomplish similar goals. This is
|
|
53
|
+
// a different license, not a version of the Affero GPL, but Affero has
|
|
54
|
+
// released a new version of the Affero GPL which permits relicensing under
|
|
55
|
+
// this license.
|
|
56
|
+
//
|
|
57
|
+
// The precise terms and conditions for copying, distribution and
|
|
58
|
+
// modification follow.
|
|
59
|
+
//
|
|
60
|
+
// TERMS AND CONDITIONS
|
|
61
|
+
//
|
|
62
|
+
// 0. Definitions.
|
|
63
|
+
//
|
|
64
|
+
// "This License" refers to version 3 of the GNU Affero General Public License.
|
|
65
|
+
//
|
|
66
|
+
// "Copyright" also means copyright-like laws that apply to other kinds of
|
|
67
|
+
// works, such as semiconductor masks.
|
|
68
|
+
//
|
|
69
|
+
// "The Program" refers to any copyrightable work licensed under this
|
|
70
|
+
// License. Each licensee is addressed as "you". "Licensees" and
|
|
71
|
+
// "recipients" may be individuals or organizations.
|
|
72
|
+
//
|
|
73
|
+
// To "modify" a work means to copy from or adapt all or part of the work
|
|
74
|
+
// in a fashion requiring copyright permission, other than the making of an
|
|
75
|
+
// exact copy. The resulting work is called a "modified version" of the
|
|
76
|
+
// earlier work or a work "based on" the earlier work.
|
|
77
|
+
//
|
|
78
|
+
// A "covered work" means either the unmodified Program or a work based
|
|
79
|
+
// on the Program.
|
|
80
|
+
//
|
|
81
|
+
// To "propagate" a work means to do anything with it that, without
|
|
82
|
+
// permission, would make you directly or secondarily liable for
|
|
83
|
+
// infringement under applicable copyright law, except executing it on a
|
|
84
|
+
// computer or modifying a private copy. Propagation includes copying,
|
|
85
|
+
// distribution (with or without modification), making available to the
|
|
86
|
+
// public, and in some countries other activities as well.
|
|
87
|
+
//
|
|
88
|
+
// To "convey" a work means any kind of propagation that enables other
|
|
89
|
+
// parties to make or receive copies. Mere interaction with a user through
|
|
90
|
+
// a computer network, with no transfer of a copy, is not conveying.
|
|
91
|
+
//
|
|
92
|
+
// An interactive user interface displays "Appropriate Legal Notices"
|
|
93
|
+
// to the extent that it includes a convenient and prominently visible
|
|
94
|
+
// feature that (1) displays an appropriate copyright notice, and (2)
|
|
95
|
+
// tells the user that there is no warranty for the work (except to the
|
|
96
|
+
// extent that warranties are provided), that licensees may convey the
|
|
97
|
+
// work under this License, and how to view a copy of this License. If
|
|
98
|
+
// the interface presents a list of user commands or options, such as a
|
|
99
|
+
// menu, a prominent item in the list meets this criterion.
|
|
100
|
+
//
|
|
101
|
+
// 1. Source Code.
|
|
102
|
+
//
|
|
103
|
+
// The "source code" for a work means the preferred form of the work
|
|
104
|
+
// for making modifications to it. "Object code" means any non-source
|
|
105
|
+
// form of a work.
|
|
106
|
+
//
|
|
107
|
+
// A "Standard Interface" means an interface that either is an official
|
|
108
|
+
// standard defined by a recognized standards body, or, in the case of
|
|
109
|
+
// interfaces specified for a particular programming language, one that
|
|
110
|
+
// is widely used among developers working in that language.
|
|
111
|
+
//
|
|
112
|
+
// The "System Libraries" of an executable work include anything, other
|
|
113
|
+
// than the work as a whole, that (a) is included in the normal form of
|
|
114
|
+
// packaging a Major Component, but which is not part of that Major
|
|
115
|
+
// Component, and (b) serves only to enable use of the work with that
|
|
116
|
+
// Major Component, or to implement a Standard Interface for which an
|
|
117
|
+
// implementation is available to the public in source code form. A
|
|
118
|
+
// "Major Component", in this context, means a major essential component
|
|
119
|
+
// (kernel, window system, and so on) of the specific operating system
|
|
120
|
+
// (if any) on which the executable work runs, or a compiler used to
|
|
121
|
+
// produce the work, or an object code interpreter used to run it.
|
|
122
|
+
//
|
|
123
|
+
// The "Corresponding Source" for a work in object code form means all
|
|
124
|
+
// the source code needed to generate, install, and (for an executable
|
|
125
|
+
// work) run the object code and to modify the work, including scripts to
|
|
126
|
+
// control those activities. However, it does not include the work's
|
|
127
|
+
// System Libraries, or general-purpose tools or generally available free
|
|
128
|
+
// programs which are used unmodified in performing those activities but
|
|
129
|
+
// which are not part of the work. For example, Corresponding Source
|
|
130
|
+
// includes interface definition files associated with source files for
|
|
131
|
+
// the work, and the source code for shared libraries and dynamically
|
|
132
|
+
// linked subprograms that the work is specifically designed to require,
|
|
133
|
+
// such as by intimate data communication or control flow between those
|
|
134
|
+
// subprograms and other parts of the work.
|
|
135
|
+
//
|
|
136
|
+
// The Corresponding Source need not include anything that users
|
|
137
|
+
// can regenerate automatically from other parts of the Corresponding
|
|
138
|
+
// Source.
|
|
139
|
+
//
|
|
140
|
+
// The Corresponding Source for a work in source code form is that
|
|
141
|
+
// same work.
|
|
142
|
+
//
|
|
143
|
+
// 2. Basic Permissions.
|
|
144
|
+
//
|
|
145
|
+
// All rights granted under this License are granted for the term of
|
|
146
|
+
// copyright on the Program, and are irrevocable provided the stated
|
|
147
|
+
// conditions are met. This License explicitly affirms your unlimited
|
|
148
|
+
// permission to run the unmodified Program. The output from running a
|
|
149
|
+
// covered work is covered by this License only if the output, given its
|
|
150
|
+
// content, constitutes a covered work. This License acknowledges your
|
|
151
|
+
// rights of fair use or other equivalent, as provided by copyright law.
|
|
152
|
+
//
|
|
153
|
+
// You may make, run and propagate covered works that you do not
|
|
154
|
+
// convey, without conditions so long as your license otherwise remains
|
|
155
|
+
// in force. You may convey covered works to others for the sole purpose
|
|
156
|
+
// of having them make modifications exclusively for you, or provide you
|
|
157
|
+
// with facilities for running those works, provided that you comply with
|
|
158
|
+
// the terms of this License in conveying all material for which you do
|
|
159
|
+
// not control copyright. Those thus making or running the covered works
|
|
160
|
+
// for you must do so exclusively on your behalf, under your direction
|
|
161
|
+
// and control, on terms that prohibit them from making any copies of
|
|
162
|
+
// your copyrighted material outside their relationship with you.
|
|
163
|
+
//
|
|
164
|
+
// Conveying under any other circumstances is permitted solely under
|
|
165
|
+
// the conditions stated below. Sublicensing is not allowed; section 10
|
|
166
|
+
// makes it unnecessary.
|
|
167
|
+
//
|
|
168
|
+
// 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
169
|
+
//
|
|
170
|
+
// No covered work shall be deemed part of an effective technological
|
|
171
|
+
// measure under any applicable law fulfilling obligations under article
|
|
172
|
+
// 11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
|
173
|
+
// similar laws prohibiting or restricting circumvention of such
|
|
174
|
+
// measures.
|
|
175
|
+
//
|
|
176
|
+
// When you convey a covered work, you waive any legal power to forbid
|
|
177
|
+
// circumvention of technological measures to the extent such circumvention
|
|
178
|
+
// is effected by exercising rights under this License with respect to
|
|
179
|
+
// the covered work, and you disclaim any intention to limit operation or
|
|
180
|
+
// modification of the work as a means of enforcing, against the work's
|
|
181
|
+
// users, your or third parties' legal rights to forbid circumvention of
|
|
182
|
+
// technological measures.
|
|
183
|
+
//
|
|
184
|
+
// 4. Conveying Verbatim Copies.
|
|
185
|
+
//
|
|
186
|
+
// You may convey verbatim copies of the Program's source code as you
|
|
187
|
+
// receive it, in any medium, provided that you conspicuously and
|
|
188
|
+
// appropriately publish on each copy an appropriate copyright notice;
|
|
189
|
+
// keep intact all notices stating that this License and any
|
|
190
|
+
// non-permissive terms added in accord with section 7 apply to the code;
|
|
191
|
+
// keep intact all notices of the absence of any warranty; and give all
|
|
192
|
+
// recipients a copy of this License along with the Program.
|
|
193
|
+
//
|
|
194
|
+
// You may charge any price or no price for each copy that you convey,
|
|
195
|
+
// and you may offer support or warranty protection for a fee.
|
|
196
|
+
//
|
|
197
|
+
// 5. Conveying Modified Source Versions.
|
|
198
|
+
//
|
|
199
|
+
// You may convey a work based on the Program, or the modifications to
|
|
200
|
+
// produce it from the Program, in the form of source code under the
|
|
201
|
+
// terms of section 4, provided that you also meet all of these conditions:
|
|
202
|
+
//
|
|
203
|
+
// a) The work must carry prominent notices stating that you modified
|
|
204
|
+
// it, and giving a relevant date.
|
|
205
|
+
//
|
|
206
|
+
// b) The work must carry prominent notices stating that it is
|
|
207
|
+
// released under this License and any conditions added under section
|
|
208
|
+
// 7. This requirement modifies the requirement in section 4 to
|
|
209
|
+
// "keep intact all notices".
|
|
210
|
+
//
|
|
211
|
+
// c) You must license the entire work, as a whole, under this
|
|
212
|
+
// License to anyone who comes into possession of a copy. This
|
|
213
|
+
// License will therefore apply, along with any applicable section 7
|
|
214
|
+
// additional terms, to the whole of the work, and all its parts,
|
|
215
|
+
// regardless of how they are packaged. This License gives no
|
|
216
|
+
// permission to license the work in any other way, but it does not
|
|
217
|
+
// invalidate such permission if you have separately received it.
|
|
218
|
+
//
|
|
219
|
+
// d) If the work has interactive user interfaces, each must display
|
|
220
|
+
// Appropriate Legal Notices; however, if the Program has interactive
|
|
221
|
+
// interfaces that do not display Appropriate Legal Notices, your
|
|
222
|
+
// work need not make them do so.
|
|
223
|
+
//
|
|
224
|
+
// A compilation of a covered work with other separate and independent
|
|
225
|
+
// works, which are not by their nature extensions of the covered work,
|
|
226
|
+
// and which are not combined with it such as to form a larger program,
|
|
227
|
+
// in or on a volume of a storage or distribution medium, is called an
|
|
228
|
+
// "aggregate" if the compilation and its resulting copyright are not
|
|
229
|
+
// used to limit the access or legal rights of the compilation's users
|
|
230
|
+
// beyond what the individual works permit. Inclusion of a covered work
|
|
231
|
+
// in an aggregate does not cause this License to apply to the other
|
|
232
|
+
// parts of the aggregate.
|
|
233
|
+
//
|
|
234
|
+
// 6. Conveying Non-Source Forms.
|
|
235
|
+
//
|
|
236
|
+
// You may convey a covered work in object code form under the terms
|
|
237
|
+
// of sections 4 and 5, provided that you also convey the
|
|
238
|
+
// machine-readable Corresponding Source under the terms of this License,
|
|
239
|
+
// in one of these ways:
|
|
240
|
+
//
|
|
241
|
+
// a) Convey the object code in, or embodied in, a physical product
|
|
242
|
+
// (including a physical distribution medium), accompanied by the
|
|
243
|
+
// Corresponding Source fixed on a durable physical medium
|
|
244
|
+
// customarily used for software interchange.
|
|
245
|
+
//
|
|
246
|
+
// b) Convey the object code in, or embodied in, a physical product
|
|
247
|
+
// (including a physical distribution medium), accompanied by a
|
|
248
|
+
// written offer, valid for at least three years and valid for as
|
|
249
|
+
// long as you offer spare parts or customer support for that product
|
|
250
|
+
// model, to give anyone who possesses the object code either (1) a
|
|
251
|
+
// copy of the Corresponding Source for all the software in the
|
|
252
|
+
// product that is covered by this License, on a durable physical
|
|
253
|
+
// medium customarily used for software interchange, for a price no
|
|
254
|
+
// more than your reasonable cost of physically performing this
|
|
255
|
+
// conveying of source, or (2) access to copy the
|
|
256
|
+
// Corresponding Source from a network server at no charge.
|
|
257
|
+
//
|
|
258
|
+
// c) Convey individual copies of the object code with a copy of the
|
|
259
|
+
// written offer to provide the Corresponding Source. This
|
|
260
|
+
// alternative is allowed only occasionally and noncommercially, and
|
|
261
|
+
// only if you received the object code with such an offer, in accord
|
|
262
|
+
// with subsection 6b.
|
|
263
|
+
//
|
|
264
|
+
// d) Convey the object code by offering access from a designated
|
|
265
|
+
// place (gratis or for a charge), and offer equivalent access to the
|
|
266
|
+
// Corresponding Source in the same way through the same place at no
|
|
267
|
+
// further charge. You need not require recipients to copy the
|
|
268
|
+
// Corresponding Source along with the object code. If the place to
|
|
269
|
+
// copy the object code is a network server, the Corresponding Source
|
|
270
|
+
// may be on a different server (operated by you or a third party)
|
|
271
|
+
// that supports equivalent copying facilities, provided you maintain
|
|
272
|
+
// clear directions next to the object code saying where to find the
|
|
273
|
+
// Corresponding Source. Regardless of what server hosts the
|
|
274
|
+
// Corresponding Source, you remain obligated to ensure that it is
|
|
275
|
+
// available for as long as needed to satisfy these requirements.
|
|
276
|
+
//
|
|
277
|
+
// e) Convey the object code using peer-to-peer transmission, provided
|
|
278
|
+
// you inform other peers where the object code and Corresponding
|
|
279
|
+
// Source of the work are being offered to the general public at no
|
|
280
|
+
// charge under subsection 6d.
|
|
281
|
+
//
|
|
282
|
+
// A separable portion of the object code, whose source code is excluded
|
|
283
|
+
// from the Corresponding Source as a System Library, need not be
|
|
284
|
+
// included in conveying the object code work.
|
|
285
|
+
//
|
|
286
|
+
// A "User Product" is either (1) a "consumer product", which means any
|
|
287
|
+
// tangible personal property which is normally used for personal, family,
|
|
288
|
+
// or household purposes, or (2) anything designed or sold for incorporation
|
|
289
|
+
// into a dwelling. In determining whether a product is a consumer product,
|
|
290
|
+
// doubtful cases shall be resolved in favor of coverage. For a particular
|
|
291
|
+
// product received by a particular user, "normally used" refers to a
|
|
292
|
+
// typical or common use of that class of product, regardless of the status
|
|
293
|
+
// of the particular user or of the way in which the particular user
|
|
294
|
+
// actually uses, or expects or is expected to use, the product. A product
|
|
295
|
+
// is a consumer product regardless of whether the product has substantial
|
|
296
|
+
// commercial, industrial or non-consumer uses, unless such uses represent
|
|
297
|
+
// the only significant mode of use of the product.
|
|
298
|
+
//
|
|
299
|
+
// "Installation Information" for a User Product means any methods,
|
|
300
|
+
// procedures, authorization keys, or other information required to install
|
|
301
|
+
// and execute modified versions of a covered work in that User Product from
|
|
302
|
+
// a modified version of its Corresponding Source. The information must
|
|
303
|
+
// suffice to ensure that the continued functioning of the modified object
|
|
304
|
+
// code is in no case prevented or interfered with solely because
|
|
305
|
+
// modification has been made.
|
|
306
|
+
//
|
|
307
|
+
// If you convey an object code work under this section in, or with, or
|
|
308
|
+
// specifically for use in, a User Product, and the conveying occurs as
|
|
309
|
+
// part of a transaction in which the right of possession and use of the
|
|
310
|
+
// User Product is transferred to the recipient in perpetuity or for a
|
|
311
|
+
// fixed term (regardless of how the transaction is characterized), the
|
|
312
|
+
// Corresponding Source conveyed under this section must be accompanied
|
|
313
|
+
// by the Installation Information. But this requirement does not apply
|
|
314
|
+
// if neither you nor any third party retains the ability to install
|
|
315
|
+
// modified object code on the User Product (for example, the work has
|
|
316
|
+
// been installed in ROM).
|
|
317
|
+
//
|
|
318
|
+
// The requirement to provide Installation Information does not include a
|
|
319
|
+
// requirement to continue to provide support service, warranty, or updates
|
|
320
|
+
// for a work that has been modified or installed by the recipient, or for
|
|
321
|
+
// the User Product in which it has been modified or installed. Access to a
|
|
322
|
+
// network may be denied when the modification itself materially and
|
|
323
|
+
// adversely affects the operation of the network or violates the rules and
|
|
324
|
+
// protocols for communication across the network.
|
|
325
|
+
//
|
|
326
|
+
// Corresponding Source conveyed, and Installation Information provided,
|
|
327
|
+
// in accord with this section must be in a format that is publicly
|
|
328
|
+
// documented (and with an implementation available to the public in
|
|
329
|
+
// source code form), and must require no special password or key for
|
|
330
|
+
// unpacking, reading or copying.
|
|
331
|
+
//
|
|
332
|
+
// 7. Additional Terms.
|
|
333
|
+
//
|
|
334
|
+
// "Additional permissions" are terms that supplement the terms of this
|
|
335
|
+
// License by making exceptions from one or more of its conditions.
|
|
336
|
+
// Additional permissions that are applicable to the entire Program shall
|
|
337
|
+
// be treated as though they were included in this License, to the extent
|
|
338
|
+
// that they are valid under applicable law. If additional permissions
|
|
339
|
+
// apply only to part of the Program, that part may be used separately
|
|
340
|
+
// under those permissions, but the entire Program remains governed by
|
|
341
|
+
// this License without regard to the additional permissions.
|
|
342
|
+
//
|
|
343
|
+
// When you convey a copy of a covered work, you may at your option
|
|
344
|
+
// remove any additional permissions from that copy, or from any part of
|
|
345
|
+
// it. (Additional permissions may be written to require their own
|
|
346
|
+
// removal in certain cases when you modify the work.) You may place
|
|
347
|
+
// additional permissions on material, added by you to a covered work,
|
|
348
|
+
// for which you have or can give appropriate copyright permission.
|
|
349
|
+
//
|
|
350
|
+
// Notwithstanding any other provision of this License, for material you
|
|
351
|
+
// add to a covered work, you may (if authorized by the copyright holders of
|
|
352
|
+
// that material) supplement the terms of this License with terms:
|
|
353
|
+
//
|
|
354
|
+
// a) Disclaiming warranty or limiting liability differently from the
|
|
355
|
+
// terms of sections 15 and 16 of this License; or
|
|
356
|
+
//
|
|
357
|
+
// b) Requiring preservation of specified reasonable legal notices or
|
|
358
|
+
// author attributions in that material or in the Appropriate Legal
|
|
359
|
+
// Notices displayed by works containing it; or
|
|
360
|
+
//
|
|
361
|
+
// c) Prohibiting misrepresentation of the origin of that material, or
|
|
362
|
+
// requiring that modified versions of such material be marked in
|
|
363
|
+
// reasonable ways as different from the original version; or
|
|
364
|
+
//
|
|
365
|
+
// d) Limiting the use for publicity purposes of names of licensors or
|
|
366
|
+
// authors of the material; or
|
|
367
|
+
//
|
|
368
|
+
// e) Declining to grant rights under trademark law for use of some
|
|
369
|
+
// trade names, trademarks, or service marks; or
|
|
370
|
+
//
|
|
371
|
+
// f) Requiring indemnification of licensors and authors of that
|
|
372
|
+
// material by anyone who conveys the material (or modified versions of
|
|
373
|
+
// it) with contractual assumptions of liability to the recipient, for
|
|
374
|
+
// any liability that these contractual assumptions directly impose on
|
|
375
|
+
// those licensors and authors.
|
|
376
|
+
//
|
|
377
|
+
// All other non-permissive additional terms are considered "further
|
|
378
|
+
// restrictions" within the meaning of section 10. If the Program as you
|
|
379
|
+
// received it, or any part of it, contains a notice stating that it is
|
|
380
|
+
// governed by this License along with a term that is a further
|
|
381
|
+
// restriction, you may remove that term. If a license document contains
|
|
382
|
+
// a further restriction but permits relicensing or conveying under this
|
|
383
|
+
// License, you may add to a covered work material governed by the terms
|
|
384
|
+
// of that license document, provided that the further restriction does
|
|
385
|
+
// not survive such relicensing or conveying.
|
|
386
|
+
//
|
|
387
|
+
// If you add terms to a covered work in accord with this section, you
|
|
388
|
+
// must place, in the relevant source files, a statement of the
|
|
389
|
+
// additional terms that apply to those files, or a notice indicating
|
|
390
|
+
// where to find the applicable terms.
|
|
391
|
+
//
|
|
392
|
+
// Additional terms, permissive or non-permissive, may be stated in the
|
|
393
|
+
// form of a separately written license, or stated as exceptions;
|
|
394
|
+
// the above requirements apply either way.
|
|
395
|
+
//
|
|
396
|
+
// 8. Termination.
|
|
397
|
+
//
|
|
398
|
+
// You may not propagate or modify a covered work except as expressly
|
|
399
|
+
// provided under this License. Any attempt otherwise to propagate or
|
|
400
|
+
// modify it is void, and will automatically terminate your rights under
|
|
401
|
+
// this License (including any patent licenses granted under the third
|
|
402
|
+
// paragraph of section 11).
|
|
403
|
+
//
|
|
404
|
+
// However, if you cease all violation of this License, then your
|
|
405
|
+
// license from a particular copyright holder is reinstated (a)
|
|
406
|
+
// provisionally, unless and until the copyright holder explicitly and
|
|
407
|
+
// finally terminates your license, and (b) permanently, if the copyright
|
|
408
|
+
// holder fails to notify you of the violation by some reasonable means
|
|
409
|
+
// prior to 60 days after the cessation.
|
|
410
|
+
//
|
|
411
|
+
// Moreover, your license from a particular copyright holder is
|
|
412
|
+
// reinstated permanently if the copyright holder notifies you of the
|
|
413
|
+
// violation by some reasonable means, this is the first time you have
|
|
414
|
+
// received notice of violation of this License (for any work) from that
|
|
415
|
+
// copyright holder, and you cure the violation prior to 30 days after
|
|
416
|
+
// your receipt of the notice.
|
|
417
|
+
//
|
|
418
|
+
// Termination of your rights under this section does not terminate the
|
|
419
|
+
// licenses of parties who have received copies or rights from you under
|
|
420
|
+
// this License. If your rights have been terminated and not permanently
|
|
421
|
+
// reinstated, you do not qualify to receive new licenses for the same
|
|
422
|
+
// material under section 10.
|
|
423
|
+
//
|
|
424
|
+
// 9. Acceptance Not Required for Having Copies.
|
|
425
|
+
//
|
|
426
|
+
// You are not required to accept this License in order to receive or
|
|
427
|
+
// run a copy of the Program. Ancillary propagation of a covered work
|
|
428
|
+
// occurring solely as a consequence of using peer-to-peer transmission
|
|
429
|
+
// to receive a copy likewise does not require acceptance. However,
|
|
430
|
+
// nothing other than this License grants you permission to propagate or
|
|
431
|
+
// modify any covered work. These actions infringe copyright if you do
|
|
432
|
+
// not accept this License. Therefore, by modifying or propagating a
|
|
433
|
+
// covered work, you indicate your acceptance of this License to do so.
|
|
434
|
+
//
|
|
435
|
+
// 10. Automatic Licensing of Downstream Recipients.
|
|
436
|
+
//
|
|
437
|
+
// Each time you convey a covered work, the recipient automatically
|
|
438
|
+
// receives a license from the original licensors, to run, modify and
|
|
439
|
+
// propagate that work, subject to this License. You are not responsible
|
|
440
|
+
// for enforcing compliance by third parties with this License.
|
|
441
|
+
//
|
|
442
|
+
// An "entity transaction" is a transaction transferring control of an
|
|
443
|
+
// organization, or substantially all assets of one, or subdividing an
|
|
444
|
+
// organization, or merging organizations. If propagation of a covered
|
|
445
|
+
// work results from an entity transaction, each party to that
|
|
446
|
+
// transaction who receives a copy of the work also receives whatever
|
|
447
|
+
// licenses to the work the party's predecessor in interest had or could
|
|
448
|
+
// give under the previous paragraph, plus a right to possession of the
|
|
449
|
+
// Corresponding Source of the work from the predecessor in interest, if
|
|
450
|
+
// the predecessor has it or can get it with reasonable efforts.
|
|
451
|
+
//
|
|
452
|
+
// You may not impose any further restrictions on the exercise of the
|
|
453
|
+
// rights granted or affirmed under this License. For example, you may
|
|
454
|
+
// not impose a license fee, royalty, or other charge for exercise of
|
|
455
|
+
// rights granted under this License, and you may not initiate litigation
|
|
456
|
+
// (including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
457
|
+
// any patent claim is infringed by making, using, selling, offering for
|
|
458
|
+
// sale, or importing the Program or any portion of it.
|
|
459
|
+
//
|
|
460
|
+
// 11. Patents.
|
|
461
|
+
//
|
|
462
|
+
// A "contributor" is a copyright holder who authorizes use under this
|
|
463
|
+
// License of the Program or a work on which the Program is based. The
|
|
464
|
+
// work thus licensed is called the contributor's "contributor version".
|
|
465
|
+
//
|
|
466
|
+
// A contributor's "essential patent claims" are all patent claims
|
|
467
|
+
// owned or controlled by the contributor, whether already acquired or
|
|
468
|
+
// hereafter acquired, that would be infringed by some manner, permitted
|
|
469
|
+
// by this License, of making, using, or selling its contributor version,
|
|
470
|
+
// but do not include claims that would be infringed only as a
|
|
471
|
+
// consequence of further modification of the contributor version. For
|
|
472
|
+
// purposes of this definition, "control" includes the right to grant
|
|
473
|
+
// patent sublicenses in a manner consistent with the requirements of
|
|
474
|
+
// this License.
|
|
475
|
+
//
|
|
476
|
+
// Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
477
|
+
// patent license under the contributor's essential patent claims, to
|
|
478
|
+
// make, use, sell, offer for sale, import and otherwise run, modify and
|
|
479
|
+
// propagate the contents of its contributor version.
|
|
480
|
+
//
|
|
481
|
+
// In the following three paragraphs, a "patent license" is any express
|
|
482
|
+
// agreement or commitment, however denominated, not to enforce a patent
|
|
483
|
+
// (such as an express permission to practice a patent or covenant not to
|
|
484
|
+
// sue for patent infringement). To "grant" such a patent license to a
|
|
485
|
+
// party means to make such an agreement or commitment not to enforce a
|
|
486
|
+
// patent against the party.
|
|
487
|
+
//
|
|
488
|
+
// If you convey a covered work, knowingly relying on a patent license,
|
|
489
|
+
// and the Corresponding Source of the work is not available for anyone
|
|
490
|
+
// to copy, free of charge and under the terms of this License, through a
|
|
491
|
+
// publicly available network server or other readily accessible means,
|
|
492
|
+
// then you must either (1) cause the Corresponding Source to be so
|
|
493
|
+
// available, or (2) arrange to deprive yourself of the benefit of the
|
|
494
|
+
// patent license for this particular work, or (3) arrange, in a manner
|
|
495
|
+
// consistent with the requirements of this License, to extend the patent
|
|
496
|
+
// license to downstream recipients. "Knowingly relying" means you have
|
|
497
|
+
// actual knowledge that, but for the patent license, your conveying the
|
|
498
|
+
// covered work in a country, or your recipient's use of the covered work
|
|
499
|
+
// in a country, would infringe one or more identifiable patents in that
|
|
500
|
+
// country that you have reason to believe are valid.
|
|
501
|
+
//
|
|
502
|
+
// If, pursuant to or in connection with a single transaction or
|
|
503
|
+
// arrangement, you convey, or propagate by procuring conveyance of, a
|
|
504
|
+
// covered work, and grant a patent license to some of the parties
|
|
505
|
+
// receiving the covered work authorizing them to use, propagate, modify
|
|
506
|
+
// or convey a specific copy of the covered work, then the patent license
|
|
507
|
+
// you grant is automatically extended to all recipients of the covered
|
|
508
|
+
// work and works based on it.
|
|
509
|
+
//
|
|
510
|
+
// A patent license is "discriminatory" if it does not include within
|
|
511
|
+
// the scope of its coverage, prohibits the exercise of, or is
|
|
512
|
+
// conditioned on the non-exercise of one or more of the rights that are
|
|
513
|
+
// specifically granted under this License. You may not convey a covered
|
|
514
|
+
// work if you are a party to an arrangement with a third party that is
|
|
515
|
+
// in the business of distributing software, under which you make payment
|
|
516
|
+
// to the third party based on the extent of your activity of conveying
|
|
517
|
+
// the work, and under which the third party grants, to any of the
|
|
518
|
+
// parties who would receive the covered work from you, a discriminatory
|
|
519
|
+
// patent license (a) in connection with copies of the covered work
|
|
520
|
+
// conveyed by you (or copies made from those copies), or (b) primarily
|
|
521
|
+
// for and in connection with specific products or compilations that
|
|
522
|
+
// contain the covered work, unless you entered into that arrangement,
|
|
523
|
+
// or that patent license was granted, prior to 28 March 2007.
|
|
524
|
+
//
|
|
525
|
+
// Nothing in this License shall be construed as excluding or limiting
|
|
526
|
+
// any implied license or other defenses to infringement that may
|
|
527
|
+
// otherwise be available to you under applicable patent law.
|
|
528
|
+
//
|
|
529
|
+
// 12. No Surrender of Others' Freedom.
|
|
530
|
+
//
|
|
531
|
+
// If conditions are imposed on you (whether by court order, agreement or
|
|
532
|
+
// otherwise) that contradict the conditions of this License, they do not
|
|
533
|
+
// excuse you from the conditions of this License. If you cannot convey a
|
|
534
|
+
// covered work so as to satisfy simultaneously your obligations under this
|
|
535
|
+
// License and any other pertinent obligations, then as a consequence you may
|
|
536
|
+
// not convey it at all. For example, if you agree to terms that obligate you
|
|
537
|
+
// to collect a royalty for further conveying from those to whom you convey
|
|
538
|
+
// the Program, the only way you could satisfy both those terms and this
|
|
539
|
+
// License would be to refrain entirely from conveying the Program.
|
|
540
|
+
//
|
|
541
|
+
// 13. Remote Network Interaction; Use with the GNU General Public License.
|
|
542
|
+
//
|
|
543
|
+
// Notwithstanding any other provision of this License, if you modify the
|
|
544
|
+
// Program, your modified version must prominently offer all users
|
|
545
|
+
// interacting with it remotely through a computer network (if your version
|
|
546
|
+
// supports such interaction) an opportunity to receive the Corresponding
|
|
547
|
+
// Source of your version by providing access to the Corresponding Source
|
|
548
|
+
// from a network server at no charge, through some standard or customary
|
|
549
|
+
// means of facilitating copying of software. This Corresponding Source
|
|
550
|
+
// shall include the Corresponding Source for any work covered by version 3
|
|
551
|
+
// of the GNU General Public License that is incorporated pursuant to the
|
|
552
|
+
// following paragraph.
|
|
553
|
+
//
|
|
554
|
+
// Notwithstanding any other provision of this License, you have
|
|
555
|
+
// permission to link or combine any covered work with a work licensed
|
|
556
|
+
// under version 3 of the GNU General Public License into a single
|
|
557
|
+
// combined work, and to convey the resulting work. The terms of this
|
|
558
|
+
// License will continue to apply to the part which is the covered work,
|
|
559
|
+
// but the work with which it is combined will remain governed by version
|
|
560
|
+
// 3 of the GNU General Public License.
|
|
561
|
+
//
|
|
562
|
+
// 14. Revised Versions of this License.
|
|
563
|
+
//
|
|
564
|
+
// The Free Software Foundation may publish revised and/or new versions of
|
|
565
|
+
// the GNU Affero General Public License from time to time. Such new versions
|
|
566
|
+
// will be similar in spirit to the present version, but may differ in detail to
|
|
567
|
+
// address new problems or concerns.
|
|
568
|
+
//
|
|
569
|
+
// Each version is given a distinguishing version number. If the
|
|
570
|
+
// Program specifies that a certain numbered version of the GNU Affero General
|
|
571
|
+
// Public License "or any later version" applies to it, you have the
|
|
572
|
+
// option of following the terms and conditions either of that numbered
|
|
573
|
+
// version or of any later version published by the Free Software
|
|
574
|
+
// Foundation. If the Program does not specify a version number of the
|
|
575
|
+
// GNU Affero General Public License, you may choose any version ever published
|
|
576
|
+
// by the Free Software Foundation.
|
|
577
|
+
//
|
|
578
|
+
// If the Program specifies that a proxy can decide which future
|
|
579
|
+
// versions of the GNU Affero General Public License can be used, that proxy's
|
|
580
|
+
// public statement of acceptance of a version permanently authorizes you
|
|
581
|
+
// to choose that version for the Program.
|
|
582
|
+
//
|
|
583
|
+
// Later license versions may give you additional or different
|
|
584
|
+
// permissions. However, no additional obligations are imposed on any
|
|
585
|
+
// author or copyright holder as a result of your choosing to follow a
|
|
586
|
+
// later version.
|
|
587
|
+
//
|
|
588
|
+
// 15. Disclaimer of Warranty.
|
|
589
|
+
//
|
|
590
|
+
// THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
591
|
+
// APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
592
|
+
// HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
593
|
+
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
594
|
+
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
595
|
+
// PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
596
|
+
// IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
597
|
+
// ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
598
|
+
//
|
|
599
|
+
// 16. Limitation of Liability.
|
|
600
|
+
//
|
|
601
|
+
// IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
602
|
+
// WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
603
|
+
// THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
604
|
+
// GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
605
|
+
// USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
606
|
+
// DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
607
|
+
// PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
608
|
+
// EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
609
|
+
// SUCH DAMAGES.
|
|
610
|
+
//
|
|
611
|
+
// 17. Interpretation of Sections 15 and 16.
|
|
612
|
+
//
|
|
613
|
+
// If the disclaimer of warranty and limitation of liability provided
|
|
614
|
+
// above cannot be given local legal effect according to their terms,
|
|
615
|
+
// reviewing courts shall apply local law that most closely approximates
|
|
616
|
+
// an absolute waiver of all civil liability in connection with the
|
|
617
|
+
// Program, unless a warranty or assumption of liability accompanies a
|
|
618
|
+
// copy of the Program in return for a fee.
|
|
619
|
+
//
|
|
620
|
+
// END OF TERMS AND CONDITIONS
|
|
621
|
+
//
|
|
622
|
+
// How to Apply These Terms to Your New Programs
|
|
623
|
+
//
|
|
624
|
+
// If you develop a new program, and you want it to be of the greatest
|
|
625
|
+
// possible use to the public, the best way to achieve this is to make it
|
|
626
|
+
// free software which everyone can redistribute and change under these terms.
|
|
627
|
+
//
|
|
628
|
+
// To do so, attach the following notices to the program. It is safest
|
|
629
|
+
// to attach them to the start of each source file to most effectively
|
|
630
|
+
// state the exclusion of warranty; and each file should have at least
|
|
631
|
+
// the "copyright" line and a pointer to where the full notice is found.
|
|
632
|
+
//
|
|
633
|
+
// <one line to give the program's name and a brief idea of what it does.>
|
|
634
|
+
// Copyright (C) <year> <name of author>
|
|
635
|
+
//
|
|
636
|
+
// This program is free software: you can redistribute it and/or modify
|
|
637
|
+
// it under the terms of the GNU Affero General Public License as published
|
|
638
|
+
// by the Free Software Foundation, either version 3 of the License, or
|
|
639
|
+
// (at your option) any later version.
|
|
640
|
+
//
|
|
641
|
+
// This program is distributed in the hope that it will be useful,
|
|
642
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
643
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
644
|
+
// GNU Affero General Public License for more details.
|
|
645
|
+
//
|
|
646
|
+
// You should have received a copy of the GNU Affero General Public License
|
|
647
|
+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
648
|
+
//
|
|
649
|
+
// Also add information on how to contact you by electronic and paper mail.
|
|
650
|
+
//
|
|
651
|
+
// If your software can interact with users remotely through a computer
|
|
652
|
+
// network, you should also make sure that it provides a way for users to
|
|
653
|
+
// get its source. For example, if your program is a web application, its
|
|
654
|
+
// interface could display a "Source" link that leads users to an archive
|
|
655
|
+
// of the code. There are many ways you could offer source, and different
|
|
656
|
+
// solutions will be better for different programs; see section 13 for the
|
|
657
|
+
// specific requirements.
|
|
658
|
+
//
|
|
659
|
+
// You should also get your employer (if you work as a programmer) or school,
|
|
660
|
+
// if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
661
|
+
// For more information on this, and how to apply and follow the GNU AGPL, see
|
|
662
|
+
// <https://www.gnu.org/licenses/>.
|
|
663
|
+
//
|
|
664
|
+
// React
|
|
665
|
+
// MIT License
|
|
666
|
+
//
|
|
667
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
668
|
+
//
|
|
669
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
670
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
671
|
+
// in the Software without restriction, including without limitation the rights
|
|
672
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
673
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
674
|
+
// furnished to do so, subject to the following conditions:
|
|
675
|
+
//
|
|
676
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
677
|
+
// copies or substantial portions of the Software.
|
|
678
|
+
//
|
|
679
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
680
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
681
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
682
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
683
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
684
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
685
|
+
// SOFTWARE.
|
|
686
|
+
//
|
|
687
|
+
// ReactDOM
|
|
688
|
+
// MIT License
|
|
689
|
+
//
|
|
690
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
691
|
+
//
|
|
692
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
693
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
694
|
+
// in the Software without restriction, including without limitation the rights
|
|
695
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
696
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
697
|
+
// furnished to do so, subject to the following conditions:
|
|
698
|
+
//
|
|
699
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
700
|
+
// copies or substantial portions of the Software.
|
|
701
|
+
//
|
|
702
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
703
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
704
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
705
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
706
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
707
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
708
|
+
// SOFTWARE.
|
|
709
|
+
//
|
|
710
|
+
// Scheduler
|
|
711
|
+
// MIT License
|
|
712
|
+
//
|
|
713
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
714
|
+
//
|
|
715
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
716
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
717
|
+
// in the Software without restriction, including without limitation the rights
|
|
718
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
719
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
720
|
+
// furnished to do so, subject to the following conditions:
|
|
721
|
+
//
|
|
722
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
723
|
+
// copies or substantial portions of the Software.
|
|
724
|
+
//
|
|
725
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
726
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
727
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
728
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
729
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
730
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
731
|
+
// SOFTWARE.
|
|
732
|
+
//
|
|
733
|
+
// Lucide
|
|
734
|
+
// ISC License
|
|
735
|
+
//
|
|
736
|
+
// Copyright (c) 2026 Lucide Icons and Contributors
|
|
737
|
+
//
|
|
738
|
+
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
|
739
|
+
//
|
|
740
|
+
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
741
|
+
//
|
|
742
|
+
// Feather icons incorporated in Lucide are distributed under the MIT License.
|
|
743
|
+
//
|
|
744
|
+
// Copyright (c) 2013-present Cole Bemis
|
|
745
|
+
//
|
|
746
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
747
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
748
|
+
// in the Software without restriction, including without limitation the rights
|
|
749
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
750
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
751
|
+
// furnished to do so, subject to the following conditions:
|
|
752
|
+
//
|
|
753
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
754
|
+
// copies or substantial portions of the Software.
|
|
755
|
+
//
|
|
756
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
757
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
758
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
759
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
760
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
761
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
762
|
+
// SOFTWARE.
|
|
763
|
+
//
|
|
764
|
+
// Source
|
|
765
|
+
// K-Plex Web 0.0.6 (pack 0.4.6)
|
|
766
|
+
// Copyright K-Plex contributors. Distributed under AGPL-3.0-only.
|
|
767
|
+
// Corresponding source: https://github.com/zsviczian/kplex/tree/1b2559404a4fbb0561c2f53a038795a3908ac8b8
|
|
768
|
+
// Use the source for the exact release that supplied this runtime. When redistributing a custom build, make its exact corresponding source available.
|
|
769
|
+
//
|
|
770
|
+
(()=>{var d1=Object.create;var Om=Object.defineProperty;var m1=Object.getOwnPropertyDescriptor;var h1=Object.getOwnPropertyNames;var p1=Object.getPrototypeOf,g1=Object.prototype.hasOwnProperty;var Dn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var y1=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of h1(t))!g1.call(e,l)&&l!==n&&Om(e,l,{get:()=>t[l],enumerable:!(i=m1(t,l))||i.enumerable});return e};var X=(e,t,n)=>(n=e!=null?d1(p1(e)):{},y1(t||!e||!e.__esModule?Om(n,"default",{value:e,enumerable:!0}):n,e));var Fm=Dn(He=>{"use strict";function Wc(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,l=e[i];if(0<zr(l,t))e[i]=t,e[n]=l,n=i;else break e}}function Hn(e){return e.length===0?null:e[0]}function Dr(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,l=e.length,a=l>>>1;i<a;){var o=2*(i+1)-1,r=e[o],u=o+1,c=e[u];if(0>zr(r,n))u<l&&0>zr(c,r)?(e[i]=c,e[u]=n,i=u):(e[i]=r,e[o]=n,i=o);else if(u<l&&0>zr(c,n))e[i]=c,e[u]=n,i=u;else break e}}return t}function zr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}He.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Ym=performance,He.unstable_now=function(){return Ym.now()}):(Jc=Date,qm=Jc.now(),He.unstable_now=function(){return Jc.now()-qm});var Ym,Jc,qm,ai=[],Ni=[],L1=1,an=null,gt=3,es=!1,eo=!1,to=!1,ts=!1,Km=typeof setTimeout=="function"?setTimeout:null,Qm=typeof clearTimeout=="function"?clearTimeout:null,jm=typeof setImmediate<"u"?setImmediate:null;function Or(e){for(var t=Hn(Ni);t!==null;){if(t.callback===null)Dr(Ni);else if(t.startTime<=e)Dr(Ni),t.sortIndex=t.expirationTime,Wc(ai,t);else break;t=Hn(Ni)}}function ns(e){if(to=!1,Or(e),!eo)if(Hn(ai)!==null)eo=!0,Yl||(Yl=!0,Gl());else{var t=Hn(Ni);t!==null&&is(ns,t.startTime-e)}}var Yl=!1,no=-1,Zm=5,Im=-1;function Jm(){return ts?!0:!(He.unstable_now()-Im<Zm)}function Fc(){if(ts=!1,Yl){var e=He.unstable_now();Im=e;var t=!0;try{e:{eo=!1,to&&(to=!1,Qm(no),no=-1),es=!0;var n=gt;try{t:{for(Or(e),an=Hn(ai);an!==null&&!(an.expirationTime>e&&Jm());){var i=an.callback;if(typeof i=="function"){an.callback=null,gt=an.priorityLevel;var l=i(an.expirationTime<=e);if(e=He.unstable_now(),typeof l=="function"){an.callback=l,Or(e),t=!0;break t}an===Hn(ai)&&Dr(ai),Or(e)}else Dr(ai);an=Hn(ai)}if(an!==null)t=!0;else{var a=Hn(Ni);a!==null&&is(ns,a.startTime-e),t=!1}}break e}finally{an=null,gt=n,es=!1}t=void 0}}finally{t?Gl():Yl=!1}}}var Gl;typeof jm=="function"?Gl=function(){jm(Fc)}:typeof MessageChannel<"u"?($c=new MessageChannel,Xm=$c.port2,$c.port1.onmessage=Fc,Gl=function(){Xm.postMessage(null)}):Gl=function(){Km(Fc,0)};var $c,Xm;function is(e,t){no=Km(function(){e(He.unstable_now())},t)}He.unstable_IdlePriority=5;He.unstable_ImmediatePriority=1;He.unstable_LowPriority=4;He.unstable_NormalPriority=3;He.unstable_Profiling=null;He.unstable_UserBlockingPriority=2;He.unstable_cancelCallback=function(e){e.callback=null};He.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Zm=0<e?Math.floor(1e3/e):5};He.unstable_getCurrentPriorityLevel=function(){return gt};He.unstable_next=function(e){switch(gt){case 1:case 2:case 3:var t=3;break;default:t=gt}var n=gt;gt=t;try{return e()}finally{gt=n}};He.unstable_requestPaint=function(){ts=!0};He.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=gt;gt=e;try{return t()}finally{gt=n}};He.unstable_scheduleCallback=function(e,t,n){var i=He.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=n+l,e={id:L1++,callback:t,priorityLevel:e,startTime:n,expirationTime:l,sortIndex:-1},n>i?(e.sortIndex=n,Wc(Ni,e),Hn(ai)===null&&e===Hn(Ni)&&(to?(Qm(no),no=-1):to=!0,is(ns,n-i))):(e.sortIndex=l,Wc(ai,e),eo||es||(eo=!0,Yl||(Yl=!0,Gl()))),e};He.unstable_shouldYield=Jm;He.unstable_wrapCallback=function(e){var t=gt;return function(){var n=gt;gt=t;try{return e.apply(this,arguments)}finally{gt=n}}}});var Wm=Dn((BM,$m)=>{"use strict";$m.exports=Fm()});var dh=Dn($=>{"use strict";var os=Symbol.for("react.transitional.element"),_1=Symbol.for("react.portal"),H1=Symbol.for("react.fragment"),U1=Symbol.for("react.strict_mode"),P1=Symbol.for("react.profiler"),k1=Symbol.for("react.consumer"),V1=Symbol.for("react.context"),B1=Symbol.for("react.forward_ref"),G1=Symbol.for("react.suspense"),Y1=Symbol.for("react.memo"),lh=Symbol.for("react.lazy"),q1=Symbol.for("react.activity"),j1=Symbol.for("react.view_transition"),eh=Symbol.iterator;function X1(e){return e===null||typeof e!="object"?null:(e=eh&&e[eh]||e["@@iterator"],typeof e=="function"?e:null)}var ah={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},oh=Object.assign,rh={};function jl(e,t,n){this.props=e,this.context=t,this.refs=rh,this.updater=n||ah}jl.prototype.isReactComponent={};jl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function uh(){}uh.prototype=jl.prototype;function rs(e,t,n){this.props=e,this.context=t,this.refs=rh,this.updater=n||ah}var us=rs.prototype=new uh;us.constructor=rs;oh(us,jl.prototype);us.isPureReactComponent=!0;var th=Array.isArray;function as(){}var Ce={H:null,A:null,T:null,S:null},ch=Object.prototype.hasOwnProperty;function cs(e,t,n){var i=n.ref;return{$$typeof:os,type:e,key:t,ref:i!==void 0?i:null,props:n}}function K1(e,t){return cs(e.type,t,e.props)}function ss(e){return typeof e=="object"&&e!==null&&e.$$typeof===os}function Q1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var nh=/\/+/g;function ls(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Q1(""+e.key):t.toString(36)}function Z1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(as,as):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ql(e,t,n,i,l){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case os:case _1:o=!0;break;case lh:return o=e._init,ql(o(e._payload),t,n,i,l)}}if(o)return l=l(e),o=i===""?"."+ls(e,0):i,th(l)?(n="",o!=null&&(n=o.replace(nh,"$&/")+"/"),ql(l,t,n,"",function(c){return c})):l!=null&&(ss(l)&&(l=K1(l,n+(l.key==null||e&&e.key===l.key?"":(""+l.key).replace(nh,"$&/")+"/")+o)),t.push(l)),1;o=0;var r=i===""?".":i+":";if(th(e))for(var u=0;u<e.length;u++)i=e[u],a=r+ls(i,u),o+=ql(i,t,n,a,l);else if(u=X1(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,a=r+ls(i,u++),o+=ql(i,t,n,a,l);else if(a==="object"){if(typeof e.then=="function")return ql(Z1(e),t,n,i,l);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function Lr(e,t,n){if(e==null)return e;var i=[],l=0;return ql(e,i,"","",function(a){return t.call(n,a,l++)}),i}function I1(e){if(e._status===-1){var t=e._result,n=t();n.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ih=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function sh(e){var t=Ce.T,n={};n.types=t!==null?t.types:null,Ce.T=n;try{var i=e(),l=Ce.S;l!==null&&l(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(as,ih)}catch(a){ih(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ce.T=t}}function fh(e){var t=Ce.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else sh(fh.bind(null,e))}var J1={map:Lr,forEach:function(e,t,n){Lr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Lr(e,function(){t++}),t},toArray:function(e){return Lr(e,function(t){return t})||[]},only:function(e){if(!ss(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$.Activity=q1;$.Children=J1;$.Component=jl;$.Fragment=H1;$.Profiler=P1;$.PureComponent=rs;$.StrictMode=U1;$.Suspense=G1;$.ViewTransition=j1;$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ce;$.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ce.H.useMemoCache(e)}};$.addTransitionType=fh;$.cache=function(e){return function(){return e.apply(null,arguments)}};$.cacheSignal=function(){return null};$.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=oh({},e.props),l=e.key;if(t!=null)for(a in t.key!==void 0&&(l=""+t.key),t)!ch.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(i[a]=t[a]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var o=Array(a),r=0;r<a;r++)o[r]=arguments[r+2];i.children=o}return cs(e.type,l,i)};$.createContext=function(e){return e={$$typeof:V1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:k1,_context:e},e};$.createElement=function(e,t,n){var i,l={},a=null;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)ch.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(l[i]=t[i]);var o=arguments.length-2;if(o===1)l.children=n;else if(1<o){for(var r=Array(o),u=0;u<o;u++)r[u]=arguments[u+2];l.children=r}if(e&&e.defaultProps)for(i in o=e.defaultProps,o)l[i]===void 0&&(l[i]=o[i]);return cs(e,a,l)};$.createRef=function(){return{current:null}};$.forwardRef=function(e){return{$$typeof:B1,render:e}};$.isValidElement=ss;$.lazy=function(e){return{$$typeof:lh,_payload:{_status:-1,_result:e},_init:I1}};$.memo=function(e,t){return{$$typeof:Y1,type:e,compare:t===void 0?null:t}};$.startTransition=sh;$.unstable_useCacheRefresh=function(){return Ce.H.useCacheRefresh()};$.use=function(e){return Ce.H.use(e)};$.useActionState=function(e,t,n){return Ce.H.useActionState(e,t,n)};$.useCallback=function(e,t){return Ce.H.useCallback(e,t)};$.useContext=function(e){return Ce.H.useContext(e)};$.useDebugValue=function(){};$.useDeferredValue=function(e,t){return Ce.H.useDeferredValue(e,t)};$.useEffect=function(e,t){return Ce.H.useEffect(e,t)};$.useEffectEvent=function(e){return Ce.H.useEffectEvent(e)};$.useId=function(){return Ce.H.useId()};$.useImperativeHandle=function(e,t,n){return Ce.H.useImperativeHandle(e,t,n)};$.useInsertionEffect=function(e,t){return Ce.H.useInsertionEffect(e,t)};$.useLayoutEffect=function(e,t){return Ce.H.useLayoutEffect(e,t)};$.useMemo=function(e,t){return Ce.H.useMemo(e,t)};$.useOptimistic=function(e,t){return Ce.H.useOptimistic(e,t)};$.useReducer=function(e,t,n){return Ce.H.useReducer(e,t,n)};$.useRef=function(e){return Ce.H.useRef(e)};$.useState=function(e){return Ce.H.useState(e)};$.useSyncExternalStore=function(e,t,n){return Ce.H.useSyncExternalStore(e,t,n)};$.useTransition=function(){return Ce.H.useTransition()};$.version="19.3.0"});var nt=Dn((YM,mh)=>{"use strict";mh.exports=dh()});var gh=Dn(yt=>{"use strict";var F1=nt();function ph(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ri(){}var Nt={d:{f:Ri,r:function(){throw Error(ph(522))},D:Ri,C:Ri,L:Ri,m:Ri,X:Ri,S:Ri,M:Ri},p:0,findDOMNode:null},$1=Symbol.for("react.portal"),W1=Symbol.for("react.recoverable"),hh=Symbol.for("react.optimistic_key");function eS(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$1,key:i==null?null:i===hh?hh:""+i,children:e,containerInfo:t,implementation:n}}var io=F1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _r(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Nt;yt.browser=function(e){return{$$typeof:W1,_reason:e}};yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(ph(299));return eS(e,t,null,n)};yt.flushSync=function(e){var t=io.T,n=Nt.p;try{if(io.T=null,Nt.p=2,e)return e()}finally{io.T=t,Nt.p=n,Nt.d.f()}};yt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Nt.d.C(e,t))};yt.prefetchDNS=function(e){typeof e=="string"&&Nt.d.D(e)};yt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=_r(n,t.crossOrigin),l=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Nt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:l,fetchPriority:a}):n==="script"&&Nt.d.X(e,{crossOrigin:i,integrity:l,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};yt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=_r(t.as,t.crossOrigin);Nt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&Nt.d.M(e)};yt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=_r(n,t.crossOrigin);Nt.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};yt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=_r(t.as,t.crossOrigin);Nt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else Nt.d.m(e)};yt.requestFormReset=function(e){Nt.d.r(e)};yt.unstable_batchedUpdates=function(e,t){return e(t)};yt.useFormState=function(e,t,n){return io.H.useFormState(e,t,n)};yt.useFormStatus=function(){return io.H.useHostTransitionStatus()};yt.version="19.3.0"});var Hr=Dn((jM,bh)=>{"use strict";function yh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yh)}catch(e){console.error(e)}}yh(),bh.exports=gh()});var l0=Dn(gc=>{"use strict";var Fe=Wm(),ig=nt(),tS=Hr();function R(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function lg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xo(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function ag(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function og(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function vh(e){if(Xo(e)!==e)throw Error(R(188))}function nS(e){var t=e.alternate;if(!t){if(t=Xo(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,i=t;;){var l=n.return;if(l===null)break;var a=l.alternate;if(a===null){if(i=l.return,i!==null){n=i;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return vh(l),e;if(a===i)return vh(l),t;a=a.sibling}throw Error(R(188))}if(n.return!==i.return)n=l,i=a;else{for(var o=!1,r=l.child;r;){if(r===n){o=!0,n=l,i=a;break}if(r===i){o=!0,i=l,n=a;break}r=r.sibling}if(!o){for(r=a.child;r;){if(r===n){o=!0,n=a,i=l;break}if(r===i){o=!0,i=a,n=l;break}r=r.sibling}if(!o)throw Error(R(189))}}if(n.alternate!==i)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function rg(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=rg(e),t!==null)return t;e=e.sibling}return null}function Vt(e,t,n,i,l,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,i,l,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Vt(e.child,t,n,i,l,a))return!0;e=e.sibling}return!1}function Ol(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function Sh(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function ug(e){var t=[null,null],n=Ol(e);return n===null||cg(t,e,n.child,{foundSelf:!1}),t}function cg(e,t,n,i){for(;n!==null;){if(n===t)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&cg(e,t,n.child,i))return!0;n=n.sibling}return!1}function Je(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(R(559))}}var Fl=null,Ys=null;function iS(e,t,n){return e===n?!0:e===t?(Fl=e,!0):!1}function lS(e,t,n){return e===n?(Ys=e,!1):e===t?(Ys!==null&&(Fl=e),!0):!1}function xh(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function qs(e,t,n){for(var i=0,l=e;l;l=n(l))i++;l=0;for(var a=t;a;a=n(a))l++;for(;0<i-l;)e=n(e),i--;for(;0<l-i;)t=n(t),l--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var Re=Object.assign,aS=Symbol.for("react.element"),Ur=Symbol.for("react.transitional.element"),so=Symbol.for("react.portal"),$l=Symbol.for("react.fragment"),sg=Symbol.for("react.strict_mode"),js=Symbol.for("react.profiler"),fg=Symbol.for("react.consumer"),Gn=Symbol.for("react.context"),ed=Symbol.for("react.forward_ref"),Xs=Symbol.for("react.suspense"),Ks=Symbol.for("react.suspense_list"),td=Symbol.for("react.memo"),Oi=Symbol.for("react.lazy");Symbol.for("react.scope");var Qs=Symbol.for("react.activity"),oS=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var rS=Symbol.for("react.memo_cache_sentinel"),Zs=Symbol.for("react.view_transition"),uS=Symbol.for("react.recoverable"),wh=Symbol.iterator;function lo(e){return e===null||typeof e!="object"?null:(e=wh&&e[wh]||e["@@iterator"],typeof e=="function"?e:null)}var cS=Symbol.for("react.client.reference");function Is(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===cS?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $l:return"Fragment";case js:return"Profiler";case sg:return"StrictMode";case Xs:return"Suspense";case Ks:return"SuspenseList";case Qs:return"Activity";case Zs:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case so:return"Portal";case Gn:return e.displayName||"Context";case fg:return(e._context.displayName||"Context")+".Consumer";case ed:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case td:return t=e.displayName||null,t!==null?t:Is(e.type)||"Memo";case Oi:t=e._payload,e=e._init;try{return Is(e(t))}catch{}}return null}var fo=Array.isArray,Q=ig.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=tS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bl={pending:!1,data:null,method:null,action:null},Js=[],Wl=-1;function Zn(e){return{current:e}}function st(e){0>Wl||(e.current=Js[Wl],Js[Wl]=null,Wl--)}function Oe(e,t){Wl++,Js[Wl]=e.current,e.current=t}var Xn=Zn(null),Ao=Zn(null),Bi=Zn(null),wu=Zn(null);function Mu(e,t){switch(Oe(Bi,t),Oe(Ao,e),Oe(Xn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Up(t),e=Lb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}st(Xn),Oe(Xn,e)}function va(){st(Xn),st(Ao),st(Bi)}function Fs(e){var t=e.memoizedState;t!==null&&(Aa._currentValue=t.memoizedState,Oe(wu,e)),t=Xn.current;var n=Lb(t,e.type);t!==n&&(Oe(Ao,e),Oe(Xn,n))}function Eu(e){Ao.current===e&&(st(Xn),st(Ao)),wu.current===e&&(st(wu),Aa._currentValue=bl)}var fs,Mh;function Ai(e){if(fs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);fs=t&&t[1]||"",Mh=-1<n.stack.indexOf(`
|
|
759
771
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
760
|
-
`+
|
|
761
|
-
`),
|
|
762
|
-
`);for(
|
|
763
|
-
`+u[i].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=i&&0<=
|
|
772
|
+
`+fs+e+Mh}var ds=!1;function ms(e,t){if(!e||ds)return"";ds=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(S){var s=S}Reflect.construct(e,[],p)}else{try{p.call()}catch(S){s=S}p=!1;try{var h=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),p=!0,new e}finally{p&&(h!==void 0?Object.defineProperty(e.prototype,"props",h):delete e.prototype.props)}}}else{try{throw Error()}catch(S){s=S}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(S){if(S&&s&&typeof S.stack=="string")return[S.stack,s.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=i.DetermineComponentFrameRoot(),o=a[0],r=a[1];if(o&&r){var u=o.split(`
|
|
773
|
+
`),c=r.split(`
|
|
774
|
+
`);for(l=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;l<c.length&&!c[l].includes("DetermineComponentFrameRoot");)l++;if(i===u.length||l===c.length)for(i=u.length-1,l=c.length-1;1<=i&&0<=l&&u[i]!==c[l];)l--;for(;1<=i&&0<=l;i--,l--)if(u[i]!==c[l]){if(i!==1||l!==1)do if(i--,l--,0>l||u[i]!==c[l]){var f=`
|
|
775
|
+
`+u[i].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=i&&0<=l);break}}}finally{ds=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ai(n):""}function sS(e,t){switch(e.tag){case 26:case 27:case 5:return Ai(e.type);case 16:return Ai("Lazy");case 13:return e.child!==t&&t!==null?Ai("Suspense Fallback"):Ai("Suspense");case 19:return Ai("SuspenseList");case 0:case 15:return ms(e.type,!1);case 11:return ms(e.type.render,!1);case 1:return ms(e.type,!0);case 31:return Ai("Activity");case 30:return Ai("ViewTransition");default:return""}}function Eh(e){try{var t="",n=null;do t+=sS(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
|
|
764
776
|
Error generating stack: `+i.message+`
|
|
765
|
-
`+i.stack}}var nf=Object.prototype.hasOwnProperty,ld=nt.unstable_scheduleCallback,bc=nt.unstable_cancelCallback,ww=nt.unstable_shouldYield,Sw=nt.unstable_requestPaint,Wt=nt.unstable_now,xw=nt.unstable_getCurrentPriorityLevel,pg=nt.unstable_ImmediatePriority,gg=nt.unstable_UserBlockingPriority,Cu=nt.unstable_NormalPriority,Ew=nt.unstable_LowPriority,yg=nt.unstable_IdlePriority,Tw=nt.log,Mw=nt.unstable_setDisableYieldValue,Jl=null,$t=null;function Di(e){if(typeof Tw=="function"&&Mw(e),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(Jl,e)}catch{}}var en=Math.clz32?Math.clz32:Aw,Rw=Math.log,Nw=Math.LN2;function Aw(e){return e>>>=0,e===0?32:31-(Rw(e)/Nw|0)|0}var Gr=256,Vr=262144,Yr=4194304;function ga(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ts(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var a=0,o=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var r=i&134217727;return r!==0?(i=r&~o,i!==0?a=ga(i):(l&=r,l!==0?a=ga(l):n||(n=r&~e,n!==0&&(a=ga(n))))):(r=i&~o,r!==0?a=ga(r):l!==0?a=ga(l):n||(n=i&~e,n!==0&&(a=ga(n)))),a===0?0:t!==0&&t!==a&&(t&o)===0&&(o=a&-a,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:a}function Wl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bg(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-en(n),a=1<<i;t|=e[i],n&=~a}return t}function Cw(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vg(){var e=Yr;return Yr<<=1,(Yr&62914560)===0&&(Yr=4194304),e}function vc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $l(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ow(e,t,n,i,a,o){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=l&~n;0<n;){var f=31-en(n),p=1<<f;r[f]=0,u[f]=-1;var c=s[f];if(c!==null)for(s[f]=null,f=0;f<c.length;f++){var m=c[f];m!==null&&(m.lane&=-536870913)}n&=~p}i!==0&&wg(e,i,0),o!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=o&~(l&~t))}function wg(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-en(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Sg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-en(n),a=1<<i;a&t|e[i]&t&&(e[i]|=t),n&=~a}}function xg(e,t){var n=t&-t;return n=(n&42)!==0?1:rd(n),(n&(e.suspendedLanes|t))!==0?0:n}function rd(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ud(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Eg(){var e=be.p;return e!==0?e:(e=window.event,e===void 0?32:av(e.type))}function Am(e,t){var n=be.p;try{return be.p=e,t()}finally{be.p=n}}var gi=Math.random().toString(36).slice(2),ct="__reactFiber$"+gi,Yt="__reactProps$"+gi,Bo="__reactContainer$"+gi,Cm="__reactEvents$"+gi,Lw="__reactListeners$"+gi,zw="__reactHandles$"+gi,Om="__reactResources$"+gi,er="__reactMarker$"+gi,Ou="__reactLoad$"+gi;function ns(e){delete e[ct],delete e[Yt],delete e[Lw],delete e[zw]}function va(e){var t;if(t=e[ct])return t;for(var n=e.parentNode;n;){if(t=n[Bo]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Kp(e);e!==null;){if(n=e[ct])return n;e=Kp(e)}return t}e=n,n=e.parentNode}return null}function Go(e){if(e=e[ct]||e[Bo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(A(33))}function yo(e){var t=e[Om];return t||(t=e[Om]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[er]=!0}function Tg(e){e[Ou]=void 0}var Mg=new Set,Rg={};function ka(e,t){Ao(e,t),Ao(e+"Capture",t)}function Ao(e,t){for(Rg[e]=t,e=0;e<t.length;e++)Mg.add(t[e])}var Dw=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Lm={},zm={};function Hw(e){return nf.call(zm,e)?!0:nf.call(Lm,e)?!1:Dw.test(e)?zm[e]=!0:(Lm[e]=!0,!1)}var ge=!1;function Dm(){var e=ge;return ge=!1,e}function ru(e,t,n){if(Hw(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function qr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function ai(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,i)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ng(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kw(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var a=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){n=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function af(e){if(!e._valueTracker){var t=Ng(e)?"checked":"value";e._valueTracker=kw(e,t,""+e[t])}}function Ag(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Ng(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}var Pw=/[\n"\\]/g;function pn(e){return e.replace(Pw,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function of(e,t,n,i,a,o,l,r){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?l==="number"&&e.value==t?wc(e,Qt(e.value)):wc(e,Qt(t)):n!=null?wc(e,Qt(n)):i!=null&&e.removeAttribute("value"),a==null&&o!=null&&(e.defaultChecked=!!o),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Qt(r):e.removeAttribute("name")}function Cg(e,t,n,i,a,o,l,r){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){af(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}i=i??a,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=r?e.checked:!!i,e.defaultChecked=!!i,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),af(e)}function wc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function bo(e,t,n,i){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,i&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Og(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function Lg(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(A(92));if(yl(i)){if(1<i.length)throw Error(A(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),af(e)}function Co(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Uw=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Hm(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||Uw.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function zg(e,t,n){if(t!=null&&typeof t!="object")throw Error(A(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",ge=!0);for(var a in t)i=t[a],t.hasOwnProperty(a)&&n[a]!==i&&(Hm(e,a,i),ge=!0)}else for(var o in t)t.hasOwnProperty(o)&&Hm(e,o,t[o])}function sd(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _w=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Iw=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function uu(e){return Iw.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Yn(){}var lf=null;function cd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ro=null,vo=null;function km(e){var t=Go(e);if(t&&(e=t.stateNode)){var n=e[Yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(of(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+pn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=i[Yt]||null;if(!a)throw Error(A(90));of(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Ag(i)}break e;case"textarea":Og(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&bo(e,!!n.multiple,t,!1)}}}var Sc=!1;function Dg(e,t,n){if(Sc)return e(t,n);Sc=!0;try{var i=e(t);return i}finally{if(Sc=!1,(ro!==null||vo!==null)&&(gs(),ro&&(t=ro,e=vo,vo=ro=null,km(t),e)))for(t=0;t<e.length;t++)km(e[t])}}function kl(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Yt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var ci=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rf=!1;if(ci)try{Wa={},Object.defineProperty(Wa,"passive",{get:function(){rf=!0}}),window.addEventListener("test",Wa,Wa),window.removeEventListener("test",Wa,Wa)}catch{rf=!1}var Wa,Hi=null,fd=null,su=null;function Hg(){if(su)return su;var e,t=fd,n=t.length,i,a="value"in Hi?Hi.value:Hi.textContent,o=a.length;for(e=0;e<n&&t[e]===a[e];e++);var l=n-e;for(i=1;i<=l&&t[n-i]===a[o-i];i++);return su=a.slice(e,1<i?1-i:void 0)}function cu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jr(){return!0}function Pm(){return!1}function Dt(e){function t(n,i,a,o,l){this._reactName=n,this._targetInst=a,this.type=i,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(o):o[r]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?jr:Pm,this.isPropagationStopped=Pm,this}return Ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=jr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jr)},persist:function(){},isPersistent:jr}),t}var ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},is=Dt(ea),tr=Ae({},ea,{view:0,detail:0}),Bw=Dt(tr),xc,Ec,fl,as=Ae({},tr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fl&&(fl&&e.type==="mousemove"?(xc=e.screenX-fl.screenX,Ec=e.screenY-fl.screenY):Ec=xc=0,fl=e),xc)},movementY:function(e){return"movementY"in e?e.movementY:Ec}}),Um=Dt(as),Gw=Ae({},as,{dataTransfer:0}),Vw=Dt(Gw),Yw=Ae({},tr,{relatedTarget:0}),Tc=Dt(Yw),qw=Ae({},ea,{animationName:0,elapsedTime:0,pseudoElement:0}),jw=Dt(qw),Xw=Ae({},ea,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kw=Dt(Xw),Qw=Ae({},ea,{data:0}),_m=Dt(Qw),Zw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Jw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ww(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jw[e])?!!t[e]:!1}function dd(){return Ww}var $w=Ae({},tr,{key:function(e){if(e.key){var t=Zw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dd,charCode:function(e){return e.type==="keypress"?cu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),eS=Dt($w),tS=Ae({},as,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Im=Dt(tS),nS=Ae({},ea,{submitter:0}),iS=Dt(nS),aS=Ae({},tr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dd}),oS=Dt(aS),lS=Ae({},ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),rS=Dt(lS),uS=Ae({},as,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sS=Dt(uS),cS=Ae({},ea,{newState:0,oldState:0,source:0}),fS=Dt(cS),dS=[9,13,27,32],hd=ci&&"CompositionEvent"in window,Sl=null;ci&&"documentMode"in document&&(Sl=document.documentMode);var hS=ci&&"TextEvent"in window&&!Sl,kg=ci&&(!hd||Sl&&8<Sl&&11>=Sl),Bm=" ",Gm=!1;function Pg(e,t){switch(e){case"keyup":return dS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ug(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var uo=!1;function mS(e,t){switch(e){case"compositionend":return Ug(t);case"keypress":return t.which!==32?null:(Gm=!0,Bm);case"textInput":return e=t.data,e===Bm&&Gm?null:e;default:return null}}function pS(e,t){if(uo)return e==="compositionend"||!hd&&Pg(e,t)?(e=Hg(),su=fd=Hi=null,uo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kg&&t.locale!=="ko"?null:t.data;default:return null}}var gS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gS[e.type]:t==="textarea"}function _g(e,t,n,i){ro?vo?vo.push(i):vo=[i]:ro=i,t=Wu(t,"onChange"),0<t.length&&(n=new is("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var xl=null,Pl=null;function yS(e){Db(e,0)}function os(e){var t=bl(e);if(Ag(t))return e}function Ym(e,t){if(e==="change")return t}var Ig=!1;ci&&(ci?(Kr="oninput"in document,Kr||(Mc=document.createElement("div"),Mc.setAttribute("oninput","return;"),Kr=typeof Mc.oninput=="function"),Xr=Kr):Xr=!1,Ig=Xr&&(!document.documentMode||9<document.documentMode));var Xr,Kr,Mc;function qm(){xl&&(xl.detachEvent("onpropertychange",Bg),Pl=xl=null)}function Bg(e){if(e.propertyName==="value"&&os(Pl)){var t=[];_g(t,Pl,e,cd(e)),Dg(yS,t)}}function bS(e,t,n){e==="focusin"?(qm(),xl=t,Pl=n,xl.attachEvent("onpropertychange",Bg)):e==="focusout"&&qm()}function vS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return os(Pl)}function wS(e,t){if(e==="click")return os(t)}function SS(e,t){if(e==="input"||e==="change")return os(t)}function xS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:xS;function Ul(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var a=n[i];if(!nf.call(t,a)||!nn(e[a],t[a]))return!1}return!0}function uf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xm(e,t){var n=jm(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=jm(n)}}function Gg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=uf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=uf(e.document)}return t}function md(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ES=ci&&"documentMode"in document&&11>=document.documentMode,so=null,sf=null,El=null,cf=!1;function Km(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cf||so==null||so!==uf(i)||(i=so,"selectionStart"in i&&md(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),El&&Ul(El,i)||(El=i,i=Wu(sf,"onSelect"),0<i.length&&(t=new is("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=so)))}function ma(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var co={animationend:ma("Animation","AnimationEnd"),animationiteration:ma("Animation","AnimationIteration"),animationstart:ma("Animation","AnimationStart"),transitionrun:ma("Transition","TransitionRun"),transitionstart:ma("Transition","TransitionStart"),transitioncancel:ma("Transition","TransitionCancel"),transitionend:ma("Transition","TransitionEnd")},Rc={},Yg={};ci&&(Yg=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function Pa(e){if(Rc[e])return Rc[e];if(!co[e])return e;var t=co[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yg)return Rc[e]=t[n];return e}var qg=Pa("animationend"),jg=Pa("animationiteration"),Xg=Pa("animationstart"),TS=Pa("transitionrun"),MS=Pa("transitionstart"),RS=Pa("transitioncancel"),Kg=Pa("transitionend"),Qg=new Map,ff="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ff.push("scrollEnd");function Nn(e,t){Qg.set(e,t),ka(t,[e])}var NS=0;function fi(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Rn.identifierPrefix;var n=NS++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Qm(e){if(e==null||typeof e=="string")return e;var t=null,n=Ro;if(n!==null)for(var i=0;i<n.length;i++){var a=e[n[i]];if(a!=null){if(a==="none")return"none";t=t==null?a:t+(" "+a)}}return t??e.default}function yi(e,t){return e=Qm(e),t=Qm(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Lu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},dn=[],fo=0,pd=0;function ls(){for(var e=fo,t=pd=fo=0;t<e;){var n=dn[t];dn[t++]=null;var i=dn[t];dn[t++]=null;var a=dn[t];dn[t++]=null;var o=dn[t];if(dn[t++]=null,i!==null&&a!==null){var l=i.pending;l===null?a.next=a:(a.next=l.next,l.next=a),i.pending=a}o!==0&&Zg(n,a,o)}}function rs(e,t,n,i){dn[fo++]=e,dn[fo++]=t,dn[fo++]=n,dn[fo++]=i,pd|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function gd(e,t,n,i){return rs(e,t,n,i),zu(e)}function Ua(e,t){return rs(e,null,null,t),zu(e)}function Zg(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var a=!1,o=e.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(a=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,a&&t!==null&&(a=31-en(n),e=o.hiddenUpdates,i=e[a],i===null?e[a]=[t]:i.push(t),t.lane=n|536870912),o):null}function zu(e){if(50<Dl)throw Dl=0,wu=null,Error(A(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ho={};function AS(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,n,i){return new AS(e,t,n,i)}function yd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ui(e,t){var n=e.alternate;return n===null?(n=Bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Fg(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fu(e,t,n,i,a,o){var l=0;if(i=e,typeof i=="function")yd(i)&&(l=1);else if(typeof i=="string")l=eE(e,n,Xn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case Jc:return e=Bt(31,n,t,a),e.elementType=Jc,e.lanes=o,e;case oo:return xa(n.children,a,o,t);case hg:l=8,a|=24;break;case Qc:return e=Bt(12,n,t,a|2),e.elementType=Qc,e.lanes=o,e;case Zc:return e=Bt(13,n,t,a),e.elementType=Zc,e.lanes=o,e;case Fc:return e=Bt(19,n,t,a),e.elementType=Fc,e.lanes=o,e;case pw:case Wc:return e=a|32,e=Bt(30,n,t,e),e.elementType=Wc,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Vn:l=10;break e;case mg:l=9;break e;case ad:l=11;break e;case od:l=14;break e;case Oi:l=16,i=null;break e}l=29,n=Error(A(130,e===null?"null":typeof e,"")),i=null}return t=Bt(l,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function xa(e,t,n,i){return e=Bt(7,e,i,t),e.lanes=n,e}function Nc(e,t,n){return e=Bt(6,e,null,t),e.lanes=n,e}function Jg(e){var t=Bt(18,null,null,0);return t.stateNode=e,t}function Ac(e,t,n){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Zm=new WeakMap;function gn(e,t){if(typeof e=="object"&&e!==null){var n=Zm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Nm(t)},Zm.set(e,t),t)}return{value:e,source:t,stack:Nm(t)}}var mo=[],po=0,Du=null,_l=0,hn=[],mn=0,Zi=null,qn=1,jn="";function li(e,t){mo[po++]=_l,mo[po++]=Du,Du=e,_l=t}function Wg(e,t,n){hn[mn++]=qn,hn[mn++]=jn,hn[mn++]=Zi,Zi=e;var i=qn;e=jn;var a=32-en(i)-1;i&=~(1<<a),n+=1;var o=32-en(t)+a;if(30<o){var l=a-a%5;o=(i&(1<<l)-1).toString(32),i>>=l,a-=l,qn=1<<32-en(t)+a|n<<a|i,jn=o+e}else qn=1<<o|n<<a|i,jn=e}function us(e){e.return!==null&&(li(e,1),Wg(e,1,0))}function bd(e){for(;e===Du;)Du=mo[--po],mo[po]=null,_l=mo[--po],mo[po]=null;for(;e===Zi;)Zi=hn[--mn],hn[mn]=null,jn=hn[--mn],hn[mn]=null,qn=hn[--mn],hn[mn]=null}function $g(e,t){hn[mn++]=qn,hn[mn++]=jn,hn[mn++]=Zi,qn=t.id,jn=t.overflow,Zi=e}var ut=null,Le=null,se=!1,Bi=null,yn=!1,df=Error(A(519));function Fi(e){var t=Error(A(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Il(gn(t,e)),df}function Fm(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ct]=e,t[Yt]=i,n){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(n=0;n<Yl.length;n++)fe(Yl[n],t);break;case"source":fe("error",t);break;case"img":case"image":case"link":fe("error",t),fe("load",t);break;case"details":fe("toggle",t);break;case"input":fe("invalid",t),Cg(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),Lg(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||kb(t.textContent,n)?(i.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),i.onScroll!=null&&fe("scroll",t),i.onScrollEnd!=null&&fe("scrollend",t),i.onClick!=null&&(t.onclick=Yn),t=!0):t=!1,t||Fi(e,!0)}function Hu(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:yn=!1;return;case 27:case 3:yn=!0;return;default:ut=ut.return}}function $a(e){if(e!==ut)return!1;if(!se)return Hu(e),se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ff(e.type,e.memoizedProps)),n=!n),n&&Le&&Fi(e),Hu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Le=Xp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Le=Xp(e)}else t===27?(t=Le,ta(e.type)?(e=ed,ed=null,Le=e):Le=t):Le=ut?bn(e.stateNode.nextSibling):null;return!0}function Ra(){Le=ut=null,se=!1}function Cc(){var e=Bi;return e!==null&&(_t===null?_t=e:_t.push.apply(_t,e),Bi=null),e}function Il(e){Bi===null?Bi=[e]:Bi.push(e)}var hf=Zn(null),_a=null,ri=null;function ki(e,t,n){ze(hf,t._currentValue),t._currentValue=n}function si(e){e._currentValue=hf.current,dt(hf)}function du(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function mf(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var l=a.child;o=o.firstContext;e:for(;o!==null;){var r=o;o=a;for(var u=0;u<t.length;u++)if(r.context===t[u]){o.lanes|=n,r=o.alternate,r!==null&&(r.lanes|=n),du(o.return,n,e),i||(l=null);break e}o=r.next}}else if(a.tag===18){if(l=a.return,l===null)throw Error(A(341));l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),du(l,n,e),l=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),du(a.return,n,e),l=a.child,l=l!==null?l.sibling:null):l=a.child;if(l!==null)l.return=a;else for(l=a;l!==null;){if(l===e){l=null;break}if(a=l.sibling,a!==null){a.return=l.return,l=a;break}l=l.return}a=l}}function Na(e,t,n,i){e=null;for(var a=t,o=!1;a!==null;){if(!o){if((a.flags&524288)!==0)o=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var l=a.alternate;if(l===null)throw Error(A(387));if(l=l.memoizedProps,l!==null){var r=a.type;nn(a.pendingProps.value,l.value)||(e!==null?e.push(r):e=[r])}}else if(a===Ru.current){if(l=a.alternate,l===null)throw Error(A(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Uo):e=[Uo])}a=a.return}return e!==null&&mf(t,e,n,i),t.flags|=262144,e!==null}function ku(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Aa(e){_a=e,ri=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return ey(_a,e)}function Qr(e,t){return _a===null&&Aa(e),ey(e,t)}function ey(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ri===null){if(e===null)throw Error(A(308));ri=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ri=ri.next=t;return n}var CS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},OS=nt.unstable_scheduleCallback,LS=nt.unstable_NormalPriority,Fe={$$typeof:Vn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vd(){return{controller:new CS,data:new Map,refCount:0}}function nr(e){e.refCount--,e.refCount===0&&OS(LS,function(){e.controller.abort()})}function Jm(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];n.indexOf(i)===-1&&n.push(i)}}}var vl=null;function zS(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Tl=null,pf=0,Ca=0,wo=null;function DS(e,t){if(Tl===null){var n=Tl=[];pf=0,Ca=Kd(),wo={status:"pending",value:void 0,then:function(i){n.push(i)}}}return pf++,t.then(Wm,Wm),t}function Wm(){if(--pf===0&&(vl=null,Tl!==null)){wo!==null&&(wo.status="fulfilled");var e=Tl;Tl=null,Ca=0,wo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function HS(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(i.status="rejected",i.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),i}var $m=F.S;F.S=function(e,t){if(bb=Wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&DS(e,t),vl!==null)for(var n=Ho;n!==null;)Jm(n,vl),n=n.next;if(n=e.types,n!==null){for(var i=Ho;i!==null;)Jm(i,n),i=i.next;if(Ca!==0){i=vl,i===null&&(i=vl=[]);for(var a=0;a<n.length;a++){var o=n[a];i.indexOf(o)===-1&&i.push(o)}}}$m!==null&&$m(e,t)};var Ea=Zn(null);function wd(){var e=Ea.current;return e!==null?e:Ne.pooledCache}function hu(e,t){t===null?ze(Ea,Ea.current):ze(Ea,t.pool)}function ty(){var e=wd();return e===null?null:{parent:Fe._currentValue,pool:e}}var Vo=Error(A(460)),Sd=Error(A(474)),ss=Error(A(542)),Pu={then:function(){}};function ep(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ny(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Yn,Yn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,np(e),e===void 0&&!("reason"in t)?Error(A(600)):e;default:if(typeof t.status=="string")t.then(Yn,Yn);else{if(e=Ne,e!==null&&100<e.shellSuspendCounter)throw Error(A(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=i}},function(i){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,np(e),e}throw Ta=t,Vo}}function ya(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ta=n,Vo):n}}var Ta=null;function tp(){if(Ta===null)throw Error(A(459));var e=Ta;return Ta=null,e}function np(e){if(e===Vo||e===ss)throw Error(A(483))}var So=null,Bl=0;function Zr(e){var t=Bl;return Bl+=1,So===null&&(So=[]),ny(So,e,t)}function Ni(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fr(e,t){throw t.$$typeof===mw?Error(A(525)):(e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function iy(e){function t(d,h){if(e){var g=d.deletions;g===null?(d.deletions=[h],d.flags|=16):g.push(h)}}function n(d,h){if(!e)return null;for(;h!==null;)t(d,h),h=h.sibling;return null}function i(d){for(var h=new Map;d!==null;)d.key===null?h.set(d.index,d):h.set(d.key,d),d=d.sibling;return h}function a(d,h){return d=ui(d,h),d.index=0,d.sibling=null,d}function o(d,h,g){return d.index=g,e?(g=d.alternate,g!==null?(g=g.index,g<h?(d.flags|=2,h):g):(d.flags|=134217730,h)):(d.flags|=1048576,h)}function l(d){return e&&d.alternate===null&&(d.flags|=134217730),d}function r(d,h,g,S){return h===null||h.tag!==6?(h=Nc(g,d.mode,S),h.return=d,h):(h=a(h,g),h.return=d,h)}function u(d,h,g,S){var E=g.type;return E===oo?(d=f(d,h,g.props.children,S,g.key),Ni(d,g),d):h!==null&&(h.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Oi&&ya(E)===h.type)?(h=a(h,g.props),Ni(h,g),h.return=d,h):(h=fu(g.type,g.key,g.props,null,d.mode,S),Ni(h,g),h.return=d,h)}function s(d,h,g,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=Ac(g,d.mode,S),h.return=d,h):(h=a(h,g.children||[]),h.return=d,h)}function f(d,h,g,S,E){return h===null||h.tag!==7?(h=xa(g,d.mode,S,E),h.return=d,h):(h=a(h,g),h.return=d,h)}function p(d,h,g){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Nc(""+h,d.mode,g),h.return=d,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Br:return g=fu(h.type,h.key,h.props,null,d.mode,g),Ni(g,h),g.return=d,g;case gl:return h=Ac(h,d.mode,g),h.return=d,h;case Oi:return h=ya(h),p(d,h,g)}if(yl(h)||cl(h))return h=xa(h,d.mode,g,null),h.return=d,h;if(typeof h.then=="function")return p(d,Zr(h),g);if(h.$$typeof===Vn)return p(d,Qr(d,h),g);Fr(d,h)}return null}function c(d,h,g,S){var E=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return E!==null?null:r(d,h,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Br:return g.key===E?u(d,h,g,S):null;case gl:return g.key===E?s(d,h,g,S):null;case Oi:return g=ya(g),c(d,h,g,S)}if(yl(g)||cl(g))return E!==null?null:f(d,h,g,S,null);if(typeof g.then=="function")return c(d,h,Zr(g),S);if(g.$$typeof===Vn)return c(d,h,Qr(d,g),S);Fr(d,g)}return null}function m(d,h,g,S,E){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return d=d.get(g)||null,r(h,d,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Br:return d=d.get(S.key===null?g:S.key)||null,u(h,d,S,E);case gl:return d=d.get(S.key===null?g:S.key)||null,s(h,d,S,E);case Oi:return S=ya(S),m(d,h,g,S,E)}if(yl(S)||cl(S))return d=d.get(g)||null,f(h,d,S,E,null);if(typeof S.then=="function")return m(d,h,g,Zr(S),E);if(S.$$typeof===Vn)return m(d,h,g,Qr(h,S),E);Fr(h,S)}return null}function w(d,h,g,S){for(var E=null,R=null,x=h,N=h=0,G=null;x!==null&&N<g.length;N++){x.index>N?(G=x,x=null):G=x.sibling;var T=c(d,x,g[N],S);if(T===null){x===null&&(x=G);break}e&&x&&T.alternate===null&&t(d,x),h=o(T,h,N),R===null?E=T:R.sibling=T,R=T,x=G}if(N===g.length)return n(d,x),se&&li(d,N),E;if(x===null){for(;N<g.length;N++)x=p(d,g[N],S),x!==null&&(h=o(x,h,N),R===null?E=x:R.sibling=x,R=x);return se&&li(d,N),E}for(x=i(x);N<g.length;N++)G=m(x,d,N,g[N],S),G!==null&&(e&&(T=G.alternate,T!==null&&x.delete(T.key===null?N:T.key)),h=o(G,h,N),R===null?E=G:R.sibling=G,R=G);return e&&x.forEach(function(I){return t(d,I)}),se&&li(d,N),E}function b(d,h,g,S){if(g==null)throw Error(A(151));for(var E=null,R=null,x=h,N=h=0,G=null,T=g.next();x!==null&&!T.done;N++,T=g.next()){x.index>N?(G=x,x=null):G=x.sibling;var I=c(d,x,T.value,S);if(I===null){x===null&&(x=G);break}e&&x&&I.alternate===null&&t(d,x),h=o(I,h,N),R===null?E=I:R.sibling=I,R=I,x=G}if(T.done)return n(d,x),se&&li(d,N),E;if(x===null){for(;!T.done;N++,T=g.next())T=p(d,T.value,S),T!==null&&(h=o(T,h,N),R===null?E=T:R.sibling=T,R=T);return se&&li(d,N),E}for(x=i(x);!T.done;N++,T=g.next())T=m(x,d,N,T.value,S),T!==null&&(e&&(G=T.alternate,G!==null&&x.delete(G.key===null?N:G.key)),h=o(T,h,N),R===null?E=T:R.sibling=T,R=T);return e&&x.forEach(function(H){return t(d,H)}),se&&li(d,N),E}function v(d,h,g,S){if(typeof g=="object"&&g!==null&&g.type===oo&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Br:e:{for(var E=g.key;h!==null;){if(h.key===E){if(E=g.type,E===oo){if(h.tag===7){n(d,h.sibling),S=a(h,g.props.children),Ni(S,g),S.return=d,d=S;break e}}else if(h.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Oi&&ya(E)===h.type){n(d,h.sibling),S=a(h,g.props),Ni(S,g),S.return=d,d=S;break e}n(d,h);break}else t(d,h);h=h.sibling}g.type===oo?(S=xa(g.props.children,d.mode,S,g.key),Ni(S,g),S.return=d,d=S):(S=fu(g.type,g.key,g.props,null,d.mode,S),Ni(S,g),S.return=d,d=S)}return l(d);case gl:e:{for(E=g.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(d,h.sibling),S=a(h,g.children||[]),S.return=d,d=S;break e}else{n(d,h);break}else t(d,h);h=h.sibling}S=Ac(g,d.mode,S),S.return=d,d=S}return l(d);case Oi:return g=ya(g),v(d,h,g,S)}if(yl(g))return w(d,h,g,S);if(cl(g)){if(E=cl(g),typeof E!="function")throw Error(A(150));return g=E.call(g),b(d,h,g,S)}if(typeof g.then=="function")return v(d,h,Zr(g),S);if(g.$$typeof===Vn)return v(d,h,Qr(d,g),S);Fr(d,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,h!==null&&h.tag===6?(n(d,h.sibling),S=a(h,g),S.return=d,d=S):(n(d,h),S=Nc(g,d.mode,S),S.return=d,d=S),l(d)):n(d,h)}return function(d,h,g,S){try{Bl=0;var E=v(d,h,g,S);return So=null,E}catch(x){if(x===Vo||x===ss)throw x;var R=Bt(29,x,null,d.mode);return R.lanes=S,R.return=d,R}finally{}}}var Oa=iy(!0),ay=iy(!1),Li=!1;function xd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ye&2)!==0){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,t=zu(e),Zg(e,null,n),t}return rs(e,i,t,n),zu(e)}function Ml(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Sg(e,n)}}function Oc(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?a=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var yf=!1;function Rl(){if(yf){var e=wo;if(e!==null)throw e}}function Nl(e,t,n,i){yf=!1;var a=e.updateQueue;Li=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var u=r,s=u.next;u.next=null,l===null?o=s:l.next=s,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,r=f.lastBaseUpdate,r!==l&&(r===null?f.firstBaseUpdate=s:r.next=s,f.lastBaseUpdate=u))}if(o!==null){var p=a.baseState;l=0,f=s=u=null,r=o;do{var c=r.lane&-536870913,m=c!==r.lane;if(m?(me&c)===c:(i&c)===c){c!==0&&c===Ca&&(yf=!0),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var w=e,b=r;c=t;var v=n;switch(b.tag){case 1:if(w=b.payload,typeof w=="function"){p=w.call(v,p,c);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=b.payload,c=typeof w=="function"?w.call(v,p,c):w,c==null)break e;p=Ae({},p,c);break e;case 2:Li=!0}}c=r.callback,c!==null&&(e.flags|=64,m&&(e.flags|=8192),m=a.callbacks,m===null?a.callbacks=[c]:m.push(c))}else m={lane:c,tag:r.tag,payload:r.payload,callback:r.callback,next:null},f===null?(s=f=m,u=p):f=f.next=m,l|=c;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;m=r,r=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);f===null&&(u=p),a.baseState=u,a.firstBaseUpdate=s,a.lastBaseUpdate=f,o===null&&(a.shared.lanes=0),$i|=l,e.lanes=l,e.memoizedState=p}}function oy(e,t){if(typeof e!="function")throw Error(A(191,e));e.call(t)}function ly(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)oy(n[e],t)}var Ji=Zn(null),Uu=Zn(0);function ip(e,t){e=pi,ze(Uu,e),ze(Ji,t),pi=e|t.baseLanes}function bf(){ze(Uu,pi),ze(Ji,Ji.current)}function Ed(){pi=Uu.current,dt(Ji),dt(Uu)}var pt=Zn(null),St=null;function Yi(e){var t=e.alternate;ze(ht,ht.current&1),ze(pt,e),St===null&&(t===null||Ji.current!==null||t.memoizedState!==null)&&(St=e)}function vf(e){ze(ht,ht.current),ze(pt,e),St===null&&(St=e)}function ry(e){e.tag===22?(ze(ht,ht.current),ze(pt,e),St===null&&(St=e)):qi()}function qi(){ze(ht,ht.current),ze(pt,pt.current)}function Zt(e){dt(pt),St===e&&(St=null),dt(ht)}var ht=Zn(0);function Gl(e,t){ze(pt,pt.current),ze(ht,t)}function Td(e){dt(ht),dt(pt),St===e&&(St=null)}function _u(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||$f(n)||Jd(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var di=0,oe=null,Te=null,Ze=null,Iu=!1,xo=!1,La=!1,Bu=0,Vl=0,Eo=null,kS=0;function Ye(){throw Error(A(321))}function Md(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nn(e[n],t[n]))return!1;return!0}function Rd(e,t,n,i,a,o){return di=o,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e===null||e.memoizedState===null?_y:Iy,La=!1,o=n(i,a),La=!1,xo&&(o=sy(t,n,i,a)),uy(e),o}function uy(e){F.H=Gu;var t=Te!==null&&Te.next!==null;if(di=0,Ze=Te=oe=null,Iu=!1,Vl=0,Eo=null,t)throw Error(A(300));e===null||Je||(e=e.dependencies,e!==null&&ku(e)&&(Je=!0))}function sy(e,t,n,i){oe=e;var a=0;do{if(xo&&(Eo=null),Vl=0,xo=!1,25<=a)throw Error(A(301));if(a+=1,Ze=Te=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}F.H=YS,o=t(n,i)}while(xo);return o}function PS(){var e=F.H,t=e.useState()[0];return t=typeof t.then=="function"?ir(t):t,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(oe.flags|=1024),t}function Nd(){var e=Bu!==0;return Bu=0,e}function Ad(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Cd(e){if(Iu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Iu=!1}di=0,Ze=Te=oe=null,xo=!1,Vl=Bu=0,Eo=null}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?oe.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function je(){if(Te===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Ze===null?oe.memoizedState:Ze.next;if(t!==null)Ze=t,Te=e;else{if(e===null)throw oe.alternate===null?Error(A(467)):Error(A(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Ze===null?oe.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function cs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ir(e){var t=Vl;return Vl+=1,Eo===null&&(Eo=[]),e=ny(Eo,e,t),t=oe,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,F.H=t===null||t.memoizedState===null?_y:Iy),e}function fs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ir(e);if(e.$$typeof===yw)return;if(e.$$typeof===Vn)return ft(e)}throw Error(A(438,String(e)))}function Od(e){var t=null,n=oe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=oe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=cs(),oe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=gw;return t.index++,n}function hi(e,t){return typeof t=="function"?t(e):t}function mu(e){var t=je();return Ld(t,Te,e)}function Ld(e,t,n){var i=e.queue;if(i===null)throw Error(A(311));i.lastRenderedReducer=n;var a=e.baseQueue,o=i.pending;if(o!==null){if(a!==null){var l=a.next;a.next=o.next,o.next=l}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var r=l=null,u=null,s=t,f=!1;do{var p=s.lane&-536870913;if(p!==s.lane?(me&p)===p:(di&p)===p){var c=s.revertLane;if(c===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),p===Ca&&(f=!0);else if((di&c)===c){s=s.next,c===Ca&&(f=!0);continue}else p={lane:0,revertLane:s.revertLane,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(r=u=p,l=o):u=u.next=p,oe.lanes|=c,$i|=c;p=s.action,La&&n(o,p),o=s.hasEagerState?s.eagerState:n(o,p)}else c={lane:p,revertLane:s.revertLane,gesture:s.gesture,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(r=u=c,l=o):u=u.next=c,oe.lanes|=p,$i|=p;s=s.next}while(s!==null&&s!==t);if(u===null?l=o:u.next=r,!nn(o,e.memoizedState)&&(Je=!0,f&&(n=wo,n!==null)))throw n;e.memoizedState=o,e.baseState=l,e.baseQueue=u,i.lastRenderedState=o}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Lc(e){var t=je(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var l=a=a.next;do o=e(o,l.action),l=l.next;while(l!==a);nn(o,t.memoizedState)||(Je=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function cy(e,t,n){var i=oe,a=je(),o=se;if(o){if(n===void 0)throw Error(A(407));n=n()}else n=t();var l=!nn((Te||a).memoizedState,n);if(l&&(a.memoizedState=n,Je=!0),a=a.queue,zd(hy.bind(null,i,a,e),[e]),e=a.getSnapshot!==t||l||Ze!==null&&(Ze.memoizedState.tag&1)!==0,Oo(e?9:8,{destroy:void 0},dy.bind(null,i,a,n,t),null),e){if(i.flags|=2048,Ne===null)throw Error(A(349));o||(di&127)!==0||fy(i,t,n)}return n}function fy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t=cs(),oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dy(e,t,n,i){t.value=n,t.getSnapshot=i,my(t)&&py(e)}function hy(e,t,n){return n(function(){my(t)&&py(e)})}function my(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nn(e,n)}catch{return!0}}function py(e){var t=Ua(e,2);t!==null&&Gt(t,e,2)}function wf(e){var t=zt();if(typeof e=="function"){var n=e;if(e=n(),La){Di(!0);try{n()}finally{Di(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},t}function gy(e,t,n,i){return e.baseState=n,Ld(e,Te,typeof i=="function"?i:hi)}function US(e,t,n,i,a){if(hs(e))throw Error(A(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){o.listeners.push(l)}};F.T!==null?n(!0):o.isTransition=!1,i(o),n=t.pending,n===null?(o.next=t.pending=o,yy(t,o)):(o.next=n.next,t.pending=n.next=o)}}function yy(e,t){var n=t.action,i=t.payload,a=e.state;if(t.isTransition){var o=F.T,l={};l.types=o!==null?o.types:null,F.T=l;try{var r=n(a,i),u=F.S;u!==null&&u(l,r),ap(e,t,r)}catch(s){Sf(e,t,s)}finally{o!==null&&l.types!==null&&(o.types=l.types),F.T=o}}else try{o=n(a,i),ap(e,t,o)}catch(s){Sf(e,t,s)}}function ap(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){op(e,t,i)},function(i){return Sf(e,t,i)}):op(e,t,n)}function op(e,t,n){t.status="fulfilled",t.value=n,by(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,yy(e,n)))}function Sf(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,by(t),t=t.next;while(t!==i)}e.action=null}function by(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function vy(e,t){return t}function lp(e,t){if(se){var n=Ne.formState;if(n!==null){e:{var i=oe;if(se){if(Le){t:{for(var a=Le,o=yn;a.nodeType!==8;){if(!o){a=null;break t}if(a=bn(a.nextSibling),a===null){a=null;break t}}o=a.data,a=o==="F!"||o==="F"?a:null}if(a){Le=bn(a.nextSibling),i=a.data==="F!";break e}}Fi(i)}i=!1}i&&(t=n[0])}}return n=zt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vy,lastRenderedState:t},n.queue=i,n=ky.bind(null,oe,i),i.dispatch=n,i=wf(!1),o=Pd.bind(null,oe,!1,i.queue),i=zt(),a={state:t,dispatch:null,action:e,pending:null},i.queue=a,n=US.bind(null,oe,a,o,n),a.dispatch=n,i.memoizedState=e,[t,n,!1]}function rp(e){var t=je();return wy(t,Te,e)}function wy(e,t,n){if(t=Ld(e,t,vy)[0],e=mu(hi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ir(t)}catch(l){throw l===Vo?ss:l}else i=t;t=je();var a=t.queue,o=a.dispatch;return n!==t.memoizedState&&(oe.flags|=2048,Oo(9,{destroy:void 0},_S.bind(null,a,n),null)),[i,o,e]}function _S(e,t){e.action=t}function up(e){var t=je(),n=Te;if(n!==null)return wy(t,n,e);je(),t=t.memoizedState,n=je();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Oo(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=oe.updateQueue,t===null&&(t=cs(),oe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Sy(){return je().memoizedState}function pu(e,t,n,i){var a=zt();oe.flags|=e,a.memoizedState=Oo(1|t,{destroy:void 0},n,i===void 0?null:i)}function ds(e,t,n,i){var a=je();i=i===void 0?null:i;var o=a.memoizedState.inst;Te!==null&&i!==null&&Md(i,Te.memoizedState.deps)?a.memoizedState=Oo(t,o,n,i):(oe.flags|=e,a.memoizedState=Oo(1|t,o,n,i))}function sp(e,t){pu(8390656,8,e,t)}function zd(e,t){ds(2048,8,e,t)}function IS(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=cs(),oe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function xy(e){var t=je().memoizedState;return IS({ref:t,nextImpl:e}),function(){if((ye&2)!==0)throw Error(A(440));return t.impl.apply(void 0,arguments)}}function Ey(e,t){return ds(4,2,e,t)}function Ty(e,t){return ds(4,4,e,t)}function My(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ry(e,t,n){n=n!=null?n.concat([e]):null,ds(4,4,My.bind(null,t,e),n)}function Dd(){}function Ny(e,t){var n=je();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Md(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Ay(e,t){var n=je();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Md(t,i[1]))return i[0];if(i=e(),La){Di(!0);try{e()}finally{Di(!1)}}return n.memoizedState=[i,t],i}function Hd(e,t,n){return n===void 0||(di&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=wb(),oe.lanes|=e,$i|=e,n)}function Cy(e,t,n,i){return nn(n,t)?n:Ji.current!==null?(e=Hd(e,n,i),nn(e,t)||(Je=!0),e):(di&106)===0||(di&1073741824)!==0&&(me&261930)===0?(Je=!0,e.memoizedState=n):(e=wb(),oe.lanes|=e,$i|=e,t)}function Oy(e,t,n,i,a){var o=be.p;be.p=o!==0&&8>o?o:8;var l=F.T,r={};r.types=l!==null?l.types:null,F.T=r,Pd(e,!1,t,n);try{var u=a(),s=F.S;if(s!==null&&s(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=HS(u,i);Al(e,t,f,tn(e))}else Al(e,t,i,tn(e))}catch(p){Al(e,t,{then:function(){},status:"rejected",reason:p},tn())}finally{be.p=o,l!==null&&r.types!==null&&(l.types=r.types),F.T=l}}function BS(){}function xf(e,t,n,i){if(e.tag!==5)throw Error(A(476));var a=Ly(e).queue;Oy(e,a,t,Sa,n===null?BS:function(){return zy(e),n(i)})}function Ly(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Sa,baseState:Sa,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:Sa},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zy(e){var t=Ly(e);t.next===null&&(t=e.alternate.memoizedState),Al(e,t.next.queue,{},tn())}function kd(){return ft(Uo)}function Dy(){return je().memoizedState}function Hy(){return je().memoizedState}function GS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=tn();e=Gi(n);var i=Vi(t,e,n);i!==null&&(Gt(i,t,n),Ml(i,t,n)),t={cache:vd()},e.payload=t;return}t=t.return}}function VS(e,t,n){var i=tn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e)?Py(t,n):(n=gd(e,t,n,i),n!==null&&(Gt(n,e,i),Uy(n,t,i)))}function ky(e,t,n){var i=tn();Al(e,t,n,i)}function Al(e,t,n,i){var a={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))Py(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,r=o(l,n);if(a.hasEagerState=!0,a.eagerState=r,nn(r,l))return rs(e,t,a,0),Ne===null&&ls(),!1}catch{}finally{}if(n=gd(e,t,a,i),n!==null)return Gt(n,e,i),Uy(n,t,i),!0}return!1}function Pd(e,t,n,i){if(i={lane:2,revertLane:Kd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},hs(e)){if(t)throw Error(A(479))}else t=gd(e,n,i,2),t!==null&&Gt(t,e,2)}function hs(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Py(e,t){xo=Iu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Uy(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Sg(e,n)}}var Gu={readContext:ft,use:fs,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye,useEffectEvent:Ye},_y={readContext:ft,use:fs,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:sp,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,pu(4194308,4,My.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pu(4194308,4,e,t)},useInsertionEffect:function(e,t){pu(4,2,e,t)},useMemo:function(e,t){var n=zt();t=t===void 0?null:t;var i=e();if(La){Di(!0);try{e()}finally{Di(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=zt();if(n!==void 0){var a=n(t);if(La){Di(!0);try{n(t)}finally{Di(!1)}}}else a=t;return i.memoizedState=i.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=VS.bind(null,oe,e),[i.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:function(e){e=wf(e);var t=e.queue,n=ky.bind(null,oe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Dd,useDeferredValue:function(e,t){var n=zt();return Hd(n,e,t)},useTransition:function(){var e=wf(!1);return e=Oy.bind(null,oe,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=oe,a=zt();if(se){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ne===null)throw Error(A(349));(me&127)!==0||fy(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,sp(hy.bind(null,i,o,e),[e]),i.flags|=2048,Oo(9,{destroy:void 0},dy.bind(null,i,o,n,t),null),n},useId:function(){var e=zt(),t=Ne.identifierPrefix;if(se){var n=jn,i=qn;n=(i&~(1<<32-en(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Bu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=kS++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:kd,useFormState:lp,useActionState:lp,useOptimistic:function(e){var t=zt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Pd.bind(null,oe,!0,n),n.dispatch=t,[e,t]},useMemoCache:Od,useCacheRefresh:function(){return zt().memoizedState=GS.bind(null,oe)},useEffectEvent:function(e){var t=zt(),n={impl:e};return t.memoizedState=n,function(){if((ye&2)!==0)throw Error(A(440));return n.impl.apply(void 0,arguments)}}},Iy={readContext:ft,use:fs,useCallback:Ny,useContext:ft,useEffect:zd,useImperativeHandle:Ry,useInsertionEffect:Ey,useLayoutEffect:Ty,useMemo:Ay,useReducer:mu,useRef:Sy,useState:function(){return mu(hi)},useDebugValue:Dd,useDeferredValue:function(e,t){var n=je();return Cy(n,Te.memoizedState,e,t)},useTransition:function(){var e=mu(hi)[0],t=je().memoizedState;return[typeof e=="boolean"?e:ir(e),t]},useSyncExternalStore:cy,useId:Dy,useHostTransitionStatus:kd,useFormState:rp,useActionState:rp,useOptimistic:function(e,t){var n=je();return gy(n,Te,e,t)},useMemoCache:Od,useCacheRefresh:Hy,useEffectEvent:xy},YS={readContext:ft,use:fs,useCallback:Ny,useContext:ft,useEffect:zd,useImperativeHandle:Ry,useInsertionEffect:Ey,useLayoutEffect:Ty,useMemo:Ay,useReducer:Lc,useRef:Sy,useState:function(){return Lc(hi)},useDebugValue:Dd,useDeferredValue:function(e,t){var n=je();return Te===null?Hd(n,e,t):Cy(n,Te.memoizedState,e,t)},useTransition:function(){var e=Lc(hi)[0],t=je().memoizedState;return[typeof e=="boolean"?e:ir(e),t]},useSyncExternalStore:cy,useId:Dy,useHostTransitionStatus:kd,useFormState:up,useActionState:up,useOptimistic:function(e,t){var n=je();return Te!==null?gy(n,Te,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Od,useCacheRefresh:Hy,useEffectEvent:xy};function zc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ef={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=tn(),a=Gi(i);a.payload=t,n!=null&&(a.callback=n),t=Vi(e,a,i),t!==null&&(Gt(t,e,i),Ml(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=tn(),a=Gi(i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Vi(e,a,i),t!==null&&(Gt(t,e,i),Ml(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tn(),i=Gi(n);i.tag=2,t!=null&&(i.callback=t),t=Vi(e,i,n),t!==null&&(Gt(t,e,n),Ml(t,e,n))}};function cp(e,t,n,i,a,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,l):t.prototype&&t.prototype.isPureReactComponent?!Ul(n,i)||!Ul(a,o):!0}function fp(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Ef.enqueueReplaceState(t,t.state,null)}function za(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Ae({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function By(e){Lu(e)}function Gy(e){console.error(e)}function Vy(e){Lu(e)}function Vu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function dp(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Tf(e,t,n){return n=Gi(n),n.tag=3,n.payload={element:null},n.callback=function(){Vu(e,t)},n}function Yy(e){return e=Gi(e),e.tag=3,e}function qy(e,t,n,i){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var o=i.value;e.payload=function(){return a(o)},e.callback=function(){dp(t,n,i)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){dp(t,n,i),typeof a!="function"&&(ji===null?ji=new Set([this]):ji.add(this));var r=i.stack;this.componentDidCatch(i.value,{componentStack:r!==null?r:""})})}function qS(e,t,n,i,a){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Na(t,n,a,!0),n=pt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return St===null?Fu():n.alternate===null&&qe===0&&(qe=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Pu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Ic(e,i,a)),!1;case 22:return n.flags|=65536,i===Pu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Ic(e,i,a)),!1}throw Error(A(435,n.tag))}return Ic(e,i,a),Fu(),!1}if(se)return t=pt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==df&&(e=Error(A(422),{cause:i}),Il(gn(e,n)))):(i!==df&&(t=Error(A(423),{cause:i}),Il(gn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=gn(i,n),a=Tf(e.stateNode,i,a),Oc(e,a),qe!==4&&(qe=2)),!1;var o=Error(A(520),{cause:i});if(o=gn(o,n),zl===null?zl=[o]:zl.push(o),qe!==4&&(qe=2),t===null)return!0;i=gn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Tf(n.stateNode,i,e),Oc(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(ji===null||!ji.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Yy(a),qy(a,e,n,i),Oc(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ud=Error(A(461)),Je=!1;function et(e,t,n,i){t.child=e===null?ay(t,null,n,i):Oa(t,e.child,n,i)}function hp(e,t,n,i,a){n=n.render;var o=t.ref;if("ref"in i){var l={};for(var r in i)r!=="ref"&&(l[r]=i[r])}else l=i;return Aa(t),i=Rd(e,t,n,l,o,a),r=Nd(),e!==null&&!Je?(Ad(e,t,a),mi(e,t,a)):(se&&r&&us(t),t.flags|=1,et(e,t,i,a),t.child)}function mp(e,t,n,i,a){if(e===null){var o=n.type;return typeof o=="function"&&!yd(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,jy(e,t,o,i,a)):(e=fu(n.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Id(e,a)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ul,n(l,i)&&e.ref===t.ref)return mi(e,t,a)}return t.flags|=1,e=ui(o,i),e.ref=t.ref,e.return=t,t.child=e}function jy(e,t,n,i,a){if(e!==null){var o=e.memoizedProps;if(Ul(o,i)&&e.ref===t.ref)if(Je=!1,t.pendingProps=i=o,Id(e,a))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,mi(e,t,a)}return Mf(e,t,n,i,a)}function Xy(e,t,n,i){var a=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(i=t.child=e.child,a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;i=a&~o}else i=0,t.child=null;return pp(e,t,o,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&hu(t,o!==null?o.cachePool:null),o!==null?ip(t,o):bf(),ry(t);else return i=t.lanes=536870912,pp(e,t,o!==null?o.baseLanes|n:n,n,i)}else o!==null?(hu(t,o.cachePool),ip(t,o),qi(),t.memoizedState=null):(e!==null&&hu(t,null),bf(),qi());return et(e,t,a,n),t.child}function Cl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pp(e,t,n,i,a){var o=wd();return o=o===null?null:{parent:Fe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&hu(t,null),bf(),ry(t),e!==null&&Na(e,t,i,!0),t.childLanes=a,null}function gu(e,t){return t=ms({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function gp(e,t,n){return Oa(t,e.child,null,n),e=gu(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function jS(e,t,n){var i=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(se){if(i.mode==="hidden")return e=gu(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Cl(null,e);if(vf(t),(e=Le)?(e=Xb(e,yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:qn,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},n=Jg(e),n.return=t,t.child=n,ut=t,Le=null)):e=null,e===null)throw Fi(t);return t.lanes=536870912,null}return gu(t,i)}var o=e.memoizedState;if(o!==null){var l=o.dehydrated;if(vf(t),a)if(t.flags&256)t.flags&=-257,t=gp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(A(558));else if(Je||Na(e,t,n,!1),a=(n&e.childLanes)!==0,Je||a){if(Ji.current===null){if(i=Ne,i!==null&&(l=xg(i,n),l!==0&&l!==o.retryLane))throw o.retryLane=l,Ua(e,l),Gt(i,e,l),Ud;Fu()}t=gp(e,t,n)}else e=o.treeContext,Le=bn(l.nextSibling),ut=t,se=!0,Bi=null,yn=!1,e!==null&&$g(t,e),t=gu(t,i),t.flags|=134221824;return t}return e=ui(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function to(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(A(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Mf(e,t,n,i,a){return Aa(t),n=Rd(e,t,n,i,void 0,a),i=Nd(),e!==null&&!Je?(Ad(e,t,a),mi(e,t,a)):(se&&i&&us(t),t.flags|=1,et(e,t,n,a),t.child)}function yp(e,t,n,i,a,o){return Aa(t),t.updateQueue=null,n=sy(t,i,n,a),uy(e),i=Nd(),e!==null&&!Je?(Ad(e,t,o),mi(e,t,o)):(se&&i&&us(t),t.flags|=1,et(e,t,n,o),t.child)}function bp(e,t,n,i,a){if(Aa(t),t.stateNode===null){var o=ho,l=n.contextType;typeof l=="object"&&l!==null&&(o=ft(l)),o=new n(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Ef,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},xd(t),l=n.contextType,o.context=typeof l=="object"&&l!==null?ft(l):ho,o.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(zc(t,n,l,i),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(l=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),l!==o.state&&Ef.enqueueReplaceState(o,o.state,null),Nl(t,i,o,a),Rl(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var r=t.memoizedProps,u=za(n,r);o.props=u;var s=o.context,f=n.contextType;l=ho,typeof f=="object"&&f!==null&&(l=ft(f));var p=n.getDerivedStateFromProps;f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(r||s!==l)&&fp(t,o,i,l),Li=!1;var c=t.memoizedState;o.state=c,Nl(t,i,o,a),Rl(),s=t.memoizedState,r||c!==s||Li?(typeof p=="function"&&(zc(t,n,p,i),s=t.memoizedState),(u=Li||cp(t,n,u,i,c,s,l))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=s),o.props=i,o.state=s,o.context=l,i=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,gf(e,t),l=t.memoizedProps,f=za(n,l),o.props=f,p=t.pendingProps,c=o.context,s=n.contextType,u=ho,typeof s=="object"&&s!==null&&(u=ft(s)),r=n.getDerivedStateFromProps,(s=typeof r=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==p||c!==u)&&fp(t,o,i,u),Li=!1,c=t.memoizedState,o.state=c,Nl(t,i,o,a),Rl();var m=t.memoizedState;l!==p||c!==m||Li||e!==null&&e.dependencies!==null&&ku(e.dependencies)?(typeof r=="function"&&(zc(t,n,r,i),m=t.memoizedState),(f=Li||cp(t,n,f,i,c,m,u)||e!==null&&e.dependencies!==null&&ku(e.dependencies))?(s||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=m),o.props=i,o.state=m,o.context=u,i=f):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,to(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=Oa(t,e.child,null,a),t.child=Oa(t,null,n,a)):et(e,t,n,a),t.memoizedState=o.state,e=t.child):e=mi(e,t,a),e}function vp(e,t,n,i){return Ra(),t.flags|=256,et(e,t,n,i),t.child}var Rf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nf(e){return{baseLanes:e,cachePool:ty()}}function Af(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Jt),e}function Ky(e,t,n){var i=t.pendingProps,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(ht.current&2)!==0),l&&(a=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(se){if(a?Yi(t):qi(),(e=Le)?(e=Xb(e,yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:qn,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},n=Jg(e),n.return=t,t.child=n,ut=t,Le=null)):e=null,e===null)throw Fi(t);return Jd(e)?t.lanes=32:t.lanes=536870912,null}return o=i.children,i=i.fallback,a?(qi(),a=t.mode,o=ms({mode:"hidden",children:o},a),i=xa(i,a,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,i=t.child,i.memoizedState=Nf(n),i.childLanes=Af(e,l,n),t.memoizedState=Rf,Cl(null,i)):(Yi(t),_d(t,o))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return XS(e,t,o,l,i,u,r,n)}return a?(qi(),a=i.fallback,o=t.mode,r=e.child,u=r.sibling,i=ui(r,{mode:"hidden",children:i.children}),i.subtreeFlags=r.subtreeFlags&1206910976,u!==null?a=ui(u,a):(a=xa(a,o,n,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,Cl(null,i),i=t.child,a=e.child.memoizedState,a===null?a=Nf(n):(o=a.cachePool,o!==null?(r=Fe._currentValue,o=o.parent!==r?{parent:r,pool:r}:o):o=ty(),a={baseLanes:a.baseLanes|n,cachePool:o}),i.memoizedState=a,i.childLanes=Af(e,l,n),t.memoizedState=Rf,Cl(e.child,i)):(Yi(t),n=e.child,e=n.sibling,n=ui(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function _d(e,t){return t=ms({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ms(e,t){return e=Bt(22,e,null,t),e.lanes=0,e}function Jr(e,t,n){return Oa(t,e.child,null,n),e=_d(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function XS(e,t,n,i,a,o,l,r){if(n)return t.flags&256?(Yi(t),t.flags&=-257,Jr(e,t,r)):t.memoizedState!==null?(qi(),t.child=e.child,t.flags|=128,null):(qi(),o=a.fallback,l=t.mode,a=ms({mode:"visible",children:a.children},l),o=xa(o,l,r,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Oa(t,e.child,null,r),a=t.child,a.memoizedState=Nf(r),a.childLanes=Af(e,i,r),t.memoizedState=Rf,Cl(null,a));if(Yi(t),Jd(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;return i=u,i!==""&&(a=Error(A(419)),a.stack="",a.digest=i,Il({value:a,source:null,stack:null})),Jr(e,t,r)}if(Je||Na(e,t,r,!1),i=(r&e.childLanes)!==0,Je||i){if(Ji.current!==null)return Jr(e,t,r);if(i=Ne,i!==null&&(a=xg(i,r),a!==0&&a!==l.retryLane))throw l.retryLane=a,Ua(e,a),Gt(i,e,a),Ud;return $f(o)||Fu(),Jr(e,t,r)}return $f(o)?(t.flags|=192,t.child=e.child,null):(e=l.treeContext,Le=bn(o.nextSibling),ut=t,se=!0,Bi=null,yn=!1,e!==null&&$g(t,e),t=_d(t,a.children),t.flags|=134221824,t)}function wp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),du(e.return,t,n)}function Sp(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&_u(n)===null&&(t=e),e=e.sibling}return t}function Wr(e,t,n,i,a,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:a,treeForkCount:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=i,l.tail=n,l.tailMode=a,l.treeForkCount=o)}function Dc(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function Cf(e,t,n){var i=t.pendingProps,a=i.revealOrder,o=i.tail;i=i.children;var l=ht.current;if(t.flags&128)return Gl(t,l),null;var r=(l&2)!==0;if(r?(l=l&1|2,t.flags|=128):l&=1,Gl(t,l),a==="backwards"&&e!==null?(Dc(e),et(e,t,i,n),Dc(e)):et(e,t,i,n),i=se?_l:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wp(e,n,t);else if(e.tag===19)wp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"backwards":n=Sp(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null,Dc(t)),Wr(t,!0,a,null,o,i);break;case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&_u(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Wr(t,!0,n,null,o,i);break;case"together":Wr(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:n=Sp(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Wr(t,!1,a,n,o,i)}return t.child}function xp(e,t,n){var i=t.pendingProps;return ki(t,t.type,i.value),et(e,t,i.children,n),t.child}function mi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$i|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Na(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Id(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ku(e)))}function KS(e,t,n){switch(t.tag){case 3:Nu(t,t.stateNode.containerInfo),ki(t,Fe,e.memoizedState.cache),Ra();break;case 27:case 5:tf(t);break;case 4:Nu(t,t.stateNode.containerInfo);break;case 10:ki(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vf(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return Yi(t),t.flags|=128,null;i=Na(e,t,n,!1);var a=t.child.childLanes;return i||(n&a)!==0?Ky(e,t,n):(Yi(t),e=mi(e,t,n),e!==null?e.sibling:null)}Yi(t);break;case 19:if(t.flags&128)return Cf(e,t,n);if(a=(e.flags&128)!==0,i=(n&t.childLanes)!==0,i||(Na(e,t,n,!1),i=(n&t.childLanes)!==0),a){if(i)return Cf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Gl(t,ht.current),i)break;return null;case 22:return t.lanes=0,Xy(e,t,n,t.pendingProps);case 24:ki(t,Fe,e.memoizedState.cache)}return mi(e,t,n)}function Qy(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Id(e,n)&&(t.flags&128)===0)return Je=!1,KS(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,se&&(t.flags&1048576)!==0&&Wg(t,_l,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ya(t.elementType),t.type=e,typeof e=="function")yd(e)?(i=za(e,i),t.tag=1,t=bp(null,t,e,i,n)):(t.tag=0,t=Mf(null,t,e,i,n));else{if(e!=null){var a=e.$$typeof;if(a===ad){t.tag=11,t=hp(null,t,e,i,n);break e}else if(a===od){t.tag=14,t=mp(null,t,e,i,n);break e}else if(a===Vn){t.tag=10,t.type=e,t=xp(null,t,n);break e}}throw t=$c(e)||e,Error(A(306,t,""))}}return t;case 0:return Mf(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=za(i,t.pendingProps),bp(e,t,i,a,n);case 3:e:{if(Nu(t,t.stateNode.containerInfo),e===null)throw Error(A(387));i=t.pendingProps;var o=t.memoizedState;a=o.element,gf(e,t),Nl(t,i,null,n);var l=t.memoizedState;if(i=l.cache,ki(t,Fe,i),i!==o.cache&&mf(t,[Fe],n,!0),Rl(),i=l.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=vp(e,t,i,n);break e}else if(i!==a){a=gn(Error(A(424)),t),Il(a),t=vp(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=bn(e.firstChild),ut=t,se=!0,Bi=null,yn=!0,n=ay(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Ra(),i===a){t=mi(e,t,n);break e}et(e,t,i,n)}t=t.child}return t;case 26:return to(e,t),e===null?(n=Zp(t.type,null,t.pendingProps,null))?t.memoizedState=n:se||(t.stateNode=Ub(t.type,t.pendingProps,Ii.current,t)):t.memoizedState=Zp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return tf(t),e===null&&se&&(i=t.stateNode=Kb(t.type,t.pendingProps,Ii.current),ut=t,yn=!0,a=Le,ta(t.type)?(ed=a,Le=bn(i.firstChild)):Le=a),et(e,t,t.pendingProps.children,n),to(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&se&&((a=i=Le)&&(i=Ix(i,t.type,t.pendingProps,yn),i!==null?(t.stateNode=i,ut=t,Le=bn(i.firstChild),yn=!1,a=!0):a=!1),a||Fi(t)),tf(t),a=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Ff(a,o)?i=null:l!==null&&Ff(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=Rd(e,t,PS,null,null,n),Uo._currentValue=a),to(e,t),et(e,t,i,n),t.child;case 6:return e===null&&se&&((e=n=Le)&&(n=Bx(n,t.pendingProps,yn),n!==null?(t.stateNode=n,ut=t,Le=null,e=!0):e=!1),e||Fi(t)),null;case 13:return Ky(e,t,n);case 4:return Nu(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Oa(t,null,i,n):et(e,t,i,n),t.child;case 11:return hp(e,t,t.type,t.pendingProps,n);case 7:return i=t.pendingProps,to(e,t),et(e,t,i,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:return xp(e,t,n);case 9:return a=t.type._context,i=t.pendingProps.children,Aa(t),a=ft(a),i=i(a),t.flags|=1,et(e,t,i,n),t.child;case 14:return mp(e,t,t.type,t.pendingProps,n);case 15:return jy(e,t,t.type,t.pendingProps,n);case 19:return Cf(e,t,n);case 31:return jS(e,t,n);case 22:return Xy(e,t,n,t.pendingProps);case 24:return Aa(t),i=ft(Fe),e===null?(a=wd(),a===null&&(a=Ne,o=vd(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:i,cache:a},xd(t),ki(t,Fe,a)):((e.lanes&n)!==0&&(gf(e,t),Nl(t,null,null,n),Rl()),a=e.memoizedState,o=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ki(t,Fe,i)):(i=o.cache,ki(t,Fe,i),i!==a.cache&&mf(t,[Fe],n,!0))),et(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:se&&us(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:to(e,t),et(e,t,i.children,n),t.child;case 29:throw t.pendingProps}throw Error(A(156,t.tag))}function oi(e){e.flags|=4}function Hc(e,t,n,i,a){var o;if((o=(e.mode&32)!==0)&&(o=n===null?Wp(t,i):Wp(t,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),o){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Eb())e.flags|=8192;else throw Ta=Pu,Sd}else e.flags&=-16777217}function Ep(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Jb(t))if(Eb())e.flags|=8192;else throw Ta=Pu,Sd}function $r(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?vg():536870912,e.lanes|=t,Lo|=t)}function dl(e,t){if(!se)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags&1206910976,i|=a.flags&1206910976,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function QS(e,t,n){var i=t.pendingProps;switch(bd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),si(Fe),No(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&($a(t)?oi(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Cc())),Oe(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(oi(t),o!==null?(Oe(t),Ep(t,o)):(Oe(t),Hc(t,a,null,i,n))):o?o!==e.memoizedState?(oi(t),Oe(t),Ep(t,o)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&oi(t),Oe(t),Hc(t,a,e,i,n)),null;case 27:if(Au(t),n=Ii.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&oi(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Oe(t),t.subtreeFlags&=-33554433,null}e=Xn.current,$a(t)?Fm(t,e):(e=Kb(a,i,n),t.stateNode=e,oi(t))}return Oe(t),t.subtreeFlags&=-33554433,null;case 5:if(Au(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&oi(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Oe(t),t.subtreeFlags&=-33554433,null}if(o=Xn.current,$a(t))Fm(t,o);else{var l=jl(Ii.current);switch(o){case 1:o=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:o=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":o=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":o=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":o=l.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?l.createElement("select",{is:i.is}):l.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?l.createElement(a,{is:i.is}):l.createElement(a)}}o[ct]=t,o[Yt]=i;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)o.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=o;e:switch(mt(o,a,i),a){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&oi(t)}}return Oe(t),t.subtreeFlags&=-33554433,Hc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&oi(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(A(166));if(e=Ii.current,$a(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,a=ut,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}e[ct]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||kb(e.nodeValue,n)),e||Fi(t,!0)}else e=jl(e).createTextNode(i),e[ct]=t,t.stateNode=e}return Oe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=$a(t),n!==null){if(e===null){if(!i)throw Error(A(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(557));e[ct]=t}else Ra(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else n=Cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(A(558))}return Oe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=$a(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(A(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(A(317));a[ct]=t}else Ra(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),a=!1}else a=Cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),$r(t,t.updateQueue),Oe(t),null);case 4:return No(),e===null&&Qd(t.stateNode.containerInfo),t.flags|=67108864,Oe(t),null;case 10:return si(t.type),Oe(t),null;case 19:if(Td(t),i=t.memoizedState,i===null)return Oe(t),null;if(a=(t.flags&128)!==0,o=i.rendering,o===null)if(a)dl(i,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=_u(e),o!==null){for(t.flags|=128,dl(i,!1),e=o.updateQueue,t.updateQueue=e,$r(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Fg(n,e),n=n.sibling;return Gl(t,ht.current&1|2),se&&li(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Wt()>Qu&&(t.flags|=128,a=!0,dl(i,!1),t.lanes=4194304)}else{if(!a)if(e=_u(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,$r(t,e),dl(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!o.alternate&&!se)return Oe(t),null}else 2*Wt()-i.renderingStartTime>Qu&&n!==536870912&&(t.flags|=128,a=!0,dl(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}if(i.tail!==null){e=i.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Wt(),e.sibling=null,o=ht.current,o=a?o&1|2:o&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||se?Gl(t,o):(n=o,ze(pt,t),ze(ht,n),St===null&&(St=t)),se&&li(t,i.treeForkCount),e}return Oe(t),null;case 22:case 23:return Zt(t),Ed(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),n=t.updateQueue,n!==null&&$r(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&dt(Ea),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),si(Fe),Oe(t),null;case 25:return null;case 30:return t.flags|=33554432,Oe(t),null}throw Error(A(156,t.tag))}function ZS(e,t){switch(bd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return si(Fe),No(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Au(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(A(340));Ra()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Ra()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Td(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return No(),null;case 10:return si(t.type),null;case 22:case 23:return Zt(t),Ed(),e!==null&&dt(Ea),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return si(Fe),null;case 25:return null;default:return null}}function Zy(e,t){switch(bd(t),t.tag){case 3:si(Fe),No();break;case 26:case 27:case 5:Au(t);break;case 4:No();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:Td(t);break;case 10:si(t.type);break;case 22:case 23:Zt(t),Ed(),e!==null&&dt(Ea);break;case 24:si(Fe)}}function ar(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&e)===e){i=void 0;var o=n.create,l=n.inst;i=o(),l.destroy=i}n=n.next}while(n!==a)}}catch(r){xe(t,t.return,r)}}function Wi(e,t,n){try{var i=t.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var o=a.next;i=o;do{if((i.tag&e)===e){var l=i.inst,r=l.destroy;if(r!==void 0){l.destroy=void 0,a=t;var u=n,s=r;try{s()}catch(f){xe(a,u,f)}}}i=i.next}while(i!==o)}}catch(f){xe(t,t.return,f)}}function Fy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ly(t,n)}catch(i){xe(e,e.return,i)}}}function Jy(e,t,n){n.props=za(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){xe(e,t,i)}}function Bn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var a=e.stateNode,o=fi(e.memoizedProps,a);(a.ref===null||a.ref.name!==o)&&(a.ref=Gb(o)),i=a.ref;break;case 7:if(e.stateNode===null){var l=new an(e);Vt(e.child,!1,Ux,l,void 0,void 0),e.stateNode=l}i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){xe(e,t,r)}}function st(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(a){xe(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){xe(e,t,a)}else n.current=null}function Yu(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)jb(e.stateNode,t[n])}function Tp(e){for(var t=e.return;t!==null&&(Gd(t)&&jb(e.stateNode,t.stateNode),!Bd(t));)t=t.return}function Ol(e){for(var t=e.return;t!==null&&(Gd(t)&&_x(e.stateNode,t.stateNode),!Bd(t));)t=t.return}function Bd(e){return e.tag===5||e.tag===3||e.tag===27}function Gd(e){return e&&e.tag===7&&e.stateNode!==null}function Of(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){xe(e,e.return,a)}}function kc(e,t,n){try{var i=e.stateNode;vx(i,e.type,n,t),i[Yt]=t}catch(a){xe(e,e.return,a)}}function Wy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ta(e.type)||e.tag===4}function Pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ta(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lf(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(a,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(a),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yn)),Yu(e,i),ge=!0;else if(a!==4&&(a===27&&(Yu(e,i),i=null,ta(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Lf(e,t,n,i),e=e.sibling;e!==null;)Lf(e,t,n,i),e=e.sibling}function qu(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?n.insertBefore(a,t):n.appendChild(a),Yu(e,i),ge=!0;else if(a!==4&&(a===27&&(Yu(e,i),i=null,ta(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(qu(e,t,n,i),e=e.sibling;e!==null;)qu(e,t,n,i),e=e.sibling}function $y(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);mt(t,i,n),t[ct]=e,t[Yt]=n}catch(o){xe(e,e.return,o)}}var ju=!1,Ft=null;function Mp(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(ju=!0)}var Gn=null;function Rp(){var e=Gn;return Gn=null,e}var It=0;function Yo(e,t,n,i,a){return It=0,eb(e.child,t,n,i,a)}function eb(e,t,n,i,a){for(var o=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(i!==null){var r=Jf(l);i.push(r),r.view&&(o=!0)}else o||Jf(l).view&&(o=!0);ju=!0,_b(l,It===0?t:t+"_"+It,n),It++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||eb(e.child,t,n,i,a)&&(o=!0));e=e.sibling}return o}function Qn(e,t){for(;e!==null;)e.tag===5?Ib(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Qn(e.child,t)),e=e.sibling}function yu(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(yu(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(A(544));var n=t.name;t=yi(t.default,t.share),t!=="none"&&(Yo(e,n,t,null,!1)||Qn(e.child,!1))}e=e.sibling}}function zf(e,t){if(e.tag===30){var n=e.stateNode,i=e.memoizedProps,a=fi(i,n),o=yi(i.default,n.paired?i.share:i.enter);o!=="none"?Yo(e,a,o,null,!1)?(yu(e),n.paired||t||zo(e,i.onEnter)):Qn(e.child,!1):yu(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)zf(e,t),e=e.sibling;else yu(e)}function Df(e){if(Ft!==null&&Ft.size!==0){var t=Ft;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var a=t.get(i);if(a!==void 0){var o=yi(n.default,n.share);if(o!=="none"&&(Yo(e,i,o,null,!1)?(o=e.stateNode,a.paired=o,o.paired=a,zo(e,n.onShare)):Qn(e.child,!1)),t.delete(i),t.size===0)break}}}Df(e)}e=e.sibling}}}function Hf(e){if(e.tag===30){var t=e.memoizedProps,n=fi(t,e.stateNode),i=Ft!==null?Ft.get(n):void 0,a=yi(t.default,i!==void 0?t.share:t.exit);a!=="none"&&(Yo(e,n,a,null,!1)?i!==void 0?(a=e.stateNode,i.paired=a,a.paired=i,Ft.delete(n),zo(e,t.onShare)):zo(e,t.onExit):Qn(e.child,!1)),Ft!==null&&Df(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Hf(e),e=e.sibling;else Ft!==null&&Df(e)}function tb(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=fi(t,e.stateNode);t=yi(t.default,t.update),e.flags&=-5,t!=="none"&&Yo(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&tb(e);e=e.sibling}}function kf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Qn(e.child,!1))}kf(e)}e=e.sibling}}function bu(e){if(e.tag===30)e.stateNode.paired=null,Qn(e.child,!1),kf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)bu(e),e=e.sibling;else kf(e)}function nb(e){for(e=e.child;e!==null;)e.tag===30?Qn(e.child,!1):(e.subtreeFlags&33554432)!==0&&nb(e),e=e.sibling}function Vd(e,t,n,i,a,o,l){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(o!==null&&It<o.length){var s=o[It],f=Jf(u);(s.view||f.view)&&(r=!0);var p;if(p=(e.flags&4)===0)if(f.clip)p=!0;else{p=s.rect;var c=f.rect;p=p.y!==c.y||p.x!==c.x||p.height!==c.height||p.width!==c.width}p&&(e.flags|=4),f.abs?f=!s.abs:(s=s.rect,f=f.rect,f=s.height!==f.height||s.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&_b(u,It===0?n:n+"_"+It,a),r&&(e.flags&4)!==0||(Gn===null&&(Gn=[]),Gn.push(u,It===0?i:i+"_"+It,t.memoizedProps)),It++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&l?e.flags|=t.flags&32:Vd(e,t.child,n,i,a,o,l)&&(r=!0));t=t.sibling}return r}function ib(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,i=e.stateNode,a=fi(n,i),o=yi(n.default,n.update);if(t){i=i.clones;var l=i===null?null:i.map(Mx)}else l=e.memoizedState,e.memoizedState=null;i=e;var r=e.child;It=0,a=Vd(i,r,a,a,o,l,!1),(e.flags&4)!==0&&a&&(t||zo(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&ib(e,t);e=e.sibling}}var ot=!1,ve=!1,Un=!1,Uc=!1,Np=typeof WeakSet=="function"?WeakSet:Set,lt=null,_n=!1,wl=!1,Xu=!1,Pf=!1;function FS(e,t,n){if(e=e.containerInfo,Qf=_o,e=Vg(e),md(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var o=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{i.nodeType,l.nodeType}catch{i=null;break e}var r=0,u=-1,s=-1,f=0,p=0,c=e,m=null;t:for(;;){for(var w;c!==i||o!==0&&c.nodeType!==3||(u=r+o),c!==l||a!==0&&c.nodeType!==3||(s=r+a),c.nodeType===3&&(r+=c.nodeValue.length),(w=c.firstChild)!==null;)m=c,c=w;for(;;){if(c===e)break t;if(m===i&&++f===o&&(u=r),m===l&&++p===a&&(s=r),(w=c.nextSibling)!==null)break;c=m,m=c.parentNode}c=w}i=u===-1||s===-1?null:{start:u,end:s}}else i=null}i=i||{start:0,end:0}}else i=null;for(Zf={focusedElem:e,selectionRange:i},_o=!1,n=(n&335544064)===n,lt=t,t=n?9270:1024;lt!==null;){if(e=lt,n&&(i=e.deletions,i!==null))for(o=0;o<i.length;o++)n&&Hf(i[o]);if(e.alternate===null&&(e.flags&2)!==0)n&&Mp(e),eu(n);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&Hf(i),eu(n);continue}else if(i!==null&&i.memoizedState!==null){n&&Mp(e),eu(n);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,lt=i):(n&&tb(e),eu(n))}}Ft=null}function eu(e){for(;lt!==null;){var t=lt,n=e,i=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&i!==null){n=void 0,a=i.memoizedProps,i=i.memoizedState;var o=t.stateNode;try{var l=za(t.type,a);n=o.getSnapshotBeforeUpdate(l,i),o.__reactInternalSnapshotBeforeUpdate=n}catch(r){xe(t,t.return,r)}}break;case 3:if((a&1024)!==0){if(i=t.stateNode.containerInfo,n=i.nodeType,n===9)Wf(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Wf(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=fi(i.memoizedProps,i.stateNode),a=t.memoizedProps,a=yi(a.default,a.update),a!=="none"&&Yo(i,n,a,i.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(A(163))}if(i=t.sibling,i!==null){i.return=t.return,lt=i;break}lt=t.return}}function ab(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:In(e,n),i&4&&ar(5,n);break;case 1:if(In(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){xe(n,n.return,l)}else{var a=za(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){xe(n,n.return,l)}}i&64&&Fy(n),i&512&&Bn(n,n.return);break;case 3:if(In(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ly(e,t)}catch(l){xe(n,n.return,l)}}break;case 27:t===null&&i&4&&$y(n);case 26:case 5:In(e,n),t===null&&i&4&&Of(n),i&512&&Bn(n,n.return);break;case 12:In(e,n);break;case 31:In(e,n),i&4&&ub(e,n);break;case 13:In(e,n),i&4&&sb(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ux.bind(null,n),Gx(e,n))));break;case 22:if(i=n.memoizedState!==null||ot,!i){var o=t!==null&&t.memoizedState!==null||ve;t=ot,a=ve,ot=i,(ve=o)&&!a?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),En(e,n,i)):In(e,n),ot=t,ve=a}break;case 30:In(e,n),i&512&&Bn(n,n.return);break;case 7:i&512&&Bn(n,n.return);default:In(e,n)}}function Uf(e,t){for(e=e.child;e!==null;)ob(e,t),e=e.sibling}function ob(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var a=e.stateNode,o=e.memoizedProps.style,l=o!=null&&o.hasOwnProperty("display")?o.display:null;a.style.display=l==null||typeof l=="boolean"?"":(""+l).trim()}}catch(u){xe(e,e.return,u)}_f(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ge=!0}catch(u){xe(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?Yp(r,!0):Yp(e.stateNode,!1)}catch(u){xe(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&Uf(e,t);break;default:Uf(e,t)}}function _f(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,i=t;switch(n.tag){case 4:ob(n,i);break e;case 22:n.memoizedState===null&&_f(n,i);break e;default:_f(n,i)}}e=e.sibling}}function lb(e){var t=e.alternate;t!==null&&(e.alternate=null,lb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ns(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var _e=null,Ut=!1;function xn(e,t,n){for(n=n.child;n!==null;)rb(e,t,n),n=n.sibling}function rb(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Jl,n)}catch{}switch(n.tag){case 26:ve||st(n,t),xn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ve&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ve||st(n,t),Ol(n);var i=_e,a=Ut;ta(n.type)&&(_e=n.stateNode,Ut=!1),xn(e,t,n),Qb(n.stateNode,n.type,n.memoizedProps),_e=i,Ut=a;break;case 5:ve||st(n,t),Ol(n);case 6:if(n.tag===6&&Ol(n),i=_e,a=Ut,_e=null,xn(e,t,n),_e=i,Ut=a,_e!==null)if(Ut)try{(_e.nodeType===9?_e.body:_e.nodeName==="HTML"?_e.ownerDocument.body:_e).removeChild(n.stateNode),ge=!0}catch(o){xe(n,t,o)}else try{_e.removeChild(n.stateNode),ge=!0}catch(o){xe(n,t,o)}break;case 18:_e!==null&&(Ut?(e=_e,Vp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Io(e)):Vp(_e,n.stateNode));break;case 4:i=_e,a=Ut,_e=n.stateNode.containerInfo,Ut=!0,xn(e,t,n),_e=i,Ut=a;break;case 0:case 11:case 14:case 15:Wi(2,n,t),ve||Wi(4,n,t),xn(e,t,n);break;case 1:ve||(st(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Jy(n,t,i)),xn(e,t,n);break;case 21:xn(e,t,n);break;case 22:ve=(i=ve)||n.memoizedState!==null,xn(e,t,n),ve=i;break;case 30:st(n,t),xn(e,t,n);break;case 7:ve||st(n,t),xn(e,t,n);break;default:xn(e,t,n)}}function ub(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Io(e)}catch(n){xe(t,t.return,n)}}}function sb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Io(e)}catch(n){xe(t,t.return,n)}}function JS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Np),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Np),t;default:throw Error(A(435,e.tag))}}function tu(e,t){var n=JS(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var a=sx.bind(null,e,i);i.then(a,a)}})}function Ot(e,t,n){var i=t.deletions;if(i!==null)for(var a=0;a<i.length;a++){var o=i[a],l=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(ta(u.type)){_e=u.stateNode,Ut=!1;break e}break;case 5:_e=u.stateNode,Ut=!1;break e;case 3:case 4:_e=u.stateNode.containerInfo,Ut=!0;break e}u=u.return}if(_e===null)throw Error(A(160));rb(l,r,o),_e=null,Ut=!1,l=o.alternate,l!==null&&(l.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)cb(t,e,n),t=t.sibling}var Tn=null;function cb(e,t,n){var i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var o=0;o<i.length;o++){var l=i[o];l.ref.impl=l.nextImpl}Ot(t,e,n),Lt(e),a&4&&(Wi(3,e,e.return),ar(3,e),Wi(5,e,e.return));break;case 1:Ot(t,e,n),Lt(e),a&512&&(ve||i===null||st(i,i.return)),a&64&&ot&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Tn,Ot(t,e,n),Lt(e),a&512&&(ve||i===null||st(i,i.return)),a&4)if(a=i!==null?i.memoizedState:null,n=e.memoizedState,i===null)if(n===null)if(e.stateNode===null)if(ot)e.stateNode=Ub(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;t:switch(t){case"title":i=a.getElementsByTagName("title")[0],(!i||i[er]||i[ct]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(t),a.head.insertBefore(i,a.querySelector("head > title"))),mt(i,t,n),i[ct]=e,rt(i),t=i;break e;case"link":if(o=Jp("link","href",a).get(t+(n.href||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(l,1);break t}}i=a.createElement(t),mt(i,t,n),a.head.appendChild(i);break;case"meta":if(o=Jp("meta","content",a).get(t+(n.content||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(l,1);break t}}i=a.createElement(t),mt(i,t,n),a.head.appendChild(i);break;default:throw Error(A(468,t))}i[ct]=e,rt(i),t=i}e.stateNode=t}else ot||td(o,e.type,e.stateNode);else e.stateNode=Fp(o,n,e.memoizedProps);else a!==n?(a===null?(t=i.stateNode,t===null||ve||t.parentNode.removeChild(t)):a.count--,n===null?ot||td(o,e.type,e.stateNode):Fp(o,n,e.memoizedProps)):n===null&&e.stateNode!==null&&kc(e,e.memoizedProps,i.memoizedProps);break;case 27:Ot(t,e,n),Lt(e),a&512&&(ve||i===null||st(i,i.return)),i!==null&&a&4&&kc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(o=Un,Un=!1,Ot(t,e,n),Un=o,Lt(e),a&512&&(ve||i===null||st(i,i.return)),e.flags&32){t=e.stateNode;try{Co(t,""),ge=!0}catch(f){xe(e,e.return,f)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,kc(e,t,i!==null?i.memoizedProps:t)),a&1024&&(Uc=!0);break;case 6:if(Ot(t,e,n),Lt(e),a&4){if(e.stateNode===null)throw Error(A(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,ge=!0}catch(f){xe(e,e.return,f)}}break;case 3:if(ge=!1,xu=null,o=Tn,Tn=Xl(t.containerInfo),Ot(t,e,n),Tn=o,Lt(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{Io(t.containerInfo)}catch(f){xe(e,e.return,f)}Uc&&(Uc=!1,fb(e)),ge=!1;break;case 4:a=Un,Un=ot,i=Dm(),o=Tn,Tn=Xl(e.stateNode.containerInfo),Ot(t,e,n),Lt(e),Tn=o,ge&&wl&&(Xu=!0),ge=i,Un=a;break;case 12:Ot(t,e,n),Lt(e);break;case 31:Ot(t,e,n),Lt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,tu(e,t)));break;case 13:Ot(t,e,n),Lt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(ps=Wt()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,tu(e,t)));break;case 22:o=e.memoizedState!==null,l=i!==null&&i.memoizedState!==null;var r=ot,u=ve,s=Un;ot=r||o,Un=s||o,ve=u||l,Ot(t,e,n),ve=u,Un=s,ot=r,Lt(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||i===null||l||ot||ve||(t=l||ve,n=ot,i=ve,ot=o||ot,ve=t,Ci(e,2),ot=n,ve=i),!o&&Un||Uf(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,tu(e,n))));break;case 19:Ot(t,e,n),Lt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,tu(e,t)));break;case 30:a&512&&(ve||i===null||st(i,i.return)),a=Dm(),o=wl,l=(n&335544064)===n,r=e.memoizedProps,wl=l&&yi(r.default,r.update)!=="none",Ot(t,e,n),Lt(e),l&&i!==null&&ge&&(e.flags|=4),wl=o,ge=a;break;case 21:break;case 7:a&512&&(ve||i===null||st(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Ot(t,e,n),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Wy(i)){n=i;break}i=i.return}i=null;for(var a=e.return;a!==null;){if(Gd(a)){var o=a.stateNode;i===null?i=[o]:i.push(o)}if(Bd(a))break;a=a.return}var l=i;if(n==null)throw Error(A(160));switch(n.tag){case 27:var r=n.stateNode,u=Pc(e);qu(e,u,r,l);break;case 5:var s=n.stateNode;n.flags&32&&(Co(s,""),n.flags&=-33);var f=Pc(e);qu(e,f,s,l);break;case 3:case 4:var p=n.stateNode.containerInfo,c=Pc(e);Lf(e,c,p,l);break;default:throw Error(A(161))}}catch(m){xe(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fb(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,_o=!0,t.reset(),_o=!1),e=e.sibling}}function eo(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)db(t,e),t=t.sibling;else ib(t,!1)}function db(e,t){var n=e.alternate;if(n===null)zf(e,!1);else switch(e.tag){case 3:if(Pf=_n=!1,Rp(),eo(t,e),!_n&&!Xu){if(e=Gn,e!==null)for(var i=0;i<e.length;i+=3){n=e[i];var a=e[i+1];Ib(n,e[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Pf=!0}Gn=null;break;case 5:eo(t,e);break;case 4:i=_n,_n=!1,eo(t,e),_n&&(Xu=!0),_n=i;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?zf(e,!1):eo(t,e));break;case 30:i=_n,a=Rp(),_n=!1,eo(t,e),_n&&(e.flags|=4);var o=e.memoizedProps,l=e.stateNode;t=fi(o,l),l=fi(n.memoizedProps,l);var r=yi(o.default,o.update);r==="none"?t=!1:(o=n.memoizedState,n.memoizedState=null,n=e.child,It=0,t=Vd(e,n,t,l,r,o,!0),It!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(zo(e,e.memoizedProps.onUpdate),Gn=a):a!==null&&(a.push.apply(a,Gn),Gn=a),_n=(e.flags&32)!==0?!0:i;break;default:eo(t,e)}}function In(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ab(e,t.alternate,t),t=t.sibling}function Ci(e,t){for(e=e.child;e!==null;){var n=e,i=t;switch(n.tag){case 0:case 11:case 14:case 15:Wi(4,n,n.return),Ci(n,i);break;case 1:st(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Jy(n,n.return,a),Ci(n,i);break;case 27:(i&2)!==0&&Qb(n.stateNode,n.type,n.memoizedProps);case 5:st(n,n.return),n.tag!==5&&n.tag!==27||Ol(n),Ci(n,i);break;case 6:Ol(n);break;case 26:st(n,n.return),a=n.stateNode,n.memoizedState!==null||a===null||ve||a.parentNode.removeChild(a),Ci(n,i);break;case 22:n.memoizedState===null&&Ci(n,i);break;case 30:st(n,n.return),Ci(n,i);break;case 7:st(n,n.return);default:Ci(n,i)}e=e.sibling}}function En(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var i=t.alternate,a=e,o=t,l=o.flags,r=(n&1)!==0;switch(o.tag){case 0:case 11:case 15:En(a,o,n),ar(4,o);break;case 1:if(En(a,o,n),i=o,a=i.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(f){xe(i,i.return,f)}if(i=o,a=i.updateQueue,a!==null){var u=i.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)oy(s[a],u)}catch(f){xe(i,i.return,f)}}r&&l&64&&Fy(o),Bn(o,o.return);break;case 27:(n&2)!==0&&$y(o);case 5:o.tag!==5&&o.tag!==27||Tp(o),En(a,o,n),r&&i===null&&l&4&&Of(o),Bn(o,o.return);break;case 6:Tp(o);break;case 26:u=o.stateNode,o.memoizedState!==null||u===null||ot||td(Xl(u.ownerDocument),o.type,u),En(a,o,n),r&&i===null&&l&4&&Of(o),Bn(o,o.return);break;case 12:En(a,o,n);break;case 31:En(a,o,n),r&&l&4&&ub(a,o);break;case 13:En(a,o,n),r&&l&4&&sb(a,o);break;case 22:o.memoizedState===null&&En(a,o,n),Bn(o,o.return);break;case 30:En(a,o,n),Bn(o,o.return);break;case 7:Bn(o,o.return);default:En(a,o,n)}t=t.sibling}}function Yd(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&nr(n))}function qd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nr(e))}function fn(e,t,n,i){var a=(n&335544064)===n;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)hb(e,t,n,i),t=t.sibling;else a&&nb(t)}function hb(e,t,n,i){var a=(n&335544064)===n;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&bu(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:fn(e,t,n,i),o&2048&&ar(9,t);break;case 1:fn(e,t,n,i);break;case 3:fn(e,t,n,i),a&&Pf&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),o&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&nr(o)));break;case 12:if(o&2048){fn(e,t,n,i),o=t.stateNode;try{var l=t.memoizedProps,r=l.id,u=l.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(s){xe(t,t.return,s)}}else fn(e,t,n,i);break;case 31:fn(e,t,n,i);break;case 13:fn(e,t,n,i);break;case 23:break;case 22:l=t.stateNode,r=t.alternate,t.memoizedState!==null?(a&&r!==null&&r.memoizedState===null&&bu(r),l._visibility&2?fn(e,t,n,i):Ll(e,t)):(a&&r!==null&&r.memoizedState!==null&&bu(t),l._visibility&2?fn(e,t,n,i):(l._visibility|=2,no(e,t,n,i,(t.subtreeFlags&10256)!==0||!1))),o&2048&&Yd(r,t);break;case 24:fn(e,t,n,i),o&2048&&qd(t.alternate,t);break;case 30:a&&(o=t.alternate,o!==null&&(Qn(o.child,!0),Qn(t.child,!0))),fn(e,t,n,i);break;default:fn(e,t,n,i)}}function no(e,t,n,i,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,l=t,r=n,u=i,s=l.flags;switch(l.tag){case 0:case 11:case 15:no(o,l,r,u,a),ar(8,l);break;case 23:break;case 22:var f=l.stateNode;l.memoizedState!==null?f._visibility&2?no(o,l,r,u,a):Ll(o,l):(f._visibility|=2,no(o,l,r,u,a)),a&&s&2048&&Yd(l.alternate,l);break;case 24:no(o,l,r,u,a),a&&s&2048&&qd(l.alternate,l);break;default:no(o,l,r,u,a)}t=t.sibling}}function Ll(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,a=i.flags;switch(i.tag){case 22:Ll(n,i),a&2048&&Yd(i.alternate,i);break;case 24:Ll(n,i),a&2048&&qd(i.alternate,i);break;default:Ll(n,i)}t=t.sibling}}var ba=8192;function pa(e,t,n){if(e.subtreeFlags&ba)for(e=e.child;e!==null;)mb(e,t,n),e=e.sibling}function mb(e,t,n){switch(e.tag){case 26:pa(e,t,n),e.flags&ba&&(e.memoizedState!==null?tE(n,Tn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&$p(n,e)));break;case 5:pa(e,t,n),e.flags&ba&&(e=e.stateNode,(t&335544128)===t&&$p(n,e));break;case 3:case 4:var i=Tn;Tn=Xl(e.stateNode.containerInfo),pa(e,t,n),Tn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ba,ba=16777216,pa(e,t,n),ba=i):pa(e,t,n));break;case 30:if((e.flags&ba)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var a=e.stateNode;a.paired=null,Ft===null&&(Ft=new Map),Ft.set(i,a)}pa(e,t,n);break;default:pa(e,t,n)}}function pb(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function hl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,yb(i,e)}pb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gb(e),e=e.sibling}function gb(e){switch(e.tag){case 0:case 11:case 15:hl(e),e.flags&2048&&Wi(9,e,e.return);break;case 3:hl(e);break;case 12:hl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,vu(e)):hl(e);break;default:hl(e)}}function vu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,yb(i,e)}pb(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wi(8,t,t.return),vu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,vu(t));break;default:vu(t)}e=e.sibling}}function yb(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:Wi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:nr(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,lt=i;else e:for(n=e;lt!==null;){i=lt;var a=i.sibling,o=i.return;if(lb(i),i===n){lt=null;break e}if(a!==null){a.return=o,lt=a;break e}lt=o}}}var WS={getCacheForType:function(e){var t=ft(Fe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ft(Fe).controller.signal}},$S=typeof WeakMap=="function"?WeakMap:Map,ye=0,Ne=null,de=null,me=0,we=0,Kt=null,Pi=!1,qo=!1,jd=!1,pi=0,qe=0,$i=0,Ma=0,Ku=0,Jt=0,Lo=0,zl=null,_t=null,If=!1,ps=0,bb=0,Qu=1/0,Zu=null,ji=null,Ie=0,Rn=null,Da=null,Kn=0,Bf=0,Gf=null,vb=null,To=null,Mo=null,Ro=null,Dl=0,wu=null;function tn(){return(ye&2)!==0&&me!==0?me&-me:F.T!==null?Kd():Eg()}function wb(){if(Jt===0)if((me&536870912)===0||se){var e=Vr;Vr<<=1,(Vr&3932160)===0&&(Vr=262144),Jt=e}else Jt=536870912;return e=pt.current,e!==null&&(e.flags|=32),Jt}function zo(e,t){if(t!=null){var n=e.stateNode,i=n.ref;i===null&&(i=n.ref=Gb(fi(e.memoizedProps,n))),Mo===null&&(Mo=[]),Mo.push(t.bind(null,i))}}function Gt(e,t,n){(e===Ne&&(we===2||we===9)||e.cancelPendingCommit!==null)&&(Do(e,0),Ui(e,me,Jt,!1)),$l(e,n),((ye&2)===0||e!==Ne)&&(e===Ne&&((ye&2)===0&&(Ma|=n),qe===4&&Ui(e,me,Jt,!1)),Fn(e))}function Sb(e,t,n){if((ye&6)!==0)throw Error(A(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Wl(e,t),a=i?nx(e,t):_c(e,t,!0),o=i;do{if(a===0){qo&&!i&&Ui(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!ex(n)){a=_c(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var r=e;a=zl;var u=r.current.memoizedState.isDehydrated;if(u&&(Do(r,l).flags|=256),l=_c(r,l,!1),l!==2&&l!==6){if(jd&&!u){r.errorRecoveryDisabledLanes|=o,Ma|=o,a=4;break e}o=_t,_t=a,o!==null&&(_t===null?_t=o:_t.push.apply(_t,o))}a=l}if(o=!1,a!==2)continue}}if(a===1){Do(e,0),Ui(e,t,0,!0);break}e:{switch(i=e,o=a,o){case 0:case 1:throw Error(A(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ui(i,t,Jt,!Pi);break e;case 2:_t=null;break;case 3:case 5:break;default:throw Error(A(329))}if((t&62914560)===t&&(a=ps+300-Wt(),10<a)){if(Ui(i,t,Jt,!Pi),ts(i,0,!0)!==0)break e;Kn=t,i.timeoutHandle=Zd(Ap.bind(null,i,n,_t,Zu,If,t,Jt,Ma,Lo,Pi,o,"Throttled",-0,0),a);break e}Ap(i,n,_t,Zu,If,t,Jt,Ma,Lo,Pi,o,null,-0,0)}}break}while(!0);Fn(e)}function Ap(e,t,n,i,a,o,l,r,u,s,f,p,c,m){e.timeoutHandle=-1;var w=t.subtreeFlags,b=(o&335544064)===o;if(p=null,(b||w&8192||(w&16785408)===16785408)&&(p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yn},Ft=null,mb(t,o,p),b&&(w=p,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(w.count++,w.waitingForViewTransition=!0,w=Kl.bind(w),b.finished.then(w,w))),w=(o&62914560)===o?ps-Wt():(o&4194048)===o?bb-Wt():0,w=nE(p,w),w!==null)){Kn=o,e.cancelPendingCommit=w(Op.bind(null,e,t,o,n,i,a,l,r,u,s,f,p,null,c,m)),Ui(e,o,l,!s);return}Op(e,t,o,n,i,a,l,r,u,s,f,p)}function ex(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var a=n[i],o=a.getSnapshot;a=a.value;try{if(!nn(o(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ui(e,t,n,i){t=bg(e,t),t&=~Ku,t&=~Ma,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var a=t;0<a;){var o=31-en(a),l=1<<o;i[o]=-1,a&=~l}n!==0&&wg(e,n,t)}function gs(){return(ye&6)===0?(or(0,!1),!1):!0}function Xd(){if(de!==null){if(we===0)var e=de.return;else e=de,ri=_a=null,Cd(e),So=null,Bl=0,e=de;for(;e!==null;)Zy(e.alternate,e),e=e.return;de=null}}function Do(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,xx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Kn=0,Xd(),Ne=e,de=n=ui(e.current,null),me=t,we=0,Kt=null,Pi=!1,qo=Wl(e,t),jd=!1,Lo=Jt=Ku=Ma=$i=qe=0,_t=zl=null,If=!1,pi=bg(e,t),ls(),n}function xb(e,t){oe=null,F.H=Gu,t===Vo||t===ss?(t=tp(),we=3):t===Sd?(t=tp(),we=4):we=t===Ud?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,de===null&&(qe=1,Vu(e,gn(t,e.current)))}function Eb(){var e=pt.current;return e===null?!0:(me&4194048)===me?St===null:(me&62914560)===me||(me&536870912)!==0?e===St:!1}function Tb(){var e=F.H;return F.H=Gu,e===null?Gu:e}function Mb(){var e=F.A;return F.A=WS,e}function Fu(){qe=4,Pi||(me&4194048)!==me&&pt.current!==null||(qo=!0),($i&134217727)===0&&(Ma&134217727)===0||Ne===null||Ui(Ne,me,Jt,!1)}function _c(e,t,n){var i=ye;ye|=2;var a=Tb(),o=Mb();(Ne!==e||me!==t)&&(Zu=null,Do(e,t)),t=!1;var l=qe;e:do try{if(we!==0&&de!==null){var r=de,u=Kt;switch(we){case 8:Xd(),l=6;break e;case 3:case 2:case 9:case 6:pt.current===null&&(t=!0);var s=we;if(we=0,Kt=null,go(e,r,u,s),n&&qo){l=0;break e}break;default:s=we,we=0,Kt=null,go(e,r,u,s)}}tx(),l=qe;break}catch(f){xb(e,f)}while(!0);return t&&e.shellSuspendCounter++,ri=_a=null,ye=i,F.H=a,F.A=o,de===null&&(Ne=null,me=0,ls()),l}function tx(){for(;de!==null;)Rb(de)}function nx(e,t){var n=ye;ye|=2;var i=Tb(),a=Mb();Ne!==e||me!==t?(Zu=null,Qu=Wt()+500,Do(e,t)):qo=Wl(e,t);e:do try{if(we!==0&&de!==null){t=de;var o=Kt;t:switch(we){case 1:we=0,Kt=null,go(e,t,o,1);break;case 2:case 9:if(ep(o)){we=0,Kt=null,Cp(t);break}t=function(){we!==2&&we!==9||Ne!==e||(we=7),Fn(e)},o.then(t,t);break e;case 3:we=7;break e;case 4:we=5;break e;case 7:ep(o)?(we=0,Kt=null,Cp(t)):(we=0,Kt=null,go(e,t,o,7));break;case 5:var l=null;switch(de.tag){case 26:l=de.memoizedState;case 5:case 27:var r=de;if(l?Jb(l):r.stateNode.complete){we=0,Kt=null;var u=r.sibling;if(u!==null)de=u;else{var s=r.return;s!==null?(de=s,ys(s)):de=null}break t}}we=0,Kt=null,go(e,t,o,5);break;case 6:we=0,Kt=null,go(e,t,o,6);break;case 8:Xd(),qe=6;break e;default:throw Error(A(462))}}ix();break}catch(f){xb(e,f)}while(!0);return ri=_a=null,F.H=i,F.A=a,ye=n,de!==null?0:(Ne=null,me=0,ls(),qe)}function ix(){for(;de!==null&&!ww();)Rb(de)}function Rb(e){var t=Qy(e.alternate,e,pi);e.memoizedProps=e.pendingProps,t===null?ys(e):de=t}function Cp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=yp(n,t,t.pendingProps,t.type,void 0,me);break;case 11:t=yp(n,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Cd(t);var i=t;i===ut&&(se?(Hu(i),i.tag===5&&i.stateNode!=null&&(Le=i.stateNode)):(Hu(i),se=!0));default:Zy(n,t),t=de=Fg(t,pi),t=Qy(n,t,pi)}e.memoizedProps=e.pendingProps,t===null?ys(e):de=t}function go(e,t,n,i){ri=_a=null,Cd(t),So=null,Bl=0;var a=t.return;try{if(qS(e,a,t,n,me)){qe=1,Vu(e,gn(n,e.current)),de=null;return}}catch(o){if(a!==null)throw de=a,o;qe=1,Vu(e,gn(n,e.current)),de=null;return}t.flags&32768?(se||i===1?e=!0:qo||(me&536870912)!==0?e=!1:(Pi=e=!0,(i===2||i===9||i===3||i===6)&&(i=pt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Nb(t,e)):ys(t)}function ys(e){var t=e;do{if((t.flags&32768)!==0){Nb(t,Pi);return}e=t.return;var n=QS(t.alternate,t,pi);if(n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);qe===0&&(qe=5)}function Nb(e,t){do{var n=ZS(e.alternate,e);if(n!==null){n.flags&=32767,de=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=n}while(e!==null);qe=6,de=null}function Op(e,t,n,i,a,o,l,r,u,s,f,p){e.cancelPendingCommit=null;do bs();while(Ie!==0);if((ye&6)!==0)throw Error(A(327));if(t!==null){if(t===e.current)throw Error(A(177));e===Ne&&(de=Ne=null,me=0),Da=t,Rn=e,Kn=n,Gf=a,vb=i,ax(e,t,n,l,r,u,p)}}function ax(e,t,n,i,a,o,l){var r=t.lanes|t.childLanes;if(Bf=r,r|=pd,Ow(e,n,r,i,a,o),Mo=null,(n&335544064)===n?(Ro=zS(e),i=10262):(Ro=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,cx(Cu,function(){return jf(),null})):(e.callbackNode=null,e.callbackPriority=0),ju=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=F.T,F.T=null,a=be.p,be.p=2,o=ye,ye|=4;try{FS(e,t,n)}finally{ye=o,be.p=a,F.T=i}}Ie=1,ju?To=Ax(l,e.containerInfo,Ro,Vf,Yf,lx,qf,jf,ox,null,null):(Vf(),Yf(),qf())}function ox(e){if(Ie!==0){var t=Rn.onRecoverableError;t(e,{componentStack:null})}}function lx(){Ie===3&&(Ie=0,db(Da,Rn),Ie=4)}function Vf(){if(Ie===1){Ie=0;var e=Rn,t=Da,n=Kn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=F.T,F.T=null;var a=be.p;be.p=2;var o=ye;ye|=4;try{wl=Xu=!1,cb(t,e,n),n=Zf;var l=Vg(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(l!==r&&r&&r.ownerDocument&&Gg(r.ownerDocument.documentElement,r)){if(u!==null&&md(r)){var s=u.start,f=u.end;if(f===void 0&&(f=s),"selectionStart"in r)r.selectionStart=s,r.selectionEnd=Math.min(f,r.value.length);else{var p=r.ownerDocument||document,c=p&&p.defaultView||window;if(c.getSelection){var m=c.getSelection(),w=r.textContent.length,b=Math.min(u.start,w),v=u.end===void 0?b:Math.min(u.end,w);!m.extend&&b>v&&(l=v,v=b,b=l);var d=Xm(r,b),h=Xm(r,v);if(d&&h&&(m.rangeCount!==1||m.anchorNode!==d.node||m.anchorOffset!==d.offset||m.focusNode!==h.node||m.focusOffset!==h.offset)){var g=p.createRange();g.setStart(d.node,d.offset),m.removeAllRanges(),b>v?(m.addRange(g),m.extend(h.node,h.offset)):(g.setEnd(h.node,h.offset),m.addRange(g))}}}}for(p=[],m=r;m=m.parentNode;)m.nodeType===1&&p.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<p.length;r++){var S=p[r];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}_o=!!Qf,Zf=Qf=null}finally{ye=o,be.p=a,F.T=i}}e.current=t,Ie=2}}function Yf(){if(Ie===2){Ie=0;var e=Rn,t=Da,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=F.T,F.T=null;var i=be.p;be.p=2;var a=ye;ye|=4;try{ab(e,t.alternate,t)}finally{ye=a,be.p=i,F.T=n}}Ie=3}}function qf(){if(Ie===4||Ie===3){Ie=0;var e=To;To=null,Sw();var t=Rn,n=Da,i=Kn,a=vb,o=(i&335544064)===i?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?Ie=5:(Ie=0,Da=Rn=null,Ab(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(ji=null),ud(i),n=n.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Jl,n,void 0,(n.current.flags&128)===128)}catch{}if(a!==null){n=F.T,o=be.p,be.p=2,F.T=null;try{for(var l=t.onRecoverableError,r=0;r<a.length;r++){var u=a[r];l(u.value,{componentStack:u.stack})}}finally{F.T=n,be.p=o}}if(a=Mo,l=Ro,Ro=null,a!==null&&(Mo=null,l===null&&(l=[]),e!==null))for(u=0;u<a.length;u++)n=(0,a[u])(l),n!==void 0&&e.finished.finally(n);(Kn&3)!==0&&bs(),Fn(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===wu?Dl++:(Dl=0,wu=t):(Dl=0,wu=null),or(0,!1)}}function Ab(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,nr(t)))}function bs(){return To!==null&&(To.skipTransition(),To=null),Vf(),Yf(),qf(),jf()}function jf(){if(Ie!==5)return!1;var e=Rn,t=Bf;Bf=0;var n=ud(Kn),i=F.T,a=be.p;try{be.p=32>n?32:n,F.T=null,n=Gf,Gf=null;var o=Rn,l=Kn;if(Ie=0,Da=Rn=null,Kn=0,(ye&6)!==0)throw Error(A(331));var r=ye;if(ye|=4,gb(o.current),hb(o,o.current,l,n),ye=r,or(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Jl,o)}catch{}return!0}finally{be.p=a,F.T=i,Ab(e,t)}}function Lp(e,t,n){t=gn(n,t),t=Tf(e.stateNode,t,2),e=Vi(e,t,2),e!==null&&($l(e,2),Fn(e))}function xe(e,t,n){if(e.tag===3)Lp(e,e,n);else for(;t!==null;){if(t.tag===3){Lp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ji===null||!ji.has(i))){e=gn(n,e),n=Yy(2),i=Vi(t,n,2),i!==null&&(qy(n,i,t,e),$l(i,2),Fn(i));break}}t=t.return}}function Ic(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new $S;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(n)||(jd=!0,a.add(n),e=rx.bind(null,e,t,n),t.then(e,e))}function rx(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ne===e&&(me&n)===n&&((qe===4||qe===3&&(me&62914560)===me&&300>Wt()-ps)&&(ye&2)===0?Do(e,0):Ku|=n,Lo===me&&(Lo=0)),Fn(e)}function Cb(e,t){t===0&&(t=vg()),e=Ua(e,t),e!==null&&($l(e,t),Fn(e))}function ux(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cb(e,n)}function sx(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(A(314))}i!==null&&i.delete(t),Cb(e,n)}function cx(e,t){return ld(e,t)}var Ho=null,io=null,Xf=!1,Ju=!1,Bc=!1,_i=0;function Fn(e){e!==io&&e.next===null&&(io===null?Ho=io=e:io=io.next=e),Ju=!0,Xf||(Xf=!0,dx())}function or(e,t){if(!Bc&&Ju){Bc=!0;do for(var n=!1,i=Ho;i!==null;){if(!t)if(e!==0){var a=i.pendingLanes;if(a===0)var o=0;else{var l=i.suspendedLanes,r=i.pingedLanes;o=(1<<31-en(42|e)+1)-1,o&=a&~(l&~r),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,zp(i,o))}else o=me,o=ts(i,i===Ne?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Wl(i,o)||(n=!0,zp(i,o));i=i.next}while(n);Bc=!1}}function fx(){Ob()}function Ob(){Ju=Xf=!1;var e=0;_i!==0&&Sx()&&(e=_i);for(var t=Wt(),n=null,i=Ho;i!==null;){var a=i.next,o=Lb(i,t);o===0?(i.next=null,n===null?Ho=a:n.next=a,a===null&&(io=n)):(n=i,(e!==0||(o&3)!==0)&&(Ju=!0)),i=a}Ie!==0&&Ie!==5||or(e,!1),_i!==0&&(_i=0)}function Lb(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var l=31-en(o),r=1<<l,u=a[l];u===-1?((r&n)===0||(r&i)!==0)&&(a[l]=Cw(r,t)):u<=t&&(e.expiredLanes|=r),o&=~r}if(t=Ne,n=me,n=ts(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(we===2||we===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&bc(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Wl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&bc(i),ud(n)){case 2:case 8:n=gg;break;case 32:n=Cu;break;case 268435456:n=yg;break;default:n=Cu}return i=zb.bind(null,e),n=ld(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&bc(i),e.callbackPriority=2,e.callbackNode=null,2}function zb(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bs()&&e.callbackNode!==n)return null;var i=me;return i=ts(e,e===Ne?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Sb(e,i,t),Lb(e,Wt()),e.callbackNode!=null&&e.callbackNode===n?zb.bind(null,e):null)}function zp(e,t){if(bs())return null;Sb(e,t,!0)}function dx(){Ex(function(){(ye&6)!==0?ld(pg,fx):Ob()})}function Kd(){if(_i===0){var e=Ca;e===0&&(e=Gr,Gr<<=1,(Gr&261888)===0&&(Gr=256)),_i=e}return _i}function Dp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:uu(e)}function hx(e,t,n,i,a){if(t==="submit"&&n&&n.stateNode===a){var o=Dp((a[Yt]||null).action),l=i.submitter;l&&(t=(t=l[Yt]||null)?Dp(t.formAction):l.getAttribute("formAction"),t!==null&&(o=t,l=null));var r=new is("action","action",null,i,a);e.push({event:r,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(_i!==0){var u=new FormData(a,l);xf(n,{pending:!0,data:u,method:a.method,action:o},null,u)}}else typeof o=="function"&&(r.preventDefault(),u=new FormData(a,l),xf(n,{pending:!0,data:u,method:a.method,action:o},o,u))},currentTarget:a}]})}}for(nu=0;nu<ff.length;nu++)iu=ff[nu],Hp=iu.toLowerCase(),kp=iu[0].toUpperCase()+iu.slice(1),Nn(Hp,"on"+kp);var iu,Hp,kp,nu;Nn(qg,"onAnimationEnd");Nn(jg,"onAnimationIteration");Nn(Xg,"onAnimationStart");Nn("dblclick","onDoubleClick");Nn("focusin","onFocus");Nn("focusout","onBlur");Nn(TS,"onTransitionRun");Nn(MS,"onTransitionStart");Nn(RS,"onTransitionCancel");Nn(Kg,"onTransitionEnd");Ao("onMouseEnter",["mouseout","mouseover"]);Ao("onMouseLeave",["mouseout","mouseover"]);Ao("onPointerEnter",["pointerout","pointerover"]);Ao("onPointerLeave",["pointerout","pointerover"]);ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ka("onBeforeInput",["compositionend","keypress","textInput","paste"]);ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yl));function Db(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],a=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var l=i.length-1;0<=l;l--){var r=i[l],u=r.instance,s=r.currentTarget;if(r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=s;try{o(a)}catch(f){Lu(f)}a.currentTarget=null,o=u}else for(l=0;l<i.length;l++){if(r=i[l],u=r.instance,s=r.currentTarget,r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=s;try{o(a)}catch(f){Lu(f)}a.currentTarget=null,o=u}}}}function fe(e,t){var n=t[Cm];n===void 0&&(n=t[Cm]=new Set);var i=e+"__bubble";n.has(i)||(Hb(t,e,2,!1),n.add(i))}function Gc(e,t,n){var i=0;t&&(i|=4),Hb(n,e,i,t)}var au="_reactListening"+Math.random().toString(36).slice(2);function Qd(e){if(!e[au]){e[au]=!0,Mg.forEach(function(n){n!=="selectionchange"&&(mx.has(n)||Gc(n,!1,e),Gc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[au]||(t[au]=!0,Gc("selectionchange",!1,t))}}function Hb(e,t,n,i){switch(av(t)){case 2:var a=lE;break;case 8:a=rE;break;default:a=th}n=a.bind(null,t,n,e),a=void 0,!rf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),i?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Vc(e,t,n,i,a){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var l=i.tag;if(l===3||l===4){var r=i.stateNode.containerInfo;if(r===a)break;if(l===4)for(l=i.return;l!==null;){var u=l.tag;if((u===3||u===4)&&l.stateNode.containerInfo===a)return;l=l.return}for(;r!==null;){if(l=va(r),l===null)return;if(u=l.tag,u===5||u===6||u===26||u===27){i=o=l;continue e}r=r.parentNode}}i=i.return}Dg(function(){var s=o,f=cd(n),p=[];e:{var c=Qg.get(e);if(c!==void 0){var m=is,w=e;switch(e){case"keypress":if(cu(n)===0)break e;case"keydown":case"keyup":m=eS;break;case"focusin":w="focus",m=Tc;break;case"focusout":w="blur",m=Tc;break;case"beforeblur":case"afterblur":m=Tc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Um;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Vw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=oS;break;case qg:case jg:case Xg:m=jw;break;case Kg:m=rS;break;case"scroll":case"scrollend":m=Bw;break;case"wheel":m=sS;break;case"copy":case"cut":case"paste":m=Kw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Im;break;case"submit":m=iS;break;case"toggle":case"beforetoggle":m=fS}var b=(t&4)!==0,v=!b&&(e==="scroll"||e==="scrollend"),d=b?c!==null?c+"Capture":null:c;b=[];for(var h=s,g;h!==null;){var S=h;if(g=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||g===null||d===null||(S=kl(h,d),S!=null&&b.push(ql(h,S,g))),v)break;h=h.return}0<b.length&&(c=new m(c,w,null,n,f),p.push({event:c,listeners:b}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",c=e==="mouseout"||e==="pointerout",m&&n!==lf&&(w=n.relatedTarget||n.fromElement)&&(va(w)||w[Bo]))break e;(c||m)&&(w=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,c?(m=n.relatedTarget||n.toElement,c=s,m=m?va(m):null,m!==null&&(v=Fl(m),b=m.tag,m!==v||b!==5&&b!==27&&b!==6)&&(m=null)):(c=null,m=s),c!==m&&(b=Um,S="onMouseLeave",d="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(b=Im,S="onPointerLeave",d="onPointerEnter",h="pointer"),v=c==null?w:bl(c),g=m==null?w:bl(m),w=new b(S,h+"leave",c,n,f),w.target=v,w.relatedTarget=g,S=null,va(f)===s&&(b=new b(d,h+"enter",m,n,f),b.target=g,b.relatedTarget=v,S=b),v=S,b=c&&m?Kc(c,m,px):null,c!==null&&Pp(p,w,c,b,!1),m!==null&&v!==null&&Pp(p,v,m,b,!0)))}e:{if(c=s?bl(s):window,m=c.nodeName&&c.nodeName.toLowerCase(),m==="select"||m==="input"&&c.type==="file")var E=Ym;else if(Vm(c))if(Ig)E=SS;else{E=vS;var R=bS}else m=c.nodeName,!m||m.toLowerCase()!=="input"||c.type!=="checkbox"&&c.type!=="radio"?s&&sd(s.elementType)&&(E=Ym):E=wS;if(E&&(E=E(e,s))){_g(p,E,n,f);break e}R&&R(e,c,s)}switch(R=s?bl(s):window,e){case"focusin":(Vm(R)||R.contentEditable==="true")&&(so=R,sf=s,El=null);break;case"focusout":El=sf=so=null;break;case"mousedown":cf=!0;break;case"contextmenu":case"mouseup":case"dragend":cf=!1,Km(p,n,f);break;case"selectionchange":if(ES)break;case"keydown":case"keyup":Km(p,n,f)}var x;if(hd)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else uo?Pg(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(kg&&n.locale!=="ko"&&(uo||N!=="onCompositionStart"?N==="onCompositionEnd"&&uo&&(x=Hg()):(Hi=f,fd="value"in Hi?Hi.value:Hi.textContent,uo=!0)),R=Wu(s,N),0<R.length&&(N=new _m(N,e,null,n,f),p.push({event:N,listeners:R}),x?N.data=x:(x=Ug(n),x!==null&&(N.data=x)))),(x=hS?mS(e,n):pS(e,n))&&(N=Wu(s,"onBeforeInput"),0<N.length&&(R=new _m("onBeforeInput","beforeinput",null,n,f),p.push({event:R,listeners:N}),R.data=x)),hx(p,e,s,n,f)}Db(p,t)})}function ql(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wu(e,t){for(var n=t+"Capture",i=[];e!==null;){var a=e,o=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||o===null||(a=kl(e,n),a!=null&&i.unshift(ql(e,a,o)),a=kl(e,t),a!=null&&i.push(ql(e,a,o))),e.tag===3)return i;e=e.return}return[]}function px(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Pp(e,t,n,i,a){for(var o=t._reactName,l=[];n!==null&&n!==i;){var r=n,u=r.alternate,s=r.stateNode;if(r=r.tag,u!==null&&u===i)break;r!==5&&r!==26&&r!==27||s===null||(u=s,a?(s=kl(n,o),s!=null&&l.unshift(ql(n,s,u))):a||(s=kl(n,o),s!=null&&l.push(ql(n,s,u)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var gx=/\r\n?/g,yx=/\u0000|\uFFFD/g;function Up(e){return(typeof e=="string"?e:""+e).replace(gx,`
|
|
766
|
-
`).replace(yx,"")}function kb(e,t){return t=Up(t),Up(e)===t}function Se(e,t,n,i,a,o){switch(n){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||Co(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&Co(e,""+i);else return;break;case"className":qr(e,"class",i);break;case"tabIndex":qr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":qr(e,n,i);break;case"style":zg(e,i,o);return;case"data":if(t!=="object"){qr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=uu(i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Se(e,t,"name",a.name,a,null),Se(e,t,"formEncType",a.formEncType,a,null),Se(e,t,"formMethod",a.formMethod,a,null),Se(e,t,"formTarget",a.formTarget,a,null)):(Se(e,t,"encType",a.encType,a,null),Se(e,t,"method",a.method,a,null),Se(e,t,"target",a.target,a,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=uu(i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Yn);return;case"onScroll":i!=null&&fe("scroll",e);return;case"onScrollEnd":i!=null&&fe("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(A(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(A(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=uu(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":fe("beforetoggle",e),fe("toggle",e),ru(e,"popover",i);break;case"xlinkActuate":ai(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ai(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ai(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ai(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ai(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ai(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ai(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ai(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ai(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":ru(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=_w.get(n)||n,ru(e,n,i);else return}ge=!0}function Kf(e,t,n,i,a,o){switch(n){case"style":zg(e,i,o);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(A(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(A(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof i=="string")Co(e,i);else if(typeof i=="number"||typeof i=="bigint")Co(e,""+i);else return;break;case"onScroll":i!=null&&fe("scroll",e);return;case"onScrollEnd":i!=null&&fe("scrollend",e);return;case"onClick":i!=null&&(e.onclick=Yn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Rg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),o=n.slice(2,a?n.length-7:void 0),t=e[Yt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(o,t,a),typeof i=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,i,a);break e}ge=!0,n in e?e[n]=i:i===!0?e.setAttribute(n,""):ru(e,n,i)}return}ge=!0}function mt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fe("error",e),fe("load",e);var i=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var l=n[o];if(l!=null)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:Se(e,t,o,l,n,null)}}a&&Se(e,t,"srcSet",n.srcSet,n,null),i&&Se(e,t,"src",n.src,n,null);return;case"input":fe("invalid",e);var r=o=l=a=null,u=null,s=null;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"name":a=f;break;case"type":l=f;break;case"checked":u=f;break;case"defaultChecked":s=f;break;case"value":o=f;break;case"defaultValue":r=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(A(137,t));break;default:Se(e,t,i,f,n,null)}}Cg(e,o,r,u,s,l,a,!1);return;case"select":fe("invalid",e),i=l=o=null;for(a in n)if(n.hasOwnProperty(a)&&(r=n[a],r!=null))switch(a){case"value":o=r;break;case"defaultValue":l=r;break;case"multiple":i=r;default:Se(e,t,a,r,n,null)}t=o,n=l,e.multiple=!!i,t!=null?bo(e,!!i,t,!1):n!=null&&bo(e,!!i,n,!0);return;case"textarea":fe("invalid",e),o=a=i=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":i=r;break;case"defaultValue":a=r;break;case"children":o=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(A(91));break;default:Se(e,t,l,r,n,null)}Lg(e,i,a,o);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Se(e,t,u,i,n,null)}return;case"dialog":fe("beforetoggle",e),fe("toggle",e),fe("cancel",e),fe("close",e);break;case"iframe":case"object":fe("load",e);break;case"video":case"audio":for(i=0;i<Yl.length;i++)fe(Yl[i],e);break;case"image":fe("error",e),fe("load",e);break;case"details":fe("toggle",e);break;case"embed":case"source":case"link":fe("error",e),fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(s in n)if(n.hasOwnProperty(s)&&(i=n[s],i!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:Se(e,t,s,i,n,null)}return;default:if(sd(t)){for(f in n)n.hasOwnProperty(f)&&(i=n[f],i!==void 0&&Kf(e,t,f,i,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(i=n[r],i!=null&&Se(e,t,r,i,n,null))}var bx={};function vx(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,l=null,r=null,u=null,s=null,f=null;for(m in n){var p=n[m];if(n.hasOwnProperty(m)&&p!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":u=p;default:i.hasOwnProperty(m)||Se(e,t,m,null,i,p)}}for(var c in i){var m=i[c];if(p=n[c],i.hasOwnProperty(c)&&(m!=null||p!=null))switch(c){case"type":m!==p&&(ge=!0),o=m;break;case"name":m!==p&&(ge=!0),a=m;break;case"checked":m!==p&&(ge=!0),s=m;break;case"defaultChecked":m!==p&&(ge=!0),f=m;break;case"value":m!==p&&(ge=!0),l=m;break;case"defaultValue":m!==p&&(ge=!0),r=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(A(137,t));break;default:m!==p&&Se(e,t,c,m,i,p)}}of(e,l,r,u,s,f,o,a);return;case"select":m=l=r=c=null;for(o in n)if(u=n[o],n.hasOwnProperty(o)&&u!=null)switch(o){case"value":break;case"multiple":m=u;default:i.hasOwnProperty(o)||Se(e,t,o,null,i,u)}for(a in i)if(o=i[a],u=n[a],i.hasOwnProperty(a)&&(o!=null||u!=null))switch(a){case"value":o!==u&&(ge=!0),c=o;break;case"defaultValue":o!==u&&(ge=!0),r=o;break;case"multiple":o!==u&&(ge=!0),l=o;default:o!==u&&Se(e,t,a,o,i,u)}t=r,n=l,i=m,c!=null?bo(e,!!n,c,!1):!!i!=!!n&&(t!=null?bo(e,!!n,t,!0):bo(e,!!n,n?[]:"",!1));return;case"textarea":m=c=null;for(r in n)if(a=n[r],n.hasOwnProperty(r)&&a!=null&&!i.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:Se(e,t,r,null,i,a)}for(l in i)if(a=i[l],o=n[l],i.hasOwnProperty(l)&&(a!=null||o!=null))switch(l){case"value":a!==o&&(ge=!0),c=a;break;case"defaultValue":a!==o&&(ge=!0),m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(A(91));break;default:a!==o&&Se(e,t,l,a,i,o)}Og(e,c,m);return;case"option":for(var w in n)if(c=n[w],n.hasOwnProperty(w)&&c!=null&&!i.hasOwnProperty(w))switch(w){case"selected":e.selected=!1;break;default:Se(e,t,w,null,i,c)}for(u in i)if(c=i[u],m=n[u],i.hasOwnProperty(u)&&c!==m&&(c!=null||m!=null))switch(u){case"selected":c!==m&&(ge=!0),e.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Se(e,t,u,c,i,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)c=n[b],n.hasOwnProperty(b)&&c!=null&&!i.hasOwnProperty(b)&&Se(e,t,b,null,i,c);for(s in i)if(c=i[s],m=n[s],i.hasOwnProperty(s)&&c!==m&&(c!=null||m!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(A(137,t));break;default:Se(e,t,s,c,i,m)}return;default:if(sd(t)){for(var v in n)c=n[v],n.hasOwnProperty(v)&&c!==void 0&&!i.hasOwnProperty(v)&&Kf(e,t,v,void 0,i,c);for(f in i)c=i[f],m=n[f],!i.hasOwnProperty(f)||c===m||c===void 0&&m===void 0||Kf(e,t,f,c,i,m);return}}for(var d in n)c=n[d],n.hasOwnProperty(d)&&c!=null&&!i.hasOwnProperty(d)&&Se(e,t,d,null,i,c);for(p in i)c=i[p],m=n[p],!i.hasOwnProperty(p)||c===m||c==null&&m==null||Se(e,t,p,c,i,m)}function _p(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var a=n[i],o=a.transferSize,l=a.initiatorType,r=a.duration;if(o&&r&&_p(l)){for(l=0,r=a.responseEnd,i+=1;i<n.length;i++){var u=n[i],s=u.startTime;if(s>r)break;var f=u.transferSize,p=u.initiatorType;f&&_p(p)&&(u=u.responseEnd,l+=f*(u<r?1:(r-s)/(u-s)))}if(--i,t+=8*(o+l)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Qf=null,Zf=null;function jl(e){return e.nodeType===9?e:e.ownerDocument}function Ip(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Pb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ub(e,t,n,i){return n=jl(n).createElement(e),n[ct]=i,n[Yt]=t,mt(n,e,t),rt(n),n}function Ff(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Yc=null;function Sx(){var e=window.event;return e&&e.type==="popstate"?e===Yc?!1:(Yc=e,!0):(Yc=null,!1)}var Zd=typeof setTimeout=="function"?setTimeout:void 0,xx=typeof clearTimeout=="function"?clearTimeout:void 0,Bp=typeof Promise=="function"?Promise:void 0,Gp=typeof requestAnimationFrame=="function"?requestAnimationFrame:Zd,Ex=typeof queueMicrotask=="function"?queueMicrotask:typeof Bp<"u"?function(e){return Bp.resolve(null).then(e).catch(Tx)}:Zd;function Tx(e){setTimeout(function(){throw e})}function ta(e){return e==="head"}function Vp(e,t){var n=t,i=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(a),Io(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")jc(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,jc(n);for(var o=n.firstChild;o;){var l=o.nextSibling,r=o.nodeName;o[er]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=l}}else n==="body"&&jc(e.ownerDocument.body);n=a}while(n);Io(t)}function Yp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function _b(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var a=i=0;a<t.length;a++){var o=t[a];0<o.width&&0<o.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Ib(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Bb(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Jf(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return Bb(t,n,e)}function Mx(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Bb(t,n,e)}function Rx(e){return e.documentElement.clientHeight}function Nx(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Ax(e,t,n,i,a,o,l,r,u){var s=t.nodeType===9?t:t.ownerDocument;try{var f=s.startViewTransition({update:function(){var c=s.defaultView,m=c.navigation&&c.navigation.transition,w=s.fonts.status;i();var b=[];if(w==="loaded"&&(Rx(s),s.fonts.status==="loading"&&b.push(s.fonts.ready)),w=b.length,e!==null)for(var v=e.suspenseyImages,d=0,h=0;h<v.length;h++){var g=v[h];if(!g.complete){var S=g.getBoundingClientRect();if(0<S.bottom&&0<S.right&&S.top<c.innerHeight&&S.left<c.innerWidth){if(d+=Wb(g),d>Eu){b.length=w;break}g=new Promise(Nx.bind(g)),b.push(g)}}}if(0<b.length)return c=Promise.race([Promise.all(b),new Promise(function(E){return setTimeout(E,500)})]).then(a,a),(m?Promise.allSettled([m.finished,c]):c).then(o,o);if(a(),m)return m.finished.then(o,o);o()},types:n});s.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var c=s.documentElement.getAnimations({subtree:!0}),m=0;m<c.length;m++){var w=c[m],b=w.effect,v=b.pseudoElement;if(v!=null&&v.startsWith("::view-transition")){p.push(w),w=b.getKeyframes();for(var d=v=void 0,h=!0,g=0;g<w.length;g++){var S=w[g],E=S.width;if(v===void 0)v=E;else if(v!==E){h=!1;break}if(E=S.height,d===void 0)d=E;else if(d!==E){h=!1;break}delete S.width,delete S.height,S.transform==="none"&&delete S.transform}h&&v!==void 0&&d!==void 0&&(b.setKeyframes(w),h=getComputedStyle(b.target,b.pseudoElement),h.width!==v||h.height!==d)&&(h=w[0],h.width=v,h.height=d,h=w[w.length-1],h.width=v,h.height=d,b.setKeyframes(w))}}l()},function(c){s.__reactViewTransition===f&&(s.__reactViewTransition=null);try{if(typeof c=="object"&&c!==null)switch(c.name){case"InvalidStateError":(c.message==="View transition was skipped because document visibility state is hidden."||c.message==="Skipping view transition because document visibility state has become hidden."||c.message==="Skipping view transition because viewport size changed."||c.message==="Transition was aborted because of invalid state")&&(c=null)}c!==null&&u(c)}finally{i(),a(),l()}}),f.finished.finally(function(){for(var c=0;c<p.length;c++)p[c].cancel();s.__reactViewTransition===f&&(s.__reactViewTransition=null),r()}),f}catch{return i(),a(),l(),null}}function wa(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}wa.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Ae({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};wa.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),i=[],a=0;a<n.length;a++){var o=n[a].effect;o!==null&&o.target===e&&o.pseudoElement===t&&i.push(n[a])}return i};wa.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Gb(e){return{name:e,group:new wa("group",e),imagePair:new wa("image-pair",e),old:new wa("old",e),new:new wa("new",e)}}function an(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}an.prototype.addEventListener=function(e,t,n){var i=null,a=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(Vb(o,e,t,n)===-1){var l=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){l.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),i!==null&&(a=l.removeEventListener.bind(l,e,t,n),i.addEventListener("abort",a,{once:!0}),a=i.removeEventListener.bind(i,"abort",a)),i=ko(n),o.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:a}),Vt(this._fragmentFiber.child,!1,Cx,e,r,i)}this._eventListeners=o}};function Cx(e,t,n,i){return tt(e).addEventListener(t,n,i),!1}an.prototype.removeEventListener=function(e,t,n){var i=this._eventListeners;if(i!==null&&(t=Vb(i,e,t,n),t!==-1)){var a=i[t];n=a.attachedListener;var o=a.cleanup;a=ko(a.optionsOrUseCapture),Vt(this._fragmentFiber.child,!1,Ox,e,n,a),i.splice(t,1),o!==null&&o()}};function Ox(e,t,n,i){return tt(e).removeEventListener(t,n,i),!1}function ko(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function qp(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Vb(e,t,n,i){if(e.length===0)return-1;i=qp(i);for(var a=0;a<e.length;a++){var o=e[a];if(o.type===t&&o.listener===n&&qp(o.optionsOrUseCapture)===i)return a}return-1}an.prototype.dispatchEvent=function(e){var t=Ha(this._fragmentFiber);if(t===null)return!0;t=tt(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var a=0;a<n.length;a++){var o=n[a];i.addEventListener(o.type,o.attachedListener,ko(o.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),n)for(a=0;a<n.length;a++)o=n[a],i.removeEventListener(o.type,o.attachedListener,ko(o.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)};an.prototype.focus=function(e){Vt(this._fragmentFiber.child,!0,Yb,e,void 0,void 0)};function Yb(e,t){return e.tag===6?!1:(e=tt(e),Vx(e,t))}an.prototype.focusLast=function(e){var t=[];Vt(this._fragmentFiber.child,!0,Fd,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Yb(t[n],e);n--);};function Fd(e,t){return t.push(e),!1}an.prototype.blur=function(){var e=Ha(this._fragmentFiber);e!==null&&(e=tt(e),e=jl(e).activeElement,e!==null&&Vt(this._fragmentFiber.child,!1,Lx,e,void 0,void 0))};function Lx(e,t){return e.tag===6?!1:(e=tt(e),e===t||e.contains(t)?(t.blur(),!0):!1)}an.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Vt(this._fragmentFiber.child,!1,zx,e,void 0,void 0)};function zx(e,t){return e.tag===6||(e=tt(e),t.observe(e)),!1}an.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Vt(this._fragmentFiber.child,!1,Dx,e,void 0,void 0);for(var n=t=0;n<Mn.length;n++){var i=Mn[n];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):Mn[t++]=i}Mn.length=t}};function Dx(e,t){return e.tag===6||(e=tt(e),t.unobserve(e)),!1}var Mn=[],qc=!1;function Hx(e,t,n){Mn.push({fragmentInstance:e,observer:t,instance:n}),qc||(qc=!0,Yx(function(){qc=!1;var i=Mn;Mn=[];for(var a=0;a<i.length;a++){var o=i[a];o.observer.unobserve(o.instance)}}))}an.prototype.getClientRects=function(){var e=[];return Vt(this._fragmentFiber.child,!1,kx,e,void 0,void 0),e};function kx(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=tt(e),t.push.apply(t,e.getClientRects());return!1}an.prototype.getRootNode=function(e){var t=Ha(this._fragmentFiber);return t===null?this:tt(t).getRootNode(e)};an.prototype.compareDocumentPosition=function(e){var t=Ha(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Vt(this._fragmentFiber.child,!1,Fd,n,void 0,void 0);var i=tt(t);if(n.length===0){if(n=i,Em(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var a=i=n.compareDocumentPosition(e);return n===e?a=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=fg(t)[1],n===null?a=Node.DOCUMENT_POSITION_PRECEDING:(e=tt(n).compareDocumentPosition(e),a=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=tt(n[0]),a=tt(n[n.length-1]);var o=Em(this._fragmentFiber)?t.parentElement:i;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var l=t.compareDocumentPosition(e),r=a.compareDocumentPosition(e),u=l&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=i&&o&&l&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||o&&a===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!o&&a===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:l,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Px(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Px(e,t,n,i,a){var o=va(a);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){n=!0;break e}o=o.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=a.ownerDocument,a===o||a===o.documentElement||a===o.body;e:{for(o=t,t=Ha(t);o!==null;){if(!(o.tag!==5&&o.tag!==3&&o.tag!==27||o!==t&&o.alternate!==t)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!o)&&!(t=o===n)&&(t=Kc(n,o,Tm),t===null?t=!1:(Vt(t,!0,dw,o,n),o=ao,ao=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===i)&&(t=Kc(i,o,Tm),t===null?t=!1:(Vt(t,!0,hw,o,i),o=ao,Xc=ao=null,t=o!==null)),t):!1}function jp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}an.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(A(566));var t=[];Vt(this._fragmentFiber.child,!1,Fd,t,void 0,void 0);var n=e!==!1;if(t.length===0){var i=fg(this._fragmentFiber);if(i=n?i[1]||i[0]||Ha(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=tt(i),jp(e,n);return}if(i=tt(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=n?t.length-1:0;i!==(n?-1:t.length);){var a=t[i];a.tag===6?(a=tt(a),jp(a,n)):tt(a).scrollIntoView(e),i+=n?-1:1}};function Ux(e,t){return e=tt(e),qb(e,t),!1}function qb(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function jb(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];e.addEventListener(a.type,a.attachedListener,ko(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){for(var l=0,r=0;r<Mn.length;r++){var u=Mn[r];(u.fragmentInstance!==t||u.observer!==o||u.instance!==e)&&(Mn[l++]=u)}Mn.length=l,o.observe(e)}),qb(e,t))}function _x(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];e.removeEventListener(a.type,a.attachedListener,ko(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin=="string"?Hx(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Wf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Wf(n),ns(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Ix(e,t,n,i){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[er])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=bn(e.nextSibling),e===null)break}return null}function Bx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=bn(e.nextSibling),e===null))return null;return e}function Xb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=bn(e.nextSibling),e===null))return null;return e}function $f(e){return e.data==="$?"||e.data==="$~"}function Jd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Gx(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function bn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ed=null;function Xp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return bn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Kp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Vx(e,t){function n(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return i}function Yx(e){Gp(function(){Gp(function(t){return e(t)})})}function Kb(e,t,n){switch(t=jl(n),e){case"html":if(e=t.documentElement,!e)throw Error(A(452));return e;case"head":if(e=t.head,!e)throw Error(A(453));return e;case"body":if(e=t.body,!e)throw Error(A(454));return e;default:throw Error(A(451))}}function Qb(e,t,n){for(var i in n){var a=n[i];n.hasOwnProperty(i)&&a!=null&&Se(e,t,i,null,bx,a)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Yn&&(e.onclick=null),ns(e)}function jc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ns(e)}var vn=new Map,Qp=new Set;function Xl(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var bi=be.d;be.d={f:qx,r:jx,D:Xx,C:Kx,L:Qx,m:Zx,X:Jx,S:Fx,M:Wx};function qx(){var e=bi.f(),t=gs();return e||t}function jx(e){var t=Go(e);t!==null&&t.tag===5&&t.type==="form"?zy(t):bi.r(e)}var jo=typeof document>"u"?null:document;function Zb(e,t,n){var i=jo;if(i&&typeof t=="string"&&t){var a=pn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Qp.has(a)||(Qp.add(a),e={rel:e,crossOrigin:n,href:t},i.querySelector(a)===null&&(t=i.createElement("link"),mt(t,"link",e),rt(t),i.head.appendChild(t)))}}function Xx(e){bi.D(e),Zb("dns-prefetch",e,null)}function Kx(e,t){bi.C(e,t),Zb("preconnect",e,t)}function Qx(e,t,n){bi.L(e,t,n);var i=jo;if(i&&e&&t){var a='link[rel="preload"][as="'+pn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+pn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+pn(n.imageSizes)+'"]')):a+='[href="'+pn(e)+'"]';var o=a;switch(t){case"style":o=Po(e);break;case"script":o=Xo(e)}if(!(vn.has(o)||(e=Ae({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),vn.set(o,e),i.querySelector(a)!==null||t==="style"&&i.querySelector(lr(o))||t==="script"&&i.querySelector(rr(o))))){var l=i.createElement("link");mt(l,"link",e),t==="style"&&(l[Ou]=!0,l.onload=l.onerror=function(){Tg(l)}),rt(l),i.head.appendChild(l)}}}function Zx(e,t){bi.m(e,t);var n=jo;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+pn(i)+'"][href="'+pn(e)+'"]',o=a;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Xo(e)}if(!vn.has(o)&&(e=Ae({rel:"modulepreload",href:e},t),vn.set(o,e),n.querySelector(a)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(rr(o)))return}i=n.createElement("link"),mt(i,"link",e),rt(i),n.head.appendChild(i)}}}function Fx(e,t,n){bi.S(e,t,n);var i=jo;if(i&&e){var a=yo(i).hoistableStyles,o=Po(e);t=t||"default";var l=a.get(o);if(!l){var r={loading:0,preload:null};if(l=i.querySelector(lr(o)))r.loading=5;else{e=Ae({rel:"stylesheet",href:e,"data-precedence":t},n),(n=vn.get(o))&&Wd(e,n);var u=l=i.createElement("link");rt(u),mt(u,"link",e),u._p=new Promise(function(s,f){u.onload=s,u.onerror=f}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Su(l,t,i)}l={type:"stylesheet",instance:l,count:1,state:r},a.set(o,l)}}}function Jx(e,t){bi.X(e,t);var n=jo;if(n&&e){var i=yo(n).hoistableScripts,a=Xo(e),o=i.get(a);o||(o=n.querySelector(rr(a)),o||(e=Ae({src:e,async:!0},t),(t=vn.get(a))&&$d(e,t),o=n.createElement("script"),rt(o),mt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(a,o))}}function Wx(e,t){bi.M(e,t);var n=jo;if(n&&e){var i=yo(n).hoistableScripts,a=Xo(e),o=i.get(a);o||(o=n.querySelector(rr(a)),o||(e=Ae({src:e,async:!0,type:"module"},t),(t=vn.get(a))&&$d(e,t),o=n.createElement("script"),rt(o),mt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(a,o))}}function Zp(e,t,n,i){var a=(a=Ii.current)?Xl(a):null;if(!a)throw Error(A(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Po(n.href),t=yo(a).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Po(n.href);var o=yo(a).hoistableStyles,l=o.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,l),(o=a.querySelector(lr(e)))?o._p||(l.instance=o,l.state.loading=5):(o=vn.get(e),o||(o={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vn.set(e,o)),$x(a,e,o,l.state))),t&&i===null)throw Error(A(528,""));return l}if(t&&i!==null)throw Error(A(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Xo(n),t=yo(a).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(A(444,e))}}function Po(e){return'href="'+pn(e)+'"'}function lr(e){return'link[rel="stylesheet"]['+e+"]"}function Fb(e){return Ae({},e,{"data-precedence":e.precedence,precedence:null})}function $x(e,t,n,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Ou]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[Ou]=!0,t.onload=t.onerror=Tg.bind(null,t),mt(t,"link",n),rt(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function Xo(e){return'[src="'+pn(e)+'"]'}function rr(e){return"script[async]"+e}function Fp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+pn(n.href)+'"]');if(i)return t.instance=i,rt(i),i;var a=Ae({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),rt(i),mt(i,"style",a),Su(i,n.precedence,e),t.instance=i;case"stylesheet":a=Po(n.href);var o=e.querySelector(lr(a));if(o)return t.state.loading|=4,t.instance=o,rt(o),o;i=Fb(n),(a=vn.get(a))&&Wd(i,a),o=(e.ownerDocument||e).createElement("link"),rt(o);var l=o;return l._p=new Promise(function(r,u){l.onload=r,l.onerror=u}),mt(o,"link",i),t.state.loading|=4,Su(o,n.precedence,e),t.instance=o;case"script":return o=Xo(n.src),(a=e.querySelector(rr(o)))?(t.instance=a,rt(a),a):(i=n,(a=vn.get(o))&&(i=Ae({},n),$d(i,a)),e=e.ownerDocument||e,a=e.createElement("script"),rt(a),mt(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(A(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Su(i,n.precedence,e));return t.instance}function Su(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,o=a,l=0;l<i.length;l++){var r=i[l];if(r.dataset.precedence===t)o=r;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Wd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $d(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var xu=null;function Jp(e,t,n){if(xu===null){var i=new Map,a=xu=new Map;a.set(n,i)}else a=xu,i=a.get(n),i||(i=new Map,a.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[er]||o[ct]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var l=o.getAttribute(t)||"";l=e+l;var r=i.get(l);r?r.push(o):i.set(l,[o])}}return i}function td(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function eE(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Wp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Jb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Wb(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function $p(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Wb(t),e.suspenseyImages.push(t)),e=iE.bind(e),t.decode().then(e,e))}function tE(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=Po(i.href),o=t.querySelector(lr(a));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Kl.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,rt(o);return}o=t.ownerDocument||t,i=Fb(i),(a=vn.get(a))&&Wd(i,a),o=o.createElement("link"),rt(o);var l=o;l._p=new Promise(function(r,u){l.onload=r,l.onerror=u}),mt(o,"link",i),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Kl.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Eu=0;function nE(e,t){return e.stylesheets&&e.count===0&&Tu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Tu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Eu===0&&(Eu=62500*wx());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Tu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Eu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(a)}}:null}function $b(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Tu(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Kl(){this.count--,$b(this)}function iE(){this.imgCount--,$b(this)}var $u=null;function Tu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$u=new Map,t.forEach(aE,e),$u=null,Kl.call(e))}function aE(e,t){if(!(t.state.loading&4)){var n=$u.get(e);if(n)var i=n.get(null);else{n=new Map,$u.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var l=a[o];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),i=l)}i&&n.set(null,i)}a=t.instance,l=a.getAttribute("data-precedence"),o=n.get(l)||i,o===i&&n.set(null,a),n.set(l,a),this.count++,i=Kl.bind(this),a.addEventListener("load",i),a.addEventListener("error",i),o?o.parentNode.insertBefore(a,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Uo={$$typeof:Vn,Provider:null,Consumer:null,_currentValue:Sa,_currentValue2:Sa,_threadCount:0};function oE(e,t,n,i,a,o,l,r,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=vc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vc(0),this.hiddenUpdates=vc(null),this.identifierPrefix=i,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function ev(e,t,n,i,a,o,l,r,u,s,f,p){return e=new oE(e,t,n,l,u,s,f,p,r),t=1,o===!0&&(t|=24),o=Bt(3,null,null,t),e.current=o,o.stateNode=e,t=vd(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:t},xd(o),e}function tv(e){return e?(e=ho,e):ho}function nv(e,t,n,i,a,o){a=tv(a),i.context===null?i.context=a:i.pendingContext=a,i=Gi(t),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=Vi(e,i,t),n!==null&&(Gt(n,e,t),Ml(n,e,t))}function eg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function eh(e,t){eg(e,t),(e=e.alternate)&&eg(e,t)}function iv(e){if(e.tag===13||e.tag===31){var t=Ua(e,67108864);t!==null&&Gt(t,e,67108864),eh(e,67108864)}}function tg(e){if(e.tag===13||e.tag===31){var t=tn();t=rd(t);var n=Ua(e,t);n!==null&&Gt(n,e,t),eh(e,t)}}var _o=!0;function lE(e,t,n,i){var a=F.T;F.T=null;var o=be.p;try{be.p=2,th(e,t,n,i)}finally{be.p=o,F.T=a}}function rE(e,t,n,i){var a=F.T;F.T=null;var o=be.p;try{be.p=8,th(e,t,n,i)}finally{be.p=o,F.T=a}}function th(e,t,n,i){if(_o){var a=nd(i);if(a===null)Vc(e,t,i,es,n),ng(e,i);else if(sE(a,e,t,n,i))i.stopPropagation();else if(ng(e,i),t&4&&-1<uE.indexOf(e)){for(;a!==null;){var o=Go(a);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var l=ga(o.pendingLanes);if(l!==0){var r=o;for(r.pendingLanes|=2,r.entangledLanes|=2;l;){var u=1<<31-en(l);r.entanglements[1]|=u,l&=~u}Fn(o),(ye&6)===0&&(Qu=Wt()+500,or(0,!1))}}break;case 31:case 13:r=Ua(o,2),r!==null&&Gt(r,o,2),gs(),eh(o,2)}if(o=nd(i),o===null&&Vc(e,t,i,es,n),o===a)break;a=o}a!==null&&i.stopPropagation()}else Vc(e,t,i,null,n)}}function nd(e){return e=cd(e),nh(e)}var es=null;function nh(e){if(es=null,e=va(e),e!==null){var t=Fl(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=ug(t),e!==null)return e;e=null}else if(n===31){if(e=sg(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return es=e,null}function av(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xw()){case pg:return 2;case gg:return 8;case Cu:case Ew:return 32;case yg:return 268435456;default:return 32}default:return 32}}var id=!1,Xi=null,Ki=null,Qi=null,Ql=new Map,Zl=new Map,zi=[],uE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function ng(e,t){switch(e){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Ki=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":Ql.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(t.pointerId)}}function ml(e,t,n,i,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[a]},t!==null&&(t=Go(t),t!==null&&iv(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function sE(e,t,n,i,a){switch(t){case"focusin":return Xi=ml(Xi,e,t,n,i,a),!0;case"dragenter":return Ki=ml(Ki,e,t,n,i,a),!0;case"mouseover":return Qi=ml(Qi,e,t,n,i,a),!0;case"pointerover":var o=a.pointerId;return Ql.set(o,ml(Ql.get(o)||null,e,t,n,i,a)),!0;case"gotpointercapture":return o=a.pointerId,Zl.set(o,ml(Zl.get(o)||null,e,t,n,i,a)),!0}return!1}function ov(e){var t=va(e.target);if(t!==null){var n=Fl(t);if(n!==null){if(t=n.tag,t===13){if(t=ug(n),t!==null){e.blockedOn=t,Am(e.priority,function(){tg(n)});return}}else if(t===31){if(t=sg(n),t!==null){e.blockedOn=t,Am(e.priority,function(){tg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=nd(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);lf=i,n.target.dispatchEvent(i),lf=null}else return t=Go(n),t!==null&&iv(t),e.blockedOn=n,!1;t.shift()}return!0}function ig(e,t,n){Mu(e)&&n.delete(t)}function cE(){id=!1,Xi!==null&&Mu(Xi)&&(Xi=null),Ki!==null&&Mu(Ki)&&(Ki=null),Qi!==null&&Mu(Qi)&&(Qi=null),Ql.forEach(ig),Zl.forEach(ig)}function ou(e,t){e.blockedOn===t&&(e.blockedOn=null,id||(id=!0,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,cE)))}var lu=null;function ag(e){lu!==e&&(lu=e,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,function(){lu===e&&(lu=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],a=e[t+2];if(typeof i!="function"){if(nh(i||n)===null)continue;break}var o=Go(n);o!==null&&(e.splice(t,3),t-=3,xf(o,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function Io(e){function t(u){return ou(u,e)}Xi!==null&&ou(Xi,e),Ki!==null&&ou(Ki,e),Qi!==null&&ou(Qi,e),Ql.forEach(t),Zl.forEach(t);for(var n=0;n<zi.length;n++){var i=zi[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<zi.length&&(n=zi[0],n.blockedOn===null);)ov(n),n.blockedOn===null&&zi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var a=n[i],o=n[i+1],l=a[Yt]||null;if(typeof o=="function")l||ag(n);else if(l){var r=null;if(o&&o.hasAttribute("formAction")){if(a=o,l=o[Yt]||null)r=l.formAction;else if(nh(a)!==null)continue}else r=l.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),ag(n)}}}function lv(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(l){return a=l})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function ih(e){this._internalRoot=e}vs.prototype.render=ih.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));var n=t.current,i=tn();nv(n,i,e,t,null,null)};vs.prototype.unmount=ih.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nv(e.current,2,null,e,null,null),gs(),t[Bo]=null}};function vs(e){this._internalRoot=e}vs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Eg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zi.length&&t!==0&&t<zi[n].priority;n++);zi.splice(n,0,e),n===0&&ov(e)}};var og=lg.version;if(og!=="19.3.0")throw Error(A(527,og,"19.3.0"));be.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=fw(t),e=e!==null?cg(e):null,e=e===null?null:e.stateNode,e};var fE={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(pl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!pl.isDisabled&&pl.supportsFiber))try{Jl=pl.inject(fE),$t=pl}catch{}var pl;ws.createRoot=function(e,t){if(!rg(e))throw Error(A(299));var n=!1,i="",a=By,o=Gy,l=Vy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=ev(e,1,!1,null,null,n,i,null,a,o,l,lv),e[Bo]=t.current,Qd(e),new ih(t)};ws.hydrateRoot=function(e,t,n){if(!rg(e))throw Error(A(299));var i=!1,a="",o=By,l=Gy,r=Vy,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=ev(e,1,!0,t,n??null,i,a,u,o,l,r,lv),t.context=tv(null),n=t.current,i=tn(),i=rd(i),a=Gi(i),a.callback=null,Vi(n,a,i),n=i,t.current.lanes=n,$l(t,n),Fn(t),e[Bo]=t.current,Qd(e),new vs(t)};ws.version="19.3.0"});var cv=Dn((gM,sv)=>{"use strict";M();function uv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uv)}catch(e){console.error(e)}}uv(),sv.exports=rv()});var wv=Dn(Ns=>{"use strict";M();var hE=Symbol.for("react.transitional.element"),mE=Symbol.for("react.fragment");function vv(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:hE,type:e,key:i,ref:t!==void 0?t:null,props:n}}Ns.Fragment=mE;Ns.jsx=vv;Ns.jsxs=vv});var pe=Dn((JM,Sv)=>{"use strict";M();Sv.exports=wv()});M();M();M();M();var N1=["path","circle","ellipse","line","polyline","polygon","rect","g"],A1={fill:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,stroke:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,strokeWidth:/^[\d.]+$/,strokeLinecap:/^(?:butt|round|square)$/,strokeLinejoin:/^(?:miter|round|bevel)$/,fillRule:/^(?:nonzero|evenodd)$/,opacity:/^[\d.]+$/,fillOpacity:/^[\d.]+$/,strokeOpacity:/^[\d.]+$/,transform:/^(?:(?:matrix|translate|scale|rotate|skewX|skewY)\([\deE+.,\s-]+\)[,\s]*)+$/,d:/^[mMlLhHvVcCsSqQtTaAzZeE\d+.,\s-]+$/,points:/^[\deE+.,\s-]+$/},C1=["x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height"],Ph=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Uh=1024;function Xs(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function kh(e){let t=Xs(e),n={};for(let[i,a]of Object.entries(A1)){let o=t[i],l=i==="d"||i==="points"?4096:i==="transform"?128:32;typeof o=="string"&&o.length<=l&&a.test(o)&&(n[i]=o)}for(let i of C1){let a=t[i];typeof a=="string"&&a.length<=32&&Ph.test(a)&&Math.abs(Number(a))<=1e5&&(n[i]=a)}return n}function _h(e){let{viewBox:t,attrs:n,shapes:i}=Xs(e);if(typeof t!="string"||t.length>100)return;let a=t.trim().split(/[\s,]+/);if(a.length!==4||!a.every(u=>Ph.test(u)&&Math.abs(Number(u))<=1e5)||Number(a[2])<=0||Number(a[3])<=0)return;let o=64;function l(u,s){if(!Array.isArray(u)||s>6)return[];let f=[];for(let p of u){if(o--<=0)break;let{tag:c,attrs:m,shapes:w}=Xs(p),b=N1.find(v=>v===c);b&&f.push({tag:b,attrs:kh(m),shapes:b==="g"?l(w,s+1):[]})}return f}let r=l(i,0);return r.length?{viewBox:a.join(" "),attrs:kh(n),shapes:r}:void 0}M();var Ih=["siblings","ontology","crosslinks","sidecar"],Ks={view:["compass","mindmap"],dock:["left","right","bottom"],theme:["system","light","dark"]},Nr=["view",...Ih,"dock","theme"],Qs={view:"compass",siblings:!0,ontology:!0,crosslinks:!1,sidecar:!0,dock:"right",theme:"system"};function Ar(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e,n={},i=Ks.view.find(l=>l===t.view),a=Ks.dock.find(l=>l===t.dock),o=Ks.theme.find(l=>l===t.theme);i&&(n.view=i),a&&(n.dock=a),o&&(n.theme=o);for(let l of Ih){let r=t[l];typeof r=="boolean"&&(n[l]=r)}return Object.keys(n).length?n:void 0}var Or=1e4,O1=25e4,L1=256*1024*1024,Fs=24*1024*1024,Lr="data/search.json",zr="theme/publication.css",Dr=48*1024,Js=["parent","child","left","right","previous","next"],z1=["document","drawing","attachment","folder","tag","url"],D1=/^(?:index\.html|\.nojekyll|data\/search\.json|theme\/publication\.css|notes\/[a-f0-9-]{36}\.html|assets\/[a-f0-9]{64}\.(?:png|jpe?g|gif|webp|avif|svg|mp3|ogg|wav|mp4|webm|pdf)|runtime\/(?:compass\.css|(?:compass|demo|chunk(?:-[a-zA-Z0-9]+)?)\.js(?:\.LEGAL\.txt)?)|LICENSES\/(?:K-Plex|React|ReactDOM|Scheduler|Lucide|Source)\.txt)$/,H1=/^[a-f0-9]{64}$/,Bh=["none","arrow","triangle","bar","dot"],k1=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,P1=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Ws(e){return typeof e=="string"&&e.length<=2048&&!/[\s\\<>"\p{Cc}]/u.test(e)&&/^https?:\/\/(?:[a-z0-9._-]+|\[[a-f0-9:.]+\])(?::\d{1,5})?(?:[/?#]|$)/i.test(e)}function ni(e){return typeof e=="string"&&P1.test(e)}function $s(e){if(!ni(e))throw new Error("Invalid public note ID");return`notes/${e}.html`}function Ka(e){return typeof e=="string"&&e.length<=180&&D1.test(e)}function U1(e){return Ka(e)&&(e.startsWith("notes/")||e.startsWith("assets/")||e===Lr||e===zr)}function Vh(e){if(!U1(e))throw new Error("Invalid offline publication resource");return`local/${e}.css`}function Sn(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid publication record");return e}function da(e,t){return typeof e=="string"&&e.length<=t&&e.trim().length>0&&!/\p{Cc}/u.test(e)}function Hn(e,t,n){return typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=n}function Yh(e,t){return Hn(e,0,t-1)&&Number.isInteger(e)}function Cr(e,t){let n=Sn(e),i={};for(let r of["fill","stroke","color","gate"]){let u=n[r];if(u!==void 0){if(typeof u!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(u))throw new Error("Invalid publication color");i[r]=u}}let{fontSize:a,gateRadius:o,icon:l}=n;if(a!==void 0&&!Hn(a,6,96))throw new Error("Invalid publication font size");if(o!==void 0&&!Hn(o,0,40))throw new Error("Invalid publication gate radius");if(l!=null&&!Yh(l,t))throw new Error("Invalid publication icon reference");return{...i,fontSize:a,gateRadius:o,...l===void 0?{}:{icon:l}}}function _1(e,t){let{center:n,sibling:i,inferred:a}=Sn(e);return{center:n===void 0?void 0:Cr(n,t),sibling:i===void 0?void 0:Cr(i,t),inferred:a===void 0?void 0:Cr(a,t)}}function I1(e){let{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:o,endHead:l,labelColor:r,labelSize:u}=Sn(e);if(t!==void 0&&(typeof t!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(t))||n!==void 0&&!Hn(n,.25,20)||i!==void 0&&typeof i!="boolean"||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication link style");let s=Bh.find(p=>p===o),f=Bh.find(p=>p===l);if(o!==void 0&&!s||l!==void 0&&!f)throw new Error("Invalid publication arrow type");if(r!==void 0&&(typeof r!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(r))||u!==void 0&&!Hn(u,6,96))throw new Error("Invalid publication link label");return{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:s,endHead:f,labelColor:r,labelSize:u}}function B1(e){let t=Sn(e),n={};if(t.maximum!==void 0){if(!Hn(t.maximum,1,400)||!Number.isInteger(t.maximum))throw new Error("Invalid publication scene limit");n.maximum=t.maximum}if(t.flip!==void 0){if(typeof t.flip!="boolean")throw new Error("Invalid publication orientation");n.flip=t.flip}if(t.showCrossLinks!==void 0){if(typeof t.showCrossLinks!="boolean")throw new Error("Invalid publication crosslinks preference");n.showCrossLinks=t.showCrossLinks}if(t.geometry!==void 0){let i=Sn(t.geometry),a={},o=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let l of o){let r=i[l];if(r!==void 0){if(!Hn(r,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(a,{[l]:r})}}if(i.compactView!==void 0&&typeof i.compactView!="boolean")throw new Error("Invalid publication compact mode");if(i.lateralArrangement!==void 0&&i.lateralArrangement!=="split"&&i.lateralArrangement!=="left")throw new Error("Invalid publication side layout");n.geometry={...a,...i.compactView===void 0?{}:{compactView:i.compactView},...i.lateralArrangement===void 0?{}:{lateralArrangement:i.lateralArrangement}}}if(t.typography!==void 0){let{baseFontSize:i,wrapNodeLabels:a,propertyFontSize:o}=Sn(t.typography);if(i!==void 0&&!Hn(i,6,48)||o!==void 0&&!Hn(o,6,48)||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:i,wrapNodeLabels:a,propertyFontSize:o}}return n}function G1(e){let t=Object.entries(Sn(e));if(t.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[i,a]of t){if(!da(i,192)||["__proto__","constructor","prototype"].includes(i))throw new Error("Invalid publication property name");if(da(a,1e3)||typeof a=="boolean"||typeof a=="number"&&Number.isFinite(a))n.set(i,a);else if(Array.isArray(a)&&a.length<=48&&a.every(o=>da(o,1e3)))n.set(i,[...a]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function qh(e){let t=Sn(e);if(t.version!==2||typeof t.runtimeVersion!="string"||!k1.test(t.runtimeVersion))throw new Error("Unsupported publication version");let{colorMode:n}=t;if(n!==void 0&&n!=="light"&&n!=="dark"&&n!=="both")throw new Error("Invalid publication color mode");if(!ni(t.id)||!ni(t.entry)||!da(t.title,240)||typeof t.fullText!="boolean"||!Array.isArray(t.nodes)||!t.nodes.length||t.nodes.length>Or||!Array.isArray(t.relations)||t.relations.length>O1||!Array.isArray(t.resources)||t.resources.length>Or*4)throw new Error("Invalid publication manifest");let i=0,a=new Set,o=t.resources.map(b=>{let{path:v,bytes:d,sha256:h}=Sn(b);if(!Ka(v)||a.has(v)||!Hn(d,0,32*1024*1024)||!Number.isInteger(d)||typeof h!="string"||!H1.test(h))throw new Error("Invalid publication resource");if(a.add(v),i+=d,i>L1)throw new Error("Publication exceeds package limit");return{path:v,bytes:d,sha256:h}}),l;if(t.icons!==void 0){if(!Array.isArray(t.icons)||t.icons.length>Uh)throw new Error("Invalid publication icons");l=t.icons.map(b=>{let v=_h(b);if(!v)throw new Error("Invalid publication icon");return v})}let r=l?.length??0,u=new Set,s=new Set,f=t.nodes.map(b=>{let v=Sn(b),{id:d,title:h,aliases:g,asset:S,url:E,trailIcon:R}=v,x=z1.find(N=>N===v.kind);if(!ni(d)||u.has(d)||!da(h,512)||!x)throw new Error("Invalid publication node");if(u.add(d),x==="document"||x==="drawing"){let N=$s(d);if(!a.has(N))throw new Error("Missing publication note resource");s.add(N)}if(S!==void 0&&(typeof S!="string"||!S.startsWith("assets/")||!a.has(S)))throw new Error("Missing publication asset");if(E!==void 0&&(x!=="url"||!Ws(E)))throw new Error("Invalid publication web link");if(R!==void 0&&!Yh(R,r))throw new Error("Invalid publication trail icon");if(g!==void 0&&(!Array.isArray(g)||g.length>64||!g.every(N=>da(N,512))))throw new Error("Invalid publication aliases");return{id:d,title:h,kind:x,...g===void 0?{}:{aliases:[...g]},...S===void 0?{}:{asset:S},...E===void 0?{}:{url:E},...R===void 0?{}:{trailIcon:R},...v.style===void 0?{}:{style:Cr(v.style,r)},...v.roleStyles===void 0?{}:{roleStyles:_1(v.roleStyles,r)},...v.properties===void 0?{}:{properties:G1(v.properties)}}});if(!u.has(t.entry)||[...a].some(b=>b.startsWith("notes/")&&!s.has(b))||t.fullText!==a.has(Lr))throw new Error("Invalid publication document catalogue");let p;if(t.pins!==void 0){if(!Array.isArray(t.pins)||t.pins.length>u.size)throw new Error("Invalid publication pins");let b=t.pins;if(new Set(b).size!==b.length||!b.every(v=>typeof v=="string"&&u.has(v)))throw new Error("Invalid publication pins");p=b.slice()}let c=new Set,m=t.relations.map(b=>{let{source:v,target:d,relationType:h,direction:g,definition:S,role:E,style:R}=Sn(b),x=Js.find(G=>G===E);if(typeof v!="string"||typeof d!="string"||v===d||!u.has(v)||!u.has(d)||!x||h!==1&&h!==2||g!==null&&g!==1&&g!==2&&g!==3||S!==void 0&&!da(S,192))throw new Error("Invalid publication relationship");let N=`${v}/${d}/${x}`;if(c.has(N))throw new Error("Duplicate publication relationship");return c.add(N),{source:v,target:d,role:x,relationType:h,direction:g,...S===void 0?{}:{definition:S},...R===void 0?{}:{style:I1(R)}}}),w=Ar(t.canvasDefaults);return{version:2,runtimeVersion:t.runtimeVersion,id:t.id,title:t.title,entry:t.entry,fullText:t.fullText,nodes:f,relations:m,resources:o,...n===void 0?{}:{colorMode:n},...p===void 0?{}:{pins:p},...w&&{canvasDefaults:w},...l===void 0?{}:{icons:l},...t.appearance===void 0?{}:{appearance:B1(t.appearance)}}}M();var L={licenses:"Runtime licenses",close:"Close",mindMap:"Mind Map",expandBranch:"Expand branch",collapseBranch:"Collapse branch",graphOptions:"Graph options",crossLinks:"Show crosslinks",linkOntology:"Show link ontology",view:"Compass",back:"History back",forward:"History forward",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit graph",loadFailed:"Could not open this publication",retry:"Retry",loading:"Opening publication…",loadingNote:"Opening note…",find:"Find note",fullText:"Include note text",searchLoading:"Loading note search…",searchUnavailable:"Note search is unavailable",address:"Note address",open:"Open",nodeUnavailable:"That thought is unavailable in this publication",copyAddress:"Copy note address",addressCopied:"Note address copied",copyShortAddress:"Copy link (short ID)",copyFullAddress:"Copy link (full ID)",ambiguousAddress:"This short ID matches several notes. Use the full ID.",pins:"Pins",history:"Session history",backTooltip:"History back (Alt + ←)",forwardTooltip:"History forward (Alt + →)",showSidecarTooltip:"Show Sidecar (Alt + Shift + S)",hideSidecarTooltip:"Hide Sidecar (Alt + Shift + S)",chooseNote:"Choose a matching thought",chooseAddress:"Enter a note ID to select another match",showSidecar:"Show Sidecar",hideSidecar:"Hide Sidecar",closeSidecar:"Close Sidecar",showSiblings:"Show siblings",hideSiblings:"Hide siblings",siblings:"Siblings",friends:"Friends / Previous",challengers:"Challengers / Next",lateral:"Friends, challengers, and sequence",darkMode:"Dark mode",lightMode:"Light mode",systemTheme:"System theme",sidecar:"Sidecar",sidecarHide:"Hide",sidecarLeft:"Left",sidecarRight:"Right",sidecarBottom:"Bottom",openWebsite:"Open original in a new tab",webFrameHelp:"If the page is blank or blocked, open the original.",githubLoading:"Loading GitHub preview…",githubPreviewUnavailable:"GitHub preview unavailable. Open the original to view the page.",githubOpenOriginal:"View this GitHub page in a browser tab.",githubNoCommits:"No commits in this comparison.",githubCommitCount:(e,t)=>`Showing ${e} of ${t} commits`,resizeSidecar:"Resize Sidecar",dockSidecarBottom:"Move Sidecar below",dockSidecarRight:"Move Sidecar right",noteUnavailable:"Could not open this note",mediaUnavailable:"Some media could not be opened",noDocument:"No document is available for this thought",downloadAsset:"Download file",sceneLimited:"Some connections are outside this view’s display limit",themeUnavailable:"Using the default colors",insecure:"Open this publication over HTTPS or through a local preview server"},ha={label:"Color theme",light:"Light",dark:"Dark",auto:"Auto",trigger:e=>`Color theme (${e})`},kn={label:"K-Plex resources",github:"K-Plex on GitHub",npm:"K-Plex Web Player on npm",community:"K-Plex in Obsidian Community Plugins",playlist:"K-Plex YouTube playlist",book:"Sketch Your Mind book"};M();var m1=j(cv(),1);M();var J=j($e(),1);M();var An=e=>e;M();var ur={key:"F4"};M();M();M();function fv(e){try{let t=JSON.stringify(e);if(!t||t.length>16384)return null;let n=JSON.parse(t),i=(a,o)=>o<=8&&(!a||typeof a!="object"||Object.values(a).every(l=>i(l,o+1)));return i(n,0)?n:null}catch{return null}}M();var gt={occurrences:2e3,depth:20,scopes:8,stateCharacters:12e3,occurrenceCharacters:4096},Ss={min:.1,max:4,step:.05};function Ko(e,t,n){return{defaultValue:e,validate:i=>typeof i=="number"&&Number.isInteger(i)&&i>=t&&i<=n}}var xs={version:1,fields:{arrangement:{defaultValue:"right",validate:e=>e==="balanced"||e==="left"||e==="right"},horizontalSpacing:Ko(96,40,240),verticalSpacing:Ko(24,12,80),parentColumns:Ko(2,1,3),initialGenerations:Ko(1,1,3),horizontalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=Ss.min&&e<=Ss.max},verticalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=Ss.min&&e<=Ss.max},maximumDepth:Ko(10,1,gt.depth),maximumOccurrences:Ko(500,16,gt.occurrences)}};function Es(e){if(e?.status==="unavailable")return null;let t=e?.values??{},n=a=>Object.prototype.hasOwnProperty.call(t,a)?t[a]:xs.fields[a].defaultValue;for(let[a,o]of Object.entries(xs.fields))if(!o.validate(n(a)))return null;let i=n("arrangement");return i!=="balanced"&&i!=="left"&&i!=="right"?null:{arrangement:i,horizontalSpacing:Number(n("horizontalSpacing")),verticalSpacing:Number(n("verticalSpacing")),horizontalDensity:Number(n("horizontalDensity")),verticalDensity:Number(n("verticalDensity")),parentColumns:Number(n("parentColumns")),initialGenerations:Number(n("initialGenerations")),maximumDepth:Number(n("maximumDepth")),maximumOccurrences:Number(n("maximumOccurrences"))}}var ah={version:1,scope:null,initialGenerations:null,expanded:[],collapsed:[],sides:{}},Ts={version:0,unavailable:!0};function Ia(e){return typeof e=="string"&&e.length>0&&e.length<=gt.occurrenceCharacters}function na(e){if(e==null)return{...ah,expanded:[],collapsed:[],sides:{}};let t=fv(e);if(!t||typeof t!="object"||Array.isArray(t)||Reflect.get(t,"version")!==1)return Ts;let n=Reflect.get(t,"scope"),i=Reflect.get(t,"initialGenerations"),a=Reflect.get(t,"expanded"),o=Reflect.get(t,"collapsed"),l=Reflect.get(t,"sides");if(n===null!=(i===null)||n!==null&&!Ia(n)||i!==null&&(typeof i!="number"||!Number.isInteger(i)||i<1||i>3)||!Array.isArray(a)||!Array.isArray(o)||a.length>256||o.length>256||!a.every(Ia)||!o.every(Ia)||!l||typeof l!="object"||Array.isArray(l)||Object.keys(l).length>256)return Ts;let r=[];for(let[s,f]of Object.entries(l)){let p=f;if(!Ia(s)||p!==-1&&p!==1)return Ts;r.push([s,p])}r.sort(([s],[f])=>s<f?-1:s>f?1:0);let u={...t,version:1,scope:n===null?null:An(n),initialGenerations:i,expanded:[...new Set(a)].sort(),collapsed:[...new Set(o)].sort(),sides:Object.fromEntries(r)};return JSON.stringify(u).length<=gt.stateCharacters?u:Ts}function dv(e,t,n){return e.scope===t?e:{...e,scope:t,initialGenerations:n,expanded:[],collapsed:[],sides:{}}}function sr(e){let t=na(e);return t.version===1?t:null}function Ms(e,t,n){let i=na(e),a=i.version===1&&i.scope===t.layoutRoot?i:na(t.stateSuggestion);if(a.version!==1||a.scope!==t.layoutRoot)return null;let o=new Set(a.expanded),l=new Set(a.collapsed),r=t.occurrences.filter(u=>u.branch?.canExpand&&!u.branch.reference);if(n.kind==="toggle")r=r.filter(u=>u.id===n.occurrenceId);else if(n.kind==="expand-generation"){let u=Math.min(...r.filter(s=>!s.branch.expanded).map(s=>s.branch.depth));r=r.filter(s=>!s.branch.expanded&&s.branch.depth===u)}else{let u=Math.max(...r.filter(s=>s.branch.expanded).map(s=>s.branch.depth));r=r.filter(s=>s.branch.expanded&&s.branch.depth===u)}if(!r.length)return null;for(let u of r)n.kind==="expand-generation"||n.kind==="toggle"&&!u.branch.expanded?(l.delete(u.id),o.add(u.id)):(o.delete(u.id),l.add(u.id));return sr({...a,expanded:[...o],collapsed:[...l]})}M();var Rs=class{constructor(t,n,i,a=750,o){this.owner=t;this.requireAlt=n;this.publish=i;this.delayMs=a;this.modifierFeedback=o;this.timer=null;this.candidate=null;this.alt=!1;this.enteredAt=0;this.modifierCandidate=!1}enter(t,n){if(n.pointerType==="touch"){this.modifierFeedback&&this.clear();return}this.clear(!1),this.candidate=t,this.alt=n.altKey,this.enteredAt=this.owner.performance.now(),this.modifierCandidate=n.pointerType==="mouse"&&n.isTrusted===!0&&this.modifierFeedback?.accepts(t)===!0,this.modifierFeedback?.publish(this.modifierCandidate&&this.alt?t:null),this.requireAlt||this.modifierCandidate&&this.alt?this.publish(this.alt?t:null):this.activateOrdinary()}modifier(t,n=!1){this.candidate===null||this.alt===t||!this.requireAlt&&!this.modifierCandidate||this.modifierCandidate&&!n||(this.alt=t,this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.modifierCandidate&&this.modifierFeedback?.publish(t?this.candidate:null),this.requireAlt||t?this.publish(t?this.candidate:null):(this.publish(null),this.activateOrdinary()))}activateOrdinary(){let t=this.candidate;if(t===null)return;let n=Math.max(0,this.delayMs-(this.owner.performance.now()-this.enteredAt));n===0?this.publish(t):this.timer=this.owner.setTimeout(()=>{this.timer=null,this.publish(t)},n)}clear(t=!0){this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.candidate=null,this.modifierCandidate=!1,this.modifierFeedback?.publish(null),t&&this.publish(null)}};function hv(e,t){let n=e.ownerDocument,i=n.defaultView,a=r=>t.modifier(r.altKey,r.isTrusted),o=()=>t.clear(),l=()=>{n.visibilityState==="hidden"&&t.clear()};return i.addEventListener("keydown",a),i.addEventListener("keyup",a),i.addEventListener("blur",o),n.addEventListener("visibilitychange",l),()=>{i.removeEventListener("keydown",a),i.removeEventListener("keyup",a),i.removeEventListener("blur",o),n.removeEventListener("visibilitychange",l),t.clear()}}M();M();M();M();M();var oh={min:8,max:20,step:1,default:12};function lh(e){return typeof e=="number"&&Number.isFinite(e)?Math.max(oh.min,Math.min(oh.max,e)):oh.default}var cr=(e,t,n)=>Math.max(t,Math.min(n,e));function mv(e){return Math.max(5,(e.gateRadius??5)*1.05)}function rh(e=30,t=!1){let n=Math.round(Math.max(8,e));return Math.max(t?18:8,n+(t?8:0))}function fr(e,t,n=12.4){return(t?cr(e*.72,13,24):cr(e*.62,10,16))*cr(Number.isFinite(n)?n:12.4,8,28)/12.4}function dE(e,t){if(e.measurement&&Number.isFinite(e.measurement.width)&&e.measurement.width>=0)return e.measurement.width;let n=i=>Array.from(i).reduce((a,o)=>a+(o.codePointAt(0)>11903?1:.55)*t,0);return n(e.text)+(e.label?n(`${e.label}:`)+4:0)+(e.icon?t+4:0)}function pv(e,t){return e.length?4+e.reduce((n,i)=>n+Math.ceil(i.measurement&&Number.isFinite(i.measurement.height)&&i.measurement.height>0?i.measurement.height:t*1.4),0):0}function gv(e,t){return e.reduce((n,i)=>Math.max(n,32+dE(i,t)),0)}function yv(e,t,n,i=!1,a=30,o,l=1,r=[]){let u=(n.baseFontSize??12.4)/12.4,s=Math.min(e.length,rh(a,i)),f=i?180:112,c=Math.max(f,o??(i?370:286)),m=i?fr(t,!0,n.baseFontSize)*.55:t*u*.29,w=cr(70+s*Math.max(4.8,m),f,c),b=(i?16:8)+2*Math.max(0,l),v=fr(t,i,n.baseFontSize),d=Math.max(i?48:26,Math.ceil(v*1.6+b)),h=Math.ceil(Math.max(t*u,v)*2.4+v*.4+b),g=n.wrapNodeLabels?Math.max(d,h):d,S=lh(n.propertyFontSize),E=gv(r,S);return{width:r.length?cr(Math.max(w,E),f,c):w,height:g+pv(r,S)}}function bv(e,t,n,i,a=1,o=[]){if(t===1)return e;let l=lh(i.propertyFontSize),r=gv(o,l),u=fr(n,!1,i.baseFontSize)*(i.wrapNodeLabels?2.8:1.6);return{width:Math.max(e.width*t,Math.min(e.width,r)),height:Math.max(e.height*t,Math.ceil(u+8+2*Math.max(0,a))+pv(o,l))}}var Xe=j(pe(),1);function xv({bounds:e,semanticRole:t,className:n,style:i,...a}){return(0,Xe.jsx)("div",{...a,className:`kplex-thought kplex-role-${t}${n?" "+n:""}`,style:{left:e.x-e.width/2,top:e.y-e.height/2,width:e.width,height:e.height,...i}})}function Ev({label:e,maximum:t,center:n}){let i=rh(t??30,n),a=e.length>i?`${e.slice(0,Math.max(1,i-1))}…`:e;return(0,Xe.jsx)("span",{className:"kplex-thought-text",title:e,children:a})}function Tv({wrap:e,children:t}){return(0,Xe.jsx)("span",{className:`kplex-thought-label${e?" is-two-line":""}`,children:t})}function Mv({side:e,connected:t,highlighted:n,disabled:i,count:a,...o}){return(0,Xe.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${e}${t?"":" is-empty"}`,children:[(0,Xe.jsx)("span",{...o,"data-kplex-gate":e,className:`kplex-gate gate-${e}${t?" has-connections":" is-empty"}${n?" is-highlighted":""}${i?" is-link-disabled":""}`}),a!==null&&(0,Xe.jsx)("span",{className:"kplex-gate-count",children:a})]})}function Rv(e){return(0,Xe.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...e})}function Nv({label:e,midpoint:t,fontSize:n,color:i,background:a,opacity:o}){if(!e)return null;let l=n??10,r=Math.max(20,e.length*l*.58+10),u=l+6;return(0,Xe.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:o,children:[(0,Xe.jsx)("rect",{x:t.x-r/2,y:t.y-u/2,width:r,height:u,rx:3,fill:a}),(0,Xe.jsx)("text",{className:"kplex-edge-label",x:t.x,y:t.y,textAnchor:"middle",dominantBaseline:"central",fill:i,fontSize:l,children:e})]})}function uh(e,t="kplex"){if(!(!e||e==="none"))return`url(#${t}-${e==="triangle"||e==="dot"||e==="bar"?e:"arrow"})`}function Av({prefix:e="kplex"}){return(0,Xe.jsxs)("defs",{children:[(0,Xe.jsx)("marker",{id:`${e}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Xe.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,Xe.jsx)("marker",{id:`${e}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Xe.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,Xe.jsx)("marker",{id:`${e}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,Xe.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,Xe.jsx)("marker",{id:`${e}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Xe.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}M();var Cv={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function dr(e,t){let n=t.toLowerCase(),i=e.nodes.get(n);return i?[i.id]:e.shortIds.get(n)??[]}function Ov(e,t){if(!e.manifest)return;let n=t.slice(0,8),i=dr(e,n);return i.length===1&&i[0]===t?n:void 0}function sh(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function Qo(e){return typeof e=="string"&&e.trim().length>0}function pE(e){return typeof e=="string"&&Object.getOwnPropertyDescriptor(Cv,e)!==void 0}function Lv(e){let t=sh(e);if(t?.version===2&&("runtimeVersion"in t||"resources"in t))return gE(qh(e));if(t?.version!==1)throw new Error("Unsupported publication fixture version");if(!Qo(t.title)||!Qo(t.entry)||!Array.isArray(t.nodes)||!Array.isArray(t.relations))throw new Error("Invalid publication fixture");let n=new Map,i=new Map,a=Object.freeze([]);for(let u of t.nodes){let s=sh(u);if(!s||!Qo(s.id)||!Qo(s.title)||n.has(s.id)||s.text!==void 0&&typeof s.text!="string")throw new Error("Invalid or duplicate publication node");let f=An(s.id);n.set(f,Object.freeze({id:f,name:s.title,kind:"document",resolution:"resolved",url:null,aliases:a,tags:a,styleTags:a,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof s.text=="string"&&i.set(f,s.text)}let o=n.get(t.entry)?.id;if(!o)throw new Error("Missing publication entry node");let l=new Map,r=new Set;for(let u of t.relations){let s=sh(u);if(!s||!Qo(s.source)||!Qo(s.target)||!pE(s.role)||s.label!==void 0&&typeof s.label!="string")throw new Error("Invalid publication relationship");let f=n.get(s.source),p=n.get(s.target);if(!f||!p)throw new Error("Missing publication relationship endpoint");let c=Cv[s.role],m=JSON.stringify([f.id,s.role,p.id]);if(f===p||r.has(m))throw new Error("Invalid or duplicate publication relationship");r.add(m),r.add(JSON.stringify([p.id,c,f.id])),ch(l,f,p,s.role,1,1,s.label),ch(l,p,f,c,1,2,s.label)}return{title:t.title,entry:o,read:zv(n,l),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:u=>i.get(u),linkStyle:()=>{}}}function ch(e,t,n,i,a,o,l){let r=e.get(t.id);r||e.set(t.id,r=new Map);let u=r.get(i);u||r.set(i,u=[]),u.push(Object.freeze({node:n,role:i,relationType:a,direction:o,definition:l}))}function gE(e){let t=new Map,n=new Map,i=new Map,a=new Map,o=new Map;for(let l of e.nodes){let r=An(l.id),u=l.id.slice(0,8),s=a.get(u);s?s.push(r):a.set(u,[r]);let f=l.kind==="folder"?"container":l.kind==="drawing"?"document":l.kind;t.set(r,Object.freeze({id:r,name:l.title,kind:f,resolution:"resolved",url:l.url??null,aliases:l.aliases??[],tags:[],styleTags:[],noteType:null,primaryStyleTag:null,maxLabelLength:30})),n.set(r,l)}for(let l of e.relations)ch(i,t.get(l.source),t.get(l.target),l.role,l.relationType,l.direction,l.definition),l.style&&o.set(`${l.source}/${l.target}/${l.role}`,l.style);return{title:e.title,entry:An(e.entry),read:zv(t,i),nodes:t,shortIds:a,manifest:e,published:n,body:()=>{},linkStyle:(l,r,u)=>o.get(`${l}/${r}/${u}`)}}function zv(e,t){let n=new Intl.Collator("en",{numeric:!0}),i=(o,l)=>n.compare(o.name,l.name)||(o.id<l.id?-1:o.id>l.id?1:0);for(let o of t.values())for(let l of o.values())Object.freeze(l.sort((r,u)=>i(r.node,u.node)));let a=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:o=>e.get(o)??null,scope:o=>({coverage:e.has(o)?"local":"unavailable",complete:e.has(o),prepared:e.has(o),pending:!1}),relations(o,l,r){if(!e.has(o))return{items:a,coverage:"unavailable",truncated:!1};let u=t.get(o)?.get(l)??a,s=r!==void 0&&u.length>r;return{items:s?u.slice(0,r):u,coverage:"local",truncated:s}},evidence:()=>({coverage:"unavailable",value:null}),compare:i,corpus:{available:!1,reason:"unsupported"}}}M();var Ba=j($e(),1);M();function Dv(e,t){let n=Nr.map(i=>{let a=t?.get(i)??e.get(i);return[i,a==="1"?!0:a==="0"?!1:a]});return Ar(Object.fromEntries(n))??{}}function fh(e,t){for(let n of Nr){let i=t?.[n];i===void 0?e.delete(n):e.set(n,typeof i=="boolean"?i?"1":"0":i)}}function dh(e,t){return Nr.every(n=>e?.[n]===t?.[n])}var yE=80;function As(e,t){return[...e.filter(n=>n.id!==t.id),t].slice(-yE)}function mh(e){try{let t=decodeURIComponent(e.replace(/^#/,""));return t.length<=200&&!/\p{Cc}/u.test(t)&&t||void 0}catch{return}}function hr(e,t){let n=t.protocol==="file:"&&t.hash.startsWith("#node=")?new URLSearchParams(t.hash.slice(1)):null,i=n?n.get("node"):t.searchParams.get("node")??t.searchParams.get("node-id"),a=i===null?[]:dr(e,i),o=a.length===1?a[0]:void 0,l=mh(n?encodeURIComponent(n.get("fragment")??""):t.hash),r=Dv(t.searchParams,n);return{location:{id:o??e.entry,fragment:o||i===null?l:void 0,canvas:r},addressProblem:i===null||o?void 0:a.length?"ambiguous":"missing",matches:a}}function ph(e,t,n){let i=new URLSearchParams({node:e});return t&&i.set("fragment",t),fh(i,n),`#${i}`}function Hv(e,t,n,i){try{let a=new URL(e,t);if(a.origin!==t.origin||a.pathname!==t.pathname&&a.pathname!==`${t.pathname}index.html`)return;if(e.startsWith("#node=")&&t.protocol==="file:"){let{location:u,addressProblem:s}=hr(n,a);return s?void 0:u}if(e.startsWith("#"))return{id:i,fragment:mh(a.hash)};if(!(a.searchParams.get("node")??a.searchParams.get("node-id")))return;let{location:l,addressProblem:r}=hr(n,a);return r?void 0:l}catch{return}}function Zo(e,t,n=t.id){let i=new URL(e);return i.protocol==="file:"?(i.hash=ph(n,t.fragment??"",t.canvas),i):(i.searchParams.delete("node-id"),i.searchParams.set("node",n),fh(i.searchParams,t.canvas),i.hash=t.fragment?encodeURIComponent(t.fragment):"",i)}function kv(e,t,n){try{let i=new URL(e,t);if(i.protocol!==t.protocol||i.origin!==t.origin||i.username||i.password)return;let a=o=>o.endsWith("/")?o+"index.html":o;return a(i.pathname)!==a(t.pathname)||!(i.searchParams.has("node")||i.searchParams.has("node-id")||i.protocol==="file:"&&i.hash.startsWith("#node="))?void 0:hr(n,i)}catch{return}}function hh(e,t){return!e||typeof e!="object"||!("kplexPublication"in e)||e.kplexPublication!==t||!("position"in e)||typeof e.position!="number"||!Number.isSafeInteger(e.position)||e.position<0||!("last"in e)||typeof e.last!="number"||!Number.isSafeInteger(e.last)||e.last<e.position?null:{position:e.position,last:e.last}}function Pv(e,t,n){let i=(0,Ba.useRef)(n);i.current=n;let a=e.manifest?.id,[o,l]=(0,Ba.useState)(()=>{let w=t?hr(e,new URL(t.location.href)):{location:{id:e.entry},addressProblem:void 0},b=t&&a?hh(t.history.state,a)??{position:0,last:0}:void 0;return{entries:[w.location],index:0,addressProblem:w.addressProblem,browser:b,visits:[w.location]}}),r=o.entries[o.index],u=(0,Ba.useRef)(o.browser?.last??0);(0,Ba.useEffect)(()=>{if(!t||!a)return;let w=t.history,b=d=>{let{location:h,addressProblem:g}=hr(e,new URL(t.location.href)),S=hh(d.state,a),E=S?{...S,last:Math.max(S.position,u.current)}:{position:0,last:0};u.current=E.last,w.replaceState({kplexPublication:a,...E},""),i.current(h.id),l(R=>({entries:[h],index:0,addressProblem:g,browser:E,visits:As(R.visits,h)}))},v=hh(w.state,a)??{position:0,last:0};return w.replaceState({kplexPublication:a,...v},""),t.addEventListener("popstate",b),()=>t.removeEventListener("popstate",b)},[t,e,a]);function s(w){let b={...w,canvas:{...r.canvas,...w.canvas}};if(!e.nodes.has(b.id)||!o.addressProblem&&r.id===b.id&&r.fragment===b.fragment&&dh(r.canvas,b.canvas))return!1;if(i.current(b.id),t&&a&&o.browser){let d=o.browser.position+1,h={position:d,last:d};return t.history.pushState({kplexPublication:a,...h},"",Zo(new URL(t.location.href),b)),u.current=d,l({entries:[b],index:0,browser:h,visits:As(o.visits,b)}),!0}let v=o.index+1;return l({entries:[...o.entries.slice(0,v),b],index:v,visits:As(o.visits,b)}),!0}function f(w){let b={...r.canvas,...w};if(dh(r.canvas,b))return;let v={...r,canvas:b};t&&a&&o.browser&&t.history.replaceState(t.history.state,"",Zo(new URL(t.location.href),v));let d=[...o.entries];d[o.index]=v,l({...o,entries:d})}let p=o.browser?o.browser.position>0:o.index>0,c=o.browser?o.browser.position<o.browser.last:o.index+1<o.entries.length;function m(w){if(w===-1?p:c)if(t&&o.browser)t.history.go(w);else{let b=o.index+w,v=o.entries[b];i.current(v.id),l({...o,index:b,addressProblem:void 0,visits:As(o.visits,v)})}}return{attention:r,activate:s,changeCanvas:f,move:m,visits:o.visits,addressProblem:o.addressProblem,canGoBack:p,canGoForward:c}}M();var ia=j($e(),1);M();var Fo=j($e(),1),Iv=j(Ir(),1);M();var bE="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function vE(){}function wE(e){return!e||typeof e!="object"||!("closest"in e)?null:e}function SE(e,t){let i=wE(e)?.closest(bE)??null;return!!(i&&t.contains(i))}function Uv(e,t,n,i,a){let o=t+a,l=Math.max(o,t+n-i-a);return Math.min(l,Math.max(o,e))}function xE(e){let t=e.visualViewport;return{left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.width??e.innerWidth,height:t?.height??e.innerHeight}}function _v({modalEl:e,handleEl:t,viewportMargin:n=8,onPositionChange:i}){let a=e.ownerDocument,o=a.defaultView;if(!o||t.ownerDocument!==a)return vE;let l=null,r=!1,u=!1,s=!1,f=o.visualViewport,p=(E,R)=>{let x=e.getBoundingClientRect(),N=xE(o),G=Uv(E,N.left,N.width,x.width,n),T=Uv(R,N.top,N.height,x.height,n);e.style.setProperty("--kplex-dialog-left",`${G}px`),e.style.setProperty("--kplex-dialog-top",`${T}px`),e.classList.add("is-positioned"),u=!0,i?.({left:G,top:T})},c=()=>{if(!u||s)return;let E=e.getBoundingClientRect();p(E.left,E.top)},m=()=>{a.removeEventListener("pointermove",b,!0),a.removeEventListener("pointerup",v,!0),a.removeEventListener("pointercancel",v,!0)},w=()=>{if(!l)return;let E=l.pointerId;l=null,r=!1,m(),t.hasPointerCapture(E)&&t.releasePointerCapture(E),e.classList.remove("is-dragging"),t.classList.remove("is-dragging")};function b(E){let R=l;if(!R||E.pointerId!==R.pointerId)return;E.preventDefault(),E.stopPropagation();let x=E.clientX-R.startClientX,N=E.clientY-R.startClientY;if(!r){if(Math.hypot(x,N)<3)return;r=!0,e.classList.add("is-dragging"),t.classList.add("is-dragging")}p(R.startLeft+x,R.startTop+N)}function v(E){!l||E.pointerId!==l.pointerId||(E.preventDefault(),E.stopPropagation(),w())}let d=E=>{l?.pointerId===E.pointerId&&w()},h=()=>{w()},g=E=>{if(s||l||E.button!==0||SE(E.target,t))return;let R=e.getBoundingClientRect();l={pointerId:E.pointerId,startClientX:E.clientX,startClientY:E.clientY,startLeft:R.left,startTop:R.top},a.addEventListener("pointermove",b,!0),a.addEventListener("pointerup",v,!0),a.addEventListener("pointercancel",v,!0);try{t.setPointerCapture(E.pointerId)}catch{}E.preventDefault(),E.stopPropagation()},S=()=>{s||(s=!0,w(),t.removeEventListener("pointerdown",g),t.removeEventListener("lostpointercapture",d),o.removeEventListener("blur",h),o.removeEventListener("resize",c),o.removeEventListener("pagehide",S),f?.removeEventListener("resize",c),f?.removeEventListener("scroll",c),e.classList.remove("kplex-draggable-dialog","is-positioned","is-dragging"),t.classList.remove("kplex-draggable-dialog-handle","is-dragging"),e.style.removeProperty("--kplex-dialog-left"),e.style.removeProperty("--kplex-dialog-top"))};return e.classList.add("kplex-draggable-dialog"),t.classList.add("kplex-draggable-dialog-handle"),t.addEventListener("pointerdown",g),t.addEventListener("lostpointercapture",d),o.addEventListener("blur",h),o.addEventListener("resize",c),o.addEventListener("pagehide",S),f?.addEventListener("resize",c),f?.addEventListener("scroll",c),S}function EE(e,t){let n=e.target,i=e.composedPath();return t.some(a=>a?i.includes(a)?!0:n?a.contains(n):!1:!1)}function Cs({open:e,anchorRef:t,anchorPoint:n,panelRef:i,dragHandleRef:a,insideRoots:o,onDismiss:l,dismissWhenAnchorHidden:r=!1,handleEscape:u,portalTarget:s,positioning:f,children:p}){let[c,m]=(0,Fo.useState)({}),w=(0,Fo.useRef)({insideRoots:o,onDismiss:l,handleEscape:u});w.current={insideRoots:o,onDismiss:l,handleEscape:u};let b=t.current,v=b?.ownerDocument??null,d=b?.closest("[data-floating-layer-boundary]")??null,h=e&&v?d??s(v):null,g=n?.x,S=n?.y;return(0,Fo.useLayoutEffect)(()=>{if(!e)return;let E=t.current;if(!E)return;let R=E.ownerDocument,x=R.defaultView;if(!x)return;let N=!1,G=null,T=()=>{if(N)return;let $=t.current;if(!$||$.ownerDocument!==R)return;let C=$.getBoundingClientRect();if(r&&(!$.getClientRects().length||!C.width||!C.height)){w.current.onDismiss("anchor-hidden");return}let U=x.visualViewport,z=d?.getBoundingClientRect(),q=z&&d?z.left+d.clientLeft-d.scrollLeft:0,ee=z&&d?z.top+d.clientTop-d.scrollTop:0,ie=Math.max(U?.offsetLeft??0,z?.left??0),B=Math.max(U?.offsetTop??0,z?.top??0),X=Math.min((U?.offsetLeft??0)+Math.min(x.innerWidth,U?.width??x.innerWidth),z?.right??1/0),ce=Math.min((U?.offsetTop??0)+Math.min(x.innerHeight,U?.height??x.innerHeight),z?.bottom??1/0),he=Math.min(f.viewportMargin,Math.max(0,(X-ie)/2)),yt=g??C.left,Ee=S??C.top,bt=S??C.bottom,Ke=Math.max(0,Math.min(Math.max(f.minimumWidth,f.preferredWidth),X-ie-he*2)),Ln=Math.max(ie+he,Math.min(G?.left??yt,X-Ke-he)),We=ce-bt-f.anchorGap-he,ln=Ee-B-f.anchorGap-he,Mt=We<f.minimumMaxHeight&&ln>We?Ee-f.anchorGap-Math.min(i.current?.scrollHeight||f.minimumMaxHeight,ln):bt+f.anchorGap,kt=Math.max(B+he,Math.min(G?.top??Mt,ce-Math.min(f.minimumMaxHeight,Math.max(0,ce-B-he*2))-he));m({position:d?"absolute":"fixed",left:Ln-q,top:kt-ee,width:Ke,maxHeight:Math.max(0,ce-kt-he)})},I=$=>{EE($,w.current.insideRoots())||w.current.onDismiss("outside-pointer")},H=$=>{if($.key!=="Escape"||w.current.handleEscape?.($)===!1)return;$.preventDefault(),$.stopPropagation(),w.current.onDismiss("escape");let C=t.current;C?.ownerDocument===R&&C.isConnected&&C.focus({preventScroll:!0})},k=x.ResizeObserver,K=k?new k(T):null;K?.observe(E),d&&K?.observe(d),i.current&&K?.observe(i.current),x.addEventListener("resize",T),x.visualViewport?.addEventListener("resize",T),x.visualViewport?.addEventListener("scroll",T),R.addEventListener("scroll",T,!0),R.addEventListener("pointerdown",I,!0),R.addEventListener("keydown",H,!0);let ne=i.current,le=a?.current,W=ne&&le?_v({modalEl:ne,handleEl:le,viewportMargin:f.viewportMargin,onPositionChange:$=>{G=$,T()}}):void 0,re=()=>{N||(N=!0,W?.(),K?.disconnect(),x.removeEventListener("resize",T),x.visualViewport?.removeEventListener("resize",T),x.visualViewport?.removeEventListener("scroll",T),R.removeEventListener("scroll",T,!0),R.removeEventListener("pointerdown",I,!0),R.removeEventListener("keydown",H,!0),x.removeEventListener("pagehide",re))};return x.addEventListener("pagehide",re),T(),re},[e,r,t,g,S,i,a,v,d,f.anchorGap,f.minimumMaxHeight,f.minimumWidth,f.preferredWidth,f.viewportMargin]),h?(0,Iv.createPortal)(p(c),h):null}var Cn=j(pe(),1),TE={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function Bv({anchor:e,address:t,shortAddress:n,onDismiss:i,onCopied:a}){let o=(0,ia.useRef)(e),l=(0,ia.useRef)(null),r=(0,ia.useRef)(!0),[u,s]=(0,ia.useState)();o.current=e,(0,ia.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]);async function f(c){try{let m=e.ownerDocument.defaultView?.navigator.clipboard;if(!m)throw new Error("Clipboard unavailable");await m.writeText(c),r.current&&(a(),i(!0))}catch{r.current&&s(c)}}function p(c){if(!n||u||!["ArrowDown","ArrowUp","Home","End"].includes(c.key))return;let[m,w]=Array.from(c.currentTarget.querySelectorAll("[role=menuitem]")),b=c.key==="Home"?m:c.key==="End"||c.target===m?w:m;c.preventDefault(),b?.focus()}return(0,Cn.jsx)(Cs,{open:!0,anchorRef:o,panelRef:l,insideRoots:()=>[l.current],dismissWhenAnchorHidden:!0,onDismiss:c=>i(c==="escape"),portalTarget:()=>e.closest(".kplex-publication"),positioning:TE,children:c=>(0,Cn.jsx)("div",{ref:l,style:c,className:"kplex-publication-address-menu",role:u?"dialog":"menu","aria-label":L.copyAddress,onKeyDown:p,children:u?(0,Cn.jsx)("input",{autoFocus:!0,readOnly:!0,"aria-label":L.address,value:u,onFocus:m=>m.currentTarget.select()}):(0,Cn.jsxs)(Cn.Fragment,{children:[(0,Cn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!!n,disabled:!n,onClick:()=>{n&&f(n)},children:L.copyShortAddress}),(0,Cn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{f(t)},children:L.copyFullAddress}),!n&&(0,Cn.jsx)("p",{children:L.ambiguousAddress})]})})})}M();var Gv=j($e(),1);M();var aa=j($e(),1);M();var D=j(pe(),1),ME={"arrow-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,D.jsx)("path",{d:"M19 12H5"})]}),"arrow-right":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M5 12h14"}),(0,D.jsx)("path",{d:"m12 5 7 7-7 7"})]}),"panel-right":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M15 3v18"})]}),"panel-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M9 3v18"})]}),"panel-bottom":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M3 15h18"})]}),sun:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,D.jsx)("path",{d:"M12 2v2"}),(0,D.jsx)("path",{d:"M12 20v2"}),(0,D.jsx)("path",{d:"m4.93 4.93 1.41 1.41"}),(0,D.jsx)("path",{d:"m17.66 17.66 1.41 1.41"}),(0,D.jsx)("path",{d:"M2 12h2"}),(0,D.jsx)("path",{d:"M20 12h2"}),(0,D.jsx)("path",{d:"m6.34 17.66-1.41 1.41"}),(0,D.jsx)("path",{d:"m19.07 4.93-1.41 1.41"})]}),moon:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})}),"sun-moon":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M12 2v2"}),(0,D.jsx)("path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715"}),(0,D.jsx)("path",{d:"M16 12a4 4 0 0 0-4-4"}),(0,D.jsx)("path",{d:"m19 5-1.256 1.256"}),(0,D.jsx)("path",{d:"M20 12h2"})]}),"file-search":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),(0,D.jsx)("path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3"}),(0,D.jsx)("path",{d:"m9 18-1.5-1.5"}),(0,D.jsx)("circle",{cx:"5",cy:"14",r:"3"})]}),"corner-down-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("polyline",{points:"9 10 4 15 9 20"}),(0,D.jsx)("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})]}),minus:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("path",{d:"M5 12h14"})}),plus:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M5 12h14"}),(0,D.jsx)("path",{d:"M12 5v14"})]}),maximize:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),(0,D.jsx)("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),(0,D.jsx)("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),(0,D.jsx)("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]}),ellipsis:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,D.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,D.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),x:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M18 6 6 18"}),(0,D.jsx)("path",{d:"m6 6 12 12"})]}),network:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}),(0,D.jsx)("rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}),(0,D.jsx)("rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}),(0,D.jsx)("path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}),(0,D.jsx)("path",{d:"M12 12V8"})]})};function gh({icon:e}){return(0,D.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:ME[e]})}function xt({icon:e,label:t,title:n=t,type:i="button",...a}){return(0,D.jsx)("button",{...a,type:i,className:"kplex-publication-icon-control","aria-label":t,title:n,children:(0,D.jsx)(gh,{icon:e})})}var on=j(pe(),1),yh={preferredWidth:216,minimumWidth:160,viewportMargin:8,anchorGap:4,minimumMaxHeight:180},RE={...yh,preferredWidth:142,minimumWidth:112,minimumMaxHeight:138},NE={...yh,preferredWidth:280,minimumMaxHeight:235},AE={canvas:{label:L.graphOptions,positioning:yh},theme:{label:ha.label,positioning:RE},brand:{label:kn.label,positioning:NE}};function CE(e){e?.focus({preventScroll:!0})}function mr({anchor:e,point:t,choices:n,onDismiss:i,variant:a="canvas"}){let o=(0,aa.useRef)(e),l=(0,aa.useRef)(null),r=(0,aa.useRef)(null),[u,s]=(0,aa.useState)(null),f=AE[a];o.current=e;function p(){let v=r.current;(v?.querySelector("[aria-checked=true]")??v?.querySelector("button"))?.focus()}(0,aa.useLayoutEffect)(()=>{u&&p()},[u]);function c(){s(null),l.current?.querySelector("[aria-haspopup=menu][aria-expanded=true]")?.focus()}function m(){i(),e.focus({preventScroll:!0})}function w(v){if(v.key==="Tab"){m();return}let d=v.target,h=d.closest("[role=menu]");if(h){if(v.key==="ArrowRight"&&d.getAttribute("aria-haspopup")==="menu")u?p():d.click();else if(v.key==="ArrowLeft"&&h!==l.current)c();else if(["ArrowDown","ArrowUp","Home","End"].includes(v.key)){let g=Array.from(h.querySelectorAll("[role^=menuitem]")).filter(R=>R.closest("[role=menu]")===h),S=g.indexOf(d),E=v.key==="Home"?0:v.key==="End"?g.length-1:(S+(v.key==="ArrowDown"?1:-1)+g.length)%g.length;g[E]?.focus()}else return;v.preventDefault(),v.stopPropagation()}}function b({label:v,icon:d,kind:h,checked:g,select:S},E=!1){return(0,on.jsxs)("button",{type:"button",role:h,"aria-checked":g,autoFocus:E,onClick:()=>{m(),S()},children:[(0,on.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true",children:g?"✓":""}),d&&(0,on.jsx)(gh,{icon:d}),v]},v)}return(0,on.jsx)(Cs,{open:!0,anchorRef:o,anchorPoint:t,panelRef:l,insideRoots:()=>[l.current,e],dismissWhenAnchorHidden:!0,onDismiss:i,portalTarget:()=>e.closest(".kplex-publication"),positioning:f.positioning,handleEscape:v=>u?(v.preventDefault(),v.stopPropagation(),c(),!1):!0,children:v=>(0,on.jsx)("div",{ref:l,style:v,className:"kplex-publication-address-menu kplex-publication-canvas-menu",role:"menu","aria-label":f.label,onKeyDown:w,children:n.map((d,h)=>"choices"in d?(0,on.jsxs)("div",{role:"none",children:[(0,on.jsxs)("button",{type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":u===d.label,onClick:()=>u===d.label?c():s(d.label),children:[(0,on.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true"}),d.label,(0,on.jsx)("span",{className:"kplex-publication-submenu-arrow","aria-hidden":"true",children:"▸"})]}),u===d.label&&(0,on.jsx)("div",{ref:r,role:"menu","aria-label":d.label,children:d.choices.map(g=>b(g))})]},d.label):"href"in d?(0,on.jsx)("a",{role:"menuitem",ref:h===0?CE:void 0,href:d.href,target:"_blank",rel:"noopener noreferrer",onClick:m,children:d.label},d.href):b(d,a==="theme"?d.checked:h===0))})})}var qt=j(pe(),1),OE=[{label:kn.github,href:"https://github.com/zsviczian/kplex"},{label:kn.npm,href:"https://www.npmjs.com/package/@zsviczian/kplex-web"},{label:kn.community,href:"https://community.obsidian.md/plugins/k-plex"},{label:kn.playlist,href:"https://www.youtube.com/playlist?list=PLH_fBE-KxyiM"},{label:kn.book,href:"https://community.sketch-your-mind.com/sym"}];function Vv(){let[e,t]=(0,Gv.useState)(null);return(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("button",{className:"kplex-publication-brand",type:"button","aria-label":kn.label,title:kn.label,"aria-haspopup":"menu","aria-expanded":!!e,onClick:n=>t(e?null:n.currentTarget),children:(0,qt.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,qt.jsx)("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}),(0,qt.jsx)("path",{d:"M9 13a4.5 4.5 0 0 0 3-4M6.003 5.125A3 3 0 0 0 6.401 6.5M3.477 10.896a4 4 0 0 1 .585-.396M6 18a4 4 0 0 1-1.967-.516M12 13h4M12 18h6a2 2 0 0 1 2 2v1M12 8h8M16 8V5a2 2 0 0 1 2-2"}),(0,qt.jsx)("circle",{cx:"16",cy:"13",r:".5"}),(0,qt.jsx)("circle",{cx:"18",cy:"3",r:".5"}),(0,qt.jsx)("circle",{cx:"20",cy:"21",r:".5"}),(0,qt.jsx)("circle",{cx:"20",cy:"8",r:".5"})]})}),e&&(0,qt.jsx)(mr,{anchor:e,variant:"brand",choices:OE,onDismiss:()=>t(null)})]})}M();var Yv=j($e(),1),qv=j(pe(),1);function bh({icon:e,size:t,className:n}){function i(a,o){return(0,Yv.createElement)(a.tag,{...a.attrs,key:o},a.shapes.length?a.shapes.map(i):void 0)}return(0,qv.jsx)("svg",{...e.attrs,width:t,height:t,viewBox:e.viewBox,className:n,"aria-hidden":"true",focusable:"false",children:e.shapes.map(i)})}M();var jv=j($e(),1);var vi=j(pe(),1),Xv=typeof P>"u"?[]:P,vh=Xv.length>0;function Kv({dialog:e}){let t=(0,jv.useId)();return vh?(0,vi.jsxs)("dialog",{className:"kplex-publication-license-dialog",ref:e,"aria-labelledby":t,onKeyDown:n=>n.stopPropagation(),children:[(0,vi.jsxs)("div",{className:"kplex-publication-license-heading",children:[(0,vi.jsx)("h2",{id:t,children:L.licenses}),(0,vi.jsx)("button",{type:"button",autoFocus:!0,onClick:()=>e.current?.close(),children:L.close})]}),Xv.map(([n,i])=>(0,vi.jsxs)("section",{children:[(0,vi.jsx)("h3",{children:n}),(0,vi.jsx)("pre",{children:i})]},n))]}):null}M();var gr=j($e(),1);M();M();function Qv(e,t){if(!e.length||!Number.isFinite(t))return null;let n=Math.max(0,Math.min(1,t));if(e.length===1)return e[0];for(let i=1;i<e.length;i++){let a=e[i],o=e[i-1];if(n>a.offset&&i<e.length-1)continue;let l=a.offset>o.offset?(n-o.offset)/(a.offset-o.offset):1,r=(u,s)=>u+(s-u)*l;return{offset:n,x:r(o.x,a.x),y:r(o.y,a.y),scaleX:r(o.scaleX,a.scaleX),scaleY:r(o.scaleY,a.scaleY),originX:r(o.originX,a.originX),originY:r(o.originY,a.originY)}}return null}var Os=class{constructor(){this.animations=new Map;this.poses=new Map}play(t,n,i,a){this.animations.get(t)?.cancel(),this.animations.delete(t),this.poses.delete(t);let o=t.animate(n,{...i,fill:"none"});if(!o)return null;this.animations.set(t,o),a&&this.poses.set(t,{animation:o,frames:a});let l=()=>{this.animations.get(t)===o&&(this.animations.delete(t),this.poses.delete(t))};return o.finished.then(l,l),o}isRunning(t){return t?this.animations.has(t):this.animations.size>0}sample(t){let n=this.poses.get(t);if(!n||this.animations.get(t)!==n.animation)return null;let i=n.animation.effect?.getComputedTiming().progress;return typeof i=="number"?Qv(n.frames,i):null}cancelAll(){for(let t of this.animations.values())t.cancel();this.animations.clear(),this.poses.clear()}};M();function Zv(e,t,n,i){let a=Math.max(.01,n),o=(e.left-t.left)/a,l=(e.top-t.top)/a,r=t.width>0?e.width/t.width:1,u=t.height>0?e.height/t.height:1,s=Math.hypot(o,l),f=Math.min(24/a,s*.08),p=s?-l/s:0,c=s?o/s:0;return[0,.35,.65,.85,1].map(m=>{let w=m===0||m===1?0:Math.sin(Math.PI*m),b=o*(1-m)+p*f*w,v=l*(1-m)+c*f*w,d=1+.055*w;return i?.push({offset:m,x:b,y:v,scaleX:(r+(1-r)*m)*d,scaleY:(u+(1-u)*m)*d,originX:0,originY:0}),{offset:m,transformOrigin:"0 0",transform:`translate(${b}px, ${v}px) scale(${(r+(1-r)*m)*d}, ${(u+(1-u)*m)*d})`,opacity:1}})}M();var pr=j($e(),1),Ls=j(pe(),1),Ga="[data-publication-strip-scroll]";function Fv({id:e,label:t,panel:n,start:i,onScroll:a,children:o}){let l=(0,pr.useRef)(null),r=(0,pr.useRef)(i);return(0,pr.useLayoutEffect)(()=>{l.current&&(l.current.scrollTop=r.current)},[]),(0,Ls.jsx)("div",{className:"kplex-zone-panel",style:{left:n.x,top:n.y,width:n.width,height:n.height},children:(0,Ls.jsx)("div",{className:"kplex-zone-scroll kplex-publication-strip-scroll","data-publication-strip-scroll":e,ref:l,role:"region","aria-label":t,tabIndex:0,onScroll:u=>a(u.currentTarget.scrollTop),children:(0,Ls.jsx)("div",{className:"kplex-zone-content",style:{height:n.contentHeight},children:o})})})}var zs={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function Jv(e){let t=e.getBoundingClientRect(),n=new Map(Array.from(e.querySelectorAll(Ga),a=>[a,a.getBoundingClientRect()])),i=[];for(let a of Array.from(e.querySelectorAll("[data-publication-occurrence]"))){let o=a.getBoundingClientRect(),l=a.closest(Ga),r=l?n.get(l)??t:t;o.left>=Math.min(t.right,r.right)||o.right<=Math.max(t.left,r.left)||o.top>=Math.min(t.bottom,r.bottom)||o.bottom<=Math.max(t.top,r.top)||i.push({element:a,id:a.dataset.publicationNode,occurrence:a.dataset.publicationOccurrence,rect:o,clipped:r!==t&&(o.top<r.top||o.bottom>r.bottom)})}return i}function LE(e,t){let n=new Set(e),i=new Map(e.map(l=>[l.occurrence,l])),a=new Map;for(let l of e){let r=a.get(l.id);r?r.push(l):a.set(l.id,[l])}let o=new Map;for(let l of t){let r=i.get(l.occurrence);r?.id===l.id&&(o.set(l,r),n.delete(r))}for(let l of t){if(o.has(l))continue;let r,u=1/0;for(let s of a.get(l.id)??[]){if(!n.has(s))continue;let f=Math.hypot(l.rect.x-s.rect.x,l.rect.y-s.rect.y);f<u&&(r=s,u=f)}r&&(o.set(l,r),n.delete(r))}return{pairs:o,remaining:n}}function Wv(e,t){let n=(0,gr.useRef)(new Os).current,i=(0,gr.useRef)(null);function a(){i.current=null,n.cancelAll(),t.current?.replaceChildren()}(0,gr.useEffect)(()=>{let r=e.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return r?.addEventListener("change",a),()=>{r?.removeEventListener("change",a),a()}},[]);function o(r){let u=e.current,s=u?.ownerDocument.defaultView;if(!(!u||!s)){if(u.querySelector("[data-publication-center]")?.dataset.publicationNode===r){i.current=null;return}if(u.ownerDocument.hidden||s.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof u.animate!="function"){a();return}i.current={id:r,cards:Jv(u)}}}function l(r,u){let s=e.current,f=t.current,p=i.current;if(a(),!s||!f||p?.id!==r)return;let c=Jv(s),{pairs:m,remaining:w}=LE(p.cards,c);for(let d of c){let h=m.get(d)?.rect;h?(Math.abs(h.left-d.rect.left)>.5||Math.abs(h.top-d.rect.top)>.5||Math.abs(h.width-d.rect.width)>.5||Math.abs(h.height-d.rect.height)>.5)&&n.play(d.element,Zv(h,d.rect,u),zs):n.play(d.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],zs)}let b=f.getBoundingClientRect();for(let d of w){if(d.clipped||d.element.isConnected)continue;let h=d.element.cloneNode(!0);h.removeAttribute("role"),h.removeAttribute("tabindex"),h.removeAttribute("data-publication-node"),h.removeAttribute("data-publication-occurrence"),h.removeAttribute("data-publication-center"),h.style.left=`${d.rect.left-b.left}px`,h.style.top=`${d.rect.top-b.top}px`;let g=d.rect.width/parseFloat(h.style.width),S=d.rect.height/parseFloat(h.style.height);f.append(h);let E=n.play(h,[{opacity:1,transformOrigin:"0 0",transform:`scale(${g}, ${S})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${g*.95}, ${S*.95})`}],{...zs,duration:200});E?E.finished.then(()=>h.remove(),()=>h.remove()):h.remove()}let v=s.querySelector(".kplex-links");v&&n.play(v,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],zs)}return{capture:o,play:l,cancel:a}}M();var Ht=j($e(),1);M();var yr=j(pe(),1);function $v({label:e,controlId:t,children:n,layout:i="stacked",actions:a,className:o=""}){return(0,yr.jsxs)("div",{className:`${i==="option"?"kplex-form-option":i==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${a?" has-actions":""} ${o}`,children:[(0,yr.jsx)("label",{id:`${t}-label`,htmlFor:t,children:e}),n,a?(0,yr.jsx)("div",{className:"kplex-field-actions",children:a}):null]})}M();var Ds=j($e(),1);M();var De=j($e(),1),t0=j(Ir(),1),Et=j(pe(),1);function zE(e,t){let n=t.trim().toLocaleLowerCase();if(!n)return new Set;let i=e.toLocaleLowerCase(),a=i.indexOf(n);if(a>=0)return new Set(Array.from({length:n.length},(r,u)=>a+u));let o=new Set,l=0;for(let r of n){let u=i.indexOf(r,l);if(u<0)return new Set;o.add(u),l=u+1}return o}function e0(e,t){let n=zE(e,t);if(!n.size)return e;let i=[],a=0,o=n.has(0);for(let l=1;l<=e.length;l+=1){let r=l<e.length&&n.has(l);if(l<e.length&&r===o)continue;let u=e.slice(a,l);i.push(o?(0,Et.jsx)("mark",{className:"kplex-fuzzy-match",children:u},`${a}:m`):(0,Et.jsx)("span",{children:u},`${a}:t`)),a=l,o=r}return(0,Et.jsx)(Et.Fragment,{children:i})}function n0({value:e,onChange:t,results:n,getResults:i,onChoose:a,getKey:o,getLabel:l,getDetail:r,placeholder:u,ariaLabel:s,inputId:f,labelledBy:p,icon:c,autoFocus:m=!1,disabled:w=!1,floating:b=!1,floatingMode:v="app",portalSelector:d,appTopbarSelector:h,maxFloatingHeight:g=440,minFloatingWidth:S=0,resultsClassName:E="",matchingQuery:R,resultsOwnerId:x,preferSuggestionOnModifiedEnter:N=!1,resultPrefix:G,onEnterWithoutResult:T,onCtrlEnter:I,openResultsOnFocus:H=!0,onFocusChange:k,onDismiss:K,focusRequest:ne,inputTitle:le,inputKeyShortcuts:W,className:re="",highlightMatches:$=!0,closeOnChoose:C=!0,closeOnBlur:U=!1,combobox:z=!1,advanceOnChoose:q=!1,disclosure:ee}){let ie=(0,De.useId)(),[B,X]=(0,De.useState)(!1),[ce,he]=(0,De.useState)(!1),[yt,Ee]=(0,De.useState)(!1),[bt,Ke]=(0,De.useState)(!1),[Ln,We]=(0,De.useState)(0),[ln,Mt]=(0,De.useState)(null),kt=(0,De.useRef)(null),Si=(0,De.useRef)(null),Wn=(0,De.useRef)(null),la=B&&!yt&&(bt||H||ce&&e.trim().length>0),Re=(0,De.useMemo)(()=>la?i?.(e)??n??[]:[],[la,i,n,e]),Be=Re.length?Math.max(0,Math.min(Re.length-1,Ln)):0,Rt=kt.current?.ownerDocument??null,Ge=Rt?.defaultView??null,jt=b?v==="viewport"?Rt?.body??null:d?kt.current?.closest(d)??null:null:null,rn=B&&Re.length>0&&(!b||!!(jt&&ln)),$n=()=>{Ke(!1),Ee(!0),We(0),K?.()},un=()=>{ee&&(ee.onOpen(),Wn.current?.focus({preventScroll:!0}),X(!0),Ke(!0),Ee(!1),We(0))},ra=_=>{Ke(!1),X(!_),he(!1),Ee(!_),We(0);let ae=Wn.current;_&&ae&&ae.ownerDocument.activeElement===ae&&ae.blur(),k?.(!1)},ua=()=>ra(!0),wn=_=>{if(a(_),C){ra(!z);return}q&&Re.length>0&&We(ae=>(Math.max(0,Math.min(Re.length-1,ae))+1)%Re.length)};(0,De.useEffect)(()=>{We(0)},[e]);let ke=(0,De.useCallback)(()=>{let _=Wn.current;_&&(X(!0),he(!1),Ee(!1),_.focus({preventScroll:!0}),k?.(!0))},[k]);(0,De.useEffect)(()=>{m&&ke()},[m,ke]),(0,De.useEffect)(()=>{ne&&ke()},[ne,ke]),(0,De.useEffect)(()=>{let _=kt.current;if(!_)return;let ae=()=>$n();return _.addEventListener("kplex-dismiss-suggestions",ae),()=>_.removeEventListener("kplex-dismiss-suggestions",ae)},[K]),(0,De.useEffect)(()=>{if(!B||!Rt||!Ge)return;let _=kt.current;if(!_)return;let ae=sn=>{let Xt=sn.target;Xt&&(_.contains(Xt)||Si.current?.contains(Xt))||ua()},Ve=()=>Rt.removeEventListener("pointerdown",ae,!0);return Rt.addEventListener("pointerdown",ae,!0),Ge.addEventListener("pagehide",Ve,{once:!0}),()=>{Ve(),Ge.removeEventListener("pagehide",Ve)}},[B,Rt,Ge]),(0,De.useLayoutEffect)(()=>{if(!b||!B||!Re.length){Mt(null);return}let _=kt.current;if(!_||!Ge)return;let ae=Ge.visualViewport,Ve=()=>{let zn=_.getBoundingClientRect(),Pt=8,el=6;if(v==="viewport"){let Xa=ae?.offsetLeft??0,al=ae?.offsetTop??0,y=ae?.width??Ge.innerWidth,O=al+(ae?.height??Ge.innerHeight),Y=Math.min(Math.max(zn.width,S),Math.max(0,y-Pt*2)),Z=Math.max(Xa+Pt,Math.min(zn.left,Xa+y-Pt-Y)),ue=Math.max(zn.bottom+el,al+Pt),Q=Math.min(zn.top-el,O-Pt),He=Math.max(0,O-Pt-ue),Nt=Math.max(0,Q-al-Pt),Qe=He>=Math.min(180,g)||He>=Nt,Pe=Math.max(0,Math.min(g,Qe?He:Nt)),At={position:"fixed",left:Z,width:Y,maxHeight:Pe,zIndex:1e4};Qe?At.top=ue:At.bottom=Ge.innerHeight-Q,Mt(At);return}let wr=d?_.closest(d)??null:null,Sr=h?_.closest(h)??null:null;if(!wr||!Sr)return;let fa=wr.getBoundingClientRect(),ja=Sr.getBoundingClientRect(),tl=Math.max(0,fa.width-Pt*2),nl=Math.min(780,Math.max(zn.width,Math.min(620,tl)),tl),xr=Pt,Er=Math.max(xr,fa.width-Pt-nl),Tr=Math.min(Er,Math.max(xr,zn.left-fa.left)),il=Math.max(0,ja.bottom-fa.top+el),Mr=Math.max(0,Math.min(g,fa.height-il-Pt));Mt({left:Tr,top:il,width:nl,maxHeight:Mr})};Ve();let sn=Ge.ResizeObserver,Xt=sn?new sn(Ve):null,Ei=v==="app"&&d?_.closest(d):null,ca=v==="app"&&h?_.closest(h):null;Ei&&Xt?.observe(Ei),ca&&Xt?.observe(ca),Xt?.observe(_);let qa=()=>{Xt?.disconnect(),Ge.removeEventListener("resize",Ve),Ge.removeEventListener("scroll",Ve,!0),ae?.removeEventListener("resize",Ve),ae?.removeEventListener("scroll",Ve)};return Ge.addEventListener("resize",Ve),Ge.addEventListener("scroll",Ve,!0),ae?.addEventListener("resize",Ve),ae?.addEventListener("scroll",Ve),Ge.addEventListener("pagehide",qa,{once:!0}),()=>{qa(),Ge.removeEventListener("pagehide",qa)}},[h,b,v,B,Re.length,g,S,Rt,Ge,d]),(0,De.useEffect)(()=>{let _=Si.current;!_||!Re.length||_.querySelector(`[data-kplex-fuzzy-index="${Be}"]`)?.scrollIntoView({block:"nearest"})},[Be,Re.length]);let xi=_=>{if(!(_.nativeEvent.isComposing||_.key==="Dead"||_.getModifierState("AltGraph"))){if(_.key==="Tab"){$n(),X(!1),k?.(!1);return}if(_.key==="Escape"){Re.length&&(_.preventDefault(),_.stopPropagation(),$n());return}if(z&&ee&&_.key==="ArrowDown"&&!Re.length){_.preventDefault(),un();return}if(_.key==="ArrowDown"&&Re.length){_.preventDefault(),We(ae=>Math.min(Re.length-1,ae+1));return}if(_.key==="ArrowUp"&&Re.length){_.preventDefault(),We(ae=>Math.max(0,ae-1));return}if(_.key==="Enter"&&_.repeat){_.preventDefault(),_.stopPropagation();return}if(_.key==="Enter"&&Re.length&&(!(_.ctrlKey||_.metaKey)||N)){_.preventDefault(),_.stopPropagation();let ae=Re[Be];ae&&wn(ae);return}if(_.key==="Enter"&&(_.ctrlKey||_.metaKey)&&I){_.preventDefault(),_.stopPropagation(),I();return}if(!(_.key==="Enter"&&(_.ctrlKey||_.metaKey)&&!I)&&_.key==="Enter"){_.preventDefault();let ae=Re[Be];ae?wn(ae):T?.()}}},sa=B&&Re.length>0?(0,Et.jsx)("div",{ref:Si,id:z?ie:void 0,role:z?"listbox":void 0,"aria-labelledby":z?p:void 0,"aria-label":z&&!p?s:void 0,"data-fuzzy-owner":x,"data-kplex-tooltip-scope":!0,className:`kplex-search-results${b?" kplex-fuzzy-floating-results":" kplex-fuzzy-inline-results"}${E?` ${E}`:""}`,style:b?ln??void 0:void 0,children:Re.map((_,ae)=>{let Ve=l(_),sn=r?.(_),Xt=$?R??e:"";return(0,Et.jsxs)("button",{id:z?`${ie}-option-${ae}`:void 0,role:z?"option":void 0,"aria-selected":z?ae===Be:void 0,tabIndex:z?-1:void 0,"data-kplex-fuzzy-index":ae,className:`kplex-search-result${G?" has-prefix":""}${ae===Be?" is-selected":""}`,"aria-label":sn?`${Ve}
|
|
767
|
-
${sn}`:Ve,onMouseDown:Ei=>Ei.preventDefault(),onMouseEnter:()=>We(ae),onClick:()=>wn(_),children:[G?(0,Et.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:G(_)}):null,(0,Et.jsx)("span",{children:e0(Ve,Xt)}),sn?(0,Et.jsx)("small",{children:e0(sn,Xt)}):null]},o(_))})}):null,Ya=b&&jt&&ln&&sa?(0,t0.createPortal)(sa,jt):b?null:sa;return(0,Et.jsxs)("div",{ref:kt,className:`kplex-search-shell kplex-fuzzy-search${re?` ${re}`:""}`,children:[c?(0,Et.jsx)("div",{className:"kplex-search-icon",children:c}):null,(0,Et.jsx)("input",{ref:Wn,type:"text",role:z?"combobox":void 0,id:f,className:"kplex-search",value:e,disabled:w,onChange:_=>{Ke(!1),he(!0),Ee(!1),t(_.currentTarget.value)},onFocus:()=>{X(!0),he(!1),Ee(!1),k?.(!0)},onBlur:U?ua:void 0,onKeyDown:xi,placeholder:u,"aria-label":p?void 0:s,title:le,"aria-keyshortcuts":W,"aria-labelledby":p,"aria-expanded":z?rn:B&&Re.length>0,"aria-haspopup":z?"listbox":void 0,"aria-autocomplete":z?"list":void 0,"aria-controls":z&&rn?ie:void 0,"aria-activedescendant":z&&rn?`${ie}-option-${Be}`:void 0,autoComplete:"off"}),ee?(0,Et.jsx)("button",{type:"button",className:"kplex-fuzzy-disclosure",tabIndex:z?-1:void 0,disabled:w,"aria-label":ee.label,"aria-expanded":z?rn:B&&Re.length>0,"aria-haspopup":z?"listbox":void 0,"aria-controls":z&&rn?ie:void 0,onMouseDown:_=>_.preventDefault(),onClick:()=>{if(B&&bt&&!yt){$n();return}un()},children:ee.icon}):null,Ya]})}var a0=j(pe(),1);function i0({graph:e,icon:t,portalSelector:n,appTopbarSelector:i,onActivate:a,revision:o,focusRequest:l,inputTitle:r,inputKeyShortcuts:u,placeholder:s,ariaLabel:f,clearOnActivate:p=!0,repeatFind:c=!1,resultIcon:m}){let[w,b]=(0,Ds.useState)(""),v=(0,Ds.useCallback)(d=>e.search(d,24),[e,o]);return(0,a0.jsx)(n0,{value:w,onChange:b,getResults:v,onChoose:d=>{a(d.node.id),p&&b("")},getKey:d=>d.node.id,getLabel:d=>d.label,getDetail:d=>d.detail,resultPrefix:m,placeholder:s,ariaLabel:f,floating:!0,icon:t,portalSelector:n,appTopbarSelector:i,focusRequest:l,inputTitle:r,inputKeyShortcuts:u,closeOnChoose:!c,advanceOnChoose:c})}M();M();var DE=1e5,HE=8*1024*1024,o0=1e6,kE=/[\p{L}\p{N}]+/gu,PE=/^[\p{L}\p{N}]{1,128}$/u;function l0(e){return[...new Set(e.normalize("NFC").toLowerCase().match(kE))].filter(t=>t.length<=128)}function UE(e,t){if(!Array.isArray(e)||e.length>Or)throw new Error("Invalid publication search rows");let n=new Set,i=0;return e.map(a=>{if(!a||typeof a!="object"||!("id"in a)||!ni(a.id)||n.has(a.id)||t&&!t.has(a.id)||!("text"in a)||typeof a.text!="string"||a.text.length>DE)throw new Error("Invalid publication search row");if(n.add(a.id),i+=a.text.length,i>HE)throw new Error("Publication search exceeds its text budget");return{id:a.id,text:a.text}})}function r0(e,t){if(!e||typeof e!="object"||!("version"in e)||e.version!==1||!("rows"in e)||!("terms"in e)||!Array.isArray(e.terms)||e.terms.length>o0)throw new Error("Invalid publication search index");let n=UE(e.rows,t),i="";for(let{id:r}of n){if(i>=r)throw new Error("Unordered publication search rows");i=r}let a="",o=0,l=e.terms.map(r=>{if(!Array.isArray(r)||r.length!==2)throw new Error("Invalid publication search term");let[u,s]=r;if(typeof u!="string"||u.length>128||!PE.test(u)||u!==u.normalize("NFC").toLowerCase()||a>=u||!Array.isArray(s)||!s.length||s.length>n.length)throw new Error("Invalid publication search term");if(a=u,o+=s.length,o>o0)throw new Error("Publication search exceeds its posting budget");let f=-1;for(let p of s){if(typeof p!="number"||!Number.isInteger(p)||p<=f||p>=n.length)throw new Error("Invalid publication search reference");f=p}return[u,s]});return{version:1,rows:n,terms:l}}function Va(e){return e.trim().normalize("NFC").toLowerCase()}function u0(e,t){let n=new Set([...t.published.values()].filter(a=>a.kind==="document"||a.kind==="drawing").map(a=>a.id)),i=r0(e,n);return{rows:i.rows,positions:new Map(i.rows.map(({id:a},o)=>[a,o])),postings:new Map(i.terms)}}function _E(e,t){let n=Math.max(0,Va(e).indexOf(t)-35);return`${n?"…":""}${e.slice(n,n+90)}${e.length>n+90?"…":""}`}function s0(e,t){let n=new Map,i=[...e.nodes.values()].map(o=>{let l=Va(o.name),r=o.aliases.map(Va),u=Object.values(e.published.get(o.id)?.properties??{}).flatMap(s=>typeof s=="object"?[...s]:[String(s)]).map(Va);for(let s of[l,...r]){let f=n.get(s);f||n.set(s,f=new Set),f.add(o.id)}return{node:o,title:l,aliases:r,properties:u}});return{graph:{search(o,l){let r=Va(o.slice(0,128));if(!r)return[];let u=l0(r),s=u[0],f=t&&u.length?u.map(p=>new Set(t.postings.get(p))):null;return i.flatMap(({node:p,title:c,aliases:m,properties:w})=>{let b=t?.positions.get(p.id),v=c===r?1:m.includes(r)?2:c.startsWith(r)?3:m.some(d=>d.startsWith(r))?4:c.includes(r)?5:m.some(d=>d.includes(r))||w.some(d=>d.includes(r))?6:b!==void 0&&f?.every(d=>d.has(b))?7:0;return v?[{score:v,node:p,position:b,title:c}]:[]}).sort((p,c)=>p.score-c.score||e.read.compare(p.node,c.node)).slice(0,l).map(({score:p,node:c,position:m,title:w})=>{let b=p===7&&m!==void 0?t?.rows[m]?.text:void 0,v=b&&s?_E(b,s):n.get(w).size>1?c.id:c.aliases.find(d=>Va(d).includes(r))??"";return{node:c,label:c.name,detail:v}})}},address(o){let l=Va(o),r=dr(e,l);return r.length?r:[...n.get(l)??[]]}}}var it=j(pe(),1);function c0({publication:e,resources:t,page:n,searchFocus:i,onChoose:a}){let o=(0,Ht.useRef)(null),l=(0,Ht.useId)(),[r,u]=(0,Ht.useState)(""),[s,f]=(0,Ht.useState)([]),[p,c]=(0,Ht.useState)(!1),[m,w]=(0,Ht.useState)(!1),[b,v]=(0,Ht.useState)(null),[d,h]=(0,Ht.useState)(!1),g=(0,Ht.useMemo)(()=>s0(e,m?b:null),[e,m,b]);(0,Ht.useEffect)(()=>{let E=o.current?.ownerDocument.defaultView;if(!m||!E||b)return;let R=new E.AbortController,x=R.signal;return h(!1),t.text(Lr,x).then(N=>{x.aborted||v(u0(JSON.parse(N),e))}).catch(()=>{x.aborted||h(!0)}),()=>R.abort()},[m,e,t,b]);function S(E){E.preventDefault();let R=kv(r.trim(),n(),e),x=R?R.matches:g.address(r);if(x.length!==1){f(x),c(!x.length);return}f([]),c(!1),a(R?.location??{id:x[0]})}return(0,it.jsxs)("div",{className:"kplex-publication-tools",ref:o,children:[(0,it.jsxs)("div",{className:"kplex-publication-search",children:[(0,it.jsx)(i0,{graph:g.graph,revision:b&&m?1:0,onActivate:E=>a({id:E}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:L.find,ariaLabel:L.find,focusRequest:i,inputTitle:`${L.find} (${ur.key})`,inputKeyShortcuts:ur.key}),e.manifest?.fullText&&(0,it.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,it.jsx)(xt,{icon:"file-search",label:L.fullText,"aria-pressed":m,onClick:()=>w(E=>!E)}),m&&(d||!b)&&(0,it.jsx)("span",{role:"status",children:d?L.searchUnavailable:L.searchLoading})]})]}),(0,it.jsxs)("form",{className:"kplex-publication-address",onSubmit:S,children:[(0,it.jsx)($v,{label:L.address,layout:"inline",controlId:l,actions:(0,it.jsx)(xt,{icon:"corner-down-left",label:L.open,type:"submit"}),children:(0,it.jsx)("input",{id:l,type:"text",placeholder:L.address,autoComplete:"off",maxLength:512,value:r,onChange:E=>{u(E.currentTarget.value),f([]),c(!1)}})}),p&&(0,it.jsx)("span",{role:"status",children:L.nodeUnavailable}),s.length>1&&(0,it.jsxs)("div",{className:"kplex-publication-address-matches",children:[(0,it.jsx)("p",{children:L.chooseNote}),(0,it.jsx)("ul",{children:s.slice(0,24).map(E=>(0,it.jsx)("li",{children:(0,it.jsxs)("button",{type:"button",onClick:()=>{f([]),a({id:E})},children:[e.nodes.get(E)?.name," · ",E]})},E))}),s.length>24&&(0,it.jsx)("p",{children:L.chooseAddress})]})]})]})}M();var Tt=j($e(),1);M();var IE="https://api.github.com",BE="https://github.com",GE=/^[a-z\d][a-z\d-]{0,38}$/i,VE=/^[a-z\d_.-]{1,100}$/i;function f0(e){return e.length<=256&&/^[a-z\d_.:/-]+$/i.test(e)&&!e.endsWith(".")&&!e.includes("..")&&e.split("/").every(t=>!!t&&!t.startsWith(".")&&!t.endsWith(".lock"))}function d0(e){if(!Ws(e))return null;let t=/^(https?):\/\/(?:www\.)?github\.com(?::(\d{1,5}))?(\/[^?#]*)?(?:[?#]|$)/i.exec(e);if(!t)return null;let[,n,i,a="/"]=t;if(i&&Number(i)!==(n.toLowerCase()==="https"?443:80))return null;let o;try{o=a.slice(1).replace(/\/$/,"").split("/").map(m=>decodeURIComponent(m))}catch{return{}}let[l,r,u,...s]=o;if(!l||!r||!GE.test(l)||!VE.test(r)||r==="."||r==="..")return{};let f=`${l}/${r}`,p=`${IE}/repos/${f}`,c=s.join("/");if(!u)return{repository:f,preview:{api:p,caption:f,comparison:!1}};if((u==="pull"||u==="issues")&&/^[1-9]\d{0,14}$/.test(s[0]??""))return{repository:f,preview:{api:`${p}/${u==="pull"?"pulls":"issues"}/${s[0]}`,caption:`${f} #${s[0]}`,comparison:!1}};if(u==="compare"){let m=c.split("...");if(m.length===2&&m.every(f0))return{repository:f,preview:{api:`${p}/compare/${m.map(encodeURIComponent).join("...")}?per_page=20`,caption:c,comparison:!0}}}if(u==="releases"&&s[0]==="tag"){let m=s.slice(1).join("/");if(f0(m))return{repository:f,preview:{api:`${p}/releases/tags/${encodeURIComponent(m)}`,caption:m,comparison:!1}}}return{repository:f}}function wh(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function Sh(e,t){return typeof e=="string"&&e.trim()?e.trim().slice(0,t):void 0}function h0(e,t,n){let i=wh(n);if(!t.comparison)return{title:Sh(i.title??i.name??i.full_name,240)??t.caption,description:Sh(i.body??i.description,16e3)};let a=Array.isArray(i.commits)?i.commits.slice(0,20).flatMap(o=>{let{sha:l,commit:r}=wh(o);if(typeof l!="string"||!/^[a-f\d]{40}$/i.test(l))return[];let u=Sh(wh(r).message,240);return[{sha:l.slice(0,7),title:u?.split(/\r?\n/,1)[0]??l.slice(0,7),href:`${BE}/${e}/commit/${l}`}]}):[];return{title:t.caption,commits:a,total:typeof i.total_commits=="number"&&Number.isSafeInteger(i.total_commits)&&i.total_commits>=a.length?i.total_commits:a.length}}M();var Hs="http://www.w3.org/1999/xhtml",Jo="http://www.w3.org/2000/svg",YE="http://www.w3.org/1999/xlink",m0="http://www.w3.org/XML/1998/namespace",qE=new Set("a article aside audio b blockquote br caption code dd del div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s section span strong sub sup table tbody td th thead tr ul video".split(" ")),jE=new Set("svg a circle clipPath defs ellipse g image line linearGradient marker mask path pattern polygon polyline radialGradient rect stop symbol text textPath tspan use".split(" ")),XE=new Set("x y x1 x2 y1 y2 cx cy r rx ry fx fy fr d points width height viewBox markerWidth markerHeight refX refY startOffset stroke-width stroke-dasharray stroke-dashoffset font-size letter-spacing textLength pathLength transform gradientTransform patternTransform opacity fill-opacity stroke-opacity offset stop-opacity stroke-miterlimit".split(" ")),KE=new Set("stroke-linecap stroke-linejoin text-anchor dominant-baseline alignment-baseline font-weight font-style font-family fill-rule clip-rule gradientUnits spreadMethod markerUnits marker-start marker-end marker-mid patternUnits patternContentUnits clipPathUnits maskUnits maskContentUnits preserveAspectRatio orient vector-effect visibility lengthAdjust".split(" ")),QE=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),p0=/^[-a-z0-9_]{1,96}$/i,ZE=/^[\d\s+.,%()a-z-]+$/i,FE=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,JE=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,WE=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,$E=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,g0=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,y0=4*1024*1024;function ks(e){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(e)}function eT(e){if(e.length>2048||!/^https?:\/\//i.test(e)||/[\p{Cc}\s\\]/u.test(e))return null;try{let t=new URL(e);return t.hostname&&!t.username&&!t.password?t.href:null}catch{return null}}function tT(e,t=""){if(!ni(e)||t&&!ks(t))throw new Error("Invalid public link");return`?node=${e}${t?`#${encodeURIComponent(t)}`:""}`}function b0(e,t){if(e.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(e);if(!n||!t.nodeIds.has(n[1])||!ni(n[1]))return null;let i="";try{i=decodeURIComponent(n[2]??"")}catch{return null}if(i&&!ks(i))return null;if(t.nodeAddress)return t.nodeAddress(n[1],i);let a=tT(n[1],i);return t.siteURL?new URL(a,t.siteURL).href:a}if(e.startsWith("#")){let n;try{n=decodeURIComponent(e.slice(1))}catch{return null}return ks(n)?`#${encodeURIComponent(t.idPrefix?`${t.idPrefix}-${n}`:n)}`:null}return v0(e,t)??(t.allowExternalLinks===!1?null:eT(e))}function v0(e,t){let n=e.slice(2);return!$E.test(e)||!Ka(n)||!t.assetPaths.has(n)?null:t.siteURL?new URL(`./${n}`,t.siteURL).href:`./${n}`}function nT(e,t){let n=new Map;for(let i of Array.from(e.querySelectorAll("[id]"))){let a=i.getAttribute("id");a&&/^[a-z0-9_.:-]{1,160}$/i.test(a)&&!n.has(a)&&n.set(a,`${t}-${n.size+1}`)}return n}function w0(e,t){t&&(e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"))}function S0(e,t,n,i){let a=v0(n,i);a&&(i.deferMedia?e.setAttribute("data-publication-asset",n.slice(2)):e.setAttribute(t,a))}function iT(e,t){if(e.getAttribute("data-publication-drawing")!=="true")return;t.setAttribute("data-publication-drawing","true");let n=e.getAttribute("data-publication-drawing-mode");(n==="light"||n==="dark")&&t.setAttribute("data-publication-drawing-mode",n);for(let i of["width","height"]){let a=`data-publication-${i}`,o=e.getAttribute(a)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(o)&&(t.setAttribute(a,o),t.style.setProperty(`--kplex-published-drawing-${i}`,o.endsWith("%")?o:`${o}px`))}}function aT(e,t,n){let i=e.localName,a=e.getAttribute("id")??e.getAttribute("data-publication-fragment");if(a&&ks(a)&&(t.id=n.idPrefix?`${n.idPrefix}-${a}`:a,t.setAttribute("data-publication-fragment",a)),i==="a"&&w0(t,b0(e.getAttribute("href")??"",n)),i==="figure"&&iT(e,t),i==="img"||i==="audio"||i==="video"){let o=e.getAttribute("src")??"";(i==="img"?g0:i==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(o)&&S0(t,"src",o,n),i==="img"?(t.setAttribute("alt",(e.getAttribute("alt")??"").slice(0,512)),t.setAttribute("loading","lazy"),t.setAttribute("decoding","async")):(t.setAttribute("controls","controls"),t.setAttribute("preload","none"))}if(i==="aside"||i==="blockquote"){let o=e.getAttribute("data-callout");o&&p0.test(o)&&t.setAttribute("data-callout",o)}if(i==="ol"){let o=e.getAttribute("start");o&&/^\d{1,7}$/.test(o)&&t.setAttribute("start",o)}}var oT=/@font-face\s*\{\s*font-family:\s*(["']?)([a-z0-9][a-z0-9 _-]{0,95})\1\s*;\s*src:\s*url\(\s*(["']?)data:font\/(woff2|woff|ttf|otf);base64,([A-Za-z0-9+/]+={0,2})\3\s*\)\s*;([^{}]*)\}/gi,lT=/^(?:normal|bold|[1-9]\d{0,2}|1000)(?: (?:[1-9]\d{0,2}|1000))?$/i,rT=/^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?(?:\s*,\s*u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?)*$/i,uT=new Set(["text","tspan","textPath"]),sT={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},cT=512*1024;function fT(e,t){let n=new Map,i=[],a=0;for(let o of Array.from(e.children))if(!(o.namespaceURI!==Jo||o.localName!=="defs"))for(let l of Array.from(o.children)){if(l.namespaceURI!==Jo||l.localName!=="style"||l.childElementCount)continue;let r=l.textContent??"";if(a+=r.length,a>cT)return{families:new Map,rules:[]};for(let u of r.matchAll(oT)){let s=u[2].trim().toLowerCase(),f=u[4].toLowerCase(),p=u[5];if(!(f==="woff2"||f==="woff"||f==="ttf"||f==="otf")||p.length<8||p.length%4||!atob(p.slice(0,8)).startsWith(sT[f]))continue;let c=n.get(s)??`${t}-font-${n.size+1}`;n.set(s,c);let m=new Map;for(let b of u[6].split(";")){let[v,d]=b.split(":").map(h=>h.trim().toLowerCase());d&&(v==="unicode-range"&&d.length<=8192&&rT.test(d)||v==="font-weight"&&lT.test(d)||v==="font-style"&&/^(?:normal|italic|oblique)$/.test(d))&&m.set(v,d)}let w=[...m].map(([b,v])=>`${b}:${v};`).join("");i.push(`@font-face{font-family:${c};src:url(data:font/${f};base64,${p});${w}}`)}}return{families:n,rules:i}}function dT(e,t){return e.split(",").map(n=>t?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function hT(e,t,n,i,a){for(let o of Array.from(e.attributes)){let{localName:l,value:r}=o;if(!(r.length>65536)){if(uT.has(e.localName)&&(l==="style"&&!o.namespaceURI&&/(?:^|;)\s*white-space\s*:\s*pre\s*(?:;|$)/i.test(r)||l==="space"&&o.namespaceURI===m0&&r==="preserve")){t.setAttributeNS(m0,"xml:space","preserve");continue}if(l==="href"&&(o.namespaceURI===null||o.namespaceURI===YE)){if(e.localName==="a")w0(t,b0(r,i));else if(e.localName==="image"&&g0.test(r))S0(t,"href",r,i);else if((e.localName==="use"||e.localName==="textPath"||e.localName.endsWith("Gradient"))&&r.startsWith("#")){let u=n.get(r.slice(1));u&&t.setAttribute("href",`#${u}`)}continue}if(!o.namespaceURI)if(l==="id"){let u=n.get(r);u&&t.setAttribute(l,u)}else if(QE.has(l)){let u=WE.exec(r),s=u&&n.get(u[1]);s?t.setAttribute(l,`url(#${s})`):JE.test(r)&&t.setAttribute(l,r)}else XE.has(l)&&ZE.test(r)?t.setAttribute(l,r):KE.has(l)&&FE.test(r)&&t.setAttribute(l,l==="font-family"?dT(r,a?.families):r)}}}function mT(e,t,n){if(n.idPrefix&&!p0.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let a=n.siteURL?t:t.implementation.createDocument(null,null),o=a.adoptNode(new i.DocumentFragment),l=0,r=0,u=0,s=new Set,f=(p,c,m,w,b)=>{if(++l>1e5||m>64)throw new Error("Publication content too complex");if(p.nodeType===3||p.nodeType===4){let d=p.nodeValue??"";if(u+=d.length,u>y0)throw new Error("Publication content too large");c.appendChild(a.createTextNode(d));return}if(p.nodeType!==1)return;let v=p;if(v.namespaceURI===Jo&&jE.has(v.localName)){if(v.localName==="svg"){let g=`${n.idPrefix??"svg"}-s${++r}`;w=nT(v,g),b=n.allowDrawingFonts?fT(v,g):void 0}if(!w)return;let d=a.createElementNS(Jo,v.localName);hT(v,d,w,n,b);let h=d.getAttribute("id");if(h&&s.has(h)?d.removeAttribute("id"):h&&s.add(h),c.appendChild(d),v.localName==="svg"&&b?.rules.length){let g=a.createElementNS(Jo,"defs"),S=a.createElementNS(Jo,"style");S.textContent=b.rules.join(`
|
|
768
|
-
`),g.appendChild(S),d.appendChild(g)}for(let g of Array.from(v.childNodes))f(g,d,m+1,w,b)}else if(!w&&v.namespaceURI===Hs&&qE.has(v.localName)){if(n.drawingMode&&v.localName==="figure"&&v.getAttribute("data-publication-drawing")==="true"){let h=v.getAttribute("data-publication-drawing-mode");if((h==="light"||h==="dark")&&h!==n.drawingMode)return}let d=a.createElementNS(Hs,v.localName);aT(v,d,n),c.appendChild(d);for(let h of Array.from(v.childNodes))f(h,d,m+1,null)}};for(let p of e)f(p,o,0,null);return o}function x0(e,t,n){if(e.length>y0||/<!\s*(?:doctype|entity)|<\?[^>]*\?>/i.test(e))throw new Error("Invalid publication content");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let a=new i.DOMParser().parseFromString(`<article xmlns="${Hs}">${e}</article>`,"application/xhtml+xml");if(a.documentElement.namespaceURI!==Hs||a.querySelector("parsererror"))throw new Error("Invalid publication markup");return mT(Array.from(a.documentElement.childNodes),t,{...n,allowDrawingFonts:!0})}M();M();function E0(e){if(e.protocol!=="https:"&&e.protocol!=="http:")return null;let t=e.hostname.toLowerCase();if(!["youtube.com","www.youtube.com","m.youtube.com","youtu.be","www.youtube-nocookie.com"].includes(t))return null;let n=e.pathname.split("/").filter(Boolean),i=t==="youtu.be"?n[0]:["embed","shorts","live"].includes(n[0])?n[1]:e.searchParams.get("v");return i&&/^[A-Za-z0-9_-]{11}$/.test(i)?{id:i,portrait:n[0]==="shorts"}:null}function T0(e){let t;try{t=typeof e=="string"?new URL(e):e}catch{return null}let n=E0(t);if(!n)return null;let i=new URL(`https://www.youtube.com/embed/${n.id}`);i.searchParams.set("playsinline","1");let a=t.searchParams.get("start")??t.searchParams.get("t");return a&&/^\d+s?$/.test(a)&&i.searchParams.set("start",a.replace(/s$/,"")),{url:i.href,aspectRatio:n.portrait?9/16:16/9}}M();var Wo=j($e(),1);M();async function M0(e,t,n,i){let a=await e.fetch(t,{credentials:"omit",redirect:"error",referrerPolicy:"no-referrer",signal:i}),o=a.body?.getReader();if(!a.ok||!o||Number(a.headers.get("Content-Length"))>n)throw await o?.cancel(),new Error("Publication resource unavailable");let l=[],r=0;try{for(;;){let f=await o.read();if(f.done)break;if(r+=f.value.byteLength,r>n)throw new Error("Publication resource exceeds its declared size");l.push(f.value)}}catch(f){throw await o.cancel().catch(()=>{}),f}finally{o.releaseLock()}let u=new Uint8Array(r),s=0;for(let f of l)u.set(f,s),s+=f.byteLength;return u}async function R0(e,t,n,i){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await M0(e,t,n,i)))}function Ps(e,t,n,i,a){let o=new URL("./",t),l=new Map(n.resources.map(s=>[s.path,s])),r=new Set([...l.keys()].filter(s=>s.startsWith("assets/")));async function u(s,f){let p=l.get(s),c=new URL(s,o);if(!p||c.origin!==o.origin||c.pathname!==`${o.pathname}${s}`||!e.crypto.subtle)throw new Error("Publication resource unavailable");let m=i?await i(s,p.bytes,f):await M0(e,c,p.bytes,f);if(m.byteLength!==p.bytes)throw new Error("Publication resource size mismatch");let w=await e.crypto.subtle.digest("SHA-256",m);if(f.throwIfAborted(),Array.from(new Uint8Array(w),v=>v.toString(16).padStart(2,"0")).join("")!==p.sha256)throw new Error("Publication resource checksum mismatch");return m}return{siteURL:o,assetPaths:r,bytes:u,nodeAddress:a,has:s=>l.has(s),async text(s,f){return new TextDecoder("utf-8",{fatal:!0}).decode(await u(s,f))}}}var at=j(pe(),1);function N0({page:e}){let t=(0,Wo.useRef)(null),[n,i]=(0,Wo.useState)(),{repository:a,preview:o}=e;return(0,Wo.useEffect)(()=>{let l=t.current?.ownerDocument.defaultView;if(!l||!a||!o)return;let r=new l.AbortController;return R0(l,new l.URL(o.api),8*1024*1024,r.signal).then(u=>{r.signal.aborted||i(h0(a,o,u))}).catch(()=>{r.signal.aborted||i(null)}),()=>r.abort()},[a,o]),(0,at.jsx)("div",{ref:t,className:"kplex-publication-github-preview",children:o?n===void 0?(0,at.jsx)("p",{role:"status",children:L.githubLoading}):n===null?(0,at.jsx)("p",{role:"status",children:L.githubPreviewUnavailable}):(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("h3",{children:n.title}),n.description&&(0,at.jsx)("p",{className:"kplex-publication-github-description",children:n.description}),n.commits&&(n.commits.length?(0,at.jsxs)(at.Fragment,{children:[n.total!==void 0&&n.total>n.commits.length&&(0,at.jsx)("p",{children:L.githubCommitCount(n.commits.length,n.total)}),(0,at.jsx)("ol",{children:n.commits.map(l=>(0,at.jsx)("li",{children:(0,at.jsxs)("a",{href:l.href,target:"_blank",rel:"noopener noreferrer",children:[(0,at.jsx)("code",{children:l.sha})," ",l.title]})},l.href))})]}):(0,at.jsx)("p",{children:L.githubNoCommits}))]}):(0,at.jsx)("p",{children:L.githubOpenOriginal})})}var Me=j(pe(),1),A0="http://www.w3.org/2000/svg",pT={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml",mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",pdf:"application/pdf"};function xh(e,t){if(t)return Array.from(e.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===t||n.getAttribute("data-publication-fragment")===t)}function C0({publication:e,resources:t,location:n,id:i,contentScope:a,colorMode:o,onClose:l,onNavigate:r,dock:u,onSwitchDock:s}){let f=(0,Tt.useRef)(null),p=(0,Tt.useRef)(null),c=(0,Tt.useRef)(!1),m=(0,Tt.useRef)(n.fragment);m.current=n.fragment;let[w,b]=(0,Tt.useState)(0),[v,d]=(0,Tt.useState)("loading"),[h,g]=(0,Tt.useState)(0),S=e.published.get(n.id),E=S.kind==="url"?S.url:void 0,R=(0,Tt.useMemo)(()=>d0(E),[E]),x=(0,Tt.useMemo)(()=>E?T0(E):null,[E]),N=x&&["https:","http:"].includes(t.siteURL.protocol)&&new URL(x.url).origin!==t.siteURL.origin;(0,Tt.useEffect)(()=>{let T=f.current,I=T?.ownerDocument.defaultView;if(!T||!I||E)return;let H=new I.AbortController,k=H.signal,K=new Map;g(0),T.replaceChildren();let ne=async W=>{let re=K.get(W);if(re)return re;let $=pT[W.slice(W.lastIndexOf(".")+1)];if(!$)throw new Error("Unsupported publication media");let C=await t.bytes(W,k);k.throwIfAborted();let U=I.URL.createObjectURL(new I.Blob([C],{type:$}));return K.set(W,U),U},le=async()=>{if(S.kind!=="document"&&S.kind!=="drawing"){if(!S.asset){d("unavailable");return}let U=await ne(S.asset);k.throwIfAborted();let z=T.ownerDocument.createElement("a");z.href=U,z.download=S.asset.slice(7),z.textContent=L.downloadAsset,T.replaceChildren(z),d("ready");return}let W=await t.text($s(S.id),k),re=x0(W,T.ownerDocument,{siteURL:t.siteURL,nodeAddress:t.nodeAddress,nodeIds:new Set(e.nodes.keys()),assetPaths:t.assetPaths,idPrefix:a,deferMedia:!0,drawingMode:o}),$=Array.from(re.querySelectorAll("[data-publication-asset]"),U=>({element:U,path:U.getAttribute("data-publication-asset"),download:!1})),C=new URL("./assets/",t.siteURL);for(let U of Array.from(re.querySelectorAll("a[href]"))){let z=new URL(U.getAttribute("href"),t.siteURL);if(z.origin!==C.origin||!z.pathname.startsWith(C.pathname))continue;let q=z.pathname.slice(t.siteURL.pathname.length);U.removeAttribute("href"),U.namespaceURI!==A0&&t.assetPaths.has(q)&&$.push({element:U,path:q,download:!0})}k.throwIfAborted(),T.replaceChildren(re),d("ready"),xh(T,m.current)?.scrollIntoView({block:"start"});for(let{element:U,path:z,download:q}of $)try{let ee=await ne(z);k.throwIfAborted(),U.setAttribute(q||U.namespaceURI===A0?"href":"src",ee),q&&U.setAttribute("download",z.slice(7)),U.removeAttribute("data-publication-asset")}catch{if(k.aborted)return;g(ee=>ee+1)}};return d("loading"),le().catch(()=>{k.aborted||d("failed")}),()=>{H.abort(),T.replaceChildren();for(let W of K.values())I.URL.revokeObjectURL(W)}},[w,S,e,t,a,o,E]),(0,Tt.useEffect)(()=>{f.current&&xh(f.current,n.fragment)?.scrollIntoView({block:"start"})},[n.fragment]),(0,Tt.useEffect)(()=>{c.current&&(c.current=!1,p.current?.focus({preventScroll:!0}))},[n.id]);function G(T){if(T.defaultPrevented||T.metaKey||T.ctrlKey||T.shiftKey||T.altKey)return;let I=T.target;if(!(I instanceof T.currentTarget.ownerDocument.defaultView.Element))return;let H=I.closest("a")?.getAttribute("href");if(!H)return;let k=Hv(H,t.siteURL,e,n.id);if(!k)return;T.preventDefault();let K=H.startsWith("#")&&k.id===n.id&&f.current?xh(f.current,k.fragment):null;c.current=T.detail===0&&k.id!==n.id,r(K?{...k,fragment:K.getAttribute("data-publication-fragment")??void 0}:k)}return(0,Me.jsxs)("aside",{id:i,className:`kplex-publication-note${E?" kplex-publication-web-note":""}`,"aria-labelledby":`${i}-heading`,children:[(0,Me.jsxs)("header",{className:"kplex-publication-sidecar-heading",children:[(0,Me.jsx)("h2",{ref:p,id:`${i}-heading`,tabIndex:-1,children:S.title}),(0,Me.jsxs)("div",{className:"kplex-publication-sidecar-actions",children:[s&&(0,Me.jsx)(xt,{icon:u==="bottom"?"panel-right":"panel-bottom",onClick:s,label:u==="bottom"?L.dockSidecarRight:L.dockSidecarBottom}),(0,Me.jsx)(xt,{icon:"x",onClick:l,label:L.closeSidecar})]})]}),E?(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsxs)("div",{className:"kplex-publication-web-source",children:[(0,Me.jsx)("a",{href:E,target:"_blank",rel:"noopener noreferrer",children:L.openWebsite}),!R&&!x&&(0,Me.jsx)("p",{children:L.webFrameHelp})]}),R?(0,Me.jsx)(N0,{page:R},E):x?N&&(0,Me.jsx)("iframe",{className:"kplex-publication-web-frame kplex-publication-video-frame",title:S.title,src:x.url,style:{aspectRatio:x.aspectRatio??void 0},sandbox:"allow-scripts allow-same-origin allow-presentation",referrerPolicy:"strict-origin-when-cross-origin",allow:"encrypted-media; picture-in-picture",allowFullScreen:!0},x.url):(0,Me.jsx)("iframe",{className:"kplex-publication-web-frame",title:S.title,src:E,sandbox:"allow-scripts",referrerPolicy:"no-referrer"},E)]}):(0,Me.jsxs)(Me.Fragment,{children:[v==="loading"&&(0,Me.jsx)("p",{role:"status",children:L.loadingNote}),v==="failed"&&(0,Me.jsxs)("div",{role:"alert",children:[(0,Me.jsx)("p",{children:L.noteUnavailable}),(0,Me.jsx)("button",{type:"button",onClick:()=>b(T=>T+1),children:L.retry})]}),v==="unavailable"&&(0,Me.jsx)("p",{children:L.noDocument}),(0,Me.jsx)("div",{ref:f,className:"kplex-publication-note-content","aria-busy":v==="loading",onClick:G}),h>0&&(0,Me.jsxs)("div",{role:"status",children:[(0,Me.jsx)("p",{children:L.mediaUnavailable}),(0,Me.jsx)("button",{type:"button",onClick:()=>b(T=>T+1),children:L.retry})]})]})]})}M();var Jn=j($e(),1);var wi=j(pe(),1),L0=736,O0=6;function gT({dock:e,sidecarId:t,size:n,minimum:i,maximum:a,onSize:o}){let l=(0,Jn.useRef)(null),r=(0,Jn.useRef)(null),u=e!=="bottom",s=e==="left"?1:-1;function f(h){return u?h.clientX:h.clientY}function p(h){o(Math.max(i,Math.min(a,Math.round(h))))}function c(h,g){r.current?.pointer===g&&(r.current=null,h.hasPointerCapture(g)&&h.releasePointerCapture(g))}(0,Jn.useLayoutEffect)(()=>{let h=l.current;return()=>{h&&r.current&&c(h,r.current.pointer)}},[e]);function m(h){h.button!==0||r.current||(h.preventDefault(),h.currentTarget.focus({preventScroll:!0}),h.currentTarget.setPointerCapture(h.pointerId),r.current={pointer:h.pointerId,origin:f(h),size:n})}function w(h){let g=r.current;g?.pointer===h.pointerId&&p(g.size+s*(f(h)-g.origin))}function b(h){w(h),c(h.currentTarget,h.pointerId)}function v(h){c(h.currentTarget,h.pointerId)}function d(h){if(h.altKey||h.ctrlKey||h.metaKey)return;let[g,S]=u?e==="left"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]:["ArrowUp","ArrowDown"],E=h.shiftKey?1:10,R;if(h.key==="Home")R=i;else if(h.key==="End")R=a;else if(h.key===g)R=n+E;else if(h.key===S)R=n-E;else return;h.preventDefault(),p(R)}return(0,wi.jsx)("div",{ref:l,className:"kplex-publication-divider",role:"separator",tabIndex:0,"aria-label":L.resizeSidecar,"aria-controls":t,"aria-orientation":u?"vertical":"horizontal","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":n,onPointerDown:m,onPointerMove:w,onPointerUp:b,onPointerCancel:v,onLostPointerCapture:v,onKeyDown:d})}function z0({canvas:e,sidecarId:t,sidecarOpen:n,dock:i,canDockLaterally:a,onDock:o,renderSidecar:l}){let r=(0,Jn.useRef)(null),[u,s]=(0,Jn.useState)({width:0,height:0}),[f,p]=(0,Jn.useState)({}),c=i!=="bottom",m=c?u.width:u.height,w=Math.max(0,m-(c?260:160)-O0),b=Math.min(w,c?240:120),v=f[i]??Math.round(m*(c?.34:.43)),d=Math.max(b,Math.min(w,v)),h=n?{"--kplex-publication-sidecar-size":`${d}px`,"--kplex-publication-divider-size":`${O0}px`}:void 0;(0,Jn.useLayoutEffect)(()=>{let E=r.current,R=E?.ownerDocument.defaultView;if(!E||!R)return;let x=E;function N(){let T=x.clientWidth,I=x.clientHeight;s(H=>H.width===T&&H.height===I?H:{width:T,height:I})}let G=new R.ResizeObserver(N);return G.observe(E),N(),()=>G.disconnect()},[]);function g(E){p(R=>R[i]===E?R:{...R,[i]:E})}function S(){o(i==="bottom"?"right":"bottom")}return(0,wi.jsxs)("div",{ref:r,className:`kplex-publication-workspace${n?" is-sidecar-open":""}`,"data-sidecar-dock":n?i:void 0,style:h,children:[e,n?(0,wi.jsxs)(wi.Fragment,{children:[(0,wi.jsx)(gT,{dock:i,sidecarId:t,size:d,minimum:b,maximum:w,onSize:g}),l(i,a?S:void 0)]}):(0,wi.jsx)("div",{id:t,hidden:!0})]})}M();M();function Us(e,t,n){let i=n/2;switch(t){case"top":return{x:e.x,y:e.y-e.height/2-3-i};case"bottom":return{x:e.x,y:e.y+e.height/2+3+i};case"left":return{x:e.x-e.width/2-3-i,y:e.y};case"right":return{x:e.x+e.width/2+3+i,y:e.y}}}function D0(e){switch(e){case"top":return{x:0,y:-1};case"bottom":return{x:0,y:1};case"left":return{x:-1,y:0};case"right":return{x:1,y:0}}}function yT(e,t,n,i,a){let o=1-a,l=o*o,r=a*a;return{x:l*o*e.x+3*l*a*t.x+3*o*r*n.x+r*a*i.x,y:l*o*e.y+3*l*a*t.y+3*o*r*n.y+r*a*i.y}}function Eh(e,t,n,i,a){if(a==="straight")return{d:`M ${e.x} ${e.y} L ${t.x} ${t.y}`,midpoint:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}};let o=Math.hypot(t.x-e.x,t.y-e.y),l=Math.max(20,Math.min(108,o*.2)),r=D0(n),u=D0(i),s={x:e.x+r.x*l,y:e.y+r.y*l},f={x:t.x+u.x*l,y:t.y+u.y*l};return{d:`M ${e.x} ${e.y} C ${s.x} ${s.y}, ${f.x} ${f.y}, ${t.x} ${t.y}`,midpoint:yT(e,s,f,t,.5)}}M();M();var Th=["parent","child","left","right","previous","next"];function H0(e,t,n,i){let a=t.neighbours(e,"parent").slice(0,n),o=t.neighbours(e,"child").slice(0,n),l=[...t.neighbours(e,"left"),...t.neighbours(e,"previous")].slice(0,n),r=[...t.neighbours(e,"right"),...t.neighbours(e,"next")].slice(0,n),u=new Set([t.identity(e),...[...a,...o,...l,...r].map(p=>t.identity(p.page))]),s=new Map([...a,...o,...l,...r].map(p=>[t.identity(p.page),p.page])),f=new Map;if(i)for(let p of s.values())for(let c of Th)for(let m of t.neighbours(p,c)){let w=t.identity(m.page);if(u.has(w))continue;let b=f.get(w);(!b||b.relationType!==1)&&f.set(w,{...m,role:"sibling"})}return{center:e,parents:a,children:o,leftFriends:l,rightFriends:r,siblings:t.sort([...f.values()]).slice(0,n)}}M();var oa=(e,t,n)=>Math.max(t,Math.min(n,e));function _0(e){return e.horizontalCompactingFactor??e.compactingFactor}function bT(e){let t=e.compactView?.82:1;return{horizontal:oa(1.35/_0(e),.38,1.35)*t,vertical:oa(1.35/e.compactingFactor,.38,1.35)*t,spacing:oa(e.minLinkLength/18,.72,1.7)}}function k0(e,t){return Math.max(1,Math.min(t==="parent"?3:7,Math.round(t==="parent"?e.parentColumns:e.childColumns)))}function Bs(e){return oa(e.siblingRelativeSize/100,.3,.85)}function P0(e,t){let n=oa(_0(e),.75,4);return n>=3?-t*.05*(n-3):48*(3-n)*oa(e.minLinkLength/18,.72,1.7)*(e.compactView?.82:1)}function _s(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2+24))}function Is(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2))}function On(e,t,n=!1){let i=[...e];for(let a of e){let o=t.mini(a,n);o&&i.push({...a,width:o.width,height:o.viewportHeight,y:a.y+a.height/2+o.topGap+o.viewportHeight/2})}return i}function U0(e,t,n,i,a,o,l){let r=e;if(!r.length)return r;let u=[];for(let c=0;c<r.length;c+=i){let m=r.slice(c,c+i);u.push({nodes:m,height:Math.max(...m.map(w=>w.height)),reserve:Math.max(0,...m.map(w=>l.reserve(w)))})}let s=t,f=u[0].height,p=u[0].reserve;return u.forEach((c,m)=>{let w;if(m===0){let h=Math.max(0,c.height-26)/2;w=n===-1?t-c.reserve-h:t+h}else n===1?w=s+f/2+p+o+c.height/2:w=s-f/2-o-c.reserve-c.height/2;let b=c.nodes.map(h=>l.width(h)),d=-(b.reduce((h,g)=>h+g,0)+a*Math.max(0,c.nodes.length-1))/2;c.nodes.forEach((h,g)=>{let S=b[g];h.x=d+S/2,h.y=w,d+=S+a}),s=w,f=c.height,p=c.reserve}),r}function Mh(e,t,n,i){let a=e;return I0(a,t,n,i),a}function I0(e,t,n,i){if(!e.length)return;let a=e.map(s=>i.verticalReserve(s));e[0].x=t,e[0].y=0;for(let s=1;s<e.length;s+=1){let f=e[s-1],p=e[s];p.x=t,p.y=f.y+f.height/2+a[s-1]+n+p.height/2}let o=e[0].y-e[0].height/2,l=e.length-1,r=e[l].y+e[l].height/2+a[l],u=-(o+r)/2;for(let s of e)s.y+=u}function Rh(e,t,n,i,a="center"){if(!e.length)return;let o=Math.min(...e.map(p=>p.y-p.height/2)),r=Math.max(...e.map(p=>p.y+p.height/2+i.verticalReserve(p)))-o,u=Math.max(1,n-t),f=(r>u?t:a==="midline"?oa(o,t,n-r):a==="bottom"?n-r:a==="top"?t:t+(u-r)/2)-o;for(let p of e)p.y+=f}function br(e,t,n,i,a,o,l){let s=a.centerX-a.width/2,f=a.centerX+a.width/2,p=a.fixedEdgeY,c=a.fixedEdgeY;t.length&&(s=Math.min(s,...t.map(b=>b.x-b.width/2-24)),f=Math.max(f,...t.map(b=>b.x+b.width/2+24)),p=Math.min(...t.map(b=>b.y-b.height/2)),c=Math.max(...t.map(b=>b.y+b.height/2)));let m=l!==void 0&&o!==void 0?Math.max(72,o-l):Math.max(72,n),w=l!==void 0&&o!==void 0?l:i==="top"?(t.length?c+16:a.fixedEdgeY)-m:t.length?p-16:a.fixedEdgeY;return{key:e,left:s,top:w,width:f-s,height:m,resizeEdge:i}}function vr(e,t,n,i,a,o){if(!t.length)return null;let l=24,r=16,u=Math.min(...t.map(g=>g.x-g.width/2)),s=Math.max(...t.map(g=>g.x+g.width/2)),f=Math.min(...t.map(g=>g.y-g.height/2)),p=Math.max(...t.map(g=>g.y+g.height/2)),c=f-r,m=p+r,w=m-c,b=o!==void 0&&a!==void 0?Math.max(72,a-o):a===void 0?Number.POSITIVE_INFINITY:Math.max(72,a-c),v=Math.min(w,Math.max(72,n),b);if(w<=v+.5)return null;let d=c,h=0;return o!==void 0&&a!==void 0?(d=o,h=Math.max(0,d-c)):a!==void 0?(d=a-v,h=Math.max(0,d-c)):(i==="bottom"?d=m-v:i==="center"&&(d=oa(-v/2,c,m-v)),h=Math.max(0,d-c)),{key:e,left:u-l,top:d,width:s-u+l*2,height:v,contentTop:c,contentHeight:w,initialScrollTop:h}}function B0(e,t,n,i=!1){let a=ke=>Math.max(0,...ke.filter(xi=>xi.editor).map(xi=>xi.height+72));[...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.siblings].some(ke=>ke.editor)&&(t={...t,parentMaxHeight:Math.max(t.parentMaxHeight,a(e.parents)),childMaxHeight:Math.max(t.childMaxHeight,a(e.children)),friendMaxHeight:Math.max(t.friendMaxHeight,a([...e.leftFriends,...e.rightFriends])),siblingMaxHeight:Math.max(t.siblingMaxHeight,a(e.siblings))});let o=e.center,{horizontal:l,vertical:r,spacing:u}=bT(t),s=50*l*u,f=36*r*u,p=66*r*u,c=18*r*u,m=26,w=-(o.height/2+m/2+p),b=Math.max(42,52*r*u),v=o.height/2+m/2+p+b,d=U0(e.parents,w,-1,k0(t,"parent"),s,f,n),h=U0(e.children,v,1,k0(t,"child"),s,f,n),g=o.width/2,S=g+205*l*u,E=Mh(e.leftFriends,-S,c,n),R=t.lateralArrangement==="left",x=Mh(e.rightFriends,R?-S:S,c,n),N=R?[...E,...x]:E;R&&I0(N,-S,c,n);let G=!R&&x.length>0,T=G?Math.max(...x.map(ke=>ke.x+ke.width/2)):g,I=G?285:205,H=G?190:120,k=Math.max(S+I*l*u,T+H*l*u),K=Mh(e.siblings,k,c,n),ne=h.length?Math.min(...h.map(ke=>ke.y-ke.height/2)):o.height/2+p+b+12,le=Math.max(30,36*r*u),W=Math.max(120,t.friendMaxHeight),re=Math.max(120,t.siblingMaxHeight),$=i?R?Math.min(W/2,ne-le):W/2:ne-le,C=$-W,U=C,z=$,q=C,ee=$;Rh(N,U,z,n,"midline"),R||Rh(x,q,ee,n,"midline");let ie=Math.max(58,72*r*u),B=t.alignSiblingsToFirstParent?d[0]:void 0,X=i?re/2:B?B.y+B.height/2:$-ie,ce=i?-re/2:X-re;Rh(K,ce,X,n,i?"midline":"center");let he=On(d,n,!0),yt=On(K,n,!0),Ee=d.length?_s(he,o.width/2+24):170,bt=Is(he,o.width/2),Ke=Math.max(_s(On(E,n,!0),115,-S),_s(On(x,n,!0),115,R?-S:S)),Ln=Math.max(Is(On(E,n,!0),0,-S),Is(On(x,n,!0),0,R?-S:S)),We=_s(yt,110,k),ln=Is(yt,0,k),Mt=R?Math.max(0,P0(t,Ee*2)):P0(t,Ee*2);d.length&&(S=Ee+Ke+Mt),S=Math.max(S,bt+Ln+4);for(let ke of E)ke.x=-S;for(let ke of x)ke.x=R?-S:S;(d.length||G)&&(k=G?S+Ke+We+Math.max(0,Mt):Ee+We+Mt),k=Math.max(k,bt+ln+4,G?S+Ln+ln+4:0);for(let ke of K)ke.x=k;let kt=On(d,n),Si=On(h,n),Wn=On(N,n),la=On(R?[]:x,n),Re=On(K,n),Be={},Rt=vr("parent",kt,t.parentMaxHeight,"bottom"),Ge=vr("child",Si,t.childMaxHeight,"top"),jt=vr("left",Wn,t.friendMaxHeight,"top",z,U),rn=vr("right",la,t.friendMaxHeight,"top",ee,q),$n=vr("sibling",Re,t.siblingMaxHeight,"top",X,ce);Rt&&(Rt.left=-Ee,Rt.width=Ee*2,Be.parent=Rt),Ge&&(Be.child=Ge),jt&&(Be.left=jt),rn&&(Be.right=rn),$n&&(Be.sibling=$n);let un={},ra=w+m/2+16,ua=v-m/2-16;un.parent=br("parent",kt,t.parentMaxHeight,"top",{centerX:0,width:Ee*2,fixedEdgeY:ra}),un.child=br("child",Si,t.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:ua}),un.left=br("left",Wn,t.friendMaxHeight,"top",{centerX:-S,width:Ke*2,fixedEdgeY:z},z,U),R||(un.right=br("right",la,t.friendMaxHeight,"top",{centerX:S,width:Ke*2,fixedEdgeY:ee},ee,q)),un.sibling=br("sibling",Re,t.siblingMaxHeight,"top",{centerX:k,width:We*2,fixedEdgeY:X},X,ce);let wn=[o,...d,...h,...E,...x,...K];return t.flipEastWest&&vT(wn,un,Be),{nodes:wn,zoneViewports:Be,zoneAreas:un}}function vT(e,t,n){for(let i of e)i.x=-i.x;for(let i of Object.values(t))i&&(i.left=-i.left-i.width);for(let i of Object.values(n))i&&(i.left=-i.left-i.width)}M();var G0={version:1,fields:{flipEastWest:{defaultValue:!1,validate:e=>typeof e=="boolean"}}};function Gs(e){return e?.status!=="unavailable"&&e?.values.flipEastWest===!0}function Vs(e){return{top:"parent",bottom:"child",left:e?"right":"left",right:e?"left":"right"}}function V0(e,t=!1){return e==="parent"?{source:"top",target:"bottom"}:e==="child"?{source:"bottom",target:"top"}:(e==="left"||e==="previous")!==t?{source:"left",target:"right"}:{source:"right",target:"left"}}var wT={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var ST={parent:{key:"parentMaxHeight",min:140,max:800},child:{key:"childMaxHeight",min:160,max:900},left:{key:"friendMaxHeight",min:140,max:800},right:{key:"friendMaxHeight",min:140,max:800},sibling:{key:"siblingMaxHeight",min:120,max:700}};function xT(e){if(!e||typeof e!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(a=>{let o=Reflect.get(e,a);return typeof o=="number"&&Number.isFinite(o)}))return!1;let n=Reflect.get(e,"horizontalCompactingFactor"),i=Reflect.get(e,"lateralArrangement");return typeof Reflect.get(e,"compactView")=="boolean"&&(n===void 0||typeof n=="number"&&Number.isFinite(n))&&(i===void 0||i==="left"||i==="split")}var Y0={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:G0,capabilities:{sections:!0,descendants:!0,editor:!0,compact:!1},defaultState:null,restoreState:()=>null,project(e){let t=e.read.node(e.attention);if(!t||!e.read.isCurrent())return null;let n=!1,i=new Map,a=(f,p)=>{let c=JSON.stringify([f.id,p]),m=i.get(c)??e.read.relations(f.id,p);return i.set(c,m),n||=m.truncated||m.coverage==="unavailable",m.items.map(w=>({page:w.node,role:w.role,relationType:w.relationType,value:w}))},o=H0(t,{identity:f=>f.id,neighbours:a,sort:f=>f.sort((p,c)=>e.read.compare(p.page,c.page))},e.maximum,!e.state||typeof e.state!="object"||Reflect.get(e.state,"renderSiblings")!==!1),l=Gs(e.configuration),r=[{id:"attention",nodeId:t.id,representation:"thought",...l?{ports:Vs(!0)}:{}}],u=[],s=(f,p)=>f.forEach((c,m)=>{let w=JSON.stringify([p,c.page.id,m]),b=V0(p,Gs(e.configuration));r.push({id:w,nodeId:c.page.id,role:p,areaId:p,representation:"thought",relation:c.value,groupingPartition:p,...l?{ports:Vs(!0)}:{}}),p!=="sibling"&&u.push({id:w,kind:"semantic",source:"attention",target:w,sourceNode:t.id,targetNode:c.page.id,sourcePort:b.source,targetPort:b.target,relation:c.value})});s(o.parents,"parent"),s(o.children,"child"),s(o.leftFriends,"left"),s(o.rightFriends,"right"),s(o.siblings,"sibling");for(let f of r.filter(p=>p.role&&p.role!=="sibling")){if(!f.nodeId)continue;let p=e.read.node(f.nodeId);if(!p)continue;let c=Th.flatMap(m=>a(p,m));for(let m of r.filter(w=>w.role==="sibling")){let w=c.find(v=>v.page.id===m.nodeId),b=w?V0(w.role,l):null;w&&b&&u.push({id:JSON.stringify([f.id,m.id]),kind:"semantic",source:f.id,target:m.id,sourceNode:f.nodeId,targetNode:w.page.id,sourcePort:b.source,targetPort:b.target,relation:w.value})}}return{attention:t.id,layoutRoot:t.id,entry:"attention",editor:"attention",frame:"attention",occurrences:r,edges:u,truncated:n||[o.parents,o.children,o.leftFriends,o.rightFriends,o.siblings].some(f=>f.length===e.maximum),coverage:e.read.coverage}},layout(e,t,n,i,a){if(!xT(n))throw new Error("Missing Classic geometry preferences");let o={...n,flipEastWest:n.flipEastWest??Gs(a?.configuration)},l=new Map(t.map(c=>[c.id,c])),r=e.occurrences.map(c=>{let m=l.get(c.id);if(!m)throw new Error("Missing occurrence measurement");return{...m,x:0,y:0,role:c.role??"center",areaId:c.areaId}}),u=r.find(c=>c.id===e.entry);if(!u)throw new Error("Missing Classic attention occurrence");let s=c=>r.filter(m=>m.areaId===c),f=B0({center:u,parents:s("parent"),children:s("child"),leftFriends:s("left"),rightFriends:s("right"),siblings:s("sibling")},o,{reserve:c=>c.expandedReserve,verticalReserve:c=>c.expandedReserve*(c.role==="sibling"?Bs(o):1),width:c=>c.expandedWidth,mini:(c,m)=>c[m?"envelope":"mini"]},i),p=Object.values(f.zoneAreas).map(c=>{let m=ST[c.key];return{id:c.key,labelKey:wT[c.key],bounds:{x:c.left,y:c.top,width:c.width,height:c.height},resizeEdge:c.resizeEdge,heightPreference:{key:m.key,minimum:m.min,maximum:m.max},...c.key==="sibling"?{}:{dropRole:c.key},...f.zoneViewports[c.key]?{viewport:{...f.zoneViewports[c.key],x:f.zoneViewports[c.key].left,y:f.zoneViewports[c.key].top}}:{}}});return{positions:new Map(f.nodes.map(c=>[c.id,{x:c.x,y:c.y,width:c.width,height:c.height}])),areas:p}}};M();var ET={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous",sibling:"sibling"};function j0(e,t,n){let i=n==="previous"?"left":n==="next"?"right":n;return t&&(i==="left"||i==="right")?t:Object.entries(e??{}).find(([,a])=>a===i)?.[0]}function q0(e,t){return JSON.stringify(e<t?[e,t]:[t,e])}function X0(e,t,n,i,a,o){let l=new Set(e.keys()),r=new Set;for(let[f,p]of t)r.add(q0(f,p));let u=0,s=0;for(let[f,p]of e){if(++u>16384)return!0;for(let c of n(p[0],l)){if(++u>16384||s>=4096)return!0;let m=i(c),w=e.get(m);if(!w||m===f)continue;let b=q0(f,m);if(r.has(b))continue;let v,d=1/0;for(let h of p)for(let g of w){if(++u>16384)return!0;let S=a(h,c.role),E=a(g,ET[c.role]);if(!S||!E)continue;let R=(h.x-g.x)**2+(h.y-g.y)**2;R<d&&(v={source:h,target:g,sourcePort:S,targetPort:E},d=R)}v&&(r.add(b),s++,o(v,c))}}return!1}M();M();M();function $o(e){let t=e.length===1?"root":JSON.stringify(e);return Ia(t)?t:null}function K0(e,t){let n=new Map;for(let i of(e.editors??[]).slice(0,1)){if(i.occurrenceId==="root"&&i.nodeId===t){n.set("root",[t]);continue}try{let a=JSON.parse(i.occurrenceId);if(!Array.isArray(a)||a.length<2||a.length>gt.depth+1||!a.every(Ia)||a[0]!==t||a[a.length-1]!==i.nodeId||$o(a.map(An))!==i.occurrenceId)continue;n.set(i.occurrenceId,a.map(An))}catch{}}return n}function Q0(e){let t=Es(e.configuration),n=na(e.state),i=e.layoutRoot;if(!t||n.version!==1||!i||!Number.isInteger(e.maximum)||e.maximum<1||e.read.node(i)?.id!==i||!e.read.isCurrent())return null;let a=sr(dv(n,i,Math.min(t.initialGenerations,t.maximumDepth)));if(!a)return null;let o=a,l=Math.min(t.maximumOccurrences,gt.occurrences,Math.max(1,e.maximum*8+1)),r=new Set(o.expanded),u=new Set(o.collapsed),s=K0(e,i),f=new Set,p=new Map,c=new Set;for(let x of s.values())for(let N=1;N<=x.length;N++){let G=$o(x.slice(0,N));if(G&&(f.add(G),N<x.length)){let T=p.get(G)??new Set;T.add(x[N]),p.set(G,T),N>1&&c.add(x[N-1])}}let m=new Set([...(e.retainedScopes??[]).slice(0,16),...c].filter(x=>x!==i)),w=new Set,b=new Set,v=[],d=[],h=[{id:"root",lineage:[i],depth:0,side:1}],g=!1,S=(x,N,G)=>{let I=(G?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).map(k=>e.read.relations(x,k,N)),H=new Map;for(let k of I)for(let K of k.items)H.has(K.node.id)||H.set(K.node.id,K);return{items:[...H.values()],truncated:I.some(k=>k.truncated),coverage:I.some(k=>k.coverage==="unavailable")?"unavailable":I.every(k=>k.coverage==="local")?"local":"cached"}},E=x=>{if(x===i||w.has(x))return!0;if(w.size>=gt.scopes)return!1;let N=[...m].filter(G=>!w.has(G)&&G!==x).length;return!m.has(x)&&w.size+N>=gt.scopes?!1:(w.add(x),!0)};for(;h.length&&v.length<l;){let x=h.shift(),N=x.lineage[x.lineage.length-1];if(b.has(x.id))continue;b.add(x.id);let G=e.read.node(N);if(!G||G.id!==N||!e.read.isCurrent())return null;let T=x.lineage.slice(0,-1).includes(N),I=p.has(x.id)?Math.max(t.maximumDepth,x.depth+1):t.maximumDepth,H=e.read.scope?.(N)??{coverage:"unavailable",prepared:!1,complete:!1,pending:!1},k=T?{items:[],truncated:!1,coverage:"cached"}:S(N,1,x.depth===0),K=!T&&x.depth<I&&!u.has(x.id)&&(r.has(x.id)||x.depth<o.initialGenerations),ne=!T&&x.depth<I&&!(H.complete&&k.coverage!=="unavailable"&&k.items.length===0&&!k.truncated),le=K&&ne&&E(N),W=le?S(N,Math.min(e.maximum,128),x.depth===0):k,re=T||!K?"ready":H.pending?"loading":W.coverage==="unavailable"?"unavailable":H.complete?"ready":H.prepared||W.items.length>0?"partial":"unavailable";(K&&ne&&!le||le&&W.truncated||!T&&x.depth>=I&&(W.items.length>0||!H.complete))&&(re="limited",g=!0);let $=[];if(le){let q=new Map(W.items.map(B=>[B.node.id,B]));for(let B of p.get(x.id)??[])if(!q.has(B)){let ce=(x.depth===0?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).flatMap(he=>e.read.relation?.(N,B,he)?.items??[]).find(he=>he.node.id===B);ce&&e.read.isCurrent()&&q.set(B,ce)}if(x.depth===0&&H.complete&&!W.truncated&&W.coverage!=="unavailable"){let B=new Set([...q.keys()].map(X=>$o([i,X])));o={...o,sides:Object.fromEntries(Object.entries(o.sides).filter(([X])=>B.has(X)))}}let ee=[...q.values()].map(B=>{let X=[...x.lineage,B.node.id],ce=$o(X);return ce?{id:ce,lineage:X,relation:B}:(g=!0,re="limited",null)}).filter(B=>B!==null);ee.sort((B,X)=>Number(f.has(X.id))-Number(f.has(B.id))||e.read.compare(B.relation.node,X.relation.node));let ie=l-v.length-1-h.length;for(let B of ee){let X=[...f].filter(ce=>ce!==x.id&&!b.has(ce)&&!h.some(he=>he.id===ce)&&!$.some(he=>he.id===ce)&&ce!==B.id).length;if(ie<=0||!f.has(B.id)&&ie<=X){g=!0,re="limited";continue}if(x.depth===0&&B.relation.role==="child"&&o.sides[B.id]===void 0){let ce=[...q.keys()].flatMap(Ee=>{let bt=$o([i,Ee]),Ke=bt?o.sides[bt]:void 0;return Ke===-1||Ke===1?[Ke]:[]}),he=ce.filter(Ee=>Ee===-1).length<ce.filter(Ee=>Ee===1).length?-1:1,yt=sr({...o,sides:{...o.sides,[B.id]:he}});if(!yt){g=!0,re="limited";continue}o=yt}$.push(B),ie--}$.sort((B,X)=>e.read.compare(B.relation.node,X.relation.node))}let C={parent:x.parent,depth:x.depth,side:x.side,expanded:le,canExpand:ne,reference:T,status:re},U=x.depth===0||x.side===-1?"left":"right";v.push({id:x.id,nodeId:N,areaId:x.areaId,representation:"thought",role:x.relation?.role,relation:x.relation,branch:C,ports:x.depth===0?{top:"parent",bottom:"child",left:"left"}:x.side===1?{left:"parent",bottom:"child",right:"left"}:{left:"left",bottom:"child",right:"parent"},peerPort:{side:U,count:new Set(W.items.filter(q=>["left","right","previous","next"].includes(q.role)).map(q=>q.node.id)).size,complete:H.complete&&W.coverage!=="unavailable"&&!W.truncated&&!T},...!le&&!T&&x.parent?{groupingPartition:JSON.stringify([x.parent,x.side])}:{}}),x.parent&&x.relation&&d.push({id:x.id,kind:"semantic",source:x.parent,target:x.id,sourceNode:x.lineage[x.lineage.length-2],targetNode:N,relation:x.relation,sourcePort:x.relation.role==="child"?"bottom":x.relation.role==="parent"?"top":x.side===1?"right":"left",targetPort:x.parent==="root"&&x.relation.role==="parent"?"bottom":x.side===1?"left":"right"});let z=0;for(let q of $){let ee=q.relation.role==="parent"&&t.parentColumns>1&&z++%t.parentColumns===0?-1:1,ie=x.depth?x.side:q.relation.role==="parent"?ee:q.relation.role!=="child"||t.arrangement==="left"?-1:t.arrangement==="right"?1:o.sides[q.id],B=x.depth?x.areaId:q.relation.role==="parent"?"parent":q.relation.role==="child"?ie===-1?"child-left":"child-right":"left";h.push({...q,parent:x.id,depth:x.depth+1,side:ie,areaId:B})}}if(!e.read.isCurrent())return null;g||=h.length>0;let R=JSON.stringify(o)===JSON.stringify(n)?void 0:o;return{attention:e.attention,layoutRoot:i,root:"root",entry:"root",frame:"root",occurrences:v,edges:d,truncated:g,coverage:e.read.coverage,preparation:{parents:[...w]},stateSuggestion:R}}M();M();function TT(e){if(e.length>2048)throw new Error("Invalid measured area size");let t=new Set,n=[];for(let i of e){if(typeof i.id!="string"||!i.id||t.has(i.id)||!Number.isFinite(i.width)||i.width<=0||!Number.isFinite(i.height)||i.height<=0)throw new Error("Invalid measured area item");let a=i.insets?.top??0,o=i.insets?.right??0,l=i.insets?.bottom??0,r=i.insets?.left??0;for(let u of[a,o,l,r])if(!Number.isFinite(u)||u<0||u>1e5)throw new Error("Invalid measured area inset");t.add(i.id),n.push({item:i,top:a,right:o,bottom:l,left:r,width:i.width+r+o,height:i.height+a+l})}return n}function MT(e,t){let n=Array(t).fill(0);for(let i=0;i<e.length;i++)n[i%t]=Math.max(n[i%t],e[i].width);return n}function Z0(e,t,n,i,a=24,o=42,l=16){if(!Number.isInteger(t)||t<1||t>32||e.length>2048||![n,i,a,o,l].every(v=>Number.isFinite(v)&&v>=0))throw new Error("Invalid area grid policy");if(!e.length)return{positions:new Map,width:0,height:0};let r=TT(e),u=Math.min(t,e.length),s=MT(r,u),f=Array(Math.ceil(e.length/u)).fill(0);for(let v=0;v<r.length;v++)f[Math.floor(v/u)]=Math.max(f[Math.floor(v/u)],r[v].height);let p=[],c=[],m=a,w=o;for(let v of s)p.push(m+v/2),m+=v+n;for(let v of f)c.push(w+v/2),w+=v+i;let b=new Map;for(let v=0;v<r.length;v++){let d=r[v];b.set(d.item.id,{x:p[v%u]+(d.left-d.right)/2,y:c[Math.floor(v/u)]+(d.top-d.bottom)/2,width:d.item.width,height:d.item.height})}return{positions:b,width:m-n+a,height:w-i+l}}function F0(e,t,n,i={}){let a=n.horizontalSpacing/n.horizontalDensity,o=n.verticalSpacing/n.verticalDensity,l=e.entry,r=e.occurrences.filter(C=>!C.section),u=e.occurrences.filter(C=>C.section),s=new Map(t.map(C=>[C.id,C])),f=(C,U)=>C?s.get(C)?.controlReserve?.[U]??0:0;if(r.length>gt.occurrences||new Set(r.map(C=>C.id)).size!==r.length)throw new Error("Invalid hierarchy identity");let p=new Map;for(let C of r){let U=s.get(C.id);if(!U||![U.width,U.height].every(ee=>Number.isFinite(ee)&&ee>0)||!C.branch)throw new Error("Invalid measured hierarchy");if(U.controlReserve&&![U.controlReserve.right,U.controlReserve.bottom].every(ee=>Number.isFinite(ee)&&ee>=0&&ee<=64))throw new Error("Invalid measured control reserve");if(C.id===l){if(C.branch.parent)throw new Error("Root cannot have a parent");continue}let z=C.branch.parent;if(!z||!s.has(z))throw new Error("Missing hierarchy parent");let q=p.get(z)??[];q.push(C),p.set(z,q)}let c=new Map,m=new Set,w=(C,U)=>{let z=c.get(C);if(z!==void 0)return z;if(U>gt.depth||m.has(C))throw new Error("Invalid hierarchy ancestry");m.add(C);let q=p.get(C)??[],ee=q.reduce((B,X)=>B+w(X.id,U+1),0)+Math.max(0,q.length-1)*o,ie=Math.max(s.get(C).height+f(C,"bottom"),ee);return m.delete(C),c.set(C,ie),ie};for(let C of r)w(C.id,0);let b=s.get(l);if(!b)throw new Error("Missing hierarchy root");let v=new Map([[l,{x:0,y:0,width:b.width,height:b.height}]]),d=(C,U,z,q)=>{let ee=C.reduce((B,X)=>B+c.get(X.id),0)+Math.max(0,C.length-1)*o,ie=U.y+f(q,"bottom")/2-ee/2;for(let B of C){let X=s.get(B.id),ce=c.get(B.id),he={width:X.width,height:X.height,x:U.x+z*(U.width/2+a+X.width/2+f(z===1?q:B.id,"right")),y:ie+ce/2-f(B.id,"bottom")/2};if(v.has(B.id))throw new Error("Repeated hierarchy parent");v.set(B.id,he),d(p.get(B.id)??[],he,z,B.id),ie+=ce+o}},h=p.get(l)??[],g=h.filter(C=>C.role==="parent"),S=h.filter(C=>C.role!=="parent"),E=C=>s.get(C).width+f(C,"right")+(p.get(C)?.length??0?a+Math.max(...p.get(C).map(U=>E(U.id))):0),R=g.filter(C=>C.branch.side===-1),x=g.filter(C=>C.branch.side===1),N=n.parentColumns,G=[];for(;R.length||x.length;)for(let C=0;C<N;C++)G.push(N>1&&C===0?R.shift():x.shift()??(N===1?R.shift():void 0));let T=Z0(G.map((C,U)=>C?{id:C.id,width:E(C.id),height:c.get(C.id)}:{id:`empty-parent-cell-${U}`,width:1,height:1}),n.parentColumns,a,o),I=u.map(C=>{let U=s.get(C.id);if(!U)throw new Error("Missing measured section");return U}),H=Math.max(b.width+f(l,"right")*2,T.width,...I.map(C=>C.width)),k=Math.max(140,Math.min(800,i.parentHeight??300)),K=Math.max(k,T.height),ne={x:-H/2,y:-b.height/2-o-K,width:H,height:K};if(!Number.isFinite(K))throw new Error("Invalid parent area height");for(let C of g){let U=T.positions.get(C.id),z=s.get(C.id),q=N===1?1:C.branch.side,ee={x:ne.x+(H-T.width)/2+U.x+q*(-U.width/2+z.width/2)-(q===-1?f(C.id,"right"):0),y:ne.y+K-T.height+U.y-f(C.id,"bottom")/2,width:z.width,height:z.height};v.set(C.id,ee),d(p.get(C.id)??[],ee,q,C.id)}let le={...v.get(l),width:H};for(let C of[-1,1]){let U=S.filter(z=>z.branch?.side===C);d([...U.filter(z=>z.role!=="child"),...U.filter(z=>z.role==="child")],le,C)}if(v.size!==r.length)throw new Error("Disconnected hierarchy");let W=b.height/2+f(l,"bottom")+Math.min(24,o);for(let C of I)v.set(C.id,{x:0,y:W+C.height/2,width:C.width,height:C.height}),W+=C.height+Math.min(24,o);let re=[{id:"parent",labelKey:"graph.zoneParents",bounds:{...ne,height:K},resizeEdge:"top",heightPreference:{key:"parentHeight",minimum:140,maximum:800,value:k},dropRole:"parent",viewport:{...ne,height:K,contentTop:ne.y,contentHeight:K,initialScrollTop:0,scrollable:!1},reflow:{columns:n.parentColumns,columnGap:a,rowGap:o,filterLayout:"keep"}}],$=Math.min(8,o/4,a/4);for(let[C,U]of[["child-left","child"],["child-right","child"],["left","left"]]){let z=r.filter(ie=>ie.areaId===C).map(ie=>{let B=v.get(ie.id),X=f(ie.id,"right"),ce=f(ie.id,"bottom");return{...B,x:B.x+X/2,y:B.y+ce/2,width:B.width+X,height:B.height+ce}});if(!z.length)continue;let q=Math.min(...z.map(ie=>ie.x-ie.width/2))-$,ee=Math.min(...z.map(ie=>ie.y-ie.height/2))-$;re.push({id:C,labelKey:U==="child"?"graph.zoneChildren":"graph.zoneFriendsChallengers",dropRole:U,bounds:{x:q,y:ee,width:Math.max(...z.map(ie=>ie.x+ie.width/2))+$-q,height:Math.max(...z.map(ie=>ie.y+ie.height/2))+$-ee}})}return{positions:v,areas:re}}M();function RT(e){if(!e.documentId||typeof e.path!="string"||!e.path||!e.revision||e.revision.length>256||e.rows.length>256||e.provenance.length>4096||e.visible.length>e.rows.length)return!1;let t=new Map(e.rows.map(n=>[n.id,n]));if(t.size!==e.rows.length||new Set(e.visible).size!==e.visible.length||e.visible.some(n=>!t.has(n)))return!1;for(let n of e.rows)if(!n.id||n.id.length>4096||typeof n.label!="string"||n.label.length>4096||!Number.isInteger(n.level)||n.level<1||n.level>6||!Number.isInteger(n.line)||n.line<1||!Number.isInteger(n.start)||!Number.isInteger(n.end)||n.start<0||n.end<n.start||n.parent!==null&&(!t.has(n.parent)||t.get(n.parent).level>=n.level)||new Set(n.children).size!==n.children.length||n.children.some(i=>t.get(i)?.parent!==n.id)||n.parent&&!t.get(n.parent).children.includes(n.id))return!1;return e.provenance.every(n=>(n.sectionId===null||t.has(n.sectionId))&&!!n.target&&["parent","child","left","right","previous","next","sibling"].includes(n.role))}function NT(e,t,n){let i=e.provenance.filter(s=>s.target===t&&s.role===n);if(!i.length||i.some(s=>s.sectionId===null))return null;let a=new Map(e.rows.map(s=>[s.id,s])),o=new Set(e.visible),l=s=>{let f=[];for(let p=0;s&&p<256;p++)o.has(s)&&f.push(s),s=a.get(s)?.parent??"";return f},r=i.map(s=>l(s.sectionId)),u=r[0].find(s=>r.every(f=>f.includes(s)));return u?{documentId:e.documentId,revision:e.revision,sectionId:u}:null}function J0(e,t,n){let i=e.occurrences.find(r=>r.id===(e.root??e.entry));if(!i?.nodeId||i.nodeId!==t.documentId||!RT(t)||!Number.isInteger(n)||n<e.occurrences.length||n>2048)throw new Error("Invalid central section projection");let a=new Set(t.visible),o=t.rows.filter(r=>a.has(r.id)),l=o.slice(0,n-e.occurrences.length).map(r=>({id:JSON.stringify(["section",r.id]),nodeId:t.documentId,representation:"thought",ports:{},section:{documentId:t.documentId,revision:t.revision,sectionId:r.id}}));return{...e,occurrences:[...e.occurrences,...l],truncated:e.truncated||l.length<o.length,edges:e.edges.map(r=>{if(r.kind!=="semantic"||r.source!==i.id)return r;let u=NT(t,r.targetNode,r.relation.role);return u?{...r,sourceSection:u}:r})}}var W0={id:"mindmap",version:1,labelKey:"view.mindmap",icon:"network",navigation:"rooted",navigationEntry:"attention",editorHosting:"occurrence",capabilities:{sections:!0,descendants:!1,editor:!0,compact:!1},sectionSource:"layout-root",defaultState:ah,hierarchy:{maximumScopes:gt.scopes,maximumDepth:gt.depth,primary:"center",controls:"measured",relations:"child-and-peer",reduce:Ms},configuration:xs,restoreState:na,project(e){let t=Q0(e);return t&&e.sections?.status==="available"?J0(t,e.sections.snapshot,Math.min(2048,e.maximum*8+1)):t},layout(e,t,n,i,a){let o=Es(a?.configuration);if(!o)throw new Error("Mind Map configuration unavailable");return F0(e,t,o,a?.areaHeights)}};var AT={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},Nh={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function $0(e){return e==="left"||e==="right"||e==="sibling"}function t1(e,t,n=!0,i="compass",a,o=!1,l){let{read:r}=e,u=e.manifest?.appearance,s=u?.flip??!1,f={...AT,...u?.geometry,flipEastWest:s};l!==void 0&&(f.childColumns=Math.min(f.childColumns,l)),e.manifest&&(f.siblingMaxHeight+=72);let p={baseFontSize:u?.typography?.baseFontSize??Nh.baseFontSize,wrapNodeLabels:u?.typography?.wrapNodeLabels??Nh.wrapNodeLabels,propertyFontSize:u?.typography?.propertyFontSize??Nh.propertyFontSize},c=Vs(s),m=i==="mindmap",w=m?W0:Y0,b=w.project({attention:t,read:r,maximum:u?.maximum??100,...m?{layoutRoot:t,state:a}:{state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:s}}}});if(!b)throw new Error("Publication attention is unavailable");let v=b.occurrences.map(T=>{let I=T.nodeId&&r.node(T.nodeId);if(!I)throw new Error("Publication occurrence is unavailable");let H=T.id===b.entry,k=T.role==="sibling",K=k?Bs(f):1,ne=e.published.get(I.id),le=ne?.roleStyles,W=T.relation?.relationType===2?le?.inferred:void 0,re=H?le?.center:k?le?.sibling:void 0,$={...ne?.style,...W,...re},C=re?.fontSize??W?.fontSize??ne?.style?.fontSize??(H?30:k?15:20),U=re?.gateRadius??W?.gateRadius??ne?.style?.gateRadius??5,z=fr(C*K,H,p.baseFontSize)*(k&&e.manifest?.7:1),q=yv(I.name,C,p,H,I.maxLabelLength);$.icon!=null&&(q.width+=H?22:17);let ee=bv(q,K,C*K,p);return{occurrence:T,node:I,center:H,fontSize:z,style:$,gateSize:mv({gateRadius:U*K}),measurement:{id:T.id,...ee,expandedWidth:ee.width,expandedReserve:0,mini:null,envelope:null,controlReserve:T.branch?.canExpand?{right:0,bottom:23}:void 0}}}),d=w.layout(b,v.map(T=>T.measurement),{...f,alignSiblingsToFirstParent:!!e.manifest},!1),h=[],g=!1;if(o){let T=new Map;for(let{node:H,occurrence:k,center:K}of v){if(!m&&K)continue;let ne=T.get(H.id)??[];ne.push({...d.positions.get(k.id),node:H.id,occurrence:k}),T.set(H.id,ne)}let I=b.edges.flatMap(H=>H.kind==="semantic"?[[H.sourceNode,H.targetNode]]:[]);g=X0(T,I,function*(H){for(let k of Js)yield*r.relations(H.node,k).items},H=>H.node.id,(H,k)=>j0(m?H.occurrence.ports:c,H.occurrence.peerPort?.side,k),({source:H,target:k,sourcePort:K,targetPort:ne},le)=>{h.push({id:JSON.stringify(["cross",H.occurrence.id,k.occurrence.id]),kind:"semantic",source:H.occurrence.id,target:k.occurrence.id,sourceNode:H.node,targetNode:k.node,sourcePort:K,targetPort:ne,relation:le})})}let S=[...b.edges,...h],E=new Map;if(m){let T=(I,H)=>{let k=E.get(I)??new Map;k.set(H,(k.get(H)??0)+1),E.set(I,k)};for(let I of S)T(I.source,I.sourcePort),T(I.target,I.targetPort)}let R=new Map;if(!m)for(let{id:T,viewport:I}of d.areas)I&&$0(T)&&R.set(T,I);let x=v.map(({occurrence:T,node:I,center:H,fontSize:k,gateSize:K,style:ne})=>{let le=T.areaId==="right"&&f.lateralArrangement==="left"?"left":T.areaId;return{id:T.id,node:I,center:H,fontSize:k,gateSize:K,style:ne,role:T.role??"center",bounds:d.positions.get(T.id),branch:T.branch,strip:$0(le)&&R.has(le)?le:void 0,gates:m?[...E.get(T.id)??[]].map(([W,re])=>({side:W,count:re})):Object.keys(c).map(W=>{let re=c[W],$=re==="left"?"previous":re==="right"?"next":null,C=r.relations(I.id,re).items,U=$?new Set([...C,...r.relations(I.id,$).items].map(z=>z.node.id)).size:C.length;return{side:W,count:U}})}}),N=new Map(x.map(T=>[T.id,T])),G=S.map((T,I)=>{let H=N.get(T.source),k=N.get(T.target),K=Eh(Us(H.bounds,T.sourcePort,H.gateSize),Us(k.bounds,T.targetPort,k.gateSize),T.sourcePort,T.targetPort,"bezier"),ne=T.kind==="semantic"?T.relation.direction:null,le=T.kind==="semantic"?e.linkStyle(T.sourceNode,T.targetNode,T.relation.role):void 0,W=T.kind==="semantic"?T.relation.definition??null:null;return{id:T.id,source:T.source,target:T.target,route:K,label:W,labelSize:le?.labelSize,labelColor:le?.labelColor,crossLink:I>=b.edges.length,sourcePort:T.sourcePort,targetPort:T.targetPort,stroke:le?.stroke,strokeWidth:le?.width,startHead:le?.startHead??(le?.arrowStart??(ne===2||ne===3)?"arrow":void 0),endHead:le?.endHead??(le?.arrowEnd??(ne===1||ne===3)?"arrow":void 0)}});return{cards:x,cardById:N,edges:G,strips:R,wrap:p.wrapNodeLabels,truncated:b.truncated||g,projection:b}}function Ys(e,t,n){if(!t.strip)return t.bounds;let i=e.strips.get(t.strip);return{...t.bounds,y:t.bounds.y+i.y-i.contentTop-(n[t.strip]??i.initialScrollTop)}}function e1(e,t,n,i){let a=Us(Ys(e,t,i),n,t.gateSize);if(!t.strip)return a;let{y:o,height:l}=e.strips.get(t.strip);return a.y>=o&&a.y<=o+l?a:null}function n1(e,t,n){let i=e.cardById.get(t.source),a=e.cardById.get(t.target);if(!i.strip&&!a.strip)return t.route;let o=e1(e,i,t.sourcePort,n),l=e1(e,a,t.targetPort,n);return o&&l?Eh(o,l,t.sourcePort,t.targetPort,"bezier"):null}M();M();function qs(e,t){if(!/^(?:\d+(?:\.\d*)?|\.\d+)%?$/.test(e))return null;let n=Number(e.replace(/%$/,"")),i=e.endsWith("%")?100:t;return n>=0&&n<=i?n/i*t:null}function js(e){if(typeof e!="string"||e.length>180)return null;let t=e.trim();if(t.toLowerCase()==="transparent")return{red:0,green:0,blue:0,alpha:0};if(/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t)){let f=t.slice(1);return f.length<=4&&(f=[...f].map(p=>p+p).join("")),{red:parseInt(f.slice(0,2),16),green:parseInt(f.slice(2,4),16),blue:parseInt(f.slice(4,6),16),alpha:f.length===8?parseInt(f.slice(6),16)/255:1}}let n=/^rgba?\(\s*([^()]*)\s*\)$/i.exec(t);if(!n)return null;let i=n[1].trim(),a=i.includes(","),o=a?i.split(",").map(f=>f.trim()):i.split(/\s*\/\s*|\s+/);if(o.length<3||o.length>4||a&&i.includes("/")||!a&&o.length===4&&!i.includes("/"))return null;let l=qs(o[0],255),r=qs(o[1],255),u=qs(o[2],255),s=o.length===4?qs(o[3],1):1;return l===null||r===null||u===null||s===null?null:{red:l,green:r,blue:u,alpha:s}}M();function Ch(e,t){let n=e.alpha+t.alpha*(1-e.alpha);if(n===0)return{red:0,green:0,blue:0,alpha:0};let i=(a,o)=>(a*e.alpha+o*t.alpha*(1-e.alpha))/n;return{red:i(e.red,t.red),green:i(e.green,t.green),blue:i(e.blue,t.blue),alpha:n}}function Ah(e){let t=Math.max(0,Math.min(1,e/255));return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function i1(e,t){if(t.alpha<1||![e.red,e.green,e.blue,e.alpha,t.red,t.green,t.blue,t.alpha].every(Number.isFinite))return null;let n=Ch(e,t),i=l=>.2126*Ah(l.red)+.7152*Ah(l.green)+.0722*Ah(l.blue),a=i(n),o=i(t);return(Math.max(a,o)+.05)/(Math.min(a,o)+.05)}M();var CT=new Map([...["background-primary","background-secondary","background-modifier-border","background-modifier-hover","text-normal","text-muted","text-faint","interactive-accent","interactive-normal","interactive-hover","text-on-accent","kplex-publication-panel","kplex-publication-link","kplex-publication-canvas","link-color","link-color-hover","link-external-color","code-background","code-normal","blockquote-border-color","blockquote-color","table-border-color","table-header-background","text-highlight-bg","color-red","color-green","color-orange","color-blue","color-cyan","color-purple"].map(e=>[e,"color"]),...["font-interface","font-text","font-monospace","inline-title-font"].map(e=>[e,"font"]),...["font-ui-medium","font-text-size","p-spacing","heading-spacing","inline-title-size","input-radius","button-radius","callout-radius"].map(e=>[e,"length"]),["line-height-normal","line-height"],["inline-title-weight","weight"],["inline-title-color","color"],...[1,2,3,4,5,6].flatMap(e=>[["h"+e+"-color","color"],["h"+e+"-size","length"],["h"+e+"-weight","weight"],["h"+e+"-font","font"],["h"+e+"-line-height","line-height"],["h"+e+"-style","font-style"]])]),OT=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),LT=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function zT(e){let t=e.split(",");if(!t.length||t.length>10)return;let n=[];for(let i of t){let a=i.trim(),o=/^(['"])(.*?)\1$/u.exec(a),l=o?.[2]??a;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(l)&&l!=="-apple-system"||LT.has(l.toLowerCase()))return;n.push(!o&&OT.has(l.toLowerCase())?l.toLowerCase():JSON.stringify(l))}return n.join(", ")}function a1(e){if(e==="0")return e;let t=/^(\d{1,3}(?:\.\d{1,4})?|\.\d{1,4})(px|rem|em)$/.exec(e);if(!t)return;let n=Number(t[1]),i=t[2];return n<=(i==="px"?160:8)?String(n)+i:void 0}function o1(e,t){let n=t.trim();if(!(!n||n.length>320))switch(CT.get(e)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return zT(n);case"length":return a1(n);case"line-height":return/^(?:[1-3](?:\.\d{1,4})?|0\.[5-9]\d{0,3}|4(?:\.0{1,4})?)$/.test(n)?String(Number(n)):a1(n);case"weight":return n==="normal"||n==="bold"||/^(?:[1-9]\d{0,2}|1000)$/.test(n)?n:void 0;case"font-style":return/^(?:normal|italic|oblique)$/.test(n)?n:void 0;default:return}}var Oh=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function l1(e){if(!e.length||e.length>16*1024)throw new Error("Unsupported publication theme");let t={},n=new Set,i=0;for(;i<e.length;){Oh.lastIndex=i;let a=Oh.exec(e);if(!a)throw new Error("Unsupported publication theme");i=Oh.lastIndex;let o=(a[1]??a[3]).split(";").map(u=>u.trim()).filter(Boolean),l=o.filter(u=>u.startsWith("color-scheme"));if(l.length){let u=/^color-scheme\s*:\s*(light|dark)$/.exec(l[0])?.[1];if(!u||l.length!==1||a[2]||n.has("author"))throw new Error("Unsupported publication mode");t.colorScheme=u}let r=l.length?"author":a[2]??"light";if(n.has(r))throw new Error("Duplicate publication theme mode");n.add(r);for(let u of o){if(u===l[0])continue;let s=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(u),f=s&&o1(s[1],s[2]);if(!s||f===void 0||f===null)throw new Error("Unsupported publication theme token");t["--kplex-published-"+r+"-"+s[1]]=f}}return t}function r1(e,t){let n=`--kplex-published-${t}-`,i=`--kplex-published-${t==="dark"?"light":"dark"}-`,a=e??{},o=js(a[n+"text-normal"]),l=js(a[n+"background-secondary"]??a[n+"background-primary"]),r={colorScheme:t};for(let[u,s]of Object.entries(a)){if(!u.startsWith(n)||typeof s!="string")continue;let f=u.slice(n.length);if(o&&(f==="interactive-normal"||f==="interactive-hover")&&s===a[i+f]){let p=js(s),c=p&&i1(o,l?Ch(p,l):p);if(c!==null&&c<3)continue}r["--kplex-published-author-"+f]=s}return r}var V=j(pe(),1),u1={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},Lh={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"},DT={left:L.friends,right:L.challengers,sibling:L.siblings},HT=[["system",L.systemTheme],["light",L.lightMode],["dark",L.darkMode]],s1=[["light",ha.light,"sun"],["dark",ha.dark,"moon"],["system",ha.auto,"sun-moon"]],kT=[["right",L.sidecarRight],["left",L.sidecarLeft],["bottom",L.sidecarBottom]],PT={right:"panel-right",left:"panel-left",bottom:"panel-bottom"},c1=600,f1={};function zh(e,t){let n=t.ownerDocument.defaultView?.Element;return!!(n&&e.target instanceof n&&e.target.closest(Ga))}function d1(e,t){return t?{x:(e.x+t.x)/2,y:(e.y+t.y)/2,distance:Math.max(1,Math.hypot(e.x-t.x,e.y-t.y))}:{...e,distance:1}}function h1({publication:e,markerPrefix:t,resources:n,browser:i}){let a=(0,J.useRef)(null),o=(0,J.useRef)(null),l=(0,J.useRef)(null),r=Wv(o,l),u=Pv(e,i,r.capture),s=u.attention.id,f={...Qs,crosslinks:e.manifest?.appearance?.showCrossLinks??Qs.crosslinks,...e.manifest?.canvasDefaults,...u.attention.canvas},{view:p,siblings:c,crosslinks:m,ontology:w,sidecar:b}=f,[v,d]=(0,J.useState)(),[h,g]=(0,J.useState)(null),S=(0,J.useRef)(null),[E,R]=(0,J.useState)(),[x,N]=(0,J.useState)(!0),G=x?f.dock:"bottom",T=(0,J.useMemo)(()=>t1(e,s,c,p,v,m,E),[e,s,c,p,v,m,E]),I=p==="mindmap"?L.mindMap:L.view,H=T.cards.find(y=>y.center),[k,K]=(0,J.useState)(),ne=k?.attention===s?k.offsets:f1,le=(0,J.useRef)(null),W=(0,J.useRef)(null),re=(0,J.useRef)({x:0,y:0,scale:1}),$=(0,J.useRef)(!1),C=(0,J.useRef)({points:new Map,origin:null,moved:!1}),U=(0,J.useRef)(!1),z=(0,J.useId)(),q=(0,J.useRef)(null),ee=(0,J.useRef)(null),[ie,B]=(0,J.useState)(0),[X,ce]=(0,J.useState)(null),[he,yt]=(0,J.useState)(null),[Ee,bt]=(0,J.useState)(null),[Ke,Ln]=(0,J.useState)(!1),We=(0,J.useRef)(()=>{}),ln=(0,J.useRef)(null),[Mt,kt]=(0,J.useState)(),[Si,Wn]=(0,J.useState)(!1),[la,Re]=(0,J.useState)("light"),Be=e.manifest?.colorMode,Rt=e.manifest?.pins,Ge=Mt?.colorScheme==="dark"?"dark":Mt?.colorScheme==="light"?"light":void 0,jt=Be==="both"?f.theme:Be??Ge??"system",rn=jt==="system"?la:jt,[,$n,un]=s1.find(([y])=>y===jt),ra=()=>u.changeCanvas({sidecar:!b}),ua=(0,J.useMemo)(()=>T.edges.flatMap(y=>{let O=n1(T,y,ne);return O?[{edge:y,route:O}]:[]}),[T,ne]),wn=new Set,ke=new Set;if(h)for(let{edge:y}of ua)(y.source===h.occurrence&&(!h.port||y.sourcePort===h.port)||y.target===h.occurrence&&(!h.port||y.targetPort===h.port))&&(wn.add(y.id),ke.add(y.source),ke.add(y.target));let xi=y=>y?" is-highlighted":wn.size?" is-dimmed":"";(0,J.useLayoutEffect)(()=>{let y=a.current,O=o.current,Y=y?.ownerDocument.defaultView;if(!y||!O||!Y)return;let Z=()=>{let Q=O.clientWidth;N(y.clientWidth>=L0),R(Q<360?1:Q<c1?2:Q<880?3:void 0)},ue=new Y.ResizeObserver(Z);return ue.observe(y),ue.observe(O),Z(),()=>ue.disconnect()},[]),(0,J.useLayoutEffect)(()=>{let y=o.current,O=y?.ownerDocument.defaultView;if(!y||!O)return;let Y=new Rs(O,!0,g);S.current=Y;let Z=hv(y,Y);return()=>{S.current=null,Z()}},[]),(0,J.useLayoutEffect)(()=>{S.current?.clear()},[T]),(0,J.useEffect)(()=>{let y=o.current?.ownerDocument.defaultView;if(!Ke||!y)return;let O=y.setTimeout(()=>Ln(!1),3500);return()=>y.clearTimeout(O)},[Ke]),We.current=y=>{if(y.defaultPrevented||y.isComposing||y.ctrlKey||y.metaKey)return;if(n&&y.key===ur.key&&!y.altKey&&!y.shiftKey){y.preventDefault(),y.repeat||B(Y=>Y+1);return}let O=y.target;!y.altKey||O?.isContentEditable||O?.closest?.("input,textarea,select")||(n&&y.shiftKey&&(y.code==="KeyS"||y.key.toLowerCase()==="s")?(y.preventDefault(),y.repeat||ra()):!y.shiftKey&&(y.key==="ArrowLeft"||y.key==="ArrowRight")&&(y.preventDefault(),y.repeat||u.move(y.key==="ArrowLeft"?-1:1)))},(0,J.useEffect)(()=>{if(!i)return;let y=O=>We.current(O);return i.addEventListener("keydown",y),()=>i.removeEventListener("keydown",y)},[i]),(0,J.useLayoutEffect)(()=>{let y=ln.current;y&&(y.scrollLeft=y.scrollWidth)},[u.visits]),(0,J.useEffect)(()=>{let y=o.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!y)return;let O=()=>Re(y.matches?"dark":"light");return O(),y.addEventListener("change",O),()=>y.removeEventListener("change",O)},[]),(0,J.useEffect)(()=>{let y=o.current?.ownerDocument.defaultView;if(!y||!n?.has(zr))return;let O=new y.AbortController,Y=O.signal;return n.text(zr,Y).then(Z=>{Y.aborted||kt(l1(Z))}).catch(()=>{Y.aborted||Wn(!0)}),()=>O.abort()},[n]);function sa(y){re.current=y,le.current&&(le.current.style.transform=`translate(${y.x}px, ${y.y}px) scale(${y.scale})`)}function Ya(){let y=o.current;if(!y)return;let O=1/0,Y=-1/0,Z=1/0,ue=-1/0,Q=(Pe,At,ei,ti)=>{O=Math.min(O,Pe),Y=Math.max(Y,Pe+ei),Z=Math.min(Z,At),ue=Math.max(ue,At+ti)};for(let{bounds:Pe,strip:At}of T.cards)At||Q(Pe.x-Pe.width/2,Pe.y-Pe.height/2,Pe.width,Pe.height);for(let{x:Pe,y:At,width:ei,height:ti}of T.strips.values())Q(Pe,At,ei,ti);if($.current=!1,y.clientWidth<c1){let Pe=W.current?W.current.offsetHeight+10:0,At=y.clientWidth-32,ei=y.clientHeight-32-Pe,ti=Y-O,ol=ue-Z,Ti=Math.max(.25,Math.min(1,At/ti,ei/ol)),Rr=ti*Ti<=At?(O+Y)/2:H.bounds.x,b1=ol*Ti<=ei?(Z+ue)/2:H.bounds.y;sa({x:-Rr*Ti,y:-b1*Ti-Pe/2,scale:Ti});return}let He=Math.max(H.bounds.x-O,Y-H.bounds.x),Nt=Math.max(H.bounds.y-Z,ue-H.bounds.y),Qe=Math.max(.25,Math.min(1,(y.clientWidth/2-22)/He,(y.clientHeight/2-22)/Nt));sa({x:-H.bounds.x*Qe,y:-H.bounds.y*Qe,scale:Qe})}function _(y,O,Y){r.cancel(),S.current?.clear();let{x:Z,y:ue,scale:Q}=re.current,He=Math.max(.25,Math.min(3,Q*Y));$.current=!0,sa({x:O.x-(y.x-Z)*He/Q,y:O.y-(y.y-ue)*He/Q,scale:He})}function ae(y){_({x:0,y:0},{x:0,y:0},y)}function Ve(y,O,Y){let Z=y.getBoundingClientRect();return{x:O-Z.left-Z.width/2,y:Y-Z.top-Z.height/2}}(0,J.useLayoutEffect)(()=>{let y=o.current;if(!y)return;Ya(),r.play(s,re.current.scale),U.current&&(y.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),U.current=!1);let O=ue=>{if(zh(ue,y))return;ue.preventDefault();let Q=Ve(y,ue.clientX,ue.clientY),He=ue.deltaY*(ue.deltaMode===1?16:ue.deltaMode===2?y.clientHeight:1);_(Q,Q,Math.exp(-Math.max(-200,Math.min(200,He))/350))},Y=y.ownerDocument.defaultView,Z=Y?new Y.ResizeObserver(()=>{$.current||Ya()}):null;return Z?.observe(y),y.addEventListener("wheel",O,{passive:!1}),()=>{Z?.disconnect(),y.removeEventListener("wheel",O)}},[e,s,p,c,v,E]);function sn(y,O){let Y=e.published.get(y)?.url?{sidecar:!0}:void 0;u.activate({id:y,canvas:Y})&&y!==s&&(U.current=O)}function Xt(){u.changeCanvas({sidecar:!1}),q.current?.focus()}function Ei(y){u.activate(y)}function ca(){let y=i?.location.href??(n&&new URL("index.html",n.siteURL).href);if(!y)throw new Error("Publication address unavailable");let O=new URL(y);return O.search="",O.hash="",O}function qa(y,O){yt(null),bt(null),Ln(!1),ce({id:y,anchor:O})}function zn(y,O){ce(null),bt(null),S.current?.clear(),yt({anchor:y,point:O})}function Pt(y,O,Y=!1){return(0,V.jsxs)("nav",{className:`kplex-publication-trail ${Y?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":O,children:[(0,V.jsx)("span",{children:O}),(0,V.jsx)("ol",{ref:Y?ln:void 0,children:y.map(Z=>{let ue=e.published.get(Z.id),Q=ue?.style,He=Q?.icon??ue?.trailIcon,Nt=He===void 0?void 0:e.manifest?.icons?.[He];return(0,V.jsx)("li",{children:(0,V.jsxs)("a",{href:Zo(ca(),{...Z,canvas:{...u.attention.canvas,...Z.canvas}}).href,"aria-current":Z.id===s?"location":void 0,style:{backgroundColor:Q?.fill,color:Q?.color,"--kplex-publication-trail-border":Q?.stroke},onClick:Qe=>{Qe.altKey||Qe.ctrlKey||Qe.metaKey||Qe.shiftKey||(Qe.preventDefault(),Ei(Z))},children:[Nt&&(0,V.jsx)(bh,{icon:Nt,size:12}),(0,V.jsx)("span",{children:e.nodes.get(Z.id)?.name})]})},Z.id)})})]})}function el(y){if(!y.altKey){if(y.target===y.currentTarget&&(y.key==="ContextMenu"||y.shiftKey&&y.key==="F10")){y.preventDefault();let{left:O,top:Y}=y.currentTarget.getBoundingClientRect();zn(y.currentTarget,{x:O+12,y:Y+12});return}if(!(y.target.matches?.(Ga)&&["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(y.key))){if(y.key==="Home"||y.key==="0")r.cancel(),Ya();else if(y.key==="+"||y.key==="=")ae(1.25);else if(y.key==="-")ae(.8);else if(Object.prototype.hasOwnProperty.call(u1,y.key)){let[O,Y]=u1[y.key],Z=Array.from(y.currentTarget.querySelectorAll("[data-publication-node]")),ue=Z.find(Pe=>Pe===y.target)?.dataset.publicationOccurrence,Q=Ys(T,ue?T.cardById.get(ue)??H:H,ne),He=-1,Nt=1/0;for(let[Pe,At]of Z.entries()){let ei=Ys(T,T.cardById.get(At.dataset.publicationOccurrence),ne),ti=ei.x-Q.x,ol=ei.y-Q.y,Ti=ti*O+ol*Y,Rr=Ti+2*Math.abs(ti*Y-ol*O);Ti>0&&Rr<Nt&&(He=Pe,Nt=Rr)}let Qe=Z[He];Qe?.focus({preventScroll:!Qe.closest(Ga)})}else return;y.preventDefault()}}}function wr(y){let O=y.currentTarget.ownerDocument.defaultView?.Element;if(!O||!(y.target instanceof O)||C.current.points.size)return;let Y=y.target.closest("[data-publication-occurrence]")?.getAttribute("data-publication-occurrence"),Z=y.target.closest("[data-kplex-gate]")?.getAttribute("data-kplex-gate")??void 0;Y?S.current?.enter({occurrence:Y,port:Z},y):S.current?.clear()}function Sr(y){if(y.button!==0||(he&&yt(null),X&&ce(null),zh(y,y.currentTarget)))return;let O=C.current;if(O.points.size>=2)return;let Y={...Ve(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};O.points.size===0&&(O.origin=Y,O.moved=!1),O.points.set(y.pointerId,Y)}function fa(y){let O=C.current;if(!O.points.has(y.pointerId))return;let[Y,Z]=O.points.values(),ue=d1(Y,Z),Q={...Ve(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};O.points.set(y.pointerId,Q);let[He,Nt]=O.points.values(),Qe=d1(He,Nt);if(!(!O.moved&&!Nt&&O.origin&&Math.hypot(Q.x-O.origin.x,Q.y-O.origin.y)<5)){if(O.moved)y.currentTarget.hasPointerCapture(y.pointerId)||y.currentTarget.setPointerCapture(y.pointerId);else{O.moved=!0;for(let Pe of O.points.keys())y.currentTarget.setPointerCapture(Pe)}_(ue,Qe,Qe.distance/ue.distance)}}function ja(y){C.current.points.delete(y.pointerId)}let tl=e.body(s),nl=()=>u.changeCanvas({siblings:!c}),xr=(0,V.jsx)(xt,{icon:"network",label:L.showSiblings,"data-publication-siblings-toggle":!0,title:c?L.hideSiblings:L.showSiblings,"aria-pressed":c,onClick:nl}),Er=(0,V.jsxs)(V.Fragment,{children:[p==="compass"&&xr,(0,V.jsx)(xt,{icon:"minus",label:L.zoomOut,onClick:()=>ae(.8)}),(0,V.jsx)(xt,{icon:"plus",label:L.zoomIn,onClick:()=>ae(1.25)}),(0,V.jsx)(xt,{icon:"maximize",label:L.fit,onClick:()=>{r.cancel(),Ya()}}),(0,V.jsx)(xt,{icon:"ellipsis",label:L.graphOptions,"aria-haspopup":"menu","aria-expanded":!!he,onClick:y=>zn(y.currentTarget)})]});function Tr(y,O){let Y=O?{...y.bounds,x:y.bounds.x-O.x,y:y.bounds.y-O.contentTop}:y.bounds,Z=e.manifest?.icons,ue=y.style?.icon!=null?Z?.[y.style.icon]:void 0;return(0,V.jsxs)(J.Fragment,{children:[(0,V.jsxs)(xv,{bounds:Y,semanticRole:y.role,className:xi(ke.has(y.id)).trim(),"data-publication-node":y.node.id,"data-publication-occurrence":y.id,"data-publication-center":y.center||void 0,role:"button",tabIndex:0,"aria-label":y.node.name,"aria-current":y.center||void 0,style:{fontSize:y.fontSize,backgroundColor:y.style?.fill,borderColor:y.style?.stroke,color:y.style?.color,"--kplex-gate-size":`${y.gateSize}px`,"--kplex-gate-fill":y.style?.gate},onClick:Q=>sn(y.node.id,Q.detail===0),onContextMenu:Q=>{n&&(Q.preventDefault(),qa(y.node.id,Q.currentTarget))},onKeyDown:Q=>{n&&(Q.key==="ContextMenu"||Q.shiftKey&&Q.key==="F10")?(Q.preventDefault(),qa(y.node.id,Q.currentTarget)):(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),sn(y.node.id,!0))},children:[(0,V.jsxs)(Tv,{wrap:T.wrap,children:[ue&&(0,V.jsx)(bh,{icon:ue,size:y.center?18:y.role==="sibling"?9:13,className:"kplex-publication-node-icon"}),(0,V.jsx)(Ev,{label:y.node.name,maximum:y.node.maxLabelLength,center:y.center})]}),y.gates.map(({side:Q,count:He})=>(0,V.jsx)(Mv,{side:Q,connected:He>0,count:He?String(He):null,highlighted:wn.size>0&&h?.occurrence===y.id&&h.port===Q,"aria-hidden":"true"},Q))]}),y.branch?.canExpand&&(0,V.jsx)("button",{type:"button",className:"kplex-publication-branch","aria-expanded":y.branch.expanded,"aria-label":`${y.branch.expanded?L.collapseBranch:L.expandBranch} · ${y.node.name}`,style:{left:Y.x+16,top:Y.y+Y.height/2+3},onClick:()=>d(Q=>Ms(Q,T.projection,{kind:"toggle",occurrenceId:y.id})??Q),children:y.branch.expanded?"−":"+"})]},`${y.id}:${y.node.id}`)}let il=(0,V.jsxs)("div",{ref:o,className:"kplex-publication-viewport",role:"group","aria-label":I,tabIndex:0,onKeyDown:el,onPointerOver:wr,onPointerDown:Sr,onPointerMove:fa,onPointerUp:ja,onPointerCancel:ja,onLostPointerCapture:ja,onContextMenu:y=>{y.defaultPrevented||(y.preventDefault(),zn(y.currentTarget,{x:y.clientX,y:y.clientY}))},onPointerLeave:y=>{S.current?.clear(),y.currentTarget.hasPointerCapture(y.pointerId)||ja(y)},onClickCapture:y=>{y.detail&&C.current.moved&&!zh(y,y.currentTarget)&&(y.stopPropagation(),C.current.moved=!1)},children:[(0,V.jsxs)("div",{className:"kplex-camera",ref:le,children:[(0,V.jsxs)("svg",{className:"kplex-links",width:"3200",height:"2400",viewBox:"-1600 -1200 3200 2400","aria-hidden":"true",children:[(0,V.jsx)(Av,{prefix:t}),ua.map(({edge:y,route:O})=>{let{id:Y,source:Z,target:ue,label:Q,stroke:He,strokeWidth:Nt,startHead:Qe,endHead:Pe}=y;return(0,V.jsxs)("g",{className:`kplex-edge${xi(wn.has(Y))}`,"data-publication-source":Z,"data-publication-target":ue,"data-publication-crosslink":y.crossLink||void 0,children:[(0,V.jsx)(Rv,{d:O.d,stroke:He??"var(--kplex-publication-link)",strokeWidth:Nt??1.2,markerStart:uh(Qe,t),markerEnd:uh(Pe,t)}),w&&(0,V.jsx)(Nv,{label:Q,midpoint:O.midpoint,fontSize:y.labelSize,color:y.labelColor??"var(--text-muted)",background:"var(--background-primary)"})]},Y)})]}),(0,V.jsx)("div",{className:"kplex-nodes",children:T.cards.map(y=>y.strip?null:Tr(y))}),[...T.strips].map(([y,O])=>(0,V.jsx)(Fv,{id:y,panel:O,start:ne[y]??O.initialScrollTop,label:y==="left"&&e.manifest?.appearance?.geometry?.lateralArrangement==="left"?L.lateral:DT[y],onScroll:Y=>K(Z=>{let ue=Z?.attention===s?Z.offsets:f1;return ue[y]===Y?Z:{attention:s,offsets:{...ue,[y]:Y}}}),children:T.cards.map(Y=>Y.strip===y?Tr(Y,O):null)},JSON.stringify([s,y])))]}),(0,V.jsx)("div",{className:"kplex-publication-exits",ref:l,"aria-hidden":"true"})]}),Mr=X?Ov(e,X.id):void 0,Xa=X&&{id:X.id,canvas:{...f,theme:jt}},al=Be==="both"?r1(Mt,rn):Be?{...Mt,colorScheme:rn}:Mt;return(0,V.jsxs)("main",{ref:a,className:`kplex-publication${n?" kplex-publication-production":""}`,style:al,onKeyDown:i?void 0:y=>We.current(y.nativeEvent),children:[(0,V.jsxs)("header",{className:"kplex-publication-header",children:[(0,V.jsxs)("div",{className:"kplex-publication-heading",children:[(0,V.jsx)(Vv,{}),(0,V.jsx)("h1",{children:e.title})]}),(0,V.jsxs)("div",{className:"kplex-publication-controls",children:[(0,V.jsx)(xt,{icon:"arrow-left",label:L.back,onClick:()=>u.move(-1),disabled:!u.canGoBack,"aria-keyshortcuts":Lh.back,title:L.backTooltip}),(0,V.jsx)(xt,{icon:"arrow-right",label:L.forward,onClick:()=>u.move(1),disabled:!u.canGoForward,"aria-keyshortcuts":Lh.forward,title:L.forwardTooltip}),n?(0,V.jsx)(xt,{ref:q,icon:PT[G],label:b?L.hideSidecar:L.showSidecar,"aria-expanded":b,"aria-controls":`sidecar-${z}`,"aria-keyshortcuts":Lh.sidecar,title:b?L.hideSidecarTooltip:L.showSidecarTooltip,onClick:ra}):Er,Be==="both"&&(0,V.jsx)(xt,{icon:un,label:ha.trigger($n),"aria-haspopup":"menu","aria-expanded":!!Ee,onClick:y=>{yt(null),ce(null),bt(Ee?null:y.currentTarget)}})]}),n&&(0,V.jsx)(c0,{publication:e,resources:n,page:ca,searchFocus:ie,onChoose:Ei}),n&&Rt?.length?Pt(Rt.map(y=>({id:An(y)})),L.pins):null]}),n?(0,V.jsx)(z0,{sidecarId:`sidecar-${z}`,sidecarOpen:b,dock:G,canDockLaterally:x,onDock:y=>u.changeCanvas({dock:y}),canvas:(0,V.jsxs)("div",{className:"kplex-publication-canvas",children:[il,(0,V.jsx)("div",{ref:W,className:"kplex-publication-controls kplex-publication-camera-actions",children:Er}),(0,V.jsxs)("div",{className:"kplex-publication-status","aria-live":"polite",children:[u.addressProblem&&(0,V.jsx)("p",{children:u.addressProblem==="ambiguous"?L.ambiguousAddress:L.nodeUnavailable}),T.truncated&&(0,V.jsx)("p",{children:L.sceneLimited}),Si&&(0,V.jsx)("p",{children:L.themeUnavailable}),Ke&&(0,V.jsx)("p",{children:L.addressCopied})]})]}),renderSidecar:(y,O)=>(0,V.jsx)(C0,{publication:e,resources:n,id:`sidecar-${z}`,contentScope:`${t}-document`,location:u.attention,colorMode:rn,onClose:Xt,onNavigate:Ei,dock:y,onSwitchDock:O})}):(0,V.jsxs)(V.Fragment,{children:[il,(0,V.jsxs)("section",{className:"kplex-publication-note","aria-labelledby":z,"aria-live":"polite",children:[(0,V.jsx)("h2",{id:z,children:H.node.name}),tl&&(0,V.jsx)("p",{children:tl})]})]}),n&&u.visits.length>1&&Pt(u.visits,L.history,!0),(0,V.jsx)(Kv,{dialog:ee}),Ee&&(0,V.jsx)(mr,{anchor:Ee,variant:"theme",onDismiss:()=>bt(null),choices:s1.map(([y,O,Y])=>({label:O,icon:Y,kind:"menuitemradio",checked:jt===y,select:()=>u.changeCanvas({theme:y})}))}),he&&(0,V.jsx)(mr,{anchor:he.anchor,point:he.point,onDismiss:()=>yt(null),choices:[{label:L.view,kind:"menuitemradio",checked:p==="compass",select:()=>u.changeCanvas({view:"compass"})},{label:L.mindMap,kind:"menuitemradio",checked:p==="mindmap",select:()=>u.changeCanvas({view:"mindmap"})},{label:L.crossLinks,kind:"menuitemcheckbox",checked:m,select:()=>u.changeCanvas({crosslinks:!m})},...p==="compass"?[{label:L.showSiblings,kind:"menuitemcheckbox",checked:c,select:nl}]:[],{label:L.linkOntology,kind:"menuitemcheckbox",checked:w,select:()=>u.changeCanvas({ontology:!w})},...n?[{label:L.sidecar,choices:[{label:L.sidecarHide,kind:"menuitemradio",checked:!b,select:()=>u.changeCanvas({sidecar:!1})},...kT.filter(([y])=>x||y==="bottom").map(([y,O])=>({label:O,kind:"menuitemradio",checked:b&&G===y,select:()=>u.changeCanvas(x?{dock:y,sidecar:!0}:{sidecar:!0})}))]}]:[],...Be==="both"?HT.map(([y,O])=>({label:O,kind:"menuitemradio",checked:jt===y,select:()=>u.changeCanvas({theme:y})})):[],...vh?[{label:L.licenses,kind:"menuitem",select:()=>ee.current?.showModal()}]:[]]}),n&&X&&Xa&&(0,V.jsx)(Bv,{anchor:X.anchor,address:Zo(ca(),Xa).href,shortAddress:Mr&&Zo(ca(),Xa,Mr).href,onDismiss:y=>{ce(null),y&&X.anchor.isConnected&&X.anchor.focus({preventScroll:!0})},onCopied:()=>Ln(!0)},X.id)]})}var g1=j(pe(),1),Dh=new WeakSet,UT=0;function p1(e,t,n){return _T(e,t,void 0,!0,n)}function _T(e,t,n,i=!1,a){let o=e.ownerDocument.defaultView,l=new URL(n??"./publication.json",e.ownerDocument.baseURI),r=w=>{let b=Lv(w);if(b.manifest&&(!o?.crypto.subtle||!a&&l.origin!==o.location.origin))throw new Error("Secure publication context unavailable");let v=b.manifest&&o?a?.(b.manifest)??Ps(o,l,b.manifest):void 0;return{publication:b,resources:v}},u=r(t);if(Dh.has(e))throw new Error("A publication is already mounted in this element");let s=`kplex-publication-${++UT}`,f=(0,m1.createRoot)(e,{identifierPrefix:s});Dh.add(e);let p=0,c=!1,m=({publication:w,resources:b})=>{i&&(e.ownerDocument.title=w.title),f.render((0,g1.jsx)(h1,{publication:w,markerPrefix:s,resources:b,browser:i&&b&&o?o:void 0},p++))};return m(u),{update(w){if(c)throw new Error("Publication mount has been disposed");m(r(w))},dispose(){if(!c){c=!0;try{f.unmount()}finally{Dh.delete(e)}}}}}var y1=document.querySelector("[data-kplex-demo]");y1&&IT(y1);function IT(e){let t=e.ownerDocument,n=t.defaultView;if(n)try{let i=e.hasAttribute("data-kplex-local-folder"),a=new Map;for(let u of Array.from(t.querySelectorAll('script[type="application/octet-stream"][data-kplex-resource]'))){let s=u.dataset.kplexResource;if(!Ka(s)&&s!=="publication.json"||a.has(s)||a.size>=4e4)throw new Error("Invalid offline publication resource");a.set(s,u)}let o=(u,s)=>{let f=a.get(u)?.textContent;if(f==null||f.length>Math.ceil(s/3)*4)throw new Error("Offline resource unavailable");let p=n.atob(f);if(p.length>s)throw new Error("Offline resource exceeds its declared size");let c=new Uint8Array(p.length);for(let m=0;m<p.length;m++)c[m]=p.charCodeAt(m);return c},l=JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(o("publication.json",Fs))),r=p1(e,l,u=>Ps(n,new URL(n.location.href),u,async(s,f,p)=>(p.throwIfAborted(),i?BT(t,s,f,p):o(s,f)),n.location.protocol==="file:"?ph:void 0));n.addEventListener("pagehide",function u(s){s.persisted||(n.removeEventListener("pagehide",u),r.dispose())})}catch{let i=t.createElement("p");i.className="kplex-publication-opening",i.setAttribute("role","alert"),i.textContent=L.loadFailed,e.replaceChildren(i)}}async function BT(e,t,n,i){let a=e.defaultView;if(!a)throw new Error("Offline publication window is unavailable");i.throwIfAborted();let o=e.createElement("div"),l=e.createElement("div"),r=e.createElement("span");o.hidden=!0;let u=l.attachShadow({mode:"closed"}),s=e.createElement("link");r.setAttribute("data-kplex-local-bytes",t),s.rel="stylesheet",s.href=new URL(Vh(t),a.location.href).href,u.append(r,s),o.append(l);let f=()=>new Promise((p,c)=>{let m=v=>{a.clearTimeout(b),i.removeEventListener("abort",w),s.onload=s.onerror=null,v?c(v):p()},w=()=>m(new Error("Offline resource load cancelled")),b=a.setTimeout(()=>m(new Error("Offline resource did not load")),3e4);i.addEventListener("abort",w,{once:!0}),s.onload=()=>m(),s.onerror=()=>m(new Error("Offline resource unavailable")),e.body.append(o)});try{await f(),i.throwIfAborted();let p=a.getComputedStyle(r),c=new Uint8Array(n);for(let m=0;m<n;m+=Dr){let w=Math.min(Dr,n-m),b=p.getPropertyValue(`--kplex-file-${m/Dr}`).trim();if(!b.startsWith('"')||!b.endsWith('"')||b.length!==Math.ceil(w/3)*4+2)throw new Error("Invalid offline resource data block");let v=a.atob(b.slice(1,-1));if(v.length!==w)throw new Error("Offline resource data block size mismatch");for(let d=0;d<w;d++)c[m+d]=v.charCodeAt(d)}return c}finally{o.remove()}}})();
|
|
777
|
+
`+i.stack}}var $s=Object.prototype.hasOwnProperty,nd=Fe.unstable_scheduleCallback,hs=Fe.unstable_cancelCallback,fS=Fe.unstable_shouldYield,dS=Fe.unstable_requestPaint,Ft=Fe.unstable_now,mS=Fe.unstable_getCurrentPriorityLevel,dg=Fe.unstable_ImmediatePriority,mg=Fe.unstable_UserBlockingPriority,Tu=Fe.unstable_NormalPriority,hS=Fe.unstable_LowPriority,hg=Fe.unstable_IdlePriority,pS=Fe.log,gS=Fe.unstable_setDisableYieldValue,Ko=null,$t=null;function _i(e){if(typeof pS=="function"&&gS(e),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(Ko,e)}catch{}}var Wt=Math.clz32?Math.clz32:vS,yS=Math.log,bS=Math.LN2;function vS(e){return e>>>=0,e===0?32:31-(yS(e)/bS|0)|0}var Pr=256,kr=262144,Vr=4194304;function ml(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fu(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var l=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var r=i&134217727;return r!==0?(i=r&~a,i!==0?l=ml(i):(o&=r,o!==0?l=ml(o):n||(n=r&~e,n!==0&&(l=ml(n))))):(r=i&~a,r!==0?l=ml(r):o!==0?l=ml(o):n||(n=i&~e,n!==0&&(l=ml(n)))),l===0?0:t!==0&&t!==l&&(t&a)===0&&(a=l&-l,n=t&-t,a>=n||a===32&&(n&4194048)!==0)?t:l}function Qo(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pg(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Wt(n),l=1<<i;t|=e[i],n&=~l}return t}function SS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gg(){var e=Vr;return Vr<<=1,(Vr&62914560)===0&&(Vr=4194304),e}function ps(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zo(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function xS(e,t,n,i,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=o&~n;0<n;){var f=31-Wt(n),p=1<<f;r[f]=0,u[f]=-1;var s=c[f];if(s!==null)for(c[f]=null,f=0;f<s.length;f++){var h=s[f];h!==null&&(h.lane&=-536870913)}n&=~p}i!==0&&yg(e,i,0),a!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function yg(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Wt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function bg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Wt(n),l=1<<i;l&t|e[i]&t&&(e[i]|=t),n&=~l}}function vg(e,t){var n=t&-t;return n=(n&42)!==0?1:id(n),(n&(e.suspendedLanes|t))!==0?0:n}function id(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ld(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Sg(){var e=ye.p;return e!==0?e:(e=window.event,e===void 0?32:t0(e.type))}function Th(e,t){var n=ye.p;try{return ye.p=e,t()}finally{ye.p=n}}var bi=Math.random().toString(36).slice(2),ut="__reactFiber$"+bi,Bt="__reactProps$"+bi,Da="__reactContainer$"+bi,Nh="__reactEvents$"+bi,wS="__reactListeners$"+bi,MS="__reactHandles$"+bi,Rh="__reactResources$"+bi,Io="__reactMarker$"+bi,Nu="__reactLoad$"+bi;function $u(e){delete e[ut],delete e[Bt],delete e[wS],delete e[MS]}function gl(e){var t;if(t=e[ut])return t;for(var n=e.parentNode;n;){if(t=n[Da]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jp(e);e!==null;){if(n=e[ut])return n;e=jp(e)}return t}e=n,n=e.parentNode}return null}function La(e){if(e=e[ut]||e[Da]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function mo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(R(33))}function ca(e){var t=e[Rh];return t||(t=e[Rh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Io]=!0}function xg(e){e[Nu]=void 0}var wg=new Set,Mg={};function Dl(e,t){Sa(e,t),Sa(e+"Capture",t)}function Sa(e,t){for(Mg[e]=t,e=0;e<t.length;e++)wg.add(t[e])}var ES=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ch={},Ah={};function TS(e){return $s.call(Ah,e)?!0:$s.call(Ch,e)?!1:ES.test(e)?Ah[e]=!0:(Ch[e]=!0,!1)}var pe=!1;function zh(){var e=pe;return pe=!1,e}function iu(e,t,n){if(TS(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Br(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function oi(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,i)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Eg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function NS(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,a=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ws(e){if(!e._valueTracker){var t=Eg(e)?"checked":"value";e._valueTracker=NS(e,t,""+e[t])}}function Tg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Eg(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}var RS=/[\n"\\]/g;function sn(e){return e.replace(RS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ef(e,t,n,i,l,a,o,r){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?o==="number"&&e.value==t?gs(e,Qt(e.value)):gs(e,Qt(t)):n!=null?gs(e,Qt(n)):i!=null&&e.removeAttribute("value"),l==null&&a!=null&&(e.defaultChecked=!!a),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Qt(r):e.removeAttribute("name")}function Ng(e,t,n,i,l,a,o,r){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null)){Ws(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}i=i??l,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=r?e.checked:!!i,e.defaultChecked=!!i,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Ws(e)}function gs(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function sa(e,t,n,i){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,i&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rg(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function Cg(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(R(92));if(fo(i)){if(1<i.length)throw Error(R(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Ws(e)}function xa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var CS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Oh(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||CS.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ag(e,t,n){if(t!=null&&typeof t!="object")throw Error(R(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",pe=!0);for(var l in t)i=t[l],t.hasOwnProperty(l)&&n[l]!==i&&(Oh(e,l,i),pe=!0)}else for(var a in t)t.hasOwnProperty(a)&&Oh(e,a,t[a])}function ad(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var AS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),zS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function lu(e){return zS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Yn(){}var tf=null;function od(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ea=null,fa=null;function Dh(e){var t=La(e);if(t&&(e=t.stateNode)){var n=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ef(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+sn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var l=i[Bt]||null;if(!l)throw Error(R(90));ef(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Tg(i)}break e;case"textarea":Rg(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&sa(e,!!n.multiple,t,!1)}}}var ys=!1;function zg(e,t,n){if(ys)return e(t,n);ys=!0;try{var i=e(t);return i}finally{if(ys=!1,(ea!==null||fa!==null)&&(dc(),ea&&(t=ea,e=fa,fa=ea=null,Dh(t),e)))for(t=0;t<e.length;t++)Dh(e[t])}}function zo(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Bt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var di=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nf=!1;if(di)try{Xl={},Object.defineProperty(Xl,"passive",{get:function(){nf=!0}}),window.addEventListener("test",Xl,Xl),window.removeEventListener("test",Xl,Xl)}catch{nf=!1}var Xl,Hi=null,rd=null,au=null;function Og(){if(au)return au;var e,t=rd,n=t.length,i,l="value"in Hi?Hi.value:Hi.textContent,a=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(i=1;i<=o&&t[n-i]===l[a-i];i++);return au=l.slice(e,1<i?1-i:void 0)}function ou(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Gr(){return!0}function Lh(){return!1}function zt(e){function t(n,i,l,a,o){this._reactName=n,this._targetInst=l,this.type=i,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(a):a[r]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Gr:Lh,this.isPropagationStopped=Lh,this}return Re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gr)},persist:function(){},isPersistent:Gr}),t}var tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wu=zt(tl),Jo=Re({},tl,{view:0,detail:0}),OS=zt(Jo),bs,vs,ao,ec=Re({},Jo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ud,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ao&&(ao&&e.type==="mousemove"?(bs=e.screenX-ao.screenX,vs=e.screenY-ao.screenY):vs=bs=0,ao=e),bs)},movementY:function(e){return"movementY"in e?e.movementY:vs}}),_h=zt(ec),DS=Re({},ec,{dataTransfer:0}),LS=zt(DS),_S=Re({},Jo,{relatedTarget:0}),Ss=zt(_S),HS=Re({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),US=zt(HS),PS=Re({},tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kS=zt(PS),VS=Re({},tl,{data:0}),Hh=zt(VS),BS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},GS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},YS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=YS[e])?!!t[e]:!1}function ud(){return qS}var jS=Re({},Jo,{key:function(e){if(e.key){var t=BS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ou(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?GS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ud,charCode:function(e){return e.type==="keypress"?ou(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ou(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),XS=zt(jS),KS=Re({},ec,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uh=zt(KS),QS=Re({},tl,{submitter:0}),ZS=zt(QS),IS=Re({},Jo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ud}),JS=zt(IS),FS=Re({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),$S=zt(FS),WS=Re({},ec,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ex=zt(WS),tx=Re({},tl,{newState:0,oldState:0,source:0}),nx=zt(tx),ix=[9,13,27,32],cd=di&&"CompositionEvent"in window,go=null;di&&"documentMode"in document&&(go=document.documentMode);var lx=di&&"TextEvent"in window&&!go,Dg=di&&(!cd||go&&8<go&&11>=go),Ph=" ",kh=!1;function Lg(e,t){switch(e){case"keyup":return ix.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _g(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ta=!1;function ax(e,t){switch(e){case"compositionend":return _g(t);case"keypress":return t.which!==32?null:(kh=!0,Ph);case"textInput":return e=t.data,e===Ph&&kh?null:e;default:return null}}function ox(e,t){if(ta)return e==="compositionend"||!cd&&Lg(e,t)?(e=Og(),au=rd=Hi=null,ta=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dg&&t.locale!=="ko"?null:t.data;default:return null}}var rx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rx[e.type]:t==="textarea"}function Hg(e,t,n,i){ea?fa?fa.push(i):fa=[i]:ea=i,t=Zu(t,"onChange"),0<t.length&&(n=new Wu("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var yo=null,Oo=null;function ux(e){zb(e,0)}function tc(e){var t=mo(e);if(Tg(t))return e}function Bh(e,t){if(e==="change")return t}var Ug=!1;di&&(di?(qr="oninput"in document,qr||(xs=document.createElement("div"),xs.setAttribute("oninput","return;"),qr=typeof xs.oninput=="function"),Yr=qr):Yr=!1,Ug=Yr&&(!document.documentMode||9<document.documentMode));var Yr,qr,xs;function Gh(){yo&&(yo.detachEvent("onpropertychange",Pg),Oo=yo=null)}function Pg(e){if(e.propertyName==="value"&&tc(Oo)){var t=[];Hg(t,Oo,e,od(e)),zg(ux,t)}}function cx(e,t,n){e==="focusin"?(Gh(),yo=t,Oo=n,yo.attachEvent("onpropertychange",Pg)):e==="focusout"&&Gh()}function sx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tc(Oo)}function fx(e,t){if(e==="click")return tc(t)}function dx(e,t){if(e==="input"||e==="change")return tc(t)}function mx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:mx;function Do(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var l=n[i];if(!$s.call(t,l)||!tn(e[l],t[l]))return!1}return!0}function lf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Yh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qh(e,t){var n=Yh(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yh(n)}}function kg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lf(e.document)}return t}function sd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var hx=di&&"documentMode"in document&&11>=document.documentMode,na=null,af=null,bo=null,of=!1;function jh(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;of||na==null||na!==lf(i)||(i=na,"selectionStart"in i&&sd(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),bo&&Do(bo,i)||(bo=i,i=Zu(af,"onSelect"),0<i.length&&(t=new Wu("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=na)))}function fl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ia={animationend:fl("Animation","AnimationEnd"),animationiteration:fl("Animation","AnimationIteration"),animationstart:fl("Animation","AnimationStart"),transitionrun:fl("Transition","TransitionRun"),transitionstart:fl("Transition","TransitionStart"),transitioncancel:fl("Transition","TransitionCancel"),transitionend:fl("Transition","TransitionEnd")},ws={},Bg={};di&&(Bg=document.createElement("div").style,"AnimationEvent"in window||(delete ia.animationend.animation,delete ia.animationiteration.animation,delete ia.animationstart.animation),"TransitionEvent"in window||delete ia.transitionend.transition);function Ll(e){if(ws[e])return ws[e];if(!ia[e])return e;var t=ia[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bg)return ws[e]=t[n];return e}var Gg=Ll("animationend"),Yg=Ll("animationiteration"),qg=Ll("animationstart"),px=Ll("transitionrun"),gx=Ll("transitionstart"),yx=Ll("transitioncancel"),jg=Ll("transitionend"),Xg=new Map,rf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");rf.push("scrollEnd");function Mn(e,t){Xg.set(e,t),Dl(t,[e])}var bx=0;function mi(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=wn.identifierPrefix;var n=bx++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Xh(e){if(e==null||typeof e=="string")return e;var t=null,n=ba;if(n!==null)for(var i=0;i<n.length;i++){var l=e[n[i]];if(l!=null){if(l==="none")return"none";t=t==null?l:t+(" "+l)}}return t??e.default}function vi(e,t){return e=Xh(e),t=Xh(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Ru=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},rn=[],la=0,fd=0;function nc(){for(var e=la,t=fd=la=0;t<e;){var n=rn[t];rn[t++]=null;var i=rn[t];rn[t++]=null;var l=rn[t];rn[t++]=null;var a=rn[t];if(rn[t++]=null,i!==null&&l!==null){var o=i.pending;o===null?l.next=l:(l.next=o.next,o.next=l),i.pending=l}a!==0&&Kg(n,l,a)}}function ic(e,t,n,i){rn[la++]=e,rn[la++]=t,rn[la++]=n,rn[la++]=i,fd|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function dd(e,t,n,i){return ic(e,t,n,i),Cu(e)}function _l(e,t){return ic(e,null,null,t),Cu(e)}function Kg(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var l=!1,a=e.return;a!==null;)a.childLanes|=n,i=a.alternate,i!==null&&(i.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(l=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,l&&t!==null&&(l=31-Wt(n),e=a.hiddenUpdates,i=e[l],i===null?e[l]=[t]:i.push(t),t.lane=n|536870912),a):null}function Cu(e){if(50<Co)throw Co=0,gu=null,Error(R(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var aa={};function vx(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,i){return new vx(e,t,n,i)}function md(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Qg(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ru(e,t,n,i,l,a){var o=0;if(i=e,typeof i=="function")md(i)&&(o=1);else if(typeof i=="string")o=Xw(e,n,Xn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case Qs:return e=Pt(31,n,t,l),e.elementType=Qs,e.lanes=a,e;case $l:return vl(n.children,l,a,t);case sg:o=8,l|=24;break;case js:return e=Pt(12,n,t,l|2),e.elementType=js,e.lanes=a,e;case Xs:return e=Pt(13,n,t,l),e.elementType=Xs,e.lanes=a,e;case Ks:return e=Pt(19,n,t,l),e.elementType=Ks,e.lanes=a,e;case oS:case Zs:return e=l|32,e=Pt(30,n,t,e),e.elementType=Zs,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Gn:o=10;break e;case fg:o=9;break e;case ed:o=11;break e;case td:o=14;break e;case Oi:o=16,i=null;break e}o=29,n=Error(R(130,e===null?"null":typeof e,"")),i=null}return t=Pt(o,n,t,l),t.elementType=e,t.type=i,t.lanes=a,t}function vl(e,t,n,i){return e=Pt(7,e,i,t),e.lanes=n,e}function Ms(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function Zg(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function Es(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kh=new WeakMap;function fn(e,t){if(typeof e=="object"&&e!==null){var n=Kh.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Eh(t)},Kh.set(e,t),t)}return{value:e,source:t,stack:Eh(t)}}var oa=[],ra=0,Au=null,Lo=0,un=[],cn=0,Ji=null,qn=1,jn="";function ui(e,t){oa[ra++]=Lo,oa[ra++]=Au,Au=e,Lo=t}function Ig(e,t,n){un[cn++]=qn,un[cn++]=jn,un[cn++]=Ji,Ji=e;var i=qn;e=jn;var l=32-Wt(i)-1;i&=~(1<<l),n+=1;var a=32-Wt(t)+l;if(30<a){var o=l-l%5;a=(i&(1<<o)-1).toString(32),i>>=o,l-=o,qn=1<<32-Wt(t)+l|n<<l|i,jn=a+e}else qn=1<<a|n<<l|i,jn=e}function lc(e){e.return!==null&&(ui(e,1),Ig(e,1,0))}function hd(e){for(;e===Au;)Au=oa[--ra],oa[ra]=null,Lo=oa[--ra],oa[ra]=null;for(;e===Ji;)Ji=un[--cn],un[cn]=null,jn=un[--cn],un[cn]=null,qn=un[--cn],un[cn]=null}function Jg(e,t){un[cn++]=qn,un[cn++]=jn,un[cn++]=Ji,qn=t.id,jn=t.overflow,Ji=e}var ot=null,ze=null,oe=!1,Gi=null,dn=!1,uf=Error(R(519));function Fi(e){var t=Error(R(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _o(fn(t,e)),uf}function Qh(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ut]=e,t[Bt]=i,n){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(n=0;n<ko.length;n++)ce(ko[n],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),Ng(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),Cg(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Db(t.textContent,n)?(i.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),i.onScroll!=null&&ce("scroll",t),i.onScrollEnd!=null&&ce("scrollend",t),i.onClick!=null&&(t.onclick=Yn),t=!0):t=!1,t||Fi(e,!0)}function zu(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:dn=!1;return;case 27:case 3:dn=!0;return;default:ot=ot.return}}function Kl(e){if(e!==ot)return!1;if(!oe)return zu(e),oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Kf(e.type,e.memoizedProps)),n=!n),n&&ze&&Fi(e),zu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));ze=qp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));ze=qp(e)}else t===27?(t=ze,nl(e.type)?(e=Jf,Jf=null,ze=e):ze=t):ze=ot?mn(e.stateNode.nextSibling):null;return!0}function Ml(){ze=ot=null,oe=!1}function Ts(){var e=Gi;return e!==null&&(Ht===null?Ht=e:Ht.push.apply(Ht,e),Gi=null),e}function _o(e){Gi===null?Gi=[e]:Gi.push(e)}var cf=Zn(null),Hl=null,ci=null;function Ui(e,t,n){Oe(cf,t._currentValue),t._currentValue=n}function fi(e){e._currentValue=cf.current,st(cf)}function uu(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function sf(e,t,n,i){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var a=l.dependencies;if(a!==null){var o=l.child;a=a.firstContext;e:for(;a!==null;){var r=a;a=l;for(var u=0;u<t.length;u++)if(r.context===t[u]){a.lanes|=n,r=a.alternate,r!==null&&(r.lanes|=n),uu(a.return,n,e),i||(o=null);break e}a=r.next}}else if(l.tag===18){if(o=l.return,o===null)throw Error(R(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),uu(o,n,e),o=null}else l.tag===13&&l.memoizedState!==null&&l.memoizedState.dehydrated===null?(l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),uu(l.return,n,e),o=l.child,o=o!==null?o.sibling:null):o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===e){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}}function El(e,t,n,i){e=null;for(var l=t,a=!1;l!==null;){if(!a){if((l.flags&524288)!==0)a=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var o=l.alternate;if(o===null)throw Error(R(387));if(o=o.memoizedProps,o!==null){var r=l.type;tn(l.pendingProps.value,o.value)||(e!==null?e.push(r):e=[r])}}else if(l===wu.current){if(o=l.alternate,o===null)throw Error(R(387));o.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Aa):e=[Aa])}l=l.return}return e!==null&&sf(t,e,n,i),t.flags|=262144,e!==null}function Ou(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Tl(e){Hl=e,ci=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Fg(Hl,e)}function jr(e,t){return Hl===null&&Tl(e),Fg(e,t)}function Fg(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ci===null){if(e===null)throw Error(R(308));ci=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ci=ci.next=t;return n}var Sx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},xx=Fe.unstable_scheduleCallback,wx=Fe.unstable_NormalPriority,Qe={$$typeof:Gn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pd(){return{controller:new Sx,data:new Map,refCount:0}}function Fo(e){e.refCount--,e.refCount===0&&xx(wx,function(){e.controller.abort()})}function Zh(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];n.indexOf(i)===-1&&n.push(i)}}}var ho=null;function Mx(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var vo=null,ff=0,Nl=0,da=null;function Ex(e,t){if(vo===null){var n=vo=[];ff=0,Nl=qd(),da={status:"pending",value:void 0,then:function(i){n.push(i)}}}return ff++,t.then(Ih,Ih),t}function Ih(){if(--ff===0&&(ho=null,vo!==null)){da!==null&&(da.status="fulfilled");var e=vo;vo=null,Nl=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Tx(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(i.status="rejected",i.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),i}var Jh=Q.S;Q.S=function(e,t){if(pb=Ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ex(e,t),ho!==null)for(var n=Na;n!==null;)Zh(n,ho),n=n.next;if(n=e.types,n!==null){for(var i=Na;i!==null;)Zh(i,n),i=i.next;if(Nl!==0){i=ho,i===null&&(i=ho=[]);for(var l=0;l<n.length;l++){var a=n[l];i.indexOf(a)===-1&&i.push(a)}}}Jh!==null&&Jh(e,t)};var Sl=Zn(null);function gd(){var e=Sl.current;return e!==null?e:Ne.pooledCache}function cu(e,t){t===null?Oe(Sl,Sl.current):Oe(Sl,t.pool)}function $g(){var e=gd();return e===null?null:{parent:Qe._currentValue,pool:e}}var _a=Error(R(460)),yd=Error(R(474)),ac=Error(R(542)),Du={then:function(){}};function Fh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wg(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Yn,Yn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wh(e),e===void 0&&!("reason"in t)?Error(R(600)):e;default:if(typeof t.status=="string")t.then(Yn,Yn);else{if(e=Ne,e!==null&&100<e.shellSuspendCounter)throw Error(R(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=i}},function(i){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wh(e),e}throw xl=t,_a}}function hl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(xl=n,_a):n}}var xl=null;function $h(){if(xl===null)throw Error(R(459));var e=xl;return xl=null,e}function Wh(e){if(e===_a||e===ac)throw Error(R(483))}var ma=null,Ho=0;function Xr(e){var t=Ho;return Ho+=1,ma===null&&(ma=[]),Wg(ma,e,t)}function Ci(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Kr(e,t){throw t.$$typeof===aS?Error(R(525)):(e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ey(e){function t(d,m){if(e){var g=d.deletions;g===null?(d.deletions=[m],d.flags|=16):g.push(m)}}function n(d,m){if(!e)return null;for(;m!==null;)t(d,m),m=m.sibling;return null}function i(d){for(var m=new Map;d!==null;)d.key===null?m.set(d.index,d):m.set(d.key,d),d=d.sibling;return m}function l(d,m){return d=si(d,m),d.index=0,d.sibling=null,d}function a(d,m,g){return d.index=g,e?(g=d.alternate,g!==null?(g=g.index,g<m?(d.flags|=2,m):g):(d.flags|=134217730,m)):(d.flags|=1048576,m)}function o(d){return e&&d.alternate===null&&(d.flags|=134217730),d}function r(d,m,g,x){return m===null||m.tag!==6?(m=Ms(g,d.mode,x),m.return=d,m):(m=l(m,g),m.return=d,m)}function u(d,m,g,x){var M=g.type;return M===$l?(d=f(d,m,g.props.children,x,g.key),Ci(d,g),d):m!==null&&(m.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Oi&&hl(M)===m.type)?(m=l(m,g.props),Ci(m,g),m.return=d,m):(m=ru(g.type,g.key,g.props,null,d.mode,x),Ci(m,g),m.return=d,m)}function c(d,m,g,x){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=Es(g,d.mode,x),m.return=d,m):(m=l(m,g.children||[]),m.return=d,m)}function f(d,m,g,x,M){return m===null||m.tag!==7?(m=vl(g,d.mode,x,M),m.return=d,m):(m=l(m,g),m.return=d,m)}function p(d,m,g){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Ms(""+m,d.mode,g),m.return=d,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ur:return g=ru(m.type,m.key,m.props,null,d.mode,g),Ci(g,m),g.return=d,g;case so:return m=Es(m,d.mode,g),m.return=d,m;case Oi:return m=hl(m),p(d,m,g)}if(fo(m)||lo(m))return m=vl(m,d.mode,g,null),m.return=d,m;if(typeof m.then=="function")return p(d,Xr(m),g);if(m.$$typeof===Gn)return p(d,jr(d,m),g);Kr(d,m)}return null}function s(d,m,g,x){var M=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return M!==null?null:r(d,m,""+g,x);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ur:return g.key===M?u(d,m,g,x):null;case so:return g.key===M?c(d,m,g,x):null;case Oi:return g=hl(g),s(d,m,g,x)}if(fo(g)||lo(g))return M!==null?null:f(d,m,g,x,null);if(typeof g.then=="function")return s(d,m,Xr(g),x);if(g.$$typeof===Gn)return s(d,m,jr(d,g),x);Kr(d,g)}return null}function h(d,m,g,x,M){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return d=d.get(g)||null,r(m,d,""+x,M);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ur:return d=d.get(x.key===null?g:x.key)||null,u(m,d,x,M);case so:return d=d.get(x.key===null?g:x.key)||null,c(m,d,x,M);case Oi:return x=hl(x),h(d,m,g,x,M)}if(fo(x)||lo(x))return d=d.get(g)||null,f(m,d,x,M,null);if(typeof x.then=="function")return h(d,m,g,Xr(x),M);if(x.$$typeof===Gn)return h(d,m,g,jr(m,x),M);Kr(m,x)}return null}function S(d,m,g,x){for(var M=null,T=null,w=m,N=m=0,V=null;w!==null&&N<g.length;N++){w.index>N?(V=w,w=null):V=w.sibling;var E=s(d,w,g[N],x);if(E===null){w===null&&(w=V);break}e&&w&&E.alternate===null&&t(d,w),m=a(E,m,N),T===null?M=E:T.sibling=E,T=E,w=V}if(N===g.length)return n(d,w),oe&&ui(d,N),M;if(w===null){for(;N<g.length;N++)w=p(d,g[N],x),w!==null&&(m=a(w,m,N),T===null?M=w:T.sibling=w,T=w);return oe&&ui(d,N),M}for(w=i(w);N<g.length;N++)V=h(w,d,N,g[N],x),V!==null&&(e&&(E=V.alternate,E!==null&&w.delete(E.key===null?N:E.key)),m=a(V,m,N),T===null?M=V:T.sibling=V,T=V);return e&&w.forEach(function(k){return t(d,k)}),oe&&ui(d,N),M}function b(d,m,g,x){if(g==null)throw Error(R(151));for(var M=null,T=null,w=m,N=m=0,V=null,E=g.next();w!==null&&!E.done;N++,E=g.next()){w.index>N?(V=w,w=null):V=w.sibling;var k=s(d,w,E.value,x);if(k===null){w===null&&(w=V);break}e&&w&&k.alternate===null&&t(d,w),m=a(k,m,N),T===null?M=k:T.sibling=k,T=k,w=V}if(E.done)return n(d,w),oe&&ui(d,N),M;if(w===null){for(;!E.done;N++,E=g.next())E=p(d,E.value,x),E!==null&&(m=a(E,m,N),T===null?M=E:T.sibling=E,T=E);return oe&&ui(d,N),M}for(w=i(w);!E.done;N++,E=g.next())E=h(w,d,N,E.value,x),E!==null&&(e&&(V=E.alternate,V!==null&&w.delete(V.key===null?N:V.key)),m=a(E,m,N),T===null?M=E:T.sibling=E,T=E);return e&&w.forEach(function(L){return t(d,L)}),oe&&ui(d,N),M}function v(d,m,g,x){if(typeof g=="object"&&g!==null&&g.type===$l&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ur:e:{for(var M=g.key;m!==null;){if(m.key===M){if(M=g.type,M===$l){if(m.tag===7){n(d,m.sibling),x=l(m,g.props.children),Ci(x,g),x.return=d,d=x;break e}}else if(m.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Oi&&hl(M)===m.type){n(d,m.sibling),x=l(m,g.props),Ci(x,g),x.return=d,d=x;break e}n(d,m);break}else t(d,m);m=m.sibling}g.type===$l?(x=vl(g.props.children,d.mode,x,g.key),Ci(x,g),x.return=d,d=x):(x=ru(g.type,g.key,g.props,null,d.mode,x),Ci(x,g),x.return=d,d=x)}return o(d);case so:e:{for(M=g.key;m!==null;){if(m.key===M)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(d,m.sibling),x=l(m,g.children||[]),x.return=d,d=x;break e}else{n(d,m);break}else t(d,m);m=m.sibling}x=Es(g,d.mode,x),x.return=d,d=x}return o(d);case Oi:return g=hl(g),v(d,m,g,x)}if(fo(g))return S(d,m,g,x);if(lo(g)){if(M=lo(g),typeof M!="function")throw Error(R(150));return g=M.call(g),b(d,m,g,x)}if(typeof g.then=="function")return v(d,m,Xr(g),x);if(g.$$typeof===Gn)return v(d,m,jr(d,g),x);Kr(d,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,m!==null&&m.tag===6?(n(d,m.sibling),x=l(m,g),x.return=d,d=x):(n(d,m),x=Ms(g,d.mode,x),x.return=d,d=x),o(d)):n(d,m)}return function(d,m,g,x){try{Ho=0;var M=v(d,m,g,x);return ma=null,M}catch(w){if(w===_a||w===ac)throw w;var T=Pt(29,w,null,d.mode);return T.lanes=x,T.return=d,T}finally{}}}var Rl=ey(!0),ty=ey(!1),Di=!1;function bd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function df(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Yi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ge&2)!==0){var l=i.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),i.pending=t,t=Cu(e),Kg(e,null,n),t}return ic(e,i,t,n),Cu(e)}function So(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,bg(e,n)}}function Ns(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var l=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?l=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?l=a=t:a=a.next=t}else l=a=t;n={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var mf=!1;function xo(){if(mf){var e=da;if(e!==null)throw e}}function wo(e,t,n,i){mf=!1;var l=e.updateQueue;Di=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,r=l.shared.pending;if(r!==null){l.shared.pending=null;var u=r,c=u.next;u.next=null,o===null?a=c:o.next=c,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,r=f.lastBaseUpdate,r!==o&&(r===null?f.firstBaseUpdate=c:r.next=c,f.lastBaseUpdate=u))}if(a!==null){var p=l.baseState;o=0,f=c=u=null,r=a;do{var s=r.lane&-536870913,h=s!==r.lane;if(h?(de&s)===s:(i&s)===s){s!==0&&s===Nl&&(mf=!0),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var S=e,b=r;s=t;var v=n;switch(b.tag){case 1:if(S=b.payload,typeof S=="function"){p=S.call(v,p,s);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=b.payload,s=typeof S=="function"?S.call(v,p,s):S,s==null)break e;p=Re({},p,s);break e;case 2:Di=!0}}s=r.callback,s!==null&&(e.flags|=64,h&&(e.flags|=8192),h=l.callbacks,h===null?l.callbacks=[s]:h.push(s))}else h={lane:s,tag:r.tag,payload:r.payload,callback:r.callback,next:null},f===null?(c=f=h,u=p):f=f.next=h,o|=s;if(r=r.next,r===null){if(r=l.shared.pending,r===null)break;h=r,r=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);f===null&&(u=p),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=f,a===null&&(l.shared.lanes=0),el|=o,e.lanes=o,e.memoizedState=p}}function ny(e,t){if(typeof e!="function")throw Error(R(191,e));e.call(t)}function iy(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ny(n[e],t)}var $i=Zn(null),Lu=Zn(0);function ep(e,t){e=yi,Oe(Lu,e),Oe($i,t),yi=e|t.baseLanes}function hf(){Oe(Lu,yi),Oe($i,$i.current)}function vd(){yi=Lu.current,st($i),st(Lu)}var mt=Zn(null),bt=null;function ji(e){var t=e.alternate;Oe(ft,ft.current&1),Oe(mt,e),bt===null&&(t===null||$i.current!==null||t.memoizedState!==null)&&(bt=e)}function pf(e){Oe(ft,ft.current),Oe(mt,e),bt===null&&(bt=e)}function ly(e){e.tag===22?(Oe(ft,ft.current),Oe(mt,e),bt===null&&(bt=e)):Xi()}function Xi(){Oe(ft,ft.current),Oe(mt,mt.current)}function Zt(e){st(mt),bt===e&&(bt=null),st(ft)}var ft=Zn(0);function Uo(e,t){Oe(mt,mt.current),Oe(ft,t)}function Sd(e){st(ft),st(mt),bt===e&&(bt=null)}function _u(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||If(n)||Qd(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hi=0,ne=null,Me=null,Ke=null,Hu=!1,ha=!1,Cl=!1,Uu=0,Po=0,pa=null,Nx=0;function Ve(){throw Error(R(321))}function xd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function wd(e,t,n,i,l,a){return hi=a,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Q.H=e===null||e.memoizedState===null?Hy:Uy,Cl=!1,a=n(i,l),Cl=!1,ha&&(a=oy(t,n,i,l)),ay(e),a}function ay(e){Q.H=Pu;var t=Me!==null&&Me.next!==null;if(hi=0,Ke=Me=ne=null,Hu=!1,Po=0,pa=null,t)throw Error(R(300));e===null||Ze||(e=e.dependencies,e!==null&&Ou(e)&&(Ze=!0))}function oy(e,t,n,i){ne=e;var l=0;do{if(ha&&(pa=null),Po=0,ha=!1,25<=l)throw Error(R(301));if(l+=1,Ke=Me=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Q.H=_x,a=t(n,i)}while(ha);return a}function Rx(){var e=Q.H,t=e.useState()[0];return t=typeof t.then=="function"?$o(t):t,e=e.useState()[0],(Me!==null?Me.memoizedState:null)!==e&&(ne.flags|=1024),t}function Md(){var e=Uu!==0;return Uu=0,e}function Ed(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Td(e){if(Hu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hu=!1}hi=0,Ke=Me=ne=null,ha=!1,Po=Uu=0,pa=null}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ne.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ye(){if(Me===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ke===null?ne.memoizedState:Ke.next;if(t!==null)Ke=t,Me=e;else{if(e===null)throw ne.alternate===null?Error(R(467)):Error(R(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Ke===null?ne.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function oc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $o(e){var t=Po;return Po+=1,pa===null&&(pa=[]),e=Wg(pa,e,t),t=ne,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,Q.H=t===null||t.memoizedState===null?Hy:Uy),e}function rc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return $o(e);if(e.$$typeof===uS)return;if(e.$$typeof===Gn)return ct(e)}throw Error(R(438,String(e)))}function Nd(e){var t=null,n=ne.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=ne.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=oc(),ne.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=rS;return t.index++,n}function pi(e,t){return typeof t=="function"?t(e):t}function su(e){var t=Ye();return Rd(t,Me,e)}function Rd(e,t,n){var i=e.queue;if(i===null)throw Error(R(311));i.lastRenderedReducer=n;var l=e.baseQueue,a=i.pending;if(a!==null){if(l!==null){var o=l.next;l.next=a.next,a.next=o}t.baseQueue=l=a,i.pending=null}if(a=e.baseState,l===null)e.memoizedState=a;else{t=l.next;var r=o=null,u=null,c=t,f=!1;do{var p=c.lane&-536870913;if(p!==c.lane?(de&p)===p:(hi&p)===p){var s=c.revertLane;if(s===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===Nl&&(f=!0);else if((hi&s)===s){c=c.next,s===Nl&&(f=!0);continue}else p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=p,o=a):u=u.next=p,ne.lanes|=s,el|=s;p=c.action,Cl&&n(a,p),a=c.hasEagerState?c.eagerState:n(a,p)}else s={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=s,o=a):u=u.next=s,ne.lanes|=p,el|=p;c=c.next}while(c!==null&&c!==t);if(u===null?o=a:u.next=r,!tn(a,e.memoizedState)&&(Ze=!0,f&&(n=da,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=u,i.lastRenderedState=a}return l===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Rs(e){var t=Ye(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var i=n.dispatch,l=n.pending,a=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do a=e(a,o.action),o=o.next;while(o!==l);tn(a,t.memoizedState)||(Ze=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function ry(e,t,n){var i=ne,l=Ye(),a=oe;if(a){if(n===void 0)throw Error(R(407));n=n()}else n=t();var o=!tn((Me||l).memoizedState,n);if(o&&(l.memoizedState=n,Ze=!0),l=l.queue,Cd(sy.bind(null,i,l,e),[e]),e=l.getSnapshot!==t||o||Ke!==null&&(Ke.memoizedState.tag&1)!==0,wa(e?9:8,{destroy:void 0},cy.bind(null,i,l,n,t),null),e){if(i.flags|=2048,Ne===null)throw Error(R(349));a||(hi&127)!==0||uy(i,t,n)}return n}function uy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t=oc(),ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function cy(e,t,n,i){t.value=n,t.getSnapshot=i,fy(t)&&dy(e)}function sy(e,t,n){return n(function(){fy(t)&&dy(e)})}function fy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tn(e,n)}catch{return!0}}function dy(e){var t=_l(e,2);t!==null&&kt(t,e,2)}function gf(e){var t=At();if(typeof e=="function"){var n=e;if(e=n(),Cl){_i(!0);try{n()}finally{_i(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:e},t}function my(e,t,n,i){return e.baseState=n,Rd(e,Me,typeof i=="function"?i:pi)}function Cx(e,t,n,i,l){if(cc(e))throw Error(R(485));if(e=t.action,e!==null){var a={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){a.listeners.push(o)}};Q.T!==null?n(!0):a.isTransition=!1,i(a),n=t.pending,n===null?(a.next=t.pending=a,hy(t,a)):(a.next=n.next,t.pending=n.next=a)}}function hy(e,t){var n=t.action,i=t.payload,l=e.state;if(t.isTransition){var a=Q.T,o={};o.types=a!==null?a.types:null,Q.T=o;try{var r=n(l,i),u=Q.S;u!==null&&u(o,r),tp(e,t,r)}catch(c){yf(e,t,c)}finally{a!==null&&o.types!==null&&(a.types=o.types),Q.T=a}}else try{a=n(l,i),tp(e,t,a)}catch(c){yf(e,t,c)}}function tp(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){np(e,t,i)},function(i){return yf(e,t,i)}):np(e,t,n)}function np(e,t,n){t.status="fulfilled",t.value=n,py(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,hy(e,n)))}function yf(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,py(t),t=t.next;while(t!==i)}e.action=null}function py(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gy(e,t){return t}function ip(e,t){if(oe){var n=Ne.formState;if(n!==null){e:{var i=ne;if(oe){if(ze){t:{for(var l=ze,a=dn;l.nodeType!==8;){if(!a){l=null;break t}if(l=mn(l.nextSibling),l===null){l=null;break t}}a=l.data,l=a==="F!"||a==="F"?l:null}if(l){ze=mn(l.nextSibling),i=l.data==="F!";break e}}Fi(i)}i=!1}i&&(t=n[0])}}return n=At(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gy,lastRenderedState:t},n.queue=i,n=Dy.bind(null,ne,i),i.dispatch=n,i=gf(!1),a=Dd.bind(null,ne,!1,i.queue),i=At(),l={state:t,dispatch:null,action:e,pending:null},i.queue=l,n=Cx.bind(null,ne,l,a,n),l.dispatch=n,i.memoizedState=e,[t,n,!1]}function lp(e){var t=Ye();return yy(t,Me,e)}function yy(e,t,n){if(t=Rd(e,t,gy)[0],e=su(pi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=$o(t)}catch(o){throw o===_a?ac:o}else i=t;t=Ye();var l=t.queue,a=l.dispatch;return n!==t.memoizedState&&(ne.flags|=2048,wa(9,{destroy:void 0},Ax.bind(null,l,n),null)),[i,a,e]}function Ax(e,t){e.action=t}function ap(e){var t=Ye(),n=Me;if(n!==null)return yy(t,n,e);Ye(),t=t.memoizedState,n=Ye();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function wa(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=ne.updateQueue,t===null&&(t=oc(),ne.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function by(){return Ye().memoizedState}function fu(e,t,n,i){var l=At();ne.flags|=e,l.memoizedState=wa(1|t,{destroy:void 0},n,i===void 0?null:i)}function uc(e,t,n,i){var l=Ye();i=i===void 0?null:i;var a=l.memoizedState.inst;Me!==null&&i!==null&&xd(i,Me.memoizedState.deps)?l.memoizedState=wa(t,a,n,i):(ne.flags|=e,l.memoizedState=wa(1|t,a,n,i))}function op(e,t){fu(8390656,8,e,t)}function Cd(e,t){uc(2048,8,e,t)}function zx(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=oc(),ne.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function vy(e){var t=Ye().memoizedState;return zx({ref:t,nextImpl:e}),function(){if((ge&2)!==0)throw Error(R(440));return t.impl.apply(void 0,arguments)}}function Sy(e,t){return uc(4,2,e,t)}function xy(e,t){return uc(4,4,e,t)}function wy(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function My(e,t,n){n=n!=null?n.concat([e]):null,uc(4,4,wy.bind(null,t,e),n)}function Ad(){}function Ey(e,t){var n=Ye();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&xd(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Ty(e,t){var n=Ye();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&xd(t,i[1]))return i[0];if(i=e(),Cl){_i(!0);try{e()}finally{_i(!1)}}return n.memoizedState=[i,t],i}function zd(e,t,n){return n===void 0||(hi&1073741824)!==0&&(de&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=yb(),ne.lanes|=e,el|=e,n)}function Ny(e,t,n,i){return tn(n,t)?n:$i.current!==null?(e=zd(e,n,i),tn(e,t)||(Ze=!0),e):(hi&106)===0||(hi&1073741824)!==0&&(de&261930)===0?(Ze=!0,e.memoizedState=n):(e=yb(),ne.lanes|=e,el|=e,t)}function Ry(e,t,n,i,l){var a=ye.p;ye.p=a!==0&&8>a?a:8;var o=Q.T,r={};r.types=o!==null?o.types:null,Q.T=r,Dd(e,!1,t,n);try{var u=l(),c=Q.S;if(c!==null&&c(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=Tx(u,i);Mo(e,t,f,en(e))}else Mo(e,t,i,en(e))}catch(p){Mo(e,t,{then:function(){},status:"rejected",reason:p},en())}finally{ye.p=a,o!==null&&r.types!==null&&(o.types=r.types),Q.T=o}}function Ox(){}function bf(e,t,n,i){if(e.tag!==5)throw Error(R(476));var l=Cy(e).queue;Ry(e,l,t,bl,n===null?Ox:function(){return Ay(e),n(i)})}function Cy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:bl,baseState:bl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:bl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ay(e){var t=Cy(e);t.next===null&&(t=e.alternate.memoizedState),Mo(e,t.next.queue,{},en())}function Od(){return ct(Aa)}function zy(){return Ye().memoizedState}function Oy(){return Ye().memoizedState}function Dx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=en();e=Yi(n);var i=qi(t,e,n);i!==null&&(kt(i,t,n),So(i,t,n)),t={cache:pd()},e.payload=t;return}t=t.return}}function Lx(e,t,n){var i=en();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},cc(e)?Ly(t,n):(n=dd(e,t,n,i),n!==null&&(kt(n,e,i),_y(n,t,i)))}function Dy(e,t,n){var i=en();Mo(e,t,n,i)}function Mo(e,t,n,i){var l={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(cc(e))Ly(t,l);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,r=a(o,n);if(l.hasEagerState=!0,l.eagerState=r,tn(r,o))return ic(e,t,l,0),Ne===null&&nc(),!1}catch{}finally{}if(n=dd(e,t,l,i),n!==null)return kt(n,e,i),_y(n,t,i),!0}return!1}function Dd(e,t,n,i){if(i={lane:2,revertLane:qd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},cc(e)){if(t)throw Error(R(479))}else t=dd(e,n,i,2),t!==null&&kt(t,e,2)}function cc(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function Ly(e,t){ha=Hu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _y(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,bg(e,n)}}var Pu={readContext:ct,use:rc,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve,useEffectEvent:Ve},Hy={readContext:ct,use:rc,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:op,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,fu(4194308,4,wy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fu(4194308,4,e,t)},useInsertionEffect:function(e,t){fu(4,2,e,t)},useMemo:function(e,t){var n=At();t=t===void 0?null:t;var i=e();if(Cl){_i(!0);try{e()}finally{_i(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=At();if(n!==void 0){var l=n(t);if(Cl){_i(!0);try{n(t)}finally{_i(!1)}}}else l=t;return i.memoizedState=i.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},i.queue=e,e=e.dispatch=Lx.bind(null,ne,e),[i.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:function(e){e=gf(e);var t=e.queue,n=Dy.bind(null,ne,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ad,useDeferredValue:function(e,t){var n=At();return zd(n,e,t)},useTransition:function(){var e=gf(!1);return e=Ry.bind(null,ne,e.queue,!0,!1),At().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=ne,l=At();if(oe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ne===null)throw Error(R(349));(de&127)!==0||uy(i,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,op(sy.bind(null,i,a,e),[e]),i.flags|=2048,wa(9,{destroy:void 0},cy.bind(null,i,a,n,t),null),n},useId:function(){var e=At(),t=Ne.identifierPrefix;if(oe){var n=jn,i=qn;n=(i&~(1<<32-Wt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Uu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Nx++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Od,useFormState:ip,useActionState:ip,useOptimistic:function(e){var t=At();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Dd.bind(null,ne,!0,n),n.dispatch=t,[e,t]},useMemoCache:Nd,useCacheRefresh:function(){return At().memoizedState=Dx.bind(null,ne)},useEffectEvent:function(e){var t=At(),n={impl:e};return t.memoizedState=n,function(){if((ge&2)!==0)throw Error(R(440));return n.impl.apply(void 0,arguments)}}},Uy={readContext:ct,use:rc,useCallback:Ey,useContext:ct,useEffect:Cd,useImperativeHandle:My,useInsertionEffect:Sy,useLayoutEffect:xy,useMemo:Ty,useReducer:su,useRef:by,useState:function(){return su(pi)},useDebugValue:Ad,useDeferredValue:function(e,t){var n=Ye();return Ny(n,Me.memoizedState,e,t)},useTransition:function(){var e=su(pi)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:$o(e),t]},useSyncExternalStore:ry,useId:zy,useHostTransitionStatus:Od,useFormState:lp,useActionState:lp,useOptimistic:function(e,t){var n=Ye();return my(n,Me,e,t)},useMemoCache:Nd,useCacheRefresh:Oy,useEffectEvent:vy},_x={readContext:ct,use:rc,useCallback:Ey,useContext:ct,useEffect:Cd,useImperativeHandle:My,useInsertionEffect:Sy,useLayoutEffect:xy,useMemo:Ty,useReducer:Rs,useRef:by,useState:function(){return Rs(pi)},useDebugValue:Ad,useDeferredValue:function(e,t){var n=Ye();return Me===null?zd(n,e,t):Ny(n,Me.memoizedState,e,t)},useTransition:function(){var e=Rs(pi)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:$o(e),t]},useSyncExternalStore:ry,useId:zy,useHostTransitionStatus:Od,useFormState:ap,useActionState:ap,useOptimistic:function(e,t){var n=Ye();return Me!==null?my(n,Me,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Nd,useCacheRefresh:Oy,useEffectEvent:vy};function Cs(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vf={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=en(),l=Yi(i);l.payload=t,n!=null&&(l.callback=n),t=qi(e,l,i),t!==null&&(kt(t,e,i),So(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=en(),l=Yi(i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=qi(e,l,i),t!==null&&(kt(t,e,i),So(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=en(),i=Yi(n);i.tag=2,t!=null&&(i.callback=t),t=qi(e,i,n),t!==null&&(kt(t,e,n),So(t,e,n))}};function rp(e,t,n,i,l,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,a,o):t.prototype&&t.prototype.isPureReactComponent?!Do(n,i)||!Do(l,a):!0}function up(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&vf.enqueueReplaceState(t,t.state,null)}function Al(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Re({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function Py(e){Ru(e)}function ky(e){console.error(e)}function Vy(e){Ru(e)}function ku(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function cp(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Sf(e,t,n){return n=Yi(n),n.tag=3,n.payload={element:null},n.callback=function(){ku(e,t)},n}function By(e){return e=Yi(e),e.tag=3,e}function Gy(e,t,n,i){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var a=i.value;e.payload=function(){return l(a)},e.callback=function(){cp(t,n,i)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){cp(t,n,i),typeof l!="function"&&(Ki===null?Ki=new Set([this]):Ki.add(this));var r=i.stack;this.componentDidCatch(i.value,{componentStack:r!==null?r:""})})}function Hx(e,t,n,i,l){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&El(t,n,l,!0),n=mt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return bt===null?Ku():n.alternate===null&&Be===0&&(Be=3),n.flags&=-257,n.flags|=65536,n.lanes=l,i===Du?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Hs(e,i,l)),!1;case 22:return n.flags|=65536,i===Du?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Hs(e,i,l)),!1}throw Error(R(435,n.tag))}return Hs(e,i,l),Ku(),!1}if(oe)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,i!==uf&&(e=Error(R(422),{cause:i}),_o(fn(e,n)))):(i!==uf&&(t=Error(R(423),{cause:i}),_o(fn(t,n))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,i=fn(i,n),l=Sf(e.stateNode,i,l),Ns(e,l),Be!==4&&(Be=2)),!1;var a=Error(R(520),{cause:i});if(a=fn(a,n),Ro===null?Ro=[a]:Ro.push(a),Be!==4&&(Be=2),t===null)return!0;i=fn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=Sf(n.stateNode,i,e),Ns(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(Ki===null||!Ki.has(a))))return n.flags|=65536,l&=-l,n.lanes|=l,l=By(l),Gy(l,e,n,i),Ns(n,l),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ld=Error(R(461)),Ze=!1;function Ie(e,t,n,i){t.child=e===null?ty(t,null,n,i):Rl(t,e.child,n,i)}function sp(e,t,n,i,l){n=n.render;var a=t.ref;if("ref"in i){var o={};for(var r in i)r!=="ref"&&(o[r]=i[r])}else o=i;return Tl(t),i=wd(e,t,n,o,a,l),r=Md(),e!==null&&!Ze?(Ed(e,t,l),gi(e,t,l)):(oe&&r&&lc(t),t.flags|=1,Ie(e,t,i,l),t.child)}function fp(e,t,n,i,l){if(e===null){var a=n.type;return typeof a=="function"&&!md(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Yy(e,t,a,i,l)):(e=ru(n.type,null,i,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Hd(e,l)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Do,n(o,i)&&e.ref===t.ref)return gi(e,t,l)}return t.flags|=1,e=si(a,i),e.ref=t.ref,e.return=t,t.child=e}function Yy(e,t,n,i,l){if(e!==null){var a=e.memoizedProps;if(Do(a,i)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=i=a,Hd(e,l))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,gi(e,t,l)}return xf(e,t,n,i,l)}function qy(e,t,n,i){var l=i.children,a=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(a=a!==null?a.baseLanes|n:n,e!==null){for(i=t.child=e.child,l=0;i!==null;)l=l|i.lanes|i.childLanes,i=i.sibling;i=l&~a}else i=0,t.child=null;return dp(e,t,a,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&cu(t,a!==null?a.cachePool:null),a!==null?ep(t,a):hf(),ly(t);else return i=t.lanes=536870912,dp(e,t,a!==null?a.baseLanes|n:n,n,i)}else a!==null?(cu(t,a.cachePool),ep(t,a),Xi(),t.memoizedState=null):(e!==null&&cu(t,null),hf(),Xi());return Ie(e,t,l,n),t.child}function Eo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dp(e,t,n,i,l){var a=gd();return a=a===null?null:{parent:Qe._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&cu(t,null),hf(),ly(t),e!==null&&El(e,t,i,!0),t.childLanes=l,null}function du(e,t){return t=sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mp(e,t,n){return Rl(t,e.child,null,n),e=du(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function Ux(e,t,n){var i=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(i.mode==="hidden")return e=du(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Eo(null,e);if(pf(t),(e=ze)?(e=qb(e,dn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ji!==null?{id:qn,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},n=Zg(e),n.return=t,t.child=n,ot=t,ze=null)):e=null,e===null)throw Fi(t);return t.lanes=536870912,null}return du(t,i)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(pf(t),l)if(t.flags&256)t.flags&=-257,t=mp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(R(558));else if(Ze||El(e,t,n,!1),l=(n&e.childLanes)!==0,Ze||l){if($i.current===null){if(i=Ne,i!==null&&(o=vg(i,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,_l(e,o),kt(i,e,o),Ld;Ku()}t=mp(e,t,n)}else e=a.treeContext,ze=mn(o.nextSibling),ot=t,oe=!0,Gi=null,dn=!1,e!==null&&Jg(t,e),t=du(t,i),t.flags|=134221824;return t}return e=si(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Zl(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(R(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function xf(e,t,n,i,l){return Tl(t),n=wd(e,t,n,i,void 0,l),i=Md(),e!==null&&!Ze?(Ed(e,t,l),gi(e,t,l)):(oe&&i&&lc(t),t.flags|=1,Ie(e,t,n,l),t.child)}function hp(e,t,n,i,l,a){return Tl(t),t.updateQueue=null,n=oy(t,i,n,l),ay(e),i=Md(),e!==null&&!Ze?(Ed(e,t,a),gi(e,t,a)):(oe&&i&&lc(t),t.flags|=1,Ie(e,t,n,a),t.child)}function pp(e,t,n,i,l){if(Tl(t),t.stateNode===null){var a=aa,o=n.contextType;typeof o=="object"&&o!==null&&(a=ct(o)),a=new n(i,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=vf,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=i,a.state=t.memoizedState,a.refs={},bd(t),o=n.contextType,a.context=typeof o=="object"&&o!==null?ct(o):aa,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(Cs(t,n,o,i),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(o=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),o!==a.state&&vf.enqueueReplaceState(a,a.state,null),wo(t,i,a,l),xo(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){a=t.stateNode;var r=t.memoizedProps,u=Al(n,r);a.props=u;var c=a.context,f=n.contextType;o=aa,typeof f=="object"&&f!==null&&(o=ct(f));var p=n.getDerivedStateFromProps;f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(r||c!==o)&&up(t,a,i,o),Di=!1;var s=t.memoizedState;a.state=s,wo(t,i,a,l),xo(),c=t.memoizedState,r||s!==c||Di?(typeof p=="function"&&(Cs(t,n,p,i),c=t.memoizedState),(u=Di||rp(t,n,u,i,s,c,o))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),a.props=i,a.state=c,a.context=o,i=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{a=t.stateNode,df(e,t),o=t.memoizedProps,f=Al(n,o),a.props=f,p=t.pendingProps,s=a.context,c=n.contextType,u=aa,typeof c=="object"&&c!==null&&(u=ct(c)),r=n.getDerivedStateFromProps,(c=typeof r=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==p||s!==u)&&up(t,a,i,u),Di=!1,s=t.memoizedState,a.state=s,wo(t,i,a,l),xo();var h=t.memoizedState;o!==p||s!==h||Di||e!==null&&e.dependencies!==null&&Ou(e.dependencies)?(typeof r=="function"&&(Cs(t,n,r,i),h=t.memoizedState),(f=Di||rp(t,n,f,i,s,h,u)||e!==null&&e.dependencies!==null&&Ou(e.dependencies))?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(i,h,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(i,h,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=h),a.props=i,a.state=h,a.context=u,i=f):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),i=!1)}return a=i,Zl(e,t),i=(t.flags&128)!==0,a||i?(a=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&i?(t.child=Rl(t,e.child,null,l),t.child=Rl(t,null,n,l)):Ie(e,t,n,l),t.memoizedState=a.state,e=t.child):e=gi(e,t,l),e}function gp(e,t,n,i){return Ml(),t.flags|=256,Ie(e,t,n,i),t.child}var wf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mf(e){return{baseLanes:e,cachePool:$g()}}function Ef(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Jt),e}function jy(e,t,n){var i=t.pendingProps,l=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),o&&(l=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(l?ji(t):Xi(),(e=ze)?(e=qb(e,dn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ji!==null?{id:qn,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},n=Zg(e),n.return=t,t.child=n,ot=t,ze=null)):e=null,e===null)throw Fi(t);return Qd(e)?t.lanes=32:t.lanes=536870912,null}return a=i.children,i=i.fallback,l?(Xi(),l=t.mode,a=sc({mode:"hidden",children:a},l),i=vl(i,l,n,null),a.return=t,i.return=t,a.sibling=i,t.child=a,i=t.child,i.memoizedState=Mf(n),i.childLanes=Ef(e,o,n),t.memoizedState=wf,Eo(null,i)):(ji(t),_d(t,a))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return Px(e,t,a,o,i,u,r,n)}return l?(Xi(),l=i.fallback,a=t.mode,r=e.child,u=r.sibling,i=si(r,{mode:"hidden",children:i.children}),i.subtreeFlags=r.subtreeFlags&1206910976,u!==null?l=si(u,l):(l=vl(l,a,n,null),l.flags|=2),l.return=t,i.return=t,i.sibling=l,t.child=i,Eo(null,i),i=t.child,l=e.child.memoizedState,l===null?l=Mf(n):(a=l.cachePool,a!==null?(r=Qe._currentValue,a=a.parent!==r?{parent:r,pool:r}:a):a=$g(),l={baseLanes:l.baseLanes|n,cachePool:a}),i.memoizedState=l,i.childLanes=Ef(e,o,n),t.memoizedState=wf,Eo(e.child,i)):(ji(t),n=e.child,e=n.sibling,n=si(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function _d(e,t){return t=sc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function sc(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Qr(e,t,n){return Rl(t,e.child,null,n),e=_d(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Px(e,t,n,i,l,a,o,r){if(n)return t.flags&256?(ji(t),t.flags&=-257,Qr(e,t,r)):t.memoizedState!==null?(Xi(),t.child=e.child,t.flags|=128,null):(Xi(),a=l.fallback,o=t.mode,l=sc({mode:"visible",children:l.children},o),a=vl(a,o,r,null),a.flags|=2,l.return=t,a.return=t,l.sibling=a,t.child=l,Rl(t,e.child,null,r),l=t.child,l.memoizedState=Mf(r),l.childLanes=Ef(e,i,r),t.memoizedState=wf,Eo(null,l));if(ji(t),Qd(a)){if(i=a.nextSibling&&a.nextSibling.dataset,i)var u=i.dgst;return i=u,i!==""&&(l=Error(R(419)),l.stack="",l.digest=i,_o({value:l,source:null,stack:null})),Qr(e,t,r)}if(Ze||El(e,t,r,!1),i=(r&e.childLanes)!==0,Ze||i){if($i.current!==null)return Qr(e,t,r);if(i=Ne,i!==null&&(l=vg(i,r),l!==0&&l!==o.retryLane))throw o.retryLane=l,_l(e,l),kt(i,e,l),Ld;return If(a)||Ku(),Qr(e,t,r)}return If(a)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,ze=mn(a.nextSibling),ot=t,oe=!0,Gi=null,dn=!1,e!==null&&Jg(t,e),t=_d(t,l.children),t.flags|=134221824,t)}function yp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),uu(e.return,t,n)}function bp(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&_u(n)===null&&(t=e),e=e.sibling}return t}function Zr(e,t,n,i,l,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:l,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=l,o.treeForkCount=a)}function As(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function Tf(e,t,n){var i=t.pendingProps,l=i.revealOrder,a=i.tail;i=i.children;var o=ft.current;if(t.flags&128)return Uo(t,o),null;var r=(o&2)!==0;if(r?(o=o&1|2,t.flags|=128):o&=1,Uo(t,o),l==="backwards"&&e!==null?(As(e),Ie(e,t,i,n),As(e)):Ie(e,t,i,n),i=oe?Lo:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yp(e,n,t);else if(e.tag===19)yp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"backwards":n=bp(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null,As(t)),Zr(t,!0,l,null,a,i);break;case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&_u(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Zr(t,!0,n,null,a,i);break;case"together":Zr(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:n=bp(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Zr(t,!1,l,n,a,i)}return t.child}function vp(e,t,n){var i=t.pendingProps;return Ui(t,t.type,i.value),Ie(e,t,i.children,n),t.child}function gi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),el|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(El(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=si(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=si(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ou(e)))}function kx(e,t,n){switch(t.tag){case 3:Mu(t,t.stateNode.containerInfo),Ui(t,Qe,e.memoizedState.cache),Ml();break;case 27:case 5:Fs(t);break;case 4:Mu(t,t.stateNode.containerInfo);break;case 10:Ui(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,pf(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return ji(t),t.flags|=128,null;i=El(e,t,n,!1);var l=t.child.childLanes;return i||(n&l)!==0?jy(e,t,n):(ji(t),e=gi(e,t,n),e!==null?e.sibling:null)}ji(t);break;case 19:if(t.flags&128)return Tf(e,t,n);if(l=(e.flags&128)!==0,i=(n&t.childLanes)!==0,i||(El(e,t,n,!1),i=(n&t.childLanes)!==0),l){if(i)return Tf(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Uo(t,ft.current),i)break;return null;case 22:return t.lanes=0,qy(e,t,n,t.pendingProps);case 24:Ui(t,Qe,e.memoizedState.cache)}return gi(e,t,n)}function Xy(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!Hd(e,n)&&(t.flags&128)===0)return Ze=!1,kx(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,oe&&(t.flags&1048576)!==0&&Ig(t,Lo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=hl(t.elementType),t.type=e,typeof e=="function")md(e)?(i=Al(e,i),t.tag=1,t=pp(null,t,e,i,n)):(t.tag=0,t=xf(null,t,e,i,n));else{if(e!=null){var l=e.$$typeof;if(l===ed){t.tag=11,t=sp(null,t,e,i,n);break e}else if(l===td){t.tag=14,t=fp(null,t,e,i,n);break e}else if(l===Gn){t.tag=10,t.type=e,t=vp(null,t,n);break e}}throw t=Is(e)||e,Error(R(306,t,""))}}return t;case 0:return xf(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,l=Al(i,t.pendingProps),pp(e,t,i,l,n);case 3:e:{if(Mu(t,t.stateNode.containerInfo),e===null)throw Error(R(387));i=t.pendingProps;var a=t.memoizedState;l=a.element,df(e,t),wo(t,i,null,n);var o=t.memoizedState;if(i=o.cache,Ui(t,Qe,i),i!==a.cache&&sf(t,[Qe],n,!0),xo(),i=o.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=gp(e,t,i,n);break e}else if(i!==l){l=fn(Error(R(424)),t),_o(l),t=gp(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ze=mn(e.firstChild),ot=t,oe=!0,Gi=null,dn=!0,n=ty(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Ml(),i===l){t=gi(e,t,n);break e}Ie(e,t,i,n)}t=t.child}return t;case 26:return Zl(e,t),e===null?(n=Kp(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(t.stateNode=_b(t.type,t.pendingProps,Bi.current,t)):t.memoizedState=Kp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Fs(t),e===null&&oe&&(i=t.stateNode=jb(t.type,t.pendingProps,Bi.current),ot=t,dn=!0,l=ze,nl(t.type)?(Jf=l,ze=mn(i.firstChild)):ze=l),Ie(e,t,t.pendingProps.children,n),Zl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((l=i=ze)&&(i=zw(i,t.type,t.pendingProps,dn),i!==null?(t.stateNode=i,ot=t,ze=mn(i.firstChild),dn=!1,l=!0):l=!1),l||Fi(t)),Fs(t),l=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,Kf(l,a)?i=null:o!==null&&Kf(l,o)&&(t.flags|=32),t.memoizedState!==null&&(l=wd(e,t,Rx,null,null,n),Aa._currentValue=l),Zl(e,t),Ie(e,t,i,n),t.child;case 6:return e===null&&oe&&((e=n=ze)&&(n=Ow(n,t.pendingProps,dn),n!==null?(t.stateNode=n,ot=t,ze=null,e=!0):e=!1),e||Fi(t)),null;case 13:return jy(e,t,n);case 4:return Mu(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Rl(t,null,i,n):Ie(e,t,i,n),t.child;case 11:return sp(e,t,t.type,t.pendingProps,n);case 7:return i=t.pendingProps,Zl(e,t),Ie(e,t,i,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:return vp(e,t,n);case 9:return l=t.type._context,i=t.pendingProps.children,Tl(t),l=ct(l),i=i(l),t.flags|=1,Ie(e,t,i,n),t.child;case 14:return fp(e,t,t.type,t.pendingProps,n);case 15:return Yy(e,t,t.type,t.pendingProps,n);case 19:return Tf(e,t,n);case 31:return Ux(e,t,n);case 22:return qy(e,t,n,t.pendingProps);case 24:return Tl(t),i=ct(Qe),e===null?(l=gd(),l===null&&(l=Ne,a=pd(),l.pooledCache=a,a.refCount++,a!==null&&(l.pooledCacheLanes|=n),l=a),t.memoizedState={parent:i,cache:l},bd(t),Ui(t,Qe,l)):((e.lanes&n)!==0&&(df(e,t),wo(t,null,null,n),xo()),l=e.memoizedState,a=t.memoizedState,l.parent!==i?(l={parent:i,cache:i},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Ui(t,Qe,i)):(i=a.cache,Ui(t,Qe,i),i!==l.cache&&sf(t,[Qe],n,!0))),Ie(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:oe&&lc(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:Zl(e,t),Ie(e,t,i.children,n),t.child;case 29:throw t.pendingProps}throw Error(R(156,t.tag))}function ri(e){e.flags|=4}function zs(e,t,n,i,l){var a;if((a=(e.mode&32)!==0)&&(a=n===null?Ip(t,i):Ip(t,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(Sb())e.flags|=8192;else throw xl=Du,yd}else e.flags&=-16777217}function Sp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Zb(t))if(Sb())e.flags|=8192;else throw xl=Du,yd}function Ir(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?gg():536870912,e.lanes|=t,Ma|=t)}function oo(e,t){if(!oe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags&1206910976,i|=l.flags&1206910976,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags,i|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Vx(e,t,n){var i=t.pendingProps;switch(hd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),fi(Qe),va(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?ri(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ts())),Ae(t),null;case 26:var l=t.type,a=t.memoizedState;return e===null?(ri(t),a!==null?(Ae(t),Sp(t,a)):(Ae(t),zs(t,l,null,i,n))):a?a!==e.memoizedState?(ri(t),Ae(t),Sp(t,a)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ri(t),Ae(t),zs(t,l,e,i,n)),null;case 27:if(Eu(t),n=Bi.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ri(t);else{if(!i){if(t.stateNode===null)throw Error(R(166));return Ae(t),t.subtreeFlags&=-33554433,null}e=Xn.current,Kl(t)?Qh(t,e):(e=jb(l,i,n),t.stateNode=e,ri(t))}return Ae(t),t.subtreeFlags&=-33554433,null;case 5:if(Eu(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ri(t);else{if(!i){if(t.stateNode===null)throw Error(R(166));return Ae(t),t.subtreeFlags&=-33554433,null}if(a=Xn.current,Kl(t))Qh(t,a);else{var o=Bo(Bi.current);switch(a){case 1:a=o.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:a=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":a=o.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":a=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":a=o.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof i.is=="string"?o.createElement("select",{is:i.is}):o.createElement("select"),i.multiple?a.multiple=!0:i.size&&(a.size=i.size);break;default:a=typeof i.is=="string"?o.createElement(l,{is:i.is}):o.createElement(l)}}a[ut]=t,a[Bt]=i;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;e:switch(dt(a,l,i),l){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ri(t)}}return Ae(t),t.subtreeFlags&=-33554433,zs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ri(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(R(166));if(e=Bi.current,Kl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,l=ot,l!==null)switch(l.tag){case 27:case 5:i=l.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Db(e.nodeValue,n)),e||Fi(t,!0)}else e=Bo(e).createTextNode(i),e[ut]=t,t.stateNode=e}return Ae(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Kl(t),n!==null){if(e===null){if(!i)throw Error(R(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(557));e[ut]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else n=Ts(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(R(558))}return Ae(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Kl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!l)throw Error(R(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(R(317));l[ut]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),l=!1}else l=Ts(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,l=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(l=i.alternate.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==l&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ir(t,t.updateQueue),Ae(t),null);case 4:return va(),e===null&&jd(t.stateNode.containerInfo),t.flags|=67108864,Ae(t),null;case 10:return fi(t.type),Ae(t),null;case 19:if(Sd(t),i=t.memoizedState,i===null)return Ae(t),null;if(l=(t.flags&128)!==0,a=i.rendering,a===null)if(l)oo(i,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=_u(e),a!==null){for(t.flags|=128,oo(i,!1),e=a.updateQueue,t.updateQueue=e,Ir(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Qg(n,e),n=n.sibling;return Uo(t,ft.current&1|2),oe&&ui(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ft()>ju&&(t.flags|=128,l=!0,oo(i,!1),t.lanes=4194304)}else{if(!l)if(e=_u(a),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Ir(t,e),oo(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!a.alternate&&!oe)return Ae(t),null}else 2*Ft()-i.renderingStartTime>ju&&n!==536870912&&(t.flags|=128,l=!0,oo(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(e=i.last,e!==null?e.sibling=a:t.child=a,i.last=a)}if(i.tail!==null){e=i.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ft(),e.sibling=null,a=ft.current,a=l?a&1|2:a&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||oe?Uo(t,a):(n=a,Oe(mt,t),Oe(ft,n),bt===null&&(bt=t)),oe&&ui(t,i.treeForkCount),e}return Ae(t),null;case 22:case 23:return Zt(t),vd(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),n=t.updateQueue,n!==null&&Ir(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&st(Sl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fi(Qe),Ae(t),null;case 25:return null;case 30:return t.flags|=33554432,Ae(t),null}throw Error(R(156,t.tag))}function Bx(e,t){switch(hd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fi(Qe),va(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Eu(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(R(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Sd(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return va(),null;case 10:return fi(t.type),null;case 22:case 23:return Zt(t),vd(),e!==null&&st(Sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fi(Qe),null;case 25:return null;default:return null}}function Ky(e,t){switch(hd(t),t.tag){case 3:fi(Qe),va();break;case 26:case 27:case 5:Eu(t);break;case 4:va();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:Sd(t);break;case 10:fi(t.type);break;case 22:case 23:Zt(t),vd(),e!==null&&st(Sl);break;case 24:fi(Qe)}}function Wo(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var l=i.next;n=l;do{if((n.tag&e)===e){i=void 0;var a=n.create,o=n.inst;i=a(),o.destroy=i}n=n.next}while(n!==l)}}catch(r){xe(t,t.return,r)}}function Wi(e,t,n){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var a=l.next;i=a;do{if((i.tag&e)===e){var o=i.inst,r=o.destroy;if(r!==void 0){o.destroy=void 0,l=t;var u=n,c=r;try{c()}catch(f){xe(l,u,f)}}}i=i.next}while(i!==a)}}catch(f){xe(t,t.return,f)}}function Qy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{iy(t,n)}catch(i){xe(e,e.return,i)}}}function Zy(e,t,n){n.props=Al(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){xe(e,t,i)}}function Vn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var l=e.stateNode,a=mi(e.memoizedProps,l);(l.ref===null||l.ref.name!==a)&&(l.ref=kb(a)),i=l.ref;break;case 7:if(e.stateNode===null){var o=new nn(e);Vt(e.child,!1,Cw,o,void 0,void 0),e.stateNode=o}i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){xe(e,t,r)}}function rt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(l){xe(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){xe(e,t,l)}else n.current=null}function Vu(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Yb(e.stateNode,t[n])}function xp(e){for(var t=e.return;t!==null&&(Pd(t)&&Yb(e.stateNode,t.stateNode),!Ud(t));)t=t.return}function To(e){for(var t=e.return;t!==null&&(Pd(t)&&Aw(e.stateNode,t.stateNode),!Ud(t));)t=t.return}function Ud(e){return e.tag===5||e.tag===3||e.tag===27}function Pd(e){return e&&e.tag===7&&e.stateNode!==null}function Nf(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(l){xe(e,e.return,l)}}function Os(e,t,n){try{var i=e.stateNode;sw(i,e.type,n,t),i[Bt]=t}catch(l){xe(e,e.return,l)}}function Iy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nl(e.type)||e.tag===4}function Ds(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Iy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&nl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rf(e,t,n,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(l,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(l),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yn)),Vu(e,i),pe=!0;else if(l!==4&&(l===27&&(Vu(e,i),i=null,nl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Rf(e,t,n,i),e=e.sibling;e!==null;)Rf(e,t,n,i),e=e.sibling}function Bu(e,t,n,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?n.insertBefore(l,t):n.appendChild(l),Vu(e,i),pe=!0;else if(l!==4&&(l===27&&(Vu(e,i),i=null,nl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Bu(e,t,n,i),e=e.sibling;e!==null;)Bu(e,t,n,i),e=e.sibling}function Jy(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);dt(t,i,n),t[ut]=e,t[Bt]=n}catch(a){xe(e,e.return,a)}}var Gu=!1,It=null;function wp(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Gu=!0)}var Bn=null;function Mp(){var e=Bn;return Bn=null,e}var Ut=0;function Ha(e,t,n,i,l){return Ut=0,Fy(e.child,t,n,i,l)}function Fy(e,t,n,i,l){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(i!==null){var r=Qf(o);i.push(r),r.view&&(a=!0)}else a||Qf(o).view&&(a=!0);Gu=!0,Hb(o,Ut===0?t:t+"_"+Ut,n),Ut++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&l||Fy(e.child,t,n,i,l)&&(a=!0));e=e.sibling}return a}function Qn(e,t){for(;e!==null;)e.tag===5?Ub(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Qn(e.child,t)),e=e.sibling}function mu(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(mu(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(R(544));var n=t.name;t=vi(t.default,t.share),t!=="none"&&(Ha(e,n,t,null,!1)||Qn(e.child,!1))}e=e.sibling}}function Cf(e,t){if(e.tag===30){var n=e.stateNode,i=e.memoizedProps,l=mi(i,n),a=vi(i.default,n.paired?i.share:i.enter);a!=="none"?Ha(e,l,a,null,!1)?(mu(e),n.paired||t||Ea(e,i.onEnter)):Qn(e.child,!1):mu(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Cf(e,t),e=e.sibling;else mu(e)}function Af(e){if(It!==null&&It.size!==0){var t=It;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var l=t.get(i);if(l!==void 0){var a=vi(n.default,n.share);if(a!=="none"&&(Ha(e,i,a,null,!1)?(a=e.stateNode,l.paired=a,a.paired=l,Ea(e,n.onShare)):Qn(e.child,!1)),t.delete(i),t.size===0)break}}}Af(e)}e=e.sibling}}}function zf(e){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode),i=It!==null?It.get(n):void 0,l=vi(t.default,i!==void 0?t.share:t.exit);l!=="none"&&(Ha(e,n,l,null,!1)?i!==void 0?(l=e.stateNode,i.paired=l,l.paired=i,It.delete(n),Ea(e,t.onShare)):Ea(e,t.onExit):Qn(e.child,!1)),It!==null&&Af(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)zf(e),e=e.sibling;else It!==null&&Af(e)}function $y(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode);t=vi(t.default,t.update),e.flags&=-5,t!=="none"&&Ha(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&$y(e);e=e.sibling}}function Of(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Qn(e.child,!1))}Of(e)}e=e.sibling}}function hu(e){if(e.tag===30)e.stateNode.paired=null,Qn(e.child,!1),Of(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)hu(e),e=e.sibling;else Of(e)}function Wy(e){for(e=e.child;e!==null;)e.tag===30?Qn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Wy(e),e=e.sibling}function kd(e,t,n,i,l,a,o){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(a!==null&&Ut<a.length){var c=a[Ut],f=Qf(u);(c.view||f.view)&&(r=!0);var p;if(p=(e.flags&4)===0)if(f.clip)p=!0;else{p=c.rect;var s=f.rect;p=p.y!==s.y||p.x!==s.x||p.height!==s.height||p.width!==s.width}p&&(e.flags|=4),f.abs?f=!c.abs:(c=c.rect,f=f.rect,f=c.height!==f.height||c.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Hb(u,Ut===0?n:n+"_"+Ut,l),r&&(e.flags&4)!==0||(Bn===null&&(Bn=[]),Bn.push(u,Ut===0?i:i+"_"+Ut,t.memoizedProps)),Ut++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:kd(e,t.child,n,i,l,a,o)&&(r=!0));t=t.sibling}return r}function eb(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,i=e.stateNode,l=mi(n,i),a=vi(n.default,n.update);if(t){i=i.clones;var o=i===null?null:i.map(gw)}else o=e.memoizedState,e.memoizedState=null;i=e;var r=e.child;Ut=0,l=kd(i,r,l,l,a,o,!1),(e.flags&4)!==0&&l&&(t||Ea(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&eb(e,t);e=e.sibling}}var it=!1,be=!1,Un=!1,Ls=!1,Ep=typeof WeakSet=="function"?WeakSet:Set,lt=null,Pn=!1,po=!1,Yu=!1,Df=!1;function Gx(e,t,n){if(e=e.containerInfo,jf=za,e=Vg(e),sd(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var a=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{i.nodeType,o.nodeType}catch{i=null;break e}var r=0,u=-1,c=-1,f=0,p=0,s=e,h=null;t:for(;;){for(var S;s!==i||a!==0&&s.nodeType!==3||(u=r+a),s!==o||l!==0&&s.nodeType!==3||(c=r+l),s.nodeType===3&&(r+=s.nodeValue.length),(S=s.firstChild)!==null;)h=s,s=S;for(;;){if(s===e)break t;if(h===i&&++f===a&&(u=r),h===o&&++p===l&&(c=r),(S=s.nextSibling)!==null)break;s=h,h=s.parentNode}s=S}i=u===-1||c===-1?null:{start:u,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;for(Xf={focusedElem:e,selectionRange:i},za=!1,n=(n&335544064)===n,lt=t,t=n?9270:1024;lt!==null;){if(e=lt,n&&(i=e.deletions,i!==null))for(a=0;a<i.length;a++)n&&zf(i[a]);if(e.alternate===null&&(e.flags&2)!==0)n&&wp(e),Jr(n);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&zf(i),Jr(n);continue}else if(i!==null&&i.memoizedState!==null){n&&wp(e),Jr(n);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,lt=i):(n&&$y(e),Jr(n))}}It=null}function Jr(e){for(;lt!==null;){var t=lt,n=e,i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((l&1024)!==0&&i!==null){n=void 0,l=i.memoizedProps,i=i.memoizedState;var a=t.stateNode;try{var o=Al(t.type,l);n=a.getSnapshotBeforeUpdate(o,i),a.__reactInternalSnapshotBeforeUpdate=n}catch(r){xe(t,t.return,r)}}break;case 3:if((l&1024)!==0){if(i=t.stateNode.containerInfo,n=i.nodeType,n===9)Zf(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Zf(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=mi(i.memoizedProps,i.stateNode),l=t.memoizedProps,l=vi(l.default,l.update),l!=="none"&&Ha(i,n,l,i.memoizedState=[],!0));break;default:if((l&1024)!==0)throw Error(R(163))}if(i=t.sibling,i!==null){i.return=t.return,lt=i;break}lt=t.return}}function tb(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:kn(e,n),i&4&&Wo(5,n);break;case 1:if(kn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){xe(n,n.return,o)}else{var l=Al(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){xe(n,n.return,o)}}i&64&&Qy(n),i&512&&Vn(n,n.return);break;case 3:if(kn(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{iy(e,t)}catch(o){xe(n,n.return,o)}}break;case 27:t===null&&i&4&&Jy(n);case 26:case 5:kn(e,n),t===null&&i&4&&Nf(n),i&512&&Vn(n,n.return);break;case 12:kn(e,n);break;case 31:kn(e,n),i&4&&ab(e,n);break;case 13:kn(e,n),i&4&&ob(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Wx.bind(null,n),Dw(e,n))));break;case 22:if(i=n.memoizedState!==null||it,!i){var a=t!==null&&t.memoizedState!==null||be;t=it,l=be,it=i,(be=a)&&!l?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),vn(e,n,i)):kn(e,n),it=t,be=l}break;case 30:kn(e,n),i&512&&Vn(n,n.return);break;case 7:i&512&&Vn(n,n.return);default:kn(e,n)}}function Lf(e,t){for(e=e.child;e!==null;)nb(e,t),e=e.sibling}function nb(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var l=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null;l.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(u){xe(e,e.return,u)}_f(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,pe=!0}catch(u){xe(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?Bp(r,!0):Bp(e.stateNode,!1)}catch(u){xe(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&Lf(e,t);break;default:Lf(e,t)}}function _f(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,i=t;switch(n.tag){case 4:nb(n,i);break e;case 22:n.memoizedState===null&&_f(n,i);break e;default:_f(n,i)}}e=e.sibling}}function ib(e){var t=e.alternate;t!==null&&(e.alternate=null,ib(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$u(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,_t=!1;function bn(e,t,n){for(n=n.child;n!==null;)lb(e,t,n),n=n.sibling}function lb(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Ko,n)}catch{}switch(n.tag){case 26:be||rt(n,t),bn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!be&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:be||rt(n,t),To(n);var i=Ue,l=_t;nl(n.type)&&(Ue=n.stateNode,_t=!1),bn(e,t,n),Xb(n.stateNode,n.type,n.memoizedProps),Ue=i,_t=l;break;case 5:be||rt(n,t),To(n);case 6:if(n.tag===6&&To(n),i=Ue,l=_t,Ue=null,bn(e,t,n),Ue=i,_t=l,Ue!==null)if(_t)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode),pe=!0}catch(a){xe(n,t,a)}else try{Ue.removeChild(n.stateNode),pe=!0}catch(a){xe(n,t,a)}break;case 18:Ue!==null&&(_t?(e=Ue,Vp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Oa(e)):Vp(Ue,n.stateNode));break;case 4:i=Ue,l=_t,Ue=n.stateNode.containerInfo,_t=!0,bn(e,t,n),Ue=i,_t=l;break;case 0:case 11:case 14:case 15:Wi(2,n,t),be||Wi(4,n,t),bn(e,t,n);break;case 1:be||(rt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Zy(n,t,i)),bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:be=(i=be)||n.memoizedState!==null,bn(e,t,n),be=i;break;case 30:rt(n,t),bn(e,t,n);break;case 7:be||rt(n,t),bn(e,t,n);break;default:bn(e,t,n)}}function ab(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oa(e)}catch(n){xe(t,t.return,n)}}}function ob(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oa(e)}catch(n){xe(t,t.return,n)}}function Yx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ep),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ep),t;default:throw Error(R(435,e.tag))}}function Fr(e,t){var n=Yx(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var l=ew.bind(null,e,i);i.then(l,l)}})}function Rt(e,t,n){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var a=i[l],o=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(nl(u.type)){Ue=u.stateNode,_t=!1;break e}break;case 5:Ue=u.stateNode,_t=!1;break e;case 3:case 4:Ue=u.stateNode.containerInfo,_t=!0;break e}u=u.return}if(Ue===null)throw Error(R(160));lb(o,r,a),Ue=null,_t=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)rb(t,e,n),t=t.sibling}var Sn=null;function rb(e,t,n){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(l&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var a=0;a<i.length;a++){var o=i[a];o.ref.impl=o.nextImpl}Rt(t,e,n),Ct(e),l&4&&(Wi(3,e,e.return),Wo(3,e),Wi(5,e,e.return));break;case 1:Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),l&64&&it&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(a=Sn,Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),l&4)if(l=i!==null?i.memoizedState:null,n=e.memoizedState,i===null)if(n===null)if(e.stateNode===null)if(it)e.stateNode=_b(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,l=a.ownerDocument||a;t:switch(t){case"title":i=l.getElementsByTagName("title")[0],(!i||i[Io]||i[ut]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=l.createElement(t),l.head.insertBefore(i,l.querySelector("head > title"))),dt(i,t,n),i[ut]=e,at(i),t=i;break e;case"link":if(a=Zp("link","href",l).get(t+(n.href||""))){for(o=0;o<a.length;o++)if(i=a[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(o,1);break t}}i=l.createElement(t),dt(i,t,n),l.head.appendChild(i);break;case"meta":if(a=Zp("meta","content",l).get(t+(n.content||""))){for(o=0;o<a.length;o++)if(i=a[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(o,1);break t}}i=l.createElement(t),dt(i,t,n),l.head.appendChild(i);break;default:throw Error(R(468,t))}i[ut]=e,at(i),t=i}e.stateNode=t}else it||Ff(a,e.type,e.stateNode);else e.stateNode=Qp(a,n,e.memoizedProps);else l!==n?(l===null?(t=i.stateNode,t===null||be||t.parentNode.removeChild(t)):l.count--,n===null?it||Ff(a,e.type,e.stateNode):Qp(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Os(e,e.memoizedProps,i.memoizedProps);break;case 27:Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),i!==null&&l&4&&Os(e,e.memoizedProps,i.memoizedProps);break;case 5:if(a=Un,Un=!1,Rt(t,e,n),Un=a,Ct(e),l&512&&(be||i===null||rt(i,i.return)),e.flags&32){t=e.stateNode;try{xa(t,""),pe=!0}catch(f){xe(e,e.return,f)}}l&4&&e.stateNode!=null&&(t=e.memoizedProps,Os(e,t,i!==null?i.memoizedProps:t)),l&1024&&(Ls=!0);break;case 6:if(Rt(t,e,n),Ct(e),l&4){if(e.stateNode===null)throw Error(R(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,pe=!0}catch(f){xe(e,e.return,f)}}break;case 3:if(pe=!1,bu=null,a=Sn,Sn=Go(t.containerInfo),Rt(t,e,n),Sn=a,Ct(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Oa(t.containerInfo)}catch(f){xe(e,e.return,f)}Ls&&(Ls=!1,ub(e)),pe=!1;break;case 4:l=Un,Un=it,i=zh(),a=Sn,Sn=Go(e.stateNode.containerInfo),Rt(t,e,n),Ct(e),Sn=a,pe&&po&&(Yu=!0),pe=i,Un=l;break;case 12:Rt(t,e,n),Ct(e);break;case 31:Rt(t,e,n),Ct(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Fr(e,t)));break;case 13:Rt(t,e,n),Ct(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(fc=Ft()),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Fr(e,t)));break;case 22:a=e.memoizedState!==null,o=i!==null&&i.memoizedState!==null;var r=it,u=be,c=Un;it=r||a,Un=c||a,be=u||o,Rt(t,e,n),be=u,Un=c,it=r,Ct(e),l&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,!a||i===null||o||it||be||(t=o||be,n=it,i=be,it=a||it,be=t,zi(e,2),it=n,be=i),!a&&Un||Lf(e,a)),l&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Fr(e,n))));break;case 19:Rt(t,e,n),Ct(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Fr(e,t)));break;case 30:l&512&&(be||i===null||rt(i,i.return)),l=zh(),a=po,o=(n&335544064)===n,r=e.memoizedProps,po=o&&vi(r.default,r.update)!=="none",Rt(t,e,n),Ct(e),o&&i!==null&&pe&&(e.flags|=4),po=a,pe=l;break;case 21:break;case 7:l&512&&(be||i===null||rt(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Rt(t,e,n),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Iy(i)){n=i;break}i=i.return}i=null;for(var l=e.return;l!==null;){if(Pd(l)){var a=l.stateNode;i===null?i=[a]:i.push(a)}if(Ud(l))break;l=l.return}var o=i;if(n==null)throw Error(R(160));switch(n.tag){case 27:var r=n.stateNode,u=Ds(e);Bu(e,u,r,o);break;case 5:var c=n.stateNode;n.flags&32&&(xa(c,""),n.flags&=-33);var f=Ds(e);Bu(e,f,c,o);break;case 3:case 4:var p=n.stateNode.containerInfo,s=Ds(e);Rf(e,s,p,o);break;default:throw Error(R(161))}}catch(h){xe(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ub(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ub(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,za=!0,t.reset(),za=!1),e=e.sibling}}function Ql(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)cb(t,e),t=t.sibling;else eb(t,!1)}function cb(e,t){var n=e.alternate;if(n===null)Cf(e,!1);else switch(e.tag){case 3:if(Df=Pn=!1,Mp(),Ql(t,e),!Pn&&!Yu){if(e=Bn,e!==null)for(var i=0;i<e.length;i+=3){n=e[i];var l=e[i+1];Ub(n,e[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+l+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Df=!0}Bn=null;break;case 5:Ql(t,e);break;case 4:i=Pn,Pn=!1,Ql(t,e),Pn&&(Yu=!0),Pn=i;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?Cf(e,!1):Ql(t,e));break;case 30:i=Pn,l=Mp(),Pn=!1,Ql(t,e),Pn&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=mi(a,o),o=mi(n.memoizedProps,o);var r=vi(a.default,a.update);r==="none"?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ut=0,t=kd(e,n,t,o,r,a,!0),Ut!==(a===null?0:a.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ea(e,e.memoizedProps.onUpdate),Bn=l):l!==null&&(l.push.apply(l,Bn),Bn=l),Pn=(e.flags&32)!==0?!0:i;break;default:Ql(t,e)}}function kn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tb(e,t.alternate,t),t=t.sibling}function zi(e,t){for(e=e.child;e!==null;){var n=e,i=t;switch(n.tag){case 0:case 11:case 14:case 15:Wi(4,n,n.return),zi(n,i);break;case 1:rt(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&Zy(n,n.return,l),zi(n,i);break;case 27:(i&2)!==0&&Xb(n.stateNode,n.type,n.memoizedProps);case 5:rt(n,n.return),n.tag!==5&&n.tag!==27||To(n),zi(n,i);break;case 6:To(n);break;case 26:rt(n,n.return),l=n.stateNode,n.memoizedState!==null||l===null||be||l.parentNode.removeChild(l),zi(n,i);break;case 22:n.memoizedState===null&&zi(n,i);break;case 30:rt(n,n.return),zi(n,i);break;case 7:rt(n,n.return);default:zi(n,i)}e=e.sibling}}function vn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var i=t.alternate,l=e,a=t,o=a.flags,r=(n&1)!==0;switch(a.tag){case 0:case 11:case 15:vn(l,a,n),Wo(4,a);break;case 1:if(vn(l,a,n),i=a,l=i.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(f){xe(i,i.return,f)}if(i=a,l=i.updateQueue,l!==null){var u=i.stateNode;try{var c=l.shared.hiddenCallbacks;if(c!==null)for(l.shared.hiddenCallbacks=null,l=0;l<c.length;l++)ny(c[l],u)}catch(f){xe(i,i.return,f)}}r&&o&64&&Qy(a),Vn(a,a.return);break;case 27:(n&2)!==0&&Jy(a);case 5:a.tag!==5&&a.tag!==27||xp(a),vn(l,a,n),r&&i===null&&o&4&&Nf(a),Vn(a,a.return);break;case 6:xp(a);break;case 26:u=a.stateNode,a.memoizedState!==null||u===null||it||Ff(Go(u.ownerDocument),a.type,u),vn(l,a,n),r&&i===null&&o&4&&Nf(a),Vn(a,a.return);break;case 12:vn(l,a,n);break;case 31:vn(l,a,n),r&&o&4&&ab(l,a);break;case 13:vn(l,a,n),r&&o&4&&ob(l,a);break;case 22:a.memoizedState===null&&vn(l,a,n),Vn(a,a.return);break;case 30:vn(l,a,n),Vn(a,a.return);break;case 7:Vn(a,a.return);default:vn(l,a,n)}t=t.sibling}}function Vd(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Fo(n))}function Bd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fo(e))}function on(e,t,n,i){var l=(n&335544064)===n;if(t.subtreeFlags&(l?10262:10256))for(t=t.child;t!==null;)sb(e,t,n,i),t=t.sibling;else l&&Wy(t)}function sb(e,t,n,i){var l=(n&335544064)===n;l&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&hu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,n,i),a&2048&&Wo(9,t);break;case 1:on(e,t,n,i);break;case 3:on(e,t,n,i),l&&Df&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Fo(a)));break;case 12:if(a&2048){on(e,t,n,i),a=t.stateNode;try{var o=t.memoizedProps,r=o.id,u=o.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(c){xe(t,t.return,c)}}else on(e,t,n,i);break;case 31:on(e,t,n,i);break;case 13:on(e,t,n,i);break;case 23:break;case 22:o=t.stateNode,r=t.alternate,t.memoizedState!==null?(l&&r!==null&&r.memoizedState===null&&hu(r),o._visibility&2?on(e,t,n,i):No(e,t)):(l&&r!==null&&r.memoizedState!==null&&hu(t),o._visibility&2?on(e,t,n,i):(o._visibility|=2,Il(e,t,n,i,(t.subtreeFlags&10256)!==0||!1))),a&2048&&Vd(r,t);break;case 24:on(e,t,n,i),a&2048&&Bd(t.alternate,t);break;case 30:l&&(a=t.alternate,a!==null&&(Qn(a.child,!0),Qn(t.child,!0))),on(e,t,n,i);break;default:on(e,t,n,i)}}function Il(e,t,n,i,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var a=e,o=t,r=n,u=i,c=o.flags;switch(o.tag){case 0:case 11:case 15:Il(a,o,r,u,l),Wo(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?Il(a,o,r,u,l):No(a,o):(f._visibility|=2,Il(a,o,r,u,l)),l&&c&2048&&Vd(o.alternate,o);break;case 24:Il(a,o,r,u,l),l&&c&2048&&Bd(o.alternate,o);break;default:Il(a,o,r,u,l)}t=t.sibling}}function No(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,l=i.flags;switch(i.tag){case 22:No(n,i),l&2048&&Vd(i.alternate,i);break;case 24:No(n,i),l&2048&&Bd(i.alternate,i);break;default:No(n,i)}t=t.sibling}}var pl=8192;function dl(e,t,n){if(e.subtreeFlags&pl)for(e=e.child;e!==null;)fb(e,t,n),e=e.sibling}function fb(e,t,n){switch(e.tag){case 26:dl(e,t,n),e.flags&pl&&(e.memoizedState!==null?Kw(n,Sn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Jp(n,e)));break;case 5:dl(e,t,n),e.flags&pl&&(e=e.stateNode,(t&335544128)===t&&Jp(n,e));break;case 3:case 4:var i=Sn;Sn=Go(e.stateNode.containerInfo),dl(e,t,n),Sn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=pl,pl=16777216,dl(e,t,n),pl=i):dl(e,t,n));break;case 30:if((e.flags&pl)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var l=e.stateNode;l.paired=null,It===null&&(It=new Map),It.set(i,l)}dl(e,t,n);break;default:dl(e,t,n)}}function db(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ro(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,hb(i,e)}db(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mb(e),e=e.sibling}function mb(e){switch(e.tag){case 0:case 11:case 15:ro(e),e.flags&2048&&Wi(9,e,e.return);break;case 3:ro(e);break;case 12:ro(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,pu(e)):ro(e);break;default:ro(e)}}function pu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,hb(i,e)}db(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wi(8,t,t.return),pu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,pu(t));break;default:pu(t)}e=e.sibling}}function hb(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:Wi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Fo(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,lt=i;else e:for(n=e;lt!==null;){i=lt;var l=i.sibling,a=i.return;if(ib(i),i===n){lt=null;break e}if(l!==null){l.return=a,lt=l;break e}lt=a}}}var qx={getCacheForType:function(e){var t=ct(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Qe).controller.signal}},jx=typeof WeakMap=="function"?WeakMap:Map,ge=0,Ne=null,se=null,de=0,ve=0,Kt=null,Pi=!1,Ua=!1,Gd=!1,yi=0,Be=0,el=0,wl=0,qu=0,Jt=0,Ma=0,Ro=null,Ht=null,Hf=!1,fc=0,pb=0,ju=1/0,Xu=null,Ki=null,ke=0,wn=null,zl=null,Kn=0,Uf=0,Pf=null,gb=null,ga=null,ya=null,ba=null,Co=0,gu=null;function en(){return(ge&2)!==0&&de!==0?de&-de:Q.T!==null?qd():Sg()}function yb(){if(Jt===0)if((de&536870912)===0||oe){var e=kr;kr<<=1,(kr&3932160)===0&&(kr=262144),Jt=e}else Jt=536870912;return e=mt.current,e!==null&&(e.flags|=32),Jt}function Ea(e,t){if(t!=null){var n=e.stateNode,i=n.ref;i===null&&(i=n.ref=kb(mi(e.memoizedProps,n))),ya===null&&(ya=[]),ya.push(t.bind(null,i))}}function kt(e,t,n){(e===Ne&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(Ta(e,0),ki(e,de,Jt,!1)),Zo(e,n),((ge&2)===0||e!==Ne)&&(e===Ne&&((ge&2)===0&&(wl|=n),Be===4&&ki(e,de,Jt,!1)),In(e))}function bb(e,t,n){if((ge&6)!==0)throw Error(R(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Qo(e,t),l=i?Qx(e,t):_s(e,t,!0),a=i;do{if(l===0){Ua&&!i&&ki(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!Xx(n)){l=_s(e,t,!1),a=!1;continue}if(l===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var r=e;l=Ro;var u=r.current.memoizedState.isDehydrated;if(u&&(Ta(r,o).flags|=256),o=_s(r,o,!1),o!==2&&o!==6){if(Gd&&!u){r.errorRecoveryDisabledLanes|=a,wl|=a,l=4;break e}a=Ht,Ht=l,a!==null&&(Ht===null?Ht=a:Ht.push.apply(Ht,a))}l=o}if(a=!1,l!==2)continue}}if(l===1){Ta(e,0),ki(e,t,0,!0);break}e:{switch(i=e,a=l,a){case 0:case 1:throw Error(R(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:ki(i,t,Jt,!Pi);break e;case 2:Ht=null;break;case 3:case 5:break;default:throw Error(R(329))}if((t&62914560)===t&&(l=fc+300-Ft(),10<l)){if(ki(i,t,Jt,!Pi),Fu(i,0,!0)!==0)break e;Kn=t,i.timeoutHandle=Xd(Tp.bind(null,i,n,Ht,Xu,Hf,t,Jt,wl,Ma,Pi,a,"Throttled",-0,0),l);break e}Tp(i,n,Ht,Xu,Hf,t,Jt,wl,Ma,Pi,a,null,-0,0)}}break}while(!0);In(e)}function Tp(e,t,n,i,l,a,o,r,u,c,f,p,s,h){e.timeoutHandle=-1;var S=t.subtreeFlags,b=(a&335544064)===a;if(p=null,(b||S&8192||(S&16785408)===16785408)&&(p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yn},It=null,fb(t,a,p),b&&(S=p,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(S.count++,S.waitingForViewTransition=!0,S=Yo.bind(S),b.finished.then(S,S))),S=(a&62914560)===a?fc-Ft():(a&4194048)===a?pb-Ft():0,S=Qw(p,S),S!==null)){Kn=a,e.cancelPendingCommit=S(Rp.bind(null,e,t,a,n,i,l,o,r,u,c,f,p,null,s,h)),ki(e,a,o,!c);return}Rp(e,t,a,n,i,l,o,r,u,c,f,p)}function Xx(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var l=n[i],a=l.getSnapshot;l=l.value;try{if(!tn(a(),l))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ki(e,t,n,i){t=pg(e,t),t&=~qu,t&=~wl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var l=t;0<l;){var a=31-Wt(l),o=1<<a;i[a]=-1,l&=~o}n!==0&&yg(e,n,t)}function dc(){return(ge&6)===0?(er(0,!1),!1):!0}function Yd(){if(se!==null){if(ve===0)var e=se.return;else e=se,ci=Hl=null,Td(e),ma=null,Ho=0,e=se;for(;e!==null;)Ky(e.alternate,e),e=e.return;se=null}}function Ta(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,mw(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Kn=0,Yd(),Ne=e,se=n=si(e.current,null),de=t,ve=0,Kt=null,Pi=!1,Ua=Qo(e,t),Gd=!1,Ma=Jt=qu=wl=el=Be=0,Ht=Ro=null,Hf=!1,yi=pg(e,t),nc(),n}function vb(e,t){ne=null,Q.H=Pu,t===_a||t===ac?(t=$h(),ve=3):t===yd?(t=$h(),ve=4):ve=t===Ld?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,se===null&&(Be=1,ku(e,fn(t,e.current)))}function Sb(){var e=mt.current;return e===null?!0:(de&4194048)===de?bt===null:(de&62914560)===de||(de&536870912)!==0?e===bt:!1}function xb(){var e=Q.H;return Q.H=Pu,e===null?Pu:e}function wb(){var e=Q.A;return Q.A=qx,e}function Ku(){Be=4,Pi||(de&4194048)!==de&&mt.current!==null||(Ua=!0),(el&134217727)===0&&(wl&134217727)===0||Ne===null||ki(Ne,de,Jt,!1)}function _s(e,t,n){var i=ge;ge|=2;var l=xb(),a=wb();(Ne!==e||de!==t)&&(Xu=null,Ta(e,t)),t=!1;var o=Be;e:do try{if(ve!==0&&se!==null){var r=se,u=Kt;switch(ve){case 8:Yd(),o=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var c=ve;if(ve=0,Kt=null,ua(e,r,u,c),n&&Ua){o=0;break e}break;default:c=ve,ve=0,Kt=null,ua(e,r,u,c)}}Kx(),o=Be;break}catch(f){vb(e,f)}while(!0);return t&&e.shellSuspendCounter++,ci=Hl=null,ge=i,Q.H=l,Q.A=a,se===null&&(Ne=null,de=0,nc()),o}function Kx(){for(;se!==null;)Mb(se)}function Qx(e,t){var n=ge;ge|=2;var i=xb(),l=wb();Ne!==e||de!==t?(Xu=null,ju=Ft()+500,Ta(e,t)):Ua=Qo(e,t);e:do try{if(ve!==0&&se!==null){t=se;var a=Kt;t:switch(ve){case 1:ve=0,Kt=null,ua(e,t,a,1);break;case 2:case 9:if(Fh(a)){ve=0,Kt=null,Np(t);break}t=function(){ve!==2&&ve!==9||Ne!==e||(ve=7),In(e)},a.then(t,t);break e;case 3:ve=7;break e;case 4:ve=5;break e;case 7:Fh(a)?(ve=0,Kt=null,Np(t)):(ve=0,Kt=null,ua(e,t,a,7));break;case 5:var o=null;switch(se.tag){case 26:o=se.memoizedState;case 5:case 27:var r=se;if(o?Zb(o):r.stateNode.complete){ve=0,Kt=null;var u=r.sibling;if(u!==null)se=u;else{var c=r.return;c!==null?(se=c,mc(c)):se=null}break t}}ve=0,Kt=null,ua(e,t,a,5);break;case 6:ve=0,Kt=null,ua(e,t,a,6);break;case 8:Yd(),Be=6;break e;default:throw Error(R(462))}}Zx();break}catch(f){vb(e,f)}while(!0);return ci=Hl=null,Q.H=i,Q.A=l,ge=n,se!==null?0:(Ne=null,de=0,nc(),Be)}function Zx(){for(;se!==null&&!fS();)Mb(se)}function Mb(e){var t=Xy(e.alternate,e,yi);e.memoizedProps=e.pendingProps,t===null?mc(e):se=t}function Np(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=hp(n,t,t.pendingProps,t.type,void 0,de);break;case 11:t=hp(n,t,t.pendingProps,t.type.render,t.ref,de);break;case 5:Td(t);var i=t;i===ot&&(oe?(zu(i),i.tag===5&&i.stateNode!=null&&(ze=i.stateNode)):(zu(i),oe=!0));default:Ky(n,t),t=se=Qg(t,yi),t=Xy(n,t,yi)}e.memoizedProps=e.pendingProps,t===null?mc(e):se=t}function ua(e,t,n,i){ci=Hl=null,Td(t),ma=null,Ho=0;var l=t.return;try{if(Hx(e,l,t,n,de)){Be=1,ku(e,fn(n,e.current)),se=null;return}}catch(a){if(l!==null)throw se=l,a;Be=1,ku(e,fn(n,e.current)),se=null;return}t.flags&32768?(oe||i===1?e=!0:Ua||(de&536870912)!==0?e=!1:(Pi=e=!0,(i===2||i===9||i===3||i===6)&&(i=mt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Eb(t,e)):mc(t)}function mc(e){var t=e;do{if((t.flags&32768)!==0){Eb(t,Pi);return}e=t.return;var n=Vx(t.alternate,t,yi);if(n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);Be===0&&(Be=5)}function Eb(e,t){do{var n=Bx(e.alternate,e);if(n!==null){n.flags&=32767,se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=n}while(e!==null);Be=6,se=null}function Rp(e,t,n,i,l,a,o,r,u,c,f,p){e.cancelPendingCommit=null;do hc();while(ke!==0);if((ge&6)!==0)throw Error(R(327));if(t!==null){if(t===e.current)throw Error(R(177));e===Ne&&(se=Ne=null,de=0),zl=t,wn=e,Kn=n,Pf=l,gb=i,Ix(e,t,n,o,r,u,p)}}function Ix(e,t,n,i,l,a,o){var r=t.lanes|t.childLanes;if(Uf=r,r|=fd,xS(e,n,r,i,l,a),ya=null,(n&335544064)===n?(ba=Mx(e),i=10262):(ba=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,tw(Tu,function(){return Gf(),null})):(e.callbackNode=null,e.callbackPriority=0),Gu=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null,l=ye.p,ye.p=2,a=ge,ge|=4;try{Gx(e,t,n)}finally{ge=a,ye.p=l,Q.T=i}}ke=1,Gu?ga=vw(o,e.containerInfo,ba,kf,Vf,Fx,Bf,Gf,Jx,null,null):(kf(),Vf(),Bf())}function Jx(e){if(ke!==0){var t=wn.onRecoverableError;t(e,{componentStack:null})}}function Fx(){ke===3&&(ke=0,cb(zl,wn),ke=4)}function kf(){if(ke===1){ke=0;var e=wn,t=zl,n=Kn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null;var l=ye.p;ye.p=2;var a=ge;ge|=4;try{po=Yu=!1,rb(t,e,n),n=Xf;var o=Vg(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(o!==r&&r&&r.ownerDocument&&kg(r.ownerDocument.documentElement,r)){if(u!==null&&sd(r)){var c=u.start,f=u.end;if(f===void 0&&(f=c),"selectionStart"in r)r.selectionStart=c,r.selectionEnd=Math.min(f,r.value.length);else{var p=r.ownerDocument||document,s=p&&p.defaultView||window;if(s.getSelection){var h=s.getSelection(),S=r.textContent.length,b=Math.min(u.start,S),v=u.end===void 0?b:Math.min(u.end,S);!h.extend&&b>v&&(o=v,v=b,b=o);var d=qh(r,b),m=qh(r,v);if(d&&m&&(h.rangeCount!==1||h.anchorNode!==d.node||h.anchorOffset!==d.offset||h.focusNode!==m.node||h.focusOffset!==m.offset)){var g=p.createRange();g.setStart(d.node,d.offset),h.removeAllRanges(),b>v?(h.addRange(g),h.extend(m.node,m.offset)):(g.setEnd(m.node,m.offset),h.addRange(g))}}}}for(p=[],h=r;h=h.parentNode;)h.nodeType===1&&p.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<p.length;r++){var x=p[r];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}za=!!jf,Xf=jf=null}finally{ge=a,ye.p=l,Q.T=i}}e.current=t,ke=2}}function Vf(){if(ke===2){ke=0;var e=wn,t=zl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Q.T,Q.T=null;var i=ye.p;ye.p=2;var l=ge;ge|=4;try{tb(e,t.alternate,t)}finally{ge=l,ye.p=i,Q.T=n}}ke=3}}function Bf(){if(ke===4||ke===3){ke=0;var e=ga;ga=null,dS();var t=wn,n=zl,i=Kn,l=gb,a=(i&335544064)===i?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?ke=5:(ke=0,zl=wn=null,Tb(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Ki=null),ld(i),n=n.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Ko,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=Q.T,a=ye.p,ye.p=2,Q.T=null;try{for(var o=t.onRecoverableError,r=0;r<l.length;r++){var u=l[r];o(u.value,{componentStack:u.stack})}}finally{Q.T=n,ye.p=a}}if(l=ya,o=ba,ba=null,l!==null&&(ya=null,o===null&&(o=[]),e!==null))for(u=0;u<l.length;u++)n=(0,l[u])(o),n!==void 0&&e.finished.finally(n);(Kn&3)!==0&&hc(),In(t),a=t.pendingLanes,(i&261930)!==0&&(a&42)!==0?t===gu?Co++:(Co=0,gu=t):(Co=0,gu=null),er(0,!1)}}function Tb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fo(t)))}function hc(){return ga!==null&&(ga.skipTransition(),ga=null),kf(),Vf(),Bf(),Gf()}function Gf(){if(ke!==5)return!1;var e=wn,t=Uf;Uf=0;var n=ld(Kn),i=Q.T,l=ye.p;try{ye.p=32>n?32:n,Q.T=null,n=Pf,Pf=null;var a=wn,o=Kn;if(ke=0,zl=wn=null,Kn=0,(ge&6)!==0)throw Error(R(331));var r=ge;if(ge|=4,mb(a.current),sb(a,a.current,o,n),ge=r,er(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Ko,a)}catch{}return!0}finally{ye.p=l,Q.T=i,Tb(e,t)}}function Cp(e,t,n){t=fn(n,t),t=Sf(e.stateNode,t,2),e=qi(e,t,2),e!==null&&(Zo(e,2),In(e))}function xe(e,t,n){if(e.tag===3)Cp(e,e,n);else for(;t!==null;){if(t.tag===3){Cp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ki===null||!Ki.has(i))){e=fn(n,e),n=By(2),i=qi(t,n,2),i!==null&&(Gy(n,i,t,e),Zo(i,2),In(i));break}}t=t.return}}function Hs(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new jx;var l=new Set;i.set(t,l)}else l=i.get(t),l===void 0&&(l=new Set,i.set(t,l));l.has(n)||(Gd=!0,l.add(n),e=$x.bind(null,e,t,n),t.then(e,e))}function $x(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ne===e&&(de&n)===n&&((Be===4||Be===3&&(de&62914560)===de&&300>Ft()-fc)&&(ge&2)===0?Ta(e,0):qu|=n,Ma===de&&(Ma=0)),In(e)}function Nb(e,t){t===0&&(t=gg()),e=_l(e,t),e!==null&&(Zo(e,t),In(e))}function Wx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nb(e,n)}function ew(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(R(314))}i!==null&&i.delete(t),Nb(e,n)}function tw(e,t){return nd(e,t)}var Na=null,Jl=null,Yf=!1,Qu=!1,Us=!1,Vi=0;function In(e){e!==Jl&&e.next===null&&(Jl===null?Na=Jl=e:Jl=Jl.next=e),Qu=!0,Yf||(Yf=!0,iw())}function er(e,t){if(!Us&&Qu){Us=!0;do for(var n=!1,i=Na;i!==null;){if(!t)if(e!==0){var l=i.pendingLanes;if(l===0)var a=0;else{var o=i.suspendedLanes,r=i.pingedLanes;a=(1<<31-Wt(42|e)+1)-1,a&=l&~(o&~r),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Ap(i,a))}else a=de,a=Fu(i,i===Ne?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(a&3)===0||Qo(i,a)||(n=!0,Ap(i,a));i=i.next}while(n);Us=!1}}function nw(){Rb()}function Rb(){Qu=Yf=!1;var e=0;Vi!==0&&dw()&&(e=Vi);for(var t=Ft(),n=null,i=Na;i!==null;){var l=i.next,a=Cb(i,t);a===0?(i.next=null,n===null?Na=l:n.next=l,l===null&&(Jl=n)):(n=i,(e!==0||(a&3)!==0)&&(Qu=!0)),i=l}ke!==0&&ke!==5||er(e,!1),Vi!==0&&(Vi=0)}function Cb(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Wt(a),r=1<<o,u=l[o];u===-1?((r&n)===0||(r&i)!==0)&&(l[o]=SS(r,t)):u<=t&&(e.expiredLanes|=r),a&=~r}if(t=Ne,n=de,n=Fu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(ve===2||ve===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&hs(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Qo(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&hs(i),ld(n)){case 2:case 8:n=mg;break;case 32:n=Tu;break;case 268435456:n=hg;break;default:n=Tu}return i=Ab.bind(null,e),n=nd(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&hs(i),e.callbackPriority=2,e.callbackNode=null,2}function Ab(e,t){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hc()&&e.callbackNode!==n)return null;var i=de;return i=Fu(e,e===Ne?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(bb(e,i,t),Cb(e,Ft()),e.callbackNode!=null&&e.callbackNode===n?Ab.bind(null,e):null)}function Ap(e,t){if(hc())return null;bb(e,t,!0)}function iw(){hw(function(){(ge&6)!==0?nd(dg,nw):Rb()})}function qd(){if(Vi===0){var e=Nl;e===0&&(e=Pr,Pr<<=1,(Pr&261888)===0&&(Pr=256)),Vi=e}return Vi}function zp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lu(e)}function lw(e,t,n,i,l){if(t==="submit"&&n&&n.stateNode===l){var a=zp((l[Bt]||null).action),o=i.submitter;o&&(t=(t=o[Bt]||null)?zp(t.formAction):o.getAttribute("formAction"),t!==null&&(a=t,o=null));var r=new Wu("action","action",null,i,l);e.push({event:r,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Vi!==0){var u=new FormData(l,o);bf(n,{pending:!0,data:u,method:l.method,action:a},null,u)}}else typeof a=="function"&&(r.preventDefault(),u=new FormData(l,o),bf(n,{pending:!0,data:u,method:l.method,action:a},a,u))},currentTarget:l}]})}}for($r=0;$r<rf.length;$r++)Wr=rf[$r],Op=Wr.toLowerCase(),Dp=Wr[0].toUpperCase()+Wr.slice(1),Mn(Op,"on"+Dp);var Wr,Op,Dp,$r;Mn(Gg,"onAnimationEnd");Mn(Yg,"onAnimationIteration");Mn(qg,"onAnimationStart");Mn("dblclick","onDoubleClick");Mn("focusin","onFocus");Mn("focusout","onBlur");Mn(px,"onTransitionRun");Mn(gx,"onTransitionStart");Mn(yx,"onTransitionCancel");Mn(jg,"onTransitionEnd");Sa("onMouseEnter",["mouseout","mouseover"]);Sa("onMouseLeave",["mouseout","mouseover"]);Sa("onPointerEnter",["pointerout","pointerover"]);Sa("onPointerLeave",["pointerout","pointerover"]);Dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Dl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ko="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),aw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ko));function zb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],l=i.event;i=i.listeners;e:{var a=void 0;if(t)for(var o=i.length-1;0<=o;o--){var r=i[o],u=r.instance,c=r.currentTarget;if(r=r.listener,u!==a&&l.isPropagationStopped())break e;a=r,l.currentTarget=c;try{a(l)}catch(f){Ru(f)}l.currentTarget=null,a=u}else for(o=0;o<i.length;o++){if(r=i[o],u=r.instance,c=r.currentTarget,r=r.listener,u!==a&&l.isPropagationStopped())break e;a=r,l.currentTarget=c;try{a(l)}catch(f){Ru(f)}l.currentTarget=null,a=u}}}}function ce(e,t){var n=t[Nh];n===void 0&&(n=t[Nh]=new Set);var i=e+"__bubble";n.has(i)||(Ob(t,e,2,!1),n.add(i))}function Ps(e,t,n){var i=0;t&&(i|=4),Ob(n,e,i,t)}var eu="_reactListening"+Math.random().toString(36).slice(2);function jd(e){if(!e[eu]){e[eu]=!0,wg.forEach(function(n){n!=="selectionchange"&&(aw.has(n)||Ps(n,!1,e),Ps(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[eu]||(t[eu]=!0,Ps("selectionchange",!1,t))}}function Ob(e,t,n,i){switch(t0(t)){case 2:var l=Fw;break;case 8:l=$w;break;default:l=Fd}n=l.bind(null,t,n,e),l=void 0,!nf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),i?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function ks(e,t,n,i,l){var a=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var r=i.stateNode.containerInfo;if(r===l)break;if(o===4)for(o=i.return;o!==null;){var u=o.tag;if((u===3||u===4)&&o.stateNode.containerInfo===l)return;o=o.return}for(;r!==null;){if(o=gl(r),o===null)return;if(u=o.tag,u===5||u===6||u===26||u===27){i=a=o;continue e}r=r.parentNode}}i=i.return}zg(function(){var c=a,f=od(n),p=[];e:{var s=Xg.get(e);if(s!==void 0){var h=Wu,S=e;switch(e){case"keypress":if(ou(n)===0)break e;case"keydown":case"keyup":h=XS;break;case"focusin":S="focus",h=Ss;break;case"focusout":S="blur",h=Ss;break;case"beforeblur":case"afterblur":h=Ss;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=_h;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=LS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=JS;break;case Gg:case Yg:case qg:h=US;break;case jg:h=$S;break;case"scroll":case"scrollend":h=OS;break;case"wheel":h=ex;break;case"copy":case"cut":case"paste":h=kS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Uh;break;case"submit":h=ZS;break;case"toggle":case"beforetoggle":h=nx}var b=(t&4)!==0,v=!b&&(e==="scroll"||e==="scrollend"),d=b?s!==null?s+"Capture":null:s;b=[];for(var m=c,g;m!==null;){var x=m;if(g=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||g===null||d===null||(x=zo(m,d),x!=null&&b.push(Vo(m,x,g))),v)break;m=m.return}0<b.length&&(s=new h(s,S,null,n,f),p.push({event:s,listeners:b}))}}if((t&7)===0){e:{if(h=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout",h&&n!==tf&&(S=n.relatedTarget||n.fromElement)&&(gl(S)||S[Da]))break e;(s||h)&&(S=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,s?(h=n.relatedTarget||n.toElement,s=c,h=h?gl(h):null,h!==null&&(v=Xo(h),b=h.tag,h!==v||b!==5&&b!==27&&b!==6)&&(h=null)):(s=null,h=c),s!==h&&(b=_h,x="onMouseLeave",d="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(b=Uh,x="onPointerLeave",d="onPointerEnter",m="pointer"),v=s==null?S:mo(s),g=h==null?S:mo(h),S=new b(x,m+"leave",s,n,f),S.target=v,S.relatedTarget=g,x=null,gl(f)===c&&(b=new b(d,m+"enter",h,n,f),b.target=g,b.relatedTarget=v,x=b),v=x,b=s&&h?qs(s,h,ow):null,s!==null&&Lp(p,S,s,b,!1),h!==null&&v!==null&&Lp(p,v,h,b,!0)))}e:{if(s=c?mo(c):window,h=s.nodeName&&s.nodeName.toLowerCase(),h==="select"||h==="input"&&s.type==="file")var M=Bh;else if(Vh(s))if(Ug)M=dx;else{M=sx;var T=cx}else h=s.nodeName,!h||h.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&ad(c.elementType)&&(M=Bh):M=fx;if(M&&(M=M(e,c))){Hg(p,M,n,f);break e}T&&T(e,s,c)}switch(T=c?mo(c):window,e){case"focusin":(Vh(T)||T.contentEditable==="true")&&(na=T,af=c,bo=null);break;case"focusout":bo=af=na=null;break;case"mousedown":of=!0;break;case"contextmenu":case"mouseup":case"dragend":of=!1,jh(p,n,f);break;case"selectionchange":if(hx)break;case"keydown":case"keyup":jh(p,n,f)}var w;if(cd)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else ta?Lg(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Dg&&n.locale!=="ko"&&(ta||N!=="onCompositionStart"?N==="onCompositionEnd"&&ta&&(w=Og()):(Hi=f,rd="value"in Hi?Hi.value:Hi.textContent,ta=!0)),T=Zu(c,N),0<T.length&&(N=new Hh(N,e,null,n,f),p.push({event:N,listeners:T}),w?N.data=w:(w=_g(n),w!==null&&(N.data=w)))),(w=lx?ax(e,n):ox(e,n))&&(N=Zu(c,"onBeforeInput"),0<N.length&&(T=new Hh("onBeforeInput","beforeinput",null,n,f),p.push({event:T,listeners:N}),T.data=w)),lw(p,e,c,n,f)}zb(p,t)})}function Vo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zu(e,t){for(var n=t+"Capture",i=[];e!==null;){var l=e,a=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||a===null||(l=zo(e,n),l!=null&&i.unshift(Vo(e,l,a)),l=zo(e,t),l!=null&&i.push(Vo(e,l,a))),e.tag===3)return i;e=e.return}return[]}function ow(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Lp(e,t,n,i,l){for(var a=t._reactName,o=[];n!==null&&n!==i;){var r=n,u=r.alternate,c=r.stateNode;if(r=r.tag,u!==null&&u===i)break;r!==5&&r!==26&&r!==27||c===null||(u=c,l?(c=zo(n,a),c!=null&&o.unshift(Vo(n,c,u))):l||(c=zo(n,a),c!=null&&o.push(Vo(n,c,u)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var rw=/\r\n?/g,uw=/\u0000|\uFFFD/g;function _p(e){return(typeof e=="string"?e:""+e).replace(rw,`
|
|
778
|
+
`).replace(uw,"")}function Db(e,t){return t=_p(t),_p(e)===t}function Se(e,t,n,i,l,a){switch(n){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||xa(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&xa(e,""+i);else return;break;case"className":Br(e,"class",i);break;case"tabIndex":Br(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Br(e,n,i);break;case"style":Ag(e,i,a);return;case"data":if(t!=="object"){Br(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=lu(i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(t!=="input"&&Se(e,t,"name",l.name,l,null),Se(e,t,"formEncType",l.formEncType,l,null),Se(e,t,"formMethod",l.formMethod,l,null),Se(e,t,"formTarget",l.formTarget,l,null)):(Se(e,t,"encType",l.encType,l,null),Se(e,t,"method",l.method,l,null),Se(e,t,"target",l.target,l,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=lu(i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Yn);return;case"onScroll":i!=null&&ce("scroll",e);return;case"onScrollEnd":i!=null&&ce("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(R(60));a?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=lu(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":ce("beforetoggle",e),ce("toggle",e),iu(e,"popover",i);break;case"xlinkActuate":oi(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":oi(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":oi(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":oi(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":oi(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":oi(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":oi(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":oi(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":oi(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":iu(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=AS.get(n)||n,iu(e,n,i);else return}pe=!0}function qf(e,t,n,i,l,a){switch(n){case"style":Ag(e,i,a);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(R(60));a?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof i=="string")xa(e,i);else if(typeof i=="number"||typeof i=="bigint")xa(e,""+i);else return;break;case"onScroll":i!=null&&ce("scroll",e);return;case"onScrollEnd":i!=null&&ce("scrollend",e);return;case"onClick":i!=null&&(e.onclick=Yn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Mg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),a=n.slice(2,l?n.length-7:void 0),t=e[Bt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(a,t,l),typeof i=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,i,l);break e}pe=!0,n in e?e[n]=i:i===!0?e.setAttribute(n,""):iu(e,n,i)}return}pe=!0}function dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var i=!1,l=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(R(137,t));default:Se(e,t,a,o,n,null)}}l&&Se(e,t,"srcSet",n.srcSet,n,null),i&&Se(e,t,"src",n.src,n,null);return;case"input":ce("invalid",e);var r=a=o=l=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"name":l=f;break;case"type":o=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":a=f;break;case"defaultValue":r=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(R(137,t));break;default:Se(e,t,i,f,n,null)}}Ng(e,a,r,u,c,o,l,!1);return;case"select":ce("invalid",e),i=o=a=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":a=r;break;case"defaultValue":o=r;break;case"multiple":i=r;default:Se(e,t,l,r,n,null)}t=a,n=o,e.multiple=!!i,t!=null?sa(e,!!i,t,!1):n!=null&&sa(e,!!i,n,!0);return;case"textarea":ce("invalid",e),a=l=i=null;for(o in n)if(n.hasOwnProperty(o)&&(r=n[o],r!=null))switch(o){case"value":i=r;break;case"defaultValue":l=r;break;case"children":a=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(R(91));break;default:Se(e,t,o,r,n,null)}Cg(e,i,l,a);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Se(e,t,u,i,n,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(i=0;i<ko.length;i++)ce(ko[i],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(R(137,t));default:Se(e,t,c,i,n,null)}return;default:if(ad(t)){for(f in n)n.hasOwnProperty(f)&&(i=n[f],i!==void 0&&qf(e,t,f,i,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(i=n[r],i!=null&&Se(e,t,r,i,n,null))}var cw={};function sw(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,a=null,o=null,r=null,u=null,c=null,f=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&p!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":u=p;default:i.hasOwnProperty(h)||Se(e,t,h,null,i,p)}}for(var s in i){var h=i[s];if(p=n[s],i.hasOwnProperty(s)&&(h!=null||p!=null))switch(s){case"type":h!==p&&(pe=!0),a=h;break;case"name":h!==p&&(pe=!0),l=h;break;case"checked":h!==p&&(pe=!0),c=h;break;case"defaultChecked":h!==p&&(pe=!0),f=h;break;case"value":h!==p&&(pe=!0),o=h;break;case"defaultValue":h!==p&&(pe=!0),r=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(R(137,t));break;default:h!==p&&Se(e,t,s,h,i,p)}}ef(e,o,r,u,c,f,a,l);return;case"select":h=o=r=s=null;for(a in n)if(u=n[a],n.hasOwnProperty(a)&&u!=null)switch(a){case"value":break;case"multiple":h=u;default:i.hasOwnProperty(a)||Se(e,t,a,null,i,u)}for(l in i)if(a=i[l],u=n[l],i.hasOwnProperty(l)&&(a!=null||u!=null))switch(l){case"value":a!==u&&(pe=!0),s=a;break;case"defaultValue":a!==u&&(pe=!0),r=a;break;case"multiple":a!==u&&(pe=!0),o=a;default:a!==u&&Se(e,t,l,a,i,u)}t=r,n=o,i=h,s!=null?sa(e,!!n,s,!1):!!i!=!!n&&(t!=null?sa(e,!!n,t,!0):sa(e,!!n,n?[]:"",!1));return;case"textarea":h=s=null;for(r in n)if(l=n[r],n.hasOwnProperty(r)&&l!=null&&!i.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:Se(e,t,r,null,i,l)}for(o in i)if(l=i[o],a=n[o],i.hasOwnProperty(o)&&(l!=null||a!=null))switch(o){case"value":l!==a&&(pe=!0),s=l;break;case"defaultValue":l!==a&&(pe=!0),h=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(R(91));break;default:l!==a&&Se(e,t,o,l,i,a)}Rg(e,s,h);return;case"option":for(var S in n)if(s=n[S],n.hasOwnProperty(S)&&s!=null&&!i.hasOwnProperty(S))switch(S){case"selected":e.selected=!1;break;default:Se(e,t,S,null,i,s)}for(u in i)if(s=i[u],h=n[u],i.hasOwnProperty(u)&&s!==h&&(s!=null||h!=null))switch(u){case"selected":s!==h&&(pe=!0),e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Se(e,t,u,s,i,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)s=n[b],n.hasOwnProperty(b)&&s!=null&&!i.hasOwnProperty(b)&&Se(e,t,b,null,i,s);for(c in i)if(s=i[c],h=n[c],i.hasOwnProperty(c)&&s!==h&&(s!=null||h!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(R(137,t));break;default:Se(e,t,c,s,i,h)}return;default:if(ad(t)){for(var v in n)s=n[v],n.hasOwnProperty(v)&&s!==void 0&&!i.hasOwnProperty(v)&&qf(e,t,v,void 0,i,s);for(f in i)s=i[f],h=n[f],!i.hasOwnProperty(f)||s===h||s===void 0&&h===void 0||qf(e,t,f,s,i,h);return}}for(var d in n)s=n[d],n.hasOwnProperty(d)&&s!=null&&!i.hasOwnProperty(d)&&Se(e,t,d,null,i,s);for(p in i)s=i[p],h=n[p],!i.hasOwnProperty(p)||s===h||s==null&&h==null||Se(e,t,p,s,i,h)}function Hp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fw(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var l=n[i],a=l.transferSize,o=l.initiatorType,r=l.duration;if(a&&r&&Hp(o)){for(o=0,r=l.responseEnd,i+=1;i<n.length;i++){var u=n[i],c=u.startTime;if(c>r)break;var f=u.transferSize,p=u.initiatorType;f&&Hp(p)&&(u=u.responseEnd,o+=f*(u<r?1:(r-c)/(u-c)))}if(--i,t+=8*(a+o)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var jf=null,Xf=null;function Bo(e){return e.nodeType===9?e:e.ownerDocument}function Up(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Lb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function _b(e,t,n,i){return n=Bo(n).createElement(e),n[ut]=i,n[Bt]=t,dt(n,e,t),at(n),n}function Kf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vs=null;function dw(){var e=window.event;return e&&e.type==="popstate"?e===Vs?!1:(Vs=e,!0):(Vs=null,!1)}var Xd=typeof setTimeout=="function"?setTimeout:void 0,mw=typeof clearTimeout=="function"?clearTimeout:void 0,Pp=typeof Promise=="function"?Promise:void 0,kp=typeof requestAnimationFrame=="function"?requestAnimationFrame:Xd,hw=typeof queueMicrotask=="function"?queueMicrotask:typeof Pp<"u"?function(e){return Pp.resolve(null).then(e).catch(pw)}:Xd;function pw(e){setTimeout(function(){throw e})}function nl(e){return e==="head"}function Vp(e,t){var n=t,i=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(l),Oa(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Gs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Gs(n);for(var a=n.firstChild;a;){var o=a.nextSibling,r=a.nodeName;a[Io]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=o}}else n==="body"&&Gs(e.ownerDocument.body);n=l}while(n);Oa(t)}function Bp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Hb(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var l=i=0;l<t.length;l++){var a=t[l];0<a.width&&0<a.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Ub(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Pb(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Qf(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return Pb(t,n,e)}function gw(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Pb(t,n,e)}function yw(e){return e.documentElement.clientHeight}function bw(e){this.addEventListener("load",e),this.addEventListener("error",e)}function vw(e,t,n,i,l,a,o,r,u){var c=t.nodeType===9?t:t.ownerDocument;try{var f=c.startViewTransition({update:function(){var s=c.defaultView,h=s.navigation&&s.navigation.transition,S=c.fonts.status;i();var b=[];if(S==="loaded"&&(yw(c),c.fonts.status==="loading"&&b.push(c.fonts.ready)),S=b.length,e!==null)for(var v=e.suspenseyImages,d=0,m=0;m<v.length;m++){var g=v[m];if(!g.complete){var x=g.getBoundingClientRect();if(0<x.bottom&&0<x.right&&x.top<s.innerHeight&&x.left<s.innerWidth){if(d+=Ib(g),d>vu){b.length=S;break}g=new Promise(bw.bind(g)),b.push(g)}}}if(0<b.length)return s=Promise.race([Promise.all(b),new Promise(function(M){return setTimeout(M,500)})]).then(l,l),(h?Promise.allSettled([h.finished,s]):s).then(a,a);if(l(),h)return h.finished.then(a,a);a()},types:n});c.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),h=0;h<s.length;h++){var S=s[h],b=S.effect,v=b.pseudoElement;if(v!=null&&v.startsWith("::view-transition")){p.push(S),S=b.getKeyframes();for(var d=v=void 0,m=!0,g=0;g<S.length;g++){var x=S[g],M=x.width;if(v===void 0)v=M;else if(v!==M){m=!1;break}if(M=x.height,d===void 0)d=M;else if(d!==M){m=!1;break}delete x.width,delete x.height,x.transform==="none"&&delete x.transform}m&&v!==void 0&&d!==void 0&&(b.setKeyframes(S),m=getComputedStyle(b.target,b.pseudoElement),m.width!==v||m.height!==d)&&(m=S[0],m.width=v,m.height=d,m=S[S.length-1],m.width=v,m.height=d,b.setKeyframes(S))}}o()},function(s){c.__reactViewTransition===f&&(c.__reactViewTransition=null);try{if(typeof s=="object"&&s!==null)switch(s.name){case"InvalidStateError":(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null)}s!==null&&u(s)}finally{i(),l(),o()}}),f.finished.finally(function(){for(var s=0;s<p.length;s++)p[s].cancel();c.__reactViewTransition===f&&(c.__reactViewTransition=null),r()}),f}catch{return i(),l(),o(),null}}function yl(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}yl.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Re({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};yl.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),i=[],l=0;l<n.length;l++){var a=n[l].effect;a!==null&&a.target===e&&a.pseudoElement===t&&i.push(n[l])}return i};yl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function kb(e){return{name:e,group:new yl("group",e),imagePair:new yl("image-pair",e),old:new yl("old",e),new:new yl("new",e)}}function nn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}nn.prototype.addEventListener=function(e,t,n){var i=null,l=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Vb(a,e,t,n)===-1){var o=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){o.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),i!==null&&(l=o.removeEventListener.bind(o,e,t,n),i.addEventListener("abort",l,{once:!0}),l=i.removeEventListener.bind(i,"abort",l)),i=Ra(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:l}),Vt(this._fragmentFiber.child,!1,Sw,e,r,i)}this._eventListeners=a}};function Sw(e,t,n,i){return Je(e).addEventListener(t,n,i),!1}nn.prototype.removeEventListener=function(e,t,n){var i=this._eventListeners;if(i!==null&&(t=Vb(i,e,t,n),t!==-1)){var l=i[t];n=l.attachedListener;var a=l.cleanup;l=Ra(l.optionsOrUseCapture),Vt(this._fragmentFiber.child,!1,xw,e,n,l),i.splice(t,1),a!==null&&a()}};function xw(e,t,n,i){return Je(e).removeEventListener(t,n,i),!1}function Ra(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Gp(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Vb(e,t,n,i){if(e.length===0)return-1;i=Gp(i);for(var l=0;l<e.length;l++){var a=e[l];if(a.type===t&&a.listener===n&&Gp(a.optionsOrUseCapture)===i)return l}return-1}nn.prototype.dispatchEvent=function(e){var t=Ol(this._fragmentFiber);if(t===null)return!0;t=Je(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var l=0;l<n.length;l++){var a=n[l];i.addEventListener(a.type,a.attachedListener,Ra(a.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),n)for(l=0;l<n.length;l++)a=n[l],i.removeEventListener(a.type,a.attachedListener,Ra(a.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)};nn.prototype.focus=function(e){Vt(this._fragmentFiber.child,!0,Bb,e,void 0,void 0)};function Bb(e,t){return e.tag===6?!1:(e=Je(e),Lw(e,t))}nn.prototype.focusLast=function(e){var t=[];Vt(this._fragmentFiber.child,!0,Kd,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Bb(t[n],e);n--);};function Kd(e,t){return t.push(e),!1}nn.prototype.blur=function(){var e=Ol(this._fragmentFiber);e!==null&&(e=Je(e),e=Bo(e).activeElement,e!==null&&Vt(this._fragmentFiber.child,!1,ww,e,void 0,void 0))};function ww(e,t){return e.tag===6?!1:(e=Je(e),e===t||e.contains(t)?(t.blur(),!0):!1)}nn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Vt(this._fragmentFiber.child,!1,Mw,e,void 0,void 0)};function Mw(e,t){return e.tag===6||(e=Je(e),t.observe(e)),!1}nn.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Vt(this._fragmentFiber.child,!1,Ew,e,void 0,void 0);for(var n=t=0;n<xn.length;n++){var i=xn[n];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):xn[t++]=i}xn.length=t}};function Ew(e,t){return e.tag===6||(e=Je(e),t.unobserve(e)),!1}var xn=[],Bs=!1;function Tw(e,t,n){xn.push({fragmentInstance:e,observer:t,instance:n}),Bs||(Bs=!0,_w(function(){Bs=!1;var i=xn;xn=[];for(var l=0;l<i.length;l++){var a=i[l];a.observer.unobserve(a.instance)}}))}nn.prototype.getClientRects=function(){var e=[];return Vt(this._fragmentFiber.child,!1,Nw,e,void 0,void 0),e};function Nw(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Je(e),t.push.apply(t,e.getClientRects());return!1}nn.prototype.getRootNode=function(e){var t=Ol(this._fragmentFiber);return t===null?this:Je(t).getRootNode(e)};nn.prototype.compareDocumentPosition=function(e){var t=Ol(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Vt(this._fragmentFiber.child,!1,Kd,n,void 0,void 0);var i=Je(t);if(n.length===0){if(n=i,Sh(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var l=i=n.compareDocumentPosition(e);return n===e?l=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=ug(t)[1],n===null?l=Node.DOCUMENT_POSITION_PRECEDING:(e=Je(n).compareDocumentPosition(e),l=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),l|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Je(n[0]),l=Je(n[n.length-1]);var a=Sh(this._fragmentFiber)?t.parentElement:i;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),r=l.compareDocumentPosition(e),u=o&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=i&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||a&&l===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!a&&l===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Rw(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Rw(e,t,n,i,l){var a=gl(l);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)e:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break e}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=l.ownerDocument,l===a||l===a.documentElement||l===a.body;e:{for(a=t,t=Ol(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break e}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=qs(n,a,xh),t===null?t=!1:(Vt(t,!0,iS,a,n),a=Fl,Fl=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===i)&&(t=qs(i,a,xh),t===null?t=!1:(Vt(t,!0,lS,a,i),a=Fl,Ys=Fl=null,t=a!==null)),t):!1}function Yp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}nn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(R(566));var t=[];Vt(this._fragmentFiber.child,!1,Kd,t,void 0,void 0);var n=e!==!1;if(t.length===0){var i=ug(this._fragmentFiber);if(i=n?i[1]||i[0]||Ol(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=Je(i),Yp(e,n);return}if(i=Je(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=n?t.length-1:0;i!==(n?-1:t.length);){var l=t[i];l.tag===6?(l=Je(l),Yp(l,n)):Je(l).scrollIntoView(e),i+=n?-1:1}};function Cw(e,t){return e=Je(e),Gb(e,t),!1}function Gb(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Yb(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];e.addEventListener(l.type,l.attachedListener,Ra(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(a){for(var o=0,r=0;r<xn.length;r++){var u=xn[r];(u.fragmentInstance!==t||u.observer!==a||u.instance!==e)&&(xn[o++]=u)}xn.length=o,a.observe(e)}),Gb(e,t))}function Aw(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];e.removeEventListener(l.type,l.attachedListener,Ra(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(a){typeof a.rootMargin=="string"?Tw(t,a,e):a.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Zf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Zf(n),$u(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function zw(e,t,n,i){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Io])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=mn(e.nextSibling),e===null)break}return null}function Ow(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=mn(e.nextSibling),e===null))return null;return e}function qb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=mn(e.nextSibling),e===null))return null;return e}function If(e){return e.data==="$?"||e.data==="$~"}function Qd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Dw(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function mn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Jf=null;function qp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return mn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function jp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Lw(e,t){function n(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return i}function _w(e){kp(function(){kp(function(t){return e(t)})})}function jb(e,t,n){switch(t=Bo(n),e){case"html":if(e=t.documentElement,!e)throw Error(R(452));return e;case"head":if(e=t.head,!e)throw Error(R(453));return e;case"body":if(e=t.body,!e)throw Error(R(454));return e;default:throw Error(R(451))}}function Xb(e,t,n){for(var i in n){var l=n[i];n.hasOwnProperty(i)&&l!=null&&Se(e,t,i,null,cw,l)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Yn&&(e.onclick=null),$u(e)}function Gs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$u(e)}var hn=new Map,Xp=new Set;function Go(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Si=ye.d;ye.d={f:Hw,r:Uw,D:Pw,C:kw,L:Vw,m:Bw,X:Yw,S:Gw,M:qw};function Hw(){var e=Si.f(),t=dc();return e||t}function Uw(e){var t=La(e);t!==null&&t.tag===5&&t.type==="form"?Ay(t):Si.r(e)}var Pa=typeof document>"u"?null:document;function Kb(e,t,n){var i=Pa;if(i&&typeof t=="string"&&t){var l=sn(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),Xp.has(l)||(Xp.add(l),e={rel:e,crossOrigin:n,href:t},i.querySelector(l)===null&&(t=i.createElement("link"),dt(t,"link",e),at(t),i.head.appendChild(t)))}}function Pw(e){Si.D(e),Kb("dns-prefetch",e,null)}function kw(e,t){Si.C(e,t),Kb("preconnect",e,t)}function Vw(e,t,n){Si.L(e,t,n);var i=Pa;if(i&&e&&t){var l='link[rel="preload"][as="'+sn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+sn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+sn(n.imageSizes)+'"]')):l+='[href="'+sn(e)+'"]';var a=l;switch(t){case"style":a=Ca(e);break;case"script":a=ka(e)}if(!(hn.has(a)||(e=Re({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),hn.set(a,e),i.querySelector(l)!==null||t==="style"&&i.querySelector(tr(a))||t==="script"&&i.querySelector(nr(a))))){var o=i.createElement("link");dt(o,"link",e),t==="style"&&(o[Nu]=!0,o.onload=o.onerror=function(){xg(o)}),at(o),i.head.appendChild(o)}}}function Bw(e,t){Si.m(e,t);var n=Pa;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+sn(i)+'"][href="'+sn(e)+'"]',a=l;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=ka(e)}if(!hn.has(a)&&(e=Re({rel:"modulepreload",href:e},t),hn.set(a,e),n.querySelector(l)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(nr(a)))return}i=n.createElement("link"),dt(i,"link",e),at(i),n.head.appendChild(i)}}}function Gw(e,t,n){Si.S(e,t,n);var i=Pa;if(i&&e){var l=ca(i).hoistableStyles,a=Ca(e);t=t||"default";var o=l.get(a);if(!o){var r={loading:0,preload:null};if(o=i.querySelector(tr(a)))r.loading=5;else{e=Re({rel:"stylesheet",href:e,"data-precedence":t},n),(n=hn.get(a))&&Zd(e,n);var u=o=i.createElement("link");at(u),dt(u,"link",e),u._p=new Promise(function(c,f){u.onload=c,u.onerror=f}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,yu(o,t,i)}o={type:"stylesheet",instance:o,count:1,state:r},l.set(a,o)}}}function Yw(e,t){Si.X(e,t);var n=Pa;if(n&&e){var i=ca(n).hoistableScripts,l=ka(e),a=i.get(l);a||(a=n.querySelector(nr(l)),a||(e=Re({src:e,async:!0},t),(t=hn.get(l))&&Id(e,t),a=n.createElement("script"),at(a),dt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(l,a))}}function qw(e,t){Si.M(e,t);var n=Pa;if(n&&e){var i=ca(n).hoistableScripts,l=ka(e),a=i.get(l);a||(a=n.querySelector(nr(l)),a||(e=Re({src:e,async:!0,type:"module"},t),(t=hn.get(l))&&Id(e,t),a=n.createElement("script"),at(a),dt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(l,a))}}function Kp(e,t,n,i){var l=(l=Bi.current)?Go(l):null;if(!l)throw Error(R(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Ca(n.href),t=ca(l).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ca(n.href);var a=ca(l).hoistableStyles,o=a.get(e);if(o||(l=l.ownerDocument||l,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=l.querySelector(tr(e)))?a._p||(o.instance=a,o.state.loading=5):(a=hn.get(e),a||(a={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hn.set(e,a)),jw(l,e,a,o.state))),t&&i===null)throw Error(R(528,""));return o}if(t&&i!==null)throw Error(R(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=ka(n),t=ca(l).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(R(444,e))}}function Ca(e){return'href="'+sn(e)+'"'}function tr(e){return'link[rel="stylesheet"]['+e+"]"}function Qb(e){return Re({},e,{"data-precedence":e.precedence,precedence:null})}function jw(e,t,n,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Nu]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[Nu]=!0,t.onload=t.onerror=xg.bind(null,t),dt(t,"link",n),at(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function ka(e){return'[src="'+sn(e)+'"]'}function nr(e){return"script[async]"+e}function Qp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+sn(n.href)+'"]');if(i)return t.instance=i,at(i),i;var l=Re({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),at(i),dt(i,"style",l),yu(i,n.precedence,e),t.instance=i;case"stylesheet":l=Ca(n.href);var a=e.querySelector(tr(l));if(a)return t.state.loading|=4,t.instance=a,at(a),a;i=Qb(n),(l=hn.get(l))&&Zd(i,l),a=(e.ownerDocument||e).createElement("link"),at(a);var o=a;return o._p=new Promise(function(r,u){o.onload=r,o.onerror=u}),dt(a,"link",i),t.state.loading|=4,yu(a,n.precedence,e),t.instance=a;case"script":return a=ka(n.src),(l=e.querySelector(nr(a)))?(t.instance=l,at(l),l):(i=n,(l=hn.get(a))&&(i=Re({},n),Id(i,l)),e=e.ownerDocument||e,l=e.createElement("script"),at(l),dt(l,"link",i),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(R(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,yu(i,n.precedence,e));return t.instance}function yu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=i.length?i[i.length-1]:null,a=l,o=0;o<i.length;o++){var r=i[o];if(r.dataset.precedence===t)a=r;else if(a!==l)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Zd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bu=null;function Zp(e,t,n){if(bu===null){var i=new Map,l=bu=new Map;l.set(n,i)}else l=bu,i=l.get(n),i||(i=new Map,l.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var a=n[l];if(!(a[Io]||a[ut]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var o=a.getAttribute(t)||"";o=e+o;var r=i.get(o);r?r.push(a):i.set(o,[a])}}return i}function Ff(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Xw(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ip(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Zb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ib(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Jp(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Ib(t),e.suspenseyImages.push(t)),e=Zw.bind(e),t.decode().then(e,e))}function Kw(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=Ca(i.href),a=t.querySelector(tr(l));if(a){t=a._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,at(a);return}a=t.ownerDocument||t,i=Qb(i),(l=hn.get(l))&&Zd(i,l),a=a.createElement("link"),at(a);var o=a;o._p=new Promise(function(r,u){o.onload=r,o.onerror=u}),dt(a,"link",i),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Yo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var vu=0;function Qw(e,t){return e.stylesheets&&e.count===0&&Su(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Su(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4+t);0<e.imgBytes&&vu===0&&(vu=62500*fw());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Su(e,e.stylesheets),e.unsuspend)){var a=e.unsuspend;e.unsuspend=null,a()}},(e.imgBytes>vu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(l)}}:null}function Jb(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Su(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Yo(){this.count--,Jb(this)}function Zw(){this.imgCount--,Jb(this)}var Iu=null;function Su(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Iu=new Map,t.forEach(Iw,e),Iu=null,Yo.call(e))}function Iw(e,t){if(!(t.state.loading&4)){var n=Iu.get(e);if(n)var i=n.get(null);else{n=new Map,Iu.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<l.length;a++){var o=l[a];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),i=o)}i&&n.set(null,i)}l=t.instance,o=l.getAttribute("data-precedence"),a=n.get(o)||i,a===i&&n.set(null,l),n.set(o,l),this.count++,i=Yo.bind(this),l.addEventListener("load",i),l.addEventListener("error",i),a?a.parentNode.insertBefore(l,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Aa={$$typeof:Gn,Provider:null,Consumer:null,_currentValue:bl,_currentValue2:bl,_threadCount:0};function Jw(e,t,n,i,l,a,o,r,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ps(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ps(0),this.hiddenUpdates=ps(null),this.identifierPrefix=i,this.onUncaughtError=l,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function Fb(e,t,n,i,l,a,o,r,u,c,f,p){return e=new Jw(e,t,n,o,u,c,f,p,r),t=1,a===!0&&(t|=24),a=Pt(3,null,null,t),e.current=a,a.stateNode=e,t=pd(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:i,isDehydrated:n,cache:t},bd(a),e}function $b(e){return e?(e=aa,e):aa}function Wb(e,t,n,i,l,a){l=$b(l),i.context===null?i.context=l:i.pendingContext=l,i=Yi(t),i.payload={element:n},a=a===void 0?null:a,a!==null&&(i.callback=a),n=qi(e,i,t),n!==null&&(kt(n,e,t),So(n,e,t))}function Fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Jd(e,t){Fp(e,t),(e=e.alternate)&&Fp(e,t)}function e0(e){if(e.tag===13||e.tag===31){var t=_l(e,67108864);t!==null&&kt(t,e,67108864),Jd(e,67108864)}}function $p(e){if(e.tag===13||e.tag===31){var t=en();t=id(t);var n=_l(e,t);n!==null&&kt(n,e,t),Jd(e,t)}}var za=!0;function Fw(e,t,n,i){var l=Q.T;Q.T=null;var a=ye.p;try{ye.p=2,Fd(e,t,n,i)}finally{ye.p=a,Q.T=l}}function $w(e,t,n,i){var l=Q.T;Q.T=null;var a=ye.p;try{ye.p=8,Fd(e,t,n,i)}finally{ye.p=a,Q.T=l}}function Fd(e,t,n,i){if(za){var l=$f(i);if(l===null)ks(e,t,i,Ju,n),Wp(e,i);else if(e2(l,e,t,n,i))i.stopPropagation();else if(Wp(e,i),t&4&&-1<Ww.indexOf(e)){for(;l!==null;){var a=La(l);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ml(a.pendingLanes);if(o!==0){var r=a;for(r.pendingLanes|=2,r.entangledLanes|=2;o;){var u=1<<31-Wt(o);r.entanglements[1]|=u,o&=~u}In(a),(ge&6)===0&&(ju=Ft()+500,er(0,!1))}}break;case 31:case 13:r=_l(a,2),r!==null&&kt(r,a,2),dc(),Jd(a,2)}if(a=$f(i),a===null&&ks(e,t,i,Ju,n),a===l)break;l=a}l!==null&&i.stopPropagation()}else ks(e,t,i,null,n)}}function $f(e){return e=od(e),$d(e)}var Ju=null;function $d(e){if(Ju=null,e=gl(e),e!==null){var t=Xo(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=ag(t),e!==null)return e;e=null}else if(n===31){if(e=og(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ju=e,null}function t0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mS()){case dg:return 2;case mg:return 8;case Tu:case hS:return 32;case hg:return 268435456;default:return 32}default:return 32}}var Wf=!1,Qi=null,Zi=null,Ii=null,qo=new Map,jo=new Map,Li=[],Ww="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Wp(e,t){switch(e){case"focusin":case"focusout":Qi=null;break;case"dragenter":case"dragleave":Zi=null;break;case"mouseover":case"mouseout":Ii=null;break;case"pointerover":case"pointerout":qo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jo.delete(t.pointerId)}}function uo(e,t,n,i,l,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:a,targetContainers:[l]},t!==null&&(t=La(t),t!==null&&e0(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function e2(e,t,n,i,l){switch(t){case"focusin":return Qi=uo(Qi,e,t,n,i,l),!0;case"dragenter":return Zi=uo(Zi,e,t,n,i,l),!0;case"mouseover":return Ii=uo(Ii,e,t,n,i,l),!0;case"pointerover":var a=l.pointerId;return qo.set(a,uo(qo.get(a)||null,e,t,n,i,l)),!0;case"gotpointercapture":return a=l.pointerId,jo.set(a,uo(jo.get(a)||null,e,t,n,i,l)),!0}return!1}function n0(e){var t=gl(e.target);if(t!==null){var n=Xo(t);if(n!==null){if(t=n.tag,t===13){if(t=ag(n),t!==null){e.blockedOn=t,Th(e.priority,function(){$p(n)});return}}else if(t===31){if(t=og(n),t!==null){e.blockedOn=t,Th(e.priority,function(){$p(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$f(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);tf=i,n.target.dispatchEvent(i),tf=null}else return t=La(n),t!==null&&e0(t),e.blockedOn=n,!1;t.shift()}return!0}function eg(e,t,n){xu(e)&&n.delete(t)}function t2(){Wf=!1,Qi!==null&&xu(Qi)&&(Qi=null),Zi!==null&&xu(Zi)&&(Zi=null),Ii!==null&&xu(Ii)&&(Ii=null),qo.forEach(eg),jo.forEach(eg)}function tu(e,t){e.blockedOn===t&&(e.blockedOn=null,Wf||(Wf=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,t2)))}var nu=null;function tg(e){nu!==e&&(nu=e,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,function(){nu===e&&(nu=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],l=e[t+2];if(typeof i!="function"){if($d(i||n)===null)continue;break}var a=La(n);a!==null&&(e.splice(t,3),t-=3,bf(a,{pending:!0,data:l,method:n.method,action:i},i,l))}}))}function Oa(e){function t(u){return tu(u,e)}Qi!==null&&tu(Qi,e),Zi!==null&&tu(Zi,e),Ii!==null&&tu(Ii,e),qo.forEach(t),jo.forEach(t);for(var n=0;n<Li.length;n++){var i=Li[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Li.length&&(n=Li[0],n.blockedOn===null);)n0(n),n.blockedOn===null&&Li.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var l=n[i],a=n[i+1],o=l[Bt]||null;if(typeof a=="function")o||tg(n);else if(o){var r=null;if(a&&a.hasAttribute("formAction")){if(l=a,o=a[Bt]||null)r=o.formAction;else if($d(l)!==null)continue}else r=o.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),tg(n)}}}function i0(){function e(a){a.canIntercept&&a.info==="react-transition"&&a.intercept({handler:function(){return new Promise(function(o){return l=o})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var a=navigation.currentEntry;a&&a.url!=null&&navigation.navigate(a.url,{state:a.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Wd(e){this._internalRoot=e}pc.prototype.render=Wd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));var n=t.current,i=en();Wb(n,i,e,t,null,null)};pc.prototype.unmount=Wd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wb(e.current,2,null,e,null,null),dc(),t[Da]=null}};function pc(e){this._internalRoot=e}pc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Li.length&&t!==0&&t<Li[n].priority;n++);Li.splice(n,0,e),n===0&&n0(e)}};var ng=ig.version;if(ng!=="19.3.0")throw Error(R(527,ng,"19.3.0"));ye.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=nS(t),e=e!==null?rg(e):null,e=e===null?null:e.stateNode,e};var n2={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(co=__REACT_DEVTOOLS_GLOBAL_HOOK__,!co.isDisabled&&co.supportsFiber))try{Ko=co.inject(n2),$t=co}catch{}var co;gc.createRoot=function(e,t){if(!lg(e))throw Error(R(299));var n=!1,i="",l=Py,a=ky,o=Vy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Fb(e,1,!1,null,null,n,i,null,l,a,o,i0),e[Da]=t.current,jd(e),new Wd(t)};gc.hydrateRoot=function(e,t,n){if(!lg(e))throw Error(R(299));var i=!1,l="",a=Py,o=ky,r=Vy,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Fb(e,1,!0,t,n??null,i,l,u,a,o,r,i0),t.context=$b(null),n=t.current,i=en(),i=id(i),l=Yi(i),l.callback=null,qi(n,l,i),n=i,t.current.lanes=n,Zo(t,n),In(t),e[Da]=t.current,jd(e),new pc(t)};gc.version="19.3.0"});var r0=Dn((KM,o0)=>{"use strict";function a0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a0)}catch(e){console.error(e)}}a0(),o0.exports=l0()});var y0=Dn(Mc=>{"use strict";var l2=Symbol.for("react.transitional.element"),a2=Symbol.for("react.fragment");function g0(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var l in t)l!=="key"&&(n[l]=t[l])}else n=t;return t=n.ref,{$$typeof:l2,type:e,key:i,ref:t!==void 0?t:null,props:n}}Mc.Fragment=a2;Mc.jsx=g0;Mc.jsxs=g0});var me=Dn((hE,b0)=>{"use strict";b0.exports=y0()});var b1=["path","circle","ellipse","line","polyline","polygon","rect","g"],v1={fill:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,stroke:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,strokeWidth:/^[\d.]+$/,strokeLinecap:/^(?:butt|round|square)$/,strokeLinejoin:/^(?:miter|round|bevel)$/,fillRule:/^(?:nonzero|evenodd)$/,opacity:/^[\d.]+$/,fillOpacity:/^[\d.]+$/,strokeOpacity:/^[\d.]+$/,transform:/^(?:(?:matrix|translate|scale|rotate|skewX|skewY)\([\deE+.,\s-]+\)[,\s]*)+$/,d:/^[mMlLhHvVcCsSqQtTaAzZeE\d+.,\s-]+$/,points:/^[\deE+.,\s-]+$/},S1=["x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height"],Lm=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,_m=1024;function Yc(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function Dm(e){let t=Yc(e),n={};for(let[i,l]of Object.entries(v1)){let a=t[i],o=i==="d"||i==="points"?4096:i==="transform"?128:32;typeof a=="string"&&a.length<=o&&l.test(a)&&(n[i]=a)}for(let i of S1){let l=t[i];typeof l=="string"&&l.length<=32&&Lm.test(l)&&Math.abs(Number(l))<=1e5&&(n[i]=l)}return n}function Hm(e){let{viewBox:t,attrs:n,shapes:i}=Yc(e);if(typeof t!="string"||t.length>100)return;let l=t.trim().split(/[\s,]+/);if(l.length!==4||!l.every(u=>Lm.test(u)&&Math.abs(Number(u))<=1e5)||Number(l[2])<=0||Number(l[3])<=0)return;let a=64;function o(u,c){if(!Array.isArray(u)||c>6)return[];let f=[];for(let p of u){if(a--<=0)break;let{tag:s,attrs:h,shapes:S}=Yc(p),b=b1.find(v=>v===s);b&&f.push({tag:b,attrs:Dm(h),shapes:b==="g"?o(S,c+1):[]})}return f}let r=o(i,0);return r.length?{viewBox:l.join(" "),attrs:Dm(n),shapes:r}:void 0}var Um=["siblings","ontology","crosslinks","sidecar"],qc={view:["compass","mindmap"],dock:["left","right","bottom"],theme:["system","light","dark"]},Mr=["view",...Um,"dock","theme"],jc={view:"compass",siblings:!0,ontology:!0,crosslinks:!1,sidecar:!0,dock:"right",theme:"system"};function Er(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e,n={},i=qc.view.find(o=>o===t.view),l=qc.dock.find(o=>o===t.dock),a=qc.theme.find(o=>o===t.theme);i&&(n.view=i),l&&(n.dock=l),a&&(n.theme=a);for(let o of Um){let r=t[o];typeof r=="boolean"&&(n[o]=r)}return Object.keys(n).length?n:void 0}var Nr=1e4,x1=25e4,w1=256*1024*1024,Kc=24*1024*1024,Rr="data/search.json",Cr="theme/publication.css",Ar=48*1024,Qc=["parent","child","left","right","previous","next"],M1=["document","drawing","attachment","folder","tag","url"],E1=/^(?:index\.html|\.nojekyll|data\/search\.json|theme\/publication\.css|notes\/[a-f0-9-]{36}\.html|assets\/[a-f0-9]{64}\.(?:png|jpe?g|gif|webp|avif|svg|mp3|ogg|wav|mp4|webm|pdf)|runtime\/(?:compass\.css|(?:compass|demo|chunk(?:-[a-zA-Z0-9]+)?)\.js(?:\.LEGAL\.txt)?)|LICENSES\/(?:K-Plex|React|ReactDOM|Scheduler|Lucide|Source)\.txt)$/,T1=/^[a-f0-9]{64}$/,Pm=["none","arrow","triangle","bar","dot"],N1=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,R1=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Zc(e){return typeof e=="string"&&e.length<=2048&&!/[\s\\<>"\p{Cc}]/u.test(e)&&/^https?:\/\/(?:[a-z0-9._-]+|\[[a-f0-9:.]+\])(?::\d{1,5})?(?:[/?#]|$)/i.test(e)}function li(e){return typeof e=="string"&&R1.test(e)}function Ic(e){if(!li(e))throw new Error("Invalid public note ID");return`notes/${e}.html`}function Bl(e){return typeof e=="string"&&e.length<=180&&E1.test(e)}function C1(e){return Bl(e)&&(e.startsWith("notes/")||e.startsWith("assets/")||e===Rr||e===Cr)}function Vm(e){if(!C1(e))throw new Error("Invalid offline publication resource");return`local/${e}.css`}function yn(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid publication record");return e}function sl(e,t){return typeof e=="string"&&e.length<=t&&e.trim().length>0&&!/\p{Cc}/u.test(e)}function Ln(e,t,n){return typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=n}function Bm(e,t){return Ln(e,0,t-1)&&Number.isInteger(e)}function Tr(e,t){let n=yn(e),i={};for(let r of["fill","stroke","color","gate"]){let u=n[r];if(u!==void 0){if(typeof u!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(u))throw new Error("Invalid publication color");i[r]=u}}let{fontSize:l,gateRadius:a,icon:o}=n;if(l!==void 0&&!Ln(l,6,96))throw new Error("Invalid publication font size");if(a!==void 0&&!Ln(a,0,40))throw new Error("Invalid publication gate radius");if(o!=null&&!Bm(o,t))throw new Error("Invalid publication icon reference");return{...i,fontSize:l,gateRadius:a,...o===void 0?{}:{icon:o}}}function A1(e,t){let{center:n,sibling:i,inferred:l}=yn(e);return{center:n===void 0?void 0:Tr(n,t),sibling:i===void 0?void 0:Tr(i,t),inferred:l===void 0?void 0:Tr(l,t)}}function z1(e){let{stroke:t,width:n,arrowStart:i,arrowEnd:l,startHead:a,endHead:o,labelColor:r,labelSize:u}=yn(e);if(t!==void 0&&(typeof t!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(t))||n!==void 0&&!Ln(n,.25,20)||i!==void 0&&typeof i!="boolean"||l!==void 0&&typeof l!="boolean")throw new Error("Invalid publication link style");let c=Pm.find(p=>p===a),f=Pm.find(p=>p===o);if(a!==void 0&&!c||o!==void 0&&!f)throw new Error("Invalid publication arrow type");if(r!==void 0&&(typeof r!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(r))||u!==void 0&&!Ln(u,6,96))throw new Error("Invalid publication link label");return{stroke:t,width:n,arrowStart:i,arrowEnd:l,startHead:c,endHead:f,labelColor:r,labelSize:u}}function O1(e){let t=yn(e),n={};if(t.maximum!==void 0){if(!Ln(t.maximum,1,400)||!Number.isInteger(t.maximum))throw new Error("Invalid publication scene limit");n.maximum=t.maximum}if(t.flip!==void 0){if(typeof t.flip!="boolean")throw new Error("Invalid publication orientation");n.flip=t.flip}if(t.showCrossLinks!==void 0){if(typeof t.showCrossLinks!="boolean")throw new Error("Invalid publication crosslinks preference");n.showCrossLinks=t.showCrossLinks}if(t.geometry!==void 0){let i=yn(t.geometry),l={},a=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let o of a){let r=i[o];if(r!==void 0){if(!Ln(r,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(l,{[o]:r})}}if(i.compactView!==void 0&&typeof i.compactView!="boolean")throw new Error("Invalid publication compact mode");if(i.lateralArrangement!==void 0&&i.lateralArrangement!=="split"&&i.lateralArrangement!=="left")throw new Error("Invalid publication side layout");n.geometry={...l,...i.compactView===void 0?{}:{compactView:i.compactView},...i.lateralArrangement===void 0?{}:{lateralArrangement:i.lateralArrangement}}}if(t.typography!==void 0){let{baseFontSize:i,wrapNodeLabels:l,propertyFontSize:a}=yn(t.typography);if(i!==void 0&&!Ln(i,6,48)||a!==void 0&&!Ln(a,6,48)||l!==void 0&&typeof l!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:i,wrapNodeLabels:l,propertyFontSize:a}}return n}function D1(e){let t=Object.entries(yn(e));if(t.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[i,l]of t){if(!sl(i,192)||["__proto__","constructor","prototype"].includes(i))throw new Error("Invalid publication property name");if(sl(l,1e3)||typeof l=="boolean"||typeof l=="number"&&Number.isFinite(l))n.set(i,l);else if(Array.isArray(l)&&l.length<=48&&l.every(a=>sl(a,1e3)))n.set(i,[...l]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function Gm(e){let t=yn(e);if(t.version!==2||typeof t.runtimeVersion!="string"||!N1.test(t.runtimeVersion))throw new Error("Unsupported publication version");let{colorMode:n}=t;if(n!==void 0&&n!=="light"&&n!=="dark"&&n!=="both")throw new Error("Invalid publication color mode");if(!li(t.id)||!li(t.entry)||!sl(t.title,240)||typeof t.fullText!="boolean"||!Array.isArray(t.nodes)||!t.nodes.length||t.nodes.length>Nr||!Array.isArray(t.relations)||t.relations.length>x1||!Array.isArray(t.resources)||t.resources.length>Nr*4)throw new Error("Invalid publication manifest");let i=0,l=new Set,a=t.resources.map(b=>{let{path:v,bytes:d,sha256:m}=yn(b);if(!Bl(v)||l.has(v)||!Ln(d,0,32*1024*1024)||!Number.isInteger(d)||typeof m!="string"||!T1.test(m))throw new Error("Invalid publication resource");if(l.add(v),i+=d,i>w1)throw new Error("Publication exceeds package limit");return{path:v,bytes:d,sha256:m}}),o;if(t.icons!==void 0){if(!Array.isArray(t.icons)||t.icons.length>_m)throw new Error("Invalid publication icons");o=t.icons.map(b=>{let v=Hm(b);if(!v)throw new Error("Invalid publication icon");return v})}let r=o?.length??0,u=new Set,c=new Set,f=t.nodes.map(b=>{let v=yn(b),{id:d,title:m,aliases:g,asset:x,url:M,trailIcon:T}=v,w=M1.find(N=>N===v.kind);if(!li(d)||u.has(d)||!sl(m,512)||!w)throw new Error("Invalid publication node");if(u.add(d),w==="document"||w==="drawing"){let N=Ic(d);if(!l.has(N))throw new Error("Missing publication note resource");c.add(N)}if(x!==void 0&&(typeof x!="string"||!x.startsWith("assets/")||!l.has(x)))throw new Error("Missing publication asset");if(M!==void 0&&(w!=="url"||!Zc(M)))throw new Error("Invalid publication web link");if(T!==void 0&&!Bm(T,r))throw new Error("Invalid publication trail icon");if(g!==void 0&&(!Array.isArray(g)||g.length>64||!g.every(N=>sl(N,512))))throw new Error("Invalid publication aliases");return{id:d,title:m,kind:w,...g===void 0?{}:{aliases:[...g]},...x===void 0?{}:{asset:x},...M===void 0?{}:{url:M},...T===void 0?{}:{trailIcon:T},...v.style===void 0?{}:{style:Tr(v.style,r)},...v.roleStyles===void 0?{}:{roleStyles:A1(v.roleStyles,r)},...v.properties===void 0?{}:{properties:D1(v.properties)}}});if(!u.has(t.entry)||[...l].some(b=>b.startsWith("notes/")&&!c.has(b))||t.fullText!==l.has(Rr))throw new Error("Invalid publication document catalogue");let p;if(t.pins!==void 0){if(!Array.isArray(t.pins)||t.pins.length>u.size)throw new Error("Invalid publication pins");let b=t.pins;if(new Set(b).size!==b.length||!b.every(v=>typeof v=="string"&&u.has(v)))throw new Error("Invalid publication pins");p=b.slice()}let s=new Set,h=t.relations.map(b=>{let{source:v,target:d,relationType:m,direction:g,definition:x,role:M,style:T}=yn(b),w=Qc.find(V=>V===M);if(typeof v!="string"||typeof d!="string"||v===d||!u.has(v)||!u.has(d)||!w||m!==1&&m!==2||g!==null&&g!==1&&g!==2&&g!==3||x!==void 0&&!sl(x,192))throw new Error("Invalid publication relationship");let N=`${v}/${d}/${w}`;if(s.has(N))throw new Error("Duplicate publication relationship");return s.add(N),{source:v,target:d,role:w,relationType:m,direction:g,...x===void 0?{}:{definition:x},...T===void 0?{}:{style:z1(T)}}}),S=Er(t.canvasDefaults);return{version:2,runtimeVersion:t.runtimeVersion,id:t.id,title:t.title,entry:t.entry,fullText:t.fullText,nodes:f,relations:h,resources:a,...n===void 0?{}:{colorMode:n},...p===void 0?{}:{pins:p},...S&&{canvasDefaults:S},...o===void 0?{}:{icons:o},...t.appearance===void 0?{}:{appearance:O1(t.appearance)}}}var z={licenses:"Runtime licenses",mindMap:"Mind Map",expandBranch:"Expand branch",collapseBranch:"Collapse branch",graphOptions:"Graph options",crossLinks:"Show crosslinks",linkOntology:"Show link ontology",view:"Compass",back:"History back",forward:"History forward",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit graph",loadFailed:"Could not open this publication",retry:"Retry",loading:"Opening publication…",loadingNote:"Opening note…",find:"Find note",fullText:"Include note text",searchLoading:"Loading note search…",searchUnavailable:"Note search is unavailable",address:"Note address",open:"Open",nodeUnavailable:"That thought is unavailable in this publication",copyAddress:"Copy note address",addressCopied:"Note address copied",copyShortAddress:"Copy link (short ID)",copyFullAddress:"Copy link (full ID)",ambiguousAddress:"This short ID matches several notes. Use the full ID.",pins:"Pins",history:"Session history",backTooltip:"History back (Alt + ←)",forwardTooltip:"History forward (Alt + →)",showSidecarTooltip:"Show Sidecar (Alt + Shift + S)",hideSidecarTooltip:"Hide Sidecar (Alt + Shift + S)",chooseNote:"Choose a matching thought",chooseAddress:"Enter a note ID to select another match",showSidecar:"Show Sidecar",hideSidecar:"Hide Sidecar",closeSidecar:"Close Sidecar",showSiblings:"Show siblings",hideSiblings:"Hide siblings",siblings:"Siblings",friends:"Friends / Previous",challengers:"Challengers / Next",lateral:"Friends, challengers, and sequence",theme:"Theme",about:"About",sidecar:"Sidecar",sidecarHide:"Hide",sidecarLeft:"Left",sidecarRight:"Right",sidecarBottom:"Bottom",openWebsite:"Open original in a new tab",webFrameHelp:"If the page is blank or blocked, open the original.",githubLoading:"Loading GitHub preview…",githubPreviewUnavailable:"GitHub preview unavailable. Open the original to view the page.",githubOpenOriginal:"View this GitHub page in a browser tab.",githubNoCommits:"No commits in this comparison.",githubCommitCount:(e,t)=>`Showing ${e} of ${t} commits`,resizeSidecar:"Resize Sidecar",dockSidecarBottom:"Move Sidecar below",dockSidecarRight:"Move Sidecar right",noteUnavailable:"Could not open this note",mediaUnavailable:"Some media could not be opened",noDocument:"No document is available for this thought",downloadAsset:"Download file",sceneLimited:"Some connections are outside this view’s display limit",themeUnavailable:"Using the default colors",insecure:"Open this publication over HTTPS or through a local preview server"},Ti={label:"Color theme",light:"Light",dark:"Dark",auto:"Auto",system:"System",trigger:e=>`Color theme (${e})`},_n={label:"K-Plex resources",github:"K-Plex on GitHub",npm:"K-Plex Web Player on npm",community:"K-Plex in Obsidian Community Plugins",playlist:"K-Plex YouTube playlist",book:"Sketch Your Mind book"};var r1=X(r0(),1);var F=X(nt(),1);var En=e=>e;var ir={key:"F4"};function u0(e){try{let t=JSON.stringify(e);if(!t||t.length>16384)return null;let n=JSON.parse(t),i=(l,a)=>a<=8&&(!l||typeof l!="object"||Object.values(l).every(o=>i(o,a+1)));return i(n,0)?n:null}catch{return null}}var ht={occurrences:2e3,depth:20,scopes:8,stateCharacters:12e3,occurrenceCharacters:4096},yc={min:.1,max:4,step:.05};function Va(e,t,n){return{defaultValue:e,validate:i=>typeof i=="number"&&Number.isInteger(i)&&i>=t&&i<=n}}var bc={version:1,fields:{arrangement:{defaultValue:"right",validate:e=>e==="balanced"||e==="left"||e==="right"},horizontalSpacing:Va(96,40,240),verticalSpacing:Va(24,12,80),parentColumns:Va(2,1,3),initialGenerations:Va(1,1,3),horizontalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=yc.min&&e<=yc.max},verticalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=yc.min&&e<=yc.max},maximumDepth:Va(10,1,ht.depth),maximumOccurrences:Va(500,16,ht.occurrences)}};function vc(e){if(e?.status==="unavailable")return null;let t=e?.values??{},n=l=>Object.prototype.hasOwnProperty.call(t,l)?t[l]:bc.fields[l].defaultValue;for(let[l,a]of Object.entries(bc.fields))if(!a.validate(n(l)))return null;let i=n("arrangement");return i!=="balanced"&&i!=="left"&&i!=="right"?null:{arrangement:i,horizontalSpacing:Number(n("horizontalSpacing")),verticalSpacing:Number(n("verticalSpacing")),horizontalDensity:Number(n("horizontalDensity")),verticalDensity:Number(n("verticalDensity")),parentColumns:Number(n("parentColumns")),initialGenerations:Number(n("initialGenerations")),maximumDepth:Number(n("maximumDepth")),maximumOccurrences:Number(n("maximumOccurrences"))}}var em={version:1,scope:null,initialGenerations:null,expanded:[],collapsed:[],sides:{}},Sc={version:0,unavailable:!0};function Ul(e){return typeof e=="string"&&e.length>0&&e.length<=ht.occurrenceCharacters}function il(e){if(e==null)return{...em,expanded:[],collapsed:[],sides:{}};let t=u0(e);if(!t||typeof t!="object"||Array.isArray(t)||Reflect.get(t,"version")!==1)return Sc;let n=Reflect.get(t,"scope"),i=Reflect.get(t,"initialGenerations"),l=Reflect.get(t,"expanded"),a=Reflect.get(t,"collapsed"),o=Reflect.get(t,"sides");if(n===null!=(i===null)||n!==null&&!Ul(n)||i!==null&&(typeof i!="number"||!Number.isInteger(i)||i<1||i>3)||!Array.isArray(l)||!Array.isArray(a)||l.length>256||a.length>256||!l.every(Ul)||!a.every(Ul)||!o||typeof o!="object"||Array.isArray(o)||Object.keys(o).length>256)return Sc;let r=[];for(let[c,f]of Object.entries(o)){let p=f;if(!Ul(c)||p!==-1&&p!==1)return Sc;r.push([c,p])}r.sort(([c],[f])=>c<f?-1:c>f?1:0);let u={...t,version:1,scope:n===null?null:En(n),initialGenerations:i,expanded:[...new Set(l)].sort(),collapsed:[...new Set(a)].sort(),sides:Object.fromEntries(r)};return JSON.stringify(u).length<=ht.stateCharacters?u:Sc}function c0(e,t,n){return e.scope===t?e:{...e,scope:t,initialGenerations:n,expanded:[],collapsed:[],sides:{}}}function lr(e){let t=il(e);return t.version===1?t:null}function xc(e,t,n){let i=il(e),l=i.version===1&&i.scope===t.layoutRoot?i:il(t.stateSuggestion);if(l.version!==1||l.scope!==t.layoutRoot)return null;let a=new Set(l.expanded),o=new Set(l.collapsed),r=t.occurrences.filter(u=>u.branch?.canExpand&&!u.branch.reference);if(n.kind==="toggle")r=r.filter(u=>u.id===n.occurrenceId);else if(n.kind==="expand-generation"){let u=Math.min(...r.filter(c=>!c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>!c.branch.expanded&&c.branch.depth===u)}else{let u=Math.max(...r.filter(c=>c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>c.branch.expanded&&c.branch.depth===u)}if(!r.length)return null;for(let u of r)n.kind==="expand-generation"||n.kind==="toggle"&&!u.branch.expanded?(o.delete(u.id),a.add(u.id)):(a.delete(u.id),o.add(u.id));return lr({...l,expanded:[...a],collapsed:[...o]})}var wc=class{constructor(t,n,i,l=750,a){this.owner=t;this.requireAlt=n;this.publish=i;this.delayMs=l;this.modifierFeedback=a;this.timer=null;this.candidate=null;this.alt=!1;this.enteredAt=0;this.modifierCandidate=!1}enter(t,n){if(n.pointerType==="touch"){this.modifierFeedback&&this.clear();return}this.clear(!1),this.candidate=t,this.alt=n.altKey,this.enteredAt=this.owner.performance.now(),this.modifierCandidate=n.pointerType==="mouse"&&n.isTrusted===!0&&this.modifierFeedback?.accepts(t)===!0,this.modifierFeedback?.publish(this.modifierCandidate&&this.alt?t:null),this.requireAlt||this.modifierCandidate&&this.alt?this.publish(this.alt?t:null):this.activateOrdinary()}modifier(t,n=!1){this.candidate===null||this.alt===t||!this.requireAlt&&!this.modifierCandidate||this.modifierCandidate&&!n||(this.alt=t,this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.modifierCandidate&&this.modifierFeedback?.publish(t?this.candidate:null),this.requireAlt||t?this.publish(t?this.candidate:null):(this.publish(null),this.activateOrdinary()))}activateOrdinary(){let t=this.candidate;if(t===null)return;let n=Math.max(0,this.delayMs-(this.owner.performance.now()-this.enteredAt));n===0?this.publish(t):this.timer=this.owner.setTimeout(()=>{this.timer=null,this.publish(t)},n)}clear(t=!0){this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.candidate=null,this.modifierCandidate=!1,this.modifierFeedback?.publish(null),t&&this.publish(null)}};function s0(e,t){let n=e.ownerDocument,i=n.defaultView,l=r=>t.modifier(r.altKey,r.isTrusted),a=()=>t.clear(),o=()=>{n.visibilityState==="hidden"&&t.clear()};return i.addEventListener("keydown",l),i.addEventListener("keyup",l),i.addEventListener("blur",a),n.addEventListener("visibilitychange",o),()=>{i.removeEventListener("keydown",l),i.removeEventListener("keyup",l),i.removeEventListener("blur",a),n.removeEventListener("visibilitychange",o),t.clear()}}var tm={min:8,max:20,step:1,default:12};function nm(e){return typeof e=="number"&&Number.isFinite(e)?Math.max(tm.min,Math.min(tm.max,e)):tm.default}var ar=(e,t,n)=>Math.max(t,Math.min(n,e));function f0(e){return Math.max(5,(e.gateRadius??5)*1.05)}function im(e=30,t=!1){let n=Math.round(Math.max(8,e));return Math.max(t?18:8,n+(t?8:0))}function or(e,t,n=12.4){return(t?ar(e*.72,13,24):ar(e*.62,10,16))*ar(Number.isFinite(n)?n:12.4,8,28)/12.4}function i2(e,t){if(e.measurement&&Number.isFinite(e.measurement.width)&&e.measurement.width>=0)return e.measurement.width;let n=i=>Array.from(i).reduce((l,a)=>l+(a.codePointAt(0)>11903?1:.55)*t,0);return n(e.text)+(e.label?n(`${e.label}:`)+4:0)+(e.icon?t+4:0)}function d0(e,t){return e.length?4+e.reduce((n,i)=>n+Math.ceil(i.measurement&&Number.isFinite(i.measurement.height)&&i.measurement.height>0?i.measurement.height:t*1.4),0):0}function m0(e,t){return e.reduce((n,i)=>Math.max(n,32+i2(i,t)),0)}function h0(e,t,n,i=!1,l=30,a,o=1,r=[]){let u=(n.baseFontSize??12.4)/12.4,c=Math.min(e.length,im(l,i)),f=i?180:112,s=Math.max(f,a??(i?370:286)),h=i?or(t,!0,n.baseFontSize)*.55:t*u*.29,S=ar(70+c*Math.max(4.8,h),f,s),b=(i?16:8)+2*Math.max(0,o),v=or(t,i,n.baseFontSize),d=Math.max(i?48:26,Math.ceil(v*1.6+b)),m=Math.ceil(Math.max(t*u,v)*2.4+v*.4+b),g=n.wrapNodeLabels?Math.max(d,m):d,x=nm(n.propertyFontSize),M=m0(r,x);return{width:r.length?ar(Math.max(S,M),f,s):S,height:g+d0(r,x)}}function p0(e,t,n,i,l=1,a=[]){if(t===1)return e;let o=nm(i.propertyFontSize),r=m0(a,o),u=or(n,!1,i.baseFontSize)*(i.wrapNodeLabels?2.8:1.6);return{width:Math.max(e.width*t,Math.min(e.width,r)),height:Math.max(e.height*t,Math.ceil(u+8+2*Math.max(0,l))+d0(a,o))}}var qe=X(me(),1);function v0({bounds:e,semanticRole:t,className:n,style:i,...l}){return(0,qe.jsx)("div",{...l,className:`kplex-thought kplex-role-${t}${n?" "+n:""}`,style:{left:e.x-e.width/2,top:e.y-e.height/2,width:e.width,height:e.height,...i}})}function S0({label:e,maximum:t,center:n}){let i=im(t??30,n),l=e.length>i?`${e.slice(0,Math.max(1,i-1))}…`:e;return(0,qe.jsx)("span",{className:"kplex-thought-text",title:e,children:l})}function x0({wrap:e,children:t}){return(0,qe.jsx)("span",{className:`kplex-thought-label${e?" is-two-line":""}`,children:t})}function w0({side:e,connected:t,highlighted:n,disabled:i,count:l,...a}){return(0,qe.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${e}${t?"":" is-empty"}`,children:[(0,qe.jsx)("span",{...a,"data-kplex-gate":e,className:`kplex-gate gate-${e}${t?" has-connections":" is-empty"}${n?" is-highlighted":""}${i?" is-link-disabled":""}`}),l!==null&&(0,qe.jsx)("span",{className:"kplex-gate-count",children:l})]})}function M0(e){return(0,qe.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...e})}function E0({label:e,midpoint:t,fontSize:n,color:i,background:l,opacity:a}){if(!e)return null;let o=n??10,r=Math.max(20,e.length*o*.58+10),u=o+6;return(0,qe.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:a,children:[(0,qe.jsx)("rect",{x:t.x-r/2,y:t.y-u/2,width:r,height:u,rx:3,fill:l}),(0,qe.jsx)("text",{className:"kplex-edge-label",x:t.x,y:t.y,textAnchor:"middle",dominantBaseline:"central",fill:i,fontSize:o,children:e})]})}function lm(e,t="kplex"){if(!(!e||e==="none"))return`url(#${t}-${e==="triangle"||e==="dot"||e==="bar"?e:"arrow"})`}function T0({prefix:e="kplex"}){return(0,qe.jsxs)("defs",{children:[(0,qe.jsx)("marker",{id:`${e}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,qe.jsx)("marker",{id:`${e}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,qe.jsx)("marker",{id:`${e}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,qe.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,qe.jsx)("marker",{id:`${e}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}var N0={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function rr(e,t){let n=t.toLowerCase(),i=e.nodes.get(n);return i?[i.id]:e.shortIds.get(n)??[]}function R0(e,t){if(!e.manifest)return;let n=t.slice(0,8),i=rr(e,n);return i.length===1&&i[0]===t?n:void 0}function am(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function Ba(e){return typeof e=="string"&&e.trim().length>0}function o2(e){return typeof e=="string"&&Object.getOwnPropertyDescriptor(N0,e)!==void 0}function C0(e){let t=am(e);if(t?.version===2&&("runtimeVersion"in t||"resources"in t))return r2(Gm(e));if(t?.version!==1)throw new Error("Unsupported publication fixture version");if(!Ba(t.title)||!Ba(t.entry)||!Array.isArray(t.nodes)||!Array.isArray(t.relations))throw new Error("Invalid publication fixture");let n=new Map,i=new Map,l=Object.freeze([]);for(let u of t.nodes){let c=am(u);if(!c||!Ba(c.id)||!Ba(c.title)||n.has(c.id)||c.text!==void 0&&typeof c.text!="string")throw new Error("Invalid or duplicate publication node");let f=En(c.id);n.set(f,Object.freeze({id:f,name:c.title,kind:"document",resolution:"resolved",url:null,aliases:l,tags:l,styleTags:l,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof c.text=="string"&&i.set(f,c.text)}let a=n.get(t.entry)?.id;if(!a)throw new Error("Missing publication entry node");let o=new Map,r=new Set;for(let u of t.relations){let c=am(u);if(!c||!Ba(c.source)||!Ba(c.target)||!o2(c.role)||c.label!==void 0&&typeof c.label!="string")throw new Error("Invalid publication relationship");let f=n.get(c.source),p=n.get(c.target);if(!f||!p)throw new Error("Missing publication relationship endpoint");let s=N0[c.role],h=JSON.stringify([f.id,c.role,p.id]);if(f===p||r.has(h))throw new Error("Invalid or duplicate publication relationship");r.add(h),r.add(JSON.stringify([p.id,s,f.id])),om(o,f,p,c.role,1,1,c.label),om(o,p,f,s,1,2,c.label)}return{title:t.title,entry:a,read:A0(n,o),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:u=>i.get(u),linkStyle:()=>{}}}function om(e,t,n,i,l,a,o){let r=e.get(t.id);r||e.set(t.id,r=new Map);let u=r.get(i);u||r.set(i,u=[]),u.push(Object.freeze({node:n,role:i,relationType:l,direction:a,definition:o}))}function r2(e){let t=new Map,n=new Map,i=new Map,l=new Map,a=new Map;for(let o of e.nodes){let r=En(o.id),u=o.id.slice(0,8),c=l.get(u);c?c.push(r):l.set(u,[r]);let f=o.kind==="folder"?"container":o.kind==="drawing"?"document":o.kind;t.set(r,Object.freeze({id:r,name:o.title,kind:f,resolution:"resolved",url:o.url??null,aliases:o.aliases??[],tags:[],styleTags:[],noteType:null,primaryStyleTag:null,maxLabelLength:30})),n.set(r,o)}for(let o of e.relations)om(i,t.get(o.source),t.get(o.target),o.role,o.relationType,o.direction,o.definition),o.style&&a.set(`${o.source}/${o.target}/${o.role}`,o.style);return{title:e.title,entry:En(e.entry),read:A0(t,i),nodes:t,shortIds:l,manifest:e,published:n,body:()=>{},linkStyle:(o,r,u)=>a.get(`${o}/${r}/${u}`)}}function A0(e,t){let n=new Intl.Collator("en",{numeric:!0}),i=(a,o)=>n.compare(a.name,o.name)||(a.id<o.id?-1:a.id>o.id?1:0);for(let a of t.values())for(let o of a.values())Object.freeze(o.sort((r,u)=>i(r.node,u.node)));let l=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:a=>e.get(a)??null,scope:a=>({coverage:e.has(a)?"local":"unavailable",complete:e.has(a),prepared:e.has(a),pending:!1}),relations(a,o,r){if(!e.has(a))return{items:l,coverage:"unavailable",truncated:!1};let u=t.get(a)?.get(o)??l,c=r!==void 0&&u.length>r;return{items:c?u.slice(0,r):u,coverage:"local",truncated:c}},evidence:()=>({coverage:"unavailable",value:null}),compare:i,corpus:{available:!1,reason:"unsupported"}}}var Pl=X(nt(),1);function z0(e,t){let n=Mr.map(i=>{let l=t?.get(i)??e.get(i);return[i,l==="1"?!0:l==="0"?!1:l]});return Er(Object.fromEntries(n))??{}}function rm(e,t){for(let n of Mr){let i=t?.[n];i===void 0?e.delete(n):e.set(n,typeof i=="boolean"?i?"1":"0":i)}}function um(e,t){return Mr.every(n=>e?.[n]===t?.[n])}var u2=80;function Ec(e,t){return[...e.filter(n=>n.id!==t.id),t].slice(-u2)}function sm(e){try{let t=decodeURIComponent(e.replace(/^#/,""));return t.length<=200&&!/\p{Cc}/u.test(t)&&t||void 0}catch{return}}function ur(e,t){let n=t.protocol==="file:"&&t.hash.startsWith("#node=")?new URLSearchParams(t.hash.slice(1)):null,i=n?n.get("node"):t.searchParams.get("node")??t.searchParams.get("node-id"),l=i===null?[]:rr(e,i),a=l.length===1?l[0]:void 0,o=sm(n?encodeURIComponent(n.get("fragment")??""):t.hash),r=z0(t.searchParams,n);return{location:{id:a??e.entry,fragment:a||i===null?o:void 0,canvas:r},addressProblem:i===null||a?void 0:l.length?"ambiguous":"missing",matches:l}}function fm(e,t,n){let i=new URLSearchParams({node:e});return t&&i.set("fragment",t),rm(i,n),`#${i}`}function O0(e,t,n,i){try{let l=new URL(e,t);if(l.origin!==t.origin||l.pathname!==t.pathname&&l.pathname!==`${t.pathname}index.html`)return;if(e.startsWith("#node=")&&t.protocol==="file:"){let{location:u,addressProblem:c}=ur(n,l);return c?void 0:u}if(e.startsWith("#"))return{id:i,fragment:sm(l.hash)};if(!(l.searchParams.get("node")??l.searchParams.get("node-id")))return;let{location:o,addressProblem:r}=ur(n,l);return r?void 0:o}catch{return}}function Ga(e,t,n=t.id){let i=new URL(e);return i.protocol==="file:"?(i.hash=fm(n,t.fragment??"",t.canvas),i):(i.searchParams.delete("node-id"),i.searchParams.set("node",n),rm(i.searchParams,t.canvas),i.hash=t.fragment?encodeURIComponent(t.fragment):"",i)}function D0(e,t,n){try{let i=new URL(e,t);if(i.protocol!==t.protocol||i.origin!==t.origin||i.username||i.password)return;let l=a=>a.endsWith("/")?a+"index.html":a;return l(i.pathname)!==l(t.pathname)||!(i.searchParams.has("node")||i.searchParams.has("node-id")||i.protocol==="file:"&&i.hash.startsWith("#node="))?void 0:ur(n,i)}catch{return}}function cm(e,t){return!e||typeof e!="object"||!("kplexPublication"in e)||e.kplexPublication!==t||!("position"in e)||typeof e.position!="number"||!Number.isSafeInteger(e.position)||e.position<0||!("last"in e)||typeof e.last!="number"||!Number.isSafeInteger(e.last)||e.last<e.position?null:{position:e.position,last:e.last}}function L0(e,t,n){let i=(0,Pl.useRef)(n);i.current=n;let l=e.manifest?.id,[a,o]=(0,Pl.useState)(()=>{let S=t?ur(e,new URL(t.location.href)):{location:{id:e.entry},addressProblem:void 0},b=t&&l?cm(t.history.state,l)??{position:0,last:0}:void 0;return{entries:[S.location],index:0,addressProblem:S.addressProblem,browser:b,visits:[S.location]}}),r=a.entries[a.index],u=(0,Pl.useRef)(a.browser?.last??0);(0,Pl.useEffect)(()=>{if(!t||!l)return;let S=t.history,b=d=>{let{location:m,addressProblem:g}=ur(e,new URL(t.location.href)),x=cm(d.state,l),M=x?{...x,last:Math.max(x.position,u.current)}:{position:0,last:0};u.current=M.last,S.replaceState({kplexPublication:l,...M},""),i.current(m.id),o(T=>({entries:[m],index:0,addressProblem:g,browser:M,visits:Ec(T.visits,m)}))},v=cm(S.state,l)??{position:0,last:0};return S.replaceState({kplexPublication:l,...v},""),t.addEventListener("popstate",b),()=>t.removeEventListener("popstate",b)},[t,e,l]);function c(S){let b={...S,canvas:{...r.canvas,...S.canvas}};if(!e.nodes.has(b.id)||!a.addressProblem&&r.id===b.id&&r.fragment===b.fragment&&um(r.canvas,b.canvas))return!1;if(i.current(b.id),t&&l&&a.browser){let d=a.browser.position+1,m={position:d,last:d};return t.history.pushState({kplexPublication:l,...m},"",Ga(new URL(t.location.href),b)),u.current=d,o({entries:[b],index:0,browser:m,visits:Ec(a.visits,b)}),!0}let v=a.index+1;return o({entries:[...a.entries.slice(0,v),b],index:v,visits:Ec(a.visits,b)}),!0}function f(S){let b={...r.canvas,...S};if(um(r.canvas,b))return;let v={...r,canvas:b};t&&l&&a.browser&&t.history.replaceState(t.history.state,"",Ga(new URL(t.location.href),v));let d=[...a.entries];d[a.index]=v,o({...a,entries:d})}let p=a.browser?a.browser.position>0:a.index>0,s=a.browser?a.browser.position<a.browser.last:a.index+1<a.entries.length;function h(S){if(S===-1?p:s)if(t&&a.browser)t.history.go(S);else{let b=a.index+S,v=a.entries[b];i.current(v.id),o({...a,index:b,addressProblem:void 0,visits:Ec(a.visits,v)})}}return{attention:r,activate:c,changeCanvas:f,move:h,visits:a.visits,addressProblem:a.addressProblem,canGoBack:p,canGoForward:s}}var ll=X(nt(),1);var Ya=X(nt(),1),U0=X(Hr(),1);var c2="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function s2(){}function f2(e){return!e||typeof e!="object"||!("closest"in e)?null:e}function d2(e,t){let i=f2(e)?.closest(c2)??null;return!!(i&&t.contains(i))}function _0(e,t,n,i,l){let a=t+l,o=Math.max(a,t+n-i-l);return Math.min(o,Math.max(a,e))}function m2(e){let t=e.visualViewport;return{left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.width??e.innerWidth,height:t?.height??e.innerHeight}}function H0({modalEl:e,handleEl:t,viewportMargin:n=8,onPositionChange:i}){let l=e.ownerDocument,a=l.defaultView;if(!a||t.ownerDocument!==l)return s2;let o=null,r=!1,u=!1,c=!1,f=a.visualViewport,p=(M,T)=>{let w=e.getBoundingClientRect(),N=m2(a),V=_0(M,N.left,N.width,w.width,n),E=_0(T,N.top,N.height,w.height,n);e.style.setProperty("--kplex-dialog-left",`${V}px`),e.style.setProperty("--kplex-dialog-top",`${E}px`),e.classList.add("is-positioned"),u=!0,i?.({left:V,top:E})},s=()=>{if(!u||c)return;let M=e.getBoundingClientRect();p(M.left,M.top)},h=()=>{l.removeEventListener("pointermove",b,!0),l.removeEventListener("pointerup",v,!0),l.removeEventListener("pointercancel",v,!0)},S=()=>{if(!o)return;let M=o.pointerId;o=null,r=!1,h(),t.hasPointerCapture(M)&&t.releasePointerCapture(M),e.classList.remove("is-dragging"),t.classList.remove("is-dragging")};function b(M){let T=o;if(!T||M.pointerId!==T.pointerId)return;M.preventDefault(),M.stopPropagation();let w=M.clientX-T.startClientX,N=M.clientY-T.startClientY;if(!r){if(Math.hypot(w,N)<3)return;r=!0,e.classList.add("is-dragging"),t.classList.add("is-dragging")}p(T.startLeft+w,T.startTop+N)}function v(M){!o||M.pointerId!==o.pointerId||(M.preventDefault(),M.stopPropagation(),S())}let d=M=>{o?.pointerId===M.pointerId&&S()},m=()=>{S()},g=M=>{if(c||o||M.button!==0||d2(M.target,t))return;let T=e.getBoundingClientRect();o={pointerId:M.pointerId,startClientX:M.clientX,startClientY:M.clientY,startLeft:T.left,startTop:T.top},l.addEventListener("pointermove",b,!0),l.addEventListener("pointerup",v,!0),l.addEventListener("pointercancel",v,!0);try{t.setPointerCapture(M.pointerId)}catch{}M.preventDefault(),M.stopPropagation()},x=()=>{c||(c=!0,S(),t.removeEventListener("pointerdown",g),t.removeEventListener("lostpointercapture",d),a.removeEventListener("blur",m),a.removeEventListener("resize",s),a.removeEventListener("pagehide",x),f?.removeEventListener("resize",s),f?.removeEventListener("scroll",s),e.classList.remove("kplex-draggable-dialog","is-positioned","is-dragging"),t.classList.remove("kplex-draggable-dialog-handle","is-dragging"),e.style.removeProperty("--kplex-dialog-left"),e.style.removeProperty("--kplex-dialog-top"))};return e.classList.add("kplex-draggable-dialog"),t.classList.add("kplex-draggable-dialog-handle"),t.addEventListener("pointerdown",g),t.addEventListener("lostpointercapture",d),a.addEventListener("blur",m),a.addEventListener("resize",s),a.addEventListener("pagehide",x),f?.addEventListener("resize",s),f?.addEventListener("scroll",s),x}function h2(e,t){let n=e.target,i=e.composedPath();return t.some(l=>l?i.includes(l)?!0:n?l.contains(n):!1:!1)}function Tc({open:e,anchorRef:t,anchorPoint:n,panelRef:i,dragHandleRef:l,insideRoots:a,onDismiss:o,dismissWhenAnchorHidden:r=!1,handleEscape:u,portalTarget:c,positioning:f,children:p}){let[s,h]=(0,Ya.useState)({}),S=(0,Ya.useRef)({insideRoots:a,onDismiss:o,handleEscape:u});S.current={insideRoots:a,onDismiss:o,handleEscape:u};let b=t.current,v=b?.ownerDocument??null,d=b?.closest("[data-floating-layer-boundary]")??null,m=e&&v?d??c(v):null,g=n?.x,x=n?.y;return(0,Ya.useLayoutEffect)(()=>{if(!e)return;let M=t.current;if(!M)return;let T=M.ownerDocument,w=T.defaultView;if(!w)return;let N=!1,V=null,E=()=>{if(N)return;let J=t.current;if(!J||J.ownerDocument!==T)return;let C=J.getBoundingClientRect();if(r&&(!J.getClientRects().length||!C.width||!C.height)){S.current.onDismiss("anchor-hidden");return}let P=w.visualViewport,O=d?.getBoundingClientRect(),Y=O&&d?O.left+d.clientLeft-d.scrollLeft:0,ee=O&&d?O.top+d.clientTop-d.scrollTop:0,te=Math.max(P?.offsetLeft??0,O?.left??0),H=Math.max(P?.offsetTop??0,O?.top??0),Z=Math.min((P?.offsetLeft??0)+Math.min(w.innerWidth,P?.width??w.innerWidth),O?.right??1/0),ue=Math.min((P?.offsetTop??0)+Math.min(w.innerHeight,P?.height??w.innerHeight),O?.bottom??1/0),fe=Math.min(f.viewportMargin,Math.max(0,(Z-te)/2)),wt=g??C.left,we=x??C.top,Mt=x??C.bottom,je=Math.max(0,Math.min(Math.max(f.minimumWidth,f.preferredWidth),Z-te-fe*2)),Rn=Math.max(te+fe,Math.min(V?.left??wt,Z-je-fe)),et=ue-Mt-f.anchorGap-fe,Et=we-H-f.anchorGap-fe,pn=et<f.minimumMaxHeight&&Et>et?we-f.anchorGap-Math.min(i.current?.scrollHeight||f.minimumMaxHeight,Et):Mt+f.anchorGap,Dt=Math.max(H+fe,Math.min(V?.top??pn,ue-Math.min(f.minimumMaxHeight,Math.max(0,ue-H-fe*2))-fe));h({position:d?"absolute":"fixed",left:Rn-Y,top:Dt-ee,width:je,maxHeight:Math.max(0,ue-Dt-fe)})},k=J=>{h2(J,S.current.insideRoots())||S.current.onDismiss("outside-pointer")},L=J=>{if(J.key!=="Escape"||S.current.handleEscape?.(J)===!1)return;J.preventDefault(),J.stopPropagation(),S.current.onDismiss("escape");let C=t.current;C?.ownerDocument===T&&C.isConnected&&C.focus({preventScroll:!0})},_=w.ResizeObserver,q=_?new _(E):null;q?.observe(M),d&&q?.observe(d),i.current&&q?.observe(i.current),w.addEventListener("resize",E),w.visualViewport?.addEventListener("resize",E),w.visualViewport?.addEventListener("scroll",E),T.addEventListener("scroll",E,!0),T.addEventListener("pointerdown",k,!0),T.addEventListener("keydown",L,!0);let W=i.current,ie=l?.current,I=W&&ie?H0({modalEl:W,handleEl:ie,viewportMargin:f.viewportMargin,onPositionChange:J=>{V=J,E()}}):void 0,ae=()=>{N||(N=!0,I?.(),q?.disconnect(),w.removeEventListener("resize",E),w.visualViewport?.removeEventListener("resize",E),w.visualViewport?.removeEventListener("scroll",E),T.removeEventListener("scroll",E,!0),T.removeEventListener("pointerdown",k,!0),T.removeEventListener("keydown",L,!0),w.removeEventListener("pagehide",ae))};return w.addEventListener("pagehide",ae),E(),ae},[e,r,t,g,x,i,l,v,d,f.anchorGap,f.minimumMaxHeight,f.minimumWidth,f.preferredWidth,f.viewportMargin]),m?(0,U0.createPortal)(p(s),m):null}var Tn=X(me(),1),p2={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function P0({anchor:e,address:t,shortAddress:n,onDismiss:i,onCopied:l}){let a=(0,ll.useRef)(e),o=(0,ll.useRef)(null),r=(0,ll.useRef)(!0),[u,c]=(0,ll.useState)();a.current=e,(0,ll.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]);async function f(s){try{let h=e.ownerDocument.defaultView?.navigator.clipboard;if(!h)throw new Error("Clipboard unavailable");await h.writeText(s),r.current&&(l(),i(!0))}catch{r.current&&c(s)}}function p(s){if(!n||u||!["ArrowDown","ArrowUp","Home","End"].includes(s.key))return;let[h,S]=Array.from(s.currentTarget.querySelectorAll("[role=menuitem]")),b=s.key==="Home"?h:s.key==="End"||s.target===h?S:h;s.preventDefault(),b?.focus()}return(0,Tn.jsx)(Tc,{open:!0,anchorRef:a,panelRef:o,insideRoots:()=>[o.current],dismissWhenAnchorHidden:!0,onDismiss:s=>i(s==="escape"),portalTarget:()=>e.closest(".kplex-publication"),positioning:p2,children:s=>(0,Tn.jsx)("div",{ref:o,style:s,className:"kplex-publication-address-menu",role:u?"dialog":"menu","aria-label":z.copyAddress,onKeyDown:p,children:u?(0,Tn.jsx)("input",{autoFocus:!0,readOnly:!0,"aria-label":z.address,value:u,onFocus:h=>h.currentTarget.select()}):(0,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!!n,disabled:!n,onClick:()=>{n&&f(n)},children:z.copyShortAddress}),(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{f(t)},children:z.copyFullAddress}),!n&&(0,Tn.jsx)("p",{children:z.ambiguousAddress})]})})})}var k0=X(nt(),1);var al=X(nt(),1);var D=X(me(),1),g2={"arrow-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,D.jsx)("path",{d:"M19 12H5"})]}),"arrow-right":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M5 12h14"}),(0,D.jsx)("path",{d:"m12 5 7 7-7 7"})]}),"panel-right":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M15 3v18"})]}),"panel-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M9 3v18"})]}),"panel-bottom":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M3 15h18"})]}),sun:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,D.jsx)("path",{d:"M12 2v2"}),(0,D.jsx)("path",{d:"M12 20v2"}),(0,D.jsx)("path",{d:"m4.93 4.93 1.41 1.41"}),(0,D.jsx)("path",{d:"m17.66 17.66 1.41 1.41"}),(0,D.jsx)("path",{d:"M2 12h2"}),(0,D.jsx)("path",{d:"M20 12h2"}),(0,D.jsx)("path",{d:"m6.34 17.66-1.41 1.41"}),(0,D.jsx)("path",{d:"m19.07 4.93-1.41 1.41"})]}),moon:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})}),"sun-moon":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M12 2v2"}),(0,D.jsx)("path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715"}),(0,D.jsx)("path",{d:"M16 12a4 4 0 0 0-4-4"}),(0,D.jsx)("path",{d:"m19 5-1.256 1.256"}),(0,D.jsx)("path",{d:"M20 12h2"})]}),"file-search":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),(0,D.jsx)("path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3"}),(0,D.jsx)("path",{d:"m9 18-1.5-1.5"}),(0,D.jsx)("circle",{cx:"5",cy:"14",r:"3"})]}),"corner-down-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("polyline",{points:"9 10 4 15 9 20"}),(0,D.jsx)("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})]}),minus:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("path",{d:"M5 12h14"})}),plus:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M5 12h14"}),(0,D.jsx)("path",{d:"M12 5v14"})]}),maximize:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),(0,D.jsx)("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),(0,D.jsx)("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),(0,D.jsx)("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]}),ellipsis:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,D.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,D.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),x:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M18 6 6 18"}),(0,D.jsx)("path",{d:"m6 6 12 12"})]}),network:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}),(0,D.jsx)("rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}),(0,D.jsx)("rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}),(0,D.jsx)("path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}),(0,D.jsx)("path",{d:"M12 12V8"})]})};function dm({icon:e}){return(0,D.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:g2[e]})}function vt({icon:e,label:t,title:n=t,type:i="button",...l}){return(0,D.jsx)("button",{...l,type:i,className:"kplex-publication-icon-control","aria-label":t,title:n,children:(0,D.jsx)(dm,{icon:e})})}var ln=X(me(),1),mm={preferredWidth:216,minimumWidth:160,viewportMargin:8,anchorGap:4,minimumMaxHeight:180},y2={...mm,preferredWidth:142,minimumWidth:112,minimumMaxHeight:138},b2={...mm,preferredWidth:280,minimumMaxHeight:235},v2={canvas:{label:z.graphOptions,positioning:mm},theme:{label:Ti.label,positioning:y2},brand:{label:_n.label,positioning:b2}};function S2(e){e?.focus({preventScroll:!0})}function cr({anchor:e,point:t,choices:n,onDismiss:i,variant:l="canvas"}){let a=(0,al.useRef)(e),o=(0,al.useRef)(null),r=(0,al.useRef)(null),[u,c]=(0,al.useState)(null),f=v2[l];a.current=e;function p(){let v=r.current;(v?.querySelector("[aria-checked=true]")??v?.querySelector("[role^=menuitem]"))?.focus()}(0,al.useLayoutEffect)(()=>{u&&p()},[u]);function s(){c(null),o.current?.querySelector("[aria-haspopup=menu][aria-expanded=true]")?.focus()}function h(){i(),e.focus({preventScroll:!0})}function S(v){if(v.key==="Tab"){h();return}let d=v.target,m=d.closest("[role=menu]");if(m){if(v.key==="ArrowRight"&&d.getAttribute("aria-haspopup")==="menu")d.getAttribute("aria-expanded")==="true"?p():d.click();else if(v.key==="ArrowLeft"&&m!==o.current)s();else if(["ArrowDown","ArrowUp","Home","End"].includes(v.key)){let g=Array.from(m.querySelectorAll("[role^=menuitem]")).filter(T=>T.closest("[role=menu]")===m),x=g.indexOf(d),M=v.key==="Home"?0:v.key==="End"?g.length-1:(x+(v.key==="ArrowDown"?1:-1)+g.length)%g.length;g[M]?.focus()}else return;v.preventDefault(),v.stopPropagation()}}function b(v,d=!1){if("href"in v)return(0,ln.jsx)("a",{role:"menuitem",ref:d?S2:void 0,href:v.href,target:"_blank",rel:"noopener noreferrer",onClick:h,children:v.label},v.href);let{label:m,icon:g,kind:x,checked:M,select:T}=v;return(0,ln.jsxs)("button",{type:"button",role:x,"aria-checked":M,autoFocus:d,onClick:()=>{h(),T()},children:[(0,ln.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true",children:M?"✓":""}),g&&(0,ln.jsx)(dm,{icon:g}),m]},m)}return(0,ln.jsx)(Tc,{open:!0,anchorRef:a,anchorPoint:t,panelRef:o,insideRoots:()=>[o.current,e],dismissWhenAnchorHidden:!0,onDismiss:i,portalTarget:()=>e.closest(".kplex-publication"),positioning:f.positioning,handleEscape:v=>u?(v.preventDefault(),v.stopPropagation(),s(),!1):!0,children:v=>(0,ln.jsx)("div",{ref:o,style:v,className:"kplex-publication-address-menu kplex-publication-canvas-menu",role:"menu","aria-label":f.label,onKeyDown:S,children:n.map((d,m)=>"choices"in d?(0,ln.jsxs)("div",{role:"none",children:[(0,ln.jsxs)("button",{type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":u===d.label,onClick:()=>u===d.label?s():c(d.label),children:[(0,ln.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true"}),d.label,(0,ln.jsx)("span",{className:"kplex-publication-submenu-arrow","aria-hidden":"true",children:"▸"})]}),u===d.label&&(0,ln.jsx)("div",{ref:r,role:"menu","aria-label":d.label,children:d.choices.map(g=>b(g))})]},d.label):b(d,l==="theme"?"checked"in d&&d.checked:m===0))})})}var Gt=X(me(),1),hm=[{label:_n.github,href:"https://github.com/zsviczian/kplex"},{label:_n.npm,href:"https://www.npmjs.com/package/@zsviczian/kplex-web"},{label:_n.community,href:"https://community.obsidian.md/plugins/k-plex"},{label:_n.playlist,href:"https://www.youtube.com/playlist?list=PLH_fBE-KxyiM"},{label:_n.book,href:"https://community.sketch-your-mind.com/sym"}];function V0(){let[e,t]=(0,k0.useState)(null);return(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)("button",{className:"kplex-publication-brand",type:"button","aria-label":_n.label,title:_n.label,"aria-haspopup":"menu","aria-expanded":!!e,onClick:n=>t(e?null:n.currentTarget),children:(0,Gt.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Gt.jsx)("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}),(0,Gt.jsx)("path",{d:"M9 13a4.5 4.5 0 0 0 3-4M6.003 5.125A3 3 0 0 0 6.401 6.5M3.477 10.896a4 4 0 0 1 .585-.396M6 18a4 4 0 0 1-1.967-.516M12 13h4M12 18h6a2 2 0 0 1 2 2v1M12 8h8M16 8V5a2 2 0 0 1 2-2"}),(0,Gt.jsx)("circle",{cx:"16",cy:"13",r:".5"}),(0,Gt.jsx)("circle",{cx:"18",cy:"3",r:".5"}),(0,Gt.jsx)("circle",{cx:"20",cy:"21",r:".5"}),(0,Gt.jsx)("circle",{cx:"20",cy:"8",r:".5"})]})}),e&&(0,Gt.jsx)(cr,{anchor:e,variant:"brand",choices:hm,onDismiss:()=>t(null)})]})}var B0=X(nt(),1),G0=X(me(),1);function pm({icon:e,size:t,className:n}){function i(l,a){return(0,B0.createElement)(l.tag,{...l.attrs,key:a},l.shapes.length?l.shapes.map(i):void 0)}return(0,G0.jsx)("svg",{...e.attrs,width:t,height:t,viewBox:e.viewBox,className:n,"aria-hidden":"true",focusable:"false",children:e.shapes.map(i)})}var fr=X(nt(),1);function Y0(e,t){if(!e.length||!Number.isFinite(t))return null;let n=Math.max(0,Math.min(1,t));if(e.length===1)return e[0];for(let i=1;i<e.length;i++){let l=e[i],a=e[i-1];if(n>l.offset&&i<e.length-1)continue;let o=l.offset>a.offset?(n-a.offset)/(l.offset-a.offset):1,r=(u,c)=>u+(c-u)*o;return{offset:n,x:r(a.x,l.x),y:r(a.y,l.y),scaleX:r(a.scaleX,l.scaleX),scaleY:r(a.scaleY,l.scaleY),originX:r(a.originX,l.originX),originY:r(a.originY,l.originY)}}return null}var Nc=class{constructor(){this.animations=new Map;this.poses=new Map}play(t,n,i,l){this.animations.get(t)?.cancel(),this.animations.delete(t),this.poses.delete(t);let a=t.animate(n,{...i,fill:"none"});if(!a)return null;this.animations.set(t,a),l&&this.poses.set(t,{animation:a,frames:l});let o=()=>{this.animations.get(t)===a&&(this.animations.delete(t),this.poses.delete(t))};return a.finished.then(o,o),a}isRunning(t){return t?this.animations.has(t):this.animations.size>0}sample(t){let n=this.poses.get(t);if(!n||this.animations.get(t)!==n.animation)return null;let i=n.animation.effect?.getComputedTiming().progress;return typeof i=="number"?Y0(n.frames,i):null}cancelAll(){for(let t of this.animations.values())t.cancel();this.animations.clear(),this.poses.clear()}};function q0(e,t,n,i){let l=Math.max(.01,n),a=(e.left-t.left)/l,o=(e.top-t.top)/l,r=t.width>0?e.width/t.width:1,u=t.height>0?e.height/t.height:1,c=Math.hypot(a,o),f=Math.min(24/l,c*.08),p=c?-o/c:0,s=c?a/c:0;return[0,.35,.65,.85,1].map(h=>{let S=h===0||h===1?0:Math.sin(Math.PI*h),b=a*(1-h)+p*f*S,v=o*(1-h)+s*f*S,d=1+.055*S;return i?.push({offset:h,x:b,y:v,scaleX:(r+(1-r)*h)*d,scaleY:(u+(1-u)*h)*d,originX:0,originY:0}),{offset:h,transformOrigin:"0 0",transform:`translate(${b}px, ${v}px) scale(${(r+(1-r)*h)*d}, ${(u+(1-u)*h)*d})`,opacity:1}})}var sr=X(nt(),1),Rc=X(me(),1),kl="[data-publication-strip-scroll]";function j0({id:e,label:t,panel:n,start:i,onScroll:l,children:a}){let o=(0,sr.useRef)(null),r=(0,sr.useRef)(i);return(0,sr.useLayoutEffect)(()=>{o.current&&(o.current.scrollTop=r.current)},[]),(0,Rc.jsx)("div",{className:"kplex-zone-panel",style:{left:n.x,top:n.y,width:n.width,height:n.height},children:(0,Rc.jsx)("div",{className:"kplex-zone-scroll kplex-publication-strip-scroll","data-publication-strip-scroll":e,ref:o,role:"region","aria-label":t,tabIndex:0,onScroll:u=>l(u.currentTarget.scrollTop),children:(0,Rc.jsx)("div",{className:"kplex-zone-content",style:{height:n.contentHeight},children:a})})})}var Cc={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function X0(e){let t=e.getBoundingClientRect(),n=new Map(Array.from(e.querySelectorAll(kl),l=>[l,l.getBoundingClientRect()])),i=[];for(let l of Array.from(e.querySelectorAll("[data-publication-occurrence]"))){let a=l.getBoundingClientRect(),o=l.closest(kl),r=o?n.get(o)??t:t;a.left>=Math.min(t.right,r.right)||a.right<=Math.max(t.left,r.left)||a.top>=Math.min(t.bottom,r.bottom)||a.bottom<=Math.max(t.top,r.top)||i.push({element:l,id:l.dataset.publicationNode,occurrence:l.dataset.publicationOccurrence,rect:a,clipped:r!==t&&(a.top<r.top||a.bottom>r.bottom)})}return i}function x2(e,t){let n=new Set(e),i=new Map(e.map(o=>[o.occurrence,o])),l=new Map;for(let o of e){let r=l.get(o.id);r?r.push(o):l.set(o.id,[o])}let a=new Map;for(let o of t){let r=i.get(o.occurrence);r?.id===o.id&&(a.set(o,r),n.delete(r))}for(let o of t){if(a.has(o))continue;let r,u=1/0;for(let c of l.get(o.id)??[]){if(!n.has(c))continue;let f=Math.hypot(o.rect.x-c.rect.x,o.rect.y-c.rect.y);f<u&&(r=c,u=f)}r&&(a.set(o,r),n.delete(r))}return{pairs:a,remaining:n}}function K0(e,t){let n=(0,fr.useRef)(new Nc).current,i=(0,fr.useRef)(null);function l(){i.current=null,n.cancelAll(),t.current?.replaceChildren()}(0,fr.useEffect)(()=>{let r=e.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return r?.addEventListener("change",l),()=>{r?.removeEventListener("change",l),l()}},[]);function a(r){let u=e.current,c=u?.ownerDocument.defaultView;if(!(!u||!c)){if(u.querySelector("[data-publication-center]")?.dataset.publicationNode===r){i.current=null;return}if(u.ownerDocument.hidden||c.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof u.animate!="function"){l();return}i.current={id:r,cards:X0(u)}}}function o(r,u){let c=e.current,f=t.current,p=i.current;if(l(),!c||!f||p?.id!==r)return;let s=X0(c),{pairs:h,remaining:S}=x2(p.cards,s);for(let d of s){let m=h.get(d)?.rect;m?(Math.abs(m.left-d.rect.left)>.5||Math.abs(m.top-d.rect.top)>.5||Math.abs(m.width-d.rect.width)>.5||Math.abs(m.height-d.rect.height)>.5)&&n.play(d.element,q0(m,d.rect,u),Cc):n.play(d.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],Cc)}let b=f.getBoundingClientRect();for(let d of S){if(d.clipped||d.element.isConnected)continue;let m=d.element.cloneNode(!0);m.removeAttribute("role"),m.removeAttribute("tabindex"),m.removeAttribute("data-publication-node"),m.removeAttribute("data-publication-occurrence"),m.removeAttribute("data-publication-center"),m.style.left=`${d.rect.left-b.left}px`,m.style.top=`${d.rect.top-b.top}px`;let g=d.rect.width/parseFloat(m.style.width),x=d.rect.height/parseFloat(m.style.height);f.append(m);let M=n.play(m,[{opacity:1,transformOrigin:"0 0",transform:`scale(${g}, ${x})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${g*.95}, ${x*.95})`}],{...Cc,duration:200});M?M.finished.then(()=>m.remove(),()=>m.remove()):m.remove()}let v=c.querySelector(".kplex-links");v&&n.play(v,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],Cc)}return{capture:a,play:o,cancel:l}}var Ot=X(nt(),1);var dr=X(me(),1);function Q0({label:e,controlId:t,children:n,layout:i="stacked",actions:l,className:a=""}){return(0,dr.jsxs)("div",{className:`${i==="option"?"kplex-form-option":i==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${l?" has-actions":""} ${a}`,children:[(0,dr.jsx)("label",{id:`${t}-label`,htmlFor:t,children:e}),n,l?(0,dr.jsx)("div",{className:"kplex-field-actions",children:l}):null]})}var Ac=X(nt(),1);var De=X(nt(),1),I0=X(Hr(),1),St=X(me(),1);function w2(e,t){let n=t.trim().toLocaleLowerCase();if(!n)return new Set;let i=e.toLocaleLowerCase(),l=i.indexOf(n);if(l>=0)return new Set(Array.from({length:n.length},(r,u)=>l+u));let a=new Set,o=0;for(let r of n){let u=i.indexOf(r,o);if(u<0)return new Set;a.add(u),o=u+1}return a}function Z0(e,t){let n=w2(e,t);if(!n.size)return e;let i=[],l=0,a=n.has(0);for(let o=1;o<=e.length;o+=1){let r=o<e.length&&n.has(o);if(o<e.length&&r===a)continue;let u=e.slice(l,o);i.push(a?(0,St.jsx)("mark",{className:"kplex-fuzzy-match",children:u},`${l}:m`):(0,St.jsx)("span",{children:u},`${l}:t`)),l=o,a=r}return(0,St.jsx)(St.Fragment,{children:i})}function J0({value:e,onChange:t,results:n,getResults:i,onChoose:l,getKey:a,getLabel:o,getDetail:r,placeholder:u,ariaLabel:c,inputId:f,labelledBy:p,icon:s,autoFocus:h=!1,disabled:S=!1,floating:b=!1,floatingMode:v="app",portalSelector:d,appTopbarSelector:m,maxFloatingHeight:g=440,minFloatingWidth:x=0,resultsClassName:M="",matchingQuery:T,resultsOwnerId:w,preferSuggestionOnModifiedEnter:N=!1,resultPrefix:V,onEnterWithoutResult:E,onCtrlEnter:k,openResultsOnFocus:L=!0,onFocusChange:_,onDismiss:q,focusRequest:W,inputTitle:ie,inputKeyShortcuts:I,className:ae="",highlightMatches:J=!0,closeOnChoose:C=!0,closeOnBlur:P=!1,combobox:O=!1,advanceOnChoose:Y=!1,disclosure:ee}){let te=(0,De.useId)(),[H,Z]=(0,De.useState)(!1),[ue,fe]=(0,De.useState)(!1),[wt,we]=(0,De.useState)(!1),[Mt,je]=(0,De.useState)(!1),[Rn,et]=(0,De.useState)(0),[Et,pn]=(0,De.useState)(null),Dt=(0,De.useRef)(null),wi=(0,De.useRef)(null),Fn=(0,De.useRef)(null),rl=H&&!wt&&(Mt||L||ue&&e.trim().length>0),he=(0,De.useMemo)(()=>rl?i?.(e)??n??[]:[],[rl,i,n,e]),tt=he.length?Math.max(0,Math.min(he.length-1,Rn)):0,Lt=Dt.current?.ownerDocument??null,Te=Lt?.defaultView??null,Cn=b?v==="viewport"?Lt?.body??null:d?Dt.current?.closest(d)??null:null:null,An=H&&he.length>0&&(!b||!!(Cn&&Et)),$n=()=>{je(!1),we(!0),et(0),q?.()},Yt=()=>{ee&&(ee.onOpen(),Fn.current?.focus({preventScroll:!0}),Z(!0),je(!0),we(!1),et(0))},ul=U=>{je(!1),Z(!U),fe(!1),we(!U),et(0);let le=Fn.current;U&&le&&le.ownerDocument.activeElement===le&&le.blur(),_?.(!1)},Wn=()=>ul(!0),zn=U=>{if(l(U),C){ul(!O);return}Y&&he.length>0&&et(le=>(Math.max(0,Math.min(he.length-1,le))+1)%he.length)};(0,De.useEffect)(()=>{et(0)},[e]);let Pe=(0,De.useCallback)(()=>{let U=Fn.current;U&&(Z(!0),fe(!1),we(!1),U.focus({preventScroll:!0}),_?.(!0))},[_]);(0,De.useEffect)(()=>{h&&Pe()},[h,Pe]),(0,De.useEffect)(()=>{W&&Pe()},[W,Pe]),(0,De.useEffect)(()=>{let U=Dt.current;if(!U)return;let le=()=>$n();return U.addEventListener("kplex-dismiss-suggestions",le),()=>U.removeEventListener("kplex-dismiss-suggestions",le)},[q]),(0,De.useEffect)(()=>{if(!H||!Lt||!Te)return;let U=Dt.current;if(!U)return;let le=gn=>{let Tt=gn.target;Tt&&(U.contains(Tt)||wi.current?.contains(Tt))||Wn()},Ge=()=>Lt.removeEventListener("pointerdown",le,!0);return Lt.addEventListener("pointerdown",le,!0),Te.addEventListener("pagehide",Ge,{once:!0}),()=>{Ge(),Te.removeEventListener("pagehide",Ge)}},[H,Lt,Te]),(0,De.useLayoutEffect)(()=>{if(!b||!H||!he.length){pn(null);return}let U=Dt.current;if(!U||!Te)return;let le=Te.visualViewport,Ge=()=>{let ni=U.getBoundingClientRect(),qt=8,Za=6;if(v==="viewport"){let xr=le?.offsetLeft??0,y=le?.offsetTop??0,A=le?.width??Te.innerWidth,B=y+(le?.height??Te.innerHeight),K=Math.min(Math.max(ni.width,x),Math.max(0,A-qt*2)),re=Math.max(xr+qt,Math.min(ni.left,xr+A-qt-K)),j=Math.max(ni.bottom+Za,y+qt),_e=Math.min(ni.top-Za,B-qt),pt=Math.max(0,B-qt-j),Xe=Math.max(0,_e-y-qt),Le=pt>=Math.min(180,g)||pt>=Xe,jt=Math.max(0,Math.min(g,Le?pt:Xe)),Xt={position:"fixed",left:re,width:K,maxHeight:jt,zIndex:1e4};Le?Xt.top=j:Xt.bottom=Te.innerHeight-_e,pn(Xt);return}let pr=d?U.closest(d)??null:null,gr=m?U.closest(m)??null:null;if(!pr||!gr)return;let On=pr.getBoundingClientRect(),yr=gr.getBoundingClientRect(),Ia=Math.max(0,On.width-qt*2),br=Math.min(780,Math.max(ni.width,Math.min(620,Ia)),Ia),Ja=qt,vr=Math.max(Ja,On.width-qt-br),Sr=Math.min(vr,Math.max(Ja,ni.left-On.left)),Fa=Math.max(0,yr.bottom-On.top+Za),$a=Math.max(0,Math.min(g,On.height-Fa-qt));pn({left:Sr,top:Fa,width:br,maxHeight:$a})};Ge();let gn=Te.ResizeObserver,Tt=gn?new gn(Ge):null,ti=v==="app"&&d?U.closest(d):null,Qa=v==="app"&&m?U.closest(m):null;ti&&Tt?.observe(ti),Qa&&Tt?.observe(Qa),Tt?.observe(U);let cl=()=>{Tt?.disconnect(),Te.removeEventListener("resize",Ge),Te.removeEventListener("scroll",Ge,!0),le?.removeEventListener("resize",Ge),le?.removeEventListener("scroll",Ge)};return Te.addEventListener("resize",Ge),Te.addEventListener("scroll",Ge,!0),le?.addEventListener("resize",Ge),le?.addEventListener("scroll",Ge),Te.addEventListener("pagehide",cl,{once:!0}),()=>{cl(),Te.removeEventListener("pagehide",cl)}},[m,b,v,H,he.length,g,x,Lt,Te,d]),(0,De.useEffect)(()=>{let U=wi.current;!U||!he.length||U.querySelector(`[data-kplex-fuzzy-index="${tt}"]`)?.scrollIntoView({block:"nearest"})},[tt,he.length]);let ei=U=>{if(!(U.nativeEvent.isComposing||U.key==="Dead"||U.getModifierState("AltGraph"))){if(U.key==="Tab"){$n(),Z(!1),_?.(!1);return}if(U.key==="Escape"){he.length&&(U.preventDefault(),U.stopPropagation(),$n());return}if(O&&ee&&U.key==="ArrowDown"&&!he.length){U.preventDefault(),Yt();return}if(U.key==="ArrowDown"&&he.length){U.preventDefault(),et(le=>Math.min(he.length-1,le+1));return}if(U.key==="ArrowUp"&&he.length){U.preventDefault(),et(le=>Math.max(0,le-1));return}if(U.key==="Enter"&&U.repeat){U.preventDefault(),U.stopPropagation();return}if(U.key==="Enter"&&he.length&&(!(U.ctrlKey||U.metaKey)||N)){U.preventDefault(),U.stopPropagation();let le=he[tt];le&&zn(le);return}if(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&k){U.preventDefault(),U.stopPropagation(),k();return}if(!(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&!k)&&U.key==="Enter"){U.preventDefault();let le=he[tt];le?zn(le):E?.()}}},Mi=H&&he.length>0?(0,St.jsx)("div",{ref:wi,id:O?te:void 0,role:O?"listbox":void 0,"aria-labelledby":O?p:void 0,"aria-label":O&&!p?c:void 0,"data-fuzzy-owner":w,"data-kplex-tooltip-scope":!0,className:`kplex-search-results${b?" kplex-fuzzy-floating-results":" kplex-fuzzy-inline-results"}${M?` ${M}`:""}`,style:b?Et??void 0:void 0,children:he.map((U,le)=>{let Ge=o(U),gn=r?.(U),Tt=J?T??e:"";return(0,St.jsxs)("button",{id:O?`${te}-option-${le}`:void 0,role:O?"option":void 0,"aria-selected":O?le===tt:void 0,tabIndex:O?-1:void 0,"data-kplex-fuzzy-index":le,className:`kplex-search-result${V?" has-prefix":""}${le===tt?" is-selected":""}`,"aria-label":gn?`${Ge}
|
|
779
|
+
${gn}`:Ge,onMouseDown:ti=>ti.preventDefault(),onMouseEnter:()=>et(le),onClick:()=>zn(U),children:[V?(0,St.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:V(U)}):null,(0,St.jsx)("span",{children:Z0(Ge,Tt)}),gn?(0,St.jsx)("small",{children:Z0(gn,Tt)}):null]},a(U))})}):null,Ka=b&&Cn&&Et&&Mi?(0,I0.createPortal)(Mi,Cn):b?null:Mi;return(0,St.jsxs)("div",{ref:Dt,className:`kplex-search-shell kplex-fuzzy-search${ae?` ${ae}`:""}`,children:[s?(0,St.jsx)("div",{className:"kplex-search-icon",children:s}):null,(0,St.jsx)("input",{ref:Fn,type:"text",role:O?"combobox":void 0,id:f,className:"kplex-search",value:e,disabled:S,onChange:U=>{je(!1),fe(!0),we(!1),t(U.currentTarget.value)},onFocus:()=>{Z(!0),fe(!1),we(!1),_?.(!0)},onBlur:P?Wn:void 0,onKeyDown:ei,placeholder:u,"aria-label":p?void 0:c,title:ie,"aria-keyshortcuts":I,"aria-labelledby":p,"aria-expanded":O?An:H&&he.length>0,"aria-haspopup":O?"listbox":void 0,"aria-autocomplete":O?"list":void 0,"aria-controls":O&&An?te:void 0,"aria-activedescendant":O&&An?`${te}-option-${tt}`:void 0,autoComplete:"off"}),ee?(0,St.jsx)("button",{type:"button",className:"kplex-fuzzy-disclosure",tabIndex:O?-1:void 0,disabled:S,"aria-label":ee.label,"aria-expanded":O?An:H&&he.length>0,"aria-haspopup":O?"listbox":void 0,"aria-controls":O&&An?te:void 0,onMouseDown:U=>U.preventDefault(),onClick:()=>{if(H&&Mt&&!wt){$n();return}Yt()},children:ee.icon}):null,Ka]})}var $0=X(me(),1);function F0({graph:e,icon:t,portalSelector:n,appTopbarSelector:i,onActivate:l,revision:a,focusRequest:o,inputTitle:r,inputKeyShortcuts:u,placeholder:c,ariaLabel:f,clearOnActivate:p=!0,repeatFind:s=!1,resultIcon:h}){let[S,b]=(0,Ac.useState)(""),v=(0,Ac.useCallback)(d=>e.search(d,24),[e,a]);return(0,$0.jsx)(J0,{value:S,onChange:b,getResults:v,onChoose:d=>{l(d.node.id),p&&b("")},getKey:d=>d.node.id,getLabel:d=>d.label,getDetail:d=>d.detail,resultPrefix:h,placeholder:c,ariaLabel:f,floating:!0,icon:t,portalSelector:n,appTopbarSelector:i,focusRequest:o,inputTitle:r,inputKeyShortcuts:u,closeOnChoose:!s,advanceOnChoose:s})}var M2=1e5,E2=8*1024*1024,W0=1e6,T2=/[\p{L}\p{N}]+/gu,N2=/^[\p{L}\p{N}]{1,128}$/u;function ev(e){return[...new Set(e.normalize("NFC").toLowerCase().match(T2))].filter(t=>t.length<=128)}function R2(e,t){if(!Array.isArray(e)||e.length>Nr)throw new Error("Invalid publication search rows");let n=new Set,i=0;return e.map(l=>{if(!l||typeof l!="object"||!("id"in l)||!li(l.id)||n.has(l.id)||t&&!t.has(l.id)||!("text"in l)||typeof l.text!="string"||l.text.length>M2)throw new Error("Invalid publication search row");if(n.add(l.id),i+=l.text.length,i>E2)throw new Error("Publication search exceeds its text budget");return{id:l.id,text:l.text}})}function tv(e,t){if(!e||typeof e!="object"||!("version"in e)||e.version!==1||!("rows"in e)||!("terms"in e)||!Array.isArray(e.terms)||e.terms.length>W0)throw new Error("Invalid publication search index");let n=R2(e.rows,t),i="";for(let{id:r}of n){if(i>=r)throw new Error("Unordered publication search rows");i=r}let l="",a=0,o=e.terms.map(r=>{if(!Array.isArray(r)||r.length!==2)throw new Error("Invalid publication search term");let[u,c]=r;if(typeof u!="string"||u.length>128||!N2.test(u)||u!==u.normalize("NFC").toLowerCase()||l>=u||!Array.isArray(c)||!c.length||c.length>n.length)throw new Error("Invalid publication search term");if(l=u,a+=c.length,a>W0)throw new Error("Publication search exceeds its posting budget");let f=-1;for(let p of c){if(typeof p!="number"||!Number.isInteger(p)||p<=f||p>=n.length)throw new Error("Invalid publication search reference");f=p}return[u,c]});return{version:1,rows:n,terms:o}}function Vl(e){return e.trim().normalize("NFC").toLowerCase()}function nv(e,t){let n=new Set([...t.published.values()].filter(l=>l.kind==="document"||l.kind==="drawing").map(l=>l.id)),i=tv(e,n);return{rows:i.rows,positions:new Map(i.rows.map(({id:l},a)=>[l,a])),postings:new Map(i.terms)}}function C2(e,t){let n=Math.max(0,Vl(e).indexOf(t)-35);return`${n?"…":""}${e.slice(n,n+90)}${e.length>n+90?"…":""}`}function iv(e,t){let n=new Map,i=[...e.nodes.values()].map(a=>{let o=Vl(a.name),r=a.aliases.map(Vl),u=Object.values(e.published.get(a.id)?.properties??{}).flatMap(c=>typeof c=="object"?[...c]:[String(c)]).map(Vl);for(let c of[o,...r]){let f=n.get(c);f||n.set(c,f=new Set),f.add(a.id)}return{node:a,title:o,aliases:r,properties:u}});return{graph:{search(a,o){let r=Vl(a.slice(0,128));if(!r)return[];let u=ev(r),c=u[0],f=t&&u.length?u.map(p=>new Set(t.postings.get(p))):null;return i.flatMap(({node:p,title:s,aliases:h,properties:S})=>{let b=t?.positions.get(p.id),v=s===r?1:h.includes(r)?2:s.startsWith(r)?3:h.some(d=>d.startsWith(r))?4:s.includes(r)?5:h.some(d=>d.includes(r))||S.some(d=>d.includes(r))?6:b!==void 0&&f?.every(d=>d.has(b))?7:0;return v?[{score:v,node:p,position:b,title:s}]:[]}).sort((p,s)=>p.score-s.score||e.read.compare(p.node,s.node)).slice(0,o).map(({score:p,node:s,position:h,title:S})=>{let b=p===7&&h!==void 0?t?.rows[h]?.text:void 0,v=b&&c?C2(b,c):n.get(S).size>1?s.id:s.aliases.find(d=>Vl(d).includes(r))??"";return{node:s,label:s.name,detail:v}})}},address(a){let o=Vl(a),r=rr(e,o);return r.length?r:[...n.get(o)??[]]}}}var $e=X(me(),1);function lv({publication:e,resources:t,page:n,searchFocus:i,onChoose:l}){let a=(0,Ot.useRef)(null),o=(0,Ot.useId)(),[r,u]=(0,Ot.useState)(""),[c,f]=(0,Ot.useState)([]),[p,s]=(0,Ot.useState)(!1),[h,S]=(0,Ot.useState)(!1),[b,v]=(0,Ot.useState)(null),[d,m]=(0,Ot.useState)(!1),g=(0,Ot.useMemo)(()=>iv(e,h?b:null),[e,h,b]);(0,Ot.useEffect)(()=>{let M=a.current?.ownerDocument.defaultView;if(!h||!M||b)return;let T=new M.AbortController,w=T.signal;return m(!1),t.text(Rr,w).then(N=>{w.aborted||v(nv(JSON.parse(N),e))}).catch(()=>{w.aborted||m(!0)}),()=>T.abort()},[h,e,t,b]);function x(M){M.preventDefault();let T=D0(r.trim(),n(),e),w=T?T.matches:g.address(r);if(w.length!==1){f(w),s(!w.length);return}f([]),s(!1),l(T?.location??{id:w[0]})}return(0,$e.jsxs)("div",{className:"kplex-publication-tools",ref:a,children:[(0,$e.jsxs)("div",{className:"kplex-publication-search",children:[(0,$e.jsx)(F0,{graph:g.graph,revision:b&&h?1:0,onActivate:M=>l({id:M}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:z.find,ariaLabel:z.find,focusRequest:i,inputTitle:`${z.find} (${ir.key})`,inputKeyShortcuts:ir.key}),e.manifest?.fullText&&(0,$e.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,$e.jsx)(vt,{icon:"file-search",label:z.fullText,"aria-pressed":h,onClick:()=>S(M=>!M)}),h&&(d||!b)&&(0,$e.jsx)("span",{role:"status",children:d?z.searchUnavailable:z.searchLoading})]})]}),(0,$e.jsxs)("form",{className:"kplex-publication-address",onSubmit:x,children:[(0,$e.jsx)(Q0,{label:z.address,layout:"inline",controlId:o,actions:(0,$e.jsx)(vt,{icon:"corner-down-left",label:z.open,type:"submit"}),children:(0,$e.jsx)("input",{id:o,type:"text",placeholder:z.address,autoComplete:"off",maxLength:512,value:r,onChange:M=>{u(M.currentTarget.value),f([]),s(!1)}})}),p&&(0,$e.jsx)("span",{role:"status",children:z.nodeUnavailable}),c.length>1&&(0,$e.jsxs)("div",{className:"kplex-publication-address-matches",children:[(0,$e.jsx)("p",{children:z.chooseNote}),(0,$e.jsx)("ul",{children:c.slice(0,24).map(M=>(0,$e.jsx)("li",{children:(0,$e.jsxs)("button",{type:"button",onClick:()=>{f([]),l({id:M})},children:[e.nodes.get(M)?.name," · ",M]})},M))}),c.length>24&&(0,$e.jsx)("p",{children:z.chooseAddress})]})]})]})}var xt=X(nt(),1);var A2="https://api.github.com",z2="https://github.com",O2=/^[a-z\d][a-z\d-]{0,38}$/i,D2=/^[a-z\d_.-]{1,100}$/i;function av(e){return e.length<=256&&/^[a-z\d_.:/-]+$/i.test(e)&&!e.endsWith(".")&&!e.includes("..")&&e.split("/").every(t=>!!t&&!t.startsWith(".")&&!t.endsWith(".lock"))}function ov(e){if(!Zc(e))return null;let t=/^(https?):\/\/(?:www\.)?github\.com(?::(\d{1,5}))?(\/[^?#]*)?(?:[?#]|$)/i.exec(e);if(!t)return null;let[,n,i,l="/"]=t;if(i&&Number(i)!==(n.toLowerCase()==="https"?443:80))return null;let a;try{a=l.slice(1).replace(/\/$/,"").split("/").map(h=>decodeURIComponent(h))}catch{return{}}let[o,r,u,...c]=a;if(!o||!r||!O2.test(o)||!D2.test(r)||r==="."||r==="..")return{};let f=`${o}/${r}`,p=`${A2}/repos/${f}`,s=c.join("/");if(!u)return{repository:f,preview:{api:p,caption:f,comparison:!1}};if((u==="pull"||u==="issues")&&/^[1-9]\d{0,14}$/.test(c[0]??""))return{repository:f,preview:{api:`${p}/${u==="pull"?"pulls":"issues"}/${c[0]}`,caption:`${f} #${c[0]}`,comparison:!1}};if(u==="compare"){let h=s.split("...");if(h.length===2&&h.every(av))return{repository:f,preview:{api:`${p}/compare/${h.map(encodeURIComponent).join("...")}?per_page=20`,caption:s,comparison:!0}}}if(u==="releases"&&c[0]==="tag"){let h=c.slice(1).join("/");if(av(h))return{repository:f,preview:{api:`${p}/releases/tags/${encodeURIComponent(h)}`,caption:h,comparison:!1}}}return{repository:f}}function gm(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function ym(e,t){return typeof e=="string"&&e.trim()?e.trim().slice(0,t):void 0}function rv(e,t,n){let i=gm(n);if(!t.comparison)return{title:ym(i.title??i.name??i.full_name,240)??t.caption,description:ym(i.body??i.description,16e3)};let l=Array.isArray(i.commits)?i.commits.slice(0,20).flatMap(a=>{let{sha:o,commit:r}=gm(a);if(typeof o!="string"||!/^[a-f\d]{40}$/i.test(o))return[];let u=ym(gm(r).message,240);return[{sha:o.slice(0,7),title:u?.split(/\r?\n/,1)[0]??o.slice(0,7),href:`${z2}/${e}/commit/${o}`}]}):[];return{title:t.caption,commits:l,total:typeof i.total_commits=="number"&&Number.isSafeInteger(i.total_commits)&&i.total_commits>=l.length?i.total_commits:l.length}}var zc="http://www.w3.org/1999/xhtml",qa="http://www.w3.org/2000/svg",L2="http://www.w3.org/1999/xlink",uv="http://www.w3.org/XML/1998/namespace",_2=new Set("a article aside audio b blockquote br caption code dd del div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s section span strong sub sup table tbody td th thead tr ul video".split(" ")),H2=new Set("svg a circle clipPath defs ellipse g image line linearGradient marker mask path pattern polygon polyline radialGradient rect stop symbol text textPath tspan use".split(" ")),U2=new Set("x y x1 x2 y1 y2 cx cy r rx ry fx fy fr d points width height viewBox markerWidth markerHeight refX refY startOffset stroke-width stroke-dasharray stroke-dashoffset font-size letter-spacing textLength pathLength transform gradientTransform patternTransform opacity fill-opacity stroke-opacity offset stop-opacity stroke-miterlimit".split(" ")),P2=new Set("stroke-linecap stroke-linejoin text-anchor dominant-baseline alignment-baseline font-weight font-style font-family fill-rule clip-rule gradientUnits spreadMethod markerUnits marker-start marker-end marker-mid patternUnits patternContentUnits clipPathUnits maskUnits maskContentUnits preserveAspectRatio orient vector-effect visibility lengthAdjust".split(" ")),k2=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),cv=/^[-a-z0-9_]{1,96}$/i,V2=/^[\d\s+.,%()a-z-]+$/i,B2=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,G2=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,Y2=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,q2=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,sv=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,fv=4*1024*1024;function Oc(e){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(e)}function j2(e){if(e.length>2048||!/^https?:\/\//i.test(e)||/[\p{Cc}\s\\]/u.test(e))return null;try{let t=new URL(e);return t.hostname&&!t.username&&!t.password?t.href:null}catch{return null}}function X2(e,t=""){if(!li(e)||t&&!Oc(t))throw new Error("Invalid public link");return`?node=${e}${t?`#${encodeURIComponent(t)}`:""}`}function dv(e,t){if(e.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(e);if(!n||!t.nodeIds.has(n[1])||!li(n[1]))return null;let i="";try{i=decodeURIComponent(n[2]??"")}catch{return null}if(i&&!Oc(i))return null;if(t.nodeAddress)return t.nodeAddress(n[1],i);let l=X2(n[1],i);return t.siteURL?new URL(l,t.siteURL).href:l}if(e.startsWith("#")){let n;try{n=decodeURIComponent(e.slice(1))}catch{return null}return Oc(n)?`#${encodeURIComponent(t.idPrefix?`${t.idPrefix}-${n}`:n)}`:null}return mv(e,t)??(t.allowExternalLinks===!1?null:j2(e))}function mv(e,t){let n=e.slice(2);return!q2.test(e)||!Bl(n)||!t.assetPaths.has(n)?null:t.siteURL?new URL(`./${n}`,t.siteURL).href:`./${n}`}function K2(e,t){let n=new Map;for(let i of Array.from(e.querySelectorAll("[id]"))){let l=i.getAttribute("id");l&&/^[a-z0-9_.:-]{1,160}$/i.test(l)&&!n.has(l)&&n.set(l,`${t}-${n.size+1}`)}return n}function hv(e,t){t&&(e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"))}function pv(e,t,n,i){let l=mv(n,i);l&&(i.deferMedia?e.setAttribute("data-publication-asset",n.slice(2)):e.setAttribute(t,l))}function Q2(e,t){if(e.getAttribute("data-publication-drawing")!=="true")return;t.setAttribute("data-publication-drawing","true");let n=e.getAttribute("data-publication-drawing-mode");(n==="light"||n==="dark")&&t.setAttribute("data-publication-drawing-mode",n);for(let i of["width","height"]){let l=`data-publication-${i}`,a=e.getAttribute(l)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(a)&&(t.setAttribute(l,a),t.style.setProperty(`--kplex-published-drawing-${i}`,a.endsWith("%")?a:`${a}px`))}}function Z2(e,t,n){let i=e.localName,l=e.getAttribute("id")??e.getAttribute("data-publication-fragment");if(l&&Oc(l)&&(t.id=n.idPrefix?`${n.idPrefix}-${l}`:l,t.setAttribute("data-publication-fragment",l)),i==="a"&&hv(t,dv(e.getAttribute("href")??"",n)),i==="figure"&&Q2(e,t),i==="img"||i==="audio"||i==="video"){let a=e.getAttribute("src")??"";(i==="img"?sv:i==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(a)&&pv(t,"src",a,n),i==="img"?(t.setAttribute("alt",(e.getAttribute("alt")??"").slice(0,512)),t.setAttribute("loading","lazy"),t.setAttribute("decoding","async")):(t.setAttribute("controls","controls"),t.setAttribute("preload","none"))}if(i==="aside"||i==="blockquote"){let a=e.getAttribute("data-callout");a&&cv.test(a)&&t.setAttribute("data-callout",a)}if(i==="ol"){let a=e.getAttribute("start");a&&/^\d{1,7}$/.test(a)&&t.setAttribute("start",a)}}var I2=/@font-face\s*\{\s*font-family:\s*(["']?)([a-z0-9][a-z0-9 _-]{0,95})\1\s*;\s*src:\s*url\(\s*(["']?)data:font\/(woff2|woff|ttf|otf);base64,([A-Za-z0-9+/]+={0,2})\3\s*\)\s*;([^{}]*)\}/gi,J2=/^(?:normal|bold|[1-9]\d{0,2}|1000)(?: (?:[1-9]\d{0,2}|1000))?$/i,F2=/^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?(?:\s*,\s*u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?)*$/i,$2=new Set(["text","tspan","textPath"]),W2={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},eM=512*1024;function tM(e,t){let n=new Map,i=[],l=0;for(let a of Array.from(e.children))if(!(a.namespaceURI!==qa||a.localName!=="defs"))for(let o of Array.from(a.children)){if(o.namespaceURI!==qa||o.localName!=="style"||o.childElementCount)continue;let r=o.textContent??"";if(l+=r.length,l>eM)return{families:new Map,rules:[]};for(let u of r.matchAll(I2)){let c=u[2].trim().toLowerCase(),f=u[4].toLowerCase(),p=u[5];if(!(f==="woff2"||f==="woff"||f==="ttf"||f==="otf")||p.length<8||p.length%4||!atob(p.slice(0,8)).startsWith(W2[f]))continue;let s=n.get(c)??`${t}-font-${n.size+1}`;n.set(c,s);let h=new Map;for(let b of u[6].split(";")){let[v,d]=b.split(":").map(m=>m.trim().toLowerCase());d&&(v==="unicode-range"&&d.length<=8192&&F2.test(d)||v==="font-weight"&&J2.test(d)||v==="font-style"&&/^(?:normal|italic|oblique)$/.test(d))&&h.set(v,d)}let S=[...h].map(([b,v])=>`${b}:${v};`).join("");i.push(`@font-face{font-family:${s};src:url(data:font/${f};base64,${p});${S}}`)}}return{families:n,rules:i}}function nM(e,t){return e.split(",").map(n=>t?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function iM(e,t,n,i,l){for(let a of Array.from(e.attributes)){let{localName:o,value:r}=a;if(!(r.length>65536)){if($2.has(e.localName)&&(o==="style"&&!a.namespaceURI&&/(?:^|;)\s*white-space\s*:\s*pre\s*(?:;|$)/i.test(r)||o==="space"&&a.namespaceURI===uv&&r==="preserve")){t.setAttributeNS(uv,"xml:space","preserve");continue}if(o==="href"&&(a.namespaceURI===null||a.namespaceURI===L2)){if(e.localName==="a")hv(t,dv(r,i));else if(e.localName==="image"&&sv.test(r))pv(t,"href",r,i);else if((e.localName==="use"||e.localName==="textPath"||e.localName.endsWith("Gradient"))&&r.startsWith("#")){let u=n.get(r.slice(1));u&&t.setAttribute("href",`#${u}`)}continue}if(!a.namespaceURI)if(o==="id"){let u=n.get(r);u&&t.setAttribute(o,u)}else if(k2.has(o)){let u=Y2.exec(r),c=u&&n.get(u[1]);c?t.setAttribute(o,`url(#${c})`):G2.test(r)&&t.setAttribute(o,r)}else U2.has(o)&&V2.test(r)?t.setAttribute(o,r):P2.has(o)&&B2.test(r)&&t.setAttribute(o,o==="font-family"?nM(r,l?.families):r)}}}function lM(e,t,n){if(n.idPrefix&&!cv.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let l=n.siteURL?t:t.implementation.createDocument(null,null),a=l.adoptNode(new i.DocumentFragment),o=0,r=0,u=0,c=new Set,f=(p,s,h,S,b)=>{if(++o>1e5||h>64)throw new Error("Publication content too complex");if(p.nodeType===3||p.nodeType===4){let d=p.nodeValue??"";if(u+=d.length,u>fv)throw new Error("Publication content too large");s.appendChild(l.createTextNode(d));return}if(p.nodeType!==1)return;let v=p;if(v.namespaceURI===qa&&H2.has(v.localName)){if(v.localName==="svg"){let g=`${n.idPrefix??"svg"}-s${++r}`;S=K2(v,g),b=n.allowDrawingFonts?tM(v,g):void 0}if(!S)return;let d=l.createElementNS(qa,v.localName);iM(v,d,S,n,b);let m=d.getAttribute("id");if(m&&c.has(m)?d.removeAttribute("id"):m&&c.add(m),s.appendChild(d),v.localName==="svg"&&b?.rules.length){let g=l.createElementNS(qa,"defs"),x=l.createElementNS(qa,"style");x.textContent=b.rules.join(`
|
|
780
|
+
`),g.appendChild(x),d.appendChild(g)}for(let g of Array.from(v.childNodes))f(g,d,h+1,S,b)}else if(!S&&v.namespaceURI===zc&&_2.has(v.localName)){if(n.drawingMode&&v.localName==="figure"&&v.getAttribute("data-publication-drawing")==="true"){let m=v.getAttribute("data-publication-drawing-mode");if((m==="light"||m==="dark")&&m!==n.drawingMode)return}let d=l.createElementNS(zc,v.localName);Z2(v,d,n),s.appendChild(d);for(let m of Array.from(v.childNodes))f(m,d,h+1,null)}};for(let p of e)f(p,a,0,null);return a}function gv(e,t,n){if(e.length>fv||/<!\s*(?:doctype|entity)|<\?[^>]*\?>/i.test(e))throw new Error("Invalid publication content");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let l=new i.DOMParser().parseFromString(`<article xmlns="${zc}">${e}</article>`,"application/xhtml+xml");if(l.documentElement.namespaceURI!==zc||l.querySelector("parsererror"))throw new Error("Invalid publication markup");return lM(Array.from(l.documentElement.childNodes),t,{...n,allowDrawingFonts:!0})}function yv(e){if(e.protocol!=="https:"&&e.protocol!=="http:")return null;let t=e.hostname.toLowerCase();if(!["youtube.com","www.youtube.com","m.youtube.com","youtu.be","www.youtube-nocookie.com"].includes(t))return null;let n=e.pathname.split("/").filter(Boolean),i=t==="youtu.be"?n[0]:["embed","shorts","live"].includes(n[0])?n[1]:e.searchParams.get("v");return i&&/^[A-Za-z0-9_-]{11}$/.test(i)?{id:i,portrait:n[0]==="shorts"}:null}function bv(e){let t;try{t=typeof e=="string"?new URL(e):e}catch{return null}let n=yv(t);if(!n)return null;let i=new URL(`https://www.youtube.com/embed/${n.id}`);i.searchParams.set("playsinline","1");let l=t.searchParams.get("start")??t.searchParams.get("t");return l&&/^\d+s?$/.test(l)&&i.searchParams.set("start",l.replace(/s$/,"")),{url:i.href,aspectRatio:n.portrait?9/16:16/9}}var ja=X(nt(),1);async function vv(e,t,n,i){let l=await e.fetch(t,{credentials:"omit",redirect:"error",referrerPolicy:"no-referrer",signal:i}),a=l.body?.getReader();if(!l.ok||!a||Number(l.headers.get("Content-Length"))>n)throw await a?.cancel(),new Error("Publication resource unavailable");let o=[],r=0;try{for(;;){let f=await a.read();if(f.done)break;if(r+=f.value.byteLength,r>n)throw new Error("Publication resource exceeds its declared size");o.push(f.value)}}catch(f){throw await a.cancel().catch(()=>{}),f}finally{a.releaseLock()}let u=new Uint8Array(r),c=0;for(let f of o)u.set(f,c),c+=f.byteLength;return u}async function Sv(e,t,n,i){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await vv(e,t,n,i)))}function Dc(e,t,n,i,l){let a=new URL("./",t),o=new Map(n.resources.map(c=>[c.path,c])),r=new Set([...o.keys()].filter(c=>c.startsWith("assets/")));async function u(c,f){let p=o.get(c),s=new URL(c,a);if(!p||s.origin!==a.origin||s.pathname!==`${a.pathname}${c}`||!e.crypto.subtle)throw new Error("Publication resource unavailable");let h=i?await i(c,p.bytes,f):await vv(e,s,p.bytes,f);if(h.byteLength!==p.bytes)throw new Error("Publication resource size mismatch");let S=await e.crypto.subtle.digest("SHA-256",h);if(f.throwIfAborted(),Array.from(new Uint8Array(S),v=>v.toString(16).padStart(2,"0")).join("")!==p.sha256)throw new Error("Publication resource checksum mismatch");return h}return{siteURL:a,assetPaths:r,bytes:u,nodeAddress:l,has:c=>o.has(c),async text(c,f){return new TextDecoder("utf-8",{fatal:!0}).decode(await u(c,f))}}}var We=X(me(),1);function xv({page:e}){let t=(0,ja.useRef)(null),[n,i]=(0,ja.useState)(),{repository:l,preview:a}=e;return(0,ja.useEffect)(()=>{let o=t.current?.ownerDocument.defaultView;if(!o||!l||!a)return;let r=new o.AbortController;return Sv(o,new o.URL(a.api),8*1024*1024,r.signal).then(u=>{r.signal.aborted||i(rv(l,a,u))}).catch(()=>{r.signal.aborted||i(null)}),()=>r.abort()},[l,a]),(0,We.jsx)("div",{ref:t,className:"kplex-publication-github-preview",children:a?n===void 0?(0,We.jsx)("p",{role:"status",children:z.githubLoading}):n===null?(0,We.jsx)("p",{role:"status",children:z.githubPreviewUnavailable}):(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)("h3",{children:n.title}),n.description&&(0,We.jsx)("p",{className:"kplex-publication-github-description",children:n.description}),n.commits&&(n.commits.length?(0,We.jsxs)(We.Fragment,{children:[n.total!==void 0&&n.total>n.commits.length&&(0,We.jsx)("p",{children:z.githubCommitCount(n.commits.length,n.total)}),(0,We.jsx)("ol",{children:n.commits.map(o=>(0,We.jsx)("li",{children:(0,We.jsxs)("a",{href:o.href,target:"_blank",rel:"noopener noreferrer",children:[(0,We.jsx)("code",{children:o.sha})," ",o.title]})},o.href))})]}):(0,We.jsx)("p",{children:z.githubNoCommits}))]}):(0,We.jsx)("p",{children:z.githubOpenOriginal})})}var Ee=X(me(),1),wv="http://www.w3.org/2000/svg",aM={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml",mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",pdf:"application/pdf"};function bm(e,t){if(t)return Array.from(e.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===t||n.getAttribute("data-publication-fragment")===t)}function Mv({publication:e,resources:t,location:n,id:i,contentScope:l,colorMode:a,onClose:o,onNavigate:r,dock:u,onSwitchDock:c}){let f=(0,xt.useRef)(null),p=(0,xt.useRef)(null),s=(0,xt.useRef)(!1),h=(0,xt.useRef)(n.fragment);h.current=n.fragment;let[S,b]=(0,xt.useState)(0),[v,d]=(0,xt.useState)("loading"),[m,g]=(0,xt.useState)(0),x=e.published.get(n.id),M=x.kind==="url"?x.url:void 0,T=(0,xt.useMemo)(()=>ov(M),[M]),w=(0,xt.useMemo)(()=>M?bv(M):null,[M]),N=w&&["https:","http:"].includes(t.siteURL.protocol)&&new URL(w.url).origin!==t.siteURL.origin;(0,xt.useEffect)(()=>{let E=f.current,k=E?.ownerDocument.defaultView;if(!E||!k||M)return;let L=new k.AbortController,_=L.signal,q=new Map;g(0),E.replaceChildren();let W=async I=>{let ae=q.get(I);if(ae)return ae;let J=aM[I.slice(I.lastIndexOf(".")+1)];if(!J)throw new Error("Unsupported publication media");let C=await t.bytes(I,_);_.throwIfAborted();let P=k.URL.createObjectURL(new k.Blob([C],{type:J}));return q.set(I,P),P},ie=async()=>{if(x.kind!=="document"&&x.kind!=="drawing"){if(!x.asset){d("unavailable");return}let P=await W(x.asset);_.throwIfAborted();let O=E.ownerDocument.createElement("a");O.href=P,O.download=x.asset.slice(7),O.textContent=z.downloadAsset,E.replaceChildren(O),d("ready");return}let I=await t.text(Ic(x.id),_),ae=gv(I,E.ownerDocument,{siteURL:t.siteURL,nodeAddress:t.nodeAddress,nodeIds:new Set(e.nodes.keys()),assetPaths:t.assetPaths,idPrefix:l,deferMedia:!0,drawingMode:a}),J=Array.from(ae.querySelectorAll("[data-publication-asset]"),P=>({element:P,path:P.getAttribute("data-publication-asset"),download:!1})),C=new URL("./assets/",t.siteURL);for(let P of Array.from(ae.querySelectorAll("a[href]"))){let O=new URL(P.getAttribute("href"),t.siteURL);if(O.origin!==C.origin||!O.pathname.startsWith(C.pathname))continue;let Y=O.pathname.slice(t.siteURL.pathname.length);P.removeAttribute("href"),P.namespaceURI!==wv&&t.assetPaths.has(Y)&&J.push({element:P,path:Y,download:!0})}_.throwIfAborted(),E.replaceChildren(ae),d("ready"),bm(E,h.current)?.scrollIntoView({block:"start"});for(let{element:P,path:O,download:Y}of J)try{let ee=await W(O);_.throwIfAborted(),P.setAttribute(Y||P.namespaceURI===wv?"href":"src",ee),Y&&P.setAttribute("download",O.slice(7)),P.removeAttribute("data-publication-asset")}catch{if(_.aborted)return;g(ee=>ee+1)}};return d("loading"),ie().catch(()=>{_.aborted||d("failed")}),()=>{L.abort(),E.replaceChildren();for(let I of q.values())k.URL.revokeObjectURL(I)}},[S,x,e,t,l,a,M]),(0,xt.useEffect)(()=>{f.current&&bm(f.current,n.fragment)?.scrollIntoView({block:"start"})},[n.fragment]),(0,xt.useEffect)(()=>{s.current&&(s.current=!1,p.current?.focus({preventScroll:!0}))},[n.id]);function V(E){if(E.defaultPrevented||E.metaKey||E.ctrlKey||E.shiftKey||E.altKey)return;let k=E.target;if(!(k instanceof E.currentTarget.ownerDocument.defaultView.Element))return;let L=k.closest("a")?.getAttribute("href");if(!L)return;let _=O0(L,t.siteURL,e,n.id);if(!_)return;E.preventDefault();let q=L.startsWith("#")&&_.id===n.id&&f.current?bm(f.current,_.fragment):null;s.current=E.detail===0&&_.id!==n.id,r(q?{..._,fragment:q.getAttribute("data-publication-fragment")??void 0}:_)}return(0,Ee.jsxs)("aside",{id:i,className:`kplex-publication-note${M?" kplex-publication-web-note":""}`,"aria-labelledby":`${i}-heading`,children:[(0,Ee.jsxs)("header",{className:"kplex-publication-sidecar-heading",children:[(0,Ee.jsx)("h2",{ref:p,id:`${i}-heading`,tabIndex:-1,children:x.title}),(0,Ee.jsxs)("div",{className:"kplex-publication-sidecar-actions",children:[c&&(0,Ee.jsx)(vt,{icon:u==="bottom"?"panel-right":"panel-bottom",onClick:c,label:u==="bottom"?z.dockSidecarRight:z.dockSidecarBottom}),(0,Ee.jsx)(vt,{icon:"x",onClick:o,label:z.closeSidecar})]})]}),M?(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsxs)("div",{className:"kplex-publication-web-source",children:[(0,Ee.jsx)("a",{href:M,target:"_blank",rel:"noopener noreferrer",children:z.openWebsite}),!T&&!w&&(0,Ee.jsx)("p",{children:z.webFrameHelp})]}),T?(0,Ee.jsx)(xv,{page:T},M):w?N&&(0,Ee.jsx)("iframe",{className:"kplex-publication-web-frame kplex-publication-video-frame",title:x.title,src:w.url,style:{aspectRatio:w.aspectRatio??void 0},sandbox:"allow-scripts allow-same-origin allow-presentation",referrerPolicy:"strict-origin-when-cross-origin",allow:"encrypted-media; picture-in-picture",allowFullScreen:!0},w.url):(0,Ee.jsx)("iframe",{className:"kplex-publication-web-frame",title:x.title,src:M,sandbox:"allow-scripts",referrerPolicy:"no-referrer"},M)]}):(0,Ee.jsxs)(Ee.Fragment,{children:[v==="loading"&&(0,Ee.jsx)("p",{role:"status",children:z.loadingNote}),v==="failed"&&(0,Ee.jsxs)("div",{role:"alert",children:[(0,Ee.jsx)("p",{children:z.noteUnavailable}),(0,Ee.jsx)("button",{type:"button",onClick:()=>b(E=>E+1),children:z.retry})]}),v==="unavailable"&&(0,Ee.jsx)("p",{children:z.noDocument}),(0,Ee.jsx)("div",{ref:f,className:"kplex-publication-note-content","aria-busy":v==="loading",onClick:V}),m>0&&(0,Ee.jsxs)("div",{role:"status",children:[(0,Ee.jsx)("p",{children:z.mediaUnavailable}),(0,Ee.jsx)("button",{type:"button",onClick:()=>b(E=>E+1),children:z.retry})]})]})]})}var Jn=X(nt(),1);var xi=X(me(),1),Tv=736,Ev=6;function oM({dock:e,sidecarId:t,size:n,minimum:i,maximum:l,onSize:a}){let o=(0,Jn.useRef)(null),r=(0,Jn.useRef)(null),u=e!=="bottom",c=e==="left"?1:-1;function f(m){return u?m.clientX:m.clientY}function p(m){a(Math.max(i,Math.min(l,Math.round(m))))}function s(m,g){r.current?.pointer===g&&(r.current=null,m.hasPointerCapture(g)&&m.releasePointerCapture(g))}(0,Jn.useLayoutEffect)(()=>{let m=o.current;return()=>{m&&r.current&&s(m,r.current.pointer)}},[e]);function h(m){m.button!==0||r.current||(m.preventDefault(),m.currentTarget.focus({preventScroll:!0}),m.currentTarget.setPointerCapture(m.pointerId),r.current={pointer:m.pointerId,origin:f(m),size:n})}function S(m){let g=r.current;g?.pointer===m.pointerId&&p(g.size+c*(f(m)-g.origin))}function b(m){S(m),s(m.currentTarget,m.pointerId)}function v(m){s(m.currentTarget,m.pointerId)}function d(m){if(m.altKey||m.ctrlKey||m.metaKey)return;let[g,x]=u?e==="left"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]:["ArrowUp","ArrowDown"],M=m.shiftKey?1:10,T;if(m.key==="Home")T=i;else if(m.key==="End")T=l;else if(m.key===g)T=n+M;else if(m.key===x)T=n-M;else return;m.preventDefault(),p(T)}return(0,xi.jsx)("div",{ref:o,className:"kplex-publication-divider",role:"separator",tabIndex:0,"aria-label":z.resizeSidecar,"aria-controls":t,"aria-orientation":u?"vertical":"horizontal","aria-valuemin":i,"aria-valuemax":l,"aria-valuenow":n,onPointerDown:h,onPointerMove:S,onPointerUp:b,onPointerCancel:v,onLostPointerCapture:v,onKeyDown:d})}function Nv({canvas:e,sidecarId:t,sidecarOpen:n,dock:i,canDockLaterally:l,onDock:a,renderSidecar:o}){let r=(0,Jn.useRef)(null),[u,c]=(0,Jn.useState)({width:0,height:0}),[f,p]=(0,Jn.useState)({}),s=i!=="bottom",h=s?u.width:u.height,S=Math.max(0,h-(s?260:160)-Ev),b=Math.min(S,s?240:120),v=f[i]??Math.round(h*(s?.34:.43)),d=Math.max(b,Math.min(S,v)),m=n?{"--kplex-publication-sidecar-size":`${d}px`,"--kplex-publication-divider-size":`${Ev}px`}:void 0;(0,Jn.useLayoutEffect)(()=>{let M=r.current,T=M?.ownerDocument.defaultView;if(!M||!T)return;let w=M;function N(){let E=w.clientWidth,k=w.clientHeight;c(L=>L.width===E&&L.height===k?L:{width:E,height:k})}let V=new T.ResizeObserver(N);return V.observe(M),N(),()=>V.disconnect()},[]);function g(M){p(T=>T[i]===M?T:{...T,[i]:M})}function x(){a(i==="bottom"?"right":"bottom")}return(0,xi.jsxs)("div",{ref:r,className:`kplex-publication-workspace${n?" is-sidecar-open":""}`,"data-sidecar-dock":n?i:void 0,style:m,children:[e,n?(0,xi.jsxs)(xi.Fragment,{children:[(0,xi.jsx)(oM,{dock:i,sidecarId:t,size:d,minimum:b,maximum:S,onSize:g}),o(i,l?x:void 0)]}):(0,xi.jsx)("div",{id:t,hidden:!0})]})}function Lc(e,t,n){let i=n/2;switch(t){case"top":return{x:e.x,y:e.y-e.height/2-3-i};case"bottom":return{x:e.x,y:e.y+e.height/2+3+i};case"left":return{x:e.x-e.width/2-3-i,y:e.y};case"right":return{x:e.x+e.width/2+3+i,y:e.y}}}function Rv(e){switch(e){case"top":return{x:0,y:-1};case"bottom":return{x:0,y:1};case"left":return{x:-1,y:0};case"right":return{x:1,y:0}}}function rM(e,t,n,i,l){let a=1-l,o=a*a,r=l*l;return{x:o*a*e.x+3*o*l*t.x+3*a*r*n.x+r*l*i.x,y:o*a*e.y+3*o*l*t.y+3*a*r*n.y+r*l*i.y}}function vm(e,t,n,i,l){if(l==="straight")return{d:`M ${e.x} ${e.y} L ${t.x} ${t.y}`,midpoint:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}};let a=Math.hypot(t.x-e.x,t.y-e.y),o=Math.max(20,Math.min(108,a*.2)),r=Rv(n),u=Rv(i),c={x:e.x+r.x*o,y:e.y+r.y*o},f={x:t.x+u.x*o,y:t.y+u.y*o};return{d:`M ${e.x} ${e.y} C ${c.x} ${c.y}, ${f.x} ${f.y}, ${t.x} ${t.y}`,midpoint:rM(e,c,f,t,.5)}}var Sm=["parent","child","left","right","previous","next"];function Cv(e,t,n,i){let l=t.neighbours(e,"parent").slice(0,n),a=t.neighbours(e,"child").slice(0,n),o=[...t.neighbours(e,"left"),...t.neighbours(e,"previous")].slice(0,n),r=[...t.neighbours(e,"right"),...t.neighbours(e,"next")].slice(0,n),u=new Set([t.identity(e),...[...l,...a,...o,...r].map(p=>t.identity(p.page))]),c=new Map([...l,...a,...o,...r].map(p=>[t.identity(p.page),p.page])),f=new Map;if(i)for(let p of c.values())for(let s of Sm)for(let h of t.neighbours(p,s)){let S=t.identity(h.page);if(u.has(S))continue;let b=f.get(S);(!b||b.relationType!==1)&&f.set(S,{...h,role:"sibling"})}return{center:e,parents:l,children:a,leftFriends:o,rightFriends:r,siblings:t.sort([...f.values()]).slice(0,n)}}var ol=(e,t,n)=>Math.max(t,Math.min(n,e));function Dv(e){return e.horizontalCompactingFactor??e.compactingFactor}function uM(e){let t=e.compactView?.82:1;return{horizontal:ol(1.35/Dv(e),.38,1.35)*t,vertical:ol(1.35/e.compactingFactor,.38,1.35)*t,spacing:ol(e.minLinkLength/18,.72,1.7)}}function Av(e,t){return Math.max(1,Math.min(t==="parent"?3:7,Math.round(t==="parent"?e.parentColumns:e.childColumns)))}function Uc(e){return ol(e.siblingRelativeSize/100,.3,.85)}function zv(e,t){let n=ol(Dv(e),.75,4);return n>=3?-t*.05*(n-3):48*(3-n)*ol(e.minLinkLength/18,.72,1.7)*(e.compactView?.82:1)}function _c(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2+24))}function Hc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2))}function Nn(e,t,n=!1){let i=[...e];for(let l of e){let a=t.mini(l,n);a&&i.push({...l,width:a.width,height:a.viewportHeight,y:l.y+l.height/2+a.topGap+a.viewportHeight/2})}return i}function Ov(e,t,n,i,l,a,o){let r=e;if(!r.length)return r;let u=[];for(let s=0;s<r.length;s+=i){let h=r.slice(s,s+i);u.push({nodes:h,height:Math.max(...h.map(S=>S.height)),reserve:Math.max(0,...h.map(S=>o.reserve(S)))})}let c=t,f=u[0].height,p=u[0].reserve;return u.forEach((s,h)=>{let S;if(h===0){let m=Math.max(0,s.height-26)/2;S=n===-1?t-s.reserve-m:t+m}else n===1?S=c+f/2+p+a+s.height/2:S=c-f/2-a-s.reserve-s.height/2;let b=s.nodes.map(m=>o.width(m)),d=-(b.reduce((m,g)=>m+g,0)+l*Math.max(0,s.nodes.length-1))/2;s.nodes.forEach((m,g)=>{let x=b[g];m.x=d+x/2,m.y=S,d+=x+l}),c=S,f=s.height,p=s.reserve}),r}function xm(e,t,n,i){let l=e;return Lv(l,t,n,i),l}function Lv(e,t,n,i){if(!e.length)return;let l=e.map(c=>i.verticalReserve(c));e[0].x=t,e[0].y=0;for(let c=1;c<e.length;c+=1){let f=e[c-1],p=e[c];p.x=t,p.y=f.y+f.height/2+l[c-1]+n+p.height/2}let a=e[0].y-e[0].height/2,o=e.length-1,r=e[o].y+e[o].height/2+l[o],u=-(a+r)/2;for(let c of e)c.y+=u}function wm(e,t,n,i,l="center"){if(!e.length)return;let a=Math.min(...e.map(p=>p.y-p.height/2)),r=Math.max(...e.map(p=>p.y+p.height/2+i.verticalReserve(p)))-a,u=Math.max(1,n-t),f=(r>u?t:l==="midline"?ol(a,t,n-r):l==="bottom"?n-r:l==="top"?t:t+(u-r)/2)-a;for(let p of e)p.y+=f}function mr(e,t,n,i,l,a,o){let c=l.centerX-l.width/2,f=l.centerX+l.width/2,p=l.fixedEdgeY,s=l.fixedEdgeY;t.length&&(c=Math.min(c,...t.map(b=>b.x-b.width/2-24)),f=Math.max(f,...t.map(b=>b.x+b.width/2+24)),p=Math.min(...t.map(b=>b.y-b.height/2)),s=Math.max(...t.map(b=>b.y+b.height/2)));let h=o!==void 0&&a!==void 0?Math.max(72,a-o):Math.max(72,n),S=o!==void 0&&a!==void 0?o:i==="top"?(t.length?s+16:l.fixedEdgeY)-h:t.length?p-16:l.fixedEdgeY;return{key:e,left:c,top:S,width:f-c,height:h,resizeEdge:i}}function hr(e,t,n,i,l,a){if(!t.length)return null;let o=24,r=16,u=Math.min(...t.map(g=>g.x-g.width/2)),c=Math.max(...t.map(g=>g.x+g.width/2)),f=Math.min(...t.map(g=>g.y-g.height/2)),p=Math.max(...t.map(g=>g.y+g.height/2)),s=f-r,h=p+r,S=h-s,b=a!==void 0&&l!==void 0?Math.max(72,l-a):l===void 0?Number.POSITIVE_INFINITY:Math.max(72,l-s),v=Math.min(S,Math.max(72,n),b);if(S<=v+.5)return null;let d=s,m=0;return a!==void 0&&l!==void 0?(d=a,m=Math.max(0,d-s)):l!==void 0?(d=l-v,m=Math.max(0,d-s)):(i==="bottom"?d=h-v:i==="center"&&(d=ol(-v/2,s,h-v)),m=Math.max(0,d-s)),{key:e,left:u-o,top:d,width:c-u+o*2,height:v,contentTop:s,contentHeight:S,initialScrollTop:m}}function _v(e,t,n,i=!1){let l=Pe=>Math.max(0,...Pe.filter(ei=>ei.editor).map(ei=>ei.height+72));[...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.siblings].some(Pe=>Pe.editor)&&(t={...t,parentMaxHeight:Math.max(t.parentMaxHeight,l(e.parents)),childMaxHeight:Math.max(t.childMaxHeight,l(e.children)),friendMaxHeight:Math.max(t.friendMaxHeight,l([...e.leftFriends,...e.rightFriends])),siblingMaxHeight:Math.max(t.siblingMaxHeight,l(e.siblings))});let a=e.center,{horizontal:o,vertical:r,spacing:u}=uM(t),c=50*o*u,f=36*r*u,p=66*r*u,s=18*r*u,h=26,S=-(a.height/2+h/2+p),b=Math.max(42,52*r*u),v=a.height/2+h/2+p+b,d=Ov(e.parents,S,-1,Av(t,"parent"),c,f,n),m=Ov(e.children,v,1,Av(t,"child"),c,f,n),g=a.width/2,x=g+205*o*u,M=xm(e.leftFriends,-x,s,n),T=t.lateralArrangement==="left",w=xm(e.rightFriends,T?-x:x,s,n),N=T?[...M,...w]:M;T&&Lv(N,-x,s,n);let V=!T&&w.length>0,E=V?Math.max(...w.map(Pe=>Pe.x+Pe.width/2)):g,k=V?285:205,L=V?190:120,_=Math.max(x+k*o*u,E+L*o*u),q=xm(e.siblings,_,s,n),W=m.length?Math.min(...m.map(Pe=>Pe.y-Pe.height/2)):a.height/2+p+b+12,ie=Math.max(30,36*r*u),I=Math.max(120,t.friendMaxHeight),ae=Math.max(120,t.siblingMaxHeight),J=i?T?Math.min(I/2,W-ie):I/2:W-ie,C=J-I,P=C,O=J,Y=C,ee=J;wm(N,P,O,n,"midline"),T||wm(w,Y,ee,n,"midline");let te=Math.max(58,72*r*u),H=t.alignSiblingsToFirstParent?d[0]:void 0,Z=i?ae/2:H?H.y+H.height/2:J-te,ue=i?-ae/2:Z-ae;wm(q,ue,Z,n,i?"midline":"center");let fe=Nn(d,n,!0),wt=Nn(q,n,!0),we=d.length?_c(fe,a.width/2+24):170,Mt=Hc(fe,a.width/2),je=Math.max(_c(Nn(M,n,!0),115,-x),_c(Nn(w,n,!0),115,T?-x:x)),Rn=Math.max(Hc(Nn(M,n,!0),0,-x),Hc(Nn(w,n,!0),0,T?-x:x)),et=_c(wt,110,_),Et=Hc(wt,0,_),pn=T?Math.max(0,zv(t,we*2)):zv(t,we*2);d.length&&(x=we+je+pn),x=Math.max(x,Mt+Rn+4);for(let Pe of M)Pe.x=-x;for(let Pe of w)Pe.x=T?-x:x;(d.length||V)&&(_=V?x+je+et+Math.max(0,pn):we+et+pn),_=Math.max(_,Mt+Et+4,V?x+Rn+Et+4:0);for(let Pe of q)Pe.x=_;let Dt=Nn(d,n),wi=Nn(m,n),Fn=Nn(N,n),rl=Nn(T?[]:w,n),he=Nn(q,n),tt={},Lt=hr("parent",Dt,t.parentMaxHeight,"bottom"),Te=hr("child",wi,t.childMaxHeight,"top"),Cn=hr("left",Fn,t.friendMaxHeight,"top",O,P),An=hr("right",rl,t.friendMaxHeight,"top",ee,Y),$n=hr("sibling",he,t.siblingMaxHeight,"top",Z,ue);Lt&&(Lt.left=-we,Lt.width=we*2,tt.parent=Lt),Te&&(tt.child=Te),Cn&&(tt.left=Cn),An&&(tt.right=An),$n&&(tt.sibling=$n);let Yt={},ul=S+h/2+16,Wn=v-h/2-16;Yt.parent=mr("parent",Dt,t.parentMaxHeight,"top",{centerX:0,width:we*2,fixedEdgeY:ul}),Yt.child=mr("child",wi,t.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:Wn}),Yt.left=mr("left",Fn,t.friendMaxHeight,"top",{centerX:-x,width:je*2,fixedEdgeY:O},O,P),T||(Yt.right=mr("right",rl,t.friendMaxHeight,"top",{centerX:x,width:je*2,fixedEdgeY:ee},ee,Y)),Yt.sibling=mr("sibling",he,t.siblingMaxHeight,"top",{centerX:_,width:et*2,fixedEdgeY:Z},Z,ue);let zn=[a,...d,...m,...M,...w,...q];return t.flipEastWest&&cM(zn,Yt,tt),{nodes:zn,zoneViewports:tt,zoneAreas:Yt}}function cM(e,t,n){for(let i of e)i.x=-i.x;for(let i of Object.values(t))i&&(i.left=-i.left-i.width);for(let i of Object.values(n))i&&(i.left=-i.left-i.width)}var Hv={version:1,fields:{flipEastWest:{defaultValue:!1,validate:e=>typeof e=="boolean"}}};function Pc(e){return e?.status!=="unavailable"&&e?.values.flipEastWest===!0}function kc(e){return{top:"parent",bottom:"child",left:e?"right":"left",right:e?"left":"right"}}function Uv(e,t=!1){return e==="parent"?{source:"top",target:"bottom"}:e==="child"?{source:"bottom",target:"top"}:(e==="left"||e==="previous")!==t?{source:"left",target:"right"}:{source:"right",target:"left"}}var sM={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var fM={parent:{key:"parentMaxHeight",min:140,max:800},child:{key:"childMaxHeight",min:160,max:900},left:{key:"friendMaxHeight",min:140,max:800},right:{key:"friendMaxHeight",min:140,max:800},sibling:{key:"siblingMaxHeight",min:120,max:700}};function dM(e){if(!e||typeof e!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(l=>{let a=Reflect.get(e,l);return typeof a=="number"&&Number.isFinite(a)}))return!1;let n=Reflect.get(e,"horizontalCompactingFactor"),i=Reflect.get(e,"lateralArrangement");return typeof Reflect.get(e,"compactView")=="boolean"&&(n===void 0||typeof n=="number"&&Number.isFinite(n))&&(i===void 0||i==="left"||i==="split")}var Pv={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:Hv,capabilities:{sections:!0,descendants:!0,editor:!0,compact:!1},defaultState:null,restoreState:()=>null,project(e){let t=e.read.node(e.attention);if(!t||!e.read.isCurrent())return null;let n=!1,i=new Map,l=(f,p)=>{let s=JSON.stringify([f.id,p]),h=i.get(s)??e.read.relations(f.id,p);return i.set(s,h),n||=h.truncated||h.coverage==="unavailable",h.items.map(S=>({page:S.node,role:S.role,relationType:S.relationType,value:S}))},a=Cv(t,{identity:f=>f.id,neighbours:l,sort:f=>f.sort((p,s)=>e.read.compare(p.page,s.page))},e.maximum,!e.state||typeof e.state!="object"||Reflect.get(e.state,"renderSiblings")!==!1),o=Pc(e.configuration),r=[{id:"attention",nodeId:t.id,representation:"thought",...o?{ports:kc(!0)}:{}}],u=[],c=(f,p)=>f.forEach((s,h)=>{let S=JSON.stringify([p,s.page.id,h]),b=Uv(p,Pc(e.configuration));r.push({id:S,nodeId:s.page.id,role:p,areaId:p,representation:"thought",relation:s.value,groupingPartition:p,...o?{ports:kc(!0)}:{}}),p!=="sibling"&&u.push({id:S,kind:"semantic",source:"attention",target:S,sourceNode:t.id,targetNode:s.page.id,sourcePort:b.source,targetPort:b.target,relation:s.value})});c(a.parents,"parent"),c(a.children,"child"),c(a.leftFriends,"left"),c(a.rightFriends,"right"),c(a.siblings,"sibling");for(let f of r.filter(p=>p.role&&p.role!=="sibling")){if(!f.nodeId)continue;let p=e.read.node(f.nodeId);if(!p)continue;let s=Sm.flatMap(h=>l(p,h));for(let h of r.filter(S=>S.role==="sibling")){let S=s.find(v=>v.page.id===h.nodeId),b=S?Uv(S.role,o):null;S&&b&&u.push({id:JSON.stringify([f.id,h.id]),kind:"semantic",source:f.id,target:h.id,sourceNode:f.nodeId,targetNode:S.page.id,sourcePort:b.source,targetPort:b.target,relation:S.value})}}return{attention:t.id,layoutRoot:t.id,entry:"attention",editor:"attention",frame:"attention",occurrences:r,edges:u,truncated:n||[a.parents,a.children,a.leftFriends,a.rightFriends,a.siblings].some(f=>f.length===e.maximum),coverage:e.read.coverage}},layout(e,t,n,i,l){if(!dM(n))throw new Error("Missing Classic geometry preferences");let a={...n,flipEastWest:n.flipEastWest??Pc(l?.configuration)},o=new Map(t.map(s=>[s.id,s])),r=e.occurrences.map(s=>{let h=o.get(s.id);if(!h)throw new Error("Missing occurrence measurement");return{...h,x:0,y:0,role:s.role??"center",areaId:s.areaId}}),u=r.find(s=>s.id===e.entry);if(!u)throw new Error("Missing Classic attention occurrence");let c=s=>r.filter(h=>h.areaId===s),f=_v({center:u,parents:c("parent"),children:c("child"),leftFriends:c("left"),rightFriends:c("right"),siblings:c("sibling")},a,{reserve:s=>s.expandedReserve,verticalReserve:s=>s.expandedReserve*(s.role==="sibling"?Uc(a):1),width:s=>s.expandedWidth,mini:(s,h)=>s[h?"envelope":"mini"]},i),p=Object.values(f.zoneAreas).map(s=>{let h=fM[s.key];return{id:s.key,labelKey:sM[s.key],bounds:{x:s.left,y:s.top,width:s.width,height:s.height},resizeEdge:s.resizeEdge,heightPreference:{key:h.key,minimum:h.min,maximum:h.max},...s.key==="sibling"?{}:{dropRole:s.key},...f.zoneViewports[s.key]?{viewport:{...f.zoneViewports[s.key],x:f.zoneViewports[s.key].left,y:f.zoneViewports[s.key].top}}:{}}});return{positions:new Map(f.nodes.map(s=>[s.id,{x:s.x,y:s.y,width:s.width,height:s.height}])),areas:p}}};var mM={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous",sibling:"sibling"};function Vv(e,t,n){let i=n==="previous"?"left":n==="next"?"right":n;return t&&(i==="left"||i==="right")?t:Object.entries(e??{}).find(([,l])=>l===i)?.[0]}function kv(e,t){return JSON.stringify(e<t?[e,t]:[t,e])}function Bv(e,t,n,i,l,a){let o=new Set(e.keys()),r=new Set;for(let[f,p]of t)r.add(kv(f,p));let u=0,c=0;for(let[f,p]of e){if(++u>16384)return!0;for(let s of n(p[0],o)){if(++u>16384||c>=4096)return!0;let h=i(s),S=e.get(h);if(!S||h===f)continue;let b=kv(f,h);if(r.has(b))continue;let v,d=1/0;for(let m of p)for(let g of S){if(++u>16384)return!0;let x=l(m,s.role),M=l(g,mM[s.role]);if(!x||!M)continue;let T=(m.x-g.x)**2+(m.y-g.y)**2;T<d&&(v={source:m,target:g,sourcePort:x,targetPort:M},d=T)}v&&(r.add(b),c++,a(v,s))}}return!1}function Xa(e){let t=e.length===1?"root":JSON.stringify(e);return Ul(t)?t:null}function Gv(e,t){let n=new Map;for(let i of(e.editors??[]).slice(0,1)){if(i.occurrenceId==="root"&&i.nodeId===t){n.set("root",[t]);continue}try{let l=JSON.parse(i.occurrenceId);if(!Array.isArray(l)||l.length<2||l.length>ht.depth+1||!l.every(Ul)||l[0]!==t||l[l.length-1]!==i.nodeId||Xa(l.map(En))!==i.occurrenceId)continue;n.set(i.occurrenceId,l.map(En))}catch{}}return n}function Yv(e){let t=vc(e.configuration),n=il(e.state),i=e.layoutRoot;if(!t||n.version!==1||!i||!Number.isInteger(e.maximum)||e.maximum<1||e.read.node(i)?.id!==i||!e.read.isCurrent())return null;let l=lr(c0(n,i,Math.min(t.initialGenerations,t.maximumDepth)));if(!l)return null;let a=l,o=Math.min(t.maximumOccurrences,ht.occurrences,Math.max(1,e.maximum*8+1)),r=new Set(a.expanded),u=new Set(a.collapsed),c=Gv(e,i),f=new Set,p=new Map,s=new Set;for(let w of c.values())for(let N=1;N<=w.length;N++){let V=Xa(w.slice(0,N));if(V&&(f.add(V),N<w.length)){let E=p.get(V)??new Set;E.add(w[N]),p.set(V,E),N>1&&s.add(w[N-1])}}let h=new Set([...(e.retainedScopes??[]).slice(0,16),...s].filter(w=>w!==i)),S=new Set,b=new Set,v=[],d=[],m=[{id:"root",lineage:[i],depth:0,side:1}],g=!1,x=(w,N,V)=>{let k=(V?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).map(_=>e.read.relations(w,_,N)),L=new Map;for(let _ of k)for(let q of _.items)L.has(q.node.id)||L.set(q.node.id,q);return{items:[...L.values()],truncated:k.some(_=>_.truncated),coverage:k.some(_=>_.coverage==="unavailable")?"unavailable":k.every(_=>_.coverage==="local")?"local":"cached"}},M=w=>{if(w===i||S.has(w))return!0;if(S.size>=ht.scopes)return!1;let N=[...h].filter(V=>!S.has(V)&&V!==w).length;return!h.has(w)&&S.size+N>=ht.scopes?!1:(S.add(w),!0)};for(;m.length&&v.length<o;){let w=m.shift(),N=w.lineage[w.lineage.length-1];if(b.has(w.id))continue;b.add(w.id);let V=e.read.node(N);if(!V||V.id!==N||!e.read.isCurrent())return null;let E=w.lineage.slice(0,-1).includes(N),k=p.has(w.id)?Math.max(t.maximumDepth,w.depth+1):t.maximumDepth,L=e.read.scope?.(N)??{coverage:"unavailable",prepared:!1,complete:!1,pending:!1},_=E?{items:[],truncated:!1,coverage:"cached"}:x(N,1,w.depth===0),q=!E&&w.depth<k&&!u.has(w.id)&&(r.has(w.id)||w.depth<a.initialGenerations),W=!E&&w.depth<k&&!(L.complete&&_.coverage!=="unavailable"&&_.items.length===0&&!_.truncated),ie=q&&W&&M(N),I=ie?x(N,Math.min(e.maximum,128),w.depth===0):_,ae=E||!q?"ready":L.pending?"loading":I.coverage==="unavailable"?"unavailable":L.complete?"ready":L.prepared||I.items.length>0?"partial":"unavailable";(q&&W&&!ie||ie&&I.truncated||!E&&w.depth>=k&&(I.items.length>0||!L.complete))&&(ae="limited",g=!0);let J=[];if(ie){let Y=new Map(I.items.map(H=>[H.node.id,H]));for(let H of p.get(w.id)??[])if(!Y.has(H)){let ue=(w.depth===0?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).flatMap(fe=>e.read.relation?.(N,H,fe)?.items??[]).find(fe=>fe.node.id===H);ue&&e.read.isCurrent()&&Y.set(H,ue)}if(w.depth===0&&L.complete&&!I.truncated&&I.coverage!=="unavailable"){let H=new Set([...Y.keys()].map(Z=>Xa([i,Z])));a={...a,sides:Object.fromEntries(Object.entries(a.sides).filter(([Z])=>H.has(Z)))}}let ee=[...Y.values()].map(H=>{let Z=[...w.lineage,H.node.id],ue=Xa(Z);return ue?{id:ue,lineage:Z,relation:H}:(g=!0,ae="limited",null)}).filter(H=>H!==null);ee.sort((H,Z)=>Number(f.has(Z.id))-Number(f.has(H.id))||e.read.compare(H.relation.node,Z.relation.node));let te=o-v.length-1-m.length;for(let H of ee){let Z=[...f].filter(ue=>ue!==w.id&&!b.has(ue)&&!m.some(fe=>fe.id===ue)&&!J.some(fe=>fe.id===ue)&&ue!==H.id).length;if(te<=0||!f.has(H.id)&&te<=Z){g=!0,ae="limited";continue}if(w.depth===0&&H.relation.role==="child"&&a.sides[H.id]===void 0){let ue=[...Y.keys()].flatMap(we=>{let Mt=Xa([i,we]),je=Mt?a.sides[Mt]:void 0;return je===-1||je===1?[je]:[]}),fe=ue.filter(we=>we===-1).length<ue.filter(we=>we===1).length?-1:1,wt=lr({...a,sides:{...a.sides,[H.id]:fe}});if(!wt){g=!0,ae="limited";continue}a=wt}J.push(H),te--}J.sort((H,Z)=>e.read.compare(H.relation.node,Z.relation.node))}let C={parent:w.parent,depth:w.depth,side:w.side,expanded:ie,canExpand:W,reference:E,status:ae},P=w.depth===0||w.side===-1?"left":"right";v.push({id:w.id,nodeId:N,areaId:w.areaId,representation:"thought",role:w.relation?.role,relation:w.relation,branch:C,ports:w.depth===0?{top:"parent",bottom:"child",left:"left"}:w.side===1?{left:"parent",bottom:"child",right:"left"}:{left:"left",bottom:"child",right:"parent"},peerPort:{side:P,count:new Set(I.items.filter(Y=>["left","right","previous","next"].includes(Y.role)).map(Y=>Y.node.id)).size,complete:L.complete&&I.coverage!=="unavailable"&&!I.truncated&&!E},...!ie&&!E&&w.parent?{groupingPartition:JSON.stringify([w.parent,w.side])}:{}}),w.parent&&w.relation&&d.push({id:w.id,kind:"semantic",source:w.parent,target:w.id,sourceNode:w.lineage[w.lineage.length-2],targetNode:N,relation:w.relation,sourcePort:w.relation.role==="child"?"bottom":w.relation.role==="parent"?"top":w.side===1?"right":"left",targetPort:w.parent==="root"&&w.relation.role==="parent"?"bottom":w.side===1?"left":"right"});let O=0;for(let Y of J){let ee=Y.relation.role==="parent"&&t.parentColumns>1&&O++%t.parentColumns===0?-1:1,te=w.depth?w.side:Y.relation.role==="parent"?ee:Y.relation.role!=="child"||t.arrangement==="left"?-1:t.arrangement==="right"?1:a.sides[Y.id],H=w.depth?w.areaId:Y.relation.role==="parent"?"parent":Y.relation.role==="child"?te===-1?"child-left":"child-right":"left";m.push({...Y,parent:w.id,depth:w.depth+1,side:te,areaId:H})}}if(!e.read.isCurrent())return null;g||=m.length>0;let T=JSON.stringify(a)===JSON.stringify(n)?void 0:a;return{attention:e.attention,layoutRoot:i,root:"root",entry:"root",frame:"root",occurrences:v,edges:d,truncated:g,coverage:e.read.coverage,preparation:{parents:[...S]},stateSuggestion:T}}function hM(e){if(e.length>2048)throw new Error("Invalid measured area size");let t=new Set,n=[];for(let i of e){if(typeof i.id!="string"||!i.id||t.has(i.id)||!Number.isFinite(i.width)||i.width<=0||!Number.isFinite(i.height)||i.height<=0)throw new Error("Invalid measured area item");let l=i.insets?.top??0,a=i.insets?.right??0,o=i.insets?.bottom??0,r=i.insets?.left??0;for(let u of[l,a,o,r])if(!Number.isFinite(u)||u<0||u>1e5)throw new Error("Invalid measured area inset");t.add(i.id),n.push({item:i,top:l,right:a,bottom:o,left:r,width:i.width+r+a,height:i.height+l+o})}return n}function pM(e,t){let n=Array(t).fill(0);for(let i=0;i<e.length;i++)n[i%t]=Math.max(n[i%t],e[i].width);return n}function qv(e,t,n,i,l=24,a=42,o=16){if(!Number.isInteger(t)||t<1||t>32||e.length>2048||![n,i,l,a,o].every(v=>Number.isFinite(v)&&v>=0))throw new Error("Invalid area grid policy");if(!e.length)return{positions:new Map,width:0,height:0};let r=hM(e),u=Math.min(t,e.length),c=pM(r,u),f=Array(Math.ceil(e.length/u)).fill(0);for(let v=0;v<r.length;v++)f[Math.floor(v/u)]=Math.max(f[Math.floor(v/u)],r[v].height);let p=[],s=[],h=l,S=a;for(let v of c)p.push(h+v/2),h+=v+n;for(let v of f)s.push(S+v/2),S+=v+i;let b=new Map;for(let v=0;v<r.length;v++){let d=r[v];b.set(d.item.id,{x:p[v%u]+(d.left-d.right)/2,y:s[Math.floor(v/u)]+(d.top-d.bottom)/2,width:d.item.width,height:d.item.height})}return{positions:b,width:h-n+l,height:S-i+o}}function jv(e,t,n,i={}){let l=n.horizontalSpacing/n.horizontalDensity,a=n.verticalSpacing/n.verticalDensity,o=e.entry,r=e.occurrences.filter(C=>!C.section),u=e.occurrences.filter(C=>C.section),c=new Map(t.map(C=>[C.id,C])),f=(C,P)=>C?c.get(C)?.controlReserve?.[P]??0:0;if(r.length>ht.occurrences||new Set(r.map(C=>C.id)).size!==r.length)throw new Error("Invalid hierarchy identity");let p=new Map;for(let C of r){let P=c.get(C.id);if(!P||![P.width,P.height].every(ee=>Number.isFinite(ee)&&ee>0)||!C.branch)throw new Error("Invalid measured hierarchy");if(P.controlReserve&&![P.controlReserve.right,P.controlReserve.bottom].every(ee=>Number.isFinite(ee)&&ee>=0&&ee<=64))throw new Error("Invalid measured control reserve");if(C.id===o){if(C.branch.parent)throw new Error("Root cannot have a parent");continue}let O=C.branch.parent;if(!O||!c.has(O))throw new Error("Missing hierarchy parent");let Y=p.get(O)??[];Y.push(C),p.set(O,Y)}let s=new Map,h=new Set,S=(C,P)=>{let O=s.get(C);if(O!==void 0)return O;if(P>ht.depth||h.has(C))throw new Error("Invalid hierarchy ancestry");h.add(C);let Y=p.get(C)??[],ee=Y.reduce((H,Z)=>H+S(Z.id,P+1),0)+Math.max(0,Y.length-1)*a,te=Math.max(c.get(C).height+f(C,"bottom"),ee);return h.delete(C),s.set(C,te),te};for(let C of r)S(C.id,0);let b=c.get(o);if(!b)throw new Error("Missing hierarchy root");let v=new Map([[o,{x:0,y:0,width:b.width,height:b.height}]]),d=(C,P,O,Y)=>{let ee=C.reduce((H,Z)=>H+s.get(Z.id),0)+Math.max(0,C.length-1)*a,te=P.y+f(Y,"bottom")/2-ee/2;for(let H of C){let Z=c.get(H.id),ue=s.get(H.id),fe={width:Z.width,height:Z.height,x:P.x+O*(P.width/2+l+Z.width/2+f(O===1?Y:H.id,"right")),y:te+ue/2-f(H.id,"bottom")/2};if(v.has(H.id))throw new Error("Repeated hierarchy parent");v.set(H.id,fe),d(p.get(H.id)??[],fe,O,H.id),te+=ue+a}},m=p.get(o)??[],g=m.filter(C=>C.role==="parent"),x=m.filter(C=>C.role!=="parent"),M=C=>c.get(C).width+f(C,"right")+(p.get(C)?.length??0?l+Math.max(...p.get(C).map(P=>M(P.id))):0),T=g.filter(C=>C.branch.side===-1),w=g.filter(C=>C.branch.side===1),N=n.parentColumns,V=[];for(;T.length||w.length;)for(let C=0;C<N;C++)V.push(N>1&&C===0?T.shift():w.shift()??(N===1?T.shift():void 0));let E=qv(V.map((C,P)=>C?{id:C.id,width:M(C.id),height:s.get(C.id)}:{id:`empty-parent-cell-${P}`,width:1,height:1}),n.parentColumns,l,a),k=u.map(C=>{let P=c.get(C.id);if(!P)throw new Error("Missing measured section");return P}),L=Math.max(b.width+f(o,"right")*2,E.width,...k.map(C=>C.width)),_=Math.max(140,Math.min(800,i.parentHeight??300)),q=Math.max(_,E.height),W={x:-L/2,y:-b.height/2-a-q,width:L,height:q};if(!Number.isFinite(q))throw new Error("Invalid parent area height");for(let C of g){let P=E.positions.get(C.id),O=c.get(C.id),Y=N===1?1:C.branch.side,ee={x:W.x+(L-E.width)/2+P.x+Y*(-P.width/2+O.width/2)-(Y===-1?f(C.id,"right"):0),y:W.y+q-E.height+P.y-f(C.id,"bottom")/2,width:O.width,height:O.height};v.set(C.id,ee),d(p.get(C.id)??[],ee,Y,C.id)}let ie={...v.get(o),width:L};for(let C of[-1,1]){let P=x.filter(O=>O.branch?.side===C);d([...P.filter(O=>O.role!=="child"),...P.filter(O=>O.role==="child")],ie,C)}if(v.size!==r.length)throw new Error("Disconnected hierarchy");let I=b.height/2+f(o,"bottom")+Math.min(24,a);for(let C of k)v.set(C.id,{x:0,y:I+C.height/2,width:C.width,height:C.height}),I+=C.height+Math.min(24,a);let ae=[{id:"parent",labelKey:"graph.zoneParents",bounds:{...W,height:q},resizeEdge:"top",heightPreference:{key:"parentHeight",minimum:140,maximum:800,value:_},dropRole:"parent",viewport:{...W,height:q,contentTop:W.y,contentHeight:q,initialScrollTop:0,scrollable:!1},reflow:{columns:n.parentColumns,columnGap:l,rowGap:a,filterLayout:"keep"}}],J=Math.min(8,a/4,l/4);for(let[C,P]of[["child-left","child"],["child-right","child"],["left","left"]]){let O=r.filter(te=>te.areaId===C).map(te=>{let H=v.get(te.id),Z=f(te.id,"right"),ue=f(te.id,"bottom");return{...H,x:H.x+Z/2,y:H.y+ue/2,width:H.width+Z,height:H.height+ue}});if(!O.length)continue;let Y=Math.min(...O.map(te=>te.x-te.width/2))-J,ee=Math.min(...O.map(te=>te.y-te.height/2))-J;ae.push({id:C,labelKey:P==="child"?"graph.zoneChildren":"graph.zoneFriendsChallengers",dropRole:P,bounds:{x:Y,y:ee,width:Math.max(...O.map(te=>te.x+te.width/2))+J-Y,height:Math.max(...O.map(te=>te.y+te.height/2))+J-ee}})}return{positions:v,areas:ae}}function gM(e){if(!e.documentId||typeof e.path!="string"||!e.path||!e.revision||e.revision.length>256||e.rows.length>256||e.provenance.length>4096||e.visible.length>e.rows.length)return!1;let t=new Map(e.rows.map(n=>[n.id,n]));if(t.size!==e.rows.length||new Set(e.visible).size!==e.visible.length||e.visible.some(n=>!t.has(n)))return!1;for(let n of e.rows)if(!n.id||n.id.length>4096||typeof n.label!="string"||n.label.length>4096||!Number.isInteger(n.level)||n.level<1||n.level>6||!Number.isInteger(n.line)||n.line<1||!Number.isInteger(n.start)||!Number.isInteger(n.end)||n.start<0||n.end<n.start||n.parent!==null&&(!t.has(n.parent)||t.get(n.parent).level>=n.level)||new Set(n.children).size!==n.children.length||n.children.some(i=>t.get(i)?.parent!==n.id)||n.parent&&!t.get(n.parent).children.includes(n.id))return!1;return e.provenance.every(n=>(n.sectionId===null||t.has(n.sectionId))&&!!n.target&&["parent","child","left","right","previous","next","sibling"].includes(n.role))}function yM(e,t,n){let i=e.provenance.filter(c=>c.target===t&&c.role===n);if(!i.length||i.some(c=>c.sectionId===null))return null;let l=new Map(e.rows.map(c=>[c.id,c])),a=new Set(e.visible),o=c=>{let f=[];for(let p=0;c&&p<256;p++)a.has(c)&&f.push(c),c=l.get(c)?.parent??"";return f},r=i.map(c=>o(c.sectionId)),u=r[0].find(c=>r.every(f=>f.includes(c)));return u?{documentId:e.documentId,revision:e.revision,sectionId:u}:null}function Xv(e,t,n){let i=e.occurrences.find(r=>r.id===(e.root??e.entry));if(!i?.nodeId||i.nodeId!==t.documentId||!gM(t)||!Number.isInteger(n)||n<e.occurrences.length||n>2048)throw new Error("Invalid central section projection");let l=new Set(t.visible),a=t.rows.filter(r=>l.has(r.id)),o=a.slice(0,n-e.occurrences.length).map(r=>({id:JSON.stringify(["section",r.id]),nodeId:t.documentId,representation:"thought",ports:{},section:{documentId:t.documentId,revision:t.revision,sectionId:r.id}}));return{...e,occurrences:[...e.occurrences,...o],truncated:e.truncated||o.length<a.length,edges:e.edges.map(r=>{if(r.kind!=="semantic"||r.source!==i.id)return r;let u=yM(t,r.targetNode,r.relation.role);return u?{...r,sourceSection:u}:r})}}var Kv={id:"mindmap",version:1,labelKey:"view.mindmap",icon:"network",navigation:"rooted",navigationEntry:"attention",editorHosting:"occurrence",capabilities:{sections:!0,descendants:!1,editor:!0,compact:!1},sectionSource:"layout-root",defaultState:em,hierarchy:{maximumScopes:ht.scopes,maximumDepth:ht.depth,primary:"center",controls:"measured",relations:"child-and-peer",reduce:xc},configuration:bc,restoreState:il,project(e){let t=Yv(e);return t&&e.sections?.status==="available"?Xv(t,e.sections.snapshot,Math.min(2048,e.maximum*8+1)):t},layout(e,t,n,i,l){let a=vc(l?.configuration);if(!a)throw new Error("Mind Map configuration unavailable");return jv(e,t,a,l?.areaHeights)}};var bM={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},Mm={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function Qv(e){return e==="left"||e==="right"||e==="sibling"}function Iv(e,t,n=!0,i="compass",l,a=!1,o){let{read:r}=e,u=e.manifest?.appearance,c=u?.flip??!1,f={...bM,...u?.geometry,flipEastWest:c};o!==void 0&&(f.childColumns=Math.min(f.childColumns,o)),e.manifest&&(f.siblingMaxHeight+=72);let p={baseFontSize:u?.typography?.baseFontSize??Mm.baseFontSize,wrapNodeLabels:u?.typography?.wrapNodeLabels??Mm.wrapNodeLabels,propertyFontSize:u?.typography?.propertyFontSize??Mm.propertyFontSize},s=kc(c),h=i==="mindmap",S=h?Kv:Pv,b=S.project({attention:t,read:r,maximum:u?.maximum??100,...h?{layoutRoot:t,state:l}:{state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:c}}}});if(!b)throw new Error("Publication attention is unavailable");let v=b.occurrences.map(E=>{let k=E.nodeId&&r.node(E.nodeId);if(!k)throw new Error("Publication occurrence is unavailable");let L=E.id===b.entry,_=E.role==="sibling",q=_?Uc(f):1,W=e.published.get(k.id),ie=W?.roleStyles,I=E.relation?.relationType===2?ie?.inferred:void 0,ae=L?ie?.center:_?ie?.sibling:void 0,J={...W?.style,...I,...ae},C=ae?.fontSize??I?.fontSize??W?.style?.fontSize??(L?30:_?15:20),P=ae?.gateRadius??I?.gateRadius??W?.style?.gateRadius??5,O=or(C*q,L,p.baseFontSize)*(_&&e.manifest?.7:1),Y=h0(k.name,C,p,L,k.maxLabelLength);J.icon!=null&&(Y.width+=L?22:17);let ee=p0(Y,q,C*q,p);return{occurrence:E,node:k,center:L,fontSize:O,style:J,gateSize:f0({gateRadius:P*q}),measurement:{id:E.id,...ee,expandedWidth:ee.width,expandedReserve:0,mini:null,envelope:null,controlReserve:E.branch?.canExpand?{right:0,bottom:23}:void 0}}}),d=S.layout(b,v.map(E=>E.measurement),{...f,alignSiblingsToFirstParent:!!e.manifest},!1),m=[],g=!1;if(a){let E=new Map;for(let{node:L,occurrence:_,center:q}of v){if(!h&&q)continue;let W=E.get(L.id)??[];W.push({...d.positions.get(_.id),node:L.id,occurrence:_}),E.set(L.id,W)}let k=b.edges.flatMap(L=>L.kind==="semantic"?[[L.sourceNode,L.targetNode]]:[]);g=Bv(E,k,function*(L){for(let _ of Qc)yield*r.relations(L.node,_).items},L=>L.node.id,(L,_)=>Vv(h?L.occurrence.ports:s,L.occurrence.peerPort?.side,_),({source:L,target:_,sourcePort:q,targetPort:W},ie)=>{m.push({id:JSON.stringify(["cross",L.occurrence.id,_.occurrence.id]),kind:"semantic",source:L.occurrence.id,target:_.occurrence.id,sourceNode:L.node,targetNode:_.node,sourcePort:q,targetPort:W,relation:ie})})}let x=[...b.edges,...m],M=new Map;if(h){let E=(k,L)=>{let _=M.get(k)??new Map;_.set(L,(_.get(L)??0)+1),M.set(k,_)};for(let k of x)E(k.source,k.sourcePort),E(k.target,k.targetPort)}let T=new Map;if(!h)for(let{id:E,viewport:k}of d.areas)k&&Qv(E)&&T.set(E,k);let w=v.map(({occurrence:E,node:k,center:L,fontSize:_,gateSize:q,style:W})=>{let ie=E.areaId==="right"&&f.lateralArrangement==="left"?"left":E.areaId;return{id:E.id,node:k,center:L,fontSize:_,gateSize:q,style:W,role:E.role??"center",bounds:d.positions.get(E.id),branch:E.branch,strip:Qv(ie)&&T.has(ie)?ie:void 0,gates:h?[...M.get(E.id)??[]].map(([I,ae])=>({side:I,count:ae})):Object.keys(s).map(I=>{let ae=s[I],J=ae==="left"?"previous":ae==="right"?"next":null,C=r.relations(k.id,ae).items,P=J?new Set([...C,...r.relations(k.id,J).items].map(O=>O.node.id)).size:C.length;return{side:I,count:P}})}}),N=new Map(w.map(E=>[E.id,E])),V=x.map((E,k)=>{let L=N.get(E.source),_=N.get(E.target),q=vm(Lc(L.bounds,E.sourcePort,L.gateSize),Lc(_.bounds,E.targetPort,_.gateSize),E.sourcePort,E.targetPort,"bezier"),W=E.kind==="semantic"?E.relation.direction:null,ie=E.kind==="semantic"?e.linkStyle(E.sourceNode,E.targetNode,E.relation.role):void 0,I=E.kind==="semantic"?E.relation.definition??null:null;return{id:E.id,source:E.source,target:E.target,route:q,label:I,labelSize:ie?.labelSize,labelColor:ie?.labelColor,crossLink:k>=b.edges.length,sourcePort:E.sourcePort,targetPort:E.targetPort,stroke:ie?.stroke,strokeWidth:ie?.width,startHead:ie?.startHead??(ie?.arrowStart??(W===2||W===3)?"arrow":void 0),endHead:ie?.endHead??(ie?.arrowEnd??(W===1||W===3)?"arrow":void 0)}});return{cards:w,cardById:N,edges:V,strips:T,wrap:p.wrapNodeLabels,truncated:b.truncated||g,projection:b}}function Vc(e,t,n){if(!t.strip)return t.bounds;let i=e.strips.get(t.strip);return{...t.bounds,y:t.bounds.y+i.y-i.contentTop-(n[t.strip]??i.initialScrollTop)}}function Zv(e,t,n,i){let l=Lc(Vc(e,t,i),n,t.gateSize);if(!t.strip)return l;let{y:a,height:o}=e.strips.get(t.strip);return l.y>=a&&l.y<=a+o?l:null}function Jv(e,t,n){let i=e.cardById.get(t.source),l=e.cardById.get(t.target);if(!i.strip&&!l.strip)return t.route;let a=Zv(e,i,t.sourcePort,n),o=Zv(e,l,t.targetPort,n);return a&&o?vm(a,o,t.sourcePort,t.targetPort,"bezier"):null}function Bc(e,t){if(!/^(?:\d+(?:\.\d*)?|\.\d+)%?$/.test(e))return null;let n=Number(e.replace(/%$/,"")),i=e.endsWith("%")?100:t;return n>=0&&n<=i?n/i*t:null}function Gc(e){if(typeof e!="string"||e.length>180)return null;let t=e.trim();if(t.toLowerCase()==="transparent")return{red:0,green:0,blue:0,alpha:0};if(/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t)){let f=t.slice(1);return f.length<=4&&(f=[...f].map(p=>p+p).join("")),{red:parseInt(f.slice(0,2),16),green:parseInt(f.slice(2,4),16),blue:parseInt(f.slice(4,6),16),alpha:f.length===8?parseInt(f.slice(6),16)/255:1}}let n=/^rgba?\(\s*([^()]*)\s*\)$/i.exec(t);if(!n)return null;let i=n[1].trim(),l=i.includes(","),a=l?i.split(",").map(f=>f.trim()):i.split(/\s*\/\s*|\s+/);if(a.length<3||a.length>4||l&&i.includes("/")||!l&&a.length===4&&!i.includes("/"))return null;let o=Bc(a[0],255),r=Bc(a[1],255),u=Bc(a[2],255),c=a.length===4?Bc(a[3],1):1;return o===null||r===null||u===null||c===null?null:{red:o,green:r,blue:u,alpha:c}}function Tm(e,t){let n=e.alpha+t.alpha*(1-e.alpha);if(n===0)return{red:0,green:0,blue:0,alpha:0};let i=(l,a)=>(l*e.alpha+a*t.alpha*(1-e.alpha))/n;return{red:i(e.red,t.red),green:i(e.green,t.green),blue:i(e.blue,t.blue),alpha:n}}function Em(e){let t=Math.max(0,Math.min(1,e/255));return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Fv(e,t){if(t.alpha<1||![e.red,e.green,e.blue,e.alpha,t.red,t.green,t.blue,t.alpha].every(Number.isFinite))return null;let n=Tm(e,t),i=o=>.2126*Em(o.red)+.7152*Em(o.green)+.0722*Em(o.blue),l=i(n),a=i(t);return(Math.max(l,a)+.05)/(Math.min(l,a)+.05)}var vM=new Map([...["background-primary","background-secondary","background-modifier-border","background-modifier-hover","text-normal","text-muted","text-faint","interactive-accent","interactive-normal","interactive-hover","text-on-accent","kplex-publication-panel","kplex-publication-link","kplex-publication-canvas","link-color","link-color-hover","link-external-color","code-background","code-normal","blockquote-border-color","blockquote-color","table-border-color","table-header-background","text-highlight-bg","color-red","color-green","color-orange","color-blue","color-cyan","color-purple"].map(e=>[e,"color"]),...["font-interface","font-text","font-monospace","inline-title-font"].map(e=>[e,"font"]),...["font-ui-medium","font-text-size","p-spacing","heading-spacing","inline-title-size","input-radius","button-radius","callout-radius"].map(e=>[e,"length"]),["line-height-normal","line-height"],["inline-title-weight","weight"],["inline-title-color","color"],...[1,2,3,4,5,6].flatMap(e=>[["h"+e+"-color","color"],["h"+e+"-size","length"],["h"+e+"-weight","weight"],["h"+e+"-font","font"],["h"+e+"-line-height","line-height"],["h"+e+"-style","font-style"]])]),SM=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),xM=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function wM(e){let t=e.split(",");if(!t.length||t.length>10)return;let n=[];for(let i of t){let l=i.trim(),a=/^(['"])(.*?)\1$/u.exec(l),o=a?.[2]??l;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(o)&&o!=="-apple-system"||xM.has(o.toLowerCase()))return;n.push(!a&&SM.has(o.toLowerCase())?o.toLowerCase():JSON.stringify(o))}return n.join(", ")}function $v(e){if(e==="0")return e;let t=/^(\d{1,3}(?:\.\d{1,4})?|\.\d{1,4})(px|rem|em)$/.exec(e);if(!t)return;let n=Number(t[1]),i=t[2];return n<=(i==="px"?160:8)?String(n)+i:void 0}function Wv(e,t){let n=t.trim();if(!(!n||n.length>320))switch(vM.get(e)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return wM(n);case"length":return $v(n);case"line-height":return/^(?:[1-3](?:\.\d{1,4})?|0\.[5-9]\d{0,3}|4(?:\.0{1,4})?)$/.test(n)?String(Number(n)):$v(n);case"weight":return n==="normal"||n==="bold"||/^(?:[1-9]\d{0,2}|1000)$/.test(n)?n:void 0;case"font-style":return/^(?:normal|italic|oblique)$/.test(n)?n:void 0;default:return}}var Nm=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function e1(e){if(!e.length||e.length>16*1024)throw new Error("Unsupported publication theme");let t={},n=new Set,i=0;for(;i<e.length;){Nm.lastIndex=i;let l=Nm.exec(e);if(!l)throw new Error("Unsupported publication theme");i=Nm.lastIndex;let a=(l[1]??l[3]).split(";").map(u=>u.trim()).filter(Boolean),o=a.filter(u=>u.startsWith("color-scheme"));if(o.length){let u=/^color-scheme\s*:\s*(light|dark)$/.exec(o[0])?.[1];if(!u||o.length!==1||l[2]||n.has("author"))throw new Error("Unsupported publication mode");t.colorScheme=u}let r=o.length?"author":l[2]??"light";if(n.has(r))throw new Error("Duplicate publication theme mode");n.add(r);for(let u of a){if(u===o[0])continue;let c=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(u),f=c&&Wv(c[1],c[2]);if(!c||f===void 0||f===null)throw new Error("Unsupported publication theme token");t["--kplex-published-"+r+"-"+c[1]]=f}}return t}function t1(e,t){let n=`--kplex-published-${t}-`,i=`--kplex-published-${t==="dark"?"light":"dark"}-`,l=e??{},a=Gc(l[n+"text-normal"]),o=Gc(l[n+"background-secondary"]??l[n+"background-primary"]),r={colorScheme:t};for(let[u,c]of Object.entries(l)){if(!u.startsWith(n)||typeof c!="string")continue;let f=u.slice(n.length);if(a&&(f==="interactive-normal"||f==="interactive-hover")&&c===l[i+f]){let p=Gc(c),s=p&&Fv(a,o?Tm(p,o):p);if(s!==null&&s<3)continue}r["--kplex-published-author-"+f]=c}return r}var G=X(me(),1),n1={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},Rm={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"},MM={left:z.friends,right:z.challengers,sibling:z.siblings},Cm=[["light",Ti.light,"sun"],["dark",Ti.dark,"moon"],["system",Ti.auto,"sun-moon"]],EM=[["right",z.sidecarRight],["left",z.sidecarLeft],["bottom",z.sidecarBottom]],TM={right:"panel-right",left:"panel-left",bottom:"panel-bottom"},i1=600,l1={};function Am(e,t){let n=t.ownerDocument.defaultView?.Element;return!!(n&&e.target instanceof n&&e.target.closest(kl))}function a1(e,t){return t?{x:(e.x+t.x)/2,y:(e.y+t.y)/2,distance:Math.max(1,Math.hypot(e.x-t.x,e.y-t.y))}:{...e,distance:1}}function o1({publication:e,markerPrefix:t,resources:n,browser:i}){let l=(0,F.useRef)(null),a=(0,F.useRef)(null),o=(0,F.useRef)(null),r=K0(a,o),u=L0(e,i,r.capture),c=u.attention.id,f={...jc,crosslinks:e.manifest?.appearance?.showCrossLinks??jc.crosslinks,...e.manifest?.canvasDefaults,...u.attention.canvas},{view:p,siblings:s,crosslinks:h,ontology:S,sidecar:b}=f,[v,d]=(0,F.useState)(),[m,g]=(0,F.useState)(null),x=(0,F.useRef)(null),[M,T]=(0,F.useState)(),[w,N]=(0,F.useState)(!0),V=w?f.dock:"bottom",E=(0,F.useMemo)(()=>Iv(e,c,s,p,v,h,M),[e,c,s,p,v,h,M]),k=p==="mindmap"?z.mindMap:z.view,L=E.cards.find(y=>y.center),[_,q]=(0,F.useState)(),W=_?.attention===c?_.offsets:l1,ie=(0,F.useRef)(null),I=(0,F.useRef)(null),ae=(0,F.useRef)({x:0,y:0,scale:1}),J=(0,F.useRef)(!1),C=(0,F.useRef)({points:new Map,origin:null,moved:!1}),P=(0,F.useRef)(!1),O=(0,F.useId)(),Y=(0,F.useRef)(null),[ee,te]=(0,F.useState)(0),[H,Z]=(0,F.useState)(null),[ue,fe]=(0,F.useState)(null),[wt,we]=(0,F.useState)(null),[Mt,je]=(0,F.useState)(!1),Rn=(0,F.useRef)(()=>{}),et=(0,F.useRef)(null),[Et,pn]=(0,F.useState)(),[Dt,wi]=(0,F.useState)(!1),[Fn,rl]=(0,F.useState)("light"),he=e.manifest?.colorMode,tt=e.manifest?.pins,Lt=Et?.colorScheme==="dark"?"dark":Et?.colorScheme==="light"?"light":void 0,Te=he==="both"?f.theme:he??Lt??"system",Cn=Te==="system"?Fn:Te,[,An,$n]=Cm.find(([y])=>y===Te),Yt=()=>u.changeCanvas({sidecar:!b}),ul=(0,F.useMemo)(()=>E.edges.flatMap(y=>{let A=Jv(E,y,W);return A?[{edge:y,route:A}]:[]}),[E,W]),Wn=new Set,zn=new Set;if(m)for(let{edge:y}of ul)(y.source===m.occurrence&&(!m.port||y.sourcePort===m.port)||y.target===m.occurrence&&(!m.port||y.targetPort===m.port))&&(Wn.add(y.id),zn.add(y.source),zn.add(y.target));let Pe=y=>y?" is-highlighted":Wn.size?" is-dimmed":"";(0,F.useLayoutEffect)(()=>{let y=l.current,A=a.current,B=y?.ownerDocument.defaultView;if(!y||!A||!B)return;let K=()=>{let j=A.clientWidth;N(y.clientWidth>=Tv),T(j<360?1:j<i1?2:j<880?3:void 0)},re=new B.ResizeObserver(K);return re.observe(y),re.observe(A),K(),()=>re.disconnect()},[]),(0,F.useLayoutEffect)(()=>{let y=a.current,A=y?.ownerDocument.defaultView;if(!y||!A)return;let B=new wc(A,!0,g);x.current=B;let K=s0(y,B);return()=>{x.current=null,K()}},[]),(0,F.useLayoutEffect)(()=>{x.current?.clear()},[E]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView;if(!Mt||!y)return;let A=y.setTimeout(()=>je(!1),3500);return()=>y.clearTimeout(A)},[Mt]),Rn.current=y=>{if(y.defaultPrevented||y.isComposing||y.ctrlKey||y.metaKey)return;if(n&&y.key===ir.key&&!y.altKey&&!y.shiftKey){y.preventDefault(),y.repeat||te(B=>B+1);return}let A=y.target;!y.altKey||A?.isContentEditable||A?.closest?.("input,textarea,select")||(n&&y.shiftKey&&(y.code==="KeyS"||y.key.toLowerCase()==="s")?(y.preventDefault(),y.repeat||Yt()):!y.shiftKey&&(y.key==="ArrowLeft"||y.key==="ArrowRight")&&(y.preventDefault(),y.repeat||u.move(y.key==="ArrowLeft"?-1:1)))},(0,F.useEffect)(()=>{if(!i)return;let y=A=>Rn.current(A);return i.addEventListener("keydown",y),()=>i.removeEventListener("keydown",y)},[i]),(0,F.useLayoutEffect)(()=>{let y=et.current;y&&(y.scrollLeft=y.scrollWidth)},[u.visits]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!y)return;let A=()=>rl(y.matches?"dark":"light");return A(),y.addEventListener("change",A),()=>y.removeEventListener("change",A)},[]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView;if(!y||!n?.has(Cr))return;let A=new y.AbortController,B=A.signal;return n.text(Cr,B).then(K=>{B.aborted||pn(e1(K))}).catch(()=>{B.aborted||wi(!0)}),()=>A.abort()},[n]);function ei(y){ae.current=y,ie.current&&(ie.current.style.transform=`translate(${y.x}px, ${y.y}px) scale(${y.scale})`)}function Mi(){let y=a.current;if(!y)return;let A=1/0,B=-1/0,K=1/0,re=-1/0,j=(Le,jt,Xt,ii)=>{A=Math.min(A,Le),B=Math.max(B,Le+Xt),K=Math.min(K,jt),re=Math.max(re,jt+ii)};for(let{bounds:Le,strip:jt}of E.cards)jt||j(Le.x-Le.width/2,Le.y-Le.height/2,Le.width,Le.height);for(let{x:Le,y:jt,width:Xt,height:ii}of E.strips.values())j(Le,jt,Xt,ii);if(J.current=!1,y.clientWidth<i1){let Le=I.current?I.current.offsetHeight+10:0,jt=y.clientWidth-32,Xt=y.clientHeight-32-Le,ii=B-A,Wa=re-K,Ei=Math.max(.25,Math.min(1,jt/ii,Xt/Wa)),wr=ii*Ei<=jt?(A+B)/2:L.bounds.x,f1=Wa*Ei<=Xt?(K+re)/2:L.bounds.y;ei({x:-wr*Ei,y:-f1*Ei-Le/2,scale:Ei});return}let _e=Math.max(L.bounds.x-A,B-L.bounds.x),pt=Math.max(L.bounds.y-K,re-L.bounds.y),Xe=Math.max(.25,Math.min(1,(y.clientWidth/2-22)/_e,(y.clientHeight/2-22)/pt));ei({x:-L.bounds.x*Xe,y:-L.bounds.y*Xe,scale:Xe})}function Ka(y,A,B){r.cancel(),x.current?.clear();let{x:K,y:re,scale:j}=ae.current,_e=Math.max(.25,Math.min(3,j*B));J.current=!0,ei({x:A.x-(y.x-K)*_e/j,y:A.y-(y.y-re)*_e/j,scale:_e})}function U(y){Ka({x:0,y:0},{x:0,y:0},y)}function le(y,A,B){let K=y.getBoundingClientRect();return{x:A-K.left-K.width/2,y:B-K.top-K.height/2}}(0,F.useLayoutEffect)(()=>{let y=a.current;if(!y)return;Mi(),r.play(c,ae.current.scale),P.current&&(y.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),P.current=!1);let A=re=>{if(Am(re,y))return;re.preventDefault();let j=le(y,re.clientX,re.clientY),_e=re.deltaY*(re.deltaMode===1?16:re.deltaMode===2?y.clientHeight:1);Ka(j,j,Math.exp(-Math.max(-200,Math.min(200,_e))/350))},B=y.ownerDocument.defaultView,K=B?new B.ResizeObserver(()=>{J.current||Mi()}):null;return K?.observe(y),y.addEventListener("wheel",A,{passive:!1}),()=>{K?.disconnect(),y.removeEventListener("wheel",A)}},[e,c,p,s,v,M]);function Ge(y,A){let B=e.published.get(y)?.url?{sidecar:!0}:void 0;u.activate({id:y,canvas:B})&&y!==c&&(P.current=A)}function gn(){u.changeCanvas({sidecar:!1}),Y.current?.focus()}function Tt(y){u.activate(y)}function ti(){let y=i?.location.href??(n&&new URL("index.html",n.siteURL).href);if(!y)throw new Error("Publication address unavailable");let A=new URL(y);return A.search="",A.hash="",A}function Qa(y,A){fe(null),we(null),je(!1),Z({id:y,anchor:A})}function cl(y,A){Z(null),we(null),x.current?.clear(),fe({anchor:y,point:A})}function ni(y,A,B=!1){return(0,G.jsxs)("nav",{className:`kplex-publication-trail ${B?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":A,children:[(0,G.jsx)("span",{children:A}),(0,G.jsx)("ol",{ref:B?et:void 0,children:y.map(K=>{let re=e.published.get(K.id),j=re?.style,_e=j?.icon??re?.trailIcon,pt=_e===void 0?void 0:e.manifest?.icons?.[_e];return(0,G.jsx)("li",{children:(0,G.jsxs)("a",{href:Ga(ti(),{...K,canvas:{...u.attention.canvas,...K.canvas}}).href,"aria-current":K.id===c?"location":void 0,style:{backgroundColor:j?.fill,color:j?.color,"--kplex-publication-trail-border":j?.stroke},onClick:Xe=>{Xe.altKey||Xe.ctrlKey||Xe.metaKey||Xe.shiftKey||(Xe.preventDefault(),Tt(K))},children:[pt&&(0,G.jsx)(pm,{icon:pt,size:12}),(0,G.jsx)("span",{children:e.nodes.get(K.id)?.name})]})},K.id)})})]})}function qt(y){if(!y.altKey){if(y.target===y.currentTarget&&(y.key==="ContextMenu"||y.shiftKey&&y.key==="F10")){y.preventDefault();let{left:A,top:B}=y.currentTarget.getBoundingClientRect();cl(y.currentTarget,{x:A+12,y:B+12});return}if(!(y.target.matches?.(kl)&&["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(y.key))){if(y.key==="Home"||y.key==="0")r.cancel(),Mi();else if(y.key==="+"||y.key==="=")U(1.25);else if(y.key==="-")U(.8);else if(Object.prototype.hasOwnProperty.call(n1,y.key)){let[A,B]=n1[y.key],K=Array.from(y.currentTarget.querySelectorAll("[data-publication-node]")),re=K.find(Le=>Le===y.target)?.dataset.publicationOccurrence,j=Vc(E,re?E.cardById.get(re)??L:L,W),_e=-1,pt=1/0;for(let[Le,jt]of K.entries()){let Xt=Vc(E,E.cardById.get(jt.dataset.publicationOccurrence),W),ii=Xt.x-j.x,Wa=Xt.y-j.y,Ei=ii*A+Wa*B,wr=Ei+2*Math.abs(ii*B-Wa*A);Ei>0&&wr<pt&&(_e=Le,pt=wr)}let Xe=K[_e];Xe?.focus({preventScroll:!Xe.closest(kl)})}else return;y.preventDefault()}}}function Za(y){let A=y.currentTarget.ownerDocument.defaultView?.Element;if(!A||!(y.target instanceof A)||C.current.points.size)return;let B=y.target.closest("[data-publication-occurrence]")?.getAttribute("data-publication-occurrence"),K=y.target.closest("[data-kplex-gate]")?.getAttribute("data-kplex-gate")??void 0;B?x.current?.enter({occurrence:B,port:K},y):x.current?.clear()}function pr(y){if(y.button!==0||(ue&&fe(null),H&&Z(null),Am(y,y.currentTarget)))return;let A=C.current;if(A.points.size>=2)return;let B={...le(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};A.points.size===0&&(A.origin=B,A.moved=!1),A.points.set(y.pointerId,B)}function gr(y){let A=C.current;if(!A.points.has(y.pointerId))return;let[B,K]=A.points.values(),re=a1(B,K),j={...le(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};A.points.set(y.pointerId,j);let[_e,pt]=A.points.values(),Xe=a1(_e,pt);if(!(!A.moved&&!pt&&A.origin&&Math.hypot(j.x-A.origin.x,j.y-A.origin.y)<5)){if(A.moved)y.currentTarget.hasPointerCapture(y.pointerId)||y.currentTarget.setPointerCapture(y.pointerId);else{A.moved=!0;for(let Le of A.points.keys())y.currentTarget.setPointerCapture(Le)}Ka(re,Xe,Xe.distance/re.distance)}}function On(y){C.current.points.delete(y.pointerId)}let yr=e.body(c),Ia=()=>u.changeCanvas({siblings:!s}),br=(0,G.jsx)(vt,{icon:"network",label:z.showSiblings,"data-publication-siblings-toggle":!0,title:s?z.hideSiblings:z.showSiblings,"aria-pressed":s,onClick:Ia}),Ja=(0,G.jsxs)(G.Fragment,{children:[p==="compass"&&br,(0,G.jsx)(vt,{icon:"minus",label:z.zoomOut,onClick:()=>U(.8)}),(0,G.jsx)(vt,{icon:"plus",label:z.zoomIn,onClick:()=>U(1.25)}),(0,G.jsx)(vt,{icon:"maximize",label:z.fit,onClick:()=>{r.cancel(),Mi()}}),(0,G.jsx)(vt,{icon:"ellipsis",label:z.graphOptions,"aria-haspopup":"menu","aria-expanded":!!ue,onClick:y=>cl(y.currentTarget)})]});function vr(y,A){let B=A?{...y.bounds,x:y.bounds.x-A.x,y:y.bounds.y-A.contentTop}:y.bounds,K=e.manifest?.icons,re=y.style?.icon!=null?K?.[y.style.icon]:void 0;return(0,G.jsxs)(F.Fragment,{children:[(0,G.jsxs)(v0,{bounds:B,semanticRole:y.role,className:Pe(zn.has(y.id)).trim(),"data-publication-node":y.node.id,"data-publication-occurrence":y.id,"data-publication-center":y.center||void 0,role:"button",tabIndex:0,"aria-label":y.node.name,"aria-current":y.center||void 0,style:{fontSize:y.fontSize,backgroundColor:y.style?.fill,borderColor:y.style?.stroke,color:y.style?.color,"--kplex-gate-size":`${y.gateSize}px`,"--kplex-gate-fill":y.style?.gate},onClick:j=>Ge(y.node.id,j.detail===0),onContextMenu:j=>{n&&(j.preventDefault(),Qa(y.node.id,j.currentTarget))},onKeyDown:j=>{n&&(j.key==="ContextMenu"||j.shiftKey&&j.key==="F10")?(j.preventDefault(),Qa(y.node.id,j.currentTarget)):(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),Ge(y.node.id,!0))},children:[(0,G.jsxs)(x0,{wrap:E.wrap,children:[re&&(0,G.jsx)(pm,{icon:re,size:y.center?18:y.role==="sibling"?9:13,className:"kplex-publication-node-icon"}),(0,G.jsx)(S0,{label:y.node.name,maximum:y.node.maxLabelLength,center:y.center})]}),y.gates.map(({side:j,count:_e})=>(0,G.jsx)(w0,{side:j,connected:_e>0,count:_e?String(_e):null,highlighted:Wn.size>0&&m?.occurrence===y.id&&m.port===j,"aria-hidden":"true"},j))]}),y.branch?.canExpand&&(0,G.jsx)("button",{type:"button",className:"kplex-publication-branch","aria-expanded":y.branch.expanded,"aria-label":`${y.branch.expanded?z.collapseBranch:z.expandBranch} · ${y.node.name}`,style:{left:B.x+16,top:B.y+B.height/2+3},onClick:()=>d(j=>xc(j,E.projection,{kind:"toggle",occurrenceId:y.id})??j),children:y.branch.expanded?"−":"+"})]},`${y.id}:${y.node.id}`)}let Sr=(0,G.jsxs)("div",{ref:a,className:"kplex-publication-viewport",role:"group","aria-label":k,tabIndex:0,onKeyDown:qt,onPointerOver:Za,onPointerDown:pr,onPointerMove:gr,onPointerUp:On,onPointerCancel:On,onLostPointerCapture:On,onContextMenu:y=>{y.defaultPrevented||(y.preventDefault(),cl(y.currentTarget,{x:y.clientX,y:y.clientY}))},onPointerLeave:y=>{x.current?.clear(),y.currentTarget.hasPointerCapture(y.pointerId)||On(y)},onClickCapture:y=>{y.detail&&C.current.moved&&!Am(y,y.currentTarget)&&(y.stopPropagation(),C.current.moved=!1)},children:[(0,G.jsxs)("div",{className:"kplex-camera",ref:ie,children:[(0,G.jsxs)("svg",{className:"kplex-links",width:"3200",height:"2400",viewBox:"-1600 -1200 3200 2400","aria-hidden":"true",children:[(0,G.jsx)(T0,{prefix:t}),ul.map(({edge:y,route:A})=>{let{id:B,source:K,target:re,label:j,stroke:_e,strokeWidth:pt,startHead:Xe,endHead:Le}=y;return(0,G.jsxs)("g",{className:`kplex-edge${Pe(Wn.has(B))}`,"data-publication-source":K,"data-publication-target":re,"data-publication-crosslink":y.crossLink||void 0,children:[(0,G.jsx)(M0,{d:A.d,stroke:_e??"var(--kplex-publication-link)",strokeWidth:pt??1.2,markerStart:lm(Xe,t),markerEnd:lm(Le,t)}),S&&(0,G.jsx)(E0,{label:j,midpoint:A.midpoint,fontSize:y.labelSize,color:y.labelColor??"var(--text-muted)",background:"var(--background-primary)"})]},B)})]}),(0,G.jsx)("div",{className:"kplex-nodes",children:E.cards.map(y=>y.strip?null:vr(y))}),[...E.strips].map(([y,A])=>(0,G.jsx)(j0,{id:y,panel:A,start:W[y]??A.initialScrollTop,label:y==="left"&&e.manifest?.appearance?.geometry?.lateralArrangement==="left"?z.lateral:MM[y],onScroll:B=>q(K=>{let re=K?.attention===c?K.offsets:l1;return re[y]===B?K:{attention:c,offsets:{...re,[y]:B}}}),children:E.cards.map(B=>B.strip===y?vr(B,A):null)},JSON.stringify([c,y])))]}),(0,G.jsx)("div",{className:"kplex-publication-exits",ref:o,"aria-hidden":"true"})]}),Fa=H?R0(e,H.id):void 0,$a=H&&{id:H.id,canvas:{...f,theme:Te}},xr=he==="both"?t1(Et,Cn):he?{...Et,colorScheme:Cn}:Et;return(0,G.jsxs)("main",{ref:l,className:`kplex-publication${n?" kplex-publication-production":""}`,style:xr,onKeyDown:i?void 0:y=>Rn.current(y.nativeEvent),children:[(0,G.jsxs)("header",{className:"kplex-publication-header",children:[(0,G.jsxs)("div",{className:"kplex-publication-heading",children:[(0,G.jsx)(V0,{}),(0,G.jsx)("h1",{children:e.title})]}),(0,G.jsxs)("div",{className:"kplex-publication-controls",children:[(0,G.jsx)(vt,{icon:"arrow-left",label:z.back,onClick:()=>u.move(-1),disabled:!u.canGoBack,"aria-keyshortcuts":Rm.back,title:z.backTooltip}),(0,G.jsx)(vt,{icon:"arrow-right",label:z.forward,onClick:()=>u.move(1),disabled:!u.canGoForward,"aria-keyshortcuts":Rm.forward,title:z.forwardTooltip}),n?(0,G.jsx)(vt,{ref:Y,icon:TM[V],label:b?z.hideSidecar:z.showSidecar,"aria-expanded":b,"aria-controls":`sidecar-${O}`,"aria-keyshortcuts":Rm.sidecar,title:b?z.hideSidecarTooltip:z.showSidecarTooltip,onClick:Yt}):Ja,he==="both"&&(0,G.jsx)(vt,{icon:$n,label:Ti.trigger(An),"aria-haspopup":"menu","aria-expanded":!!wt,onClick:y=>{fe(null),Z(null),we(wt?null:y.currentTarget)}})]}),n&&(0,G.jsx)(lv,{publication:e,resources:n,page:ti,searchFocus:ee,onChoose:Tt}),n&&tt?.length?ni(tt.map(y=>({id:En(y)})),z.pins):null]}),n?(0,G.jsx)(Nv,{sidecarId:`sidecar-${O}`,sidecarOpen:b,dock:V,canDockLaterally:w,onDock:y=>u.changeCanvas({dock:y}),canvas:(0,G.jsxs)("div",{className:"kplex-publication-canvas",children:[Sr,(0,G.jsx)("div",{ref:I,className:"kplex-publication-controls kplex-publication-camera-actions",children:Ja}),(0,G.jsxs)("div",{className:"kplex-publication-status","aria-live":"polite",children:[u.addressProblem&&(0,G.jsx)("p",{children:u.addressProblem==="ambiguous"?z.ambiguousAddress:z.nodeUnavailable}),E.truncated&&(0,G.jsx)("p",{children:z.sceneLimited}),Dt&&(0,G.jsx)("p",{children:z.themeUnavailable}),Mt&&(0,G.jsx)("p",{children:z.addressCopied})]})]}),renderSidecar:(y,A)=>(0,G.jsx)(Mv,{publication:e,resources:n,id:`sidecar-${O}`,contentScope:`${t}-document`,location:u.attention,colorMode:Cn,onClose:gn,onNavigate:Tt,dock:y,onSwitchDock:A})}):(0,G.jsxs)(G.Fragment,{children:[Sr,(0,G.jsxs)("section",{className:"kplex-publication-note","aria-labelledby":O,"aria-live":"polite",children:[(0,G.jsx)("h2",{id:O,children:L.node.name}),yr&&(0,G.jsx)("p",{children:yr})]})]}),n&&u.visits.length>1&&ni(u.visits,z.history,!0),wt&&(0,G.jsx)(cr,{anchor:wt,variant:"theme",onDismiss:()=>we(null),choices:Cm.map(([y,A,B])=>({label:A,icon:B,kind:"menuitemradio",checked:Te===y,select:()=>u.changeCanvas({theme:y})}))}),ue&&(0,G.jsx)(cr,{anchor:ue.anchor,point:ue.point,onDismiss:()=>fe(null),choices:[{label:z.view,kind:"menuitemradio",checked:p==="compass",select:()=>u.changeCanvas({view:"compass"})},{label:z.mindMap,kind:"menuitemradio",checked:p==="mindmap",select:()=>u.changeCanvas({view:"mindmap"})},{label:z.crossLinks,kind:"menuitemcheckbox",checked:h,select:()=>u.changeCanvas({crosslinks:!h})},...p==="compass"?[{label:z.showSiblings,kind:"menuitemcheckbox",checked:s,select:Ia}]:[],{label:z.linkOntology,kind:"menuitemcheckbox",checked:S,select:()=>u.changeCanvas({ontology:!S})},...n?[{label:z.sidecar,choices:[{label:z.sidecarHide,kind:"menuitemradio",checked:!b,select:()=>u.changeCanvas({sidecar:!1})},...EM.filter(([y])=>w||y==="bottom").map(([y,A])=>({label:A,kind:"menuitemradio",checked:b&&V===y,select:()=>u.changeCanvas(w?{dock:y,sidecar:!0}:{sidecar:!0})}))]}]:[],...he==="both"?[{label:z.theme,choices:Cm.map(([y,A,B])=>({label:y==="system"?Ti.system:A,icon:B,kind:"menuitemradio",checked:Te===y,select:()=>u.changeCanvas({theme:y})}))}]:[],{label:z.about,choices:hm}]}),n&&H&&$a&&(0,G.jsx)(P0,{anchor:H.anchor,address:Ga(ti(),$a).href,shortAddress:Fa&&Ga(ti(),$a,Fa).href,onDismiss:y=>{Z(null),y&&H.anchor.isConnected&&H.anchor.focus({preventScroll:!0})},onCopied:()=>je(!0)},H.id)]})}var c1=X(me(),1),zm=new WeakSet,NM=0;function u1(e,t,n){return RM(e,t,void 0,!0,n)}function RM(e,t,n,i=!1,l){let a=e.ownerDocument.defaultView,o=new URL(n??"./publication.json",e.ownerDocument.baseURI),r=S=>{let b=C0(S);if(b.manifest&&(!a?.crypto.subtle||!l&&o.origin!==a.location.origin))throw new Error("Secure publication context unavailable");let v=b.manifest&&a?l?.(b.manifest)??Dc(a,o,b.manifest):void 0;return{publication:b,resources:v}},u=r(t);if(zm.has(e))throw new Error("A publication is already mounted in this element");let c=`kplex-publication-${++NM}`,f=(0,r1.createRoot)(e,{identifierPrefix:c});zm.add(e);let p=0,s=!1,h=({publication:S,resources:b})=>{i&&(e.ownerDocument.title=S.title),f.render((0,c1.jsx)(o1,{publication:S,markerPrefix:c,resources:b,browser:i&&b&&a?a:void 0},p++))};return h(u),{update(S){if(s)throw new Error("Publication mount has been disposed");h(r(S))},dispose(){if(!s){s=!0;try{f.unmount()}finally{zm.delete(e)}}}}}var s1=document.querySelector("[data-kplex-demo]");s1&&CM(s1);function CM(e){let t=e.ownerDocument,n=t.defaultView;if(n)try{let i=e.hasAttribute("data-kplex-local-folder"),l=new Map;for(let u of Array.from(t.querySelectorAll('script[type="application/octet-stream"][data-kplex-resource]'))){let c=u.dataset.kplexResource;if(!Bl(c)&&c!=="publication.json"||l.has(c)||l.size>=4e4)throw new Error("Invalid offline publication resource");l.set(c,u)}let a=(u,c)=>{let f=l.get(u)?.textContent;if(f==null||f.length>Math.ceil(c/3)*4)throw new Error("Offline resource unavailable");let p=n.atob(f);if(p.length>c)throw new Error("Offline resource exceeds its declared size");let s=new Uint8Array(p.length);for(let h=0;h<p.length;h++)s[h]=p.charCodeAt(h);return s},o=JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(a("publication.json",Kc))),r=u1(e,o,u=>Dc(n,new URL(n.location.href),u,async(c,f,p)=>(p.throwIfAborted(),i?AM(t,c,f,p):a(c,f)),n.location.protocol==="file:"?fm:void 0));n.addEventListener("pagehide",function u(c){c.persisted||(n.removeEventListener("pagehide",u),r.dispose())})}catch{let i=t.createElement("p");i.className="kplex-publication-opening",i.setAttribute("role","alert"),i.textContent=z.loadFailed,e.replaceChildren(i)}}async function AM(e,t,n,i){let l=e.defaultView;if(!l)throw new Error("Offline publication window is unavailable");i.throwIfAborted();let a=e.createElement("div"),o=e.createElement("div"),r=e.createElement("span");a.hidden=!0;let u=o.attachShadow({mode:"closed"}),c=e.createElement("link");r.setAttribute("data-kplex-local-bytes",t),c.rel="stylesheet",c.href=new URL(Vm(t),l.location.href).href,u.append(r,c),a.append(o);let f=()=>new Promise((p,s)=>{let h=v=>{l.clearTimeout(b),i.removeEventListener("abort",S),c.onload=c.onerror=null,v?s(v):p()},S=()=>h(new Error("Offline resource load cancelled")),b=l.setTimeout(()=>h(new Error("Offline resource did not load")),3e4);i.addEventListener("abort",S,{once:!0}),c.onload=()=>h(),c.onerror=()=>h(new Error("Offline resource unavailable")),e.body.append(a)});try{await f(),i.throwIfAborted();let p=l.getComputedStyle(r),s=new Uint8Array(n);for(let h=0;h<n;h+=Ar){let S=Math.min(Ar,n-h),b=p.getPropertyValue(`--kplex-file-${h/Ar}`).trim();if(!b.startsWith('"')||!b.endsWith('"')||b.length!==Math.ceil(S/3)*4+2)throw new Error("Invalid offline resource data block");let v=l.atob(b.slice(1,-1));if(v.length!==S)throw new Error("Offline resource data block size mismatch");for(let d=0;d<S;d++)s[h+d]=v.charCodeAt(d)}return s}finally{a.remove()}}})();
|