miolo 0.3.2 → 0.3.5
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/dist/cli/miolo.cli.iife.bundle.js +1 -1
- package/dist/cli/miolo.cli.iife.bundle.min.js +1 -1
- package/dist/cli/miolo.cli.iife.js +1 -1
- package/dist/cli/miolo.cli.iife.min.js +1 -1
- package/dist/cli/miolo.cli.min.mjs +1 -1
- package/dist/cli/miolo.cli.mjs +1 -1
- package/dist/cli/miolo.cli.umd.bundle.js +1 -1
- package/dist/cli/miolo.cli.umd.bundle.min.js +1 -1
- package/dist/cli/miolo.cli.umd.js +1 -1
- package/dist/cli/miolo.cli.umd.min.js +1 -1
- package/dist/cli-react/miolo.cli-react.iife.bundle.js +1670 -1677
- package/dist/cli-react/miolo.cli-react.iife.bundle.js.map +1 -1
- package/dist/cli-react/miolo.cli-react.iife.bundle.min.js +42 -49
- package/dist/cli-react/miolo.cli-react.iife.js +22 -11
- package/dist/cli-react/miolo.cli-react.iife.js.map +1 -1
- package/dist/cli-react/miolo.cli-react.iife.min.js +2 -2
- package/dist/cli-react/miolo.cli-react.min.mjs +2 -2
- package/dist/cli-react/miolo.cli-react.mjs +23 -9
- package/dist/cli-react/miolo.cli-react.mjs.map +1 -1
- package/dist/cli-react/miolo.cli-react.umd.bundle.js +1669 -1676
- package/dist/cli-react/miolo.cli-react.umd.bundle.js.map +1 -1
- package/dist/cli-react/miolo.cli-react.umd.bundle.min.js +42 -49
- package/dist/cli-react/miolo.cli-react.umd.js +24 -13
- package/dist/cli-react/miolo.cli-react.umd.js.map +1 -1
- package/dist/cli-react/miolo.cli-react.umd.min.js +2 -2
- package/dist/server/miolo.server.cjs +216 -265
- package/dist/server/miolo.server.min.mjs +2 -2
- package/dist/server/miolo.server.mjs +169 -227
- package/dist/server/miolo.server.mjs.map +1 -1
- package/dist/server/miolo.server.node.mjs +217 -265
- package/package.json +8 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* miolo v0.3.
|
|
2
|
+
* miolo v0.3.5
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Donato Lorenzo <donato@afialapis.com>
|
|
5
5
|
*
|
|
@@ -9,1682 +9,1675 @@
|
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
11
|
var miolo = (function (exports) {
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
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
|
-
|
|
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
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
exports.Context = Context;
|
|
1682
|
-
exports.useFetcher = useFetcher;
|
|
1683
|
-
exports.useSsrData = useSsrData;
|
|
1684
|
-
exports.useSsrDataOrReload = useSsrDataOrReload;
|
|
1685
|
-
exports.withContext = withContext;
|
|
1686
|
-
|
|
1687
|
-
return exports;
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
function _mergeNamespaces(n, m) {
|
|
15
|
+
m.forEach(function (e) {
|
|
16
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
17
|
+
if (k !== 'default' && !(k in n)) {
|
|
18
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return e[k]; }
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function _regeneratorRuntime() {
|
|
30
|
+
_regeneratorRuntime = function () {
|
|
31
|
+
return exports;
|
|
32
|
+
};
|
|
33
|
+
var exports = {},
|
|
34
|
+
Op = Object.prototype,
|
|
35
|
+
hasOwn = Op.hasOwnProperty,
|
|
36
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
37
|
+
obj[key] = desc.value;
|
|
38
|
+
},
|
|
39
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
40
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
41
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
42
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
43
|
+
function define(obj, key, value) {
|
|
44
|
+
return Object.defineProperty(obj, key, {
|
|
45
|
+
value: value,
|
|
46
|
+
enumerable: !0,
|
|
47
|
+
configurable: !0,
|
|
48
|
+
writable: !0
|
|
49
|
+
}), obj[key];
|
|
50
|
+
}
|
|
51
|
+
try {
|
|
52
|
+
define({}, "");
|
|
53
|
+
} catch (err) {
|
|
54
|
+
define = function (obj, key, value) {
|
|
55
|
+
return obj[key] = value;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
59
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
60
|
+
generator = Object.create(protoGenerator.prototype),
|
|
61
|
+
context = new Context(tryLocsList || []);
|
|
62
|
+
return defineProperty(generator, "_invoke", {
|
|
63
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
64
|
+
}), generator;
|
|
65
|
+
}
|
|
66
|
+
function tryCatch(fn, obj, arg) {
|
|
67
|
+
try {
|
|
68
|
+
return {
|
|
69
|
+
type: "normal",
|
|
70
|
+
arg: fn.call(obj, arg)
|
|
71
|
+
};
|
|
72
|
+
} catch (err) {
|
|
73
|
+
return {
|
|
74
|
+
type: "throw",
|
|
75
|
+
arg: err
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.wrap = wrap;
|
|
80
|
+
var ContinueSentinel = {};
|
|
81
|
+
function Generator() {}
|
|
82
|
+
function GeneratorFunction() {}
|
|
83
|
+
function GeneratorFunctionPrototype() {}
|
|
84
|
+
var IteratorPrototype = {};
|
|
85
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
86
|
+
return this;
|
|
87
|
+
});
|
|
88
|
+
var getProto = Object.getPrototypeOf,
|
|
89
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
90
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
91
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
92
|
+
function defineIteratorMethods(prototype) {
|
|
93
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
94
|
+
define(prototype, method, function (arg) {
|
|
95
|
+
return this._invoke(method, arg);
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
100
|
+
function invoke(method, arg, resolve, reject) {
|
|
101
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
102
|
+
if ("throw" !== record.type) {
|
|
103
|
+
var result = record.arg,
|
|
104
|
+
value = result.value;
|
|
105
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
106
|
+
invoke("next", value, resolve, reject);
|
|
107
|
+
}, function (err) {
|
|
108
|
+
invoke("throw", err, resolve, reject);
|
|
109
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
110
|
+
result.value = unwrapped, resolve(result);
|
|
111
|
+
}, function (error) {
|
|
112
|
+
return invoke("throw", error, resolve, reject);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
reject(record.arg);
|
|
116
|
+
}
|
|
117
|
+
var previousPromise;
|
|
118
|
+
defineProperty(this, "_invoke", {
|
|
119
|
+
value: function (method, arg) {
|
|
120
|
+
function callInvokeWithMethodAndArg() {
|
|
121
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
122
|
+
invoke(method, arg, resolve, reject);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
130
|
+
var state = "suspendedStart";
|
|
131
|
+
return function (method, arg) {
|
|
132
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
133
|
+
if ("completed" === state) {
|
|
134
|
+
if ("throw" === method) throw arg;
|
|
135
|
+
return doneResult();
|
|
136
|
+
}
|
|
137
|
+
for (context.method = method, context.arg = arg;;) {
|
|
138
|
+
var delegate = context.delegate;
|
|
139
|
+
if (delegate) {
|
|
140
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
141
|
+
if (delegateResult) {
|
|
142
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
143
|
+
return delegateResult;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
147
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
148
|
+
context.dispatchException(context.arg);
|
|
149
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
150
|
+
state = "executing";
|
|
151
|
+
var record = tryCatch(innerFn, self, context);
|
|
152
|
+
if ("normal" === record.type) {
|
|
153
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
154
|
+
return {
|
|
155
|
+
value: record.arg,
|
|
156
|
+
done: context.done
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
164
|
+
var methodName = context.method,
|
|
165
|
+
method = delegate.iterator[methodName];
|
|
166
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
167
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
168
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
169
|
+
var info = record.arg;
|
|
170
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
171
|
+
}
|
|
172
|
+
function pushTryEntry(locs) {
|
|
173
|
+
var entry = {
|
|
174
|
+
tryLoc: locs[0]
|
|
175
|
+
};
|
|
176
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
177
|
+
}
|
|
178
|
+
function resetTryEntry(entry) {
|
|
179
|
+
var record = entry.completion || {};
|
|
180
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
181
|
+
}
|
|
182
|
+
function Context(tryLocsList) {
|
|
183
|
+
this.tryEntries = [{
|
|
184
|
+
tryLoc: "root"
|
|
185
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
186
|
+
}
|
|
187
|
+
function values(iterable) {
|
|
188
|
+
if (iterable) {
|
|
189
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
190
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
191
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
192
|
+
if (!isNaN(iterable.length)) {
|
|
193
|
+
var i = -1,
|
|
194
|
+
next = function next() {
|
|
195
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
196
|
+
return next.value = undefined, next.done = !0, next;
|
|
197
|
+
};
|
|
198
|
+
return next.next = next;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
next: doneResult
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
function doneResult() {
|
|
206
|
+
return {
|
|
207
|
+
value: undefined,
|
|
208
|
+
done: !0
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
212
|
+
value: GeneratorFunctionPrototype,
|
|
213
|
+
configurable: !0
|
|
214
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
215
|
+
value: GeneratorFunction,
|
|
216
|
+
configurable: !0
|
|
217
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
218
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
219
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
220
|
+
}, exports.mark = function (genFun) {
|
|
221
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
222
|
+
}, exports.awrap = function (arg) {
|
|
223
|
+
return {
|
|
224
|
+
__await: arg
|
|
225
|
+
};
|
|
226
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
227
|
+
return this;
|
|
228
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
229
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
230
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
231
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
232
|
+
return result.done ? result.value : iter.next();
|
|
233
|
+
});
|
|
234
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
235
|
+
return this;
|
|
236
|
+
}), define(Gp, "toString", function () {
|
|
237
|
+
return "[object Generator]";
|
|
238
|
+
}), exports.keys = function (val) {
|
|
239
|
+
var object = Object(val),
|
|
240
|
+
keys = [];
|
|
241
|
+
for (var key in object) keys.push(key);
|
|
242
|
+
return keys.reverse(), function next() {
|
|
243
|
+
for (; keys.length;) {
|
|
244
|
+
var key = keys.pop();
|
|
245
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
246
|
+
}
|
|
247
|
+
return next.done = !0, next;
|
|
248
|
+
};
|
|
249
|
+
}, exports.values = values, Context.prototype = {
|
|
250
|
+
constructor: Context,
|
|
251
|
+
reset: function (skipTempReset) {
|
|
252
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
253
|
+
},
|
|
254
|
+
stop: function () {
|
|
255
|
+
this.done = !0;
|
|
256
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
257
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
258
|
+
return this.rval;
|
|
259
|
+
},
|
|
260
|
+
dispatchException: function (exception) {
|
|
261
|
+
if (this.done) throw exception;
|
|
262
|
+
var context = this;
|
|
263
|
+
function handle(loc, caught) {
|
|
264
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
265
|
+
}
|
|
266
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
267
|
+
var entry = this.tryEntries[i],
|
|
268
|
+
record = entry.completion;
|
|
269
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
270
|
+
if (entry.tryLoc <= this.prev) {
|
|
271
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
272
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
273
|
+
if (hasCatch && hasFinally) {
|
|
274
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
275
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
276
|
+
} else if (hasCatch) {
|
|
277
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
278
|
+
} else {
|
|
279
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
280
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
abrupt: function (type, arg) {
|
|
286
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
287
|
+
var entry = this.tryEntries[i];
|
|
288
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
289
|
+
var finallyEntry = entry;
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
294
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
295
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
296
|
+
},
|
|
297
|
+
complete: function (record, afterLoc) {
|
|
298
|
+
if ("throw" === record.type) throw record.arg;
|
|
299
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
300
|
+
},
|
|
301
|
+
finish: function (finallyLoc) {
|
|
302
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
303
|
+
var entry = this.tryEntries[i];
|
|
304
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
catch: function (tryLoc) {
|
|
308
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
309
|
+
var entry = this.tryEntries[i];
|
|
310
|
+
if (entry.tryLoc === tryLoc) {
|
|
311
|
+
var record = entry.completion;
|
|
312
|
+
if ("throw" === record.type) {
|
|
313
|
+
var thrown = record.arg;
|
|
314
|
+
resetTryEntry(entry);
|
|
315
|
+
}
|
|
316
|
+
return thrown;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
throw new Error("illegal catch attempt");
|
|
320
|
+
},
|
|
321
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
322
|
+
return this.delegate = {
|
|
323
|
+
iterator: values(iterable),
|
|
324
|
+
resultName: resultName,
|
|
325
|
+
nextLoc: nextLoc
|
|
326
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
327
|
+
}
|
|
328
|
+
}, exports;
|
|
329
|
+
}
|
|
330
|
+
function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
331
|
+
try {
|
|
332
|
+
var info = gen[key](arg);
|
|
333
|
+
var value = info.value;
|
|
334
|
+
} catch (error) {
|
|
335
|
+
reject(error);
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
if (info.done) {
|
|
339
|
+
resolve(value);
|
|
340
|
+
} else {
|
|
341
|
+
Promise.resolve(value).then(_next, _throw);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
function _asyncToGenerator$1(fn) {
|
|
345
|
+
return function () {
|
|
346
|
+
var self = this,
|
|
347
|
+
args = arguments;
|
|
348
|
+
return new Promise(function (resolve, reject) {
|
|
349
|
+
var gen = fn.apply(self, args);
|
|
350
|
+
function _next(value) {
|
|
351
|
+
asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "next", value);
|
|
352
|
+
}
|
|
353
|
+
function _throw(err) {
|
|
354
|
+
asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "throw", err);
|
|
355
|
+
}
|
|
356
|
+
_next(undefined);
|
|
357
|
+
});
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
function _extends$1() {
|
|
361
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
362
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
363
|
+
var source = arguments[i];
|
|
364
|
+
for (var key in source) {
|
|
365
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
366
|
+
target[key] = source[key];
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
return target;
|
|
371
|
+
};
|
|
372
|
+
return _extends$1.apply(this, arguments);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
function getDefaultExportFromCjs (x) {
|
|
376
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
var react = {exports: {}};
|
|
380
|
+
|
|
381
|
+
var react_production_min = {};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* @license React
|
|
385
|
+
* react.production.min.js
|
|
386
|
+
*
|
|
387
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
388
|
+
*
|
|
389
|
+
* This source code is licensed under the MIT license found in the
|
|
390
|
+
* LICENSE file in the root directory of this source tree.
|
|
391
|
+
*/
|
|
392
|
+
var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return "function"===typeof a?a:null}
|
|
393
|
+
var B={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}E.prototype.isReactComponent={};
|
|
394
|
+
E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState");};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}var H=G.prototype=new F;
|
|
395
|
+
H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};
|
|
396
|
+
function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f;}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return {$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}
|
|
397
|
+
function N(a,b){return {$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return "object"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g;function Q(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
|
398
|
+
function R(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case l:case n:h=!0;}}if(h)return h=a,c=c(h),a=""===d?"."+Q(h,0):d,I(c)?(e="",null!=a&&(e=a.replace(P,"$&/")+"/"),R(c,b,e,"",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I(a))for(var g=0;g<a.length;g++){k=
|
|
399
|
+
a[g];var f=d+Q(k,g);h+=R(k,b,e,f,c);}else if(f=A(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}
|
|
400
|
+
function S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,"","",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b;},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b;});-1===a._status&&(a._status=0,a._result=b);}if(1===a._status)return a._result.default;throw a._result;}
|
|
401
|
+
var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};react_production_min.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments);},e);},count:function(a){var b=0;S(a,function(){b++;});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};react_production_min.Component=E;react_production_min.Fragment=p;
|
|
402
|
+
react_production_min.Profiler=r;react_production_min.PureComponent=G;react_production_min.StrictMode=q;react_production_min.Suspense=w;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;
|
|
403
|
+
react_production_min.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
|
|
404
|
+
for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g;}return {$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};react_production_min.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};react_production_min.createElement=M;react_production_min.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};
|
|
405
|
+
react_production_min.forwardRef=function(a){return {$$typeof:v,render:a}};react_production_min.isValidElement=O;react_production_min.lazy=function(a){return {$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};react_production_min.memo=function(a,b){return {$$typeof:x,type:a,compare:void 0===b?null:b}};react_production_min.startTransition=function(a){var b=V.transition;V.transition={};try{a();}finally{V.transition=b;}};react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};
|
|
406
|
+
react_production_min.useCallback=function(a,b){return U.current.useCallback(a,b)};react_production_min.useContext=function(a){return U.current.useContext(a)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(a){return U.current.useDeferredValue(a)};react_production_min.useEffect=function(a,b){return U.current.useEffect(a,b)};react_production_min.useId=function(){return U.current.useId()};react_production_min.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};
|
|
407
|
+
react_production_min.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};react_production_min.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};react_production_min.useMemo=function(a,b){return U.current.useMemo(a,b)};react_production_min.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};react_production_min.useRef=function(a){return U.current.useRef(a)};react_production_min.useState=function(a){return U.current.useState(a)};react_production_min.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};
|
|
408
|
+
react_production_min.useTransition=function(){return U.current.useTransition()};react_production_min.version="18.2.0";
|
|
409
|
+
|
|
410
|
+
{
|
|
411
|
+
react.exports = react_production_min;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
var reactExports = react.exports;
|
|
415
|
+
var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
|
416
|
+
|
|
417
|
+
var React$1 = /*#__PURE__*/_mergeNamespaces({
|
|
418
|
+
__proto__: null,
|
|
419
|
+
default: React
|
|
420
|
+
}, [reactExports]);
|
|
421
|
+
|
|
422
|
+
var Context = /*#__PURE__*/React.createContext();
|
|
423
|
+
|
|
424
|
+
/* eslint react/display-name:0 */
|
|
425
|
+
var withContext = function withContext(BaseComponent) {
|
|
426
|
+
return function (props) {
|
|
427
|
+
var _useContext = reactExports.useContext(Context),
|
|
428
|
+
context = _useContext.context,
|
|
429
|
+
setContext = _useContext.setContext;
|
|
430
|
+
return /*#__PURE__*/React.createElement(BaseComponent, _extends$1({}, props, {
|
|
431
|
+
context: context,
|
|
432
|
+
setContext: setContext
|
|
433
|
+
}));
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* @remix-run/router v1.5.0
|
|
439
|
+
*
|
|
440
|
+
* Copyright (c) Remix Software Inc.
|
|
441
|
+
*
|
|
442
|
+
* This source code is licensed under the MIT license found in the
|
|
443
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
444
|
+
*
|
|
445
|
+
* @license MIT
|
|
446
|
+
*/
|
|
447
|
+
function _extends() {
|
|
448
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
449
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
450
|
+
var source = arguments[i];
|
|
451
|
+
|
|
452
|
+
for (var key in source) {
|
|
453
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
454
|
+
target[key] = source[key];
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
return target;
|
|
460
|
+
};
|
|
461
|
+
return _extends.apply(this, arguments);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
465
|
+
//#region Types and Constants
|
|
466
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Actions represent the type of change to a location value.
|
|
470
|
+
*/
|
|
471
|
+
var Action;
|
|
472
|
+
|
|
473
|
+
(function (Action) {
|
|
474
|
+
/**
|
|
475
|
+
* A POP indicates a change to an arbitrary index in the history stack, such
|
|
476
|
+
* as a back or forward navigation. It does not describe the direction of the
|
|
477
|
+
* navigation, only that the current index changed.
|
|
478
|
+
*
|
|
479
|
+
* Note: This is the default action for newly created history objects.
|
|
480
|
+
*/
|
|
481
|
+
Action["Pop"] = "POP";
|
|
482
|
+
/**
|
|
483
|
+
* A PUSH indicates a new entry being added to the history stack, such as when
|
|
484
|
+
* a link is clicked and a new page loads. When this happens, all subsequent
|
|
485
|
+
* entries in the stack are lost.
|
|
486
|
+
*/
|
|
487
|
+
|
|
488
|
+
Action["Push"] = "PUSH";
|
|
489
|
+
/**
|
|
490
|
+
* A REPLACE indicates the entry at the current index in the history stack
|
|
491
|
+
* being replaced by a new one.
|
|
492
|
+
*/
|
|
493
|
+
|
|
494
|
+
Action["Replace"] = "REPLACE";
|
|
495
|
+
})(Action || (Action = {}));
|
|
496
|
+
|
|
497
|
+
const PopStateEventType = "popstate";
|
|
498
|
+
/**
|
|
499
|
+
* Browser history stores the location in regular URLs. This is the standard for
|
|
500
|
+
* most web apps, but it requires some configuration on the server to ensure you
|
|
501
|
+
* serve the same app at multiple URLs.
|
|
502
|
+
*
|
|
503
|
+
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory
|
|
504
|
+
*/
|
|
505
|
+
|
|
506
|
+
function createBrowserHistory(options) {
|
|
507
|
+
if (options === void 0) {
|
|
508
|
+
options = {};
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
function createBrowserLocation(window, globalHistory) {
|
|
512
|
+
let {
|
|
513
|
+
pathname,
|
|
514
|
+
search,
|
|
515
|
+
hash
|
|
516
|
+
} = window.location;
|
|
517
|
+
return createLocation("", {
|
|
518
|
+
pathname,
|
|
519
|
+
search,
|
|
520
|
+
hash
|
|
521
|
+
}, // state defaults to `null` because `window.history.state` does
|
|
522
|
+
globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || "default");
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
function createBrowserHref(window, to) {
|
|
526
|
+
return typeof to === "string" ? to : createPath(to);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options);
|
|
530
|
+
}
|
|
531
|
+
function invariant(value, message) {
|
|
532
|
+
if (value === false || value === null || typeof value === "undefined") {
|
|
533
|
+
throw new Error(message);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
function createKey() {
|
|
538
|
+
return Math.random().toString(36).substr(2, 8);
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* For browser-based histories, we combine the state and key into an object
|
|
542
|
+
*/
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
function getHistoryState(location, index) {
|
|
546
|
+
return {
|
|
547
|
+
usr: location.state,
|
|
548
|
+
key: location.key,
|
|
549
|
+
idx: index
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Creates a Location object with a unique key from the given Path
|
|
554
|
+
*/
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
function createLocation(current, to, state, key) {
|
|
558
|
+
if (state === void 0) {
|
|
559
|
+
state = null;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
let location = _extends({
|
|
563
|
+
pathname: typeof current === "string" ? current : current.pathname,
|
|
564
|
+
search: "",
|
|
565
|
+
hash: ""
|
|
566
|
+
}, typeof to === "string" ? parsePath(to) : to, {
|
|
567
|
+
state,
|
|
568
|
+
// TODO: This could be cleaned up. push/replace should probably just take
|
|
569
|
+
// full Locations now and avoid the need to run through this flow at all
|
|
570
|
+
// But that's a pretty big refactor to the current test suite so going to
|
|
571
|
+
// keep as is for the time being and just let any incoming keys take precedence
|
|
572
|
+
key: to && to.key || key || createKey()
|
|
573
|
+
});
|
|
574
|
+
|
|
575
|
+
return location;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* Creates a string URL path from the given pathname, search, and hash components.
|
|
579
|
+
*/
|
|
580
|
+
|
|
581
|
+
function createPath(_ref) {
|
|
582
|
+
let {
|
|
583
|
+
pathname = "/",
|
|
584
|
+
search = "",
|
|
585
|
+
hash = ""
|
|
586
|
+
} = _ref;
|
|
587
|
+
if (search && search !== "?") pathname += search.charAt(0) === "?" ? search : "?" + search;
|
|
588
|
+
if (hash && hash !== "#") pathname += hash.charAt(0) === "#" ? hash : "#" + hash;
|
|
589
|
+
return pathname;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Parses a string URL path into its separate pathname, search, and hash components.
|
|
593
|
+
*/
|
|
594
|
+
|
|
595
|
+
function parsePath(path) {
|
|
596
|
+
let parsedPath = {};
|
|
597
|
+
|
|
598
|
+
if (path) {
|
|
599
|
+
let hashIndex = path.indexOf("#");
|
|
600
|
+
|
|
601
|
+
if (hashIndex >= 0) {
|
|
602
|
+
parsedPath.hash = path.substr(hashIndex);
|
|
603
|
+
path = path.substr(0, hashIndex);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
let searchIndex = path.indexOf("?");
|
|
607
|
+
|
|
608
|
+
if (searchIndex >= 0) {
|
|
609
|
+
parsedPath.search = path.substr(searchIndex);
|
|
610
|
+
path = path.substr(0, searchIndex);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
if (path) {
|
|
614
|
+
parsedPath.pathname = path;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
return parsedPath;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
function getUrlBasedHistory(getLocation, createHref, validateLocation, options) {
|
|
622
|
+
if (options === void 0) {
|
|
623
|
+
options = {};
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
let {
|
|
627
|
+
window = document.defaultView,
|
|
628
|
+
v5Compat = false
|
|
629
|
+
} = options;
|
|
630
|
+
let globalHistory = window.history;
|
|
631
|
+
let action = Action.Pop;
|
|
632
|
+
let listener = null;
|
|
633
|
+
let index = getIndex(); // Index should only be null when we initialize. If not, it's because the
|
|
634
|
+
// user called history.pushState or history.replaceState directly, in which
|
|
635
|
+
// case we should log a warning as it will result in bugs.
|
|
636
|
+
|
|
637
|
+
if (index == null) {
|
|
638
|
+
index = 0;
|
|
639
|
+
globalHistory.replaceState(_extends({}, globalHistory.state, {
|
|
640
|
+
idx: index
|
|
641
|
+
}), "");
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
function getIndex() {
|
|
645
|
+
let state = globalHistory.state || {
|
|
646
|
+
idx: null
|
|
647
|
+
};
|
|
648
|
+
return state.idx;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
function handlePop() {
|
|
652
|
+
action = Action.Pop;
|
|
653
|
+
let nextIndex = getIndex();
|
|
654
|
+
let delta = nextIndex == null ? null : nextIndex - index;
|
|
655
|
+
index = nextIndex;
|
|
656
|
+
|
|
657
|
+
if (listener) {
|
|
658
|
+
listener({
|
|
659
|
+
action,
|
|
660
|
+
location: history.location,
|
|
661
|
+
delta
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
function push(to, state) {
|
|
667
|
+
action = Action.Push;
|
|
668
|
+
let location = createLocation(history.location, to, state);
|
|
669
|
+
if (validateLocation) validateLocation(location, to);
|
|
670
|
+
index = getIndex() + 1;
|
|
671
|
+
let historyState = getHistoryState(location, index);
|
|
672
|
+
let url = history.createHref(location); // try...catch because iOS limits us to 100 pushState calls :/
|
|
673
|
+
|
|
674
|
+
try {
|
|
675
|
+
globalHistory.pushState(historyState, "", url);
|
|
676
|
+
} catch (error) {
|
|
677
|
+
// They are going to lose state here, but there is no real
|
|
678
|
+
// way to warn them about it since the page will refresh...
|
|
679
|
+
window.location.assign(url);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
if (v5Compat && listener) {
|
|
683
|
+
listener({
|
|
684
|
+
action,
|
|
685
|
+
location: history.location,
|
|
686
|
+
delta: 1
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
function replace(to, state) {
|
|
692
|
+
action = Action.Replace;
|
|
693
|
+
let location = createLocation(history.location, to, state);
|
|
694
|
+
if (validateLocation) validateLocation(location, to);
|
|
695
|
+
index = getIndex();
|
|
696
|
+
let historyState = getHistoryState(location, index);
|
|
697
|
+
let url = history.createHref(location);
|
|
698
|
+
globalHistory.replaceState(historyState, "", url);
|
|
699
|
+
|
|
700
|
+
if (v5Compat && listener) {
|
|
701
|
+
listener({
|
|
702
|
+
action,
|
|
703
|
+
location: history.location,
|
|
704
|
+
delta: 0
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
function createURL(to) {
|
|
710
|
+
// window.location.origin is "null" (the literal string value) in Firefox
|
|
711
|
+
// under certain conditions, notably when serving from a local HTML file
|
|
712
|
+
// See https://bugzilla.mozilla.org/show_bug.cgi?id=878297
|
|
713
|
+
let base = window.location.origin !== "null" ? window.location.origin : window.location.href;
|
|
714
|
+
let href = typeof to === "string" ? to : createPath(to);
|
|
715
|
+
invariant(base, "No window.location.(origin|href) available to create URL for href: " + href);
|
|
716
|
+
return new URL(href, base);
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
let history = {
|
|
720
|
+
get action() {
|
|
721
|
+
return action;
|
|
722
|
+
},
|
|
723
|
+
|
|
724
|
+
get location() {
|
|
725
|
+
return getLocation(window, globalHistory);
|
|
726
|
+
},
|
|
727
|
+
|
|
728
|
+
listen(fn) {
|
|
729
|
+
if (listener) {
|
|
730
|
+
throw new Error("A history only accepts one active listener");
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
window.addEventListener(PopStateEventType, handlePop);
|
|
734
|
+
listener = fn;
|
|
735
|
+
return () => {
|
|
736
|
+
window.removeEventListener(PopStateEventType, handlePop);
|
|
737
|
+
listener = null;
|
|
738
|
+
};
|
|
739
|
+
},
|
|
740
|
+
|
|
741
|
+
createHref(to) {
|
|
742
|
+
return createHref(window, to);
|
|
743
|
+
},
|
|
744
|
+
|
|
745
|
+
createURL,
|
|
746
|
+
|
|
747
|
+
encodeLocation(to) {
|
|
748
|
+
// Encode a Location the same way window.location would
|
|
749
|
+
let url = createURL(to);
|
|
750
|
+
return {
|
|
751
|
+
pathname: url.pathname,
|
|
752
|
+
search: url.search,
|
|
753
|
+
hash: url.hash
|
|
754
|
+
};
|
|
755
|
+
},
|
|
756
|
+
|
|
757
|
+
push,
|
|
758
|
+
replace,
|
|
759
|
+
|
|
760
|
+
go(n) {
|
|
761
|
+
return globalHistory.go(n);
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
};
|
|
765
|
+
return history;
|
|
766
|
+
} //#endregion
|
|
767
|
+
|
|
768
|
+
var ResultType;
|
|
769
|
+
|
|
770
|
+
(function (ResultType) {
|
|
771
|
+
ResultType["data"] = "data";
|
|
772
|
+
ResultType["deferred"] = "deferred";
|
|
773
|
+
ResultType["redirect"] = "redirect";
|
|
774
|
+
ResultType["error"] = "error";
|
|
775
|
+
})(ResultType || (ResultType = {}));
|
|
776
|
+
/**
|
|
777
|
+
* @private
|
|
778
|
+
*/
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
function stripBasename(pathname, basename) {
|
|
782
|
+
if (basename === "/") return pathname;
|
|
783
|
+
|
|
784
|
+
if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {
|
|
785
|
+
return null;
|
|
786
|
+
} // We want to leave trailing slash behavior in the user's control, so if they
|
|
787
|
+
// specify a basename with a trailing slash, we should support it
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
let startIndex = basename.endsWith("/") ? basename.length - 1 : basename.length;
|
|
791
|
+
let nextChar = pathname.charAt(startIndex);
|
|
792
|
+
|
|
793
|
+
if (nextChar && nextChar !== "/") {
|
|
794
|
+
// pathname does not start with basename/
|
|
795
|
+
return null;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
return pathname.slice(startIndex) || "/";
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* React Router v6.10.0
|
|
803
|
+
*
|
|
804
|
+
* Copyright (c) Remix Software Inc.
|
|
805
|
+
*
|
|
806
|
+
* This source code is licensed under the MIT license found in the
|
|
807
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
808
|
+
*
|
|
809
|
+
* @license MIT
|
|
810
|
+
*/
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
814
|
+
*
|
|
815
|
+
* This source code is licensed under the MIT license found in the
|
|
816
|
+
* LICENSE file in the root directory of this source tree.
|
|
817
|
+
*/
|
|
818
|
+
/**
|
|
819
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
820
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
821
|
+
*/
|
|
822
|
+
|
|
823
|
+
function isPolyfill(x, y) {
|
|
824
|
+
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
|
|
825
|
+
;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
const is = typeof Object.is === "function" ? Object.is : isPolyfill; // Intentionally not using named imports because Rollup uses dynamic
|
|
829
|
+
// dispatch for CommonJS interop named imports.
|
|
830
|
+
|
|
831
|
+
const {
|
|
832
|
+
useState,
|
|
833
|
+
useEffect,
|
|
834
|
+
useLayoutEffect,
|
|
835
|
+
useDebugValue
|
|
836
|
+
} = React$1;
|
|
837
|
+
// because of a very particular set of implementation details and assumptions
|
|
838
|
+
// -- change any one of them and it will break. The most important assumption
|
|
839
|
+
// is that updates are always synchronous, because concurrent rendering is
|
|
840
|
+
// only available in versions of React that also have a built-in
|
|
841
|
+
// useSyncExternalStore API. And we only use this shim when the built-in API
|
|
842
|
+
// does not exist.
|
|
843
|
+
//
|
|
844
|
+
// Do not assume that the clever hacks used by this hook also work in general.
|
|
845
|
+
// The point of this shim is to replace the need for hacks by other libraries.
|
|
846
|
+
|
|
847
|
+
function useSyncExternalStore$2(subscribe, getSnapshot, // Note: The shim does not use getServerSnapshot, because pre-18 versions of
|
|
848
|
+
// React do not expose a way to check if we're hydrating. So users of the shim
|
|
849
|
+
// will need to track that themselves and return the correct value
|
|
850
|
+
// from `getSnapshot`.
|
|
851
|
+
getServerSnapshot) {
|
|
852
|
+
// breaks the rules of React, and only works here because of specific
|
|
853
|
+
// implementation details, most importantly that updates are
|
|
854
|
+
// always synchronous.
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
const value = getSnapshot();
|
|
858
|
+
// re-render whenever the subscribed state changes by updating an some
|
|
859
|
+
// arbitrary useState hook. Then, during render, we call getSnapshot to read
|
|
860
|
+
// the current value.
|
|
861
|
+
//
|
|
862
|
+
// Because we don't actually use the state returned by the useState hook, we
|
|
863
|
+
// can save a bit of memory by storing other stuff in that slot.
|
|
864
|
+
//
|
|
865
|
+
// To implement the early bailout, we need to track some things on a mutable
|
|
866
|
+
// object. Usually, we would put that in a useRef hook, but we can stash it in
|
|
867
|
+
// our useState hook instead.
|
|
868
|
+
//
|
|
869
|
+
// To force a re-render, we call forceUpdate({inst}). That works because the
|
|
870
|
+
// new object always fails an equality check.
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
const [{
|
|
874
|
+
inst
|
|
875
|
+
}, forceUpdate] = useState({
|
|
876
|
+
inst: {
|
|
877
|
+
value,
|
|
878
|
+
getSnapshot
|
|
879
|
+
}
|
|
880
|
+
}); // Track the latest getSnapshot function with a ref. This needs to be updated
|
|
881
|
+
// in the layout phase so we can access it during the tearing check that
|
|
882
|
+
// happens on subscribe.
|
|
883
|
+
|
|
884
|
+
useLayoutEffect(() => {
|
|
885
|
+
inst.value = value;
|
|
886
|
+
inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the
|
|
887
|
+
// commit phase if there was an interleaved mutation. In concurrent mode
|
|
888
|
+
// this can happen all the time, but even in synchronous mode, an earlier
|
|
889
|
+
// effect may have mutated the store.
|
|
890
|
+
|
|
891
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
892
|
+
// Force a re-render.
|
|
893
|
+
forceUpdate({
|
|
894
|
+
inst
|
|
895
|
+
});
|
|
896
|
+
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
897
|
+
|
|
898
|
+
}, [subscribe, value, getSnapshot]);
|
|
899
|
+
useEffect(() => {
|
|
900
|
+
// Check for changes right before subscribing. Subsequent changes will be
|
|
901
|
+
// detected in the subscription handler.
|
|
902
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
903
|
+
// Force a re-render.
|
|
904
|
+
forceUpdate({
|
|
905
|
+
inst
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
const handleStoreChange = () => {
|
|
910
|
+
// TODO: Because there is no cross-renderer API for batching updates, it's
|
|
911
|
+
// up to the consumer of this library to wrap their subscription event
|
|
912
|
+
// with unstable_batchedUpdates. Should we try to detect when this isn't
|
|
913
|
+
// the case and print a warning in development?
|
|
914
|
+
// The store changed. Check if the snapshot changed since the last time we
|
|
915
|
+
// read from the store.
|
|
916
|
+
if (checkIfSnapshotChanged(inst)) {
|
|
917
|
+
// Force a re-render.
|
|
918
|
+
forceUpdate({
|
|
919
|
+
inst
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
}; // Subscribe to the store and return a clean-up function.
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
return subscribe(handleStoreChange); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
926
|
+
}, [subscribe]);
|
|
927
|
+
useDebugValue(value);
|
|
928
|
+
return value;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
function checkIfSnapshotChanged(inst) {
|
|
932
|
+
const latestGetSnapshot = inst.getSnapshot;
|
|
933
|
+
const prevValue = inst.value;
|
|
934
|
+
|
|
935
|
+
try {
|
|
936
|
+
const nextValue = latestGetSnapshot();
|
|
937
|
+
return !is(prevValue, nextValue);
|
|
938
|
+
} catch (error) {
|
|
939
|
+
return true;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
945
|
+
*
|
|
946
|
+
* This source code is licensed under the MIT license found in the
|
|
947
|
+
* LICENSE file in the root directory of this source tree.
|
|
948
|
+
*
|
|
949
|
+
* @flow
|
|
950
|
+
*/
|
|
951
|
+
function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
|
|
952
|
+
// Note: The shim does not use getServerSnapshot, because pre-18 versions of
|
|
953
|
+
// React do not expose a way to check if we're hydrating. So users of the shim
|
|
954
|
+
// will need to track that themselves and return the correct value
|
|
955
|
+
// from `getSnapshot`.
|
|
956
|
+
return getSnapshot();
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* Inlined into the react-router repo since use-sync-external-store does not
|
|
961
|
+
* provide a UMD-compatible package, so we need this to be able to distribute
|
|
962
|
+
* UMD react-router bundles
|
|
963
|
+
*/
|
|
964
|
+
const canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
965
|
+
const isServerEnvironment = !canUseDOM;
|
|
966
|
+
const shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
967
|
+
"useSyncExternalStore" in React$1 ? (module => module.useSyncExternalStore)(React$1) : shim;
|
|
968
|
+
|
|
969
|
+
const NavigationContext = /*#__PURE__*/reactExports.createContext(null);
|
|
970
|
+
|
|
971
|
+
const LocationContext = /*#__PURE__*/reactExports.createContext(null);
|
|
972
|
+
/**
|
|
973
|
+
* Returns true if this component is a descendant of a <Router>.
|
|
974
|
+
*
|
|
975
|
+
* @see https://reactrouter.com/hooks/use-in-router-context
|
|
976
|
+
*/
|
|
977
|
+
|
|
978
|
+
function useInRouterContext() {
|
|
979
|
+
return reactExports.useContext(LocationContext) != null;
|
|
980
|
+
}
|
|
981
|
+
var DataRouterHook$1;
|
|
982
|
+
|
|
983
|
+
(function (DataRouterHook) {
|
|
984
|
+
DataRouterHook["UseBlocker"] = "useBlocker";
|
|
985
|
+
DataRouterHook["UseRevalidator"] = "useRevalidator";
|
|
986
|
+
})(DataRouterHook$1 || (DataRouterHook$1 = {}));
|
|
987
|
+
|
|
988
|
+
var DataRouterStateHook$1;
|
|
989
|
+
|
|
990
|
+
(function (DataRouterStateHook) {
|
|
991
|
+
DataRouterStateHook["UseBlocker"] = "useBlocker";
|
|
992
|
+
DataRouterStateHook["UseLoaderData"] = "useLoaderData";
|
|
993
|
+
DataRouterStateHook["UseActionData"] = "useActionData";
|
|
994
|
+
DataRouterStateHook["UseRouteError"] = "useRouteError";
|
|
995
|
+
DataRouterStateHook["UseNavigation"] = "useNavigation";
|
|
996
|
+
DataRouterStateHook["UseRouteLoaderData"] = "useRouteLoaderData";
|
|
997
|
+
DataRouterStateHook["UseMatches"] = "useMatches";
|
|
998
|
+
DataRouterStateHook["UseRevalidator"] = "useRevalidator";
|
|
999
|
+
})(DataRouterStateHook$1 || (DataRouterStateHook$1 = {}));
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Provides location context for the rest of the app.
|
|
1003
|
+
*
|
|
1004
|
+
* Note: You usually won't render a <Router> directly. Instead, you'll render a
|
|
1005
|
+
* router that is more specific to your environment such as a <BrowserRouter>
|
|
1006
|
+
* in web browsers or a <StaticRouter> for server rendering.
|
|
1007
|
+
*
|
|
1008
|
+
* @see https://reactrouter.com/router-components/router
|
|
1009
|
+
*/
|
|
1010
|
+
function Router(_ref4) {
|
|
1011
|
+
let {
|
|
1012
|
+
basename: basenameProp = "/",
|
|
1013
|
+
children = null,
|
|
1014
|
+
location: locationProp,
|
|
1015
|
+
navigationType = Action.Pop,
|
|
1016
|
+
navigator,
|
|
1017
|
+
static: staticProp = false
|
|
1018
|
+
} = _ref4;
|
|
1019
|
+
!!useInRouterContext() ? invariant(false) : void 0; // Preserve trailing slashes on basename, so we can let the user control
|
|
1020
|
+
// the enforcement of trailing slashes throughout the app
|
|
1021
|
+
|
|
1022
|
+
let basename = basenameProp.replace(/^\/*/, "/");
|
|
1023
|
+
let navigationContext = reactExports.useMemo(() => ({
|
|
1024
|
+
basename,
|
|
1025
|
+
navigator,
|
|
1026
|
+
static: staticProp
|
|
1027
|
+
}), [basename, navigator, staticProp]);
|
|
1028
|
+
|
|
1029
|
+
if (typeof locationProp === "string") {
|
|
1030
|
+
locationProp = parsePath(locationProp);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
let {
|
|
1034
|
+
pathname = "/",
|
|
1035
|
+
search = "",
|
|
1036
|
+
hash = "",
|
|
1037
|
+
state = null,
|
|
1038
|
+
key = "default"
|
|
1039
|
+
} = locationProp;
|
|
1040
|
+
let locationContext = reactExports.useMemo(() => {
|
|
1041
|
+
let trailingPathname = stripBasename(pathname, basename);
|
|
1042
|
+
|
|
1043
|
+
if (trailingPathname == null) {
|
|
1044
|
+
return null;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
return {
|
|
1048
|
+
location: {
|
|
1049
|
+
pathname: trailingPathname,
|
|
1050
|
+
search,
|
|
1051
|
+
hash,
|
|
1052
|
+
state,
|
|
1053
|
+
key
|
|
1054
|
+
},
|
|
1055
|
+
navigationType
|
|
1056
|
+
};
|
|
1057
|
+
}, [basename, pathname, search, hash, state, key, navigationType]);
|
|
1058
|
+
|
|
1059
|
+
if (locationContext == null) {
|
|
1060
|
+
return null;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
return /*#__PURE__*/reactExports.createElement(NavigationContext.Provider, {
|
|
1064
|
+
value: navigationContext
|
|
1065
|
+
}, /*#__PURE__*/reactExports.createElement(LocationContext.Provider, {
|
|
1066
|
+
children: children,
|
|
1067
|
+
value: locationContext
|
|
1068
|
+
}));
|
|
1069
|
+
}
|
|
1070
|
+
var AwaitRenderStatus;
|
|
1071
|
+
|
|
1072
|
+
(function (AwaitRenderStatus) {
|
|
1073
|
+
AwaitRenderStatus[AwaitRenderStatus["pending"] = 0] = "pending";
|
|
1074
|
+
AwaitRenderStatus[AwaitRenderStatus["success"] = 1] = "success";
|
|
1075
|
+
AwaitRenderStatus[AwaitRenderStatus["error"] = 2] = "error";
|
|
1076
|
+
})(AwaitRenderStatus || (AwaitRenderStatus = {}));
|
|
1077
|
+
|
|
1078
|
+
new Promise(() => {});
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* React Router DOM v6.10.0
|
|
1082
|
+
*
|
|
1083
|
+
* Copyright (c) Remix Software Inc.
|
|
1084
|
+
*
|
|
1085
|
+
* This source code is licensed under the MIT license found in the
|
|
1086
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
1087
|
+
*
|
|
1088
|
+
* @license MIT
|
|
1089
|
+
*/
|
|
1090
|
+
/**
|
|
1091
|
+
* A `<Router>` for use in web browsers. Provides the cleanest URLs.
|
|
1092
|
+
*/
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
function BrowserRouter(_ref) {
|
|
1096
|
+
let {
|
|
1097
|
+
basename,
|
|
1098
|
+
children,
|
|
1099
|
+
window
|
|
1100
|
+
} = _ref;
|
|
1101
|
+
let historyRef = reactExports.useRef();
|
|
1102
|
+
|
|
1103
|
+
if (historyRef.current == null) {
|
|
1104
|
+
historyRef.current = createBrowserHistory({
|
|
1105
|
+
window,
|
|
1106
|
+
v5Compat: true
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
let history = historyRef.current;
|
|
1111
|
+
let [state, setState] = reactExports.useState({
|
|
1112
|
+
action: history.action,
|
|
1113
|
+
location: history.location
|
|
1114
|
+
});
|
|
1115
|
+
reactExports.useLayoutEffect(() => history.listen(setState), [history]);
|
|
1116
|
+
return /*#__PURE__*/reactExports.createElement(Router, {
|
|
1117
|
+
basename: basename,
|
|
1118
|
+
children: children,
|
|
1119
|
+
location: state.location,
|
|
1120
|
+
navigationType: state.action,
|
|
1121
|
+
navigator: history
|
|
1122
|
+
});
|
|
1123
|
+
}
|
|
1124
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
1125
|
+
//#region Hooks
|
|
1126
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
var DataRouterHook;
|
|
1130
|
+
|
|
1131
|
+
(function (DataRouterHook) {
|
|
1132
|
+
DataRouterHook["UseScrollRestoration"] = "useScrollRestoration";
|
|
1133
|
+
DataRouterHook["UseSubmitImpl"] = "useSubmitImpl";
|
|
1134
|
+
DataRouterHook["UseFetcher"] = "useFetcher";
|
|
1135
|
+
})(DataRouterHook || (DataRouterHook = {}));
|
|
1136
|
+
|
|
1137
|
+
var DataRouterStateHook;
|
|
1138
|
+
|
|
1139
|
+
(function (DataRouterStateHook) {
|
|
1140
|
+
DataRouterStateHook["UseFetchers"] = "useFetchers";
|
|
1141
|
+
DataRouterStateHook["UseScrollRestoration"] = "useScrollRestoration";
|
|
1142
|
+
})(DataRouterStateHook || (DataRouterStateHook = {}));
|
|
1143
|
+
|
|
1144
|
+
var AppContext = function AppContext(_ref) {
|
|
1145
|
+
var context = _ref.context,
|
|
1146
|
+
children = _ref.children;
|
|
1147
|
+
var _useState = reactExports.useState(context),
|
|
1148
|
+
innerContext = _useState[0],
|
|
1149
|
+
setInnerContext = _useState[1];
|
|
1150
|
+
reactExports.useEffect(function () {
|
|
1151
|
+
setInnerContext(context);
|
|
1152
|
+
}, [context]);
|
|
1153
|
+
return /*#__PURE__*/React.createElement(Context.Provider, {
|
|
1154
|
+
value: {
|
|
1155
|
+
context: innerContext,
|
|
1156
|
+
setContext: setInnerContext
|
|
1157
|
+
}
|
|
1158
|
+
}, children);
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
var _DEF_CATCHER_URL = '/sys/jserror';
|
|
1162
|
+
function mioloCatcher(catcher_url) {
|
|
1163
|
+
window.onerror = function (msg, file, line, col, error) {
|
|
1164
|
+
try {
|
|
1165
|
+
var params = {
|
|
1166
|
+
'error': {
|
|
1167
|
+
msg: msg,
|
|
1168
|
+
file: file,
|
|
1169
|
+
line: line,
|
|
1170
|
+
col: col,
|
|
1171
|
+
error: error
|
|
1172
|
+
},
|
|
1173
|
+
'path': window.location.pathname,
|
|
1174
|
+
'agent': 'UserAgent' + navigator.userAgent
|
|
1175
|
+
};
|
|
1176
|
+
var body = JSON.stringify(params || {}, function (k, v) {
|
|
1177
|
+
return v === undefined ? null : v;
|
|
1178
|
+
});
|
|
1179
|
+
var request = {
|
|
1180
|
+
method: 'POST',
|
|
1181
|
+
mode: 'cors',
|
|
1182
|
+
credentials: 'include',
|
|
1183
|
+
headers: {
|
|
1184
|
+
'content-type': 'application/json'
|
|
1185
|
+
},
|
|
1186
|
+
body: body
|
|
1187
|
+
};
|
|
1188
|
+
fetch(catcher_url || _DEF_CATCHER_URL, request);
|
|
1189
|
+
} catch (e) {
|
|
1190
|
+
console.error(e);
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
var AppBrowser = function AppBrowser(_ref) {
|
|
1196
|
+
var children = _ref.children;
|
|
1197
|
+
mioloCatcher();
|
|
1198
|
+
return /*#__PURE__*/React.createElement(BrowserRouter, null, /*#__PURE__*/React.createElement(AppContext, {
|
|
1199
|
+
context: window.__CONTEXT || {}
|
|
1200
|
+
}, children));
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* A <Router> that may not navigate to any other location. This is useful
|
|
1205
|
+
* on the server where there is no stateful UI.
|
|
1206
|
+
*/
|
|
1207
|
+
function StaticRouter({
|
|
1208
|
+
basename,
|
|
1209
|
+
children,
|
|
1210
|
+
location: locationProp = "/"
|
|
1211
|
+
}) {
|
|
1212
|
+
if (typeof locationProp === "string") {
|
|
1213
|
+
locationProp = parsePath(locationProp);
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
let action = Action.Pop;
|
|
1217
|
+
let location = {
|
|
1218
|
+
pathname: locationProp.pathname || "/",
|
|
1219
|
+
search: locationProp.search || "",
|
|
1220
|
+
hash: locationProp.hash || "",
|
|
1221
|
+
state: locationProp.state || null,
|
|
1222
|
+
key: locationProp.key || "default"
|
|
1223
|
+
};
|
|
1224
|
+
let staticNavigator = getStatelessNavigator();
|
|
1225
|
+
return /*#__PURE__*/reactExports.createElement(Router, {
|
|
1226
|
+
basename: basename,
|
|
1227
|
+
children: children,
|
|
1228
|
+
location: location,
|
|
1229
|
+
navigationType: action,
|
|
1230
|
+
navigator: staticNavigator,
|
|
1231
|
+
static: true
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
function getStatelessNavigator() {
|
|
1236
|
+
return {
|
|
1237
|
+
createHref,
|
|
1238
|
+
encodeLocation,
|
|
1239
|
+
|
|
1240
|
+
push(to) {
|
|
1241
|
+
throw new Error(`You cannot use navigator.push() on the server because it is a stateless ` + `environment. This error was probably triggered when you did a ` + `\`navigate(${JSON.stringify(to)})\` somewhere in your app.`);
|
|
1242
|
+
},
|
|
1243
|
+
|
|
1244
|
+
replace(to) {
|
|
1245
|
+
throw new Error(`You cannot use navigator.replace() on the server because it is a stateless ` + `environment. This error was probably triggered when you did a ` + `\`navigate(${JSON.stringify(to)}, { replace: true })\` somewhere ` + `in your app.`);
|
|
1246
|
+
},
|
|
1247
|
+
|
|
1248
|
+
go(delta) {
|
|
1249
|
+
throw new Error(`You cannot use navigator.go() on the server because it is a stateless ` + `environment. This error was probably triggered when you did a ` + `\`navigate(${delta})\` somewhere in your app.`);
|
|
1250
|
+
},
|
|
1251
|
+
|
|
1252
|
+
back() {
|
|
1253
|
+
throw new Error(`You cannot use navigator.back() on the server because it is a stateless ` + `environment.`);
|
|
1254
|
+
},
|
|
1255
|
+
|
|
1256
|
+
forward() {
|
|
1257
|
+
throw new Error(`You cannot use navigator.forward() on the server because it is a stateless ` + `environment.`);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
function createHref(to) {
|
|
1264
|
+
return typeof to === "string" ? to : createPath(to);
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
function encodeLocation(to) {
|
|
1268
|
+
// Locations should already be encoded on the server, so just return as-is
|
|
1269
|
+
let path = typeof to === "string" ? parsePath(to) : to;
|
|
1270
|
+
return {
|
|
1271
|
+
pathname: path.pathname || "",
|
|
1272
|
+
search: path.search || "",
|
|
1273
|
+
hash: path.hash || ""
|
|
1274
|
+
};
|
|
1275
|
+
} // This utility is based on https://github.com/zertosh/htmlescape
|
|
1276
|
+
|
|
1277
|
+
var AppServer = function AppServer(_ref) {
|
|
1278
|
+
var url = _ref.url,
|
|
1279
|
+
context = _ref.context,
|
|
1280
|
+
children = _ref.children;
|
|
1281
|
+
return /*#__PURE__*/React.createElement(StaticRouter, {
|
|
1282
|
+
location: url
|
|
1283
|
+
}, /*#__PURE__*/React.createElement(AppContext, {
|
|
1284
|
+
context: context || {}
|
|
1285
|
+
}, children));
|
|
1286
|
+
};
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* calustra v0.9.0
|
|
1290
|
+
*
|
|
1291
|
+
* Copyright (c) Donato Lorenzo <donato@afialapis.com>
|
|
1292
|
+
*
|
|
1293
|
+
* This source code is licensed under the MIT license found in the
|
|
1294
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
1295
|
+
*
|
|
1296
|
+
* @license MIT
|
|
1297
|
+
*/
|
|
1298
|
+
function ownKeys(object, enumerableOnly) {
|
|
1299
|
+
var keys = Object.keys(object);
|
|
1300
|
+
if (Object.getOwnPropertySymbols) {
|
|
1301
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
1302
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
1303
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
1304
|
+
})), keys.push.apply(keys, symbols);
|
|
1305
|
+
}
|
|
1306
|
+
return keys;
|
|
1307
|
+
}
|
|
1308
|
+
function _objectSpread2(target) {
|
|
1309
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1310
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
1311
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
1312
|
+
_defineProperty(target, key, source[key]);
|
|
1313
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
1314
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
return target;
|
|
1318
|
+
}
|
|
1319
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1320
|
+
try {
|
|
1321
|
+
var info = gen[key](arg);
|
|
1322
|
+
var value = info.value;
|
|
1323
|
+
} catch (error) {
|
|
1324
|
+
reject(error);
|
|
1325
|
+
return;
|
|
1326
|
+
}
|
|
1327
|
+
if (info.done) {
|
|
1328
|
+
resolve(value);
|
|
1329
|
+
} else {
|
|
1330
|
+
Promise.resolve(value).then(_next, _throw);
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
function _asyncToGenerator(fn) {
|
|
1334
|
+
return function () {
|
|
1335
|
+
var self = this,
|
|
1336
|
+
args = arguments;
|
|
1337
|
+
return new Promise(function (resolve, reject) {
|
|
1338
|
+
var gen = fn.apply(self, args);
|
|
1339
|
+
function _next(value) {
|
|
1340
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
1341
|
+
}
|
|
1342
|
+
function _throw(err) {
|
|
1343
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1344
|
+
}
|
|
1345
|
+
_next(undefined);
|
|
1346
|
+
});
|
|
1347
|
+
};
|
|
1348
|
+
}
|
|
1349
|
+
function _defineProperty(obj, key, value) {
|
|
1350
|
+
key = _toPropertyKey(key);
|
|
1351
|
+
if (key in obj) {
|
|
1352
|
+
Object.defineProperty(obj, key, {
|
|
1353
|
+
value: value,
|
|
1354
|
+
enumerable: true,
|
|
1355
|
+
configurable: true,
|
|
1356
|
+
writable: true
|
|
1357
|
+
});
|
|
1358
|
+
} else {
|
|
1359
|
+
obj[key] = value;
|
|
1360
|
+
}
|
|
1361
|
+
return obj;
|
|
1362
|
+
}
|
|
1363
|
+
function _toPrimitive(input, hint) {
|
|
1364
|
+
if (typeof input !== "object" || input === null) return input;
|
|
1365
|
+
var prim = input[Symbol.toPrimitive];
|
|
1366
|
+
if (prim !== undefined) {
|
|
1367
|
+
var res = prim.call(input, hint || "default");
|
|
1368
|
+
if (typeof res !== "object") return res;
|
|
1369
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1370
|
+
}
|
|
1371
|
+
return (hint === "string" ? String : Number)(input);
|
|
1372
|
+
}
|
|
1373
|
+
function _toPropertyKey(arg) {
|
|
1374
|
+
var key = _toPrimitive(arg, "string");
|
|
1375
|
+
return typeof key === "symbol" ? key : String(key);
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* Transform an JSON object to a query string
|
|
1380
|
+
*/
|
|
1381
|
+
function json_to_query_string(params) {
|
|
1382
|
+
return '?' + Object.keys(params).map(k => {
|
|
1383
|
+
var name = encodeURIComponent(k);
|
|
1384
|
+
if (Array.isArray(params[k])) {
|
|
1385
|
+
return params[k].map(val => "".concat(name, "[]=").concat(encodeURIComponent(val))).join('&');
|
|
1386
|
+
}
|
|
1387
|
+
return "".concat(name, "=").concat(encodeURIComponent(params[k]));
|
|
1388
|
+
}).join('&');
|
|
1389
|
+
}
|
|
1390
|
+
function trim_left(str, what) {
|
|
1391
|
+
return str.replace(new RegExp("^".concat(what || '\\s', "+")), '');
|
|
1392
|
+
}
|
|
1393
|
+
function omit_nil(obj) {
|
|
1394
|
+
if (typeof obj !== 'object') return obj;
|
|
1395
|
+
return Object.keys(obj).reduce((acc, v) => {
|
|
1396
|
+
if (obj[v] !== undefined) acc[v] = obj[v];
|
|
1397
|
+
return acc;
|
|
1398
|
+
}, {});
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
//function _is_browser() {
|
|
1402
|
+
// try {
|
|
1403
|
+
// return process.env.BROWSER==true
|
|
1404
|
+
// } catch(_) {
|
|
1405
|
+
// return false
|
|
1406
|
+
// }
|
|
1407
|
+
//}
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* Prepend host of API server
|
|
1411
|
+
*/
|
|
1412
|
+
function _url_make(path) {
|
|
1413
|
+
if (path.indexOf('http') == 0) {
|
|
1414
|
+
return path;
|
|
1415
|
+
//} else if (_is_browser()) {
|
|
1416
|
+
// return '/' + trim_left(path, '/')
|
|
1417
|
+
//} else {
|
|
1418
|
+
// return `https://${location.host}/` + trim_left(path, '/')
|
|
1419
|
+
//}
|
|
1420
|
+
} else {
|
|
1421
|
+
return '/' + trim_left(path, '/');
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* Decide what to do with the response
|
|
1427
|
+
*/
|
|
1428
|
+
function _response_handle(response) {
|
|
1429
|
+
if (response.redirected) {
|
|
1430
|
+
if (typeof window == 'object') {
|
|
1431
|
+
window.location.replace(response.url);
|
|
1432
|
+
}
|
|
1433
|
+
return Promise.resolve(response);
|
|
1434
|
+
}
|
|
1435
|
+
if (response.headers.get('content-type').indexOf('json') >= 0) {
|
|
1436
|
+
return response.json().then(res => {
|
|
1437
|
+
return {
|
|
1438
|
+
data: res,
|
|
1439
|
+
status: response.status
|
|
1440
|
+
};
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1443
|
+
return response.text().then(text => {
|
|
1444
|
+
return {
|
|
1445
|
+
data: text,
|
|
1446
|
+
status: response.status
|
|
1447
|
+
};
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1452
|
+
* Build and execute remote request
|
|
1453
|
+
*/
|
|
1454
|
+
function calustra_fetch(method, url, params, isMultiForm, auth) {
|
|
1455
|
+
var requestURL = _url_make(url) + (method === 'GET' && params ? json_to_query_string(params) : '');
|
|
1456
|
+
var request = {
|
|
1457
|
+
method,
|
|
1458
|
+
mode: 'cors',
|
|
1459
|
+
credentials: 'include',
|
|
1460
|
+
headers: {
|
|
1461
|
+
'content-type': 'application/json'
|
|
1462
|
+
}
|
|
1463
|
+
};
|
|
1464
|
+
if (auth) {
|
|
1465
|
+
request.headers['Authorization'] = 'Basic ' + Buffer.from(auth.username + ":" + auth.password).toString('base64');
|
|
1466
|
+
}
|
|
1467
|
+
if (method === 'POST') {
|
|
1468
|
+
if (isMultiForm) {
|
|
1469
|
+
var formData = new FormData();
|
|
1470
|
+
for (var name in params) {
|
|
1471
|
+
formData.append(name, params[name]);
|
|
1472
|
+
}
|
|
1473
|
+
request.body = formData;
|
|
1474
|
+
} else {
|
|
1475
|
+
request.body = JSON.stringify(params || {}, (k, v) => v === undefined ? null : v);
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
return fetch(requestURL, request).then(_response_handle);
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
class Fetcher {
|
|
1482
|
+
constructor() {
|
|
1483
|
+
_defineProperty(this, "log_error", (msg, e) => {
|
|
1484
|
+
console.error(msg);
|
|
1485
|
+
console.error(e);
|
|
1486
|
+
});
|
|
1487
|
+
}
|
|
1488
|
+
get(url, params) {
|
|
1489
|
+
var _this = this;
|
|
1490
|
+
return _asyncToGenerator(function* () {
|
|
1491
|
+
/* eslint no-unused-vars:0 */
|
|
1492
|
+
try {
|
|
1493
|
+
var resp = yield calustra_fetch('GET', url, omit_nil(params));
|
|
1494
|
+
return resp;
|
|
1495
|
+
} catch (e) {
|
|
1496
|
+
_this.log_error("Error on GET ".concat(url), e);
|
|
1497
|
+
return {
|
|
1498
|
+
data: undefined,
|
|
1499
|
+
status: -1
|
|
1500
|
+
};
|
|
1501
|
+
}
|
|
1502
|
+
})();
|
|
1503
|
+
}
|
|
1504
|
+
post(url, data) {
|
|
1505
|
+
var _this2 = this;
|
|
1506
|
+
return _asyncToGenerator(function* () {
|
|
1507
|
+
try {
|
|
1508
|
+
var resp = yield calustra_fetch('POST', url, data, false);
|
|
1509
|
+
return resp;
|
|
1510
|
+
} catch (e) {
|
|
1511
|
+
_this2.log_error("Error on POST ".concat(url), e);
|
|
1512
|
+
return {
|
|
1513
|
+
data: undefined,
|
|
1514
|
+
status: -1
|
|
1515
|
+
};
|
|
1516
|
+
}
|
|
1517
|
+
})();
|
|
1518
|
+
}
|
|
1519
|
+
read(url, params) {
|
|
1520
|
+
var _this3 = this;
|
|
1521
|
+
return _asyncToGenerator(function* () {
|
|
1522
|
+
var result = yield _this3.get("".concat(url, "/read"), params);
|
|
1523
|
+
return result.data;
|
|
1524
|
+
})();
|
|
1525
|
+
}
|
|
1526
|
+
key_list(url, params) {
|
|
1527
|
+
var _this4 = this;
|
|
1528
|
+
return _asyncToGenerator(function* () {
|
|
1529
|
+
var result = yield _this4.get("".concat(url, "/key_list"), params);
|
|
1530
|
+
return result.data;
|
|
1531
|
+
})();
|
|
1532
|
+
}
|
|
1533
|
+
name_list(url, params) {
|
|
1534
|
+
var _this5 = this;
|
|
1535
|
+
return _asyncToGenerator(function* () {
|
|
1536
|
+
var result = yield _this5.key_list(url, params);
|
|
1537
|
+
return Object.values(result);
|
|
1538
|
+
})();
|
|
1539
|
+
}
|
|
1540
|
+
find(url, id) {
|
|
1541
|
+
var _this6 = this;
|
|
1542
|
+
return _asyncToGenerator(function* () {
|
|
1543
|
+
var result = yield _this6.get("".concat(url, "/find"), {
|
|
1544
|
+
id: id
|
|
1545
|
+
});
|
|
1546
|
+
return result.data;
|
|
1547
|
+
})();
|
|
1548
|
+
}
|
|
1549
|
+
distinct(url, field, params) {
|
|
1550
|
+
var _this7 = this;
|
|
1551
|
+
return _asyncToGenerator(function* () {
|
|
1552
|
+
var nparams = _objectSpread2(_objectSpread2({}, params), {}, {
|
|
1553
|
+
distinct_field: field
|
|
1554
|
+
});
|
|
1555
|
+
var result = yield _this7.get("".concat(url, "/distinct"), nparams);
|
|
1556
|
+
return result.data;
|
|
1557
|
+
})();
|
|
1558
|
+
}
|
|
1559
|
+
upsave(url, data) {
|
|
1560
|
+
var _this8 = this;
|
|
1561
|
+
return _asyncToGenerator(function* () {
|
|
1562
|
+
var result;
|
|
1563
|
+
if (data.id == undefined) {
|
|
1564
|
+
delete data.id;
|
|
1565
|
+
result = yield _this8.post("".concat(url, "/save"), data);
|
|
1566
|
+
} else {
|
|
1567
|
+
result = yield _this8.post("".concat(url, "/update"), data);
|
|
1568
|
+
}
|
|
1569
|
+
return result.data;
|
|
1570
|
+
})();
|
|
1571
|
+
}
|
|
1572
|
+
remove(url, id) {
|
|
1573
|
+
var _this9 = this;
|
|
1574
|
+
return _asyncToGenerator(function* () {
|
|
1575
|
+
var data = {
|
|
1576
|
+
id: id
|
|
1577
|
+
};
|
|
1578
|
+
var result = yield _this9.post("".concat(url, "/delete"), data);
|
|
1579
|
+
return result.data;
|
|
1580
|
+
})();
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
Fetcher.keyList = Fetcher.key_list;
|
|
1584
|
+
Fetcher.nameList = Fetcher.name_list;
|
|
1585
|
+
|
|
1586
|
+
var useFetcher = function useFetcher() {
|
|
1587
|
+
var fetcher = reactExports.useRef(new Fetcher());
|
|
1588
|
+
return fetcher.current;
|
|
1589
|
+
};
|
|
1590
|
+
|
|
1591
|
+
var _getDataFromWindow = function _getDataFromWindow(name) {
|
|
1592
|
+
try {
|
|
1593
|
+
if (window != undefined) {
|
|
1594
|
+
var ssr_data = window.__CONTEXT.ssr_data;
|
|
1595
|
+
if (ssr_data != undefined) {
|
|
1596
|
+
if (ssr_data[name] != undefined) {
|
|
1597
|
+
return ssr_data[name];
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
} catch (e) {}
|
|
1602
|
+
return undefined;
|
|
1603
|
+
};
|
|
1604
|
+
var getSsrDataFromContext = function getSsrDataFromContext(context, name) {
|
|
1605
|
+
var data = undefined;
|
|
1606
|
+
if ((context == null ? void 0 : context.ssr_data) != undefined && (context == null ? void 0 : context.ssr_data[name]) != undefined) {
|
|
1607
|
+
data = context.ssr_data[name];
|
|
1608
|
+
} else {
|
|
1609
|
+
var wdata = _getDataFromWindow(name);
|
|
1610
|
+
if (wdata != undefined) {
|
|
1611
|
+
data = wdata;
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
return data;
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1617
|
+
var useSsrData = function useSsrData(context, name, defval) {
|
|
1618
|
+
var ssrDataFromContext = getSsrDataFromContext(context, name);
|
|
1619
|
+
var _useState = reactExports.useState(ssrDataFromContext != undefined ? ssrDataFromContext : defval),
|
|
1620
|
+
ssrData = _useState[0],
|
|
1621
|
+
setSsrData = _useState[1];
|
|
1622
|
+
return [ssrData, setSsrData];
|
|
1623
|
+
};
|
|
1624
|
+
|
|
1625
|
+
var useSsrDataOrReload = function useSsrDataOrReload(context, name, defval, loader) {
|
|
1626
|
+
var ssrDataFromContext = getSsrDataFromContext(context, name);
|
|
1627
|
+
var _useState = reactExports.useState(ssrDataFromContext != undefined ? ssrDataFromContext : defval),
|
|
1628
|
+
ssrData = _useState[0],
|
|
1629
|
+
setSsrData = _useState[1];
|
|
1630
|
+
var _useState2 = reactExports.useState(ssrDataFromContext == undefined),
|
|
1631
|
+
needToRefresh = _useState2[0],
|
|
1632
|
+
setNeedToRefresh = _useState2[1];
|
|
1633
|
+
var refreshSsrData = reactExports.useCallback(function () {
|
|
1634
|
+
function fetchData() {
|
|
1635
|
+
return _fetchData.apply(this, arguments);
|
|
1636
|
+
}
|
|
1637
|
+
function _fetchData() {
|
|
1638
|
+
_fetchData = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1639
|
+
var nSsrData;
|
|
1640
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1641
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1642
|
+
case 0:
|
|
1643
|
+
if (!(loader != undefined)) {
|
|
1644
|
+
_context.next = 5;
|
|
1645
|
+
break;
|
|
1646
|
+
}
|
|
1647
|
+
_context.next = 3;
|
|
1648
|
+
return loader();
|
|
1649
|
+
case 3:
|
|
1650
|
+
nSsrData = _context.sent;
|
|
1651
|
+
setSsrData(nSsrData);
|
|
1652
|
+
case 5:
|
|
1653
|
+
case "end":
|
|
1654
|
+
return _context.stop();
|
|
1655
|
+
}
|
|
1656
|
+
}, _callee);
|
|
1657
|
+
}));
|
|
1658
|
+
return _fetchData.apply(this, arguments);
|
|
1659
|
+
}
|
|
1660
|
+
fetchData();
|
|
1661
|
+
}, [loader]);
|
|
1662
|
+
reactExports.useEffect(function () {
|
|
1663
|
+
try {
|
|
1664
|
+
if (needToRefresh) {
|
|
1665
|
+
setNeedToRefresh(false);
|
|
1666
|
+
refreshSsrData();
|
|
1667
|
+
}
|
|
1668
|
+
} catch (e) {}
|
|
1669
|
+
}, [needToRefresh, refreshSsrData]);
|
|
1670
|
+
return [ssrData, setSsrData, refreshSsrData];
|
|
1671
|
+
};
|
|
1672
|
+
|
|
1673
|
+
exports.AppBrowser = AppBrowser;
|
|
1674
|
+
exports.AppServer = AppServer;
|
|
1675
|
+
exports.useFetcher = useFetcher;
|
|
1676
|
+
exports.useSsrData = useSsrData;
|
|
1677
|
+
exports.useSsrDataOrReload = useSsrDataOrReload;
|
|
1678
|
+
exports.withContext = withContext;
|
|
1679
|
+
|
|
1680
|
+
return exports;
|
|
1688
1681
|
|
|
1689
1682
|
})({});
|
|
1690
1683
|
//# sourceMappingURL=miolo.cli-react.iife.bundle.js.map
|