729.1ca8652d7889185a.js
62.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
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
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[729, 1831, 1964, 9116], {
8640: (e, t, r) => {
"use strict";
r.d(t, {
$: () => o
});
var a = r(25771),
n = r(87163),
i = r(88355),
l = r(37703),
s = r(51529);
let o = (0, n.forwardRef)((e, t) => {
var r, n;
let {
className: o,
style: d,
children: c,
type: u = "primary",
size: h = "middle",
shape: p = "default",
icon: g,
iconPosition: m = "start",
iconOpacity: f = !0,
loading: x,
disabled: b,
stopPropagation: v = !0,
onClick: w,
href: y,
target: k,
ring: _ = !1,
...j
} = e;
return (0, a.jsxs)("button", {
...j,
ref: t,
type: "button",
className: (0, s.cn)("group/button relative flex items-center justify-center border-0 font-medium text-nowrap outline-none select-none", "gradient" === u ? "bg-create text-text-white-primary" : "secondary" === u ? "bg-button-secondary-normal text-text-white-secondary border-border-secondary border-t border-solid backdrop-blur-[32px]" : "bg-button-primary-normal text-text-grey-dark-primary", x || b ? "" : "secondary" === u ? "hover:bg-button-secondary-hover hover:text-text-white-primary" : "primary" === u ? "hover:bg-button-primary-hover" : "", "small" === h ? "h-8 gap-1.5 text-xs" : "large" === h ? "h-12 gap-3 text-base" : "h-10 gap-2.5 text-sm", c ? "small" === h ? "px-2" : "large" === h ? "px-6" : "px-4" : "aspect-square", "round" === p ? "rounded-full" : "small" === h ? "rounded-[8px]" : "large" === h ? "rounded-lg" : "rounded-[10px]", "start" === m ? "flex-row" : "flex-row-reverse", x || b ? "cursor-not-allowed opacity-50" : "cursor-pointer", o),
style: d,
onClick: e => {
if (v && e.stopPropagation(), !x && !b) {
if (y) return "_blank" === k ? void window.open(y, k) : void(window.location.href = y);
null == w || w(e)
}
},
children: [_ ? (0, a.jsx)("span", {
"aria-hidden": !0,
className: "pointer-events-none",
style: {
position: "absolute",
inset: 0,
zIndex: 0,
borderRadius: (r = p, n = h, "round" === r ? 9999 : "small" === n ? 8 : "large" === n ? 12 : 10),
padding: .95,
boxSizing: "border-box",
background: "linear-gradient(133.79deg, rgba(255, 255, 255, 0.9) -7.85%, rgba(255, 255, 255, 0.358468) 9.73%, rgba(255, 255, 255, 0) 84.96%, rgba(255, 255, 255, 0.9) 100.63%)",
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
maskImage: "linear-gradient(#fff 0 0), linear-gradient(#fff 0 0)",
maskComposite: "exclude",
pointerEvents: "none"
}
}) : null, g || x ? (0, a.jsx)("span", {
className: (0, i.A)("relative z-10 shrink-0", !(x || b) && f && "secondary" === u ? "opacity-60 group-hover/button:opacity-100" : "", "small" === h ? "text-lg" : "large" === h ? "text-2xl" : "text-xl"),
children: x ? (0, a.jsx)(l.z, {
className: "animate-spin"
}) : g
}) : null, c ? (0, a.jsx)("div", {
className: "relative z-10 flex h-full shrink-0 items-center justify-center",
children: c
}) : null]
})
})
},
9116: (e, t, r) => {
"use strict";
r.d(t, {
P5: () => c,
Pp: () => d,
oh: () => u
});
var a = r(31964);
let n = null,
i = null,
l = new Set,
s = new Set,
o = e => {
let {
targetRoute: t,
trigger: r,
kind: n,
status: i,
cacheHit: l
} = e, o = "".concat(r, ":").concat(t, ":").concat(n, ":").concat(i);
s.has(o) || (s.add(o), (0, a.Yc)("realtime_entry_prefetch", {
prefetch_trigger: r,
prefetch_kind: n,
prefetch_status: i,
prefetch_cache_hit: l,
target_route: t,
target_module: (e => e.startsWith("/world-play") ? "WorldPlayRealtime" : e.startsWith("/preset-config") ? "RealtimeVideo" : "")(t)
}))
},
d = function(e) {
let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "unknown";
if (!e) return Promise.resolve();
if (e.startsWith("/world-play")) {
let a = !!n;
return (o({
targetRoute: e,
trigger: t,
kind: "module",
status: a ? "hit" : "started",
cacheHit: a
}), a) ? n || Promise.resolve() : (!n && (n = Promise.all([r.e(5390), r.e(6953), r.e(2699), r.e(3), r.e(1573), r.e(980), r.e(7173), r.e(5833), r.e(2728), r.e(5588), r.e(4611), r.e(1981), r.e(109), r.e(4617), r.e(445), r.e(4397), r.e(4233), r.e(7027), r.e(3474), r.e(1298), r.e(2321), r.e(7956), r.e(8917), r.e(1459), r.e(824), r.e(5278), r.e(7328), r.e(3809), r.e(4823), r.e(8948), r.e(314), r.e(3144), r.e(2241), r.e(5094), r.e(8858), r.e(4732), r.e(2245), r.e(1831)]).then(r.bind(r, 22245))), n).then(() => {
o({
targetRoute: e,
trigger: t,
kind: "module",
status: "success",
cacheHit: !1
})
}).catch(r => {
throw n = null, o({
targetRoute: e,
trigger: t,
kind: "module",
status: "error",
cacheHit: !1
}), r
})
}
if (e.startsWith("/preset-config")) {
let a = !!i;
return (o({
targetRoute: e,
trigger: t,
kind: "module",
status: a ? "hit" : "started",
cacheHit: a
}), a) ? i || Promise.resolve() : (!i && (i = Promise.all([r.e(5390), r.e(6953), r.e(2699), r.e(3), r.e(1573), r.e(980), r.e(7173), r.e(5833), r.e(2728), r.e(5588), r.e(4611), r.e(1981), r.e(109), r.e(4617), r.e(445), r.e(4397), r.e(4233), r.e(7027), r.e(3474), r.e(1298), r.e(2321), r.e(7956), r.e(8917), r.e(1459), r.e(824), r.e(5278), r.e(7328), r.e(3809), r.e(4823), r.e(8948), r.e(314), r.e(3144), r.e(2241), r.e(5094), r.e(8858), r.e(4732), r.e(5929), r.e(1503), r.e(8329), r.e(2957), r.e(6422), r.e(5577), r.e(984), r.e(6733), r.e(4644)]).then(r.bind(r, 22957))), i).then(() => {
o({
targetRoute: e,
trigger: t,
kind: "module",
status: "success",
cacheHit: !1
})
}).catch(r => {
throw i = null, o({
targetRoute: e,
trigger: t,
kind: "module",
status: "error",
cacheHit: !1
}), r
})
}
return Promise.resolve()
},
c = function(e, t) {
let r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "unknown";
if (!t) return;
let a = l.has(t);
try {
a || (l.add(t), e.prefetch(t)), o({
targetRoute: t,
trigger: r,
kind: "route_module",
status: a ? "hit" : "started",
cacheHit: a
})
} catch (e) {}
d(t, r).catch(() => {})
},
u = function(e) {
let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "desktop_idle";
return (e => {
let t = window;
if ("function" == typeof t.requestIdleCallback) {
let r = t.requestIdleCallback(e, {
timeout: 1200
});
return () => {
var e;
return null == (e = t.cancelIdleCallback) ? void 0 : e.call(t, r)
}
}
let r = globalThis.setTimeout(e, 0);
return () => globalThis.clearTimeout(r)
})(() => {
d(e, t).catch(() => {})
})
}
},
10915: (e, t, r) => {
"use strict";
r.d(t, {
Bc: () => l,
ZI: () => d,
k$: () => o,
m_: () => s
});
var a = r(25771);
r(87163);
var n = r(43423),
i = r(51529);
function l(e) {
let {
delayDuration: t = 0,
...r
} = e;
return (0, a.jsx)(n.Kq, {
"data-slot": "tooltip-provider",
delayDuration: t,
...r
})
}
function s(e) {
let {
...t
} = e;
return (0, a.jsx)(l, {
children: (0, a.jsx)(n.bL, {
"data-slot": "tooltip",
...t
})
})
}
function o(e) {
let {
...t
} = e;
return (0, a.jsx)(n.l9, {
"data-slot": "tooltip-trigger",
...t
})
}
function d(e) {
let {
className: t,
sideOffset: r = 0,
children: l,
...s
} = e;
return (0, a.jsx)(n.ZL, {
children: (0, a.jsxs)(n.UC, {
"data-slot": "tooltip-content",
sideOffset: r,
className: (0, i.cn)("animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) px-3 py-1.5", "bg-background-alpha-primary rounded-[8px] border border-white/10 text-xs text-wrap text-white backdrop-blur-[400px]", "shadow-[0px_8px_12px_0px_rgba(0,0,0,0.4)]", t),
...s,
children: [l, (0, a.jsx)(n.i3, {
className: (0, i.cn)("z-50 size-2.5 translate-y-[calc(-50%)] rotate-45", "bg-background-alpha-primary fill-background-alpha-primary text-background-alpha-primary", "invisible")
})]
})
})
}
},
15266: (e, t, r) => {
"use strict";
function a(e) {
if (!e) return "***";
let t = String(e);
if (t.length <= 8) return "***";
let r = t.substring(0, 4),
a = t.substring(t.length - 4);
return "".concat(r, "***").concat(a)
}
r.d(t, {
Y: () => a
})
},
15388: (e, t, r) => {
"use strict";
r.d(t, {
Pn: () => a,
Uk: () => n
});
let a = 640,
n = () => window.innerWidth <= a
},
21831: (e, t, r) => {
"use strict";
r.d(t, {
Iz: () => l,
PN: () => s,
YH: () => o,
f1: () => i
});
let a = "world_play_preset_cache",
n = "world_play_ended_preset_id",
i = e => {
try {
let t = window.sessionStorage.getItem(a),
r = t ? JSON.parse(t) : {};
r[String(e.id)] = {
cachedAt: Date.now(),
preset: e
}, window.sessionStorage.setItem(a, JSON.stringify(r))
} catch (e) {}
},
l = e => {
try {
let t = window.sessionStorage.getItem(a);
if (!t) return null;
let r = JSON.parse(t)[String(e)];
if (!r || Date.now() - r.cachedAt > 3e5) return null;
return r.preset
} catch (e) {
return null
}
},
s = e => {
if (e) try {
window.sessionStorage.setItem(n, String(e))
} catch (e) {}
},
o = e => {
if (!e) return !1;
try {
return window.sessionStorage.getItem(n) === String(e)
} catch (e) {
return !1
}
}
},
29112: (e, t, r) => {
"use strict";
r.d(t, {
a: () => i
});
var a = r(87163),
n = r(15388);
let i = () => {
let [e, t] = (0, a.useState)(n.Uk);
return (0, a.useEffect)(() => {
let e = window.matchMedia("(max-width: ".concat(n.Pn, "px)")),
r = e => t(e.matches);
return t(e.matches), e.addEventListener("change", r), () => {
e.removeEventListener("change", r)
}
}, []), e
}
},
31153: (e, t, r) => {
"use strict";
r.d(t, {
F: () => l
});
var a = r(25771),
n = r(57425);
let i = {
body: '<path d="M2 12H22M2 12C2 17.5228 6.47715 22 12 22M2 12C2 6.47715 6.47715 2 12 2M22 12C22 17.5228 17.5228 22 12 22M22 12C22 6.47715 17.5228 2 12 2M12 22C14.5013 19.2616 15.9228 15.708 16 12C15.9228 8.29203 14.5013 4.73835 12 2M12 22C9.49872 19.2616 8.07725 15.708 8 12C8.07725 8.29203 9.49872 4.73835 12 2" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>',
viewBox: {
left: 0,
top: 0,
width: 24,
height: 24
},
left: 0,
top: 0,
width: 24,
height: 24
},
l = e => (0, a.jsx)(n.In, {
...e,
icon: i
})
},
31964: (e, t, r) => {
"use strict";
r.d(t, {
$S: () => c,
Yc: () => p,
c4: () => u,
k4: () => g,
re: () => h
});
var a = r(15266),
n = r(22199);
let i = "realtime_launch_trace",
l = () => {
var e;
return (null == (e = window.crypto) ? void 0 : e.randomUUID) ? window.crypto.randomUUID() : "".concat(Date.now().toString(36), "-").concat(Math.random().toString(36).slice(2, 10))
},
s = e => ({
...e,
launchMode: e.launchMode || "unknown",
entrySource: e.entrySource || "unknown"
}),
o = () => {
try {
let e = window.sessionStorage.getItem(i);
if (!e) return null;
let t = JSON.parse(e);
if (!t.launchTraceId || !t.startedAt) return null;
if (Date.now() - t.startedAt > 18e5) return window.sessionStorage.removeItem(i), null;
return s(t)
} catch (e) {
return null
}
},
d = e => {
try {
window.sessionStorage.setItem(i, JSON.stringify(s(e)))
} catch (e) {}
},
c = e => {
let t = o();
if (!t) return null;
let r = s({
...t,
...e
});
return d(r), r
},
u = function() {
var e;
let t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
r = o();
if (r) return c(t) || r;
let a = s({
launchTraceId: l(),
startedAt: Date.now(),
launchMode: t.launchMode || "unknown",
entrySource: t.entrySource || "unknown",
targetRoute: t.targetRoute,
pipeline: t.pipeline,
presetId: t.presetId,
reservationId: t.reservationId
});
return d(a), p("realtime_entry_click", {
pipeline: a.pipeline || "default",
preset_id: null != (e = a.presetId) ? e : "",
fallback_entry: !0
}), a
},
h = () => (e => {
var t;
return e ? {
launch_trace_id: e.launchTraceId,
launch_mode: e.launchMode,
entry_source: e.entrySource,
target_route: e.targetRoute || "",
launch_pipeline: e.pipeline || "",
launch_preset_id: null != (t = e.presetId) ? t : "",
launch_reservation_id: e.reservationId ? (0, a.Y)(e.reservationId) : "",
launch_elapsed_ms: Date.now() - e.startedAt
} : {
launch_trace_id: "",
launch_mode: "unknown",
entry_source: "unknown",
target_route: "",
launch_pipeline: "",
launch_preset_id: "",
launch_reservation_id: "",
launch_elapsed_ms: null
}
})(o()),
p = function(e) {
let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
r = arguments.length > 2 ? arguments[2] : void 0;
(0, n.Zp)(e, {
...h(),
...t
}, r)
},
g = function() {
var e;
let t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
r = s({
launchTraceId: l(),
startedAt: Date.now(),
launchMode: t.launchMode || "unknown",
entrySource: t.entrySource || "unknown",
targetRoute: t.targetRoute,
pipeline: t.pipeline,
presetId: t.presetId,
reservationId: t.reservationId
});
return d(r), p("realtime_entry_click", {
pipeline: r.pipeline || "default",
preset_id: null != (e = r.presetId) ? e : ""
}), r
}
},
37703: (e, t, r) => {
"use strict";
r.d(t, {
z: () => l
});
var a = r(25771);
r(87163);
var n = r(57425);
let i = {
body: '<g fill="none"><circle cx="12" cy="12" r="7.2" stroke="#fff" stroke-opacity=".3" stroke-width="1.6"/><path stroke="url(#svgID0)" stroke-linecap="round" stroke-width="1.6" d="M17.527 16.615A7.2 7.2 0 1110.4 4.98"/><defs><radialGradient id="svgID0" cx="0" cy="0" r="1" gradientTransform="rotate(236.768 13.43 3.337)scale(13.8679 14.6895)" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" stop-opacity="0"/><stop offset="1" stop-color="#fff"/></radialGradient></defs></g>',
viewBox: {
left: 0,
top: 0,
width: 24,
height: 24
},
left: 0,
top: 0,
width: 24,
height: 24
},
l = e => {
let {
className: t = "",
...r
} = e;
return (0, a.jsx)("div", {
className: t,
style: {
height: "1em",
aspectRatio: 1
},
children: (0, a.jsx)(n.In, {
...r,
icon: i,
height: "1em"
})
})
}
},
49999: e => {
e.exports = {
trigger: "SidebarLanguageSwitcher_trigger__XpTHq",
menu: "SidebarLanguageSwitcher_menu__6JYHd",
"sidebar-language-menu-enter": "SidebarLanguageSwitcher_sidebar-language-menu-enter__b0_Oz",
menuHeader: "SidebarLanguageSwitcher_menuHeader__WKQVt",
menuHeaderIcon: "SidebarLanguageSwitcher_menuHeaderIcon__EBnRd",
menuHeaderCopy: "SidebarLanguageSwitcher_menuHeaderCopy__yFjCA",
option: "SidebarLanguageSwitcher_option__bucAj",
optionSelected: "SidebarLanguageSwitcher_optionSelected__ZSp3B",
optionCode: "SidebarLanguageSwitcher_optionCode__qq6al"
}
},
53215: (e, t, r) => {
"use strict";
r.d(t, {
m: () => l
});
var a = r(25771),
n = r(88355),
i = r(10915);
let l = e => {
let {
children: t,
content: r,
contentClassName: l,
side: s,
sideOffset: o
} = e;
return (0, a.jsxs)(i.m_, {
children: [(0, a.jsx)(i.k$, {
asChild: !0,
children: t
}), (0, a.jsx)(i.ZI, {
className: (0, n.$)(l),
side: s,
sideOffset: o,
children: r
})]
})
}
},
60876: (e, t, r) => {
"use strict";
r.r(t), r.d(t, {
AppNavigationShell: () => q
});
var a = r(25771),
n = r(88355),
i = r(35104),
l = r(29112),
s = r(87163),
o = r(85151),
d = r(57425),
c = r(51529);
let u = {
body: '<path xmlns="http://www.w3.org/2000/svg" d="M10.394 3.14844C11.4148 3.14844 12.3544 3.7064 12.8433 4.60254C12.8485 4.61216 12.8542 4.62194 12.8589 4.63184L13.7183 6.43848H17.4546C18.9952 6.43865 20.2436 7.68794 20.2437 9.22852V10.6602C20.2436 10.9893 19.9771 11.2567 19.6479 11.2568C19.3187 11.2567 19.0513 10.9894 19.0513 10.6602V9.22852C19.0512 8.34661 18.3365 7.63201 17.4546 7.63184H4.34229V17.4541C4.34253 18.3359 5.05719 19.0507 5.93896 19.0508H11.9712C12.3004 19.051 12.5669 19.3182 12.5669 19.6475C12.5667 19.9765 12.3002 20.243 11.9712 20.2432H5.93896C4.39851 20.243 3.14917 18.9946 3.14893 17.4541V5.93848C3.14894 4.39785 4.39837 3.14857 5.93896 3.14844H10.394ZM5.93896 4.3418C5.05705 4.34193 4.3423 5.05654 4.34229 5.93848V6.43848H12.3979L11.7935 5.16895C11.5129 4.65885 10.9766 4.3418 10.394 4.3418H5.93896Z" fill="currentColor"/><path xmlns="http://www.w3.org/2000/svg" d="M18.5715 15.7467C18.6159 15.5949 18.8309 15.5949 18.8753 15.7467L19.1602 16.7206C19.3811 17.4762 19.972 18.0672 20.7277 18.2881L21.7016 18.573C21.8534 18.6174 21.8534 18.8324 21.7016 18.8768L20.7277 19.1616C19.972 19.3826 19.3811 19.9735 19.1602 20.7292L18.8753 21.7031C18.8309 21.8549 18.6159 21.8549 18.5715 21.7031L18.2867 20.7292C18.0657 19.9735 17.4748 19.3826 16.7191 19.1616L15.7452 18.8768C15.5934 18.8324 15.5934 18.6174 15.7452 18.573L16.7191 18.2881C17.4748 18.0672 18.0657 17.4762 18.2867 16.7206L18.5715 15.7467Z" fill="currentColor"/>',
viewBox: {
left: 0,
top: 0,
width: 24,
height: 24
},
left: 0,
top: 0,
width: 24,
height: 24
},
h = {
body: '<circle xmlns="http://www.w3.org/2000/svg" cx="12" cy="12.002" r="8.37692" fill="none" stroke="currentColor" stroke-width="1.24615"/><path xmlns="http://www.w3.org/2000/svg" d="M3.09242 16.2246C2.50594 17.0119 1.58117 18.5948 2.4257 19.2246C3.48137 20.0119 8.40722 17.9516 8.75911 17.5579" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/><path xmlns="http://www.w3.org/2000/svg" d="M10.4194 16.724L11.7528 15.724M18.7528 4.38795C19.7528 3.72227 21.4846 3.86103 21.7593 4.55311C22.7528 7.05664 18.0861 11.724 13.7528 14.3906" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>',
viewBox: {
left: 0,
top: 0,
width: 24,
height: 24
},
left: 0,
top: 0,
width: 24,
height: 24
},
p = {
body: '\n<path d="M11.4414 2.5L12.9816 6.11783C13.9648 8.4273 15.8734 10.2172 18.2412 11.0501L20.9414 12L18.2412 12.9498C15.8734 13.7828 13.9648 15.5726 12.9816 17.8821L11.4414 21.4999L9.90125 17.8821C8.91807 15.5726 7.00942 13.7828 4.64161 12.9498L1.94141 12L4.64161 11.0501C7.00942 10.2172 8.91807 8.4273 9.90125 6.11783L11.4414 2.5Z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>\n<path d="M20.1738 16.4137C20.2459 16.2191 20.5211 16.2191 20.5931 16.4137L20.7814 16.9227C21.0078 17.5345 21.4903 18.0169 22.1021 18.2433L22.6111 18.4316C22.8057 18.5037 22.8057 18.7789 22.6111 18.8509L22.1021 19.0392C21.4903 19.2656 21.0078 19.748 20.7814 20.3599L20.5931 20.8689C20.5211 21.0635 20.2459 21.0635 20.1738 20.8689L19.9855 20.3599C19.7591 19.748 19.2767 19.2656 18.6649 19.0392L18.1559 18.8509C17.9613 18.7789 17.9613 18.5037 18.1559 18.4316L18.6649 18.2433C19.2767 18.0169 19.7591 17.5345 19.9855 16.9227L20.1738 16.4137Z" fill="currentColor"/>\n',
viewBox: {
left: 0,
top: 0,
width: 24,
height: 24
},
left: 0,
top: 0,
width: 24,
height: 24
};
var g = r(69214),
m = r(71146),
f = r(25781);
let x = [{
key: "gallery",
labelKey: "navigation.gallery",
icon: (0, a.jsx)(e => {
let {
className: t = "",
...r
} = e;
return (0, a.jsx)("div", {
className: (0, c.cn)(t),
style: {
height: "1em",
aspectRatio: 1
},
children: (0, a.jsx)(d.In, {
...r,
icon: h,
height: "1em"
})
})
}, {
className: "text-3xl"
}),
path: "/discover/gallery",
handleClick: (e, t) => {
t.push("/discover/gallery")
},
isActive: e => e.startsWith("/discover/gallery")
}, {
key: "generate",
labelKey: "navigation.create",
icon: (0, a.jsx)(e => {
let {
className: t = "",
...r
} = e;
return (0, a.jsx)("div", {
className: (0, c.cn)(t),
style: {
height: "1em",
aspectRatio: 1
},
children: (0, a.jsx)(d.In, {
...r,
icon: p,
height: "1em"
})
})
}, {
className: "text-3xl"
}),
path: "/generate/",
handleClick: (e, t) => {
t.push("/generate/")
},
isActive: e => e.startsWith("/generate")
}, {
key: "history",
labelKey: "navigation.mine",
icon: (0, a.jsx)(e => {
let {
className: t = "",
...r
} = e;
return (0, a.jsx)("div", {
className: (0, c.cn)(t),
style: {
height: "1em",
aspectRatio: 1
},
children: (0, a.jsx)(d.In, {
...r,
icon: u,
height: "1em"
})
})
}, {
className: "text-3xl"
}),
path: "/discover/history/worlds",
pathMatch: e => e.startsWith("/discover/history"),
handleClick: (e, t) => {
let r = f.kH.getState().userInfo;
if (!r.loading) return r.accountId ? t.push("/discover/history/worlds") : void(0, m.jL)("/generate/")
},
isActive: e => e.startsWith("/discover/history")
}],
b = () => {
let {
t: e
} = (0, o.Bd)(), {
userInfo: t
} = (0, f.kH)(), r = (0, g.kE)(), a = (0, i.usePathname)(), n = (0, s.useMemo)(() => x.map(t => ({
...t,
label: e(t.labelKey),
badgeLabel: t.badgeLabelKey ? e(t.badgeLabelKey) : void 0
})), [e]), l = (0, s.useMemo)(() => n.filter(e => "invite" !== e.key), [n]), d = (0, s.useCallback)(e => {
if (!(e.pathMatch && e.pathMatch(window.location.pathname))) e.path !== window.location.pathname && e.handleClick(t, r)
}, [r, t]), c = (0, s.useMemo)(() => n.find(e => e.isActive(a)), [n, a]);
return {
options: n,
mobileOptions: l,
handleOptionClick: d,
activeOption: c
}
};
var v = r(34438);
let w = {
duration: .32,
ease: [.4, 0, .2, 1]
},
y = e => {
let {
icon: t,
label: r,
isActive: i,
badge: l,
variant: s = "sidebar",
onClick: o
} = e, d = "sidebar" === s;
return (0, a.jsxs)("button", {
type: "button",
"aria-current": i ? "page" : void 0,
className: (0, n.$)("font-inherit relative flex cursor-pointer appearance-none flex-col items-center justify-center gap-[2px] border-0 bg-transparent p-0 text-inherit transition-colors hover:text-white", d ? "h-[68px] w-[90px]" : "min-w-14 px-1 py-0", i ? "text-white" : "text-text-white-secondary"),
onClick: o,
children: [d ? (0, a.jsx)(v.P.span, {
"aria-hidden": !0,
className: "pointer-events-none absolute right-0 bottom-0 left-0 h-px origin-center",
style: {
backgroundImage: "linear-gradient(270deg, #000000 0%, #F9F9F9 49.44%, #000000 100%)"
},
initial: !1,
animate: {
opacity: +!!i,
scaleX: +!!i
},
transition: w
}) : null, (0, a.jsx)("span", {
className: "flex size-6 items-center justify-center text-2xl leading-none *:text-2xl! *:leading-none!",
children: t
}), l, (0, a.jsx)("span", {
className: "text-[14px] leading-[18px] font-normal",
children: r
})]
})
},
k = e => {
let {
label: t = "New",
className: r
} = e;
return (0, a.jsxs)("span", {
"aria-hidden": !0,
className: (0, n.$)("pointer-events-none absolute flex h-[17px] w-7 items-center justify-center overflow-visible rounded-[5px] bg-[linear-gradient(108deg,#ff6a58_0%,#f055c8_48%,#7657ff_100%)] shadow-[0_2px_6px_rgba(224,70,164,0.35)]", r),
children: [(0, a.jsx)("span", {
"aria-hidden": !0,
className: "absolute bottom-[-2px] left-[4px] h-1 w-1.5 bg-[#ff6a58] [clip-path:polygon(0_0,100%_0,0_100%)]"
}), (0, a.jsx)("span", {
className: "relative z-10 text-[9px] leading-none font-black text-white italic",
children: t
})]
})
},
_ = ["/discover", "/generate"],
j = e => _.some(t => e.startsWith(t)),
C = () => {
let e = (0, i.usePathname)(),
t = (0, l.a)(),
{
mobileOptions: r,
handleOptionClick: s
} = b(),
o = j(e);
return t && o ? (0, a.jsxs)(a.Fragment, {
children: [(0, a.jsx)("div", {
className: (0, n.$)("fixed right-0 bottom-0 left-0 z-1001 flex items-center justify-around bg-black/60 py-2 text-xs text-white backdrop-blur-md", "pb-[env(safe-area-inset-bottom)]"),
children: r.map(t => {
let r = t.isActive(e);
return (0, a.jsx)(y, {
variant: "footer",
icon: t.icon,
label: t.label,
isActive: r,
badge: t.badgeLabel ? (0, a.jsx)(k, {
label: t.badgeLabel,
className: "-top-1 left-[calc(50%+8px)]"
}) : void 0,
onClick: () => s(t)
}, t.key || t.label)
})
}), (0, a.jsx)("div", {
"aria-hidden": !0,
className: "mt-auto h-[calc(58px+env(safe-area-inset-bottom))] shrink-0"
})]
}) : null
};
var L = r(96187),
N = r(53215),
S = r(49855),
I = r(11866),
M = r(31153),
H = r(44412),
E = r(45413),
R = r(21912),
P = r(49999),
W = r.n(P);
let z = {
cn: {
label: "简体中文",
shortLabel: "CN"
},
en: {
label: "English",
shortLabel: "EN"
},
hi: {
label: "हिन्दी",
shortLabel: "HI"
},
pt: {
label: "Portugu\xeas",
shortLabel: "PT"
},
id: {
label: "Bahasa Indonesia",
shortLabel: "ID"
},
vi: {
label: "Tiếng Việt",
shortLabel: "VI"
},
ru: {
label: "Русский",
shortLabel: "RU"
},
ja: {
label: "日本語",
shortLabel: "JA"
},
de: {
label: "Deutsch",
shortLabel: "DE"
},
tr: {
label: "T\xfcrk\xe7e",
shortLabel: "TR"
},
es: {
label: "Espa\xf1ol",
shortLabel: "ES"
},
fr: {
label: "Fran\xe7ais",
shortLabel: "FR"
},
th: {
label: "ไทย",
shortLabel: "TH"
},
ko: {
label: "한국어",
shortLabel: "KO"
}
},
A = E.Q ? ["cn"] : [...R.Hg],
K = e => "cn" === e ? "zh-CN" : "pt" === e ? "pt-BR" : e,
B = () => {
let {
i18n: e,
t
} = (0, o.Bd)(), r = (0, f.kH)(e => {
let {
userInfo: t
} = e;
return !t.loading && !t.error && t.isHomeWhitelist
}), [i, l] = (0, s.useState)(!1), [d, c] = (0, s.useState)(!1), [u, h] = (0, s.useState)({
bottom: 12,
left: 104,
maxHeight: 480
}), p = (0, s.useRef)(null), g = (0, s.useRef)(null), m = A.includes(e.resolvedLanguage) ? e.resolvedLanguage : E.Q ? "cn" : "en";
(0, s.useEffect)(() => {
if (!i) return;
let e = e => {
var t, r;
let a = e.target;
(null == (t = p.current) ? void 0 : t.contains(a)) || (null == (r = g.current) ? void 0 : r.contains(a)) || l(!1)
},
t = e => {
"Escape" === e.key && l(!1)
};
return document.addEventListener("pointerdown", e), document.addEventListener("keydown", t), () => {
document.removeEventListener("pointerdown", e), document.removeEventListener("keydown", t)
}
}, [i]);
let x = (0, s.useCallback)(() => {
let e = p.current;
if (!e) return;
let t = e.getBoundingClientRect(),
r = Math.min(window.innerHeight - 12, t.bottom);
h({
bottom: window.innerHeight - r,
left: Math.min(t.right + 12, window.innerWidth - 208 - 12),
maxHeight: Math.min(420, Math.max(180, r - 12))
})
}, []);
(0, s.useLayoutEffect)(() => {
if (i) return x(), window.addEventListener("resize", x), () => window.removeEventListener("resize", x)
}, [i, x]), (0, s.useEffect)(() => {
let e = g.current;
if (!i || !e) return;
let t = t => {
t.stopPropagation();
let r = e.scrollTop <= 0,
a = e.scrollTop + e.clientHeight >= e.scrollHeight - 1;
(t.deltaY < 0 && r || t.deltaY > 0 && a) && t.preventDefault()
};
return e.addEventListener("wheel", t, {
passive: !1
}), () => e.removeEventListener("wheel", t)
}, [i]);
let b = (0, s.useCallback)(async t => {
if (l(!1), t !== m && !E.Q) {
c(!0);
try {
if ("en" !== t && "cn" !== t && !e.hasResourceBundle(t, "translation")) {
let r = await (0, H.W)(t);
e.addResourceBundle(t, "translation", r)
}
try {
window.localStorage.setItem(R.NK, t)
} catch (e) {}
await e.changeLanguage(t), document.documentElement.lang = K(t)
} finally {
c(!1)
}
}
}, [e, m]),
v = i ? (0, a.jsxs)("div", {
"aria-label": t("home.nav.language"),
className: W().menu,
id: "sidebar-language-menu",
ref: g,
role: "listbox",
style: u,
children: [(0, a.jsxs)("div", {
className: W().menuHeader,
role: "presentation",
children: [(0, a.jsx)("span", {
className: W().menuHeaderIcon,
"aria-hidden": "true",
children: (0, a.jsx)(M.F, {})
}), (0, a.jsxs)("span", {
className: W().menuHeaderCopy,
children: [(0, a.jsx)("strong", {
children: t("home.nav.language")
}), (0, a.jsx)("span", {
children: t("home.nav.selectLanguage")
})]
})]
}), A.map(e => {
let t = e === m;
return (0, a.jsxs)("button", {
"aria-selected": t,
className: (0, n.$)(W().option, t && W().optionSelected),
lang: K(e),
onClick: () => void b(e),
role: "option",
type: "button",
children: [(0, a.jsx)("span", {
children: z[e].label
}), (0, a.jsx)("span", {
className: W().optionCode,
children: z[e].shortLabel
})]
}, e)
})]
}) : null;
return r ? (0, a.jsxs)(a.Fragment, {
children: [(0, a.jsx)(N.m, {
content: t("home.nav.selectLanguage"),
contentClassName: "z-1000",
side: "right",
sideOffset: 10,
children: (0, a.jsx)("button", {
"aria-controls": "sidebar-language-menu",
"aria-expanded": i,
"aria-haspopup": "listbox",
"aria-label": t("home.nav.selectLanguage"),
className: (0, n.$)("group flex h-[30px] w-11 cursor-pointer items-center justify-center rounded-sm border", W().trigger),
disabled: d,
onClick: () => l(e => !e),
ref: p,
type: "button",
children: (0, a.jsx)(M.F, {
"aria-hidden": "true",
className: "h-5 w-5 opacity-60 transition-opacity group-hover:opacity-100"
})
})
}), v && "undefined" != typeof document ? (0, I.createPortal)(v, document.body) : null]
}) : null
};
var D = r(99966),
T = r.n(D);
let $ = (0, L.F)(["fixed left-0 z-998", "bottom-0", "w-sidebar", "flex flex-col items-center justify-between"], {
variants: {
background: {
default: "bg-background-primary",
discover: "bg-black/50 backdrop-blur-xl"
},
topPosition: {
default: "top-header",
generate: "top-0 pt-header"
}
},
defaultVariants: {
background: "default"
}
}),
F = () => {
let {
t: e
} = (0, o.Bd)(), t = (0, i.usePathname)(), r = (0, g.kE)(), {
options: d,
handleOptionClick: c
} = b(), u = (0, l.a)(), h = (0, s.useMemo)(() => t.startsWith("/discover") ? "discover" : "default", [t]), p = (0, s.useMemo)(() => j(t), [t]), m = (0, s.useMemo)(() => t.startsWith("/generate") ? "generate" : "default", [t]), f = {
duration: .22,
ease: [.4, 0, .2, 1]
};
return u ? null : (0, a.jsxs)(a.Fragment, {
children: [(0, a.jsxs)(v.P.aside, {
"aria-hidden": !p,
className: (0, n.$)($({
background: h,
topPosition: m
}), !p && "pointer-events-none"),
initial: !1,
animate: p ? {
opacity: 1,
x: 0
} : {
opacity: 0,
x: "-100%"
},
transition: f,
children: [(0, a.jsx)("div", {
className: (0, n.$)("flex flex-col items-center gap-6 pt-6", T().primarySection),
children: d.map(e => {
let r = e.isActive(t),
n = e.key || e.label;
return (0, a.jsx)(y, {
icon: e.icon,
label: e.label,
isActive: r,
badge: e.badgeLabel ? (0, a.jsx)(k, {
label: e.badgeLabel,
className: "top-[15px] left-16"
}) : void 0,
onClick: () => c(e)
}, n)
})
}), (0, a.jsx)("div", {
className: (0, n.$)("flex flex-col items-center", T().utilitySection),
children: (0, a.jsxs)("div", {
className: (0, n.$)("flex flex-col items-center gap-4", T().externalLinks),
children: [(0, a.jsx)(B, {}), S.VQ.map(t => (0, a.jsx)(N.m, {
contentClassName: "z-1000",
content: e(t.labelKey, t.text),
children: (0, a.jsx)("div", {
className: "group flex h-[30px] w-11 cursor-pointer items-center justify-center rounded-sm border",
onClick: () => (e => {
var t;
if (null == (t = e.url) ? void 0 : t.startsWith("http")) return void window.open(e.url, "_blank");
r.push(e.url)
})(t),
children: (0, a.jsx)("span", {
className: "opacity-60 transition-opacity group-hover:opacity-100",
children: t.icon
})
})
}, t.labelKey))]
})
})]
}), (0, a.jsx)(v.P.div, {
"aria-hidden": !0,
className: "shrink-0 overflow-hidden",
initial: !1,
animate: p ? {
width: "var(--spacing-sidebar)"
} : {
width: 0
},
transition: f
})]
})
};
var O = r(8640),
V = r(28858),
U = r(64672);
let Z = (0, L.F)(["fixed top-0 right-0 left-0 z-999", "w-full h-header", " px-4", "flex items-center"], {
variants: {
background: {
default: "",
discover: "bg-background"
}
},
defaultVariants: {
background: "default"
}
}),
Y = () => {
let {
t: e
} = (0, o.Bd)(), t = (0, i.usePathname)(), r = (0, V.kE)(), d = (0, l.a)(), c = (0, s.useMemo)(() => t.startsWith("/discover") || d ? "discover" : "default", [t, d]), u = (0, s.useMemo)(() => j(t), [t]), h = {
duration: .22,
ease: [.4, 0, .2, 1]
};
return (0, a.jsxs)(a.Fragment, {
children: [(0, a.jsxs)(v.P.header, {
"aria-hidden": !u,
className: (0, n.$)(Z({
background: c
}), !u && "pointer-events-none", "flex items-center justify-between"),
initial: !1,
animate: u ? {
opacity: 1,
y: 0
} : {
opacity: 0,
y: "-100%"
},
transition: h,
children: [(0, a.jsx)(U.O, {
redirect: !1,
gradientPrefix: "home",
className: "mr-5",
height: 22
}), d && (0, a.jsx)("div", {
className: "mr-2 flex items-center gap-2",
children: S.VQ.map(t => (0, a.jsx)(O.$, {
"aria-label": e(t.labelKey, t.text),
onClick: () => (e => {
var t;
if (null == (t = e.url) ? void 0 : t.startsWith("http")) return void window.open(e.url, "_blank");
r.push(e.url)
})(t),
type: "secondary",
shape: "round",
className: (0, n.$)("flex cursor-pointer items-center justify-center rounded-full px-2 text-sm font-medium"),
icon: t.icon
}, t.labelKey))
})]
}), (0, a.jsx)(v.P.div, {
"aria-hidden": !0,
className: "overflow-hidden",
initial: !1,
animate: u ? {
height: "var(--spacing-header)"
} : {
height: 0
},
transition: h
})]
})
},
q = e => {
let {
children: t
} = e;
return (0, a.jsxs)("div", {
className: "flex min-h-screen w-full flex-col",
children: [(0, a.jsx)(Y, {}), (0, a.jsxs)("div", {
className: "flex w-full flex-1",
children: [(0, a.jsx)(F, {}), (0, a.jsx)("main", {
className: "w-0 flex-1",
children: t
})]
}), (0, a.jsx)(C, {})]
})
}
},
64672: (e, t, r) => {
"use strict";
r.d(t, {
O: () => c
});
var a = r(25771),
n = r(34587),
i = r(51529),
l = r(45413);
let s = {
src: "/_next/static/media/logo1.fb030383.svg",
height: 157,
width: 1108,
blurWidth: 0,
blurHeight: 0
},
o = {
src: "/_next/static/media/logo2.292e06a1.svg",
height: 157,
width: 845,
blurWidth: 0,
blurHeight: 0
},
d = {
sm: "text-[20px]",
md: "text-[24px]",
lg: "text-[28px]"
};
function c(e) {
let {
className: t,
size: r = "md",
redirect: c = !0,
smallLogo: u,
height: h = 28
} = e, p = d[r], g = (0, n.rx)(), m = "string" == typeof s ? s : s.src, f = "string" == typeof o ? o : o.src, x = (0, a.jsx)("div", {
className: (0, i.cn)(p, t, "flex items-center"),
children: (0, a.jsx)("img", {
src: u ? f : m,
alt: "",
style: {
height: h
}
})
}), b = (0, a.jsx)("div", {
className: (0, i.cn)(p, t, "flex items-center"),
children: (0, a.jsx)("img", {
src: u ? m : f,
alt: "",
style: {
height: h
}
})
}), v = l.Q ? b : x;
return g && c ? (0, a.jsx)("a", {
href: g,
target: "_blank",
rel: "noopener noreferrer",
className: "inline-block cursor-pointer",
children: v
}) : v
}
},
69214: (e, t, r) => {
"use strict";
r.d(t, {
kE: () => i,
Cj: () => s,
Lx: () => l,
Uc: () => o
});
var a = r(87163),
n = r(13672);
function i() {
return (0, n.useRouterContext)()
}
function l(e) {
let {
registerBeforeNavigate: t
} = (0, n.useNavigationController)(), r = (0, a.useRef)(e);
r.current = e, (0, a.useEffect)(() => t(e => r.current(e)), [t])
}
function s(e) {
let {
registerSyncNavigationBlocker: t
} = (0, n.useNavigationController)(), r = (0, a.useRef)(e);
r.current = e, (0, a.useEffect)(() => t(() => r.current()), [t])
}
function o(e, t) {
let {
forcePageReload: r
} = (0, n.useNavigationController)(), i = (0, a.useRef)(e);
i.current = e;
let l = (0, a.useRef)(r);
l.current = r;
let s = null != e && (null == t ? void 0 : t.enabled) !== !1;
(0, a.useEffect)(() => {
if (!s) return;
let e = e => {
if (!(!e.repeat && ("F5" === e.code || "KeyR" === e.code && (e.ctrlKey || e.metaKey) && !e.altKey))) return;
let t = i.current;
t && (e.preventDefault(), e.stopPropagation(), t({
event: e,
forceReload: () => l.current()
}))
};
return window.addEventListener("keydown", e, {
capture: !0
}), () => {
window.removeEventListener("keydown", e, {
capture: !0
})
}
}, [s])
}
},
99966: e => {
e.exports = {
utilitySection: "Sidebar_utilitySection__dyy2i",
primarySection: "Sidebar_primarySection__3jCEK",
externalLinks: "Sidebar_externalLinks__b8mN7"
}
}
}
]);